@public-ui/components 4.3.0-rc.6 → 4.3.0-rc.8

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 (755) hide show
  1. package/assets/kolicons/kolicons.eot +0 -0
  2. package/assets/kolicons/kolicons.ttf +0 -0
  3. package/assets/kolicons/kolicons.woff +0 -0
  4. package/assets/kolicons/kolicons.woff2 +0 -0
  5. package/assets/kolicons/style.css +6 -6
  6. package/custom-elements.json +33 -23
  7. package/dist/cjs/{Alert-Bv-BrwWN.js → Alert-DaJBbnJz.js} +7 -7
  8. package/dist/cjs/Alert-DaJBbnJz.js.map +1 -0
  9. package/dist/cjs/{Collapsible-N888YIaY.js → Collapsible-A7UN8xYs.js} +5 -5
  10. package/dist/cjs/{Collapsible-N888YIaY.js.map → Collapsible-A7UN8xYs.js.map} +1 -1
  11. package/dist/cjs/{CustomSuggestionsOptionsGroup-Ce_KdNHi.js → CustomSuggestionsOptionsGroup-B3zKmcfZ.js} +3 -3
  12. package/dist/cjs/{CustomSuggestionsOptionsGroup-Ce_KdNHi.js.map → CustomSuggestionsOptionsGroup-B3zKmcfZ.js.map} +1 -1
  13. package/dist/cjs/{FieldControlStateWrapper-Dlk1fdof.js → FieldControlStateWrapper-Blru_T0E.js} +7 -7
  14. package/dist/cjs/{FieldControlStateWrapper-Dlk1fdof.js.map → FieldControlStateWrapper-Blru_T0E.js.map} +1 -1
  15. package/dist/cjs/{FormFieldStateWrapper-DG4emSy6.js → FormFieldStateWrapper-DZhEbBYb.js} +7 -7
  16. package/dist/cjs/{FormFieldStateWrapper-DG4emSy6.js.map → FormFieldStateWrapper-DZhEbBYb.js.map} +1 -1
  17. package/dist/cjs/{Heading-CW1KAWWX.js → Heading-CtLCdnno.js} +3 -3
  18. package/dist/cjs/{Heading-CW1KAWWX.js.map → Heading-CtLCdnno.js.map} +1 -1
  19. package/dist/cjs/{Input-Cmz65bTo.js → Input-CTIvgASH.js} +5 -5
  20. package/dist/cjs/{Input-Cmz65bTo.js.map → Input-CTIvgASH.js.map} +1 -1
  21. package/dist/cjs/{InputStateWrapper-IceSl4Va.js → InputStateWrapper-D-fmIPN-.js} +6 -6
  22. package/dist/cjs/{InputStateWrapper-IceSl4Va.js.map → InputStateWrapper-D-fmIPN-.js.map} +1 -1
  23. package/dist/cjs/{app-globals-Ca-u9rrU.js → app-globals-hKB4iA5u.js} +4 -4
  24. package/dist/cjs/{app-globals-Ca-u9rrU.js.map → app-globals-hKB4iA5u.js.map} +1 -1
  25. package/dist/cjs/{component-Ds_ZSFId.js → component-D2hfqi2r.js} +4 -4
  26. package/dist/cjs/{component-Ds_ZSFId.js.map → component-D2hfqi2r.js.map} +1 -1
  27. package/dist/cjs/{component-lcKfLD3W.js → component-DzuSWpVF.js} +3 -3
  28. package/dist/cjs/{component-lcKfLD3W.js.map → component-DzuSWpVF.js.map} +1 -1
  29. package/dist/cjs/{component-D2XqZH09.js → component-GSsStkDl.js} +4 -4
  30. package/dist/cjs/{component-D2XqZH09.js.map → component-GSsStkDl.js.map} +1 -1
  31. package/dist/cjs/{component-MHZzZs8b.js → component-XgOEs159.js} +3 -3
  32. package/dist/cjs/{component-MHZzZs8b.js.map → component-XgOEs159.js.map} +1 -1
  33. package/dist/cjs/contrast-BaY16D1Q.js.map +1 -1
  34. package/dist/cjs/{controller-CplkzBYs.js → controller-BRUHGsKj.js} +3 -3
  35. package/dist/cjs/{controller-CplkzBYs.js.map → controller-BRUHGsKj.js.map} +1 -1
  36. package/dist/cjs/{controller-C1na4nXZ.js → controller-BdPPNnZm.js} +3 -3
  37. package/dist/cjs/{controller-C1na4nXZ.js.map → controller-BdPPNnZm.js.map} +1 -1
  38. package/dist/cjs/{controller-_MCMA-7O.js → controller-DI9a-feu.js} +3 -3
  39. package/dist/cjs/{controller-_MCMA-7O.js.map → controller-DI9a-feu.js.map} +1 -1
  40. package/dist/cjs/{controller-icon-BrREvyH1.js → controller-icon-Ds2Cvph9.js} +6 -6
  41. package/dist/cjs/{controller-icon-BrREvyH1.js.map → controller-icon-Ds2Cvph9.js.map} +1 -1
  42. package/dist/cjs/{dev.utils-BqG9VVIl.js → dev.utils-C5bWjmuw.js} +3 -3
  43. package/dist/cjs/{dev.utils-BqG9VVIl.js.map → dev.utils-C5bWjmuw.js.map} +1 -1
  44. package/dist/cjs/{devtools-CRdIaIkv.js → devtools-CpVKpbEG.js} +4 -4
  45. package/dist/cjs/{devtools-CRdIaIkv.js.map → devtools-CpVKpbEG.js.map} +1 -1
  46. package/dist/cjs/{index-uy6c1C7T.js → index-PpdE67jR.js} +3 -3
  47. package/dist/cjs/{index-uy6c1C7T.js.map → index-PpdE67jR.js.map} +1 -1
  48. package/dist/cjs/kol-abbr.cjs.entry.js +2 -2
  49. package/dist/cjs/kol-abbr.entry.cjs.js.map +1 -1
  50. package/dist/cjs/kol-accordion.cjs.entry.js +5 -5
  51. package/dist/cjs/kol-accordion.entry.cjs.js.map +1 -1
  52. package/dist/cjs/kol-alert-wc.cjs.entry.js +4 -4
  53. package/dist/cjs/kol-alert.cjs.entry.js +2 -2
  54. package/dist/cjs/kol-alert.entry.cjs.js.map +1 -1
  55. package/dist/cjs/kol-avatar.cjs.entry.js +2 -2
  56. package/dist/cjs/kol-avatar.entry.cjs.js.map +1 -1
  57. package/dist/cjs/kol-badge.cjs.entry.js +7 -7
  58. package/dist/cjs/kol-badge.entry.cjs.js.map +1 -1
  59. package/dist/cjs/kol-breadcrumb.cjs.entry.js +3 -3
  60. package/dist/cjs/kol-breadcrumb.entry.cjs.js.map +1 -1
  61. package/dist/cjs/kol-button-link.cjs.entry.js +2 -2
  62. package/dist/cjs/kol-button-link.entry.cjs.js.map +1 -1
  63. package/dist/cjs/kol-button-wc.cjs.entry.js +4 -4
  64. package/dist/cjs/kol-button.cjs.entry.js +3 -3
  65. package/dist/cjs/kol-button.entry.cjs.js.map +1 -1
  66. package/dist/cjs/kol-card-wc.cjs.entry.js +6 -6
  67. package/dist/cjs/kol-card.cjs.entry.js +2 -2
  68. package/dist/cjs/kol-card.entry.cjs.js.map +1 -1
  69. package/dist/cjs/kol-click-button.cjs.entry.js +2 -2
  70. package/dist/cjs/kol-combobox.cjs.entry.js +13 -13
  71. package/dist/cjs/kol-combobox.entry.cjs.js.map +1 -1
  72. package/dist/cjs/kol-details.cjs.entry.js +5 -5
  73. package/dist/cjs/kol-details.entry.cjs.js.map +1 -1
  74. package/dist/cjs/kol-dialog-wc.cjs.entry.js +2 -2
  75. package/dist/cjs/kol-dialog.cjs.entry.js +2 -2
  76. package/dist/cjs/kol-dialog.entry.cjs.js.map +1 -1
  77. package/dist/cjs/kol-drawer.cjs.entry.js +3 -3
  78. package/dist/cjs/kol-drawer.entry.cjs.js.map +1 -1
  79. package/dist/cjs/kol-form.cjs.entry.js +5 -5
  80. package/dist/cjs/kol-form.entry.cjs.js.map +1 -1
  81. package/dist/cjs/kol-heading.cjs.entry.js +3 -3
  82. package/dist/cjs/kol-heading.entry.cjs.js.map +1 -1
  83. package/dist/cjs/kol-icon.cjs.entry.js +3 -3
  84. package/dist/cjs/kol-image.cjs.entry.js +2 -2
  85. package/dist/cjs/kol-image.entry.cjs.js.map +1 -1
  86. package/dist/cjs/kol-input-checkbox.cjs.entry.js +13 -13
  87. package/dist/cjs/kol-input-checkbox.entry.cjs.js.map +1 -1
  88. package/dist/cjs/kol-input-color.cjs.entry.js +12 -12
  89. package/dist/cjs/kol-input-color.entry.cjs.js.map +1 -1
  90. package/dist/cjs/kol-input-date.cjs.entry.js +13 -13
  91. package/dist/cjs/kol-input-date.entry.cjs.js.map +1 -1
  92. package/dist/cjs/kol-input-email.cjs.entry.js +15 -15
  93. package/dist/cjs/kol-input-email.entry.cjs.js.map +1 -1
  94. package/dist/cjs/kol-input-file.cjs.entry.js +12 -12
  95. package/dist/cjs/kol-input-file.entry.cjs.js.map +1 -1
  96. package/dist/cjs/kol-input-number.cjs.entry.js +13 -13
  97. package/dist/cjs/kol-input-number.entry.cjs.js.map +1 -1
  98. package/dist/cjs/kol-input-password.cjs.entry.js +14 -14
  99. package/dist/cjs/kol-input-password.entry.cjs.js.map +1 -1
  100. package/dist/cjs/kol-input-radio.cjs.entry.js +13 -13
  101. package/dist/cjs/kol-input-radio.entry.cjs.js.map +1 -1
  102. package/dist/cjs/kol-input-range.cjs.entry.js +13 -13
  103. package/dist/cjs/kol-input-range.entry.cjs.js.map +1 -1
  104. package/dist/cjs/kol-input-text.cjs.entry.js +15 -15
  105. package/dist/cjs/kol-input-text.entry.cjs.js.map +1 -1
  106. package/dist/cjs/kol-kolibri.cjs.entry.js +2 -2
  107. package/dist/cjs/kol-kolibri.entry.cjs.js.map +1 -1
  108. package/dist/cjs/kol-link-button.cjs.entry.js +2 -2
  109. package/dist/cjs/kol-link-button.entry.cjs.js.map +1 -1
  110. package/dist/cjs/kol-link-wc.cjs.entry.js +4 -4
  111. package/dist/cjs/kol-link.cjs.entry.js +3 -3
  112. package/dist/cjs/kol-link.entry.cjs.js.map +1 -1
  113. package/dist/cjs/kol-meter.cjs.entry.js +2 -2
  114. package/dist/cjs/kol-meter.entry.cjs.js.map +1 -1
  115. package/dist/cjs/kol-modal.cjs.entry.js +2 -2
  116. package/dist/cjs/kol-modal.entry.cjs.js.map +1 -1
  117. package/dist/cjs/kol-nav.cjs.entry.js +3 -3
  118. package/dist/cjs/kol-nav.entry.cjs.js.map +1 -1
  119. package/dist/cjs/kol-pagination-wc.cjs.entry.js +2 -2
  120. package/dist/cjs/kol-pagination.cjs.entry.js +2 -2
  121. package/dist/cjs/kol-pagination.entry.cjs.js.map +1 -1
  122. package/dist/cjs/kol-popover-button-wc.cjs.entry.js +2 -2
  123. package/dist/cjs/kol-popover-button.cjs.entry.js +2 -2
  124. package/dist/cjs/kol-popover-button.entry.cjs.js.map +1 -1
  125. package/dist/cjs/kol-progress.cjs.entry.js +2 -2
  126. package/dist/cjs/kol-progress.entry.cjs.js.map +1 -1
  127. package/dist/cjs/kol-quote.cjs.entry.js +2 -2
  128. package/dist/cjs/kol-quote.entry.cjs.js.map +1 -1
  129. package/dist/cjs/kol-select-wc.cjs.entry.js +12 -12
  130. package/dist/cjs/kol-select-wc.entry.cjs.js.map +1 -1
  131. package/dist/cjs/kol-select.cjs.entry.js +3 -3
  132. package/dist/cjs/kol-select.entry.cjs.js.map +1 -1
  133. package/dist/cjs/kol-single-select.cjs.entry.js +19 -20
  134. package/dist/cjs/kol-single-select.entry.cjs.js.map +1 -1
  135. package/dist/cjs/kol-skeleton.cjs.entry.js +2 -2
  136. package/dist/cjs/kol-skip-nav.cjs.entry.js +2 -2
  137. package/dist/cjs/kol-skip-nav.entry.cjs.js.map +1 -1
  138. package/dist/cjs/kol-spin.cjs.entry.js +2 -2
  139. package/dist/cjs/kol-spin.entry.cjs.js.map +1 -1
  140. package/dist/cjs/kol-split-button.cjs.entry.js +2 -2
  141. package/dist/cjs/kol-split-button.entry.cjs.js.map +1 -1
  142. package/dist/cjs/kol-table-settings-wc.cjs.entry.js +1 -1
  143. package/dist/cjs/kol-table-stateful.cjs.entry.js +2 -2
  144. package/dist/cjs/kol-table-stateful.entry.cjs.js.map +1 -1
  145. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js +5 -5
  146. package/dist/cjs/kol-table-stateless.cjs.entry.js +2 -2
  147. package/dist/cjs/kol-table-stateless.entry.cjs.js.map +1 -1
  148. package/dist/cjs/kol-tabs.cjs.entry.js +2 -2
  149. package/dist/cjs/kol-tabs.entry.cjs.js.map +1 -1
  150. package/dist/cjs/kol-textarea.cjs.entry.js +11 -11
  151. package/dist/cjs/kol-textarea.entry.cjs.js.map +1 -1
  152. package/dist/cjs/kol-toast-container.cjs.entry.js +7 -7
  153. package/dist/cjs/kol-toast-container.entry.cjs.js.map +1 -1
  154. package/dist/cjs/kol-toolbar.cjs.entry.js +2 -2
  155. package/dist/cjs/kol-toolbar.entry.cjs.js.map +1 -1
  156. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +4 -4
  157. package/dist/cjs/kol-tree-item-wc.cjs.entry.js +3 -3
  158. package/dist/cjs/kol-tree-item.cjs.entry.js +2 -2
  159. package/dist/cjs/kol-tree-item.entry.cjs.js.map +1 -1
  160. package/dist/cjs/kol-tree-wc.cjs.entry.js +1 -1
  161. package/dist/cjs/kol-tree.cjs.entry.js +2 -2
  162. package/dist/cjs/kol-tree.entry.cjs.js.map +1 -1
  163. package/dist/cjs/kol-version.cjs.entry.js +2 -2
  164. package/dist/cjs/kol-version.entry.cjs.js.map +1 -1
  165. package/dist/cjs/kolibri.cjs.js +2 -2
  166. package/dist/cjs/loader.cjs.js +2 -2
  167. package/dist/cjs/test-component.cjs.entry.js +1 -1
  168. package/dist/collection/components/abbr/style.css +8 -5
  169. package/dist/collection/components/accordion/style.css +8 -5
  170. package/dist/collection/components/alert/style.css +19 -10
  171. package/dist/collection/components/avatar/style.css +6 -3
  172. package/dist/collection/components/badge/shadow.js +2 -2
  173. package/dist/collection/components/badge/shadow.js.map +1 -1
  174. package/dist/collection/components/badge/style.css +8 -5
  175. package/dist/collection/components/breadcrumb/style.css +8 -5
  176. package/dist/collection/components/button/shadow.js +1 -1
  177. package/dist/collection/components/button/shadow.js.map +1 -1
  178. package/dist/collection/components/button/style.css +8 -5
  179. package/dist/collection/components/button-link/style.css +8 -5
  180. package/dist/collection/components/card/style.css +8 -5
  181. package/dist/collection/components/combobox/style.css +19 -10
  182. package/dist/collection/components/details/style.css +8 -5
  183. package/dist/collection/components/dialog/style.css +8 -5
  184. package/dist/collection/components/drawer/style.css +8 -5
  185. package/dist/collection/components/form/style.css +19 -10
  186. package/dist/collection/components/heading/component.js +1 -1
  187. package/dist/collection/components/heading/component.js.map +1 -1
  188. package/dist/collection/components/heading/style.css +6 -3
  189. package/dist/collection/components/icon/style.css +2 -2
  190. package/dist/collection/components/image/style.css +6 -3
  191. package/dist/collection/components/input-checkbox/shadow.js +1 -1
  192. package/dist/collection/components/input-checkbox/shadow.js.map +1 -1
  193. package/dist/collection/components/input-checkbox/style.css +19 -10
  194. package/dist/collection/components/input-color/style.css +19 -10
  195. package/dist/collection/components/input-date/shadow.js +1 -1
  196. package/dist/collection/components/input-date/shadow.js.map +1 -1
  197. package/dist/collection/components/input-date/style.css +19 -10
  198. package/dist/collection/components/input-email/shadow.js +1 -1
  199. package/dist/collection/components/input-email/shadow.js.map +1 -1
  200. package/dist/collection/components/input-email/style.css +19 -10
  201. package/dist/collection/components/input-file/style.css +19 -10
  202. package/dist/collection/components/input-number/shadow.js +1 -1
  203. package/dist/collection/components/input-number/shadow.js.map +1 -1
  204. package/dist/collection/components/input-number/style.css +19 -10
  205. package/dist/collection/components/input-password/shadow.js +1 -1
  206. package/dist/collection/components/input-password/shadow.js.map +1 -1
  207. package/dist/collection/components/input-password/style.css +19 -10
  208. package/dist/collection/components/input-radio/shadow.js +1 -1
  209. package/dist/collection/components/input-radio/shadow.js.map +1 -1
  210. package/dist/collection/components/input-radio/style.css +19 -10
  211. package/dist/collection/components/input-range/shadow.js +1 -1
  212. package/dist/collection/components/input-range/shadow.js.map +1 -1
  213. package/dist/collection/components/input-range/style.css +19 -10
  214. package/dist/collection/components/input-text/shadow.js +1 -1
  215. package/dist/collection/components/input-text/shadow.js.map +1 -1
  216. package/dist/collection/components/input-text/style.css +19 -10
  217. package/dist/collection/components/kolibri/style.css +6 -3
  218. package/dist/collection/components/link/shadow.js +1 -1
  219. package/dist/collection/components/link/shadow.js.map +1 -1
  220. package/dist/collection/components/link/style.css +8 -5
  221. package/dist/collection/components/link-button/style.css +8 -5
  222. package/dist/collection/components/meter/style.css +6 -3
  223. package/dist/collection/components/modal/style.css +8 -5
  224. package/dist/collection/components/nav/style.css +8 -5
  225. package/dist/collection/components/pagination/style.css +19 -10
  226. package/dist/collection/components/popover-button/style.css +8 -5
  227. package/dist/collection/components/progress/style.css +6 -3
  228. package/dist/collection/components/quote/style.css +6 -3
  229. package/dist/collection/components/select/component.js +2 -2
  230. package/dist/collection/components/select/component.js.map +1 -1
  231. package/dist/collection/components/select/shadow.js +1 -1
  232. package/dist/collection/components/select/shadow.js.map +1 -1
  233. package/dist/collection/components/select/style.css +19 -10
  234. package/dist/collection/components/single-select/shadow.js +5 -6
  235. package/dist/collection/components/single-select/shadow.js.map +1 -1
  236. package/dist/collection/components/single-select/style.css +19 -10
  237. package/dist/collection/components/skip-nav/style.css +8 -5
  238. package/dist/collection/components/spin/style.css +6 -3
  239. package/dist/collection/components/split-button/style.css +8 -5
  240. package/dist/collection/components/table-stateful/style.css +30 -15
  241. package/dist/collection/components/table-stateless/style.css +19 -10
  242. package/dist/collection/components/tabs/style.css +8 -5
  243. package/dist/collection/components/textarea/shadow.js +1 -1
  244. package/dist/collection/components/textarea/shadow.js.map +1 -1
  245. package/dist/collection/components/textarea/style.css +19 -10
  246. package/dist/collection/components/toaster/style.css +19 -10
  247. package/dist/collection/components/toolbar/style.css +8 -5
  248. package/dist/collection/components/tree/style.css +6 -3
  249. package/dist/collection/components/tree-item/style.css +8 -5
  250. package/dist/collection/components/version/style.css +6 -3
  251. package/dist/collection/functional-components/Alert/Alert.js +2 -2
  252. package/dist/collection/functional-components/Alert/Alert.js.map +1 -1
  253. package/dist/collection/schema/utils/contrast.js.map +1 -1
  254. package/dist/components/Alert.js +2 -2
  255. package/dist/components/Alert.js.map +1 -1
  256. package/dist/components/contrast.js.map +1 -1
  257. package/dist/components/kol-abbr.js +1 -1
  258. package/dist/components/kol-abbr.js.map +1 -1
  259. package/dist/components/kol-accordion.js +1 -1
  260. package/dist/components/kol-accordion.js.map +1 -1
  261. package/dist/components/kol-alert.js +1 -1
  262. package/dist/components/kol-alert.js.map +1 -1
  263. package/dist/components/kol-avatar.js +1 -1
  264. package/dist/components/kol-avatar.js.map +1 -1
  265. package/dist/components/kol-badge.js +3 -3
  266. package/dist/components/kol-badge.js.map +1 -1
  267. package/dist/components/kol-breadcrumb.js +1 -1
  268. package/dist/components/kol-breadcrumb.js.map +1 -1
  269. package/dist/components/kol-button-link.js +1 -1
  270. package/dist/components/kol-button-link.js.map +1 -1
  271. package/dist/components/kol-button.js +2 -2
  272. package/dist/components/kol-button.js.map +1 -1
  273. package/dist/components/kol-card.js +1 -1
  274. package/dist/components/kol-card.js.map +1 -1
  275. package/dist/components/kol-combobox.js +1 -1
  276. package/dist/components/kol-combobox.js.map +1 -1
  277. package/dist/components/kol-details.js +1 -1
  278. package/dist/components/kol-details.js.map +1 -1
  279. package/dist/components/kol-dialog.js +1 -1
  280. package/dist/components/kol-dialog.js.map +1 -1
  281. package/dist/components/kol-drawer.js +1 -1
  282. package/dist/components/kol-drawer.js.map +1 -1
  283. package/dist/components/kol-form.js +1 -1
  284. package/dist/components/kol-form.js.map +1 -1
  285. package/dist/components/kol-heading.js +2 -2
  286. package/dist/components/kol-heading.js.map +1 -1
  287. package/dist/components/kol-icon.js +1 -1
  288. package/dist/components/kol-image.js +1 -1
  289. package/dist/components/kol-image.js.map +1 -1
  290. package/dist/components/kol-input-checkbox.js +2 -2
  291. package/dist/components/kol-input-checkbox.js.map +1 -1
  292. package/dist/components/kol-input-color.js +1 -1
  293. package/dist/components/kol-input-color.js.map +1 -1
  294. package/dist/components/kol-input-date.js +2 -2
  295. package/dist/components/kol-input-date.js.map +1 -1
  296. package/dist/components/kol-input-email.js +2 -2
  297. package/dist/components/kol-input-email.js.map +1 -1
  298. package/dist/components/kol-input-file.js +1 -1
  299. package/dist/components/kol-input-file.js.map +1 -1
  300. package/dist/components/kol-input-number.js +2 -2
  301. package/dist/components/kol-input-number.js.map +1 -1
  302. package/dist/components/kol-input-password.js +2 -2
  303. package/dist/components/kol-input-password.js.map +1 -1
  304. package/dist/components/kol-input-radio.js +2 -2
  305. package/dist/components/kol-input-radio.js.map +1 -1
  306. package/dist/components/kol-input-range.js +2 -2
  307. package/dist/components/kol-input-range.js.map +1 -1
  308. package/dist/components/kol-input-text.js +2 -2
  309. package/dist/components/kol-input-text.js.map +1 -1
  310. package/dist/components/kol-kolibri.js +1 -1
  311. package/dist/components/kol-kolibri.js.map +1 -1
  312. package/dist/components/kol-link-button.js +1 -1
  313. package/dist/components/kol-link-button.js.map +1 -1
  314. package/dist/components/kol-link.js +2 -2
  315. package/dist/components/kol-link.js.map +1 -1
  316. package/dist/components/kol-meter.js +1 -1
  317. package/dist/components/kol-meter.js.map +1 -1
  318. package/dist/components/kol-modal.js +1 -1
  319. package/dist/components/kol-modal.js.map +1 -1
  320. package/dist/components/kol-nav.js +1 -1
  321. package/dist/components/kol-nav.js.map +1 -1
  322. package/dist/components/kol-pagination.js +1 -1
  323. package/dist/components/kol-pagination.js.map +1 -1
  324. package/dist/components/kol-popover-button.js +1 -1
  325. package/dist/components/kol-popover-button.js.map +1 -1
  326. package/dist/components/kol-progress.js +1 -1
  327. package/dist/components/kol-progress.js.map +1 -1
  328. package/dist/components/kol-quote.js +1 -1
  329. package/dist/components/kol-quote.js.map +1 -1
  330. package/dist/components/kol-select-wc.js +2 -2
  331. package/dist/components/kol-select-wc.js.map +1 -1
  332. package/dist/components/kol-select.js +2 -2
  333. package/dist/components/kol-select.js.map +1 -1
  334. package/dist/components/kol-single-select.js +6 -7
  335. package/dist/components/kol-single-select.js.map +1 -1
  336. package/dist/components/kol-skip-nav.js +1 -1
  337. package/dist/components/kol-skip-nav.js.map +1 -1
  338. package/dist/components/kol-spin.js +1 -1
  339. package/dist/components/kol-spin.js.map +1 -1
  340. package/dist/components/kol-split-button.js +1 -1
  341. package/dist/components/kol-split-button.js.map +1 -1
  342. package/dist/components/kol-table-stateful.js +1 -1
  343. package/dist/components/kol-table-stateful.js.map +1 -1
  344. package/dist/components/kol-table-stateless.js +1 -1
  345. package/dist/components/kol-table-stateless.js.map +1 -1
  346. package/dist/components/kol-tabs.js +1 -1
  347. package/dist/components/kol-tabs.js.map +1 -1
  348. package/dist/components/kol-textarea.js +2 -2
  349. package/dist/components/kol-textarea.js.map +1 -1
  350. package/dist/components/kol-toast-container.js +1 -1
  351. package/dist/components/kol-toast-container.js.map +1 -1
  352. package/dist/components/kol-toolbar.js +1 -1
  353. package/dist/components/kol-toolbar.js.map +1 -1
  354. package/dist/components/kol-tree-item.js +1 -1
  355. package/dist/components/kol-tree-item.js.map +1 -1
  356. package/dist/components/kol-tree.js +1 -1
  357. package/dist/components/kol-tree.js.map +1 -1
  358. package/dist/components/kol-version.js +1 -1
  359. package/dist/components/kol-version.js.map +1 -1
  360. package/dist/esm/{Alert-CVh_XwxH.js → Alert-DaPXnitr.js} +7 -7
  361. package/dist/esm/Alert-DaPXnitr.js.map +1 -0
  362. package/dist/esm/{Collapsible-Cy_Z7SX6.js → Collapsible-DF7peDBr.js} +5 -5
  363. package/dist/{kolibri/Collapsible-Cy_Z7SX6.js.map → esm/Collapsible-DF7peDBr.js.map} +1 -1
  364. package/dist/esm/{CustomSuggestionsOptionsGroup-2QjXZ-dA.js → CustomSuggestionsOptionsGroup-Cq1zSfAU.js} +3 -3
  365. package/dist/{kolibri/CustomSuggestionsOptionsGroup-2QjXZ-dA.js.map → esm/CustomSuggestionsOptionsGroup-Cq1zSfAU.js.map} +1 -1
  366. package/dist/esm/{FieldControlStateWrapper-BY46U1nq.js → FieldControlStateWrapper-BJhTtIF3.js} +7 -7
  367. package/dist/esm/{FieldControlStateWrapper-BY46U1nq.js.map → FieldControlStateWrapper-BJhTtIF3.js.map} +1 -1
  368. package/dist/esm/{FormFieldStateWrapper-DFV1TBk5.js → FormFieldStateWrapper-BogeRuh6.js} +7 -7
  369. package/dist/esm/{FormFieldStateWrapper-DFV1TBk5.js.map → FormFieldStateWrapper-BogeRuh6.js.map} +1 -1
  370. package/dist/esm/{Heading-BKIw2hie.js → Heading-Fmn2Xnfo.js} +3 -3
  371. package/dist/{kolibri/Heading-BKIw2hie.js.map → esm/Heading-Fmn2Xnfo.js.map} +1 -1
  372. package/dist/esm/{Input-B4nV0JRw.js → Input-My07QUjz.js} +5 -5
  373. package/dist/{kolibri/Input-B4nV0JRw.js.map → esm/Input-My07QUjz.js.map} +1 -1
  374. package/dist/esm/{InputStateWrapper-Cjv8q51E.js → InputStateWrapper-BkBD8al2.js} +6 -6
  375. package/dist/esm/{InputStateWrapper-Cjv8q51E.js.map → InputStateWrapper-BkBD8al2.js.map} +1 -1
  376. package/dist/esm/{app-globals-DBooI_-E.js → app-globals-BSt2bjJi.js} +4 -4
  377. package/dist/esm/{app-globals-DBooI_-E.js.map → app-globals-BSt2bjJi.js.map} +1 -1
  378. package/dist/esm/{component-DzpPAOzx.js → component-BXaOK6YH.js} +3 -3
  379. package/dist/esm/{component-DzpPAOzx.js.map → component-BXaOK6YH.js.map} +1 -1
  380. package/dist/esm/{component-8mzKPFWl.js → component-DBqyeAbt.js} +4 -4
  381. package/dist/esm/{component-8mzKPFWl.js.map → component-DBqyeAbt.js.map} +1 -1
  382. package/dist/esm/{component-BG44r5Mq.js → component-DDkRuod7.js} +4 -4
  383. package/dist/{kolibri/component-BG44r5Mq.js.map → esm/component-DDkRuod7.js.map} +1 -1
  384. package/dist/esm/{component-CCQEFb4H.js → component-lILf7M8Y.js} +3 -3
  385. package/dist/esm/{component-CCQEFb4H.js.map → component-lILf7M8Y.js.map} +1 -1
  386. package/dist/esm/contrast-CnVYN_kl.js.map +1 -1
  387. package/dist/esm/{controller-CE9LAI82.js → controller-B-aPh-rK.js} +3 -3
  388. package/dist/esm/{controller-CE9LAI82.js.map → controller-B-aPh-rK.js.map} +1 -1
  389. package/dist/esm/{controller-iY_1YW2P.js → controller-BKG2L8_f.js} +3 -3
  390. package/dist/esm/{controller-iY_1YW2P.js.map → controller-BKG2L8_f.js.map} +1 -1
  391. package/dist/esm/{controller-BCZEcGnd.js → controller-i4DAkaDb.js} +3 -3
  392. package/dist/{kolibri/controller-BCZEcGnd.js.map → esm/controller-i4DAkaDb.js.map} +1 -1
  393. package/dist/esm/{controller-icon-CQmlbwLY.js → controller-icon-lAqXvi57.js} +6 -6
  394. package/dist/{kolibri/controller-icon-CQmlbwLY.js.map → esm/controller-icon-lAqXvi57.js.map} +1 -1
  395. package/dist/esm/{dev.utils-BXf9h7MR.js → dev.utils-4OwwrWYD.js} +3 -3
  396. package/dist/esm/{dev.utils-BXf9h7MR.js.map → dev.utils-4OwwrWYD.js.map} +1 -1
  397. package/dist/esm/{devtools-DhAP1aCO.js → devtools-DQZUKzkH.js} +4 -4
  398. package/dist/esm/{devtools-DhAP1aCO.js.map → devtools-DQZUKzkH.js.map} +1 -1
  399. package/dist/esm/{index-C5dCp7IP.js → index-wGO77oPq.js} +3 -3
  400. package/dist/{kolibri/index-C5dCp7IP.js.map → esm/index-wGO77oPq.js.map} +1 -1
  401. package/dist/esm/kol-abbr.entry.js +2 -2
  402. package/dist/esm/kol-abbr.entry.js.map +1 -1
  403. package/dist/esm/kol-accordion.entry.js +5 -5
  404. package/dist/esm/kol-accordion.entry.js.map +1 -1
  405. package/dist/esm/kol-alert-wc.entry.js +4 -4
  406. package/dist/esm/kol-alert.entry.js +2 -2
  407. package/dist/esm/kol-alert.entry.js.map +1 -1
  408. package/dist/esm/kol-avatar.entry.js +2 -2
  409. package/dist/esm/kol-avatar.entry.js.map +1 -1
  410. package/dist/esm/kol-badge.entry.js +7 -7
  411. package/dist/esm/kol-badge.entry.js.map +1 -1
  412. package/dist/esm/kol-breadcrumb.entry.js +3 -3
  413. package/dist/esm/kol-breadcrumb.entry.js.map +1 -1
  414. package/dist/esm/kol-button-link.entry.js +2 -2
  415. package/dist/esm/kol-button-link.entry.js.map +1 -1
  416. package/dist/esm/kol-button-wc.entry.js +4 -4
  417. package/dist/esm/kol-button.entry.js +3 -3
  418. package/dist/esm/kol-button.entry.js.map +1 -1
  419. package/dist/esm/kol-card-wc.entry.js +6 -6
  420. package/dist/esm/kol-card.entry.js +2 -2
  421. package/dist/esm/kol-card.entry.js.map +1 -1
  422. package/dist/esm/kol-click-button.entry.js +2 -2
  423. package/dist/esm/kol-combobox.entry.js +13 -13
  424. package/dist/esm/kol-combobox.entry.js.map +1 -1
  425. package/dist/esm/kol-details.entry.js +5 -5
  426. package/dist/esm/kol-details.entry.js.map +1 -1
  427. package/dist/esm/kol-dialog-wc.entry.js +2 -2
  428. package/dist/esm/kol-dialog.entry.js +2 -2
  429. package/dist/esm/kol-dialog.entry.js.map +1 -1
  430. package/dist/esm/kol-drawer.entry.js +3 -3
  431. package/dist/esm/kol-drawer.entry.js.map +1 -1
  432. package/dist/esm/kol-form.entry.js +5 -5
  433. package/dist/esm/kol-form.entry.js.map +1 -1
  434. package/dist/esm/kol-heading.entry.js +3 -3
  435. package/dist/esm/kol-heading.entry.js.map +1 -1
  436. package/dist/esm/kol-icon.entry.js +3 -3
  437. package/dist/esm/kol-image.entry.js +2 -2
  438. package/dist/esm/kol-image.entry.js.map +1 -1
  439. package/dist/esm/kol-input-checkbox.entry.js +13 -13
  440. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  441. package/dist/esm/kol-input-color.entry.js +12 -12
  442. package/dist/esm/kol-input-color.entry.js.map +1 -1
  443. package/dist/esm/kol-input-date.entry.js +13 -13
  444. package/dist/esm/kol-input-date.entry.js.map +1 -1
  445. package/dist/esm/kol-input-email.entry.js +15 -15
  446. package/dist/esm/kol-input-email.entry.js.map +1 -1
  447. package/dist/esm/kol-input-file.entry.js +12 -12
  448. package/dist/esm/kol-input-file.entry.js.map +1 -1
  449. package/dist/esm/kol-input-number.entry.js +13 -13
  450. package/dist/esm/kol-input-number.entry.js.map +1 -1
  451. package/dist/esm/kol-input-password.entry.js +14 -14
  452. package/dist/esm/kol-input-password.entry.js.map +1 -1
  453. package/dist/esm/kol-input-radio.entry.js +13 -13
  454. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  455. package/dist/esm/kol-input-range.entry.js +13 -13
  456. package/dist/esm/kol-input-range.entry.js.map +1 -1
  457. package/dist/esm/kol-input-text.entry.js +15 -15
  458. package/dist/esm/kol-input-text.entry.js.map +1 -1
  459. package/dist/esm/kol-kolibri.entry.js +2 -2
  460. package/dist/esm/kol-kolibri.entry.js.map +1 -1
  461. package/dist/esm/kol-link-button.entry.js +2 -2
  462. package/dist/esm/kol-link-button.entry.js.map +1 -1
  463. package/dist/esm/kol-link-wc.entry.js +4 -4
  464. package/dist/esm/kol-link.entry.js +3 -3
  465. package/dist/esm/kol-link.entry.js.map +1 -1
  466. package/dist/esm/kol-meter.entry.js +2 -2
  467. package/dist/esm/kol-meter.entry.js.map +1 -1
  468. package/dist/esm/kol-modal.entry.js +2 -2
  469. package/dist/esm/kol-modal.entry.js.map +1 -1
  470. package/dist/esm/kol-nav.entry.js +3 -3
  471. package/dist/esm/kol-nav.entry.js.map +1 -1
  472. package/dist/esm/kol-pagination-wc.entry.js +2 -2
  473. package/dist/esm/kol-pagination.entry.js +2 -2
  474. package/dist/esm/kol-pagination.entry.js.map +1 -1
  475. package/dist/esm/kol-popover-button-wc.entry.js +2 -2
  476. package/dist/esm/kol-popover-button.entry.js +2 -2
  477. package/dist/esm/kol-popover-button.entry.js.map +1 -1
  478. package/dist/esm/kol-progress.entry.js +2 -2
  479. package/dist/esm/kol-progress.entry.js.map +1 -1
  480. package/dist/esm/kol-quote.entry.js +2 -2
  481. package/dist/esm/kol-quote.entry.js.map +1 -1
  482. package/dist/esm/kol-select-wc.entry.js +12 -12
  483. package/dist/esm/kol-select-wc.entry.js.map +1 -1
  484. package/dist/esm/kol-select.entry.js +3 -3
  485. package/dist/esm/kol-select.entry.js.map +1 -1
  486. package/dist/esm/kol-single-select.entry.js +19 -20
  487. package/dist/esm/kol-single-select.entry.js.map +1 -1
  488. package/dist/esm/kol-skeleton.entry.js +2 -2
  489. package/dist/esm/kol-skip-nav.entry.js +2 -2
  490. package/dist/esm/kol-skip-nav.entry.js.map +1 -1
  491. package/dist/esm/kol-spin.entry.js +2 -2
  492. package/dist/esm/kol-spin.entry.js.map +1 -1
  493. package/dist/esm/kol-split-button.entry.js +2 -2
  494. package/dist/esm/kol-split-button.entry.js.map +1 -1
  495. package/dist/esm/kol-table-settings-wc.entry.js +1 -1
  496. package/dist/esm/kol-table-stateful.entry.js +2 -2
  497. package/dist/esm/kol-table-stateful.entry.js.map +1 -1
  498. package/dist/esm/kol-table-stateless-wc.entry.js +5 -5
  499. package/dist/esm/kol-table-stateless.entry.js +2 -2
  500. package/dist/esm/kol-table-stateless.entry.js.map +1 -1
  501. package/dist/esm/kol-tabs.entry.js +2 -2
  502. package/dist/esm/kol-tabs.entry.js.map +1 -1
  503. package/dist/esm/kol-textarea.entry.js +11 -11
  504. package/dist/esm/kol-textarea.entry.js.map +1 -1
  505. package/dist/esm/kol-toast-container.entry.js +7 -7
  506. package/dist/esm/kol-toast-container.entry.js.map +1 -1
  507. package/dist/esm/kol-toolbar.entry.js +2 -2
  508. package/dist/esm/kol-toolbar.entry.js.map +1 -1
  509. package/dist/esm/kol-tooltip-wc.entry.js +4 -4
  510. package/dist/esm/kol-tree-item-wc.entry.js +3 -3
  511. package/dist/esm/kol-tree-item.entry.js +2 -2
  512. package/dist/esm/kol-tree-item.entry.js.map +1 -1
  513. package/dist/esm/kol-tree-wc.entry.js +1 -1
  514. package/dist/esm/kol-tree.entry.js +2 -2
  515. package/dist/esm/kol-tree.entry.js.map +1 -1
  516. package/dist/esm/kol-version.entry.js +2 -2
  517. package/dist/esm/kol-version.entry.js.map +1 -1
  518. package/dist/esm/kolibri.js +3 -3
  519. package/dist/esm/loader.js +3 -3
  520. package/dist/esm/test-component.entry.js +1 -1
  521. package/dist/kolibri/Alert-DaPXnitr.js +5 -0
  522. package/dist/kolibri/Alert-DaPXnitr.js.map +1 -0
  523. package/dist/kolibri/Collapsible-DF7peDBr.js +5 -0
  524. package/dist/{esm/Collapsible-Cy_Z7SX6.js.map → kolibri/Collapsible-DF7peDBr.js.map} +1 -1
  525. package/dist/kolibri/{CustomSuggestionsOptionsGroup-2QjXZ-dA.js → CustomSuggestionsOptionsGroup-Cq1zSfAU.js} +2 -2
  526. package/dist/{esm/CustomSuggestionsOptionsGroup-2QjXZ-dA.js.map → kolibri/CustomSuggestionsOptionsGroup-Cq1zSfAU.js.map} +1 -1
  527. package/dist/kolibri/FieldControlStateWrapper-BJhTtIF3.js +5 -0
  528. package/dist/kolibri/{FieldControlStateWrapper-BY46U1nq.js.map → FieldControlStateWrapper-BJhTtIF3.js.map} +1 -1
  529. package/dist/kolibri/{FormFieldStateWrapper-DFV1TBk5.js → FormFieldStateWrapper-BogeRuh6.js} +2 -2
  530. package/dist/kolibri/{FormFieldStateWrapper-DFV1TBk5.js.map → FormFieldStateWrapper-BogeRuh6.js.map} +1 -1
  531. package/dist/kolibri/{Heading-BKIw2hie.js → Heading-Fmn2Xnfo.js} +2 -2
  532. package/dist/{esm/Heading-BKIw2hie.js.map → kolibri/Heading-Fmn2Xnfo.js.map} +1 -1
  533. package/dist/kolibri/Input-My07QUjz.js +5 -0
  534. package/dist/{esm/Input-B4nV0JRw.js.map → kolibri/Input-My07QUjz.js.map} +1 -1
  535. package/dist/kolibri/InputStateWrapper-BkBD8al2.js +5 -0
  536. package/dist/kolibri/{InputStateWrapper-Cjv8q51E.js.map → InputStateWrapper-BkBD8al2.js.map} +1 -1
  537. package/dist/kolibri/{app-globals-DBooI_-E.js → app-globals-BSt2bjJi.js} +2 -2
  538. package/dist/kolibri/{app-globals-DBooI_-E.js.map → app-globals-BSt2bjJi.js.map} +1 -1
  539. package/dist/kolibri/{component-DzpPAOzx.js → component-BXaOK6YH.js} +2 -2
  540. package/dist/kolibri/{component-DzpPAOzx.js.map → component-BXaOK6YH.js.map} +1 -1
  541. package/dist/kolibri/{component-8mzKPFWl.js → component-DBqyeAbt.js} +2 -2
  542. package/dist/kolibri/{component-8mzKPFWl.js.map → component-DBqyeAbt.js.map} +1 -1
  543. package/dist/kolibri/{component-BG44r5Mq.js → component-DDkRuod7.js} +2 -2
  544. package/dist/{esm/component-BG44r5Mq.js.map → kolibri/component-DDkRuod7.js.map} +1 -1
  545. package/dist/kolibri/component-lILf7M8Y.js +5 -0
  546. package/dist/kolibri/{component-CCQEFb4H.js.map → component-lILf7M8Y.js.map} +1 -1
  547. package/dist/kolibri/contrast-CnVYN_kl.js.map +1 -1
  548. package/dist/kolibri/{controller-CE9LAI82.js → controller-B-aPh-rK.js} +2 -2
  549. package/dist/kolibri/{controller-CE9LAI82.js.map → controller-B-aPh-rK.js.map} +1 -1
  550. package/dist/kolibri/{controller-iY_1YW2P.js → controller-BKG2L8_f.js} +2 -2
  551. package/dist/kolibri/{controller-iY_1YW2P.js.map → controller-BKG2L8_f.js.map} +1 -1
  552. package/dist/kolibri/controller-i4DAkaDb.js +5 -0
  553. package/dist/{esm/controller-BCZEcGnd.js.map → kolibri/controller-i4DAkaDb.js.map} +1 -1
  554. package/dist/kolibri/{controller-icon-CQmlbwLY.js → controller-icon-lAqXvi57.js} +2 -2
  555. package/dist/{esm/controller-icon-CQmlbwLY.js.map → kolibri/controller-icon-lAqXvi57.js.map} +1 -1
  556. package/dist/kolibri/{dev.utils-BXf9h7MR.js → dev.utils-4OwwrWYD.js} +2 -2
  557. package/dist/kolibri/{dev.utils-BXf9h7MR.js.map → dev.utils-4OwwrWYD.js.map} +1 -1
  558. package/dist/kolibri/{devtools-DhAP1aCO.js → devtools-DQZUKzkH.js} +2 -2
  559. package/dist/kolibri/{devtools-DhAP1aCO.js.map → devtools-DQZUKzkH.js.map} +1 -1
  560. package/dist/kolibri/{index-C5dCp7IP.js → index-wGO77oPq.js} +2 -2
  561. package/dist/{esm/index-C5dCp7IP.js.map → kolibri/index-wGO77oPq.js.map} +1 -1
  562. package/dist/kolibri/kol-abbr.entry.esm.js.map +1 -1
  563. package/dist/kolibri/kol-abbr.entry.js +1 -1
  564. package/dist/kolibri/kol-abbr.entry.js.map +1 -1
  565. package/dist/kolibri/kol-accordion.entry.esm.js.map +1 -1
  566. package/dist/kolibri/kol-accordion.entry.js +1 -1
  567. package/dist/kolibri/kol-accordion.entry.js.map +1 -1
  568. package/dist/kolibri/kol-alert-wc.entry.js +1 -1
  569. package/dist/kolibri/kol-alert.entry.esm.js.map +1 -1
  570. package/dist/kolibri/kol-alert.entry.js +1 -1
  571. package/dist/kolibri/kol-alert.entry.js.map +1 -1
  572. package/dist/kolibri/kol-avatar.entry.esm.js.map +1 -1
  573. package/dist/kolibri/kol-avatar.entry.js +1 -1
  574. package/dist/kolibri/kol-avatar.entry.js.map +1 -1
  575. package/dist/kolibri/kol-badge.entry.esm.js.map +1 -1
  576. package/dist/kolibri/kol-badge.entry.js +1 -1
  577. package/dist/kolibri/kol-badge.entry.js.map +1 -1
  578. package/dist/kolibri/kol-breadcrumb.entry.esm.js.map +1 -1
  579. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  580. package/dist/kolibri/kol-breadcrumb.entry.js.map +1 -1
  581. package/dist/kolibri/kol-button-link.entry.esm.js.map +1 -1
  582. package/dist/kolibri/kol-button-link.entry.js +1 -1
  583. package/dist/kolibri/kol-button-link.entry.js.map +1 -1
  584. package/dist/kolibri/kol-button-wc.entry.js +1 -1
  585. package/dist/kolibri/kol-button.entry.esm.js.map +1 -1
  586. package/dist/kolibri/kol-button.entry.js +1 -1
  587. package/dist/kolibri/kol-button.entry.js.map +1 -1
  588. package/dist/kolibri/kol-card-wc.entry.js +1 -1
  589. package/dist/kolibri/kol-card.entry.esm.js.map +1 -1
  590. package/dist/kolibri/kol-card.entry.js +1 -1
  591. package/dist/kolibri/kol-card.entry.js.map +1 -1
  592. package/dist/kolibri/kol-click-button.entry.js +1 -1
  593. package/dist/kolibri/kol-combobox.entry.esm.js.map +1 -1
  594. package/dist/kolibri/kol-combobox.entry.js +1 -1
  595. package/dist/kolibri/kol-combobox.entry.js.map +1 -1
  596. package/dist/kolibri/kol-details.entry.esm.js.map +1 -1
  597. package/dist/kolibri/kol-details.entry.js +1 -1
  598. package/dist/kolibri/kol-details.entry.js.map +1 -1
  599. package/dist/kolibri/kol-dialog-wc.entry.js +1 -1
  600. package/dist/kolibri/kol-dialog.entry.esm.js.map +1 -1
  601. package/dist/kolibri/kol-dialog.entry.js +1 -1
  602. package/dist/kolibri/kol-dialog.entry.js.map +1 -1
  603. package/dist/kolibri/kol-drawer.entry.esm.js.map +1 -1
  604. package/dist/kolibri/kol-drawer.entry.js +1 -1
  605. package/dist/kolibri/kol-drawer.entry.js.map +1 -1
  606. package/dist/kolibri/kol-form.entry.esm.js.map +1 -1
  607. package/dist/kolibri/kol-form.entry.js +1 -1
  608. package/dist/kolibri/kol-form.entry.js.map +1 -1
  609. package/dist/kolibri/kol-heading.entry.esm.js.map +1 -1
  610. package/dist/kolibri/kol-heading.entry.js +1 -1
  611. package/dist/kolibri/kol-heading.entry.js.map +1 -1
  612. package/dist/kolibri/kol-icon.entry.js +1 -1
  613. package/dist/kolibri/kol-image.entry.esm.js.map +1 -1
  614. package/dist/kolibri/kol-image.entry.js +1 -1
  615. package/dist/kolibri/kol-image.entry.js.map +1 -1
  616. package/dist/kolibri/kol-input-checkbox.entry.esm.js.map +1 -1
  617. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  618. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  619. package/dist/kolibri/kol-input-color.entry.esm.js.map +1 -1
  620. package/dist/kolibri/kol-input-color.entry.js +1 -1
  621. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  622. package/dist/kolibri/kol-input-date.entry.esm.js.map +1 -1
  623. package/dist/kolibri/kol-input-date.entry.js +1 -1
  624. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  625. package/dist/kolibri/kol-input-email.entry.esm.js.map +1 -1
  626. package/dist/kolibri/kol-input-email.entry.js +1 -1
  627. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  628. package/dist/kolibri/kol-input-file.entry.esm.js.map +1 -1
  629. package/dist/kolibri/kol-input-file.entry.js +1 -1
  630. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  631. package/dist/kolibri/kol-input-number.entry.esm.js.map +1 -1
  632. package/dist/kolibri/kol-input-number.entry.js +1 -1
  633. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  634. package/dist/kolibri/kol-input-password.entry.esm.js.map +1 -1
  635. package/dist/kolibri/kol-input-password.entry.js +1 -1
  636. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  637. package/dist/kolibri/kol-input-radio.entry.esm.js.map +1 -1
  638. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  639. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  640. package/dist/kolibri/kol-input-range.entry.esm.js.map +1 -1
  641. package/dist/kolibri/kol-input-range.entry.js +1 -1
  642. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  643. package/dist/kolibri/kol-input-text.entry.esm.js.map +1 -1
  644. package/dist/kolibri/kol-input-text.entry.js +1 -1
  645. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  646. package/dist/kolibri/kol-kolibri.entry.esm.js.map +1 -1
  647. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  648. package/dist/kolibri/kol-kolibri.entry.js.map +1 -1
  649. package/dist/kolibri/kol-link-button.entry.esm.js.map +1 -1
  650. package/dist/kolibri/kol-link-button.entry.js +1 -1
  651. package/dist/kolibri/kol-link-button.entry.js.map +1 -1
  652. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  653. package/dist/kolibri/kol-link.entry.esm.js.map +1 -1
  654. package/dist/kolibri/kol-link.entry.js +1 -1
  655. package/dist/kolibri/kol-link.entry.js.map +1 -1
  656. package/dist/kolibri/kol-meter.entry.esm.js.map +1 -1
  657. package/dist/kolibri/kol-meter.entry.js +1 -1
  658. package/dist/kolibri/kol-meter.entry.js.map +1 -1
  659. package/dist/kolibri/kol-modal.entry.esm.js.map +1 -1
  660. package/dist/kolibri/kol-modal.entry.js +1 -1
  661. package/dist/kolibri/kol-modal.entry.js.map +1 -1
  662. package/dist/kolibri/kol-nav.entry.esm.js.map +1 -1
  663. package/dist/kolibri/kol-nav.entry.js +1 -1
  664. package/dist/kolibri/kol-nav.entry.js.map +1 -1
  665. package/dist/kolibri/kol-pagination-wc.entry.js +1 -1
  666. package/dist/kolibri/kol-pagination.entry.esm.js.map +1 -1
  667. package/dist/kolibri/kol-pagination.entry.js +1 -1
  668. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  669. package/dist/kolibri/kol-popover-button-wc.entry.js +1 -1
  670. package/dist/kolibri/kol-popover-button.entry.esm.js.map +1 -1
  671. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  672. package/dist/kolibri/kol-popover-button.entry.js.map +1 -1
  673. package/dist/kolibri/kol-progress.entry.esm.js.map +1 -1
  674. package/dist/kolibri/kol-progress.entry.js +1 -1
  675. package/dist/kolibri/kol-progress.entry.js.map +1 -1
  676. package/dist/kolibri/kol-quote.entry.esm.js.map +1 -1
  677. package/dist/kolibri/kol-quote.entry.js +1 -1
  678. package/dist/kolibri/kol-quote.entry.js.map +1 -1
  679. package/dist/kolibri/kol-select-wc.entry.esm.js.map +1 -1
  680. package/dist/kolibri/kol-select-wc.entry.js +1 -1
  681. package/dist/kolibri/kol-select.entry.esm.js.map +1 -1
  682. package/dist/kolibri/kol-select.entry.js +1 -1
  683. package/dist/kolibri/kol-select.entry.js.map +1 -1
  684. package/dist/kolibri/kol-single-select.entry.esm.js.map +1 -1
  685. package/dist/kolibri/kol-single-select.entry.js +1 -1
  686. package/dist/kolibri/kol-single-select.entry.js.map +1 -1
  687. package/dist/kolibri/kol-skeleton.entry.js +1 -1
  688. package/dist/kolibri/kol-skip-nav.entry.esm.js.map +1 -1
  689. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  690. package/dist/kolibri/kol-skip-nav.entry.js.map +1 -1
  691. package/dist/kolibri/kol-spin.entry.esm.js.map +1 -1
  692. package/dist/kolibri/kol-spin.entry.js +1 -1
  693. package/dist/kolibri/kol-spin.entry.js.map +1 -1
  694. package/dist/kolibri/kol-split-button.entry.esm.js.map +1 -1
  695. package/dist/kolibri/kol-split-button.entry.js +1 -1
  696. package/dist/kolibri/kol-split-button.entry.js.map +1 -1
  697. package/dist/kolibri/kol-table-settings-wc.entry.js +1 -1
  698. package/dist/kolibri/kol-table-stateful.entry.esm.js.map +1 -1
  699. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  700. package/dist/kolibri/kol-table-stateful.entry.js.map +1 -1
  701. package/dist/kolibri/kol-table-stateless-wc.entry.js +1 -1
  702. package/dist/kolibri/kol-table-stateless.entry.esm.js.map +1 -1
  703. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  704. package/dist/kolibri/kol-table-stateless.entry.js.map +1 -1
  705. package/dist/kolibri/kol-tabs.entry.esm.js.map +1 -1
  706. package/dist/kolibri/kol-tabs.entry.js +1 -1
  707. package/dist/kolibri/kol-tabs.entry.js.map +1 -1
  708. package/dist/kolibri/kol-textarea.entry.esm.js.map +1 -1
  709. package/dist/kolibri/kol-textarea.entry.js +1 -1
  710. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  711. package/dist/kolibri/kol-toast-container.entry.esm.js.map +1 -1
  712. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  713. package/dist/kolibri/kol-toast-container.entry.js.map +1 -1
  714. package/dist/kolibri/kol-toolbar.entry.esm.js.map +1 -1
  715. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  716. package/dist/kolibri/kol-toolbar.entry.js.map +1 -1
  717. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  718. package/dist/kolibri/kol-tree-item-wc.entry.js +1 -1
  719. package/dist/kolibri/kol-tree-item.entry.esm.js.map +1 -1
  720. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  721. package/dist/kolibri/kol-tree-item.entry.js.map +1 -1
  722. package/dist/kolibri/kol-tree-wc.entry.js +1 -1
  723. package/dist/kolibri/kol-tree.entry.esm.js.map +1 -1
  724. package/dist/kolibri/kol-tree.entry.js +1 -1
  725. package/dist/kolibri/kol-tree.entry.js.map +1 -1
  726. package/dist/kolibri/kol-version.entry.esm.js.map +1 -1
  727. package/dist/kolibri/kol-version.entry.js +1 -1
  728. package/dist/kolibri/kol-version.entry.js.map +1 -1
  729. package/dist/kolibri/kolibri.esm.js +1 -1
  730. package/dist/kolibri/test-component.entry.js +1 -1
  731. package/dist/types/schema/utils/contrast.d.ts +1 -1
  732. package/doc/badge.md +7 -0
  733. package/doc/button.md +3 -3
  734. package/doc/heading.md +3 -3
  735. package/doc/input-checkbox.md +3 -3
  736. package/doc/input-date.md +3 -3
  737. package/doc/input-email.md +3 -3
  738. package/doc/input-number.md +3 -3
  739. package/doc/input-password.md +3 -3
  740. package/doc/input-radio.md +3 -3
  741. package/doc/input-range.md +3 -3
  742. package/doc/input-text.md +3 -3
  743. package/doc/link.md +7 -0
  744. package/doc/select.md +3 -3
  745. package/package.json +6 -6
  746. package/dist/cjs/Alert-Bv-BrwWN.js.map +0 -1
  747. package/dist/esm/Alert-CVh_XwxH.js.map +0 -1
  748. package/dist/kolibri/Alert-CVh_XwxH.js +0 -5
  749. package/dist/kolibri/Alert-CVh_XwxH.js.map +0 -1
  750. package/dist/kolibri/Collapsible-Cy_Z7SX6.js +0 -5
  751. package/dist/kolibri/FieldControlStateWrapper-BY46U1nq.js +0 -5
  752. package/dist/kolibri/Input-B4nV0JRw.js +0 -5
  753. package/dist/kolibri/InputStateWrapper-Cjv8q51E.js +0 -5
  754. package/dist/kolibri/component-CCQEFb4H.js +0 -5
  755. package/dist/kolibri/controller-BCZEcGnd.js +0 -5
@@ -1 +1 @@
1
- {"file":"kol-table-stateful.js","mappings":";;;;;;;;;;;;;;;AAgBO,MAAM,sBAAsB,GAAG,CAAC,SAAoC,EAAE,KAA8B,EAAE,OAAA,GAA+B,EAAE,KAAU;IACvJ,YAAY,CAAC,SAAS,EAAE,iBAAiB,EAAE,KAAK,EAAI,MAAA,CAAA,MAAA,CAAA,EAAA,YAAY,EAAE,KAAK,EAAK,EAAA,OAAO,EAAG;AACvF,CAAC;;ACdD,MAAM,iCAAiC,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAU;AAWrE,MAAM,0BAA0B,GAAG,CAAC,SAAoC,EAAE,KAAkC,KAAU;AAC5H,IAAA,cAAc,CACb,SAAS,EACT,CAAqB,mBAAA,CAAA,EACrB,CAAC,KAAK,KAAK,OAAO,KAAK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C,gBAAgB,EAC7C,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACtB,CAAA,EACD,IAAI,CAAC,YAAY,GAAG,CAAC,IAAI,IAAI,CAAC,cAAc,IAAI,gBAAgB,CAC3D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["KolTableStateful","__stencil_proxyCustomElement"],"sources":["src/schema/props/allow-multi-sort.ts","src/schema/props/pagination-position.ts","src/components/table-stateful/style.scss?tag=kol-table-stateful&mode=default&encapsulation=shadow","src/components/table-stateful/shadow.tsx"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport type { WatchBooleanOptions } from '../utils';\nimport { watchBoolean } from '../utils';\n\n/* types */\nexport type AllowMultiSortPropType = boolean;\n\n/**\n * Defines whether to allow multi sort.\n */\nexport interface PropAllowMultiSort {\n\tallowMultiSort: AllowMultiSortPropType;\n}\n\n/* validator */\nexport const validateAllowMultiSort = (component: Generic.Element.Component, value?: AllowMultiSortPropType, options: WatchBooleanOptions = {}): void => {\n\twatchBoolean(component, '_allowMultiSort', value, { defaultValue: false, ...options });\n};\n","/* types */\nimport type { Generic } from 'adopted-style-sheets';\nimport { watchValidator } from '../utils/prop.validators';\n\nconst paginationPositionPropTypeOptions = ['top', 'bottom', 'both'] as const;\nexport type PaginationPositionPropType = (typeof paginationPositionPropTypeOptions)[number];\n\n/**\n * Defines which position should be used for presentation.\n */\nexport type PropPaginationPosition = {\n\tpaginationPosition: PaginationPositionPropType;\n};\n\n/* validator */\nexport const validatePaginationPosition = (component: Generic.Element.Component, value?: PaginationPositionPropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t`_paginationPosition`,\n\t\t(value) => typeof value === 'string' && paginationPositionPropTypeOptions.includes(value),\n\t\tnew Set([`PaginationPositionPropType {${paginationPositionPropTypeOptions.join(', ')}`]),\n\t\tvalue,\n\t\t{\n\t\t\tdefaultValue: 'bottom',\n\t\t},\n\t);\n};\n","@use '../@shared/global' as *;\n@use '../@shared/alert.mixin' as *;\n@use '../@shared/button.mixin' as *;\n@use '../@shared/popover-button.mixin' as *;\n@use '../@shared/table-stateless.mixin' as *;\n@use '../@shared/mixins' as *;\n@use '../@shared/pagination.mixin' as *;\n\n@layer kol-component {\n\t@include kol-alert;\n\t@include kol-button-styles('kol-button');\n\t@include kol-popover-button-styles;\n\t@include kol-table-stateless-styles;\n\t@include kol-pagination-styles;\n}\n","import type { JSX } from '@stencil/core';\nimport { Component, Element, h, Host, Method, Prop, State, Watch } from '@stencil/core';\nimport { KolPaginationWcTag, KolTableStatelessWcTag } from '../../core/component-names';\nimport { translate } from '../../i18n';\nimport type {\n\tChangeHeaderCellsEventPayload,\n\tFixedColsPropType,\n\tHasSettingsMenuPropType,\n\tKoliBriDataCompareFn,\n\tKoliBriPaginationButtonCallbacks,\n\tKoliBriSortDirection,\n\tKoliBriTableDataType,\n\tKoliBriTableHeaderCell,\n\tKoliBriTableHeaderCellWithLogic,\n\tKoliBriTableHeaders,\n\tKoliBriTablePaginationProps,\n\tKoliBriTableSelectionKeys,\n\tLabelPropType,\n\tPaginationPositionPropType,\n\tSortEventPayload,\n\tStringified,\n\tTableAPI,\n\tTableDataFootPropType,\n\tTableDataPropType,\n\tTableHeaderCells,\n\tTableSelectionPropType,\n\tTableStatefulCallbacksPropType,\n\tTableStates,\n\tVariantClassNamePropType,\n} from '../../schema';\nimport {\n\tdevHint,\n\temptyStringByArrayHandler,\n\tobjectObjectHandler,\n\tparseJson,\n\tsetState,\n\tvalidateAllowMultiSort,\n\tvalidateFixedCols,\n\tvalidateHasSettingsMenu,\n\tvalidateLabel,\n\tvalidatePaginationPosition,\n\tvalidateTableData,\n\tvalidateTableDataFoot,\n\tvalidateTableSelection,\n\tvalidateTableStatefulCallbacks,\n\twatchValidator,\n} from '../../schema';\nimport { Callback } from '../../schema/enums';\nimport { validateAriaLabelledby, type AriaLabelledbyPropType } from '../../schema/props/aria-labelledby';\nimport { attachInternals, type HostInternals } from '../../utils/aria-labelledby';\nimport { dispatchDomEvent, KolEvent } from '../../utils/events';\n\nconst PAGINATION_OPTIONS = [10, 20, 50, 100];\n\nconst paginationValidator = (value: unknown) => value === true || value === '' /* true */ || (typeof value === 'object' && value !== null);\n\ntype SortData = {\n\tlabel: string;\n\tkey: string;\n\tcompareFn: KoliBriDataCompareFn;\n\tdirection: KoliBriSortDirection;\n};\n\n/**\n * The **Table** component is primarily used for the clear presentation of data sets. It is designed to automatically determine all data-dependent values and render the table accordingly. This includes optional features such as column sorting and pagination.\n */\n@Component({\n\ttag: 'kol-table-stateful',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolTableStateful implements TableAPI {\n\t@Element() private readonly host?: HTMLKolTableStatefulElement;\n\n\tprivate internals?: HostInternals;\n\n\t@State() private resolvedElements: HTMLElement[] = [];\n\n\t/**\n\t * References an external element by ID that serves as the accessible label for this table.\n\t * Uses ElementInternals.ariaLabelledByElements to cross the Shadow DOM boundary.\n\t * Supported by desktop screen readers (NVDA, JAWS with Chrome/Firefox).\n\t * Not yet supported by mobile screen readers (TalkBack, VoiceOver iOS) — use `_label` instead.\n\t */\n\t@Prop() public _ariaLabelledby?: AriaLabelledbyPropType;\n\n\t@Watch('_ariaLabelledby')\n\tpublic validateAriaLabelledby(value?: AriaLabelledbyPropType): void {\n\t\tthis.syncExternalLabel(value);\n\t}\n\n\tprivate syncExternalLabel(value?: AriaLabelledbyPropType): void {\n\t\tthis.resolvedElements = validateAriaLabelledby(this, this.host, this.internals, value);\n\t}\n\n\tprivate tableWcRef?: HTMLKolTableStatelessWcElement;\n\n\tprivate readonly catchRef = (ref?: HTMLKolTableStatelessWcElement) => {\n\t\tthis.tableWcRef = ref;\n\t};\n\n\tprivate sortData: SortData[] = [];\n\tprivate showPagination = false;\n\tprivate pageStartSlice = 0;\n\tprivate pageEndSlice = 10;\n\tprivate disableSort = false;\n\n\t/**\n\t * Holds the header cells adjusted via the settings menu (visibility, width, order). Persisting\n\t * them here ensures the customisation survives re-renders triggered by sorting, pagination,\n\t * selection or data updates instead of being reset to the original `_headers`. (#10344)\n\t */\n\t@State() private adjustedHeaderCells?: TableHeaderCells;\n\n\t/**\n\t * Defines whether to allow multi sort.\n\t */\n\t@Prop() public _allowMultiSort?: boolean;\n\n\t/**\n\t * Defines the primary table data.\n\t */\n\t@Prop() public _data!: Stringified<KoliBriTableDataType[]>;\n\n\t/**\n\t * Defines the data for the table footer.\n\t */\n\t@Prop() public _dataFoot?: Stringified<KoliBriTableDataType[]>;\n\n\t/**\n\t * Defines the fixed number of columns from start and end of the table\n\t */\n\t@Prop() public _fixedCols?: FixedColsPropType;\n\n\t/**\n\t * Defines the horizontal and vertical table headers.\n\t */\n\t@Prop() public _headers!: Stringified<KoliBriTableHeaders>;\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 whether to show the data distributed over multiple pages.\n\t */\n\t@Prop() public _pagination?: boolean | Stringified<KoliBriTablePaginationProps>;\n\t/**\n\t * Controls the position of the pagination.\n\t */\n\t@Prop() public _paginationPosition?: PaginationPositionPropType = 'bottom';\n\t/**\n\t * Defines how rows can be selected and the current selection.\n\t */\n\t@Prop() public _selection?: TableSelectionPropType;\n\t/**\n\t * Defines the callback functions for table events.\n\t */\n\t@Prop() public _on?: TableStatefulCallbacksPropType;\n\n\t/**\n\t * Enables the settings menu if true (default: false).\n\t */\n\t@Prop() public _hasSettingsMenu?: HasSettingsMenuPropType;\n\n\t/**\n\t * Defines which variant should be used for presentation.\n\t */\n\t@Prop() public _variant?: VariantClassNamePropType;\n\n\t@State() public state: TableStates = {\n\t\t_allowMultiSort: false,\n\t\t_fixedCols: [0, 0],\n\t\t_data: [],\n\t\t_dataFoot: [],\n\t\t_headers: {\n\t\t\thorizontal: [],\n\t\t\tvertical: [],\n\t\t},\n\t\t_label: '', // ⚠ required\n\t\t_pagination: {\n\t\t\t_page: 1,\n\t\t\t_pageSize: 10,\n\t\t\t_max: 0,\n\t\t},\n\t\t_sortedData: [],\n\t\t_paginationPosition: 'bottom',\n\t\t_hasSettingsMenu: false,\n\t};\n\n\t@Watch('_allowMultiSort')\n\tpublic validateAllowMultiSort(value?: boolean): void {\n\t\tvalidateAllowMultiSort(this, value, { defaultValue: false });\n\t}\n\n\t@Watch('_data')\n\tpublic validateData(value?: TableDataPropType): void {\n\t\tvalidateTableData(this, value, {\n\t\t\tafterPatch: () => {\n\t\t\t\t// TODO: kein guter Hack (endless loop)\n\t\t\t\tsetTimeout(this.updateSortedData);\n\t\t\t},\n\t\t});\n\t}\n\n\t@Watch('_dataFoot')\n\tpublic validateDataFoot(value?: TableDataFootPropType): void {\n\t\tvalidateTableDataFoot(this, value, {\n\t\t\tafterPatch: () => {\n\t\t\t\tsetTimeout(this.updateSortedData);\n\t\t\t},\n\t\t});\n\t}\n\n\t@Watch('_fixedCols')\n\tpublic validateFixedCols(value?: FixedColsPropType) {\n\t\tvalidateFixedCols(this, value);\n\t}\n\n\t@Watch('_paginationPosition')\n\tpublic validatePaginationPosition(value?: PaginationPositionPropType): void {\n\t\tvalidatePaginationPosition(this, value);\n\t}\n\n\t@Watch('_hasSettingsMenu')\n\tpublic validateHasSettingsMenu(value?: HasSettingsMenuPropType): void {\n\t\tvalidateHasSettingsMenu(this, value);\n\t}\n\n\t/**\n\t * Handles sorting logic for table columns.\n\t * If multi-sort is enabled (`_allowMultiSort`), multiple columns can be sorted at once.\n\t * Otherwise, sorting is cleared when switching between columns.\n\t */\n\tprivate changeCellSort(headerCell: KoliBriTableHeaderCellWithLogic) {\n\t\tif (headerCell.type === undefined || headerCell.type === 'default') {\n\t\t\tif (typeof headerCell.compareFn !== 'function') {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (!this.state._allowMultiSort && headerCell.key !== this.sortData[0]?.key) {\n\t\t\t\t// clear when another column is sorted and multi sort is not allowed\n\t\t\t\tthis.sortData = [];\n\t\t\t}\n\n\t\t\tconst index = this.sortData.findIndex((value) => value.key === headerCell.key);\n\t\t\tif (index >= 0) {\n\t\t\t\tconst settings = this.sortData[index];\n\t\t\t\tswitch (settings.direction) {\n\t\t\t\t\tcase 'ASC':\n\t\t\t\t\t\tsettings.direction = 'DESC';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'DESC':\n\t\t\t\t\t\tthis.sortData.splice(index, 1);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tsettings.direction = 'ASC';\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else if (headerCell.key) {\n\t\t\t\tthis.sortData.push({\n\t\t\t\t\tlabel: headerCell.label,\n\t\t\t\t\tkey: headerCell.key,\n\t\t\t\t\tcompareFn: headerCell.compareFn,\n\t\t\t\t\tdirection: 'ASC',\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tthis.updateSortedData();\n\t\t}\n\t}\n\n\tprivate initializeSortFromHeaders(headers: KoliBriTableHeaders): boolean {\n\t\tlet hasSortedCells = false;\n\t\tconst applySort = (cells: KoliBriTableHeaderCellWithLogic[]) => {\n\t\t\tthis.sortData = [];\n\t\t\tcells.forEach((cell) => {\n\t\t\t\tif (cell.type !== undefined && cell.type !== 'default') {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (typeof cell.compareFn === 'function' && !cell.key) {\n\t\t\t\t\tdevHint(`[KolTableStateful] A sortable column requires the 'key' property.`);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tconst key = cell.key;\n\t\t\t\tif (!key) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tconst sortDirection = cell.sortDirection;\n\t\t\t\tif (sortDirection === 'ASC' || sortDirection === 'DESC') {\n\t\t\t\t\tif (typeof cell.compareFn === 'function') {\n\t\t\t\t\t\tif (this.state._allowMultiSort || this.sortData.length === 0) {\n\t\t\t\t\t\t\tthis.sortData.push({ label: cell.label, key, compareFn: cell.compareFn, direction: sortDirection });\n\t\t\t\t\t\t}\n\t\t\t\t\t\thasSortedCells = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t};\n\t\theaders.horizontal?.forEach(applySort);\n\t\theaders.vertical?.forEach(applySort);\n\t\treturn hasSortedCells;\n\t}\n\n\t@Watch('_headers')\n\tpublic validateHeaders(value?: Stringified<KoliBriTableHeaders>): void {\n\t\t/**\n\t\t * - es darf maximal ein Header als primary markiert werden (last win)\n\t\t * - der primary-Header entscheidet implizit über _order und _orientation\n\t\t * - primary-Headers müssen das key-Property setzen\n\t\t * - nicht primary-Headers müssen das key-Property nicht setzen (wird ignoriert)\n\t\t * - _order: wird durch den primary-Header geregelt\n\t\t * - _orientation: wird durch den primary-Header geregelt\n\t\t * - sobald ein Header sortierbar ist, darf es nur noch entweder horizontale\n\t\t * oder vertikale Header geben, aber nicht mehr beides\n\t\t */\n\t\temptyStringByArrayHandler(value, () => {\n\t\t\tobjectObjectHandler(value, () => {\n\t\t\t\ttry {\n\t\t\t\t\tvalue = parseJson<KoliBriTableHeaders>(value);\n\t\t\t\t} catch {\n\t\t\t\t\t// value behält den ursprünglichen Wert\n\t\t\t\t}\n\t\t\t\twatchValidator(this, '_headers', (value): boolean => typeof value === 'object' && value !== null, new Set(['KoliBriTableHeaders']), value, {\n\t\t\t\t\thooks: {\n\t\t\t\t\t\tbeforePatch: (nextValue: unknown) => {\n\t\t\t\t\t\t\tconst headers: KoliBriTableHeaders = nextValue as KoliBriTableHeaders;\n\t\t\t\t\t\t\t// Only drop the user's settings when the column structure actually changes. A new\n\t\t\t\t\t\t\t// object reference with identical keys (common with inline/non-memoized headers in\n\t\t\t\t\t\t\t// React) must keep the customisation. (#10344)\n\t\t\t\t\t\t\tif (this.headerKeysChanged(this.state._headers, headers)) {\n\t\t\t\t\t\t\t\tthis.adjustedHeaderCells = undefined;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tconst hasSortedCells = this.initializeSortFromHeaders(headers);\n\t\t\t\t\t\t\tif (hasSortedCells) {\n\t\t\t\t\t\t\t\tsetTimeout(() => this.updateSortedData());\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (headers.horizontal && headers.vertical && headers.horizontal?.length > 0 && headers.vertical?.length > 0) {\n\t\t\t\t\t\t\t\tthis.disableSort = true;\n\t\t\t\t\t\t\t\tdevHint(\n\t\t\t\t\t\t\t\t\t`Table: You can not sort the table data, if horizontal and vertical headers are defined at the same time. (https://github.com/public-ui/kolibri/issues/2372)`,\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},\n\t\t\t\t});\n\t\t\t});\n\t\t});\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('_selection')\n\tpublic validateSelection(value?: TableSelectionPropType): void {\n\t\tvalidateTableSelection(this, value);\n\t}\n\t@Watch('_on')\n\tpublic validateOn(value?: TableStatefulCallbacksPropType): void {\n\t\tvalidateTableStatefulCallbacks(this, value);\n\t}\n\n\tprivate readonly handlePagination: KoliBriPaginationButtonCallbacks = {\n\t\tonClick: (event: Event, page: number) => {\n\t\t\tif (typeof this.state._pagination._on?.onClick === 'function') {\n\t\t\t\tthis.state._pagination._on.onClick(event, page);\n\t\t\t}\n\t\t\tsetState(this, '_pagination', {\n\t\t\t\t...this.state._pagination,\n\t\t\t\t_page: page,\n\t\t\t});\n\t\t},\n\t\tonChangePage: (event: Event, page: number) => {\n\t\t\tif (typeof this.state._pagination._on?.onChangePage === 'function') {\n\t\t\t\tthis.state._pagination._on.onChangePage(event, page);\n\t\t\t}\n\t\t\tsetState(this, '_pagination', {\n\t\t\t\t...this.state._pagination,\n\t\t\t\t_page: page,\n\t\t\t});\n\t\t},\n\t\tonChangePageSize: (event: Event, pageSize: number) => {\n\t\t\tif (typeof this.state._pagination._on?.onChangePageSize === 'function') {\n\t\t\t\tthis.state._pagination._on.onChangePageSize(event, pageSize);\n\t\t\t}\n\t\t\tsetState(this, '_pagination', {\n\t\t\t\t...this.state._pagination,\n\t\t\t\t_pageSize: pageSize,\n\t\t\t});\n\t\t\tsetState(this, '_pageSize', pageSize);\n\t\t},\n\t};\n\n\t@Watch('_pagination')\n\tpublic validatePagination(value?: boolean | Stringified<KoliBriTablePaginationProps>): void {\n\t\ttry {\n\t\t\tvalue = parseJson<boolean | KoliBriTablePaginationProps>(value);\n\t\t} catch {\n\t\t\t// value behält den ursprünglichen Wert\n\t\t}\n\n\t\tthis.showPagination = paginationValidator(value);\n\n\t\twatchValidator<boolean | Stringified<KoliBriTablePaginationProps>>(\n\t\t\tthis,\n\t\t\t'_pagination',\n\t\t\tpaginationValidator,\n\t\t\tnew Set(['boolean', 'KoliBriTablePagination']),\n\t\t\tvalue,\n\t\t\t{\n\t\t\t\tdefaultValue: {\n\t\t\t\t\t_page: 1,\n\t\t\t\t\t_pageSize: 10,\n\t\t\t\t\t_max: 0,\n\t\t\t\t},\n\t\t\t},\n\t\t);\n\t}\n\n\tprivate onSelectionChange = (event: Event): void => {\n\t\t/* Stop propagation for selectionChange event from table-stateless component because table-stateful emits its own selectionChange event. */\n\t\tevent.stopPropagation();\n\t};\n\n\tpublic componentDidLoad(): void {\n\t\tthis.tableWcRef?.addEventListener(KolEvent.selectionChange, this.onSelectionChange);\n\t\t// Re-resolve after mount to avoid depending on timer-based retries.\n\t\tif (!this.resolvedElements.length) {\n\t\t\tthis.syncExternalLabel(this._ariaLabelledby);\n\t\t}\n\t}\n\n\tpublic disconnectedCallback(): void {\n\t\tthis.tableWcRef?.removeEventListener(KolEvent.selectionChange, this.onSelectionChange);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.internals = attachInternals(this.host);\n\t\t// Early resolution: if the external element is already in the DOM (common when the\n\t\t// label element is rendered before this component), the first render already uses\n\t\t// externalLabelElements so the AT sees the correct name from the start.\n\t\tthis.syncExternalLabel(this._ariaLabelledby);\n\n\t\tthis.validateAllowMultiSort(this._allowMultiSort);\n\t\tthis.validateData(this._data);\n\t\tthis.validateDataFoot(this._dataFoot);\n\t\tthis.validateFixedCols(this._fixedCols);\n\t\tthis.validateHeaders(this._headers);\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateOn(this._on);\n\t\tthis.validatePagination(this._pagination);\n\t\tthis.validatePaginationPosition(this._paginationPosition);\n\t\tthis.validateSelection(this._selection);\n\t\tthis.validateHasSettingsMenu(this._hasSettingsMenu);\n\t}\n\n\tprivate selectDisplayedData(data: KoliBriTableDataType[], pageSize: number, page: number): KoliBriTableDataType[] {\n\t\tif (typeof pageSize === 'number' && pageSize > 0 && typeof page === 'number' && page > 0) {\n\t\t\tthis.pageStartSlice = pageSize * (page - 1);\n\t\t\tthis.pageEndSlice = pageSize * page > data.length ? data.length : pageSize * page;\n\t\t\treturn data.slice(this.pageStartSlice, this.pageEndSlice);\n\t\t} else {\n\t\t\tthis.pageStartSlice = 0;\n\t\t\tthis.pageEndSlice = data.length;\n\t\t\treturn data;\n\t\t}\n\t}\n\n\tprivate updateSortedData = () => {\n\t\tif (this.disableSort) {\n\t\t\tsetState(this, '_sortedData', this.state._data);\n\t\t\treturn;\n\t\t}\n\n\t\tconst sortedData: KoliBriTableDataType[] = [...this.state._data];\n\t\tif (this.sortData.length > 0) {\n\t\t\tsortedData.sort((a: KoliBriTableDataType, b: KoliBriTableDataType) => {\n\t\t\t\tfor (let index = 0; index < this.sortData.length; index++) {\n\t\t\t\t\tconst data = this.sortData[index];\n\t\t\t\t\tconst result = data.compareFn(a, b, data.direction);\n\t\t\t\t\tif (result !== 0) {\n\t\t\t\t\t\treturn data.direction === 'ASC' ? result : -result;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn 0;\n\t\t\t});\n\t\t}\n\t\tsetState(this, '_sortedData', sortedData);\n\t};\n\n\t/**\n\t * Renders the pagination controls for the table, showing the current visible data range\n\t * and providing navigation between different pages.\n\t *\n\t * @returns {JSX.Element} The rendered pagination controls including page range and navigation.\n\t */\n\tprivate renderPagination(position: 'top' | 'bottom'): JSX.Element {\n\t\tconst label = translate('kol-table-pagination-label', {\n\t\t\tplaceholders: {\n\t\t\t\tlabel: `${this.state._label} (${translate(`kol-pagination-position-${position}`)})`,\n\t\t\t},\n\t\t});\n\t\treturn (\n\t\t\t<div class={`kol-table-stateful__pagination kol-table-stateful__pagination--${this.state._paginationPosition}`}>\n\t\t\t\t<div class=\"kol-table-stateful__pagination-wrapper\">\n\t\t\t\t\t<KolPaginationWcTag\n\t\t\t\t\t\t_boundaryCount={this.state._pagination._boundaryCount}\n\t\t\t\t\t\t_customClass={this.state._pagination._customClass}\n\t\t\t\t\t\t_hasButtons={this.state._pagination._hasButtons}\n\t\t\t\t\t\t_on={this.handlePagination}\n\t\t\t\t\t\t_page={this.state._pagination._page}\n\t\t\t\t\t\t_pageSize={this.state._pagination._pageSize}\n\t\t\t\t\t\t_pageSizeOptions={this.state._pagination._pageSizeOptions || PAGINATION_OPTIONS}\n\t\t\t\t\t\t_siblingCount={this.state._pagination._siblingCount}\n\t\t\t\t\t\t_tooltipAlign=\"bottom\"\n\t\t\t\t\t\t_max={this.state._pagination._max || this.state._data.length}\n\t\t\t\t\t\t_label={label}\n\t\t\t\t\t></KolPaginationWcTag>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n\n\tprivate getHeaderCellSortState(headerCell: KoliBriTableHeaderCellWithLogic): KoliBriSortDirection | undefined {\n\t\tif (headerCell.type !== undefined && headerCell.type !== 'default') {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!this.disableSort && typeof headerCell.compareFn === 'function') {\n\t\t\tif (headerCell.key) {\n\t\t\t\tconst data = this.sortData.find((value) => value.key === headerCell.key);\n\t\t\t\tif (data?.direction) {\n\t\t\t\t\treturn data.direction;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn 'NOS';\n\t\t}\n\t}\n\n\tprivate getHeaderCellSortOrder(headerCell: KoliBriTableHeaderCellWithLogic): number | undefined {\n\t\tif (headerCell.type !== undefined && headerCell.type !== 'default') {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!this.disableSort && this.state._allowMultiSort && typeof headerCell.compareFn === 'function' && headerCell.key) {\n\t\t\tconst index = this.sortData.findIndex((value) => value.key === headerCell.key);\n\t\t\tif (index >= 0) {\n\t\t\t\treturn index + 1;\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate handleSort({ key }: SortEventPayload) {\n\t\tconst horizontalHeaders = this.state._headers.horizontal ?? [];\n\t\tconst verticalHeaders = this.state._headers.vertical ?? [];\n\t\tconst allHeaders: KoliBriTableHeaderCellWithLogic[] = [];\n\t\tfor (const row of horizontalHeaders) {\n\t\t\tif (Array.isArray(row)) {\n\t\t\t\tallHeaders.push(...row);\n\t\t\t}\n\t\t}\n\t\tfor (const row of verticalHeaders) {\n\t\t\tif (Array.isArray(row)) {\n\t\t\t\tallHeaders.push(...row);\n\t\t\t}\n\t\t}\n\t\tconst headerCell = allHeaders.find((cell) => cell.key === key);\n\t\tif (headerCell) {\n\t\t\tthis.changeCellSort(headerCell);\n\t\t}\n\t}\n\n\tprivate getSelectedData(selectedKeys: KoliBriTableSelectionKeys): null | KoliBriTableDataType[] {\n\t\tconst selection = this.state._selection;\n\t\tif (selection) {\n\t\t\tconst keyPropertyName = selection.keyPropertyName ?? 'id';\n\t\t\tconst keySet = new Set(selectedKeys.map(String));\n\t\t\tconst data = this.state._sortedData.filter((item) => keySet.has(String(item[keyPropertyName] as string | number)));\n\t\t\tif (keyPropertyName) return data;\n\t\t}\n\t\treturn null;\n\t}\n\n\tprivate handleSelectionChange(event: Event, selectedKeys: KoliBriTableSelectionKeys): void {\n\t\tconst selection = this.state._selection;\n\t\tif (selection)\n\t\t\tthis.state = {\n\t\t\t\t...this.state,\n\t\t\t\t_selection: {\n\t\t\t\t\t...selection,\n\t\t\t\t\tselectedKeys,\n\t\t\t\t},\n\t\t\t};\n\t\tconst selectedData = this.getSelectedData(selectedKeys);\n\n\t\tif (typeof this.state._on?.[Callback.onSelectionChange] === 'function') {\n\t\t\tthis.state._on[Callback.onSelectionChange](event, selectedData);\n\t\t}\n\t\tif (this.host) {\n\t\t\tdispatchDomEvent(this.host, KolEvent.selectionChange, selectedData);\n\t\t}\n\t}\n\n\t/**\n\t * Returns the selected rows.\n\t */\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async getSelection(): Promise<KoliBriTableDataType[] | null> {\n\t\tconst selectedKeys: KoliBriTableSelectionKeys = this.state._selection?.selectedKeys || [];\n\t\treturn this.getSelectedData(selectedKeys);\n\t}\n\n\t/**\n\t * Resets the sort state to the default values defined in the `_headers` prop.\n\t */\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async resetSort(): Promise<void> {\n\t\tthis.initializeSortFromHeaders(this.state._headers);\n\t\tthis.updateSortedData();\n\t}\n\n\t/**\n\t * Stores the header cells the user adjusted via the settings menu so they are reapplied on the\n\t * next render. Called from the `onChangeHeaderCells` callback of the stateless table. (#10344)\n\t */\n\tprivate readonly handleChangeHeaderCells = (headerCells: ChangeHeaderCellsEventPayload): void => {\n\t\tthis.adjustedHeaderCells = headerCells;\n\t};\n\n\t/**\n\t * Returns true if the set or order of column keys differs between two header definitions. Used to\n\t * decide whether persisted settings are still applicable to a new `_headers` value. (#10344)\n\t */\n\tprivate headerKeysChanged(previous: KoliBriTableHeaders, next: KoliBriTableHeaders): boolean {\n\t\tconst getKeys = (headers: KoliBriTableHeaders): string[] => [\n\t\t\t...(headers.horizontal?.flatMap((row) => row.map((cell) => cell?.key).filter((key): key is string => Boolean(key))) ?? []),\n\t\t\t...(headers.vertical?.flatMap((column) => column.map((cell) => cell?.key).filter((key): key is string => Boolean(key))) ?? []),\n\t\t];\n\t\tconst previousKeys = getKeys(previous);\n\t\tconst nextKeys = getKeys(next);\n\t\treturn previousKeys.length !== nextKeys.length || previousKeys.some((key, index) => key !== nextKeys[index]);\n\t}\n\n\t/**\n\t * Merges the user-adjusted header cells (order, visibility, width) back onto the original\n\t * `_headers` definition, matched by `key`. Logic-only fields like `compareFn` and `actions` are\n\t * always taken from the authoritative `_headers` cell, so the adjusted cells never need to carry\n\t * (or lose) them. (#10344)\n\t */\n\tprivate mergeAdjustedHeaderCells(adjusted: KoliBriTableHeaderCell[][]): KoliBriTableHeaderCellWithLogic[][] {\n\t\tconst originalByKey = new Map<string, KoliBriTableHeaderCellWithLogic>();\n\t\tthis.state._headers.horizontal?.forEach((row) =>\n\t\t\trow.forEach((cell) => {\n\t\t\t\tif (cell?.key) {\n\t\t\t\t\toriginalByKey.set(cell.key, cell);\n\t\t\t\t}\n\t\t\t}),\n\t\t);\n\n\t\treturn adjusted.map((row) =>\n\t\t\trow.map((cell) => {\n\t\t\t\tconst original = cell?.key ? originalByKey.get(cell.key) : undefined;\n\t\t\t\tif (!original) {\n\t\t\t\t\treturn cell as KoliBriTableHeaderCellWithLogic;\n\t\t\t\t}\n\t\t\t\t// Keep logic fields from the original definition, overlay only the user-adjustable settings.\n\t\t\t\tconst merged = { ...original } as KoliBriTableHeaderCellWithLogic;\n\t\t\t\tif (cell.visible !== undefined) merged.visible = cell.visible;\n\t\t\t\tif (cell.width !== undefined) merged.width = cell.width;\n\t\t\t\tif (cell.hidable !== undefined) merged.hidable = cell.hidable;\n\t\t\t\tif (cell.sortable !== undefined) merged.sortable = cell.sortable;\n\t\t\t\tif (cell.resizable !== undefined) merged.resizable = cell.resizable;\n\t\t\t\treturn merged;\n\t\t\t}),\n\t\t);\n\t}\n\n\t/**\n\t * Builds the header cells passed to the stateless table. When the user has adjusted the columns\n\t * via the settings menu (`adjustedHeaderCells`), those horizontal cells are merged onto the\n\t * original `_headers` so the customisation (visibility, width, order) is preserved. The current\n\t * sort state is always overlaid on top. (#10344)\n\t */\n\tprivate buildHeaderCells(): TableHeaderCells {\n\t\tconst overlaySortState = (cell: KoliBriTableHeaderCellWithLogic) =>\n\t\t\tcell\n\t\t\t\t? {\n\t\t\t\t\t\t...cell,\n\t\t\t\t\t\tsortDirection: this.getHeaderCellSortState(cell),\n\t\t\t\t\t\tsortOrder: this.getHeaderCellSortOrder(cell),\n\t\t\t\t\t}\n\t\t\t\t: cell;\n\n\t\tconst horizontalHeaders = this.adjustedHeaderCells?.horizontal\n\t\t\t? this.mergeAdjustedHeaderCells(this.adjustedHeaderCells.horizontal)\n\t\t\t: this.state._headers.horizontal;\n\n\t\treturn {\n\t\t\thorizontal: horizontalHeaders?.map((row) => row.map(overlaySortState)) ?? [],\n\t\t\tvertical: this.state._headers.vertical?.map((column) => column.map(overlaySortState)) ?? [],\n\t\t};\n\t}\n\n\tpublic render(): JSX.Element {\n\t\tconst displayedData: KoliBriTableDataType[] = this.selectDisplayedData(\n\t\t\tthis.state._sortedData,\n\t\t\tthis.showPagination ? (this.state._pagination?._pageSize ?? 10) : this.state._sortedData.length,\n\t\t\tthis.state._pagination._page || 1,\n\t\t);\n\t\tconst paginationTop = this._paginationPosition === 'top' || this._paginationPosition === 'both' ? this.renderPagination('top') : null;\n\t\tconst paginationBottom = this._paginationPosition === 'bottom' || this._paginationPosition === 'both' ? this.renderPagination('bottom') : null;\n\n\t\tconst headerCells: TableHeaderCells = this.buildHeaderCells();\n\t\treturn (\n\t\t\t<Host class=\"kol-table-stateful\">\n\t\t\t\t{this.pageEndSlice > 0 && this.showPagination && paginationTop}\n\t\t\t\t<KolTableStatelessWcTag\n\t\t\t\t\texternalLabelElements={this.resolvedElements}\n\t\t\t\t\tref={this.catchRef}\n\t\t\t\t\t_data={displayedData}\n\t\t\t\t\t_fixedCols={this._fixedCols}\n\t\t\t\t\t_headerCells={headerCells}\n\t\t\t\t\t_label={this.state._label}\n\t\t\t\t\t_dataFoot={this.state._dataFoot}\n\t\t\t\t\t_on={{\n\t\t\t\t\t\tonSort: (_: MouseEvent, payload: SortEventPayload) => {\n\t\t\t\t\t\t\tthis.handleSort(payload);\n\t\t\t\t\t\t},\n\t\t\t\t\t\tonSelectionChange: (event: Event, value: KoliBriTableSelectionKeys) => {\n\t\t\t\t\t\t\tthis.handleSelectionChange(event, value);\n\t\t\t\t\t\t},\n\t\t\t\t\t\tonChangeHeaderCells: (_event: Event, headerCells: ChangeHeaderCellsEventPayload) => {\n\t\t\t\t\t\t\tthis.handleChangeHeaderCells(headerCells);\n\t\t\t\t\t\t},\n\t\t\t\t\t}}\n\t\t\t\t\t_selection={this.state._selection}\n\t\t\t\t\t_hasSettingsMenu={this.state._hasSettingsMenu}\n\t\t\t\t\t_variant={this._variant}\n\t\t\t\t/>\n\t\t\t\t{this.pageEndSlice > 0 && this.showPagination && paginationBottom}\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"version":3}
1
+ {"file":"kol-table-stateful.js","mappings":";;;;;;;;;;;;;;;AAgBO,MAAM,sBAAsB,GAAG,CAAC,SAAoC,EAAE,KAA8B,EAAE,OAAA,GAA+B,EAAE,KAAU;IACvJ,YAAY,CAAC,SAAS,EAAE,iBAAiB,EAAE,KAAK,EAAI,MAAA,CAAA,MAAA,CAAA,EAAA,YAAY,EAAE,KAAK,EAAK,EAAA,OAAO,EAAG;AACvF,CAAC;;ACdD,MAAM,iCAAiC,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAU;AAWrE,MAAM,0BAA0B,GAAG,CAAC,SAAoC,EAAE,KAAkC,KAAU;AAC5H,IAAA,cAAc,CACb,SAAS,EACT,CAAqB,mBAAA,CAAA,EACrB,CAAC,KAAK,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,iCAAiC,CAAC,QAAQ,CAAC,KAAK,CAAC,EACzF,IAAI,GAAG,CAAC,CAAC,+BAA+B,iCAAiC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA,CAAE,CAAC,CAAC,EACxF,KAAK,EACL;AACC,QAAA,YAAY,EAAE,QAAQ;AACtB,KAAA,CACD;AACF,CAAC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olTableStateful","__stencil_proxyCustomElement"],"sources":["src/schema/props/allow-multi-sort.ts","src/schema/props/pagination-position.ts","src/components/table-stateful/style.scss?tag=kol-table-stateful&mode=default&encapsulation=shadow","src/components/table-stateful/shadow.tsx"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport type { WatchBooleanOptions } from '../utils';\nimport { watchBoolean } from '../utils';\n\n/* types */\nexport type AllowMultiSortPropType = boolean;\n\n/**\n * Defines whether to allow multi sort.\n */\nexport interface PropAllowMultiSort {\n\tallowMultiSort: AllowMultiSortPropType;\n}\n\n/* validator */\nexport const validateAllowMultiSort = (component: Generic.Element.Component, value?: AllowMultiSortPropType, options: WatchBooleanOptions = {}): void => {\n\twatchBoolean(component, '_allowMultiSort', value, { defaultValue: false, ...options });\n};\n","/* types */\nimport type { Generic } from 'adopted-style-sheets';\nimport { watchValidator } from '../utils/prop.validators';\n\nconst paginationPositionPropTypeOptions = ['top', 'bottom', 'both'] as const;\nexport type PaginationPositionPropType = (typeof paginationPositionPropTypeOptions)[number];\n\n/**\n * Defines which position should be used for presentation.\n */\nexport type PropPaginationPosition = {\n\tpaginationPosition: PaginationPositionPropType;\n};\n\n/* validator */\nexport const validatePaginationPosition = (component: Generic.Element.Component, value?: PaginationPositionPropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t`_paginationPosition`,\n\t\t(value) => typeof value === 'string' && paginationPositionPropTypeOptions.includes(value),\n\t\tnew Set([`PaginationPositionPropType {${paginationPositionPropTypeOptions.join(', ')}`]),\n\t\tvalue,\n\t\t{\n\t\t\tdefaultValue: 'bottom',\n\t\t},\n\t);\n};\n","@use '../@shared/global' as *;\n@use '../@shared/alert.mixin' as *;\n@use '../@shared/button.mixin' as *;\n@use '../@shared/popover-button.mixin' as *;\n@use '../@shared/table-stateless.mixin' as *;\n@use '../@shared/mixins' as *;\n@use '../@shared/pagination.mixin' as *;\n\n@layer kol-component {\n\t@include kol-alert;\n\t@include kol-button-styles('kol-button');\n\t@include kol-popover-button-styles;\n\t@include kol-table-stateless-styles;\n\t@include kol-pagination-styles;\n}\n","import type { JSX } from '@stencil/core';\nimport { Component, Element, h, Host, Method, Prop, State, Watch } from '@stencil/core';\nimport { KolPaginationWcTag, KolTableStatelessWcTag } from '../../core/component-names';\nimport { translate } from '../../i18n';\nimport type {\n\tChangeHeaderCellsEventPayload,\n\tFixedColsPropType,\n\tHasSettingsMenuPropType,\n\tKoliBriDataCompareFn,\n\tKoliBriPaginationButtonCallbacks,\n\tKoliBriSortDirection,\n\tKoliBriTableDataType,\n\tKoliBriTableHeaderCell,\n\tKoliBriTableHeaderCellWithLogic,\n\tKoliBriTableHeaders,\n\tKoliBriTablePaginationProps,\n\tKoliBriTableSelectionKeys,\n\tLabelPropType,\n\tPaginationPositionPropType,\n\tSortEventPayload,\n\tStringified,\n\tTableAPI,\n\tTableDataFootPropType,\n\tTableDataPropType,\n\tTableHeaderCells,\n\tTableSelectionPropType,\n\tTableStatefulCallbacksPropType,\n\tTableStates,\n\tVariantClassNamePropType,\n} from '../../schema';\nimport {\n\tdevHint,\n\temptyStringByArrayHandler,\n\tobjectObjectHandler,\n\tparseJson,\n\tsetState,\n\tvalidateAllowMultiSort,\n\tvalidateFixedCols,\n\tvalidateHasSettingsMenu,\n\tvalidateLabel,\n\tvalidatePaginationPosition,\n\tvalidateTableData,\n\tvalidateTableDataFoot,\n\tvalidateTableSelection,\n\tvalidateTableStatefulCallbacks,\n\twatchValidator,\n} from '../../schema';\nimport { Callback } from '../../schema/enums';\nimport { validateAriaLabelledby, type AriaLabelledbyPropType } from '../../schema/props/aria-labelledby';\nimport { attachInternals, type HostInternals } from '../../utils/aria-labelledby';\nimport { dispatchDomEvent, KolEvent } from '../../utils/events';\n\nconst PAGINATION_OPTIONS = [10, 20, 50, 100];\n\nconst paginationValidator = (value: unknown) => value === true || value === '' /* true */ || (typeof value === 'object' && value !== null);\n\ntype SortData = {\n\tlabel: string;\n\tkey: string;\n\tcompareFn: KoliBriDataCompareFn;\n\tdirection: KoliBriSortDirection;\n};\n\n/**\n * The **Table** component is primarily used for the clear presentation of data sets. It is designed to automatically determine all data-dependent values and render the table accordingly. This includes optional features such as column sorting and pagination.\n */\n@Component({\n\ttag: 'kol-table-stateful',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolTableStateful implements TableAPI {\n\t@Element() private readonly host?: HTMLKolTableStatefulElement;\n\n\tprivate internals?: HostInternals;\n\n\t@State() private resolvedElements: HTMLElement[] = [];\n\n\t/**\n\t * References an external element by ID that serves as the accessible label for this table.\n\t * Uses ElementInternals.ariaLabelledByElements to cross the Shadow DOM boundary.\n\t * Supported by desktop screen readers (NVDA, JAWS with Chrome/Firefox).\n\t * Not yet supported by mobile screen readers (TalkBack, VoiceOver iOS) — use `_label` instead.\n\t */\n\t@Prop() public _ariaLabelledby?: AriaLabelledbyPropType;\n\n\t@Watch('_ariaLabelledby')\n\tpublic validateAriaLabelledby(value?: AriaLabelledbyPropType): void {\n\t\tthis.syncExternalLabel(value);\n\t}\n\n\tprivate syncExternalLabel(value?: AriaLabelledbyPropType): void {\n\t\tthis.resolvedElements = validateAriaLabelledby(this, this.host, this.internals, value);\n\t}\n\n\tprivate tableWcRef?: HTMLKolTableStatelessWcElement;\n\n\tprivate readonly catchRef = (ref?: HTMLKolTableStatelessWcElement) => {\n\t\tthis.tableWcRef = ref;\n\t};\n\n\tprivate sortData: SortData[] = [];\n\tprivate showPagination = false;\n\tprivate pageStartSlice = 0;\n\tprivate pageEndSlice = 10;\n\tprivate disableSort = false;\n\n\t/**\n\t * Holds the header cells adjusted via the settings menu (visibility, width, order). Persisting\n\t * them here ensures the customisation survives re-renders triggered by sorting, pagination,\n\t * selection or data updates instead of being reset to the original `_headers`. (#10344)\n\t */\n\t@State() private adjustedHeaderCells?: TableHeaderCells;\n\n\t/**\n\t * Defines whether to allow multi sort.\n\t */\n\t@Prop() public _allowMultiSort?: boolean;\n\n\t/**\n\t * Defines the primary table data.\n\t */\n\t@Prop() public _data!: Stringified<KoliBriTableDataType[]>;\n\n\t/**\n\t * Defines the data for the table footer.\n\t */\n\t@Prop() public _dataFoot?: Stringified<KoliBriTableDataType[]>;\n\n\t/**\n\t * Defines the fixed number of columns from start and end of the table\n\t */\n\t@Prop() public _fixedCols?: FixedColsPropType;\n\n\t/**\n\t * Defines the horizontal and vertical table headers.\n\t */\n\t@Prop() public _headers!: Stringified<KoliBriTableHeaders>;\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 whether to show the data distributed over multiple pages.\n\t */\n\t@Prop() public _pagination?: boolean | Stringified<KoliBriTablePaginationProps>;\n\t/**\n\t * Controls the position of the pagination.\n\t */\n\t@Prop() public _paginationPosition?: PaginationPositionPropType = 'bottom';\n\t/**\n\t * Defines how rows can be selected and the current selection.\n\t */\n\t@Prop() public _selection?: TableSelectionPropType;\n\t/**\n\t * Defines the callback functions for table events.\n\t */\n\t@Prop() public _on?: TableStatefulCallbacksPropType;\n\n\t/**\n\t * Enables the settings menu if true (default: false).\n\t */\n\t@Prop() public _hasSettingsMenu?: HasSettingsMenuPropType;\n\n\t/**\n\t * Defines which variant should be used for presentation.\n\t */\n\t@Prop() public _variant?: VariantClassNamePropType;\n\n\t@State() public state: TableStates = {\n\t\t_allowMultiSort: false,\n\t\t_fixedCols: [0, 0],\n\t\t_data: [],\n\t\t_dataFoot: [],\n\t\t_headers: {\n\t\t\thorizontal: [],\n\t\t\tvertical: [],\n\t\t},\n\t\t_label: '', // ⚠ required\n\t\t_pagination: {\n\t\t\t_page: 1,\n\t\t\t_pageSize: 10,\n\t\t\t_max: 0,\n\t\t},\n\t\t_sortedData: [],\n\t\t_paginationPosition: 'bottom',\n\t\t_hasSettingsMenu: false,\n\t};\n\n\t@Watch('_allowMultiSort')\n\tpublic validateAllowMultiSort(value?: boolean): void {\n\t\tvalidateAllowMultiSort(this, value, { defaultValue: false });\n\t}\n\n\t@Watch('_data')\n\tpublic validateData(value?: TableDataPropType): void {\n\t\tvalidateTableData(this, value, {\n\t\t\tafterPatch: () => {\n\t\t\t\t// TODO: kein guter Hack (endless loop)\n\t\t\t\tsetTimeout(this.updateSortedData);\n\t\t\t},\n\t\t});\n\t}\n\n\t@Watch('_dataFoot')\n\tpublic validateDataFoot(value?: TableDataFootPropType): void {\n\t\tvalidateTableDataFoot(this, value, {\n\t\t\tafterPatch: () => {\n\t\t\t\tsetTimeout(this.updateSortedData);\n\t\t\t},\n\t\t});\n\t}\n\n\t@Watch('_fixedCols')\n\tpublic validateFixedCols(value?: FixedColsPropType) {\n\t\tvalidateFixedCols(this, value);\n\t}\n\n\t@Watch('_paginationPosition')\n\tpublic validatePaginationPosition(value?: PaginationPositionPropType): void {\n\t\tvalidatePaginationPosition(this, value);\n\t}\n\n\t@Watch('_hasSettingsMenu')\n\tpublic validateHasSettingsMenu(value?: HasSettingsMenuPropType): void {\n\t\tvalidateHasSettingsMenu(this, value);\n\t}\n\n\t/**\n\t * Handles sorting logic for table columns.\n\t * If multi-sort is enabled (`_allowMultiSort`), multiple columns can be sorted at once.\n\t * Otherwise, sorting is cleared when switching between columns.\n\t */\n\tprivate changeCellSort(headerCell: KoliBriTableHeaderCellWithLogic) {\n\t\tif (headerCell.type === undefined || headerCell.type === 'default') {\n\t\t\tif (typeof headerCell.compareFn !== 'function') {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (!this.state._allowMultiSort && headerCell.key !== this.sortData[0]?.key) {\n\t\t\t\t// clear when another column is sorted and multi sort is not allowed\n\t\t\t\tthis.sortData = [];\n\t\t\t}\n\n\t\t\tconst index = this.sortData.findIndex((value) => value.key === headerCell.key);\n\t\t\tif (index >= 0) {\n\t\t\t\tconst settings = this.sortData[index];\n\t\t\t\tswitch (settings.direction) {\n\t\t\t\t\tcase 'ASC':\n\t\t\t\t\t\tsettings.direction = 'DESC';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'DESC':\n\t\t\t\t\t\tthis.sortData.splice(index, 1);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tsettings.direction = 'ASC';\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else if (headerCell.key) {\n\t\t\t\tthis.sortData.push({\n\t\t\t\t\tlabel: headerCell.label,\n\t\t\t\t\tkey: headerCell.key,\n\t\t\t\t\tcompareFn: headerCell.compareFn,\n\t\t\t\t\tdirection: 'ASC',\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tthis.updateSortedData();\n\t\t}\n\t}\n\n\tprivate initializeSortFromHeaders(headers: KoliBriTableHeaders): boolean {\n\t\tlet hasSortedCells = false;\n\t\tconst applySort = (cells: KoliBriTableHeaderCellWithLogic[]) => {\n\t\t\tthis.sortData = [];\n\t\t\tcells.forEach((cell) => {\n\t\t\t\tif (cell.type !== undefined && cell.type !== 'default') {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (typeof cell.compareFn === 'function' && !cell.key) {\n\t\t\t\t\tdevHint(`[KolTableStateful] A sortable column requires the 'key' property.`);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tconst key = cell.key;\n\t\t\t\tif (!key) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tconst sortDirection = cell.sortDirection;\n\t\t\t\tif (sortDirection === 'ASC' || sortDirection === 'DESC') {\n\t\t\t\t\tif (typeof cell.compareFn === 'function') {\n\t\t\t\t\t\tif (this.state._allowMultiSort || this.sortData.length === 0) {\n\t\t\t\t\t\t\tthis.sortData.push({ label: cell.label, key, compareFn: cell.compareFn, direction: sortDirection });\n\t\t\t\t\t\t}\n\t\t\t\t\t\thasSortedCells = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t};\n\t\theaders.horizontal?.forEach(applySort);\n\t\theaders.vertical?.forEach(applySort);\n\t\treturn hasSortedCells;\n\t}\n\n\t@Watch('_headers')\n\tpublic validateHeaders(value?: Stringified<KoliBriTableHeaders>): void {\n\t\t/**\n\t\t * - es darf maximal ein Header als primary markiert werden (last win)\n\t\t * - der primary-Header entscheidet implizit über _order und _orientation\n\t\t * - primary-Headers müssen das key-Property setzen\n\t\t * - nicht primary-Headers müssen das key-Property nicht setzen (wird ignoriert)\n\t\t * - _order: wird durch den primary-Header geregelt\n\t\t * - _orientation: wird durch den primary-Header geregelt\n\t\t * - sobald ein Header sortierbar ist, darf es nur noch entweder horizontale\n\t\t * oder vertikale Header geben, aber nicht mehr beides\n\t\t */\n\t\temptyStringByArrayHandler(value, () => {\n\t\t\tobjectObjectHandler(value, () => {\n\t\t\t\ttry {\n\t\t\t\t\tvalue = parseJson<KoliBriTableHeaders>(value);\n\t\t\t\t} catch {\n\t\t\t\t\t// value behält den ursprünglichen Wert\n\t\t\t\t}\n\t\t\t\twatchValidator(this, '_headers', (value): boolean => typeof value === 'object' && value !== null, new Set(['KoliBriTableHeaders']), value, {\n\t\t\t\t\thooks: {\n\t\t\t\t\t\tbeforePatch: (nextValue: unknown) => {\n\t\t\t\t\t\t\tconst headers: KoliBriTableHeaders = nextValue as KoliBriTableHeaders;\n\t\t\t\t\t\t\t// Only drop the user's settings when the column structure actually changes. A new\n\t\t\t\t\t\t\t// object reference with identical keys (common with inline/non-memoized headers in\n\t\t\t\t\t\t\t// React) must keep the customisation. (#10344)\n\t\t\t\t\t\t\tif (this.headerKeysChanged(this.state._headers, headers)) {\n\t\t\t\t\t\t\t\tthis.adjustedHeaderCells = undefined;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tconst hasSortedCells = this.initializeSortFromHeaders(headers);\n\t\t\t\t\t\t\tif (hasSortedCells) {\n\t\t\t\t\t\t\t\tsetTimeout(() => this.updateSortedData());\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (headers.horizontal && headers.vertical && headers.horizontal?.length > 0 && headers.vertical?.length > 0) {\n\t\t\t\t\t\t\t\tthis.disableSort = true;\n\t\t\t\t\t\t\t\tdevHint(\n\t\t\t\t\t\t\t\t\t`Table: You can not sort the table data, if horizontal and vertical headers are defined at the same time. (https://github.com/public-ui/kolibri/issues/2372)`,\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},\n\t\t\t\t});\n\t\t\t});\n\t\t});\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('_selection')\n\tpublic validateSelection(value?: TableSelectionPropType): void {\n\t\tvalidateTableSelection(this, value);\n\t}\n\t@Watch('_on')\n\tpublic validateOn(value?: TableStatefulCallbacksPropType): void {\n\t\tvalidateTableStatefulCallbacks(this, value);\n\t}\n\n\tprivate readonly handlePagination: KoliBriPaginationButtonCallbacks = {\n\t\tonClick: (event: Event, page: number) => {\n\t\t\tif (typeof this.state._pagination._on?.onClick === 'function') {\n\t\t\t\tthis.state._pagination._on.onClick(event, page);\n\t\t\t}\n\t\t\tsetState(this, '_pagination', {\n\t\t\t\t...this.state._pagination,\n\t\t\t\t_page: page,\n\t\t\t});\n\t\t},\n\t\tonChangePage: (event: Event, page: number) => {\n\t\t\tif (typeof this.state._pagination._on?.onChangePage === 'function') {\n\t\t\t\tthis.state._pagination._on.onChangePage(event, page);\n\t\t\t}\n\t\t\tsetState(this, '_pagination', {\n\t\t\t\t...this.state._pagination,\n\t\t\t\t_page: page,\n\t\t\t});\n\t\t},\n\t\tonChangePageSize: (event: Event, pageSize: number) => {\n\t\t\tif (typeof this.state._pagination._on?.onChangePageSize === 'function') {\n\t\t\t\tthis.state._pagination._on.onChangePageSize(event, pageSize);\n\t\t\t}\n\t\t\tsetState(this, '_pagination', {\n\t\t\t\t...this.state._pagination,\n\t\t\t\t_pageSize: pageSize,\n\t\t\t});\n\t\t\tsetState(this, '_pageSize', pageSize);\n\t\t},\n\t};\n\n\t@Watch('_pagination')\n\tpublic validatePagination(value?: boolean | Stringified<KoliBriTablePaginationProps>): void {\n\t\ttry {\n\t\t\tvalue = parseJson<boolean | KoliBriTablePaginationProps>(value);\n\t\t} catch {\n\t\t\t// value behält den ursprünglichen Wert\n\t\t}\n\n\t\tthis.showPagination = paginationValidator(value);\n\n\t\twatchValidator<boolean | Stringified<KoliBriTablePaginationProps>>(\n\t\t\tthis,\n\t\t\t'_pagination',\n\t\t\tpaginationValidator,\n\t\t\tnew Set(['boolean', 'KoliBriTablePagination']),\n\t\t\tvalue,\n\t\t\t{\n\t\t\t\tdefaultValue: {\n\t\t\t\t\t_page: 1,\n\t\t\t\t\t_pageSize: 10,\n\t\t\t\t\t_max: 0,\n\t\t\t\t},\n\t\t\t},\n\t\t);\n\t}\n\n\tprivate onSelectionChange = (event: Event): void => {\n\t\t/* Stop propagation for selectionChange event from table-stateless component because table-stateful emits its own selectionChange event. */\n\t\tevent.stopPropagation();\n\t};\n\n\tpublic componentDidLoad(): void {\n\t\tthis.tableWcRef?.addEventListener(KolEvent.selectionChange, this.onSelectionChange);\n\t\t// Re-resolve after mount to avoid depending on timer-based retries.\n\t\tif (!this.resolvedElements.length) {\n\t\t\tthis.syncExternalLabel(this._ariaLabelledby);\n\t\t}\n\t}\n\n\tpublic disconnectedCallback(): void {\n\t\tthis.tableWcRef?.removeEventListener(KolEvent.selectionChange, this.onSelectionChange);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.internals = attachInternals(this.host);\n\t\t// Early resolution: if the external element is already in the DOM (common when the\n\t\t// label element is rendered before this component), the first render already uses\n\t\t// externalLabelElements so the AT sees the correct name from the start.\n\t\tthis.syncExternalLabel(this._ariaLabelledby);\n\n\t\tthis.validateAllowMultiSort(this._allowMultiSort);\n\t\tthis.validateData(this._data);\n\t\tthis.validateDataFoot(this._dataFoot);\n\t\tthis.validateFixedCols(this._fixedCols);\n\t\tthis.validateHeaders(this._headers);\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateOn(this._on);\n\t\tthis.validatePagination(this._pagination);\n\t\tthis.validatePaginationPosition(this._paginationPosition);\n\t\tthis.validateSelection(this._selection);\n\t\tthis.validateHasSettingsMenu(this._hasSettingsMenu);\n\t}\n\n\tprivate selectDisplayedData(data: KoliBriTableDataType[], pageSize: number, page: number): KoliBriTableDataType[] {\n\t\tif (typeof pageSize === 'number' && pageSize > 0 && typeof page === 'number' && page > 0) {\n\t\t\tthis.pageStartSlice = pageSize * (page - 1);\n\t\t\tthis.pageEndSlice = pageSize * page > data.length ? data.length : pageSize * page;\n\t\t\treturn data.slice(this.pageStartSlice, this.pageEndSlice);\n\t\t} else {\n\t\t\tthis.pageStartSlice = 0;\n\t\t\tthis.pageEndSlice = data.length;\n\t\t\treturn data;\n\t\t}\n\t}\n\n\tprivate updateSortedData = () => {\n\t\tif (this.disableSort) {\n\t\t\tsetState(this, '_sortedData', this.state._data);\n\t\t\treturn;\n\t\t}\n\n\t\tconst sortedData: KoliBriTableDataType[] = [...this.state._data];\n\t\tif (this.sortData.length > 0) {\n\t\t\tsortedData.sort((a: KoliBriTableDataType, b: KoliBriTableDataType) => {\n\t\t\t\tfor (let index = 0; index < this.sortData.length; index++) {\n\t\t\t\t\tconst data = this.sortData[index];\n\t\t\t\t\tconst result = data.compareFn(a, b, data.direction);\n\t\t\t\t\tif (result !== 0) {\n\t\t\t\t\t\treturn data.direction === 'ASC' ? result : -result;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn 0;\n\t\t\t});\n\t\t}\n\t\tsetState(this, '_sortedData', sortedData);\n\t};\n\n\t/**\n\t * Renders the pagination controls for the table, showing the current visible data range\n\t * and providing navigation between different pages.\n\t *\n\t * @returns {JSX.Element} The rendered pagination controls including page range and navigation.\n\t */\n\tprivate renderPagination(position: 'top' | 'bottom'): JSX.Element {\n\t\tconst label = translate('kol-table-pagination-label', {\n\t\t\tplaceholders: {\n\t\t\t\tlabel: `${this.state._label} (${translate(`kol-pagination-position-${position}`)})`,\n\t\t\t},\n\t\t});\n\t\treturn (\n\t\t\t<div class={`kol-table-stateful__pagination kol-table-stateful__pagination--${this.state._paginationPosition}`}>\n\t\t\t\t<div class=\"kol-table-stateful__pagination-wrapper\">\n\t\t\t\t\t<KolPaginationWcTag\n\t\t\t\t\t\t_boundaryCount={this.state._pagination._boundaryCount}\n\t\t\t\t\t\t_customClass={this.state._pagination._customClass}\n\t\t\t\t\t\t_hasButtons={this.state._pagination._hasButtons}\n\t\t\t\t\t\t_on={this.handlePagination}\n\t\t\t\t\t\t_page={this.state._pagination._page}\n\t\t\t\t\t\t_pageSize={this.state._pagination._pageSize}\n\t\t\t\t\t\t_pageSizeOptions={this.state._pagination._pageSizeOptions || PAGINATION_OPTIONS}\n\t\t\t\t\t\t_siblingCount={this.state._pagination._siblingCount}\n\t\t\t\t\t\t_tooltipAlign=\"bottom\"\n\t\t\t\t\t\t_max={this.state._pagination._max || this.state._data.length}\n\t\t\t\t\t\t_label={label}\n\t\t\t\t\t></KolPaginationWcTag>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n\n\tprivate getHeaderCellSortState(headerCell: KoliBriTableHeaderCellWithLogic): KoliBriSortDirection | undefined {\n\t\tif (headerCell.type !== undefined && headerCell.type !== 'default') {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!this.disableSort && typeof headerCell.compareFn === 'function') {\n\t\t\tif (headerCell.key) {\n\t\t\t\tconst data = this.sortData.find((value) => value.key === headerCell.key);\n\t\t\t\tif (data?.direction) {\n\t\t\t\t\treturn data.direction;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn 'NOS';\n\t\t}\n\t}\n\n\tprivate getHeaderCellSortOrder(headerCell: KoliBriTableHeaderCellWithLogic): number | undefined {\n\t\tif (headerCell.type !== undefined && headerCell.type !== 'default') {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!this.disableSort && this.state._allowMultiSort && typeof headerCell.compareFn === 'function' && headerCell.key) {\n\t\t\tconst index = this.sortData.findIndex((value) => value.key === headerCell.key);\n\t\t\tif (index >= 0) {\n\t\t\t\treturn index + 1;\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate handleSort({ key }: SortEventPayload) {\n\t\tconst horizontalHeaders = this.state._headers.horizontal ?? [];\n\t\tconst verticalHeaders = this.state._headers.vertical ?? [];\n\t\tconst allHeaders: KoliBriTableHeaderCellWithLogic[] = [];\n\t\tfor (const row of horizontalHeaders) {\n\t\t\tif (Array.isArray(row)) {\n\t\t\t\tallHeaders.push(...row);\n\t\t\t}\n\t\t}\n\t\tfor (const row of verticalHeaders) {\n\t\t\tif (Array.isArray(row)) {\n\t\t\t\tallHeaders.push(...row);\n\t\t\t}\n\t\t}\n\t\tconst headerCell = allHeaders.find((cell) => cell.key === key);\n\t\tif (headerCell) {\n\t\t\tthis.changeCellSort(headerCell);\n\t\t}\n\t}\n\n\tprivate getSelectedData(selectedKeys: KoliBriTableSelectionKeys): null | KoliBriTableDataType[] {\n\t\tconst selection = this.state._selection;\n\t\tif (selection) {\n\t\t\tconst keyPropertyName = selection.keyPropertyName ?? 'id';\n\t\t\tconst keySet = new Set(selectedKeys.map(String));\n\t\t\tconst data = this.state._sortedData.filter((item) => keySet.has(String(item[keyPropertyName] as string | number)));\n\t\t\tif (keyPropertyName) return data;\n\t\t}\n\t\treturn null;\n\t}\n\n\tprivate handleSelectionChange(event: Event, selectedKeys: KoliBriTableSelectionKeys): void {\n\t\tconst selection = this.state._selection;\n\t\tif (selection)\n\t\t\tthis.state = {\n\t\t\t\t...this.state,\n\t\t\t\t_selection: {\n\t\t\t\t\t...selection,\n\t\t\t\t\tselectedKeys,\n\t\t\t\t},\n\t\t\t};\n\t\tconst selectedData = this.getSelectedData(selectedKeys);\n\n\t\tif (typeof this.state._on?.[Callback.onSelectionChange] === 'function') {\n\t\t\tthis.state._on[Callback.onSelectionChange](event, selectedData);\n\t\t}\n\t\tif (this.host) {\n\t\t\tdispatchDomEvent(this.host, KolEvent.selectionChange, selectedData);\n\t\t}\n\t}\n\n\t/**\n\t * Returns the selected rows.\n\t */\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async getSelection(): Promise<KoliBriTableDataType[] | null> {\n\t\tconst selectedKeys: KoliBriTableSelectionKeys = this.state._selection?.selectedKeys || [];\n\t\treturn this.getSelectedData(selectedKeys);\n\t}\n\n\t/**\n\t * Resets the sort state to the default values defined in the `_headers` prop.\n\t */\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async resetSort(): Promise<void> {\n\t\tthis.initializeSortFromHeaders(this.state._headers);\n\t\tthis.updateSortedData();\n\t}\n\n\t/**\n\t * Stores the header cells the user adjusted via the settings menu so they are reapplied on the\n\t * next render. Called from the `onChangeHeaderCells` callback of the stateless table. (#10344)\n\t */\n\tprivate readonly handleChangeHeaderCells = (headerCells: ChangeHeaderCellsEventPayload): void => {\n\t\tthis.adjustedHeaderCells = headerCells;\n\t};\n\n\t/**\n\t * Returns true if the set or order of column keys differs between two header definitions. Used to\n\t * decide whether persisted settings are still applicable to a new `_headers` value. (#10344)\n\t */\n\tprivate headerKeysChanged(previous: KoliBriTableHeaders, next: KoliBriTableHeaders): boolean {\n\t\tconst getKeys = (headers: KoliBriTableHeaders): string[] => [\n\t\t\t...(headers.horizontal?.flatMap((row) => row.map((cell) => cell?.key).filter((key): key is string => Boolean(key))) ?? []),\n\t\t\t...(headers.vertical?.flatMap((column) => column.map((cell) => cell?.key).filter((key): key is string => Boolean(key))) ?? []),\n\t\t];\n\t\tconst previousKeys = getKeys(previous);\n\t\tconst nextKeys = getKeys(next);\n\t\treturn previousKeys.length !== nextKeys.length || previousKeys.some((key, index) => key !== nextKeys[index]);\n\t}\n\n\t/**\n\t * Merges the user-adjusted header cells (order, visibility, width) back onto the original\n\t * `_headers` definition, matched by `key`. Logic-only fields like `compareFn` and `actions` are\n\t * always taken from the authoritative `_headers` cell, so the adjusted cells never need to carry\n\t * (or lose) them. (#10344)\n\t */\n\tprivate mergeAdjustedHeaderCells(adjusted: KoliBriTableHeaderCell[][]): KoliBriTableHeaderCellWithLogic[][] {\n\t\tconst originalByKey = new Map<string, KoliBriTableHeaderCellWithLogic>();\n\t\tthis.state._headers.horizontal?.forEach((row) =>\n\t\t\trow.forEach((cell) => {\n\t\t\t\tif (cell?.key) {\n\t\t\t\t\toriginalByKey.set(cell.key, cell);\n\t\t\t\t}\n\t\t\t}),\n\t\t);\n\n\t\treturn adjusted.map((row) =>\n\t\t\trow.map((cell) => {\n\t\t\t\tconst original = cell?.key ? originalByKey.get(cell.key) : undefined;\n\t\t\t\tif (!original) {\n\t\t\t\t\treturn cell as KoliBriTableHeaderCellWithLogic;\n\t\t\t\t}\n\t\t\t\t// Keep logic fields from the original definition, overlay only the user-adjustable settings.\n\t\t\t\tconst merged = { ...original } as KoliBriTableHeaderCellWithLogic;\n\t\t\t\tif (cell.visible !== undefined) merged.visible = cell.visible;\n\t\t\t\tif (cell.width !== undefined) merged.width = cell.width;\n\t\t\t\tif (cell.hidable !== undefined) merged.hidable = cell.hidable;\n\t\t\t\tif (cell.sortable !== undefined) merged.sortable = cell.sortable;\n\t\t\t\tif (cell.resizable !== undefined) merged.resizable = cell.resizable;\n\t\t\t\treturn merged;\n\t\t\t}),\n\t\t);\n\t}\n\n\t/**\n\t * Builds the header cells passed to the stateless table. When the user has adjusted the columns\n\t * via the settings menu (`adjustedHeaderCells`), those horizontal cells are merged onto the\n\t * original `_headers` so the customisation (visibility, width, order) is preserved. The current\n\t * sort state is always overlaid on top. (#10344)\n\t */\n\tprivate buildHeaderCells(): TableHeaderCells {\n\t\tconst overlaySortState = (cell: KoliBriTableHeaderCellWithLogic) =>\n\t\t\tcell\n\t\t\t\t? {\n\t\t\t\t\t\t...cell,\n\t\t\t\t\t\tsortDirection: this.getHeaderCellSortState(cell),\n\t\t\t\t\t\tsortOrder: this.getHeaderCellSortOrder(cell),\n\t\t\t\t\t}\n\t\t\t\t: cell;\n\n\t\tconst horizontalHeaders = this.adjustedHeaderCells?.horizontal\n\t\t\t? this.mergeAdjustedHeaderCells(this.adjustedHeaderCells.horizontal)\n\t\t\t: this.state._headers.horizontal;\n\n\t\treturn {\n\t\t\thorizontal: horizontalHeaders?.map((row) => row.map(overlaySortState)) ?? [],\n\t\t\tvertical: this.state._headers.vertical?.map((column) => column.map(overlaySortState)) ?? [],\n\t\t};\n\t}\n\n\tpublic render(): JSX.Element {\n\t\tconst displayedData: KoliBriTableDataType[] = this.selectDisplayedData(\n\t\t\tthis.state._sortedData,\n\t\t\tthis.showPagination ? (this.state._pagination?._pageSize ?? 10) : this.state._sortedData.length,\n\t\t\tthis.state._pagination._page || 1,\n\t\t);\n\t\tconst paginationTop = this._paginationPosition === 'top' || this._paginationPosition === 'both' ? this.renderPagination('top') : null;\n\t\tconst paginationBottom = this._paginationPosition === 'bottom' || this._paginationPosition === 'both' ? this.renderPagination('bottom') : null;\n\n\t\tconst headerCells: TableHeaderCells = this.buildHeaderCells();\n\t\treturn (\n\t\t\t<Host class=\"kol-table-stateful\">\n\t\t\t\t{this.pageEndSlice > 0 && this.showPagination && paginationTop}\n\t\t\t\t<KolTableStatelessWcTag\n\t\t\t\t\texternalLabelElements={this.resolvedElements}\n\t\t\t\t\tref={this.catchRef}\n\t\t\t\t\t_data={displayedData}\n\t\t\t\t\t_fixedCols={this._fixedCols}\n\t\t\t\t\t_headerCells={headerCells}\n\t\t\t\t\t_label={this.state._label}\n\t\t\t\t\t_dataFoot={this.state._dataFoot}\n\t\t\t\t\t_on={{\n\t\t\t\t\t\tonSort: (_: MouseEvent, payload: SortEventPayload) => {\n\t\t\t\t\t\t\tthis.handleSort(payload);\n\t\t\t\t\t\t},\n\t\t\t\t\t\tonSelectionChange: (event: Event, value: KoliBriTableSelectionKeys) => {\n\t\t\t\t\t\t\tthis.handleSelectionChange(event, value);\n\t\t\t\t\t\t},\n\t\t\t\t\t\tonChangeHeaderCells: (_event: Event, headerCells: ChangeHeaderCellsEventPayload) => {\n\t\t\t\t\t\t\tthis.handleChangeHeaderCells(headerCells);\n\t\t\t\t\t\t},\n\t\t\t\t\t}}\n\t\t\t\t\t_selection={this.state._selection}\n\t\t\t\t\t_hasSettingsMenu={this.state._hasSettingsMenu}\n\t\t\t\t\t_variant={this._variant}\n\t\t\t\t/>\n\t\t\t\t{this.pageEndSlice > 0 && this.showPagination && paginationBottom}\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"version":3}
@@ -6,7 +6,7 @@ import { n as KolTableStatelessWcTag } from './component-names.js';
6
6
  import { v as validateAriaLabelledby } from './aria-labelledby2.js';
7
7
  import { a as attachInternals } from './aria-labelledby.js';
8
8
 
9
- const defaultStyleCss = "@charset \"UTF-8\";\n/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/* forward the rem function */\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n *\n * The `max(…, 44px)` floor guarantees the WCAG 2.5.5 (AAA) target size of 44px:\n * `to-rem(44)` runs the value through a `calc()` rem round-trip which can lose\n * sub-pixel precision and resolve to e.g. 43.99px depending on the browser's\n * rounding, dropping just below the required minimum.\n */\n --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px);\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\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 * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: 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 text color from his parent element.\n */\n color: inherit;\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 * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\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 position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\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 width: 100%;\n margin: 0;\n padding: 0;\n border: none;\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 color: black;\n background-color: white;\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 font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\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: flex;\n flex-flow: column;\n align-items: center;\n justify-content: 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 align-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 outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n .hastooltip {\n z-index: 900 !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@font-face {\n font-family: \"kolicons\";\n src: url(\"kolicons.eot?t=1785404144300\"); /* IE9*/\n src: url(\"kolicons.eot?t=1785404144300#iefix\") format(\"embedded-opentype\"), url(\"kolicons.woff2?t=1785404144300\") format(\"woff2\"), url(\"kolicons.woff?t=1785404144300\") format(\"woff\"), url(\"kolicons.ttf?t=1785404144300\") format(\"truetype\"), url(\"kolicons.svg?t=1785404144300#kolicons\") format(\"svg\"); /* iOS 4.1- */\n}\n@layer kol-component {\n [class^=kolicon-], [class*=\" kolicon-\"] {\n font-family: \"kolicons\";\n font-style: normal;\n font-weight: 400;\n line-height: 1em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n .kolicon-alert-error::before {\n content: \"\\ea01\";\n }\n .kolicon-alert-info::before {\n content: \"\\ea02\";\n }\n .kolicon-alert-success::before {\n content: \"\\ea03\";\n }\n .kolicon-alert-warning::before {\n content: \"\\ea04\";\n }\n .kolicon-check::before {\n content: \"\\ea05\";\n }\n .kolicon-chevron-double-left::before {\n content: \"\\ea06\";\n }\n .kolicon-chevron-double-right::before {\n content: \"\\ea07\";\n }\n .kolicon-chevron-down::before {\n content: \"\\ea08\";\n }\n .kolicon-chevron-left::before {\n content: \"\\ea09\";\n }\n .kolicon-chevron-right::before {\n content: \"\\ea0a\";\n }\n .kolicon-chevron-up::before {\n content: \"\\ea0b\";\n }\n .kolicon-cogwheel::before {\n content: \"\\ea0c\";\n }\n .kolicon-cross::before {\n content: \"\\ea0d\";\n }\n .kolicon-eye-closed::before {\n content: \"\\ea0e\";\n }\n .kolicon-eye::before {\n content: \"\\ea0f\";\n }\n .kolicon-house::before {\n content: \"\\ea10\";\n }\n .kolicon-kolibri::before {\n content: \"\\ea11\";\n }\n .kolicon-link-external::before {\n content: \"\\ea12\";\n }\n .kolicon-link::before {\n content: \"\\ea13\";\n }\n .kolicon-minus::before {\n content: \"\\ea14\";\n }\n .kolicon-plus::before {\n content: \"\\ea15\";\n }\n .kolicon-settings::before {\n content: \"\\ea16\";\n }\n .kolicon-sort-asc::before {\n content: \"\\ea17\";\n }\n .kolicon-sort-desc::before {\n content: \"\\ea18\";\n }\n .kolicon-sort-neutral::before {\n content: \"\\ea19\";\n }\n .kolicon-up::before {\n content: \"\\ea1a\";\n }\n .kolicon-version::before {\n content: \"\\ea1b\";\n }\n}\n@layer kol-component {\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: black;\n background-color: white;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: black;\n background-color: white;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-alert .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-alert :host {\n display: inline-block;\n }\n .kol-alert .kol-button {\n display: flex;\n height: 100%;\n min-height: var(--a11y-min-size);\n font-style: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n text-decoration-line: none;\n }\n .kol-alert .kol-button::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: \"​\";\n }\n .kol-alert .kol-button__text {\n flex: 1 0 100%;\n }\n .kol-alert {\n display: grid;\n }\n .kol-alert__container {\n display: flex;\n place-items: center;\n }\n .kol-alert__container-content {\n flex-grow: 1;\n }\n .kol-alert__closer {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n :host {\n display: inline-block;\n }\n .kol-button {\n display: flex;\n height: 100%;\n min-height: var(--a11y-min-size);\n font-style: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\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 flex: 1 0 100%;\n }\n .kol-popover-button__popover {\n margin: 0;\n padding: 0;\n border: 0;\n }\n .kol-popover-button--inline .kol-popover-button__button {\n display: inline;\n }\n .kol-popover {\n opacity: 0;\n transition: 0.2s ease-out opacity;\n }\n .kol-popover-button--open + .kol-popover {\n opacity: 1;\n }\n .kol-table-settings {\n position: absolute;\n top: 0;\n right: 0;\n z-index: 1;\n }\n .kol-table-settings .kol-popover-button__popover {\n background: white;\n box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n border-radius: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n border: 1px solid black;\n }\n .kol-table-settings__columns {\n display: grid;\n max-height: calc(200 * 1rem / var(--kolibri-root-font-size, 16));\n overflow: auto;\n grid-auto-rows: min-content;\n grid-template-columns: min-content minmax(max-content, 1fr) calc(140 * 1rem / var(--kolibri-root-font-size, 16)) auto auto;\n }\n .kol-table-settings__column {\n display: grid;\n align-items: center;\n grid-template-columns: subgrid;\n grid-column: 1/6;\n }\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-table {\n --kol-table-selection-col-width: var(--a11y-min-size);\n display: block;\n position: relative;\n max-width: 100%;\n }\n .kol-table:has(.kol-table__focus-element:focus) .kol-table__scroll-container {\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__scroll-container {\n overflow-x: auto;\n overflow-y: hidden;\n }\n .kol-table__table {\n table-layout: fixed;\n }\n .kol-table__caption {\n min-height: var(--a11y-min-size);\n text-align: start;\n }\n kol-table-settings-wc:not(:has(~ .kol-table__scroll-container .kol-table__caption)) {\n display: block;\n min-height: var(--a11y-min-size);\n }\n .kol-table__sort-button .kol-button {\n color: inherit;\n }\n .kol-table__sort {\n display: inline-flex;\n align-items: center;\n }\n .kol-table__sort-order {\n display: inline-flex;\n align-items: center;\n justify-content: center;\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 align-items: start;\n }\n .kol-table__cell--align-center {\n text-align: center;\n }\n .kol-table__cell--align-center .kol-button__text {\n align-items: center;\n }\n .kol-table__cell--align-right {\n text-align: right;\n }\n .kol-table__cell--align-right .kol-button__text {\n align-items: end;\n }\n .kol-table__cell--selection {\n background-color: white;\n position: sticky !important;\n left: 0;\n z-index: 2;\n width: var(--kol-table-selection-col-width, auto);\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n white-space: nowrap;\n }\n .kol-table__cell--actions {\n white-space: nowrap;\n }\n .kol-table__cell--actions .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-table__cell--actions :host {\n display: inline-block;\n }\n .kol-table__cell--actions .kol-button {\n display: flex;\n height: 100%;\n min-height: var(--a11y-min-size);\n font-style: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n text-decoration-line: none;\n }\n .kol-table__cell--actions .kol-button::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: \"​\";\n }\n .kol-table__cell--actions .kol-button__text {\n flex: 1 0 100%;\n }\n .kol-table__cell--actions .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-table__cell--actions :host {\n display: inline-block;\n }\n .kol-table__cell--actions .kol-link {\n display: inline-flex;\n max-width: fit-content;\n align-items: baseline;\n place-items: center;\n text-align: left;\n text-decoration-line: none;\n }\n .kol-table__cell--actions .kol-link--standalone {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n align-items: stretch;\n }\n .kol-table__cell--actions .kol-link--standalone .kol-link__text {\n display: inline-flex;\n flex: 1 1 100%;\n place-items: center;\n }\n .kol-table__cell--actions .kol-link .kol-span__label {\n text-decoration-line: underline;\n }\n .kol-table__cell--actions .kol-link:focus:not([aria-disabled], [disabled]) .kol-span__label, .kol-table__cell--actions .kol-link:hover:not([aria-disabled], [disabled]) .kol-span__label {\n text-decoration-thickness: 0.2em;\n }\n .kol-table__cell--actions .kol-link__icon {\n display: inline-flex;\n }\n .kol-table__cell--sticky-left, .kol-table__cell--sticky-right {\n background-color: white;\n position: sticky !important;\n z-index: 1;\n }\n .kol-table__cell--sticky-left:nth-last-child(1 of .kol-table__cell--sticky-left) {\n border-right: 2px solid black;\n }\n .kol-table__cell--sticky-right:nth-child(1 of .kol-table__cell--sticky-left) {\n border-left: 2px solid black;\n }\n .kol-table__cell-actions {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: center;\n }\n .kol-table__spacer {\n display: none;\n }\n .kol-table__selection {\n position: relative;\n }\n .kol-table__selection-label {\n display: flex;\n position: relative;\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n align-items: center;\n justify-content: center;\n cursor: pointer;\n }\n .kol-table__selection--disabled {\n cursor: not-allowed;\n }\n .kol-table__selection-icon {\n display: block;\n position: absolute;\n inset: auto;\n z-index: 1;\n }\n .kol-table__selection-input {\n border-style: solid;\n margin: 0;\n appearance: none;\n cursor: pointer;\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 background-color: white;\n display: flex;\n position: relative;\n min-width: calc(var(--a11y-min-size) / 2);\n min-height: calc(var(--a11y-min-size) / 2);\n border-width: 2px;\n align-items: center;\n justify-content: center;\n line-height: 1.5;\n }\n .kol-table__selection-input--radio {\n border-radius: 100%;\n display: flex;\n width: 1.5em;\n min-width: 1.5em;\n height: 1.5em;\n min-height: 1.5em;\n padding: 0;\n border-width: 2px;\n }\n .kol-table__selection-input--radio:before {\n border-radius: 100%;\n width: 0.75em;\n height: 0.75em;\n margin: auto;\n }\n .kol-table__selection-input--radio:checked:before {\n background-color: black;\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}";
9
+ const defaultStyleCss = "@charset \"UTF-8\";\n/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/* forward the rem function */\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n *\n * The `max(…, 44px)` floor guarantees the WCAG 2.5.5 (AAA) target size of 44px:\n * `to-rem(44)` runs the value through a `calc()` rem round-trip which can lose\n * sub-pixel precision and resolve to e.g. 43.99px depending on the browser's\n * rounding, dropping just below the required minimum.\n */\n --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px);\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n --kol-a11y-font-color: black;\n --kol-a11y-background-color: white;\n color: var(--kol-a11y-font-color);\n background-color: var(--kol-a11y-background-color);\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n --kol-a11y-font-family: Verdana;\n font-family: var(--kol-a11y-font-family);\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\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 * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: 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 text color from his parent element.\n */\n color: inherit;\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 * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\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 position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\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 width: 100%;\n margin: 0;\n padding: 0;\n border: none;\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 color: black;\n background-color: white;\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 font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\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: flex;\n flex-flow: column;\n align-items: center;\n justify-content: 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 align-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 outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n .hastooltip {\n z-index: 900 !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@font-face {\n font-family: \"kolicons\";\n src: url(\"kolicons.eot?t=1785745220083\"); /* IE9*/\n src: url(\"kolicons.eot?t=1785745220083#iefix\") format(\"embedded-opentype\"), url(\"kolicons.woff2?t=1785745220083\") format(\"woff2\"), url(\"kolicons.woff?t=1785745220083\") format(\"woff\"), url(\"kolicons.ttf?t=1785745220083\") format(\"truetype\"), url(\"kolicons.svg?t=1785745220083#kolicons\") format(\"svg\"); /* iOS 4.1- */\n}\n@layer kol-component {\n [class^=kolicon-], [class*=\" kolicon-\"] {\n font-family: \"kolicons\";\n font-style: normal;\n font-weight: 400;\n line-height: 1em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n .kolicon-alert-error::before {\n content: \"\\ea01\";\n }\n .kolicon-alert-info::before {\n content: \"\\ea02\";\n }\n .kolicon-alert-success::before {\n content: \"\\ea03\";\n }\n .kolicon-alert-warning::before {\n content: \"\\ea04\";\n }\n .kolicon-check::before {\n content: \"\\ea05\";\n }\n .kolicon-chevron-double-left::before {\n content: \"\\ea06\";\n }\n .kolicon-chevron-double-right::before {\n content: \"\\ea07\";\n }\n .kolicon-chevron-down::before {\n content: \"\\ea08\";\n }\n .kolicon-chevron-left::before {\n content: \"\\ea09\";\n }\n .kolicon-chevron-right::before {\n content: \"\\ea0a\";\n }\n .kolicon-chevron-up::before {\n content: \"\\ea0b\";\n }\n .kolicon-cogwheel::before {\n content: \"\\ea0c\";\n }\n .kolicon-cross::before {\n content: \"\\ea0d\";\n }\n .kolicon-eye-closed::before {\n content: \"\\ea0e\";\n }\n .kolicon-eye::before {\n content: \"\\ea0f\";\n }\n .kolicon-house::before {\n content: \"\\ea10\";\n }\n .kolicon-kolibri::before {\n content: \"\\ea11\";\n }\n .kolicon-link-external::before {\n content: \"\\ea12\";\n }\n .kolicon-link::before {\n content: \"\\ea13\";\n }\n .kolicon-minus::before {\n content: \"\\ea14\";\n }\n .kolicon-plus::before {\n content: \"\\ea15\";\n }\n .kolicon-settings::before {\n content: \"\\ea16\";\n }\n .kolicon-sort-asc::before {\n content: \"\\ea17\";\n }\n .kolicon-sort-desc::before {\n content: \"\\ea18\";\n }\n .kolicon-sort-neutral::before {\n content: \"\\ea19\";\n }\n .kolicon-up::before {\n content: \"\\ea1a\";\n }\n .kolicon-version::before {\n content: \"\\ea1b\";\n }\n}\n@layer kol-component {\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: black;\n background-color: white;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: black;\n background-color: white;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-alert .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-alert :host {\n display: inline-block;\n }\n .kol-alert .kol-button {\n display: flex;\n height: 100%;\n min-height: var(--a11y-min-size);\n font-style: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n text-decoration-line: none;\n }\n .kol-alert .kol-button::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: \"​\";\n }\n .kol-alert .kol-button__text {\n flex: 1 0 100%;\n }\n .kol-alert {\n display: grid;\n grid-template-areas: \"icon heading close\" \"icon content close\";\n grid-template-columns: min-content 1fr min-content;\n grid-template-rows: min-content min-content;\n }\n .kol-alert__icon {\n grid-area: icon;\n }\n .kol-alert__heading {\n grid-area: heading;\n }\n .kol-alert__closer {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n grid-area: close;\n }\n .kol-alert__content {\n grid-area: content;\n }\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n :host {\n display: inline-block;\n }\n .kol-button {\n display: flex;\n height: 100%;\n min-height: var(--a11y-min-size);\n font-style: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\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 flex: 1 0 100%;\n }\n .kol-popover-button__popover {\n margin: 0;\n padding: 0;\n border: 0;\n }\n .kol-popover-button--inline .kol-popover-button__button {\n display: inline;\n }\n .kol-popover {\n opacity: 0;\n transition: 0.2s ease-out opacity;\n }\n .kol-popover-button--open + .kol-popover {\n opacity: 1;\n }\n .kol-table-settings {\n position: absolute;\n top: 0;\n right: 0;\n z-index: 1;\n }\n .kol-table-settings .kol-popover-button__popover {\n background: white;\n box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n border-radius: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n border: 1px solid black;\n }\n .kol-table-settings__columns {\n display: grid;\n max-height: calc(200 * 1rem / var(--kolibri-root-font-size, 16));\n overflow: auto;\n grid-auto-rows: min-content;\n grid-template-columns: min-content minmax(max-content, 1fr) calc(140 * 1rem / var(--kolibri-root-font-size, 16)) auto auto;\n }\n .kol-table-settings__column {\n display: grid;\n align-items: center;\n grid-template-columns: subgrid;\n grid-column: 1/6;\n }\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-table {\n --kol-table-selection-col-width: var(--a11y-min-size);\n display: block;\n position: relative;\n max-width: 100%;\n }\n .kol-table:has(.kol-table__focus-element:focus) .kol-table__scroll-container {\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__scroll-container {\n overflow-x: auto;\n overflow-y: hidden;\n }\n .kol-table__table {\n table-layout: fixed;\n }\n .kol-table__caption {\n min-height: var(--a11y-min-size);\n text-align: start;\n }\n kol-table-settings-wc:not(:has(~ .kol-table__scroll-container .kol-table__caption)) {\n display: block;\n min-height: var(--a11y-min-size);\n }\n .kol-table__sort-button .kol-button {\n color: inherit;\n }\n .kol-table__sort {\n display: inline-flex;\n align-items: center;\n }\n .kol-table__sort-order {\n display: inline-flex;\n align-items: center;\n justify-content: center;\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 align-items: start;\n }\n .kol-table__cell--align-center {\n text-align: center;\n }\n .kol-table__cell--align-center .kol-button__text {\n align-items: center;\n }\n .kol-table__cell--align-right {\n text-align: right;\n }\n .kol-table__cell--align-right .kol-button__text {\n align-items: end;\n }\n .kol-table__cell--selection {\n background-color: white;\n position: sticky !important;\n left: 0;\n z-index: 2;\n width: var(--kol-table-selection-col-width, auto);\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n white-space: nowrap;\n }\n .kol-table__cell--actions {\n white-space: nowrap;\n }\n .kol-table__cell--actions .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-table__cell--actions :host {\n display: inline-block;\n }\n .kol-table__cell--actions .kol-button {\n display: flex;\n height: 100%;\n min-height: var(--a11y-min-size);\n font-style: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n text-decoration-line: none;\n }\n .kol-table__cell--actions .kol-button::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: \"​\";\n }\n .kol-table__cell--actions .kol-button__text {\n flex: 1 0 100%;\n }\n .kol-table__cell--actions .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-table__cell--actions :host {\n display: inline-block;\n }\n .kol-table__cell--actions .kol-link {\n display: inline-flex;\n max-width: fit-content;\n align-items: baseline;\n place-items: center;\n text-align: left;\n text-decoration-line: none;\n }\n .kol-table__cell--actions .kol-link--standalone {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n align-items: stretch;\n }\n .kol-table__cell--actions .kol-link--standalone .kol-link__text {\n display: inline-flex;\n flex: 1 1 100%;\n place-items: center;\n }\n .kol-table__cell--actions .kol-link .kol-span__label {\n text-decoration-line: underline;\n }\n .kol-table__cell--actions .kol-link:focus:not([aria-disabled], [disabled]) .kol-span__label, .kol-table__cell--actions .kol-link:hover:not([aria-disabled], [disabled]) .kol-span__label {\n text-decoration-thickness: 0.2em;\n }\n .kol-table__cell--actions .kol-link__icon {\n display: inline-flex;\n }\n .kol-table__cell--sticky-left, .kol-table__cell--sticky-right {\n background-color: white;\n position: sticky !important;\n z-index: 1;\n }\n .kol-table__cell--sticky-left:nth-last-child(1 of .kol-table__cell--sticky-left) {\n border-right: 2px solid black;\n }\n .kol-table__cell--sticky-right:nth-child(1 of .kol-table__cell--sticky-left) {\n border-left: 2px solid black;\n }\n .kol-table__cell-actions {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: center;\n }\n .kol-table__spacer {\n display: none;\n }\n .kol-table__selection {\n position: relative;\n }\n .kol-table__selection-label {\n display: flex;\n position: relative;\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n align-items: center;\n justify-content: center;\n cursor: pointer;\n }\n .kol-table__selection--disabled {\n cursor: not-allowed;\n }\n .kol-table__selection-icon {\n display: block;\n position: absolute;\n inset: auto;\n z-index: 1;\n }\n .kol-table__selection-input {\n border-style: solid;\n margin: 0;\n appearance: none;\n cursor: pointer;\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 background-color: white;\n display: flex;\n position: relative;\n min-width: calc(var(--a11y-min-size) / 2);\n min-height: calc(var(--a11y-min-size) / 2);\n border-width: 2px;\n align-items: center;\n justify-content: center;\n line-height: 1.5;\n }\n .kol-table__selection-input--radio {\n border-radius: 100%;\n display: flex;\n width: 1.5em;\n min-width: 1.5em;\n height: 1.5em;\n min-height: 1.5em;\n padding: 0;\n border-width: 2px;\n }\n .kol-table__selection-input--radio:before {\n border-radius: 100%;\n width: 0.75em;\n height: 0.75em;\n margin: auto;\n }\n .kol-table__selection-input--radio:checked:before {\n background-color: black;\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}";
10
10
 
11
11
  const KolTableStateless$1 = proxyCustomElement(class KolTableStateless extends HTMLElement {
12
12
  constructor(registerHost) {
@@ -1 +1 @@
1
- {"file":"kol-table-stateless.js","mappings":";;;;;;;;AAAA,MAAM,eAAe,GAAG,oklBAAoklB;;MCwB/klBA,mBAAiB,GAAAC,kBAAA,CAAA,MAAA,iBAAA,SAAA,WAAA,CAAA;AAP9B,IAAA,WAAA,CAAA,YAAA,EAAA;;;;;;AAYkB,QAAA,IAAgB,CAAA,gBAAA,GAAkB,EAAE;AA+FrD;AApFO,IAAA,sBAAsB,CAAC,KAA8B,EAAA;AAC3D,QAAA,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC;;AAGtB,IAAA,iBAAiB,CAAC,KAA8B,EAAA;AACvD,QAAA,IAAI,CAAC,gBAAgB,GAAG,sBAAsB,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC;;IAgDhF,iBAAiB,GAAA;QACvB,IAAI,CAAC,SAAS,GAAG,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC;AAI3C,QAAA,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,eAAe,CAAC;;IAGtC,gBAAgB,GAAA;AAEtB,QAAA,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE;AAClC,YAAA,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,eAAe,CAAC;;;IAIvC,MAAM,GAAA;AACZ,QAAA,QACC,CAAA,CAAC,sBAAsB,EAAA,EAAA,GAAA,EAAA,0CAAA,EACtB,qBAAqB,EAAE,IAAI,CAAC,gBAAgB,EAC5C,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,YAAY,EAAE,IAAI,CAAC,YAAY,EAC/B,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EACvC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAA,CACtB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["KolTableStateless","__stencil_proxyCustomElement"],"sources":["src/components/table-stateless/style.scss?tag=kol-table-stateless&mode=default&encapsulation=shadow","src/components/table-stateless/shadow.tsx"],"sourcesContent":["@use '../@shared/global' as *;\n@use '../@shared/alert.mixin' as *;\n@use '../@shared/button.mixin' as *;\n@use '../@shared/popover-button.mixin' as *;\n@use '../@shared/table-stateless.mixin' as *;\n@use '../@shared/mixins' as *;\n@use '../host-display-block' as *;\n@use '../tooltip/style' as *;\n\n@layer kol-component {\n\t@include kol-alert;\n\t@include kol-button-styles('kol-button');\n\t@include kol-popover-button-styles;\n\t@include kol-table-stateless-styles;\n}\n","import type { JSX } from '@stencil/core';\nimport { Component, Element, h, Prop, State, Watch } from '@stencil/core';\nimport { KolTableStatelessWcTag } from '../../core/component-names';\nimport type {\n\tFixedColsPropType,\n\tHasSettingsMenuPropType,\n\tTableCallbacksPropType,\n\tTableDataFootPropType,\n\tTableDataPropType,\n\tTableHeaderCellsPropType,\n\tTableSelectionPropType,\n\tTableStatelessProps,\n\tVariantClassNamePropType,\n} from '../../schema';\nimport { validateAriaLabelledby, type AriaLabelledbyPropType } from '../../schema/props/aria-labelledby';\nimport { attachInternals, type HostInternals } from '../../utils/aria-labelledby';\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@Element() private readonly host?: HTMLKolTableStatelessElement;\n\n\tprivate internals?: HostInternals;\n\n\t@State() private resolvedElements: HTMLElement[] = [];\n\n\t/**\n\t * References an external element by ID that serves as the accessible label for this table.\n\t * Uses ElementInternals.ariaLabelledByElements to cross the Shadow DOM boundary.\n\t * Supported by desktop screen readers (NVDA, JAWS with Chrome/Firefox).\n\t * Not yet supported by mobile screen readers (TalkBack, VoiceOver iOS) — use `_label` instead.\n\t */\n\t@Prop() public _ariaLabelledby?: AriaLabelledbyPropType;\n\n\t@Watch('_ariaLabelledby')\n\tpublic validateAriaLabelledby(value?: AriaLabelledbyPropType): void {\n\t\tthis.syncExternalLabel(value);\n\t}\n\n\tprivate syncExternalLabel(value?: AriaLabelledbyPropType): void {\n\t\tthis.resolvedElements = validateAriaLabelledby(this, this.host, this.internals, value);\n\t}\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 fixed number of columns from start and end of the table\n\t */\n\t@Prop() public _fixedCols?: FixedColsPropType;\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 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 * Enables the settings menu if true (default: false).\n\t */\n\t@Prop() public _hasSettingsMenu?: HasSettingsMenuPropType;\n\n\t/**\n\t * Defines which variant should be used for presentation.\n\t */\n\t@Prop() public _variant?: VariantClassNamePropType;\n\n\tpublic componentWillLoad(): void {\n\t\tthis.internals = attachInternals(this.host);\n\t\t// Early resolution: if the external element is already in the DOM (common when the\n\t\t// label element is rendered before this component), the first render already uses\n\t\t// externalLabelElements so the AT sees the correct name from the start.\n\t\tthis.syncExternalLabel(this._ariaLabelledby);\n\t}\n\n\tpublic componentDidLoad(): void {\n\t\t// Re-resolve after mount to avoid depending on timer-based retries.\n\t\tif (!this.resolvedElements.length) {\n\t\t\tthis.syncExternalLabel(this._ariaLabelledby);\n\t\t}\n\t}\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<KolTableStatelessWcTag\n\t\t\t\texternalLabelElements={this.resolvedElements}\n\t\t\t\t_data={this._data}\n\t\t\t\t_dataFoot={this._dataFoot}\n\t\t\t\t_fixedCols={this._fixedCols}\n\t\t\t\t_headerCells={this._headerCells}\n\t\t\t\t_label={this._label}\n\t\t\t\t_on={this._on}\n\t\t\t\t_selection={this._selection}\n\t\t\t\t_hasSettingsMenu={this._hasSettingsMenu}\n\t\t\t\t_variant={this._variant}\n\t\t\t/>\n\t\t);\n\t}\n}\n"],"version":3}
1
+ {"file":"kol-table-stateless.js","mappings":";;;;;;;;AAAA,MAAM,eAAe,GAAG,29lBAA29lB;;MCwBt+lBA,mBAAiB,GAAAC,kBAAA,CAAA,MAAA,iBAAA,SAAA,WAAA,CAAA;AAP9B,IAAA,WAAA,CAAA,YAAA,EAAA;;;;;;AAYkB,QAAA,IAAgB,CAAA,gBAAA,GAAkB,EAAE;AA+FrD;AApFO,IAAA,sBAAsB,CAAC,KAA8B,EAAA;AAC3D,QAAA,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC;;AAGtB,IAAA,iBAAiB,CAAC,KAA8B,EAAA;AACvD,QAAA,IAAI,CAAC,gBAAgB,GAAG,sBAAsB,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC;;IAgDhF,iBAAiB,GAAA;QACvB,IAAI,CAAC,SAAS,GAAG,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC;AAI3C,QAAA,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,eAAe,CAAC;;IAGtC,gBAAgB,GAAA;AAEtB,QAAA,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE;AAClC,YAAA,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,eAAe,CAAC;;;IAIvC,MAAM,GAAA;AACZ,QAAA,QACC,CAAA,CAAC,sBAAsB,EAAA,EAAA,GAAA,EAAA,0CAAA,EACtB,qBAAqB,EAAE,IAAI,CAAC,gBAAgB,EAC5C,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,YAAY,EAAE,IAAI,CAAC,YAAY,EAC/B,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EACvC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAA,CACtB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["KolTableStateless","__stencil_proxyCustomElement"],"sources":["src/components/table-stateless/style.scss?tag=kol-table-stateless&mode=default&encapsulation=shadow","src/components/table-stateless/shadow.tsx"],"sourcesContent":["@use '../@shared/global' as *;\n@use '../@shared/alert.mixin' as *;\n@use '../@shared/button.mixin' as *;\n@use '../@shared/popover-button.mixin' as *;\n@use '../@shared/table-stateless.mixin' as *;\n@use '../@shared/mixins' as *;\n@use '../host-display-block' as *;\n@use '../tooltip/style' as *;\n\n@layer kol-component {\n\t@include kol-alert;\n\t@include kol-button-styles('kol-button');\n\t@include kol-popover-button-styles;\n\t@include kol-table-stateless-styles;\n}\n","import type { JSX } from '@stencil/core';\nimport { Component, Element, h, Prop, State, Watch } from '@stencil/core';\nimport { KolTableStatelessWcTag } from '../../core/component-names';\nimport type {\n\tFixedColsPropType,\n\tHasSettingsMenuPropType,\n\tTableCallbacksPropType,\n\tTableDataFootPropType,\n\tTableDataPropType,\n\tTableHeaderCellsPropType,\n\tTableSelectionPropType,\n\tTableStatelessProps,\n\tVariantClassNamePropType,\n} from '../../schema';\nimport { validateAriaLabelledby, type AriaLabelledbyPropType } from '../../schema/props/aria-labelledby';\nimport { attachInternals, type HostInternals } from '../../utils/aria-labelledby';\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@Element() private readonly host?: HTMLKolTableStatelessElement;\n\n\tprivate internals?: HostInternals;\n\n\t@State() private resolvedElements: HTMLElement[] = [];\n\n\t/**\n\t * References an external element by ID that serves as the accessible label for this table.\n\t * Uses ElementInternals.ariaLabelledByElements to cross the Shadow DOM boundary.\n\t * Supported by desktop screen readers (NVDA, JAWS with Chrome/Firefox).\n\t * Not yet supported by mobile screen readers (TalkBack, VoiceOver iOS) — use `_label` instead.\n\t */\n\t@Prop() public _ariaLabelledby?: AriaLabelledbyPropType;\n\n\t@Watch('_ariaLabelledby')\n\tpublic validateAriaLabelledby(value?: AriaLabelledbyPropType): void {\n\t\tthis.syncExternalLabel(value);\n\t}\n\n\tprivate syncExternalLabel(value?: AriaLabelledbyPropType): void {\n\t\tthis.resolvedElements = validateAriaLabelledby(this, this.host, this.internals, value);\n\t}\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 fixed number of columns from start and end of the table\n\t */\n\t@Prop() public _fixedCols?: FixedColsPropType;\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 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 * Enables the settings menu if true (default: false).\n\t */\n\t@Prop() public _hasSettingsMenu?: HasSettingsMenuPropType;\n\n\t/**\n\t * Defines which variant should be used for presentation.\n\t */\n\t@Prop() public _variant?: VariantClassNamePropType;\n\n\tpublic componentWillLoad(): void {\n\t\tthis.internals = attachInternals(this.host);\n\t\t// Early resolution: if the external element is already in the DOM (common when the\n\t\t// label element is rendered before this component), the first render already uses\n\t\t// externalLabelElements so the AT sees the correct name from the start.\n\t\tthis.syncExternalLabel(this._ariaLabelledby);\n\t}\n\n\tpublic componentDidLoad(): void {\n\t\t// Re-resolve after mount to avoid depending on timer-based retries.\n\t\tif (!this.resolvedElements.length) {\n\t\t\tthis.syncExternalLabel(this._ariaLabelledby);\n\t\t}\n\t}\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<KolTableStatelessWcTag\n\t\t\t\texternalLabelElements={this.resolvedElements}\n\t\t\t\t_data={this._data}\n\t\t\t\t_dataFoot={this._dataFoot}\n\t\t\t\t_fixedCols={this._fixedCols}\n\t\t\t\t_headerCells={this._headerCells}\n\t\t\t\t_label={this._label}\n\t\t\t\t_on={this._on}\n\t\t\t\t_selection={this._selection}\n\t\t\t\t_hasSettingsMenu={this._hasSettingsMenu}\n\t\t\t\t_variant={this._variant}\n\t\t\t/>\n\t\t);\n\t}\n}\n"],"version":3}
@@ -23,7 +23,7 @@ const validateHasCreateButton = (component, value) => {
23
23
  watchBoolean(component, '_hasCreateButton', value);
24
24
  };
25
25
 
26
- const defaultStyleCss = "@charset \"UTF-8\";\n/* forward the rem function */\n/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n *\n * The `max(…, 44px)` floor guarantees the WCAG 2.5.5 (AAA) target size of 44px:\n * `to-rem(44)` runs the value through a `calc()` rem round-trip which can lose\n * sub-pixel precision and resolve to e.g. 43.99px depending on the browser's\n * rounding, dropping just below the required minimum.\n */\n --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px);\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\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 * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: 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 text color from his parent element.\n */\n color: inherit;\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 * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\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 position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\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 width: 100%;\n margin: 0;\n padding: 0;\n border: none;\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 color: black;\n background-color: white;\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 font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\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: flex;\n flex-flow: column;\n align-items: center;\n justify-content: 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 align-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 outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n .hastooltip {\n z-index: 900 !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@font-face {\n font-family: \"kolicons\";\n src: url(\"kolicons.eot?t=1785404144300\"); /* IE9*/\n src: url(\"kolicons.eot?t=1785404144300#iefix\") format(\"embedded-opentype\"), url(\"kolicons.woff2?t=1785404144300\") format(\"woff2\"), url(\"kolicons.woff?t=1785404144300\") format(\"woff\"), url(\"kolicons.ttf?t=1785404144300\") format(\"truetype\"), url(\"kolicons.svg?t=1785404144300#kolicons\") format(\"svg\"); /* iOS 4.1- */\n}\n@layer kol-component {\n [class^=kolicon-], [class*=\" kolicon-\"] {\n font-family: \"kolicons\";\n font-style: normal;\n font-weight: 400;\n line-height: 1em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n .kolicon-alert-error::before {\n content: \"\\ea01\";\n }\n .kolicon-alert-info::before {\n content: \"\\ea02\";\n }\n .kolicon-alert-success::before {\n content: \"\\ea03\";\n }\n .kolicon-alert-warning::before {\n content: \"\\ea04\";\n }\n .kolicon-check::before {\n content: \"\\ea05\";\n }\n .kolicon-chevron-double-left::before {\n content: \"\\ea06\";\n }\n .kolicon-chevron-double-right::before {\n content: \"\\ea07\";\n }\n .kolicon-chevron-down::before {\n content: \"\\ea08\";\n }\n .kolicon-chevron-left::before {\n content: \"\\ea09\";\n }\n .kolicon-chevron-right::before {\n content: \"\\ea0a\";\n }\n .kolicon-chevron-up::before {\n content: \"\\ea0b\";\n }\n .kolicon-cogwheel::before {\n content: \"\\ea0c\";\n }\n .kolicon-cross::before {\n content: \"\\ea0d\";\n }\n .kolicon-eye-closed::before {\n content: \"\\ea0e\";\n }\n .kolicon-eye::before {\n content: \"\\ea0f\";\n }\n .kolicon-house::before {\n content: \"\\ea10\";\n }\n .kolicon-kolibri::before {\n content: \"\\ea11\";\n }\n .kolicon-link-external::before {\n content: \"\\ea12\";\n }\n .kolicon-link::before {\n content: \"\\ea13\";\n }\n .kolicon-minus::before {\n content: \"\\ea14\";\n }\n .kolicon-plus::before {\n content: \"\\ea15\";\n }\n .kolicon-settings::before {\n content: \"\\ea16\";\n }\n .kolicon-sort-asc::before {\n content: \"\\ea17\";\n }\n .kolicon-sort-desc::before {\n content: \"\\ea18\";\n }\n .kolicon-sort-neutral::before {\n content: \"\\ea19\";\n }\n .kolicon-up::before {\n content: \"\\ea1a\";\n }\n .kolicon-version::before {\n content: \"\\ea1b\";\n }\n}\n@layer kol-component {\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: black;\n background-color: white;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: black;\n background-color: white;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-tabs {\n display: var(--display);\n grid-template-columns: var(--grid-template-columns);\n grid-template-rows: var(--grid-template-rows);\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__button-group {\n display: flex;\n order: var(--button-group-order);\n flex-direction: var(--button-group-flex-direction);\n flex-wrap: wrap;\n }\n .kol-tabs__button-group .kol-button {\n border-bottom-color: transparent;\n display: block;\n border-bottom-style: solid;\n }\n @media (forced-colors: active) {\n .kol-tabs__button-group .kol-button.selected {\n outline: 3px solid Highlight;\n outline-offset: -3px;\n }\n .kol-tabs__button-group .kol-button.selected:focus-visible {\n outline-style: dashed;\n }\n }\n .kol-tabs__panel {\n height: 100%;\n }\n}";
26
+ const defaultStyleCss = "@charset \"UTF-8\";\n/* forward the rem function */\n/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n *\n * The `max(…, 44px)` floor guarantees the WCAG 2.5.5 (AAA) target size of 44px:\n * `to-rem(44)` runs the value through a `calc()` rem round-trip which can lose\n * sub-pixel precision and resolve to e.g. 43.99px depending on the browser's\n * rounding, dropping just below the required minimum.\n */\n --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px);\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n --kol-a11y-font-color: black;\n --kol-a11y-background-color: white;\n color: var(--kol-a11y-font-color);\n background-color: var(--kol-a11y-background-color);\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n --kol-a11y-font-family: Verdana;\n font-family: var(--kol-a11y-font-family);\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\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 * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: 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 text color from his parent element.\n */\n color: inherit;\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 * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\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 position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\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 width: 100%;\n margin: 0;\n padding: 0;\n border: none;\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 color: black;\n background-color: white;\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 font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\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: flex;\n flex-flow: column;\n align-items: center;\n justify-content: 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 align-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 outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n .hastooltip {\n z-index: 900 !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@font-face {\n font-family: \"kolicons\";\n src: url(\"kolicons.eot?t=1785745220083\"); /* IE9*/\n src: url(\"kolicons.eot?t=1785745220083#iefix\") format(\"embedded-opentype\"), url(\"kolicons.woff2?t=1785745220083\") format(\"woff2\"), url(\"kolicons.woff?t=1785745220083\") format(\"woff\"), url(\"kolicons.ttf?t=1785745220083\") format(\"truetype\"), url(\"kolicons.svg?t=1785745220083#kolicons\") format(\"svg\"); /* iOS 4.1- */\n}\n@layer kol-component {\n [class^=kolicon-], [class*=\" kolicon-\"] {\n font-family: \"kolicons\";\n font-style: normal;\n font-weight: 400;\n line-height: 1em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n .kolicon-alert-error::before {\n content: \"\\ea01\";\n }\n .kolicon-alert-info::before {\n content: \"\\ea02\";\n }\n .kolicon-alert-success::before {\n content: \"\\ea03\";\n }\n .kolicon-alert-warning::before {\n content: \"\\ea04\";\n }\n .kolicon-check::before {\n content: \"\\ea05\";\n }\n .kolicon-chevron-double-left::before {\n content: \"\\ea06\";\n }\n .kolicon-chevron-double-right::before {\n content: \"\\ea07\";\n }\n .kolicon-chevron-down::before {\n content: \"\\ea08\";\n }\n .kolicon-chevron-left::before {\n content: \"\\ea09\";\n }\n .kolicon-chevron-right::before {\n content: \"\\ea0a\";\n }\n .kolicon-chevron-up::before {\n content: \"\\ea0b\";\n }\n .kolicon-cogwheel::before {\n content: \"\\ea0c\";\n }\n .kolicon-cross::before {\n content: \"\\ea0d\";\n }\n .kolicon-eye-closed::before {\n content: \"\\ea0e\";\n }\n .kolicon-eye::before {\n content: \"\\ea0f\";\n }\n .kolicon-house::before {\n content: \"\\ea10\";\n }\n .kolicon-kolibri::before {\n content: \"\\ea11\";\n }\n .kolicon-link-external::before {\n content: \"\\ea12\";\n }\n .kolicon-link::before {\n content: \"\\ea13\";\n }\n .kolicon-minus::before {\n content: \"\\ea14\";\n }\n .kolicon-plus::before {\n content: \"\\ea15\";\n }\n .kolicon-settings::before {\n content: \"\\ea16\";\n }\n .kolicon-sort-asc::before {\n content: \"\\ea17\";\n }\n .kolicon-sort-desc::before {\n content: \"\\ea18\";\n }\n .kolicon-sort-neutral::before {\n content: \"\\ea19\";\n }\n .kolicon-up::before {\n content: \"\\ea1a\";\n }\n .kolicon-version::before {\n content: \"\\ea1b\";\n }\n}\n@layer kol-component {\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: black;\n background-color: white;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: black;\n background-color: white;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-tabs {\n display: var(--display);\n grid-template-columns: var(--grid-template-columns);\n grid-template-rows: var(--grid-template-rows);\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__button-group {\n display: flex;\n order: var(--button-group-order);\n flex-direction: var(--button-group-flex-direction);\n flex-wrap: wrap;\n }\n .kol-tabs__button-group .kol-button {\n border-bottom-color: transparent;\n display: block;\n border-bottom-style: solid;\n }\n @media (forced-colors: active) {\n .kol-tabs__button-group .kol-button.selected {\n outline: 3px solid Highlight;\n outline-offset: -3px;\n }\n .kol-tabs__button-group .kol-button.selected:focus-visible {\n outline-style: dashed;\n }\n }\n .kol-tabs__panel {\n height: 100%;\n }\n}";
27
27
 
28
28
  const KolTabs$1 = proxyCustomElement(class KolTabs extends HTMLElement {
29
29
  constructor(registerHost) {
@@ -1 +1 @@
1
- {"file":"kol-tabs.js","mappings":";;;;;;;;;;;;;;;;AAIA,MAAM,0BAA0B,GAAG,CAAC,kBAAkB,EAAE,eAAe,CAAU;AAW1E,MAAM,mBAAmB,GAAG,CAAC,SAAoC,EAAE,KAA2B,KAAU;AAC9G,IAAA,cAAc,CACb,SAAS,EACT,CAAW,SAAA,CAAA,EACX,CAAC,KAAK,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,0BAA0B,CAAC,QAAQ,CAAC,KAAK,CAAC,EAClF,IAAI,GAAG,CAAC,CAAC,CAAA,oBAAA,EAAuB,0BAA0B,CAAC,IAAI,CAAC,IAAI,CAAC,CAAE,CAAA,CAAC,CAAC,EACzE,KAAK,CACL;AACF,CAAC;;ACRM,MAAM,uBAAuB,GAAG,CAAC,SAAoC,EAAE,KAA+B,KAAU;AACtH,IAAA,YAAY,CAAC,SAAS,EAAE,kBAAkB,EAAE,KAAK,CAAC;AACnD,CAAC;;ACjBD,MAAM,eAAe,GAAG,8tWAA8tW;;MCkDzuWA,SAAO,G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AAC,gBAAgB,EAAmC;YAC3D,MAAM,MAAM,GAAuB,oBAAoB,CAAC,CAAA,OAAA,EAAU,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAQ,KAAA,EAAA,KAAK,CAAE,CAAA,EAAE,IAAI,CAAC,gBAAgB,CAAC;AAC9I,YAAA,MAAM,aAAN,MAAM,KAAA,MAAA,GAAA,MAAA,GAAN,MAAM,CAAE,KAAK,EAAE;;;IAIT,QAAQ,CAAC,KAA8D,EAAE,KAAa,EAAA;;QAC7F,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,IAAI,CAAC,GAAG,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAE,QAAQ,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAA,IAAA,CAAA,EAAA,EAAG,KAAK,EAAE,KAAK,CAAC;AAClC,QAAA,IAAI,IAAI,CAAC,IAAI,EAAE;YACd,gBAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC;;AAGpD,QAAA,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA7RZ,UAAA,CAAA;IAHZ,aAAa,CAAC,QAAQ;CAGwC,EAAAD,SAAA,CAAA,SAAA,EAAA,OAAA,EAAA,IAAA,CAAA;AAOlD,UAAA,CAAA;IADZ,aAAa,CAAC,QAAQ;CACe,EAAAA,SAAA,CAAA,SAAA,EAAA,OAAA,EAAA,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;","names":["KolTabs","__stencil_proxyCustomElement"],"sources":["src/schema/props/tab-behavior.ts","src/schema/props/has-create-button.ts","src/components/tabs/style.scss?tag=kol-tabs&mode=default&encapsulation=shadow","src/components/tabs/shadow.tsx"],"sourcesContent":["/* types */\nimport type { Generic } from 'adopted-style-sheets';\nimport { watchValidator } from '../utils';\n\nconst tabBehaviorPropTypeOptions = ['select-automatic', 'select-manual'] as const;\nexport type TabBehaviorPropType = (typeof tabBehaviorPropTypeOptions)[number];\n\n/**\n * Defines which behavior is active.\n */\nexport type PropTabBehavior = {\n\tbehavior: TabBehaviorPropType;\n};\n\n/* validator */\nexport const validateTabBehavior = (component: Generic.Element.Component, value?: TabBehaviorPropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t`_behavior`,\n\t\t(value) => typeof value === 'string' && tabBehaviorPropTypeOptions.includes(value),\n\t\tnew Set([`KoliBriTabBehavior {${tabBehaviorPropTypeOptions.join(', ')}`]),\n\t\tvalue,\n\t);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { watchBoolean } from '../utils';\n\n/* types */\nexport type HasCreateButtonPropType = boolean;\n\n/**\n * Defines whether the element has a create button.\n */\nexport type PropHasCreateButton = {\n\thasCreateButton: HasCreateButtonPropType;\n};\n\n/* validator */\nexport const validateHasCreateButton = (component: Generic.Element.Component, value?: HasCreateButtonPropType): void => {\n\twatchBoolean(component, '_hasCreateButton', value);\n};\n","@use '../@shared/mixins' as *;\n@use '../@shared/global' as *;\n@use '../host-display-block' as *;\n@use '../tooltip/style.scss' as *;\n@use '../@shared/icon.mixin' as *;\n\n@layer kol-component {\n\t@include kol-icon-styles();\n\t.kol-tabs {\n\t\tdisplay: var(--display);\n\t\tgrid-template-columns: var(--grid-template-columns);\n\t\tgrid-template-rows: var(--grid-template-rows);\n\n\t\t&--align-right {\n\t\t\t--display: grid;\n\t\t\t--grid-template-columns: 1fr auto;\n\n\t\t\t--button-group-flex-direction: column;\n\t\t\t--button-group-order: 2;\n\t\t}\n\n\t\t&--align-left {\n\t\t\t--display: grid;\n\t\t\t--grid-template-columns: auto 1fr;\n\n\t\t\t--button-group-flex-direction: column;\n\t\t\t--button-group-order: 0;\n\t\t}\n\n\t\t&--align-bottom {\n\t\t\t--display: grid;\n\t\t\t--grid-template-rows: 1fr auto;\n\n\t\t\t--button-group-order: 2;\n\t\t}\n\n\t\t&__tabs-align-top {\n\t\t\t--display: grid;\n\t\t\t--grid-template-rows: auto 1fr;\n\n\t\t\t--button-group-order: 0;\n\t\t}\n\n\t\t&__button-group {\n\t\t\tdisplay: flex;\n\t\t\torder: var(--button-group-order);\n\n\t\t\tflex-direction: var(--button-group-flex-direction);\n\t\t\tflex-wrap: wrap;\n\n\t\t\t.kol-button {\n\t\t\t\tborder-bottom-color: transparent;\n\t\t\t\tdisplay: block;\n\t\t\t\tborder-bottom-style: solid;\n\n\t\t\t\t@media (forced-colors: active) {\n\t\t\t\t\t&.selected {\n\t\t\t\t\t\toutline: 3px solid Highlight;\n\t\t\t\t\t\toutline-offset: -3px;\n\n\t\t\t\t\t\t&:focus-visible {\n\t\t\t\t\t\t\toutline-style: dashed;\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\n\t\t&__panel {\n\t\t\theight: 100%;\n\t\t}\n\t}\n}\n","import type { JSX } from '@stencil/core';\nimport { Component, Element, h, Method, Prop, State, Watch } from '@stencil/core';\nimport type {\n\tAlignPropType,\n\tButtonCallbacksPropType,\n\tClickableElement,\n\tFocusableElement,\n\tKolFocusOptions,\n\tKoliBriTabsCallbacks,\n\tLabelPropType,\n\tStencilUnknown,\n\tStringified,\n\tTabBehaviorPropType,\n\tTabButtonProps,\n\tTabsAPI,\n\tTabsStates,\n} from '../../schema';\nimport {\n\tdevHint,\n\tkoliBriQuerySelector,\n\tsetState,\n\tuiUxHintMillerscheZahl,\n\tvalidateAlign,\n\tvalidateLabel,\n\tvalidateTabBehavior,\n\twatchJsonArrayString,\n\twatchNumber,\n} from '../../schema';\n\nimport type { Generic } from 'adopted-style-sheets';\nimport { KolButtonWcTag } from '../../core/component-names';\nimport { translate } from '../../i18n';\nimport { KeyboardKey } from '../../schema/enums';\nimport type { HasCreateButtonPropType } from '../../schema/props/has-create-button';\nimport { validateHasCreateButton } from '../../schema/props/has-create-button';\nimport clsx from '../../utils/clsx';\nimport { createCtaRef, delegateClick, delegateFocus } from '../../utils/element-interaction';\nimport { dispatchDomEvent, KolEvent } from '../../utils/events';\n// https://www.w3.org/TR/wai-aria-practices-1.1/examples/tabs/tabs-2/tabs.html\n\n/**\n * The **Tabs** component is used to organize related content on the same page and navigate between them. Tabs ensure that large amounts of content can be more easily organized for users.\n */\n@Component({\n\ttag: 'kol-tabs',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolTabs implements ClickableElement, FocusableElement, TabsAPI {\n\t@Element() protected readonly host?: HTMLKolTabsElement;\n\tprivate tabPanelsElement?: HTMLElement;\n\tprivate onCreateLabel = `${translate('kol-new')} …`;\n\tprivate currentFocusIndex: number | undefined;\n\tprotected readonly ctaRef = createCtaRef<HTMLKolButtonWcElement>();\n\n\tprivate nextPossibleTabIndex = (tabs: TabButtonProps[], offset: number, step = 1): number => {\n\t\tconst nextOffset = offset + step;\n\n\t\tif (nextOffset < tabs.length) {\n\t\t\tif (tabs[nextOffset]._disabled) {\n\t\t\t\treturn this.nextPossibleTabIndex(tabs, offset, step + 1);\n\t\t\t}\n\t\t\treturn nextOffset;\n\t\t}\n\n\t\treturn offset;\n\t};\n\n\tprivate prevPossibleTabIndex = (tabs: TabButtonProps[], offset: number, step = 1): number => {\n\t\tconst nextOffset = offset - step;\n\n\t\tif (nextOffset >= 0) {\n\t\t\tif (tabs[nextOffset]._disabled) {\n\t\t\t\treturn this.prevPossibleTabIndex(tabs, offset, step + 1);\n\t\t\t}\n\t\t\treturn nextOffset;\n\t\t}\n\n\t\treturn offset;\n\t};\n\n\tprivate onKeyDown = (event: KeyboardEvent) => {\n\t\tswitch (event.key as KeyboardKey) {\n\t\t\tcase KeyboardKey.ArrowRight:\n\t\t\t\tthis.goToNextTab(event);\n\t\t\t\tbreak;\n\t\t\tcase KeyboardKey.ArrowLeft:\n\t\t\t\tthis.goToPreviousTab(event);\n\t\t\t\tbreak;\n\t\t\tcase KeyboardKey.Space:\n\t\t\tcase KeyboardKey.Enter:\n\t\t\t\tthis.activateFocusedTab(event);\n\t\t\t\tbreak;\n\t\t}\n\t};\n\n\tprivate getCurrentFocusIndex(): number {\n\t\tif (typeof this.currentFocusIndex === 'number') {\n\t\t\treturn this.currentFocusIndex;\n\t\t}\n\n\t\treturn this.state._selected;\n\t}\n\n\tprivate getKeyboardTabChangeMode(): 'selectFocusOnly' | 'activateCompletely' {\n\t\tif (this._behavior === 'select-manual') {\n\t\t\treturn 'selectFocusOnly';\n\t\t}\n\n\t\treturn 'activateCompletely';\n\t}\n\n\tprivate goToNextTab(event: KeyboardEvent) {\n\t\tconst nextFocusIndex = this.nextPossibleTabIndex(this.state._tabs, this.getCurrentFocusIndex());\n\t\tthis.selectNextTabEvent(event, nextFocusIndex, this.getKeyboardTabChangeMode());\n\t}\n\n\tprivate goToPreviousTab(event: KeyboardEvent) {\n\t\tconst nextFocusIndex = this.prevPossibleTabIndex(this.state._tabs, this.getCurrentFocusIndex());\n\t\tthis.selectNextTabEvent(event, nextFocusIndex, this.getKeyboardTabChangeMode());\n\t}\n\n\tprivate activateFocusedTab(event: KeyboardEvent) {\n\t\tif (typeof this.currentFocusIndex === 'number') {\n\t\t\tthis.onSelect(event, this.currentFocusIndex);\n\t\t}\n\t}\n\n\tprivate readonly onClickSelect = (event: MouseEvent, index: number): void => {\n\t\tthis.selectNextTabEvent(event, index);\n\t};\n\n\tprivate selectNextTabEvent(\n\t\tevent: KeyboardEvent | MouseEvent,\n\t\tnextTabIndex: number,\n\t\tchangeMode: 'selectFocusOnly' | 'activateCompletely' = 'activateCompletely',\n\t): void {\n\t\tthis.currentFocusIndex = nextTabIndex;\n\n\t\tthis.focusTabById(nextTabIndex);\n\n\t\tif (changeMode === 'activateCompletely') {\n\t\t\tthis._selected = nextTabIndex;\n\n\t\t\tconst tab = this.state._tabs[nextTabIndex];\n\t\t\ttab._on?.onSelect?.(event, nextTabIndex);\n\n\t\t\tthis.onSelect(event, nextTabIndex);\n\t\t}\n\t}\n\n\tprivate readonly onMouseDown = (event: Event): void => {\n\t\tevent.preventDefault();\n\t};\n\n\tprivate readonly callbacks: ButtonCallbacksPropType<number> = {\n\t\tonClick: this.onClickSelect,\n\t\tonMouseDown: this.onMouseDown,\n\t};\n\n\t/**\n\t * Sets focus on the current tab button.\n\t */\n\t@Method()\n\t@delegateFocus('ctaRef')\n\t// @ts-expect-error: options parameter will be implemented by the decorator.\n\t// eslint-disable-next-line @typescript-eslint/no-unused-vars\n\tpublic async focus(options?: KolFocusOptions): Promise<void> {}\n\n\t/**\n\t * Triggers a click on the currently selected tab.\n\t */\n\t@Method()\n\t@delegateClick('ctaRef')\n\tpublic async click(): Promise<void> {}\n\n\tprivate renderButtonGroup() {\n\t\treturn (\n\t\t\t// Rule is disabled, because KolButtonWc is focusable.\n\t\t\t// eslint-disable-next-line jsx-a11y/interactive-supports-focus\n\t\t\t<div aria-label={this.state._label} class=\"kol-tabs__button-group\" role=\"tablist\" onKeyDown={this.onKeyDown} onBlur={this.onBlur}>\n\t\t\t\t{this.state._tabs.map((button: TabButtonProps, index: number) => (\n\t\t\t\t\t<KolButtonWcTag\n\t\t\t\t\t\tref={this.state._selected === index ? this.ctaRef : undefined}\n\t\t\t\t\t\t_disabled={button._disabled}\n\t\t\t\t\t\t_icons={button._icons}\n\t\t\t\t\t\t_hideLabel={button._hideLabel}\n\t\t\t\t\t\t_label={button._label} // TODO: ariaLabel-Konzept prüfen\n\t\t\t\t\t\t_on={this.callbacks as ButtonCallbacksPropType<StencilUnknown>}\n\t\t\t\t\t\t_tabIndex={this.state._selected === index ? 0 : -1}\n\t\t\t\t\t\t_tooltipAlign={button._tooltipAlign}\n\t\t\t\t\t\t_variant={this.state._selected === index ? 'custom' : undefined}\n\t\t\t\t\t\t_customClass={this.state._selected === index ? 'selected' : ''}\n\t\t\t\t\t\t_ariaControls={`tabpanel-${index}`}\n\t\t\t\t\t\t_ariaSelected={this.state._selected === index}\n\t\t\t\t\t\t_id={`${this.state._label.replace(/\\s/g, '-')}-tab-${index}`}\n\t\t\t\t\t\t_role=\"tab\"\n\t\t\t\t\t\t_value={index}\n\t\t\t\t\t></KolButtonWcTag>\n\t\t\t\t))}\n\t\t\t\t{this.state._hasCreateButton && (\n\t\t\t\t\t<KolButtonWcTag\n\t\t\t\t\t\tclass=\"kol-tabs__button-create\"\n\t\t\t\t\t\t_label={this.onCreateLabel}\n\t\t\t\t\t\t_on={{\n\t\t\t\t\t\t\tonClick: this.onCreate,\n\t\t\t\t\t\t}}\n\t\t\t\t\t\t_icons=\"kolicon-plus\"\n\t\t\t\t\t\tdata-testid=\"tabs-create-button\"\n\t\t\t\t\t></KolButtonWcTag>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t);\n\t}\n\n\tprivate tabPanelHost?: HTMLDivElement;\n\n\tprivate readonly catchTabPanelHost = (el?: HTMLDivElement) => {\n\t\tthis.tabPanelHost = el;\n\t};\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<div\n\t\t\t\tref={(el) => {\n\t\t\t\t\tthis.tabPanelsElement = el;\n\t\t\t\t}}\n\t\t\t\tclass={clsx('kol-tabs', `kol-tabs--align-${this.state._align}`)}\n\t\t\t>\n\t\t\t\t{this.renderButtonGroup()}\n\t\t\t\t<div class=\"kol-tabs__content\" ref={this.catchTabPanelHost}>\n\t\t\t\t\t{/* <slot /> */}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the visual orientation of the component.\n\t */\n\t@Prop() public _align?: AlignPropType = 'top';\n\n\t/**\n\t * Defines which behavior is active.\n\t */\n\t@Prop() public _behavior?: TabBehaviorPropType;\n\n\t/**\n\t * Defines whether the element has a create button.\n\t */\n\t@Prop() public _hasCreateButton?: HasCreateButtonPropType = false;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label!: LabelPropType;\n\n\t/**\n\t * Gibt die Liste der Callback-Funktionen an, die auf Events aufgerufen werden sollen.\n\t */\n\t@Prop() public _on?: KoliBriTabsCallbacks;\n\n\t/**\n\t * Defines which tab is active.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _selected?: number = 0;\n\n\t/**\n\t * Defines the tab captions.\n\t */\n\t@Prop() public _tabs!: Stringified<TabButtonProps[]>;\n\n\t@State() public state: TabsStates = {\n\t\t_align: 'top',\n\t\t_label: '', // ⚠ required\n\t\t_selected: 0,\n\t\t_tabs: [],\n\t};\n\n\tprivate selectNextNotDisabledTab = (selected: number, tabs: TabButtonProps[], upOrDown = true, initialSelected?: number): number => {\n\t\tif (selected > tabs.length - 1) {\n\t\t\tselected = tabs.length - 1;\n\t\t}\n\t\tif (selected < 0) {\n\t\t\tselected = 0;\n\t\t}\n\t\tif (Array.isArray(tabs) && tabs[selected]) {\n\t\t\tif (tabs[selected]._disabled) {\n\t\t\t\tif (upOrDown === true) {\n\t\t\t\t\tif (selected < tabs.length - 1) {\n\t\t\t\t\t\treturn this.selectNextNotDisabledTab(selected + 1, tabs, true, initialSelected || selected);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tselected = initialSelected || selected;\n\t\t\t\t\t\tupOrDown = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (upOrDown === false) {\n\t\t\t\t\tif (selected > 0) {\n\t\t\t\t\t\treturn this.selectNextNotDisabledTab(selected - 1, tabs, false, initialSelected || selected);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tdevHint(`[KolTabs] All tabs are disabled, and therefore no tab can be displayed.`);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn selected;\n\t};\n\n\tprivate syncSelectedAndTabs = (nextValue: unknown, nextState: Map<string, unknown>, _component: Generic.Element.Component, key: string) => {\n\t\tlet selected: number;\n\t\tif (key === '_selected') {\n\t\t\tselected = nextValue as number;\n\t\t} else {\n\t\t\tselected = this.state._selected;\n\t\t}\n\t\tlet tabs: TabButtonProps[];\n\t\tif (key === '_tabs') {\n\t\t\ttabs = nextValue as TabButtonProps[];\n\t\t} else {\n\t\t\ttabs = this.state._tabs;\n\t\t}\n\t\tif (tabs.length > 0) {\n\t\t\tnextState.set('_selected', this.selectNextNotDisabledTab(selected, tabs));\n\t\t}\n\t};\n\n\t@Watch('_align')\n\tpublic validateAlign(value?: AlignPropType) {\n\t\tvalidateAlign(this, value);\n\t}\n\n\t@Watch('_behavior')\n\tpublic validateBehavior(value?: TabBehaviorPropType) {\n\t\tvalidateTabBehavior(this, value);\n\t}\n\n\t@Watch('_hasCreateButton')\n\tpublic validateHasCreateButton(value?: HasCreateButtonPropType) {\n\t\tvalidateHasCreateButton(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('_on')\n\tpublic validateOn(value?: KoliBriTabsCallbacks): void {\n\t\tif (typeof value === 'object' && value !== null) {\n\t\t\tconst callbacks: KoliBriTabsCallbacks = {};\n\t\t\tif (typeof value.onCreate === 'function') {\n\t\t\t\tcallbacks.onCreate = value.onCreate;\n\t\t\t}\n\t\t\tif (typeof value.onSelect === 'function') {\n\t\t\t\tcallbacks.onSelect = value.onSelect;\n\t\t\t}\n\t\t\tsetState<KoliBriTabsCallbacks>(this, '_on', callbacks);\n\t\t}\n\t}\n\n\t@Watch('_selected')\n\tpublic validateSelected(value?: number): void {\n\t\twatchNumber(this, '_selected', value, {\n\t\t\thooks: {\n\t\t\t\tbeforePatch: this.syncSelectedAndTabs,\n\t\t\t},\n\t\t});\n\t}\n\n\t@Watch('_tabs')\n\tpublic validateTabs(value?: Stringified<TabButtonProps[]>): void {\n\t\twatchJsonArrayString(\n\t\t\tthis,\n\t\t\t'_tabs',\n\t\t\t(item: TabButtonProps) => typeof item === 'object' && item !== null && typeof item._label === 'string' && item._label.length > 0,\n\t\t\tvalue,\n\t\t\tundefined,\n\t\t\t{\n\t\t\t\thooks: {\n\t\t\t\t\tbeforePatch: this.syncSelectedAndTabs,\n\t\t\t\t\tafterPatch: this.refreshTabPanels,\n\t\t\t\t},\n\t\t\t},\n\t\t);\n\t\tuiUxHintMillerscheZahl('KolTabs', this.state._tabs.length);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateAlign(this._align);\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateOn(this._on);\n\t\tthis.validateSelected(this._selected);\n\t\tthis.validateTabs(this._tabs);\n\t\tthis.validateBehavior(this._behavior);\n\t\tthis.validateHasCreateButton(this._hasCreateButton);\n\t}\n\n\tprivate refreshTabPanels = () => {\n\t\tif (!this.tabPanelHost) return;\n\t\t// Clear existing panels\n\t\twhile (this.tabPanelHost.firstChild) {\n\t\t\tthis.tabPanelHost.removeChild(this.tabPanelHost.firstChild);\n\t\t}\n\t\tfor (let i = 0; i < this.state._tabs?.length; i++) {\n\t\t\tconst div = document.createElement('div');\n\t\t\tdiv.setAttribute('aria-labelledby', `${this.state._label.replace(/\\s/g, '-')}-tab-${i}`);\n\t\t\tdiv.setAttribute('id', `tabpanel-${i}`);\n\t\t\tdiv.setAttribute('role', 'tabpanel');\n\t\t\tdiv.setAttribute('hidden', '');\n\t\t\t// div.setAttribute('tabindex', '0'); Panel soll nicht tabbar sein; siehe https://github.com/public-ui/kolibri/issues/10082\n\t\t\tconst slot = document.createElement('slot');\n\t\t\tslot.setAttribute('name', `tabpanel-slot-${i}`);\n\t\t\tdiv.appendChild(slot);\n\t\t\tthis.tabPanelHost?.appendChild(div);\n\n\t\t\tif (typeof HTMLCollection !== 'undefined' && this.host?.children instanceof HTMLCollection && this.host?.children[i] /* SSR instanceof HTMLElement */) {\n\t\t\t\tthis.host.children[i].setAttribute('slot', `tabpanel-slot-${i}`);\n\t\t\t}\n\t\t}\n\t\tthis.updateVisiblePanel();\n\t};\n\n\tprivate updateVisiblePanel = () => {\n\t\tif (!this.tabPanelHost) return;\n\t\tArray.from(this.tabPanelHost.children).forEach((child, i) => {\n\t\t\tif (i === this.state._selected) {\n\t\t\t\tchild.removeAttribute('hidden');\n\t\t\t} else {\n\t\t\t\tchild.setAttribute('hidden', '');\n\t\t\t}\n\t\t});\n\t};\n\n\tpublic componentDidRender(): void {\n\t\tthis.refreshTabPanels();\n\t}\n\n\tprivate focusTabById(index: number): void {\n\t\tif (this.tabPanelsElement /* SSR instanceof HTMLElement */) {\n\t\t\tconst button: HTMLElement | null = koliBriQuerySelector(`button#${this.state._label.replace(/\\s/g, '-')}-tab-${index}`, this.tabPanelsElement);\n\t\t\tbutton?.focus();\n\t\t}\n\t}\n\n\tprivate onSelect(event: CustomEvent | KeyboardEvent | MouseEvent | PointerEvent, index: number): void {\n\t\tthis._on?.onSelect?.(event, index);\n\t\tif (this.host) {\n\t\t\tdispatchDomEvent(this.host, KolEvent.select, index);\n\t\t}\n\n\t\tthis.focusTabById(index);\n\t}\n\n\tprivate onCreate = (event: Event) => {\n\t\tevent.preventDefault();\n\t\tthis.state._on?.onCreate?.(event);\n\t\tif (this.host) {\n\t\t\tdispatchDomEvent(this.host, KolEvent.create);\n\t\t}\n\t};\n\n\tprivate onBlur = () => {\n\t\tthis.currentFocusIndex = undefined;\n\t};\n}\n"],"version":3}
1
+ {"file":"kol-tabs.js","mappings":";;;;;;;;;;;;;;;;AAIA,MAAM,0BAA0B,GAAG,CAAC,kBAAkB,EAAE,eAAe,CAAU;AAW1E,MAAM,mBAAmB,GAAG,CAAC,SAAoC,EAAE,KAA2B,KAAU;AAC9G,IAAA,cAAc,CACb,SAAS,EACT,CAAW,SAAA,CAAA,EACX,CAAC,KAAK,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,0BAA0B,CAAC,QAAQ,CAAC,KAAK,CAAC,EAClF,IAAI,GAAG,CAAC,CAAC,CAAA,oBAAA,EAAuB,0BAA0B,CAAC,IAAI,CAAC,IAAI,CAAC,CAAE,CAAA,CAAC,CAAC,EACzE,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,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;","names":["KolTabs","__stencil_proxyCustomElement"],"sources":["src/schema/props/tab-behavior.ts","src/schema/props/has-create-button.ts","src/components/tabs/style.scss?tag=kol-tabs&mode=default&encapsulation=shadow","src/components/tabs/shadow.tsx"],"sourcesContent":["/* types */\nimport type { Generic } from 'adopted-style-sheets';\nimport { watchValidator } from '../utils';\n\nconst tabBehaviorPropTypeOptions = ['select-automatic', 'select-manual'] as const;\nexport type TabBehaviorPropType = (typeof tabBehaviorPropTypeOptions)[number];\n\n/**\n * Defines which behavior is active.\n */\nexport type PropTabBehavior = {\n\tbehavior: TabBehaviorPropType;\n};\n\n/* validator */\nexport const validateTabBehavior = (component: Generic.Element.Component, value?: TabBehaviorPropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t`_behavior`,\n\t\t(value) => typeof value === 'string' && tabBehaviorPropTypeOptions.includes(value),\n\t\tnew Set([`KoliBriTabBehavior {${tabBehaviorPropTypeOptions.join(', ')}`]),\n\t\tvalue,\n\t);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { watchBoolean } from '../utils';\n\n/* types */\nexport type HasCreateButtonPropType = boolean;\n\n/**\n * Defines whether the element has a create button.\n */\nexport type PropHasCreateButton = {\n\thasCreateButton: HasCreateButtonPropType;\n};\n\n/* validator */\nexport const validateHasCreateButton = (component: Generic.Element.Component, value?: HasCreateButtonPropType): void => {\n\twatchBoolean(component, '_hasCreateButton', value);\n};\n","@use '../@shared/mixins' as *;\n@use '../@shared/global' as *;\n@use '../host-display-block' as *;\n@use '../tooltip/style.scss' as *;\n@use '../@shared/icon.mixin' as *;\n\n@layer kol-component {\n\t@include kol-icon-styles();\n\t.kol-tabs {\n\t\tdisplay: var(--display);\n\t\tgrid-template-columns: var(--grid-template-columns);\n\t\tgrid-template-rows: var(--grid-template-rows);\n\n\t\t&--align-right {\n\t\t\t--display: grid;\n\t\t\t--grid-template-columns: 1fr auto;\n\n\t\t\t--button-group-flex-direction: column;\n\t\t\t--button-group-order: 2;\n\t\t}\n\n\t\t&--align-left {\n\t\t\t--display: grid;\n\t\t\t--grid-template-columns: auto 1fr;\n\n\t\t\t--button-group-flex-direction: column;\n\t\t\t--button-group-order: 0;\n\t\t}\n\n\t\t&--align-bottom {\n\t\t\t--display: grid;\n\t\t\t--grid-template-rows: 1fr auto;\n\n\t\t\t--button-group-order: 2;\n\t\t}\n\n\t\t&__tabs-align-top {\n\t\t\t--display: grid;\n\t\t\t--grid-template-rows: auto 1fr;\n\n\t\t\t--button-group-order: 0;\n\t\t}\n\n\t\t&__button-group {\n\t\t\tdisplay: flex;\n\t\t\torder: var(--button-group-order);\n\n\t\t\tflex-direction: var(--button-group-flex-direction);\n\t\t\tflex-wrap: wrap;\n\n\t\t\t.kol-button {\n\t\t\t\tborder-bottom-color: transparent;\n\t\t\t\tdisplay: block;\n\t\t\t\tborder-bottom-style: solid;\n\n\t\t\t\t@media (forced-colors: active) {\n\t\t\t\t\t&.selected {\n\t\t\t\t\t\toutline: 3px solid Highlight;\n\t\t\t\t\t\toutline-offset: -3px;\n\n\t\t\t\t\t\t&:focus-visible {\n\t\t\t\t\t\t\toutline-style: dashed;\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\n\t\t&__panel {\n\t\t\theight: 100%;\n\t\t}\n\t}\n}\n","import type { JSX } from '@stencil/core';\nimport { Component, Element, h, Method, Prop, State, Watch } from '@stencil/core';\nimport type {\n\tAlignPropType,\n\tButtonCallbacksPropType,\n\tClickableElement,\n\tFocusableElement,\n\tKolFocusOptions,\n\tKoliBriTabsCallbacks,\n\tLabelPropType,\n\tStencilUnknown,\n\tStringified,\n\tTabBehaviorPropType,\n\tTabButtonProps,\n\tTabsAPI,\n\tTabsStates,\n} from '../../schema';\nimport {\n\tdevHint,\n\tkoliBriQuerySelector,\n\tsetState,\n\tuiUxHintMillerscheZahl,\n\tvalidateAlign,\n\tvalidateLabel,\n\tvalidateTabBehavior,\n\twatchJsonArrayString,\n\twatchNumber,\n} from '../../schema';\n\nimport type { Generic } from 'adopted-style-sheets';\nimport { KolButtonWcTag } from '../../core/component-names';\nimport { translate } from '../../i18n';\nimport { KeyboardKey } from '../../schema/enums';\nimport type { HasCreateButtonPropType } from '../../schema/props/has-create-button';\nimport { validateHasCreateButton } from '../../schema/props/has-create-button';\nimport clsx from '../../utils/clsx';\nimport { createCtaRef, delegateClick, delegateFocus } from '../../utils/element-interaction';\nimport { dispatchDomEvent, KolEvent } from '../../utils/events';\n// https://www.w3.org/TR/wai-aria-practices-1.1/examples/tabs/tabs-2/tabs.html\n\n/**\n * The **Tabs** component is used to organize related content on the same page and navigate between them. Tabs ensure that large amounts of content can be more easily organized for users.\n */\n@Component({\n\ttag: 'kol-tabs',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolTabs implements ClickableElement, FocusableElement, TabsAPI {\n\t@Element() protected readonly host?: HTMLKolTabsElement;\n\tprivate tabPanelsElement?: HTMLElement;\n\tprivate onCreateLabel = `${translate('kol-new')} …`;\n\tprivate currentFocusIndex: number | undefined;\n\tprotected readonly ctaRef = createCtaRef<HTMLKolButtonWcElement>();\n\n\tprivate nextPossibleTabIndex = (tabs: TabButtonProps[], offset: number, step = 1): number => {\n\t\tconst nextOffset = offset + step;\n\n\t\tif (nextOffset < tabs.length) {\n\t\t\tif (tabs[nextOffset]._disabled) {\n\t\t\t\treturn this.nextPossibleTabIndex(tabs, offset, step + 1);\n\t\t\t}\n\t\t\treturn nextOffset;\n\t\t}\n\n\t\treturn offset;\n\t};\n\n\tprivate prevPossibleTabIndex = (tabs: TabButtonProps[], offset: number, step = 1): number => {\n\t\tconst nextOffset = offset - step;\n\n\t\tif (nextOffset >= 0) {\n\t\t\tif (tabs[nextOffset]._disabled) {\n\t\t\t\treturn this.prevPossibleTabIndex(tabs, offset, step + 1);\n\t\t\t}\n\t\t\treturn nextOffset;\n\t\t}\n\n\t\treturn offset;\n\t};\n\n\tprivate onKeyDown = (event: KeyboardEvent) => {\n\t\tswitch (event.key as KeyboardKey) {\n\t\t\tcase KeyboardKey.ArrowRight:\n\t\t\t\tthis.goToNextTab(event);\n\t\t\t\tbreak;\n\t\t\tcase KeyboardKey.ArrowLeft:\n\t\t\t\tthis.goToPreviousTab(event);\n\t\t\t\tbreak;\n\t\t\tcase KeyboardKey.Space:\n\t\t\tcase KeyboardKey.Enter:\n\t\t\t\tthis.activateFocusedTab(event);\n\t\t\t\tbreak;\n\t\t}\n\t};\n\n\tprivate getCurrentFocusIndex(): number {\n\t\tif (typeof this.currentFocusIndex === 'number') {\n\t\t\treturn this.currentFocusIndex;\n\t\t}\n\n\t\treturn this.state._selected;\n\t}\n\n\tprivate getKeyboardTabChangeMode(): 'selectFocusOnly' | 'activateCompletely' {\n\t\tif (this._behavior === 'select-manual') {\n\t\t\treturn 'selectFocusOnly';\n\t\t}\n\n\t\treturn 'activateCompletely';\n\t}\n\n\tprivate goToNextTab(event: KeyboardEvent) {\n\t\tconst nextFocusIndex = this.nextPossibleTabIndex(this.state._tabs, this.getCurrentFocusIndex());\n\t\tthis.selectNextTabEvent(event, nextFocusIndex, this.getKeyboardTabChangeMode());\n\t}\n\n\tprivate goToPreviousTab(event: KeyboardEvent) {\n\t\tconst nextFocusIndex = this.prevPossibleTabIndex(this.state._tabs, this.getCurrentFocusIndex());\n\t\tthis.selectNextTabEvent(event, nextFocusIndex, this.getKeyboardTabChangeMode());\n\t}\n\n\tprivate activateFocusedTab(event: KeyboardEvent) {\n\t\tif (typeof this.currentFocusIndex === 'number') {\n\t\t\tthis.onSelect(event, this.currentFocusIndex);\n\t\t}\n\t}\n\n\tprivate readonly onClickSelect = (event: MouseEvent, index: number): void => {\n\t\tthis.selectNextTabEvent(event, index);\n\t};\n\n\tprivate selectNextTabEvent(\n\t\tevent: KeyboardEvent | MouseEvent,\n\t\tnextTabIndex: number,\n\t\tchangeMode: 'selectFocusOnly' | 'activateCompletely' = 'activateCompletely',\n\t): void {\n\t\tthis.currentFocusIndex = nextTabIndex;\n\n\t\tthis.focusTabById(nextTabIndex);\n\n\t\tif (changeMode === 'activateCompletely') {\n\t\t\tthis._selected = nextTabIndex;\n\n\t\t\tconst tab = this.state._tabs[nextTabIndex];\n\t\t\ttab._on?.onSelect?.(event, nextTabIndex);\n\n\t\t\tthis.onSelect(event, nextTabIndex);\n\t\t}\n\t}\n\n\tprivate readonly onMouseDown = (event: Event): void => {\n\t\tevent.preventDefault();\n\t};\n\n\tprivate readonly callbacks: ButtonCallbacksPropType<number> = {\n\t\tonClick: this.onClickSelect,\n\t\tonMouseDown: this.onMouseDown,\n\t};\n\n\t/**\n\t * Sets focus on the current tab button.\n\t */\n\t@Method()\n\t@delegateFocus('ctaRef')\n\t// @ts-expect-error: options parameter will be implemented by the decorator.\n\t// eslint-disable-next-line @typescript-eslint/no-unused-vars\n\tpublic async focus(options?: KolFocusOptions): Promise<void> {}\n\n\t/**\n\t * Triggers a click on the currently selected tab.\n\t */\n\t@Method()\n\t@delegateClick('ctaRef')\n\tpublic async click(): Promise<void> {}\n\n\tprivate renderButtonGroup() {\n\t\treturn (\n\t\t\t// Rule is disabled, because KolButtonWc is focusable.\n\t\t\t// eslint-disable-next-line jsx-a11y/interactive-supports-focus\n\t\t\t<div aria-label={this.state._label} class=\"kol-tabs__button-group\" role=\"tablist\" onKeyDown={this.onKeyDown} onBlur={this.onBlur}>\n\t\t\t\t{this.state._tabs.map((button: TabButtonProps, index: number) => (\n\t\t\t\t\t<KolButtonWcTag\n\t\t\t\t\t\tref={this.state._selected === index ? this.ctaRef : undefined}\n\t\t\t\t\t\t_disabled={button._disabled}\n\t\t\t\t\t\t_icons={button._icons}\n\t\t\t\t\t\t_hideLabel={button._hideLabel}\n\t\t\t\t\t\t_label={button._label} // TODO: ariaLabel-Konzept prüfen\n\t\t\t\t\t\t_on={this.callbacks as ButtonCallbacksPropType<StencilUnknown>}\n\t\t\t\t\t\t_tabIndex={this.state._selected === index ? 0 : -1}\n\t\t\t\t\t\t_tooltipAlign={button._tooltipAlign}\n\t\t\t\t\t\t_variant={this.state._selected === index ? 'custom' : undefined}\n\t\t\t\t\t\t_customClass={this.state._selected === index ? 'selected' : ''}\n\t\t\t\t\t\t_ariaControls={`tabpanel-${index}`}\n\t\t\t\t\t\t_ariaSelected={this.state._selected === index}\n\t\t\t\t\t\t_id={`${this.state._label.replace(/\\s/g, '-')}-tab-${index}`}\n\t\t\t\t\t\t_role=\"tab\"\n\t\t\t\t\t\t_value={index}\n\t\t\t\t\t></KolButtonWcTag>\n\t\t\t\t))}\n\t\t\t\t{this.state._hasCreateButton && (\n\t\t\t\t\t<KolButtonWcTag\n\t\t\t\t\t\tclass=\"kol-tabs__button-create\"\n\t\t\t\t\t\t_label={this.onCreateLabel}\n\t\t\t\t\t\t_on={{\n\t\t\t\t\t\t\tonClick: this.onCreate,\n\t\t\t\t\t\t}}\n\t\t\t\t\t\t_icons=\"kolicon-plus\"\n\t\t\t\t\t\tdata-testid=\"tabs-create-button\"\n\t\t\t\t\t></KolButtonWcTag>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t);\n\t}\n\n\tprivate tabPanelHost?: HTMLDivElement;\n\n\tprivate readonly catchTabPanelHost = (el?: HTMLDivElement) => {\n\t\tthis.tabPanelHost = el;\n\t};\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<div\n\t\t\t\tref={(el) => {\n\t\t\t\t\tthis.tabPanelsElement = el;\n\t\t\t\t}}\n\t\t\t\tclass={clsx('kol-tabs', `kol-tabs--align-${this.state._align}`)}\n\t\t\t>\n\t\t\t\t{this.renderButtonGroup()}\n\t\t\t\t<div class=\"kol-tabs__content\" ref={this.catchTabPanelHost}>\n\t\t\t\t\t{/* <slot /> */}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the visual orientation of the component.\n\t */\n\t@Prop() public _align?: AlignPropType = 'top';\n\n\t/**\n\t * Defines which behavior is active.\n\t */\n\t@Prop() public _behavior?: TabBehaviorPropType;\n\n\t/**\n\t * Defines whether the element has a create button.\n\t */\n\t@Prop() public _hasCreateButton?: HasCreateButtonPropType = false;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label!: LabelPropType;\n\n\t/**\n\t * Gibt die Liste der Callback-Funktionen an, die auf Events aufgerufen werden sollen.\n\t */\n\t@Prop() public _on?: KoliBriTabsCallbacks;\n\n\t/**\n\t * Defines which tab is active.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _selected?: number = 0;\n\n\t/**\n\t * Defines the tab captions.\n\t */\n\t@Prop() public _tabs!: Stringified<TabButtonProps[]>;\n\n\t@State() public state: TabsStates = {\n\t\t_align: 'top',\n\t\t_label: '', // ⚠ required\n\t\t_selected: 0,\n\t\t_tabs: [],\n\t};\n\n\tprivate selectNextNotDisabledTab = (selected: number, tabs: TabButtonProps[], upOrDown = true, initialSelected?: number): number => {\n\t\tif (selected > tabs.length - 1) {\n\t\t\tselected = tabs.length - 1;\n\t\t}\n\t\tif (selected < 0) {\n\t\t\tselected = 0;\n\t\t}\n\t\tif (Array.isArray(tabs) && tabs[selected]) {\n\t\t\tif (tabs[selected]._disabled) {\n\t\t\t\tif (upOrDown === true) {\n\t\t\t\t\tif (selected < tabs.length - 1) {\n\t\t\t\t\t\treturn this.selectNextNotDisabledTab(selected + 1, tabs, true, initialSelected || selected);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tselected = initialSelected || selected;\n\t\t\t\t\t\tupOrDown = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (upOrDown === false) {\n\t\t\t\t\tif (selected > 0) {\n\t\t\t\t\t\treturn this.selectNextNotDisabledTab(selected - 1, tabs, false, initialSelected || selected);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tdevHint(`[KolTabs] All tabs are disabled, and therefore no tab can be displayed.`);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn selected;\n\t};\n\n\tprivate syncSelectedAndTabs = (nextValue: unknown, nextState: Map<string, unknown>, _component: Generic.Element.Component, key: string) => {\n\t\tlet selected: number;\n\t\tif (key === '_selected') {\n\t\t\tselected = nextValue as number;\n\t\t} else {\n\t\t\tselected = this.state._selected;\n\t\t}\n\t\tlet tabs: TabButtonProps[];\n\t\tif (key === '_tabs') {\n\t\t\ttabs = nextValue as TabButtonProps[];\n\t\t} else {\n\t\t\ttabs = this.state._tabs;\n\t\t}\n\t\tif (tabs.length > 0) {\n\t\t\tnextState.set('_selected', this.selectNextNotDisabledTab(selected, tabs));\n\t\t}\n\t};\n\n\t@Watch('_align')\n\tpublic validateAlign(value?: AlignPropType) {\n\t\tvalidateAlign(this, value);\n\t}\n\n\t@Watch('_behavior')\n\tpublic validateBehavior(value?: TabBehaviorPropType) {\n\t\tvalidateTabBehavior(this, value);\n\t}\n\n\t@Watch('_hasCreateButton')\n\tpublic validateHasCreateButton(value?: HasCreateButtonPropType) {\n\t\tvalidateHasCreateButton(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('_on')\n\tpublic validateOn(value?: KoliBriTabsCallbacks): void {\n\t\tif (typeof value === 'object' && value !== null) {\n\t\t\tconst callbacks: KoliBriTabsCallbacks = {};\n\t\t\tif (typeof value.onCreate === 'function') {\n\t\t\t\tcallbacks.onCreate = value.onCreate;\n\t\t\t}\n\t\t\tif (typeof value.onSelect === 'function') {\n\t\t\t\tcallbacks.onSelect = value.onSelect;\n\t\t\t}\n\t\t\tsetState<KoliBriTabsCallbacks>(this, '_on', callbacks);\n\t\t}\n\t}\n\n\t@Watch('_selected')\n\tpublic validateSelected(value?: number): void {\n\t\twatchNumber(this, '_selected', value, {\n\t\t\thooks: {\n\t\t\t\tbeforePatch: this.syncSelectedAndTabs,\n\t\t\t},\n\t\t});\n\t}\n\n\t@Watch('_tabs')\n\tpublic validateTabs(value?: Stringified<TabButtonProps[]>): void {\n\t\twatchJsonArrayString(\n\t\t\tthis,\n\t\t\t'_tabs',\n\t\t\t(item: TabButtonProps) => typeof item === 'object' && item !== null && typeof item._label === 'string' && item._label.length > 0,\n\t\t\tvalue,\n\t\t\tundefined,\n\t\t\t{\n\t\t\t\thooks: {\n\t\t\t\t\tbeforePatch: this.syncSelectedAndTabs,\n\t\t\t\t\tafterPatch: this.refreshTabPanels,\n\t\t\t\t},\n\t\t\t},\n\t\t);\n\t\tuiUxHintMillerscheZahl('KolTabs', this.state._tabs.length);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateAlign(this._align);\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateOn(this._on);\n\t\tthis.validateSelected(this._selected);\n\t\tthis.validateTabs(this._tabs);\n\t\tthis.validateBehavior(this._behavior);\n\t\tthis.validateHasCreateButton(this._hasCreateButton);\n\t}\n\n\tprivate refreshTabPanels = () => {\n\t\tif (!this.tabPanelHost) return;\n\t\t// Clear existing panels\n\t\twhile (this.tabPanelHost.firstChild) {\n\t\t\tthis.tabPanelHost.removeChild(this.tabPanelHost.firstChild);\n\t\t}\n\t\tfor (let i = 0; i < this.state._tabs?.length; i++) {\n\t\t\tconst div = document.createElement('div');\n\t\t\tdiv.setAttribute('aria-labelledby', `${this.state._label.replace(/\\s/g, '-')}-tab-${i}`);\n\t\t\tdiv.setAttribute('id', `tabpanel-${i}`);\n\t\t\tdiv.setAttribute('role', 'tabpanel');\n\t\t\tdiv.setAttribute('hidden', '');\n\t\t\t// div.setAttribute('tabindex', '0'); Panel soll nicht tabbar sein; siehe https://github.com/public-ui/kolibri/issues/10082\n\t\t\tconst slot = document.createElement('slot');\n\t\t\tslot.setAttribute('name', `tabpanel-slot-${i}`);\n\t\t\tdiv.appendChild(slot);\n\t\t\tthis.tabPanelHost?.appendChild(div);\n\n\t\t\tif (typeof HTMLCollection !== 'undefined' && this.host?.children instanceof HTMLCollection && this.host?.children[i] /* SSR instanceof HTMLElement */) {\n\t\t\t\tthis.host.children[i].setAttribute('slot', `tabpanel-slot-${i}`);\n\t\t\t}\n\t\t}\n\t\tthis.updateVisiblePanel();\n\t};\n\n\tprivate updateVisiblePanel = () => {\n\t\tif (!this.tabPanelHost) return;\n\t\tArray.from(this.tabPanelHost.children).forEach((child, i) => {\n\t\t\tif (i === this.state._selected) {\n\t\t\t\tchild.removeAttribute('hidden');\n\t\t\t} else {\n\t\t\t\tchild.setAttribute('hidden', '');\n\t\t\t}\n\t\t});\n\t};\n\n\tpublic componentDidRender(): void {\n\t\tthis.refreshTabPanels();\n\t}\n\n\tprivate focusTabById(index: number): void {\n\t\tif (this.tabPanelsElement /* SSR instanceof HTMLElement */) {\n\t\t\tconst button: HTMLElement | null = koliBriQuerySelector(`button#${this.state._label.replace(/\\s/g, '-')}-tab-${index}`, this.tabPanelsElement);\n\t\t\tbutton?.focus();\n\t\t}\n\t}\n\n\tprivate onSelect(event: CustomEvent | KeyboardEvent | MouseEvent | PointerEvent, index: number): void {\n\t\tthis._on?.onSelect?.(event, index);\n\t\tif (this.host) {\n\t\t\tdispatchDomEvent(this.host, KolEvent.select, index);\n\t\t}\n\n\t\tthis.focusTabById(index);\n\t}\n\n\tprivate onCreate = (event: Event) => {\n\t\tevent.preventDefault();\n\t\tthis.state._on?.onCreate?.(event);\n\t\tif (this.host) {\n\t\t\tdispatchDomEvent(this.host, KolEvent.create);\n\t\t}\n\t};\n\n\tprivate onBlur = () => {\n\t\tthis.currentFocusIndex = undefined;\n\t};\n}\n"],"version":3}