@public-ui/components 3.0.5-rc.0 → 3.0.6-rc.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 (943) hide show
  1. package/custom-elements.json +1 -1
  2. package/dist/cjs/{Alert-C3vof8gc.js → Alert-DcMlrzdD.js} +1 -1
  3. package/dist/cjs/{Alert-C3vof8gc.js.map → Alert-DcMlrzdD.js.map} +1 -1
  4. package/dist/cjs/{Collapsible-BwQQh0mz.js → Collapsible-B6jbiscX.js} +1 -1
  5. package/dist/cjs/{Collapsible-BwQQh0mz.js.map → Collapsible-B6jbiscX.js.map} +1 -1
  6. package/dist/cjs/{CustomSuggestionsToggle-B-bTmnBQ.js → CustomSuggestionsToggle-c_U9sjXZ.js} +1 -1
  7. package/dist/cjs/{CustomSuggestionsToggle-B-bTmnBQ.js.map → CustomSuggestionsToggle-c_U9sjXZ.js.map} +1 -1
  8. package/dist/cjs/{FieldControlStateWrapper-Cmlj42uN.js → FieldControlStateWrapper-B1qQ3hQ7.js} +1 -1
  9. package/dist/cjs/{FieldControlStateWrapper-Cmlj42uN.js.map → FieldControlStateWrapper-B1qQ3hQ7.js.map} +1 -1
  10. package/dist/cjs/{FormFieldStateWrapper-B3KooWZ3.js → FormFieldStateWrapper-CPVnaqrG.js} +1 -1
  11. package/dist/cjs/{FormFieldStateWrapper-B3KooWZ3.js.map → FormFieldStateWrapper-CPVnaqrG.js.map} +1 -1
  12. package/dist/cjs/{Heading-BXbctWBt.js → Heading-CAbB1kIb.js} +1 -1
  13. package/dist/cjs/{Heading-BXbctWBt.js.map → Heading-CAbB1kIb.js.map} +1 -1
  14. package/dist/cjs/{Icon-ttrOpSx4.js → Icon-DSj-XpeC.js} +1 -1
  15. package/dist/cjs/{Icon-ttrOpSx4.js.map → Icon-DSj-XpeC.js.map} +1 -1
  16. package/dist/cjs/Input-D1MCZPt4.js +4 -0
  17. package/dist/cjs/{Input-jk9vBtZy.js.map → Input-D1MCZPt4.js.map} +1 -1
  18. package/dist/cjs/{InputStateWrapper-BUpZkpZ4.js → InputStateWrapper-L2XHGzYI.js} +1 -1
  19. package/dist/cjs/{InputStateWrapper-BUpZkpZ4.js.map → InputStateWrapper-L2XHGzYI.js.map} +1 -1
  20. package/dist/cjs/{InternalUnderlinedBadgeText-B9JCUpQ0.js → InternalUnderlinedBadgeText-BkQ9DFaD.js} +1 -1
  21. package/dist/cjs/{InternalUnderlinedBadgeText-B9JCUpQ0.js.map → InternalUnderlinedBadgeText-BkQ9DFaD.js.map} +1 -1
  22. package/dist/cjs/{Span-B82DoaCk.js → Span-DPo-84T2.js} +1 -1
  23. package/dist/cjs/{Span-B82DoaCk.js.map → Span-DPo-84T2.js.map} +1 -1
  24. package/dist/cjs/{access-and-short-key-B0dVd63T.js → access-and-short-key-BExF929g.js} +1 -1
  25. package/dist/cjs/{access-and-short-key-B0dVd63T.js.map → access-and-short-key-BExF929g.js.map} +1 -1
  26. package/dist/cjs/{align-CGodR4n7.js → align-CGG5V8xM.js} +1 -1
  27. package/dist/cjs/{align-CGodR4n7.js.map → align-CGG5V8xM.js.map} +1 -1
  28. package/dist/cjs/{align-floating-elements-Br8DD0Dz.js → align-floating-elements-Bxx5nIn-.js} +1 -1
  29. package/dist/cjs/{align-floating-elements-Br8DD0Dz.js.map → align-floating-elements-Bxx5nIn-.js.map} +1 -1
  30. package/dist/cjs/{app-globals-BBL5j1Pg.js → app-globals-4QvupzFj.js} +1 -1
  31. package/dist/cjs/{app-globals-BBL5j1Pg.js.map → app-globals-4QvupzFj.js.map} +1 -1
  32. package/dist/cjs/{associated.controller-DCjDhSZx.js → associated.controller-Dpp0zVIP.js} +1 -1
  33. package/dist/cjs/{associated.controller-DCjDhSZx.js.map → associated.controller-Dpp0zVIP.js.map} +1 -1
  34. package/dist/cjs/{auto-complete-QYKM7wxP.js → auto-complete-DQ9TPAgi.js} +1 -1
  35. package/dist/cjs/{auto-complete-QYKM7wxP.js.map → auto-complete-DQ9TPAgi.js.map} +1 -1
  36. package/dist/cjs/{bem-TNHXx4Pf.js → bem-BqAGYRuL.js} +1 -1
  37. package/dist/cjs/{bem-TNHXx4Pf.js.map → bem-BqAGYRuL.js.map} +1 -1
  38. package/dist/cjs/{bem-DBiVGyNi.js → bem-DnR3ZJW_.js} +1 -1
  39. package/dist/cjs/{bem-DBiVGyNi.js.map → bem-DnR3ZJW_.js.map} +1 -1
  40. package/dist/cjs/{bootstrap-CtGLo8kW.js → bootstrap-B3uKTmEF.js} +1 -1
  41. package/dist/cjs/{bootstrap-CtGLo8kW.js.map → bootstrap-B3uKTmEF.js.map} +1 -1
  42. package/dist/cjs/{browser-4oxWjixL.js → browser-CUgMyC7t.js} +1 -1
  43. package/dist/cjs/{browser-4oxWjixL.js.map → browser-CUgMyC7t.js.map} +1 -1
  44. package/dist/cjs/{color-BSkkZJMA.js → color-D7OxzTlF.js} +1 -1
  45. package/dist/cjs/{color-BSkkZJMA.js.map → color-D7OxzTlF.js.map} +1 -1
  46. package/dist/cjs/common-Cd2qH809.js +4 -0
  47. package/dist/cjs/common-Cd2qH809.js.map +1 -0
  48. package/dist/cjs/{controller-Ck-2hdGT.js → controller-B1n3An30.js} +1 -1
  49. package/dist/cjs/{controller-Ck-2hdGT.js.map → controller-B1n3An30.js.map} +1 -1
  50. package/dist/cjs/{controller-D_ukaPzo.js → controller-BF3IbQCZ.js} +1 -1
  51. package/dist/cjs/{controller-D_ukaPzo.js.map → controller-BF3IbQCZ.js.map} +1 -1
  52. package/dist/cjs/{controller-VVml6XNp.js → controller-BszsfOUC.js} +1 -1
  53. package/dist/cjs/{controller-VVml6XNp.js.map → controller-BszsfOUC.js.map} +1 -1
  54. package/dist/cjs/{controller-CspoQhj4.js → controller-ZfXZFg-x.js} +1 -1
  55. package/dist/cjs/{controller-CspoQhj4.js.map → controller-ZfXZFg-x.js.map} +1 -1
  56. package/dist/cjs/{controller-icon-5A-2C49Q.js → controller-icon-D5rg_BkW.js} +1 -1
  57. package/dist/cjs/{controller-icon-5A-2C49Q.js.map → controller-icon-D5rg_BkW.js.map} +1 -1
  58. package/dist/cjs/{custom-class-DthDHPRf.js → custom-class-BhuMM_WI.js} +1 -1
  59. package/dist/cjs/{custom-class-DthDHPRf.js.map → custom-class-BhuMM_WI.js.map} +1 -1
  60. package/dist/cjs/{dev.utils-BmcUr5ps.js → dev.utils-C863Y3KX.js} +1 -1
  61. package/dist/cjs/{dev.utils-BmcUr5ps.js.map → dev.utils-C863Y3KX.js.map} +1 -1
  62. package/dist/cjs/{devtools-D1oXS0lZ.js → devtools-D2vBkrTT.js} +1 -1
  63. package/dist/cjs/{devtools-D1oXS0lZ.js.map → devtools-D2vBkrTT.js.map} +1 -1
  64. package/dist/cjs/{disabled-JsWu7U3p.js → disabled-DT-7CUov.js} +1 -1
  65. package/dist/cjs/{disabled-JsWu7U3p.js.map → disabled-DT-7CUov.js.map} +1 -1
  66. package/dist/cjs/{has-closer-DUQoCoXf.js → has-closer-COtNvUI4.js} +1 -1
  67. package/dist/cjs/{has-closer-DUQoCoXf.js.map → has-closer-COtNvUI4.js.map} +1 -1
  68. package/dist/cjs/hide-label-DdGk9NfD.js +4 -0
  69. package/dist/cjs/{hide-label-DUc_dh2F.js.map → hide-label-DdGk9NfD.js.map} +1 -1
  70. package/dist/cjs/{href-Ch3fdFde.js → href-BxaZOlRE.js} +1 -1
  71. package/dist/cjs/{href-Ch3fdFde.js.map → href-BxaZOlRE.js.map} +1 -1
  72. package/dist/cjs/{i18n-CGM1ewjR.js → i18n-NiDr3RbD.js} +1 -1
  73. package/dist/cjs/{i18n-CGM1ewjR.js.map → i18n-NiDr3RbD.js.map} +1 -1
  74. package/dist/cjs/{icons-BqaGLdQD.js → icons-CvKgcv20.js} +1 -1
  75. package/dist/cjs/{icons-BqaGLdQD.js.map → icons-CvKgcv20.js.map} +1 -1
  76. package/dist/cjs/{image-source-BMMr7brE.js → image-source-DI336Od8.js} +1 -1
  77. package/dist/cjs/{image-source-BMMr7brE.js.map → image-source-DI336Od8.js.map} +1 -1
  78. package/dist/cjs/{index-DZ4EBybr.js → index-BAxGQsCx.js} +1 -1
  79. package/dist/cjs/{index-DZ4EBybr.js.map → index-BAxGQsCx.js.map} +1 -1
  80. package/dist/cjs/index.cjs.js +1 -1
  81. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  82. package/dist/cjs/kol-abbr.cjs.entry.js.map +1 -1
  83. package/dist/cjs/kol-abbr.entry.cjs.js.map +1 -1
  84. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  85. package/dist/cjs/kol-accordion.cjs.entry.js.map +1 -1
  86. package/dist/cjs/kol-accordion.entry.cjs.js.map +1 -1
  87. package/dist/cjs/kol-alert-wc.cjs.entry.js +1 -1
  88. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  89. package/dist/cjs/kol-alert.cjs.entry.js.map +1 -1
  90. package/dist/cjs/kol-alert.entry.cjs.js.map +1 -1
  91. package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
  92. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  93. package/dist/cjs/kol-avatar.cjs.entry.js.map +1 -1
  94. package/dist/cjs/kol-avatar.entry.cjs.js.map +1 -1
  95. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  96. package/dist/cjs/kol-badge.cjs.entry.js.map +1 -1
  97. package/dist/cjs/kol-badge.entry.cjs.js.map +1 -1
  98. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  99. package/dist/cjs/kol-breadcrumb.cjs.entry.js.map +1 -1
  100. package/dist/cjs/kol-breadcrumb.entry.cjs.js.map +1 -1
  101. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  102. package/dist/cjs/kol-button-link.cjs.entry.js.map +1 -1
  103. package/dist/cjs/kol-button-link.entry.cjs.js.map +1 -1
  104. package/dist/cjs/kol-button-wc.cjs.entry.js +1 -1
  105. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  106. package/dist/cjs/kol-button.cjs.entry.js.map +1 -1
  107. package/dist/cjs/kol-button.entry.cjs.js.map +1 -1
  108. package/dist/cjs/kol-card-wc.cjs.entry.js +1 -1
  109. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  110. package/dist/cjs/kol-card.cjs.entry.js.map +1 -1
  111. package/dist/cjs/kol-card.entry.cjs.js.map +1 -1
  112. package/dist/cjs/kol-combobox.cjs.entry.js +1 -1
  113. package/dist/cjs/kol-combobox.cjs.entry.js.map +1 -1
  114. package/dist/cjs/kol-combobox.entry.cjs.js.map +1 -1
  115. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  116. package/dist/cjs/kol-details.cjs.entry.js.map +1 -1
  117. package/dist/cjs/kol-details.entry.cjs.js.map +1 -1
  118. package/dist/cjs/kol-drawer.cjs.entry.js +1 -1
  119. package/dist/cjs/kol-drawer.cjs.entry.js.map +1 -1
  120. package/dist/cjs/kol-drawer.entry.cjs.js.map +1 -1
  121. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  122. package/dist/cjs/kol-form.cjs.entry.js.map +1 -1
  123. package/dist/cjs/kol-form.entry.cjs.js.map +1 -1
  124. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  125. package/dist/cjs/kol-heading.cjs.entry.js.map +1 -1
  126. package/dist/cjs/kol-heading.entry.cjs.js.map +1 -1
  127. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  128. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  129. package/dist/cjs/kol-image.cjs.entry.js.map +1 -1
  130. package/dist/cjs/kol-image.entry.cjs.js.map +1 -1
  131. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  132. package/dist/cjs/kol-input-checkbox.cjs.entry.js.map +1 -1
  133. package/dist/cjs/kol-input-checkbox.entry.cjs.js.map +1 -1
  134. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  135. package/dist/cjs/kol-input-color.cjs.entry.js.map +1 -1
  136. package/dist/cjs/kol-input-color.entry.cjs.js.map +1 -1
  137. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  138. package/dist/cjs/kol-input-date.cjs.entry.js.map +1 -1
  139. package/dist/cjs/kol-input-date.entry.cjs.js.map +1 -1
  140. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  141. package/dist/cjs/kol-input-email.cjs.entry.js.map +1 -1
  142. package/dist/cjs/kol-input-email.entry.cjs.js.map +1 -1
  143. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  144. package/dist/cjs/kol-input-file.cjs.entry.js.map +1 -1
  145. package/dist/cjs/kol-input-file.entry.cjs.js.map +1 -1
  146. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  147. package/dist/cjs/kol-input-number.cjs.entry.js.map +1 -1
  148. package/dist/cjs/kol-input-number.entry.cjs.js.map +1 -1
  149. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  150. package/dist/cjs/kol-input-password.cjs.entry.js.map +1 -1
  151. package/dist/cjs/kol-input-password.entry.cjs.js.map +1 -1
  152. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  153. package/dist/cjs/kol-input-radio.cjs.entry.js.map +1 -1
  154. package/dist/cjs/kol-input-radio.entry.cjs.js.map +1 -1
  155. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  156. package/dist/cjs/kol-input-range.cjs.entry.js.map +1 -1
  157. package/dist/cjs/kol-input-range.entry.cjs.js.map +1 -1
  158. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  159. package/dist/cjs/kol-input-text.cjs.entry.js.map +1 -1
  160. package/dist/cjs/kol-input-text.entry.cjs.js.map +1 -1
  161. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  162. package/dist/cjs/kol-kolibri.cjs.entry.js.map +1 -1
  163. package/dist/cjs/kol-kolibri.entry.cjs.js.map +1 -1
  164. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  165. package/dist/cjs/kol-link-button.cjs.entry.js.map +1 -1
  166. package/dist/cjs/kol-link-button.entry.cjs.js.map +1 -1
  167. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  168. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  169. package/dist/cjs/kol-link.cjs.entry.js.map +1 -1
  170. package/dist/cjs/kol-link.entry.cjs.js.map +1 -1
  171. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  172. package/dist/cjs/kol-modal.cjs.entry.js.map +1 -1
  173. package/dist/cjs/kol-modal.entry.cjs.js.map +1 -1
  174. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  175. package/dist/cjs/kol-nav.cjs.entry.js.map +1 -1
  176. package/dist/cjs/kol-nav.entry.cjs.js.map +1 -1
  177. package/dist/cjs/kol-pagination-wc.cjs.entry.js +1 -1
  178. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  179. package/dist/cjs/kol-pagination.cjs.entry.js.map +1 -1
  180. package/dist/cjs/kol-pagination.entry.cjs.js.map +1 -1
  181. package/dist/cjs/kol-popover-button-wc.cjs.entry.js +1 -1
  182. package/dist/cjs/kol-popover-button.cjs.entry.js +1 -1
  183. package/dist/cjs/kol-popover-button.cjs.entry.js.map +1 -1
  184. package/dist/cjs/kol-popover-button.entry.cjs.js.map +1 -1
  185. package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
  186. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  187. package/dist/cjs/kol-progress.cjs.entry.js.map +1 -1
  188. package/dist/cjs/kol-progress.entry.cjs.js.map +1 -1
  189. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  190. package/dist/cjs/kol-quote.cjs.entry.js.map +1 -1
  191. package/dist/cjs/kol-quote.entry.cjs.js.map +1 -1
  192. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  193. package/dist/cjs/kol-select.cjs.entry.js.map +1 -1
  194. package/dist/cjs/kol-select.entry.cjs.js.map +1 -1
  195. package/dist/cjs/kol-single-select.cjs.entry.js +1 -1
  196. package/dist/cjs/kol-single-select.cjs.entry.js.map +1 -1
  197. package/dist/cjs/kol-single-select.entry.cjs.js.map +1 -1
  198. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  199. package/dist/cjs/kol-skip-nav.cjs.entry.js.map +1 -1
  200. package/dist/cjs/kol-skip-nav.entry.cjs.js.map +1 -1
  201. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  202. package/dist/cjs/kol-spin.cjs.entry.js.map +1 -1
  203. package/dist/cjs/kol-spin.entry.cjs.js.map +1 -1
  204. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  205. package/dist/cjs/kol-split-button.cjs.entry.js.map +1 -1
  206. package/dist/cjs/kol-split-button.entry.cjs.js.map +1 -1
  207. package/dist/cjs/kol-table-settings-wc.cjs.entry.js +1 -1
  208. package/dist/cjs/kol-table-stateful.cjs.entry.js +1 -1
  209. package/dist/cjs/kol-table-stateful.cjs.entry.js.map +1 -1
  210. package/dist/cjs/kol-table-stateful.entry.cjs.js.map +1 -1
  211. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js +1 -1
  212. package/dist/cjs/kol-table-stateless.cjs.entry.js +1 -1
  213. package/dist/cjs/kol-table-stateless.cjs.entry.js.map +1 -1
  214. package/dist/cjs/kol-table-stateless.entry.cjs.js.map +1 -1
  215. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  216. package/dist/cjs/kol-tabs.cjs.entry.js.map +1 -1
  217. package/dist/cjs/kol-tabs.entry.cjs.js.map +1 -1
  218. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  219. package/dist/cjs/kol-textarea.cjs.entry.js.map +1 -1
  220. package/dist/cjs/kol-textarea.entry.cjs.js.map +1 -1
  221. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  222. package/dist/cjs/kol-toast-container.cjs.entry.js.map +1 -1
  223. package/dist/cjs/kol-toast-container.entry.cjs.js.map +1 -1
  224. package/dist/cjs/kol-toolbar.cjs.entry.js +1 -1
  225. package/dist/cjs/kol-toolbar.cjs.entry.js.map +1 -1
  226. package/dist/cjs/kol-toolbar.entry.cjs.js.map +1 -1
  227. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +1 -1
  228. package/dist/cjs/kol-tree-item-wc.cjs.entry.js +1 -1
  229. package/dist/cjs/kol-tree-item.cjs.entry.js +1 -1
  230. package/dist/cjs/kol-tree-item.cjs.entry.js.map +1 -1
  231. package/dist/cjs/kol-tree-item.entry.cjs.js.map +1 -1
  232. package/dist/cjs/kol-tree-wc.cjs.entry.js +1 -1
  233. package/dist/cjs/kol-tree.cjs.entry.js +1 -1
  234. package/dist/cjs/kol-tree.cjs.entry.js.map +1 -1
  235. package/dist/cjs/kol-tree.entry.cjs.js.map +1 -1
  236. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  237. package/dist/cjs/kol-version.cjs.entry.js.map +1 -1
  238. package/dist/cjs/kol-version.entry.cjs.js.map +1 -1
  239. package/dist/cjs/kolibri.cjs.js +1 -1
  240. package/dist/cjs/{label-QuxWRpmX.js → label-Nicf9N_T.js} +1 -1
  241. package/dist/cjs/{label-QuxWRpmX.js.map → label-Nicf9N_T.js.map} +1 -1
  242. package/dist/cjs/{link-variant-BBPMsbbH.js → link-variant-CIRPEZeP.js} +1 -1
  243. package/dist/cjs/{link-variant-BBPMsbbH.js.map → link-variant-CIRPEZeP.js.map} +1 -1
  244. package/dist/cjs/loader.cjs.js +1 -1
  245. package/dist/cjs/{markdown-DZ1IZ-7b.js → markdown-1dxeA2q6.js} +1 -1
  246. package/dist/cjs/{markdown-DZ1IZ-7b.js.map → markdown-1dxeA2q6.js.map} +1 -1
  247. package/dist/cjs/{max-length-behavior-BUuOPYrv.js → max-length-behavior-Bvbwhaxv.js} +1 -1
  248. package/dist/cjs/{max-length-behavior-BUuOPYrv.js.map → max-length-behavior-Bvbwhaxv.js.map} +1 -1
  249. package/dist/cjs/{multiple-BB-kVN1T.js → multiple-DRhU5nKU.js} +1 -1
  250. package/dist/cjs/{multiple-BB-kVN1T.js.map → multiple-DRhU5nKU.js.map} +1 -1
  251. package/dist/cjs/open-CFgcd51_.js +4 -0
  252. package/dist/cjs/{open-DT3WDPuM.js.map → open-CFgcd51_.js.map} +1 -1
  253. package/dist/cjs/orientation-BGODo_Ua.js +4 -0
  254. package/dist/cjs/{orientation-Yq2hnwhx.js.map → orientation-BGODo_Ua.js.map} +1 -1
  255. package/dist/cjs/placeholder-BncK-3gZ.js +4 -0
  256. package/dist/cjs/{placeholder-BThCBzLi.js.map → placeholder-BncK-3gZ.js.map} +1 -1
  257. package/dist/cjs/{read-only-CJZvE8gr.js → read-only-dIvCm73W.js} +1 -1
  258. package/dist/cjs/{read-only-CJZvE8gr.js.map → read-only-dIvCm73W.js.map} +1 -1
  259. package/dist/cjs/required-CXU7vdyH.js +4 -0
  260. package/dist/cjs/{required-CxJeLU2Q.js.map → required-CXU7vdyH.js.map} +1 -1
  261. package/dist/cjs/rows-BUvz5j5U.js +4 -0
  262. package/dist/cjs/{rows-CCfpaGu_.js.map → rows-BUvz5j5U.js.map} +1 -1
  263. package/dist/cjs/{show-BiXbiD-9.js → show-C0ZlevIe.js} +1 -1
  264. package/dist/cjs/{show-BiXbiD-9.js.map → show-C0ZlevIe.js.map} +1 -1
  265. package/dist/cjs/{spell-check-zWCFcS36.js → spell-check-Bkq4G9L7.js} +1 -1
  266. package/dist/cjs/{spell-check-zWCFcS36.js.map → spell-check-Bkq4G9L7.js.map} +1 -1
  267. package/dist/cjs/{suggestions-QQJT6_JO.js → suggestions-BjiW0xio.js} +1 -1
  268. package/dist/cjs/{suggestions-QQJT6_JO.js.map → suggestions-BjiW0xio.js.map} +1 -1
  269. package/dist/cjs/{table-settings-DTpfTTG4.js → table-settings-C94oBnXF.js} +1 -1
  270. package/dist/cjs/{table-settings-DTpfTTG4.js.map → table-settings-C94oBnXF.js.map} +1 -1
  271. package/dist/cjs/test-component.cjs.entry.js +1 -1
  272. package/dist/cjs/tooltip-align-WJPFINTL.js +4 -0
  273. package/dist/cjs/{tooltip-align-BrHrEyjZ.js.map → tooltip-align-WJPFINTL.js.map} +1 -1
  274. package/dist/cjs/{unique-nav-labels-B5hLpGR8.js → unique-nav-labels-hzeBq0jr.js} +1 -1
  275. package/dist/cjs/{unique-nav-labels-B5hLpGR8.js.map → unique-nav-labels-hzeBq0jr.js.map} +1 -1
  276. package/dist/cjs/validation-BvY0ZgXp.js +4 -0
  277. package/dist/cjs/{validation-C8RdRBsU.js.map → validation-BvY0ZgXp.js.map} +1 -1
  278. package/dist/cjs/{validation-DAmIrNsE.js → validation-DsxRnVmU.js} +1 -1
  279. package/dist/cjs/{validation-DAmIrNsE.js.map → validation-DsxRnVmU.js.map} +1 -1
  280. package/dist/components/common.js +1 -1
  281. package/dist/components/common.js.map +1 -1
  282. package/dist/components/kol-abbr.js +1 -1
  283. package/dist/components/kol-abbr.js.map +1 -1
  284. package/dist/components/kol-accordion.js +1 -1
  285. package/dist/components/kol-accordion.js.map +1 -1
  286. package/dist/components/kol-alert.js +1 -1
  287. package/dist/components/kol-alert.js.map +1 -1
  288. package/dist/components/kol-avatar.js +1 -1
  289. package/dist/components/kol-avatar.js.map +1 -1
  290. package/dist/components/kol-badge.js +1 -1
  291. package/dist/components/kol-badge.js.map +1 -1
  292. package/dist/components/kol-breadcrumb.js +1 -1
  293. package/dist/components/kol-breadcrumb.js.map +1 -1
  294. package/dist/components/kol-button-link.js +1 -1
  295. package/dist/components/kol-button-link.js.map +1 -1
  296. package/dist/components/kol-button.js +1 -1
  297. package/dist/components/kol-button.js.map +1 -1
  298. package/dist/components/kol-card.js +1 -1
  299. package/dist/components/kol-card.js.map +1 -1
  300. package/dist/components/kol-combobox.js +1 -1
  301. package/dist/components/kol-combobox.js.map +1 -1
  302. package/dist/components/kol-details.js +1 -1
  303. package/dist/components/kol-details.js.map +1 -1
  304. package/dist/components/kol-drawer.js +1 -1
  305. package/dist/components/kol-drawer.js.map +1 -1
  306. package/dist/components/kol-form.js +1 -1
  307. package/dist/components/kol-form.js.map +1 -1
  308. package/dist/components/kol-heading.js +1 -1
  309. package/dist/components/kol-heading.js.map +1 -1
  310. package/dist/components/kol-image.js +1 -1
  311. package/dist/components/kol-image.js.map +1 -1
  312. package/dist/components/kol-input-checkbox.js +1 -1
  313. package/dist/components/kol-input-checkbox.js.map +1 -1
  314. package/dist/components/kol-input-color.js +1 -1
  315. package/dist/components/kol-input-color.js.map +1 -1
  316. package/dist/components/kol-input-date.js +1 -1
  317. package/dist/components/kol-input-date.js.map +1 -1
  318. package/dist/components/kol-input-email.js +1 -1
  319. package/dist/components/kol-input-email.js.map +1 -1
  320. package/dist/components/kol-input-file.js +1 -1
  321. package/dist/components/kol-input-file.js.map +1 -1
  322. package/dist/components/kol-input-number.js +1 -1
  323. package/dist/components/kol-input-number.js.map +1 -1
  324. package/dist/components/kol-input-password.js +1 -1
  325. package/dist/components/kol-input-password.js.map +1 -1
  326. package/dist/components/kol-input-radio.js +1 -1
  327. package/dist/components/kol-input-radio.js.map +1 -1
  328. package/dist/components/kol-input-range.js +1 -1
  329. package/dist/components/kol-input-range.js.map +1 -1
  330. package/dist/components/kol-input-text.js +1 -1
  331. package/dist/components/kol-input-text.js.map +1 -1
  332. package/dist/components/kol-kolibri.js +1 -1
  333. package/dist/components/kol-kolibri.js.map +1 -1
  334. package/dist/components/kol-link-button.js +1 -1
  335. package/dist/components/kol-link-button.js.map +1 -1
  336. package/dist/components/kol-link.js +1 -1
  337. package/dist/components/kol-link.js.map +1 -1
  338. package/dist/components/kol-modal.js +1 -1
  339. package/dist/components/kol-modal.js.map +1 -1
  340. package/dist/components/kol-nav.js +1 -1
  341. package/dist/components/kol-nav.js.map +1 -1
  342. package/dist/components/kol-pagination.js +1 -1
  343. package/dist/components/kol-pagination.js.map +1 -1
  344. package/dist/components/kol-popover-button.js +1 -1
  345. package/dist/components/kol-popover-button.js.map +1 -1
  346. package/dist/components/kol-progress.js +1 -1
  347. package/dist/components/kol-progress.js.map +1 -1
  348. package/dist/components/kol-quote.js +1 -1
  349. package/dist/components/kol-quote.js.map +1 -1
  350. package/dist/components/kol-select.js +1 -1
  351. package/dist/components/kol-select.js.map +1 -1
  352. package/dist/components/kol-single-select.js +1 -1
  353. package/dist/components/kol-single-select.js.map +1 -1
  354. package/dist/components/kol-skip-nav.js +1 -1
  355. package/dist/components/kol-skip-nav.js.map +1 -1
  356. package/dist/components/kol-spin.js +1 -1
  357. package/dist/components/kol-spin.js.map +1 -1
  358. package/dist/components/kol-split-button.js +1 -1
  359. package/dist/components/kol-split-button.js.map +1 -1
  360. package/dist/components/kol-table-stateful.js +1 -1
  361. package/dist/components/kol-table-stateful.js.map +1 -1
  362. package/dist/components/kol-table-stateless.js +1 -1
  363. package/dist/components/kol-table-stateless.js.map +1 -1
  364. package/dist/components/kol-tabs.js +1 -1
  365. package/dist/components/kol-tabs.js.map +1 -1
  366. package/dist/components/kol-textarea.js +1 -1
  367. package/dist/components/kol-textarea.js.map +1 -1
  368. package/dist/components/kol-toast-container.js +1 -1
  369. package/dist/components/kol-toast-container.js.map +1 -1
  370. package/dist/components/kol-toolbar.js +1 -1
  371. package/dist/components/kol-toolbar.js.map +1 -1
  372. package/dist/components/kol-tree-item.js +1 -1
  373. package/dist/components/kol-tree-item.js.map +1 -1
  374. package/dist/components/kol-tree.js +1 -1
  375. package/dist/components/kol-tree.js.map +1 -1
  376. package/dist/components/kol-version.js +1 -1
  377. package/dist/components/kol-version.js.map +1 -1
  378. package/dist/esm/{Alert-C9KodDn-.js → Alert-DSfF5oYO.js} +1 -1
  379. package/dist/{kolibri/Alert-C9KodDn-.js.map → esm/Alert-DSfF5oYO.js.map} +1 -1
  380. package/dist/esm/{Collapsible-DFegUHMu.js → Collapsible-8yntsjFt.js} +1 -1
  381. package/dist/esm/{Collapsible-DFegUHMu.js.map → Collapsible-8yntsjFt.js.map} +1 -1
  382. package/dist/esm/{CustomSuggestionsToggle-YLF12END.js → CustomSuggestionsToggle-C8IuvN89.js} +1 -1
  383. package/dist/{kolibri/CustomSuggestionsToggle-YLF12END.js.map → esm/CustomSuggestionsToggle-C8IuvN89.js.map} +1 -1
  384. package/dist/esm/{FieldControlStateWrapper-DlhKEQYv.js → FieldControlStateWrapper-ChUQFvRm.js} +1 -1
  385. package/dist/esm/{FieldControlStateWrapper-DlhKEQYv.js.map → FieldControlStateWrapper-ChUQFvRm.js.map} +1 -1
  386. package/dist/esm/{FormFieldStateWrapper-CGvaBC47.js → FormFieldStateWrapper-BDa3sFBn.js} +1 -1
  387. package/dist/{kolibri/FormFieldStateWrapper-CGvaBC47.js.map → esm/FormFieldStateWrapper-BDa3sFBn.js.map} +1 -1
  388. package/dist/esm/{Heading-BPYmDTUk.js → Heading-CfdCVyC3.js} +1 -1
  389. package/dist/{kolibri/Heading-BPYmDTUk.js.map → esm/Heading-CfdCVyC3.js.map} +1 -1
  390. package/dist/esm/Icon-Bsf76uHm.js +4 -0
  391. package/dist/esm/{Icon-CPJLro7v.js.map → Icon-Bsf76uHm.js.map} +1 -1
  392. package/dist/esm/Input-BQVzI0c9.js +4 -0
  393. package/dist/{kolibri/Input-DjC4bpJ5.js.map → esm/Input-BQVzI0c9.js.map} +1 -1
  394. package/dist/esm/{InputStateWrapper-C2VyGe6a.js → InputStateWrapper-BVBg8J1R.js} +1 -1
  395. package/dist/esm/{InputStateWrapper-C2VyGe6a.js.map → InputStateWrapper-BVBg8J1R.js.map} +1 -1
  396. package/dist/esm/InternalUnderlinedBadgeText-EK327PqL.js +4 -0
  397. package/dist/esm/{InternalUnderlinedBadgeText-Cx9AyLre.js.map → InternalUnderlinedBadgeText-EK327PqL.js.map} +1 -1
  398. package/dist/esm/{Span-BebyS5Q1.js → Span-CabLpAXO.js} +1 -1
  399. package/dist/{kolibri/Span-BebyS5Q1.js.map → esm/Span-CabLpAXO.js.map} +1 -1
  400. package/dist/esm/{access-and-short-key-CBDgF26-.js → access-and-short-key-bcID78Ha.js} +1 -1
  401. package/dist/esm/{access-and-short-key-CBDgF26-.js.map → access-and-short-key-bcID78Ha.js.map} +1 -1
  402. package/dist/esm/{align-BU6S1qiO.js → align-CyK0wp7d.js} +1 -1
  403. package/dist/{kolibri/align-BU6S1qiO.js.map → esm/align-CyK0wp7d.js.map} +1 -1
  404. package/dist/esm/{align-floating-elements-CB8sErUz.js → align-floating-elements-Bx4ukVlr.js} +1 -1
  405. package/dist/esm/{align-floating-elements-CB8sErUz.js.map → align-floating-elements-Bx4ukVlr.js.map} +1 -1
  406. package/dist/esm/{app-globals-CESfn_CS.js → app-globals-CtV70nwT.js} +1 -1
  407. package/dist/esm/{app-globals-CESfn_CS.js.map → app-globals-CtV70nwT.js.map} +1 -1
  408. package/dist/esm/{associated.controller-BVXWSO2G.js → associated.controller-BKIODHIT.js} +1 -1
  409. package/dist/{kolibri/associated.controller-BVXWSO2G.js.map → esm/associated.controller-BKIODHIT.js.map} +1 -1
  410. package/dist/esm/{auto-complete-QkT4jBSK.js → auto-complete-BsG3RQJ3.js} +1 -1
  411. package/dist/esm/{auto-complete-QkT4jBSK.js.map → auto-complete-BsG3RQJ3.js.map} +1 -1
  412. package/dist/esm/{bem-Cr-VD6ns.js → bem-CjFNhKP6.js} +1 -1
  413. package/dist/esm/{bem-Cr-VD6ns.js.map → bem-CjFNhKP6.js.map} +1 -1
  414. package/dist/esm/{bem-DqV0swL_.js → bem-DhwfdDrM.js} +1 -1
  415. package/dist/esm/{bem-DqV0swL_.js.map → bem-DhwfdDrM.js.map} +1 -1
  416. package/dist/esm/{bootstrap-YDZ8Qb_h.js → bootstrap-BiRnv4fV.js} +1 -1
  417. package/dist/esm/{bootstrap-YDZ8Qb_h.js.map → bootstrap-BiRnv4fV.js.map} +1 -1
  418. package/dist/esm/{browser-DAVbNx-f.js → browser-DeS_gcJV.js} +1 -1
  419. package/dist/{kolibri/browser-DAVbNx-f.js.map → esm/browser-DeS_gcJV.js.map} +1 -1
  420. package/dist/esm/{color-Byzv98Bu.js → color-C3pYZKV3.js} +1 -1
  421. package/dist/{kolibri/color-Byzv98Bu.js.map → esm/color-C3pYZKV3.js.map} +1 -1
  422. package/dist/esm/common-8fBdMvJM.js +4 -0
  423. package/dist/esm/common-8fBdMvJM.js.map +1 -0
  424. package/dist/esm/{controller-DR6tEetQ.js → controller-BOrHVaYB.js} +1 -1
  425. package/dist/{kolibri/controller-DR6tEetQ.js.map → esm/controller-BOrHVaYB.js.map} +1 -1
  426. package/dist/esm/{controller-D4SIjZnf.js → controller-CV2y9Ae_.js} +1 -1
  427. package/dist/esm/{controller-D4SIjZnf.js.map → controller-CV2y9Ae_.js.map} +1 -1
  428. package/dist/esm/{controller-DOh6Y7if.js → controller-CjDina_l.js} +1 -1
  429. package/dist/{kolibri/controller-DOh6Y7if.js.map → esm/controller-CjDina_l.js.map} +1 -1
  430. package/dist/esm/{controller-icon-Dak8u7ck.js → controller-icon-NuudIQ5E.js} +1 -1
  431. package/dist/{kolibri/controller-icon-Dak8u7ck.js.map → esm/controller-icon-NuudIQ5E.js.map} +1 -1
  432. package/dist/esm/{controller-BhAbvioO.js → controller-qa9_sr4y.js} +1 -1
  433. package/dist/esm/{controller-BhAbvioO.js.map → controller-qa9_sr4y.js.map} +1 -1
  434. package/dist/esm/custom-class-CA0KGtrM.js +4 -0
  435. package/dist/esm/{custom-class-B5WXhTM9.js.map → custom-class-CA0KGtrM.js.map} +1 -1
  436. package/dist/esm/{dev.utils-CMSYtmAz.js → dev.utils-DbZWp4Qf.js} +1 -1
  437. package/dist/esm/{dev.utils-CMSYtmAz.js.map → dev.utils-DbZWp4Qf.js.map} +1 -1
  438. package/dist/esm/{devtools-CDwLKwYR.js → devtools-BsF06iJC.js} +1 -1
  439. package/dist/{kolibri/devtools-CDwLKwYR.js.map → esm/devtools-BsF06iJC.js.map} +1 -1
  440. package/dist/esm/disabled-BydergHu.js +4 -0
  441. package/dist/esm/{disabled-oePQqAfy.js.map → disabled-BydergHu.js.map} +1 -1
  442. package/dist/esm/{has-closer-Dc5S0f9j.js → has-closer-BBMh8HY3.js} +1 -1
  443. package/dist/esm/{has-closer-Dc5S0f9j.js.map → has-closer-BBMh8HY3.js.map} +1 -1
  444. package/dist/esm/{hide-label-BmYpplzr.js → hide-label-DRunOux4.js} +1 -1
  445. package/dist/esm/{hide-label-BmYpplzr.js.map → hide-label-DRunOux4.js.map} +1 -1
  446. package/dist/esm/{href-BETcU_FA.js → href-zZq6HYWf.js} +1 -1
  447. package/dist/esm/{href-BETcU_FA.js.map → href-zZq6HYWf.js.map} +1 -1
  448. package/dist/esm/{i18n-C7ZsbK5l.js → i18n-CdSCDnmA.js} +1 -1
  449. package/dist/esm/{i18n-C7ZsbK5l.js.map → i18n-CdSCDnmA.js.map} +1 -1
  450. package/dist/esm/{icons-CH_AgdgO.js → icons-72ER78AW.js} +1 -1
  451. package/dist/{kolibri/icons-CH_AgdgO.js.map → esm/icons-72ER78AW.js.map} +1 -1
  452. package/dist/esm/{image-source-COIdbYDA.js → image-source-RWPv7frZ.js} +1 -1
  453. package/dist/esm/{image-source-COIdbYDA.js.map → image-source-RWPv7frZ.js.map} +1 -1
  454. package/dist/esm/{index-BRWth_lT.js → index-DwzuLp_u.js} +1 -1
  455. package/dist/esm/{index-BRWth_lT.js.map → index-DwzuLp_u.js.map} +1 -1
  456. package/dist/esm/index.js +1 -1
  457. package/dist/esm/kol-abbr.entry.js +1 -1
  458. package/dist/esm/kol-abbr.entry.js.map +1 -1
  459. package/dist/esm/kol-accordion.entry.js +1 -1
  460. package/dist/esm/kol-accordion.entry.js.map +1 -1
  461. package/dist/esm/kol-alert-wc.entry.js +1 -1
  462. package/dist/esm/kol-alert.entry.js +1 -1
  463. package/dist/esm/kol-alert.entry.js.map +1 -1
  464. package/dist/esm/kol-avatar-wc.entry.js +1 -1
  465. package/dist/esm/kol-avatar.entry.js +1 -1
  466. package/dist/esm/kol-avatar.entry.js.map +1 -1
  467. package/dist/esm/kol-badge.entry.js +1 -1
  468. package/dist/esm/kol-badge.entry.js.map +1 -1
  469. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  470. package/dist/esm/kol-breadcrumb.entry.js.map +1 -1
  471. package/dist/esm/kol-button-link.entry.js +1 -1
  472. package/dist/esm/kol-button-link.entry.js.map +1 -1
  473. package/dist/esm/kol-button-wc.entry.js +1 -1
  474. package/dist/esm/kol-button.entry.js +1 -1
  475. package/dist/esm/kol-button.entry.js.map +1 -1
  476. package/dist/esm/kol-card-wc.entry.js +1 -1
  477. package/dist/esm/kol-card.entry.js +1 -1
  478. package/dist/esm/kol-card.entry.js.map +1 -1
  479. package/dist/esm/kol-combobox.entry.js +1 -1
  480. package/dist/esm/kol-combobox.entry.js.map +1 -1
  481. package/dist/esm/kol-details.entry.js +1 -1
  482. package/dist/esm/kol-details.entry.js.map +1 -1
  483. package/dist/esm/kol-drawer.entry.js +1 -1
  484. package/dist/esm/kol-drawer.entry.js.map +1 -1
  485. package/dist/esm/kol-form.entry.js +1 -1
  486. package/dist/esm/kol-form.entry.js.map +1 -1
  487. package/dist/esm/kol-heading.entry.js +1 -1
  488. package/dist/esm/kol-heading.entry.js.map +1 -1
  489. package/dist/esm/kol-icon.entry.js +1 -1
  490. package/dist/esm/kol-image.entry.js +1 -1
  491. package/dist/esm/kol-image.entry.js.map +1 -1
  492. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  493. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  494. package/dist/esm/kol-input-color.entry.js +1 -1
  495. package/dist/esm/kol-input-color.entry.js.map +1 -1
  496. package/dist/esm/kol-input-date.entry.js +1 -1
  497. package/dist/esm/kol-input-date.entry.js.map +1 -1
  498. package/dist/esm/kol-input-email.entry.js +1 -1
  499. package/dist/esm/kol-input-email.entry.js.map +1 -1
  500. package/dist/esm/kol-input-file.entry.js +1 -1
  501. package/dist/esm/kol-input-file.entry.js.map +1 -1
  502. package/dist/esm/kol-input-number.entry.js +1 -1
  503. package/dist/esm/kol-input-number.entry.js.map +1 -1
  504. package/dist/esm/kol-input-password.entry.js +1 -1
  505. package/dist/esm/kol-input-password.entry.js.map +1 -1
  506. package/dist/esm/kol-input-radio.entry.js +1 -1
  507. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  508. package/dist/esm/kol-input-range.entry.js +1 -1
  509. package/dist/esm/kol-input-range.entry.js.map +1 -1
  510. package/dist/esm/kol-input-text.entry.js +1 -1
  511. package/dist/esm/kol-input-text.entry.js.map +1 -1
  512. package/dist/esm/kol-kolibri.entry.js +1 -1
  513. package/dist/esm/kol-kolibri.entry.js.map +1 -1
  514. package/dist/esm/kol-link-button.entry.js +1 -1
  515. package/dist/esm/kol-link-button.entry.js.map +1 -1
  516. package/dist/esm/kol-link-wc.entry.js +1 -1
  517. package/dist/esm/kol-link.entry.js +1 -1
  518. package/dist/esm/kol-link.entry.js.map +1 -1
  519. package/dist/esm/kol-modal.entry.js +1 -1
  520. package/dist/esm/kol-modal.entry.js.map +1 -1
  521. package/dist/esm/kol-nav.entry.js +1 -1
  522. package/dist/esm/kol-nav.entry.js.map +1 -1
  523. package/dist/esm/kol-pagination-wc.entry.js +1 -1
  524. package/dist/esm/kol-pagination.entry.js +1 -1
  525. package/dist/esm/kol-pagination.entry.js.map +1 -1
  526. package/dist/esm/kol-popover-button-wc.entry.js +1 -1
  527. package/dist/esm/kol-popover-button.entry.js +1 -1
  528. package/dist/esm/kol-popover-button.entry.js.map +1 -1
  529. package/dist/esm/kol-popover-wc.entry.js +1 -1
  530. package/dist/esm/kol-progress.entry.js +1 -1
  531. package/dist/esm/kol-progress.entry.js.map +1 -1
  532. package/dist/esm/kol-quote.entry.js +1 -1
  533. package/dist/esm/kol-quote.entry.js.map +1 -1
  534. package/dist/esm/kol-select.entry.js +1 -1
  535. package/dist/esm/kol-select.entry.js.map +1 -1
  536. package/dist/esm/kol-single-select.entry.js +1 -1
  537. package/dist/esm/kol-single-select.entry.js.map +1 -1
  538. package/dist/esm/kol-skip-nav.entry.js +1 -1
  539. package/dist/esm/kol-skip-nav.entry.js.map +1 -1
  540. package/dist/esm/kol-spin.entry.js +1 -1
  541. package/dist/esm/kol-spin.entry.js.map +1 -1
  542. package/dist/esm/kol-split-button.entry.js +1 -1
  543. package/dist/esm/kol-split-button.entry.js.map +1 -1
  544. package/dist/esm/kol-table-settings-wc.entry.js +1 -1
  545. package/dist/esm/kol-table-stateful.entry.js +1 -1
  546. package/dist/esm/kol-table-stateful.entry.js.map +1 -1
  547. package/dist/esm/kol-table-stateless-wc.entry.js +1 -1
  548. package/dist/esm/kol-table-stateless.entry.js +1 -1
  549. package/dist/esm/kol-table-stateless.entry.js.map +1 -1
  550. package/dist/esm/kol-tabs.entry.js +1 -1
  551. package/dist/esm/kol-tabs.entry.js.map +1 -1
  552. package/dist/esm/kol-textarea.entry.js +1 -1
  553. package/dist/esm/kol-textarea.entry.js.map +1 -1
  554. package/dist/esm/kol-toast-container.entry.js +1 -1
  555. package/dist/esm/kol-toast-container.entry.js.map +1 -1
  556. package/dist/esm/kol-toolbar.entry.js +1 -1
  557. package/dist/esm/kol-toolbar.entry.js.map +1 -1
  558. package/dist/esm/kol-tooltip-wc.entry.js +1 -1
  559. package/dist/esm/kol-tree-item-wc.entry.js +1 -1
  560. package/dist/esm/kol-tree-item.entry.js +1 -1
  561. package/dist/esm/kol-tree-item.entry.js.map +1 -1
  562. package/dist/esm/kol-tree-wc.entry.js +1 -1
  563. package/dist/esm/kol-tree.entry.js +1 -1
  564. package/dist/esm/kol-tree.entry.js.map +1 -1
  565. package/dist/esm/kol-version.entry.js +1 -1
  566. package/dist/esm/kol-version.entry.js.map +1 -1
  567. package/dist/esm/kolibri.js +1 -1
  568. package/dist/esm/{label-DGzuU0HV.js → label-CdtNxOKu.js} +1 -1
  569. package/dist/{kolibri/label-DGzuU0HV.js.map → esm/label-CdtNxOKu.js.map} +1 -1
  570. package/dist/esm/{link-variant-B1pMVL0L.js → link-variant-B9BZOLu-.js} +1 -1
  571. package/dist/{kolibri/link-variant-B1pMVL0L.js.map → esm/link-variant-B9BZOLu-.js.map} +1 -1
  572. package/dist/esm/loader.js +1 -1
  573. package/dist/esm/{markdown-BJ3cxn6B.js → markdown-DL-PkOqb.js} +1 -1
  574. package/dist/esm/{markdown-BJ3cxn6B.js.map → markdown-DL-PkOqb.js.map} +1 -1
  575. package/dist/esm/{max-length-behavior-DCUK2Rvw.js → max-length-behavior-BmNWss6T.js} +1 -1
  576. package/dist/esm/{max-length-behavior-DCUK2Rvw.js.map → max-length-behavior-BmNWss6T.js.map} +1 -1
  577. package/dist/esm/multiple-bcm5IaCN.js +4 -0
  578. package/dist/{kolibri/multiple-D4hUZQZi.js.map → esm/multiple-bcm5IaCN.js.map} +1 -1
  579. package/dist/esm/{open-DDc2yKMt.js → open-D9q98v46.js} +1 -1
  580. package/dist/{kolibri/open-DDc2yKMt.js.map → esm/open-D9q98v46.js.map} +1 -1
  581. package/dist/esm/{orientation-DdsLYtB3.js → orientation-5kQWqijN.js} +1 -1
  582. package/dist/esm/{orientation-DdsLYtB3.js.map → orientation-5kQWqijN.js.map} +1 -1
  583. package/dist/esm/placeholder-6URRds0_.js +4 -0
  584. package/dist/esm/{placeholder-CKKvVrmb.js.map → placeholder-6URRds0_.js.map} +1 -1
  585. package/dist/esm/{read-only-D2aPahKx.js → read-only-CcRldJ9w.js} +1 -1
  586. package/dist/esm/{read-only-D2aPahKx.js.map → read-only-CcRldJ9w.js.map} +1 -1
  587. package/dist/esm/{required-DZ-b_DWV.js → required-G86n77y0.js} +1 -1
  588. package/dist/{kolibri/required-DZ-b_DWV.js.map → esm/required-G86n77y0.js.map} +1 -1
  589. package/dist/esm/{rows-DZqgM5RX.js → rows-P4l3PNiA.js} +1 -1
  590. package/dist/esm/{rows-DZqgM5RX.js.map → rows-P4l3PNiA.js.map} +1 -1
  591. package/dist/esm/{show-D0rlMMpf.js → show-DsV_Vx8g.js} +1 -1
  592. package/dist/{kolibri/show-D0rlMMpf.js.map → esm/show-DsV_Vx8g.js.map} +1 -1
  593. package/dist/esm/spell-check-DIsLAYgk.js +4 -0
  594. package/dist/esm/{spell-check-Chr2J8Ox.js.map → spell-check-DIsLAYgk.js.map} +1 -1
  595. package/dist/esm/{suggestions-dPkxw3RQ.js → suggestions-DfF4lcNG.js} +1 -1
  596. package/dist/esm/{suggestions-dPkxw3RQ.js.map → suggestions-DfF4lcNG.js.map} +1 -1
  597. package/dist/esm/{table-settings-CF9uiyi4.js → table-settings-PrIyAPEe.js} +1 -1
  598. package/dist/esm/{table-settings-CF9uiyi4.js.map → table-settings-PrIyAPEe.js.map} +1 -1
  599. package/dist/esm/test-component.entry.js +1 -1
  600. package/dist/esm/tooltip-align-_VI7LehI.js +4 -0
  601. package/dist/esm/{tooltip-align-CmSyNCv5.js.map → tooltip-align-_VI7LehI.js.map} +1 -1
  602. package/dist/esm/{unique-nav-labels-Bm9ZvlTf.js → unique-nav-labels-C_NhdgGz.js} +1 -1
  603. package/dist/esm/{unique-nav-labels-Bm9ZvlTf.js.map → unique-nav-labels-C_NhdgGz.js.map} +1 -1
  604. package/dist/esm/{validation-CW-5L0A7.js → validation-CW_RXPSn.js} +1 -1
  605. package/dist/esm/{validation-CW-5L0A7.js.map → validation-CW_RXPSn.js.map} +1 -1
  606. package/dist/esm/{validation-oaGI9Wed.js → validation-DoIjmu3L.js} +1 -1
  607. package/dist/esm/{validation-oaGI9Wed.js.map → validation-DoIjmu3L.js.map} +1 -1
  608. package/dist/kolibri/Alert-DSfF5oYO.js +4 -0
  609. package/dist/{esm/Alert-C9KodDn-.js.map → kolibri/Alert-DSfF5oYO.js.map} +1 -1
  610. package/dist/kolibri/Collapsible-8yntsjFt.js +4 -0
  611. package/dist/kolibri/{Collapsible-DFegUHMu.js.map → Collapsible-8yntsjFt.js.map} +1 -1
  612. package/dist/kolibri/{CustomSuggestionsToggle-YLF12END.js → CustomSuggestionsToggle-C8IuvN89.js} +1 -1
  613. package/dist/{esm/CustomSuggestionsToggle-YLF12END.js.map → kolibri/CustomSuggestionsToggle-C8IuvN89.js.map} +1 -1
  614. package/dist/kolibri/FieldControlStateWrapper-ChUQFvRm.js +4 -0
  615. package/dist/kolibri/{FieldControlStateWrapper-DlhKEQYv.js.map → FieldControlStateWrapper-ChUQFvRm.js.map} +1 -1
  616. package/dist/kolibri/{FormFieldStateWrapper-CGvaBC47.js → FormFieldStateWrapper-BDa3sFBn.js} +1 -1
  617. package/dist/{esm/FormFieldStateWrapper-CGvaBC47.js.map → kolibri/FormFieldStateWrapper-BDa3sFBn.js.map} +1 -1
  618. package/dist/kolibri/{Heading-BPYmDTUk.js → Heading-CfdCVyC3.js} +1 -1
  619. package/dist/{esm/Heading-BPYmDTUk.js.map → kolibri/Heading-CfdCVyC3.js.map} +1 -1
  620. package/dist/kolibri/Icon-Bsf76uHm.js +4 -0
  621. package/dist/kolibri/{Icon-CPJLro7v.js.map → Icon-Bsf76uHm.js.map} +1 -1
  622. package/dist/kolibri/Input-BQVzI0c9.js +4 -0
  623. package/dist/{esm/Input-DjC4bpJ5.js.map → kolibri/Input-BQVzI0c9.js.map} +1 -1
  624. package/dist/kolibri/{InputStateWrapper-C2VyGe6a.js → InputStateWrapper-BVBg8J1R.js} +1 -1
  625. package/dist/kolibri/{InputStateWrapper-C2VyGe6a.js.map → InputStateWrapper-BVBg8J1R.js.map} +1 -1
  626. package/dist/kolibri/InternalUnderlinedBadgeText-EK327PqL.js +4 -0
  627. package/dist/kolibri/{InternalUnderlinedBadgeText-Cx9AyLre.js.map → InternalUnderlinedBadgeText-EK327PqL.js.map} +1 -1
  628. package/dist/kolibri/Span-CabLpAXO.js +4 -0
  629. package/dist/{esm/Span-BebyS5Q1.js.map → kolibri/Span-CabLpAXO.js.map} +1 -1
  630. package/dist/kolibri/{access-and-short-key-CBDgF26-.js → access-and-short-key-bcID78Ha.js} +1 -1
  631. package/dist/kolibri/{access-and-short-key-CBDgF26-.js.map → access-and-short-key-bcID78Ha.js.map} +1 -1
  632. package/dist/kolibri/{align-BU6S1qiO.js → align-CyK0wp7d.js} +1 -1
  633. package/dist/{esm/align-BU6S1qiO.js.map → kolibri/align-CyK0wp7d.js.map} +1 -1
  634. package/dist/kolibri/{align-floating-elements-CB8sErUz.js → align-floating-elements-Bx4ukVlr.js} +1 -1
  635. package/dist/kolibri/{align-floating-elements-CB8sErUz.js.map → align-floating-elements-Bx4ukVlr.js.map} +1 -1
  636. package/dist/kolibri/app-globals-CtV70nwT.js +4 -0
  637. package/dist/kolibri/{app-globals-CESfn_CS.js.map → app-globals-CtV70nwT.js.map} +1 -1
  638. package/dist/kolibri/{associated.controller-BVXWSO2G.js → associated.controller-BKIODHIT.js} +1 -1
  639. package/dist/{esm/associated.controller-BVXWSO2G.js.map → kolibri/associated.controller-BKIODHIT.js.map} +1 -1
  640. package/dist/kolibri/{auto-complete-QkT4jBSK.js → auto-complete-BsG3RQJ3.js} +1 -1
  641. package/dist/kolibri/{auto-complete-QkT4jBSK.js.map → auto-complete-BsG3RQJ3.js.map} +1 -1
  642. package/dist/kolibri/bem-CjFNhKP6.js +4 -0
  643. package/dist/kolibri/{bem-Cr-VD6ns.js.map → bem-CjFNhKP6.js.map} +1 -1
  644. package/dist/kolibri/{bem-DqV0swL_.js → bem-DhwfdDrM.js} +1 -1
  645. package/dist/kolibri/{bem-DqV0swL_.js.map → bem-DhwfdDrM.js.map} +1 -1
  646. package/dist/kolibri/bootstrap-BiRnv4fV.js +4 -0
  647. package/dist/kolibri/{bootstrap-YDZ8Qb_h.js.map → bootstrap-BiRnv4fV.js.map} +1 -1
  648. package/dist/kolibri/{browser-DAVbNx-f.js → browser-DeS_gcJV.js} +1 -1
  649. package/dist/{esm/browser-DAVbNx-f.js.map → kolibri/browser-DeS_gcJV.js.map} +1 -1
  650. package/dist/kolibri/{color-Byzv98Bu.js → color-C3pYZKV3.js} +1 -1
  651. package/dist/{esm/color-Byzv98Bu.js.map → kolibri/color-C3pYZKV3.js.map} +1 -1
  652. package/dist/kolibri/common-8fBdMvJM.js +4 -0
  653. package/dist/kolibri/common-8fBdMvJM.js.map +1 -0
  654. package/dist/kolibri/controller-BOrHVaYB.js +4 -0
  655. package/dist/{esm/controller-DR6tEetQ.js.map → kolibri/controller-BOrHVaYB.js.map} +1 -1
  656. package/dist/kolibri/{controller-D4SIjZnf.js → controller-CV2y9Ae_.js} +1 -1
  657. package/dist/kolibri/{controller-D4SIjZnf.js.map → controller-CV2y9Ae_.js.map} +1 -1
  658. package/dist/kolibri/{controller-DOh6Y7if.js → controller-CjDina_l.js} +1 -1
  659. package/dist/{esm/controller-DOh6Y7if.js.map → kolibri/controller-CjDina_l.js.map} +1 -1
  660. package/dist/kolibri/{controller-icon-Dak8u7ck.js → controller-icon-NuudIQ5E.js} +1 -1
  661. package/dist/{esm/controller-icon-Dak8u7ck.js.map → kolibri/controller-icon-NuudIQ5E.js.map} +1 -1
  662. package/dist/kolibri/{controller-BhAbvioO.js → controller-qa9_sr4y.js} +1 -1
  663. package/dist/kolibri/{controller-BhAbvioO.js.map → controller-qa9_sr4y.js.map} +1 -1
  664. package/dist/kolibri/custom-class-CA0KGtrM.js +4 -0
  665. package/dist/kolibri/{custom-class-B5WXhTM9.js.map → custom-class-CA0KGtrM.js.map} +1 -1
  666. package/dist/kolibri/{dev.utils-CMSYtmAz.js → dev.utils-DbZWp4Qf.js} +1 -1
  667. package/dist/kolibri/{dev.utils-CMSYtmAz.js.map → dev.utils-DbZWp4Qf.js.map} +1 -1
  668. package/dist/kolibri/{devtools-CDwLKwYR.js → devtools-BsF06iJC.js} +1 -1
  669. package/dist/{esm/devtools-CDwLKwYR.js.map → kolibri/devtools-BsF06iJC.js.map} +1 -1
  670. package/dist/kolibri/{disabled-oePQqAfy.js → disabled-BydergHu.js} +1 -1
  671. package/dist/kolibri/{disabled-oePQqAfy.js.map → disabled-BydergHu.js.map} +1 -1
  672. package/dist/kolibri/has-closer-BBMh8HY3.js +4 -0
  673. package/dist/kolibri/{has-closer-Dc5S0f9j.js.map → has-closer-BBMh8HY3.js.map} +1 -1
  674. package/dist/kolibri/hide-label-DRunOux4.js +4 -0
  675. package/dist/kolibri/{hide-label-BmYpplzr.js.map → hide-label-DRunOux4.js.map} +1 -1
  676. package/dist/kolibri/href-zZq6HYWf.js +4 -0
  677. package/dist/kolibri/{href-BETcU_FA.js.map → href-zZq6HYWf.js.map} +1 -1
  678. package/dist/kolibri/{i18n-C7ZsbK5l.js → i18n-CdSCDnmA.js} +1 -1
  679. package/dist/kolibri/{i18n-C7ZsbK5l.js.map → i18n-CdSCDnmA.js.map} +1 -1
  680. package/dist/kolibri/{icons-CH_AgdgO.js → icons-72ER78AW.js} +1 -1
  681. package/dist/{esm/icons-CH_AgdgO.js.map → kolibri/icons-72ER78AW.js.map} +1 -1
  682. package/dist/kolibri/image-source-RWPv7frZ.js +4 -0
  683. package/dist/kolibri/{image-source-COIdbYDA.js.map → image-source-RWPv7frZ.js.map} +1 -1
  684. package/dist/kolibri/{index-BRWth_lT.js → index-DwzuLp_u.js} +2 -2
  685. package/dist/kolibri/{index-BRWth_lT.js.map → index-DwzuLp_u.js.map} +1 -1
  686. package/dist/kolibri/index.esm.js +1 -1
  687. package/dist/kolibri/kol-abbr.entry.esm.js.map +1 -1
  688. package/dist/kolibri/kol-abbr.entry.js +1 -1
  689. package/dist/kolibri/kol-abbr.entry.js.map +1 -1
  690. package/dist/kolibri/kol-accordion.entry.esm.js.map +1 -1
  691. package/dist/kolibri/kol-accordion.entry.js +1 -1
  692. package/dist/kolibri/kol-accordion.entry.js.map +1 -1
  693. package/dist/kolibri/kol-alert-wc.entry.js +1 -1
  694. package/dist/kolibri/kol-alert-wc.entry.js.map +1 -1
  695. package/dist/kolibri/kol-alert.entry.esm.js.map +1 -1
  696. package/dist/kolibri/kol-alert.entry.js +1 -1
  697. package/dist/kolibri/kol-alert.entry.js.map +1 -1
  698. package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
  699. package/dist/kolibri/kol-avatar.entry.esm.js.map +1 -1
  700. package/dist/kolibri/kol-avatar.entry.js +1 -1
  701. package/dist/kolibri/kol-avatar.entry.js.map +1 -1
  702. package/dist/kolibri/kol-badge.entry.esm.js.map +1 -1
  703. package/dist/kolibri/kol-badge.entry.js +1 -1
  704. package/dist/kolibri/kol-badge.entry.js.map +1 -1
  705. package/dist/kolibri/kol-breadcrumb.entry.esm.js.map +1 -1
  706. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  707. package/dist/kolibri/kol-breadcrumb.entry.js.map +1 -1
  708. package/dist/kolibri/kol-button-link.entry.esm.js.map +1 -1
  709. package/dist/kolibri/kol-button-link.entry.js +1 -1
  710. package/dist/kolibri/kol-button-link.entry.js.map +1 -1
  711. package/dist/kolibri/kol-button-wc.entry.js +1 -1
  712. package/dist/kolibri/kol-button.entry.esm.js.map +1 -1
  713. package/dist/kolibri/kol-button.entry.js +1 -1
  714. package/dist/kolibri/kol-button.entry.js.map +1 -1
  715. package/dist/kolibri/kol-card-wc.entry.js +1 -1
  716. package/dist/kolibri/kol-card-wc.entry.js.map +1 -1
  717. package/dist/kolibri/kol-card.entry.esm.js.map +1 -1
  718. package/dist/kolibri/kol-card.entry.js +1 -1
  719. package/dist/kolibri/kol-card.entry.js.map +1 -1
  720. package/dist/kolibri/kol-combobox.entry.esm.js.map +1 -1
  721. package/dist/kolibri/kol-combobox.entry.js +1 -1
  722. package/dist/kolibri/kol-combobox.entry.js.map +1 -1
  723. package/dist/kolibri/kol-details.entry.esm.js.map +1 -1
  724. package/dist/kolibri/kol-details.entry.js +1 -1
  725. package/dist/kolibri/kol-details.entry.js.map +1 -1
  726. package/dist/kolibri/kol-drawer.entry.esm.js.map +1 -1
  727. package/dist/kolibri/kol-drawer.entry.js +1 -1
  728. package/dist/kolibri/kol-drawer.entry.js.map +1 -1
  729. package/dist/kolibri/kol-form.entry.esm.js.map +1 -1
  730. package/dist/kolibri/kol-form.entry.js +1 -1
  731. package/dist/kolibri/kol-form.entry.js.map +1 -1
  732. package/dist/kolibri/kol-heading.entry.esm.js.map +1 -1
  733. package/dist/kolibri/kol-heading.entry.js +1 -1
  734. package/dist/kolibri/kol-heading.entry.js.map +1 -1
  735. package/dist/kolibri/kol-icon.entry.js +1 -1
  736. package/dist/kolibri/kol-image.entry.esm.js.map +1 -1
  737. package/dist/kolibri/kol-image.entry.js +1 -1
  738. package/dist/kolibri/kol-image.entry.js.map +1 -1
  739. package/dist/kolibri/kol-input-checkbox.entry.esm.js.map +1 -1
  740. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  741. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  742. package/dist/kolibri/kol-input-color.entry.esm.js.map +1 -1
  743. package/dist/kolibri/kol-input-color.entry.js +1 -1
  744. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  745. package/dist/kolibri/kol-input-date.entry.esm.js.map +1 -1
  746. package/dist/kolibri/kol-input-date.entry.js +1 -1
  747. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  748. package/dist/kolibri/kol-input-email.entry.esm.js.map +1 -1
  749. package/dist/kolibri/kol-input-email.entry.js +1 -1
  750. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  751. package/dist/kolibri/kol-input-file.entry.esm.js.map +1 -1
  752. package/dist/kolibri/kol-input-file.entry.js +1 -1
  753. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  754. package/dist/kolibri/kol-input-number.entry.esm.js.map +1 -1
  755. package/dist/kolibri/kol-input-number.entry.js +1 -1
  756. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  757. package/dist/kolibri/kol-input-password.entry.esm.js.map +1 -1
  758. package/dist/kolibri/kol-input-password.entry.js +1 -1
  759. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  760. package/dist/kolibri/kol-input-radio.entry.esm.js.map +1 -1
  761. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  762. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  763. package/dist/kolibri/kol-input-range.entry.esm.js.map +1 -1
  764. package/dist/kolibri/kol-input-range.entry.js +1 -1
  765. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  766. package/dist/kolibri/kol-input-text.entry.esm.js.map +1 -1
  767. package/dist/kolibri/kol-input-text.entry.js +1 -1
  768. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  769. package/dist/kolibri/kol-kolibri.entry.esm.js.map +1 -1
  770. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  771. package/dist/kolibri/kol-kolibri.entry.js.map +1 -1
  772. package/dist/kolibri/kol-link-button.entry.esm.js.map +1 -1
  773. package/dist/kolibri/kol-link-button.entry.js +1 -1
  774. package/dist/kolibri/kol-link-button.entry.js.map +1 -1
  775. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  776. package/dist/kolibri/kol-link.entry.esm.js.map +1 -1
  777. package/dist/kolibri/kol-link.entry.js +1 -1
  778. package/dist/kolibri/kol-link.entry.js.map +1 -1
  779. package/dist/kolibri/kol-modal.entry.esm.js.map +1 -1
  780. package/dist/kolibri/kol-modal.entry.js +1 -1
  781. package/dist/kolibri/kol-modal.entry.js.map +1 -1
  782. package/dist/kolibri/kol-nav.entry.esm.js.map +1 -1
  783. package/dist/kolibri/kol-nav.entry.js +1 -1
  784. package/dist/kolibri/kol-nav.entry.js.map +1 -1
  785. package/dist/kolibri/kol-pagination-wc.entry.js +1 -1
  786. package/dist/kolibri/kol-pagination.entry.esm.js.map +1 -1
  787. package/dist/kolibri/kol-pagination.entry.js +1 -1
  788. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  789. package/dist/kolibri/kol-popover-button-wc.entry.js +1 -1
  790. package/dist/kolibri/kol-popover-button.entry.esm.js.map +1 -1
  791. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  792. package/dist/kolibri/kol-popover-button.entry.js.map +1 -1
  793. package/dist/kolibri/kol-popover-wc.entry.js +1 -1
  794. package/dist/kolibri/kol-progress.entry.esm.js.map +1 -1
  795. package/dist/kolibri/kol-progress.entry.js +1 -1
  796. package/dist/kolibri/kol-progress.entry.js.map +1 -1
  797. package/dist/kolibri/kol-quote.entry.esm.js.map +1 -1
  798. package/dist/kolibri/kol-quote.entry.js +1 -1
  799. package/dist/kolibri/kol-quote.entry.js.map +1 -1
  800. package/dist/kolibri/kol-select.entry.esm.js.map +1 -1
  801. package/dist/kolibri/kol-select.entry.js +1 -1
  802. package/dist/kolibri/kol-select.entry.js.map +1 -1
  803. package/dist/kolibri/kol-single-select.entry.esm.js.map +1 -1
  804. package/dist/kolibri/kol-single-select.entry.js +1 -1
  805. package/dist/kolibri/kol-single-select.entry.js.map +1 -1
  806. package/dist/kolibri/kol-skip-nav.entry.esm.js.map +1 -1
  807. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  808. package/dist/kolibri/kol-skip-nav.entry.js.map +1 -1
  809. package/dist/kolibri/kol-spin.entry.esm.js.map +1 -1
  810. package/dist/kolibri/kol-spin.entry.js +1 -1
  811. package/dist/kolibri/kol-spin.entry.js.map +1 -1
  812. package/dist/kolibri/kol-split-button.entry.esm.js.map +1 -1
  813. package/dist/kolibri/kol-split-button.entry.js +1 -1
  814. package/dist/kolibri/kol-split-button.entry.js.map +1 -1
  815. package/dist/kolibri/kol-table-settings-wc.entry.js +1 -1
  816. package/dist/kolibri/kol-table-stateful.entry.esm.js.map +1 -1
  817. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  818. package/dist/kolibri/kol-table-stateful.entry.js.map +1 -1
  819. package/dist/kolibri/kol-table-stateless-wc.entry.js +1 -1
  820. package/dist/kolibri/kol-table-stateless.entry.esm.js.map +1 -1
  821. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  822. package/dist/kolibri/kol-table-stateless.entry.js.map +1 -1
  823. package/dist/kolibri/kol-tabs.entry.esm.js.map +1 -1
  824. package/dist/kolibri/kol-tabs.entry.js +1 -1
  825. package/dist/kolibri/kol-tabs.entry.js.map +1 -1
  826. package/dist/kolibri/kol-textarea.entry.esm.js.map +1 -1
  827. package/dist/kolibri/kol-textarea.entry.js +1 -1
  828. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  829. package/dist/kolibri/kol-toast-container.entry.esm.js.map +1 -1
  830. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  831. package/dist/kolibri/kol-toast-container.entry.js.map +1 -1
  832. package/dist/kolibri/kol-toolbar.entry.esm.js.map +1 -1
  833. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  834. package/dist/kolibri/kol-toolbar.entry.js.map +1 -1
  835. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  836. package/dist/kolibri/kol-tree-item-wc.entry.js +1 -1
  837. package/dist/kolibri/kol-tree-item.entry.esm.js.map +1 -1
  838. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  839. package/dist/kolibri/kol-tree-item.entry.js.map +1 -1
  840. package/dist/kolibri/kol-tree-wc.entry.js +1 -1
  841. package/dist/kolibri/kol-tree.entry.esm.js.map +1 -1
  842. package/dist/kolibri/kol-tree.entry.js +1 -1
  843. package/dist/kolibri/kol-tree.entry.js.map +1 -1
  844. package/dist/kolibri/kol-version.entry.esm.js.map +1 -1
  845. package/dist/kolibri/kol-version.entry.js +1 -1
  846. package/dist/kolibri/kol-version.entry.js.map +1 -1
  847. package/dist/kolibri/kolibri.esm.js +1 -1
  848. package/dist/kolibri/{label-DGzuU0HV.js → label-CdtNxOKu.js} +1 -1
  849. package/dist/{esm/label-DGzuU0HV.js.map → kolibri/label-CdtNxOKu.js.map} +1 -1
  850. package/dist/kolibri/{link-variant-B1pMVL0L.js → link-variant-B9BZOLu-.js} +1 -1
  851. package/dist/{esm/link-variant-B1pMVL0L.js.map → kolibri/link-variant-B9BZOLu-.js.map} +1 -1
  852. package/dist/kolibri/{markdown-BJ3cxn6B.js → markdown-DL-PkOqb.js} +1 -1
  853. package/dist/kolibri/{markdown-BJ3cxn6B.js.map → markdown-DL-PkOqb.js.map} +1 -1
  854. package/dist/kolibri/max-length-behavior-BmNWss6T.js +4 -0
  855. package/dist/kolibri/{max-length-behavior-DCUK2Rvw.js.map → max-length-behavior-BmNWss6T.js.map} +1 -1
  856. package/dist/kolibri/multiple-bcm5IaCN.js +4 -0
  857. package/dist/{esm/multiple-D4hUZQZi.js.map → kolibri/multiple-bcm5IaCN.js.map} +1 -1
  858. package/dist/kolibri/open-D9q98v46.js +4 -0
  859. package/dist/{esm/open-DDc2yKMt.js.map → kolibri/open-D9q98v46.js.map} +1 -1
  860. package/dist/kolibri/{orientation-DdsLYtB3.js → orientation-5kQWqijN.js} +1 -1
  861. package/dist/kolibri/{orientation-DdsLYtB3.js.map → orientation-5kQWqijN.js.map} +1 -1
  862. package/dist/kolibri/placeholder-6URRds0_.js +4 -0
  863. package/dist/kolibri/{placeholder-CKKvVrmb.js.map → placeholder-6URRds0_.js.map} +1 -1
  864. package/dist/kolibri/read-only-CcRldJ9w.js +4 -0
  865. package/dist/kolibri/{read-only-D2aPahKx.js.map → read-only-CcRldJ9w.js.map} +1 -1
  866. package/dist/kolibri/required-G86n77y0.js +4 -0
  867. package/dist/{esm/required-DZ-b_DWV.js.map → kolibri/required-G86n77y0.js.map} +1 -1
  868. package/dist/kolibri/rows-P4l3PNiA.js +4 -0
  869. package/dist/kolibri/{rows-DZqgM5RX.js.map → rows-P4l3PNiA.js.map} +1 -1
  870. package/dist/kolibri/show-DsV_Vx8g.js +4 -0
  871. package/dist/{esm/show-D0rlMMpf.js.map → kolibri/show-DsV_Vx8g.js.map} +1 -1
  872. package/dist/kolibri/spell-check-DIsLAYgk.js +4 -0
  873. package/dist/kolibri/{spell-check-Chr2J8Ox.js.map → spell-check-DIsLAYgk.js.map} +1 -1
  874. package/dist/kolibri/{suggestions-dPkxw3RQ.js → suggestions-DfF4lcNG.js} +1 -1
  875. package/dist/kolibri/{suggestions-dPkxw3RQ.js.map → suggestions-DfF4lcNG.js.map} +1 -1
  876. package/dist/kolibri/{table-settings-CF9uiyi4.js → table-settings-PrIyAPEe.js} +1 -1
  877. package/dist/kolibri/{table-settings-CF9uiyi4.js.map → table-settings-PrIyAPEe.js.map} +1 -1
  878. package/dist/kolibri/test-component.entry.js +1 -1
  879. package/dist/kolibri/tooltip-align-_VI7LehI.js +4 -0
  880. package/dist/kolibri/{tooltip-align-CmSyNCv5.js.map → tooltip-align-_VI7LehI.js.map} +1 -1
  881. package/dist/kolibri/{unique-nav-labels-Bm9ZvlTf.js → unique-nav-labels-C_NhdgGz.js} +1 -1
  882. package/dist/kolibri/{unique-nav-labels-Bm9ZvlTf.js.map → unique-nav-labels-C_NhdgGz.js.map} +1 -1
  883. package/dist/kolibri/validation-CW_RXPSn.js +4 -0
  884. package/dist/kolibri/{validation-CW-5L0A7.js.map → validation-CW_RXPSn.js.map} +1 -1
  885. package/dist/kolibri/validation-DoIjmu3L.js +4 -0
  886. package/dist/kolibri/{validation-oaGI9Wed.js.map → validation-DoIjmu3L.js.map} +1 -1
  887. package/dist/types/schema/index.d.ts +1 -1
  888. package/dist/types/schema/tag-names.d.ts +49 -50
  889. package/package.json +3 -3
  890. package/assets/codicons/codicon.html +0 -4239
  891. package/dist/cjs/Input-jk9vBtZy.js +0 -4
  892. package/dist/cjs/common-BnJ53iei.js +0 -4
  893. package/dist/cjs/common-BnJ53iei.js.map +0 -1
  894. package/dist/cjs/hide-label-DUc_dh2F.js +0 -4
  895. package/dist/cjs/open-DT3WDPuM.js +0 -4
  896. package/dist/cjs/orientation-Yq2hnwhx.js +0 -4
  897. package/dist/cjs/placeholder-BThCBzLi.js +0 -4
  898. package/dist/cjs/required-CxJeLU2Q.js +0 -4
  899. package/dist/cjs/rows-CCfpaGu_.js +0 -4
  900. package/dist/cjs/tooltip-align-BrHrEyjZ.js +0 -4
  901. package/dist/cjs/validation-C8RdRBsU.js +0 -4
  902. package/dist/esm/Icon-CPJLro7v.js +0 -4
  903. package/dist/esm/Input-DjC4bpJ5.js +0 -4
  904. package/dist/esm/InternalUnderlinedBadgeText-Cx9AyLre.js +0 -4
  905. package/dist/esm/common-zXZUsQ7l.js +0 -4
  906. package/dist/esm/common-zXZUsQ7l.js.map +0 -1
  907. package/dist/esm/custom-class-B5WXhTM9.js +0 -4
  908. package/dist/esm/disabled-oePQqAfy.js +0 -4
  909. package/dist/esm/multiple-D4hUZQZi.js +0 -4
  910. package/dist/esm/placeholder-CKKvVrmb.js +0 -4
  911. package/dist/esm/spell-check-Chr2J8Ox.js +0 -4
  912. package/dist/esm/tooltip-align-CmSyNCv5.js +0 -4
  913. package/dist/kolibri/Alert-C9KodDn-.js +0 -4
  914. package/dist/kolibri/Collapsible-DFegUHMu.js +0 -4
  915. package/dist/kolibri/FieldControlStateWrapper-DlhKEQYv.js +0 -4
  916. package/dist/kolibri/Icon-CPJLro7v.js +0 -4
  917. package/dist/kolibri/Input-DjC4bpJ5.js +0 -4
  918. package/dist/kolibri/InternalUnderlinedBadgeText-Cx9AyLre.js +0 -4
  919. package/dist/kolibri/Span-BebyS5Q1.js +0 -4
  920. package/dist/kolibri/app-globals-CESfn_CS.js +0 -4
  921. package/dist/kolibri/assets/codicons/codicon.html +0 -4239
  922. package/dist/kolibri/bem-Cr-VD6ns.js +0 -4
  923. package/dist/kolibri/bootstrap-YDZ8Qb_h.js +0 -4
  924. package/dist/kolibri/common-zXZUsQ7l.js +0 -4
  925. package/dist/kolibri/common-zXZUsQ7l.js.map +0 -1
  926. package/dist/kolibri/controller-DR6tEetQ.js +0 -4
  927. package/dist/kolibri/custom-class-B5WXhTM9.js +0 -4
  928. package/dist/kolibri/has-closer-Dc5S0f9j.js +0 -4
  929. package/dist/kolibri/hide-label-BmYpplzr.js +0 -4
  930. package/dist/kolibri/href-BETcU_FA.js +0 -4
  931. package/dist/kolibri/image-source-COIdbYDA.js +0 -4
  932. package/dist/kolibri/max-length-behavior-DCUK2Rvw.js +0 -4
  933. package/dist/kolibri/multiple-D4hUZQZi.js +0 -4
  934. package/dist/kolibri/open-DDc2yKMt.js +0 -4
  935. package/dist/kolibri/placeholder-CKKvVrmb.js +0 -4
  936. package/dist/kolibri/read-only-D2aPahKx.js +0 -4
  937. package/dist/kolibri/required-DZ-b_DWV.js +0 -4
  938. package/dist/kolibri/rows-DZqgM5RX.js +0 -4
  939. package/dist/kolibri/show-D0rlMMpf.js +0 -4
  940. package/dist/kolibri/spell-check-Chr2J8Ox.js +0 -4
  941. package/dist/kolibri/tooltip-align-CmSyNCv5.js +0 -4
  942. package/dist/kolibri/validation-CW-5L0A7.js +0 -4
  943. package/dist/kolibri/validation-oaGI9Wed.js +0 -4
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{L as o,n as t,b as s}from"./common-8fBdMvJM.js";import{a}from"./index-DwzuLp_u.js";var f=()=>{a(o=>{try{o.shadowRoot instanceof ShadowRoot&&t(o,s(o))}catch(o){}return"default"}),import("./devtools-BsF06iJC.js").then(o=>{"object"==typeof o&&null!==o&&"function"==typeof o.initialize&&o.initialize()}).catch(t=>{o.error(t)})};const n=f;export{n as g};
@@ -1 +1 @@
1
- {"version":3,"file":"app-globals-CESfn_CS.js","sources":["src/global/script.ts","@stencil/core/internal/app-globals"],"sourcesContent":["import { getThemeDetails, setThemeStyle } from 'adopted-style-sheets';\n\nimport { Log } from '../schema';\nimport { setMode } from '@stencil/core';\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 (error) {\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,OAAO,KAAK,EAAE;;AAOhB,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-CtV70nwT.js","sources":["src/global/script.ts","@stencil/core/internal/app-globals"],"sourcesContent":["import { getThemeDetails, setThemeStyle } from 'adopted-style-sheets';\n\nimport { Log } from '../schema';\nimport { setMode } from '@stencil/core';\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 (error) {\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,OAAO,KAAK,EAAE;;AAOhB,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,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{e as t,J as e,j as i,u as s}from"./common-zXZUsQ7l.js";import{g as o}from"./bootstrap-YDZ8Qb_h.js";const a=(e,s,i)=>{t(e,"_name",s,i)},n=t=>"KOL-BUTTON"===t||"KOL-COMBOBOX"===t||"KOL-INPUT-CHECKBOX"===t||"KOL-INPUT-COLOR"===t||"KOL-INPUT-DATE"===t||"KOL-INPUT-EMAIL"===t||"KOL-INPUT-FILE"===t||"KOL-INPUT-NUMBER"===t||"KOL-INPUT-PASSWORD"===t||"KOL-INPUT-RADIO"===t||"KOL-INPUT-RANGE"===t||"KOL-INPUT-TEXT"===t||"KOL-SELECT"===t||"KOL-SINGLE-SELECT"===t||"KOL-TEXTAREA"===t;class l{constructor(t,s,a){var r,l,c,u;if(this.experimentalMode=e(),this.setFormAssociatedValue=t=>{var e;const s=null===(e=this.formAssociated)||void 0===e?void 0:e.getAttribute("name");null!==s&&""!==s||i(` The form field (${this.type}) must have a name attribute to be form-associated. Please define the _name attribute.`);const o=this.tryToStringifyValue(t);this.syncValue(t,o,this.formAssociated),this.syncValue(t,o,this.syncToOwnInput)},this.component=t,this.host=this.findHostWithShadowRoot(a),this.type=s,(null===(r=o())||void 0===r?void 0:r.reflectInputValues)&&n(null===(l=this.host)||void 0===l?void 0:l.tagName)&&t._name){switch(null===(c=this.host)||void 0===c||c.querySelectorAll("input,select,textarea").forEach(t=>{var e;null===(e=this.host)||void 0===e||e.removeChild(t)}),this.type){case"button":case"color":case"date":case"email":case"file":case"number":case"password":case"radio":case"range":case"text":this.formAssociated=document.createElement("input"),this.formAssociated.setAttribute("type",this.type);break;case"select":this.formAssociated=document.createElement("select"),this.formAssociated.setAttribute("multiple","");break;case"textarea":this.formAssociated=document.createElement("textarea");break;default:this.formAssociated=document.createElement("input"),this.formAssociated.setAttribute("type","hidden")}this.formAssociated.setAttribute("data-form-associated",""),this.formAssociated.setAttribute("hidden",""),null===(u=this.host)||void 0===u||u.appendChild(this.formAssociated)}}findHostWithShadowRoot(t){for(;null===(null==t?void 0:t.shadowRoot)&&t!==document.body;)(t=null==t?void 0:t.parentNode).host&&(t=t.host);return t}setAttribute(t,e,s){if(this.experimentalMode)try{if("boolean"!=typeof(s="object"==typeof s&&null!==s?JSON.stringify(s):s)&&"number"!=typeof s&&"string"!=typeof s)throw new Error("Invalid value type: "+typeof s);null==e||e.setAttribute(t,`${s}`)}catch(s){null==e||e.removeAttribute(t)}}tryToStringifyValue(t){try{return"object"==typeof t&&null!==t?JSON.stringify(t).toString():null==t?null:t.toString()}catch(t){return s(`The form field raw value is not able to stringify! ${t}`),""}}syncValue(t,e,s){if(s)switch(this.type){case"file":s.files=t;break;case"select":s.querySelectorAll("option").forEach(t=>{s.removeChild(t)}),Array.isArray(t)&&t.forEach(t=>{const e=this.tryToStringifyValue(t);if("string"==typeof e){const t=document.createElement("option");t.setAttribute("value",e),t.setAttribute("selected",""),s.appendChild(t)}});break;case"radio":"string"==typeof e&&(s.setAttribute("value",e),s.setAttribute("checked",""),s.value=e);break;default:"string"==typeof e?(s.setAttribute("value",e),s.value=e):(s.removeAttribute("value"),s.value="")}}validateName(t){a(this.component,t,{hooks:{afterPatch:()=>{this.setAttribute("name",this.formAssociated,this.component.state._name)}}}),void 0===t&&i("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.")}validateSyncValueBySelector(t){if(this.experimentalMode&&"string"==typeof t){const e=document.querySelector(t);e&&(this.syncToOwnInput=e)}}componentWillLoad(){this.validateName(this.component._name),this.validateSyncValueBySelector(this.component._syncValueBySelector)}}export{l as A};
4
+ import{e as t,J as e,j as i,u as s}from"./common-8fBdMvJM.js";import{g as o}from"./bootstrap-BiRnv4fV.js";const a=(e,s,i)=>{t(e,"_name",s,i)},n=t=>"KOL-BUTTON"===t||"KOL-COMBOBOX"===t||"KOL-INPUT-CHECKBOX"===t||"KOL-INPUT-COLOR"===t||"KOL-INPUT-DATE"===t||"KOL-INPUT-EMAIL"===t||"KOL-INPUT-FILE"===t||"KOL-INPUT-NUMBER"===t||"KOL-INPUT-PASSWORD"===t||"KOL-INPUT-RADIO"===t||"KOL-INPUT-RANGE"===t||"KOL-INPUT-TEXT"===t||"KOL-SELECT"===t||"KOL-SINGLE-SELECT"===t||"KOL-TEXTAREA"===t;class l{constructor(t,s,a){var r,l,c,u;if(this.experimentalMode=e(),this.setFormAssociatedValue=t=>{var e;const s=null===(e=this.formAssociated)||void 0===e?void 0:e.getAttribute("name");null!==s&&""!==s||i(` The form field (${this.type}) must have a name attribute to be form-associated. Please define the _name attribute.`);const o=this.tryToStringifyValue(t);this.syncValue(t,o,this.formAssociated),this.syncValue(t,o,this.syncToOwnInput)},this.component=t,this.host=this.findHostWithShadowRoot(a),this.type=s,(null===(r=o())||void 0===r?void 0:r.reflectInputValues)&&n(null===(l=this.host)||void 0===l?void 0:l.tagName)&&t._name){switch(null===(c=this.host)||void 0===c||c.querySelectorAll("input,select,textarea").forEach(t=>{var e;null===(e=this.host)||void 0===e||e.removeChild(t)}),this.type){case"button":case"color":case"date":case"email":case"file":case"number":case"password":case"radio":case"range":case"text":this.formAssociated=document.createElement("input"),this.formAssociated.setAttribute("type",this.type);break;case"select":this.formAssociated=document.createElement("select"),this.formAssociated.setAttribute("multiple","");break;case"textarea":this.formAssociated=document.createElement("textarea");break;default:this.formAssociated=document.createElement("input"),this.formAssociated.setAttribute("type","hidden")}this.formAssociated.setAttribute("data-form-associated",""),this.formAssociated.setAttribute("hidden",""),null===(u=this.host)||void 0===u||u.appendChild(this.formAssociated)}}findHostWithShadowRoot(t){for(;null===(null==t?void 0:t.shadowRoot)&&t!==document.body;)(t=null==t?void 0:t.parentNode).host&&(t=t.host);return t}setAttribute(t,e,s){if(this.experimentalMode)try{if("boolean"!=typeof(s="object"==typeof s&&null!==s?JSON.stringify(s):s)&&"number"!=typeof s&&"string"!=typeof s)throw new Error("Invalid value type: "+typeof s);null==e||e.setAttribute(t,`${s}`)}catch(s){null==e||e.removeAttribute(t)}}tryToStringifyValue(t){try{return"object"==typeof t&&null!==t?JSON.stringify(t).toString():null==t?null:t.toString()}catch(t){return s(`The form field raw value is not able to stringify! ${t}`),""}}syncValue(t,e,s){if(s)switch(this.type){case"file":s.files=t;break;case"select":s.querySelectorAll("option").forEach(t=>{s.removeChild(t)}),Array.isArray(t)&&t.forEach(t=>{const e=this.tryToStringifyValue(t);if("string"==typeof e){const t=document.createElement("option");t.setAttribute("value",e),t.setAttribute("selected",""),s.appendChild(t)}});break;case"radio":"string"==typeof e&&(s.setAttribute("value",e),s.setAttribute("checked",""),s.value=e);break;default:"string"==typeof e?(s.setAttribute("value",e),s.value=e):(s.removeAttribute("value"),s.value="")}}validateName(t){a(this.component,t,{hooks:{afterPatch:()=>{this.setAttribute("name",this.formAssociated,this.component.state._name)}}}),void 0===t&&i("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.")}validateSyncValueBySelector(t){if(this.experimentalMode&&"string"==typeof t){const e=document.querySelector(t);e&&(this.syncToOwnInput=e)}}componentWillLoad(){this.validateName(this.component._name),this.validateSyncValueBySelector(this.component._syncValueBySelector)}}export{l as A};
@@ -1 +1 @@
1
- {"version":3,"file":"associated.controller-BVXWSO2G.js","sources":["src/schema/props/name.ts","src/components/input-adapter-leanup/associated.controller.ts"],"sourcesContent":["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 { 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';\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?: HTMLElement;\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?: HTMLElement) {\n\t\tthis.component = component;\n\t\tthis.host = this.findHostWithShadowRoot(host);\n\t\tthis.type = type;\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?: HTMLElement): HTMLElement | undefined {\n\t\twhile (host?.shadowRoot === null && host !== document.body) {\n\t\t\thost = host?.parentNode as HTMLElement;\n\t\t\tif ((host as unknown as ShadowRoot).host) {\n\t\t\t\thost = (host as unknown as ShadowRoot).host as HTMLElement;\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 (e) {\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 componentWillLoad(): void {\n\t\tthis.validateName(this.component._name);\n\t\tthis.validateSyncValueBySelector(this.component._syncValueBySel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AC5B;AACN,wBAAA,iBAAiB,CAAC,eAAe,CAAC,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;;;;IAKvB,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-BKIODHIT.js","sources":["src/schema/props/name.ts","src/components/input-adapter-leanup/associated.controller.ts"],"sourcesContent":["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 { 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';\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?: HTMLElement;\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?: HTMLElement) {\n\t\tthis.component = component;\n\t\tthis.host = this.findHostWithShadowRoot(host);\n\t\tthis.type = type;\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?: HTMLElement): HTMLElement | undefined {\n\t\twhile (host?.shadowRoot === null && host !== document.body) {\n\t\t\thost = host?.parentNode as HTMLElement;\n\t\t\tif ((host as unknown as ShadowRoot).host) {\n\t\t\t\thost = (host as unknown as ShadowRoot).host as HTMLElement;\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 (e) {\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 componentWillLoad(): void {\n\t\tthis.validateName(this.component._name);\n\t\tthis.validateSyncValueBySelector(this.component._syncValueBySelector);\n\t}\n}\n"],"names":[],"mappings":";;;;;;AAgBO,MAAM,YAAY,GAAG,CAAC,SAAoC,EAAE,KAAoB,EAAE,OAA4B,KAAU;IAC9H,WAAW,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC;AAChD,CAAC;;ACDD,MAAM,mBAAmB,GAAG,CAAC,IAAa,KACzC,IAAI,KAAK,YAAY;AACrB,IAAA,IAAI,KAAK,cAAc;AACvB,IAAA,IAAI,KAAK,oBAAoB;AAC7B,IAAA,IAAI,KAAK,iBAAiB;AAC1B,IAAA,IAAI,KAAK,gBAAgB;AACzB,IAAA,IAAI,KAAK,iBAAiB;AAC1B,IAAA,IAAI,KAAK,gBAAgB;AACzB,IAAA,IAAI,KAAK,kBAAkB;AAC3B,IAAA,IAAI,KAAK,oBAAoB;AAC7B,IAAA,IAAI,KAAK,iBAAiB;AAC1B,IAAA,IAAI,KAAK,iBAAiB;A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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;;;;IAKvB,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,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{w as o}from"./common-zXZUsQ7l.js";const t=["on","off"],e=(e,f)=>{o(e,"_autoComplete",o=>t.includes(o)||"string"==typeof o&&o.length>0,new Set(t),f,{defaultValue:"off"})};export{e as v};
4
+ import{w as o}from"./common-8fBdMvJM.js";const t=["on","off"],e=(e,f)=>{o(e,"_autoComplete",o=>t.includes(o)||"string"==typeof o&&o.length>0,new Set(t),f,{defaultValue:"off"})};export{e as v};
@@ -1 +1 @@
1
- {"version":3,"file":"auto-complete-QkT4jBSK.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-BsG3RQJ3.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;;;;"}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{s as o}from"./browser-DeS_gcJV.js";const n=o(),s={"kol-icon":{elements:{icon:{modifiers:null}},modifiers:null}},c=n("kol-icon"),i=n("kol-icon","icon");export{s as B,c as a,i as b};
@@ -1 +1 @@
1
- {"version":3,"file":"bem-Cr-VD6ns.js","sources":["src/components/icon/bem.ts"],"sourcesContent":["import { generateBemClassNames } from 'typed-bem';\n\ntype SCHEMA = {\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};\n\nconst bem = generateBemClassNames<SCHEMA>();\n\nconst BEM: SCHEMA = {\n\t'kol-icon': {\n\t\telements: {\n\t\t\ticon: { modifiers: null },\n\t\t},\n\t\tmodifiers: null,\n\t},\n};\n\n/**\n * Define the static BEM class names for the alert component.\n */\nconst BEM_CLASS_ICON = bem('kol-icon');\nconst BEM_CLASS_ICON__ICON = bem('kol-icon', 'icon');\n\nexport { bem as genBemAlert, BEM as BEM_ICON };\nexport { BEM_CLASS_ICON, BEM_CLASS_ICON__ICON };\n"],"names":["generateBemClassNames"],"mappings":";;;;;AAaA,MAAM,GAAG,GAAGA,CAAqB,EAAU;AAE3C,MAAM,GAAG,GAAW;AACnB,IAAA,UAAU,EAAE;AACX,QAAA,QAAQ,EAAE;AACT,YAAA,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;AACzB,SAAA;AACD,QAAA,SAAS,EAAE,IAAI;AACf,KAAA;;AAMF,MAAM,cAAc,GAAG,GAAG,CAAC,UAAU;AAC/B,MAAA,oBAAoB,GAAG,GAAG,CAAC,UAAU,EAAE,MAAM;;;;"}
1
+ {"version":3,"file":"bem-CjFNhKP6.js","sources":["src/components/icon/bem.ts"],"sourcesContent":["import { generateBemClassNames } from 'typed-bem';\n\ntype SCHEMA = {\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};\n\nconst bem = generateBemClassNames<SCHEMA>();\n\nconst BEM: SCHEMA = {\n\t'kol-icon': {\n\t\telements: {\n\t\t\ticon: { modifiers: null },\n\t\t},\n\t\tmodifiers: null,\n\t},\n};\n\n/**\n * Define the static BEM class names for the alert component.\n */\nconst BEM_CLASS_ICON = bem('kol-icon');\nconst BEM_CLASS_ICON__ICON = bem('kol-icon', 'icon');\n\nexport { bem as genBemAlert, BEM as BEM_ICON };\nexport { BEM_CLASS_ICON, BEM_CLASS_ICON__ICON };\n"],"names":["generateBemClassNames"],"mappings":";;;;;AAaA,MAAM,GAAG,GAAGA,CAAqB,EAAU;AAE3C,MAAM,GAAG,GAAW;AACnB,IAAA,UAAU,EAAE;AACX,QAAA,QAAQ,EAAE;AACT,YAAA,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;AACzB,SAAA;AACD,QAAA,SAAS,EAAE,IAAI;AACf,KAAA;;AAMF,MAAM,cAAc,GAAG,GAAG,CAAC,UAAU;AAC/B,MAAA,oBAAoB,GAAG,GAAG,CAAC,UAAU,EAAE,MAAM;;;;"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{s as e}from"./browser-DAVbNx-f.js";const o=e(),s={"kol-alert":{elements:{closer:{modifiers:null},heading:{modifiers:new Set(["h0","h1","h2","h3","h4","h5","h6"])},icon:{modifiers:null},content:{modifiers:null},container:{modifiers:null}},modifiers:new Set(["hasCloser","type-default","type-error","type-info","type-success","type-warning","variant-card","variant-msg"])}},t=o("kol-alert","closer"),n=o("kol-alert","content"),r=o("kol-alert","icon");export{s as B,r as a,o as b,n as c,t as d};
4
+ import{s as e}from"./browser-DeS_gcJV.js";const o=e(),s={"kol-alert":{elements:{closer:{modifiers:null},heading:{modifiers:new Set(["h0","h1","h2","h3","h4","h5","h6"])},icon:{modifiers:null},content:{modifiers:null},container:{modifiers:null}},modifiers:new Set(["hasCloser","type-default","type-error","type-info","type-success","type-warning","variant-card","variant-msg"])}},t=o("kol-alert","closer"),n=o("kol-alert","content"),r=o("kol-alert","icon");export{s as B,r as a,o as b,n as c,t as d};
@@ -1 +1 @@
1
- {"version":3,"file":"bem-DqV0swL_.js","sources":["src/functional-components/Alert/bem.ts"],"sourcesContent":["import { generateBemClassNames } from 'typed-bem';\n\n/**\n * This file defines the BEM schema for the kol-alert component.\n */\n\n/**\n * The schema defines the structure of the BEM class names\n */\ntype SCHEMA = {\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};\n\n/**\n * Define the generator function for the BEM class names.\n */\nconst bem = generateBemClassNames<SCHEMA>();\n\n/**\n * Define a constants object that contains the BEM schema for\n * reuse to generate SCSS files in themes.\n */\nconst BEM: SCHEMA = {\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};\n\n/**\n * Define the static BEM class names for the alert component.\n */\nconst BEM_CLASS_ALERT__CLOSER = bem('kol-alert', 'closer');\nconst BEM_CLASS_ALERT__CONTENT = bem('kol-alert', 'content');\nconst BEM_CLASS_ALERT__ICON = bem('kol-alert', 'icon');\n\nexport { bem as genBemAlert, BEM as BEM_ALERT };\nexport { BEM_CLASS_ALERT__CLOSER, BEM_CLASS_ALERT__CONTENT, BEM_CLASS_ALERT__ICON };\n"],"names":["generateBemClassNames"],"mappings":";;;;;AAgDA,MAAM,GAAG,GAAGA,CAAqB;AAMjC,MAAM,GAAG,GAAW;AACnB,IAAA,WAAW,EAAE;AACZ,QAAA,QAAQ,EAAE;AACT,YAAA,MAAM,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;YAC3B,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,EAAE;AAC3E,YAAA,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;AACzB,YAAA,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;AAC5B,YAAA,SAAS,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;AAC9B,SAAA;QACD,SAAS,EAAE,IAAI,GAAG,CAAC,CAAC,WAAW,EAAE,cAAc,EAAE,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,CAAC,CAAC;AAC3I,KAAA;;AAMI,MAAA,uBAAuB,GAAG,GAAG,CAAC,WAAW,EAAE,QAAQ;AACnD,MAAA,wBAAwB,GAAG,GAAG,CAAC,WAAW,EAAE,SAAS;AACrD,MAAA,qBAAqB,GAAG,GAAG,CAAC,WAAW,EAAE,MAAM;;;;"}
1
+ {"version":3,"file":"bem-DhwfdDrM.js","sources":["src/functional-components/Alert/bem.ts"],"sourcesContent":["import { generateBemClassNames } from 'typed-bem';\n\n/**\n * This file defines the BEM schema for the kol-alert component.\n */\n\n/**\n * The schema defines the structure of the BEM class names\n */\ntype SCHEMA = {\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};\n\n/**\n * Define the generator function for the BEM class names.\n */\nconst bem = generateBemClassNames<SCHEMA>();\n\n/**\n * Define a constants object that contains the BEM schema for\n * reuse to generate SCSS files in themes.\n */\nconst BEM: SCHEMA = {\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};\n\n/**\n * Define the static BEM class names for the alert component.\n */\nconst BEM_CLASS_ALERT__CLOSER = bem('kol-alert', 'closer');\nconst BEM_CLASS_ALERT__CONTENT = bem('kol-alert', 'content');\nconst BEM_CLASS_ALERT__ICON = bem('kol-alert', 'icon');\n\nexport { bem as genBemAlert, BEM as BEM_ALERT };\nexport { BEM_CLASS_ALERT__CLOSER, BEM_CLASS_ALERT__CONTENT, BEM_CLASS_ALERT__ICON };\n"],"names":["generateBemClassNames"],"mappings":";;;;;AAgDA,MAAM,GAAG,GAAGA,CAAqB;AAMjC,MAAM,GAAG,GAAW;AACnB,IAAA,WAAW,EAAE;AACZ,QAAA,QAAQ,EAAE;AACT,YAAA,MAAM,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;YAC3B,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,EAAE;AAC3E,YAAA,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;AACzB,YAAA,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;AAC5B,YAAA,SAAS,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;AAC9B,SAAA;QACD,SAAS,EAAE,IAAI,GAAG,CAAC,CAAC,WAAW,EAAE,cAAc,EAAE,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,CAAC,CAAC;AAC3I,KAAA;;AAMI,MAAA,uBAAuB,GAAG,GAAG,CAAC,WAAW,EAAE,QAAQ;AACnD,MAAA,wBAAwB,GAAG,GAAG,CAAC,WAAW,EAAE,SAAS;AACrD,MAAA,qBAAqB,GAAG,GAAG,CAAC,WAAW,EAAE,MAAM;;;;"}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{v as o,V as n,L as i}from"./common-8fBdMvJM.js";import{s as e}from"./component-names-CkE54Ym7.js";import{i as s}from"./i18n-ZF6JbdVP.js";let t,d=!1;const a=async(a,r,l)=>{var m,v;const u="undefined"!=typeof process&&process.env?"production":void 0;o((null==l?void 0:l.environment)||u||"production"),s(null!==(v=null===(m=null==l?void 0:l.translation)||void 0===m?void 0:m.name)&&void 0!==v?v:"de",null==l?void 0:l.translations),(null==l?void 0:l.transformTagName)&&e(null==l?void 0:l.transformTagName);const c=await n(a,r,l);return d=!0,t=l,i.info("Development mode active - Enhanced debugging features available"),c},l=a,v=()=>d,r=()=>t;export{a as b,r as g,v as i,l as r};
@@ -1 +1 @@
1
- {"version":3,"file":"bootstrap-YDZ8Qb_h.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;AAC1G,IAAA,cAAc,CAAC,CAAA,cAAc,KAAA,IAAA,IAAd,cAAc,KAAd,MAAA,GAAA,MAAA,GAAA,cAAc,CAAE,WAAW,KAAI,OAAO,IAAI,YAAY,CAAC;IAEtE,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,CAAY,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-BiRnv4fV.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;AAC1G,IAAA,cAAc,CAAC,CAAA,cAAc,KAAA,IAAA,IAAd,cAAc,KAAd,MAAA,GAAA,MAAA,GAAA,cAAc,CAAE,WAAW,KAAI,OAAO,IAAI,YAAY,CAAC;IAEtE,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,CAAY,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,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{x as r}from"./common-zXZUsQ7l.js";var n,t;function e(){return t||(t=1,n=function(r){return function(t,n){if(!t)return r;var e;"string"==typeof t?e=t:n=t;var o=r;return e&&(o+="__"+e),o+(n?Object.keys(n).reduce(function(r,t){var e=n[t];return e&&(r+=" "+("boolean"==typeof e?o+"--"+t:o+"--"+t+"_"+e)),r},""):"")}}),n}var o=e(),u=r(o);function f(){const r=new Map;return(t,n,e)=>{try{return r.get(t)(n,e)}catch{return r.set(t,u(t)).get(t)(n,e)}}}export{f as s};
4
+ import{x as r}from"./common-8fBdMvJM.js";var n,t;function e(){return t||(t=1,n=function(r){return function(t,n){if(!t)return r;var e;"string"==typeof t?e=t:n=t;var o=r;return e&&(o+="__"+e),o+(n?Object.keys(n).reduce(function(r,t){var e=n[t];return e&&(r+=" "+("boolean"==typeof e?o+"--"+t:o+"--"+t+"_"+e)),r},""):"")}}),n}var o=e(),f=r(o);function u(){const r=new Map;return(t,n,e)=>{try{return r.get(t)(n,e)}catch{return r.set(t,f(t)).get(t)(n,e)}}}export{u as s};
@@ -1 +1 @@
1
- {"version":3,"file":"browser-DAVbNx-f.js","sources":["../../node_modules/.pnpm/easy-bem@1.1.1/node_modules/easy-bem/index.js","../../node_modules/.pnpm/typed-bem@1.0.0-rc.7/node_modules/typed-bem/dist/browser.mjs"],"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 r from\"easy-bem\";function s(){const e=new Map;return(t,n,o)=>{try{return e.get(t)(n,o)}catch{return e.set(t,r(t)).get(t)(n,o)}}}function a(...e){const t=new Set;for(const n of e)if(n)for(const o of n.split(/\\s+/))t.add(o);return[...t].join(\" \")}export{s as generateBemClassNames,a as uniqueClassNames};\n//# sourceMappingURL=browser.mjs.map\n"],"names":[],"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,EA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AC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;;;;","x_google_ignoreList":[0,1]}
1
+ {"version":3,"file":"browser-DeS_gcJV.js","sources":["../../node_modules/.pnpm/easy-bem@1.1.1/node_modules/easy-bem/index.js","../../node_modules/.pnpm/typed-bem@1.0.0-rc.7/node_modules/typed-bem/dist/browser.mjs"],"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 r from\"easy-bem\";function s(){const e=new Map;return(t,n,o)=>{try{return e.get(t)(n,o)}catch{return e.set(t,r(t)).get(t)(n,o)}}}function a(...e){const t=new Set;for(const n of e)if(n)for(const o of n.split(/\\s+/))t.add(o);return[...t].join(\" \")}export{s as generateBemClassNames,a as uniqueClassNames};\n//# sourceMappingURL=browser.mjs.map\n"],"names":[],"mappings":";;;;;;;;;;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CA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AAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;;;;","x_google_ignoreList":[0,1]}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{k as t,l as r,r as n,m as e,q as o,L as a,t as s,w as i}from"./common-zXZUsQ7l.js";function l(o){var a;Array.isArray(o)&&o.raw&&(o=String.raw(...arguments));var e=t(o);if(!e.space)return[];const u="h"===e.space[0]?r.min:n.min,s="h"===e.space[0]?r.max:n.max;return(a=Array(3))[0]=Math.min(Math.max(e.values[0],u[0]),s[0]),a[1]=Math.min(Math.max(e.values[1],u[1]),s[1]),a[2]=Math.min(Math.max(e.values[2],u[2]),s[2]),"h"===e.space[0]&&(a=r.rgb(a)),a.push(Math.min(Math.max(e.alpha,0),1)),a}const u=(r,o,t)=>(299*r+587*o+114*t)/1e3>=128?-1:1,f=(r,t,n,a=1)=>{const u=[Math.max(Math.min(Math.round(t[0]+a*Math.max(1,t[0]/100)),255),0),Math.max(Math.min(Math.round(t[1]+a*Math.max(1,t[1]/100)),255),0),Math.max(Math.min(Math.round(t[2]+a*Math.max(1,t[2]/100)),255),0)],s=o(e.hex(`rgba(${r.join(",")},1)`),e.hex(`rgba(${u.join(",")},1)`)),i=u[0]+u[1]+u[2];return 0===i||765===i||s>n?{background:r,foreground:u,contrast:s}:f(r,u,n,a)},c=new Map,g=(r,o,t,n=1)=>{if(c.has(r))return c.get(r);const a=f(r,o,t,n);return c.set(r,a),a},h=(r,o=7)=>{let t=[0,0,0,1],n=[255,255,255,1];"string"==typeof r?(t=l(r),n=t):"object"==typeof r&&null!==r&&"string"==typeof r.background&&"string"==typeof r.foreground&&(t=l(r.background),n="string"==typeof r.foreground?l(r.foreground):t);const a=u(t[0],t[1],t[2]),s=g([t[0],t[1],t[2]],[n[0],n[1],n[2]],o,a);return n=[...s.foreground,1],{background:e.hex(`rgba(${t.join(",")})`),foreground:e.hex(`rgba(${n.join(",")})`),contrast:s.contrast}},p=/^#((\d|[a-f]){8}|(\d|[a-f]){6}|(\d|[a-f]){3,4})$/i;function y(r){return p.test(r)}function d(r){if(r.startsWith("{"))try{const o=JSON.parse(r);if(v(o))return{type:"ColorPair",value:o}}catch(r){return{type:null,value:null}}return{type:null,value:null}}function M(r){if(r)if("string"==typeof r){if(y(r))return{type:"string",valid:!0,value:r};{const o=d(r);if(o.value)return{type:o.type,valid:!0,value:o.value}}}else{const o=r;if(v(o))return{type:"ColorPair",valid:!0,value:o}}return{type:null,valid:!1,value:""}}function v(r){return!("object"!=typeof r||!r||"string"!=typeof r.backgroundColor||!("string"==typeof r.foregroundColor||r.foregroundColor&&"string"==typeof r.foregroundColor.primary&&"string"==typeof r.foregroundColor.secondary&&"string"==typeof r.foregroundColor.neutral))}function b(r){const o=M(r);switch(o.type){case null:return!1;case"string":case"ColorPair":return o.valid}}const $=(r,o,t)=>{i(r,"_color",b,new Set(["rgb in hex","ColorPair"]),o,t)},k=r=>{var o;let t;const n=M(r);switch(n.type){case"string":t=h(n.value);break;case"ColorPair":{const r=n.value;let a="";"string"==typeof r.foregroundColor?a=r.foregroundColor:(null===(o=r.foregroundColor)||void 0===o?void 0:o.primary)&&(a=r.foregroundColor.primary),a&&"string"==typeof a||(a="#fff"),t=h({background:r.backgroundColor,foreground:a});break}case null:a.warn(`_color was empty or invalid (${JSON.stringify(r)})`),t=h({background:"#000",foreground:"#000"})}return t.contrast<7&&s(`[KolBadge] The contrast of ${t.contrast} (≥7, AAA) is to low, between the color pair ${t.background} and ${t.foreground}.`),{backgroundColor:t.background,foregroundColor:t.foreground}};export{k as h,l as r,$ as v};
4
+ import{k as t,l as r,r as n,m as e,q as o,L as a,t as s,w as i}from"./common-8fBdMvJM.js";function f(o){var a;Array.isArray(o)&&o.raw&&(o=String.raw(...arguments));var e=t(o);if(!e.space)return[];const u="h"===e.space[0]?r.min:n.min,s="h"===e.space[0]?r.max:n.max;return(a=Array(3))[0]=Math.min(Math.max(e.values[0],u[0]),s[0]),a[1]=Math.min(Math.max(e.values[1],u[1]),s[1]),a[2]=Math.min(Math.max(e.values[2],u[2]),s[2]),"h"===e.space[0]&&(a=r.rgb(a)),a.push(Math.min(Math.max(e.alpha,0),1)),a}const l=(r,o,t)=>(299*r+587*o+114*t)/1e3>=128?-1:1,u=(r,t,n,a=1)=>{const s=[Math.max(Math.min(Math.round(t[0]+a*Math.max(1,t[0]/100)),255),0),Math.max(Math.min(Math.round(t[1]+a*Math.max(1,t[1]/100)),255),0),Math.max(Math.min(Math.round(t[2]+a*Math.max(1,t[2]/100)),255),0)],i=o(e.hex(`rgba(${r.join(",")},1)`),e.hex(`rgba(${s.join(",")},1)`)),l=s[0]+s[1]+s[2];return 0===l||765===l||i>n?{background:r,foreground:s,contrast:i}:u(r,s,n,a)},c=new Map,g=(r,o,t,n=1)=>{if(c.has(r))return c.get(r);const a=u(r,o,t,n);return c.set(r,a),a},h=(r,o=7)=>{let t=[0,0,0,1],n=[255,255,255,1];"string"==typeof r?(t=f(r),n=t):"object"==typeof r&&null!==r&&"string"==typeof r.background&&"string"==typeof r.foreground&&(t=f(r.background),n="string"==typeof r.foreground?f(r.foreground):t);const a=l(t[0],t[1],t[2]),u=g([t[0],t[1],t[2]],[n[0],n[1],n[2]],o,a);return n=[...u.foreground,1],{background:e.hex(`rgba(${t.join(",")})`),foreground:e.hex(`rgba(${n.join(",")})`),contrast:u.contrast}},p=/^#((\d|[a-f]){8}|(\d|[a-f]){6}|(\d|[a-f]){3,4})$/i;function y(r){return p.test(r)}function d(r){if(r.startsWith("{"))try{const o=JSON.parse(r);if(v(o))return{type:"ColorPair",value:o}}catch(r){return{type:null,value:null}}return{type:null,value:null}}function M(r){if(r)if("string"==typeof r){if(y(r))return{type:"string",valid:!0,value:r};{const o=d(r);if(o.value)return{type:o.type,valid:!0,value:o.value}}}else{const o=r;if(v(o))return{type:"ColorPair",valid:!0,value:o}}return{type:null,valid:!1,value:""}}function v(r){return!("object"!=typeof r||!r||"string"!=typeof r.backgroundColor||!("string"==typeof r.foregroundColor||r.foregroundColor&&"string"==typeof r.foregroundColor.primary&&"string"==typeof r.foregroundColor.secondary&&"string"==typeof r.foregroundColor.neutral))}function b(r){const o=M(r);switch(o.type){case null:return!1;case"string":case"ColorPair":return o.valid}}const $=(r,o,t)=>{i(r,"_color",b,new Set(["rgb in hex","ColorPair"]),o,t)},k=r=>{var o;let t;const n=M(r);switch(n.type){case"string":t=h(n.value);break;case"ColorPair":{const r=n.value;let a="";"string"==typeof r.foregroundColor?a=r.foregroundColor:(null===(o=r.foregroundColor)||void 0===o?void 0:o.primary)&&(a=r.foregroundColor.primary),a&&"string"==typeof a||(a="#fff"),t=h({background:r.backgroundColor,foreground:a});break}case null:a.warn(`_color was empty or invalid (${JSON.stringify(r)})`),t=h({background:"#000",foreground:"#000"})}return t.contrast<7&&s(`[KolBadge] The contrast of ${t.contrast} (≥7, AAA) is to low, between the color pair ${t.background} and ${t.foreground}.`),{backgroundColor:t.background,foregroundColor:t.foreground}};export{k as h,f as r,$ as v};
@@ -1 +1 @@
1
- {"version":3,"file":"color-Byzv98Bu.js","sources":["../../node_modules/.pnpm/color-rgba@2.4.0/node_modules/color-rgba/index.mjs","src/schema/utils/contrast.ts","src/schema/props/color.ts"],"sourcesContent":["/** @module color-rgba */\r\nimport parse from 'color-parse'\r\nimport rgb from 'color-space/rgb.js'\r\nimport hsl from 'color-space/hsl.js'\r\n\r\nexport default function rgba (color) {\r\n\t// template literals\r\n\tif (Array.isArray(color) && color.raw) color = String.raw(...arguments)\r\n\r\n\tvar values, i, l\r\n\r\n\t//attempt to parse non-array arguments\r\n\tvar parsed = parse(color)\r\n\r\n\tif (!parsed.space) return []\r\n\r\n\tconst min = parsed.space[0] === 'h' ? hsl.min : rgb.min\r\n\tconst max = parsed.space[0] === 'h' ? hsl.max : rgb.max\r\n\r\n\tvalues = Array(3)\r\n\tvalues[0] = Math.min(Math.max(parsed.values[0], min[0]), max[0])\r\n\tvalues[1] = Math.min(Math.max(parsed.values[1], min[1]), max[1])\r\n\tvalues[2] = Math.min(Math.max(parsed.values[2], min[2]), max[2])\r\n\r\n\tif (parsed.space[0] === 'h') {\r\n\t\tvalues = hsl.rgb(values)\r\n\t}\r\n\r\n\tvalues.push(Math.min(Math.max(parsed.alpha, 0), 1))\r\n\r\n\treturn values\r\n}\r\n","import type { RGB } from 'color-convert/conversions';\nimport { hex } from 'wcag-contrast';\n\nimport rgba from 'color-rgba';\nimport rgbaConvert from 'rgba-convert';\n\ntype RGBA = [number, number, number, number];\n\n// const calcColor = (color: RGBA, diff: number): RGBA => [\n// Math.max(Math.min(Math.round(color[0] + (color[0] / 100 + 1) * diff), 255), 0),\n// Math.max(Math.min(Math.round(color[1] + (color[1] / 100 + 1) * diff), 255), 0),\n// Math.max(Math.min(Math.round(color[2] + (color[2] / 100 + 1) * diff), 255), 0),\n// color[3],\n// ];\n\n// const relativeLuminanceFormel = (c: number): number => {\n// if (c <= 0.03928) {\n// return c / 12.92;\n// } else {\n// return ((c + 0.055) / 1.055) ** 2.4;\n// }\n// };\n// // https://www.w3.org/TR/WCAG20/#contrast-ratiodef\n// const relativeLuminance = (r: number, g: number, b: number): number => {\n// return (\n// 0.2126 * relativeLuminanceFormel(r) + 0.7152 * relativeLuminanceFormel(g) + 0.0722 * relativeLuminanceFormel(b)\n// );\n// };\n\n// https://css-tricks.com/snippets/javascript/random-hex-color/\n// const randomColor = () => Math.floor(Math.random() * 16777215).toString(16);\n\n// https://24ways.org/2010/calculating-color-contrast/\nexport const getContrastYIQ = (r: number, g: number, b: number): number => {\n\tconst yiq = (r * 299 + g * 587 + b * 114) / 1000;\n\treturn yiq >= 128 ? -1 : 1;\n};\n\ntype ColorPair<T> = {\n\tbackground: T;\n\tforeground: T;\n};\n\nexport type ColorContrast<T> = ColorPair<T> & {\n\tcontrast: number;\n};\n\nexport const calcColorContrast = (baseColor: RGB, contrastColor: RGB, ratio: number, dir = 1): ColorContrast<RGB> => {\n\tconst color: RGB = [\n\t\tMath.max(Math.min(Math.round(contrastColor[0] + dir * Math.max(1, contrastColor[0] / 100)), 255), 0),\n\t\tMath.max(Math.min(Math.round(contrastColor[1] + dir * Math.max(1, contrastColor[1] / 100)), 255), 0),\n\t\tMath.max(Math.min(Math.round(contrastColor[2] + dir * Math.max(1, contrastColor[2] / 100)), 255), 0),\n\t];\n\tconst contrast = hex(rgbaConvert.hex(`rgba(${baseColor.join(',')},1)`), rgbaConvert.hex(`rgba(${color.join(',')},1)`));\n\tconst summe = color[0] + color[1] + color[2];\n\tif (summe === 0 || summe === 765 || contrast > ratio) {\n\t\treturn {\n\t\t\tbackground: baseColor,\n\t\t\tforeground: color,\n\t\t\tcontrast,\n\t\t};\n\t} else {\n\t\treturn calcColorContrast(baseColor, color, ratio, dir);\n\t}\n};\n\nconst cache: Map<unknown, ColorContrast<RGB>> = new Map();\n\nexport const getColorContrast = (baseColor: RGB, contrastColor: RGB, ratio: number, dir = 1): ColorContrast<RGB> => {\n\tif (cache.has(baseColor)) {\n\t\treturn cache.get(baseColor) as ColorContrast<RGB>;\n\t}\n\tconst color = calcColorContrast(baseColor, contrastColor, ratio, dir);\n\tcache.set(baseColor, color);\n\treturn color;\n};\n\nexport const createContrastColorPair = (color: string | ColorPair<string>, contrastRatio = 7): ColorContrast<string> => {\n\tlet baseColor: RGBA = [0, 0, 0, 1];\n\tlet contrastColor: RGBA = [255, 255, 255, 1];\n\tif (typeof color === 'string') {\n\t\tbaseColor = rgba(color);\n\t\tcontrastColor = baseColor;\n\t} else if (typeof color === 'object' && color !== null && typeof color.background === 'string' && typeof color.foreground === 'string') {\n\t\tbaseColor = rgba(color.background);\n\t\tif (typeof color.foreground === 'string') {\n\t\t\tcontrastColor = rgba(color.foreground);\n\t\t} else {\n\t\t\tcontrastColor = baseColor;\n\t\t}\n\t}\n\tconst yiq = getContrastYIQ(baseColor[0], baseColor[1], baseColor[2]);\n\tconst colorContrast = getColorContrast(\n\t\t[baseColor[0], baseColor[1], baseColor[2]],\n\t\t[contrastColor[0], contrastColor[1], contrastColor[2]],\n\t\tcontrastRatio,\n\t\tyiq,\n\t);\n\tcontrastColor = [...colorContrast.foreground, 1];\n\n\treturn {\n\t\tbackground: rgbaConvert.hex(`rgba(${baseColor.join(',')})`),\n\t\tforeground: rgbaConvert.hex(`rgba(${contrastColor.join(',')})`),\n\t\tcontrast: colorContrast.contrast,\n\t};\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { Stringified } from '../types';\nimport type { ColorContrast, WatchOptions } from '../utils';\nimport { Log } from '../utils';\nimport { a11yHint, createContrastColorPair, watchValidator } from '../utils';\n\n/**\n * Defines the colors for primary, secondary and neutral.\n */\ntype CharacteristicColors = {\n\tprimary: string;\n\tsecondary: string;\n\tneutral: string;\n};\n\n/**\n * Defines the backgroundColor and foregroundColor.\n */\nexport type ColorPair = {\n\tbackgroundColor: string;\n\tforegroundColor: Stringified<CharacteristicColors>;\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 (error) {\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 !!(\n\t\ttypeof value === 'object' &&\n\t\tvalue &&\n\t\ttypeof value.backgroundColor === 'string' &&\n\t\t(typeof value.foregroundColor === 'string' ||\n\t\t\t(value.foregroundColor &&\n\t\t\t\ttypeof value.foregroundColor.primary === 'string' &&\n\t\t\t\ttypeof value.foregroundColor.secondary === 'string' &&\n\t\t\t\ttypeof value.foregroundColor.neutral === 'string'))\n\t);\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\telse if (asColorPair.foregroundColor?.primary) foreground = asColorPair.foregroundColor.primary;\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":["hex","rgbaConvert"],"mappings":";;;;;AAAA;AAIA;AACe,SAAS,IAAI,EAAE,KAAK,EAAE;AACrC;AACA,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,GAAG,EAAE,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,GAAG,SAAS,EAAC;AACxE;AACA,CAAI,IAAC,MAAM,CAAM;AACjB;AACA;AACA,CAAC,IAAI,MAAM,GAAG,KAAK,CAAC,KAAK,EAAC;AAC1B;AACA,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE;AAC7B;AACA,CAAC,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,GAAG,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,IAAG;AACxD,CAAC,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,GAAG,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,IAAG;AACxD;AACA,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC,EA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e,0CAAE,OAAO;AAAE,gBAAA,UAAU,GAAG,WAAW,CAAC,eAAe,CAAC,OAAO;AAC/F,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;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"color-C3pYZKV3.js","sources":["../../node_modules/.pnpm/color-rgba@2.4.0/node_modules/color-rgba/index.mjs","src/schema/utils/contrast.ts","src/schema/props/color.ts"],"sourcesContent":["/** @module color-rgba */\r\nimport parse from 'color-parse'\r\nimport rgb from 'color-space/rgb.js'\r\nimport hsl from 'color-space/hsl.js'\r\n\r\nexport default function rgba (color) {\r\n\t// template literals\r\n\tif (Array.isArray(color) && color.raw) color = String.raw(...arguments)\r\n\r\n\tvar values, i, l\r\n\r\n\t//attempt to parse non-array arguments\r\n\tvar parsed = parse(color)\r\n\r\n\tif (!parsed.space) return []\r\n\r\n\tconst min = parsed.space[0] === 'h' ? hsl.min : rgb.min\r\n\tconst max = parsed.space[0] === 'h' ? hsl.max : rgb.max\r\n\r\n\tvalues = Array(3)\r\n\tvalues[0] = Math.min(Math.max(parsed.values[0], min[0]), max[0])\r\n\tvalues[1] = Math.min(Math.max(parsed.values[1], min[1]), max[1])\r\n\tvalues[2] = Math.min(Math.max(parsed.values[2], min[2]), max[2])\r\n\r\n\tif (parsed.space[0] === 'h') {\r\n\t\tvalues = hsl.rgb(values)\r\n\t}\r\n\r\n\tvalues.push(Math.min(Math.max(parsed.alpha, 0), 1))\r\n\r\n\treturn values\r\n}\r\n","import type { RGB } from 'color-convert/conversions';\nimport { hex } from 'wcag-contrast';\n\nimport rgba from 'color-rgba';\nimport rgbaConvert from 'rgba-convert';\n\ntype RGBA = [number, number, number, number];\n\n// const calcColor = (color: RGBA, diff: number): RGBA => [\n// Math.max(Math.min(Math.round(color[0] + (color[0] / 100 + 1) * diff), 255), 0),\n// Math.max(Math.min(Math.round(color[1] + (color[1] / 100 + 1) * diff), 255), 0),\n// Math.max(Math.min(Math.round(color[2] + (color[2] / 100 + 1) * diff), 255), 0),\n// color[3],\n// ];\n\n// const relativeLuminanceFormel = (c: number): number => {\n// if (c <= 0.03928) {\n// return c / 12.92;\n// } else {\n// return ((c + 0.055) / 1.055) ** 2.4;\n// }\n// };\n// // https://www.w3.org/TR/WCAG20/#contrast-ratiodef\n// const relativeLuminance = (r: number, g: number, b: number): number => {\n// return (\n// 0.2126 * relativeLuminanceFormel(r) + 0.7152 * relativeLuminanceFormel(g) + 0.0722 * relativeLuminanceFormel(b)\n// );\n// };\n\n// https://css-tricks.com/snippets/javascript/random-hex-color/\n// const randomColor = () => Math.floor(Math.random() * 16777215).toString(16);\n\n// https://24ways.org/2010/calculating-color-contrast/\nexport const getContrastYIQ = (r: number, g: number, b: number): number => {\n\tconst yiq = (r * 299 + g * 587 + b * 114) / 1000;\n\treturn yiq >= 128 ? -1 : 1;\n};\n\ntype ColorPair<T> = {\n\tbackground: T;\n\tforeground: T;\n};\n\nexport type ColorContrast<T> = ColorPair<T> & {\n\tcontrast: number;\n};\n\nexport const calcColorContrast = (baseColor: RGB, contrastColor: RGB, ratio: number, dir = 1): ColorContrast<RGB> => {\n\tconst color: RGB = [\n\t\tMath.max(Math.min(Math.round(contrastColor[0] + dir * Math.max(1, contrastColor[0] / 100)), 255), 0),\n\t\tMath.max(Math.min(Math.round(contrastColor[1] + dir * Math.max(1, contrastColor[1] / 100)), 255), 0),\n\t\tMath.max(Math.min(Math.round(contrastColor[2] + dir * Math.max(1, contrastColor[2] / 100)), 255), 0),\n\t];\n\tconst contrast = hex(rgbaConvert.hex(`rgba(${baseColor.join(',')},1)`), rgbaConvert.hex(`rgba(${color.join(',')},1)`));\n\tconst summe = color[0] + color[1] + color[2];\n\tif (summe === 0 || summe === 765 || contrast > ratio) {\n\t\treturn {\n\t\t\tbackground: baseColor,\n\t\t\tforeground: color,\n\t\t\tcontrast,\n\t\t};\n\t} else {\n\t\treturn calcColorContrast(baseColor, color, ratio, dir);\n\t}\n};\n\nconst cache: Map<unknown, ColorContrast<RGB>> = new Map();\n\nexport const getColorContrast = (baseColor: RGB, contrastColor: RGB, ratio: number, dir = 1): ColorContrast<RGB> => {\n\tif (cache.has(baseColor)) {\n\t\treturn cache.get(baseColor) as ColorContrast<RGB>;\n\t}\n\tconst color = calcColorContrast(baseColor, contrastColor, ratio, dir);\n\tcache.set(baseColor, color);\n\treturn color;\n};\n\nexport const createContrastColorPair = (color: string | ColorPair<string>, contrastRatio = 7): ColorContrast<string> => {\n\tlet baseColor: RGBA = [0, 0, 0, 1];\n\tlet contrastColor: RGBA = [255, 255, 255, 1];\n\tif (typeof color === 'string') {\n\t\tbaseColor = rgba(color);\n\t\tcontrastColor = baseColor;\n\t} else if (typeof color === 'object' && color !== null && typeof color.background === 'string' && typeof color.foreground === 'string') {\n\t\tbaseColor = rgba(color.background);\n\t\tif (typeof color.foreground === 'string') {\n\t\t\tcontrastColor = rgba(color.foreground);\n\t\t} else {\n\t\t\tcontrastColor = baseColor;\n\t\t}\n\t}\n\tconst yiq = getContrastYIQ(baseColor[0], baseColor[1], baseColor[2]);\n\tconst colorContrast = getColorContrast(\n\t\t[baseColor[0], baseColor[1], baseColor[2]],\n\t\t[contrastColor[0], contrastColor[1], contrastColor[2]],\n\t\tcontrastRatio,\n\t\tyiq,\n\t);\n\tcontrastColor = [...colorContrast.foreground, 1];\n\n\treturn {\n\t\tbackground: rgbaConvert.hex(`rgba(${baseColor.join(',')})`),\n\t\tforeground: rgbaConvert.hex(`rgba(${contrastColor.join(',')})`),\n\t\tcontrast: colorContrast.contrast,\n\t};\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { Stringified } from '../types';\nimport type { ColorContrast, WatchOptions } from '../utils';\nimport { Log } from '../utils';\nimport { a11yHint, createContrastColorPair, watchValidator } from '../utils';\n\n/**\n * Defines the colors for primary, secondary and neutral.\n */\ntype CharacteristicColors = {\n\tprimary: string;\n\tsecondary: string;\n\tneutral: string;\n};\n\n/**\n * Defines the backgroundColor and foregroundColor.\n */\nexport type ColorPair = {\n\tbackgroundColor: string;\n\tforegroundColor: Stringified<CharacteristicColors>;\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 (error) {\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 !!(\n\t\ttypeof value === 'object' &&\n\t\tvalue &&\n\t\ttypeof value.backgroundColor === 'string' &&\n\t\t(typeof value.foregroundColor === 'string' ||\n\t\t\t(value.foregroundColor &&\n\t\t\t\ttypeof value.foregroundColor.primary === 'string' &&\n\t\t\t\ttypeof value.foregroundColor.secondary === 'string' &&\n\t\t\t\ttypeof value.foregroundColor.neutral === 'string'))\n\t);\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\telse if (asColorPair.foregroundColor?.primary) foreground = asColorPair.foregroundColor.primary;\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":["hex","rgbaConvert"],"mappings":";;;;;AAAA;AAIA;AACe,SAAS,IAAI,EAAE,KAAK,EAAE;AACrC;AACA,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,GAAG,EAAE,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,GAAG,SAAS,EAAC;AACxE;AACA,CAAI,IAAC,MAAM,CAAM;AACjB;AACA;AACA,CAAC,IAAI,MAAM,GAAG,KAAK,CAAC,KAAK,EAAC;AAC1B;AACA,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE;AAC7B;AACA,CAAC,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,GAAG,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,IAAG;AACxD,CAAC,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,KAA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K,QAAQ;AAAE,gBAAA,UAAU,GAAG,WAAW,CAAC,eAAe;AACxF,iBAAA,IAAI,CAAA,EAAA,GAAA,WAAW,CAAC,eAAe,0CAAE,OAAO;AAAE,gBAAA,UAAU,GAAG,WAAW,CAAC,eAAe,CAAC,OAAO;AAC/F,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;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var r,t={exports:{}},n=t.exports;function o(){return r||(r=1,function(e){!function(t,o){e.exports?e.exports=o():t.log=o()}(n,function(){var e=function(){},t="undefined",o=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),r=["trace","debug","info","warn","error"],n={},a=null;function s(e,t){var o=e[t];if("function"==typeof o.bind)return o.bind(e);try{return Function.prototype.bind.call(o,e)}catch(t){return function(){return Function.prototype.apply.apply(o,[e,arguments])}}}function i(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function l(r){return"debug"===r&&(r="log"),typeof console!==t&&("trace"===r&&o?i:void 0!==console[r]?s(console,r):void 0!==console.log?s(console,"log"):e)}function c(){for(var o=this.getLevel(),n=0;n<r.length;n++){var a=r[n];this[a]=n<o?e:this.methodFactory(a,o,this.name)}if(this.log=this.debug,typeof console===t&&o<this.levels.SILENT)return"No console available for logging"}function u(e){return function(){typeof console!==t&&(c.call(this),this[e].apply(this,arguments))}}function d(e,t,o){return l(e)||u.apply(this,arguments)}function f(e,o){var s,i,l,u=this,f="loglevel";function h(e){var o=(r[e]||"silent").toUpperCase();if(typeof window!==t&&f){try{return void(window.localStorage[f]=o)}catch(e){}try{window.document.cookie=encodeURIComponent(f)+"="+o+";"}catch(e){}}}function g(){var e;if(typeof window!==t&&f){try{e=window.localStorage[f]}catch(e){}if(typeof e===t)try{var o=window.document.cookie,r=encodeURIComponent(f),n=o.indexOf(r+"=");-1!==n&&(e=/^([^;]+)/.exec(o.slice(n+r.length+1))[1])}catch(e){}return void 0===u.levels[e]&&(e=void 0),e}}function p(e){var t=e;if("string"==typeof t&&void 0!==u.levels[t.toUpperCase()]&&(t=u.levels[t.toUpperCase()]),"number"==typeof t&&t>=0&&t<=u.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?f+=":"+e:"symbol"==typeof e&&(f=void 0),u.name=e,u.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},u.methodFactory=o||d,u.getLevel=function(){return null!=l?l:null!=i?i:s},u.setLevel=function(e,t){return l=p(e),!1!==t&&h(l),c.call(u)},u.setDefaultLevel=function(e){i=p(e),g()||u.setLevel(e,!1)},u.resetLevel=function(){l=null,function(){if(typeof window!==t&&f){try{window.localStorage.removeItem(f)}catch(e){}try{window.document.cookie=encodeURIComponent(f)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),c.call(u)},u.enableAll=function(e){u.setLevel(u.levels.TRACE,e)},u.disableAll=function(e){u.setLevel(u.levels.SILENT,e)},u.rebuild=function(){if(a!==u&&(s=p(a.getLevel())),c.call(u),a===u)for(var e in n)n[e].rebuild()},s=p(a?a.getLevel():"WARN");var m=g();null!=m&&(l=p(m)),c.call(u)}(a=new f).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=n[e];return t||(t=n[e]=new f(e,a.methodFactory)),t};var h=typeof window!==t?window.log:void 0;return a.noConflict=function(){return typeof window!==t&&window.log===a&&(window.log=h),a},a.getLoggers=function(){return n},a.default=a,a})}(t)),t.exports}var i=o(),a=e(i);const s=(e,t)=>o=>o(e,t),l=(e,t)=>o=>o(e,t,{append:!1}),u=()=>{const e=typeof process<"u"&&process.env?process.env:{},t="test"===e.NODE_ENV,o="VITEST"in e,r="JEST_WORKER_ID"in e,n="PLAYWRIGHT_TEST_BASE_URL"in e,a="true"===e.CI,s="true"===e.TEST||"true"===e.IS_TEST,i=typeof navigator<"u"&&!0===navigator.webdriver,l=typeof navigator<"u"&&/playwright|puppeteer|webdriver|selenium|testcafe/i.test(navigator.userAgent);return t||o||r||n||a||s||i||l},f={A11yUi:{CSS_STYLE_CACHE:new Map,IS_TEST_ENVIRONMENT:u(),PERFORMANCE_MEASURES:new Map,STYLING_TASK_QUEUE:new Map,THEMES:new Map,showAverageTimes:()=>{const e={};for(const[t,o]of f.A11yUi.PERFORMANCE_MEASURES.entries())e[t]=[o.totalTime/o.count,o.count];const t=Object.entries(e).sort((e,t)=>t[1][0]-e[1][0]);return console.table(Object.fromEntries(t.map(([e,[t,o]])=>[e,{"avg (ms)":parseFloat(t.toFixed(2)),count:o}]))),e}}};let c=!0,d=!1;const p=/^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/,v=e=>"string"==typeof e&&p.test(e),g=e=>{if(!v(e))throw new Error(`[Theming] The theme identifier "${"string"==typeof e?e:""}" (Type: ${typeof e}) is not valid. Please use only follow this pattern: /^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/`)},h=e=>e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s*([{},;])\s*/g,"$1").replace(/:\s+/g,":").replace(/\s+/g," ").replace(/;\}/g,"}").trim(),y=(e,t,o,r)=>b(e,t,o,r),b=(e,t,o,r)=>{(r=r??{}).append=r.append??!1,g(e),c&&!d&&(d=!0,a.warn(`[Theming] The theme process is locked. This means that the theme "${e}" should not be patched.\n\n import { register } from 'adopted-style-sheets';\n import { defineCustomElements } from '...';\n import { THEME } from '...';\n\n register(THEME, defineCustomElements)\n .then(() => {\n // run your app or website\n })\n .catch(console.warn);`));let n=f.A11yUi.THEMES.get(e);if(n||(n=new Map,f.A11yUi.THEMES.set(e,n)),r.append&&n.has(t)){const e=n.get(t);n.set(t,h(`${e}${o}`))}else n.set(t,h(o))},m=(e,t,o,r)=>w(e,t,o,r),w=(e,t,o,r)=>(g(e),"object"==typeof t&&null!==t&&Object.getOwnPropertyNames(t).forEach(n=>{const a=t[n],s=n.toLowerCase(),i="function"!=typeof r?.transformTagName||["GLOBAL","PROPERTIES"].includes(n)?n:r.transformTagName(s);"string"==typeof a&&a.length>0&&b(e,i.toUpperCase(),a,o)}),e),k=e=>{if(e instanceof HTMLElement){if("string"==typeof e.dataset.theme)return e;{let t=e.parentNode;for(;t instanceof ShadowRoot;)t=t.host;return k(t)}}return null},S=(e={})=>"false"!==e.themeEncroachCss&&"true"!==e.themeReset&&{mode:"after"===e.themeEncroachCssMode||"before"===e.themeEncroachCssMode?e.themeEncroachCssMode:"before"},T=()=>"object"==typeof f.A11yUi.Theme&&null!==f.A11yUi.Theme&&"boolean"==typeof f.A11yUi.Theme.cache&&"object"==typeof f.A11yUi.Theme.encroachCss&&null!==f.A11yUi.Theme.encroachCss&&"string"==typeof f.A11yUi.Theme.encroachCss.mode&&"string"==typeof f.A11yUi.Theme.name,E=()=>!("object"==typeof f.A11yUi.Theme&&null!==f.A11yUi.Theme)||"default"!==f.A11yUi.Theme.name,M=e=>{if(T())return f.A11yUi.Theme;{const t={cache:!0,encroachCss:S(),loglevel:"silent",mode:"csr",name:null},o=k(e);return o instanceof HTMLElement&&(t.cache="false"!==o.dataset.themeCache,t.encroachCss=S(o.dataset),t.loglevel="debug"===o.dataset.themeLoglevel?o.dataset.themeLoglevel:"silent",t.mode="ssr"===o.dataset.themeMode?o.dataset.themeMode:"csr",t.name=o.dataset.theme||null),t}},A=(e,t)=>({cache:!1!==t.cache,detect:"auto"===t.detect?"auto":"fixed",encroachCss:!1!==t.encroachCss&&("object"!=typeof t.encroachCss||null==t.encroachCss||"after"!==t.encroachCss.mode&&"before"!==t.encroachCss.mode?{mode:"before"}:t.encroachCss),loglevel:"debug"===t.loglevel?t.loglevel:"silent",mode:"ssr"===t.mode?t.mode:"csr",name:"string"==typeof t.name?t.name:e}),N=(e,t)=>{!1===T()&&E()&&"object"==typeof t&&null!==t&&("fixed"===(t=A(e,t)).detect?(null===t.name&&"string"==typeof e&&(t.name=e),e===t.name&&(f.A11yUi.Theme=t,a.info(`[Theming] Theme "${e}" was set as default theme.`))):d||(d=!0,a.warn("[Theming] The presetting of theme options is only relevant by using 'fixed' detection mode.")))};let O=!1;const L=(e,t,o={})=>{O||(O=!0,c=!1,typeof window<"u"&&(window.A11yUi=f.A11yUi)),"function"==typeof e?e=new Set([e]):Array.isArray(e)&&(e=new Set(e)),e instanceof Set&&e.forEach(e=>{"function"==typeof e&&1===e.length?N(e((e,t,r)=>w(e,t,r,o)),{cache:o.theme?.cache,detect:o.theme?.detect,encroachCss:o.theme?.encroachCss,mode:o.theme?.mode,name:o.theme?.name}):a.error("[Theming] An attempt was made to load an incompatible theme.")}),c=!0,"function"==typeof t?t=new Set([t]):Array.isArray(t)&&(t=new Set(t));const r=[];return t.forEach(e=>{const t=e();t instanceof Promise&&r.push(t)}),Promise.all(r)},R=new Set,j=/--[^;]+/g,I=/:/,C=typeof MutationObserver<"u";let $=25,_=()=>{$=Math.min(25+20*Math.log2(f.A11yUi.STYLING_TASK_QUEUE.size+1),250)};const x=(e,t)=>{let o=t.match(j);if(Array.isArray(o)){o=o.filter(e=>I.test(e));const t=document.createElement("style");t.innerHTML=`.${e} {${o.join(";")}}`,document.querySelector("head")?.appendChild(t)}R.add(e)},F=(e,t)=>{const o=f.A11yUi.THEMES.get(e);return o instanceof Map&&o.has(t)?o.get(t):""},H=e=>{for(const t of Array.from(e.childNodes)){if(!(t instanceof HTMLStyleElement&&"STYLE"===t.tagName&&void 0===t.dataset.themingFallback))break;e.removeChild(t)}},P=(e,t)=>{try{if("ssr"===f.A11yUi.Theme?.mode)throw new Error("SSR");const o=[];t.forEach(e=>{const t=new CSSStyleSheet;t.replaceSync(e),o.push(t)}),e.adoptedStyleSheets=o}catch{[...t].reverse().forEach((t,o)=>{if("string"!=typeof t||0===t.length)return;const r=document.createElement("style");switch(r.dataset.themingFallback="",o){case 4:r.dataset.themingBaseA11y="";break;case 3:r.dataset.themingBaseGlobal="";break;case 2:r.dataset.themingBaseComponent="";break;case 1:r.dataset.themingCustomGlobal="";break;case 0:r.dataset.themingCustomComponent="";break;default:r.dataset.themingUnknown=""}r.innerHTML=t,e.insertBefore(r,e.firstChild)})}},q=(e,t,o)=>{if(!1!==o){const r=[...Array.from(e.childNodes).filter(e=>e instanceof HTMLStyleElement&&"STYLE"===e.tagName)];let n;try{n=[...Array.from(e.adoptedStyleSheets)]}catch{n=[]}"before"===o?.mode?(r.reverse().forEach(e=>t.unshift(e.innerHTML)),n.reverse().forEach(e=>t.unshift(Array.from(e.cssRules).map(e=>e.cssText).join("")))):"after"===o?.mode&&(r.forEach(e=>t.push(e.innerHTML)),n.forEach(e=>t.push(Array.from(e.cssRules).map(e=>e.cssText).join(""))))}},U=(e,t,o)=>{const r=t.name||"default";let n;try{if(null===e.shadowRoot)throw new Error("ShadowRoot is null");n=e.shadowRoot}catch{n=e}if(f.A11yUi.CSS_STYLE_CACHE.get(r)?.has(e.tagName))z(e,n,f.A11yUi.CSS_STYLE_CACHE.get(r)?.get(e.tagName),o);else{const a=F(r,"PROPERTIES"),s=F(r,"GLOBAL"),i=F(r,e.tagName);!1===R.has(r)&&x(r,s);const l=[a,s,i];q(n,l,t.encroachCss),!0===t.cache&&(!1===f.A11yUi.CSS_STYLE_CACHE.has(r)&&f.A11yUi.CSS_STYLE_CACHE.set(r,new Map),f.A11yUi.CSS_STYLE_CACHE.get(r)?.set(e.tagName,l)),z(e,n,l,o)}},z=(e,t,o,r)=>{const n=performance.now();if(H(t),P(t,o),Q(e),r(),f.A11yUi.PERFORMANCE_MEASURES.has(e.tagName)){const t=f.A11yUi.PERFORMANCE_MEASURES.get(e.tagName);t.count+=1,t.totalTime+=performance.now()-n}else f.A11yUi.PERFORMANCE_MEASURES.set(e.tagName,{count:1,totalTime:performance.now()-n})},D=e=>{const t=f.A11yUi.STYLING_TASK_QUEUE.get(e);if(t){const{resetCss:o,themeDetails:r}=t;U(e,r,o),Q(e)}};let B=e=>{const t=setTimeout(()=>{clearTimeout(t),e.classList.contains("hydrated")?D(e):B(e)},$)};const J={attributes:!0,attributeFilter:["class"],childList:!1,subtree:!1},K={attributes:!0,attributeFilter:[],childList:!1,subtree:!1},W=C?new MutationObserver((e,t)=>{for(const o of e){const e=o.target;e.classList.contains("hydrated")&&(D(e),t.observe(e,K))}}):null;W&&(B=e=>W.observe(e,J),_=()=>{});let Y=e=>{const t=getComputedStyle(e).getPropertyValue("--theme-visibility-delay").trim();if(t.endsWith("ms"))return parseFloat(t);if(t.endsWith("s"))return 1e3*parseFloat(t);{const e=parseFloat(t);return isNaN(e)?0:e}};f.A11yUi.IS_TEST_ENVIRONMENT&&(Y=()=>0);const G=(e,t)=>{e.style.setProperty("visibility",t),e.dataset.themed=""},V=(e,t)=>{const o=e.style.visibility||null;f.A11yUi.STYLING_TASK_QUEUE.set(e,{resetCss:()=>{const t=Y(e);t>0?setTimeout(()=>{G(e,o)},t):G(e,o)},themeDetails:t}),e.style.setProperty("visibility","hidden","important"),B(e)},Q=e=>{f.A11yUi.STYLING_TASK_QUEUE.delete(e),_()},X=(e,t)=>{V(e,{...f.A11yUi.Theme,...t})};class Z{Prefix;Key;Tag;createTheme=(e,t)=>l(e,t);createTranslation=(e,t)=>s(e,t);constructor(e,t,o){this.Prefix=e,this.Key=Object.getOwnPropertyNames(t),this.Tag=Object.getOwnPropertyNames(o)}}var ee,te;!function(e){e[e.error=0]="error",e[e.warning=1]="warning",e[e.info=2]="info",e[e.success=3]="success",e[e.message=4]="message",e[e.close=5]="close",e[e["form-description"]=6]="form-description",e[e.of=7]="of",e[e.characters=8]="characters",e[e.new=9]="new",e[e["no-entries"]=10]="no-entries",e[e["change-order"]=11]="change-order",e[e["action-running"]=12]="action-running",e[e["action-done"]=13]="action-done",e[e["page-first"]=14]="page-first",e[e["page-back"]=15]="page-back",e[e["page-next"]=16]="page-next",e[e["page-last"]=17]="page-last",e[e["entries-per-site"]=18]="entries-per-site",e[e["page-current"]=19]="page-current",e[e["page-selected"]=20]="page-selected",e[e["page-per-site"]=21]="page-per-site",e[e["logo-description"]=22]="logo-description",e[e["open-link-in-tab"]=23]="open-link-in-tab",e[e["kolibri-logo"]=24]="kolibri-logo"}(ee||(ee={})),function(e){e[e.abbr=0]="abbr",e[e.accordion=1]="accordion",e[e.alert=2]="alert",e[e.avatar=3]="avatar",e[e.badge=4]="badge",e[e.breadcrumb=5]="breadcrumb",e[e.button=6]="button",e[e["button-link"]=7]="button-link",e[e.card=8]="card",e[e.combobox=9]="combobox",e[e.details=10]="details",e[e.drawer=11]="drawer",e[e.form=12]="form",e[e.heading=13]="heading",e[e.icon=14]="icon",e[e.image=15]="image",e[e["input-checkbox"]=16]="input-checkbox",e[e["input-color"]=17]="input-color",e[e["input-date"]=18]="input-date",e[e["input-email"]=19]="input-email",e[e["input-file"]=20]="input-file",e[e["input-number"]=21]="input-number",e[e["input-password"]=22]="input-password",e[e["input-radio"]=23]="input-radio",e[e["input-range"]=24]="input-range",e[e["input-text"]=25]="input-text",e[e.kolibri=26]="kolibri",e[e.link=27]="link",e[e["link-button"]=28]="link-button",e[e.logo=29]="logo",e[e.modal=30]="modal",e[e.nav=31]="nav",e[e.pagination=32]="pagination",e[e["popover-button"]=33]="popover-button",e[e.progress=34]="progress",e[e.quote=35]="quote",e[e.select=36]="select",e[e["single-select"]=37]="single-select",e[e["skip-nav"]=38]="skip-nav",e[e.spin=39]="spin",e[e["split-button"]=40]="split-button",e[e.symbol=41]="symbol",e[e.table=42]="table",e[e["table-stateful"]=43]="table-stateful",e[e["table-stateless"]=44]="table-stateless",e[e.tabs=45]="tabs",e[e.textarea=46]="textarea",e[e["toast-container"]=47]="toast-container",e[e.toolbar=48]="toolbar",e[e.tooltip=49]="tooltip",e[e.tree=50]="tree",e[e["tree-item"]=51]="tree-item"}(te||(te={}));const ne=()=>"undefined"!=typeof window?window:{},re=()=>{const e=ne();return e&&void 0!==e.document?e.document:{}},oe=["development","production","test"];let ie="production";const ae=e=>{try{if(!oe.includes(e))throw new Error(`Invalid NODE_ENV value: ${e}. Expected one of ${oe.join(", ")}.`);ie=e}catch(e){ie="production"}},se=()=>{try{const e="undefined"!=typeof process&&process.env?process.env.NODE_ENV:void 0;if(e&&oe.includes(e))return e}catch(e){}return"production"};ae(se());let le=!1,ue=!1;const fe=()=>"development"===ie,ce=()=>"test"===ie,de=()=>!0===le,pe=e=>{le=!0===e},ve=()=>!0===ue,ge=e=>{ue=!0===e},he="color: white; background: #666; font-weight: bold; padding: .25em .5em; border-radius: 3px; border: 1px solid #000",ye=e=>Array.isArray(e)?e:[e],be=e=>`%c${e}`,me=(e,t)=>"string"==typeof t&&t.length>0?`${be(e)} | ${t}`:be(e),we=(e,t)=>[me(e,null==t?void 0:t.classifier),`${he};${(null==t?void 0:t.overwriteStyle)||""}`],ke=e=>fe()||!0===e;class Se{constructor(e){this.label=e}debug(e,t){ke(null==t?void 0:t.forceLog)&&console.debug(...we(this.label,t),...ye(e))}info(e,t){ke(null==t?void 0:t.forceLog)&&console.info(...we(this.label,t),...ye(e))}trace(e,t){ke(null==t?void 0:t.forceLog)&&console.trace(...we(this.label,t),...ye(e))}warn(e,t){ke(null==t?void 0:t.forceLog)&&console.warn(...we(this.label,t),...ye(e))}error(e,t){console.error(...we(this.label,t),...ye(e))}throw(e,t){if(ke(null==t?void 0:t.forceLog))throw new Error(...we(this.label,t),...ye(e))}}const Te=new Se("KoliBri"),Ee=new Set,Me=(e,t)=>{!1===Ee.has(e)&&(Ee.add(e),Te.debug([e].concat([]),{classifier:"✋ a11y",forceLog:!1,overwriteStyle:"; background-color: #09f"}))},Ae=new Set,Ne=(e,t)=>{!1===Ae.has(e)&&(Ae.add(e),Te.warn([e].concat([]),{classifier:"🔥 deprecated",forceLog:!1,overwriteStyle:"; background-color: #f00"}))},Oe=new Set,Le=(e,t)=>{(!1===Oe.has(e)||(null==t?void 0:t.force))&&(Oe.add(e),Te.debug([e].concat((null==t?void 0:t.details)||[]),{classifier:"💻 dev",forceLog:!!(null==t?void 0:t.force),overwriteStyle:"; background-color: #f09"}))},Re=(e,t)=>{!1===Oe.has(e)&&(Oe.add(e),Te.warn([e].concat([]),{classifier:"⚠️ dev",forceLog:!1,overwriteStyle:"; background-color: #f09"}))},je=new Set,Ie=(e,t=!1,o)=>{!1===je.has(e)&&(je.add(e),e+=!0===t?" ✅":"",Te.debug([e].concat([]),{classifier:"🌟 feature",forceLog:!1,overwriteStyle:"; background-color: #309"}))};Le("We appreciate any feedback, comments, screenshots, or demo links of an application based on KoliBri (kolibri@itzbund.de). Thank you!");const Ce=new Set,$e=(e,t)=>{!1===Ce.has(e)&&(Ce.add(e),Te.debug([e].concat([]),{classifier:"📑 ui/ux",forceLog:!1,overwriteStyle:"; background-color: #060;"}))},_e=()=>{Me('"Disabled" limits accessibility and visibility. From an accessibility perspective, we recommend using the readonly attribute instead of disabled.\n- https://uxdesign.cc/is-it-ok-to-grey-out-disabled-buttons-8afa74a0fae')},xe=e=>{"string"==typeof e&&""!==e||Me("Some structural elements, such as the nav tag, can be used multiple times on a webpage. To distinguish between similarly named structural elements, it is necessary to set an ARIA label.\n- https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Navigation_Role#accessibility_concerns")},Fe=(e,t=8)=>{t>7&&$e(`[${e}] Within navigation structures, it is recommended to use no more than 7 menu items.\n\nLink:\n- https://en.wikipedia.org/wiki/The_Magical_Number_Seven,_Plus_or_Minus_Two`)};var Ge,Ve,Xe,Ze,He=.2126,Pe=.7152,qe=.0722,Ue=1/12.92;function ze(e){return Math.pow((e+.055)/1.055,2.4)}function De(e){var t=e[0]/255,o=e[1]/255,r=e[2]/255,n=t<=.03928?t*Ue:ze(t),a=o<=.03928?o*Ue:ze(o),s=r<=.03928?r*Ue:ze(r);return n*He+a*Pe+s*qe}function Be(e){var t=255;8===(e=e.replace(/^#/,"")).length&&(t=parseInt(e.slice(6,8),16),e=e.substring(0,6)),4===e.length&&(t=parseInt(e.slice(3,4).repeat(2),16),e=e.substring(0,3)),3===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);var o=parseInt(e,16);return[o>>16,o>>8&255,255&o,t]}function Je(e,t){return(Math.max(e,t)+.05)/(Math.min(e,t)+.05)}function Ke(e,t){return Je(De(e),De(t))}function We(e,t){return Ke(Be(e),Be(t))}function Ye(e){return e>=7?"AAA":e>=4.5?"AA":e>=3?"AA Large":"Fail"}function Qe(){return Ve?Ge:(Ve=1,Ge={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]})}function et(){if(Ze)return Xe;Ze=1;var e=Qe();Xe=function(o){var r,n,a=[],s=1;if("string"==typeof o)if(o=o.toLowerCase(),e[o])a=e[o].slice(),n="rgb";else if("transparent"===o)s=0,n="rgb",a=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(o)){var i=o.slice(1);s=1,(u=i.length)<=4?(a=[parseInt(i[0]+i[0],16),parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16)],4===u&&(s=parseInt(i[3]+i[3],16)/255)):(a=[parseInt(i[0]+i[1],16),parseInt(i[2]+i[3],16),parseInt(i[4]+i[5],16)],8===u&&(s=parseInt(i[6]+i[7],16)/255)),a[0]||(a[0]=0),a[1]||(a[1]=0),a[2]||(a[2]=0),n="rgb"}else if(r=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(o)){var l=r[1],c="rgb"===l;n=i=l.replace(/a$/,"");var u="cmyk"===i?4:"gray"===i?1:3;a=r[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(e,o){if(/%$/.test(e))return o===u?parseFloat(e)/100:"rgb"===i?255*parseFloat(e)/100:parseFloat(e);if("h"===i[o]){if(/deg$/.test(e))return parseFloat(e);if(void 0!==t[e])return t[e]}return parseFloat(e)}),l===i&&a.push(1),s=c||void 0===a[u]?1:a[u],a=a.slice(0,u)}else o.length>10&&/[0-9](?:\s|\/)/.test(o)&&(a=o.match(/([0-9]+)/g).map(function(e){return parseFloat(e)}),n=o.match(/([a-z])/gi).join("").toLowerCase());else isNaN(o)?Array.isArray(o)||o.length?(a=[o[0],o[1],o[2]],n="rgb",s=4===o.length?o[3]:1):o instanceof Object&&(null!=o.r||null!=o.red||null!=o.R?(n="rgb",a=[o.r||o.red||o.R||0,o.g||o.green||o.G||0,o.b||o.blue||o.B||0]):(n="hsl",a=[o.h||o.hue||o.H||0,o.s||o.saturation||o.S||0,o.l||o.lightness||o.L||o.b||o.brightness]),s=o.a||o.alpha||o.opacity||1,null!=o.opacity&&(s/=100)):(n="rgb",a=[o>>>16,(65280&o)>>>8,255&o]);return{space:n,values:a,alpha:s}};var t={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};return Xe}var tt=et(),nt=e(tt);const rt={min:[0,0,0],max:[255,255,255]};var ot={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t,o,r,n,a,s=e[0]/360,i=e[1]/100,l=e[2]/100,c=0;if(0===i)return[a=255*l,a,a];for(t=2*l-(o=l<.5?l*(1+i):l+i-l*i),n=[0,0,0];c<3;)(r=s+1/3*-(c-1))<0?r++:r>1&&r--,a=6*r<1?t+6*(o-t)*r:2*r<1?o:3*r<2?t+(o-t)*(2/3-r)*6:t,n[c++]=255*a;return n}};rt.hsl=function(e){var t,o,r=e[0]/255,n=e[1]/255,a=e[2]/255,s=Math.min(r,n,a),i=Math.max(r,n,a),l=i-s;return i===s?t=0:r===i?t=(n-a)/l:n===i?t=2+(a-r)/l:a===i&&(t=4+(r-n)/l),(t=Math.min(60*t,360))<0&&(t+=360),o=(s+i)/2,[t,100*(i===s?0:o<=.5?l/(i+s):l/(2-i-s)),100*o]};var at,it={exports:{}};function st(){if(at)return it.exports;function e(e){var o=t(e);return 3==o.length?o.concat(255):(o[3]=Math.round(o[3]),o)}function t(e){return"string"==typeof e?function(e){if("red"==e)return[255,0,0];if("green"==e)return[0,255,0];if("blue"==e)return[0,0,255];if("black"==e)return[0,0,0];if("white"==e)return[255,255,255];if("cyan"==e)return[0,255,255];if("gray"==e)return[128,128,128];if("grey"==e)return[128,128,128];if("magenta"==e)return[255,0,255];if("pink"==e)return[255,0,255];if("yellow"==e)return[255,255,0]}(e=e.toLowerCase())||function(e){var t=e.replace(/^#/,""),o=t.length;if(3==o||4==o){var n=r(t[0]),a=r(t[1]),s=r(t[2]),i=3==o?255:r(t[3]);if(isNaN(n)||isNaN(a)||isNaN(s)||isNaN(i))return;return[n,a,s,i]}}(e)||function(e){var t=e.replace(/^#/,""),o=t.length;if(6==o||8==o){var n=r(t.slice(0,2)),a=r(t.slice(2,4)),s=r(t.slice(4,6)),i=6==o?255:r(t.slice(6,8));if(isNaN(n)||isNaN(a)||isNaN(s)||isNaN(i))return;return[n,a,s,i]}}(e)||function(e){if("rgb("==e.substr(0,4)){var t=(e=e.match(/^rgb\(([^)]+)\)/)[1]).split(/ *, */).map(Number),o=n(t[0],!0),r=n(t[1],!0),a=n(t[2],!0);if(-1!=o&&-1!=r&&-1!=a)return[o,r,a,255]}}(e)||function(e){if("rgba("==e.substr(0,5)){var t=(e=e.match(/^rgba\(([^)]+)\)/)[1]).split(/ *, */).map(Number),o=n(t[0],!0),r=n(t[1],!0),a=n(t[2],!0),s=n(255*t[3]);if(-1!=o&&-1!=r&&-1!=a&&-1!=s)return[o,r,a,s]}}(e)||[0,0,0,255]:function(e){if("[object Object]"===Object.prototype.toString.call(e)&&Object.getPrototypeOf(e)===Object.getPrototypeOf({})){var t=n(null!=e.r?e.r:null!=e.red?e.red:0,!0),o=n(null!=e.g?e.g:null!=e.green?e.green:0,!0),r=n(null!=e.b?e.b:null!=e.blue?e.blue:0,!0),a=n(null!=e.a?e.a:null!=e.alpha?e.alpha:255,!0);if(-1!=t&&-1!=o&&-1!=r&&-1!=a)return[t,o,r,a]}}(e)||function(e){if(Array.isArray(e)&&(3==e.length||4==e.length)){var t=n(e[0],!0),o=n(e[1],!0),r=n(e[2],!0),a=n(null!=e[3]?e[3]:255,!0);if(-1!=t&&-1!=o&&-1!=r&&-1!=a)return[t,o,r,a]}}(e)||function(e){if("number"==typeof e&&Math.floor(e)==e&&e<=4294967295&&e>=0){return[e>>16&255,e>>8&255,255&e,e>>24&255]}}(e)||[0,0,0,255]}function o(e){var t=e.toString(16);return 1==t.length?"0"+t:t}function r(e){return 1==e.length?parseInt(e+e,16):parseInt(e,16)}function n(e,t){return"number"!=typeof e||!0===t&&Math.floor(e)!==e?-1:e>=0&&e<=255?e:-1}return at=1,it.exports=e,it.exports.arr=e,it.exports.obj=function(e){var o=t(e);return{r:o[0],g:o[1],b:o[2],a:3==o.length?255:Math.round(o[3])}},it.exports.css=function(e){var o=t(e);3==o.length&&o.push(255);return 255==o[3]?"rgb("+o[0]+", "+o[1]+", "+o[2]+")":0==o[3]?"rgba("+o[0]+", "+o[1]+", "+o[2]+", 0)":"rgba("+o[0]+", "+o[1]+", "+o[2]+", "+String(o[3]/255).substr(1)+")"},it.exports.hex=function(e){var r=t(e);3==r.length&&r.push(255);var n=255==r[3],a=o(r[0]),s=o(r[1]),i=o(r[2]),l=(r=o(Math.round(r[3])),function(e,t,o,r){var n=["ff","00","11","22","33","44","55","66","77","88","99","aa","bb","cc","dd","ee"];return-1!=n.indexOf(e)&&-1!=n.indexOf(t)&&-1!=n.indexOf(o)&&-1!=n.indexOf(r)}(a,s,i,r));if(n)return l?"#"+a.charAt(0)+s.charAt(0)+i.charAt(0):"#"+a+s+i;return l?"#"+a.charAt(0)+s.charAt(0)+i.charAt(0)+r.charAt(0):"#"+a+s+i+r},it.exports.num=function(e){var o=t(e);3==o.length?o.push(255):o[3]=Math.round(o[3]);return(o[3]<<24>>>0|o[0]<<16|o[1]<<8|o[2])>>>0},it.exports}var ct,lt=st(),ut=e(lt),ft={};function dt(){return ct||(ct=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.querySelectorAll=void 0;const t=(e,t)=>{t.forEach(t=>{!1===e.has(t)&&e.add(t)})};e.querySelectorAll=(o,r=document)=>{if(r instanceof Document||r instanceof HTMLElement||r instanceof ShadowRoot){const n=new Set;t(n,r.querySelectorAll(o));const a=r.querySelectorAll('[class*="hydrated"]');for(let r=0;r<a.length;r++){const s=a[r].shadowRoot;t(n,"object"==typeof s&&null!==s?(0,e.querySelectorAll)(o,s):(0,e.querySelectorAll)(o,a[r]))}return Array.from(n)}throw new Error("The parameter document for the method querySelectorAll is not type of Document, HTMLElement or ShadowRoot.")}}(ft)),ft}var gt,pt=dt(),vt={};function ht(){return gt||(gt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.querySelector=void 0;e.querySelector=(t,o=document)=>{if(o instanceof Document||o instanceof HTMLElement||o instanceof ShadowRoot){let r=o.querySelector(t);if(null===r){const n=o.querySelectorAll('[class*="hydrated"]');for(let o=0;o<n.length;o++){const a=n[o].shadowRoot;if(r="object"==typeof a&&null!==a?(0,e.querySelector)(t,a):(0,e.querySelector)(t,n[o]),null!==r)break}}return r}throw new Error("The parameter document for the method querySelector is not type of Document, HTMLElement or ShadowRoot.")}}(vt)),vt}var yt=ht();const bt=/\[object Object\]/,mt=(e,t)=>{"string"==typeof e&&bt.test(e)||t()},wt=(e,t)=>{"string"==typeof e&&""===e||t()},kt=(e,t)=>{de()&&(Te.debug([e,t]),Te.debug("↑ We propagate the (submit) event to this target.")),Object.defineProperty(e,"target",{value:t,writable:!1})},St=e=>{var t,o,r;null===(t=e.nextHooks)||void 0===t||t.forEach((t,o)=>{var r;const n=t.get("beforePatch");"function"==typeof n&&n(null===(r=e.nextState)||void 0===r?void 0:r.get(o),e.nextState,e,o)}),(null===(o=e.nextState)||void 0===o?void 0:o.size)>0&&(e.state=Object.assign(Object.assign({},e.state),Object.fromEntries(e.nextState)),delete e.nextState,null===(r=e.nextHooks)||void 0===r||r.forEach((t,o)=>{const r=t.get("afterPatch");"function"==typeof r&&r(e.state[o],e.state,e,o)})),delete e.nextHooks},Tt=(e,t,o,r={})=>{var n,a;void 0===e.nextHooks&&(e.nextHooks=new Map),void 0===e.nextState&&(e.nextState=new Map);e.nextHooks.get(t)instanceof Map==!1&&e.nextHooks.set(t,new Map),"function"==typeof r.afterPatch&&(null===(n=e.nextHooks.get(t))||void 0===n||n.set("afterPatch",r.afterPatch)),"function"==typeof r.beforePatch&&(null===(a=e.nextHooks.get(t))||void 0===a||a.set("beforePatch",r.beforePatch)),e.nextState.set(t,o),St(e)},Et=(e,t,o,r)=>{Le(`[${e.constructor.name}] The property value: (${o}) for '${t}' is not valid. Allowed values are: ${Array.from(r).join(", ")}`)};function Mt(e,t,o,r,n,a={}){o(n)?Tt(e,t,n,a.hooks):void 0===n&&!0!==a.required&&o(a.defaultValue)?Tt(e,t,a.defaultValue,a.hooks):(a.required||r.add(null),Et(e,t,n,r))}const At=(e,t,o,r)=>{Mt(e,t,e=>"boolean"==typeof e,new Set(["Boolean {true, false}"]),o,r)},Nt=(e,t,o,r={})=>{const n="number"==typeof r.minLength?null==r?void 0:r.minLength:0;Mt(e,t,e=>"string"==typeof e&&e.length>=n&&(void 0===(null==r?void 0:r.maxLength)||e.length<=r.maxLength),new Set(["String"]),o,r)},Ot=(e,t,o,r)=>{Mt(e,t,e=>"number"==typeof e&&(void 0===(null==r?void 0:r.min)||"number"==typeof(null==r?void 0:r.min)&&e>=r.min)&&(void 0===(null==r?void 0:r.max)||"number"==typeof(null==r?void 0:r.max)&&e<=r.max),new Set(["Number"]),o,r)},Lt=(e,t,o,r,n=e=>e==e,a={})=>{wt(r,()=>{mt(r,()=>{void 0===r&&(r=[]);try{try{r=It(r)}catch(e){}if(Array.isArray(r)){const s=r.find(e=>!o(e));void 0===s&&n(r)?Tt(e,t,r,a.hooks):mt(s,()=>{throw Te.debug(s),new Error("↑ The schema for the property (_options) is not valid. The value will not be changed.")})}else mt(r,()=>{throw Te.debug(r),new Error("↑ The schema for the property (_options) is not valid. The value will not be changed.")})}catch(e){Te.debug(e)}})})},Rt=e=>{try{return JSON.stringify(e).replace(/"/g,"'")}catch(t){throw Te.warn(["stringifyJson",e]),Te.error("↑ The JSON could not be converted to a string. A stringifiable JSON is expected."),new Error}},jt=/^[{[]/,It=e=>{if("string"==typeof e)try{return JSON.parse(e)}catch(t){if(jt.test(e))try{return JSON.parse(e.replace(/'/g,'"'))}catch(t){Te.warn(["parseJson",e]),Te.error("↑ The JSON string could not be parsed. Make sure that single quotes in the text are escaped (&#8216;).")}}throw new Error},Ct=e=>"boolean"==typeof e?!0===e?"true":"false":void 0,$t=e=>"string"==typeof e?e:Ct(e),_t=(e,t)=>yt.querySelector(e,t||re()),xt=(e,t)=>pt.querySelectorAll(e,t||re());let Ft=null;const Ht=()=>(Ft=Ft||{backgroundColor:"#00000000",color:"#00000000",domNode:re().body,level:"Fail",score:1},Ft),Pt=/(\d+, ){3}0\)/,qt=(e,t=Ht())=>{const o=getComputedStyle(e),r=Pt.test(o.backgroundColor)?t.backgroundColor:ut.hex(o.backgroundColor),n=Pt.test(o.color)?t.color:ut.hex(o.color),a=We(r,n),s={backgroundColor:r,color:n,domNode:e,level:Ye(a),score:a};return a<4.5&&Te.error(["Color-Contrast-Error",{backgroundColor:s.backgroundColor,color:s.color,level:s.level,score:s.score},s.domNode]),s},Ut=(e,t=Ht())=>{t.domNode instanceof HTMLElement&&(t=qt(t.domNode,t));const o=t.domNode.querySelector(e);if(null===o){const o=t.domNode.querySelectorAll('[class="hydrated"]');for(let r=0;r<o.length&&(t.domNode=o[r],null===(t=Ut(e,t)).domNode);r++);return t}return qt(o,t)};class zt{static queryHtmlElementColors(e,t,o=!1,r=!0){let n=null;if(!0===o||!1===zt.executionLock)if(!1===o&&(zt.cache.clear(),zt.cache.set(t.domNode,t),zt.executionLock=!0,!0===r&&Te.debug("[KoliBriUtils] Color contrast analysis started...")),e===t.domNode)n=t;else{const o=new Set;if(t.domNode.shadowRoot){const e=t.domNode.shadowRoot.children;for(let t=0;t<e.length;t++)o.add(e[t])}const r=t.domNode;if("function"==typeof r.assignedNodes){const e=r.assignedNodes();for(let t=0;t<e.length;t++)e[t]instanceof HTMLElement&&o.add(e[t])}const a=t.domNode.children;for(let e=0;e<a.length;e++)o.add(a[e]);const s=Array.from(o);for(let o=0;o<s.length;o++){let r=zt.cache.get(s[o]);void 0===r&&(r=qt(s[o],t)),zt.cache.set(s[o],r);const a=zt.queryHtmlElementColors(e,r,!0,!1);if(null!==a){n=a;break}}}else Te.debug("[KoliBriUtils] Call aborted because a color contrast analysis is currently being executed.");return!1===o&&(!0===r&&Te.debug(`[KoliBriUtils] Color contrast analysis finished (${zt.cache.size} DOM elements are analysed).`),zt.executionLock=!1,zt.cache.clear()),n}}zt.executionLock=!1,zt.cache=new Map;class Dt{}Dt.getCssStyle=F,Dt.patchTheme=m,Dt.patchThemeTag=y,Dt.querySelector=_t,Dt.querySelectorAll=xt,Dt.stringifyJson=Rt;const Bt=e=>"object"==typeof e&&null!==e,Jt=(e,t=0)=>"string"==typeof e&&e.length>=t,Kt=e=>{if("object"!=typeof e||null===e)return Jt(e,1);for(const t in e)if(!1===Jt(t,1))return!1;return!0},Wt=new Event("StateChange");export{ve as $,re as A,pe as B,ge as C,ne as D,ce as E,Kt as F,Bt as G,Lt as H,Fe as I,de as J,ee as K,Te as L,kt as M,Ot as N,wt as O,_t as P,$t as Q,Ct as R,Wt as S,te as T,fe as U,L as V,qt as W,xt as X,Ut as Y,zt as Z,Rt as _,Dt as a,M as b,xe as c,At as d,Nt as e,Ie as f,Jt as g,Ne as h,Z as i,Le as j,nt as k,ot as l,ut as m,X as n,mt as o,It as p,We as q,rt as r,Tt as s,Me as t,Re as u,ae as v,Mt as w,e as x,$e as y,_e as z};