@oslokommune/punkt-elements 12.30.2 → 12.31.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/dist/{alert-CP5oN7df.cjs → alert-BDxxRqgi.cjs} +1 -1
- package/dist/{alert-CugVni4g.js → alert-D0S57u0r.js} +5 -5
- package/dist/backlink-CzpB-ih9.js +46 -0
- package/dist/backlink-Dn4DfWVR.cjs +13 -0
- package/dist/backlink.d.ts +15 -0
- package/dist/{button-BCcznC7Q.js → button-9NwGr-OS.js} +2 -2
- package/dist/{button-rngMU-vh.cjs → button-Beo3c7cx.cjs} +1 -1
- package/dist/{calendar-DevhqUoj.js → calendar-BbZNxsKY.js} +4 -4
- package/dist/{calendar-DUkAC9Hx.cjs → calendar-CxBo98iI.cjs} +1 -1
- package/dist/{card-CGMZxbH_.js → card-B0uNyDCw.js} +6 -6
- package/dist/{card-D6VEEvX3.cjs → card-BWslf2mu.cjs} +1 -1
- package/dist/{checkbox-CDMUepTW.cjs → checkbox-9Zjy_NU7.cjs} +1 -1
- package/dist/{checkbox-Dw2CX5zY.js → checkbox-CzDpR6_8.js} +11 -11
- package/dist/{class-map-BYCG9U47.js → class-map-DWtqmIRS.js} +10 -9
- package/dist/class-map-Dj5mbCUg.cjs +5 -0
- package/dist/datepicker-BczZqaup.cjs +155 -0
- package/dist/{datepicker-LKIwV9DD.js → datepicker-CQZ84VOS.js} +18 -17
- package/dist/directive-B76A7YXI.js +27 -0
- package/dist/directive-C_VV3qwo.cjs +5 -0
- package/dist/{element-D_ZgQsSr.js → element-C7XjZtLU.js} +401 -426
- package/dist/{element-r-PeQ419.cjs → element-CzFXQBoS.cjs} +23 -27
- package/dist/{helptext-C0mrdhRi.cjs → helptext-B9kxDc2b.cjs} +1 -1
- package/dist/{helptext-RPq_TKzJ.js → helptext-CqnoPodd.js} +5 -5
- package/dist/{icon-BBFK-d-X.js → icon-BEUgV9Wo.js} +18 -17
- package/dist/icon-BOKusjAA.cjs +9 -0
- package/dist/{if-defined-CWHk9Kqm.cjs → if-defined-CpIkv1A4.cjs} +1 -1
- package/dist/{if-defined-u8oGOhnv.js → if-defined-eRX4e5zO.js} +1 -1
- package/dist/index.d.ts +16 -2
- package/dist/{input-element-B6BTwL1q.js → input-element-BK8UkQli.js} +32 -20
- package/dist/input-element-Dtyuf6s8.cjs +1 -0
- package/dist/{input-wrapper-Dqj4uers.cjs → input-wrapper-Bo2_t6pA.cjs} +1 -1
- package/dist/{input-wrapper-D-pEAZaj.js → input-wrapper-DaZZq8c0.js} +6 -6
- package/dist/{link-C_bwx1Ml.cjs → link-1iq0Pmuf.cjs} +1 -1
- package/dist/{link-CDkU7zsB.js → link-D3U0Jkz8.js} +4 -4
- package/dist/{linkcard-C6mZOE0R.cjs → linkcard-2WzDJPZz.cjs} +1 -1
- package/dist/{linkcard-Dr5iKZrV.js → linkcard-CRpo3tiw.js} +3 -3
- package/dist/{loader-ChVEsONa.js → loader-B1edLWTg.js} +5 -5
- package/dist/{loader-DQV1hMM3.cjs → loader-DI74pe25.cjs} +1 -1
- package/dist/{messagebox-BSyLVNas.cjs → messagebox-DQpEMkS2.cjs} +1 -1
- package/dist/{messagebox-Di7LUz4C.js → messagebox-KP-8-tA9.js} +5 -5
- package/dist/{modal-DZUQb_yG.js → modal-kPX8nO_L.js} +5 -5
- package/dist/{modal-CblCiNUi.cjs → modal-ytIJwfr3.cjs} +1 -1
- package/dist/pkt-alert.cjs +1 -1
- package/dist/pkt-alert.js +1 -1
- package/dist/pkt-backlink.cjs +1 -0
- package/dist/pkt-backlink.js +6 -0
- 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-datepicker.cjs +1 -1
- package/dist/pkt-datepicker.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 +46 -44
- 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 +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-B6A9UVXS.cjs +21 -0
- package/dist/{progressbar-CuZj4FWi.js → progressbar-D0nxLqHu.js} +14 -13
- package/dist/radiobutton-BWyQgR_x.cjs +24 -0
- package/dist/radiobutton-DLWjvLBO.js +88 -0
- package/dist/ref-2anvRHT4.cjs +13 -0
- package/dist/{ref-BSGI8ogR.js → ref-DbOSDQbk.js} +27 -26
- package/dist/{select-CnizDIYN.js → select-CzuxXKll.js} +6 -6
- package/dist/{select-DJu4Wr1y.cjs → select-DZL6aa2s.cjs} +1 -1
- package/dist/{state-DuS4ffEQ.js → state-CDQk0DFQ.js} +1 -1
- package/dist/{state-B77EXPZ9.cjs → state-HNj0_316.cjs} +1 -1
- package/dist/{tag-BFqxindw.js → tag-CHtPXyP5.js} +5 -5
- package/dist/{tag-B3KEILId.cjs → tag-D6ARkq2Z.cjs} +1 -1
- package/dist/{textarea-uzzCtHtj.js → textarea-BPqWCymU.js} +17 -16
- package/dist/textarea-VG-UTMLP.cjs +49 -0
- package/dist/{textinput-BRupcl9v.cjs → textinput-CEP7QA3E.cjs} +1 -1
- package/dist/{textinput-DRkv93vp.js → textinput-VD74aGzx.js} +8 -8
- package/package.json +3 -3
- package/src/components/backlink/backlink.ts +52 -0
- package/src/components/backlink/index.ts +6 -0
- package/src/components/checkbox/checkbox.ts +1 -1
- package/src/components/index.ts +3 -0
- package/src/components/radiobutton/radiobutton.ts +13 -3
- package/dist/class-map-Dzci3Pfe.cjs +0 -5
- package/dist/datepicker-NbLoqIKZ.cjs +0 -155
- package/dist/icon-DcJIqTIY.cjs +0 -9
- package/dist/input-element-KOSm5htR.cjs +0 -1
- package/dist/progressbar-C_q48_qh.cjs +0 -21
- package/dist/radiobutton-3e105CXX.cjs +0 -24
- package/dist/radiobutton-CcZ2-z8q.js +0 -88
- package/dist/ref-BUWgvhgU.cjs +0 -13
- package/dist/textarea-BKCVcJ6E.cjs +0 -49
package/dist/pkt-datepicker.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-B9kxDc2b.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-BOKusjAA.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,5 +1,5 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
<div class="${
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("./alert-BDxxRqgi.cjs"),d=require("./backlink-Dn4DfWVR.cjs"),P=require("./button-Beo3c7cx.cjs"),c=require("./calendar-CxBo98iI.cjs"),b=require("./card-BWslf2mu.cjs"),m=require("./checkbox-9Zjy_NU7.cjs"),t=require("./element-CzFXQBoS.cjs"),g=require("./pkt-slot-controller-Oc32unDk.cjs"),s=require("./ref-2anvRHT4.cjs"),h=require("./class-map-Dj5mbCUg.cjs"),f=require("./datepicker-BczZqaup.cjs"),y=require("./helptext-B9kxDc2b.cjs"),O=require("./icon-BOKusjAA.cjs"),j=require("./input-wrapper-Bo2_t6pA.cjs"),q=require("./link-1iq0Pmuf.cjs"),x=require("./linkcard-2WzDJPZz.cjs"),C=require("./loader-DI74pe25.cjs"),v=require("./messagebox-DQpEMkS2.cjs"),S=require("./modal-ytIJwfr3.cjs"),$=require("./progressbar-B6A9UVXS.cjs"),p=require("./radiobutton-BWyQgR_x.cjs"),L=require("./tag-D6ARkq2Z.cjs"),_=require("./textarea-VG-UTMLP.cjs"),B=require("./textinput-CEP7QA3E.cjs"),T=require("./select-DZL6aa2s.cjs");var M=Object.defineProperty,R=Object.getOwnPropertyDescriptor,o=(a,e,r,i)=>{for(var n=i>1?void 0:i?R(e,r):e,u=a.length-1,l;u>=0;u--)(l=a[u])&&(n=(i?l(e,r,n):l(n))||n);return i&&n&&M(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 g.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
|
+
<div class="${h.e(e)}">
|
|
3
3
|
<h1 class="pkt-txt-28">${this.string}</h1>
|
|
4
4
|
|
|
5
5
|
<h2 class="pkt-txt-22">Innhold fra attributter og funksjoner</h2>
|
|
@@ -26,4 +26,4 @@
|
|
|
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:c.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:()=>
|
|
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:c.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:()=>k.PktAlert});Object.defineProperty(exports,"PktBackLink",{enumerable:!0,get:()=>d.PktBackLink});Object.defineProperty(exports,"PktButton",{enumerable:!0,get:()=>P.PktButton});Object.defineProperty(exports,"PktCalendar",{enumerable:!0,get:()=>c.PktCalendar});Object.defineProperty(exports,"PktCard",{enumerable:!0,get:()=>b.PktCard});Object.defineProperty(exports,"PktCheckbox",{enumerable:!0,get:()=>m.PktCheckbox});Object.defineProperty(exports,"PktDatepicker",{enumerable:!0,get:()=>f.PktDatepicker});Object.defineProperty(exports,"PktHelptext",{enumerable:!0,get:()=>y.PktHelptext});Object.defineProperty(exports,"PktIcon",{enumerable:!0,get:()=>O.PktIcon});Object.defineProperty(exports,"PktInputWrapper",{enumerable:!0,get:()=>j.PktInputWrapper});Object.defineProperty(exports,"PktLink",{enumerable:!0,get:()=>q.PktLink});Object.defineProperty(exports,"PktLinkCard",{enumerable:!0,get:()=>x.PktLinkCard});Object.defineProperty(exports,"PktLoader",{enumerable:!0,get:()=>C.PktLoader});Object.defineProperty(exports,"PktMessagebox",{enumerable:!0,get:()=>v.PktMessagebox});Object.defineProperty(exports,"PktModal",{enumerable:!0,get:()=>S.PktModal});Object.defineProperty(exports,"PktProgressbar",{enumerable:!0,get:()=>$.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:()=>L.PktTag});Object.defineProperty(exports,"PktTextarea",{enumerable:!0,get:()=>_.PktTextarea});Object.defineProperty(exports,"PktTextinput",{enumerable:!0,get:()=>B.PktTextinput});Object.defineProperty(exports,"PktSelect",{enumerable:!0,get:()=>T.PktSelect});
|
package/dist/pkt-index.js
CHANGED
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import { P as w } from "./alert-
|
|
2
|
-
import { P as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { P as
|
|
6
|
-
import { P as D } from "./
|
|
7
|
-
import { P as
|
|
1
|
+
import { P as w } from "./alert-D0S57u0r.js";
|
|
2
|
+
import { P as E } from "./backlink-CzpB-ih9.js";
|
|
3
|
+
import { P as R } from "./button-9NwGr-OS.js";
|
|
4
|
+
import { c as d } from "./calendar-BbZNxsKY.js";
|
|
5
|
+
import { P as j } from "./calendar-BbZNxsKY.js";
|
|
6
|
+
import { P as D } from "./card-B0uNyDCw.js";
|
|
7
|
+
import { P as G } from "./checkbox-CzDpR6_8.js";
|
|
8
|
+
import { P as f, x as P, t as k, n, a as c } from "./element-C7XjZtLU.js";
|
|
8
9
|
import { P as x } from "./pkt-slot-controller-Clbye6cM.js";
|
|
9
|
-
import { e as m, n as h } from "./ref-
|
|
10
|
-
import { e as u } from "./class-map-
|
|
11
|
-
import { P as
|
|
12
|
-
import { P as
|
|
13
|
-
import { P as
|
|
14
|
-
import { P as
|
|
15
|
-
import { P as
|
|
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
|
|
10
|
+
import { e as m, n as h } from "./ref-DbOSDQbk.js";
|
|
11
|
+
import { e as u } from "./class-map-DWtqmIRS.js";
|
|
12
|
+
import { P as M } from "./datepicker-CQZ84VOS.js";
|
|
13
|
+
import { P as N } from "./helptext-CqnoPodd.js";
|
|
14
|
+
import { P as W } from "./icon-BEUgV9Wo.js";
|
|
15
|
+
import { P as z } from "./input-wrapper-DaZZq8c0.js";
|
|
16
|
+
import { P as J } from "./link-D3U0Jkz8.js";
|
|
17
|
+
import { P as V } from "./linkcard-CRpo3tiw.js";
|
|
18
|
+
import { P as Y } from "./loader-B1edLWTg.js";
|
|
19
|
+
import { P as tt } from "./messagebox-KP-8-tA9.js";
|
|
20
|
+
import { P as rt } from "./modal-kPX8nO_L.js";
|
|
21
|
+
import { P as st } from "./progressbar-D0nxLqHu.js";
|
|
22
|
+
import { P as nt, P as it } from "./radiobutton-DLWjvLBO.js";
|
|
23
|
+
import { P as lt } from "./tag-CHtPXyP5.js";
|
|
24
|
+
import { P as mt } from "./textarea-BPqWCymU.js";
|
|
25
|
+
import { P as dt } from "./textinput-VD74aGzx.js";
|
|
26
|
+
import { P as kt } from "./select-CzuxXKll.js";
|
|
26
27
|
var g = Object.defineProperty, v = Object.getOwnPropertyDescriptor, s = (t, e, i, a) => {
|
|
27
28
|
for (var r = a > 1 ? void 0 : a ? v(e, i) : e, p = t.length - 1, l; p >= 0; p--)
|
|
28
29
|
(l = t[p]) && (r = (a ? l(e, i, r) : l(r)) || r);
|
|
@@ -116,25 +117,26 @@ o = s([
|
|
|
116
117
|
], o);
|
|
117
118
|
export {
|
|
118
119
|
w as PktAlert,
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
D as
|
|
120
|
+
E as PktBackLink,
|
|
121
|
+
R as PktButton,
|
|
122
|
+
j as PktCalendar,
|
|
123
|
+
D as PktCard,
|
|
124
|
+
G as PktCheckbox,
|
|
123
125
|
o as PktComponent,
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
126
|
+
M as PktDatepicker,
|
|
127
|
+
N as PktHelptext,
|
|
128
|
+
W as PktIcon,
|
|
129
|
+
z as PktInputWrapper,
|
|
130
|
+
J as PktLink,
|
|
131
|
+
V as PktLinkCard,
|
|
132
|
+
Y as PktLoader,
|
|
133
|
+
tt as PktMessagebox,
|
|
134
|
+
rt as PktModal,
|
|
135
|
+
st as PktProgressbar,
|
|
136
|
+
nt as PktRadioButton,
|
|
137
|
+
it as PktRadiobutton,
|
|
138
|
+
kt as PktSelect,
|
|
139
|
+
lt as PktTag,
|
|
140
|
+
mt as PktTextarea,
|
|
141
|
+
dt as PktTextinput
|
|
140
142
|
};
|
|
@@ -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-Bo2_t6pA.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-1iq0Pmuf.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-2WzDJPZz.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-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-DI74pe25.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-DQpEMkS2.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-ytIJwfr3.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-B6A9UVXS.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-BWyQgR_x.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-DZL6aa2s.cjs"),t=e.PktSelect;Object.defineProperty(exports,"PktSelect",{enumerable:!0,get:()=>e.PktSelect});exports.default=t;
|
package/dist/pkt-select.js
CHANGED
package/dist/pkt-tag.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./tag-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./tag-D6ARkq2Z.cjs"),t=e.PktTag;Object.defineProperty(exports,"PktTag",{enumerable:!0,get:()=>e.PktTag});exports.default=t;
|
package/dist/pkt-tag.js
CHANGED
package/dist/pkt-textarea.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./textarea-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./textarea-VG-UTMLP.cjs"),t=e.PktTextarea;Object.defineProperty(exports,"PktTextarea",{enumerable:!0,get:()=>e.PktTextarea});exports.default=t;
|
package/dist/pkt-textarea.js
CHANGED
package/dist/pkt-textinput.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./textinput-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./textinput-CEP7QA3E.cjs"),t=e.PktTextinput;Object.defineProperty(exports,"PktTextinput",{enumerable:!0,get:()=>e.PktTextinput});exports.default=t;
|
package/dist/pkt-textinput.js
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";const n=require("./class-map-Dj5mbCUg.cjs"),e=require("./element-CzFXQBoS.cjs"),p=require("./state-HNj0_316.cjs"),h=require("./ref-2anvRHT4.cjs"),b=require("./directive-C_VV3qwo.cjs"),d=require("./stringutils-CkVRq4jP.cjs");require("./icon-BOKusjAA.cjs");/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2018 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
+
*/const c="important",v=" !"+c,f=b.e(class extends b.i{constructor(l){var t;if(super(l),l.type!==b.t.ATTRIBUTE||l.name!=="style"||((t=l.strings)==null?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(l){return Object.keys(l).reduce((t,s)=>{const r=l[s];return r==null?t:t+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`},"")}update(l,[t]){const{style:s}=l.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(const r of this.ft)t[r]==null&&(this.ft.delete(r),r.includes("-")?s.removeProperty(r):s[r]=null);for(const r in t){const i=t[r];if(i!=null){this.ft.add(r);const u=typeof i=="string"&&i.endsWith(v);r.includes("-")||u?s.setProperty(r,u?i.slice(0,-11):i,u?c:""):s[r]=i}}return e.T}});var k=Object.defineProperty,m=Object.getOwnPropertyDescriptor,a=(l,t,s,r)=>{for(var i=r>1?void 0:r?m(t,s):t,u=l.length-1,o;u>=0;u--)(o=l[u])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&k(t,s,i),i};exports.PktProgressbar=class extends e.PktElement{constructor(){super(),this.ariaLabel=null,this.ariaLabelledby=null,this.ariaValueText=null,this.ariaLive="polite",this.id=d.uuidish(),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.computedAriaLabelledby=null,this.computedAriaValueText="",this.labelRef=h.e(),this.progressBarRef=h.e()}firstUpdated(t){super.firstUpdated(t),this.setComputedValues(),this.syncAttributes()}updated(t){super.updated(t),t.has("valueCurrent")&&this.labelRef.value&&(this.labelWidth=this.labelRef.value.getBoundingClientRect().width||0),t.has("id")&&this.id&&(this.progressBarId=this.id),(t.has("statusType")||t.has("id")||t.has("ariaLabelledby"))&&(this.progressbarId=this.id||d.uuidish(),this.computedAriaLabelledby=this.ariaLabelledby||`${this.progressbarId}-title`),(t.has("ariaValueText")||t.has("valueCurrent")||t.has("valueMax"))&&(this.computedAriaValueText=this.statusType==="fraction"&&!this.ariaValueText?`${this.valueCurrent} av ${this.valueMax-this.valueMin}`:this.ariaValueText||""),this.syncAttributes()}render(){const t=this.statusType!=="none",s=this.valueMax-this.valueMin,r=this.valueCurrent/s*100,i=this.statusType==="fraction"?Math.round(r):Math.round((this.valueCurrent-this.valueMin)/(this.valueMax-this.valueMin)*100),u=`${this.valueCurrent} av ${s}`,o=n.e({"pkt-progressbar__bar":!0,[`pkt-progressbar__bar--${this.skin}`]:!!this.skin}),g=n.e({"pkt-progressbar__title":!0,"pkt-progressbar__title-center":this.titlePosition==="center"}),y=n.e({"pkt-progressbar__status":!0,"pkt-progressbar__status--center":this.statusPlacement==="center"}),P=n.e({"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.x` <div
|
|
6
|
+
class="pkt-progressbar__container"
|
|
7
|
+
.ref=${this.progressBarRef}
|
|
8
|
+
style=${f({"--pkt-progress-label-width":`${this.labelWidth}px`,"--pkt-progress-width":`${i}%`})}
|
|
9
|
+
>
|
|
10
|
+
${this.title?e.x`<p id=${`${this.progressBarId}-title`} class=${g}>${this.title}</p>`:e.E}
|
|
11
|
+
|
|
12
|
+
<div class="pkt-progressbar__bar-wrapper">
|
|
13
|
+
<div class=${o}></div>
|
|
14
|
+
</div>
|
|
15
|
+
|
|
16
|
+
${t?e.x`<div class=${y}>
|
|
17
|
+
<span class=${P} ${h.n(this.labelRef)}>
|
|
18
|
+
${this.statusType==="percentage"?`${i}%`:u}
|
|
19
|
+
</span>
|
|
20
|
+
</div>`:e.E}
|
|
21
|
+
</div>`}setComputedValues(){this.progressbarId=this.id||d.uuidish(),this.computedAriaLabelledby=this.ariaLabelledby||`${this.progressbarId}-title`,this.computedAriaValueText=this.statusType==="fraction"&&!this.ariaValueText?`${this.valueCurrent} av ${this.valueMax-this.valueMin}`:this.ariaValueText||""}syncAttributes(){this._handleAttribute("aria-live",this.ariaLive),this._handleAttribute("aria-valuenow",this.valueCurrent),this._handleAttribute("aria-valuemin",this.valueMin),this._handleAttribute("aria-valuemax",this.valueMax),this._handleAttribute("aria-valuetext",this.computedAriaValueText),this._handleAttribute("aria-label",this.ariaLabel),this._handleAttribute("role",this.role),this._handleAttribute("aria-atomic","true"),this._handleAttribute("id",this.progressbarId),this.ariaLabel||this._handleAttribute("aria-labelledby",this.computedAriaLabelledby)}_handleAttribute(t,s){s==null||s===""?this.removeAttribute(t):this.setAttribute(t,String(s))}};a([e.n({type:String})],exports.PktProgressbar.prototype,"ariaLabel",2);a([e.n({type:String,reflect:!0})],exports.PktProgressbar.prototype,"ariaLabelledby",2);a([e.n({type:String,reflect:!0})],exports.PktProgressbar.prototype,"ariaValueText",2);a([e.n({type:String})],exports.PktProgressbar.prototype,"ariaLive",2);a([e.n({type:String,reflect:!0})],exports.PktProgressbar.prototype,"id",2);a([e.n({type:String})],exports.PktProgressbar.prototype,"role",2);a([e.n({type:String})],exports.PktProgressbar.prototype,"skin",2);a([e.n({type:String})],exports.PktProgressbar.prototype,"statusPlacement",2);a([e.n({type:String})],exports.PktProgressbar.prototype,"statusType",2);a([e.n({type:String,reflect:!0})],exports.PktProgressbar.prototype,"title",2);a([e.n({type:String})],exports.PktProgressbar.prototype,"titlePosition",2);a([e.n({type:Number,reflect:!0})],exports.PktProgressbar.prototype,"valueCurrent",2);a([e.n({type:Number})],exports.PktProgressbar.prototype,"valueMax",2);a([e.n({type:Number})],exports.PktProgressbar.prototype,"valueMin",2);a([p.r()],exports.PktProgressbar.prototype,"labelWidth",2);a([p.r()],exports.PktProgressbar.prototype,"progressbarId",2);a([p.r()],exports.PktProgressbar.prototype,"computedAriaLabelledby",2);a([p.r()],exports.PktProgressbar.prototype,"computedAriaValueText",2);exports.PktProgressbar=a([e.t("pkt-progressbar")],exports.PktProgressbar);const _=exports.PktProgressbar;exports.PktProgressbar$1=_;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { e as n } from "./class-map-
|
|
2
|
-
import {
|
|
3
|
-
import { r as h } from "./state-
|
|
4
|
-
import { e as y, n as
|
|
1
|
+
import { e as n } from "./class-map-DWtqmIRS.js";
|
|
2
|
+
import { T as g, P as _, x as b, E as c, n as u, a as $ } from "./element-C7XjZtLU.js";
|
|
3
|
+
import { r as h } from "./state-CDQk0DFQ.js";
|
|
4
|
+
import { e as y, n as A } from "./ref-DbOSDQbk.js";
|
|
5
|
+
import { e as x, i as T, t as k } from "./directive-B76A7YXI.js";
|
|
5
6
|
import { u as d } from "./stringutils-DJjRa8dG.js";
|
|
6
|
-
import "./icon-
|
|
7
|
+
import "./icon-BEUgV9Wo.js";
|
|
7
8
|
/**
|
|
8
9
|
* @license
|
|
9
10
|
* Copyright 2018 Google LLC
|
|
10
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
12
|
*/
|
|
12
|
-
const v = "important", C = " !" + v, M =
|
|
13
|
+
const v = "important", C = " !" + v, M = x(class extends T {
|
|
13
14
|
constructor(t) {
|
|
14
15
|
var e;
|
|
15
|
-
if (super(t), t.type !==
|
|
16
|
+
if (super(t), t.type !== k.ATTRIBUTE || t.name !== "style" || ((e = t.strings) == null ? void 0 : e.length) > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
|
|
16
17
|
}
|
|
17
18
|
render(t) {
|
|
18
19
|
return Object.keys(t).reduce((e, a) => {
|
|
@@ -32,7 +33,7 @@ const v = "important", C = " !" + v, M = g(class extends _ {
|
|
|
32
33
|
s.includes("-") || o ? a.setProperty(s, o ? l.slice(0, -11) : l, o ? v : "") : a[s] = l;
|
|
33
34
|
}
|
|
34
35
|
}
|
|
35
|
-
return
|
|
36
|
+
return g;
|
|
36
37
|
}
|
|
37
38
|
});
|
|
38
39
|
var L = Object.defineProperty, S = Object.getOwnPropertyDescriptor, i = (t, e, a, s) => {
|
|
@@ -40,7 +41,7 @@ var L = Object.defineProperty, S = Object.getOwnPropertyDescriptor, i = (t, e, a
|
|
|
40
41
|
(p = t[o]) && (l = (s ? p(e, a, l) : p(l)) || l);
|
|
41
42
|
return s && l && L(e, a, l), l;
|
|
42
43
|
};
|
|
43
|
-
let r = class extends
|
|
44
|
+
let r = class extends _ {
|
|
44
45
|
constructor() {
|
|
45
46
|
super(), this.ariaLabel = null, this.ariaLabelledby = null, this.ariaValueText = null, this.ariaLive = "polite", this.id = d(), 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.computedAriaLabelledby = null, this.computedAriaValueText = "", this.labelRef = y(), this.progressBarRef = y();
|
|
46
47
|
}
|
|
@@ -80,7 +81,7 @@ let r = class extends x {
|
|
|
80
81
|
</div>
|
|
81
82
|
|
|
82
83
|
${t ? b`<div class=${f}>
|
|
83
|
-
<span class=${m} ${
|
|
84
|
+
<span class=${m} ${A(this.labelRef)}>
|
|
84
85
|
${this.statusType === "percentage" ? `${s}%` : l}
|
|
85
86
|
</span>
|
|
86
87
|
</div>` : c}
|
|
@@ -152,10 +153,10 @@ i([
|
|
|
152
153
|
h()
|
|
153
154
|
], r.prototype, "computedAriaValueText", 2);
|
|
154
155
|
r = i([
|
|
155
|
-
|
|
156
|
+
$("pkt-progressbar")
|
|
156
157
|
], r);
|
|
157
|
-
const
|
|
158
|
+
const W = r;
|
|
158
159
|
export {
|
|
159
160
|
r as P,
|
|
160
|
-
|
|
161
|
+
W as a
|
|
161
162
|
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";const t=require("./element-CzFXQBoS.cjs"),a=require("./state-HNj0_316.cjs"),p=require("./input-element-Dtyuf6s8.cjs"),d=require("./ref-2anvRHT4.cjs"),o=require("./class-map-Dj5mbCUg.cjs");var k=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=(u,e,c,s)=>{for(var h=s>1?void 0:s?r(e,c):e,n=u.length-1,l;n>=0;n--)(l=u[n])&&(h=(s?l(e,c,h):l(h))||h);return s&&h&&k(e,c,h),h};exports.PktRadioButton=class extends p.PktInputElement{constructor(){super(...arguments),this.inputRef=d.e(),this.value="",this.checkHelptext=null,this.defaultChecked=!1,this.hasTile=!1,this.checked=null,this.type="radio",this._checked=!1}connectedCallback(){super.connectedCallback()}attributeChangedCallback(e,c,s){e==="defaultChecked"&&(this._checked=this.defaultChecked),e==="checked"&&(this._checked=this.checked===""||this.checked==="true"||this.checked===!0),super.attributeChangedCallback(e,c,s)}updated(e){e.has("checked")&&this.checked!==null&&(this._checked=this.checked===""||this.checked==="true"||this.checked===!0,(e.get("checked")===""||e.get("checked")==="true"||e.get("checked")===!0)!==this._checked&&this.toggleChecked()),super.updated(e)}render(){const e=o.e({"pkt-input-check__input":!0,"pkt-input-check__input--tile":this.hasTile,"pkt-input-check__input--tile-disabled":this.disabled&&this.hasTile}),c=o.e({"pkt-input-check__input-checkbox":!0,"pkt-input-check__input-checkbox--error":this.hasError});return t.x`
|
|
2
|
+
<div class="pkt-input-check">
|
|
3
|
+
<div class=${e}>
|
|
4
|
+
<input
|
|
5
|
+
id=${this.id+"-internal"}
|
|
6
|
+
class=${c}
|
|
7
|
+
type="radio"
|
|
8
|
+
role="radio"
|
|
9
|
+
?disabled=${this.disabled}
|
|
10
|
+
name=${this.name+"-internal"}
|
|
11
|
+
${d.n(this.inputRef)}
|
|
12
|
+
@change=${this.toggleChecked}
|
|
13
|
+
@input=${this.onInput}
|
|
14
|
+
@blur=${this.onBlur}
|
|
15
|
+
@focus=${this.onFocus}
|
|
16
|
+
?checked=${this.checked}
|
|
17
|
+
/>
|
|
18
|
+
<label class="pkt-input-check__input-label" for=${this.id+"-internal"}>
|
|
19
|
+
${this.label}
|
|
20
|
+
${this.checkHelptext?t.x`<div class="pkt-input-check__input-helptext">${this.checkHelptext}</div>`:t.E}
|
|
21
|
+
</label>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
`}toggleChecked(e=null){e&&e.stopImmediatePropagation(),this.touched=!0,this.inputRef.value&&(this._checked=this.inputRef.value.matches(":checked"),this.valueChecked(this._checked))}};i([t.n({type:String,reflect:!0})],exports.PktRadioButton.prototype,"value",2);i([t.n({type:String})],exports.PktRadioButton.prototype,"checkHelptext",2);i([t.n({type:Boolean})],exports.PktRadioButton.prototype,"defaultChecked",2);i([t.n({type:Boolean})],exports.PktRadioButton.prototype,"hasTile",2);i([t.n({type:Boolean,reflect:!0})],exports.PktRadioButton.prototype,"checked",2);i([t.n({type:String,reflect:!0})],exports.PktRadioButton.prototype,"type",2);i([a.r()],exports.PktRadioButton.prototype,"_checked",2);exports.PktRadioButton=i([t.t("pkt-radiobutton")],exports.PktRadioButton);
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { x as r, E as n, n as s, a as o } from "./element-C7XjZtLU.js";
|
|
2
|
+
import { r as k } from "./state-CDQk0DFQ.js";
|
|
3
|
+
import { P as f } from "./input-element-BK8UkQli.js";
|
|
4
|
+
import { e as _, n as b } from "./ref-DbOSDQbk.js";
|
|
5
|
+
import { e as a } from "./class-map-DWtqmIRS.js";
|
|
6
|
+
var C = Object.defineProperty, v = Object.getOwnPropertyDescriptor, i = (e, t, l, p) => {
|
|
7
|
+
for (var h = p > 1 ? void 0 : p ? v(t, l) : t, u = e.length - 1, d; u >= 0; u--)
|
|
8
|
+
(d = e[u]) && (h = (p ? d(t, l, h) : d(h)) || h);
|
|
9
|
+
return p && h && C(t, l, h), h;
|
|
10
|
+
};
|
|
11
|
+
let c = class extends f {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments), this.inputRef = _(), this.value = "", this.checkHelptext = null, this.defaultChecked = !1, this.hasTile = !1, this.checked = null, this.type = "radio", this._checked = !1;
|
|
14
|
+
}
|
|
15
|
+
connectedCallback() {
|
|
16
|
+
super.connectedCallback();
|
|
17
|
+
}
|
|
18
|
+
attributeChangedCallback(e, t, l) {
|
|
19
|
+
e === "defaultChecked" && (this._checked = this.defaultChecked), e === "checked" && (this._checked = this.checked === "" || this.checked === "true" || this.checked === !0), super.attributeChangedCallback(e, t, l);
|
|
20
|
+
}
|
|
21
|
+
updated(e) {
|
|
22
|
+
e.has("checked") && this.checked !== null && (this._checked = this.checked === "" || this.checked === "true" || this.checked === !0, (e.get("checked") === "" || e.get("checked") === "true" || e.get("checked") === !0) !== this._checked && this.toggleChecked()), super.updated(e);
|
|
23
|
+
}
|
|
24
|
+
render() {
|
|
25
|
+
const e = a({
|
|
26
|
+
"pkt-input-check__input": !0,
|
|
27
|
+
"pkt-input-check__input--tile": this.hasTile,
|
|
28
|
+
"pkt-input-check__input--tile-disabled": this.disabled && this.hasTile
|
|
29
|
+
}), t = a({
|
|
30
|
+
"pkt-input-check__input-checkbox": !0,
|
|
31
|
+
"pkt-input-check__input-checkbox--error": this.hasError
|
|
32
|
+
});
|
|
33
|
+
return r`
|
|
34
|
+
<div class="pkt-input-check">
|
|
35
|
+
<div class=${e}>
|
|
36
|
+
<input
|
|
37
|
+
id=${this.id + "-internal"}
|
|
38
|
+
class=${t}
|
|
39
|
+
type="radio"
|
|
40
|
+
role="radio"
|
|
41
|
+
?disabled=${this.disabled}
|
|
42
|
+
name=${this.name + "-internal"}
|
|
43
|
+
${b(this.inputRef)}
|
|
44
|
+
@change=${this.toggleChecked}
|
|
45
|
+
@input=${this.onInput}
|
|
46
|
+
@blur=${this.onBlur}
|
|
47
|
+
@focus=${this.onFocus}
|
|
48
|
+
?checked=${this.checked}
|
|
49
|
+
/>
|
|
50
|
+
<label class="pkt-input-check__input-label" for=${this.id + "-internal"}>
|
|
51
|
+
${this.label}
|
|
52
|
+
${this.checkHelptext ? r`<div class="pkt-input-check__input-helptext">${this.checkHelptext}</div>` : n}
|
|
53
|
+
</label>
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
`;
|
|
57
|
+
}
|
|
58
|
+
toggleChecked(e = null) {
|
|
59
|
+
e && e.stopImmediatePropagation(), this.touched = !0, this.inputRef.value && (this._checked = this.inputRef.value.matches(":checked"), this.valueChecked(this._checked));
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
i([
|
|
63
|
+
s({ type: String, reflect: !0 })
|
|
64
|
+
], c.prototype, "value", 2);
|
|
65
|
+
i([
|
|
66
|
+
s({ type: String })
|
|
67
|
+
], c.prototype, "checkHelptext", 2);
|
|
68
|
+
i([
|
|
69
|
+
s({ type: Boolean })
|
|
70
|
+
], c.prototype, "defaultChecked", 2);
|
|
71
|
+
i([
|
|
72
|
+
s({ type: Boolean })
|
|
73
|
+
], c.prototype, "hasTile", 2);
|
|
74
|
+
i([
|
|
75
|
+
s({ type: Boolean, reflect: !0 })
|
|
76
|
+
], c.prototype, "checked", 2);
|
|
77
|
+
i([
|
|
78
|
+
s({ type: String, reflect: !0 })
|
|
79
|
+
], c.prototype, "type", 2);
|
|
80
|
+
i([
|
|
81
|
+
k()
|
|
82
|
+
], c.prototype, "_checked", 2);
|
|
83
|
+
c = i([
|
|
84
|
+
o("pkt-radiobutton")
|
|
85
|
+
], c);
|
|
86
|
+
export {
|
|
87
|
+
c as P
|
|
88
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";const l=require("./element-CzFXQBoS.cjs"),d=require("./directive-C_VV3qwo.cjs");/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2020 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
+
*/const{I:p}=l.Z,u=t=>t.strings===void 0,a=()=>document.createComment(""),Y=(t,s,e)=>{var h;const i=t._$AA.parentNode,n=s===void 0?t._$AB:s._$AA;if(e===void 0){const c=i.insertBefore(a(),n),$=i.insertBefore(a(),n);e=new p(c,$,t,t.options)}else{const c=e._$AB.nextSibling,$=e._$AM,f=$!==t;if(f){let o;(h=e._$AQ)==null||h.call(e,t),e._$AM=t,e._$AP!==void 0&&(o=t._$AU)!==$._$AU&&e._$AP(o)}if(c!==n||f){let o=e._$AA;for(;o!==c;){const g=o.nextSibling;i.insertBefore(o,n),o=g}}}return e},C=(t,s,e=t)=>(t._$AI(s,e),t),M={},m=(t,s=M)=>t._$AH=s,b=t=>t._$AH,N=t=>{var i;(i=t._$AP)==null||i.call(t,!1,!0);let s=t._$AA;const e=t._$AB.nextSibling;for(;s!==e;){const n=s.nextSibling;s.remove(),s=n}};/**
|
|
6
|
+
* @license
|
|
7
|
+
* Copyright 2017 Google LLC
|
|
8
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
+
*/const r=(t,s)=>{var i;const e=t._$AN;if(e===void 0)return!1;for(const n of e)(i=n._$AO)==null||i.call(n,s,!1),r(n,s);return!0},A=t=>{let s,e;do{if((s=t._$AM)===void 0)break;e=s._$AN,e.delete(t),t=s}while((e==null?void 0:e.size)===0)},v=t=>{for(let s;s=t._$AM;t=s){let e=s._$AN;if(e===void 0)s._$AN=e=new Set;else if(e.has(t))break;e.add(t),B(s)}};function w(t){this._$AN!==void 0?(A(this),this._$AM=t,v(this)):this._$AM=t}function x(t,s=!1,e=0){const i=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(s)if(Array.isArray(i))for(let h=e;h<i.length;h++)r(i[h],!1),A(i[h]);else i!=null&&(r(i,!1),A(i));else r(this,t)}const B=t=>{t.type==d.t.CHILD&&(t._$AP??(t._$AP=x),t._$AQ??(t._$AQ=w))};class y extends d.i{constructor(){super(...arguments),this._$AN=void 0}_$AT(s,e,i){super._$AT(s,e,i),v(this),this.isConnected=s._$AU}_$AO(s,e=!0){var i,n;s!==this.isConnected&&(this.isConnected=s,s?(i=this.reconnected)==null||i.call(this):(n=this.disconnected)==null||n.call(this)),e&&(r(this,s),A(this))}setValue(s){if(u(this._$Ct))this._$Ct._$AI(s,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=s,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}/**
|
|
10
|
+
* @license
|
|
11
|
+
* Copyright 2020 Google LLC
|
|
12
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
+
*/const H=()=>new I;class I{}const _=new WeakMap,S=d.e(class extends y{render(t){return l.E}update(t,[s]){var i;const e=s!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=s,this.ht=(i=t.options)==null?void 0:i.host,this.rt(this.ct=t.element)),l.E}rt(t){if(this.isConnected||(t=void 0),typeof this.Y=="function"){const s=this.ht??globalThis;let e=_.get(s);e===void 0&&(e=new WeakMap,_.set(s,e)),e.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),e.set(this.Y,t),t!==void 0&&this.Y.call(this.ht,t)}else this.Y.value=t}get lt(){var t,s;return typeof this.Y=="function"?(t=_.get(this.ht??globalThis))==null?void 0:t.get(this.Y):(s=this.Y)==null?void 0:s.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});exports.M=N;exports.e=H;exports.f=u;exports.m=m;exports.n=S;exports.p=b;exports.r=Y;exports.v=C;
|