@oslokommune/punkt-elements 19.19.0 → 19.20.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 +13 -0
- package/dist/{accordion-Bg4CMrUM.cjs → accordion-5N_ptxrN.cjs} +1 -1
- package/dist/{accordion-BHVzR-6Z.js → accordion-C5cu1xXT.js} +5 -5
- package/dist/{alert-Dy5N7qK-.cjs → alert-KxCE28nq.cjs} +1 -1
- package/dist/{alert-BAaZIR3e.js → alert-UbQzzkXb.js} +5 -5
- package/dist/{async-directive-C4LocQwR.js → async-directive-BcS8rfeC.js} +2 -2
- package/dist/{async-directive-DpyKp6qv.cjs → async-directive-DCLIOGR8.cjs} +1 -1
- package/dist/{backlink-BnWruRuj.cjs → backlink-CqRcFURx.cjs} +1 -1
- package/dist/{backlink-Dlkyj0ns.js → backlink-bbYpIZJI.js} +3 -3
- package/dist/{breadcrumbs-CyWtnx2B.cjs → breadcrumbs-C_JR4ZI_.cjs} +1 -1
- package/dist/{breadcrumbs-Bfv8W2CF.js → breadcrumbs-D7gddV5F.js} +2 -2
- package/dist/{button-CF9k3ARf.js → button-BJ6QLwxJ.js} +5 -5
- package/dist/{button-BBFI3FuT.cjs → button-pFlrTF2P.cjs} +1 -1
- package/dist/{calendar-BX3n3vhs.js → calendar-CYsQEfZn.js} +3 -3
- package/dist/{calendar-Dds9KFiE.cjs → calendar-Fk5ubNGR.cjs} +1 -1
- package/dist/{card-Ddu0sQ0f.js → card-CKu696QC.js} +6 -6
- package/dist/{card-mi3VKIoy.cjs → card-Da0JkVcv.cjs} +1 -1
- package/dist/{checkbox-D9-KugOh.js → checkbox-BLmQSdWB.js} +4 -4
- package/dist/{checkbox-B8foyiOW.cjs → checkbox-PAtsn1TO.cjs} +1 -1
- package/dist/{checkbox-group-BlBgrzKG.cjs → checkbox-group-B9TtWVpG.cjs} +1 -1
- package/dist/{checkbox-group-Dz1ypmbU.js → checkbox-group-DFKzbaHC.js} +3 -3
- package/dist/{class-map-BkEYw5uE.js → class-map-BDwVSgLb.js} +1 -1
- package/dist/{class-map-Bh6toDeV.cjs → class-map-C82GtM1w.cjs} +1 -1
- package/dist/{combobox-DLDvyuDh.cjs → combobox-CJAmzQFD.cjs} +1 -1
- package/dist/{combobox-BAkblu9M.js → combobox-KnYdXXRm.js} +12 -12
- package/dist/components/progressbar/progressbar.d.ts +4 -18
- package/dist/components/textinput/index.d.ts +1 -0
- package/dist/components/textinput/textinput.d.ts +22 -1
- package/dist/{consent-DNHRe0zV.cjs → consent-BjWx64Gv.cjs} +1 -1
- package/dist/{consent-BTw6uqFf.js → consent-CeJKY2EB.js} +2 -2
- package/dist/{datepicker-9dmdHweu.js → datepicker-Cco0rRLa.js} +11 -11
- package/dist/{datepicker-C7F1Yc5N.cjs → datepicker-IMxHS-ex.cjs} +1 -1
- package/dist/{directive-helpers-BAinC437.js → directive-helpers-BoDzpPID.js} +1 -1
- package/dist/{directive-helpers-Bv70GjQh.cjs → directive-helpers-r7akb6wX.cjs} +1 -1
- package/dist/{element-C6WTyJFE.cjs → element-CEarCnHH.cjs} +1 -1
- package/dist/{element-ckeMVgMz.js → element-DLgZkx5L.js} +1 -0
- package/dist/{element-with-slot-B0Vp_OuR.cjs → element-with-slot-CeKuRE3_.cjs} +1 -1
- package/dist/{element-with-slot-Dp2Gzv-Q.js → element-with-slot-mG-h7Sjw.js} +2 -2
- package/dist/{fileupload-CEwnpxZj.js → fileupload-BrSWPUcy.js} +8 -8
- package/dist/{fileupload-M66Pd-QJ.cjs → fileupload-CjqIhSJ1.cjs} +1 -1
- package/dist/{footer-HFL2sjAY.cjs → footer-BJCxJUW9.cjs} +1 -1
- package/dist/{footer-DZ4aA6fj.js → footer-DQq09VjI.js} +4 -4
- package/dist/{header-Cptdf4fW.js → header-C_BUBeOQ.js} +11 -11
- package/dist/{header-Cj08flhl.cjs → header-_KjqW2oJ.cjs} +1 -1
- package/dist/{header-menu-DxOSBiTJ.js → header-menu-BV0XlRez.js} +4 -4
- package/dist/{header-menu-De2DNAXd.cjs → header-menu-BiW5cNun.cjs} +1 -1
- package/dist/{heading-B1Ey3XzB.js → heading-CMZmPEL9.js} +2 -2
- package/dist/{heading--hGRDNX9.cjs → heading-DAkjw2Am.cjs} +1 -1
- package/dist/{helptext-BbrFE48Y.cjs → helptext-B4h3Xlqa.cjs} +1 -1
- package/dist/{helptext-BVYv8Lm9.js → helptext-CL1vxEaL.js} +4 -4
- package/dist/{icon-CrG6o7ZE.cjs → icon-B3YGHHa7.cjs} +1 -1
- package/dist/{icon-CUU42bZ0.js → icon-C82IxnSO.js} +1 -1
- package/dist/if-defined-Ci4ZQsgL.cjs +1 -0
- package/dist/{if-defined-D18nY_K_.js → if-defined-DiYi2v_Q.js} +1 -1
- package/dist/{input-element-D82laWtR.cjs → input-element-2LHxo0em.cjs} +1 -1
- package/dist/{input-element-DczlJQb1.js → input-element-De40zUox.js} +2 -2
- package/dist/{input-wrapper-QzdntWJX.cjs → input-wrapper-BNu6kOOn.cjs} +1 -1
- package/dist/{input-wrapper-CHwWQgZP.js → input-wrapper-DowJHbGF.js} +6 -6
- package/dist/{link-BU6t5Tt9.js → link-D9kjggXZ.js} +4 -4
- package/dist/{link-a1ZK4J1j.cjs → link-DqPFlWxz.cjs} +1 -1
- package/dist/{linkcard-DM0CQbwD.js → linkcard-BEmG-2lN.js} +4 -4
- package/dist/{linkcard-Cu4Rh71U.cjs → linkcard-BMJvjo7R.cjs} +1 -1
- package/dist/{listbox-DFd-1faX.js → listbox-DAvIBH4P.js} +4 -4
- package/dist/{listbox-BbdUu-IV.cjs → listbox-HrH4JonS.cjs} +1 -1
- package/dist/{loader-DwGMavG7.cjs → loader-C4fbS8vr.cjs} +1 -1
- package/dist/{loader-Y8V3Q82X.js → loader-lDVe6rUf.js} +4 -4
- package/dist/{messagebox-wJcXW5hI.js → messagebox-C8dsqW20.js} +4 -4
- package/dist/{messagebox-DR-s6tyr.cjs → messagebox-DFaDuvHQ.cjs} +1 -1
- package/dist/{modal-BafCTC4M.js → modal-D389hSbe.js} +6 -6
- package/dist/{modal-C5AiVm5g.cjs → modal-EgQREcb8.cjs} +1 -1
- package/dist/{option-group-element-ZNyUoLcm.js → option-group-element-CB0Qqev_.js} +3 -3
- package/dist/{option-group-element-CWjgrFwS.cjs → option-group-element-DhYJmGgW.cjs} +1 -1
- 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 -1
- package/dist/pkt-checkbox-group.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 +37 -37
- 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-C193xcN4.cjs → pkt-options-controller-9zoH1OBW.cjs} +1 -1
- package/dist/{pkt-options-controller-CH8U6zlw.js → pkt-options-controller-CzvBlEPD.js} +1 -1
- package/dist/pkt-progressbar.cjs +1 -1
- package/dist/pkt-progressbar.js +1 -1
- package/dist/pkt-radio-group.cjs +1 -1
- package/dist/pkt-radio-group.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-BdqIhC1Z.cjs +30 -0
- package/dist/{progressbar-BukfOcRk.js → progressbar-CfCc2zhp.js} +50 -37
- package/dist/{radio-group-Bg6ODpT3.js → radio-group-CSs8YnEO.js} +3 -3
- package/dist/{radio-group-bpIEEMdL.cjs → radio-group-DRNGFfUh.cjs} +1 -1
- package/dist/{radiobutton-DMvVv81Y.js → radiobutton-BN67oAvC.js} +4 -4
- package/dist/{radiobutton-IcDc6ze2.cjs → radiobutton-Be66H6On.cjs} +1 -1
- package/dist/{ref-CB7e9nMY.cjs → ref-B6p6mQkO.cjs} +1 -1
- package/dist/{ref-D4OwQYdf.js → ref-BAegS9BR.js} +2 -2
- package/dist/{repeat-CnnigVcj.cjs → repeat-CjvNrcUr.cjs} +1 -1
- package/dist/{repeat-BGbBqnfz.js → repeat-Cy1M16Di.js} +2 -2
- package/dist/{searchinput-BV2C1VbN.js → searchinput-B26-Xp00.js} +4 -4
- package/dist/{searchinput-DqD_iLxV.cjs → searchinput-Trn6uU2J.cjs} +1 -1
- package/dist/{select-DKBfPgJB.js → select-DZftfjQt.js} +7 -7
- package/dist/{select-CHqM6kI-.cjs → select-o6iuy9hC.cjs} +1 -1
- package/dist/shared-strings/nb.d.ts +3 -0
- package/dist/shared-types/index.d.ts +4 -1
- package/dist/shared-types/progressbar.d.ts +82 -5
- package/dist/shared-types/textinput.d.ts +82 -0
- package/dist/{tabs-B2RjklQl.js → tabs-Bu9PP33-.js} +5 -5
- package/dist/{tabs-BcnYrmjU.cjs → tabs-gRjrFqeG.cjs} +1 -1
- package/dist/{tag-DrFK8Wq3.cjs → tag-BgHEzLM3.cjs} +1 -1
- package/dist/{tag-BOTH9kMz.js → tag-CtdOrK18.js} +5 -5
- package/dist/{textarea-B5OfR-QI.cjs → textarea-Cc2aQLbm.cjs} +1 -1
- package/dist/{textarea-Du1Z9JUu.js → textarea-DP7GVL2c.js} +9 -9
- package/dist/{textinput-75MKBqas.cjs → textinput-B6FPNOJB.cjs} +2 -2
- package/dist/{textinput-D_V3b327.js → textinput-Dhwotaxv.js} +30 -15
- package/dist/{timepicker-RxsG0mCF.cjs → timepicker-Ce9hXP0B.cjs} +1 -1
- package/dist/{timepicker-DVqTAxt0.js → timepicker-DxwQ7-Bl.js} +8 -8
- package/package.json +2 -2
- package/src/components/progressbar/progressbar.test.ts +47 -5
- package/src/components/progressbar/progressbar.ts +49 -53
- package/src/components/textinput/index.ts +1 -0
- package/src/components/textinput/textinput.test.ts +1 -1
- package/src/components/textinput/textinput.ts +46 -4
- package/dist/if-defined-CiML3MTM.cjs +0 -1
- package/dist/progressbar-YfHSPmqI.cjs +0 -31
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-CjqIhSJ1.cjs");Object.defineProperty(exports,"PktFileUpload",{enumerable:!0,get:function(){return e.n}}),exports.default=e.t;
|
package/dist/pkt-fileupload.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as PktFileUpload, t as default } from "./fileupload-
|
|
1
|
+
export { n as PktFileUpload, t as default } from "./fileupload-BrSWPUcy.js";
|
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-BJCxJUW9.cjs");exports.PktFooter=e.n,exports.PktFooterSimple=e.t;
|
package/dist/pkt-footer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as PktFooter, t as PktFooterSimple } from "./footer-
|
|
1
|
+
export { n as PktFooter, t as PktFooterSimple } from "./footer-DQq09VjI.js";
|
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-BiW5cNun.cjs");exports.PktHeaderMenu=e.n,exports.default=e.t;
|
package/dist/pkt-header-menu.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as PktHeaderMenu, t as default } from "./header-menu-
|
|
1
|
+
export { n as PktHeaderMenu, t as default } from "./header-menu-BV0XlRez.js";
|
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-_KjqW2oJ.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 +1 @@
|
|
|
1
|
-
export { t as PktHeader, n as PktHeaderGlobal, r as PktHeaderService, i as PktHeaderUserMenu, a as formatLastLoggedIn } from "./header-
|
|
1
|
+
export { t as PktHeader, n as PktHeaderGlobal, r as PktHeaderService, i as PktHeaderUserMenu, a as formatLastLoggedIn } from "./header-C_BUBeOQ.js";
|
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-DAkjw2Am.cjs");exports.PktHeading=e.n,exports.default=e.t;
|
package/dist/pkt-heading.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as PktHeading, t as default } from "./heading-
|
|
1
|
+
export { n as PktHeading, t as default } from "./heading-CMZmPEL9.js";
|
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-B4h3Xlqa.cjs");exports.PktHelptext=e.n,exports.default=e.t;
|
package/dist/pkt-helptext.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as PktHelptext, t as default } from "./helptext-
|
|
1
|
+
export { n as PktHelptext, t as default } from "./helptext-CL1vxEaL.js";
|
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-B3YGHHa7.cjs");exports.PktIcon=e.n,exports.default=e.t;
|
package/dist/pkt-icon.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as PktIcon, t as default } from "./icon-
|
|
1
|
+
export { n as PktIcon, t as default } from "./icon-C82IxnSO.js";
|
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-CEarCnHH.cjs"),t=require("./consent-BjWx64Gv.cjs"),n=require("./alert-KxCE28nq.cjs"),r=require("./header-_KjqW2oJ.cjs"),i=require("./card-Da0JkVcv.cjs"),a=require("./checkbox-PAtsn1TO.cjs"),o=require("./radiobutton-Be66H6On.cjs"),s=require("./icon-B3YGHHa7.cjs"),c=require("./loader-C4fbS8vr.cjs"),l=require("./accordion-5N_ptxrN.cjs"),u=require("./input-wrapper-BNu6kOOn.cjs"),d=require("./textarea-Cc2aQLbm.cjs"),f=require("./textinput-B6FPNOJB.cjs"),p=require("./messagebox-DFaDuvHQ.cjs"),m=require("./calendar-Fk5ubNGR.cjs"),h=require("./progressbar-BdqIhC1Z.cjs"),g=require("./combobox-CJAmzQFD.cjs"),_=require("./button-pFlrTF2P.cjs"),v=require("./backlink-CqRcFURx.cjs"),y=require("./breadcrumbs-C_JR4ZI_.cjs"),b=require("./tag-BgHEzLM3.cjs"),x=require("./helptext-B4h3Xlqa.cjs"),S=require("./checkbox-group-B9TtWVpG.cjs"),C=require("./fileupload-CjqIhSJ1.cjs"),w=require("./modal-EgQREcb8.cjs"),T=require("./datepicker-IMxHS-ex.cjs"),E=require("./footer-BJCxJUW9.cjs"),D=require("./link-DqPFlWxz.cjs"),O=require("./searchinput-Trn6uU2J.cjs"),k=require("./header-menu-BiW5cNun.cjs"),A=require("./heading-DAkjw2Am.cjs"),j=require("./linkcard-BMJvjo7R.cjs"),M=require("./radio-group-DRNGFfUh.cjs"),N=require("./tabs-gRjrFqeG.cjs"),P=require("./select-o6iuy9hC.cjs"),F=require("./timepicker-Ce9hXP0B.cjs");exports.PktAccordion=l.r,exports.PktAccordionItem=l.n,exports.PktAlert=n.n,exports.PktBackLink=v.n,exports.PktBreadcrumbs=y.t,exports.PktButton=_.n,exports.PktCalendar=m.n,exports.PktCard=i.n,exports.PktCheckbox=a.n,exports.PktCheckboxGroup=S.n,exports.PktCombobox=g.n,exports.PktConsent=t.n,exports.PktDateTags=T.a,exports.PktDatepicker=T.t,Object.defineProperty(exports,"PktFileUpload",{enumerable:!0,get:function(){return C.n}}),exports.PktFooter=E.n,exports.PktFooterSimple=E.t,exports.PktHeader=r.t,exports.PktHeaderGlobal=r.n,exports.PktHeaderMenu=k.n,exports.PktHeaderService=r.r,exports.PktHeaderUserMenu=r.i,exports.PktHeading=A.n,exports.PktHelptext=x.n,exports.PktIcon=s.n,exports.PktInputWrapper=u.n,exports.PktLink=D.n,exports.PktLinkCard=j.n,exports.PktLoader=c.n,exports.PktMessagebox=p.n,exports.PktModal=w.n,exports.PktProgressbar=h.n,exports.PktRadioButton=o.n,exports.PktRadiobutton=o.n,exports.PktRadioGroup=M.n,exports.PktSearchInput=O.n,exports.PktSelect=P.n,exports.PktTabItem=N.n,exports.PktTabs=N.r,exports.PktTag=b.n,exports.PktTextarea=d.n,exports.PktTextinput=f.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,37 +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 "./radiobutton-
|
|
8
|
-
import { n as m } from "./icon-
|
|
9
|
-
import { n as h } from "./loader-
|
|
10
|
-
import { n as g, r as _ } from "./accordion-
|
|
11
|
-
import { n as v } from "./input-wrapper-
|
|
12
|
-
import { n as y } from "./textarea-
|
|
13
|
-
import { n as b } from "./
|
|
14
|
-
import { n as x } from "./
|
|
15
|
-
import { n as S } from "./
|
|
16
|
-
import { n as C } from "./
|
|
17
|
-
import { n as w } from "./
|
|
18
|
-
import {
|
|
19
|
-
import { n as E } from "./
|
|
20
|
-
import {
|
|
21
|
-
import { n as O } from "./
|
|
22
|
-
import { n as k } from "./
|
|
23
|
-
import { n as A } from "./
|
|
24
|
-
import { n as j } from "./
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import { n as I } from "./
|
|
28
|
-
import { n as L } from "./
|
|
29
|
-
import { n as R } from "./searchinput-
|
|
30
|
-
import { n as z } from "./header-menu-
|
|
31
|
-
import { n as B } from "./heading-
|
|
32
|
-
import { n as V } from "./linkcard-
|
|
33
|
-
import { n as H } from "./radio-group-
|
|
34
|
-
import { n as U, r as W } from "./tabs-
|
|
35
|
-
import { n as G } from "./select-
|
|
36
|
-
import { t as K } from "./timepicker-
|
|
37
|
-
export { _ as PktAccordion, g as PktAccordionItem, o as PktAlert,
|
|
1
|
+
import { a as e, i as t, o as n, r, s as i } from "./element-DLgZkx5L.js";
|
|
2
|
+
import { n as a } from "./consent-CeJKY2EB.js";
|
|
3
|
+
import { n as o } from "./alert-UbQzzkXb.js";
|
|
4
|
+
import { i as s, n as c, r as l, t as u } from "./header-C_BUBeOQ.js";
|
|
5
|
+
import { n as d } from "./card-CKu696QC.js";
|
|
6
|
+
import { n as f } from "./checkbox-BLmQSdWB.js";
|
|
7
|
+
import { n as p } from "./radiobutton-BN67oAvC.js";
|
|
8
|
+
import { n as m } from "./icon-C82IxnSO.js";
|
|
9
|
+
import { n as h } from "./loader-lDVe6rUf.js";
|
|
10
|
+
import { n as g, r as _ } from "./accordion-C5cu1xXT.js";
|
|
11
|
+
import { n as v } from "./input-wrapper-DowJHbGF.js";
|
|
12
|
+
import { n as y } from "./textarea-DP7GVL2c.js";
|
|
13
|
+
import { n as b } from "./textinput-Dhwotaxv.js";
|
|
14
|
+
import { n as x } from "./messagebox-C8dsqW20.js";
|
|
15
|
+
import { n as S } from "./calendar-CYsQEfZn.js";
|
|
16
|
+
import { n as C } from "./progressbar-CfCc2zhp.js";
|
|
17
|
+
import { n as w } from "./combobox-KnYdXXRm.js";
|
|
18
|
+
import { n as T } from "./button-BJ6QLwxJ.js";
|
|
19
|
+
import { n as E } from "./backlink-bbYpIZJI.js";
|
|
20
|
+
import { t as D } from "./breadcrumbs-D7gddV5F.js";
|
|
21
|
+
import { n as O } from "./tag-CtdOrK18.js";
|
|
22
|
+
import { n as k } from "./helptext-CL1vxEaL.js";
|
|
23
|
+
import { n as A } from "./checkbox-group-DFKzbaHC.js";
|
|
24
|
+
import { n as j } from "./fileupload-BrSWPUcy.js";
|
|
25
|
+
import { n as M } from "./modal-D389hSbe.js";
|
|
26
|
+
import { a as N, t as P } from "./datepicker-Cco0rRLa.js";
|
|
27
|
+
import { n as F, t as I } from "./footer-DQq09VjI.js";
|
|
28
|
+
import { n as L } from "./link-D9kjggXZ.js";
|
|
29
|
+
import { n as R } from "./searchinput-B26-Xp00.js";
|
|
30
|
+
import { n as z } from "./header-menu-BV0XlRez.js";
|
|
31
|
+
import { n as B } from "./heading-CMZmPEL9.js";
|
|
32
|
+
import { n as V } from "./linkcard-BEmG-2lN.js";
|
|
33
|
+
import { n as H } from "./radio-group-CSs8YnEO.js";
|
|
34
|
+
import { n as U, r as W } from "./tabs-Bu9PP33-.js";
|
|
35
|
+
import { n as G } from "./select-DZftfjQt.js";
|
|
36
|
+
import { t as K } from "./timepicker-DxwQ7-Bl.js";
|
|
37
|
+
export { _ as PktAccordion, g as PktAccordionItem, o as PktAlert, E as PktBackLink, D as PktBreadcrumbs, T as PktButton, S as PktCalendar, d as PktCard, f as PktCheckbox, A as PktCheckboxGroup, w as PktCombobox, a as PktConsent, N as PktDateTags, P as PktDatepicker, j as PktFileUpload, F as PktFooter, I as PktFooterSimple, u as PktHeader, c as PktHeaderGlobal, z as PktHeaderMenu, l as PktHeaderService, s as PktHeaderUserMenu, B as PktHeading, k as PktHelptext, m as PktIcon, v as PktInputWrapper, L as PktLink, V as PktLinkCard, h as PktLoader, x as PktMessagebox, M as PktModal, C as PktProgressbar, p as PktRadioButton, p as PktRadiobutton, H as PktRadioGroup, R as PktSearchInput, G as PktSelect, U as PktTabItem, W as PktTabs, O as PktTag, y as PktTextarea, b 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-BNu6kOOn.cjs");exports.PktInputWrapper=e.n,exports.default=e.t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as PktInputWrapper, t as default } from "./input-wrapper-
|
|
1
|
+
export { n as PktInputWrapper, t as default } from "./input-wrapper-DowJHbGF.js";
|
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-DqPFlWxz.cjs");exports.PktLink=e.n,exports.default=e.t;
|
package/dist/pkt-link.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as PktLink, t as default } from "./link-
|
|
1
|
+
export { n as PktLink, t as default } from "./link-D9kjggXZ.js";
|
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-BMJvjo7R.cjs");exports.PktLinkCard=e.n,exports.default=e.t;
|
package/dist/pkt-linkcard.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as PktLinkCard, t as default } from "./linkcard-
|
|
1
|
+
export { n as PktLinkCard, t as default } from "./linkcard-BEmG-2lN.js";
|
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-HrH4JonS.cjs");exports.PktListbox=e.n,exports.default=e.t;
|
package/dist/pkt-listbox.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as PktListbox, t as default } from "./listbox-
|
|
1
|
+
export { n as PktListbox, t as default } from "./listbox-DAvIBH4P.js";
|
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-C4fbS8vr.cjs");exports.PktLoader=e.n,exports.default=e.t;
|
package/dist/pkt-loader.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as PktLoader, t as default } from "./loader-
|
|
1
|
+
export { n as PktLoader, t as default } from "./loader-lDVe6rUf.js";
|
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-DFaDuvHQ.cjs");exports.PktMessagebox=e.n,exports.default=e.t;
|
package/dist/pkt-messagebox.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as PktMessagebox, t as default } from "./messagebox-
|
|
1
|
+
export { n as PktMessagebox, t as default } from "./messagebox-C8dsqW20.js";
|
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-EgQREcb8.cjs");exports.PktModal=e.n,exports.default=e.t;
|
package/dist/pkt-modal.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as PktModal, t as default } from "./modal-
|
|
1
|
+
export { n as PktModal, t as default } from "./modal-D389hSbe.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./element-with-slot-
|
|
1
|
+
const e=require("./element-with-slot-CeKuRE3_.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-BdqIhC1Z.cjs");exports.PktProgressbar=e.n,exports.default=e.t;
|
package/dist/pkt-progressbar.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as PktProgressbar, t as default } from "./progressbar-
|
|
1
|
+
export { n as PktProgressbar, t as default } from "./progressbar-CfCc2zhp.js";
|
package/dist/pkt-radio-group.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./radio-group-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./radio-group-DRNGFfUh.cjs");exports.PktRadioGroup=e.n,exports.default=e.t;
|
package/dist/pkt-radio-group.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as PktRadioGroup, t as default } from "./radio-group-
|
|
1
|
+
export { n as PktRadioGroup, t as default } from "./radio-group-CSs8YnEO.js";
|
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-Be66H6On.cjs");exports.PktRadioButton=e.n,exports.default=e.t;
|
package/dist/pkt-radiobutton.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as PktRadioButton, t as default } from "./radiobutton-
|
|
1
|
+
export { n as PktRadioButton, t as default } from "./radiobutton-BN67oAvC.js";
|
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-Trn6uU2J.cjs");exports.PktSearchInput=e.n,exports.default=e.t;
|
package/dist/pkt-searchinput.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as PktSearchInput, t as default } from "./searchinput-
|
|
1
|
+
export { n as PktSearchInput, t as default } from "./searchinput-B26-Xp00.js";
|
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-o6iuy9hC.cjs");exports.PktSelect=e.n,exports.default=e.t;
|
package/dist/pkt-select.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as PktSelect, t as default } from "./select-
|
|
1
|
+
export { n as PktSelect, t as default } from "./select-DZftfjQt.js";
|
package/dist/pkt-tabs.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./tabs-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./tabs-gRjrFqeG.cjs");exports.PktTabItem=e.n,exports.PktTabs=e.r,exports.default=e.t;
|
package/dist/pkt-tabs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as PktTabItem, r as PktTabs, t as default } from "./tabs-
|
|
1
|
+
export { n as PktTabItem, r as PktTabs, t as default } from "./tabs-Bu9PP33-.js";
|
package/dist/pkt-tag.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./tag-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./tag-BgHEzLM3.cjs");exports.PktTag=e.n,exports.default=e.t;
|
package/dist/pkt-tag.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as PktTag, t as default } from "./tag-
|
|
1
|
+
export { n as PktTag, t as default } from "./tag-CtdOrK18.js";
|
package/dist/pkt-textarea.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./textarea-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./textarea-Cc2aQLbm.cjs");exports.PktTextarea=e.n,exports.default=e.t;
|
package/dist/pkt-textarea.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as PktTextarea, t as default } from "./textarea-
|
|
1
|
+
export { n as PktTextarea, t as default } from "./textarea-DP7GVL2c.js";
|
package/dist/pkt-textinput.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./textinput-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./textinput-B6FPNOJB.cjs");exports.PktTextinput=e.n,exports.default=e.t;
|
package/dist/pkt-textinput.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as PktTextinput, t as default } from "./textinput-
|
|
1
|
+
export { n as PktTextinput, t as default } from "./textinput-Dhwotaxv.js";
|
package/dist/pkt-timepicker.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./timepicker-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./timepicker-Ce9hXP0B.cjs");exports.PktTimepicker=e.t;
|
package/dist/pkt-timepicker.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as PktTimepicker } from "./timepicker-
|
|
1
|
+
export { t as PktTimepicker } from "./timepicker-DxwQ7-Bl.js";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const e=require("./element-CEarCnHH.cjs"),t=require("./class-map-C82GtM1w.cjs"),n=require("./format-B8meU8Tm.cjs");require("./shared-types-BvRk9kiK.cjs");const r=require("./if-defined-Ci4ZQsgL.cjs"),i=require("./ref-B6p6mQkO.cjs"),a=require("./utils-63cRpWut.cjs");var o={ariaLive:`polite`,role:`progressbar`,skin:`dark-blue`,statusPlacement:`following`,statusType:`none`,titlePosition:`left`,valueCurrent:0,valueMax:100,valueMin:0},s=`important`,c=` !`+s,l=e.f(class extends e.p{constructor(t){if(super(t),t.type!==e.m.ATTRIBUTE||t.name!==`style`||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return r==null?t:t+`${n=n.includes(`-`)?n:n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,`-$&`).toLowerCase()}:${r};`},``)}update(t,[n]){let{style:r}=t.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(n)),this.render(n);for(let e of this.ft)n[e]??(this.ft.delete(e),e.includes(`-`)?r.removeProperty(e):r[e]=null);for(let e in n){let t=n[e];if(t!=null){this.ft.add(e);let n=typeof t==`string`&&t.endsWith(c);e.includes(`-`)||n?r.setProperty(e,n?t.slice(0,-11):t,n?s:``):r[e]=t}}return e.g}}),u=class extends e.t{constructor(...e){super(...e),this.ariaLabel=null,this.ariaLabelledby=null,this.ariaValueText=null,this.ariaLive=o.ariaLive,this.id=a.n(),this.role=o.role,this.skin=o.skin,this.statusPlacement=o.statusPlacement,this.statusType=o.statusType,this.title=``,this.titlePosition=o.titlePosition,this.valueCurrent=o.valueCurrent,this.valueMax=o.valueMax,this.valueMin=o.valueMin,this.labelWidth=0,this.progressbarId=this.id,this.resolvedRole=o.role,this.labelRef=i.t(),this.containerRef=i.t()}willUpdate(e){super.willUpdate(e),this.id&&(this.progressbarId=this.id);let t=this.getAttribute(`role`);t?(this.resolvedRole=t,this.removeAttribute(`role`)):this.role&&(this.resolvedRole=this.role)}updated(e){if(super.updated(e),e.has(`valueCurrent`)&&this.labelRef.value){let e=this.labelRef.value.getBoundingClientRect().width||0;e!==this.labelWidth&&(this.labelWidth=e,this.containerRef.value?.style.setProperty(`--pkt-progress-label-width`,`${e}px`))}}render(){let a=this.statusType!==`none`,o=this.valueMax-this.valueMin,s=this.valueCurrent-this.valueMin,c=Math.round(s/o*100),u=n.t(this.pktStrings.get(`progressbar`).fraction,{current:s,total:o}),d=this.statusType===`fraction`&&!this.ariaValueText?u:this.ariaValueText||``,f=this.ariaLabel?void 0:this.ariaLabelledby||`${this.progressbarId}-title`,p=t.t({"pkt-progressbar__bar":!0,[`pkt-progressbar__bar--${this.skin}`]:!!this.skin}),m=t.t({"pkt-progressbar__title":!0,"pkt-progressbar__title-center":this.titlePosition===`center`}),h=t.t({"pkt-progressbar__status":!0,"pkt-progressbar__status--center":this.statusPlacement===`center`}),g=t.t({"pkt-progressbar__status-placement--following":this.statusPlacement===`following`,"pkt-progressbar__status-placement--center":this.statusPlacement===`center`,"pkt-progressbar__status-placement--left":this.statusPlacement===`left`});return e._`<div
|
|
2
|
+
role=${this.resolvedRole}
|
|
3
|
+
aria-live=${r.t(this.ariaLive||void 0)}
|
|
4
|
+
aria-atomic="true"
|
|
5
|
+
aria-valuenow=${this.valueCurrent}
|
|
6
|
+
aria-valuemin=${this.valueMin}
|
|
7
|
+
aria-valuemax=${this.valueMax}
|
|
8
|
+
aria-valuetext=${r.t(d||void 0)}
|
|
9
|
+
aria-label=${r.t(this.ariaLabel||void 0)}
|
|
10
|
+
aria-labelledby=${r.t(f)}
|
|
11
|
+
class="pkt-progressbar"
|
|
12
|
+
>
|
|
13
|
+
<div
|
|
14
|
+
${i.n(this.containerRef)}
|
|
15
|
+
class="pkt-progressbar__container"
|
|
16
|
+
style=${l({"--pkt-progress-label-width":`${this.labelWidth}px`,"--pkt-progress-width":`${c}%`})}
|
|
17
|
+
>
|
|
18
|
+
${this.title?e._`<p id=${`${this.progressbarId}-title`} class=${m}>${this.title}</p>`:e.h}
|
|
19
|
+
|
|
20
|
+
<div class="pkt-progressbar__bar-wrapper">
|
|
21
|
+
<div class=${p}></div>
|
|
22
|
+
</div>
|
|
23
|
+
|
|
24
|
+
${a?e._`<div class=${h}>
|
|
25
|
+
<span class=${g} ${i.n(this.labelRef)}>
|
|
26
|
+
${this.statusType===`percentage`?`${c}%`:u}
|
|
27
|
+
</span>
|
|
28
|
+
</div>`:e.h}
|
|
29
|
+
</div>
|
|
30
|
+
</div>`}};e.n([e.u({type:String})],u.prototype,`ariaLabel`,void 0),e.n([e.u({type:String,reflect:!0})],u.prototype,`ariaLabelledby`,void 0),e.n([e.u({type:String,reflect:!0})],u.prototype,`ariaValueText`,void 0),e.n([e.u({type:String})],u.prototype,`ariaLive`,void 0),e.n([e.u({type:String,reflect:!0})],u.prototype,`id`,void 0),e.n([e.u({type:String})],u.prototype,`role`,void 0),e.n([e.u({type:String})],u.prototype,`skin`,void 0),e.n([e.u({type:String})],u.prototype,`statusPlacement`,void 0),e.n([e.u({type:String})],u.prototype,`statusType`,void 0),e.n([e.u({type:String,reflect:!0})],u.prototype,`title`,void 0),e.n([e.u({type:String})],u.prototype,`titlePosition`,void 0),e.n([e.u({type:Number,reflect:!0})],u.prototype,`valueCurrent`,void 0),e.n([e.u({type:Number})],u.prototype,`valueMax`,void 0),e.n([e.u({type:Number})],u.prototype,`valueMin`,void 0),e.n([e.l()],u.prototype,`progressbarId`,void 0),e.n([e.l()],u.prototype,`resolvedRole`,void 0);try{e.d(`pkt-progressbar`)(u)}catch{console.warn(`Forsøker å definere <pkt-progressbar>, men den er allerede definert`)}var d=u;Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return d}});
|
|
@@ -1,11 +1,22 @@
|
|
|
1
|
-
import { _ as e, d as t, f as n, g as r, h as i, l as a, m as o, n as s, p as c, t as l, u } from "./element-
|
|
2
|
-
import { t as d } from "./class-map-
|
|
3
|
-
import "./
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import { n as h } from "./
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { _ as e, d as t, f as n, g as r, h as i, l as a, m as o, n as s, p as c, t as l, u } from "./element-DLgZkx5L.js";
|
|
2
|
+
import { t as d } from "./class-map-BDwVSgLb.js";
|
|
3
|
+
import { t as f } from "./format-BTeSVkED.js";
|
|
4
|
+
import "./shared-types-A6iGIX-f.js";
|
|
5
|
+
import { t as p } from "./if-defined-DiYi2v_Q.js";
|
|
6
|
+
import { n as m, t as h } from "./ref-BAegS9BR.js";
|
|
7
|
+
import { n as g } from "./utils-BwF4QSrq.js";
|
|
8
|
+
//#region ../../shared-types/progressbar.ts
|
|
9
|
+
var _ = {
|
|
10
|
+
ariaLive: "polite",
|
|
11
|
+
role: "progressbar",
|
|
12
|
+
skin: "dark-blue",
|
|
13
|
+
statusPlacement: "following",
|
|
14
|
+
statusType: "none",
|
|
15
|
+
titlePosition: "left",
|
|
16
|
+
valueCurrent: 0,
|
|
17
|
+
valueMax: 100,
|
|
18
|
+
valueMin: 0
|
|
19
|
+
}, v = "important", y = " !" + v, b = n(class extends c {
|
|
9
20
|
constructor(e) {
|
|
10
21
|
if (super(e), e.type !== o.ATTRIBUTE || e.name !== "style" || e.strings?.length > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
|
|
11
22
|
}
|
|
@@ -23,15 +34,15 @@ var g = "important", _ = " !" + g, v = n(class extends c {
|
|
|
23
34
|
let r = t[e];
|
|
24
35
|
if (r != null) {
|
|
25
36
|
this.ft.add(e);
|
|
26
|
-
let t = typeof r == "string" && r.endsWith(
|
|
27
|
-
e.includes("-") || t ? n.setProperty(e, t ? r.slice(0, -11) : r, t ?
|
|
37
|
+
let t = typeof r == "string" && r.endsWith(y);
|
|
38
|
+
e.includes("-") || t ? n.setProperty(e, t ? r.slice(0, -11) : r, t ? v : "") : n[e] = r;
|
|
28
39
|
}
|
|
29
40
|
}
|
|
30
41
|
return r;
|
|
31
42
|
}
|
|
32
|
-
}),
|
|
33
|
-
constructor() {
|
|
34
|
-
super(), this.ariaLabel = null, this.ariaLabelledby = null, this.ariaValueText = null, this.ariaLive =
|
|
43
|
+
}), x = class extends l {
|
|
44
|
+
constructor(...e) {
|
|
45
|
+
super(...e), this.ariaLabel = null, this.ariaLabelledby = null, this.ariaValueText = null, this.ariaLive = _.ariaLive, this.id = g(), this.role = _.role, this.skin = _.skin, this.statusPlacement = _.statusPlacement, this.statusType = _.statusType, this.title = "", this.titlePosition = _.titlePosition, this.valueCurrent = _.valueCurrent, this.valueMax = _.valueMax, this.valueMin = _.valueMin, this.labelWidth = 0, this.progressbarId = this.id, this.resolvedRole = _.role, this.labelRef = h(), this.containerRef = h();
|
|
35
46
|
}
|
|
36
47
|
willUpdate(e) {
|
|
37
48
|
super.willUpdate(e), this.id && (this.progressbarId = this.id);
|
|
@@ -45,37 +56,39 @@ var g = "important", _ = " !" + g, v = n(class extends c {
|
|
|
45
56
|
}
|
|
46
57
|
}
|
|
47
58
|
render() {
|
|
48
|
-
let t = this.statusType !== "none", n = this.valueMax - this.valueMin, r = this.valueCurrent
|
|
59
|
+
let t = this.statusType !== "none", n = this.valueMax - this.valueMin, r = this.valueCurrent - this.valueMin, a = Math.round(r / n * 100), o = f(this.pktStrings.get("progressbar").fraction, {
|
|
60
|
+
current: r,
|
|
61
|
+
total: n
|
|
62
|
+
}), s = this.statusType === "fraction" && !this.ariaValueText ? o : this.ariaValueText || "", c = this.ariaLabel ? void 0 : this.ariaLabelledby || `${this.progressbarId}-title`, l = d({
|
|
49
63
|
"pkt-progressbar__bar": !0,
|
|
50
64
|
[`pkt-progressbar__bar--${this.skin}`]: !!this.skin
|
|
51
65
|
}), u = d({
|
|
52
66
|
"pkt-progressbar__title": !0,
|
|
53
67
|
"pkt-progressbar__title-center": this.titlePosition === "center"
|
|
54
|
-
}),
|
|
68
|
+
}), h = d({
|
|
55
69
|
"pkt-progressbar__status": !0,
|
|
56
70
|
"pkt-progressbar__status--center": this.statusPlacement === "center"
|
|
57
|
-
}),
|
|
71
|
+
}), g = d({
|
|
58
72
|
"pkt-progressbar__status-placement--following": this.statusPlacement === "following",
|
|
59
73
|
"pkt-progressbar__status-placement--center": this.statusPlacement === "center",
|
|
60
74
|
"pkt-progressbar__status-placement--left": this.statusPlacement === "left"
|
|
61
75
|
});
|
|
62
76
|
return e`<div
|
|
63
|
-
${p(this.progressBarRef)}
|
|
64
77
|
role=${this.resolvedRole}
|
|
65
|
-
aria-live=${
|
|
78
|
+
aria-live=${p(this.ariaLive || void 0)}
|
|
66
79
|
aria-atomic="true"
|
|
67
80
|
aria-valuenow=${this.valueCurrent}
|
|
68
81
|
aria-valuemin=${this.valueMin}
|
|
69
82
|
aria-valuemax=${this.valueMax}
|
|
70
|
-
aria-valuetext=${
|
|
71
|
-
aria-label=${
|
|
72
|
-
aria-labelledby=${
|
|
83
|
+
aria-valuetext=${p(s || void 0)}
|
|
84
|
+
aria-label=${p(this.ariaLabel || void 0)}
|
|
85
|
+
aria-labelledby=${p(c)}
|
|
73
86
|
class="pkt-progressbar"
|
|
74
87
|
>
|
|
75
88
|
<div
|
|
76
|
-
${
|
|
89
|
+
${m(this.containerRef)}
|
|
77
90
|
class="pkt-progressbar__container"
|
|
78
|
-
style=${
|
|
91
|
+
style=${b({
|
|
79
92
|
"--pkt-progress-label-width": `${this.labelWidth}px`,
|
|
80
93
|
"--pkt-progress-width": `${a}%`
|
|
81
94
|
})}
|
|
@@ -86,38 +99,38 @@ var g = "important", _ = " !" + g, v = n(class extends c {
|
|
|
86
99
|
<div class=${l}></div>
|
|
87
100
|
</div>
|
|
88
101
|
|
|
89
|
-
${t ? e`<div class=${
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
102
|
+
${t ? e`<div class=${h}>
|
|
103
|
+
<span class=${g} ${m(this.labelRef)}>
|
|
104
|
+
${this.statusType === "percentage" ? `${a}%` : o}
|
|
105
|
+
</span>
|
|
106
|
+
</div>` : i}
|
|
94
107
|
</div>
|
|
95
108
|
</div>`;
|
|
96
109
|
}
|
|
97
110
|
};
|
|
98
|
-
s([u({ type: String })],
|
|
111
|
+
s([u({ type: String })], x.prototype, "ariaLabel", void 0), s([u({
|
|
99
112
|
type: String,
|
|
100
113
|
reflect: !0
|
|
101
|
-
})],
|
|
114
|
+
})], x.prototype, "ariaLabelledby", void 0), s([u({
|
|
102
115
|
type: String,
|
|
103
116
|
reflect: !0
|
|
104
|
-
})],
|
|
117
|
+
})], x.prototype, "ariaValueText", void 0), s([u({ type: String })], x.prototype, "ariaLive", void 0), s([u({
|
|
105
118
|
type: String,
|
|
106
119
|
reflect: !0
|
|
107
|
-
})],
|
|
120
|
+
})], x.prototype, "id", void 0), s([u({ type: String })], x.prototype, "role", void 0), s([u({ type: String })], x.prototype, "skin", void 0), s([u({ type: String })], x.prototype, "statusPlacement", void 0), s([u({ type: String })], x.prototype, "statusType", void 0), s([u({
|
|
108
121
|
type: String,
|
|
109
122
|
reflect: !0
|
|
110
|
-
})],
|
|
123
|
+
})], x.prototype, "title", void 0), s([u({ type: String })], x.prototype, "titlePosition", void 0), s([u({
|
|
111
124
|
type: Number,
|
|
112
125
|
reflect: !0
|
|
113
|
-
})],
|
|
126
|
+
})], x.prototype, "valueCurrent", void 0), s([u({ type: Number })], x.prototype, "valueMax", void 0), s([u({ type: Number })], x.prototype, "valueMin", void 0), s([a()], x.prototype, "progressbarId", void 0), s([a()], x.prototype, "resolvedRole", void 0);
|
|
114
127
|
try {
|
|
115
|
-
t("pkt-progressbar")(
|
|
128
|
+
t("pkt-progressbar")(x);
|
|
116
129
|
} catch {
|
|
117
130
|
console.warn("Forsøker å definere <pkt-progressbar>, men den er allerede definert");
|
|
118
131
|
}
|
|
119
132
|
//#endregion
|
|
120
133
|
//#region src/components/progressbar/index.ts
|
|
121
|
-
var
|
|
134
|
+
var S = x;
|
|
122
135
|
//#endregion
|
|
123
|
-
export {
|
|
136
|
+
export { x as n, S as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as e, l as t, n, u as r } from "./element-
|
|
2
|
-
import { r as i } from "./radiobutton-
|
|
3
|
-
import { i as a, n as o, t as s } from "./option-group-element-
|
|
1
|
+
import { d as e, l as t, n, u as r } from "./element-DLgZkx5L.js";
|
|
2
|
+
import { r as i } from "./radiobutton-BN67oAvC.js";
|
|
3
|
+
import { i as a, n as o, t as s } from "./option-group-element-CB0Qqev_.js";
|
|
4
4
|
import { t as c } from "./provide-_MnlMGnw.js";
|
|
5
5
|
//#region src/components/radio-group/radio-group.ts
|
|
6
6
|
var l = class extends s {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./element-
|
|
1
|
+
const e=require("./element-CEarCnHH.cjs"),t=require("./radiobutton-Be66H6On.cjs"),n=require("./option-group-element-DhYJmGgW.cjs"),r=require("./provide-Cz18sYug.cjs");var i=class extends n.t{constructor(...e){super(...e),this.optionSelector=`pkt-radiobutton`,this.groupContext={name:``,hasTile:!1,hasError:!1,required:!1},this.storedValue=null}get value(){let e=this.options().find(n.n);return e?n.i(e):``}set value(e){let t=this.value;this.storedValue=e??``,this.applyStoredValue(this.options()),this.requestUpdate(`value`,t)}get hasStoredValue(){return this.storedValue!==null}storeCurrentValue(){this.storedValue=this.value}applyStoredValue(e){e.forEach(e=>{let t=this.storedValue!==``&&n.i(e)===this.storedValue;n.n(e)!==t&&(e.checked=t)})}createGroupContext(){return{...super.createGroupContext(),required:this.required}}};e.n([r.t({context:t.r}),e.l()],i.prototype,`groupContext`,void 0),e.n([e.u({type:String})],i.prototype,`value`,null);try{e.d(`pkt-radio-group`)(i)}catch{console.warn(`Forsøker å definere <pkt-radio-group>, men den er allerede definert`)}var a=i;Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return a}});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as e, d as t, h as n, l as r, n as i, u as a } from "./element-
|
|
2
|
-
import { t as o } from "./class-map-
|
|
1
|
+
import { _ as e, d as t, h as n, l as r, n as i, u as a } from "./element-DLgZkx5L.js";
|
|
2
|
+
import { t as o } from "./class-map-BDwVSgLb.js";
|
|
3
3
|
import "./shared-types-A6iGIX-f.js";
|
|
4
4
|
import { n as s, t as c } from "./consume-Bp12si68.js";
|
|
5
|
-
import { n as l, t as u } from "./ref-
|
|
6
|
-
import { t as d } from "./input-element-
|
|
5
|
+
import { n as l, t as u } from "./ref-BAegS9BR.js";
|
|
6
|
+
import { t as d } from "./input-element-De40zUox.js";
|
|
7
7
|
//#region ../../shared-types/radiobutton.ts
|
|
8
8
|
var f = {
|
|
9
9
|
defaultChecked: !1,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e=require("./element-
|
|
1
|
+
const e=require("./element-CEarCnHH.cjs"),t=require("./class-map-C82GtM1w.cjs");require("./shared-types-BvRk9kiK.cjs");const n=require("./consume-kEjgTrAp.cjs"),r=require("./ref-B6p6mQkO.cjs"),i=require("./input-element-2LHxo0em.cjs");var a={defaultChecked:!1,hasTile:!1,disabled:!1,hasError:!1,requiredTag:!1,optionalTag:!1},o=n.n(Symbol(`pkt-radio-group-context`)),s=class extends i.t{constructor(...e){super(...e),this.inputRef=r.t(),this.value=``,this.checkHelptext=null,this.defaultChecked=a.defaultChecked,this.hasTile=a.hasTile,this.checked=null,this.type=`radio`,this.inputSize=void 0,this.tagText=null,this.optionalTag=a.optionalTag,this.requiredTag=a.requiredTag,this._checked=!1}connectedCallback(){super.connectedCallback()}attributeChangedCallback(e,t,n){e===`checked`&&(this._checked=this.checked===``||this.checked===`true`||this.checked===!0),super.attributeChangedCallback(e,t,n)}render(){let n=this.hasTile||!!this.groupContext?.hasTile,i=t.t({"pkt-input-check__input":!0,"pkt-input-check__input--tile":n,"pkt-input-check__input--tile-disabled":this.isDisabled&&n}),a=t.t({"pkt-input-check__input-checkbox":!0,"pkt-input-check__input-checkbox--error":this.hasError||!!this.groupContext?.hasError}),o=t.t({"pkt-input-check__input-label":!0,"pkt-input-check__input-label--disabled":this.isDisabled,"pkt-sr-only":this.hideLabel}),s=`pkt-tag pkt-tag--small pkt-tag--thin-text`,c=this.pktStrings.get(`forms`),l=()=>e._`
|
|
2
2
|
${this.tagText?e._`<span class=${s+` pkt-tag--gray`}>${this.tagText}</span>`:e.h}
|
|
3
3
|
${this.optionalTag?e._`<span class=${s+` pkt-tag--blue-light`}
|
|
4
4
|
>${this.optionalText??c.optional}</span
|