@oslokommune/punkt-elements 14.4.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.
Files changed (134) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/{accordionitem-C_URrDjP.js → accordionitem-DB3tAjIZ.js} +4 -4
  3. package/dist/{accordionitem-DCZrHVNR.cjs → accordionitem-DHYmPA-o.cjs} +1 -1
  4. package/dist/{alert-UFQFbbzZ.js → alert-DqXar67l.js} +6 -6
  5. package/dist/{alert-SvqEDHuW.cjs → alert-GrKyqxuR.cjs} +1 -1
  6. package/dist/{backlink-C7qUmUzs.js → backlink-CqUcmiPQ.js} +11 -11
  7. package/dist/{backlink-BrIIpgJ7.cjs → backlink-QDcQd6vK.cjs} +1 -1
  8. package/dist/{button-DaM4jvhJ.cjs → button-R4l10Nqd.cjs} +1 -1
  9. package/dist/{button-CjXih_Nx.js → button-f36menSU.js} +5 -5
  10. package/dist/{calendar-CvfMj3fA.js → calendar-DiNuZ8Ai.js} +7 -8
  11. package/dist/{calendar-ZzLAjDpv.cjs → calendar-wuD6ZH0t.cjs} +3 -3
  12. package/dist/{card-C1gRTfXb.cjs → card-C2hWaMev.cjs} +1 -1
  13. package/dist/{card-CO3D8wQE.js → card-CnINxZma.js} +7 -7
  14. package/dist/{checkbox-uxeHrTLH.cjs → checkbox-B-0FOdwi.cjs} +1 -1
  15. package/dist/{checkbox-DfVUNTjH.js → checkbox-CkAwPK_E.js} +4 -4
  16. package/dist/{class-map-C_erArZz.cjs → class-map-CApIYSRo.cjs} +1 -1
  17. package/dist/{class-map-wy7PUk0P.js → class-map-Dt2jXOlF.js} +1 -1
  18. package/dist/{combobox-MZsqmVL-.js → combobox-Dxa7XjLz.js} +11 -11
  19. package/dist/{combobox-CcyHcqdW.cjs → combobox-yy6hIGmB.cjs} +1 -1
  20. package/dist/{consent-Daj-Xa7w.cjs → consent-FbFS1pmz.cjs} +1 -1
  21. package/dist/{consent-BO3Ga8N4.js → consent-c9PhWxnP.js} +3 -3
  22. package/dist/{datepicker-a2LvhbRb.js → datepicker-C7GWMtXH.js} +11 -11
  23. package/dist/{datepicker-BeMs_vsm.cjs → datepicker-D_3vYgMt.cjs} +1 -1
  24. package/dist/{directive-helpers-BzAtj9by.js → directive-helpers-CQef4qUQ.js} +1 -1
  25. package/dist/{directive-helpers-4oOjKnGY.cjs → directive-helpers-CYIEJ8pI.cjs} +1 -1
  26. package/dist/{element-CRDRygXu.js → element-BXsf_NlG.js} +3 -3
  27. package/dist/{element-CJ_QKaki.cjs → element-aUzIoa1s.cjs} +3 -3
  28. package/dist/{heading-Dv_cH6N1.cjs → heading-CBepYb7H.cjs} +1 -1
  29. package/dist/{heading-BUdy170t.js → heading-J7dN9nRi.js} +13 -13
  30. package/dist/{helptext-hlcc584n.cjs → helptext-DebHGRsD.cjs} +1 -1
  31. package/dist/{helptext-Bn17Picx.js → helptext-DuyRRfCn.js} +5 -5
  32. package/dist/{icon-BB7e5iQN.js → icon-BgG6oO4Q.js} +1 -1
  33. package/dist/{icon-MRx-m0Or.cjs → icon-Dl9ZPqe6.cjs} +1 -1
  34. package/dist/{if-defined-Bc9-_I01.cjs → if-defined-BElHLTlB.cjs} +1 -1
  35. package/dist/{if-defined-BWZGb3bh.js → if-defined-CxHgig4I.js} +1 -1
  36. package/dist/index.d.ts +0 -41
  37. package/dist/{input-element-CARcDzQB.js → input-element-DVZhYDJ_.js} +2 -2
  38. package/dist/{input-element-CiaV6jln.cjs → input-element-RBQVA8i0.cjs} +1 -1
  39. package/dist/{input-wrapper-1PCXqtiu.js → input-wrapper-3qfjLkrP.js} +7 -7
  40. package/dist/{input-wrapper-CtBiAb04.cjs → input-wrapper-rgXsRNkk.cjs} +1 -1
  41. package/dist/{link-BboUBUcg.js → link-CZvcdRek.js} +4 -4
  42. package/dist/{link-Dw39h-YN.cjs → link-D85g20GS.cjs} +1 -1
  43. package/dist/{linkcard-DUA3kGGd.cjs → linkcard-B-9K02q8.cjs} +1 -1
  44. package/dist/{linkcard-BqJmHFu8.js → linkcard-C3RTcMqc.js} +4 -4
  45. package/dist/{listbox-mvKKzH-v.js → listbox-CLtowV6W.js} +36 -36
  46. package/dist/{listbox-DnoqOo5u.cjs → listbox-C_0RhGhk.cjs} +2 -2
  47. package/dist/{loader-DjGxT7C3.cjs → loader-1EXLdxfq.cjs} +1 -1
  48. package/dist/{loader-DIum_s_D.js → loader-Dci0SrOz.js} +5 -5
  49. package/dist/{messagebox-aPlConlJ.js → messagebox-CnZlttZp.js} +5 -5
  50. package/dist/{messagebox-ChIKVTO_.cjs → messagebox-dscnWgCd.cjs} +1 -1
  51. package/dist/{modal-B4qq0VFB.cjs → modal-ncKVjcyZ.cjs} +1 -1
  52. package/dist/{modal-jAUtM-NP.js → modal-wSGthXAC.js} +5 -5
  53. package/dist/pkt-accordion.cjs +1 -1
  54. package/dist/pkt-accordion.js +2 -2
  55. package/dist/pkt-alert.cjs +1 -1
  56. package/dist/pkt-alert.js +1 -1
  57. package/dist/pkt-backlink.cjs +1 -1
  58. package/dist/pkt-backlink.js +1 -1
  59. package/dist/pkt-button.cjs +1 -1
  60. package/dist/pkt-button.js +1 -1
  61. package/dist/pkt-calendar.cjs +1 -1
  62. package/dist/pkt-calendar.js +1 -1
  63. package/dist/pkt-card.cjs +1 -1
  64. package/dist/pkt-card.js +1 -1
  65. package/dist/pkt-checkbox.cjs +1 -1
  66. package/dist/pkt-checkbox.js +1 -1
  67. package/dist/pkt-combobox.cjs +1 -1
  68. package/dist/pkt-combobox.js +1 -1
  69. package/dist/pkt-consent.cjs +1 -1
  70. package/dist/pkt-consent.js +1 -1
  71. package/dist/pkt-datepicker.cjs +1 -1
  72. package/dist/pkt-datepicker.js +2 -2
  73. package/dist/pkt-header.cjs +1 -1
  74. package/dist/pkt-header.js +9 -9
  75. package/dist/pkt-heading.cjs +1 -1
  76. package/dist/pkt-heading.js +1 -1
  77. package/dist/pkt-helptext.cjs +1 -1
  78. package/dist/pkt-helptext.js +1 -1
  79. package/dist/pkt-icon.cjs +1 -1
  80. package/dist/pkt-icon.js +1 -1
  81. package/dist/pkt-index.cjs +1 -29
  82. package/dist/pkt-index.js +60 -157
  83. package/dist/pkt-input-wrapper.cjs +1 -1
  84. package/dist/pkt-input-wrapper.js +1 -1
  85. package/dist/pkt-link.cjs +1 -1
  86. package/dist/pkt-link.js +1 -1
  87. package/dist/pkt-linkcard.cjs +1 -1
  88. package/dist/pkt-linkcard.js +1 -1
  89. package/dist/pkt-listbox.cjs +1 -1
  90. package/dist/pkt-listbox.js +1 -1
  91. package/dist/pkt-loader.cjs +1 -1
  92. package/dist/pkt-loader.js +1 -1
  93. package/dist/pkt-messagebox.cjs +1 -1
  94. package/dist/pkt-messagebox.js +1 -1
  95. package/dist/pkt-modal.cjs +1 -1
  96. package/dist/pkt-modal.js +1 -1
  97. package/dist/pkt-progressbar.cjs +1 -1
  98. package/dist/pkt-progressbar.js +2 -2
  99. package/dist/pkt-radiobutton.cjs +1 -1
  100. package/dist/pkt-radiobutton.js +1 -1
  101. package/dist/pkt-select.cjs +1 -1
  102. package/dist/pkt-select.js +1 -1
  103. package/dist/pkt-tabs.cjs +1 -1
  104. package/dist/pkt-tabs.js +2 -2
  105. package/dist/pkt-tag.cjs +1 -1
  106. package/dist/pkt-tag.js +1 -1
  107. package/dist/pkt-textarea.cjs +1 -1
  108. package/dist/pkt-textarea.js +1 -1
  109. package/dist/pkt-textinput.cjs +1 -1
  110. package/dist/pkt-textinput.js +1 -1
  111. package/dist/{progressbar-CmAQ-DVW.cjs → progressbar-ClY1WgnM.cjs} +1 -1
  112. package/dist/{progressbar-CVt73-JQ.js → progressbar-D5WBW1Dm.js} +5 -5
  113. package/dist/{radiobutton-DVe09YxP.cjs → radiobutton-iHuLnuAn.cjs} +1 -1
  114. package/dist/{radiobutton-BmgdSpYf.js → radiobutton-oA20HijB.js} +15 -15
  115. package/dist/{ref-Xa5dbh--.js → ref-BxiKhrfa.js} +2 -2
  116. package/dist/{ref-BFa5Utho.cjs → ref-C5iJMIE1.cjs} +1 -1
  117. package/dist/{repeat-CJ79egkN.js → repeat-B55jMEsG.js} +2 -2
  118. package/dist/{repeat-BZb41H64.cjs → repeat-DcYSFU2y.cjs} +1 -1
  119. package/dist/{select-CKqz-JKZ.js → select-Bug9sfr5.js} +6 -6
  120. package/dist/{select-7KFOnLln.cjs → select-jbIbD7hW.cjs} +1 -1
  121. package/dist/{state-DS_kr2Fy.js → state-DgnkjP0q.js} +1 -1
  122. package/dist/{state-DSjcvzDN.cjs → state-GDzxl12x.cjs} +1 -1
  123. package/dist/{tabitem-D5zyipN1.cjs → tabitem-CtltSqDK.cjs} +1 -1
  124. package/dist/{tabitem-NV2fzs_-.js → tabitem-CypTmORF.js} +30 -30
  125. package/dist/{tag-B02fKJ66.cjs → tag-BfjOlIyS.cjs} +1 -1
  126. package/dist/{tag-CES41g0D.js → tag-DgoTYNVA.js} +6 -6
  127. package/dist/{textarea-Bmrv_vve.js → textarea-Da9E3RM7.js} +9 -9
  128. package/dist/{textarea-VBUXPS1O.cjs → textarea-Dfa4_ZBy.cjs} +1 -1
  129. package/dist/{textinput-BkYKotc1.cjs → textinput-CLM9fRjm.cjs} +1 -1
  130. package/dist/{textinput-Lp1crOmj.js → textinput-DaMYc5gd.js} +8 -8
  131. package/package.json +2 -2
  132. package/src/components/header/header.ts +2 -0
  133. package/src/components/index.ts +0 -1
  134. package/src/components/select/select.ts +2 -0
package/dist/pkt-index.js CHANGED
@@ -1,159 +1,62 @@
1
- import { P as T } from "./alert-UFQFbbzZ.js";
2
- import { P as A, a as I } from "./accordionitem-C_URrDjP.js";
3
- import { P as B } from "./backlink-C7qUmUzs.js";
4
- import { P as E } from "./button-CjXih_Nx.js";
5
- import { c as d } from "./calendar-CvfMj3fA.js";
6
- import { P as R } from "./calendar-CvfMj3fA.js";
7
- import { P as M } from "./card-CO3D8wQE.js";
8
- import { P as U } from "./combobox-MZsqmVL-.js";
9
- import { P as N } from "./consent-BO3Ga8N4.js";
10
- import { P as q } from "./checkbox-DfVUNTjH.js";
11
- import { P as f, t as h, x as l, n, a as c } from "./element-CRDRygXu.js";
12
- import { P as x } from "./pkt-slot-controller-BPGj-LC5.js";
13
- import { e as m, n as k } from "./ref-Xa5dbh--.js";
14
- import { e as u } from "./class-map-wy7PUk0P.js";
15
- import { P as F, a as J } from "./datepicker-a2LvhbRb.js";
16
- import { PktHeader as V, PktHeaderService as X, PktHeaderUserMenu as Y } from "./pkt-header.js";
17
- import { P as tt } from "./helptext-Bn17Picx.js";
18
- import { P as rt } from "./heading-BUdy170t.js";
19
- import { P as st } from "./icon-BB7e5iQN.js";
20
- import { P as nt } from "./input-wrapper-1PCXqtiu.js";
21
- import { P as pt } from "./link-BboUBUcg.js";
22
- import { P as lt } from "./linkcard-BqJmHFu8.js";
23
- import { P as kt } from "./loader-DIum_s_D.js";
24
- import { P as ft } from "./messagebox-aPlConlJ.js";
25
- import { P as ct } from "./modal-jAUtM-NP.js";
26
- import { P as ut } from "./progressbar-CVt73-JQ.js";
27
- import { P as vt, P as bt } from "./radiobutton-BmgdSpYf.js";
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-Bmrv_vve.js";
31
- import { P as At } from "./textinput-Lp1crOmj.js";
32
- import { P as wt } from "./select-CKqz-JKZ.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
- A as PktAccordion,
126
- I as PktAccordionItem,
127
- T as PktAlert,
128
- B as PktBackLink,
129
- E as PktButton,
130
- R as PktCalendar,
131
- M as PktCard,
132
- q as PktCheckbox,
133
- U as PktCombobox,
134
- o as PktComponent,
135
- N as PktConsent,
136
- F as PktDateTags,
137
- J as PktDatepicker,
138
- V as PktHeader,
139
- X as PktHeaderService,
140
- Y as PktHeaderUserMenu,
141
- rt as PktHeading,
142
- tt as PktHelptext,
143
- st as PktIcon,
144
- nt as PktInputWrapper,
145
- pt as PktLink,
146
- lt as PktLinkCard,
147
- kt as PktLoader,
148
- ft as PktMessagebox,
149
- ct as PktModal,
150
- ut as PktProgressbar,
151
- vt as PktRadioButton,
152
- bt as PktRadiobutton,
153
- wt as PktSelect,
154
- yt as PktTabItem,
155
- _t as PktTabs,
156
- Ct as PktTag,
157
- Tt as PktTextarea,
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-CtBiAb04.cjs"),t=e.PktInputWrapper;Object.defineProperty(exports,"PktInputWrapper",{enumerable:!0,get:()=>e.PktInputWrapper});exports.default=t;
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;
@@ -1,4 +1,4 @@
1
- import { P as p } from "./input-wrapper-1PCXqtiu.js";
1
+ import { P as p } from "./input-wrapper-3qfjLkrP.js";
2
2
  const r = p;
3
3
  export {
4
4
  p as PktInputWrapper,
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-Dw39h-YN.cjs"),t=e.PktLink;Object.defineProperty(exports,"PktLink",{enumerable:!0,get:()=>e.PktLink});exports.default=t;
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
@@ -1,4 +1,4 @@
1
- import { P as t } from "./link-BboUBUcg.js";
1
+ import { P as t } from "./link-CZvcdRek.js";
2
2
  const a = t;
3
3
  export {
4
4
  t as PktLink,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./linkcard-DUA3kGGd.cjs"),t=e.PktLinkCard;Object.defineProperty(exports,"PktLinkCard",{enumerable:!0,get:()=>e.PktLinkCard});exports.default=t;
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;
@@ -1,4 +1,4 @@
1
- import { P as a } from "./linkcard-BqJmHFu8.js";
1
+ import { P as a } from "./linkcard-C3RTcMqc.js";
2
2
  const k = a;
3
3
  export {
4
4
  a as PktLinkCard,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./listbox-DnoqOo5u.cjs"),t=e.PktListbox;Object.defineProperty(exports,"PktListbox",{enumerable:!0,get:()=>e.PktListbox});exports.default=t;
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;
@@ -1,4 +1,4 @@
1
- import { P as t } from "./listbox-mvKKzH-v.js";
1
+ import { P as t } from "./listbox-CLtowV6W.js";
2
2
  const s = t;
3
3
  export {
4
4
  t as PktListbox,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./loader-DjGxT7C3.cjs"),t=e.PktLoader;Object.defineProperty(exports,"PktLoader",{enumerable:!0,get:()=>e.PktLoader});exports.default=t;
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;
@@ -1,4 +1,4 @@
1
- import { P as a } from "./loader-DIum_s_D.js";
1
+ import { P as a } from "./loader-Dci0SrOz.js";
2
2
  const t = a;
3
3
  export {
4
4
  a as PktLoader,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./messagebox-ChIKVTO_.cjs"),t=e.PktMessagebox;Object.defineProperty(exports,"PktMessagebox",{enumerable:!0,get:()=>e.PktMessagebox});exports.default=t;
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;
@@ -1,4 +1,4 @@
1
- import { P as s } from "./messagebox-aPlConlJ.js";
1
+ import { P as s } from "./messagebox-CnZlttZp.js";
2
2
  const a = s;
3
3
  export {
4
4
  s as PktMessagebox,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./modal-B4qq0VFB.cjs"),t=e.PktModal;Object.defineProperty(exports,"PktModal",{enumerable:!0,get:()=>e.PktModal});exports.default=t;
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
@@ -1,4 +1,4 @@
1
- import { P as a } from "./modal-jAUtM-NP.js";
1
+ import { P as a } from "./modal-wSGthXAC.js";
2
2
  const t = a;
3
3
  export {
4
4
  a as PktModal,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./progressbar-CmAQ-DVW.cjs");Object.defineProperty(exports,"PktProgressbar",{enumerable:!0,get:()=>e.PktProgressbar});exports.default=e.PktProgressbar$1;
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;
@@ -1,5 +1,5 @@
1
- import { a } from "./progressbar-CVt73-JQ.js";
2
- import { P as t } from "./progressbar-CVt73-JQ.js";
1
+ import { a } from "./progressbar-D5WBW1Dm.js";
2
+ import { P as t } from "./progressbar-D5WBW1Dm.js";
3
3
  export {
4
4
  t as PktProgressbar,
5
5
  a as default
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./radiobutton-DVe09YxP.cjs"),e=t.PktRadioButton;Object.defineProperty(exports,"PktRadioButton",{enumerable:!0,get:()=>t.PktRadioButton});exports.default=e;
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;
@@ -1,4 +1,4 @@
1
- import { P as t } from "./radiobutton-BmgdSpYf.js";
1
+ import { P as t } from "./radiobutton-oA20HijB.js";
2
2
  const a = t;
3
3
  export {
4
4
  t as PktRadioButton,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./select-7KFOnLln.cjs"),t=e.PktSelect;Object.defineProperty(exports,"PktSelect",{enumerable:!0,get:()=>e.PktSelect});exports.default=t;
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;
@@ -1,4 +1,4 @@
1
- import { P as t } from "./select-CKqz-JKZ.js";
1
+ import { P as t } from "./select-Bug9sfr5.js";
2
2
  const a = t;
3
3
  export {
4
4
  t as PktSelect,
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-D5zyipN1.cjs");exports.PktTabItem=e.PktTabItem;exports.PktTabs=e.PktTabs;exports.default=e.PktTabs;
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
@@ -1,5 +1,5 @@
1
- import { P as t } from "./tabitem-NV2fzs_-.js";
2
- import { a as e } from "./tabitem-NV2fzs_-.js";
1
+ import { P as t } from "./tabitem-CypTmORF.js";
2
+ import { a as e } from "./tabitem-CypTmORF.js";
3
3
  export {
4
4
  e as PktTabItem,
5
5
  t as PktTabs,
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-B02fKJ66.cjs"),t=e.PktTag;Object.defineProperty(exports,"PktTag",{enumerable:!0,get:()=>e.PktTag});exports.default=t;
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
@@ -1,4 +1,4 @@
1
- import { P as a } from "./tag-CES41g0D.js";
1
+ import { P as a } from "./tag-DgoTYNVA.js";
2
2
  const o = a;
3
3
  export {
4
4
  a as PktTag,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./textarea-VBUXPS1O.cjs"),t=e.PktTextarea;Object.defineProperty(exports,"PktTextarea",{enumerable:!0,get:()=>e.PktTextarea});exports.default=t;
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;
@@ -1,4 +1,4 @@
1
- import { P as a } from "./textarea-Bmrv_vve.js";
1
+ import { P as a } from "./textarea-Da9E3RM7.js";
2
2
  const e = a;
3
3
  export {
4
4
  a as PktTextarea,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./textinput-BkYKotc1.cjs"),t=e.PktTextinput;Object.defineProperty(exports,"PktTextinput",{enumerable:!0,get:()=>e.PktTextinput});exports.default=t;
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;
@@ -1,4 +1,4 @@
1
- import { P as t } from "./textinput-Lp1crOmj.js";
1
+ import { P as t } from "./textinput-DaMYc5gd.js";
2
2
  const p = t;
3
3
  export {
4
4
  t as PktTextinput,
@@ -1,4 +1,4 @@
1
- "use strict";const n=require("./class-map-C_erArZz.cjs"),e=require("./element-CJ_QKaki.cjs"),p=require("./state-DSjcvzDN.cjs"),h=require("./ref-BFa5Utho.cjs"),b=require("./directive-C7oCP5Bh.cjs"),d=require("./utils-byXsEz1u.cjs");require("./icon-MRx-m0Or.cjs");/**
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-wy7PUk0P.js";
2
- import { T as g, P as _, E as c, x as b, n as u, a as $ } from "./element-CRDRygXu.js";
3
- import { r as h } from "./state-DS_kr2Fy.js";
4
- import { e as y, n as A } from "./ref-Xa5dbh--.js";
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-BB7e5iQN.js";
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-CJ_QKaki.cjs"),r=require("./state-DSjcvzDN.cjs"),u=require("./input-element-CiaV6jln.cjs"),h=require("./ref-BFa5Utho.cjs"),c=require("./class-map-C_erArZz.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`
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, a as d } from "./element-CRDRygXu.js";
2
- import { r as k } from "./state-DS_kr2Fy.js";
3
- import { P as f } from "./input-element-CARcDzQB.js";
4
- import { e as g, n as y } from "./ref-Xa5dbh--.js";
5
- import { e as u } from "./class-map-wy7PUk0P.js";
6
- var $ = Object.defineProperty, b = Object.getOwnPropertyDescriptor, i = (e, p, c, l) => {
7
- for (var a = l > 1 ? void 0 : l ? b(p, c) : p, r = e.length - 1, o; r >= 0; r--)
8
- (o = e[r]) && (a = (l ? o(p, c, a) : o(a)) || a);
9
- return l && a && $(p, c, a), a;
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, p, c) {
19
- e === "defaultChecked" && (this._checked = this.defaultChecked), e === "checked" && (this._checked = this.checked === "" || this.checked === "true" || this.checked === !0), super.attributeChangedCallback(e, p, c);
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
- }), p = u({
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", a = () => h`
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} ${a()}
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=${p}
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-CRDRygXu.js";
2
- import { f as $ } from "./directive-helpers-BzAtj9by.js";
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-CJ_QKaki.cjs"),a=require("./directive-helpers-4oOjKnGY.cjs"),l=require("./directive-C7oCP5Bh.cjs");/**
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
@@ -1,6 +1,6 @@
1
- import { T as A } from "./element-CRDRygXu.js";
1
+ import { T as A } from "./element-BXsf_NlG.js";
2
2
  import { e as M, i as b, t as j } from "./directive-oAbCiebi.js";
3
- import { p as C, v as h, s as v, M as x, m as D } from "./directive-helpers-BzAtj9by.js";
3
+ import { p as C, v as h, s as v, M as x, m as D } from "./directive-helpers-CQef4qUQ.js";
4
4
  /**
5
5
  * @license
6
6
  * Copyright 2017 Google LLC
@@ -1,4 +1,4 @@
1
- "use strict";const m=require("./element-CJ_QKaki.cjs"),x=require("./directive-C7oCP5Bh.cjs"),r=require("./directive-helpers-4oOjKnGY.cjs");/**
1
+ "use strict";const m=require("./element-aUzIoa1s.cjs"),x=require("./directive-C7oCP5Bh.cjs"),r=require("./directive-helpers-CYIEJ8pI.cjs");/**
2
2
  * @license
3
3
  * Copyright 2017 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
@@ -1,11 +1,11 @@
1
- import { n as c, x as a, a as _ } from "./element-CRDRygXu.js";
2
- import { e as u, n as d } from "./ref-Xa5dbh--.js";
3
- import { o as n } from "./if-defined-BWZGb3bh.js";
4
- import { r as $ } from "./state-DS_kr2Fy.js";
5
- import { P as x } from "./input-element-CARcDzQB.js";
1
+ import { n as c, x as a, t as _ } from "./element-BXsf_NlG.js";
2
+ import { e as u, n as d } from "./ref-BxiKhrfa.js";
3
+ import { o as n } from "./if-defined-CxHgig4I.js";
4
+ import { r as $ } from "./state-DgnkjP0q.js";
5
+ import { P as x } from "./input-element-DVZhYDJ_.js";
6
6
  import { P as m } from "./pkt-options-controller-zn5cmMvL.js";
7
7
  import { P as b } from "./pkt-slot-controller-BPGj-LC5.js";
8
- import "./input-wrapper-1PCXqtiu.js";
8
+ import "./input-wrapper-3qfjLkrP.js";
9
9
  var P = Object.defineProperty, v = (e, t, s, o) => {
10
10
  for (var i = void 0, l = e.length - 1, p; l >= 0; l--)
11
11
  (p = e[l]) && (i = p(t, s, i) || i);
@@ -1,4 +1,4 @@
1
- "use strict";const p=require("./element-CJ_QKaki.cjs"),h=require("./ref-BFa5Utho.cjs"),l=require("./if-defined-Bc9-_I01.cjs"),c=require("./state-DSjcvzDN.cjs"),v=require("./input-element-CiaV6jln.cjs"),f=require("./pkt-options-controller-DjBCEHU4.cjs"),_=require("./pkt-slot-controller-BzddBp7z.cjs");require("./input-wrapper-CtBiAb04.cjs");var $=Object.defineProperty,u=(r,t,e,i)=>{for(var s=void 0,o=r.length-1,n;o>=0;o--)(n=r[o])&&(s=n(t,e,s)||s);return s&&$(t,e,s),s};class a extends v.PktInputElement{constructor(){super(...arguments),this._optionsProp=[],this._options=[]}get options(){return this._options.map(t=>({...t,selected:this.isOptionSelected(t)}))}set options(t){this._optionsProp=t,this.requestUpdate("_optionsProp",this._options)}isOptionSelected(t){return Array.isArray(this.value)?this.value.includes(t.value):t.value===this.value}findOptionByValue(t){return this._options.find(e=>e.value===t)}getSelectedOptions(){return this._options.filter(t=>this.isOptionSelected(t))}parseOptions(){var i,s;const t=this._optionsProp.length>0,e=((s=(i=this.optionsController)==null?void 0:i.nodes)==null?void 0:s.length)&&this.optionsController.nodes.length>0;t?this._options=this._optionsProp:e&&(this._options=this.optionsController.options)}willUpdate(t){super.willUpdate(t),this.parseOptions()}}u([p.n({type:Array,attribute:"options"})],a.prototype,"_optionsProp");u([c.r()],a.prototype,"_options");var x=Object.defineProperty,b=Object.getOwnPropertyDescriptor,d=(r,t,e,i)=>{for(var s=i>1?void 0:i?b(t,e):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&x(t,e,s),s};exports.PktSelect=class extends a{constructor(){super(),this.inputRef=h.e(),this.helptextSlot=h.e(),this.value="",this.selectedIndex=-1,this.selectedOptions=void 0,this.optionsController=new f.PktOptionsSlotController(this),this.slotController=new _.PktSlotController(this,this.helptextSlot),this.slotController.skipOptions=!0}connectedCallback(){super.connectedCallback(),this.parseOptions(),this._options.forEach(t=>{t.selected&&!this.value&&(this.value=t.value)})}add(t,e){const i={value:t.value||t.text,label:t.text||t.value,selected:t.selected,disabled:t.disabled};if(e===void 0)this._options.push(i);else if(typeof e=="number")this._options.splice(e,0,i);else{const s=e.value||e.text,o=this._options.findIndex(n=>n.value===s);o>=0?this._options.splice(o,0,i):this._options.push(i)}t.selected&&(this.value=t.value||t.text,this.selectedIndex=this._options.findIndex(s=>s.value===this.value)),this.requestUpdate()}remove(t){var e;typeof t=="number"&&(this.selectedIndex===t&&(this.value=((e=this._options[0])==null?void 0:e.value)||""),this._options.splice(t,1),this.requestUpdate())}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(){this.inputRef.value&&"showPicker"in this.inputRef.value&&this.inputRef.value.showPicker()}attributeChangedCallback(t,e,i){var s,o;t==="options"&&(this._options=i?JSON.parse(i):[]),t==="value"&&this.value!==e&&(this.selectedIndex=this.touched?this.returnNumberOrNull((s=this.inputRef.value)==null?void 0:s.selectedIndex):this._options.findIndex(n=>n.value===i),this.selectedOptions=(o=this.inputRef.value)==null?void 0:o.selectedOptions,this.valueChanged(i,e)),super.attributeChangedCallback(t,e,i)}update(t){var e,i;super.update(t),t.has("_optionsProp")&&this._optionsProp.length>0&&(this._options=this._optionsProp,this.requestUpdate("_options"),!this.value&&this._options.length>0&&(this.value=this._options[0].value,this.selectedIndex=0)),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(s=>s.value===this.value),this.selectedOptions=(i=this.inputRef.value)==null?void 0:i.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._optionsProp.length&&(this._options=this._optionsProp),!this.value&&this._options.length>0?(this.value=this._options[0].value,this.selectedIndex=0):this.selectedIndex=this._options.findIndex(i=>i.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 p.x`
1
+ "use strict";const p=require("./element-aUzIoa1s.cjs"),h=require("./ref-C5iJMIE1.cjs"),l=require("./if-defined-BElHLTlB.cjs"),c=require("./state-GDzxl12x.cjs"),v=require("./input-element-RBQVA8i0.cjs"),f=require("./pkt-options-controller-DjBCEHU4.cjs"),_=require("./pkt-slot-controller-BzddBp7z.cjs");require("./input-wrapper-rgXsRNkk.cjs");var $=Object.defineProperty,u=(r,t,e,i)=>{for(var s=void 0,o=r.length-1,n;o>=0;o--)(n=r[o])&&(s=n(t,e,s)||s);return s&&$(t,e,s),s};class a extends v.PktInputElement{constructor(){super(...arguments),this._optionsProp=[],this._options=[]}get options(){return this._options.map(t=>({...t,selected:this.isOptionSelected(t)}))}set options(t){this._optionsProp=t,this.requestUpdate("_optionsProp",this._options)}isOptionSelected(t){return Array.isArray(this.value)?this.value.includes(t.value):t.value===this.value}findOptionByValue(t){return this._options.find(e=>e.value===t)}getSelectedOptions(){return this._options.filter(t=>this.isOptionSelected(t))}parseOptions(){var i,s;const t=this._optionsProp.length>0,e=((s=(i=this.optionsController)==null?void 0:i.nodes)==null?void 0:s.length)&&this.optionsController.nodes.length>0;t?this._options=this._optionsProp:e&&(this._options=this.optionsController.options)}willUpdate(t){super.willUpdate(t),this.parseOptions()}}u([p.n({type:Array,attribute:"options"})],a.prototype,"_optionsProp");u([c.r()],a.prototype,"_options");var x=Object.defineProperty,b=Object.getOwnPropertyDescriptor,d=(r,t,e,i)=>{for(var s=i>1?void 0:i?b(t,e):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&x(t,e,s),s};exports.PktSelect=class extends a{constructor(){super(),this.inputRef=h.e(),this.helptextSlot=h.e(),this.value="",this.selectedIndex=-1,this.selectedOptions=void 0,this.optionsController=new f.PktOptionsSlotController(this),this.slotController=new _.PktSlotController(this,this.helptextSlot),this.slotController.skipOptions=!0}connectedCallback(){super.connectedCallback(),this.parseOptions(),this._options.forEach(t=>{t.selected&&!this.value&&(this.value=t.value)})}add(t,e){const i={value:t.value||t.text,label:t.text||t.value,selected:t.selected,disabled:t.disabled};if(e===void 0)this._options.push(i);else if(typeof e=="number")this._options.splice(e,0,i);else{const s=e.value||e.text,o=this._options.findIndex(n=>n.value===s);o>=0?this._options.splice(o,0,i):this._options.push(i)}t.selected&&(this.value=t.value||t.text,this.selectedIndex=this._options.findIndex(s=>s.value===this.value)),this.requestUpdate()}remove(t){var e;typeof t=="number"&&(this.selectedIndex===t&&(this.value=((e=this._options[0])==null?void 0:e.value)||""),this._options.splice(t,1),this.requestUpdate())}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(){this.inputRef.value&&"showPicker"in this.inputRef.value&&this.inputRef.value.showPicker()}attributeChangedCallback(t,e,i){var s,o;t==="options"&&(this._options=i?JSON.parse(i):[]),t==="value"&&this.value!==e&&(this.selectedIndex=this.touched?this.returnNumberOrNull((s=this.inputRef.value)==null?void 0:s.selectedIndex):this._options.findIndex(n=>n.value===i),this.selectedOptions=(o=this.inputRef.value)==null?void 0:o.selectedOptions,this.valueChanged(i,e)),super.attributeChangedCallback(t,e,i)}update(t){var e,i;super.update(t),t.has("_optionsProp")&&this._optionsProp.length>0&&(this._options=this._optionsProp,this.requestUpdate("_options"),!this.value&&this._options.length>0&&(this.value=this._options[0].value,this.selectedIndex=0)),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(s=>s.value===this.value),this.selectedOptions=(i=this.inputRef.value)==null?void 0:i.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._optionsProp.length&&(this._options=this._optionsProp),!this.value&&this._options.length>0?(this.value=this._options[0].value,this.selectedIndex=0):this.selectedIndex=this._options.findIndex(i=>i.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 p.x`
2
2
  <pkt-input-wrapper
3
3
  ?counter=${this.counter}
4
4
  ?disabled=${this.disabled}
@@ -1,4 +1,4 @@
1
- import { n as r } from "./element-CRDRygXu.js";
1
+ import { n as r } from "./element-BXsf_NlG.js";
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2017 Google LLC
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("./element-CJ_QKaki.cjs");/**
1
+ "use strict";const e=require("./element-aUzIoa1s.cjs");/**
2
2
  * @license
3
3
  * Copyright 2017 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
@@ -1,4 +1,4 @@
1
- "use strict";const a=require("./element-CJ_QKaki.cjs"),g=require("./pkt-slot-controller-BzddBp7z.cjs"),v=require("./state-DSjcvzDN.cjs"),p=require("./ref-BFa5Utho.cjs"),u=require("./if-defined-Bc9-_I01.cjs");/**
1
+ "use strict";const a=require("./element-aUzIoa1s.cjs"),g=require("./pkt-slot-controller-BzddBp7z.cjs"),v=require("./state-GDzxl12x.cjs"),p=require("./ref-C5iJMIE1.cjs"),u=require("./if-defined-BElHLTlB.cjs");/**
2
2
  * @license
3
3
  * Copyright 2021 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause