@public-ui/components 3.0.0-0edf6aa20a9ac9faa46ebe0e45a8c62841b05164.0 → 3.0.0-3f7ce4d6fae47ec93967f553e36b3173cbf0ab8d.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 (1076) hide show
  1. package/custom-elements.json +175 -116
  2. package/dist/cjs/Alert-1985e597.js +4 -0
  3. package/dist/cjs/Alert-1985e597.js.map +1 -0
  4. package/dist/cjs/Collapsible-5bc4a629.js +4 -0
  5. package/dist/cjs/{Collapsible-86925548.js.map → Collapsible-5bc4a629.js.map} +1 -1
  6. package/dist/cjs/CustomSuggestionsOptionsGroup-f06b3c8b.js +4 -0
  7. package/dist/cjs/CustomSuggestionsOptionsGroup-f06b3c8b.js.map +1 -0
  8. package/dist/cjs/FieldControlStateWrapper-406a2543.js +4 -0
  9. package/dist/cjs/FieldControlStateWrapper-406a2543.js.map +1 -0
  10. package/dist/cjs/{Heading-ad46954e.js → Heading-df45a02a.js} +1 -1
  11. package/dist/cjs/{Heading-ad46954e.js.map → Heading-df45a02a.js.map} +1 -1
  12. package/dist/cjs/Icon-d6c7ac6d.js +4 -0
  13. package/dist/cjs/{Icon-7f43100b.js.map → Icon-d6c7ac6d.js.map} +1 -1
  14. package/dist/cjs/Input-dda8644e.js +4 -0
  15. package/dist/cjs/Input-dda8644e.js.map +1 -0
  16. package/dist/cjs/InputStateWrapper-514cc171.js +4 -0
  17. package/dist/cjs/InputStateWrapper-514cc171.js.map +1 -0
  18. package/dist/cjs/{InternalUnderlinedBadgeText-434182d2.js → InternalUnderlinedBadgeText-7b352779.js} +1 -1
  19. package/dist/cjs/{InternalUnderlinedBadgeText-434182d2.js.map → InternalUnderlinedBadgeText-7b352779.js.map} +1 -1
  20. package/dist/cjs/{Span-8ca233d2.js → Span-d8476793.js} +1 -1
  21. package/dist/cjs/{Span-8ca233d2.js.map → Span-d8476793.js.map} +1 -1
  22. package/dist/cjs/{access-and-short-key-12a097ab.js → access-and-short-key-6155af7d.js} +1 -1
  23. package/dist/cjs/{access-and-short-key-12a097ab.js.map → access-and-short-key-6155af7d.js.map} +1 -1
  24. package/dist/cjs/{align-b9732b91.js → align-a9f24187.js} +1 -1
  25. package/dist/cjs/{align-b9732b91.js.map → align-a9f24187.js.map} +1 -1
  26. package/dist/cjs/align-floating-elements-f88156a1.js +4 -0
  27. package/dist/cjs/align-floating-elements-f88156a1.js.map +1 -0
  28. package/dist/cjs/app-globals-09011f29.js +4 -0
  29. package/dist/cjs/{app-globals-702172ad.js.map → app-globals-09011f29.js.map} +1 -1
  30. package/dist/cjs/{associated.controller-5e3fde43.js → associated.controller-2005f7f0.js} +1 -1
  31. package/dist/cjs/{associated.controller-5e3fde43.js.map → associated.controller-2005f7f0.js.map} +1 -1
  32. package/dist/cjs/{button-variant-cd1a80cf.js → button-variant-10ad2503.js} +1 -1
  33. package/dist/cjs/{button-variant-cd1a80cf.js.map → button-variant-10ad2503.js.map} +1 -1
  34. package/dist/cjs/{color-2c30c52b.js → color-327a493c.js} +1 -1
  35. package/dist/cjs/{color-2c30c52b.js.map → color-327a493c.js.map} +1 -1
  36. package/dist/cjs/component-names-82c4d68d.js +4 -0
  37. package/dist/cjs/component-names-82c4d68d.js.map +1 -0
  38. package/dist/cjs/{controller-fcd5edcb.js → controller-1025bb87.js} +1 -1
  39. package/dist/cjs/{controller-fcd5edcb.js.map → controller-1025bb87.js.map} +1 -1
  40. package/dist/cjs/controller-1e713423.js +4 -0
  41. package/dist/cjs/{controller-44df52af.js.map → controller-1e713423.js.map} +1 -1
  42. package/dist/cjs/{controller-737e4986.js → controller-897b28b7.js} +1 -1
  43. package/dist/cjs/{controller-737e4986.js.map → controller-897b28b7.js.map} +1 -1
  44. package/dist/cjs/{controller-739092ae.js → controller-b25d03c0.js} +1 -1
  45. package/dist/cjs/{controller-739092ae.js.map → controller-b25d03c0.js.map} +1 -1
  46. package/dist/cjs/controller-icon-6c4d3a54.js +4 -0
  47. package/dist/cjs/controller-icon-6c4d3a54.js.map +1 -0
  48. package/dist/cjs/custom-class-1bd0519a.js +4 -0
  49. package/dist/cjs/{custom-class-3a1c18f3.js.map → custom-class-1bd0519a.js.map} +1 -1
  50. package/dist/cjs/{dev.utils-94f2c3c9.js → dev.utils-2df3b62b.js} +1 -1
  51. package/dist/cjs/{dev.utils-94f2c3c9.js.map → dev.utils-2df3b62b.js.map} +1 -1
  52. package/dist/cjs/{devtools-649d9a72.js → devtools-49e6f868.js} +1 -1
  53. package/dist/cjs/{devtools-649d9a72.js.map → devtools-49e6f868.js.map} +1 -1
  54. package/dist/cjs/{disabled-5a2e250c.js → disabled-0ee19649.js} +1 -1
  55. package/dist/cjs/{disabled-5a2e250c.js.map → disabled-0ee19649.js.map} +1 -1
  56. package/dist/cjs/{events-fc641593.js → events-40771c95.js} +1 -1
  57. package/dist/cjs/events-40771c95.js.map +1 -0
  58. package/dist/cjs/getRenderStates-f8d610c4.js +4 -0
  59. package/dist/cjs/getRenderStates-f8d610c4.js.map +1 -0
  60. package/dist/cjs/has-closer-51ccf77f.js +4 -0
  61. package/dist/cjs/{has-closer-9b3c14a7.js.map → has-closer-51ccf77f.js.map} +1 -1
  62. package/dist/cjs/has-counter-8679115c.js +4 -0
  63. package/dist/cjs/{has-counter-7318f6f4.js.map → has-counter-8679115c.js.map} +1 -1
  64. package/dist/cjs/hide-label-a9a94f19.js +4 -0
  65. package/dist/cjs/{hide-label-b0063224.js.map → hide-label-a9a94f19.js.map} +1 -1
  66. package/dist/cjs/href-c14d2c3e.js +4 -0
  67. package/dist/cjs/{href-2485cb51.js.map → href-c14d2c3e.js.map} +1 -1
  68. package/dist/cjs/{i18n-1d085d07.js → i18n-0e710ccd.js} +1 -1
  69. package/dist/cjs/{i18n-1d085d07.js.map → i18n-0e710ccd.js.map} +1 -1
  70. package/dist/cjs/i18n-8c288a27.js +4 -0
  71. package/dist/cjs/i18n-8c288a27.js.map +1 -0
  72. package/dist/cjs/{icons-310a07cc.js → icons-cfdc392f.js} +1 -1
  73. package/dist/cjs/icons-cfdc392f.js.map +1 -0
  74. package/dist/cjs/image-source-3b5f1388.js +4 -0
  75. package/dist/cjs/{image-source-27335383.js.map → image-source-3b5f1388.js.map} +1 -1
  76. package/dist/cjs/index-9d66d61e.js +4 -0
  77. package/dist/cjs/index-9d66d61e.js.map +1 -0
  78. package/dist/cjs/index-c77a4142.js +4 -0
  79. package/dist/cjs/index-c77a4142.js.map +1 -0
  80. package/dist/cjs/index.cjs.js +1 -1
  81. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  82. package/dist/cjs/kol-abbr.cjs.entry.js.map +1 -1
  83. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  84. package/dist/cjs/kol-accordion.cjs.entry.js.map +1 -1
  85. package/dist/cjs/kol-alert-wc.cjs.entry.js +1 -1
  86. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  87. package/dist/cjs/kol-alert.cjs.entry.js.map +1 -1
  88. package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
  89. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  90. package/dist/cjs/kol-avatar.cjs.entry.js.map +1 -1
  91. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  92. package/dist/cjs/kol-badge.cjs.entry.js.map +1 -1
  93. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  94. package/dist/cjs/kol-breadcrumb.cjs.entry.js.map +1 -1
  95. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  96. package/dist/cjs/kol-button-link.cjs.entry.js.map +1 -1
  97. package/dist/cjs/kol-button-wc.cjs.entry.js +1 -1
  98. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  99. package/dist/cjs/kol-button.cjs.entry.js.map +1 -1
  100. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  101. package/dist/cjs/kol-card.cjs.entry.js.map +1 -1
  102. package/dist/cjs/kol-combobox.cjs.entry.js +1 -1
  103. package/dist/cjs/kol-combobox.cjs.entry.js.map +1 -1
  104. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  105. package/dist/cjs/kol-details.cjs.entry.js.map +1 -1
  106. package/dist/cjs/kol-drawer.cjs.entry.js +1 -1
  107. package/dist/cjs/kol-drawer.cjs.entry.js.map +1 -1
  108. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  109. package/dist/cjs/kol-form.cjs.entry.js.map +1 -1
  110. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  111. package/dist/cjs/kol-heading.cjs.entry.js.map +1 -1
  112. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  113. package/dist/cjs/kol-icon.cjs.entry.js.map +1 -1
  114. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  115. package/dist/cjs/kol-image.cjs.entry.js.map +1 -1
  116. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  117. package/dist/cjs/kol-input-checkbox.cjs.entry.js.map +1 -1
  118. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  119. package/dist/cjs/kol-input-color.cjs.entry.js.map +1 -1
  120. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  121. package/dist/cjs/kol-input-date.cjs.entry.js.map +1 -1
  122. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  123. package/dist/cjs/kol-input-email.cjs.entry.js.map +1 -1
  124. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  125. package/dist/cjs/kol-input-file.cjs.entry.js.map +1 -1
  126. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  127. package/dist/cjs/kol-input-number.cjs.entry.js.map +1 -1
  128. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  129. package/dist/cjs/kol-input-password.cjs.entry.js.map +1 -1
  130. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  131. package/dist/cjs/kol-input-radio.cjs.entry.js.map +1 -1
  132. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  133. package/dist/cjs/kol-input-range.cjs.entry.js.map +1 -1
  134. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  135. package/dist/cjs/kol-input-text.cjs.entry.js.map +1 -1
  136. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  137. package/dist/cjs/kol-kolibri.cjs.entry.js.map +1 -1
  138. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  139. package/dist/cjs/kol-link-button.cjs.entry.js.map +1 -1
  140. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  141. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  142. package/dist/cjs/kol-link.cjs.entry.js.map +1 -1
  143. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  144. package/dist/cjs/kol-modal.cjs.entry.js.map +1 -1
  145. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  146. package/dist/cjs/kol-nav.cjs.entry.js.map +1 -1
  147. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  148. package/dist/cjs/kol-pagination.cjs.entry.js.map +1 -1
  149. package/dist/cjs/kol-popover-button-wc.cjs.entry.js +4 -0
  150. package/dist/cjs/kol-popover-button-wc.cjs.entry.js.map +1 -0
  151. package/dist/cjs/kol-popover-button.cjs.entry.js +1 -1
  152. package/dist/cjs/kol-popover-button.cjs.entry.js.map +1 -1
  153. package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
  154. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  155. package/dist/cjs/kol-progress.cjs.entry.js.map +1 -1
  156. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  157. package/dist/cjs/kol-quote.cjs.entry.js.map +1 -1
  158. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  159. package/dist/cjs/kol-select.cjs.entry.js.map +1 -1
  160. package/dist/cjs/kol-single-select.cjs.entry.js +1 -1
  161. package/dist/cjs/kol-single-select.cjs.entry.js.map +1 -1
  162. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  163. package/dist/cjs/kol-skip-nav.cjs.entry.js.map +1 -1
  164. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  165. package/dist/cjs/kol-spin.cjs.entry.js.map +1 -1
  166. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  167. package/dist/cjs/kol-split-button.cjs.entry.js.map +1 -1
  168. package/dist/cjs/kol-table-settings-wc.cjs.entry.js +4 -0
  169. package/dist/cjs/kol-table-settings-wc.cjs.entry.js.map +1 -0
  170. package/dist/cjs/kol-table-stateful.cjs.entry.js +1 -1
  171. package/dist/cjs/kol-table-stateful.cjs.entry.js.map +1 -1
  172. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js +1 -1
  173. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js.map +1 -1
  174. package/dist/cjs/kol-table-stateless.cjs.entry.js +1 -1
  175. package/dist/cjs/kol-table-stateless.cjs.entry.js.map +1 -1
  176. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  177. package/dist/cjs/kol-tabs.cjs.entry.js.map +1 -1
  178. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  179. package/dist/cjs/kol-textarea.cjs.entry.js.map +1 -1
  180. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  181. package/dist/cjs/kol-toast-container.cjs.entry.js.map +1 -1
  182. package/dist/cjs/kol-toolbar.cjs.entry.js +1 -1
  183. package/dist/cjs/kol-toolbar.cjs.entry.js.map +1 -1
  184. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +1 -1
  185. package/dist/cjs/kol-tree-item-wc.cjs.entry.js +1 -1
  186. package/dist/cjs/kol-tree-item-wc.cjs.entry.js.map +1 -1
  187. package/dist/cjs/kol-tree-item.cjs.entry.js +1 -1
  188. package/dist/cjs/kol-tree-item.cjs.entry.js.map +1 -1
  189. package/dist/cjs/kol-tree-wc.cjs.entry.js +1 -1
  190. package/dist/cjs/kol-tree-wc.cjs.entry.js.map +1 -1
  191. package/dist/cjs/kol-tree.cjs.entry.js +1 -1
  192. package/dist/cjs/kol-tree.cjs.entry.js.map +1 -1
  193. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  194. package/dist/cjs/kol-version.cjs.entry.js.map +1 -1
  195. package/dist/cjs/kolibri.cjs.js +1 -1
  196. package/dist/cjs/{label-b8654499.js → label-3ce275fe.js} +1 -1
  197. package/dist/cjs/{label-b8654499.js.map → label-3ce275fe.js.map} +1 -1
  198. package/dist/cjs/loader.cjs.js +1 -1
  199. package/dist/cjs/open-e08280be.js +4 -0
  200. package/dist/cjs/{open-5c1af49f.js.map → open-e08280be.js.map} +1 -1
  201. package/dist/cjs/{prop.validators-96dfedce.js → prop.validators-3c86f8eb.js} +1 -1
  202. package/dist/cjs/prop.validators-3c86f8eb.js.map +1 -0
  203. package/dist/cjs/reuse-8650ea4e.js +4 -0
  204. package/dist/cjs/reuse-8650ea4e.js.map +1 -0
  205. package/dist/cjs/rows-24ccf646.js +4 -0
  206. package/dist/cjs/{rows-782313b6.js.map → rows-24ccf646.js.map} +1 -1
  207. package/dist/cjs/show-0625d136.js +4 -0
  208. package/dist/cjs/{show-5b2be58e.js.map → show-0625d136.js.map} +1 -1
  209. package/dist/cjs/spell-check-d54fcffc.js +4 -0
  210. package/dist/cjs/{spell-check-5c5eee25.js.map → spell-check-d54fcffc.js.map} +1 -1
  211. package/dist/cjs/{suggestions-cd0a843d.js → suggestions-eccef9c3.js} +1 -1
  212. package/dist/cjs/{suggestions-cd0a843d.js.map → suggestions-eccef9c3.js.map} +1 -1
  213. package/dist/cjs/{callback-ab215ba6.js → table-settings-e3e70637.js} +1 -1
  214. package/dist/cjs/table-settings-e3e70637.js.map +1 -0
  215. package/dist/cjs/test-component.cjs.entry.js +1 -1
  216. package/dist/cjs/tooltip-align-5aee86e8.js +4 -0
  217. package/dist/cjs/{tooltip-align-3b9a6bde.js.map → tooltip-align-5aee86e8.js.map} +1 -1
  218. package/dist/cjs/{validation-fbc2d426.js → validation-2820e912.js} +1 -1
  219. package/dist/cjs/{validation-fbc2d426.js.map → validation-2820e912.js.map} +1 -1
  220. package/dist/cjs/{validation-7ea25fa6.js → validation-bcb18e67.js} +1 -1
  221. package/dist/cjs/{validation-7ea25fa6.js.map → validation-bcb18e67.js.map} +1 -1
  222. package/dist/components/Alert.js +1 -1
  223. package/dist/components/Alert.js.map +1 -1
  224. package/dist/components/CustomSuggestionsOptionsGroup.js +1 -1
  225. package/dist/components/CustomSuggestionsOptionsGroup.js.map +1 -1
  226. package/dist/components/FieldControlStateWrapper.js +1 -1
  227. package/dist/components/FieldControlStateWrapper.js.map +1 -1
  228. package/dist/components/Input.js +1 -1
  229. package/dist/components/Input.js.map +1 -1
  230. package/dist/components/InputContainerStateWrapper.js +1 -1
  231. package/dist/components/InputContainerStateWrapper.js.map +1 -1
  232. package/dist/components/InputStateWrapper.js +1 -1
  233. package/dist/components/InputStateWrapper.js.map +1 -1
  234. package/dist/components/access-and-short-key.js +1 -1
  235. package/dist/components/align-floating-elements.js +1 -1
  236. package/dist/components/align-floating-elements.js.map +1 -1
  237. package/dist/components/associated.controller.js +1 -1
  238. package/dist/components/button-variant.js +1 -1
  239. package/dist/components/color.js +1 -1
  240. package/dist/components/color.js.map +1 -1
  241. package/dist/components/component-names.js +1 -1
  242. package/dist/components/component-names.js.map +1 -1
  243. package/dist/components/controller.js +1 -1
  244. package/dist/components/controller2.js +1 -1
  245. package/dist/components/controller2.js.map +1 -1
  246. package/dist/components/controller4.js +1 -1
  247. package/dist/components/custom-class.js +1 -1
  248. package/dist/components/devtools.js +1 -1
  249. package/dist/components/disabled.js +1 -1
  250. package/dist/components/events.js +1 -1
  251. package/dist/components/events.js.map +1 -1
  252. package/dist/components/getRenderStates.js +1 -1
  253. package/dist/components/getRenderStates.js.map +1 -1
  254. package/dist/components/has-closer.js +1 -1
  255. package/dist/components/has-counter.js +1 -1
  256. package/dist/components/hide-label.js +1 -1
  257. package/dist/components/href.js +1 -1
  258. package/dist/components/i18n.js +1 -1
  259. package/dist/components/i18n.js.map +1 -1
  260. package/dist/components/icons.js +1 -1
  261. package/dist/components/icons.js.map +1 -1
  262. package/dist/components/image-source.js +1 -1
  263. package/dist/components/index.js +1 -1
  264. package/dist/components/kol-abbr.js +1 -1
  265. package/dist/components/kol-abbr.js.map +1 -1
  266. package/dist/components/kol-accordion.js +1 -1
  267. package/dist/components/kol-accordion.js.map +1 -1
  268. package/dist/components/kol-alert-wc.js +1 -1
  269. package/dist/components/kol-alert.js +1 -1
  270. package/dist/components/kol-alert.js.map +1 -1
  271. package/dist/components/kol-avatar.js +1 -1
  272. package/dist/components/kol-avatar.js.map +1 -1
  273. package/dist/components/kol-badge.js +1 -1
  274. package/dist/components/kol-badge.js.map +1 -1
  275. package/dist/components/kol-breadcrumb.js +1 -1
  276. package/dist/components/kol-breadcrumb.js.map +1 -1
  277. package/dist/components/kol-button-link.js +1 -1
  278. package/dist/components/kol-button-link.js.map +1 -1
  279. package/dist/components/kol-button-wc.js +1 -1
  280. package/dist/components/kol-button.js +1 -1
  281. package/dist/components/kol-button.js.map +1 -1
  282. package/dist/components/kol-card.js +1 -1
  283. package/dist/components/kol-card.js.map +1 -1
  284. package/dist/components/kol-combobox.js +1 -1
  285. package/dist/components/kol-combobox.js.map +1 -1
  286. package/dist/components/kol-details.js +1 -1
  287. package/dist/components/kol-details.js.map +1 -1
  288. package/dist/components/kol-drawer.js +1 -1
  289. package/dist/components/kol-drawer.js.map +1 -1
  290. package/dist/components/kol-form.js +1 -1
  291. package/dist/components/kol-form.js.map +1 -1
  292. package/dist/components/kol-heading.js +1 -1
  293. package/dist/components/kol-heading.js.map +1 -1
  294. package/dist/components/kol-icon.js +1 -1
  295. package/dist/components/kol-icon.js.map +1 -1
  296. package/dist/components/kol-image.js +1 -1
  297. package/dist/components/kol-image.js.map +1 -1
  298. package/dist/components/kol-input-checkbox.js +1 -1
  299. package/dist/components/kol-input-checkbox.js.map +1 -1
  300. package/dist/components/kol-input-color.js +1 -1
  301. package/dist/components/kol-input-color.js.map +1 -1
  302. package/dist/components/kol-input-date.js +1 -1
  303. package/dist/components/kol-input-date.js.map +1 -1
  304. package/dist/components/kol-input-email.js +1 -1
  305. package/dist/components/kol-input-email.js.map +1 -1
  306. package/dist/components/kol-input-file.js +1 -1
  307. package/dist/components/kol-input-file.js.map +1 -1
  308. package/dist/components/kol-input-number.js +1 -1
  309. package/dist/components/kol-input-number.js.map +1 -1
  310. package/dist/components/kol-input-password.js +1 -1
  311. package/dist/components/kol-input-password.js.map +1 -1
  312. package/dist/components/kol-input-radio.js +1 -1
  313. package/dist/components/kol-input-radio.js.map +1 -1
  314. package/dist/components/kol-input-range.js +1 -1
  315. package/dist/components/kol-input-range.js.map +1 -1
  316. package/dist/components/kol-input-text.js +1 -1
  317. package/dist/components/kol-input-text.js.map +1 -1
  318. package/dist/components/kol-kolibri.js +1 -1
  319. package/dist/components/kol-kolibri.js.map +1 -1
  320. package/dist/components/kol-link-button.js +1 -1
  321. package/dist/components/kol-link-button.js.map +1 -1
  322. package/dist/components/kol-link-wc.js +1 -1
  323. package/dist/components/kol-link.js +1 -1
  324. package/dist/components/kol-link.js.map +1 -1
  325. package/dist/components/kol-modal.js +1 -1
  326. package/dist/components/kol-modal.js.map +1 -1
  327. package/dist/components/kol-nav.js +1 -1
  328. package/dist/components/kol-nav.js.map +1 -1
  329. package/dist/components/kol-pagination.js +1 -1
  330. package/dist/components/kol-pagination.js.map +1 -1
  331. package/dist/components/{kol-input.d.ts → kol-popover-button-wc.d.ts} +4 -4
  332. package/dist/components/kol-popover-button-wc.js +4 -0
  333. package/dist/components/kol-popover-button-wc.js.map +1 -0
  334. package/dist/components/kol-popover-button.js +1 -1
  335. package/dist/components/kol-popover-button.js.map +1 -1
  336. package/dist/components/kol-popover-wc.js +1 -1
  337. package/dist/components/kol-progress.js +1 -1
  338. package/dist/components/kol-progress.js.map +1 -1
  339. package/dist/components/kol-quote.js +1 -1
  340. package/dist/components/kol-quote.js.map +1 -1
  341. package/dist/components/kol-select.js +1 -1
  342. package/dist/components/kol-select.js.map +1 -1
  343. package/dist/components/kol-single-select.js +1 -1
  344. package/dist/components/kol-single-select.js.map +1 -1
  345. package/dist/components/kol-skip-nav.js +1 -1
  346. package/dist/components/kol-skip-nav.js.map +1 -1
  347. package/dist/components/kol-spin.js +1 -1
  348. package/dist/components/kol-spin.js.map +1 -1
  349. package/dist/components/kol-split-button.js +1 -1
  350. package/dist/components/kol-split-button.js.map +1 -1
  351. package/dist/components/kol-table-settings-wc.d.ts +11 -0
  352. package/dist/components/kol-table-settings-wc.js +4 -0
  353. package/dist/components/kol-table-settings-wc.js.map +1 -0
  354. package/dist/components/kol-table-stateful.js +1 -1
  355. package/dist/components/kol-table-stateful.js.map +1 -1
  356. package/dist/components/kol-table-stateless-wc.js +1 -1
  357. package/dist/components/kol-table-stateless-wc.js.map +1 -1
  358. package/dist/components/kol-table-stateless.js +1 -1
  359. package/dist/components/kol-table-stateless.js.map +1 -1
  360. package/dist/components/kol-tabs.js +1 -1
  361. package/dist/components/kol-tabs.js.map +1 -1
  362. package/dist/components/kol-textarea.js +1 -1
  363. package/dist/components/kol-textarea.js.map +1 -1
  364. package/dist/components/kol-toast-container.js +1 -1
  365. package/dist/components/kol-toast-container.js.map +1 -1
  366. package/dist/components/kol-toolbar.js +1 -1
  367. package/dist/components/kol-toolbar.js.map +1 -1
  368. package/dist/components/kol-tooltip-wc.js +1 -1
  369. package/dist/components/kol-tree-item-wc.js +1 -1
  370. package/dist/components/kol-tree-item-wc.js.map +1 -1
  371. package/dist/components/kol-tree-item.js +1 -1
  372. package/dist/components/kol-tree-item.js.map +1 -1
  373. package/dist/components/kol-tree-wc.js +1 -1
  374. package/dist/components/kol-tree-wc.js.map +1 -1
  375. package/dist/components/kol-tree.js +1 -1
  376. package/dist/components/kol-tree.js.map +1 -1
  377. package/dist/components/kol-version.js +1 -1
  378. package/dist/components/kol-version.js.map +1 -1
  379. package/dist/components/open.js +1 -1
  380. package/dist/components/prop.validators.js +1 -1
  381. package/dist/components/prop.validators.js.map +1 -1
  382. package/dist/components/reuse.js +1 -1
  383. package/dist/components/reuse.js.map +1 -1
  384. package/dist/components/rows.js +1 -1
  385. package/dist/components/show.js +1 -1
  386. package/dist/components/spell-check.js +1 -1
  387. package/dist/components/suggestions.js +1 -1
  388. package/dist/components/{callback.js → table-settings.js} +1 -1
  389. package/dist/components/table-settings.js.map +1 -0
  390. package/dist/components/validation2.js +1 -1
  391. package/dist/esm/Alert-c740d8f3.js +4 -0
  392. package/dist/esm/Alert-c740d8f3.js.map +1 -0
  393. package/dist/esm/{Collapsible-9dbf3e00.js → Collapsible-a4c63640.js} +1 -1
  394. package/dist/esm/{Collapsible-9dbf3e00.js.map → Collapsible-a4c63640.js.map} +1 -1
  395. package/dist/esm/CustomSuggestionsOptionsGroup-7481dbd7.js +4 -0
  396. package/dist/esm/CustomSuggestionsOptionsGroup-7481dbd7.js.map +1 -0
  397. package/dist/esm/FieldControlStateWrapper-9d8d530e.js +4 -0
  398. package/dist/esm/FieldControlStateWrapper-9d8d530e.js.map +1 -0
  399. package/dist/esm/{Heading-e1db538b.js → Heading-485868a9.js} +1 -1
  400. package/dist/esm/{Heading-e1db538b.js.map → Heading-485868a9.js.map} +1 -1
  401. package/dist/esm/{Icon-1eca6817.js → Icon-230aeb46.js} +1 -1
  402. package/dist/esm/{Icon-1eca6817.js.map → Icon-230aeb46.js.map} +1 -1
  403. package/dist/esm/Input-d311a0b6.js +4 -0
  404. package/dist/esm/Input-d311a0b6.js.map +1 -0
  405. package/dist/esm/InputStateWrapper-de2b63a4.js +4 -0
  406. package/dist/esm/InputStateWrapper-de2b63a4.js.map +1 -0
  407. package/dist/esm/{InternalUnderlinedBadgeText-738f2cd0.js → InternalUnderlinedBadgeText-67c31e1b.js} +1 -1
  408. package/dist/esm/{InternalUnderlinedBadgeText-738f2cd0.js.map → InternalUnderlinedBadgeText-67c31e1b.js.map} +1 -1
  409. package/dist/esm/{Span-a19668ac.js → Span-0b66f853.js} +1 -1
  410. package/dist/esm/{Span-a19668ac.js.map → Span-0b66f853.js.map} +1 -1
  411. package/dist/esm/{access-and-short-key-9cca88b8.js → access-and-short-key-16c1f3d9.js} +1 -1
  412. package/dist/esm/{access-and-short-key-9cca88b8.js.map → access-and-short-key-16c1f3d9.js.map} +1 -1
  413. package/dist/esm/{align-4719d626.js → align-61c6a220.js} +1 -1
  414. package/dist/esm/{align-4719d626.js.map → align-61c6a220.js.map} +1 -1
  415. package/dist/esm/align-floating-elements-7cdb6dc6.js +4 -0
  416. package/dist/esm/align-floating-elements-7cdb6dc6.js.map +1 -0
  417. package/dist/esm/app-globals-29931fdd.js +4 -0
  418. package/dist/esm/{app-globals-6d7eac5a.js.map → app-globals-29931fdd.js.map} +1 -1
  419. package/dist/esm/{associated.controller-52d302aa.js → associated.controller-3b160a7e.js} +1 -1
  420. package/dist/esm/{associated.controller-52d302aa.js.map → associated.controller-3b160a7e.js.map} +1 -1
  421. package/dist/esm/{button-variant-ce5f212b.js → button-variant-a4270d4a.js} +1 -1
  422. package/dist/esm/{button-variant-ce5f212b.js.map → button-variant-a4270d4a.js.map} +1 -1
  423. package/dist/esm/{color-62f7b76a.js → color-c32d99db.js} +1 -1
  424. package/dist/esm/{color-62f7b76a.js.map → color-c32d99db.js.map} +1 -1
  425. package/dist/esm/component-names-60d77143.js +4 -0
  426. package/dist/esm/component-names-60d77143.js.map +1 -0
  427. package/dist/esm/controller-20cae545.js +4 -0
  428. package/dist/esm/controller-20cae545.js.map +1 -0
  429. package/dist/esm/{controller-f84a4671.js → controller-a31f303e.js} +1 -1
  430. package/dist/esm/{controller-f84a4671.js.map → controller-a31f303e.js.map} +1 -1
  431. package/dist/esm/{controller-0953b02a.js → controller-c800edf4.js} +1 -1
  432. package/dist/esm/{controller-0953b02a.js.map → controller-c800edf4.js.map} +1 -1
  433. package/dist/esm/{controller-a26ccfc4.js → controller-ebac5af3.js} +1 -1
  434. package/dist/esm/{controller-a26ccfc4.js.map → controller-ebac5af3.js.map} +1 -1
  435. package/dist/esm/controller-icon-152a378d.js +4 -0
  436. package/dist/esm/controller-icon-152a378d.js.map +1 -0
  437. package/dist/esm/custom-class-c7abcffc.js +4 -0
  438. package/dist/esm/{custom-class-ac49545a.js.map → custom-class-c7abcffc.js.map} +1 -1
  439. package/dist/esm/{dev.utils-f9d0242d.js → dev.utils-63a2f83b.js} +1 -1
  440. package/dist/esm/{dev.utils-f9d0242d.js.map → dev.utils-63a2f83b.js.map} +1 -1
  441. package/dist/esm/{devtools-87a9e4de.js → devtools-46afbd5e.js} +1 -1
  442. package/dist/esm/{devtools-87a9e4de.js.map → devtools-46afbd5e.js.map} +1 -1
  443. package/dist/esm/{disabled-dad7478c.js → disabled-11f5f213.js} +1 -1
  444. package/dist/esm/{disabled-dad7478c.js.map → disabled-11f5f213.js.map} +1 -1
  445. package/dist/esm/{events-5adf6b62.js → events-5886c68b.js} +1 -1
  446. package/dist/esm/events-5886c68b.js.map +1 -0
  447. package/dist/esm/getRenderStates-356fb657.js +4 -0
  448. package/dist/esm/getRenderStates-356fb657.js.map +1 -0
  449. package/dist/esm/{has-closer-a4e62c58.js → has-closer-b582e72a.js} +1 -1
  450. package/dist/esm/{has-closer-a4e62c58.js.map → has-closer-b582e72a.js.map} +1 -1
  451. package/dist/esm/{has-counter-a43c36ef.js → has-counter-0ab5f398.js} +1 -1
  452. package/dist/esm/{has-counter-a43c36ef.js.map → has-counter-0ab5f398.js.map} +1 -1
  453. package/dist/esm/{hide-label-429a15ea.js → hide-label-90b37cc2.js} +1 -1
  454. package/dist/esm/{hide-label-429a15ea.js.map → hide-label-90b37cc2.js.map} +1 -1
  455. package/dist/esm/{href-d8ec67f8.js → href-8bd5e6c9.js} +1 -1
  456. package/dist/esm/{href-d8ec67f8.js.map → href-8bd5e6c9.js.map} +1 -1
  457. package/dist/esm/i18n-45224cc3.js +4 -0
  458. package/dist/esm/i18n-45224cc3.js.map +1 -0
  459. package/dist/esm/{i18n-5fe08f1c.js → i18n-efbafc80.js} +1 -1
  460. package/dist/esm/{i18n-5fe08f1c.js.map → i18n-efbafc80.js.map} +1 -1
  461. package/dist/esm/{icons-199f1746.js → icons-6ec03aa3.js} +1 -1
  462. package/dist/esm/icons-6ec03aa3.js.map +1 -0
  463. package/dist/esm/{image-source-320efd4f.js → image-source-6cc4aef4.js} +1 -1
  464. package/dist/esm/{image-source-320efd4f.js.map → image-source-6cc4aef4.js.map} +1 -1
  465. package/dist/esm/index-6d801dad.js +4 -0
  466. package/dist/esm/index-6d801dad.js.map +1 -0
  467. package/dist/esm/index-99a79ec9.js +4 -0
  468. package/dist/esm/index-99a79ec9.js.map +1 -0
  469. package/dist/esm/index.js +1 -1
  470. package/dist/esm/kol-abbr.entry.js +1 -1
  471. package/dist/esm/kol-abbr.entry.js.map +1 -1
  472. package/dist/esm/kol-accordion.entry.js +1 -1
  473. package/dist/esm/kol-accordion.entry.js.map +1 -1
  474. package/dist/esm/kol-alert-wc.entry.js +1 -1
  475. package/dist/esm/kol-alert.entry.js +1 -1
  476. package/dist/esm/kol-alert.entry.js.map +1 -1
  477. package/dist/esm/kol-avatar-wc.entry.js +1 -1
  478. package/dist/esm/kol-avatar.entry.js +1 -1
  479. package/dist/esm/kol-avatar.entry.js.map +1 -1
  480. package/dist/esm/kol-badge.entry.js +1 -1
  481. package/dist/esm/kol-badge.entry.js.map +1 -1
  482. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  483. package/dist/esm/kol-breadcrumb.entry.js.map +1 -1
  484. package/dist/esm/kol-button-link.entry.js +1 -1
  485. package/dist/esm/kol-button-link.entry.js.map +1 -1
  486. package/dist/esm/kol-button-wc.entry.js +1 -1
  487. package/dist/esm/kol-button.entry.js +1 -1
  488. package/dist/esm/kol-button.entry.js.map +1 -1
  489. package/dist/esm/kol-card.entry.js +1 -1
  490. package/dist/esm/kol-card.entry.js.map +1 -1
  491. package/dist/esm/kol-combobox.entry.js +1 -1
  492. package/dist/esm/kol-combobox.entry.js.map +1 -1
  493. package/dist/esm/kol-details.entry.js +1 -1
  494. package/dist/esm/kol-details.entry.js.map +1 -1
  495. package/dist/esm/kol-drawer.entry.js +1 -1
  496. package/dist/esm/kol-drawer.entry.js.map +1 -1
  497. package/dist/esm/kol-form.entry.js +1 -1
  498. package/dist/esm/kol-form.entry.js.map +1 -1
  499. package/dist/esm/kol-heading.entry.js +1 -1
  500. package/dist/esm/kol-heading.entry.js.map +1 -1
  501. package/dist/esm/kol-icon.entry.js +1 -1
  502. package/dist/esm/kol-icon.entry.js.map +1 -1
  503. package/dist/esm/kol-image.entry.js +1 -1
  504. package/dist/esm/kol-image.entry.js.map +1 -1
  505. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  506. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  507. package/dist/esm/kol-input-color.entry.js +1 -1
  508. package/dist/esm/kol-input-color.entry.js.map +1 -1
  509. package/dist/esm/kol-input-date.entry.js +1 -1
  510. package/dist/esm/kol-input-date.entry.js.map +1 -1
  511. package/dist/esm/kol-input-email.entry.js +1 -1
  512. package/dist/esm/kol-input-email.entry.js.map +1 -1
  513. package/dist/esm/kol-input-file.entry.js +1 -1
  514. package/dist/esm/kol-input-file.entry.js.map +1 -1
  515. package/dist/esm/kol-input-number.entry.js +1 -1
  516. package/dist/esm/kol-input-number.entry.js.map +1 -1
  517. package/dist/esm/kol-input-password.entry.js +1 -1
  518. package/dist/esm/kol-input-password.entry.js.map +1 -1
  519. package/dist/esm/kol-input-radio.entry.js +1 -1
  520. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  521. package/dist/esm/kol-input-range.entry.js +1 -1
  522. package/dist/esm/kol-input-range.entry.js.map +1 -1
  523. package/dist/esm/kol-input-text.entry.js +1 -1
  524. package/dist/esm/kol-input-text.entry.js.map +1 -1
  525. package/dist/esm/kol-kolibri.entry.js +1 -1
  526. package/dist/esm/kol-kolibri.entry.js.map +1 -1
  527. package/dist/esm/kol-link-button.entry.js +1 -1
  528. package/dist/esm/kol-link-button.entry.js.map +1 -1
  529. package/dist/esm/kol-link-wc.entry.js +1 -1
  530. package/dist/esm/kol-link.entry.js +1 -1
  531. package/dist/esm/kol-link.entry.js.map +1 -1
  532. package/dist/esm/kol-modal.entry.js +1 -1
  533. package/dist/esm/kol-modal.entry.js.map +1 -1
  534. package/dist/esm/kol-nav.entry.js +1 -1
  535. package/dist/esm/kol-nav.entry.js.map +1 -1
  536. package/dist/esm/kol-pagination.entry.js +1 -1
  537. package/dist/esm/kol-pagination.entry.js.map +1 -1
  538. package/dist/esm/kol-popover-button-wc.entry.js +4 -0
  539. package/dist/esm/kol-popover-button-wc.entry.js.map +1 -0
  540. package/dist/esm/kol-popover-button.entry.js +1 -1
  541. package/dist/esm/kol-popover-button.entry.js.map +1 -1
  542. package/dist/esm/kol-popover-wc.entry.js +1 -1
  543. package/dist/esm/kol-progress.entry.js +1 -1
  544. package/dist/esm/kol-progress.entry.js.map +1 -1
  545. package/dist/esm/kol-quote.entry.js +1 -1
  546. package/dist/esm/kol-quote.entry.js.map +1 -1
  547. package/dist/esm/kol-select.entry.js +1 -1
  548. package/dist/esm/kol-select.entry.js.map +1 -1
  549. package/dist/esm/kol-single-select.entry.js +1 -1
  550. package/dist/esm/kol-single-select.entry.js.map +1 -1
  551. package/dist/esm/kol-skip-nav.entry.js +1 -1
  552. package/dist/esm/kol-skip-nav.entry.js.map +1 -1
  553. package/dist/esm/kol-spin.entry.js +1 -1
  554. package/dist/esm/kol-spin.entry.js.map +1 -1
  555. package/dist/esm/kol-split-button.entry.js +1 -1
  556. package/dist/esm/kol-split-button.entry.js.map +1 -1
  557. package/dist/esm/kol-table-settings-wc.entry.js +4 -0
  558. package/dist/esm/kol-table-settings-wc.entry.js.map +1 -0
  559. package/dist/esm/kol-table-stateful.entry.js +1 -1
  560. package/dist/esm/kol-table-stateful.entry.js.map +1 -1
  561. package/dist/esm/kol-table-stateless-wc.entry.js +1 -1
  562. package/dist/esm/kol-table-stateless-wc.entry.js.map +1 -1
  563. package/dist/esm/kol-table-stateless.entry.js +1 -1
  564. package/dist/esm/kol-table-stateless.entry.js.map +1 -1
  565. package/dist/esm/kol-tabs.entry.js +1 -1
  566. package/dist/esm/kol-tabs.entry.js.map +1 -1
  567. package/dist/esm/kol-textarea.entry.js +1 -1
  568. package/dist/esm/kol-textarea.entry.js.map +1 -1
  569. package/dist/esm/kol-toast-container.entry.js +1 -1
  570. package/dist/esm/kol-toast-container.entry.js.map +1 -1
  571. package/dist/esm/kol-toolbar.entry.js +1 -1
  572. package/dist/esm/kol-toolbar.entry.js.map +1 -1
  573. package/dist/esm/kol-tooltip-wc.entry.js +1 -1
  574. package/dist/esm/kol-tree-item-wc.entry.js +1 -1
  575. package/dist/esm/kol-tree-item-wc.entry.js.map +1 -1
  576. package/dist/esm/kol-tree-item.entry.js +1 -1
  577. package/dist/esm/kol-tree-item.entry.js.map +1 -1
  578. package/dist/esm/kol-tree-wc.entry.js +1 -1
  579. package/dist/esm/kol-tree-wc.entry.js.map +1 -1
  580. package/dist/esm/kol-tree.entry.js +1 -1
  581. package/dist/esm/kol-tree.entry.js.map +1 -1
  582. package/dist/esm/kol-version.entry.js +1 -1
  583. package/dist/esm/kol-version.entry.js.map +1 -1
  584. package/dist/esm/kolibri.js +1 -1
  585. package/dist/esm/{label-d0315384.js → label-90c13388.js} +1 -1
  586. package/dist/esm/{label-d0315384.js.map → label-90c13388.js.map} +1 -1
  587. package/dist/esm/loader.js +1 -1
  588. package/dist/esm/{open-20d08415.js → open-4d9f16d0.js} +1 -1
  589. package/dist/esm/{open-20d08415.js.map → open-4d9f16d0.js.map} +1 -1
  590. package/dist/esm/prop.validators-17aec743.js +4 -0
  591. package/dist/esm/prop.validators-17aec743.js.map +1 -0
  592. package/dist/esm/reuse-f46e7e35.js +4 -0
  593. package/dist/esm/reuse-f46e7e35.js.map +1 -0
  594. package/dist/esm/{rows-26af6558.js → rows-f033b1b3.js} +1 -1
  595. package/dist/esm/{rows-26af6558.js.map → rows-f033b1b3.js.map} +1 -1
  596. package/dist/esm/show-c115b1eb.js +4 -0
  597. package/dist/esm/{show-484b637e.js.map → show-c115b1eb.js.map} +1 -1
  598. package/dist/esm/spell-check-27a3f91d.js +4 -0
  599. package/dist/esm/{spell-check-60fa0b9f.js.map → spell-check-27a3f91d.js.map} +1 -1
  600. package/dist/esm/{suggestions-f139f5ec.js → suggestions-04da2b2e.js} +1 -1
  601. package/dist/esm/{suggestions-f139f5ec.js.map → suggestions-04da2b2e.js.map} +1 -1
  602. package/dist/esm/{callback-fd6ab619.js → table-settings-d708d477.js} +1 -1
  603. package/dist/esm/table-settings-d708d477.js.map +1 -0
  604. package/dist/esm/test-component.entry.js +1 -1
  605. package/dist/esm/tooltip-align-7d5fdb9e.js +4 -0
  606. package/dist/esm/{tooltip-align-8e0fa436.js.map → tooltip-align-7d5fdb9e.js.map} +1 -1
  607. package/dist/esm/{validation-14b61e5a.js → validation-16bfc143.js} +1 -1
  608. package/dist/esm/{validation-14b61e5a.js.map → validation-16bfc143.js.map} +1 -1
  609. package/dist/esm/{validation-0c197148.js → validation-81a4e752.js} +1 -1
  610. package/dist/esm/{validation-0c197148.js.map → validation-81a4e752.js.map} +1 -1
  611. package/dist/kolibri/Alert-c740d8f3.js +4 -0
  612. package/dist/kolibri/Alert-c740d8f3.js.map +1 -0
  613. package/dist/kolibri/{Collapsible-9dbf3e00.js → Collapsible-a4c63640.js} +1 -1
  614. package/dist/kolibri/CustomSuggestionsOptionsGroup-7481dbd7.js +4 -0
  615. package/dist/kolibri/CustomSuggestionsOptionsGroup-7481dbd7.js.map +1 -0
  616. package/dist/kolibri/FieldControlStateWrapper-9d8d530e.js +4 -0
  617. package/dist/kolibri/FieldControlStateWrapper-9d8d530e.js.map +1 -0
  618. package/dist/kolibri/{Heading-e1db538b.js → Heading-485868a9.js} +1 -1
  619. package/dist/kolibri/Icon-230aeb46.js +4 -0
  620. package/dist/kolibri/Input-d311a0b6.js +4 -0
  621. package/dist/kolibri/Input-d311a0b6.js.map +1 -0
  622. package/dist/kolibri/InputStateWrapper-de2b63a4.js +4 -0
  623. package/dist/kolibri/{InputStateWrapper-3d255d22.js.map → InputStateWrapper-de2b63a4.js.map} +1 -1
  624. package/dist/kolibri/{InternalUnderlinedBadgeText-738f2cd0.js → InternalUnderlinedBadgeText-67c31e1b.js} +1 -1
  625. package/dist/kolibri/{Span-a19668ac.js → Span-0b66f853.js} +1 -1
  626. package/dist/kolibri/{access-and-short-key-9cca88b8.js → access-and-short-key-16c1f3d9.js} +1 -1
  627. package/dist/kolibri/{align-4719d626.js → align-61c6a220.js} +1 -1
  628. package/dist/kolibri/align-floating-elements-7cdb6dc6.js +4 -0
  629. package/dist/kolibri/align-floating-elements-7cdb6dc6.js.map +1 -0
  630. package/dist/kolibri/app-globals-29931fdd.js +4 -0
  631. package/dist/kolibri/{app-globals-6d7eac5a.js.map → app-globals-29931fdd.js.map} +1 -1
  632. package/dist/kolibri/{associated.controller-52d302aa.js → associated.controller-3b160a7e.js} +1 -1
  633. package/dist/kolibri/{button-variant-ce5f212b.js → button-variant-a4270d4a.js} +1 -1
  634. package/dist/kolibri/{color-62f7b76a.js → color-c32d99db.js} +1 -1
  635. package/dist/kolibri/color-c32d99db.js.map +1 -0
  636. package/dist/kolibri/component-names-60d77143.js +4 -0
  637. package/dist/kolibri/component-names-60d77143.js.map +1 -0
  638. package/dist/kolibri/controller-20cae545.js +4 -0
  639. package/dist/kolibri/controller-20cae545.js.map +1 -0
  640. package/dist/kolibri/{controller-f84a4671.js → controller-a31f303e.js} +1 -1
  641. package/dist/kolibri/controller-c800edf4.js +4 -0
  642. package/dist/kolibri/{controller-a26ccfc4.js → controller-ebac5af3.js} +1 -1
  643. package/dist/kolibri/controller-icon-152a378d.js +4 -0
  644. package/dist/kolibri/controller-icon-152a378d.js.map +1 -0
  645. package/dist/kolibri/custom-class-c7abcffc.js +4 -0
  646. package/dist/kolibri/{dev.utils-f9d0242d.js → dev.utils-63a2f83b.js} +1 -1
  647. package/dist/kolibri/devtools-46afbd5e.js +4 -0
  648. package/dist/kolibri/{disabled-dad7478c.js → disabled-11f5f213.js} +1 -1
  649. package/dist/kolibri/events-5886c68b.js +4 -0
  650. package/dist/kolibri/events-5886c68b.js.map +1 -0
  651. package/dist/kolibri/getRenderStates-356fb657.js +4 -0
  652. package/dist/kolibri/getRenderStates-356fb657.js.map +1 -0
  653. package/dist/kolibri/has-closer-b582e72a.js +4 -0
  654. package/dist/kolibri/has-counter-0ab5f398.js +4 -0
  655. package/dist/kolibri/hide-label-90b37cc2.js +4 -0
  656. package/dist/kolibri/href-8bd5e6c9.js +4 -0
  657. package/dist/kolibri/i18n-45224cc3.js +4 -0
  658. package/dist/kolibri/i18n-45224cc3.js.map +1 -0
  659. package/dist/kolibri/i18n-efbafc80.js +4 -0
  660. package/dist/kolibri/icons-6ec03aa3.js +4 -0
  661. package/dist/kolibri/icons-6ec03aa3.js.map +1 -0
  662. package/dist/kolibri/image-source-6cc4aef4.js +4 -0
  663. package/dist/kolibri/{index-da3e0c00.js → index-6d801dad.js} +1 -1
  664. package/dist/kolibri/index-6d801dad.js.map +1 -0
  665. package/dist/kolibri/{index-06658c3d.js → index-99a79ec9.js} +2 -2
  666. package/dist/kolibri/index-99a79ec9.js.map +1 -0
  667. package/dist/kolibri/index.esm.js +1 -1
  668. package/dist/kolibri/kol-abbr.entry.js +1 -1
  669. package/dist/kolibri/kol-abbr.entry.js.map +1 -1
  670. package/dist/kolibri/kol-accordion.entry.js +1 -1
  671. package/dist/kolibri/kol-accordion.entry.js.map +1 -1
  672. package/dist/kolibri/kol-alert-wc.entry.js +1 -1
  673. package/dist/kolibri/kol-alert-wc.entry.js.map +1 -1
  674. package/dist/kolibri/kol-alert.entry.js +1 -1
  675. package/dist/kolibri/kol-alert.entry.js.map +1 -1
  676. package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
  677. package/dist/kolibri/kol-avatar.entry.js +1 -1
  678. package/dist/kolibri/kol-avatar.entry.js.map +1 -1
  679. package/dist/kolibri/kol-badge.entry.js +1 -1
  680. package/dist/kolibri/kol-badge.entry.js.map +1 -1
  681. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  682. package/dist/kolibri/kol-breadcrumb.entry.js.map +1 -1
  683. package/dist/kolibri/kol-button-link.entry.js +1 -1
  684. package/dist/kolibri/kol-button-link.entry.js.map +1 -1
  685. package/dist/kolibri/kol-button-wc.entry.js +1 -1
  686. package/dist/kolibri/kol-button.entry.js +1 -1
  687. package/dist/kolibri/kol-button.entry.js.map +1 -1
  688. package/dist/kolibri/kol-card.entry.js +1 -1
  689. package/dist/kolibri/kol-card.entry.js.map +1 -1
  690. package/dist/kolibri/kol-combobox.entry.js +1 -1
  691. package/dist/kolibri/kol-combobox.entry.js.map +1 -1
  692. package/dist/kolibri/kol-details.entry.js +1 -1
  693. package/dist/kolibri/kol-details.entry.js.map +1 -1
  694. package/dist/kolibri/kol-drawer.entry.js +1 -1
  695. package/dist/kolibri/kol-drawer.entry.js.map +1 -1
  696. package/dist/kolibri/kol-form.entry.js +1 -1
  697. package/dist/kolibri/kol-form.entry.js.map +1 -1
  698. package/dist/kolibri/kol-heading.entry.js +1 -1
  699. package/dist/kolibri/kol-heading.entry.js.map +1 -1
  700. package/dist/kolibri/kol-icon.entry.js +1 -1
  701. package/dist/kolibri/kol-icon.entry.js.map +1 -1
  702. package/dist/kolibri/kol-image.entry.js +1 -1
  703. package/dist/kolibri/kol-image.entry.js.map +1 -1
  704. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  705. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  706. package/dist/kolibri/kol-input-color.entry.js +1 -1
  707. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  708. package/dist/kolibri/kol-input-date.entry.js +1 -1
  709. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  710. package/dist/kolibri/kol-input-email.entry.js +1 -1
  711. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  712. package/dist/kolibri/kol-input-file.entry.js +1 -1
  713. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  714. package/dist/kolibri/kol-input-number.entry.js +1 -1
  715. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  716. package/dist/kolibri/kol-input-password.entry.js +1 -1
  717. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  718. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  719. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  720. package/dist/kolibri/kol-input-range.entry.js +1 -1
  721. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  722. package/dist/kolibri/kol-input-text.entry.js +1 -1
  723. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  724. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  725. package/dist/kolibri/kol-kolibri.entry.js.map +1 -1
  726. package/dist/kolibri/kol-link-button.entry.js +1 -1
  727. package/dist/kolibri/kol-link-button.entry.js.map +1 -1
  728. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  729. package/dist/kolibri/kol-link-wc.entry.js.map +1 -1
  730. package/dist/kolibri/kol-link.entry.js +1 -1
  731. package/dist/kolibri/kol-link.entry.js.map +1 -1
  732. package/dist/kolibri/kol-modal.entry.js +1 -1
  733. package/dist/kolibri/kol-modal.entry.js.map +1 -1
  734. package/dist/kolibri/kol-nav.entry.js +1 -1
  735. package/dist/kolibri/kol-nav.entry.js.map +1 -1
  736. package/dist/kolibri/kol-pagination.entry.js +1 -1
  737. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  738. package/dist/kolibri/kol-popover-button-wc.entry.js +4 -0
  739. package/dist/kolibri/kol-popover-button-wc.entry.js.map +1 -0
  740. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  741. package/dist/kolibri/kol-popover-button.entry.js.map +1 -1
  742. package/dist/kolibri/kol-popover-wc.entry.js +1 -1
  743. package/dist/kolibri/kol-progress.entry.js +1 -1
  744. package/dist/kolibri/kol-progress.entry.js.map +1 -1
  745. package/dist/kolibri/kol-quote.entry.js +1 -1
  746. package/dist/kolibri/kol-quote.entry.js.map +1 -1
  747. package/dist/kolibri/kol-select.entry.js +1 -1
  748. package/dist/kolibri/kol-select.entry.js.map +1 -1
  749. package/dist/kolibri/kol-single-select.entry.js +1 -1
  750. package/dist/kolibri/kol-single-select.entry.js.map +1 -1
  751. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  752. package/dist/kolibri/kol-skip-nav.entry.js.map +1 -1
  753. package/dist/kolibri/kol-spin.entry.js +1 -1
  754. package/dist/kolibri/kol-spin.entry.js.map +1 -1
  755. package/dist/kolibri/kol-split-button.entry.js +1 -1
  756. package/dist/kolibri/kol-split-button.entry.js.map +1 -1
  757. package/dist/kolibri/kol-table-settings-wc.entry.js +4 -0
  758. package/dist/kolibri/kol-table-settings-wc.entry.js.map +1 -0
  759. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  760. package/dist/kolibri/kol-table-stateful.entry.js.map +1 -1
  761. package/dist/kolibri/kol-table-stateless-wc.entry.js +1 -1
  762. package/dist/kolibri/kol-table-stateless-wc.entry.js.map +1 -1
  763. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  764. package/dist/kolibri/kol-table-stateless.entry.js.map +1 -1
  765. package/dist/kolibri/kol-tabs.entry.js +1 -1
  766. package/dist/kolibri/kol-tabs.entry.js.map +1 -1
  767. package/dist/kolibri/kol-textarea.entry.js +1 -1
  768. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  769. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  770. package/dist/kolibri/kol-toast-container.entry.js.map +1 -1
  771. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  772. package/dist/kolibri/kol-toolbar.entry.js.map +1 -1
  773. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  774. package/dist/kolibri/kol-tree-item-wc.entry.js +1 -1
  775. package/dist/kolibri/kol-tree-item-wc.entry.js.map +1 -1
  776. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  777. package/dist/kolibri/kol-tree-item.entry.js.map +1 -1
  778. package/dist/kolibri/kol-tree-wc.entry.js +1 -1
  779. package/dist/kolibri/kol-tree-wc.entry.js.map +1 -1
  780. package/dist/kolibri/kol-tree.entry.js +1 -1
  781. package/dist/kolibri/kol-tree.entry.js.map +1 -1
  782. package/dist/kolibri/kol-version.entry.js +1 -1
  783. package/dist/kolibri/kol-version.entry.js.map +1 -1
  784. package/dist/kolibri/kolibri.esm.js +1 -1
  785. package/dist/kolibri/kolibri.esm.js.map +1 -1
  786. package/dist/kolibri/label-90c13388.js +4 -0
  787. package/dist/kolibri/open-4d9f16d0.js +4 -0
  788. package/dist/kolibri/prop.validators-17aec743.js +4 -0
  789. package/dist/kolibri/prop.validators-17aec743.js.map +1 -0
  790. package/dist/kolibri/reuse-f46e7e35.js +4 -0
  791. package/dist/kolibri/reuse-f46e7e35.js.map +1 -0
  792. package/dist/kolibri/rows-f033b1b3.js +4 -0
  793. package/dist/kolibri/show-c115b1eb.js +4 -0
  794. package/dist/kolibri/spell-check-27a3f91d.js +4 -0
  795. package/dist/kolibri/{suggestions-f139f5ec.js → suggestions-04da2b2e.js} +1 -1
  796. package/dist/kolibri/{callback-fd6ab619.js → table-settings-d708d477.js} +1 -1
  797. package/dist/kolibri/table-settings-d708d477.js.map +1 -0
  798. package/dist/kolibri/test-component.entry.js +1 -1
  799. package/dist/kolibri/tooltip-align-7d5fdb9e.js +4 -0
  800. package/dist/kolibri/validation-16bfc143.js +4 -0
  801. package/dist/kolibri/validation-81a4e752.js +4 -0
  802. package/dist/types/components/@deprecated/input/controller-icon.d.ts +2 -2
  803. package/dist/types/components/@deprecated/input/types-icon.d.ts +2 -4
  804. package/dist/types/components/button/shadow.d.ts +0 -1
  805. package/dist/types/components/button-link/shadow.d.ts +0 -1
  806. package/dist/types/components/combobox/shadow.d.ts +4 -5
  807. package/dist/types/components/component-list.d.ts +2 -2
  808. package/dist/types/components/input/controller.d.ts +1 -1
  809. package/dist/types/components/input/types.d.ts +2 -3
  810. package/dist/types/components/input-checkbox/shadow.d.ts +0 -2
  811. package/dist/types/components/input-color/shadow.d.ts +13 -8
  812. package/dist/types/components/input-date/shadow.d.ts +3 -5
  813. package/dist/types/components/input-email/shadow.d.ts +3 -5
  814. package/dist/types/components/input-file/shadow.d.ts +8 -5
  815. package/dist/types/components/input-number/shadow.d.ts +3 -5
  816. package/dist/types/components/input-password/shadow.d.ts +3 -5
  817. package/dist/types/components/input-radio/controller.d.ts +1 -1
  818. package/dist/types/components/input-radio/shadow.d.ts +0 -2
  819. package/dist/types/components/input-range/shadow.d.ts +3 -5
  820. package/dist/types/components/input-text/shadow.d.ts +3 -5
  821. package/dist/types/components/link/shadow.d.ts +0 -1
  822. package/dist/types/components/link-button/shadow.d.ts +0 -1
  823. package/dist/types/components/popover-button/component.d.ts +40 -0
  824. package/dist/types/components/popover-button/shadow.d.ts +3 -12
  825. package/dist/types/components/progress/shadow.d.ts +1 -1
  826. package/dist/types/components/select/shadow.d.ts +4 -4
  827. package/dist/types/components/single-select/controller.d.ts +3 -2
  828. package/dist/types/components/single-select/shadow.d.ts +9 -8
  829. package/dist/types/components/split-button/shadow.d.ts +0 -1
  830. package/dist/types/components/table-stateful/shadow.d.ts +3 -0
  831. package/dist/types/components/table-stateless/component.d.ts +15 -1
  832. package/dist/types/components/table-stateless/shadow.d.ts +2 -0
  833. package/dist/types/components/table-stateless/table-settings.d.ts +18 -0
  834. package/dist/types/components/tabs/shadow.d.ts +2 -1
  835. package/dist/types/components/textarea/shadow.d.ts +3 -5
  836. package/dist/types/components.d.ts +275 -369
  837. package/dist/types/core/component-names.d.ts +2 -0
  838. package/dist/types/functional-components/IconButton/IconButton.d.ts +1 -1
  839. package/dist/types/locales/de.d.ts +12 -0
  840. package/dist/types/locales/en.d.ts +12 -0
  841. package/dist/types/schema/components/combobox.d.ts +4 -8
  842. package/dist/types/schema/components/input-checkbox.d.ts +0 -2
  843. package/dist/types/schema/components/input-color.d.ts +4 -8
  844. package/dist/types/schema/components/input-date.d.ts +3 -5
  845. package/dist/types/schema/components/input-email.d.ts +4 -8
  846. package/dist/types/schema/components/input-file.d.ts +4 -8
  847. package/dist/types/schema/components/input-number.d.ts +3 -5
  848. package/dist/types/schema/components/input-password.d.ts +5 -9
  849. package/dist/types/schema/components/input-radio.d.ts +0 -2
  850. package/dist/types/schema/components/input-range.d.ts +4 -8
  851. package/dist/types/schema/components/input-text.d.ts +4 -8
  852. package/dist/types/schema/components/input.d.ts +2 -3
  853. package/dist/types/schema/components/select.d.ts +5 -7
  854. package/dist/types/schema/components/single-select.d.ts +7 -9
  855. package/dist/types/schema/components/table.d.ts +3 -2
  856. package/dist/types/schema/components/tableStateless.d.ts +3 -2
  857. package/dist/types/schema/components/textarea.d.ts +4 -8
  858. package/dist/types/schema/interfaces/EventDetail.d.ts +4 -0
  859. package/dist/types/schema/props/icons.d.ts +5 -1
  860. package/dist/types/schema/props/msg.d.ts +1 -2
  861. package/dist/types/schema/props/table-settings.d.ts +7 -0
  862. package/dist/types/schema/types/icons.d.ts +4 -0
  863. package/dist/types/schema/types/index.d.ts +1 -1
  864. package/dist/types/schema/types/input/control/number.d.ts +2 -4
  865. package/dist/types/schema/types/table-settings.d.ts +10 -0
  866. package/dist/types/schema/types/table.d.ts +1 -0
  867. package/dist/types/schema/utils/prop.validators.d.ts +0 -2
  868. package/dist/types/utils/events.d.ts +2 -1
  869. package/doc/button-link.md +0 -1
  870. package/doc/button.md +0 -1
  871. package/doc/combobox.md +0 -1
  872. package/doc/input-checkbox.md +0 -1
  873. package/doc/input-color.md +0 -1
  874. package/doc/input-date.md +0 -1
  875. package/doc/input-email.md +0 -1
  876. package/doc/input-file.md +0 -1
  877. package/doc/input-number.md +0 -1
  878. package/doc/input-password.md +0 -1
  879. package/doc/input-radio.md +0 -1
  880. package/doc/input-range.md +0 -1
  881. package/doc/input-text.md +0 -1
  882. package/doc/link-button.md +0 -1
  883. package/doc/link.md +0 -1
  884. package/doc/popover-button.md +14 -1
  885. package/doc/select.md +22 -22
  886. package/doc/single-select.md +23 -23
  887. package/doc/split-button.md +0 -1
  888. package/doc/table-stateful.md +2 -1
  889. package/doc/table-stateless.md +10 -9
  890. package/doc/textarea.md +1 -2
  891. package/package.json +3 -3
  892. package/vscode-custom-data.json +173 -72
  893. package/dist/cjs/Alert-e499a0f5.js +0 -4
  894. package/dist/cjs/Alert-e499a0f5.js.map +0 -1
  895. package/dist/cjs/Collapsible-86925548.js +0 -4
  896. package/dist/cjs/CustomSuggestionsOptionsGroup-a8f57231.js +0 -4
  897. package/dist/cjs/CustomSuggestionsOptionsGroup-a8f57231.js.map +0 -1
  898. package/dist/cjs/FieldControlStateWrapper-24628eb1.js +0 -4
  899. package/dist/cjs/FieldControlStateWrapper-24628eb1.js.map +0 -1
  900. package/dist/cjs/FormFieldMsg-4224a47c.js +0 -4
  901. package/dist/cjs/FormFieldMsg-4224a47c.js.map +0 -1
  902. package/dist/cjs/Icon-7f43100b.js +0 -4
  903. package/dist/cjs/Input-1dcec29c.js +0 -4
  904. package/dist/cjs/Input-1dcec29c.js.map +0 -1
  905. package/dist/cjs/InputStateWrapper-5951abef.js +0 -4
  906. package/dist/cjs/InputStateWrapper-5951abef.js.map +0 -1
  907. package/dist/cjs/align-floating-elements-1d37261b.js +0 -4
  908. package/dist/cjs/align-floating-elements-1d37261b.js.map +0 -1
  909. package/dist/cjs/app-globals-702172ad.js +0 -4
  910. package/dist/cjs/callback-ab215ba6.js.map +0 -1
  911. package/dist/cjs/component-names-74abfa2e.js +0 -4
  912. package/dist/cjs/component-names-74abfa2e.js.map +0 -1
  913. package/dist/cjs/controller-44df52af.js +0 -4
  914. package/dist/cjs/controller-icon-0f569061.js +0 -4
  915. package/dist/cjs/controller-icon-0f569061.js.map +0 -1
  916. package/dist/cjs/custom-class-3a1c18f3.js +0 -4
  917. package/dist/cjs/events-fc641593.js.map +0 -1
  918. package/dist/cjs/getRenderStates-bea5d834.js +0 -4
  919. package/dist/cjs/getRenderStates-bea5d834.js.map +0 -1
  920. package/dist/cjs/has-closer-9b3c14a7.js +0 -4
  921. package/dist/cjs/has-counter-7318f6f4.js +0 -4
  922. package/dist/cjs/hide-label-b0063224.js +0 -4
  923. package/dist/cjs/href-2485cb51.js +0 -4
  924. package/dist/cjs/i18n-737701e2.js +0 -4
  925. package/dist/cjs/i18n-737701e2.js.map +0 -1
  926. package/dist/cjs/icons-310a07cc.js.map +0 -1
  927. package/dist/cjs/image-source-27335383.js +0 -4
  928. package/dist/cjs/index-38f5f0b2.js +0 -4
  929. package/dist/cjs/index-38f5f0b2.js.map +0 -1
  930. package/dist/cjs/index-f2f390fa.js +0 -4
  931. package/dist/cjs/index-f2f390fa.js.map +0 -1
  932. package/dist/cjs/kol-input.cjs.entry.js +0 -4
  933. package/dist/cjs/kol-input.cjs.entry.js.map +0 -1
  934. package/dist/cjs/open-5c1af49f.js +0 -4
  935. package/dist/cjs/prop.validators-96dfedce.js.map +0 -1
  936. package/dist/cjs/reuse-8cfefa9b.js +0 -4
  937. package/dist/cjs/reuse-8cfefa9b.js.map +0 -1
  938. package/dist/cjs/rows-782313b6.js +0 -4
  939. package/dist/cjs/show-5b2be58e.js +0 -4
  940. package/dist/cjs/spell-check-5c5eee25.js +0 -4
  941. package/dist/cjs/tooltip-align-3b9a6bde.js +0 -4
  942. package/dist/components/FormFieldMsg.js +0 -4
  943. package/dist/components/FormFieldMsg.js.map +0 -1
  944. package/dist/components/callback.js.map +0 -1
  945. package/dist/components/kol-input.js +0 -4
  946. package/dist/components/kol-input.js.map +0 -1
  947. package/dist/esm/Alert-ee7dcaa7.js +0 -4
  948. package/dist/esm/Alert-ee7dcaa7.js.map +0 -1
  949. package/dist/esm/CustomSuggestionsOptionsGroup-15302af4.js +0 -4
  950. package/dist/esm/CustomSuggestionsOptionsGroup-15302af4.js.map +0 -1
  951. package/dist/esm/FieldControlStateWrapper-a5049927.js +0 -4
  952. package/dist/esm/FieldControlStateWrapper-a5049927.js.map +0 -1
  953. package/dist/esm/FormFieldMsg-f1c6a975.js +0 -4
  954. package/dist/esm/FormFieldMsg-f1c6a975.js.map +0 -1
  955. package/dist/esm/Input-cc85529a.js +0 -4
  956. package/dist/esm/Input-cc85529a.js.map +0 -1
  957. package/dist/esm/InputStateWrapper-3d255d22.js +0 -4
  958. package/dist/esm/InputStateWrapper-3d255d22.js.map +0 -1
  959. package/dist/esm/align-floating-elements-db77d917.js +0 -4
  960. package/dist/esm/align-floating-elements-db77d917.js.map +0 -1
  961. package/dist/esm/app-globals-6d7eac5a.js +0 -4
  962. package/dist/esm/callback-fd6ab619.js.map +0 -1
  963. package/dist/esm/component-names-545d6582.js +0 -4
  964. package/dist/esm/component-names-545d6582.js.map +0 -1
  965. package/dist/esm/controller-2be0e2ad.js +0 -4
  966. package/dist/esm/controller-2be0e2ad.js.map +0 -1
  967. package/dist/esm/controller-icon-b0799db4.js +0 -4
  968. package/dist/esm/controller-icon-b0799db4.js.map +0 -1
  969. package/dist/esm/custom-class-ac49545a.js +0 -4
  970. package/dist/esm/events-5adf6b62.js.map +0 -1
  971. package/dist/esm/getRenderStates-8b6bedc5.js +0 -4
  972. package/dist/esm/getRenderStates-8b6bedc5.js.map +0 -1
  973. package/dist/esm/i18n-7ea9f137.js +0 -4
  974. package/dist/esm/i18n-7ea9f137.js.map +0 -1
  975. package/dist/esm/icons-199f1746.js.map +0 -1
  976. package/dist/esm/index-06658c3d.js +0 -4
  977. package/dist/esm/index-06658c3d.js.map +0 -1
  978. package/dist/esm/index-da3e0c00.js +0 -4
  979. package/dist/esm/index-da3e0c00.js.map +0 -1
  980. package/dist/esm/kol-input.entry.js +0 -4
  981. package/dist/esm/kol-input.entry.js.map +0 -1
  982. package/dist/esm/prop.validators-9feb1d92.js +0 -4
  983. package/dist/esm/prop.validators-9feb1d92.js.map +0 -1
  984. package/dist/esm/reuse-32931294.js +0 -4
  985. package/dist/esm/reuse-32931294.js.map +0 -1
  986. package/dist/esm/show-484b637e.js +0 -4
  987. package/dist/esm/spell-check-60fa0b9f.js +0 -4
  988. package/dist/esm/tooltip-align-8e0fa436.js +0 -4
  989. package/dist/kolibri/Alert-ee7dcaa7.js +0 -4
  990. package/dist/kolibri/Alert-ee7dcaa7.js.map +0 -1
  991. package/dist/kolibri/CustomSuggestionsOptionsGroup-15302af4.js +0 -4
  992. package/dist/kolibri/CustomSuggestionsOptionsGroup-15302af4.js.map +0 -1
  993. package/dist/kolibri/FieldControlStateWrapper-a5049927.js +0 -4
  994. package/dist/kolibri/FieldControlStateWrapper-a5049927.js.map +0 -1
  995. package/dist/kolibri/FormFieldMsg-f1c6a975.js +0 -4
  996. package/dist/kolibri/FormFieldMsg-f1c6a975.js.map +0 -1
  997. package/dist/kolibri/Icon-1eca6817.js +0 -4
  998. package/dist/kolibri/Input-cc85529a.js +0 -4
  999. package/dist/kolibri/Input-cc85529a.js.map +0 -1
  1000. package/dist/kolibri/InputStateWrapper-3d255d22.js +0 -4
  1001. package/dist/kolibri/align-floating-elements-db77d917.js +0 -4
  1002. package/dist/kolibri/align-floating-elements-db77d917.js.map +0 -1
  1003. package/dist/kolibri/app-globals-6d7eac5a.js +0 -4
  1004. package/dist/kolibri/callback-fd6ab619.js.map +0 -1
  1005. package/dist/kolibri/color-62f7b76a.js.map +0 -1
  1006. package/dist/kolibri/component-names-545d6582.js +0 -4
  1007. package/dist/kolibri/component-names-545d6582.js.map +0 -1
  1008. package/dist/kolibri/controller-0953b02a.js +0 -4
  1009. package/dist/kolibri/controller-2be0e2ad.js +0 -4
  1010. package/dist/kolibri/controller-2be0e2ad.js.map +0 -1
  1011. package/dist/kolibri/controller-icon-b0799db4.js +0 -4
  1012. package/dist/kolibri/controller-icon-b0799db4.js.map +0 -1
  1013. package/dist/kolibri/custom-class-ac49545a.js +0 -4
  1014. package/dist/kolibri/devtools-87a9e4de.js +0 -4
  1015. package/dist/kolibri/events-5adf6b62.js +0 -4
  1016. package/dist/kolibri/events-5adf6b62.js.map +0 -1
  1017. package/dist/kolibri/getRenderStates-8b6bedc5.js +0 -4
  1018. package/dist/kolibri/getRenderStates-8b6bedc5.js.map +0 -1
  1019. package/dist/kolibri/has-closer-a4e62c58.js +0 -4
  1020. package/dist/kolibri/has-counter-a43c36ef.js +0 -4
  1021. package/dist/kolibri/hide-label-429a15ea.js +0 -4
  1022. package/dist/kolibri/href-d8ec67f8.js +0 -4
  1023. package/dist/kolibri/i18n-5fe08f1c.js +0 -4
  1024. package/dist/kolibri/i18n-7ea9f137.js +0 -4
  1025. package/dist/kolibri/i18n-7ea9f137.js.map +0 -1
  1026. package/dist/kolibri/icons-199f1746.js +0 -4
  1027. package/dist/kolibri/icons-199f1746.js.map +0 -1
  1028. package/dist/kolibri/image-source-320efd4f.js +0 -4
  1029. package/dist/kolibri/index-06658c3d.js.map +0 -1
  1030. package/dist/kolibri/index-da3e0c00.js.map +0 -1
  1031. package/dist/kolibri/kol-input.entry.js +0 -4
  1032. package/dist/kolibri/kol-input.entry.js.map +0 -1
  1033. package/dist/kolibri/label-d0315384.js +0 -4
  1034. package/dist/kolibri/open-20d08415.js +0 -4
  1035. package/dist/kolibri/prop.validators-9feb1d92.js +0 -4
  1036. package/dist/kolibri/prop.validators-9feb1d92.js.map +0 -1
  1037. package/dist/kolibri/reuse-32931294.js +0 -4
  1038. package/dist/kolibri/reuse-32931294.js.map +0 -1
  1039. package/dist/kolibri/rows-26af6558.js +0 -4
  1040. package/dist/kolibri/show-484b637e.js +0 -4
  1041. package/dist/kolibri/spell-check-60fa0b9f.js +0 -4
  1042. package/dist/kolibri/tooltip-align-8e0fa436.js +0 -4
  1043. package/dist/kolibri/validation-0c197148.js +0 -4
  1044. package/dist/kolibri/validation-14b61e5a.js +0 -4
  1045. package/dist/types/components/input/component.d.ts +0 -35
  1046. /package/dist/kolibri/{Collapsible-9dbf3e00.js.map → Collapsible-a4c63640.js.map} +0 -0
  1047. /package/dist/kolibri/{Heading-e1db538b.js.map → Heading-485868a9.js.map} +0 -0
  1048. /package/dist/kolibri/{Icon-1eca6817.js.map → Icon-230aeb46.js.map} +0 -0
  1049. /package/dist/kolibri/{InternalUnderlinedBadgeText-738f2cd0.js.map → InternalUnderlinedBadgeText-67c31e1b.js.map} +0 -0
  1050. /package/dist/kolibri/{Span-a19668ac.js.map → Span-0b66f853.js.map} +0 -0
  1051. /package/dist/kolibri/{access-and-short-key-9cca88b8.js.map → access-and-short-key-16c1f3d9.js.map} +0 -0
  1052. /package/dist/kolibri/{align-4719d626.js.map → align-61c6a220.js.map} +0 -0
  1053. /package/dist/kolibri/{associated.controller-52d302aa.js.map → associated.controller-3b160a7e.js.map} +0 -0
  1054. /package/dist/kolibri/{button-variant-ce5f212b.js.map → button-variant-a4270d4a.js.map} +0 -0
  1055. /package/dist/kolibri/{controller-f84a4671.js.map → controller-a31f303e.js.map} +0 -0
  1056. /package/dist/kolibri/{controller-0953b02a.js.map → controller-c800edf4.js.map} +0 -0
  1057. /package/dist/kolibri/{controller-a26ccfc4.js.map → controller-ebac5af3.js.map} +0 -0
  1058. /package/dist/kolibri/{custom-class-ac49545a.js.map → custom-class-c7abcffc.js.map} +0 -0
  1059. /package/dist/kolibri/{dev.utils-f9d0242d.js.map → dev.utils-63a2f83b.js.map} +0 -0
  1060. /package/dist/kolibri/{devtools-87a9e4de.js.map → devtools-46afbd5e.js.map} +0 -0
  1061. /package/dist/kolibri/{disabled-dad7478c.js.map → disabled-11f5f213.js.map} +0 -0
  1062. /package/dist/kolibri/{has-closer-a4e62c58.js.map → has-closer-b582e72a.js.map} +0 -0
  1063. /package/dist/kolibri/{has-counter-a43c36ef.js.map → has-counter-0ab5f398.js.map} +0 -0
  1064. /package/dist/kolibri/{hide-label-429a15ea.js.map → hide-label-90b37cc2.js.map} +0 -0
  1065. /package/dist/kolibri/{href-d8ec67f8.js.map → href-8bd5e6c9.js.map} +0 -0
  1066. /package/dist/kolibri/{i18n-5fe08f1c.js.map → i18n-efbafc80.js.map} +0 -0
  1067. /package/dist/kolibri/{image-source-320efd4f.js.map → image-source-6cc4aef4.js.map} +0 -0
  1068. /package/dist/kolibri/{label-d0315384.js.map → label-90c13388.js.map} +0 -0
  1069. /package/dist/kolibri/{open-20d08415.js.map → open-4d9f16d0.js.map} +0 -0
  1070. /package/dist/kolibri/{rows-26af6558.js.map → rows-f033b1b3.js.map} +0 -0
  1071. /package/dist/kolibri/{show-484b637e.js.map → show-c115b1eb.js.map} +0 -0
  1072. /package/dist/kolibri/{spell-check-60fa0b9f.js.map → spell-check-27a3f91d.js.map} +0 -0
  1073. /package/dist/kolibri/{suggestions-f139f5ec.js.map → suggestions-04da2b2e.js.map} +0 -0
  1074. /package/dist/kolibri/{tooltip-align-8e0fa436.js.map → tooltip-align-7d5fdb9e.js.map} +0 -0
  1075. /package/dist/kolibri/{validation-14b61e5a.js.map → validation-16bfc143.js.map} +0 -0
  1076. /package/dist/kolibri/{validation-0c197148.js.map → validation-81a4e752.js.map} +0 -0
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as e,h as t,F as i,g as l}from"./index-06658c3d.js";import{c as o}from"./clsx-09a06a12.js";import{d as s,g as a,a as n}from"./component-names-545d6582.js";import{t as r}from"./i18n-5fe08f1c.js";import{t as d,o as c,p as h,w as f}from"./prop.validators-9feb1d92.js";import{n as b}from"./dev.utils-f9d0242d.js";import{d as u,K as _}from"./events-5adf6b62.js";import{v as p,a as v,d as k,b as y,C as m}from"./callback-fd6ab619.js";import{v as w}from"./label-d0315384.js";import"./i18n-7ea9f137.js";import"./reuse-32931294.js";import"./index-da3e0c00.js";import"./dev.utils-fab45cbc.js";import"./common-54bf85ba.js";const g=(e,t)=>{d(t,(()=>{c(t,(()=>{try{t=h(t)}catch(e){}f(e,"_headerCells",(e=>"object"==typeof e&&null!==e&&(void 0===e.horizontal||Array.isArray(e.horizontal)&&void 0===e.horizontal.find((e=>!Array.isArray(e))))&&(void 0===e.vertical||Array.isArray(e.vertical)&&void 0===e.vertical.find((e=>!Array.isArray(e))))&&!0),new Set(["TableHeaderCellsPropType"]),t)}))}))},j=/^\d+(\.\d+)?([a-z]+|%)?$/,S=(e,t,l)=>{f(e,"_minWidth",(e=>"string"==typeof e&&j.test(e)),new Set(["String","/^\\d+(\\.\\d+)?([a-z]+|%)?$/"]),t,l)},$=class{constructor(l){e(this,l),this.horizontal=!0,this.cellsToRenderTimeouts=new Map,this.dataToKeyMap=new Map,this.checkboxRefs=[],this.renderTableRow=(e,l,a,i=!1)=>{var s,r;let n=String(l);return this.horizontal&&(null===(s=e[0])||void 0===s?void 0:s.data)&&(n=null!==(r=this.getDataKey(e[0].data))&&void 0!==r?r:n),t("tr",{class:o("kol-table__row",{"kol-table__row--body":!i,"kol-table__row--footer":i}),key:`row-${n}`},this.renderSelectionCell(e,l),e.map(((e,t)=>this.renderTableCell(e,l,t,a))))},this.renderTableCell=(e,l,a,i)=>{let s=`${l}-${a}-${e.label}`;if(e.data){const t=this.getDataKey(e.data);s=t?`${t}-${this.horizontal?a:l}`:s}return e.headerCell?this.renderHeadingCell(e,l,a,i):t("td",{key:`cell-${s}`,class:o("kol-table__cell kol-table__cell--body",{[`kol-table__cell--align-${e.textAlign}`]:e.textAlign}),colSpan:e.colSpan,rowSpan:e.rowSpan,style:{textAlign:e.textAlign,width:e.width},ref:"function"==typeof e.render?t=>{this.cellRender(e,t)}:void 0},"function"!=typeof e.render?e.label:"")},this.state={_data:[],_headerCells:{horizontal:[],vertical:[]},_label:"",_minWidth:"auto"},this.tableDivElementHasScrollbar=!1,this._data=void 0,this._dataFoot=void 0,this._headerCells=void 0,this._label=void 0,this._minWidth=void 0,this._on=void 0,this._selection=void 0}validateData(e){p(this,e,{beforePatch:e=>{this.updateDataToKeyMap(e)}})}validateDataFoot(e){v(this,e)}validateHeaderCells(e){g(this,e)}validateLabel(e){w(this,e,{required:!0})}validateMinWidth(e){S(this,e)}validateOn(e){k(this,e)}validateSelection(e){y(this,e)}handleKeyDown(e){var t;if("ArrowUp"===e.key||"ArrowDown"===e.key){const l=null===(t=this.tableDivElement)||void 0===t?void 0:t.querySelector(":focus");let a=this.checkboxRefs.indexOf(l);a>-1&&(e.preventDefault(),"ArrowDown"===e.key?(a=(a+1)%this.checkboxRefs.length,this.checkboxRefs[a].focus()):"ArrowUp"===e.key&&(e.preventDefault(),a=(a+this.checkboxRefs.length-1)%this.checkboxRefs.length,this.checkboxRefs[a].focus()))}}componentDidRender(){this.checkDivElementScrollbar()}componentDidLoad(){this.tableDivElement&&ResizeObserver&&(this.tableDivElementResizeObserver=new ResizeObserver(this.checkDivElementScrollbar.bind(this)),this.tableDivElementResizeObserver.observe(this.tableDivElement))}disconnectedCallback(){var e;null===(e=this.tableDivElementResizeObserver)||void 0===e||e.disconnect()}checkDivElementScrollbar(){this.tableDivElement&&(this.tableDivElementHasScrollbar=this.tableDivElement.scrollWidth>this.tableDivElement.clientWidth)}updateDataToKeyMap(e){e.forEach((e=>{this.dataToKeyMap.has(e)||this.dataToKeyMap.set(e,b())})),this.dataToKeyMap.forEach(((t,l)=>{e.includes(l)||this.dataToKeyMap.delete(l)}))}getDataKey(e){return this.dataToKeyMap.get(e)}cellRender(e,t){t&&(clearTimeout(this.cellsToRenderTimeouts.get(t)),this.cellsToRenderTimeouts.set(t,setTimeout((()=>{if("function"==typeof e.render){const l=e.render(t,e,e.data,this.state._data);"string"==typeof l&&(t.textContent=l)}}))))}getNumberOfCols(e,t){let l=0;return e.forEach((e=>{let t=0;Array.isArray(e)&&e.forEach((e=>{var l;return t+=null!==(l=e.colSpan)&&void 0!==l?l:1})),l<t&&(l=t)})),0===l&&(l=t.length),l}getNumberOfRows(e,t){var l;let a=0;return e.forEach((e=>{let t=0;Array.isArray(e)&&e.forEach((e=>{var l;return t+=null!==(l=e.rowSpan)&&void 0!==l?l:1})),a<t&&(a=t)})),0===a?a=t.length:a-=(null===(l=this.state._dataFoot)||void 0===l?void 0:l.length)||0,a}getThePrimaryHeadersWithKeysIfExists(e){const t=[];return e.forEach((e=>{e.forEach((e=>{"string"==typeof e.key&&t.push(e)}))})),t}getPrimaryHeaders(e){var t,l;let a=this.getThePrimaryHeadersWithKeysIfExists(null!==(t=e.horizontal)&&void 0!==t?t:[]);return this.horizontal=!0,0===a.length&&(a=this.getThePrimaryHeadersWithKeysIfExists(null!==(l=e.vertical)&&void 0!==l?l:[]),a.length>0&&(this.horizontal=!1)),a}createDataField(e,t,l){var a;t.horizontal=Array.isArray(null==t?void 0:t.horizontal)?t.horizontal:[],t.vertical=Array.isArray(null==t?void 0:t.vertical)?t.vertical:[];const i=this.getPrimaryHeaders(t),o=this.getNumberOfCols(t.horizontal,e);let s=this.getNumberOfRows(t.vertical,e),n=0;l&&(n=s,s+=(null===(a=this.state._dataFoot)||void 0===a?void 0:a.length)||0);const c=[],d=[],h=[];t.vertical.forEach(((e,t)=>{d[t]=0,h[t]=[]}));for(let a=n;a<s;a++){const s=[];t.vertical.forEach(((e,t)=>{let l=0;if(h[t].forEach((e=>l+=e)),l<=a){const i=e[a-l+d[t]];if("object"==typeof i){s.push(Object.assign(Object.assign({},i),{headerCell:!0,data:{}}));let e=1;if("number"==typeof i.rowSpan&&i.rowSpan>1&&(e=i.rowSpan),h[t].push(e),"number"==typeof i.colSpan&&i.colSpan>1)for(let l=1;l<i.colSpan;l++)h[t+l].push(e);d[t]++}}}));for(let t=0;t<o;t++)if(!0===this.horizontal){const o=l&&this.state._dataFoot?this.state._dataFoot[a-n]:e[a];"object"==typeof i[t]&&null!==i[t]&&"string"==typeof i[t].key&&"object"==typeof o&&null!==o&&s.push(Object.assign(Object.assign({},i[t]),{colSpan:void 0,data:o,label:o[i[t].key],rowSpan:void 0}))}else"object"==typeof i[a]&&null!==i[a]&&"string"==typeof i[a].key&&"object"==typeof e[t]&&null!==e[t]&&s.push(Object.assign(Object.assign({},i[a]),{colSpan:void 0,data:e[t],label:e[t][i[a].key],rowSpan:void 0}));c.push(s)}if(0===e.length){let e=0,l=0;Array.isArray(t.horizontal)&&t.horizontal.length>0&&t.horizontal[0].forEach((t=>{e+=t.colSpan||1})),Array.isArray(t.vertical)&&t.vertical.length>0&&(e-=t.vertical.length,t.vertical[0].forEach((e=>{l+=e.rowSpan||1})));const a={colSpan:e,label:r("kol-no-entries"),render:void 0,rowSpan:Math.max(l,1)};0===c.length?c.push([a]):c[0].push(a)}return c}handleSelectionChangeCallbackAndEvent(e,t){var l;"function"==typeof(null===(l=this.state._on)||void 0===l?void 0:l[m.onSelectionChange])&&this.state._on[m.onSelectionChange](e,t),this.host&&u(this.host,_.selectionChange,t)}componentWillLoad(){this.validateData(this._data),this.validateDataFoot(this._dataFoot),this.validateHeaderCells(this._headerCells),this.validateLabel(this._label),this.validateMinWidth(this._minWidth),this.validateOn(this._on),this.validateSelection(this._selection)}renderSelectionCell(e,l){var i,r,n;const c=this.state._selection;if(!c)return"";const d=null!==(i=c.keyPropertyName)&&void 0!==i?i:"id",h=null===(r=e[0])||void 0===r?void 0:r.data;if(!h)return"";const b=h[d],_=c.multiple||void 0===c.multiple,v=null===(n=null==c?void 0:c.selectedKeys)||void 0===n?void 0:n.includes(b),p=c.label(h),u={name:"selection",checked:v,id:b,"aria-label":p};return t("td",{key:`tbody-${l}-selection`,class:"kol-table__cell kol-table__cell--selection"},t("div",{class:o("kol-table__selection",{"kol-table__selection--checked":v})},_?t("label",{class:"kol-table__selection-label"},t(s,{class:"kol-table__selection-icon",_icons:"codicon "+(v?"codicon-check":""),_label:""}),t("input",Object.assign({class:o("kol-table__selection-input kol-table__selection-input--checkbox"),ref:e=>e&&this.checkboxRefs.push(e)},u,{type:"checkbox",onInput:e=>{var t,l;const a=v?null===(l=null==c?void 0:c.selectedKeys)||void 0===l?void 0:l.filter((e=>e!==b)):[...null!==(t=null==c?void 0:c.selectedKeys)&&void 0!==t?t:[],b];this.handleSelectionChangeCallbackAndEvent(e,null!=a?a:[])}}))):t("label",{class:"kol-table__selection-label"},t("input",Object.assign({class:o("kol-table__selection-input kol-table__selection-input--radio")},u,{type:"radio",onInput:e=>{this.handleSelectionChangeCallbackAndEvent(e,b)}}))),t(a,{"aria-hidden":"true",class:"kol-table__selection-input-tooltip",_align:"right",_id:`${b}-label`,_label:p})))}renderHeadingSelectionCell(){var e,l;const i=this.state._selection;if(!i||!i.multiple&&void 0!==i.multiple)return t("th",{class:"kol-table__cell kol-table__cell--header",key:"thead-0"});const n=null!==(e=i.keyPropertyName)&&void 0!==e?e:"id",c=null===(l=i.selectedKeys)||void 0===l?void 0:l.length,d=c===this.state._data.length,h=0!==c&&!d;let b="kol-table-selection-indeterminate";d&&!h&&(b="kol-table-selection-none"),0===c&&(b="kol-table-selection-all");const _=r(b);return t("th",{key:"thead-0-selection",class:"kol-table__cell kol-table__cell--header"},t("div",{class:o("kol-table__selection",{"kol-table__selection--indeterminate":h,"kol-table__selection--checked":d})},t("label",{class:"kol-table__selection-label"},t(s,{class:"kol-table__selection-icon",_icons:"codicon "+(h?"codicon-remove":d?"codicon-check":""),_label:""}),t("input",{class:o("kol-table__selection-input kol-table__selection-input--checkbox"),ref:e=>e&&this.checkboxRefs.push(e),name:"selection",checked:d&&!h,"aria-label":_,type:"checkbox",onInput:e=>{const t=d?[]:this.state._data.map((e=>null==e?void 0:e[n]));this.handleSelectionChangeCallbackAndEvent(e,t)}})),t(a,{"aria-hidden":"true",class:"kol-table__selection-input-tooltip",_align:"right",_id:`${b}-label`,_label:_})))}renderHeaderTdCell(){return t(i,null,Array.isArray(this.state._headerCells.horizontal)&&this.state._headerCells.horizontal.length>0&&Array.isArray(this.state._headerCells.vertical)&&this.state._headerCells.vertical.length>0&&Array.isArray(this.state._headerCells.horizontal)&&t("td",{"aria-hidden":"true",colSpan:this.state._headerCells.vertical.length,rowSpan:this.state._headerCells.horizontal.length}))}renderHeadingCell(e,l,a,i){let s,r="codicon codicon-fold";if(e.sortDirection)switch(e.sortDirection){case"ASC":r="codicon codicon-chevron-up",s="ascending";break;case"DESC":r="codicon codicon-chevron-down",s="descending"}const c=i?"row":"number"==typeof e.colSpan&&e.colSpan>1?"colgroup":"col";return t("th",{key:`${l}-${a}-${e.label}`,class:o("kol-table__cell kol-table__cell--header",{[`kol-table__cell--align-${e.textAlign}`]:e.textAlign,[`kol-table__cell--${s}`]:s}),scope:c,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{width:e.width},"aria-sort":s,"data-sort":`sort-${e.sortDirection}`},e.sortDirection?t(n,{class:"kol-table__sort-button",exportparts:"icon",_icons:{right:r},_label:e.label,_on:{onClick:t=>{var l;"function"==typeof(null===(l=this.state._on)||void 0===l?void 0:l.onSort)&&e.key&&e.sortDirection&&this.state._on.onSort(t,{key:e.key,currentSortDirection:e.sortDirection}),this.host&&u(this.host,_.sort,{key:e.key,currentSortDirection:e.sortDirection})}}}):e.label)}renderSpacer(e,l){var a,i;const s=(null===(a=this.state._headerCells.vertical)||void 0===a?void 0:a.length)||0,r=null===(i=null==l?void 0:l[0])||void 0===i?void 0:i.reduce(((e,t)=>e+(t.colSpan||1)),0),n=this.state._selection?1:0;return t("tr",{"aria-hidden":"true",class:o("kol-table__spacer",`kol-table__spacer--${e}`)},t("td",{class:o(`kol-table__spacer-line kol-table__spacer-line--${e}`),colSpan:s+r+n}))}renderFoot(){if(!this.state._dataFoot||0===this.state._dataFoot.length)return null;const e=this.createDataField(this.state._dataFoot,this.state._headerCells,!0);return t("tfoot",{class:"kol-table__footer"},[this.renderSpacer("foot",e),e.map(((e,t)=>this.renderTableRow(e,t,!0,!0)))])}render(){const e=this.createDataField(this.state._data,this.state._headerCells);return this.checkboxRefs=[],t("div",{key:"018dbdf0ae4856dee08e8a6d13a3f9f221d2d90a",ref:e=>this.tableDivElement=e,class:"kol-table",tabindex:this.tableDivElementHasScrollbar?"-1":void 0},t("table",{key:"dc242c33ba7a6a147453458430fedba8701c36d0",class:"kol-table__table",style:{minWidth:this.state._minWidth}},t("div",{key:"31887f9eadb14626d367010ae436d3f6ee71bbf5",class:"kol-table__focus-element",tabindex:this.tableDivElementHasScrollbar?"0":void 0,"aria-describedby":"caption"}," "),t("caption",{key:"92fcb5229b74c310ddd5d128704036ee754e263a",class:"kol-table__caption",id:"caption"},this.state._label),Array.isArray(this.state._headerCells.horizontal)&&t("thead",{key:"d7bda1ed3f6e17b20136a27807832c617286588c",class:"kol-table__head"},[this.state._headerCells.horizontal.map(((e,l)=>t("tr",{class:"kol-table__head-row",key:`thead-${l}`},this.state._selection&&this.renderHeadingSelectionCell(),0===l&&this.renderHeaderTdCell(),Array.isArray(e)&&e.map(((e,t)=>this.renderHeadingCell(e,l,t,!1)))))),this.renderSpacer("head",this.state._headerCells.horizontal)]),t("tbody",{key:"01f9f54a99f0b27407740c40cd1f948e52a33c34",class:"kol-table__body"},e.map(((e,t)=>this.renderTableRow(e,t,!0)))),this.renderFoot()))}get host(){return l(this)}static get watchers(){return{_data:["validateData"],_dataFoot:["validateDataFoot"],_headerCells:["validateHeaderCells"],_label:["validateLabel"],_minWidth:["validateMinWidth"],_on:["validateOn"],_selection:["validateSelection"]}}};export{$ as kol_table_stateless_wc};
4
+ import{r as e,h as t,F as i,g as l}from"./index-99a79ec9.js";import{c as o}from"./clsx-09a06a12.js";import{d as s,g as n,a,v as r}from"./component-names-60d77143.js";import{t as d}from"./i18n-efbafc80.js";import{q as c,o as h,p as u,w as b,s as f}from"./prop.validators-17aec743.js";import{n as v}from"./dev.utils-63a2f83b.js";import{d as _,K as p}from"./events-5886c68b.js";import{v as k,a as y,e as m,b as g,d as S,C as w}from"./table-settings-d708d477.js";import{v as $}from"./label-90c13388.js";import"./i18n-45224cc3.js";import"./reuse-f46e7e35.js";import"./index-6d801dad.js";import"./dev.utils-fab45cbc.js";import"./common-54bf85ba.js";const j=(e,t)=>{c(t,(()=>{h(t,(()=>{try{t=u(t)}catch(e){}b(e,"_headerCells",(e=>"object"==typeof e&&null!==e&&(void 0===e.horizontal||Array.isArray(e.horizontal)&&void 0===e.horizontal.find((e=>!Array.isArray(e))))&&(void 0===e.vertical||Array.isArray(e.vertical)&&void 0===e.vertical.find((e=>!Array.isArray(e))))&&!0),new Set(["TableHeaderCellsPropType"]),t)}))}))},C=/^\d+(\.\d+)?([a-z]+|%)?$/,A=(e,t,l)=>{b(e,"_minWidth",(e=>"string"==typeof e&&C.test(e)),new Set(["String","/^\\d+(\\.\\d+)?([a-z]+|%)?$/"]),t,l)},D=class{constructor(l){e(this,l),this.horizontal=!0,this.cellsToRenderTimeouts=new Map,this.dataToKeyMap=new Map,this.checkboxRefs=[],this.renderTableRow=(e,l,a,i=!1)=>{var s,n;let r=String(l);return this.horizontal&&(null===(s=e[0])||void 0===s?void 0:s.data)&&(r=null!==(n=this.getDataKey(e[0].data))&&void 0!==n?n:r),t("tr",{class:o("kol-table__row",{"kol-table__row--body":!i,"kol-table__row--footer":i}),key:`row-${r}`},this.renderSelectionCell(e,l),e.map(((e,t)=>this.renderTableCell(e,l,t,a))))},this.renderTableCell=(e,l,a,i)=>{const s=this.getColumnSettings(e);if(s&&!s.visible)return"";let n=`${l}-${a}-${e.label}`;if(e.data){const t=this.getDataKey(e.data);n=t?`${t}-${this.horizontal?a:l}`:n}return e.headerCell?this.renderHeadingCell(e,l,a,i):t("td",{key:`cell-${n}`,class:o("kol-table__cell kol-table__cell--body",{[`kol-table__cell--align-${e.textAlign}`]:e.textAlign}),colSpan:e.colSpan,rowSpan:e.rowSpan,style:{textAlign:e.textAlign,width:(null==s?void 0:s.width)?`${s.width}ch`:e.width},ref:"function"==typeof e.render?t=>{this.cellRender(e,t)}:void 0},"function"!=typeof e.render?e.label:"")},this.state={_data:[],_headerCells:{horizontal:[],vertical:[]},_label:"",_minWidth:"auto"},this.tableDivElementHasScrollbar=!1,this._data=void 0,this._dataFoot=void 0,this._headerCells=void 0,this._label=void 0,this._minWidth=void 0,this._on=void 0,this._selection=void 0,this._tableSettings=void 0}validateData(e){k(this,e,{beforePatch:e=>{this.updateDataToKeyMap(e)}})}validateDataFoot(e){y(this,e)}validateHeaderCells(e){j(this,e),this.initializeTableSettings()}validateLabel(e){$(this,e,{required:!0})}validateMinWidth(e){A(this,e)}validateOn(e){m(this,e)}validateSelection(e){g(this,e)}validateTableSettings(e){S(this,e)}handleKeyDown(e){var t;if("ArrowUp"===e.key||"ArrowDown"===e.key){const l=null===(t=this.tableDivElement)||void 0===t?void 0:t.querySelector(":focus");let a=this.checkboxRefs.indexOf(l);a>-1&&(e.preventDefault(),"ArrowDown"===e.key?(a=(a+1)%this.checkboxRefs.length,this.checkboxRefs[a].focus()):"ArrowUp"===e.key&&(e.preventDefault(),a=(a+this.checkboxRefs.length-1)%this.checkboxRefs.length,this.checkboxRefs[a].focus()))}}componentDidRender(){this.checkDivElementScrollbar()}componentDidLoad(){this.tableDivElement&&ResizeObserver&&(this.tableDivElementResizeObserver=new ResizeObserver(this.checkDivElementScrollbar.bind(this)),this.tableDivElementResizeObserver.observe(this.tableDivElement))}handleSettingsChange(e){f(this,"_tableSettings",e.detail)}disconnectedCallback(){var e;null===(e=this.tableDivElementResizeObserver)||void 0===e||e.disconnect()}checkDivElementScrollbar(){this.tableDivElement&&(this.tableDivElementHasScrollbar=this.tableDivElement.scrollWidth>this.tableDivElement.clientWidth)}updateDataToKeyMap(e){e.forEach((e=>{this.dataToKeyMap.has(e)||this.dataToKeyMap.set(e,v())})),this.dataToKeyMap.forEach(((t,l)=>{e.includes(l)||this.dataToKeyMap.delete(l)}))}getDataKey(e){return this.dataToKeyMap.get(e)}cellRender(e,t){t&&(clearTimeout(this.cellsToRenderTimeouts.get(t)),this.cellsToRenderTimeouts.set(t,setTimeout((()=>{if("function"==typeof e.render){const l=e.render(t,e,e.data,this.state._data);"string"==typeof l&&(t.textContent=l)}}))))}getNumberOfCols(e,t){let l=0;return e.forEach((e=>{let t=0;Array.isArray(e)&&e.forEach((e=>{var l;return t+=null!==(l=e.colSpan)&&void 0!==l?l:1})),l<t&&(l=t)})),0===l&&(l=t.length),l}getNumberOfRows(e,t){var l;let a=0;return e.forEach((e=>{let t=0;Array.isArray(e)&&e.forEach((e=>{var l;return t+=null!==(l=e.rowSpan)&&void 0!==l?l:1})),a<t&&(a=t)})),0===a?a=t.length:a-=(null===(l=this.state._dataFoot)||void 0===l?void 0:l.length)||0,a}getThePrimaryHeadersWithKeysIfExists(e){const t=[];return e.forEach((e=>{e.forEach((e=>{"string"==typeof e.key&&t.push(e)}))})),t}getPrimaryHeaders(e){var t,l;let a=this.getThePrimaryHeadersWithKeysIfExists(null!==(t=e.horizontal)&&void 0!==t?t:[]);return this.horizontal=!0,0===a.length&&(a=this.getThePrimaryHeadersWithKeysIfExists(null!==(l=e.vertical)&&void 0!==l?l:[]),a.length>0&&(this.horizontal=!1)),a}getColumnPositionMap(){var e;const t=new Map;return null===(e=this.state._tableSettings)||void 0===e||e.columns.forEach((e=>{t.set(e.key,e.position)})),t}sortByColumnPosition(e){const t=this.getColumnPositionMap();return[...e].sort(((e,l)=>{var a,i,o,s;return(null!==(i=t.get(null!==(a=e.key)&&void 0!==a?a:""))&&void 0!==i?i:Number.MAX_SAFE_INTEGER)-(null!==(s=t.get(null!==(o=l.key)&&void 0!==o?o:""))&&void 0!==s?s:Number.MAX_SAFE_INTEGER)}))}createDataField(e,t,l){var a;t.horizontal=Array.isArray(null==t?void 0:t.horizontal)?t.horizontal:[],t.vertical=Array.isArray(null==t?void 0:t.vertical)?t.vertical:[];const i=this.getPrimaryHeaders(t),o=this.getNumberOfCols(t.horizontal,e);let s=this.getNumberOfRows(t.vertical,e),n=0;l&&(n=s,s+=(null===(a=this.state._dataFoot)||void 0===a?void 0:a.length)||0);const r=[],c=[],h=[];t.vertical.forEach(((e,t)=>{c[t]=0,h[t]=[]}));const b=this.sortByColumnPosition(i);for(let a=n;a<s;a++){const i=[];t.vertical.forEach(((e,t)=>{let l=0;if(h[t].forEach((e=>l+=e)),l<=a){const o=e[a-l+c[t]];if("object"==typeof o){i.push(Object.assign(Object.assign({},o),{headerCell:!0,data:{}}));let e=1;if("number"==typeof o.rowSpan&&o.rowSpan>1&&(e=o.rowSpan),h[t].push(e),"number"==typeof o.colSpan&&o.colSpan>1)for(let l=1;l<o.colSpan;l++)h[t+l].push(e);c[t]++}}}));for(let t=0;t<o;t++)if(!0===this.horizontal){const o=l&&this.state._dataFoot?this.state._dataFoot[a-n]:e[a];"object"==typeof b[t]&&null!==b[t]&&"string"==typeof b[t].key&&"object"==typeof o&&null!==o&&i.push(Object.assign(Object.assign({},b[t]),{colSpan:void 0,data:o,label:o[b[t].key],rowSpan:void 0}))}else"object"==typeof b[a]&&null!==b[a]&&"string"==typeof b[a].key&&"object"==typeof e[t]&&null!==e[t]&&i.push(Object.assign(Object.assign({},b[a]),{colSpan:void 0,data:e[t],label:e[t][b[a].key],rowSpan:void 0}));r.push(i)}if(0===e.length){let e=0,l=0;Array.isArray(t.horizontal)&&t.horizontal.length>0&&t.horizontal[0].forEach((t=>{e+=t.colSpan||1})),Array.isArray(t.vertical)&&t.vertical.length>0&&(e-=t.vertical.length,t.vertical[0].forEach((e=>{l+=e.rowSpan||1})));const a={colSpan:e,label:d("kol-no-entries"),render:void 0,rowSpan:Math.max(l,1)};0===r.length?r.push([a]):r[0].push(a)}return r}handleSelectionChangeCallbackAndEvent(e,t){var l;"function"==typeof(null===(l=this.state._on)||void 0===l?void 0:l[w.onSelectionChange])&&this.state._on[w.onSelectionChange](e,t),this.host&&_(this.host,p.selectionChange,t)}initializeTableSettings(){if(this._tableSettings)return;const e=this.getPrimaryHeaders(this.state._headerCells);this.state._tableSettings||(this.state._tableSettings={columns:[]}),this.state._tableSettings.columns=e.filter((e=>e.key)).map(((e,t)=>{var l;return{key:null!==(l=e.key)&&void 0!==l?l:v(),label:e.label,position:t,visible:!0}}))}componentWillLoad(){this.validateData(this._data),this.validateDataFoot(this._dataFoot),this.validateHeaderCells(this._headerCells),this.validateLabel(this._label),this.validateMinWidth(this._minWidth),this.validateOn(this._on),this.validateSelection(this._selection),this.validateTableSettings(this._tableSettings)}renderSelectionCell(e,l){var a,i,r;const c=this.state._selection;if(!c)return"";const d=this.getSelectionKeyPropertyName(),h=null===(a=e[0])||void 0===a?void 0:a.data;if(!h)return"";const b=h[d],v=c.multiple||void 0===c.multiple,u=null===(i=null==c?void 0:c.selectedKeys)||void 0===i?void 0:i.includes(b),_=null===(r=null==c?void 0:c.disabledKeys)||void 0===r?void 0:r.includes(b),p=c.label(h),y={name:"selection",checked:u,disabled:_,id:b,"aria-label":p};return t("td",{key:`tbody-${l}-selection`,class:"kol-table__cell kol-table__cell--selection"},t("div",{class:o("kol-table__selection",{"kol-table__selection--checked":u})},v?t("label",{class:o("kol-table__selection-label",{"kol-table__selection-label--disabled":_})},t(s,{class:"kol-table__selection-icon",_icons:"codicon "+(u?"codicon-check":""),_label:""}),t("input",Object.assign({class:o("kol-table__selection-input kol-table__selection-input--checkbox"),ref:e=>e&&this.checkboxRefs.push(e)},y,{type:"checkbox",onInput:e=>{var t,l;const a=u?null===(l=null==c?void 0:c.selectedKeys)||void 0===l?void 0:l.filter((e=>e!==b)):[...null!==(t=null==c?void 0:c.selectedKeys)&&void 0!==t?t:[],b];this.handleSelectionChangeCallbackAndEvent(e,null!=a?a:[])}}))):t("label",{class:"kol-table__selection-label"},t("input",Object.assign({class:o("kol-table__selection-input kol-table__selection-input--radio")},y,{type:"radio",onInput:e=>{this.handleSelectionChangeCallbackAndEvent(e,b)}}))),t(n,{"aria-hidden":"true",class:"kol-table__selection-input-tooltip",_align:"right",_id:`${b}-label`,_label:p})))}getColumnSettings(e){var t;return null===(t=this.state._tableSettings)||void 0===t?void 0:t.columns.find((t=>t.key===e.key))}getSelectionKeyPropertyName(){var e,t;return null!==(t=null===(e=this.state._selection)||void 0===e?void 0:e.keyPropertyName)&&void 0!==t?t:"id"}getDataWithSelectionEnabled(){const e=this.getSelectionKeyPropertyName();return this.state._data.filter((t=>{var l,a;return!(null===(a=null===(l=this.state._selection)||void 0===l?void 0:l.disabledKeys)||void 0===a?void 0:a.includes(t[e]))}))}getSelectedKeysWithoutDisabledKeys(){var e,t;return null===(t=null===(e=this.state._selection)||void 0===e?void 0:e.selectedKeys)||void 0===t?void 0:t.filter((e=>{var t,l;return!(null===(l=null===(t=this.state._selection)||void 0===t?void 0:t.disabledKeys)||void 0===l?void 0:l.includes(e))}))}getSelectedKeysWithDisabledKeysOnly(){var e,t;return null===(t=null===(e=this.state._selection)||void 0===e?void 0:e.selectedKeys)||void 0===t?void 0:t.filter((e=>{var t,l;return null===(l=null===(t=this.state._selection)||void 0===t?void 0:t.disabledKeys)||void 0===l?void 0:l.includes(e)}))}getRevertedSelection(e){var t;const l=this.getSelectionKeyPropertyName(),a=null!==(t=this.getSelectedKeysWithDisabledKeysOnly())&&void 0!==t?t:[];return e&&a.push(...this.getDataWithSelectionEnabled().map((e=>null==e?void 0:e[l]))),a}getTableMinWidth(){var e,t;const l=null!==(t=null===(e=this.state._tableSettings)||void 0===e?void 0:e.columns.filter((e=>e.visible)).reduce(((e,t)=>{var l;return e+(null!==(l=t.width)&&void 0!==l?l:0)}),0))&&void 0!==t?t:0;return"auto"===this.state._minWidth?`${l}ch`:`max(${this.state._minWidth}, ${l}ch)`}renderHeadingSelectionCell(){var e,l;const a=this.state._selection;if(!a||!a.multiple&&void 0!==a.multiple)return t("th",{class:"kol-table__cell kol-table__cell--header",key:"thead-0"});const i=null!==(l=null===(e=this.getSelectedKeysWithoutDisabledKeys())||void 0===e?void 0:e.length)&&void 0!==l?l:0,r=i===this.getDataWithSelectionEnabled().length,c=0!==i&&!r;let h="kol-table-selection-indeterminate";r&&!c&&(h="kol-table-selection-none"),0===i&&(h="kol-table-selection-all");const b=d(h);return t("th",{key:"thead-0-selection",class:"kol-table__cell kol-table__cell--header"},t("div",{class:o("kol-table__selection",{"kol-table__selection--indeterminate":c,"kol-table__selection--checked":r})},t("label",{class:"kol-table__selection-label"},t(s,{class:"kol-table__selection-icon",_icons:"codicon "+(c?"codicon-remove":r?"codicon-check":""),_label:""}),t("input",{class:o("kol-table__selection-input kol-table__selection-input--checkbox"),"data-testid":"selection-checkbox-all",ref:e=>e&&this.checkboxRefs.push(e),name:"selection",checked:r&&!c,indeterminate:c,"aria-label":b,type:"checkbox",onInput:e=>{this.handleSelectionChangeCallbackAndEvent(e,this.getRevertedSelection(!r))}})),t(n,{"aria-hidden":"true",class:"kol-table__selection-input-tooltip",_align:"right",_id:`${h}-label`,_label:b})))}renderHeaderTdCell(){return t(i,null,Array.isArray(this.state._headerCells.horizontal)&&this.state._headerCells.horizontal.length>0&&Array.isArray(this.state._headerCells.vertical)&&this.state._headerCells.vertical.length>0&&Array.isArray(this.state._headerCells.horizontal)&&t("td",{"aria-hidden":"true",colSpan:this.state._headerCells.vertical.length,rowSpan:this.state._headerCells.horizontal.length}))}renderHeadingCell(e,l,i,s){const n=this.getColumnSettings(e);if(n&&!n.visible)return"";let r,c="codicon codicon-fold";if(e.sortDirection)switch(e.sortDirection){case"ASC":c="codicon codicon-chevron-up",r="ascending";break;case"DESC":c="codicon codicon-chevron-down",r="descending"}const d=s?"row":"number"==typeof e.colSpan&&e.colSpan>1?"colgroup":"col";return t("th",{key:`${l}-${i}-${e.label}`,class:o("kol-table__cell kol-table__cell--header",{[`kol-table__cell--align-${e.textAlign}`]:e.textAlign,[`kol-table__cell--${r}`]:r}),scope:d,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{width:(null==n?void 0:n.width)?`${n.width}ch`:e.width},"aria-sort":r,"data-sort":`sort-${e.sortDirection}`},e.sortDirection?t(a,{class:"kol-table__sort-button",exportparts:"icon",_icons:{right:c},_label:e.label,_on:{onClick:t=>{var l;"function"==typeof(null===(l=this.state._on)||void 0===l?void 0:l.onSort)&&e.key&&e.sortDirection&&this.state._on.onSort(t,{key:e.key,currentSortDirection:e.sortDirection}),this.host&&_(this.host,p.sort,{key:e.key,currentSortDirection:e.sortDirection})}}}):e.label)}renderSpacer(e,l){var a,i;const s=(null===(a=this.state._headerCells.vertical)||void 0===a?void 0:a.length)||0,n=null===(i=null==l?void 0:l[0])||void 0===i?void 0:i.reduce(((e,t)=>e+(t.colSpan||1)),0),r=this.state._selection?1:0;return t("tr",{"aria-hidden":"true",class:o("kol-table__spacer",`kol-table__spacer--${e}`)},t("td",{class:o(`kol-table__spacer-line kol-table__spacer-line--${e}`),colSpan:s+n+r}))}renderFoot(){if(!this.state._dataFoot||0===this.state._dataFoot.length)return null;const e=this.createDataField(this.state._dataFoot,this.state._headerCells,!0);return t("tfoot",{class:"kol-table__footer"},[this.renderSpacer("foot",e),e.map(((e,t)=>this.renderTableRow(e,t,!0,!0)))])}render(){var e;const l=this.createDataField(this.state._data,this.state._headerCells);this.checkboxRefs=[];const a=null===(e=this.state._headerCells.horizontal)||void 0===e?void 0:e.map((e=>this.sortByColumnPosition(e)));return t("div",{key:"ae3fd0cadeff7fd5876f3aff39aacfd1997d7af5",class:"kol-table"},t(r,{key:"71516f66299749db89d0be331e285564c6c908fe",_tableSettings:this.state._tableSettings}),t("div",{key:"8382bc9fca0bbbf512e97376f4f4cd899dac38e3",ref:e=>this.tableDivElement=e,class:"kol-table__scroll-container",tabindex:this.tableDivElementHasScrollbar?"-1":void 0},t("table",{key:"c3a90a20cba3f5ff46c3f9aad2a65310545cb90e",class:"kol-table__table",style:{minWidth:this.getTableMinWidth()}},t("div",{key:"bfe6348cc5b95efb8262813f077c7c24feb44eb8",class:"kol-table__focus-element",tabindex:this.tableDivElementHasScrollbar?"0":void 0,"aria-describedby":"caption"}," "),t("caption",{key:"0fd37e43aede08e1a613468e31e2502bd84e370b",class:"kol-table__caption",id:"caption"},this.state._label),Array.isArray(a)&&t("thead",{key:"a6a0ba216018ecc513231b34b0068e087fec060f",class:"kol-table__head"},[a.map(((e,l)=>t("tr",{class:"kol-table__head-row",key:`thead-${l}`},this.state._selection&&this.renderHeadingSelectionCell(),0===l&&this.renderHeaderTdCell(),Array.isArray(e)&&e.map(((e,t)=>this.renderHeadingCell(e,l,t,!1)))))),this.renderSpacer("head",a)]),t("tbody",{key:"8fdb3967514154e5917d73f3ecc117d382d8a3c3",class:"kol-table__body"},l.map(((e,t)=>this.renderTableRow(e,t,!0)))),this.renderFoot())))}get host(){return l(this)}static get watchers(){return{_data:["validateData"],_dataFoot:["validateDataFoot"],_headerCells:["validateHeaderCells"],_label:["validateLabel"],_minWidth:["validateMinWidth"],_on:["validateOn"],_selection:["validateSelection"],_tableSettings:["validateTableSettings"]}}};export{D as kol_table_stateless_wc};
@@ -1 +1 @@
1
- {"version":3,"names":["validateTableHeaderCells","component","value","emptyStringByArrayHandler","objectObjectHandler","parseJson","e","watchValidator","horizontal","undefined","Array","isArray","find","headerRow","vertical","headerCol","Set","HEADER_CELL_WIDTH_VALIDATOR","validateMinWidth","options","v","test","KolTableStateless","this","cellsToRenderTimeouts","Map","dataToKeyMap","checkboxRefs","renderTableRow","row","rowIndex","isVertical","isFooter","key","String","_a","data","_b","getDataKey","h","class","clsx","renderSelectionCell","map","cell","colIndex","renderTableCell","label","dataKey","headerCell","renderHeadingCell","textAlign","colSpan","rowSpan","style","width","ref","render","el","cellRender","_data","_headerCells","_label","_minWidth","validateData","validateTableData","beforePatch","nextValue","updateDataToKeyMap","validateDataFoot","validateTableDataFoot","validateHeaderCells","validateLabel","required","validateOn","validateTableCallbacks","validateSelection","validateTableSelection","handleKeyDown","event","focusedElement","tableDivElement","querySelector","index","indexOf","preventDefault","length","focus","componentDidRender","checkDivElementScrollbar","componentDidLoad","ResizeObserver","tableDivElementResizeObserver","bind","observe","disconnectedCallback","disconnect","tableDivElementHasScrollbar","scrollWidth","clientWidth","forEach","has","set","nonce","_","includes","delete","get","clearTimeout","setTimeout","renderContent","state","textContent","getNumberOfCols","horizontalHeaders","max","count","col","getNumberOfRows","verticalHeaders","_dataFoot","getThePrimaryHeadersWithKeysIfExists","headers","primaryHeadersWithKeys","cells","push","getPrimaryHeaders","createDataField","isFoot","primaryHeader","maxCols","maxRows","startRow","dataField","rowCount","rowSpans","_row","i","dataRow","headerCells","rowsTotal","rows","Object","assign","k","j","colspan","rowspan","emptyCell","translate","Math","handleSelectionChangeCallbackAndEvent","payload","_on","Callback","onSelectionChange","host","dispatchDomEvent","KolEvent","selectionChange","componentWillLoad","_selection","selection","keyPropertyName","firstCellData","keyProperty","isMultiple","multiple","selected","_c","selectedKeys","props","name","checked","id","KolIconTag","_icons","type","onInput","updatedSelectedKeys","filter","KolTooltipWcTag","_align","_id","renderHeadingSelectionCell","selectedKeyLength","dataLength","isChecked","indeterminate","translationKey","selections","renderHeaderTdCell","Fragment","ariaSort","sortButtonIcon","sortDirection","scope","KolButtonWcTag","exportparts","right","onClick","onSort","currentSortDirection","sort","renderSpacer","variant","cellDefs","verticalHeaderColpan","reduce","acc","selectionCell","renderFoot","element","tabindex","minWidth","cols"],"sources":["src/schema/props/table-header-cells.ts","src/schema/props/min-width.ts","src/components/table-stateless/component.tsx"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\nimport type { KoliBriTableHeaderCell, Stringified } from '../types';\nimport { emptyStringByArrayHandler, objectObjectHandler, parseJson, watchValidator } from '../utils';\n\n/* types */\nexport type TableHeaderCells = {\n\thorizontal?: KoliBriTableHeaderCell[][];\n\tvertical?: KoliBriTableHeaderCell[][];\n};\n\nexport type TableHeaderCellsPropType = Stringified<TableHeaderCells>;\n\n/**\n * Defines the horizontal and vertical table header cells.\n */\nexport type PropTableHeaderCells = {\n\theaderCells: TableHeaderCellsPropType;\n};\n\n/* validator */\nexport const validateTableHeaderCells = (component: Generic.Element.Component, value?: TableHeaderCellsPropType): void => {\n\temptyStringByArrayHandler(value, () => {\n\t\tobjectObjectHandler(value, () => {\n\t\t\ttry {\n\t\t\t\tvalue = parseJson<TableHeaderCells>(value);\n\t\t\t} catch (e) {\n\t\t\t\tvoid e;\n\t\t\t}\n\t\t\twatchValidator(\n\t\t\t\tcomponent,\n\t\t\t\t'_headerCells',\n\t\t\t\t(value): boolean =>\n\t\t\t\t\ttypeof value === 'object' &&\n\t\t\t\t\tvalue !== null &&\n\t\t\t\t\t(value.horizontal === undefined ||\n\t\t\t\t\t\t(Array.isArray(value.horizontal) && value.horizontal.find((headerRow) => !Array.isArray(headerRow)) === undefined)) &&\n\t\t\t\t\t(value.vertical === undefined || (Array.isArray(value.vertical) && value.vertical.find((headerCol) => !Array.isArray(headerCol)) === undefined)) &&\n\t\t\t\t\ttrue,\n\t\t\t\tnew Set(['TableHeaderCellsPropType']),\n\t\t\t\tvalue,\n\t\t\t);\n\t\t});\n\t});\n};\n","import type { Generic } from 'adopted-style-sheets';\nimport type { WatchStringOptions } from '../utils';\nimport { watchValidator } from '../utils';\n\n/* types */\nexport type MinWidthPropType = string;\n\n/**\n * Defines the technical name of an input field.\n */\nexport type PropMinWidth = {\n\tminWidth: MinWidthPropType;\n};\n\n/* constants */\n/**\n * Regular expression to validate the width of a header cell.\n */\nconst HEADER_CELL_WIDTH_VALIDATOR = /^\\d+(\\.\\d+)?([a-z]+|%)?$/;\n\n/* validator */\nexport const validateMinWidth = (component: Generic.Element.Component, value?: MinWidthPropType, options?: WatchStringOptions): void => {\n\twatchValidator<MinWidthPropType>(\n\t\tcomponent,\n\t\t'_minWidth',\n\t\t(v) => typeof v === 'string' && HEADER_CELL_WIDTH_VALIDATOR.test(v),\n\t\tnew Set(['String', '/^\\\\d+(\\\\.\\\\d+)?([a-z]+|%)?$/']),\n\t\tvalue,\n\t\toptions,\n\t);\n};\n","import type { JSX } from '@stencil/core';\nimport { Component, Element, Fragment, h, Listen, Prop, State, Watch } from '@stencil/core';\n\nimport clsx from 'clsx';\nimport { KolButtonWcTag, KolIconTag, KolTooltipWcTag } from '../../core/component-names';\nimport type { TranslationKey } from '../../i18n';\nimport { translate } from '../../i18n';\nimport type {\n\tKoliBriTableCell,\n\tKoliBriTableDataType,\n\tKoliBriTableHeaderCell,\n\tKoliBriTableHeaderCellWithLogic,\n\tKoliBriTableHeaders,\n\tKoliBriTableRender,\n\tLabelPropType,\n\tSelectionChangeEventPayload,\n\tTableCallbacksPropType,\n\tTableDataFootPropType,\n\tTableDataPropType,\n\tTableHeaderCellsPropType,\n\tTableSelectionPropType,\n\tTableStatelessAPI,\n\tTableStatelessStates,\n} from '../../schema';\nimport {\n\tvalidateLabel,\n\tvalidateTableCallbacks,\n\tvalidateTableData,\n\tvalidateTableDataFoot,\n\tvalidateTableHeaderCells,\n\tvalidateTableSelection,\n} from '../../schema';\nimport { Callback } from '../../schema/enums';\nimport type { MinWidthPropType } from '../../schema/props/min-width';\nimport { validateMinWidth } from '../../schema/props/min-width';\nimport { nonce } from '../../utils/dev.utils';\nimport { dispatchDomEvent, KolEvent } from '../../utils/events';\n\n/**\n * @internal\n */\n@Component({\n\ttag: 'kol-table-stateless-wc',\n\tshadow: false,\n})\nexport class KolTableStateless implements TableStatelessAPI {\n\t@Element() private readonly host?: HTMLKolTableStatelessWcElement;\n\n\t@State() public state: TableStatelessStates = {\n\t\t_data: [],\n\t\t_headerCells: {\n\t\t\thorizontal: [],\n\t\t\tvertical: [],\n\t\t},\n\t\t_label: '',\n\t\t_minWidth: 'auto',\n\t};\n\n\tprivate tableDivElement?: HTMLDivElement;\n\tprivate tableDivElementResizeObserver?: ResizeObserver;\n\tprivate horizontal = true;\n\tprivate cellsToRenderTimeouts = new Map<HTMLElement, ReturnType<typeof setTimeout>>();\n\tprivate dataToKeyMap = new Map<KoliBriTableDataType, string>();\n\n\tprivate checkboxRefs: HTMLInputElement[] = [];\n\n\t@State()\n\tprivate tableDivElementHasScrollbar = false;\n\n\t/**\n\t * Defines the primary table data.\n\t */\n\t@Prop() public _data!: TableDataPropType;\n\n\t/**\n\t * Defines the data for the table footer.\n\t */\n\t@Prop() public _dataFoot?: TableDataFootPropType;\n\n\t/**\n\t * Defines the horizontal and vertical table headers.\n\t */\n\t@Prop() public _headerCells!: TableHeaderCellsPropType;\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!: string;\n\n\t/**\n\t * Defines the table min-width (CSS width values).\n\t */\n\t@Prop() public _minWidth!: MinWidthPropType;\n\n\t/**\n\t * Defines the callback functions for table events.\n\t */\n\t@Prop() public _on?: TableCallbacksPropType;\n\n\t/**\n\t * Defines how rows can be selected and the current selection.\n\t */\n\t@Prop() public _selection?: TableSelectionPropType;\n\n\t@Watch('_data')\n\tpublic validateData(value?: TableDataPropType) {\n\t\tvalidateTableData(this, value, {\n\t\t\tbeforePatch: (nextValue) => {\n\t\t\t\tthis.updateDataToKeyMap(nextValue as KoliBriTableDataType[]);\n\t\t\t},\n\t\t});\n\t}\n\n\t@Watch('_dataFoot')\n\tpublic validateDataFoot(value?: TableDataFootPropType) {\n\t\tvalidateTableDataFoot(this, value);\n\t}\n\n\t@Watch('_headerCells')\n\tpublic validateHeaderCells(value?: TableHeaderCellsPropType) {\n\t\tvalidateTableHeaderCells(this, value);\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\t@Watch('_minWidth')\n\tpublic validateMinWidth(value?: MinWidthPropType): void {\n\t\tvalidateMinWidth(this, value);\n\t}\n\n\t@Watch('_on')\n\tpublic validateOn(value?: TableCallbacksPropType): void {\n\t\tvalidateTableCallbacks(this, value);\n\t}\n\n\t@Watch('_selection')\n\tpublic validateSelection(value?: TableSelectionPropType): void {\n\t\tvalidateTableSelection(this, value);\n\t}\n\n\t@Listen('keydown')\n\tpublic handleKeyDown(event: KeyboardEvent) {\n\t\tif (event.key === 'ArrowUp' || event.key === 'ArrowDown') {\n\t\t\tconst focusedElement = this.tableDivElement?.querySelector(':focus') as HTMLInputElement;\n\t\t\tlet index = this.checkboxRefs.indexOf(focusedElement);\n\n\t\t\tif (index > -1) {\n\t\t\t\tevent.preventDefault();\n\n\t\t\t\tif (event.key === 'ArrowDown') {\n\t\t\t\t\tindex = (index + 1) % this.checkboxRefs.length;\n\t\t\t\t\tthis.checkboxRefs[index].focus();\n\t\t\t\t} else if (event.key === 'ArrowUp') {\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\tindex = (index + this.checkboxRefs.length - 1) % this.checkboxRefs.length;\n\t\t\t\t\tthis.checkboxRefs[index].focus();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic componentDidRender(): void {\n\t\tthis.checkDivElementScrollbar();\n\t}\n\n\tpublic componentDidLoad() {\n\t\tif (this.tableDivElement && ResizeObserver) {\n\t\t\tthis.tableDivElementResizeObserver = new ResizeObserver(this.checkDivElementScrollbar.bind(this));\n\t\t\tthis.tableDivElementResizeObserver.observe(this.tableDivElement);\n\t\t}\n\t}\n\n\tpublic disconnectedCallback() {\n\t\tthis.tableDivElementResizeObserver?.disconnect();\n\t}\n\n\tprivate checkDivElementScrollbar() {\n\t\tif (this.tableDivElement) {\n\t\t\tthis.tableDivElementHasScrollbar = this.tableDivElement.scrollWidth > this.tableDivElement.clientWidth;\n\t\t}\n\t}\n\n\tprivate updateDataToKeyMap(data: KoliBriTableDataType[]) {\n\t\tdata.forEach((data) => {\n\t\t\tif (!this.dataToKeyMap.has(data)) {\n\t\t\t\tthis.dataToKeyMap.set(data, nonce());\n\t\t\t}\n\t\t});\n\n\t\t/* Cleanup old values from map */\n\t\tthis.dataToKeyMap.forEach((_, key) => {\n\t\t\tif (!data.includes(key)) {\n\t\t\t\tthis.dataToKeyMap.delete(key);\n\t\t\t}\n\t\t});\n\t}\n\n\tprivate getDataKey(data: KoliBriTableDataType) {\n\t\treturn this.dataToKeyMap.get(data);\n\t}\n\n\t/**\n\t * Applies a custom render function to a specific table cell if provided.\n\t * Ensures that the content is updated after a delay to avoid excessive re-renders.\n\t *\n\t * @param {KoliBriTableCell} cell The cell to be rendered, with a possible custom `render` function.\n\t * @param {HTMLElement} el The HTML element where the cell is rendered.\n\t */\n\tprivate cellRender(cell: KoliBriTableCell, el?: HTMLElement): void {\n\t\tif (el) {\n\t\t\tclearTimeout(this.cellsToRenderTimeouts.get(el));\n\t\t\tthis.cellsToRenderTimeouts.set(\n\t\t\t\tel,\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tif (typeof cell.render === 'function') {\n\t\t\t\t\t\tconst renderContent = cell.render(el, cell, cell.data, this.state._data);\n\t\t\t\t\t\tif (typeof renderContent === 'string') {\n\t\t\t\t\t\t\tel.textContent = renderContent;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}),\n\t\t\t);\n\t\t}\n\t}\n\n\tprivate getNumberOfCols(horizontalHeaders: KoliBriTableHeaderCell[][], data: KoliBriTableDataType[]): number {\n\t\tlet max = 0;\n\t\thorizontalHeaders.forEach((row) => {\n\t\t\tlet count = 0;\n\t\t\tArray.isArray(row) && row.forEach((col) => (count += col.colSpan ?? 1));\n\t\t\tif (max < count) {\n\t\t\t\tmax = count;\n\t\t\t}\n\t\t});\n\t\tif (max === 0) {\n\t\t\tmax = data.length;\n\t\t}\n\t\treturn max;\n\t}\n\n\tprivate getNumberOfRows(verticalHeaders: KoliBriTableHeaderCell[][], data: KoliBriTableDataType[]): number {\n\t\tlet max = 0;\n\t\tverticalHeaders.forEach((col) => {\n\t\t\tlet count = 0;\n\t\t\tArray.isArray(col) && col.forEach((row) => (count += row.rowSpan ?? 1));\n\t\t\tif (max < count) {\n\t\t\t\tmax = count;\n\t\t\t}\n\t\t});\n\t\tif (max === 0) {\n\t\t\tmax = data.length;\n\t\t} else {\n\t\t\tmax -= this.state._dataFoot?.length || 0;\n\t\t}\n\t\treturn max;\n\t}\n\n\tprivate getThePrimaryHeadersWithKeysIfExists(headers: KoliBriTableHeaderCell[][]): KoliBriTableHeaderCell[] {\n\t\tconst primaryHeadersWithKeys: KoliBriTableHeaderCell[] = [];\n\n\t\theaders.forEach((cells) => {\n\t\t\tcells.forEach((cell) => {\n\t\t\t\tif (typeof cell.key === 'string') {\n\t\t\t\t\tprimaryHeadersWithKeys.push(cell);\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\n\t\treturn primaryHeadersWithKeys;\n\t}\n\n\tprivate getPrimaryHeaders(headers: KoliBriTableHeaders): KoliBriTableHeaderCell[] {\n\t\tlet primaryHeadersWithKeys: KoliBriTableHeaderCell[] = this.getThePrimaryHeadersWithKeysIfExists(headers.horizontal ?? []);\n\n\t\t/**\n\t\t * It is important to note that the rendering direction of the data is implicitly set,\n\t\t * if either the horizontal or vertical header cells have keys.\n\t\t */\n\t\tthis.horizontal = true;\n\t\tif (primaryHeadersWithKeys.length === 0) {\n\t\t\tprimaryHeadersWithKeys = this.getThePrimaryHeadersWithKeysIfExists(headers.vertical ?? []);\n\t\t\tif (primaryHeadersWithKeys.length > 0) {\n\t\t\t\tthis.horizontal = false;\n\t\t\t}\n\t\t}\n\t\treturn primaryHeadersWithKeys;\n\t}\n\n\tprivate createDataField(data: KoliBriTableDataType[], headers: KoliBriTableHeaders, isFoot?: boolean): (KoliBriTableCell & KoliBriTableDataType)[][] {\n\t\theaders.horizontal = Array.isArray(headers?.horizontal) ? headers.horizontal : [];\n\t\theaders.vertical = Array.isArray(headers?.vertical) ? headers.vertical : [];\n\t\tconst primaryHeader = this.getPrimaryHeaders(headers);\n\t\tconst maxCols = this.getNumberOfCols(headers.horizontal, data);\n\t\tlet maxRows = this.getNumberOfRows(headers.vertical, data);\n\t\tlet startRow = 0;\n\t\tif (isFoot) {\n\t\t\tstartRow = maxRows;\n\t\t\tmaxRows += this.state._dataFoot?.length || 0;\n\t\t}\n\t\tconst dataField: KoliBriTableCell[][] = [];\n\n\t\tconst rowCount: number[] = [];\n\t\tconst rowSpans: number[][] = [];\n\t\theaders.vertical.forEach((_row, index) => {\n\t\t\trowCount[index] = 0;\n\t\t\trowSpans[index] = [];\n\t\t});\n\n\t\tfor (let i = startRow; i < maxRows; i++) {\n\t\t\tconst dataRow: KoliBriTableHeaderCellWithLogic[] = [];\n\t\t\theaders.vertical.forEach((headerCells, index) => {\n\t\t\t\tlet rowsTotal = 0;\n\t\t\t\trowSpans[index].forEach((value) => (rowsTotal += value));\n\t\t\t\tif (rowsTotal <= i) {\n\t\t\t\t\tconst rows = headerCells[i - rowsTotal + rowCount[index]];\n\t\t\t\t\tif (typeof rows === 'object') {\n\t\t\t\t\t\tdataRow.push({\n\t\t\t\t\t\t\t...rows,\n\t\t\t\t\t\t\theaderCell: true,\n\t\t\t\t\t\t\tdata: {},\n\t\t\t\t\t\t});\n\t\t\t\t\t\tlet rowSpan = 1;\n\t\t\t\t\t\tif (typeof rows.rowSpan === 'number' && rows.rowSpan > 1) {\n\t\t\t\t\t\t\trowSpan = rows.rowSpan;\n\t\t\t\t\t\t}\n\t\t\t\t\t\trowSpans[index].push(rowSpan);\n\t\t\t\t\t\tif (typeof rows.colSpan === 'number' && rows.colSpan > 1) {\n\t\t\t\t\t\t\tfor (let k = 1; k < rows.colSpan; k++) {\n\t\t\t\t\t\t\t\trowSpans[index + k].push(rowSpan);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\trowCount[index]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tfor (let j = 0; j < maxCols; j++) {\n\t\t\t\tif (this.horizontal === true) {\n\t\t\t\t\tconst row = isFoot && this.state._dataFoot ? this.state._dataFoot[i - startRow] : data[i];\n\t\t\t\t\tif (\n\t\t\t\t\t\ttypeof primaryHeader[j] === 'object' &&\n\t\t\t\t\t\tprimaryHeader[j] !== null &&\n\t\t\t\t\t\ttypeof primaryHeader[j].key === 'string' &&\n\t\t\t\t\t\ttypeof row === 'object' &&\n\t\t\t\t\t\trow !== null\n\t\t\t\t\t) {\n\t\t\t\t\t\tdataRow.push({\n\t\t\t\t\t\t\t...primaryHeader[j],\n\t\t\t\t\t\t\tcolSpan: undefined,\n\t\t\t\t\t\t\tdata: row,\n\t\t\t\t\t\t\tlabel: row[primaryHeader[j].key as unknown as string] as string,\n\t\t\t\t\t\t\trowSpan: undefined,\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (\n\t\t\t\t\t\ttypeof primaryHeader[i] === 'object' &&\n\t\t\t\t\t\tprimaryHeader[i] !== null &&\n\t\t\t\t\t\ttypeof primaryHeader[i].key === 'string' &&\n\t\t\t\t\t\ttypeof data[j] === 'object' &&\n\t\t\t\t\t\tdata[j] !== null\n\t\t\t\t\t) {\n\t\t\t\t\t\tdataRow.push({\n\t\t\t\t\t\t\t...primaryHeader[i],\n\t\t\t\t\t\t\tcolSpan: undefined,\n\t\t\t\t\t\t\tdata: data[j],\n\t\t\t\t\t\t\tlabel: data[j][primaryHeader[i].key as unknown as number] as string,\n\t\t\t\t\t\t\trowSpan: undefined,\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tdataField.push(dataRow);\n\t\t}\n\t\tif (data.length === 0) {\n\t\t\tlet colspan = 0;\n\t\t\tlet rowspan = 0;\n\t\t\tif (Array.isArray(headers.horizontal) && headers.horizontal.length > 0) {\n\t\t\t\theaders.horizontal[0].forEach((col) => {\n\t\t\t\t\tcolspan += col.colSpan || 1;\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tif (Array.isArray(headers.vertical) && headers.vertical.length > 0) {\n\t\t\t\tcolspan -= headers.vertical.length;\n\t\t\t\theaders.vertical[0].forEach((row) => {\n\t\t\t\t\trowspan += row.rowSpan || 1;\n\t\t\t\t});\n\t\t\t}\n\t\t\tconst emptyCell = {\n\t\t\t\tcolSpan: colspan,\n\t\t\t\tlabel: translate('kol-no-entries'),\n\t\t\t\trender: undefined,\n\t\t\t\trowSpan: Math.max(rowspan, 1),\n\t\t\t};\n\t\t\tif (dataField.length === 0) {\n\t\t\t\tdataField.push([emptyCell]);\n\t\t\t} else {\n\t\t\t\tdataField[0].push(emptyCell);\n\t\t\t}\n\t\t}\n\t\treturn dataField;\n\t}\n\n\tprivate handleSelectionChangeCallbackAndEvent(event: Event, payload: SelectionChangeEventPayload) {\n\t\tif (typeof this.state._on?.[Callback.onSelectionChange] === 'function') {\n\t\t\tthis.state._on[Callback.onSelectionChange](event, payload);\n\t\t}\n\t\tif (this.host) {\n\t\t\tdispatchDomEvent(this.host, KolEvent.selectionChange, payload);\n\t\t}\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateData(this._data);\n\t\tthis.validateDataFoot(this._dataFoot);\n\t\tthis.validateHeaderCells(this._headerCells);\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateMinWidth(this._minWidth);\n\t\tthis.validateOn(this._on);\n\t\tthis.validateSelection(this._selection);\n\t}\n\n\t/**\n\t * Renders the selection cell for a row, either as a checkbox (for multiple selection)\n\t * or as a radio button (for single selection). It handles selection states and dispatches\n\t * events for selection changes.\n\t *\n\t * @param {KoliBriTableCell[]} row The row data containing the cell with selection properties.\n\t * @param {number} rowIndex The index of the row.\n\t * @returns {JSX.Element} The rendered selection cell, either with a checkbox or radio input.\n\t */\n\tprivate renderSelectionCell(row: (KoliBriTableCell & KoliBriTableDataType)[], rowIndex: number): JSX.Element {\n\t\tconst selection = this.state._selection;\n\t\tif (!selection) return '';\n\t\tconst keyPropertyName = selection.keyPropertyName ?? 'id';\n\t\tconst firstCellData = row[0]?.data;\n\n\t\tif (!firstCellData) return '';\n\t\tconst keyProperty = firstCellData[keyPropertyName] as string;\n\t\tconst isMultiple = selection.multiple || selection.multiple === undefined;\n\t\tconst selected = selection?.selectedKeys?.includes(keyProperty);\n\t\tconst label = selection.label(firstCellData);\n\t\tconst props = {\n\t\t\tname: 'selection',\n\t\t\tchecked: selected,\n\t\t\tid: keyProperty,\n\t\t\t['aria-label']: label,\n\t\t};\n\t\treturn (\n\t\t\t<td key={`tbody-${rowIndex}-selection`} class=\"kol-table__cell kol-table__cell--selection\">\n\t\t\t\t<div class={clsx('kol-table__selection', { 'kol-table__selection--checked': selected })}>\n\t\t\t\t\t{isMultiple ? (\n\t\t\t\t\t\t<label class=\"kol-table__selection-label\">\n\t\t\t\t\t\t\t<KolIconTag class=\"kol-table__selection-icon\" _icons={`codicon ${selected ? 'codicon-check' : ''}`} _label=\"\" />\n\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tclass={clsx('kol-table__selection-input kol-table__selection-input--checkbox')}\n\t\t\t\t\t\t\t\tref={(el) => el && this.checkboxRefs.push(el)}\n\t\t\t\t\t\t\t\t{...props}\n\t\t\t\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\t\t\t\tonInput={(event: Event) => {\n\t\t\t\t\t\t\t\t\tconst updatedSelectedKeys = !selected\n\t\t\t\t\t\t\t\t\t\t? [...(selection?.selectedKeys ?? []), keyProperty]\n\t\t\t\t\t\t\t\t\t\t: selection?.selectedKeys?.filter((key) => key !== keyProperty);\n\t\t\t\t\t\t\t\t\tthis.handleSelectionChangeCallbackAndEvent(event, updatedSelectedKeys ?? []);\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t) : (\n\t\t\t\t\t\t<label class=\"kol-table__selection-label\">\n\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tclass={clsx('kol-table__selection-input kol-table__selection-input--radio')}\n\t\t\t\t\t\t\t\t{...props}\n\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\tonInput={(event: Event) => {\n\t\t\t\t\t\t\t\t\tthis.handleSelectionChangeCallbackAndEvent(event, keyProperty);\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t)}\n\t\t\t\t\t<KolTooltipWcTag\n\t\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\t\tclass=\"kol-table__selection-input-tooltip\"\n\t\t\t\t\t\t_align=\"right\"\n\t\t\t\t\t\t_id={`${keyProperty}-label`}\n\t\t\t\t\t\t_label={label}\n\t\t\t\t\t></KolTooltipWcTag>\n\t\t\t\t</div>\n\t\t\t</td>\n\t\t);\n\t}\n\n\t/**\n\t * Renders a full table row by mapping over each cell and calling `renderTableCell`.\n\t * It also handles the row's unique key generation and selection functionality.\n\t *\n\t * @param {KoliBriTableCell[]} row The data for the current row.\n\t * @param {number} rowIndex The index of the current row being rendered.\n\t * @param isVertical\n\t * @param isFooter\n\t * @returns {JSX.Element} The rendered row with its cells.\n\t */\n\tprivate readonly renderTableRow = (\n\t\trow: (KoliBriTableCell & KoliBriTableDataType)[],\n\t\trowIndex: number,\n\t\tisVertical: boolean,\n\t\tisFooter: boolean = false,\n\t): JSX.Element => {\n\t\tlet key = String(rowIndex);\n\t\tif (this.horizontal && row[0]?.data) {\n\t\t\tkey = this.getDataKey(row[0].data) ?? key;\n\t\t}\n\n\t\treturn (\n\t\t\t<tr\n\t\t\t\tclass={clsx('kol-table__row', {\n\t\t\t\t\t'kol-table__row--body': !isFooter,\n\t\t\t\t\t'kol-table__row--footer': isFooter,\n\t\t\t\t})}\n\t\t\t\tkey={`row-${key}`}\n\t\t\t>\n\t\t\t\t{this.renderSelectionCell(row, rowIndex)}\n\t\t\t\t{row.map((cell, colIndex) => this.renderTableCell(cell, rowIndex, colIndex, isVertical))}\n\t\t\t</tr>\n\t\t);\n\t};\n\n\t/**\n\t * Renders a table cell, either as a data cell (`<td>`) or a header cell (`<th>`).\n\t * If a custom `render` function is provided in the cell, it will be used to display content.\n\t *\n\t * @param {KoliBriTableCell} cell The cell data, containing label, colSpan, rowSpan, and potential render function.\n\t * @param {number} rowIndex The current row index.\n\t * @param {number} colIndex The current column index.\n\t * @returns {JSX.Element} The rendered table cell (either `<td>` or `<th>`).\n\t */\n\tprivate readonly renderTableCell = (cell: KoliBriTableCell, rowIndex: number, colIndex: number, isVertical: boolean): JSX.Element => {\n\t\tlet key = `${rowIndex}-${colIndex}-${cell.label}`;\n\t\tif (cell.data) {\n\t\t\tconst dataKey = this.getDataKey(cell.data);\n\t\t\tkey = dataKey ? `${dataKey}-${this.horizontal ? colIndex : rowIndex}` : key;\n\t\t}\n\n\t\tif ((cell as KoliBriTableHeaderCellWithLogic).headerCell) {\n\t\t\treturn this.renderHeadingCell(cell, rowIndex, colIndex, isVertical);\n\t\t} else {\n\t\t\treturn (\n\t\t\t\t<td\n\t\t\t\t\tkey={`cell-${key}`}\n\t\t\t\t\tclass={clsx('kol-table__cell kol-table__cell--body', {\n\t\t\t\t\t\t[`kol-table__cell--align-${cell.textAlign}`]: cell.textAlign,\n\t\t\t\t\t})}\n\t\t\t\t\tcolSpan={cell.colSpan}\n\t\t\t\t\trowSpan={cell.rowSpan}\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\ttextAlign: cell.textAlign,\n\t\t\t\t\t\twidth: cell.width,\n\t\t\t\t\t}}\n\t\t\t\t\tref={\n\t\t\t\t\t\ttypeof cell.render === 'function'\n\t\t\t\t\t\t\t? (el) => {\n\t\t\t\t\t\t\t\t\tthis.cellRender(cell as KoliBriTableHeaderCellWithLogic & { render: KoliBriTableRender }, el);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t: undefined\n\t\t\t\t\t}\n\t\t\t\t>\n\t\t\t\t\t{typeof cell.render !== 'function' ? cell.label : ''}\n\t\t\t\t</td>\n\t\t\t);\n\t\t}\n\t};\n\n\t/**\n\t * Renders the header cell for row selection. This cell contains a checkbox for selecting\n\t * all rows when selection is enabled. If multiple selection is allowed, the checkbox allows\n\t * selecting/deselecting all rows at once. It also supports an indeterminate state\n\t * if only some rows are selected.\n\t *\n\t * @returns {JSX.Element} - The rendered header cell containing the selection checkbox.\n\t */\n\tprivate renderHeadingSelectionCell(): JSX.Element {\n\t\tconst selection = this.state._selection;\n\t\tif (!selection || (!selection.multiple && selection.multiple !== undefined))\n\t\t\treturn <th class=\"kol-table__cell kol-table__cell--header\" key={`thead-0`}></th>;\n\t\tconst keyPropertyName = selection.keyPropertyName ?? 'id';\n\t\tconst selectedKeyLength = selection.selectedKeys?.length;\n\t\tconst dataLength = this.state._data.length;\n\t\tconst isChecked = selectedKeyLength === dataLength;\n\t\tconst indeterminate = selectedKeyLength !== 0 && !isChecked;\n\t\tlet translationKey = 'kol-table-selection-indeterminate' as TranslationKey;\n\t\tif (isChecked && !indeterminate) {\n\t\t\ttranslationKey = 'kol-table-selection-none';\n\t\t}\n\t\tif (selectedKeyLength === 0) {\n\t\t\ttranslationKey = 'kol-table-selection-all';\n\t\t}\n\t\tconst label = translate(translationKey);\n\t\treturn (\n\t\t\t<th key={`thead-0-selection`} class=\"kol-table__cell kol-table__cell--header\">\n\t\t\t\t<div\n\t\t\t\t\tclass={clsx('kol-table__selection', {\n\t\t\t\t\t\t'kol-table__selection--indeterminate': indeterminate,\n\t\t\t\t\t\t'kol-table__selection--checked': isChecked,\n\t\t\t\t\t})}\n\t\t\t\t>\n\t\t\t\t\t<label class=\"kol-table__selection-label\">\n\t\t\t\t\t\t<KolIconTag class=\"kol-table__selection-icon\" _icons={`codicon ${indeterminate ? 'codicon-remove' : isChecked ? 'codicon-check' : ''}`} _label=\"\" />\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tclass={clsx('kol-table__selection-input kol-table__selection-input--checkbox')}\n\t\t\t\t\t\t\tref={(el) => el && this.checkboxRefs.push(el)}\n\t\t\t\t\t\t\tname=\"selection\"\n\t\t\t\t\t\t\tchecked={isChecked && !indeterminate}\n\t\t\t\t\t\t\taria-label={label}\n\t\t\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\t\t\tonInput={(event: Event) => {\n\t\t\t\t\t\t\t\tconst selections = !isChecked ? this.state._data.map((el) => el?.[keyPropertyName] as string) : [];\n\t\t\t\t\t\t\t\tthis.handleSelectionChangeCallbackAndEvent(event, selections);\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</label>\n\t\t\t\t\t<KolTooltipWcTag\n\t\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\t\tclass=\"kol-table__selection-input-tooltip\"\n\t\t\t\t\t\t_align=\"right\"\n\t\t\t\t\t\t_id={`${translationKey}-label`}\n\t\t\t\t\t\t_label={label}\n\t\t\t\t\t></KolTooltipWcTag>\n\t\t\t\t</div>\n\t\t\t</th>\n\t\t);\n\t}\n\n\t/**\n\t * This header cell is rendered as a TD element when in addition to the horizontal header rows\n\t * there are also vertical header columns. In this case, the cell is rendered blank above the\n\t * vertical header columns.\n\t */\n\tprivate renderHeaderTdCell(): JSX.Element {\n\t\treturn (\n\t\t\t<Fragment>\n\t\t\t\t{Array.isArray(this.state._headerCells.horizontal) &&\n\t\t\t\t\tthis.state._headerCells.horizontal.length > 0 &&\n\t\t\t\t\tArray.isArray(this.state._headerCells.vertical) &&\n\t\t\t\t\tthis.state._headerCells.vertical.length > 0 &&\n\t\t\t\t\tArray.isArray(this.state._headerCells.horizontal) && (\n\t\t\t\t\t\t<td aria-hidden=\"true\" colSpan={this.state._headerCells.vertical.length} rowSpan={this.state._headerCells.horizontal.length}></td>\n\t\t\t\t\t)}\n\t\t\t</Fragment>\n\t\t);\n\t}\n\n\t/**\n\t * Renders a table header cell (`<th>`), with optional sorting functionality.\n\t * If the cell has a `sortDirection` property, a sort button is rendered within the header.\n\t *\n\t * @param {KoliBriTableHeaderCell} cell The header cell data, containing label, colSpan, rowSpan, and possible sort direction.\n\t * @param {number} rowIndex The index of the current row in the table.\n\t * @param {number} colIndex The index of the current column in the row.\n\t * @returns {JSX.Element} The rendered header cell with possible sorting controls.\n\t */\n\tprivate renderHeadingCell(cell: KoliBriTableHeaderCell, rowIndex: number, colIndex: number, isVertical: boolean): JSX.Element {\n\t\tlet ariaSort = undefined;\n\t\tlet sortButtonIcon = 'codicon codicon-fold';\n\n\t\tif (cell.sortDirection) {\n\t\t\tswitch (cell.sortDirection) {\n\t\t\t\tcase 'ASC':\n\t\t\t\t\tsortButtonIcon = 'codicon codicon-chevron-up';\n\t\t\t\t\tariaSort = 'ascending';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'DESC':\n\t\t\t\t\tsortButtonIcon = 'codicon codicon-chevron-down';\n\t\t\t\t\tariaSort = 'descending';\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tconst scope = isVertical ? 'row' : typeof cell.colSpan === 'number' && cell.colSpan > 1 ? 'colgroup' : 'col';\n\n\t\treturn (\n\t\t\t<th\n\t\t\t\tkey={`${rowIndex}-${colIndex}-${cell.label}`}\n\t\t\t\tclass={clsx('kol-table__cell kol-table__cell--header', {\n\t\t\t\t\t[`kol-table__cell--align-${cell.textAlign}`]: cell.textAlign,\n\t\t\t\t\t[`kol-table__cell--${ariaSort}`]: ariaSort,\n\t\t\t\t})}\n\t\t\t\tscope={scope}\n\t\t\t\tcolSpan={cell.colSpan}\n\t\t\t\trowSpan={cell.rowSpan}\n\t\t\t\tstyle={{\n\t\t\t\t\twidth: cell.width,\n\t\t\t\t}}\n\t\t\t\taria-sort={ariaSort}\n\t\t\t\tdata-sort={`sort-${cell.sortDirection}`}\n\t\t\t>\n\t\t\t\t{cell.sortDirection ? (\n\t\t\t\t\t<KolButtonWcTag\n\t\t\t\t\t\tclass=\"kol-table__sort-button\"\n\t\t\t\t\t\texportparts=\"icon\"\n\t\t\t\t\t\t_icons={{ right: sortButtonIcon }}\n\t\t\t\t\t\t_label={cell.label}\n\t\t\t\t\t\t_on={{\n\t\t\t\t\t\t\tonClick: (event: MouseEvent) => {\n\t\t\t\t\t\t\t\tif (typeof this.state._on?.onSort === 'function' && cell.key && cell.sortDirection) {\n\t\t\t\t\t\t\t\t\tthis.state._on.onSort(event, {\n\t\t\t\t\t\t\t\t\t\tkey: cell.key,\n\t\t\t\t\t\t\t\t\t\tcurrentSortDirection: cell.sortDirection,\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (this.host) {\n\t\t\t\t\t\t\t\t\tdispatchDomEvent(this.host, KolEvent.sort, {\n\t\t\t\t\t\t\t\t\t\tkey: cell.key,\n\t\t\t\t\t\t\t\t\t\tcurrentSortDirection: cell.sortDirection,\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t}}\n\t\t\t\t\t></KolButtonWcTag>\n\t\t\t\t) : (\n\t\t\t\t\tcell.label\n\t\t\t\t)}\n\t\t\t</th>\n\t\t);\n\t}\n\n\tprivate renderSpacer(variant: 'foot' | 'head', cellDefs: KoliBriTableHeaderCell[][] | KoliBriTableCell[][]): JSX.Element {\n\t\tconst verticalHeaderColpan = this.state._headerCells.vertical?.length || 0;\n\t\tconst colspan = cellDefs?.[0]?.reduce((acc, row) => acc + (row.colSpan || 1), 0);\n\t\tconst selectionCell = this.state._selection ? 1 : 0;\n\n\t\treturn (\n\t\t\t<tr aria-hidden=\"true\" class={clsx('kol-table__spacer', `kol-table__spacer--${variant}`)}>\n\t\t\t\t<td class={clsx(`kol-table__spacer-line kol-table__spacer-line--${variant}`)} colSpan={verticalHeaderColpan + colspan + selectionCell}></td>\n\t\t\t</tr>\n\t\t);\n\t}\n\n\tprivate renderFoot(): JSX.Element[] | null {\n\t\tif (!this.state._dataFoot || this.state._dataFoot.length === 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tconst rows: KoliBriTableCell[][] = this.createDataField(this.state._dataFoot, this.state._headerCells, true);\n\t\treturn (\n\t\t\t<tfoot class=\"kol-table__footer\">\n\t\t\t\t{[\n\t\t\t\t\tthis.renderSpacer('foot', rows),\n\t\t\t\t\trows.map((row: (KoliBriTableCell & KoliBriTableDataType)[], rowIndex: number) => this.renderTableRow(row, rowIndex, true, true)),\n\t\t\t\t]}\n\t\t\t</tfoot>\n\t\t);\n\t}\n\n\tpublic render(): JSX.Element {\n\t\tconst dataField = this.createDataField(this.state._data, this.state._headerCells);\n\t\tthis.checkboxRefs = [];\n\n\t\treturn (\n\t\t\t/* Firefox automatically makes the following div focusable when it has a scrollbar. We implement a similar behavior cross-browser by allowing the\n\t\t\t * <div class=\"focus-element\"> to receive focus. Hence, we disable focus for the div to avoid having two focusable elements by setting `tabindex=\"-1\"`\n\t\t\t */\n\t\t\t/* eslint-disable-next-line jsx-a11y/no-static-element-interactions */\n\t\t\t<div ref={(element) => (this.tableDivElement = element)} class=\"kol-table\" tabindex={this.tableDivElementHasScrollbar ? '-1' : undefined}>\n\t\t\t\t<table\n\t\t\t\t\tclass=\"kol-table__table\"\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\tminWidth: this.state._minWidth,\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t{/*\n\t\t\t\t\t * The following element allows the table to receive focus without providing redundant content to screen readers.\n\t\t\t\t\t * The `div` is technically not allowed here. But any allowed element would mutate the table semantics. Additionally, the `&nbsp;` is necessary to\n\t\t\t\t\t * prevent screen readers from just reading \"blank\".\n\t\t\t\t\t */}\n\t\t\t\t\t{/* eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex */}\n\t\t\t\t\t<div class=\"kol-table__focus-element\" tabindex={this.tableDivElementHasScrollbar ? '0' : undefined} aria-describedby=\"caption\">\n\t\t\t\t\t\t&nbsp;\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<caption class=\"kol-table__caption\" id=\"caption\">\n\t\t\t\t\t\t{this.state._label}\n\t\t\t\t\t</caption>\n\n\t\t\t\t\t{Array.isArray(this.state._headerCells.horizontal) && (\n\t\t\t\t\t\t<thead class=\"kol-table__head\">\n\t\t\t\t\t\t\t{[\n\t\t\t\t\t\t\t\tthis.state._headerCells.horizontal.map((cols, rowIndex) => (\n\t\t\t\t\t\t\t\t\t<tr class=\"kol-table__head-row\" key={`thead-${rowIndex}`}>\n\t\t\t\t\t\t\t\t\t\t{this.state._selection && this.renderHeadingSelectionCell()}\n\t\t\t\t\t\t\t\t\t\t{rowIndex === 0 && this.renderHeaderTdCell()}\n\t\t\t\t\t\t\t\t\t\t{Array.isArray(cols) && cols.map((cell, colIndex) => this.renderHeadingCell(cell, rowIndex, colIndex, false))}\n\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t)),\n\t\t\t\t\t\t\t\tthis.renderSpacer('head', this.state._headerCells.horizontal),\n\t\t\t\t\t\t\t]}\n\t\t\t\t\t\t</thead>\n\t\t\t\t\t)}\n\t\t\t\t\t<tbody class=\"kol-table__body\">\n\t\t\t\t\t\t{dataField.map((row: (KoliBriTableCell & KoliBriTableDataType)[], rowIndex: number) => this.renderTableRow(row, rowIndex, true))}\n\t\t\t\t\t</tbody>\n\t\t\t\t\t{this.renderFoot()}\n\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,MAAMC,QAAQ4M,IAASA,EAAK5K,KAAI,CAACC,EAAMC,IAAatB,KAAK2B,kBAAkBN,EAAMd,EAAUe,EAAU,YAGxGtB,KAAKqL,aAAa,OAAQrL,KAAKwF,MAAMlD,aAAarD,cAIrD+B,EAAA,SAAAN,IAAA,2CAAOO,MAAM,mBACX6F,EAAU1F,KAAI,CAACd,EAAkDC,IAAqBP,KAAKK,eAAeC,EAAKC,EAAU,SAE1HP,KAAK4L,c","ignoreList":[]}
1
+ {"version":3,"names":["validateTableHeaderCells","component","value","emptyStringByArrayHandler","objectObjectHandler","parseJson","e","watchValidator","horizontal","undefined","Array","isArray","find","headerRow","vertical","headerCol","Set","HEADER_CELL_WIDTH_VALIDATOR","validateMinWidth","options","v","test","KolTableStateless","this","cellsToRenderTimeouts","Map","dataToKeyMap","checkboxRefs","renderTableRow","row","rowIndex","isVertical","isFooter","key","String","_a","data","_b","getDataKey","h","class","clsx","renderSelectionCell","map","cell","colIndex","renderTableCell","columnSetting","getColumnSettings","visible","label","dataKey","headerCell","renderHeadingCell","textAlign","colSpan","rowSpan","style","width","ref","render","el","cellRender","_data","_headerCells","_label","_minWidth","validateData","validateTableData","beforePatch","nextValue","updateDataToKeyMap","validateDataFoot","validateTableDataFoot","validateHeaderCells","initializeTableSettings","validateLabel","required","validateOn","validateTableCallbacks","validateSelection","validateTableSelection","validateTableSettings","handleKeyDown","event","focusedElement","tableDivElement","querySelector","index","indexOf","preventDefault","length","focus","componentDidRender","checkDivElementScrollbar","componentDidLoad","ResizeObserver","tableDivElementResizeObserver","bind","observe","handleSettingsChange","setState","detail","disconnectedCallback","disconnect","tableDivElementHasScrollbar","scrollWidth","clientWidth","forEach","has","set","nonce","_","includes","delete","get","clearTimeout","setTimeout","renderContent","state","textContent","getNumberOfCols","horizontalHeaders","max","count","col","getNumberOfRows","verticalHeaders","_dataFoot","getThePrimaryHeadersWithKeysIfExists","headers","primaryHeadersWithKeys","cells","push","getPrimaryHeaders","getColumnPositionMap","keyToPosition","_tableSettings","columns","setting","position","sortByColumnPosition","sort","a","b","posA","Number","MAX_SAFE_INTEGER","posB","_d","_c","createDataField","isFoot","primaryHeader","maxCols","maxRows","startRow","dataField","rowCount","rowSpans","_row","sortedPrimaryHeader","i","dataRow","headerCells","rowsTotal","rows","Object","assign","k","j","colspan","rowspan","emptyCell","translate","Math","handleSelectionChangeCallbackAndEvent","payload","_on","Callback","onSelectionChange","host","dispatchDomEvent","KolEvent","selectionChange","primaryHeaders","filter","header","componentWillLoad","_selection","selection","keyPropertyName","getSelectionKeyPropertyName","firstCellData","keyProperty","isMultiple","multiple","selected","selectedKeys","disabled","disabledKeys","props","name","checked","id","KolIconTag","_icons","type","onInput","updatedSelectedKeys","KolTooltipWcTag","_align","_id","getDataWithSelectionEnabled","item","getSelectedKeysWithoutDisabledKeys","getSelectedKeysWithDisabledKeysOnly","getRevertedSelection","selectAll","getTableMinWidth","totalColumnWidth","reduce","total","renderHeadingSelectionCell","selectedKeyLength","dataLength","isChecked","indeterminate","translationKey","renderHeaderTdCell","Fragment","columnSettings","ariaSort","sortButtonIcon","sortDirection","scope","KolButtonWcTag","exportparts","right","onClick","onSort","currentSortDirection","renderSpacer","variant","cellDefs","verticalHeaderColpan","acc","selectionCell","renderFoot","sortedHorizontalHeaders","KolTableSettingsWcTag","element","tabindex","minWidth","cols"],"sources":["src/schema/props/table-header-cells.ts","src/schema/props/min-width.ts","src/components/table-stateless/component.tsx"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\nimport type { KoliBriTableHeaderCell, Stringified } from '../types';\nimport { emptyStringByArrayHandler, objectObjectHandler, parseJson, watchValidator } from '../utils';\n\n/* types */\nexport type TableHeaderCells = {\n\thorizontal?: KoliBriTableHeaderCell[][];\n\tvertical?: KoliBriTableHeaderCell[][];\n};\n\nexport type TableHeaderCellsPropType = Stringified<TableHeaderCells>;\n\n/**\n * Defines the horizontal and vertical table header cells.\n */\nexport type PropTableHeaderCells = {\n\theaderCells: TableHeaderCellsPropType;\n};\n\n/* validator */\nexport const validateTableHeaderCells = (component: Generic.Element.Component, value?: TableHeaderCellsPropType): void => {\n\temptyStringByArrayHandler(value, () => {\n\t\tobjectObjectHandler(value, () => {\n\t\t\ttry {\n\t\t\t\tvalue = parseJson<TableHeaderCells>(value);\n\t\t\t} catch (e) {\n\t\t\t\tvoid e;\n\t\t\t}\n\t\t\twatchValidator(\n\t\t\t\tcomponent,\n\t\t\t\t'_headerCells',\n\t\t\t\t(value): boolean =>\n\t\t\t\t\ttypeof value === 'object' &&\n\t\t\t\t\tvalue !== null &&\n\t\t\t\t\t(value.horizontal === undefined ||\n\t\t\t\t\t\t(Array.isArray(value.horizontal) && value.horizontal.find((headerRow) => !Array.isArray(headerRow)) === undefined)) &&\n\t\t\t\t\t(value.vertical === undefined || (Array.isArray(value.vertical) && value.vertical.find((headerCol) => !Array.isArray(headerCol)) === undefined)) &&\n\t\t\t\t\ttrue,\n\t\t\t\tnew Set(['TableHeaderCellsPropType']),\n\t\t\t\tvalue,\n\t\t\t);\n\t\t});\n\t});\n};\n","import type { Generic } from 'adopted-style-sheets';\nimport type { WatchStringOptions } from '../utils';\nimport { watchValidator } from '../utils';\n\n/* types */\nexport type MinWidthPropType = string;\n\n/**\n * Defines the technical name of an input field.\n */\nexport type PropMinWidth = {\n\tminWidth: MinWidthPropType;\n};\n\n/* constants */\n/**\n * Regular expression to validate the width of a header cell.\n */\nconst HEADER_CELL_WIDTH_VALIDATOR = /^\\d+(\\.\\d+)?([a-z]+|%)?$/;\n\n/* validator */\nexport const validateMinWidth = (component: Generic.Element.Component, value?: MinWidthPropType, options?: WatchStringOptions): void => {\n\twatchValidator<MinWidthPropType>(\n\t\tcomponent,\n\t\t'_minWidth',\n\t\t(v) => typeof v === 'string' && HEADER_CELL_WIDTH_VALIDATOR.test(v),\n\t\tnew Set(['String', '/^\\\\d+(\\\\.\\\\d+)?([a-z]+|%)?$/']),\n\t\tvalue,\n\t\toptions,\n\t);\n};\n","import type { JSX } from '@stencil/core';\nimport { Component, Element, Fragment, h, Listen, Prop, State, Watch } from '@stencil/core';\n\nimport clsx from 'clsx';\nimport { KolButtonWcTag, KolIconTag, KolTableSettingsWcTag, KolTooltipWcTag } from '../../core/component-names';\nimport type { TranslationKey } from '../../i18n';\nimport { translate } from '../../i18n';\nimport type {\n\tKoliBriTableCell,\n\tKoliBriTableDataType,\n\tKoliBriTableHeaderCell,\n\tKoliBriTableHeaderCellWithLogic,\n\tKoliBriTableHeaders,\n\tKoliBriTableRender,\n\tLabelPropType,\n\tSelectionChangeEventPayload,\n\tTableCallbacksPropType,\n\tTableDataFootPropType,\n\tTableDataPropType,\n\tTableHeaderCellsPropType,\n\tTableSelectionPropType,\n\tTableSettings,\n\tTableStatelessAPI,\n\tTableStatelessStates,\n} from '../../schema';\nimport { setState } from '../../schema';\nimport {\n\tvalidateLabel,\n\tvalidateTableCallbacks,\n\tvalidateTableData,\n\tvalidateTableDataFoot,\n\tvalidateTableHeaderCells,\n\tvalidateTableSelection,\n} from '../../schema';\nimport type { ColumnSettings } from '../../schema/types';\nimport { Callback } from '../../schema/enums';\nimport type { MinWidthPropType } from '../../schema/props/min-width';\nimport { validateMinWidth } from '../../schema/props/min-width';\nimport { nonce } from '../../utils/dev.utils';\nimport { dispatchDomEvent, KolEvent } from '../../utils/events';\nimport type { TableSettingsPropType } from '../../schema/props/table-settings';\nimport { validateTableSettings } from '../../schema/props/table-settings';\n\n/**\n * @internal\n */\n@Component({\n\ttag: 'kol-table-stateless-wc',\n\tshadow: false,\n})\nexport class KolTableStateless implements TableStatelessAPI {\n\t@Element() private readonly host?: HTMLKolTableStatelessWcElement;\n\n\t@State() public state: TableStatelessStates = {\n\t\t_data: [],\n\t\t_headerCells: {\n\t\t\thorizontal: [],\n\t\t\tvertical: [],\n\t\t},\n\t\t_label: '',\n\t\t_minWidth: 'auto',\n\t};\n\n\tprivate tableDivElement?: HTMLDivElement;\n\tprivate tableDivElementResizeObserver?: ResizeObserver;\n\tprivate horizontal = true;\n\tprivate cellsToRenderTimeouts = new Map<HTMLElement, ReturnType<typeof setTimeout>>();\n\tprivate dataToKeyMap = new Map<KoliBriTableDataType, string>();\n\n\tprivate checkboxRefs: HTMLInputElement[] = [];\n\n\t@State()\n\tprivate tableDivElementHasScrollbar = false;\n\n\t/**\n\t * Defines the primary table data.\n\t */\n\t@Prop() public _data!: TableDataPropType;\n\n\t/**\n\t * Defines the data for the table footer.\n\t */\n\t@Prop() public _dataFoot?: TableDataFootPropType;\n\n\t/**\n\t * Defines the horizontal and vertical table headers.\n\t */\n\t@Prop() public _headerCells!: TableHeaderCellsPropType;\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!: string;\n\n\t/**\n\t * Defines the table min-width (CSS width values).\n\t */\n\t@Prop() public _minWidth!: MinWidthPropType;\n\n\t/**\n\t * Defines the callback functions for table events.\n\t */\n\t@Prop() public _on?: TableCallbacksPropType;\n\n\t/**\n\t * Defines how rows can be selected and the current selection.\n\t */\n\t@Prop() public _selection?: TableSelectionPropType;\n\n\t/**\n\t * Defines the table settings including column visibility, order and width.\n\t */\n\t@Prop() public _tableSettings?: TableSettingsPropType;\n\n\t@Watch('_data')\n\tpublic validateData(value?: TableDataPropType) {\n\t\tvalidateTableData(this, value, {\n\t\t\tbeforePatch: (nextValue) => {\n\t\t\t\tthis.updateDataToKeyMap(nextValue as KoliBriTableDataType[]);\n\t\t\t},\n\t\t});\n\t}\n\n\t@Watch('_dataFoot')\n\tpublic validateDataFoot(value?: TableDataFootPropType) {\n\t\tvalidateTableDataFoot(this, value);\n\t}\n\n\t@Watch('_headerCells')\n\tpublic validateHeaderCells(value?: TableHeaderCellsPropType) {\n\t\tvalidateTableHeaderCells(this, value);\n\t\tthis.initializeTableSettings();\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\t@Watch('_minWidth')\n\tpublic validateMinWidth(value?: MinWidthPropType): void {\n\t\tvalidateMinWidth(this, value);\n\t}\n\n\t@Watch('_on')\n\tpublic validateOn(value?: TableCallbacksPropType): void {\n\t\tvalidateTableCallbacks(this, value);\n\t}\n\n\t@Watch('_selection')\n\tpublic validateSelection(value?: TableSelectionPropType): void {\n\t\tvalidateTableSelection(this, value);\n\t}\n\n\t@Watch('_tableSettings')\n\tpublic validateTableSettings(value?: TableSettingsPropType) {\n\t\tvalidateTableSettings(this, value);\n\t}\n\n\t@Listen('keydown')\n\tpublic handleKeyDown(event: KeyboardEvent) {\n\t\tif (event.key === 'ArrowUp' || event.key === 'ArrowDown') {\n\t\t\tconst focusedElement = this.tableDivElement?.querySelector(':focus') as HTMLInputElement;\n\t\t\tlet index = this.checkboxRefs.indexOf(focusedElement);\n\n\t\t\tif (index > -1) {\n\t\t\t\tevent.preventDefault();\n\n\t\t\t\tif (event.key === 'ArrowDown') {\n\t\t\t\t\tindex = (index + 1) % this.checkboxRefs.length;\n\t\t\t\t\tthis.checkboxRefs[index].focus();\n\t\t\t\t} else if (event.key === 'ArrowUp') {\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\tindex = (index + this.checkboxRefs.length - 1) % this.checkboxRefs.length;\n\t\t\t\t\tthis.checkboxRefs[index].focus();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic componentDidRender(): void {\n\t\tthis.checkDivElementScrollbar();\n\t}\n\n\tpublic componentDidLoad() {\n\t\tif (this.tableDivElement && ResizeObserver) {\n\t\t\tthis.tableDivElementResizeObserver = new ResizeObserver(this.checkDivElementScrollbar.bind(this));\n\t\t\tthis.tableDivElementResizeObserver.observe(this.tableDivElement);\n\t\t}\n\t}\n\n\t@Listen('settingsChange')\n\tpublic handleSettingsChange(event: CustomEvent<TableSettings>) {\n\t\tsetState(this, '_tableSettings', event.detail);\n\t}\n\n\tpublic disconnectedCallback() {\n\t\tthis.tableDivElementResizeObserver?.disconnect();\n\t}\n\n\tprivate checkDivElementScrollbar() {\n\t\tif (this.tableDivElement) {\n\t\t\tthis.tableDivElementHasScrollbar = this.tableDivElement.scrollWidth > this.tableDivElement.clientWidth;\n\t\t}\n\t}\n\n\tprivate updateDataToKeyMap(data: KoliBriTableDataType[]) {\n\t\tdata.forEach((data) => {\n\t\t\tif (!this.dataToKeyMap.has(data)) {\n\t\t\t\tthis.dataToKeyMap.set(data, nonce());\n\t\t\t}\n\t\t});\n\n\t\t/* Cleanup old values from map */\n\t\tthis.dataToKeyMap.forEach((_, key) => {\n\t\t\tif (!data.includes(key)) {\n\t\t\t\tthis.dataToKeyMap.delete(key);\n\t\t\t}\n\t\t});\n\t}\n\n\tprivate getDataKey(data: KoliBriTableDataType) {\n\t\treturn this.dataToKeyMap.get(data);\n\t}\n\n\t/**\n\t * Applies a custom render function to a specific table cell if provided.\n\t * Ensures that the content is updated after a delay to avoid excessive re-renders.\n\t *\n\t * @param {KoliBriTableCell} cell The cell to be rendered, with a possible custom `render` function.\n\t * @param {HTMLElement} el The HTML element where the cell is rendered.\n\t */\n\tprivate cellRender(cell: KoliBriTableCell, el?: HTMLElement): void {\n\t\tif (el) {\n\t\t\tclearTimeout(this.cellsToRenderTimeouts.get(el));\n\t\t\tthis.cellsToRenderTimeouts.set(\n\t\t\t\tel,\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tif (typeof cell.render === 'function') {\n\t\t\t\t\t\tconst renderContent = cell.render(el, cell, cell.data, this.state._data);\n\t\t\t\t\t\tif (typeof renderContent === 'string') {\n\t\t\t\t\t\t\tel.textContent = renderContent;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}),\n\t\t\t);\n\t\t}\n\t}\n\n\tprivate getNumberOfCols(horizontalHeaders: KoliBriTableHeaderCell[][], data: KoliBriTableDataType[]): number {\n\t\tlet max = 0;\n\t\thorizontalHeaders.forEach((row) => {\n\t\t\tlet count = 0;\n\t\t\tArray.isArray(row) && row.forEach((col) => (count += col.colSpan ?? 1));\n\t\t\tif (max < count) {\n\t\t\t\tmax = count;\n\t\t\t}\n\t\t});\n\t\tif (max === 0) {\n\t\t\tmax = data.length;\n\t\t}\n\t\treturn max;\n\t}\n\n\tprivate getNumberOfRows(verticalHeaders: KoliBriTableHeaderCell[][], data: KoliBriTableDataType[]): number {\n\t\tlet max = 0;\n\t\tverticalHeaders.forEach((col) => {\n\t\t\tlet count = 0;\n\t\t\tArray.isArray(col) && col.forEach((row) => (count += row.rowSpan ?? 1));\n\t\t\tif (max < count) {\n\t\t\t\tmax = count;\n\t\t\t}\n\t\t});\n\t\tif (max === 0) {\n\t\t\tmax = data.length;\n\t\t} else {\n\t\t\tmax -= this.state._dataFoot?.length || 0;\n\t\t}\n\t\treturn max;\n\t}\n\n\tprivate getThePrimaryHeadersWithKeysIfExists(headers: KoliBriTableHeaderCell[][]): KoliBriTableHeaderCell[] {\n\t\tconst primaryHeadersWithKeys: KoliBriTableHeaderCell[] = [];\n\n\t\theaders.forEach((cells) => {\n\t\t\tcells.forEach((cell) => {\n\t\t\t\tif (typeof cell.key === 'string') {\n\t\t\t\t\tprimaryHeadersWithKeys.push(cell);\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\n\t\treturn primaryHeadersWithKeys;\n\t}\n\n\tprivate getPrimaryHeaders(headers: KoliBriTableHeaders): KoliBriTableHeaderCell[] {\n\t\tlet primaryHeadersWithKeys: KoliBriTableHeaderCell[] = this.getThePrimaryHeadersWithKeysIfExists(headers.horizontal ?? []);\n\n\t\t/**\n\t\t * It is important to note that the rendering direction of the data is implicitly set,\n\t\t * if either the horizontal or vertical header cells have keys.\n\t\t */\n\t\tthis.horizontal = true;\n\t\tif (primaryHeadersWithKeys.length === 0) {\n\t\t\tprimaryHeadersWithKeys = this.getThePrimaryHeadersWithKeysIfExists(headers.vertical ?? []);\n\t\t\tif (primaryHeadersWithKeys.length > 0) {\n\t\t\t\tthis.horizontal = false;\n\t\t\t}\n\t\t}\n\t\treturn primaryHeadersWithKeys;\n\t}\n\n\tprivate getColumnPositionMap(): Map<string, number> {\n\t\tconst keyToPosition = new Map<string, number>();\n\t\tthis.state._tableSettings?.columns.forEach((setting) => {\n\t\t\tkeyToPosition.set(setting.key, setting.position);\n\t\t});\n\t\treturn keyToPosition;\n\t}\n\n\tprivate sortByColumnPosition<T extends { key?: string }>(columns: T[]): T[] {\n\t\tconst keyToPosition = this.getColumnPositionMap();\n\t\treturn [...columns].sort((a, b) => {\n\t\t\tconst posA = keyToPosition.get(a.key ?? '') ?? Number.MAX_SAFE_INTEGER;\n\t\t\tconst posB = keyToPosition.get(b.key ?? '') ?? Number.MAX_SAFE_INTEGER;\n\t\t\treturn posA - posB;\n\t\t});\n\t}\n\n\tprivate createDataField(data: KoliBriTableDataType[], headers: KoliBriTableHeaders, isFoot?: boolean): (KoliBriTableCell & KoliBriTableDataType)[][] {\n\t\theaders.horizontal = Array.isArray(headers?.horizontal) ? headers.horizontal : [];\n\t\theaders.vertical = Array.isArray(headers?.vertical) ? headers.vertical : [];\n\t\tconst primaryHeader = this.getPrimaryHeaders(headers);\n\t\tconst maxCols = this.getNumberOfCols(headers.horizontal, data);\n\t\tlet maxRows = this.getNumberOfRows(headers.vertical, data);\n\t\tlet startRow = 0;\n\t\tif (isFoot) {\n\t\t\tstartRow = maxRows;\n\t\t\tmaxRows += this.state._dataFoot?.length || 0;\n\t\t}\n\t\tconst dataField: KoliBriTableCell[][] = [];\n\n\t\tconst rowCount: number[] = [];\n\t\tconst rowSpans: number[][] = [];\n\t\theaders.vertical.forEach((_row, index) => {\n\t\t\trowCount[index] = 0;\n\t\t\trowSpans[index] = [];\n\t\t});\n\n\t\tconst sortedPrimaryHeader = this.sortByColumnPosition(primaryHeader);\n\n\t\tfor (let i = startRow; i < maxRows; i++) {\n\t\t\tconst dataRow: KoliBriTableHeaderCellWithLogic[] = [];\n\t\t\theaders.vertical.forEach((headerCells, index) => {\n\t\t\t\tlet rowsTotal = 0;\n\t\t\t\trowSpans[index].forEach((value) => (rowsTotal += value));\n\t\t\t\tif (rowsTotal <= i) {\n\t\t\t\t\tconst rows = headerCells[i - rowsTotal + rowCount[index]];\n\t\t\t\t\tif (typeof rows === 'object') {\n\t\t\t\t\t\tdataRow.push({\n\t\t\t\t\t\t\t...rows,\n\t\t\t\t\t\t\theaderCell: true,\n\t\t\t\t\t\t\tdata: {},\n\t\t\t\t\t\t});\n\t\t\t\t\t\tlet rowSpan = 1;\n\t\t\t\t\t\tif (typeof rows.rowSpan === 'number' && rows.rowSpan > 1) {\n\t\t\t\t\t\t\trowSpan = rows.rowSpan;\n\t\t\t\t\t\t}\n\t\t\t\t\t\trowSpans[index].push(rowSpan);\n\t\t\t\t\t\tif (typeof rows.colSpan === 'number' && rows.colSpan > 1) {\n\t\t\t\t\t\t\tfor (let k = 1; k < rows.colSpan; k++) {\n\t\t\t\t\t\t\t\trowSpans[index + k].push(rowSpan);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\trowCount[index]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tfor (let j = 0; j < maxCols; j++) {\n\t\t\t\tif (this.horizontal === true) {\n\t\t\t\t\tconst row = isFoot && this.state._dataFoot ? this.state._dataFoot[i - startRow] : data[i];\n\t\t\t\t\tif (\n\t\t\t\t\t\ttypeof sortedPrimaryHeader[j] === 'object' &&\n\t\t\t\t\t\tsortedPrimaryHeader[j] !== null &&\n\t\t\t\t\t\ttypeof sortedPrimaryHeader[j].key === 'string' &&\n\t\t\t\t\t\ttypeof row === 'object' &&\n\t\t\t\t\t\trow !== null\n\t\t\t\t\t) {\n\t\t\t\t\t\tdataRow.push({\n\t\t\t\t\t\t\t...sortedPrimaryHeader[j],\n\t\t\t\t\t\t\tcolSpan: undefined,\n\t\t\t\t\t\t\tdata: row,\n\t\t\t\t\t\t\tlabel: row[sortedPrimaryHeader[j].key as unknown as string] as string,\n\t\t\t\t\t\t\trowSpan: undefined,\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (\n\t\t\t\t\t\ttypeof sortedPrimaryHeader[i] === 'object' &&\n\t\t\t\t\t\tsortedPrimaryHeader[i] !== null &&\n\t\t\t\t\t\ttypeof sortedPrimaryHeader[i].key === 'string' &&\n\t\t\t\t\t\ttypeof data[j] === 'object' &&\n\t\t\t\t\t\tdata[j] !== null\n\t\t\t\t\t) {\n\t\t\t\t\t\tdataRow.push({\n\t\t\t\t\t\t\t...sortedPrimaryHeader[i],\n\t\t\t\t\t\t\tcolSpan: undefined,\n\t\t\t\t\t\t\tdata: data[j],\n\t\t\t\t\t\t\tlabel: data[j][sortedPrimaryHeader[i].key as unknown as number] as string,\n\t\t\t\t\t\t\trowSpan: undefined,\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tdataField.push(dataRow);\n\t\t}\n\t\tif (data.length === 0) {\n\t\t\tlet colspan = 0;\n\t\t\tlet rowspan = 0;\n\t\t\tif (Array.isArray(headers.horizontal) && headers.horizontal.length > 0) {\n\t\t\t\theaders.horizontal[0].forEach((col) => {\n\t\t\t\t\tcolspan += col.colSpan || 1;\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tif (Array.isArray(headers.vertical) && headers.vertical.length > 0) {\n\t\t\t\tcolspan -= headers.vertical.length;\n\t\t\t\theaders.vertical[0].forEach((row) => {\n\t\t\t\t\trowspan += row.rowSpan || 1;\n\t\t\t\t});\n\t\t\t}\n\t\t\tconst emptyCell = {\n\t\t\t\tcolSpan: colspan,\n\t\t\t\tlabel: translate('kol-no-entries'),\n\t\t\t\trender: undefined,\n\t\t\t\trowSpan: Math.max(rowspan, 1),\n\t\t\t};\n\t\t\tif (dataField.length === 0) {\n\t\t\t\tdataField.push([emptyCell]);\n\t\t\t} else {\n\t\t\t\tdataField[0].push(emptyCell);\n\t\t\t}\n\t\t}\n\t\treturn dataField;\n\t}\n\n\tprivate handleSelectionChangeCallbackAndEvent(event: Event, payload: SelectionChangeEventPayload) {\n\t\tif (typeof this.state._on?.[Callback.onSelectionChange] === 'function') {\n\t\t\tthis.state._on[Callback.onSelectionChange](event, payload);\n\t\t}\n\t\tif (this.host) {\n\t\t\tdispatchDomEvent(this.host, KolEvent.selectionChange, payload);\n\t\t}\n\t}\n\n\tprivate initializeTableSettings() {\n\t\tif (this._tableSettings) {\n\t\t\treturn; // when tableSettings are defined via props, don't override them.\n\t\t}\n\t\tconst primaryHeaders = this.getPrimaryHeaders(this.state._headerCells as KoliBriTableHeaders);\n\t\tif (!this.state._tableSettings) {\n\t\t\tthis.state._tableSettings = { columns: [] };\n\t\t}\n\t\tthis.state._tableSettings.columns = primaryHeaders\n\t\t\t.filter((header) => header.key) // only headers with a key are supported\n\t\t\t.map((header, index) => ({\n\t\t\t\tkey: header.key ?? nonce(),\n\t\t\t\tlabel: header.label,\n\t\t\t\tposition: index,\n\t\t\t\tvisible: true,\n\t\t\t}));\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateData(this._data);\n\t\tthis.validateDataFoot(this._dataFoot);\n\t\tthis.validateHeaderCells(this._headerCells);\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateMinWidth(this._minWidth);\n\t\tthis.validateOn(this._on);\n\t\tthis.validateSelection(this._selection);\n\t\tthis.validateTableSettings(this._tableSettings);\n\t}\n\n\t/**\n\t * Renders the selection cell for a row, either as a checkbox (for multiple selection)\n\t * or as a radio button (for single selection). It handles selection states and dispatches\n\t * events for selection changes.\n\t *\n\t * @param {KoliBriTableCell[]} row The row data containing the cell with selection properties.\n\t * @param {number} rowIndex The index of the row.\n\t * @returns {JSX.Element} The rendered selection cell, either with a checkbox or radio input.\n\t */\n\tprivate renderSelectionCell(row: (KoliBriTableCell & KoliBriTableDataType)[], rowIndex: number): JSX.Element {\n\t\tconst selection = this.state._selection;\n\t\tif (!selection) return '';\n\t\tconst keyPropertyName = this.getSelectionKeyPropertyName();\n\t\tconst firstCellData = row[0]?.data;\n\n\t\tif (!firstCellData) return '';\n\t\tconst keyProperty = firstCellData[keyPropertyName] as string;\n\t\tconst isMultiple = selection.multiple || selection.multiple === undefined;\n\t\tconst selected = selection?.selectedKeys?.includes(keyProperty);\n\t\tconst disabled = selection?.disabledKeys?.includes(keyProperty);\n\t\tconst label = selection.label(firstCellData);\n\t\tconst props = {\n\t\t\tname: 'selection',\n\t\t\tchecked: selected,\n\t\t\tdisabled,\n\t\t\tid: keyProperty,\n\t\t\t['aria-label']: label,\n\t\t};\n\t\treturn (\n\t\t\t<td key={`tbody-${rowIndex}-selection`} class=\"kol-table__cell kol-table__cell--selection\">\n\t\t\t\t<div class={clsx('kol-table__selection', { 'kol-table__selection--checked': selected })}>\n\t\t\t\t\t{isMultiple ? (\n\t\t\t\t\t\t<label\n\t\t\t\t\t\t\tclass={clsx('kol-table__selection-label', {\n\t\t\t\t\t\t\t\t'kol-table__selection-label--disabled': disabled,\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<KolIconTag class=\"kol-table__selection-icon\" _icons={`codicon ${selected ? 'codicon-check' : ''}`} _label=\"\" />\n\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tclass={clsx('kol-table__selection-input kol-table__selection-input--checkbox')}\n\t\t\t\t\t\t\t\tref={(el) => el && this.checkboxRefs.push(el)}\n\t\t\t\t\t\t\t\t{...props}\n\t\t\t\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\t\t\t\tonInput={(event: Event) => {\n\t\t\t\t\t\t\t\t\tconst updatedSelectedKeys = !selected\n\t\t\t\t\t\t\t\t\t\t? [...(selection?.selectedKeys ?? []), keyProperty]\n\t\t\t\t\t\t\t\t\t\t: selection?.selectedKeys?.filter((key) => key !== keyProperty);\n\t\t\t\t\t\t\t\t\tthis.handleSelectionChangeCallbackAndEvent(event, updatedSelectedKeys ?? []);\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t) : (\n\t\t\t\t\t\t<label class=\"kol-table__selection-label\">\n\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tclass={clsx('kol-table__selection-input kol-table__selection-input--radio')}\n\t\t\t\t\t\t\t\t{...props}\n\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\tonInput={(event: Event) => {\n\t\t\t\t\t\t\t\t\tthis.handleSelectionChangeCallbackAndEvent(event, keyProperty);\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t)}\n\t\t\t\t\t<KolTooltipWcTag\n\t\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\t\tclass=\"kol-table__selection-input-tooltip\"\n\t\t\t\t\t\t_align=\"right\"\n\t\t\t\t\t\t_id={`${keyProperty}-label`}\n\t\t\t\t\t\t_label={label}\n\t\t\t\t\t></KolTooltipWcTag>\n\t\t\t\t</div>\n\t\t\t</td>\n\t\t);\n\t}\n\n\t/**\n\t * Renders a full table row by mapping over each cell and calling `renderTableCell`.\n\t * It also handles the row's unique key generation and selection functionality.\n\t *\n\t * @param {KoliBriTableCell[]} row The data for the current row.\n\t * @param {number} rowIndex The index of the current row being rendered.\n\t * @param isVertical\n\t * @param isFooter\n\t * @returns {JSX.Element} The rendered row with its cells.\n\t */\n\tprivate readonly renderTableRow = (\n\t\trow: (KoliBriTableCell & KoliBriTableDataType)[],\n\t\trowIndex: number,\n\t\tisVertical: boolean,\n\t\tisFooter: boolean = false,\n\t): JSX.Element => {\n\t\tlet key = String(rowIndex);\n\t\tif (this.horizontal && row[0]?.data) {\n\t\t\tkey = this.getDataKey(row[0].data) ?? key;\n\t\t}\n\n\t\treturn (\n\t\t\t<tr\n\t\t\t\tclass={clsx('kol-table__row', {\n\t\t\t\t\t'kol-table__row--body': !isFooter,\n\t\t\t\t\t'kol-table__row--footer': isFooter,\n\t\t\t\t})}\n\t\t\t\tkey={`row-${key}`}\n\t\t\t>\n\t\t\t\t{this.renderSelectionCell(row, rowIndex)}\n\t\t\t\t{row.map((cell, colIndex) => this.renderTableCell(cell, rowIndex, colIndex, isVertical))}\n\t\t\t</tr>\n\t\t);\n\t};\n\n\tprivate getColumnSettings(cell: KoliBriTableCell | KoliBriTableHeaderCell): ColumnSettings | undefined {\n\t\treturn this.state._tableSettings?.columns.find((setting) => setting.key === (cell as KoliBriTableHeaderCellWithLogic).key);\n\t}\n\n\t/**\n\t * Renders a table cell, either as a data cell (`<td>`) or a header cell (`<th>`).\n\t * If a custom `render` function is provided in the cell, it will be used to display content.\n\t *\n\t * @param {KoliBriTableCell} cell The cell data, containing label, colSpan, rowSpan, and potential render function.\n\t * @param {number} rowIndex The current row index.\n\t * @param {number} colIndex The current column index.\n\t * @returns {JSX.Element} The rendered table cell (either `<td>` or `<th>`).\n\t */\n\tprivate readonly renderTableCell = (cell: KoliBriTableCell, rowIndex: number, colIndex: number, isVertical: boolean): JSX.Element => {\n\t\t// Skip rendering if the column is not visible\n\t\tconst columnSetting = this.getColumnSettings(cell);\n\t\tif (columnSetting && !columnSetting.visible) {\n\t\t\treturn '';\n\t\t}\n\n\t\tlet key = `${rowIndex}-${colIndex}-${cell.label}`;\n\t\tif (cell.data) {\n\t\t\tconst dataKey = this.getDataKey(cell.data);\n\t\t\tkey = dataKey ? `${dataKey}-${this.horizontal ? colIndex : rowIndex}` : key;\n\t\t}\n\n\t\tif ((cell as KoliBriTableHeaderCellWithLogic).headerCell) {\n\t\t\treturn this.renderHeadingCell(cell, rowIndex, colIndex, isVertical);\n\t\t} else {\n\t\t\treturn (\n\t\t\t\t<td\n\t\t\t\t\tkey={`cell-${key}`}\n\t\t\t\t\tclass={clsx('kol-table__cell kol-table__cell--body', {\n\t\t\t\t\t\t[`kol-table__cell--align-${cell.textAlign}`]: cell.textAlign,\n\t\t\t\t\t})}\n\t\t\t\t\tcolSpan={cell.colSpan}\n\t\t\t\t\trowSpan={cell.rowSpan}\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\ttextAlign: cell.textAlign,\n\t\t\t\t\t\twidth: columnSetting?.width ? `${columnSetting.width}ch` : cell.width,\n\t\t\t\t\t}}\n\t\t\t\t\tref={\n\t\t\t\t\t\ttypeof cell.render === 'function'\n\t\t\t\t\t\t\t? (el) => {\n\t\t\t\t\t\t\t\t\tthis.cellRender(cell as KoliBriTableHeaderCellWithLogic & { render: KoliBriTableRender }, el);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t: undefined\n\t\t\t\t\t}\n\t\t\t\t>\n\t\t\t\t\t{typeof cell.render !== 'function' ? cell.label : ''}\n\t\t\t\t</td>\n\t\t\t);\n\t\t}\n\t};\n\n\tprivate getSelectionKeyPropertyName(): string {\n\t\treturn this.state._selection?.keyPropertyName ?? 'id';\n\t}\n\n\tprivate getDataWithSelectionEnabled() {\n\t\tconst keyPropertyName = this.getSelectionKeyPropertyName();\n\t\treturn this.state._data.filter((item) => !this.state._selection?.disabledKeys?.includes(item[keyPropertyName] as string));\n\t}\n\n\tprivate getSelectedKeysWithoutDisabledKeys() {\n\t\treturn this.state._selection?.selectedKeys?.filter((key) => !this.state._selection?.disabledKeys?.includes(key));\n\t}\n\n\tprivate getSelectedKeysWithDisabledKeysOnly() {\n\t\treturn this.state._selection?.selectedKeys?.filter((key) => this.state._selection?.disabledKeys?.includes(key));\n\t}\n\n\tprivate getRevertedSelection(selectAll: boolean) {\n\t\tconst keyPropertyName = this.getSelectionKeyPropertyName();\n\t\tconst selection = this.getSelectedKeysWithDisabledKeysOnly() ?? []; // Always include already selected, but disabled, rows.\n\n\t\tif (selectAll) {\n\t\t\tselection.push(...this.getDataWithSelectionEnabled().map((el) => el?.[keyPropertyName] as string)); // add all enabled rows\n\t\t}\n\n\t\treturn selection;\n\t}\n\n\t/**\n\t * Calculates and returns the minimum width for a table based on its settings and columns' visibility and widths.\n\t *\n\t * @return {string} The minimum width of the table as a string. If `_minWidth` is set to 'auto', the width is\n\t * calculated based on the total visible column widths in characters. Otherwise, it returns the greater value\n\t * between `_minWidth` and the calculated total visible column widths.\n\t */\n\tprivate getTableMinWidth(): string {\n\t\tconst totalColumnWidth = this.state._tableSettings?.columns.filter((col) => col.visible).reduce((total, col) => total + (col.width ?? 0), 0) ?? 0;\n\t\treturn this.state._minWidth === 'auto' ? `${totalColumnWidth}ch` : `max(${this.state._minWidth}, ${totalColumnWidth}ch)`;\n\t}\n\n\t/**\n\t * Renders the header cell for row selection. This cell contains a checkbox for selecting\n\t * all rows when selection is enabled. If multiple selection is allowed, the checkbox allows\n\t * selecting/deselecting all rows at once. It also supports an indeterminate state\n\t * if only some rows are selected.\n\t *\n\t * @returns {JSX.Element} - The rendered header cell containing the selection checkbox.\n\t */\n\tprivate renderHeadingSelectionCell(): JSX.Element {\n\t\tconst selection = this.state._selection;\n\t\tif (!selection || (!selection.multiple && selection.multiple !== undefined))\n\t\t\treturn <th class=\"kol-table__cell kol-table__cell--header\" key={`thead-0`}></th>;\n\t\tconst selectedKeyLength = this.getSelectedKeysWithoutDisabledKeys()?.length ?? 0;\n\t\tconst dataLength = this.getDataWithSelectionEnabled().length;\n\t\tconst isChecked = selectedKeyLength === dataLength;\n\t\tconst indeterminate = selectedKeyLength !== 0 && !isChecked;\n\t\tlet translationKey = 'kol-table-selection-indeterminate' as TranslationKey;\n\t\tif (isChecked && !indeterminate) {\n\t\t\ttranslationKey = 'kol-table-selection-none';\n\t\t}\n\t\tif (selectedKeyLength === 0) {\n\t\t\ttranslationKey = 'kol-table-selection-all';\n\t\t}\n\t\tconst label = translate(translationKey);\n\t\treturn (\n\t\t\t<th key={`thead-0-selection`} class=\"kol-table__cell kol-table__cell--header\">\n\t\t\t\t<div\n\t\t\t\t\tclass={clsx('kol-table__selection', {\n\t\t\t\t\t\t'kol-table__selection--indeterminate': indeterminate,\n\t\t\t\t\t\t'kol-table__selection--checked': isChecked,\n\t\t\t\t\t})}\n\t\t\t\t>\n\t\t\t\t\t<label class=\"kol-table__selection-label\">\n\t\t\t\t\t\t<KolIconTag class=\"kol-table__selection-icon\" _icons={`codicon ${indeterminate ? 'codicon-remove' : isChecked ? 'codicon-check' : ''}`} _label=\"\" />\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tclass={clsx('kol-table__selection-input kol-table__selection-input--checkbox')}\n\t\t\t\t\t\t\tdata-testid=\"selection-checkbox-all\"\n\t\t\t\t\t\t\tref={(el) => el && this.checkboxRefs.push(el)}\n\t\t\t\t\t\t\tname=\"selection\"\n\t\t\t\t\t\t\tchecked={isChecked && !indeterminate}\n\t\t\t\t\t\t\tindeterminate={indeterminate}\n\t\t\t\t\t\t\taria-label={label}\n\t\t\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\t\t\tonInput={(event: Event) => {\n\t\t\t\t\t\t\t\tthis.handleSelectionChangeCallbackAndEvent(event, this.getRevertedSelection(!isChecked));\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</label>\n\t\t\t\t\t<KolTooltipWcTag\n\t\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\t\tclass=\"kol-table__selection-input-tooltip\"\n\t\t\t\t\t\t_align=\"right\"\n\t\t\t\t\t\t_id={`${translationKey}-label`}\n\t\t\t\t\t\t_label={label}\n\t\t\t\t\t></KolTooltipWcTag>\n\t\t\t\t</div>\n\t\t\t</th>\n\t\t);\n\t}\n\n\t/**\n\t * This header cell is rendered as a TD element when in addition to the horizontal header rows\n\t * there are also vertical header columns. In this case, the cell is rendered blank above the\n\t * vertical header columns.\n\t */\n\tprivate renderHeaderTdCell(): JSX.Element {\n\t\treturn (\n\t\t\t<Fragment>\n\t\t\t\t{Array.isArray(this.state._headerCells.horizontal) &&\n\t\t\t\t\tthis.state._headerCells.horizontal.length > 0 &&\n\t\t\t\t\tArray.isArray(this.state._headerCells.vertical) &&\n\t\t\t\t\tthis.state._headerCells.vertical.length > 0 &&\n\t\t\t\t\tArray.isArray(this.state._headerCells.horizontal) && (\n\t\t\t\t\t\t<td aria-hidden=\"true\" colSpan={this.state._headerCells.vertical.length} rowSpan={this.state._headerCells.horizontal.length}></td>\n\t\t\t\t\t)}\n\t\t\t</Fragment>\n\t\t);\n\t}\n\n\t/**\n\t * Renders a table header cell (`<th>`), with optional sorting functionality.\n\t * If the cell has a `sortDirection` property, a sort button is rendered within the header.\n\t *\n\t * @param {KoliBriTableHeaderCell} cell The header cell data, containing label, colSpan, rowSpan, and possible sort direction.\n\t * @param {number} rowIndex The index of the current row in the table.\n\t * @param {number} colIndex The index of the current column in the row.\n\t * @returns {JSX.Element} The rendered header cell with possible sorting controls.\n\t */\n\tprivate renderHeadingCell(cell: KoliBriTableHeaderCell, rowIndex: number, colIndex: number, isVertical: boolean): JSX.Element {\n\t\t// Skip rendering if the column is not visible\n\t\tconst columnSettings = this.getColumnSettings(cell);\n\t\tif (columnSettings && !columnSettings.visible) {\n\t\t\treturn '';\n\t\t}\n\n\t\tlet ariaSort = undefined;\n\t\tlet sortButtonIcon = 'codicon codicon-fold';\n\n\t\tif (cell.sortDirection) {\n\t\t\tswitch (cell.sortDirection) {\n\t\t\t\tcase 'ASC':\n\t\t\t\t\tsortButtonIcon = 'codicon codicon-chevron-up';\n\t\t\t\t\tariaSort = 'ascending';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'DESC':\n\t\t\t\t\tsortButtonIcon = 'codicon codicon-chevron-down';\n\t\t\t\t\tariaSort = 'descending';\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tconst scope = isVertical ? 'row' : typeof cell.colSpan === 'number' && cell.colSpan > 1 ? 'colgroup' : 'col';\n\n\t\treturn (\n\t\t\t<th\n\t\t\t\tkey={`${rowIndex}-${colIndex}-${cell.label}`}\n\t\t\t\tclass={clsx('kol-table__cell kol-table__cell--header', {\n\t\t\t\t\t[`kol-table__cell--align-${cell.textAlign}`]: cell.textAlign,\n\t\t\t\t\t[`kol-table__cell--${ariaSort}`]: ariaSort,\n\t\t\t\t})}\n\t\t\t\tscope={scope}\n\t\t\t\tcolSpan={cell.colSpan}\n\t\t\t\trowSpan={cell.rowSpan}\n\t\t\t\tstyle={{\n\t\t\t\t\twidth: columnSettings?.width ? `${columnSettings.width}ch` : cell.width,\n\t\t\t\t}}\n\t\t\t\taria-sort={ariaSort}\n\t\t\t\tdata-sort={`sort-${cell.sortDirection}`}\n\t\t\t>\n\t\t\t\t{cell.sortDirection ? (\n\t\t\t\t\t<KolButtonWcTag\n\t\t\t\t\t\tclass=\"kol-table__sort-button\"\n\t\t\t\t\t\texportparts=\"icon\"\n\t\t\t\t\t\t_icons={{ right: sortButtonIcon }}\n\t\t\t\t\t\t_label={cell.label}\n\t\t\t\t\t\t_on={{\n\t\t\t\t\t\t\tonClick: (event: MouseEvent) => {\n\t\t\t\t\t\t\t\tif (typeof this.state._on?.onSort === 'function' && cell.key && cell.sortDirection) {\n\t\t\t\t\t\t\t\t\tthis.state._on.onSort(event, {\n\t\t\t\t\t\t\t\t\t\tkey: cell.key,\n\t\t\t\t\t\t\t\t\t\tcurrentSortDirection: cell.sortDirection,\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (this.host) {\n\t\t\t\t\t\t\t\t\tdispatchDomEvent(this.host, KolEvent.sort, {\n\t\t\t\t\t\t\t\t\t\tkey: cell.key,\n\t\t\t\t\t\t\t\t\t\tcurrentSortDirection: cell.sortDirection,\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t}}\n\t\t\t\t\t></KolButtonWcTag>\n\t\t\t\t) : (\n\t\t\t\t\tcell.label\n\t\t\t\t)}\n\t\t\t</th>\n\t\t);\n\t}\n\n\tprivate renderSpacer(variant: 'foot' | 'head', cellDefs: KoliBriTableHeaderCell[][] | KoliBriTableCell[][]): JSX.Element {\n\t\tconst verticalHeaderColpan = this.state._headerCells.vertical?.length || 0;\n\t\tconst colspan = cellDefs?.[0]?.reduce((acc, row) => acc + (row.colSpan || 1), 0);\n\t\tconst selectionCell = this.state._selection ? 1 : 0;\n\n\t\treturn (\n\t\t\t<tr aria-hidden=\"true\" class={clsx('kol-table__spacer', `kol-table__spacer--${variant}`)}>\n\t\t\t\t<td class={clsx(`kol-table__spacer-line kol-table__spacer-line--${variant}`)} colSpan={verticalHeaderColpan + colspan + selectionCell}></td>\n\t\t\t</tr>\n\t\t);\n\t}\n\n\tprivate renderFoot(): JSX.Element[] | null {\n\t\tif (!this.state._dataFoot || this.state._dataFoot.length === 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tconst rows: KoliBriTableCell[][] = this.createDataField(this.state._dataFoot, this.state._headerCells, true);\n\t\treturn (\n\t\t\t<tfoot class=\"kol-table__footer\">\n\t\t\t\t{[\n\t\t\t\t\tthis.renderSpacer('foot', rows),\n\t\t\t\t\trows.map((row: (KoliBriTableCell & KoliBriTableDataType)[], rowIndex: number) => this.renderTableRow(row, rowIndex, true, true)),\n\t\t\t\t]}\n\t\t\t</tfoot>\n\t\t);\n\t}\n\n\tpublic render(): JSX.Element {\n\t\tconst dataField = this.createDataField(this.state._data, this.state._headerCells);\n\t\tthis.checkboxRefs = [];\n\n\t\tconst sortedHorizontalHeaders = this.state._headerCells.horizontal?.map((row) => this.sortByColumnPosition(row));\n\n\t\treturn (\n\t\t\t<div class=\"kol-table\">\n\t\t\t\t<KolTableSettingsWcTag _tableSettings={this.state._tableSettings} />\n\n\t\t\t\t{/* Firefox automatically makes the following div focusable when it has a scrollbar. We implement a similar behavior cross-browser by allowing the\n\t\t\t\t * <div class=\"focus-element\"> to receive focus. Hence, we disable focus for the div to avoid having two focusable elements by setting `tabindex=\"-1\"`\n\t\t\t\t */}\n\t\t\t\t{/* eslint-disable-next-line jsx-a11y/no-static-element-interactions */}\n\t\t\t\t<div\n\t\t\t\t\tref={(element) => (this.tableDivElement = element)}\n\t\t\t\t\tclass=\"kol-table__scroll-container\"\n\t\t\t\t\ttabindex={this.tableDivElementHasScrollbar ? '-1' : undefined}\n\t\t\t\t>\n\t\t\t\t\t<table\n\t\t\t\t\t\tclass=\"kol-table__table\"\n\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\tminWidth: this.getTableMinWidth(),\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t{/*\n\t\t\t\t\t\t * The following element allows the table to receive focus without providing redundant content to screen readers.\n\t\t\t\t\t\t * The `div` is technically not allowed here. But any allowed element would mutate the table semantics. Additionally, the `&nbsp;` is necessary to\n\t\t\t\t\t\t * prevent screen readers from just reading \"blank\".\n\t\t\t\t\t\t */}\n\t\t\t\t\t\t{/* eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex */}\n\t\t\t\t\t\t<div class=\"kol-table__focus-element\" tabindex={this.tableDivElementHasScrollbar ? '0' : undefined} aria-describedby=\"caption\">\n\t\t\t\t\t\t\t&nbsp;\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<caption class=\"kol-table__caption\" id=\"caption\">\n\t\t\t\t\t\t\t{this.state._label}\n\t\t\t\t\t\t</caption>\n\n\t\t\t\t\t\t{Array.isArray(sortedHorizontalHeaders) && (\n\t\t\t\t\t\t\t<thead class=\"kol-table__head\">\n\t\t\t\t\t\t\t\t{[\n\t\t\t\t\t\t\t\t\tsortedHorizontalHeaders.map((cols, rowIndex) => (\n\t\t\t\t\t\t\t\t\t\t<tr class=\"kol-table__head-row\" key={`thead-${rowIndex}`}>\n\t\t\t\t\t\t\t\t\t\t\t{this.state._selection && this.renderHeadingSelectionCell()}\n\t\t\t\t\t\t\t\t\t\t\t{rowIndex === 0 && this.renderHeaderTdCell()}\n\t\t\t\t\t\t\t\t\t\t\t{Array.isArray(cols) && cols.map((cell, colIndex) => this.renderHeadingCell(cell, rowIndex, colIndex, false))}\n\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t)),\n\t\t\t\t\t\t\t\t\tthis.renderSpacer('head', sortedHorizontalHeaders),\n\t\t\t\t\t\t\t\t]}\n\t\t\t\t\t\t\t</thead>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t<tbody class=\"kol-table__body\">\n\t\t\t\t\t\t\t{dataField.map((row: (KoliBriTableCell & KoliBriTableDataType)[], rowIndex: number) => this.renderTableRow(row, rowIndex, true))}\n\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t{this.renderFoot()}\n\t\t\t\t\t</table>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n}\n"],"mappings":";;;moBAoBO,MAAMA,EAA2B,CAACC,EAAsCC,KAC9EC,EAA0BD,GAAO,KAChCE,EAAoBF,GAAO,KAC1B,IACCA,EAAQG,EAA4BH,E,CACnC,MAAOI,G,CAGTC,EACCN,EACA,gBACCC,UACOA,IAAU,UACjBA,IAAU,OACTA,EAAMM,aAAeC,WACpBC,MAAMC,QAAQT,EAAMM,aAAeN,EAAMM,WAAWI,MAAMC,IAAeH,MAAMC,QAAQE,OAAgBJ,aACxGP,EAAMY,WAAaL,WAAcC,MAAMC,QAAQT,EAAMY,WAAaZ,EAAMY,SAASF,MAAMG,IAAeL,MAAMC,QAAQI,OAAgBN,YACrI,MACD,IAAIO,IAAI,CAAC,6BACTd,EACA,GACA,GACD,ECxBH,MAAMe,EAA8B,2BAG7B,MAAMC,EAAmB,CAACjB,EAAsCC,EAA0BiB,KAChGZ,EACCN,EACA,aACCmB,UAAaA,IAAM,UAAYH,EAA4BI,KAAKD,IACjE,IAAIJ,IAAI,CAAC,SAAU,kCACnBd,EACAiB,EACA,E,MCqBWG,EAAiB,M,yBAerBC,KAAAf,WAAa,KACbe,KAAAC,sBAAwB,IAAIC,IAC5BF,KAAAG,aAAe,IAAID,IAEnBF,KAAAI,aAAmC,GAsf1BJ,KAAAK,eAAiB,CACjCC,EACAC,EACAC,EACAC,EAAoB,S,QAEpB,IAAIC,EAAMC,OAAOJ,GACjB,GAAIP,KAAKf,cAAc2B,EAAAN,EAAI,MAAE,MAAAM,SAAA,S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MC,QAAQ8O,IACdlN,EAAA,SAAAN,IAAA,2CAAOO,MAAM,mBACX,CACAiN,EAAwB9M,KAAI,CAACmN,EAAMhO,IAClCS,EAAA,MAAIC,MAAM,sBAAsBP,IAAK,SAASH,KAC5CP,KAAKgG,MAAMsE,YAActK,KAAKwM,6BAC9BjM,IAAa,GAAKP,KAAK8M,qBACvB3N,MAAMC,QAAQmP,IAASA,EAAKnN,KAAI,CAACC,EAAMC,IAAatB,KAAK8B,kBAAkBT,EAAMd,EAAUe,EAAU,YAGxGtB,KAAK2N,aAAa,OAAQO,KAI7BlN,EAAA,SAAAN,IAAA,2CAAOO,MAAM,mBACXqH,EAAUlH,KAAI,CAACd,EAAkDC,IAAqBP,KAAKK,eAAeC,EAAKC,EAAU,SAE1HP,KAAKiO,e","ignoreList":[]}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as n,h as e}from"./index-06658c3d.js";import{m as t}from"./component-names-545d6582.js";const i="/*\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%; /* 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 /*\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 display: block;\n }\n}\n@layer kol-component {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.5s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n .kol-tooltip__arrow {\n background-color: #fff;\n color: #000;\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip__content {\n background-color: #fff;\n color: #000;\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n .kol-table {\n display: block;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n max-width: 100%;\n overflow-x: auto;\n overflow-y: hidden;\n }\n .kol-table__table {\n width: 100%;\n }\n .kol-table__caption {\n text-align: start;\n }\n .kol-table__focus-element {\n font-size: 0;\n }\n .kol-table__focus-element:focus {\n outline: 0 !important;\n /* @see https://remysharp.com/til/css/focus-ring-default-styles */\n outline: 5px auto Highlight;\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: 2px;\n }\n .kol-table__sort-button .kol-button {\n color: inherit;\n }\n .kol-table__body {\n text-align: left;\n }\n .kol-table__body .kol-button__text {\n justify-items: start;\n }\n .kol-table__cell--align-left {\n text-align: left;\n }\n .kol-table__cell--align-left .kol-button__text {\n justify-items: start;\n }\n .kol-table__cell--align-center {\n text-align: center;\n }\n .kol-table__cell--align-center .kol-button__text {\n justify-items: center;\n }\n .kol-table__cell--align-right {\n text-align: right;\n }\n .kol-table__cell--align-right .kol-button__text {\n justify-items: end;\n }\n .kol-table__cell--selection {\n width: var(--a11y-min-size);\n height: var(--a11y-min-size);\n white-space: nowrap;\n }\n .kol-table__spacer {\n display: none;\n }\n .kol-table__selection-label {\n align-items: center;\n cursor: pointer;\n display: flex;\n height: var(--a11y-min-size);\n justify-content: center;\n position: relative;\n width: var(--a11y-min-size);\n }\n .kol-table__selection-icon {\n display: block;\n inset: auto;\n position: absolute;\n z-index: 1;\n }\n .kol-table__selection-input {\n appearance: none;\n border-style: solid;\n cursor: pointer;\n margin: 0;\n }\n .kol-table__selection-input:before {\n content: \"\";\n }\n .kol-table__selection-input--checkbox {\n position: relative;\n display: flex;\n height: calc(var(--a11y-min-size) / 2);\n width: calc(var(--a11y-min-size) / 2);\n align-items: center;\n justify-content: center;\n background-color: rgb(255, 255, 255);\n border-width: 2px;\n line-height: 1.5;\n transition: all 0.5s ease 0s;\n }\n .kol-table__selection-input--radio {\n display: flex;\n border-width: 2px;\n border-radius: 100%;\n height: 1.5em;\n min-height: 1.5em;\n min-width: 1.5em;\n padding: 0;\n width: 1.5em;\n }\n .kol-table__selection-input--radio:before {\n border-radius: 100%;\n margin: auto;\n height: 0.75em;\n width: 0.75em;\n }\n .kol-table__selection-input--radio:checked:before {\n background-color: #000;\n }\n @media (forced-colors: active) {\n .kol-table__selection-input--radio:checked:before {\n /* Give it a visible background in forced colors mode */\n background-color: selectedItem !important;\n }\n }\n}",o=i,l=class{constructor(e){n(this,e),this._data=void 0,this._dataFoot=void 0,this._headerCells=void 0,this._label=void 0,this._minWidth=void 0,this._on=void 0,this._selection=void 0}render(){return e(t,{key:"88068018cbdb1024f03063145e76bff1f0726c79",_data:this._data,_dataFoot:this._dataFoot,_headerCells:this._headerCells,_label:this._label,_minWidth:this._minWidth,_on:this._on,_selection:this._selection})}};l.style={default:o};export{l as kol_table_stateless};
4
+ import{r as n,h as e}from"./index-99a79ec9.js";import{p as t}from"./component-names-60d77143.js";const o="@charset \"UTF-8\";\n/*\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 display: block;\n }\n}\n@layer kol-component {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n .kol-tooltip__arrow {\n background-color: #fff;\n color: #000;\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip__content {\n background-color: #fff;\n color: #000;\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-alert {\n display: grid;\n }\n .kol-alert__container {\n place-items: center;\n display: flex;\n }\n .kol-alert__container-content {\n flex-grow: 1;\n }\n .kol-alert__close-button {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n :host {\n display: inline-block;\n }\n .kol-button {\n font-style: calc(16rem / var(--kolibri-root-font-size, 16));\n display: inline-flex;\n place-items: center;\n text-align: center;\n text-decoration-line: none;\n }\n .kol-button::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: \"​\";\n }\n .kol-button__text {\n margin: auto;\n width: 100%;\n }\n}\n@layer kol-component {\n .kol-popover-button__button {\n display: inline-block;\n }\n .kol-popover-button__popover {\n border: 1px solid #000;\n margin: 0;\n padding: 0;\n }\n}\n@layer kol-component {\n .kol-table-settings {\n background: #fff;\n position: absolute;\n right: 0;\n top: 0;\n z-index: 1;\n }\n .kol-table-settings__columns-container {\n margin-top: calc(16rem / var(--kolibri-root-font-size, 16));\n max-height: calc(200rem / var(--kolibri-root-font-size, 16));\n overflow: auto;\n }\n .kol-table-settings__columns {\n align-items: center;\n display: grid;\n gap: calc(8rem / var(--kolibri-root-font-size, 16));\n grid-auto-rows: min-content;\n grid-template-columns: min-content 1fr calc(100rem / var(--kolibri-root-font-size, 16)) auto auto;\n overflow: hidden;\n }\n .kol-table-settings__column {\n display: contents;\n }\n}\n@layer kol-component {\n .kol-table {\n display: block;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n max-width: 100%;\n position: relative;\n }\n .kol-table__scroll-container {\n overflow-x: auto;\n overflow-y: hidden;\n }\n .kol-table__table {\n width: 100%;\n }\n .kol-table__caption {\n text-align: start;\n min-height: var(--a11y-min-size);\n padding-right: var(--a11y-min-size);\n }\n .kol-table__focus-element {\n font-size: 0;\n }\n .kol-table__focus-element:focus {\n outline: 0 !important;\n /* @see https://remysharp.com/til/css/focus-ring-default-styles */\n outline: 5px auto Highlight;\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: 2px;\n }\n .kol-table__sort-button .kol-button {\n color: inherit;\n }\n .kol-table__body {\n text-align: left;\n }\n .kol-table__body .kol-button__text {\n justify-items: start;\n }\n .kol-table__cell--align-left {\n text-align: left;\n }\n .kol-table__cell--align-left .kol-button__text {\n justify-items: start;\n }\n .kol-table__cell--align-center {\n text-align: center;\n }\n .kol-table__cell--align-center .kol-button__text {\n justify-items: center;\n }\n .kol-table__cell--align-right {\n text-align: right;\n }\n .kol-table__cell--align-right .kol-button__text {\n justify-items: end;\n }\n .kol-table__cell--selection {\n width: var(--a11y-min-size);\n height: var(--a11y-min-size);\n white-space: nowrap;\n }\n .kol-table__spacer {\n display: none;\n }\n .kol-table__selection-label {\n align-items: center;\n cursor: pointer;\n display: flex;\n height: var(--a11y-min-size);\n justify-content: center;\n position: relative;\n width: var(--a11y-min-size);\n }\n .kol-table__selection-label--disabled {\n cursor: not-allowed;\n }\n .kol-table__selection-icon {\n display: block;\n inset: auto;\n position: absolute;\n z-index: 1;\n }\n .kol-table__selection-input {\n appearance: none;\n border-style: solid;\n cursor: pointer;\n margin: 0;\n }\n .kol-table__selection-input:disabled {\n cursor: not-allowed;\n }\n .kol-table__selection-input:before {\n content: \"\";\n }\n .kol-table__selection-input--checkbox {\n position: relative;\n display: flex;\n height: calc(var(--a11y-min-size) / 2);\n width: calc(var(--a11y-min-size) / 2);\n align-items: center;\n justify-content: center;\n background-color: rgb(255, 255, 255);\n border-width: 2px;\n line-height: 1.5;\n transition: all 0.5s ease 0s;\n }\n .kol-table__selection-input--radio {\n display: flex;\n border-width: 2px;\n border-radius: 100%;\n height: 1.5em;\n min-height: 1.5em;\n min-width: 1.5em;\n padding: 0;\n width: 1.5em;\n }\n .kol-table__selection-input--radio:before {\n border-radius: 100%;\n margin: auto;\n height: 0.75em;\n width: 0.75em;\n }\n .kol-table__selection-input--radio:checked:before {\n background-color: #000;\n }\n @media (forced-colors: active) {\n .kol-table__selection-input--radio:checked:before {\n /* Give it a visible background in forced colors mode */\n background-color: selectedItem !important;\n }\n }\n}",i=o,l=class{constructor(e){n(this,e),this._data=void 0,this._dataFoot=void 0,this._headerCells=void 0,this._label=void 0,this._minWidth=void 0,this._on=void 0,this._selection=void 0,this._tableSettings=void 0}render(){return e(t,{key:"9e5cbf024de83c62888cfee1ecb15ee9ed1f8ffc",_data:this._data,_dataFoot:this._dataFoot,_headerCells:this._headerCells,_label:this._label,_minWidth:this._minWidth,_on:this._on,_selection:this._selection,_tableSettings:this._tableSettings})}};l.style={default:i};export{l as kol_table_stateless};
@@ -1 +1 @@
1
- {"version":3,"names":["defaultStyleCss","KolTableStatelessDefaultStyle0","KolTableStateless","render","h","KolTableStatelessWcTag","key","_data","this","_dataFoot","_headerCells","_label","_minWidth","_on","_selection"],"sources":["src/components/table-stateless/style.scss?tag=kol-table-stateless&mode=default&encapsulation=shadow","src/components/table-stateless/shadow.tsx"],"sourcesContent":["@import '../@shared/mixins';\n@import '../../styles/global';\n@import '../@shared/kol-table-stateless-mixin';\n@import '../host-display-block';\n\n@include kol-table-stateless-styles;\n","import type { JSX } from '@stencil/core';\nimport { Component, h, Prop } from '@stencil/core';\nimport { KolTableStatelessWcTag } from '../../core/component-names';\nimport type {\n\tTableCallbacksPropType,\n\tTableDataFootPropType,\n\tTableDataPropType,\n\tTableHeaderCellsPropType,\n\tTableSelectionPropType,\n\tTableStatelessProps,\n} from '../../schema';\nimport type { MinWidthPropType } from '../../schema/props/min-width';\n\n@Component({\n\ttag: 'kol-table-stateless',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolTableStateless implements TableStatelessProps {\n\t/**\n\t * Defines the primary table data.\n\t */\n\t@Prop() public _data!: TableDataPropType;\n\n\t/**\n\t * Defines the data for the table footer.\n\t */\n\t@Prop() public _dataFoot?: TableDataFootPropType;\n\n\t/**\n\t * Defines the horizontal and vertical table headers.\n\t */\n\t@Prop() public _headerCells!: TableHeaderCellsPropType;\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!: string;\n\n\t/**\n\t * Defines the table min-width (CSS width values).\n\t */\n\t@Prop() public _minWidth!: MinWidthPropType;\n\n\t/**\n\t * Defines the callback functions for table events.\n\t */\n\t@Prop() public _on?: TableCallbacksPropType;\n\n\t/**\n\t * Defines how rows can be selected and the current selection.\n\t */\n\t@Prop() public _selection?: TableSelectionPropType;\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<KolTableStatelessWcTag\n\t\t\t\t_data={this._data}\n\t\t\t\t_dataFoot={this._dataFoot}\n\t\t\t\t_headerCells={this._headerCells}\n\t\t\t\t_label={this._label}\n\t\t\t\t_minWidth={this._minWidth}\n\t\t\t\t_on={this._on}\n\t\t\t\t_selection={this._selection}\n\t\t\t/>\n\t\t);\n\t}\n}\n"],"mappings":";;;iGAAA,MAAMA,EAAkB,8yQACxB,MAAAC,EAAeD,E,MCmBFE,EAAiB,M,+LAoCtB,MAAAC,GACN,OACCC,EAACC,EAAsB,CAAAC,IAAA,2CACtBC,MAAOC,KAAKD,MACZE,UAAWD,KAAKC,UAChBC,aAAcF,KAAKE,aACnBC,OAAQH,KAAKG,OACbC,UAAWJ,KAAKI,UAChBC,IAAKL,KAAKK,IACVC,WAAYN,KAAKM,Y","ignoreList":[]}
1
+ {"version":3,"names":["defaultStyleCss","KolTableStatelessDefaultStyle0","KolTableStateless","render","h","KolTableStatelessWcTag","key","_data","this","_dataFoot","_headerCells","_label","_minWidth","_on","_selection","_tableSettings"],"sources":["src/components/table-stateless/style.scss?tag=kol-table-stateless&mode=default&encapsulation=shadow","src/components/table-stateless/shadow.tsx"],"sourcesContent":["@use '../../styles/global' as *;\n@use '../../styles/kol-alert-mixin' as *;\n@use '../@shared/kol-button-mixin' as *;\n@use '../@shared/kol-popover-button-mixin' as *;\n@use '../@shared/kol-table-stateless-mixin' as *;\n@use '../@shared/mixins' as *;\n@use '../host-display-block' as *;\n@use '../tooltip/style' as *;\n\n@include kol-alert;\n@include kol-button-styles('kol-button');\n@include kol-popover-button-styles;\n@include kol-table-stateless-styles;\n","import type { JSX } from '@stencil/core';\nimport { Component, h, Prop } from '@stencil/core';\nimport { KolTableStatelessWcTag } from '../../core/component-names';\nimport type {\n\tTableCallbacksPropType,\n\tTableDataFootPropType,\n\tTableDataPropType,\n\tTableHeaderCellsPropType,\n\tTableSelectionPropType,\n\tTableStatelessProps,\n} from '../../schema';\nimport type { MinWidthPropType } from '../../schema/props/min-width';\nimport type { TableSettingsPropType } from '../../schema/props/table-settings';\n\n@Component({\n\ttag: 'kol-table-stateless',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolTableStateless implements TableStatelessProps {\n\t/**\n\t * Defines the primary table data.\n\t */\n\t@Prop() public _data!: TableDataPropType;\n\n\t/**\n\t * Defines the data for the table footer.\n\t */\n\t@Prop() public _dataFoot?: TableDataFootPropType;\n\n\t/**\n\t * Defines the horizontal and vertical table headers.\n\t */\n\t@Prop() public _headerCells!: TableHeaderCellsPropType;\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!: string;\n\n\t/**\n\t * Defines the table min-width (CSS width values).\n\t */\n\t@Prop() public _minWidth!: MinWidthPropType;\n\n\t/**\n\t * Defines the callback functions for table events.\n\t */\n\t@Prop() public _on?: TableCallbacksPropType;\n\n\t/**\n\t * Defines how rows can be selected and the current selection.\n\t */\n\t@Prop() public _selection?: TableSelectionPropType;\n\n\t/**\n\t * Defines the table settings including column visibility, order and width.\n\t */\n\t@Prop() public _tableSettings?: TableSettingsPropType;\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<KolTableStatelessWcTag\n\t\t\t\t_data={this._data}\n\t\t\t\t_dataFoot={this._dataFoot}\n\t\t\t\t_headerCells={this._headerCells}\n\t\t\t\t_label={this._label}\n\t\t\t\t_minWidth={this._minWidth}\n\t\t\t\t_on={this._on}\n\t\t\t\t_selection={this._selection}\n\t\t\t\t_tableSettings={this._tableSettings}\n\t\t\t/>\n\t\t);\n\t}\n}\n"],"mappings":";;;iGAAA,MAAMA,EAAkB,60UACxB,MAAAC,EAAeD,E,MCoBFE,EAAiB,M,6NAyCtB,MAAAC,GACN,OACCC,EAACC,EAAsB,CAAAC,IAAA,2CACtBC,MAAOC,KAAKD,MACZE,UAAWD,KAAKC,UAChBC,aAAcF,KAAKE,aACnBC,OAAQH,KAAKG,OACbC,UAAWJ,KAAKI,UAChBC,IAAKL,KAAKK,IACVC,WAAYN,KAAKM,WACjBC,eAAgBP,KAAKO,gB","ignoreList":[]}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as t,h as n,g as e}from"./index-06658c3d.js";import{t as i}from"./i18n-5fe08f1c.js";import{a as o}from"./component-names-545d6582.js";import{d as s,K as a}from"./events-5adf6b62.js";import{c as l}from"./clsx-09a06a12.js";import{w as r,j as d,f as h,s as c,k as b,g as f,h as u,v as p}from"./prop.validators-9feb1d92.js";import{v as m}from"./align-4719d626.js";import{v}from"./label-d0315384.js";import{L as g}from"./dev.utils-fab45cbc.js";import"./i18n-7ea9f137.js";import"./reuse-32931294.js";import"./index-da3e0c00.js";const y=["select-automatic","select-manual"],k=(t,e)=>{r(t,"_behavior",(t=>"string"==typeof t&&y.includes(t)),new Set([`KoliBriTabBehavior {${y.join(", ")}`]),e)};var w;!function(t){t.ArrowDown="ArrowDown",t.ArrowLeft="ArrowLeft",t.ArrowRight="ArrowRight",t.ArrowUp="ArrowUp",t.Enter="Enter",t.Space=" "}(w||(w={}));const _="/*\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%; /* 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 /*\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 display: block;\n }\n}\n@layer kol-component {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.5s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n .kol-tooltip__arrow {\n background-color: #fff;\n color: #000;\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip__content {\n background-color: #fff;\n color: #000;\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-tabs {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n display: var(--display);\n grid-template-rows: var(--grid-template-rows);\n grid-template-columns: var(--grid-template-columns);\n }\n .kol-tabs--align-right {\n --display: grid;\n --grid-template-columns: 1fr auto;\n --button-group-flex-direction: column;\n --button-group-order: 2;\n }\n .kol-tabs--align-left {\n --display: grid;\n --grid-template-columns: auto 1fr;\n --button-group-flex-direction: column;\n --button-group-order: 0;\n }\n .kol-tabs--align-bottom {\n --display: grid;\n --grid-template-rows: 1fr auto;\n --button-group-order: 2;\n }\n .kol-tabs__tabs-align-top {\n --display: grid;\n --grid-template-rows: auto 1fr;\n --button-group-order: 0;\n }\n .kol-tabs__content {\n overflow: auto;\n }\n .kol-tabs__button-group {\n display: flex;\n flex-wrap: wrap;\n flex-direction: var(--button-group-flex-direction);\n order: var(--button-group-order);\n }\n .kol-tabs__button-group .kol-button {\n border-bottom-color: transparent;\n border-bottom-style: solid;\n display: block;\n }\n .kol-tabs__panel {\n height: 100%;\n }\n}",x=_,T=class{constructor(e){t(this,e),this.onCreateLabel=`${i("kol-new")} …`,this.showCreateTab=!1,this.nextPossibleTabIndex=(t,e,n=1)=>{const o=e+n;return o<t.length?t[o]._disabled?this.nextPossibleTabIndex(t,e,n+1):o:e},this.prevPossibleTabIndex=(t,e,n=1)=>{const o=e-n;return o>=0?t[o]._disabled?this.prevPossibleTabIndex(t,e,n+1):o:e},this.onKeyDown=t=>{switch(t.key){case w.ArrowRight:this.goToNextTab(t);break;case w.ArrowLeft:this.goToPreviousTab(t);break;case w.Space:case w.Enter:this.activateFocusedTab(t)}},this.onClickSelect=(t,e)=>{this.selectNextTabEvent(t,e)},this.onMouseDown=t=>{t.preventDefault()},this.callbacks={onClick:this.onClickSelect,onMouseDown:this.onMouseDown},this.catchTabPanelHost=t=>{this.tabPanelHost=t},this.selectNextNotDisabledTab=(t,e,n=!0,o)=>{if(t>e.length-1&&(t=e.length-1),t<0&&(t=0),Array.isArray(e)&&e[t]&&e[t]._disabled){if(!0===n){if(t<e.length-1)return this.selectNextNotDisabledTab(t+1,e,!0,o||t);t=o||t,n=!1}if(!1===n){if(t>0)return this.selectNextNotDisabledTab(t-1,e,!1,o||t);d("[KolTabs] All tabs are disabled, and therefore no tab can be displayed.")}}return t},this.syncSelectedAndTabs=(t,e,n,o)=>{let a,i;a="_selected"===o?t:this.state._selected,i="_tabs"===o?t:this.state._tabs,i.length>0&&e.set("_selected",this.selectNextNotDisabledTab(a,i))},this.handleTabPanels=()=>{var t,e,n;if(this.tabPanelHost instanceof HTMLDivElement)for(let o=this.tabPanelHost.children.length;o<this.state._tabs.length;o++){const a=document.createElement("div");a.setAttribute("class","kol-tab__panel"),a.setAttribute("aria-labelledby",`${this.state._label.replace(/\s/g,"-")}-tab-${o}`),a.setAttribute("id",`tabpanel-${o}`),a.setAttribute("role","tabpanel"),a.setAttribute("hidden","");const i=document.createElement("slot");i.setAttribute("name",`tabpanel-slot-${o}`),a.appendChild(i),this.tabPanelHost.appendChild(a),(null===(t=this.host)||void 0===t?void 0:t.children)instanceof HTMLCollection&&(null===(e=this.host)||void 0===e?void 0:e.children[o])&&(null===(n=this.host)||void 0===n||n.children[o].setAttribute("slot",`tabpanel-slot-${o}`))}},this.onCreate=t=>{var e,n;t.preventDefault(),"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e.onCreate)&&(null===(n=this.state._on)||void 0===n||n.onCreate(t))},this.onBlur=()=>{this.currentFocusIndex=void 0},this._align="top",this._behavior=void 0,this._label=void 0,this._on=void 0,this._selected=0,this._tabs=void 0,this.state={_align:"top",_label:"",_selected:0,_tabs:[]}}getCurrentFocusIndex(){return"number"==typeof this.currentFocusIndex?this.currentFocusIndex:this.state._selected}getKeyboardTabChangeMode(){return"select-manual"===this._behavior?"selectFocusOnly":"activateCompletely"}goToNextTab(t){const e=this.nextPossibleTabIndex(this.state._tabs,this.getCurrentFocusIndex());this.selectNextTabEvent(t,e,this.getKeyboardTabChangeMode())}goToPreviousTab(t){const e=this.prevPossibleTabIndex(this.state._tabs,this.getCurrentFocusIndex());this.selectNextTabEvent(t,e,this.getKeyboardTabChangeMode())}activateFocusedTab(t){"number"==typeof this.currentFocusIndex&&this.onSelect(t,this.currentFocusIndex)}selectNextTabEvent(t,e,n="activateCompletely"){var o,a;if(this.currentFocusIndex=e,this.focusTabById(e),"activateCompletely"===n){this._selected=e;null===(a=null===(o=this.state._tabs[e]._on)||void 0===o?void 0:o.onSelect)||void 0===a||a.call(o,t,e),this.onSelect(t,e)}}renderButtonGroup(){return n("div",{"aria-label":this.state._label,class:"kol-tabs__button-group",role:"tablist",onKeyDown:this.onKeyDown,onBlur:this.onBlur},this.state._tabs.map(((t,e)=>n(o,{_disabled:t._disabled,_icons:t._icons,_hideLabel:t._hideLabel,_label:t._label,_on:this.callbacks,_tabIndex:this.state._selected===e?0:-1,_tooltipAlign:t._tooltipAlign,_variant:this.state._selected===e?"custom":void 0,_customClass:this.state._selected===e?"selected":void 0,_ariaControls:`tabpanel-${e}`,_ariaSelected:this.state._selected===e,_id:`${this.state._label.replace(/\s/g,"-")}-tab-${e}`,_role:"tab",_value:e}))),this.showCreateTab&&n(o,{class:"kol-tabs_button-create",_label:this.onCreateLabel,_on:{onClick:this.onCreate}}))}render(){return n("div",{key:"236764ab41c649492573bb59ba934719454614ed",ref:t=>{this.tabPanelsElement=t},class:l("kol-tabs",`kol-tabs--align-${this.state._align}`)},this.renderButtonGroup(),n("div",{key:"42e0f17e4bfd4c6434732ea0daee4926f894af67",class:"kol-tabs__content",ref:this.catchTabPanelHost}))}validateAlign(t){m(this,t)}validateBehavior(t){k(this,t)}validateLabel(t){v(this,t,{required:!0})}validateOn(t){if("object"==typeof t&&null!==t){h("[KolTabs] Prüfen, wie man auch einen EventCallback einzeln ändern kann.");const e={};"function"!=typeof t.onCreate&&"object"!=typeof t.onCreate||("object"==typeof t.onCreate?("string"==typeof t.onCreate.label&&t.onCreate.label.length>0?this.onCreateLabel=t.onCreate.label:g.debug("[KolTabs] The label text for New in {\n onCreate: {\n label: string (!),\n callback: Function\n }\n} is not set correctly."),"function"==typeof t.onCreate.callback?e.onCreate=t.onCreate.callback:g.debug("[KolTabs] The onCreate callback function for New in {\n onCreate: {\n label: string,\n callback: Function (!)\n }\n} is not set correctly.")):e.onCreate=t.onCreate,this.showCreateTab="function"==typeof e.onCreate),"function"==typeof t.onSelect&&(e.onSelect=t.onSelect),c(this,"_on",e)}}validateSelected(t){b(this,"_selected",t,{hooks:{beforePatch:this.syncSelectedAndTabs}})}validateTabs(t){f(this,"_tabs",(t=>"object"==typeof t&&null!==t&&"string"==typeof t._label&&t._label.length>0),t,void 0,{hooks:{beforePatch:this.syncSelectedAndTabs}}),u("KolTabs",this.state._tabs.length)}componentWillLoad(){this.validateAlign(this._align),this.validateLabel(this._label),this.validateOn(this._on),this.validateSelected(this._selected),this.validateTabs(this._tabs),this.validateBehavior(this._behavior)}componentDidRender(){if(this.handleTabPanels(),this.tabPanelHost instanceof HTMLDivElement)for(let t=0;t<this.tabPanelHost.children.length;t++)t!==this.state._selected?this.tabPanelHost.children[t].setAttribute("hidden",""):this.tabPanelHost.children[t].removeAttribute("hidden")}focusTabById(t){if(this.tabPanelsElement){const e=p(`button#${this.state._label.replace(/\s/g,"-")}-tab-${t}`,this.tabPanelsElement);null==e||e.focus()}}onSelect(t,e){var n,o;null===(o=null===(n=this._on)||void 0===n?void 0:n.onSelect)||void 0===o||o.call(n,t,e),this.host&&s(this.host,a.select,e),this.focusTabById(e)}get host(){return e(this)}static get watchers(){return{_align:["validateAlign"],_behavior:["validateBehavior"],_label:["validateLabel"],_on:["validateOn"],_selected:["validateSelected"],_tabs:["validateTabs"]}}};T.style={default:x};export{T as kol_tabs};
4
+ import{r as t,h as n,g as e}from"./index-99a79ec9.js";import{t as i}from"./i18n-efbafc80.js";import{a as o}from"./component-names-60d77143.js";import{d as s,K as a}from"./events-5886c68b.js";import{c as l}from"./clsx-09a06a12.js";import{w as r,j as d,f as h,s as c,k as b,g as u,h as f,t as p}from"./prop.validators-17aec743.js";import{v as m}from"./align-61c6a220.js";import{v}from"./label-90c13388.js";import{L as g}from"./dev.utils-fab45cbc.js";import"./i18n-45224cc3.js";import"./reuse-f46e7e35.js";import"./index-6d801dad.js";const y=["select-automatic","select-manual"],k=(t,e)=>{r(t,"_behavior",(t=>"string"==typeof t&&y.includes(t)),new Set([`KoliBriTabBehavior {${y.join(", ")}`]),e)};var w;!function(t){t.ArrowDown="ArrowDown",t.ArrowLeft="ArrowLeft",t.ArrowRight="ArrowRight",t.ArrowUp="ArrowUp",t.Enter="Enter",t.Space=" "}(w||(w={}));const _="/*\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 display: block;\n }\n}\n@layer kol-component {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n .kol-tooltip__arrow {\n background-color: #fff;\n color: #000;\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip__content {\n background-color: #fff;\n color: #000;\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-tabs {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n display: var(--display);\n grid-template-rows: var(--grid-template-rows);\n grid-template-columns: var(--grid-template-columns);\n }\n .kol-tabs--align-right {\n --display: grid;\n --grid-template-columns: 1fr auto;\n --button-group-flex-direction: column;\n --button-group-order: 2;\n }\n .kol-tabs--align-left {\n --display: grid;\n --grid-template-columns: auto 1fr;\n --button-group-flex-direction: column;\n --button-group-order: 0;\n }\n .kol-tabs--align-bottom {\n --display: grid;\n --grid-template-rows: 1fr auto;\n --button-group-order: 2;\n }\n .kol-tabs__tabs-align-top {\n --display: grid;\n --grid-template-rows: auto 1fr;\n --button-group-order: 0;\n }\n .kol-tabs__content {\n overflow: auto;\n }\n .kol-tabs__button-group {\n display: flex;\n flex-wrap: wrap;\n flex-direction: var(--button-group-flex-direction);\n order: var(--button-group-order);\n }\n .kol-tabs__button-group .kol-button {\n border-bottom-color: transparent;\n border-bottom-style: solid;\n display: block;\n }\n .kol-tabs__panel {\n height: 100%;\n }\n}",x=_,T=class{constructor(e){t(this,e),this.onCreateLabel=`${i("kol-new")} …`,this.showCreateTab=!1,this.nextPossibleTabIndex=(t,e,n=1)=>{const o=e+n;return o<t.length?t[o]._disabled?this.nextPossibleTabIndex(t,e,n+1):o:e},this.prevPossibleTabIndex=(t,e,n=1)=>{const o=e-n;return o>=0?t[o]._disabled?this.prevPossibleTabIndex(t,e,n+1):o:e},this.onKeyDown=t=>{switch(t.key){case w.ArrowRight:this.goToNextTab(t);break;case w.ArrowLeft:this.goToPreviousTab(t);break;case w.Space:case w.Enter:this.activateFocusedTab(t)}},this.onClickSelect=(t,e)=>{this.selectNextTabEvent(t,e)},this.onMouseDown=t=>{t.preventDefault()},this.callbacks={onClick:this.onClickSelect,onMouseDown:this.onMouseDown},this.catchTabPanelHost=t=>{this.tabPanelHost=t},this.selectNextNotDisabledTab=(t,e,n=!0,o)=>{if(t>e.length-1&&(t=e.length-1),t<0&&(t=0),Array.isArray(e)&&e[t]&&e[t]._disabled){if(!0===n){if(t<e.length-1)return this.selectNextNotDisabledTab(t+1,e,!0,o||t);t=o||t,n=!1}if(!1===n){if(t>0)return this.selectNextNotDisabledTab(t-1,e,!1,o||t);d("[KolTabs] All tabs are disabled, and therefore no tab can be displayed.")}}return t},this.syncSelectedAndTabs=(t,e,n,o)=>{let a,i;a="_selected"===o?t:this.state._selected,i="_tabs"===o?t:this.state._tabs,i.length>0&&e.set("_selected",this.selectNextNotDisabledTab(a,i))},this.refreshTabPanels=()=>{var t,e,n,o;if(this.tabPanelHost){for(;this.tabPanelHost.firstChild;)this.tabPanelHost.removeChild(this.tabPanelHost.firstChild);for(let a=0;a<(null===(t=this.state._tabs)||void 0===t?void 0:t.length);a++){const t=document.createElement("div");t.setAttribute("aria-labelledby",`${this.state._label.replace(/\s/g,"-")}-tab-${a}`),t.setAttribute("id",`tabpanel-${a}`),t.setAttribute("role","tabpanel"),t.setAttribute("hidden","");const i=document.createElement("slot");i.setAttribute("name",`tabpanel-slot-${a}`),t.appendChild(i),null===(e=this.tabPanelHost)||void 0===e||e.appendChild(t),"undefined"!=typeof HTMLCollection&&(null===(n=this.host)||void 0===n?void 0:n.children)instanceof HTMLCollection&&(null===(o=this.host)||void 0===o?void 0:o.children[a])&&this.host.children[a].setAttribute("slot",`tabpanel-slot-${a}`)}this.updateVisiblePanel()}},this.updateVisiblePanel=()=>{this.tabPanelHost&&Array.from(this.tabPanelHost.children).forEach(((t,e)=>{e===this.state._selected?t.removeAttribute("hidden"):t.setAttribute("hidden","")}))},this.onCreate=t=>{var e,n;t.preventDefault(),"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e.onCreate)&&(null===(n=this.state._on)||void 0===n||n.onCreate(t))},this.onBlur=()=>{this.currentFocusIndex=void 0},this._align="top",this._behavior=void 0,this._label=void 0,this._on=void 0,this._selected=0,this._tabs=void 0,this.state={_align:"top",_label:"",_selected:0,_tabs:[]}}getCurrentFocusIndex(){return"number"==typeof this.currentFocusIndex?this.currentFocusIndex:this.state._selected}getKeyboardTabChangeMode(){return"select-manual"===this._behavior?"selectFocusOnly":"activateCompletely"}goToNextTab(t){const e=this.nextPossibleTabIndex(this.state._tabs,this.getCurrentFocusIndex());this.selectNextTabEvent(t,e,this.getKeyboardTabChangeMode())}goToPreviousTab(t){const e=this.prevPossibleTabIndex(this.state._tabs,this.getCurrentFocusIndex());this.selectNextTabEvent(t,e,this.getKeyboardTabChangeMode())}activateFocusedTab(t){"number"==typeof this.currentFocusIndex&&this.onSelect(t,this.currentFocusIndex)}selectNextTabEvent(t,e,n="activateCompletely"){var o,a;if(this.currentFocusIndex=e,this.focusTabById(e),"activateCompletely"===n){this._selected=e;null===(a=null===(o=this.state._tabs[e]._on)||void 0===o?void 0:o.onSelect)||void 0===a||a.call(o,t,e),this.onSelect(t,e)}}renderButtonGroup(){return n("div",{"aria-label":this.state._label,class:"kol-tabs__button-group",role:"tablist",onKeyDown:this.onKeyDown,onBlur:this.onBlur},this.state._tabs.map(((t,e)=>n(o,{_disabled:t._disabled,_icons:t._icons,_hideLabel:t._hideLabel,_label:t._label,_on:this.callbacks,_tabIndex:this.state._selected===e?0:-1,_tooltipAlign:t._tooltipAlign,_variant:this.state._selected===e?"custom":void 0,_customClass:this.state._selected===e?"selected":void 0,_ariaControls:`tabpanel-${e}`,_ariaSelected:this.state._selected===e,_id:`${this.state._label.replace(/\s/g,"-")}-tab-${e}`,_role:"tab",_value:e}))),this.showCreateTab&&n(o,{class:"kol-tabs_button-create",_label:this.onCreateLabel,_on:{onClick:this.onCreate}}))}render(){return n("div",{key:"ace31fe22b60c6419c6c04842d4b5e256a20a77c",ref:t=>{this.tabPanelsElement=t},class:l("kol-tabs",`kol-tabs--align-${this.state._align}`)},this.renderButtonGroup(),n("div",{key:"ca508552303e1da3567a6534fb68969cb1f221e4",class:"kol-tabs__content",ref:this.catchTabPanelHost}))}validateAlign(t){m(this,t)}validateBehavior(t){k(this,t)}validateLabel(t){v(this,t,{required:!0})}validateOn(t){if("object"==typeof t&&null!==t){h("[KolTabs] Prüfen, wie man auch einen EventCallback einzeln ändern kann.");const e={};"function"!=typeof t.onCreate&&"object"!=typeof t.onCreate||("object"==typeof t.onCreate?("string"==typeof t.onCreate.label&&t.onCreate.label.length>0?this.onCreateLabel=t.onCreate.label:g.debug("[KolTabs] The label text for New in {\n onCreate: {\n label: string (!),\n callback: Function\n }\n} is not set correctly."),"function"==typeof t.onCreate.callback?e.onCreate=t.onCreate.callback:g.debug("[KolTabs] The onCreate callback function for New in {\n onCreate: {\n label: string,\n callback: Function (!)\n }\n} is not set correctly.")):e.onCreate=t.onCreate,this.showCreateTab="function"==typeof e.onCreate),"function"==typeof t.onSelect&&(e.onSelect=t.onSelect),c(this,"_on",e)}}validateSelected(t){b(this,"_selected",t,{hooks:{beforePatch:this.syncSelectedAndTabs}})}validateTabs(t){u(this,"_tabs",(t=>"object"==typeof t&&null!==t&&"string"==typeof t._label&&t._label.length>0),t,void 0,{hooks:{beforePatch:this.syncSelectedAndTabs,afterPatch:this.refreshTabPanels}}),f("KolTabs",this.state._tabs.length)}componentWillLoad(){this.validateAlign(this._align),this.validateLabel(this._label),this.validateOn(this._on),this.validateSelected(this._selected),this.validateTabs(this._tabs),this.validateBehavior(this._behavior)}componentDidRender(){this.refreshTabPanels()}focusTabById(t){if(this.tabPanelsElement){const e=p(`button#${this.state._label.replace(/\s/g,"-")}-tab-${t}`,this.tabPanelsElement);null==e||e.focus()}}onSelect(t,e){var n,o;null===(o=null===(n=this._on)||void 0===n?void 0:n.onSelect)||void 0===o||o.call(n,t,e),this.host&&s(this.host,a.select,e),this.focusTabById(e)}get host(){return e(this)}static get watchers(){return{_align:["validateAlign"],_behavior:["validateBehavior"],_label:["validateLabel"],_on:["validateOn"],_selected:["validateSelected"],_tabs:["validateTabs"]}}};T.style={default:x};export{T as kol_tabs};