@oslokommune/punkt-elements 14.3.0 → 14.5.2
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 +34 -0
- package/dist/{accordionitem-C_URrDjP.js → accordionitem-DB3tAjIZ.js} +4 -4
- package/dist/{accordionitem-DCZrHVNR.cjs → accordionitem-DHYmPA-o.cjs} +1 -1
- package/dist/{alert-UFQFbbzZ.js → alert-DqXar67l.js} +6 -6
- package/dist/{alert-SvqEDHuW.cjs → alert-GrKyqxuR.cjs} +1 -1
- package/dist/{backlink-C7qUmUzs.js → backlink-CqUcmiPQ.js} +11 -11
- package/dist/{backlink-BrIIpgJ7.cjs → backlink-QDcQd6vK.cjs} +1 -1
- package/dist/{button-DaM4jvhJ.cjs → button-R4l10Nqd.cjs} +1 -1
- package/dist/{button-CjXih_Nx.js → button-f36menSU.js} +5 -5
- package/dist/{calendar-CvfMj3fA.js → calendar-DiNuZ8Ai.js} +7 -8
- package/dist/{calendar-ZzLAjDpv.cjs → calendar-wuD6ZH0t.cjs} +3 -3
- package/dist/{card-C1gRTfXb.cjs → card-C2hWaMev.cjs} +1 -1
- package/dist/{card-CO3D8wQE.js → card-CnINxZma.js} +7 -7
- package/dist/{checkbox-C0TPnShf.cjs → checkbox-B-0FOdwi.cjs} +1 -1
- package/dist/{checkbox-CnhA52o_.js → checkbox-CkAwPK_E.js} +4 -4
- package/dist/{class-map-C_erArZz.cjs → class-map-CApIYSRo.cjs} +1 -1
- package/dist/{class-map-wy7PUk0P.js → class-map-Dt2jXOlF.js} +1 -1
- package/dist/{combobox-Dcp_fHcL.js → combobox-Dxa7XjLz.js} +55 -55
- package/dist/{combobox-C1xwAju5.cjs → combobox-yy6hIGmB.cjs} +13 -13
- package/dist/{consent-Daj-Xa7w.cjs → consent-FbFS1pmz.cjs} +1 -1
- package/dist/{consent-BO3Ga8N4.js → consent-c9PhWxnP.js} +3 -3
- package/dist/{datepicker-Bjb9GK1E.js → datepicker-C7GWMtXH.js} +222 -241
- package/dist/{datepicker-COIRRau0.cjs → datepicker-D_3vYgMt.cjs} +25 -25
- package/dist/{directive-helpers-BzAtj9by.js → directive-helpers-CQef4qUQ.js} +1 -1
- package/dist/{directive-helpers-4oOjKnGY.cjs → directive-helpers-CYIEJ8pI.cjs} +1 -1
- package/dist/{element-CRDRygXu.js → element-BXsf_NlG.js} +3 -3
- package/dist/{element-CJ_QKaki.cjs → element-aUzIoa1s.cjs} +3 -3
- package/dist/{heading-Dv_cH6N1.cjs → heading-CBepYb7H.cjs} +1 -1
- package/dist/{heading-BUdy170t.js → heading-J7dN9nRi.js} +13 -13
- package/dist/{helptext-hlcc584n.cjs → helptext-DebHGRsD.cjs} +1 -1
- package/dist/{helptext-Bn17Picx.js → helptext-DuyRRfCn.js} +5 -5
- package/dist/{icon-BB7e5iQN.js → icon-BgG6oO4Q.js} +1 -1
- package/dist/{icon-MRx-m0Or.cjs → icon-Dl9ZPqe6.cjs} +1 -1
- package/dist/{if-defined-Bc9-_I01.cjs → if-defined-BElHLTlB.cjs} +1 -1
- package/dist/{if-defined-BWZGb3bh.js → if-defined-CxHgig4I.js} +1 -1
- package/dist/index.d.ts +213 -55
- package/dist/input-element-DVZhYDJ_.js +840 -0
- package/dist/input-element-RBQVA8i0.cjs +1 -0
- package/dist/{input-wrapper-1PCXqtiu.js → input-wrapper-3qfjLkrP.js} +7 -7
- package/dist/{input-wrapper-CtBiAb04.cjs → input-wrapper-rgXsRNkk.cjs} +1 -1
- package/dist/{link-BboUBUcg.js → link-CZvcdRek.js} +4 -4
- package/dist/{link-Dw39h-YN.cjs → link-D85g20GS.cjs} +1 -1
- package/dist/{linkcard-DUA3kGGd.cjs → linkcard-B-9K02q8.cjs} +1 -1
- package/dist/{linkcard-BqJmHFu8.js → linkcard-C3RTcMqc.js} +4 -4
- package/dist/{listbox-mvKKzH-v.js → listbox-CLtowV6W.js} +36 -36
- package/dist/{listbox-DnoqOo5u.cjs → listbox-C_0RhGhk.cjs} +2 -2
- package/dist/{loader-DjGxT7C3.cjs → loader-1EXLdxfq.cjs} +1 -1
- package/dist/{loader-DIum_s_D.js → loader-Dci0SrOz.js} +5 -5
- package/dist/{messagebox-aPlConlJ.js → messagebox-CnZlttZp.js} +5 -5
- package/dist/{messagebox-ChIKVTO_.cjs → messagebox-dscnWgCd.cjs} +1 -1
- package/dist/{modal-B4qq0VFB.cjs → modal-ncKVjcyZ.cjs} +1 -1
- package/dist/{modal-jAUtM-NP.js → modal-wSGthXAC.js} +5 -5
- 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 +2 -2
- package/dist/pkt-header.cjs +1 -1
- package/dist/pkt-header.js +9 -9
- package/dist/pkt-heading.cjs +1 -1
- package/dist/pkt-heading.js +1 -1
- package/dist/pkt-helptext.cjs +1 -1
- package/dist/pkt-helptext.js +1 -1
- package/dist/pkt-icon.cjs +1 -1
- package/dist/pkt-icon.js +1 -1
- package/dist/pkt-index.cjs +1 -29
- package/dist/pkt-index.js +60 -157
- package/dist/pkt-input-wrapper.cjs +1 -1
- package/dist/pkt-input-wrapper.js +1 -1
- package/dist/pkt-link.cjs +1 -1
- package/dist/pkt-link.js +1 -1
- package/dist/pkt-linkcard.cjs +1 -1
- package/dist/pkt-linkcard.js +1 -1
- package/dist/pkt-listbox.cjs +1 -1
- package/dist/pkt-listbox.js +1 -1
- package/dist/pkt-loader.cjs +1 -1
- package/dist/pkt-loader.js +1 -1
- package/dist/pkt-messagebox.cjs +1 -1
- package/dist/pkt-messagebox.js +1 -1
- package/dist/pkt-modal.cjs +1 -1
- package/dist/pkt-modal.js +1 -1
- package/dist/pkt-options-controller-DjBCEHU4.cjs +1 -0
- package/dist/{pkt-options-controller-CZO1nxZ8.js → pkt-options-controller-zn5cmMvL.js} +3 -3
- 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-tabs.cjs +1 -1
- package/dist/pkt-tabs.js +2 -2
- 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-CmAQ-DVW.cjs → progressbar-ClY1WgnM.cjs} +1 -1
- package/dist/{progressbar-CVt73-JQ.js → progressbar-D5WBW1Dm.js} +5 -5
- package/dist/{radiobutton-BkqaqO5E.cjs → radiobutton-iHuLnuAn.cjs} +1 -1
- package/dist/{radiobutton-Caq8-GhM.js → radiobutton-oA20HijB.js} +15 -15
- package/dist/{ref-Xa5dbh--.js → ref-BxiKhrfa.js} +2 -2
- package/dist/{ref-BFa5Utho.cjs → ref-C5iJMIE1.cjs} +1 -1
- package/dist/{repeat-CJ79egkN.js → repeat-B55jMEsG.js} +2 -2
- package/dist/{repeat-BZb41H64.cjs → repeat-DcYSFU2y.cjs} +1 -1
- package/dist/select-Bug9sfr5.js +228 -0
- package/dist/select-jbIbD7hW.cjs +49 -0
- package/dist/{state-DS_kr2Fy.js → state-DgnkjP0q.js} +1 -1
- package/dist/{state-DSjcvzDN.cjs → state-GDzxl12x.cjs} +1 -1
- package/dist/{tabitem-D5zyipN1.cjs → tabitem-CtltSqDK.cjs} +1 -1
- package/dist/{tabitem-NV2fzs_-.js → tabitem-CypTmORF.js} +30 -30
- package/dist/{tag-B02fKJ66.cjs → tag-BfjOlIyS.cjs} +1 -1
- package/dist/{tag-CES41g0D.js → tag-DgoTYNVA.js} +6 -6
- package/dist/{textarea-a6T4aJJU.js → textarea-Da9E3RM7.js} +9 -9
- package/dist/{textarea-DyUy8u7X.cjs → textarea-Dfa4_ZBy.cjs} +1 -1
- package/dist/{textinput-IN3b0nSH.cjs → textinput-CLM9fRjm.cjs} +1 -1
- package/dist/{textinput-DIuM70dd.js → textinput-DaMYc5gd.js} +8 -8
- package/package.json +2 -2
- package/src/components/checkbox/checkbox.ts +1 -1
- package/src/components/combobox/combobox.ts +2 -2
- package/src/components/datepicker/datepicker-utils.test.ts +0 -25
- package/src/components/datepicker/datepicker-utils.ts +0 -28
- package/src/components/datepicker/datepicker.ts +0 -6
- package/src/components/header/header.ts +2 -0
- package/src/components/index.ts +0 -1
- package/src/components/radiobutton/radiobutton.ts +1 -1
- package/src/components/select/select.ts +14 -47
- package/src/components/textarea/textarea.ts +1 -1
- package/src/components/textinput/textinput.ts +1 -1
- package/dist/input-element-B8M8Nppd.js +0 -708
- package/dist/input-element-D697OAJo.cjs +0 -1
- package/dist/pkt-options-controller-CiuBG6Lt.cjs +0 -1
- package/dist/select-3dwlk22G.cjs +0 -49
- package/dist/select-_C-yztI0.js +0 -173
package/dist/pkt-index.cjs
CHANGED
|
@@ -1,29 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
<div class="${x.e(e)}">
|
|
3
|
-
<h1 class="pkt-txt-28">${this.string}</h1>
|
|
4
|
-
|
|
5
|
-
<h2 class="pkt-txt-22">Innhold fra attributter og funksjoner</h2>
|
|
6
|
-
<div>${this.renderList(this.strings)}</div>
|
|
7
|
-
<div>${this.renderList(this.doStuff(this._list))}</div>
|
|
8
|
-
|
|
9
|
-
<h2 class="pkt-txt-22">Slot</h2>
|
|
10
|
-
<div ${a.n(this.defaultSlot)}>defaultSlotRef</div>
|
|
11
|
-
<h2 class="pkt-txt-22">Named slot</h2>
|
|
12
|
-
<select
|
|
13
|
-
name="named-slot"
|
|
14
|
-
${a.n(this.namedSlot)}
|
|
15
|
-
@change=${r=>alert(r.target.value)}
|
|
16
|
-
>
|
|
17
|
-
namedSlotRef
|
|
18
|
-
</select>
|
|
19
|
-
|
|
20
|
-
<h2 class="pkt-txt-22">Knapp som emitter en event</h2>
|
|
21
|
-
<button type="button" @click=${()=>this.handleGreeting()}>
|
|
22
|
-
Si ${t.translations.example.hi}
|
|
23
|
-
</button>
|
|
24
|
-
</div>
|
|
25
|
-
`}renderList(e){return t.x`
|
|
26
|
-
<ul>
|
|
27
|
-
${e.map(r=>t.x`<li>${r}</li>`)}
|
|
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: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:()=>m.PktAlert});exports.PktAccordion=P.PktAccordion;exports.PktAccordionItem=P.PktAccordionItem;Object.defineProperty(exports,"PktBackLink",{enumerable:!0,get:()=>g.PktBackLink});Object.defineProperty(exports,"PktButton",{enumerable:!0,get:()=>h.PktButton});Object.defineProperty(exports,"PktCalendar",{enumerable:!0,get:()=>k.PktCalendar});Object.defineProperty(exports,"PktCard",{enumerable:!0,get:()=>f.PktCard});Object.defineProperty(exports,"PktCombobox",{enumerable:!0,get:()=>y.PktCombobox});Object.defineProperty(exports,"PktConsent",{enumerable:!0,get:()=>O.PktConsent});Object.defineProperty(exports,"PktCheckbox",{enumerable:!0,get:()=>j.PktCheckbox});Object.defineProperty(exports,"PktDateTags",{enumerable:!0,get:()=>d.PktDateTags});Object.defineProperty(exports,"PktDatepicker",{enumerable:!0,get:()=>d.PktDatepicker});Object.defineProperty(exports,"PktHeader",{enumerable:!0,get:()=>l.PktHeader});Object.defineProperty(exports,"PktHeaderService",{enumerable:!0,get:()=>l.PktHeaderService});Object.defineProperty(exports,"PktHeaderUserMenu",{enumerable:!0,get:()=>l.PktHeaderUserMenu});Object.defineProperty(exports,"PktHelptext",{enumerable:!0,get:()=>C.PktHelptext});Object.defineProperty(exports,"PktHeading",{enumerable:!0,get:()=>v.PktHeading});Object.defineProperty(exports,"PktIcon",{enumerable:!0,get:()=>S.PktIcon});Object.defineProperty(exports,"PktInputWrapper",{enumerable:!0,get:()=>T.PktInputWrapper});Object.defineProperty(exports,"PktLink",{enumerable:!0,get:()=>$.PktLink});Object.defineProperty(exports,"PktLinkCard",{enumerable:!0,get:()=>H.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:()=>I.PktModal});Object.defineProperty(exports,"PktProgressbar",{enumerable:!0,get:()=>A.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:()=>B.PktTag});exports.PktTabItem=b.PktTabItem;exports.PktTabs=b.PktTabs;Object.defineProperty(exports,"PktTextarea",{enumerable:!0,get:()=>M.PktTextarea});Object.defineProperty(exports,"PktTextinput",{enumerable:!0,get:()=>D.PktTextinput});Object.defineProperty(exports,"PktSelect",{enumerable:!0,get:()=>R.PktSelect});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./alert-GrKyqxuR.cjs"),t=require("./accordionitem-DHYmPA-o.cjs"),a=require("./backlink-QDcQd6vK.cjs"),P=require("./button-R4l10Nqd.cjs"),i=require("./calendar-wuD6ZH0t.cjs"),c=require("./card-C2hWaMev.cjs"),b=require("./combobox-yy6hIGmB.cjs"),k=require("./consent-FbFS1pmz.cjs"),d=require("./checkbox-B-0FOdwi.cjs"),r=require("./datepicker-D_3vYgMt.cjs"),e=require("./pkt-header.cjs"),l=require("./helptext-DebHGRsD.cjs"),s=require("./heading-CBepYb7H.cjs"),p=require("./icon-Dl9ZPqe6.cjs"),g=require("./input-wrapper-rgXsRNkk.cjs"),m=require("./link-D85g20GS.cjs"),y=require("./linkcard-B-9K02q8.cjs"),f=require("./loader-1EXLdxfq.cjs"),j=require("./messagebox-dscnWgCd.cjs"),O=require("./modal-ncKVjcyZ.cjs"),q=require("./progressbar-ClY1WgnM.cjs"),n=require("./radiobutton-iHuLnuAn.cjs"),x=require("./tag-BfjOlIyS.cjs"),o=require("./tabitem-CtltSqDK.cjs"),T=require("./textarea-Dfa4_ZBy.cjs"),C=require("./textinput-CLM9fRjm.cjs"),H=require("./select-jbIbD7hW.cjs");Object.defineProperty(exports,"PktAlert",{enumerable:!0,get:()=>u.PktAlert});exports.PktAccordion=t.PktAccordion;exports.PktAccordionItem=t.PktAccordionItem;Object.defineProperty(exports,"PktBackLink",{enumerable:!0,get:()=>a.PktBackLink});Object.defineProperty(exports,"PktButton",{enumerable:!0,get:()=>P.PktButton});Object.defineProperty(exports,"PktCalendar",{enumerable:!0,get:()=>i.PktCalendar});Object.defineProperty(exports,"PktCard",{enumerable:!0,get:()=>c.PktCard});Object.defineProperty(exports,"PktCombobox",{enumerable:!0,get:()=>b.PktCombobox});Object.defineProperty(exports,"PktConsent",{enumerable:!0,get:()=>k.PktConsent});Object.defineProperty(exports,"PktCheckbox",{enumerable:!0,get:()=>d.PktCheckbox});Object.defineProperty(exports,"PktDateTags",{enumerable:!0,get:()=>r.PktDateTags});Object.defineProperty(exports,"PktDatepicker",{enumerable:!0,get:()=>r.PktDatepicker});Object.defineProperty(exports,"PktHeader",{enumerable:!0,get:()=>e.PktHeader});Object.defineProperty(exports,"PktHeaderService",{enumerable:!0,get:()=>e.PktHeaderService});Object.defineProperty(exports,"PktHeaderUserMenu",{enumerable:!0,get:()=>e.PktHeaderUserMenu});Object.defineProperty(exports,"PktHelptext",{enumerable:!0,get:()=>l.PktHelptext});Object.defineProperty(exports,"PktHeading",{enumerable:!0,get:()=>s.PktHeading});Object.defineProperty(exports,"PktIcon",{enumerable:!0,get:()=>p.PktIcon});Object.defineProperty(exports,"PktInputWrapper",{enumerable:!0,get:()=>g.PktInputWrapper});Object.defineProperty(exports,"PktLink",{enumerable:!0,get:()=>m.PktLink});Object.defineProperty(exports,"PktLinkCard",{enumerable:!0,get:()=>y.PktLinkCard});Object.defineProperty(exports,"PktLoader",{enumerable:!0,get:()=>f.PktLoader});Object.defineProperty(exports,"PktMessagebox",{enumerable:!0,get:()=>j.PktMessagebox});Object.defineProperty(exports,"PktModal",{enumerable:!0,get:()=>O.PktModal});Object.defineProperty(exports,"PktProgressbar",{enumerable:!0,get:()=>q.PktProgressbar});Object.defineProperty(exports,"PktRadioButton",{enumerable:!0,get:()=>n.PktRadioButton});Object.defineProperty(exports,"PktRadiobutton",{enumerable:!0,get:()=>n.PktRadioButton});Object.defineProperty(exports,"PktTag",{enumerable:!0,get:()=>x.PktTag});exports.PktTabItem=o.PktTabItem;exports.PktTabs=o.PktTabs;Object.defineProperty(exports,"PktTextarea",{enumerable:!0,get:()=>T.PktTextarea});Object.defineProperty(exports,"PktTextinput",{enumerable:!0,get:()=>C.PktTextinput});Object.defineProperty(exports,"PktSelect",{enumerable:!0,get:()=>H.PktSelect});
|
package/dist/pkt-index.js
CHANGED
|
@@ -1,159 +1,62 @@
|
|
|
1
|
-
import { P as
|
|
2
|
-
import { P as
|
|
3
|
-
import { P as
|
|
4
|
-
import { P as
|
|
5
|
-
import {
|
|
6
|
-
import { P as
|
|
7
|
-
import { P as
|
|
8
|
-
import { P as
|
|
9
|
-
import { P as
|
|
10
|
-
import { P as
|
|
11
|
-
import {
|
|
12
|
-
import { P as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { P as
|
|
16
|
-
import {
|
|
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 Ct } from "./tag-CES41g0D.js";
|
|
29
|
-
import { a as yt, P as _t } from "./tabitem-NV2fzs_-.js";
|
|
30
|
-
import { P as Tt } from "./textarea-a6T4aJJU.js";
|
|
31
|
-
import { P as At } from "./textinput-DIuM70dd.js";
|
|
32
|
-
import { P as wt } from "./select-_C-yztI0.js";
|
|
33
|
-
var g = Object.defineProperty, v = Object.getOwnPropertyDescriptor, s = (t, e, i, a) => {
|
|
34
|
-
for (var r = a > 1 ? void 0 : a ? v(e, i) : e, p = t.length - 1, P; p >= 0; p--)
|
|
35
|
-
(P = t[p]) && (r = (a ? P(e, i, r) : P(r)) || r);
|
|
36
|
-
return a && r && g(e, i, r), r;
|
|
37
|
-
};
|
|
38
|
-
let o = class extends f {
|
|
39
|
-
constructor() {
|
|
40
|
-
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);
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Runs on mount, used to set up various values and whatever you need to run
|
|
44
|
-
*/
|
|
45
|
-
connectedCallback() {
|
|
46
|
-
this.strings.length && this.strings.forEach((t) => {
|
|
47
|
-
this._list.push(t.toUpperCase());
|
|
48
|
-
}), super.connectedCallback();
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Render functions
|
|
52
|
-
*/
|
|
53
|
-
render() {
|
|
54
|
-
const t = {
|
|
55
|
-
"pkt-component": !0,
|
|
56
|
-
"pkt-component--has-list": this.strings.length > 0,
|
|
57
|
-
"pkt-darkmode": this.darkmode
|
|
58
|
-
};
|
|
59
|
-
return l`
|
|
60
|
-
<div class="${u(t)}">
|
|
61
|
-
<h1 class="pkt-txt-28">${this.string}</h1>
|
|
62
|
-
|
|
63
|
-
<h2 class="pkt-txt-22">Innhold fra attributter og funksjoner</h2>
|
|
64
|
-
<div>${this.renderList(this.strings)}</div>
|
|
65
|
-
<div>${this.renderList(this.doStuff(this._list))}</div>
|
|
66
|
-
|
|
67
|
-
<h2 class="pkt-txt-22">Slot</h2>
|
|
68
|
-
<div ${k(this.defaultSlot)}>defaultSlotRef</div>
|
|
69
|
-
<h2 class="pkt-txt-22">Named slot</h2>
|
|
70
|
-
<select
|
|
71
|
-
name="named-slot"
|
|
72
|
-
${k(this.namedSlot)}
|
|
73
|
-
@change=${(e) => alert(e.target.value)}
|
|
74
|
-
>
|
|
75
|
-
namedSlotRef
|
|
76
|
-
</select>
|
|
77
|
-
|
|
78
|
-
<h2 class="pkt-txt-22">Knapp som emitter en event</h2>
|
|
79
|
-
<button type="button" @click=${() => this.handleGreeting()}>
|
|
80
|
-
Si ${h.example.hi}
|
|
81
|
-
</button>
|
|
82
|
-
</div>
|
|
83
|
-
`;
|
|
84
|
-
}
|
|
85
|
-
renderList(t) {
|
|
86
|
-
return l`
|
|
87
|
-
<ul>
|
|
88
|
-
${t.map((e) => l`<li>${e}</li>`)}
|
|
89
|
-
</ul>
|
|
90
|
-
`;
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Add other functionality under here
|
|
94
|
-
*/
|
|
95
|
-
doStuff(t) {
|
|
96
|
-
return t.reverse();
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Handlers for returning data from the component
|
|
100
|
-
*/
|
|
101
|
-
handleGreeting() {
|
|
102
|
-
this.dispatchEvent(
|
|
103
|
-
new CustomEvent("pkt-greeting", {
|
|
104
|
-
detail: "Hei på deg!"
|
|
105
|
-
})
|
|
106
|
-
);
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
s([
|
|
110
|
-
n({ type: String })
|
|
111
|
-
], o.prototype, "string", 2);
|
|
112
|
-
s([
|
|
113
|
-
n({ converter: d })
|
|
114
|
-
], o.prototype, "strings", 2);
|
|
115
|
-
s([
|
|
116
|
-
n({ type: Boolean })
|
|
117
|
-
], o.prototype, "darkmode", 2);
|
|
118
|
-
s([
|
|
119
|
-
n({ type: Array })
|
|
120
|
-
], o.prototype, "_list", 2);
|
|
121
|
-
o = s([
|
|
122
|
-
c("pkt-component")
|
|
123
|
-
], o);
|
|
1
|
+
import { P as r } from "./alert-DqXar67l.js";
|
|
2
|
+
import { P as e, a } from "./accordionitem-DB3tAjIZ.js";
|
|
3
|
+
import { P as s } from "./backlink-CqUcmiPQ.js";
|
|
4
|
+
import { P as x } from "./button-f36menSU.js";
|
|
5
|
+
import { P as f } from "./calendar-DiNuZ8Ai.js";
|
|
6
|
+
import { P as d } from "./card-CnINxZma.js";
|
|
7
|
+
import { P as c } from "./combobox-Dxa7XjLz.js";
|
|
8
|
+
import { P as u } from "./consent-c9PhWxnP.js";
|
|
9
|
+
import { P as T } from "./checkbox-CkAwPK_E.js";
|
|
10
|
+
import { P as l, a as H } from "./datepicker-C7GWMtXH.js";
|
|
11
|
+
import { PktHeader as L, PktHeaderService as A, PktHeaderUserMenu as B } from "./pkt-header.js";
|
|
12
|
+
import { P as D } from "./helptext-DuyRRfCn.js";
|
|
13
|
+
import { P as S } from "./heading-J7dN9nRi.js";
|
|
14
|
+
import { P as v } from "./icon-BgG6oO4Q.js";
|
|
15
|
+
import { P as W } from "./input-wrapper-3qfjLkrP.js";
|
|
16
|
+
import { P as q } from "./link-CZvcdRek.js";
|
|
17
|
+
import { P as y } from "./linkcard-C3RTcMqc.js";
|
|
18
|
+
import { P as E } from "./loader-Dci0SrOz.js";
|
|
19
|
+
import { P as G } from "./messagebox-CnZlttZp.js";
|
|
20
|
+
import { P as K } from "./modal-wSGthXAC.js";
|
|
21
|
+
import { P as O } from "./progressbar-D5WBW1Dm.js";
|
|
22
|
+
import { P as V, P as X } from "./radiobutton-oA20HijB.js";
|
|
23
|
+
import { P as Z } from "./tag-DgoTYNVA.js";
|
|
24
|
+
import { a as $, P as tt } from "./tabitem-CypTmORF.js";
|
|
25
|
+
import { P as rt } from "./textarea-Da9E3RM7.js";
|
|
26
|
+
import { P as et } from "./textinput-DaMYc5gd.js";
|
|
27
|
+
import { P as kt } from "./select-Bug9sfr5.js";
|
|
124
28
|
export {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
At as PktTextinput
|
|
29
|
+
e as PktAccordion,
|
|
30
|
+
a as PktAccordionItem,
|
|
31
|
+
r as PktAlert,
|
|
32
|
+
s as PktBackLink,
|
|
33
|
+
x as PktButton,
|
|
34
|
+
f as PktCalendar,
|
|
35
|
+
d as PktCard,
|
|
36
|
+
T as PktCheckbox,
|
|
37
|
+
c as PktCombobox,
|
|
38
|
+
u as PktConsent,
|
|
39
|
+
l as PktDateTags,
|
|
40
|
+
H as PktDatepicker,
|
|
41
|
+
L as PktHeader,
|
|
42
|
+
A as PktHeaderService,
|
|
43
|
+
B as PktHeaderUserMenu,
|
|
44
|
+
S as PktHeading,
|
|
45
|
+
D as PktHelptext,
|
|
46
|
+
v as PktIcon,
|
|
47
|
+
W as PktInputWrapper,
|
|
48
|
+
q as PktLink,
|
|
49
|
+
y as PktLinkCard,
|
|
50
|
+
E as PktLoader,
|
|
51
|
+
G as PktMessagebox,
|
|
52
|
+
K as PktModal,
|
|
53
|
+
O as PktProgressbar,
|
|
54
|
+
V as PktRadioButton,
|
|
55
|
+
X as PktRadiobutton,
|
|
56
|
+
kt as PktSelect,
|
|
57
|
+
$ as PktTabItem,
|
|
58
|
+
tt as PktTabs,
|
|
59
|
+
Z as PktTag,
|
|
60
|
+
rt as PktTextarea,
|
|
61
|
+
et as PktTextinput
|
|
159
62
|
};
|
|
@@ -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-rgXsRNkk.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-D85g20GS.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-B-9K02q8.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-C_0RhGhk.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-1EXLdxfq.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-dscnWgCd.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-ncKVjcyZ.cjs"),t=e.PktModal;Object.defineProperty(exports,"PktModal",{enumerable:!0,get:()=>e.PktModal});exports.default=t;
|
package/dist/pkt-modal.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=require("./pkt-slot-controller-BzddBp7z.cjs");class a{constructor(t){this.nodes=[],this.options=[],this.host=t,this.host.addController(this),this.nodes=[],this.options=[],this.observer=new MutationObserver(e=>this.handleMutations(e))}hostConnected(){Array.from(this.host.childNodes).forEach(t=>{(t.nodeName==="OPTION"||t.nodeName==="DATA")&&this.addNode(t)}),this.createOptions(),this.observer.observe(this.host,{childList:!0,subtree:!1,attributes:!0})}hostDisconnected(){this.observer.disconnect()}addNode(t){(t.nodeName==="OPTION"||t.nodeName==="DATA")&&(t.hasAttribute("hidden")&&!t.hasAttribute("data-skip")&&t.setAttribute("data-hidden","true"),!t.hasAttribute("hidden")&&t.hasAttribute("data-skip")&&t.hasAttribute("data-hidden")&&t.removeAttribute("data-hidden"),t.setAttribute("class","pkt-hide"),t.setAttribute("data-skip","true"),t.setAttribute("hidden","true"),this.nodes.push(t))}createOptions(){this.options=this.nodes.map(t=>({value:t.hasAttribute("value")?t.getAttribute("value")??"":t.textContent??"",label:t.textContent||t.getAttribute("value")||"",selected:t.hasAttribute("selected"),disabled:t.hasAttribute("disabled"),hidden:t.hasAttribute("data-hidden")})),this.host.requestUpdate()}handleMutations(t){let e=!1;t.forEach(s=>{s.type==="childList"&&(s.addedNodes.forEach(i=>{r.isOptionElement(i)&&(this.addNode(i),e=!0)}),s.removedNodes.forEach(i=>{r.isOptionElement(i)&&(this.nodes=this.nodes.filter(h=>h!==i),e=!0)})),s.type==="attributes"&&r.isOptionElement(s.target)&&(this.addNode(s.target),e=!0)}),e&&this.createOptions()}}exports.PktOptionsSlotController=a;
|
|
@@ -6,7 +6,7 @@ class o {
|
|
|
6
6
|
hostConnected() {
|
|
7
7
|
Array.from(this.host.childNodes).forEach((t) => {
|
|
8
8
|
(t.nodeName === "OPTION" || t.nodeName === "DATA") && this.addNode(t);
|
|
9
|
-
}), this.observer.observe(this.host, { childList: !0, subtree: !1, attributes: !0 });
|
|
9
|
+
}), this.createOptions(), this.observer.observe(this.host, { childList: !0, subtree: !1, attributes: !0 });
|
|
10
10
|
}
|
|
11
11
|
hostDisconnected() {
|
|
12
12
|
this.observer.disconnect();
|
|
@@ -21,7 +21,7 @@ class o {
|
|
|
21
21
|
selected: t.hasAttribute("selected"),
|
|
22
22
|
disabled: t.hasAttribute("disabled"),
|
|
23
23
|
hidden: t.hasAttribute("data-hidden")
|
|
24
|
-
})), this.host.
|
|
24
|
+
})), this.host.requestUpdate();
|
|
25
25
|
}
|
|
26
26
|
handleMutations(t) {
|
|
27
27
|
let e = !1;
|
|
@@ -29,7 +29,7 @@ class o {
|
|
|
29
29
|
s.type === "childList" && (s.addedNodes.forEach((i) => {
|
|
30
30
|
r(i) && (this.addNode(i), e = !0);
|
|
31
31
|
}), s.removedNodes.forEach((i) => {
|
|
32
|
-
r(i) && (this.nodes = this.nodes.filter((
|
|
32
|
+
r(i) && (this.nodes = this.nodes.filter((a) => a !== i), e = !0);
|
|
33
33
|
})), s.type === "attributes" && r(s.target) && (this.addNode(s.target), e = !0);
|
|
34
34
|
}), e && this.createOptions();
|
|
35
35
|
}
|
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-ClY1WgnM.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-iHuLnuAn.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-jbIbD7hW.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-tabs.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./tabitem-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./tabitem-CtltSqDK.cjs");exports.PktTabItem=e.PktTabItem;exports.PktTabs=e.PktTabs;exports.default=e.PktTabs;
|
package/dist/pkt-tabs.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-BfjOlIyS.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-Dfa4_ZBy.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-CLM9fRjm.cjs"),t=e.PktTextinput;Object.defineProperty(exports,"PktTextinput",{enumerable:!0,get:()=>e.PktTextinput});exports.default=t;
|
package/dist/pkt-textinput.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const n=require("./class-map-
|
|
1
|
+
"use strict";const n=require("./class-map-CApIYSRo.cjs"),e=require("./element-aUzIoa1s.cjs"),p=require("./state-GDzxl12x.cjs"),h=require("./ref-C5iJMIE1.cjs"),b=require("./directive-C7oCP5Bh.cjs"),d=require("./utils-byXsEz1u.cjs");require("./icon-Dl9ZPqe6.cjs");/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2018 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { e as n } from "./class-map-
|
|
2
|
-
import { T as g, P as _, E as c, x as b, n as u,
|
|
3
|
-
import { r as h } from "./state-
|
|
4
|
-
import { e as y, n as A } from "./ref-
|
|
1
|
+
import { e as n } from "./class-map-Dt2jXOlF.js";
|
|
2
|
+
import { T as g, P as _, E as c, x as b, n as u, t as $ } from "./element-BXsf_NlG.js";
|
|
3
|
+
import { r as h } from "./state-DgnkjP0q.js";
|
|
4
|
+
import { e as y, n as A } from "./ref-BxiKhrfa.js";
|
|
5
5
|
import { e as x, i as T, t as k } from "./directive-oAbCiebi.js";
|
|
6
6
|
import { u as d } from "./utils-DznhwRXm.js";
|
|
7
|
-
import "./icon-
|
|
7
|
+
import "./icon-BgG6oO4Q.js";
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2018 Google LLC
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("./element-
|
|
1
|
+
"use strict";const t=require("./element-aUzIoa1s.cjs"),r=require("./state-GDzxl12x.cjs"),u=require("./input-element-RBQVA8i0.cjs"),h=require("./ref-C5iJMIE1.cjs"),c=require("./class-map-CApIYSRo.cjs");var d=Object.defineProperty,k=Object.getOwnPropertyDescriptor,i=(p,e,n,a)=>{for(var s=a>1?void 0:a?k(e,n):e,o=p.length-1,l;o>=0;o--)(l=p[o])&&(s=(a?l(e,n,s):l(s))||s);return a&&s&&d(e,n,s),s};exports.PktRadioButton=class extends u.PktInputElement{constructor(){super(...arguments),this.inputRef=h.e(),this.value="",this.checkHelptext=null,this.defaultChecked=!1,this.hasTile=!1,this.checked=null,this.type="radio",this.tagText=null,this.optionalTag=!1,this.optionalText="Valgfritt",this.requiredTag=!1,this.requiredText="Må fylles ut",this._checked=!1}connectedCallback(){super.connectedCallback()}attributeChangedCallback(e,n,a){e==="defaultChecked"&&(this._checked=this.defaultChecked),e==="checked"&&(this._checked=this.checked===""||this.checked==="true"||this.checked===!0),super.attributeChangedCallback(e,n,a)}render(){const e=c.e({"pkt-input-check__input":!0,"pkt-input-check__input--tile":this.hasTile,"pkt-input-check__input--tile-disabled":this.disabled&&this.hasTile}),n=c.e({"pkt-input-check__input-checkbox":!0,"pkt-input-check__input-checkbox--error":this.hasError}),a=c.e({"pkt-input-check__input-label":!0,"pkt-input-check__input-label--disabled":this.disabled,"pkt-sr-only":this.hideLabel}),s="pkt-tag pkt-tag--small pkt-tag--thin-text",o=()=>t.x`
|
|
2
2
|
${this.tagText?t.x`<span class=${s+" pkt-tag--gray"}>${this.tagText}</span>`:t.E}
|
|
3
3
|
${this.optionalTag?t.x`<span class=${s+" pkt-tag--blue-light"}>${this.optionalText}</span>`:t.E}
|
|
4
4
|
${this.requiredTag?t.x`<span class=${s+" pkt-tag--beige"}>${this.requiredText}</span>`:t.E}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { x as h, E as n, n as s,
|
|
2
|
-
import { r as k } from "./state-
|
|
3
|
-
import { P as f } from "./input-element-
|
|
4
|
-
import { e as g, n as y } from "./ref-
|
|
5
|
-
import { e as u } from "./class-map-
|
|
6
|
-
var $ = Object.defineProperty, b = Object.getOwnPropertyDescriptor, i = (e,
|
|
7
|
-
for (var
|
|
8
|
-
(o = e[r]) && (
|
|
9
|
-
return l &&
|
|
1
|
+
import { x as h, E as n, n as s, t as d } from "./element-BXsf_NlG.js";
|
|
2
|
+
import { r as k } from "./state-DgnkjP0q.js";
|
|
3
|
+
import { P as f } from "./input-element-DVZhYDJ_.js";
|
|
4
|
+
import { e as g, n as y } from "./ref-BxiKhrfa.js";
|
|
5
|
+
import { e as u } from "./class-map-Dt2jXOlF.js";
|
|
6
|
+
var $ = Object.defineProperty, b = Object.getOwnPropertyDescriptor, i = (e, a, c, l) => {
|
|
7
|
+
for (var p = l > 1 ? void 0 : l ? b(a, c) : a, r = e.length - 1, o; r >= 0; r--)
|
|
8
|
+
(o = e[r]) && (p = (l ? o(a, c, p) : o(p)) || p);
|
|
9
|
+
return l && p && $(a, c, p), p;
|
|
10
10
|
};
|
|
11
11
|
let t = class extends f {
|
|
12
12
|
constructor() {
|
|
@@ -15,28 +15,28 @@ let t = class extends f {
|
|
|
15
15
|
connectedCallback() {
|
|
16
16
|
super.connectedCallback();
|
|
17
17
|
}
|
|
18
|
-
attributeChangedCallback(e,
|
|
19
|
-
e === "defaultChecked" && (this._checked = this.defaultChecked), e === "checked" && (this._checked = this.checked === "" || this.checked === "true" || this.checked === !0), super.attributeChangedCallback(e,
|
|
18
|
+
attributeChangedCallback(e, a, c) {
|
|
19
|
+
e === "defaultChecked" && (this._checked = this.defaultChecked), e === "checked" && (this._checked = this.checked === "" || this.checked === "true" || this.checked === !0), super.attributeChangedCallback(e, a, c);
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
22
|
const e = u({
|
|
23
23
|
"pkt-input-check__input": !0,
|
|
24
24
|
"pkt-input-check__input--tile": this.hasTile,
|
|
25
25
|
"pkt-input-check__input--tile-disabled": this.disabled && this.hasTile
|
|
26
|
-
}),
|
|
26
|
+
}), a = u({
|
|
27
27
|
"pkt-input-check__input-checkbox": !0,
|
|
28
28
|
"pkt-input-check__input-checkbox--error": this.hasError
|
|
29
29
|
}), c = u({
|
|
30
30
|
"pkt-input-check__input-label": !0,
|
|
31
31
|
"pkt-input-check__input-label--disabled": this.disabled,
|
|
32
32
|
"pkt-sr-only": this.hideLabel
|
|
33
|
-
}), l = "pkt-tag pkt-tag--small pkt-tag--thin-text",
|
|
33
|
+
}), l = "pkt-tag pkt-tag--small pkt-tag--thin-text", p = () => h`
|
|
34
34
|
${this.tagText ? h`<span class=${l + " pkt-tag--gray"}>${this.tagText}</span>` : n}
|
|
35
35
|
${this.optionalTag ? h`<span class=${l + " pkt-tag--blue-light"}>${this.optionalText}</span>` : n}
|
|
36
36
|
${this.requiredTag ? h`<span class=${l + " pkt-tag--beige"}>${this.requiredText}</span>` : n}
|
|
37
37
|
`, r = () => h`
|
|
38
38
|
<label class=${c} for=${this.id + "-internal"}>
|
|
39
|
-
${this.label} ${
|
|
39
|
+
${this.label} ${p()}
|
|
40
40
|
${this.checkHelptext ? h`<div class="pkt-input-check__input-helptext">${this.checkHelptext}</div>` : n}
|
|
41
41
|
</label>
|
|
42
42
|
`;
|
|
@@ -45,7 +45,7 @@ let t = class extends f {
|
|
|
45
45
|
<div class=${e}>
|
|
46
46
|
<input
|
|
47
47
|
id=${this.id + "-internal"}
|
|
48
|
-
class=${
|
|
48
|
+
class=${a}
|
|
49
49
|
type="radio"
|
|
50
50
|
role="radio"
|
|
51
51
|
?disabled=${this.disabled}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as l } from "./element-
|
|
2
|
-
import { f as $ } from "./directive-helpers-
|
|
1
|
+
import { E as l } from "./element-BXsf_NlG.js";
|
|
2
|
+
import { f as $ } from "./directive-helpers-CQef4qUQ.js";
|
|
3
3
|
import { i as f, t as a, e as _ } from "./directive-oAbCiebi.js";
|
|
4
4
|
/**
|
|
5
5
|
* @license
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const d=require("./element-
|
|
1
|
+
"use strict";const d=require("./element-aUzIoa1s.cjs"),a=require("./directive-helpers-CYIEJ8pI.cjs"),l=require("./directive-C7oCP5Bh.cjs");/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2017 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|