@oslokommune/punkt-elements 16.7.3 → 16.7.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.
Files changed (248) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/accordion-BB1JrONI.cjs +34 -0
  3. package/dist/accordion-nNH87Y60.js +130 -0
  4. package/dist/alert-BEEnTiCb.cjs +33 -0
  5. package/dist/alert-ePJuDtmm.js +171 -0
  6. package/dist/async-directive-B9P1Qa0k.cjs +1 -0
  7. package/dist/async-directive-CaQiqjyV.js +55 -0
  8. package/dist/backlink-Ba03LlbB.cjs +13 -0
  9. package/dist/backlink-CiwXrQYD.js +38 -0
  10. package/dist/booleanish-BmcOU-43.js +11 -0
  11. package/dist/booleanish-jJLlnr6-.cjs +1 -0
  12. package/dist/breadcrumbs-CD1zib3s.cjs +43 -0
  13. package/dist/breadcrumbs-CpuVqWhF.js +76 -0
  14. package/dist/button-BIpd1xJh.js +95 -0
  15. package/dist/button-D-TOBaJB.cjs +27 -0
  16. package/dist/calendar-BzEtOJla.js +2031 -0
  17. package/dist/calendar-E5jJLt8D.cjs +90 -0
  18. package/dist/card-BYJu1MYm.js +339 -0
  19. package/dist/card-CUFhMVim.cjs +87 -0
  20. package/dist/checkbox-BARDb9iV.cjs +31 -0
  21. package/dist/checkbox-Cspxcvt_.js +111 -0
  22. package/dist/class-map-C8HuhNzZ.js +27 -0
  23. package/dist/class-map-CJ-msbHs.cjs +1 -0
  24. package/dist/classutils-DEL164Ur.js +7 -0
  25. package/dist/classutils-z8YsPlOf.cjs +1 -0
  26. package/dist/combobox-BcdLZRDU.js +984 -0
  27. package/dist/combobox-CGbFTWq_.cjs +135 -0
  28. package/dist/consent-DeB_5sWH.js +197 -0
  29. package/dist/consent-hwu7pp3S.cjs +11 -0
  30. package/dist/datepicker-DpmlsnH_.cjs +273 -0
  31. package/dist/datepicker-OVd8pmnZ.js +1125 -0
  32. package/dist/dialog-polyfill.esm-1hPr0gl9.js +280 -0
  33. package/dist/dialog-polyfill.esm-D3Oinvk0.cjs +1 -0
  34. package/dist/directive-3THFsVew.js +28 -0
  35. package/dist/directive-CJ2giQBZ.cjs +1 -0
  36. package/dist/directive-helpers-D1QSxY17.cjs +1 -0
  37. package/dist/directive-helpers-Dkv2gKgs.js +25 -0
  38. package/dist/element-DjtxO-1r.cjs +2 -0
  39. package/dist/element-cZ85T_aa.js +693 -0
  40. package/dist/element-with-slot-4J2o3SeU.js +166 -0
  41. package/dist/element-with-slot-CWoTGA1B.cjs +1 -0
  42. package/dist/header-DWgPgGfS.cjs +304 -0
  43. package/dist/header-a6ztVNp3.js +782 -0
  44. package/dist/heading-BgSWIRii.cjs +1 -0
  45. package/dist/heading-DiQLPxdf.js +73 -0
  46. package/dist/helptext-CCBKKLus.js +65 -0
  47. package/dist/helptext-D-3QfZv5.cjs +24 -0
  48. package/dist/icon-Co72KtgF.js +86 -0
  49. package/dist/icon-Dr8sfT2X.cjs +1 -0
  50. package/dist/if-defined-Cjj8qN-Z.js +5 -0
  51. package/dist/if-defined-XKOD_t_V.cjs +1 -0
  52. package/dist/index.d.ts +1 -2
  53. package/dist/input-element-B1yxcfz4.cjs +1 -0
  54. package/dist/input-element-Bw1s6NlF.js +643 -0
  55. package/dist/input-wrapper-BRuVELpK.cjs +54 -0
  56. package/dist/input-wrapper-CDyHTR1V.js +164 -0
  57. package/dist/input-wrapper-Dwd-_sKm.cjs +1 -0
  58. package/dist/input-wrapper-YfTmpSSY.js +117 -0
  59. package/dist/link-CKAFMz9j.js +89 -0
  60. package/dist/link-CyTCpI0k.cjs +7 -0
  61. package/dist/linkcard-B0KOGaGj.js +55 -0
  62. package/dist/linkcard-BE4-FewK.cjs +13 -0
  63. package/dist/listbox-DCA2JoPV.cjs +106 -0
  64. package/dist/listbox-DuBgTFvH.js +397 -0
  65. package/dist/loader-6kFZUErT.js +66 -0
  66. package/dist/loader-CX2rsC01.cjs +16 -0
  67. package/dist/messagebox-Cwlg5sOr.js +110 -0
  68. package/dist/messagebox-Din9X53b.cjs +13 -0
  69. package/dist/modal-C_wtsh9m.js +209 -0
  70. package/dist/modal-DS_wUOIv.cjs +36 -0
  71. package/dist/pkt-accordion.cjs +1 -1
  72. package/dist/pkt-accordion.js +2 -7
  73. package/dist/pkt-alert.cjs +1 -1
  74. package/dist/pkt-alert.js +2 -5
  75. package/dist/pkt-backlink.cjs +1 -1
  76. package/dist/pkt-backlink.js +2 -5
  77. package/dist/pkt-breadcrumbs.cjs +1 -43
  78. package/dist/pkt-breadcrumbs.js +2 -81
  79. package/dist/pkt-button.cjs +1 -1
  80. package/dist/pkt-button.js +2 -5
  81. package/dist/pkt-calendar.cjs +1 -1
  82. package/dist/pkt-calendar.js +2 -5
  83. package/dist/pkt-card.cjs +1 -1
  84. package/dist/pkt-card.js +2 -5
  85. package/dist/pkt-checkbox.cjs +1 -1
  86. package/dist/pkt-checkbox.js +2 -5
  87. package/dist/pkt-combobox.cjs +1 -1
  88. package/dist/pkt-combobox.js +2 -5
  89. package/dist/pkt-consent.cjs +1 -1
  90. package/dist/pkt-consent.js +2 -5
  91. package/dist/pkt-datepicker.cjs +1 -1
  92. package/dist/pkt-datepicker.js +5 -9
  93. package/dist/pkt-header.cjs +1 -304
  94. package/dist/pkt-header.js +2 -861
  95. package/dist/pkt-heading.cjs +1 -1
  96. package/dist/pkt-heading.js +2 -5
  97. package/dist/pkt-helptext.cjs +1 -1
  98. package/dist/pkt-helptext.js +2 -5
  99. package/dist/pkt-icon.cjs +1 -1
  100. package/dist/pkt-icon.js +2 -5
  101. package/dist/pkt-index.cjs +1 -1
  102. package/dist/pkt-index.js +30 -66
  103. package/dist/pkt-input-wrapper.cjs +1 -1
  104. package/dist/pkt-input-wrapper.js +2 -5
  105. package/dist/pkt-link.cjs +1 -1
  106. package/dist/pkt-link.js +2 -5
  107. package/dist/pkt-linkcard.cjs +1 -1
  108. package/dist/pkt-linkcard.js +2 -5
  109. package/dist/pkt-listbox.cjs +1 -1
  110. package/dist/pkt-listbox.js +2 -5
  111. package/dist/pkt-loader.cjs +1 -1
  112. package/dist/pkt-loader.js +2 -5
  113. package/dist/pkt-messagebox.cjs +1 -1
  114. package/dist/pkt-messagebox.js +2 -5
  115. package/dist/pkt-modal.cjs +1 -1
  116. package/dist/pkt-modal.js +2 -5
  117. package/dist/pkt-options-controller-CRrI6WMk.js +43 -0
  118. package/dist/pkt-options-controller-CXUGx134.cjs +1 -0
  119. package/dist/pkt-progressbar.cjs +1 -1
  120. package/dist/pkt-progressbar.js +2 -5
  121. package/dist/pkt-radiobutton.cjs +1 -1
  122. package/dist/pkt-radiobutton.js +2 -5
  123. package/dist/pkt-select.cjs +1 -1
  124. package/dist/pkt-select.js +2 -5
  125. package/dist/pkt-tabs.cjs +1 -1
  126. package/dist/pkt-tabs.js +2 -7
  127. package/dist/pkt-tag.cjs +1 -1
  128. package/dist/pkt-tag.js +2 -5
  129. package/dist/pkt-textarea.cjs +1 -1
  130. package/dist/pkt-textarea.js +2 -5
  131. package/dist/pkt-textinput.cjs +1 -1
  132. package/dist/pkt-textinput.js +2 -5
  133. package/dist/pkt-timepicker.cjs +1 -191
  134. package/dist/pkt-timepicker.js +2 -560
  135. package/dist/progressbar-CdXtmOBb.cjs +17 -0
  136. package/dist/progressbar-Dy9AiYQz.js +113 -0
  137. package/dist/radiobutton-GOnpUbCW.cjs +31 -0
  138. package/dist/radiobutton-V_KPbup_.js +84 -0
  139. package/dist/ref-BaJ0mBT_.cjs +1 -0
  140. package/dist/ref-RS8Uv6uC.js +30 -0
  141. package/dist/repeat-Cepr3469.js +57 -0
  142. package/dist/repeat-CqcDYBxr.cjs +1 -0
  143. package/dist/select-BSAFd8Wa.js +164 -0
  144. package/dist/select-C2i8sOk5.cjs +49 -0
  145. package/dist/tabs-D8nL9rWx.cjs +37 -0
  146. package/dist/tabs-Y7utmJi9.js +318 -0
  147. package/dist/tag-DLthw5b4.cjs +27 -0
  148. package/dist/tag-VwykmuQR.js +179 -0
  149. package/dist/textarea-D7aGOyDf.cjs +46 -0
  150. package/dist/textarea-DYOBhJrN.js +115 -0
  151. package/dist/textinput-BUgntXnM.js +124 -0
  152. package/dist/textinput-DFh8_9cx.cjs +70 -0
  153. package/dist/timepicker-BIfE7KKJ.cjs +191 -0
  154. package/dist/timepicker-DaSwn1FA.js +503 -0
  155. package/dist/utils-CUqCKGvp.js +7 -0
  156. package/dist/utils-CjAbIttF.cjs +1 -0
  157. package/package.json +6 -6
  158. package/src/components/alert/alert.test.ts +1 -1
  159. package/src/components/alert/alert.ts +6 -6
  160. package/src/components/datepicker/datepicker-utils.test.ts +16 -23
  161. package/dist/accordionitem-_9AiCIvd.cjs +0 -34
  162. package/dist/accordionitem-dCfSrxh5.js +0 -140
  163. package/dist/alert-BtOk8yRH.cjs +0 -33
  164. package/dist/alert-DlY2_grU.js +0 -117
  165. package/dist/async-directive-CMzWMlZ5.js +0 -65
  166. package/dist/async-directive-DoMuclel.cjs +0 -5
  167. package/dist/backlink-Ce5Vldop.js +0 -49
  168. package/dist/backlink-y3dwjKPC.cjs +0 -13
  169. package/dist/booleanish-BKVonob4.cjs +0 -1
  170. package/dist/booleanish-C9R0tdXH.js +0 -11
  171. package/dist/button-B_TXwNzt.cjs +0 -27
  172. package/dist/button-BiY-wlKF.js +0 -139
  173. package/dist/calendar-B2pji2zn.cjs +0 -90
  174. package/dist/calendar-DhjQDC4C.js +0 -2140
  175. package/dist/card-BwMNB5Bb.cjs +0 -87
  176. package/dist/card-CGlmcMSR.js +0 -233
  177. package/dist/checkbox-BsJZYA26.js +0 -147
  178. package/dist/checkbox-CTY8f_qn.cjs +0 -31
  179. package/dist/class-map-CEnykyO_.js +0 -34
  180. package/dist/class-map-CsENJXf1.cjs +0 -5
  181. package/dist/classutils-BwNK82ZQ.cjs +0 -1
  182. package/dist/classutils-RQs1k6D9.js +0 -7
  183. package/dist/combobox-DSB5WOxg.js +0 -815
  184. package/dist/combobox-DbICIgKG.cjs +0 -135
  185. package/dist/consent-DkOQpbsg.cjs +0 -11
  186. package/dist/consent-SNWV_mMU.js +0 -175
  187. package/dist/datepicker-BEWl9iz3.cjs +0 -273
  188. package/dist/datepicker-euHyzXnb.js +0 -1170
  189. package/dist/dialog-polyfill.esm-CPKZe7AL.cjs +0 -1
  190. package/dist/dialog-polyfill.esm-CbjBMXAG.js +0 -395
  191. package/dist/directive-C7oCP5Bh.cjs +0 -5
  192. package/dist/directive-helpers-BP2WOx60.cjs +0 -5
  193. package/dist/directive-helpers-rm-28gIj.js +0 -38
  194. package/dist/directive-oAbCiebi.js +0 -27
  195. package/dist/element-CPpT3rFQ.js +0 -638
  196. package/dist/element-gR_VtSiD.cjs +0 -27
  197. package/dist/element-with-slot-Dqk6-TRR.js +0 -240
  198. package/dist/element-with-slot-ZX-up7jO.cjs +0 -1
  199. package/dist/heading-D2tVS6lS.js +0 -103
  200. package/dist/heading-DrzbgDb6.cjs +0 -1
  201. package/dist/helptext-BKtU4mas.js +0 -82
  202. package/dist/helptext-DcRC7wW2.cjs +0 -24
  203. package/dist/icon-CxQcIa5F.js +0 -105
  204. package/dist/icon-q81vqPK_.cjs +0 -9
  205. package/dist/if-defined-B0krMLad.js +0 -10
  206. package/dist/if-defined-BOW3ODSj.cjs +0 -5
  207. package/dist/input-element-8nLwuQS4.js +0 -837
  208. package/dist/input-element-DdVhUvva.cjs +0 -1
  209. package/dist/input-wrapper-Bs4CRNst.js +0 -181
  210. package/dist/input-wrapper-Bv9aqqVq.cjs +0 -54
  211. package/dist/input-wrapper-CDgenrYA.js +0 -6
  212. package/dist/input-wrapper-EoSAbU-U.cjs +0 -1
  213. package/dist/link-C0rl-86s.cjs +0 -7
  214. package/dist/link-Cdqgl60z.js +0 -55
  215. package/dist/linkcard-Dimu7Rlx.cjs +0 -13
  216. package/dist/linkcard-Lbq_UhjZ.js +0 -56
  217. package/dist/listbox-Bia4_tvN.js +0 -440
  218. package/dist/listbox-La2GZQei.cjs +0 -106
  219. package/dist/loader-D1ugDXGV.cjs +0 -16
  220. package/dist/loader-DyN6RGC5.js +0 -95
  221. package/dist/messagebox-BGMVm2t9.js +0 -71
  222. package/dist/messagebox-M0yIgCz9.cjs +0 -13
  223. package/dist/modal-CMO1RtIi.cjs +0 -36
  224. package/dist/modal-DjPQDE-Z.js +0 -156
  225. package/dist/pkt-options-controller-5LXbEzuk.cjs +0 -1
  226. package/dist/pkt-options-controller-B5YalfCb.js +0 -39
  227. package/dist/progressbar-BqlMzkM_.cjs +0 -21
  228. package/dist/progressbar-sbHDFC12.js +0 -162
  229. package/dist/radiobutton-5ZqVVtTT.cjs +0 -31
  230. package/dist/radiobutton-D8Ai8ETa.js +0 -113
  231. package/dist/ref-Bg_Swj5w.js +0 -42
  232. package/dist/ref-CL-Xk9Xm.cjs +0 -5
  233. package/dist/repeat-BD8TKgJb.js +0 -61
  234. package/dist/repeat-Cfq8CDlf.cjs +0 -5
  235. package/dist/select-De-n8on9.js +0 -230
  236. package/dist/select-dTWibR6_.cjs +0 -49
  237. package/dist/state-C_1EOo3D.js +0 -12
  238. package/dist/state-Dg-53wQ8.cjs +0 -5
  239. package/dist/tabitem-B9-jeV97.js +0 -334
  240. package/dist/tabitem-BnhzqfW3.cjs +0 -65
  241. package/dist/tag-CbwO8yvD.cjs +0 -27
  242. package/dist/tag-D4FI5t3y.js +0 -117
  243. package/dist/textarea-BmLaKzsc.cjs +0 -50
  244. package/dist/textarea-CMiSJaYL.js +0 -133
  245. package/dist/textinput-em9y4yrL.cjs +0 -70
  246. package/dist/textinput-r8udK0IX.js +0 -152
  247. package/dist/utils-DznhwRXm.js +0 -8
  248. package/dist/utils-byXsEz1u.cjs +0 -1
@@ -0,0 +1,643 @@
1
+ import { i as e, r as t, s as n } from "./element-cZ85T_aa.js";
2
+ import { t as r } from "./element-with-slot-4J2o3SeU.js";
3
+ import { n as i } from "./utils-CUqCKGvp.js";
4
+ import { t as a } from "./booleanish-BmcOU-43.js";
5
+ import { t as o } from "./input-wrapper-CDyHTR1V.js";
6
+ //#region ../../node_modules/element-internals-polyfill/dist/index.js
7
+ (function(e) {
8
+ let t = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap(), i = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new WeakMap(), c = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap(), u = /* @__PURE__ */ new WeakMap(), d = /* @__PURE__ */ new WeakMap(), f = /* @__PURE__ */ new WeakMap(), p = /* @__PURE__ */ new WeakMap(), m = /* @__PURE__ */ new WeakMap(), h = /* @__PURE__ */ new WeakMap(), g = {
9
+ ariaAtomic: "aria-atomic",
10
+ ariaAutoComplete: "aria-autocomplete",
11
+ ariaBusy: "aria-busy",
12
+ ariaChecked: "aria-checked",
13
+ ariaColCount: "aria-colcount",
14
+ ariaColIndex: "aria-colindex",
15
+ ariaColIndexText: "aria-colindextext",
16
+ ariaColSpan: "aria-colspan",
17
+ ariaCurrent: "aria-current",
18
+ ariaDescription: "aria-description",
19
+ ariaDisabled: "aria-disabled",
20
+ ariaExpanded: "aria-expanded",
21
+ ariaHasPopup: "aria-haspopup",
22
+ ariaHidden: "aria-hidden",
23
+ ariaInvalid: "aria-invalid",
24
+ ariaKeyShortcuts: "aria-keyshortcuts",
25
+ ariaLabel: "aria-label",
26
+ ariaLevel: "aria-level",
27
+ ariaLive: "aria-live",
28
+ ariaModal: "aria-modal",
29
+ ariaMultiLine: "aria-multiline",
30
+ ariaMultiSelectable: "aria-multiselectable",
31
+ ariaOrientation: "aria-orientation",
32
+ ariaPlaceholder: "aria-placeholder",
33
+ ariaPosInSet: "aria-posinset",
34
+ ariaPressed: "aria-pressed",
35
+ ariaReadOnly: "aria-readonly",
36
+ ariaRelevant: "aria-relevant",
37
+ ariaRequired: "aria-required",
38
+ ariaRoleDescription: "aria-roledescription",
39
+ ariaRowCount: "aria-rowcount",
40
+ ariaRowIndex: "aria-rowindex",
41
+ ariaRowIndexText: "aria-rowindextext",
42
+ ariaRowSpan: "aria-rowspan",
43
+ ariaSelected: "aria-selected",
44
+ ariaSetSize: "aria-setsize",
45
+ ariaSort: "aria-sort",
46
+ ariaValueMax: "aria-valuemax",
47
+ ariaValueMin: "aria-valuemin",
48
+ ariaValueNow: "aria-valuenow",
49
+ ariaValueText: "aria-valuetext",
50
+ role: "role"
51
+ }, _ = (e, t) => {
52
+ for (let n in g) {
53
+ t[n] = null;
54
+ let r = null, i = g[n];
55
+ Object.defineProperty(t, n, {
56
+ get() {
57
+ return r;
58
+ },
59
+ set(n) {
60
+ r = n, e.isConnected ? T(e, i, n) : u.set(e, t);
61
+ }
62
+ });
63
+ }
64
+ };
65
+ function v(e) {
66
+ let t = i.get(e), { form: n } = t;
67
+ P(e, n, t), A(e, t.labels);
68
+ }
69
+ let y = (e, t = !1) => {
70
+ let n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
71
+ return i.has(e) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
72
+ } }), r = n.nextNode(), a = !t || e.disabled;
73
+ for (; r;) r.formDisabledCallback && a && E(r, e.disabled), r = n.nextNode();
74
+ }, b = {
75
+ attributes: !0,
76
+ attributeFilter: ["disabled", "name"]
77
+ }, x = z() ? new MutationObserver((e) => {
78
+ for (let t of e) {
79
+ let e = t.target;
80
+ if (t.attributeName === "disabled" && (e.constructor.formAssociated ? E(e, e.hasAttribute("disabled")) : e.localName === "fieldset" && y(e)), t.attributeName === "name" && e.constructor.formAssociated) {
81
+ let t = i.get(e), n = l.get(e);
82
+ t.setFormValue(n);
83
+ }
84
+ }
85
+ }) : {};
86
+ function S(e) {
87
+ e.forEach((e) => {
88
+ let { addedNodes: t, removedNodes: n } = e, a = Array.from(t), o = Array.from(n);
89
+ a.forEach((e) => {
90
+ var t;
91
+ if (i.has(e) && e.constructor.formAssociated && v(e), u.has(e)) {
92
+ let t = u.get(e);
93
+ Object.keys(g).filter((e) => t[e] !== null).forEach((n) => {
94
+ T(e, g[n], t[n]);
95
+ }), u.delete(e);
96
+ }
97
+ if (h.has(e)) {
98
+ let t = h.get(e);
99
+ T(e, "internals-valid", t.validity.valid.toString()), T(e, "internals-invalid", (!t.validity.valid).toString()), T(e, "aria-invalid", (!t.validity.valid).toString()), h.delete(e);
100
+ }
101
+ if (e.localName === "form") {
102
+ let t = c.get(e), n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
103
+ return i.has(e) && e.constructor.formAssociated && !(t && t.has(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
104
+ } }), r = n.nextNode();
105
+ for (; r;) v(r), r = n.nextNode();
106
+ }
107
+ e.localName === "fieldset" && ((t = x.observe) == null || t.call(x, e, b), y(e, !0));
108
+ }), o.forEach((e) => {
109
+ let t = i.get(e);
110
+ t && r.get(t) && D(t), s.has(e) && s.get(e).disconnect();
111
+ });
112
+ });
113
+ }
114
+ function C(e) {
115
+ e.forEach((e) => {
116
+ let { removedNodes: t } = e;
117
+ t.forEach((t) => {
118
+ let n = p.get(e.target);
119
+ i.has(t) && R(t), n.disconnect();
120
+ });
121
+ });
122
+ }
123
+ let ee = (e) => {
124
+ var t;
125
+ let n = new MutationObserver(C);
126
+ (window == null ? void 0 : window.ShadyDOM)?.inUse && e.mode && e.host && (e = e.host), (t = n.observe) == null || t.call(n, e, { childList: !0 }), p.set(e, n);
127
+ };
128
+ z() && new MutationObserver(S);
129
+ let w = {
130
+ childList: !0,
131
+ subtree: !0
132
+ }, T = (e, t, n) => {
133
+ e.getAttribute(t) !== n && e.setAttribute(t, n);
134
+ }, E = (e, t) => {
135
+ e.toggleAttribute("internals-disabled", t), t ? T(e, "aria-disabled", "true") : e.removeAttribute("aria-disabled"), e.formDisabledCallback && e.formDisabledCallback.apply(e, [t]);
136
+ }, D = (e) => {
137
+ r.get(e).forEach((e) => {
138
+ e.remove();
139
+ }), r.set(e, []);
140
+ }, O = (e, t) => {
141
+ let n = document.createElement("input");
142
+ return n.type = "hidden", n.name = e.getAttribute("name"), e.after(n), r.get(t).push(n), n;
143
+ }, k = (e, t) => {
144
+ var n;
145
+ r.set(t, []), (n = x.observe) == null || n.call(x, e, b);
146
+ }, A = (e, t) => {
147
+ if (t.length) {
148
+ Array.from(t).forEach((t) => t.addEventListener("click", e.click.bind(e)));
149
+ let n = t[0].id;
150
+ t[0].id || (n = `${t[0].htmlFor}_Label`, t[0].id = n), T(e, "aria-labelledby", n);
151
+ }
152
+ }, j = (e) => {
153
+ let t = Array.from(e.elements).filter((e) => !e.tagName.includes("-") && e.validity).map((e) => e.validity.valid), n = c.get(e) || [], r = Array.from(n).filter((e) => e.isConnected).map((e) => i.get(e).validity.valid), a = [...t, ...r].includes(!1);
154
+ e.toggleAttribute("internals-invalid", a), e.toggleAttribute("internals-valid", !a);
155
+ }, M = (e) => {
156
+ j(F(e.target));
157
+ }, N = (e) => {
158
+ j(F(e.target));
159
+ }, te = (e) => {
160
+ let t = [
161
+ "button[type=submit]",
162
+ "input[type=submit]",
163
+ "button:not([type])"
164
+ ].map((e) => `${e}:not([disabled])`).map((t) => `${t}:not([form])${e.id ? `,${t}[form='${e.id}']` : ""}`).join(",");
165
+ e.addEventListener("click", (n) => {
166
+ if (n.target.closest(t)) {
167
+ let t = c.get(e);
168
+ if (e.noValidate) return;
169
+ t.size && Array.from(t).reverse().map((e) => i.get(e).reportValidity()).includes(!1) && n.preventDefault();
170
+ }
171
+ });
172
+ }, ne = (e) => {
173
+ let t = c.get(e.target);
174
+ t && t.size && t.forEach((e) => {
175
+ e.constructor.formAssociated && e.formResetCallback && e.formResetCallback.apply(e);
176
+ });
177
+ }, P = (e, t, n) => {
178
+ if (t) {
179
+ let r = c.get(t);
180
+ if (r) r.add(e);
181
+ else {
182
+ let n = /* @__PURE__ */ new Set();
183
+ n.add(e), c.set(t, n), te(t), t.addEventListener("reset", ne), t.addEventListener("input", M), t.addEventListener("change", N);
184
+ }
185
+ o.set(t, {
186
+ ref: e,
187
+ internals: n
188
+ }), e.constructor.formAssociated && e.formAssociatedCallback && setTimeout(() => {
189
+ e.formAssociatedCallback.apply(e, [t]);
190
+ }, 0), j(t);
191
+ }
192
+ }, F = (e) => {
193
+ let t = e.parentNode;
194
+ return t && t.tagName !== "FORM" && (t = F(t)), t;
195
+ }, I = (e, t, n = DOMException) => {
196
+ if (!e.constructor.formAssociated) throw new n(t);
197
+ }, L = (e, t, n) => {
198
+ let r = c.get(e);
199
+ return r && r.size && r.forEach((e) => {
200
+ i.get(e)[n]() || (t = !1);
201
+ }), t;
202
+ }, R = (e) => {
203
+ if (e.constructor.formAssociated) {
204
+ let t = i.get(e), { labels: n, form: r } = t;
205
+ A(e, n), P(e, r, t);
206
+ }
207
+ };
208
+ function z() {
209
+ return typeof MutationObserver < "u";
210
+ }
211
+ class B {
212
+ constructor() {
213
+ this.badInput = !1, this.customError = !1, this.patternMismatch = !1, this.rangeOverflow = !1, this.rangeUnderflow = !1, this.stepMismatch = !1, this.tooLong = !1, this.tooShort = !1, this.typeMismatch = !1, this.valid = !0, this.valueMissing = !1, Object.seal(this);
214
+ }
215
+ }
216
+ let re = (e) => (e.badInput = !1, e.customError = !1, e.patternMismatch = !1, e.rangeOverflow = !1, e.rangeUnderflow = !1, e.stepMismatch = !1, e.tooLong = !1, e.tooShort = !1, e.typeMismatch = !1, e.valid = !0, e.valueMissing = !1, e), ie = (e, t, n) => (e.valid = V(t), Object.keys(t).forEach((n) => e[n] = t[n]), n && j(n), e), V = (e) => {
217
+ let t = !0;
218
+ for (let n in e) n !== "valid" && e[n] !== !1 && (t = !1);
219
+ return t;
220
+ }, H = /* @__PURE__ */ new WeakMap();
221
+ function U(e, t) {
222
+ e.toggleAttribute(t, !0), e.part && e.part.add(t);
223
+ }
224
+ class W extends Set {
225
+ static get isPolyfilled() {
226
+ return !0;
227
+ }
228
+ constructor(e) {
229
+ if (super(), !e || !e.tagName || e.tagName.indexOf("-") === -1) throw TypeError("Illegal constructor");
230
+ H.set(this, e);
231
+ }
232
+ add(e) {
233
+ if (!/^--/.test(e) || typeof e != "string") throw new DOMException(`Failed to execute 'add' on 'CustomStateSet': The specified value ${e} must start with '--'.`);
234
+ let t = super.add(e), n = H.get(this), r = `state${e}`;
235
+ return n.isConnected ? U(n, r) : setTimeout(() => {
236
+ U(n, r);
237
+ }), t;
238
+ }
239
+ clear() {
240
+ for (let [e] of this.entries()) this.delete(e);
241
+ super.clear();
242
+ }
243
+ delete(e) {
244
+ let t = super.delete(e), n = H.get(this);
245
+ return n.isConnected ? (n.toggleAttribute(`state${e}`, !1), n.part && n.part.remove(`state${e}`)) : setTimeout(() => {
246
+ n.toggleAttribute(`state${e}`, !1), n.part && n.part.remove(`state${e}`);
247
+ }), t;
248
+ }
249
+ }
250
+ function G(e, t, n, r) {
251
+ if (n === "a" && !r) throw TypeError("Private accessor was defined without a getter");
252
+ if (typeof t == "function" ? e !== t || !r : !t.has(e)) throw TypeError("Cannot read private member from an object whose class did not declare it");
253
+ return n === "m" ? r : n === "a" ? r.call(e) : r ? r.value : t.get(e);
254
+ }
255
+ function K(e, t, n, r, i) {
256
+ if (r === "m") throw TypeError("Private method is not writable");
257
+ if (r === "a" && !i) throw TypeError("Private accessor was defined without a setter");
258
+ if (typeof t == "function" ? e !== t || !i : !t.has(e)) throw TypeError("Cannot write private member to an object whose class did not declare it");
259
+ return r === "a" ? i.call(e, n) : i ? i.value = n : t.set(e, n), n;
260
+ }
261
+ var q;
262
+ class J {
263
+ constructor(e) {
264
+ q.set(this, void 0), K(this, q, e, "f");
265
+ for (let t = 0; t < e.length; t++) {
266
+ let n = e[t];
267
+ this[t] = n, n.hasAttribute("name") && (this[n.getAttribute("name")] = n);
268
+ }
269
+ Object.freeze(this);
270
+ }
271
+ get length() {
272
+ return G(this, q, "f").length;
273
+ }
274
+ [(q = /* @__PURE__ */ new WeakMap(), Symbol.iterator)]() {
275
+ return G(this, q, "f")[Symbol.iterator]();
276
+ }
277
+ item(e) {
278
+ return this[e] == null ? null : this[e];
279
+ }
280
+ namedItem(e) {
281
+ return this[e] == null ? null : this[e];
282
+ }
283
+ }
284
+ function ae() {
285
+ let e = HTMLFormElement.prototype.checkValidity;
286
+ HTMLFormElement.prototype.checkValidity = n;
287
+ let t = HTMLFormElement.prototype.reportValidity;
288
+ HTMLFormElement.prototype.reportValidity = r;
289
+ function n(...t) {
290
+ let n = e.apply(this, t);
291
+ return L(this, n, "checkValidity");
292
+ }
293
+ function r(...e) {
294
+ let n = t.apply(this, e);
295
+ return L(this, n, "reportValidity");
296
+ }
297
+ let { get: i } = Object.getOwnPropertyDescriptor(HTMLFormElement.prototype, "elements");
298
+ Object.defineProperty(HTMLFormElement.prototype, "elements", { get(...e) {
299
+ let t = i.call(this, ...e), n = Array.from(c.get(this) || []);
300
+ return n.length === 0 ? t : new J(Array.from(t).concat(n).sort((e, t) => e.compareDocumentPosition ? e.compareDocumentPosition(t) & 2 ? 1 : -1 : 0));
301
+ } });
302
+ }
303
+ class Y {
304
+ static get isPolyfilled() {
305
+ return !0;
306
+ }
307
+ constructor(e) {
308
+ if (!e || !e.tagName || e.tagName.indexOf("-") === -1) throw TypeError("Illegal constructor");
309
+ let r = e.getRootNode(), a = new B();
310
+ this.states = new W(e), t.set(this, e), n.set(this, a), i.set(e, this), _(e, this), k(e, this), Object.seal(this), r instanceof DocumentFragment && ee(r);
311
+ }
312
+ checkValidity() {
313
+ let e = t.get(this);
314
+ if (I(e, "Failed to execute 'checkValidity' on 'ElementInternals': The target element is not a form-associated custom element."), !this.willValidate) return !0;
315
+ let r = n.get(this);
316
+ if (!r.valid) {
317
+ let t = new Event("invalid", {
318
+ bubbles: !1,
319
+ cancelable: !0,
320
+ composed: !1
321
+ });
322
+ e.dispatchEvent(t);
323
+ }
324
+ return r.valid;
325
+ }
326
+ get form() {
327
+ let e = t.get(this);
328
+ I(e, "Failed to read the 'form' property from 'ElementInternals': The target element is not a form-associated custom element.");
329
+ let n;
330
+ return e.constructor.formAssociated === !0 && (n = F(e)), n;
331
+ }
332
+ get labels() {
333
+ let e = t.get(this);
334
+ I(e, "Failed to read the 'labels' property from 'ElementInternals': The target element is not a form-associated custom element.");
335
+ let n = e.getAttribute("id"), r = e.getRootNode();
336
+ return r && n ? r.querySelectorAll(`[for="${n}"]`) : [];
337
+ }
338
+ reportValidity() {
339
+ let e = t.get(this);
340
+ if (I(e, "Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element."), !this.willValidate) return !0;
341
+ let n = this.checkValidity(), r = f.get(this);
342
+ if (r && !e.constructor.formAssociated) throw new DOMException("Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element.");
343
+ return !n && r && (e.focus(), r.focus()), n;
344
+ }
345
+ setFormValue(e) {
346
+ let n = t.get(this);
347
+ if (I(n, "Failed to execute 'setFormValue' on 'ElementInternals': The target element is not a form-associated custom element."), D(this), e != null && !(e instanceof FormData)) {
348
+ if (n.getAttribute("name")) {
349
+ let t = O(n, this);
350
+ t.value = e;
351
+ }
352
+ } else e != null && e instanceof FormData && Array.from(e).reverse().forEach(([e, t]) => {
353
+ if (typeof t == "string") {
354
+ let r = O(n, this);
355
+ r.name = e, r.value = t;
356
+ }
357
+ });
358
+ l.set(n, e);
359
+ }
360
+ setValidity(e, r, i) {
361
+ let o = t.get(this);
362
+ if (I(o, "Failed to execute 'setValidity' on 'ElementInternals': The target element is not a form-associated custom element."), !e) throw TypeError("Failed to execute 'setValidity' on 'ElementInternals': 1 argument required, but only 0 present.");
363
+ f.set(this, i);
364
+ let s = n.get(this), c = {};
365
+ for (let t in e) c[t] = e[t];
366
+ Object.keys(c).length === 0 && re(s);
367
+ let l = Object.assign(Object.assign({}, s), c);
368
+ delete l.valid;
369
+ let { valid: u } = ie(s, l, this.form);
370
+ if (!u && !r) throw new DOMException("Failed to execute 'setValidity' on 'ElementInternals': The second argument should not be empty if one or more flags in the first argument are true.");
371
+ a.set(this, u ? "" : r), o.isConnected ? (o.toggleAttribute("internals-invalid", !u), o.toggleAttribute("internals-valid", u), T(o, "aria-invalid", `${!u}`)) : h.set(o, this);
372
+ }
373
+ get shadowRoot() {
374
+ let e = t.get(this);
375
+ return d.get(e) || null;
376
+ }
377
+ get validationMessage() {
378
+ return I(t.get(this), "Failed to read the 'validationMessage' property from 'ElementInternals': The target element is not a form-associated custom element."), a.get(this);
379
+ }
380
+ get validity() {
381
+ return I(t.get(this), "Failed to read the 'validity' property from 'ElementInternals': The target element is not a form-associated custom element."), n.get(this);
382
+ }
383
+ get willValidate() {
384
+ let e = t.get(this);
385
+ return I(e, "Failed to read the 'willValidate' property from 'ElementInternals': The target element is not a form-associated custom element."), !(e.disabled || e.hasAttribute("disabled") || e.hasAttribute("readonly"));
386
+ }
387
+ }
388
+ function oe() {
389
+ if (typeof window > "u" || !window.ElementInternals || !HTMLElement.prototype.attachInternals) return !1;
390
+ class e extends HTMLElement {
391
+ constructor() {
392
+ super(), this.internals = this.attachInternals();
393
+ }
394
+ }
395
+ let t = `element-internals-feature-detection-${Math.random().toString(36).replace(/[^a-z]+/g, "")}`;
396
+ customElements.define(t, e);
397
+ let n = new e();
398
+ return [
399
+ "shadowRoot",
400
+ "form",
401
+ "willValidate",
402
+ "validity",
403
+ "validationMessage",
404
+ "labels",
405
+ "setFormValue",
406
+ "setValidity",
407
+ "checkValidity",
408
+ "reportValidity"
409
+ ].every((e) => e in n.internals);
410
+ }
411
+ let X = !1, Z = !1;
412
+ function Q(e) {
413
+ Z || (Z = !0, window.CustomStateSet = W, e && (HTMLElement.prototype.attachInternals = function(...t) {
414
+ let n = e.call(this, t);
415
+ return n.states = new W(this), n;
416
+ }));
417
+ }
418
+ function $(e = !0) {
419
+ if (!X) {
420
+ if (X = !0, typeof window < "u" && (window.ElementInternals = Y), typeof CustomElementRegistry < "u") {
421
+ let e = CustomElementRegistry.prototype.define;
422
+ CustomElementRegistry.prototype.define = function(t, n, r) {
423
+ if (n.formAssociated) {
424
+ let e = n.prototype.connectedCallback;
425
+ n.prototype.connectedCallback = function() {
426
+ m.has(this) || (m.set(this, !0), this.hasAttribute("disabled") && E(this, !0)), e?.apply(this), R(this);
427
+ };
428
+ }
429
+ e.call(this, t, n, r);
430
+ };
431
+ }
432
+ if (typeof HTMLElement < "u" && (HTMLElement.prototype.attachInternals = function() {
433
+ if (!this.tagName) return {};
434
+ if (this.tagName.indexOf("-") === -1) throw Error("Failed to execute 'attachInternals' on 'HTMLElement': Unable to attach ElementInternals to non-custom elements.");
435
+ if (i.has(this)) throw new DOMException("DOMException: Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");
436
+ return new Y(this);
437
+ }), typeof Element < "u") {
438
+ function e(...e) {
439
+ let n = t.apply(this, e);
440
+ if (d.set(this, n), z()) {
441
+ let e = new MutationObserver(S);
442
+ window.ShadyDOM ? e.observe(this, w) : e.observe(n, w), s.set(this, e);
443
+ }
444
+ return n;
445
+ }
446
+ let t = Element.prototype.attachShadow;
447
+ Element.prototype.attachShadow = e;
448
+ }
449
+ z() && typeof document < "u" && new MutationObserver(S).observe(document.documentElement, w), typeof HTMLFormElement < "u" && ae(), (e || typeof window < "u" && !window.CustomStateSet) && Q();
450
+ }
451
+ }
452
+ return customElements.polyfillWrapFlushCallback || (oe() ? typeof window < "u" && !window.CustomStateSet && Q(HTMLElement.prototype.attachInternals) : $(!1)), e.forceCustomStateSetPolyfill = Q, e.forceElementInternalsPolyfill = $, Object.defineProperty(e, "__esModule", { value: !0 }), e;
453
+ })({});
454
+ //#endregion
455
+ //#region src/base-elements/input-element.ts
456
+ var s = "on", c = "--checked", l = ",", u = class extends r {
457
+ static get formAssociated() {
458
+ return !0;
459
+ }
460
+ constructor() {
461
+ super(), this.defaultValue = null, this.disabled = !1, this.readonly = !1, this.required = !1, this.max = null, this.maxlength = null, this.min = null, this.minlength = null, this.step = null, this.ariaDescribedBy = null, this.ariaLabelledby = null, this.name = "", this.pattern = null, this.placeholder = null, this.id = i(), this.counter = !1, this.hasError = !1, this.inline = !1, this.hasFieldset = !1, this.optionalTag = !1, this.requiredTag = !1, this.skipForwardTestid = !1, this.useWrapper = !0, this.fullwidth = !1, this.counterMaxLength = 0, this.errorMessage = "", this.helptext = "", this.helptextDropdown = "", this.helptextDropdownButton = o.props.helptextDropdownButton.default, this.label = null, this.optionalText = e.forms.labels.optional, this.requiredText = e.forms.labels.required, this.tagText = null, this.dataTestid = "", this.touched = !1, this.internals = this.attachInternals();
462
+ }
463
+ manageValidity(t) {
464
+ if (!t) {
465
+ console.warn("manageValidity called without valid input element");
466
+ return;
467
+ }
468
+ this.required && !this.value ? this.internals.setValidity({ valueMissing: !0 }, e.forms.messages.required, t) : t.validity?.typeMismatch || t.validity?.badInput ? this.internals.setValidity({ typeMismatch: !0 }, e.forms.messages.invalid, t) : t.validity?.patternMismatch ? this.internals.setValidity({ patternMismatch: !0 }, e.forms.messages.invalidPattern, t) : t.validity?.tooShort || this.minlength && this.minlength > 0 && this.value.length < this.minlength ? this.internals.setValidity({ tooShort: !0 }, e.forms.messages.tooShort, t) : t.validity?.tooLong || this.maxlength && this.maxlength > 0 && this.value.length > this.maxlength ? this.internals.setValidity({ tooLong: !0 }, e.forms.messages.tooLong, t) : t.validity?.rangeUnderflow ? this.internals.setValidity({ rangeUnderflow: !0 }, this.min ? e.forms.messages.rangeUnderflowMin.replace("{min}", this.min?.toString()) : e.forms.messages.rangeUnderflow, t) : t.validity?.stepMismatch ? this.internals.setValidity({ stepMismatch: !0 }, e.forms.messages.invalid, t) : t.validity?.rangeOverflow ? this.internals.setValidity({ rangeOverflow: !0 }, this.max ? e.forms.messages.rangeOverflowMax.replace("{max}", this.max?.toString()) : e.forms.messages.rangeOverflow, t) : t.validity?.customError ? this.internals.setValidity({ customError: !0 }, t.validationMessage, t) : this.internals.setValidity({});
469
+ }
470
+ setFormValue(e) {
471
+ if (this.internals) if (Array.isArray(e)) {
472
+ let t = new FormData();
473
+ e.forEach((e) => {
474
+ t.append(this.name, e);
475
+ }), this.internals.setFormValue(t);
476
+ } else this.internals.setFormValue(e);
477
+ }
478
+ coordinateRadioGroup() {
479
+ if (!this.form || !this.name || this.type !== "radio") return;
480
+ let e = `pkt-radiobutton[name="${this.name}"], input[type=radio][name="${this.name}"]`;
481
+ this.form.querySelectorAll(e).forEach((e) => {
482
+ if (e !== this && e.getAttribute("name") === this.name && e.getAttribute("value") !== this.value) {
483
+ let t = e;
484
+ t.checked && (t.checked = !1, t.internals && (t.internals.setFormValue(null), t.internals.states?.delete(c)));
485
+ }
486
+ });
487
+ }
488
+ valueChecked(e) {
489
+ if (!this.touched) return;
490
+ let t = this.internals.form || this.closest("form"), n = t ? new FormData(t) : null;
491
+ if (this.type === "radio" && this.coordinateRadioGroup(), typeof e == "string" ? (this.checked = e === "true", this.internals.ariaChecked = String(e === "true")) : typeof e == "boolean" && (this.checked = e, this.internals.ariaChecked = String(e)), this.checked) {
492
+ let e = (typeof this.value == "string" ? this.value : "") || s;
493
+ this.internals.setFormValue(e), n && n.append(this.name, e), this.internals.states.add(c);
494
+ } else this.internals.setFormValue(null), n && n.delete(this.name), this.internals.states.delete(c);
495
+ this.dispatchChangeEvents(this.checked), this.internals.reportValidity();
496
+ }
497
+ valueChanged(e, t) {
498
+ (t !== this.value || t !== this._value) && (typeof e == "string" ? ((this.multiple || this.range) && e.includes(l) && (e = e.split(l)), this.value = e, this._value = Array.isArray(e) ? e : [e]) : Array.isArray(e) ? (this.value = this.multiple || this.range ? e : e[0], this._value = e) : (this.value = "", this._value = []), (!this.value || this.value.length === 0) && t && t.length !== 0 ? this.clearInputValue() : this.value && this.value.toString() !== t?.toString() && this.onChange(this.value));
499
+ }
500
+ dispatchChangeEvents(e) {
501
+ this.dispatchEvent(new Event("change", {
502
+ bubbles: !0,
503
+ composed: !0
504
+ })), this.dispatchEvent(new CustomEvent("value-change", {
505
+ detail: e,
506
+ bubbles: !0,
507
+ composed: !0
508
+ }));
509
+ }
510
+ clearInputValue() {
511
+ let e = this.multiple || this.range ? [] : "";
512
+ this.value = e, this.setFormValue(e), this.dispatchChangeEvents(e);
513
+ }
514
+ onFocus() {
515
+ this.dispatchEvent(new FocusEvent("focus", {
516
+ bubbles: !0,
517
+ composed: !0
518
+ }));
519
+ }
520
+ onBlur() {
521
+ this.dispatchEvent(new FocusEvent("blur", {
522
+ bubbles: !0,
523
+ composed: !0
524
+ }));
525
+ }
526
+ onInput() {
527
+ this.dispatchEvent(new InputEvent("input", {
528
+ bubbles: !0,
529
+ composed: !0
530
+ }));
531
+ }
532
+ normalizeValue(e) {
533
+ return (this.range || this.multiple) && typeof e == "string" && e.includes(l) ? e.split(l) : !this.multiple && !this.range && Array.isArray(e) ? e[0] || "" : e;
534
+ }
535
+ validate() {
536
+ this.inputRef?.value && this.manageValidity(this.inputRef.value), this.inputRefTo?.value && this.manageValidity(this.inputRefTo.value);
537
+ }
538
+ onChange(e) {
539
+ if (!this.touched) {
540
+ this.touched = !0, e && this.setFormValue(e), this.validate();
541
+ return;
542
+ }
543
+ if (typeof e != "string" && !Array.isArray(e)) return;
544
+ let t = this.normalizeValue(e);
545
+ this.setFormValue(t), this.validate(), this.dispatchChangeEvents(t);
546
+ }
547
+ formResetCallback() {
548
+ if (this.touched = !1, this._options && this._options.length && this._options.forEach((e) => {
549
+ "selected" in e && (e.selected = !1);
550
+ }), this.checked !== void 0) this.checked = !1, this.internals.ariaChecked = "false", this.internals.setFormValue(""), this.inputRef?.value && "checked" in this.inputRef.value && (this.inputRef.value.checked = !1), this.valueChecked(this.checked);
551
+ else {
552
+ this.internals.setFormValue("");
553
+ let e = this.defaultValue || (this.multiple || this.range ? [] : "");
554
+ this.value = e, this._value = Array.isArray(e) ? e : [e], this.valueChanged(this.value, null);
555
+ }
556
+ this.internals.ariaInvalid = "false";
557
+ }
558
+ updated(e) {
559
+ super.updated(e), e.has("dataTestid") && this.dataTestid && this.inputRef.value && (this.skipForwardTestid ? this.hasAttribute("data-testid") || this.setAttribute("data-testid", this.dataTestid) : (this.inputRef.value.dataset.testid = this.dataTestid, this.removeAttribute("data-testid")));
560
+ }
561
+ firstUpdated(e) {
562
+ if (super.firstUpdated(e), this.form ||= this.internals.form || this.closest("form"), this.value && this.defaultValue === null && (this.defaultValue = this.value), this.defaultValue !== null && !this.value && this.valueChanged(this.defaultValue, null), this.defaultChecked && (this.internals.ariaChecked = "true", this.checked = !0), this.required && (this.internals.ariaRequired = "true"), this.disabled && (this.internals.ariaDisabled = "true"), this.id && !this.name && (this.name = this.id), this.checked !== void 0) {
563
+ let e = this.checked === "" || this.checked === "true" || this.checked === !0;
564
+ this.internals.ariaChecked = String(e);
565
+ let t = e ? (typeof this.value == "string" ? this.value : "") || s : null;
566
+ this.internals.setFormValue(t);
567
+ } else this.setFormValue(this.value);
568
+ this.inputRef && this.inputRef.value && (this.inputRef.value.setAttribute("form", ""), this.manageValidity(this.inputRef.value)), this.inputRefTo && this.inputRefTo.value && (this.inputRefTo.value.setAttribute("form", ""), this.manageValidity(this.inputRefTo.value));
569
+ }
570
+ };
571
+ t([n({
572
+ type: Boolean,
573
+ reflect: !0
574
+ })], u.prototype, "checked", void 0), t([n({ type: Boolean })], u.prototype, "defaultChecked", void 0), t([n({ type: Boolean })], u.prototype, "multiple", void 0), t([n({ type: Boolean })], u.prototype, "range", void 0), t([n({
575
+ type: String,
576
+ reflect: !0
577
+ })], u.prototype, "type", void 0), t([n()], u.prototype, "defaultValue", void 0), t([n({
578
+ type: Boolean,
579
+ reflect: !0
580
+ })], u.prototype, "disabled", void 0), t([n({
581
+ type: Boolean,
582
+ reflect: !0
583
+ })], u.prototype, "readonly", void 0), t([n({
584
+ type: Boolean,
585
+ reflect: !0
586
+ })], u.prototype, "required", void 0), t([n({
587
+ reflect: !0,
588
+ converter: {
589
+ fromAttribute: (e) => e,
590
+ toAttribute: (e) => e?.toString() ?? null
591
+ }
592
+ })], u.prototype, "max", void 0), t([n({
593
+ type: Number,
594
+ reflect: !0
595
+ })], u.prototype, "maxlength", void 0), t([n({
596
+ reflect: !0,
597
+ converter: {
598
+ fromAttribute: (e) => e,
599
+ toAttribute: (e) => e?.toString() ?? null
600
+ }
601
+ })], u.prototype, "min", void 0), t([n({
602
+ type: Number,
603
+ reflect: !0
604
+ })], u.prototype, "minlength", void 0), t([n({
605
+ type: Number,
606
+ reflect: !0
607
+ })], u.prototype, "step", void 0), t([n({ type: String })], u.prototype, "ariaDescribedBy", void 0), t([n({ type: String })], u.prototype, "ariaLabelledby", void 0), t([n({
608
+ type: String,
609
+ reflect: !0
610
+ })], u.prototype, "name", void 0), t([n({
611
+ type: String,
612
+ reflect: !0
613
+ })], u.prototype, "pattern", void 0), t([n({
614
+ type: String,
615
+ reflect: !0
616
+ })], u.prototype, "placeholder", void 0), t([n({
617
+ type: String,
618
+ reflect: !0
619
+ })], u.prototype, "id", void 0), t([n({ type: Boolean })], u.prototype, "counter", void 0), t([n({ type: Boolean })], u.prototype, "hasError", void 0), t([n({ type: Boolean })], u.prototype, "inline", void 0), t([n({ type: Boolean })], u.prototype, "hasFieldset", void 0), t([n({ type: Boolean })], u.prototype, "optionalTag", void 0), t([n({ type: Boolean })], u.prototype, "requiredTag", void 0), t([n({ type: Boolean })], u.prototype, "skipForwardTestid", void 0), t([n({
620
+ type: Boolean,
621
+ reflect: !0,
622
+ converter: a
623
+ })], u.prototype, "useWrapper", void 0), t([n({
624
+ type: Boolean,
625
+ reflect: !0
626
+ })], u.prototype, "fullwidth", void 0), t([n({ type: Number })], u.prototype, "counterMaxLength", void 0), t([n({ type: String })], u.prototype, "errorMessage", void 0), t([n({ type: String })], u.prototype, "helptext", void 0), t([n({ type: String })], u.prototype, "helptextDropdown", void 0), t([n({
627
+ type: String,
628
+ reflect: !1
629
+ })], u.prototype, "helptextDropdownButton", void 0), t([n({ type: String })], u.prototype, "label", void 0), t([n({
630
+ type: String,
631
+ reflect: !1
632
+ })], u.prototype, "optionalText", void 0), t([n({
633
+ type: String,
634
+ reflect: !1
635
+ })], u.prototype, "requiredText", void 0), t([n({
636
+ type: String,
637
+ reflect: !1
638
+ })], u.prototype, "tagText", void 0), t([n({
639
+ type: String,
640
+ attribute: "data-testid"
641
+ })], u.prototype, "dataTestid", void 0);
642
+ //#endregion
643
+ export { u as t };