@edugis-org/webmapx 0.1.16 → 0.2.0

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 (43) hide show
  1. package/dist-lib/{alert-C_G5X6J8.js → alert-CM5EIQzP.js} +28 -30
  2. package/dist-lib/{attribution-format-B4f05_u0.js → attribution-format-CZg2WjHO.js} +1 -1
  3. package/dist-lib/{button-BlZd3WPH.js → button-B_8TR-jN.js} +34 -38
  4. package/dist-lib/{checkbox-DB4oPyyw.js → checkbox-DOopjfpt.js} +25 -29
  5. package/dist-lib/{chunk.36O46B5H-km1dakSW.js → chunk.36O46B5H-EYkf8iaY.js} +8 -8
  6. package/dist-lib/{chunk.3RPBFEDE-Cxq6VVR6.js → chunk.3RPBFEDE-DC091CnT.js} +1 -1
  7. package/dist-lib/{chunk.5JY5FUCG-CYkzbQXS.js → chunk.5JY5FUCG-BmZ-LXEt.js} +324 -306
  8. package/dist-lib/{chunk.AJ3ENQ5C-DXVGX5Dn.js → chunk.AJ3ENQ5C-BhSO747I.js} +22 -25
  9. package/dist-lib/chunk.NYIIDP5N-DoNij0Gf.js +99 -0
  10. package/dist-lib/{chunk.SI4ACBFK-CLb9VfMG.js → chunk.SI4ACBFK-CdJVQctt.js} +1 -1
  11. package/dist-lib/{chunk.YHLNUJ7P-ByKy0MKm.js → chunk.YHLNUJ7P-DINaI4pI.js} +22 -24
  12. package/dist-lib/{decorate-CKr8yG1g.js → decorate-DNmmPsJp.js} +1 -1
  13. package/dist-lib/decorators-d8E4nZJy.js +624 -0
  14. package/dist-lib/{divider-BOFbR_Ny.js → divider-Ly2UhLd1.js} +6 -7
  15. package/dist-lib/{icon-CBNpO1lq.js → icon-DIjRqLFJ.js} +1 -1
  16. package/dist-lib/{icon-button-B5rXu3Gg.js → icon-button-C5K3NZWf.js} +39 -42
  17. package/dist-lib/{input-B212BH6L.js → input-DUaeAHt8.js} +63 -49
  18. package/dist-lib/{option-BQN9Zz_8.js → option-LnK7BxuV.js} +56 -59
  19. package/dist-lib/{spinner-DdcBaa3z.js → spinner-D_cltutw.js} +2 -2
  20. package/dist-lib/{toast-Bq2PmEpm.js → toast-DDqkINxT.js} +1 -1
  21. package/dist-lib/{tooltip-CBGOiZwJ.js → tooltip-C86FhPFx.js} +26 -27
  22. package/dist-lib/{webmapx-3d-tool-CKoLGMpk.js → webmapx-3d-tool-DXzN9Tha.js} +6 -7
  23. package/dist-lib/{webmapx-base-tool-Bc9Wz0yA.js → webmapx-base-tool-idjVnrFA.js} +8 -8
  24. package/dist-lib/{webmapx-config-edit-tool-7265_DNz.js → webmapx-config-edit-tool-B14KD1ak.js} +21 -22
  25. package/dist-lib/{webmapx-coordinates-tool-CI6NSE3t.js → webmapx-coordinates-tool-D57LfNy6.js} +25 -26
  26. package/dist-lib/{webmapx-core-bundle-Q6mWOib1.js → webmapx-core-bundle-C4M7AiLh.js} +726 -723
  27. package/dist-lib/{webmapx-draw-tool-6QRr5Gip.js → webmapx-draw-tool-utv2v3LN.js} +345 -325
  28. package/dist-lib/{webmapx-geolocation-tool-qxN5aaVB.js → webmapx-geolocation-tool-BIEqZkMX.js} +27 -28
  29. package/dist-lib/{webmapx-import-layer-tool-tJ374qHR.js → webmapx-import-layer-tool-DcFxtRJN.js} +18 -19
  30. package/dist-lib/{webmapx-info-tool-C3txgv3v.js → webmapx-info-tool-DDrllfth.js} +69 -70
  31. package/dist-lib/{webmapx-language-osmvector-jQzTOPU1.js → webmapx-language-osmvector-D_OP-fC3.js} +8 -9
  32. package/dist-lib/{webmapx-measure-tool-Cxxrzgdf.js → webmapx-measure-tool-D-6STy8v.js} +33 -34
  33. package/dist-lib/{webmapx-modal-tool-DQVHNXqX.js → webmapx-modal-tool-CftNio2w.js} +10 -10
  34. package/dist-lib/{webmapx-plugin-tool-BNZ61x6s.js → webmapx-plugin-tool-CGwliIUs.js} +5 -6
  35. package/dist-lib/{webmapx-print-tool-BDOTbS6u.js → webmapx-print-tool-DVL_0Hqz.js} +55 -56
  36. package/dist-lib/{webmapx-search-tool-CHlsE2Wx.js → webmapx-search-tool-D6y6WT8q.js} +13 -14
  37. package/dist-lib/{webmapx-settings-B0AT9Vjn.js → webmapx-settings--mFVPZsD.js} +41 -45
  38. package/dist-lib/{webmapx-truearea-tool-dxSgcbOj.js → webmapx-truearea-tool-nQzVCTAC.js} +31 -32
  39. package/dist-lib/{webmapx-view-mode-tool-DVSMakdh.js → webmapx-view-mode-tool-CQI54rFj.js} +11 -12
  40. package/dist-lib/webmapx.css +1 -1
  41. package/dist-lib/webmapx.js +18 -18
  42. package/package.json +1 -1
  43. package/dist-lib/chunk.NYIIDP5N-B4UCI-rQ.js +0 -34
@@ -1,17 +1,14 @@
1
- import { a as e, i as t, n, r, t as i } from "./chunk.YHLNUJ7P-ByKy0MKm.js";
2
- import { a, c as o, i as s, o as c, s as l, t as u } from "./chunk.AJ3ENQ5C-DXVGX5Dn.js";
3
- import { t as d } from "./chunk.NYIIDP5N-B4UCI-rQ.js";
4
- import { t as f } from "./chunk.6CTB5ZDJ-DjZrBd6Y.js";
5
- import { t as p } from "./chunk.3RPBFEDE-Cxq6VVR6.js";
6
- import { t as m } from "./chunk.SI4ACBFK-CLb9VfMG.js";
7
- import { n as h } from "./chunk.RWUUFNUL-DFztA4uV.js";
8
- import { t as g } from "./chunk.5JY5FUCG-CYkzbQXS.js";
9
- import { css as _, html as v } from "lit";
10
- import { property as y, query as b, state as x } from "lit/decorators.js";
11
- import { classMap as S } from "lit/directives/class-map.js";
12
- import { unsafeHTML as C } from "lit/directives/unsafe-html.js";
1
+ import { a as e, i as t, o as n, s as r, t as i } from "./chunk.YHLNUJ7P-DINaI4pI.js";
2
+ import { a, h as o, i as s, n as c, p as l } from "./decorators-d8E4nZJy.js";
3
+ import { a as u, c as d, i as f, o as p, s as m, t as h } from "./chunk.AJ3ENQ5C-BhSO747I.js";
4
+ import { a as g, t as _ } from "./chunk.NYIIDP5N-DoNij0Gf.js";
5
+ import { t as v } from "./chunk.6CTB5ZDJ-DjZrBd6Y.js";
6
+ import { t as y } from "./chunk.3RPBFEDE-DC091CnT.js";
7
+ import { t as b } from "./chunk.SI4ACBFK-CdJVQctt.js";
8
+ import { n as x, t as S } from "./chunk.5JY5FUCG-BmZ-LXEt.js";
9
+ import { n as C } from "./chunk.RWUUFNUL-DFztA4uV.js";
13
10
  //#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.V2OL7VMD.js
14
- var w = _`
11
+ var w = o`
15
12
  :host {
16
13
  display: inline-block;
17
14
  }
@@ -124,18 +121,18 @@ var w = _`
124
121
  .tag--pill {
125
122
  border-radius: var(--sl-border-radius-pill);
126
123
  }
127
- `, T = class extends n {
124
+ `, T = class extends t {
128
125
  constructor() {
129
- super(...arguments), this.localize = new f(this), this.variant = "neutral", this.size = "medium", this.pill = !1, this.removable = !1;
126
+ super(...arguments), this.localize = new v(this), this.variant = "neutral", this.size = "medium", this.pill = !1, this.removable = !1;
130
127
  }
131
128
  handleRemoveClick() {
132
129
  this.emit("sl-remove");
133
130
  }
134
131
  render() {
135
- return v`
132
+ return l`
136
133
  <span
137
134
  part="base"
138
- class=${S({
135
+ class=${g({
139
136
  tag: !0,
140
137
  "tag--primary": this.variant === "primary",
141
138
  "tag--success": this.variant === "success",
@@ -152,7 +149,7 @@ var w = _`
152
149
  >
153
150
  <slot part="content" class="tag__content"></slot>
154
151
 
155
- ${this.removable ? v`
152
+ ${this.removable ? l`
156
153
  <sl-icon-button
157
154
  part="remove-button"
158
155
  exportparts="base:remove-button__base"
@@ -168,13 +165,13 @@ var w = _`
168
165
  `;
169
166
  }
170
167
  };
171
- T.styles = [r, w], T.dependencies = { "sl-icon-button": o }, e([y({ reflect: !0 })], T.prototype, "variant", 2), e([y({ reflect: !0 })], T.prototype, "size", 2), e([y({
168
+ T.styles = [e, w], T.dependencies = { "sl-icon-button": d }, r([a({ reflect: !0 })], T.prototype, "variant", 2), r([a({ reflect: !0 })], T.prototype, "size", 2), r([a({
172
169
  type: Boolean,
173
170
  reflect: !0
174
- })], T.prototype, "pill", 2), e([y({ type: Boolean })], T.prototype, "removable", 2);
171
+ })], T.prototype, "pill", 2), r([a({ type: Boolean })], T.prototype, "removable", 2);
175
172
  //#endregion
176
173
  //#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.XNOUITPX.js
177
- var E = _`
174
+ var E = o`
178
175
  :host {
179
176
  display: block;
180
177
  }
@@ -516,9 +513,9 @@ var E = _`
516
513
  padding-block: var(--sl-spacing-2x-small);
517
514
  padding-inline: var(--sl-spacing-x-large);
518
515
  }
519
- `, D = class extends n {
516
+ `, D = class extends t {
520
517
  constructor() {
521
- super(...arguments), this.formControlController = new p(this, { assumeInteractionOn: ["sl-blur", "sl-input"] }), this.hasSlotController = new d(this, "help-text", "label"), this.localize = new f(this), this.typeToSelectString = "", this.hasFocus = !1, this.displayLabel = "", this.selectedOptions = [], this.valueHasChanged = !1, this.name = "", this._value = "", this.defaultValue = "", this.size = "medium", this.placeholder = "", this.multiple = !1, this.maxOptionsVisible = 3, this.disabled = !1, this.clearable = !1, this.open = !1, this.hoist = !1, this.filled = !1, this.pill = !1, this.label = "", this.placement = "bottom", this.helpText = "", this.form = "", this.required = !1, this.getTag = (e) => v`
518
+ super(...arguments), this.formControlController = new y(this, { assumeInteractionOn: ["sl-blur", "sl-input"] }), this.hasSlotController = new _(this, "help-text", "label"), this.localize = new v(this), this.typeToSelectString = "", this.hasFocus = !1, this.displayLabel = "", this.selectedOptions = [], this.valueHasChanged = !1, this.name = "", this._value = "", this.defaultValue = "", this.size = "medium", this.placeholder = "", this.multiple = !1, this.maxOptionsVisible = 3, this.disabled = !1, this.clearable = !1, this.open = !1, this.hoist = !1, this.filled = !1, this.pill = !1, this.label = "", this.placement = "bottom", this.helpText = "", this.form = "", this.required = !1, this.getTag = (e) => l`
522
519
  <sl-tag
523
520
  part="tag"
524
521
  exportparts="
@@ -681,11 +678,11 @@ var E = _`
681
678
  return this.selectedOptions.map((e, t) => {
682
679
  if (t < this.maxOptionsVisible || this.maxOptionsVisible <= 0) {
683
680
  let n = this.getTag(e, t);
684
- return v`<div @sl-remove=${(t) => this.handleTagRemove(t, e)}>
685
- ${typeof n == "string" ? C(n) : n}
681
+ return l`<div @sl-remove=${(t) => this.handleTagRemove(t, e)}>
682
+ ${typeof n == "string" ? x(n) : n}
686
683
  </div>`;
687
- } else if (t === this.maxOptionsVisible) return v`<sl-tag size=${this.size}>+${this.selectedOptions.length - t}</sl-tag>`;
688
- return v``;
684
+ } else if (t === this.maxOptionsVisible) return l`<sl-tag size=${this.size}>+${this.selectedOptions.length - t}</sl-tag>`;
685
+ return l``;
689
686
  });
690
687
  }
691
688
  handleInvalid(e) {
@@ -710,15 +707,15 @@ var E = _`
710
707
  }
711
708
  async handleOpenChange() {
712
709
  if (this.open && !this.disabled) {
713
- this.setCurrentOption(this.selectedOptions[0] || this.getFirstOption()), this.emit("sl-show"), this.addOpenListeners(), await s(this), this.listbox.hidden = !1, this.popup.active = !0, requestAnimationFrame(() => {
710
+ this.setCurrentOption(this.selectedOptions[0] || this.getFirstOption()), this.emit("sl-show"), this.addOpenListeners(), await f(this), this.listbox.hidden = !1, this.popup.active = !0, requestAnimationFrame(() => {
714
711
  this.setCurrentOption(this.currentOption);
715
712
  });
716
- let { keyframes: e, options: t } = c(this, "select.show", { dir: this.localize.dir() });
717
- await u(this.popup.popup, e, t), this.currentOption && h(this.currentOption, this.listbox, "vertical", "auto"), this.emit("sl-after-show");
713
+ let { keyframes: e, options: t } = p(this, "select.show", { dir: this.localize.dir() });
714
+ await h(this.popup.popup, e, t), this.currentOption && C(this.currentOption, this.listbox, "vertical", "auto"), this.emit("sl-after-show");
718
715
  } else {
719
- this.emit("sl-hide"), this.removeOpenListeners(), await s(this);
720
- let { keyframes: e, options: t } = c(this, "select.hide", { dir: this.localize.dir() });
721
- await u(this.popup.popup, e, t), this.listbox.hidden = !0, this.popup.active = !1, this.emit("sl-after-hide");
716
+ this.emit("sl-hide"), this.removeOpenListeners(), await f(this);
717
+ let { keyframes: e, options: t } = p(this, "select.hide", { dir: this.localize.dir() });
718
+ await h(this.popup.popup, e, t), this.listbox.hidden = !0, this.popup.active = !1, this.emit("sl-after-hide");
722
719
  }
723
720
  }
724
721
  async show() {
@@ -726,14 +723,14 @@ var E = _`
726
723
  this.open = !1;
727
724
  return;
728
725
  }
729
- return this.open = !0, a(this, "sl-after-show");
726
+ return this.open = !0, u(this, "sl-after-show");
730
727
  }
731
728
  async hide() {
732
729
  if (!this.open || this.disabled) {
733
730
  this.open = !1;
734
731
  return;
735
732
  }
736
- return this.open = !1, a(this, "sl-after-hide");
733
+ return this.open = !1, u(this, "sl-after-hide");
737
734
  }
738
735
  checkValidity() {
739
736
  return this.valueInput.checkValidity();
@@ -755,10 +752,10 @@ var E = _`
755
752
  }
756
753
  render() {
757
754
  let e = this.hasSlotController.test("label"), t = this.hasSlotController.test("help-text"), n = this.label ? !0 : !!e, r = this.helpText ? !0 : !!t, i = this.clearable && !this.disabled && this.value.length > 0, a = this.placeholder && this.value && this.value.length <= 0;
758
- return v`
755
+ return l`
759
756
  <div
760
757
  part="form-control"
761
- class=${S({
758
+ class=${g({
762
759
  "form-control": !0,
763
760
  "form-control--small": this.size === "small",
764
761
  "form-control--medium": this.size === "medium",
@@ -779,7 +776,7 @@ var E = _`
779
776
 
780
777
  <div part="form-control-input" class="form-control-input">
781
778
  <sl-popup
782
- class=${S({
779
+ class=${g({
783
780
  select: !0,
784
781
  "select--standard": !0,
785
782
  "select--filled": this.filled,
@@ -835,7 +832,7 @@ var E = _`
835
832
  @blur=${this.handleBlur}
836
833
  />
837
834
 
838
- ${this.multiple ? v`<div part="tags" class="select__tags">${this.tags}</div>` : ""}
835
+ ${this.multiple ? l`<div part="tags" class="select__tags">${this.tags}</div>` : ""}
839
836
 
840
837
  <input
841
838
  class="select__value-input"
@@ -849,7 +846,7 @@ var E = _`
849
846
  @invalid=${this.handleInvalid}
850
847
  />
851
848
 
852
- ${i ? v`
849
+ ${i ? l`
853
850
  <button
854
851
  part="clear-button"
855
852
  class="select__clear"
@@ -904,35 +901,35 @@ var E = _`
904
901
  //#endregion
905
902
  //#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.TP2GB2HO.js
906
903
  D.styles = [
907
- r,
908
- m,
904
+ e,
905
+ b,
909
906
  E
910
907
  ], D.dependencies = {
911
908
  "sl-icon": i,
912
- "sl-popup": g,
909
+ "sl-popup": S,
913
910
  "sl-tag": T
914
- }, e([b(".select")], D.prototype, "popup", 2), e([b(".select__combobox")], D.prototype, "combobox", 2), e([b(".select__display-input")], D.prototype, "displayInput", 2), e([b(".select__value-input")], D.prototype, "valueInput", 2), e([b(".select__listbox")], D.prototype, "listbox", 2), e([x()], D.prototype, "hasFocus", 2), e([x()], D.prototype, "displayLabel", 2), e([x()], D.prototype, "currentOption", 2), e([x()], D.prototype, "selectedOptions", 2), e([x()], D.prototype, "valueHasChanged", 2), e([y()], D.prototype, "name", 2), e([x()], D.prototype, "value", 1), e([y({ attribute: "value" })], D.prototype, "defaultValue", 2), e([y({ reflect: !0 })], D.prototype, "size", 2), e([y()], D.prototype, "placeholder", 2), e([y({
911
+ }, r([c(".select")], D.prototype, "popup", 2), r([c(".select__combobox")], D.prototype, "combobox", 2), r([c(".select__display-input")], D.prototype, "displayInput", 2), r([c(".select__value-input")], D.prototype, "valueInput", 2), r([c(".select__listbox")], D.prototype, "listbox", 2), r([s()], D.prototype, "hasFocus", 2), r([s()], D.prototype, "displayLabel", 2), r([s()], D.prototype, "currentOption", 2), r([s()], D.prototype, "selectedOptions", 2), r([s()], D.prototype, "valueHasChanged", 2), r([a()], D.prototype, "name", 2), r([s()], D.prototype, "value", 1), r([a({ attribute: "value" })], D.prototype, "defaultValue", 2), r([a({ reflect: !0 })], D.prototype, "size", 2), r([a()], D.prototype, "placeholder", 2), r([a({
915
912
  type: Boolean,
916
913
  reflect: !0
917
- })], D.prototype, "multiple", 2), e([y({
914
+ })], D.prototype, "multiple", 2), r([a({
918
915
  attribute: "max-options-visible",
919
916
  type: Number
920
- })], D.prototype, "maxOptionsVisible", 2), e([y({
917
+ })], D.prototype, "maxOptionsVisible", 2), r([a({
921
918
  type: Boolean,
922
919
  reflect: !0
923
- })], D.prototype, "disabled", 2), e([y({ type: Boolean })], D.prototype, "clearable", 2), e([y({
920
+ })], D.prototype, "disabled", 2), r([a({ type: Boolean })], D.prototype, "clearable", 2), r([a({
924
921
  type: Boolean,
925
922
  reflect: !0
926
- })], D.prototype, "open", 2), e([y({ type: Boolean })], D.prototype, "hoist", 2), e([y({
923
+ })], D.prototype, "open", 2), r([a({ type: Boolean })], D.prototype, "hoist", 2), r([a({
927
924
  type: Boolean,
928
925
  reflect: !0
929
- })], D.prototype, "filled", 2), e([y({
926
+ })], D.prototype, "filled", 2), r([a({
930
927
  type: Boolean,
931
928
  reflect: !0
932
- })], D.prototype, "pill", 2), e([y()], D.prototype, "label", 2), e([y({ reflect: !0 })], D.prototype, "placement", 2), e([y({ attribute: "help-text" })], D.prototype, "helpText", 2), e([y({ reflect: !0 })], D.prototype, "form", 2), e([y({
929
+ })], D.prototype, "pill", 2), r([a()], D.prototype, "label", 2), r([a({ reflect: !0 })], D.prototype, "placement", 2), r([a({ attribute: "help-text" })], D.prototype, "helpText", 2), r([a({ reflect: !0 })], D.prototype, "form", 2), r([a({
933
930
  type: Boolean,
934
931
  reflect: !0
935
- })], D.prototype, "required", 2), e([y()], D.prototype, "getTag", 2), e([t("disabled", { waitUntilFirstUpdate: !0 })], D.prototype, "handleDisabledChange", 1), e([t(["defaultValue", "value"], { waitUntilFirstUpdate: !0 })], D.prototype, "handleValueChange", 1), e([t("open", { waitUntilFirstUpdate: !0 })], D.prototype, "handleOpenChange", 1), l("select.show", {
932
+ })], D.prototype, "required", 2), r([a()], D.prototype, "getTag", 2), r([n("disabled", { waitUntilFirstUpdate: !0 })], D.prototype, "handleDisabledChange", 1), r([n(["defaultValue", "value"], { waitUntilFirstUpdate: !0 })], D.prototype, "handleValueChange", 1), r([n("open", { waitUntilFirstUpdate: !0 })], D.prototype, "handleOpenChange", 1), m("select.show", {
936
933
  keyframes: [{
937
934
  opacity: 0,
938
935
  scale: .9
@@ -944,7 +941,7 @@ D.styles = [
944
941
  duration: 100,
945
942
  easing: "ease"
946
943
  }
947
- }), l("select.hide", {
944
+ }), m("select.hide", {
948
945
  keyframes: [{
949
946
  opacity: 1,
950
947
  scale: 1
@@ -959,7 +956,7 @@ D.styles = [
959
956
  }), D.define("sl-select");
960
957
  //#endregion
961
958
  //#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.FXXKMG2P.js
962
- var O = _`
959
+ var O = o`
963
960
  :host {
964
961
  display: block;
965
962
  user-select: none;
@@ -1043,9 +1040,9 @@ var O = _`
1043
1040
  outline-offset: -1px;
1044
1041
  }
1045
1042
  }
1046
- `, k = class extends n {
1043
+ `, k = class extends t {
1047
1044
  constructor() {
1048
- super(...arguments), this.localize = new f(this), this.isInitialized = !1, this.current = !1, this.selected = !1, this.hasHover = !1, this.value = "", this.disabled = !1;
1045
+ super(...arguments), this.localize = new v(this), this.isInitialized = !1, this.current = !1, this.selected = !1, this.hasHover = !1, this.value = "", this.disabled = !1;
1049
1046
  }
1050
1047
  connectedCallback() {
1051
1048
  super.connectedCallback(), this.setAttribute("role", "option"), this.setAttribute("aria-selected", "false");
@@ -1078,10 +1075,10 @@ var O = _`
1078
1075
  }), t.trim();
1079
1076
  }
1080
1077
  render() {
1081
- return v`
1078
+ return l`
1082
1079
  <div
1083
1080
  part="base"
1084
- class=${S({
1081
+ class=${g({
1085
1082
  option: !0,
1086
1083
  "option--current": this.current,
1087
1084
  "option--disabled": this.disabled,
@@ -1101,8 +1098,8 @@ var O = _`
1101
1098
  };
1102
1099
  //#endregion
1103
1100
  //#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.JXOKFADN.js
1104
- k.styles = [r, O], k.dependencies = { "sl-icon": i }, e([b(".option__label")], k.prototype, "defaultSlot", 2), e([x()], k.prototype, "current", 2), e([x()], k.prototype, "selected", 2), e([x()], k.prototype, "hasHover", 2), e([y({ reflect: !0 })], k.prototype, "value", 2), e([y({
1101
+ k.styles = [e, O], k.dependencies = { "sl-icon": i }, r([c(".option__label")], k.prototype, "defaultSlot", 2), r([s()], k.prototype, "current", 2), r([s()], k.prototype, "selected", 2), r([s()], k.prototype, "hasHover", 2), r([a({ reflect: !0 })], k.prototype, "value", 2), r([a({
1105
1102
  type: Boolean,
1106
1103
  reflect: !0
1107
- })], k.prototype, "disabled", 2), e([t("disabled")], k.prototype, "handleDisabledChange", 1), e([t("selected")], k.prototype, "handleSelectedChange", 1), e([t("value")], k.prototype, "handleValueChange", 1), k.define("sl-option");
1104
+ })], k.prototype, "disabled", 2), r([n("disabled")], k.prototype, "handleDisabledChange", 1), r([n("selected")], k.prototype, "handleSelectedChange", 1), r([n("value")], k.prototype, "handleValueChange", 1), k.define("sl-option");
1108
1105
  //#endregion
@@ -1,6 +1,6 @@
1
- import "./chunk.YHLNUJ7P-ByKy0MKm.js";
1
+ import "./chunk.YHLNUJ7P-DINaI4pI.js";
2
2
  import "./chunk.6CTB5ZDJ-DjZrBd6Y.js";
3
- import { t as e } from "./chunk.36O46B5H-km1dakSW.js";
3
+ import { t as e } from "./chunk.36O46B5H-EYkf8iaY.js";
4
4
  //#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.EA437WHD.js
5
5
  e.define("sl-spinner");
6
6
  //#endregion
@@ -3,7 +3,7 @@ import { r as e } from "./chunk-HEgqtunE.js";
3
3
  var t = /* @__PURE__ */ e({ showToast: () => n });
4
4
  async function n(e, t = {}) {
5
5
  let { variant: n = "neutral", icon: r = n === "danger" ? "x-circle" : n === "warning" ? "exclamation-triangle" : "info-circle", duration: i = n === "danger" ? Infinity : 8e3, closable: a = !0 } = t;
6
- await import("./alert-C_G5X6J8.js"), await import("./icon-CBNpO1lq.js").then((e) => e.t);
6
+ await import("./alert-CM5EIQzP.js"), await import("./icon-DIjRqLFJ.js").then((e) => e.t);
7
7
  let o = Object.assign(document.createElement("sl-alert"), {
8
8
  variant: n,
9
9
  closable: a,
@@ -1,17 +1,16 @@
1
- import { a as e, i as t, n, r } from "./chunk.YHLNUJ7P-ByKy0MKm.js";
2
- import { a as i, i as a, n as o, o as s, s as c, t as l } from "./chunk.AJ3ENQ5C-DXVGX5Dn.js";
3
- import { t as u } from "./chunk.6CTB5ZDJ-DjZrBd6Y.js";
4
- import { t as d } from "./chunk.5JY5FUCG-CYkzbQXS.js";
5
- import { css as f, html as p } from "lit";
6
- import { property as m, query as h } from "lit/decorators.js";
7
- import { classMap as g } from "lit/directives/class-map.js";
1
+ import { a as e, i as t, o as n, s as r } from "./chunk.YHLNUJ7P-DINaI4pI.js";
2
+ import { a as i, h as a, n as o, p as s } from "./decorators-d8E4nZJy.js";
3
+ import { a as c, i as l, n as u, o as d, s as f, t as p } from "./chunk.AJ3ENQ5C-BhSO747I.js";
4
+ import { a as m } from "./chunk.NYIIDP5N-DoNij0Gf.js";
5
+ import { t as h } from "./chunk.6CTB5ZDJ-DjZrBd6Y.js";
6
+ import { t as g } from "./chunk.5JY5FUCG-BmZ-LXEt.js";
8
7
  //#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.HF7GESMZ.js
9
8
  function _(e, t, n) {
10
9
  return ((e) => Object.is(e, -0) ? 0 : e)(e < t ? t : e > n ? n : e);
11
10
  }
12
11
  //#endregion
13
12
  //#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.FW7UWQXB.js
14
- var v = f`
13
+ var v = a`
15
14
  :host {
16
15
  --max-width: 20rem;
17
16
  --hide-delay: 0ms;
@@ -63,9 +62,9 @@ var v = f`
63
62
  user-select: none;
64
63
  -webkit-user-select: none;
65
64
  }
66
- `, y = class extends n {
65
+ `, y = class extends t {
67
66
  constructor() {
68
- super(), this.localize = new u(this), this.content = "", this.placement = "top", this.disabled = !1, this.distance = 8, this.open = !1, this.skidding = 0, this.trigger = "hover focus", this.hoist = !1, this.handleBlur = () => {
67
+ super(), this.localize = new h(this), this.content = "", this.placement = "top", this.disabled = !1, this.distance = 8, this.open = !1, this.skidding = 0, this.trigger = "hover focus", this.hoist = !1, this.handleBlur = () => {
69
68
  this.hasTrigger("focus") && this.hide();
70
69
  }, this.handleClick = () => {
71
70
  this.hasTrigger("click") && (this.open ? this.hide() : this.show());
@@ -75,12 +74,12 @@ var v = f`
75
74
  e.key === "Escape" && (e.stopPropagation(), this.hide());
76
75
  }, this.handleMouseOver = () => {
77
76
  if (this.hasTrigger("hover")) {
78
- let e = o(getComputedStyle(this).getPropertyValue("--show-delay"));
77
+ let e = u(getComputedStyle(this).getPropertyValue("--show-delay"));
79
78
  clearTimeout(this.hoverTimeout), this.hoverTimeout = window.setTimeout(() => this.show(), e);
80
79
  }
81
80
  }, this.handleMouseOut = () => {
82
81
  if (this.hasTrigger("hover")) {
83
- let e = o(getComputedStyle(this).getPropertyValue("--hide-delay"));
82
+ let e = u(getComputedStyle(this).getPropertyValue("--hide-delay"));
84
83
  clearTimeout(this.hoverTimeout), this.hoverTimeout = window.setTimeout(() => this.hide(), e);
85
84
  }
86
85
  }, this.addEventListener("blur", this.handleBlur, !0), this.addEventListener("focus", this.handleFocus, !0), this.addEventListener("click", this.handleClick), this.addEventListener("mouseover", this.handleMouseOver), this.addEventListener("mouseout", this.handleMouseOut);
@@ -101,13 +100,13 @@ var v = f`
101
100
  if (this.disabled) return;
102
101
  this.emit("sl-show"), "CloseWatcher" in window ? ((e = this.closeWatcher) == null || e.destroy(), this.closeWatcher = new CloseWatcher(), this.closeWatcher.onclose = () => {
103
102
  this.hide();
104
- }) : document.addEventListener("keydown", this.handleDocumentKeyDown), await a(this.body), this.body.hidden = !1, this.popup.active = !0;
105
- let { keyframes: t, options: n } = s(this, "tooltip.show", { dir: this.localize.dir() });
106
- await l(this.popup.popup, t, n), this.popup.reposition(), this.emit("sl-after-show");
103
+ }) : document.addEventListener("keydown", this.handleDocumentKeyDown), await l(this.body), this.body.hidden = !1, this.popup.active = !0;
104
+ let { keyframes: t, options: n } = d(this, "tooltip.show", { dir: this.localize.dir() });
105
+ await p(this.popup.popup, t, n), this.popup.reposition(), this.emit("sl-after-show");
107
106
  } else {
108
- this.emit("sl-hide"), (t = this.closeWatcher) == null || t.destroy(), document.removeEventListener("keydown", this.handleDocumentKeyDown), await a(this.body);
109
- let { keyframes: e, options: n } = s(this, "tooltip.hide", { dir: this.localize.dir() });
110
- await l(this.popup.popup, e, n), this.popup.active = !1, this.body.hidden = !0, this.emit("sl-after-hide");
107
+ this.emit("sl-hide"), (t = this.closeWatcher) == null || t.destroy(), document.removeEventListener("keydown", this.handleDocumentKeyDown), await l(this.body);
108
+ let { keyframes: e, options: n } = d(this, "tooltip.hide", { dir: this.localize.dir() });
109
+ await p(this.popup.popup, e, n), this.popup.active = !1, this.body.hidden = !0, this.emit("sl-after-hide");
111
110
  }
112
111
  }
113
112
  async handleOptionsChange() {
@@ -117,20 +116,20 @@ var v = f`
117
116
  this.disabled && this.open && this.hide();
118
117
  }
119
118
  async show() {
120
- if (!this.open) return this.open = !0, i(this, "sl-after-show");
119
+ if (!this.open) return this.open = !0, c(this, "sl-after-show");
121
120
  }
122
121
  async hide() {
123
- if (this.open) return this.open = !1, i(this, "sl-after-hide");
122
+ if (this.open) return this.open = !1, c(this, "sl-after-hide");
124
123
  }
125
124
  render() {
126
- return p`
125
+ return s`
127
126
  <sl-popup
128
127
  part="base"
129
128
  exportparts="
130
129
  popup:base__popup,
131
130
  arrow:base__arrow
132
131
  "
133
- class=${g({
132
+ class=${m({
134
133
  tooltip: !0,
135
134
  "tooltip--open": this.open
136
135
  })}
@@ -156,19 +155,19 @@ var v = f`
156
155
  };
157
156
  //#endregion
158
157
  //#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.URTPIBTY.js
159
- y.styles = [r, v], y.dependencies = { "sl-popup": d }, e([h("slot:not([name])")], y.prototype, "defaultSlot", 2), e([h(".tooltip__body")], y.prototype, "body", 2), e([h("sl-popup")], y.prototype, "popup", 2), e([m()], y.prototype, "content", 2), e([m()], y.prototype, "placement", 2), e([m({
158
+ y.styles = [e, v], y.dependencies = { "sl-popup": g }, r([o("slot:not([name])")], y.prototype, "defaultSlot", 2), r([o(".tooltip__body")], y.prototype, "body", 2), r([o("sl-popup")], y.prototype, "popup", 2), r([i()], y.prototype, "content", 2), r([i()], y.prototype, "placement", 2), r([i({
160
159
  type: Boolean,
161
160
  reflect: !0
162
- })], y.prototype, "disabled", 2), e([m({ type: Number })], y.prototype, "distance", 2), e([m({
161
+ })], y.prototype, "disabled", 2), r([i({ type: Number })], y.prototype, "distance", 2), r([i({
163
162
  type: Boolean,
164
163
  reflect: !0
165
- })], y.prototype, "open", 2), e([m({ type: Number })], y.prototype, "skidding", 2), e([m()], y.prototype, "trigger", 2), e([m({ type: Boolean })], y.prototype, "hoist", 2), e([t("open", { waitUntilFirstUpdate: !0 })], y.prototype, "handleOpenChange", 1), e([t([
164
+ })], y.prototype, "open", 2), r([i({ type: Number })], y.prototype, "skidding", 2), r([i()], y.prototype, "trigger", 2), r([i({ type: Boolean })], y.prototype, "hoist", 2), r([n("open", { waitUntilFirstUpdate: !0 })], y.prototype, "handleOpenChange", 1), r([n([
166
165
  "content",
167
166
  "distance",
168
167
  "hoist",
169
168
  "placement",
170
169
  "skidding"
171
- ])], y.prototype, "handleOptionsChange", 1), e([t("disabled")], y.prototype, "handleDisabledChange", 1), c("tooltip.show", {
170
+ ])], y.prototype, "handleOptionsChange", 1), r([n("disabled")], y.prototype, "handleDisabledChange", 1), f("tooltip.show", {
172
171
  keyframes: [{
173
172
  opacity: 0,
174
173
  scale: .8
@@ -180,7 +179,7 @@ y.styles = [r, v], y.dependencies = { "sl-popup": d }, e([h("slot:not([name])")]
180
179
  duration: 150,
181
180
  easing: "ease"
182
181
  }
183
- }), c("tooltip.hide", {
182
+ }), f("tooltip.hide", {
184
183
  keyframes: [{
185
184
  opacity: 1,
186
185
  scale: 1
@@ -1,13 +1,12 @@
1
- import { t as e } from "./decorate-CKr8yG1g.js";
2
- import { t } from "./webmapx-base-tool-Bc9Wz0yA.js";
3
- import { css as n, html as r } from "lit";
4
- import { customElement as i, state as a } from "lit/decorators.js";
1
+ import { h as e, i as t, o as n, p as r } from "./decorators-d8E4nZJy.js";
2
+ import { t as i } from "./decorate-DNmmPsJp.js";
3
+ import { t as a } from "./webmapx-base-tool-idjVnrFA.js";
5
4
  //#region src/components/webmapx-3d-tool.ts
6
5
  var o, s = [
7
6
  0,
8
7
  30,
9
8
  60
10
- ], c = class extends t {
9
+ ], c = class extends a {
11
10
  static {
12
11
  o = this;
13
12
  }
@@ -15,7 +14,7 @@ var o, s = [
15
14
  super(...e), this.pitch = 0, this.terrainEnabled = !1, this.terrainSupported = !1, this.pitchSupported = !0;
16
15
  }
17
16
  static {
18
- this.styles = n`
17
+ this.styles = e`
19
18
  :host { display: block; padding: var(--webmapx-tool-padding, 0); font-size: 0.875rem; }
20
19
  .unsupported { color: var(--sl-color-neutral-500, #888); font-style: italic; }
21
20
  label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
@@ -171,6 +170,6 @@ var o, s = [
171
170
  `;
172
171
  }
173
172
  };
174
- e([a()], c.prototype, "pitch", void 0), e([a()], c.prototype, "terrainEnabled", void 0), e([a()], c.prototype, "terrainSupported", void 0), e([a()], c.prototype, "pitchSupported", void 0), c = o = e([i("webmapx-3d-tool")], c);
173
+ i([t()], c.prototype, "pitch", void 0), i([t()], c.prototype, "terrainEnabled", void 0), i([t()], c.prototype, "terrainSupported", void 0), i([t()], c.prototype, "pitchSupported", void 0), c = o = i([n("webmapx-3d-tool")], c);
175
174
  //#endregion
176
175
  export { c as Webmapx3dTool };
@@ -1,7 +1,7 @@
1
- import { n as e, r as t } from "./decorate-CKr8yG1g.js";
2
- import { LitElement as n } from "lit";
1
+ import { s as e } from "./decorators-d8E4nZJy.js";
2
+ import { n as t, r as n } from "./decorate-DNmmPsJp.js";
3
3
  //#region src/components/webmapx-base-tool.ts
4
- var r = class extends n {
4
+ var r = class extends e {
5
5
  constructor(...e) {
6
6
  super(...e), this.adapter = null, this.store = null, this.unsubscribe = null, this.configReadyHandler = null, this.mapReadyHandler = null, this.isSettingValue = !1;
7
7
  }
@@ -17,25 +17,25 @@ var r = class extends n {
17
17
  }
18
18
  bindToMap() {
19
19
  this.releaseStore();
20
- let t = e(this);
21
- if (!t) {
20
+ let e = t(this);
21
+ if (!e) {
22
22
  this.subscribeToMapReady();
23
23
  return;
24
24
  }
25
- this.adapter = t, this.store = t.store, this.unsubscribe = this.store.subscribe(this.handleStateChange.bind(this)), this.onMapAttached(t), this.onStateChanged(this.store.getState());
25
+ this.adapter = e, this.store = e.store, this.unsubscribe = this.store.subscribe(this.handleStateChange.bind(this)), this.onMapAttached(e), this.onStateChanged(this.store.getState());
26
26
  }
27
27
  releaseStore() {
28
28
  this.unsubscribeFromMapReady(), this.unsubscribe &&= (this.unsubscribe(), null), this.store = null, this.adapter = null, this.onMapDetached();
29
29
  }
30
30
  subscribeToMapReady() {
31
31
  if (this.mapReadyHandler) return;
32
- let e = t(this);
32
+ let e = n(this);
33
33
  e && (this.mapReadyHandler = () => {
34
34
  this.unsubscribeFromMapReady(), this.bindToMap();
35
35
  }, e.addEventListener("webmapx-map-ready", this.mapReadyHandler));
36
36
  }
37
37
  unsubscribeFromMapReady() {
38
- this.mapReadyHandler &&= (t(this)?.removeEventListener("webmapx-map-ready", this.mapReadyHandler), null);
38
+ this.mapReadyHandler &&= (n(this)?.removeEventListener("webmapx-map-ready", this.mapReadyHandler), null);
39
39
  }
40
40
  handleStateChange(e, t) {
41
41
  t === "UI" && this.isSettingValue || this.onStateChanged(e);
@@ -1,12 +1,11 @@
1
- import { r as e, t } from "./decorate-CKr8yG1g.js";
2
- import "./icon-CBNpO1lq.js";
3
- import "./button-BlZd3WPH.js";
4
- import "./checkbox-DB4oPyyw.js";
5
- import "./input-B212BH6L.js";
6
- import "./divider-BOFbR_Ny.js";
7
- import { KNOWN_TOOLS as n } from "./dynamic-layout-DmLc5_yX.js";
8
- import { LitElement as r, css as i, html as a } from "lit";
9
- import { customElement as o, state as s } from "lit/decorators.js";
1
+ import { h as e, i as t, o as n, p as r, s as i } from "./decorators-d8E4nZJy.js";
2
+ import { r as a, t as o } from "./decorate-DNmmPsJp.js";
3
+ import "./icon-DIjRqLFJ.js";
4
+ import "./button-B_8TR-jN.js";
5
+ import "./checkbox-DOopjfpt.js";
6
+ import "./input-DUaeAHt8.js";
7
+ import "./divider-Ly2UhLd1.js";
8
+ import { KNOWN_TOOLS as s } from "./dynamic-layout-DmLc5_yX.js";
10
9
  //#region src/components/webmapx-config-edit-tool.ts
11
10
  var c = new Set([
12
11
  "configedit",
@@ -154,12 +153,12 @@ function f(e, t, n, r, i, a, o, s, l) {
154
153
  state: x
155
154
  };
156
155
  }
157
- var p = class extends r {
156
+ var p = class extends i {
158
157
  constructor(...e) {
159
158
  super(...e), this.toolEnabled = /* @__PURE__ */ new Map(), this.onlyActiveLayers = !1, this.removeUnsupported = !1, this.projectTitle = "", this.filename = "config.json";
160
159
  }
161
160
  static {
162
- this.styles = i`
161
+ this.styles = e`
163
162
  :host { display: block; padding: 0.75rem; box-sizing: border-box; min-width: 220px; }
164
163
  h4 { margin: 0 0 0.6rem; font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; gap: 0.4rem; }
165
164
  .section-label { font-size: 0.78rem; font-weight: 600; color: var(--sl-color-neutral-600); margin: 0.6rem 0 0.3rem; }
@@ -170,19 +169,19 @@ var p = class extends r {
170
169
  `;
171
170
  }
172
171
  get mapElement() {
173
- return e(this);
172
+ return a(this);
174
173
  }
175
174
  connectedCallback() {
176
175
  super.connectedCallback(), this.loadFromConfig();
177
176
  }
178
177
  loadFromConfig() {
179
178
  let e = this.mapElement?.config, t = /* @__PURE__ */ new Map();
180
- for (let { id: r } of n) c.has(r) || t.set(r, d(e ?? {}, r));
179
+ for (let { id: n } of s) c.has(n) || t.set(n, d(e ?? {}, n));
181
180
  this.toolEnabled = t;
182
- let r = e?.project;
183
- this.projectTitle = typeof r?.title == "string" ? r.title : "";
184
- let i = (typeof r?.id == "string" ? r.id : "config").toLowerCase().replace(/[^a-z0-9]+/g, "_").replace(/^_|_$/g, "") || "config";
185
- this.filename = `${i}.json`;
181
+ let n = e?.project;
182
+ this.projectTitle = typeof n?.title == "string" ? n.title : "";
183
+ let r = (typeof n?.id == "string" ? n.id : "config").toLowerCase().replace(/[^a-z0-9]+/g, "_").replace(/^_|_$/g, "") || "config";
184
+ this.filename = `${r}.json`;
186
185
  }
187
186
  handleTitleInput(e) {
188
187
  this.projectTitle = e.target.value;
@@ -213,7 +212,7 @@ var p = class extends r {
213
212
  }
214
213
  }
215
214
  if (!l) {
216
- let { showToast: e } = await import("./toast-Bq2PmEpm.js").then((e) => e.n);
215
+ let { showToast: e } = await import("./toast-DDqkINxT.js").then((e) => e.n);
217
216
  e("<strong>No supported background layer available</strong><br>All background layers are unsupported by the current engine. Uncheck \"Remove engine-unsupported layers\" or switch engine.", { variant: "danger" });
218
217
  return;
219
218
  }
@@ -228,8 +227,8 @@ var p = class extends r {
228
227
  }).click(), URL.revokeObjectURL(h);
229
228
  }
230
229
  render() {
231
- let e = n.filter((e) => !c.has(e.id));
232
- return a`
230
+ let e = s.filter((e) => !c.has(e.id));
231
+ return r`
233
232
  <h4><sl-icon name="pencil-square"></sl-icon> Edit config</h4>
234
233
 
235
234
  <sl-input size="small" label="Project title" required
@@ -256,7 +255,7 @@ var p = class extends r {
256
255
 
257
256
  <div class="section-label">Visible tools:</div>
258
257
  <div class="tool-list">
259
- ${e.map((e) => a`
258
+ ${e.map((e) => r`
260
259
  <sl-checkbox
261
260
  ?checked=${this.toolEnabled.get(e.id) === !0}
262
261
  @sl-change=${(t) => this.toggle(e.id, t.target.checked)}>
@@ -279,6 +278,6 @@ var p = class extends r {
279
278
  `;
280
279
  }
281
280
  };
282
- t([s()], p.prototype, "toolEnabled", void 0), t([s()], p.prototype, "onlyActiveLayers", void 0), t([s()], p.prototype, "removeUnsupported", void 0), t([s()], p.prototype, "projectTitle", void 0), t([s()], p.prototype, "filename", void 0), p = t([o("webmapx-config-edit-tool")], p);
281
+ o([t()], p.prototype, "toolEnabled", void 0), o([t()], p.prototype, "onlyActiveLayers", void 0), o([t()], p.prototype, "removeUnsupported", void 0), o([t()], p.prototype, "projectTitle", void 0), o([t()], p.prototype, "filename", void 0), p = o([n("webmapx-config-edit-tool")], p);
283
282
  //#endregion
284
283
  export { p as WebmapxConfigEditTool };