@maptiler/geocoding-control 3.0.0-rc.7 → 3.0.0-rc.8

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.
Files changed (39) hide show
  1. package/check-version.js +69 -0
  2. package/dist/check-version.d.ts +1 -0
  3. package/dist/index.js +9 -9
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.umd.js +3 -3
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/leaflet.public.js +9 -9
  8. package/dist/leaflet.public.js.map +1 -1
  9. package/dist/leaflet.public.umd.js +3 -3
  10. package/dist/leaflet.public.umd.js.map +1 -1
  11. package/dist/maplibregl.js +67 -67
  12. package/dist/maplibregl.js.map +1 -1
  13. package/dist/maplibregl.umd.js +4 -4
  14. package/dist/maplibregl.umd.js.map +1 -1
  15. package/dist/maptilersdk.js +102 -102
  16. package/dist/maptilersdk.js.map +1 -1
  17. package/dist/maptilersdk.umd.js +4 -4
  18. package/dist/maptilersdk.umd.js.map +1 -1
  19. package/dist/openlayers.public.js +11 -10
  20. package/dist/openlayers.public.js.map +1 -1
  21. package/dist/openlayers.public.umd.js +4 -4
  22. package/dist/openlayers.public.umd.js.map +1 -1
  23. package/dist/src/components/clear-icon.d.ts +1 -0
  24. package/dist/src/components/fail-icon.d.ts +1 -0
  25. package/dist/src/components/loading-icon.d.ts +1 -0
  26. package/dist/src/components/marker.d.ts +1 -0
  27. package/dist/src/components/reverse-geocoding-icon.d.ts +1 -0
  28. package/dist/src/components/search-icon.d.ts +1 -0
  29. package/dist/src/controls/maplibregl-control.d.ts +2 -7
  30. package/dist/src/controls/maplibregl-events.d.ts +2 -3
  31. package/dist/src/controls/maplibregl-options.d.ts +1 -9
  32. package/dist/src/geocoder/geocoder-feature-item.d.ts +1 -0
  33. package/dist/src/geocoder/geocoder.d.ts +1 -0
  34. package/dist/src/index.d.ts +1 -0
  35. package/dist/src/leaflet.public.d.ts +1 -0
  36. package/dist/src/maplibregl.d.ts +1 -0
  37. package/dist/src/maptilersdk.d.ts +1 -0
  38. package/dist/src/openlayers.public.d.ts +1 -0
  39. package/package.json +20 -10
@@ -395,7 +395,7 @@ let l = class extends O {
395
395
  * @param value text to set and submit
396
396
  */
397
397
  submitQuery(t) {
398
- h(this, n, me).call(this, t);
398
+ h(this, n, me).call(this, t, { external: !0 });
399
399
  }
400
400
  /**
401
401
  * Clear search result list.
@@ -531,7 +531,7 @@ let l = class extends O {
531
531
  h(this, n, Be).call(this, t);
532
532
  }}
533
533
  .missingIconsCache=${w(this, oe)}
534
- .iconsBaseUrl=${this.iconsBaseUrl ?? "https://cdn.maptiler.com/maptiler-geocoding-control/v3.0.0-rc.7/icons/"}
534
+ .iconsBaseUrl=${this.iconsBaseUrl ?? "https://cdn.maptiler.com/maptiler-geocoding-control/v3.0.0-rc.8/icons/"}
535
535
  />
536
536
  `
537
537
  )}
@@ -564,10 +564,10 @@ x = function(t, ...[e]) {
564
564
  })
565
565
  );
566
566
  };
567
- de = function(t) {
568
- t?.preventDefault(), this.focused = !1, clearTimeout(w(this, z)), this.selectedItemIndex > -1 && this.listFeatures ? (this.picked = this.listFeatures[this.selectedItemIndex], this.searchValue = this.picked.place_type[0] === "reverse" ? this.picked.place_name : this.picked.place_name.replace(/,.*/, ""), this.error = void 0, this.selectedItemIndex = -1) : this.searchValue && h(this, n, Q).call(this, this.searchValue, { exact: !0, external: t === void 0 }).then(() => {
567
+ de = function(t, { external: e = !1 } = {}) {
568
+ t?.preventDefault(), this.focused = !1, clearTimeout(w(this, z)), this.selectedItemIndex > -1 && this.listFeatures ? (this.picked = this.listFeatures[this.selectedItemIndex], this.searchValue = this.picked.place_type[0] === "reverse" ? this.picked.place_name : this.picked.place_name.replace(/,.*/, ""), this.error = void 0, this.selectedItemIndex = -1) : this.searchValue && h(this, n, Q).call(this, this.searchValue, { exact: !0, external: e }).then(() => {
569
569
  this.picked = void 0;
570
- }).catch((e) => this.error = e);
570
+ }).catch((i) => this.error = i);
571
571
  };
572
572
  Z = function(t) {
573
573
  try {
@@ -595,8 +595,8 @@ fe = function(t, { external: e = !1 } = {}) {
595
595
  I = function() {
596
596
  this.listFeatures !== void 0 && (this.listFeatures = void 0, h(this, n, x).call(this, "featuresclear"));
597
597
  };
598
- me = function(t) {
599
- this.searchValue = t, h(this, n, x).call(this, "querychange", { query: this.searchValue, reverseCoords: h(this, n, Z).call(this, t) }), this.selectedItemIndex = -1, h(this, n, de).call(this);
598
+ me = function(t, { external: e = !1 } = {}) {
599
+ this.searchValue = t, h(this, n, x).call(this, "querychange", { query: this.searchValue, reverseCoords: h(this, n, Z).call(this, t) }), this.selectedItemIndex = -1, h(this, n, de).call(this, void 0, { external: e });
600
600
  };
601
601
  Q = async function(t, { byId: e = !1, exact: i = !1, external: o = !1 } = {}) {
602
602
  this.error = void 0, this.abortController?.abort();
@@ -640,8 +640,8 @@ Q = async function(t, { byId: e = !1, exact: i = !1, external: o = !1 } = {}) {
640
640
  properties: {},
641
641
  /* eslint-disable @typescript-eslint/restrict-template-expressions */
642
642
  id: `reverse_${r.decimalLongitude}_${r.decimalLatitude}`,
643
- text: `${r.decimalLatitude}, ${r.decimalLongitude}`,
644
- place_name: r.toCoordinateFormat("DMS"),
643
+ place_name: `${r.decimalLatitude}, ${r.decimalLongitude}`,
644
+ text: r.toCoordinateFormat("DMS"),
645
645
  /* eslint-enable @typescript-eslint/restrict-template-expressions */
646
646
  place_type: ["reverse"],
647
647
  place_type_name: ["reverse"],