@public-ui/components 4.0.0-alpha.10 → 4.0.0-alpha.11

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 (696) hide show
  1. package/assets/kolicons/kolicons.eot +0 -0
  2. package/assets/kolicons/kolicons.json +27 -0
  3. package/assets/kolicons/kolicons.svg +87 -0
  4. package/assets/kolicons/kolicons.ttf +0 -0
  5. package/assets/kolicons/kolicons.woff +0 -0
  6. package/assets/kolicons/kolicons.woff2 +0 -0
  7. package/assets/kolicons/style.css +44 -0
  8. package/custom-elements.json +200 -51
  9. package/dist/cjs/Alert-BkYuUM0L.js +4 -0
  10. package/dist/cjs/Alert-BkYuUM0L.js.map +1 -0
  11. package/dist/cjs/Collapsible-ov83UGvt.js +4 -0
  12. package/dist/cjs/Collapsible-ov83UGvt.js.map +1 -0
  13. package/dist/cjs/{CustomSuggestionsOptionsGroup-PV1o7Gf2.js → CustomSuggestionsOptionsGroup-Cct2j3Ly.js} +1 -1
  14. package/dist/cjs/{CustomSuggestionsOptionsGroup-PV1o7Gf2.js.map → CustomSuggestionsOptionsGroup-Cct2j3Ly.js.map} +1 -1
  15. package/dist/cjs/{FieldControlStateWrapper-BkkfUr_I.js → FieldControlStateWrapper-qGeLw0Jk.js} +1 -1
  16. package/dist/cjs/{FieldControlStateWrapper-BkkfUr_I.js.map → FieldControlStateWrapper-qGeLw0Jk.js.map} +1 -1
  17. package/dist/cjs/{FormFieldStateWrapper-DhktlNf6.js → FormFieldStateWrapper-gMVtcnVF.js} +1 -1
  18. package/dist/cjs/{FormFieldStateWrapper-DhktlNf6.js.map → FormFieldStateWrapper-gMVtcnVF.js.map} +1 -1
  19. package/dist/cjs/{Heading-D3kN0oUk.js → Heading-B_MWU4Kt.js} +1 -1
  20. package/dist/cjs/{Heading-D3kN0oUk.js.map → Heading-B_MWU4Kt.js.map} +1 -1
  21. package/dist/cjs/Icon-BX_UYAFs.js +4 -0
  22. package/dist/cjs/{Icon-CqGTyXA0.js.map → Icon-BX_UYAFs.js.map} +1 -1
  23. package/dist/cjs/Input-LonZbQyt.js +4 -0
  24. package/dist/cjs/{Input-pFPV9dtW.js.map → Input-LonZbQyt.js.map} +1 -1
  25. package/dist/cjs/{InputStateWrapper-CDtZCjAS.js → InputStateWrapper-CKySI0o9.js} +1 -1
  26. package/dist/cjs/{InputStateWrapper-CDtZCjAS.js.map → InputStateWrapper-CKySI0o9.js.map} +1 -1
  27. package/dist/cjs/{InternalUnderlinedBadgeText-UsAAGMGc.js → InternalUnderlinedBadgeText-COqZWbZO.js} +1 -1
  28. package/dist/cjs/{InternalUnderlinedBadgeText-UsAAGMGc.js.map → InternalUnderlinedBadgeText-COqZWbZO.js.map} +1 -1
  29. package/dist/cjs/{Span-DNmPb0WA.js → Span-C9EnwcGL.js} +1 -1
  30. package/dist/cjs/{Span-DNmPb0WA.js.map → Span-C9EnwcGL.js.map} +1 -1
  31. package/dist/cjs/access-and-short-key-BExF929g.js.map +1 -1
  32. package/dist/cjs/{app-globals-Ccd_Qtcq.js → app-globals-kNX8JN_9.js} +1 -1
  33. package/dist/cjs/{app-globals-Ccd_Qtcq.js.map → app-globals-kNX8JN_9.js.map} +1 -1
  34. package/dist/cjs/{associated.controller-CggkZ_kk.js → associated.controller-xFFmYxjC.js} +1 -1
  35. package/dist/cjs/{associated.controller-CggkZ_kk.js.map → associated.controller-xFFmYxjC.js.map} +1 -1
  36. package/dist/cjs/{bootstrap-Cj2LYo25.js → bootstrap-PMd882_s.js} +1 -1
  37. package/dist/cjs/{bootstrap-Cj2LYo25.js.map → bootstrap-PMd882_s.js.map} +1 -1
  38. package/dist/cjs/component-names-CuI-0Pbo.js +4 -0
  39. package/dist/cjs/component-names-CuI-0Pbo.js.map +1 -0
  40. package/dist/cjs/{controller-yeNcq5Bi.js → controller-CnLyTfET.js} +1 -1
  41. package/dist/cjs/{controller-yeNcq5Bi.js.map → controller-CnLyTfET.js.map} +1 -1
  42. package/dist/cjs/{controller-Ct730Vkr.js → controller-CqC_JEAS.js} +1 -1
  43. package/dist/cjs/{controller-Ct730Vkr.js.map → controller-CqC_JEAS.js.map} +1 -1
  44. package/dist/cjs/{controller-BLXRNmNA.js → controller-Q-LXBPh4.js} +1 -1
  45. package/dist/cjs/{controller-BLXRNmNA.js.map → controller-Q-LXBPh4.js.map} +1 -1
  46. package/dist/cjs/{controller-Ch8NWF3z.js → controller-gAS9vmUZ.js} +1 -1
  47. package/dist/cjs/controller-gAS9vmUZ.js.map +1 -0
  48. package/dist/cjs/{controller-icon-8M5hrPYY.js → controller-icon-s1UvJJoF.js} +1 -1
  49. package/dist/cjs/controller-icon-s1UvJJoF.js.map +1 -0
  50. package/dist/cjs/{dev.utils-CBT80S8o.js → dev.utils-mNp047WX.js} +1 -1
  51. package/dist/cjs/{dev.utils-CBT80S8o.js.map → dev.utils-mNp047WX.js.map} +1 -1
  52. package/dist/cjs/{devtools-CueadebL.js → devtools-DwosJK2s.js} +1 -1
  53. package/dist/cjs/{devtools-CueadebL.js.map → devtools-DwosJK2s.js.map} +1 -1
  54. package/dist/cjs/{i18n-CRy4IuYJ.js → i18n-DO0ARe7Z.js} +1 -1
  55. package/dist/cjs/{i18n-CRy4IuYJ.js.map → i18n-DO0ARe7Z.js.map} +1 -1
  56. package/dist/cjs/i18n-yHKQt1gl.js +4 -0
  57. package/dist/cjs/i18n-yHKQt1gl.js.map +1 -0
  58. package/dist/cjs/{icons-CvKgcv20.js → icons-D_PtPRwb.js} +1 -1
  59. package/dist/cjs/{icons-CvKgcv20.js.map → icons-D_PtPRwb.js.map} +1 -1
  60. package/dist/cjs/index-BcsJJPV6.js +4 -0
  61. package/dist/cjs/{index-BJq3g2Kp.js.map → index-BcsJJPV6.js.map} +1 -1
  62. package/dist/cjs/index.cjs.js +1 -1
  63. package/dist/cjs/index.cjs.js.map +1 -1
  64. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  65. package/dist/cjs/kol-accordion.cjs.entry.js +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-avatar-wc.cjs.entry.js +1 -1
  69. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  70. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  71. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  72. package/dist/cjs/kol-breadcrumb.entry.cjs.js.map +1 -1
  73. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  74. package/dist/cjs/kol-button-link.entry.cjs.js.map +1 -1
  75. package/dist/cjs/kol-button-wc.cjs.entry.js +1 -1
  76. package/dist/cjs/kol-button-wc.entry.cjs.js.map +1 -1
  77. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  78. package/dist/cjs/kol-button.entry.cjs.js.map +1 -1
  79. package/dist/cjs/kol-card-wc.cjs.entry.js +1 -1
  80. package/dist/cjs/kol-card-wc.entry.cjs.js.map +1 -1
  81. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  82. package/dist/cjs/kol-combobox.cjs.entry.js +1 -1
  83. package/dist/cjs/kol-combobox.entry.cjs.js.map +1 -1
  84. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  85. package/dist/cjs/kol-details.entry.cjs.js.map +1 -1
  86. package/dist/cjs/kol-drawer.cjs.entry.js +1 -1
  87. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  88. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  89. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  90. package/dist/cjs/kol-icon.entry.cjs.js.map +1 -1
  91. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  92. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  93. package/dist/cjs/kol-input-checkbox.entry.cjs.js.map +1 -1
  94. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  95. package/dist/cjs/kol-input-color.entry.cjs.js.map +1 -1
  96. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  97. package/dist/cjs/kol-input-date.entry.cjs.js.map +1 -1
  98. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  99. package/dist/cjs/kol-input-email.entry.cjs.js.map +1 -1
  100. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  101. package/dist/cjs/kol-input-file.entry.cjs.js.map +1 -1
  102. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  103. package/dist/cjs/kol-input-number.entry.cjs.js.map +1 -1
  104. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  105. package/dist/cjs/kol-input-password.entry.cjs.js.map +1 -1
  106. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  107. package/dist/cjs/kol-input-radio.entry.cjs.js.map +1 -1
  108. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  109. package/dist/cjs/kol-input-range.entry.cjs.js.map +1 -1
  110. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  111. package/dist/cjs/kol-input-text.entry.cjs.js.map +1 -1
  112. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  113. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  114. package/dist/cjs/kol-link-button.entry.cjs.js.map +1 -1
  115. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  116. package/dist/cjs/kol-link-wc.entry.cjs.js.map +1 -1
  117. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  118. package/dist/cjs/kol-link.entry.cjs.js.map +1 -1
  119. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  120. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  121. package/dist/cjs/kol-nav.entry.cjs.js.map +1 -1
  122. package/dist/cjs/kol-pagination-wc.cjs.entry.js +1 -1
  123. package/dist/cjs/kol-pagination-wc.entry.cjs.js.map +1 -1
  124. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  125. package/dist/cjs/kol-pagination.entry.cjs.js.map +1 -1
  126. package/dist/cjs/kol-popover-button-wc.cjs.entry.js +1 -1
  127. package/dist/cjs/kol-popover-button-wc.entry.cjs.js.map +1 -1
  128. package/dist/cjs/kol-popover-button.cjs.entry.js +1 -1
  129. package/dist/cjs/kol-popover-button.entry.cjs.js.map +1 -1
  130. package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
  131. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  132. package/dist/cjs/kol-progress.entry.cjs.js.map +1 -1
  133. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  134. package/dist/cjs/kol-select-wc.cjs.entry.js +4 -0
  135. package/dist/cjs/kol-select-wc.entry.cjs.js.map +1 -0
  136. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  137. package/dist/cjs/kol-select.entry.cjs.js.map +1 -1
  138. package/dist/cjs/kol-single-select.cjs.entry.js +1 -1
  139. package/dist/cjs/kol-single-select.entry.cjs.js.map +1 -1
  140. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  141. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  142. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  143. package/dist/cjs/kol-split-button.entry.cjs.js.map +1 -1
  144. package/dist/cjs/kol-table-settings-wc.cjs.entry.js +1 -1
  145. package/dist/cjs/kol-table-settings-wc.entry.cjs.js.map +1 -1
  146. package/dist/cjs/kol-table-stateful.cjs.entry.js +1 -1
  147. package/dist/cjs/kol-table-stateful.entry.cjs.js.map +1 -1
  148. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js +1 -1
  149. package/dist/cjs/kol-table-stateless-wc.entry.cjs.js.map +1 -1
  150. package/dist/cjs/kol-table-stateless.cjs.entry.js +1 -1
  151. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  152. package/dist/cjs/kol-tabs.entry.cjs.js.map +1 -1
  153. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  154. package/dist/cjs/kol-textarea.entry.cjs.js.map +1 -1
  155. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  156. package/dist/cjs/kol-toast-container.entry.cjs.js.map +1 -1
  157. package/dist/cjs/kol-toolbar.cjs.entry.js +1 -1
  158. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +1 -1
  159. package/dist/cjs/kol-tree-item-wc.cjs.entry.js +1 -1
  160. package/dist/cjs/kol-tree-item.cjs.entry.js +1 -1
  161. package/dist/cjs/kol-tree-wc.cjs.entry.js +1 -1
  162. package/dist/cjs/kol-tree.cjs.entry.js +1 -1
  163. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  164. package/dist/cjs/kol-version.entry.cjs.js.map +1 -1
  165. package/dist/cjs/kolibri.cjs.js +1 -1
  166. package/dist/cjs/loader.cjs.js +1 -1
  167. package/dist/cjs/rows-BUvz5j5U.js.map +1 -1
  168. package/dist/cjs/test-component.cjs.entry.js +1 -1
  169. package/dist/components/Alert.js +1 -1
  170. package/dist/components/Alert.js.map +1 -1
  171. package/dist/components/Collapsible.js +1 -1
  172. package/dist/components/Collapsible.js.map +1 -1
  173. package/dist/components/access-and-short-key.js.map +1 -1
  174. package/dist/components/component-names.js +1 -1
  175. package/dist/components/component-names.js.map +1 -1
  176. package/dist/components/controller-icon.js.map +1 -1
  177. package/dist/components/controller3.js.map +1 -1
  178. package/dist/components/i18n2.js +1 -1
  179. package/dist/components/i18n2.js.map +1 -1
  180. package/dist/components/icons.js +1 -1
  181. package/dist/components/icons.js.map +1 -1
  182. package/dist/components/index.js.map +1 -1
  183. package/dist/components/kol-breadcrumb.js +1 -1
  184. package/dist/components/kol-breadcrumb.js.map +1 -1
  185. package/dist/components/kol-button-link.js.map +1 -1
  186. package/dist/components/kol-button-wc.js.map +1 -1
  187. package/dist/components/kol-button.js.map +1 -1
  188. package/dist/components/kol-card-wc.js +1 -1
  189. package/dist/components/kol-card-wc.js.map +1 -1
  190. package/dist/components/kol-combobox.js +1 -1
  191. package/dist/components/kol-combobox.js.map +1 -1
  192. package/dist/components/kol-details.js +1 -1
  193. package/dist/components/kol-details.js.map +1 -1
  194. package/dist/components/kol-icon.js +1 -1
  195. package/dist/components/kol-icon.js.map +1 -1
  196. package/dist/components/kol-input-checkbox.js +1 -1
  197. package/dist/components/kol-input-checkbox.js.map +1 -1
  198. package/dist/components/kol-input-color.js.map +1 -1
  199. package/dist/components/kol-input-date.js.map +1 -1
  200. package/dist/components/kol-input-email.js.map +1 -1
  201. package/dist/components/kol-input-file.js.map +1 -1
  202. package/dist/components/kol-input-number.js +1 -1
  203. package/dist/components/kol-input-number.js.map +1 -1
  204. package/dist/components/kol-input-password.js +1 -1
  205. package/dist/components/kol-input-password.js.map +1 -1
  206. package/dist/components/kol-input-radio.js +1 -1
  207. package/dist/components/kol-input-radio.js.map +1 -1
  208. package/dist/components/kol-input-range.js.map +1 -1
  209. package/dist/components/kol-input-text.js.map +1 -1
  210. package/dist/components/kol-link-button.js.map +1 -1
  211. package/dist/components/kol-link-wc.js +1 -1
  212. package/dist/components/kol-link-wc.js.map +1 -1
  213. package/dist/components/kol-link.js.map +1 -1
  214. package/dist/components/kol-nav.js +1 -1
  215. package/dist/components/kol-nav.js.map +1 -1
  216. package/dist/components/kol-pagination-wc.js +1 -1
  217. package/dist/components/kol-pagination-wc.js.map +1 -1
  218. package/dist/components/kol-pagination.js +1 -1
  219. package/dist/components/kol-pagination.js.map +1 -1
  220. package/dist/components/kol-popover-button-wc.js +1 -1
  221. package/dist/components/kol-popover-button-wc.js.map +1 -1
  222. package/dist/components/kol-popover-button.js.map +1 -1
  223. package/dist/components/kol-progress.js.map +1 -1
  224. package/dist/components/kol-select-wc.d.ts +11 -0
  225. package/dist/components/kol-select-wc.js +4 -0
  226. package/dist/components/kol-select-wc.js.map +1 -0
  227. package/dist/components/kol-select.js +1 -1
  228. package/dist/components/kol-select.js.map +1 -1
  229. package/dist/components/kol-single-select.js +1 -1
  230. package/dist/components/kol-single-select.js.map +1 -1
  231. package/dist/components/kol-skip-nav.js +1 -1
  232. package/dist/components/kol-spin.js +1 -1
  233. package/dist/components/kol-split-button.js +1 -1
  234. package/dist/components/kol-split-button.js.map +1 -1
  235. package/dist/components/kol-table-settings-wc.js +1 -1
  236. package/dist/components/kol-table-settings-wc.js.map +1 -1
  237. package/dist/components/kol-table-stateful.js +1 -1
  238. package/dist/components/kol-table-stateful.js.map +1 -1
  239. package/dist/components/kol-table-stateless-wc.js +1 -1
  240. package/dist/components/kol-table-stateless-wc.js.map +1 -1
  241. package/dist/components/kol-table-stateless.js +1 -1
  242. package/dist/components/kol-tabs.js +1 -1
  243. package/dist/components/kol-tabs.js.map +1 -1
  244. package/dist/components/kol-textarea.js +1 -1
  245. package/dist/components/kol-textarea.js.map +1 -1
  246. package/dist/components/kol-toast-container.js +1 -1
  247. package/dist/components/kol-toast-container.js.map +1 -1
  248. package/dist/components/kol-toolbar.js +1 -1
  249. package/dist/components/kol-tooltip-wc.js +1 -1
  250. package/dist/components/kol-tree-item-wc.js +1 -1
  251. package/dist/components/kol-tree-item.js +1 -1
  252. package/dist/components/kol-tree-wc.js +1 -1
  253. package/dist/components/kol-tree.js +1 -1
  254. package/dist/components/kol-version.js +1 -1
  255. package/dist/components/kol-version.js.map +1 -1
  256. package/dist/components/rows.js.map +1 -1
  257. package/dist/esm/Alert-DIA2xA9y.js +4 -0
  258. package/dist/esm/Alert-DIA2xA9y.js.map +1 -0
  259. package/dist/esm/Collapsible-XJeVw5Bg.js +4 -0
  260. package/dist/esm/Collapsible-XJeVw5Bg.js.map +1 -0
  261. package/dist/esm/{CustomSuggestionsOptionsGroup-C6GgxWBC.js → CustomSuggestionsOptionsGroup-B8Ar_Lf3.js} +1 -1
  262. package/dist/{kolibri/CustomSuggestionsOptionsGroup-C6GgxWBC.js.map → esm/CustomSuggestionsOptionsGroup-B8Ar_Lf3.js.map} +1 -1
  263. package/dist/esm/{FieldControlStateWrapper-DDYTL8sS.js → FieldControlStateWrapper-Pxc6eGXA.js} +1 -1
  264. package/dist/esm/{FieldControlStateWrapper-DDYTL8sS.js.map → FieldControlStateWrapper-Pxc6eGXA.js.map} +1 -1
  265. package/dist/esm/{FormFieldStateWrapper-B3p0ZzG-.js → FormFieldStateWrapper-LHV3Rpm4.js} +1 -1
  266. package/dist/{kolibri/FormFieldStateWrapper-B3p0ZzG-.js.map → esm/FormFieldStateWrapper-LHV3Rpm4.js.map} +1 -1
  267. package/dist/esm/{Heading-ClZtMSvA.js → Heading-B2GrYJQS.js} +1 -1
  268. package/dist/esm/{Heading-ClZtMSvA.js.map → Heading-B2GrYJQS.js.map} +1 -1
  269. package/dist/esm/Icon-Cx4bRen6.js +4 -0
  270. package/dist/esm/{Icon-B8-kh-9q.js.map → Icon-Cx4bRen6.js.map} +1 -1
  271. package/dist/esm/{Input-CF2Hxzy7.js → Input-DgvlKYaQ.js} +1 -1
  272. package/dist/esm/{Input-CF2Hxzy7.js.map → Input-DgvlKYaQ.js.map} +1 -1
  273. package/dist/esm/{InputStateWrapper-BNXEE43D.js → InputStateWrapper-febP2jPy.js} +1 -1
  274. package/dist/{kolibri/InputStateWrapper-BNXEE43D.js.map → esm/InputStateWrapper-febP2jPy.js.map} +1 -1
  275. package/dist/esm/InternalUnderlinedBadgeText-B2Mp6LvR.js +4 -0
  276. package/dist/esm/{InternalUnderlinedBadgeText-CF6FOiQi.js.map → InternalUnderlinedBadgeText-B2Mp6LvR.js.map} +1 -1
  277. package/dist/esm/{Span-CNwuRioU.js → Span-C6xaM2ei.js} +1 -1
  278. package/dist/esm/{Span-CNwuRioU.js.map → Span-C6xaM2ei.js.map} +1 -1
  279. package/dist/esm/access-and-short-key-Dy2a7Py3.js.map +1 -1
  280. package/dist/esm/{app-globals-gEPVeAeS.js → app-globals-ekKWD6Td.js} +1 -1
  281. package/dist/esm/{app-globals-gEPVeAeS.js.map → app-globals-ekKWD6Td.js.map} +1 -1
  282. package/dist/esm/{associated.controller-CvM-u0FR.js → associated.controller-BStrZiDY.js} +1 -1
  283. package/dist/esm/{associated.controller-CvM-u0FR.js.map → associated.controller-BStrZiDY.js.map} +1 -1
  284. package/dist/esm/{bootstrap-DKvDv4kw.js → bootstrap-BsrX_E7q.js} +1 -1
  285. package/dist/{kolibri/bootstrap-DKvDv4kw.js.map → esm/bootstrap-BsrX_E7q.js.map} +1 -1
  286. package/dist/esm/component-names-C3fyby67.js +4 -0
  287. package/dist/esm/component-names-C3fyby67.js.map +1 -0
  288. package/dist/esm/{controller-DLgscExO.js → controller-DJOhQXnE.js} +1 -1
  289. package/dist/esm/{controller-DLgscExO.js.map → controller-DJOhQXnE.js.map} +1 -1
  290. package/dist/esm/{controller-DKkpnndm.js → controller-DugjUu5j.js} +1 -1
  291. package/dist/esm/{controller-DKkpnndm.js.map → controller-DugjUu5j.js.map} +1 -1
  292. package/dist/esm/{controller-BUJ57XsU.js → controller-NE4BnSvx.js} +1 -1
  293. package/dist/esm/controller-NE4BnSvx.js.map +1 -0
  294. package/dist/esm/{controller-q35akpMH.js → controller-gn2X9gKB.js} +1 -1
  295. package/dist/{kolibri/controller-q35akpMH.js.map → esm/controller-gn2X9gKB.js.map} +1 -1
  296. package/dist/esm/{controller-icon-jwhou2Oz.js → controller-icon-BlpxRfuh.js} +1 -1
  297. package/dist/esm/controller-icon-BlpxRfuh.js.map +1 -0
  298. package/dist/esm/{dev.utils-yQD-QKCU.js → dev.utils-esK2JNm4.js} +1 -1
  299. package/dist/esm/{dev.utils-yQD-QKCU.js.map → dev.utils-esK2JNm4.js.map} +1 -1
  300. package/dist/esm/{devtools-Bonmqoiz.js → devtools-C4AShvlP.js} +1 -1
  301. package/dist/esm/{devtools-Bonmqoiz.js.map → devtools-C4AShvlP.js.map} +1 -1
  302. package/dist/esm/i18n-B0tfVPMa.js +4 -0
  303. package/dist/esm/i18n-B0tfVPMa.js.map +1 -0
  304. package/dist/esm/i18n-BgOmSzBT.js +4 -0
  305. package/dist/esm/{i18n-CQxlBXNV.js.map → i18n-BgOmSzBT.js.map} +1 -1
  306. package/dist/esm/{icons-CmMX8bbY.js → icons-B_GLbYEP.js} +1 -1
  307. package/dist/esm/{icons-CmMX8bbY.js.map → icons-B_GLbYEP.js.map} +1 -1
  308. package/dist/esm/index-COx1MtC5.js +4 -0
  309. package/dist/{kolibri/index-DXabIfEM.js.map → esm/index-COx1MtC5.js.map} +1 -1
  310. package/dist/esm/index.js +1 -1
  311. package/dist/esm/index.js.map +1 -1
  312. package/dist/esm/kol-abbr.entry.js +1 -1
  313. package/dist/esm/kol-accordion.entry.js +1 -1
  314. package/dist/esm/kol-alert-wc.entry.js +1 -1
  315. package/dist/esm/kol-alert.entry.js +1 -1
  316. package/dist/esm/kol-avatar-wc.entry.js +1 -1
  317. package/dist/esm/kol-avatar.entry.js +1 -1
  318. package/dist/esm/kol-badge.entry.js +1 -1
  319. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  320. package/dist/esm/kol-breadcrumb.entry.js.map +1 -1
  321. package/dist/esm/kol-button-link.entry.js +1 -1
  322. package/dist/esm/kol-button-link.entry.js.map +1 -1
  323. package/dist/esm/kol-button-wc.entry.js +1 -1
  324. package/dist/esm/kol-button-wc.entry.js.map +1 -1
  325. package/dist/esm/kol-button.entry.js +1 -1
  326. package/dist/esm/kol-button.entry.js.map +1 -1
  327. package/dist/esm/kol-card-wc.entry.js +1 -1
  328. package/dist/esm/kol-card-wc.entry.js.map +1 -1
  329. package/dist/esm/kol-card.entry.js +1 -1
  330. package/dist/esm/kol-combobox.entry.js +1 -1
  331. package/dist/esm/kol-combobox.entry.js.map +1 -1
  332. package/dist/esm/kol-details.entry.js +1 -1
  333. package/dist/esm/kol-details.entry.js.map +1 -1
  334. package/dist/esm/kol-drawer.entry.js +1 -1
  335. package/dist/esm/kol-form.entry.js +1 -1
  336. package/dist/esm/kol-heading.entry.js +1 -1
  337. package/dist/esm/kol-icon.entry.js +1 -1
  338. package/dist/esm/kol-icon.entry.js.map +1 -1
  339. package/dist/esm/kol-image.entry.js +1 -1
  340. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  341. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  342. package/dist/esm/kol-input-color.entry.js +1 -1
  343. package/dist/esm/kol-input-color.entry.js.map +1 -1
  344. package/dist/esm/kol-input-date.entry.js +1 -1
  345. package/dist/esm/kol-input-date.entry.js.map +1 -1
  346. package/dist/esm/kol-input-email.entry.js +1 -1
  347. package/dist/esm/kol-input-email.entry.js.map +1 -1
  348. package/dist/esm/kol-input-file.entry.js +1 -1
  349. package/dist/esm/kol-input-file.entry.js.map +1 -1
  350. package/dist/esm/kol-input-number.entry.js +1 -1
  351. package/dist/esm/kol-input-number.entry.js.map +1 -1
  352. package/dist/esm/kol-input-password.entry.js +1 -1
  353. package/dist/esm/kol-input-password.entry.js.map +1 -1
  354. package/dist/esm/kol-input-radio.entry.js +1 -1
  355. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  356. package/dist/esm/kol-input-range.entry.js +1 -1
  357. package/dist/esm/kol-input-range.entry.js.map +1 -1
  358. package/dist/esm/kol-input-text.entry.js +1 -1
  359. package/dist/esm/kol-input-text.entry.js.map +1 -1
  360. package/dist/esm/kol-kolibri.entry.js +1 -1
  361. package/dist/esm/kol-link-button.entry.js +1 -1
  362. package/dist/esm/kol-link-button.entry.js.map +1 -1
  363. package/dist/esm/kol-link-wc.entry.js +1 -1
  364. package/dist/esm/kol-link-wc.entry.js.map +1 -1
  365. package/dist/esm/kol-link.entry.js +1 -1
  366. package/dist/esm/kol-link.entry.js.map +1 -1
  367. package/dist/esm/kol-modal.entry.js +1 -1
  368. package/dist/esm/kol-nav.entry.js +1 -1
  369. package/dist/esm/kol-nav.entry.js.map +1 -1
  370. package/dist/esm/kol-pagination-wc.entry.js +1 -1
  371. package/dist/esm/kol-pagination-wc.entry.js.map +1 -1
  372. package/dist/esm/kol-pagination.entry.js +1 -1
  373. package/dist/esm/kol-pagination.entry.js.map +1 -1
  374. package/dist/esm/kol-popover-button-wc.entry.js +1 -1
  375. package/dist/esm/kol-popover-button-wc.entry.js.map +1 -1
  376. package/dist/esm/kol-popover-button.entry.js +1 -1
  377. package/dist/esm/kol-popover-button.entry.js.map +1 -1
  378. package/dist/esm/kol-popover-wc.entry.js +1 -1
  379. package/dist/esm/kol-progress.entry.js +1 -1
  380. package/dist/esm/kol-progress.entry.js.map +1 -1
  381. package/dist/esm/kol-quote.entry.js +1 -1
  382. package/dist/esm/kol-select-wc.entry.js +4 -0
  383. package/dist/esm/kol-select-wc.entry.js.map +1 -0
  384. package/dist/esm/kol-select.entry.js +1 -1
  385. package/dist/esm/kol-select.entry.js.map +1 -1
  386. package/dist/esm/kol-single-select.entry.js +1 -1
  387. package/dist/esm/kol-single-select.entry.js.map +1 -1
  388. package/dist/esm/kol-skip-nav.entry.js +1 -1
  389. package/dist/esm/kol-spin.entry.js +1 -1
  390. package/dist/esm/kol-split-button.entry.js +1 -1
  391. package/dist/esm/kol-split-button.entry.js.map +1 -1
  392. package/dist/esm/kol-table-settings-wc.entry.js +1 -1
  393. package/dist/esm/kol-table-settings-wc.entry.js.map +1 -1
  394. package/dist/esm/kol-table-stateful.entry.js +1 -1
  395. package/dist/esm/kol-table-stateful.entry.js.map +1 -1
  396. package/dist/esm/kol-table-stateless-wc.entry.js +1 -1
  397. package/dist/esm/kol-table-stateless-wc.entry.js.map +1 -1
  398. package/dist/esm/kol-table-stateless.entry.js +1 -1
  399. package/dist/esm/kol-tabs.entry.js +1 -1
  400. package/dist/esm/kol-tabs.entry.js.map +1 -1
  401. package/dist/esm/kol-textarea.entry.js +1 -1
  402. package/dist/esm/kol-textarea.entry.js.map +1 -1
  403. package/dist/esm/kol-toast-container.entry.js +1 -1
  404. package/dist/esm/kol-toast-container.entry.js.map +1 -1
  405. package/dist/esm/kol-toolbar.entry.js +1 -1
  406. package/dist/esm/kol-tooltip-wc.entry.js +1 -1
  407. package/dist/esm/kol-tree-item-wc.entry.js +1 -1
  408. package/dist/esm/kol-tree-item.entry.js +1 -1
  409. package/dist/esm/kol-tree-wc.entry.js +1 -1
  410. package/dist/esm/kol-tree.entry.js +1 -1
  411. package/dist/esm/kol-version.entry.js +1 -1
  412. package/dist/esm/kol-version.entry.js.map +1 -1
  413. package/dist/esm/kolibri.js +1 -1
  414. package/dist/esm/loader.js +1 -1
  415. package/dist/esm/rows-C8piLIWD.js.map +1 -1
  416. package/dist/esm/test-component.entry.js +1 -1
  417. package/dist/kolibri/Alert-DIA2xA9y.js +4 -0
  418. package/dist/kolibri/Alert-DIA2xA9y.js.map +1 -0
  419. package/dist/kolibri/Collapsible-XJeVw5Bg.js +4 -0
  420. package/dist/kolibri/Collapsible-XJeVw5Bg.js.map +1 -0
  421. package/dist/kolibri/{CustomSuggestionsOptionsGroup-C6GgxWBC.js → CustomSuggestionsOptionsGroup-B8Ar_Lf3.js} +1 -1
  422. package/dist/{esm/CustomSuggestionsOptionsGroup-C6GgxWBC.js.map → kolibri/CustomSuggestionsOptionsGroup-B8Ar_Lf3.js.map} +1 -1
  423. package/dist/kolibri/FieldControlStateWrapper-Pxc6eGXA.js +4 -0
  424. package/dist/kolibri/{FieldControlStateWrapper-DDYTL8sS.js.map → FieldControlStateWrapper-Pxc6eGXA.js.map} +1 -1
  425. package/dist/kolibri/{FormFieldStateWrapper-B3p0ZzG-.js → FormFieldStateWrapper-LHV3Rpm4.js} +1 -1
  426. package/dist/{esm/FormFieldStateWrapper-B3p0ZzG-.js.map → kolibri/FormFieldStateWrapper-LHV3Rpm4.js.map} +1 -1
  427. package/dist/kolibri/{Heading-ClZtMSvA.js → Heading-B2GrYJQS.js} +1 -1
  428. package/dist/kolibri/{Heading-ClZtMSvA.js.map → Heading-B2GrYJQS.js.map} +1 -1
  429. package/dist/kolibri/Icon-Cx4bRen6.js +4 -0
  430. package/dist/kolibri/{Icon-B8-kh-9q.js.map → Icon-Cx4bRen6.js.map} +1 -1
  431. package/dist/kolibri/Input-DgvlKYaQ.js +4 -0
  432. package/dist/kolibri/{Input-CF2Hxzy7.js.map → Input-DgvlKYaQ.js.map} +1 -1
  433. package/dist/kolibri/InputStateWrapper-febP2jPy.js +4 -0
  434. package/dist/{esm/InputStateWrapper-BNXEE43D.js.map → kolibri/InputStateWrapper-febP2jPy.js.map} +1 -1
  435. package/dist/kolibri/InternalUnderlinedBadgeText-B2Mp6LvR.js +4 -0
  436. package/dist/kolibri/{InternalUnderlinedBadgeText-CF6FOiQi.js.map → InternalUnderlinedBadgeText-B2Mp6LvR.js.map} +1 -1
  437. package/dist/kolibri/Span-C6xaM2ei.js +4 -0
  438. package/dist/kolibri/{Span-CNwuRioU.js.map → Span-C6xaM2ei.js.map} +1 -1
  439. package/dist/kolibri/access-and-short-key-Dy2a7Py3.js.map +1 -1
  440. package/dist/kolibri/{app-globals-gEPVeAeS.js → app-globals-ekKWD6Td.js} +1 -1
  441. package/dist/kolibri/{app-globals-gEPVeAeS.js.map → app-globals-ekKWD6Td.js.map} +1 -1
  442. package/dist/kolibri/assets/.gitkeep +0 -0
  443. package/dist/kolibri/{associated.controller-CvM-u0FR.js → associated.controller-BStrZiDY.js} +1 -1
  444. package/dist/kolibri/{associated.controller-CvM-u0FR.js.map → associated.controller-BStrZiDY.js.map} +1 -1
  445. package/dist/kolibri/{bootstrap-DKvDv4kw.js → bootstrap-BsrX_E7q.js} +1 -1
  446. package/dist/{esm/bootstrap-DKvDv4kw.js.map → kolibri/bootstrap-BsrX_E7q.js.map} +1 -1
  447. package/dist/kolibri/component-names-C3fyby67.js +4 -0
  448. package/dist/kolibri/component-names-C3fyby67.js.map +1 -0
  449. package/dist/kolibri/controller-DJOhQXnE.js +4 -0
  450. package/dist/kolibri/{controller-DLgscExO.js.map → controller-DJOhQXnE.js.map} +1 -1
  451. package/dist/kolibri/{controller-DKkpnndm.js → controller-DugjUu5j.js} +1 -1
  452. package/dist/kolibri/{controller-DKkpnndm.js.map → controller-DugjUu5j.js.map} +1 -1
  453. package/dist/kolibri/{controller-BUJ57XsU.js → controller-NE4BnSvx.js} +1 -1
  454. package/dist/kolibri/controller-NE4BnSvx.js.map +1 -0
  455. package/dist/kolibri/{controller-q35akpMH.js → controller-gn2X9gKB.js} +1 -1
  456. package/dist/{esm/controller-q35akpMH.js.map → kolibri/controller-gn2X9gKB.js.map} +1 -1
  457. package/dist/kolibri/{controller-icon-jwhou2Oz.js → controller-icon-BlpxRfuh.js} +1 -1
  458. package/dist/kolibri/controller-icon-BlpxRfuh.js.map +1 -0
  459. package/dist/kolibri/{dev.utils-yQD-QKCU.js → dev.utils-esK2JNm4.js} +1 -1
  460. package/dist/kolibri/{dev.utils-yQD-QKCU.js.map → dev.utils-esK2JNm4.js.map} +1 -1
  461. package/dist/kolibri/{devtools-Bonmqoiz.js → devtools-C4AShvlP.js} +1 -1
  462. package/dist/kolibri/{devtools-Bonmqoiz.js.map → devtools-C4AShvlP.js.map} +1 -1
  463. package/dist/kolibri/i18n-B0tfVPMa.js +4 -0
  464. package/dist/kolibri/i18n-B0tfVPMa.js.map +1 -0
  465. package/dist/kolibri/i18n-BgOmSzBT.js +4 -0
  466. package/dist/kolibri/{i18n-CQxlBXNV.js.map → i18n-BgOmSzBT.js.map} +1 -1
  467. package/dist/kolibri/{icons-CmMX8bbY.js → icons-B_GLbYEP.js} +1 -1
  468. package/dist/kolibri/{icons-CmMX8bbY.js.map → icons-B_GLbYEP.js.map} +1 -1
  469. package/dist/kolibri/{index-DXabIfEM.js → index-COx1MtC5.js} +1 -1
  470. package/dist/{esm/index-DXabIfEM.js.map → kolibri/index-COx1MtC5.js.map} +1 -1
  471. package/dist/kolibri/index.esm.js +1 -1
  472. package/dist/kolibri/index.esm.js.map +1 -1
  473. package/dist/kolibri/kol-abbr.entry.js +1 -1
  474. package/dist/kolibri/kol-accordion.entry.js +1 -1
  475. package/dist/kolibri/kol-alert-wc.entry.js +1 -1
  476. package/dist/kolibri/kol-alert.entry.js +1 -1
  477. package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
  478. package/dist/kolibri/kol-avatar.entry.js +1 -1
  479. package/dist/kolibri/kol-badge.entry.js +1 -1
  480. package/dist/kolibri/kol-breadcrumb.entry.esm.js.map +1 -1
  481. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  482. package/dist/kolibri/kol-breadcrumb.entry.js.map +1 -1
  483. package/dist/kolibri/kol-button-link.entry.esm.js.map +1 -1
  484. package/dist/kolibri/kol-button-link.entry.js +1 -1
  485. package/dist/kolibri/kol-button-wc.entry.esm.js.map +1 -1
  486. package/dist/kolibri/kol-button-wc.entry.js +1 -1
  487. package/dist/kolibri/kol-button-wc.entry.js.map +1 -1
  488. package/dist/kolibri/kol-button.entry.esm.js.map +1 -1
  489. package/dist/kolibri/kol-button.entry.js +1 -1
  490. package/dist/kolibri/kol-card-wc.entry.esm.js.map +1 -1
  491. package/dist/kolibri/kol-card-wc.entry.js +1 -1
  492. package/dist/kolibri/kol-card-wc.entry.js.map +1 -1
  493. package/dist/kolibri/kol-card.entry.js +1 -1
  494. package/dist/kolibri/kol-combobox.entry.esm.js.map +1 -1
  495. package/dist/kolibri/kol-combobox.entry.js +1 -1
  496. package/dist/kolibri/kol-combobox.entry.js.map +1 -1
  497. package/dist/kolibri/kol-details.entry.esm.js.map +1 -1
  498. package/dist/kolibri/kol-details.entry.js +1 -1
  499. package/dist/kolibri/kol-details.entry.js.map +1 -1
  500. package/dist/kolibri/kol-drawer.entry.js +1 -1
  501. package/dist/kolibri/kol-form.entry.js +1 -1
  502. package/dist/kolibri/kol-heading.entry.js +1 -1
  503. package/dist/kolibri/kol-icon.entry.esm.js.map +1 -1
  504. package/dist/kolibri/kol-icon.entry.js +1 -1
  505. package/dist/kolibri/kol-icon.entry.js.map +1 -1
  506. package/dist/kolibri/kol-image.entry.js +1 -1
  507. package/dist/kolibri/kol-input-checkbox.entry.esm.js.map +1 -1
  508. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  509. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  510. package/dist/kolibri/kol-input-color.entry.esm.js.map +1 -1
  511. package/dist/kolibri/kol-input-color.entry.js +1 -1
  512. package/dist/kolibri/kol-input-date.entry.esm.js.map +1 -1
  513. package/dist/kolibri/kol-input-date.entry.js +1 -1
  514. package/dist/kolibri/kol-input-email.entry.esm.js.map +1 -1
  515. package/dist/kolibri/kol-input-email.entry.js +1 -1
  516. package/dist/kolibri/kol-input-file.entry.esm.js.map +1 -1
  517. package/dist/kolibri/kol-input-file.entry.js +1 -1
  518. package/dist/kolibri/kol-input-number.entry.esm.js.map +1 -1
  519. package/dist/kolibri/kol-input-number.entry.js +1 -1
  520. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  521. package/dist/kolibri/kol-input-password.entry.esm.js.map +1 -1
  522. package/dist/kolibri/kol-input-password.entry.js +1 -1
  523. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  524. package/dist/kolibri/kol-input-radio.entry.esm.js.map +1 -1
  525. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  526. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  527. package/dist/kolibri/kol-input-range.entry.esm.js.map +1 -1
  528. package/dist/kolibri/kol-input-range.entry.js +1 -1
  529. package/dist/kolibri/kol-input-text.entry.esm.js.map +1 -1
  530. package/dist/kolibri/kol-input-text.entry.js +1 -1
  531. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  532. package/dist/kolibri/kol-link-button.entry.esm.js.map +1 -1
  533. package/dist/kolibri/kol-link-button.entry.js +1 -1
  534. package/dist/kolibri/kol-link-wc.entry.esm.js.map +1 -1
  535. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  536. package/dist/kolibri/kol-link-wc.entry.js.map +1 -1
  537. package/dist/kolibri/kol-link.entry.esm.js.map +1 -1
  538. package/dist/kolibri/kol-link.entry.js +1 -1
  539. package/dist/kolibri/kol-modal.entry.js +1 -1
  540. package/dist/kolibri/kol-nav.entry.esm.js.map +1 -1
  541. package/dist/kolibri/kol-nav.entry.js +1 -1
  542. package/dist/kolibri/kol-nav.entry.js.map +1 -1
  543. package/dist/kolibri/kol-pagination-wc.entry.esm.js.map +1 -1
  544. package/dist/kolibri/kol-pagination-wc.entry.js +1 -1
  545. package/dist/kolibri/kol-pagination-wc.entry.js.map +1 -1
  546. package/dist/kolibri/kol-pagination.entry.esm.js.map +1 -1
  547. package/dist/kolibri/kol-pagination.entry.js +1 -1
  548. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  549. package/dist/kolibri/kol-popover-button-wc.entry.esm.js.map +1 -1
  550. package/dist/kolibri/kol-popover-button-wc.entry.js +1 -1
  551. package/dist/kolibri/kol-popover-button.entry.esm.js.map +1 -1
  552. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  553. package/dist/kolibri/kol-popover-wc.entry.js +1 -1
  554. package/dist/kolibri/kol-progress.entry.esm.js.map +1 -1
  555. package/dist/kolibri/kol-progress.entry.js +1 -1
  556. package/dist/kolibri/kol-quote.entry.js +1 -1
  557. package/dist/kolibri/kol-select-wc.entry.esm.js.map +1 -0
  558. package/dist/kolibri/kol-select-wc.entry.js +4 -0
  559. package/dist/kolibri/kol-select-wc.entry.js.map +1 -0
  560. package/dist/kolibri/kol-select.entry.esm.js.map +1 -1
  561. package/dist/kolibri/kol-select.entry.js +1 -1
  562. package/dist/kolibri/kol-select.entry.js.map +1 -1
  563. package/dist/kolibri/kol-single-select.entry.esm.js.map +1 -1
  564. package/dist/kolibri/kol-single-select.entry.js +1 -1
  565. package/dist/kolibri/kol-single-select.entry.js.map +1 -1
  566. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  567. package/dist/kolibri/kol-spin.entry.js +1 -1
  568. package/dist/kolibri/kol-split-button.entry.esm.js.map +1 -1
  569. package/dist/kolibri/kol-split-button.entry.js +1 -1
  570. package/dist/kolibri/kol-split-button.entry.js.map +1 -1
  571. package/dist/kolibri/kol-table-settings-wc.entry.esm.js.map +1 -1
  572. package/dist/kolibri/kol-table-settings-wc.entry.js +1 -1
  573. package/dist/kolibri/kol-table-settings-wc.entry.js.map +1 -1
  574. package/dist/kolibri/kol-table-stateful.entry.esm.js.map +1 -1
  575. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  576. package/dist/kolibri/kol-table-stateful.entry.js.map +1 -1
  577. package/dist/kolibri/kol-table-stateless-wc.entry.esm.js.map +1 -1
  578. package/dist/kolibri/kol-table-stateless-wc.entry.js +1 -1
  579. package/dist/kolibri/kol-table-stateless-wc.entry.js.map +1 -1
  580. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  581. package/dist/kolibri/kol-tabs.entry.esm.js.map +1 -1
  582. package/dist/kolibri/kol-tabs.entry.js +1 -1
  583. package/dist/kolibri/kol-tabs.entry.js.map +1 -1
  584. package/dist/kolibri/kol-textarea.entry.esm.js.map +1 -1
  585. package/dist/kolibri/kol-textarea.entry.js +1 -1
  586. package/dist/kolibri/kol-toast-container.entry.esm.js.map +1 -1
  587. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  588. package/dist/kolibri/kol-toast-container.entry.js.map +1 -1
  589. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  590. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  591. package/dist/kolibri/kol-tree-item-wc.entry.js +1 -1
  592. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  593. package/dist/kolibri/kol-tree-wc.entry.js +1 -1
  594. package/dist/kolibri/kol-tree.entry.js +1 -1
  595. package/dist/kolibri/kol-version.entry.esm.js.map +1 -1
  596. package/dist/kolibri/kol-version.entry.js +1 -1
  597. package/dist/kolibri/kol-version.entry.js.map +1 -1
  598. package/dist/kolibri/kolibri.esm.js +1 -1
  599. package/dist/kolibri/rows-C8piLIWD.js.map +1 -1
  600. package/dist/kolibri/test-component.entry.js +1 -1
  601. package/dist/types/components/combobox/controller.d.ts +1 -1
  602. package/dist/types/components/combobox/shadow.d.ts +2 -2
  603. package/dist/types/components/input-radio/shadow.d.ts +3 -0
  604. package/dist/types/components/nav/shadow.d.ts +1 -0
  605. package/dist/types/components/pagination/component.d.ts +2 -0
  606. package/dist/types/components/select/component.d.ts +61 -0
  607. package/dist/types/components/select/shadow.d.ts +3 -34
  608. package/dist/types/components/single-select/controller.d.ts +1 -1
  609. package/dist/types/components/single-select/shadow.d.ts +2 -2
  610. package/dist/types/components.d.ts +335 -106
  611. package/dist/types/core/component-names.d.ts +1 -0
  612. package/dist/types/schema/components/combobox.d.ts +2 -2
  613. package/dist/types/schema/components/single-select.d.ts +2 -2
  614. package/doc/button-link.md +2 -2
  615. package/doc/button.md +2 -2
  616. package/doc/combobox.md +21 -21
  617. package/doc/input-checkbox.md +2 -2
  618. package/doc/input-color.md +2 -2
  619. package/doc/input-date.md +3 -3
  620. package/doc/input-email.md +2 -2
  621. package/doc/input-file.md +1 -1
  622. package/doc/input-number.md +3 -3
  623. package/doc/input-password.md +2 -2
  624. package/doc/input-radio.md +1 -1
  625. package/doc/input-range.md +3 -3
  626. package/doc/input-text.md +2 -2
  627. package/doc/link-button.md +1 -1
  628. package/doc/link.md +1 -1
  629. package/doc/pagination.md +1 -1
  630. package/doc/popover-button.md +2 -2
  631. package/doc/progress.md +2 -2
  632. package/doc/select.md +1 -1
  633. package/doc/single-select.md +22 -22
  634. package/doc/split-button.md +2 -2
  635. package/doc/textarea.md +3 -3
  636. package/doc/toaster.md +2 -0
  637. package/package.json +1 -2
  638. package/vscode-custom-data.json +158 -48
  639. package/assets/codicons/LICENSE +0 -395
  640. package/assets/codicons/LICENSE-CODE +0 -21
  641. package/assets/codicons/codicon.css +0 -635
  642. package/assets/codicons/codicon.csv +0 -467
  643. package/assets/codicons/codicon.svg +0 -1
  644. package/assets/codicons/codicon.ttf +0 -0
  645. package/dist/cjs/Alert-CNuzYOpK.js +0 -4
  646. package/dist/cjs/Alert-CNuzYOpK.js.map +0 -1
  647. package/dist/cjs/Collapsible-BdyorjeL.js +0 -4
  648. package/dist/cjs/Collapsible-BdyorjeL.js.map +0 -1
  649. package/dist/cjs/Icon-CqGTyXA0.js +0 -4
  650. package/dist/cjs/Input-pFPV9dtW.js +0 -4
  651. package/dist/cjs/component-names-D7MwtuB7.js +0 -4
  652. package/dist/cjs/component-names-D7MwtuB7.js.map +0 -1
  653. package/dist/cjs/controller-Ch8NWF3z.js.map +0 -1
  654. package/dist/cjs/controller-icon-8M5hrPYY.js.map +0 -1
  655. package/dist/cjs/i18n-Bu-c2BMf.js +0 -4
  656. package/dist/cjs/i18n-Bu-c2BMf.js.map +0 -1
  657. package/dist/cjs/index-BJq3g2Kp.js +0 -4
  658. package/dist/esm/Alert-DzpS4CJD.js +0 -4
  659. package/dist/esm/Alert-DzpS4CJD.js.map +0 -1
  660. package/dist/esm/Collapsible-CIER1XyD.js +0 -4
  661. package/dist/esm/Collapsible-CIER1XyD.js.map +0 -1
  662. package/dist/esm/Icon-B8-kh-9q.js +0 -4
  663. package/dist/esm/InternalUnderlinedBadgeText-CF6FOiQi.js +0 -4
  664. package/dist/esm/component-names-CkE54Ym7.js +0 -4
  665. package/dist/esm/component-names-CkE54Ym7.js.map +0 -1
  666. package/dist/esm/controller-BUJ57XsU.js.map +0 -1
  667. package/dist/esm/controller-icon-jwhou2Oz.js.map +0 -1
  668. package/dist/esm/i18n-B-iJAw_i.js +0 -4
  669. package/dist/esm/i18n-B-iJAw_i.js.map +0 -1
  670. package/dist/esm/i18n-CQxlBXNV.js +0 -4
  671. package/dist/esm/index-DXabIfEM.js +0 -4
  672. package/dist/kolibri/Alert-DzpS4CJD.js +0 -4
  673. package/dist/kolibri/Alert-DzpS4CJD.js.map +0 -1
  674. package/dist/kolibri/Collapsible-CIER1XyD.js +0 -4
  675. package/dist/kolibri/Collapsible-CIER1XyD.js.map +0 -1
  676. package/dist/kolibri/FieldControlStateWrapper-DDYTL8sS.js +0 -4
  677. package/dist/kolibri/Icon-B8-kh-9q.js +0 -4
  678. package/dist/kolibri/Input-CF2Hxzy7.js +0 -4
  679. package/dist/kolibri/InputStateWrapper-BNXEE43D.js +0 -4
  680. package/dist/kolibri/InternalUnderlinedBadgeText-CF6FOiQi.js +0 -4
  681. package/dist/kolibri/Span-CNwuRioU.js +0 -4
  682. package/dist/kolibri/assets/codicons/LICENSE +0 -395
  683. package/dist/kolibri/assets/codicons/LICENSE-CODE +0 -21
  684. package/dist/kolibri/assets/codicons/codicon.css +0 -635
  685. package/dist/kolibri/assets/codicons/codicon.csv +0 -467
  686. package/dist/kolibri/assets/codicons/codicon.svg +0 -1
  687. package/dist/kolibri/assets/codicons/codicon.ttf +0 -0
  688. package/dist/kolibri/assets/kolibri.ico +0 -0
  689. package/dist/kolibri/component-names-CkE54Ym7.js +0 -4
  690. package/dist/kolibri/component-names-CkE54Ym7.js.map +0 -1
  691. package/dist/kolibri/controller-BUJ57XsU.js.map +0 -1
  692. package/dist/kolibri/controller-DLgscExO.js +0 -4
  693. package/dist/kolibri/controller-icon-jwhou2Oz.js.map +0 -1
  694. package/dist/kolibri/i18n-B-iJAw_i.js +0 -4
  695. package/dist/kolibri/i18n-B-iJAw_i.js.map +0 -1
  696. package/dist/kolibri/i18n-CQxlBXNV.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{_ as e}from"./tslib.es6-CxX45GIN.js";import{h as s}from"./index-DXabIfEM.js";import{c as l}from"./clsx-eK3rPvPS.js";const o=1,n=6;function a(s){return s>=o&&s<=6}function r(s){return a(s)?`h${s}`:"strong"}const c=(a,n)=>{var{class:c,level:i=o}=a,t=e(a,["class","level"]);const d=r(i);return s(d,Object.assign({class:l("kol-headline",`kol-headline--${d}`,c)},t),n)},t=(a,n)=>{var{class:o}=a,r=e(a,["class"]);return s("p",Object.assign({class:l("kol-headline kol-headline--group kol-headline--secondary",o)},r),n)},i=(a,n)=>{var{secondaryHeadline:r,level:i=o,class:d,HeadingGroupProps:g={},SecondaryHeadlineProps:p={}}=a,u=e(a,["secondaryHeadline","level","class","HeadingGroupProps","SecondaryHeadlineProps"]);const h=Object.assign({level:i},u);if(!r)return s(c,Object.assign({class:l(d,"kol-headline--single")},h),n);const{class:j}=g,b=e(g,["class"]),k=Object.assign({class:l("kol-heading-group",j)},b);return s("hgroup",Object.assign({},k),s(c,Object.assign({class:l(d,"kol-headline--group","kol-headline--primary")},h),n),s(t,Object.assign({},p),r))};export{i as K};
4
+ import{_ as e}from"./tslib.es6-CxX45GIN.js";import{h as s}from"./index-COx1MtC5.js";import{c as l}from"./clsx-eK3rPvPS.js";const o=1,n=6;function r(s){return s>=o&&s<=6}function a(s){return r(s)?`h${s}`:"strong"}const c=(n,r)=>{var{class:c,level:i=o}=n,t=e(n,["class","level"]);const d=a(i);return s(d,Object.assign({class:l("kol-headline",`kol-headline--${d}`,c)},t),r)},t=(a,n)=>{var{class:o}=a,r=e(a,["class"]);return s("p",Object.assign({class:l("kol-headline kol-headline--group kol-headline--secondary",o)},r),n)},i=(a,n)=>{var{secondaryHeadline:r,level:i=o,class:d,HeadingGroupProps:g={},SecondaryHeadlineProps:p={}}=a,u=e(a,["secondaryHeadline","level","class","HeadingGroupProps","SecondaryHeadlineProps"]);const h=Object.assign({level:i},u);if(!r)return s(c,Object.assign({class:l(d,"kol-headline--single")},h),n);const{class:j}=g,b=e(g,["class"]),k=Object.assign({class:l("kol-heading-group",j)},b);return s("hgroup",Object.assign({},k),s(c,Object.assign({class:l(d,"kol-headline--group","kol-headline--primary")},h),n),s(t,Object.assign({},p),r))};export{i as K};
@@ -1 +1 @@
1
- {"version":3,"file":"Heading-ClZtMSvA.js","sources":["src/functional-components/Heading/Heading.tsx"],"sourcesContent":["import { type FunctionalComponent as FC, h } from '@stencil/core';\nimport type { JSXBase } from '@stencil/core/internal';\nimport clsx from 'clsx';\nimport type { HeadingLevel } from '../../schema';\n\ntype HGroupProps = JSXBase.HTMLAttributes<HTMLElement>;\n\n// Define a base type for common props\ntype BaseProps = JSXBase.HTMLAttributes<HTMLHeadingElement | HTMLElement> & {\n\tlevel?: HeadingLevel;\n};\n\n// Define a type for the main headline props\ntype HeadlineProps = BaseProps;\n\n// Define a type for the secondary headline props\ntype SecondaryHeadlineProps = JSXBase.HTMLAttributes<HTMLParagraphElement>;\n\n// Define a type for the main Heading component props\nexport type HeadingProps = HeadlineProps & {\n\tsecondaryHeadline?: string;\n\tHeadingGroupProps?: HGroupProps;\n\tSecondaryHeadlineProps?: SecondaryHeadlineProps;\n};\n\nconst MIN_HEADING_LEVEL = 1;\nconst MAX_HEADING_LEVEL = 6;\n\n// Define a union type for valid headline tags\ntype HeadlineTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'strong';\n\n/**\n * Checks if the given level is a valid heading level.\n * @param level - The heading level to check.\n * @returns True if the level is valid, false otherwise.\n */\nfunction isValidHeadingLevel(level: number): boolean {\n\treturn level >= MIN_HEADING_LEVEL && level <= MAX_HEADING_LEVEL;\n}\n\n/**\n * Returns the appropriate headline tag based on the level.\n * If the level is invalid, returns 'strong'.\n * @param level - The heading level.\n * @returns The corresponding headline tag.\n */\nexport function getHeadlineTag(level: HeadingLevel | number): HeadlineTag {\n\treturn isValidHeadingLevel(level) ? (`h${level}` as HeadlineTag) : 'strong';\n}\n\n/**\n * Functional component for rendering a headline.\n * @param props - The properties for the headline component.\n * @param children - The children to render inside the headline.\n * @returns A VNode representing the headline.\n */\nconst KolHeadlineFc: FC<HeadlineProps> = ({ class: classNames, level = MIN_HEADING_LEVEL, ...other }, children) => {\n\tconst HeadlineTag = getHeadlineTag(level);\n\n\treturn (\n\t\t<HeadlineTag class={clsx('kol-headline', `kol-headline--${HeadlineTag}`, classNames)} {...other}>\n\t\t\t{children}\n\t\t</HeadlineTag>\n\t);\n};\n\n/**\n * Functional component for rendering a secondary headline.\n * The secondary text is rendered as a `<p>` because according to the HTML `hgroup`\n * specification the subheading does not create its own outline level.\n * @param props - The properties for the secondary headline component.\n * @param children - The children to render inside the secondary headline.\n * @returns A VNode representing the secondary headline.\n */\nconst KolSecondaryHeadlineFc: FC<SecondaryHeadlineProps> = ({ class: classNames, ...other }, children) => {\n\treturn (\n\t\t<p class={clsx('kol-headline kol-headline--group kol-headline--secondary', classNames)} {...other}>\n\t\t\t{children}\n\t\t</p>\n\t);\n};\n\n/**\n * Functional component for rendering a heading with an optional secondary headline.\n * @param props - The properties for the heading component.\n * @param children - The children to render inside the heading.\n * @returns A VNode representing the heading.\n */\nconst KolHeadingFc: FC<HeadingProps> = (\n\t{ secondaryHeadline, level = MIN_HEADING_LEVEL, class: classNames, HeadingGroupProps = {}, SecondaryHeadlineProps = {}, ...other },\n\tchildren,\n) => {\n\tconst headlineProps: HeadlineProps = {\n\t\tlevel,\n\t\t...other,\n\t};\n\n\tif (!secondaryHeadline) {\n\t\treturn (\n\t\t\t<KolHeadlineFc class={clsx(classNames, 'kol-headline--single')} {...headlineProps}>\n\t\t\t\t{children}\n\t\t\t</KolHeadlineFc>\n\t\t);\n\t}\n\n\tconst { class: groupClassNames, ...groupOthers } = HeadingGroupProps;\n\tconst headlineGroupProps: HGroupProps = {\n\t\tclass: clsx('kol-heading-group', groupClassNames),\n\t\t...groupOthers,\n\t};\n\n\treturn (\n\t\t<hgroup {...headlineGroupProps}>\n\t\t\t<KolHeadlineFc class={clsx(classNames, 'kol-headline--group', 'kol-headline--primary')} {...headlineProps}>\n\t\t\t\t{children}\n\t\t\t</KolHeadlineFc>\n\t\t\t<KolSecondaryHeadlineFc {...SecondaryHeadlineProps}>{secondaryHeadline}</KolSecondaryHeadlineFc>\n\t\t</hgroup>\n\t);\n};\n\nexport default KolHeadingFc;\n"],"names":[],"mappings":";;;;;;;AAyBA,MAAM,iBAAiB,GAAG,CAAC;AAC3B,MAAM,iBAAiB,GAAG,CAAC;AAU3B,SAAS,mBAAmB,CAAC,KAAa,EAAA;AACzC,IAAA,OAAO,KAAK,IAAI,iBAAiB,IAAI,KAAK,IAAI,iBAAiB;AAChE;AAQM,SAAU,cAAc,CAAC,KAA4B,EAAA;AAC1D,IAAA,OAAO,mBAAmB,CAAC,KAAK,CAAC,GAAI,CAAI,CAAA,EAAA,KAAK,CAAkB,CAAA,GAAG,QAAQ;AAC5E;AAQA,MAAM,aAAa,GAAsB,CAAC,EAA0D,EAAE,QAAQ,KAAI;IAAxE,IAAA,EAA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UAAU,EAAE,sBAAsB,CAAC,EAAM,EAAA,aAAa,GAC/E,QAAQ,CACM;;AAIlB,IAAA,MAAM,EAAE,KAAK,EAAE,eAAe,EAAqB,GAAA,iBAAiB,EAAjC,WAAW,GAAK,MAAA,CAAA,iBAAiB,EAA9D,CAAA,OAAA,CAA0C,CAAoB;AACpE,IAAA,MAAM,kBAAkB,GAAA,MAAA,CAAA,MAAA,CAAA,EACvB,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,eAAe,CAAC,EAC9C,EAAA,WAAW,CACd;IAED,QACC,8BAAY,kBAAkB,CAAA,EAC7B,CAAA,CAAC,aAAa,EAAC,MAAA,CAAA,MAAA,CAAA,EAAA,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,qBAAqB,EAAE,uBAAuB,CAAC,EAAA,EAAM,aAAa,CAAA,EACvG,QAAQ,CACM,EAChB,CAAC,CAAA,sBAAsB,oBAAK,sBAAsB,CAAA,EAAG,iBAAiB,CAA0B,CACxF;AAEX;;;;"}
1
+ {"version":3,"file":"Heading-B2GrYJQS.js","sources":["src/functional-components/Heading/Heading.tsx"],"sourcesContent":["import { type FunctionalComponent as FC, h } from '@stencil/core';\nimport type { JSXBase } from '@stencil/core/internal';\nimport clsx from 'clsx';\nimport type { HeadingLevel } from '../../schema';\n\ntype HGroupProps = JSXBase.HTMLAttributes<HTMLElement>;\n\n// Define a base type for common props\ntype BaseProps = JSXBase.HTMLAttributes<HTMLHeadingElement | HTMLElement> & {\n\tlevel?: HeadingLevel;\n};\n\n// Define a type for the main headline props\ntype HeadlineProps = BaseProps;\n\n// Define a type for the secondary headline props\ntype SecondaryHeadlineProps = JSXBase.HTMLAttributes<HTMLParagraphElement>;\n\n// Define a type for the main Heading component props\nexport type HeadingProps = HeadlineProps & {\n\tsecondaryHeadline?: string;\n\tHeadingGroupProps?: HGroupProps;\n\tSecondaryHeadlineProps?: SecondaryHeadlineProps;\n};\n\nconst MIN_HEADING_LEVEL = 1;\nconst MAX_HEADING_LEVEL = 6;\n\n// Define a union type for valid headline tags\ntype HeadlineTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'strong';\n\n/**\n * Checks if the given level is a valid heading level.\n * @param level - The heading level to check.\n * @returns True if the level is valid, false otherwise.\n */\nfunction isValidHeadingLevel(level: number): boolean {\n\treturn level >= MIN_HEADING_LEVEL && level <= MAX_HEADING_LEVEL;\n}\n\n/**\n * Returns the appropriate headline tag based on the level.\n * If the level is invalid, returns 'strong'.\n * @param level - The heading level.\n * @returns The corresponding headline tag.\n */\nexport function getHeadlineTag(level: HeadingLevel | number): HeadlineTag {\n\treturn isValidHeadingLevel(level) ? (`h${level}` as HeadlineTag) : 'strong';\n}\n\n/**\n * Functional component for rendering a headline.\n * @param props - The properties for the headline component.\n * @param children - The children to render inside the headline.\n * @returns A VNode representing the headline.\n */\nconst KolHeadlineFc: FC<HeadlineProps> = ({ class: classNames, level = MIN_HEADING_LEVEL, ...other }, children) => {\n\tconst HeadlineTag = getHeadlineTag(level);\n\n\treturn (\n\t\t<HeadlineTag class={clsx('kol-headline', `kol-headline--${HeadlineTag}`, classNames)} {...other}>\n\t\t\t{children}\n\t\t</HeadlineTag>\n\t);\n};\n\n/**\n * Functional component for rendering a secondary headline.\n * The secondary text is rendered as a `<p>` because according to the HTML `hgroup`\n * specification the subheading does not create its own outline level.\n * @param props - The properties for the secondary headline component.\n * @param children - The children to render inside the secondary headline.\n * @returns A VNode representing the secondary headline.\n */\nconst KolSecondaryHeadlineFc: FC<SecondaryHeadlineProps> = ({ class: classNames, ...other }, children) => {\n\treturn (\n\t\t<p class={clsx('kol-headline kol-headline--group kol-headline--secondary', classNames)} {...other}>\n\t\t\t{children}\n\t\t</p>\n\t);\n};\n\n/**\n * Functional component for rendering a heading with an optional secondary headline.\n * @param props - The properties for the heading component.\n * @param children - The children to render inside the heading.\n * @returns A VNode representing the heading.\n */\nconst KolHeadingFc: FC<HeadingProps> = (\n\t{ secondaryHeadline, level = MIN_HEADING_LEVEL, class: classNames, HeadingGroupProps = {}, SecondaryHeadlineProps = {}, ...other },\n\tchildren,\n) => {\n\tconst headlineProps: HeadlineProps = {\n\t\tlevel,\n\t\t...other,\n\t};\n\n\tif (!secondaryHeadline) {\n\t\treturn (\n\t\t\t<KolHeadlineFc class={clsx(classNames, 'kol-headline--single')} {...headlineProps}>\n\t\t\t\t{children}\n\t\t\t</KolHeadlineFc>\n\t\t);\n\t}\n\n\tconst { class: groupClassNames, ...groupOthers } = HeadingGroupProps;\n\tconst headlineGroupProps: HGroupProps = {\n\t\tclass: clsx('kol-heading-group', groupClassNames),\n\t\t...groupOthers,\n\t};\n\n\treturn (\n\t\t<hgroup {...headlineGroupProps}>\n\t\t\t<KolHeadlineFc class={clsx(classNames, 'kol-headline--group', 'kol-headline--primary')} {...headlineProps}>\n\t\t\t\t{children}\n\t\t\t</KolHeadlineFc>\n\t\t\t<KolSecondaryHeadlineFc {...SecondaryHeadlineProps}>{secondaryHeadline}</KolSecondaryHeadlineFc>\n\t\t</hgroup>\n\t);\n};\n\nexport default KolHeadingFc;\n"],"names":[],"mappings":";;;;;;;AAyBA,MAAM,iBAAiB,GAAG,CAAC;AAC3B,MAAM,iBAAiB,GAAG,CAAC;AAU3B,SAAS,mBAAmB,CAAC,KAAa,EAAA;AACzC,IAAA,OAAO,KAAK,IAAI,iBAAiB,IAAI,KAAK,IAAI,iBAAiB;AAChE;AAQM,SAAU,cAAc,CAAC,KAA4B,EAAA;AAC1D,IAAA,OAAO,mBAAmB,CAAC,KAAK,CAAC,GAAI,CAAI,CAAA,EAAA,KAAK,CAAkB,CAAA,GAAG,QAAQ;AAC5E;AAQA,MAAM,aAAa,GAAsB,CAAC,EAA0D,EAAE,QAAQ,KAAI;IAAxE,IAAA,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,GAAG,iBAAiB,EAAA,GAAA,EAAY,EAAP,KAAK,GAAxD,MAAA,CAAA,EAAA,EAAA,CAAA,OAAA,EAAA,OAAA,CAA0D,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AW,GAAK,MAAA,CAAA,iBAAiB,EAA9D,CAAA,OAAA,CAA0C,CAAoB;AACpE,IAAA,MAAM,kBAAkB,GAAA,MAAA,CAAA,MAAA,CAAA,EACvB,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,eAAe,CAAC,EAC9C,EAAA,WAAW,CACd;IAED,QACC,8BAAY,kBAAkB,CAAA,EAC7B,CAAA,CAAC,aAAa,EAAC,MAAA,CAAA,MAAA,CAAA,EAAA,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,qBAAqB,EAAE,uBAAuB,CAAC,EAAA,EAAM,aAAa,CAAA,EACvG,QAAQ,CACM,EAChB,CAAC,CAAA,sBAAsB,oBAAK,sBAAsB,CAAA,EAAG,iBAAiB,CAA0B,CACxF;AAEX;;;;"}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{h as s}from"./index-COx1MtC5.js";import{e as o}from"./component-names-C3fyby67.js";const n=n=>{const{class:e,style:l,icons:t,label:c,onClick:a}=n;return s(o,{class:e,style:l,onClick:a,_icons:t,_label:c})};export{n as K};
@@ -1 +1 @@
1
- {"version":3,"file":"Icon-B8-kh-9q.js","sources":["src/functional-components/Icon/Icon.tsx"],"sourcesContent":["import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport { KolIconTag } from '../../core/component-names';\nimport type { InternalIconProps } from '../../schema';\n\nexport type IconProps = InternalIconProps & {\n\tclass?: string;\n\tstyle?: { [key: string]: string };\n\tonClick?: (event: MouseEvent) => void;\n};\n\nconst KolIconFc: FC<IconProps> = (props) => {\n\tconst { class: classNames, style, icons, label, onClick } = props;\n\n\treturn <KolIconTag class={classNames} style={style} onClick={onClick} _icons={icons} _label={label} />;\n};\n\nexport default KolIconFc;\n"],"names":[],"mappings":";;;;;;AAUA,MAAM,SAAS,GAAkB,CAAC,KAAK,KAAI;AAC1C,IAAA,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,KAAK;IAEjE,OAAO,CAAA,CAAC,UAAU,EAAC,EAAA,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAA,CAAI;AACvG;;;;"}
1
+ {"version":3,"file":"Icon-Cx4bRen6.js","sources":["src/functional-components/Icon/Icon.tsx"],"sourcesContent":["import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport { KolIconTag } from '../../core/component-names';\nimport type { InternalIconProps } from '../../schema';\n\nexport type IconProps = InternalIconProps & {\n\tclass?: string;\n\tstyle?: { [key: string]: string };\n\tonClick?: (event: MouseEvent) => void;\n};\n\nconst KolIconFc: FC<IconProps> = (props) => {\n\tconst { class: classNames, style, icons, label, onClick } = props;\n\n\treturn <KolIconTag class={classNames} style={style} onClick={onClick} _icons={icons} _label={label} />;\n};\n\nexport default KolIconFc;\n"],"names":[],"mappings":";;;;;;AAUA,MAAM,SAAS,GAAkB,CAAC,KAAK,KAAI;AAC1C,IAAA,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,KAAK;IAEjE,OAAO,CAAA,CAAC,UAAU,EAAC,EAAA,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAA,CAAI;AACvG;;;;"}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{_ as e}from"./tslib.es6-CxX45GIN.js";import{h as s,F as l}from"./index-COx1MtC5.js";import{c as o}from"./clsx-eK3rPvPS.js";import"./common-L1K0yh1S.js";import{d as a,g as i,i as t}from"./FormFieldStateWrapper-LHV3Rpm4.js";const r=r=>{const{class:d,msg:n,required:u,disabled:b,touched:c,readonly:p,ariaDescribedBy:m,hideLabel:g,label:y,suggestions:h,value:j}=r,B=e(r,["class","msg","required","disabled","touched","readonly","ariaDescribedBy","hideLabel","label","suggestions","value"]),k={"kol-input--disabled":Boolean(b),"kol-input--required":Boolean(u),"kol-input--touched":Boolean(c),"kol-input--readonly":Boolean(p),[`kol-input--${i(n)}`]:t(n,c)},x=Object.assign(Object.assign({class:o("kol-input",k,d),required:u,disabled:b,readonly:p,type:"text",list:h?`${B.id}-list`:void 0},a({ariaDescribedBy:m,hideLabel:g,label:y})),B);return s(l,null,s("input",Object.assign({},x,{value:j})),h)};export{r as I};
@@ -1 +1 @@
1
- {"version":3,"file":"Input-CF2Hxzy7.js","sources":["src/functional-components/inputs/Input/Input.tsx"],"sourcesContent":["/* eslint-disable no-console */\nimport { Fragment, h, type FunctionalComponent as FC } from '@stencil/core';\nimport type { JSXBase, VNode } from '@stencil/core/internal';\nimport clsx from 'clsx';\nimport { getMsgType, isMsgDefinedAndInputTouched, type MsgPropType, type Stringified } from '../../../schema';\nimport { getDefaultProps } from '../_helpers/getDefaultProps';\nimport type { DefaultInputProps } from '../_types';\n\nexport type InputProps = DefaultInputProps<JSXBase.InputHTMLAttributes<HTMLInputElement>> & {\n\tmsg?: Stringified<MsgPropType>;\n\ttouched?: boolean;\n\tspellcheck?: boolean;\n\tsuggestions?: VNode;\n\tvalue?: string | number | string[];\n} & {\n\t[key: `aria-${string}`]: unknown;\n\t[key: `data-${string}`]: unknown;\n};\n\nconst InputFc: FC<InputProps> = (props) => {\n\tconst { class: classNames, msg, required, disabled, touched, readonly, ariaDescribedBy, hideLabel, label, suggestions, value, ...other } = props;\n\n\tconst stateCssClasses = {\n\t\t['kol-input--disabled']: Boolean(disabled),\n\t\t['kol-input--required']: Boolean(required),\n\t\t['kol-input--touched']: Boolean(touched),\n\t\t['kol-input--readonly']: Boolean(readonly),\n\t\t[`kol-input--${getMsgType(msg)}`]: isMsgDefinedAndInputTouched(msg, touched),\n\t};\n\n\tconst inputProps: JSXBase.InputHTMLAttributes<HTMLInputElement> = {\n\t\tclass: clsx('kol-input', stateCssClasses, classNames),\n\t\trequired: required,\n\t\tdisabled: disabled,\n\t\treadonly: readonly,\n\t\ttype: 'text',\n\t\tlist: suggestions ? `${other.id}-list` : undefined,\n\t\t...getDefaultProps({ ariaDescribedBy, hideLabel, label }),\n\t\t...other,\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t<input {...inputProps} value={value} />\n\t\t\t{suggestions}\n\t\t</>\n\t);\n};\n\nexport default InputFc;\n"],"names":[],"mappings":";;;;;;;;;AAmBA,MAAM,OAAO,GAAmB,CAAC,KAAK,KAAI;IACzC,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAA,GAAe,KAAK,EAAf,KAAK,GAAK,MAAA,CAAA,KAAK,EAA1I,CAAA,OAAA,EAAA,KAAA,EAAA,UAAA,EAAA,UAAA,EAAA,SAAA,EAAA,UAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,OAAA,EAAA,aAAA,EAAA,OAAA,CAAkI,CAAQ;AAEhJ,IAAA,MAAM,eAAe,GAAG;AACvB,QAAA,CAAC,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC;AAC1C,QAAA,CAAC,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC;AAC1C,QAAA,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC;AACxC,QAAA,CAAC,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC;AAC1C,QAAA,CAAC,CAAc,WAAA,EAAA,UAAU,CAAC,GAAG,CAAC,CAAA,CAAE,GAAG,2BAA2B,CAAC,GAAG,EAAE,OAAO,CAAC;KAC5E;AAED,IAAA,MAAM,UAAU,GACf,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,EAAA,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,eAAe,EAAE,UAAU,CAAC,EACrD,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,WAAW,GAAG,CAAA,EAAG,KAAK,CAAC,EAAE,CAAA,KAAA,CAAO,GAAG,SAAS,EAC/C,EAAA,eAAe,CAAC,EAAE,eAAe,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,CAAA,EACtD,KAAK,CACR;AAED,IAAA,QACC,CAAA,CAAA,QAAA,EAAA,IAAA,EACC,CAAA,CAAA,OAAA,EAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAW,UAAU,EAAA,EAAE,KAAK,EAAE,KAAK,EAAI,CAAA,CAAA,EACtC,WAAW,CACV;AAEL;;;;"}
1
+ {"version":3,"file":"Input-DgvlKYaQ.js","sources":["src/functional-components/inputs/Input/Input.tsx"],"sourcesContent":["/* eslint-disable no-console */\nimport { Fragment, h, type FunctionalComponent as FC } from '@stencil/core';\nimport type { JSXBase, VNode } from '@stencil/core/internal';\nimport clsx from 'clsx';\nimport { getMsgType, isMsgDefinedAndInputTouched, type MsgPropType, type Stringified } from '../../../schema';\nimport { getDefaultProps } from '../_helpers/getDefaultProps';\nimport type { DefaultInputProps } from '../_types';\n\nexport type InputProps = DefaultInputProps<JSXBase.InputHTMLAttributes<HTMLInputElement>> & {\n\tmsg?: Stringified<MsgPropType>;\n\ttouched?: boolean;\n\tspellcheck?: boolean;\n\tsuggestions?: VNode;\n\tvalue?: string | number | string[];\n} & {\n\t[key: `aria-${string}`]: unknown;\n\t[key: `data-${string}`]: unknown;\n};\n\nconst InputFc: FC<InputProps> = (props) => {\n\tconst { class: classNames, msg, required, disabled, touched, readonly, ariaDescribedBy, hideLabel, label, suggestions, value, ...other } = props;\n\n\tconst stateCssClasses = {\n\t\t['kol-input--disabled']: Boolean(disabled),\n\t\t['kol-input--required']: Boolean(required),\n\t\t['kol-input--touched']: Boolean(touched),\n\t\t['kol-input--readonly']: Boolean(readonly),\n\t\t[`kol-input--${getMsgType(msg)}`]: isMsgDefinedAndInputTouched(msg, touched),\n\t};\n\n\tconst inputProps: JSXBase.InputHTMLAttributes<HTMLInputElement> = {\n\t\tclass: clsx('kol-input', stateCssClasses, classNames),\n\t\trequired: required,\n\t\tdisabled: disabled,\n\t\treadonly: readonly,\n\t\ttype: 'text',\n\t\tlist: suggestions ? `${other.id}-list` : undefined,\n\t\t...getDefaultProps({ ariaDescribedBy, hideLabel, label }),\n\t\t...other,\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t<input {...inputProps} value={value} />\n\t\t\t{suggestions}\n\t\t</>\n\t);\n};\n\nexport default InputFc;\n"],"names":[],"mappings":";;;;;;;;;AAmBA,MAAM,OAAO,GAAmB,CAAC,KAAK,KAAI;IACzC,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAA,GAAe,KAAK,EAAf,KAAK,GAAK,MAAA,CAAA,KAAK,EAA1I,CAAA,OAAA,EAAA,KAAA,EAAA,UAAA,EAAA,UAAA,EAAA,SAAA,EAAA,UAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,OAAA,EAAA,aAAA,EAAA,OAAA,CAAkI,CAAQ;AAEhJ,IAAA,MAAM,eAAe,GAAG;AACvB,QAAA,CAAC,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC;AAC1C,QAAA,CAAC,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC;AAC1C,QAAA,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC;AACxC,QAAA,CAAC,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC;AAC1C,QAAA,CAAC,CAAc,WAAA,EAAA,UAAU,CAAC,GAAG,CAAC,CAAA,CAAE,GAAG,2BAA2B,CAAC,GAAG,EAAE,OAAO,CAAC;KAC5E;AAED,IAAA,MAAM,UAAU,GACf,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,EAAA,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,eAAe,EAAE,UAAU,CAAC,EACrD,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,WAAW,GAAG,CAAA,EAAG,KAAK,CAAC,EAAE,CAAA,KAAA,CAAO,GAAG,SAAS,EAC/C,EAAA,eAAe,CAAC,EAAE,eAAe,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,CAAA,EACtD,KAAK,CACR;AAED,IAAA,QACC,CAAA,CAAA,QAAA,EAAA,IAAA,EACC,CAAA,CAAA,OAAA,EAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAW,UAAU,EAAA,EAAE,KAAK,EAAE,KAAK,EAAI,CAAA,CAAA,EACtC,WAAW,CACV;AAEL;;;;"}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{_ as i}from"./tslib.es6-CxX45GIN.js";import{h as e}from"./index-COx1MtC5.js";import{I as t}from"./Input-DgvlKYaQ.js";import{a as n}from"./FormFieldStateWrapper-LHV3Rpm4.js";const s=s=>{var{id:t,suggestions:a}=s,n=i(s,["id","suggestions"]);return a?e("datalist",Object.assign({id:`${t}-list`},n),a.map(i=>e("option",{value:i}))):null};function a(i,t,a){var r;const _=[...n(i).ariaDescribedBy,...null!==(r=t.ariaDescribedBy)&&void 0!==r?r:[]],l={id:i._id,hideLabel:i._hideLabel,label:i._label,disabled:i._disabled,name:i._name};if("_accessKey"in i&&(l.accessKey=i._accessKey),"_type"in i&&(l.type=i._type),"_value"in i&&(l.value=i._value),"_required"in i&&(l.required=i._required),"_maxLength"in i&&"_maxLengthBehavior"in i&&"hard"===i._maxLengthBehavior&&(l.maxlength=i._maxLength),"_placeholder"in i&&(l.placeholder=i._placeholder),"_autoComplete"in i&&(l.autoComplete=i._autoComplete),"_spellCheck"in i&&(l.spellcheck=i._spellCheck),"_pattern"in i&&(l.pattern=i._pattern),"_readOnly"in i&&(l.readonly=i._readOnly),"_min"in i&&(l.min=i._min),"_max"in i&&(l.max=i._max),"_step"in i&&(l.step=i._step),"_multiple"in i&&(l.multiple=i._multiple),"_checked"in i&&(l.checked=i._checked),"_indeterminate"in i&&(l.indeterminate=i._indeterminate),"_touched"in i&&(l.touched=i._touched),"_msg"in i&&(l.msg=i._msg),"_shortKey"in i&&(l["aria-keyshortcuts"]=i._shortKey),"_suggestions"in i&&!a){Array.isArray(i._suggestions)&&i._suggestions.length>0&&(l.suggestions=e(s,{id:i._id,suggestions:i._suggestions}))}return Object.assign(Object.assign(Object.assign({},l),t),{ariaDescribedBy:_})}const r=s=>{var{state:n,customSuggestions:r}=s,_=i(s,["state","customSuggestions"]);return e(t,Object.assign({},a(n,_,r)))};export{r as I,s as S};
@@ -1 +1 @@
1
- {"version":3,"file":"InputStateWrapper-BNXEE43D.js","sources":["src/functional-components/Suggestions/Suggestions.tsx","src/functional-component-wrappers/InputStateWrapper/InputStateWrapper.tsx"],"sourcesContent":["import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport type { JSXBase } from '@stencil/core/internal';\nimport type { W3CInputValue } from '../../schema';\n\nexport type SuggestionsProps = JSXBase.HTMLAttributes<HTMLDataListElement> & {\n\tid: string;\n\tsuggestions: W3CInputValue[];\n};\n\nconst SuggestionsFc: FC<SuggestionsProps> = ({ id, suggestions, ...other }) => {\n\tif (!suggestions) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<datalist id={`${id}-list`} {...other}>\n\t\t\t{suggestions.map((option: W3CInputValue) => (\n\t\t\t\t<option value={option} />\n\t\t\t))}\n\t\t</datalist>\n\t);\n};\nexport default SuggestionsFc;\n","import type { VNode } from '@stencil/core';\nimport { h, type FunctionalComponent as FC } from '@stencil/core';\nimport KolInputFc, { type InputProps } from '../../functional-components/inputs/Input';\n\nimport SuggestionsFc from '../../functional-components/Suggestions';\nimport {\n\ttype InputCheckboxStates,\n\ttype InputColorStates,\n\ttype InputEmailStates,\n\ttype InputFileStates,\n\ttype InputNumberStates,\n\ttype InputPasswordStates,\n\ttype InputRadioStates,\n\ttype InputRangeStates,\n\ttype InputTextStates,\n\ttype MsgPropType,\n} from '../../schema';\nimport { getRenderStates } from '../_helpers/getRenderStates';\n\ntype InputState =\n\t| InputTextStates\n\t| InputEmailStates\n\t| InputPasswordStates\n\t| InputNumberStates\n\t| InputColorStates\n\t| InputFileStates\n\t| InputRangeStates\n\t| InputCheckboxStates\n\t| InputRadioStates;\n\nexport type InputStateWrapperProps = Partial<InputProps> & {\n\tstate: InputState;\n\tcustomSuggestions?: boolean;\n};\n\n/**\n * @param state\n * @param other\n * @param customSuggestions - Set to true when a custom implementation for _suggestions is provided. Omits the native datalist.\n */\nfunction getInputProps(state: InputState, other: Partial<InputProps>, customSuggestions?: boolean): InputProps {\n\tconst renderStates = getRenderStates(state);\n\tconst ariaDescribedBy = [...renderStates.ariaDescribedBy, ...(other.ariaDescribedBy ?? [])];\n\n\tconst props: InputProps = {\n\t\tid: state._id,\n\t\thideLabel: state._hideLabel,\n\t\tlabel: state._label,\n\t\tdisabled: state._disabled,\n\t\tname: state._name,\n\t};\n\n\tif ('_accessKey' in state) props.accessKey = state._accessKey;\n\tif ('_type' in state) props.type = state._type;\n\tif ('_value' in state) props.value = state._value as string | number | string[];\n\tif ('_required' in state) props.required = state._required;\n\tif ('_maxLength' in state && '_maxLengthBehavior' in state && state._maxLengthBehavior === 'hard') props.maxlength = state._maxLength;\n\tif ('_placeholder' in state) props.placeholder = state._placeholder;\n\tif ('_autoComplete' in state) props.autoComplete = state._autoComplete;\n\tif ('_spellCheck' in state) props.spellcheck = state._spellCheck;\n\tif ('_pattern' in state) props.pattern = state._pattern;\n\tif ('_readOnly' in state) props.readonly = state._readOnly;\n\tif ('_min' in state) props.min = state._min;\n\tif ('_max' in state) props.max = state._max;\n\tif ('_step' in state) props.step = state._step;\n\tif ('_multiple' in state) props.multiple = state._multiple;\n\tif ('_checked' in state) props.checked = state._checked;\n\tif ('_indeterminate' in state) props.indeterminate = state._indeterminate;\n\tif ('_touched' in state) props.touched = state._touched;\n\tif ('_msg' in state) props.msg = state._msg as MsgPropType;\n\tif ('_shortKey' in state) props['aria-keyshortcuts'] = state._shortKey;\n\n\tif ('_suggestions' in state && !customSuggestions) {\n\t\tconst hasSuggestions = Array.isArray(state._suggestions) && state._suggestions.length > 0;\n\t\tif (hasSuggestions) {\n\t\t\tprops.suggestions = (<SuggestionsFc id={state._id} suggestions={state._suggestions} />) as VNode;\n\t\t}\n\t}\n\n\treturn {\n\t\t...props,\n\t\t...other,\n\t\tariaDescribedBy,\n\t};\n}\n\nconst InputStateWrapper: FC<InputStateWrapperProps> = ({ state, customSuggestions, ...other }) => {\n\treturn <KolInputFc {...getInputProps(state, other, customSuggestions)} />;\n};\n\nexport default InputStateWrapper;\n"],"names":["KolInputFc"],"mappings":";;;;;;;;AASA,MAAM,aAAa,GAAyB,CAAC,EAA6B,KAAI;QAAjC,EAAE,EAAE,EAAE,WAAW,EAAA,GAAA,EAAY,EAAP,KAAK,GAAA,MAAA,CAAA,EAAA,EAA3B,qBAA6B,CAAF;IACvE,IAAI,CAAC,WAAW,EAAE;AACjB,QAAA,OAAO,IAAI;;IAGZ,QACC,CAAA,CAAA,UAAA,EAAA,MAAA,CAAA,MAAA,CAAA,EAAU,EAAE,EAAE,CAAA,EAAG,EAAE,CAAO,KAAA,CAAA,EAAA,EAAM,KAAK,CAAA,EACnC,WAAW,CAAC,GAAG,CAAC,CAAC,MAAqB,MACtC,CAAQ,CAAA,QAAA,EAAA,EAAA,KAAK,EAAE,MAAM,EAAI,CAAA,CACzB,CAAC,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E,EAAE,KAAK,CAAC,GAAG,EAAE,WAAW,EAAE,KAAK,CAAC,YAAY,EAAA,CAAI,CAAU;;;IAIlG,OAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EACI,KAAK,CAAA,EACL,KAAK,CAAA,EAAA,EACR,eAAe,EACd,CAAA;AACH;AAEA,MAAM,iBAAiB,GAA+B,CAAC,EAAsC,KAAI;QAA1C,EAAE,KAAK,EAAE,iBAAiB,EAAA,GAAA,EAAY,EAAP,KAAK,GAAA,MAAA,CAAA,EAAA,EAApC,8BAAsC,CAAF;IAC1F,OAAO,CAAC,CAAAA,OAAU,EAAK,MAAA,CAAA,MAAA,CAAA,EAAA,EAAA,aAAa,CAAC,KAAK,EAAE,KAAK,EAAE,iBAAiB,CAAC,CAAA,CAAI;AAC1E;;;;"}
1
+ {"version":3,"file":"InputStateWrapper-febP2jPy.js","sources":["src/functional-components/Suggestions/Suggestions.tsx","src/functional-component-wrappers/InputStateWrapper/InputStateWrapper.tsx"],"sourcesContent":["import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport type { JSXBase } from '@stencil/core/internal';\nimport type { W3CInputValue } from '../../schema';\n\nexport type SuggestionsProps = JSXBase.HTMLAttributes<HTMLDataListElement> & {\n\tid: string;\n\tsuggestions: W3CInputValue[];\n};\n\nconst SuggestionsFc: FC<SuggestionsProps> = ({ id, suggestions, ...other }) => {\n\tif (!suggestions) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<datalist id={`${id}-list`} {...other}>\n\t\t\t{suggestions.map((option: W3CInputValue) => (\n\t\t\t\t<option value={option} />\n\t\t\t))}\n\t\t</datalist>\n\t);\n};\nexport default SuggestionsFc;\n","import type { VNode } from '@stencil/core';\nimport { h, type FunctionalComponent as FC } from '@stencil/core';\nimport KolInputFc, { type InputProps } from '../../functional-components/inputs/Input';\n\nimport SuggestionsFc from '../../functional-components/Suggestions';\nimport {\n\ttype InputCheckboxStates,\n\ttype InputColorStates,\n\ttype InputEmailStates,\n\ttype InputFileStates,\n\ttype InputNumberStates,\n\ttype InputPasswordStates,\n\ttype InputRadioStates,\n\ttype InputRangeStates,\n\ttype InputTextStates,\n\ttype MsgPropType,\n} from '../../schema';\nimport { getRenderStates } from '../_helpers/getRenderStates';\n\ntype InputState =\n\t| InputTextStates\n\t| InputEmailStates\n\t| InputPasswordStates\n\t| InputNumberStates\n\t| InputColorStates\n\t| InputFileStates\n\t| InputRangeStates\n\t| InputCheckboxStates\n\t| InputRadioStates;\n\nexport type InputStateWrapperProps = Partial<InputProps> & {\n\tstate: InputState;\n\tcustomSuggestions?: boolean;\n};\n\n/**\n * @param state\n * @param other\n * @param customSuggestions - Set to true when a custom implementation for _suggestions is provided. Omits the native datalist.\n */\nfunction getInputProps(state: InputState, other: Partial<InputProps>, customSuggestions?: boolean): InputProps {\n\tconst renderStates = getRenderStates(state);\n\tconst ariaDescribedBy = [...renderStates.ariaDescribedBy, ...(other.ariaDescribedBy ?? [])];\n\n\tconst props: InputProps = {\n\t\tid: state._id,\n\t\thideLabel: state._hideLabel,\n\t\tlabel: state._label,\n\t\tdisabled: state._disabled,\n\t\tname: state._name,\n\t};\n\n\tif ('_accessKey' in state) props.accessKey = state._accessKey;\n\tif ('_type' in state) props.type = state._type;\n\tif ('_value' in state) props.value = state._value as string | number | string[];\n\tif ('_required' in state) props.required = state._required;\n\tif ('_maxLength' in state && '_maxLengthBehavior' in state && state._maxLengthBehavior === 'hard') props.maxlength = state._maxLength;\n\tif ('_placeholder' in state) props.placeholder = state._placeholder;\n\tif ('_autoComplete' in state) props.autoComplete = state._autoComplete;\n\tif ('_spellCheck' in state) props.spellcheck = state._spellCheck;\n\tif ('_pattern' in state) props.pattern = state._pattern;\n\tif ('_readOnly' in state) props.readonly = state._readOnly;\n\tif ('_min' in state) props.min = state._min;\n\tif ('_max' in state) props.max = state._max;\n\tif ('_step' in state) props.step = state._step;\n\tif ('_multiple' in state) props.multiple = state._multiple;\n\tif ('_checked' in state) props.checked = state._checked;\n\tif ('_indeterminate' in state) props.indeterminate = state._indeterminate;\n\tif ('_touched' in state) props.touched = state._touched;\n\tif ('_msg' in state) props.msg = state._msg as MsgPropType;\n\tif ('_shortKey' in state) props['aria-keyshortcuts'] = state._shortKey;\n\n\tif ('_suggestions' in state && !customSuggestions) {\n\t\tconst hasSuggestions = Array.isArray(state._suggestions) && state._suggestions.length > 0;\n\t\tif (hasSuggestions) {\n\t\t\tprops.suggestions = (<SuggestionsFc id={state._id} suggestions={state._suggestions} />) as VNode;\n\t\t}\n\t}\n\n\treturn {\n\t\t...props,\n\t\t...other,\n\t\tariaDescribedBy,\n\t};\n}\n\nconst InputStateWrapper: FC<InputStateWrapperProps> = ({ state, customSuggestions, ...other }) => {\n\treturn <KolInputFc {...getInputProps(state, other, customSuggestions)} />;\n};\n\nexport default InputStateWrapper;\n"],"names":["KolInputFc"],"mappings":";;;;;;;;AASA,MAAM,aAAa,GAAyB,CAAC,EAA6B,KAAI;QAAjC,EAAE,EAAE,EAAE,WAAW,EAAA,GAAA,EAAY,EAAP,KAAK,GAAA,MAAA,CAAA,EAAA,EAA3B,qBAA6B,CAAF;IACvE,IAAI,CAAC,WAAW,EAAE;AACjB,QAAA,OAAO,IAAI;;IAGZ,QACC,CAAA,CAAA,UAAA,EAAA,MAAA,CAAA,MAAA,CAAA,EAAU,EAAE,EAAE,CAAA,EAAG,EAAE,CAAO,KAAA,CAAA,EAAA,EAAM,KAAK,CAAA,EACnC,WAAW,CAAC,GAAG,CAAC,CAAC,MAAqB,MACtC,CAAQ,CAAA,QAAA,EAAA,EAAA,KAAK,EAAE,MAAM,EAAI,CAAA,CACzB,CAAC,CACQ;AAEb;;ACmBA,SAAS,aAAa,CAAC,KAAiB,EAAE,KAA0B,EAAE,iBAA2B,EAAA;;AAChG,IAAA,MAAM,YAAY,GAAG,eAAe,CAAC,KAAK,CAAC;AAC3C,IAAA,MAAM,eAAe,GAAG,CAAC,GAAG,YA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AAK,CAAA,EACL,KAAK,CAAA,EAAA,EACR,eAAe,EACd,CAAA;AACH;AAEA,MAAM,iBAAiB,GAA+B,CAAC,EAAsC,KAAI;QAA1C,EAAE,KAAK,EAAE,iBAAiB,EAAA,GAAA,EAAY,EAAP,KAAK,GAAA,MAAA,CAAA,EAAA,EAApC,8BAAsC,CAAF;IAC1F,OAAO,CAAC,CAAAA,OAAU,EAAK,MAAA,CAAA,MAAA,CAAA,EAAA,EAAA,aAAa,CAAC,KAAK,EAAE,KAAK,EAAE,iBAAiB,CAAC,CAAA,CAAI;AAC1E;;;;"}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{a as t,b as n,c as r}from"./isObject-DvSELytj.js";import{h as s,F as e}from"./index-COx1MtC5.js";var l="[object String]";function a(s){return"string"==typeof s||!n(s)&&t(s)&&r(s)==l}const i=({badgeText:t,label:l})=>{const n=t;let[r,...a]=l.split(n);return 0===a.length&&(t=n.toUpperCase(),[r,...a]=l.split(n)),0===a.length&&(t=n.toLowerCase(),[r,...a]=l.split(n)),s(e,null,r,a.length?s(e,null,s("u",null,t),a.join(n)):null)};export{i as K,a as i};
@@ -1 +1 @@
1
- {"version":3,"file":"InternalUnderlinedBadgeText-CF6FOiQi.js","sources":["../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isString.js","src/functional-components/InternalUnderlinedBadgeText/InternalUnderlinedBadgeText.tsx"],"sourcesContent":["import baseGetTag from './_baseGetTag.js';\nimport isArray from './isArray.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar stringTag = '[object String]';\n\n/**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\nfunction isString(value) {\n return typeof value == 'string' ||\n (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n}\n\nexport default isString;\n","import { Fragment, h, type FunctionalComponent as FC } from '@stencil/core';\nimport type { BadgeTextPropType } from '../../schema';\n\ntype InternalUnderlinedBadgeTextProps = {\n\tbadgeText: BadgeTextPropType;\n\tlabel: string;\n};\n\nconst KolInternalUnderlinedBadgeTextFc: FC<InternalUnderlinedBadgeTextProps> = ({ badgeText, label }) => {\n\t/* Prefer capitalization as defined in the badge Text, try uppercase/lowercase when there's no match. */\n\tconst badgeTextAsString: string = badgeText;\n\tlet [first, ...rest] = label.split(badgeTextAsString);\n\tif (rest.length === 0) {\n\t\tbadgeText = badgeTextAsString.toUpperCase();\n\t\t[first, ...rest] = label.split(badgeTextAsString);\n\t}\n\tif (rest.length === 0) {\n\t\tbadgeText = badgeTextAsString.toLowerCase();\n\t\t[first, ...rest] = label.split(badgeTextAsString);\n\t}\n\treturn (\n\t\t<>\n\t\t\t{first}\n\t\t\t{rest.length ? (\n\t\t\t\t<>\n\t\t\t\t\t<u>{badgeText}</u>\n\t\t\t\t\t{rest.join(badgeTextAsString)}\n\t\t\t\t</>\n\t\t\t) : null}\n\t\t</>\n\t);\n};\n\nexport default KolInternalUnderlinedBadgeTextFc;\n"],"names":[],"mappings":";;;;;;AAIA;AACA,IAAI,SAAS,GAAG,iBAAiB;;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,QAAQ,CAAC,KAAK,EAAE;AACzB,EAAE,OAAO,OAAO,KAAK,IAAI,QAAQ;AACjC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,YAAY,CAAC,KAAK,CAAC,IAAI,UAAU,CAAC,KAAK,CAAC,IAAI,SAAS,CAAC;AAC9E;;ACnBM,MAAA,gCAAgC,GAAyC,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,KAAI;IAEvG,MAAM,iBAAiB,GAAW,SAAS;AAC3C,IAAA,IAAI,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,iBAAiB,CAAC;AACrD,IAAA,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;AACtB,QAAA,SAAS,GAAG,iBAAiB,CAAC,WAAW,EAAE;AAC3C,QAAA,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,iBAAiB,CAAC;;AAElD,IAAA,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;AACtB,QAAA,SAAS,GAAG,iBAAiB,CAAC,WAAW,EAAE;AAC3C,QAAA,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,iBAAiB,CAAC;;IAElD,QACC,CAAA,CAAA,QAAA,EAAA,IAAA,EACE,KAAK,EACL,IAAI,CAAC,MAAM,IACX,CAAA,CAAA,QAAA,EAAA,IAAA,EACC,CAAA,CAAA,GAAA,EAAA,IAAA,EAAI,SAAS,CAAK,EACjB,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAC3B,IACA,IAAI,CACN;AAEL;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"InternalUnderlinedBadgeText-B2Mp6LvR.js","sources":["../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isString.js","src/functional-components/InternalUnderlinedBadgeText/InternalUnderlinedBadgeText.tsx"],"sourcesContent":["import baseGetTag from './_baseGetTag.js';\nimport isArray from './isArray.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar stringTag = '[object String]';\n\n/**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\nfunction isString(value) {\n return typeof value == 'string' ||\n (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n}\n\nexport default isString;\n","import { Fragment, h, type FunctionalComponent as FC } from '@stencil/core';\nimport type { BadgeTextPropType } from '../../schema';\n\ntype InternalUnderlinedBadgeTextProps = {\n\tbadgeText: BadgeTextPropType;\n\tlabel: string;\n};\n\nconst KolInternalUnderlinedBadgeTextFc: FC<InternalUnderlinedBadgeTextProps> = ({ badgeText, label }) => {\n\t/* Prefer capitalization as defined in the badge Text, try uppercase/lowercase when there's no match. */\n\tconst badgeTextAsString: string = badgeText;\n\tlet [first, ...rest] = label.split(badgeTextAsString);\n\tif (rest.length === 0) {\n\t\tbadgeText = badgeTextAsString.toUpperCase();\n\t\t[first, ...rest] = label.split(badgeTextAsString);\n\t}\n\tif (rest.length === 0) {\n\t\tbadgeText = badgeTextAsString.toLowerCase();\n\t\t[first, ...rest] = label.split(badgeTextAsString);\n\t}\n\treturn (\n\t\t<>\n\t\t\t{first}\n\t\t\t{rest.length ? (\n\t\t\t\t<>\n\t\t\t\t\t<u>{badgeText}</u>\n\t\t\t\t\t{rest.join(badgeTextAsString)}\n\t\t\t\t</>\n\t\t\t) : null}\n\t\t</>\n\t);\n};\n\nexport default KolInternalUnderlinedBadgeTextFc;\n"],"names":[],"mappings":";;;;;;AAIA;AACA,IAAI,SAAS,GAAG,iBAAiB;;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,QAAQ,CAAC,KAAK,EAAE;AACzB,EAAE,OAAO,OAAO,KAAK,IAAI,QAAQ;AACjC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,YAAY,CAAC,KAAK,CAAC,IAAI,UAAU,CAAC,KAAK,CAAC,IAAI,SAAS,CAAC;AAC9E;;ACnBM,MAAA,gCAAgC,GAAyC,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,KAAI;IAEvG,MAAM,iBAAiB,GAAW,SAAS;AAC3C,IAAA,IAAI,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,iBAAiB,CAAC;AACrD,IAAA,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;AACtB,QAAA,SAAS,GAAG,iBAAiB,CAAC,WAAW,EAAE;AAC3C,QAAA,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,iBAAiB,CAAC;;AAElD,IAAA,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;AACtB,QAAA,SAAS,GAAG,iBAAiB,CAAC,WAAW,EAAE;AAC3C,QAAA,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,iBAAiB,CAAC;;IAElD,QACC,CAAA,CAAA,QAAA,EAAA,IAAA,EACE,KAAK,EACL,IAAI,CAAC,MAAM,IACX,CAAA,CAAA,QAAA,EAAA,IAAA,EACC,CAAA,CAAA,GAAA,EAAA,IAAA,EAAI,SAAS,CAAK,EACjB,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAC3B,IACA,IAAI,CACN;AAEL;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{_ as l}from"./tslib.es6-CxX45GIN.js";import{h as e,F as a}from"./index-COx1MtC5.js";import{c as s}from"./clsx-eK3rPvPS.js";import{K as n}from"./Icon-Cx4bRen6.js";import"./common-L1K0yh1S.js";import{s as t}from"./reuse-CX4AQDkS.js";import{m as o}from"./markdown-CVks1MC0.js";import{i as r,K as i}from"./InternalUnderlinedBadgeText-B2Mp6LvR.js";import{i as c}from"./isObject-DvSELytj.js";const b=a=>{const{class:l,style:o,label:t,icon:r}=a;return e(n,{class:s("icon",l),style:o,label:t||"",icons:r})},d=({label:a,hideLabel:l,allowMarkdown:n,badgeText:t})=>{if(l||!r(a))return null;const b="kol-span__label";return n?e("span",{class:s(b,"md"),innerHTML:o(a)}):e("span",{class:s(b)},t?e(i,{label:a,badgeText:t}):a)},m=({hideLabel:s,label:l,badgeText:n,allowMarkdown:o},i)=>{const b=!t(l);return e(a,null,b&&e(d,{label:l,hideLabel:s,badgeText:n,allowMarkdown:o}),e("span",{"aria-hidden":b?"true":void 0,class:"kol-span__label",hidden:b},i),r(n)&&n.length>0&&e("kbd",{class:"badge-text-hint","aria-hidden":"true"},n))},p=(a,n)=>{const{class:o,label:t,hideLabel:i=!1,badgeText:d,allowMarkdown:p,icons:g}=a,h=l(a,["class","label","hideLabel","badgeText","allowMarkdown","icons"]);let j=null,k=null,x=null,u=null;return c(g)?(j=g.top,k=g.left,x=g.right,u=g.bottom):r(g)&&(k={icon:g}),e("span",Object.assign({class:s("kol-span",{"kol-span--hide-label":i},o)},h),c(j)&&e(b,Object.assign({class:"top"},j)),e("span",{class:"kol-span__container"},c(k)&&e(b,Object.assign({class:"left"},k)),e(m,{label:t,hideLabel:i,allowMarkdown:p,badgeText:d},n),c(x)&&e(b,Object.assign({class:"right"},x))),c(u)&&e(b,Object.assign({class:"bottom"},u)))};export{p as K};
@@ -1 +1 @@
1
- {"version":3,"file":"Span-CNwuRioU.js","sources":["src/functional-components/Span/IconHelper.tsx","src/functional-components/Span/LabelHelper.tsx","src/functional-components/Span/SpanCoreHelper.tsx","src/functional-components/Span/Span.tsx"],"sourcesContent":["import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport clsx from 'clsx';\n\nimport type { KoliBriCustomIcon } from '../../schema';\nimport KolIconFc from '../Icon';\n\nconst IconHelper: FC<KoliBriCustomIcon & { class?: string }> = (props) => {\n\tconst { class: classNames, style, label, icon } = props;\n\n\treturn <KolIconFc class={clsx('icon', classNames)} style={style} label={label || ''} icons={icon} />;\n};\n\nexport default IconHelper;\n","import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport clsx from 'clsx';\nimport { isString } from 'lodash-es';\n\nimport { md } from '../../utils/markdown';\nimport KolInternalUnderlinedBadgeTextFc from '../InternalUnderlinedBadgeText';\n\nconst LabelHelper: FC<{ label: string; hideLabel?: boolean; badgeText?: string; hideExpertSlot?: boolean; allowMarkdown?: boolean }> = ({\n\tlabel,\n\thideLabel,\n\tallowMarkdown,\n\tbadgeText,\n}) => {\n\tif (hideLabel || !isString(label)) {\n\t\treturn null;\n\t}\n\n\tconst defaultClasses = 'kol-span__label';\n\n\tif (allowMarkdown) {\n\t\treturn <span class={clsx(defaultClasses, 'md')} innerHTML={md(label)} />;\n\t}\n\n\tif (badgeText) {\n\t\treturn (\n\t\t\t<span class={clsx(defaultClasses)}>\n\t\t\t\t<KolInternalUnderlinedBadgeTextFc label={label} badgeText={badgeText} />\n\t\t\t</span>\n\t\t);\n\t}\n\n\treturn <span class={clsx(defaultClasses)}>{label}</span>;\n};\n\nexport default LabelHelper;\n","import { Fragment, h, type FunctionalComponent as FC } from '@stencil/core';\nimport { isString } from 'lodash-es';\n\nimport { showExpertSlot } from '../../schema';\nimport LabelHelper from './LabelHelper';\n\nconst KolSpanCoreHelperFc: FC<{ label: string; hideLabel?: boolean; badgeText?: string; hideExpertSlot?: boolean; allowMarkdown?: boolean }> = (\n\t{ hideLabel, label, badgeText, allowMarkdown },\n\tchildren,\n) => {\n\tconst hideExpertSlot = !showExpertSlot(label);\n\n\treturn (\n\t\t<>\n\t\t\t{hideExpertSlot && <LabelHelper label={label} hideLabel={hideLabel} badgeText={badgeText} allowMarkdown={allowMarkdown} />}\n\t\t\t<span aria-hidden={hideExpertSlot ? 'true' : undefined} class=\"kol-span__label\" hidden={hideExpertSlot}>\n\t\t\t\t{children}\n\t\t\t</span>\n\t\t\t{isString(badgeText) && badgeText.length > 0 && (\n\t\t\t\t<kbd class=\"badge-text-hint\" aria-hidden=\"true\">\n\t\t\t\t\t{badgeText}\n\t\t\t\t</kbd>\n\t\t\t)}\n\t\t</>\n\t);\n};\n\nexport default KolSpanCoreHelperFc;\n","import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport type { JSXBase } from '@stencil/core/internal';\nimport clsx from 'clsx';\nimport { isObject, isString } from 'lodash-es';\n\nimport { type BadgeTextPropType, type HideLabelPropType, type IconOrIconClass, type KoliBriIconsProp, type LabelWithExpertSlotPropType } from '../../schema';\n\nimport IconHelper from './IconHelper';\nimport SpanCoreHelper from './SpanCoreHelper';\n\ntype IconType = IconOrIconClass | undefined | null;\n\nexport type SpanProps = JSXBase.HTMLAttributes<HTMLSpanElement> & {\n\tlabel: LabelWithExpertSlotPropType;\n\tbadgeText?: BadgeTextPropType;\n\tallowMarkdown?: boolean;\n\ticons?: KoliBriIconsProp;\n\thideLabel?: HideLabelPropType;\n};\n\nconst KolSpanFc: FC<SpanProps> = (props, children) => {\n\tconst { class: classNames, label, hideLabel = false, badgeText, allowMarkdown, icons, ...other } = props;\n\tlet topIconProps: IconType = null;\n\tlet leftIconProps: IconType = null;\n\tlet rightIconProps: IconType = null;\n\tlet bottomIconProps: IconType = null;\n\n\tif (isObject(icons)) {\n\t\ttopIconProps = icons.top;\n\t\tleftIconProps = icons.left;\n\t\trightIconProps = icons.right;\n\t\tbottomIconProps = icons.bottom;\n\t} else if (isString(icons)) {\n\t\tleftIconProps = {\n\t\t\ticon: icons,\n\t\t};\n\t}\n\n\treturn (\n\t\t<span class={clsx('kol-span', { 'kol-span--hide-label': hideLabel }, classNames)} {...other}>\n\t\t\t{isObject(topIconProps) && <IconHelper class=\"top\" {...topIconProps} />}\n\t\t\t<span class=\"kol-span__container\">\n\t\t\t\t{isObject(leftIconProps) && <IconHelper class=\"left\" {...leftIconProps} />}\n\t\t\t\t<SpanCoreHelper label={label} hideLabel={hideLabel} allowMarkdown={allowMarkdown} badgeText={badgeText}>\n\t\t\t\t\t{children}\n\t\t\t\t</SpanCoreHelper>\n\t\t\t\t{isObject(rightIconProps) && <IconHelper class=\"right\" {...rightIconProps} />}\n\t\t\t</span>\n\t\t\t{isObject(bottomIconProps) && <IconHelper class=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AAC,MAAM;;AACxB,SAAA,IAAI,QAAQ,CAAC,KAAK,CAAC,EAAE;AAC3B,QAAA,aAAa,GAAG;AACf,YAAA,IAAI,EAAE,KAAK;SACX;;AAGF,IAAA,QACC,CAAM,CAAA,MAAA,EAAA,MAAA,CAAA,MAAA,CAAA,EAAA,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,EAAE,sBAAsB,EAAE,SAAS,EAAE,EAAE,UAAU,CAAC,IAAM,KAAK,CAAA,EACzF,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,CAAA,UAAU,EAAC,MAAA,CAAA,MAAA,CAAA,EAAA,KAAK,EAAC,KAAK,EAAK,EAAA,YAAY,CAAI,CAAA,EACvE,CAAM,CAAA,MAAA,EAAA,EAAA,KAAK,EAAC,qBAAqB,EAAA,EAC/B,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,CAAA,UAAU,EAAC,MAAA,CAAA,MAAA,CAAA,EAAA,KAAK,EAAC,MAAM,EAAK,EAAA,aAAa,CAAI,CAAA,EAC1E,CAAA,CAACA,mBAAc,EAAC,EAAA,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,aAAa,EAAE,aAAa,EAAE,SAAS,EAAE,SAAS,EAAA,EACpG,QAAQ,CACO,EAChB,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,CAAA,UAAU,EAAC,MAAA,CAAA,MAAA,CAAA,EAAA,KAAK,EAAC,OAAO,EAAK,EAAA,cAAc,EAAI,CACvE,EACN,QAAQ,CAAC,eAAe,CAAC,IAAI,EAAC,UAAU,EAAA,MAAA,CAAA,MAAA,CAAA,EAAC,KAAK,EAAC,QAAQ,EAAK,EAAA,eAAe,CAAI,CAAA,CAC1E;AAET;;;;"}
1
+ {"version":3,"file":"Span-C6xaM2ei.js","sources":["src/functional-components/Span/IconHelper.tsx","src/functional-components/Span/LabelHelper.tsx","src/functional-components/Span/SpanCoreHelper.tsx","src/functional-components/Span/Span.tsx"],"sourcesContent":["import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport clsx from 'clsx';\n\nimport type { KoliBriCustomIcon } from '../../schema';\nimport KolIconFc from '../Icon';\n\nconst IconHelper: FC<KoliBriCustomIcon & { class?: string }> = (props) => {\n\tconst { class: classNames, style, label, icon } = props;\n\n\treturn <KolIconFc class={clsx('icon', classNames)} style={style} label={label || ''} icons={icon} />;\n};\n\nexport default IconHelper;\n","import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport clsx from 'clsx';\nimport { isString } from 'lodash-es';\n\nimport { md } from '../../utils/markdown';\nimport KolInternalUnderlinedBadgeTextFc from '../InternalUnderlinedBadgeText';\n\nconst LabelHelper: FC<{ label: string; hideLabel?: boolean; badgeText?: string; hideExpertSlot?: boolean; allowMarkdown?: boolean }> = ({\n\tlabel,\n\thideLabel,\n\tallowMarkdown,\n\tbadgeText,\n}) => {\n\tif (hideLabel || !isString(label)) {\n\t\treturn null;\n\t}\n\n\tconst defaultClasses = 'kol-span__label';\n\n\tif (allowMarkdown) {\n\t\treturn <span class={clsx(defaultClasses, 'md')} innerHTML={md(label)} />;\n\t}\n\n\tif (badgeText) {\n\t\treturn (\n\t\t\t<span class={clsx(defaultClasses)}>\n\t\t\t\t<KolInternalUnderlinedBadgeTextFc label={label} badgeText={badgeText} />\n\t\t\t</span>\n\t\t);\n\t}\n\n\treturn <span class={clsx(defaultClasses)}>{label}</span>;\n};\n\nexport default LabelHelper;\n","import { Fragment, h, type FunctionalComponent as FC } from '@stencil/core';\nimport { isString } from 'lodash-es';\n\nimport { showExpertSlot } from '../../schema';\nimport LabelHelper from './LabelHelper';\n\nconst KolSpanCoreHelperFc: FC<{ label: string; hideLabel?: boolean; badgeText?: string; hideExpertSlot?: boolean; allowMarkdown?: boolean }> = (\n\t{ hideLabel, label, badgeText, allowMarkdown },\n\tchildren,\n) => {\n\tconst hideExpertSlot = !showExpertSlot(label);\n\n\treturn (\n\t\t<>\n\t\t\t{hideExpertSlot && <LabelHelper label={label} hideLabel={hideLabel} badgeText={badgeText} allowMarkdown={allowMarkdown} />}\n\t\t\t<span aria-hidden={hideExpertSlot ? 'true' : undefined} class=\"kol-span__label\" hidden={hideExpertSlot}>\n\t\t\t\t{children}\n\t\t\t</span>\n\t\t\t{isString(badgeText) && badgeText.length > 0 && (\n\t\t\t\t<kbd class=\"badge-text-hint\" aria-hidden=\"true\">\n\t\t\t\t\t{badgeText}\n\t\t\t\t</kbd>\n\t\t\t)}\n\t\t</>\n\t);\n};\n\nexport default KolSpanCoreHelperFc;\n","import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport type { JSXBase } from '@stencil/core/internal';\nimport clsx from 'clsx';\nimport { isObject, isString } from 'lodash-es';\n\nimport { type BadgeTextPropType, type HideLabelPropType, type IconOrIconClass, type KoliBriIconsProp, type LabelWithExpertSlotPropType } from '../../schema';\n\nimport IconHelper from './IconHelper';\nimport SpanCoreHelper from './SpanCoreHelper';\n\ntype IconType = IconOrIconClass | undefined | null;\n\nexport type SpanProps = JSXBase.HTMLAttributes<HTMLSpanElement> & {\n\tlabel: LabelWithExpertSlotPropType;\n\tbadgeText?: BadgeTextPropType;\n\tallowMarkdown?: boolean;\n\ticons?: KoliBriIconsProp;\n\thideLabel?: HideLabelPropType;\n};\n\nconst KolSpanFc: FC<SpanProps> = (props, children) => {\n\tconst { class: classNames, label, hideLabel = false, badgeText, allowMarkdown, icons, ...other } = props;\n\tlet topIconProps: IconType = null;\n\tlet leftIconProps: IconType = null;\n\tlet rightIconProps: IconType = null;\n\tlet bottomIconProps: IconType = null;\n\n\tif (isObject(icons)) {\n\t\ttopIconProps = icons.top;\n\t\tleftIconProps = icons.left;\n\t\trightIconProps = icons.right;\n\t\tbottomIconProps = icons.bottom;\n\t} else if (isString(icons)) {\n\t\tleftIconProps = {\n\t\t\ticon: icons,\n\t\t};\n\t}\n\n\treturn (\n\t\t<span class={clsx('kol-span', { 'kol-span--hide-label': hideLabel }, classNames)} {...other}>\n\t\t\t{isObject(topIconProps) && <IconHelper class=\"top\" {...topIconProps} />}\n\t\t\t<span class=\"kol-span__container\">\n\t\t\t\t{isObject(leftIconProps) && <IconHelper class=\"left\" {...leftIconProps} />}\n\t\t\t\t<SpanCoreHelper label={label} hideLabel={hideLabel} allowMarkdown={allowMarkdown} badgeText={badgeText}>\n\t\t\t\t\t{children}\n\t\t\t\t</SpanCoreHelper>\n\t\t\t\t{isObject(rightIconProps) && <IconHelper class=\"right\" {...rightIconProps} />}\n\t\t\t</span>\n\t\t\t{isObject(bottomIconProps) && <IconHelper class=\"bottom\" {...bottomIconProps} />}\n\t\t</span>\n\t);\n};\n\nexport default KolSpanFc;\n"],"names":["SpanCoreHelper"],"mappings":";;;;;;;;;;;;;AAMA,MAAM,UAAU,GAA+C,CAAC,KAAK,KAAI;AACxE,IAAA,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,KAAK;AAEvD,IAAA,OAAO,CAAA,CAAC,SAAS,EAAA,EAAC,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,UAAU,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,IAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAA,CAAI;AACrG,CAAC;;ACHD,MAAM,WAAW,GAAsH,CAAC,EACvI,KAAK,EACL,SAAS,EACT,aAAa,EACb,SAAS,GACT,KAAI;IACJ,IAAI,SAAS,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;AAClC,QAAA,OAAO,IAAI;;IAGZ,MAAM,cAAc,GAAG,iBAAiB;IAExC,IAAI,aAAa,EAAE;QAClB,OAAO,YAAM,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,EAAE,SAAS,EAAE,EAAE,CAAC,KAAK,CAAC,GAAI;;IAGzE,IAAI,SAAS,EAAE;AACd,QAAA,QACC,CAAM,CAAA,MAAA,EAAA,EAAA,KAAK,EAAE,IAAI,CAAC,cAAc,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O,EAAK,EAAA,cAAc,EAAI,CACvE,EACN,QAAQ,CAAC,eAAe,CAAC,IAAI,EAAC,UAAU,EAAA,MAAA,CAAA,MAAA,CAAA,EAAC,KAAK,EAAC,QAAQ,EAAK,EAAA,eAAe,CAAI,CAAA,CAC1E;AAET;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"access-and-short-key-Dy2a7Py3.js","sources":["src/schema/props/access-key.ts","src/schema/props/short-key.ts","src/schema/props/tab-index.ts","src/schema/validators/access-and-short-key.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\nimport { watchString } from '../utils';\n\n/* types */\nexport type AccessKeyPropType = string;\n\n/**\n * Defines the key combination that can be used to trigger or focus the components interactive element.\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/accesskey\n */\nexport type PropAccessKey = {\n\taccessKey: AccessKeyPropType;\n};\n\n/* validator */\nexport const validateAccessKey = (component: Generic.Element.Component, value?: AccessKeyPropType): void => {\n\twatchString(component, '_accessKey', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\nimport { watchString } from '../utils';\n\n/* types */\nexport type ShortKeyPropType = string;\n\n/**\n * Adds a visual short key hint to the component and sets the `aria-keyshortcuts` attribute on the focusable element.\n */\nexport type PropShortKey = {\n\tshortKey: ShortKeyPropType;\n};\n\n/* validator */\nexport const validateShortKey = (component: Generic.Element.Component, value?: ShortKeyPropType): void => {\n\twatchString(component, '_shortKey', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { WatchNumberOptions } from '../utils';\nimport { a11yHint, watchNumber } from '../utils';\n\n/* types */\nexport type TabIndexPropType = number;\n\n/**\n * Defines which tab-index the primary element of the component has.\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex\n */\nexport type PropTabIndex = {\n\ttabIndex: TabIndexPropType;\n};\n\n/* constants */\nconst options: WatchNumberOptions = {\n\thooks: {\n\t\tafterPatch: (value) => {\n\t\t\tif (value !== -1 && value !== 0) {\n\t\t\t\ta11yHint(`Don't Use Tabindex Greater than 0: https://adrianroselli.com/2014/11/dont-use-tabindex-greater-than-0.html`);\n\t\t\t}\n\t\t},\n\t},\n};\n\n/* validator */\nexport const validateTabIndex = (component: Generic.Element.Component, value?: TabIndexPropType): void => {\n\twatchNumber(component, '_tabIndex', value, options);\n};\n","import type { AccessKeyPropType, ShortKeyPropType } from '../props';\n\nexport const validateAccessAndShortKey = (accessKey?: AccessKeyPropType, shortKey?: ShortKeyPropType) => {\n\tif (accessKey && shortKey) {\n\t\tthrow new Error('AccessKey and ShortKey are used. Only one is allowed.');\n\t}\n};\n"],"names":[],"mappings":";;;;;MAea,iBAAiB,GAAG,CAAC,SAAoC,EAAE,KAAyB,KAAU;AAC1G,IAAA,WAAW,CAAC,SAAS,EAAE,YAAY,EAAE,KAAK,CAAC;AAC5C;;MCHa,gBAAgB,GAAG,CAAC,SAAoC,EAAE,KAAwB,KAAU;AACxG,IAAA,WAAW,CAAC,SAAS,EAAE,WAAW,EAAE,KAAK,CAAC;AAC3C;;ACCA,MAAM,OAAO,GAAuB;AACnC,IAAA,KAAK,EAAE;AACN,QAAA,UAAU,EAAE,CAAC,KAAK,KAAI;YACrB,IAAI,KAAK,KAAK,EAAE,IAAI,KAAK,KAAK,CAAC,EAAE;gBAChC,QAAQ,CAAC,CAA4G,0GAAA,CAAA,CAAC;;SAEvH;AACD,KAAA;CACD;MAGY,gBAAgB,GAAG,CAAC,SAAoC,EAAE,KAAwB,KAAU;IACxG,WAAW,CAAC,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,CAAC;AACpD;;MC5Ba,yBAAyB,GAAG,CAAC,SAA6B,EAAE,QAA2B,KAAI;AACvG,IAAA,IAAI,SAAS,IAAI,QAAQ,EAAE;AAC1B,QAAA,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC;;AAE1E;;;;"}
1
+ {"version":3,"file":"access-and-short-key-Dy2a7Py3.js","sources":["src/schema/props/access-key.ts","src/schema/props/short-key.ts","src/schema/props/tab-index.ts","src/schema/validators/access-and-short-key.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\nimport { watchString } from '../utils';\n\n/* types */\nexport type AccessKeyPropType = string;\n\n/**\n * Defines the key combination that can be used to trigger or focus the component's interactive element.\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/accesskey\n */\nexport type PropAccessKey = {\n\taccessKey: AccessKeyPropType;\n};\n\n/* validator */\nexport const validateAccessKey = (component: Generic.Element.Component, value?: AccessKeyPropType): void => {\n\twatchString(component, '_accessKey', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\nimport { watchString } from '../utils';\n\n/* types */\nexport type ShortKeyPropType = string;\n\n/**\n * Adds a visual short key hint to the component and sets the `aria-keyshortcuts` attribute on the focusable element.\n */\nexport type PropShortKey = {\n\tshortKey: ShortKeyPropType;\n};\n\n/* validator */\nexport const validateShortKey = (component: Generic.Element.Component, value?: ShortKeyPropType): void => {\n\twatchString(component, '_shortKey', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { WatchNumberOptions } from '../utils';\nimport { a11yHint, watchNumber } from '../utils';\n\n/* types */\nexport type TabIndexPropType = number;\n\n/**\n * Defines which tab-index the primary element of the component has.\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex\n */\nexport type PropTabIndex = {\n\ttabIndex: TabIndexPropType;\n};\n\n/* constants */\nconst options: WatchNumberOptions = {\n\thooks: {\n\t\tafterPatch: (value) => {\n\t\t\tif (value !== -1 && value !== 0) {\n\t\t\t\ta11yHint(`Don't Use Tabindex Greater than 0: https://adrianroselli.com/2014/11/dont-use-tabindex-greater-than-0.html`);\n\t\t\t}\n\t\t},\n\t},\n};\n\n/* validator */\nexport const validateTabIndex = (component: Generic.Element.Component, value?: TabIndexPropType): void => {\n\twatchNumber(component, '_tabIndex', value, options);\n};\n","import type { AccessKeyPropType, ShortKeyPropType } from '../props';\n\nexport const validateAccessAndShortKey = (accessKey?: AccessKeyPropType, shortKey?: ShortKeyPropType) => {\n\tif (accessKey && shortKey) {\n\t\tthrow new Error('AccessKey and ShortKey are used. Only one is allowed.');\n\t}\n};\n"],"names":[],"mappings":";;;;;MAea,iBAAiB,GAAG,CAAC,SAAoC,EAAE,KAAyB,KAAU;AAC1G,IAAA,WAAW,CAAC,SAAS,EAAE,YAAY,EAAE,KAAK,CAAC;AAC5C;;MCHa,gBAAgB,GAAG,CAAC,SAAoC,EAAE,KAAwB,KAAU;AACxG,IAAA,WAAW,CAAC,SAAS,EAAE,WAAW,EAAE,KAAK,CAAC;AAC3C;;ACCA,MAAM,OAAO,GAAuB;AACnC,IAAA,KAAK,EAAE;AACN,QAAA,UAAU,EAAE,CAAC,KAAK,KAAI;YACrB,IAAI,KAAK,KAAK,EAAE,IAAI,KAAK,KAAK,CAAC,EAAE;gBAChC,QAAQ,CAAC,CAA4G,0GAAA,CAAA,CAAC;;SAEvH;AACD,KAAA;CACD;MAGY,gBAAgB,GAAG,CAAC,SAAoC,EAAE,KAAwB,KAAU;IACxG,WAAW,CAAC,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,CAAC;AACpD;;MC5Ba,yBAAyB,GAAG,CAAC,SAA6B,EAAE,QAA2B,KAAI;AACvG,IAAA,IAAI,SAAS,IAAI,QAAQ,EAAE;AAC1B,QAAA,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC;;AAE1E;;;;"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{L as o,n as t,b as a}from"./common-L1K0yh1S.js";import{a as n}from"./index-DXabIfEM.js";var f=()=>{n(o=>{try{o.shadowRoot instanceof ShadowRoot&&t(o,a(o))}catch(o){}return"default"}),import("./devtools-Bonmqoiz.js").then(o=>{"object"==typeof o&&null!==o&&"function"==typeof o.initialize&&o.initialize()}).catch(t=>{o.error(t)})};const r=f;export{r as g};
4
+ import{L as o,n as t,b as a}from"./common-L1K0yh1S.js";import{a as n}from"./index-COx1MtC5.js";var r=()=>{n(o=>{try{o.shadowRoot instanceof ShadowRoot&&t(o,a(o))}catch(o){}return"default"}),import("./devtools-C4AShvlP.js").then(o=>{"object"==typeof o&&null!==o&&"function"==typeof o.initialize&&o.initialize()}).catch(t=>{o.error(t)})};const s=r;export{s as g};
@@ -1 +1 @@
1
- {"version":3,"file":"app-globals-gEPVeAeS.js","sources":["src/global/script.ts","@stencil/core/internal/app-globals"],"sourcesContent":["import { getThemeDetails, setThemeStyle } from 'adopted-style-sheets';\n\nimport { setMode } from '@stencil/core';\nimport { Log } from '../schema';\n\nexport default () => {\n\tsetMode((elm) => {\n\t\ttry {\n\t\t\tif (elm.shadowRoot instanceof ShadowRoot) {\n\t\t\t\tsetThemeStyle(elm, getThemeDetails(elm));\n\t\t\t}\n\t\t} catch (error) {\n\t\t\t/**\n\t\t\t * Try is needed for SSR.\n\t\t\t * - no HTMLElement is available\n\t\t\t * - no ShadowRoot is available\n\t\t\t */\n\t\t}\n\t\treturn 'default';\n\t});\n\n\timport('./devtools')\n\t\t.then((devTools) => {\n\t\t\tif (typeof devTools === 'object' && devTools !== null && typeof devTools.initialize === 'function') {\n\t\t\t\tdevTools.initialize();\n\t\t\t}\n\t\t})\n\t\t.catch((error) => {\n\t\t\tLog.error(error);\n\t\t});\n};\n","import appGlobalScript from '/home/runner/work/kolibri/kolibri/packages/components/src/global/script.ts';\nexport const globalScripts = appGlobalScript;\nexport const globalStyles = \"\";\n"],"names":["setThemeStyle","getThemeDetails"],"mappings":";;;;;;AAKA,sBAAe,MAAK;AACnB,IAAA,OAAO,CAAC,CAAC,GAAG,KAAI;AACf,QAAA,IAAI;AACH,YAAA,IAAI,GAAG,CAAC,UAAU,YAAY,UAAU,EAAE;gBACzCA,EAAa,CAAC,GAAG,EAAEC,CAAe,CAAC,GAAG,CAAC,CAAC;;;QAExC,OAAO,KAAK,EAAE;;AAOhB,QAAA,OAAO,SAAS;AACjB,KAAC,CAAC;IAEF,OAAO,wBAAY;AACjB,SAAA,IAAI,CAAC,CAAC,QAAQ,KAAI;AAClB,QAAA,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,KAAK,IAAI,IAAI,OAAO,QAAQ,CAAC,UAAU,KAAK,UAAU,EAAE;YACnG,QAAQ,CAAC,UAAU,EAAE;;AAEvB,KAAC;AACA,SAAA,KAAK,CAAC,CAAC,KAAK,KAAI;AAChB,QAAA,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC;AACjB,KAAC,CAAC;AACJ,CAAC;;AC7BW,MAAC,aAAa,GAAG;;;;"}
1
+ {"version":3,"file":"app-globals-ekKWD6Td.js","sources":["src/global/script.ts","@stencil/core/internal/app-globals"],"sourcesContent":["import { getThemeDetails, setThemeStyle } from 'adopted-style-sheets';\n\nimport { setMode } from '@stencil/core';\nimport { Log } from '../schema';\n\nexport default () => {\n\tsetMode((elm) => {\n\t\ttry {\n\t\t\tif (elm.shadowRoot instanceof ShadowRoot) {\n\t\t\t\tsetThemeStyle(elm, getThemeDetails(elm));\n\t\t\t}\n\t\t} catch (error) {\n\t\t\t/**\n\t\t\t * Try is needed for SSR.\n\t\t\t * - no HTMLElement is available\n\t\t\t * - no ShadowRoot is available\n\t\t\t */\n\t\t}\n\t\treturn 'default';\n\t});\n\n\timport('./devtools')\n\t\t.then((devTools) => {\n\t\t\tif (typeof devTools === 'object' && devTools !== null && typeof devTools.initialize === 'function') {\n\t\t\t\tdevTools.initialize();\n\t\t\t}\n\t\t})\n\t\t.catch((error) => {\n\t\t\tLog.error(error);\n\t\t});\n};\n","import appGlobalScript from '/home/runner/work/kolibri/kolibri/packages/components/src/global/script.ts';\nexport const globalScripts = appGlobalScript;\nexport const globalStyles = \"\";\n"],"names":["setThemeStyle","getThemeDetails"],"mappings":";;;;;;AAKA,sBAAe,MAAK;AACnB,IAAA,OAAO,CAAC,CAAC,GAAG,KAAI;AACf,QAAA,IAAI;AACH,YAAA,IAAI,GAAG,CAAC,UAAU,YAAY,UAAU,EAAE;gBACzCA,EAAa,CAAC,GAAG,EAAEC,CAAe,CAAC,GAAG,CAAC,CAAC;;;QAExC,OAAO,KAAK,EAAE;;AAOhB,QAAA,OAAO,SAAS;AACjB,KAAC,CAAC;IAEF,OAAO,wBAAY;AACjB,SAAA,IAAI,CAAC,CAAC,QAAQ,KAAI;AAClB,QAAA,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,KAAK,IAAI,IAAI,OAAO,QAAQ,CAAC,UAAU,KAAK,UAAU,EAAE;YACnG,QAAQ,CAAC,UAAU,EAAE;;AAEvB,KAAC;AACA,SAAA,KAAK,CAAC,CAAC,KAAK,KAAI;AAChB,QAAA,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC;AACjB,KAAC,CAAC;AACJ,CAAC;;AC7BW,MAAC,aAAa,GAAG;;;;"}
File without changes
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{e as t,I as e,j as i,N as s}from"./common-L1K0yh1S.js";import{g as o}from"./bootstrap-DKvDv4kw.js";const a=(e,s,i)=>{t(e,"_name",s,i)},n=t=>"KOL-BUTTON"===t||"KOL-COMBOBOX"===t||"KOL-INPUT-CHECKBOX"===t||"KOL-INPUT-COLOR"===t||"KOL-INPUT-DATE"===t||"KOL-INPUT-EMAIL"===t||"KOL-INPUT-FILE"===t||"KOL-INPUT-NUMBER"===t||"KOL-INPUT-PASSWORD"===t||"KOL-INPUT-RADIO"===t||"KOL-INPUT-RANGE"===t||"KOL-INPUT-TEXT"===t||"KOL-SELECT"===t||"KOL-SINGLE-SELECT"===t||"KOL-TEXTAREA"===t;class l{constructor(t,s,a){var r,l,c,u;if(this.experimentalMode=e(),this.setFormAssociatedValue=t=>{var e;const s=null===(e=this.formAssociated)||void 0===e?void 0:e.getAttribute("name");null!==s&&""!==s||i(` The form field (${this.type}) must have a name attribute to be form-associated. Please define the _name attribute.`);const o=this.tryToStringifyValue(t);this.syncValue(t,o,this.formAssociated),this.syncValue(t,o,this.syncToOwnInput)},this.component=t,this.host=this.findHostWithShadowRoot(a),this.type=s,(null===(r=o())||void 0===r?void 0:r.reflectInputValues)&&n(null===(l=this.host)||void 0===l?void 0:l.tagName)&&t._name){switch(null===(c=this.host)||void 0===c||c.querySelectorAll("input,select,textarea").forEach(t=>{var e;null===(e=this.host)||void 0===e||e.removeChild(t)}),this.type){case"button":case"color":case"date":case"email":case"file":case"number":case"password":case"radio":case"range":case"text":this.formAssociated=document.createElement("input"),this.formAssociated.setAttribute("type",this.type);break;case"select":this.formAssociated=document.createElement("select"),this.formAssociated.setAttribute("multiple","");break;case"textarea":this.formAssociated=document.createElement("textarea");break;default:this.formAssociated=document.createElement("input"),this.formAssociated.setAttribute("type","hidden")}this.formAssociated.setAttribute("data-form-associated",""),this.formAssociated.setAttribute("hidden",""),null===(u=this.host)||void 0===u||u.appendChild(this.formAssociated)}}findHostWithShadowRoot(t){for(;null===(null==t?void 0:t.shadowRoot)&&t!==document.body;)(t=null==t?void 0:t.parentNode).host&&(t=t.host);return t}setAttribute(t,e,s){if(this.experimentalMode)try{if("boolean"!=typeof(s="object"==typeof s&&null!==s?JSON.stringify(s):s)&&"number"!=typeof s&&"string"!=typeof s)throw new Error("Invalid value type: "+typeof s);null==e||e.setAttribute(t,`${s}`)}catch(s){null==e||e.removeAttribute(t)}}tryToStringifyValue(t){try{return"object"==typeof t&&null!==t?JSON.stringify(t).toString():null==t?null:t.toString()}catch(t){return s(`The form field raw value is not able to stringify! ${t}`),""}}syncValue(t,e,s){if(s)switch(this.type){case"file":s.files=t;break;case"select":s.querySelectorAll("option").forEach(t=>{s.removeChild(t)}),Array.isArray(t)&&t.forEach(t=>{const e=this.tryToStringifyValue(t);if("string"==typeof e){const t=document.createElement("option");t.setAttribute("value",e),t.setAttribute("selected",""),s.appendChild(t)}});break;case"radio":"string"==typeof e&&(s.setAttribute("value",e),s.setAttribute("checked",""),s.value=e);break;default:"string"==typeof e?(s.setAttribute("value",e),s.value=e):(s.removeAttribute("value"),s.value="")}}validateName(t){a(this.component,t,{hooks:{afterPatch:()=>{this.setAttribute("name",this.formAssociated,this.component.state._name)}}}),void 0===t&&i("A name on input fields or switches is not strictly required, but it might be relevant for the autocomplete function and for the static submission of the input field.")}validateSyncValueBySelector(t){if(this.experimentalMode&&"string"==typeof t){const e=document.querySelector(t);e&&(this.syncToOwnInput=e)}}componentWillLoad(){this.validateName(this.component._name),this.validateSyncValueBySelector(this.component._syncValueBySelector)}}export{l as A};
4
+ import{e as t,I as e,j as i,N as s}from"./common-L1K0yh1S.js";import{g as o}from"./bootstrap-BsrX_E7q.js";const a=(e,s,i)=>{t(e,"_name",s,i)},n=t=>"KOL-BUTTON"===t||"KOL-COMBOBOX"===t||"KOL-INPUT-CHECKBOX"===t||"KOL-INPUT-COLOR"===t||"KOL-INPUT-DATE"===t||"KOL-INPUT-EMAIL"===t||"KOL-INPUT-FILE"===t||"KOL-INPUT-NUMBER"===t||"KOL-INPUT-PASSWORD"===t||"KOL-INPUT-RADIO"===t||"KOL-INPUT-RANGE"===t||"KOL-INPUT-TEXT"===t||"KOL-SELECT"===t||"KOL-SINGLE-SELECT"===t||"KOL-TEXTAREA"===t;class l{constructor(t,s,a){var r,l,c,u;if(this.experimentalMode=e(),this.setFormAssociatedValue=t=>{var e;const s=null===(e=this.formAssociated)||void 0===e?void 0:e.getAttribute("name");null!==s&&""!==s||i(` The form field (${this.type}) must have a name attribute to be form-associated. Please define the _name attribute.`);const o=this.tryToStringifyValue(t);this.syncValue(t,o,this.formAssociated),this.syncValue(t,o,this.syncToOwnInput)},this.component=t,this.host=this.findHostWithShadowRoot(a),this.type=s,(null===(r=o())||void 0===r?void 0:r.reflectInputValues)&&n(null===(l=this.host)||void 0===l?void 0:l.tagName)&&t._name){switch(null===(c=this.host)||void 0===c||c.querySelectorAll("input,select,textarea").forEach(t=>{var e;null===(e=this.host)||void 0===e||e.removeChild(t)}),this.type){case"button":case"color":case"date":case"email":case"file":case"number":case"password":case"radio":case"range":case"text":this.formAssociated=document.createElement("input"),this.formAssociated.setAttribute("type",this.type);break;case"select":this.formAssociated=document.createElement("select"),this.formAssociated.setAttribute("multiple","");break;case"textarea":this.formAssociated=document.createElement("textarea");break;default:this.formAssociated=document.createElement("input"),this.formAssociated.setAttribute("type","hidden")}this.formAssociated.setAttribute("data-form-associated",""),this.formAssociated.setAttribute("hidden",""),null===(u=this.host)||void 0===u||u.appendChild(this.formAssociated)}}findHostWithShadowRoot(t){for(;null===(null==t?void 0:t.shadowRoot)&&t!==document.body;)(t=null==t?void 0:t.parentNode).host&&(t=t.host);return t}setAttribute(t,e,s){if(this.experimentalMode)try{if("boolean"!=typeof(s="object"==typeof s&&null!==s?JSON.stringify(s):s)&&"number"!=typeof s&&"string"!=typeof s)throw new Error("Invalid value type: "+typeof s);null==e||e.setAttribute(t,`${s}`)}catch(s){null==e||e.removeAttribute(t)}}tryToStringifyValue(t){try{return"object"==typeof t&&null!==t?JSON.stringify(t).toString():null==t?null:t.toString()}catch(t){return s(`The form field raw value is not able to stringify! ${t}`),""}}syncValue(t,e,s){if(s)switch(this.type){case"file":s.files=t;break;case"select":s.querySelectorAll("option").forEach(t=>{s.removeChild(t)}),Array.isArray(t)&&t.forEach(t=>{const e=this.tryToStringifyValue(t);if("string"==typeof e){const t=document.createElement("option");t.setAttribute("value",e),t.setAttribute("selected",""),s.appendChild(t)}});break;case"radio":"string"==typeof e&&(s.setAttribute("value",e),s.setAttribute("checked",""),s.value=e);break;default:"string"==typeof e?(s.setAttribute("value",e),s.value=e):(s.removeAttribute("value"),s.value="")}}validateName(t){a(this.component,t,{hooks:{afterPatch:()=>{this.setAttribute("name",this.formAssociated,this.component.state._name)}}}),void 0===t&&i("A name on input fields or switches is not strictly required, but it might be relevant for the autocomplete function and for the static submission of the input field.")}validateSyncValueBySelector(t){if(this.experimentalMode&&"string"==typeof t){const e=document.querySelector(t);e&&(this.syncToOwnInput=e)}}componentWillLoad(){this.validateName(this.component._name),this.validateSyncValueBySelector(this.component._syncValueBySelector)}}export{l as A};
@@ -1 +1 @@
1
- {"version":3,"file":"associated.controller-CvM-u0FR.js","sources":["src/schema/props/name.ts","src/components/input-adapter-leanup/associated.controller.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport type { WatchStringOptions } from '../utils';\nimport { watchString } from '../utils';\n\n/* types */\nexport type NamePropType = string;\n\n/**\n * Defines the technical name of an input field.\n */\nexport type PropName = {\n\tname: NamePropType;\n};\n\n/* validator */\nexport const validateName = (component: Generic.Element.Component, value?: NamePropType, options?: WatchStringOptions): void => {\n\twatchString(component, '_name', value, options);\n};\n","import type { NamePropType, PropSyncValueBySelector, StencilUnknown, SyncValueBySelectorPropType } from '../../schema';\nimport { devHint, devWarning, getExperimentalMode, validateName } from '../../schema';\n\nimport type { Generic } from 'adopted-style-sheets';\nimport { getOptions } from '../../core/bootstrap';\n\ntype RequiredProps = NonNullable<unknown>;\ntype OptionalProps = {\n\tname: string;\n} & PropSyncValueBySelector;\ntype Props = Generic.Element.Members<RequiredProps, OptionalProps>;\ntype Watches = Generic.Element.Watchers<RequiredProps, OptionalProps>;\n\ntype HTMLInputFileElement = HTMLInputElement & {\n\tfiles: FileList;\n};\n\nconst isAssociatedTagName = (name?: string): boolean =>\n\tname === 'KOL-BUTTON' ||\n\tname === 'KOL-COMBOBOX' ||\n\tname === 'KOL-INPUT-CHECKBOX' ||\n\tname === 'KOL-INPUT-COLOR' ||\n\tname === 'KOL-INPUT-DATE' ||\n\tname === 'KOL-INPUT-EMAIL' ||\n\tname === 'KOL-INPUT-FILE' ||\n\tname === 'KOL-INPUT-NUMBER' ||\n\tname === 'KOL-INPUT-PASSWORD' ||\n\tname === 'KOL-INPUT-RADIO' ||\n\tname === 'KOL-INPUT-RANGE' ||\n\tname === 'KOL-INPUT-TEXT' ||\n\tname === 'KOL-SELECT' ||\n\tname === 'KOL-SINGLE-SELECT' ||\n\tname === 'KOL-TEXTAREA';\n\nexport class AssociatedInputController implements Watches {\n\tprivate readonly experimentalMode = getExperimentalMode();\n\n\tprotected readonly component: Generic.Element.Component & Props;\n\tprotected readonly type: string;\n\tprotected readonly host?: HTMLElement;\n\n\tpublic readonly formAssociated?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\tpublic syncToOwnInput?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\n\tpublic constructor(component: Generic.Element.Component & Props, type: string, host?: HTMLElement) {\n\t\tthis.component = component;\n\t\tthis.host = this.findHostWithShadowRoot(host);\n\t\tthis.type = type;\n\n\t\tif (getOptions()?.reflectInputValues && isAssociatedTagName(this.host?.tagName) && component._name) {\n\t\t\tthis.host?.querySelectorAll('input,select,textarea').forEach((el) => {\n\t\t\t\tthis.host?.removeChild(el);\n\t\t\t});\n\t\t\tswitch (this.type) {\n\t\t\t\tcase 'button':\n\t\t\t\tcase 'color':\n\t\t\t\tcase 'date':\n\t\t\t\tcase 'email':\n\t\t\t\tcase 'file':\n\t\t\t\tcase 'number':\n\t\t\t\tcase 'password':\n\t\t\t\tcase 'radio':\n\t\t\t\tcase 'range':\n\t\t\t\tcase 'text':\n\t\t\t\t\tthis.formAssociated = document.createElement('input');\n\t\t\t\t\tthis.formAssociated.setAttribute('type', this.type);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'select':\n\t\t\t\t\tthis.formAssociated = document.createElement('select');\n\t\t\t\t\tthis.formAssociated.setAttribute('multiple', '');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'textarea':\n\t\t\t\t\tthis.formAssociated = document.createElement('textarea');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'checkbox': // Checkbox uses default case\n\t\t\t\tcase 'single-select': // SingleSelect uses default case\n\t\t\t\tcase 'combobox': // Combobox uses default case\n\t\t\t\tdefault:\n\t\t\t\t\tthis.formAssociated = document.createElement('input');\n\t\t\t\t\tthis.formAssociated.setAttribute('type', 'hidden');\n\t\t\t}\n\t\t\tthis.formAssociated.setAttribute('data-form-associated', '');\n\t\t\tthis.formAssociated.setAttribute('hidden', '');\n\t\t\tthis.host?.appendChild(this.formAssociated);\n\t\t}\n\t}\n\n\t/**\n\t * The associated elements must not reside within the ShadowRoot and must\n\t * reside as children in the host to be recognized by native forms.\n\t */\n\tprivate findHostWithShadowRoot(host?: HTMLElement): HTMLElement | undefined {\n\t\twhile (host?.shadowRoot === null && host !== document.body) {\n\t\t\thost = host?.parentNode as HTMLElement;\n\t\t\tif ((host as unknown as ShadowRoot).host) {\n\t\t\t\thost = (host as unknown as ShadowRoot).host as HTMLElement;\n\t\t\t}\n\t\t}\n\t\treturn host;\n\t}\n\n\tprotected setAttribute(qualifiedName: string, element?: HTMLElement, value?: string | number | boolean) {\n\t\tif (this.experimentalMode) {\n\t\t\ttry {\n\t\t\t\tvalue = typeof value === 'object' && value !== null ? JSON.stringify(value) : value;\n\t\t\t\tif (typeof value === 'boolean' || typeof value === 'number' || typeof value === 'string') {\n\t\t\t\t\telement?.setAttribute(qualifiedName, `${value as string}`);\n\t\t\t\t} else {\n\t\t\t\t\tthrow new Error(`Invalid value type: ${typeof value}`);\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\telement?.removeAttribute(qualifiedName);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * We need to stringify the value, for the setAttribute method.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/setAttribute\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/attributes\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/attributes#value\n\t *\n\t * TODO: It is possible that the value are a cyclic object value. So we need a custom\n\t * JSON.stringify method from outside to convert it to string.\n\t */\n\tprivate tryToStringifyValue(value: StencilUnknown): string | null {\n\t\ttry {\n\t\t\treturn typeof value === 'object' && value !== null ? JSON.stringify(value).toString() : value === null || value === undefined ? null : value.toString();\n\t\t} catch (e) {\n\t\t\tdevWarning(`The form field raw value is not able to stringify! ${e as string}`);\n\t\t\treturn '';\n\t\t}\n\t}\n\n\t/**\n\t * We try to support native form-associated custom elements.\n\t *\n\t * @see https://github.com/public-ui/kolibri/discussions/2821\n\t */\n\tpublic readonly setFormAssociatedValue = (rawValue: StencilUnknown) => {\n\t\tconst name = this.formAssociated?.getAttribute('name');\n\t\tif (name === null || name === '') {\n\t\t\tdevHint(` The form field (${this.type}) must have a name attribute to be form-associated. Please define the _name attribute.`);\n\t\t}\n\t\tconst strValue = this.tryToStringifyValue(rawValue);\n\t\tthis.syncValue(rawValue, strValue, this.formAssociated);\n\t\tthis.syncValue(rawValue, strValue, this.syncToOwnInput);\n\t};\n\n\tprivate syncValue(\n\t\trawValue: StencilUnknown,\n\t\tstrValue: string | null,\n\t\tassociatedElement?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement,\n\t) {\n\t\tif (associatedElement) {\n\t\t\tswitch (this.type) {\n\t\t\t\tcase 'file':\n\t\t\t\t\t(associatedElement as HTMLInputFileElement).files = rawValue as FileList;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'select':\n\t\t\t\t\t(associatedElement as HTMLSelectElement).querySelectorAll('option').forEach((el) => {\n\t\t\t\t\t\t(associatedElement as HTMLSelectElement).removeChild(el);\n\t\t\t\t\t});\n\t\t\t\t\tif (Array.isArray(rawValue)) {\n\t\t\t\t\t\trawValue.forEach((rawValueItem) => {\n\t\t\t\t\t\t\tconst strValueItem = this.tryToStringifyValue(rawValueItem as string);\n\t\t\t\t\t\t\tif (typeof strValueItem === 'string') {\n\t\t\t\t\t\t\t\tconst option = document.createElement('option');\n\t\t\t\t\t\t\t\toption.setAttribute('value', strValueItem);\n\t\t\t\t\t\t\t\toption.setAttribute('selected', '');\n\t\t\t\t\t\t\t\t(associatedElement as HTMLSelectElement).appendChild(option);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'radio':\n\t\t\t\t\tif (typeof strValue === 'string') {\n\t\t\t\t\t\tassociatedElement.setAttribute('value', strValue);\n\t\t\t\t\t\tassociatedElement.setAttribute('checked', '');\n\t\t\t\t\t\tassociatedElement.value = strValue;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif (typeof strValue === 'string') {\n\t\t\t\t\t\tassociatedElement.setAttribute('value', strValue);\n\t\t\t\t\t\tassociatedElement.value = strValue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tassociatedElement.removeAttribute('value');\n\t\t\t\t\t\tassociatedElement.value = '';\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic validateName(value?: NamePropType): void {\n\t\tvalidateName(this.component, value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: () => {\n\t\t\t\t\tthis.setAttribute('name', this.formAssociated, this.component.state._name as string);\n\t\t\t\t},\n\t\t\t},\n\t\t});\n\t\tif (typeof value === 'undefined') {\n\t\t\tdevHint(\n\t\t\t\t`A name on input fields or switches is not strictly required, but it might be relevant for the autocomplete function and for the static submission of the input field.`,\n\t\t\t);\n\t\t}\n\t}\n\n\tpublic validateSyncValueBySelector(value?: SyncValueBySelectorPropType): void {\n\t\tif (this.experimentalMode && typeof value === 'string') {\n\t\t\tconst input = document.querySelector(value) as HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\t\t\tif (input /* SSR instanceof HTMLInputElement */) {\n\t\t\t\tthis.syncToOwnInput = input;\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateName(this.component._name);\n\t\tthis.validateSyncValueBySelector(this.component._syncValueBySelector);\n\t}\n}\n"],"names":[],"mappings":";;;;;;AAgBO,MAAM,YAAY,GAAG,CAAC,SAAoC,EAAE,KAAoB,EAAE,OAA4B,KAAU;IAC9H,WAAW,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC;AAChD,CAAC;;ACDD,MAAM,mBAAmB,GAAG,CA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K,EAAE;AACnC,YAAA,KAAK,EAAE;gBACN,UAAU,EAAE,MAAK;AAChB,oBAAA,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,KAAe,CAAC;iBACpF;AACD,aAAA;AACD,SAAA,CAAC;AACF,QAAA,IAAI,OAAO,KAAK,KAAK,WAAW,EAAE;YACjC,OAAO,CACN,CAAuK,qKAAA,CAAA,CACvK;;;AAII,IAAA,2BAA2B,CAAC,KAAmC,EAAA;QACrE,IAAI,IAAI,CAAC,gBAAgB,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YACvD,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAA+D;YACzG,IAAI,KAAK,EAAwC;AAChD,gBAAA,IAAI,CAAC,cAAc,GAAG,KAAK;;;;IAKvB,iBAAiB,GAAA;QACvB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;QACvC,IAAI,CAAC,2BAA2B,CAAC,IAAI,CAAC,SAAS,CAAC,oBAAoB,CAAC;;AAEtE;;;;"}
1
+ {"version":3,"file":"associated.controller-BStrZiDY.js","sources":["src/schema/props/name.ts","src/components/input-adapter-leanup/associated.controller.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport type { WatchStringOptions } from '../utils';\nimport { watchString } from '../utils';\n\n/* types */\nexport type NamePropType = string;\n\n/**\n * Defines the technical name of an input field.\n */\nexport type PropName = {\n\tname: NamePropType;\n};\n\n/* validator */\nexport const validateName = (component: Generic.Element.Component, value?: NamePropType, options?: WatchStringOptions): void => {\n\twatchString(component, '_name', value, options);\n};\n","import type { NamePropType, PropSyncValueBySelector, StencilUnknown, SyncValueBySelectorPropType } from '../../schema';\nimport { devHint, devWarning, getExperimentalMode, validateName } from '../../schema';\n\nimport type { Generic } from 'adopted-style-sheets';\nimport { getOptions } from '../../core/bootstrap';\n\ntype RequiredProps = NonNullable<unknown>;\ntype OptionalProps = {\n\tname: string;\n} & PropSyncValueBySelector;\ntype Props = Generic.Element.Members<RequiredProps, OptionalProps>;\ntype Watches = Generic.Element.Watchers<RequiredProps, OptionalProps>;\n\ntype HTMLInputFileElement = HTMLInputElement & {\n\tfiles: FileList;\n};\n\nconst isAssociatedTagName = (name?: string): boolean =>\n\tname === 'KOL-BUTTON' ||\n\tname === 'KOL-COMBOBOX' ||\n\tname === 'KOL-INPUT-CHECKBOX' ||\n\tname === 'KOL-INPUT-COLOR' ||\n\tname === 'KOL-INPUT-DATE' ||\n\tname === 'KOL-INPUT-EMAIL' ||\n\tname === 'KOL-INPUT-FILE' ||\n\tname === 'KOL-INPUT-NUMBER' ||\n\tname === 'KOL-INPUT-PASSWORD' ||\n\tname === 'KOL-INPUT-RADIO' ||\n\tname === 'KOL-INPUT-RANGE' ||\n\tname === 'KOL-INPUT-TEXT' ||\n\tname === 'KOL-SELECT' ||\n\tname === 'KOL-SINGLE-SELECT' ||\n\tname === 'KOL-TEXTAREA';\n\nexport class AssociatedInputController implements Watches {\n\tprivate readonly experimentalMode = getExperimentalMode();\n\n\tprotected readonly component: Generic.Element.Component & Props;\n\tprotected readonly type: string;\n\tprotected readonly host?: HTMLElement;\n\n\tpublic readonly formAssociated?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\tpublic syncToOwnInput?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\n\tpublic constructor(component: Generic.Element.Component & Props, type: string, host?: HTMLElement) {\n\t\tthis.component = component;\n\t\tthis.host = this.findHostWithShadowRoot(host);\n\t\tthis.type = type;\n\n\t\tif (getOptions()?.reflectInputValues && isAssociatedTagName(this.host?.tagName) && component._name) {\n\t\t\tthis.host?.querySelectorAll('input,select,textarea').forEach((el) => {\n\t\t\t\tthis.host?.removeChild(el);\n\t\t\t});\n\t\t\tswitch (this.type) {\n\t\t\t\tcase 'button':\n\t\t\t\tcase 'color':\n\t\t\t\tcase 'date':\n\t\t\t\tcase 'email':\n\t\t\t\tcase 'file':\n\t\t\t\tcase 'number':\n\t\t\t\tcase 'password':\n\t\t\t\tcase 'radio':\n\t\t\t\tcase 'range':\n\t\t\t\tcase 'text':\n\t\t\t\t\tthis.formAssociated = document.createElement('input');\n\t\t\t\t\tthis.formAssociated.setAttribute('type', this.type);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'select':\n\t\t\t\t\tthis.formAssociated = document.createElement('select');\n\t\t\t\t\tthis.formAssociated.setAttribute('multiple', '');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'textarea':\n\t\t\t\t\tthis.formAssociated = document.createElement('textarea');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'checkbox': // Checkbox uses default case\n\t\t\t\tcase 'single-select': // SingleSelect uses default case\n\t\t\t\tcase 'combobox': // Combobox uses default case\n\t\t\t\tdefault:\n\t\t\t\t\tthis.formAssociated = document.createElement('input');\n\t\t\t\t\tthis.formAssociated.setAttribute('type', 'hidden');\n\t\t\t}\n\t\t\tthis.formAssociated.setAttribute('data-form-associated', '');\n\t\t\tthis.formAssociated.setAttribute('hidden', '');\n\t\t\tthis.host?.appendChild(this.formAssociated);\n\t\t}\n\t}\n\n\t/**\n\t * The associated elements must not reside within the ShadowRoot and must\n\t * reside as children in the host to be recognized by native forms.\n\t */\n\tprivate findHostWithShadowRoot(host?: HTMLElement): HTMLElement | undefined {\n\t\twhile (host?.shadowRoot === null && host !== document.body) {\n\t\t\thost = host?.parentNode as HTMLElement;\n\t\t\tif ((host as unknown as ShadowRoot).host) {\n\t\t\t\thost = (host as unknown as ShadowRoot).host as HTMLElement;\n\t\t\t}\n\t\t}\n\t\treturn host;\n\t}\n\n\tprotected setAttribute(qualifiedName: string, element?: HTMLElement, value?: string | number | boolean) {\n\t\tif (this.experimentalMode) {\n\t\t\ttry {\n\t\t\t\tvalue = typeof value === 'object' && value !== null ? JSON.stringify(value) : value;\n\t\t\t\tif (typeof value === 'boolean' || typeof value === 'number' || typeof value === 'string') {\n\t\t\t\t\telement?.setAttribute(qualifiedName, `${value as string}`);\n\t\t\t\t} else {\n\t\t\t\t\tthrow new Error(`Invalid value type: ${typeof value}`);\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\telement?.removeAttribute(qualifiedName);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * We need to stringify the value, for the setAttribute method.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/setAttribute\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/attributes\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/attributes#value\n\t *\n\t * TODO: It is possible that the value are a cyclic object value. So we need a custom\n\t * JSON.stringify method from outside to convert it to string.\n\t */\n\tprivate tryToStringifyValue(value: StencilUnknown): string | null {\n\t\ttry {\n\t\t\treturn typeof value === 'object' && value !== null ? JSON.stringify(value).toString() : value === null || value === undefined ? null : value.toString();\n\t\t} catch (e) {\n\t\t\tdevWarning(`The form field raw value is not able to stringify! ${e as string}`);\n\t\t\treturn '';\n\t\t}\n\t}\n\n\t/**\n\t * We try to support native form-associated custom elements.\n\t *\n\t * @see https://github.com/public-ui/kolibri/discussions/2821\n\t */\n\tpublic readonly setFormAssociatedValue = (rawValue: StencilUnknown) => {\n\t\tconst name = this.formAssociated?.getAttribute('name');\n\t\tif (name === null || name === '') {\n\t\t\tdevHint(` The form field (${this.type}) must have a name attribute to be form-associated. Please define the _name attribute.`);\n\t\t}\n\t\tconst strValue = this.tryToStringifyValue(rawValue);\n\t\tthis.syncValue(rawValue, strValue, this.formAssociated);\n\t\tthis.syncValue(rawValue, strValue, this.syncToOwnInput);\n\t};\n\n\tprivate syncValue(\n\t\trawValue: StencilUnknown,\n\t\tstrValue: string | null,\n\t\tassociatedElement?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement,\n\t) {\n\t\tif (associatedElement) {\n\t\t\tswitch (this.type) {\n\t\t\t\tcase 'file':\n\t\t\t\t\t(associatedElement as HTMLInputFileElement).files = rawValue as FileList;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'select':\n\t\t\t\t\t(associatedElement as HTMLSelectElement).querySelectorAll('option').forEach((el) => {\n\t\t\t\t\t\t(associatedElement as HTMLSelectElement).removeChild(el);\n\t\t\t\t\t});\n\t\t\t\t\tif (Array.isArray(rawValue)) {\n\t\t\t\t\t\trawValue.forEach((rawValueItem) => {\n\t\t\t\t\t\t\tconst strValueItem = this.tryToStringifyValue(rawValueItem as string);\n\t\t\t\t\t\t\tif (typeof strValueItem === 'string') {\n\t\t\t\t\t\t\t\tconst option = document.createElement('option');\n\t\t\t\t\t\t\t\toption.setAttribute('value', strValueItem);\n\t\t\t\t\t\t\t\toption.setAttribute('selected', '');\n\t\t\t\t\t\t\t\t(associatedElement as HTMLSelectElement).appendChild(option);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'radio':\n\t\t\t\t\tif (typeof strValue === 'string') {\n\t\t\t\t\t\tassociatedElement.setAttribute('value', strValue);\n\t\t\t\t\t\tassociatedElement.setAttribute('checked', '');\n\t\t\t\t\t\tassociatedElement.value = strValue;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif (typeof strValue === 'string') {\n\t\t\t\t\t\tassociatedElement.setAttribute('value', strValue);\n\t\t\t\t\t\tassociatedElement.value = strValue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tassociatedElement.removeAttribute('value');\n\t\t\t\t\t\tassociatedElement.value = '';\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic validateName(value?: NamePropType): void {\n\t\tvalidateName(this.component, value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: () => {\n\t\t\t\t\tthis.setAttribute('name', this.formAssociated, this.component.state._name as string);\n\t\t\t\t},\n\t\t\t},\n\t\t});\n\t\tif (typeof value === 'undefined') {\n\t\t\tdevHint(\n\t\t\t\t`A name on input fields or switches is not strictly required, but it might be relevant for the autocomplete function and for the static submission of the input field.`,\n\t\t\t);\n\t\t}\n\t}\n\n\tpublic validateSyncValueBySelector(value?: SyncValueBySelectorPropType): void {\n\t\tif (this.experimentalMode && typeof value === 'string') {\n\t\t\tconst input = document.querySelector(value) as HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\t\t\tif (input /* SSR instanceof HTMLInputElement */) {\n\t\t\t\tthis.syncToOwnInput = input;\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateName(this.component._name);\n\t\tthis.validateSyncValueBySelector(this.component._syncValueBySelector);\n\t}\n}\n"],"names":[],"mappings":";;;;;;AAgBO,MAAM,YAAY,GAAG,CAAC,SAAoC,EAAE,KAAoB,EAAE,OAA4B,KAAU;IAC9H,WAAW,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC;AAChD,CAAC;;ACDD,MAAM,mBAAmB,GAAG,CAAC,IAAa,KACzC,IAAI,KAAK,YAAY;AACrB,IAAA,IAAI,KAAK,cAAc;AACvB,IAAA,IAAI,KAAK,oBAAoB;AAC7B,IAAA,IAAI,KAAK,iBAAiB;AAC1B,IAAA,IAAI,KAAK,gBAAgB;AACzB,IAAA,IAAI,KAAK,iBAAiB;AAC1B,IAAA,IAAI,KAAK,gBAAgB;AACzB,IAAA,IAAI,KAAK,kBAAkB;AAC3B,IAAA,IAAI,KAAK,oBAAoB;AAC7B,IAAA,IAAI,KAAK,iBAAiB;AAC1B,IAAA,IAAI,KAAK,iBAAiB;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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,GAAA;QACvB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;QACvC,IAAI,CAAC,2BAA2B,CAAC,IAAI,CAAC,SAAS,CAAC,oBAAoB,CAAC;;AAEtE;;;;"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{k as o,V as i,L as n}from"./common-L1K0yh1S.js";import{s as e}from"./component-names-CkE54Ym7.js";import{i as s}from"./i18n-B-iJAw_i.js";let t,d=!1;const a=async(a,r,l)=>{var m,v;const u="undefined"!=typeof process&&process.env?"production":void 0;o((null==l?void 0:l.environment)||u||"production"),s(null!==(v=null===(m=null==l?void 0:l.translation)||void 0===m?void 0:m.name)&&void 0!==v?v:"de",null==l?void 0:l.translations),(null==l?void 0:l.transformTagName)&&e(null==l?void 0:l.transformTagName);const c=await i(a,r,l);return d=!0,t=l,n.info("Development mode active - Enhanced debugging features available"),c},l=a,r=()=>d,v=()=>t;export{a as b,v as g,r as i,l as r};
4
+ import{k as o,V as n,L as i}from"./common-L1K0yh1S.js";import{s as e}from"./component-names-C3fyby67.js";import{i as s}from"./i18n-B0tfVPMa.js";let t,d=!1;const a=async(a,r,l)=>{var m,v;const u="undefined"!=typeof process&&process.env?"production":void 0;o((null==l?void 0:l.environment)||u||"production"),s(null!==(v=null===(m=null==l?void 0:l.translation)||void 0===m?void 0:m.name)&&void 0!==v?v:"de",null==l?void 0:l.translations),(null==l?void 0:l.transformTagName)&&e(null==l?void 0:l.transformTagName);const c=await n(a,r,l);return d=!0,t=l,i.info("Development mode active - Enhanced debugging features available"),c},l=a,r=()=>d,v=()=>t;export{a as b,v as g,r as i,l as r};
@@ -1 +1 @@
1
- {"version":3,"file":"bootstrap-DKvDv4kw.js","sources":["src/core/bootstrap.ts"],"sourcesContent":["import type { Generic, LoaderCallback, RegisterOptions } from 'adopted-style-sheets';\nimport { register as coreRegister } from 'adopted-style-sheets';\nimport type { Mode } from '../schema';\nimport { Log, setRuntimeMode } from '../schema';\nimport { setCustomTagNames } from './component-names';\nimport { initializeI18n } from './i18n';\n\ntype KoliBriOptions = RegisterOptions & {\n\t/**\n\t * The environment in which the application is running.\n\t */\n\tenvironment?: Mode;\n\t/**\n\t * This option allows you to transform the component tag names.\n\t */\n\ttransformTagName?: (tagName: string) => string;\n\n\t/**\n\t * When enabled, all input fields will reflect their current value to the host element, making it accessible outside the shadow DOM.\n\t */\n\treflectInputValues?: boolean;\n};\n\nlet initialized = false;\nlet options: KoliBriOptions | undefined;\n\nexport const bootstrap = async (\n\tthemes:\n\t\t| Generic.Theming.RegisterPatch<string, string, string>\n\t\t| Generic.Theming.RegisterPatch<string, string, string>[]\n\t\t| Set<Generic.Theming.RegisterPatch<string, string, string>>,\n\tloaders: LoaderCallback | LoaderCallback[] | Set<LoaderCallback>,\n\tkoliBriOptions?: KoliBriOptions,\n): Promise<void[]> => {\n\tconst nodeEnv = typeof process !== 'undefined' && process.env ? (process.env.NODE_ENV as Mode) : undefined;\n\tsetRuntimeMode(koliBriOptions?.environment || nodeEnv || 'production');\n\n\tinitializeI18n(koliBriOptions?.translation?.name ?? 'de', koliBriOptions?.translations);\n\tif (koliBriOptions?.transformTagName) {\n\t\tsetCustomTagNames(koliBriOptions?.transformTagName);\n\t}\n\tconst coreRegisterReturnValue = await coreRegister(themes, loaders, koliBriOptions);\n\tinitialized = true;\n\toptions = koliBriOptions;\n\n\t// Only log development message when actually in development mode\n\tLog.info('Development mode active - Enhanced debugging features available');\n\n\treturn coreRegisterReturnValue;\n};\n\nexport const register = bootstrap;\nexport const isInitialized = () => initialized;\nexport const getOptions = () => options;\n"],"names":["coreRegister"],"mappings":";;;;;;;AAuBA,IAAI,WAAW,GAAG,KAAK;AACvB,IAAI,OAAmC;AAEhC,MAAM,SAAS,GAAG,OACxB,MAG6D,EAC7D,OAAgE,EAChE,cAA+B,KACX;;IACpB,MAAM,OAAO,GAAG,OAAO,OAAO,KAAK,WAAW,IAAI,OAAO,CAAC,GAAG,GAAI,YAA6B,GAAG,SAAS;IAC1G,cAAc,CAAC,CAAA,cAAc,KAAA,IAAA,IAAd,cAAc,KAAd,MAAA,GAAA,MAAA,GAAA,cAAc,CAAE,WAAW,KAAI,OAAO,IAAI,YAAY,CAAC;AAEtE,IAAA,cAAc,CAAC,MAAA,CAAA,EAAA,GAAA,cAAc,aAAd,cAAc,KAAA,MAAA,GAAA,MAAA,GAAd,cAAc,CAAE,WAAW,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAE,IAAI,MAAI,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,EAAA,GAAA,IAAI,EAAE,cAAc,KAAd,IAAA,IAAA,cAAc,uBAAd,cAAc,CAAE,YAAY,CAAC;IACvF,IAAI,cAAc,aAAd,cAAc,KAAA,MAAA,GAAA,MAAA,GAAd,cAAc,CAAE,gBAAgB,EAAE;QACrC,iBAAiB,CAAC,cAAc,KAAd,IAAA,IAAA,cAAc,uBAAd,cAAc,CAAE,gBAAgB,CAAC;;IAEpD,MAAM,uBAAuB,GAAG,MAAMA,CAAY,CAAC,MAAM,EAAE,OAAO,EAAE,cAAc,CAAC;IACnF,WAAW,GAAG,IAAI;IAClB,OAAO,GAAG,cAAc;AAGxB,IAAA,GAAG,CAAC,IAAI,CAAC,iEAAiE,CAAC;AAE3E,IAAA,OAAO,uBAAuB;AAC/B;AAEO,MAAM,QAAQ,GAAG;MACX,aAAa,GAAG,MAAM;MACtB,UAAU,GAAG,MAAM;;;;"}
1
+ {"version":3,"file":"bootstrap-BsrX_E7q.js","sources":["src/core/bootstrap.ts"],"sourcesContent":["import type { Generic, LoaderCallback, RegisterOptions } from 'adopted-style-sheets';\nimport { register as coreRegister } from 'adopted-style-sheets';\nimport type { Mode } from '../schema';\nimport { Log, setRuntimeMode } from '../schema';\nimport { setCustomTagNames } from './component-names';\nimport { initializeI18n } from './i18n';\n\ntype KoliBriOptions = RegisterOptions & {\n\t/**\n\t * The environment in which the application is running.\n\t */\n\tenvironment?: Mode;\n\t/**\n\t * This option allows you to transform the component tag names.\n\t */\n\ttransformTagName?: (tagName: string) => string;\n\n\t/**\n\t * When enabled, all input fields will reflect their current value to the host element, making it accessible outside the shadow DOM.\n\t */\n\treflectInputValues?: boolean;\n};\n\nlet initialized = false;\nlet options: KoliBriOptions | undefined;\n\nexport const bootstrap = async (\n\tthemes:\n\t\t| Generic.Theming.RegisterPatch<string, string, string>\n\t\t| Generic.Theming.RegisterPatch<string, string, string>[]\n\t\t| Set<Generic.Theming.RegisterPatch<string, string, string>>,\n\tloaders: LoaderCallback | LoaderCallback[] | Set<LoaderCallback>,\n\tkoliBriOptions?: KoliBriOptions,\n): Promise<void[]> => {\n\tconst nodeEnv = typeof process !== 'undefined' && process.env ? (process.env.NODE_ENV as Mode) : undefined;\n\tsetRuntimeMode(koliBriOptions?.environment || nodeEnv || 'production');\n\n\tinitializeI18n(koliBriOptions?.translation?.name ?? 'de', koliBriOptions?.translations);\n\tif (koliBriOptions?.transformTagName) {\n\t\tsetCustomTagNames(koliBriOptions?.transformTagName);\n\t}\n\tconst coreRegisterReturnValue = await coreRegister(themes, loaders, koliBriOptions);\n\tinitialized = true;\n\toptions = koliBriOptions;\n\n\t// Only log development message when actually in development mode\n\tLog.info('Development mode active - Enhanced debugging features available');\n\n\treturn coreRegisterReturnValue;\n};\n\nexport const register = bootstrap;\nexport const isInitialized = () => initialized;\nexport const getOptions = () => options;\n"],"names":["coreRegister"],"mappings":";;;;;;;AAuBA,IAAI,WAAW,GAAG,KAAK;AACvB,IAAI,OAAmC;AAEhC,MAAM,SAAS,GAAG,OACxB,MAG6D,EAC7D,OAAgE,EAChE,cAA+B,KACX;;IACpB,MAAM,OAAO,GAAG,OAAO,OAAO,KAAK,WAAW,IAAI,OAAO,CAAC,GAAG,GAAI,YAA6B,GAAG,SAAS;IAC1G,cAAc,CAAC,CAAA,cAAc,KAAA,IAAA,IAAd,cAAc,KAAd,MAAA,GAAA,MAAA,GAAA,cAAc,CAAE,WAAW,KAAI,OAAO,IAAI,YAAY,CAAC;AAEtE,IAAA,cAAc,CAAC,MAAA,CAAA,EAAA,GAAA,cAAc,aAAd,cAAc,KAAA,MAAA,GAAA,MAAA,GAAd,cAAc,CAAE,WAAW,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAE,IAAI,MAAI,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,EAAA,GAAA,IAAI,EAAE,cAAc,KAAd,IAAA,IAAA,cAAc,uBAAd,cAAc,CAAE,YAAY,CAAC;IACvF,IAAI,cAAc,aAAd,cAAc,KAAA,MAAA,GAAA,MAAA,GAAd,cAAc,CAAE,gBAAgB,EAAE;QACrC,iBAAiB,CAAC,cAAc,KAAd,IAAA,IAAA,cAAc,uBAAd,cAAc,CAAE,gBAAgB,CAAC;;IAEpD,MAAM,uBAAuB,GAAG,MAAMA,CAAY,CAAC,MAAM,EAAE,OAAO,EAAE,cAAc,CAAC;IACnF,WAAW,GAAG,IAAI;IAClB,OAAO,GAAG,cAAc;AAGxB,IAAA,GAAG,CAAC,IAAI,CAAC,iEAAiE,CAAC;AAE3E,IAAA,OAAO,uBAAuB;AAC/B;AAEO,MAAM,QAAQ,GAAG;MACX,aAAa,GAAG,MAAM;MACtB,UAAU,GAAG,MAAM;;;;"}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ let l="kol-abbr",t="kol-accordion",e="kol-alert",o="kol-alert-wc",k="kol-avatar",a="kol-avatar-wc",s="kol-badge",n="kol-breadcrumb",i="kol-button-link",r="kol-button",c="kol-button-wc",p="kol-card",b="kol-card-wc",u="kol-combobox",w="kol-details",d="kol-drawer",g="kol-form",m="kol-heading",v="kol-icon",x="kol-image",f="kol-input-checkbox",h="kol-input-color",q="kol-input-date",j="kol-input-email",y="kol-input-file",K="kol-input-number",z="kol-input-password",A="kol-input-radio",B="kol-input-range",C="kol-input",D="kol-input-text",E="kol-kolibri",F="kol-link-button",G="kol-link",H="kol-link-wc",I="kol-modal",J="kol-nav",L="kol-pagination",M="kol-pagination-wc",N="kol-popover-wc",O="kol-popover-button",P="kol-popover-button-wc",Q="kol-progress",R="kol-quote",S="kol-select",T="kol-select-wc",U="kol-single-select",V="kol-skip-nav",W="kol-spin",X="kol-split-button",Y="kol-table-settings-wc",Z="kol-table-stateful",$="kol-table-stateless",_="kol-table-stateless-wc",ll="kol-tabs",tl="kol-textarea",el="kol-toast-container",ol="kol-tooltip-wc",kl="kol-tree-item",al="kol-tree-item-wc",sl="kol-tree",nl="kol-tree-wc",il="kol-version";const rl=rl=>{l=rl(l),t=rl(t),e=rl(e),o=rl(o),k=rl(k),a=rl(a),s=rl(s),n=rl(n),i=rl(i),r=rl(r),c=rl(c),p=rl(p),b=rl(b),u=rl(u),w=rl(w),d=rl(d),g=rl(g),m=rl(m),v=rl(v),x=rl(x),f=rl(f),h=rl(h),q=rl(q),j=rl(j),y=rl(y),K=rl(K),z=rl(z),A=rl(A),B=rl(B),C=rl(C),D=rl(D),E=rl(E),F=rl(F),G=rl(G),H=rl(H),I=rl(I),J=rl(J),L=rl(L),M=rl(M),N=rl(N),O=rl(O),P=rl(P),Q=rl(Q),R=rl(R),S=rl(S),T=rl(T),U=rl(U),V=rl(V),W=rl(W),X=rl(X),Y=rl(Y),Z=rl(Z),$=rl($),_=rl(_),ll=rl(ll),tl=rl(tl),el=rl(el),rl(ol),ol=rl(ol),kl=rl(kl),al=rl(al),sl=rl(sl),nl=rl(nl),il=rl(il)};export{el as K,ol as a,o as b,a as c,c as d,v as e,H as f,b as g,g as h,M as i,P as j,G as k,T as l,N as m,_ as n,r as o,nl as p,al as q,s as r,rl as s,m as t,f as u,K as v,Y as w,sl as x,kl as y};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component-names-C3fyby67.js","sources":["src/core/component-names.ts"],"sourcesContent":["export let KolAbbrTag = 'kol-abbr' as const;\nexport let KolAccordionTag = 'kol-accordion' as const;\nexport let KolAlertTag = 'kol-alert' as const;\nexport let KolAlertWcTag = 'kol-alert-wc' as const;\nexport let KolAvatarTag = 'kol-avatar' as const;\nexport let KolAvatarWcTag = 'kol-avatar-wc' as const;\nexport let KolBadgeTag = 'kol-badge' as const;\nexport let KolBreadcrumbTag = 'kol-breadcrumb' as const;\nexport let KolButtonLinkTag = 'kol-button-link' as const;\nexport let KolButtonTag = 'kol-button' as const;\nexport let KolButtonWcTag = 'kol-button-wc' as const;\nexport let KolCardTag = 'kol-card' as const;\nexport let KolCardWcTag = 'kol-card-wc' as const;\nexport let KolComboboxTag = 'kol-combobox' as const;\nexport let KolDetailsTag = 'kol-details' as const;\nexport let KolDrawerTag = 'kol-drawer' as const;\nexport let KolFormTag = 'kol-form' as const;\nexport let KolHeadingTag = 'kol-heading' as const;\nexport let KolIconTag = 'kol-icon' as const;\nexport let KolImageTag = 'kol-image' as const;\nexport let KolInputCheckboxTag = 'kol-input-checkbox' as const;\nexport let KolInputColorTag = 'kol-input-color' as const;\nexport let KolInputDateTag = 'kol-input-date' as const;\nexport let KolInputEmailTag = 'kol-input-email' as const;\nexport let KolInputFileTag = 'kol-input-file' as const;\nexport let KolInputNumberTag = 'kol-input-number' as const;\nexport let KolInputPasswordTag = 'kol-input-password' as const;\nexport let KolInputRadioTag = 'kol-input-radio' as const;\nexport let KolInputRangeTag = 'kol-input-range' as const;\nexport let KolInputTag = 'kol-input' as const;\nexport let KolInputTextTag = 'kol-input-text' as const;\nexport let KolKolibriTag = 'kol-kolibri' as const;\nexport let KolLinkButtonTag = 'kol-link-button' as const;\nexport let KolLinkTag = 'kol-link' as const;\nexport let KolLinkWcTag = 'kol-link-wc' as const;\nexport let KolModalTag = 'kol-modal' as const;\nexport let KolNavTag = 'kol-nav' as const;\nexport let KolPaginationTag = 'kol-pagination' as const;\nexport let KolPaginationWcTag = 'kol-pagination-wc' as const;\nexport let KolPopoverWcTag = 'kol-popover-wc' as const;\nexport let KolPopoverButtonTag = 'kol-popover-button' as const;\nexport let KolPopoverButtonWcTag = 'kol-popover-button-wc' as const;\nexport let KolProgressTag = 'kol-progress' as const;\nexport let KolQuoteTag = 'kol-quote' as const;\nexport let KolSelectTag = 'kol-select' as const;\nexport let KolSelectWcTag = 'kol-select-wc' as const;\nexport let KolSingleSelectTag = 'kol-single-select' as const;\nexport let KolSkipNavTag = 'kol-skip-nav' as const;\nexport let KolSpinTag = 'kol-spin' as const;\nexport let KolSplitButtonTag = 'kol-split-button' as const;\nexport let KolTableSettingsWcTag = 'kol-table-settings-wc' as const;\nexport let KolTableStatefulTag = 'kol-table-stateful';\nexport let KolTableStatelessTag = 'kol-table-stateless' as const;\nexport let KolTableStatelessWcTag = 'kol-table-stateless-wc' as const;\nexport let KolTabsTag = 'kol-tabs' as const;\nexport let KolTextareaTag = 'kol-textarea' as const;\nexport let KolToastContainerTag = 'kol-toast-container' as const;\nexport let KolToolbarTag = 'kol-toolbar' as const;\nexport let KolTooltipWcTag = 'kol-tooltip-wc' as const;\nexport let KolTreeItemTag = 'kol-tree-item' as const;\nexport let KolTreeItemWcTag = 'kol-tree-item-wc' as const;\nexport let KolTreeTag = 'kol-tree' as const;\nexport let KolTreeWcTag = 'kol-tree-wc' as const;\nexport let KolVersionTag = 'kol-version' as const;\n\nexport const setCustomTagNames = (transformTagName: (tagName: string) => string) => {\n\tKolAbbrTag = transformTagName(KolAbbrTag as string) as 'kol-abbr';\n\tKolAccordionTag = transformTagName(KolAccordionTag as string) as 'kol-accordion';\n\tKolAlertTag = transformTagName(KolAlertTag as string) as 'kol-alert';\n\tKolAlertWcTag = transformTagName(KolAlertWcTag as string) as 'kol-alert-wc';\n\tKolAvatarTag = transformTagName(KolAvatarTag as string) as 'kol-avatar';\n\tKolAvatarWcTag = transformTagName(KolAvatarWcTag as string) as 'kol-avatar-wc';\n\tKolBadgeTag = transformTagName(KolBadgeTag as string) as 'kol-badge';\n\tKolBreadcrumbTag = transformTagName(KolBreadcrumbTag as string) as 'kol-breadcrumb';\n\tKolButtonLinkTag = transformTagName(KolButtonLinkTag as string) as 'kol-button-link';\n\tKolButtonTag = transformTagName(KolButtonTag as string) as 'kol-button';\n\tKolButtonWcTag = transformTagName(KolButtonWcTag as string) as 'kol-button-wc';\n\tKolCardTag = transformTagName(KolCardTag as string) as 'kol-card';\n\tKolCardWcTag = transformTagName(KolCardWcTag as string) as 'kol-card-wc';\n\tKolComboboxTag = transformTagName(KolComboboxTag as string) as 'kol-combobox';\n\tKolDetailsTag = transformTagName(KolDetailsTag as string) as 'kol-details';\n\tKolDrawerTag = transformTagName(KolDrawerTag as string) as 'kol-drawer';\n\tKolFormTag = transformTagName(KolFormTag as string) as 'kol-form';\n\tKolHeadingTag = transformTagName(KolHeadingTag as string) as 'kol-heading';\n\tKolIconTag = transformTagName(KolIconTag as string) as 'kol-icon';\n\tKolImageTag = transformTagName(KolImageTag as string) as 'kol-image';\n\tKolInputCheckboxTag = transformTagName(KolInputCheckboxTag as string) as 'kol-input-checkbox';\n\tKolInputColorTag = transformTagName(KolInputColorTag as string) as 'kol-input-color';\n\tKolInputDateTag = transformTagName(KolInputDateTag as string) as 'kol-input-date';\n\tKolInputEmailTag = transformTagName(KolInputEmailTag as string) as 'kol-input-email';\n\tKolInputFileTag = transformTagName(KolInputFileTag as string) as 'kol-input-file';\n\tKolInputNumberTag = transformTagName(KolInputNumberTag as string) as 'kol-input-number';\n\tKolInputPasswordTag = transformTagName(KolInputPasswordTag as string) as 'kol-input-password';\n\tKolInputRadioTag = transformTagName(KolInputRadioTag as string) as 'kol-input-radio';\n\tKolInputRangeTag = transformTagName(KolInputRangeTag as string) as 'kol-input-range';\n\tKolInputTag = transformTagName(KolInputTag as string) as 'kol-input';\n\tKolInputTextTag = transformTagName(KolInputTextTag as string) as 'kol-input-text';\n\tKolKolibriTag = transformTagName(KolKolibriTag as string) as 'kol-kolibri';\n\tKolLinkButtonTag = transformTagName(KolLinkButtonTag as string) as 'kol-link-button';\n\tKolLinkTag = transformTagName(KolLinkTag as string) as 'kol-link';\n\tKolLinkWcTag = transformTagName(KolLinkWcTag as string) as 'kol-link-wc';\n\tKolModalTag = transformTagName(KolModalTag as string) as 'kol-modal';\n\tKolNavTag = transformTagName(KolNavTag as string) as 'kol-nav';\n\tKolPaginationTag = transformTagName(KolPaginationTag as string) as 'kol-pagination';\n\tKolPaginationWcTag = transformTagName(KolPaginationWcTag as string) as 'kol-pagination-wc';\n\tKolPopoverWcTag = transformTagName(KolPopoverWcTag as string) as 'kol-popover-wc';\n\tKolPopoverButtonTag = transformTagName(KolPopoverButtonTag as string) as 'kol-popover-button';\n\tKolPopoverButtonWcTag = transformTagName(KolPopoverButtonWcTag as string) as 'kol-popover-button-wc';\n\tKolProgressTag = transformTagName(KolProgressTag as string) as 'kol-progress';\n\tKolQuoteTag = transformTagName(KolQuoteTag as string) as 'kol-quote';\n\tKolSelectTag = transformTagName(KolSelectTag as string) as 'kol-select';\n\tKolSelectWcTag = transformTagName(KolSelectWcTag as string) as 'kol-select-wc';\n\tKolSingleSelectTag = transformTagName(KolSingleSelectTag as string) as 'kol-single-select';\n\tKolSkipNavTag = transformTagName(KolSkipNavTag as string) as 'kol-skip-nav';\n\tKolSpinTag = transformTagName(KolSpinTag as string) as 'kol-spin';\n\tKolSplitButtonTag = transformTagName(KolSplitButtonTag as string) as 'kol-split-button';\n\tKolTableSettingsWcTag = transformTagName(KolTableSettingsWcTag) as 'kol-table-settings-wc';\n\tKolTableStatefulTag = transformTagName(KolTableStatefulTag) as 'kol-table-stateful';\n\tKolTableStatelessTag = transformTagName(KolTableStatelessTag as string) as 'kol-table-stateless';\n\tKolTableStatelessWcTag = transformTagName(KolTableStatelessWcTag as string) as 'kol-table-stateless-wc';\n\tKolTabsTag = transformTagName(KolTabsTag as string) as 'kol-tabs';\n\tKolTextareaTag = transformTagName(KolTextareaTag as string) as 'kol-textarea';\n\tKolToastContainerTag = transformTagName(KolToastContainerTag as string) as 'kol-toast-container';\n\tKolToolbarTag = transformTagName(KolTooltipWcTag as string) as 'kol-toolbar';\n\tKolTooltipWcTag = transformTagName(KolTooltipWcTag as string) as 'kol-tooltip-wc';\n\tKolTreeItemTag = transformTagName(KolTreeItemTag as string) as 'kol-tree-item';\n\tKolTreeItemWcTag = transformTagName(KolTreeItemWcTag as string) as 'kol-tree-item-wc';\n\tKolTreeTag = transformTagName(KolTreeTag as string) as 'kol-tree';\n\tKolTreeWcTag = transformTagName(KolTreeWcTag as string) as 'kol-tree-wc';\n\tKolVersionTag = transformTagName(KolVersionTag as string) as 'kol-version';\n};\n"],"names":[],"mappings":";;;AAAO,IAAI,UAAU,GAAG,UAAmB;AACpC,IAAI,eAAe,GAAG,eAAwB;AAC9C,IAAI,WAAW,GAAG,WAAoB;AACtC,IAAI,aAAa,GAAG;AACpB,IAAI,YAAY,GAAG,YAAqB;AACxC,IAAI,cAAc,GAAG;AACrB,IAAI,WAAW,GAAG;AAClB,IAAI,gBAAgB,GAAG,gBAAyB;AAChD,IAAI,gBAAgB,GAAG,iBAA0B;AACjD,IAAI,YAAY,GAAG;AACnB,IAAI,cAAc,GAAG;AACrB,IAAI,UAAU,GAAG,UAAmB;AACpC,IAAI,YAAY,GAAG;AACnB,IAAI,cAAc,GAAG,cAAuB;AAC5C,IAAI,aAAa,GAAG,aAAsB;AAC1C,IAAI,YAAY,GAAG,YAAqB;AACxC,IAAI,UAAU,GAAG;AACjB,IAAI,aAAa,GAAG;AACpB,IAAI,UAAU,GAAG;AACjB,IAAI,WAAW,GAAG,WAAoB;AACtC,IAAI,mBAAmB,GAAG;AAC1B,IAAI,gBAAgB,GAAG,iBAA0B;AACjD,IAAI,eAAe,GAAG,gBAAyB;AAC/C,IAAI,gBAAgB,GAAG,iBAA0B;AACjD,IAAI,eAAe,GAAG,gBAAyB;AAC/C,IAAI,iBAAiB,GAAG;AACxB,IAAI,mBAAmB,GAAG,oBAA6B;AACvD,IAAI,gBAAgB,GAAG,iBAA0B;AACjD,IAAI,gBAAgB,GAAG,iBAA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G,gBAAgB,CAAC,UAAoB,CAAe;AACjE,IAAA,iBAAiB,GAAG,gBAAgB,CAAC,iBAA2B,CAAuB;AACvF,IAAA,qBAAqB,GAAG,gBAAgB,CAAC,qBAAqB,CAA4B;AAC1F,IAAA,mBAAmB,GAAG,gBAAgB,CAAC,mBAAmB,CAAyB;AACnF,IAAA,oBAAoB,GAAG,gBAAgB,CAAC,oBAA8B,CAA0B;AAChG,IAAA,sBAAsB,GAAG,gBAAgB,CAAC,sBAAgC,CAA6B;AACvG,IAAA,UAAU,GAAG,gBAAgB,CAAC,UAAoB,CAAe;AACjE,IAAA,cAAc,GAAG,gBAAgB,CAAC,cAAwB,CAAmB;AAC7E,IAAA,oBAAoB,GAAG,gBAAgB,CAAC,oBAA8B,CAA0B;AAChG,IAAgB,gBAAgB,CAAC,eAAyB,CAAkB;AAC5E,IAAA,eAAe,GAAG,gBAAgB,CAAC,eAAyB,CAAqB;AACjF,IAAA,cAAc,GAAG,gBAAgB,CAAC,cAAwB,CAAoB;AAC9E,IAAA,gBAAgB,GAAG,gBAAgB,CAAC,gBAA0B,CAAuB;AACrF,IAAA,UAAU,GAAG,gBAAgB,CAAC,UAAoB,CAAe;AACjE,IAAA,YAAY,GAAG,gBAAgB,CAAC,YAAsB,CAAkB;AACxE,IAAA,aAAa,GAAG,gBAAgB,CAAC,aAAuB,CAAkB;AAC3E;;;;"}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{h as e}from"./component-names-C3fyby67.js";import{I as o,j as t,J as n,a as i,L as f}from"./common-L1K0yh1S.js";const s=n=>{for(o()&&(t("↓ Search form element start."),f.debug(n));n instanceof HTMLElement&&"FORM"!==n.tagName&&n.tagName!==e.toUpperCase();){try{n=n.parentElement instanceof HTMLElement?n.parentElement:n.parentNode instanceof ShadowRoot?n.parentNode.host:null}catch(e){}o()&&(f.debug(n),t("↑ Search form element finished."))}return n},l=(t={})=>{var o,a;const r=s(t.form);if(r instanceof HTMLElement){const t=new Event("reset",{bubbles:!0,cancelable:!0});if("FORM"===r.tagName)n(t,r),r.dispatchEvent(t);else if(r.tagName===e.toUpperCase()){n(t,i.querySelector("form",r));const e=r;"function"==typeof(null===(o=e._on)||void 0===o?void 0:o.onReset)&&(null===(a=e._on)||void 0===a||a.onReset(t))}}},a=(a={})=>{const r=s(a.form);if(r instanceof HTMLElement){const a=new SubmitEvent("submit",{bubbles:!0,cancelable:!0,submitter:r});if("FORM"===r.tagName)o()&&!1===r.noValidate&&t("If you have not focusable or hidden form fields in your form, you should enable noValidate for your form.",{force:!0}),setTimeout(()=>{"function"==typeof r.requestSubmit?r.requestSubmit():(n(a,r),r.dispatchEvent(a))});else if(r.tagName===e.toUpperCase()){n(a,i.querySelector("form",r));const e=r;setTimeout(()=>{var t,o;"function"==typeof(null===(t=e._on)||void 0===t?void 0:t.onSubmit)&&(null===(o=e._on)||void 0===o||o.onSubmit(a))})}}};export{l as a,a as p};
@@ -1 +1 @@
1
- {"version":3,"file":"controller-DLgscExO.js","sources":["src/components/form/controller.ts"],"sourcesContent":["import { KolFormTag } from '../../core/component-names';\nimport type { FormProps } from '../../schema';\nimport { devHint, getExperimentalMode, KoliBriDevHelper, Log, setEventTarget } from '../../schema';\n\nconst searchFormElement = (el?: HTMLElement | ParentNode | null): HTMLElement | ParentNode | null | undefined => {\n\tif (getExperimentalMode()) {\n\t\tdevHint(`↓ Search form element start.`);\n\t\tLog.debug(el);\n\t}\n\twhile (el instanceof HTMLElement && el.tagName !== 'FORM' && el.tagName !== KolFormTag.toUpperCase()) {\n\t\ttry {\n\t\t\tif (el.parentElement instanceof HTMLElement) {\n\t\t\t\tel = el.parentElement;\n\t\t\t} else if (el.parentNode instanceof ShadowRoot) {\n\t\t\t\tel = el.parentNode.host;\n\t\t\t} else {\n\t\t\t\tel = null;\n\t\t\t}\n\t\t} catch (error) {\n\t\t\t/**\n\t\t\t * Try is needed for SSR.\n\t\t\t * - no HTMLElement is available\n\t\t\t * - no ShadowRoot is available\n\t\t\t */\n\t\t}\n\t\tif (getExperimentalMode()) {\n\t\t\tLog.debug(el);\n\t\t\tdevHint(`↑ Search form element finished.`);\n\t\t}\n\t}\n\treturn el;\n};\n\nexport const propagateResetEventToForm = (\n\toptions: {\n\t\tform?: HTMLElement | ParentNode | null;\n\t\tref?: HTMLElement;\n\t} = {},\n): void => {\n\tconst form = searchFormElement(options.form);\n\tif (form instanceof HTMLElement) {\n\t\tconst event = new Event('reset', {\n\t\t\tbubbles: true,\n\t\t\tcancelable: true,\n\t\t});\n\t\tif (form.tagName === 'FORM') {\n\t\t\tsetEventTarget(event, form);\n\t\t\tform.dispatchEvent(event);\n\t\t} else if (form.tagName === KolFormTag.toUpperCase()) {\n\t\t\tsetEventTarget(event, KoliBriDevHelper.querySelector('form', form) as HTMLFormElement);\n\t\t\tconst kolForm = form as FormProps;\n\t\t\tif (typeof kolForm._on?.onReset === 'function') {\n\t\t\t\ttypeof kolForm._on?.onReset(event);\n\t\t\t}\n\t\t}\n\t}\n};\n\nexport const propagateSubmitEventToForm = (\n\toptions: {\n\t\tform?: HTMLElement | ParentNode | null;\n\t\tref?: HTMLElement;\n\t} = {},\n): void => {\n\tconst form = searchFormElement(options.form);\n\tif (form instanceof HTMLElement) {\n\t\tconst event = new SubmitEvent('submit', {\n\t\t\tbubbles: true,\n\t\t\tcancelable: true,\n\t\t\tsubmitter: form,\n\t\t});\n\t\t/**\n\t\t * TODO: Wenn Formular-Action (nicht Ajax oder JS) verwendet wird,\n\t\t * dann müssen wir das Event an das HTMLFormElement innerhalb\n\t\t * der HTMLKolFormElements propagieren, wenn kein onSubmit\n\t\t * gesetzt wurde.\n\t\t *\n\t\t * TODO: Form-associated custom elements:\n\t\t * - https://web.dev/more-capable-form-controls/\n\t\t * - https://github.com/public-ui/kolibri/issues/946\n\t\t */\n\t\tif (form.tagName === 'FORM') {\n\t\t\tif (getExperimentalMode() && (form as HTMLFormElement).noValidate === false) {\n\t\t\t\tdevHint(`If you have not focusable or hidden form fields in your form, you should enable noValidate for your form.`, {\n\t\t\t\t\tforce: true,\n\t\t\t\t});\n\t\t\t\t// (form as HTMLFormElement).noValidate = true; do not make this implicit\n\t\t\t}\n\t\t\t// Use setTimeout to ensure onChange has been called first\n\t\t\tsetTimeout(() => {\n\t\t\t\t// See https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/requestSubmit\n\t\t\t\tif (typeof (form as HTMLFormElement).requestSubmit === 'function') {\n\t\t\t\t\t(form as HTMLFormElement).requestSubmit();\n\t\t\t\t} else {\n\t\t\t\t\tsetEventTarget(event, form);\n\t\t\t\t\tform.dispatchEvent(event);\n\t\t\t\t}\n\t\t\t});\n\t\t} else if (form.tagName === KolFormTag.toUpperCase()) {\n\t\t\tsetEventTarget(event, KoliBriDevHelper.querySelector('form', form) as HTMLFormElement);\n\t\t\tconst kolForm = form as FormProps;\n\t\t\t// Use setTimeout to ensure onChange has been called first\n\t\t\tsetTimeout(() => {\n\t\t\t\tif (typeof kolForm._on?.onSubmit === 'function') {\n\t\t\t\t\tkolForm._on?.onSubmit(event);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n};\n"],"names":[],"mappings":";;;;;;AAIA,MAAM,iBAAiB,GAAG,CAAC,EAAoC,KAAiD;IAC/G,IAAI,mBAAmB,EAAE,EAAE;QAC1B,OAAO,CAAC,CAA8B,4BAAA,CAAA,CAAC;AACvC,QAAA,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;;AAEd,IAAA,OAAO,EAAE,YAAY,WAAW,IAAI,EAAE,CAAC,OAAO,KAAK,MAAM,IAAI,EAAE,CAAC,OAAO,KAAK,UAAU,CAAC,WAAW,EAAE,EAAE;AACrG,QAAA,IAAI;AACH,YAAA,IAAI,EAAE,CAAC,aAAa,YAAY,WAAW,EAAE;AAC5C,gBAAA,EAAE,GAAG,EAAE,CAAC,aAAa;;AACf,iBAAA,IAAI,EAAE,CAAC,UAAU,YAAY,UAAU,EAAE;AAC/C,gBAAA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AAA,GAAA,EAAA,CAAE,QAAQ,CAAC,KAAK,CAAC;;AAE9B,aAAC,CAAC;;;AAGL;;;;"}
1
+ {"version":3,"file":"controller-DJOhQXnE.js","sources":["src/components/form/controller.ts"],"sourcesContent":["import { KolFormTag } from '../../core/component-names';\nimport type { FormProps } from '../../schema';\nimport { devHint, getExperimentalMode, KoliBriDevHelper, Log, setEventTarget } from '../../schema';\n\nconst searchFormElement = (el?: HTMLElement | ParentNode | null): HTMLElement | ParentNode | null | undefined => {\n\tif (getExperimentalMode()) {\n\t\tdevHint(`↓ Search form element start.`);\n\t\tLog.debug(el);\n\t}\n\twhile (el instanceof HTMLElement && el.tagName !== 'FORM' && el.tagName !== KolFormTag.toUpperCase()) {\n\t\ttry {\n\t\t\tif (el.parentElement instanceof HTMLElement) {\n\t\t\t\tel = el.parentElement;\n\t\t\t} else if (el.parentNode instanceof ShadowRoot) {\n\t\t\t\tel = el.parentNode.host;\n\t\t\t} else {\n\t\t\t\tel = null;\n\t\t\t}\n\t\t} catch (error) {\n\t\t\t/**\n\t\t\t * Try is needed for SSR.\n\t\t\t * - no HTMLElement is available\n\t\t\t * - no ShadowRoot is available\n\t\t\t */\n\t\t}\n\t\tif (getExperimentalMode()) {\n\t\t\tLog.debug(el);\n\t\t\tdevHint(`↑ Search form element finished.`);\n\t\t}\n\t}\n\treturn el;\n};\n\nexport const propagateResetEventToForm = (\n\toptions: {\n\t\tform?: HTMLElement | ParentNode | null;\n\t\tref?: HTMLElement;\n\t} = {},\n): void => {\n\tconst form = searchFormElement(options.form);\n\tif (form instanceof HTMLElement) {\n\t\tconst event = new Event('reset', {\n\t\t\tbubbles: true,\n\t\t\tcancelable: true,\n\t\t});\n\t\tif (form.tagName === 'FORM') {\n\t\t\tsetEventTarget(event, form);\n\t\t\tform.dispatchEvent(event);\n\t\t} else if (form.tagName === KolFormTag.toUpperCase()) {\n\t\t\tsetEventTarget(event, KoliBriDevHelper.querySelector('form', form) as HTMLFormElement);\n\t\t\tconst kolForm = form as FormProps;\n\t\t\tif (typeof kolForm._on?.onReset === 'function') {\n\t\t\t\ttypeof kolForm._on?.onReset(event);\n\t\t\t}\n\t\t}\n\t}\n};\n\nexport const propagateSubmitEventToForm = (\n\toptions: {\n\t\tform?: HTMLElement | ParentNode | null;\n\t\tref?: HTMLElement;\n\t} = {},\n): void => {\n\tconst form = searchFormElement(options.form);\n\tif (form instanceof HTMLElement) {\n\t\tconst event = new SubmitEvent('submit', {\n\t\t\tbubbles: true,\n\t\t\tcancelable: true,\n\t\t\tsubmitter: form,\n\t\t});\n\t\t/**\n\t\t * TODO: Wenn Formular-Action (nicht Ajax oder JS) verwendet wird,\n\t\t * dann müssen wir das Event an das HTMLFormElement innerhalb\n\t\t * der HTMLKolFormElements propagieren, wenn kein onSubmit\n\t\t * gesetzt wurde.\n\t\t *\n\t\t * TODO: Form-associated custom elements:\n\t\t * - https://web.dev/more-capable-form-controls/\n\t\t * - https://github.com/public-ui/kolibri/issues/946\n\t\t */\n\t\tif (form.tagName === 'FORM') {\n\t\t\tif (getExperimentalMode() && (form as HTMLFormElement).noValidate === false) {\n\t\t\t\tdevHint(`If you have not focusable or hidden form fields in your form, you should enable noValidate for your form.`, {\n\t\t\t\t\tforce: true,\n\t\t\t\t});\n\t\t\t\t// (form as HTMLFormElement).noValidate = true; do not make this implicit\n\t\t\t}\n\t\t\t// Use setTimeout to ensure onChange has been called first\n\t\t\tsetTimeout(() => {\n\t\t\t\t// See https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/requestSubmit\n\t\t\t\tif (typeof (form as HTMLFormElement).requestSubmit === 'function') {\n\t\t\t\t\t(form as HTMLFormElement).requestSubmit();\n\t\t\t\t} else {\n\t\t\t\t\tsetEventTarget(event, form);\n\t\t\t\t\tform.dispatchEvent(event);\n\t\t\t\t}\n\t\t\t});\n\t\t} else if (form.tagName === KolFormTag.toUpperCase()) {\n\t\t\tsetEventTarget(event, KoliBriDevHelper.querySelector('form', form) as HTMLFormElement);\n\t\t\tconst kolForm = form as FormProps;\n\t\t\t// Use setTimeout to ensure onChange has been called first\n\t\t\tsetTimeout(() => {\n\t\t\t\tif (typeof kolForm._on?.onSubmit === 'function') {\n\t\t\t\t\tkolForm._on?.onSubmit(event);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n};\n"],"names":[],"mappings":";;;;;;AAIA,MAAM,iBAAiB,GAAG,CAAC,EAAoC,KAAiD;IAC/G,IAAI,mBAAmB,EAAE,EAAE;QAC1B,OAAO,CAAC,CAA8B,4BAAA,CAAA,CAAC;AACvC,QAAA,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;;AAEd,IAAA,OAAO,EAAE,YAAY,WAAW,IAAI,EAAE,CAAC,OAAO,KAAK,MAAM,IAAI,EAAE,CAAC,OAAO,KAAK,UAAU,CAAC,WAAW,EAAE,EAAE;AACrG,QAAA,IAAI;AACH,YAAA,IAAI,EAAE,CAAC,aAAa,YAAY,WAAW,EAAE;AAC5C,gBAAA,EAAE,GAAG,EAAE,CAAC,aAAa;;AACf,iBAAA,IAAI,EAAE,CAAC,UAAU,YAAY,UAAU,EAAE;AAC/C,gBAAA,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,IAAI;;iBACjB;gBACN,EAAE,GAAG,IAAI;;;QAET,OAAO,KAAK,EAAE;;QAOhB,IAAI,mBAAmB,EAAE,EAAE;AAC1B,YAAA,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;YACb,OAAO,CAAC,CAAiC,+BAAA,CAAA,CAAC;;;AAG5C,IAAA,OAAO,EAAE;AACV,CAAC;MAEY,yBAAyB,GAAG,CACxC,OAGI,GAAA,EAAE,KACG;;IACT,MAAM,IAAI,GAAG,iBAAiB,CAAC,OAAO,CAAC,IAAI,CAAC;AAC5C,IAAA,IAAI,IAAI,YAAY,WAAW,EAAE;AAChC,QAAA,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,OAAO,EAAE;AAChC,YAAA,OAAO,EAAE,IAAI;AACb,YAAA,UA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H,UAAU,CAAC,MAAK;AAEf,gBAAA,IAAI,OAAQ,IAAwB,CAAC,aAAa,KAAK,UAAU,EAAE;oBACjE,IAAwB,CAAC,aAAa,EAAE;;qBACnC;AACN,oBAAA,cAAc,CAAC,KAAK,EAAE,IAAI,CAAC;AAC3B,oBAAA,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC;;AAE3B,aAAC,CAAC;;aACI,IAAI,IAAI,CAAC,OAAO,KAAK,UAAU,CAAC,WAAW,EAAE,EAAE;AACrD,YAAA,cAAc,CAAC,KAAK,EAAE,gBAAgB,CAAC,aAAa,CAAC,MAAM,EAAE,IAAI,CAAoB,CAAC;YACtF,MAAM,OAAO,GAAG,IAAiB;YAEjC,UAAU,CAAC,MAAK;;AACf,gBAAA,IAAI,QAAO,CAAA,EAAA,GAAA,OAAO,CAAC,GAAG,MAAE,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAA,QAAQ,CAAA,KAAK,UAAU,EAAE;oBAChD,CAAA,EAAA,GAAA,OAAO,CAAC,GAAG,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAE,QAAQ,CAAC,KAAK,CAAC;;AAE9B,aAAC,CAAC;;;AAGL;;;;"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{w as s}from"./common-L1K0yh1S.js";import{v as t}from"./spell-check-DrU5XI1o.js";import{v as e}from"./suggestions-Bufr76At.js";import{I as o}from"./controller-q35akpMH.js";const i=["text","search","url","tel"],r=t=>"string"==typeof t&&i.includes(t),a=(t,o)=>{s(t,"_type",r,new Set(i),o)};class l extends o{constructor(t,o,e){super(t,o,e),this.component=t}validateSuggestions(t){e(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateSuggestions(this.component._suggestions)}}class c extends l{constructor(t,o,e){super(t,o,e),this.hasError=!1,this.component=t}validateSpellCheck(o){t(this.component,o)}validateType(t){a(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateSpellCheck(this.component._spellCheck),this.validateType(this.component._type)}}export{l as I,c as a};
4
+ import{w as s}from"./common-L1K0yh1S.js";import{v as t}from"./spell-check-DrU5XI1o.js";import{v as e}from"./suggestions-Bufr76At.js";import{I as o}from"./controller-gn2X9gKB.js";const i=["text","search","url","tel"],r=t=>"string"==typeof t&&i.includes(t),a=(t,o)=>{s(t,"_type",r,new Set(i),o)};class l extends o{constructor(t,o,e){super(t,o,e),this.component=t}validateSuggestions(t){e(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateSuggestions(this.component._suggestions)}}class n extends l{constructor(t,o,e){super(t,o,e),this.hasError=!1,this.component=t}validateSpellCheck(o){t(this.component,o)}validateType(t){a(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateSpellCheck(this.component._spellCheck),this.validateType(this.component._type)}}export{l as I,n as a};
@@ -1 +1 @@
1
- {"version":3,"file":"controller-DKkpnndm.js","sources":["src/schema/props/type-input-text.ts","src/components/input-text/controller.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { watchValidator } from '../utils';\n\nexport const inputTextTypeOptions = ['text', 'search', 'url', 'tel'] as const;\nexport type InputTextTypePropType = (typeof inputTextTypeOptions)[number];\n\n/**\n * Defines the type of the input-text component.\n */\nexport type PropTypeInputText = {\n\ttype: InputTextTypePropType;\n};\n\nconst isInputTextTypePropType = (value: unknown): value is InputTextTypePropType => {\n\treturn typeof value === 'string' && inputTextTypeOptions.includes(value as InputTextTypePropType);\n};\n\nexport const validateTypeInputText = (component: Generic.Element.Component, value?: InputTextTypePropType): void => {\n\twatchValidator(component, '_type', isInputTextTypePropType, new Set(inputTextTypeOptions), value);\n};\n","import type {\n\tInputTextProps,\n\tInputTextTypePropType,\n\tInputTextWatches,\n\tPropLabelWithExpertSlot,\n\tPropSuggestions,\n\tSpellCheckPropType,\n\tSuggestionsPropType,\n} from '../../schema';\nimport { validateSpellCheck, validateSuggestions, validateTypeInputText } from '../../schema';\n\nimport { InputPasswordController } from '../input-password/controller';\n\nimport type { Generic } from 'adopted-style-sheets';\n\ntype RequiredProps = PropLabelWithExpertSlot;\ntype OptionalProps = {\n\tid: string;\n} & PropSuggestions;\ntype InputTextEmailProps = Generic.Element.Members<RequiredProps, OptionalProps>;\ntype InputTextEmailWatches = Generic.Element.Watchers<RequiredProps, OptionalProps>;\n\nexport class InputTextEmailController extends InputPasswordController implements InputTextEmailWatches {\n\tprotected readonly component: Generic.Element.Component & InputTextEmailProps;\n\n\tpublic constructor(component: Generic.Element.Component & InputTextEmailProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateSuggestions(value?: SuggestionsPropType): void {\n\t\tvalidateSuggestions(this.component, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateSuggestions(this.component._suggestions);\n\t}\n}\n\nexport class InputTextController extends InputTextEmailController implements InputTextWatches {\n\tprotected readonly component: Generic.Element.Component & InputTextProps;\n\n\tpublic hasError = false;\n\n\tpublic constructor(component: Generic.Element.Component & InputTextProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateSpellCheck(value?: SpellCheckPropType): void {\n\t\tvalidateSpellCheck(this.component, value);\n\t}\n\n\tpublic validateType(value?: InputTextTypePropType): void {\n\t\tvalidateTypeInputText(this.component, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateSpellCheck(this.component._spellCheck);\n\t\tthis.validateType(this.component._type);\n\t}\n}\n"],"names":[],"mappings":";;;;;;;;AAIO,MAAM,oBAAoB,GAAG,CAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,CAAU;AAU7E,MAAM,uBAAuB,GAAG,CAAC,KAAc,KAAoC;IAClF,OAAO,OAAO,KAAK,KAAK,QAAQ,IA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,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;QACnD,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;;AAExC;;;;"}
1
+ {"version":3,"file":"controller-DugjUu5j.js","sources":["src/schema/props/type-input-text.ts","src/components/input-text/controller.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { watchValidator } from '../utils';\n\nexport const inputTextTypeOptions = ['text', 'search', 'url', 'tel'] as const;\nexport type InputTextTypePropType = (typeof inputTextTypeOptions)[number];\n\n/**\n * Defines the type of the input-text component.\n */\nexport type PropTypeInputText = {\n\ttype: InputTextTypePropType;\n};\n\nconst isInputTextTypePropType = (value: unknown): value is InputTextTypePropType => {\n\treturn typeof value === 'string' && inputTextTypeOptions.includes(value as InputTextTypePropType);\n};\n\nexport const validateTypeInputText = (component: Generic.Element.Component, value?: InputTextTypePropType): void => {\n\twatchValidator(component, '_type', isInputTextTypePropType, new Set(inputTextTypeOptions), value);\n};\n","import type {\n\tInputTextProps,\n\tInputTextTypePropType,\n\tInputTextWatches,\n\tPropLabelWithExpertSlot,\n\tPropSuggestions,\n\tSpellCheckPropType,\n\tSuggestionsPropType,\n} from '../../schema';\nimport { validateSpellCheck, validateSuggestions, validateTypeInputText } from '../../schema';\n\nimport { InputPasswordController } from '../input-password/controller';\n\nimport type { Generic } from 'adopted-style-sheets';\n\ntype RequiredProps = PropLabelWithExpertSlot;\ntype OptionalProps = {\n\tid: string;\n} & PropSuggestions;\ntype InputTextEmailProps = Generic.Element.Members<RequiredProps, OptionalProps>;\ntype InputTextEmailWatches = Generic.Element.Watchers<RequiredProps, OptionalProps>;\n\nexport class InputTextEmailController extends InputPasswordController implements InputTextEmailWatches {\n\tprotected readonly component: Generic.Element.Component & InputTextEmailProps;\n\n\tpublic constructor(component: Generic.Element.Component & InputTextEmailProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateSuggestions(value?: SuggestionsPropType): void {\n\t\tvalidateSuggestions(this.component, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateSuggestions(this.component._suggestions);\n\t}\n}\n\nexport class InputTextController extends InputTextEmailController implements InputTextWatches {\n\tprotected readonly component: Generic.Element.Component & InputTextProps;\n\n\tpublic hasError = false;\n\n\tpublic constructor(component: Generic.Element.Component & InputTextProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateSpellCheck(value?: SpellCheckPropType): void {\n\t\tvalidateSpellCheck(this.component, value);\n\t}\n\n\tpublic validateType(value?: InputTextTypePropType): void {\n\t\tvalidateTypeInputText(this.component, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateSpellCheck(this.component._spellCheck);\n\t\tthis.validateType(this.component._type);\n\t}\n}\n"],"names":[],"mappings":";;;;;;;;AAIO,MAAM,oBAAoB,GAAG,CAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,CAAU;AAU7E,MAAM,uBAAuB,GAAG,CAAC,KAAc,KAAoC;IAClF,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,oBAAoB,CAAC,QAAQ,CAAC,KAA8B,CAAC;AAClG,CAAC;AAEM,MAAM,qBAAqB,GAAG,CAAC,SAAoC,EAAE,KAA6B,KAAU;AAClH,IAAA,cAAc,CAAC,SAAS,EAAE,OAAO,EAAE,uBAAuB,EAAE,IAAI,GAAG,CAAC,oBAAoB,CAAC,EAAE,KAAK,CAAC;AAClG,CAAC;;ACEK,MAAO,wBAAyB,SAAQ,uBAAuB,CAAA;AAGpE,IAAA,WAAA,CAAmB,SAA0D,EAAE,IAAY,EAAE,IAAkB,EAAA;AAC9G,QAAA,KAAK,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC;AAC5B,QAAA,IAAI,CAAC,SAAS,GAAG,SAAS;;AAGpB,IAAA,mBAAmB,CAAC,KAA2B,EAAA;AACrD,QAAA,mBAAmB,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC;;IAGpC,iBAAiB,GAAA;QACvB,KAAK,CAAC,iBAAiB,EAAE;QACzB,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC;;AAEtD;AAEK,MAAO,mBAAoB,SAAQ,wBAAwB,CAAA;AAKhE,IAAA,WAAA,CAAmB,SAAqD,EAAE,IAAY,EAAE,IAAkB,EAAA;AACzG,QAAA,KAAK,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC;AAHtB,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;AAItB,QAAA,IAAI,CAAC,SAAS,GAAG,SAAS;;AAGpB,IAAA,kBAAkB,CAAC,KAA0B,EAAA;AACnD,QAAA,kBAAkB,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC;;AAGnC,IAAA,YAAY,CAAC,KAA6B,EAAA;AAChD,QAAA,qBAAqB,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC;;IAGtC,iBAAiB,GAAA;QACvB,KAAK,CAAC,iBAAiB,EAAE;QACzB,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;QACnD,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;;AAExC;;;;"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{m as t,G as s,s as e}from"./common-L1K0yh1S.js";import{b as i,c as r}from"./label-ohY9ajP0.js";import{v as o}from"./required-7L0ytoMT.js";import{v as a}from"./orientation-B0ErOlUK.js";import{I as n}from"./FormFieldStateWrapper-B3p0ZzG-.js";const f=e=>{if("object"==typeof e&&null!==e){if("string"==typeof e.label&&e.label.length>0)return e.disabled=!0===e.disabled,e.label=`${e.label}`.trim(),!1===i(e.label,3)&&!1===r(e.label)&&t(`A differing Aria-Label (${e.label}) is inaccessible. A differing Aria-Label should consist of at least three readable characters.`),!Array.isArray(e.options)||void 0===e.options.find(t=>!1===f(t));if("number"==typeof e.label)return!0}return!1},l=(t,e,o={})=>{s(t,"_options",t=>"object"==typeof t&&null!==t&&"string"==typeof t.label&&t.label.length>0,e,void 0,o)},h=(t,e,o={})=>{s(t,"_options",f,e,void 0,o)},c=(t,e,o="")=>{e.forEach((e,a)=>{const i=`${o}-${a}`;"object"==typeof e&&null!==e&&"string"==typeof e.label&&e.label.length>0&&(Array.isArray(e.options)?c(t,e.options,i):t.set(i,e))})};class u extends n{constructor(t,e,o){super(t,e,o),this.component=t}validateRequired(t){o(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateRequired(this.component._required)}}class p extends u{constructor(t,e,o){super(t,e,o),this.keyOptionMap=new Map,this.getOptionByKey=t=>this.keyOptionMap.get(t),this.afterPatchOptions=(t,e,o,a)=>{"_value"===a&&this.setFormAssociatedValue(t)},this.beforePatchOptions=(t,e)=>{const o=e.has("_options")?e.get("_options"):this.component.state._options;if(Array.isArray(o)&&o.length>0){this.keyOptionMap.clear();const t=o.map(t=>{var e;return"object"==typeof t&&null!==t&&"string"==typeof t.label?Object.assign(Object.assign({},t),{value:null!==(e=t.value)&&void 0!==e?e:t.label}):t});c(this.keyOptionMap,t)}},this.component=t}validateOrientation(t){a(this.component,t,"vertical")}validateOptions(t){l(this.component,t,{hooks:{afterPatch:this.afterPatchOptions,beforePatch:this.beforePatchOptions}})}validateValue(t){t=Array.isArray(t)?t[0]:t,e(this.component,"_value",t,{afterPatch:this.afterPatchOptions,beforePatch:this.beforePatchOptions})}componentWillLoad(){super.componentWillLoad(),this.validateOrientation(this.component._orientation),this.validateOptions(this.component._options),this.validateValue(this.component._value)}}export{u as I,p as a,l as b,c as f,h as v};
4
+ import{m as t,G as s,s as e}from"./common-L1K0yh1S.js";import{b as i,c as r}from"./label-ohY9ajP0.js";import{v as o}from"./required-7L0ytoMT.js";import{v as a}from"./orientation-B0ErOlUK.js";import{I as n}from"./FormFieldStateWrapper-LHV3Rpm4.js";const f=e=>{if("object"==typeof e&&null!==e){if("string"==typeof e.label&&e.label.length>0)return e.disabled=!0===e.disabled,e.label=`${e.label}`.trim(),!1===i(e.label,3)&&!1===r(e.label)&&t(`A differing Aria-Label (${e.label}) is inaccessible. A differing Aria-Label should consist of at least three readable characters.`),!Array.isArray(e.options)||void 0===e.options.find(t=>!1===f(t));if("number"==typeof e.label)return!0}return!1},l=(t,e,o={})=>{s(t,"_options",t=>"object"==typeof t&&null!==t&&"string"==typeof t.label&&t.label.length>0,e,void 0,o)},h=(t,e,o={})=>{s(t,"_options",f,e,void 0,o)},c=(t,e,o="")=>{e.forEach((e,a)=>{const i=`${o}-${a}`;"object"==typeof e&&null!==e&&"string"==typeof e.label&&e.label.length>0&&(Array.isArray(e.options)?c(t,e.options,i):t.set(i,e))})};class u extends n{constructor(t,e,o){super(t,e,o),this.component=t}validateRequired(t){o(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateRequired(this.component._required)}}class p extends u{constructor(t,e,o){super(t,e,o),this.keyOptionMap=new Map,this.getOptionByKey=t=>this.keyOptionMap.get(t),this.afterPatchOptions=(t,e,o,a)=>{"_value"===a&&this.setFormAssociatedValue(t)},this.beforePatchOptions=(t,e)=>{const o=e.has("_options")?e.get("_options"):this.component.state._options;if(Array.isArray(o)&&o.length>0){this.keyOptionMap.clear();const t=o.map(t=>{var e;return"object"==typeof t&&null!==t&&"string"==typeof t.label?Object.assign(Object.assign({},t),{value:null!==(e=t.value)&&void 0!==e?e:t.label}):t});c(this.keyOptionMap,t)}},this.component=t}validateOrientation(t){a(this.component,t,"vertical")}validateOptions(t){l(this.component,t,{hooks:{afterPatch:this.afterPatchOptions,beforePatch:this.beforePatchOptions}})}validateValue(t){t=Array.isArray(t)?t[0]:t,e(this.component,"_value",t,{afterPatch:this.afterPatchOptions,beforePatch:this.beforePatchOptions})}componentWillLoad(){super.componentWillLoad(),this.validateOrientation(this.component._orientation),this.validateOptions(this.component._options),this.validateValue(this.component._value)}}export{u as I,p as a,l as b,c as f,h as v};