@maptiler/geocoding-control 0.0.96-alpha.1 → 0.0.96

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/vanilla.d.ts CHANGED
@@ -4,9 +4,8 @@ type Options = ControlOptions & {
4
4
  };
5
5
  export declare class GeocodingControl extends EventTarget {
6
6
  #private;
7
- constructor({ target, options }: {
7
+ constructor({ target, ...options }: Options & {
8
8
  target: HTMLElement;
9
- options: Options;
10
9
  });
11
10
  setOptions(options: Partial<Options>): void;
12
11
  setQuery(value: string, submit?: boolean): void;
package/vanilla.js CHANGED
@@ -1419,7 +1419,7 @@ function _t(n) {
1419
1419
  return e[2] < e[0] && (e[2] += 360), e;
1420
1420
  }
1421
1421
  function Un(n, e, t) {
1422
- let l, { $$slots: r = {}, $$scope: a } = e, { class: c = void 0 } = e, { apiKey: o } = e, { bbox: h = void 0 } = e, { clearButtonTitle: f = "clear" } = e, { clearOnBlur: _ = !1 } = e, { collapsed: k = !1 } = e, { country: g = void 0 } = e, { debounceSearch: B = 200 } = e, { enableReverse: I = !1 } = e, { errorMessage: T = "Something went wrong…" } = e, { filter: M = () => !0 } = e, { flyTo: A = !0 } = e, { fuzzyMatch: y = !0 } = e, { language: N = void 0 } = e, { limit: Z = void 0 } = e, { mapController: d = void 0 } = e, { minLength: b = 2 } = e, { noResultsMessage: C = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = e, { placeholder: L = "Search" } = e, { proximity: m = void 0 } = e, { reverseActive: w = I === "always" } = e, { reverseButtonTitle: H = "toggle reverse geocoding" } = e, { searchValue: u = "" } = e, { showFullGeometry: P = !0 } = e, { showPlaceType: $ = "ifNeeded" } = e, { showResultsWhileTyping: oe = !0 } = e, { trackProximity: Re = !0 } = e, { types: ue = void 0 } = e, { zoom: Ee = 16 } = e, { maxZoom: Me = 18 } = e, { apiUrl: We = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: je = {} } = e, { iconsBaseUrl: Je = "https://cdn.maptiler.com/maptiler-geocoding-control/v0.0.96-alpha.1/icons/" } = e;
1422
+ let l, { $$slots: r = {}, $$scope: a } = e, { class: c = void 0 } = e, { apiKey: o } = e, { bbox: h = void 0 } = e, { clearButtonTitle: f = "clear" } = e, { clearOnBlur: _ = !1 } = e, { collapsed: k = !1 } = e, { country: g = void 0 } = e, { debounceSearch: B = 200 } = e, { enableReverse: I = !1 } = e, { errorMessage: T = "Something went wrong…" } = e, { filter: M = () => !0 } = e, { flyTo: A = !0 } = e, { fuzzyMatch: y = !0 } = e, { language: N = void 0 } = e, { limit: Z = void 0 } = e, { mapController: d = void 0 } = e, { minLength: b = 2 } = e, { noResultsMessage: C = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = e, { placeholder: L = "Search" } = e, { proximity: m = void 0 } = e, { reverseActive: w = I === "always" } = e, { reverseButtonTitle: H = "toggle reverse geocoding" } = e, { searchValue: u = "" } = e, { showFullGeometry: P = !0 } = e, { showPlaceType: $ = "ifNeeded" } = e, { showResultsWhileTyping: oe = !0 } = e, { trackProximity: Re = !0 } = e, { types: ue = void 0 } = e, { zoom: Ee = 16 } = e, { maxZoom: Me = 18 } = e, { apiUrl: We = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: je = {} } = e, { iconsBaseUrl: Je = "https://cdn.maptiler.com/maptiler-geocoding-control/v0.0.96/icons/" } = e;
1423
1423
  function pt() {
1424
1424
  J.focus();
1425
1425
  }
@@ -1716,7 +1716,7 @@ const Wn = new FinalizationRegistry((n) => {
1716
1716
  });
1717
1717
  var x;
1718
1718
  class Nn extends EventTarget {
1719
- constructor({ target: t, options: l }) {
1719
+ constructor({ target: t, ...l }) {
1720
1720
  super();
1721
1721
  tt(this, x, void 0);
1722
1722
  nt(this, x, new An({