@oslokommune/punkt-elements 12.42.12 → 12.43.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 +17 -0
- package/dist/{accordionitem-Be6vyX31.js → accordionitem-C9FI-NXW.js} +7 -8
- package/dist/{accordionitem-ogt0KNGP.cjs → accordionitem-DjAWPtsn.cjs} +5 -5
- package/dist/{alert-CZyqekhG.js → alert-B0OUR9oD.js} +21 -22
- package/dist/alert-BH0lJ2ny.cjs +32 -0
- package/dist/{backlink-C3dfam09.js → backlink-B13JTp9D.js} +11 -12
- package/dist/backlink-C5jQRMwJ.cjs +13 -0
- package/dist/button-CDocR7iN.cjs +19 -0
- package/dist/{button-OoC1RGJL.js → button-DrrEvUy9.js} +7 -8
- package/dist/calendar-BZe2D4Sr.cjs +108 -0
- package/dist/{calendar-qEV4u3xs.js → calendar-DevQhOup.js} +10 -11
- package/dist/{card-CJue0Esh.cjs → card-Bx36j0q4.cjs} +1 -1
- package/dist/{card-p-fcc7Wh.js → card-Djnd-pgo.js} +8 -9
- package/dist/{checkbox-iLywLQwL.cjs → checkbox-CJ4tK9RC.cjs} +1 -1
- package/dist/{checkbox-BLI7dfpW.js → checkbox-cD_5LDzV.js} +4 -4
- package/dist/{class-map-dph2jLEp.cjs → class-map-BBG2gMX4.cjs} +1 -1
- package/dist/{class-map-DO0E7GkW.js → class-map-BpTj9gtz.js} +1 -1
- package/dist/{combobox-BJOVpwAW.cjs → combobox-Cv6i7BEk.cjs} +1 -1
- package/dist/{combobox-C_Zj-ZxE.js → combobox-kWGI4RHI.js} +11 -11
- package/dist/{consent-C0pd0E2Q.js → consent-CftYu8Di.js} +5 -6
- package/dist/consent-DrS71kvz.cjs +11 -0
- package/dist/{datepicker--I3DF-Ci.cjs → datepicker-BJe92Vor.cjs} +1 -1
- package/dist/{datepicker-Y6-ORa5u.js → datepicker-LpbYHx8L.js} +11 -11
- package/dist/{directive-helpers-lOXMtxMR.cjs → directive-helpers-BBbxqP2W.cjs} +2 -2
- package/dist/{directive-helpers-D2BEk_ct.js → directive-helpers-r-kOS_Mf.js} +1 -1
- package/dist/element-6DBpyGQm.cjs +238 -0
- package/dist/{element-Cfyyg4nF.js → element-CgEWt74-.js} +9272 -9157
- package/dist/heading-BRE_iFtR.cjs +1 -0
- package/dist/{heading-BWV1JThP.js → heading-D6jXE_Mz.js} +4 -4
- package/dist/{helptext-C7oP6VRp.js → helptext-B7eI0iBQ.js} +18 -19
- package/dist/helptext-CzQX6YVE.cjs +24 -0
- package/dist/{icon-RJ9Op-BB.cjs → icon-B_ryAy4Q.cjs} +3 -3
- package/dist/{icon-DPnB79MP.js → icon-CC1js8eR.js} +11 -12
- package/dist/{if-defined-I-IZkUY2.js → if-defined-CmuO4Vz9.js} +1 -1
- package/dist/if-defined-Cni-RHLS.cjs +5 -0
- package/dist/index.d.ts +27 -27
- package/dist/input-element-CHjLWeKt.cjs +1 -0
- package/dist/input-element-Cco4PA2M.js +700 -0
- package/dist/{input-wrapper-DrJgi10C.cjs → input-wrapper-BxZf8wEP.cjs} +4 -4
- package/dist/{input-wrapper-BDm0DwAW.js → input-wrapper-gz7ppKrK.js} +13 -14
- package/dist/{link-BzKHhT3c.js → link-C76H6Qf1.js} +11 -12
- package/dist/link-DTkjNlmy.cjs +7 -0
- package/dist/{linkcard-CyepaY-g.js → linkcard-BVEsUPwG.js} +13 -14
- package/dist/{linkcard-Czsb01sQ.cjs → linkcard-BlMhPNry.cjs} +1 -1
- package/dist/{listbox-BIcmMiAK.cjs → listbox-C4supLfR.cjs} +7 -7
- package/dist/{listbox-Br7v_BsA.js → listbox-CLsSW32I.js} +10 -11
- package/dist/loader-CHPxY9c6.cjs +11 -0
- package/dist/{loader-Co35Rkbv.js → loader-Da4IOk_T.js} +15 -16
- package/dist/messagebox-CqUBJs_D.cjs +12 -0
- package/dist/{messagebox-CQXmoqzD.js → messagebox-DwGdcdm7.js} +17 -18
- package/dist/modal-BdA5aWGU.cjs +36 -0
- package/dist/{modal-DuubDFPT.js → modal-DcXPnFus.js} +26 -27
- package/dist/pkt-accordion.cjs +1 -1
- package/dist/pkt-accordion.js +2 -2
- 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-button.cjs +1 -1
- package/dist/pkt-button.js +1 -1
- package/dist/pkt-calendar.cjs +1 -1
- package/dist/pkt-calendar.js +1 -1
- package/dist/pkt-card.cjs +1 -1
- package/dist/pkt-card.js +1 -1
- package/dist/pkt-checkbox.cjs +1 -1
- package/dist/pkt-checkbox.js +1 -1
- package/dist/pkt-combobox.cjs +1 -1
- package/dist/pkt-combobox.js +1 -1
- package/dist/pkt-consent.cjs +1 -1
- package/dist/pkt-consent.js +1 -1
- package/dist/pkt-datepicker.cjs +1 -1
- package/dist/pkt-datepicker.js +1 -1
- package/dist/pkt-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 +3 -3
- package/dist/pkt-index.js +62 -63
- 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-progressbar.cjs +1 -1
- package/dist/pkt-progressbar.js +2 -2
- package/dist/pkt-radiobutton.cjs +1 -1
- package/dist/pkt-radiobutton.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/{progressbar-DF8IG5IY.cjs → progressbar-DhMBXkww.cjs} +7 -7
- package/dist/{progressbar-B75UwwRZ.js → progressbar-Dj_mI_A6.js} +13 -14
- package/dist/{radiobutton-DUpADoLc.cjs → radiobutton-0vVqu-GU.cjs} +1 -1
- package/dist/{radiobutton-CDO-HMP_.js → radiobutton-BcFRJFvI.js} +5 -5
- package/dist/{ref-DX488m2G.js → ref-BBYSqgeW.js} +2 -2
- package/dist/{ref-BMQZJJEo.cjs → ref-iJtiv3o2.cjs} +1 -1
- package/dist/{repeat-Dl4RVQIF.js → repeat-C8BeHwYx.js} +2 -2
- package/dist/{repeat-B93vZu9q.cjs → repeat-CDsZqct8.cjs} +1 -1
- package/dist/{select-q7qkLeW4.js → select-BaLHLuvH.js} +20 -20
- package/dist/select-CFpdOlDE.cjs +48 -0
- package/dist/{state-P2J1I2ny.js → state-Bo2bck5_.js} +1 -1
- package/dist/{state-y-GU-VH8.cjs → state-DPobt-Yz.cjs} +1 -1
- package/dist/{tag-OSIRLJc0.js → tag-BWm6s48d.js} +20 -21
- package/dist/tag-DPk3fpEg.cjs +18 -0
- package/dist/{textarea-BuhpS5Jj.cjs → textarea-CViiuZdR.cjs} +1 -1
- package/dist/{textarea-BIvwbRBK.js → textarea-EIFo7GZz.js} +22 -22
- package/dist/{textinput-BFbenR3I.js → textinput-BHS7b-Jt.js} +8 -8
- package/dist/{textinput-BUMlqXQC.cjs → textinput-_ZdyMA9O.cjs} +1 -1
- package/package.json +4 -4
- package/src/components/heading/heading.ts +3 -2
- package/dist/alert-DifeONO7.cjs +0 -32
- package/dist/backlink-C9qmM67k.cjs +0 -13
- package/dist/button-zO41ySZl.cjs +0 -19
- package/dist/calendar-BYYJH15O.cjs +0 -108
- package/dist/consent-BkgHuZ37.cjs +0 -11
- package/dist/element-DUJa1sRq.cjs +0 -212
- package/dist/heading-C6U6xiqH.cjs +0 -1
- package/dist/helptext-BxHMB-XH.cjs +0 -24
- package/dist/if-defined-BQOEcjlp.cjs +0 -5
- package/dist/input-element-B2JauW-Y.cjs +0 -1
- package/dist/input-element-CaCDNzdI.js +0 -230
- package/dist/link-Dhs4dS0S.cjs +0 -7
- package/dist/lit-element-DHqqtYbj.cjs +0 -27
- package/dist/lit-element-DcUrSbRH.js +0 -595
- package/dist/loader-5lt2W9RX.cjs +0 -11
- package/dist/messagebox-BSUbetVQ.cjs +0 -12
- package/dist/modal-5PZ-TDkV.cjs +0 -36
- package/dist/select-CE5L--Xw.cjs +0 -48
- package/dist/tag-sEPrma2U.cjs +0 -18
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { e as p } from "./class-map-
|
|
2
|
-
import {
|
|
3
|
-
import { r as
|
|
4
|
-
import { P as g } from "./element-Cfyyg4nF.js";
|
|
1
|
+
import { e as p } from "./class-map-BpTj9gtz.js";
|
|
2
|
+
import { P as k, E as f, x as r, n as l, a as v } from "./element-CgEWt74-.js";
|
|
3
|
+
import { r as g } from "./state-Bo2bck5_.js";
|
|
5
4
|
import { P as _ } from "./pkt-slot-controller-BPGj-LC5.js";
|
|
6
|
-
import { e as u, n as m } from "./ref-
|
|
7
|
-
import "./icon-
|
|
5
|
+
import { e as u, n as m } from "./ref-BBYSqgeW.js";
|
|
6
|
+
import "./icon-CC1js8eR.js";
|
|
8
7
|
const y = {
|
|
9
8
|
hideCloseButton: {
|
|
10
9
|
default: !1
|
|
@@ -18,12 +17,12 @@ const y = {
|
|
|
18
17
|
}, h = {
|
|
19
18
|
props: y
|
|
20
19
|
};
|
|
21
|
-
var w = Object.defineProperty, b = Object.getOwnPropertyDescriptor,
|
|
22
|
-
for (var
|
|
23
|
-
(d = e[c]) && (
|
|
24
|
-
return i &&
|
|
20
|
+
var w = Object.defineProperty, b = Object.getOwnPropertyDescriptor, a = (e, t, o, i) => {
|
|
21
|
+
for (var n = i > 1 ? void 0 : i ? b(t, o) : t, c = e.length - 1, d; c >= 0; c--)
|
|
22
|
+
(d = e[c]) && (n = (i ? d(t, o, n) : d(n)) || n);
|
|
23
|
+
return i && n && w(t, o, n), n;
|
|
25
24
|
};
|
|
26
|
-
let s = class extends
|
|
25
|
+
let s = class extends k {
|
|
27
26
|
constructor() {
|
|
28
27
|
super(), this.headingText = "", this.removePadding = !1, this.hideCloseButton = h.props.hideCloseButton.default, this.closeOnBackdropClick = h.props.closeOnBackdropClick.default, this.closeButtonSkin = "blue", this.size = h.props.size.default, this.variant = "dialog", this.drawerPosition = "right", this.transparentBackdrop = !1, this.defaultSlot = u(), this.dialogRef = u(), this._isOpen = !1, this.close = (e, t = !1) => {
|
|
29
28
|
var i;
|
|
@@ -84,7 +83,7 @@ let s = class extends g {
|
|
|
84
83
|
}, o = {
|
|
85
84
|
"pkt-modal__content": !0,
|
|
86
85
|
"pkt-txt-18-light": !0
|
|
87
|
-
}, i = this.closeButtonSkin === "blue",
|
|
86
|
+
}, i = this.closeButtonSkin === "blue", n = {
|
|
88
87
|
"pkt-modal__closeButton": !0,
|
|
89
88
|
[`pkt-modal__closeButton--${this.closeButtonSkin}`]: !0
|
|
90
89
|
}, c = {
|
|
@@ -107,7 +106,7 @@ let s = class extends g {
|
|
|
107
106
|
${this.headingText ? r`<h1 id="pkt-modal__headingText" class=${p(t)}>
|
|
108
107
|
${this.headingText}
|
|
109
108
|
</h1>` : r`<div class="pkt-modal__headingText"></div>`}
|
|
110
|
-
${this.hideCloseButton ? r`<div class="pkt-modal__noCloseButton"></div>` : r`<div class="${p(
|
|
109
|
+
${this.hideCloseButton ? r`<div class="pkt-modal__noCloseButton"></div>` : r`<div class="${p(n)}">
|
|
111
110
|
<pkt-button
|
|
112
111
|
@click=${(d) => this.close(d)}
|
|
113
112
|
class=${p(c)}
|
|
@@ -118,7 +117,7 @@ let s = class extends g {
|
|
|
118
117
|
Lukk
|
|
119
118
|
</pkt-button>
|
|
120
119
|
</div>`}
|
|
121
|
-
</div>` :
|
|
120
|
+
</div>` : f}
|
|
122
121
|
<div class="pkt-modal__container">
|
|
123
122
|
<div
|
|
124
123
|
id="pkt-modal__content"
|
|
@@ -131,38 +130,38 @@ let s = class extends g {
|
|
|
131
130
|
`;
|
|
132
131
|
}
|
|
133
132
|
};
|
|
134
|
-
|
|
133
|
+
a([
|
|
135
134
|
l({ type: String })
|
|
136
135
|
], s.prototype, "headingText", 2);
|
|
137
|
-
|
|
136
|
+
a([
|
|
138
137
|
l({ type: Boolean })
|
|
139
138
|
], s.prototype, "removePadding", 2);
|
|
140
|
-
|
|
139
|
+
a([
|
|
141
140
|
l({ type: Boolean })
|
|
142
141
|
], s.prototype, "hideCloseButton", 2);
|
|
143
|
-
|
|
142
|
+
a([
|
|
144
143
|
l({ type: Boolean })
|
|
145
144
|
], s.prototype, "closeOnBackdropClick", 2);
|
|
146
|
-
|
|
145
|
+
a([
|
|
147
146
|
l({ type: String })
|
|
148
147
|
], s.prototype, "closeButtonSkin", 2);
|
|
149
|
-
|
|
148
|
+
a([
|
|
150
149
|
l({ type: String })
|
|
151
150
|
], s.prototype, "size", 2);
|
|
152
|
-
|
|
151
|
+
a([
|
|
153
152
|
l({ type: String })
|
|
154
153
|
], s.prototype, "variant", 2);
|
|
155
|
-
|
|
154
|
+
a([
|
|
156
155
|
l({ type: String })
|
|
157
156
|
], s.prototype, "drawerPosition", 2);
|
|
158
|
-
|
|
157
|
+
a([
|
|
159
158
|
l({ type: Boolean })
|
|
160
159
|
], s.prototype, "transparentBackdrop", 2);
|
|
161
|
-
|
|
162
|
-
|
|
160
|
+
a([
|
|
161
|
+
g()
|
|
163
162
|
], s.prototype, "_isOpen", 2);
|
|
164
|
-
s =
|
|
165
|
-
|
|
163
|
+
s = a([
|
|
164
|
+
v("pkt-modal")
|
|
166
165
|
], s);
|
|
167
166
|
export {
|
|
168
167
|
s as P
|
package/dist/pkt-accordion.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./accordionitem-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./accordionitem-DjAWPtsn.cjs");exports.PktAccordion=e.PktAccordion;exports.PktAccordionItem=e.PktAccordionItem;exports.default=e.PktAccordion;
|
package/dist/pkt-accordion.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as r } from "./accordionitem-
|
|
2
|
-
import { a as c } from "./accordionitem-
|
|
1
|
+
import { P as r } from "./accordionitem-C9FI-NXW.js";
|
|
2
|
+
import { a as c } from "./accordionitem-C9FI-NXW.js";
|
|
3
3
|
export {
|
|
4
4
|
r as PktAccordion,
|
|
5
5
|
c as PktAccordionItem,
|
package/dist/pkt-alert.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./alert-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./alert-BH0lJ2ny.cjs"),t=e.PktAlert;Object.defineProperty(exports,"PktAlert",{enumerable:!0,get:()=>e.PktAlert});exports.default=t;
|
package/dist/pkt-alert.js
CHANGED
package/dist/pkt-backlink.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./backlink-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./backlink-C5jQRMwJ.cjs"),t=e.PktBackLink;Object.defineProperty(exports,"PktBackLink",{enumerable:!0,get:()=>e.PktBackLink});exports.default=t;
|
package/dist/pkt-backlink.js
CHANGED
package/dist/pkt-button.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./button-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./button-CDocR7iN.cjs"),e=t.PktButton;Object.defineProperty(exports,"PktButton",{enumerable:!0,get:()=>t.PktButton});exports.default=e;
|
package/dist/pkt-button.js
CHANGED
package/dist/pkt-calendar.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./calendar-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./calendar-BZe2D4Sr.cjs"),t=e.PktCalendar;Object.defineProperty(exports,"PktCalendar",{enumerable:!0,get:()=>e.PktCalendar});exports.default=t;
|
package/dist/pkt-calendar.js
CHANGED
package/dist/pkt-card.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./card-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./card-Bx36j0q4.cjs"),t=e.PktCard;Object.defineProperty(exports,"PktCard",{enumerable:!0,get:()=>e.PktCard});exports.default=t;
|
package/dist/pkt-card.js
CHANGED
package/dist/pkt-checkbox.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./checkbox-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./checkbox-CJ4tK9RC.cjs"),t=e.PktCheckbox;Object.defineProperty(exports,"PktCheckbox",{enumerable:!0,get:()=>e.PktCheckbox});exports.default=t;
|
package/dist/pkt-checkbox.js
CHANGED
package/dist/pkt-combobox.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./combobox-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./combobox-Cv6i7BEk.cjs"),o=e.PktCombobox;Object.defineProperty(exports,"PktCombobox",{enumerable:!0,get:()=>e.PktCombobox});exports.default=o;
|
package/dist/pkt-combobox.js
CHANGED
package/dist/pkt-consent.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./consent-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./consent-DrS71kvz.cjs"),t=e.PktConsent;Object.defineProperty(exports,"PktConsent",{enumerable:!0,get:()=>e.PktConsent});exports.default=t;
|
package/dist/pkt-consent.js
CHANGED
package/dist/pkt-datepicker.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./datepicker
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./datepicker-BJe92Vor.cjs"),t=e.PktDatepicker;Object.defineProperty(exports,"PktDatepicker",{enumerable:!0,get:()=>e.PktDatepicker});exports.default=t;
|
package/dist/pkt-datepicker.js
CHANGED
package/dist/pkt-heading.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./heading-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./heading-BRE_iFtR.cjs"),t=e.PktHeading;Object.defineProperty(exports,"PktHeading",{enumerable:!0,get:()=>e.PktHeading});exports.default=t;
|
package/dist/pkt-heading.js
CHANGED
package/dist/pkt-helptext.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./helptext-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./helptext-CzQX6YVE.cjs"),t=e.PktHelptext;Object.defineProperty(exports,"PktHelptext",{enumerable:!0,get:()=>e.PktHelptext});exports.default=t;
|
package/dist/pkt-helptext.js
CHANGED
package/dist/pkt-icon.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./icon-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./icon-B_ryAy4Q.cjs"),t=e.PktIcon;Object.defineProperty(exports,"PktIcon",{enumerable:!0,get:()=>e.PktIcon});exports.default=t;
|
package/dist/pkt-icon.js
CHANGED
package/dist/pkt-index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("./alert-BH0lJ2ny.cjs"),l=require("./accordionitem-DjAWPtsn.cjs"),d=require("./backlink-C5jQRMwJ.cjs"),b=require("./button-CDocR7iN.cjs"),k=require("./calendar-BZe2D4Sr.cjs"),m=require("./card-Bx36j0q4.cjs"),g=require("./combobox-Cv6i7BEk.cjs"),h=require("./consent-DrS71kvz.cjs"),f=require("./checkbox-CJ4tK9RC.cjs"),t=require("./element-6DBpyGQm.cjs"),y=require("./pkt-slot-controller-BzddBp7z.cjs"),s=require("./ref-iJtiv3o2.cjs"),O=require("./class-map-BBG2gMX4.cjs"),j=require("./datepicker-BJe92Vor.cjs"),q=require("./helptext-CzQX6YVE.cjs"),x=require("./heading-BRE_iFtR.cjs"),C=require("./icon-B_ryAy4Q.cjs"),v=require("./input-wrapper-BxZf8wEP.cjs"),S=require("./link-DTkjNlmy.cjs"),$=require("./linkcard-BlMhPNry.cjs"),L=require("./loader-CHPxY9c6.cjs"),_=require("./messagebox-CqUBJs_D.cjs"),A=require("./modal-BdA5aWGU.cjs"),B=require("./progressbar-DhMBXkww.cjs"),p=require("./radiobutton-0vVqu-GU.cjs"),T=require("./tag-DPk3fpEg.cjs"),I=require("./textarea-CViiuZdR.cjs"),M=require("./textinput-_ZdyMA9O.cjs"),R=require("./select-CFpdOlDE.cjs");var H=Object.defineProperty,w=Object.getOwnPropertyDescriptor,o=(a,e,r,i)=>{for(var n=i>1?void 0:i?w(e,r):e,u=a.length-1,c;u>=0;u--)(c=a[u])&&(n=(i?c(e,r,n):c(n))||n);return i&&n&&H(e,r,n),n};exports.PktComponent=class extends t.PktElement{constructor(){super(),this.string="",this.strings=[],this.darkmode=!1,this._list=[],this.defaultSlot=s.e(),this.namedSlot=s.e(),this.slotController=new y.PktSlotController(this,this.defaultSlot,this.namedSlot)}connectedCallback(){this.strings.length&&this.strings.forEach(e=>{this._list.push(e.toUpperCase())}),super.connectedCallback()}render(){const e={"pkt-component":!0,"pkt-component--has-list":this.strings.length>0,"pkt-darkmode":this.darkmode};return t.x`
|
|
2
2
|
<div class="${O.e(e)}">
|
|
3
3
|
<h1 class="pkt-txt-28">${this.string}</h1>
|
|
4
4
|
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
|
|
20
20
|
<h2 class="pkt-txt-22">Knapp som emitter en event</h2>
|
|
21
21
|
<button type="button" @click=${()=>this.handleGreeting()}>
|
|
22
|
-
Si ${
|
|
22
|
+
Si ${t.translations.example.hi}
|
|
23
23
|
</button>
|
|
24
24
|
</div>
|
|
25
25
|
`}renderList(e){return t.x`
|
|
26
26
|
<ul>
|
|
27
27
|
${e.map(r=>t.x`<li>${r}</li>`)}
|
|
28
28
|
</ul>
|
|
29
|
-
`}doStuff(e){return e.reverse()}handleGreeting(){this.dispatchEvent(new CustomEvent("pkt-greeting",{detail:"Hei på deg!"}))}};o([t.n({type:String})],exports.PktComponent.prototype,"string",2);o([t.n({converter:
|
|
29
|
+
`}doStuff(e){return e.reverse()}handleGreeting(){this.dispatchEvent(new CustomEvent("pkt-greeting",{detail:"Hei på deg!"}))}};o([t.n({type:String})],exports.PktComponent.prototype,"string",2);o([t.n({converter:k.csvToArray})],exports.PktComponent.prototype,"strings",2);o([t.n({type:Boolean})],exports.PktComponent.prototype,"darkmode",2);o([t.n({type:Array})],exports.PktComponent.prototype,"_list",2);exports.PktComponent=o([t.t("pkt-component")],exports.PktComponent);Object.defineProperty(exports,"PktAlert",{enumerable:!0,get:()=>P.PktAlert});exports.PktAccordion=l.PktAccordion;exports.PktAccordionItem=l.PktAccordionItem;Object.defineProperty(exports,"PktBackLink",{enumerable:!0,get:()=>d.PktBackLink});Object.defineProperty(exports,"PktButton",{enumerable:!0,get:()=>b.PktButton});Object.defineProperty(exports,"PktCalendar",{enumerable:!0,get:()=>k.PktCalendar});Object.defineProperty(exports,"PktCard",{enumerable:!0,get:()=>m.PktCard});Object.defineProperty(exports,"PktCombobox",{enumerable:!0,get:()=>g.PktCombobox});Object.defineProperty(exports,"PktConsent",{enumerable:!0,get:()=>h.PktConsent});Object.defineProperty(exports,"PktCheckbox",{enumerable:!0,get:()=>f.PktCheckbox});Object.defineProperty(exports,"PktDatepicker",{enumerable:!0,get:()=>j.PktDatepicker});Object.defineProperty(exports,"PktHelptext",{enumerable:!0,get:()=>q.PktHelptext});Object.defineProperty(exports,"PktHeading",{enumerable:!0,get:()=>x.PktHeading});Object.defineProperty(exports,"PktIcon",{enumerable:!0,get:()=>C.PktIcon});Object.defineProperty(exports,"PktInputWrapper",{enumerable:!0,get:()=>v.PktInputWrapper});Object.defineProperty(exports,"PktLink",{enumerable:!0,get:()=>S.PktLink});Object.defineProperty(exports,"PktLinkCard",{enumerable:!0,get:()=>$.PktLinkCard});Object.defineProperty(exports,"PktLoader",{enumerable:!0,get:()=>L.PktLoader});Object.defineProperty(exports,"PktMessagebox",{enumerable:!0,get:()=>_.PktMessagebox});Object.defineProperty(exports,"PktModal",{enumerable:!0,get:()=>A.PktModal});Object.defineProperty(exports,"PktProgressbar",{enumerable:!0,get:()=>B.PktProgressbar});Object.defineProperty(exports,"PktRadioButton",{enumerable:!0,get:()=>p.PktRadioButton});Object.defineProperty(exports,"PktRadiobutton",{enumerable:!0,get:()=>p.PktRadioButton});Object.defineProperty(exports,"PktTag",{enumerable:!0,get:()=>T.PktTag});Object.defineProperty(exports,"PktTextarea",{enumerable:!0,get:()=>I.PktTextarea});Object.defineProperty(exports,"PktTextinput",{enumerable:!0,get:()=>M.PktTextinput});Object.defineProperty(exports,"PktSelect",{enumerable:!0,get:()=>R.PktSelect});
|
package/dist/pkt-index.js
CHANGED
|
@@ -1,40 +1,39 @@
|
|
|
1
|
-
import { P as
|
|
2
|
-
import { P as
|
|
3
|
-
import { P as
|
|
4
|
-
import { P as
|
|
5
|
-
import { c as
|
|
6
|
-
import { P as
|
|
7
|
-
import { P as
|
|
8
|
-
import { P as
|
|
9
|
-
import { P as
|
|
10
|
-
import { P as
|
|
11
|
-
import { x as P, n,
|
|
12
|
-
import { P as h, t as c } from "./element-Cfyyg4nF.js";
|
|
1
|
+
import { P as A } from "./alert-B0OUR9oD.js";
|
|
2
|
+
import { P as B, a as E } from "./accordionitem-C9FI-NXW.js";
|
|
3
|
+
import { P as O } from "./backlink-B13JTp9D.js";
|
|
4
|
+
import { P as T } from "./button-DrrEvUy9.js";
|
|
5
|
+
import { c as f } from "./calendar-DevQhOup.js";
|
|
6
|
+
import { P as D } from "./calendar-DevQhOup.js";
|
|
7
|
+
import { P as G } from "./card-Djnd-pgo.js";
|
|
8
|
+
import { P as K } from "./combobox-kWGI4RHI.js";
|
|
9
|
+
import { P as U } from "./consent-CftYu8Di.js";
|
|
10
|
+
import { P as q } from "./checkbox-cD_5LDzV.js";
|
|
11
|
+
import { P as k, t as h, x as P, n, a as c } from "./element-CgEWt74-.js";
|
|
13
12
|
import { P as x } from "./pkt-slot-controller-BPGj-LC5.js";
|
|
14
|
-
import { e as m, n as
|
|
15
|
-
import { e as u } from "./class-map-
|
|
16
|
-
import { P as
|
|
17
|
-
import { P as
|
|
18
|
-
import { P as
|
|
19
|
-
import { P as
|
|
20
|
-
import { P as
|
|
21
|
-
import { P as
|
|
22
|
-
import { P as
|
|
23
|
-
import { P as
|
|
24
|
-
import { P as
|
|
25
|
-
import { P as
|
|
26
|
-
import { P as
|
|
27
|
-
import { P as
|
|
28
|
-
import { P as
|
|
29
|
-
import { P as
|
|
30
|
-
import { P as
|
|
31
|
-
import { P as
|
|
13
|
+
import { e as m, n as d } from "./ref-BBYSqgeW.js";
|
|
14
|
+
import { e as u } from "./class-map-BpTj9gtz.js";
|
|
15
|
+
import { P as F } from "./datepicker-LpbYHx8L.js";
|
|
16
|
+
import { P as Q } from "./helptext-B7eI0iBQ.js";
|
|
17
|
+
import { P as X } from "./heading-D6jXE_Mz.js";
|
|
18
|
+
import { P as Z } from "./icon-CC1js8eR.js";
|
|
19
|
+
import { P as et } from "./input-wrapper-gz7ppKrK.js";
|
|
20
|
+
import { P as ot } from "./link-C76H6Qf1.js";
|
|
21
|
+
import { P as at } from "./linkcard-BVEsUPwG.js";
|
|
22
|
+
import { P as it } from "./loader-Da4IOk_T.js";
|
|
23
|
+
import { P as lt } from "./messagebox-DwGdcdm7.js";
|
|
24
|
+
import { P as mt } from "./modal-DcXPnFus.js";
|
|
25
|
+
import { P as ft } from "./progressbar-Dj_mI_A6.js";
|
|
26
|
+
import { P as ht, P as ct } from "./radiobutton-BcFRJFvI.js";
|
|
27
|
+
import { P as ut } from "./tag-BWm6s48d.js";
|
|
28
|
+
import { P as vt } from "./textarea-EIFo7GZz.js";
|
|
29
|
+
import { P as bt } from "./textinput-BHS7b-Jt.js";
|
|
30
|
+
import { P as $t } from "./select-BaLHLuvH.js";
|
|
32
31
|
var g = Object.defineProperty, v = Object.getOwnPropertyDescriptor, s = (t, e, i, a) => {
|
|
33
32
|
for (var r = a > 1 ? void 0 : a ? v(e, i) : e, p = t.length - 1, l; p >= 0; p--)
|
|
34
33
|
(l = t[p]) && (r = (a ? l(e, i, r) : l(r)) || r);
|
|
35
34
|
return a && r && g(e, i, r), r;
|
|
36
35
|
};
|
|
37
|
-
let o = class extends
|
|
36
|
+
let o = class extends k {
|
|
38
37
|
constructor() {
|
|
39
38
|
super(), this.string = "", this.strings = [], this.darkmode = !1, this._list = [], this.defaultSlot = m(), this.namedSlot = m(), this.slotController = new x(this, this.defaultSlot, this.namedSlot);
|
|
40
39
|
}
|
|
@@ -64,11 +63,11 @@ let o = class extends h {
|
|
|
64
63
|
<div>${this.renderList(this.doStuff(this._list))}</div>
|
|
65
64
|
|
|
66
65
|
<h2 class="pkt-txt-22">Slot</h2>
|
|
67
|
-
<div ${
|
|
66
|
+
<div ${d(this.defaultSlot)}>defaultSlotRef</div>
|
|
68
67
|
<h2 class="pkt-txt-22">Named slot</h2>
|
|
69
68
|
<select
|
|
70
69
|
name="named-slot"
|
|
71
|
-
${
|
|
70
|
+
${d(this.namedSlot)}
|
|
72
71
|
@change=${(e) => alert(e.target.value)}
|
|
73
72
|
>
|
|
74
73
|
namedSlotRef
|
|
@@ -76,7 +75,7 @@ let o = class extends h {
|
|
|
76
75
|
|
|
77
76
|
<h2 class="pkt-txt-22">Knapp som emitter en event</h2>
|
|
78
77
|
<button type="button" @click=${() => this.handleGreeting()}>
|
|
79
|
-
Si ${
|
|
78
|
+
Si ${h.example.hi}
|
|
80
79
|
</button>
|
|
81
80
|
</div>
|
|
82
81
|
`;
|
|
@@ -109,7 +108,7 @@ s([
|
|
|
109
108
|
n({ type: String })
|
|
110
109
|
], o.prototype, "string", 2);
|
|
111
110
|
s([
|
|
112
|
-
n({ converter:
|
|
111
|
+
n({ converter: f })
|
|
113
112
|
], o.prototype, "strings", 2);
|
|
114
113
|
s([
|
|
115
114
|
n({ type: Boolean })
|
|
@@ -118,35 +117,35 @@ s([
|
|
|
118
117
|
n({ type: Array })
|
|
119
118
|
], o.prototype, "_list", 2);
|
|
120
119
|
o = s([
|
|
121
|
-
|
|
120
|
+
c("pkt-component")
|
|
122
121
|
], o);
|
|
123
122
|
export {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
123
|
+
B as PktAccordion,
|
|
124
|
+
E as PktAccordionItem,
|
|
125
|
+
A as PktAlert,
|
|
126
|
+
O as PktBackLink,
|
|
127
|
+
T as PktButton,
|
|
128
|
+
D as PktCalendar,
|
|
129
|
+
G as PktCard,
|
|
130
|
+
q as PktCheckbox,
|
|
131
|
+
K as PktCombobox,
|
|
133
132
|
o as PktComponent,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
133
|
+
U as PktConsent,
|
|
134
|
+
F as PktDatepicker,
|
|
135
|
+
X as PktHeading,
|
|
136
|
+
Q as PktHelptext,
|
|
137
|
+
Z as PktIcon,
|
|
138
|
+
et as PktInputWrapper,
|
|
139
|
+
ot as PktLink,
|
|
140
|
+
at as PktLinkCard,
|
|
141
|
+
it as PktLoader,
|
|
142
|
+
lt as PktMessagebox,
|
|
143
|
+
mt as PktModal,
|
|
144
|
+
ft as PktProgressbar,
|
|
145
|
+
ht as PktRadioButton,
|
|
146
|
+
ct as PktRadiobutton,
|
|
147
|
+
$t as PktSelect,
|
|
148
|
+
ut as PktTag,
|
|
149
|
+
vt as PktTextarea,
|
|
150
|
+
bt as PktTextinput
|
|
152
151
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./input-wrapper-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./input-wrapper-BxZf8wEP.cjs"),t=e.PktInputWrapper;Object.defineProperty(exports,"PktInputWrapper",{enumerable:!0,get:()=>e.PktInputWrapper});exports.default=t;
|
package/dist/pkt-link.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./link-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./link-DTkjNlmy.cjs"),t=e.PktLink;Object.defineProperty(exports,"PktLink",{enumerable:!0,get:()=>e.PktLink});exports.default=t;
|
package/dist/pkt-link.js
CHANGED
package/dist/pkt-linkcard.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./linkcard-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./linkcard-BlMhPNry.cjs"),t=e.PktLinkCard;Object.defineProperty(exports,"PktLinkCard",{enumerable:!0,get:()=>e.PktLinkCard});exports.default=t;
|
package/dist/pkt-linkcard.js
CHANGED
package/dist/pkt-listbox.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./listbox-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./listbox-C4supLfR.cjs"),t=e.PktListbox;Object.defineProperty(exports,"PktListbox",{enumerable:!0,get:()=>e.PktListbox});exports.default=t;
|
package/dist/pkt-listbox.js
CHANGED
package/dist/pkt-loader.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./loader-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./loader-CHPxY9c6.cjs"),t=e.PktLoader;Object.defineProperty(exports,"PktLoader",{enumerable:!0,get:()=>e.PktLoader});exports.default=t;
|
package/dist/pkt-loader.js
CHANGED
package/dist/pkt-messagebox.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./messagebox-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./messagebox-CqUBJs_D.cjs"),t=e.PktMessagebox;Object.defineProperty(exports,"PktMessagebox",{enumerable:!0,get:()=>e.PktMessagebox});exports.default=t;
|
package/dist/pkt-messagebox.js
CHANGED
package/dist/pkt-modal.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./modal-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./modal-BdA5aWGU.cjs"),t=e.PktModal;Object.defineProperty(exports,"PktModal",{enumerable:!0,get:()=>e.PktModal});exports.default=t;
|
package/dist/pkt-modal.js
CHANGED
package/dist/pkt-progressbar.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./progressbar-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./progressbar-DhMBXkww.cjs");Object.defineProperty(exports,"PktProgressbar",{enumerable:!0,get:()=>e.PktProgressbar});exports.default=e.PktProgressbar$1;
|
package/dist/pkt-progressbar.js
CHANGED
package/dist/pkt-radiobutton.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./radiobutton-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./radiobutton-0vVqu-GU.cjs"),e=t.PktRadioButton;Object.defineProperty(exports,"PktRadioButton",{enumerable:!0,get:()=>t.PktRadioButton});exports.default=e;
|
package/dist/pkt-radiobutton.js
CHANGED
package/dist/pkt-select.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./select-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./select-CFpdOlDE.cjs"),t=e.PktSelect;Object.defineProperty(exports,"PktSelect",{enumerable:!0,get:()=>e.PktSelect});exports.default=t;
|
package/dist/pkt-select.js
CHANGED