@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,11 +1,8 @@
1
- import { a as e, n as t, o as n, r, s as i, t as a } from "./chunk.YHLNUJ7P-ByKy0MKm.js";
2
- import { css as o } from "lit";
3
- import { property as s, query as c, state as l } from "lit/decorators.js";
4
- import { classMap as u } from "lit/directives/class-map.js";
5
- import { html as d, literal as f } from "lit/static-html.js";
6
- import { ifDefined as p } from "lit/directives/if-defined.js";
1
+ import { a as e, c as t, i as n, l as r, s as i, t as a } from "./chunk.YHLNUJ7P-DINaI4pI.js";
2
+ import { a as o, h as s, i as c, n as l } from "./decorators-d8E4nZJy.js";
3
+ import { a as u, i as d, n as f, r as p } from "./chunk.NYIIDP5N-DoNij0Gf.js";
7
4
  //#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.6I2T3DLI.js
8
- var m = o`
5
+ var m = s`
9
6
  :host {
10
7
  display: inline-block;
11
8
  color: var(--sl-color-neutral-600);
@@ -52,7 +49,7 @@ var m = o`
52
49
  .icon-button__icon {
53
50
  pointer-events: none;
54
51
  }
55
- `, h = class extends t {
52
+ `, h = class extends n {
56
53
  constructor() {
57
54
  super(...arguments), this.hasFocus = !1, this.label = "", this.disabled = !1;
58
55
  }
@@ -75,7 +72,7 @@ var m = o`
75
72
  this.button.blur();
76
73
  }
77
74
  render() {
78
- let e = !!this.href, t = e ? f`a` : f`button`;
75
+ let e = !!this.href, t = e ? p`a` : p`button`;
79
76
  return d`
80
77
  <${t}
81
78
  part="base"
@@ -84,13 +81,13 @@ var m = o`
84
81
  "icon-button--disabled": !e && this.disabled,
85
82
  "icon-button--focused": this.hasFocus
86
83
  })}
87
- ?disabled=${p(e ? void 0 : this.disabled)}
88
- type=${p(e ? void 0 : "button")}
89
- href=${p(e ? this.href : void 0)}
90
- target=${p(e ? this.target : void 0)}
91
- download=${p(e ? this.download : void 0)}
92
- rel=${p(e && this.target ? "noreferrer noopener" : void 0)}
93
- role=${p(e ? void 0 : "button")}
84
+ ?disabled=${f(e ? void 0 : this.disabled)}
85
+ type=${f(e ? void 0 : "button")}
86
+ href=${f(e ? this.href : void 0)}
87
+ target=${f(e ? this.target : void 0)}
88
+ download=${f(e ? this.download : void 0)}
89
+ rel=${f(e && this.target ? "noreferrer noopener" : void 0)}
90
+ role=${f(e ? void 0 : "button")}
94
91
  aria-disabled=${this.disabled ? "true" : "false"}
95
92
  aria-label="${this.label}"
96
93
  tabindex=${this.disabled ? "-1" : "0"}
@@ -100,16 +97,16 @@ var m = o`
100
97
  >
101
98
  <sl-icon
102
99
  class="icon-button__icon"
103
- name=${p(this.name)}
104
- library=${p(this.library)}
105
- src=${p(this.src)}
100
+ name=${f(this.name)}
101
+ library=${f(this.library)}
102
+ src=${f(this.src)}
106
103
  aria-hidden="true"
107
104
  ></sl-icon>
108
105
  </${t}>
109
106
  `;
110
107
  }
111
108
  };
112
- h.styles = [r, m], h.dependencies = { "sl-icon": a }, e([c(".icon-button")], h.prototype, "button", 2), e([l()], h.prototype, "hasFocus", 2), e([s()], h.prototype, "name", 2), e([s()], h.prototype, "library", 2), e([s()], h.prototype, "src", 2), e([s()], h.prototype, "href", 2), e([s()], h.prototype, "target", 2), e([s()], h.prototype, "download", 2), e([s()], h.prototype, "label", 2), e([s({
109
+ h.styles = [e, m], h.dependencies = { "sl-icon": a }, i([l(".icon-button")], h.prototype, "button", 2), i([c()], h.prototype, "hasFocus", 2), i([o()], h.prototype, "name", 2), i([o()], h.prototype, "library", 2), i([o()], h.prototype, "src", 2), i([o()], h.prototype, "href", 2), i([o()], h.prototype, "target", 2), i([o()], h.prototype, "download", 2), i([o()], h.prototype, "label", 2), i([o({
113
110
  type: Boolean,
114
111
  reflect: !0
115
112
  })], h.prototype, "disabled", 2);
@@ -152,10 +149,10 @@ function S(e, t) {
152
149
  }
153
150
  //#endregion
154
151
  //#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.AJ3ENQ5C.js
155
- function C(e, t, r) {
152
+ function C(e, n, i) {
156
153
  return new Promise((a) => {
157
- if (r?.duration === Infinity) throw Error("Promise-based animations must be finite.");
158
- let o = e.animate(t, n(i({}, r), { duration: T() ? 0 : r.duration }));
154
+ if (i?.duration === Infinity) throw Error("Promise-based animations must be finite.");
155
+ let o = e.animate(n, t(r({}, i), { duration: T() ? 0 : i.duration }));
159
156
  o.addEventListener("cancel", a, { once: !0 }), o.addEventListener("finish", a, { once: !0 });
160
157
  });
161
158
  }
@@ -170,8 +167,8 @@ function E(e) {
170
167
  e.cancel(), requestAnimationFrame(t);
171
168
  })));
172
169
  }
173
- function D(e, t) {
174
- return e.map((e) => n(i({}, e), { height: e.height === "auto" ? `${t}px` : e.height }));
170
+ function D(e, n) {
171
+ return e.map((e) => t(r({}, e), { height: e.height === "auto" ? `${n}px` : e.height }));
175
172
  }
176
173
  //#endregion
177
174
  export { S as a, h as c, E as i, w as n, x as o, D as r, b as s, C as t };
@@ -0,0 +1,99 @@
1
+ import { c as e, l as t, p as n } from "./decorators-d8E4nZJy.js";
2
+ //#region node_modules/lit-html/directive.js
3
+ var r = {
4
+ ATTRIBUTE: 1,
5
+ CHILD: 2,
6
+ PROPERTY: 3,
7
+ BOOLEAN_ATTRIBUTE: 4,
8
+ EVENT: 5,
9
+ ELEMENT: 6
10
+ }, i = (e) => (...t) => ({
11
+ _$litDirective$: e,
12
+ values: t
13
+ }), a = class {
14
+ constructor(e) {}
15
+ get _$AU() {
16
+ return this._$AM._$AU;
17
+ }
18
+ _$AT(e, t, n) {
19
+ this._$Ct = e, this._$AM = t, this._$Ci = n;
20
+ }
21
+ _$AS(e, t) {
22
+ return this.update(e, t);
23
+ }
24
+ update(e, t) {
25
+ return this.render(...t);
26
+ }
27
+ }, o = i(class extends a {
28
+ constructor(e) {
29
+ if (super(e), e.type !== r.ATTRIBUTE || e.name !== "class" || e.strings?.length > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
30
+ }
31
+ render(e) {
32
+ return " " + Object.keys(e).filter(((t) => e[t])).join(" ") + " ";
33
+ }
34
+ update(e, [n]) {
35
+ if (this.st === void 0) {
36
+ this.st = /* @__PURE__ */ new Set(), e.strings !== void 0 && (this.nt = new Set(e.strings.join(" ").split(/\s/).filter(((e) => e !== ""))));
37
+ for (let e in n) n[e] && !this.nt?.has(e) && this.st.add(e);
38
+ return this.render(n);
39
+ }
40
+ let r = e.element.classList;
41
+ for (let e of this.st) e in n || (r.remove(e), this.st.delete(e));
42
+ for (let e in n) {
43
+ let t = !!n[e];
44
+ t === this.st.has(e) || this.nt?.has(e) || (t ? (r.add(e), this.st.add(e)) : (r.remove(e), this.st.delete(e)));
45
+ }
46
+ return t;
47
+ }
48
+ }), s = Symbol.for(""), c = (e) => {
49
+ if (e?.r === s) return e?._$litStatic$;
50
+ }, l = (e, ...t) => ({
51
+ _$litStatic$: t.reduce(((t, n, r) => t + ((e) => {
52
+ if (e._$litStatic$ !== void 0) return e._$litStatic$;
53
+ throw Error(`Value passed to 'literal' function must be a 'literal' result: ${e}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`);
54
+ })(n) + e[r + 1]), e[0]),
55
+ r: s
56
+ }), u = /* @__PURE__ */ new Map(), d = ((e) => (t, ...n) => {
57
+ let r = n.length, i, a, o = [], s = [], l, d = 0, f = !1;
58
+ for (; d < r;) {
59
+ for (l = t[d]; d < r && (a = n[d], i = c(a)) !== void 0;) l += i + t[++d], f = !0;
60
+ d !== r && s.push(a), o.push(l), d++;
61
+ }
62
+ if (d === r && o.push(t[r]), f) {
63
+ let e = o.join("$$lit$$");
64
+ (t = u.get(e)) === void 0 && (o.raw = o, u.set(e, t = o)), n = s;
65
+ }
66
+ return e(t, ...n);
67
+ })(n), f = (t) => t ?? e, p = class {
68
+ constructor(e, ...t) {
69
+ this.slotNames = [], this.handleSlotChange = (e) => {
70
+ let t = e.target;
71
+ (this.slotNames.includes("[default]") && !t.name || t.name && this.slotNames.includes(t.name)) && this.host.requestUpdate();
72
+ }, (this.host = e).addController(this), this.slotNames = t;
73
+ }
74
+ hasDefaultSlot() {
75
+ return [...this.host.childNodes].some((e) => {
76
+ if (e.nodeType === e.TEXT_NODE && e.textContent.trim() !== "") return !0;
77
+ if (e.nodeType === e.ELEMENT_NODE) {
78
+ let t = e;
79
+ if (t.tagName.toLowerCase() === "sl-visually-hidden") return !1;
80
+ if (!t.hasAttribute("slot")) return !0;
81
+ }
82
+ return !1;
83
+ });
84
+ }
85
+ hasNamedSlot(e) {
86
+ return this.host.querySelector(`:scope > [slot="${e}"]`) !== null;
87
+ }
88
+ test(e) {
89
+ return e === "[default]" ? this.hasDefaultSlot() : this.hasNamedSlot(e);
90
+ }
91
+ hostConnected() {
92
+ this.host.shadowRoot.addEventListener("slotchange", this.handleSlotChange);
93
+ }
94
+ hostDisconnected() {
95
+ this.host.shadowRoot.removeEventListener("slotchange", this.handleSlotChange);
96
+ }
97
+ };
98
+ //#endregion
99
+ export { o as a, r as c, d as i, f as n, i as o, l as r, a as s, p as t };
@@ -1,4 +1,4 @@
1
- import { css as e } from "lit";
1
+ import { h as e } from "./decorators-d8E4nZJy.js";
2
2
  //#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.SI4ACBFK.js
3
3
  var t = e`
4
4
  .form-control .form-control__label {
@@ -1,7 +1,5 @@
1
1
  import { t as e } from "./chunk.3Y6SB6QS-DUJ8Ickw.js";
2
- import { LitElement as t, css as n, html as r } from "lit";
3
- import { property as i, state as a } from "lit/decorators.js";
4
- import { isTemplateResult as o } from "lit/directive-helpers.js";
2
+ import { a as t, h as n, i as r, p as i, s as a, u as o } from "./decorators-d8E4nZJy.js";
5
3
  //#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.KAW7D32O.js
6
4
  var s = Object.defineProperty, c = Object.defineProperties, l = Object.getOwnPropertyDescriptor, u = Object.getOwnPropertyDescriptors, d = Object.getOwnPropertySymbols, f = Object.prototype.hasOwnProperty, p = Object.prototype.propertyIsEnumerable, m = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), h = (e) => {
7
5
  throw TypeError(e);
@@ -120,7 +118,7 @@ var F = n`
120
118
  [hidden] {
121
119
  display: none !important;
122
120
  }
123
- `, I, L = class extends t {
121
+ `, I, L = class extends a {
124
122
  constructor() {
125
123
  super(), S(this, I, !1), this.initialReflectedProperties = /* @__PURE__ */ new Map(), Object.entries(this.constructor.dependencies).forEach(([e, t]) => {
126
124
  this.constructor.define(e, t);
@@ -159,33 +157,33 @@ var F = n`
159
157
  });
160
158
  }
161
159
  };
162
- I = /* @__PURE__ */ new WeakMap(), L.version = "2.20.1", L.dependencies = {}, y([i()], L.prototype, "dir", 2), y([i()], L.prototype, "lang", 2);
160
+ I = /* @__PURE__ */ new WeakMap(), L.version = "2.20.1", L.dependencies = {}, y([t()], L.prototype, "dir", 2), y([t()], L.prototype, "lang", 2);
163
161
  //#endregion
164
- //#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.YHLNUJ7P.js
165
- var R = Symbol(), z = Symbol(), B, V = /* @__PURE__ */ new Map(), H = class extends L {
162
+ //#region node_modules/lit-html/directive-helpers.js
163
+ var { I: R } = o, z = (e, t) => t === void 0 ? e?._$litType$ !== void 0 : e?._$litType$ === t, B = (e) => e.strings === void 0, V = {}, H = (e, t = V) => e._$AH = t, U = Symbol(), W = Symbol(), G, K = /* @__PURE__ */ new Map(), q = class extends L {
166
164
  constructor() {
167
165
  super(...arguments), this.initialRender = !1, this.svg = null, this.label = "", this.library = "default";
168
166
  }
169
167
  async resolveIcon(e, t) {
170
168
  let n;
171
- if (t?.spriteSheet) return this.svg = r`<svg part="svg">
169
+ if (t?.spriteSheet) return this.svg = i`<svg part="svg">
172
170
  <use part="use" href="${e}"></use>
173
171
  </svg>`, this.svg;
174
172
  try {
175
- if (n = await fetch(e, { mode: "cors" }), !n.ok) return n.status === 410 ? R : z;
173
+ if (n = await fetch(e, { mode: "cors" }), !n.ok) return n.status === 410 ? U : W;
176
174
  } catch {
177
- return z;
175
+ return W;
178
176
  }
179
177
  try {
180
178
  let e = document.createElement("div");
181
179
  e.innerHTML = await n.text();
182
180
  let t = e.firstElementChild;
183
- if ((t?.tagName)?.toLowerCase() !== "svg") return R;
184
- B ||= new DOMParser();
185
- let r = B.parseFromString(t.outerHTML, "text/html").body.querySelector("svg");
186
- return r ? (r.part.add("svg"), document.adoptNode(r)) : R;
181
+ if ((t?.tagName)?.toLowerCase() !== "svg") return U;
182
+ G ||= new DOMParser();
183
+ let r = G.parseFromString(t.outerHTML, "text/html").body.querySelector("svg");
184
+ return r ? (r.part.add("svg"), document.adoptNode(r)) : U;
187
185
  } catch {
188
- return R;
186
+ return U;
189
187
  }
190
188
  }
191
189
  connectedCallback() {
@@ -217,11 +215,11 @@ var R = Symbol(), z = Symbol(), B, V = /* @__PURE__ */ new Map(), H = class exte
217
215
  this.svg = null;
218
216
  return;
219
217
  }
220
- let i = V.get(t);
221
- if (i || (i = this.resolveIcon(t, r), V.set(t, i)), !this.initialRender) return;
218
+ let i = K.get(t);
219
+ if (i || (i = this.resolveIcon(t, r), K.set(t, i)), !this.initialRender) return;
222
220
  let a = await i;
223
- if (a === z && V.delete(t), t === this.getIconSource().url) {
224
- if (o(a)) {
221
+ if (a === W && K.delete(t), t === this.getIconSource().url) {
222
+ if (z(a)) {
225
223
  if (this.svg = a, r) {
226
224
  await this.updateComplete;
227
225
  let e = this.shadowRoot.querySelector("[part='svg']");
@@ -230,8 +228,8 @@ var R = Symbol(), z = Symbol(), B, V = /* @__PURE__ */ new Map(), H = class exte
230
228
  return;
231
229
  }
232
230
  switch (a) {
233
- case z:
234
- case R:
231
+ case W:
232
+ case U:
235
233
  this.svg = null, this.emit("sl-error");
236
234
  break;
237
235
  default: this.svg = a.cloneNode(!0), (e = r?.mutator) == null || e.call(r, this.svg), this.emit("sl-load");
@@ -242,10 +240,10 @@ var R = Symbol(), z = Symbol(), B, V = /* @__PURE__ */ new Map(), H = class exte
242
240
  return this.svg;
243
241
  }
244
242
  };
245
- H.styles = [F, N], y([a()], H.prototype, "svg", 2), y([i({ reflect: !0 })], H.prototype, "name", 2), y([i()], H.prototype, "src", 2), y([i()], H.prototype, "label", 2), y([i({ reflect: !0 })], H.prototype, "library", 2), y([P("label")], H.prototype, "handleLabelChange", 1), y([P([
243
+ q.styles = [F, N], y([r()], q.prototype, "svg", 2), y([t({ reflect: !0 })], q.prototype, "name", 2), y([t()], q.prototype, "src", 2), y([t()], q.prototype, "label", 2), y([t({ reflect: !0 })], q.prototype, "library", 2), y([P("label")], q.prototype, "handleLabelChange", 1), y([P([
246
244
  "name",
247
245
  "src",
248
246
  "library"
249
- ])], H.prototype, "setIcon", 1);
247
+ ])], q.prototype, "setIcon", 1);
250
248
  //#endregion
251
- export { y as a, T as c, P as i, L as n, v as o, F as r, _ as s, H as t };
249
+ export { F as a, v as c, L as i, _ as l, B as n, P as o, H as r, y as s, q as t, T as u };
@@ -1,5 +1,5 @@
1
1
  import { n as e } from "./src-CL94RDe3.js";
2
- import { t } from "./toast-Bq2PmEpm.js";
2
+ import { t } from "./toast-DDqkINxT.js";
3
3
  //#region src/map/adapter-registry.ts
4
4
  var n = /* @__PURE__ */ new Map(), r = "maplibre";
5
5
  function i(e, t) {