@edugis-org/webmapx 0.1.15 → 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.
- package/dist-lib/{alert-C_G5X6J8.js → alert-CM5EIQzP.js} +28 -30
- package/dist-lib/{attribution-format-B4f05_u0.js → attribution-format-CZg2WjHO.js} +1 -1
- package/dist-lib/{button-BlZd3WPH.js → button-B_8TR-jN.js} +34 -38
- package/dist-lib/{checkbox-DB4oPyyw.js → checkbox-DOopjfpt.js} +25 -29
- package/dist-lib/{chunk.36O46B5H-km1dakSW.js → chunk.36O46B5H-EYkf8iaY.js} +8 -8
- package/dist-lib/{chunk.3RPBFEDE-Cxq6VVR6.js → chunk.3RPBFEDE-DC091CnT.js} +1 -1
- package/dist-lib/{chunk.5JY5FUCG-CYkzbQXS.js → chunk.5JY5FUCG-BmZ-LXEt.js} +324 -306
- package/dist-lib/{chunk.AJ3ENQ5C-DXVGX5Dn.js → chunk.AJ3ENQ5C-BhSO747I.js} +22 -25
- package/dist-lib/chunk.NYIIDP5N-DoNij0Gf.js +99 -0
- package/dist-lib/{chunk.SI4ACBFK-CLb9VfMG.js → chunk.SI4ACBFK-CdJVQctt.js} +1 -1
- package/dist-lib/{chunk.YHLNUJ7P-ByKy0MKm.js → chunk.YHLNUJ7P-DINaI4pI.js} +22 -24
- package/dist-lib/{decorate-CKr8yG1g.js → decorate-DNmmPsJp.js} +1 -1
- package/dist-lib/decorators-d8E4nZJy.js +624 -0
- package/dist-lib/{divider-BOFbR_Ny.js → divider-Ly2UhLd1.js} +6 -7
- package/dist-lib/{icon-CBNpO1lq.js → icon-DIjRqLFJ.js} +1 -1
- package/dist-lib/{icon-button-B5rXu3Gg.js → icon-button-C5K3NZWf.js} +39 -42
- package/dist-lib/{input-B212BH6L.js → input-DUaeAHt8.js} +63 -49
- package/dist-lib/{option-BQN9Zz_8.js → option-LnK7BxuV.js} +56 -59
- package/dist-lib/{spinner-DdcBaa3z.js → spinner-D_cltutw.js} +2 -2
- package/dist-lib/{toast-Bq2PmEpm.js → toast-DDqkINxT.js} +1 -1
- package/dist-lib/{tooltip-CBGOiZwJ.js → tooltip-C86FhPFx.js} +26 -27
- package/dist-lib/{webmapx-3d-tool-CKoLGMpk.js → webmapx-3d-tool-DXzN9Tha.js} +6 -7
- package/dist-lib/{webmapx-base-tool-Bc9Wz0yA.js → webmapx-base-tool-idjVnrFA.js} +8 -8
- package/dist-lib/{webmapx-config-edit-tool-7265_DNz.js → webmapx-config-edit-tool-B14KD1ak.js} +21 -22
- package/dist-lib/{webmapx-coordinates-tool-CSwh6fBU.js → webmapx-coordinates-tool-D57LfNy6.js} +25 -26
- package/dist-lib/{webmapx-core-bundle-Q6mWOib1.js → webmapx-core-bundle-C4M7AiLh.js} +726 -723
- package/dist-lib/{webmapx-draw-tool-6QRr5Gip.js → webmapx-draw-tool-utv2v3LN.js} +345 -325
- package/dist-lib/{webmapx-geolocation-tool-qxN5aaVB.js → webmapx-geolocation-tool-BIEqZkMX.js} +27 -28
- package/dist-lib/{webmapx-import-layer-tool-tJ374qHR.js → webmapx-import-layer-tool-DcFxtRJN.js} +18 -19
- package/dist-lib/{webmapx-info-tool-C3txgv3v.js → webmapx-info-tool-DDrllfth.js} +69 -70
- package/dist-lib/{webmapx-language-osmvector-jQzTOPU1.js → webmapx-language-osmvector-D_OP-fC3.js} +8 -9
- package/dist-lib/{webmapx-measure-tool-Cxxrzgdf.js → webmapx-measure-tool-D-6STy8v.js} +33 -34
- package/dist-lib/{webmapx-modal-tool-DQVHNXqX.js → webmapx-modal-tool-CftNio2w.js} +10 -10
- package/dist-lib/{webmapx-plugin-tool-BNZ61x6s.js → webmapx-plugin-tool-CGwliIUs.js} +5 -6
- package/dist-lib/{webmapx-print-tool-BDOTbS6u.js → webmapx-print-tool-DVL_0Hqz.js} +55 -56
- package/dist-lib/{webmapx-search-tool-CHlsE2Wx.js → webmapx-search-tool-D6y6WT8q.js} +13 -14
- package/dist-lib/{webmapx-settings-B0AT9Vjn.js → webmapx-settings--mFVPZsD.js} +41 -45
- package/dist-lib/{webmapx-truearea-tool-dxSgcbOj.js → webmapx-truearea-tool-nQzVCTAC.js} +31 -32
- package/dist-lib/{webmapx-view-mode-tool-DVSMakdh.js → webmapx-view-mode-tool-CQI54rFj.js} +11 -12
- package/dist-lib/webmapx.css +1 -1
- package/dist-lib/webmapx.js +22 -19
- package/package.json +1 -1
- package/dist-lib/chunk.NYIIDP5N-B4UCI-rQ.js +0 -34
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { a as e, i as t, n, r } from "./chunk.YHLNUJ7P-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import {
|
|
7
|
-
import { property as h, query as g, state as _ } from "lit/decorators.js";
|
|
8
|
-
import { classMap as v } 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, i as o, n as s, p as c } from "./decorators-d8E4nZJy.js";
|
|
3
|
+
import { t as l } from "./chunk.LD4M4QGE-CiCfhE8r.js";
|
|
4
|
+
import { a as u, c as d, i as f, o as p, s as m, t as h } from "./chunk.AJ3ENQ5C-BhSO747I.js";
|
|
5
|
+
import { a as g, t as _ } from "./chunk.NYIIDP5N-DoNij0Gf.js";
|
|
6
|
+
import { t as v } from "./chunk.6CTB5ZDJ-DjZrBd6Y.js";
|
|
9
7
|
//#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.HPCLRZ2S.js
|
|
10
|
-
var y =
|
|
8
|
+
var y = a`
|
|
11
9
|
:host {
|
|
12
10
|
display: contents;
|
|
13
11
|
|
|
@@ -147,9 +145,9 @@ var y = p`
|
|
|
147
145
|
.alert__timer {
|
|
148
146
|
display: none;
|
|
149
147
|
}
|
|
150
|
-
`, b = class e extends
|
|
148
|
+
`, b = class e extends t {
|
|
151
149
|
constructor() {
|
|
152
|
-
super(...arguments), this.hasSlotController = new
|
|
150
|
+
super(...arguments), this.hasSlotController = new _(this, "icon", "suffix"), this.localize = new v(this), this.open = !1, this.closable = !1, this.variant = "primary", this.duration = Infinity, this.remainingTime = this.duration;
|
|
153
151
|
}
|
|
154
152
|
static get toastStack() {
|
|
155
153
|
return this.currentToastStack ||= Object.assign(document.createElement("div"), { className: "sl-toast-stack" }), this.currentToastStack;
|
|
@@ -186,23 +184,23 @@ var y = p`
|
|
|
186
184
|
}
|
|
187
185
|
async handleOpenChange() {
|
|
188
186
|
if (this.open) {
|
|
189
|
-
this.emit("sl-show"), this.duration < Infinity && this.restartAutoHide(), await
|
|
190
|
-
let { keyframes: e, options: t } =
|
|
191
|
-
await
|
|
187
|
+
this.emit("sl-show"), this.duration < Infinity && this.restartAutoHide(), await f(this.base), this.base.hidden = !1;
|
|
188
|
+
let { keyframes: e, options: t } = p(this, "alert.show", { dir: this.localize.dir() });
|
|
189
|
+
await h(this.base, e, t), this.emit("sl-after-show");
|
|
192
190
|
} else {
|
|
193
|
-
|
|
194
|
-
let { keyframes: e, options: t } =
|
|
195
|
-
await
|
|
191
|
+
l(this), this.emit("sl-hide"), clearTimeout(this.autoHideTimeout), clearInterval(this.remainingTimeInterval), await f(this.base);
|
|
192
|
+
let { keyframes: e, options: t } = p(this, "alert.hide", { dir: this.localize.dir() });
|
|
193
|
+
await h(this.base, e, t), this.base.hidden = !0, this.emit("sl-after-hide");
|
|
196
194
|
}
|
|
197
195
|
}
|
|
198
196
|
handleDurationChange() {
|
|
199
197
|
this.restartAutoHide();
|
|
200
198
|
}
|
|
201
199
|
async show() {
|
|
202
|
-
if (!this.open) return this.open = !0,
|
|
200
|
+
if (!this.open) return this.open = !0, u(this, "sl-after-show");
|
|
203
201
|
}
|
|
204
202
|
async hide() {
|
|
205
|
-
if (this.open) return this.open = !1,
|
|
203
|
+
if (this.open) return this.open = !1, u(this, "sl-after-hide");
|
|
206
204
|
}
|
|
207
205
|
async toast() {
|
|
208
206
|
return new Promise((t) => {
|
|
@@ -214,10 +212,10 @@ var y = p`
|
|
|
214
212
|
});
|
|
215
213
|
}
|
|
216
214
|
render() {
|
|
217
|
-
return
|
|
215
|
+
return c`
|
|
218
216
|
<div
|
|
219
217
|
part="base"
|
|
220
|
-
class=${
|
|
218
|
+
class=${g({
|
|
221
219
|
alert: !0,
|
|
222
220
|
"alert--open": this.open,
|
|
223
221
|
"alert--closable": this.closable,
|
|
@@ -242,7 +240,7 @@ var y = p`
|
|
|
242
240
|
<slot></slot>
|
|
243
241
|
</div>
|
|
244
242
|
|
|
245
|
-
${this.closable ?
|
|
243
|
+
${this.closable ? c`
|
|
246
244
|
<sl-icon-button
|
|
247
245
|
part="close-button"
|
|
248
246
|
exportparts="base:close-button__base"
|
|
@@ -256,9 +254,9 @@ var y = p`
|
|
|
256
254
|
|
|
257
255
|
<div role="timer" class="alert__timer">${this.remainingTime}</div>
|
|
258
256
|
|
|
259
|
-
${this.countdown ?
|
|
257
|
+
${this.countdown ? c`
|
|
260
258
|
<div
|
|
261
|
-
class=${
|
|
259
|
+
class=${g({
|
|
262
260
|
alert__countdown: !0,
|
|
263
261
|
"alert__countdown--ltr": this.countdown === "ltr"
|
|
264
262
|
})}
|
|
@@ -270,20 +268,20 @@ var y = p`
|
|
|
270
268
|
`;
|
|
271
269
|
}
|
|
272
270
|
};
|
|
273
|
-
b.styles = [
|
|
271
|
+
b.styles = [e, y], b.dependencies = { "sl-icon-button": d }, r([s("[part~=\"base\"]")], b.prototype, "base", 2), r([s(".alert__countdown-elapsed")], b.prototype, "countdownElement", 2), r([i({
|
|
274
272
|
type: Boolean,
|
|
275
273
|
reflect: !0
|
|
276
|
-
})], b.prototype, "open", 2),
|
|
274
|
+
})], b.prototype, "open", 2), r([i({
|
|
277
275
|
type: Boolean,
|
|
278
276
|
reflect: !0
|
|
279
|
-
})], b.prototype, "closable", 2),
|
|
277
|
+
})], b.prototype, "closable", 2), r([i({ reflect: !0 })], b.prototype, "variant", 2), r([i({ type: Number })], b.prototype, "duration", 2), r([i({
|
|
280
278
|
type: String,
|
|
281
279
|
reflect: !0
|
|
282
|
-
})], b.prototype, "countdown", 2),
|
|
280
|
+
})], b.prototype, "countdown", 2), r([o()], b.prototype, "remainingTime", 2), r([n("open", { waitUntilFirstUpdate: !0 })], b.prototype, "handleOpenChange", 1), r([n("duration")], b.prototype, "handleDurationChange", 1);
|
|
283
281
|
var x = b;
|
|
284
282
|
//#endregion
|
|
285
283
|
//#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.R45OWEVP.js
|
|
286
|
-
|
|
284
|
+
m("alert.show", {
|
|
287
285
|
keyframes: [{
|
|
288
286
|
opacity: 0,
|
|
289
287
|
scale: .8
|
|
@@ -295,7 +293,7 @@ l("alert.show", {
|
|
|
295
293
|
duration: 250,
|
|
296
294
|
easing: "ease"
|
|
297
295
|
}
|
|
298
|
-
}),
|
|
296
|
+
}), m("alert.hide", {
|
|
299
297
|
keyframes: [{
|
|
300
298
|
opacity: 1,
|
|
301
299
|
scale: 1
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import { a as e, i as t, n, r, t as i } from "./chunk.YHLNUJ7P-
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { property as d, query as f, state as p } from "lit/decorators.js";
|
|
8
|
-
import { classMap as m } from "lit/directives/class-map.js";
|
|
9
|
-
import { html as h, literal as g } from "lit/static-html.js";
|
|
10
|
-
import { ifDefined as _ } from "lit/directives/if-defined.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 } from "./decorators-d8E4nZJy.js";
|
|
3
|
+
import { a as l, i as u, n as d, r as f, t as p } from "./chunk.NYIIDP5N-DoNij0Gf.js";
|
|
4
|
+
import { t as m } from "./chunk.6CTB5ZDJ-DjZrBd6Y.js";
|
|
5
|
+
import { t as h } from "./chunk.36O46B5H-EYkf8iaY.js";
|
|
6
|
+
import { r as g, t as _ } from "./chunk.3RPBFEDE-DC091CnT.js";
|
|
11
7
|
//#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.MAQXLKQ7.js
|
|
12
|
-
var v =
|
|
8
|
+
var v = o`
|
|
13
9
|
:host {
|
|
14
10
|
display: inline-block;
|
|
15
11
|
position: relative;
|
|
@@ -602,12 +598,12 @@ var v = u`
|
|
|
602
598
|
:host([data-sl-button-group__button][checked]) {
|
|
603
599
|
z-index: 2;
|
|
604
600
|
}
|
|
605
|
-
`, y = class extends
|
|
601
|
+
`, y = class extends t {
|
|
606
602
|
constructor() {
|
|
607
|
-
super(...arguments), this.formControlController = new
|
|
603
|
+
super(...arguments), this.formControlController = new _(this, { assumeInteractionOn: ["click"] }), this.hasSlotController = new p(this, "[default]", "prefix", "suffix"), this.localize = new m(this), this.hasFocus = !1, this.invalid = !1, this.title = "", this.variant = "default", this.size = "medium", this.caret = !1, this.disabled = !1, this.loading = !1, this.outline = !1, this.pill = !1, this.circle = !1, this.type = "button", this.name = "", this.value = "", this.href = "", this.rel = "noreferrer noopener";
|
|
608
604
|
}
|
|
609
605
|
get validity() {
|
|
610
|
-
return this.isButton() ? this.button.validity :
|
|
606
|
+
return this.isButton() ? this.button.validity : g;
|
|
611
607
|
}
|
|
612
608
|
get validationMessage() {
|
|
613
609
|
return this.isButton() ? this.button.validationMessage : "";
|
|
@@ -658,11 +654,11 @@ var v = u`
|
|
|
658
654
|
this.isButton() && (this.button.setCustomValidity(e), this.formControlController.updateValidity());
|
|
659
655
|
}
|
|
660
656
|
render() {
|
|
661
|
-
let e = this.isLink(), t = e ?
|
|
662
|
-
return
|
|
657
|
+
let e = this.isLink(), t = e ? f`a` : f`button`;
|
|
658
|
+
return u`
|
|
663
659
|
<${t}
|
|
664
660
|
part="base"
|
|
665
|
-
class=${
|
|
661
|
+
class=${l({
|
|
666
662
|
button: !0,
|
|
667
663
|
"button--default": this.variant === "default",
|
|
668
664
|
"button--primary": this.variant === "primary",
|
|
@@ -687,16 +683,16 @@ var v = u`
|
|
|
687
683
|
"button--has-prefix": this.hasSlotController.test("prefix"),
|
|
688
684
|
"button--has-suffix": this.hasSlotController.test("suffix")
|
|
689
685
|
})}
|
|
690
|
-
?disabled=${
|
|
691
|
-
type=${
|
|
686
|
+
?disabled=${d(e ? void 0 : this.disabled)}
|
|
687
|
+
type=${d(e ? void 0 : this.type)}
|
|
692
688
|
title=${this.title}
|
|
693
|
-
name=${
|
|
694
|
-
value=${
|
|
695
|
-
href=${
|
|
696
|
-
target=${
|
|
697
|
-
download=${
|
|
698
|
-
rel=${
|
|
699
|
-
role=${
|
|
689
|
+
name=${d(e ? void 0 : this.name)}
|
|
690
|
+
value=${d(e ? void 0 : this.value)}
|
|
691
|
+
href=${d(e && !this.disabled ? this.href : void 0)}
|
|
692
|
+
target=${d(e ? this.target : void 0)}
|
|
693
|
+
download=${d(e ? this.download : void 0)}
|
|
694
|
+
rel=${d(e ? this.rel : void 0)}
|
|
695
|
+
role=${d(e ? void 0 : "button")}
|
|
700
696
|
aria-disabled=${this.disabled ? "true" : "false"}
|
|
701
697
|
tabindex=${this.disabled ? "-1" : "0"}
|
|
702
698
|
@blur=${this.handleBlur}
|
|
@@ -707,38 +703,38 @@ var v = u`
|
|
|
707
703
|
<slot name="prefix" part="prefix" class="button__prefix"></slot>
|
|
708
704
|
<slot part="label" class="button__label"></slot>
|
|
709
705
|
<slot name="suffix" part="suffix" class="button__suffix"></slot>
|
|
710
|
-
${this.caret ?
|
|
711
|
-
${this.loading ?
|
|
706
|
+
${this.caret ? u` <sl-icon part="caret" class="button__caret" library="system" name="caret"></sl-icon> ` : ""}
|
|
707
|
+
${this.loading ? u`<sl-spinner part="spinner"></sl-spinner>` : ""}
|
|
712
708
|
</${t}>
|
|
713
709
|
`;
|
|
714
710
|
}
|
|
715
711
|
};
|
|
716
712
|
//#endregion
|
|
717
713
|
//#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.JCXLDPQF.js
|
|
718
|
-
y.styles = [
|
|
714
|
+
y.styles = [e, v], y.dependencies = {
|
|
719
715
|
"sl-icon": i,
|
|
720
|
-
"sl-spinner":
|
|
721
|
-
},
|
|
716
|
+
"sl-spinner": h
|
|
717
|
+
}, r([c(".button")], y.prototype, "button", 2), r([s()], y.prototype, "hasFocus", 2), r([s()], y.prototype, "invalid", 2), r([a()], y.prototype, "title", 2), r([a({ reflect: !0 })], y.prototype, "variant", 2), r([a({ reflect: !0 })], y.prototype, "size", 2), r([a({
|
|
722
718
|
type: Boolean,
|
|
723
719
|
reflect: !0
|
|
724
|
-
})], y.prototype, "caret", 2),
|
|
720
|
+
})], y.prototype, "caret", 2), r([a({
|
|
725
721
|
type: Boolean,
|
|
726
722
|
reflect: !0
|
|
727
|
-
})], y.prototype, "disabled", 2),
|
|
723
|
+
})], y.prototype, "disabled", 2), r([a({
|
|
728
724
|
type: Boolean,
|
|
729
725
|
reflect: !0
|
|
730
|
-
})], y.prototype, "loading", 2),
|
|
726
|
+
})], y.prototype, "loading", 2), r([a({
|
|
731
727
|
type: Boolean,
|
|
732
728
|
reflect: !0
|
|
733
|
-
})], y.prototype, "outline", 2),
|
|
729
|
+
})], y.prototype, "outline", 2), r([a({
|
|
734
730
|
type: Boolean,
|
|
735
731
|
reflect: !0
|
|
736
|
-
})], y.prototype, "pill", 2),
|
|
732
|
+
})], y.prototype, "pill", 2), r([a({
|
|
737
733
|
type: Boolean,
|
|
738
734
|
reflect: !0
|
|
739
|
-
})], y.prototype, "circle", 2),
|
|
735
|
+
})], y.prototype, "circle", 2), r([a()], y.prototype, "type", 2), r([a()], y.prototype, "name", 2), r([a()], y.prototype, "value", 2), r([a()], y.prototype, "href", 2), r([a()], y.prototype, "target", 2), r([a()], y.prototype, "rel", 2), r([a()], y.prototype, "download", 2), r([a()], y.prototype, "form", 2), r([a({ attribute: "formaction" })], y.prototype, "formAction", 2), r([a({ attribute: "formenctype" })], y.prototype, "formEnctype", 2), r([a({ attribute: "formmethod" })], y.prototype, "formMethod", 2), r([a({
|
|
740
736
|
attribute: "formnovalidate",
|
|
741
737
|
type: Boolean
|
|
742
|
-
})], y.prototype, "formNoValidate", 2),
|
|
738
|
+
})], y.prototype, "formNoValidate", 2), r([a({ attribute: "formtarget" })], y.prototype, "formTarget", 2), r([n("disabled", { waitUntilFirstUpdate: !0 })], y.prototype, "handleDisabledChange", 1), y.define("sl-button");
|
|
743
739
|
//#endregion
|
|
744
740
|
export { y as t };
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import { a as e, i as t, n, r, t as i } from "./chunk.YHLNUJ7P-
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { property as d, query as f, state as p } from "lit/decorators.js";
|
|
8
|
-
import { classMap as m } from "lit/directives/class-map.js";
|
|
9
|
-
import { ifDefined as h } from "lit/directives/if-defined.js";
|
|
10
|
-
import { live as g } from "lit/directives/live.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, n as d, t as f } from "./chunk.NYIIDP5N-DoNij0Gf.js";
|
|
4
|
+
import { t as p } from "./chunk.3RPBFEDE-DC091CnT.js";
|
|
5
|
+
import { n as m, r as h } from "./input-DUaeAHt8.js";
|
|
6
|
+
import { t as g } from "./chunk.SI4ACBFK-CdJVQctt.js";
|
|
11
7
|
//#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.R3NF57O3.js
|
|
12
|
-
var _ =
|
|
8
|
+
var _ = o`
|
|
13
9
|
:host {
|
|
14
10
|
display: inline-block;
|
|
15
11
|
}
|
|
@@ -127,13 +123,13 @@ var _ = l`
|
|
|
127
123
|
color: var(--sl-input-required-content-color);
|
|
128
124
|
margin-inline-start: var(--sl-input-required-content-offset);
|
|
129
125
|
}
|
|
130
|
-
`, v = class extends
|
|
126
|
+
`, v = class extends t {
|
|
131
127
|
constructor() {
|
|
132
|
-
super(...arguments), this.formControlController = new
|
|
128
|
+
super(...arguments), this.formControlController = new p(this, {
|
|
133
129
|
value: (e) => e.checked ? e.value || "on" : void 0,
|
|
134
130
|
defaultValue: (e) => e.defaultChecked,
|
|
135
131
|
setValue: (e, t) => e.checked = t
|
|
136
|
-
}), this.hasSlotController = new
|
|
132
|
+
}), this.hasSlotController = new f(this, "help-text"), this.hasFocus = !1, this.title = "", this.name = "", this.size = "medium", this.disabled = !1, this.checked = !1, this.indeterminate = !1, this.defaultChecked = !1, this.form = "", this.required = !1, this.helpText = "";
|
|
137
133
|
}
|
|
138
134
|
get validity() {
|
|
139
135
|
return this.input.validity;
|
|
@@ -188,9 +184,9 @@ var _ = l`
|
|
|
188
184
|
}
|
|
189
185
|
render() {
|
|
190
186
|
let e = this.hasSlotController.test("help-text"), t = this.helpText ? !0 : !!e;
|
|
191
|
-
return
|
|
187
|
+
return l`
|
|
192
188
|
<div
|
|
193
|
-
class=${
|
|
189
|
+
class=${u({
|
|
194
190
|
"form-control": !0,
|
|
195
191
|
"form-control--small": this.size === "small",
|
|
196
192
|
"form-control--medium": this.size === "medium",
|
|
@@ -200,7 +196,7 @@ var _ = l`
|
|
|
200
196
|
>
|
|
201
197
|
<label
|
|
202
198
|
part="base"
|
|
203
|
-
class=${
|
|
199
|
+
class=${u({
|
|
204
200
|
checkbox: !0,
|
|
205
201
|
"checkbox--checked": this.checked,
|
|
206
202
|
"checkbox--disabled": this.disabled,
|
|
@@ -216,9 +212,9 @@ var _ = l`
|
|
|
216
212
|
type="checkbox"
|
|
217
213
|
title=${this.title}
|
|
218
214
|
name=${this.name}
|
|
219
|
-
value=${
|
|
220
|
-
.indeterminate=${
|
|
221
|
-
.checked=${
|
|
215
|
+
value=${d(this.value)}
|
|
216
|
+
.indeterminate=${m(this.indeterminate)}
|
|
217
|
+
.checked=${m(this.checked)}
|
|
222
218
|
.disabled=${this.disabled}
|
|
223
219
|
.required=${this.required}
|
|
224
220
|
aria-checked=${this.checked ? "true" : "false"}
|
|
@@ -234,10 +230,10 @@ var _ = l`
|
|
|
234
230
|
part="control${this.checked ? " control--checked" : ""}${this.indeterminate ? " control--indeterminate" : ""}"
|
|
235
231
|
class="checkbox__control"
|
|
236
232
|
>
|
|
237
|
-
${this.checked ?
|
|
233
|
+
${this.checked ? l`
|
|
238
234
|
<sl-icon part="checked-icon" class="checkbox__checked-icon" library="system" name="check"></sl-icon>
|
|
239
235
|
` : ""}
|
|
240
|
-
${!this.checked && this.indeterminate ?
|
|
236
|
+
${!this.checked && this.indeterminate ? l`
|
|
241
237
|
<sl-icon
|
|
242
238
|
part="indeterminate-icon"
|
|
243
239
|
class="checkbox__indeterminate-icon"
|
|
@@ -267,21 +263,21 @@ var _ = l`
|
|
|
267
263
|
//#endregion
|
|
268
264
|
//#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.D5YQDJ7X.js
|
|
269
265
|
v.styles = [
|
|
270
|
-
|
|
271
|
-
|
|
266
|
+
e,
|
|
267
|
+
g,
|
|
272
268
|
_
|
|
273
|
-
], v.dependencies = { "sl-icon": i },
|
|
269
|
+
], v.dependencies = { "sl-icon": i }, r([c("input[type=\"checkbox\"]")], v.prototype, "input", 2), r([s()], v.prototype, "hasFocus", 2), r([a()], v.prototype, "title", 2), r([a()], v.prototype, "name", 2), r([a()], v.prototype, "value", 2), r([a({ reflect: !0 })], v.prototype, "size", 2), r([a({
|
|
274
270
|
type: Boolean,
|
|
275
271
|
reflect: !0
|
|
276
|
-
})], v.prototype, "disabled", 2),
|
|
272
|
+
})], v.prototype, "disabled", 2), r([a({
|
|
277
273
|
type: Boolean,
|
|
278
274
|
reflect: !0
|
|
279
|
-
})], v.prototype, "checked", 2),
|
|
275
|
+
})], v.prototype, "checked", 2), r([a({
|
|
280
276
|
type: Boolean,
|
|
281
277
|
reflect: !0
|
|
282
|
-
})], v.prototype, "indeterminate", 2),
|
|
278
|
+
})], v.prototype, "indeterminate", 2), r([h("checked")], v.prototype, "defaultChecked", 2), r([a({ reflect: !0 })], v.prototype, "form", 2), r([a({
|
|
283
279
|
type: Boolean,
|
|
284
280
|
reflect: !0
|
|
285
|
-
})], v.prototype, "required", 2),
|
|
281
|
+
})], v.prototype, "required", 2), r([a({ attribute: "help-text" })], v.prototype, "helpText", 2), r([n("disabled", { waitUntilFirstUpdate: !0 })], v.prototype, "handleDisabledChange", 1), r([n(["checked", "indeterminate"], { waitUntilFirstUpdate: !0 })], v.prototype, "handleStateChange", 1), v.define("sl-checkbox");
|
|
286
282
|
//#endregion
|
|
287
283
|
export { v as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { a as e, i as t } from "./chunk.YHLNUJ7P-DINaI4pI.js";
|
|
2
|
+
import { h as n, p as r } from "./decorators-d8E4nZJy.js";
|
|
3
|
+
import { t as i } from "./chunk.6CTB5ZDJ-DjZrBd6Y.js";
|
|
4
4
|
//#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.7DUCI5S4.js
|
|
5
|
-
var a =
|
|
5
|
+
var a = n`
|
|
6
6
|
:host {
|
|
7
7
|
--track-width: 2px;
|
|
8
8
|
--track-color: rgb(128 128 128 / 25%);
|
|
@@ -59,12 +59,12 @@ var a = r`
|
|
|
59
59
|
stroke-dasharray: 0.05em, 3em;
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
`, o = class extends
|
|
62
|
+
`, o = class extends t {
|
|
63
63
|
constructor() {
|
|
64
|
-
super(...arguments), this.localize = new
|
|
64
|
+
super(...arguments), this.localize = new i(this);
|
|
65
65
|
}
|
|
66
66
|
render() {
|
|
67
|
-
return
|
|
67
|
+
return r`
|
|
68
68
|
<svg part="base" class="spinner" role="progressbar" aria-label=${this.localize.term("loading")}>
|
|
69
69
|
<circle class="spinner__track"></circle>
|
|
70
70
|
<circle class="spinner__indicator"></circle>
|
|
@@ -72,6 +72,6 @@ var a = r`
|
|
|
72
72
|
`;
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
|
-
o.styles = [
|
|
75
|
+
o.styles = [e, a];
|
|
76
76
|
//#endregion
|
|
77
77
|
export { o as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as e, l as t } from "./chunk.YHLNUJ7P-DINaI4pI.js";
|
|
2
2
|
//#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.3RPBFEDE.js
|
|
3
3
|
var n = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap(), i = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakSet(), o = /* @__PURE__ */ new WeakMap(), s = class {
|
|
4
4
|
constructor(e, r) {
|