diff --git a/package-lock.json b/package-lock.json index 78f12ea..2c5c742 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3333,8 +3333,7 @@ }, "ansi-regex": { "version": "2.1.1", - "bundled": true, - "optional": true + "bundled": true }, "aproba": { "version": "1.2.0", @@ -3352,13 +3351,11 @@ }, "balanced-match": { "version": "1.0.0", - "bundled": true, - "optional": true + "bundled": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, - "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -3371,18 +3368,15 @@ }, "code-point-at": { "version": "1.1.0", - "bundled": true, - "optional": true + "bundled": true }, "concat-map": { "version": "0.0.1", - "bundled": true, - "optional": true + "bundled": true }, "console-control-strings": { "version": "1.1.0", - "bundled": true, - "optional": true + "bundled": true }, "core-util-is": { "version": "1.0.2", @@ -3485,8 +3479,7 @@ }, "inherits": { "version": "2.0.4", - "bundled": true, - "optional": true + "bundled": true }, "ini": { "version": "1.3.5", @@ -3496,7 +3489,6 @@ "is-fullwidth-code-point": { "version": "1.0.0", "bundled": true, - "optional": true, "requires": { "number-is-nan": "^1.0.0" } @@ -3509,20 +3501,17 @@ "minimatch": { "version": "3.0.4", "bundled": true, - "optional": true, "requires": { "brace-expansion": "^1.1.7" } }, "minimist": { "version": "0.0.8", - "bundled": true, - "optional": true + "bundled": true }, "minipass": { "version": "2.9.0", "bundled": true, - "optional": true, "requires": { "safe-buffer": "^5.1.2", "yallist": "^3.0.0" @@ -3539,7 +3528,6 @@ "mkdirp": { "version": "0.5.1", "bundled": true, - "optional": true, "requires": { "minimist": "0.0.8" } @@ -3620,8 +3608,7 @@ }, "number-is-nan": { "version": "1.0.1", - "bundled": true, - "optional": true + "bundled": true }, "object-assign": { "version": "4.1.1", @@ -3631,7 +3618,6 @@ "once": { "version": "1.4.0", "bundled": true, - "optional": true, "requires": { "wrappy": "1" } @@ -3707,8 +3693,7 @@ }, "safe-buffer": { "version": "5.1.2", - "bundled": true, - "optional": true + "bundled": true }, "safer-buffer": { "version": "2.1.2", @@ -3738,7 +3723,6 @@ "string-width": { "version": "1.0.2", "bundled": true, - "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -3756,7 +3740,6 @@ "strip-ansi": { "version": "3.0.1", "bundled": true, - "optional": true, "requires": { "ansi-regex": "^2.0.0" } @@ -3795,13 +3778,11 @@ }, "wrappy": { "version": "1.0.2", - "bundled": true, - "optional": true + "bundled": true }, "yallist": { "version": "3.1.1", - "bundled": true, - "optional": true + "bundled": true } } }, diff --git a/src/js/components/search-bar/search-bar.component.ts b/src/js/components/search-bar/search-bar.component.ts index 3c74aae..7884424 100755 --- a/src/js/components/search-bar/search-bar.component.ts +++ b/src/js/components/search-bar/search-bar.component.ts @@ -146,6 +146,7 @@ export class SearchBarComponent { value.getRegion() || value.getCountry() }`, + icon: 'gogo-icon-marker-symbol' })), ]; } diff --git a/src/scss/components/search-bar/_search-bar.scss b/src/scss/components/search-bar/_search-bar.scss index 0ba98dd..3076d00 100755 --- a/src/scss/components/search-bar/_search-bar.scss +++ b/src/scss/components/search-bar/_search-bar.scss @@ -172,7 +172,7 @@ &:before { content: '"'; } } } - + .search_elements, &.search_geocoded + .option { + + .search_elements, &.search_geocoded + .option, &.geocoded + .option { border-top: 1px solid #eee; padding-top: .3rem; margin-top: .3rem; @@ -187,6 +187,20 @@ } &.search_elements { padding-top: .6rem; + .icon { + line-height: 1rem; + opacity: .9; + font-size: 1rem; + } + } + &.geocoded { + .label { + font-size: .9rem; + } + .icon { + line-height: .9rem; + opacity: .9; + } } } } diff --git a/web/dev-local.html b/web/dev-local.html index bb61324..600e55a 100644 --- a/web/dev-local.html +++ b/web/dev-local.html @@ -35,7 +35,17 @@ taxonomy: taxonomy, elements: elements }, - theme: "flat" + search: { + geocodingProvider: "mapbox", + meta: { + apiKey: "pk.eyJ1IjoiZ29nb2NhcnRvIiwiYSI6ImNqYnhxeHUxZzJ3cG4zMnIyNmZiajF6dmwifQ.2G5IM4roIgpU_fvPBOpssw" + } + }, + theme: "flat", + fonts: { + mainFont: 'Nunito' + }, + language: "fr" }); });