@oslokommune/punkt-elements 19.8.0 → 19.9.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 +27 -0
- package/dist/accordion-CMCCpxtz.cjs +47 -0
- package/dist/{accordion-BJh6X1Ek.js → accordion-Cp2o6wTY.js} +10 -9
- package/dist/{alert-WME3geaX.js → alert-CAPiwi4F.js} +5 -5
- package/dist/{alert-CKqtC9AM.cjs → alert-QfloIr-o.cjs} +1 -1
- package/dist/{async-directive-BGoo_npW.cjs → async-directive-DpyKp6qv.cjs} +1 -1
- package/dist/{async-directive-DsdqP_X7.js → async-directive-yh8hG41Q.js} +2 -2
- package/dist/{backlink-BRqhwUr2.cjs → backlink-CsFeerTH.cjs} +1 -1
- package/dist/{backlink-BslFewn-.js → backlink-ogvv493Y.js} +3 -3
- package/dist/base-elements/input-element.d.ts +17 -0
- package/dist/base-elements/option-group-element.d.ts +61 -0
- package/dist/base-elements/polyfill-form-value.test.d.ts +0 -0
- package/dist/{breadcrumbs-Cr3GugPv.js → breadcrumbs-53QVnTFP.js} +2 -2
- package/dist/{breadcrumbs-DG4i5UCh.cjs → breadcrumbs-D03id_ha.cjs} +1 -1
- package/dist/{button-B78im4wB.js → button-CeRr7oIn.js} +5 -5
- package/dist/{button-BNVTj7nB.cjs → button-Dh97H-58.cjs} +1 -1
- package/dist/{calendar-TcxvS-1_.cjs → calendar-C5QwPrbk.cjs} +1 -1
- package/dist/{calendar-BLaRXUBl.js → calendar-D9w8M99G.js} +3 -3
- package/dist/{card-CaLEuumN.cjs → card--NuWdTbG.cjs} +1 -1
- package/dist/{card-CYKhPUNI.js → card-_PlgXmgZ.js} +6 -6
- package/dist/{checkbox-Tq8ESzwH.js → checkbox-G8k3vg85.js} +39 -35
- package/dist/checkbox-QIcdn09A.cjs +40 -0
- package/dist/checkbox-group-DoueGGi5.js +50 -0
- package/dist/checkbox-group-nLazAkcg.cjs +1 -0
- package/dist/checkbox-group.d.ts +1 -0
- package/dist/{class-map-C4hdfSfY.js → class-map-Bf-QzUpN.js} +1 -1
- package/dist/{class-map-Drv0_anQ.cjs → class-map-Bh6toDeV.cjs} +1 -1
- package/dist/{combobox-89Ohd1Oe.cjs → combobox-ClXhKwR9.cjs} +1 -1
- package/dist/{combobox-Cpb67TV0.js → combobox-Cz_rq7Mm.js} +13 -13
- package/dist/components/checkbox/checkbox.d.ts +1 -0
- package/dist/components/checkbox-group/checkbox-group-context.d.ts +5 -0
- package/dist/components/checkbox-group/checkbox-group.d.ts +15 -0
- package/dist/components/checkbox-group/checkbox-group.test.d.ts +0 -0
- package/dist/components/checkbox-group/index.d.ts +3 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/radio-group/index.d.ts +3 -0
- package/dist/components/radio-group/radio-group-context.d.ts +7 -0
- package/dist/components/radio-group/radio-group.d.ts +14 -0
- package/dist/components/radio-group/radio-group.test.d.ts +0 -0
- package/dist/components/radiobutton/radiobutton.d.ts +1 -0
- package/dist/{consent-CleJMbVH.js → consent-CZMxUavj.js} +2 -2
- package/dist/{consent-Dl-R0iC3.cjs → consent-DimzcQxt.cjs} +1 -1
- package/dist/consume-Bp12si68.js +61 -0
- package/dist/consume-kEjgTrAp.cjs +1 -0
- package/dist/{datepicker-DBEKa1aJ.js → datepicker-C7ABsx7H.js} +12 -12
- package/dist/{datepicker-B9NCJX4o.cjs → datepicker-usIF9WY7.cjs} +2 -2
- package/dist/{directive-helpers-BRrz3Bcj.cjs → directive-helpers-Bv70GjQh.cjs} +1 -1
- package/dist/{directive-helpers-D96YEsht.js → directive-helpers-CwxFepWh.js} +1 -1
- package/dist/directives/slot-content.d.ts +4 -3
- package/dist/docs/components/checkbox-group.d.ts +13 -0
- package/dist/docs/components/radio-group.d.ts +13 -0
- package/dist/{element-BOmr9YLv.cjs → element-C6WTyJFE.cjs} +1 -1
- package/dist/{element-mwwC2Rra.js → element-DBugHPKM.js} +1 -0
- package/dist/{element-with-slot-DQv0cbbD.js → element-with-slot-DDLS-aLw.js} +6 -3
- package/dist/element-with-slot-DhiAuSjM.cjs +1 -0
- package/dist/{fileupload-2YAbjYuU.cjs → fileupload-2uTFjd81.cjs} +1 -1
- package/dist/{fileupload-DqWCXMPz.js → fileupload-BR9H6fET.js} +8 -8
- package/dist/{footer-DdLls3F-.js → footer-B3DMvo8-.js} +4 -4
- package/dist/{footer-vy9NqT65.cjs → footer-CyxRYvT-.cjs} +1 -1
- package/dist/{header-Dp0Lq7wS.js → header-BKeSkfB7.js} +11 -11
- package/dist/{header-9Y6Q6Cfq.cjs → header-Drj3lTrv.cjs} +1 -1
- package/dist/{header-menu-BfkCp8jw.cjs → header-menu-B_5hCNUl.cjs} +1 -1
- package/dist/{header-menu-ANj5nL2M.js → header-menu-buYE90FU.js} +4 -4
- package/dist/{heading-zoz-QZJ9.cjs → heading-DUYOvlxs.cjs} +1 -1
- package/dist/{heading-CUrZvkrM.js → heading-WBB5MO9i.js} +2 -2
- package/dist/{helptext-BCkwSz1m.cjs → helptext-C7cyihnu.cjs} +1 -1
- package/dist/{helptext-DCT_9dw1.js → helptext-DadLkcoO.js} +4 -4
- package/dist/{icon-JigbxxF7.js → icon-Bao96Zb8.js} +1 -1
- package/dist/{icon-Dnv6LtPC.cjs → icon-jPhyZD1z.cjs} +1 -1
- package/dist/if-defined-CiML3MTM.cjs +1 -0
- package/dist/{if-defined-Bebu3LXY.js → if-defined-O59_I-e-.js} +1 -1
- package/dist/{input-element-lLzfwdim.js → input-element-BBygBEei.js} +54 -17
- package/dist/input-element-C4SelHLD.cjs +1 -0
- package/dist/{input-wrapper-CTMf4kCK.cjs → input-wrapper-BT6B3Kco.cjs} +6 -2
- package/dist/{input-wrapper-C9K-_7g-.js → input-wrapper-DrSCuw6U.js} +12 -8
- package/dist/{link-LO_5_La8.cjs → link-CEP7w1et.cjs} +1 -1
- package/dist/{link-CmZwAw5u.js → link-CVnIn74-.js} +4 -4
- package/dist/{linkcard-UKsxADrP.cjs → linkcard-D8vitdrQ.cjs} +1 -1
- package/dist/{linkcard-CQluSyJJ.js → linkcard-IWiVvRKy.js} +4 -4
- package/dist/{listbox-Ct9jIV_5.js → listbox-BDesthOp.js} +4 -4
- package/dist/{listbox-g-vHHLkD.cjs → listbox-CvduK_YU.cjs} +1 -1
- package/dist/{loader-C_PH05aw.cjs → loader-B0hFoBtF.cjs} +1 -1
- package/dist/{loader-DzctJ9jW.js → loader-CAsUPHjl.js} +4 -4
- package/dist/{messagebox-D17GYxb9.js → messagebox-6_iNN5F3.js} +4 -4
- package/dist/{messagebox-X01V2l_N.cjs → messagebox-C19L2Duq.cjs} +1 -1
- package/dist/{modal-BymjMIJi.cjs → modal-CoEPzt4p.cjs} +1 -1
- package/dist/{modal-CELmA0-8.js → modal-D7MolBXb.js} +5 -5
- package/dist/option-group-element-BIuotbRu.js +135 -0
- package/dist/option-group-element-BYS7s-is.cjs +23 -0
- 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-group.cjs +1 -0
- package/dist/pkt-checkbox-group.js +2 -0
- 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 +37 -35
- 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-CpEZcomb.cjs → pkt-options-controller-B3vVKnAG.cjs} +1 -1
- package/dist/{pkt-options-controller-D7l18Iw0.js → pkt-options-controller-ClFrUWZK.js} +1 -1
- package/dist/pkt-progressbar.cjs +1 -1
- package/dist/pkt-progressbar.js +1 -1
- package/dist/pkt-radio-group.cjs +1 -0
- package/dist/pkt-radio-group.js +2 -0
- 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-CIXNSwTy.cjs → progressbar-CnX4fFfR.cjs} +1 -1
- package/dist/{progressbar-DH5lIBpx.js → progressbar-DZHiq7B0.js} +5 -5
- package/dist/provide-Cz18sYug.cjs +1 -0
- package/dist/provide-_MnlMGnw.js +111 -0
- package/dist/radio-group-kOzlGn8T.cjs +1 -0
- package/dist/radio-group-lhymYEZX.js +52 -0
- package/dist/radio-group.d.ts +1 -0
- package/dist/radiobutton-BgHCcDJv.cjs +38 -0
- package/dist/{radiobutton-l_3oGDbb.js → radiobutton-CFd8TgV9.js} +39 -35
- package/dist/{ref-Emu5PNxk.cjs → ref-CB7e9nMY.cjs} +1 -1
- package/dist/{ref-CCSGk4MP.js → ref-y_5qv9vU.js} +2 -2
- package/dist/{repeat-CdxGS-_3.js → repeat-CV9S4zya.js} +2 -2
- package/dist/{repeat-Dh9YKoeV.cjs → repeat-CnnigVcj.cjs} +1 -1
- package/dist/{searchinput-Co8tcq-l.js → searchinput-Bkcr3Fby.js} +4 -4
- package/dist/{searchinput-CbClDE-d.cjs → searchinput-Mdc9Ihld.cjs} +1 -1
- package/dist/{select-Cz80KV3g.js → select-B6CN2Ymq.js} +7 -7
- package/dist/{select-CZk57p1_.cjs → select-BowvpCNa.cjs} +1 -1
- package/dist/shared-strings/nb.d.ts +1 -0
- package/dist/shared-types/index.d.ts +4 -2
- package/dist/shared-types/option-group.d.ts +50 -0
- package/dist/{tabs-B8blHQrL.js → tabs-DZvtVA0y.js} +9 -8
- package/dist/tabs-Dm8xcPRs.cjs +40 -0
- package/dist/{tag-Bns7Xj1O.js → tag-C33BPIOm.js} +5 -5
- package/dist/{tag-B5dUg7AD.cjs → tag-DyVZrqOQ.cjs} +1 -1
- package/dist/tests/component-registry.d.ts +4 -0
- package/dist/tests/option-contexts.d.ts +7 -0
- package/dist/{textarea-Dwjx-Crl.cjs → textarea-DoH3Il8v.cjs} +1 -1
- package/dist/{textarea-Dfvx1I60.js → textarea-hW0kV5gj.js} +9 -9
- package/dist/{textinput-7zTPlXVj.js → textinput-B6G4dVuL.js} +8 -8
- package/dist/{textinput-BeraGRzb.cjs → textinput-CQknclmV.cjs} +1 -1
- package/dist/{timepicker-C0dSH4Ij.js → timepicker-Cd2QI6ua.js} +8 -8
- package/dist/{timepicker-DarB9eA6.cjs → timepicker-DB3gor6g.cjs} +1 -1
- package/package.json +2 -2
- package/src/components/checkbox/checkbox.test.ts +99 -0
- package/src/components/checkbox/checkbox.ts +14 -5
- package/src/components/checkbox-group/checkbox-group-context.ts +8 -0
- package/src/components/checkbox-group/checkbox-group.test.ts +406 -0
- package/src/components/checkbox-group/checkbox-group.ts +69 -0
- package/src/components/checkbox-group/index.ts +4 -0
- package/src/components/combobox/combobox.ts +1 -1
- package/src/components/datepicker/datepicker.ts +1 -1
- package/src/components/index.ts +2 -0
- package/src/components/input-wrapper/input-wrapper.ts +5 -1
- package/src/components/input-wrapper/wrapper-parity.test.ts +27 -2
- package/src/components/radio-group/index.ts +4 -0
- package/src/components/radio-group/radio-group-context.ts +8 -0
- package/src/components/radio-group/radio-group.test.ts +530 -0
- package/src/components/radio-group/radio-group.ts +65 -0
- package/src/components/radiobutton/radiobutton.test.ts +95 -0
- package/src/components/radiobutton/radiobutton.ts +11 -5
- package/dist/accordion-5lSFQToJ.cjs +0 -47
- package/dist/checkbox-D69leWDh.cjs +0 -40
- package/dist/consume-BDnMAp2g.js +0 -167
- package/dist/consume-Le4HztPo.cjs +0 -1
- package/dist/element-with-slot-D7sTqOr3.cjs +0 -1
- package/dist/if-defined-2mkIDgOm.cjs +0 -1
- package/dist/input-element-CSfDGslx.cjs +0 -1
- package/dist/radiobutton-BPr22VmL.cjs +0 -38
- package/dist/tabs-CjX-GWvM.cjs +0 -40
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { _ as e, n as t, u as n } from "./element-DBugHPKM.js";
|
|
2
|
+
import { n as r, t as i } from "./element-with-slot-DDLS-aLw.js";
|
|
3
|
+
import { t as a } from "./booleanish-OQJTYSrw.js";
|
|
4
|
+
import { n as o } from "./utils-BwF4QSrq.js";
|
|
5
|
+
import "./input-wrapper-DrSCuw6U.js";
|
|
6
|
+
//#region ../../shared-types/option-group.ts
|
|
7
|
+
var s = {
|
|
8
|
+
layout: "vertical",
|
|
9
|
+
inputSize: "medium",
|
|
10
|
+
hasTile: !1,
|
|
11
|
+
required: !1,
|
|
12
|
+
disabled: !1,
|
|
13
|
+
hasError: !1,
|
|
14
|
+
useWrapper: !0,
|
|
15
|
+
requiredTag: !1,
|
|
16
|
+
optionalTag: !1
|
|
17
|
+
}, c = [
|
|
18
|
+
"change",
|
|
19
|
+
"input",
|
|
20
|
+
"value-change",
|
|
21
|
+
"focus",
|
|
22
|
+
"blur"
|
|
23
|
+
];
|
|
24
|
+
function l(e) {
|
|
25
|
+
return e.checked === void 0 ? e.hasAttribute("checked") : e.checked === !0 || e.checked === "" || e.checked === "true";
|
|
26
|
+
}
|
|
27
|
+
function u(e) {
|
|
28
|
+
return (typeof e.value == "string" ? e.value : e.getAttribute("value")) || "on";
|
|
29
|
+
}
|
|
30
|
+
function d(e) {
|
|
31
|
+
return e.hasAttribute("disabled") || e.matches(":disabled");
|
|
32
|
+
}
|
|
33
|
+
var f = class extends i {
|
|
34
|
+
get groupName() {
|
|
35
|
+
return this.name || this.id || this.generatedId;
|
|
36
|
+
}
|
|
37
|
+
options() {
|
|
38
|
+
return Array.from(this.querySelectorAll(this.optionSelector));
|
|
39
|
+
}
|
|
40
|
+
createGroupContext() {
|
|
41
|
+
return {
|
|
42
|
+
name: this.groupName,
|
|
43
|
+
hasTile: this.hasTile,
|
|
44
|
+
hasError: this.hasError
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
syncValidity() {}
|
|
48
|
+
constructor() {
|
|
49
|
+
super(), this.name = "", this.label = "", this.helptext = "", this.helptextDropdown = "", this.helptextDropdownButton = null, this.hasError = s.hasError, this.errorMessage = "", this.disabled = s.disabled, this.required = s.required, this.hasTile = s.hasTile, this.layout = s.layout, this.inputSize = s.inputSize, this.useWrapper = s.useWrapper, this.optionalTag = s.optionalTag, this.requiredTag = s.requiredTag, this.tagText = null, this.generatedId = o(), this.knownOptions = /* @__PURE__ */ new Set(), this.resetForm = null, this.handleFormReset = () => {
|
|
50
|
+
setTimeout(() => {
|
|
51
|
+
this.hasStoredValue && this.storeCurrentValue(), this.syncValidity();
|
|
52
|
+
});
|
|
53
|
+
}, this.relayOptionEvent = (e) => {
|
|
54
|
+
let t = e.target;
|
|
55
|
+
if (!t || t === this || !t.matches(this.optionSelector)) return;
|
|
56
|
+
e.stopImmediatePropagation();
|
|
57
|
+
let n = {
|
|
58
|
+
bubbles: !0,
|
|
59
|
+
composed: !0
|
|
60
|
+
};
|
|
61
|
+
e.type === "change" ? (this.storeCurrentValue(), this.syncValidity(), this.dispatchEvent(new Event("change", n))) : e.type === "input" ? this.dispatchEvent(new InputEvent("input", n)) : e.type === "value-change" && this.dispatchEvent(new CustomEvent("value-change", {
|
|
62
|
+
...n,
|
|
63
|
+
detail: this.value
|
|
64
|
+
}));
|
|
65
|
+
}, this.handleFocusIn = (e) => {
|
|
66
|
+
this.contains(e.relatedTarget) || this.dispatchEvent(new FocusEvent("focus", {
|
|
67
|
+
bubbles: !0,
|
|
68
|
+
composed: !0,
|
|
69
|
+
relatedTarget: e.relatedTarget
|
|
70
|
+
}));
|
|
71
|
+
}, this.handleFocusOut = (e) => {
|
|
72
|
+
this.contains(e.relatedTarget) || this.dispatchEvent(new FocusEvent("blur", {
|
|
73
|
+
bubbles: !0,
|
|
74
|
+
composed: !0,
|
|
75
|
+
relatedTarget: e.relatedTarget
|
|
76
|
+
}));
|
|
77
|
+
};
|
|
78
|
+
for (let e of c) this.addEventListener(e, this.relayOptionEvent);
|
|
79
|
+
this.addEventListener("focusin", this.handleFocusIn), this.addEventListener("focusout", this.handleFocusOut);
|
|
80
|
+
}
|
|
81
|
+
disconnectedCallback() {
|
|
82
|
+
super.disconnectedCallback(), this.watchFormReset(null);
|
|
83
|
+
}
|
|
84
|
+
focus(e) {
|
|
85
|
+
let t = this.options();
|
|
86
|
+
(t.find((e) => l(e) && !d(e)) ?? t.find((e) => !d(e)))?.querySelector("input")?.focus(e);
|
|
87
|
+
}
|
|
88
|
+
willUpdate(e) {
|
|
89
|
+
super.willUpdate(e);
|
|
90
|
+
let t = this.createGroupContext(), n = this.groupContext;
|
|
91
|
+
(!n || Object.keys(t).some((e) => t[e] !== n[e])) && (this.groupContext = t);
|
|
92
|
+
}
|
|
93
|
+
updated(e) {
|
|
94
|
+
super.updated(e);
|
|
95
|
+
let t = this.options(), n = t.filter((e) => !this.knownOptions.has(e));
|
|
96
|
+
this.knownOptions = new Set(t), this.hasStoredValue && n.length && this.applyStoredValue(n), this.syncValidity(), this.watchFormReset(t[0]?.form ?? null);
|
|
97
|
+
}
|
|
98
|
+
watchFormReset(e) {
|
|
99
|
+
e !== this.resetForm && (this.resetForm?.removeEventListener("reset", this.handleFormReset), this.resetForm = e, this.resetForm?.addEventListener("reset", this.handleFormReset));
|
|
100
|
+
}
|
|
101
|
+
render() {
|
|
102
|
+
return e`
|
|
103
|
+
<pkt-input-wrapper
|
|
104
|
+
${r(this, [null, "helptext"])}
|
|
105
|
+
.strings=${this.strings}
|
|
106
|
+
label=${this.label}
|
|
107
|
+
hasFieldset
|
|
108
|
+
?disabled=${this.disabled}
|
|
109
|
+
?hasError=${this.hasError}
|
|
110
|
+
?optionalTag=${this.optionalTag}
|
|
111
|
+
?requiredTag=${this.requiredTag}
|
|
112
|
+
useWrapper=${this.useWrapper}
|
|
113
|
+
.errorMessage=${this.errorMessage}
|
|
114
|
+
.forId=${this.id || this.generatedId}
|
|
115
|
+
.helptext=${this.helptext}
|
|
116
|
+
.helptextDropdown=${this.helptextDropdown}
|
|
117
|
+
.helptextDropdownButton=${this.helptextDropdownButton}
|
|
118
|
+
.layout=${this.layout}
|
|
119
|
+
.optionalText=${this.optionalText}
|
|
120
|
+
.requiredText=${this.requiredText}
|
|
121
|
+
.tagText=${this.tagText}
|
|
122
|
+
.size=${this.inputSize}
|
|
123
|
+
></pkt-input-wrapper>
|
|
124
|
+
`;
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
t([n({ type: String })], f.prototype, "name", void 0), t([n({ type: String })], f.prototype, "label", void 0), t([n({ type: String })], f.prototype, "helptext", void 0), t([n({ type: String })], f.prototype, "helptextDropdown", void 0), t([n({ type: String })], f.prototype, "helptextDropdownButton", void 0), t([n({ type: Boolean })], f.prototype, "hasError", void 0), t([n({ type: String })], f.prototype, "errorMessage", void 0), t([n({ type: Boolean })], f.prototype, "disabled", void 0), t([n({ type: Boolean })], f.prototype, "required", void 0), t([n({ type: Boolean })], f.prototype, "hasTile", void 0), t([n({ type: String })], f.prototype, "layout", void 0), t([n({
|
|
128
|
+
type: String,
|
|
129
|
+
attribute: "input-size"
|
|
130
|
+
})], f.prototype, "inputSize", void 0), t([n({
|
|
131
|
+
type: Boolean,
|
|
132
|
+
converter: a
|
|
133
|
+
})], f.prototype, "useWrapper", void 0), t([n({ type: Boolean })], f.prototype, "optionalTag", void 0), t([n({ type: String })], f.prototype, "optionalText", void 0), t([n({ type: Boolean })], f.prototype, "requiredTag", void 0), t([n({ type: String })], f.prototype, "requiredText", void 0), t([n({ type: String })], f.prototype, "tagText", void 0);
|
|
134
|
+
//#endregion
|
|
135
|
+
export { u as i, l as n, d as r, f as t };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const e=require("./element-C6WTyJFE.cjs"),t=require("./element-with-slot-DhiAuSjM.cjs"),n=require("./booleanish-BF8l4scU.cjs"),r=require("./utils-63cRpWut.cjs");require("./input-wrapper-BT6B3Kco.cjs");var i={layout:`vertical`,inputSize:`medium`,hasTile:!1,required:!1,disabled:!1,hasError:!1,useWrapper:!0,requiredTag:!1,optionalTag:!1},a=[`change`,`input`,`value-change`,`focus`,`blur`];function o(e){return e.checked===void 0?e.hasAttribute(`checked`):e.checked===!0||e.checked===``||e.checked===`true`}function s(e){return(typeof e.value==`string`?e.value:e.getAttribute(`value`))||`on`}function c(e){return e.hasAttribute(`disabled`)||e.matches(`:disabled`)}var l=class extends t.t{get groupName(){return this.name||this.id||this.generatedId}options(){return Array.from(this.querySelectorAll(this.optionSelector))}createGroupContext(){return{name:this.groupName,hasTile:this.hasTile,hasError:this.hasError}}syncValidity(){}constructor(){super(),this.name=``,this.label=``,this.helptext=``,this.helptextDropdown=``,this.helptextDropdownButton=null,this.hasError=i.hasError,this.errorMessage=``,this.disabled=i.disabled,this.required=i.required,this.hasTile=i.hasTile,this.layout=i.layout,this.inputSize=i.inputSize,this.useWrapper=i.useWrapper,this.optionalTag=i.optionalTag,this.requiredTag=i.requiredTag,this.tagText=null,this.generatedId=r.n(),this.knownOptions=new Set,this.resetForm=null,this.handleFormReset=()=>{setTimeout(()=>{this.hasStoredValue&&this.storeCurrentValue(),this.syncValidity()})},this.relayOptionEvent=e=>{let t=e.target;if(!t||t===this||!t.matches(this.optionSelector))return;e.stopImmediatePropagation();let n={bubbles:!0,composed:!0};e.type===`change`?(this.storeCurrentValue(),this.syncValidity(),this.dispatchEvent(new Event(`change`,n))):e.type===`input`?this.dispatchEvent(new InputEvent(`input`,n)):e.type===`value-change`&&this.dispatchEvent(new CustomEvent(`value-change`,{...n,detail:this.value}))},this.handleFocusIn=e=>{this.contains(e.relatedTarget)||this.dispatchEvent(new FocusEvent(`focus`,{bubbles:!0,composed:!0,relatedTarget:e.relatedTarget}))},this.handleFocusOut=e=>{this.contains(e.relatedTarget)||this.dispatchEvent(new FocusEvent(`blur`,{bubbles:!0,composed:!0,relatedTarget:e.relatedTarget}))};for(let e of a)this.addEventListener(e,this.relayOptionEvent);this.addEventListener(`focusin`,this.handleFocusIn),this.addEventListener(`focusout`,this.handleFocusOut)}disconnectedCallback(){super.disconnectedCallback(),this.watchFormReset(null)}focus(e){let t=this.options();(t.find(e=>o(e)&&!c(e))??t.find(e=>!c(e)))?.querySelector(`input`)?.focus(e)}willUpdate(e){super.willUpdate(e);let t=this.createGroupContext(),n=this.groupContext;(!n||Object.keys(t).some(e=>t[e]!==n[e]))&&(this.groupContext=t)}updated(e){super.updated(e);let t=this.options(),n=t.filter(e=>!this.knownOptions.has(e));this.knownOptions=new Set(t),this.hasStoredValue&&n.length&&this.applyStoredValue(n),this.syncValidity(),this.watchFormReset(t[0]?.form??null)}watchFormReset(e){e!==this.resetForm&&(this.resetForm?.removeEventListener(`reset`,this.handleFormReset),this.resetForm=e,this.resetForm?.addEventListener(`reset`,this.handleFormReset))}render(){return e._`
|
|
2
|
+
<pkt-input-wrapper
|
|
3
|
+
${t.n(this,[null,`helptext`])}
|
|
4
|
+
.strings=${this.strings}
|
|
5
|
+
label=${this.label}
|
|
6
|
+
hasFieldset
|
|
7
|
+
?disabled=${this.disabled}
|
|
8
|
+
?hasError=${this.hasError}
|
|
9
|
+
?optionalTag=${this.optionalTag}
|
|
10
|
+
?requiredTag=${this.requiredTag}
|
|
11
|
+
useWrapper=${this.useWrapper}
|
|
12
|
+
.errorMessage=${this.errorMessage}
|
|
13
|
+
.forId=${this.id||this.generatedId}
|
|
14
|
+
.helptext=${this.helptext}
|
|
15
|
+
.helptextDropdown=${this.helptextDropdown}
|
|
16
|
+
.helptextDropdownButton=${this.helptextDropdownButton}
|
|
17
|
+
.layout=${this.layout}
|
|
18
|
+
.optionalText=${this.optionalText}
|
|
19
|
+
.requiredText=${this.requiredText}
|
|
20
|
+
.tagText=${this.tagText}
|
|
21
|
+
.size=${this.inputSize}
|
|
22
|
+
></pkt-input-wrapper>
|
|
23
|
+
`}};e.n([e.u({type:String})],l.prototype,`name`,void 0),e.n([e.u({type:String})],l.prototype,`label`,void 0),e.n([e.u({type:String})],l.prototype,`helptext`,void 0),e.n([e.u({type:String})],l.prototype,`helptextDropdown`,void 0),e.n([e.u({type:String})],l.prototype,`helptextDropdownButton`,void 0),e.n([e.u({type:Boolean})],l.prototype,`hasError`,void 0),e.n([e.u({type:String})],l.prototype,`errorMessage`,void 0),e.n([e.u({type:Boolean})],l.prototype,`disabled`,void 0),e.n([e.u({type:Boolean})],l.prototype,`required`,void 0),e.n([e.u({type:Boolean})],l.prototype,`hasTile`,void 0),e.n([e.u({type:String})],l.prototype,`layout`,void 0),e.n([e.u({type:String,attribute:`input-size`})],l.prototype,`inputSize`,void 0),e.n([e.u({type:Boolean,converter:n.t})],l.prototype,`useWrapper`,void 0),e.n([e.u({type:Boolean})],l.prototype,`optionalTag`,void 0),e.n([e.u({type:String})],l.prototype,`optionalText`,void 0),e.n([e.u({type:Boolean})],l.prototype,`requiredTag`,void 0),e.n([e.u({type:String})],l.prototype,`requiredText`,void 0),e.n([e.u({type:String})],l.prototype,`tagText`,void 0),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return l}});
|
package/dist/pkt-accordion.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./accordion-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./accordion-CMCCpxtz.cjs");exports.PktAccordion=e.r,exports.PktAccordionItem=e.n,exports.default=e.t;
|
package/dist/pkt-accordion.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "./accordion-
|
|
1
|
+
import { n as e, r as t, t as n } from "./accordion-Cp2o6wTY.js";
|
|
2
2
|
export { t as PktAccordion, e as PktAccordionItem, n as default };
|
package/dist/pkt-alert.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./alert-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./alert-QfloIr-o.cjs");exports.PktAlert=e.n,exports.default=e.t;
|
package/dist/pkt-alert.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./alert-
|
|
1
|
+
import { n as e, t } from "./alert-CAPiwi4F.js";
|
|
2
2
|
export { e as PktAlert, t as default };
|
package/dist/pkt-backlink.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./backlink-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./backlink-CsFeerTH.cjs");exports.PktBackLink=e.n,exports.default=e.t;
|
package/dist/pkt-backlink.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./backlink-
|
|
1
|
+
import { n as e, t } from "./backlink-ogvv493Y.js";
|
|
2
2
|
export { e as PktBackLink, t as default };
|
package/dist/pkt-breadcrumbs.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./breadcrumbs-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./breadcrumbs-D03id_ha.cjs");exports.PktBreadcrumbs=e.t;
|
package/dist/pkt-breadcrumbs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./breadcrumbs-
|
|
1
|
+
import { t as e } from "./breadcrumbs-53QVnTFP.js";
|
|
2
2
|
export { e as PktBreadcrumbs };
|
package/dist/pkt-button.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./button-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./button-Dh97H-58.cjs");exports.PktButton=e.n,exports.default=e.t;
|
package/dist/pkt-button.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./button-
|
|
1
|
+
import { n as e, t } from "./button-CeRr7oIn.js";
|
|
2
2
|
export { e as PktButton, t as default };
|
package/dist/pkt-calendar.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./calendar-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./calendar-C5QwPrbk.cjs");exports.PktCalendar=e.n,exports.default=e.t;
|
package/dist/pkt-calendar.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./calendar-
|
|
1
|
+
import { n as e, t } from "./calendar-D9w8M99G.js";
|
|
2
2
|
export { e as PktCalendar, t as default };
|
package/dist/pkt-card.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./card
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./card--NuWdTbG.cjs");exports.PktCard=e.n,exports.default=e.t;
|
package/dist/pkt-card.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./card-
|
|
1
|
+
import { n as e, t } from "./card-_PlgXmgZ.js";
|
|
2
2
|
export { e as PktCard, t as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./checkbox-group-nLazAkcg.cjs");exports.PktCheckboxGroup=e.n,exports.default=e.t;
|
package/dist/pkt-checkbox.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./checkbox-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./checkbox-QIcdn09A.cjs");exports.PktCheckbox=e.n,exports.default=e.t;
|
package/dist/pkt-checkbox.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./checkbox-
|
|
1
|
+
import { n as e, t } from "./checkbox-G8k3vg85.js";
|
|
2
2
|
export { e as PktCheckbox, t as default };
|
package/dist/pkt-combobox.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./combobox-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./combobox-ClXhKwR9.cjs");exports.PktCombobox=e.n,exports.default=e.t;
|
package/dist/pkt-combobox.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./combobox-
|
|
1
|
+
import { n as e, t } from "./combobox-Cz_rq7Mm.js";
|
|
2
2
|
export { e as PktCombobox, t as default };
|
package/dist/pkt-consent.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./consent-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./consent-DimzcQxt.cjs");exports.PktConsent=e.n,exports.default=e.t;
|
package/dist/pkt-consent.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./consent-
|
|
1
|
+
import { n as e, t } from "./consent-CZMxUavj.js";
|
|
2
2
|
export { e as PktConsent, t as default };
|
package/dist/pkt-datepicker.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./datepicker-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./datepicker-usIF9WY7.cjs");var t=e.t;exports.PktDatepicker=e.t,exports.PktDatepickerMultiple=e.n,exports.PktDatepickerRange=e.r,exports.PktDatepickerSingle=e.i,exports.default=t;
|
package/dist/pkt-datepicker.js
CHANGED
package/dist/pkt-fileupload.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./fileupload-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./fileupload-2uTFjd81.cjs");Object.defineProperty(exports,"PktFileUpload",{enumerable:!0,get:function(){return e.n}}),exports.default=e.t;
|
package/dist/pkt-fileupload.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./fileupload-
|
|
1
|
+
import { n as e, t } from "./fileupload-BR9H6fET.js";
|
|
2
2
|
export { e as PktFileUpload, t as default };
|
package/dist/pkt-footer.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./footer-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./footer-CyxRYvT-.cjs");exports.PktFooter=e.n,exports.PktFooterSimple=e.t;
|
package/dist/pkt-footer.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./footer-
|
|
1
|
+
import { n as e, t } from "./footer-B3DMvo8-.js";
|
|
2
2
|
export { e as PktFooter, t as PktFooterSimple };
|
package/dist/pkt-header-menu.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./header-menu-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./header-menu-B_5hCNUl.cjs");exports.PktHeaderMenu=e.n,exports.default=e.t;
|
package/dist/pkt-header-menu.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./header-menu-
|
|
1
|
+
import { n as e, t } from "./header-menu-buYE90FU.js";
|
|
2
2
|
export { e as PktHeaderMenu, t as default };
|
package/dist/pkt-header.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./header-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./header-Drj3lTrv.cjs");exports.PktHeader=e.t,exports.PktHeaderGlobal=e.n,exports.PktHeaderService=e.r,exports.PktHeaderUserMenu=e.i,exports.formatLastLoggedIn=e.a;
|
package/dist/pkt-header.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, r, t as i } from "./header-
|
|
1
|
+
import { a as e, i as t, n, r, t as i } from "./header-BKeSkfB7.js";
|
|
2
2
|
export { i as PktHeader, n as PktHeaderGlobal, r as PktHeaderService, t as PktHeaderUserMenu, e as formatLastLoggedIn };
|
package/dist/pkt-heading.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./heading-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./heading-DUYOvlxs.cjs");exports.PktHeading=e.n,exports.default=e.t;
|
package/dist/pkt-heading.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./heading-
|
|
1
|
+
import { n as e, t } from "./heading-WBB5MO9i.js";
|
|
2
2
|
export { e as PktHeading, t as default };
|
package/dist/pkt-helptext.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./helptext-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./helptext-C7cyihnu.cjs");exports.PktHelptext=e.n,exports.default=e.t;
|
package/dist/pkt-helptext.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./helptext-
|
|
1
|
+
import { n as e, t } from "./helptext-DadLkcoO.js";
|
|
2
2
|
export { e as PktHelptext, t as default };
|
package/dist/pkt-icon.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./icon-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./icon-jPhyZD1z.cjs");exports.PktIcon=e.n,exports.default=e.t;
|
package/dist/pkt-icon.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./icon-
|
|
1
|
+
import { n as e, t } from "./icon-Bao96Zb8.js";
|
|
2
2
|
export { e as PktIcon, t as default };
|
package/dist/pkt-index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./element-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./element-C6WTyJFE.cjs"),t=require("./consent-DimzcQxt.cjs"),n=require("./alert-QfloIr-o.cjs"),r=require("./header-Drj3lTrv.cjs"),i=require("./card--NuWdTbG.cjs"),a=require("./checkbox-QIcdn09A.cjs"),o=require("./icon-jPhyZD1z.cjs"),s=require("./messagebox-C19L2Duq.cjs"),c=require("./calendar-C5QwPrbk.cjs"),l=require("./combobox-ClXhKwR9.cjs"),u=require("./button-Dh97H-58.cjs"),d=require("./accordion-CMCCpxtz.cjs"),f=require("./backlink-CsFeerTH.cjs"),p=require("./breadcrumbs-D03id_ha.cjs"),m=require("./tag-DyVZrqOQ.cjs"),h=require("./input-wrapper-BT6B3Kco.cjs"),g=require("./helptext-C7cyihnu.cjs"),_=require("./checkbox-group-nLazAkcg.cjs"),v=require("./fileupload-2uTFjd81.cjs"),y=require("./modal-CoEPzt4p.cjs"),b=require("./progressbar-CnX4fFfR.cjs"),x=require("./datepicker-usIF9WY7.cjs"),S=require("./footer-CyxRYvT-.cjs"),C=require("./link-CEP7w1et.cjs"),w=require("./textinput-CQknclmV.cjs"),T=require("./searchinput-Mdc9Ihld.cjs"),E=require("./header-menu-B_5hCNUl.cjs"),D=require("./heading-DUYOvlxs.cjs"),O=require("./linkcard-D8vitdrQ.cjs"),k=require("./loader-B0hFoBtF.cjs"),A=require("./radiobutton-BgHCcDJv.cjs"),j=require("./radio-group-kOzlGn8T.cjs"),M=require("./tabs-Dm8xcPRs.cjs"),N=require("./textarea-DoH3Il8v.cjs"),P=require("./select-BowvpCNa.cjs"),F=require("./timepicker-DB3gor6g.cjs");exports.PktAccordion=d.r,exports.PktAccordionItem=d.n,exports.PktAlert=n.n,exports.PktBackLink=f.n,exports.PktBreadcrumbs=p.t,exports.PktButton=u.n,exports.PktCalendar=c.n,exports.PktCard=i.n,exports.PktCheckbox=a.n,exports.PktCheckboxGroup=_.n,exports.PktCombobox=l.n,exports.PktConsent=t.n,exports.PktDateTags=x.a,exports.PktDatepicker=x.t,Object.defineProperty(exports,"PktFileUpload",{enumerable:!0,get:function(){return v.n}}),exports.PktFooter=S.n,exports.PktFooterSimple=S.t,exports.PktHeader=r.t,exports.PktHeaderGlobal=r.n,exports.PktHeaderMenu=E.n,exports.PktHeaderService=r.r,exports.PktHeaderUserMenu=r.i,exports.PktHeading=D.n,exports.PktHelptext=g.n,exports.PktIcon=o.n,exports.PktInputWrapper=h.n,exports.PktLink=C.n,exports.PktLinkCard=O.n,exports.PktLoader=k.n,exports.PktMessagebox=s.n,exports.PktModal=y.n,exports.PktProgressbar=b.n,exports.PktRadioButton=A.n,exports.PktRadiobutton=A.n,exports.PktRadioGroup=j.n,exports.PktSearchInput=T.n,exports.PktSelect=P.n,exports.PktTabItem=M.n,exports.PktTabs=M.r,exports.PktTag=m.n,exports.PktTextarea=N.n,exports.PktTextinput=w.n,exports.PktTimepicker=F.t,exports.getPktStrings=e.r,exports.pktStringsNb=e.s,exports.resetPktStrings=e.i,exports.setPktStrings=e.a,exports.subscribePktStrings=e.o;
|
package/dist/pkt-index.js
CHANGED
|
@@ -1,35 +1,37 @@
|
|
|
1
|
-
import { a as e, i as t, o as n, r, s as i } from "./element-
|
|
2
|
-
import { n as a } from "./consent-
|
|
3
|
-
import { n as o } from "./alert-
|
|
4
|
-
import { i as s, n as c, r as l, t as u } from "./header-
|
|
5
|
-
import { n as d } from "./card-
|
|
6
|
-
import { n as f } from "./checkbox-
|
|
7
|
-
import { n as p } from "./icon-
|
|
8
|
-
import { n as m } from "./messagebox-
|
|
9
|
-
import { n as h } from "./calendar-
|
|
10
|
-
import { n as g } from "./combobox-
|
|
11
|
-
import { n as _ } from "./button-
|
|
12
|
-
import { n as v, r as y } from "./accordion-
|
|
13
|
-
import { n as b } from "./backlink-
|
|
14
|
-
import { t as x } from "./breadcrumbs-
|
|
15
|
-
import { n as S } from "./tag-
|
|
16
|
-
import { n as C } from "./input-wrapper-
|
|
17
|
-
import { n as w } from "./helptext-
|
|
18
|
-
import { n as T } from "./
|
|
19
|
-
import { n as E } from "./
|
|
20
|
-
import { n as D } from "./
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import { n as M } from "./
|
|
24
|
-
import { n as N } from "./
|
|
25
|
-
import { n as P } from "./
|
|
26
|
-
import { n as F } from "./
|
|
27
|
-
import { n as I } from "./
|
|
28
|
-
import { n as L } from "./
|
|
29
|
-
import { n as R } from "./
|
|
30
|
-
import { n as z } from "./
|
|
31
|
-
import { n as B
|
|
32
|
-
import { n as
|
|
33
|
-
import { n as U } from "./
|
|
34
|
-
import {
|
|
35
|
-
|
|
1
|
+
import { a as e, i as t, o as n, r, s as i } from "./element-DBugHPKM.js";
|
|
2
|
+
import { n as a } from "./consent-CZMxUavj.js";
|
|
3
|
+
import { n as o } from "./alert-CAPiwi4F.js";
|
|
4
|
+
import { i as s, n as c, r as l, t as u } from "./header-BKeSkfB7.js";
|
|
5
|
+
import { n as d } from "./card-_PlgXmgZ.js";
|
|
6
|
+
import { n as f } from "./checkbox-G8k3vg85.js";
|
|
7
|
+
import { n as p } from "./icon-Bao96Zb8.js";
|
|
8
|
+
import { n as m } from "./messagebox-6_iNN5F3.js";
|
|
9
|
+
import { n as h } from "./calendar-D9w8M99G.js";
|
|
10
|
+
import { n as g } from "./combobox-Cz_rq7Mm.js";
|
|
11
|
+
import { n as _ } from "./button-CeRr7oIn.js";
|
|
12
|
+
import { n as v, r as y } from "./accordion-Cp2o6wTY.js";
|
|
13
|
+
import { n as b } from "./backlink-ogvv493Y.js";
|
|
14
|
+
import { t as x } from "./breadcrumbs-53QVnTFP.js";
|
|
15
|
+
import { n as S } from "./tag-C33BPIOm.js";
|
|
16
|
+
import { n as C } from "./input-wrapper-DrSCuw6U.js";
|
|
17
|
+
import { n as w } from "./helptext-DadLkcoO.js";
|
|
18
|
+
import { n as T } from "./checkbox-group-DoueGGi5.js";
|
|
19
|
+
import { n as E } from "./fileupload-BR9H6fET.js";
|
|
20
|
+
import { n as D } from "./modal-D7MolBXb.js";
|
|
21
|
+
import { n as O } from "./progressbar-DZHiq7B0.js";
|
|
22
|
+
import { a as k, t as A } from "./datepicker-C7ABsx7H.js";
|
|
23
|
+
import { n as j, t as M } from "./footer-B3DMvo8-.js";
|
|
24
|
+
import { n as N } from "./link-CVnIn74-.js";
|
|
25
|
+
import { n as P } from "./textinput-B6G4dVuL.js";
|
|
26
|
+
import { n as F } from "./searchinput-Bkcr3Fby.js";
|
|
27
|
+
import { n as I } from "./header-menu-buYE90FU.js";
|
|
28
|
+
import { n as L } from "./heading-WBB5MO9i.js";
|
|
29
|
+
import { n as R } from "./linkcard-IWiVvRKy.js";
|
|
30
|
+
import { n as z } from "./loader-CAsUPHjl.js";
|
|
31
|
+
import { n as B } from "./radiobutton-CFd8TgV9.js";
|
|
32
|
+
import { n as V } from "./radio-group-lhymYEZX.js";
|
|
33
|
+
import { n as H, r as U } from "./tabs-DZvtVA0y.js";
|
|
34
|
+
import { n as W } from "./textarea-hW0kV5gj.js";
|
|
35
|
+
import { n as G } from "./select-B6CN2Ymq.js";
|
|
36
|
+
import { t as K } from "./timepicker-Cd2QI6ua.js";
|
|
37
|
+
export { y as PktAccordion, v as PktAccordionItem, o as PktAlert, b as PktBackLink, x as PktBreadcrumbs, _ as PktButton, h as PktCalendar, d as PktCard, f as PktCheckbox, T as PktCheckboxGroup, g as PktCombobox, a as PktConsent, k as PktDateTags, A as PktDatepicker, E as PktFileUpload, j as PktFooter, M as PktFooterSimple, u as PktHeader, c as PktHeaderGlobal, I as PktHeaderMenu, l as PktHeaderService, s as PktHeaderUserMenu, L as PktHeading, w as PktHelptext, p as PktIcon, C as PktInputWrapper, N as PktLink, R as PktLinkCard, z as PktLoader, m as PktMessagebox, D as PktModal, O as PktProgressbar, B as PktRadioButton, B as PktRadiobutton, V as PktRadioGroup, F as PktSearchInput, G as PktSelect, H as PktTabItem, U as PktTabs, S as PktTag, W as PktTextarea, P as PktTextinput, K as PktTimepicker, r as getPktStrings, i as pktStringsNb, t as resetPktStrings, e as setPktStrings, n as subscribePktStrings };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./input-wrapper-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./input-wrapper-BT6B3Kco.cjs");exports.PktInputWrapper=e.n,exports.default=e.t;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./input-wrapper-
|
|
1
|
+
import { n as e, t } from "./input-wrapper-DrSCuw6U.js";
|
|
2
2
|
export { e as PktInputWrapper, t as default };
|
package/dist/pkt-link.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./link-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./link-CEP7w1et.cjs");exports.PktLink=e.n,exports.default=e.t;
|
package/dist/pkt-link.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./link-
|
|
1
|
+
import { n as e, t } from "./link-CVnIn74-.js";
|
|
2
2
|
export { e as PktLink, t as default };
|
package/dist/pkt-linkcard.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./linkcard-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./linkcard-D8vitdrQ.cjs");exports.PktLinkCard=e.n,exports.default=e.t;
|
package/dist/pkt-linkcard.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./linkcard-
|
|
1
|
+
import { n as e, t } from "./linkcard-IWiVvRKy.js";
|
|
2
2
|
export { e as PktLinkCard, t as default };
|
package/dist/pkt-listbox.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./listbox-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./listbox-CvduK_YU.cjs");exports.PktListbox=e.n,exports.default=e.t;
|
package/dist/pkt-listbox.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./listbox-
|
|
1
|
+
import { n as e, t } from "./listbox-BDesthOp.js";
|
|
2
2
|
export { e as PktListbox, t as default };
|
package/dist/pkt-loader.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./loader-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./loader-B0hFoBtF.cjs");exports.PktLoader=e.n,exports.default=e.t;
|
package/dist/pkt-loader.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./loader-
|
|
1
|
+
import { n as e, t } from "./loader-CAsUPHjl.js";
|
|
2
2
|
export { e as PktLoader, t as default };
|
package/dist/pkt-messagebox.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./messagebox-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./messagebox-C19L2Duq.cjs");exports.PktMessagebox=e.n,exports.default=e.t;
|
package/dist/pkt-messagebox.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./messagebox-
|
|
1
|
+
import { n as e, t } from "./messagebox-6_iNN5F3.js";
|
|
2
2
|
export { e as PktMessagebox, t as default };
|
package/dist/pkt-modal.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./modal-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./modal-CoEPzt4p.cjs");exports.PktModal=e.n,exports.default=e.t;
|
package/dist/pkt-modal.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./modal-
|
|
1
|
+
import { n as e, t } from "./modal-D7MolBXb.js";
|
|
2
2
|
export { e as PktModal, t as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./element-with-slot-
|
|
1
|
+
const e=require("./element-with-slot-DhiAuSjM.cjs");var t=class{constructor(e){this.nodes=[],this.options=[],this.generation=0,this.host=e,this.host.addController(this),this.nodes=[],this.options=[],this.observer=new MutationObserver(e=>this.handleMutations(e))}hostConnected(){this.nodes=[],Array.from(this.host.childNodes).forEach(e=>{(e.nodeName===`OPTION`||e.nodeName===`DATA`)&&this.addNode(e)}),this.createOptions(),this.observer.observe(this.host,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`disabled`,`selected`,`value`],attributeOldValue:!0,characterData:!0})}hostDisconnected(){this.observer.disconnect()}addNode(e){(e.nodeName===`OPTION`||e.nodeName===`DATA`)&&(e.hasAttribute(`hidden`)&&!e.hasAttribute(`data-skip`)&&e.setAttribute(`data-hidden`,`true`),!e.hasAttribute(`hidden`)&&e.hasAttribute(`data-skip`)&&e.hasAttribute(`data-hidden`)&&e.removeAttribute(`data-hidden`),e.setAttribute(`class`,`pkt-hide`),e.setAttribute(`data-skip`,`true`),e.setAttribute(`hidden`,`true`),this.nodes.includes(e)||this.nodes.push(e))}createOptions(){this.options=this.nodes.map(e=>({value:e.hasAttribute(`value`)?e.getAttribute(`value`)??``:e.textContent??``,label:e.textContent||e.getAttribute(`value`)||``,selected:e.hasAttribute(`selected`),disabled:e.hasAttribute(`disabled`),hidden:e.hasAttribute(`data-hidden`)})),this.generation++,this.host.requestUpdate()}handleMutations(t){let n=!1;t.forEach(t=>{if(t.type===`childList`){if(t.target!==this.host){let r=t.target;e.a(r)&&r.parentNode===this.host&&(n=!0);return}t.addedNodes.forEach(t=>{e.a(t)&&(this.addNode(t),n=!0)}),t.removedNodes.forEach(t=>{e.a(t)&&(this.nodes=this.nodes.filter(e=>e!==t),n=!0)})}if(t.type===`attributes`){let r=t.target;if(!e.a(r)||r.parentNode!==this.host||t.attributeName&&r.getAttribute(t.attributeName)===t.oldValue)return;this.addNode(r),n=!0}if(t.type===`characterData`){let r=t.target.parentElement;r&&e.a(r)&&r.parentNode===this.host&&(n=!0)}}),n&&this.createOptions()}};Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return t}});
|
package/dist/pkt-progressbar.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./progressbar-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./progressbar-CnX4fFfR.cjs");exports.PktProgressbar=e.n,exports.default=e.t;
|
package/dist/pkt-progressbar.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./progressbar-
|
|
1
|
+
import { n as e, t } from "./progressbar-DZHiq7B0.js";
|
|
2
2
|
export { e as PktProgressbar, t as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./radio-group-kOzlGn8T.cjs");exports.PktRadioGroup=e.n,exports.default=e.t;
|
package/dist/pkt-radiobutton.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./radiobutton-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./radiobutton-BgHCcDJv.cjs");exports.PktRadioButton=e.n,exports.default=e.t;
|
package/dist/pkt-radiobutton.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./radiobutton-
|
|
1
|
+
import { n as e, t } from "./radiobutton-CFd8TgV9.js";
|
|
2
2
|
export { e as PktRadioButton, t as default };
|
package/dist/pkt-searchinput.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./searchinput-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./searchinput-Mdc9Ihld.cjs");exports.PktSearchInput=e.n,exports.default=e.t;
|
package/dist/pkt-searchinput.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./searchinput-
|
|
1
|
+
import { n as e, t } from "./searchinput-Bkcr3Fby.js";
|
|
2
2
|
export { e as PktSearchInput, t as default };
|
package/dist/pkt-select.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./select-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./select-BowvpCNa.cjs");exports.PktSelect=e.n,exports.default=e.t;
|