@oslokommune/punkt-elements 16.18.0 → 16.21.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/CHANGELOG.md +34 -0
- package/dist/{accordion-CU2tJ5vn.js → accordion-BjYsEbSM.js} +19 -19
- package/dist/{accordion-DDZkjXFb.cjs → accordion-DaeWPWod.cjs} +5 -5
- package/dist/{alert-D_eXGOez.js → alert-BkzC5mVu.js} +22 -22
- package/dist/{alert-NyLr62jZ.cjs → alert-D_45dWPn.cjs} +6 -6
- package/dist/{async-directive-CaQiqjyV.js → async-directive-Cz6tcqge.js} +2 -2
- package/dist/async-directive-DO1QtVmf.cjs +1 -0
- package/dist/{backlink-CTu44BHn.js → backlink-BXAdgAte.js} +6 -6
- package/dist/{backlink-BsQ0Rmxj.cjs → backlink-C42-3OG3.cjs} +2 -2
- package/dist/{breadcrumbs-BNZ1L-0q.cjs → breadcrumbs-CkjeLh3U.cjs} +6 -6
- package/dist/{breadcrumbs-DPnoURvl.js → breadcrumbs-Dkb9TxMp.js} +15 -15
- package/dist/{button-ZYlrRRfu.js → button-CR-KWhTT.js} +21 -21
- package/dist/{button-DsGvcLIn.cjs → button-Dwv11n6R.cjs} +7 -7
- package/dist/{calendar-CDDVoUby.cjs → calendar-Buvxe4l_.cjs} +11 -11
- package/dist/{calendar-VOqO5um6.js → calendar-DAq6iJdx.js} +50 -50
- package/dist/{card-B4oDGIRP.js → card-5PydU247.js} +43 -43
- package/dist/{card-DZuZy0ay.cjs → card-C__IlsUa.cjs} +26 -26
- package/dist/{checkbox-CF5mSBR5.js → checkbox-CC1X7fw4.js} +23 -23
- package/dist/{checkbox-BerAYcfK.cjs → checkbox-DzMc0AJX.cjs} +10 -10
- package/dist/class-map-B8Ja0q7n.cjs +1 -0
- package/dist/{class-map-C8HuhNzZ.js → class-map-DH9hlJny.js} +7 -8
- package/dist/{combobox-BDYoPZmg.js → combobox-D-DY7YcW.js} +42 -42
- package/dist/{combobox-Ct9gCFa1.cjs → combobox-x4tBGP3F.cjs} +17 -17
- package/dist/components/heading/heading.d.ts +5 -8
- package/dist/{consent-BME_rQ2w.cjs → consent-BB3g_ByO.cjs} +3 -3
- package/dist/{consent-1IUuWZAh.js → consent-Y14WZ0JS.js} +8 -8
- package/dist/{datepicker-ByqXCpCd.cjs → datepicker-BFI-3stE.cjs} +20 -20
- package/dist/{datepicker-BGpoabCM.js → datepicker-CRk7aiwH.js} +57 -57
- package/dist/{directive-helpers-Dkv2gKgs.js → directive-helpers-Cep_4cpj.js} +1 -1
- package/dist/{directive-helpers-D1QSxY17.cjs → directive-helpers-f36YZFOG.cjs} +1 -1
- package/dist/docs/components/loader.d.ts +6 -0
- package/dist/element-CXAtr6Gu.cjs +2 -0
- package/dist/{element-cZ85T_aa.js → element-CduG0XyF.js} +47 -23
- package/dist/{element-with-slot-4J2o3SeU.js → element-with-slot-BVj9MXzi.js} +5 -6
- package/dist/element-with-slot-Cmxb9h4H.cjs +1 -0
- package/dist/{fileupload-B6W7qOQT.js → fileupload-C8muj8qd.js} +149 -149
- package/dist/{fileupload-a2OL3dzG.cjs → fileupload-YtsrgQTY.cjs} +40 -40
- package/dist/{header-BZFSan0_.cjs → header-CjBip0zj.cjs} +57 -57
- package/dist/{header-BgVpJMHQ.js → header-DONTGbD9.js} +130 -130
- package/dist/{header-menu-BXzVVOHq.js → header-menu-BU-ylGrJ.js} +45 -45
- package/dist/{header-menu-BLngov1D.cjs → header-menu-CnW7nzmF.cjs} +24 -24
- package/dist/heading-3o4Dk0Wn.js +80 -0
- package/dist/heading-C40-NX0r.cjs +1 -0
- package/dist/{helptext-BeU-enix.js → helptext-C2aQBBo_.js} +12 -12
- package/dist/{helptext-DWMFqMnV.cjs → helptext-DNLg43eI.cjs} +4 -4
- package/dist/icon-Dw6I0HDV.cjs +1 -0
- package/dist/{icon-CZQkrK6B.js → icon-LaKyBKON.js} +18 -19
- package/dist/if-defined-LTjAScFG.cjs +1 -0
- package/dist/{if-defined-Cjj8qN-Z.js → if-defined-VShASPdu.js} +1 -1
- package/dist/{input-element-D0egtEnr.cjs → input-element-BHQVt4Q9.cjs} +1 -1
- package/dist/{input-element-B1ciW1N2.js → input-element-BrmkXIXi.js} +30 -30
- package/dist/{input-wrapper-oYcbCFow.js → input-wrapper-B6WowlWG.js} +33 -33
- package/dist/{input-wrapper-Y98KV-sy.cjs → input-wrapper-Dhkt20WW.cjs} +17 -17
- package/dist/{link-BMMIjg50.cjs → link-B5ur0Rym.cjs} +4 -4
- package/dist/{link-CT0LB3S7.js → link-ClUNY__5.js} +13 -13
- package/dist/linkcard-BIcCW-qw.cjs +13 -0
- package/dist/{linkcard-Bz5zb69P.js → linkcard-DNJm5FvA.js} +15 -15
- package/dist/{listbox-0NHJvNjz.js → listbox-DXMIBv3y.js} +35 -35
- package/dist/{listbox-CcThiNBY.cjs → listbox-DbEobJNx.cjs} +14 -14
- package/dist/{loader-8T6M0FCQ.cjs → loader-Uap9qDsV.cjs} +5 -5
- package/dist/{loader-Cbrc4FFx.js → loader-gKdQpOOQ.js} +12 -12
- package/dist/{messagebox-C6LHT78_.cjs → messagebox-BqBxXK8c.cjs} +5 -5
- package/dist/{messagebox-TKKUVTo4.js → messagebox-XRFecqyS.js} +15 -15
- package/dist/{modal-BVHH8koz.js → modal-CWgeT-RP.js} +19 -19
- package/dist/{modal-CRzbtqL3.cjs → modal-CrYHKOmr.cjs} +8 -8
- package/dist/pkt-accordion.cjs +1 -1
- package/dist/pkt-accordion.js +1 -1
- package/dist/pkt-alert.cjs +1 -1
- package/dist/pkt-alert.js +1 -1
- package/dist/pkt-backlink.cjs +1 -1
- package/dist/pkt-backlink.js +1 -1
- package/dist/pkt-breadcrumbs.cjs +1 -1
- package/dist/pkt-breadcrumbs.js +1 -1
- package/dist/pkt-button.cjs +1 -1
- package/dist/pkt-button.js +1 -1
- package/dist/pkt-calendar.cjs +1 -1
- package/dist/pkt-calendar.js +1 -1
- package/dist/pkt-card.cjs +1 -1
- package/dist/pkt-card.js +1 -1
- package/dist/pkt-checkbox.cjs +1 -1
- package/dist/pkt-checkbox.js +1 -1
- package/dist/pkt-combobox.cjs +1 -1
- package/dist/pkt-combobox.js +1 -1
- package/dist/pkt-consent.cjs +1 -1
- package/dist/pkt-consent.js +1 -1
- package/dist/pkt-datepicker.cjs +1 -1
- package/dist/pkt-datepicker.js +1 -1
- package/dist/pkt-fileupload.cjs +1 -1
- package/dist/pkt-fileupload.js +1 -1
- package/dist/pkt-header-menu.cjs +1 -1
- package/dist/pkt-header-menu.js +1 -1
- package/dist/pkt-header.cjs +1 -1
- package/dist/pkt-header.js +1 -1
- package/dist/pkt-heading.cjs +1 -1
- package/dist/pkt-heading.js +1 -1
- package/dist/pkt-helptext.cjs +1 -1
- package/dist/pkt-helptext.js +1 -1
- package/dist/pkt-icon.cjs +1 -1
- package/dist/pkt-icon.js +1 -1
- package/dist/pkt-index.cjs +1 -1
- package/dist/pkt-index.js +32 -32
- package/dist/pkt-input-wrapper.cjs +1 -1
- package/dist/pkt-input-wrapper.js +1 -1
- package/dist/pkt-link.cjs +1 -1
- package/dist/pkt-link.js +1 -1
- package/dist/pkt-linkcard.cjs +1 -1
- package/dist/pkt-linkcard.js +1 -1
- package/dist/pkt-listbox.cjs +1 -1
- package/dist/pkt-listbox.js +1 -1
- package/dist/pkt-loader.cjs +1 -1
- package/dist/pkt-loader.js +1 -1
- package/dist/pkt-messagebox.cjs +1 -1
- package/dist/pkt-messagebox.js +1 -1
- package/dist/pkt-modal.cjs +1 -1
- package/dist/pkt-modal.js +1 -1
- package/dist/{pkt-options-controller-CCB15L_G.js → pkt-options-controller-BTNtjEIS.js} +1 -1
- package/dist/{pkt-options-controller-CeAQ-D-i.cjs → pkt-options-controller-CBM8xHwR.cjs} +1 -1
- package/dist/pkt-progressbar.cjs +1 -1
- package/dist/pkt-progressbar.js +1 -1
- package/dist/pkt-radiobutton.cjs +1 -1
- package/dist/pkt-radiobutton.js +1 -1
- package/dist/pkt-searchinput.cjs +1 -1
- package/dist/pkt-searchinput.js +1 -1
- package/dist/pkt-select.cjs +1 -1
- package/dist/pkt-select.js +1 -1
- package/dist/pkt-tabs.cjs +1 -1
- package/dist/pkt-tabs.js +1 -1
- package/dist/pkt-tag.cjs +1 -1
- package/dist/pkt-tag.js +1 -1
- package/dist/pkt-textarea.cjs +1 -1
- package/dist/pkt-textarea.js +1 -1
- package/dist/pkt-textinput.cjs +1 -1
- package/dist/pkt-textinput.js +1 -1
- package/dist/pkt-timepicker.cjs +1 -1
- package/dist/pkt-timepicker.js +1 -1
- package/dist/{progressbar-C-5oESiB.js → progressbar-B0P_vmGD.js} +23 -24
- package/dist/progressbar-DADdvDl5.cjs +17 -0
- package/dist/{radiobutton-B1Xg6XzP.cjs → radiobutton-BfURufrZ.cjs} +8 -8
- package/dist/{radiobutton-BAn1V_mQ.js → radiobutton-C6zERHoy.js} +20 -20
- package/dist/{ref-RS8Uv6uC.js → ref-BgoHEsEt.js} +7 -8
- package/dist/ref-CBdWMlde.cjs +1 -0
- package/dist/{repeat-DV1O43YU.js → repeat-CKIii8Mi.js} +15 -16
- package/dist/repeat-CRRgmzVn.cjs +1 -0
- package/dist/{searchinput-DUgZb_zm.cjs → searchinput-BrxfRzez.cjs} +13 -13
- package/dist/{searchinput-C9FP89qD.js → searchinput-fPvXHu2O.js} +31 -31
- package/dist/{select-DkKIW7zD.js → select-BIgFPp42.js} +13 -13
- package/dist/{select-DAs8kzN4.cjs → select-DzZHv6Bz.cjs} +3 -3
- package/dist/{tabs-ClI1XQDt.js → tabs-BJx6wwXD.js} +29 -29
- package/dist/{tabs-CN_RIMWg.cjs → tabs-DxQy8U-0.cjs} +7 -7
- package/dist/{tag-vgKH9B4k.cjs → tag-CBFz0R9N.cjs} +5 -5
- package/dist/{tag-DSZ-czu-.js → tag-CzlnHhho.js} +19 -19
- package/dist/textarea-M_S9WK7s.cjs +46 -0
- package/dist/{textarea-BfjI6d7Q.js → textarea-qHtkhelz.js} +24 -25
- package/dist/{textinput-DhoupEyI.js → textinput-CZrBM-Fj.js} +26 -26
- package/dist/{textinput-BM66vo5e.cjs → textinput-C_6kvf87.cjs} +12 -12
- package/dist/{timepicker-CtRGbypF.js → timepicker-O0iCeJyW.js} +51 -51
- package/dist/{timepicker-C4oRmmRd.cjs → timepicker-WiYLAncb.cjs} +20 -20
- package/package.json +2 -2
- package/src/components/card/card.ts +1 -1
- package/src/components/heading/heading.test.ts +79 -70
- package/src/components/heading/heading.ts +40 -78
- package/dist/async-directive-B9P1Qa0k.cjs +0 -1
- package/dist/class-map-CJ-msbHs.cjs +0 -1
- package/dist/directive-3THFsVew.js +0 -28
- package/dist/directive-CJ2giQBZ.cjs +0 -1
- package/dist/element-DjtxO-1r.cjs +0 -2
- package/dist/element-with-slot-CWoTGA1B.cjs +0 -1
- package/dist/heading-BxvE80bb.js +0 -73
- package/dist/heading-DRJTS27k.cjs +0 -1
- package/dist/icon-PbaC9uUg.cjs +0 -1
- package/dist/if-defined-XKOD_t_V.cjs +0 -1
- package/dist/linkcard-CupEMkvj.cjs +0 -13
- package/dist/progressbar-C0g830Tk.cjs +0 -17
- package/dist/ref-BaJ0mBT_.cjs +0 -1
- package/dist/repeat-DaDFvx86.cjs +0 -1
- package/dist/textarea-C7YiheLo.cjs +0 -46
- /package/dist/{booleanish-CRaKZ75t.js → booleanish-BmcOU-43.js} +0 -0
- /package/dist/{booleanish-B5EFqFpJ.cjs → booleanish-jJLlnr6-.cjs} +0 -0
- /package/dist/{classutils-z8YsPlOf.cjs → classutils-CVTzKF0J.cjs} +0 -0
- /package/dist/{classutils-DEL164Ur.js → classutils-lVbGcvjN.js} +0 -0
- /package/dist/{converters-Bffq_YDm.cjs → converters-C_66kHUN.cjs} +0 -0
- /package/dist/{converters-jauYkvNh.js → converters-DSQXaDQ_.js} +0 -0
- /package/dist/{dialog-polyfill.esm-B7W3teD0.js → dialog-polyfill.esm-0dVT8G1o.js} +0 -0
- /package/dist/{dialog-polyfill.esm-BnAQvMQO.cjs → dialog-polyfill.esm-CYs2AHP1.cjs} +0 -0
- /package/dist/{focus-modality-controller-pzSZkDkH.js → focus-modality-controller-CaUqYdk0.js} +0 -0
- /package/dist/{focus-modality-controller-BSZAQk8y.cjs → focus-modality-controller-wI5SR8wH.cjs} +0 -0
- /package/dist/{input-wrapper-CQGoyLdZ.cjs → input-wrapper-CYCCx8MP.cjs} +0 -0
- /package/dist/{input-wrapper-DwSsP39J.js → input-wrapper-kw2y6Jp_.js} +0 -0
- /package/dist/{utils-BOOZ0ppt.js → utils-CUqCKGvp.js} +0 -0
- /package/dist/{utils-CM67Oudc.cjs → utils-CjAbIttF.cjs} +0 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as s } from "./class-map-
|
|
3
|
-
import { n as c } from "./element-with-slot-
|
|
4
|
-
import "./icon-
|
|
5
|
-
import { t as l } from "./if-defined-
|
|
6
|
-
import { n as u, t as d } from "./ref-
|
|
7
|
-
import { a as f, c as p, d as m, h, i as g, m as _, n as v, r as y, s as b, t as x, u as S } from "./converters-
|
|
8
|
-
import "./calendar-
|
|
9
|
-
import "./tag-
|
|
10
|
-
import { t as C } from "./repeat-
|
|
11
|
-
import { n as w, t as T } from "./utils-
|
|
12
|
-
import { t as E } from "./input-element-
|
|
13
|
-
import "./input-wrapper-
|
|
1
|
+
import { a as e, d as t, n, o as r, p as i, s as a, t as o } from "./element-CduG0XyF.js";
|
|
2
|
+
import { t as s } from "./class-map-DH9hlJny.js";
|
|
3
|
+
import { n as c } from "./element-with-slot-BVj9MXzi.js";
|
|
4
|
+
import "./icon-LaKyBKON.js";
|
|
5
|
+
import { t as l } from "./if-defined-VShASPdu.js";
|
|
6
|
+
import { n as u, t as d } from "./ref-BgoHEsEt.js";
|
|
7
|
+
import { a as f, c as p, d as m, h, i as g, m as _, n as v, r as y, s as b, t as x, u as S } from "./converters-DSQXaDQ_.js";
|
|
8
|
+
import "./calendar-DAq6iJdx.js";
|
|
9
|
+
import "./tag-CzlnHhho.js";
|
|
10
|
+
import { t as C } from "./repeat-CKIii8Mi.js";
|
|
11
|
+
import { n as w, t as T } from "./utils-CUqCKGvp.js";
|
|
12
|
+
import { t as E } from "./input-element-BrmkXIXi.js";
|
|
13
|
+
import "./input-wrapper-B6WowlWG.js";
|
|
14
14
|
//#region ../../shared-types/datepicker.ts
|
|
15
15
|
var D = { calendar: { buttonAltText: "Åpne kalender" } }, O = {
|
|
16
16
|
calendar: { buttonAltText: "Åpne kalender" },
|
|
@@ -26,9 +26,9 @@ var D = { calendar: { buttonAltText: "Åpne kalender" } }, O = {
|
|
|
26
26
|
return this.classes = {
|
|
27
27
|
"pkt-date-tags": !0,
|
|
28
28
|
[this.className]: !0
|
|
29
|
-
},
|
|
29
|
+
}, i`
|
|
30
30
|
<div class=${s(this.classes)} aria-live="polite">
|
|
31
|
-
${Array.isArray(this.dates) && this.dates[0] ? C(h((this.dates ?? []).filter(Boolean)), (e) => e, (e) =>
|
|
31
|
+
${Array.isArray(this.dates) && this.dates[0] ? C(h((this.dates ?? []).filter(Boolean)), (e) => e, (e) => i` <pkt-tag
|
|
32
32
|
id=${this.idBase + e + "-tag"}
|
|
33
33
|
closeTag
|
|
34
34
|
@close=${() => {
|
|
@@ -37,20 +37,20 @@ var D = { calendar: { buttonAltText: "Åpne kalender" } }, O = {
|
|
|
37
37
|
.ariaLabel=${`${this.strings?.calendar.deleteDate} ${p(e, this.dateformat)}`}
|
|
38
38
|
>
|
|
39
39
|
<time datetime=${e}>${p(e, this.dateformat)}</time>
|
|
40
|
-
</pkt-tag>`) :
|
|
40
|
+
</pkt-tag>`) : t}
|
|
41
41
|
</div>
|
|
42
42
|
`;
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
|
-
|
|
45
|
+
n([r({ type: Array })], k.prototype, "dates", void 0), n([r({ type: String })], k.prototype, "dateformat", void 0), n([r({
|
|
46
46
|
type: String,
|
|
47
47
|
attribute: "class"
|
|
48
|
-
})], k.prototype, "className", void 0),
|
|
48
|
+
})], k.prototype, "className", void 0), n([r({
|
|
49
49
|
type: String,
|
|
50
50
|
attribute: "id-base"
|
|
51
51
|
})], k.prototype, "idBase", void 0);
|
|
52
52
|
try {
|
|
53
|
-
|
|
53
|
+
a("pkt-date-tags")(k);
|
|
54
54
|
} catch {
|
|
55
55
|
console.warn("Forsøker å definere <pkt-date-tags>, men den er allerede definert");
|
|
56
56
|
}
|
|
@@ -434,7 +434,7 @@ var A = {
|
|
|
434
434
|
}));
|
|
435
435
|
}
|
|
436
436
|
render() {
|
|
437
|
-
return
|
|
437
|
+
return i`
|
|
438
438
|
<div
|
|
439
439
|
class="${s({
|
|
440
440
|
"pkt-calendar-popup": !0,
|
|
@@ -446,7 +446,7 @@ var A = {
|
|
|
446
446
|
?hidden=${!this.open}
|
|
447
447
|
aria-hidden="${!this.open}"
|
|
448
448
|
>
|
|
449
|
-
${this.open || this._hasBeenOpened ?
|
|
449
|
+
${this.open || this._hasBeenOpened ? i`<pkt-calendar
|
|
450
450
|
${u(this.calendarRef)}
|
|
451
451
|
?multiple=${this.multiple}
|
|
452
452
|
?range=${this.range}
|
|
@@ -473,17 +473,17 @@ var A = {
|
|
|
473
473
|
composed: !0
|
|
474
474
|
}));
|
|
475
475
|
}}
|
|
476
|
-
></pkt-calendar>` :
|
|
476
|
+
></pkt-calendar>` : t}
|
|
477
477
|
</div>
|
|
478
478
|
`;
|
|
479
479
|
}
|
|
480
480
|
};
|
|
481
|
-
|
|
481
|
+
n([r({
|
|
482
482
|
type: Boolean,
|
|
483
483
|
reflect: !0
|
|
484
|
-
})], J.prototype, "open", void 0),
|
|
484
|
+
})], J.prototype, "open", void 0), n([r({ type: Boolean })], J.prototype, "multiple", void 0), n([r({ type: Boolean })], J.prototype, "range", void 0), n([r({ type: Boolean })], J.prototype, "weeknumbers", void 0), n([r({ type: Boolean })], J.prototype, "withcontrols", void 0), n([r({ type: Number })], J.prototype, "maxMultiple", void 0), n([r({ type: Array })], J.prototype, "selected", void 0), n([r({ type: String })], J.prototype, "earliest", void 0), n([r({ type: String })], J.prototype, "latest", void 0), n([r({ type: Array })], J.prototype, "excludedates", void 0), n([r({ type: Array })], J.prototype, "excludeweekdays", void 0), n([r({ type: String })], J.prototype, "currentmonth", void 0), n([r({ type: String })], J.prototype, "today", void 0), n([e()], J.prototype, "_hasBeenOpened", void 0);
|
|
485
485
|
try {
|
|
486
|
-
|
|
486
|
+
a("pkt-datepicker-popup")(J);
|
|
487
487
|
} catch {
|
|
488
488
|
console.warn("Forsøker å definere <pkt-datepicker-popup>, men den er allerede definert");
|
|
489
489
|
}
|
|
@@ -537,7 +537,7 @@ var Y = class extends o {
|
|
|
537
537
|
}));
|
|
538
538
|
}
|
|
539
539
|
renderCalendarButton() {
|
|
540
|
-
return
|
|
540
|
+
return i`
|
|
541
541
|
<button
|
|
542
542
|
class="${s(G.getButtonClasses())}"
|
|
543
543
|
type="button"
|
|
@@ -558,7 +558,7 @@ var Y = class extends o {
|
|
|
558
558
|
return this;
|
|
559
559
|
}
|
|
560
560
|
};
|
|
561
|
-
|
|
561
|
+
n([r({ type: String })], Y.prototype, "inputType", void 0), n([r({ type: String })], Y.prototype, "id", void 0), n([r({ type: String })], Y.prototype, "min", void 0), n([r({ type: String })], Y.prototype, "max", void 0), n([r({ type: String })], Y.prototype, "placeholder", void 0), n([r({ type: Boolean })], Y.prototype, "readonly", void 0), n([r({ type: Boolean })], Y.prototype, "disabled", void 0), n([r({ type: Object })], Y.prototype, "inputClasses", void 0), n([r({ type: Object })], Y.prototype, "internals", void 0);
|
|
562
562
|
//#endregion
|
|
563
563
|
//#region src/components/datepicker/datepicker-single.ts
|
|
564
564
|
var X = class extends Y {
|
|
@@ -573,7 +573,7 @@ var X = class extends Y {
|
|
|
573
573
|
}));
|
|
574
574
|
}
|
|
575
575
|
render() {
|
|
576
|
-
return
|
|
576
|
+
return i`
|
|
577
577
|
<div class="pkt-input__container">
|
|
578
578
|
<input
|
|
579
579
|
class="${s(this.inputClasses)}"
|
|
@@ -616,9 +616,9 @@ var X = class extends Y {
|
|
|
616
616
|
`;
|
|
617
617
|
}
|
|
618
618
|
};
|
|
619
|
-
|
|
619
|
+
n([r({ type: String })], X.prototype, "value", void 0), n([r({ type: Object })], X.prototype, "strings", void 0);
|
|
620
620
|
try {
|
|
621
|
-
|
|
621
|
+
a("pkt-datepicker-single")(X);
|
|
622
622
|
} catch {
|
|
623
623
|
console.warn("Forsøker å definere <pkt-datepicker-single>, men den er allerede definert");
|
|
624
624
|
}
|
|
@@ -633,9 +633,9 @@ var Z = class extends Y {
|
|
|
633
633
|
}
|
|
634
634
|
render() {
|
|
635
635
|
let e = G.getRangeLabelClasses(this.showRangeLabels);
|
|
636
|
-
return
|
|
636
|
+
return i`
|
|
637
637
|
<div class="pkt-input__container">
|
|
638
|
-
${this.showRangeLabels ?
|
|
638
|
+
${this.showRangeLabels ? i` <div class="pkt-input-prefix">${this.strings.generic?.from}</div> ` : t}
|
|
639
639
|
<input
|
|
640
640
|
class=${s(this.inputClasses)}
|
|
641
641
|
.type=${this.inputType}
|
|
@@ -679,7 +679,7 @@ var Z = class extends Y {
|
|
|
679
679
|
<div class="${s(e)}" id="${this.id}-to-label">
|
|
680
680
|
${this.strings.generic?.to}
|
|
681
681
|
</div>
|
|
682
|
-
${this.showRangeLabels ?
|
|
682
|
+
${this.showRangeLabels ? t : i` <div class="pkt-input-separator">–</div> `}
|
|
683
683
|
<input
|
|
684
684
|
class=${s(this.inputClasses)}
|
|
685
685
|
.type=${this.inputType}
|
|
@@ -725,9 +725,9 @@ var Z = class extends Y {
|
|
|
725
725
|
`;
|
|
726
726
|
}
|
|
727
727
|
};
|
|
728
|
-
|
|
728
|
+
n([r({ type: Array })], Z.prototype, "value", void 0), n([r({ type: String })], Z.prototype, "label", void 0), n([r({ type: Boolean })], Z.prototype, "showRangeLabels", void 0), n([r({ type: Object })], Z.prototype, "strings", void 0);
|
|
729
729
|
try {
|
|
730
|
-
|
|
730
|
+
a("pkt-datepicker-range")(Z);
|
|
731
731
|
} catch {
|
|
732
732
|
console.warn("Forsøker å definere <pkt-datepicker-range>, men den er allerede definert");
|
|
733
733
|
}
|
|
@@ -748,7 +748,7 @@ var Q = class extends Y {
|
|
|
748
748
|
}));
|
|
749
749
|
}
|
|
750
750
|
render() {
|
|
751
|
-
return
|
|
751
|
+
return i`
|
|
752
752
|
<div class="pkt-input__container">
|
|
753
753
|
<input
|
|
754
754
|
class=${s(this.inputClasses)}
|
|
@@ -785,9 +785,9 @@ var Q = class extends Y {
|
|
|
785
785
|
`;
|
|
786
786
|
}
|
|
787
787
|
};
|
|
788
|
-
|
|
788
|
+
n([r({ type: Array })], Q.prototype, "value", void 0), n([r({ type: Number })], Q.prototype, "maxlength", void 0), n([r({ type: Object })], Q.prototype, "strings", void 0);
|
|
789
789
|
try {
|
|
790
|
-
|
|
790
|
+
a("pkt-datepicker-multiple")(Q);
|
|
791
791
|
} catch {
|
|
792
792
|
console.warn("Forsøker å definere <pkt-datepicker-multiple>, men den er allerede definert");
|
|
793
793
|
}
|
|
@@ -866,7 +866,7 @@ var $ = class extends E {
|
|
|
866
866
|
return { value: this.currentButtonElement };
|
|
867
867
|
}
|
|
868
868
|
renderInput() {
|
|
869
|
-
return
|
|
869
|
+
return i`
|
|
870
870
|
<pkt-datepicker-single
|
|
871
871
|
.value=${this._value[0] ?? ""}
|
|
872
872
|
.inputType=${this.inputType}
|
|
@@ -897,7 +897,7 @@ var $ = class extends E {
|
|
|
897
897
|
`;
|
|
898
898
|
}
|
|
899
899
|
renderRangeInput() {
|
|
900
|
-
return
|
|
900
|
+
return i`
|
|
901
901
|
<pkt-datepicker-range
|
|
902
902
|
.value=${this._value}
|
|
903
903
|
.inputType=${this.inputType}
|
|
@@ -949,7 +949,7 @@ var $ = class extends E {
|
|
|
949
949
|
`;
|
|
950
950
|
}
|
|
951
951
|
renderMultipleInput() {
|
|
952
|
-
return
|
|
952
|
+
return i`
|
|
953
953
|
<pkt-datepicker-multiple
|
|
954
954
|
.value=${this._value}
|
|
955
955
|
.inputType=${this.inputType}
|
|
@@ -978,7 +978,7 @@ var $ = class extends E {
|
|
|
978
978
|
`;
|
|
979
979
|
}
|
|
980
980
|
renderCalendar() {
|
|
981
|
-
return
|
|
981
|
+
return i`
|
|
982
982
|
<pkt-datepicker-popup
|
|
983
983
|
class="pkt-contents"
|
|
984
984
|
?open=${this.calendarOpen}
|
|
@@ -1005,7 +1005,7 @@ var $ = class extends E {
|
|
|
1005
1005
|
`;
|
|
1006
1006
|
}
|
|
1007
1007
|
render() {
|
|
1008
|
-
return this.inputClasses = G.getInputClasses(this.fullwidth, this.showRangeLabels, this.multiple, this.range, this.readonly, this.inputType),
|
|
1008
|
+
return this.inputClasses = G.getInputClasses(this.fullwidth, this.showRangeLabels, this.multiple, this.range, this.readonly, this.inputType), i`
|
|
1009
1009
|
<pkt-input-wrapper
|
|
1010
1010
|
label="${this.label}"
|
|
1011
1011
|
forId="${this.id}-input"
|
|
@@ -1031,7 +1031,7 @@ var $ = class extends E {
|
|
|
1031
1031
|
class="pkt-datepicker"
|
|
1032
1032
|
>
|
|
1033
1033
|
<div class="pkt-contents" slot="helptext">${c(this, "helptext")}</div>
|
|
1034
|
-
${this.multiple ?
|
|
1034
|
+
${this.multiple ? i`<pkt-date-tags
|
|
1035
1035
|
.dates=${this._value}
|
|
1036
1036
|
dateformat=${this.dateformat}
|
|
1037
1037
|
strings=${this.strings}
|
|
@@ -1040,7 +1040,7 @@ var $ = class extends E {
|
|
|
1040
1040
|
let t = this.datepickerPopupRef.value, n = b(e.detail);
|
|
1041
1041
|
t && n && typeof t.handleDateSelect == "function" ? t.handleDateSelect(n) : this.calRef.value?.handleDateSelect(n);
|
|
1042
1042
|
}}
|
|
1043
|
-
></pkt-date-tags>` :
|
|
1043
|
+
></pkt-date-tags>` : t}
|
|
1044
1044
|
<div class="pkt-datepicker__inputs ${this.range ? "pkt-input__range-inputs" : ""}">
|
|
1045
1045
|
${this.range ? this.renderRangeInput() : this.multiple ? this.renderMultipleInput() : this.renderInput()}
|
|
1046
1046
|
</div>
|
|
@@ -1085,40 +1085,40 @@ var $ = class extends E {
|
|
|
1085
1085
|
}));
|
|
1086
1086
|
}
|
|
1087
1087
|
};
|
|
1088
|
-
|
|
1088
|
+
n([r({
|
|
1089
1089
|
type: String,
|
|
1090
1090
|
reflect: !0
|
|
1091
|
-
})], $.prototype, "value", null),
|
|
1091
|
+
})], $.prototype, "value", null), n([r({
|
|
1092
1092
|
type: String,
|
|
1093
1093
|
reflect: !0
|
|
1094
|
-
})], $.prototype, "label", void 0),
|
|
1094
|
+
})], $.prototype, "label", void 0), n([r({ type: String })], $.prototype, "dateformat", void 0), n([r({
|
|
1095
1095
|
type: Boolean,
|
|
1096
1096
|
reflect: !0
|
|
1097
|
-
})], $.prototype, "multiple", void 0),
|
|
1097
|
+
})], $.prototype, "multiple", void 0), n([r({
|
|
1098
1098
|
type: Number,
|
|
1099
1099
|
reflect: !0
|
|
1100
|
-
})], $.prototype, "maxlength", void 0),
|
|
1100
|
+
})], $.prototype, "maxlength", void 0), n([r({
|
|
1101
1101
|
type: Boolean,
|
|
1102
1102
|
reflect: !0
|
|
1103
|
-
})], $.prototype, "range", void 0),
|
|
1103
|
+
})], $.prototype, "range", void 0), n([r({
|
|
1104
1104
|
type: Boolean,
|
|
1105
1105
|
attribute: "show-range-labels"
|
|
1106
|
-
})], $.prototype, "showRangeLabels", void 0),
|
|
1106
|
+
})], $.prototype, "showRangeLabels", void 0), n([r({
|
|
1107
1107
|
type: String,
|
|
1108
1108
|
reflect: !0
|
|
1109
|
-
})], $.prototype, "min", void 0),
|
|
1109
|
+
})], $.prototype, "min", void 0), n([r({
|
|
1110
1110
|
type: String,
|
|
1111
1111
|
reflect: !0
|
|
1112
|
-
})], $.prototype, "max", void 0),
|
|
1112
|
+
})], $.prototype, "max", void 0), n([r({ type: Boolean })], $.prototype, "weeknumbers", void 0), n([r({
|
|
1113
1113
|
type: Boolean,
|
|
1114
1114
|
reflect: !0
|
|
1115
|
-
})], $.prototype, "withcontrols", void 0),
|
|
1115
|
+
})], $.prototype, "withcontrols", void 0), n([r({ converter: x.csvToArray })], $.prototype, "excludedates", void 0), n([r({ converter: x.csvToArray })], $.prototype, "excludeweekdays", void 0), n([r({ type: String })], $.prototype, "currentmonth", void 0), n([r({ type: String })], $.prototype, "today", void 0), n([r({
|
|
1116
1116
|
type: Boolean,
|
|
1117
1117
|
reflect: !0,
|
|
1118
1118
|
attribute: "calendar-open"
|
|
1119
|
-
})], $.prototype, "calendarOpen", void 0),
|
|
1119
|
+
})], $.prototype, "calendarOpen", void 0), n([r({ type: String })], $.prototype, "timezone", void 0), n([e()], $.prototype, "inputClasses", void 0);
|
|
1120
1120
|
try {
|
|
1121
|
-
|
|
1121
|
+
a("pkt-datepicker")($);
|
|
1122
1122
|
} catch {
|
|
1123
1123
|
console.warn("Forsøker å definere <pkt-datepicker>, men den er allerede definert");
|
|
1124
1124
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as e } from "./element-CduG0XyF.js";
|
|
2
2
|
//#region ../../node_modules/lit-html/directive-helpers.js
|
|
3
3
|
var { I: t } = e, n = (e) => e, r = (e) => e.strings === void 0, i = () => document.createComment(""), a = (e, r, a) => {
|
|
4
4
|
let o = e._$AA.parentNode, s = r === void 0 ? e._$AB : r._$AA;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var{I:e}=require(`./element-
|
|
1
|
+
var{I:e}=require(`./element-CXAtr6Gu.cjs`).m,t=e=>e,n=e=>e.strings===void 0,r=()=>document.createComment(``),i=(n,i,a)=>{let o=n._$AA.parentNode,s=i===void 0?n._$AB:i._$AA;if(a===void 0)a=new e(o.insertBefore(r(),s),o.insertBefore(r(),s),n,n.options);else{let e=a._$AB.nextSibling,r=a._$AM,i=r!==n;if(i){let e;a._$AQ?.(n),a._$AM=n,a._$AP!==void 0&&(e=n._$AU)!==r._$AU&&a._$AP(e)}if(e!==s||i){let n=a._$AA;for(;n!==e;){let e=t(n).nextSibling;t(o).insertBefore(n,s),n=e}}}return a},a=(e,t,n=e)=>(e._$AI(t,n),e),o={},s=(e,t=o)=>e._$AH=t,c=e=>e._$AH,l=e=>{e._$AR(),e._$AA.remove()};Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return c}});
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { PktElement } from '../../base-elements/element';
|
|
2
2
|
export declare class Loader extends PktElement {
|
|
3
|
+
private demoLoading;
|
|
4
|
+
private demoTimer;
|
|
5
|
+
connectedCallback(): void;
|
|
6
|
+
disconnectedCallback(): void;
|
|
7
|
+
private startDemoTimer;
|
|
8
|
+
private resetDemo;
|
|
3
9
|
render(): import('lit-html').TemplateResult<1>;
|
|
4
10
|
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=globalThis,t=e=>e,n=e.trustedTypes,r=n?n.createPolicy(`lit-html`,{createHTML:e=>e}):void 0,i=`$lit$`,a=`lit$${Math.random().toFixed(9).slice(2)}$`,o=`?`+a,s=`<${o}>`,c=document,l=()=>c.createComment(``),u=e=>e===null||typeof e!=`object`&&typeof e!=`function`,d=Array.isArray,f=e=>d(e)||typeof e?.[Symbol.iterator]==`function`,p=`[
|
|
2
|
+
\f\r]`,m=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,h=/-->/g,g=/>/g,_=RegExp(`>|${p}(?:([^\\s"'>=/]+)(${p}*=${p}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,`g`),v=/'/g,y=/"/g,b=/^(?:script|style|textarea|title)$/i,x=(e=>(t,...n)=>({_$litType$:e,strings:t,values:n}))(1),S=Symbol.for(`lit-noChange`),C=Symbol.for(`lit-nothing`),w=new WeakMap,T=c.createTreeWalker(c,129);function E(e,t){if(!d(e)||!e.hasOwnProperty(`raw`))throw Error(`invalid template strings array`);return r===void 0?t:r.createHTML(t)}var D=(e,t)=>{let n=e.length-1,r=[],o,c=t===2?`<svg>`:t===3?`<math>`:``,l=m;for(let t=0;t<n;t++){let n=e[t],u,d,f=-1,p=0;for(;p<n.length&&(l.lastIndex=p,d=l.exec(n),d!==null);)p=l.lastIndex,l===m?d[1]===`!--`?l=h:d[1]===void 0?d[2]===void 0?d[3]!==void 0&&(l=_):(b.test(d[2])&&(o=RegExp(`</`+d[2],`g`)),l=_):l=g:l===_?d[0]===`>`?(l=o??m,f=-1):d[1]===void 0?f=-2:(f=l.lastIndex-d[2].length,u=d[1],l=d[3]===void 0?_:d[3]===`"`?y:v):l===y||l===v?l=_:l===h||l===g?l=m:(l=_,o=void 0);let x=l===_&&e[t+1].startsWith(`/>`)?` `:``;c+=l===m?n+s:f>=0?(r.push(u),n.slice(0,f)+i+n.slice(f)+a+x):n+a+(f===-2?t:x)}return[E(e,c+(e[n]||`<?>`)+(t===2?`</svg>`:t===3?`</math>`:``)),r]},O=class e{constructor({strings:t,_$litType$:r},s){let c;this.parts=[];let u=0,d=0,f=t.length-1,p=this.parts,[m,h]=D(t,r);if(this.el=e.createElement(m,s),T.currentNode=this.el.content,r===2||r===3){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;(c=T.nextNode())!==null&&p.length<f;){if(c.nodeType===1){if(c.hasAttributes())for(let e of c.getAttributeNames())if(e.endsWith(i)){let t=h[d++],n=c.getAttribute(e).split(a),r=/([.?@])?(.*)/.exec(t);p.push({type:1,index:u,name:r[2],strings:n,ctor:r[1]===`.`?N:r[1]===`?`?P:r[1]===`@`?F:M}),c.removeAttribute(e)}else e.startsWith(a)&&(p.push({type:6,index:u}),c.removeAttribute(e));if(b.test(c.tagName)){let e=c.textContent.split(a),t=e.length-1;if(t>0){c.textContent=n?n.emptyScript:``;for(let n=0;n<t;n++)c.append(e[n],l()),T.nextNode(),p.push({type:2,index:++u});c.append(e[t],l())}}}else if(c.nodeType===8)if(c.data===o)p.push({type:2,index:u});else{let e=-1;for(;(e=c.data.indexOf(a,e+1))!==-1;)p.push({type:7,index:u}),e+=a.length-1}u++}}static createElement(e,t){let n=c.createElement(`template`);return n.innerHTML=e,n}};function k(e,t,n=e,r){if(t===S)return t;let i=r===void 0?n._$Cl:n._$Co?.[r],a=u(t)?void 0:t._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(e),i._$AT(e,n,r)),r===void 0?n._$Cl=i:(n._$Co??=[])[r]=i),i!==void 0&&(t=k(e,i._$AS(e,t.values),i,r)),t}var A=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:n}=this._$AD,r=(e?.creationScope??c).importNode(t,!0);T.currentNode=r;let i=T.nextNode(),a=0,o=0,s=n[0];for(;s!==void 0;){if(a===s.index){let t;s.type===2?t=new j(i,i.nextSibling,this,e):s.type===1?t=new s.ctor(i,s.name,s.strings,this,e):s.type===6&&(t=new I(i,this,e)),this._$AV.push(t),s=n[++o]}a!==s?.index&&(i=T.nextNode(),a++)}return T.currentNode=c,r}p(e){let t=0;for(let n of this._$AV)n!==void 0&&(n.strings===void 0?n._$AI(e[t]):(n._$AI(e,n,t),t+=n.strings.length-2)),t++}},j=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,r){this.type=2,this._$AH=C,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=k(this,e,t),u(e)?e===C||e==null||e===``?(this._$AH!==C&&this._$AR(),this._$AH=C):e!==this._$AH&&e!==S&&this._(e):e._$litType$===void 0?e.nodeType===void 0?f(e)?this.k(e):this._(e):this.T(e):this.$(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==C&&u(this._$AH)?this._$AA.nextSibling.data=e:this.T(c.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:n}=e,r=typeof n==`number`?this._$AC(e):(n.el===void 0&&(n.el=O.createElement(E(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===r)this._$AH.p(t);else{let e=new A(r,this),n=e.u(this.options);e.p(t),this.T(n),this._$AH=e}}_$AC(e){let t=w.get(e.strings);return t===void 0&&w.set(e.strings,t=new O(e)),t}k(t){d(this._$AH)||(this._$AH=[],this._$AR());let n=this._$AH,r,i=0;for(let a of t)i===n.length?n.push(r=new e(this.O(l()),this.O(l()),this,this.options)):r=n[i],r._$AI(a),i++;i<n.length&&(this._$AR(r&&r._$AB.nextSibling,i),n.length=i)}_$AR(e=this._$AA.nextSibling,n){for(this._$AP?.(!1,!0,n);e!==this._$AB;){let n=t(e).nextSibling;t(e).remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},M=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,r,i){this.type=1,this._$AH=C,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=i,n.length>2||n[0]!==``||n[1]!==``?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=C}_$AI(e,t=this,n,r){let i=this.strings,a=!1;if(i===void 0)e=k(this,e,t,0),a=!u(e)||e!==this._$AH&&e!==S,a&&(this._$AH=e);else{let r=e,o,s;for(e=i[0],o=0;o<i.length-1;o++)s=k(this,r[n+o],t,o),s===S&&(s=this._$AH[o]),a||=!u(s)||s!==this._$AH[o],s===C?e=C:e!==C&&(e+=(s??``)+i[o+1]),this._$AH[o]=s}a&&!r&&this.j(e)}j(e){e===C?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??``)}},N=class extends M{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===C?void 0:e}},P=class extends M{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==C)}},F=class extends M{constructor(e,t,n,r,i){super(e,t,n,r,i),this.type=5}_$AI(e,t=this){if((e=k(this,e,t,0)??C)===S)return;let n=this._$AH,r=e===C&&n!==C||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==C&&(n===C||r);r&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH==`function`?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},I=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){k(this,e)}},ee={M:i,P:a,A:o,C:1,L:D,R:A,D:f,V:k,I:j,H:M,N:P,U:F,B:N,F:I},te=e.litHtmlPolyfillSupport;te?.(O,j),(e.litHtmlVersions??=[]).push(`3.3.2`);var ne=(e,t,n)=>{let r=n?.renderBefore??t,i=r._$litPart$;if(i===void 0){let e=n?.renderBefore??null;r._$litPart$=i=new j(t.insertBefore(l(),e),e,void 0,n??{})}return i._$AI(e),i},re={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ie=e=>(...t)=>({_$litDirective$:e,values:t}),ae=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}},oe=e=>(t,n)=>{n===void 0?customElements.define(e,t):n.addInitializer(()=>{customElements.define(e,t)})},L=globalThis,R=L.ShadowRoot&&(L.ShadyCSS===void 0||L.ShadyCSS.nativeShadow)&&`adoptedStyleSheets`in Document.prototype&&`replace`in CSSStyleSheet.prototype,z=Symbol(),B=new WeakMap,se=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==z)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(R&&e===void 0){let n=t!==void 0&&t.length===1;n&&(e=B.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&B.set(t,e))}return e}toString(){return this.cssText}},ce=e=>new se(typeof e==`string`?e:e+``,void 0,z),le=(e,t)=>{if(R)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let n of t){let t=document.createElement(`style`),r=L.litNonce;r!==void 0&&t.setAttribute(`nonce`,r),t.textContent=n.cssText,e.appendChild(t)}},V=R?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t=``;for(let n of e.cssRules)t+=n.cssText;return ce(t)})(e):e,{is:ue,defineProperty:de,getOwnPropertyDescriptor:fe,getOwnPropertyNames:pe,getOwnPropertySymbols:me,getPrototypeOf:he}=Object,H=globalThis,U=H.trustedTypes,ge=U?U.emptyScript:``,_e=H.reactiveElementPolyfillSupport,W=(e,t)=>e,G={toAttribute(e,t){switch(t){case Boolean:e=e?ge:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=e!==null;break;case Number:n=e===null?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},K=(e,t)=>!ue(e,t),q={attribute:!0,type:String,converter:G,reflect:!1,useDefault:!1,hasChanged:K};Symbol.metadata??=Symbol(`metadata`),H.litPropertyMetadata??=new WeakMap;var J=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=q){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let n=Symbol(),r=this.getPropertyDescriptor(e,n,t);r!==void 0&&de(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){let{get:r,set:i}=fe(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:r,set(t){let a=r?.call(this);i?.call(this,t),this.requestUpdate(e,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??q}static _$Ei(){if(this.hasOwnProperty(W(`elementProperties`)))return;let e=he(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(W(`finalized`)))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(W(`properties`))){let e=this.properties,t=[...pe(e),...me(e)];for(let n of t)this.createProperty(n,e[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[e,n]of t)this.elementProperties.set(e,n)}this._$Eh=new Map;for(let[e,t]of this.elementProperties){let n=this._$Eu(e,t);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let e of n)t.unshift(V(e))}else e!==void 0&&t.push(V(e));return t}static _$Eu(e,t){let n=t.attribute;return!1===n?void 0:typeof n==`string`?n:typeof e==`string`?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return le(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$ET(e,t){let n=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,n);if(r!==void 0&&!0===n.reflect){let i=(n.converter?.toAttribute===void 0?G:n.converter).toAttribute(t,n.type);this._$Em=e,i==null?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(e,t){let n=this.constructor,r=n._$Eh.get(e);if(r!==void 0&&this._$Em!==r){let e=n.getPropertyOptions(r),i=typeof e.converter==`function`?{fromAttribute:e.converter}:e.converter?.fromAttribute===void 0?G:e.converter;this._$Em=r;let a=i.fromAttribute(t,e.type);this[r]=a??this._$Ej?.get(r)??a,this._$Em=null}}requestUpdate(e,t,n,r=!1,i){if(e!==void 0){let a=this.constructor;if(!1===r&&(i=this[e]),n??=a.getPropertyOptions(e),!((n.hasChanged??K)(i,t)||n.useDefault&&n.reflect&&i===this._$Ej?.get(e)&&!this.hasAttribute(a._$Eu(e,n))))return;this.C(e,t,n)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:n,reflect:r,wrapped:i},a){n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??t??this[e]),!0!==i||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(t=void 0),this._$AL.set(e,t)),!0===r&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[t,n]of e){let{wrapped:e}=n,r=this[t];!0!==e||this._$AL.has(t)||r===void 0||this.C(t,void 0,n,r)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}};J.elementStyles=[],J.shadowRootOptions={mode:`open`},J[W(`elementProperties`)]=new Map,J[W(`finalized`)]=new Map,_e?.({ReactiveElement:J}),(H.reactiveElementVersions??=[]).push(`2.1.2`);var ve={attribute:!0,type:String,converter:G,reflect:!1,hasChanged:K},ye=(e=ve,t,n)=>{let{kind:r,metadata:i}=n,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),r===`setter`&&((e=Object.create(e)).wrapped=!0),a.set(n.name,e),r===`accessor`){let{name:r}=n;return{set(n){let i=t.get.call(this);t.set.call(this,n),this.requestUpdate(r,i,e,!0,n)},init(t){return t!==void 0&&this.C(r,void 0,e,t),t}}}if(r===`setter`){let{name:r}=n;return function(n){let i=this[r];t.call(this,n),this.requestUpdate(r,i,e,!0,n)}}throw Error(`Unsupported decorator location: `+r)};function Y(e){return(t,n)=>typeof n==`object`?ye(e,t,n):((e,t,n)=>{let r=t.hasOwnProperty(n);return t.constructor.createProperty(n,e),r?Object.getOwnPropertyDescriptor(t,n):void 0})(e,t,n)}function be(e){return Y({...e,state:!0,attribute:!1})}var X=globalThis,Z=class extends J{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ne(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return S}};Z._$litElement$=!0,Z.finalized=!0,X.litElementHydrateSupport?.({LitElement:Z});var xe=X.litElementPolyfillSupport;xe?.({LitElement:Z}),(X.litElementVersions??=[]).push(`4.2.2`);var Se={example:{hi:`Hei!`},generic:{from:`Fra`,to:`Til`},calendar:{buttonAltText:`Åpne kalender`,deleteDate:`Fjern dato`},dates:{month:`Måned`,year:`År`,days:[`Mandag`,`Tirsdag`,`Onsdag`,`Torsdag`,`Fredag`,`Lørdag`,`Søndag`],daysShort:[`Man`,`Tir`,`Ons`,`Tor`,`Fre`,`Lør`,`Søn`],months:[`Januar`,`Februar`,`Mars`,`April`,`Mai`,`Juni`,`Juli`,`August`,`September`,`Oktober`,`November`,`Desember`],monthsShort:[`Jan`,`Feb`,`Mar`,`Apr`,`Mai`,`Jun`,`Jul`,`Aug`,`Sep`,`Okt`,`Nov`,`Des`],week:`Uke`,prevMonth:`Forrige måned`,nextMonth:`Neste måned`},timepicker:{hours:`Timer`,minutes:`Minutter`,openPicker:`Åpne tidspunkt-velger`,prevTime:`Forrige tidspunkt`,nextTime:`Neste tidspunkt`,selectTime:`Velg tidspunkt`},forms:{search:{placeholder:`Søk…`},labels:{optional:`Valgfritt`,required:`Må fylles ut`},messages:{required:`Dette feltet er påkrevd`,invalid:`Ugyldig verdi`,invalidPattern:`Ugyldig format`,tooShort:`For kort`,tooLong:`For lang`,rangeUnderflow:`For lav verdi`,rangeOverflow:`For høy verdi`,stepMismatch:`Må treffe på steget som er definert i elementet`,timeStepMismatch:`Må treffe på et steg, for eksempel 0, {step} minutter`,timeStepMismatchHour:`Må treffe på hver hele time`,timeStepMismatchHalfHour:`Må treffe på hver hele eller halve time`,rangeUnderflowMin:`Verdien må være større enn eller lik {min}.`,rangeOverflowMax:`Verdien må være mindre enn eller lik {max}.`,dateUnderflow:`For tidlig dato`,dateOverflow:`For sen dato`},helptext:{helptextDropdownButton:`Les mer`},date:{multiple:`Her kan du velge flere datoer. Trykk komma eller enter når du har skrevet inn en dato.`}}};function Q(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var $=class extends Z{constructor(...e){super(...e),this.strings=Se,this.role=null}hotReplacedCallback(){this.requestUpdate()}};Q([Y({type:Object})],$.prototype,`strings`,void 0),Q([Y({type:String})],$.prototype,`role`,void 0);var Ce=class extends ${createRenderRoot(){return this}};Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return be}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return ie}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return Z}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return ae}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return ee}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return Q}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return Y}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return Se}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return oe}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return Ce}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return re}});
|
|
@@ -241,11 +241,35 @@ var ne = (e, t, n) => {
|
|
|
241
241
|
r._$litPart$ = i = new j(t.insertBefore(l(), e), e, void 0, n ?? {});
|
|
242
242
|
}
|
|
243
243
|
return i._$AI(e), i;
|
|
244
|
-
}, re =
|
|
244
|
+
}, re = {
|
|
245
|
+
ATTRIBUTE: 1,
|
|
246
|
+
CHILD: 2,
|
|
247
|
+
PROPERTY: 3,
|
|
248
|
+
BOOLEAN_ATTRIBUTE: 4,
|
|
249
|
+
EVENT: 5,
|
|
250
|
+
ELEMENT: 6
|
|
251
|
+
}, ie = (e) => (...t) => ({
|
|
252
|
+
_$litDirective$: e,
|
|
253
|
+
values: t
|
|
254
|
+
}), ae = class {
|
|
255
|
+
constructor(e) {}
|
|
256
|
+
get _$AU() {
|
|
257
|
+
return this._$AM._$AU;
|
|
258
|
+
}
|
|
259
|
+
_$AT(e, t, n) {
|
|
260
|
+
this._$Ct = e, this._$AM = t, this._$Ci = n;
|
|
261
|
+
}
|
|
262
|
+
_$AS(e, t) {
|
|
263
|
+
return this.update(e, t);
|
|
264
|
+
}
|
|
265
|
+
update(e, t) {
|
|
266
|
+
return this.render(...t);
|
|
267
|
+
}
|
|
268
|
+
}, oe = (e) => (t, n) => {
|
|
245
269
|
n === void 0 ? customElements.define(e, t) : n.addInitializer(() => {
|
|
246
270
|
customElements.define(e, t);
|
|
247
271
|
});
|
|
248
|
-
}, L = globalThis, R = L.ShadowRoot && (L.ShadyCSS === void 0 || L.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, z = Symbol(), B = /* @__PURE__ */ new WeakMap(),
|
|
272
|
+
}, L = globalThis, R = L.ShadowRoot && (L.ShadyCSS === void 0 || L.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, z = Symbol(), B = /* @__PURE__ */ new WeakMap(), se = class {
|
|
249
273
|
constructor(e, t, n) {
|
|
250
274
|
if (this._$cssResult$ = !0, n !== z) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
251
275
|
this.cssText = e, this.t = t;
|
|
@@ -261,7 +285,7 @@ var ne = (e, t, n) => {
|
|
|
261
285
|
toString() {
|
|
262
286
|
return this.cssText;
|
|
263
287
|
}
|
|
264
|
-
},
|
|
288
|
+
}, ce = (e) => new se(typeof e == "string" ? e : e + "", void 0, z), le = (e, t) => {
|
|
265
289
|
if (R) e.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
266
290
|
else for (let n of t) {
|
|
267
291
|
let t = document.createElement("style"), r = L.litNonce;
|
|
@@ -270,12 +294,12 @@ var ne = (e, t, n) => {
|
|
|
270
294
|
}, V = R ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((e) => {
|
|
271
295
|
let t = "";
|
|
272
296
|
for (let n of e.cssRules) t += n.cssText;
|
|
273
|
-
return
|
|
274
|
-
})(e) : e, { is:
|
|
297
|
+
return ce(t);
|
|
298
|
+
})(e) : e, { is: ue, defineProperty: de, getOwnPropertyDescriptor: fe, getOwnPropertyNames: pe, getOwnPropertySymbols: me, getPrototypeOf: he } = Object, H = globalThis, U = H.trustedTypes, ge = U ? U.emptyScript : "", _e = H.reactiveElementPolyfillSupport, W = (e, t) => e, G = {
|
|
275
299
|
toAttribute(e, t) {
|
|
276
300
|
switch (t) {
|
|
277
301
|
case Boolean:
|
|
278
|
-
e = e ?
|
|
302
|
+
e = e ? ge : null;
|
|
279
303
|
break;
|
|
280
304
|
case Object:
|
|
281
305
|
case Array: e = e == null ? e : JSON.stringify(e);
|
|
@@ -300,7 +324,7 @@ var ne = (e, t, n) => {
|
|
|
300
324
|
}
|
|
301
325
|
return n;
|
|
302
326
|
}
|
|
303
|
-
}, K = (e, t) => !
|
|
327
|
+
}, K = (e, t) => !ue(e, t), q = {
|
|
304
328
|
attribute: !0,
|
|
305
329
|
type: String,
|
|
306
330
|
converter: G,
|
|
@@ -319,11 +343,11 @@ var J = class extends HTMLElement {
|
|
|
319
343
|
static createProperty(e, t = q) {
|
|
320
344
|
if (t.state && (t.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((t = Object.create(t)).wrapped = !0), this.elementProperties.set(e, t), !t.noAccessor) {
|
|
321
345
|
let n = Symbol(), r = this.getPropertyDescriptor(e, n, t);
|
|
322
|
-
r !== void 0 &&
|
|
346
|
+
r !== void 0 && de(this.prototype, e, r);
|
|
323
347
|
}
|
|
324
348
|
}
|
|
325
349
|
static getPropertyDescriptor(e, t, n) {
|
|
326
|
-
let { get: r, set: i } =
|
|
350
|
+
let { get: r, set: i } = fe(this.prototype, e) ?? {
|
|
327
351
|
get() {
|
|
328
352
|
return this[t];
|
|
329
353
|
},
|
|
@@ -346,13 +370,13 @@ var J = class extends HTMLElement {
|
|
|
346
370
|
}
|
|
347
371
|
static _$Ei() {
|
|
348
372
|
if (this.hasOwnProperty(W("elementProperties"))) return;
|
|
349
|
-
let e =
|
|
373
|
+
let e = he(this);
|
|
350
374
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
|
351
375
|
}
|
|
352
376
|
static finalize() {
|
|
353
377
|
if (this.hasOwnProperty(W("finalized"))) return;
|
|
354
378
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(W("properties"))) {
|
|
355
|
-
let e = this.properties, t = [...
|
|
379
|
+
let e = this.properties, t = [...pe(e), ...me(e)];
|
|
356
380
|
for (let n of t) this.createProperty(n, e[n]);
|
|
357
381
|
}
|
|
358
382
|
let e = this[Symbol.metadata];
|
|
@@ -398,7 +422,7 @@ var J = class extends HTMLElement {
|
|
|
398
422
|
}
|
|
399
423
|
createRenderRoot() {
|
|
400
424
|
let e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
401
|
-
return
|
|
425
|
+
return le(e, this.constructor.elementStyles), e;
|
|
402
426
|
}
|
|
403
427
|
connectedCallback() {
|
|
404
428
|
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach((e) => e.hostConnected?.());
|
|
@@ -493,16 +517,16 @@ var J = class extends HTMLElement {
|
|
|
493
517
|
updated(e) {}
|
|
494
518
|
firstUpdated(e) {}
|
|
495
519
|
};
|
|
496
|
-
J.elementStyles = [], J.shadowRootOptions = { mode: "open" }, J[W("elementProperties")] = /* @__PURE__ */ new Map(), J[W("finalized")] = /* @__PURE__ */ new Map(),
|
|
520
|
+
J.elementStyles = [], J.shadowRootOptions = { mode: "open" }, J[W("elementProperties")] = /* @__PURE__ */ new Map(), J[W("finalized")] = /* @__PURE__ */ new Map(), _e?.({ ReactiveElement: J }), (H.reactiveElementVersions ??= []).push("2.1.2");
|
|
497
521
|
//#endregion
|
|
498
522
|
//#region ../../node_modules/@lit/reactive-element/decorators/property.js
|
|
499
|
-
var
|
|
523
|
+
var ve = {
|
|
500
524
|
attribute: !0,
|
|
501
525
|
type: String,
|
|
502
526
|
converter: G,
|
|
503
527
|
reflect: !1,
|
|
504
528
|
hasChanged: K
|
|
505
|
-
},
|
|
529
|
+
}, ye = (e = ve, t, n) => {
|
|
506
530
|
let { kind: r, metadata: i } = n, a = globalThis.litPropertyMetadata.get(i);
|
|
507
531
|
if (a === void 0 && globalThis.litPropertyMetadata.set(i, a = /* @__PURE__ */ new Map()), r === "setter" && ((e = Object.create(e)).wrapped = !0), a.set(n.name, e), r === "accessor") {
|
|
508
532
|
let { name: r } = n;
|
|
@@ -526,14 +550,14 @@ var he = {
|
|
|
526
550
|
throw Error("Unsupported decorator location: " + r);
|
|
527
551
|
};
|
|
528
552
|
function Y(e) {
|
|
529
|
-
return (t, n) => typeof n == "object" ?
|
|
553
|
+
return (t, n) => typeof n == "object" ? ye(e, t, n) : ((e, t, n) => {
|
|
530
554
|
let r = t.hasOwnProperty(n);
|
|
531
555
|
return t.constructor.createProperty(n, e), r ? Object.getOwnPropertyDescriptor(t, n) : void 0;
|
|
532
556
|
})(e, t, n);
|
|
533
557
|
}
|
|
534
558
|
//#endregion
|
|
535
559
|
//#region ../../node_modules/@lit/reactive-element/decorators/state.js
|
|
536
|
-
function
|
|
560
|
+
function be(e) {
|
|
537
561
|
return Y({
|
|
538
562
|
...e,
|
|
539
563
|
state: !0,
|
|
@@ -565,9 +589,9 @@ var X = globalThis, Z = class extends J {
|
|
|
565
589
|
}
|
|
566
590
|
};
|
|
567
591
|
Z._$litElement$ = !0, Z.finalized = !0, X.litElementHydrateSupport?.({ LitElement: Z });
|
|
568
|
-
var
|
|
569
|
-
|
|
570
|
-
var
|
|
592
|
+
var xe = X.litElementPolyfillSupport;
|
|
593
|
+
xe?.({ LitElement: Z }), (X.litElementVersions ??= []).push("4.2.2");
|
|
594
|
+
var Se = {
|
|
571
595
|
example: { hi: "Hei!" },
|
|
572
596
|
generic: {
|
|
573
597
|
from: "Fra",
|
|
@@ -677,17 +701,17 @@ function Q(e, t, n, r) {
|
|
|
677
701
|
//#region src/base-elements/element.ts
|
|
678
702
|
var $ = class extends Z {
|
|
679
703
|
constructor(...e) {
|
|
680
|
-
super(...e), this.strings =
|
|
704
|
+
super(...e), this.strings = Se, this.role = null;
|
|
681
705
|
}
|
|
682
706
|
hotReplacedCallback() {
|
|
683
707
|
this.requestUpdate();
|
|
684
708
|
}
|
|
685
709
|
};
|
|
686
710
|
Q([Y({ type: Object })], $.prototype, "strings", void 0), Q([Y({ type: String })], $.prototype, "role", void 0);
|
|
687
|
-
var
|
|
711
|
+
var Ce = class extends $ {
|
|
688
712
|
createRenderRoot() {
|
|
689
713
|
return this;
|
|
690
714
|
}
|
|
691
715
|
};
|
|
692
716
|
//#endregion
|
|
693
|
-
export {
|
|
717
|
+
export { be as a, ie as c, C as d, S as f, Z as i, ae as l, ee as m, Q as n, Y as o, x as p, Se as r, oe as s, Ce as t, re as u };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as i } from "./async-directive-CaQiqjyV.js";
|
|
1
|
+
import { c as e, f as t, t as n, u as r } from "./element-CduG0XyF.js";
|
|
2
|
+
import { t as i } from "./async-directive-Cz6tcqge.js";
|
|
4
3
|
//#region src/controllers/pkt-slot-utils.ts
|
|
5
4
|
function a(e) {
|
|
6
5
|
return e.classList && (e.classList.contains("_dialog_overlay") || e.classList.contains("backdrop")) ? !0 : typeof e.hasAttribute == "function" && e.hasAttribute("data-skip");
|
|
@@ -124,9 +123,9 @@ var m = class e {
|
|
|
124
123
|
notifyDirectives() {
|
|
125
124
|
for (let e of this.directives) e.handleNodesChanged();
|
|
126
125
|
}
|
|
127
|
-
}, h =
|
|
126
|
+
}, h = e(class extends i {
|
|
128
127
|
constructor(e) {
|
|
129
|
-
if (super(e), this.manager = null, this.lastGeneration = -1, e.type !==
|
|
128
|
+
if (super(e), this.manager = null, this.lastGeneration = -1, e.type !== r.CHILD) throw Error("slotContent() can only be used in child expressions");
|
|
130
129
|
}
|
|
131
130
|
render(e, n) {
|
|
132
131
|
return t;
|
|
@@ -154,7 +153,7 @@ var m = class e {
|
|
|
154
153
|
let e = this.manager.generation;
|
|
155
154
|
return e === this.lastGeneration ? t : (this.lastGeneration = e, this.manager.getNodes(this.slotName));
|
|
156
155
|
}
|
|
157
|
-
}), g = class extends
|
|
156
|
+
}), g = class extends n {
|
|
158
157
|
connectedCallback() {
|
|
159
158
|
l(this).collectNodes(), super.connectedCallback();
|
|
160
159
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./element-CXAtr6Gu.cjs`),t=require(`./async-directive-DO1QtVmf.cjs`);function n(e){return e.classList&&(e.classList.contains(`_dialog_overlay`)||e.classList.contains(`backdrop`))?!0:typeof e.hasAttribute==`function`&&e.hasAttribute(`data-skip`)}function r(e){return e.nodeName===`OPTION`||e.nodeName===`DATA`}function i(e){return e.nodeType===Node.TEXT_NODE&&e.nodeValue?.trim()!==``}var a=new WeakMap;function o(e){let t=a.get(e);return t||(t=new d(e),a.set(e,t)),t}var s=Symbol(`default`);function c(e){return e===void 0?s:e}function l(e,t){if(e.nodeType===Node.COMMENT_NODE)return!1;if(e.nodeType===Node.TEXT_NODE)return i(e)?(u(t,s,e),!0):!1;if(e.nodeType===Node.ELEMENT_NODE){let i=e;if(n(i)||r(i))return!1;if(i instanceof HTMLTemplateElement){let e=Array.from(i.content.childNodes),n=c(i.getAttribute(`slot`)??void 0);for(let r of e)u(t,n,r);return!0}let a=i.getAttribute(`slot`);return u(t,a===null?s:c(a),e),!0}return!1}function u(e,t,n){let r=e.get(t);r||(r=[],e.set(t,r)),r.push(n)}var d=class e{static{this.PLACEHOLDER_PREFIX=`pkt-slot`}constructor(e){this.observer=null,this.nodesBySlot=new Map,this.directives=new Set,this.observing=!1,this.trackedNodes=new Set,this.generation=0,this.initialCollectionDone=!1,this.processingMutations=!1,this.placeholderToNode=new Map,this.nodeToPlaceholder=new Map,this.host=e}collectNodes(){if(this.initialCollectionDone)return;this.initialCollectionDone=!0,this.generation++;let e=Array.from(this.host.childNodes);for(let t of e)l(t,this.nodesBySlot)&&this.trackedNodes.add(t)}addDirective(e){this.directives.add(e),this.startObserving()}removeDirective(e){this.directives.delete(e),this.directives.size===0&&this.stopObserving()}getNodes(e){return this.nodesBySlot.get(c(e))??[]}hasContent(e){return this.getNodes(e).length>0}ensurePlaceholder(t){if(this.nodeToPlaceholder.has(t)||t.parentNode!==this.host)return;let n=document.createComment(e.PLACEHOLDER_PREFIX);this.host.insertBefore(n,t),this.placeholderToNode.set(n,t),this.nodeToPlaceholder.set(t,n)}startObserving(){this.observing||(this.observing=!0,setTimeout(()=>{this.observing&&(this.observer=new MutationObserver(e=>{this.handleMutations(e)}),this.observer.observe(this.host,{childList:!0}))},0))}stopObserving(){this.observing&&(this.observing=!1,this.observer?.disconnect(),this.observer=null)}handleMutations(e){if(this.processingMutations)return;this.processingMutations=!0;let t=!1;for(let n of e)if(n.target===this.host){for(let e of n.removedNodes){let n=this.placeholderToNode.get(e);if(n){n.parentNode?.removeChild(n),this.trackedNodes.delete(n),this.removeFromSlots(n),this.placeholderToNode.delete(e),this.nodeToPlaceholder.delete(n),t=!0;continue}if(this.trackedNodes.has(e)){this.trackedNodes.delete(e),this.removeFromSlots(e);let n=this.nodeToPlaceholder.get(e);n&&(n.parentNode?.removeChild(n),this.placeholderToNode.delete(n),this.nodeToPlaceholder.delete(e)),t=!0}}for(let e of n.addedNodes)this.placeholderToNode.has(e)||!this.trackedNodes.has(e)&&this.isUserContent(e)&&l(e,this.nodesBySlot)&&(this.trackedNodes.add(e),t=!0)}t&&(this.generation++,this.notifyDirectives()),this.observer?.takeRecords(),this.processingMutations=!1}isUserContent(e){if(e.nodeType===Node.COMMENT_NODE)return!1;if(e.nodeType===Node.TEXT_NODE)return i(e);if(e.nodeType===Node.ELEMENT_NODE){let t=e;return!(n(t)||r(t))}return!1}removeFromSlots(e){for(let[t,n]of this.nodesBySlot){let r=n.indexOf(e);if(r!==-1){n.splice(r,1),n.length===0&&this.nodesBySlot.delete(t);return}}}notifyDirectives(){for(let e of this.directives)e.handleNodesChanged()}},f=class extends t.t{constructor(t){if(super(t),this.manager=null,this.lastGeneration=-1,t.type!==e.u.CHILD)throw Error(`slotContent() can only be used in child expressions`)}render(t,n){return e.f}update(e,[t,n]){return this.slotName=n,this.manager||(this.manager=o(t),this.manager.collectNodes(),this.manager.addDirective(this)),this.ensurePlaceholders(),this.getNodesOrNoChange()}handleNodesChanged(){if(!this.isConnected||!this.manager)return;this.ensurePlaceholders();let t=this.getNodesOrNoChange();t!==e.f&&this.setValue(t)}ensurePlaceholders(){if(!this.manager)return;let e=this.manager.getNodes(this.slotName);for(let t of e)this.manager.ensurePlaceholder(t)}disconnected(){this.manager?.removeDirective(this),this.manager=null,this.lastGeneration=-1}reconnected(){}getNodesOrNoChange(){if(!this.manager)return e.f;let t=this.manager.generation;return t===this.lastGeneration?e.f:(this.lastGeneration=t,this.manager.getNodes(this.slotName))}},p=e.c(f),m=class extends e.t{connectedCallback(){o(this).collectNodes(),super.connectedCallback()}hasSlotContent(e){return o(this).hasContent(e)}};Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return m}});
|