@public-ui/components 2.2.11-rc.1 → 3.0.0-023e727fba43bcd74fd9f7ce52558eee4a3aa906.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1222) hide show
  1. package/custom-elements.json +302 -686
  2. package/dist/cjs/Alert-d6fad2da.js +4 -0
  3. package/dist/cjs/Alert-d6fad2da.js.map +1 -0
  4. package/dist/cjs/Collapsible-392cffa2.js +4 -0
  5. package/dist/cjs/Collapsible-392cffa2.js.map +1 -0
  6. package/dist/cjs/CustomSuggestionsOptionsGroup-7ec1692f.js +4 -0
  7. package/dist/cjs/CustomSuggestionsOptionsGroup-7ec1692f.js.map +1 -0
  8. package/dist/cjs/FieldControlStateWrapper-4f6c2b46.js +4 -0
  9. package/dist/cjs/FieldControlStateWrapper-4f6c2b46.js.map +1 -0
  10. package/dist/cjs/Heading-39568890.js +4 -0
  11. package/dist/cjs/Heading-39568890.js.map +1 -0
  12. package/dist/cjs/Icon-d38da0a8.js +4 -0
  13. package/dist/cjs/Icon-d38da0a8.js.map +1 -0
  14. package/dist/cjs/Input-469ec9bf.js +4 -0
  15. package/dist/cjs/Input-469ec9bf.js.map +1 -0
  16. package/dist/cjs/InputStateWrapper-24dab12a.js +4 -0
  17. package/dist/cjs/InputStateWrapper-24dab12a.js.map +1 -0
  18. package/dist/cjs/InternalUnderlinedBadgeText-bce360d2.js +4 -0
  19. package/dist/cjs/InternalUnderlinedBadgeText-bce360d2.js.map +1 -0
  20. package/dist/cjs/Span-9b4bda19.js +4 -0
  21. package/dist/cjs/Span-9b4bda19.js.map +1 -0
  22. package/dist/cjs/{align-floating-elements-2f2c4d75.js → align-floating-elements-f88156a1.js} +1 -1
  23. package/dist/cjs/{align-floating-elements-2f2c4d75.js.map → align-floating-elements-f88156a1.js.map} +1 -1
  24. package/dist/cjs/{app-globals-b987580d.js → app-globals-5ff3a7ce.js} +1 -1
  25. package/dist/cjs/{app-globals-b987580d.js.map → app-globals-5ff3a7ce.js.map} +1 -1
  26. package/dist/cjs/component-names-82c4d68d.js +4 -0
  27. package/dist/cjs/component-names-82c4d68d.js.map +1 -0
  28. package/dist/cjs/{controller-d7e8fba5.js → controller-01ee9a9a.js} +1 -1
  29. package/dist/cjs/{controller-d7e8fba5.js.map → controller-01ee9a9a.js.map} +1 -1
  30. package/dist/cjs/controller-0e7ee253.js +4 -0
  31. package/dist/cjs/{controller-3c347f5b.js.map → controller-0e7ee253.js.map} +1 -1
  32. package/dist/cjs/{controller-b8eea6f7.js → controller-1025bb87.js} +1 -1
  33. package/dist/cjs/{controller-b8eea6f7.js.map → controller-1025bb87.js.map} +1 -1
  34. package/dist/cjs/{controller-20541e1e.js → controller-9cbf092b.js} +1 -1
  35. package/dist/cjs/{controller-20541e1e.js.map → controller-9cbf092b.js.map} +1 -1
  36. package/dist/cjs/controller-icon-8587b4f5.js +4 -0
  37. package/dist/cjs/controller-icon-8587b4f5.js.map +1 -0
  38. package/dist/cjs/{dev.utils-9c6fe4d8.js → dev.utils-4598bd6c.js} +1 -1
  39. package/dist/cjs/{dev.utils-9c6fe4d8.js.map → dev.utils-4598bd6c.js.map} +1 -1
  40. package/dist/cjs/{devtools-a4dfc1ef.js → devtools-3cfab298.js} +1 -1
  41. package/dist/cjs/{devtools-a4dfc1ef.js.map → devtools-3cfab298.js.map} +1 -1
  42. package/dist/cjs/events-40771c95.js +4 -0
  43. package/dist/cjs/events-40771c95.js.map +1 -0
  44. package/dist/cjs/getRenderStates-7dbf59c2.js +4 -0
  45. package/dist/cjs/getRenderStates-7dbf59c2.js.map +1 -0
  46. package/dist/cjs/{i18n-5f0ed6ed.js → i18n-0e710ccd.js} +1 -1
  47. package/dist/cjs/{i18n-5f0ed6ed.js.map → i18n-0e710ccd.js.map} +1 -1
  48. package/dist/cjs/i18n-8c288a27.js +4 -0
  49. package/dist/cjs/i18n-8c288a27.js.map +1 -0
  50. package/dist/cjs/{icons-cfdc392f.js → icons-c0c89cbb.js} +1 -1
  51. package/dist/cjs/icons-c0c89cbb.js.map +1 -0
  52. package/dist/cjs/index-4f8f381f.js +4 -0
  53. package/dist/cjs/index-4f8f381f.js.map +1 -0
  54. package/dist/cjs/index.cjs.js +1 -1
  55. package/dist/cjs/index.cjs.js.map +1 -1
  56. package/dist/cjs/isObject-6090b636.js +4 -0
  57. package/dist/cjs/isObject-6090b636.js.map +1 -0
  58. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  59. package/dist/cjs/kol-abbr.cjs.entry.js.map +1 -1
  60. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  61. package/dist/cjs/kol-accordion.cjs.entry.js.map +1 -1
  62. package/dist/cjs/kol-alert-wc.cjs.entry.js +1 -1
  63. package/dist/cjs/kol-alert-wc.cjs.entry.js.map +1 -1
  64. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  65. package/dist/cjs/kol-alert.cjs.entry.js.map +1 -1
  66. package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
  67. package/dist/cjs/kol-avatar-wc.cjs.entry.js.map +1 -1
  68. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  69. package/dist/cjs/kol-avatar.cjs.entry.js.map +1 -1
  70. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  71. package/dist/cjs/kol-badge.cjs.entry.js.map +1 -1
  72. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  73. package/dist/cjs/kol-breadcrumb.cjs.entry.js.map +1 -1
  74. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  75. package/dist/cjs/kol-button-link.cjs.entry.js.map +1 -1
  76. package/dist/cjs/kol-button-wc.cjs.entry.js +1 -1
  77. package/dist/cjs/kol-button-wc.cjs.entry.js.map +1 -1
  78. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  79. package/dist/cjs/kol-button.cjs.entry.js.map +1 -1
  80. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  81. package/dist/cjs/kol-card.cjs.entry.js.map +1 -1
  82. package/dist/cjs/kol-combobox.cjs.entry.js +1 -1
  83. package/dist/cjs/kol-combobox.cjs.entry.js.map +1 -1
  84. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  85. package/dist/cjs/kol-details.cjs.entry.js.map +1 -1
  86. package/dist/cjs/kol-drawer.cjs.entry.js +1 -1
  87. package/dist/cjs/kol-drawer.cjs.entry.js.map +1 -1
  88. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  89. package/dist/cjs/kol-form.cjs.entry.js.map +1 -1
  90. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  91. package/dist/cjs/kol-heading.cjs.entry.js.map +1 -1
  92. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  93. package/dist/cjs/kol-icon.cjs.entry.js.map +1 -1
  94. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  95. package/dist/cjs/kol-image.cjs.entry.js.map +1 -1
  96. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  97. package/dist/cjs/kol-input-checkbox.cjs.entry.js.map +1 -1
  98. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  99. package/dist/cjs/kol-input-color.cjs.entry.js.map +1 -1
  100. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  101. package/dist/cjs/kol-input-date.cjs.entry.js.map +1 -1
  102. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  103. package/dist/cjs/kol-input-email.cjs.entry.js.map +1 -1
  104. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  105. package/dist/cjs/kol-input-file.cjs.entry.js.map +1 -1
  106. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  107. package/dist/cjs/kol-input-number.cjs.entry.js.map +1 -1
  108. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  109. package/dist/cjs/kol-input-password.cjs.entry.js.map +1 -1
  110. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  111. package/dist/cjs/kol-input-radio.cjs.entry.js.map +1 -1
  112. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  113. package/dist/cjs/kol-input-range.cjs.entry.js.map +1 -1
  114. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  115. package/dist/cjs/kol-input-text.cjs.entry.js.map +1 -1
  116. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  117. package/dist/cjs/kol-kolibri.cjs.entry.js.map +1 -1
  118. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  119. package/dist/cjs/kol-link-button.cjs.entry.js.map +1 -1
  120. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  121. package/dist/cjs/kol-link-wc.cjs.entry.js.map +1 -1
  122. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  123. package/dist/cjs/kol-link.cjs.entry.js.map +1 -1
  124. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  125. package/dist/cjs/kol-modal.cjs.entry.js.map +1 -1
  126. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  127. package/dist/cjs/kol-nav.cjs.entry.js.map +1 -1
  128. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  129. package/dist/cjs/kol-pagination.cjs.entry.js.map +1 -1
  130. package/dist/cjs/kol-popover-button-wc.cjs.entry.js +4 -0
  131. package/dist/cjs/kol-popover-button-wc.cjs.entry.js.map +1 -0
  132. package/dist/cjs/kol-popover-button.cjs.entry.js +1 -1
  133. package/dist/cjs/kol-popover-button.cjs.entry.js.map +1 -1
  134. package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
  135. package/dist/cjs/kol-popover-wc.cjs.entry.js.map +1 -1
  136. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  137. package/dist/cjs/kol-progress.cjs.entry.js.map +1 -1
  138. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  139. package/dist/cjs/kol-quote.cjs.entry.js.map +1 -1
  140. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  141. package/dist/cjs/kol-select.cjs.entry.js.map +1 -1
  142. package/dist/cjs/kol-single-select.cjs.entry.js +1 -1
  143. package/dist/cjs/kol-single-select.cjs.entry.js.map +1 -1
  144. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  145. package/dist/cjs/kol-skip-nav.cjs.entry.js.map +1 -1
  146. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  147. package/dist/cjs/kol-spin.cjs.entry.js.map +1 -1
  148. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  149. package/dist/cjs/kol-split-button.cjs.entry.js.map +1 -1
  150. package/dist/cjs/kol-table-settings-wc.cjs.entry.js +4 -0
  151. package/dist/cjs/kol-table-settings-wc.cjs.entry.js.map +1 -0
  152. package/dist/cjs/kol-table-stateful.cjs.entry.js +1 -1
  153. package/dist/cjs/kol-table-stateful.cjs.entry.js.map +1 -1
  154. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js +1 -1
  155. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js.map +1 -1
  156. package/dist/cjs/kol-table-stateless.cjs.entry.js +1 -1
  157. package/dist/cjs/kol-table-stateless.cjs.entry.js.map +1 -1
  158. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  159. package/dist/cjs/kol-tabs.cjs.entry.js.map +1 -1
  160. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  161. package/dist/cjs/kol-textarea.cjs.entry.js.map +1 -1
  162. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  163. package/dist/cjs/kol-toast-container.cjs.entry.js.map +1 -1
  164. package/dist/cjs/kol-toolbar.cjs.entry.js +1 -1
  165. package/dist/cjs/kol-toolbar.cjs.entry.js.map +1 -1
  166. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +1 -1
  167. package/dist/cjs/kol-tooltip-wc.cjs.entry.js.map +1 -1
  168. package/dist/cjs/kol-tree-item-wc.cjs.entry.js +1 -1
  169. package/dist/cjs/kol-tree-item-wc.cjs.entry.js.map +1 -1
  170. package/dist/cjs/kol-tree-item.cjs.entry.js +1 -1
  171. package/dist/cjs/kol-tree-item.cjs.entry.js.map +1 -1
  172. package/dist/cjs/kol-tree-wc.cjs.entry.js +1 -1
  173. package/dist/cjs/kol-tree-wc.cjs.entry.js.map +1 -1
  174. package/dist/cjs/kol-tree.cjs.entry.js +1 -1
  175. package/dist/cjs/kol-tree.cjs.entry.js.map +1 -1
  176. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  177. package/dist/cjs/kol-version.cjs.entry.js.map +1 -1
  178. package/dist/cjs/kolibri.cjs.js +1 -1
  179. package/dist/cjs/loader.cjs.js +1 -1
  180. package/dist/cjs/reuse-8650ea4e.js +4 -0
  181. package/dist/cjs/reuse-8650ea4e.js.map +1 -0
  182. package/dist/cjs/table-settings-e3e70637.js +4 -0
  183. package/dist/cjs/table-settings-e3e70637.js.map +1 -0
  184. package/dist/cjs/test-component.cjs.entry.js +1 -1
  185. package/dist/components/Alert.js +1 -1
  186. package/dist/components/Alert.js.map +1 -1
  187. package/dist/components/Collapsible.js +1 -1
  188. package/dist/components/Collapsible.js.map +1 -1
  189. package/dist/components/CustomSuggestionsOptionsGroup.js +4 -0
  190. package/dist/components/CustomSuggestionsOptionsGroup.js.map +1 -0
  191. package/dist/components/FieldControlStateWrapper.js +4 -0
  192. package/dist/components/FieldControlStateWrapper.js.map +1 -0
  193. package/dist/components/Heading.js +4 -0
  194. package/dist/components/Heading.js.map +1 -0
  195. package/dist/components/Icon.js +4 -0
  196. package/dist/components/Icon.js.map +1 -0
  197. package/dist/components/Input.js +4 -0
  198. package/dist/components/Input.js.map +1 -0
  199. package/dist/components/InputContainerStateWrapper.js +4 -0
  200. package/dist/components/InputContainerStateWrapper.js.map +1 -0
  201. package/dist/components/InputStateWrapper.js +4 -0
  202. package/dist/components/InputStateWrapper.js.map +1 -0
  203. package/dist/components/InternalUnderlinedBadgeText.js +1 -1
  204. package/dist/components/InternalUnderlinedBadgeText.js.map +1 -1
  205. package/dist/components/Span.js +4 -0
  206. package/dist/components/Span.js.map +1 -0
  207. package/dist/components/component-names.js +1 -1
  208. package/dist/components/component-names.js.map +1 -1
  209. package/dist/components/controller.js +1 -1
  210. package/dist/components/controller2.js +1 -1
  211. package/dist/components/controller2.js.map +1 -1
  212. package/dist/components/controller3.js +1 -1
  213. package/dist/components/controller3.js.map +1 -1
  214. package/dist/components/controller4.js +1 -1
  215. package/dist/components/controller4.js.map +1 -1
  216. package/dist/components/events.js +1 -1
  217. package/dist/components/events.js.map +1 -1
  218. package/dist/components/getRenderStates.js +4 -0
  219. package/dist/components/getRenderStates.js.map +1 -0
  220. package/dist/components/i18n.js +1 -1
  221. package/dist/components/i18n.js.map +1 -1
  222. package/dist/components/icons.js +1 -1
  223. package/dist/components/icons.js.map +1 -1
  224. package/dist/components/index.js +1 -1
  225. package/dist/components/index.js.map +1 -1
  226. package/dist/components/isObject.js +4 -0
  227. package/dist/components/isObject.js.map +1 -0
  228. package/dist/components/kol-abbr.js +1 -1
  229. package/dist/components/kol-abbr.js.map +1 -1
  230. package/dist/components/kol-accordion.js +1 -1
  231. package/dist/components/kol-accordion.js.map +1 -1
  232. package/dist/components/kol-alert-wc.js +1 -1
  233. package/dist/components/kol-alert-wc.js.map +1 -1
  234. package/dist/components/kol-alert.js +1 -1
  235. package/dist/components/kol-alert.js.map +1 -1
  236. package/dist/components/kol-avatar-wc.js +1 -1
  237. package/dist/components/kol-avatar-wc.js.map +1 -1
  238. package/dist/components/kol-avatar.js +1 -1
  239. package/dist/components/kol-avatar.js.map +1 -1
  240. package/dist/components/kol-badge.js +1 -1
  241. package/dist/components/kol-badge.js.map +1 -1
  242. package/dist/components/kol-breadcrumb.js +1 -1
  243. package/dist/components/kol-breadcrumb.js.map +1 -1
  244. package/dist/components/kol-button-link.js +1 -1
  245. package/dist/components/kol-button-link.js.map +1 -1
  246. package/dist/components/kol-button-wc.js +1 -1
  247. package/dist/components/kol-button-wc.js.map +1 -1
  248. package/dist/components/kol-button.js +1 -1
  249. package/dist/components/kol-button.js.map +1 -1
  250. package/dist/components/kol-card.js +1 -1
  251. package/dist/components/kol-card.js.map +1 -1
  252. package/dist/components/kol-combobox.js +1 -1
  253. package/dist/components/kol-combobox.js.map +1 -1
  254. package/dist/components/kol-details.js +1 -1
  255. package/dist/components/kol-details.js.map +1 -1
  256. package/dist/components/kol-drawer.js +1 -1
  257. package/dist/components/kol-drawer.js.map +1 -1
  258. package/dist/components/kol-form.js +1 -1
  259. package/dist/components/kol-form.js.map +1 -1
  260. package/dist/components/kol-heading.js +1 -1
  261. package/dist/components/kol-heading.js.map +1 -1
  262. package/dist/components/kol-icon.js +1 -1
  263. package/dist/components/kol-icon.js.map +1 -1
  264. package/dist/components/kol-image.js +1 -1
  265. package/dist/components/kol-image.js.map +1 -1
  266. package/dist/components/kol-input-checkbox.js +1 -1
  267. package/dist/components/kol-input-checkbox.js.map +1 -1
  268. package/dist/components/kol-input-color.js +1 -1
  269. package/dist/components/kol-input-color.js.map +1 -1
  270. package/dist/components/kol-input-date.js +1 -1
  271. package/dist/components/kol-input-date.js.map +1 -1
  272. package/dist/components/kol-input-email.js +1 -1
  273. package/dist/components/kol-input-email.js.map +1 -1
  274. package/dist/components/kol-input-file.js +1 -1
  275. package/dist/components/kol-input-file.js.map +1 -1
  276. package/dist/components/kol-input-number.js +1 -1
  277. package/dist/components/kol-input-number.js.map +1 -1
  278. package/dist/components/kol-input-password.js +1 -1
  279. package/dist/components/kol-input-password.js.map +1 -1
  280. package/dist/components/kol-input-radio.js +1 -1
  281. package/dist/components/kol-input-radio.js.map +1 -1
  282. package/dist/components/kol-input-range.js +1 -1
  283. package/dist/components/kol-input-range.js.map +1 -1
  284. package/dist/components/kol-input-text.js +1 -1
  285. package/dist/components/kol-input-text.js.map +1 -1
  286. package/dist/components/kol-kolibri.js +1 -1
  287. package/dist/components/kol-kolibri.js.map +1 -1
  288. package/dist/components/kol-link-button.js +1 -1
  289. package/dist/components/kol-link-button.js.map +1 -1
  290. package/dist/components/kol-link-wc.js +1 -1
  291. package/dist/components/kol-link-wc.js.map +1 -1
  292. package/dist/components/kol-link.js +1 -1
  293. package/dist/components/kol-link.js.map +1 -1
  294. package/dist/components/kol-modal.js +1 -1
  295. package/dist/components/kol-modal.js.map +1 -1
  296. package/dist/components/kol-nav.js +1 -1
  297. package/dist/components/kol-nav.js.map +1 -1
  298. package/dist/components/kol-pagination.js +1 -1
  299. package/dist/components/kol-pagination.js.map +1 -1
  300. package/dist/components/{kol-button-group-wc.d.ts → kol-popover-button-wc.d.ts} +4 -4
  301. package/dist/components/kol-popover-button-wc.js +4 -0
  302. package/dist/components/kol-popover-button-wc.js.map +1 -0
  303. package/dist/components/kol-popover-button.js +1 -1
  304. package/dist/components/kol-popover-button.js.map +1 -1
  305. package/dist/components/kol-popover-wc.js +1 -1
  306. package/dist/components/kol-popover-wc.js.map +1 -1
  307. package/dist/components/kol-progress.js +1 -1
  308. package/dist/components/kol-progress.js.map +1 -1
  309. package/dist/components/kol-quote.js +1 -1
  310. package/dist/components/kol-quote.js.map +1 -1
  311. package/dist/components/kol-select.js +1 -1
  312. package/dist/components/kol-select.js.map +1 -1
  313. package/dist/components/kol-single-select.js +1 -1
  314. package/dist/components/kol-single-select.js.map +1 -1
  315. package/dist/components/kol-skip-nav.js +1 -1
  316. package/dist/components/kol-skip-nav.js.map +1 -1
  317. package/dist/components/kol-spin.js +1 -1
  318. package/dist/components/kol-spin.js.map +1 -1
  319. package/dist/components/kol-split-button.js +1 -1
  320. package/dist/components/kol-split-button.js.map +1 -1
  321. package/dist/components/{kol-button-group.d.ts → kol-table-settings-wc.d.ts} +4 -4
  322. package/dist/components/kol-table-settings-wc.js +4 -0
  323. package/dist/components/kol-table-settings-wc.js.map +1 -0
  324. package/dist/components/kol-table-stateful.js +1 -1
  325. package/dist/components/kol-table-stateful.js.map +1 -1
  326. package/dist/components/kol-table-stateless-wc.js +1 -1
  327. package/dist/components/kol-table-stateless-wc.js.map +1 -1
  328. package/dist/components/kol-table-stateless.js +1 -1
  329. package/dist/components/kol-table-stateless.js.map +1 -1
  330. package/dist/components/kol-tabs.js +1 -1
  331. package/dist/components/kol-tabs.js.map +1 -1
  332. package/dist/components/kol-textarea.js +1 -1
  333. package/dist/components/kol-textarea.js.map +1 -1
  334. package/dist/components/kol-toast-container.js +1 -1
  335. package/dist/components/kol-toast-container.js.map +1 -1
  336. package/dist/components/kol-toolbar.js +1 -1
  337. package/dist/components/kol-toolbar.js.map +1 -1
  338. package/dist/components/kol-tooltip-wc.js +1 -1
  339. package/dist/components/kol-tooltip-wc.js.map +1 -1
  340. package/dist/components/kol-tree-item-wc.js +1 -1
  341. package/dist/components/kol-tree-item-wc.js.map +1 -1
  342. package/dist/components/kol-tree-item.js +1 -1
  343. package/dist/components/kol-tree-item.js.map +1 -1
  344. package/dist/components/kol-tree-wc.js +1 -1
  345. package/dist/components/kol-tree-wc.js.map +1 -1
  346. package/dist/components/kol-tree.js +1 -1
  347. package/dist/components/kol-tree.js.map +1 -1
  348. package/dist/components/kol-version.js +1 -1
  349. package/dist/components/kol-version.js.map +1 -1
  350. package/dist/components/reuse.js +1 -1
  351. package/dist/components/reuse.js.map +1 -1
  352. package/dist/components/table-settings.js +4 -0
  353. package/dist/components/table-settings.js.map +1 -0
  354. package/dist/esm/Alert-6ca15282.js +4 -0
  355. package/dist/esm/Alert-6ca15282.js.map +1 -0
  356. package/dist/esm/Collapsible-7c76ecb2.js +4 -0
  357. package/dist/esm/Collapsible-7c76ecb2.js.map +1 -0
  358. package/dist/esm/CustomSuggestionsOptionsGroup-d02e8c5a.js +4 -0
  359. package/dist/esm/CustomSuggestionsOptionsGroup-d02e8c5a.js.map +1 -0
  360. package/dist/esm/FieldControlStateWrapper-5de501e1.js +4 -0
  361. package/dist/esm/FieldControlStateWrapper-5de501e1.js.map +1 -0
  362. package/dist/esm/Heading-b379a15f.js +4 -0
  363. package/dist/esm/Heading-b379a15f.js.map +1 -0
  364. package/dist/esm/Icon-20286c93.js +4 -0
  365. package/dist/esm/Icon-20286c93.js.map +1 -0
  366. package/dist/esm/Input-d67fc7c6.js +4 -0
  367. package/dist/esm/Input-d67fc7c6.js.map +1 -0
  368. package/dist/esm/InputStateWrapper-a5e74b31.js +4 -0
  369. package/dist/esm/InputStateWrapper-a5e74b31.js.map +1 -0
  370. package/dist/esm/InternalUnderlinedBadgeText-fac38590.js +4 -0
  371. package/dist/esm/InternalUnderlinedBadgeText-fac38590.js.map +1 -0
  372. package/dist/esm/Span-f77f1b95.js +4 -0
  373. package/dist/esm/Span-f77f1b95.js.map +1 -0
  374. package/dist/esm/{align-eeb4ecdd.js → align-61c6a220.js} +1 -1
  375. package/dist/esm/{align-eeb4ecdd.js.map → align-61c6a220.js.map} +1 -1
  376. package/dist/esm/{align-floating-elements-b0fea482.js → align-floating-elements-7cdb6dc6.js} +1 -1
  377. package/dist/esm/{align-floating-elements-b0fea482.js.map → align-floating-elements-7cdb6dc6.js.map} +1 -1
  378. package/dist/esm/{app-globals-e6d6c2ed.js → app-globals-b857d971.js} +1 -1
  379. package/dist/esm/{app-globals-e6d6c2ed.js.map → app-globals-b857d971.js.map} +1 -1
  380. package/dist/esm/{common-0f1f2276.js → common-54bf85ba.js} +1 -1
  381. package/dist/esm/{common-0f1f2276.js.map → common-54bf85ba.js.map} +1 -1
  382. package/dist/esm/component-names-60d77143.js +4 -0
  383. package/dist/esm/component-names-60d77143.js.map +1 -0
  384. package/dist/esm/{controller-823a2e8d.js → controller-3a7df735.js} +1 -1
  385. package/dist/esm/{controller-823a2e8d.js.map → controller-3a7df735.js.map} +1 -1
  386. package/dist/esm/controller-54809dfc.js +4 -0
  387. package/dist/esm/{controller-80316c73.js.map → controller-54809dfc.js.map} +1 -1
  388. package/dist/esm/{controller-30593aa8.js → controller-7e0cb1c3.js} +1 -1
  389. package/dist/esm/{controller-30593aa8.js.map → controller-7e0cb1c3.js.map} +1 -1
  390. package/dist/esm/{controller-63e3499d.js → controller-a31f303e.js} +1 -1
  391. package/dist/esm/{controller-63e3499d.js.map → controller-a31f303e.js.map} +1 -1
  392. package/dist/esm/controller-icon-0519e924.js +4 -0
  393. package/dist/esm/controller-icon-0519e924.js.map +1 -0
  394. package/dist/esm/{dev.utils-ad6f5327.js → dev.utils-dab0acde.js} +1 -1
  395. package/dist/esm/{dev.utils-ad6f5327.js.map → dev.utils-dab0acde.js.map} +1 -1
  396. package/dist/esm/{devtools-fbd1464c.js → devtools-cba63908.js} +1 -1
  397. package/dist/esm/{devtools-fbd1464c.js.map → devtools-cba63908.js.map} +1 -1
  398. package/dist/esm/events-5886c68b.js +4 -0
  399. package/dist/esm/events-5886c68b.js.map +1 -0
  400. package/dist/esm/getRenderStates-1ee287e9.js +4 -0
  401. package/dist/esm/getRenderStates-1ee287e9.js.map +1 -0
  402. package/dist/esm/i18n-45224cc3.js +4 -0
  403. package/dist/esm/i18n-45224cc3.js.map +1 -0
  404. package/dist/esm/{i18n-31adef87.js → i18n-efbafc80.js} +1 -1
  405. package/dist/esm/{i18n-31adef87.js.map → i18n-efbafc80.js.map} +1 -1
  406. package/dist/esm/{icons-b21fdac0.js → icons-d00eff5e.js} +1 -1
  407. package/dist/esm/icons-d00eff5e.js.map +1 -0
  408. package/dist/esm/index-25e8692e.js +4 -0
  409. package/dist/esm/index-25e8692e.js.map +1 -0
  410. package/dist/esm/index.js +1 -1
  411. package/dist/esm/index.js.map +1 -1
  412. package/dist/esm/isObject-ffcbbb76.js +4 -0
  413. package/dist/esm/isObject-ffcbbb76.js.map +1 -0
  414. package/dist/esm/kol-abbr.entry.js +1 -1
  415. package/dist/esm/kol-abbr.entry.js.map +1 -1
  416. package/dist/esm/kol-accordion.entry.js +1 -1
  417. package/dist/esm/kol-accordion.entry.js.map +1 -1
  418. package/dist/esm/kol-alert-wc.entry.js +1 -1
  419. package/dist/esm/kol-alert-wc.entry.js.map +1 -1
  420. package/dist/esm/kol-alert.entry.js +1 -1
  421. package/dist/esm/kol-alert.entry.js.map +1 -1
  422. package/dist/esm/kol-avatar-wc.entry.js +1 -1
  423. package/dist/esm/kol-avatar-wc.entry.js.map +1 -1
  424. package/dist/esm/kol-avatar.entry.js +1 -1
  425. package/dist/esm/kol-avatar.entry.js.map +1 -1
  426. package/dist/esm/kol-badge.entry.js +1 -1
  427. package/dist/esm/kol-badge.entry.js.map +1 -1
  428. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  429. package/dist/esm/kol-breadcrumb.entry.js.map +1 -1
  430. package/dist/esm/kol-button-link.entry.js +1 -1
  431. package/dist/esm/kol-button-link.entry.js.map +1 -1
  432. package/dist/esm/kol-button-wc.entry.js +1 -1
  433. package/dist/esm/kol-button-wc.entry.js.map +1 -1
  434. package/dist/esm/kol-button.entry.js +1 -1
  435. package/dist/esm/kol-button.entry.js.map +1 -1
  436. package/dist/esm/kol-card.entry.js +1 -1
  437. package/dist/esm/kol-card.entry.js.map +1 -1
  438. package/dist/esm/kol-combobox.entry.js +1 -1
  439. package/dist/esm/kol-combobox.entry.js.map +1 -1
  440. package/dist/esm/kol-details.entry.js +1 -1
  441. package/dist/esm/kol-details.entry.js.map +1 -1
  442. package/dist/esm/kol-drawer.entry.js +1 -1
  443. package/dist/esm/kol-drawer.entry.js.map +1 -1
  444. package/dist/esm/kol-form.entry.js +1 -1
  445. package/dist/esm/kol-form.entry.js.map +1 -1
  446. package/dist/esm/kol-heading.entry.js +1 -1
  447. package/dist/esm/kol-heading.entry.js.map +1 -1
  448. package/dist/esm/kol-icon.entry.js +1 -1
  449. package/dist/esm/kol-icon.entry.js.map +1 -1
  450. package/dist/esm/kol-image.entry.js +1 -1
  451. package/dist/esm/kol-image.entry.js.map +1 -1
  452. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  453. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  454. package/dist/esm/kol-input-color.entry.js +1 -1
  455. package/dist/esm/kol-input-color.entry.js.map +1 -1
  456. package/dist/esm/kol-input-date.entry.js +1 -1
  457. package/dist/esm/kol-input-date.entry.js.map +1 -1
  458. package/dist/esm/kol-input-email.entry.js +1 -1
  459. package/dist/esm/kol-input-email.entry.js.map +1 -1
  460. package/dist/esm/kol-input-file.entry.js +1 -1
  461. package/dist/esm/kol-input-file.entry.js.map +1 -1
  462. package/dist/esm/kol-input-number.entry.js +1 -1
  463. package/dist/esm/kol-input-number.entry.js.map +1 -1
  464. package/dist/esm/kol-input-password.entry.js +1 -1
  465. package/dist/esm/kol-input-password.entry.js.map +1 -1
  466. package/dist/esm/kol-input-radio.entry.js +1 -1
  467. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  468. package/dist/esm/kol-input-range.entry.js +1 -1
  469. package/dist/esm/kol-input-range.entry.js.map +1 -1
  470. package/dist/esm/kol-input-text.entry.js +1 -1
  471. package/dist/esm/kol-input-text.entry.js.map +1 -1
  472. package/dist/esm/kol-kolibri.entry.js +1 -1
  473. package/dist/esm/kol-kolibri.entry.js.map +1 -1
  474. package/dist/esm/kol-link-button.entry.js +1 -1
  475. package/dist/esm/kol-link-button.entry.js.map +1 -1
  476. package/dist/esm/kol-link-wc.entry.js +1 -1
  477. package/dist/esm/kol-link-wc.entry.js.map +1 -1
  478. package/dist/esm/kol-link.entry.js +1 -1
  479. package/dist/esm/kol-link.entry.js.map +1 -1
  480. package/dist/esm/kol-modal.entry.js +1 -1
  481. package/dist/esm/kol-modal.entry.js.map +1 -1
  482. package/dist/esm/kol-nav.entry.js +1 -1
  483. package/dist/esm/kol-nav.entry.js.map +1 -1
  484. package/dist/esm/kol-pagination.entry.js +1 -1
  485. package/dist/esm/kol-pagination.entry.js.map +1 -1
  486. package/dist/esm/kol-popover-button-wc.entry.js +4 -0
  487. package/dist/esm/kol-popover-button-wc.entry.js.map +1 -0
  488. package/dist/esm/kol-popover-button.entry.js +1 -1
  489. package/dist/esm/kol-popover-button.entry.js.map +1 -1
  490. package/dist/esm/kol-popover-wc.entry.js +1 -1
  491. package/dist/esm/kol-popover-wc.entry.js.map +1 -1
  492. package/dist/esm/kol-progress.entry.js +1 -1
  493. package/dist/esm/kol-progress.entry.js.map +1 -1
  494. package/dist/esm/kol-quote.entry.js +1 -1
  495. package/dist/esm/kol-quote.entry.js.map +1 -1
  496. package/dist/esm/kol-select.entry.js +1 -1
  497. package/dist/esm/kol-select.entry.js.map +1 -1
  498. package/dist/esm/kol-single-select.entry.js +1 -1
  499. package/dist/esm/kol-single-select.entry.js.map +1 -1
  500. package/dist/esm/kol-skip-nav.entry.js +1 -1
  501. package/dist/esm/kol-skip-nav.entry.js.map +1 -1
  502. package/dist/esm/kol-spin.entry.js +1 -1
  503. package/dist/esm/kol-spin.entry.js.map +1 -1
  504. package/dist/esm/kol-split-button.entry.js +1 -1
  505. package/dist/esm/kol-split-button.entry.js.map +1 -1
  506. package/dist/esm/kol-table-settings-wc.entry.js +4 -0
  507. package/dist/esm/kol-table-settings-wc.entry.js.map +1 -0
  508. package/dist/esm/kol-table-stateful.entry.js +1 -1
  509. package/dist/esm/kol-table-stateful.entry.js.map +1 -1
  510. package/dist/esm/kol-table-stateless-wc.entry.js +1 -1
  511. package/dist/esm/kol-table-stateless-wc.entry.js.map +1 -1
  512. package/dist/esm/kol-table-stateless.entry.js +1 -1
  513. package/dist/esm/kol-table-stateless.entry.js.map +1 -1
  514. package/dist/esm/kol-tabs.entry.js +1 -1
  515. package/dist/esm/kol-tabs.entry.js.map +1 -1
  516. package/dist/esm/kol-textarea.entry.js +1 -1
  517. package/dist/esm/kol-textarea.entry.js.map +1 -1
  518. package/dist/esm/kol-toast-container.entry.js +1 -1
  519. package/dist/esm/kol-toast-container.entry.js.map +1 -1
  520. package/dist/esm/kol-toolbar.entry.js +1 -1
  521. package/dist/esm/kol-toolbar.entry.js.map +1 -1
  522. package/dist/esm/kol-tooltip-wc.entry.js +1 -1
  523. package/dist/esm/kol-tooltip-wc.entry.js.map +1 -1
  524. package/dist/esm/kol-tree-item-wc.entry.js +1 -1
  525. package/dist/esm/kol-tree-item-wc.entry.js.map +1 -1
  526. package/dist/esm/kol-tree-item.entry.js +1 -1
  527. package/dist/esm/kol-tree-item.entry.js.map +1 -1
  528. package/dist/esm/kol-tree-wc.entry.js +1 -1
  529. package/dist/esm/kol-tree-wc.entry.js.map +1 -1
  530. package/dist/esm/kol-tree.entry.js +1 -1
  531. package/dist/esm/kol-tree.entry.js.map +1 -1
  532. package/dist/esm/kol-version.entry.js +1 -1
  533. package/dist/esm/kol-version.entry.js.map +1 -1
  534. package/dist/esm/kolibri.js +1 -1
  535. package/dist/esm/loader.js +1 -1
  536. package/dist/esm/reuse-f46e7e35.js +4 -0
  537. package/dist/esm/reuse-f46e7e35.js.map +1 -0
  538. package/dist/esm/table-settings-d708d477.js +4 -0
  539. package/dist/esm/table-settings-d708d477.js.map +1 -0
  540. package/dist/esm/test-component.entry.js +1 -1
  541. package/dist/esm/tooltip-align-7d5fdb9e.js +4 -0
  542. package/dist/esm/{tooltip-align-d8ac9d69.js.map → tooltip-align-7d5fdb9e.js.map} +1 -1
  543. package/dist/kolibri/Alert-6ca15282.js +4 -0
  544. package/dist/kolibri/Alert-6ca15282.js.map +1 -0
  545. package/dist/kolibri/Collapsible-7c76ecb2.js +4 -0
  546. package/dist/kolibri/Collapsible-7c76ecb2.js.map +1 -0
  547. package/dist/kolibri/CustomSuggestionsOptionsGroup-d02e8c5a.js +4 -0
  548. package/dist/kolibri/CustomSuggestionsOptionsGroup-d02e8c5a.js.map +1 -0
  549. package/dist/kolibri/FieldControlStateWrapper-5de501e1.js +4 -0
  550. package/dist/kolibri/FieldControlStateWrapper-5de501e1.js.map +1 -0
  551. package/dist/kolibri/Heading-b379a15f.js +4 -0
  552. package/dist/kolibri/Heading-b379a15f.js.map +1 -0
  553. package/dist/kolibri/Icon-20286c93.js +4 -0
  554. package/dist/kolibri/Icon-20286c93.js.map +1 -0
  555. package/dist/kolibri/Input-d67fc7c6.js +4 -0
  556. package/dist/kolibri/Input-d67fc7c6.js.map +1 -0
  557. package/dist/kolibri/InputStateWrapper-a5e74b31.js +4 -0
  558. package/dist/kolibri/InputStateWrapper-a5e74b31.js.map +1 -0
  559. package/dist/kolibri/InternalUnderlinedBadgeText-fac38590.js +4 -0
  560. package/dist/kolibri/InternalUnderlinedBadgeText-fac38590.js.map +1 -0
  561. package/dist/kolibri/Span-f77f1b95.js +4 -0
  562. package/dist/kolibri/Span-f77f1b95.js.map +1 -0
  563. package/dist/kolibri/{align-eeb4ecdd.js → align-61c6a220.js} +1 -1
  564. package/dist/kolibri/{align-floating-elements-b0fea482.js → align-floating-elements-7cdb6dc6.js} +1 -1
  565. package/dist/kolibri/{app-globals-e6d6c2ed.js → app-globals-b857d971.js} +1 -1
  566. package/dist/kolibri/{common-0f1f2276.js → common-54bf85ba.js} +1 -1
  567. package/dist/kolibri/component-names-60d77143.js +4 -0
  568. package/dist/kolibri/component-names-60d77143.js.map +1 -0
  569. package/dist/kolibri/{controller-823a2e8d.js → controller-3a7df735.js} +1 -1
  570. package/dist/kolibri/controller-54809dfc.js +4 -0
  571. package/dist/kolibri/{controller-80316c73.js.map → controller-54809dfc.js.map} +1 -1
  572. package/dist/kolibri/{controller-30593aa8.js → controller-7e0cb1c3.js} +1 -1
  573. package/dist/kolibri/{controller-63e3499d.js → controller-a31f303e.js} +1 -1
  574. package/dist/kolibri/controller-icon-0519e924.js +4 -0
  575. package/dist/kolibri/controller-icon-0519e924.js.map +1 -0
  576. package/dist/kolibri/{dev.utils-ad6f5327.js → dev.utils-dab0acde.js} +1 -1
  577. package/dist/kolibri/devtools-cba63908.js +4 -0
  578. package/dist/kolibri/{devtools-fbd1464c.js.map → devtools-cba63908.js.map} +1 -1
  579. package/dist/kolibri/events-5886c68b.js +4 -0
  580. package/dist/kolibri/events-5886c68b.js.map +1 -0
  581. package/dist/kolibri/getRenderStates-1ee287e9.js +4 -0
  582. package/dist/kolibri/getRenderStates-1ee287e9.js.map +1 -0
  583. package/dist/kolibri/i18n-45224cc3.js +4 -0
  584. package/dist/kolibri/i18n-45224cc3.js.map +1 -0
  585. package/dist/kolibri/i18n-efbafc80.js +4 -0
  586. package/dist/kolibri/icons-d00eff5e.js +4 -0
  587. package/dist/kolibri/icons-d00eff5e.js.map +1 -0
  588. package/dist/kolibri/{index-924e4118.js → index-25e8692e.js} +2 -2
  589. package/dist/kolibri/index-25e8692e.js.map +1 -0
  590. package/dist/kolibri/index.esm.js +1 -1
  591. package/dist/kolibri/index.esm.js.map +1 -1
  592. package/dist/kolibri/isObject-ffcbbb76.js +4 -0
  593. package/dist/kolibri/isObject-ffcbbb76.js.map +1 -0
  594. package/dist/kolibri/kol-abbr.entry.js +1 -1
  595. package/dist/kolibri/kol-abbr.entry.js.map +1 -1
  596. package/dist/kolibri/kol-accordion.entry.js +1 -1
  597. package/dist/kolibri/kol-accordion.entry.js.map +1 -1
  598. package/dist/kolibri/kol-alert-wc.entry.js +1 -1
  599. package/dist/kolibri/kol-alert-wc.entry.js.map +1 -1
  600. package/dist/kolibri/kol-alert.entry.js +1 -1
  601. package/dist/kolibri/kol-alert.entry.js.map +1 -1
  602. package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
  603. package/dist/kolibri/kol-avatar-wc.entry.js.map +1 -1
  604. package/dist/kolibri/kol-avatar.entry.js +1 -1
  605. package/dist/kolibri/kol-avatar.entry.js.map +1 -1
  606. package/dist/kolibri/kol-badge.entry.js +1 -1
  607. package/dist/kolibri/kol-badge.entry.js.map +1 -1
  608. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  609. package/dist/kolibri/kol-breadcrumb.entry.js.map +1 -1
  610. package/dist/kolibri/kol-button-link.entry.js +1 -1
  611. package/dist/kolibri/kol-button-link.entry.js.map +1 -1
  612. package/dist/kolibri/kol-button-wc.entry.js +1 -1
  613. package/dist/kolibri/kol-button-wc.entry.js.map +1 -1
  614. package/dist/kolibri/kol-button.entry.js +1 -1
  615. package/dist/kolibri/kol-button.entry.js.map +1 -1
  616. package/dist/kolibri/kol-card.entry.js +1 -1
  617. package/dist/kolibri/kol-card.entry.js.map +1 -1
  618. package/dist/kolibri/kol-combobox.entry.js +1 -1
  619. package/dist/kolibri/kol-combobox.entry.js.map +1 -1
  620. package/dist/kolibri/kol-details.entry.js +1 -1
  621. package/dist/kolibri/kol-details.entry.js.map +1 -1
  622. package/dist/kolibri/kol-drawer.entry.js +1 -1
  623. package/dist/kolibri/kol-drawer.entry.js.map +1 -1
  624. package/dist/kolibri/kol-form.entry.js +1 -1
  625. package/dist/kolibri/kol-form.entry.js.map +1 -1
  626. package/dist/kolibri/kol-heading.entry.js +1 -1
  627. package/dist/kolibri/kol-heading.entry.js.map +1 -1
  628. package/dist/kolibri/kol-icon.entry.js +1 -1
  629. package/dist/kolibri/kol-icon.entry.js.map +1 -1
  630. package/dist/kolibri/kol-image.entry.js +1 -1
  631. package/dist/kolibri/kol-image.entry.js.map +1 -1
  632. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  633. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  634. package/dist/kolibri/kol-input-color.entry.js +1 -1
  635. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  636. package/dist/kolibri/kol-input-date.entry.js +1 -1
  637. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  638. package/dist/kolibri/kol-input-email.entry.js +1 -1
  639. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  640. package/dist/kolibri/kol-input-file.entry.js +1 -1
  641. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  642. package/dist/kolibri/kol-input-number.entry.js +1 -1
  643. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  644. package/dist/kolibri/kol-input-password.entry.js +1 -1
  645. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  646. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  647. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  648. package/dist/kolibri/kol-input-range.entry.js +1 -1
  649. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  650. package/dist/kolibri/kol-input-text.entry.js +1 -1
  651. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  652. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  653. package/dist/kolibri/kol-kolibri.entry.js.map +1 -1
  654. package/dist/kolibri/kol-link-button.entry.js +1 -1
  655. package/dist/kolibri/kol-link-button.entry.js.map +1 -1
  656. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  657. package/dist/kolibri/kol-link-wc.entry.js.map +1 -1
  658. package/dist/kolibri/kol-link.entry.js +1 -1
  659. package/dist/kolibri/kol-link.entry.js.map +1 -1
  660. package/dist/kolibri/kol-modal.entry.js +1 -1
  661. package/dist/kolibri/kol-modal.entry.js.map +1 -1
  662. package/dist/kolibri/kol-nav.entry.js +1 -1
  663. package/dist/kolibri/kol-nav.entry.js.map +1 -1
  664. package/dist/kolibri/kol-pagination.entry.js +1 -1
  665. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  666. package/dist/kolibri/kol-popover-button-wc.entry.js +4 -0
  667. package/dist/kolibri/kol-popover-button-wc.entry.js.map +1 -0
  668. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  669. package/dist/kolibri/kol-popover-button.entry.js.map +1 -1
  670. package/dist/kolibri/kol-popover-wc.entry.js +1 -1
  671. package/dist/kolibri/kol-popover-wc.entry.js.map +1 -1
  672. package/dist/kolibri/kol-progress.entry.js +1 -1
  673. package/dist/kolibri/kol-progress.entry.js.map +1 -1
  674. package/dist/kolibri/kol-quote.entry.js +1 -1
  675. package/dist/kolibri/kol-quote.entry.js.map +1 -1
  676. package/dist/kolibri/kol-select.entry.js +1 -1
  677. package/dist/kolibri/kol-select.entry.js.map +1 -1
  678. package/dist/kolibri/kol-single-select.entry.js +1 -1
  679. package/dist/kolibri/kol-single-select.entry.js.map +1 -1
  680. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  681. package/dist/kolibri/kol-skip-nav.entry.js.map +1 -1
  682. package/dist/kolibri/kol-spin.entry.js +1 -1
  683. package/dist/kolibri/kol-spin.entry.js.map +1 -1
  684. package/dist/kolibri/kol-split-button.entry.js +1 -1
  685. package/dist/kolibri/kol-split-button.entry.js.map +1 -1
  686. package/dist/kolibri/kol-table-settings-wc.entry.js +4 -0
  687. package/dist/kolibri/kol-table-settings-wc.entry.js.map +1 -0
  688. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  689. package/dist/kolibri/kol-table-stateful.entry.js.map +1 -1
  690. package/dist/kolibri/kol-table-stateless-wc.entry.js +1 -1
  691. package/dist/kolibri/kol-table-stateless-wc.entry.js.map +1 -1
  692. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  693. package/dist/kolibri/kol-table-stateless.entry.js.map +1 -1
  694. package/dist/kolibri/kol-tabs.entry.js +1 -1
  695. package/dist/kolibri/kol-tabs.entry.js.map +1 -1
  696. package/dist/kolibri/kol-textarea.entry.js +1 -1
  697. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  698. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  699. package/dist/kolibri/kol-toast-container.entry.js.map +1 -1
  700. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  701. package/dist/kolibri/kol-toolbar.entry.js.map +1 -1
  702. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  703. package/dist/kolibri/kol-tooltip-wc.entry.js.map +1 -1
  704. package/dist/kolibri/kol-tree-item-wc.entry.js +1 -1
  705. package/dist/kolibri/kol-tree-item-wc.entry.js.map +1 -1
  706. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  707. package/dist/kolibri/kol-tree-item.entry.js.map +1 -1
  708. package/dist/kolibri/kol-tree-wc.entry.js +1 -1
  709. package/dist/kolibri/kol-tree-wc.entry.js.map +1 -1
  710. package/dist/kolibri/kol-tree.entry.js +1 -1
  711. package/dist/kolibri/kol-tree.entry.js.map +1 -1
  712. package/dist/kolibri/kol-version.entry.js +1 -1
  713. package/dist/kolibri/kol-version.entry.js.map +1 -1
  714. package/dist/kolibri/kolibri.esm.js +1 -1
  715. package/dist/kolibri/kolibri.esm.js.map +1 -1
  716. package/dist/kolibri/reuse-f46e7e35.js +4 -0
  717. package/dist/kolibri/reuse-f46e7e35.js.map +1 -0
  718. package/dist/kolibri/table-settings-d708d477.js +4 -0
  719. package/dist/kolibri/table-settings-d708d477.js.map +1 -0
  720. package/dist/kolibri/test-component.entry.js +1 -1
  721. package/dist/kolibri/tooltip-align-7d5fdb9e.js +4 -0
  722. package/dist/types/components/@deprecated/input/controller-icon.d.ts +2 -2
  723. package/dist/types/components/@deprecated/input/controller.d.ts +3 -3
  724. package/dist/types/components/@deprecated/input/types-icon.d.ts +4 -2
  725. package/dist/types/components/@deprecated/input/types.d.ts +1 -2
  726. package/dist/types/components/abbr/shadow.d.ts +2 -5
  727. package/dist/types/components/accordion/shadow.d.ts +1 -1
  728. package/dist/types/components/alert/component.d.ts +1 -0
  729. package/dist/types/components/badge/shadow.d.ts +1 -0
  730. package/dist/types/components/button/component.d.ts +1 -0
  731. package/dist/types/components/button/shadow.d.ts +0 -2
  732. package/dist/types/components/button-link/shadow.d.ts +0 -2
  733. package/dist/types/components/card/shadow.d.ts +2 -1
  734. package/dist/types/components/combobox/shadow.d.ts +8 -10
  735. package/dist/types/components/component-list.d.ts +16 -2
  736. package/dist/types/components/details/shadow.d.ts +1 -2
  737. package/dist/types/components/drawer/shadow.d.ts +5 -5
  738. package/dist/types/components/form/shadow.d.ts +1 -0
  739. package/dist/types/components/heading/shadow.d.ts +9 -3
  740. package/dist/types/components/input/controller.d.ts +1 -1
  741. package/dist/types/components/input/types.d.ts +3 -2
  742. package/dist/types/components/input-adapter-leanup/controller.d.ts +0 -1
  743. package/dist/types/components/input-adapter-leanup/types.d.ts +0 -1
  744. package/dist/types/components/input-checkbox/shadow.d.ts +7 -11
  745. package/dist/types/components/input-color/shadow.d.ts +18 -13
  746. package/dist/types/components/input-date/shadow.d.ts +9 -12
  747. package/dist/types/components/input-email/shadow.d.ts +7 -12
  748. package/dist/types/components/input-file/controller.d.ts +0 -1
  749. package/dist/types/components/input-file/shadow.d.ts +12 -14
  750. package/dist/types/components/input-number/shadow.d.ts +14 -18
  751. package/dist/types/components/input-password/shadow.d.ts +8 -12
  752. package/dist/types/components/input-radio/shadow.d.ts +7 -11
  753. package/dist/types/components/input-range/shadow.d.ts +10 -12
  754. package/dist/types/components/input-text/shadow.d.ts +9 -12
  755. package/dist/types/components/link/component.d.ts +4 -3
  756. package/dist/types/components/link/shadow.d.ts +0 -2
  757. package/dist/types/components/link-button/shadow.d.ts +0 -2
  758. package/dist/types/components/modal/shadow.d.ts +5 -3
  759. package/dist/types/components/pagination/shadow.d.ts +1 -0
  760. package/dist/types/components/popover-button/component.d.ts +40 -0
  761. package/dist/types/components/popover-button/shadow.d.ts +3 -12
  762. package/dist/types/components/select/shadow.d.ts +8 -12
  763. package/dist/types/components/single-select/shadow.d.ts +9 -10
  764. package/dist/types/components/split-button/shadow.d.ts +0 -1
  765. package/dist/types/components/table-stateful/shadow.d.ts +6 -6
  766. package/dist/types/components/table-stateless/component.d.ts +19 -3
  767. package/dist/types/components/table-stateless/shadow.d.ts +5 -2
  768. package/dist/types/components/table-stateless/table-settings.d.ts +18 -0
  769. package/dist/types/components/textarea/shadow.d.ts +7 -12
  770. package/dist/types/components.d.ts +433 -1297
  771. package/dist/types/core/component-names.d.ts +3 -11
  772. package/dist/types/functional-component-wrappers/CheckboxStateWrapper/CheckboxStateWrapper.d.ts +10 -0
  773. package/dist/types/functional-component-wrappers/CheckboxStateWrapper/index.d.ts +1 -0
  774. package/dist/types/functional-component-wrappers/FieldControlStateWrapper/FieldControlStateWrapper.d.ts +9 -0
  775. package/dist/types/functional-component-wrappers/FieldControlStateWrapper/index.d.ts +1 -0
  776. package/dist/types/functional-component-wrappers/FormFieldStateWrapper/FormFieldStateWrapper.d.ts +9 -0
  777. package/dist/types/functional-component-wrappers/FormFieldStateWrapper/index.d.ts +1 -0
  778. package/dist/types/functional-component-wrappers/InputContainerStateWrapper/InputContainerStateWrapper.d.ts +9 -0
  779. package/dist/types/functional-component-wrappers/InputContainerStateWrapper/index.d.ts +1 -0
  780. package/dist/types/functional-component-wrappers/InputStateWrapper/InputStateWrapper.d.ts +10 -0
  781. package/dist/types/functional-component-wrappers/InputStateWrapper/index.d.ts +1 -0
  782. package/dist/types/functional-component-wrappers/SelectStateWrapper/SelectStateWrapper.d.ts +8 -0
  783. package/dist/types/functional-component-wrappers/SelectStateWrapper/index.d.ts +1 -0
  784. package/dist/types/functional-component-wrappers/TextAreaStateWrapper/TextAreaStateWrapper.d.ts +8 -0
  785. package/dist/types/functional-component-wrappers/TextAreaStateWrapper/index.d.ts +1 -0
  786. package/dist/types/functional-component-wrappers/_helpers/getRenderStates.d.ts +11 -0
  787. package/dist/types/functional-components/Alert/Alert.d.ts +1 -1
  788. package/dist/types/functional-components/Button/Button.d.ts +9 -0
  789. package/dist/types/functional-components/Button/index.d.ts +1 -0
  790. package/dist/types/functional-components/Button/tests/snapshot.test.d.ts +1 -0
  791. package/dist/types/functional-components/Collapsible/Collapsible.d.ts +1 -1
  792. package/dist/types/functional-components/CustomSuggestionsOption/CustomSuggestionsOption.d.ts +11 -0
  793. package/dist/types/functional-components/CustomSuggestionsOption/index.d.ts +1 -0
  794. package/dist/types/functional-components/CustomSuggestionsOption/test/snapshot.test.d.ts +1 -0
  795. package/dist/types/functional-components/CustomSuggestionsOptionsGroup/CustomSuggestionsOptionsGroup.d.ts +7 -0
  796. package/dist/types/functional-components/CustomSuggestionsOptionsGroup/index.d.ts +1 -0
  797. package/dist/types/functional-components/CustomSuggestionsOptionsGroup/test/snapshot.test.d.ts +1 -0
  798. package/dist/types/functional-components/CustomSuggestionsToggle/CustomSuggestionsToggle.d.ts +7 -0
  799. package/dist/types/functional-components/CustomSuggestionsToggle/index.d.ts +1 -0
  800. package/dist/types/functional-components/CustomSuggestionsToggle/test/snapshot.test.d.ts +1 -0
  801. package/dist/types/functional-components/FieldControl/FieldControl.d.ts +31 -0
  802. package/dist/types/functional-components/FieldControl/index.d.ts +1 -0
  803. package/dist/types/functional-components/FormField/FormField.d.ts +41 -0
  804. package/dist/types/functional-components/FormField/index.d.ts +1 -0
  805. package/dist/types/functional-components/FormField/tests/snapshot.test.d.ts +1 -0
  806. package/dist/types/functional-components/FormFieldCounter/FormFieldCounter.d.ts +8 -0
  807. package/dist/types/functional-components/FormFieldCounter/index.d.ts +1 -0
  808. package/dist/types/functional-components/FormFieldCounter/tests/snapshot.test.d.ts +1 -0
  809. package/dist/types/functional-components/FormFieldHint/FormFieldHint.d.ts +8 -0
  810. package/dist/types/functional-components/FormFieldHint/index.d.ts +1 -0
  811. package/dist/types/functional-components/FormFieldHint/tests/snapshot.test.d.ts +1 -0
  812. package/dist/types/functional-components/FormFieldLabel/FormFieldLabel.d.ts +18 -0
  813. package/dist/types/functional-components/FormFieldLabel/index.d.ts +1 -0
  814. package/dist/types/functional-components/FormFieldLabel/tests/snapshot.test.d.ts +1 -0
  815. package/dist/types/functional-components/FormFieldMsg/FormFieldMsg.d.ts +7 -6
  816. package/dist/types/functional-components/FormFieldMsg/tests/snapshort.test.d.ts +1 -0
  817. package/dist/types/functional-components/FormFieldTooltip/FormFieldTooltip.d.ts +12 -0
  818. package/dist/types/functional-components/FormFieldTooltip/index.d.ts +1 -0
  819. package/dist/types/functional-components/FormFieldTooltip/tests/snapshort.test.d.ts +1 -0
  820. package/dist/types/functional-components/Heading/Heading.d.ts +21 -0
  821. package/dist/types/functional-components/Heading/index.d.ts +1 -0
  822. package/dist/types/functional-components/Heading/test/Heading.test.d.ts +1 -0
  823. package/dist/types/functional-components/Heading/test/snapshot.test.d.ts +1 -0
  824. package/dist/types/functional-components/Icon/Icon.d.ts +11 -0
  825. package/dist/types/functional-components/Icon/index.d.ts +1 -0
  826. package/dist/types/functional-components/Icon/tests/snapshot.test.d.ts +1 -0
  827. package/dist/types/functional-components/IconButton/IconButton.d.ts +19 -0
  828. package/dist/types/functional-components/IconButton/index.d.ts +1 -0
  829. package/dist/types/functional-components/IconButton/tests/snapshot.test.d.ts +1 -0
  830. package/dist/types/functional-components/InputAdornment/InputAdornment.d.ts +7 -0
  831. package/dist/types/functional-components/InputAdornment/index.d.ts +1 -0
  832. package/dist/types/functional-components/InputAdornment/tests/snapshot.test.d.ts +1 -0
  833. package/dist/types/functional-components/InputContainer/InputContainer.d.ts +16 -0
  834. package/dist/types/functional-components/InputContainer/index.d.ts +1 -0
  835. package/dist/types/functional-components/InputContainer/tests/snapshot.test.d.ts +1 -0
  836. package/dist/types/functional-components/InternalUnderlinedBadgeText/InternalUnderlinedBadgeText.d.ts +8 -0
  837. package/dist/types/functional-components/InternalUnderlinedBadgeText/index.d.ts +1 -0
  838. package/dist/types/functional-components/Span/IconHelper.d.ts +6 -0
  839. package/dist/types/functional-components/Span/LabelHelper.d.ts +9 -0
  840. package/dist/types/functional-components/Span/Span.d.ts +12 -0
  841. package/dist/types/functional-components/Span/SpanCoreHelper.d.ts +9 -0
  842. package/dist/types/functional-components/Span/index.d.ts +1 -0
  843. package/dist/types/functional-components/Span/test/snapshot.test.d.ts +1 -0
  844. package/dist/types/functional-components/Suggestions/Suggestions.d.ts +9 -0
  845. package/dist/types/functional-components/Suggestions/index.d.ts +1 -0
  846. package/dist/types/functional-components/Suggestions/tests/snapshot.test.d.ts +1 -0
  847. package/dist/types/functional-components/ToastItem/ToastItem.d.ts +10 -0
  848. package/dist/types/functional-components/ToastItem/index.d.ts +1 -0
  849. package/dist/types/functional-components/ToastItem/tests/snapshot.test.d.ts +1 -0
  850. package/dist/types/functional-components/index.d.ts +1 -1
  851. package/dist/types/functional-components/inputs/Checkbox/Checkbox.d.ts +10 -0
  852. package/dist/types/functional-components/inputs/Checkbox/index.d.ts +1 -0
  853. package/dist/types/functional-components/inputs/Combobox/Combobox.d.ts +10 -0
  854. package/dist/types/functional-components/inputs/Input/Input.d.ts +16 -0
  855. package/dist/types/functional-components/inputs/Input/index.d.ts +1 -0
  856. package/dist/types/functional-components/inputs/Input/tests/snapshot.test.d.ts +1 -0
  857. package/dist/types/functional-components/inputs/NativeOption/NativeOption.d.ts +12 -0
  858. package/dist/types/functional-components/inputs/NativeOption/index.d.ts +1 -0
  859. package/dist/types/functional-components/inputs/NativeOption/tests/snapshot.test.d.ts +1 -0
  860. package/dist/types/functional-components/inputs/NativeOptionList/NativeOptionList.d.ts +14 -0
  861. package/dist/types/functional-components/inputs/NativeOptionList/index.d.ts +1 -0
  862. package/dist/types/functional-components/inputs/NativeOptionList/tests/snapshot.test.d.ts +1 -0
  863. package/dist/types/functional-components/inputs/NativeSelect/NativeSelect.d.ts +12 -0
  864. package/dist/types/functional-components/inputs/NativeSelect/index.d.ts +1 -0
  865. package/dist/types/functional-components/inputs/NativeSelect/tests/snapshot.test.d.ts +1 -0
  866. package/dist/types/functional-components/inputs/TextArea/TextArea.d.ts +11 -0
  867. package/dist/types/functional-components/inputs/TextArea/index.d.ts +1 -0
  868. package/dist/types/functional-components/inputs/TextArea/tests/snapshot.test.d.ts +1 -0
  869. package/dist/types/functional-components/inputs/_helpers/getDefaultProps.d.ts +11 -0
  870. package/dist/types/functional-components/inputs/_helpers/getDefaultProps.test.d.ts +1 -0
  871. package/dist/types/functional-components/inputs/_types/index.d.ts +6 -0
  872. package/dist/types/index.d.ts +1 -0
  873. package/dist/types/locales/de.d.ts +10 -0
  874. package/dist/types/locales/en.d.ts +10 -0
  875. package/dist/types/schema/components/abbr.d.ts +3 -3
  876. package/dist/types/schema/components/badge.d.ts +5 -3
  877. package/dist/types/schema/components/button.d.ts +1 -0
  878. package/dist/types/schema/components/combobox.d.ts +7 -8
  879. package/dist/types/schema/components/form.d.ts +3 -3
  880. package/dist/types/schema/components/icon.d.ts +1 -0
  881. package/dist/types/schema/components/index.d.ts +1 -1
  882. package/dist/types/schema/components/input-checkbox.d.ts +3 -8
  883. package/dist/types/schema/components/input-color.d.ts +7 -10
  884. package/dist/types/schema/components/input-date.d.ts +6 -8
  885. package/dist/types/schema/components/input-email.d.ts +7 -10
  886. package/dist/types/schema/components/input-file.d.ts +7 -12
  887. package/dist/types/schema/components/input-number.d.ts +6 -8
  888. package/dist/types/schema/components/input-password.d.ts +8 -11
  889. package/dist/types/schema/components/input-radio.d.ts +3 -8
  890. package/dist/types/schema/components/input-range.d.ts +7 -10
  891. package/dist/types/schema/components/input-text.d.ts +7 -10
  892. package/dist/types/schema/components/input.d.ts +4 -4
  893. package/dist/types/schema/components/link-button.d.ts +2 -2
  894. package/dist/types/schema/components/link.d.ts +1 -6
  895. package/dist/types/schema/components/modal.d.ts +3 -4
  896. package/dist/types/schema/components/pagination.d.ts +2 -2
  897. package/dist/types/schema/components/select.d.ts +8 -10
  898. package/dist/types/schema/components/single-select.d.ts +7 -9
  899. package/dist/types/schema/components/table.d.ts +10 -18
  900. package/dist/types/schema/components/tableStateless.d.ts +7 -9
  901. package/dist/types/schema/components/tabs.d.ts +3 -3
  902. package/dist/types/schema/components/textarea.d.ts +8 -12
  903. package/dist/types/schema/components/toaster.d.ts +0 -2
  904. package/dist/types/schema/enums/index.d.ts +1 -1
  905. package/dist/types/schema/index.d.ts +1 -1
  906. package/dist/types/schema/interfaces/EventDetail.d.ts +4 -0
  907. package/dist/types/schema/props/accordion-callbacks.d.ts +2 -2
  908. package/dist/types/schema/props/alert.d.ts +0 -2
  909. package/dist/types/schema/props/button-callbacks.d.ts +3 -3
  910. package/dist/types/schema/props/details-callbacks.d.ts +2 -2
  911. package/dist/types/schema/props/hide-msg.d.ts +7 -0
  912. package/dist/types/schema/props/icons.d.ts +1 -5
  913. package/dist/types/schema/props/index.d.ts +1 -1
  914. package/dist/types/schema/props/link-on-callbacks.d.ts +2 -2
  915. package/dist/types/schema/props/min-width.d.ts +7 -0
  916. package/dist/types/schema/props/msg.d.ts +6 -1
  917. package/dist/types/schema/props/popover-callbacks.d.ts +2 -2
  918. package/dist/types/schema/props/table-callbacks.d.ts +4 -4
  919. package/dist/types/schema/props/table-settings.d.ts +7 -0
  920. package/dist/types/schema/props/variant/modal.d.ts +8 -0
  921. package/dist/types/schema/tag-names.d.ts +45 -48
  922. package/dist/types/schema/types/icons.d.ts +1 -5
  923. package/dist/types/schema/types/index.d.ts +1 -1
  924. package/dist/types/schema/types/input/control/number.d.ts +4 -6
  925. package/dist/types/schema/types/input/types.d.ts +6 -6
  926. package/dist/types/schema/types/table-settings.d.ts +10 -0
  927. package/dist/types/schema/types/table.d.ts +1 -1
  928. package/dist/types/utils/events.d.ts +20 -5
  929. package/doc/abbr.md +7 -48
  930. package/doc/accordion.md +1 -118
  931. package/doc/alert.md +2 -86
  932. package/doc/avatar.md +1 -45
  933. package/doc/badge.md +1 -96
  934. package/doc/breadcrumb.md +1 -84
  935. package/doc/button-link.md +1 -59
  936. package/doc/button.md +1 -128
  937. package/doc/card.md +2 -66
  938. package/doc/combobox.md +21 -72
  939. package/doc/components.md +1 -1
  940. package/doc/details.md +1 -99
  941. package/doc/drawer.md +1 -127
  942. package/doc/form.md +1 -21
  943. package/doc/heading.md +5 -38
  944. package/doc/icon.md +1 -43
  945. package/doc/image.md +1 -51
  946. package/doc/input-checkbox.md +26 -116
  947. package/doc/input-color.md +21 -77
  948. package/doc/input-date.md +27 -138
  949. package/doc/input-email.md +28 -105
  950. package/doc/input-file.md +21 -98
  951. package/doc/input-number.md +27 -95
  952. package/doc/input-password.md +27 -96
  953. package/doc/input-radio.md +20 -129
  954. package/doc/input-range.md +23 -110
  955. package/doc/input-text.md +29 -121
  956. package/doc/kolibri.md +1 -18
  957. package/doc/link-button.md +1 -37
  958. package/doc/link.md +1 -82
  959. package/doc/modal.md +7 -97
  960. package/doc/nav.md +1 -110
  961. package/doc/pagination.md +1 -42
  962. package/doc/popover-button.md +14 -1
  963. package/doc/progress.md +1 -41
  964. package/doc/quote.md +1 -63
  965. package/doc/select.md +23 -148
  966. package/doc/single-select.md +21 -51
  967. package/doc/skip-nav.md +1 -50
  968. package/doc/spin.md +1 -113
  969. package/doc/split-button.md +1 -25
  970. package/doc/table-stateful.md +14 -200
  971. package/doc/table-stateless.md +11 -81
  972. package/doc/tabs.md +1 -89
  973. package/doc/textarea.md +5 -90
  974. package/doc/toaster.md +4 -74
  975. package/doc/toolbar.md +1 -46
  976. package/doc/tree-item.md +1 -3
  977. package/doc/tree.md +1 -70
  978. package/doc/version.md +1 -23
  979. package/package.json +2 -1
  980. package/vscode-custom-data.json +311 -522
  981. package/dist/cjs/Alert-cc2ab10a.js +0 -4
  982. package/dist/cjs/Alert-cc2ab10a.js.map +0 -1
  983. package/dist/cjs/Collapsible-d3c49f77.js +0 -4
  984. package/dist/cjs/Collapsible-d3c49f77.js.map +0 -1
  985. package/dist/cjs/FormFieldMsg-fed323d7.js +0 -4
  986. package/dist/cjs/FormFieldMsg-fed323d7.js.map +0 -1
  987. package/dist/cjs/InternalUnderlinedBadgeText-333dc9ff.js +0 -4
  988. package/dist/cjs/InternalUnderlinedBadgeText-333dc9ff.js.map +0 -1
  989. package/dist/cjs/badge-text-9d12359c.js +0 -4
  990. package/dist/cjs/badge-text-9d12359c.js.map +0 -1
  991. package/dist/cjs/bund-4be96755.js +0 -4
  992. package/dist/cjs/bund-4be96755.js.map +0 -1
  993. package/dist/cjs/component-names-2c750b1b.js +0 -4
  994. package/dist/cjs/component-names-2c750b1b.js.map +0 -1
  995. package/dist/cjs/controller-3c347f5b.js +0 -4
  996. package/dist/cjs/controller-8d407dee.js +0 -4
  997. package/dist/cjs/controller-8d407dee.js.map +0 -1
  998. package/dist/cjs/controller-icon-a88486d3.js +0 -4
  999. package/dist/cjs/controller-icon-a88486d3.js.map +0 -1
  1000. package/dist/cjs/events-221fcb43.js +0 -4
  1001. package/dist/cjs/events-221fcb43.js.map +0 -1
  1002. package/dist/cjs/events-2a23336e.js +0 -4
  1003. package/dist/cjs/events-2a23336e.js.map +0 -1
  1004. package/dist/cjs/i18n-3219485c.js +0 -4
  1005. package/dist/cjs/i18n-3219485c.js.map +0 -1
  1006. package/dist/cjs/icons-cfdc392f.js.map +0 -1
  1007. package/dist/cjs/index-d16e8e8d.js +0 -4
  1008. package/dist/cjs/index-d16e8e8d.js.map +0 -1
  1009. package/dist/cjs/kol-button-group-wc.cjs.entry.js +0 -4
  1010. package/dist/cjs/kol-button-group-wc.cjs.entry.js.map +0 -1
  1011. package/dist/cjs/kol-button-group.cjs.entry.js +0 -4
  1012. package/dist/cjs/kol-button-group.cjs.entry.js.map +0 -1
  1013. package/dist/cjs/kol-heading-wc.cjs.entry.js +0 -4
  1014. package/dist/cjs/kol-heading-wc.cjs.entry.js.map +0 -1
  1015. package/dist/cjs/kol-indented-text-wc.cjs.entry.js +0 -4
  1016. package/dist/cjs/kol-indented-text-wc.cjs.entry.js.map +0 -1
  1017. package/dist/cjs/kol-indented-text.cjs.entry.js +0 -4
  1018. package/dist/cjs/kol-indented-text.cjs.entry.js.map +0 -1
  1019. package/dist/cjs/kol-input.cjs.entry.js +0 -4
  1020. package/dist/cjs/kol-input.cjs.entry.js.map +0 -1
  1021. package/dist/cjs/kol-link-group.cjs.entry.js +0 -4
  1022. package/dist/cjs/kol-link-group.cjs.entry.js.map +0 -1
  1023. package/dist/cjs/kol-logo.cjs.entry.js +0 -4
  1024. package/dist/cjs/kol-logo.cjs.entry.js.map +0 -1
  1025. package/dist/cjs/kol-span-wc.cjs.entry.js +0 -4
  1026. package/dist/cjs/kol-span-wc.cjs.entry.js.map +0 -1
  1027. package/dist/cjs/kol-symbol.cjs.entry.js +0 -4
  1028. package/dist/cjs/kol-symbol.cjs.entry.js.map +0 -1
  1029. package/dist/cjs/kol-table.cjs.entry.js +0 -4
  1030. package/dist/cjs/kol-table.cjs.entry.js.map +0 -1
  1031. package/dist/cjs/reuse-8cfefa9b.js +0 -4
  1032. package/dist/cjs/reuse-8cfefa9b.js.map +0 -1
  1033. package/dist/components/FormFieldMsg.js +0 -4
  1034. package/dist/components/FormFieldMsg.js.map +0 -1
  1035. package/dist/components/badge-text.js +0 -4
  1036. package/dist/components/badge-text.js.map +0 -1
  1037. package/dist/components/bund.js +0 -4
  1038. package/dist/components/bund.js.map +0 -1
  1039. package/dist/components/controller-icon.js +0 -4
  1040. package/dist/components/controller-icon.js.map +0 -1
  1041. package/dist/components/controller5.js +0 -4
  1042. package/dist/components/controller5.js.map +0 -1
  1043. package/dist/components/events2.js +0 -4
  1044. package/dist/components/events2.js.map +0 -1
  1045. package/dist/components/kol-button-group-wc.js +0 -4
  1046. package/dist/components/kol-button-group-wc.js.map +0 -1
  1047. package/dist/components/kol-button-group.js +0 -4
  1048. package/dist/components/kol-button-group.js.map +0 -1
  1049. package/dist/components/kol-heading-wc.d.ts +0 -11
  1050. package/dist/components/kol-heading-wc.js +0 -4
  1051. package/dist/components/kol-heading-wc.js.map +0 -1
  1052. package/dist/components/kol-indented-text-wc.d.ts +0 -11
  1053. package/dist/components/kol-indented-text-wc.js +0 -4
  1054. package/dist/components/kol-indented-text-wc.js.map +0 -1
  1055. package/dist/components/kol-indented-text.d.ts +0 -11
  1056. package/dist/components/kol-indented-text.js +0 -4
  1057. package/dist/components/kol-indented-text.js.map +0 -1
  1058. package/dist/components/kol-input.d.ts +0 -11
  1059. package/dist/components/kol-input.js +0 -4
  1060. package/dist/components/kol-input.js.map +0 -1
  1061. package/dist/components/kol-link-group.d.ts +0 -11
  1062. package/dist/components/kol-link-group.js +0 -4
  1063. package/dist/components/kol-link-group.js.map +0 -1
  1064. package/dist/components/kol-logo.d.ts +0 -11
  1065. package/dist/components/kol-logo.js +0 -4
  1066. package/dist/components/kol-logo.js.map +0 -1
  1067. package/dist/components/kol-span-wc.d.ts +0 -11
  1068. package/dist/components/kol-span-wc.js +0 -4
  1069. package/dist/components/kol-span-wc.js.map +0 -1
  1070. package/dist/components/kol-symbol.d.ts +0 -11
  1071. package/dist/components/kol-symbol.js +0 -4
  1072. package/dist/components/kol-symbol.js.map +0 -1
  1073. package/dist/components/kol-table.d.ts +0 -11
  1074. package/dist/components/kol-table.js +0 -4
  1075. package/dist/components/kol-table.js.map +0 -1
  1076. package/dist/esm/Alert-ef8f5df2.js +0 -4
  1077. package/dist/esm/Alert-ef8f5df2.js.map +0 -1
  1078. package/dist/esm/Collapsible-8702078e.js +0 -4
  1079. package/dist/esm/Collapsible-8702078e.js.map +0 -1
  1080. package/dist/esm/FormFieldMsg-927eb46b.js +0 -4
  1081. package/dist/esm/FormFieldMsg-927eb46b.js.map +0 -1
  1082. package/dist/esm/InternalUnderlinedBadgeText-dbe3120c.js +0 -4
  1083. package/dist/esm/InternalUnderlinedBadgeText-dbe3120c.js.map +0 -1
  1084. package/dist/esm/badge-text-91fe6f6c.js +0 -4
  1085. package/dist/esm/badge-text-91fe6f6c.js.map +0 -1
  1086. package/dist/esm/bund-ad41b762.js +0 -4
  1087. package/dist/esm/bund-ad41b762.js.map +0 -1
  1088. package/dist/esm/component-names-4cb1c62b.js +0 -4
  1089. package/dist/esm/component-names-4cb1c62b.js.map +0 -1
  1090. package/dist/esm/controller-80316c73.js +0 -4
  1091. package/dist/esm/controller-8ee06262.js +0 -4
  1092. package/dist/esm/controller-8ee06262.js.map +0 -1
  1093. package/dist/esm/controller-icon-0a8dd3ac.js +0 -4
  1094. package/dist/esm/controller-icon-0a8dd3ac.js.map +0 -1
  1095. package/dist/esm/events-29e84d75.js +0 -4
  1096. package/dist/esm/events-29e84d75.js.map +0 -1
  1097. package/dist/esm/events-3c3b4721.js +0 -4
  1098. package/dist/esm/events-3c3b4721.js.map +0 -1
  1099. package/dist/esm/i18n-eef4b287.js +0 -4
  1100. package/dist/esm/i18n-eef4b287.js.map +0 -1
  1101. package/dist/esm/icons-b21fdac0.js.map +0 -1
  1102. package/dist/esm/index-924e4118.js +0 -4
  1103. package/dist/esm/index-924e4118.js.map +0 -1
  1104. package/dist/esm/kol-button-group-wc.entry.js +0 -4
  1105. package/dist/esm/kol-button-group-wc.entry.js.map +0 -1
  1106. package/dist/esm/kol-button-group.entry.js +0 -4
  1107. package/dist/esm/kol-button-group.entry.js.map +0 -1
  1108. package/dist/esm/kol-heading-wc.entry.js +0 -4
  1109. package/dist/esm/kol-heading-wc.entry.js.map +0 -1
  1110. package/dist/esm/kol-indented-text-wc.entry.js +0 -4
  1111. package/dist/esm/kol-indented-text-wc.entry.js.map +0 -1
  1112. package/dist/esm/kol-indented-text.entry.js +0 -4
  1113. package/dist/esm/kol-indented-text.entry.js.map +0 -1
  1114. package/dist/esm/kol-input.entry.js +0 -4
  1115. package/dist/esm/kol-input.entry.js.map +0 -1
  1116. package/dist/esm/kol-link-group.entry.js +0 -4
  1117. package/dist/esm/kol-link-group.entry.js.map +0 -1
  1118. package/dist/esm/kol-logo.entry.js +0 -4
  1119. package/dist/esm/kol-logo.entry.js.map +0 -1
  1120. package/dist/esm/kol-span-wc.entry.js +0 -4
  1121. package/dist/esm/kol-span-wc.entry.js.map +0 -1
  1122. package/dist/esm/kol-symbol.entry.js +0 -4
  1123. package/dist/esm/kol-symbol.entry.js.map +0 -1
  1124. package/dist/esm/kol-table.entry.js +0 -4
  1125. package/dist/esm/kol-table.entry.js.map +0 -1
  1126. package/dist/esm/reuse-32931294.js +0 -4
  1127. package/dist/esm/reuse-32931294.js.map +0 -1
  1128. package/dist/esm/tooltip-align-d8ac9d69.js +0 -4
  1129. package/dist/kolibri/Alert-ef8f5df2.js +0 -4
  1130. package/dist/kolibri/Alert-ef8f5df2.js.map +0 -1
  1131. package/dist/kolibri/Collapsible-8702078e.js +0 -4
  1132. package/dist/kolibri/Collapsible-8702078e.js.map +0 -1
  1133. package/dist/kolibri/FormFieldMsg-927eb46b.js +0 -4
  1134. package/dist/kolibri/FormFieldMsg-927eb46b.js.map +0 -1
  1135. package/dist/kolibri/InternalUnderlinedBadgeText-dbe3120c.js +0 -4
  1136. package/dist/kolibri/InternalUnderlinedBadgeText-dbe3120c.js.map +0 -1
  1137. package/dist/kolibri/badge-text-91fe6f6c.js +0 -4
  1138. package/dist/kolibri/badge-text-91fe6f6c.js.map +0 -1
  1139. package/dist/kolibri/bund-ad41b762.js +0 -4
  1140. package/dist/kolibri/bund-ad41b762.js.map +0 -1
  1141. package/dist/kolibri/component-names-4cb1c62b.js +0 -4
  1142. package/dist/kolibri/component-names-4cb1c62b.js.map +0 -1
  1143. package/dist/kolibri/controller-80316c73.js +0 -4
  1144. package/dist/kolibri/controller-8ee06262.js +0 -4
  1145. package/dist/kolibri/controller-8ee06262.js.map +0 -1
  1146. package/dist/kolibri/controller-icon-0a8dd3ac.js +0 -4
  1147. package/dist/kolibri/controller-icon-0a8dd3ac.js.map +0 -1
  1148. package/dist/kolibri/devtools-fbd1464c.js +0 -4
  1149. package/dist/kolibri/events-29e84d75.js +0 -4
  1150. package/dist/kolibri/events-29e84d75.js.map +0 -1
  1151. package/dist/kolibri/events-3c3b4721.js +0 -4
  1152. package/dist/kolibri/events-3c3b4721.js.map +0 -1
  1153. package/dist/kolibri/i18n-31adef87.js +0 -4
  1154. package/dist/kolibri/i18n-eef4b287.js +0 -4
  1155. package/dist/kolibri/i18n-eef4b287.js.map +0 -1
  1156. package/dist/kolibri/icons-b21fdac0.js +0 -4
  1157. package/dist/kolibri/icons-b21fdac0.js.map +0 -1
  1158. package/dist/kolibri/index-924e4118.js.map +0 -1
  1159. package/dist/kolibri/kol-button-group-wc.entry.js +0 -4
  1160. package/dist/kolibri/kol-button-group-wc.entry.js.map +0 -1
  1161. package/dist/kolibri/kol-button-group.entry.js +0 -4
  1162. package/dist/kolibri/kol-button-group.entry.js.map +0 -1
  1163. package/dist/kolibri/kol-heading-wc.entry.js +0 -4
  1164. package/dist/kolibri/kol-heading-wc.entry.js.map +0 -1
  1165. package/dist/kolibri/kol-indented-text-wc.entry.js +0 -4
  1166. package/dist/kolibri/kol-indented-text-wc.entry.js.map +0 -1
  1167. package/dist/kolibri/kol-indented-text.entry.js +0 -4
  1168. package/dist/kolibri/kol-indented-text.entry.js.map +0 -1
  1169. package/dist/kolibri/kol-input.entry.js +0 -4
  1170. package/dist/kolibri/kol-input.entry.js.map +0 -1
  1171. package/dist/kolibri/kol-link-group.entry.js +0 -4
  1172. package/dist/kolibri/kol-link-group.entry.js.map +0 -1
  1173. package/dist/kolibri/kol-logo.entry.js +0 -4
  1174. package/dist/kolibri/kol-logo.entry.js.map +0 -1
  1175. package/dist/kolibri/kol-span-wc.entry.js +0 -4
  1176. package/dist/kolibri/kol-span-wc.entry.js.map +0 -1
  1177. package/dist/kolibri/kol-symbol.entry.js +0 -4
  1178. package/dist/kolibri/kol-symbol.entry.js.map +0 -1
  1179. package/dist/kolibri/kol-table.entry.js +0 -4
  1180. package/dist/kolibri/kol-table.entry.js.map +0 -1
  1181. package/dist/kolibri/reuse-32931294.js +0 -4
  1182. package/dist/kolibri/reuse-32931294.js.map +0 -1
  1183. package/dist/kolibri/tooltip-align-d8ac9d69.js +0 -4
  1184. package/dist/types/components/button-group/component.d.ts +0 -6
  1185. package/dist/types/components/button-group/shadow.d.ts +0 -5
  1186. package/dist/types/components/heading/component.d.ts +0 -17
  1187. package/dist/types/components/indented-text/component.d.ts +0 -6
  1188. package/dist/types/components/indented-text/shadow.d.ts +0 -5
  1189. package/dist/types/components/input/component.d.ts +0 -35
  1190. package/dist/types/components/link-group/shadow.d.ts +0 -17
  1191. package/dist/types/components/logo/shadow.d.ts +0 -10
  1192. package/dist/types/components/logo/types.d.ts +0 -11
  1193. package/dist/types/components/span/InternalUnderlinedBadgeText.d.ts +0 -7
  1194. package/dist/types/components/span/component.d.ts +0 -17
  1195. package/dist/types/components/symbol/component.d.ts +0 -11
  1196. package/dist/types/components/table/shadow.d.ts +0 -15
  1197. package/dist/types/components/toaster/InternalToast.d.ts +0 -9
  1198. package/dist/types/schema/components/button-group.d.ts +0 -9
  1199. package/dist/types/schema/components/indented-text.d.ts +0 -9
  1200. package/dist/types/schema/components/link-group.d.ts +0 -22
  1201. package/dist/types/schema/components/symbol.d.ts +0 -12
  1202. package/dist/types/schema/enums/events.d.ts +0 -23
  1203. package/dist/types/schema/props/hide-error.d.ts +0 -7
  1204. package/doc/button-group.md +0 -96
  1205. package/doc/indented-text.md +0 -52
  1206. package/doc/link-group.md +0 -98
  1207. package/doc/logo.md +0 -67
  1208. package/doc/popover.md +0 -26
  1209. package/doc/span.md +0 -32
  1210. package/doc/symbol.md +0 -44
  1211. package/doc/table.md +0 -201
  1212. package/doc/tooltip.md +0 -47
  1213. /package/dist/kolibri/{align-eeb4ecdd.js.map → align-61c6a220.js.map} +0 -0
  1214. /package/dist/kolibri/{align-floating-elements-b0fea482.js.map → align-floating-elements-7cdb6dc6.js.map} +0 -0
  1215. /package/dist/kolibri/{app-globals-e6d6c2ed.js.map → app-globals-b857d971.js.map} +0 -0
  1216. /package/dist/kolibri/{common-0f1f2276.js.map → common-54bf85ba.js.map} +0 -0
  1217. /package/dist/kolibri/{controller-823a2e8d.js.map → controller-3a7df735.js.map} +0 -0
  1218. /package/dist/kolibri/{controller-30593aa8.js.map → controller-7e0cb1c3.js.map} +0 -0
  1219. /package/dist/kolibri/{controller-63e3499d.js.map → controller-a31f303e.js.map} +0 -0
  1220. /package/dist/kolibri/{dev.utils-ad6f5327.js.map → dev.utils-dab0acde.js.map} +0 -0
  1221. /package/dist/kolibri/{i18n-31adef87.js.map → i18n-efbafc80.js.map} +0 -0
  1222. /package/dist/kolibri/{tooltip-align-d8ac9d69.js.map → tooltip-align-7d5fdb9e.js.map} +0 -0
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{proxyCustomElement,HTMLElement,h,Host}from"@stencil/core/internal/client";import{l as KolLinkWcTag,e as KolIconTag,w as KolTreeTag}from"./component-names.js";import{n as nonce}from"./dev.utils2.js";import{b as watchBoolean}from"./prop.validators.js";import{v as validateLabel}from"./label.js";import{v as validateOpen}from"./open.js";import{v as validateHref}from"./href.js";const validateActive=(e,t,a)=>{watchBoolean(e,"_active",t,a)},KolTreeItemWc$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.groupId=`tree-group-${nonce()}`,this.level=void 0,this.state={_active:!1,_hasChildren:!1,_href:"",_label:"",_open:!1},this._active=void 0,this._label=void 0,this._open=void 0,this._href=void 0}render(){const{_href:e,_active:t,_hasChildren:a,_open:i,_label:l}=this.state;return h(Host,{key:"ceb601f2530ae6d55fe0a136905b084acb3a58c4",onSlotchange:this.handleSlotchange.bind(this),class:"kol-tree-item-wc"},h("li",{key:"cf961136786ddbf84b69485240b2ad564fdd3344",class:"tree-item",style:{"--level":`${this.level}`}},h(KolLinkWcTag,{key:"6b2fef9321edbacad56337a59ff24e7f00faa02c",class:{"tree-link":!0,"first-level":0===this.level,active:Boolean(t)},_href:e,_label:"",_role:"treeitem",_tabIndex:t?0:-1,_ariaExpanded:a?i:void 0,_ariaOwns:a?this.groupId:void 0,ref:e=>this.linkElement=e},h("span",{key:"3d1e9682b93daf10ce9f39708af6ab3651e61fa5",class:"tree-link-inner",slot:"expert"},a?h("span",{class:"toggle-button",onClick:e=>i?void this.handleCollapseClick(e):void this.handleExpandClick(e)},h(KolIconTag,{class:"toggle-button-icon",_icons:"codicon codicon-"+(i?"chevron-down":"chevron-right"),_label:""})):h("span",{class:"toggle-button-placeholder"}),h("span",{key:"3372295b8f1da04ce7d985d1c9d40188450d808f",class:"text"},l))),h("ul",{key:"c1d6ff3d02c3414cb2d9500c83c17b9869f9d637",hidden:!a||!i,role:"group",id:this.groupId},h("slot",{key:"254166f7813cd1cb26c15e5334e6688e02b85b87"}))))}validateActive(e){validateActive(this,e||!1)}validateLabel(e){validateLabel(this,e)}validateOpen(e){validateOpen(this,e)}validateHref(e){validateHref(this,e)}componentWillLoad(){this.validateActive(this._active),this.validateLabel(this._label),this.validateOpen(this._open),this.validateHref(this._href),this.checkForChildren(),this.determineTreeItemDepth()}determineTreeItemDepth(){let e=0,t=this.host.parentNode.host.parentNode;for(;null!==t&&t.tagName.toLowerCase()!==KolTreeTag&&t!==document.body;)t=t.parentElement,e+=1;this.level=e}handleSlotchange(){this.checkForChildren()}checkForChildren(){var e,t;this.state=Object.assign(Object.assign({},this.state),{_hasChildren:Boolean(null===(t=null===(e=this.host.querySelector("slot"))||void 0===e?void 0:e.assignedElements)||void 0===t?void 0:t.call(e).length)})}async focusLink(){await this.linkElement.kolFocus()}async handleExpandClick(e){e.preventDefault(),await this.linkElement.kolFocus(),await this.expand()}async expand(){this.state._hasChildren&&(this.state=Object.assign(Object.assign({},this.state),{_open:!0}))}async handleCollapseClick(e){e.preventDefault(),this.linkElement.focus(),await this.collapse()}async collapse(){this.state._hasChildren&&(this.state=Object.assign(Object.assign({},this.state),{_open:!1}))}async isOpen(){var e;return null!==(e=this.state._open)&&void 0!==e&&e}get host(){return this}static get watchers(){return{_active:["validateActive"],_label:["validateLabel"],_open:["validateOpen"],_href:["validateHref"]}}},[4,"kol-tree-item-wc",{_active:[4],_label:[1],_open:[4],_href:[1],level:[32],state:[32],focusLink:[64],expand:[64],collapse:[64],isOpen:[64]},void 0,{_active:["validateActive"],_label:["validateLabel"],_open:["validateOpen"],_href:["validateHref"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-tree-item-wc"].forEach((e=>{if("kol-tree-item-wc"===e)customElements.get(e)||customElements.define(e,KolTreeItemWc$1)}))}const KolTreeItemWc=KolTreeItemWc$1,defineCustomElement=defineCustomElement$1;export{KolTreeItemWc,defineCustomElement};
4
+ import{proxyCustomElement,HTMLElement,h,Host}from"@stencil/core/internal/client";import{h as KolLinkWcTag,c as KolIconTag,v as KolTreeTag}from"./component-names.js";import{n as nonce}from"./dev.utils2.js";import{c as clsx}from"./clsx.js";import{b as watchBoolean}from"./prop.validators.js";import{v as validateLabel}from"./label.js";import{v as validateOpen}from"./open.js";import{v as validateHref}from"./href.js";const validateActive=(e,t,a)=>{watchBoolean(e,"_active",t,a)},KolTreeItemWc$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.groupId=`tree-group-${nonce()}`,this.level=void 0,this.state={_active:!1,_hasChildren:!1,_href:"",_label:"",_open:!1},this._active=void 0,this._label=void 0,this._open=void 0,this._href=void 0}render(){const{_href:e,_active:t,_hasChildren:a,_open:i,_label:l}=this.state;return h(Host,{key:"1358f3b8f8c7ae14535f30e3c2ff1ef8ab6904b1",onSlotchange:this.handleSlotchange.bind(this)},h("li",{key:"d6271238a133cac44eb78bf8ed0b94a951135432",class:"kol-tree-item",style:{"--level":`${this.level}`}},h(KolLinkWcTag,{key:"329b9adc28bacf6742544123bc02fe82f2ceb9b5",class:clsx("kol-tree-item__link",{"kol-tree-item__link--first-level":0===this.level,"kol-tree-item__link--active":t}),_href:e,_label:"",_role:"treeitem",_tabIndex:t?0:-1,_ariaExpanded:a?i:void 0,_ariaOwns:a?this.groupId:void 0,ref:e=>this.linkElement=e},h("span",{key:"0292f071a8abfe0f9332ef4a8561149d38f804e2",class:"kol-tree-item__link-inner",slot:"expert"},a?h("span",{class:"kol-tree-item__toggle-button",onClick:e=>i?void this.handleCollapseClick(e):void this.handleExpandClick(e)},h(KolIconTag,{class:"kol-tree-item__toggle-button-icon",_icons:"codicon codicon-"+(i?"chevron-down":"chevron-right"),_label:""})):h("span",{class:"kol-tree-item__toggle-button-placeholder"}),h("span",{key:"ed810a798a4e2ba38f848ce0c6fdfc3893c3c86d",class:"kol-tree-item__text"},l))),h("ul",{key:"0e8ea268f1c26f79e55d45bfeda91d230bc4789d",class:"kol-tree-item__children",hidden:!a||!i,role:"group",id:this.groupId},h("slot",{key:"a6509011c3fa851be4c6cace3aadf2b6d6bbfc7b"}))))}validateActive(e){validateActive(this,e||!1)}validateLabel(e){validateLabel(this,e)}validateOpen(e){validateOpen(this,e)}validateHref(e){validateHref(this,e)}componentWillLoad(){this.validateActive(this._active),this.validateLabel(this._label),this.validateOpen(this._open),this.validateHref(this._href),this.checkForChildren(),this.determineTreeItemDepth()}determineTreeItemDepth(){let e=0,t=this.host.parentNode.host.parentNode;for(;null!==t&&t.tagName.toLowerCase()!==KolTreeTag&&t!==document.body;)t=t.parentElement,e+=1;this.level=e}handleSlotchange(){this.checkForChildren()}checkForChildren(){var e,t;this.state=Object.assign(Object.assign({},this.state),{_hasChildren:Boolean(null===(t=null===(e=this.host.querySelector("slot"))||void 0===e?void 0:e.assignedElements)||void 0===t?void 0:t.call(e).length)})}async focusLink(){await this.linkElement.kolFocus()}async handleExpandClick(e){e.preventDefault(),await this.linkElement.kolFocus(),await this.expand()}async expand(){this.state._hasChildren&&(this.state=Object.assign(Object.assign({},this.state),{_open:!0}))}async handleCollapseClick(e){e.preventDefault(),this.linkElement.focus(),await this.collapse()}async collapse(){this.state._hasChildren&&(this.state=Object.assign(Object.assign({},this.state),{_open:!1}))}async isOpen(){var e;return null!==(e=this.state._open)&&void 0!==e&&e}get host(){return this}static get watchers(){return{_active:["validateActive"],_label:["validateLabel"],_open:["validateOpen"],_href:["validateHref"]}}},[4,"kol-tree-item-wc",{_active:[4],_label:[1],_open:[4],_href:[1],level:[32],state:[32],focusLink:[64],expand:[64],collapse:[64],isOpen:[64]},void 0,{_active:["validateActive"],_label:["validateLabel"],_open:["validateOpen"],_href:["validateHref"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-tree-item-wc"].forEach((e=>{if("kol-tree-item-wc"===e)customElements.get(e)||customElements.define(e,KolTreeItemWc$1)}))}const KolTreeItemWc=KolTreeItemWc$1,defineCustomElement=defineCustomElement$1;export{KolTreeItemWc,defineCustomElement};
@@ -1 +1 @@
1
- {"file":"kol-tree-item-wc.js","mappings":";;;;;;;;;;;AAgBO,MAAM,cAAc,GAAG,CAAC,SAAoC,EAAE,KAAqB,EAAE,OAA6B;IACxH,YAAY,CAAC,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;AACpD,CAAC;;MCPYA,eAAa;;;;QAEjB,YAAO,GAAG,cAAc,KAAK,EAAE,EAAE,CAAC;;qBAqDF;YACvC,OAAO,EAAE,KAAK;YACd,YAAY,EAAE,KAAK;YACnB,KAAK,EAAE,EAAE;YACT,MAAM,EAAE,EAAE;YACV,KAAK,EAAE,KAAK;SACZ;;;;;;IAtDM,MAAM;QACZ,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QACnE,QACC,EAAC,IAAI,qDAAC,YAAY,EAAE,IA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C,KAAK,mCACN,IAAI,CAAC,KAAK,KACb,YAAY,EAAE,OAAO,CAAC,MAAA,MAAA,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,0CAAE,gBAAgB,mDAAK,MAAM,CAAC,GACnF,CAAC;KACF;IAES,MAAM,SAAS;QACxB,MAAM,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC;KAClC;IAEO,MAAM,iBAAiB,CAAC,KAAiB;QAChD,KAAK,CAAC,cAAc,EAAE,CAAC;QACvB,MAAM,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC;QAClC,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC;KACpB;IAIM,MAAM,MAAM;QAClB,IAAI,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE;YAC5B,IAAI,CAAC,KAAK,mCACN,IAAI,CAAC,KAAK,KACb,KAAK,EAAE,IAAI,GACX,CAAC;SACF;KACD;IAEO,MAAM,mBAAmB,CAAC,KAAiB;QAClD,KAAK,CAAC,cAAc,EAAE,CAAC;QACvB,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC;QACzB,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC;KACtB;IAIM,MAAM,QAAQ;QACpB,IAAI,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE;YAC5B,IAAI,CAAC,KAAK,mCACN,IAAI,CAAC,KAAK,KACb,KAAK,EAAE,KAAK,GACZ,CAAC;SACF;KACD;IAIM,MAAM,MAAM;;QAClB,OAAO,MAAA,IAAI,CAAC,KAAK,CAAC,KAAK,mCAAI,KAAK,CAAC;KACjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["KolTreeItemWc"],"sources":["src/schema/props/active.ts","src/components/tree-item/component.tsx"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport type { WatchBooleanOptions } from '../utils';\nimport { watchBoolean } from '../utils';\n\n/* types */\nexport type ActivePropType = boolean;\n\n/**\n * Defines whether something is active.\n */\nexport type PropActive = {\n\tactive: ActivePropType;\n};\n\n/* validator */\nexport const validateActive = (component: Generic.Element.Component, value: ActivePropType, options?: WatchBooleanOptions): void => {\n\twatchBoolean(component, '_active', value, options);\n};\n","import { Component, Element, h, Host, type JSX, Method, Prop, State, Watch } from '@stencil/core';\n\nimport type { ActivePropType, HrefPropType, LabelPropType, OpenPropType, TreeItemAPI, TreeItemStates } from '../../schema';\nimport { validateActive, validateHref, validateLabel, validateOpen } from '../../schema';\nimport { KolLinkWcTag, KolIconTag, KolTreeTag } from '../../core/component-names';\nimport { nonce } from '../../utils/dev.utils';\n\n@Component({\n\ttag: `kol-tree-item-wc`,\n\tshadow: false,\n})\nexport class KolTreeItemWc implements TreeItemAPI {\n\tprivate linkElement!: HTMLKolLinkWcElement;\n\tprivate groupId = `tree-group-${nonce()}`;\n\n\t@State() private level?: number;\n\t@Element() host!: HTMLElement;\n\n\tpublic render(): JSX.Element {\n\t\tconst { _href, _active, _hasChildren, _open, _label } = this.state;\n\t\treturn (\n\t\t\t<Host onSlotchange={this.handleSlotchange.bind(this)} class=\"kol-tree-item-wc\">\n\t\t\t\t<li\n\t\t\t\t\tclass=\"tree-item\"\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\t'--level': `${this.level}`,\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<KolLinkWcTag\n\t\t\t\t\t\tclass={{\n\t\t\t\t\t\t\t'tree-link': true,\n\t\t\t\t\t\t\t'first-level': this.level === 0,\n\t\t\t\t\t\t\tactive: Boolean(_active),\n\t\t\t\t\t\t}}\n\t\t\t\t\t\t_href={_href}\n\t\t\t\t\t\t_label=\"\"\n\t\t\t\t\t\t_role=\"treeitem\"\n\t\t\t\t\t\t_tabIndex={_active ? 0 : -1}\n\t\t\t\t\t\t_ariaExpanded={_hasChildren ? _open : undefined}\n\t\t\t\t\t\t_ariaOwns={_hasChildren ? this.groupId : undefined}\n\t\t\t\t\t\tref={(element?: HTMLKolLinkWcElement) => (this.linkElement = element!)}\n\t\t\t\t\t>\n\t\t\t\t\t\t<span class=\"tree-link-inner\" slot=\"expert\">\n\t\t\t\t\t\t\t{_hasChildren ? (\n\t\t\t\t\t\t\t\t// eslint-disable-next-line jsx-a11y/no-static-element-interactions,jsx-a11y/click-events-have-key-events\n\t\t\t\t\t\t\t\t<span class=\"toggle-button\" onClick={(event) => (_open ? void this.handleCollapseClick(event) : void this.handleExpandClick(event))}>\n\t\t\t\t\t\t\t\t\t<KolIconTag\n\t\t\t\t\t\t\t\t\t\tclass=\"toggle-button-icon\"\n\t\t\t\t\t\t\t\t\t\t_icons={`codicon codicon-${_open ? 'chevron-down' : 'chevron-right'}`}\n\t\t\t\t\t\t\t\t\t\t_label={'' /* Label deliberately left empty */}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t<span class=\"toggle-button-placeholder\"></span>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t<span class=\"text\">{_label}</span>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</KolLinkWcTag>\n\t\t\t\t\t<ul hidden={!_hasChildren || !_open} role=\"group\" id={this.groupId}>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</ul>\n\t\t\t\t</li>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@State() public state: TreeItemStates = {\n\t\t_active: false,\n\t\t_hasChildren: false,\n\t\t_href: '',\n\t\t_label: '',\n\t\t_open: false,\n\t};\n\n\t/**\n\t * If set (to true) the tree item is the active one.\n\t */\n\t@Prop() _active?: OpenPropType;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() _label!: LabelPropType;\n\n\t/**\n\t * Opens/expands the element when truthy, closes/collapses when falsy.\n\t */\n\t@Prop() _open?: OpenPropType;\n\n\t/**\n\t * Defines the target URI of the link.\n\t */\n\t@Prop() _href!: HrefPropType;\n\n\t@Watch('_active') validateActive(value?: ActivePropType): void {\n\t\tvalidateActive(this, value || false);\n\t}\n\n\t@Watch('_label') validateLabel(value?: LabelPropType): void {\n\t\tvalidateLabel(this, value);\n\t}\n\n\t@Watch('_open') validateOpen(value?: OpenPropType): void {\n\t\tvalidateOpen(this, value);\n\t}\n\n\t@Watch('_href') validateHref(value?: HrefPropType): void {\n\t\tvalidateHref(this, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateActive(this._active);\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateOpen(this._open);\n\t\tthis.validateHref(this._href);\n\n\t\tthis.checkForChildren();\n\t\tthis.determineTreeItemDepth();\n\t}\n\n\tprivate determineTreeItemDepth() {\n\t\tlet level = 0;\n\t\tlet traverseItem: HTMLElement | null = (this.host.parentNode as unknown as ShadowRoot).host.parentNode as HTMLElement;\n\t\twhile (traverseItem !== null && traverseItem.tagName.toLowerCase() !== KolTreeTag && traverseItem !== document.body) {\n\t\t\ttraverseItem = traverseItem.parentElement;\n\t\t\tlevel += 1;\n\t\t}\n\t\tthis.level = level;\n\t}\n\n\tprivate handleSlotchange() {\n\t\tthis.checkForChildren();\n\t}\n\n\tprivate checkForChildren() {\n\t\tthis.state = {\n\t\t\t...this.state,\n\t\t\t_hasChildren: Boolean(this.host.querySelector('slot')?.assignedElements?.().length),\n\t\t};\n\t}\n\n\t@Method() async focusLink() {\n\t\tawait this.linkElement.kolFocus();\n\t}\n\n\tprivate async handleExpandClick(event: MouseEvent) {\n\t\tevent.preventDefault();\n\t\tawait this.linkElement.kolFocus();\n\t\tawait this.expand();\n\t}\n\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async expand() {\n\t\tif (this.state._hasChildren) {\n\t\t\tthis.state = {\n\t\t\t\t...this.state,\n\t\t\t\t_open: true,\n\t\t\t};\n\t\t}\n\t}\n\n\tprivate async handleCollapseClick(event: MouseEvent) {\n\t\tevent.preventDefault();\n\t\tthis.linkElement.focus();\n\t\tawait this.collapse();\n\t}\n\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async collapse() {\n\t\tif (this.state._hasChildren) {\n\t\t\tthis.state = {\n\t\t\t\t...this.state,\n\t\t\t\t_open: false,\n\t\t\t};\n\t\t}\n\t}\n\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async isOpen() {\n\t\treturn this.state._open ?? false;\n\t}\n}\n"],"version":3}
1
+ {"file":"kol-tree-item-wc.js","mappings":";;;;;;;;;;;;AAgBO,MAAM,cAAc,GAAG,CAAC,SAAoC,EAAE,KAAqB,EAAE,OAA6B;IACxH,YAAY,CAAC,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;AACpD,CAAC;;MCNYA,eAAa;;;;QAEjB,YAAO,GAAG,cAAc,KAAK,EAAE,EAAE,CAAC;;qBAuDF;YACvC,OAAO,EAAE,KAAK;YACd,YAAY,EAAE,KAAK;YACnB,KAAK,EAAE,EAAE;YACT,MAAM,EAAE,EAAE;YACV,KAAK,EAAE,KAAK;SACZ;;;;;;IAxDM,MAAM;QACZ,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QACnE,QACC,EAAC,IAAI,qDAAC,YAAY,EAAE,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,IACnD,2DACC,KAAK,EAAC,eAAe,EACrB,KAAK,EAAE;gBACN,SAAS,EAAE,GAAG,IAAI,CAAC,KAAK,EAAE;aAC1B,IAED,EAAC,YAAY,qDACZ,KAAK,EAAE,IAAI,CAAC,qBAAqB,EAAE;gBAClC,kCAAkC,EAAE,IAAI,CAAC,KAAK,KAAK,CAAC;gBACpD,6BAA6B,EAAE,OAAO;aACtC,CAAC,EACF,KAAK,EAAE,KAAK,EACZ,MAAM,EAAC,EAAE,E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QAAQ,EAAE,CAAC;QAClC,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC;KACpB;IAIM,MAAM,MAAM;QAClB,IAAI,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE;YAC5B,IAAI,CAAC,KAAK,mCACN,IAAI,CAAC,KAAK,KACb,KAAK,EAAE,IAAI,GACX,CAAC;SACF;KACD;IAEO,MAAM,mBAAmB,CAAC,KAAiB;QAClD,KAAK,CAAC,cAAc,EAAE,CAAC;QACvB,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC;QACzB,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC;KACtB;IAIM,MAAM,QAAQ;QACpB,IAAI,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE;YAC5B,IAAI,CAAC,KAAK,mCACN,IAAI,CAAC,KAAK,KACb,KAAK,EAAE,KAAK,GACZ,CAAC;SACF;KACD;IAIM,MAAM,MAAM;;QAClB,OAAO,MAAA,IAAI,CAAC,KAAK,CAAC,KAAK,mCAAI,KAAK,CAAC;KACjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["KolTreeItemWc"],"sources":["src/schema/props/active.ts","src/components/tree-item/component.tsx"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport type { WatchBooleanOptions } from '../utils';\nimport { watchBoolean } from '../utils';\n\n/* types */\nexport type ActivePropType = boolean;\n\n/**\n * Defines whether something is active.\n */\nexport type PropActive = {\n\tactive: ActivePropType;\n};\n\n/* validator */\nexport const validateActive = (component: Generic.Element.Component, value: ActivePropType, options?: WatchBooleanOptions): void => {\n\twatchBoolean(component, '_active', value, options);\n};\n","import { Component, Element, h, Host, type JSX, Method, Prop, State, Watch } from '@stencil/core';\n\nimport type { ActivePropType, HrefPropType, LabelPropType, OpenPropType, TreeItemAPI, TreeItemStates } from '../../schema';\nimport { validateActive, validateHref, validateLabel, validateOpen } from '../../schema';\nimport { KolLinkWcTag, KolIconTag, KolTreeTag } from '../../core/component-names';\nimport { nonce } from '../../utils/dev.utils';\nimport clsx from 'clsx';\n\n@Component({\n\ttag: `kol-tree-item-wc`,\n\tshadow: false,\n})\nexport class KolTreeItemWc implements TreeItemAPI {\n\tprivate linkElement!: HTMLKolLinkWcElement;\n\tprivate groupId = `tree-group-${nonce()}`;\n\n\t@State() private level?: number;\n\t@Element() host!: HTMLElement;\n\n\tpublic render(): JSX.Element {\n\t\tconst { _href, _active, _hasChildren, _open, _label } = this.state;\n\t\treturn (\n\t\t\t<Host onSlotchange={this.handleSlotchange.bind(this)}>\n\t\t\t\t<li\n\t\t\t\t\tclass=\"kol-tree-item\"\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\t'--level': `${this.level}`,\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<KolLinkWcTag\n\t\t\t\t\t\tclass={clsx('kol-tree-item__link', {\n\t\t\t\t\t\t\t'kol-tree-item__link--first-level': this.level === 0,\n\t\t\t\t\t\t\t'kol-tree-item__link--active': _active,\n\t\t\t\t\t\t})}\n\t\t\t\t\t\t_href={_href}\n\t\t\t\t\t\t_label=\"\"\n\t\t\t\t\t\t_role=\"treeitem\"\n\t\t\t\t\t\t_tabIndex={_active ? 0 : -1}\n\t\t\t\t\t\t_ariaExpanded={_hasChildren ? _open : undefined}\n\t\t\t\t\t\t_ariaOwns={_hasChildren ? this.groupId : undefined}\n\t\t\t\t\t\tref={(element?: HTMLKolLinkWcElement) => (this.linkElement = element!)}\n\t\t\t\t\t>\n\t\t\t\t\t\t<span class=\"kol-tree-item__link-inner\" slot=\"expert\">\n\t\t\t\t\t\t\t{_hasChildren ? (\n\t\t\t\t\t\t\t\t// eslint-disable-next-line jsx-a11y/no-static-element-interactions,jsx-a11y/click-events-have-key-events\n\t\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\t\tclass=\"kol-tree-item__toggle-button\"\n\t\t\t\t\t\t\t\t\tonClick={(event) => (_open ? void this.handleCollapseClick(event) : void this.handleExpandClick(event))}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<KolIconTag\n\t\t\t\t\t\t\t\t\t\tclass=\"kol-tree-item__toggle-button-icon\"\n\t\t\t\t\t\t\t\t\t\t_icons={`codicon codicon-${_open ? 'chevron-down' : 'chevron-right'}`}\n\t\t\t\t\t\t\t\t\t\t_label={'' /* Label deliberately left empty */}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t<span class=\"kol-tree-item__toggle-button-placeholder\"></span>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t<span class=\"kol-tree-item__text\">{_label}</span>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</KolLinkWcTag>\n\t\t\t\t\t<ul class=\"kol-tree-item__children\" hidden={!_hasChildren || !_open} role=\"group\" id={this.groupId}>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</ul>\n\t\t\t\t</li>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@State() public state: TreeItemStates = {\n\t\t_active: false,\n\t\t_hasChildren: false,\n\t\t_href: '',\n\t\t_label: '',\n\t\t_open: false,\n\t};\n\n\t/**\n\t * If set (to true) the tree item is the active one.\n\t */\n\t@Prop() _active?: OpenPropType;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() _label!: LabelPropType;\n\n\t/**\n\t * Opens/expands the element when truthy, closes/collapses when falsy.\n\t */\n\t@Prop() _open?: OpenPropType;\n\n\t/**\n\t * Defines the target URI of the link.\n\t */\n\t@Prop() _href!: HrefPropType;\n\n\t@Watch('_active') validateActive(value?: ActivePropType): void {\n\t\tvalidateActive(this, value || false);\n\t}\n\n\t@Watch('_label') validateLabel(value?: LabelPropType): void {\n\t\tvalidateLabel(this, value);\n\t}\n\n\t@Watch('_open') validateOpen(value?: OpenPropType): void {\n\t\tvalidateOpen(this, value);\n\t}\n\n\t@Watch('_href') validateHref(value?: HrefPropType): void {\n\t\tvalidateHref(this, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateActive(this._active);\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateOpen(this._open);\n\t\tthis.validateHref(this._href);\n\n\t\tthis.checkForChildren();\n\t\tthis.determineTreeItemDepth();\n\t}\n\n\tprivate determineTreeItemDepth() {\n\t\tlet level = 0;\n\t\tlet traverseItem: HTMLElement | null = (this.host.parentNode as unknown as ShadowRoot).host.parentNode as HTMLElement;\n\t\twhile (traverseItem !== null && traverseItem.tagName.toLowerCase() !== KolTreeTag && traverseItem !== document.body) {\n\t\t\ttraverseItem = traverseItem.parentElement;\n\t\t\tlevel += 1;\n\t\t}\n\t\tthis.level = level;\n\t}\n\n\tprivate handleSlotchange() {\n\t\tthis.checkForChildren();\n\t}\n\n\tprivate checkForChildren() {\n\t\tthis.state = {\n\t\t\t...this.state,\n\t\t\t_hasChildren: Boolean(this.host.querySelector('slot')?.assignedElements?.().length),\n\t\t};\n\t}\n\n\t@Method() async focusLink() {\n\t\tawait this.linkElement.kolFocus();\n\t}\n\n\tprivate async handleExpandClick(event: MouseEvent) {\n\t\tevent.preventDefault();\n\t\tawait this.linkElement.kolFocus();\n\t\tawait this.expand();\n\t}\n\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async expand() {\n\t\tif (this.state._hasChildren) {\n\t\t\tthis.state = {\n\t\t\t\t...this.state,\n\t\t\t\t_open: true,\n\t\t\t};\n\t\t}\n\t}\n\n\tprivate async handleCollapseClick(event: MouseEvent) {\n\t\tevent.preventDefault();\n\t\tthis.linkElement.focus();\n\t\tawait this.collapse();\n\t}\n\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async collapse() {\n\t\tif (this.state._hasChildren) {\n\t\t\tthis.state = {\n\t\t\t\t...this.state,\n\t\t\t\t_open: false,\n\t\t\t};\n\t\t}\n\t}\n\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async isOpen() {\n\t\treturn this.state._open ?? false;\n\t}\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{proxyCustomElement,HTMLElement,h}from"@stencil/core/internal/client";import{v as KolTreeItemWcTag}from"./component-names.js";const defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n }\n}\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n .badge-text-hint {\n background-color: lightgray;\n color: black;\n }\n}\n@layer kol-component {\n .tree-item {\n --indentation: var(--tree-item-indentation, calc(10rem / var(--kolibri-root-font-size, 16)));\n }\n ul {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n .tree-link.first-level > a {\n padding-left: calc(6rem / var(--kolibri-root-font-size, 16));\n }\n .tree-link > a {\n align-items: center;\n display: inline-flex;\n min-height: var(--a11y-min-size);\n padding-left: max(var(--indentation) * var(--level) + (8rem / var(--kolibri-root-font-size, 16)), 8rem / var(--kolibri-root-font-size, 16));\n padding-right: calc(6rem / var(--kolibri-root-font-size, 16));\n }\n .tree-link-inner {\n display: flex;\n align-items: center;\n }\n a {\n text-decoration: none;\n }\n a .kol-span-wc {\n place-items: unset;\n }\n .toggle-button,\n .toggle-button-placeholder {\n width: var(--a11y-min-size);\n height: var(--a11y-min-size);\n display: inline-flex;\n justify-content: center;\n align-items: center;\n }\n .text {\n text-decoration: underline;\n }\n}",KolTreeItemDefaultStyle0=defaultStyleCss,KolTreeItem$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this._active=void 0,this._label=void 0,this._open=void 0,this._href=void 0}async focusLink(){this.element&&await this.element.focusLink()}async expand(){this.element&&await this.element.expand()}async collapse(){this.element&&await this.element.collapse()}async isOpen(){var n,e;return null!==(e=await(null===(n=this.element)||void 0===n?void 0:n.isOpen()))&&void 0!==e&&e}render(){return h(KolTreeItemWcTag,{key:"6d8b7de1a3d8ecf617fb066631fd87c37c042a91",class:"kol-tree-item",_active:this._active,_label:this._label,_open:this._open,_href:this._href,ref:n=>this.element=n},h("slot",{key:"3bf19da6a7cd918c5159f7adb363d77237bb8bad"}))}static get style(){return{default:KolTreeItemDefaultStyle0}}},[33,"kol-tree-item",{_active:[4],_label:[1],_open:[4],_href:[1],focusLink:[64],expand:[64],collapse:[64],isOpen:[64]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-tree-item"].forEach((n=>{if("kol-tree-item"===n)customElements.get(n)||customElements.define(n,KolTreeItem$1)}))}const KolTreeItem=KolTreeItem$1,defineCustomElement=defineCustomElement$1;export{KolTreeItem,defineCustomElement};
4
+ import{proxyCustomElement,HTMLElement,h}from"@stencil/core/internal/client";import{u as KolTreeItemWcTag}from"./component-names.js";const defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]) {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n }\n}\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n background-color: lightgray;\n color: black;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: grid;\n place-items: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n .kol-tree-item {\n --indentation: var(--tree-item-indentation, calc(10rem / var(--kolibri-root-font-size, 16)));\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tree-item__link .kol-link {\n align-items: center;\n display: inline-flex;\n min-height: var(--a11y-min-size);\n padding-left: max(var(--indentation) * var(--level) + (8rem / var(--kolibri-root-font-size, 16)), 8rem / var(--kolibri-root-font-size, 16));\n padding-right: calc(6rem / var(--kolibri-root-font-size, 16));\n text-decoration: none;\n }\n .kol-tree-item__link--first-level .kol-link {\n padding-left: calc(6rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tree-item__link-inner {\n display: flex;\n align-items: center;\n }\n .kol-tree-item__children {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n .kol-tree-item .kol-span {\n place-items: unset;\n }\n .kol-tree-item__toggle-button, .kol-tree-item__toggle-button-placeholder {\n width: var(--a11y-min-size);\n height: var(--a11y-min-size);\n display: inline-flex;\n justify-content: center;\n align-items: center;\n }\n .kol-tree-item__text {\n text-decoration: underline;\n }\n}",KolTreeItemDefaultStyle0=defaultStyleCss,KolTreeItem$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this._active=void 0,this._label=void 0,this._open=void 0,this._href=void 0}async focusLink(){this.element&&await this.element.focusLink()}async expand(){this.element&&await this.element.expand()}async collapse(){this.element&&await this.element.collapse()}async isOpen(){var e,n;return null!==(n=await(null===(e=this.element)||void 0===e?void 0:e.isOpen()))&&void 0!==n&&n}render(){return h(KolTreeItemWcTag,{key:"058ffb876889218e812b8d16395cf3d4735e9786",_active:this._active,_label:this._label,_open:this._open,_href:this._href,ref:e=>this.element=e},h("slot",{key:"a084e5ba793a60fd5696756cd16d92e50f6c9c9f"}))}static get style(){return{default:KolTreeItemDefaultStyle0}}},[33,"kol-tree-item",{_active:[4],_label:[1],_open:[4],_href:[1],focusLink:[64],expand:[64],collapse:[64],isOpen:[64]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-tree-item"].forEach((e=>{if("kol-tree-item"===e)customElements.get(e)||customElements.define(e,KolTreeItem$1)}))}const KolTreeItem=KolTreeItem$1,defineCustomElement=defineCustomElement$1;export{KolTreeItem,defineCustomElement};
@@ -1 +1 @@
1
- {"file":"kol-tree-item.js","mappings":";;;;;;AAAA,MAAM,eAAe,GAAG,myKAAmyK,CAAC;AAC5zK,iCAAe,eAAe;;MCWjBA,aAAW;;;;;;;;;;IAuBb,MAAM,SAAS;QACxB,IAAI,IAAI,CAAC,OAAO,EAAE;YACjB,MAAM,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC;SAC/B;KACD;IAES,MAAM,MAAM;QACrB,IAAI,IAAI,CAAC,OAAO,EAAE;YACjB,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;SAC5B;KACD;IAES,MAAM,QAAQ;QACvB,IAAI,IAAI,CAAC,OAAO,EAAE;YACjB,MAAM,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;SAC9B;KACD;IAES,MAAM,MAAM;;QACrB,OAAO,OAAC,OAAM,MAAA,IAAI,CAAC,OAAO,0CAAE,MAAM,EAAE,CAAA,CAAC,mCAAI,KAAK,CAAC;KAC/C;IAEM,MAAM;QACZ,QACC,EAAC,gBAAgB,qDAChB,KAAK,EAAC,eAAe,EACrB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,GAAG,EAAE,CAAC,OAAkC,MAAM,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,IAErE,8DAAQ,CACU,EAClB;KACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["KolTreeItem"],"sources":["src/components/tree-item/style.scss?tag=kol-tree-item&mode=default&encapsulation=shadow","src/components/tree-item/shadow.tsx"],"sourcesContent":["@use '../@shared/mixins' as *;\n@use '../style' as *;\n\n@layer kol-component {\n\t$base-horizontal-padding: rem(8);\n\n\t.tree-item {\n\t\t--indentation: var(--tree-item-indentation, #{rem(10)}); // Set `--tree-item-indentation` in themes to control padding\n\t}\n\n\tul {\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\tlist-style: none;\n\t}\n\n\t.tree-link {\n\t\t&.first-level > a {\n\t\t\tpadding-left: rem(6);\n\t\t}\n\n\t\t& > a {\n\t\t\talign-items: center;\n\t\t\tdisplay: inline-flex;\n\t\t\tmin-height: var(--a11y-min-size);\n\t\t\tpadding-left: max(calc((var(--indentation) * var(--level)) + $base-horizontal-padding), $base-horizontal-padding);\n\t\t\tpadding-right: rem(6);\n\t\t}\n\t}\n\n\t.tree-link-inner {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t}\n\n\ta {\n\t\ttext-decoration: none;\n\t}\n\n\ta .kol-span-wc {\n\t\tplace-items: unset; // unset 'center' style from global layer\n\t}\n\n\t.toggle-button,\n\t.toggle-button-placeholder {\n\t\twidth: var(--a11y-min-size);\n\t\theight: var(--a11y-min-size);\n\t\tdisplay: inline-flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t}\n\n\t.text {\n\t\ttext-decoration: underline;\n\t}\n}\n","import { Component, h, type JSX, Method, Prop } from '@stencil/core';\n\nimport type { HrefPropType, LabelPropType, OpenPropType, TreeItemProps } from '../../schema';\nimport { KolTreeItemWcTag } from '../../core/component-names';\n\n@Component({\n\ttag: 'kol-tree-item', // keep in sync with `const TREE_ITEM_TAG_NAME`\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolTreeItem implements TreeItemProps {\n\tprivate element?: HTMLKolTreeItemWcElement;\n\n\t/**\n\t * If set (to true) the tree item is the active one.\n\t */\n\t@Prop() _active?: OpenPropType;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() _label!: LabelPropType;\n\n\t/**\n\t * Opens/expands the element when truthy, closes/collapses when falsy.\n\t */\n\t@Prop() _open?: OpenPropType;\n\n\t/**\n\t * Defines the target URI of the link.\n\t */\n\t@Prop() _href!: HrefPropType;\n\n\t@Method() async focusLink() {\n\t\tif (this.element) {\n\t\t\tawait this.element.focusLink();\n\t\t}\n\t}\n\n\t@Method() async expand() {\n\t\tif (this.element) {\n\t\t\tawait this.element.expand();\n\t\t}\n\t}\n\n\t@Method() async collapse() {\n\t\tif (this.element) {\n\t\t\tawait this.element.collapse();\n\t\t}\n\t}\n\n\t@Method() async isOpen() {\n\t\treturn (await this.element?.isOpen()) ?? false;\n\t}\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<KolTreeItemWcTag\n\t\t\t\tclass=\"kol-tree-item\"\n\t\t\t\t_active={this._active}\n\t\t\t\t_label={this._label}\n\t\t\t\t_open={this._open}\n\t\t\t\t_href={this._href}\n\t\t\t\tref={(element?: HTMLKolTreeItemWcElement) => (this.element = element)}\n\t\t\t>\n\t\t\t\t<slot />\n\t\t\t</KolTreeItemWcTag>\n\t\t);\n\t}\n}\n"],"version":3}
1
+ {"file":"kol-tree-item.js","mappings":";;;;;;AAAA,MAAM,eAAe,GAAG,y2KAAy2K,CAAC;AACl4K,iCAAe,eAAe;;MCWjBA,aAAW;;;;;;;;;;IAuBb,MAAM,SAAS;QACxB,IAAI,IAAI,CAAC,OAAO,EAAE;YACjB,MAAM,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC;SAC/B;KACD;IAES,MAAM,MAAM;QACrB,IAAI,IAAI,CAAC,OAAO,EAAE;YACjB,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;SAC5B;KACD;IAES,MAAM,QAAQ;QACvB,IAAI,IAAI,CAAC,OAAO,EAAE;YACjB,MAAM,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;SAC9B;KACD;IAES,MAAM,MAAM;;QACrB,OAAO,OAAC,OAAM,MAAA,IAAI,CAAC,OAAO,0CAAE,MAAM,EAAE,CAAA,CAAC,mCAAI,KAAK,CAAC;KAC/C;IAEM,MAAM;QACZ,QACC,EAAC,gBAAgB,qDAChB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,GAAG,EAAE,CAAC,OAAkC,MAAM,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,IAErE,8DAAQ,CACU,EAClB;KACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["KolTreeItem"],"sources":["src/components/tree-item/style.scss?tag=kol-tree-item&mode=default&encapsulation=shadow","src/components/tree-item/shadow.tsx"],"sourcesContent":["@use '../@shared/mixins' as *;\n@use '../../styles/global' as *;\n\n@layer kol-component {\n\t$base-horizontal-padding: rem(8);\n\n\t.kol-tree-item {\n\t\t$root: &;\n\t\t--indentation: var(--tree-item-indentation, #{rem(10)}); // Set `--tree-item-indentation` in themes to control padding\n\t\tfont-size: rem(16);\n\n\t\t&__link {\n\t\t\t.kol-link {\n\t\t\t\talign-items: center;\n\t\t\t\tdisplay: inline-flex;\n\t\t\t\tmin-height: var(--a11y-min-size);\n\t\t\t\tpadding-left: max(calc((var(--indentation) * var(--level)) + $base-horizontal-padding), $base-horizontal-padding);\n\t\t\t\tpadding-right: rem(6);\n\t\t\t\ttext-decoration: none;\n\t\t\t}\n\n\t\t\t&--first-level .kol-link {\n\t\t\t\tpadding-left: rem(6);\n\t\t\t}\n\t\t}\n\n\t\t&__link-inner {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t}\n\n\t\t&__children {\n\t\t\tmargin: 0;\n\t\t\tpadding: 0;\n\t\t\tlist-style: none;\n\t\t}\n\n\t\t.kol-span {\n\t\t\tplace-items: unset; // unset 'center' style from global layer\n\t\t}\n\n\t\t&__toggle-button,\n\t\t&__toggle-button-placeholder {\n\t\t\twidth: var(--a11y-min-size);\n\t\t\theight: var(--a11y-min-size);\n\t\t\tdisplay: inline-flex;\n\t\t\tjustify-content: center;\n\t\t\talign-items: center;\n\t\t}\n\n\t\t&__text {\n\t\t\ttext-decoration: underline;\n\t\t}\n\t}\n}\n","import { Component, h, type JSX, Method, Prop } from '@stencil/core';\n\nimport type { HrefPropType, LabelPropType, OpenPropType, TreeItemProps } from '../../schema';\nimport { KolTreeItemWcTag } from '../../core/component-names';\n\n@Component({\n\ttag: 'kol-tree-item', // keep in sync with `const TREE_ITEM_TAG_NAME`\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolTreeItem implements TreeItemProps {\n\tprivate element?: HTMLKolTreeItemWcElement;\n\n\t/**\n\t * If set (to true) the tree item is the active one.\n\t */\n\t@Prop() _active?: OpenPropType;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() _label!: LabelPropType;\n\n\t/**\n\t * Opens/expands the element when truthy, closes/collapses when falsy.\n\t */\n\t@Prop() _open?: OpenPropType;\n\n\t/**\n\t * Defines the target URI of the link.\n\t */\n\t@Prop() _href!: HrefPropType;\n\n\t@Method() async focusLink() {\n\t\tif (this.element) {\n\t\t\tawait this.element.focusLink();\n\t\t}\n\t}\n\n\t@Method() async expand() {\n\t\tif (this.element) {\n\t\t\tawait this.element.expand();\n\t\t}\n\t}\n\n\t@Method() async collapse() {\n\t\tif (this.element) {\n\t\t\tawait this.element.collapse();\n\t\t}\n\t}\n\n\t@Method() async isOpen() {\n\t\treturn (await this.element?.isOpen()) ?? false;\n\t}\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<KolTreeItemWcTag\n\t\t\t\t_active={this._active}\n\t\t\t\t_label={this._label}\n\t\t\t\t_open={this._open}\n\t\t\t\t_href={this._href}\n\t\t\t\tref={(element?: HTMLKolTreeItemWcElement) => (this.element = element)}\n\t\t\t>\n\t\t\t\t<slot />\n\t\t\t</KolTreeItemWcTag>\n\t\t);\n\t}\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{proxyCustomElement,HTMLElement,h,Host}from"@stencil/core/internal/client";import{x as KolTreeItemTag,w as KolTreeTag}from"./component-names.js";import{v as validateLabel}from"./label.js";const KolTreeWc$1=proxyCustomElement(class e extends HTMLElement{constructor(){super(),this.__registerHost(),this.state={_label:""},this._label=void 0}validateLabel(e){validateLabel(this,e)}render(){return h(Host,{key:"87bb07435a32099310d375c4b31e2ad6a18b14d7",onSlotchange:this.handleSlotchange.bind(this),class:"kol-tree-wc"},h("nav",{key:"67bdfb5d267557d9755747638d2a975d113123fc",class:"tree","aria-label":this.state._label},h("ul",{key:"0ea5d150fc9dc6a81518b89735bd617d20f5f930",class:"treeview-navigation",role:"tree","aria-label":this.state._label},h("slot",{key:"2540559f4e0afafb361e7e643f4b0b43721ebbb7"}))))}static isTreeItem(e){return(null==e?void 0:e.tagName)===KolTreeItemTag.toUpperCase()}componentWillLoad(){this.validateLabel(this._label),this.handleTreeChange(),this.observeChildListMutations()}disconnectedCallback(){var e;null===(e=this.observer)||void 0===e||e.disconnect()}observeChildListMutations(){this.observer=new MutationObserver(this.handleTreeChange.bind(this)),this.observeTopLevelItems()}handleSlotchange(){this.observeTopLevelItems(),this.handleTreeChange()}observeTopLevelItems(){var e;null===(e=this.getTopLevelTreeItems())||void 0===e||e.forEach((e=>{var t;null===(t=this.observer)||void 0===t||t.observe(e,{childList:!0,subtree:!0})}))}getTopLevelTreeItems(){var t,l,a;return null===(a=null===(l=null===(t=this.host.querySelector("slot"))||void 0===t?void 0:t.assignedNodes)||void 0===l?void 0:l.call(t))||void 0===a?void 0:a.filter(e.isTreeItem)}handleTreeChange(){this.treeItemElements=this.getTreeItemElements(),this.ensureActiveItemVisibility()}getTreeItemElements(){var e;return null===(e=this.getTopLevelTreeItems())||void 0===e?void 0:e.reduce(((e,t)=>{const l=t.querySelectorAll(KolTreeItemTag);return[...e,t,...l]}),[])}async getOpenTreeItemElements(){if(!this.treeItemElements)return;const t=async l=>!e.isTreeItem(l.parentElement)||await l.parentElement.isOpen()&&await t(l.parentElement);return(await Promise.all(this.treeItemElements.map((async e=>({value:e,include:await t(e)}))))).filter((e=>e.include)).map((e=>e.value))}async handleKeyDown(e){var t,l,a,i,n,s,o,r,c;const d=await this.getOpenTreeItemElements(),u=null===(t=document.activeElement)||void 0===t?void 0:t.closest(KolTreeItemTag),v=e.metaKey||e.altKey||e.ctrlKey||e.shiftKey;if(!d||!u)return;const m=null==d?void 0:d.findIndex((e=>e===u));switch(e.key){case"ArrowDown":await(null===(l=d[m+1])||void 0===l?void 0:l.focusLink()),e.preventDefault();break;case"ArrowUp":await(null===(a=d[m-1])||void 0===a?void 0:a.focusLink()),e.preventDefault();break;case"Right":case"ArrowRight":e.preventDefault(),await u.isOpen()?await(null===(i=d[m+1])||void 0===i?void 0:i.focusLink()):await u.expand();break;case"Left":case"ArrowLeft":if(e.preventDefault(),await u.isOpen())await u.collapse();else{const e=d.findIndex((e=>e===u.parentElement));-1!==e&&await(null===(n=d[e])||void 0===n?void 0:n.focusLink())}break;case"Home":await(null===(s=d[0])||void 0===s?void 0:s.focusLink()),e.preventDefault();break;case"End":await(null===(o=d[d.length-1])||void 0===o?void 0:o.focusLink()),e.preventDefault();break;case null===(r=e.key.match(/^[a-zA-Z0-9]$/))||void 0===r?void 0:r.input:if(!v){const t=e.key.toLowerCase(),l=d.indexOf(u)+1,a=d.concat(d),i=a.slice(l,l+d.length).findIndex((e=>{var l;return null===(l=e.getAttribute("_label"))||void 0===l?void 0:l.trim().toLowerCase().startsWith(t)}));-1!==i&&(await a[l+i].focusLink(),e.preventDefault())}break;case"*":{const e=null===(c=u.parentElement)||void 0===c?void 0:c.querySelectorAll(KolTreeItemTag);null==e||e.forEach((e=>{e.expand()}));break}}}async handleFocusOut(e){e.relatedTarget&&!e.relatedTarget.closest(KolTreeTag)&&await this.ensureActiveItemVisibility()}async ensureActiveItemVisibility(){const t=l=>{e.isTreeItem(l.parentElement)&&(l.parentElement.expand(),t(l.parentElement))},l=(()=>{var t,l,a,i;const n=null!==(i=null===(a=null===(l=null===(t=this.host.querySelector("slot"))||void 0===t?void 0:t.assignedNodes)||void 0===l?void 0:l.call(t))||void 0===a?void 0:a.filter(e.isTreeItem))&&void 0!==i?i:[];for(const e of n){if(e._active)return e;const t=e.querySelector(`${KolTreeItemTag}[_active="true"]`);if(t&&t._active)return t}})();l&&t(l)}get host(){return this}static get watchers(){return{_label:["validateLabel"]}}},[4,"kol-tree-wc",{_label:[1],state:[32]},[[0,"keydown","handleKeyDown"],[0,"focusout","handleFocusOut"]],{_label:["validateLabel"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-tree-wc"].forEach((e=>{if("kol-tree-wc"===e)customElements.get(e)||customElements.define(e,KolTreeWc$1)}))}const KolTreeWc=KolTreeWc$1,defineCustomElement=defineCustomElement$1;export{KolTreeWc,defineCustomElement};
4
+ import{proxyCustomElement,HTMLElement,h,Host}from"@stencil/core/internal/client";import{w as KolTreeItemTag,v as KolTreeTag}from"./component-names.js";import{v as validateLabel}from"./label.js";const KolTreeWc$1=proxyCustomElement(class e extends HTMLElement{constructor(){super(),this.__registerHost(),this.state={_label:""},this._label=void 0}validateLabel(e){validateLabel(this,e)}render(){return h(Host,{key:"05d1fdf7fc5589847e2fdce7b3d307860721ccd2",onSlotchange:this.handleSlotchange.bind(this)},h("nav",{key:"b03ad56f3ce550d09d22efa04e23273588093034",class:"kol-tree","aria-label":this.state._label},h("ul",{key:"7b7e4fc2e98037621beb67e6dcdd00f7072d3878",class:"kol-tree__treeview-navigation",role:"tree","aria-label":this.state._label},h("slot",{key:"c6bd99309dd93b1eb88031533f17f25c0e9952c7"}))))}static isTreeItem(e){return(null==e?void 0:e.tagName)===KolTreeItemTag.toUpperCase()}componentWillLoad(){this.validateLabel(this._label),this.handleTreeChange(),this.observeChildListMutations()}disconnectedCallback(){var e;null===(e=this.observer)||void 0===e||e.disconnect()}observeChildListMutations(){this.observer=new MutationObserver(this.handleTreeChange.bind(this)),this.observeTopLevelItems()}handleSlotchange(){this.observeTopLevelItems(),this.handleTreeChange()}observeTopLevelItems(){var e;null===(e=this.getTopLevelTreeItems())||void 0===e||e.forEach((e=>{var t;null===(t=this.observer)||void 0===t||t.observe(e,{childList:!0,subtree:!0})}))}getTopLevelTreeItems(){var t,l,a;return null===(a=null===(l=null===(t=this.host.querySelector("slot"))||void 0===t?void 0:t.assignedNodes)||void 0===l?void 0:l.call(t))||void 0===a?void 0:a.filter(e.isTreeItem)}handleTreeChange(){this.treeItemElements=this.getTreeItemElements(),this.ensureActiveItemVisibility()}getTreeItemElements(){var e;return null===(e=this.getTopLevelTreeItems())||void 0===e?void 0:e.reduce(((e,t)=>{const l=t.querySelectorAll(KolTreeItemTag);return[...e,t,...l]}),[])}async getOpenTreeItemElements(){if(!this.treeItemElements)return;const t=async l=>!e.isTreeItem(l.parentElement)||await l.parentElement.isOpen()&&await t(l.parentElement);return(await Promise.all(this.treeItemElements.map((async e=>({value:e,include:await t(e)}))))).filter((e=>e.include)).map((e=>e.value))}async handleKeyDown(e){var t,l,a,i,n,s,o,r,c;const d=await this.getOpenTreeItemElements(),u=null===(t=document.activeElement)||void 0===t?void 0:t.closest(KolTreeItemTag),v=e.metaKey||e.altKey||e.ctrlKey||e.shiftKey;if(!d||!u)return;const m=null==d?void 0:d.findIndex((e=>e===u));switch(e.key){case"ArrowDown":await(null===(l=d[m+1])||void 0===l?void 0:l.focusLink()),e.preventDefault();break;case"ArrowUp":await(null===(a=d[m-1])||void 0===a?void 0:a.focusLink()),e.preventDefault();break;case"Right":case"ArrowRight":e.preventDefault(),await u.isOpen()?await(null===(i=d[m+1])||void 0===i?void 0:i.focusLink()):await u.expand();break;case"Left":case"ArrowLeft":if(e.preventDefault(),await u.isOpen())await u.collapse();else{const e=d.findIndex((e=>e===u.parentElement));-1!==e&&await(null===(n=d[e])||void 0===n?void 0:n.focusLink())}break;case"Home":await(null===(s=d[0])||void 0===s?void 0:s.focusLink()),e.preventDefault();break;case"End":await(null===(o=d[d.length-1])||void 0===o?void 0:o.focusLink()),e.preventDefault();break;case null===(r=e.key.match(/^[a-zA-Z0-9]$/))||void 0===r?void 0:r.input:if(!v){const t=e.key.toLowerCase(),l=d.indexOf(u)+1,a=d.concat(d),i=a.slice(l,l+d.length).findIndex((e=>{var l;return null===(l=e.getAttribute("_label"))||void 0===l?void 0:l.trim().toLowerCase().startsWith(t)}));-1!==i&&(await a[l+i].focusLink(),e.preventDefault())}break;case"*":{const e=null===(c=u.parentElement)||void 0===c?void 0:c.querySelectorAll(KolTreeItemTag);null==e||e.forEach((e=>{e.expand()}));break}}}async handleFocusOut(e){e.relatedTarget&&!e.relatedTarget.closest(KolTreeTag)&&await this.ensureActiveItemVisibility()}async ensureActiveItemVisibility(){const t=l=>{e.isTreeItem(l.parentElement)&&(l.parentElement.expand(),t(l.parentElement))},l=(()=>{var t,l,a,i;const n=null!==(i=null===(a=null===(l=null===(t=this.host.querySelector("slot"))||void 0===t?void 0:t.assignedNodes)||void 0===l?void 0:l.call(t))||void 0===a?void 0:a.filter(e.isTreeItem))&&void 0!==i?i:[];for(const e of n){if(e._active)return e;const t=e.querySelector(`${KolTreeItemTag}[_active="true"]`);if(t&&t._active)return t}})();l&&t(l)}get host(){return this}static get watchers(){return{_label:["validateLabel"]}}},[4,"kol-tree-wc",{_label:[1],state:[32]},[[0,"keydown","handleKeyDown"],[0,"focusout","handleFocusOut"]],{_label:["validateLabel"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-tree-wc"].forEach((e=>{if("kol-tree-wc"===e)customElements.get(e)||customElements.define(e,KolTreeWc$1)}))}const KolTreeWc=KolTreeWc$1,defineCustomElement=defineCustomElement$1;export{KolTreeWc,defineCustomElement};
@@ -1 +1 @@
1
- {"file":"kol-tree-wc.js","mappings":";;;;;;;MAcaA,WAAS;;;;qBAGe;YACnC,MAAM,EAAE,EAAE;SACV;;;IASgB,aAAa,CAAC,KAAqB;QACnD,aAAa,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;KAC3B;IAEM,MAAM;QACZ,QACC,EAAC,IAAI,qDAAC,YAAY,EAAE,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,KAAK,EAAC,aAAa,IACxE,4DAAK,KAAK,EAAC,MAAM,gBAAa,IAAI,CAAC,KAAK,CAAC,MAAM,IAC9C,2DAAI,KAAK,EAAC,qBAAqB,EAAC,IAAI,EAAC,MAAM,gBAAa,IAAI,CAAC,KAAK,CAAC,MAAM,IACxE,8DAAQ,CACJ,CACA,CACA,EACN;KACF;IAEO,OAAO,UAAU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AG,cAAc,EAAE,CAAC;QAChC,IAAI,MAAM,EAAE;YACX,oBAAoB,CAAC,MAAM,CAAC,CAAC;SAC7B;KACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["KolTreeWc"],"sources":["src/components/tree/component.tsx"],"sourcesContent":["import type { JSX } from '@stencil/core';\nimport { Component, Element, h, Host, Listen, Prop, State, Watch } from '@stencil/core';\n\nimport type { LabelPropType, TreeAPI, TreeStates } from '../../schema';\nimport { validateLabel } from '../../schema';\nimport { KolTreeItemTag, KolTreeTag } from '../../core/component-names';\n\n/**\n * @internal\n */\n@Component({\n\ttag: 'kol-tree-wc',\n\tshadow: false,\n})\nexport class KolTreeWc implements TreeAPI {\n\t@Element() host!: HTMLElement;\n\n\t@State() public state: TreeStates = {\n\t\t_label: '',\n\t};\n\tprivate observer?: MutationObserver;\n\tprivate treeItemElements?: HTMLKolTreeItemElement[];\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() _label!: LabelPropType;\n\n\t@Watch('_label') validateLabel(value?: LabelPropType): void {\n\t\tvalidateLabel(this, value);\n\t}\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host onSlotchange={this.handleSlotchange.bind(this)} class=\"kol-tree-wc\">\n\t\t\t\t<nav class=\"tree\" aria-label={this.state._label}>\n\t\t\t\t\t<ul class=\"treeview-navigation\" role=\"tree\" aria-label={this.state._label}>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</ul>\n\t\t\t\t</nav>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate static isTreeItem(this: void, element?: HTMLElement | null): element is HTMLKolTreeItemElement {\n\t\treturn element?.tagName === KolTreeItemTag.toUpperCase();\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateLabel(this._label);\n\n\t\tthis.handleTreeChange();\n\t\tthis.observeChildListMutations();\n\t}\n\n\tpublic disconnectedCallback(): void {\n\t\tthis.observer?.disconnect();\n\t}\n\n\tprivate observeChildListMutations() {\n\t\tthis.observer = new MutationObserver(this.handleTreeChange.bind(this));\n\t\tthis.observeTopLevelItems();\n\t}\n\n\tprivate handleSlotchange() {\n\t\tthis.observeTopLevelItems();\n\t\tthis.handleTreeChange();\n\t}\n\n\tprivate observeTopLevelItems() {\n\t\tthis.getTopLevelTreeItems()?.forEach((treeItem) => {\n\t\t\tthis.observer?.observe(treeItem, { childList: true, subtree: true });\n\t\t});\n\t}\n\n\tprivate getTopLevelTreeItems(): HTMLKolTreeItemElement[] {\n\t\treturn (this.host.querySelector('slot')?.assignedNodes?.() as HTMLElement[])?.filter(KolTreeWc.isTreeItem);\n\t}\n\n\tprivate handleTreeChange(): void {\n\t\tthis.treeItemElements = this.getTreeItemElements();\n\t\tvoid this.ensureActiveItemVisibility();\n\t}\n\n\t/**\n\t * Returns array of all TreeItem elements in the order they appear\n\t */\n\tprivate getTreeItemElements(): HTMLKolTreeItemElement[] {\n\t\treturn this.getTopLevelTreeItems()?.reduce((accumulator: HTMLKolTreeItemElement[], currentValue: HTMLKolTreeItemElement) => {\n\t\t\tconst children = currentValue.querySelectorAll(KolTreeItemTag);\n\n\t\t\treturn [...accumulator, currentValue, ...children];\n\t\t}, []);\n\t}\n\n\tprivate async getOpenTreeItemElements(): Promise<HTMLKolTreeItemElement[] | undefined> {\n\t\tif (!this.treeItemElements) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst areElementAndAllParentsOpen = async (element: HTMLKolTreeItemElement): Promise<boolean> => {\n\t\t\tif (!KolTreeWc.isTreeItem(element.parentElement)) {\n\t\t\t\t// parent is tree itself, top level is always open\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn (await element.parentElement.isOpen()) && (await areElementAndAllParentsOpen(element.parentElement));\n\t\t\t}\n\t\t};\n\n\t\tconst elementsWithInclude = await Promise.all(\n\t\t\tthis.treeItemElements.map(async (element) => ({\n\t\t\t\tvalue: element,\n\t\t\t\tinclude: await areElementAndAllParentsOpen(element),\n\t\t\t})),\n\t\t);\n\n\t\treturn elementsWithInclude.filter((element) => element.include).map((element) => element.value);\n\t}\n\n\t@Listen('keydown')\n\tpublic async handleKeyDown(event: KeyboardEvent) {\n\t\tconst openItems = await this.getOpenTreeItemElements();\n\t\tconst currentTreeItem: HTMLKolTreeItemElement | undefined | null = document.activeElement?.closest(KolTreeItemTag);\n\t\tconst hasModifierKeyPressed = event.metaKey || event.altKey || event.ctrlKey || event.shiftKey;\n\n\t\tif (!openItems || !currentTreeItem) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst currentIndex = openItems?.findIndex((elem) => elem === currentTreeItem);\n\n\t\tswitch (event.key) {\n\t\t\tcase 'ArrowDown': {\n\t\t\t\tawait openItems[currentIndex + 1]?.focusLink();\n\t\t\t\tevent.preventDefault();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase 'ArrowUp': {\n\t\t\t\tawait openItems[currentIndex - 1]?.focusLink();\n\t\t\t\tevent.preventDefault();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase 'Right':\n\t\t\tcase 'ArrowRight': {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tif (await currentTreeItem.isOpen()) {\n\t\t\t\t\tawait openItems[currentIndex + 1]?.focusLink();\n\t\t\t\t} else {\n\t\t\t\t\tawait currentTreeItem.expand();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase 'Left':\n\t\t\tcase 'ArrowLeft': {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tif (await currentTreeItem.isOpen()) {\n\t\t\t\t\tawait currentTreeItem.collapse();\n\t\t\t\t} else {\n\t\t\t\t\tconst parentIndex = openItems.findIndex((item) => item === currentTreeItem.parentElement);\n\t\t\t\t\tparentIndex !== -1 && (await openItems[parentIndex]?.focusLink());\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase 'Home': {\n\t\t\t\tawait openItems[0]?.focusLink();\n\t\t\t\tevent.preventDefault();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase 'End': {\n\t\t\t\tawait openItems[openItems.length - 1]?.focusLink();\n\t\t\t\tevent.preventDefault();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase event.key.match(/^[a-zA-Z0-9]$/)?.input: {\n\t\t\t\t/* Ignore events with any modifier key to avoid breaking native browser or OS shortcuts such as ⌘+L */\n\t\t\t\tif (!hasModifierKeyPressed) {\n\t\t\t\t\tconst char = event.key.toLowerCase();\n\t\t\t\t\tconst startIndex = openItems.indexOf(currentTreeItem) + 1;\n\t\t\t\t\tconst wrapAroundItems = openItems.concat(openItems);\n\t\t\t\t\tconst matchIndex = wrapAroundItems\n\t\t\t\t\t\t.slice(startIndex, startIndex + openItems.length)\n\t\t\t\t\t\t.findIndex((item) => item.getAttribute('_label')?.trim().toLowerCase().startsWith(char));\n\n\t\t\t\t\tif (matchIndex !== -1) {\n\t\t\t\t\t\tawait wrapAroundItems[startIndex + matchIndex].focusLink();\n\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase '*': {\n\t\t\t\tconst siblings = currentTreeItem.parentElement?.querySelectorAll(KolTreeItemTag);\n\t\t\t\tsiblings?.forEach((element) => {\n\t\t\t\t\tvoid element.expand();\n\t\t\t\t});\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\t@Listen('focusout')\n\tpublic async handleFocusOut(event: FocusEvent) {\n\t\tif (event.relatedTarget && !(event.relatedTarget as Element).closest(KolTreeTag)) {\n\t\t\t/* Tree lost focus */\n\t\t\tawait this.ensureActiveItemVisibility();\n\t\t}\n\t}\n\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tprivate async ensureActiveItemVisibility() {\n\t\tconst findActiveItem = (): HTMLKolTreeItemElement | undefined => {\n\t\t\tconst rootNodes = (this.host.querySelector('slot')?.assignedNodes?.() as HTMLElement[])?.filter(KolTreeWc.isTreeItem) ?? [];\n\t\t\tfor (const rootNode of rootNodes) {\n\t\t\t\tif (rootNode._active) {\n\t\t\t\t\treturn rootNode;\n\t\t\t\t}\n\t\t\t\tconst childMatch = rootNode.querySelector(`${KolTreeItemTag}[_active=\"true\"]`);\n\t\t\t\tif (childMatch && (childMatch as HTMLKolTreeItemElement)._active) {\n\t\t\t\t\treturn childMatch as HTMLKolTreeItemElement;\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\tconst expandParentElements = (element: HTMLKolTreeItemElement) => {\n\t\t\tif (KolTreeWc.isTreeItem(element.parentElement)) {\n\t\t\t\tvoid element.parentElement.expand();\n\t\t\t\texpandParentElements(element.parentElement);\n\t\t\t}\n\t\t};\n\n\t\tconst target = findActiveItem();\n\t\tif (target) {\n\t\t\texpandParentElements(target);\n\t\t}\n\t}\n}\n"],"version":3}
1
+ {"file":"kol-tree-wc.js","mappings":";;;;;;;MAcaA,WAAS;;;;qBAGe;YACnC,MAAM,EAAE,EAAE;SACV;;;IASgB,aAAa,CAAC,KAAqB;QACnD,aAAa,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;KAC3B;IAEM,MAAM;QACZ,QACC,EAAC,IAAI,qDAAC,YAAY,EAAE,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,IACnD,4DAAK,KAAK,EAAC,UAAU,gBAAa,IAAI,CAAC,KAAK,CAAC,MAAM,IAClD,2DAAI,KAAK,EAAC,+BAA+B,EAAC,IAAI,EAAC,MAAM,gBAAa,IAAI,CAAC,KAAK,CAAC,MAAM,IAClF,8DAAQ,CACJ,CACA,CACA,EACN;KACF;IAEO,OAAO,UAAU,CAAa,OAA4B;QACjE,OAAO,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,MAAK,cAAc,CAAC,WAAW,EAAE,CAAC;KACzD;IAEM,iBAAiB;QACvB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QA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/core';\nimport { Component, Element, h, Host, Listen, Prop, State, Watch } from '@stencil/core';\n\nimport type { LabelPropType, TreeAPI, TreeStates } from '../../schema';\nimport { validateLabel } from '../../schema';\nimport { KolTreeItemTag, KolTreeTag } from '../../core/component-names';\n\n/**\n * @internal\n */\n@Component({\n\ttag: 'kol-tree-wc',\n\tshadow: false,\n})\nexport class KolTreeWc implements TreeAPI {\n\t@Element() host!: HTMLElement;\n\n\t@State() public state: TreeStates = {\n\t\t_label: '',\n\t};\n\tprivate observer?: MutationObserver;\n\tprivate treeItemElements?: HTMLKolTreeItemElement[];\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() _label!: LabelPropType;\n\n\t@Watch('_label') validateLabel(value?: LabelPropType): void {\n\t\tvalidateLabel(this, value);\n\t}\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host onSlotchange={this.handleSlotchange.bind(this)}>\n\t\t\t\t<nav class=\"kol-tree\" aria-label={this.state._label}>\n\t\t\t\t\t<ul class=\"kol-tree__treeview-navigation\" role=\"tree\" aria-label={this.state._label}>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</ul>\n\t\t\t\t</nav>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate static isTreeItem(this: void, element?: HTMLElement | null): element is HTMLKolTreeItemElement {\n\t\treturn element?.tagName === KolTreeItemTag.toUpperCase();\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateLabel(this._label);\n\n\t\tthis.handleTreeChange();\n\t\tthis.observeChildListMutations();\n\t}\n\n\tpublic disconnectedCallback(): void {\n\t\tthis.observer?.disconnect();\n\t}\n\n\tprivate observeChildListMutations() {\n\t\tthis.observer = new MutationObserver(this.handleTreeChange.bind(this));\n\t\tthis.observeTopLevelItems();\n\t}\n\n\tprivate handleSlotchange() {\n\t\tthis.observeTopLevelItems();\n\t\tthis.handleTreeChange();\n\t}\n\n\tprivate observeTopLevelItems() {\n\t\tthis.getTopLevelTreeItems()?.forEach((treeItem) => {\n\t\t\tthis.observer?.observe(treeItem, { childList: true, subtree: true });\n\t\t});\n\t}\n\n\tprivate getTopLevelTreeItems(): HTMLKolTreeItemElement[] {\n\t\treturn (this.host.querySelector('slot')?.assignedNodes?.() as HTMLElement[])?.filter(KolTreeWc.isTreeItem);\n\t}\n\n\tprivate handleTreeChange(): void {\n\t\tthis.treeItemElements = this.getTreeItemElements();\n\t\tvoid this.ensureActiveItemVisibility();\n\t}\n\n\t/**\n\t * Returns array of all TreeItem elements in the order they appear\n\t */\n\tprivate getTreeItemElements(): HTMLKolTreeItemElement[] {\n\t\treturn this.getTopLevelTreeItems()?.reduce((accumulator: HTMLKolTreeItemElement[], currentValue: HTMLKolTreeItemElement) => {\n\t\t\tconst children = currentValue.querySelectorAll(KolTreeItemTag);\n\n\t\t\treturn [...accumulator, currentValue, ...children];\n\t\t}, []);\n\t}\n\n\tprivate async getOpenTreeItemElements(): Promise<HTMLKolTreeItemElement[] | undefined> {\n\t\tif (!this.treeItemElements) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst areElementAndAllParentsOpen = async (element: HTMLKolTreeItemElement): Promise<boolean> => {\n\t\t\tif (!KolTreeWc.isTreeItem(element.parentElement)) {\n\t\t\t\t// parent is tree itself, top level is always open\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn (await element.parentElement.isOpen()) && (await areElementAndAllParentsOpen(element.parentElement));\n\t\t\t}\n\t\t};\n\n\t\tconst elementsWithInclude = await Promise.all(\n\t\t\tthis.treeItemElements.map(async (element) => ({\n\t\t\t\tvalue: element,\n\t\t\t\tinclude: await areElementAndAllParentsOpen(element),\n\t\t\t})),\n\t\t);\n\n\t\treturn elementsWithInclude.filter((element) => element.include).map((element) => element.value);\n\t}\n\n\t@Listen('keydown')\n\tpublic async handleKeyDown(event: KeyboardEvent) {\n\t\tconst openItems = await this.getOpenTreeItemElements();\n\t\tconst currentTreeItem: HTMLKolTreeItemElement | undefined | null = document.activeElement?.closest(KolTreeItemTag);\n\t\tconst hasModifierKeyPressed = event.metaKey || event.altKey || event.ctrlKey || event.shiftKey;\n\n\t\tif (!openItems || !currentTreeItem) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst currentIndex = openItems?.findIndex((elem) => elem === currentTreeItem);\n\n\t\tswitch (event.key) {\n\t\t\tcase 'ArrowDown': {\n\t\t\t\tawait openItems[currentIndex + 1]?.focusLink();\n\t\t\t\tevent.preventDefault();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase 'ArrowUp': {\n\t\t\t\tawait openItems[currentIndex - 1]?.focusLink();\n\t\t\t\tevent.preventDefault();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase 'Right':\n\t\t\tcase 'ArrowRight': {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tif (await currentTreeItem.isOpen()) {\n\t\t\t\t\tawait openItems[currentIndex + 1]?.focusLink();\n\t\t\t\t} else {\n\t\t\t\t\tawait currentTreeItem.expand();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase 'Left':\n\t\t\tcase 'ArrowLeft': {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tif (await currentTreeItem.isOpen()) {\n\t\t\t\t\tawait currentTreeItem.collapse();\n\t\t\t\t} else {\n\t\t\t\t\tconst parentIndex = openItems.findIndex((item) => item === currentTreeItem.parentElement);\n\t\t\t\t\tparentIndex !== -1 && (await openItems[parentIndex]?.focusLink());\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase 'Home': {\n\t\t\t\tawait openItems[0]?.focusLink();\n\t\t\t\tevent.preventDefault();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase 'End': {\n\t\t\t\tawait openItems[openItems.length - 1]?.focusLink();\n\t\t\t\tevent.preventDefault();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase event.key.match(/^[a-zA-Z0-9]$/)?.input: {\n\t\t\t\t/* Ignore events with any modifier key to avoid breaking native browser or OS shortcuts such as ⌘+L */\n\t\t\t\tif (!hasModifierKeyPressed) {\n\t\t\t\t\tconst char = event.key.toLowerCase();\n\t\t\t\t\tconst startIndex = openItems.indexOf(currentTreeItem) + 1;\n\t\t\t\t\tconst wrapAroundItems = openItems.concat(openItems);\n\t\t\t\t\tconst matchIndex = wrapAroundItems\n\t\t\t\t\t\t.slice(startIndex, startIndex + openItems.length)\n\t\t\t\t\t\t.findIndex((item) => item.getAttribute('_label')?.trim().toLowerCase().startsWith(char));\n\n\t\t\t\t\tif (matchIndex !== -1) {\n\t\t\t\t\t\tawait wrapAroundItems[startIndex + matchIndex].focusLink();\n\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase '*': {\n\t\t\t\tconst siblings = currentTreeItem.parentElement?.querySelectorAll(KolTreeItemTag);\n\t\t\t\tsiblings?.forEach((element) => {\n\t\t\t\t\tvoid element.expand();\n\t\t\t\t});\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\t@Listen('focusout')\n\tpublic async handleFocusOut(event: FocusEvent) {\n\t\tif (event.relatedTarget && !(event.relatedTarget as Element).closest(KolTreeTag)) {\n\t\t\t/* Tree lost focus */\n\t\t\tawait this.ensureActiveItemVisibility();\n\t\t}\n\t}\n\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tprivate async ensureActiveItemVisibility() {\n\t\tconst findActiveItem = (): HTMLKolTreeItemElement | undefined => {\n\t\t\tconst rootNodes = (this.host.querySelector('slot')?.assignedNodes?.() as HTMLElement[])?.filter(KolTreeWc.isTreeItem) ?? [];\n\t\t\tfor (const rootNode of rootNodes) {\n\t\t\t\tif (rootNode._active) {\n\t\t\t\t\treturn rootNode;\n\t\t\t\t}\n\t\t\t\tconst childMatch = rootNode.querySelector(`${KolTreeItemTag}[_active=\"true\"]`);\n\t\t\t\tif (childMatch && (childMatch as HTMLKolTreeItemElement)._active) {\n\t\t\t\t\treturn childMatch as HTMLKolTreeItemElement;\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\tconst expandParentElements = (element: HTMLKolTreeItemElement) => {\n\t\t\tif (KolTreeWc.isTreeItem(element.parentElement)) {\n\t\t\t\tvoid element.parentElement.expand();\n\t\t\t\texpandParentElements(element.parentElement);\n\t\t\t}\n\t\t};\n\n\t\tconst target = findActiveItem();\n\t\tif (target) {\n\t\t\texpandParentElements(target);\n\t\t}\n\t}\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{proxyCustomElement,HTMLElement,h,Host}from"@stencil/core/internal/client";import{u as KolTreeWcTag}from"./component-names.js";const defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n }\n}\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n .badge-text-hint {\n background-color: lightgray;\n color: black;\n }\n}\n@layer kol-component {\n .tree ul {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n .tree:focus-within {\n outline: 1px solid;\n outline-offset: 2px;\n }\n}",KolTreeDefaultStyle0=defaultStyleCss,KolTree$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this._label=void 0}render(){return h(Host,{key:"6430c90de00f6f06970d9abfcb0040bb765a2a12",class:"kol-tree"},h(KolTreeWcTag,{key:"fcb3d3174feec3a8ae2127fecaf3d5d373d1ee11",_label:this._label},h("slot",{key:"25dd947e8b94534ac4bb63e53e7f66dec9c517bf"})))}static get style(){return{default:KolTreeDefaultStyle0}}},[33,"kol-tree",{_label:[1]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-tree"].forEach((n=>{if("kol-tree"===n)customElements.get(n)||customElements.define(n,KolTree$1)}))}const KolTree=KolTree$1,defineCustomElement=defineCustomElement$1;export{KolTree,defineCustomElement};
4
+ import{proxyCustomElement,HTMLElement,h}from"@stencil/core/internal/client";import{t as KolTreeWcTag}from"./component-names.js";const defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]) {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n }\n}\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n background-color: lightgray;\n color: black;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: grid;\n place-items: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n .kol-tree {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tree__treeview-navigation {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n .kol-tree:focus-within {\n outline: 1px solid;\n outline-offset: 2px;\n }\n}",KolTreeDefaultStyle0=defaultStyleCss,KolTree$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this._label=void 0}render(){return h(KolTreeWcTag,{key:"d9f26f840ce0ccdb32731859e6075cd0fd737dd5",_label:this._label},h("slot",{key:"8f020e01d6f839e2739e5cf0256afdd01eb5c0e5"}))}static get style(){return{default:KolTreeDefaultStyle0}}},[33,"kol-tree",{_label:[1]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-tree"].forEach((n=>{if("kol-tree"===n)customElements.get(n)||customElements.define(n,KolTree$1)}))}const KolTree=KolTree$1,defineCustomElement=defineCustomElement$1;export{KolTree,defineCustomElement};
@@ -1 +1 @@
1
- {"file":"kol-tree.js","mappings":";;;;;;AAAA,MAAM,eAAe,GAAG,06IAA06I,CAAC;AACn8I,6BAAe,eAAe;;MCYjBA,SAAO;;;;;;;IAMZ,MAAM;QACZ,QACC,EAAC,IAAI,qDAAC,KAAK,EAAC,UAAU,IACrB,EAAC,YAAY,qDAAC,MAAM,EAAE,IAAI,CAAC,MAAM,IAChC,8DAAQ,CACM,CACT,EACN;KACF;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["KolTree"],"sources":["src/components/tree/style.scss?tag=kol-tree&mode=default&encapsulation=shadow","src/components/tree/shadow.tsx"],"sourcesContent":["@use '../style' as *;\n\n@layer kol-component {\n\t.tree {\n\t\tul {\n\t\t\tmargin: 0;\n\t\t\tpadding: 0;\n\t\t\tlist-style: none;\n\t\t}\n\n\t\t&:focus-within {\n\t\t\toutline: 1px solid;\n\t\t\toutline-offset: 2px;\n\t\t}\n\t}\n}\n","import type { JSX } from '@stencil/core';\nimport { Component, h, Host, Prop } from '@stencil/core';\n\nimport type { LabelPropType, TreeProps } from '../../schema';\nimport { KolTreeWcTag } from '../../core/component-names';\n\n@Component({\n\ttag: 'kol-tree',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolTree implements TreeProps {\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() _label!: LabelPropType;\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host class=\"kol-tree\">\n\t\t\t\t<KolTreeWcTag _label={this._label}>\n\t\t\t\t\t<slot />\n\t\t\t\t</KolTreeWcTag>\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"version":3}
1
+ {"file":"kol-tree.js","mappings":";;;;;;AAAA,MAAM,eAAe,GAAG,i7IAAi7I,CAAC;AAC18I,6BAAe,eAAe;;MCYjBA,SAAO;;;;;;;IAMZ,MAAM;QACZ,QACC,EAAC,YAAY,qDAAC,MAAM,EAAE,IAAI,CAAC,MAAM,IAChC,8DAAQ,CACM,EACd;KACF;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["KolTree"],"sources":["src/components/tree/style.scss?tag=kol-tree&mode=default&encapsulation=shadow","src/components/tree/shadow.tsx"],"sourcesContent":["@use '../@shared/mixins' as *;\n@use '../../styles/global' as *;\n\n@layer kol-component {\n\t.kol-tree {\n\t\tfont-size: rem(16);\n\n\t\t&__treeview-navigation {\n\t\t\tmargin: 0;\n\t\t\tpadding: 0;\n\t\t\tlist-style: none;\n\t\t}\n\n\t\t&:focus-within {\n\t\t\toutline: 1px solid;\n\t\t\toutline-offset: 2px;\n\t\t}\n\t}\n}\n","import type { JSX } from '@stencil/core';\nimport { Component, h, Prop } from '@stencil/core';\n\nimport type { LabelPropType, TreeProps } from '../../schema';\nimport { KolTreeWcTag } from '../../core/component-names';\n\n@Component({\n\ttag: 'kol-tree',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolTree implements TreeProps {\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() _label!: LabelPropType;\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<KolTreeWcTag _label={this._label}>\n\t\t\t\t<slot />\n\t\t\t</KolTreeWcTag>\n\t\t);\n\t}\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{proxyCustomElement,HTMLElement,h,Host}from"@stencil/core/internal/client";import{t as translate}from"./i18n2.js";import{y as KolBadgeTag}from"./component-names.js";import{v as validateLabel}from"./label.js";const defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n }\n}\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n .badge-text-hint {\n background-color: lightgray;\n color: black;\n }\n}",KolVersionDefaultStyle0=defaultStyleCss,KolVersion$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this._label=void 0,this.state={_label:"0.0.0-alpha.0"}}render(){return h(Host,{key:"52c047c6155afc6cfcf189fd6689057a9ec1c6df",class:"kol-version"},h(KolBadgeTag,{key:"eddaf7d1ba9a2f8caa5c904a06fe3a6947df0624",_color:"#bec5c9",_icons:{left:{icon:"codicon codicon-versions",label:translate("kol-version")}},_label:this.state._label}))}validateLabel(n){validateLabel(this,n,{required:!0})}componentWillLoad(){this.validateLabel(this._label)}static get watchers(){return{_label:["validateLabel"]}}static get style(){return{default:KolVersionDefaultStyle0}}},[33,"kol-version",{_label:[1],state:[32]},void 0,{_label:["validateLabel"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-version"].forEach((n=>{if("kol-version"===n)customElements.get(n)||customElements.define(n,KolVersion$1)}))}const KolVersion=KolVersion$1,defineCustomElement=defineCustomElement$1;export{KolVersion,defineCustomElement};
4
+ import{proxyCustomElement,HTMLElement,h,Host}from"@stencil/core/internal/client";import{t as translate}from"./i18n2.js";import{x as KolBadgeTag}from"./component-names.js";import{v as validateLabel}from"./label.js";const defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]) {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n }\n}\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n background-color: lightgray;\n color: black;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: grid;\n place-items: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n}",KolVersionDefaultStyle0=defaultStyleCss,KolVersion$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this._label=void 0,this.state={_label:"0.0.0-alpha.0"}}render(){return h(Host,{key:"abaf942617b20e8e900dde885533f035b3cda21a",class:"kol-version"},h(KolBadgeTag,{key:"ac1df455d3abf291c8a88debe0a0e2ae51ce6b61",_color:"#bec5c9",_icons:{left:{icon:"codicon codicon-versions",label:translate("kol-version")}},_label:this.state._label}))}validateLabel(n){validateLabel(this,n,{required:!0})}componentWillLoad(){this.validateLabel(this._label)}static get watchers(){return{_label:["validateLabel"]}}static get style(){return{default:KolVersionDefaultStyle0}}},[33,"kol-version",{_label:[1],state:[32]},void 0,{_label:["validateLabel"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-version"].forEach((n=>{if("kol-version"===n)customElements.get(n)||customElements.define(n,KolVersion$1)}))}const KolVersion=KolVersion$1,defineCustomElement=defineCustomElement$1;export{KolVersion,defineCustomElement};
@@ -1 +1 @@
1
- {"file":"kol-version.js","mappings":";;;;;;;;AAAA,MAAM,eAAe,GAAG,ovIAAovI,CAAC;AAC7wI,gCAAe,eAAe;;MCejBA,YAAU;;;;;;qBAoBiB;YACtC,MAAM,EAAE,eAAe;SACvB;;IArBM,MAAM;QACZ,QACC,EAAC,IAAI,qDAAC,KAAK,EAAC,aAAa,IACxB,EAAC,WAAW,qDACX,MAAM,EAAC,SAAS,EAChB,MAAM,EAAE;gBACP,IAAI,EAAE,EAAE,IAAI,EAAE,0BAA0B,EAAE,KAAK,EAAE,SAAS,CAAC,aAAa,CAAC,EAAE;aAC3E,EACD,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,GACxB,CACI,EACN;KACF;IAYM,aAAa,CAAC,KAAqB;QACzC,aAAa,CAAC,IAAI,EAAE,KAAK,EAAE;YAC1B,QAAQ,EAAE,IAAI;SACd,CAAC,CAAC;KACH;IAEM,iBAAiB;QACvB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;KAChC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["KolVersion"],"sources":["src/components/version/style.scss?tag=kol-version&mode=default&encapsulation=shadow","src/components/version/shadow.tsx"],"sourcesContent":["@use '../style' as *;\n","import type { LabelPropType, VersionAPI, VersionStates } from '../../schema';\nimport { validateLabel } from '../../schema';\nimport { Component, h, Host, Prop, State, Watch } from '@stencil/core';\n\nimport { translate } from '../../i18n';\n\nimport type { JSX } from '@stencil/core';\nimport { KolBadgeTag } from '../../core/component-names';\n\n@Component({\n\ttag: 'kol-version',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolVersion implements VersionAPI {\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host class=\"kol-version\">\n\t\t\t\t<KolBadgeTag\n\t\t\t\t\t_color=\"#bec5c9\"\n\t\t\t\t\t_icons={{\n\t\t\t\t\t\tleft: { icon: 'codicon codicon-versions', label: translate('kol-version') },\n\t\t\t\t\t}}\n\t\t\t\t\t_label={this.state._label}\n\t\t\t\t/>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label!: LabelPropType;\n\n\t@State() public state: VersionStates = {\n\t\t_label: '0.0.0-alpha.0',\n\t};\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelPropType): void {\n\t\tvalidateLabel(this, value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateLabel(this._label);\n\t}\n}\n"],"version":3}
1
+ {"file":"kol-version.js","mappings":";;;;;;;;AAAA,MAAM,eAAe,GAAG,wvIAAwvI,CAAC;AACjxI,gCAAe,eAAe;;MCejBA,YAAU;;;;;;qBAoBiB;YACtC,MAAM,EAAE,eAAe;SACvB;;IArBM,MAAM;QACZ,QACC,EAAC,IAAI,qDAAC,KAAK,EAAC,aAAa,IACxB,EAAC,WAAW,qDACX,MAAM,EAAC,SAAS,EAChB,MAAM,EAAE;gBACP,IAAI,EAAE,EAAE,IAAI,EAAE,0BAA0B,EAAE,KAAK,EAAE,SAAS,CAAC,aAAa,CAAC,EAAE;aAC3E,EACD,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,GACxB,CACI,EACN;KACF;IAYM,aAAa,CAAC,KAAqB;QACzC,aAAa,CAAC,IAAI,EAAE,KAAK,EAAE;YAC1B,QAAQ,EAAE,IAAI;SACd,CAAC,CAAC;KACH;IAEM,iBAAiB;QACvB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;KAChC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["KolVersion"],"sources":["src/components/version/style.scss?tag=kol-version&mode=default&encapsulation=shadow","src/components/version/shadow.tsx"],"sourcesContent":["@use '../@shared/mixins' as *;\n@use '../../styles/global' as *;\n\n@layer kol-component {\n\t:host {\n\t\tfont-size: rem(16);\n\t}\n}\n","import type { LabelPropType, VersionAPI, VersionStates } from '../../schema';\nimport { validateLabel } from '../../schema';\nimport { Component, h, Host, Prop, State, Watch } from '@stencil/core';\n\nimport { translate } from '../../i18n';\n\nimport type { JSX } from '@stencil/core';\nimport { KolBadgeTag } from '../../core/component-names';\n\n@Component({\n\ttag: 'kol-version',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolVersion implements VersionAPI {\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host class=\"kol-version\">\n\t\t\t\t<KolBadgeTag\n\t\t\t\t\t_color=\"#bec5c9\"\n\t\t\t\t\t_icons={{\n\t\t\t\t\t\tleft: { icon: 'codicon codicon-versions', label: translate('kol-version') },\n\t\t\t\t\t}}\n\t\t\t\t\t_label={this.state._label}\n\t\t\t\t/>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label!: LabelPropType;\n\n\t@State() public state: VersionStates = {\n\t\t_label: '0.0.0-alpha.0',\n\t};\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelPropType): void {\n\t\tvalidateLabel(this, value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateLabel(this._label);\n\t}\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- let processEnv="development";try{processEnv="production"}catch(t){processEnv="production"}const handleSlotContent=(t,e,o)=>{if(t&&e&&"string"==typeof o){const n=t.querySelector(`[slot="${o}"]`);n&&e.appendChild(n)}},showExpertSlot=t=>""===t,buildBadgeTextString=(t,e)=>t||e||"";export{buildBadgeTextString as b,handleSlotContent as h,processEnv as p,showExpertSlot as s};
4
+ let processEnv="development";try{processEnv="production"}catch(t){processEnv="production"}const showExpertSlot=t=>""===t,buildBadgeTextString=(t,e)=>t||e||"";export{buildBadgeTextString as b,processEnv as p,showExpertSlot as s};
@@ -1 +1 @@
1
- {"file":"reuse.js","mappings":";;;IAEW,UAAU,GAAe,cAAc;AAClD,IAAI;IACH,UAAU,GAAG,YAAkC,CAAC;AACjD,CAAC;AAAC,OAAO,CAAC,EAAE;IACX,UAAU,GAAG,YAAY,CAAC;AAC3B,CAAC;MAMY,iBAAiB,GAAG,CAAC,OAAoB,EAAE,OAAoB,EAAE,QAAgB;IAC7F,IAAI,OAAO,IAAI,OAAO,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;QACvD,MAAM,OAAO,GAAG,OAAO,CAAC,aAAa,CAAC,UAAU,QAAQ,IAAI,CAAC,CAAC;QAC9D,IAAI,OAAO,EAAE;YACZ,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;SAC7B;KACD;AACF,EAAE;MAOW,cAAc,GAAG,CAAC,KAAc,KAAK,KAAK,KAAK,GAAG;MAQlD,oBAAoB,GAAG,CAAC,SAAkB,EAAE,QAAiB;IACzE,OAAO,SAAS,IAAI,QAAQ,IAAI,EAAE,CAAC;AACpC;;;;","names":[],"sources":["src/schema/utils/reuse.ts"],"sourcesContent":["const PROCESS_ENVS = ['development', 'production', 'test'] as const;\ntype ProcessEnv = (typeof PROCESS_ENVS)[number];\nexport let processEnv: ProcessEnv = 'development';\ntry {\n\tprocessEnv = process.env.NODE_ENV as ProcessEnv;\n} catch (e) {\n\tprocessEnv = 'production';\n}\n\n/**\n * This function is used to handle the slot content by\n * moving a DOM element to a defined slot element.\n */\nexport const handleSlotContent = (hostRef: HTMLElement, slotRef: HTMLElement, slotName: string) => {\n\tif (hostRef && slotRef && typeof slotName === 'string') {\n\t\tconst content = hostRef.querySelector(`[slot=\"${slotName}\"]`);\n\t\tif (content) {\n\t\t\tslotRef.appendChild(content);\n\t\t}\n\t}\n};\n\n/**\n * This function is used to check if a label is an empty string.\n * @param label The label of the slot\n * @returns True if the label is an empty string\n */\nexport const showExpertSlot = (label: unknown) => label === '';\n\n/**\n * This function builds the BadgeText. It chooses access key over shortkey or empty string, if both are empty\n * @param accessKey\n * @param shortKey\n * @returns returns badgeText as string\n */\nexport const buildBadgeTextString = (accessKey?: string, shortKey?: string) => {\n\treturn accessKey || shortKey || '';\n};\n"],"version":3}
1
+ {"file":"reuse.js","mappings":";;;IAEW,UAAU,GAAe,cAAc;AAClD,IAAI;IACH,UAAU,GAAG,YAAkC,CAAC;AACjD,CAAC;AAAC,OAAO,CAAC,EAAE;IACX,UAAU,GAAG,YAAY,CAAC;AAC3B,CAAC;MAoBY,cAAc,GAAG,CAAC,KAAc,KAAK,KAAK,KAAK,GAAG;MAQlD,oBAAoB,GAAG,CAAC,SAAkB,EAAE,QAAiB;IACzE,OAAO,SAAS,IAAI,QAAQ,IAAI,EAAE,CAAC;AACpC;;;;","names":[],"sources":["src/schema/utils/reuse.ts"],"sourcesContent":["const PROCESS_ENVS = ['development', 'production', 'test'] as const;\ntype ProcessEnv = (typeof PROCESS_ENVS)[number];\nexport let processEnv: ProcessEnv = 'development';\ntry {\n\tprocessEnv = process.env.NODE_ENV as ProcessEnv;\n} catch (e) {\n\tprocessEnv = 'production';\n}\n\n/**\n * This function is used to handle the slot content by\n * moving a DOM element to a defined slot element.\n */\nexport const handleSlotContent = (hostRef: HTMLElement, slotRef: HTMLElement, slotName: string) => {\n\tif (hostRef && slotRef && typeof slotName === 'string') {\n\t\tconst content = hostRef.querySelector(`[slot=\"${slotName}\"]`);\n\t\tif (content) {\n\t\t\tslotRef.appendChild(content);\n\t\t}\n\t}\n};\n\n/**\n * This function is used to check if a label is an empty string.\n * @param label The label of the slot\n * @returns True if the label is an empty string\n */\nexport const showExpertSlot = (label: unknown) => label === '';\n\n/**\n * This function builds the BadgeText. It chooses access key over shortkey or empty string, if both are empty\n * @param accessKey\n * @param shortKey\n * @returns returns badgeText as string\n */\nexport const buildBadgeTextString = (accessKey?: string, shortKey?: string) => {\n\treturn accessKey || shortKey || '';\n};\n"],"version":3}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{w as watchValidator,y as emptyStringByArrayHandler,e as objectObjectHandler,p as parseJson,s as setState}from"./prop.validators.js";import{b as isObject}from"./common.js";const validateTableCallbacks=(e,a)=>{watchValidator(e,"_on",(e=>"object"==typeof e&&null!==e),new Set(["TableCallbacksPropType {Events.onSort, Events.onSelectionChange}"]),a)},validateTableStatefulCallbacks=(e,a)=>{watchValidator(e,"_on",(e=>"object"==typeof e&&null!==e),new Set(["TableStatefulCallbacksPropType {Events.onSelectionChange}"]),a)},validateTableData=(e,a,o)=>{emptyStringByArrayHandler(a,(()=>{objectObjectHandler(a,(()=>{void 0===a&&(a=[]);try{a=parseJson(a)}catch(e){}Array.isArray(a)&&a.every((e=>"object"==typeof e&&null!==e))&&setState(e,"_data",a,o)}))}))},validateTableDataFoot=(e,a,o)=>{emptyStringByArrayHandler(a,(()=>{objectObjectHandler(a,(()=>{void 0===a&&(a=[]);try{a=parseJson(a)}catch(e){}Array.isArray(a)&&a.every((e=>"object"==typeof e&&null!==e))&&setState(e,"_dataFoot",a,o)}))}))},validateTableSelection=(e,a)=>{(e=>e&&isObject(e)&&"function"==typeof e.label&&(!e.selectedKeys||Array.isArray(e.selectedKeys)))("string"==typeof a?(()=>{try{return parseJson(a)}catch(e){return}})():a)&&setState(e,"_selection",a)};var Callback;!function(e){e.onBlur="onBlur",e.onChange="onChange",e.onChangePage="onChangePage",e.onClick="onClick",e.onClose="onClose",e.onDblClick="onDblClick",e.onFocus="onFocus",e.onInput="onInput",e.onKeyDown="onKeyDown",e.onKeyPress="onKeyPress",e.onKeyUp="onKeyUp",e.onMouseDown="onMouseDown",e.onMouseMove="onMouseMove",e.onMouseOut="onMouseOut",e.onMouseOver="onMouseOver",e.onMouseUp="onMouseUp",e.onReset="onReset",e.onSelect="onSelect",e.onSelectionChange="onSelectionChange",e.onChangePageSize="onChangePageSize",e.onSort="onSort",e.onSubmit="onSubmit",e.onToggle="onToggle"}(Callback||(Callback={}));const validateTableSettings=(e,a)=>{watchValidator(e,"_tableSettings",(e=>"object"==typeof e&&null!==e),new Set(["TableSettings"]),a)};export{Callback as C,validateTableDataFoot as a,validateTableSelection as b,validateTableStatefulCallbacks as c,validateTableSettings as d,validateTableCallbacks as e,validateTableData as v};
@@ -0,0 +1 @@
1
+ {"file":"table-settings.js","mappings":";;;;;;MAmCa,sBAAsB,GAAG,CAAC,SAAoC,EAAE,KAA8B;IAC1G,cAAc,CACb,SAAS,EACT,KAAK,EACL,CAAC,KAAK,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,EACtD,IAAI,GAAG,CAAC,CAAC,kEAAkE,CAAC,CAAC,EAC7E,KAAK,CACL,CAAC;AACH,EAAE;MAEW,8BAA8B,GAAG,CAAC,SAAoC,EAAE,KAAsC;IAC1H,cAAc,CACb,SAAS,EACT,KAAK,EACL,CAAC,KAAK,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,EACtD,IAAI,GAAG,CAAC,CAAC,2DAA2D,CAAC,CAAC,EACtE,KAAK,CACL,CAAC;AACH;;MCpCa,iBAAiB,GAAG,CAAC,SAAoC,EAAE,KAAyB,EAAE,aAA6B;IAC/H,yBAAyB,CAAC,KAAK,EAAE;QAChC,mBAAmB,CAAC,KAAK,EAAE;YAC1B,IAAI,OAAO,KAAK,KAAK,WAAW,EAAE;gBACjC,KAAK,GAAG,EAAE,CAAC;aACX;YACD,IAAI;gBACH,KAAK,GAAG,SAAS,CAAyB,KAAK,CAAC,CAAC;aAEjD;YAAC,OAAO,CAAC,EAAE;aAEX;YACD,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,IAA0B,KAAK,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,CAAC,EAAE;gBACnH,QAAQ,CAAC,SAAS,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W,CAAC,EAAE;QAChC,QAAQ,CAAC,SAAS,EAAE,YAAY,EAAE,KAAK,CAAC,CAAC;KACzC;AACF;;ICjCY;AAAZ,WAAY,QAAQ;IACnB,6BAAiB,CAAA;IACjB,iCAAqB,CAAA;IACrB,yCAA6B,CAAA;IAC7B,+BAAmB,CAAA;IACnB,+BAAmB,CAAA;IACnB,qCAAyB,CAAA;IACzB,+BAAmB,CAAA;IACnB,+BAAmB,CAAA;IACnB,mCAAuB,CAAA;IACvB,qCAAyB,CAAA;IACzB,+BAAmB,CAAA;IACnB,uCAA2B,CAAA;IAC3B,uCAA2B,CAAA;IAC3B,qCAAyB,CAAA;IACzB,uCAA2B,CAAA;IAC3B,mCAAuB,CAAA;IACvB,+BAAmB,CAAA;IACnB,iCAAqB,CAAA;IACrB,mDAAuC,CAAA;IACvC,iDAAqC,CAAA;IACrC,6BAAiB,CAAA;IACjB,iCAAqB,CAAA;IACrB,iCAAqB,CAAA;AACtB,CAAC,EAxBW,QAAQ,KAAR,QAAQ;;MCgBP,qBAAqB,GAAG,CAAC,SAAoC,EAAE,KAA6B;IACxG,cAAc,CAAC,SAAS,EAAE,gBAAgB,EAAE,CAAC,KAAK,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,EAAE,IAAI,GAAG,CAAC,CAAC,eAAe,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;AACxI;;;;","names":[],"sources":["src/schema/props/table-callbacks.ts","src/schema/props/table-data.ts","src/schema/props/table-data-foot.ts","src/schema/props/table-selection.ts","src/schema/enums/callback.ts","src/schema/props/table-settings.ts"],"sourcesContent":["import type { Callback } from '../enums';\nimport type { EventValueOrEventCallback } from '../types/callbacks';\nimport { watchValidator } from '../utils';\n\nimport type { Generic } from 'adopted-style-sheets';\nimport type { KoliBriSortDirection, KoliBriTableDataType } from '../types';\n\n/* types */\nexport type SortEventPayload = {\n\tkey: string;\n\tcurrentSortDirection: KoliBriSortDirection;\n};\n\nexport type SelectionChangeEventPayload = string[] | string;\nexport type StatefulSelectionChangeEventPayload = KoliBriTableDataType[] | KoliBriTableDataType | null;\n\nexport type TableCallbacksPropType = {\n\t[Callback.onSort]?: EventValueOrEventCallback<MouseEvent, SortEventPayload>;\n\t[Callback.onSelectionChange]?: EventValueOrEventCallback<Event, SelectionChangeEventPayload>;\n};\nexport type TableStatefulCallbacksPropType = {\n\t[Callback.onSelectionChange]?: EventValueOrEventCallback<Event, StatefulSelectionChangeEventPayload>;\n};\n/**\n * Defines the callback functions for table events.\n */\nexport type PropTableCallbacks = {\n\ton: TableCallbacksPropType;\n};\n\nexport type StatefulPropTableCallbacks = {\n\ton: TableStatefulCallbacksPropType;\n};\n\n/* validator */\nexport const validateTableCallbacks = (component: Generic.Element.Component, value?: TableCallbacksPropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t`_on`,\n\t\t(value) => typeof value === 'object' && value !== null,\n\t\tnew Set(['TableCallbacksPropType {Events.onSort, Events.onSelectionChange}']),\n\t\tvalue,\n\t);\n};\n\nexport const validateTableStatefulCallbacks = (component: Generic.Element.Component, value?: TableStatefulCallbacksPropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t`_on`,\n\t\t(value) => typeof value === 'object' && value !== null,\n\t\tnew Set(['TableStatefulCallbacksPropType {Events.onSelectionChange}']),\n\t\tvalue,\n\t);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { SetStateHooks } from '../utils';\nimport { emptyStringByArrayHandler, objectObjectHandler, parseJson, setState } from '../utils';\nimport type { KoliBriTableDataType, Stringified } from '../types';\n\n/* types */\nexport type TableDataPropType = Stringified<KoliBriTableDataType[]>;\n\n/**\n * Defines the primary table data.\n */\nexport type PropTableData = {\n\tdata: TableDataPropType;\n};\n\n/* validator */\nexport const validateTableData = (component: Generic.Element.Component, value?: TableDataPropType, setStateHooks?: SetStateHooks): void => {\n\temptyStringByArrayHandler(value, () => {\n\t\tobjectObjectHandler(value, () => {\n\t\t\tif (typeof value === 'undefined') {\n\t\t\t\tvalue = [];\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tvalue = parseJson<KoliBriTableDataType[]>(value);\n\t\t\t\t// eslint-disable-next-line no-empty\n\t\t\t} catch (e) {\n\t\t\t\t// value keeps the original data\n\t\t\t}\n\t\t\tif (Array.isArray(value) && value.every((data: KoliBriTableDataType) => typeof data === 'object' && data !== null)) {\n\t\t\t\tsetState(component, '_data', value, setStateHooks);\n\t\t\t}\n\t\t});\n\t});\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { SetStateHooks } from '../utils';\nimport { emptyStringByArrayHandler, objectObjectHandler, parseJson, setState } from '../utils';\nimport type { KoliBriTableDataType, Stringified } from '../types';\n\n/* types */\nexport type TableDataFootPropType = Stringified<KoliBriTableDataType[]>;\n\n/**\n * Defines the data for the table footer.\n */\nexport type PropTableDataFoot = {\n\tdataFoot: TableDataFootPropType;\n};\n\n/* validator */\nexport const validateTableDataFoot = (component: Generic.Element.Component, value?: TableDataFootPropType, setStateHooks?: SetStateHooks): void => {\n\temptyStringByArrayHandler(value, () => {\n\t\tobjectObjectHandler(value, () => {\n\t\t\tif (typeof value === 'undefined') {\n\t\t\t\tvalue = [];\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tvalue = parseJson<KoliBriTableDataType[]>(value);\n\t\t\t\t// eslint-disable-next-line no-empty\n\t\t\t} catch (e) {\n\t\t\t\t// value keeps the original data\n\t\t\t}\n\t\t\tif (Array.isArray(value) && value.every((data: KoliBriTableDataType) => typeof data === 'object' && data !== null)) {\n\t\t\t\tsetState(component, '_dataFoot', value, setStateHooks);\n\t\t\t}\n\t\t});\n\t});\n};\n","import type { Generic } from 'adopted-style-sheets';\nimport type { KoliBriTableSelection, Stringified } from '../types';\nimport { parseJson, setState } from '../utils';\nimport { isObject } from '../validators';\n\n/* types */\nexport type TableSelectionPropType = Stringified<KoliBriTableSelection>;\n\n/**\n * Defines how rows can be selected and the current selection.\n */\nexport type PropTableSelection = {\n\tselection: TableSelectionPropType;\n};\n\n/* validator */\nexport const validateTableSelection = (component: Generic.Element.Component, value?: TableSelectionPropType): void => {\n\tconst parseSerializedValue = () => {\n\t\ttry {\n\t\t\treturn parseJson<KoliBriTableSelection>(value);\n\t\t} catch (e) {\n\t\t\treturn undefined;\n\t\t}\n\t};\n\n\tconst validateObject = (value?: KoliBriTableSelection) => {\n\t\treturn value && isObject(value) && typeof value.label === 'function' && (!value.selectedKeys || Array.isArray(value.selectedKeys));\n\t};\n\n\tconst objectValue = typeof value === 'string' ? parseSerializedValue() : value;\n\tif (validateObject(objectValue)) {\n\t\tsetState(component, '_selection', value);\n\t}\n};\n","export enum Callback {\n\tonBlur = 'onBlur',\n\tonChange = 'onChange',\n\tonChangePage = 'onChangePage',\n\tonClick = 'onClick',\n\tonClose = 'onClose',\n\tonDblClick = 'onDblClick',\n\tonFocus = 'onFocus',\n\tonInput = 'onInput',\n\tonKeyDown = 'onKeyDown',\n\tonKeyPress = 'onKeyPress',\n\tonKeyUp = 'onKeyUp',\n\tonMouseDown = 'onMouseDown',\n\tonMouseMove = 'onMouseMove',\n\tonMouseOut = 'onMouseOut',\n\tonMouseOver = 'onMouseOver',\n\tonMouseUp = 'onMouseUp',\n\tonReset = 'onReset',\n\tonSelect = 'onSelect',\n\tonSelectionChange = 'onSelectionChange',\n\tonChangePageSize = 'onChangePageSize',\n\tonSort = 'onSort',\n\tonSubmit = 'onSubmit',\n\tonToggle = 'onToggle',\n}\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { watchValidator } from '../utils';\nimport type { TableSettings } from '../types/table-settings';\n\n/* types */\nexport type TableSettingsPropType = TableSettings;\n\n/**\n * Defines the table settings including column visibility, order and width.\n */\nexport type PropTableSettings = {\n\ttableSettings: TableSettingsPropType;\n};\n\n/* validator */\nexport const validateTableSettings = (component: Generic.Element.Component, value?: TableSettingsPropType): void => {\n\twatchValidator(component, `_tableSettings`, (value) => typeof value === 'object' && value !== null, new Set(['TableSettings']), value);\n};\n"],"version":3}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{_ as __rest}from"./tslib.es6-1173d062.js";import{h,F as Fragment}from"./index-25e8692e.js";import{c as clsx}from"./clsx-09a06a12.js";import{t as translate}from"./i18n-efbafc80.js";import{d as KolIconTag,a as KolButtonWcTag}from"./component-names-60d77143.js";import{K as KolHeadingFc}from"./Heading-b379a15f.js";const Icon=({ariaLabel:l,icon:o})=>h(Fragment,null,h("span",{class:"visually-hidden"},l),h(KolIconTag,{class:"kol-alert__heading-icon",_label:"",_icons:o})),AlertIcon=({type:l,label:o})=>{switch(l){case"error":return h(Icon,{ariaLabel:translate("kol-error"),icon:"codicon codicon-error",label:o});case"info":return h(Icon,{ariaLabel:translate("kol-info"),icon:"codicon codicon-info",label:o});case"warning":return h(Icon,{ariaLabel:translate("kol-warning"),icon:"codicon codicon-warning",label:o});case"success":return h(Icon,{ariaLabel:translate("kol-success"),icon:"codicon codicon-pass",label:o});default:return h(Icon,{ariaLabel:translate("kol-message"),icon:"codicon codicon-comment",label:o})}},AlertIcon$1=AlertIcon,KolAlertFc=(l,o)=>{var a,e;const{class:n={},type:t="default",variant:c="msg",label:r,hasCloser:s,alert:i,onAlertTimeout:d,onCloserClick:v,level:_}=l,b=__rest(l,["class","type","variant","label","hasCloser","alert","onAlertTimeout","onCloserClick","level"]);i&&((null===(a=navigator.userActivation)||void 0===a?void 0:a.hasBeenActive)&&(null===(e=null===navigator||void 0===navigator?void 0:navigator.vibrate)||void 0===e||e.call(navigator,[100,75,100,75,100])),setTimeout((()=>{null==d||d()}),1e4));const u=Object.assign({class:clsx("kol-alert",`kol-alert--${t}`,`kol-alert--${c}`,{"kol-alert--hasCloser":!!s},n),role:i?"alert":void 0},b);return h("div",Object.assign({},u),h("div",{class:"kol-alert__container"},h(AlertIcon$1,{label:r,type:t}),h("div",{class:"kol-alert__container-content"},r?h(KolHeadingFc,{class:"kol-alert__heading",level:_},r):null,"msg"===c&&h("div",{class:"kol-alert__content"},o)),s&&h(KolButtonWcTag,{class:"kol-alert__close-button close","data-testid":"alert-close-button",_ariaDescription:(null==r?void 0:r.trim())||"",_hideLabel:!0,_icons:{left:{icon:"codicon codicon-close"}},_label:translate("kol-close-alert"),_on:{onClick:v},_tooltipAlign:"left"})),"card"===c&&h("div",{class:"kol-alert__content"},o))},KolAlertFc$1=KolAlertFc;export{KolAlertFc$1 as K};
@@ -0,0 +1 @@
1
+ {"file":"Alert-6ca15282.js","mappings":";;;;;;;;;;AAUA,MAAM,IAAI,GAA4D,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE;IACzF,QACC;QACC,YAAM,KAAK,EAAC,iBAAiB,IAAE,SAAS,CAAQ;QAChD,EAAC,UAAU,IAAC,KAAK,EAAC,yBAAyB,EAAC,MAAM,EAAC,EAAE,EAAC,MAAM,EAAE,IAAI,GAAI,CACpE,EACF;AACH,CAAC,CAAC;AAEF,MAAM,SAAS,GAA6C,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE;IAC3E,QAAQ,IAAI;QACX,KAAK,OAAO;YACX,OAAO,EAAC,IAAI,IAAC,SAAS,EAAE,SAAS,CAAC,WAAW,CAAC,EAAE,IAAI,EAAC,uBAAuB,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC;QAC/F,KAAK,MAAM;YACV,OAAO,EAAC,IAAI,IAAC,SAAS,EAAE,SAAS,CAAC,UAAU,CAAC,EAAE,IAAI,EAAC,sBAAsB,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC;QAC7F,KAAK,SAAS;YACb,OAAO,EAAC,IAAI,IAAC,SAAS,EAAE,SAAS,CAAC,aAAa,CAAC,EAAE,IAAI,EAAC,yBAAyB,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC;QACnG,KAAK,SAAS;YACb,OAAO,EAAC,IAAI,IAAC,SAAS,EAAE,SAAS,CAAC,aAAa,CAAC,EAAE,IAAI,EAAC,sBAAsB,EAAC,KAAK,EAAE,KAAK,GAAI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AY,IAAC,KAAK,EAAC,oBAAoB,EAAC,KAAK,EAAE,KAAK,IACnD,KAAK,CACQ,IACZ,IAAI;gBACP,OAAO,KAAK,KAAK,IAAI,WAAK,KAAK,EAAC,oBAAoB,IAAE,QAAQ,CAAO,CACjE;YACL,SAAS,KACT,EAAC,cAAc,IACd,KAAK,EAAC,+BAA+B,iBACzB,oBAAoB,EAChC,gBAAgB,EAAE,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,EAAE,KAAI,EAAE,EACrC,UAAU,QACV,MAAM,EAAE;oBACP,IAAI,EAAE;wBACL,IAAI,EAAE,uBAAuB;qBAC7B;iBACD,EACD,MAAM,EAAE,SAAS,CAAC,iBAAiB,CAAC,EACpC,GAAG,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE,EAC/B,aAAa,EAAC,MAAM,GACH,CAClB,CACI;QACL,OAAO,KAAK,MAAM,IAAI,WAAK,KAAK,EAAC,oBAAoB,IAAE,QAAQ,CAAO,CAClE,EACL;AACH,CAAC,CAAC;AAEF,qBAAe,UAAU;;;;","names":["AlertIcon"],"sources":["src/functional-components/AlertIcon/AlertIcon.tsx","src/functional-components/Alert/Alert.tsx"],"sourcesContent":["import { Fragment, type FunctionalComponent as FC, h } from '@stencil/core';\nimport { KolIconTag } from '../../core/component-names';\nimport type { AlertType } from '../../schema';\nimport { translate } from '../../i18n';\n\n/**\n * The icon uses a visually-hidden span instead of an aria-label because the Alert might be referenced as content for aria-describedby.\n * In this scenario, Firefox with NVDA does not properly read the aria-label, so the visually-hidden span ensures correct screen reader behavior.\n * @see https://github.com/public-ui/kolibri/issues/7119\n */\nconst Icon: FC<{ ariaLabel: string; icon: string; label?: string }> = ({ ariaLabel, icon }) => {\n\treturn (\n\t\t<>\n\t\t\t<span class=\"visually-hidden\">{ariaLabel}</span>\n\t\t\t<KolIconTag class=\"kol-alert__heading-icon\" _label=\"\" _icons={icon} />\n\t\t</>\n\t);\n};\n\nconst AlertIcon: FC<{ label?: string; type?: AlertType }> = ({ type, label }) => {\n\tswitch (type) {\n\t\tcase 'error':\n\t\t\treturn <Icon ariaLabel={translate('kol-error')} icon=\"codicon codicon-error\" label={label} />;\n\t\tcase 'info':\n\t\t\treturn <Icon ariaLabel={translate('kol-info')} icon=\"codicon codicon-info\" label={label} />;\n\t\tcase 'warning':\n\t\t\treturn <Icon ariaLabel={translate('kol-warning')} icon=\"codicon codicon-warning\" label={label} />;\n\t\tcase 'success':\n\t\t\treturn <Icon ariaLabel={translate('kol-success')} icon=\"codicon codicon-pass\" label={label} />;\n\t\tdefault:\n\t\t\treturn <Icon ariaLabel={translate('kol-message')} icon=\"codicon codicon-comment\" label={label} />;\n\t}\n};\n\nexport default AlertIcon;\n","import { type FunctionalComponent as FC, h } from '@stencil/core';\nimport type { JSXBase } from '@stencil/core/internal';\nimport clsx from 'clsx';\n\nimport { type InternalAlertProps } from '../../schema';\nimport { translate } from '../../i18n';\nimport { KolButtonWcTag } from '../../core/component-names';\n\nimport AlertIcon from '../AlertIcon';\nimport KolHeadingFc from '../Heading';\n\nexport type KolAlertFcProps = JSXBase.HTMLAttributes<HTMLDivElement> &\n\tPartial<Omit<InternalAlertProps, 'on'>> & {\n\t\tonCloserClick?: () => void;\n\t\tonAlertTimeout?: () => void;\n\t};\n\nconst KolAlertFc: FC<KolAlertFcProps> = (props, children) => {\n\tconst { class: classNames = {}, type = 'default', variant = 'msg', label, hasCloser, alert, onAlertTimeout, onCloserClick, level, ...other } = props;\n\n\tif (alert) {\n\t\t/**\n\t\t * - https://developer.mozilla.org/de/docs/Web/API/Navigator/vibrate\n\t\t * - https://googlechrome.github.io/samples/vibration/\n\t\t * - Ongoing discussion: https://github.com/public-ui/kolibri/issues/7191\n\t\t * @todo Move side-effect out of render-function to avoid multiple incarnations.\n\t\t */\n\t\tif (navigator.userActivation?.hasBeenActive) {\n\t\t\tnavigator?.vibrate?.([100, 75, 100, 75, 100]);\n\t\t}\n\n\t\tsetTimeout(() => {\n\t\t\tonAlertTimeout?.();\n\t\t}, 10000);\n\t}\n\n\tconst rootProps: Partial<JSXBase.HTMLAttributes<HTMLDivElement>> = {\n\t\tclass: clsx('kol-alert', `kol-alert--${type}`, `kol-alert--${variant}`, { 'kol-alert--hasCloser': !!hasCloser }, classNames),\n\t\trole: alert ? 'alert' : undefined,\n\t\t...other,\n\t};\n\n\treturn (\n\t\t<div {...rootProps}>\n\t\t\t<div class=\"kol-alert__container\">\n\t\t\t\t<AlertIcon label={label} type={type} />\n\t\t\t\t<div class=\"kol-alert__container-content\">\n\t\t\t\t\t{label ? (\n\t\t\t\t\t\t<KolHeadingFc class=\"kol-alert__heading\" level={level}>\n\t\t\t\t\t\t\t{label}\n\t\t\t\t\t\t</KolHeadingFc>\n\t\t\t\t\t) : null}\n\t\t\t\t\t{variant === 'msg' && <div class=\"kol-alert__content\">{children}</div>}\n\t\t\t\t</div>\n\t\t\t\t{hasCloser && (\n\t\t\t\t\t<KolButtonWcTag\n\t\t\t\t\t\tclass=\"kol-alert__close-button close\"\n\t\t\t\t\t\tdata-testid=\"alert-close-button\"\n\t\t\t\t\t\t_ariaDescription={label?.trim() || ''}\n\t\t\t\t\t\t_hideLabel\n\t\t\t\t\t\t_icons={{\n\t\t\t\t\t\t\tleft: {\n\t\t\t\t\t\t\t\ticon: 'codicon codicon-close',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t}}\n\t\t\t\t\t\t_label={translate('kol-close-alert')}\n\t\t\t\t\t\t_on={{ onClick: onCloserClick }}\n\t\t\t\t\t\t_tooltipAlign=\"left\"\n\t\t\t\t\t></KolButtonWcTag>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t\t{variant === 'card' && <div class=\"kol-alert__content\">{children}</div>}\n\t\t</div>\n\t);\n};\n\nexport default KolAlertFc;\n"],"version":3}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{_ as __rest}from"./tslib.es6-1173d062.js";import{h}from"./index-25e8692e.js";import{c as clsx}from"./clsx-09a06a12.js";import{a as KolButtonWcTag}from"./component-names-60d77143.js";import{K as KolHeadingFc}from"./Heading-b379a15f.js";const KolCollapsibleFc=(l,o)=>{const{id:s,class:a,label:e,level:i=1,disabled:n,open:c,onClick:d,HeadingProps:r={},HeadingButtonProps:t={},ContentProps:p={}}=l,b=__rest(l,["id","class","label","level","disabled","open","onClick","HeadingProps","HeadingButtonProps","ContentProps"]),_=c?"remove":"add";return h("div",Object.assign({id:s,class:clsx("collapsible",{"collapsible--disabled":!0===n,"collapsible--open":!0===c},a)},b),h(KolHeadingFc,{ref:null==r?void 0:r.ref,level:i,class:clsx("collapsible__heading",null==r?void 0:r.class)},h(KolButtonWcTag,{class:clsx("collapsible__heading-button",null==t?void 0:t.class),ref:null==t?void 0:t.ref,slot:"expert",_ariaControls:`${s}-control`,_ariaExpanded:c,_disabled:n,_icons:(null==t?void 0:t._icons)||`codicon codicon-${_}`,_label:e,_on:{onClick:d}})),h("div",{class:clsx("collapsible__wrapper",null==p?void 0:p.wrapperClass)},h("div",{class:clsx("collapsible__wrapper-animation",null==p?void 0:p.animationClass)},h("div",{"aria-hidden":!1===c?"true":void 0,class:clsx("collapsible__content",null==p?void 0:p.class),id:`${s}-control`},o))))},KolCollapsibleFc$1=KolCollapsibleFc;export{KolCollapsibleFc$1 as K};
@@ -0,0 +1 @@
1
+ {"file":"Collapsible-7c76ecb2.js","mappings":";;;;;;;;;AAuCA,MAAM,gBAAgB,GAAyB,CAAC,KAAK,EAAE,QAAQ;IAC9D,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,GAAG,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,YAAY,GAAG,EAAE,EAAE,kBAAkB,GAAG,EAAE,EAAE,YAAY,GAAG,EAAE,KAAe,KAAK,EAAf,KAAK,UAAK,KAAK,EAArJ,sHAA6I,CAAQ,CAAC;IAC5J,MAAM,IAAI,GAAG,I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,YAAY,CAAE,KAAK,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,UAAU,IAClI,QAAQ,CACJ,CACD,CACD,CACD,EACL;AACH,CAAC,CAAC;AAEF,2BAAe,gBAAgB;;;;","names":[],"sources":["src/functional-components/Collapsible/Collapsible.tsx"],"sourcesContent":["import { h } from '@stencil/core';\nimport type { FunctionalComponent as FC } from '@stencil/core';\nimport type { JSXBase } from '@stencil/core/internal';\nimport clsx from 'clsx';\nimport { KolButtonWcTag } from '../../core/component-names';\nimport type { HeadingLevel, IconsPropType } from '../../schema';\nimport KolHeadingFc from '../Heading';\n\ntype ClassType =\n\t| string\n\t| {\n\t\t\t[className: string]: boolean;\n\t };\n\nexport type CollapsibleProps = Omit<JSXBase.HTMLAttributes<HTMLElement>, 'id'> & {\n\tid: string;\n\topen?: boolean;\n\tdisabled?: boolean;\n\tlevel?: HeadingLevel;\n\tlabel: string;\n\n\tHeadingProps?: {\n\t\tref?: ((elm?: HTMLElement | undefined) => void) | undefined;\n\t\tclass?: ClassType;\n\t};\n\n\tHeadingButtonProps?: {\n\t\tref?: ((elm?: HTMLKolButtonWcElement | undefined) => void) | undefined;\n\t\tclass?: ClassType;\n\t\t_icons?: IconsPropType;\n\t};\n\n\tContentProps?: {\n\t\tclass?: ClassType;\n\t\tanimationClass?: ClassType;\n\t\twrapperClass?: ClassType;\n\t};\n};\n\nconst KolCollapsibleFc: FC<CollapsibleProps> = (props, children) => {\n\tconst { id, class: classNames, label, level = 1, disabled, open, onClick, HeadingProps = {}, HeadingButtonProps = {}, ContentProps = {}, ...other } = props;\n\tconst icon = open ? 'remove' : 'add';\n\n\treturn (\n\t\t<div\n\t\t\tid={id}\n\t\t\tclass={clsx(\n\t\t\t\t'collapsible',\n\t\t\t\t{\n\t\t\t\t\t'collapsible--disabled': disabled === true,\n\t\t\t\t\t'collapsible--open': open === true,\n\t\t\t\t},\n\t\t\t\tclassNames,\n\t\t\t)}\n\t\t\t{...other}\n\t\t>\n\t\t\t<KolHeadingFc ref={HeadingProps?.ref} level={level} class={clsx('collapsible__heading', HeadingProps?.class)}>\n\t\t\t\t<KolButtonWcTag\n\t\t\t\t\tclass={clsx('collapsible__heading-button', HeadingButtonProps?.class)}\n\t\t\t\t\tref={HeadingButtonProps?.ref}\n\t\t\t\t\tslot=\"expert\"\n\t\t\t\t\t_ariaControls={`${id}-control`}\n\t\t\t\t\t_ariaExpanded={open}\n\t\t\t\t\t_disabled={disabled}\n\t\t\t\t\t_icons={HeadingButtonProps?._icons || `codicon codicon-${icon}`}\n\t\t\t\t\t_label={label}\n\t\t\t\t\t_on={{ onClick }}\n\t\t\t\t></KolButtonWcTag>\n\t\t\t</KolHeadingFc>\n\t\t\t<div class={clsx('collapsible__wrapper', ContentProps?.wrapperClass)}>\n\t\t\t\t<div class={clsx('collapsible__wrapper-animation', ContentProps?.animationClass)}>\n\t\t\t\t\t<div aria-hidden={open === false ? 'true' : undefined} class={clsx('collapsible__content', ContentProps?.class)} id={`${id}-control`}>\n\t\t\t\t\t\t{children}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nexport default KolCollapsibleFc;\n"],"version":3}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{h}from"./index-25e8692e.js";import{d as KolIconTag}from"./component-names-60d77143.js";import{t as translate}from"./i18n-efbafc80.js";import{c as clsx}from"./clsx-09a06a12.js";const getRenderStates=o=>{var s;const t="error"===(null===(s=o._msg)||void 0===s?void 0:s._type)&&!0===o._touched,n="string"==typeof o._hint&&o._hint.length>0,e=[];return!0===t&&e.push(`${o._id}-error`),!0===n&&e.push(`${o._id}-hint`),{hasMsg:t,hasHint:n,ariaDescribedBy:e}},CustomSuggestionsToggleFc=({onClick:o,disabled:s})=>h("button",{tabindex:"-1",class:"kol-custom-suggestions-toggle",onClick:o,disabled:s},h(KolIconTag,{_icons:"codicon codicon-triangle-down",_label:translate("kol-dropdown")})),CustomSuggestionsToggleFc$1=CustomSuggestionsToggleFc,CustomSuggestionsOptionFc=({index:o,ref:s,selected:t,onClick:n,onMouseOver:e,onFocus:i,onKeyDown:g,option:u})=>h("li",{id:`option-${o}`,key:`-${o}`,ref:s,"data-index":o,tabIndex:-1,role:"option","aria-selected":t?"true":void 0,onClick:n,onMouseOver:e,onFocus:i,class:"kol-custom-suggestions-option",onKeyDown:g},u),CustomSuggestionsOptionFc$1=CustomSuggestionsOptionFc,CustomSuggestionsOptionsGroupFc=({blockSuggestionMouseOver:o,onKeyDown:s},t)=>h("ul",{role:"listbox",class:clsx("kol-custom-suggestions-options-group",{"kol-custom-suggestions-options-group--cursor-hidden":o}),onKeyDown:s},t),CustomSuggestionsOptionsGroupFc$1=CustomSuggestionsOptionsGroupFc;export{CustomSuggestionsToggleFc$1 as C,CustomSuggestionsOptionsGroupFc$1 as a,CustomSuggestionsOptionFc$1 as b,getRenderStates as g};
@@ -0,0 +1 @@
1
+ {"file":"CustomSuggestionsOptionsGroup-d02e8c5a.js","mappings":";;;;;;;;MASa,eAAe,GAAG,CAAC,KAK/B;;IAKA,MAAM,cAAc,GAAG,CAAA,MAAA,KAAK,CAAC,IAAI,0CAAE,KAAK,MAAK,OAAO,CAAC;IACrD,MAAM,MAAM,GAAG,cAAc,IAAI,KAAK,CAAC,QAAQ,KAAK,IAAI,CAAC;IACzD,MAAM,OAAO,GAAG,OAAO,KAAK,CAAC,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;IAE1E,MAAM,eAAe,GAAa,EAAE,CAAC;IACrC,IAAI,MAAM,KAAK,IAAI,EAAE;QACpB,eAAe,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,GAAG,QAAQ,CAAC,CAAC;KAC3C;IACD,IAAI,OAAO,KAAK,IAAI,EAAE;QACrB,eAAe,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,GAAG,OAAO,CAAC,CAAC;KAC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["src/components/input/controller.ts","src/functional-components/CustomSuggestionsToggle/CustomSuggestionsToggle.tsx","src/functional-components/CustomSuggestionsOption/CustomSuggestionsOption.tsx","src/functional-components/CustomSuggestionsOptionsGroup/CustomSuggestionsOptionsGroup.tsx"],"sourcesContent":["import type { MsgPropType, TouchedPropType } from '../../schema';\n\n/**\n * Berechnet in Abhängigkeit des Component-State, wie die\n * aria-describedby-Attributs gesetzt werden sollen.\n *\n * @param state State der Component\n * @returns Render-States\n */\nexport const getRenderStates = (state: {\n\t_msg?: MsgPropType;\n\t_hint?: string;\n\t_id: string;\n\t_touched?: TouchedPropType;\n}): {\n\thasMsg: boolean;\n\thasHint: boolean;\n\tariaDescribedBy: string[];\n} => {\n\tconst isMessageValid = state._msg?._type === 'error';\n\tconst hasMsg = isMessageValid && state._touched === true;\n\tconst hasHint = typeof state._hint === 'string' && state._hint.length > 0;\n\n\tconst ariaDescribedBy: string[] = [];\n\tif (hasMsg === true) {\n\t\tariaDescribedBy.push(`${state._id}-error`);\n\t}\n\tif (hasHint === true) {\n\t\tariaDescribedBy.push(`${state._id}-hint`);\n\t}\n\treturn { hasMsg, hasHint, ariaDescribedBy };\n};\n","import { type FunctionalComponent as FC, h } from '@stencil/core';\nimport { KolIconTag } from '../../core/component-names';\nimport { translate } from '../../i18n';\nimport type { JSXBase } from '@stencil/core/internal';\n\nexport type CustomSuggestionsToggleProps = JSXBase.HTMLAttributes<HTMLButtonElement> & { disabled?: boolean };\n\nconst CustomSuggestionsToggleFc: FC<CustomSuggestionsToggleProps> = ({ onClick, disabled }) => {\n\treturn (\n\t\t<button tabindex=\"-1\" class=\"kol-custom-suggestions-toggle\" onClick={onClick} disabled={disabled}>\n\t\t\t<KolIconTag _icons=\"codicon codicon-triangle-down\" _label={translate('kol-dropdown')} />\n\t\t</button>\n\t);\n};\nexport default CustomSuggestionsToggleFc;\n","import { type FunctionalComponent as FC, h } from '@stencil/core';\nimport type { JSXBase } from '@stencil/core/internal';\nimport type { W3CInputValue } from '../../schema';\n\nexport type CustomSuggestionsProps = JSXBase.HTMLAttributes<HTMLLIElement> & {\n\tindex: number;\n\toption: W3CInputValue;\n\tselected: boolean;\n\tref?: ((elm?: HTMLLIElement | undefined) => void) | undefined;\n};\n\nconst CustomSuggestionsOptionFc: FC<CustomSuggestionsProps> = ({ index, ref, selected, onClick, onMouseOver, onFocus, onKeyDown, option }) => {\n\treturn (\n\t\t<li\n\t\t\tid={`option-${index}`}\n\t\t\tkey={`-${index}`}\n\t\t\tref={ref}\n\t\t\tdata-index={index}\n\t\t\ttabIndex={-1}\n\t\t\trole=\"option\"\n\t\t\taria-selected={selected ? 'true' : undefined}\n\t\t\tonClick={onClick}\n\t\t\tonMouseOver={onMouseOver}\n\t\t\tonFocus={onFocus}\n\t\t\tclass=\"kol-custom-suggestions-option\"\n\t\t\tonKeyDown={onKeyDown}\n\t\t>\n\t\t\t{option}\n\t\t</li>\n\t);\n};\nexport default CustomSuggestionsOptionFc;\n","import { type FunctionalComponent as FC, h } from '@stencil/core';\nimport type { JSXBase } from '@stencil/core/internal';\nimport clsx from 'clsx';\n\nexport type CustomSuggestionsOptionsGroupProps = JSXBase.HTMLAttributes<HTMLUListElement> & {\n\tblockSuggestionMouseOver: boolean;\n};\n\nconst CustomSuggestionsOptionsGroupFc: FC<CustomSuggestionsOptionsGroupProps> = ({ blockSuggestionMouseOver, onKeyDown }, children) => {\n\treturn (\n\t\t<ul\n\t\t\trole=\"listbox\"\n\t\t\tclass={clsx('kol-custom-suggestions-options-group', {\n\t\t\t\t'kol-custom-suggestions-options-group--cursor-hidden': blockSuggestionMouseOver,\n\t\t\t})}\n\t\t\tonKeyDown={onKeyDown}\n\t\t>\n\t\t\t{children}\n\t\t</ul>\n\t);\n};\nexport default CustomSuggestionsOptionsGroupFc;\n"],"version":3}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{_ as __rest}from"./tslib.es6-1173d062.js";import{h,F as Fragment}from"./index-25e8692e.js";import{c as clsx}from"./clsx-09a06a12.js";import{b as KolFieldControlTooltipFc,d as KolFieldControlLabelFc,e as KolFieldControlHintFc,c as checkHasMsg,a as convertMsgToInternMsg}from"./getRenderStates-1ee287e9.js";import{s as showExpertSlot,b as buildBadgeTextString}from"./reuse-f46e7e35.js";const InputContainer=(l,e)=>{var{class:o}=l,t=__rest(l,["class"]);return h("div",Object.assign({class:clsx("kol-field-control__input",o)},t),e)},KolFieldControlFc=(l,e)=>{const{class:o,id:t,disabled:r,label:n,hideLabel:s,labelAlign:i,renderNoTooltip:a,hint:d,renderNoHint:c,tooltipAlign:b,accessKey:p,shortKey:g,msg:F,touched:f,required:u,readonly:C,fieldControlInputProps:_,fieldControlLabelProps:K,fieldControlTooltipProps:m,fieldControlHintProps:y}=l,k=__rest(l,["class","id","disabled","label","hideLabel","labelAlign","renderNoTooltip","hint","renderNoHint","tooltipAlign","accessKey","shortKey","msg","touched","required","readonly","fieldControlInputProps","fieldControlLabelProps","fieldControlTooltipProps","fieldControlHintProps"]),x=!c,j=!a,T=checkHasMsg(F,f),v=showExpertSlot(n),B=j&&!v&&s,P=buildBadgeTextString(p,g),S=[h(Fragment,null,h(InputContainer,Object.assign({},_),e),B&&h(KolFieldControlTooltipFc,Object.assign({},m||{},{id:t,label:n,hideLabel:s,align:b,badgeText:P}))),h(KolFieldControlLabelFc,Object.assign({},K||{},{id:t,baseClassName:"kol-field-control",class:clsx(null==K?void 0:K.class,{"kol-field-control__label--visually-hidden":Boolean(s)}),hasExpertSlot:v,label:n,accessKey:p,shortKey:g}))];"left"===i&&S.reverse();const L={"kol-field-control--disabled":Boolean(r),"kol-field-control--required":Boolean(u),"kol-field-control--touched":Boolean(f),"kol-field-control--hide-label":Boolean(s),"kol-field-control--read-only":Boolean(C),[`kol-field-control--${(null==F?void 0:F.type)||"error"}`]:Boolean(T),[`kol-field-control--label-align-${i}`]:Boolean(i)};return h("div",Object.assign({class:clsx("kol-field-control",L,o)},k),S,x&&h(KolFieldControlHintFc,Object.assign({},y||{},{baseClassName:"kol-field-control",id:t,hint:d})))},KolFieldControlFc$1=KolFieldControlFc;function getFieldControlProps(l){const e={accessKey:l._accessKey,shortKey:l._shortKey,id:l._id,disabled:l._disabled,msg:convertMsgToInternMsg(l._msg),hint:l._hint,label:l._label,hideLabel:l._hideLabel,touched:l._touched};return"_required"in l&&(e.required=l._required),"_readOnly"in l&&(e.readonly=l._readOnly),"_labelAlign"in l&&(e.labelAlign=l._labelAlign),e}const FieldControlStateWrapper=(l,e)=>{var{state:o}=l,t=__rest(l,["state"]);return h(KolFieldControlFc$1,Object.assign({},getFieldControlProps(o),t),e)},KolFieldControlStateWrapperFc=FieldControlStateWrapper;export{KolFieldControlStateWrapperFc as K};
@@ -0,0 +1 @@
1
+ {"file":"FieldControlStateWrapper-5de501e1.js","mappings":";;;;;;;;;AAqCA,MAAM,cAAc,GAA+C,CAAC,EAA+B,EAAE,QAAQ;QAAzC,EAAE,KAAK,EAAE,UAAU,OAAY,EAAP,KAAK,cAA7B,SAA+B,CAAF;IAChG,QACC,yBAAK,KAAK,EAAE,IAAI,CAAC,0BAA0B,EAAE,UAAU,CAAC,IAAM,KAAK,GACjE,QAAQ,CACJ,EACL;AACH,CAAC,CAAC;AAEF,MAAM,iBAAiB,GAA0B,CAAC,KAAK,EAAE,QAAQ;IAChE,MAAM,EACL,KAAK,EAAE,UAAU,EACjB,EAAE,EACF,QAAQ,EACR,KAAK,EACL,SAAS,EACT,UAAU,EACV,eAAe,EACf,IAAI,EACJ,YAAY,EACZ,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,GAAG,EACH,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,EACxB,qBAAqB,KAElB,KAAK,EADL,KAAK,UACL,KAAK,EAtBH,sSAsBL,CAAQ,CAAC;IAEV,MAAM,WAAW,GAAG,CAAC,YAAY,CAAC;IAClC,MAAM,cAAc,GAAG,CAAC,eAAe,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W,CAAC;KACrC;IAED,OAAO,KAAK,CAAC;AACd,CAAC;AAED,MAAM,wBAAwB,GAAsC,CAAC,EAAmB,EAAE,QAAQ;QAA7B,EAAE,KAAK,OAAY,EAAP,KAAK,cAAjB,SAAmB,CAAF;IACrF,QACC,EAACA,mBAAiB,oBAAK,oBAAoB,CAAC,KAAK,CAAC,EAAM,KAAK,GAC3D,QAAQ,CACU,EACnB;AACH,CAAC,CAAC;AAEF,sCAAe,wBAAwB;;;;","names":["KolFieldControlFc"],"sources":["src/functional-components/FieldControl/FieldControl.tsx","src/functional-component-wrappers/FieldControlStateWrapper/FieldControlStateWrapper.tsx"],"sourcesContent":["import { h, Fragment, type FunctionalComponent as FC } from '@stencil/core';\nimport type { JSXBase } from '@stencil/core/internal';\nimport clsx from 'clsx';\nimport { type AlignPropType, type LabelAlignPropType, buildBadgeTextString, checkHasMsg, type InternMsgPropType, showExpertSlot } from '../../schema';\nimport KolFieldControlTooltipFc from '../FormFieldTooltip';\nimport KolFieldControlLabelFc from '../FormFieldLabel';\nimport KolFieldControlHintFc from '../FormFieldHint';\n\nexport type FieldControlProps = Omit<JSXBase.HTMLAttributes<HTMLElement>, 'id'> & {\n\tid: string;\n\thint?: string;\n\tlabel: string;\n\thideLabel?: boolean;\n\tlabelAlign?: LabelAlignPropType;\n\taccessKey?: string;\n\tshortKey?: string;\n\ttooltipAlign?: AlignPropType;\n\tdisabled?: boolean;\n\tmsg?: InternMsgPropType;\n\ttouched?: boolean;\n\trequired?: boolean;\n\treadonly?: boolean;\n\tshowTooltip?: boolean;\n\n\trenderNoLabel?: boolean;\n\trenderNoHint?: boolean;\n\trenderNoTooltip?: boolean;\n\n\tfieldControlLabelProps?: JSXBase.HTMLAttributes<Omit<HTMLLabelElement | HTMLLegendElement, 'id' | 'hidden' | 'htmlFor'>> & {\n\t\tcomponent?: 'label' | 'legend';\n\t\tshowBadge?: boolean;\n\t};\n\tfieldControlInputProps?: JSXBase.HTMLAttributes<HTMLDivElement>;\n\tfieldControlTooltipProps?: Pick<JSXBase.HTMLAttributes<HTMLElement>, 'class'>;\n\tfieldControlHintProps?: JSXBase.HTMLAttributes<HTMLElement>;\n};\n\nconst InputContainer: FC<JSXBase.HTMLAttributes<HTMLDivElement>> = ({ class: classNames, ...other }, children) => {\n\treturn (\n\t\t<div class={clsx('kol-field-control__input', classNames)} {...other}>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nconst KolFieldControlFc: FC<FieldControlProps> = (props, children) => {\n\tconst {\n\t\tclass: classNames,\n\t\tid,\n\t\tdisabled,\n\t\tlabel,\n\t\thideLabel,\n\t\tlabelAlign,\n\t\trenderNoTooltip,\n\t\thint,\n\t\trenderNoHint,\n\t\ttooltipAlign,\n\t\taccessKey,\n\t\tshortKey,\n\t\tmsg,\n\t\ttouched,\n\t\trequired,\n\t\treadonly,\n\t\tfieldControlInputProps,\n\t\tfieldControlLabelProps,\n\t\tfieldControlTooltipProps,\n\t\tfieldControlHintProps,\n\t\t...other\n\t} = props;\n\n\tconst canShowHint = !renderNoHint;\n\tconst canShowTooltip = !renderNoTooltip;\n\tconst showMsg = checkHasMsg(msg, touched);\n\tconst hasExpertSlot = showExpertSlot(label);\n\tconst useTooltipInsteadOfLabel = canShowTooltip && !hasExpertSlot && hideLabel;\n\tconst badgeText = buildBadgeTextString(accessKey, shortKey);\n\n\tconst components = [\n\t\t<>\n\t\t\t<InputContainer {...fieldControlInputProps}>{children}</InputContainer>\n\t\t\t{useTooltipInsteadOfLabel && (\n\t\t\t\t<KolFieldControlTooltipFc\n\t\t\t\t\t{...(fieldControlTooltipProps || {})}\n\t\t\t\t\tid={id}\n\t\t\t\t\tlabel={label}\n\t\t\t\t\thideLabel={hideLabel}\n\t\t\t\t\talign={tooltipAlign}\n\t\t\t\t\tbadgeText={badgeText}\n\t\t\t\t/>\n\t\t\t)}\n\t\t</>,\n\t\t<KolFieldControlLabelFc\n\t\t\t{...(fieldControlLabelProps || {})}\n\t\t\tid={id}\n\t\t\tbaseClassName=\"kol-field-control\"\n\t\t\tclass={clsx(fieldControlLabelProps?.class, {\n\t\t\t\t['kol-field-control__label--visually-hidden']: Boolean(hideLabel),\n\t\t\t})}\n\t\t\thasExpertSlot={hasExpertSlot}\n\t\t\tlabel={label}\n\t\t\taccessKey={accessKey}\n\t\t\tshortKey={shortKey}\n\t\t/>,\n\t];\n\n\tif (labelAlign === 'left') {\n\t\tcomponents.reverse();\n\t}\n\n\tconst stateCssClasses = {\n\t\t['kol-field-control--disabled']: Boolean(disabled),\n\t\t['kol-field-control--required']: Boolean(required),\n\t\t['kol-field-control--touched']: Boolean(touched),\n\t\t['kol-field-control--hide-label']: Boolean(hideLabel),\n\t\t['kol-field-control--read-only']: Boolean(readonly),\n\t\t[`kol-field-control--${msg?.type || 'error'}`]: Boolean(showMsg),\n\t\t[`kol-field-control--label-align-${labelAlign}`]: Boolean(labelAlign),\n\t};\n\n\treturn (\n\t\t<div class={clsx('kol-field-control', stateCssClasses, classNames)} {...other}>\n\t\t\t{components}\n\t\t\t{canShowHint && <KolFieldControlHintFc {...(fieldControlHintProps || {})} baseClassName=\"kol-field-control\" id={id} hint={hint} />}\n\t\t</div>\n\t);\n};\n\nexport default KolFieldControlFc;\n","import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport KolFieldControlFc, { type FieldControlProps } from '../../functional-components/FieldControl';\nimport {\n\ttype InputColorStates,\n\ttype InputEmailStates,\n\ttype InputFileStates,\n\ttype InputNumberStates,\n\ttype InputPasswordStates,\n\ttype InputRangeStates,\n\ttype InputTextStates,\n\ttype InputCheckboxStates,\n\ttype InputRadioStates,\n\ttype SelectStates,\n\tconvertMsgToInternMsg,\n} from '../../schema';\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\t| SelectStates;\n\nexport type FieldControlStateWrapperProps = Partial<FieldControlProps> & {\n\tstate: InputState;\n};\n\nfunction getFieldControlProps(state: InputState): FieldControlProps {\n\tconst props: FieldControlProps = {\n\t\taccessKey: state._accessKey,\n\t\tshortKey: state._shortKey,\n\t\tid: state._id,\n\t\tdisabled: state._disabled,\n\t\tmsg: convertMsgToInternMsg(state._msg),\n\t\thint: state._hint,\n\t\tlabel: state._label,\n\t\thideLabel: state._hideLabel,\n\t\ttouched: state._touched,\n\t};\n\n\tif ('_required' in state) {\n\t\tprops.required = state._required;\n\t}\n\n\tif ('_readOnly' in state) {\n\t\tprops.readonly = state._readOnly;\n\t}\n\n\tif ('_labelAlign' in state) {\n\t\tprops.labelAlign = state._labelAlign;\n\t}\n\n\treturn props;\n}\n\nconst FieldControlStateWrapper: FC<FieldControlStateWrapperProps> = ({ state, ...other }, children) => {\n\treturn (\n\t\t<KolFieldControlFc {...getFieldControlProps(state)} {...other}>\n\t\t\t{children}\n\t\t</KolFieldControlFc>\n\t);\n};\n\nexport default FieldControlStateWrapper;\n"],"version":3}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{_ as __rest}from"./tslib.es6-1173d062.js";import{h}from"./index-25e8692e.js";import{c as clsx}from"./clsx-09a06a12.js";const MIN_HEADING_LEVEL=1,MAX_HEADING_LEVEL=6;function isValidHeadingLevel(e){return e>=MIN_HEADING_LEVEL&&e<=6}function getHeadlineTag(e){return isValidHeadingLevel(e)?`h${e}`:"strong"}function getSubHeadlineTag(e){return 1===e?"span":getHeadlineTag(e)}const KolHeadlineFc=(e,l)=>{var{class:a,level:s=MIN_HEADING_LEVEL,variant:n}=e,i=__rest(e,["class","level","variant"]);const c=getHeadlineTag(s),o=n||c;return h(c,Object.assign({class:clsx("kol-headline",`kol-headline--${o}`,a)},i),l)},KolSecondaryHeadlineFc=(e,l)=>{var{class:a,level:s=MIN_HEADING_LEVEL}=e,n=__rest(e,["class","level"]);const i=getSubHeadlineTag(s+1);return h(i,Object.assign({class:clsx("kol-headline kol-headline--group kol-headline--secondary",a)},n),l)},KolHeadingFc=(e,l)=>{var{secondaryHeadline:a,level:s=MIN_HEADING_LEVEL,class:n,HeadingGroupProps:i={},SecondaryHeadlineProps:c={}}=e,o=__rest(e,["secondaryHeadline","level","class","HeadingGroupProps","SecondaryHeadlineProps"]);const r=Object.assign({level:s},o);if(!a)return h(KolHeadlineFc,Object.assign({class:clsx(n,"kol-headline--single")},r),l);const{class:d}=i,t=__rest(i,["class"]),g=Object.assign({class:clsx("kol-heading-group",d)},t);return h("hgroup",Object.assign({},g),h(KolHeadlineFc,Object.assign({class:clsx(n,"kol-headline--group","kol-headline--primary")},r),l),h(KolSecondaryHeadlineFc,Object.assign({level:s},c),a))},KolHeadingFc$1=KolHeadingFc;export{KolHeadingFc$1 as K};
@@ -0,0 +1 @@
1
+ {"file":"Heading-b379a15f.js","mappings":";;;;;;;AA2BA,MAAM,iBAAiB,GAAG,CAAC,CAAC;AAC5B,MAAM,iBAAiB,GAAG,CAAC,CAAC;AAW5B,SAAS,mBAAmB,CAAC,KAAa;IACzC,OAAO,KAAK,IAAI,iBAAiB,IAAI,KAAK,IAAI,iBAAiB,CAAC;AACjE,CAAC;SAQe,cAAc,CAAC,KAA4B;IAC1D,OAAO,mBAAmB,CAAC,KAAK,CAAC,GAAI,IAAI,KAAK,EAAkB,GAAG,QAAQ,CAAC;AAC7E,CAAC;SAQe,iBAAiB,CAAC,KAA4B;IAC7D,OAAO,KAAK,KAAK,CAAC,GAAG,MAAM,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AACrD,CAAC;AAQD,MAAM,aAAa,GAAsB,CAAC,EAAmE,EAAE,QAAQ;QAA7E,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,GAAG,iBAAiB,EAAE,OAAO,OAAY,EAAP,KAAK,cAAjE,6BAAmE,CAAF;IAC1G,MAAM,WAAW,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;IAC1C,MAAM,YAAY,GAAG,OAAO,IAAI,W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AU,EAAE,qBAAqB,EAAE,uBAAuB,CAAC,IAAM,aAAa,GACvG,QAAQ,CACM;QAChB,EAAC,sBAAsB,kBAAC,KAAK,EAAE,KAAK,IAAM,sBAAsB,GAC9D,iBAAiB,CACM,CACjB,EACR;AACH,CAAC,CAAC;AAEF,uBAAe,YAAY;;;;","names":[],"sources":["src/functional-components/Heading/Heading.tsx"],"sourcesContent":["import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport clsx from 'clsx';\nimport type { JSXBase } from '@stencil/core/internal';\nimport type { HeadingLevel, HeadingVariantPropType } 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\tvariant?: HeadingVariantPropType;\n};\n\n// Define a type for the secondary headline props\ntype SecondaryHeadlineProps = BaseProps;\n\n// Define a type for the main Heading component props\nexport type HeadingProps = HeadlineProps & {\n\tsecondaryHeadline?: string;\n\tHeadingGroupProps?: HGroupProps;\n\tSecondaryHeadlineProps?: JSXBase.HTMLAttributes<HTMLHeadingElement | HTMLElement>;\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';\ntype SubHeadlineTag = 'span' | HeadlineTag;\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 * Returns the appropriate sub-headline tag based on the level.\n * If the level is 1, returns 'span', otherwise returns the headline tag.\n * @param level - The heading level.\n * @returns The corresponding sub-headline tag.\n */\nexport function getSubHeadlineTag(level: HeadingLevel | number): SubHeadlineTag {\n\treturn level === 1 ? 'span' : getHeadlineTag(level);\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, variant, ...other }, children) => {\n\tconst HeadlineTag = getHeadlineTag(level);\n\tconst finalVariant = variant || HeadlineTag;\n\n\treturn (\n\t\t<HeadlineTag class={clsx('kol-headline', `kol-headline--${finalVariant}`, 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 * @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, level = MIN_HEADING_LEVEL, ...other }, children) => {\n\tconst HeadlineTag = getSubHeadlineTag(level + 1);\n\n\treturn (\n\t\t<HeadlineTag class={clsx('kol-headline kol-headline--group kol-headline--secondary', classNames)} {...other}>\n\t\t\t{children}\n\t\t</HeadlineTag>\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 level={level} {...SecondaryHeadlineProps}>\n\t\t\t\t{secondaryHeadline}\n\t\t\t</KolSecondaryHeadlineFc>\n\t\t</hgroup>\n\t);\n};\n\nexport default KolHeadingFc;\n"],"version":3}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{h}from"./index-25e8692e.js";import{d as KolIconTag}from"./component-names-60d77143.js";const KolIconFc=o=>{const{class:c,style:n,icons:l,label:s,onClick:e}=o;return h(KolIconTag,{class:c,style:n,onClick:e,_icons:l,_label:s})},KolIconFc$1=KolIconFc;export{KolIconFc$1 as K};
@@ -0,0 +1 @@
1
+ {"file":"Icon-20286c93.js","mappings":";;;;;;AAUA,MAAM,SAAS,GAAkB,CAAC,KAAK;IACtC,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAElE,OAAO,EAAC,UAAU,IAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,GAAI,CAAC;AACxG,CAAC,CAAC;AAEF,oBAAe,SAAS;;;;","names":[],"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"],"version":3}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{_ as __rest}from"./tslib.es6-1173d062.js";import{h,F as Fragment}from"./index-25e8692e.js";import{c as clsx}from"./clsx-09a06a12.js";import{f as getDefaultProps,c as checkHasMsg}from"./getRenderStates-1ee287e9.js";const InputFc=e=>{const{class:s,msg:a,required:l,disabled:t,touched:o,readonly:i,ariaDescribedBy:r,hideLabel:n,label:d,suggestions:u,value:c}=e,p=__rest(e,["class","msg","required","disabled","touched","readonly","ariaDescribedBy","hideLabel","label","suggestions","value"]),b=checkHasMsg(a,o),g={"kol-input--disabled":Boolean(t),"kol-input--required":Boolean(l),"kol-input--touched":Boolean(o),"kol-input--readonly":Boolean(i),[`kol-input--${(null==a?void 0:a.type)||"error"}`]:b},m=Object.assign(Object.assign({class:clsx("kol-input",g,s),required:l,disabled:t,readonly:i,type:"text",list:u?`${p.id}-list`:void 0},getDefaultProps({ariaDescribedBy:r,hideLabel:n,label:d})),p);return h(Fragment,null,h("input",Object.assign({},m,{value:c})),u)},KolInputFc=InputFc;export{KolInputFc as K};