@oslokommune/punkt-elements 17.1.2 → 18.0.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 +35 -0
- package/dist/{accordion-BeLvLPrB.js → accordion-1_pdxTgJ.js} +27 -27
- package/dist/{accordion-B3GBlvUC.cjs → accordion-DobbH-Sv.cjs} +5 -5
- package/dist/{alert-Cs4Rmq_J.cjs → alert-COeHz6o2.cjs} +6 -6
- package/dist/{alert-DKK_Tb9J.js → alert-xspFetQ8.js} +26 -26
- package/dist/{async-directive-Da7TJpnq.cjs → async-directive-B5pcIMfO.cjs} +1 -1
- package/dist/{async-directive-BPf6K-V2.js → async-directive-D2Sht790.js} +5 -5
- package/dist/{backlink-D1y26pj3.js → backlink-C0jZFnZ2.js} +8 -8
- package/dist/{backlink-CMmrKTe4.cjs → backlink-ZMhqHaVs.cjs} +3 -3
- package/dist/base-elements/element.d.ts +13 -1
- package/dist/base-elements/input-element.d.ts +4 -2
- package/dist/{breadcrumbs-B6JGhJgC.cjs → breadcrumbs-BS64xd1s.cjs} +7 -7
- package/dist/{breadcrumbs-CcTQ3Grm.js → breadcrumbs-BvMownZN.js} +16 -16
- package/dist/{button-2-OSPJkj.js → button-C44vNLFC.js} +28 -28
- package/dist/{button-CE97NQIk.cjs → button-CR4CXtnj.cjs} +7 -7
- package/dist/{calendar-kn4SrtJy.cjs → calendar-DQ4byeom.cjs} +28 -27
- package/dist/{calendar-pOW3R5Pw.js → calendar-DgjCKMMV.js} +82 -68
- package/dist/{card-zQ0eKRMV.js → card-DhHqC265.js} +44 -44
- package/dist/{card-CETDFkxR.cjs → card-Dpqi6HVt.cjs} +26 -26
- package/dist/{checkbox-CH7NpINF.js → checkbox-BQ1K57AB.js} +23 -23
- package/dist/{checkbox-CQNr_sEg.cjs → checkbox-CXQxbiaX.cjs} +11 -11
- package/dist/{class-map-BeimMvPv.cjs → class-map-CzCE5pqG.cjs} +1 -1
- package/dist/{class-map-CnWCnBSX.js → class-map-F1DJHyb7.js} +3 -3
- package/dist/{combobox-Bvg0UO9w.cjs → combobox-BV4oDiII.cjs} +19 -18
- package/dist/{combobox-CRdYYlxu.js → combobox-DPck39I2.js} +55 -54
- package/dist/components/calendar/calendar.d.ts +21 -6
- package/dist/components/checkbox/checkbox.d.ts +4 -2
- package/dist/components/combobox/combobox-base.d.ts +2 -1
- package/dist/components/consent/strings.d.ts +1 -85
- package/dist/components/datepicker/datepicker-base.d.ts +0 -3
- package/dist/components/datepicker/datepicker-multiple.d.ts +0 -2
- package/dist/components/datepicker/datepicker-range.d.ts +0 -2
- package/dist/components/datepicker/datepicker-single.d.ts +0 -2
- package/dist/components/datepicker/datepicker-utils.d.ts +2 -1
- package/dist/components/fileupload/fileupload-base.d.ts +3 -2
- package/dist/components/header/header-service.d.ts +3 -1
- package/dist/components/header/header.d.ts +2 -1
- package/dist/components/helptext/helptext.d.ts +2 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/input-wrapper/input-wrapper.d.ts +4 -2
- package/dist/components/radiobutton/radiobutton.d.ts +4 -2
- package/dist/components/searchinput/searchinput.d.ts +2 -1
- package/dist/{consent-DZEkhgJ1.js → consent-BneInZov.js} +10 -10
- package/dist/{consent-CyY3RyoC.cjs → consent-_N9foluG.cjs} +5 -5
- package/dist/controllers/strings-controller.d.ts +27 -0
- package/dist/{datepicker-VTqSDQk5.cjs → datepicker-9NX5qt2z.cjs} +38 -37
- package/dist/{datepicker-ButIas85.js → datepicker-nSSSr1U7.js} +104 -104
- package/dist/{directive-helpers-CI8YZqku.js → directive-helpers-BARw3nEZ.js} +1 -1
- package/dist/{directive-helpers-BlAV5EQD.cjs → directive-helpers-D6AAMFKs.cjs} +1 -1
- package/dist/docs/components/fileupload.d.ts +1 -0
- package/dist/element-B8OGznK0.cjs +2 -0
- package/dist/{element-ChsFgr_B.js → element-BKSPVgs2.js} +240 -100
- package/dist/{element-with-slot-Bj7nm7fO.cjs → element-with-slot-DTxILHVv.cjs} +1 -1
- package/dist/{element-with-slot-BvG9ctC-.js → element-with-slot-YUAUFRqw.js} +4 -4
- package/dist/fileupload-D05VSbEP.cjs +402 -0
- package/dist/{fileupload-D5IQ9HDe.js → fileupload-E0LGGNgj.js} +370 -380
- package/dist/{footer-DbYQUYNR.cjs → footer-DBApIdGh.cjs} +32 -32
- package/dist/{footer-DrR64HiK.js → footer-DYilVBMC.js} +91 -91
- package/dist/format-B8meU8Tm.cjs +1 -0
- package/dist/format-BTeSVkED.js +18 -0
- package/dist/{header-ClgIac6n.cjs → header-B7tbX-Ok.cjs} +84 -84
- package/dist/{header-menu-BAsUNKSx.cjs → header-menu-1FFWhvNc.cjs} +24 -24
- package/dist/{header-menu-hVPXsb8g.js → header-menu-D522-VTV.js} +75 -75
- package/dist/{header-KvJ1mGwA.js → header-v3GWAzOK.js} +267 -264
- package/dist/{heading-CFmiSuCQ.cjs → heading-CvytvcL7.cjs} +1 -1
- package/dist/{heading-g-_IUB5T.js → heading-rx_oSCqe.js} +16 -16
- package/dist/helptext-DYFdcylX.cjs +27 -0
- package/dist/{helptext-DZng1D5i.js → helptext-LShGPm-b.js} +18 -19
- package/dist/{icon-9iwd2F2l.cjs → icon-BmMC09mi.cjs} +1 -1
- package/dist/{icon-D-LA22xD.js → icon-HYU1f54x.js} +17 -17
- package/dist/{if-defined-CGzIlZ9-.js → if-defined-BF8XcDi5.js} +1 -1
- package/dist/if-defined-CVYApOgK.cjs +1 -0
- package/dist/{input-element-DBMNBplu.js → input-element-D07DmR34.js} +121 -120
- package/dist/input-element-DumGj_oJ.cjs +1 -0
- package/dist/input-wrapper-Cci_wTvD.js +308 -0
- package/dist/input-wrapper-DDfapoRX.cjs +58 -0
- package/dist/{link-DK7gvmnj.cjs → link-11g2ZNin.cjs} +4 -4
- package/dist/{link-D-Eqm5KH.js → link-CQK0SH4H.js} +13 -13
- package/dist/{linkcard-zqbg7Oqm.js → linkcard-B4GlmjJ6.js} +16 -16
- package/dist/linkcard-DNYsVlV6.cjs +13 -0
- package/dist/{listbox-Dc4rGdPi.cjs → listbox-BlFRhyI7.cjs} +15 -15
- package/dist/{listbox-va_E8afs.js → listbox-wd_OofyF.js} +100 -99
- package/dist/{loader-D_RDICnw.js → loader-0C3qVk16.js} +14 -14
- package/dist/{loader-CMUkVJmE.cjs → loader-B9u2qUlR.cjs} +5 -5
- package/dist/{messagebox-Cv8LaSxv.cjs → messagebox-BD5tGmT-.cjs} +5 -5
- package/dist/{messagebox-Cw-OWDya.js → messagebox-C-y1ICmr.js} +15 -15
- package/dist/{modal-BtInv031.cjs → modal-BzPGQYCs.cjs} +8 -8
- package/dist/{modal-D0t_X2dX.js → modal-Cghs3w-d.js} +20 -20
- 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-footer.cjs +1 -1
- package/dist/pkt-footer.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 +35 -34
- 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-C5EBX2T0.cjs → pkt-options-controller-CEEAqXaB.cjs} +1 -1
- package/dist/{pkt-options-controller-B77vH3PE.js → pkt-options-controller-PtjhmTGk.js} +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-CbcfLerF.js → progressbar-BexQQw1o.js} +21 -21
- package/dist/{progressbar-D5MmnQId.cjs → progressbar-X9mSvpjw.cjs} +5 -5
- package/dist/{radiobutton-BUnf3EPi.js → radiobutton-CkhTasn4.js} +24 -24
- package/dist/{radiobutton-DpsO1F-8.cjs → radiobutton-ln29Ad3U.cjs} +8 -8
- package/dist/{ref-CQoEIIp0.cjs → ref-CHbJYtKE.cjs} +1 -1
- package/dist/{ref-CWD6PjVd.js → ref-Chc_DZAb.js} +2 -2
- package/dist/{repeat-sY6B7fAT.cjs → repeat-CHDs__rN.cjs} +1 -1
- package/dist/{repeat-C02g7d5S.js → repeat-P9SMlKd5.js} +4 -4
- package/dist/searchinput-CPgMEAZZ.cjs +60 -0
- package/dist/{searchinput-DwnjsvJ1.js → searchinput-Da7dKHBH.js} +43 -43
- package/dist/{select-BOJi6H6T.cjs → select-DCuvdAuK.cjs} +4 -3
- package/dist/{select-DMre80qs.js → select-jabMSjft.js} +21 -20
- package/dist/shared-strings/consent.d.ts +71 -0
- package/dist/shared-strings/format.d.ts +21 -0
- package/dist/shared-strings/index.d.ts +14 -0
- package/dist/shared-strings/nb.d.ts +118 -0
- package/dist/shared-strings/resolve.d.ts +12 -0
- package/dist/shared-strings/store.d.ts +27 -0
- package/dist/shared-strings/types.d.ts +29 -0
- package/dist/shared-types/fileupload.d.ts +0 -27
- package/dist/shared-types/index.d.ts +1 -2
- package/dist/shared-utils/combobox/index.d.ts +1 -0
- package/dist/shared-utils/combobox/input-utils.d.ts +2 -1
- package/dist/shared-utils/combobox/messages.d.ts +7 -0
- package/dist/shared-utils/combobox/option-utils.d.ts +2 -1
- package/dist/shared-utils/combobox/selection-manager.d.ts +3 -2
- package/dist/{tabs-Cf9ai0FD.cjs → tabs-DV5CQNDL.cjs} +7 -7
- package/dist/{tabs-TvxgbrCF.js → tabs-D_hoi1zu.js} +32 -32
- package/dist/tag-BxYulmZn.cjs +27 -0
- package/dist/{tag-Ds6n1LIs.js → tag-DK5SgKry.js} +33 -32
- package/dist/tests/strings-override.test.d.ts +0 -0
- package/dist/{textarea-vfzIcXhX.js → textarea-BR7Riace.js} +30 -29
- package/dist/{textarea-BydiLM9Z.cjs → textarea-ffBD_VHq.cjs} +3 -2
- package/dist/{textinput-CMP2jPP_.js → textinput-CRNrsRNV.js} +28 -27
- package/dist/{textinput-DGdicNSx.cjs → textinput-CtHFzAux.cjs} +13 -12
- package/dist/timepicker-AfgJipo6.cjs +196 -0
- package/dist/{timepicker-ClwgYywH.js → timepicker-ixs_E5RY.js} +67 -64
- package/package.json +3 -3
- package/src/components/backlink/backlink.ts +1 -1
- package/src/components/breadcrumbs/breadcrumbs.ts +1 -1
- package/src/components/calendar/calendar.ts +56 -26
- package/src/components/checkbox/checkbox.test.ts +0 -2
- package/src/components/checkbox/checkbox.ts +8 -4
- package/src/components/combobox/combobox-base.ts +2 -1
- package/src/components/combobox/combobox-value.ts +10 -9
- package/src/components/combobox/combobox.selection.test.ts +5 -1
- package/src/components/combobox/combobox.ts +4 -1
- package/src/components/consent/strings.ts +1 -125
- package/src/components/datepicker/date-tags.ts +4 -1
- package/src/components/datepicker/datepicker-base.ts +2 -6
- package/src/components/datepicker/datepicker-multiple.ts +0 -3
- package/src/components/datepicker/datepicker-range.ts +4 -7
- package/src/components/datepicker/datepicker-single.ts +0 -3
- package/src/components/datepicker/datepicker-utils.test.ts +5 -5
- package/src/components/datepicker/datepicker-utils.ts +6 -11
- package/src/components/datepicker/datepicker.ts +8 -1
- package/src/components/fileupload/fileupload-base.ts +25 -16
- package/src/components/fileupload/fileupload-renderers.ts +2 -1
- package/src/components/fileupload/fileupload.test.ts +16 -0
- package/src/components/fileupload/fileupload.ts +19 -15
- package/src/components/header/header-global.ts +3 -3
- package/src/components/header/header-service.ts +13 -8
- package/src/components/header/header.ts +2 -1
- package/src/components/helptext/helptext.test.ts +1 -1
- package/src/components/helptext/helptext.ts +3 -3
- package/src/components/index.ts +9 -0
- package/src/components/input-wrapper/input-wrapper.ts +18 -10
- package/src/components/listbox/listbox.ts +3 -3
- package/src/components/radiobutton/radiobutton.ts +8 -4
- package/src/components/searchinput/searchinput.ts +5 -3
- package/src/components/select/select.ts +1 -0
- package/src/components/tag/tag.ts +2 -1
- package/src/components/textarea/textarea.ts +1 -0
- package/src/components/textinput/textinput.ts +1 -0
- package/src/components/timepicker/timepicker.ts +23 -21
- package/dist/element-BA8v6S7z.cjs +0 -2
- package/dist/fileupload-BeWiTAoW.cjs +0 -401
- package/dist/helptext-CTtKJcML.cjs +0 -27
- package/dist/if-defined-B89_ZeCj.cjs +0 -1
- package/dist/input-element-DYmQw-fH.cjs +0 -1
- package/dist/input-wrapper-BmxNvznr.js +0 -128
- package/dist/input-wrapper-D-fPaTbY.js +0 -176
- package/dist/input-wrapper-D5PR0rJn.cjs +0 -1
- package/dist/input-wrapper-Q-B-aBeb.cjs +0 -54
- package/dist/linkcard-B29cmZqh.cjs +0 -13
- package/dist/searchinput-Bh975rjX.cjs +0 -60
- package/dist/tag-CzojNU7z.cjs +0 -27
- package/dist/timepicker-DYrnLHqN.cjs +0 -195
- package/dist/translations/no.json.d.ts +0 -94
|
@@ -35,7 +35,7 @@ var D = (e, t) => {
|
|
|
35
35
|
index: u,
|
|
36
36
|
name: r[2],
|
|
37
37
|
strings: n,
|
|
38
|
-
ctor: r[1] === "." ? N : r[1] === "?" ?
|
|
38
|
+
ctor: r[1] === "." ? N : r[1] === "?" ? ee : r[1] === "@" ? te : M
|
|
39
39
|
}), c.removeAttribute(e);
|
|
40
40
|
} else e.startsWith(a) && (p.push({
|
|
41
41
|
type: 6,
|
|
@@ -95,7 +95,7 @@ var A = class {
|
|
|
95
95
|
for (; s !== void 0;) {
|
|
96
96
|
if (a === s.index) {
|
|
97
97
|
let t;
|
|
98
|
-
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
|
|
98
|
+
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 ne(i, this, e)), this._$AV.push(t), s = n[++o];
|
|
99
99
|
}
|
|
100
100
|
a !== s?.index && (i = T.nextNode(), a++);
|
|
101
101
|
}
|
|
@@ -190,14 +190,14 @@ var A = class {
|
|
|
190
190
|
j(e) {
|
|
191
191
|
this.element[this.name] = e === C ? void 0 : e;
|
|
192
192
|
}
|
|
193
|
-
},
|
|
193
|
+
}, ee = class extends M {
|
|
194
194
|
constructor() {
|
|
195
195
|
super(...arguments), this.type = 4;
|
|
196
196
|
}
|
|
197
197
|
j(e) {
|
|
198
198
|
this.element.toggleAttribute(this.name, !!e && e !== C);
|
|
199
199
|
}
|
|
200
|
-
},
|
|
200
|
+
}, te = class extends M {
|
|
201
201
|
constructor(e, t, n, r, i) {
|
|
202
202
|
super(e, t, n, r, i), this.type = 5;
|
|
203
203
|
}
|
|
@@ -209,7 +209,7 @@ var A = class {
|
|
|
209
209
|
handleEvent(e) {
|
|
210
210
|
typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e) : this._$AH.handleEvent(e);
|
|
211
211
|
}
|
|
212
|
-
},
|
|
212
|
+
}, ne = class {
|
|
213
213
|
constructor(e, t, n) {
|
|
214
214
|
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = n;
|
|
215
215
|
}
|
|
@@ -219,7 +219,7 @@ var A = class {
|
|
|
219
219
|
_$AI(e) {
|
|
220
220
|
k(this, e);
|
|
221
221
|
}
|
|
222
|
-
},
|
|
222
|
+
}, re = {
|
|
223
223
|
M: i,
|
|
224
224
|
P: a,
|
|
225
225
|
A: o,
|
|
@@ -230,30 +230,30 @@ var A = class {
|
|
|
230
230
|
V: k,
|
|
231
231
|
I: j,
|
|
232
232
|
H: M,
|
|
233
|
-
N:
|
|
234
|
-
U:
|
|
233
|
+
N: ee,
|
|
234
|
+
U: te,
|
|
235
235
|
B: N,
|
|
236
|
-
F:
|
|
237
|
-
},
|
|
238
|
-
|
|
239
|
-
var
|
|
236
|
+
F: ne
|
|
237
|
+
}, ie = e.litHtmlPolyfillSupport;
|
|
238
|
+
ie?.(O, j), (e.litHtmlVersions ??= []).push("3.3.3");
|
|
239
|
+
var ae = (e, t, n) => {
|
|
240
240
|
let r = n?.renderBefore ?? t, i = r._$litPart$;
|
|
241
241
|
if (i === void 0) {
|
|
242
242
|
let e = n?.renderBefore ?? null;
|
|
243
243
|
r._$litPart$ = i = new j(t.insertBefore(l(), e), e, void 0, n ?? {});
|
|
244
244
|
}
|
|
245
245
|
return i._$AI(e), i;
|
|
246
|
-
},
|
|
246
|
+
}, oe = {
|
|
247
247
|
ATTRIBUTE: 1,
|
|
248
248
|
CHILD: 2,
|
|
249
249
|
PROPERTY: 3,
|
|
250
250
|
BOOLEAN_ATTRIBUTE: 4,
|
|
251
251
|
EVENT: 5,
|
|
252
252
|
ELEMENT: 6
|
|
253
|
-
},
|
|
253
|
+
}, se = (e) => (...t) => ({
|
|
254
254
|
_$litDirective$: e,
|
|
255
255
|
values: t
|
|
256
|
-
}),
|
|
256
|
+
}), ce = class {
|
|
257
257
|
constructor(e) {}
|
|
258
258
|
get _$AU() {
|
|
259
259
|
return this._$AM._$AU;
|
|
@@ -267,41 +267,41 @@ var ne = (e, t, n) => {
|
|
|
267
267
|
update(e, t) {
|
|
268
268
|
return this.render(...t);
|
|
269
269
|
}
|
|
270
|
-
},
|
|
270
|
+
}, le = (e) => (t, n) => {
|
|
271
271
|
n === void 0 ? customElements.define(e, t) : n.addInitializer(() => {
|
|
272
272
|
customElements.define(e, t);
|
|
273
273
|
});
|
|
274
|
-
},
|
|
274
|
+
}, P = globalThis, F = P.ShadowRoot && (P.ShadyCSS === void 0 || P.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, I = Symbol(), L = /* @__PURE__ */ new WeakMap(), ue = class {
|
|
275
275
|
constructor(e, t, n) {
|
|
276
|
-
if (this._$cssResult$ = !0, n !==
|
|
276
|
+
if (this._$cssResult$ = !0, n !== I) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
277
277
|
this.cssText = e, this.t = t;
|
|
278
278
|
}
|
|
279
279
|
get styleSheet() {
|
|
280
280
|
let e = this.o, t = this.t;
|
|
281
|
-
if (
|
|
281
|
+
if (F && e === void 0) {
|
|
282
282
|
let n = t !== void 0 && t.length === 1;
|
|
283
|
-
n && (e =
|
|
283
|
+
n && (e = L.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), n && L.set(t, e));
|
|
284
284
|
}
|
|
285
285
|
return e;
|
|
286
286
|
}
|
|
287
287
|
toString() {
|
|
288
288
|
return this.cssText;
|
|
289
289
|
}
|
|
290
|
-
},
|
|
291
|
-
if (
|
|
290
|
+
}, de = (e) => new ue(typeof e == "string" ? e : e + "", void 0, I), fe = (e, t) => {
|
|
291
|
+
if (F) e.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
292
292
|
else for (let n of t) {
|
|
293
|
-
let t = document.createElement("style"), r =
|
|
293
|
+
let t = document.createElement("style"), r = P.litNonce;
|
|
294
294
|
r !== void 0 && t.setAttribute("nonce", r), t.textContent = n.cssText, e.appendChild(t);
|
|
295
295
|
}
|
|
296
|
-
},
|
|
296
|
+
}, R = F ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((e) => {
|
|
297
297
|
let t = "";
|
|
298
298
|
for (let n of e.cssRules) t += n.cssText;
|
|
299
|
-
return
|
|
300
|
-
})(e) : e, { is:
|
|
299
|
+
return de(t);
|
|
300
|
+
})(e) : e, { is: pe, defineProperty: me, getOwnPropertyDescriptor: he, getOwnPropertyNames: ge, getOwnPropertySymbols: _e, getPrototypeOf: ve } = Object, z = globalThis, B = z.trustedTypes, ye = B ? B.emptyScript : "", be = z.reactiveElementPolyfillSupport, V = (e, t) => e, H = {
|
|
301
301
|
toAttribute(e, t) {
|
|
302
302
|
switch (t) {
|
|
303
303
|
case Boolean:
|
|
304
|
-
e = e ?
|
|
304
|
+
e = e ? ye : null;
|
|
305
305
|
break;
|
|
306
306
|
case Object:
|
|
307
307
|
case Array: e = e == null ? e : JSON.stringify(e);
|
|
@@ -326,30 +326,30 @@ var ne = (e, t, n) => {
|
|
|
326
326
|
}
|
|
327
327
|
return n;
|
|
328
328
|
}
|
|
329
|
-
},
|
|
329
|
+
}, U = (e, t) => !pe(e, t), xe = {
|
|
330
330
|
attribute: !0,
|
|
331
331
|
type: String,
|
|
332
|
-
converter:
|
|
332
|
+
converter: H,
|
|
333
333
|
reflect: !1,
|
|
334
334
|
useDefault: !1,
|
|
335
|
-
hasChanged:
|
|
335
|
+
hasChanged: U
|
|
336
336
|
};
|
|
337
|
-
Symbol.metadata ??= Symbol("metadata"),
|
|
338
|
-
var
|
|
337
|
+
Symbol.metadata ??= Symbol("metadata"), z.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
338
|
+
var W = class extends HTMLElement {
|
|
339
339
|
static addInitializer(e) {
|
|
340
340
|
this._$Ei(), (this.l ??= []).push(e);
|
|
341
341
|
}
|
|
342
342
|
static get observedAttributes() {
|
|
343
343
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
344
344
|
}
|
|
345
|
-
static createProperty(e, t =
|
|
345
|
+
static createProperty(e, t = xe) {
|
|
346
346
|
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) {
|
|
347
347
|
let n = Symbol(), r = this.getPropertyDescriptor(e, n, t);
|
|
348
|
-
r !== void 0 &&
|
|
348
|
+
r !== void 0 && me(this.prototype, e, r);
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
351
|
static getPropertyDescriptor(e, t, n) {
|
|
352
|
-
let { get: r, set: i } =
|
|
352
|
+
let { get: r, set: i } = he(this.prototype, e) ?? {
|
|
353
353
|
get() {
|
|
354
354
|
return this[t];
|
|
355
355
|
},
|
|
@@ -368,17 +368,17 @@ var J = class extends HTMLElement {
|
|
|
368
368
|
};
|
|
369
369
|
}
|
|
370
370
|
static getPropertyOptions(e) {
|
|
371
|
-
return this.elementProperties.get(e) ??
|
|
371
|
+
return this.elementProperties.get(e) ?? xe;
|
|
372
372
|
}
|
|
373
373
|
static _$Ei() {
|
|
374
|
-
if (this.hasOwnProperty(
|
|
375
|
-
let e =
|
|
374
|
+
if (this.hasOwnProperty(V("elementProperties"))) return;
|
|
375
|
+
let e = ve(this);
|
|
376
376
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
|
377
377
|
}
|
|
378
378
|
static finalize() {
|
|
379
|
-
if (this.hasOwnProperty(
|
|
380
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
381
|
-
let e = this.properties, t = [...
|
|
379
|
+
if (this.hasOwnProperty(V("finalized"))) return;
|
|
380
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(V("properties"))) {
|
|
381
|
+
let e = this.properties, t = [...ge(e), ..._e(e)];
|
|
382
382
|
for (let n of t) this.createProperty(n, e[n]);
|
|
383
383
|
}
|
|
384
384
|
let e = this[Symbol.metadata];
|
|
@@ -397,8 +397,8 @@ var J = class extends HTMLElement {
|
|
|
397
397
|
let t = [];
|
|
398
398
|
if (Array.isArray(e)) {
|
|
399
399
|
let n = new Set(e.flat(1 / 0).reverse());
|
|
400
|
-
for (let e of n) t.unshift(
|
|
401
|
-
} else e !== void 0 && t.push(
|
|
400
|
+
for (let e of n) t.unshift(R(e));
|
|
401
|
+
} else e !== void 0 && t.push(R(e));
|
|
402
402
|
return t;
|
|
403
403
|
}
|
|
404
404
|
static _$Eu(e, t) {
|
|
@@ -424,7 +424,7 @@ var J = class extends HTMLElement {
|
|
|
424
424
|
}
|
|
425
425
|
createRenderRoot() {
|
|
426
426
|
let e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
427
|
-
return
|
|
427
|
+
return fe(e, this.constructor.elementStyles), e;
|
|
428
428
|
}
|
|
429
429
|
connectedCallback() {
|
|
430
430
|
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach((e) => e.hostConnected?.());
|
|
@@ -439,14 +439,14 @@ var J = class extends HTMLElement {
|
|
|
439
439
|
_$ET(e, t) {
|
|
440
440
|
let n = this.constructor.elementProperties.get(e), r = this.constructor._$Eu(e, n);
|
|
441
441
|
if (r !== void 0 && !0 === n.reflect) {
|
|
442
|
-
let i = (n.converter?.toAttribute === void 0 ?
|
|
442
|
+
let i = (n.converter?.toAttribute === void 0 ? H : n.converter).toAttribute(t, n.type);
|
|
443
443
|
this._$Em = e, i == null ? this.removeAttribute(r) : this.setAttribute(r, i), this._$Em = null;
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
446
|
_$AK(e, t) {
|
|
447
447
|
let n = this.constructor, r = n._$Eh.get(e);
|
|
448
448
|
if (r !== void 0 && this._$Em !== r) {
|
|
449
|
-
let e = n.getPropertyOptions(r), i = typeof e.converter == "function" ? { fromAttribute: e.converter } : e.converter?.fromAttribute === void 0 ?
|
|
449
|
+
let e = n.getPropertyOptions(r), i = typeof e.converter == "function" ? { fromAttribute: e.converter } : e.converter?.fromAttribute === void 0 ? H : e.converter;
|
|
450
450
|
this._$Em = r;
|
|
451
451
|
let a = i.fromAttribute(t, e.type);
|
|
452
452
|
this[r] = a ?? this._$Ej?.get(r) ?? a, this._$Em = null;
|
|
@@ -455,7 +455,7 @@ var J = class extends HTMLElement {
|
|
|
455
455
|
requestUpdate(e, t, n, r = !1, i) {
|
|
456
456
|
if (e !== void 0) {
|
|
457
457
|
let a = this.constructor;
|
|
458
|
-
if (!1 === r && (i = this[e]), n ??= a.getPropertyOptions(e), !((n.hasChanged ??
|
|
458
|
+
if (!1 === r && (i = this[e]), n ??= a.getPropertyOptions(e), !((n.hasChanged ?? U)(i, t) || n.useDefault && n.reflect && i === this._$Ej?.get(e) && !this.hasAttribute(a._$Eu(e, n)))) return;
|
|
459
459
|
this.C(e, t, n);
|
|
460
460
|
}
|
|
461
461
|
!1 === this.isUpdatePending && (this._$ES = this._$EP());
|
|
@@ -519,16 +519,16 @@ var J = class extends HTMLElement {
|
|
|
519
519
|
updated(e) {}
|
|
520
520
|
firstUpdated(e) {}
|
|
521
521
|
};
|
|
522
|
-
|
|
522
|
+
W.elementStyles = [], W.shadowRootOptions = { mode: "open" }, W[V("elementProperties")] = /* @__PURE__ */ new Map(), W[V("finalized")] = /* @__PURE__ */ new Map(), be?.({ ReactiveElement: W }), (z.reactiveElementVersions ??= []).push("2.1.2");
|
|
523
523
|
//#endregion
|
|
524
524
|
//#region ../../node_modules/@lit/reactive-element/decorators/property.js
|
|
525
|
-
var
|
|
525
|
+
var Se = {
|
|
526
526
|
attribute: !0,
|
|
527
527
|
type: String,
|
|
528
|
-
converter:
|
|
528
|
+
converter: H,
|
|
529
529
|
reflect: !1,
|
|
530
|
-
hasChanged:
|
|
531
|
-
},
|
|
530
|
+
hasChanged: U
|
|
531
|
+
}, Ce = (e = Se, t, n) => {
|
|
532
532
|
let { kind: r, metadata: i } = n, a = globalThis.litPropertyMetadata.get(i);
|
|
533
533
|
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") {
|
|
534
534
|
let { name: r } = n;
|
|
@@ -551,16 +551,16 @@ var ve = {
|
|
|
551
551
|
}
|
|
552
552
|
throw Error("Unsupported decorator location: " + r);
|
|
553
553
|
};
|
|
554
|
-
function
|
|
555
|
-
return (t, n) => typeof n == "object" ?
|
|
554
|
+
function G(e) {
|
|
555
|
+
return (t, n) => typeof n == "object" ? Ce(e, t, n) : ((e, t, n) => {
|
|
556
556
|
let r = t.hasOwnProperty(n);
|
|
557
557
|
return t.constructor.createProperty(n, e), r ? Object.getOwnPropertyDescriptor(t, n) : void 0;
|
|
558
558
|
})(e, t, n);
|
|
559
559
|
}
|
|
560
560
|
//#endregion
|
|
561
561
|
//#region ../../node_modules/@lit/reactive-element/decorators/state.js
|
|
562
|
-
function
|
|
563
|
-
return
|
|
562
|
+
function we(e) {
|
|
563
|
+
return G({
|
|
564
564
|
...e,
|
|
565
565
|
state: !0,
|
|
566
566
|
attribute: !1
|
|
@@ -568,7 +568,7 @@ function be(e) {
|
|
|
568
568
|
}
|
|
569
569
|
//#endregion
|
|
570
570
|
//#region ../../node_modules/lit-element/lit-element.js
|
|
571
|
-
var
|
|
571
|
+
var K = globalThis, q = class extends W {
|
|
572
572
|
constructor() {
|
|
573
573
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
574
574
|
}
|
|
@@ -578,7 +578,7 @@ var X = globalThis, Z = class extends J {
|
|
|
578
578
|
}
|
|
579
579
|
update(e) {
|
|
580
580
|
let t = this.render();
|
|
581
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do =
|
|
581
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = ae(t, this.renderRoot, this.renderOptions);
|
|
582
582
|
}
|
|
583
583
|
connectedCallback() {
|
|
584
584
|
super.connectedCallback(), this._$Do?.setConnected(!0);
|
|
@@ -590,22 +590,44 @@ var X = globalThis, Z = class extends J {
|
|
|
590
590
|
return S;
|
|
591
591
|
}
|
|
592
592
|
};
|
|
593
|
-
|
|
594
|
-
var
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
593
|
+
q._$litElement$ = !0, q.finalized = !0, K.litElementHydrateSupport?.({ LitElement: q });
|
|
594
|
+
var Te = K.litElementPolyfillSupport;
|
|
595
|
+
Te?.({ LitElement: q }), (K.litElementVersions ??= []).push("4.2.2");
|
|
596
|
+
//#endregion
|
|
597
|
+
//#region ../../shared-strings/nb.ts
|
|
598
|
+
var J = {
|
|
598
599
|
generic: {
|
|
599
600
|
from: "Fra",
|
|
600
|
-
to: "Til"
|
|
601
|
+
to: "Til",
|
|
602
|
+
close: "Lukk"
|
|
601
603
|
},
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
604
|
+
forms: {
|
|
605
|
+
optional: "Valgfritt",
|
|
606
|
+
required: "Må fylles ut",
|
|
607
|
+
readMore: "Les mer <span class='pkt-sr-only'>om feltet</span>"
|
|
608
|
+
},
|
|
609
|
+
validation: {
|
|
610
|
+
valueMissing: "Dette feltet er påkrevd",
|
|
611
|
+
typeMismatch: "Ugyldig verdi",
|
|
612
|
+
patternMismatch: "Ugyldig format",
|
|
613
|
+
tooShort: "For kort",
|
|
614
|
+
tooLong: "For lang",
|
|
615
|
+
rangeUnderflow: "For lav verdi",
|
|
616
|
+
rangeOverflow: "For høy verdi",
|
|
617
|
+
rangeUnderflowMin: "Verdien må være større enn eller lik {min}.",
|
|
618
|
+
rangeOverflowMax: "Verdien må være mindre enn eller lik {max}.",
|
|
619
|
+
stepMismatch: "Må treffe på steget som er definert i elementet",
|
|
620
|
+
timeStepMismatch: "Må treffe på et steg, for eksempel 0, {step} minutter",
|
|
621
|
+
timeStepMismatchHour: "Må treffe på hver hele time",
|
|
622
|
+
timeStepMismatchHalfHour: "Må treffe på hver hele eller halve time",
|
|
623
|
+
dateUnderflow: "For tidlig dato",
|
|
624
|
+
dateOverflow: "For sen dato",
|
|
625
|
+
counterExceeded: "Du har brukt {current} av {max}"
|
|
605
626
|
},
|
|
606
627
|
dates: {
|
|
607
628
|
month: "Måned",
|
|
608
629
|
year: "År",
|
|
630
|
+
week: "Uke",
|
|
609
631
|
days: [
|
|
610
632
|
"Mandag",
|
|
611
633
|
"Tirsdag",
|
|
@@ -651,11 +673,16 @@ var Se = {
|
|
|
651
673
|
"Okt",
|
|
652
674
|
"Nov",
|
|
653
675
|
"Des"
|
|
654
|
-
]
|
|
655
|
-
|
|
676
|
+
]
|
|
677
|
+
},
|
|
678
|
+
calendar: {
|
|
656
679
|
prevMonth: "Forrige måned",
|
|
657
680
|
nextMonth: "Neste måned"
|
|
658
681
|
},
|
|
682
|
+
datepicker: {
|
|
683
|
+
openPicker: "Åpne kalender",
|
|
684
|
+
deleteDate: "Fjern dato"
|
|
685
|
+
},
|
|
659
686
|
timepicker: {
|
|
660
687
|
hours: "Timer",
|
|
661
688
|
minutes: "Minutter",
|
|
@@ -664,32 +691,145 @@ var Se = {
|
|
|
664
691
|
nextTime: "Neste tidspunkt",
|
|
665
692
|
selectTime: "Velg tidspunkt"
|
|
666
693
|
},
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
694
|
+
searchinput: {
|
|
695
|
+
placeholder: "Søk…",
|
|
696
|
+
submit: "Søk"
|
|
697
|
+
},
|
|
698
|
+
backlink: { label: "Gå tilbake til forrige side" },
|
|
699
|
+
breadcrumbs: { ariaLabel: "brødsmulemeny" },
|
|
700
|
+
tag: { remove: "Klikk for å fjerne {label}" },
|
|
701
|
+
header: {
|
|
702
|
+
search: "Søk",
|
|
703
|
+
menu: "Meny",
|
|
704
|
+
openMenu: "Åpne meny",
|
|
705
|
+
openSearch: "Åpne søkefelt"
|
|
706
|
+
},
|
|
707
|
+
listbox: {
|
|
708
|
+
searchLabel: "Søk i listen",
|
|
709
|
+
searchPlaceholder: "Søk…"
|
|
710
|
+
},
|
|
711
|
+
combobox: {
|
|
712
|
+
noResults: "Ingen treff i søket",
|
|
713
|
+
maxSelected: "Maks antall valg nådd",
|
|
714
|
+
tooManySelected: "For mange valgt",
|
|
715
|
+
alreadySelected: "Verdien er allerede valgt",
|
|
716
|
+
valueAdded: "Ny verdi lagt til",
|
|
717
|
+
noValidValue: "Ingen gyldig verdi valgt"
|
|
718
|
+
},
|
|
719
|
+
fileupload: {
|
|
720
|
+
dropZoneDragMultiple: "Dra filer hit for å laste dem opp eller",
|
|
721
|
+
dropZoneDragSingle: "Dra en fil hit for å laste den opp eller",
|
|
722
|
+
dropZoneDragMultipleThumbnail: "Dra bilder hit for å laste dem opp eller",
|
|
723
|
+
dropZoneDragSingleThumbnail: "Dra et bilde hit for å laste det opp eller",
|
|
724
|
+
dropZoneDragActiveMultiple: "Slipp filene her",
|
|
725
|
+
dropZoneDragActiveSingle: "Slipp filen her",
|
|
726
|
+
dropZoneDragActiveMultipleThumbnail: "Slipp bildene her",
|
|
727
|
+
dropZoneDragActiveSingleThumbnail: "Slipp bildet her",
|
|
728
|
+
dropZoneOpenFileDialogMultiple: "velg filer",
|
|
729
|
+
dropZoneOpenFileDialogSingle: "velg en fil",
|
|
730
|
+
dropZoneOpenFileDialogMultipleThumbnail: "velg fra kamerarull",
|
|
731
|
+
dropZoneOpenFileDialogSingleThumbnail: "velg fra kamerarull",
|
|
732
|
+
supportedFormatsPrefix: "Format:",
|
|
733
|
+
invalidFormat: "Ugyldig filtype. Tillatte formater: {formats}",
|
|
734
|
+
sizeTooLarge: "Filen er for stor. Maks størrelse er {maxSize}.",
|
|
735
|
+
requiredMissing: "Du må laste opp minst én fil.",
|
|
736
|
+
genericValidationRejection: "Filen ble avvist av validering.",
|
|
737
|
+
unknownFilename: "Ukjent fil",
|
|
738
|
+
previewFallbackName: "Forhåndsvisning",
|
|
739
|
+
previewImage: "Forhåndsvis bilde {filename}",
|
|
740
|
+
fileLabelOne: "fil",
|
|
741
|
+
fileLabelOther: "filer",
|
|
742
|
+
srFileAdded: "Filen «{filename}» er lagt til",
|
|
743
|
+
srFilesAdded: "{count} filer er lagt til",
|
|
744
|
+
srFilesUploadedOfTotal: "{uploaded} av {total} {label} lastet opp",
|
|
745
|
+
srFilesFailedOfTotal: "Feil ved opplasting: {failed} av {total} {label} feilet"
|
|
746
|
+
}
|
|
747
|
+
}, Y = Symbol.for("@oslokommune/punkt-strings");
|
|
748
|
+
function X() {
|
|
749
|
+
let e = globalThis;
|
|
750
|
+
return e[Y] || (e[Y] = {
|
|
751
|
+
overrides: {},
|
|
752
|
+
listeners: /* @__PURE__ */ new Set()
|
|
753
|
+
}), e[Y];
|
|
754
|
+
}
|
|
755
|
+
function Ee(e) {
|
|
756
|
+
let t = X(), n = { ...t.overrides };
|
|
757
|
+
for (let t of Object.keys(e)) {
|
|
758
|
+
let r = e[t];
|
|
759
|
+
r && (n[t] = {
|
|
760
|
+
...n[t],
|
|
761
|
+
...r
|
|
762
|
+
});
|
|
763
|
+
}
|
|
764
|
+
t.overrides = n, t.listeners.forEach((e) => e());
|
|
765
|
+
}
|
|
766
|
+
function De() {
|
|
767
|
+
return X().overrides;
|
|
768
|
+
}
|
|
769
|
+
function Oe() {
|
|
770
|
+
let e = X();
|
|
771
|
+
e.overrides = {}, e.listeners.forEach((e) => e());
|
|
772
|
+
}
|
|
773
|
+
function ke(e) {
|
|
774
|
+
let t = X();
|
|
775
|
+
return t.listeners.add(e), () => {
|
|
776
|
+
t.listeners.delete(e);
|
|
777
|
+
};
|
|
778
|
+
}
|
|
779
|
+
//#endregion
|
|
780
|
+
//#region ../../shared-strings/resolve.ts
|
|
781
|
+
var Ae = /* @__PURE__ */ new Map();
|
|
782
|
+
function je(e, t) {
|
|
783
|
+
if (t) for (let n of Object.keys(t)) {
|
|
784
|
+
let r = t[n];
|
|
785
|
+
r !== void 0 && (e[n] = r);
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
function Me(e) {
|
|
789
|
+
return !!e && Object.keys(e).length > 0;
|
|
790
|
+
}
|
|
791
|
+
function Ne(e) {
|
|
792
|
+
let t = De(), n = Ae.get(e);
|
|
793
|
+
if (n && n.overrides === t) return n.value;
|
|
794
|
+
let r = t[e], i;
|
|
795
|
+
if (Me(r)) {
|
|
796
|
+
let t = { ...J[e] };
|
|
797
|
+
je(t, r), i = t;
|
|
798
|
+
} else i = J[e];
|
|
799
|
+
return Ae.set(e, {
|
|
800
|
+
overrides: t,
|
|
801
|
+
value: i
|
|
802
|
+
}), i;
|
|
803
|
+
}
|
|
804
|
+
function Z(e, ...t) {
|
|
805
|
+
let n = t.filter((t) => Me(t?.[e])), r = Ne(e);
|
|
806
|
+
if (n.length === 0) return r;
|
|
807
|
+
let i = { ...r };
|
|
808
|
+
for (let t of n) je(i, t?.[e]);
|
|
809
|
+
return i;
|
|
810
|
+
}
|
|
811
|
+
function Pe(e, ...t) {
|
|
812
|
+
let n = {};
|
|
813
|
+
for (let r of e) n[r] = Z(r, ...t);
|
|
814
|
+
return n;
|
|
815
|
+
}
|
|
816
|
+
//#endregion
|
|
817
|
+
//#region src/controllers/strings-controller.ts
|
|
818
|
+
var Fe = class {
|
|
819
|
+
constructor(e) {
|
|
820
|
+
this.host = e, e.addController(this);
|
|
821
|
+
}
|
|
822
|
+
hostConnected() {
|
|
823
|
+
this.unsubscribe = ke(() => this.host.requestUpdate());
|
|
824
|
+
}
|
|
825
|
+
hostDisconnected() {
|
|
826
|
+
this.unsubscribe?.(), this.unsubscribe = void 0;
|
|
827
|
+
}
|
|
828
|
+
get(e) {
|
|
829
|
+
return Z(e, this.host.strings);
|
|
830
|
+
}
|
|
831
|
+
getAll(e) {
|
|
832
|
+
return Pe(e, this.host.strings);
|
|
693
833
|
}
|
|
694
834
|
};
|
|
695
835
|
//#endregion
|
|
@@ -702,19 +842,19 @@ function Q(e, t, n, r) {
|
|
|
702
842
|
}
|
|
703
843
|
//#endregion
|
|
704
844
|
//#region src/base-elements/element.ts
|
|
705
|
-
var $ = class extends
|
|
845
|
+
var $ = class extends q {
|
|
706
846
|
constructor(...e) {
|
|
707
|
-
super(...e), this.
|
|
847
|
+
super(...e), this.pktStrings = new Fe(this), this.role = null;
|
|
708
848
|
}
|
|
709
849
|
hotReplacedCallback() {
|
|
710
850
|
this.requestUpdate();
|
|
711
851
|
}
|
|
712
852
|
};
|
|
713
|
-
Q([
|
|
714
|
-
var
|
|
853
|
+
Q([G({ type: Object })], $.prototype, "strings", void 0), Q([G({ type: String })], $.prototype, "role", void 0);
|
|
854
|
+
var Ie = class extends $ {
|
|
715
855
|
createRenderRoot() {
|
|
716
856
|
return this;
|
|
717
857
|
}
|
|
718
858
|
};
|
|
719
859
|
//#endregion
|
|
720
|
-
export {
|
|
860
|
+
export { x as _, Ee as a, q as c, le as d, se as f, S as g, C as h, Oe as i, we as l, oe as m, Q as n, ke as o, ce as p, De as r, J as s, Ie as t, G as u, re as v };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./element-
|
|
1
|
+
const e=require("./element-B8OGznK0.cjs"),t=require("./async-directive-B5pcIMfO.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.m.CHILD)throw Error(`slotContent() can only be used in child expressions`)}render(t,n){return e.g}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.g&&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.g;let t=this.manager.generation;return t===this.lastGeneration?e.g:(this.lastGeneration=t,this.manager.getNodes(this.slotName))}},p=e.f(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}});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as i } from "./async-directive-
|
|
1
|
+
import { f as e, g as t, m as n, t as r } from "./element-BKSPVgs2.js";
|
|
2
|
+
import { t as i } from "./async-directive-D2Sht790.js";
|
|
3
3
|
//#region src/controllers/pkt-slot-utils.ts
|
|
4
4
|
function a(e) {
|
|
5
5
|
return e.classList && (e.classList.contains("_dialog_overlay") || e.classList.contains("backdrop")) ? !0 : typeof e.hasAttribute == "function" && e.hasAttribute("data-skip");
|
|
@@ -125,7 +125,7 @@ var m = class e {
|
|
|
125
125
|
}
|
|
126
126
|
}, h = e(class extends i {
|
|
127
127
|
constructor(e) {
|
|
128
|
-
if (super(e), this.manager = null, this.lastGeneration = -1, e.type !==
|
|
128
|
+
if (super(e), this.manager = null, this.lastGeneration = -1, e.type !== n.CHILD) throw Error("slotContent() can only be used in child expressions");
|
|
129
129
|
}
|
|
130
130
|
render(e, n) {
|
|
131
131
|
return t;
|
|
@@ -153,7 +153,7 @@ var m = class e {
|
|
|
153
153
|
let e = this.manager.generation;
|
|
154
154
|
return e === this.lastGeneration ? t : (this.lastGeneration = e, this.manager.getNodes(this.slotName));
|
|
155
155
|
}
|
|
156
|
-
}), g = class extends
|
|
156
|
+
}), g = class extends r {
|
|
157
157
|
connectedCallback() {
|
|
158
158
|
l(this).collectNodes(), super.connectedCallback();
|
|
159
159
|
}
|