@public-ui/components 4.3.1-rc.5 → 4.4.0

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 (1088) hide show
  1. package/assets/kolicons/kolicons.eot +0 -0
  2. package/assets/kolicons/kolicons.ttf +0 -0
  3. package/assets/kolicons/kolicons.woff +0 -0
  4. package/assets/kolicons/kolicons.woff2 +0 -0
  5. package/assets/kolicons/style.css +6 -6
  6. package/custom-elements.json +1 -1
  7. package/dist/cjs/{Alert-CBBoQG0W.js → Alert-DdWMVSCG.js} +6 -6
  8. package/dist/cjs/{Alert-CBBoQG0W.js.map → Alert-DdWMVSCG.js.map} +1 -1
  9. package/dist/cjs/{Collapsible-HEsdhcYI.js → Collapsible-84znchMF.js} +6 -6
  10. package/dist/cjs/{Collapsible-HEsdhcYI.js.map → Collapsible-84znchMF.js.map} +1 -1
  11. package/dist/cjs/{CustomSuggestionsOptionsGroup-D9tsA4TY.js → CustomSuggestionsOptionsGroup-B8r9ESvD.js} +3 -3
  12. package/dist/cjs/{CustomSuggestionsOptionsGroup-D9tsA4TY.js.map → CustomSuggestionsOptionsGroup-B8r9ESvD.js.map} +1 -1
  13. package/dist/cjs/{FieldControlStateWrapper-Brbax1UU.js → FieldControlStateWrapper-DjR-X-sb.js} +8 -8
  14. package/dist/cjs/{FieldControlStateWrapper-Brbax1UU.js.map → FieldControlStateWrapper-DjR-X-sb.js.map} +1 -1
  15. package/dist/cjs/{FormFieldStateWrapper-COpc9awQ.js → FormFieldStateWrapper-wwn4_a3Z.js} +10 -10
  16. package/dist/cjs/{FormFieldStateWrapper-COpc9awQ.js.map → FormFieldStateWrapper-wwn4_a3Z.js.map} +1 -1
  17. package/dist/cjs/{Heading-DFjMnqGb.js → Heading-D85YpBmN.js} +3 -3
  18. package/dist/cjs/{Heading-DFjMnqGb.js.map → Heading-D85YpBmN.js.map} +1 -1
  19. package/dist/cjs/{Input-t7guZRQz.js → Input-HYQUfWIw.js} +5 -5
  20. package/dist/cjs/{Input-t7guZRQz.js.map → Input-HYQUfWIw.js.map} +1 -1
  21. package/dist/cjs/{InputStateWrapper-DSEBw5Ke.js → InputStateWrapper-BjgGRDls.js} +6 -6
  22. package/dist/cjs/{InputStateWrapper-DSEBw5Ke.js.map → InputStateWrapper-BjgGRDls.js.map} +1 -1
  23. package/dist/cjs/{app-globals-9ElPRLxu.js → app-globals-Bz24OCbW.js} +4 -4
  24. package/dist/cjs/{app-globals-9ElPRLxu.js.map → app-globals-Bz24OCbW.js.map} +1 -1
  25. package/dist/cjs/{associated.controller-YkqdW9Jt.js → associated.controller-CK6X4_In.js} +3 -3
  26. package/dist/cjs/{associated.controller-YkqdW9Jt.js.map → associated.controller-CK6X4_In.js.map} +1 -1
  27. package/dist/cjs/{behavior-yXZ28o26.js → behavior-BZvPySnr.js} +5 -5
  28. package/dist/cjs/{behavior-yXZ28o26.js.map → behavior-BZvPySnr.js.map} +1 -1
  29. package/dist/cjs/{bootstrap-oTvWXPJh.js → bootstrap-Ib4QRI0X.js} +3 -3
  30. package/dist/cjs/{bootstrap-oTvWXPJh.js.map → bootstrap-Ib4QRI0X.js.map} +1 -1
  31. package/dist/cjs/{component-DqxSaL1n.js → component-C2hEgIVQ.js} +4 -4
  32. package/dist/cjs/{component-DqxSaL1n.js.map → component-C2hEgIVQ.js.map} +1 -1
  33. package/dist/cjs/{component-DXyO-FpG.js → component-C3z22UYy.js} +3 -3
  34. package/dist/cjs/{component-DXyO-FpG.js.map → component-C3z22UYy.js.map} +1 -1
  35. package/dist/cjs/{component-Cgu2X7aA.js → component-CjPh3Ua8.js} +3 -3
  36. package/dist/cjs/{component-Cgu2X7aA.js.map → component-CjPh3Ua8.js.map} +1 -1
  37. package/dist/cjs/{component-OoIHhg3X.js → component-Co65ejdA.js} +4 -4
  38. package/dist/cjs/{component-OoIHhg3X.js.map → component-Co65ejdA.js.map} +1 -1
  39. package/dist/cjs/{component-CUbCD832.js → component-DdYEdIHN.js} +3 -3
  40. package/dist/cjs/{component-CUbCD832.js.map → component-DdYEdIHN.js.map} +1 -1
  41. package/dist/cjs/{component-DtHo7-Fb.js → component-FiVtH26T.js} +19 -13
  42. package/dist/cjs/component-FiVtH26T.js.map +1 -0
  43. package/dist/cjs/{component-names-5KS_pYRF.js → component-names-BWllpOr_.js} +4 -4
  44. package/dist/cjs/{component-names-5KS_pYRF.js.map → component-names-BWllpOr_.js.map} +1 -1
  45. package/dist/cjs/{controller-CSW4K5wv.js → controller-B-Kp1VQL.js} +3 -3
  46. package/dist/cjs/{controller-CSW4K5wv.js.map → controller-B-Kp1VQL.js.map} +1 -1
  47. package/dist/cjs/{controller-DYzYAuOZ.js → controller-Bm4-wTew.js} +3 -3
  48. package/dist/cjs/{controller-DYzYAuOZ.js.map → controller-Bm4-wTew.js.map} +1 -1
  49. package/dist/cjs/{controller-Dgt9vyUr.js → controller-C74L1qDE.js} +3 -3
  50. package/dist/cjs/{controller-Dgt9vyUr.js.map → controller-C74L1qDE.js.map} +1 -1
  51. package/dist/cjs/{controller-BjC3E8uQ.js → controller-DgmXT5Hi.js} +3 -3
  52. package/dist/cjs/{controller-BjC3E8uQ.js.map → controller-DgmXT5Hi.js.map} +1 -1
  53. package/dist/cjs/{controller-icon-DI8Qrygn.js → controller-icon-BrF-VLHV.js} +7 -7
  54. package/dist/cjs/{controller-icon-DI8Qrygn.js.map → controller-icon-BrF-VLHV.js.map} +1 -1
  55. package/dist/cjs/{dev.utils-DnR8x2uY.js → dev.utils-BNkJdELA.js} +3 -3
  56. package/dist/cjs/{dev.utils-DnR8x2uY.js.map → dev.utils-BNkJdELA.js.map} +1 -1
  57. package/dist/cjs/{devtools-DaeQdhPS.js → devtools-Dr8Ao6Dr.js} +4 -4
  58. package/dist/cjs/{devtools-DaeQdhPS.js.map → devtools-Dr8Ao6Dr.js.map} +1 -1
  59. package/dist/cjs/{href-CXu6zh2m.js → href-oniW8mQ8.js} +3 -3
  60. package/dist/cjs/{href-CXu6zh2m.js.map → href-oniW8mQ8.js.map} +1 -1
  61. package/dist/cjs/{index-C33JNmDM.js → index-DtXSabNQ.js} +3 -3
  62. package/dist/cjs/index-DtXSabNQ.js.map +1 -0
  63. package/dist/cjs/index.cjs.js +2 -2
  64. package/dist/cjs/kol-abbr.cjs.entry.js +2 -2
  65. package/dist/cjs/kol-abbr.entry.cjs.js.map +1 -1
  66. package/dist/cjs/kol-accordion.cjs.entry.js +9 -9
  67. package/dist/cjs/kol-accordion.entry.cjs.js.map +1 -1
  68. package/dist/cjs/kol-alert-wc.cjs.entry.js +8 -8
  69. package/dist/cjs/kol-alert.cjs.entry.js +3 -3
  70. package/dist/cjs/kol-alert.entry.cjs.js.map +1 -1
  71. package/dist/cjs/kol-avatar.cjs.entry.js +7 -6
  72. package/dist/cjs/kol-avatar.entry.cjs.js.map +1 -1
  73. package/dist/cjs/kol-badge.cjs.entry.js +6 -6
  74. package/dist/cjs/kol-badge.entry.cjs.js.map +1 -1
  75. package/dist/cjs/kol-breadcrumb.cjs.entry.js +4 -4
  76. package/dist/cjs/kol-breadcrumb.entry.cjs.js.map +1 -1
  77. package/dist/cjs/kol-button-link.cjs.entry.js +3 -3
  78. package/dist/cjs/kol-button-link.entry.cjs.js.map +1 -1
  79. package/dist/cjs/kol-button-wc.cjs.entry.js +13 -13
  80. package/dist/cjs/kol-button.cjs.entry.js +3 -3
  81. package/dist/cjs/kol-button.entry.cjs.js.map +1 -1
  82. package/dist/cjs/kol-card-wc.cjs.entry.js +12 -12
  83. package/dist/cjs/kol-card.cjs.entry.js +3 -3
  84. package/dist/cjs/kol-card.entry.cjs.js.map +1 -1
  85. package/dist/cjs/kol-click-button.cjs.entry.js +7 -6
  86. package/dist/cjs/kol-click-button.entry.cjs.js.map +1 -1
  87. package/dist/cjs/kol-combobox.cjs.entry.js +20 -20
  88. package/dist/cjs/kol-combobox.entry.cjs.js.map +1 -1
  89. package/dist/cjs/kol-details.cjs.entry.js +9 -9
  90. package/dist/cjs/kol-details.entry.cjs.js.map +1 -1
  91. package/dist/cjs/kol-dialog-wc.cjs.entry.js +6 -6
  92. package/dist/cjs/kol-dialog.cjs.entry.js +3 -3
  93. package/dist/cjs/kol-dialog.entry.cjs.js.map +1 -1
  94. package/dist/cjs/kol-drawer.cjs.entry.js +7 -7
  95. package/dist/cjs/kol-drawer.entry.cjs.js.map +1 -1
  96. package/dist/cjs/kol-form.cjs.entry.js +6 -6
  97. package/dist/cjs/kol-form.entry.cjs.js.map +1 -1
  98. package/dist/cjs/kol-heading.cjs.entry.js +6 -6
  99. package/dist/cjs/kol-heading.entry.cjs.js.map +1 -1
  100. package/dist/cjs/kol-icon.cjs.entry.js +7 -6
  101. package/dist/cjs/kol-icon.entry.cjs.js.map +1 -1
  102. package/dist/cjs/kol-image.cjs.entry.js +5 -5
  103. package/dist/cjs/kol-image.entry.cjs.js.map +1 -1
  104. package/dist/cjs/kol-input-checkbox.cjs.entry.js +20 -20
  105. package/dist/cjs/kol-input-checkbox.entry.cjs.js.map +1 -1
  106. package/dist/cjs/kol-input-color.cjs.entry.js +24 -41
  107. package/dist/cjs/kol-input-color.entry.cjs.js.map +1 -1
  108. package/dist/cjs/kol-input-date.cjs.entry.js +21 -21
  109. package/dist/cjs/kol-input-date.entry.cjs.js.map +1 -1
  110. package/dist/cjs/kol-input-email.cjs.entry.js +23 -23
  111. package/dist/cjs/kol-input-email.entry.cjs.js.map +1 -1
  112. package/dist/cjs/kol-input-file.cjs.entry.js +20 -20
  113. package/dist/cjs/kol-input-file.entry.cjs.js.map +1 -1
  114. package/dist/cjs/kol-input-number.cjs.entry.js +21 -21
  115. package/dist/cjs/kol-input-number.entry.cjs.js.map +1 -1
  116. package/dist/cjs/kol-input-password.cjs.entry.js +22 -22
  117. package/dist/cjs/kol-input-password.entry.cjs.js.map +1 -1
  118. package/dist/cjs/kol-input-radio.cjs.entry.js +21 -21
  119. package/dist/cjs/kol-input-radio.entry.cjs.js.map +1 -1
  120. package/dist/cjs/kol-input-range.cjs.entry.js +21 -21
  121. package/dist/cjs/kol-input-range.entry.cjs.js.map +1 -1
  122. package/dist/cjs/kol-input-text.cjs.entry.js +23 -23
  123. package/dist/cjs/kol-input-text.entry.cjs.js.map +1 -1
  124. package/dist/cjs/kol-kolibri.cjs.entry.js +3 -3
  125. package/dist/cjs/kol-kolibri.entry.cjs.js.map +1 -1
  126. package/dist/cjs/kol-link-button.cjs.entry.js +4 -4
  127. package/dist/cjs/kol-link-button.entry.cjs.js.map +1 -1
  128. package/dist/cjs/kol-link-wc.cjs.entry.js +16 -14
  129. package/dist/cjs/kol-link-wc.entry.cjs.js.map +1 -1
  130. package/dist/cjs/kol-link.cjs.entry.js +17 -15
  131. package/dist/cjs/kol-link.entry.cjs.js.map +1 -1
  132. package/dist/cjs/kol-meter.cjs.entry.js +8 -7
  133. package/dist/cjs/kol-meter.entry.cjs.js.map +1 -1
  134. package/dist/cjs/kol-modal.cjs.entry.js +4 -4
  135. package/dist/cjs/kol-modal.entry.cjs.js.map +1 -1
  136. package/dist/cjs/kol-nav.cjs.entry.js +6 -6
  137. package/dist/cjs/kol-nav.entry.cjs.js.map +1 -1
  138. package/dist/cjs/kol-pagination-wc.cjs.entry.js +3 -3
  139. package/dist/cjs/kol-pagination.cjs.entry.js +4 -4
  140. package/dist/cjs/kol-pagination.entry.cjs.js.map +1 -1
  141. package/dist/cjs/kol-popover-button-wc.cjs.entry.js +5 -5
  142. package/dist/cjs/kol-popover-button.cjs.entry.js +4 -4
  143. package/dist/cjs/kol-popover-button.entry.cjs.js.map +1 -1
  144. package/dist/cjs/kol-progress.cjs.entry.js +8 -7
  145. package/dist/cjs/kol-progress.entry.cjs.js.map +1 -1
  146. package/dist/cjs/kol-quote.cjs.entry.js +9 -8
  147. package/dist/cjs/kol-quote.entry.cjs.js.map +1 -1
  148. package/dist/cjs/kol-select-wc.cjs.entry.js +20 -20
  149. package/dist/cjs/kol-select.cjs.entry.js +4 -4
  150. package/dist/cjs/kol-select.entry.cjs.js.map +1 -1
  151. package/dist/cjs/kol-single-select.cjs.entry.js +24 -24
  152. package/dist/cjs/kol-single-select.entry.cjs.js.map +1 -1
  153. package/dist/cjs/kol-skeleton.cjs.entry.js +5 -5
  154. package/dist/cjs/kol-skip-nav.cjs.entry.js +4 -4
  155. package/dist/cjs/kol-skip-nav.entry.cjs.js.map +1 -1
  156. package/dist/cjs/kol-spin.cjs.entry.js +8 -7
  157. package/dist/cjs/kol-spin.entry.cjs.js.map +1 -1
  158. package/dist/cjs/kol-split-button.cjs.entry.js +5 -5
  159. package/dist/cjs/kol-split-button.entry.cjs.js.map +1 -1
  160. package/dist/cjs/kol-table-settings-wc.cjs.entry.js +9 -6
  161. package/dist/cjs/kol-table-settings-wc.entry.cjs.js.map +1 -1
  162. package/dist/cjs/kol-table-stateful.cjs.entry.js +4 -4
  163. package/dist/cjs/kol-table-stateful.entry.cjs.js.map +1 -1
  164. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js +11 -11
  165. package/dist/cjs/kol-table-stateless.cjs.entry.js +4 -4
  166. package/dist/cjs/kol-table-stateless.entry.cjs.js.map +1 -1
  167. package/dist/cjs/kol-tabs.cjs.entry.js +6 -6
  168. package/dist/cjs/kol-tabs.entry.cjs.js.map +1 -1
  169. package/dist/cjs/kol-textarea.cjs.entry.js +18 -18
  170. package/dist/cjs/kol-textarea.entry.cjs.js.map +1 -1
  171. package/dist/cjs/kol-toast-container.cjs.entry.js +11 -11
  172. package/dist/cjs/kol-toast-container.entry.cjs.js.map +1 -1
  173. package/dist/cjs/kol-toolbar.cjs.entry.js +4 -4
  174. package/dist/cjs/kol-toolbar.entry.cjs.js.map +1 -1
  175. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +10 -9
  176. package/dist/cjs/kol-tooltip-wc.entry.cjs.js.map +1 -1
  177. package/dist/cjs/kol-tree-item-wc.cjs.entry.js +7 -7
  178. package/dist/cjs/kol-tree-item.cjs.entry.js +4 -4
  179. package/dist/cjs/kol-tree-item.entry.cjs.js.map +1 -1
  180. package/dist/cjs/kol-tree-wc.cjs.entry.js +3 -3
  181. package/dist/cjs/kol-tree.cjs.entry.js +4 -4
  182. package/dist/cjs/kol-tree.entry.cjs.js.map +1 -1
  183. package/dist/cjs/kol-version.cjs.entry.js +4 -4
  184. package/dist/cjs/kol-version.entry.cjs.js.map +1 -1
  185. package/dist/cjs/kolibri.cjs.js +2 -2
  186. package/dist/cjs/label-DCxflYaz.js +28 -0
  187. package/dist/cjs/label-DCxflYaz.js.map +1 -0
  188. package/dist/cjs/{label-with-expert-slot-Dz1qyfrA.js → label-with-expert-slot-D16dPeV3.js} +3 -3
  189. package/dist/cjs/{label-with-expert-slot-Dz1qyfrA.js.map → label-with-expert-slot-D16dPeV3.js.map} +1 -1
  190. package/dist/cjs/{level-ChQxENqa.js → level-B2kduuEy.js} +3 -3
  191. package/dist/cjs/{level-ChQxENqa.js.map → level-B2kduuEy.js.map} +1 -1
  192. package/dist/cjs/loader.cjs.js +2 -2
  193. package/dist/cjs/{normalizers-DFaq-Isv.js → normalizers-CxgZAKTH.js} +7 -3
  194. package/dist/{esm/normalizers-DWPxOTIP.js.map → cjs/normalizers-CxgZAKTH.js.map} +1 -1
  195. package/dist/cjs/{src-6sNgi09j.js → src-CRk0JiYA.js} +3 -3
  196. package/dist/cjs/{src-6sNgi09j.js.map → src-CRk0JiYA.js.map} +1 -1
  197. package/dist/cjs/test-component.cjs.entry.js +1 -1
  198. package/dist/cjs/{validation-C3MnsUcv.js → validation-BJc5daNb.js} +3 -3
  199. package/dist/cjs/{validation-C3MnsUcv.js.map → validation-BJc5daNb.js.map} +1 -1
  200. package/dist/cjs/{value-number-clamped-CROL2kPp.js → value-number-clamped-BCYQBuS8.js} +3 -3
  201. package/dist/cjs/{value-number-clamped-CROL2kPp.js.map → value-number-clamped-BCYQBuS8.js.map} +1 -1
  202. package/dist/cjs/{variant-quote-DmZgXNoy.js → variant-quote-Bsb58gYB.js} +3 -3
  203. package/dist/cjs/{variant-quote-DmZgXNoy.js.map → variant-quote-Bsb58gYB.js.map} +1 -1
  204. package/dist/collection/components/_skeleton/web-components/click-button/component.js +1 -1
  205. package/dist/collection/components/_skeleton/web-components/skeleton/component.js +1 -1
  206. package/dist/collection/components/abbr/style.css +43 -3
  207. package/dist/collection/components/accordion/style.css +43 -3
  208. package/dist/collection/components/alert/style.css +43 -3
  209. package/dist/collection/components/avatar/style.css +41 -1
  210. package/dist/collection/components/badge/style.css +43 -3
  211. package/dist/collection/components/breadcrumb/style.css +43 -3
  212. package/dist/collection/components/button/style.css +43 -3
  213. package/dist/collection/components/button-link/style.css +43 -3
  214. package/dist/collection/components/card/component.js +1 -1
  215. package/dist/collection/components/card/style.css +43 -3
  216. package/dist/collection/components/combobox/style.css +44 -4
  217. package/dist/collection/components/details/style.css +43 -3
  218. package/dist/collection/components/dialog/style.css +43 -3
  219. package/dist/collection/components/drawer/style.css +43 -3
  220. package/dist/collection/components/form/style.css +43 -3
  221. package/dist/collection/components/heading/style.css +41 -1
  222. package/dist/collection/components/icon/style.css +2 -2
  223. package/dist/collection/components/image/style.css +41 -1
  224. package/dist/collection/components/input-checkbox/style.css +44 -4
  225. package/dist/collection/components/input-color/shadow.js +5 -22
  226. package/dist/collection/components/input-color/shadow.js.map +1 -1
  227. package/dist/collection/components/input-color/style.css +44 -15
  228. package/dist/collection/components/input-date/shadow.js +1 -1
  229. package/dist/collection/components/input-date/style.css +44 -4
  230. package/dist/collection/components/input-email/shadow.js +1 -1
  231. package/dist/collection/components/input-email/style.css +44 -4
  232. package/dist/collection/components/input-file/shadow.js +1 -1
  233. package/dist/collection/components/input-file/style.css +44 -4
  234. package/dist/collection/components/input-number/shadow.js +1 -1
  235. package/dist/collection/components/input-number/style.css +44 -4
  236. package/dist/collection/components/input-password/shadow.js +1 -1
  237. package/dist/collection/components/input-password/style.css +44 -4
  238. package/dist/collection/components/input-radio/shadow.js +1 -1
  239. package/dist/collection/components/input-radio/style.css +44 -4
  240. package/dist/collection/components/input-range/shadow.js +1 -1
  241. package/dist/collection/components/input-range/style.css +44 -4
  242. package/dist/collection/components/input-text/shadow.js +1 -1
  243. package/dist/collection/components/input-text/style.css +44 -4
  244. package/dist/collection/components/kolibri/shadow.js +1 -1
  245. package/dist/collection/components/kolibri/style.css +41 -1
  246. package/dist/collection/components/link/component.js +3 -1
  247. package/dist/collection/components/link/component.js.map +1 -1
  248. package/dist/collection/components/link/style.css +43 -3
  249. package/dist/collection/components/link/wc.js +3 -1
  250. package/dist/collection/components/link/wc.js.map +1 -1
  251. package/dist/collection/components/link-button/shadow.js +1 -1
  252. package/dist/collection/components/link-button/style.css +43 -3
  253. package/dist/collection/components/meter/component.js +1 -1
  254. package/dist/collection/components/meter/style.css +41 -1
  255. package/dist/collection/components/modal/shadow.js +1 -1
  256. package/dist/collection/components/modal/style.css +43 -3
  257. package/dist/collection/components/nav/shadow.js +2 -2
  258. package/dist/collection/components/nav/style.css +43 -3
  259. package/dist/collection/components/pagination/shadow.js +1 -1
  260. package/dist/collection/components/pagination/style.css +44 -4
  261. package/dist/collection/components/popover-button/component.js +2 -2
  262. package/dist/collection/components/popover-button/shadow.js +1 -1
  263. package/dist/collection/components/popover-button/style.css +43 -3
  264. package/dist/collection/components/progress/component.js +1 -1
  265. package/dist/collection/components/progress/style.css +41 -1
  266. package/dist/collection/components/quote/component.js +1 -1
  267. package/dist/collection/components/quote/style.css +41 -1
  268. package/dist/collection/components/select/component.js +2 -2
  269. package/dist/collection/components/select/shadow.js +1 -1
  270. package/dist/collection/components/select/style.css +44 -4
  271. package/dist/collection/components/single-select/shadow.js +3 -3
  272. package/dist/collection/components/single-select/style.css +44 -4
  273. package/dist/collection/components/skip-nav/shadow.js +1 -1
  274. package/dist/collection/components/skip-nav/style.css +43 -3
  275. package/dist/collection/components/spin/component.js +1 -1
  276. package/dist/collection/components/spin/style.css +41 -1
  277. package/dist/collection/components/split-button/shadow.js +2 -2
  278. package/dist/collection/components/split-button/style.css +43 -3
  279. package/dist/collection/components/table-stateful/shadow.js +1 -1
  280. package/dist/collection/components/table-stateful/style.css +151 -7
  281. package/dist/collection/components/table-stateless/component.js +4 -4
  282. package/dist/collection/components/table-stateless/shadow.js +1 -1
  283. package/dist/collection/components/table-stateless/style.css +150 -6
  284. package/dist/collection/components/table-stateless/table-settings.js +8 -5
  285. package/dist/collection/components/table-stateless/table-settings.js.map +1 -1
  286. package/dist/collection/components/tabs/shadow.js +2 -2
  287. package/dist/collection/components/tabs/style.css +43 -3
  288. package/dist/collection/components/textarea/shadow.js +1 -1
  289. package/dist/collection/components/textarea/style.css +44 -4
  290. package/dist/collection/components/toaster/shadow.js +1 -1
  291. package/dist/collection/components/toaster/style.css +43 -3
  292. package/dist/collection/components/toolbar/shadow.js +1 -1
  293. package/dist/collection/components/toolbar/style.css +43 -3
  294. package/dist/collection/components/tooltip/component.js +1 -1
  295. package/dist/collection/components/tree/component.js +1 -1
  296. package/dist/collection/components/tree/shadow.js +1 -1
  297. package/dist/collection/components/tree/style.css +41 -1
  298. package/dist/collection/components/tree-item/component.js +3 -3
  299. package/dist/collection/components/tree-item/shadow.js +1 -1
  300. package/dist/collection/components/tree-item/style.css +43 -3
  301. package/dist/collection/components/version/shadow.js +1 -1
  302. package/dist/collection/components/version/style.css +41 -1
  303. package/dist/collection/internal/functional-components/link/component.js +1 -1
  304. package/dist/collection/internal/functional-components/link/component.js.map +1 -1
  305. package/dist/collection/internal/props/download.js +1 -1
  306. package/dist/collection/internal/props/download.js.map +1 -1
  307. package/dist/collection/internal/props/helpers/factory.js +5 -1
  308. package/dist/collection/internal/props/helpers/factory.js.map +1 -1
  309. package/dist/collection/internal/props/hints/index.js +5 -0
  310. package/dist/collection/internal/props/hints/index.js.map +1 -0
  311. package/dist/collection/internal/props/hints/label-hints.js +16 -0
  312. package/dist/collection/internal/props/hints/label-hints.js.map +1 -0
  313. package/dist/collection/internal/props/label.js +4 -1
  314. package/dist/collection/internal/props/label.js.map +1 -1
  315. package/dist/collection/internal/props/tab-index.js +8 -1
  316. package/dist/collection/internal/props/tab-index.js.map +1 -1
  317. package/dist/components/component-names.js +1 -1
  318. package/dist/components/component-names.js.map +1 -1
  319. package/dist/components/component5.js +10 -4
  320. package/dist/components/component5.js.map +1 -1
  321. package/dist/components/kol-abbr.js +1 -1
  322. package/dist/components/kol-abbr.js.map +1 -1
  323. package/dist/components/kol-accordion.js +1 -1
  324. package/dist/components/kol-accordion.js.map +1 -1
  325. package/dist/components/kol-alert.js +1 -1
  326. package/dist/components/kol-alert.js.map +1 -1
  327. package/dist/components/kol-avatar.js +1 -1
  328. package/dist/components/kol-avatar.js.map +1 -1
  329. package/dist/components/kol-badge.js +1 -1
  330. package/dist/components/kol-badge.js.map +1 -1
  331. package/dist/components/kol-breadcrumb.js +1 -1
  332. package/dist/components/kol-breadcrumb.js.map +1 -1
  333. package/dist/components/kol-button-link.js +1 -1
  334. package/dist/components/kol-button-link.js.map +1 -1
  335. package/dist/components/kol-button.js +1 -1
  336. package/dist/components/kol-button.js.map +1 -1
  337. package/dist/components/kol-card-wc.js +1 -1
  338. package/dist/components/kol-card.js +1 -1
  339. package/dist/components/kol-card.js.map +1 -1
  340. package/dist/components/kol-click-button.js +1 -1
  341. package/dist/components/kol-combobox.js +1 -1
  342. package/dist/components/kol-combobox.js.map +1 -1
  343. package/dist/components/kol-details.js +1 -1
  344. package/dist/components/kol-details.js.map +1 -1
  345. package/dist/components/kol-dialog.js +1 -1
  346. package/dist/components/kol-dialog.js.map +1 -1
  347. package/dist/components/kol-drawer.js +1 -1
  348. package/dist/components/kol-drawer.js.map +1 -1
  349. package/dist/components/kol-form.js +1 -1
  350. package/dist/components/kol-form.js.map +1 -1
  351. package/dist/components/kol-heading.js +1 -1
  352. package/dist/components/kol-heading.js.map +1 -1
  353. package/dist/components/kol-icon.js +1 -1
  354. package/dist/components/kol-image.js +1 -1
  355. package/dist/components/kol-image.js.map +1 -1
  356. package/dist/components/kol-input-checkbox.js +1 -1
  357. package/dist/components/kol-input-checkbox.js.map +1 -1
  358. package/dist/components/kol-input-color.js +6 -23
  359. package/dist/components/kol-input-color.js.map +1 -1
  360. package/dist/components/kol-input-date.js +2 -2
  361. package/dist/components/kol-input-date.js.map +1 -1
  362. package/dist/components/kol-input-email.js +2 -2
  363. package/dist/components/kol-input-email.js.map +1 -1
  364. package/dist/components/kol-input-file.js +2 -2
  365. package/dist/components/kol-input-file.js.map +1 -1
  366. package/dist/components/kol-input-number.js +2 -2
  367. package/dist/components/kol-input-number.js.map +1 -1
  368. package/dist/components/kol-input-password.js +2 -2
  369. package/dist/components/kol-input-password.js.map +1 -1
  370. package/dist/components/kol-input-radio.js +2 -2
  371. package/dist/components/kol-input-radio.js.map +1 -1
  372. package/dist/components/kol-input-range.js +2 -2
  373. package/dist/components/kol-input-range.js.map +1 -1
  374. package/dist/components/kol-input-text.js +2 -2
  375. package/dist/components/kol-input-text.js.map +1 -1
  376. package/dist/components/kol-kolibri.js +2 -2
  377. package/dist/components/kol-kolibri.js.map +1 -1
  378. package/dist/components/kol-link-button.js +2 -2
  379. package/dist/components/kol-link-button.js.map +1 -1
  380. package/dist/components/kol-link-wc.js +3 -2
  381. package/dist/components/kol-link-wc.js.map +1 -1
  382. package/dist/components/kol-link.js +4 -3
  383. package/dist/components/kol-link.js.map +1 -1
  384. package/dist/components/kol-meter.js +2 -2
  385. package/dist/components/kol-meter.js.map +1 -1
  386. package/dist/components/kol-modal.js +2 -2
  387. package/dist/components/kol-modal.js.map +1 -1
  388. package/dist/components/kol-nav.js +3 -3
  389. package/dist/components/kol-nav.js.map +1 -1
  390. package/dist/components/kol-pagination.js +2 -2
  391. package/dist/components/kol-pagination.js.map +1 -1
  392. package/dist/components/kol-popover-button-wc.js +2 -2
  393. package/dist/components/kol-popover-button.js +2 -2
  394. package/dist/components/kol-popover-button.js.map +1 -1
  395. package/dist/components/kol-progress.js +2 -2
  396. package/dist/components/kol-progress.js.map +1 -1
  397. package/dist/components/kol-quote.js +2 -2
  398. package/dist/components/kol-quote.js.map +1 -1
  399. package/dist/components/kol-select-wc.js +2 -2
  400. package/dist/components/kol-select.js +2 -2
  401. package/dist/components/kol-select.js.map +1 -1
  402. package/dist/components/kol-single-select.js +4 -4
  403. package/dist/components/kol-single-select.js.map +1 -1
  404. package/dist/components/kol-skeleton.js +1 -1
  405. package/dist/components/kol-skip-nav.js +2 -2
  406. package/dist/components/kol-skip-nav.js.map +1 -1
  407. package/dist/components/kol-spin.js +2 -2
  408. package/dist/components/kol-spin.js.map +1 -1
  409. package/dist/components/kol-split-button.js +3 -3
  410. package/dist/components/kol-split-button.js.map +1 -1
  411. package/dist/components/kol-table-settings-wc.js +8 -5
  412. package/dist/components/kol-table-settings-wc.js.map +1 -1
  413. package/dist/components/kol-table-stateful.js +3 -3
  414. package/dist/components/kol-table-stateful.js.map +1 -1
  415. package/dist/components/kol-table-stateless-wc.js +5 -5
  416. package/dist/components/kol-table-stateless.js +3 -3
  417. package/dist/components/kol-table-stateless.js.map +1 -1
  418. package/dist/components/kol-tabs.js +3 -3
  419. package/dist/components/kol-tabs.js.map +1 -1
  420. package/dist/components/kol-textarea.js +2 -2
  421. package/dist/components/kol-textarea.js.map +1 -1
  422. package/dist/components/kol-toast-container.js +3 -3
  423. package/dist/components/kol-toast-container.js.map +1 -1
  424. package/dist/components/kol-toolbar.js +2 -2
  425. package/dist/components/kol-toolbar.js.map +1 -1
  426. package/dist/components/kol-tooltip-wc.js +1 -1
  427. package/dist/components/kol-tree-item-wc.js +4 -4
  428. package/dist/components/kol-tree-item.js +3 -3
  429. package/dist/components/kol-tree-item.js.map +1 -1
  430. package/dist/components/kol-tree-wc.js +2 -2
  431. package/dist/components/kol-tree.js +3 -3
  432. package/dist/components/kol-tree.js.map +1 -1
  433. package/dist/components/kol-version.js +3 -3
  434. package/dist/components/kol-version.js.map +1 -1
  435. package/dist/components/label2.js +16 -1
  436. package/dist/components/label2.js.map +1 -1
  437. package/dist/components/normalizers.js +5 -1
  438. package/dist/components/normalizers.js.map +1 -1
  439. package/dist/esm/{Alert-DXOQ9aSr.js → Alert-BjiZcCeA.js} +8 -8
  440. package/dist/{kolibri/Alert-DXOQ9aSr.js.map → esm/Alert-BjiZcCeA.js.map} +1 -1
  441. package/dist/esm/{Collapsible-1ue3DBSn.js → Collapsible-BPAU3d7l.js} +6 -6
  442. package/dist/{kolibri/Collapsible-1ue3DBSn.js.map → esm/Collapsible-BPAU3d7l.js.map} +1 -1
  443. package/dist/esm/{CustomSuggestionsOptionsGroup-C9g6pxIT.js → CustomSuggestionsOptionsGroup-CPp_en4y.js} +3 -3
  444. package/dist/esm/{CustomSuggestionsOptionsGroup-C9g6pxIT.js.map → CustomSuggestionsOptionsGroup-CPp_en4y.js.map} +1 -1
  445. package/dist/esm/{FieldControlStateWrapper-KW0D4CYF.js → FieldControlStateWrapper-CL8sIEsf.js} +9 -9
  446. package/dist/{kolibri/FieldControlStateWrapper-KW0D4CYF.js.map → esm/FieldControlStateWrapper-CL8sIEsf.js.map} +1 -1
  447. package/dist/esm/{FormFieldStateWrapper-D_fQzIsx.js → FormFieldStateWrapper-CANKwnKv.js} +17 -17
  448. package/dist/{kolibri/FormFieldStateWrapper-D_fQzIsx.js.map → esm/FormFieldStateWrapper-CANKwnKv.js.map} +1 -1
  449. package/dist/esm/{Heading-ScHmWAI9.js → Heading-CNfXfPK2.js} +3 -3
  450. package/dist/esm/{Heading-ScHmWAI9.js.map → Heading-CNfXfPK2.js.map} +1 -1
  451. package/dist/esm/{Input-BANECVEf.js → Input-DyCv-etW.js} +6 -6
  452. package/dist/{kolibri/Input-BANECVEf.js.map → esm/Input-DyCv-etW.js.map} +1 -1
  453. package/dist/esm/{InputStateWrapper-csFDH3yt.js → InputStateWrapper-BJMqyY_8.js} +6 -6
  454. package/dist/esm/{InputStateWrapper-csFDH3yt.js.map → InputStateWrapper-BJMqyY_8.js.map} +1 -1
  455. package/dist/esm/{align-BNmcYY75.js → align-C8fl12z_.js} +3 -3
  456. package/dist/esm/{align-BNmcYY75.js.map → align-C8fl12z_.js.map} +1 -1
  457. package/dist/esm/{align-floating-elements-CONjGoNm.js → align-floating-elements-CBhVmYjn.js} +3 -3
  458. package/dist/esm/{align-floating-elements-CONjGoNm.js.map → align-floating-elements-CBhVmYjn.js.map} +1 -1
  459. package/dist/esm/{app-globals-C2WuwgyL.js → app-globals-D_kl2ROP.js} +5 -5
  460. package/dist/esm/{app-globals-C2WuwgyL.js.map → app-globals-D_kl2ROP.js.map} +1 -1
  461. package/dist/esm/{aria-details-o1tujJRX.js → aria-details-hRfn8aN9.js} +3 -3
  462. package/dist/esm/{aria-details-o1tujJRX.js.map → aria-details-hRfn8aN9.js.map} +1 -1
  463. package/dist/esm/{aria-labelledby-CuNgjL1c.js → aria-labelledby-D6AMAZtK.js} +3 -3
  464. package/dist/esm/{aria-labelledby-CuNgjL1c.js.map → aria-labelledby-D6AMAZtK.js.map} +1 -1
  465. package/dist/esm/{associated.controller-DSw2jkQs.js → associated.controller-FCQDejnI.js} +5 -5
  466. package/dist/esm/{associated.controller-DSw2jkQs.js.map → associated.controller-FCQDejnI.js.map} +1 -1
  467. package/dist/esm/{auto-complete-BBkbC-F2.js → auto-complete-C-QNfuIh.js} +3 -3
  468. package/dist/esm/{auto-complete-BBkbC-F2.js.map → auto-complete-C-QNfuIh.js.map} +1 -1
  469. package/dist/esm/{behavior-Ctzwvpyr.js → behavior-Co00uT-D.js} +8 -8
  470. package/dist/esm/{behavior-Ctzwvpyr.js.map → behavior-Co00uT-D.js.map} +1 -1
  471. package/dist/esm/{bem-registry-DGv3NmGE.js → bem-registry-3ondDImf.js} +3 -3
  472. package/dist/esm/{bem-registry-DGv3NmGE.js.map → bem-registry-3ondDImf.js.map} +1 -1
  473. package/dist/esm/{bootstrap-dbQte9BJ.js → bootstrap-Bfno1qh2.js} +4 -4
  474. package/dist/esm/{bootstrap-dbQte9BJ.js.map → bootstrap-Bfno1qh2.js.map} +1 -1
  475. package/dist/esm/{color-CrduxZp0.js → color-DfMsiiGq.js} +4 -4
  476. package/dist/esm/{color-CrduxZp0.js.map → color-DfMsiiGq.js.map} +1 -1
  477. package/dist/esm/{common-noYAs-wc.js → common-D-vggmh2.js} +3 -3
  478. package/dist/{kolibri/common-noYAs-wc.js.map → esm/common-D-vggmh2.js.map} +1 -1
  479. package/dist/esm/{component-B7G-dIP7.js → component-BDS_iE5Q.js} +24 -18
  480. package/dist/esm/component-BDS_iE5Q.js.map +1 -0
  481. package/dist/esm/{component-BuQ_u4hn.js → component-BXCnkVUN.js} +4 -4
  482. package/dist/esm/{component-BuQ_u4hn.js.map → component-BXCnkVUN.js.map} +1 -1
  483. package/dist/esm/{component-DEJ7VlaD.js → component-BjVFpeYY.js} +4 -4
  484. package/dist/{kolibri/component-DEJ7VlaD.js.map → esm/component-BjVFpeYY.js.map} +1 -1
  485. package/dist/esm/{component-Rxhi2vD9.js → component-DepnuZGT.js} +6 -6
  486. package/dist/{kolibri/component-Rxhi2vD9.js.map → esm/component-DepnuZGT.js.map} +1 -1
  487. package/dist/esm/{component-DGAuRw_M.js → component-K3ngYLGq.js} +4 -4
  488. package/dist/{kolibri/component-DGAuRw_M.js.map → esm/component-K3ngYLGq.js.map} +1 -1
  489. package/dist/esm/{component-BmDYhnTg.js → component-WjvIfI-H.js} +4 -4
  490. package/dist/esm/{component-BmDYhnTg.js.map → component-WjvIfI-H.js.map} +1 -1
  491. package/dist/esm/{component-names-BGnhDM7F.js → component-names-DwvrfFak.js} +3 -3
  492. package/dist/{kolibri/component-names-BGnhDM7F.js.map → esm/component-names-DwvrfFak.js.map} +1 -1
  493. package/dist/esm/{contrast-BQCqf-V1.js → contrast-D_JyeI-Q.js} +3 -3
  494. package/dist/{kolibri/contrast-BQCqf-V1.js.map → esm/contrast-D_JyeI-Q.js.map} +1 -1
  495. package/dist/esm/{controller-DSyLRSTp.js → controller-BFiUKKYT.js} +6 -6
  496. package/dist/esm/{controller-DSyLRSTp.js.map → controller-BFiUKKYT.js.map} +1 -1
  497. package/dist/esm/{controller-K7UxlZul.js → controller-CnmYmyZK.js} +7 -7
  498. package/dist/esm/{controller-K7UxlZul.js.map → controller-CnmYmyZK.js.map} +1 -1
  499. package/dist/esm/{controller-CrEJoj-8.js → controller-D__mtOju.js} +4 -4
  500. package/dist/esm/{controller-CrEJoj-8.js.map → controller-D__mtOju.js.map} +1 -1
  501. package/dist/esm/{controller-CafGJ4qe.js → controller-QfZ_zY-h.js} +10 -10
  502. package/dist/{kolibri/controller-CafGJ4qe.js.map → esm/controller-QfZ_zY-h.js.map} +1 -1
  503. package/dist/esm/{controller-icon-BEn5b0cq.js → controller-icon-GPaN1UHM.js} +9 -9
  504. package/dist/{kolibri/controller-icon-BEn5b0cq.js.map → esm/controller-icon-GPaN1UHM.js.map} +1 -1
  505. package/dist/esm/{counter-dom-updater-Cydd4Jex.js → counter-dom-updater-osLR7-G0.js} +4 -4
  506. package/dist/{kolibri/counter-dom-updater-Cydd4Jex.js.map → esm/counter-dom-updater-osLR7-G0.js.map} +1 -1
  507. package/dist/esm/{custom-class-DpFc73O_.js → custom-class-BtoZpwyq.js} +3 -3
  508. package/dist/esm/{custom-class-DpFc73O_.js.map → custom-class-BtoZpwyq.js.map} +1 -1
  509. package/dist/esm/{dev.utils-DJKZSrCp.js → dev.utils-Cib2ENyx.js} +4 -4
  510. package/dist/{kolibri/dev.utils-DJKZSrCp.js.map → esm/dev.utils-Cib2ENyx.js.map} +1 -1
  511. package/dist/esm/{devtools-BzZNn3Mb.js → devtools-CAWyelfv.js} +5 -5
  512. package/dist/{kolibri/devtools-BzZNn3Mb.js.map → esm/devtools-CAWyelfv.js.map} +1 -1
  513. package/dist/esm/{disabled-DVZ7p0bI.js → disabled-CL52u2mm.js} +3 -3
  514. package/dist/esm/{disabled-DVZ7p0bI.js.map → disabled-CL52u2mm.js.map} +1 -1
  515. package/dist/esm/{has-closer-DyXBWIQh.js → has-closer-DoXfZcmn.js} +3 -3
  516. package/dist/esm/{has-closer-DyXBWIQh.js.map → has-closer-DoXfZcmn.js.map} +1 -1
  517. package/dist/esm/{hide-label-LlZnbrzc.js → hide-label-CRGm6KGP.js} +3 -3
  518. package/dist/esm/{hide-label-LlZnbrzc.js.map → hide-label-CRGm6KGP.js.map} +1 -1
  519. package/dist/esm/{href-CBdHcGY_.js → href-B7u09W3s.js} +3 -3
  520. package/dist/{kolibri/href-CBdHcGY_.js.map → esm/href-B7u09W3s.js.map} +1 -1
  521. package/dist/esm/{href-BKrnu0s2.js → href-C9xfRiDr.js} +3 -3
  522. package/dist/esm/{href-BKrnu0s2.js.map → href-C9xfRiDr.js.map} +1 -1
  523. package/dist/esm/{i18n-CrXMv0tS.js → i18n-CvFPh0g5.js} +3 -3
  524. package/dist/esm/{i18n-CrXMv0tS.js.map → i18n-CvFPh0g5.js.map} +1 -1
  525. package/dist/esm/{icons-DT5u2gpq.js → icons-mXXqyviE.js} +3 -3
  526. package/dist/esm/{icons-DT5u2gpq.js.map → icons-mXXqyviE.js.map} +1 -1
  527. package/dist/esm/{index-02qzyFjP.js → index-C_ZKddLG.js} +4 -4
  528. package/dist/esm/index-C_ZKddLG.js.map +1 -0
  529. package/dist/esm/index.js +6 -6
  530. package/dist/esm/{inline-CqNhbN6Q.js → inline-DCDQA_d_.js} +3 -3
  531. package/dist/esm/{inline-CqNhbN6Q.js.map → inline-DCDQA_d_.js.map} +1 -1
  532. package/dist/esm/kol-abbr.entry.js +3 -3
  533. package/dist/esm/kol-abbr.entry.js.map +1 -1
  534. package/dist/esm/kol-accordion.entry.js +13 -13
  535. package/dist/esm/kol-accordion.entry.js.map +1 -1
  536. package/dist/esm/kol-alert-wc.entry.js +13 -13
  537. package/dist/esm/kol-alert.entry.js +4 -4
  538. package/dist/esm/kol-alert.entry.js.map +1 -1
  539. package/dist/esm/kol-avatar.entry.js +11 -10
  540. package/dist/esm/kol-avatar.entry.js.map +1 -1
  541. package/dist/esm/kol-badge.entry.js +11 -11
  542. package/dist/esm/kol-badge.entry.js.map +1 -1
  543. package/dist/esm/kol-breadcrumb.entry.js +9 -9
  544. package/dist/esm/kol-breadcrumb.entry.js.map +1 -1
  545. package/dist/esm/kol-button-link.entry.js +4 -4
  546. package/dist/esm/kol-button-link.entry.js.map +1 -1
  547. package/dist/esm/kol-button-wc.entry.js +26 -26
  548. package/dist/esm/kol-button.entry.js +4 -4
  549. package/dist/esm/kol-button.entry.js.map +1 -1
  550. package/dist/esm/kol-card-wc.entry.js +18 -18
  551. package/dist/esm/kol-card.entry.js +4 -4
  552. package/dist/esm/kol-card.entry.js.map +1 -1
  553. package/dist/esm/kol-click-button.entry.js +9 -8
  554. package/dist/esm/kol-click-button.entry.js.map +1 -1
  555. package/dist/esm/kol-combobox.entry.js +35 -35
  556. package/dist/esm/kol-combobox.entry.js.map +1 -1
  557. package/dist/esm/kol-details.entry.js +13 -13
  558. package/dist/esm/kol-details.entry.js.map +1 -1
  559. package/dist/esm/kol-dialog-wc.entry.js +8 -8
  560. package/dist/esm/kol-dialog.entry.js +4 -4
  561. package/dist/esm/kol-dialog.entry.js.map +1 -1
  562. package/dist/esm/kol-drawer.entry.js +12 -12
  563. package/dist/esm/kol-drawer.entry.js.map +1 -1
  564. package/dist/esm/kol-form.entry.js +9 -9
  565. package/dist/esm/kol-form.entry.js.map +1 -1
  566. package/dist/esm/kol-heading.entry.js +7 -7
  567. package/dist/esm/kol-heading.entry.js.map +1 -1
  568. package/dist/esm/kol-icon.entry.js +9 -8
  569. package/dist/esm/kol-icon.entry.js.map +1 -1
  570. package/dist/esm/kol-image.entry.js +6 -6
  571. package/dist/esm/kol-image.entry.js.map +1 -1
  572. package/dist/esm/kol-input-checkbox.entry.js +33 -33
  573. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  574. package/dist/esm/kol-input-color.entry.js +38 -55
  575. package/dist/esm/kol-input-color.entry.js.map +1 -1
  576. package/dist/esm/kol-input-date.entry.js +37 -37
  577. package/dist/esm/kol-input-date.entry.js.map +1 -1
  578. package/dist/esm/kol-input-email.entry.js +43 -43
  579. package/dist/esm/kol-input-email.entry.js.map +1 -1
  580. package/dist/esm/kol-input-file.entry.js +34 -34
  581. package/dist/esm/kol-input-file.entry.js.map +1 -1
  582. package/dist/esm/kol-input-number.entry.js +38 -38
  583. package/dist/esm/kol-input-number.entry.js.map +1 -1
  584. package/dist/esm/kol-input-password.entry.js +39 -39
  585. package/dist/esm/kol-input-password.entry.js.map +1 -1
  586. package/dist/esm/kol-input-radio.entry.js +34 -34
  587. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  588. package/dist/esm/kol-input-range.entry.js +35 -35
  589. package/dist/esm/kol-input-range.entry.js.map +1 -1
  590. package/dist/esm/kol-input-text.entry.js +42 -42
  591. package/dist/esm/kol-input-text.entry.js.map +1 -1
  592. package/dist/esm/kol-kolibri.entry.js +7 -7
  593. package/dist/esm/kol-kolibri.entry.js.map +1 -1
  594. package/dist/esm/kol-link-button.entry.js +5 -5
  595. package/dist/esm/kol-link-button.entry.js.map +1 -1
  596. package/dist/esm/kol-link-wc.entry.js +21 -19
  597. package/dist/esm/kol-link-wc.entry.js.map +1 -1
  598. package/dist/esm/kol-link.entry.js +22 -20
  599. package/dist/esm/kol-link.entry.js.map +1 -1
  600. package/dist/esm/kol-meter.entry.js +10 -9
  601. package/dist/esm/kol-meter.entry.js.map +1 -1
  602. package/dist/esm/kol-modal.entry.js +5 -5
  603. package/dist/esm/kol-modal.entry.js.map +1 -1
  604. package/dist/esm/kol-nav.entry.js +12 -12
  605. package/dist/esm/kol-nav.entry.js.map +1 -1
  606. package/dist/esm/kol-pagination-wc.entry.js +10 -10
  607. package/dist/esm/kol-pagination.entry.js +5 -5
  608. package/dist/esm/kol-pagination.entry.js.map +1 -1
  609. package/dist/esm/kol-popover-button-wc.entry.js +9 -9
  610. package/dist/esm/kol-popover-button.entry.js +5 -5
  611. package/dist/esm/kol-popover-button.entry.js.map +1 -1
  612. package/dist/esm/kol-progress.entry.js +10 -9
  613. package/dist/esm/kol-progress.entry.js.map +1 -1
  614. package/dist/esm/kol-quote.entry.js +11 -10
  615. package/dist/esm/kol-quote.entry.js.map +1 -1
  616. package/dist/esm/kol-select-wc.entry.js +36 -36
  617. package/dist/esm/kol-select.entry.js +6 -6
  618. package/dist/esm/kol-select.entry.js.map +1 -1
  619. package/dist/esm/kol-single-select.entry.js +39 -39
  620. package/dist/esm/kol-single-select.entry.js.map +1 -1
  621. package/dist/esm/kol-skeleton.entry.js +7 -7
  622. package/dist/esm/kol-skip-nav.entry.js +8 -8
  623. package/dist/esm/kol-skip-nav.entry.js.map +1 -1
  624. package/dist/esm/kol-spin.entry.js +10 -9
  625. package/dist/esm/kol-spin.entry.js.map +1 -1
  626. package/dist/esm/kol-split-button.entry.js +7 -7
  627. package/dist/esm/kol-split-button.entry.js.map +1 -1
  628. package/dist/esm/kol-table-settings-wc.entry.js +11 -8
  629. package/dist/esm/kol-table-settings-wc.entry.js.map +1 -1
  630. package/dist/esm/kol-table-stateful.entry.js +9 -9
  631. package/dist/esm/kol-table-stateful.entry.js.map +1 -1
  632. package/dist/esm/kol-table-stateless-wc.entry.js +17 -17
  633. package/dist/esm/kol-table-stateless.entry.js +6 -6
  634. package/dist/esm/kol-table-stateless.entry.js.map +1 -1
  635. package/dist/esm/kol-tabs.entry.js +10 -10
  636. package/dist/esm/kol-tabs.entry.js.map +1 -1
  637. package/dist/esm/kol-textarea.entry.js +36 -36
  638. package/dist/esm/kol-textarea.entry.js.map +1 -1
  639. package/dist/esm/kol-toast-container.entry.js +14 -14
  640. package/dist/esm/kol-toast-container.entry.js.map +1 -1
  641. package/dist/esm/kol-toolbar.entry.js +7 -7
  642. package/dist/esm/kol-toolbar.entry.js.map +1 -1
  643. package/dist/esm/kol-tooltip-wc.entry.js +14 -13
  644. package/dist/esm/kol-tooltip-wc.entry.js.map +1 -1
  645. package/dist/esm/kol-tree-item-wc.entry.js +12 -12
  646. package/dist/esm/kol-tree-item.entry.js +5 -5
  647. package/dist/esm/kol-tree-item.entry.js.map +1 -1
  648. package/dist/esm/kol-tree-wc.entry.js +5 -5
  649. package/dist/esm/kol-tree.entry.js +5 -5
  650. package/dist/esm/kol-tree.entry.js.map +1 -1
  651. package/dist/esm/kol-version.entry.js +7 -7
  652. package/dist/esm/kol-version.entry.js.map +1 -1
  653. package/dist/esm/kolibri.js +4 -4
  654. package/dist/esm/label-FtX-skKy.js +26 -0
  655. package/dist/esm/label-FtX-skKy.js.map +1 -0
  656. package/dist/esm/{label-lhyZhbiM.js → label-w3T7Y2ih.js} +3 -3
  657. package/dist/{kolibri/label-lhyZhbiM.js.map → esm/label-w3T7Y2ih.js.map} +1 -1
  658. package/dist/esm/{label-with-expert-slot-3VWute5S.js → label-with-expert-slot-CU-oeLnm.js} +3 -3
  659. package/dist/esm/{label-with-expert-slot-3VWute5S.js.map → label-with-expert-slot-CU-oeLnm.js.map} +1 -1
  660. package/dist/esm/{level-B2RyXnam.js → level-Cj2m5HKt.js} +3 -3
  661. package/dist/{kolibri/level-B2RyXnam.js.map → esm/level-Cj2m5HKt.js.map} +1 -1
  662. package/dist/esm/loader.js +4 -4
  663. package/dist/esm/{multiple-RvvepSN9.js → multiple-BZRAazRb.js} +3 -3
  664. package/dist/esm/{multiple-RvvepSN9.js.map → multiple-BZRAazRb.js.map} +1 -1
  665. package/dist/esm/{normalizers-DWPxOTIP.js → normalizers-BNeak4hj.js} +8 -4
  666. package/dist/{kolibri/normalizers-DWPxOTIP.js.map → esm/normalizers-BNeak4hj.js.map} +1 -1
  667. package/dist/esm/{open-CA1J3ZTK.js → open-BRQrMgjX.js} +3 -3
  668. package/dist/esm/{open-CA1J3ZTK.js.map → open-BRQrMgjX.js.map} +1 -1
  669. package/dist/esm/{orientation-Dw3BhNjY.js → orientation-CfF8dz-f.js} +3 -3
  670. package/dist/esm/{orientation-Dw3BhNjY.js.map → orientation-CfF8dz-f.js.map} +1 -1
  671. package/dist/esm/{placeholder-JIf_Jr3v.js → placeholder-CmUUN-3U.js} +3 -3
  672. package/dist/esm/{placeholder-JIf_Jr3v.js.map → placeholder-CmUUN-3U.js.map} +1 -1
  673. package/dist/esm/{read-only-CxpGC8Fy.js → read-only-DyDY-E9H.js} +3 -3
  674. package/dist/esm/{read-only-CxpGC8Fy.js.map → read-only-DyDY-E9H.js.map} +1 -1
  675. package/dist/esm/{required-DGhzuKQB.js → required-CGf-IRxL.js} +3 -3
  676. package/dist/esm/{required-DGhzuKQB.js.map → required-CGf-IRxL.js.map} +1 -1
  677. package/dist/esm/{rows-BRaIYumW.js → rows-DlWRIMNQ.js} +3 -3
  678. package/dist/esm/{rows-BRaIYumW.js.map → rows-DlWRIMNQ.js.map} +1 -1
  679. package/dist/esm/{spell-check-BYuCSD3X.js → spell-check-6kYqpIpx.js} +3 -3
  680. package/dist/esm/{spell-check-BYuCSD3X.js.map → spell-check-6kYqpIpx.js.map} +1 -1
  681. package/dist/esm/{src-DugryP6L.js → src-BnjoA2Q6.js} +3 -3
  682. package/dist/esm/{src-DugryP6L.js.map → src-BnjoA2Q6.js.map} +1 -1
  683. package/dist/esm/{suggestions-ofHp_5qm.js → suggestions-CKylTAKv.js} +3 -3
  684. package/dist/esm/{suggestions-ofHp_5qm.js.map → suggestions-CKylTAKv.js.map} +1 -1
  685. package/dist/esm/{table-selection-CHYGiAxJ.js → table-selection-CB6W390S.js} +3 -3
  686. package/dist/esm/{table-selection-CHYGiAxJ.js.map → table-selection-CB6W390S.js.map} +1 -1
  687. package/dist/esm/test-component.entry.js +2 -2
  688. package/dist/esm/{tooltip-align-DWAWPZn0.js → tooltip-align-BQmLWbBy.js} +4 -4
  689. package/dist/esm/{tooltip-align-DWAWPZn0.js.map → tooltip-align-BQmLWbBy.js.map} +1 -1
  690. package/dist/esm/{unique-nav-labels-B0tCIm30.js → unique-nav-labels-B6_Oto5e.js} +3 -3
  691. package/dist/esm/{unique-nav-labels-B0tCIm30.js.map → unique-nav-labels-B6_Oto5e.js.map} +1 -1
  692. package/dist/esm/{validation-BT4VYADp.js → validation-BZPzOg5I.js} +3 -3
  693. package/dist/esm/{validation-BT4VYADp.js.map → validation-BZPzOg5I.js.map} +1 -1
  694. package/dist/esm/{validation-BFb56Yd7.js → validation-Cnndf99L.js} +4 -4
  695. package/dist/esm/{validation-BFb56Yd7.js.map → validation-Cnndf99L.js.map} +1 -1
  696. package/dist/esm/{value-number-clamped-D39JJzpQ.js → value-number-clamped-Fuextuj1.js} +3 -3
  697. package/dist/{kolibri/value-number-clamped-D39JJzpQ.js.map → esm/value-number-clamped-Fuextuj1.js.map} +1 -1
  698. package/dist/esm/{variant-class-name-B0Wpr2i8.js → variant-class-name-9qZ5egaq.js} +3 -3
  699. package/dist/esm/{variant-class-name-B0Wpr2i8.js.map → variant-class-name-9qZ5egaq.js.map} +1 -1
  700. package/dist/esm/{variant-quote-CRKM9QG2.js → variant-quote-ClYWonZq.js} +3 -3
  701. package/dist/{kolibri/variant-quote-CRKM9QG2.js.map → esm/variant-quote-ClYWonZq.js.map} +1 -1
  702. package/dist/kolibri/Alert-BjiZcCeA.js +5 -0
  703. package/dist/{esm/Alert-DXOQ9aSr.js.map → kolibri/Alert-BjiZcCeA.js.map} +1 -1
  704. package/dist/kolibri/Collapsible-BPAU3d7l.js +5 -0
  705. package/dist/{esm/Collapsible-1ue3DBSn.js.map → kolibri/Collapsible-BPAU3d7l.js.map} +1 -1
  706. package/dist/kolibri/{CustomSuggestionsOptionsGroup-C9g6pxIT.js → CustomSuggestionsOptionsGroup-CPp_en4y.js} +2 -2
  707. package/dist/kolibri/{CustomSuggestionsOptionsGroup-C9g6pxIT.js.map → CustomSuggestionsOptionsGroup-CPp_en4y.js.map} +1 -1
  708. package/dist/kolibri/FieldControlStateWrapper-CL8sIEsf.js +5 -0
  709. package/dist/{esm/FieldControlStateWrapper-KW0D4CYF.js.map → kolibri/FieldControlStateWrapper-CL8sIEsf.js.map} +1 -1
  710. package/dist/kolibri/FormFieldStateWrapper-CANKwnKv.js +5 -0
  711. package/dist/{esm/FormFieldStateWrapper-D_fQzIsx.js.map → kolibri/FormFieldStateWrapper-CANKwnKv.js.map} +1 -1
  712. package/dist/kolibri/{Heading-ScHmWAI9.js → Heading-CNfXfPK2.js} +2 -2
  713. package/dist/kolibri/{Heading-ScHmWAI9.js.map → Heading-CNfXfPK2.js.map} +1 -1
  714. package/dist/kolibri/Input-DyCv-etW.js +5 -0
  715. package/dist/{esm/Input-BANECVEf.js.map → kolibri/Input-DyCv-etW.js.map} +1 -1
  716. package/dist/kolibri/InputStateWrapper-BJMqyY_8.js +5 -0
  717. package/dist/kolibri/{InputStateWrapper-csFDH3yt.js.map → InputStateWrapper-BJMqyY_8.js.map} +1 -1
  718. package/dist/kolibri/align-C8fl12z_.js +5 -0
  719. package/dist/kolibri/{align-BNmcYY75.js.map → align-C8fl12z_.js.map} +1 -1
  720. package/dist/kolibri/{align-floating-elements-CONjGoNm.js → align-floating-elements-CBhVmYjn.js} +2 -2
  721. package/dist/kolibri/{align-floating-elements-CONjGoNm.js.map → align-floating-elements-CBhVmYjn.js.map} +1 -1
  722. package/dist/kolibri/app-globals-D_kl2ROP.js +5 -0
  723. package/dist/kolibri/{app-globals-C2WuwgyL.js.map → app-globals-D_kl2ROP.js.map} +1 -1
  724. package/dist/kolibri/aria-details-hRfn8aN9.js +5 -0
  725. package/dist/kolibri/{aria-details-o1tujJRX.js.map → aria-details-hRfn8aN9.js.map} +1 -1
  726. package/dist/kolibri/aria-labelledby-D6AMAZtK.js +5 -0
  727. package/dist/kolibri/{aria-labelledby-CuNgjL1c.js.map → aria-labelledby-D6AMAZtK.js.map} +1 -1
  728. package/dist/kolibri/{associated.controller-DSw2jkQs.js → associated.controller-FCQDejnI.js} +2 -2
  729. package/dist/kolibri/{associated.controller-DSw2jkQs.js.map → associated.controller-FCQDejnI.js.map} +1 -1
  730. package/dist/kolibri/{auto-complete-BBkbC-F2.js → auto-complete-C-QNfuIh.js} +2 -2
  731. package/dist/kolibri/{auto-complete-BBkbC-F2.js.map → auto-complete-C-QNfuIh.js.map} +1 -1
  732. package/dist/kolibri/behavior-Co00uT-D.js +5 -0
  733. package/dist/kolibri/{behavior-Ctzwvpyr.js.map → behavior-Co00uT-D.js.map} +1 -1
  734. package/dist/kolibri/{bem-registry-DGv3NmGE.js → bem-registry-3ondDImf.js} +2 -2
  735. package/dist/kolibri/{bem-registry-DGv3NmGE.js.map → bem-registry-3ondDImf.js.map} +1 -1
  736. package/dist/kolibri/bootstrap-Bfno1qh2.js +5 -0
  737. package/dist/kolibri/{bootstrap-dbQte9BJ.js.map → bootstrap-Bfno1qh2.js.map} +1 -1
  738. package/dist/kolibri/{color-CrduxZp0.js → color-DfMsiiGq.js} +2 -2
  739. package/dist/kolibri/{color-CrduxZp0.js.map → color-DfMsiiGq.js.map} +1 -1
  740. package/dist/kolibri/{common-noYAs-wc.js → common-D-vggmh2.js} +2 -2
  741. package/dist/{esm/common-noYAs-wc.js.map → kolibri/common-D-vggmh2.js.map} +1 -1
  742. package/dist/kolibri/component-BDS_iE5Q.js +5 -0
  743. package/dist/kolibri/component-BDS_iE5Q.js.map +1 -0
  744. package/dist/kolibri/component-BXCnkVUN.js +5 -0
  745. package/dist/kolibri/{component-BuQ_u4hn.js.map → component-BXCnkVUN.js.map} +1 -1
  746. package/dist/kolibri/component-BjVFpeYY.js +5 -0
  747. package/dist/{esm/component-DEJ7VlaD.js.map → kolibri/component-BjVFpeYY.js.map} +1 -1
  748. package/dist/kolibri/{component-Rxhi2vD9.js → component-DepnuZGT.js} +2 -2
  749. package/dist/{esm/component-Rxhi2vD9.js.map → kolibri/component-DepnuZGT.js.map} +1 -1
  750. package/dist/kolibri/{component-DGAuRw_M.js → component-K3ngYLGq.js} +2 -2
  751. package/dist/{esm/component-DGAuRw_M.js.map → kolibri/component-K3ngYLGq.js.map} +1 -1
  752. package/dist/kolibri/component-WjvIfI-H.js +5 -0
  753. package/dist/kolibri/{component-BmDYhnTg.js.map → component-WjvIfI-H.js.map} +1 -1
  754. package/dist/kolibri/{component-names-BGnhDM7F.js → component-names-DwvrfFak.js} +2 -2
  755. package/dist/{esm/component-names-BGnhDM7F.js.map → kolibri/component-names-DwvrfFak.js.map} +1 -1
  756. package/dist/kolibri/contrast-D_JyeI-Q.js +5 -0
  757. package/dist/{esm/contrast-BQCqf-V1.js.map → kolibri/contrast-D_JyeI-Q.js.map} +1 -1
  758. package/dist/kolibri/{controller-DSyLRSTp.js → controller-BFiUKKYT.js} +2 -2
  759. package/dist/kolibri/{controller-DSyLRSTp.js.map → controller-BFiUKKYT.js.map} +1 -1
  760. package/dist/kolibri/{controller-K7UxlZul.js → controller-CnmYmyZK.js} +2 -2
  761. package/dist/kolibri/{controller-K7UxlZul.js.map → controller-CnmYmyZK.js.map} +1 -1
  762. package/dist/kolibri/controller-D__mtOju.js +5 -0
  763. package/dist/kolibri/{controller-CrEJoj-8.js.map → controller-D__mtOju.js.map} +1 -1
  764. package/dist/kolibri/{controller-CafGJ4qe.js → controller-QfZ_zY-h.js} +2 -2
  765. package/dist/{esm/controller-CafGJ4qe.js.map → kolibri/controller-QfZ_zY-h.js.map} +1 -1
  766. package/dist/kolibri/controller-icon-GPaN1UHM.js +5 -0
  767. package/dist/{esm/controller-icon-BEn5b0cq.js.map → kolibri/controller-icon-GPaN1UHM.js.map} +1 -1
  768. package/dist/kolibri/{counter-dom-updater-Cydd4Jex.js → counter-dom-updater-osLR7-G0.js} +2 -2
  769. package/dist/{esm/counter-dom-updater-Cydd4Jex.js.map → kolibri/counter-dom-updater-osLR7-G0.js.map} +1 -1
  770. package/dist/kolibri/custom-class-BtoZpwyq.js +5 -0
  771. package/dist/kolibri/{custom-class-DpFc73O_.js.map → custom-class-BtoZpwyq.js.map} +1 -1
  772. package/dist/kolibri/{dev.utils-DJKZSrCp.js → dev.utils-Cib2ENyx.js} +2 -2
  773. package/dist/{esm/dev.utils-DJKZSrCp.js.map → kolibri/dev.utils-Cib2ENyx.js.map} +1 -1
  774. package/dist/kolibri/{devtools-BzZNn3Mb.js → devtools-CAWyelfv.js} +2 -2
  775. package/dist/{esm/devtools-BzZNn3Mb.js.map → kolibri/devtools-CAWyelfv.js.map} +1 -1
  776. package/dist/kolibri/{disabled-DVZ7p0bI.js → disabled-CL52u2mm.js} +2 -2
  777. package/dist/kolibri/{disabled-DVZ7p0bI.js.map → disabled-CL52u2mm.js.map} +1 -1
  778. package/dist/kolibri/has-closer-DoXfZcmn.js +5 -0
  779. package/dist/kolibri/{has-closer-DyXBWIQh.js.map → has-closer-DoXfZcmn.js.map} +1 -1
  780. package/dist/kolibri/hide-label-CRGm6KGP.js +5 -0
  781. package/dist/kolibri/{hide-label-LlZnbrzc.js.map → hide-label-CRGm6KGP.js.map} +1 -1
  782. package/dist/kolibri/{href-CBdHcGY_.js → href-B7u09W3s.js} +2 -2
  783. package/dist/{esm/href-CBdHcGY_.js.map → kolibri/href-B7u09W3s.js.map} +1 -1
  784. package/dist/kolibri/href-C9xfRiDr.js +5 -0
  785. package/dist/kolibri/{href-BKrnu0s2.js.map → href-C9xfRiDr.js.map} +1 -1
  786. package/dist/kolibri/i18n-CvFPh0g5.js +5 -0
  787. package/dist/kolibri/{i18n-CrXMv0tS.js.map → i18n-CvFPh0g5.js.map} +1 -1
  788. package/dist/kolibri/icons-mXXqyviE.js +5 -0
  789. package/dist/kolibri/{icons-DT5u2gpq.js.map → icons-mXXqyviE.js.map} +1 -1
  790. package/dist/kolibri/{index-02qzyFjP.js → index-C_ZKddLG.js} +3 -3
  791. package/dist/kolibri/index-C_ZKddLG.js.map +1 -0
  792. package/dist/kolibri/index.esm.js +1 -1
  793. package/dist/kolibri/inline-DCDQA_d_.js +5 -0
  794. package/dist/kolibri/{inline-CqNhbN6Q.js.map → inline-DCDQA_d_.js.map} +1 -1
  795. package/dist/kolibri/kol-abbr.entry.esm.js.map +1 -1
  796. package/dist/kolibri/kol-abbr.entry.js +1 -1
  797. package/dist/kolibri/kol-abbr.entry.js.map +1 -1
  798. package/dist/kolibri/kol-accordion.entry.esm.js.map +1 -1
  799. package/dist/kolibri/kol-accordion.entry.js +1 -1
  800. package/dist/kolibri/kol-accordion.entry.js.map +1 -1
  801. package/dist/kolibri/kol-alert-wc.entry.js +1 -1
  802. package/dist/kolibri/kol-alert.entry.esm.js.map +1 -1
  803. package/dist/kolibri/kol-alert.entry.js +1 -1
  804. package/dist/kolibri/kol-alert.entry.js.map +1 -1
  805. package/dist/kolibri/kol-avatar.entry.esm.js.map +1 -1
  806. package/dist/kolibri/kol-avatar.entry.js +1 -1
  807. package/dist/kolibri/kol-avatar.entry.js.map +1 -1
  808. package/dist/kolibri/kol-badge.entry.esm.js.map +1 -1
  809. package/dist/kolibri/kol-badge.entry.js +1 -1
  810. package/dist/kolibri/kol-badge.entry.js.map +1 -1
  811. package/dist/kolibri/kol-breadcrumb.entry.esm.js.map +1 -1
  812. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  813. package/dist/kolibri/kol-breadcrumb.entry.js.map +1 -1
  814. package/dist/kolibri/kol-button-link.entry.esm.js.map +1 -1
  815. package/dist/kolibri/kol-button-link.entry.js +1 -1
  816. package/dist/kolibri/kol-button-link.entry.js.map +1 -1
  817. package/dist/kolibri/kol-button-wc.entry.js +1 -1
  818. package/dist/kolibri/kol-button.entry.esm.js.map +1 -1
  819. package/dist/kolibri/kol-button.entry.js +1 -1
  820. package/dist/kolibri/kol-button.entry.js.map +1 -1
  821. package/dist/kolibri/kol-card-wc.entry.js +1 -1
  822. package/dist/kolibri/kol-card.entry.esm.js.map +1 -1
  823. package/dist/kolibri/kol-card.entry.js +1 -1
  824. package/dist/kolibri/kol-card.entry.js.map +1 -1
  825. package/dist/kolibri/kol-click-button.entry.esm.js.map +1 -1
  826. package/dist/kolibri/kol-click-button.entry.js +1 -1
  827. package/dist/kolibri/kol-click-button.entry.js.map +1 -1
  828. package/dist/kolibri/kol-combobox.entry.esm.js.map +1 -1
  829. package/dist/kolibri/kol-combobox.entry.js +1 -1
  830. package/dist/kolibri/kol-combobox.entry.js.map +1 -1
  831. package/dist/kolibri/kol-details.entry.esm.js.map +1 -1
  832. package/dist/kolibri/kol-details.entry.js +1 -1
  833. package/dist/kolibri/kol-details.entry.js.map +1 -1
  834. package/dist/kolibri/kol-dialog-wc.entry.js +1 -1
  835. package/dist/kolibri/kol-dialog.entry.esm.js.map +1 -1
  836. package/dist/kolibri/kol-dialog.entry.js +1 -1
  837. package/dist/kolibri/kol-dialog.entry.js.map +1 -1
  838. package/dist/kolibri/kol-drawer.entry.esm.js.map +1 -1
  839. package/dist/kolibri/kol-drawer.entry.js +1 -1
  840. package/dist/kolibri/kol-drawer.entry.js.map +1 -1
  841. package/dist/kolibri/kol-form.entry.esm.js.map +1 -1
  842. package/dist/kolibri/kol-form.entry.js +1 -1
  843. package/dist/kolibri/kol-form.entry.js.map +1 -1
  844. package/dist/kolibri/kol-heading.entry.esm.js.map +1 -1
  845. package/dist/kolibri/kol-heading.entry.js +1 -1
  846. package/dist/kolibri/kol-heading.entry.js.map +1 -1
  847. package/dist/kolibri/kol-icon.entry.esm.js.map +1 -1
  848. package/dist/kolibri/kol-icon.entry.js +1 -1
  849. package/dist/kolibri/kol-icon.entry.js.map +1 -1
  850. package/dist/kolibri/kol-image.entry.esm.js.map +1 -1
  851. package/dist/kolibri/kol-image.entry.js +1 -1
  852. package/dist/kolibri/kol-image.entry.js.map +1 -1
  853. package/dist/kolibri/kol-input-checkbox.entry.esm.js.map +1 -1
  854. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  855. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  856. package/dist/kolibri/kol-input-color.entry.esm.js.map +1 -1
  857. package/dist/kolibri/kol-input-color.entry.js +1 -1
  858. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  859. package/dist/kolibri/kol-input-date.entry.esm.js.map +1 -1
  860. package/dist/kolibri/kol-input-date.entry.js +1 -1
  861. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  862. package/dist/kolibri/kol-input-email.entry.esm.js.map +1 -1
  863. package/dist/kolibri/kol-input-email.entry.js +1 -1
  864. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  865. package/dist/kolibri/kol-input-file.entry.esm.js.map +1 -1
  866. package/dist/kolibri/kol-input-file.entry.js +1 -1
  867. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  868. package/dist/kolibri/kol-input-number.entry.esm.js.map +1 -1
  869. package/dist/kolibri/kol-input-number.entry.js +1 -1
  870. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  871. package/dist/kolibri/kol-input-password.entry.esm.js.map +1 -1
  872. package/dist/kolibri/kol-input-password.entry.js +1 -1
  873. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  874. package/dist/kolibri/kol-input-radio.entry.esm.js.map +1 -1
  875. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  876. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  877. package/dist/kolibri/kol-input-range.entry.esm.js.map +1 -1
  878. package/dist/kolibri/kol-input-range.entry.js +1 -1
  879. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  880. package/dist/kolibri/kol-input-text.entry.esm.js.map +1 -1
  881. package/dist/kolibri/kol-input-text.entry.js +1 -1
  882. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  883. package/dist/kolibri/kol-kolibri.entry.esm.js.map +1 -1
  884. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  885. package/dist/kolibri/kol-kolibri.entry.js.map +1 -1
  886. package/dist/kolibri/kol-link-button.entry.esm.js.map +1 -1
  887. package/dist/kolibri/kol-link-button.entry.js +1 -1
  888. package/dist/kolibri/kol-link-button.entry.js.map +1 -1
  889. package/dist/kolibri/kol-link-wc.entry.esm.js.map +1 -1
  890. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  891. package/dist/kolibri/kol-link-wc.entry.js.map +1 -1
  892. package/dist/kolibri/kol-link.entry.esm.js.map +1 -1
  893. package/dist/kolibri/kol-link.entry.js +1 -1
  894. package/dist/kolibri/kol-link.entry.js.map +1 -1
  895. package/dist/kolibri/kol-meter.entry.esm.js.map +1 -1
  896. package/dist/kolibri/kol-meter.entry.js +1 -1
  897. package/dist/kolibri/kol-meter.entry.js.map +1 -1
  898. package/dist/kolibri/kol-modal.entry.esm.js.map +1 -1
  899. package/dist/kolibri/kol-modal.entry.js +1 -1
  900. package/dist/kolibri/kol-modal.entry.js.map +1 -1
  901. package/dist/kolibri/kol-nav.entry.esm.js.map +1 -1
  902. package/dist/kolibri/kol-nav.entry.js +1 -1
  903. package/dist/kolibri/kol-nav.entry.js.map +1 -1
  904. package/dist/kolibri/kol-pagination-wc.entry.js +1 -1
  905. package/dist/kolibri/kol-pagination.entry.esm.js.map +1 -1
  906. package/dist/kolibri/kol-pagination.entry.js +1 -1
  907. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  908. package/dist/kolibri/kol-popover-button-wc.entry.js +1 -1
  909. package/dist/kolibri/kol-popover-button-wc.entry.js.map +1 -1
  910. package/dist/kolibri/kol-popover-button.entry.esm.js.map +1 -1
  911. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  912. package/dist/kolibri/kol-popover-button.entry.js.map +1 -1
  913. package/dist/kolibri/kol-progress.entry.esm.js.map +1 -1
  914. package/dist/kolibri/kol-progress.entry.js +1 -1
  915. package/dist/kolibri/kol-progress.entry.js.map +1 -1
  916. package/dist/kolibri/kol-quote.entry.esm.js.map +1 -1
  917. package/dist/kolibri/kol-quote.entry.js +1 -1
  918. package/dist/kolibri/kol-quote.entry.js.map +1 -1
  919. package/dist/kolibri/kol-select-wc.entry.js +1 -1
  920. package/dist/kolibri/kol-select-wc.entry.js.map +1 -1
  921. package/dist/kolibri/kol-select.entry.esm.js.map +1 -1
  922. package/dist/kolibri/kol-select.entry.js +1 -1
  923. package/dist/kolibri/kol-select.entry.js.map +1 -1
  924. package/dist/kolibri/kol-single-select.entry.esm.js.map +1 -1
  925. package/dist/kolibri/kol-single-select.entry.js +1 -1
  926. package/dist/kolibri/kol-single-select.entry.js.map +1 -1
  927. package/dist/kolibri/kol-skeleton.entry.js +1 -1
  928. package/dist/kolibri/kol-skeleton.entry.js.map +1 -1
  929. package/dist/kolibri/kol-skip-nav.entry.esm.js.map +1 -1
  930. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  931. package/dist/kolibri/kol-skip-nav.entry.js.map +1 -1
  932. package/dist/kolibri/kol-spin.entry.esm.js.map +1 -1
  933. package/dist/kolibri/kol-spin.entry.js +1 -1
  934. package/dist/kolibri/kol-spin.entry.js.map +1 -1
  935. package/dist/kolibri/kol-split-button.entry.esm.js.map +1 -1
  936. package/dist/kolibri/kol-split-button.entry.js +1 -1
  937. package/dist/kolibri/kol-split-button.entry.js.map +1 -1
  938. package/dist/kolibri/kol-table-settings-wc.entry.esm.js.map +1 -1
  939. package/dist/kolibri/kol-table-settings-wc.entry.js +1 -1
  940. package/dist/kolibri/kol-table-settings-wc.entry.js.map +1 -1
  941. package/dist/kolibri/kol-table-stateful.entry.esm.js.map +1 -1
  942. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  943. package/dist/kolibri/kol-table-stateful.entry.js.map +1 -1
  944. package/dist/kolibri/kol-table-stateless-wc.entry.js +1 -1
  945. package/dist/kolibri/kol-table-stateless-wc.entry.js.map +1 -1
  946. package/dist/kolibri/kol-table-stateless.entry.esm.js.map +1 -1
  947. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  948. package/dist/kolibri/kol-table-stateless.entry.js.map +1 -1
  949. package/dist/kolibri/kol-tabs.entry.esm.js.map +1 -1
  950. package/dist/kolibri/kol-tabs.entry.js +1 -1
  951. package/dist/kolibri/kol-tabs.entry.js.map +1 -1
  952. package/dist/kolibri/kol-textarea.entry.esm.js.map +1 -1
  953. package/dist/kolibri/kol-textarea.entry.js +1 -1
  954. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  955. package/dist/kolibri/kol-toast-container.entry.esm.js.map +1 -1
  956. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  957. package/dist/kolibri/kol-toast-container.entry.js.map +1 -1
  958. package/dist/kolibri/kol-toolbar.entry.esm.js.map +1 -1
  959. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  960. package/dist/kolibri/kol-toolbar.entry.js.map +1 -1
  961. package/dist/kolibri/kol-tooltip-wc.entry.esm.js.map +1 -1
  962. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  963. package/dist/kolibri/kol-tooltip-wc.entry.js.map +1 -1
  964. package/dist/kolibri/kol-tree-item-wc.entry.js +1 -1
  965. package/dist/kolibri/kol-tree-item-wc.entry.js.map +1 -1
  966. package/dist/kolibri/kol-tree-item.entry.esm.js.map +1 -1
  967. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  968. package/dist/kolibri/kol-tree-item.entry.js.map +1 -1
  969. package/dist/kolibri/kol-tree-wc.entry.js +1 -1
  970. package/dist/kolibri/kol-tree.entry.esm.js.map +1 -1
  971. package/dist/kolibri/kol-tree.entry.js +1 -1
  972. package/dist/kolibri/kol-tree.entry.js.map +1 -1
  973. package/dist/kolibri/kol-version.entry.esm.js.map +1 -1
  974. package/dist/kolibri/kol-version.entry.js +1 -1
  975. package/dist/kolibri/kol-version.entry.js.map +1 -1
  976. package/dist/kolibri/kolibri.esm.js +1 -1
  977. package/dist/kolibri/label-FtX-skKy.js +5 -0
  978. package/dist/kolibri/label-FtX-skKy.js.map +1 -0
  979. package/dist/kolibri/label-w3T7Y2ih.js +5 -0
  980. package/dist/{esm/label-lhyZhbiM.js.map → kolibri/label-w3T7Y2ih.js.map} +1 -1
  981. package/dist/kolibri/label-with-expert-slot-CU-oeLnm.js +5 -0
  982. package/dist/kolibri/{label-with-expert-slot-3VWute5S.js.map → label-with-expert-slot-CU-oeLnm.js.map} +1 -1
  983. package/dist/kolibri/level-Cj2m5HKt.js +5 -0
  984. package/dist/{esm/level-B2RyXnam.js.map → kolibri/level-Cj2m5HKt.js.map} +1 -1
  985. package/dist/kolibri/multiple-BZRAazRb.js +5 -0
  986. package/dist/kolibri/{multiple-RvvepSN9.js.map → multiple-BZRAazRb.js.map} +1 -1
  987. package/dist/kolibri/normalizers-BNeak4hj.js +5 -0
  988. package/dist/{cjs/normalizers-DFaq-Isv.js.map → kolibri/normalizers-BNeak4hj.js.map} +1 -1
  989. package/dist/kolibri/open-BRQrMgjX.js +5 -0
  990. package/dist/kolibri/{open-CA1J3ZTK.js.map → open-BRQrMgjX.js.map} +1 -1
  991. package/dist/kolibri/orientation-CfF8dz-f.js +5 -0
  992. package/dist/kolibri/{orientation-Dw3BhNjY.js.map → orientation-CfF8dz-f.js.map} +1 -1
  993. package/dist/kolibri/placeholder-CmUUN-3U.js +5 -0
  994. package/dist/kolibri/{placeholder-JIf_Jr3v.js.map → placeholder-CmUUN-3U.js.map} +1 -1
  995. package/dist/kolibri/read-only-DyDY-E9H.js +5 -0
  996. package/dist/kolibri/{read-only-CxpGC8Fy.js.map → read-only-DyDY-E9H.js.map} +1 -1
  997. package/dist/kolibri/required-CGf-IRxL.js +5 -0
  998. package/dist/kolibri/{required-DGhzuKQB.js.map → required-CGf-IRxL.js.map} +1 -1
  999. package/dist/kolibri/rows-DlWRIMNQ.js +5 -0
  1000. package/dist/kolibri/{rows-BRaIYumW.js.map → rows-DlWRIMNQ.js.map} +1 -1
  1001. package/dist/kolibri/spell-check-6kYqpIpx.js +5 -0
  1002. package/dist/kolibri/{spell-check-BYuCSD3X.js.map → spell-check-6kYqpIpx.js.map} +1 -1
  1003. package/dist/kolibri/src-BnjoA2Q6.js +5 -0
  1004. package/dist/kolibri/{src-DugryP6L.js.map → src-BnjoA2Q6.js.map} +1 -1
  1005. package/dist/kolibri/suggestions-CKylTAKv.js +5 -0
  1006. package/dist/kolibri/{suggestions-ofHp_5qm.js.map → suggestions-CKylTAKv.js.map} +1 -1
  1007. package/dist/kolibri/{table-selection-CHYGiAxJ.js → table-selection-CB6W390S.js} +2 -2
  1008. package/dist/kolibri/{table-selection-CHYGiAxJ.js.map → table-selection-CB6W390S.js.map} +1 -1
  1009. package/dist/kolibri/test-component.entry.js +1 -1
  1010. package/dist/kolibri/tooltip-align-BQmLWbBy.js +5 -0
  1011. package/dist/kolibri/{tooltip-align-DWAWPZn0.js.map → tooltip-align-BQmLWbBy.js.map} +1 -1
  1012. package/dist/kolibri/unique-nav-labels-B6_Oto5e.js +5 -0
  1013. package/dist/kolibri/{unique-nav-labels-B0tCIm30.js.map → unique-nav-labels-B6_Oto5e.js.map} +1 -1
  1014. package/dist/kolibri/validation-BZPzOg5I.js +5 -0
  1015. package/dist/kolibri/{validation-BT4VYADp.js.map → validation-BZPzOg5I.js.map} +1 -1
  1016. package/dist/kolibri/validation-Cnndf99L.js +5 -0
  1017. package/dist/kolibri/{validation-BFb56Yd7.js.map → validation-Cnndf99L.js.map} +1 -1
  1018. package/dist/kolibri/value-number-clamped-Fuextuj1.js +5 -0
  1019. package/dist/{esm/value-number-clamped-D39JJzpQ.js.map → kolibri/value-number-clamped-Fuextuj1.js.map} +1 -1
  1020. package/dist/kolibri/{variant-class-name-B0Wpr2i8.js → variant-class-name-9qZ5egaq.js} +2 -2
  1021. package/dist/kolibri/{variant-class-name-B0Wpr2i8.js.map → variant-class-name-9qZ5egaq.js.map} +1 -1
  1022. package/dist/kolibri/variant-quote-ClYWonZq.js +5 -0
  1023. package/dist/{esm/variant-quote-CRKM9QG2.js.map → kolibri/variant-quote-ClYWonZq.js.map} +1 -1
  1024. package/dist/types/components/input-color/shadow.d.ts +0 -4
  1025. package/dist/types/components/table-stateless/table-settings.d.ts +1 -1
  1026. package/dist/types/internal/props/helpers/factory.d.ts +6 -4
  1027. package/dist/types/internal/props/hints/index.d.ts +1 -0
  1028. package/dist/types/internal/props/hints/label-hints.d.ts +1 -0
  1029. package/loader/index.d.ts +1 -1
  1030. package/package.json +1 -1
  1031. package/dist/cjs/component-DtHo7-Fb.js.map +0 -1
  1032. package/dist/cjs/index-C33JNmDM.js.map +0 -1
  1033. package/dist/cjs/label-CvV5Nbsg.js +0 -13
  1034. package/dist/cjs/label-CvV5Nbsg.js.map +0 -1
  1035. package/dist/esm/component-B7G-dIP7.js.map +0 -1
  1036. package/dist/esm/index-02qzyFjP.js.map +0 -1
  1037. package/dist/esm/label-BE6oW-7F.js +0 -11
  1038. package/dist/esm/label-BE6oW-7F.js.map +0 -1
  1039. package/dist/kolibri/Alert-DXOQ9aSr.js +0 -5
  1040. package/dist/kolibri/Collapsible-1ue3DBSn.js +0 -5
  1041. package/dist/kolibri/FieldControlStateWrapper-KW0D4CYF.js +0 -5
  1042. package/dist/kolibri/FormFieldStateWrapper-D_fQzIsx.js +0 -5
  1043. package/dist/kolibri/Input-BANECVEf.js +0 -5
  1044. package/dist/kolibri/InputStateWrapper-csFDH3yt.js +0 -5
  1045. package/dist/kolibri/align-BNmcYY75.js +0 -5
  1046. package/dist/kolibri/app-globals-C2WuwgyL.js +0 -5
  1047. package/dist/kolibri/aria-details-o1tujJRX.js +0 -5
  1048. package/dist/kolibri/aria-labelledby-CuNgjL1c.js +0 -5
  1049. package/dist/kolibri/behavior-Ctzwvpyr.js +0 -5
  1050. package/dist/kolibri/bootstrap-dbQte9BJ.js +0 -5
  1051. package/dist/kolibri/component-B7G-dIP7.js +0 -5
  1052. package/dist/kolibri/component-B7G-dIP7.js.map +0 -1
  1053. package/dist/kolibri/component-BmDYhnTg.js +0 -5
  1054. package/dist/kolibri/component-BuQ_u4hn.js +0 -5
  1055. package/dist/kolibri/component-DEJ7VlaD.js +0 -5
  1056. package/dist/kolibri/contrast-BQCqf-V1.js +0 -5
  1057. package/dist/kolibri/controller-CrEJoj-8.js +0 -5
  1058. package/dist/kolibri/controller-icon-BEn5b0cq.js +0 -5
  1059. package/dist/kolibri/custom-class-DpFc73O_.js +0 -5
  1060. package/dist/kolibri/has-closer-DyXBWIQh.js +0 -5
  1061. package/dist/kolibri/hide-label-LlZnbrzc.js +0 -5
  1062. package/dist/kolibri/href-BKrnu0s2.js +0 -5
  1063. package/dist/kolibri/i18n-CrXMv0tS.js +0 -5
  1064. package/dist/kolibri/icons-DT5u2gpq.js +0 -5
  1065. package/dist/kolibri/index-02qzyFjP.js.map +0 -1
  1066. package/dist/kolibri/inline-CqNhbN6Q.js +0 -5
  1067. package/dist/kolibri/label-BE6oW-7F.js +0 -5
  1068. package/dist/kolibri/label-BE6oW-7F.js.map +0 -1
  1069. package/dist/kolibri/label-lhyZhbiM.js +0 -5
  1070. package/dist/kolibri/label-with-expert-slot-3VWute5S.js +0 -5
  1071. package/dist/kolibri/level-B2RyXnam.js +0 -5
  1072. package/dist/kolibri/multiple-RvvepSN9.js +0 -5
  1073. package/dist/kolibri/normalizers-DWPxOTIP.js +0 -5
  1074. package/dist/kolibri/open-CA1J3ZTK.js +0 -5
  1075. package/dist/kolibri/orientation-Dw3BhNjY.js +0 -5
  1076. package/dist/kolibri/placeholder-JIf_Jr3v.js +0 -5
  1077. package/dist/kolibri/read-only-CxpGC8Fy.js +0 -5
  1078. package/dist/kolibri/required-DGhzuKQB.js +0 -5
  1079. package/dist/kolibri/rows-BRaIYumW.js +0 -5
  1080. package/dist/kolibri/spell-check-BYuCSD3X.js +0 -5
  1081. package/dist/kolibri/src-DugryP6L.js +0 -5
  1082. package/dist/kolibri/suggestions-ofHp_5qm.js +0 -5
  1083. package/dist/kolibri/tooltip-align-DWAWPZn0.js +0 -5
  1084. package/dist/kolibri/unique-nav-labels-B0tCIm30.js +0 -5
  1085. package/dist/kolibri/validation-BFb56Yd7.js +0 -5
  1086. package/dist/kolibri/validation-BT4VYADp.js +0 -5
  1087. package/dist/kolibri/value-number-clamped-D39JJzpQ.js +0 -5
  1088. package/dist/kolibri/variant-quote-CRKM9QG2.js +0 -5
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import { L as Log, d as de, w } from './common-noYAs-wc.js';
5
- import { a as setMode } from './index-02qzyFjP.js';
4
+ import { L as Log, d as de, w } from './common-D-vggmh2.js';
5
+ import { a as setMode } from './index-C_ZKddLG.js';
6
6
 
7
7
  var appGlobalScript = () => {
8
8
  setMode((elm) => {
@@ -15,7 +15,7 @@ var appGlobalScript = () => {
15
15
  }
16
16
  return 'default';
17
17
  });
18
- import('./devtools-BzZNn3Mb.js')
18
+ import('./devtools-CAWyelfv.js')
19
19
  .then((devTools) => {
20
20
  if (typeof devTools === 'object' && devTools !== null && typeof devTools.initialize === 'function') {
21
21
  devTools.initialize();
@@ -29,6 +29,6 @@ var appGlobalScript = () => {
29
29
  const globalScripts = appGlobalScript;
30
30
 
31
31
  export { globalScripts as g };
32
- //# sourceMappingURL=app-globals-C2WuwgyL.js.map
32
+ //# sourceMappingURL=app-globals-D_kl2ROP.js.map
33
33
 
34
- //# sourceMappingURL=app-globals-C2WuwgyL.js.map
34
+ //# sourceMappingURL=app-globals-D_kl2ROP.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"app-globals-C2WuwgyL.js","sources":["src/global/script.ts","@stencil/core/internal/app-globals"],"sourcesContent":["import { getThemeDetails, setThemeStyle } from 'adopted-style-sheets';\n\nimport { setMode } from '@stencil/core';\nimport { Log } from '../schema';\n\nexport default () => {\n\tsetMode((elm) => {\n\t\ttry {\n\t\t\tif (elm.shadowRoot instanceof ShadowRoot) {\n\t\t\t\tsetThemeStyle(elm, getThemeDetails(elm));\n\t\t\t}\n\t\t} catch {\n\t\t\t/**\n\t\t\t * Try is needed for SSR.\n\t\t\t * - no HTMLElement is available\n\t\t\t * - no ShadowRoot is available\n\t\t\t */\n\t\t}\n\t\treturn 'default';\n\t});\n\n\timport('./devtools')\n\t\t.then((devTools) => {\n\t\t\tif (typeof devTools === 'object' && devTools !== null && typeof devTools.initialize === 'function') {\n\t\t\t\tdevTools.initialize();\n\t\t\t}\n\t\t})\n\t\t.catch((error) => {\n\t\t\tLog.error(error);\n\t\t});\n};\n","import appGlobalScript from '/home/runner/work/kolibri/kolibri/packages/components/src/global/script.ts';\nexport const globalScripts = appGlobalScript;\nexport const globalStyles = \"\";\n"],"names":["setThemeStyle","getThemeDetails"],"mappings":";;;;;;AAKA,sBAAe,MAAK;AACnB,IAAA,OAAO,CAAC,CAAC,GAAG,KAAI;AACf,QAAA,IAAI;AACH,YAAA,IAAI,GAAG,CAAC,UAAU,YAAY,UAAU,EAAE;gBACzCA,EAAa,CAAC,GAAG,EAAEC,CAAe,CAAC,GAAG,CAAC,CAAC;;;QAExC,OAAA,EAAA,EAAM;;AAOR,QAAA,OAAO,SAAS;AACjB,KAAC,CAAC;IAEF,OAAO,wBAAY;AACjB,SAAA,IAAI,CAAC,CAAC,QAAQ,KAAI;AAClB,QAAA,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,KAAK,IAAI,IAAI,OAAO,QAAQ,CAAC,UAAU,KAAK,UAAU,EAAE;YACnG,QAAQ,CAAC,UAAU,EAAE;;AAEvB,KAAC;AACA,SAAA,KAAK,CAAC,CAAC,KAAK,KAAI;AAChB,QAAA,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC;AACjB,KAAC,CAAC;AACJ,CAAC;;AC7BW,MAAC,aAAa,GAAG;;;;"}
1
+ {"version":3,"file":"app-globals-D_kl2ROP.js","sources":["src/global/script.ts","@stencil/core/internal/app-globals"],"sourcesContent":["import { getThemeDetails, setThemeStyle } from 'adopted-style-sheets';\n\nimport { setMode } from '@stencil/core';\nimport { Log } from '../schema';\n\nexport default () => {\n\tsetMode((elm) => {\n\t\ttry {\n\t\t\tif (elm.shadowRoot instanceof ShadowRoot) {\n\t\t\t\tsetThemeStyle(elm, getThemeDetails(elm));\n\t\t\t}\n\t\t} catch {\n\t\t\t/**\n\t\t\t * Try is needed for SSR.\n\t\t\t * - no HTMLElement is available\n\t\t\t * - no ShadowRoot is available\n\t\t\t */\n\t\t}\n\t\treturn 'default';\n\t});\n\n\timport('./devtools')\n\t\t.then((devTools) => {\n\t\t\tif (typeof devTools === 'object' && devTools !== null && typeof devTools.initialize === 'function') {\n\t\t\t\tdevTools.initialize();\n\t\t\t}\n\t\t})\n\t\t.catch((error) => {\n\t\t\tLog.error(error);\n\t\t});\n};\n","import appGlobalScript from '/home/runner/work/kolibri/kolibri/packages/components/src/global/script.ts';\nexport const globalScripts = appGlobalScript;\nexport const globalStyles = \"\";\n"],"names":["setThemeStyle","getThemeDetails"],"mappings":";;;;;;AAKA,sBAAe,MAAK;AACnB,IAAA,OAAO,CAAC,CAAC,GAAG,KAAI;AACf,QAAA,IAAI;AACH,YAAA,IAAI,GAAG,CAAC,UAAU,YAAY,UAAU,EAAE;gBACzCA,EAAa,CAAC,GAAG,EAAEC,CAAe,CAAC,GAAG,CAAC,CAAC;;;QAExC,OAAA,EAAA,EAAM;;AAOR,QAAA,OAAO,SAAS;AACjB,KAAC,CAAC;IAEF,OAAO,wBAAY;AACjB,SAAA,IAAI,CAAC,CAAC,QAAQ,KAAI;AAClB,QAAA,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,KAAK,IAAI,IAAI,OAAO,QAAQ,CAAC,UAAU,KAAK,UAAU,EAAE;YACnG,QAAQ,CAAC,UAAU,EAAE;;AAEvB,KAAC;AACA,SAAA,KAAK,CAAC,CAAC,KAAK,KAAI;AAChB,QAAA,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC;AACjB,KAAC,CAAC;AACJ,CAAC;;AC7BW,MAAC,aAAa,GAAG;;;;"}
@@ -2,7 +2,7 @@
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
4
  import { r as resolveTargets } from './aria-labelledby-6-ki3akM.js';
5
- import { b as watchValidator, L as Log } from './common-noYAs-wc.js';
5
+ import { b as watchValidator, L as Log } from './common-D-vggmh2.js';
6
6
 
7
7
  const validateAriaDetails = (component, host, internals, value) => {
8
8
  watchValidator(component, '_ariaDetails', (value) => typeof value === 'string' || typeof value === 'undefined', new Set(['string']), value);
@@ -19,6 +19,6 @@ const validateAriaDetails = (component, host, internals, value) => {
19
19
  };
20
20
 
21
21
  export { validateAriaDetails as v };
22
- //# sourceMappingURL=aria-details-o1tujJRX.js.map
22
+ //# sourceMappingURL=aria-details-hRfn8aN9.js.map
23
23
 
24
- //# sourceMappingURL=aria-details-o1tujJRX.js.map
24
+ //# sourceMappingURL=aria-details-hRfn8aN9.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"aria-details-o1tujJRX.js","sources":["src/schema/props/aria-details.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport type { HostInternals } from '../../utils/aria-labelledby';\nimport { resolveTargets } from '../../utils/aria-labelledby';\nimport { Log, watchValidator } from '../utils';\n\n/* types */\n/**\n * An IDREF (space-separated) identifying external element(s) that provide accessible details for this component.\n * Resolves the IDREF to element references and sets them via ElementInternals.ariaDetailsElements\n * to cross the Shadow DOM boundary.\n * Desktop screen readers (NVDA + Chrome, JAWS + Chrome) follow the reference;\n * mobile screen readers (TalkBack, VoiceOver iOS) may have limited support.\n */\nexport type AriaDetailsPropType = string;\n\nexport type PropAriaDetails = {\n\tariaDetails: AriaDetailsPropType;\n};\n\n/* validator */\nexport const validateAriaDetails = (\n\tcomponent: unknown,\n\thost: HTMLElement | Element | undefined,\n\tinternals: HostInternals | undefined,\n\tvalue?: AriaDetailsPropType,\n): HTMLElement[] => {\n\twatchValidator(\n\t\tcomponent as Generic.Element.Component,\n\t\t'_ariaDetails',\n\t\t(value): boolean => typeof value === 'string' || typeof value === 'undefined',\n\t\tnew Set(['string']),\n\t\tvalue,\n\t);\n\n\tconst elements = resolveTargets(host, value);\n\tif (internals) {\n\t\ttry {\n\t\t\tinternals.ariaDetailsElements = elements;\n\t\t} catch {\n\t\t\t// ariaDetailsElements is not supported in this environment — silently skip.\n\t\t}\n\t\tLog.debug(['WebComponent internals', internals]);\n\t}\n\treturn elements;\n};\n"],"names":[],"mappings":";;;;;;AAqBO,MAAM,mBAAmB,GAAG,CAClC,SAAkB,EAClB,IAAuC,EACvC,SAAoC,EACpC,KAA2B,KACT;AAClB,IAAA,cAAc,CACb,SAAsC,EACtC,cAAc,EACd,CAAC,KAAK,KAAc,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,WAAW,EAC7E,IAAI,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,EACnB,KAAK,CACL;IAED,MAAM,QAAQ,GAAG,cAAc,CAAC,IAAI,EAAE,KAAK,CAAC;IAC5C,IAAI,SAAS,EAAE;AACd,QAAA,IAAI;AACH,YAAA,SAAS,CAAC,mBAAmB,GAAG,QAAQ;;QACvC,OAAA,EAAA,EAAM;;QAGR,GAAG,CAAC,KAAK,CAAC,CAAC,wBAAwB,EAAE,SAAS,CAAC,CAAC;;AAEjD,IAAA,OAAO,QAAQ;AAChB;;;;"}
1
+ {"version":3,"file":"aria-details-hRfn8aN9.js","sources":["src/schema/props/aria-details.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport type { HostInternals } from '../../utils/aria-labelledby';\nimport { resolveTargets } from '../../utils/aria-labelledby';\nimport { Log, watchValidator } from '../utils';\n\n/* types */\n/**\n * An IDREF (space-separated) identifying external element(s) that provide accessible details for this component.\n * Resolves the IDREF to element references and sets them via ElementInternals.ariaDetailsElements\n * to cross the Shadow DOM boundary.\n * Desktop screen readers (NVDA + Chrome, JAWS + Chrome) follow the reference;\n * mobile screen readers (TalkBack, VoiceOver iOS) may have limited support.\n */\nexport type AriaDetailsPropType = string;\n\nexport type PropAriaDetails = {\n\tariaDetails: AriaDetailsPropType;\n};\n\n/* validator */\nexport const validateAriaDetails = (\n\tcomponent: unknown,\n\thost: HTMLElement | Element | undefined,\n\tinternals: HostInternals | undefined,\n\tvalue?: AriaDetailsPropType,\n): HTMLElement[] => {\n\twatchValidator(\n\t\tcomponent as Generic.Element.Component,\n\t\t'_ariaDetails',\n\t\t(value): boolean => typeof value === 'string' || typeof value === 'undefined',\n\t\tnew Set(['string']),\n\t\tvalue,\n\t);\n\n\tconst elements = resolveTargets(host, value);\n\tif (internals) {\n\t\ttry {\n\t\t\tinternals.ariaDetailsElements = elements;\n\t\t} catch {\n\t\t\t// ariaDetailsElements is not supported in this environment — silently skip.\n\t\t}\n\t\tLog.debug(['WebComponent internals', internals]);\n\t}\n\treturn elements;\n};\n"],"names":[],"mappings":";;;;;;AAqBO,MAAM,mBAAmB,GAAG,CAClC,SAAkB,EAClB,IAAuC,EACvC,SAAoC,EACpC,KAA2B,KACT;AAClB,IAAA,cAAc,CACb,SAAsC,EACtC,cAAc,EACd,CAAC,KAAK,KAAc,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,WAAW,EAC7E,IAAI,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,EACnB,KAAK,CACL;IAED,MAAM,QAAQ,GAAG,cAAc,CAAC,IAAI,EAAE,KAAK,CAAC;IAC5C,IAAI,SAAS,EAAE;AACd,QAAA,IAAI;AACH,YAAA,SAAS,CAAC,mBAAmB,GAAG,QAAQ;;QACvC,OAAA,EAAA,EAAM;;QAGR,GAAG,CAAC,KAAK,CAAC,CAAC,wBAAwB,EAAE,SAAS,CAAC,CAAC;;AAEjD,IAAA,OAAO,QAAQ;AAChB;;;;"}
@@ -2,7 +2,7 @@
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
4
  import { r as resolveTargets } from './aria-labelledby-6-ki3akM.js';
5
- import { b as watchValidator, L as Log } from './common-noYAs-wc.js';
5
+ import { b as watchValidator, L as Log } from './common-D-vggmh2.js';
6
6
 
7
7
  const validateAriaLabelledby = (component, host, internals, value) => {
8
8
  watchValidator(component, '_ariaLabelledby', (value) => typeof value === 'string' || typeof value === 'undefined', new Set(['string']), value);
@@ -19,6 +19,6 @@ const validateAriaLabelledby = (component, host, internals, value) => {
19
19
  };
20
20
 
21
21
  export { validateAriaLabelledby as v };
22
- //# sourceMappingURL=aria-labelledby-CuNgjL1c.js.map
22
+ //# sourceMappingURL=aria-labelledby-D6AMAZtK.js.map
23
23
 
24
- //# sourceMappingURL=aria-labelledby-CuNgjL1c.js.map
24
+ //# sourceMappingURL=aria-labelledby-D6AMAZtK.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"aria-labelledby-CuNgjL1c.js","sources":["src/schema/props/aria-labelledby.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport type { HostInternals } from '../../utils/aria-labelledby';\nimport { resolveTargets } from '../../utils/aria-labelledby';\nimport { Log, watchValidator } from '../utils';\n\n/* types */\n/**\n * An IDREF (space-separated) identifying external element(s) that label this component.\n *\n * Internally the component resolves the IDREF to an element reference and sets it via\n * ElementInternals.ariaLabelledByElements so the accessible name crosses the Shadow DOM\n * boundary. Desktop screen readers (NVDA + Chrome, JAWS + Chrome) follow this chain;\n * mobile screen readers (TalkBack, VoiceOver iOS) do not yet support element references\n * across shadow boundaries — use `_label` when TalkBack support is required.\n */\nexport type AriaLabelledbyPropType = string;\n\nexport type PropAriaLabelledby = {\n\tariaLabelledby: AriaLabelledbyPropType;\n};\n\n/* validator */\nexport const validateAriaLabelledby = (\n\tcomponent: unknown,\n\thost: HTMLElement | undefined,\n\tinternals: HostInternals | undefined,\n\tvalue?: AriaLabelledbyPropType,\n): HTMLElement[] => {\n\twatchValidator(\n\t\tcomponent as Generic.Element.Component,\n\t\t'_ariaLabelledby',\n\t\t(value): boolean => typeof value === 'string' || typeof value === 'undefined',\n\t\tnew Set(['string']),\n\t\tvalue,\n\t);\n\n\tconst elements = resolveTargets(host, value);\n\tif (internals) {\n\t\ttry {\n\t\t\tinternals.ariaLabelledByElements = elements;\n\t\t} catch {\n\t\t\t// ariaLabelledByElements is not supported in this environment — silently skip.\n\t\t}\n\t\tLog.debug(['WebComponent internals', internals]);\n\t}\n\treturn elements;\n};\n"],"names":[],"mappings":";;;;;;AAuBO,MAAM,sBAAsB,GAAG,CACrC,SAAkB,EAClB,IAA6B,EAC7B,SAAoC,EACpC,KAA8B,KACZ;AAClB,IAAA,cAAc,CACb,SAAsC,EACtC,iBAAiB,EACjB,CAAC,KAAK,KAAc,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,WAAW,EAC7E,IAAI,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,EACnB,KAAK,CACL;IAED,MAAM,QAAQ,GAAG,cAAc,CAAC,IAAI,EAAE,KAAK,CAAC;IAC5C,IAAI,SAAS,EAAE;AACd,QAAA,IAAI;AACH,YAAA,SAAS,CAAC,sBAAsB,GAAG,QAAQ;;QAC1C,OAAA,EAAA,EAAM;;QAGR,GAAG,CAAC,KAAK,CAAC,CAAC,wBAAwB,EAAE,SAAS,CAAC,CAAC;;AAEjD,IAAA,OAAO,QAAQ;AAChB;;;;"}
1
+ {"version":3,"file":"aria-labelledby-D6AMAZtK.js","sources":["src/schema/props/aria-labelledby.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport type { HostInternals } from '../../utils/aria-labelledby';\nimport { resolveTargets } from '../../utils/aria-labelledby';\nimport { Log, watchValidator } from '../utils';\n\n/* types */\n/**\n * An IDREF (space-separated) identifying external element(s) that label this component.\n *\n * Internally the component resolves the IDREF to an element reference and sets it via\n * ElementInternals.ariaLabelledByElements so the accessible name crosses the Shadow DOM\n * boundary. Desktop screen readers (NVDA + Chrome, JAWS + Chrome) follow this chain;\n * mobile screen readers (TalkBack, VoiceOver iOS) do not yet support element references\n * across shadow boundaries — use `_label` when TalkBack support is required.\n */\nexport type AriaLabelledbyPropType = string;\n\nexport type PropAriaLabelledby = {\n\tariaLabelledby: AriaLabelledbyPropType;\n};\n\n/* validator */\nexport const validateAriaLabelledby = (\n\tcomponent: unknown,\n\thost: HTMLElement | undefined,\n\tinternals: HostInternals | undefined,\n\tvalue?: AriaLabelledbyPropType,\n): HTMLElement[] => {\n\twatchValidator(\n\t\tcomponent as Generic.Element.Component,\n\t\t'_ariaLabelledby',\n\t\t(value): boolean => typeof value === 'string' || typeof value === 'undefined',\n\t\tnew Set(['string']),\n\t\tvalue,\n\t);\n\n\tconst elements = resolveTargets(host, value);\n\tif (internals) {\n\t\ttry {\n\t\t\tinternals.ariaLabelledByElements = elements;\n\t\t} catch {\n\t\t\t// ariaLabelledByElements is not supported in this environment — silently skip.\n\t\t}\n\t\tLog.debug(['WebComponent internals', internals]);\n\t}\n\treturn elements;\n};\n"],"names":[],"mappings":";;;;;;AAuBO,MAAM,sBAAsB,GAAG,CACrC,SAAkB,EAClB,IAA6B,EAC7B,SAAoC,EACpC,KAA8B,KACZ;AAClB,IAAA,cAAc,CACb,SAAsC,EACtC,iBAAiB,EACjB,CAAC,KAAK,KAAc,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,WAAW,EAC7E,IAAI,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,EACnB,KAAK,CACL;IAED,MAAM,QAAQ,GAAG,cAAc,CAAC,IAAI,EAAE,KAAK,CAAC;IAC5C,IAAI,SAAS,EAAE;AACd,QAAA,IAAI;AACH,YAAA,SAAS,CAAC,sBAAsB,GAAG,QAAQ;;QAC1C,OAAA,EAAA,EAAM;;QAGR,GAAG,CAAC,KAAK,CAAC,CAAC,wBAAwB,EAAE,SAAS,CAAC,CAAC;;AAEjD,IAAA,OAAO,QAAQ;AAChB;;;;"}
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import { g as watchString, O as watchNumber, k as a11yHint, M as getExperimentalMode, j as devHint, F as devWarning } from './common-noYAs-wc.js';
5
- import { v as validateAriaDetails } from './aria-details-o1tujJRX.js';
4
+ import { g as watchString, O as watchNumber, k as a11yHint, N as getExperimentalMode, j as devHint, G as devWarning } from './common-D-vggmh2.js';
5
+ import { v as validateAriaDetails } from './aria-details-hRfn8aN9.js';
6
6
  import { a as attachInternals } from './aria-labelledby-6-ki3akM.js';
7
- import { g as getOptions } from './bootstrap-dbQte9BJ.js';
7
+ import { g as getOptions } from './bootstrap-Bfno1qh2.js';
8
8
 
9
9
  const validateAccessKey = (component, value) => {
10
10
  watchString(component, '_accessKey', value);
@@ -210,6 +210,6 @@ class AssociatedInputController {
210
210
  }
211
211
 
212
212
  export { AssociatedInputController as A, validateShortKey as a, validateTabIndex as b, validateAccessKey as v };
213
- //# sourceMappingURL=associated.controller-DSw2jkQs.js.map
213
+ //# sourceMappingURL=associated.controller-FCQDejnI.js.map
214
214
 
215
- //# sourceMappingURL=associated.controller-DSw2jkQs.js.map
215
+ //# sourceMappingURL=associated.controller-FCQDejnI.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"associated.controller-DSw2jkQs.js","sources":["src/schema/props/access-key.ts","src/schema/props/name.ts","src/schema/props/short-key.ts","src/schema/props/tab-index.ts","src/components/input-adapter-leanup/associated.controller.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\nimport { watchString } from '../utils';\n\n/* types */\nexport type AccessKeyPropType = string;\n\n/**\n * Defines the key combination that can be used to trigger or focus the component's interactive element.\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/accesskey\n */\nexport type PropAccessKey = {\n\taccessKey: AccessKeyPropType;\n};\n\n/* validator */\nexport const validateAccessKey = (component: Generic.Element.Component, value?: AccessKeyPropType): void => {\n\twatchString(component, '_accessKey', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { WatchStringOptions } from '../utils';\nimport { watchString } from '../utils';\n\n/* types */\nexport type NamePropType = string;\n\n/**\n * Defines the technical name of an input field.\n */\nexport type PropName = {\n\tname: NamePropType;\n};\n\n/* validator */\nexport const validateName = (component: Generic.Element.Component, value?: NamePropType, options?: WatchStringOptions): void => {\n\twatchString(component, '_name', value, options);\n};\n","import type { Generic } from 'adopted-style-sheets';\nimport { watchString } from '../utils';\n\n/* types */\nexport type ShortKeyPropType = string;\n\n/**\n * Adds a visual short key hint to the component and sets the `aria-keyshortcuts` attribute on the focusable element.\n */\nexport type PropShortKey = {\n\tshortKey: ShortKeyPropType;\n};\n\n/* validator */\nexport const validateShortKey = (component: Generic.Element.Component, value?: ShortKeyPropType): void => {\n\twatchString(component, '_shortKey', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { WatchNumberOptions } from '../utils';\nimport { a11yHint, watchNumber } from '../utils';\n\n/* types */\nexport type TabIndexPropType = number;\n\n/**\n * Defines which tab-index the primary element of the component has.\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex\n */\nexport type PropTabIndex = {\n\ttabIndex: TabIndexPropType;\n};\n\n/* constants */\nconst options: WatchNumberOptions = {\n\thooks: {\n\t\tafterPatch: (value) => {\n\t\t\tif (value !== -1 && value !== 0) {\n\t\t\t\ta11yHint(`Don't Use Tabindex Greater than 0: https://adrianroselli.com/2014/11/dont-use-tabindex-greater-than-0.html`);\n\t\t\t}\n\t\t},\n\t},\n};\n\n/* validator */\nexport const validateTabIndex = (component: Generic.Element.Component, value?: TabIndexPropType): void => {\n\twatchNumber(component, '_tabIndex', value, options);\n};\n","import type { NamePropType, PropSyncValueBySelector, StencilUnknown, SyncValueBySelectorPropType } from '../../schema';\nimport { devHint, devWarning, getExperimentalMode, validateName } from '../../schema';\n\nimport type { Generic } from 'adopted-style-sheets';\nimport { getOptions } from '../../core/bootstrap';\nimport { validateAriaDetails } from '../../schema/props/aria-details';\nimport { attachInternals, type HostInternals } from '../../utils/aria-labelledby';\n\ntype RequiredProps = NonNullable<unknown>;\ntype OptionalProps = {\n\tname: string;\n} & PropSyncValueBySelector;\ntype Props = Generic.Element.Members<RequiredProps, OptionalProps>;\ntype Watches = Generic.Element.Watchers<RequiredProps, OptionalProps>;\n\ntype HTMLInputFileElement = HTMLInputElement & {\n\tfiles: FileList;\n};\n\nconst isAssociatedTagName = (name?: string): boolean =>\n\tname === 'KOL-BUTTON' ||\n\tname === 'KOL-COMBOBOX' ||\n\tname === 'KOL-INPUT-CHECKBOX' ||\n\tname === 'KOL-INPUT-COLOR' ||\n\tname === 'KOL-INPUT-DATE' ||\n\tname === 'KOL-INPUT-EMAIL' ||\n\tname === 'KOL-INPUT-FILE' ||\n\tname === 'KOL-INPUT-NUMBER' ||\n\tname === 'KOL-INPUT-PASSWORD' ||\n\tname === 'KOL-INPUT-RADIO' ||\n\tname === 'KOL-INPUT-RANGE' ||\n\tname === 'KOL-INPUT-TEXT' ||\n\tname === 'KOL-SELECT' ||\n\tname === 'KOL-SINGLE-SELECT' ||\n\tname === 'KOL-TEXTAREA';\n\nexport class AssociatedInputController implements Watches {\n\tprivate readonly experimentalMode = getExperimentalMode();\n\n\tprotected readonly component: Generic.Element.Component & Props;\n\tprotected readonly type: string;\n\tprotected readonly host?: Element;\n\tpublic internals?: HostInternals;\n\n\tpublic readonly formAssociated?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\tpublic syncToOwnInput?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\n\tpublic constructor(component: Generic.Element.Component & Props, type: string, host?: Element) {\n\t\tthis.component = component;\n\t\tthis.host = this.findHostWithShadowRoot(host);\n\t\tthis.type = type;\n\t\tthis.internals = attachInternals(this.host);\n\n\t\tif (getOptions()?.reflectInputValues && isAssociatedTagName(this.host?.tagName) && component._name) {\n\t\t\tthis.host?.querySelectorAll('input,select,textarea').forEach((el) => {\n\t\t\t\tthis.host?.removeChild(el);\n\t\t\t});\n\t\t\tswitch (this.type) {\n\t\t\t\tcase 'button':\n\t\t\t\tcase 'color':\n\t\t\t\tcase 'date':\n\t\t\t\tcase 'email':\n\t\t\t\tcase 'file':\n\t\t\t\tcase 'number':\n\t\t\t\tcase 'password':\n\t\t\t\tcase 'radio':\n\t\t\t\tcase 'range':\n\t\t\t\tcase 'text':\n\t\t\t\t\tthis.formAssociated = document.createElement('input');\n\t\t\t\t\tthis.formAssociated.setAttribute('type', this.type);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'select':\n\t\t\t\t\tthis.formAssociated = document.createElement('select');\n\t\t\t\t\tthis.formAssociated.setAttribute('multiple', '');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'textarea':\n\t\t\t\t\tthis.formAssociated = document.createElement('textarea');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'checkbox': // Checkbox uses default case\n\t\t\t\tcase 'single-select': // SingleSelect uses default case\n\t\t\t\tcase 'combobox': // Combobox uses default case\n\t\t\t\tdefault:\n\t\t\t\t\tthis.formAssociated = document.createElement('input');\n\t\t\t\t\tthis.formAssociated.setAttribute('type', 'hidden');\n\t\t\t}\n\t\t\tthis.formAssociated.setAttribute('data-form-associated', '');\n\t\t\tthis.formAssociated.setAttribute('hidden', '');\n\t\t\tthis.host?.appendChild(this.formAssociated);\n\t\t}\n\t}\n\n\t/**\n\t * The associated elements must not reside within the ShadowRoot and must\n\t * reside as children in the host to be recognized by native forms.\n\t */\n\tprivate findHostWithShadowRoot(host?: Element): Element | undefined {\n\t\twhile (host?.shadowRoot === null && host !== document.body) {\n\t\t\tconst parent = host?.parentNode;\n\t\t\tif (parent instanceof ShadowRoot) {\n\t\t\t\thost = parent.host;\n\t\t\t} else {\n\t\t\t\thost = parent instanceof Element ? parent : undefined;\n\t\t\t}\n\t\t}\n\t\treturn host;\n\t}\n\n\tprotected setAttribute(qualifiedName: string, element?: HTMLElement, value?: string | number | boolean) {\n\t\tif (this.experimentalMode) {\n\t\t\ttry {\n\t\t\t\tvalue = typeof value === 'object' && value !== null ? JSON.stringify(value) : value;\n\t\t\t\tif (typeof value === 'boolean' || typeof value === 'number' || typeof value === 'string') {\n\t\t\t\t\telement?.setAttribute(qualifiedName, `${value as string}`);\n\t\t\t\t} else {\n\t\t\t\t\tthrow new Error(`Invalid value type: ${typeof value}`);\n\t\t\t\t}\n\t\t\t} catch {\n\t\t\t\telement?.removeAttribute(qualifiedName);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * We need to stringify the value, for the setAttribute method.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/setAttribute\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/attributes\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/attributes#value\n\t *\n\t * TODO: It is possible that the value are a cyclic object value. So we need a custom\n\t * JSON.stringify method from outside to convert it to string.\n\t */\n\tprivate tryToStringifyValue(value: StencilUnknown): string | null {\n\t\ttry {\n\t\t\treturn typeof value === 'object' && value !== null ? JSON.stringify(value).toString() : value === null || value === undefined ? null : value.toString();\n\t\t} catch (e) {\n\t\t\tdevWarning(`The form field raw value is not able to stringify! ${e as string}`);\n\t\t\treturn '';\n\t\t}\n\t}\n\n\t/**\n\t * We try to support native form-associated custom elements.\n\t *\n\t * @see https://github.com/public-ui/kolibri/discussions/2821\n\t */\n\tpublic readonly setFormAssociatedValue = (rawValue: StencilUnknown) => {\n\t\tconst name = this.formAssociated?.getAttribute('name');\n\t\tif (name === null || name === '') {\n\t\t\tdevHint(` The form field (${this.type}) must have a name attribute to be form-associated. Please define the _name attribute.`);\n\t\t}\n\t\tconst strValue = this.tryToStringifyValue(rawValue);\n\t\tthis.syncValue(rawValue, strValue, this.formAssociated);\n\t\tthis.syncValue(rawValue, strValue, this.syncToOwnInput);\n\t};\n\n\tprivate syncValue(\n\t\trawValue: StencilUnknown,\n\t\tstrValue: string | null,\n\t\tassociatedElement?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement,\n\t) {\n\t\tif (associatedElement) {\n\t\t\tswitch (this.type) {\n\t\t\t\tcase 'file':\n\t\t\t\t\t(associatedElement as HTMLInputFileElement).files = rawValue as FileList;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'select':\n\t\t\t\t\t(associatedElement as HTMLSelectElement).querySelectorAll('option').forEach((el) => {\n\t\t\t\t\t\t(associatedElement as HTMLSelectElement).removeChild(el);\n\t\t\t\t\t});\n\t\t\t\t\tif (Array.isArray(rawValue)) {\n\t\t\t\t\t\trawValue.forEach((rawValueItem) => {\n\t\t\t\t\t\t\tconst strValueItem = this.tryToStringifyValue(rawValueItem as string);\n\t\t\t\t\t\t\tif (typeof strValueItem === 'string') {\n\t\t\t\t\t\t\t\tconst option = document.createElement('option');\n\t\t\t\t\t\t\t\toption.setAttribute('value', strValueItem);\n\t\t\t\t\t\t\t\toption.setAttribute('selected', '');\n\t\t\t\t\t\t\t\t(associatedElement as HTMLSelectElement).appendChild(option);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'radio':\n\t\t\t\t\tif (typeof strValue === 'string') {\n\t\t\t\t\t\tassociatedElement.setAttribute('value', strValue);\n\t\t\t\t\t\tassociatedElement.setAttribute('checked', '');\n\t\t\t\t\t\tassociatedElement.value = strValue;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif (typeof strValue === 'string') {\n\t\t\t\t\t\tassociatedElement.setAttribute('value', strValue);\n\t\t\t\t\t\tassociatedElement.value = strValue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tassociatedElement.removeAttribute('value');\n\t\t\t\t\t\tassociatedElement.value = '';\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic validateName(value?: NamePropType): void {\n\t\tvalidateName(this.component, value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: () => {\n\t\t\t\t\tthis.setAttribute('name', this.formAssociated, this.component.state._name as string);\n\t\t\t\t},\n\t\t\t},\n\t\t});\n\t\tif (typeof value === 'undefined') {\n\t\t\tdevHint(\n\t\t\t\t`A name on input fields or switches is not strictly required, but it might be relevant for the autocomplete function and for the static submission of the input field.`,\n\t\t\t);\n\t\t}\n\t}\n\n\tpublic validateSyncValueBySelector(value?: SyncValueBySelectorPropType): void {\n\t\tif (this.experimentalMode && typeof value === 'string') {\n\t\t\tconst input = document.querySelector(value) as HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\t\t\tif (input /* SSR instanceof HTMLInputElement */) {\n\t\t\t\tthis.syncToOwnInput = input;\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic validateAriaDetails(value?: string): void {\n\t\tvalidateAriaDetails(this.component, this.host, this.internals, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateName(this.component._name);\n\t\tthis.validateSyncValueBySelector(this.component._syncValueBySelector);\n\t}\n}\n"],"names":[],"mappings":";;;;;;;;MAea,iBA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;AAII,IAAA,2BAA2B,CAAC,KAAmC,EAAA;QACrE,IAAI,IAAI,CAAC,gBAAgB,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YACvD,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAA+D;YACzG,IAAI,KAAK,EAAwC;AAChD,gBAAA,IAAI,CAAC,cAAc,GAAG,KAAK;;;;AAKvB,IAAA,mBAAmB,CAAC,KAAc,EAAA;AACxC,QAAA,mBAAmB,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC;;IAG/D,iBAAiB,GAAA;QACvB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;QACvC,IAAI,CAAC,2BAA2B,CAAC,IAAI,CAAC,SAAS,CAAC,oBAAoB,CAAC;;AAEtE;;;;"}
1
+ {"version":3,"file":"associated.controller-FCQDejnI.js","sources":["src/schema/props/access-key.ts","src/schema/props/name.ts","src/schema/props/short-key.ts","src/schema/props/tab-index.ts","src/components/input-adapter-leanup/associated.controller.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\nimport { watchString } from '../utils';\n\n/* types */\nexport type AccessKeyPropType = string;\n\n/**\n * Defines the key combination that can be used to trigger or focus the component's interactive element.\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/accesskey\n */\nexport type PropAccessKey = {\n\taccessKey: AccessKeyPropType;\n};\n\n/* validator */\nexport const validateAccessKey = (component: Generic.Element.Component, value?: AccessKeyPropType): void => {\n\twatchString(component, '_accessKey', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { WatchStringOptions } from '../utils';\nimport { watchString } from '../utils';\n\n/* types */\nexport type NamePropType = string;\n\n/**\n * Defines the technical name of an input field.\n */\nexport type PropName = {\n\tname: NamePropType;\n};\n\n/* validator */\nexport const validateName = (component: Generic.Element.Component, value?: NamePropType, options?: WatchStringOptions): void => {\n\twatchString(component, '_name', value, options);\n};\n","import type { Generic } from 'adopted-style-sheets';\nimport { watchString } from '../utils';\n\n/* types */\nexport type ShortKeyPropType = string;\n\n/**\n * Adds a visual short key hint to the component and sets the `aria-keyshortcuts` attribute on the focusable element.\n */\nexport type PropShortKey = {\n\tshortKey: ShortKeyPropType;\n};\n\n/* validator */\nexport const validateShortKey = (component: Generic.Element.Component, value?: ShortKeyPropType): void => {\n\twatchString(component, '_shortKey', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { WatchNumberOptions } from '../utils';\nimport { a11yHint, watchNumber } from '../utils';\n\n/* types */\nexport type TabIndexPropType = number;\n\n/**\n * Defines which tab-index the primary element of the component has.\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex\n */\nexport type PropTabIndex = {\n\ttabIndex: TabIndexPropType;\n};\n\n/* constants */\nconst options: WatchNumberOptions = {\n\thooks: {\n\t\tafterPatch: (value) => {\n\t\t\tif (value !== -1 && value !== 0) {\n\t\t\t\ta11yHint(`Don't Use Tabindex Greater than 0: https://adrianroselli.com/2014/11/dont-use-tabindex-greater-than-0.html`);\n\t\t\t}\n\t\t},\n\t},\n};\n\n/* validator */\nexport const validateTabIndex = (component: Generic.Element.Component, value?: TabIndexPropType): void => {\n\twatchNumber(component, '_tabIndex', value, options);\n};\n","import type { NamePropType, PropSyncValueBySelector, StencilUnknown, SyncValueBySelectorPropType } from '../../schema';\nimport { devHint, devWarning, getExperimentalMode, validateName } from '../../schema';\n\nimport type { Generic } from 'adopted-style-sheets';\nimport { getOptions } from '../../core/bootstrap';\nimport { validateAriaDetails } from '../../schema/props/aria-details';\nimport { attachInternals, type HostInternals } from '../../utils/aria-labelledby';\n\ntype RequiredProps = NonNullable<unknown>;\ntype OptionalProps = {\n\tname: string;\n} & PropSyncValueBySelector;\ntype Props = Generic.Element.Members<RequiredProps, OptionalProps>;\ntype Watches = Generic.Element.Watchers<RequiredProps, OptionalProps>;\n\ntype HTMLInputFileElement = HTMLInputElement & {\n\tfiles: FileList;\n};\n\nconst isAssociatedTagName = (name?: string): boolean =>\n\tname === 'KOL-BUTTON' ||\n\tname === 'KOL-COMBOBOX' ||\n\tname === 'KOL-INPUT-CHECKBOX' ||\n\tname === 'KOL-INPUT-COLOR' ||\n\tname === 'KOL-INPUT-DATE' ||\n\tname === 'KOL-INPUT-EMAIL' ||\n\tname === 'KOL-INPUT-FILE' ||\n\tname === 'KOL-INPUT-NUMBER' ||\n\tname === 'KOL-INPUT-PASSWORD' ||\n\tname === 'KOL-INPUT-RADIO' ||\n\tname === 'KOL-INPUT-RANGE' ||\n\tname === 'KOL-INPUT-TEXT' ||\n\tname === 'KOL-SELECT' ||\n\tname === 'KOL-SINGLE-SELECT' ||\n\tname === 'KOL-TEXTAREA';\n\nexport class AssociatedInputController implements Watches {\n\tprivate readonly experimentalMode = getExperimentalMode();\n\n\tprotected readonly component: Generic.Element.Component & Props;\n\tprotected readonly type: string;\n\tprotected readonly host?: Element;\n\tpublic internals?: HostInternals;\n\n\tpublic readonly formAssociated?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\tpublic syncToOwnInput?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\n\tpublic constructor(component: Generic.Element.Component & Props, type: string, host?: Element) {\n\t\tthis.component = component;\n\t\tthis.host = this.findHostWithShadowRoot(host);\n\t\tthis.type = type;\n\t\tthis.internals = attachInternals(this.host);\n\n\t\tif (getOptions()?.reflectInputValues && isAssociatedTagName(this.host?.tagName) && component._name) {\n\t\t\tthis.host?.querySelectorAll('input,select,textarea').forEach((el) => {\n\t\t\t\tthis.host?.removeChild(el);\n\t\t\t});\n\t\t\tswitch (this.type) {\n\t\t\t\tcase 'button':\n\t\t\t\tcase 'color':\n\t\t\t\tcase 'date':\n\t\t\t\tcase 'email':\n\t\t\t\tcase 'file':\n\t\t\t\tcase 'number':\n\t\t\t\tcase 'password':\n\t\t\t\tcase 'radio':\n\t\t\t\tcase 'range':\n\t\t\t\tcase 'text':\n\t\t\t\t\tthis.formAssociated = document.createElement('input');\n\t\t\t\t\tthis.formAssociated.setAttribute('type', this.type);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'select':\n\t\t\t\t\tthis.formAssociated = document.createElement('select');\n\t\t\t\t\tthis.formAssociated.setAttribute('multiple', '');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'textarea':\n\t\t\t\t\tthis.formAssociated = document.createElement('textarea');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'checkbox': // Checkbox uses default case\n\t\t\t\tcase 'single-select': // SingleSelect uses default case\n\t\t\t\tcase 'combobox': // Combobox uses default case\n\t\t\t\tdefault:\n\t\t\t\t\tthis.formAssociated = document.createElement('input');\n\t\t\t\t\tthis.formAssociated.setAttribute('type', 'hidden');\n\t\t\t}\n\t\t\tthis.formAssociated.setAttribute('data-form-associated', '');\n\t\t\tthis.formAssociated.setAttribute('hidden', '');\n\t\t\tthis.host?.appendChild(this.formAssociated);\n\t\t}\n\t}\n\n\t/**\n\t * The associated elements must not reside within the ShadowRoot and must\n\t * reside as children in the host to be recognized by native forms.\n\t */\n\tprivate findHostWithShadowRoot(host?: Element): Element | undefined {\n\t\twhile (host?.shadowRoot === null && host !== document.body) {\n\t\t\tconst parent = host?.parentNode;\n\t\t\tif (parent instanceof ShadowRoot) {\n\t\t\t\thost = parent.host;\n\t\t\t} else {\n\t\t\t\thost = parent instanceof Element ? parent : undefined;\n\t\t\t}\n\t\t}\n\t\treturn host;\n\t}\n\n\tprotected setAttribute(qualifiedName: string, element?: HTMLElement, value?: string | number | boolean) {\n\t\tif (this.experimentalMode) {\n\t\t\ttry {\n\t\t\t\tvalue = typeof value === 'object' && value !== null ? JSON.stringify(value) : value;\n\t\t\t\tif (typeof value === 'boolean' || typeof value === 'number' || typeof value === 'string') {\n\t\t\t\t\telement?.setAttribute(qualifiedName, `${value as string}`);\n\t\t\t\t} else {\n\t\t\t\t\tthrow new Error(`Invalid value type: ${typeof value}`);\n\t\t\t\t}\n\t\t\t} catch {\n\t\t\t\telement?.removeAttribute(qualifiedName);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * We need to stringify the value, for the setAttribute method.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/setAttribute\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/attributes\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/attributes#value\n\t *\n\t * TODO: It is possible that the value are a cyclic object value. So we need a custom\n\t * JSON.stringify method from outside to convert it to string.\n\t */\n\tprivate tryToStringifyValue(value: StencilUnknown): string | null {\n\t\ttry {\n\t\t\treturn typeof value === 'object' && value !== null ? JSON.stringify(value).toString() : value === null || value === undefined ? null : value.toString();\n\t\t} catch (e) {\n\t\t\tdevWarning(`The form field raw value is not able to stringify! ${e as string}`);\n\t\t\treturn '';\n\t\t}\n\t}\n\n\t/**\n\t * We try to support native form-associated custom elements.\n\t *\n\t * @see https://github.com/public-ui/kolibri/discussions/2821\n\t */\n\tpublic readonly setFormAssociatedValue = (rawValue: StencilUnknown) => {\n\t\tconst name = this.formAssociated?.getAttribute('name');\n\t\tif (name === null || name === '') {\n\t\t\tdevHint(` The form field (${this.type}) must have a name attribute to be form-associated. Please define the _name attribute.`);\n\t\t}\n\t\tconst strValue = this.tryToStringifyValue(rawValue);\n\t\tthis.syncValue(rawValue, strValue, this.formAssociated);\n\t\tthis.syncValue(rawValue, strValue, this.syncToOwnInput);\n\t};\n\n\tprivate syncValue(\n\t\trawValue: StencilUnknown,\n\t\tstrValue: string | null,\n\t\tassociatedElement?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement,\n\t) {\n\t\tif (associatedElement) {\n\t\t\tswitch (this.type) {\n\t\t\t\tcase 'file':\n\t\t\t\t\t(associatedElement as HTMLInputFileElement).files = rawValue as FileList;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'select':\n\t\t\t\t\t(associatedElement as HTMLSelectElement).querySelectorAll('option').forEach((el) => {\n\t\t\t\t\t\t(associatedElement as HTMLSelectElement).removeChild(el);\n\t\t\t\t\t});\n\t\t\t\t\tif (Array.isArray(rawValue)) {\n\t\t\t\t\t\trawValue.forEach((rawValueItem) => {\n\t\t\t\t\t\t\tconst strValueItem = this.tryToStringifyValue(rawValueItem as string);\n\t\t\t\t\t\t\tif (typeof strValueItem === 'string') {\n\t\t\t\t\t\t\t\tconst option = document.createElement('option');\n\t\t\t\t\t\t\t\toption.setAttribute('value', strValueItem);\n\t\t\t\t\t\t\t\toption.setAttribute('selected', '');\n\t\t\t\t\t\t\t\t(associatedElement as HTMLSelectElement).appendChild(option);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'radio':\n\t\t\t\t\tif (typeof strValue === 'string') {\n\t\t\t\t\t\tassociatedElement.setAttribute('value', strValue);\n\t\t\t\t\t\tassociatedElement.setAttribute('checked', '');\n\t\t\t\t\t\tassociatedElement.value = strValue;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif (typeof strValue === 'string') {\n\t\t\t\t\t\tassociatedElement.setAttribute('value', strValue);\n\t\t\t\t\t\tassociatedElement.value = strValue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tassociatedElement.removeAttribute('value');\n\t\t\t\t\t\tassociatedElement.value = '';\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic validateName(value?: NamePropType): void {\n\t\tvalidateName(this.component, value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: () => {\n\t\t\t\t\tthis.setAttribute('name', this.formAssociated, this.component.state._name as string);\n\t\t\t\t},\n\t\t\t},\n\t\t});\n\t\tif (typeof value === 'undefined') {\n\t\t\tdevHint(\n\t\t\t\t`A name on input fields or switches is not strictly required, but it might be relevant for the autocomplete function and for the static submission of the input field.`,\n\t\t\t);\n\t\t}\n\t}\n\n\tpublic validateSyncValueBySelector(value?: SyncValueBySelectorPropType): void {\n\t\tif (this.experimentalMode && typeof value === 'string') {\n\t\t\tconst input = document.querySelector(value) as HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\t\t\tif (input /* SSR instanceof HTMLInputElement */) {\n\t\t\t\tthis.syncToOwnInput = input;\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic validateAriaDetails(value?: string): void {\n\t\tvalidateAriaDetails(this.component, this.host, this.internals, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateName(this.component._name);\n\t\tthis.validateSyncValueBySelector(this.component._syncValueBySelector);\n\t}\n}\n"],"names":[],"mappings":";;;;;;;;MAea,iBAAiB,GAAG,CAAC,SAAoC,EAAE,KAAyB,KAAU;AAC1G,IAAA,WAAW,CAAC,SAAS,EAAE,YAAY,EAAE,KAAK,CAAC;AAC5C;;ACDO,MAAM,YAAY,GAAG,CAAC,SAAoC,EAAE,KAAoB,EAAE,OAA4B,KAAU;IAC9H,WAAW,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC;AAChD,CAAC;;MCJY,gBAAgB,GAAG,CAAC,SAAoC,EAAE,KAAwB,KAAU;AACxG,IAAA,WAAW,CAAC,SAAS,EAAE,WAAW,EAAE,KAAK,CAAC;AAC3C;;ACCA,MAAM,OAAO,GAAuB;AACnC,IAAA,KAAK,EAAE;AACN,QAAA,UAAU,EAAE,CAAC,KAAK,KAAI;YACrB,IAAI,KAAK,KAAK,EAAE,IAAI,KAAK,KAAK,CAAC,EAAE;gBAChC,QAAQ,CAAC,CAA4G,0GAAA,CAAA,CAAC;;SAEvH;AACD,KAAA;CACD;MAGY,gBAAgB,GAAG,CAAC,SAAoC,EAAE,KAAwB,KAAU;IACxG,WAAW,CAAC,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,CAAC;AACpD;;ACXA,MAAM,mBAAmB,GAAG,CAAC,IAAa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AC,OAAO,CAAC;AAC1C,wBAAA,iBAAiB,CAAC,KAAK,GAAG,EAAE;;;;;AAM1B,IAAA,YAAY,CAAC,KAAoB,EAAA;AACvC,QAAA,YAAY,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE;AACnC,YAAA,KAAK,EAAE;gBACN,UAAU,EAAE,MAAK;AAChB,oBAAA,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,KAAe,CAAC;iBACpF;AACD,aAAA;AACD,SAAA,CAAC;AACF,QAAA,IAAI,OAAO,KAAK,KAAK,WAAW,EAAE;YACjC,OAAO,CACN,CAAuK,qKAAA,CAAA,CACvK;;;AAII,IAAA,2BAA2B,CAAC,KAAmC,EAAA;QACrE,IAAI,IAAI,CAAC,gBAAgB,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YACvD,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAA+D;YACzG,IAAI,KAAK,EAAwC;AAChD,gBAAA,IAAI,CAAC,cAAc,GAAG,KAAK;;;;AAKvB,IAAA,mBAAmB,CAAC,KAAc,EAAA;AACxC,QAAA,mBAAmB,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC;;IAG/D,iBAAiB,GAAA;QACvB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;QACvC,IAAI,CAAC,2BAA2B,CAAC,IAAI,CAAC,SAAS,CAAC,oBAAoB,CAAC;;AAEtE;;;;"}
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import { b as watchValidator } from './common-noYAs-wc.js';
4
+ import { b as watchValidator } from './common-D-vggmh2.js';
5
5
 
6
6
  const autoCompleteOptions = ['on', 'off'];
7
7
  const validateAutoComplete = (component, value) => {
@@ -11,6 +11,6 @@ const validateAutoComplete = (component, value) => {
11
11
  };
12
12
 
13
13
  export { validateAutoComplete as v };
14
- //# sourceMappingURL=auto-complete-BBkbC-F2.js.map
14
+ //# sourceMappingURL=auto-complete-C-QNfuIh.js.map
15
15
 
16
- //# sourceMappingURL=auto-complete-BBkbC-F2.js.map
16
+ //# sourceMappingURL=auto-complete-C-QNfuIh.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"auto-complete-BBkbC-F2.js","sources":["src/schema/props/auto-complete.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { watchValidator } from '../utils';\n\n/* types */\nexport const autoCompleteOptions = ['on', 'off'] as const;\nexport type AutoCompletePropType = (typeof autoCompleteOptions)[number] | string;\n\n/**\n * Defines the auto-complete behavior for an element.\n */\nexport type PropAutoComplete = {\n\tautoComplete: AutoCompletePropType;\n};\n\n/* validator */\nexport const validateAutoComplete = (component: Generic.Element.Component, value?: AutoCompletePropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t'_autoComplete',\n\t\t(value): boolean => autoCompleteOptions.includes(value as (typeof autoCompleteOptions)[number]) || (typeof value === 'string' && value.length > 0),\n\t\tnew Set(autoCompleteOptions),\n\t\tvalue,\n\t\t{\n\t\t\tdefaultValue: 'off',\n\t\t},\n\t);\n};\n"],"names":[],"mappings":";;;;;AAKO,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE,KAAK,CAAU;MAW5C,oBAAoB,GAAG,CAAC,SAAoC,EAAE,KAA4B,KAAU;AAChH,IAAA,cAAc,CACb,SAAS,EACT,eAAe,EACf,CAAC,KAAK,KAAc,mBAAmB,CAAC,QAAQ,CAAC,KAA6C,CAAC,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,EAClJ,IAAI,GAAG,CAAC,mBAAmB,CAAC,EAC5B,KAAK,EACL;AACC,QAAA,YAAY,EAAE,KAAK;AACnB,KAAA,CACD;AACF;;;;"}
1
+ {"version":3,"file":"auto-complete-C-QNfuIh.js","sources":["src/schema/props/auto-complete.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { watchValidator } from '../utils';\n\n/* types */\nexport const autoCompleteOptions = ['on', 'off'] as const;\nexport type AutoCompletePropType = (typeof autoCompleteOptions)[number] | string;\n\n/**\n * Defines the auto-complete behavior for an element.\n */\nexport type PropAutoComplete = {\n\tautoComplete: AutoCompletePropType;\n};\n\n/* validator */\nexport const validateAutoComplete = (component: Generic.Element.Component, value?: AutoCompletePropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t'_autoComplete',\n\t\t(value): boolean => autoCompleteOptions.includes(value as (typeof autoCompleteOptions)[number]) || (typeof value === 'string' && value.length > 0),\n\t\tnew Set(autoCompleteOptions),\n\t\tvalue,\n\t\t{\n\t\t\tdefaultValue: 'off',\n\t\t},\n\t);\n};\n"],"names":[],"mappings":";;;;;AAKO,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE,KAAK,CAAU;MAW5C,oBAAoB,GAAG,CAAC,SAAoC,EAAE,KAA4B,KAAU;AAChH,IAAA,cAAc,CACb,SAAS,EACT,eAAe,EACf,CAAC,KAAK,KAAc,mBAAmB,CAAC,QAAQ,CAAC,KAA6C,CAAC,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,EAClJ,IAAI,GAAG,CAAC,mBAAmB,CAAC,EAC5B,KAAK,EACL;AACC,QAAA,YAAY,EAAE,KAAK;AACnB,KAAA,CACD;AACF;;;;"}
@@ -1,13 +1,13 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import { a as alignFloatingElements, b as autoUpdate } from './align-floating-elements-CONjGoNm.js';
5
- import { z as getDocument } from './common-noYAs-wc.js';
4
+ import { a as alignFloatingElements, b as autoUpdate } from './align-floating-elements-CBhVmYjn.js';
5
+ import { A as getDocument } from './common-D-vggmh2.js';
6
6
  import { t as tooltipClosed, a as tooltipOpened } from './tooltip-open-tracking-D3tCiiGP.js';
7
- import { c as createPropDefinition, n as normalizeString } from './normalizers-DWPxOTIP.js';
8
- import { a as alignPropTypeOptions } from './align-BNmcYY75.js';
9
- import { l as labelProp } from './label-BE6oW-7F.js';
10
- import './variant-quote-CRKM9QG2.js';
7
+ import { c as createPropDefinition, n as normalizeString } from './normalizers-BNeak4hj.js';
8
+ import { a as alignPropTypeOptions } from './align-C8fl12z_.js';
9
+ import { l as labelProp } from './label-FtX-skKy.js';
10
+ import './variant-quote-ClYWonZq.js';
11
11
  import { b as buildDefaultPropsFromConfig } from './base-web-component-D909Fl-Y.js';
12
12
 
13
13
  const alignProp = createPropDefinition('align', 'top', (value) => {
@@ -256,6 +256,6 @@ class TooltipBehavior extends BaseBehavior {
256
256
  }
257
257
 
258
258
  export { TooltipBehavior as T };
259
- //# sourceMappingURL=behavior-Ctzwvpyr.js.map
259
+ //# sourceMappingURL=behavior-Co00uT-D.js.map
260
260
 
261
- //# sourceMappingURL=behavior-Ctzwvpyr.js.map
261
+ //# sourceMappingURL=behavior-Co00uT-D.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"behavior-Ctzwvpyr.js","sources":["src/internal/props/align.ts","src/internal/props/badge-text.ts","src/internal/props/id.ts","src/utils/overlay.ts","src/internal/functional-components/base-behavior.ts","src/internal/functional-components/tooltip/api.tsx","src/internal/functional-components/tooltip/behavior.ts"],"sourcesContent":["import type { AlignPropType } from '../../schema';\nimport { alignPropTypeOptions } from '../../schema';\nimport type { SimpleProp } from './helpers/factory';\nimport { createPropDefinition } from './helpers/factory';\nimport { normalizeString } from './helpers/normalizers';\n\n/**\n * Align prop for positioning floating elements\n *\n * Description:\n * Controls the alignment of floating elements (tooltips, popovers, tabs) relative to their\n * reference element. The alignment affects how the floating element is positioned and which\n * side the arrow points from.\n *\n * Valid values: 'top' | 'right' | 'bottom' | 'left'\n * Default: 'top'\n *\n * Accessibility:\n * - Alignment should be chosen to ensure floating content is visible and does not obscure\n * important content for users with low vision or screen magnification\n */\nexport type AlignProp = SimpleProp<'align', AlignPropType>;\n\nexport const alignProp = createPropDefinition<AlignProp>(\n\t'align',\n\t'top',\n\t(value) => {\n\t\tconst str = normalizeString(value);\n\t\tif ((alignPropTypeOptions as readonly string[]).includes(str)) {\n\t\t\treturn str as AlignPropType;\n\t\t}\n\t\tthrow new Error(`Invalid align value: ${str}`);\n\t},\n\t(v) => (alignPropTypeOptions as readonly string[]).includes(v),\n);\n","import type { SimpleProp } from './helpers/factory';\nimport { createPropDefinition } from './helpers/factory';\nimport { normalizeString } from './helpers/normalizers';\n\n/**\n * Badge Text prop for highlighting text in labels\n *\n * Description:\n * Specifies text to be underlined and highlighted as a badge within the label.\n * This is useful for highlighting keyboard shortcuts or other important text portions.\n *\n * Usage:\n * - Default: empty string (no badge highlighting)\n * - When set: the specified text will be underlined in the label\n * - Case-sensitive matching (tries uppercase/lowercase variations if exact match not found)\n *\n * Accessibility:\n * - Underlined text must have sufficient contrast (WCAG 1.4.11)\n * - Badge text should complement, not replace, other text alternatives\n */\nexport type BadgeTextProp = SimpleProp<'badgeText', string>;\nexport const badgeTextProp = createPropDefinition<BadgeTextProp>('badgeText', '', normalizeString);\n","import type { SimpleProp } from './helpers/factory';\nimport { createPropDefinition } from './helpers/factory';\nimport { normalizeString } from './helpers/normalizers';\n\nexport type IdProp = SimpleProp<'id', string>;\n\nexport const idProp = createPropDefinition<IdProp>('id', '', normalizeString);\n","/**\n * This file contains the functions used to manage the visible overlays.\n */\n\n/**\n * This set contains all the visible overlays.\n */\nconst VISIBLE_OVERLAYS: Set<HTMLElement> = new Set();\n\n/**\n * Cached reference to the top-most overlay (z-index 1000).\n * Maintained by showOverlay and hideOverlay to avoid repeated set iterations.\n */\nlet lastOverlay: HTMLElement | null = null;\n\n/**\n * This function is used to add an overlay to the visible overlay list.\n * All overlays in the list will have a z-index of 999, except the last\n * one, which will have a z-index of 1000.\n *\n * @param overlay Get the overlay element reference\n */\nexport function showOverlay(overlay: HTMLElement): void {\n\t// Ensure the overlay is at the end of the set to maintain the invariant:\n\t// all overlays have z-index 999 except the last one (z-index 1000).\n\tif (lastOverlay !== overlay) {\n\t\tif (lastOverlay) {\n\t\t\tlastOverlay.style.setProperty('z-index', '999');\n\t\t}\n\t\tVISIBLE_OVERLAYS.delete(overlay);\n\t\tVISIBLE_OVERLAYS.add(overlay);\n\t\toverlay.style.setProperty('z-index', '1000');\n\t\tlastOverlay = overlay;\n\t}\n}\n\n/**\n * This function is used to remove an overlay from the visible overlay list.\n * All overlays in the list will have a z-index of 999, except the last\n * one, which will have a z-index of 1000.\n *\n * @param overlay Get the overlay element reference\n */\nexport function hideOverlay(overlay: HTMLElement): void {\n\tif (!VISIBLE_OVERLAYS.delete(overlay)) {\n\t\treturn;\n\t}\n\n\tif (lastOverlay === overlay) {\n\t\t// Find the new last overlay\n\t\tlastOverlay = null;\n\t\tfor (const el of VISIBLE_OVERLAYS) {\n\t\t\tlastOverlay = el;\n\t\t}\n\t\tif (lastOverlay) {\n\t\t\tlastOverlay.style.setProperty('z-index', '1000');\n\t\t}\n\t}\n}\n","import type { ComponentApi, GetStateFn, PropsConfigShape, ResolvedProps, SetStateFn, StateAccess, StrictFields } from './generic-types';\nimport { buildDefaultPropsFromConfig } from './props-from-config';\n\n/**\n * Abstract base class for composable behaviors.\n *\n * A behavior is a reusable unit of logic that lives INSIDE a web component.\n * It manages its own render props but receives state access from its host\n * WC — either a real `StateAccess` or {@link BaseWebComponent.stateLess}\n * for stateless behaviors.\n *\n * Example:\n * ```ts\n * export class TooltipBehavior extends BaseBehavior<TooltipApi> {\n * // show/hide tooltip, listener syncing, positioning...\n * }\n *\n * // Inside a WC:\n * private readonly tooltip = new TooltipBehavior(this.stateAccess);\n * ```\n *\n * Key rule: a WC has exactly one orchestrator (itself), plus N behaviors.\n * Behaviors must never instantiate other behaviors directly — the WC\n * composes them.\n */\nexport abstract class BaseBehavior<Api extends ComponentApi> {\n\t/** Stores validated and normalized property values ready for rendering. */\n\tprivate readonly renderProps: StrictFields<ResolvedProps<Api>>;\n\n\t/** Writes a value into the web component's reactive Stencil state. */\n\tprotected readonly setState: SetStateFn<Api>;\n\n\t/** Reads a value from the web component's reactive Stencil state. */\n\tprotected readonly getState: GetStateFn<Api>;\n\n\t/**\n\t * @param stateAccess - Bundled setState/getState provided by the web component,\n\t * or {@link BaseWebComponent.stateLess} for stateless behaviors.\n\t * @param propsConfig - Property configuration defining required/optional props\n\t * and their default values.\n\t */\n\tprotected constructor(stateAccess: StateAccess<Api>, propsConfig: PropsConfigShape) {\n\t\tthis.setState = stateAccess.setState;\n\t\tthis.getState = stateAccess.getState;\n\t\tthis.renderProps = buildDefaultPropsFromConfig(propsConfig) as StrictFields<ResolvedProps<Api>>;\n\t}\n\n\t/**\n\t * Stores a validated and normalized property value for rendering.\n\t * This is the value the functional component will receive.\n\t */\n\tprotected setRenderProp<K extends keyof ResolvedProps<Api>>(key: K, value: StrictFields<ResolvedProps<Api>>[K]): void {\n\t\tthis.renderProps[key] = value;\n\t}\n\n\t/** Returns the current validated render value for a property. */\n\tpublic getRenderProp<K extends keyof ResolvedProps<Api>>(key: K): StrictFields<ResolvedProps<Api>>[K] {\n\t\treturn this.renderProps[key];\n\t}\n}\n","import { alignProp, badgeTextProp, idProp, labelProp } from '../../props';\nimport type { ApiFromConfig, PropsConfigShape } from '../generic-types';\n\nexport const tooltipPropsConfig = {\n\trequired: [labelProp],\n\toptional: [alignProp, badgeTextProp, idProp],\n} as const satisfies PropsConfigShape;\n\nexport type TooltipApi = ApiFromConfig<\n\ttypeof tooltipPropsConfig,\n\t{\n\t\tMethods: {\n\t\t\thideTooltip: () => void;\n\t\t};\n\t}\n>;\n","import { autoUpdate } from '@floating-ui/dom';\nimport { getDocument } from '../../../schema';\nimport { alignFloatingElements } from '../../../utils/align-floating-elements';\nimport { hideOverlay, showOverlay } from '../../../utils/overlay';\nimport { tooltipClosed, tooltipOpened } from '../../../utils/tooltip-open-tracking';\nimport { alignProp, badgeTextProp, idProp, labelProp } from '../../props';\nimport { BaseBehavior } from '../base-behavior';\nimport type { BehaviorInterface, ResolvedInputProps, StateAccess } from '../generic-types';\nimport type { TooltipApi } from './api';\nimport { tooltipPropsConfig } from './api';\n\nexport class TooltipBehavior extends BaseBehavior<TooltipApi> implements BehaviorInterface<TooltipApi> {\n\tprivate previousSibling?: HTMLElement;\n\tprivate tooltipElement?: HTMLElement;\n\n\tprivate hasFocusIn = false;\n\tprivate hasMouseIn = false;\n\tprivate isHiddenForCurrentVisit = false;\n\tprivate overFocusTimeout?: ReturnType<typeof setTimeout>;\n\tprivate cleanupAutoPositioning?: () => void;\n\n\tpublic constructor(stateAccess: StateAccess<TooltipApi>) {\n\t\tsuper(stateAccess, tooltipPropsConfig);\n\t}\n\n\tpublic componentWillLoad(props: ResolvedInputProps<TooltipApi>): void {\n\t\tthis.watchLabel(props.label);\n\t\tthis.watchAlign(props.align);\n\t\tthis.watchBadgeText(props.badgeText);\n\t\tthis.watchId(props.id);\n\t}\n\n\tpublic watchLabel(value?: string): void {\n\t\tlabelProp.apply(value, (v) => {\n\t\t\tthis.setRenderProp('label', v);\n\t\t});\n\t}\n\n\tpublic watchAlign(value?: string): void {\n\t\talignProp.apply(value, (v) => {\n\t\t\tthis.setRenderProp('align', v);\n\t\t});\n\t}\n\n\tpublic watchBadgeText(value?: string): void {\n\t\tbadgeTextProp.apply(value, (v) => {\n\t\t\tthis.setRenderProp('badgeText', v);\n\t\t});\n\t}\n\n\tpublic watchId(value?: string): void {\n\t\tidProp.apply(value, (v) => {\n\t\t\tthis.setRenderProp('id', v);\n\t\t});\n\t}\n\n\tpublic initContext(previousSibling: HTMLElement | undefined): void {\n\t\tthis.previousSibling = previousSibling;\n\t}\n\n\tpublic syncListeners(last?: HTMLElement | null, next?: HTMLElement | null, replacePreviousSibling = false): void {\n\t\tif (last) {\n\t\t\tthis.removeListeners(last);\n\t\t}\n\t\tif (next) {\n\t\t\tif (replacePreviousSibling) {\n\t\t\t\tthis.previousSibling = next;\n\t\t\t}\n\t\t\tthis.addListeners(next);\n\t\t}\n\t}\n\n\tpublic handleEventListeners(host: HTMLElement): void {\n\t\tconst nextSibling = host.previousElementSibling as HTMLElement | null;\n\t\tthis.syncListeners(this.previousSibling, nextSibling, true);\n\t}\n\n\tpublic hideTooltip(): void {\n\t\tthis.isHiddenForCurrentVisit = true;\n\n\t\tif (this.tooltipElement) {\n\t\t\thideOverlay(this.tooltipElement);\n\t\t\ttooltipClosed();\n\t\t\tthis.tooltipElement.classList.remove('show');\n\t\t\tthis.tooltipElement.classList.add('hide');\n\t\t\t// Why? - https://github.com/public-ui/kolibri/issues/10471\n\t\t\tthis.tooltipElement.addEventListener(\n\t\t\t\t'animationend',\n\t\t\t\t(): void => {\n\t\t\t\t\t// double-check if tooltip is still hidden at animation's end\n\t\t\t\t\tif (this.tooltipElement?.classList.contains('hide')) {\n\t\t\t\t\t\t// remove element style property from showTooltip (required in gecko browsers)\n\t\t\t\t\t\tthis.tooltipElement.style.removeProperty('display');\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{ once: true },\n\t\t\t);\n\n\t\t\tif (this.cleanupAutoPositioning) {\n\t\t\t\tthis.cleanupAutoPositioning();\n\t\t\t\tthis.cleanupAutoPositioning = undefined;\n\t\t\t}\n\t\t}\n\t\tgetDocument().removeEventListener('keyup', this.hideTooltipByEscape);\n\t}\n\n\tpublic setTooltipElementRef = (el?: HTMLElement): void => {\n\t\tthis.tooltipElement = el;\n\t\tif (this.tooltipElement) {\n\t\t\tthis.addListeners(this.tooltipElement);\n\t\t}\n\t};\n\n\tpublic destroy(): void {\n\t\tclearTimeout(this.overFocusTimeout);\n\n\t\tif (this.previousSibling) {\n\t\t\tthis.removeListeners(this.previousSibling);\n\t\t\tthis.previousSibling = undefined;\n\t\t}\n\t\tif (this.tooltipElement) {\n\t\t\tthis.removeListeners(this.tooltipElement);\n\t\t}\n\t\tif (this.cleanupAutoPositioning) {\n\t\t\tthis.cleanupAutoPositioning();\n\t\t\tthis.cleanupAutoPositioning = undefined;\n\t\t}\n\t\tgetDocument().removeEventListener('keyup', this.hideTooltipByEscape);\n\t}\n\n\tprivate isNewVisit(): boolean {\n\t\treturn !this.hasMouseIn && !this.hasFocusIn;\n\t}\n\n\tprivate resetHideFlag(): void {\n\t\tif (this.isNewVisit()) {\n\t\t\tthis.isHiddenForCurrentVisit = false;\n\t\t}\n\t}\n\n\tprivate async alignTooltip(): Promise<void> {\n\t\tif (this.tooltipElement && this.previousSibling) {\n\t\t\tawait alignFloatingElements({\n\t\t\t\talign: this.getRenderProp('align'),\n\t\t\t\tarrowElement: this.tooltipElement.querySelector('.kol-tooltip__arrow') as HTMLElement,\n\t\t\t\tfloatingElement: this.tooltipElement,\n\t\t\t\treferenceElement: this.previousSibling,\n\t\t\t});\n\t\t}\n\t}\n\n\tprivate showTooltip(): void {\n\t\tif (this.isHiddenForCurrentVisit) {\n\t\t\treturn;\n\t\t}\n\t\tif (this.previousSibling && this.tooltipElement) {\n\t\t\tshowOverlay(this.tooltipElement);\n\t\t\ttooltipOpened();\n\t\t\tthis.tooltipElement.classList.remove('hide');\n\t\t\tthis.tooltipElement.classList.add('show');\n\t\t\tthis.tooltipElement.style.setProperty('display', 'block');\n\t\t\tgetDocument().addEventListener('keydown', this.hideTooltipByEscape, { once: true });\n\n\t\t\tconst target = this.previousSibling;\n\t\t\tconst tooltipEl = this.tooltipElement;\n\t\t\tthis.cleanupAutoPositioning = autoUpdate(target, tooltipEl, () => {\n\t\t\t\tvoid this.alignTooltip();\n\t\t\t});\n\t\t}\n\t}\n\n\tprivate showOrHideTooltip(): void {\n\t\tclearTimeout(this.overFocusTimeout);\n\t\tthis.overFocusTimeout = setTimeout(() => {\n\t\t\tif (this.hasMouseIn || this.hasFocusIn) {\n\t\t\t\tthis.showTooltip();\n\t\t\t} else {\n\t\t\t\tthis.hideTooltip();\n\t\t\t}\n\t\t}, 300);\n\t}\n\n\tprivate hideTooltipByEscape = (event: KeyboardEvent): void => {\n\t\tif (event.key === 'Escape') {\n\t\t\tevent.stopPropagation();\n\t\t\tevent.preventDefault();\n\t\t\tthis.hideTooltip();\n\t\t}\n\t};\n\n\tprivate handleMouseEnter = (): void => {\n\t\tconst isNewVisit = this.isNewVisit();\n\t\tthis.hasMouseIn = true;\n\t\tif (isNewVisit) {\n\t\t\tthis.isHiddenForCurrentVisit = false;\n\t\t}\n\t\tthis.showOrHideTooltip();\n\t};\n\n\tprivate handleMouseLeave = (): void => {\n\t\tthis.hasMouseIn = false;\n\t\tthis.resetHideFlag();\n\t\tthis.showOrHideTooltip();\n\t};\n\n\tprivate handleFocusIn = (): void => {\n\t\tconst isNewVisit = this.isNewVisit();\n\t\tthis.hasFocusIn = true;\n\t\tif (isNewVisit) {\n\t\t\tthis.isHiddenForCurrentVisit = false;\n\t\t}\n\t\tthis.showOrHideTooltip();\n\t};\n\n\tprivate handleFocusOut = (): void => {\n\t\tthis.hasFocusIn = false;\n\t\tthis.resetHideFlag();\n\t\tthis.showOrHideTooltip();\n\t};\n\n\tprivate addListeners(el: HTMLElement): void {\n\t\tel.addEventListener('mouseover', this.handleMouseEnter);\n\t\tel.addEventListener('mouseout', this.handleMouseLeave);\n\t\tel.addEventListener('focusin', this.handleFocusIn);\n\t\tel.addEventListener('focusout', this.handleFocusOut);\n\t}\n\n\tprivate removeListeners(el: HTMLElement): void {\n\t\tel.removeEventListener('mouseover', this.handleMouseEnter);\n\t\tel.removeEventListener('mouseout', this.handleMouseLeave);\n\t\tel.removeEventListener('focusin', this.handleFocusIn);\n\t\tel.removeEventListener('focusout', this.handleFocusOut);\n\t}\n}\n"],"names":[],"mappings":";;;;;;;;;;;;AAuBO,MAAM,SAAS,GAAG,oBAAoB,CAC5C,OAAO,EACP,KAAK,EACL,CAAC,KAAK,KAAI;AACT,IAAA,MAAM,GAAG,GAAG,eAAe,CAAC,KAAK,CAAC;AAClC,IAAA,IAAK,oBAA0C,CAAC,QAAQ,C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M,SAAS,GAAG,IAAI,CAAC,cAAc;YACrC,IAAI,CAAC,sBAAsB,GAAG,UAAU,CAAC,MAAM,EAAE,SAAS,EAAE,MAAK;AAChE,gBAAA,KAAK,IAAI,CAAC,YAAY,EAAE;AACzB,aAAC,CAAC;;;IAII,iBAAiB,GAAA;AACxB,QAAA,YAAY,CAAC,IAAI,CAAC,gBAAgB,CAAC;AACnC,QAAA,IAAI,CAAC,gBAAgB,GAAG,UAAU,CAAC,MAAK;YACvC,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,UAAU,EAAE;gBACvC,IAAI,CAAC,WAAW,EAAE;;iBACZ;gBACN,IAAI,CAAC,WAAW,EAAE;;SAEnB,EAAE,GAAG,CAAC;;AAyCA,IAAA,YAAY,CAAC,EAAe,EAAA;QACnC,EAAE,CAAC,gBAAgB,CAAC,WAAW,EAAE,IAAI,CAAC,gBAAgB,CAAC;QACvD,EAAE,CAAC,gBAAgB,CAAC,UAAU,EAAE,IAAI,CAAC,gBAAgB,CAAC;QACtD,EAAE,CAAC,gBAAgB,CAAC,SAAS,EAAE,IAAI,CAAC,aAAa,CAAC;QAClD,EAAE,CAAC,gBAAgB,CAAC,UAAU,EAAE,IAAI,CAAC,cAAc,CAAC;;AAG7C,IAAA,eAAe,CAAC,EAAe,EAAA;QACtC,EAAE,CAAC,mBAAmB,CAAC,WAAW,EAAE,IAAI,CAAC,gBAAgB,CAAC;QAC1D,EAAE,CAAC,mBAAmB,CAAC,UAAU,EAAE,IAAI,CAAC,gBAAgB,CAAC;QACzD,EAAE,CAAC,mBAAmB,CAAC,SAAS,EAAE,IAAI,CAAC,aAAa,CAAC;QACrD,EAAE,CAAC,mBAAmB,CAAC,UAAU,EAAE,IAAI,CAAC,cAAc,CAAC;;AAExD;;;;"}
1
+ {"version":3,"file":"behavior-Co00uT-D.js","sources":["src/internal/props/align.ts","src/internal/props/badge-text.ts","src/internal/props/id.ts","src/utils/overlay.ts","src/internal/functional-components/base-behavior.ts","src/internal/functional-components/tooltip/api.tsx","src/internal/functional-components/tooltip/behavior.ts"],"sourcesContent":["import type { AlignPropType } from '../../schema';\nimport { alignPropTypeOptions } from '../../schema';\nimport type { SimpleProp } from './helpers/factory';\nimport { createPropDefinition } from './helpers/factory';\nimport { normalizeString } from './helpers/normalizers';\n\n/**\n * Align prop for positioning floating elements\n *\n * Description:\n * Controls the alignment of floating elements (tooltips, popovers, tabs) relative to their\n * reference element. The alignment affects how the floating element is positioned and which\n * side the arrow points from.\n *\n * Valid values: 'top' | 'right' | 'bottom' | 'left'\n * Default: 'top'\n *\n * Accessibility:\n * - Alignment should be chosen to ensure floating content is visible and does not obscure\n * important content for users with low vision or screen magnification\n */\nexport type AlignProp = SimpleProp<'align', AlignPropType>;\n\nexport const alignProp = createPropDefinition<AlignProp>(\n\t'align',\n\t'top',\n\t(value) => {\n\t\tconst str = normalizeString(value);\n\t\tif ((alignPropTypeOptions as readonly string[]).includes(str)) {\n\t\t\treturn str as AlignPropType;\n\t\t}\n\t\tthrow new Error(`Invalid align value: ${str}`);\n\t},\n\t(v) => (alignPropTypeOptions as readonly string[]).includes(v),\n);\n","import type { SimpleProp } from './helpers/factory';\nimport { createPropDefinition } from './helpers/factory';\nimport { normalizeString } from './helpers/normalizers';\n\n/**\n * Badge Text prop for highlighting text in labels\n *\n * Description:\n * Specifies text to be underlined and highlighted as a badge within the label.\n * This is useful for highlighting keyboard shortcuts or other important text portions.\n *\n * Usage:\n * - Default: empty string (no badge highlighting)\n * - When set: the specified text will be underlined in the label\n * - Case-sensitive matching (tries uppercase/lowercase variations if exact match not found)\n *\n * Accessibility:\n * - Underlined text must have sufficient contrast (WCAG 1.4.11)\n * - Badge text should complement, not replace, other text alternatives\n */\nexport type BadgeTextProp = SimpleProp<'badgeText', string>;\nexport const badgeTextProp = createPropDefinition<BadgeTextProp>('badgeText', '', normalizeString);\n","import type { SimpleProp } from './helpers/factory';\nimport { createPropDefinition } from './helpers/factory';\nimport { normalizeString } from './helpers/normalizers';\n\nexport type IdProp = SimpleProp<'id', string>;\n\nexport const idProp = createPropDefinition<IdProp>('id', '', normalizeString);\n","/**\n * This file contains the functions used to manage the visible overlays.\n */\n\n/**\n * This set contains all the visible overlays.\n */\nconst VISIBLE_OVERLAYS: Set<HTMLElement> = new Set();\n\n/**\n * Cached reference to the top-most overlay (z-index 1000).\n * Maintained by showOverlay and hideOverlay to avoid repeated set iterations.\n */\nlet lastOverlay: HTMLElement | null = null;\n\n/**\n * This function is used to add an overlay to the visible overlay list.\n * All overlays in the list will have a z-index of 999, except the last\n * one, which will have a z-index of 1000.\n *\n * @param overlay Get the overlay element reference\n */\nexport function showOverlay(overlay: HTMLElement): void {\n\t// Ensure the overlay is at the end of the set to maintain the invariant:\n\t// all overlays have z-index 999 except the last one (z-index 1000).\n\tif (lastOverlay !== overlay) {\n\t\tif (lastOverlay) {\n\t\t\tlastOverlay.style.setProperty('z-index', '999');\n\t\t}\n\t\tVISIBLE_OVERLAYS.delete(overlay);\n\t\tVISIBLE_OVERLAYS.add(overlay);\n\t\toverlay.style.setProperty('z-index', '1000');\n\t\tlastOverlay = overlay;\n\t}\n}\n\n/**\n * This function is used to remove an overlay from the visible overlay list.\n * All overlays in the list will have a z-index of 999, except the last\n * one, which will have a z-index of 1000.\n *\n * @param overlay Get the overlay element reference\n */\nexport function hideOverlay(overlay: HTMLElement): void {\n\tif (!VISIBLE_OVERLAYS.delete(overlay)) {\n\t\treturn;\n\t}\n\n\tif (lastOverlay === overlay) {\n\t\t// Find the new last overlay\n\t\tlastOverlay = null;\n\t\tfor (const el of VISIBLE_OVERLAYS) {\n\t\t\tlastOverlay = el;\n\t\t}\n\t\tif (lastOverlay) {\n\t\t\tlastOverlay.style.setProperty('z-index', '1000');\n\t\t}\n\t}\n}\n","import type { ComponentApi, GetStateFn, PropsConfigShape, ResolvedProps, SetStateFn, StateAccess, StrictFields } from './generic-types';\nimport { buildDefaultPropsFromConfig } from './props-from-config';\n\n/**\n * Abstract base class for composable behaviors.\n *\n * A behavior is a reusable unit of logic that lives INSIDE a web component.\n * It manages its own render props but receives state access from its host\n * WC — either a real `StateAccess` or {@link BaseWebComponent.stateLess}\n * for stateless behaviors.\n *\n * Example:\n * ```ts\n * export class TooltipBehavior extends BaseBehavior<TooltipApi> {\n * // show/hide tooltip, listener syncing, positioning...\n * }\n *\n * // Inside a WC:\n * private readonly tooltip = new TooltipBehavior(this.stateAccess);\n * ```\n *\n * Key rule: a WC has exactly one orchestrator (itself), plus N behaviors.\n * Behaviors must never instantiate other behaviors directly — the WC\n * composes them.\n */\nexport abstract class BaseBehavior<Api extends ComponentApi> {\n\t/** Stores validated and normalized property values ready for rendering. */\n\tprivate readonly renderProps: StrictFields<ResolvedProps<Api>>;\n\n\t/** Writes a value into the web component's reactive Stencil state. */\n\tprotected readonly setState: SetStateFn<Api>;\n\n\t/** Reads a value from the web component's reactive Stencil state. */\n\tprotected readonly getState: GetStateFn<Api>;\n\n\t/**\n\t * @param stateAccess - Bundled setState/getState provided by the web component,\n\t * or {@link BaseWebComponent.stateLess} for stateless behaviors.\n\t * @param propsConfig - Property configuration defining required/optional props\n\t * and their default values.\n\t */\n\tprotected constructor(stateAccess: StateAccess<Api>, propsConfig: PropsConfigShape) {\n\t\tthis.setState = stateAccess.setState;\n\t\tthis.getState = stateAccess.getState;\n\t\tthis.renderProps = buildDefaultPropsFromConfig(propsConfig) as StrictFields<ResolvedProps<Api>>;\n\t}\n\n\t/**\n\t * Stores a validated and normalized property value for rendering.\n\t * This is the value the functional component will receive.\n\t */\n\tprotected setRenderProp<K extends keyof ResolvedProps<Api>>(key: K, value: StrictFields<ResolvedProps<Api>>[K]): void {\n\t\tthis.renderProps[key] = value;\n\t}\n\n\t/** Returns the current validated render value for a property. */\n\tpublic getRenderProp<K extends keyof ResolvedProps<Api>>(key: K): StrictFields<ResolvedProps<Api>>[K] {\n\t\treturn this.renderProps[key];\n\t}\n}\n","import { alignProp, badgeTextProp, idProp, labelProp } from '../../props';\nimport type { ApiFromConfig, PropsConfigShape } from '../generic-types';\n\nexport const tooltipPropsConfig = {\n\trequired: [labelProp],\n\toptional: [alignProp, badgeTextProp, idProp],\n} as const satisfies PropsConfigShape;\n\nexport type TooltipApi = ApiFromConfig<\n\ttypeof tooltipPropsConfig,\n\t{\n\t\tMethods: {\n\t\t\thideTooltip: () => void;\n\t\t};\n\t}\n>;\n","import { autoUpdate } from '@floating-ui/dom';\nimport { getDocument } from '../../../schema';\nimport { alignFloatingElements } from '../../../utils/align-floating-elements';\nimport { hideOverlay, showOverlay } from '../../../utils/overlay';\nimport { tooltipClosed, tooltipOpened } from '../../../utils/tooltip-open-tracking';\nimport { alignProp, badgeTextProp, idProp, labelProp } from '../../props';\nimport { BaseBehavior } from '../base-behavior';\nimport type { BehaviorInterface, ResolvedInputProps, StateAccess } from '../generic-types';\nimport type { TooltipApi } from './api';\nimport { tooltipPropsConfig } from './api';\n\nexport class TooltipBehavior extends BaseBehavior<TooltipApi> implements BehaviorInterface<TooltipApi> {\n\tprivate previousSibling?: HTMLElement;\n\tprivate tooltipElement?: HTMLElement;\n\n\tprivate hasFocusIn = false;\n\tprivate hasMouseIn = false;\n\tprivate isHiddenForCurrentVisit = false;\n\tprivate overFocusTimeout?: ReturnType<typeof setTimeout>;\n\tprivate cleanupAutoPositioning?: () => void;\n\n\tpublic constructor(stateAccess: StateAccess<TooltipApi>) {\n\t\tsuper(stateAccess, tooltipPropsConfig);\n\t}\n\n\tpublic componentWillLoad(props: ResolvedInputProps<TooltipApi>): void {\n\t\tthis.watchLabel(props.label);\n\t\tthis.watchAlign(props.align);\n\t\tthis.watchBadgeText(props.badgeText);\n\t\tthis.watchId(props.id);\n\t}\n\n\tpublic watchLabel(value?: string): void {\n\t\tlabelProp.apply(value, (v) => {\n\t\t\tthis.setRenderProp('label', v);\n\t\t});\n\t}\n\n\tpublic watchAlign(value?: string): void {\n\t\talignProp.apply(value, (v) => {\n\t\t\tthis.setRenderProp('align', v);\n\t\t});\n\t}\n\n\tpublic watchBadgeText(value?: string): void {\n\t\tbadgeTextProp.apply(value, (v) => {\n\t\t\tthis.setRenderProp('badgeText', v);\n\t\t});\n\t}\n\n\tpublic watchId(value?: string): void {\n\t\tidProp.apply(value, (v) => {\n\t\t\tthis.setRenderProp('id', v);\n\t\t});\n\t}\n\n\tpublic initContext(previousSibling: HTMLElement | undefined): void {\n\t\tthis.previousSibling = previousSibling;\n\t}\n\n\tpublic syncListeners(last?: HTMLElement | null, next?: HTMLElement | null, replacePreviousSibling = false): void {\n\t\tif (last) {\n\t\t\tthis.removeListeners(last);\n\t\t}\n\t\tif (next) {\n\t\t\tif (replacePreviousSibling) {\n\t\t\t\tthis.previousSibling = next;\n\t\t\t}\n\t\t\tthis.addListeners(next);\n\t\t}\n\t}\n\n\tpublic handleEventListeners(host: HTMLElement): void {\n\t\tconst nextSibling = host.previousElementSibling as HTMLElement | null;\n\t\tthis.syncListeners(this.previousSibling, nextSibling, true);\n\t}\n\n\tpublic hideTooltip(): void {\n\t\tthis.isHiddenForCurrentVisit = true;\n\n\t\tif (this.tooltipElement) {\n\t\t\thideOverlay(this.tooltipElement);\n\t\t\ttooltipClosed();\n\t\t\tthis.tooltipElement.classList.remove('show');\n\t\t\tthis.tooltipElement.classList.add('hide');\n\t\t\t// Why? - https://github.com/public-ui/kolibri/issues/10471\n\t\t\tthis.tooltipElement.addEventListener(\n\t\t\t\t'animationend',\n\t\t\t\t(): void => {\n\t\t\t\t\t// double-check if tooltip is still hidden at animation's end\n\t\t\t\t\tif (this.tooltipElement?.classList.contains('hide')) {\n\t\t\t\t\t\t// remove element style property from showTooltip (required in gecko browsers)\n\t\t\t\t\t\tthis.tooltipElement.style.removeProperty('display');\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{ once: true },\n\t\t\t);\n\n\t\t\tif (this.cleanupAutoPositioning) {\n\t\t\t\tthis.cleanupAutoPositioning();\n\t\t\t\tthis.cleanupAutoPositioning = undefined;\n\t\t\t}\n\t\t}\n\t\tgetDocument().removeEventListener('keyup', this.hideTooltipByEscape);\n\t}\n\n\tpublic setTooltipElementRef = (el?: HTMLElement): void => {\n\t\tthis.tooltipElement = el;\n\t\tif (this.tooltipElement) {\n\t\t\tthis.addListeners(this.tooltipElement);\n\t\t}\n\t};\n\n\tpublic destroy(): void {\n\t\tclearTimeout(this.overFocusTimeout);\n\n\t\tif (this.previousSibling) {\n\t\t\tthis.removeListeners(this.previousSibling);\n\t\t\tthis.previousSibling = undefined;\n\t\t}\n\t\tif (this.tooltipElement) {\n\t\t\tthis.removeListeners(this.tooltipElement);\n\t\t}\n\t\tif (this.cleanupAutoPositioning) {\n\t\t\tthis.cleanupAutoPositioning();\n\t\t\tthis.cleanupAutoPositioning = undefined;\n\t\t}\n\t\tgetDocument().removeEventListener('keyup', this.hideTooltipByEscape);\n\t}\n\n\tprivate isNewVisit(): boolean {\n\t\treturn !this.hasMouseIn && !this.hasFocusIn;\n\t}\n\n\tprivate resetHideFlag(): void {\n\t\tif (this.isNewVisit()) {\n\t\t\tthis.isHiddenForCurrentVisit = false;\n\t\t}\n\t}\n\n\tprivate async alignTooltip(): Promise<void> {\n\t\tif (this.tooltipElement && this.previousSibling) {\n\t\t\tawait alignFloatingElements({\n\t\t\t\talign: this.getRenderProp('align'),\n\t\t\t\tarrowElement: this.tooltipElement.querySelector('.kol-tooltip__arrow') as HTMLElement,\n\t\t\t\tfloatingElement: this.tooltipElement,\n\t\t\t\treferenceElement: this.previousSibling,\n\t\t\t});\n\t\t}\n\t}\n\n\tprivate showTooltip(): void {\n\t\tif (this.isHiddenForCurrentVisit) {\n\t\t\treturn;\n\t\t}\n\t\tif (this.previousSibling && this.tooltipElement) {\n\t\t\tshowOverlay(this.tooltipElement);\n\t\t\ttooltipOpened();\n\t\t\tthis.tooltipElement.classList.remove('hide');\n\t\t\tthis.tooltipElement.classList.add('show');\n\t\t\tthis.tooltipElement.style.setProperty('display', 'block');\n\t\t\tgetDocument().addEventListener('keydown', this.hideTooltipByEscape, { once: true });\n\n\t\t\tconst target = this.previousSibling;\n\t\t\tconst tooltipEl = this.tooltipElement;\n\t\t\tthis.cleanupAutoPositioning = autoUpdate(target, tooltipEl, () => {\n\t\t\t\tvoid this.alignTooltip();\n\t\t\t});\n\t\t}\n\t}\n\n\tprivate showOrHideTooltip(): void {\n\t\tclearTimeout(this.overFocusTimeout);\n\t\tthis.overFocusTimeout = setTimeout(() => {\n\t\t\tif (this.hasMouseIn || this.hasFocusIn) {\n\t\t\t\tthis.showTooltip();\n\t\t\t} else {\n\t\t\t\tthis.hideTooltip();\n\t\t\t}\n\t\t}, 300);\n\t}\n\n\tprivate hideTooltipByEscape = (event: KeyboardEvent): void => {\n\t\tif (event.key === 'Escape') {\n\t\t\tevent.stopPropagation();\n\t\t\tevent.preventDefault();\n\t\t\tthis.hideTooltip();\n\t\t}\n\t};\n\n\tprivate handleMouseEnter = (): void => {\n\t\tconst isNewVisit = this.isNewVisit();\n\t\tthis.hasMouseIn = true;\n\t\tif (isNewVisit) {\n\t\t\tthis.isHiddenForCurrentVisit = false;\n\t\t}\n\t\tthis.showOrHideTooltip();\n\t};\n\n\tprivate handleMouseLeave = (): void => {\n\t\tthis.hasMouseIn = false;\n\t\tthis.resetHideFlag();\n\t\tthis.showOrHideTooltip();\n\t};\n\n\tprivate handleFocusIn = (): void => {\n\t\tconst isNewVisit = this.isNewVisit();\n\t\tthis.hasFocusIn = true;\n\t\tif (isNewVisit) {\n\t\t\tthis.isHiddenForCurrentVisit = false;\n\t\t}\n\t\tthis.showOrHideTooltip();\n\t};\n\n\tprivate handleFocusOut = (): void => {\n\t\tthis.hasFocusIn = false;\n\t\tthis.resetHideFlag();\n\t\tthis.showOrHideTooltip();\n\t};\n\n\tprivate addListeners(el: HTMLElement): void {\n\t\tel.addEventListener('mouseover', this.handleMouseEnter);\n\t\tel.addEventListener('mouseout', this.handleMouseLeave);\n\t\tel.addEventListener('focusin', this.handleFocusIn);\n\t\tel.addEventListener('focusout', this.handleFocusOut);\n\t}\n\n\tprivate removeListeners(el: HTMLElement): void {\n\t\tel.removeEventListener('mouseover', this.handleMouseEnter);\n\t\tel.removeEventListener('mouseout', this.handleMouseLeave);\n\t\tel.removeEventListener('focusin', this.handleFocusIn);\n\t\tel.removeEventListener('focusout', this.handleFocusOut);\n\t}\n}\n"],"names":[],"mappings":";;;;;;;;;;;;AAuBO,MAAM,SAAS,GAAG,oBAAoB,CAC5C,OAAO,EACP,KAAK,EACL,CAAC,KAAK,KAAI;AACT,IAAA,MAAM,GAAG,GAAG,eAAe,CAAC,KAAK,CAAC;AAClC,IAAA,IAAK,oBAA0C,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;AAC9D,QAAA,OAAO,GAAoB;;AAE5B,IAAA,MAAM,IAAI,KAAK,CAAC,wBAAwB,GAAG,CAAA,CAAE,CAAC;AAC/C,CAAC,EACD,CAAC,CAAC,KAAM,oBAA0C,CAAC,QAAQ,CAAC,CAAC,CAAC,CAC9D;;ACbM,MAAM,aAAa,GAAG,oBAAoB,CAAgB,WAAW,EAAE,EAAE,EAAE,eAAe,CAAC;;ACf3F,MAAM,MAAM,GAAG,oBAAoB,CAAS,IAAI,EAAE,EAAE,EAAE,eAAe,CAAC;;ACC7E,MAAM,gBAAgB,GAAqB,IAAI,GAAG,EAAE;AAMpD,IAAI,WAAW,GAAuB,IAAI;AASpC,SAAU,WAAW,CAAC,OAAoB,EAAA;AAG/C,IAAA,IAAI,WAAW,KAAK,OAAO,EAAE;QAC5B,IAAI,WAAW,EAAE;YAChB,WAAW,CAAC,KAAK,CAAC,WAAW,CAAC,SAAS,EAAE,KAAK,CAAC;;AAEhD,QAAA,gBAAgB,CAAC,MAAM,CAAC,OAAO,CAAC;AAChC,QAAA,gBAAgB,CAAC,GAAG,CAAC,OAAO,CAAC;QAC7B,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,SAAS,EAAE,MAAM,CAAC;QAC5C,WAAW,GAAG,OAAO;;AAEvB;AASM,SAAU,WAAW,CAAC,OAAoB,EAAA;IA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,IAAI,CAAC,gBAAgB,CAAC;QAC1D,EAAE,CAAC,mBAAmB,CAAC,UAAU,EAAE,IAAI,CAAC,gBAAgB,CAAC;QACzD,EAAE,CAAC,mBAAmB,CAAC,SAAS,EAAE,IAAI,CAAC,aAAa,CAAC;QACrD,EAAE,CAAC,mBAAmB,CAAC,UAAU,EAAE,IAAI,CAAC,cAAc,CAAC;;AAExD;;;;"}
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import { v as getDefaultExportFromCjs } from './common-noYAs-wc.js';
4
+ import { x as getDefaultExportFromCjs } from './common-D-vggmh2.js';
5
5
 
6
6
  var easyBem;
7
7
  var hasRequiredEasyBem;
@@ -166,6 +166,6 @@ const BEM = {
166
166
  };
167
167
 
168
168
  export { BEM as B, bem as b };
169
- //# sourceMappingURL=bem-registry-DGv3NmGE.js.map
169
+ //# sourceMappingURL=bem-registry-3ondDImf.js.map
170
170
 
171
- //# sourceMappingURL=bem-registry-DGv3NmGE.js.map
171
+ //# sourceMappingURL=bem-registry-3ondDImf.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"bem-registry-DGv3NmGE.js","sources":["../../node_modules/.pnpm/easy-bem@1.1.1/node_modules/easy-bem/index.js","../../node_modules/.pnpm/typed-bem@1.0.2/node_modules/typed-bem/dist/browser.mjs","src/schema/bem-registry.ts"],"sourcesContent":["'use strict';\r\n\r\n/**\r\n * BEM class name factory.\r\n *\r\n * @typedef {Function} Bem\r\n * @param {String|Object} [elementOrMods] Element name or hash object with mods\r\n * @param {Object} [mods] Hash object with mods\r\n * @returns {String}\r\n */\r\n\r\n/**\r\n * Returns BEM class name factory.\r\n *\r\n * @param {String} componentName Block name\r\n * @returns {Bem}\r\n */\r\nmodule.exports = function bem(componentName) {\r\n return function (elementOrMods, mods) {\r\n if (!elementOrMods) {\r\n return componentName;\r\n }\r\n\r\n var element;\r\n\r\n if (typeof elementOrMods === 'string') {\r\n element = elementOrMods;\r\n } else {\r\n mods = elementOrMods;\r\n }\r\n\r\n var base = componentName;\r\n if (element) {\r\n base += '__' + element;\r\n }\r\n\r\n return base + (\r\n mods\r\n ? Object.keys(mods).reduce(function (result, name) {\r\n var value = mods[name];\r\n\r\n if (value) {\r\n result += ' ' + (\r\n typeof value === 'boolean'\r\n ? (base + '--' + name)\r\n : (base + '--' + name + '_' + value)\r\n );\r\n }\r\n\r\n return result;\r\n }, '')\r\n : ''\r\n );\r\n };\r\n}\r\n","import a from\"easy-bem\";function c(){const e=new Map,n=(t,o,r)=>{try{return e.get(t)(o,r)}catch{return e.set(t,a(t)).get(t)(o,r)}};return n.forBlock=t=>{const o=(r,s)=>n(t,r,s);return o.forElement=r=>s=>n(t,r,s),o},n}function f(...e){const n=new Set;for(const t of e)if(t)for(const o of t.split(/\\s+/))n.add(o);return[...n].join(\" \")}export{c as generateBemClassNames,f as uniqueClassNames};\n//# sourceMappingURL=browser.mjs.map\n","import { generateBemClassNames } from 'typed-bem';\n\n/**\n * Central BEM Schema Registry for all KoliBri Components\n *\n * This file serves as the single source of truth for all BEM class name structures\n * across the entire KoliBri component library. By centralizing component schemas here,\n * we ensure consistency, prevent duplication, and enable powerful tooling.\n *\n * Benefits:\n * - Type safety across all components\n * - Consistent BEM structure\n * - Single point of maintenance\n * - Automatic SCSS generation\n * - Better IDE support and autocomplete\n * - forBlock integration for component-specific generators\n */\n\n/**\n * Complete schema definition for all KoliBri components\n */\nexport type KoliBriComponentsBemSchema = {\n\t'kol-abbr': {\n\t\tmodifiers: null;\n\t};\n\t'kol-alert': {\n\t\t/**\n\t\t * Here we define the elements we needed\n\t\t * to realize a minimal full featured alert\n\t\t * component (DOM).\n\t\t */\n\t\telements: {\n\t\t\tcontainer: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\ticon: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\theading: {\n\t\t\t\t/**\n\t\t\t\t * Some elements needs modifiers to\n\t\t\t\t * style them properly.\n\t\t\t\t */\n\t\t\t\tmodifiers: Set<'h0' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'>;\n\t\t\t};\n\t\t\tcontent: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\tcloser: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t};\n\t\t/**\n\t\t * Here we define the modifiers related to the\n\t\t * kol-alert component properties.\n\t\t */\n\t\tmodifiers: Set<'hasCloser' | 'type-default' | 'type-error' | 'type-info' | 'type-success' | 'type-warning' | 'variant-card' | 'variant-msg'>;\n\t};\n\t'kol-avatar': {\n\t\telements: {\n\t\t\timage: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\tinitials: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t};\n\t\tmodifiers: null;\n\t};\n\t'kol-icon': {\n\t\telements: {\n\t\t\ticon: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t};\n\t\tmodifiers: null;\n\t};\n\t'kol-meter': {\n\t\telements: {\n\t\t\tbar: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\t'bar-label': {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\t'bar-state': {\n\t\t\t\tmodifiers: Set<'optimum' | 'suboptimal' | 'critical'>;\n\t\t\t};\n\t\t\t'bar-track': {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\t'bar-fill': {\n\t\t\t\tmodifiers: Set<'optimum' | 'suboptimal' | 'critical'>;\n\t\t\t};\n\t\t\t'bar-background': {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\t'bar-border': {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\t'value-unit': {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\tvalue: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\tunit: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t};\n\t\tmodifiers: Set<'vertical'>;\n\t};\n\t'kol-quote': {\n\t\telements: {\n\t\t\tblockquote: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\tcite: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\tfigcaption: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\tquote: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t};\n\t\tmodifiers: Set<'block' | 'inline'>;\n\t};\n\t'kol-skeleton': {\n\t\telements: {\n\t\t\tcontainer: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\tname: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\tcounter: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\tactions: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t};\n\t\tmodifiers: Set<'has-name' | 'is-hidden'>;\n\t};\n\t'kol-click-button': {\n\t\telements: {\n\t\t\tlabel: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t};\n\t\tmodifiers: null;\n\t};\n\t'kol-span': {\n\t\telements: {\n\t\t\tcontainer: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\ticon: {\n\t\t\t\tmodifiers: Set<'bottom' | 'left' | 'right' | 'top'>;\n\t\t\t};\n\t\t\tlabel: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\tslot: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t};\n\t\tmodifiers: Set<'has-badge' | 'hide-label'>;\n\t};\n\t'kol-link': {\n\t\telements: {\n\t\t\tanchor: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\ticon: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\ttext: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t};\n\t\tmodifiers: Set<'disabled' | 'external-link' | 'hide-label' | 'inline' | 'standalone'>;\n\t};\n\t'kol-spin': {\n\t\telements: {\n\t\t\tspinner: {\n\t\t\t\tmodifiers: Set<'cycle' | 'dot' | 'none'>;\n\t\t\t};\n\t\t\t'spinner-element': {\n\t\t\t\tmodifiers: Set<'1' | '2' | '3' | 'neutral'>;\n\t\t\t};\n\t\t\tloader: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t};\n\t\tmodifiers: null;\n\t};\n};\n\n/**\n * Create the central BEM generator instance\n * This single instance is used across all components\n */\nexport const bem = generateBemClassNames<KoliBriComponentsBemSchema>();\n\n/**\n * Export the complete BEM schema for reuse\n * to generate SCSS files in themes.\n */\nconst BEM: KoliBriComponentsBemSchema = {\n\t'kol-abbr': {\n\t\tmodifiers: null,\n\t},\n\t'kol-alert': {\n\t\telements: {\n\t\t\tcloser: { modifiers: null },\n\t\t\theading: { modifiers: new Set(['h0', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6']) },\n\t\t\ticon: { modifiers: null },\n\t\t\tcontent: { modifiers: null },\n\t\t\tcontainer: { modifiers: null },\n\t\t},\n\t\tmodifiers: new Set(['hasCloser', 'type-default', 'type-error', 'type-info', 'type-success', 'type-warning', 'variant-card', 'variant-msg']),\n\t},\n\t'kol-avatar': {\n\t\telements: {\n\t\t\timage: { modifiers: null },\n\t\t\tinitials: { modifiers: null },\n\t\t},\n\t\tmodifiers: null,\n\t},\n\t'kol-icon': {\n\t\telements: {\n\t\t\ticon: { modifiers: null },\n\t\t},\n\t\tmodifiers: null,\n\t},\n\t'kol-meter': {\n\t\telements: {\n\t\t\tbar: { modifiers: null },\n\t\t\t'bar-background': { modifiers: null },\n\t\t\t'bar-border': { modifiers: null },\n\t\t\t'bar-fill': { modifiers: new Set(['critical', 'optimum', 'suboptimal']) },\n\t\t\t'bar-label': { modifiers: null },\n\t\t\t'bar-state': { modifiers: new Set(['critical', 'optimum', 'suboptimal']) },\n\t\t\t'bar-track': { modifiers: null },\n\t\t\tunit: { modifiers: null },\n\t\t\tvalue: { modifiers: null },\n\t\t\t'value-unit': { modifiers: null },\n\t\t},\n\t\tmodifiers: new Set(['vertical']),\n\t},\n\t'kol-quote': {\n\t\telements: {\n\t\t\tblockquote: { modifiers: null },\n\t\t\tcite: { modifiers: null },\n\t\t\tfigcaption: { modifiers: null },\n\t\t\tquote: { modifiers: null },\n\t\t},\n\t\tmodifiers: new Set(['block', 'inline']),\n\t},\n\t'kol-skeleton': {\n\t\telements: {\n\t\t\tactions: { modifiers: null },\n\t\t\tcontainer: { modifiers: null },\n\t\t\tcounter: { modifiers: null },\n\t\t\tname: { modifiers: null },\n\t\t},\n\t\tmodifiers: new Set(['has-name', 'is-hidden']),\n\t},\n\t'kol-click-button': {\n\t\telements: {\n\t\t\tlabel: { modifiers: null },\n\t\t},\n\t\tmodifiers: null,\n\t},\n\t'kol-span': {\n\t\telements: {\n\t\t\tcontainer: { modifiers: null },\n\t\t\ticon: { modifiers: new Set(['bottom', 'left', 'right', 'top']) },\n\t\t\tlabel: { modifiers: null },\n\t\t\tslot: { modifiers: null },\n\t\t},\n\t\tmodifiers: new Set(['has-badge', 'hide-label']),\n\t},\n\t'kol-link': {\n\t\telements: {\n\t\t\tanchor: { modifiers: null },\n\t\t\ticon: { modifiers: null },\n\t\t\ttext: { modifiers: null },\n\t\t},\n\t\tmodifiers: new Set(['disabled', 'external-link', 'hide-label', 'inline', 'standalone']),\n\t},\n\t'kol-spin': {\n\t\telements: {\n\t\t\tloader: { modifiers: null },\n\t\t\tspinner: { modifiers: new Set(['cycle', 'dot', 'none']) },\n\t\t\t'spinner-element': { modifiers: new Set(['1', '2', '3', 'neutral']) },\n\t\t},\n\t\tmodifiers: null,\n\t},\n};\n\nexport { BEM };\n"],"names":["generateBemClassNames"],"mappings":";;;;;;;;;;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAA,OAAc,GAAG,SAAS,GAAG,CAAC,aAAa,EAAE;AAC7C,KAAI,OAAO,UAAU,aAAa,EAAE,IAAI,EAAE;SAClC,IAAI,CAAC,aAAa,EAAE;aACh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AAS,EAAE,IAAI,EAAE;AACzB,SAAA;AACD,QAAA,SAAS,EAAE,IAAI,GAAG,CAAC,CAAC,UAAU,EAAE,eAAe,EAAE,YAAY,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;AACvF,KAAA;AACD,IAAA,UAAU,EAAE;AACX,QAAA,QAAQ,EAAE;AACT,YAAA,MAAM,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;AAC3B,YAAA,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,GAAG,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,EAAE;AACzD,YAAA,iBAAiB,EAAE,EAAE,SAAS,EAAE,IAAI,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,SAAS,CAAC,CAAC,EAAE;AACrE,SAAA;AACD,QAAA,SAAS,EAAE,IAAI;AACf,KAAA;;;;;","x_google_ignoreList":[0,1]}
1
+ {"version":3,"file":"bem-registry-3ondDImf.js","sources":["../../node_modules/.pnpm/easy-bem@1.1.1/node_modules/easy-bem/index.js","../../node_modules/.pnpm/typed-bem@1.0.2/node_modules/typed-bem/dist/browser.mjs","src/schema/bem-registry.ts"],"sourcesContent":["'use strict';\r\n\r\n/**\r\n * BEM class name factory.\r\n *\r\n * @typedef {Function} Bem\r\n * @param {String|Object} [elementOrMods] Element name or hash object with mods\r\n * @param {Object} [mods] Hash object with mods\r\n * @returns {String}\r\n */\r\n\r\n/**\r\n * Returns BEM class name factory.\r\n *\r\n * @param {String} componentName Block name\r\n * @returns {Bem}\r\n */\r\nmodule.exports = function bem(componentName) {\r\n return function (elementOrMods, mods) {\r\n if (!elementOrMods) {\r\n return componentName;\r\n }\r\n\r\n var element;\r\n\r\n if (typeof elementOrMods === 'string') {\r\n element = elementOrMods;\r\n } else {\r\n mods = elementOrMods;\r\n }\r\n\r\n var base = componentName;\r\n if (element) {\r\n base += '__' + element;\r\n }\r\n\r\n return base + (\r\n mods\r\n ? Object.keys(mods).reduce(function (result, name) {\r\n var value = mods[name];\r\n\r\n if (value) {\r\n result += ' ' + (\r\n typeof value === 'boolean'\r\n ? (base + '--' + name)\r\n : (base + '--' + name + '_' + value)\r\n );\r\n }\r\n\r\n return result;\r\n }, '')\r\n : ''\r\n );\r\n };\r\n}\r\n","import a from\"easy-bem\";function c(){const e=new Map,n=(t,o,r)=>{try{return e.get(t)(o,r)}catch{return e.set(t,a(t)).get(t)(o,r)}};return n.forBlock=t=>{const o=(r,s)=>n(t,r,s);return o.forElement=r=>s=>n(t,r,s),o},n}function f(...e){const n=new Set;for(const t of e)if(t)for(const o of t.split(/\\s+/))n.add(o);return[...n].join(\" \")}export{c as generateBemClassNames,f as uniqueClassNames};\n//# sourceMappingURL=browser.mjs.map\n","import { generateBemClassNames } from 'typed-bem';\n\n/**\n * Central BEM Schema Registry for all KoliBri Components\n *\n * This file serves as the single source of truth for all BEM class name structures\n * across the entire KoliBri component library. By centralizing component schemas here,\n * we ensure consistency, prevent duplication, and enable powerful tooling.\n *\n * Benefits:\n * - Type safety across all components\n * - Consistent BEM structure\n * - Single point of maintenance\n * - Automatic SCSS generation\n * - Better IDE support and autocomplete\n * - forBlock integration for component-specific generators\n */\n\n/**\n * Complete schema definition for all KoliBri components\n */\nexport type KoliBriComponentsBemSchema = {\n\t'kol-abbr': {\n\t\tmodifiers: null;\n\t};\n\t'kol-alert': {\n\t\t/**\n\t\t * Here we define the elements we needed\n\t\t * to realize a minimal full featured alert\n\t\t * component (DOM).\n\t\t */\n\t\telements: {\n\t\t\tcontainer: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\ticon: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\theading: {\n\t\t\t\t/**\n\t\t\t\t * Some elements needs modifiers to\n\t\t\t\t * style them properly.\n\t\t\t\t */\n\t\t\t\tmodifiers: Set<'h0' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'>;\n\t\t\t};\n\t\t\tcontent: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\tcloser: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t};\n\t\t/**\n\t\t * Here we define the modifiers related to the\n\t\t * kol-alert component properties.\n\t\t */\n\t\tmodifiers: Set<'hasCloser' | 'type-default' | 'type-error' | 'type-info' | 'type-success' | 'type-warning' | 'variant-card' | 'variant-msg'>;\n\t};\n\t'kol-avatar': {\n\t\telements: {\n\t\t\timage: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\tinitials: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t};\n\t\tmodifiers: null;\n\t};\n\t'kol-icon': {\n\t\telements: {\n\t\t\ticon: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t};\n\t\tmodifiers: null;\n\t};\n\t'kol-meter': {\n\t\telements: {\n\t\t\tbar: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\t'bar-label': {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\t'bar-state': {\n\t\t\t\tmodifiers: Set<'optimum' | 'suboptimal' | 'critical'>;\n\t\t\t};\n\t\t\t'bar-track': {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\t'bar-fill': {\n\t\t\t\tmodifiers: Set<'optimum' | 'suboptimal' | 'critical'>;\n\t\t\t};\n\t\t\t'bar-background': {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\t'bar-border': {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\t'value-unit': {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\tvalue: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\tunit: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t};\n\t\tmodifiers: Set<'vertical'>;\n\t};\n\t'kol-quote': {\n\t\telements: {\n\t\t\tblockquote: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\tcite: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\tfigcaption: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\tquote: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t};\n\t\tmodifiers: Set<'block' | 'inline'>;\n\t};\n\t'kol-skeleton': {\n\t\telements: {\n\t\t\tcontainer: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\tname: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\tcounter: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\tactions: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t};\n\t\tmodifiers: Set<'has-name' | 'is-hidden'>;\n\t};\n\t'kol-click-button': {\n\t\telements: {\n\t\t\tlabel: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t};\n\t\tmodifiers: null;\n\t};\n\t'kol-span': {\n\t\telements: {\n\t\t\tcontainer: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\ticon: {\n\t\t\t\tmodifiers: Set<'bottom' | 'left' | 'right' | 'top'>;\n\t\t\t};\n\t\t\tlabel: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\tslot: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t};\n\t\tmodifiers: Set<'has-badge' | 'hide-label'>;\n\t};\n\t'kol-link': {\n\t\telements: {\n\t\t\tanchor: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\ticon: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\ttext: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t};\n\t\tmodifiers: Set<'disabled' | 'external-link' | 'hide-label' | 'inline' | 'standalone'>;\n\t};\n\t'kol-spin': {\n\t\telements: {\n\t\t\tspinner: {\n\t\t\t\tmodifiers: Set<'cycle' | 'dot' | 'none'>;\n\t\t\t};\n\t\t\t'spinner-element': {\n\t\t\t\tmodifiers: Set<'1' | '2' | '3' | 'neutral'>;\n\t\t\t};\n\t\t\tloader: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t};\n\t\tmodifiers: null;\n\t};\n};\n\n/**\n * Create the central BEM generator instance\n * This single instance is used across all components\n */\nexport const bem = generateBemClassNames<KoliBriComponentsBemSchema>();\n\n/**\n * Export the complete BEM schema for reuse\n * to generate SCSS files in themes.\n */\nconst BEM: KoliBriComponentsBemSchema = {\n\t'kol-abbr': {\n\t\tmodifiers: null,\n\t},\n\t'kol-alert': {\n\t\telements: {\n\t\t\tcloser: { modifiers: null },\n\t\t\theading: { modifiers: new Set(['h0', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6']) },\n\t\t\ticon: { modifiers: null },\n\t\t\tcontent: { modifiers: null },\n\t\t\tcontainer: { modifiers: null },\n\t\t},\n\t\tmodifiers: new Set(['hasCloser', 'type-default', 'type-error', 'type-info', 'type-success', 'type-warning', 'variant-card', 'variant-msg']),\n\t},\n\t'kol-avatar': {\n\t\telements: {\n\t\t\timage: { modifiers: null },\n\t\t\tinitials: { modifiers: null },\n\t\t},\n\t\tmodifiers: null,\n\t},\n\t'kol-icon': {\n\t\telements: {\n\t\t\ticon: { modifiers: null },\n\t\t},\n\t\tmodifiers: null,\n\t},\n\t'kol-meter': {\n\t\telements: {\n\t\t\tbar: { modifiers: null },\n\t\t\t'bar-background': { modifiers: null },\n\t\t\t'bar-border': { modifiers: null },\n\t\t\t'bar-fill': { modifiers: new Set(['critical', 'optimum', 'suboptimal']) },\n\t\t\t'bar-label': { modifiers: null },\n\t\t\t'bar-state': { modifiers: new Set(['critical', 'optimum', 'suboptimal']) },\n\t\t\t'bar-track': { modifiers: null },\n\t\t\tunit: { modifiers: null },\n\t\t\tvalue: { modifiers: null },\n\t\t\t'value-unit': { modifiers: null },\n\t\t},\n\t\tmodifiers: new Set(['vertical']),\n\t},\n\t'kol-quote': {\n\t\telements: {\n\t\t\tblockquote: { modifiers: null },\n\t\t\tcite: { modifiers: null },\n\t\t\tfigcaption: { modifiers: null },\n\t\t\tquote: { modifiers: null },\n\t\t},\n\t\tmodifiers: new Set(['block', 'inline']),\n\t},\n\t'kol-skeleton': {\n\t\telements: {\n\t\t\tactions: { modifiers: null },\n\t\t\tcontainer: { modifiers: null },\n\t\t\tcounter: { modifiers: null },\n\t\t\tname: { modifiers: null },\n\t\t},\n\t\tmodifiers: new Set(['has-name', 'is-hidden']),\n\t},\n\t'kol-click-button': {\n\t\telements: {\n\t\t\tlabel: { modifiers: null },\n\t\t},\n\t\tmodifiers: null,\n\t},\n\t'kol-span': {\n\t\telements: {\n\t\t\tcontainer: { modifiers: null },\n\t\t\ticon: { modifiers: new Set(['bottom', 'left', 'right', 'top']) },\n\t\t\tlabel: { modifiers: null },\n\t\t\tslot: { modifiers: null },\n\t\t},\n\t\tmodifiers: new Set(['has-badge', 'hide-label']),\n\t},\n\t'kol-link': {\n\t\telements: {\n\t\t\tanchor: { modifiers: null },\n\t\t\ticon: { modifiers: null },\n\t\t\ttext: { modifiers: null },\n\t\t},\n\t\tmodifiers: new Set(['disabled', 'external-link', 'hide-label', 'inline', 'standalone']),\n\t},\n\t'kol-spin': {\n\t\telements: {\n\t\t\tloader: { modifiers: null },\n\t\t\tspinner: { modifiers: new Set(['cycle', 'dot', 'none']) },\n\t\t\t'spinner-element': { modifiers: new Set(['1', '2', '3', 'neutral']) },\n\t\t},\n\t\tmodifiers: null,\n\t},\n};\n\nexport { BEM };\n"],"names":["generateBemClassNames"],"mappings":";;;;;;;;;;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAA,OAAc,GAAG,SAAS,GAAG,CAAC,aAAa,EAAE;AAC7C,KAAI,OAAO,UAAU,aAAa,EAAE,IAAI,EAAE;SAClC,IAAI,CAAC,aAAa,EAAE;aAChB,OAAO,aAAa,CAAC;UACxB;AACT;SACQ,IAAI,OAAO,CAAC;AACpB;AACA,SAAQ,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE;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,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;AACvF,KAAA;AACD,IAAA,UAAU,EAAE;AACX,QAAA,QAAQ,EAAE;AACT,YAAA,MAAM,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;AAC3B,YAAA,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,GAAG,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,EAAE;AACzD,YAAA,iBAAiB,EAAE,EAAE,SAAS,EAAE,IAAI,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,SAAS,CAAC,CAAC,EAAE;AACrE,SAAA;AACD,QAAA,SAAS,EAAE,IAAI;AACf,KAAA;;;;;","x_google_ignoreList":[0,1]}
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import { t as setRuntimeMode, u as se, L as Log } from './common-noYAs-wc.js';
5
- import { s as setCustomTagNames } from './component-names-BGnhDM7F.js';
4
+ import { u as setRuntimeMode, v as se, L as Log } from './common-D-vggmh2.js';
5
+ import { s as setCustomTagNames } from './component-names-DwvrfFak.js';
6
6
  import { i as initializeI18n } from './i18n-C73LqPIs.js';
7
7
 
8
8
  let initialized = false;
@@ -26,6 +26,6 @@ const isInitialized = () => initialized;
26
26
  const getOptions = () => options;
27
27
 
28
28
  export { bootstrap as b, getOptions as g, isInitialized as i, register as r };
29
- //# sourceMappingURL=bootstrap-dbQte9BJ.js.map
29
+ //# sourceMappingURL=bootstrap-Bfno1qh2.js.map
30
30
 
31
- //# sourceMappingURL=bootstrap-dbQte9BJ.js.map
31
+ //# sourceMappingURL=bootstrap-Bfno1qh2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"bootstrap-dbQte9BJ.js","sources":["src/core/bootstrap.ts"],"sourcesContent":["import type { Generic, LoaderCallback, RegisterOptions } from 'adopted-style-sheets';\nimport { register as coreRegister } from 'adopted-style-sheets';\nimport type { Mode } from '../schema';\nimport { Log, setRuntimeMode } from '../schema';\nimport { setCustomTagNames } from './component-names';\nimport { initializeI18n } from './i18n';\n\ntype KoliBriOptions = RegisterOptions & {\n\t/**\n\t * The environment in which the application is running.\n\t */\n\tenvironment?: Mode;\n\t/**\n\t * This option allows you to transform the component tag names.\n\t */\n\ttransformTagName?: (tagName: string) => string;\n\n\t/**\n\t * When enabled, all input fields will reflect their current value to the host element, making it accessible outside the shadow DOM.\n\t */\n\treflectInputValues?: boolean;\n};\n\nlet initialized = false;\nlet options: KoliBriOptions | undefined;\n\nexport const bootstrap = async (\n\tthemes:\n\t\t| Generic.Theming.RegisterPatch<string, string, string>\n\t\t| Generic.Theming.RegisterPatch<string, string, string>[]\n\t\t| Set<Generic.Theming.RegisterPatch<string, string, string>>,\n\tloaders: LoaderCallback | LoaderCallback[] | Set<LoaderCallback>,\n\tkoliBriOptions?: KoliBriOptions,\n): Promise<void[]> => {\n\tconst nodeEnv = typeof process !== 'undefined' && process.env ? (process.env.NODE_ENV as Mode) : undefined;\n\tsetRuntimeMode(koliBriOptions?.environment || nodeEnv || 'production');\n\n\tinitializeI18n(koliBriOptions?.translation?.name ?? 'de', koliBriOptions?.translations);\n\tif (koliBriOptions?.transformTagName) {\n\t\tsetCustomTagNames(koliBriOptions?.transformTagName);\n\t}\n\tconst coreRegisterReturnValue = await coreRegister(themes, loaders, koliBriOptions);\n\tinitialized = true;\n\toptions = koliBriOptions;\n\n\t// Only log development message when actually in development mode\n\tLog.info('Development mode active - Enhanced debugging features available');\n\n\treturn coreRegisterReturnValue;\n};\n\nexport const register = bootstrap;\nexport const isInitialized = () => initialized;\nexport const getOptions = () => options;\n"],"names":["coreRegister"],"mappings":";;;;;;;AAuBA,IAAI,WAAW,GAAG,KAAK;AACvB,IAAI,OAAmC;AAEhC,MAAM,SAAS,GAAG,OACxB,MAG6D,EAC7D,OAAgE,EAChE,cAA+B,KACX;;IACpB,MAAM,OAAO,GAAG,OAAO,OAAO,KAAK,WAAW,IAAI,OAAO,CAAC,GAAG,GAAI,YAA6B,GAAG,SAAS;IAC1G,cAAc,CAAC,CAAA,cAAc,KAAA,IAAA,IAAd,cAAc,KAAd,MAAA,GAAA,MAAA,GAAA,cAAc,CAAE,WAAW,KAAI,OAAO,IAAI,YAAY,CAAC;AAEtE,IAAA,cAAc,CAAC,MAAA,CAAA,EAAA,GAAA,cAAc,aAAd,cAAc,KAAA,MAAA,GAAA,MAAA,GAAd,cAAc,CAAE,WAAW,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAE,IAAI,MAAI,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,EAAA,GAAA,IAAI,EAAE,cAAc,KAAd,IAAA,IAAA,cAAc,uBAAd,cAAc,CAAE,YAAY,CAAC;IACvF,IAAI,cAAc,aAAd,cAAc,KAAA,MAAA,GAAA,MAAA,GAAd,cAAc,CAAE,gBAAgB,EAAE;QACrC,iBAAiB,CAAC,cAAc,KAAd,IAAA,IAAA,cAAc,uBAAd,cAAc,CAAE,gBAAgB,CAAC;;IAEpD,MAAM,uBAAuB,GAAG,MAAMA,EAAY,CAAC,MAAM,EAAE,OAAO,EAAE,cAAc,CAAC;IACnF,WAAW,GAAG,IAAI;IAClB,OAAO,GAAG,cAAc;AAGxB,IAAA,GAAG,CAAC,IAAI,CAAC,iEAAiE,CAAC;AAE3E,IAAA,OAAO,uBAAuB;AAC/B;AAEO,MAAM,QAAQ,GAAG;MACX,aAAa,GAAG,MAAM;MACtB,UAAU,GAAG,MAAM;;;;"}
1
+ {"version":3,"file":"bootstrap-Bfno1qh2.js","sources":["src/core/bootstrap.ts"],"sourcesContent":["import type { Generic, LoaderCallback, RegisterOptions } from 'adopted-style-sheets';\nimport { register as coreRegister } from 'adopted-style-sheets';\nimport type { Mode } from '../schema';\nimport { Log, setRuntimeMode } from '../schema';\nimport { setCustomTagNames } from './component-names';\nimport { initializeI18n } from './i18n';\n\ntype KoliBriOptions = RegisterOptions & {\n\t/**\n\t * The environment in which the application is running.\n\t */\n\tenvironment?: Mode;\n\t/**\n\t * This option allows you to transform the component tag names.\n\t */\n\ttransformTagName?: (tagName: string) => string;\n\n\t/**\n\t * When enabled, all input fields will reflect their current value to the host element, making it accessible outside the shadow DOM.\n\t */\n\treflectInputValues?: boolean;\n};\n\nlet initialized = false;\nlet options: KoliBriOptions | undefined;\n\nexport const bootstrap = async (\n\tthemes:\n\t\t| Generic.Theming.RegisterPatch<string, string, string>\n\t\t| Generic.Theming.RegisterPatch<string, string, string>[]\n\t\t| Set<Generic.Theming.RegisterPatch<string, string, string>>,\n\tloaders: LoaderCallback | LoaderCallback[] | Set<LoaderCallback>,\n\tkoliBriOptions?: KoliBriOptions,\n): Promise<void[]> => {\n\tconst nodeEnv = typeof process !== 'undefined' && process.env ? (process.env.NODE_ENV as Mode) : undefined;\n\tsetRuntimeMode(koliBriOptions?.environment || nodeEnv || 'production');\n\n\tinitializeI18n(koliBriOptions?.translation?.name ?? 'de', koliBriOptions?.translations);\n\tif (koliBriOptions?.transformTagName) {\n\t\tsetCustomTagNames(koliBriOptions?.transformTagName);\n\t}\n\tconst coreRegisterReturnValue = await coreRegister(themes, loaders, koliBriOptions);\n\tinitialized = true;\n\toptions = koliBriOptions;\n\n\t// Only log development message when actually in development mode\n\tLog.info('Development mode active - Enhanced debugging features available');\n\n\treturn coreRegisterReturnValue;\n};\n\nexport const register = bootstrap;\nexport const isInitialized = () => initialized;\nexport const getOptions = () => options;\n"],"names":["coreRegister"],"mappings":";;;;;;;AAuBA,IAAI,WAAW,GAAG,KAAK;AACvB,IAAI,OAAmC;AAEhC,MAAM,SAAS,GAAG,OACxB,MAG6D,EAC7D,OAAgE,EAChE,cAA+B,KACX;;IACpB,MAAM,OAAO,GAAG,OAAO,OAAO,KAAK,WAAW,IAAI,OAAO,CAAC,GAAG,GAAI,YAA6B,GAAG,SAAS;IAC1G,cAAc,CAAC,CAAA,cAAc,KAAA,IAAA,IAAd,cAAc,KAAd,MAAA,GAAA,MAAA,GAAA,cAAc,CAAE,WAAW,KAAI,OAAO,IAAI,YAAY,CAAC;AAEtE,IAAA,cAAc,CAAC,MAAA,CAAA,EAAA,GAAA,cAAc,aAAd,cAAc,KAAA,MAAA,GAAA,MAAA,GAAd,cAAc,CAAE,WAAW,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAE,IAAI,MAAI,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,EAAA,GAAA,IAAI,EAAE,cAAc,KAAd,IAAA,IAAA,cAAc,uBAAd,cAAc,CAAE,YAAY,CAAC;IACvF,IAAI,cAAc,aAAd,cAAc,KAAA,MAAA,GAAA,MAAA,GAAd,cAAc,CAAE,gBAAgB,EAAE;QACrC,iBAAiB,CAAC,cAAc,KAAd,IAAA,IAAA,cAAc,uBAAd,cAAc,CAAE,gBAAgB,CAAC;;IAEpD,MAAM,uBAAuB,GAAG,MAAMA,EAAY,CAAC,MAAM,EAAE,OAAO,EAAE,cAAc,CAAC;IACnF,WAAW,GAAG,IAAI;IAClB,OAAO,GAAG,cAAc;AAGxB,IAAA,GAAG,CAAC,IAAI,CAAC,iEAAiE,CAAC;AAE3E,IAAA,OAAO,uBAAuB;AAC/B;AAEO,MAAM,QAAQ,GAAG;MACX,aAAa,GAAG,MAAM;MACtB,UAAU,GAAG,MAAM;;;;"}
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import { L as Log, k as a11yHint, b as watchValidator } from './common-noYAs-wc.js';
5
- import { c as createContrastColorPair } from './contrast-BQCqf-V1.js';
4
+ import { L as Log, k as a11yHint, b as watchValidator } from './common-D-vggmh2.js';
5
+ import { c as createContrastColorPair } from './contrast-D_JyeI-Q.js';
6
6
 
7
7
  const HEX_REGEX = /^#((\d|[a-f]){8}|(\d|[a-f]){6}|(\d|[a-f]){3,4})$/i;
8
8
  function isHexString(value) {
@@ -93,6 +93,6 @@ const handleColorChange = (value) => {
93
93
  };
94
94
 
95
95
  export { handleColorChange as h, validateColor as v };
96
- //# sourceMappingURL=color-CrduxZp0.js.map
96
+ //# sourceMappingURL=color-DfMsiiGq.js.map
97
97
 
98
- //# sourceMappingURL=color-CrduxZp0.js.map
98
+ //# sourceMappingURL=color-DfMsiiGq.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"color-CrduxZp0.js","sources":["src/schema/props/color.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport type { Stringified } from '../types';\nimport type { ColorContrast, WatchOptions } from '../utils';\nimport { a11yHint, createContrastColorPair, Log, watchValidator } from '../utils';\n\n/**\n * Defines the backgroundColor and foregroundColor.\n */\nexport type ColorPair = {\n\tbackgroundColor: string;\n\tforegroundColor: string;\n};\n\nexport type PropColor = ColorPair;\n\ntype typeOfColorType = 'string' | 'ColorPair' | null;\n\nconst HEX_REGEX = /^#((\\d|[a-f]){8}|(\\d|[a-f]){6}|(\\d|[a-f]){3,4})$/i;\nfunction isHexString(value: string): boolean {\n\treturn HEX_REGEX.test(value);\n}\n/* checks if the string is valid JSON and if the resulting object is a valid ColorPair and returns it, or null if invalid. */\nfunction isColorObjectString(value: string): { type: typeOfColorType; value: PropColor | null } {\n\tif (value.startsWith('{')) {\n\t\ttry {\n\t\t\tconst parsed = JSON.parse(value) as unknown;\n\t\t\tif (isValidColorPair(parsed as ColorPair)) return { type: 'ColorPair', value: parsed as ColorPair };\n\t\t} catch {\n\t\t\treturn { type: null, value: null };\n\t\t}\n\t}\n\treturn { type: null, value: null };\n}\n\nfunction typeOfColor(value?: unknown): { type: typeOfColorType; valid: boolean; value: PropColor | string } {\n\tif (value) {\n\t\tif (typeof value === 'string') {\n\t\t\tif (isHexString(value)) return { type: 'string', valid: true, value: value };\n\t\t\telse {\n\t\t\t\tconst colorObject = isColorObjectString(value);\n\t\t\t\tif (colorObject.value) return { type: colorObject.type, valid: true, value: colorObject.value };\n\t\t\t}\n\t\t} else {\n\t\t\tconst asColorPair = value as ColorPair;\n\t\t\tif (isValidColorPair(asColorPair)) return { type: 'ColorPair', valid: true, value: asColorPair };\n\t\t}\n\t}\n\treturn { type: null, valid: false, value: '' };\n}\n\n/* validate different color options */\nfunction isValidColorPair(value: ColorPair): boolean {\n\treturn !!(typeof value === 'object' && value && typeof value.backgroundColor === 'string' && typeof value.foregroundColor === 'string');\n}\n\nfunction validatorFunction(value?: Stringified<PropColor>): boolean {\n\tconst valueType = typeOfColor(value);\n\tswitch (valueType.type) {\n\t\tcase null:\n\t\t\treturn false;\n\t\tcase 'string':\n\t\tcase 'ColorPair':\n\t\t\treturn valueType.valid;\n\t}\n}\n\nexport const validateColor = (component: Generic.Element.Component, value?: Stringified<PropColor>, options?: WatchOptions): void => {\n\twatchValidator(component, '_color', validatorFunction, new Set(['rgb in hex', 'ColorPair']), value, options);\n};\n\nexport const handleColorChange = (value: unknown): ColorPair => {\n\tlet colorContrast: ColorContrast<string>;\n\tconst valueType = typeOfColor(value);\n\tswitch (valueType.type) {\n\t\tcase 'string':\n\t\t\tcolorContrast = createContrastColorPair(valueType.value as string);\n\t\t\tbreak;\n\t\tcase 'ColorPair': {\n\t\t\tconst asColorPair = valueType.value as ColorPair;\n\t\t\tlet foreground = '';\n\t\t\tif (typeof asColorPair.foregroundColor === 'string') foreground = asColorPair.foregroundColor;\n\t\t\tif (!foreground || typeof foreground !== 'string') foreground = '#fff';\n\t\t\tcolorContrast = createContrastColorPair({\n\t\t\t\tbackground: asColorPair.backgroundColor,\n\t\t\t\tforeground,\n\t\t\t});\n\t\t\tbreak;\n\t\t}\n\t\tcase null:\n\t\t\tLog.warn(`_color was empty or invalid (${JSON.stringify(value)})`);\n\t\t\tcolorContrast = createContrastColorPair({\n\t\t\t\tbackground: '#000',\n\t\t\t\tforeground: '#000',\n\t\t\t});\n\t}\n\n\tif (colorContrast.contrast < 7) {\n\t\ta11yHint(\n\t\t\t`[KolBadge] The contrast of ${colorContrast.contrast} (≥7, AAA) is to low, between the color pair ${colorContrast.background} and ${colorContrast.foreground}.`,\n\t\t);\n\t}\n\treturn {\n\t\tbackgroundColor: colorContrast.background,\n\t\tforegroundColor: colorContrast.foreground,\n\t};\n};\n"],"names":[],"mappings":";;;;;;AAkBA,MAAM,SAAS,GAAG,mDAAmD;AACrE,SAAS,WAAW,CAAC,KAAa,EAAA;AACjC,IAAA,OAAO,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC;AAC7B;AAEA,SAAS,mBAAmB,CAAC,KAAa,EAAA;AACzC,IAAA,IAAI,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE;AAC1B,QAAA,IAAI;YACH,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAY;YAC3C,IAAI,gBAAgB,CAAC,MAAmB,CAAC;gBAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,MAAmB,EAAE;;QAClG,OAAA,EAAA,EAAM;YACP,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE;;;IAGpC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE;AACnC;AAEA,SAAS,WAAW,CAAC,KAAe,EAAA;IACnC,IAAI,KAAK,EAAE;AACV,QAAA,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC9B,IAAI,WAAW,CAAC,KAAK,CAAC;AAAE,gBAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE;iBACvE;AACJ,gBAAA,MAAM,WAAW,GAAG,mBAAmB,CAAC,KAAK,CAAC;gBAC9C,IAAI,WAAW,CAAC,KAAK;AAAE,oBAAA,OAAO,EAAE,IAAI,EAAE,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,CAAC,KAAK,EAAE;;;aAE1F;YACN,MAAM,WAAW,GAAG,KAAkB;YACtC,IAAI,g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KAAkB;YAChD,IAAI,UAAU,GAAG,EAAE;AACnB,YAAA,IAAI,OAAO,WAAW,CAAC,eAAe,KAAK,QAAQ;AAAE,gBAAA,UAAU,GAAG,WAAW,CAAC,eAAe;AAC7F,YAAA,IAAI,CAAC,UAAU,IAAI,OAAO,UAAU,KAAK,QAAQ;gBAAE,UAAU,GAAG,MAAM;YACtE,aAAa,GAAG,uBAAuB,CAAC;gBACvC,UAAU,EAAE,WAAW,CAAC,eAAe;gBACvC,UAAU;AACV,aAAA,CAAC;YACF;;AAED,QAAA,KAAK,IAAI;AACR,YAAA,GAAG,CAAC,IAAI,CAAC,CAAA,6BAAA,EAAgC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAG,CAAA,CAAA,CAAC;YAClE,aAAa,GAAG,uBAAuB,CAAC;AACvC,gBAAA,UAAU,EAAE,MAAM;AAClB,gBAAA,UAAU,EAAE,MAAM;AAClB,aAAA,CAAC;;AAGJ,IAAA,IAAI,aAAa,CAAC,QAAQ,GAAG,CAAC,EAAE;AAC/B,QAAA,QAAQ,CACP,CAAA,2BAAA,EAA8B,aAAa,CAAC,QAAQ,CAAgD,6CAAA,EAAA,aAAa,CAAC,UAAU,QAAQ,aAAa,CAAC,UAAU,CAAA,CAAA,CAAG,CAC/J;;IAEF,OAAO;QACN,eAAe,EAAE,aAAa,CAAC,UAAU;QACzC,eAAe,EAAE,aAAa,CAAC,UAAU;KACzC;AACF;;;;"}
1
+ {"version":3,"file":"color-DfMsiiGq.js","sources":["src/schema/props/color.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport type { Stringified } from '../types';\nimport type { ColorContrast, WatchOptions } from '../utils';\nimport { a11yHint, createContrastColorPair, Log, watchValidator } from '../utils';\n\n/**\n * Defines the backgroundColor and foregroundColor.\n */\nexport type ColorPair = {\n\tbackgroundColor: string;\n\tforegroundColor: string;\n};\n\nexport type PropColor = ColorPair;\n\ntype typeOfColorType = 'string' | 'ColorPair' | null;\n\nconst HEX_REGEX = /^#((\\d|[a-f]){8}|(\\d|[a-f]){6}|(\\d|[a-f]){3,4})$/i;\nfunction isHexString(value: string): boolean {\n\treturn HEX_REGEX.test(value);\n}\n/* checks if the string is valid JSON and if the resulting object is a valid ColorPair and returns it, or null if invalid. */\nfunction isColorObjectString(value: string): { type: typeOfColorType; value: PropColor | null } {\n\tif (value.startsWith('{')) {\n\t\ttry {\n\t\t\tconst parsed = JSON.parse(value) as unknown;\n\t\t\tif (isValidColorPair(parsed as ColorPair)) return { type: 'ColorPair', value: parsed as ColorPair };\n\t\t} catch {\n\t\t\treturn { type: null, value: null };\n\t\t}\n\t}\n\treturn { type: null, value: null };\n}\n\nfunction typeOfColor(value?: unknown): { type: typeOfColorType; valid: boolean; value: PropColor | string } {\n\tif (value) {\n\t\tif (typeof value === 'string') {\n\t\t\tif (isHexString(value)) return { type: 'string', valid: true, value: value };\n\t\t\telse {\n\t\t\t\tconst colorObject = isColorObjectString(value);\n\t\t\t\tif (colorObject.value) return { type: colorObject.type, valid: true, value: colorObject.value };\n\t\t\t}\n\t\t} else {\n\t\t\tconst asColorPair = value as ColorPair;\n\t\t\tif (isValidColorPair(asColorPair)) return { type: 'ColorPair', valid: true, value: asColorPair };\n\t\t}\n\t}\n\treturn { type: null, valid: false, value: '' };\n}\n\n/* validate different color options */\nfunction isValidColorPair(value: ColorPair): boolean {\n\treturn !!(typeof value === 'object' && value && typeof value.backgroundColor === 'string' && typeof value.foregroundColor === 'string');\n}\n\nfunction validatorFunction(value?: Stringified<PropColor>): boolean {\n\tconst valueType = typeOfColor(value);\n\tswitch (valueType.type) {\n\t\tcase null:\n\t\t\treturn false;\n\t\tcase 'string':\n\t\tcase 'ColorPair':\n\t\t\treturn valueType.valid;\n\t}\n}\n\nexport const validateColor = (component: Generic.Element.Component, value?: Stringified<PropColor>, options?: WatchOptions): void => {\n\twatchValidator(component, '_color', validatorFunction, new Set(['rgb in hex', 'ColorPair']), value, options);\n};\n\nexport const handleColorChange = (value: unknown): ColorPair => {\n\tlet colorContrast: ColorContrast<string>;\n\tconst valueType = typeOfColor(value);\n\tswitch (valueType.type) {\n\t\tcase 'string':\n\t\t\tcolorContrast = createContrastColorPair(valueType.value as string);\n\t\t\tbreak;\n\t\tcase 'ColorPair': {\n\t\t\tconst asColorPair = valueType.value as ColorPair;\n\t\t\tlet foreground = '';\n\t\t\tif (typeof asColorPair.foregroundColor === 'string') foreground = asColorPair.foregroundColor;\n\t\t\tif (!foreground || typeof foreground !== 'string') foreground = '#fff';\n\t\t\tcolorContrast = createContrastColorPair({\n\t\t\t\tbackground: asColorPair.backgroundColor,\n\t\t\t\tforeground,\n\t\t\t});\n\t\t\tbreak;\n\t\t}\n\t\tcase null:\n\t\t\tLog.warn(`_color was empty or invalid (${JSON.stringify(value)})`);\n\t\t\tcolorContrast = createContrastColorPair({\n\t\t\t\tbackground: '#000',\n\t\t\t\tforeground: '#000',\n\t\t\t});\n\t}\n\n\tif (colorContrast.contrast < 7) {\n\t\ta11yHint(\n\t\t\t`[KolBadge] The contrast of ${colorContrast.contrast} (≥7, AAA) is to low, between the color pair ${colorContrast.background} and ${colorContrast.foreground}.`,\n\t\t);\n\t}\n\treturn {\n\t\tbackgroundColor: colorContrast.background,\n\t\tforegroundColor: colorContrast.foreground,\n\t};\n};\n"],"names":[],"mappings":";;;;;;AAkBA,MAAM,SAAS,GAAG,mDAAmD;AACrE,SAAS,WAAW,CAAC,KAAa,EAAA;AACjC,IAAA,OAAO,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC;AAC7B;AAEA,SAAS,mBAAmB,CAAC,KAAa,EAAA;AACzC,IAAA,IAAI,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE;AAC1B,QAAA,IAAI;YACH,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAY;YAC3C,IAAI,gBAAgB,CAAC,MAAmB,CAAC;gBAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,MAAmB,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