@oslokommune/punkt-elements 17.0.9 → 17.1.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 (305) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/{accordion-CbXDxOho.cjs → accordion-B3GBlvUC.cjs} +2 -2
  3. package/dist/{accordion-DEUHQ4JD.js → accordion-BeLvLPrB.js} +12 -11
  4. package/dist/{alert-CkUnbPdA.cjs → alert-Cs4Rmq_J.cjs} +1 -1
  5. package/dist/{alert-CbtVGrHD.js → alert-DKK_Tb9J.js} +5 -5
  6. package/dist/{async-directive-Cw_7VW_-.js → async-directive-BPf6K-V2.js} +9 -6
  7. package/dist/async-directive-Da7TJpnq.cjs +1 -0
  8. package/dist/{backlink-DDGlLzk9.cjs → backlink-CMmrKTe4.cjs} +1 -1
  9. package/dist/{backlink-wMNLuQ0X.js → backlink-D1y26pj3.js} +3 -3
  10. package/dist/base-elements/input-element.d.ts +9 -4
  11. package/dist/booleanish-BF8l4scU.cjs +1 -0
  12. package/dist/{booleanish-MfutDT_4.js → booleanish-OQJTYSrw.js} +8 -1
  13. package/dist/{breadcrumbs-D3tfWqvC.cjs → breadcrumbs-B6JGhJgC.cjs} +1 -1
  14. package/dist/{breadcrumbs-CVTLNNsL.js → breadcrumbs-CcTQ3Grm.js} +2 -2
  15. package/dist/{button-Cod17rKo.js → button-2-OSPJkj.js} +10 -10
  16. package/dist/{button-gvDXtBMC.cjs → button-CE97NQIk.cjs} +2 -2
  17. package/dist/{calendar-BVXW8DqC.cjs → calendar-kn4SrtJy.cjs} +1 -1
  18. package/dist/{calendar-CjC4qlh6.js → calendar-pOW3R5Pw.js} +4 -4
  19. package/dist/{card-sydjK3Bb.cjs → card-CETDFkxR.cjs} +3 -3
  20. package/dist/{card-sDOe54um.js → card-zQ0eKRMV.js} +9 -8
  21. package/dist/{checkbox-DJDphhqz.js → checkbox-CH7NpINF.js} +12 -12
  22. package/dist/{checkbox-8uxbeU30.cjs → checkbox-CQNr_sEg.cjs} +8 -8
  23. package/dist/{class-map-CCZN5uS3.cjs → class-map-BeimMvPv.cjs} +1 -1
  24. package/dist/{class-map-CAQCRB1W.js → class-map-CnWCnBSX.js} +2 -2
  25. package/dist/combobox-Bvg0UO9w.cjs +139 -0
  26. package/dist/{combobox-CzZIf5hd.js → combobox-CRdYYlxu.js} +68 -37
  27. package/dist/components/accordion/accordion.d.ts +1 -1
  28. package/dist/components/accordion/accordionitem.d.ts +1 -1
  29. package/dist/components/alert/alert.d.ts +1 -1
  30. package/dist/components/backlink/backlink.d.ts +1 -1
  31. package/dist/components/breadcrumbs/breadcrumbs.d.ts +1 -1
  32. package/dist/components/button/button.d.ts +1 -1
  33. package/dist/components/card/card.d.ts +9 -9
  34. package/dist/components/checkbox/checkbox.d.ts +1 -1
  35. package/dist/components/combobox/combobox.d.ts +1 -1
  36. package/dist/components/consent/consent.d.ts +1 -1
  37. package/dist/components/datepicker/date-tags.d.ts +1 -1
  38. package/dist/components/datepicker/datepicker-multiple.d.ts +1 -1
  39. package/dist/components/datepicker/datepicker-popup.d.ts +1 -1
  40. package/dist/components/datepicker/datepicker-range.d.ts +1 -1
  41. package/dist/components/datepicker/datepicker-single.d.ts +1 -1
  42. package/dist/components/datepicker/datepicker-utils.d.ts +2 -2
  43. package/dist/components/datepicker/datepicker.d.ts +5 -5
  44. package/dist/components/fileupload/fileupload-base.d.ts +1 -1
  45. package/dist/components/fileupload/fileupload-renderers.d.ts +2 -2
  46. package/dist/components/fileupload/fileupload.d.ts +3 -1
  47. package/dist/components/header/header-user-menu.d.ts +1 -1
  48. package/dist/components/header/header.d.ts +1 -1
  49. package/dist/components/helptext/helptext.d.ts +1 -1
  50. package/dist/components/icon/icon.d.ts +1 -1
  51. package/dist/components/input-wrapper/input-wrapper.d.ts +1 -1
  52. package/dist/components/input-wrapper/tri-state.test.d.ts +0 -0
  53. package/dist/components/input-wrapper/wrapper-parity.test.d.ts +1 -0
  54. package/dist/components/link/link.d.ts +1 -1
  55. package/dist/components/linkcard/linkcard.d.ts +1 -1
  56. package/dist/components/listbox/listbox.d.ts +1 -1
  57. package/dist/components/loader/loader.d.ts +1 -1
  58. package/dist/components/messagebox/messagebox.d.ts +1 -1
  59. package/dist/components/modal/modal.d.ts +1 -1
  60. package/dist/components/progressbar/progressbar.d.ts +1 -1
  61. package/dist/components/radiobutton/radiobutton.d.ts +1 -1
  62. package/dist/components/searchinput/searchinput.d.ts +1 -1
  63. package/dist/components/select/select.d.ts +1 -1
  64. package/dist/components/select/select.test.d.ts +2 -2
  65. package/dist/components/tabs/tabitem.d.ts +1 -1
  66. package/dist/components/tabs/tabs.d.ts +1 -1
  67. package/dist/components/tag/tag.d.ts +1 -1
  68. package/dist/components/textarea/textarea.d.ts +3 -2
  69. package/dist/components/textarea/textarea.test.d.ts +2 -2
  70. package/dist/components/textinput/textinput.d.ts +1 -1
  71. package/dist/components/textinput/textinput.test.d.ts +2 -2
  72. package/dist/components/timepicker/timepicker.d.ts +1 -1
  73. package/dist/{consent--Nw43WFU.cjs → consent-CyY3RyoC.cjs} +1 -1
  74. package/dist/{consent-B2hSTCGC.js → consent-DZEkhgJ1.js} +2 -2
  75. package/dist/{consume-BiOhrhEy.js → consume-BDnMAp2g.js} +6 -6
  76. package/dist/{consume-DKf5SmP9.cjs → consume-Le4HztPo.cjs} +1 -1
  77. package/dist/converters-BJ9Fe0kW.cjs +1 -0
  78. package/dist/{converters-BBfsEJV5.js → converters-CkjLSYpa.js} +200 -202
  79. package/dist/{datepicker-BMuplkDE.js → datepicker-ButIas85.js} +46 -22
  80. package/dist/{datepicker-DrB54Rhc.cjs → datepicker-VTqSDQk5.cjs} +7 -8
  81. package/dist/dialog-polyfill.esm-B-g35ove.cjs +1 -0
  82. package/dist/{dialog-polyfill.esm-ChZRzCVh.js → dialog-polyfill.esm-DHSvqor8.js} +2 -2
  83. package/dist/{directive-helpers-BshFvt7A.cjs → directive-helpers-BlAV5EQD.cjs} +1 -1
  84. package/dist/{directive-helpers-DIF5DwN4.js → directive-helpers-CI8YZqku.js} +2 -2
  85. package/dist/directives/slot-content.d.ts +1 -1
  86. package/dist/docs/backlink.d.ts +1 -1
  87. package/dist/docs/components/accordion.d.ts +1 -1
  88. package/dist/docs/components/alert.d.ts +1 -1
  89. package/dist/docs/components/backlink.d.ts +1 -1
  90. package/dist/docs/components/breadcrumbs.d.ts +1 -1
  91. package/dist/docs/components/button.d.ts +1 -1
  92. package/dist/docs/components/calendar.d.ts +1 -1
  93. package/dist/docs/components/card.d.ts +1 -1
  94. package/dist/docs/components/checkbox.d.ts +1 -1
  95. package/dist/docs/components/combobox.d.ts +1 -1
  96. package/dist/docs/components/comboboxdemo.d.ts +1 -1
  97. package/dist/docs/components/consent.d.ts +1 -1
  98. package/dist/docs/components/datepicker.d.ts +1 -1
  99. package/dist/docs/components/datepickermultiple.d.ts +1 -1
  100. package/dist/docs/components/event-log.d.ts +1 -1
  101. package/dist/docs/components/fileupload.d.ts +1 -1
  102. package/dist/docs/components/footer.d.ts +1 -1
  103. package/dist/docs/components/form-sizes.d.ts +1 -1
  104. package/dist/docs/components/form.d.ts +1 -1
  105. package/dist/docs/components/header-full.d.ts +1 -1
  106. package/dist/docs/components/header-global-full.d.ts +1 -1
  107. package/dist/docs/components/header-global.d.ts +1 -1
  108. package/dist/docs/components/header-menu.d.ts +1 -1
  109. package/dist/docs/components/header.d.ts +1 -1
  110. package/dist/docs/components/heading.d.ts +1 -1
  111. package/dist/docs/components/icon.d.ts +1 -1
  112. package/dist/docs/components/input-wrapper.d.ts +1 -1
  113. package/dist/docs/components/link.d.ts +1 -1
  114. package/dist/docs/components/linkcard.d.ts +1 -1
  115. package/dist/docs/components/loader.d.ts +1 -1
  116. package/dist/docs/components/messagebox.d.ts +1 -1
  117. package/dist/docs/components/modal.d.ts +1 -1
  118. package/dist/docs/components/progressbar.d.ts +1 -1
  119. package/dist/docs/components/radiobutton.d.ts +1 -1
  120. package/dist/docs/components/searchinput.d.ts +1 -1
  121. package/dist/docs/components/select.d.ts +1 -1
  122. package/dist/docs/components/slots.d.ts +1 -1
  123. package/dist/docs/components/tabs.d.ts +1 -1
  124. package/dist/docs/components/tag.d.ts +1 -1
  125. package/dist/docs/components/textarea.d.ts +1 -1
  126. package/dist/docs/components/textinput.d.ts +1 -1
  127. package/dist/docs/components/timepicker.d.ts +1 -1
  128. package/dist/docs/components/verifisering.d.ts +15 -0
  129. package/dist/docs/header.d.ts +1 -1
  130. package/dist/docs/punkt-docs.d.ts +1 -1
  131. package/dist/element-BA8v6S7z.cjs +2 -0
  132. package/dist/{element-BoJrqauR.js → element-ChsFgr_B.js} +19 -16
  133. package/dist/{element-with-slot-BY7Jc-q8.cjs → element-with-slot-Bj7nm7fO.cjs} +1 -1
  134. package/dist/{element-with-slot-mXLg8gg8.js → element-with-slot-BvG9ctC-.js} +2 -2
  135. package/dist/fetch-header-footer-data-CUKV0biS.cjs +1 -0
  136. package/dist/{fileupload-CGKUJrlj.cjs → fileupload-BeWiTAoW.cjs} +8 -8
  137. package/dist/{fileupload-D4gQN64T.js → fileupload-D5IQ9HDe.js} +25 -20
  138. package/dist/{footer-Ber-jqM1.cjs → footer-DbYQUYNR.cjs} +1 -1
  139. package/dist/{footer-BIrJeRuZ.js → footer-DrR64HiK.js} +6 -6
  140. package/dist/{header-BFk1an4z.cjs → header-ClgIac6n.cjs} +12 -12
  141. package/dist/{header-Deg_LGJo.js → header-KvJ1mGwA.js} +48 -38
  142. package/dist/{header-menu-BHqK4QA6.cjs → header-menu-BAsUNKSx.cjs} +3 -3
  143. package/dist/{header-menu-GFtJKM4j.js → header-menu-hVPXsb8g.js} +10 -8
  144. package/dist/{heading-DyJpBFT2.cjs → heading-CFmiSuCQ.cjs} +1 -1
  145. package/dist/{heading-CD0PhL8g.js → heading-g-_IUB5T.js} +2 -2
  146. package/dist/{helptext-Cq5rNaAC.cjs → helptext-CTtKJcML.cjs} +4 -1
  147. package/dist/{helptext-C_brWCIT.js → helptext-DZng1D5i.js} +18 -14
  148. package/dist/{icon-B8PVq2O6.cjs → icon-9iwd2F2l.cjs} +1 -1
  149. package/dist/{icon-DGFEIlco.js → icon-D-LA22xD.js} +2 -2
  150. package/dist/if-defined-B89_ZeCj.cjs +1 -0
  151. package/dist/if-defined-CGzIlZ9-.js +5 -0
  152. package/dist/{input-element-C0RnXi-J.js → input-element-DBMNBplu.js} +155 -129
  153. package/dist/{input-element-B0qLbEdF.cjs → input-element-DYmQw-fH.cjs} +1 -1
  154. package/dist/input-wrapper-BmxNvznr.js +128 -0
  155. package/dist/{input-wrapper-BweP6t3O.js → input-wrapper-D-fPaTbY.js} +2 -2
  156. package/dist/{input-wrapper-wh3fWIhk.cjs → input-wrapper-D5PR0rJn.cjs} +1 -1
  157. package/dist/input-wrapper-Q-B-aBeb.cjs +54 -0
  158. package/dist/{link-FmkQvSQL.js → link-D-Eqm5KH.js} +8 -7
  159. package/dist/{link-Geze7498.cjs → link-DK7gvmnj.cjs} +2 -2
  160. package/dist/{linkcard-6LCXRTR-.cjs → linkcard-B29cmZqh.cjs} +1 -1
  161. package/dist/{linkcard-BKdT0zU_.js → linkcard-zqbg7Oqm.js} +4 -4
  162. package/dist/{listbox-89wMuQVK.cjs → listbox-Dc4rGdPi.cjs} +2 -2
  163. package/dist/{listbox-LdyWPu7W.js → listbox-va_E8afs.js} +6 -10
  164. package/dist/{loader-CgW4Vst3.cjs → loader-CMUkVJmE.cjs} +1 -1
  165. package/dist/{loader-BA-i8CaQ.js → loader-D_RDICnw.js} +4 -4
  166. package/dist/{messagebox-VD5oEZ19.cjs → messagebox-Cv8LaSxv.cjs} +1 -1
  167. package/dist/{messagebox-fiaAyHLG.js → messagebox-Cw-OWDya.js} +7 -6
  168. package/dist/{modal-CPnFteYS.cjs → modal-BtInv031.cjs} +1 -1
  169. package/dist/{modal-xNK_wpHk.js → modal-D0t_X2dX.js} +6 -6
  170. package/dist/pkt-accordion.cjs +1 -1
  171. package/dist/pkt-accordion.js +1 -1
  172. package/dist/pkt-alert.cjs +1 -1
  173. package/dist/pkt-alert.js +1 -1
  174. package/dist/pkt-backlink.cjs +1 -1
  175. package/dist/pkt-backlink.js +1 -1
  176. package/dist/pkt-breadcrumbs.cjs +1 -1
  177. package/dist/pkt-breadcrumbs.js +1 -1
  178. package/dist/pkt-button.cjs +1 -1
  179. package/dist/pkt-button.js +1 -1
  180. package/dist/pkt-calendar.cjs +1 -1
  181. package/dist/pkt-calendar.js +1 -1
  182. package/dist/pkt-card.cjs +1 -1
  183. package/dist/pkt-card.js +1 -1
  184. package/dist/pkt-checkbox.cjs +1 -1
  185. package/dist/pkt-checkbox.js +1 -1
  186. package/dist/pkt-combobox.cjs +1 -1
  187. package/dist/pkt-combobox.js +1 -1
  188. package/dist/pkt-consent.cjs +1 -1
  189. package/dist/pkt-consent.js +1 -1
  190. package/dist/pkt-datepicker.cjs +1 -1
  191. package/dist/pkt-datepicker.js +1 -1
  192. package/dist/pkt-fileupload.cjs +1 -1
  193. package/dist/pkt-fileupload.js +1 -1
  194. package/dist/pkt-footer.cjs +1 -1
  195. package/dist/pkt-footer.js +1 -1
  196. package/dist/pkt-header-menu.cjs +1 -1
  197. package/dist/pkt-header-menu.js +1 -1
  198. package/dist/pkt-header.cjs +1 -1
  199. package/dist/pkt-header.js +1 -1
  200. package/dist/pkt-heading.cjs +1 -1
  201. package/dist/pkt-heading.js +1 -1
  202. package/dist/pkt-helptext.cjs +1 -1
  203. package/dist/pkt-helptext.js +1 -1
  204. package/dist/pkt-icon.cjs +1 -1
  205. package/dist/pkt-icon.js +1 -1
  206. package/dist/pkt-index.cjs +1 -1
  207. package/dist/pkt-index.js +34 -34
  208. package/dist/pkt-input-wrapper.cjs +1 -1
  209. package/dist/pkt-input-wrapper.js +1 -1
  210. package/dist/pkt-link.cjs +1 -1
  211. package/dist/pkt-link.js +1 -1
  212. package/dist/pkt-linkcard.cjs +1 -1
  213. package/dist/pkt-linkcard.js +1 -1
  214. package/dist/pkt-listbox.cjs +1 -1
  215. package/dist/pkt-listbox.js +1 -1
  216. package/dist/pkt-loader.cjs +1 -1
  217. package/dist/pkt-loader.js +1 -1
  218. package/dist/pkt-messagebox.cjs +1 -1
  219. package/dist/pkt-messagebox.js +1 -1
  220. package/dist/pkt-modal.cjs +1 -1
  221. package/dist/pkt-modal.js +1 -1
  222. package/dist/{pkt-options-controller-DMxYwnnj.js → pkt-options-controller-B77vH3PE.js} +1 -1
  223. package/dist/{pkt-options-controller-CPrfqepu.cjs → pkt-options-controller-C5EBX2T0.cjs} +1 -1
  224. package/dist/pkt-progressbar.cjs +1 -1
  225. package/dist/pkt-progressbar.js +1 -1
  226. package/dist/pkt-radiobutton.cjs +1 -1
  227. package/dist/pkt-radiobutton.js +1 -1
  228. package/dist/pkt-searchinput.cjs +1 -1
  229. package/dist/pkt-searchinput.js +1 -1
  230. package/dist/pkt-select.cjs +1 -1
  231. package/dist/pkt-select.js +1 -1
  232. package/dist/pkt-tabs.cjs +1 -1
  233. package/dist/pkt-tabs.js +1 -1
  234. package/dist/pkt-tag.cjs +1 -1
  235. package/dist/pkt-tag.js +1 -1
  236. package/dist/pkt-textarea.cjs +1 -1
  237. package/dist/pkt-textarea.js +1 -1
  238. package/dist/pkt-textinput.cjs +1 -1
  239. package/dist/pkt-textinput.js +1 -1
  240. package/dist/pkt-timepicker.cjs +1 -1
  241. package/dist/pkt-timepicker.js +1 -1
  242. package/dist/{progressbar-mtjtbpCO.js → progressbar-CbcfLerF.js} +6 -6
  243. package/dist/progressbar-D5MmnQId.cjs +17 -0
  244. package/dist/{radiobutton-C6htwDrT.js → radiobutton-BUnf3EPi.js} +8 -8
  245. package/dist/{radiobutton-DjWBoSHv.cjs → radiobutton-DpsO1F-8.cjs} +4 -4
  246. package/dist/ref-CQoEIIp0.cjs +1 -0
  247. package/dist/{ref-WGS0u7i2.js → ref-CWD6PjVd.js} +9 -7
  248. package/dist/{repeat-BH0cL82q.js → repeat-C02g7d5S.js} +13 -12
  249. package/dist/{repeat-DRnLAg0O.cjs → repeat-sY6B7fAT.cjs} +1 -1
  250. package/dist/{searchinput-DGjeN1YI.cjs → searchinput-Bh975rjX.cjs} +1 -1
  251. package/dist/{searchinput-CfUVfpqL.js → searchinput-DwnjsvJ1.js} +4 -4
  252. package/dist/select-BOJi6H6T.cjs +49 -0
  253. package/dist/{select-CsBXXbLP.js → select-DMre80qs.js} +24 -20
  254. package/dist/shared-types/booleanish.d.ts +11 -0
  255. package/dist/shared-types/index.d.ts +1 -1
  256. package/dist/shared-utils/date-utils.d.ts +16 -16
  257. package/dist/shared-utils/datepicker-utils.d.ts +11 -11
  258. package/dist/shared-utils/device-utils.d.ts +1 -1
  259. package/dist/shared-utils/forms/described-by.d.ts +24 -0
  260. package/dist/shared-utils/utils.d.ts +2 -2
  261. package/dist/shared-utils/value-utils.d.ts +2 -2
  262. package/dist/{tabs-q62MK_-r.cjs → tabs-Cf9ai0FD.cjs} +2 -2
  263. package/dist/{tabs-BqrKLCjd.js → tabs-TvxgbrCF.js} +7 -7
  264. package/dist/{tag-XE-VRxT2.cjs → tag-CzojNU7z.cjs} +1 -1
  265. package/dist/{tag-BTiTXyf5.js → tag-Ds6n1LIs.js} +5 -5
  266. package/dist/textarea-BydiLM9Z.cjs +49 -0
  267. package/dist/{textarea-Cm392CEI.js → textarea-vfzIcXhX.js} +36 -29
  268. package/dist/{textinput-TSPcBcih.js → textinput-CMP2jPP_.js} +30 -25
  269. package/dist/{textinput-DqJbTglM.cjs → textinput-DGdicNSx.cjs} +10 -10
  270. package/dist/{timepicker-DWbgTDKq.js → timepicker-ClwgYywH.js} +19 -14
  271. package/dist/{timepicker-CqFYMV8q.cjs → timepicker-DYrnLHqN.cjs} +5 -2
  272. package/dist/translations/no.json.d.ts +2 -1
  273. package/package.json +7 -4
  274. package/src/components/combobox/combobox.core.test.ts +2 -2
  275. package/src/components/combobox/combobox.ts +7 -1
  276. package/src/components/datepicker/datepicker-single.ts +1 -1
  277. package/src/components/datepicker/datepicker.ts +5 -3
  278. package/src/components/fileupload/fileupload.ts +6 -1
  279. package/src/components/helptext/helptext.ts +3 -0
  280. package/src/components/input-wrapper/input-wrapper.test.ts +3 -3
  281. package/src/components/input-wrapper/input-wrapper.ts +31 -29
  282. package/src/components/input-wrapper/tri-state.test.ts +91 -0
  283. package/src/components/input-wrapper/wrapper-parity.test.ts +141 -0
  284. package/src/components/select/select.test.ts +8 -7
  285. package/src/components/select/select.ts +13 -5
  286. package/src/components/textarea/textarea.test.ts +6 -6
  287. package/src/components/textarea/textarea.ts +20 -11
  288. package/src/components/textinput/textinput.test.ts +6 -6
  289. package/src/components/textinput/textinput.ts +17 -11
  290. package/src/components/timepicker/timepicker.ts +12 -5
  291. package/dist/async-directive-HLXOyE4A.cjs +0 -1
  292. package/dist/booleanish-B9Kf0nES.cjs +0 -1
  293. package/dist/combobox-BH9lym0-.cjs +0 -136
  294. package/dist/converters-Cd0fPEly.cjs +0 -1
  295. package/dist/dialog-polyfill.esm-J-GKtwrS.cjs +0 -1
  296. package/dist/element-DJzurxgt.cjs +0 -2
  297. package/dist/fetch-header-footer-data-xohWFmYC.cjs +0 -1
  298. package/dist/if-defined-D0bnetLJ.js +0 -5
  299. package/dist/if-defined-DrwbxQOj.cjs +0 -1
  300. package/dist/input-wrapper-DPkkiG7S.cjs +0 -57
  301. package/dist/input-wrapper-fWV5P4MN.js +0 -126
  302. package/dist/progressbar-BN5y20CC.cjs +0 -17
  303. package/dist/ref-DO7TzO4O.cjs +0 -1
  304. package/dist/select-CZvAW7W2.cjs +0 -50
  305. package/dist/textarea-sTcZxOIB.cjs +0 -47
@@ -1,34 +1,34 @@
1
- import { n as e, o as t, r as n } from "./element-BoJrqauR.js";
2
- import { t as r } from "./element-with-slot-mXLg8gg8.js";
1
+ import { n as e, o as t, r as n } from "./element-ChsFgr_B.js";
2
+ import { t as r } from "./element-with-slot-BvG9ctC-.js";
3
3
  import { n as i } from "./utils-BwF4QSrq.js";
4
- import { t as a } from "./booleanish-MfutDT_4.js";
5
- import { t as o } from "./input-wrapper-BweP6t3O.js";
4
+ import { n as a, t as o } from "./booleanish-OQJTYSrw.js";
5
+ import { t as s } from "./input-wrapper-D-fPaTbY.js";
6
6
  //#region ../../node_modules/element-internals-polyfill/dist/maps.js
7
- var s = /* @__PURE__ */ new WeakMap(), c = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap(), u = /* @__PURE__ */ new WeakMap(), d = /* @__PURE__ */ new WeakMap(), ee = /* @__PURE__ */ new WeakMap(), f = /* @__PURE__ */ new WeakMap(), p = /* @__PURE__ */ new WeakMap(), m = /* @__PURE__ */ new WeakMap(), h = /* @__PURE__ */ new WeakMap(), g = /* @__PURE__ */ new WeakMap(), _ = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), y = /* @__PURE__ */ new WeakMap(), b = /* @__PURE__ */ new WeakMap(), x = (e, t, n) => {
7
+ var c = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap(), u = /* @__PURE__ */ new WeakMap(), d = /* @__PURE__ */ new WeakMap(), f = /* @__PURE__ */ new WeakMap(), ee = /* @__PURE__ */ new WeakMap(), p = /* @__PURE__ */ new WeakMap(), m = /* @__PURE__ */ new WeakMap(), h = /* @__PURE__ */ new WeakMap(), g = /* @__PURE__ */ new WeakMap(), _ = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), y = /* @__PURE__ */ new WeakMap(), b = /* @__PURE__ */ new WeakMap(), x = /* @__PURE__ */ new WeakMap(), S = (e, t, n) => {
8
8
  e.getAttribute(t) !== n && e.setAttribute(t, n);
9
- }, S = (e, t) => {
10
- e.toggleAttribute("internals-disabled", t), t ? x(e, "aria-disabled", "true") : e.removeAttribute("aria-disabled"), e.formDisabledCallback && e.formDisabledCallback.apply(e, [t]);
11
- }, C = (e) => {
12
- l.get(e).forEach((e) => {
9
+ }, C = (e, t) => {
10
+ e.toggleAttribute("internals-disabled", t), t ? S(e, "aria-disabled", "true") : e.removeAttribute("aria-disabled"), e.formDisabledCallback && e.formDisabledCallback.apply(e, [t]);
11
+ }, w = (e) => {
12
+ u.get(e).forEach((e) => {
13
13
  e.remove();
14
- }), l.set(e, []);
15
- }, w = (e, t) => {
16
- let n = document.createElement("input");
17
- return n.type = "hidden", n.name = e.getAttribute("name"), e.after(n), l.get(t).push(n), n;
14
+ }), u.set(e, []);
18
15
  }, T = (e, t) => {
16
+ let n = document.createElement("input");
17
+ return n.type = "hidden", n.name = e.getAttribute("name"), e.after(n), u.get(t).push(n), n;
18
+ }, E = (e, t) => {
19
19
  if (t.length) {
20
20
  let n = Array.from(t);
21
21
  n.forEach((t) => t.addEventListener("click", e.click.bind(e)));
22
22
  let [r] = n, i = r.id;
23
- r.id ||= (i = `${r.htmlFor}_Label`, i), x(e, "aria-labelledby", i);
23
+ r.id ||= (i = `${r.htmlFor}_Label`, i), S(e, "aria-labelledby", i);
24
24
  }
25
- }, E = (e) => {
26
- let t = Array.from(e.elements).filter((e) => !e.tagName.includes("-") && e.validity).map((e) => e.validity.valid), n = p.get(e) || [], r = Array.from(n).filter((e) => e.isConnected).map((e) => u.get(e).validity.valid), i = [...t, ...r].includes(!1);
25
+ }, D = (e) => {
26
+ let t = Array.from(e.elements).filter((e) => !e.tagName.includes("-") && e.validity).map((e) => e.validity.valid), n = m.get(e) || [], r = Array.from(n).filter((e) => e.isConnected).map((e) => d.get(e).validity.valid), i = [...t, ...r].includes(!1);
27
27
  e.toggleAttribute("internals-invalid", i), e.toggleAttribute("internals-valid", !i);
28
28
  }, te = (e) => {
29
- E(O(e.target));
29
+ D(k(e.target));
30
30
  }, ne = (e) => {
31
- E(O(e.target));
31
+ D(k(e.target));
32
32
  }, re = (e) => {
33
33
  let t = [
34
34
  "button[type=submit]",
@@ -37,57 +37,57 @@ var s = /* @__PURE__ */ new WeakMap(), c = /* @__PURE__ */ new WeakMap(), l = /*
37
37
  ].map((e) => `${e}:not([disabled])`).map((t) => `${t}:not([form])${e.id ? `,${t}[form='${e.id}']` : ""}`).join(",");
38
38
  e.addEventListener("click", (n) => {
39
39
  if (n.target.closest(t)) {
40
- let t = p.get(e);
40
+ let t = m.get(e);
41
41
  if (e.noValidate) return;
42
- t.size && Array.from(t).reverse().map((e) => u.get(e).reportValidity()).includes(!1) && n.preventDefault();
42
+ t.size && Array.from(t).reverse().map((e) => d.get(e).reportValidity()).includes(!1) && n.preventDefault();
43
43
  }
44
44
  });
45
45
  }, ie = (e) => {
46
- let t = p.get(e.target);
46
+ let t = m.get(e.target);
47
47
  t && t.size && t.forEach((e) => {
48
48
  e.constructor.formAssociated && e.formResetCallback && e.formResetCallback.apply(e);
49
49
  });
50
- }, D = (e, t, n) => {
50
+ }, O = (e, t, n) => {
51
51
  if (t) {
52
- let r = p.get(t);
52
+ let r = m.get(t);
53
53
  if (r) r.add(e);
54
54
  else {
55
55
  let n = /* @__PURE__ */ new Set();
56
- n.add(e), p.set(t, n), re(t), t.addEventListener("reset", ie), t.addEventListener("input", te), t.addEventListener("change", ne);
56
+ n.add(e), m.set(t, n), re(t), t.addEventListener("reset", ie), t.addEventListener("input", te), t.addEventListener("change", ne);
57
57
  }
58
58
  ee.set(t, {
59
59
  ref: e,
60
60
  internals: n
61
61
  }), e.constructor.formAssociated && e.formAssociatedCallback && setTimeout(() => {
62
62
  e.formAssociatedCallback.apply(e, [t]);
63
- }, 0), E(t);
63
+ }, 0), D(t);
64
64
  }
65
- }, O = (e) => {
65
+ }, k = (e) => {
66
66
  let t = e.parentNode;
67
- return t && t.tagName !== "FORM" && (t = O(t)), t;
68
- }, k = (e, t, n = DOMException) => {
67
+ return t && t.tagName !== "FORM" && (t = k(t)), t;
68
+ }, A = (e, t, n = DOMException) => {
69
69
  if (!e.constructor.formAssociated) throw new n(t);
70
- }, A = (e, t, n) => {
71
- let r = p.get(e);
70
+ }, j = (e, t, n) => {
71
+ let r = m.get(e);
72
72
  return r && r.size && r.forEach((e) => {
73
- u.get(e)[n]() || (t = !1);
73
+ d.get(e)[n]() || (t = !1);
74
74
  }), t;
75
- }, j = (e) => {
75
+ }, M = (e) => {
76
76
  let t = !1;
77
77
  if (e.constructor.formAssociated) {
78
- let n = u.get(e);
79
- n === void 0 && (e.attachInternals(), n = u.get(e), t = !0);
78
+ let n = d.get(e);
79
+ n === void 0 && (e.attachInternals(), n = d.get(e), t = !0);
80
80
  let { labels: r, form: i } = n;
81
- T(e, r), D(e, i, n);
81
+ E(e, r), O(e, i, n);
82
82
  }
83
83
  return t;
84
84
  };
85
- function M() {
85
+ function N() {
86
86
  return typeof MutationObserver < "u";
87
87
  }
88
88
  //#endregion
89
89
  //#region ../../node_modules/element-internals-polyfill/dist/aom.js
90
- var N = {
90
+ var P = {
91
91
  ariaAtomic: "aria-atomic",
92
92
  ariaAutoComplete: "aria-autocomplete",
93
93
  ariaBrailleLabel: "aria-braillelabel",
@@ -133,66 +133,66 @@ var N = {
133
133
  ariaValueText: "aria-valuetext",
134
134
  role: "role"
135
135
  }, ae = (e, t) => {
136
- for (let n in N) {
136
+ for (let n in P) {
137
137
  t[n] = null;
138
- let r = null, i = N[n];
138
+ let r = null, i = P[n];
139
139
  Object.defineProperty(t, n, {
140
140
  get() {
141
141
  return r;
142
142
  },
143
143
  set(n) {
144
- r = n, e.isConnected ? x(e, i, n) : h.set(e, t);
144
+ r = n, e.isConnected ? S(e, i, n) : g.set(e, t);
145
145
  }
146
146
  });
147
147
  }
148
148
  }, oe = (e, t) => {
149
- l.set(t, []), L.observe?.(e, I);
149
+ u.set(t, []), R.observe?.(e, L);
150
150
  };
151
- function P(e) {
152
- let t = u.get(e), { form: n } = t;
153
- D(e, n, t), T(e, t.labels);
151
+ function F(e) {
152
+ let t = d.get(e), { form: n } = t;
153
+ O(e, n, t), E(e, t.labels);
154
154
  }
155
- var F = (e, t = !1) => {
155
+ var I = (e, t = !1) => {
156
156
  let n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
157
- return u.has(e) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
157
+ return d.has(e) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
158
158
  } }), r = n.nextNode(), i = !t || e.disabled;
159
- for (; r;) r.formDisabledCallback && i && S(r, e.disabled), r = n.nextNode();
160
- }, I = {
159
+ for (; r;) r.formDisabledCallback && i && C(r, e.disabled), r = n.nextNode();
160
+ }, L = {
161
161
  attributes: !0,
162
162
  attributeFilter: ["disabled", "name"]
163
- }, L = M() ? new MutationObserver((e) => {
163
+ }, R = N() ? new MutationObserver((e) => {
164
164
  for (let t of e) {
165
165
  let e = t.target;
166
- if (t.attributeName === "disabled" && (e.constructor.formAssociated ? S(e, e.hasAttribute("disabled")) : e.localName === "fieldset" && F(e)), t.attributeName === "name" && e.constructor.formAssociated) {
167
- let t = u.get(e), n = m.get(e);
166
+ if (t.attributeName === "disabled" && (e.constructor.formAssociated ? C(e, e.hasAttribute("disabled")) : e.localName === "fieldset" && I(e)), t.attributeName === "name" && e.constructor.formAssociated) {
167
+ let t = d.get(e), n = h.get(e);
168
168
  t.setFormValue(n);
169
169
  }
170
170
  }
171
171
  }) : {};
172
- function R(e) {
172
+ function z(e) {
173
173
  e.forEach((e) => {
174
174
  let { addedNodes: t, removedNodes: n } = e, r = Array.from(t), i = Array.from(n);
175
175
  r.forEach((e) => {
176
- if (u.has(e) && e.constructor.formAssociated && P(e), h.has(e)) {
177
- let t = h.get(e);
178
- Object.keys(N).filter((e) => t[e] !== null).forEach((n) => {
179
- x(e, N[n], t[n]);
180
- }), h.delete(e);
176
+ if (d.has(e) && e.constructor.formAssociated && F(e), g.has(e)) {
177
+ let t = g.get(e);
178
+ Object.keys(P).filter((e) => t[e] !== null).forEach((n) => {
179
+ S(e, P[n], t[n]);
180
+ }), g.delete(e);
181
181
  }
182
- if (b.has(e)) {
183
- let t = b.get(e);
184
- x(e, "internals-valid", t.validity.valid.toString()), x(e, "internals-invalid", (!t.validity.valid).toString()), x(e, "aria-invalid", (!t.validity.valid).toString()), b.delete(e);
182
+ if (x.has(e)) {
183
+ let t = x.get(e);
184
+ S(e, "internals-valid", t.validity.valid.toString()), S(e, "internals-invalid", (!t.validity.valid).toString()), S(e, "aria-invalid", (!t.validity.valid).toString()), x.delete(e);
185
185
  }
186
186
  if (e.localName === "form") {
187
- let t = p.get(e), n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
188
- return u.has(e) && e.constructor.formAssociated && !(t && t.has(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
187
+ let t = m.get(e), n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
188
+ return d.has(e) && e.constructor.formAssociated && !(t && t.has(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
189
189
  } }), r = n.nextNode();
190
- for (; r;) P(r), r = n.nextNode();
190
+ for (; r;) F(r), r = n.nextNode();
191
191
  }
192
- e.localName === "fieldset" && (L.observe?.(e, I), F(e, !0));
192
+ e.localName === "fieldset" && (R.observe?.(e, L), I(e, !0));
193
193
  }), i.forEach((e) => {
194
- let t = u.get(e);
195
- t && l.get(t) && C(t), f.has(e) && f.get(e).disconnect();
194
+ let t = d.get(e);
195
+ t && u.get(t) && w(t), p.has(e) && p.get(e).disconnect();
196
196
  });
197
197
  });
198
198
  }
@@ -200,24 +200,24 @@ function se(e) {
200
200
  e.forEach((e) => {
201
201
  let { removedNodes: t } = e;
202
202
  t.forEach((t) => {
203
- let n = v.get(e.target);
204
- u.has(t) && j(t), n.disconnect();
203
+ let n = y.get(e.target);
204
+ d.has(t) && M(t), n.disconnect();
205
205
  });
206
206
  });
207
207
  }
208
208
  var ce = (e) => {
209
209
  let t = new MutationObserver(se);
210
- window?.ShadyDOM?.inUse && e.mode && e.host && (e = e.host), t.observe?.(e, { childList: !0 }), v.set(e, t);
210
+ window?.ShadyDOM?.inUse && e.mode && e.host && (e = e.host), t.observe?.(e, { childList: !0 }), y.set(e, t);
211
211
  };
212
- M() && new MutationObserver(R);
213
- var z = {
212
+ N() && new MutationObserver(z);
213
+ var B = {
214
214
  childList: !0,
215
215
  subtree: !0
216
216
  }, le = class {
217
217
  constructor() {
218
218
  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);
219
219
  }
220
- }, ue = (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), B = (e, t, n) => (e.valid = de(t), Object.keys(t).forEach((n) => e[n] = t[n]), n && E(n), e), de = (e) => {
220
+ }, ue = (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), de = (e, t, n) => (e.valid = fe(t), Object.keys(t).forEach((n) => e[n] = t[n]), n && D(n), e), fe = (e) => {
221
221
  let t = !0;
222
222
  for (let n in e) n !== "valid" && e[n] !== !1 && (t = !1);
223
223
  return t;
@@ -250,7 +250,7 @@ var U = class extends Set {
250
250
  n.toggleAttribute(`state${e}`, !1), n.part && n.part.remove(`state${e}`);
251
251
  }), t;
252
252
  }
253
- }, fe = function(e, t, n, r, i) {
253
+ }, pe = function(e, t, n, r, i) {
254
254
  if (r === "m") throw TypeError("Private method is not writable");
255
255
  if (r === "a" && !i) throw TypeError("Private accessor was defined without a setter");
256
256
  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,9 +259,9 @@ var U = class extends Set {
259
259
  if (n === "a" && !r) throw TypeError("Private accessor was defined without a getter");
260
260
  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");
261
261
  return n === "m" ? r : n === "a" ? r.call(e) : r ? r.value : t.get(e);
262
- }, G, pe = class {
262
+ }, G, me = class {
263
263
  constructor(e) {
264
- G.set(this, void 0), fe(this, G, e, "f");
264
+ G.set(this, void 0), pe(this, G, e, "f");
265
265
  for (let t = 0; t < e.length; t++) {
266
266
  let n = e[t];
267
267
  this[t] = n, n.hasAttribute("name") && (this[n.getAttribute("name")] = n);
@@ -283,23 +283,23 @@ var U = class extends Set {
283
283
  };
284
284
  //#endregion
285
285
  //#region ../../node_modules/element-internals-polyfill/dist/patch-form-prototype.js
286
- function me() {
286
+ function he() {
287
287
  let e = HTMLFormElement.prototype.checkValidity;
288
288
  HTMLFormElement.prototype.checkValidity = n;
289
289
  let t = HTMLFormElement.prototype.reportValidity;
290
290
  HTMLFormElement.prototype.reportValidity = r;
291
291
  function n(...t) {
292
292
  let n = e.apply(this, t);
293
- return A(this, n, "checkValidity");
293
+ return j(this, n, "checkValidity");
294
294
  }
295
295
  function r(...e) {
296
296
  let n = t.apply(this, e);
297
- return A(this, n, "reportValidity");
297
+ return j(this, n, "reportValidity");
298
298
  }
299
299
  let { get: i } = Object.getOwnPropertyDescriptor(HTMLFormElement.prototype, "elements");
300
300
  Object.defineProperty(HTMLFormElement.prototype, "elements", { get(...e) {
301
- let t = i.call(this, ...e), n = Array.from(p.get(this) || []);
302
- return n.length === 0 ? t : new pe(Array.from(t).concat(n).sort((e, t) => e.compareDocumentPosition ? e.compareDocumentPosition(t) & 2 ? 1 : -1 : 0));
301
+ let t = i.call(this, ...e), n = Array.from(m.get(this) || []);
302
+ return n.length === 0 ? t : new me(Array.from(t).concat(n).sort((e, t) => e.compareDocumentPosition ? e.compareDocumentPosition(t) & 2 ? 1 : -1 : 0));
303
303
  } });
304
304
  }
305
305
  //#endregion
@@ -311,12 +311,12 @@ var K = class {
311
311
  constructor(e) {
312
312
  if (!e || !e.tagName || e.tagName.indexOf("-") === -1) throw TypeError("Illegal constructor");
313
313
  let t = e.getRootNode(), n = new le();
314
- this.states = new U(e), s.set(this, e), c.set(this, n), u.set(e, this), ae(e, this), oe(e, this), Object.seal(this), t instanceof DocumentFragment && ce(t);
314
+ this.states = new U(e), c.set(this, e), l.set(this, n), d.set(e, this), ae(e, this), oe(e, this), Object.seal(this), t instanceof DocumentFragment && ce(t);
315
315
  }
316
316
  checkValidity() {
317
- let e = s.get(this);
318
- if (k(e, "Failed to execute 'checkValidity' on 'ElementInternals': The target element is not a form-associated custom element."), !this.willValidate) return !0;
319
- let t = c.get(this);
317
+ let e = c.get(this);
318
+ if (A(e, "Failed to execute 'checkValidity' on 'ElementInternals': The target element is not a form-associated custom element."), !this.willValidate) return !0;
319
+ let t = l.get(this);
320
320
  if (!t.valid) {
321
321
  let t = new Event("invalid", {
322
322
  bubbles: !1,
@@ -328,44 +328,44 @@ var K = class {
328
328
  return t.valid;
329
329
  }
330
330
  get form() {
331
- let e = s.get(this);
332
- k(e, "Failed to read the 'form' property from 'ElementInternals': The target element is not a form-associated custom element.");
331
+ let e = c.get(this);
332
+ A(e, "Failed to read the 'form' property from 'ElementInternals': The target element is not a form-associated custom element.");
333
333
  let t;
334
- return e.constructor.formAssociated === !0 && (t = O(e)), t;
334
+ return e.constructor.formAssociated === !0 && (t = k(e)), t;
335
335
  }
336
336
  get labels() {
337
- let e = s.get(this);
338
- k(e, "Failed to read the 'labels' property from 'ElementInternals': The target element is not a form-associated custom element.");
337
+ let e = c.get(this);
338
+ A(e, "Failed to read the 'labels' property from 'ElementInternals': The target element is not a form-associated custom element.");
339
339
  let t = e.getAttribute("id"), n = e.getRootNode();
340
340
  return n && t ? n.querySelectorAll(`[for="${t}"]`) : [];
341
341
  }
342
342
  reportValidity() {
343
- let e = s.get(this);
344
- if (k(e, "Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element."), !this.willValidate) return !0;
345
- let t = this.checkValidity(), n = _.get(this);
343
+ let e = c.get(this);
344
+ if (A(e, "Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element."), !this.willValidate) return !0;
345
+ let t = this.checkValidity(), n = v.get(this);
346
346
  if (n && !e.constructor.formAssociated) throw new DOMException("Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element.");
347
347
  return !t && n && (e.focus(), n.focus()), t;
348
348
  }
349
349
  setFormValue(e) {
350
- let t = s.get(this);
351
- if (k(t, "Failed to execute 'setFormValue' on 'ElementInternals': The target element is not a form-associated custom element."), C(this), e != null && !(e instanceof FormData)) {
350
+ let t = c.get(this);
351
+ if (A(t, "Failed to execute 'setFormValue' on 'ElementInternals': The target element is not a form-associated custom element."), w(this), e != null && !(e instanceof FormData)) {
352
352
  if (t.getAttribute("name")) {
353
- let n = w(t, this);
353
+ let n = T(t, this);
354
354
  n.value = e;
355
355
  }
356
356
  } else e != null && e instanceof FormData && Array.from(e).reverse().forEach(([e, n]) => {
357
357
  if (typeof n == "string") {
358
- let r = w(t, this);
358
+ let r = T(t, this);
359
359
  r.name = e, r.value = n;
360
360
  }
361
361
  });
362
- m.set(t, e);
362
+ h.set(t, e);
363
363
  }
364
364
  setValidity(e, t, n) {
365
- let r = s.get(this);
366
- if (k(r, "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.");
367
- _.set(this, n);
368
- let i = c.get(this), a = {};
365
+ let r = c.get(this);
366
+ if (A(r, "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.");
367
+ v.set(this, n);
368
+ let i = l.get(this), a = {};
369
369
  for (let t in e) a[t] = e[t];
370
370
  Object.keys(a).length === 0 && ue(i);
371
371
  let o = {
@@ -373,26 +373,26 @@ var K = class {
373
373
  ...a
374
374
  };
375
375
  delete o.valid;
376
- let { valid: l } = B(i, o, this.form);
377
- if (!l && !t) 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.");
378
- d.set(this, l ? "" : t), r.isConnected ? (r.toggleAttribute("internals-invalid", !l), r.toggleAttribute("internals-valid", l), x(r, "aria-invalid", `${!l}`)) : b.set(r, this);
376
+ let { valid: s } = de(i, o, this.form);
377
+ if (!s && !t) 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.");
378
+ f.set(this, s ? "" : t), r.isConnected ? (r.toggleAttribute("internals-invalid", !s), r.toggleAttribute("internals-valid", s), S(r, "aria-invalid", `${!s}`)) : x.set(r, this);
379
379
  }
380
380
  get shadowRoot() {
381
- let e = s.get(this);
382
- return g.get(e) || null;
381
+ let e = c.get(this);
382
+ return _.get(e) || null;
383
383
  }
384
384
  get validationMessage() {
385
- return k(s.get(this), "Failed to read the 'validationMessage' property from 'ElementInternals': The target element is not a form-associated custom element."), d.get(this);
385
+ return A(c.get(this), "Failed to read the 'validationMessage' property from 'ElementInternals': The target element is not a form-associated custom element."), f.get(this);
386
386
  }
387
387
  get validity() {
388
- return k(s.get(this), "Failed to read the 'validity' property from 'ElementInternals': The target element is not a form-associated custom element."), c.get(this);
388
+ return A(c.get(this), "Failed to read the 'validity' property from 'ElementInternals': The target element is not a form-associated custom element."), l.get(this);
389
389
  }
390
390
  get willValidate() {
391
- let e = s.get(this);
392
- return k(e, "Failed to read the 'willValidate' property from 'ElementInternals': The target element is not a form-associated custom element."), !(e.matches(":disabled") || e.disabled || e.hasAttribute("disabled") || e.hasAttribute("readonly"));
391
+ let e = c.get(this);
392
+ return A(e, "Failed to read the 'willValidate' property from 'ElementInternals': The target element is not a form-associated custom element."), !(e.matches(":disabled") || e.disabled || e.hasAttribute("disabled") || e.hasAttribute("readonly"));
393
393
  }
394
394
  };
395
- function he() {
395
+ function ge() {
396
396
  if (typeof window > "u" || !window.ElementInternals || !HTMLElement.prototype.attachInternals) return !1;
397
397
  class e extends HTMLElement {
398
398
  constructor() {
@@ -422,7 +422,7 @@ function Y(e) {
422
422
  return n.states = new U(this), n;
423
423
  }));
424
424
  }
425
- function ge(e = !0) {
425
+ function _e(e = !0) {
426
426
  let t = !1;
427
427
  if (!q) {
428
428
  if (q = !0, typeof window < "u" && (window.ElementInternals = K), typeof CustomElementRegistry < "u") {
@@ -431,7 +431,7 @@ function ge(e = !0) {
431
431
  if (r.formAssociated) {
432
432
  let e = r.prototype.connectedCallback;
433
433
  r.prototype.connectedCallback = function() {
434
- y.has(this) || (y.set(this, !0), this.hasAttribute("disabled") && S(this, !0)), e?.apply(this), t = j(this);
434
+ b.has(this) || (b.set(this, !0), this.hasAttribute("disabled") && C(this, !0)), e?.apply(this), t = M(this);
435
435
  };
436
436
  }
437
437
  e.call(this, n, r, i);
@@ -440,34 +440,46 @@ function ge(e = !0) {
440
440
  if (typeof HTMLElement < "u" && (HTMLElement.prototype.attachInternals = function() {
441
441
  if (!this.tagName) return {};
442
442
  if (this.tagName.indexOf("-") === -1) throw Error("Failed to execute 'attachInternals' on 'HTMLElement': Unable to attach ElementInternals to non-custom elements.");
443
- if (u.has(this) && !t) throw new DOMException("DOMException: Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");
443
+ if (d.has(this) && !t) throw new DOMException("DOMException: Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");
444
444
  return new K(this);
445
445
  }), typeof Element < "u") {
446
446
  function e(...e) {
447
447
  let n = t.apply(this, e);
448
- if (g.set(this, n), M()) {
449
- let e = new MutationObserver(R);
450
- window.ShadyDOM ? e.observe(this, z) : e.observe(n, z), f.set(this, e);
448
+ if (_.set(this, n), N()) {
449
+ let e = new MutationObserver(z);
450
+ window.ShadyDOM ? e.observe(this, B) : e.observe(n, B), p.set(this, e);
451
451
  }
452
452
  return n;
453
453
  }
454
454
  let t = Element.prototype.attachShadow;
455
455
  Element.prototype.attachShadow = e;
456
456
  }
457
- M() && typeof document < "u" && new MutationObserver(R).observe(document.documentElement, z), typeof HTMLFormElement < "u" && me(), (e || typeof window < "u" && !window.CustomStateSet) && Y();
457
+ N() && typeof document < "u" && new MutationObserver(z).observe(document.documentElement, B), typeof HTMLFormElement < "u" && he(), (e || typeof window < "u" && !window.CustomStateSet) && Y();
458
458
  }
459
459
  }
460
460
  //#endregion
461
461
  //#region ../../node_modules/element-internals-polyfill/dist/index.js
462
- customElements.polyfillWrapFlushCallback || (he() ? typeof window < "u" && !window.CustomStateSet && Y(HTMLElement.prototype.attachInternals) : ge(!1));
462
+ customElements.polyfillWrapFlushCallback || (ge() ? typeof window < "u" && !window.CustomStateSet && Y(HTMLElement.prototype.attachInternals) : _e(!1));
463
463
  //#endregion
464
464
  //#region src/base-elements/input-element.ts
465
465
  var X = "on", Z = "--checked", Q = ",", $ = class extends r {
466
466
  static get formAssociated() {
467
467
  return !0;
468
468
  }
469
+ get ariaDescribedBy() {
470
+ return this.ariaDescribedby;
471
+ }
472
+ set ariaDescribedBy(e) {
473
+ this.ariaDescribedby = e;
474
+ }
475
+ effectiveCounter(e) {
476
+ return this.counter ?? e;
477
+ }
478
+ effectiveHasFieldset(e) {
479
+ return this.hasFieldset ?? e;
480
+ }
469
481
  constructor() {
470
- 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 = n.forms.labels.optional, this.requiredText = n.forms.labels.required, this.tagText = null, this.inputSize = "medium", this.dataTestid = "", this.touched = !1, this._initialized = !1, this.internals = this.attachInternals();
482
+ 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 = null, this.hasError = !1, this.inline = !1, this.hasFieldset = null, 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 = s.props.helptextDropdownButton.default, this.label = null, this.optionalText = n.forms.labels.optional, this.requiredText = n.forms.labels.required, this.tagText = null, this.inputSize = "medium", this.dataTestid = "", this.touched = !1, this._initialized = !1, this.internals = this.attachInternals();
471
483
  }
472
484
  manageValidity(e) {
473
485
  if (!e) {
@@ -477,12 +489,14 @@ var X = "on", Z = "--checked", Q = ",", $ = class extends r {
477
489
  this.required && !this.value ? this.internals.setValidity({ valueMissing: !0 }, n.forms.messages.required, e) : e.validity?.typeMismatch || e.validity?.badInput ? this.internals.setValidity({ typeMismatch: !0 }, n.forms.messages.invalid, e) : e.validity?.patternMismatch ? this.internals.setValidity({ patternMismatch: !0 }, n.forms.messages.invalidPattern, e) : e.validity?.tooShort || this.minlength && this.minlength > 0 && this.value.length < this.minlength ? this.internals.setValidity({ tooShort: !0 }, n.forms.messages.tooShort, e) : e.validity?.tooLong || this.maxlength && this.maxlength > 0 && this.value.length > this.maxlength ? this.internals.setValidity({ tooLong: !0 }, n.forms.messages.tooLong, e) : e.validity?.rangeUnderflow ? this.internals.setValidity({ rangeUnderflow: !0 }, this.min ? n.forms.messages.rangeUnderflowMin.replace("{min}", this.min?.toString()) : n.forms.messages.rangeUnderflow, e) : e.validity?.stepMismatch ? this.internals.setValidity({ stepMismatch: !0 }, n.forms.messages.invalid, e) : e.validity?.rangeOverflow ? this.internals.setValidity({ rangeOverflow: !0 }, this.max ? n.forms.messages.rangeOverflowMax.replace("{max}", this.max?.toString()) : n.forms.messages.rangeOverflow, e) : e.validity?.customError ? this.internals.setValidity({ customError: !0 }, e.validationMessage, e) : this.internals.setValidity({});
478
490
  }
479
491
  setFormValue(e) {
480
- if (this.internals) if (Array.isArray(e)) {
481
- let t = new FormData();
482
- e.forEach((e) => {
483
- t.append(this.name, e);
484
- }), this.internals.setFormValue(t);
485
- } else this.internals.setFormValue(e);
492
+ if (this.internals) {
493
+ if (Array.isArray(e)) {
494
+ let t = new FormData();
495
+ e.forEach((e) => {
496
+ t.append(this.name, e);
497
+ }), this.internals.setFormValue(t);
498
+ } else this.internals.setFormValue(e);
499
+ }
486
500
  }
487
501
  coordinateRadioGroup() {
488
502
  if (!this.form || !this.name || this.type !== "radio") return;
@@ -621,7 +635,13 @@ e([t({
621
635
  })], $.prototype, "minlength", void 0), e([t({
622
636
  type: Number,
623
637
  reflect: !0
624
- })], $.prototype, "step", void 0), e([t({ type: String })], $.prototype, "ariaDescribedBy", void 0), e([t({ type: String })], $.prototype, "ariaLabelledby", void 0), e([t({
638
+ })], $.prototype, "step", void 0), e([t({
639
+ type: String,
640
+ attribute: "aria-describedby"
641
+ })], $.prototype, "ariaDescribedby", void 0), e([t({
642
+ type: String,
643
+ attribute: "aria-labelledby"
644
+ })], $.prototype, "ariaLabelledby", void 0), e([t({
625
645
  type: String,
626
646
  reflect: !0
627
647
  })], $.prototype, "name", void 0), e([t({
@@ -633,10 +653,16 @@ e([t({
633
653
  })], $.prototype, "placeholder", void 0), e([t({
634
654
  type: String,
635
655
  reflect: !0
636
- })], $.prototype, "id", void 0), e([t({ type: Boolean })], $.prototype, "counter", void 0), e([t({ type: Boolean })], $.prototype, "hasError", void 0), e([t({ type: Boolean })], $.prototype, "inline", void 0), e([t({ type: Boolean })], $.prototype, "hasFieldset", void 0), e([t({ type: Boolean })], $.prototype, "optionalTag", void 0), e([t({ type: Boolean })], $.prototype, "requiredTag", void 0), e([t({ type: Boolean })], $.prototype, "skipForwardTestid", void 0), e([t({
656
+ })], $.prototype, "id", void 0), e([t({
637
657
  type: Boolean,
638
- reflect: !0,
639
658
  converter: a
659
+ })], $.prototype, "counter", void 0), e([t({ type: Boolean })], $.prototype, "hasError", void 0), e([t({ type: Boolean })], $.prototype, "inline", void 0), e([t({
660
+ type: Boolean,
661
+ converter: a
662
+ })], $.prototype, "hasFieldset", void 0), e([t({ type: Boolean })], $.prototype, "optionalTag", void 0), e([t({ type: Boolean })], $.prototype, "requiredTag", void 0), e([t({ type: Boolean })], $.prototype, "skipForwardTestid", void 0), e([t({
663
+ type: Boolean,
664
+ reflect: !0,
665
+ converter: o
640
666
  })], $.prototype, "useWrapper", void 0), e([t({
641
667
  type: Boolean,
642
668
  reflect: !0