@edugis-org/webmapx 0.1.9 → 0.1.11

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 (45) hide show
  1. package/dist-lib/alert-C_G5X6J8.js +311 -0
  2. package/dist-lib/button-BlZd3WPH.js +744 -0
  3. package/dist-lib/checkbox-DB4oPyyw.js +287 -0
  4. package/dist-lib/chunk.36O46B5H-km1dakSW.js +77 -0
  5. package/dist-lib/chunk.3RPBFEDE-Cxq6VVR6.js +138 -0
  6. package/dist-lib/chunk.3Y6SB6QS-DUJ8Ickw.js +18 -0
  7. package/dist-lib/chunk.5JY5FUCG-CYkzbQXS.js +1071 -0
  8. package/dist-lib/chunk.6CTB5ZDJ-DjZrBd6Y.js +99 -0
  9. package/dist-lib/chunk.AJ3ENQ5C-DXVGX5Dn.js +177 -0
  10. package/dist-lib/chunk.LD4M4QGE-CiCfhE8r.js +8 -0
  11. package/dist-lib/chunk.NYIIDP5N-B4UCI-rQ.js +34 -0
  12. package/dist-lib/chunk.RWUUFNUL-DFztA4uV.js +43 -0
  13. package/dist-lib/chunk.SI4ACBFK-CLb9VfMG.js +61 -0
  14. package/dist-lib/chunk.YHLNUJ7P-ByKy0MKm.js +251 -0
  15. package/dist-lib/{decorate-DnZTfaod.js → decorate-CKr8yG1g.js} +1 -1
  16. package/dist-lib/divider-BOFbR_Ny.js +41 -0
  17. package/dist-lib/icon-CBNpO1lq.js +9 -0
  18. package/dist-lib/icon-button-B5rXu3Gg.js +410 -0
  19. package/dist-lib/input-B212BH6L.js +575 -0
  20. package/dist-lib/option-BQN9Zz_8.js +1108 -0
  21. package/dist-lib/spinner-DdcBaa3z.js +6 -0
  22. package/dist-lib/{toast-BsoXOdeA.js → toast-Bq2PmEpm.js} +1 -1
  23. package/dist-lib/tooltip-CBGOiZwJ.js +197 -0
  24. package/dist-lib/{webmapx-3d-tool-CLppA7mK.js → webmapx-3d-tool-CKoLGMpk.js} +2 -2
  25. package/dist-lib/{webmapx-base-tool-DfRa7TlD.js → webmapx-base-tool-Bc9Wz0yA.js} +1 -1
  26. package/dist-lib/{webmapx-config-edit-tool-BztWspia.js → webmapx-config-edit-tool-7265_DNz.js} +7 -7
  27. package/dist-lib/{webmapx-coordinates-tool-DnTSkrRG.js → webmapx-coordinates-tool-C964bdEG.js} +3 -3
  28. package/dist-lib/{webmapx-core-bundle-CH-5vYXU.js → webmapx-core-bundle-Q6mWOib1.js} +1579 -671
  29. package/dist-lib/webmapx-draw-tool-6QRr5Gip.js +4315 -0
  30. package/dist-lib/{webmapx-geolocation-tool-DIMh2kIr.js → webmapx-geolocation-tool-qxN5aaVB.js} +6 -7
  31. package/dist-lib/{webmapx-import-layer-tool-DMiC1TpU.js → webmapx-import-layer-tool-tJ374qHR.js} +2 -2
  32. package/dist-lib/{webmapx-info-tool-D-XbAU9J.js → webmapx-info-tool-C3txgv3v.js} +4 -4
  33. package/dist-lib/{webmapx-language-osmvector-BAw9TR-M.js → webmapx-language-osmvector-jQzTOPU1.js} +3 -4
  34. package/dist-lib/{webmapx-measure-tool-CXlg11s8.js → webmapx-measure-tool-Cxxrzgdf.js} +4 -4
  35. package/dist-lib/{webmapx-modal-tool-Cs7LRrgW.js → webmapx-modal-tool-DQVHNXqX.js} +2 -2
  36. package/dist-lib/{webmapx-plugin-tool-qe2yTrWB.js → webmapx-plugin-tool-BNZ61x6s.js} +1 -1
  37. package/dist-lib/{webmapx-print-tool-DrK9sLC7.js → webmapx-print-tool-BDOTbS6u.js} +7 -8
  38. package/dist-lib/{webmapx-search-tool-H7NisgWH.js → webmapx-search-tool-CHlsE2Wx.js} +2 -2
  39. package/dist-lib/webmapx-settings-B0AT9Vjn.js +482 -0
  40. package/dist-lib/{webmapx-truearea-tool-CSU9mE1D.js → webmapx-truearea-tool-dxSgcbOj.js} +2 -2
  41. package/dist-lib/{webmapx-view-mode-tool-D1QyQfq8.js → webmapx-view-mode-tool-DVSMakdh.js} +2 -2
  42. package/dist-lib/webmapx.js +312 -311
  43. package/package.json +1 -1
  44. package/dist-lib/webmapx-draw-tool-DxQgUF1Q.js +0 -2117
  45. package/dist-lib/webmapx-settings-EHSm-AGU.js +0 -167
@@ -0,0 +1,99 @@
1
+ //#region node_modules/@shoelace-style/localize/dist/index.js
2
+ var e = /* @__PURE__ */ new Set(), t = /* @__PURE__ */ new Map(), n, r = "ltr", i = "en", a = typeof MutationObserver < "u" && typeof document < "u" && document.documentElement !== void 0;
3
+ if (a) {
4
+ let e = new MutationObserver(s);
5
+ r = document.documentElement.dir || "ltr", i = document.documentElement.lang || navigator.language, e.observe(document.documentElement, {
6
+ attributes: !0,
7
+ attributeFilter: ["dir", "lang"]
8
+ });
9
+ }
10
+ function o(...e) {
11
+ e.map((e) => {
12
+ let r = e.$code.toLowerCase();
13
+ t.has(r) ? t.set(r, Object.assign(Object.assign({}, t.get(r)), e)) : t.set(r, e), n ||= e;
14
+ }), s();
15
+ }
16
+ function s() {
17
+ a && (r = document.documentElement.dir || "ltr", i = document.documentElement.lang || navigator.language), [...e.keys()].map((e) => {
18
+ typeof e.requestUpdate == "function" && e.requestUpdate();
19
+ });
20
+ }
21
+ var c = class {
22
+ constructor(e) {
23
+ this.host = e, this.host.addController(this);
24
+ }
25
+ hostConnected() {
26
+ e.add(this.host);
27
+ }
28
+ hostDisconnected() {
29
+ e.delete(this.host);
30
+ }
31
+ dir() {
32
+ return `${this.host.dir || r}`.toLowerCase();
33
+ }
34
+ lang() {
35
+ return `${this.host.lang || i}`.toLowerCase();
36
+ }
37
+ getTranslationData(e) {
38
+ let n = new Intl.Locale(e.replace(/_/g, "-")), r = n?.language.toLowerCase(), i = (n?.region)?.toLowerCase() ?? "";
39
+ return {
40
+ locale: n,
41
+ language: r,
42
+ region: i,
43
+ primary: t.get(`${r}-${i}`),
44
+ secondary: t.get(r)
45
+ };
46
+ }
47
+ exists(e, t) {
48
+ let { primary: r, secondary: i } = this.getTranslationData(t.lang ?? this.lang());
49
+ return t = Object.assign({ includeFallback: !1 }, t), !!(r && r[e] || i && i[e] || t.includeFallback && n && n[e]);
50
+ }
51
+ term(e, ...t) {
52
+ let { primary: r, secondary: i } = this.getTranslationData(this.lang()), a;
53
+ if (r && r[e]) a = r[e];
54
+ else if (i && i[e]) a = i[e];
55
+ else if (n && n[e]) a = n[e];
56
+ else return console.error(`No translation found for: ${String(e)}`), String(e);
57
+ return typeof a == "function" ? a(...t) : a;
58
+ }
59
+ date(e, t) {
60
+ return e = new Date(e), new Intl.DateTimeFormat(this.lang(), t).format(e);
61
+ }
62
+ number(e, t) {
63
+ return e = Number(e), isNaN(e) ? "" : new Intl.NumberFormat(this.lang(), t).format(e);
64
+ }
65
+ relativeTime(e, t, n) {
66
+ return new Intl.RelativeTimeFormat(this.lang(), n).format(e, t);
67
+ }
68
+ }, l = {
69
+ $code: "en",
70
+ $name: "English",
71
+ $dir: "ltr",
72
+ carousel: "Carousel",
73
+ clearEntry: "Clear entry",
74
+ close: "Close",
75
+ copied: "Copied",
76
+ copy: "Copy",
77
+ currentValue: "Current value",
78
+ error: "Error",
79
+ goToSlide: (e, t) => `Go to slide ${e} of ${t}`,
80
+ hidePassword: "Hide password",
81
+ loading: "Loading",
82
+ nextSlide: "Next slide",
83
+ numOptionsSelected: (e) => e === 0 ? "No options selected" : e === 1 ? "1 option selected" : `${e} options selected`,
84
+ previousSlide: "Previous slide",
85
+ progress: "Progress",
86
+ remove: "Remove",
87
+ resize: "Resize",
88
+ scrollToEnd: "Scroll to end",
89
+ scrollToStart: "Scroll to start",
90
+ selectAColorFromTheScreen: "Select a color from the screen",
91
+ showPassword: "Show password",
92
+ slideNum: (e) => `Slide ${e}`,
93
+ toggleColorFormat: "Toggle color format"
94
+ };
95
+ o(l);
96
+ var u = l, d = class extends c {};
97
+ o(u);
98
+ //#endregion
99
+ export { d as t };
@@ -0,0 +1,177 @@
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";
7
+ //#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.6I2T3DLI.js
8
+ var m = o`
9
+ :host {
10
+ display: inline-block;
11
+ color: var(--sl-color-neutral-600);
12
+ }
13
+
14
+ .icon-button {
15
+ flex: 0 0 auto;
16
+ display: flex;
17
+ align-items: center;
18
+ background: none;
19
+ border: none;
20
+ border-radius: var(--sl-border-radius-medium);
21
+ font-size: inherit;
22
+ color: inherit;
23
+ padding: var(--sl-spacing-x-small);
24
+ cursor: pointer;
25
+ transition: var(--sl-transition-x-fast) color;
26
+ -webkit-appearance: none;
27
+ }
28
+
29
+ .icon-button:hover:not(.icon-button--disabled),
30
+ .icon-button:focus-visible:not(.icon-button--disabled) {
31
+ color: var(--sl-color-primary-600);
32
+ }
33
+
34
+ .icon-button:active:not(.icon-button--disabled) {
35
+ color: var(--sl-color-primary-700);
36
+ }
37
+
38
+ .icon-button:focus {
39
+ outline: none;
40
+ }
41
+
42
+ .icon-button--disabled {
43
+ opacity: 0.5;
44
+ cursor: not-allowed;
45
+ }
46
+
47
+ .icon-button:focus-visible {
48
+ outline: var(--sl-focus-ring);
49
+ outline-offset: var(--sl-focus-ring-offset);
50
+ }
51
+
52
+ .icon-button__icon {
53
+ pointer-events: none;
54
+ }
55
+ `, h = class extends t {
56
+ constructor() {
57
+ super(...arguments), this.hasFocus = !1, this.label = "", this.disabled = !1;
58
+ }
59
+ handleBlur() {
60
+ this.hasFocus = !1, this.emit("sl-blur");
61
+ }
62
+ handleFocus() {
63
+ this.hasFocus = !0, this.emit("sl-focus");
64
+ }
65
+ handleClick(e) {
66
+ this.disabled && (e.preventDefault(), e.stopPropagation());
67
+ }
68
+ click() {
69
+ this.button.click();
70
+ }
71
+ focus(e) {
72
+ this.button.focus(e);
73
+ }
74
+ blur() {
75
+ this.button.blur();
76
+ }
77
+ render() {
78
+ let e = !!this.href, t = e ? f`a` : f`button`;
79
+ return d`
80
+ <${t}
81
+ part="base"
82
+ class=${u({
83
+ "icon-button": !0,
84
+ "icon-button--disabled": !e && this.disabled,
85
+ "icon-button--focused": this.hasFocus
86
+ })}
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")}
94
+ aria-disabled=${this.disabled ? "true" : "false"}
95
+ aria-label="${this.label}"
96
+ tabindex=${this.disabled ? "-1" : "0"}
97
+ @blur=${this.handleBlur}
98
+ @focus=${this.handleFocus}
99
+ @click=${this.handleClick}
100
+ >
101
+ <sl-icon
102
+ class="icon-button__icon"
103
+ name=${p(this.name)}
104
+ library=${p(this.library)}
105
+ src=${p(this.src)}
106
+ aria-hidden="true"
107
+ ></sl-icon>
108
+ </${t}>
109
+ `;
110
+ }
111
+ };
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({
113
+ type: Boolean,
114
+ reflect: !0
115
+ })], h.prototype, "disabled", 2);
116
+ //#endregion
117
+ //#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.K7JGTRV7.js
118
+ var g = /* @__PURE__ */ new Map(), _ = /* @__PURE__ */ new WeakMap();
119
+ function v(e) {
120
+ return e ?? {
121
+ keyframes: [],
122
+ options: { duration: 0 }
123
+ };
124
+ }
125
+ function y(e, t) {
126
+ return t.toLowerCase() === "rtl" ? {
127
+ keyframes: e.rtlKeyframes || e.keyframes,
128
+ options: e.options
129
+ } : e;
130
+ }
131
+ function b(e, t) {
132
+ g.set(e, v(t));
133
+ }
134
+ function x(e, t, n) {
135
+ let r = _.get(e);
136
+ if (r?.[t]) return y(r[t], n.dir);
137
+ let i = g.get(t);
138
+ return i ? y(i, n.dir) : {
139
+ keyframes: [],
140
+ options: { duration: 0 }
141
+ };
142
+ }
143
+ //#endregion
144
+ //#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.B4BZKR24.js
145
+ function S(e, t) {
146
+ return new Promise((n) => {
147
+ function r(i) {
148
+ i.target === e && (e.removeEventListener(t, r), n());
149
+ }
150
+ e.addEventListener(t, r);
151
+ });
152
+ }
153
+ //#endregion
154
+ //#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.AJ3ENQ5C.js
155
+ function C(e, t, r) {
156
+ 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 }));
159
+ o.addEventListener("cancel", a, { once: !0 }), o.addEventListener("finish", a, { once: !0 });
160
+ });
161
+ }
162
+ function w(e) {
163
+ return e = e.toString().toLowerCase(), e.indexOf("ms") > -1 ? parseFloat(e) : e.indexOf("s") > -1 ? parseFloat(e) * 1e3 : parseFloat(e);
164
+ }
165
+ function T() {
166
+ return window.matchMedia("(prefers-reduced-motion: reduce)").matches;
167
+ }
168
+ function E(e) {
169
+ return Promise.all(e.getAnimations().map((e) => new Promise((t) => {
170
+ e.cancel(), requestAnimationFrame(t);
171
+ })));
172
+ }
173
+ function D(e, t) {
174
+ return e.map((e) => n(i({}, e), { height: e.height === "auto" ? `${t}px` : e.height }));
175
+ }
176
+ //#endregion
177
+ 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,8 @@
1
+ //#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.LD4M4QGE.js
2
+ var e = (e) => {
3
+ var t;
4
+ let { activeElement: n } = document;
5
+ n && e.contains(n) && ((t = document.activeElement) == null || t.blur());
6
+ };
7
+ //#endregion
8
+ export { e as t };
@@ -0,0 +1,34 @@
1
+ //#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.NYIIDP5N.js
2
+ var e = class {
3
+ constructor(e, ...t) {
4
+ this.slotNames = [], this.handleSlotChange = (e) => {
5
+ let t = e.target;
6
+ (this.slotNames.includes("[default]") && !t.name || t.name && this.slotNames.includes(t.name)) && this.host.requestUpdate();
7
+ }, (this.host = e).addController(this), this.slotNames = t;
8
+ }
9
+ hasDefaultSlot() {
10
+ return [...this.host.childNodes].some((e) => {
11
+ if (e.nodeType === e.TEXT_NODE && e.textContent.trim() !== "") return !0;
12
+ if (e.nodeType === e.ELEMENT_NODE) {
13
+ let t = e;
14
+ if (t.tagName.toLowerCase() === "sl-visually-hidden") return !1;
15
+ if (!t.hasAttribute("slot")) return !0;
16
+ }
17
+ return !1;
18
+ });
19
+ }
20
+ hasNamedSlot(e) {
21
+ return this.host.querySelector(`:scope > [slot="${e}"]`) !== null;
22
+ }
23
+ test(e) {
24
+ return e === "[default]" ? this.hasDefaultSlot() : this.hasNamedSlot(e);
25
+ }
26
+ hostConnected() {
27
+ this.host.shadowRoot.addEventListener("slotchange", this.handleSlotChange);
28
+ }
29
+ hostDisconnected() {
30
+ this.host.shadowRoot.removeEventListener("slotchange", this.handleSlotChange);
31
+ }
32
+ };
33
+ //#endregion
34
+ export { e as t };
@@ -0,0 +1,43 @@
1
+ //#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.RWUUFNUL.js
2
+ function e(e, t) {
3
+ return {
4
+ top: Math.round(e.getBoundingClientRect().top - t.getBoundingClientRect().top),
5
+ left: Math.round(e.getBoundingClientRect().left - t.getBoundingClientRect().left)
6
+ };
7
+ }
8
+ var t = /* @__PURE__ */ new Set();
9
+ function n() {
10
+ let e = document.documentElement.clientWidth;
11
+ return Math.abs(window.innerWidth - e);
12
+ }
13
+ function r() {
14
+ let e = Number(getComputedStyle(document.body).paddingRight.replace(/px/, ""));
15
+ return isNaN(e) || !e ? 0 : e;
16
+ }
17
+ function i(e) {
18
+ if (t.add(e), !document.documentElement.classList.contains("sl-scroll-lock")) {
19
+ let e = n() + r(), t = getComputedStyle(document.documentElement).scrollbarGutter;
20
+ (!t || t === "auto") && (t = "stable"), e < 2 && (t = ""), document.documentElement.style.setProperty("--sl-scroll-lock-gutter", t), document.documentElement.classList.add("sl-scroll-lock"), document.documentElement.style.setProperty("--sl-scroll-lock-size", `${e}px`);
21
+ }
22
+ }
23
+ function a(e) {
24
+ t.delete(e), t.size === 0 && (document.documentElement.classList.remove("sl-scroll-lock"), document.documentElement.style.removeProperty("--sl-scroll-lock-size"));
25
+ }
26
+ function o(t, n, r = "vertical", i = "smooth") {
27
+ let a = e(t, n), o = a.top + n.scrollTop, s = a.left + n.scrollLeft, c = n.scrollLeft, l = n.scrollLeft + n.offsetWidth, u = n.scrollTop, d = n.scrollTop + n.offsetHeight;
28
+ (r === "horizontal" || r === "both") && (s < c ? n.scrollTo({
29
+ left: s,
30
+ behavior: i
31
+ }) : s + t.clientWidth > l && n.scrollTo({
32
+ left: s - n.offsetWidth + t.clientWidth,
33
+ behavior: i
34
+ })), (r === "vertical" || r === "both") && (o < u ? n.scrollTo({
35
+ top: o,
36
+ behavior: i
37
+ }) : o + t.clientHeight > d && n.scrollTo({
38
+ top: o - n.offsetHeight + t.clientHeight,
39
+ behavior: i
40
+ }));
41
+ }
42
+ //#endregion
43
+ export { o as n, a as r, i as t };
@@ -0,0 +1,61 @@
1
+ import { css as e } from "lit";
2
+ //#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.SI4ACBFK.js
3
+ var t = e`
4
+ .form-control .form-control__label {
5
+ display: none;
6
+ }
7
+
8
+ .form-control .form-control__help-text {
9
+ display: none;
10
+ }
11
+
12
+ /* Label */
13
+ .form-control--has-label .form-control__label {
14
+ display: inline-block;
15
+ color: var(--sl-input-label-color);
16
+ margin-bottom: var(--sl-spacing-3x-small);
17
+ }
18
+
19
+ .form-control--has-label.form-control--small .form-control__label {
20
+ font-size: var(--sl-input-label-font-size-small);
21
+ }
22
+
23
+ .form-control--has-label.form-control--medium .form-control__label {
24
+ font-size: var(--sl-input-label-font-size-medium);
25
+ }
26
+
27
+ .form-control--has-label.form-control--large .form-control__label {
28
+ font-size: var(--sl-input-label-font-size-large);
29
+ }
30
+
31
+ :host([required]) .form-control--has-label .form-control__label::after {
32
+ content: var(--sl-input-required-content);
33
+ margin-inline-start: var(--sl-input-required-content-offset);
34
+ color: var(--sl-input-required-content-color);
35
+ }
36
+
37
+ /* Help text */
38
+ .form-control--has-help-text .form-control__help-text {
39
+ display: block;
40
+ color: var(--sl-input-help-text-color);
41
+ margin-top: var(--sl-spacing-3x-small);
42
+ }
43
+
44
+ .form-control--has-help-text.form-control--small .form-control__help-text {
45
+ font-size: var(--sl-input-help-text-font-size-small);
46
+ }
47
+
48
+ .form-control--has-help-text.form-control--medium .form-control__help-text {
49
+ font-size: var(--sl-input-help-text-font-size-medium);
50
+ }
51
+
52
+ .form-control--has-help-text.form-control--large .form-control__help-text {
53
+ font-size: var(--sl-input-help-text-font-size-large);
54
+ }
55
+
56
+ .form-control--has-help-text.form-control--radio-group .form-control__help-text {
57
+ margin-top: var(--sl-spacing-2x-small);
58
+ }
59
+ `;
60
+ //#endregion
61
+ export { t };