@oslokommune/punkt-elements 19.3.1 → 19.5.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 +10 -0
- package/dist/{alert-BhvjSA5X.js → alert-CUOWdvit.js} +2 -2
- package/dist/alert-DcyO0WfW.cjs +40 -0
- package/dist/{backlink-DIdgvE2j.js → backlink-DdyQq62f.js} +1 -1
- package/dist/{backlink-Bw6IcRIo.cjs → backlink-vLhK1hsj.cjs} +1 -1
- package/dist/{breadcrumbs-BfgCx3Xj.js → breadcrumbs-Cr3GugPv.js} +1 -1
- package/dist/{breadcrumbs-C10K1XLP.cjs → breadcrumbs-DG4i5UCh.cjs} +1 -1
- package/dist/{button-B5rWxfei.js → button-B0uSFQVn.js} +1 -1
- package/dist/{button-CmNrMH-c.cjs → button-PcKtiNGS.cjs} +1 -1
- package/dist/{calendar-U8xkRdgF.js → calendar-BLaRXUBl.js} +1 -1
- package/dist/{calendar-D-Ow5DAp.cjs → calendar-TcxvS-1_.cjs} +1 -1
- package/dist/{card-DW1uklP6.cjs → card-C15acwk4.cjs} +1 -1
- package/dist/{card-D2YYPZr5.js → card-CfFW7_-K.js} +2 -2
- package/dist/{combobox-DpXTwNr4.js → combobox-Bhfh04Su.js} +3 -3
- package/dist/{combobox-BgduqUpf.cjs → combobox-DvsnfA0c.cjs} +1 -1
- package/dist/components/checkbox/checkbox.d.ts +1 -1
- package/dist/components/consent/consent.d.ts +6 -38
- package/dist/consent-BfLkJbOk.cjs +18 -0
- package/dist/{consent-BBxZkgCO.js → consent-_DBvIRT2.js} +20 -16
- package/dist/{datepicker-BLBimRTT.js → datepicker-BY2IKrPk.js} +4 -4
- package/dist/{datepicker-53rj_Qqx.cjs → datepicker-Cg-iueRC.cjs} +1 -1
- package/dist/{fileupload-4wgr4iAi.cjs → fileupload-Djp6VJYY.cjs} +1 -1
- package/dist/{fileupload-BxfBFhFt.js → fileupload-iuXrgrog.js} +5 -5
- package/dist/{footer-D_d5kq44.js → footer-BCdb0wlF.js} +2 -2
- package/dist/{footer-BGj1uWwC.cjs → footer-bTpLxigB.cjs} +1 -1
- package/dist/{header-CF-Re0nT.js → header-2fF-Zu5T.js} +6 -6
- package/dist/{header-Cs4t2XMM.cjs → header-DbSSOX-h.cjs} +1 -1
- package/dist/{header-menu-BnqZagI6.cjs → header-menu-ChDMnWhW.cjs} +1 -1
- package/dist/{header-menu-C9k9xG9V.js → header-menu-DVYLZyez.js} +1 -1
- package/dist/{helptext-sRC8EJqL.js → helptext-4TAHKV5_.js} +1 -1
- package/dist/{helptext-DYgeTMtA.cjs → helptext-CmsuAXSE.cjs} +1 -1
- package/dist/icon-Dnv6LtPC.cjs +1 -0
- package/dist/{icon-DmRyYNlY.js → icon-JigbxxF7.js} +16 -12
- package/dist/{input-wrapper-CSPPa4uc.cjs → input-wrapper-B5rqKWSB.cjs} +1 -1
- package/dist/{input-wrapper-C1zXIKBU.js → input-wrapper-CaMP5-Vm.js} +3 -3
- package/dist/link-Bo2o0Akv.cjs +7 -0
- package/dist/{link-DcxVUj8s.js → link-CCFAmhL5.js} +1 -1
- package/dist/{linkcard-MJFR7FLT.js → linkcard-9L6QF7US.js} +1 -1
- package/dist/{linkcard-CWeR6t2a.cjs → linkcard-D7NbrluR.cjs} +1 -1
- package/dist/{loader-SJ6NauNT.cjs → loader-CQaGvyF9.cjs} +1 -1
- package/dist/{loader-CqFQoJlM.js → loader-RQQ_o2aR.js} +1 -1
- package/dist/messagebox-BRqI3DW2.cjs +13 -0
- package/dist/{messagebox-DsKi_rKn.js → messagebox-C-BQREWz.js} +1 -1
- package/dist/{modal-DaerHpVi.cjs → modal-BGTTVHeW.cjs} +1 -1
- package/dist/{modal-CJqe6y-V.js → modal-DCwqqNQc.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-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-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 +29 -29
- 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-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-progressbar.cjs +1 -1
- package/dist/pkt-progressbar.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-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-BrVlAcQI.cjs → progressbar-CAEQkFpP.cjs} +1 -1
- package/dist/{progressbar-Bd0DjiAb.js → progressbar-DzX0p2vn.js} +1 -1
- package/dist/{searchinput-7-VVdkss.cjs → searchinput-D6vtMUHw.cjs} +1 -1
- package/dist/{searchinput-CgzigmiI.js → searchinput-DyjUl08X.js} +1 -1
- package/dist/{select---PCiwmy.cjs → select-Bd6Gg4Ar.cjs} +1 -1
- package/dist/{select-BbcGPmPs.js → select-C0GafKtu.js} +1 -1
- package/dist/shared-types/consent.d.ts +69 -0
- package/dist/shared-types/icon.d.ts +39 -0
- package/dist/shared-types/index.d.ts +4 -0
- package/dist/{tag-HTYKd-iG.cjs → tag--kFPXNaj.cjs} +1 -1
- package/dist/{tag-wYnHhHLK.js → tag-CvFakm1k.js} +1 -1
- package/dist/{textarea-BcgVLLTt.js → textarea-BZ2ufamc.js} +2 -2
- package/dist/{textarea-pA_xv8lI.cjs → textarea-CeqScqQa.cjs} +1 -1
- package/dist/{textinput-Dpj1X5yr.js → textinput-DI8Tgmep.js} +2 -2
- package/dist/{textinput-Czz2affL.cjs → textinput-L218fT2-.cjs} +1 -1
- package/dist/{timepicker-CfQMZlaP.js → timepicker-CgXpmG3h.js} +2 -2
- package/dist/{timepicker-BwDZkSpo.cjs → timepicker-ZSHZt0aW.cjs} +1 -1
- package/package.json +2 -2
- package/src/components/checkbox/checkbox.ts +1 -3
- package/src/components/consent/consent.test.ts +14 -0
- package/src/components/consent/consent.ts +28 -54
- package/src/components/icon/icon.ts +6 -6
- package/dist/alert-D1bQjZ7C.cjs +0 -40
- package/dist/consent-BjYaCbef.cjs +0 -18
- package/dist/icon-CoBsgGUR.cjs +0 -1
- package/dist/link-EMsHusF7.cjs +0 -7
- package/dist/messagebox-D5GYIdjE.cjs +0 -13
package/dist/pkt-fileupload.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./fileupload-
|
|
1
|
+
import { n as e, t } from "./fileupload-iuXrgrog.js";
|
|
2
2
|
export { e as PktFileUpload, t as default };
|
package/dist/pkt-footer.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./footer-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./footer-bTpLxigB.cjs");exports.PktFooter=e.n,exports.PktFooterSimple=e.t;
|
package/dist/pkt-footer.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./footer-
|
|
1
|
+
import { n as e, t } from "./footer-BCdb0wlF.js";
|
|
2
2
|
export { e as PktFooter, t as PktFooterSimple };
|
package/dist/pkt-header-menu.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./header-menu-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./header-menu-ChDMnWhW.cjs");exports.PktHeaderMenu=e.n,exports.default=e.t;
|
package/dist/pkt-header-menu.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./header-menu-
|
|
1
|
+
import { n as e, t } from "./header-menu-DVYLZyez.js";
|
|
2
2
|
export { e as PktHeaderMenu, t as default };
|
package/dist/pkt-header.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./header-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./header-DbSSOX-h.cjs");exports.PktHeader=e.t,exports.PktHeaderGlobal=e.n,exports.PktHeaderService=e.r,exports.PktHeaderUserMenu=e.i,exports.formatLastLoggedIn=e.a;
|
package/dist/pkt-header.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, r, t as i } from "./header-
|
|
1
|
+
import { a as e, i as t, n, r, t as i } from "./header-2fF-Zu5T.js";
|
|
2
2
|
export { i as PktHeader, n as PktHeaderGlobal, r as PktHeaderService, t as PktHeaderUserMenu, e as formatLastLoggedIn };
|
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-CmsuAXSE.cjs");exports.PktHelptext=e.n,exports.default=e.t;
|
package/dist/pkt-helptext.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./helptext-
|
|
1
|
+
import { n as e, t } from "./helptext-4TAHKV5_.js";
|
|
2
2
|
export { e as PktHelptext, t as default };
|
package/dist/pkt-icon.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./icon-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./icon-Dnv6LtPC.cjs");exports.PktIcon=e.n,exports.default=e.t;
|
package/dist/pkt-icon.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./icon-
|
|
1
|
+
import { n as e, t } from "./icon-JigbxxF7.js";
|
|
2
2
|
export { e as PktIcon, t as default };
|
package/dist/pkt-index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./element-BOmr9YLv.cjs"),t=require("./consent-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./element-BOmr9YLv.cjs"),t=require("./consent-BfLkJbOk.cjs"),n=require("./alert-DcyO0WfW.cjs"),r=require("./header-DbSSOX-h.cjs"),i=require("./card-C15acwk4.cjs"),a=require("./checkbox-C0zLtnCI.cjs"),o=require("./icon-Dnv6LtPC.cjs"),s=require("./calendar-TcxvS-1_.cjs"),c=require("./button-PcKtiNGS.cjs"),l=require("./accordion-CZ0O4c0_.cjs"),u=require("./backlink-vLhK1hsj.cjs"),d=require("./breadcrumbs-DG4i5UCh.cjs"),f=require("./tag--kFPXNaj.cjs"),p=require("./combobox-DvsnfA0c.cjs"),m=require("./input-wrapper-B5rqKWSB.cjs"),h=require("./helptext-CmsuAXSE.cjs"),g=require("./fileupload-Djp6VJYY.cjs"),_=require("./modal-BGTTVHeW.cjs"),v=require("./progressbar-CAEQkFpP.cjs"),y=require("./datepicker-Cg-iueRC.cjs"),b=require("./footer-bTpLxigB.cjs"),x=require("./link-Bo2o0Akv.cjs"),S=require("./textinput-L218fT2-.cjs"),C=require("./searchinput-D6vtMUHw.cjs"),w=require("./header-menu-ChDMnWhW.cjs"),T=require("./heading-u9Arof4p.cjs"),E=require("./linkcard-D7NbrluR.cjs"),D=require("./loader-CQaGvyF9.cjs"),O=require("./messagebox-BRqI3DW2.cjs"),k=require("./radiobutton-Cv1BlwLV.cjs"),A=require("./tabs-Dw9E06fL.cjs"),j=require("./textarea-CeqScqQa.cjs"),M=require("./select-Bd6Gg4Ar.cjs"),N=require("./timepicker-ZSHZt0aW.cjs");exports.PktAccordion=l.r,exports.PktAccordionItem=l.n,exports.PktAlert=n.n,exports.PktBackLink=u.n,exports.PktBreadcrumbs=d.t,exports.PktButton=c.n,exports.PktCalendar=s.n,exports.PktCard=i.n,exports.PktCheckbox=a.n,exports.PktCombobox=p.n,exports.PktConsent=t.n,exports.PktDateTags=y.a,exports.PktDatepicker=y.t,Object.defineProperty(exports,"PktFileUpload",{enumerable:!0,get:function(){return g.n}}),exports.PktFooter=b.n,exports.PktFooterSimple=b.t,exports.PktHeader=r.t,exports.PktHeaderGlobal=r.n,exports.PktHeaderMenu=w.n,exports.PktHeaderService=r.r,exports.PktHeaderUserMenu=r.i,exports.PktHeading=T.n,exports.PktHelptext=h.n,exports.PktIcon=o.n,exports.PktInputWrapper=m.n,exports.PktLink=x.n,exports.PktLinkCard=E.n,exports.PktLoader=D.n,exports.PktMessagebox=O.n,exports.PktModal=_.n,exports.PktProgressbar=v.n,exports.PktRadioButton=k.n,exports.PktRadiobutton=k.n,exports.PktSearchInput=C.n,exports.PktSelect=M.n,exports.PktTabItem=A.n,exports.PktTabs=A.r,exports.PktTag=f.n,exports.PktTextarea=j.n,exports.PktTextinput=S.n,exports.PktTimepicker=N.t,exports.getPktStrings=e.r,exports.pktStringsNb=e.s,exports.resetPktStrings=e.i,exports.setPktStrings=e.a,exports.subscribePktStrings=e.o;
|
package/dist/pkt-index.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import { a as e, i as t, o as n, r, s as i } from "./element-mwwC2Rra.js";
|
|
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-
|
|
2
|
+
import { n as a } from "./consent-_DBvIRT2.js";
|
|
3
|
+
import { n as o } from "./alert-CUOWdvit.js";
|
|
4
|
+
import { i as s, n as c, r as l, t as u } from "./header-2fF-Zu5T.js";
|
|
5
|
+
import { n as d } from "./card-CfFW7_-K.js";
|
|
6
6
|
import { n as f } from "./checkbox-B2O0fkh9.js";
|
|
7
|
-
import { n as p } from "./
|
|
8
|
-
import { n as m } from "./
|
|
9
|
-
import { n as h } from "./button-
|
|
7
|
+
import { n as p } from "./icon-JigbxxF7.js";
|
|
8
|
+
import { n as m } from "./calendar-BLaRXUBl.js";
|
|
9
|
+
import { n as h } from "./button-B0uSFQVn.js";
|
|
10
10
|
import { n as g, r as _ } from "./accordion-DFcdonl-.js";
|
|
11
|
-
import { n as v } from "./backlink-
|
|
12
|
-
import { t as y } from "./breadcrumbs-
|
|
13
|
-
import { n as b } from "./tag-
|
|
14
|
-
import { n as x } from "./combobox-
|
|
15
|
-
import { n as S } from "./input-wrapper-
|
|
16
|
-
import { n as C } from "./helptext-
|
|
17
|
-
import { n as w } from "./fileupload-
|
|
18
|
-
import { n as T } from "./modal-
|
|
19
|
-
import { n as E } from "./progressbar-
|
|
20
|
-
import { a as D, t as O } from "./datepicker-
|
|
21
|
-
import { n as k, t as A } from "./footer-
|
|
22
|
-
import { n as j } from "./link-
|
|
23
|
-
import { n as M } from "./textinput-
|
|
24
|
-
import { n as N } from "./searchinput-
|
|
25
|
-
import { n as P } from "./header-menu-
|
|
11
|
+
import { n as v } from "./backlink-DdyQq62f.js";
|
|
12
|
+
import { t as y } from "./breadcrumbs-Cr3GugPv.js";
|
|
13
|
+
import { n as b } from "./tag-CvFakm1k.js";
|
|
14
|
+
import { n as x } from "./combobox-Bhfh04Su.js";
|
|
15
|
+
import { n as S } from "./input-wrapper-CaMP5-Vm.js";
|
|
16
|
+
import { n as C } from "./helptext-4TAHKV5_.js";
|
|
17
|
+
import { n as w } from "./fileupload-iuXrgrog.js";
|
|
18
|
+
import { n as T } from "./modal-DCwqqNQc.js";
|
|
19
|
+
import { n as E } from "./progressbar-DzX0p2vn.js";
|
|
20
|
+
import { a as D, t as O } from "./datepicker-BY2IKrPk.js";
|
|
21
|
+
import { n as k, t as A } from "./footer-BCdb0wlF.js";
|
|
22
|
+
import { n as j } from "./link-CCFAmhL5.js";
|
|
23
|
+
import { n as M } from "./textinput-DI8Tgmep.js";
|
|
24
|
+
import { n as N } from "./searchinput-DyjUl08X.js";
|
|
25
|
+
import { n as P } from "./header-menu-DVYLZyez.js";
|
|
26
26
|
import { n as F } from "./heading-BRHCV_5J.js";
|
|
27
|
-
import { n as I } from "./linkcard-
|
|
28
|
-
import { n as L } from "./loader-
|
|
29
|
-
import { n as R } from "./messagebox-
|
|
27
|
+
import { n as I } from "./linkcard-9L6QF7US.js";
|
|
28
|
+
import { n as L } from "./loader-RQQ_o2aR.js";
|
|
29
|
+
import { n as R } from "./messagebox-C-BQREWz.js";
|
|
30
30
|
import { n as z } from "./radiobutton-B0V-jSEX.js";
|
|
31
31
|
import { n as B, r as V } from "./tabs-B134M9k2.js";
|
|
32
|
-
import { n as H } from "./textarea-
|
|
33
|
-
import { n as U } from "./select-
|
|
34
|
-
import { t as W } from "./timepicker-
|
|
35
|
-
export { _ as PktAccordion, g as PktAccordionItem, o as PktAlert, v as PktBackLink, y as PktBreadcrumbs, h as PktButton,
|
|
32
|
+
import { n as H } from "./textarea-BZ2ufamc.js";
|
|
33
|
+
import { n as U } from "./select-C0GafKtu.js";
|
|
34
|
+
import { t as W } from "./timepicker-CgXpmG3h.js";
|
|
35
|
+
export { _ as PktAccordion, g as PktAccordionItem, o as PktAlert, v as PktBackLink, y as PktBreadcrumbs, h as PktButton, m as PktCalendar, d as PktCard, f as PktCheckbox, x as PktCombobox, a as PktConsent, D as PktDateTags, O as PktDatepicker, w as PktFileUpload, k as PktFooter, A as PktFooterSimple, u as PktHeader, c as PktHeaderGlobal, P as PktHeaderMenu, l as PktHeaderService, s as PktHeaderUserMenu, F as PktHeading, C as PktHelptext, p as PktIcon, S as PktInputWrapper, j as PktLink, I as PktLinkCard, L as PktLoader, R as PktMessagebox, T as PktModal, E as PktProgressbar, z as PktRadioButton, z as PktRadiobutton, N as PktSearchInput, U as PktSelect, B as PktTabItem, V as PktTabs, b as PktTag, H as PktTextarea, M as PktTextinput, W 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-B5rqKWSB.cjs");exports.PktInputWrapper=e.n,exports.default=e.t;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./input-wrapper-
|
|
1
|
+
import { n as e, t } from "./input-wrapper-CaMP5-Vm.js";
|
|
2
2
|
export { e as PktInputWrapper, t as default };
|
package/dist/pkt-link.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./link-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./link-Bo2o0Akv.cjs");exports.PktLink=e.n,exports.default=e.t;
|
package/dist/pkt-link.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./link-
|
|
1
|
+
import { n as e, t } from "./link-CCFAmhL5.js";
|
|
2
2
|
export { e as PktLink, t as default };
|
package/dist/pkt-linkcard.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./linkcard-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./linkcard-D7NbrluR.cjs");exports.PktLinkCard=e.n,exports.default=e.t;
|
package/dist/pkt-linkcard.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./linkcard-
|
|
1
|
+
import { n as e, t } from "./linkcard-9L6QF7US.js";
|
|
2
2
|
export { e as PktLinkCard, t as default };
|
package/dist/pkt-loader.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./loader-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./loader-CQaGvyF9.cjs");exports.PktLoader=e.n,exports.default=e.t;
|
package/dist/pkt-loader.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./loader-
|
|
1
|
+
import { n as e, t } from "./loader-RQQ_o2aR.js";
|
|
2
2
|
export { e as PktLoader, t as default };
|
package/dist/pkt-messagebox.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./messagebox-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./messagebox-BRqI3DW2.cjs");exports.PktMessagebox=e.n,exports.default=e.t;
|
package/dist/pkt-messagebox.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./messagebox-
|
|
1
|
+
import { n as e, t } from "./messagebox-C-BQREWz.js";
|
|
2
2
|
export { e as PktMessagebox, t as default };
|
package/dist/pkt-modal.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./modal-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./modal-BGTTVHeW.cjs");exports.PktModal=e.n,exports.default=e.t;
|
package/dist/pkt-modal.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./modal-
|
|
1
|
+
import { n as e, t } from "./modal-DCwqqNQc.js";
|
|
2
2
|
export { e as PktModal, t as default };
|
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-CAEQkFpP.cjs");exports.PktProgressbar=e.n,exports.default=e.t;
|
package/dist/pkt-progressbar.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./progressbar-
|
|
1
|
+
import { n as e, t } from "./progressbar-DzX0p2vn.js";
|
|
2
2
|
export { e as PktProgressbar, t as default };
|
package/dist/pkt-searchinput.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./searchinput-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./searchinput-D6vtMUHw.cjs");exports.PktSearchInput=e.n,exports.default=e.t;
|
package/dist/pkt-searchinput.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./searchinput-
|
|
1
|
+
import { n as e, t } from "./searchinput-DyjUl08X.js";
|
|
2
2
|
export { e as PktSearchInput, t as default };
|
package/dist/pkt-select.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./select
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./select-Bd6Gg4Ar.cjs");exports.PktSelect=e.n,exports.default=e.t;
|
package/dist/pkt-select.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./select-
|
|
1
|
+
import { n as e, t } from "./select-C0GafKtu.js";
|
|
2
2
|
export { e as PktSelect, t as default };
|
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--kFPXNaj.cjs");exports.PktTag=e.n,exports.default=e.t;
|
package/dist/pkt-tag.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./tag-
|
|
1
|
+
import { n as e, t } from "./tag-CvFakm1k.js";
|
|
2
2
|
export { e as PktTag, t as default };
|
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-CeqScqQa.cjs");exports.PktTextarea=e.n,exports.default=e.t;
|
package/dist/pkt-textarea.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./textarea-
|
|
1
|
+
import { n as e, t } from "./textarea-BZ2ufamc.js";
|
|
2
2
|
export { e as PktTextarea, t as default };
|
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-L218fT2-.cjs");exports.PktTextinput=e.n,exports.default=e.t;
|
package/dist/pkt-textinput.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./textinput-
|
|
1
|
+
import { n as e, t } from "./textinput-DI8Tgmep.js";
|
|
2
2
|
export { e as PktTextinput, t as default };
|
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-ZSHZt0aW.cjs");exports.PktTimepicker=e.t;
|
package/dist/pkt-timepicker.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./timepicker-
|
|
1
|
+
import { t as e } from "./timepicker-CgXpmG3h.js";
|
|
2
2
|
export { e as PktTimepicker };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e=require("./element-BOmr9YLv.cjs"),t=require("./class-map-Drv0_anQ.cjs"),n=require("./if-defined-2mkIDgOm.cjs");require("./icon-
|
|
1
|
+
const e=require("./element-BOmr9YLv.cjs"),t=require("./class-map-Drv0_anQ.cjs"),n=require("./if-defined-2mkIDgOm.cjs");require("./icon-Dnv6LtPC.cjs");const r=require("./ref-Emu5PNxk.cjs"),i=require("./utils-63cRpWut.cjs");var a=`important`,o=` !`+a,s=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(o);e.includes(`-`)||n?r.setProperty(e,n?t.slice(0,-11):t,n?a:``):r[e]=t}}return e.g}}),c=class extends e.t{constructor(){super(),this.ariaLabel=null,this.ariaLabelledby=null,this.ariaValueText=null,this.ariaLive=`polite`,this.id=i.n(),this.role=`progressbar`,this.skin=`dark-blue`,this.statusPlacement=`following`,this.statusType=`none`,this.title=``,this.titlePosition=`left`,this.valueCurrent=0,this.valueMax=100,this.valueMin=0,this.labelWidth=0,this.progressbarId=this.id,this.resolvedRole=`progressbar`,this.labelRef=r.t(),this.progressBarRef=r.t()}willUpdate(e){super.willUpdate(e),this.hasAttribute(`id`)?(this.progressbarId=this.getAttribute(`id`)||this.progressbarId,this.removeAttribute(`id`)):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){super.updated(e),e.has(`valueCurrent`)&&this.labelRef.value&&(this.labelWidth=this.labelRef.value.getBoundingClientRect().width||0)}render(){let i=this.statusType!==`none`,a=this.valueMax-this.valueMin,o=this.valueCurrent/a*100,c=this.statusType===`fraction`?Math.round(o):Math.round((this.valueCurrent-this.valueMin)/(this.valueMax-this.valueMin)*100),l=`${this.valueCurrent} av ${a}`,u=this.statusType===`fraction`&&!this.ariaValueText?`${this.valueCurrent} av ${this.valueMax-this.valueMin}`:this.ariaValueText||``,d=this.ariaLabel?void 0:this.ariaLabelledby||`${this.progressbarId}-title`,f=t.t({"pkt-progressbar__bar":!0,[`pkt-progressbar__bar--${this.skin}`]:!!this.skin}),p=t.t({"pkt-progressbar__title":!0,"pkt-progressbar__title-center":this.titlePosition===`center`}),m=t.t({"pkt-progressbar__status":!0,"pkt-progressbar__status--center":this.statusPlacement===`center`}),h=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
2
|
${r.n(this.progressBarRef)}
|
|
3
3
|
id=${this.progressbarId}
|
|
4
4
|
role=${this.resolvedRole}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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-mwwC2Rra.js";
|
|
2
2
|
import { t as d } from "./class-map-C4hdfSfY.js";
|
|
3
3
|
import { t as f } from "./if-defined-Bebu3LXY.js";
|
|
4
|
-
import "./icon-
|
|
4
|
+
import "./icon-JigbxxF7.js";
|
|
5
5
|
import { n as p, t as m } from "./ref-CCSGk4MP.js";
|
|
6
6
|
import { n as h } from "./utils-BwF4QSrq.js";
|
|
7
7
|
//#region ../../node_modules/lit-html/directives/style-map.js
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e=require("./element-BOmr9YLv.cjs"),t=require("./class-map-Drv0_anQ.cjs"),n=require("./if-defined-2mkIDgOm.cjs");require("./icon-
|
|
1
|
+
const e=require("./element-BOmr9YLv.cjs"),t=require("./class-map-Drv0_anQ.cjs"),n=require("./if-defined-2mkIDgOm.cjs");require("./icon-Dnv6LtPC.cjs");const r=require("./utils-63cRpWut.cjs"),i=require("./focus-modality-controller-C1ocyv2J.cjs");var a=class extends e.t{constructor(...e){super(...e),this.appearance=`local`,this.inputSize=`medium`,this.disabled=!1,this.fullwidth=!1,this.id=r.n(),this.value=``,this.focusModality=new i.t(this,`.pkt-searchinput`)}willUpdate(e){super.willUpdate(e);let t=this.getAttribute(`aria-label`);t&&(this.inputAriaLabel=t,this.removeAttribute(`aria-label`))}get suggestionsId(){return`${this.id}-suggestions`}dispatchSearch(){this.dispatchEvent(new CustomEvent(`pkt-search`,{detail:{value:this.value},bubbles:!0,composed:!0}))}onInput(e){let t=e.target;this.value=t.value}onInputKeydown(e){e.key===`Enter`&&(this.action||e.preventDefault(),this.dispatchSearch())}onSearchClick(e){this.action||e.preventDefault(),this.dispatchSearch()}onSuggestionClick(e,t,n){let r=new CustomEvent(`pkt-suggestion-click`,{detail:{index:n,suggestion:t},bubbles:!0,composed:!0,cancelable:!0});this.dispatchEvent(r)||e.preventDefault()}renderSuggestion(t,n){let r=e._`
|
|
2
2
|
${t.title?e._`<h3 class="pkt-searchinput__suggestion-title">${t.title}</h3>`:e.h}
|
|
3
3
|
${t.text?e._`<p class="pkt-searchinput__suggestion-text">${t.text}</p>`:e.h}
|
|
4
4
|
`;return t.href?e._`<a
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as e, d as t, h as n, l as r, n as i, t as a, u as o } from "./element-mwwC2Rra.js";
|
|
2
2
|
import { t as s } from "./class-map-C4hdfSfY.js";
|
|
3
3
|
import { t as c } from "./if-defined-Bebu3LXY.js";
|
|
4
|
-
import "./icon-
|
|
4
|
+
import "./icon-JigbxxF7.js";
|
|
5
5
|
import { n as l } from "./utils-BwF4QSrq.js";
|
|
6
6
|
import { t as u } from "./focus-modality-controller-Dc2S-KqR.js";
|
|
7
7
|
//#region src/components/searchinput/searchinput.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e=require("./element-BOmr9YLv.cjs"),t=require("./if-defined-2mkIDgOm.cjs"),n=require("./element-with-slot-2PHu2w7O.cjs"),r=require("./ref-Emu5PNxk.cjs"),i=require("./input-element-W6Gklt2E.cjs"),a=require("./pkt-options-controller-Dz-rYCG1.cjs"),o=require("./input-wrapper-
|
|
1
|
+
const e=require("./element-BOmr9YLv.cjs"),t=require("./if-defined-2mkIDgOm.cjs"),n=require("./element-with-slot-2PHu2w7O.cjs"),r=require("./ref-Emu5PNxk.cjs"),i=require("./input-element-W6Gklt2E.cjs"),a=require("./pkt-options-controller-Dz-rYCG1.cjs"),o=require("./input-wrapper-B5rqKWSB.cjs");var s=class extends i.t{constructor(...e){super(...e),this._optionsProp=[],this._options=[]}get options(){return this._options.map(e=>({...e,selected:this.isOptionSelected(e)}))}set options(e){this._optionsProp=e,this.requestUpdate(`_optionsProp`,this._options)}isOptionSelected(e){return Array.isArray(this.value)?this.value.includes(e.value):e.value===this.value}findOptionByValue(e){return this._options.find(t=>t.value===e)}getSelectedOptions(){return this._options.filter(e=>this.isOptionSelected(e))}parseOptions(){let e=this._optionsProp.length>0,t=this.optionsController?.nodes?.length&&this.optionsController.nodes.length>0;e?this._options=this._optionsProp:t&&(this._options=this.optionsController.options)}willUpdate(e){super.willUpdate(e),this.parseOptions()}};e.n([e.u({type:Array,attribute:`options`})],s.prototype,`_optionsProp`,void 0),e.n([e.l()],s.prototype,`_options`,void 0);var c=class extends s{constructor(){super(),this.inputRef=r.t(),this.value=``,this.selectedIndex=-1,this.selectedOptions=void 0,this.optionsController=new a.t(this)}connectedCallback(){super.connectedCallback(),this.parseOptions(),this._options.forEach(e=>{e.selected&&!this.value&&(this.value=e.value)})}add(e,t){let n={value:e.value||e.text,label:e.text||e.value,selected:e.selected,disabled:e.disabled};if(t===void 0)this._options.push(n);else if(typeof t==`number`)this._options.splice(t,0,n);else{let e=t.value||t.text,r=this._options.findIndex(t=>t.value===e);r>=0?this._options.splice(r,0,n):this._options.push(n)}e.selected&&(this.value=e.value||e.text,this.selectedIndex=this._options.findIndex(e=>e.value===this.value)),this.requestUpdate()}remove(e){typeof e==`number`&&(this.selectedIndex===e&&(this.value=this._options[0]?.value||``),this._options.splice(e,1),this.requestUpdate())}item(e){return this.inputRef.value?.item(e)}namedItem(e){return this.inputRef.value?.namedItem(e)}showPicker(){this.inputRef.value&&`showPicker`in this.inputRef.value&&this.inputRef.value.showPicker()}attributeChangedCallback(e,t,n){e===`options`&&(this._options=n?JSON.parse(n):[]),e===`value`&&this.value!==t&&(this.selectedIndex=this.touched?this.returnNumberOrNull(this.inputRef.value?.selectedIndex):this._options.findIndex(e=>e.value===n),this.selectedOptions=this.inputRef.value?.selectedOptions,this.valueChanged(n,t)),super.attributeChangedCallback(e,t,n)}update(e){super.update(e),e.has(`_optionsProp`)&&this._optionsProp.length>0&&(this._options=this._optionsProp,this.requestUpdate(`_options`),!this.value&&this._options.length>0&&(this.value=this._options[0].value,this.selectedIndex=0)),e.has(`value`)&&this.value!==e.get(`value`)&&(this.selectedIndex=this.touched?this.returnNumberOrNull(this.inputRef.value?.selectedIndex):this._options.findIndex(e=>e.value===this.value),this.selectedOptions=this.inputRef.value?.selectedOptions,this.valueChanged(this.value,e.get(`value`))),e.has(`id`)&&!this.name&&this.id&&(this.name=this.id)}firstUpdated(e){super.firstUpdated(e),this.classList.add(`pkt-select`),this._optionsProp.length&&(this._options=this._optionsProp),!this.value&&this._options.length>0?(this.value=this._options[0].value,this.selectedIndex=0):this.selectedIndex=this._options.findIndex(e=>e.value===this.value),this.selectedOptions=this.inputRef.value?.selectedOptions}render(){let i=`pkt-input pkt-input--${this.inputSize} ${this.fullwidth?`pkt-input--fullwidth`:``}`;return e._`
|
|
2
2
|
<pkt-input-wrapper
|
|
3
3
|
.strings=${this.strings}
|
|
4
4
|
.size=${this.inputSize}
|
|
@@ -4,7 +4,7 @@ import { r as o } from "./element-with-slot-FD826ooP.js";
|
|
|
4
4
|
import { n as s, t as c } from "./ref-CCSGk4MP.js";
|
|
5
5
|
import { t as l } from "./input-element-B1BntJeJ.js";
|
|
6
6
|
import { t as u } from "./pkt-options-controller-sUzxHa5A.js";
|
|
7
|
-
import { r as d } from "./input-wrapper-
|
|
7
|
+
import { r as d } from "./input-wrapper-CaMP5-Vm.js";
|
|
8
8
|
//#region src/base-elements/options-input-element.ts
|
|
9
9
|
var f = class extends l {
|
|
10
10
|
constructor(...e) {
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* consent.ts
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for pkt-consent.
|
|
5
|
+
* Used by React, Elements, and typed component specs.
|
|
6
|
+
*/
|
|
7
|
+
/** Consent trigger variants — shared runtime source for types, specs, and Preview. */
|
|
8
|
+
export declare const CONSENT_TRIGGER_TYPES: readonly ['button', 'link', 'footerlink', 'icon'];
|
|
9
|
+
export type TPktConsentTriggerType = (typeof CONSENT_TRIGGER_TYPES)[number];
|
|
10
|
+
/**
|
|
11
|
+
* Trigger variants offered in Preview/docs. `footerlink` is left out because it is
|
|
12
|
+
* styled for the footer, where PktFooter and PktFooterSimple set it themselves.
|
|
13
|
+
*/
|
|
14
|
+
export declare const CONSENT_TRIGGER_TYPE_OPTIONS: readonly ["button", "link", "icon"];
|
|
15
|
+
/** One cookie category in the consent cookie. */
|
|
16
|
+
export interface IConsentItem {
|
|
17
|
+
name: string;
|
|
18
|
+
consent: boolean;
|
|
19
|
+
}
|
|
20
|
+
/** Parsed consent cookie. */
|
|
21
|
+
export interface IConsentValue {
|
|
22
|
+
items: IConsentItem[];
|
|
23
|
+
}
|
|
24
|
+
/** Payload from the cookie banner's `CookieManager.setCookie` event. */
|
|
25
|
+
export interface ICookieConsentEvent {
|
|
26
|
+
value: string | IConsentValue;
|
|
27
|
+
}
|
|
28
|
+
/** Detail of the `toggle-consent` event: cookie category name → consent given. */
|
|
29
|
+
export type TConsentDetailsMap = Record<string, boolean>;
|
|
30
|
+
export type TCookieEventHandler = (consent: ICookieConsentEvent) => void;
|
|
31
|
+
/** `window.__cookieEvents` exposed by the cookie banner script. */
|
|
32
|
+
export interface ICookieEvents {
|
|
33
|
+
on(eventName: string, handler: TCookieEventHandler): void;
|
|
34
|
+
off(eventName: string, handler: TCookieEventHandler): void;
|
|
35
|
+
}
|
|
36
|
+
/** `window.cookieBanner` exposed by the cookie banner script. */
|
|
37
|
+
export interface ICookieBannerApi {
|
|
38
|
+
cookieConsent: {
|
|
39
|
+
validateConsentCookie(): Promise<boolean>;
|
|
40
|
+
getConsentCookie(): string | IConsentValue;
|
|
41
|
+
};
|
|
42
|
+
openCookieModal(): void;
|
|
43
|
+
}
|
|
44
|
+
/** Consent props shared by React and Elements. */
|
|
45
|
+
export interface IPktConsentBase {
|
|
46
|
+
devMode?: boolean;
|
|
47
|
+
cookieDomain?: string | null;
|
|
48
|
+
cookieSecure?: string | null;
|
|
49
|
+
cookieExpiryDays?: string | null;
|
|
50
|
+
hotjarId?: string | null;
|
|
51
|
+
googleAnalyticsId?: string | null;
|
|
52
|
+
i18nLanguage?: string;
|
|
53
|
+
triggerType?: TPktConsentTriggerType | null;
|
|
54
|
+
triggerText?: string | null;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Documented Consent props (subset of `IPktConsentBase`).
|
|
58
|
+
* Used for typed component specs in documentation.
|
|
59
|
+
*/
|
|
60
|
+
export type IConsentSpecProps = Pick<IPktConsentBase, 'devMode' | 'cookieDomain' | 'cookieSecure' | 'cookieExpiryDays' | 'hotjarId' | 'googleAnalyticsId' | 'i18nLanguage' | 'triggerType' | 'triggerText'>;
|
|
61
|
+
/**
|
|
62
|
+
* Default values for pkt-consent. Single source of truth for both frameworks.
|
|
63
|
+
* `triggerText` is absent — it falls back to the `consentStrings` text for `i18nLanguage`.
|
|
64
|
+
*/
|
|
65
|
+
export declare const CONSENT_DEFAULTS: {
|
|
66
|
+
readonly devMode: false;
|
|
67
|
+
readonly i18nLanguage: 'nb';
|
|
68
|
+
readonly triggerType: 'button';
|
|
69
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* icon.ts
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for pkt-icon.
|
|
5
|
+
* Used by React, Elements, and typed component specs.
|
|
6
|
+
*/
|
|
7
|
+
import type { Booleanish } from './booleanish';
|
|
8
|
+
/** Default CDN path for icons. Overridden globally by `window.pktIconPath`. */
|
|
9
|
+
export declare const ICON_DEFAULT_PATH = "https://punkt-cdn.oslo.kommune.no/latest/icons/";
|
|
10
|
+
/** Icon size modifier classes — shared runtime source for types, specs, and Preview. */
|
|
11
|
+
export declare const ICON_SIZE_CLASSES: readonly ['pkt-icon--small', 'pkt-icon--medium', 'pkt-icon--large'];
|
|
12
|
+
export type TIconSizeClass = (typeof ICON_SIZE_CLASSES)[number];
|
|
13
|
+
/**
|
|
14
|
+
* Icon props shared by React and Elements.
|
|
15
|
+
*
|
|
16
|
+
* @remarks Elements narrows `name` to `PktIconName` and takes `aria-hidden`/`aria-label`
|
|
17
|
+
* as string attributes.
|
|
18
|
+
*/
|
|
19
|
+
export interface IPktIconBase {
|
|
20
|
+
name?: string;
|
|
21
|
+
path?: string;
|
|
22
|
+
ariaHidden?: Booleanish;
|
|
23
|
+
ariaLabel?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Documented Icon props. `className` is not a component prop but the size class
|
|
27
|
+
* (`className` in React, `class` in Elements), documented so Preview can offer it.
|
|
28
|
+
*/
|
|
29
|
+
export type IIconSpecProps = Pick<IPktIconBase, 'name' | 'path' | 'ariaHidden' | 'ariaLabel'> & {
|
|
30
|
+
className?: TIconSizeClass;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Default values for pkt-icon. Single source of truth for both frameworks.
|
|
34
|
+
* `path` is only the fallback — `window.pktIconPath` wins when set.
|
|
35
|
+
*/
|
|
36
|
+
export declare const ICON_DEFAULTS: {
|
|
37
|
+
readonly name: '';
|
|
38
|
+
readonly path: "https://punkt-cdn.oslo.kommune.no/latest/icons/";
|
|
39
|
+
};
|
|
@@ -13,6 +13,10 @@ export { CARD_SKINS, CARD_PADDINGS, CARD_IMAGE_SHAPES, CARD_IMAGE_ASPECTS, CARD_
|
|
|
13
13
|
export type { TCardSkin, TCardPadding, TCardImageShape, TCardImageAspect, TCardTagPosition, ICardTag, ICardImage, IPktCardBase, ICardSpecProps, } from './card';
|
|
14
14
|
export { CHECKBOX_LABEL_POSITIONS, CHECKBOX_DEFAULTS } from './checkbox';
|
|
15
15
|
export type { TCheckboxLabelPosition, IPktCheckboxBase, ICheckboxSpecProps } from './checkbox';
|
|
16
|
+
export { CONSENT_TRIGGER_TYPES, CONSENT_TRIGGER_TYPE_OPTIONS, CONSENT_DEFAULTS } from './consent';
|
|
17
|
+
export type { TPktConsentTriggerType, IConsentItem, IConsentValue, ICookieConsentEvent, TConsentDetailsMap, TCookieEventHandler, ICookieEvents, ICookieBannerApi, IPktConsentBase, IConsentSpecProps, } from './consent';
|
|
18
|
+
export { ICON_DEFAULT_PATH, ICON_SIZE_CLASSES, ICON_DEFAULTS } from './icon';
|
|
19
|
+
export type { TIconSizeClass, IPktIconBase, IIconSpecProps } from './icon';
|
|
16
20
|
export { LAYOUT_DIRECTIONS } from './layout';
|
|
17
21
|
export type { TLayout, TVerticalPosition, THorizontalPosition, TPosition, TPositionWithCenter, } from './layout';
|
|
18
22
|
export type { THTMLButtonType, TSelectionMode } from './form';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e=require("./element-BOmr9YLv.cjs"),t=require("./class-map-Drv0_anQ.cjs"),n=require("./if-defined-2mkIDgOm.cjs"),r=require("./format-B8meU8Tm.cjs"),i=require("./element-with-slot-2PHu2w7O.cjs");require("./icon-
|
|
1
|
+
const e=require("./element-BOmr9YLv.cjs"),t=require("./class-map-Drv0_anQ.cjs"),n=require("./if-defined-2mkIDgOm.cjs"),r=require("./format-B8meU8Tm.cjs"),i=require("./element-with-slot-2PHu2w7O.cjs");require("./icon-Dnv6LtPC.cjs");var a={name:`pkt-tag`,react:`PktTag`,"css-class":`pkt-tag`,isElement:!0,"dark-mode":!0,props:{size:{name:`Størrelse`,description:`Størrelsen på taggen`,required:!1,default:`medium`,type:[`small`,`medium`,`large`],category:`ui`},iconName:{name:`Ikon`,description:`Navnet på ikonet som skal vises i taggen`,type:`icon`,required:!1,category:`ui`},skin:{name:`Utseende`,description:`Utseendet til taggen`,required:!1,default:`blue`,type:[`blue`,`blue-light`,`blue-dark`,`green`,`red`,`beige`,`yellow`,`gray`],category:`ui`},closeTag:{name:`Lukk tag`,description:`Skal taggen ha en lukkeknapp?`,type:`boolean`,required:!1,default:!1,category:`ui`},textStyle:{name:`Tekststil`,description:`Stilen på teksten i taggen`,required:!1,default:`normal-text`,type:[`thin-text`,`normal-text`],category:`ui`},type:{name:`Type, dersom lukkeknapp`,description:`Type tag, brukes for å spesifisere om det er en knapp, submit eller reset`,required:!1,default:`button`,type:[`button`,`submit`,`reset`],category:`tech`},ariaLabel:{name:`aria-label`,description:`aria-label for taggen, brukes for tilgjengelighet`,type:`string`,required:!1,category:`accessibility`}},slots:{default:{description:`Teksten til tag`}}},o=class extends i.t{constructor(){super(),this.closeTag=a.props.closeTag.default,this.size=a.props.size.default,this.skin=a.props.skin.default,this.textStyle=null,this.iconName=void 0,this.type=a.props.type.default,this.ariaLabel=null,this.buttonTabindex=void 0,this._isClosed=!1,this._ariaDescription=null,this.close=e=>{this._isClosed=!0,this.dispatchEvent(new CustomEvent(`close`,{detail:{origin:e},bubbles:!1,composed:!0})),this.dispatchEvent(new CustomEvent(`on-close`,{detail:{origin:e},bubbles:!1,composed:!0}))},this._isClosed=!1}willUpdate(e){if(super.willUpdate(e),this.closeTag&&!this.ariaLabel){let e=i.n(this).getNodes().map(e=>e.textContent??``).join(``).trim();e&&(this._ariaDescription=r.t(this.pktStrings.get(`tag`).remove,{label:e}))}}render(){let r={"pkt-tag":!0,[`pkt-tag--${this.size}`]:!!this.size,[`pkt-tag--${this.skin}`]:!!this.skin,[`pkt-tag--${this.textStyle}`]:!!this.textStyle},a={"pkt-tag":!0,[`pkt-tag--${this.textStyle}`]:!!this.textStyle,[`pkt-tag--${this.size}`]:!!this.size,[`pkt-tag--${this.skin}`]:!!this.skin,"pkt-hide":this._isClosed};return this.closeTag?e._`
|
|
2
2
|
<button
|
|
3
3
|
class=${t.t(a)}
|
|
4
4
|
type=${this.type}
|
|
@@ -3,7 +3,7 @@ import { t as a } from "./class-map-C4hdfSfY.js";
|
|
|
3
3
|
import { t as o } from "./if-defined-Bebu3LXY.js";
|
|
4
4
|
import { t as s } from "./format-BTeSVkED.js";
|
|
5
5
|
import { n as c, r as l, t as u } from "./element-with-slot-FD826ooP.js";
|
|
6
|
-
import "./icon-
|
|
6
|
+
import "./icon-JigbxxF7.js";
|
|
7
7
|
var d = {
|
|
8
8
|
name: "pkt-tag",
|
|
9
9
|
react: "PktTag",
|
|
@@ -3,10 +3,10 @@ import { t as u } from "./class-map-C4hdfSfY.js";
|
|
|
3
3
|
import { t as d } from "./if-defined-Bebu3LXY.js";
|
|
4
4
|
import { i as f, r as p } from "./directive-helpers-D96YEsht.js";
|
|
5
5
|
import { r as m } from "./element-with-slot-FD826ooP.js";
|
|
6
|
-
import "./icon-
|
|
6
|
+
import "./icon-JigbxxF7.js";
|
|
7
7
|
import { n as h, t as g } from "./ref-CCSGk4MP.js";
|
|
8
8
|
import { t as _ } from "./input-element-B1BntJeJ.js";
|
|
9
|
-
import { r as v } from "./input-wrapper-
|
|
9
|
+
import { r as v } from "./input-wrapper-CaMP5-Vm.js";
|
|
10
10
|
//#region ../../node_modules/lit-html/directives/live.js
|
|
11
11
|
var y = n(class extends c {
|
|
12
12
|
constructor(e) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e=require("./element-BOmr9YLv.cjs"),t=require("./class-map-Drv0_anQ.cjs"),n=require("./if-defined-2mkIDgOm.cjs"),r=require("./directive-helpers-BRrz3Bcj.cjs"),i=require("./element-with-slot-2PHu2w7O.cjs");require("./icon-
|
|
1
|
+
const e=require("./element-BOmr9YLv.cjs"),t=require("./class-map-Drv0_anQ.cjs"),n=require("./if-defined-2mkIDgOm.cjs"),r=require("./directive-helpers-BRrz3Bcj.cjs"),i=require("./element-with-slot-2PHu2w7O.cjs");require("./icon-Dnv6LtPC.cjs");const a=require("./ref-Emu5PNxk.cjs"),o=require("./input-element-W6Gklt2E.cjs"),s=require("./input-wrapper-B5rqKWSB.cjs");var c=e.f(class extends e.p{constructor(t){if(super(t),t.type!==e.m.PROPERTY&&t.type!==e.m.ATTRIBUTE&&t.type!==e.m.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!r.i(t))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(t,[n]){if(n===e.g||n===e.h)return n;let i=t.element,a=t.name;if(t.type===e.m.PROPERTY){if(n===i[a])return e.g}else if(t.type===e.m.BOOLEAN_ATTRIBUTE){if(!!n===i.hasAttribute(a))return e.g}else if(t.type===e.m.ATTRIBUTE&&i.getAttribute(a)===n+``)return e.g;return r.r(t),n}}),l=class extends o.t{constructor(...e){super(...e),this.inputRef=a.t(),this.value=``,this.autocomplete=`off`,this.rows=null,this.cols=null,this.counterCurrent=0}attributeChangedCallback(e,t,n){e===`value`&&this.value!==t&&(this.counterCurrent=n?n.length:0),super.attributeChangedCallback(e,t,n)}willUpdate(e){super.willUpdate(e),e.has(`value`)&&(this.counterCurrent=this.value?.length||0),e.has(`id`)&&!this.name&&this.id&&(this.name=this.id)}updated(e){super.updated(e),this.classList.add(`pkt-textinput`,`pkt-textarea`),e.has(`value`)&&this.valueChanged(this.value,e.get(`value`))}render(){let r=this.effectiveCounter(this.counterMaxLength>0),o=t.t({"pkt-input":!0,[`pkt-input--${this.inputSize}`]:!0,"pkt-input--fullwidth":this.fullwidth,"pkt-input--counter-error":r&&this.counterMaxLength>0&&this.value.length>this.counterMaxLength}),l=this.ariaLabelledby||`${this.id}-input-label`;return e._`<pkt-input-wrapper
|
|
2
2
|
.strings=${this.strings}
|
|
3
3
|
label=${this.label}
|
|
4
4
|
?counter=${r}
|
|
@@ -2,10 +2,10 @@ import { _ as e, d as t, h as n, l as r, n as i, u as a } from "./element-mwwC2R
|
|
|
2
2
|
import { t as o } from "./class-map-C4hdfSfY.js";
|
|
3
3
|
import { t as s } from "./if-defined-Bebu3LXY.js";
|
|
4
4
|
import { r as c } from "./element-with-slot-FD826ooP.js";
|
|
5
|
-
import "./icon-
|
|
5
|
+
import "./icon-JigbxxF7.js";
|
|
6
6
|
import { n as l, t as u } from "./ref-CCSGk4MP.js";
|
|
7
7
|
import { t as d } from "./input-element-B1BntJeJ.js";
|
|
8
|
-
import { r as f } from "./input-wrapper-
|
|
8
|
+
import { r as f } from "./input-wrapper-CaMP5-Vm.js";
|
|
9
9
|
//#region src/components/textinput/textinput.ts
|
|
10
10
|
var p = class extends d {
|
|
11
11
|
constructor(...e) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e=require("./element-BOmr9YLv.cjs"),t=require("./class-map-Drv0_anQ.cjs"),n=require("./if-defined-2mkIDgOm.cjs"),r=require("./element-with-slot-2PHu2w7O.cjs");require("./icon-
|
|
1
|
+
const e=require("./element-BOmr9YLv.cjs"),t=require("./class-map-Drv0_anQ.cjs"),n=require("./if-defined-2mkIDgOm.cjs"),r=require("./element-with-slot-2PHu2w7O.cjs");require("./icon-Dnv6LtPC.cjs");const i=require("./ref-Emu5PNxk.cjs"),a=require("./input-element-W6Gklt2E.cjs"),o=require("./input-wrapper-B5rqKWSB.cjs");var s=class extends a.t{constructor(...e){super(...e),this.inputRef=i.t(),this.value=``,this.type=`text`,this.size=null,this.autocomplete=null,this.iconNameRight=null,this.prefix=null,this.suffix=null,this.omitSearchIcon=!1,this.counterCurrent=0}attributeChangedCallback(e,t,n){e===`value`&&this.value!==t&&(this.counterCurrent=n?n.length:0),super.attributeChangedCallback(e,t,n)}willUpdate(e){super.willUpdate(e),e.has(`value`)&&(this.counterCurrent=this.value?.length||0),e.has(`id`)&&!this.name&&this.id&&(this.name=this.id)}updated(e){super.updated(e),this.classList.add(`pkt-textinput`),e.has(`value`)&&this.valueChanged(this.value,e.get(`value`))}render(){let a=this.type===`search`&&!this.iconNameRight&&!this.omitSearchIcon,s=this.effectiveCounter(this.counterMaxLength>0),c=t.t({"pkt-input":!0,[`pkt-input--${this.inputSize}`]:!0,"pkt-input--fullwidth":this.fullwidth,"pkt-input--counter-error":s&&this.counterMaxLength>0&&this.value.length>this.counterMaxLength}),l=this.ariaLabelledby||`${this.id}-input-label`;return e._`
|
|
2
2
|
<pkt-input-wrapper
|
|
3
3
|
.strings=${this.strings}
|
|
4
4
|
label="${this.label}"
|
|
@@ -3,10 +3,10 @@ import { t as o } from "./class-map-C4hdfSfY.js";
|
|
|
3
3
|
import { t as s } from "./if-defined-Bebu3LXY.js";
|
|
4
4
|
import { t as c } from "./format-BTeSVkED.js";
|
|
5
5
|
import { r as l } from "./element-with-slot-FD826ooP.js";
|
|
6
|
-
import "./icon-
|
|
6
|
+
import "./icon-JigbxxF7.js";
|
|
7
7
|
import { n as u, t as d } from "./ref-CCSGk4MP.js";
|
|
8
8
|
import { t as f } from "./input-element-B1BntJeJ.js";
|
|
9
|
-
import { r as p } from "./input-wrapper-
|
|
9
|
+
import { r as p } from "./input-wrapper-CaMP5-Vm.js";
|
|
10
10
|
//#region ../../shared-utils/timepicker/time-utils.ts
|
|
11
11
|
var m = (e) => /^\d{2}:\d{2}$/.test(e) && parseInt(e.slice(0, 2), 10) <= 23 && parseInt(e.slice(3), 10) <= 59, h = (e) => {
|
|
12
12
|
let [t, n] = e.split(":").map(Number);
|