@oslokommune/punkt-elements 12.40.5 → 12.40.7
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-vmwqD9rr.js → accordionitem-DkE9or0K.js} +3 -3
- package/dist/{accordionitem-RFwXQC_0.cjs → accordionitem-Dz6jwPpb.cjs} +1 -1
- package/dist/{alert-C33z1kBf.js → alert-CoGYPbs-.js} +5 -5
- package/dist/{alert-C2EPmB0W.cjs → alert-D2PhTV94.cjs} +1 -1
- package/dist/{backlink-hvyJmwrO.js → backlink-BnlrDl9O.js} +2 -2
- package/dist/{backlink-HHM21crL.cjs → backlink-CcAZfB1d.cjs} +1 -1
- package/dist/{button-C60j8BsA.cjs → button-D_yRZQCa.cjs} +1 -1
- package/dist/{button-BCCtR9ff.js → button-o5SOFZKg.js} +2 -2
- package/dist/{calendar-CYY42kN4.cjs → calendar-BDeaGBaH.cjs} +1 -1
- package/dist/{calendar-KDcOWD6V.js → calendar-Beno8yU7.js} +4 -4
- package/dist/{card-Vy3_XLAy.js → card-BxHlJq4J.js} +6 -6
- package/dist/{card-CibYYPmF.cjs → card-CmdIb2X9.cjs} +1 -1
- package/dist/{checkbox-D5fSFvhs.js → checkbox-CtM5Hr2H.js} +4 -4
- package/dist/{checkbox-7ct89AUo.cjs → checkbox-Dqd2_fcU.cjs} +1 -1
- package/dist/{class-map-DCyaICmy.cjs → class-map-DWDPOqjO.cjs} +1 -1
- package/dist/{class-map-KyMqi0fa.js → class-map-m7ZCZ49w.js} +1 -1
- package/dist/{combobox-DewmPXyJ.js → combobox-Ct7-a2Vy.js} +31 -31
- package/dist/{combobox-dwkB9Yv_.cjs → combobox-lds6Lryq.cjs} +7 -7
- package/dist/{consent-1ZSUrWK9.cjs → consent-CVMm8lGt.cjs} +1 -1
- package/dist/{consent-c6eWVBWx.js → consent-DZ_-dQle.js} +3 -3
- package/dist/{datepicker-CISpFZSs.js → datepicker-D6gkp_6p.js} +11 -11
- package/dist/{datepicker-BDnncwne.cjs → datepicker-DpQV8G6g.cjs} +1 -1
- package/dist/{directive-helpers-8uS_Izwn.js → directive-helpers--4ibN__v.js} +1 -1
- package/dist/{directive-helpers-CG7Oxal3.cjs → directive-helpers-v9b0v7lu.cjs} +1 -1
- package/dist/{element-BSypUpzA.cjs → element-90YeMNbV.cjs} +35 -35
- package/dist/{element-DjjF_tEh.js → element-gAd63VwC.js} +629 -627
- package/dist/{heading-DNLQdsXY.js → heading-Bxonbv8M.js} +3 -3
- package/dist/{heading-BnJhJDMD.cjs → heading-CxJ0IqpU.cjs} +1 -1
- package/dist/{helptext-bMgnhZ1R.cjs → helptext-AqNI_oFG.cjs} +1 -1
- package/dist/{helptext-DcSUjjEq.js → helptext-DBearL3P.js} +5 -5
- package/dist/{icon-BnKGwYjj.cjs → icon-B1_BRNqf.cjs} +1 -1
- package/dist/{icon-Beoxup8E.js → icon-CO1TLSs5.js} +1 -1
- package/dist/{if-defined-a3sotaUr.cjs → if-defined-C8eotHpL.cjs} +1 -1
- package/dist/{if-defined-BErSJCeJ.js → if-defined-Cj-3Kdsr.js} +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/{input-element-B2GjFOXX.js → input-element-BEvaQK4g.js} +30 -27
- package/dist/input-element-CInrWeac.cjs +1 -0
- package/dist/{input-wrapper-B-f_SotM.cjs → input-wrapper-B_TtkGqo.cjs} +1 -1
- package/dist/{input-wrapper-BdeoMGnk.js → input-wrapper-CDgnd3WJ.js} +6 -6
- package/dist/{link-nesPZCIx.cjs → link-BWJrqWi7.cjs} +1 -1
- package/dist/{link-DCYJhFKJ.js → link-Qj1bJCPw.js} +4 -4
- package/dist/{linkcard-s9yoOq90.cjs → linkcard-0KLDuaGM.cjs} +1 -1
- package/dist/{linkcard-Bt-Qa_SP.js → linkcard-Byt10fUI.js} +3 -3
- package/dist/{listbox-DqpGh7eq.cjs → listbox-AjDNhDsQ.cjs} +1 -1
- package/dist/{listbox-C1oYnM-t.js → listbox-DCWdrjFp.js} +5 -5
- package/dist/{loader-ndMy12Pb.cjs → loader--5h6NKGl.cjs} +1 -1
- package/dist/{loader-DhmtCyQA.js → loader-xkMMWgaj.js} +5 -5
- package/dist/{messagebox-DZDP8XZt.js → messagebox-BLTBG8nD.js} +5 -5
- package/dist/{messagebox-B0kgftoP.cjs → messagebox-IJOkv427.cjs} +1 -1
- package/dist/{modal-nU8cELiR.js → modal-C6ljjVs6.js} +5 -5
- package/dist/{modal-C8GbUY8p.cjs → modal-CBURcXBd.cjs} +1 -1
- 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 +1 -1
- package/dist/pkt-index.js +29 -29
- package/dist/pkt-input-wrapper.cjs +1 -1
- package/dist/pkt-input-wrapper.js +1 -1
- package/dist/pkt-link.cjs +1 -1
- package/dist/pkt-link.js +1 -1
- package/dist/pkt-linkcard.cjs +1 -1
- package/dist/pkt-linkcard.js +1 -1
- package/dist/pkt-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-BKt_aj7f.js → progressbar-BSO0KWzv.js} +5 -5
- package/dist/{progressbar-DiRfScnB.cjs → progressbar-BrXtjUvh.cjs} +1 -1
- package/dist/{radiobutton-DGWTMdAZ.cjs → radiobutton-C7tqzN0V.cjs} +1 -1
- package/dist/{radiobutton-CET0zjgD.js → radiobutton-CxEBrLss.js} +5 -5
- package/dist/{ref-BvbyvXRH.cjs → ref-B-w1vCo8.cjs} +1 -1
- package/dist/{ref-iIffqQAI.js → ref-DnSbnXsj.js} +2 -2
- package/dist/{repeat-BnuruAat.cjs → repeat-CxQA3AeF.cjs} +1 -1
- package/dist/{repeat-D4kMediE.js → repeat-lUFq9w5d.js} +2 -2
- package/dist/{select-ChpPtH7u.cjs → select-BUvu5SFp.cjs} +1 -1
- package/dist/{select-C2Lr2fdU.js → select-BVBllbIG.js} +7 -7
- package/dist/{state-BtbpSrdV.js → state-BxrO4zNJ.js} +1 -1
- package/dist/{state-B5KCNjEd.cjs → state-D-Recv7U.cjs} +1 -1
- package/dist/{tag-Cu8afZy8.js → tag-CX-zbR-7.js} +6 -6
- package/dist/{tag-B9kFYxHg.cjs → tag-lU4vz70a.cjs} +1 -1
- package/dist/{textarea-l10XGym1.js → textarea-CmXiVLbl.js} +9 -9
- package/dist/{textarea-yUzqcBYY.cjs → textarea-j8kBS-hf.cjs} +1 -1
- package/dist/{textinput-B1n0gFaS.js → textinput-LLaLZX3h.js} +19 -16
- package/dist/{textinput-8mT0npMY.cjs → textinput-kmcj-FlC.cjs} +9 -6
- package/package.json +3 -3
- package/src/components/combobox/combobox.ts +4 -3
- package/src/components/select/select.ts +1 -2
- package/src/components/textinput/textinput.ts +3 -0
- package/dist/input-element-DK0UmdGZ.cjs +0 -1
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-AqNI_oFG.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-B1_BRNqf.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 P=require("./alert-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("./alert-D2PhTV94.cjs"),l=require("./accordionitem-Dz6jwPpb.cjs"),d=require("./backlink-CcAZfB1d.cjs"),b=require("./button-D_yRZQCa.cjs"),k=require("./calendar-BDeaGBaH.cjs"),m=require("./card-CmdIb2X9.cjs"),g=require("./combobox-lds6Lryq.cjs"),h=require("./consent-CVMm8lGt.cjs"),f=require("./checkbox-Dqd2_fcU.cjs"),t=require("./element-90YeMNbV.cjs"),y=require("./pkt-slot-controller-Da-RgXfS.cjs"),s=require("./ref-B-w1vCo8.cjs"),O=require("./class-map-DWDPOqjO.cjs"),j=require("./datepicker-DpQV8G6g.cjs"),q=require("./helptext-AqNI_oFG.cjs"),x=require("./heading-CxJ0IqpU.cjs"),C=require("./icon-B1_BRNqf.cjs"),v=require("./input-wrapper-B_TtkGqo.cjs"),S=require("./link-BWJrqWi7.cjs"),$=require("./linkcard-0KLDuaGM.cjs"),L=require("./loader--5h6NKGl.cjs"),_=require("./messagebox-IJOkv427.cjs"),A=require("./modal-CBURcXBd.cjs"),B=require("./progressbar-BrXtjUvh.cjs"),p=require("./radiobutton-C7tqzN0V.cjs"),T=require("./tag-lU4vz70a.cjs"),I=require("./textarea-j8kBS-hf.cjs"),M=require("./textinput-kmcj-FlC.cjs"),R=require("./select-BUvu5SFp.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
|
|
package/dist/pkt-index.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { P as A } from "./alert-
|
|
2
|
-
import { P as B, a as E } from "./accordionitem-
|
|
3
|
-
import { P as O } from "./backlink-
|
|
4
|
-
import { P as T } from "./button-
|
|
5
|
-
import { c as f } from "./calendar-
|
|
6
|
-
import { P as D } from "./calendar-
|
|
7
|
-
import { P as G } from "./card-
|
|
8
|
-
import { P as K } from "./combobox-
|
|
9
|
-
import { P as U } from "./consent-
|
|
10
|
-
import { P as q } from "./checkbox-
|
|
11
|
-
import { P as k, t as h, x as P, n, a as c } from "./element-
|
|
1
|
+
import { P as A } from "./alert-CoGYPbs-.js";
|
|
2
|
+
import { P as B, a as E } from "./accordionitem-DkE9or0K.js";
|
|
3
|
+
import { P as O } from "./backlink-BnlrDl9O.js";
|
|
4
|
+
import { P as T } from "./button-o5SOFZKg.js";
|
|
5
|
+
import { c as f } from "./calendar-Beno8yU7.js";
|
|
6
|
+
import { P as D } from "./calendar-Beno8yU7.js";
|
|
7
|
+
import { P as G } from "./card-BxHlJq4J.js";
|
|
8
|
+
import { P as K } from "./combobox-Ct7-a2Vy.js";
|
|
9
|
+
import { P as U } from "./consent-DZ_-dQle.js";
|
|
10
|
+
import { P as q } from "./checkbox-CtM5Hr2H.js";
|
|
11
|
+
import { P as k, t as h, x as P, n, a as c } from "./element-gAd63VwC.js";
|
|
12
12
|
import { P as x } from "./pkt-slot-controller-DtDaD9q_.js";
|
|
13
|
-
import { e as m, n as d } from "./ref-
|
|
14
|
-
import { e as u } from "./class-map-
|
|
15
|
-
import { P as F } from "./datepicker-
|
|
16
|
-
import { P as Q } from "./helptext-
|
|
17
|
-
import { P as X } from "./heading-
|
|
18
|
-
import { P as Z } from "./icon-
|
|
19
|
-
import { P as et } from "./input-wrapper-
|
|
20
|
-
import { P as ot } from "./link-
|
|
21
|
-
import { P as at } from "./linkcard-
|
|
22
|
-
import { P as it } from "./loader-
|
|
23
|
-
import { P as lt } from "./messagebox-
|
|
24
|
-
import { P as mt } from "./modal-
|
|
25
|
-
import { P as ft } from "./progressbar-
|
|
26
|
-
import { P as ht, P as ct } from "./radiobutton-
|
|
27
|
-
import { P as ut } from "./tag-
|
|
28
|
-
import { P as vt } from "./textarea-
|
|
29
|
-
import { P as bt } from "./textinput-
|
|
30
|
-
import { P as $t } from "./select-
|
|
13
|
+
import { e as m, n as d } from "./ref-DnSbnXsj.js";
|
|
14
|
+
import { e as u } from "./class-map-m7ZCZ49w.js";
|
|
15
|
+
import { P as F } from "./datepicker-D6gkp_6p.js";
|
|
16
|
+
import { P as Q } from "./helptext-DBearL3P.js";
|
|
17
|
+
import { P as X } from "./heading-Bxonbv8M.js";
|
|
18
|
+
import { P as Z } from "./icon-CO1TLSs5.js";
|
|
19
|
+
import { P as et } from "./input-wrapper-CDgnd3WJ.js";
|
|
20
|
+
import { P as ot } from "./link-Qj1bJCPw.js";
|
|
21
|
+
import { P as at } from "./linkcard-Byt10fUI.js";
|
|
22
|
+
import { P as it } from "./loader-xkMMWgaj.js";
|
|
23
|
+
import { P as lt } from "./messagebox-BLTBG8nD.js";
|
|
24
|
+
import { P as mt } from "./modal-C6ljjVs6.js";
|
|
25
|
+
import { P as ft } from "./progressbar-BSO0KWzv.js";
|
|
26
|
+
import { P as ht, P as ct } from "./radiobutton-CxEBrLss.js";
|
|
27
|
+
import { P as ut } from "./tag-CX-zbR-7.js";
|
|
28
|
+
import { P as vt } from "./textarea-CmXiVLbl.js";
|
|
29
|
+
import { P as bt } from "./textinput-LLaLZX3h.js";
|
|
30
|
+
import { P as $t } from "./select-BVBllbIG.js";
|
|
31
31
|
var g = Object.defineProperty, v = Object.getOwnPropertyDescriptor, s = (t, e, i, a) => {
|
|
32
32
|
for (var r = a > 1 ? void 0 : a ? v(e, i) : e, p = t.length - 1, l; p >= 0; p--)
|
|
33
33
|
(l = t[p]) && (r = (a ? l(e, i, r) : l(r)) || r);
|
|
@@ -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-B_TtkGqo.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-BWJrqWi7.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-0KLDuaGM.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-AjDNhDsQ.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--5h6NKGl.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-IJOkv427.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-CBURcXBd.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-BrXtjUvh.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-C7tqzN0V.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-BUvu5SFp.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-lU4vz70a.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-j8kBS-hf.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-kmcj-FlC.cjs"),t=e.PktTextinput;Object.defineProperty(exports,"PktTextinput",{enumerable:!0,get:()=>e.PktTextinput});exports.default=t;
|
package/dist/pkt-textinput.js
CHANGED
|
@@ -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, a as $ } from "./element-
|
|
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-m7ZCZ49w.js";
|
|
2
|
+
import { T as g, P as _, E as c, x as b, n as u, a as $ } from "./element-gAd63VwC.js";
|
|
3
|
+
import { r as h } from "./state-BxrO4zNJ.js";
|
|
4
|
+
import { e as y, n as A } from "./ref-DnSbnXsj.js";
|
|
5
5
|
import { e as x, i as T, t as k } from "./directive-oAbCiebi.js";
|
|
6
6
|
import { u as d } from "./stringutils-DJjRa8dG.js";
|
|
7
|
-
import "./icon-
|
|
7
|
+
import "./icon-CO1TLSs5.js";
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2018 Google LLC
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const n=require("./class-map-
|
|
1
|
+
"use strict";const n=require("./class-map-DWDPOqjO.cjs"),e=require("./element-90YeMNbV.cjs"),p=require("./state-D-Recv7U.cjs"),h=require("./ref-B-w1vCo8.cjs"),b=require("./directive-C7oCP5Bh.cjs"),d=require("./stringutils-CkVRq4jP.cjs");require("./icon-B1_BRNqf.cjs");/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2018 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("./element-
|
|
1
|
+
"use strict";const e=require("./element-90YeMNbV.cjs"),p=require("./state-D-Recv7U.cjs"),r=require("./input-element-CInrWeac.cjs"),o=require("./ref-B-w1vCo8.cjs"),a=require("./class-map-DWDPOqjO.cjs");var d=Object.defineProperty,k=Object.getOwnPropertyDescriptor,i=(h,t,c,n)=>{for(var s=n>1?void 0:n?k(t,c):t,l=h.length-1,u;l>=0;l--)(u=h[l])&&(s=(n?u(t,c,s):u(s))||s);return n&&s&&d(t,c,s),s};exports.PktRadioButton=class extends r.PktInputElement{constructor(){super(...arguments),this.inputRef=o.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(t,c,n){t==="defaultChecked"&&(this._checked=this.defaultChecked),t==="checked"&&(this._checked=this.checked===""||this.checked==="true"||this.checked===!0),super.attributeChangedCallback(t,c,n)}render(){const t=a.e({"pkt-input-check__input":!0,"pkt-input-check__input--tile":this.hasTile,"pkt-input-check__input--tile-disabled":this.disabled&&this.hasTile}),c=a.e({"pkt-input-check__input-checkbox":!0,"pkt-input-check__input-checkbox--error":this.hasError});return e.x`
|
|
2
2
|
<div class="pkt-input-check">
|
|
3
3
|
<div class=${t}>
|
|
4
4
|
<input
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { E as u, x as n, n as h, a as d } from "./element-
|
|
2
|
-
import { r as k } from "./state-
|
|
3
|
-
import { P as f } from "./input-element-
|
|
4
|
-
import { e as _, n as b } from "./ref-
|
|
5
|
-
import { e as o } from "./class-map-
|
|
1
|
+
import { E as u, x as n, n as h, a as d } from "./element-gAd63VwC.js";
|
|
2
|
+
import { r as k } from "./state-BxrO4zNJ.js";
|
|
3
|
+
import { P as f } from "./input-element-BEvaQK4g.js";
|
|
4
|
+
import { e as _, n as b } from "./ref-DnSbnXsj.js";
|
|
5
|
+
import { e as o } from "./class-map-m7ZCZ49w.js";
|
|
6
6
|
var v = Object.defineProperty, C = Object.getOwnPropertyDescriptor, c = (e, i, p, l) => {
|
|
7
7
|
for (var s = l > 1 ? void 0 : l ? C(i, p) : i, r = e.length - 1, a; r >= 0; r--)
|
|
8
8
|
(a = e[r]) && (s = (l ? a(i, p, s) : a(s)) || s);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const d=require("./element-
|
|
1
|
+
"use strict";const d=require("./element-90YeMNbV.cjs"),a=require("./directive-helpers-v9b0v7lu.cjs"),l=require("./directive-C7oCP5Bh.cjs");/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2017 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -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-gAd63VwC.js";
|
|
2
|
+
import { f as $ } from "./directive-helpers--4ibN__v.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 m=require("./element-
|
|
1
|
+
"use strict";const m=require("./element-90YeMNbV.cjs"),x=require("./directive-C7oCP5Bh.cjs"),s=require("./directive-helpers-v9b0v7lu.cjs");/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2017 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T as $ } from "./element-
|
|
1
|
+
import { T as $ } from "./element-gAd63VwC.js";
|
|
2
2
|
import { e as A, i as M, t as b } from "./directive-oAbCiebi.js";
|
|
3
|
-
import { p as j, v as h, r as v, M as x, m as C } from "./directive-helpers
|
|
3
|
+
import { p as j, v as h, r as v, M as x, m as C } from "./directive-helpers--4ibN__v.js";
|
|
4
4
|
/**
|
|
5
5
|
* @license
|
|
6
6
|
* Copyright 2017 Google LLC
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("./element-
|
|
1
|
+
"use strict";const r=require("./element-90YeMNbV.cjs"),p=require("./state-D-Recv7U.cjs"),h=require("./ref-B-w1vCo8.cjs"),o=require("./if-defined-C8eotHpL.cjs"),d=require("./input-element-CInrWeac.cjs"),c=require("./pkt-options-controller-Ay9ELZTV.cjs"),v=require("./pkt-slot-controller-Da-RgXfS.cjs");require("./input-wrapper-B_TtkGqo.cjs");var f=Object.defineProperty,b=Object.getOwnPropertyDescriptor,a=(u,t,e,s)=>{for(var i=s>1?void 0:s?b(t,e):t,l=u.length-1,n;l>=0;l--)(n=u[l])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&f(t,e,i),i};exports.PktSelect=class extends d.PktInputElement{constructor(){super(),this.inputRef=h.e(),this.helptextSlot=h.e(),this.options=[],this.value="",this._options=[],this.selectedIndex=-1,this.selectedOptions=void 0,this.optionsController=new c.PktOptionsSlotController(this),this.slotController=new v.PktSlotController(this,this.helptextSlot),this.slotController.skipOptions=!0}connectedCallback(){super.connectedCallback();const t=this.options.length>0,e=this.optionsController.nodes.length&&this.optionsController.nodes.length>0;!t&&e?this.optionsController.nodes.forEach(s=>{const i={value:s.getAttribute("value")||s.textContent||"",label:s.textContent||s.getAttribute("value")||"",disabled:!!s.getAttribute("disabled")};s.getAttribute("selected")&&!this.value&&(this.value=i.value),this._options.push(i)}):(this._options=this.options,this._options.forEach(s=>{s.selected&&!this.value&&(this.value=s.value)}))}add(t,e){var s,i,l;(s=this.inputRef.value)==null||s.add(t,e),this._options.push({value:t.value||t.text,label:t.text||t.value,selected:t.selected,disabled:t.disabled}),t.selected&&(this.value=t.value||t.text,this.selectedIndex=this.returnNumberOrNull((i=this.inputRef.value)==null?void 0:i.selectedIndex),this.selectedOptions=(l=this.inputRef.value)==null?void 0:l.selectedOptions),this.requestUpdate()}remove(t){var e,s;typeof t=="number"&&(this.selectedIndex===t&&(this.value=((e=this._options[0])==null?void 0:e.value)||""),(s=this.inputRef.value)==null||s.remove(t))}item(t){var e;return(e=this.inputRef.value)==null?void 0:e.item(t)}namedItem(t){var e;return(e=this.inputRef.value)==null?void 0:e.namedItem(t)}showPicker(){var t;(t=this.inputRef.value)==null||t.showPicker()}attributeChangedCallback(t,e,s){var i,l;t==="options"&&(this._options=s?JSON.parse(s):[]),t==="value"&&this.value!==e&&(this.selectedIndex=this.touched?this.returnNumberOrNull((i=this.inputRef.value)==null?void 0:i.selectedIndex):this.options.findIndex(n=>n.value===s),this.selectedOptions=(l=this.inputRef.value)==null?void 0:l.selectedOptions,this.valueChanged(s,e)),super.attributeChangedCallback(t,e,s)}update(t){var e,s;super.update(t),t.has("value")&&this.value!==t.get("value")&&(this.selectedIndex=this.touched?this.returnNumberOrNull((e=this.inputRef.value)==null?void 0:e.selectedIndex):this.options.findIndex(i=>i.value===this.value),this.selectedOptions=(s=this.inputRef.value)==null?void 0:s.selectedOptions,this.valueChanged(this.value,t.get("value"))),t.has("id")&&!this.name&&this.id&&(this.name=this.id)}firstUpdated(t){var e;super.firstUpdated(t),this.options.length&&(this._options=this.options),!this.value&&this._options.length>0?(this.value=this._options[0].value,this.selectedIndex=0):this.selectedIndex=this._options.findIndex(s=>s.value===this.value),this.selectedOptions=(e=this.inputRef.value)==null?void 0:e.selectedOptions}render(){const t=`pkt-input ${this.fullwidth?"pkt-input--fullwidth":""}`;return r.x`
|
|
2
2
|
<pkt-input-wrapper
|
|
3
3
|
?counter=${this.counter}
|
|
4
4
|
?disabled=${this.disabled}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { x as p, n as c, a as v } from "./element-
|
|
2
|
-
import { r as f } from "./state-
|
|
3
|
-
import { e as u, n as d } from "./ref-
|
|
4
|
-
import { o } from "./if-defined-
|
|
5
|
-
import { P as b } from "./input-element-
|
|
1
|
+
import { x as p, n as c, a as v } from "./element-gAd63VwC.js";
|
|
2
|
+
import { r as f } from "./state-BxrO4zNJ.js";
|
|
3
|
+
import { e as u, n as d } from "./ref-DnSbnXsj.js";
|
|
4
|
+
import { o } from "./if-defined-Cj-3Kdsr.js";
|
|
5
|
+
import { P as b } from "./input-element-BEvaQK4g.js";
|
|
6
6
|
import { P as $ } from "./pkt-options-controller-DepYQBqb.js";
|
|
7
7
|
import { P as x } from "./pkt-slot-controller-DtDaD9q_.js";
|
|
8
|
-
import "./input-wrapper-
|
|
8
|
+
import "./input-wrapper-CDgnd3WJ.js";
|
|
9
9
|
var m = Object.defineProperty, g = Object.getOwnPropertyDescriptor, r = (t, e, s, i) => {
|
|
10
10
|
for (var l = i > 1 ? void 0 : i ? g(e, s) : e, n = t.length - 1, h; n >= 0; n--)
|
|
11
11
|
(h = t[n]) && (l = (i ? h(e, s, l) : h(l)) || l);
|
|
@@ -43,7 +43,7 @@ let a = class extends b {
|
|
|
43
43
|
// Support native Select method `remove`
|
|
44
44
|
remove(t) {
|
|
45
45
|
var e, s;
|
|
46
|
-
typeof t == "number" && (
|
|
46
|
+
typeof t == "number" && (this.selectedIndex === t && (this.value = ((e = this._options[0]) == null ? void 0 : e.value) || ""), (s = this.inputRef.value) == null || s.remove(t));
|
|
47
47
|
}
|
|
48
48
|
// Support native Select method `item`
|
|
49
49
|
item(t) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { e as u } from "./class-map-
|
|
2
|
-
import { P as m, x as l, n as r, a as g } from "./element-
|
|
3
|
-
import { r as k } from "./state-
|
|
1
|
+
import { e as u } from "./class-map-m7ZCZ49w.js";
|
|
2
|
+
import { P as m, x as l, n as r, a as g } from "./element-gAd63VwC.js";
|
|
3
|
+
import { r as k } from "./state-BxrO4zNJ.js";
|
|
4
4
|
import { P as y } from "./pkt-slot-controller-DtDaD9q_.js";
|
|
5
|
-
import { e as b, n as f } from "./ref-
|
|
6
|
-
import "./icon-
|
|
7
|
-
import { o as d } from "./if-defined-
|
|
5
|
+
import { e as b, n as f } from "./ref-DnSbnXsj.js";
|
|
6
|
+
import "./icon-CO1TLSs5.js";
|
|
7
|
+
import { o as d } from "./if-defined-Cj-3Kdsr.js";
|
|
8
8
|
const _ = {
|
|
9
9
|
closeTag: {
|
|
10
10
|
default: !1
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const u=require("./class-map-
|
|
1
|
+
"use strict";const u=require("./class-map-DWDPOqjO.cjs"),t=require("./element-90YeMNbV.cjs"),k=require("./state-D-Recv7U.cjs"),g=require("./pkt-slot-controller-Da-RgXfS.cjs"),c=require("./ref-B-w1vCo8.cjs");require("./icon-B1_BRNqf.cjs");const h=require("./if-defined-C8eotHpL.cjs"),f={closeTag:{default:!1},size:{default:"medium"},skin:{default:"blue"},type:{default:"button"}},r={props:f};var d=Object.defineProperty,y=Object.getOwnPropertyDescriptor,i=(n,e,o,a)=>{for(var s=a>1?void 0:a?y(e,o):e,l=n.length-1,p;l>=0;l--)(p=n[l])&&(s=(a?p(e,o,s):p(s))||s);return a&&s&&d(e,o,s),s};exports.PktTag=class extends t.PktElement{constructor(){super(),this.defaultSlot=c.e(),this.closeTag=r.props.closeTag.default,this.size=r.props.size.default,this.skin=r.props.skin.default,this.textStyle=null,this.iconName=void 0,this.type=r.props.type.default,this.ariaLabel=null,this._isClosed=!1,this._ariaDescription=null,this.close=e=>{this._isClosed=!0,this.dispatchEvent(new CustomEvent("close",{detail:{origin:e},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("on-close",{detail:{origin:e},bubbles:!0,composed:!0}))},this.slotController=new g.PktSlotController(this,this.defaultSlot),this._isClosed=!1}firstUpdated(e){var o,a;if(super.firstUpdated(e),this.closeTag&&!this.ariaLabel){const s=(a=(o=this.defaultSlot.value)==null?void 0:o.textContent)==null?void 0:a.trim();s&&(this._ariaDescription=`Klikk for å fjerne ${s}`)}}render(){const e={"pkt-tag":!0,[`pkt-tag--${this.size}`]:!!this.size,[`pkt-tag--${this.skin}`]:!!this.skin,[`pkt-tag--${this.textStyle}`]:!!this.textStyle},o={"pkt-tag":!0,"pkt-btn":!0,"pkt-btn--tertiary":!0,[`pkt-tag--${this.textStyle}`]:!!this.textStyle,[`pkt-tag--${this.size}`]:!!this.size,[`pkt-tag--${this.skin}`]:!!this.skin,"pkt-btn--icons-right-and-left":this.closeTag&&!!this.iconName,"pkt-hide":this._isClosed};return this.closeTag?t.x`
|
|
2
2
|
<button
|
|
3
3
|
class=${u.e(o)}
|
|
4
4
|
type=${this.type}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { T as l, E as $, x as f, n as d, a as g } from "./element-
|
|
2
|
-
import { o as u } from "./if-defined-
|
|
3
|
-
import { r as x } from "./state-
|
|
4
|
-
import { e as m, n as c } from "./ref-
|
|
5
|
-
import { e as v } from "./class-map-
|
|
1
|
+
import { T as l, E as $, x as f, n as d, a as g } from "./element-gAd63VwC.js";
|
|
2
|
+
import { o as u } from "./if-defined-Cj-3Kdsr.js";
|
|
3
|
+
import { r as x } from "./state-BxrO4zNJ.js";
|
|
4
|
+
import { e as m, n as c } from "./ref-DnSbnXsj.js";
|
|
5
|
+
import { e as v } from "./class-map-m7ZCZ49w.js";
|
|
6
6
|
import { e as b, i as T, t as a } from "./directive-oAbCiebi.js";
|
|
7
|
-
import { f as y, m as w } from "./directive-helpers
|
|
8
|
-
import { P as C } from "./input-element-
|
|
7
|
+
import { f as y, m as w } from "./directive-helpers--4ibN__v.js";
|
|
8
|
+
import { P as C } from "./input-element-BEvaQK4g.js";
|
|
9
9
|
import { P as E } from "./pkt-slot-controller-DtDaD9q_.js";
|
|
10
|
-
import "./input-wrapper-
|
|
11
|
-
import "./icon-
|
|
10
|
+
import "./input-wrapper-CDgnd3WJ.js";
|
|
11
|
+
import "./icon-CO1TLSs5.js";
|
|
12
12
|
/**
|
|
13
13
|
* @license
|
|
14
14
|
* Copyright 2020 Google LLC
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const s=require("./element-
|
|
1
|
+
"use strict";const s=require("./element-90YeMNbV.cjs"),p=require("./if-defined-C8eotHpL.cjs"),c=require("./state-D-Recv7U.cjs"),l=require("./ref-B-w1vCo8.cjs"),$=require("./class-map-DWDPOqjO.cjs"),a=require("./directive-C7oCP5Bh.cjs"),d=require("./directive-helpers-v9b0v7lu.cjs"),x=require("./input-element-CInrWeac.cjs"),T=require("./pkt-slot-controller-Da-RgXfS.cjs");require("./input-wrapper-B_TtkGqo.cjs");require("./icon-B1_BRNqf.cjs");/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2020 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { E as p, x as h, n as a, a as $ } from "./element-
|
|
2
|
-
import { o as
|
|
3
|
-
import { r as f } from "./state-
|
|
4
|
-
import { e as
|
|
5
|
-
import { e as g } from "./class-map-
|
|
6
|
-
import { P as x } from "./input-element-
|
|
1
|
+
import { E as p, x as h, n as a, a as $ } from "./element-gAd63VwC.js";
|
|
2
|
+
import { o as u } from "./if-defined-Cj-3Kdsr.js";
|
|
3
|
+
import { r as f } from "./state-BxrO4zNJ.js";
|
|
4
|
+
import { e as m, n as d } from "./ref-DnSbnXsj.js";
|
|
5
|
+
import { e as g } from "./class-map-m7ZCZ49w.js";
|
|
6
|
+
import { P as x } from "./input-element-BEvaQK4g.js";
|
|
7
7
|
import { P as y } from "./pkt-slot-controller-DtDaD9q_.js";
|
|
8
|
-
import "./input-wrapper-
|
|
9
|
-
import "./icon-
|
|
8
|
+
import "./input-wrapper-CDgnd3WJ.js";
|
|
9
|
+
import "./icon-CO1TLSs5.js";
|
|
10
10
|
var v = Object.defineProperty, b = Object.getOwnPropertyDescriptor, o = (e, i, r, t) => {
|
|
11
|
-
for (var n = t > 1 ? void 0 : t ? b(i, r) : i, l = e.length - 1,
|
|
12
|
-
(
|
|
11
|
+
for (var n = t > 1 ? void 0 : t ? b(i, r) : i, l = e.length - 1, c; l >= 0; l--)
|
|
12
|
+
(c = e[l]) && (n = (t ? c(i, r, n) : c(n)) || n);
|
|
13
13
|
return t && n && v(i, r, n), n;
|
|
14
14
|
};
|
|
15
15
|
let s = class extends x {
|
|
16
16
|
constructor() {
|
|
17
|
-
super(), this.inputRef =
|
|
17
|
+
super(), this.inputRef = m(), this.helptextSlot = m(), this.value = "", this.type = "text", this.size = null, this.autocomplete = null, this.iconNameRight = null, this.prefix = null, this.suffix = null, this.omitSearchIcon = !1, this.counterCurrent = 0, this.slotController = new y(this, this.helptextSlot);
|
|
18
18
|
}
|
|
19
19
|
attributeChangedCallback(e, i, r) {
|
|
20
20
|
e === "value" && this.value !== i && (this.counterCurrent = r ? r.length : 0, this.valueChanged(r, i)), super.attributeChangedCallback(e, i, r);
|
|
@@ -53,20 +53,23 @@ let s = class extends x {
|
|
|
53
53
|
.requiredText=${this.requiredText}
|
|
54
54
|
class="pkt-textinput"
|
|
55
55
|
>
|
|
56
|
-
<div class="pkt-contents" ${
|
|
56
|
+
<div class="pkt-contents" ${d(this.helptextSlot)} name="helptext" slot="helptext"></div>
|
|
57
57
|
<div class="pkt-input__container">
|
|
58
58
|
${this.prefix ? h`<div class="pkt-input-prefix">${this.prefix}</div>` : p}
|
|
59
59
|
<input
|
|
60
|
-
${
|
|
60
|
+
${d(this.inputRef)}
|
|
61
61
|
class=${i}
|
|
62
62
|
type=${this.type}
|
|
63
63
|
name=${(this.name || this.id) + "-input"}
|
|
64
64
|
id=${this.id + "-input"}
|
|
65
|
-
placeholder=${
|
|
65
|
+
placeholder=${u(this.placeholder)}
|
|
66
66
|
aria-labelledby=${r}
|
|
67
67
|
autocomplete=${this.autocomplete || "off"}
|
|
68
|
-
minlength=${
|
|
69
|
-
maxlength=${
|
|
68
|
+
minlength=${u(this.minlength)}
|
|
69
|
+
maxlength=${u(this.maxlength)}
|
|
70
|
+
min=${u(this.min)}
|
|
71
|
+
max=${u(this.max)}
|
|
72
|
+
step=${u(this.step)}
|
|
70
73
|
?readonly=${this.readonly}
|
|
71
74
|
size=${this.size || p}
|
|
72
75
|
.value=${this.value}
|