@public-ui/components 4.1.1 → 4.1.2-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 (848) hide show
  1. package/assets/kolicons/kolicons.eot +0 -0
  2. package/assets/kolicons/kolicons.ttf +0 -0
  3. package/assets/kolicons/kolicons.woff +0 -0
  4. package/assets/kolicons/kolicons.woff2 +0 -0
  5. package/assets/kolicons/style.css +8 -8
  6. package/custom-elements.json +3 -8
  7. package/dist/cjs/Alert-CjBcIt6-.js +4 -0
  8. package/dist/cjs/Alert-CjBcIt6-.js.map +1 -0
  9. package/dist/cjs/{Collapsible-C1TrB3xP.js → Collapsible-CdO3GIB5.js} +1 -1
  10. package/dist/cjs/{Collapsible-C1TrB3xP.js.map → Collapsible-CdO3GIB5.js.map} +1 -1
  11. package/dist/cjs/{CustomSuggestionsOptionsGroup-DjEJ7D2u.js → CustomSuggestionsOptionsGroup-BKMarAC5.js} +1 -1
  12. package/dist/cjs/{CustomSuggestionsOptionsGroup-DjEJ7D2u.js.map → CustomSuggestionsOptionsGroup-BKMarAC5.js.map} +1 -1
  13. package/dist/cjs/{FieldControlStateWrapper-2yGvk_YF.js → FieldControlStateWrapper-B1okmu43.js} +1 -1
  14. package/dist/cjs/{FieldControlStateWrapper-2yGvk_YF.js.map → FieldControlStateWrapper-B1okmu43.js.map} +1 -1
  15. package/dist/cjs/{FormFieldStateWrapper-QklB-18_.js → FormFieldStateWrapper-CXGoDdse.js} +1 -1
  16. package/dist/cjs/{FormFieldStateWrapper-QklB-18_.js.map → FormFieldStateWrapper-CXGoDdse.js.map} +1 -1
  17. package/dist/cjs/{Heading-BaoT3MhF.js → Heading-BTlGbi-P.js} +1 -1
  18. package/dist/cjs/{Heading-BaoT3MhF.js.map → Heading-BTlGbi-P.js.map} +1 -1
  19. package/dist/cjs/Input-6i7YjsUb.js +4 -0
  20. package/dist/cjs/{Input-gpYaP5oW.js.map → Input-6i7YjsUb.js.map} +1 -1
  21. package/dist/cjs/{InputStateWrapper-C1FQ_lUw.js → InputStateWrapper-D0y7aymk.js} +1 -1
  22. package/dist/cjs/{InputStateWrapper-C1FQ_lUw.js.map → InputStateWrapper-D0y7aymk.js.map} +1 -1
  23. package/dist/cjs/{InternalUnderlinedBadgeText-BR019eHx.js → InternalUnderlinedBadgeText-BTDcvNvY.js} +1 -1
  24. package/dist/cjs/{InternalUnderlinedBadgeText-BR019eHx.js.map → InternalUnderlinedBadgeText-BTDcvNvY.js.map} +1 -1
  25. package/dist/cjs/Span-DYw3WDPE.js +4 -0
  26. package/dist/cjs/Span-DYw3WDPE.js.map +1 -0
  27. package/dist/cjs/{app-globals-XxcUX9f4.js → app-globals-xP35r-Yl.js} +1 -1
  28. package/dist/cjs/{app-globals-XxcUX9f4.js.map → app-globals-xP35r-Yl.js.map} +1 -1
  29. package/dist/cjs/{associated.controller-Dww_bmMK.js → associated.controller-CWsCf1nv.js} +1 -1
  30. package/dist/cjs/{associated.controller-Dww_bmMK.js.map → associated.controller-CWsCf1nv.js.map} +1 -1
  31. package/dist/cjs/base-web-component-BxWzm0W7.js +4 -0
  32. package/dist/cjs/base-web-component-BxWzm0W7.js.map +1 -0
  33. package/dist/cjs/bem-registry-sHrhdj5F.js +4 -0
  34. package/dist/cjs/bem-registry-sHrhdj5F.js.map +1 -0
  35. package/dist/cjs/{bootstrap-DHJIRxFp.js → bootstrap-CT2-lyBv.js} +1 -1
  36. package/dist/cjs/{bootstrap-DHJIRxFp.js.map → bootstrap-CT2-lyBv.js.map} +1 -1
  37. package/dist/cjs/common-BDQKBMeS.js.map +1 -1
  38. package/dist/cjs/component-CkSSFoak.js +4 -0
  39. package/dist/cjs/component-CkSSFoak.js.map +1 -0
  40. package/dist/cjs/component-names--SvI3zRN.js +4 -0
  41. package/dist/cjs/{component-names-BcQqUL7D.js.map → component-names--SvI3zRN.js.map} +1 -1
  42. package/dist/cjs/{controller-BbvzgdxH.js → controller-B3-oY98o.js} +1 -1
  43. package/dist/cjs/{controller-BbvzgdxH.js.map → controller-B3-oY98o.js.map} +1 -1
  44. package/dist/cjs/{controller-Qxz2zfsf.js → controller-BMyN7m18.js} +1 -1
  45. package/dist/cjs/{controller-Qxz2zfsf.js.map → controller-BMyN7m18.js.map} +1 -1
  46. package/dist/cjs/{controller-DcGa3hI1.js → controller-CjgnaUWW.js} +1 -1
  47. package/dist/cjs/{controller-DcGa3hI1.js.map → controller-CjgnaUWW.js.map} +1 -1
  48. package/dist/cjs/controller-D6OB7i4d.js +4 -0
  49. package/dist/cjs/controller-D6OB7i4d.js.map +1 -0
  50. package/dist/cjs/{controller-LcBll4Xf.js → controller-DFIu7HVA.js} +1 -1
  51. package/dist/cjs/{controller-LcBll4Xf.js.map → controller-DFIu7HVA.js.map} +1 -1
  52. package/dist/cjs/controller-icon-DEya7nq0.js +4 -0
  53. package/dist/cjs/controller-icon-DEya7nq0.js.map +1 -0
  54. package/dist/cjs/{dev.utils-MxjJBX5i.js → dev.utils-wWFPJSRs.js} +1 -1
  55. package/dist/cjs/{dev.utils-MxjJBX5i.js.map → dev.utils-wWFPJSRs.js.map} +1 -1
  56. package/dist/cjs/{devtools-CCJeclGe.js → devtools-BdJwebgP.js} +1 -1
  57. package/dist/cjs/{devtools-CCJeclGe.js.map → devtools-BdJwebgP.js.map} +1 -1
  58. package/dist/cjs/index-DLaFKx5d.js +4 -0
  59. package/dist/cjs/index-DLaFKx5d.js.map +1 -0
  60. package/dist/cjs/index.cjs.js +1 -1
  61. package/dist/cjs/index.cjs.js.map +1 -1
  62. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  63. package/dist/cjs/kol-abbr.entry.cjs.js.map +1 -1
  64. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  65. package/dist/cjs/kol-accordion.entry.cjs.js.map +1 -1
  66. package/dist/cjs/kol-alert-wc.cjs.entry.js +1 -1
  67. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  68. package/dist/cjs/kol-alert.entry.cjs.js.map +1 -1
  69. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  70. package/dist/cjs/kol-avatar.entry.cjs.js.map +1 -1
  71. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  72. package/dist/cjs/kol-badge.entry.cjs.js.map +1 -1
  73. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  74. package/dist/cjs/kol-breadcrumb.entry.cjs.js.map +1 -1
  75. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  76. package/dist/cjs/kol-button-link.entry.cjs.js.map +1 -1
  77. package/dist/cjs/kol-button-wc.cjs.entry.js +1 -1
  78. package/dist/cjs/kol-button-wc.entry.cjs.js.map +1 -1
  79. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  80. package/dist/cjs/kol-button.entry.cjs.js.map +1 -1
  81. package/dist/cjs/kol-card-wc.cjs.entry.js +1 -1
  82. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  83. package/dist/cjs/kol-card.entry.cjs.js.map +1 -1
  84. package/dist/cjs/kol-click-button.cjs.entry.js +1 -1
  85. package/dist/cjs/kol-click-button.entry.cjs.js.map +1 -1
  86. package/dist/cjs/kol-combobox.cjs.entry.js +1 -1
  87. package/dist/cjs/kol-combobox.entry.cjs.js.map +1 -1
  88. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  89. package/dist/cjs/kol-details.entry.cjs.js.map +1 -1
  90. package/dist/cjs/kol-dialog-wc.cjs.entry.js +1 -1
  91. package/dist/cjs/kol-dialog.cjs.entry.js +1 -1
  92. package/dist/cjs/kol-dialog.entry.cjs.js.map +1 -1
  93. package/dist/cjs/kol-drawer.cjs.entry.js +1 -1
  94. package/dist/cjs/kol-drawer.entry.cjs.js.map +1 -1
  95. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  96. package/dist/cjs/kol-form.entry.cjs.js.map +1 -1
  97. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  98. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  99. package/dist/cjs/kol-icon.entry.cjs.js.map +1 -1
  100. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  101. package/dist/cjs/kol-image.entry.cjs.js.map +1 -1
  102. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  103. package/dist/cjs/kol-input-checkbox.entry.cjs.js.map +1 -1
  104. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  105. package/dist/cjs/kol-input-color.entry.cjs.js.map +1 -1
  106. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  107. package/dist/cjs/kol-input-date.entry.cjs.js.map +1 -1
  108. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  109. package/dist/cjs/kol-input-email.entry.cjs.js.map +1 -1
  110. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  111. package/dist/cjs/kol-input-file.entry.cjs.js.map +1 -1
  112. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  113. package/dist/cjs/kol-input-number.entry.cjs.js.map +1 -1
  114. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  115. package/dist/cjs/kol-input-password.entry.cjs.js.map +1 -1
  116. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  117. package/dist/cjs/kol-input-radio.entry.cjs.js.map +1 -1
  118. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  119. package/dist/cjs/kol-input-range.entry.cjs.js.map +1 -1
  120. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  121. package/dist/cjs/kol-input-text.entry.cjs.js.map +1 -1
  122. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  123. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  124. package/dist/cjs/kol-link-button.entry.cjs.js.map +1 -1
  125. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  126. package/dist/cjs/kol-link-wc.entry.cjs.js.map +1 -1
  127. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  128. package/dist/cjs/kol-link.entry.cjs.js.map +1 -1
  129. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  130. package/dist/cjs/kol-modal.entry.cjs.js.map +1 -1
  131. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  132. package/dist/cjs/kol-nav.entry.cjs.js.map +1 -1
  133. package/dist/cjs/kol-pagination-wc.cjs.entry.js +1 -1
  134. package/dist/cjs/kol-pagination-wc.entry.cjs.js.map +1 -1
  135. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  136. package/dist/cjs/kol-pagination.entry.cjs.js.map +1 -1
  137. package/dist/cjs/kol-popover-button-wc.cjs.entry.js +1 -1
  138. package/dist/cjs/kol-popover-button.cjs.entry.js +1 -1
  139. package/dist/cjs/kol-popover-button.entry.cjs.js.map +1 -1
  140. package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
  141. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  142. package/dist/cjs/kol-progress.entry.cjs.js.map +1 -1
  143. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  144. package/dist/cjs/kol-quote.entry.cjs.js.map +1 -1
  145. package/dist/cjs/kol-select-wc.cjs.entry.js +1 -1
  146. package/dist/cjs/kol-select-wc.entry.cjs.js.map +1 -1
  147. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  148. package/dist/cjs/kol-select.entry.cjs.js.map +1 -1
  149. package/dist/cjs/kol-single-select.cjs.entry.js +1 -1
  150. package/dist/cjs/kol-single-select.entry.cjs.js.map +1 -1
  151. package/dist/cjs/kol-skeleton.cjs.entry.js +1 -1
  152. package/dist/cjs/kol-skeleton.entry.cjs.js.map +1 -1
  153. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  154. package/dist/cjs/kol-skip-nav.entry.cjs.js.map +1 -1
  155. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  156. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  157. package/dist/cjs/kol-split-button.entry.cjs.js.map +1 -1
  158. package/dist/cjs/kol-table-settings-wc.cjs.entry.js +1 -1
  159. package/dist/cjs/kol-table-stateful.cjs.entry.js +1 -1
  160. package/dist/cjs/kol-table-stateful.entry.cjs.js.map +1 -1
  161. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js +1 -1
  162. package/dist/cjs/kol-table-stateless-wc.entry.cjs.js.map +1 -1
  163. package/dist/cjs/kol-table-stateless.cjs.entry.js +1 -1
  164. package/dist/cjs/kol-table-stateless.entry.cjs.js.map +1 -1
  165. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  166. package/dist/cjs/kol-tabs.entry.cjs.js.map +1 -1
  167. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  168. package/dist/cjs/kol-textarea.entry.cjs.js.map +1 -1
  169. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  170. package/dist/cjs/kol-toast-container.entry.cjs.js.map +1 -1
  171. package/dist/cjs/kol-toolbar.cjs.entry.js +1 -1
  172. package/dist/cjs/kol-toolbar.entry.cjs.js.map +1 -1
  173. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +1 -1
  174. package/dist/cjs/kol-tooltip-wc.entry.cjs.js.map +1 -1
  175. package/dist/cjs/kol-tree-item-wc.cjs.entry.js +1 -1
  176. package/dist/cjs/kol-tree-item-wc.entry.cjs.js.map +1 -1
  177. package/dist/cjs/kol-tree-item.cjs.entry.js +1 -1
  178. package/dist/cjs/kol-tree-item.entry.cjs.js.map +1 -1
  179. package/dist/cjs/kol-tree-wc.cjs.entry.js +1 -1
  180. package/dist/cjs/kol-tree.cjs.entry.js +1 -1
  181. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  182. package/dist/cjs/kolibri.cjs.js +1 -1
  183. package/dist/cjs/label-i8-ocdQf.js +4 -0
  184. package/dist/cjs/{label-CuEScldc.js.map → label-i8-ocdQf.js.map} +1 -1
  185. package/dist/cjs/loader.cjs.js +1 -1
  186. package/dist/cjs/src-BbMAojnU.js +4 -0
  187. package/dist/cjs/{src-B6RsOTtm.js.map → src-BbMAojnU.js.map} +1 -1
  188. package/dist/cjs/test-component.cjs.entry.js +1 -1
  189. package/dist/components/Alert.js +1 -1
  190. package/dist/components/Alert.js.map +1 -1
  191. package/dist/components/Span.js +1 -1
  192. package/dist/components/Span.js.map +1 -1
  193. package/dist/components/base-web-component.js +4 -0
  194. package/dist/components/base-web-component.js.map +1 -0
  195. package/dist/components/bem-registry.js +1 -1
  196. package/dist/components/bem-registry.js.map +1 -1
  197. package/dist/components/common.js.map +1 -1
  198. package/dist/components/component-names.js +1 -1
  199. package/dist/components/component-names.js.map +1 -1
  200. package/dist/components/component.js +4 -0
  201. package/dist/components/component.js.map +1 -0
  202. package/dist/components/controller-icon.js +1 -1
  203. package/dist/components/controller-icon.js.map +1 -1
  204. package/dist/components/controller.js +1 -1
  205. package/dist/components/controller2.js +1 -1
  206. package/dist/components/controller2.js.map +1 -1
  207. package/dist/components/kol-abbr.js +1 -1
  208. package/dist/components/kol-abbr.js.map +1 -1
  209. package/dist/components/kol-accordion.js +1 -1
  210. package/dist/components/kol-accordion.js.map +1 -1
  211. package/dist/components/kol-alert.js +1 -1
  212. package/dist/components/kol-alert.js.map +1 -1
  213. package/dist/components/kol-avatar.js +1 -1
  214. package/dist/components/kol-avatar.js.map +1 -1
  215. package/dist/components/kol-badge.js +1 -1
  216. package/dist/components/kol-badge.js.map +1 -1
  217. package/dist/components/kol-breadcrumb.js +1 -1
  218. package/dist/components/kol-breadcrumb.js.map +1 -1
  219. package/dist/components/kol-button-link.js +1 -1
  220. package/dist/components/kol-button-link.js.map +1 -1
  221. package/dist/components/kol-button.js +1 -1
  222. package/dist/components/kol-button.js.map +1 -1
  223. package/dist/components/kol-card-wc.js +1 -1
  224. package/dist/components/kol-card-wc.js.map +1 -1
  225. package/dist/components/kol-card.js +1 -1
  226. package/dist/components/kol-card.js.map +1 -1
  227. package/dist/components/kol-click-button.js +1 -1
  228. package/dist/components/kol-click-button.js.map +1 -1
  229. package/dist/components/kol-combobox.js +1 -1
  230. package/dist/components/kol-combobox.js.map +1 -1
  231. package/dist/components/kol-details.js +1 -1
  232. package/dist/components/kol-details.js.map +1 -1
  233. package/dist/components/kol-dialog-wc.js +1 -1
  234. package/dist/components/kol-dialog.js +1 -1
  235. package/dist/components/kol-dialog.js.map +1 -1
  236. package/dist/components/kol-drawer.js +1 -1
  237. package/dist/components/kol-drawer.js.map +1 -1
  238. package/dist/components/kol-form.js +1 -1
  239. package/dist/components/kol-form.js.map +1 -1
  240. package/dist/components/kol-heading.js +1 -1
  241. package/dist/components/kol-heading.js.map +1 -1
  242. package/dist/components/kol-icon.js +1 -1
  243. package/dist/components/kol-icon.js.map +1 -1
  244. package/dist/components/kol-image.js +1 -1
  245. package/dist/components/kol-image.js.map +1 -1
  246. package/dist/components/kol-input-checkbox.js +1 -1
  247. package/dist/components/kol-input-checkbox.js.map +1 -1
  248. package/dist/components/kol-input-color.js +1 -1
  249. package/dist/components/kol-input-color.js.map +1 -1
  250. package/dist/components/kol-input-date.js +1 -1
  251. package/dist/components/kol-input-date.js.map +1 -1
  252. package/dist/components/kol-input-email.js +1 -1
  253. package/dist/components/kol-input-email.js.map +1 -1
  254. package/dist/components/kol-input-file.js +1 -1
  255. package/dist/components/kol-input-file.js.map +1 -1
  256. package/dist/components/kol-input-number.js +1 -1
  257. package/dist/components/kol-input-number.js.map +1 -1
  258. package/dist/components/kol-input-password.js +1 -1
  259. package/dist/components/kol-input-password.js.map +1 -1
  260. package/dist/components/kol-input-radio.js +1 -1
  261. package/dist/components/kol-input-radio.js.map +1 -1
  262. package/dist/components/kol-input-range.js +1 -1
  263. package/dist/components/kol-input-range.js.map +1 -1
  264. package/dist/components/kol-input-text.js +1 -1
  265. package/dist/components/kol-input-text.js.map +1 -1
  266. package/dist/components/kol-link-button.js +1 -1
  267. package/dist/components/kol-link-button.js.map +1 -1
  268. package/dist/components/kol-link-wc.js +1 -1
  269. package/dist/components/kol-link-wc.js.map +1 -1
  270. package/dist/components/kol-link.js +1 -1
  271. package/dist/components/kol-link.js.map +1 -1
  272. package/dist/components/kol-modal.js +1 -1
  273. package/dist/components/kol-modal.js.map +1 -1
  274. package/dist/components/kol-nav.js +1 -1
  275. package/dist/components/kol-nav.js.map +1 -1
  276. package/dist/components/kol-pagination-wc.js +1 -1
  277. package/dist/components/kol-pagination-wc.js.map +1 -1
  278. package/dist/components/kol-pagination.js +1 -1
  279. package/dist/components/kol-pagination.js.map +1 -1
  280. package/dist/components/kol-popover-button.js +1 -1
  281. package/dist/components/kol-popover-button.js.map +1 -1
  282. package/dist/components/kol-progress.js +1 -1
  283. package/dist/components/kol-progress.js.map +1 -1
  284. package/dist/components/kol-quote.js +1 -1
  285. package/dist/components/kol-quote.js.map +1 -1
  286. package/dist/components/kol-select.js +1 -1
  287. package/dist/components/kol-select.js.map +1 -1
  288. package/dist/components/kol-single-select.js +1 -1
  289. package/dist/components/kol-single-select.js.map +1 -1
  290. package/dist/components/kol-skeleton.js +1 -1
  291. package/dist/components/kol-skeleton.js.map +1 -1
  292. package/dist/components/kol-skip-nav.js +1 -1
  293. package/dist/components/kol-skip-nav.js.map +1 -1
  294. package/dist/components/kol-split-button.js +1 -1
  295. package/dist/components/kol-split-button.js.map +1 -1
  296. package/dist/components/kol-table-settings-wc.js +1 -1
  297. package/dist/components/kol-table-stateful.js +1 -1
  298. package/dist/components/kol-table-stateful.js.map +1 -1
  299. package/dist/components/kol-table-stateless-wc.js +1 -1
  300. package/dist/components/kol-table-stateless-wc.js.map +1 -1
  301. package/dist/components/kol-table-stateless.js +1 -1
  302. package/dist/components/kol-table-stateless.js.map +1 -1
  303. package/dist/components/kol-tabs.js +1 -1
  304. package/dist/components/kol-tabs.js.map +1 -1
  305. package/dist/components/kol-textarea.js +1 -1
  306. package/dist/components/kol-textarea.js.map +1 -1
  307. package/dist/components/kol-toast-container.js +1 -1
  308. package/dist/components/kol-toast-container.js.map +1 -1
  309. package/dist/components/kol-toolbar.js +1 -1
  310. package/dist/components/kol-toolbar.js.map +1 -1
  311. package/dist/components/kol-tree-item-wc.js +1 -1
  312. package/dist/components/kol-tree-item-wc.js.map +1 -1
  313. package/dist/components/kol-tree-item.js +1 -1
  314. package/dist/components/kol-tree-item.js.map +1 -1
  315. package/dist/components/kol-tree-wc.js +1 -1
  316. package/dist/components/kol-tree.js +1 -1
  317. package/dist/components/kol-version.js +1 -1
  318. package/dist/components/label2.js +1 -1
  319. package/dist/components/src.js +1 -1
  320. package/dist/esm/Alert-Co3M8Msu.js +4 -0
  321. package/dist/esm/Alert-Co3M8Msu.js.map +1 -0
  322. package/dist/esm/{Collapsible-rF3-jm6_.js → Collapsible-yyG5QJZu.js} +1 -1
  323. package/dist/esm/{Collapsible-rF3-jm6_.js.map → Collapsible-yyG5QJZu.js.map} +1 -1
  324. package/dist/esm/{CustomSuggestionsOptionsGroup-BiV1SLtM.js → CustomSuggestionsOptionsGroup-Czk0ZiLj.js} +1 -1
  325. package/dist/{kolibri/CustomSuggestionsOptionsGroup-BiV1SLtM.js.map → esm/CustomSuggestionsOptionsGroup-Czk0ZiLj.js.map} +1 -1
  326. package/dist/esm/{FieldControlStateWrapper-Il3HD6ji.js → FieldControlStateWrapper-xxi1lo1B.js} +1 -1
  327. package/dist/{kolibri/FieldControlStateWrapper-Il3HD6ji.js.map → esm/FieldControlStateWrapper-xxi1lo1B.js.map} +1 -1
  328. package/dist/esm/{FormFieldStateWrapper--EBKaIYU.js → FormFieldStateWrapper-SHpz1-uU.js} +1 -1
  329. package/dist/{kolibri/FormFieldStateWrapper--EBKaIYU.js.map → esm/FormFieldStateWrapper-SHpz1-uU.js.map} +1 -1
  330. package/dist/esm/{Heading-B9rTijzp.js → Heading-kZ6MhSB6.js} +1 -1
  331. package/dist/{kolibri/Heading-B9rTijzp.js.map → esm/Heading-kZ6MhSB6.js.map} +1 -1
  332. package/dist/esm/Input-hufFe6Xk.js +4 -0
  333. package/dist/esm/{Input-N-fWHtGJ.js.map → Input-hufFe6Xk.js.map} +1 -1
  334. package/dist/esm/{InputStateWrapper-CCJNqzRI.js → InputStateWrapper-DLuQPnzA.js} +1 -1
  335. package/dist/{kolibri/InputStateWrapper-CCJNqzRI.js.map → esm/InputStateWrapper-DLuQPnzA.js.map} +1 -1
  336. package/dist/esm/{InternalUnderlinedBadgeText-t86A5_XQ.js → InternalUnderlinedBadgeText-D8R5i2GF.js} +1 -1
  337. package/dist/{kolibri/InternalUnderlinedBadgeText-t86A5_XQ.js.map → esm/InternalUnderlinedBadgeText-D8R5i2GF.js.map} +1 -1
  338. package/dist/esm/Span-BJlMbcGG.js +4 -0
  339. package/dist/esm/Span-BJlMbcGG.js.map +1 -0
  340. package/dist/esm/{app-globals-BQmkJtVQ.js → app-globals-B_-6I05n.js} +1 -1
  341. package/dist/esm/{app-globals-BQmkJtVQ.js.map → app-globals-B_-6I05n.js.map} +1 -1
  342. package/dist/esm/{associated.controller-CdEaJGVD.js → associated.controller-DCpxG_66.js} +1 -1
  343. package/dist/esm/{associated.controller-CdEaJGVD.js.map → associated.controller-DCpxG_66.js.map} +1 -1
  344. package/dist/esm/base-web-component-BLEh5IQP.js +4 -0
  345. package/dist/esm/base-web-component-BLEh5IQP.js.map +1 -0
  346. package/dist/esm/bem-registry-Tg7Vmbg2.js +4 -0
  347. package/dist/esm/bem-registry-Tg7Vmbg2.js.map +1 -0
  348. package/dist/esm/{bootstrap-DcH8Lr28.js → bootstrap-CyhVeeHa.js} +1 -1
  349. package/dist/esm/{bootstrap-DcH8Lr28.js.map → bootstrap-CyhVeeHa.js.map} +1 -1
  350. package/dist/esm/common-BIkdAxr0.js.map +1 -1
  351. package/dist/esm/component-DeLeNYiY.js +4 -0
  352. package/dist/esm/component-DeLeNYiY.js.map +1 -0
  353. package/dist/esm/{component-names-CqTpXVIM.js → component-names-BQrMLr68.js} +1 -1
  354. package/dist/esm/{component-names-CqTpXVIM.js.map → component-names-BQrMLr68.js.map} +1 -1
  355. package/dist/esm/controller-B98XgHpq.js +4 -0
  356. package/dist/esm/controller-B98XgHpq.js.map +1 -0
  357. package/dist/esm/{controller-INr--hn-.js → controller-CyhJmm0G.js} +1 -1
  358. package/dist/esm/{controller-INr--hn-.js.map → controller-CyhJmm0G.js.map} +1 -1
  359. package/dist/esm/{controller-zA71XEOV.js → controller-D2K5zD5B.js} +1 -1
  360. package/dist/{kolibri/controller-zA71XEOV.js.map → esm/controller-D2K5zD5B.js.map} +1 -1
  361. package/dist/esm/{controller-llnTh4a9.js → controller-Dl6YrjiT.js} +1 -1
  362. package/dist/esm/{controller-llnTh4a9.js.map → controller-Dl6YrjiT.js.map} +1 -1
  363. package/dist/esm/controller-icon-DoxS-6ps.js +4 -0
  364. package/dist/esm/controller-icon-DoxS-6ps.js.map +1 -0
  365. package/dist/esm/{controller-nyINduH8.js → controller-iukxVv51.js} +1 -1
  366. package/dist/{kolibri/controller-nyINduH8.js.map → esm/controller-iukxVv51.js.map} +1 -1
  367. package/dist/esm/{dev.utils-DEA-azs5.js → dev.utils-CvdNQgR5.js} +1 -1
  368. package/dist/esm/{dev.utils-DEA-azs5.js.map → dev.utils-CvdNQgR5.js.map} +1 -1
  369. package/dist/esm/{devtools-CAaKKqia.js → devtools-BTPIpFZm.js} +1 -1
  370. package/dist/esm/{devtools-CAaKKqia.js.map → devtools-BTPIpFZm.js.map} +1 -1
  371. package/dist/esm/index-CFwiLCrO.js +4 -0
  372. package/dist/esm/index-CFwiLCrO.js.map +1 -0
  373. package/dist/esm/index.js +1 -1
  374. package/dist/esm/index.js.map +1 -1
  375. package/dist/esm/kol-abbr.entry.js +1 -1
  376. package/dist/esm/kol-abbr.entry.js.map +1 -1
  377. package/dist/esm/kol-accordion.entry.js +1 -1
  378. package/dist/esm/kol-accordion.entry.js.map +1 -1
  379. package/dist/esm/kol-alert-wc.entry.js +1 -1
  380. package/dist/esm/kol-alert.entry.js +1 -1
  381. package/dist/esm/kol-alert.entry.js.map +1 -1
  382. package/dist/esm/kol-avatar.entry.js +1 -1
  383. package/dist/esm/kol-avatar.entry.js.map +1 -1
  384. package/dist/esm/kol-badge.entry.js +1 -1
  385. package/dist/esm/kol-badge.entry.js.map +1 -1
  386. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  387. package/dist/esm/kol-breadcrumb.entry.js.map +1 -1
  388. package/dist/esm/kol-button-link.entry.js +1 -1
  389. package/dist/esm/kol-button-link.entry.js.map +1 -1
  390. package/dist/esm/kol-button-wc.entry.js +1 -1
  391. package/dist/esm/kol-button-wc.entry.js.map +1 -1
  392. package/dist/esm/kol-button.entry.js +1 -1
  393. package/dist/esm/kol-button.entry.js.map +1 -1
  394. package/dist/esm/kol-card-wc.entry.js +1 -1
  395. package/dist/esm/kol-card.entry.js +1 -1
  396. package/dist/esm/kol-card.entry.js.map +1 -1
  397. package/dist/esm/kol-click-button.entry.js +1 -1
  398. package/dist/esm/kol-click-button.entry.js.map +1 -1
  399. package/dist/esm/kol-combobox.entry.js +1 -1
  400. package/dist/esm/kol-combobox.entry.js.map +1 -1
  401. package/dist/esm/kol-details.entry.js +1 -1
  402. package/dist/esm/kol-details.entry.js.map +1 -1
  403. package/dist/esm/kol-dialog-wc.entry.js +1 -1
  404. package/dist/esm/kol-dialog.entry.js +1 -1
  405. package/dist/esm/kol-dialog.entry.js.map +1 -1
  406. package/dist/esm/kol-drawer.entry.js +1 -1
  407. package/dist/esm/kol-drawer.entry.js.map +1 -1
  408. package/dist/esm/kol-form.entry.js +1 -1
  409. package/dist/esm/kol-form.entry.js.map +1 -1
  410. package/dist/esm/kol-heading.entry.js +1 -1
  411. package/dist/esm/kol-icon.entry.js +1 -1
  412. package/dist/esm/kol-icon.entry.js.map +1 -1
  413. package/dist/esm/kol-image.entry.js +1 -1
  414. package/dist/esm/kol-image.entry.js.map +1 -1
  415. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  416. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  417. package/dist/esm/kol-input-color.entry.js +1 -1
  418. package/dist/esm/kol-input-color.entry.js.map +1 -1
  419. package/dist/esm/kol-input-date.entry.js +1 -1
  420. package/dist/esm/kol-input-date.entry.js.map +1 -1
  421. package/dist/esm/kol-input-email.entry.js +1 -1
  422. package/dist/esm/kol-input-email.entry.js.map +1 -1
  423. package/dist/esm/kol-input-file.entry.js +1 -1
  424. package/dist/esm/kol-input-file.entry.js.map +1 -1
  425. package/dist/esm/kol-input-number.entry.js +1 -1
  426. package/dist/esm/kol-input-number.entry.js.map +1 -1
  427. package/dist/esm/kol-input-password.entry.js +1 -1
  428. package/dist/esm/kol-input-password.entry.js.map +1 -1
  429. package/dist/esm/kol-input-radio.entry.js +1 -1
  430. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  431. package/dist/esm/kol-input-range.entry.js +1 -1
  432. package/dist/esm/kol-input-range.entry.js.map +1 -1
  433. package/dist/esm/kol-input-text.entry.js +1 -1
  434. package/dist/esm/kol-input-text.entry.js.map +1 -1
  435. package/dist/esm/kol-kolibri.entry.js +1 -1
  436. package/dist/esm/kol-link-button.entry.js +1 -1
  437. package/dist/esm/kol-link-button.entry.js.map +1 -1
  438. package/dist/esm/kol-link-wc.entry.js +1 -1
  439. package/dist/esm/kol-link-wc.entry.js.map +1 -1
  440. package/dist/esm/kol-link.entry.js +1 -1
  441. package/dist/esm/kol-link.entry.js.map +1 -1
  442. package/dist/esm/kol-modal.entry.js +1 -1
  443. package/dist/esm/kol-modal.entry.js.map +1 -1
  444. package/dist/esm/kol-nav.entry.js +1 -1
  445. package/dist/esm/kol-nav.entry.js.map +1 -1
  446. package/dist/esm/kol-pagination-wc.entry.js +1 -1
  447. package/dist/esm/kol-pagination-wc.entry.js.map +1 -1
  448. package/dist/esm/kol-pagination.entry.js +1 -1
  449. package/dist/esm/kol-pagination.entry.js.map +1 -1
  450. package/dist/esm/kol-popover-button-wc.entry.js +1 -1
  451. package/dist/esm/kol-popover-button.entry.js +1 -1
  452. package/dist/esm/kol-popover-button.entry.js.map +1 -1
  453. package/dist/esm/kol-popover-wc.entry.js +1 -1
  454. package/dist/esm/kol-progress.entry.js +1 -1
  455. package/dist/esm/kol-progress.entry.js.map +1 -1
  456. package/dist/esm/kol-quote.entry.js +1 -1
  457. package/dist/esm/kol-quote.entry.js.map +1 -1
  458. package/dist/esm/kol-select-wc.entry.js +1 -1
  459. package/dist/esm/kol-select-wc.entry.js.map +1 -1
  460. package/dist/esm/kol-select.entry.js +1 -1
  461. package/dist/esm/kol-select.entry.js.map +1 -1
  462. package/dist/esm/kol-single-select.entry.js +1 -1
  463. package/dist/esm/kol-single-select.entry.js.map +1 -1
  464. package/dist/esm/kol-skeleton.entry.js +1 -1
  465. package/dist/esm/kol-skeleton.entry.js.map +1 -1
  466. package/dist/esm/kol-skip-nav.entry.js +1 -1
  467. package/dist/esm/kol-skip-nav.entry.js.map +1 -1
  468. package/dist/esm/kol-spin.entry.js +1 -1
  469. package/dist/esm/kol-split-button.entry.js +1 -1
  470. package/dist/esm/kol-split-button.entry.js.map +1 -1
  471. package/dist/esm/kol-table-settings-wc.entry.js +1 -1
  472. package/dist/esm/kol-table-stateful.entry.js +1 -1
  473. package/dist/esm/kol-table-stateful.entry.js.map +1 -1
  474. package/dist/esm/kol-table-stateless-wc.entry.js +1 -1
  475. package/dist/esm/kol-table-stateless-wc.entry.js.map +1 -1
  476. package/dist/esm/kol-table-stateless.entry.js +1 -1
  477. package/dist/esm/kol-table-stateless.entry.js.map +1 -1
  478. package/dist/esm/kol-tabs.entry.js +1 -1
  479. package/dist/esm/kol-tabs.entry.js.map +1 -1
  480. package/dist/esm/kol-textarea.entry.js +1 -1
  481. package/dist/esm/kol-textarea.entry.js.map +1 -1
  482. package/dist/esm/kol-toast-container.entry.js +1 -1
  483. package/dist/esm/kol-toast-container.entry.js.map +1 -1
  484. package/dist/esm/kol-toolbar.entry.js +1 -1
  485. package/dist/esm/kol-toolbar.entry.js.map +1 -1
  486. package/dist/esm/kol-tooltip-wc.entry.js +1 -1
  487. package/dist/esm/kol-tooltip-wc.entry.js.map +1 -1
  488. package/dist/esm/kol-tree-item-wc.entry.js +1 -1
  489. package/dist/esm/kol-tree-item-wc.entry.js.map +1 -1
  490. package/dist/esm/kol-tree-item.entry.js +1 -1
  491. package/dist/esm/kol-tree-item.entry.js.map +1 -1
  492. package/dist/esm/kol-tree-wc.entry.js +1 -1
  493. package/dist/esm/kol-tree.entry.js +1 -1
  494. package/dist/esm/kol-version.entry.js +1 -1
  495. package/dist/esm/kolibri.js +1 -1
  496. package/dist/esm/label-BIlKLRdz.js +4 -0
  497. package/dist/esm/{label-BWcVeIOr.js.map → label-BIlKLRdz.js.map} +1 -1
  498. package/dist/esm/loader.js +1 -1
  499. package/dist/esm/{src-9cntFd6X.js → src-B0oIi0x8.js} +1 -1
  500. package/dist/esm/{src-9cntFd6X.js.map → src-B0oIi0x8.js.map} +1 -1
  501. package/dist/esm/test-component.entry.js +1 -1
  502. package/dist/kolibri/Alert-Co3M8Msu.js +4 -0
  503. package/dist/kolibri/Alert-Co3M8Msu.js.map +1 -0
  504. package/dist/kolibri/{Collapsible-rF3-jm6_.js → Collapsible-yyG5QJZu.js} +1 -1
  505. package/dist/kolibri/{Collapsible-rF3-jm6_.js.map → Collapsible-yyG5QJZu.js.map} +1 -1
  506. package/dist/kolibri/{CustomSuggestionsOptionsGroup-BiV1SLtM.js → CustomSuggestionsOptionsGroup-Czk0ZiLj.js} +1 -1
  507. package/dist/{esm/CustomSuggestionsOptionsGroup-BiV1SLtM.js.map → kolibri/CustomSuggestionsOptionsGroup-Czk0ZiLj.js.map} +1 -1
  508. package/dist/kolibri/FieldControlStateWrapper-xxi1lo1B.js +4 -0
  509. package/dist/{esm/FieldControlStateWrapper-Il3HD6ji.js.map → kolibri/FieldControlStateWrapper-xxi1lo1B.js.map} +1 -1
  510. package/dist/kolibri/{FormFieldStateWrapper--EBKaIYU.js → FormFieldStateWrapper-SHpz1-uU.js} +1 -1
  511. package/dist/{esm/FormFieldStateWrapper--EBKaIYU.js.map → kolibri/FormFieldStateWrapper-SHpz1-uU.js.map} +1 -1
  512. package/dist/kolibri/{Heading-B9rTijzp.js → Heading-kZ6MhSB6.js} +1 -1
  513. package/dist/{esm/Heading-B9rTijzp.js.map → kolibri/Heading-kZ6MhSB6.js.map} +1 -1
  514. package/dist/kolibri/Input-hufFe6Xk.js +4 -0
  515. package/dist/kolibri/{Input-N-fWHtGJ.js.map → Input-hufFe6Xk.js.map} +1 -1
  516. package/dist/kolibri/{InputStateWrapper-CCJNqzRI.js → InputStateWrapper-DLuQPnzA.js} +1 -1
  517. package/dist/{esm/InputStateWrapper-CCJNqzRI.js.map → kolibri/InputStateWrapper-DLuQPnzA.js.map} +1 -1
  518. package/dist/kolibri/InternalUnderlinedBadgeText-D8R5i2GF.js +4 -0
  519. package/dist/{esm/InternalUnderlinedBadgeText-t86A5_XQ.js.map → kolibri/InternalUnderlinedBadgeText-D8R5i2GF.js.map} +1 -1
  520. package/dist/kolibri/Span-BJlMbcGG.js +4 -0
  521. package/dist/kolibri/Span-BJlMbcGG.js.map +1 -0
  522. package/dist/kolibri/app-globals-B_-6I05n.js +4 -0
  523. package/dist/kolibri/{app-globals-BQmkJtVQ.js.map → app-globals-B_-6I05n.js.map} +1 -1
  524. package/dist/kolibri/{associated.controller-CdEaJGVD.js → associated.controller-DCpxG_66.js} +1 -1
  525. package/dist/kolibri/{associated.controller-CdEaJGVD.js.map → associated.controller-DCpxG_66.js.map} +1 -1
  526. package/dist/kolibri/base-web-component-BLEh5IQP.js +4 -0
  527. package/dist/kolibri/base-web-component-BLEh5IQP.js.map +1 -0
  528. package/dist/kolibri/bem-registry-Tg7Vmbg2.js +4 -0
  529. package/dist/kolibri/bem-registry-Tg7Vmbg2.js.map +1 -0
  530. package/dist/kolibri/{bootstrap-DcH8Lr28.js → bootstrap-CyhVeeHa.js} +1 -1
  531. package/dist/kolibri/{bootstrap-DcH8Lr28.js.map → bootstrap-CyhVeeHa.js.map} +1 -1
  532. package/dist/kolibri/common-BIkdAxr0.js.map +1 -1
  533. package/dist/kolibri/component-DeLeNYiY.js +4 -0
  534. package/dist/kolibri/component-DeLeNYiY.js.map +1 -0
  535. package/dist/kolibri/{component-names-CqTpXVIM.js → component-names-BQrMLr68.js} +1 -1
  536. package/dist/kolibri/{component-names-CqTpXVIM.js.map → component-names-BQrMLr68.js.map} +1 -1
  537. package/dist/kolibri/controller-B98XgHpq.js +4 -0
  538. package/dist/kolibri/controller-B98XgHpq.js.map +1 -0
  539. package/dist/kolibri/{controller-INr--hn-.js → controller-CyhJmm0G.js} +1 -1
  540. package/dist/kolibri/{controller-INr--hn-.js.map → controller-CyhJmm0G.js.map} +1 -1
  541. package/dist/kolibri/{controller-zA71XEOV.js → controller-D2K5zD5B.js} +1 -1
  542. package/dist/{esm/controller-zA71XEOV.js.map → kolibri/controller-D2K5zD5B.js.map} +1 -1
  543. package/dist/kolibri/{controller-llnTh4a9.js → controller-Dl6YrjiT.js} +1 -1
  544. package/dist/kolibri/{controller-llnTh4a9.js.map → controller-Dl6YrjiT.js.map} +1 -1
  545. package/dist/kolibri/controller-icon-DoxS-6ps.js +4 -0
  546. package/dist/kolibri/controller-icon-DoxS-6ps.js.map +1 -0
  547. package/dist/kolibri/{controller-nyINduH8.js → controller-iukxVv51.js} +1 -1
  548. package/dist/{esm/controller-nyINduH8.js.map → kolibri/controller-iukxVv51.js.map} +1 -1
  549. package/dist/kolibri/{dev.utils-DEA-azs5.js → dev.utils-CvdNQgR5.js} +1 -1
  550. package/dist/kolibri/{dev.utils-DEA-azs5.js.map → dev.utils-CvdNQgR5.js.map} +1 -1
  551. package/dist/kolibri/{devtools-CAaKKqia.js → devtools-BTPIpFZm.js} +1 -1
  552. package/dist/kolibri/{devtools-CAaKKqia.js.map → devtools-BTPIpFZm.js.map} +1 -1
  553. package/dist/kolibri/{index-CkrSoIPD.js → index-CFwiLCrO.js} +1 -1
  554. package/dist/kolibri/index-CFwiLCrO.js.map +1 -0
  555. package/dist/kolibri/index.esm.js +1 -1
  556. package/dist/kolibri/index.esm.js.map +1 -1
  557. package/dist/kolibri/kol-abbr.entry.esm.js.map +1 -1
  558. package/dist/kolibri/kol-abbr.entry.js +1 -1
  559. package/dist/kolibri/kol-abbr.entry.js.map +1 -1
  560. package/dist/kolibri/kol-accordion.entry.esm.js.map +1 -1
  561. package/dist/kolibri/kol-accordion.entry.js +1 -1
  562. package/dist/kolibri/kol-accordion.entry.js.map +1 -1
  563. package/dist/kolibri/kol-alert-wc.entry.js +1 -1
  564. package/dist/kolibri/kol-alert-wc.entry.js.map +1 -1
  565. package/dist/kolibri/kol-alert.entry.esm.js.map +1 -1
  566. package/dist/kolibri/kol-alert.entry.js +1 -1
  567. package/dist/kolibri/kol-alert.entry.js.map +1 -1
  568. package/dist/kolibri/kol-avatar.entry.esm.js.map +1 -1
  569. package/dist/kolibri/kol-avatar.entry.js +1 -1
  570. package/dist/kolibri/kol-avatar.entry.js.map +1 -1
  571. package/dist/kolibri/kol-badge.entry.esm.js.map +1 -1
  572. package/dist/kolibri/kol-badge.entry.js +1 -1
  573. package/dist/kolibri/kol-badge.entry.js.map +1 -1
  574. package/dist/kolibri/kol-breadcrumb.entry.esm.js.map +1 -1
  575. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  576. package/dist/kolibri/kol-breadcrumb.entry.js.map +1 -1
  577. package/dist/kolibri/kol-button-link.entry.esm.js.map +1 -1
  578. package/dist/kolibri/kol-button-link.entry.js +1 -1
  579. package/dist/kolibri/kol-button-link.entry.js.map +1 -1
  580. package/dist/kolibri/kol-button-wc.entry.esm.js.map +1 -1
  581. package/dist/kolibri/kol-button-wc.entry.js +1 -1
  582. package/dist/kolibri/kol-button-wc.entry.js.map +1 -1
  583. package/dist/kolibri/kol-button.entry.esm.js.map +1 -1
  584. package/dist/kolibri/kol-button.entry.js +1 -1
  585. package/dist/kolibri/kol-button.entry.js.map +1 -1
  586. package/dist/kolibri/kol-card-wc.entry.js +1 -1
  587. package/dist/kolibri/kol-card-wc.entry.js.map +1 -1
  588. package/dist/kolibri/kol-card.entry.esm.js.map +1 -1
  589. package/dist/kolibri/kol-card.entry.js +1 -1
  590. package/dist/kolibri/kol-card.entry.js.map +1 -1
  591. package/dist/kolibri/kol-click-button.entry.esm.js.map +1 -1
  592. package/dist/kolibri/kol-click-button.entry.js +1 -1
  593. package/dist/kolibri/kol-click-button.entry.js.map +1 -1
  594. package/dist/kolibri/kol-combobox.entry.esm.js.map +1 -1
  595. package/dist/kolibri/kol-combobox.entry.js +1 -1
  596. package/dist/kolibri/kol-combobox.entry.js.map +1 -1
  597. package/dist/kolibri/kol-details.entry.esm.js.map +1 -1
  598. package/dist/kolibri/kol-details.entry.js +1 -1
  599. package/dist/kolibri/kol-details.entry.js.map +1 -1
  600. package/dist/kolibri/kol-dialog-wc.entry.js +1 -1
  601. package/dist/kolibri/kol-dialog.entry.esm.js.map +1 -1
  602. package/dist/kolibri/kol-dialog.entry.js +1 -1
  603. package/dist/kolibri/kol-dialog.entry.js.map +1 -1
  604. package/dist/kolibri/kol-drawer.entry.esm.js.map +1 -1
  605. package/dist/kolibri/kol-drawer.entry.js +1 -1
  606. package/dist/kolibri/kol-drawer.entry.js.map +1 -1
  607. package/dist/kolibri/kol-form.entry.esm.js.map +1 -1
  608. package/dist/kolibri/kol-form.entry.js +1 -1
  609. package/dist/kolibri/kol-form.entry.js.map +1 -1
  610. package/dist/kolibri/kol-heading.entry.js +1 -1
  611. package/dist/kolibri/kol-heading.entry.js.map +1 -1
  612. package/dist/kolibri/kol-icon.entry.esm.js.map +1 -1
  613. package/dist/kolibri/kol-icon.entry.js +1 -1
  614. package/dist/kolibri/kol-icon.entry.js.map +1 -1
  615. package/dist/kolibri/kol-image.entry.esm.js.map +1 -1
  616. package/dist/kolibri/kol-image.entry.js +1 -1
  617. package/dist/kolibri/kol-image.entry.js.map +1 -1
  618. package/dist/kolibri/kol-input-checkbox.entry.esm.js.map +1 -1
  619. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  620. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  621. package/dist/kolibri/kol-input-color.entry.esm.js.map +1 -1
  622. package/dist/kolibri/kol-input-color.entry.js +1 -1
  623. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  624. package/dist/kolibri/kol-input-date.entry.esm.js.map +1 -1
  625. package/dist/kolibri/kol-input-date.entry.js +1 -1
  626. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  627. package/dist/kolibri/kol-input-email.entry.esm.js.map +1 -1
  628. package/dist/kolibri/kol-input-email.entry.js +1 -1
  629. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  630. package/dist/kolibri/kol-input-file.entry.esm.js.map +1 -1
  631. package/dist/kolibri/kol-input-file.entry.js +1 -1
  632. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  633. package/dist/kolibri/kol-input-number.entry.esm.js.map +1 -1
  634. package/dist/kolibri/kol-input-number.entry.js +1 -1
  635. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  636. package/dist/kolibri/kol-input-password.entry.esm.js.map +1 -1
  637. package/dist/kolibri/kol-input-password.entry.js +1 -1
  638. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  639. package/dist/kolibri/kol-input-radio.entry.esm.js.map +1 -1
  640. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  641. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  642. package/dist/kolibri/kol-input-range.entry.esm.js.map +1 -1
  643. package/dist/kolibri/kol-input-range.entry.js +1 -1
  644. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  645. package/dist/kolibri/kol-input-text.entry.esm.js.map +1 -1
  646. package/dist/kolibri/kol-input-text.entry.js +1 -1
  647. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  648. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  649. package/dist/kolibri/kol-link-button.entry.esm.js.map +1 -1
  650. package/dist/kolibri/kol-link-button.entry.js +1 -1
  651. package/dist/kolibri/kol-link-button.entry.js.map +1 -1
  652. package/dist/kolibri/kol-link-wc.entry.esm.js.map +1 -1
  653. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  654. package/dist/kolibri/kol-link-wc.entry.js.map +1 -1
  655. package/dist/kolibri/kol-link.entry.esm.js.map +1 -1
  656. package/dist/kolibri/kol-link.entry.js +1 -1
  657. package/dist/kolibri/kol-link.entry.js.map +1 -1
  658. package/dist/kolibri/kol-modal.entry.esm.js.map +1 -1
  659. package/dist/kolibri/kol-modal.entry.js +1 -1
  660. package/dist/kolibri/kol-modal.entry.js.map +1 -1
  661. package/dist/kolibri/kol-nav.entry.esm.js.map +1 -1
  662. package/dist/kolibri/kol-nav.entry.js +1 -1
  663. package/dist/kolibri/kol-nav.entry.js.map +1 -1
  664. package/dist/kolibri/kol-pagination-wc.entry.esm.js.map +1 -1
  665. package/dist/kolibri/kol-pagination-wc.entry.js +1 -1
  666. package/dist/kolibri/kol-pagination-wc.entry.js.map +1 -1
  667. package/dist/kolibri/kol-pagination.entry.esm.js.map +1 -1
  668. package/dist/kolibri/kol-pagination.entry.js +1 -1
  669. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  670. package/dist/kolibri/kol-popover-button-wc.entry.js +1 -1
  671. package/dist/kolibri/kol-popover-button.entry.esm.js.map +1 -1
  672. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  673. package/dist/kolibri/kol-popover-button.entry.js.map +1 -1
  674. package/dist/kolibri/kol-popover-wc.entry.js +1 -1
  675. package/dist/kolibri/kol-progress.entry.esm.js.map +1 -1
  676. package/dist/kolibri/kol-progress.entry.js +1 -1
  677. package/dist/kolibri/kol-progress.entry.js.map +1 -1
  678. package/dist/kolibri/kol-quote.entry.esm.js.map +1 -1
  679. package/dist/kolibri/kol-quote.entry.js +1 -1
  680. package/dist/kolibri/kol-quote.entry.js.map +1 -1
  681. package/dist/kolibri/kol-select-wc.entry.esm.js.map +1 -1
  682. package/dist/kolibri/kol-select-wc.entry.js +1 -1
  683. package/dist/kolibri/kol-select-wc.entry.js.map +1 -1
  684. package/dist/kolibri/kol-select.entry.esm.js.map +1 -1
  685. package/dist/kolibri/kol-select.entry.js +1 -1
  686. package/dist/kolibri/kol-select.entry.js.map +1 -1
  687. package/dist/kolibri/kol-single-select.entry.esm.js.map +1 -1
  688. package/dist/kolibri/kol-single-select.entry.js +1 -1
  689. package/dist/kolibri/kol-single-select.entry.js.map +1 -1
  690. package/dist/kolibri/kol-skeleton.entry.esm.js.map +1 -1
  691. package/dist/kolibri/kol-skeleton.entry.js +1 -1
  692. package/dist/kolibri/kol-skeleton.entry.js.map +1 -1
  693. package/dist/kolibri/kol-skip-nav.entry.esm.js.map +1 -1
  694. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  695. package/dist/kolibri/kol-skip-nav.entry.js.map +1 -1
  696. package/dist/kolibri/kol-spin.entry.js +1 -1
  697. package/dist/kolibri/kol-split-button.entry.esm.js.map +1 -1
  698. package/dist/kolibri/kol-split-button.entry.js +1 -1
  699. package/dist/kolibri/kol-split-button.entry.js.map +1 -1
  700. package/dist/kolibri/kol-table-settings-wc.entry.js +1 -1
  701. package/dist/kolibri/kol-table-stateful.entry.esm.js.map +1 -1
  702. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  703. package/dist/kolibri/kol-table-stateful.entry.js.map +1 -1
  704. package/dist/kolibri/kol-table-stateless-wc.entry.esm.js.map +1 -1
  705. package/dist/kolibri/kol-table-stateless-wc.entry.js +1 -1
  706. package/dist/kolibri/kol-table-stateless-wc.entry.js.map +1 -1
  707. package/dist/kolibri/kol-table-stateless.entry.esm.js.map +1 -1
  708. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  709. package/dist/kolibri/kol-table-stateless.entry.js.map +1 -1
  710. package/dist/kolibri/kol-tabs.entry.esm.js.map +1 -1
  711. package/dist/kolibri/kol-tabs.entry.js +1 -1
  712. package/dist/kolibri/kol-tabs.entry.js.map +1 -1
  713. package/dist/kolibri/kol-textarea.entry.esm.js.map +1 -1
  714. package/dist/kolibri/kol-textarea.entry.js +1 -1
  715. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  716. package/dist/kolibri/kol-toast-container.entry.esm.js.map +1 -1
  717. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  718. package/dist/kolibri/kol-toast-container.entry.js.map +1 -1
  719. package/dist/kolibri/kol-toolbar.entry.esm.js.map +1 -1
  720. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  721. package/dist/kolibri/kol-toolbar.entry.js.map +1 -1
  722. package/dist/kolibri/kol-tooltip-wc.entry.esm.js.map +1 -1
  723. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  724. package/dist/kolibri/kol-tooltip-wc.entry.js.map +1 -1
  725. package/dist/kolibri/kol-tree-item-wc.entry.esm.js.map +1 -1
  726. package/dist/kolibri/kol-tree-item-wc.entry.js +1 -1
  727. package/dist/kolibri/kol-tree-item-wc.entry.js.map +1 -1
  728. package/dist/kolibri/kol-tree-item.entry.esm.js.map +1 -1
  729. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  730. package/dist/kolibri/kol-tree-item.entry.js.map +1 -1
  731. package/dist/kolibri/kol-tree-wc.entry.js +1 -1
  732. package/dist/kolibri/kol-tree.entry.js +1 -1
  733. package/dist/kolibri/kol-version.entry.js +1 -1
  734. package/dist/kolibri/kolibri.esm.js +1 -1
  735. package/dist/kolibri/label-BIlKLRdz.js +4 -0
  736. package/dist/kolibri/{label-BWcVeIOr.js.map → label-BIlKLRdz.js.map} +1 -1
  737. package/dist/kolibri/src-B0oIi0x8.js +4 -0
  738. package/dist/kolibri/{src-9cntFd6X.js.map → src-B0oIi0x8.js.map} +1 -1
  739. package/dist/kolibri/test-component.entry.js +1 -1
  740. package/dist/types/components/_skeleton/web-components/click-button/component.d.ts +2 -1
  741. package/dist/types/components/_skeleton/web-components/skeleton/component.d.ts +2 -1
  742. package/dist/types/components/avatar/component.d.ts +2 -1
  743. package/dist/types/components/icon/component.d.ts +13 -0
  744. package/dist/types/components/image/component.d.ts +2 -1
  745. package/dist/types/components/progress/component.d.ts +2 -1
  746. package/dist/types/components/quote/component.d.ts +2 -1
  747. package/dist/types/components.d.ts +4 -4
  748. package/dist/types/functional-components/IconButton/IconButton.d.ts +5 -2
  749. package/dist/types/functional-components/index.d.ts +1 -1
  750. package/dist/types/internal/functional-components/avatar/controller.d.ts +2 -1
  751. package/dist/types/internal/functional-components/base-controller.d.ts +10 -10
  752. package/dist/types/internal/functional-components/base-web-component.d.ts +5 -0
  753. package/dist/types/internal/functional-components/click-button/controller.d.ts +1 -0
  754. package/dist/types/internal/functional-components/generic-types.d.ts +4 -2
  755. package/dist/types/internal/functional-components/icon/api.d.ts +7 -0
  756. package/dist/types/internal/functional-components/icon/component.d.ts +4 -0
  757. package/dist/types/internal/functional-components/icon/controller.d.ts +9 -0
  758. package/dist/types/internal/functional-components/image/controller.d.ts +1 -0
  759. package/dist/types/internal/functional-components/progress/controller.d.ts +2 -1
  760. package/dist/types/internal/functional-components/quote/controller.d.ts +1 -0
  761. package/dist/types/internal/functional-components/skeleton/controller.d.ts +2 -2
  762. package/dist/types/internal/props/icons.d.ts +3 -0
  763. package/dist/types/internal/props/index.d.ts +1 -1
  764. package/doc/_skeleton.md +2 -2
  765. package/doc/icon.md +0 -7
  766. package/doc/single-select.md +1 -1
  767. package/package.json +1 -1
  768. package/vscode-custom-data.json +1 -1
  769. package/dist/cjs/Alert-DUKI4F6t.js +0 -4
  770. package/dist/cjs/Alert-DUKI4F6t.js.map +0 -1
  771. package/dist/cjs/Icon-Cjo0FQnO.js +0 -4
  772. package/dist/cjs/Icon-Cjo0FQnO.js.map +0 -1
  773. package/dist/cjs/Input-gpYaP5oW.js +0 -4
  774. package/dist/cjs/Span-C0FLp1D0.js +0 -4
  775. package/dist/cjs/Span-C0FLp1D0.js.map +0 -1
  776. package/dist/cjs/base-controller-p-KkQpDk.js +0 -4
  777. package/dist/cjs/base-controller-p-KkQpDk.js.map +0 -1
  778. package/dist/cjs/bem-registry-Nu8Olg0G.js +0 -4
  779. package/dist/cjs/bem-registry-Nu8Olg0G.js.map +0 -1
  780. package/dist/cjs/browser-BO94X5VC.js +0 -4
  781. package/dist/cjs/browser-BO94X5VC.js.map +0 -1
  782. package/dist/cjs/component-names-BcQqUL7D.js +0 -4
  783. package/dist/cjs/controller-FnKBpfim.js +0 -4
  784. package/dist/cjs/controller-FnKBpfim.js.map +0 -1
  785. package/dist/cjs/controller-icon-Bp_gYQ45.js +0 -4
  786. package/dist/cjs/controller-icon-Bp_gYQ45.js.map +0 -1
  787. package/dist/cjs/index-Do5QHQux.js +0 -4
  788. package/dist/cjs/index-Do5QHQux.js.map +0 -1
  789. package/dist/cjs/label-CuEScldc.js +0 -4
  790. package/dist/cjs/src-B6RsOTtm.js +0 -4
  791. package/dist/components/Icon.js +0 -4
  792. package/dist/components/Icon.js.map +0 -1
  793. package/dist/components/base-controller.js +0 -4
  794. package/dist/components/base-controller.js.map +0 -1
  795. package/dist/components/browser.js +0 -4
  796. package/dist/components/browser.js.map +0 -1
  797. package/dist/esm/Alert-w2MT71aB.js +0 -4
  798. package/dist/esm/Alert-w2MT71aB.js.map +0 -1
  799. package/dist/esm/Icon-BYiB0b6v.js +0 -4
  800. package/dist/esm/Icon-BYiB0b6v.js.map +0 -1
  801. package/dist/esm/Input-N-fWHtGJ.js +0 -4
  802. package/dist/esm/Span-ePfPZY-7.js +0 -4
  803. package/dist/esm/Span-ePfPZY-7.js.map +0 -1
  804. package/dist/esm/base-controller-Bkp0Z9l1.js +0 -4
  805. package/dist/esm/base-controller-Bkp0Z9l1.js.map +0 -1
  806. package/dist/esm/bem-registry-DRYZs7IX.js +0 -4
  807. package/dist/esm/bem-registry-DRYZs7IX.js.map +0 -1
  808. package/dist/esm/browser-KcXKIKON.js +0 -4
  809. package/dist/esm/browser-KcXKIKON.js.map +0 -1
  810. package/dist/esm/controller-BbvDlOS4.js +0 -4
  811. package/dist/esm/controller-BbvDlOS4.js.map +0 -1
  812. package/dist/esm/controller-icon-By1Ikt1k.js +0 -4
  813. package/dist/esm/controller-icon-By1Ikt1k.js.map +0 -1
  814. package/dist/esm/index-CkrSoIPD.js +0 -4
  815. package/dist/esm/index-CkrSoIPD.js.map +0 -1
  816. package/dist/esm/label-BWcVeIOr.js +0 -4
  817. package/dist/kolibri/Alert-w2MT71aB.js +0 -4
  818. package/dist/kolibri/Alert-w2MT71aB.js.map +0 -1
  819. package/dist/kolibri/FieldControlStateWrapper-Il3HD6ji.js +0 -4
  820. package/dist/kolibri/Icon-BYiB0b6v.js +0 -4
  821. package/dist/kolibri/Icon-BYiB0b6v.js.map +0 -1
  822. package/dist/kolibri/Input-N-fWHtGJ.js +0 -4
  823. package/dist/kolibri/InternalUnderlinedBadgeText-t86A5_XQ.js +0 -4
  824. package/dist/kolibri/Span-ePfPZY-7.js +0 -4
  825. package/dist/kolibri/Span-ePfPZY-7.js.map +0 -1
  826. package/dist/kolibri/app-globals-BQmkJtVQ.js +0 -4
  827. package/dist/kolibri/base-controller-Bkp0Z9l1.js +0 -4
  828. package/dist/kolibri/base-controller-Bkp0Z9l1.js.map +0 -1
  829. package/dist/kolibri/bem-registry-DRYZs7IX.js +0 -4
  830. package/dist/kolibri/bem-registry-DRYZs7IX.js.map +0 -1
  831. package/dist/kolibri/browser-KcXKIKON.js +0 -4
  832. package/dist/kolibri/browser-KcXKIKON.js.map +0 -1
  833. package/dist/kolibri/controller-BbvDlOS4.js +0 -4
  834. package/dist/kolibri/controller-BbvDlOS4.js.map +0 -1
  835. package/dist/kolibri/controller-icon-By1Ikt1k.js +0 -4
  836. package/dist/kolibri/controller-icon-By1Ikt1k.js.map +0 -1
  837. package/dist/kolibri/index-CkrSoIPD.js.map +0 -1
  838. package/dist/kolibri/label-BWcVeIOr.js +0 -4
  839. package/dist/kolibri/src-9cntFd6X.js +0 -4
  840. package/dist/types/components/icon/bem.d.ts +0 -3
  841. package/dist/types/components/icon/controller.d.ts +0 -11
  842. package/dist/types/components/icon/shadow.d.ts +0 -13
  843. package/dist/types/functional-components/Alert/bem.d.ts +0 -39
  844. package/dist/types/functional-components/Icon/Icon.d.ts +0 -11
  845. package/dist/types/functional-components/Icon/index.d.ts +0 -1
  846. package/dist/types/functional-components/Icon/tests/snapshot.test.d.ts +0 -1
  847. package/dist/types/functional-components/Span/IconHelper.d.ts +0 -6
  848. package/dist/types/internal/props/count.d.ts +0 -3
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";var common=require("./common-BDQKBMeS.js"),bootstrap=require("./bootstrap-DHJIRxFp.js");const validateName=(t,e,o)=>{common.watchString(t,"_name",e,o)},isAssociatedTagName=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 AssociatedInputController{constructor(t,e,o){var i,s,a,r;if(this.experimentalMode=common.getExperimentalMode(),this.setFormAssociatedValue=t=>{var e;const o=null===(e=this.formAssociated)||void 0===e?void 0:e.getAttribute("name");null!==o&&""!==o||common.devHint(` The form field (${this.type}) must have a name attribute to be form-associated. Please define the _name attribute.`);const i=this.tryToStringifyValue(t);this.syncValue(t,i,this.formAssociated),this.syncValue(t,i,this.syncToOwnInput)},this.component=t,this.host=this.findHostWithShadowRoot(o),this.type=e,(null===(i=bootstrap.getOptions())||void 0===i?void 0:i.reflectInputValues)&&isAssociatedTagName(null===(s=this.host)||void 0===s?void 0:s.tagName)&&t._name){switch(null===(a=this.host)||void 0===a||a.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===(r=this.host)||void 0===r||r.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,o){if(this.experimentalMode)try{if("boolean"!=typeof(o="object"==typeof o&&null!==o?JSON.stringify(o):o)&&"number"!=typeof o&&"string"!=typeof o)throw new Error("Invalid value type: "+typeof o);null==e||e.setAttribute(t,`${o}`)}catch(o){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 common.devWarning(`The form field raw value is not able to stringify! ${t}`),""}}syncValue(t,e,o){if(o)switch(this.type){case"file":o.files=t;break;case"select":o.querySelectorAll("option").forEach(t=>{o.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",""),o.appendChild(t)}});break;case"radio":"string"==typeof e&&(o.setAttribute("value",e),o.setAttribute("checked",""),o.value=e);break;default:"string"==typeof e?(o.setAttribute("value",e),o.value=e):(o.removeAttribute("value"),o.value="")}}validateName(t){validateName(this.component,t,{hooks:{afterPatch:()=>{this.setAttribute("name",this.formAssociated,this.component.state._name)}}}),void 0===t&&common.devHint("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)}}exports.AssociatedInputController=AssociatedInputController;
4
+ "use strict";var common=require("./common-BDQKBMeS.js"),bootstrap=require("./bootstrap-CT2-lyBv.js");const validateName=(t,e,o)=>{common.watchString(t,"_name",e,o)},isAssociatedTagName=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 AssociatedInputController{constructor(t,e,o){var i,s,a,r;if(this.experimentalMode=common.getExperimentalMode(),this.setFormAssociatedValue=t=>{var e;const o=null===(e=this.formAssociated)||void 0===e?void 0:e.getAttribute("name");null!==o&&""!==o||common.devHint(` The form field (${this.type}) must have a name attribute to be form-associated. Please define the _name attribute.`);const i=this.tryToStringifyValue(t);this.syncValue(t,i,this.formAssociated),this.syncValue(t,i,this.syncToOwnInput)},this.component=t,this.host=this.findHostWithShadowRoot(o),this.type=e,(null===(i=bootstrap.getOptions())||void 0===i?void 0:i.reflectInputValues)&&isAssociatedTagName(null===(s=this.host)||void 0===s?void 0:s.tagName)&&t._name){switch(null===(a=this.host)||void 0===a||a.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===(r=this.host)||void 0===r||r.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,o){if(this.experimentalMode)try{if("boolean"!=typeof(o="object"==typeof o&&null!==o?JSON.stringify(o):o)&&"number"!=typeof o&&"string"!=typeof o)throw new Error("Invalid value type: "+typeof o);null==e||e.setAttribute(t,`${o}`)}catch(o){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 common.devWarning(`The form field raw value is not able to stringify! ${t}`),""}}syncValue(t,e,o){if(o)switch(this.type){case"file":o.files=t;break;case"select":o.querySelectorAll("option").forEach(t=>{o.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",""),o.appendChild(t)}});break;case"radio":"string"==typeof e&&(o.setAttribute("value",e),o.setAttribute("checked",""),o.value=e);break;default:"string"==typeof e?(o.setAttribute("value",e),o.value=e):(o.removeAttribute("value"),o.value="")}}validateName(t){validateName(this.component,t,{hooks:{afterPatch:()=>{this.setAttribute("name",this.formAssociated,this.component.state._name)}}}),void 0===t&&common.devHint("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)}}exports.AssociatedInputController=AssociatedInputController;
@@ -1 +1 @@
1
- {"version":3,"file":"associated.controller-Dww_bmMK.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 {\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":["watchString","getExperimentalMode","devHint","getOptions","devWarning"],"mappings":";;;;;;;;AAgBO,MAAM,YAAY,GAAG,CAAC,SAAoC,EAAE,KAAoB,EAAE,OAA4B,KAAU;IAC9HA,kBAAW,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,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AAA,CAAC;AACF,QAAA,IAAI,OAAO,KAAK,KAAK,WAAW,EAAE;YACjCF,cAAO,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-CWsCf1nv.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 {\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":["watchString","getExperimentalMode","devHint","getOptions","devWarning"],"mappings":";;;;;;;;AAgBO,MAAM,YAAY,GAAG,CAAC,SAAoC,EAAE,KAAoB,EAAE,OAA4B,KAAU;IAC9HA,kBAAW,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;AAC1B,IAAA,IAAI,KAAK,gBAAgB;AACzB,IAAA,IAAI,KAAK,YAAY;AACrB,IAAA,IAAI,KAAK,mBAAmB;IAC5B,IAAI,KAAK,cAAc;MAEX,yBAAyB,CAAA;AAUrC,IAAA,WAAA,CAAmB,SAA4C,EAAE,IAAY,EAAE,IAAkB,EAAA;;AAThF,QAAA,IAAgB,CAAA,gBAAA,GAAGC,0BAAmB,EAAE;AAwGzC,QAAA,IAAA,CAAA,sBAAsB,GAAG,CAAC,QAAwB,KAAI;;AACrE,YAAA,MAAM,IAAI,GAAG,CAAA,EAAA,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}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ "use strict";var common=require("./common-BDQKBMeS.js");function createPropDefinition(e,t=()=>!0){return{normalize:e,validate:t,apply(e,t,r){if(null!=e)try{const r=this.normalize(e);this.validate(r)&&t(r)}catch(e){common.Log.debug(e)}else void 0!==r&&t(r)}}}function createDependentPropDefinition(e,t=()=>!0){return{normalize:e,validate:t,apply(e,t,r,o){if(null!=e)try{const o=this.normalize(e,r);this.validate(o,r)&&t(o)}catch(e){common.Log.debug(e)}else void 0!==o&&t(o)}}}function normalizeString(e){if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e||"bigint"==typeof e)return String(e);throw new Error(`Invalid string: ${e}`)}function normalizeNumber(e){if("number"==typeof e)return e;if("string"==typeof e){const t=Number(e);if(!isNaN(t))return t}throw new Error(`Invalid number: ${e}`)}const LOADING_OPTIONS=["eager","lazy"],LOADING_SET=new Set(LOADING_OPTIONS),loadingProp=createPropDefinition(e=>normalizeString(e),e=>LOADING_SET.has(e)),QUOTE_VARIANT_OPTIONS=["block","inline"],QUOTE_VARIANT_SET=new Set(QUOTE_VARIANT_OPTIONS),variantQuoteProp=createPropDefinition(e=>normalizeString(e),e=>QUOTE_VARIANT_SET.has(e));class BaseController{constructor(e,t=()=>{},r){this.defaultProps=e,this.setState=t,this.getState=r,this.rawProps={},this.renderProps=Object.assign({},e)}getDefaultProp(e){return this.defaultProps[e]}setRawProp(e,t){this.rawProps[e]=t}getRawProp(e){return this.rawProps[e]}setRenderProp(e,t){this.renderProps[e]=t}getRenderProp(e){return this.renderProps[e]}}class BaseWebComponent{constructor(){this.setState=(e,t)=>{this[e]=t},this.getState=e=>this[e]}}exports.BaseController=BaseController,exports.BaseWebComponent=BaseWebComponent,exports.createDependentPropDefinition=createDependentPropDefinition,exports.createPropDefinition=createPropDefinition,exports.loadingProp=loadingProp,exports.normalizeNumber=normalizeNumber,exports.normalizeString=normalizeString,exports.variantQuoteProp=variantQuoteProp;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base-web-component-BxWzm0W7.js","sources":["src/internal/props/helpers/factory.ts","src/internal/props/helpers/normalizers.ts","src/internal/props/loading.ts","src/internal/props/variant-quote.ts","src/internal/functional-components/base-controller.ts","src/internal/functional-components/base-web-component.ts"],"sourcesContent":["import { Log } from '../../../schema';\n\n/**\n * Definiert einen Prop-Typ mit internem und externem Typ.\n *\n * - K: der Property-Name\n * - TExternal: der externe Eingabe-Typ (Web Component)\n * - TInternal: der normalisierte Typ (Controller/FC), default = TExternal\n *\n * Phantom-Keys `__input_${K}` tragen den externen Typ auf Type-Ebene.\n * Der feste Phantom-Key `__propInternal__` trägt TInternal für eine zuverlässige Inferenz.\n */\nexport type Prop<K extends string, TExternal, TInternal> = {\n\t[P in K]: TInternal;\n} & {\n\t[P in K as `__input_${P}`]?: TExternal;\n} & {\n\treadonly __propInternal__?: TInternal;\n};\n\n/**\n * Shorthand for Prop when external and internal types are identical.\n *\n * - K: der Property-Name\n * - T: der Typ (verwendet für externe und interne Nutzung)\n */\nexport type SimpleProp<K extends string, T> = Prop<K, T, T>;\n\nexport type InternalPropValue<P extends Prop<string, unknown, unknown>> = NonNullable<P['__propInternal__']>;\n\nexport type PropDefinition<TInternal> = {\n\tnormalize: (value: unknown) => TInternal | never;\n\tvalidate: (value: TInternal) => boolean;\n\tapply: (value: unknown, callback: (normalized: TInternal) => void, defaultValue: TInternal) => void;\n};\n\nexport function createPropDefinition<P extends Prop<string, unknown, unknown>>(\n\tnormalize: (value: unknown) => InternalPropValue<P> | never,\n\tvalidate: (value: InternalPropValue<P>) => boolean = () => true,\n): PropDefinition<InternalPropValue<P>> {\n\treturn {\n\t\tnormalize,\n\t\tvalidate,\n\t\tapply(value, callback, defaultValue) {\n\t\t\tif (value === undefined || value === null) {\n\t\t\t\tif (defaultValue !== undefined) {\n\t\t\t\t\tcallback(defaultValue);\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tconst normalized = this.normalize(value);\n\t\t\t\tif (this.validate(normalized)) {\n\t\t\t\t\tcallback(normalized);\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\tLog.debug(e);\n\t\t\t}\n\t\t},\n\t};\n}\n\nexport type DependentPropDefinition<TInternal, TDeps> = {\n\tnormalize: (value: unknown, deps: TDeps) => TInternal | never;\n\tvalidate: (value: TInternal, deps: TDeps) => boolean;\n\tapply: (value: unknown, callback: (normalized: TInternal) => void, deps: TDeps, defaultValue: TInternal) => void;\n};\n\nexport function createDependentPropDefinition<P extends Prop<string, unknown, unknown>, TDeps>(\n\tnormalize: (value: unknown, deps: TDeps) => InternalPropValue<P> | never,\n\tvalidate: (value: InternalPropValue<P>, deps: TDeps) => boolean = () => true,\n): DependentPropDefinition<InternalPropValue<P>, TDeps> {\n\treturn {\n\t\tnormalize,\n\t\tvalidate,\n\t\tapply(value, callback, deps: TDeps, defaultValue) {\n\t\t\tif (value === undefined || value === null) {\n\t\t\t\tif (defaultValue !== undefined) {\n\t\t\t\t\tcallback(defaultValue);\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tconst normalized = this.normalize(value, deps);\n\t\t\t\tif (this.validate(normalized, deps)) {\n\t\t\t\t\tcallback(normalized);\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\tLog.debug(e);\n\t\t\t}\n\t\t},\n\t};\n}\n","import { isObject } from '../../../schema';\n\nexport function normalizeString(value?: unknown): string | never {\n\tif (typeof value === 'string') {\n\t\treturn value;\n\t}\n\tif (typeof value === 'number' || typeof value === 'boolean' || typeof value === 'bigint') {\n\t\treturn String(value);\n\t}\n\tthrow new Error(`Invalid string: ${value as string}`);\n}\n\nexport function normalizeInteger(value?: unknown): number | never {\n\tif (typeof value === 'number') {\n\t\treturn Number.isInteger(value) ? value : Math.round(value);\n\t}\n\tif (typeof value === 'string') {\n\t\tconst parsed = parseInt(value, 10);\n\t\tif (!isNaN(parsed)) {\n\t\t\treturn parsed;\n\t\t}\n\t}\n\tthrow new Error(`Invalid integer: ${value as string}`);\n}\n\nexport function normalizeNumber(value?: unknown): number | never {\n\tif (typeof value === 'number') {\n\t\treturn value;\n\t}\n\tif (typeof value === 'string') {\n\t\tconst parsed = Number(value);\n\t\tif (!isNaN(parsed)) {\n\t\t\treturn parsed;\n\t\t}\n\t}\n\tthrow new Error(`Invalid number: ${value as string}`);\n}\n\nexport function normalizeBoolean(value?: unknown): boolean | never {\n\tif (typeof value === 'boolean') {\n\t\treturn value;\n\t}\n\tif (typeof value === 'string') {\n\t\treturn value.toLowerCase() === 'true';\n\t}\n\tthrow new Error(`Invalid boolean: ${value as string}`);\n}\n\nexport function normalizeObject(value?: unknown): object | never {\n\tif (isObject(value)) {\n\t\treturn value as object;\n\t}\n\tif (typeof value === 'string') {\n\t\tconst parsed = JSON.parse(value) as unknown;\n\t\tif (isObject(parsed)) {\n\t\t\treturn parsed as object;\n\t\t}\n\t}\n\tthrow new Error(`Invalid object: ${value as string}`);\n}\n\nexport function normalizeArray(value?: unknown): unknown[] | never {\n\tif (isObject(value) && Array.isArray(value)) {\n\t\treturn value as unknown[];\n\t}\n\tif (typeof value === 'string') {\n\t\tconst parsed = JSON.parse(value) as unknown;\n\t\tif (isObject(parsed) && Array.isArray(parsed)) {\n\t\t\treturn parsed as unknown[];\n\t\t}\n\t}\n\tthrow new Error(`Invalid array: ${value as string}`);\n}\n","import type { SimpleProp } from './helpers/factory';\nimport { createPropDefinition } from './helpers/factory';\nimport { normalizeString } from './helpers/normalizers';\n\nconst LOADING_OPTIONS = ['eager', 'lazy'] as const;\nexport type LoadingType = (typeof LOADING_OPTIONS)[number];\nexport type LoadingProp = SimpleProp<'loading', LoadingType>;\n\nconst LOADING_SET: ReadonlySet<string> = new Set(LOADING_OPTIONS);\n\nexport const loadingProp = createPropDefinition<LoadingProp>(\n\t(value: unknown) => normalizeString(value) as LoadingType,\n\t(v) => LOADING_SET.has(v),\n);\n","import type { SimpleProp } from './helpers/factory';\nimport { createPropDefinition } from './helpers/factory';\nimport { normalizeString } from './helpers/normalizers';\n\nconst QUOTE_VARIANT_OPTIONS = ['block', 'inline'] as const;\nexport type QuoteVariantType = (typeof QUOTE_VARIANT_OPTIONS)[number];\nexport type VariantQuoteProp = SimpleProp<'variant', QuoteVariantType>;\n\nconst QUOTE_VARIANT_SET: ReadonlySet<string> = new Set(QUOTE_VARIANT_OPTIONS);\n\nexport const variantQuoteProp = createPropDefinition<VariantQuoteProp>(\n\t(value: unknown) => normalizeString(value) as QuoteVariantType,\n\t(v) => QUOTE_VARIANT_SET.has(v),\n);\n","import type { ComponentApi, GetStateFn, ResolvedInputProps, ResolvedProps, SetStateFn, StrictFields } from './generic-types';\n\nexport abstract class BaseController<Api extends ComponentApi> {\n\tprivate readonly rawProps: Partial<Record<string, unknown>> = {};\n\tprivate readonly renderProps: StrictFields<ResolvedProps<Api>>;\n\n\tpublic constructor(\n\t\tprotected readonly defaultProps: StrictFields<ResolvedProps<Api>>,\n\t\tprotected readonly setState: SetStateFn<Api> = () => {},\n\t\tprotected readonly getState?: GetStateFn<Api>,\n\t) {\n\t\tthis.renderProps = {\n\t\t\t...defaultProps,\n\t\t};\n\t}\n\n\tprotected getDefaultProp<K extends keyof ResolvedProps<Api>>(key: K): NonNullable<ResolvedProps<Api>[K]> {\n\t\treturn this.defaultProps[key] as NonNullable<ResolvedProps<Api>[K]>;\n\t}\n\n\tprotected setRawProp<K extends keyof ResolvedInputProps<Api>>(key: K, value: ResolvedInputProps<Api>[K] | undefined): void {\n\t\tthis.rawProps[key as string] = value;\n\t}\n\n\tprotected getRawProp<K extends keyof ResolvedInputProps<Api>>(key: K): ResolvedInputProps<Api>[K] | undefined {\n\t\treturn this.rawProps[key as string] as ResolvedInputProps<Api>[K] | undefined;\n\t}\n\n\tprotected setRenderProp<K extends keyof ResolvedProps<Api>>(key: K, value: StrictFields<ResolvedProps<Api>>[K]): void {\n\t\tthis.renderProps[key] = value;\n\t}\n\n\tpublic getRenderProp<K extends keyof ResolvedProps<Api>>(key: K): StrictFields<ResolvedProps<Api>>[K] {\n\t\treturn this.renderProps[key];\n\t}\n}\n","import type { ComponentApi, GetStateFn, InternalOf, SetStateFn } from './generic-types';\n\n/**\n * Base class for web components that provides a type-safe setState method.\n * Subclasses pass `this.setState` to their controller constructors, ensuring\n * that all state writes are validated against Api['States'] at compile time.\n */\nexport abstract class BaseWebComponent<Api extends ComponentApi> {\n\t/**\n\t * Sets a reactive @State field with type safety.\n\t * The key must be a valid state field name defined in Api['States'],\n\t * and the value must match its declared type.\n\t * Each call triggers a Stencil re-render.\n\t */\n\tpublic setState: SetStateFn<Api> = <K extends keyof InternalOf<NonNullable<Api['States']>>>(\n\t\tkey: K,\n\t\tvalue: InternalOf<NonNullable<Api['States']>>[K],\n\t): void => {\n\t\t(this as Record<string, unknown>)[key as string] = value;\n\t};\n\n\t/**\n\t * Reads a reactive @State field with type safety.\n\t * The key must be a valid state field name defined in Api['States'],\n\t * and it returns the current value with the correct type.\n\t */\n\tpublic getState: GetStateFn<Api> = <K extends keyof InternalOf<NonNullable<Api['States']>>>(key: K): InternalOf<NonNullable<Api['States']>>[K] => {\n\t\treturn (this as Record<string, unknown>)[key as string] as InternalOf<NonNullable<Api['States']>>[K];\n\t};\n}\n"],"names":["Log"],"mappings":";;;;;;;AAoCM,SAAU,oBAAoB,CACnC,SAA2D,EAC3D,QAAqD,GAAA,MAAM,IAAI,EAAA;IAE/D,OAAO;QACN,SAAS;QACT,QAAQ;AACR,QAAA,KAAK,CAAC,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAA;YAClC,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,EAAE;AAC1C,gBAAA,IAAI,YAAY,KAAK,SAAS,EAAE;oBAC/B,QAAQ,CAAC,YAAY,CAAC;;gBAEvB;;AAED,YAAA,IAAI;gBACH,MAAM,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK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AO,IAAI,CAAC,YAAY,CAAC,GAAG,CAAuC;;IAG1D,UAAU,CAA0C,GAAM,EAAE,KAA6C,EAAA;AAClH,QAAA,IAAI,CAAC,QAAQ,CAAC,GAAa,CAAC,GAAG,KAAK;;AAG3B,IAAA,UAAU,CAA0C,GAAM,EAAA;AACnE,QAAA,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAa,CAA2C;;IAGpE,aAAa,CAAqC,GAAM,EAAE,KAA0C,EAAA;AAC7G,QAAA,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,KAAK;;AAGvB,IAAA,aAAa,CAAqC,GAAM,EAAA;AAC9D,QAAA,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC;;AAE7B;;MC5BqB,gBAAgB,CAAA;AAAtC,IAAA,WAAA,GAAA;QAOQ,IAAA,CAAA,QAAQ,GAAoB,CAClC,GAAM,EACN,KAAgD,KACvC;AACR,YAAA,IAAgC,CAAC,GAAa,CAAC,GAAG,KAAK;AACzD,SAAC;AAOM,QAAA,IAAA,CAAA,QAAQ,GAAoB,CAAyD,GAAM,KAA+C;AAChJ,YAAA,OAAQ,IAAgC,CAAC,GAAa,CAA8C;AACrG,SAAC;;AACD;;;;;;;;;;;"}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ "use strict";var easyBem,hasRequiredEasyBem,common=require("./common-BDQKBMeS.js");function requireEasyBem(){return hasRequiredEasyBem?easyBem:(hasRequiredEasyBem=1,easyBem=function(e){return function(n,i){if(!n)return e;var r;"string"==typeof n?r=n:i=n;var o=e;return r&&(o+="__"+r),o+(i?Object.keys(i).reduce(function(e,n){var r=i[n];return r&&(e+=" "+("boolean"==typeof r?o+"--"+n:o+"--"+n+"_"+r)),e},""):"")}})}var easyBemExports=requireEasyBem(),a=common.getDefaultExportFromCjs(easyBemExports);function c(){const e=new Map,n=(n,i,r)=>{try{return e.get(n)(i,r)}catch{return e.set(n,a(n)).get(n)(i,r)}};return n.forBlock=e=>{const i=(i,r)=>n(e,i,r);return i.forElement=i=>r=>n(e,i,r),i},n}const bem=c(),BEM={"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"])},"kol-avatar":{elements:{image:{modifiers:null},initials:{modifiers:null}},modifiers:null},"kol-icon":{elements:{icon:{modifiers:null}},modifiers:null},"kol-quote":{elements:{blockquote:{modifiers:null},cite:{modifiers:null},figcaption:{modifiers:null},quote:{modifiers:null}},modifiers:new Set(["block","inline"])},"kol-skeleton":{elements:{actions:{modifiers:null},container:{modifiers:null},counter:{modifiers:null},name:{modifiers:null}},modifiers:new Set(["has-name","is-hidden"])},"kol-click-button":{elements:{label:{modifiers:null}},modifiers:null}};exports.BEM=BEM,exports.bem=bem;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bem-registry-sHrhdj5F.js","sources":["../../node_modules/.pnpm/easy-bem@1.1.1/node_modules/easy-bem/index.js","../../node_modules/.pnpm/typed-bem@1.0.2/node_modules/typed-bem/dist/browser.mjs","src/schema/bem-registry.ts"],"sourcesContent":["'use strict';\r\n\r\n/**\r\n * BEM class name factory.\r\n *\r\n * @typedef {Function} Bem\r\n * @param {String|Object} [elementOrMods] Element name or hash object with mods\r\n * @param {Object} [mods] Hash object with mods\r\n * @returns {String}\r\n */\r\n\r\n/**\r\n * Returns BEM class name factory.\r\n *\r\n * @param {String} componentName Block name\r\n * @returns {Bem}\r\n */\r\nmodule.exports = function bem(componentName) {\r\n return function (elementOrMods, mods) {\r\n if (!elementOrMods) {\r\n return componentName;\r\n }\r\n\r\n var element;\r\n\r\n if (typeof elementOrMods === 'string') {\r\n element = elementOrMods;\r\n } else {\r\n mods = elementOrMods;\r\n }\r\n\r\n var base = componentName;\r\n if (element) {\r\n base += '__' + element;\r\n }\r\n\r\n return base + (\r\n mods\r\n ? Object.keys(mods).reduce(function (result, name) {\r\n var value = mods[name];\r\n\r\n if (value) {\r\n result += ' ' + (\r\n typeof value === 'boolean'\r\n ? (base + '--' + name)\r\n : (base + '--' + name + '_' + value)\r\n );\r\n }\r\n\r\n return result;\r\n }, '')\r\n : ''\r\n );\r\n };\r\n}\r\n","import a from\"easy-bem\";function c(){const e=new Map,n=(t,o,r)=>{try{return e.get(t)(o,r)}catch{return e.set(t,a(t)).get(t)(o,r)}};return n.forBlock=t=>{const o=(r,s)=>n(t,r,s);return o.forElement=r=>s=>n(t,r,s),o},n}function f(...e){const n=new Set;for(const t of e)if(t)for(const o of t.split(/\\s+/))n.add(o);return[...n].join(\" \")}export{c as generateBemClassNames,f as uniqueClassNames};\n//# sourceMappingURL=browser.mjs.map\n","import { generateBemClassNames } from 'typed-bem';\n\n/**\n * Central BEM Schema Registry for all KoliBri Components\n *\n * This file serves as the single source of truth for all BEM class name structures\n * across the entire KoliBri component library. By centralizing component schemas here,\n * we ensure consistency, prevent duplication, and enable powerful tooling.\n *\n * Benefits:\n * - Type safety across all components\n * - Consistent BEM structure\n * - Single point of maintenance\n * - Automatic SCSS generation\n * - Better IDE support and autocomplete\n * - forBlock integration for component-specific generators\n */\n\n/**\n * Complete schema definition for all KoliBri components\n */\ntype KoliBriComponentsBemSchema = {\n\t'kol-alert': {\n\t\t/**\n\t\t * Here we define the elements we needed\n\t\t * to realize a minimal full featured alert\n\t\t * component (DOM).\n\t\t */\n\t\telements: {\n\t\t\tcontainer: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\ticon: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\theading: {\n\t\t\t\t/**\n\t\t\t\t * Some elements needs modifiers to\n\t\t\t\t * style them properly.\n\t\t\t\t */\n\t\t\t\tmodifiers: Set<'h0' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'>;\n\t\t\t};\n\t\t\tcontent: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\tcloser: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t};\n\t\t/**\n\t\t * Here we define the modifiers related to the\n\t\t * kol-alert component properties.\n\t\t */\n\t\tmodifiers: Set<'hasCloser' | 'type-default' | 'type-error' | 'type-info' | 'type-success' | 'type-warning' | 'variant-card' | 'variant-msg'>;\n\t};\n\t'kol-avatar': {\n\t\telements: {\n\t\t\timage: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\tinitials: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t};\n\t\tmodifiers: null;\n\t};\n\t'kol-icon': {\n\t\telements: {\n\t\t\ticon: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t};\n\t\tmodifiers: null;\n\t};\n\t'kol-quote': {\n\t\telements: {\n\t\t\tblockquote: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\tcite: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\tfigcaption: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\tquote: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t};\n\t\tmodifiers: Set<'block' | 'inline'>;\n\t};\n\t'kol-skeleton': {\n\t\telements: {\n\t\t\tcontainer: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\tname: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\tcounter: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\tactions: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t};\n\t\tmodifiers: Set<'has-name' | 'is-hidden'>;\n\t};\n\t'kol-click-button': {\n\t\telements: {\n\t\t\tlabel: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t};\n\t\tmodifiers: null;\n\t};\n};\n\n/**\n * Create the central BEM generator instance\n * This single instance is used across all components\n */\nexport const bem = generateBemClassNames<KoliBriComponentsBemSchema>();\n\n/**\n * Export the complete BEM schema for reuse\n * to generate SCSS files in themes.\n */\nconst BEM: KoliBriComponentsBemSchema = {\n\t'kol-alert': {\n\t\telements: {\n\t\t\tcloser: { modifiers: null },\n\t\t\theading: { modifiers: new Set(['h0', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6']) },\n\t\t\ticon: { modifiers: null },\n\t\t\tcontent: { modifiers: null },\n\t\t\tcontainer: { modifiers: null },\n\t\t},\n\t\tmodifiers: new Set(['hasCloser', 'type-default', 'type-error', 'type-info', 'type-success', 'type-warning', 'variant-card', 'variant-msg']),\n\t},\n\t'kol-avatar': {\n\t\telements: {\n\t\t\timage: { modifiers: null },\n\t\t\tinitials: { modifiers: null },\n\t\t},\n\t\tmodifiers: null,\n\t},\n\t'kol-icon': {\n\t\telements: {\n\t\t\ticon: { modifiers: null },\n\t\t},\n\t\tmodifiers: null,\n\t},\n\t'kol-quote': {\n\t\telements: {\n\t\t\tblockquote: { modifiers: null },\n\t\t\tcite: { modifiers: null },\n\t\t\tfigcaption: { modifiers: null },\n\t\t\tquote: { modifiers: null },\n\t\t},\n\t\tmodifiers: new Set(['block', 'inline']),\n\t},\n\t'kol-skeleton': {\n\t\telements: {\n\t\t\tactions: { modifiers: null },\n\t\t\tcontainer: { modifiers: null },\n\t\t\tcounter: { modifiers: null },\n\t\t\tname: { modifiers: null },\n\t\t},\n\t\tmodifiers: new Set(['has-name', 'is-hidden']),\n\t},\n\t'kol-click-button': {\n\t\telements: {\n\t\t\tlabel: { modifiers: null },\n\t\t},\n\t\tmodifiers: null,\n\t},\n};\n\nexport { BEM };\n"],"names":["generateBemClassNames"],"mappings":";;;;;;;;;;;;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAA,OAAc,GAAG,SAAS,GAAG,CAAC,aAAa,EAAE;AAC7C,KAAI,OAAO,UAAU,aAAa,EAAE,IAAI,EAAE;SAClC,IAAI,CAAC,aAAa,EAAE;aAChB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,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;AACzB,SAAA;AACD,QAAA,SAAS,EAAE,IAAI;AACf,KAAA;AACD,IAAA,WAAW,EAAE;AACZ,QAAA,QAAQ,EAAE;AACT,YAAA,UAAU,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;AAC/B,YAAA,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;AACzB,YAAA,UAAU,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;AAC/B,YAAA,KAAK,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;AAC1B,SAAA;QACD,SAAS,EAAE,IAAI,GAAG,CAAC,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;AACvC,KAAA;AACD,IAAA,cAAc,EAAE;AACf,QAAA,QAAQ,EAAE;AACT,YAAA,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;AAC5B,YAAA,SAAS,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;AAC9B,YAAA,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;AAC5B,YAAA,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;AACzB,SAAA;QACD,SAAS,EAAE,IAAI,GAAG,CAAC,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;AAC7C,KAAA;AACD,IAAA,kBAAkB,EAAE;AACnB,QAAA,QAAQ,EAAE;AACT,YAAA,KAAK,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;AAC1B,SAAA;AACD,QAAA,SAAS,EAAE,IAAI;AACf,KAAA;;;;;;","x_google_ignoreList":[0,1]}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";var common=require("./common-BDQKBMeS.js"),componentNames=require("./component-names-BcQqUL7D.js"),i18n=require("./i18n-yHKQt1gl.js");let options,initialized=!1;const bootstrap=async(o,i,e)=>{var n,t;const s="undefined"!=typeof process&&process.env?"production":void 0;common.setRuntimeMode((null==e?void 0:e.environment)||s||"production"),i18n.initializeI18n(null!==(t=null===(n=null==e?void 0:e.translation)||void 0===n?void 0:n.name)&&void 0!==t?t:"de",null==e?void 0:e.translations),(null==e?void 0:e.transformTagName)&&componentNames.setCustomTagNames(null==e?void 0:e.transformTagName);const a=await common.J(o,i,e);return initialized=!0,options=e,common.Log.info("Development mode active - Enhanced debugging features available"),a},register=bootstrap,isInitialized=()=>initialized,getOptions=()=>options;exports.bootstrap=bootstrap,exports.getOptions=getOptions,exports.isInitialized=isInitialized,exports.register=register;
4
+ "use strict";var common=require("./common-BDQKBMeS.js"),componentNames=require("./component-names--SvI3zRN.js"),i18n=require("./i18n-yHKQt1gl.js");let options,initialized=!1;const bootstrap=async(o,i,e)=>{var n,t;const s="undefined"!=typeof process&&process.env?"production":void 0;common.setRuntimeMode((null==e?void 0:e.environment)||s||"production"),i18n.initializeI18n(null!==(t=null===(n=null==e?void 0:e.translation)||void 0===n?void 0:n.name)&&void 0!==t?t:"de",null==e?void 0:e.translations),(null==e?void 0:e.transformTagName)&&componentNames.setCustomTagNames(null==e?void 0:e.transformTagName);const a=await common.J(o,i,e);return initialized=!0,options=e,common.Log.info("Development mode active - Enhanced debugging features available"),a},register=bootstrap,isInitialized=()=>initialized,getOptions=()=>options;exports.bootstrap=bootstrap,exports.getOptions=getOptions,exports.isInitialized=isInitialized,exports.register=register;
@@ -1 +1 @@
1
- {"version":3,"file":"bootstrap-DHJIRxFp.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":["setRuntimeMode","initializeI18n","setCustomTagNames","coreRegister","Log"],"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;IAC1GA,qBAAc,CAAC,CAAA,cAAc,KAAA,IAAA,IAAd,cAAc,KAAd,MAAA,GAAA,MAAA,GAAA,cAAc,CAAE,WAAW,KAAI,OAAO,IAAI,YAAY,CAAC;AAEtE,IAAAC,mBAAc,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;QACrCC,gCAAiB,CAAC,cAAc,KAAd,IAAA,IAAA,cAAc,uBAAd,cAAc,CAAE,gBAAgB,CAAC;;IAEpD,MAAM,uBAAuB,GAAG,MAAMC,QAAY,CAAC,MAAM,EAAE,OAAO,EAAE,cAAc,CAAC;IACnF,WAAW,GAAG,IAAI;IAClB,OAAO,GAAG,cAAc;AAGxB,IAAAC,UAAG,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-CT2-lyBv.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":["setRuntimeMode","initializeI18n","setCustomTagNames","coreRegister","Log"],"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;IAC1GA,qBAAc,CAAC,CAAA,cAAc,KAAA,IAAA,IAAd,cAAc,KAAd,MAAA,GAAA,MAAA,GAAA,cAAc,CAAE,WAAW,KAAI,OAAO,IAAI,YAAY,CAAC;AAEtE,IAAAC,mBAAc,CAAC,MAAA,CAAA,EAAA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