@edugis-org/webmapx 0.1.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 (84) hide show
  1. package/README.md +149 -0
  2. package/dist-lib/WMTS-DCN4zX0-.js +1169 -0
  3. package/dist-lib/alert-GeHlqlN8.js +310 -0
  4. package/dist-lib/assets/epsg-lookup.worker-J7TVnHDq.js +1 -0
  5. package/dist-lib/assets/shapefile.worker-kQfZj6G2.js +4 -0
  6. package/dist-lib/attribution-format-B4f05_u0.js +62 -0
  7. package/dist-lib/button-DFdGkRPQ.js +741 -0
  8. package/dist-lib/cesium-adapter-BHXNytkU.js +1488 -0
  9. package/dist-lib/checkbox-QoR4S8tV.js +284 -0
  10. package/dist-lib/chunk-HEgqtunE.js +20 -0
  11. package/dist-lib/chunk.36O46B5H-B6ZL7Sm1.js +77 -0
  12. package/dist-lib/chunk.3RPBFEDE-BFO1fHVm.js +138 -0
  13. package/dist-lib/chunk.5JY5FUCG-DTXsslmx.js +1090 -0
  14. package/dist-lib/chunk.6CTB5ZDJ-DjZrBd6Y.js +99 -0
  15. package/dist-lib/chunk.AJ3ENQ5C-Ci7Gm2b6.js +175 -0
  16. package/dist-lib/chunk.LD4M4QGE-CiCfhE8r.js +8 -0
  17. package/dist-lib/chunk.NYIIDP5N-BikXIStD.js +99 -0
  18. package/dist-lib/chunk.RWUUFNUL-DFztA4uV.js +43 -0
  19. package/dist-lib/chunk.SI4ACBFK-CLb9VfMG.js +61 -0
  20. package/dist-lib/chunk.YHLNUJ7P-D-kanrCf.js +503 -0
  21. package/dist-lib/core-CMAlSR68.js +22 -0
  22. package/dist-lib/decorate-CWgUV1hU.js +1139 -0
  23. package/dist-lib/decorators-B35AgiCU.js +351 -0
  24. package/dist-lib/deferred-query-service-BJDcngw6.js +386 -0
  25. package/dist-lib/dist-Dm6b7XCs.js +12318 -0
  26. package/dist-lib/dist-Ha9LQCut.js +244 -0
  27. package/dist-lib/dist-c1PlDAd1.js +2359 -0
  28. package/dist-lib/dist-kKlmcBXq.js +50 -0
  29. package/dist-lib/divider-CPm675yY.js +41 -0
  30. package/dist-lib/dropped-config-C_GyVa8o.js +17 -0
  31. package/dist-lib/dropped-layer-builder-DAaYgUPk.js +396 -0
  32. package/dist-lib/epsg-definitions-BZLZWa8Q.js +668 -0
  33. package/dist-lib/esm-CTuscnN5.js +46 -0
  34. package/dist-lib/file-sniff-Dhxj3KTF.js +251 -0
  35. package/dist-lib/geo-calculations-DbFJAUoI.js +30 -0
  36. package/dist-lib/icon-CEOgWlro.js +9 -0
  37. package/dist-lib/icon-button-Da_nBTy3.js +408 -0
  38. package/dist-lib/input-CeGntPlT.js +590 -0
  39. package/dist-lib/layer-discovery-afWzu5hY.js +2825 -0
  40. package/dist-lib/leaflet-adapter-D9djjrKv.js +1227 -0
  41. package/dist-lib/lib-CdHVicAE.js +4074 -0
  42. package/dist-lib/map-layer-registry-2cmkiRDK.js +62 -0
  43. package/dist-lib/maplibre-adapter-TFc3e0G9.js +1190 -0
  44. package/dist-lib/maplibre-expression-evaluator-DCWUcpwf.js +7233 -0
  45. package/dist-lib/marker-utils-DztWXeop.js +12 -0
  46. package/dist-lib/ol-tilegrid-9VtyxaLG.js +64 -0
  47. package/dist-lib/openlayers-adapter-DVW1KCRv.js +13307 -0
  48. package/dist-lib/option-CBxl1mZP.js +1106 -0
  49. package/dist-lib/papaparse.min-B7v3c0D7.js +501 -0
  50. package/dist-lib/rbush-C8k41T4z.js +254 -0
  51. package/dist-lib/shapefile-SawVY6xg.js +207 -0
  52. package/dist-lib/spinner-DysxdNG9.js +6 -0
  53. package/dist-lib/src-CL94RDe3.js +111 -0
  54. package/dist-lib/throttle-BeneRNYK.js +16 -0
  55. package/dist-lib/toast-Cm28o9U6.js +15 -0
  56. package/dist-lib/togeojson.es-DAgiTBvg.js +579 -0
  57. package/dist-lib/tooltip-Cucn1SiD.js +197 -0
  58. package/dist-lib/webmapx-3d-tool-D4CTD2gB.js +176 -0
  59. package/dist-lib/webmapx-base-tool-Dm9NAWLD.js +75 -0
  60. package/dist-lib/webmapx-config-edit-tool-DCTyxqTk.js +389 -0
  61. package/dist-lib/webmapx-coordinates-tool-jeWohup9.js +648 -0
  62. package/dist-lib/webmapx-core-bundle-BDImi1RE.js +8203 -0
  63. package/dist-lib/webmapx-draw-tool-DooAV8cF.js +4336 -0
  64. package/dist-lib/webmapx-geolocation-tool-Rw3-Iad1.js +788 -0
  65. package/dist-lib/webmapx-import-layer-tool-DRYviHd5.js +250 -0
  66. package/dist-lib/webmapx-info-tool-BJA157cy.js +412 -0
  67. package/dist-lib/webmapx-language-osmvector-M5y_lwOg.js +489 -0
  68. package/dist-lib/webmapx-measure-tool-BXhMJFC6.js +590 -0
  69. package/dist-lib/webmapx-modal-tool-eF6Naluv.js +84 -0
  70. package/dist-lib/webmapx-plugin-tool-D2Hghf9n.js +45 -0
  71. package/dist-lib/webmapx-print-tool-ob1bOsR5.js +348 -0
  72. package/dist-lib/webmapx-search-tool-Cv8BrYvY.js +437 -0
  73. package/dist-lib/webmapx-settings-DDEJ8aoV.js +479 -0
  74. package/dist-lib/webmapx-truearea-tool-CMB4Orm-.js +615 -0
  75. package/dist-lib/webmapx-view-mode-tool-CUpLNjOj.js +106 -0
  76. package/dist-lib/webmapx.css +2 -0
  77. package/dist-lib/webmapx.js +1321 -0
  78. package/dist-lib/wms-feature-info-C0RVMEQC.js +145 -0
  79. package/dist-lib/wms-url-builder-DIJLQ1v2.js +54 -0
  80. package/dist-lib/zip.js-DVhmtjxZ.js +3615 -0
  81. package/package.json +107 -0
  82. package/public/data/country-epsg-codes.json +297 -0
  83. package/public/data/world-countries-simplified.topojson +1 -0
  84. package/src/locales/en/core.json +20 -0
@@ -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,175 @@
1
+ import { a as e, i as t, n } from "./decorators-B35AgiCU.js";
2
+ import { f as r, l as i, m as a, p as o, t as s, u as c } from "./chunk.YHLNUJ7P-D-kanrCf.js";
3
+ import { a as l, i as u, n as d, r as f } from "./chunk.NYIIDP5N-BikXIStD.js";
4
+ import { css as p } from "lit";
5
+ //#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.6I2T3DLI.js
6
+ var m = p`
7
+ :host {
8
+ display: inline-block;
9
+ color: var(--sl-color-neutral-600);
10
+ }
11
+
12
+ .icon-button {
13
+ flex: 0 0 auto;
14
+ display: flex;
15
+ align-items: center;
16
+ background: none;
17
+ border: none;
18
+ border-radius: var(--sl-border-radius-medium);
19
+ font-size: inherit;
20
+ color: inherit;
21
+ padding: var(--sl-spacing-x-small);
22
+ cursor: pointer;
23
+ transition: var(--sl-transition-x-fast) color;
24
+ -webkit-appearance: none;
25
+ }
26
+
27
+ .icon-button:hover:not(.icon-button--disabled),
28
+ .icon-button:focus-visible:not(.icon-button--disabled) {
29
+ color: var(--sl-color-primary-600);
30
+ }
31
+
32
+ .icon-button:active:not(.icon-button--disabled) {
33
+ color: var(--sl-color-primary-700);
34
+ }
35
+
36
+ .icon-button:focus {
37
+ outline: none;
38
+ }
39
+
40
+ .icon-button--disabled {
41
+ opacity: 0.5;
42
+ cursor: not-allowed;
43
+ }
44
+
45
+ .icon-button:focus-visible {
46
+ outline: var(--sl-focus-ring);
47
+ outline-offset: var(--sl-focus-ring-offset);
48
+ }
49
+
50
+ .icon-button__icon {
51
+ pointer-events: none;
52
+ }
53
+ `, h = class extends i {
54
+ constructor() {
55
+ super(...arguments), this.hasFocus = !1, this.label = "", this.disabled = !1;
56
+ }
57
+ handleBlur() {
58
+ this.hasFocus = !1, this.emit("sl-blur");
59
+ }
60
+ handleFocus() {
61
+ this.hasFocus = !0, this.emit("sl-focus");
62
+ }
63
+ handleClick(e) {
64
+ this.disabled && (e.preventDefault(), e.stopPropagation());
65
+ }
66
+ click() {
67
+ this.button.click();
68
+ }
69
+ focus(e) {
70
+ this.button.focus(e);
71
+ }
72
+ blur() {
73
+ this.button.blur();
74
+ }
75
+ render() {
76
+ let e = !!this.href, t = e ? f`a` : f`button`;
77
+ return u`
78
+ <${t}
79
+ part="base"
80
+ class=${l({
81
+ "icon-button": !0,
82
+ "icon-button--disabled": !e && this.disabled,
83
+ "icon-button--focused": this.hasFocus
84
+ })}
85
+ ?disabled=${d(e ? void 0 : this.disabled)}
86
+ type=${d(e ? void 0 : "button")}
87
+ href=${d(e ? this.href : void 0)}
88
+ target=${d(e ? this.target : void 0)}
89
+ download=${d(e ? this.download : void 0)}
90
+ rel=${d(e && this.target ? "noreferrer noopener" : void 0)}
91
+ role=${d(e ? void 0 : "button")}
92
+ aria-disabled=${this.disabled ? "true" : "false"}
93
+ aria-label="${this.label}"
94
+ tabindex=${this.disabled ? "-1" : "0"}
95
+ @blur=${this.handleBlur}
96
+ @focus=${this.handleFocus}
97
+ @click=${this.handleClick}
98
+ >
99
+ <sl-icon
100
+ class="icon-button__icon"
101
+ name=${d(this.name)}
102
+ library=${d(this.library)}
103
+ src=${d(this.src)}
104
+ aria-hidden="true"
105
+ ></sl-icon>
106
+ </${t}>
107
+ `;
108
+ }
109
+ };
110
+ h.styles = [c, m], h.dependencies = { "sl-icon": s }, r([n(".icon-button")], h.prototype, "button", 2), r([t()], h.prototype, "hasFocus", 2), r([e()], h.prototype, "name", 2), r([e()], h.prototype, "library", 2), r([e()], h.prototype, "src", 2), r([e()], h.prototype, "href", 2), r([e()], h.prototype, "target", 2), r([e()], h.prototype, "download", 2), r([e()], h.prototype, "label", 2), r([e({
111
+ type: Boolean,
112
+ reflect: !0
113
+ })], h.prototype, "disabled", 2);
114
+ //#endregion
115
+ //#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.K7JGTRV7.js
116
+ var g = /* @__PURE__ */ new Map(), _ = /* @__PURE__ */ new WeakMap();
117
+ function v(e) {
118
+ return e ?? {
119
+ keyframes: [],
120
+ options: { duration: 0 }
121
+ };
122
+ }
123
+ function y(e, t) {
124
+ return t.toLowerCase() === "rtl" ? {
125
+ keyframes: e.rtlKeyframes || e.keyframes,
126
+ options: e.options
127
+ } : e;
128
+ }
129
+ function b(e, t) {
130
+ g.set(e, v(t));
131
+ }
132
+ function x(e, t, n) {
133
+ let r = _.get(e);
134
+ if (r?.[t]) return y(r[t], n.dir);
135
+ let i = g.get(t);
136
+ return i ? y(i, n.dir) : {
137
+ keyframes: [],
138
+ options: { duration: 0 }
139
+ };
140
+ }
141
+ //#endregion
142
+ //#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.B4BZKR24.js
143
+ function S(e, t) {
144
+ return new Promise((n) => {
145
+ function r(i) {
146
+ i.target === e && (e.removeEventListener(t, r), n());
147
+ }
148
+ e.addEventListener(t, r);
149
+ });
150
+ }
151
+ //#endregion
152
+ //#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.AJ3ENQ5C.js
153
+ function C(e, t, n) {
154
+ return new Promise((r) => {
155
+ if (n?.duration === Infinity) throw Error("Promise-based animations must be finite.");
156
+ let i = e.animate(t, o(a({}, n), { duration: T() ? 0 : n.duration }));
157
+ i.addEventListener("cancel", r, { once: !0 }), i.addEventListener("finish", r, { once: !0 });
158
+ });
159
+ }
160
+ function w(e) {
161
+ return e = e.toString().toLowerCase(), e.indexOf("ms") > -1 ? parseFloat(e) : e.indexOf("s") > -1 ? parseFloat(e) * 1e3 : parseFloat(e);
162
+ }
163
+ function T() {
164
+ return window.matchMedia("(prefers-reduced-motion: reduce)").matches;
165
+ }
166
+ function E(e) {
167
+ return Promise.all(e.getAnimations().map((e) => new Promise((t) => {
168
+ e.cancel(), requestAnimationFrame(t);
169
+ })));
170
+ }
171
+ function D(e, t) {
172
+ return e.map((e) => o(a({}, e), { height: e.height === "auto" ? `${t}px` : e.height }));
173
+ }
174
+ //#endregion
175
+ 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,99 @@
1
+ import { a as e, c as t, i as n } from "./chunk.YHLNUJ7P-D-kanrCf.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(t, [n]) {
35
+ if (this.st === void 0) {
36
+ this.st = /* @__PURE__ */ new Set(), t.strings !== void 0 && (this.nt = new Set(t.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 = t.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 e;
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
+ })(t), f = (e) => e ?? n, 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 };
@@ -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 };