@oslokommune/punkt-elements 19.19.1 → 20.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +67 -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-BAaZIR3e.js → alert-CA1fDbyc.js} +5 -5
- package/dist/{alert-Dy5N7qK-.cjs → alert-DkyTTo7S.cjs} +1 -1
- 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-Dlkyj0ns.js → backlink-CDBRcaAu.js} +3 -3
- package/dist/{backlink-BnWruRuj.cjs → backlink-CXOxMeyt.cjs} +1 -1
- package/dist/{breadcrumbs-Bfv8W2CF.js → breadcrumbs-5oUaCef3.js} +2 -2
- package/dist/{breadcrumbs-CyWtnx2B.cjs → breadcrumbs-zfUto2U5.cjs} +1 -1
- package/dist/{button-CF9k3ARf.js → button-Bswo1C0M.js} +5 -5
- package/dist/{button-BBFI3FuT.cjs → button-bVWAX98x.cjs} +1 -1
- package/dist/{calendar-BX3n3vhs.js → calendar-BOd-9PDd.js} +3 -3
- package/dist/{calendar-Dds9KFiE.cjs → calendar-CDTCgTJn.cjs} +1 -1
- package/dist/{card-Ddu0sQ0f.js → card-DH1kPnyi.js} +44 -42
- package/dist/card-njWrvrHm.cjs +67 -0
- package/dist/{checkbox-D9-KugOh.js → checkbox-DIJbuqWm.js} +5 -5
- package/dist/{checkbox-group-Dz1ypmbU.js → checkbox-group-DLLbWgQb.js} +3 -3
- package/dist/{checkbox-group-BlBgrzKG.cjs → checkbox-group-Kua6HuRE.cjs} +1 -1
- package/dist/{checkbox-B8foyiOW.cjs → checkbox-iMOdzpJ_.cjs} +2 -2
- 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-BwAxmoG9.cjs} +1 -1
- package/dist/{combobox-BAkblu9M.js → combobox-H5FLG8BV.js} +12 -12
- package/dist/components/card/card.d.ts +0 -10
- package/dist/components/card/index.d.ts +2 -2
- package/dist/components/link/link.d.ts +1 -1
- package/dist/components/linkcard/linkcard.d.ts +0 -1
- package/dist/components/progressbar/progressbar.d.ts +4 -18
- package/dist/components/tabs/tabitem.d.ts +2 -1
- package/dist/components/tag/tag.d.ts +4 -2
- package/dist/{consent-DNHRe0zV.cjs → consent-UkinU27V.cjs} +1 -1
- package/dist/{consent-BTw6uqFf.js → consent-p-0n2b9x.js} +2 -2
- package/dist/{datepicker-C7F1Yc5N.cjs → datepicker-COar3rRT.cjs} +1 -1
- package/dist/{datepicker-9dmdHweu.js → datepicker-ZSwWg8xW.js} +11 -11
- 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-M66Pd-QJ.cjs → fileupload-DXJtAagE.cjs} +1 -1
- package/dist/{fileupload-CEwnpxZj.js → fileupload-vPDmtXiM.js} +8 -8
- package/dist/{footer-HFL2sjAY.cjs → footer-CpE05IW2.cjs} +1 -1
- package/dist/{footer-DZ4aA6fj.js → footer-D8t0PCPC.js} +4 -4
- package/dist/{header-BYNzxXCo.js → header-Bo8uvddg.js} +11 -11
- package/dist/{header-BqheRQpR.cjs → header-DzYKgl-k.cjs} +1 -1
- package/dist/{header-menu-DxOSBiTJ.js → header-menu-BrjsNjBH.js} +4 -4
- package/dist/{header-menu-De2DNAXd.cjs → header-menu-Dq9lwNr1.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-BVYv8Lm9.js → helptext-BFQzrOw4.js} +4 -4
- package/dist/{helptext-BbrFE48Y.cjs → helptext-Bse1LpRd.cjs} +1 -1
- package/dist/icon-5A378_yh.cjs +1 -0
- package/dist/{icon-CUU42bZ0.js → icon-C1oCGwEe.js} +2 -2
- 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-C_Rzwxx7.cjs} +2 -2
- package/dist/{input-wrapper-CHwWQgZP.js → input-wrapper-DkpJS1hR.js} +7 -7
- package/dist/{link-a1ZK4J1j.cjs → link-B7t4iOKk.cjs} +3 -3
- package/dist/{link-BU6t5Tt9.js → link-DZgG_8Ni.js} +15 -10
- package/dist/linkcard-DIG6VYpl.cjs +15 -0
- package/dist/linkcard-Dr-r8jBO.js +60 -0
- 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-Y8V3Q82X.js → loader-CFidlqSG.js} +4 -4
- package/dist/{loader-DwGMavG7.cjs → loader-DTIrOtTo.cjs} +1 -1
- package/dist/messagebox-BLYx3AL7.cjs +16 -0
- package/dist/{messagebox-wJcXW5hI.js → messagebox-B_07P0QA.js} +25 -16
- package/dist/{modal-C5AiVm5g.cjs → modal-BvTfLfFq.cjs} +1 -1
- package/dist/{modal-BafCTC4M.js → modal-CA_M2Ix6.js} +6 -6
- package/dist/{option-group-element-CWjgrFwS.cjs → option-group-element-CVNaBIlP.cjs} +1 -1
- package/dist/{option-group-element-ZNyUoLcm.js → option-group-element-DzM8YznZ.js} +3 -3
- 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-BRY_74od.js} +3 -3
- package/dist/{radio-group-bpIEEMdL.cjs → radio-group-CsUgnEv0.cjs} +1 -1
- package/dist/{radiobutton-IcDc6ze2.cjs → radiobutton-CQhuG2lj.cjs} +2 -2
- package/dist/{radiobutton-DMvVv81Y.js → radiobutton-lHnq8wX_.js} +5 -5
- 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-BLGaXkP6.js} +4 -4
- package/dist/{searchinput-DqD_iLxV.cjs → searchinput-TAqMUJ0B.cjs} +1 -1
- package/dist/{select-DKBfPgJB.js → select-BvtUxW0Q.js} +7 -7
- package/dist/{select-CHqM6kI-.cjs → select-Dle67Uwv.cjs} +1 -1
- package/dist/shared-strings/nb.d.ts +3 -0
- package/dist/shared-types/card.d.ts +5 -17
- package/dist/shared-types/combobox.d.ts +3 -3
- package/dist/shared-types/icon.d.ts +2 -2
- package/dist/shared-types/index.d.ts +11 -9
- package/dist/shared-types/linkcard.d.ts +7 -4
- package/dist/shared-types/messagebox.d.ts +4 -2
- package/dist/shared-types/progressbar.d.ts +82 -5
- package/dist/shared-types/skin.d.ts +8 -2
- package/dist/{tabs-B2RjklQl.js → tabs-Bu_-WfCK.js} +5 -5
- package/dist/{tabs-BcnYrmjU.cjs → tabs-Dwk5PKzP.cjs} +1 -1
- package/dist/tag-1SSexs0H.cjs +27 -0
- package/dist/{tag-BOTH9kMz.js → tag-CkZ2Mn4a.js} +33 -11
- package/dist/{textarea-B5OfR-QI.cjs → textarea-DSX3jMlI.cjs} +1 -1
- package/dist/{textarea-Du1Z9JUu.js → textarea-Djp5L2Zd.js} +9 -9
- package/dist/{textinput-CRlErItw.js → textinput-CBrOZcvL.js} +8 -8
- package/dist/{textinput-C5KWIB21.cjs → textinput-CN2F3Q3H.cjs} +1 -1
- package/dist/{timepicker-DVqTAxt0.js → timepicker-CT4wfrgQ.js} +8 -8
- package/dist/{timepicker-RxsG0mCF.cjs → timepicker-CkaJkIGn.cjs} +1 -1
- package/package.json +3 -3
- package/src/components/card/card.test.ts +50 -53
- package/src/components/card/card.ts +14 -24
- package/src/components/card/index.ts +2 -2
- package/src/components/checkbox/checkbox.test.ts +3 -3
- package/src/components/checkbox/checkbox.ts +1 -1
- package/src/components/input-wrapper/input-wrapper.ts +1 -1
- package/src/components/link/link.test.ts +14 -18
- package/src/components/link/link.ts +2 -3
- package/src/components/linkcard/linkcard.test.ts +18 -6
- package/src/components/linkcard/linkcard.ts +5 -7
- package/src/components/messagebox/messagebox.test.ts +14 -1
- package/src/components/messagebox/messagebox.ts +13 -2
- package/src/components/progressbar/progressbar.test.ts +47 -5
- package/src/components/progressbar/progressbar.ts +49 -53
- package/src/components/radiobutton/radiobutton.test.ts +1 -1
- package/src/components/radiobutton/radiobutton.ts +1 -1
- package/src/components/tabs/tabitem.ts +6 -2
- package/src/components/tag/tag.test.ts +21 -12
- package/src/components/tag/tag.ts +12 -3
- package/dist/card-mi3VKIoy.cjs +0 -64
- package/dist/icon-CrG6o7ZE.cjs +0 -1
- package/dist/if-defined-CiML3MTM.cjs +0 -1
- package/dist/linkcard-Cu4Rh71U.cjs +0 -14
- package/dist/linkcard-DM0CQbwD.js +0 -56
- package/dist/messagebox-DR-s6tyr.cjs +0 -13
- package/dist/progressbar-YfHSPmqI.cjs +0 -31
- package/dist/tag-DrFK8Wq3.cjs +0 -27
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-BrjsNjBH.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-DzYKgl-k.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-Bo8uvddg.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-Bse1LpRd.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-BFQzrOw4.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-5A378_yh.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-C1oCGwEe.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-UkinU27V.cjs"),n=require("./alert-DkyTTo7S.cjs"),r=require("./header-DzYKgl-k.cjs"),i=require("./card-njWrvrHm.cjs"),a=require("./checkbox-iMOdzpJ_.cjs"),o=require("./radiobutton-CQhuG2lj.cjs"),s=require("./icon-5A378_yh.cjs"),c=require("./loader-DTIrOtTo.cjs"),l=require("./accordion-5N_ptxrN.cjs"),u=require("./linkcard-DIG6VYpl.cjs"),d=require("./input-wrapper-C_Rzwxx7.cjs"),f=require("./textarea-DSX3jMlI.cjs"),p=require("./textinput-CN2F3Q3H.cjs"),m=require("./messagebox-BLYx3AL7.cjs"),h=require("./calendar-CDTCgTJn.cjs"),g=require("./progressbar-BdqIhC1Z.cjs"),_=require("./combobox-BwAxmoG9.cjs"),v=require("./button-bVWAX98x.cjs"),y=require("./backlink-CXOxMeyt.cjs"),b=require("./breadcrumbs-zfUto2U5.cjs"),x=require("./tag-1SSexs0H.cjs"),S=require("./helptext-Bse1LpRd.cjs"),C=require("./checkbox-group-Kua6HuRE.cjs"),w=require("./fileupload-DXJtAagE.cjs"),T=require("./modal-BvTfLfFq.cjs"),E=require("./datepicker-COar3rRT.cjs"),D=require("./footer-CpE05IW2.cjs"),O=require("./link-B7t4iOKk.cjs"),k=require("./searchinput-TAqMUJ0B.cjs"),A=require("./header-menu-Dq9lwNr1.cjs"),j=require("./heading-DAkjw2Am.cjs"),M=require("./radio-group-CsUgnEv0.cjs"),N=require("./tabs-Dwk5PKzP.cjs"),P=require("./select-Dle67Uwv.cjs"),F=require("./timepicker-CkaJkIGn.cjs");exports.PktAccordion=l.r,exports.PktAccordionItem=l.n,exports.PktAlert=n.n,exports.PktBackLink=y.n,exports.PktBreadcrumbs=b.t,exports.PktButton=v.n,exports.PktCalendar=h.n,exports.PktCard=i.n,exports.PktCheckbox=a.n,exports.PktCheckboxGroup=C.n,exports.PktCombobox=_.n,exports.PktConsent=t.n,exports.PktDateTags=E.a,exports.PktDatepicker=E.t,Object.defineProperty(exports,"PktFileUpload",{enumerable:!0,get:function(){return w.n}}),exports.PktFooter=D.n,exports.PktFooterSimple=D.t,exports.PktHeader=r.t,exports.PktHeaderGlobal=r.n,exports.PktHeaderMenu=A.n,exports.PktHeaderService=r.r,exports.PktHeaderUserMenu=r.i,exports.PktHeading=j.n,exports.PktHelptext=S.n,exports.PktIcon=s.n,exports.PktInputWrapper=d.n,exports.PktLink=O.n,exports.PktLinkCard=u.n,exports.PktLoader=c.n,exports.PktMessagebox=m.n,exports.PktModal=T.n,exports.PktProgressbar=g.n,exports.PktRadioButton=o.n,exports.PktRadiobutton=o.n,exports.PktRadioGroup=M.n,exports.PktSearchInput=k.n,exports.PktSelect=P.n,exports.PktTabItem=N.n,exports.PktTabs=N.r,exports.PktTag=x.n,exports.PktTextarea=f.n,exports.PktTextinput=p.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 "./
|
|
12
|
-
import { n as y } from "./
|
|
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 { n as T } from "./
|
|
19
|
-
import {
|
|
20
|
-
import { n as D } from "./
|
|
21
|
-
import {
|
|
22
|
-
import { n as k } from "./
|
|
23
|
-
import { n as A } from "./
|
|
24
|
-
import { n as j } from "./
|
|
25
|
-
import { n as M } from "./
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import { n as L } from "./
|
|
29
|
-
import { n as R } from "./
|
|
30
|
-
import { n as z } from "./
|
|
31
|
-
import { n as B } from "./
|
|
32
|
-
import { n as V } from "./
|
|
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-p-0n2b9x.js";
|
|
3
|
+
import { n as o } from "./alert-CA1fDbyc.js";
|
|
4
|
+
import { i as s, n as c, r as l, t as u } from "./header-Bo8uvddg.js";
|
|
5
|
+
import { n as d } from "./card-DH1kPnyi.js";
|
|
6
|
+
import { n as f } from "./checkbox-DIJbuqWm.js";
|
|
7
|
+
import { n as p } from "./radiobutton-lHnq8wX_.js";
|
|
8
|
+
import { n as m } from "./icon-C1oCGwEe.js";
|
|
9
|
+
import { n as h } from "./loader-CFidlqSG.js";
|
|
10
|
+
import { n as g, r as _ } from "./accordion-C5cu1xXT.js";
|
|
11
|
+
import { n as v } from "./linkcard-Dr-r8jBO.js";
|
|
12
|
+
import { n as y } from "./input-wrapper-DkpJS1hR.js";
|
|
13
|
+
import { n as b } from "./textarea-Djp5L2Zd.js";
|
|
14
|
+
import { n as x } from "./textinput-CBrOZcvL.js";
|
|
15
|
+
import { n as S } from "./messagebox-B_07P0QA.js";
|
|
16
|
+
import { n as C } from "./calendar-BOd-9PDd.js";
|
|
17
|
+
import { n as w } from "./progressbar-CfCc2zhp.js";
|
|
18
|
+
import { n as T } from "./combobox-H5FLG8BV.js";
|
|
19
|
+
import { n as E } from "./button-Bswo1C0M.js";
|
|
20
|
+
import { n as D } from "./backlink-CDBRcaAu.js";
|
|
21
|
+
import { t as O } from "./breadcrumbs-5oUaCef3.js";
|
|
22
|
+
import { n as k } from "./tag-CkZ2Mn4a.js";
|
|
23
|
+
import { n as A } from "./helptext-BFQzrOw4.js";
|
|
24
|
+
import { n as j } from "./checkbox-group-DLLbWgQb.js";
|
|
25
|
+
import { n as M } from "./fileupload-vPDmtXiM.js";
|
|
26
|
+
import { n as N } from "./modal-CA_M2Ix6.js";
|
|
27
|
+
import { a as P, t as F } from "./datepicker-ZSwWg8xW.js";
|
|
28
|
+
import { n as I, t as L } from "./footer-D8t0PCPC.js";
|
|
29
|
+
import { n as R } from "./link-DZgG_8Ni.js";
|
|
30
|
+
import { n as z } from "./searchinput-BLGaXkP6.js";
|
|
31
|
+
import { n as B } from "./header-menu-BrjsNjBH.js";
|
|
32
|
+
import { n as V } from "./heading-CMZmPEL9.js";
|
|
33
|
+
import { n as H } from "./radio-group-BRY_74od.js";
|
|
34
|
+
import { n as U, r as W } from "./tabs-Bu_-WfCK.js";
|
|
35
|
+
import { n as G } from "./select-BvtUxW0Q.js";
|
|
36
|
+
import { t as K } from "./timepicker-CT4wfrgQ.js";
|
|
37
|
+
export { _ as PktAccordion, g as PktAccordionItem, o as PktAlert, D as PktBackLink, O as PktBreadcrumbs, E as PktButton, C as PktCalendar, d as PktCard, f as PktCheckbox, j as PktCheckboxGroup, T as PktCombobox, a as PktConsent, P as PktDateTags, F as PktDatepicker, M as PktFileUpload, I as PktFooter, L as PktFooterSimple, u as PktHeader, c as PktHeaderGlobal, B as PktHeaderMenu, l as PktHeaderService, s as PktHeaderUserMenu, V as PktHeading, A as PktHelptext, m as PktIcon, y as PktInputWrapper, R as PktLink, v as PktLinkCard, h as PktLoader, S as PktMessagebox, N as PktModal, w as PktProgressbar, p as PktRadioButton, p as PktRadiobutton, H as PktRadioGroup, z as PktSearchInput, G as PktSelect, U as PktTabItem, W as PktTabs, k as PktTag, b as PktTextarea, x 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-C_Rzwxx7.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-DkpJS1hR.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-B7t4iOKk.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-DZgG_8Ni.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-DIG6VYpl.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-Dr-r8jBO.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-DTIrOtTo.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-CFidlqSG.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-BLYx3AL7.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-B_07P0QA.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-BvTfLfFq.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-CA_M2Ix6.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-CsUgnEv0.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-BRY_74od.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-CQhuG2lj.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-lHnq8wX_.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-TAqMUJ0B.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-BLGaXkP6.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-Dle67Uwv.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-BvtUxW0Q.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-Dwk5PKzP.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-Bu_-WfCK.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-1SSexs0H.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-CkZ2Mn4a.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-DSX3jMlI.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-Djp5L2Zd.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-CN2F3Q3H.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-CBrOZcvL.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-CkaJkIGn.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-CT4wfrgQ.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-lHnq8wX_.js";
|
|
3
|
+
import { i as a, n as o, t as s } from "./option-group-element-DzM8YznZ.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-CQhuG2lj.cjs"),n=require("./option-group-element-CVNaBIlP.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,6 +1,6 @@
|
|
|
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
|
-
${this.optionalTag?e._`<span class=${s+` pkt-tag--blue-
|
|
3
|
+
${this.optionalTag?e._`<span class=${s+` pkt-tag--blue-pale`}
|
|
4
4
|
>${this.optionalText??c.optional}</span
|
|
5
5
|
>`:e.h}
|
|
6
6
|
${this.requiredTag?e._`<span class=${s+` pkt-tag--beige`}
|
|
@@ -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,
|
|
@@ -36,7 +36,7 @@ var f = {
|
|
|
36
36
|
"pkt-sr-only": this.hideLabel
|
|
37
37
|
}), s = "pkt-tag pkt-tag--small pkt-tag--thin-text", c = this.pktStrings.get("forms"), u = () => e`
|
|
38
38
|
${this.tagText ? e`<span class=${s + " pkt-tag--gray"}>${this.tagText}</span>` : n}
|
|
39
|
-
${this.optionalTag ? e`<span class=${s + " pkt-tag--blue-
|
|
39
|
+
${this.optionalTag ? e`<span class=${s + " pkt-tag--blue-pale"}
|
|
40
40
|
>${this.optionalText ?? c.optional}</span
|
|
41
41
|
>` : n}
|
|
42
42
|
${this.requiredTag ? e`<span class=${s + " pkt-tag--beige"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./element-
|
|
1
|
+
const e=require("./element-CEarCnHH.cjs"),t=require("./async-directive-DCLIOGR8.cjs");var n=()=>new r,r=class{},i=new WeakMap,a=e.f(class extends t.t{render(t){return e.h}update(t,[n]){let r=n!==this.G;return r&&this.rt(void 0),(r||this.lt!==this.ct)&&(this.G=n,this.ht=t.options?.host,this.rt(this.ct=t.element)),e.h}rt(e){if(this.G!==void 0){if(this.isConnected||(e=void 0),typeof this.G==`function`){let t=this.ht??globalThis,n=i.get(t);n===void 0&&(n=new WeakMap,i.set(t,n)),n.get(this.G)!==void 0&&this.G.call(this.ht,void 0),n.set(this.G,e),e!==void 0&&this.G.call(this.ht,e)}else this.G.value=e}}get lt(){return typeof this.G==`function`?i.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return n}});
|