@public-ui/components 4.1.2-rc.1 → 4.1.2-rc.2

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 (688) 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 +153 -624
  7. package/dist/cjs/{Alert-Cw9sZoxW.js → Alert-B4Hj8NjA.js} +1 -1
  8. package/dist/cjs/{Alert-Cw9sZoxW.js.map → Alert-B4Hj8NjA.js.map} +1 -1
  9. package/dist/cjs/{Collapsible-W9myHFxA.js → Collapsible-Dijo3pX0.js} +1 -1
  10. package/dist/cjs/{Collapsible-W9myHFxA.js.map → Collapsible-Dijo3pX0.js.map} +1 -1
  11. package/dist/cjs/{CustomSuggestionsOptionsGroup-BTWrYAk-.js → CustomSuggestionsOptionsGroup-Mgl4AAEi.js} +1 -1
  12. package/dist/cjs/{CustomSuggestionsOptionsGroup-BTWrYAk-.js.map → CustomSuggestionsOptionsGroup-Mgl4AAEi.js.map} +1 -1
  13. package/dist/cjs/{FieldControlStateWrapper-C_inrfM7.js → FieldControlStateWrapper-x-Ky7VQD.js} +1 -1
  14. package/dist/cjs/{FieldControlStateWrapper-C_inrfM7.js.map → FieldControlStateWrapper-x-Ky7VQD.js.map} +1 -1
  15. package/dist/cjs/{FormFieldStateWrapper-4lfwXY_q.js → FormFieldStateWrapper-C8Tav05H.js} +1 -1
  16. package/dist/cjs/{FormFieldStateWrapper-4lfwXY_q.js.map → FormFieldStateWrapper-C8Tav05H.js.map} +1 -1
  17. package/dist/cjs/{Heading-C12RqDRf.js → Heading-BCb6_DOq.js} +1 -1
  18. package/dist/cjs/{Heading-C12RqDRf.js.map → Heading-BCb6_DOq.js.map} +1 -1
  19. package/dist/cjs/{Input-EcHO3kdR.js → Input-B5i_1a7W.js} +1 -1
  20. package/dist/cjs/{Input-EcHO3kdR.js.map → Input-B5i_1a7W.js.map} +1 -1
  21. package/dist/cjs/{InputStateWrapper-Bo6IoxAD.js → InputStateWrapper-xtqqc1vC.js} +1 -1
  22. package/dist/cjs/{InputStateWrapper-Bo6IoxAD.js.map → InputStateWrapper-xtqqc1vC.js.map} +1 -1
  23. package/dist/cjs/{app-globals-BhcKC4Ox.js → app-globals-DVEVPuuO.js} +1 -1
  24. package/dist/cjs/{app-globals-BhcKC4Ox.js.map → app-globals-DVEVPuuO.js.map} +1 -1
  25. package/dist/cjs/{component-DceU4ORK.js → component-BsaPD_xm.js} +1 -1
  26. package/dist/cjs/{component-DceU4ORK.js.map → component-BsaPD_xm.js.map} +1 -1
  27. package/dist/cjs/{component-D-qiYnI6.js → component-g902nOgi.js} +1 -1
  28. package/dist/cjs/{component-D-qiYnI6.js.map → component-g902nOgi.js.map} +1 -1
  29. package/dist/cjs/{controller-CJLYpbTW.js → controller-Btq8uSY3.js} +1 -1
  30. package/dist/cjs/{controller-CJLYpbTW.js.map → controller-Btq8uSY3.js.map} +1 -1
  31. package/dist/cjs/{controller-16gxT6uy.js → controller-ChTDDlUI.js} +1 -1
  32. package/dist/cjs/{controller-16gxT6uy.js.map → controller-ChTDDlUI.js.map} +1 -1
  33. package/dist/cjs/{controller-CnGbboNY.js → controller-CkP5MO7F.js} +1 -1
  34. package/dist/cjs/{controller-CnGbboNY.js.map → controller-CkP5MO7F.js.map} +1 -1
  35. package/dist/cjs/{controller-Clk7RX5l.js → controller-Cuu9WuW7.js} +1 -1
  36. package/dist/cjs/{controller-Clk7RX5l.js.map → controller-Cuu9WuW7.js.map} +1 -1
  37. package/dist/cjs/{controller-icon-BzDGBbsy.js → controller-icon-ClEpzUUk.js} +1 -1
  38. package/dist/cjs/{controller-icon-BzDGBbsy.js.map → controller-icon-ClEpzUUk.js.map} +1 -1
  39. package/dist/cjs/{dev.utils-Cd8lnY8W.js → dev.utils-OOR6uYvl.js} +1 -1
  40. package/dist/cjs/{dev.utils-Cd8lnY8W.js.map → dev.utils-OOR6uYvl.js.map} +1 -1
  41. package/dist/cjs/{devtools-CcQTicOw.js → devtools-Crg6PzgP.js} +1 -1
  42. package/dist/cjs/{devtools-CcQTicOw.js.map → devtools-Crg6PzgP.js.map} +1 -1
  43. package/dist/cjs/{index-BDC4d4pa.js → index-DMu8_ik9.js} +1 -1
  44. package/dist/cjs/{index-BDC4d4pa.js.map → index-DMu8_ik9.js.map} +1 -1
  45. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  46. package/dist/cjs/kol-abbr.entry.cjs.js.map +1 -1
  47. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  48. package/dist/cjs/kol-accordion.entry.cjs.js.map +1 -1
  49. package/dist/cjs/kol-alert-wc.cjs.entry.js +1 -1
  50. package/dist/cjs/kol-alert-wc.entry.cjs.js.map +1 -1
  51. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  52. package/dist/cjs/kol-alert.entry.cjs.js.map +1 -1
  53. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  54. package/dist/cjs/kol-avatar.entry.cjs.js.map +1 -1
  55. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  56. package/dist/cjs/kol-badge.entry.cjs.js.map +1 -1
  57. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  58. package/dist/cjs/kol-breadcrumb.entry.cjs.js.map +1 -1
  59. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  60. package/dist/cjs/kol-button-link.entry.cjs.js.map +1 -1
  61. package/dist/cjs/kol-button-wc.cjs.entry.js +1 -1
  62. package/dist/cjs/kol-button-wc.entry.cjs.js.map +1 -1
  63. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  64. package/dist/cjs/kol-button.entry.cjs.js.map +1 -1
  65. package/dist/cjs/kol-card-wc.cjs.entry.js +1 -1
  66. package/dist/cjs/kol-card-wc.entry.cjs.js.map +1 -1
  67. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  68. package/dist/cjs/kol-card.entry.cjs.js.map +1 -1
  69. package/dist/cjs/kol-click-button.cjs.entry.js +1 -1
  70. package/dist/cjs/kol-click-button.entry.cjs.js.map +1 -1
  71. package/dist/cjs/kol-combobox.cjs.entry.js +1 -1
  72. package/dist/cjs/kol-combobox.entry.cjs.js.map +1 -1
  73. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  74. package/dist/cjs/kol-details.entry.cjs.js.map +1 -1
  75. package/dist/cjs/kol-dialog-wc.cjs.entry.js +1 -1
  76. package/dist/cjs/kol-dialog.cjs.entry.js +1 -1
  77. package/dist/cjs/kol-dialog.entry.cjs.js.map +1 -1
  78. package/dist/cjs/kol-drawer.cjs.entry.js +1 -1
  79. package/dist/cjs/kol-drawer.entry.cjs.js.map +1 -1
  80. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  81. package/dist/cjs/kol-form.entry.cjs.js.map +1 -1
  82. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  83. package/dist/cjs/kol-heading.entry.cjs.js.map +1 -1
  84. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  85. package/dist/cjs/kol-icon.entry.cjs.js.map +1 -1
  86. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  87. package/dist/cjs/kol-image.entry.cjs.js.map +1 -1
  88. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  89. package/dist/cjs/kol-input-checkbox.entry.cjs.js.map +1 -1
  90. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  91. package/dist/cjs/kol-input-color.entry.cjs.js.map +1 -1
  92. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  93. package/dist/cjs/kol-input-date.entry.cjs.js.map +1 -1
  94. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  95. package/dist/cjs/kol-input-email.entry.cjs.js.map +1 -1
  96. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  97. package/dist/cjs/kol-input-file.entry.cjs.js.map +1 -1
  98. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  99. package/dist/cjs/kol-input-number.entry.cjs.js.map +1 -1
  100. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  101. package/dist/cjs/kol-input-password.entry.cjs.js.map +1 -1
  102. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  103. package/dist/cjs/kol-input-radio.entry.cjs.js.map +1 -1
  104. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  105. package/dist/cjs/kol-input-range.entry.cjs.js.map +1 -1
  106. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  107. package/dist/cjs/kol-input-text.entry.cjs.js.map +1 -1
  108. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  109. package/dist/cjs/kol-kolibri.entry.cjs.js.map +1 -1
  110. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  111. package/dist/cjs/kol-link-button.entry.cjs.js.map +1 -1
  112. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  113. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  114. package/dist/cjs/kol-link.entry.cjs.js.map +1 -1
  115. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  116. package/dist/cjs/kol-modal.entry.cjs.js.map +1 -1
  117. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  118. package/dist/cjs/kol-nav.entry.cjs.js.map +1 -1
  119. package/dist/cjs/kol-pagination-wc.cjs.entry.js +1 -1
  120. package/dist/cjs/kol-pagination-wc.entry.cjs.js.map +1 -1
  121. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  122. package/dist/cjs/kol-pagination.entry.cjs.js.map +1 -1
  123. package/dist/cjs/kol-popover-button-wc.cjs.entry.js +1 -1
  124. package/dist/cjs/kol-popover-button-wc.entry.cjs.js.map +1 -1
  125. package/dist/cjs/kol-popover-button.cjs.entry.js +1 -1
  126. package/dist/cjs/kol-popover-button.entry.cjs.js.map +1 -1
  127. package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
  128. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  129. package/dist/cjs/kol-progress.entry.cjs.js.map +1 -1
  130. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  131. package/dist/cjs/kol-quote.entry.cjs.js.map +1 -1
  132. package/dist/cjs/kol-select-wc.cjs.entry.js +1 -1
  133. package/dist/cjs/kol-select-wc.entry.cjs.js.map +1 -1
  134. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  135. package/dist/cjs/kol-select.entry.cjs.js.map +1 -1
  136. package/dist/cjs/kol-single-select.cjs.entry.js +1 -1
  137. package/dist/cjs/kol-single-select.entry.cjs.js.map +1 -1
  138. package/dist/cjs/kol-skeleton.cjs.entry.js +1 -1
  139. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  140. package/dist/cjs/kol-skip-nav.entry.cjs.js.map +1 -1
  141. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  142. package/dist/cjs/kol-spin.entry.cjs.js.map +1 -1
  143. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  144. package/dist/cjs/kol-split-button.entry.cjs.js.map +1 -1
  145. package/dist/cjs/kol-table-settings-wc.cjs.entry.js +1 -1
  146. package/dist/cjs/kol-table-stateful.cjs.entry.js +1 -1
  147. package/dist/cjs/kol-table-stateful.entry.cjs.js.map +1 -1
  148. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js +1 -1
  149. package/dist/cjs/kol-table-stateless.cjs.entry.js +1 -1
  150. package/dist/cjs/kol-table-stateless.entry.cjs.js.map +1 -1
  151. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  152. package/dist/cjs/kol-tabs.entry.cjs.js.map +1 -1
  153. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  154. package/dist/cjs/kol-textarea.entry.cjs.js.map +1 -1
  155. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  156. package/dist/cjs/kol-toast-container.entry.cjs.js.map +1 -1
  157. package/dist/cjs/kol-toolbar.cjs.entry.js +1 -1
  158. package/dist/cjs/kol-toolbar.entry.cjs.js.map +1 -1
  159. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +1 -1
  160. package/dist/cjs/kol-tree-item-wc.cjs.entry.js +1 -1
  161. package/dist/cjs/kol-tree-item-wc.entry.cjs.js.map +1 -1
  162. package/dist/cjs/kol-tree-item.cjs.entry.js +1 -1
  163. package/dist/cjs/kol-tree-item.entry.cjs.js.map +1 -1
  164. package/dist/cjs/kol-tree-wc.cjs.entry.js +1 -1
  165. package/dist/cjs/kol-tree.cjs.entry.js +1 -1
  166. package/dist/cjs/kol-tree.entry.cjs.js.map +1 -1
  167. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  168. package/dist/cjs/kol-version.entry.cjs.js.map +1 -1
  169. package/dist/cjs/kolibri.cjs.js +1 -1
  170. package/dist/cjs/loader.cjs.js +1 -1
  171. package/dist/cjs/test-component.cjs.entry.js +1 -1
  172. package/dist/components/kol-abbr.js +1 -1
  173. package/dist/components/kol-abbr.js.map +1 -1
  174. package/dist/components/kol-accordion.js +1 -1
  175. package/dist/components/kol-accordion.js.map +1 -1
  176. package/dist/components/kol-alert-wc.js +1 -1
  177. package/dist/components/kol-alert-wc.js.map +1 -1
  178. package/dist/components/kol-alert.js +1 -1
  179. package/dist/components/kol-alert.js.map +1 -1
  180. package/dist/components/kol-avatar.js +1 -1
  181. package/dist/components/kol-avatar.js.map +1 -1
  182. package/dist/components/kol-badge.js +1 -1
  183. package/dist/components/kol-badge.js.map +1 -1
  184. package/dist/components/kol-breadcrumb.js +1 -1
  185. package/dist/components/kol-breadcrumb.js.map +1 -1
  186. package/dist/components/kol-button-link.js +1 -1
  187. package/dist/components/kol-button-link.js.map +1 -1
  188. package/dist/components/kol-button-wc.js +1 -1
  189. package/dist/components/kol-button-wc.js.map +1 -1
  190. package/dist/components/kol-button.js +1 -1
  191. package/dist/components/kol-button.js.map +1 -1
  192. package/dist/components/kol-card-wc.js +1 -1
  193. package/dist/components/kol-card-wc.js.map +1 -1
  194. package/dist/components/kol-card.js +1 -1
  195. package/dist/components/kol-card.js.map +1 -1
  196. package/dist/components/kol-click-button.js +1 -1
  197. package/dist/components/kol-click-button.js.map +1 -1
  198. package/dist/components/kol-combobox.js +1 -1
  199. package/dist/components/kol-combobox.js.map +1 -1
  200. package/dist/components/kol-details.js +1 -1
  201. package/dist/components/kol-details.js.map +1 -1
  202. package/dist/components/kol-dialog.js +1 -1
  203. package/dist/components/kol-dialog.js.map +1 -1
  204. package/dist/components/kol-drawer.js +1 -1
  205. package/dist/components/kol-drawer.js.map +1 -1
  206. package/dist/components/kol-form.js +1 -1
  207. package/dist/components/kol-form.js.map +1 -1
  208. package/dist/components/kol-heading.js +1 -1
  209. package/dist/components/kol-heading.js.map +1 -1
  210. package/dist/components/kol-icon.js +1 -1
  211. package/dist/components/kol-icon.js.map +1 -1
  212. package/dist/components/kol-image.js +1 -1
  213. package/dist/components/kol-image.js.map +1 -1
  214. package/dist/components/kol-input-checkbox.js +1 -1
  215. package/dist/components/kol-input-checkbox.js.map +1 -1
  216. package/dist/components/kol-input-color.js +1 -1
  217. package/dist/components/kol-input-color.js.map +1 -1
  218. package/dist/components/kol-input-date.js +1 -1
  219. package/dist/components/kol-input-date.js.map +1 -1
  220. package/dist/components/kol-input-email.js +1 -1
  221. package/dist/components/kol-input-email.js.map +1 -1
  222. package/dist/components/kol-input-file.js +1 -1
  223. package/dist/components/kol-input-file.js.map +1 -1
  224. package/dist/components/kol-input-number.js +1 -1
  225. package/dist/components/kol-input-number.js.map +1 -1
  226. package/dist/components/kol-input-password.js +1 -1
  227. package/dist/components/kol-input-password.js.map +1 -1
  228. package/dist/components/kol-input-radio.js +1 -1
  229. package/dist/components/kol-input-radio.js.map +1 -1
  230. package/dist/components/kol-input-range.js +1 -1
  231. package/dist/components/kol-input-range.js.map +1 -1
  232. package/dist/components/kol-input-text.js +1 -1
  233. package/dist/components/kol-input-text.js.map +1 -1
  234. package/dist/components/kol-kolibri.js.map +1 -1
  235. package/dist/components/kol-link-button.js +1 -1
  236. package/dist/components/kol-link-button.js.map +1 -1
  237. package/dist/components/kol-link.js +1 -1
  238. package/dist/components/kol-link.js.map +1 -1
  239. package/dist/components/kol-modal.js +1 -1
  240. package/dist/components/kol-modal.js.map +1 -1
  241. package/dist/components/kol-nav.js +1 -1
  242. package/dist/components/kol-nav.js.map +1 -1
  243. package/dist/components/kol-pagination-wc.js.map +1 -1
  244. package/dist/components/kol-pagination.js +1 -1
  245. package/dist/components/kol-pagination.js.map +1 -1
  246. package/dist/components/kol-popover-button-wc.js +1 -1
  247. package/dist/components/kol-popover-button-wc.js.map +1 -1
  248. package/dist/components/kol-popover-button.js +1 -1
  249. package/dist/components/kol-popover-button.js.map +1 -1
  250. package/dist/components/kol-progress.js +1 -1
  251. package/dist/components/kol-progress.js.map +1 -1
  252. package/dist/components/kol-quote.js +1 -1
  253. package/dist/components/kol-quote.js.map +1 -1
  254. package/dist/components/kol-select-wc.js +1 -1
  255. package/dist/components/kol-select-wc.js.map +1 -1
  256. package/dist/components/kol-select.js +1 -1
  257. package/dist/components/kol-select.js.map +1 -1
  258. package/dist/components/kol-single-select.js +1 -1
  259. package/dist/components/kol-single-select.js.map +1 -1
  260. package/dist/components/kol-skip-nav.js +1 -1
  261. package/dist/components/kol-skip-nav.js.map +1 -1
  262. package/dist/components/kol-spin.js +1 -1
  263. package/dist/components/kol-spin.js.map +1 -1
  264. package/dist/components/kol-split-button.js +1 -1
  265. package/dist/components/kol-split-button.js.map +1 -1
  266. package/dist/components/kol-table-stateful.js +1 -1
  267. package/dist/components/kol-table-stateful.js.map +1 -1
  268. package/dist/components/kol-table-stateless.js +1 -1
  269. package/dist/components/kol-table-stateless.js.map +1 -1
  270. package/dist/components/kol-tabs.js +1 -1
  271. package/dist/components/kol-tabs.js.map +1 -1
  272. package/dist/components/kol-textarea.js +1 -1
  273. package/dist/components/kol-textarea.js.map +1 -1
  274. package/dist/components/kol-toast-container.js +1 -1
  275. package/dist/components/kol-toast-container.js.map +1 -1
  276. package/dist/components/kol-toolbar.js +1 -1
  277. package/dist/components/kol-toolbar.js.map +1 -1
  278. package/dist/components/kol-tree-item-wc.js +1 -1
  279. package/dist/components/kol-tree-item-wc.js.map +1 -1
  280. package/dist/components/kol-tree-item.js +1 -1
  281. package/dist/components/kol-tree-item.js.map +1 -1
  282. package/dist/components/kol-tree.js.map +1 -1
  283. package/dist/components/kol-version.js.map +1 -1
  284. package/dist/esm/{Alert-Cw_LoKSN.js → Alert-SEfIw75e.js} +1 -1
  285. package/dist/esm/{Alert-Cw_LoKSN.js.map → Alert-SEfIw75e.js.map} +1 -1
  286. package/dist/esm/{Collapsible-DZA8yQbA.js → Collapsible-BJmhBOFS.js} +1 -1
  287. package/dist/esm/{Collapsible-DZA8yQbA.js.map → Collapsible-BJmhBOFS.js.map} +1 -1
  288. package/dist/esm/{CustomSuggestionsOptionsGroup-B7qeS4jH.js → CustomSuggestionsOptionsGroup-BLcy0M21.js} +1 -1
  289. package/dist/{kolibri/CustomSuggestionsOptionsGroup-B7qeS4jH.js.map → esm/CustomSuggestionsOptionsGroup-BLcy0M21.js.map} +1 -1
  290. package/dist/esm/{FieldControlStateWrapper-B3IEsGo5.js → FieldControlStateWrapper-BB5w_l7S.js} +1 -1
  291. package/dist/{kolibri/FieldControlStateWrapper-B3IEsGo5.js.map → esm/FieldControlStateWrapper-BB5w_l7S.js.map} +1 -1
  292. package/dist/esm/{FormFieldStateWrapper-D1JTt3ul.js → FormFieldStateWrapper-CgJ3zrOg.js} +1 -1
  293. package/dist/{kolibri/FormFieldStateWrapper-D1JTt3ul.js.map → esm/FormFieldStateWrapper-CgJ3zrOg.js.map} +1 -1
  294. package/dist/esm/{Heading-CMmrUlbQ.js → Heading-CC-ueMZ4.js} +1 -1
  295. package/dist/{kolibri/Heading-CMmrUlbQ.js.map → esm/Heading-CC-ueMZ4.js.map} +1 -1
  296. package/dist/esm/{Input-BtjxL296.js → Input-DITvkoGT.js} +1 -1
  297. package/dist/esm/{Input-BtjxL296.js.map → Input-DITvkoGT.js.map} +1 -1
  298. package/dist/esm/{InputStateWrapper-CEMRSPYO.js → InputStateWrapper-DnMUPWkd.js} +1 -1
  299. package/dist/{kolibri/InputStateWrapper-CEMRSPYO.js.map → esm/InputStateWrapper-DnMUPWkd.js.map} +1 -1
  300. package/dist/esm/{app-globals-MFFawMzD.js → app-globals-BZVRuPmn.js} +1 -1
  301. package/dist/esm/{app-globals-MFFawMzD.js.map → app-globals-BZVRuPmn.js.map} +1 -1
  302. package/dist/esm/component-CraT9mqx.js +4 -0
  303. package/dist/esm/{component-BssZbWQw.js.map → component-CraT9mqx.js.map} +1 -1
  304. package/dist/esm/{component-Dy6q6xwI.js → component-Hu7IB74c.js} +1 -1
  305. package/dist/esm/{component-Dy6q6xwI.js.map → component-Hu7IB74c.js.map} +1 -1
  306. package/dist/esm/{controller-Dcr8l6pm.js → controller-BycnRnHB.js} +1 -1
  307. package/dist/esm/{controller-Dcr8l6pm.js.map → controller-BycnRnHB.js.map} +1 -1
  308. package/dist/esm/{controller-Bdpk05ma.js → controller-D-JlwVeq.js} +1 -1
  309. package/dist/{kolibri/controller-Bdpk05ma.js.map → esm/controller-D-JlwVeq.js.map} +1 -1
  310. package/dist/esm/{controller-D9pydrRe.js → controller-_xUb5o7B.js} +1 -1
  311. package/dist/{kolibri/controller-D9pydrRe.js.map → esm/controller-_xUb5o7B.js.map} +1 -1
  312. package/dist/esm/{controller-icon-BGyWFin_.js → controller-icon-CtBWDrG3.js} +1 -1
  313. package/dist/esm/{controller-icon-BGyWFin_.js.map → controller-icon-CtBWDrG3.js.map} +1 -1
  314. package/dist/esm/{controller-bc3Jqv9j.js → controller-nDa_fsDo.js} +1 -1
  315. package/dist/esm/{controller-bc3Jqv9j.js.map → controller-nDa_fsDo.js.map} +1 -1
  316. package/dist/esm/{dev.utils-9aA-dFCs.js → dev.utils-_tIxkFEq.js} +1 -1
  317. package/dist/esm/{dev.utils-9aA-dFCs.js.map → dev.utils-_tIxkFEq.js.map} +1 -1
  318. package/dist/esm/{devtools-Cak1VbpQ.js → devtools-Shxsg0kz.js} +1 -1
  319. package/dist/{kolibri/devtools-Cak1VbpQ.js.map → esm/devtools-Shxsg0kz.js.map} +1 -1
  320. package/dist/esm/{index-Cgf1FZ14.js → index-C-7ueFeG.js} +1 -1
  321. package/dist/{kolibri/index-Cgf1FZ14.js.map → esm/index-C-7ueFeG.js.map} +1 -1
  322. package/dist/esm/kol-abbr.entry.js +1 -1
  323. package/dist/esm/kol-abbr.entry.js.map +1 -1
  324. package/dist/esm/kol-accordion.entry.js +1 -1
  325. package/dist/esm/kol-accordion.entry.js.map +1 -1
  326. package/dist/esm/kol-alert-wc.entry.js +1 -1
  327. package/dist/esm/kol-alert-wc.entry.js.map +1 -1
  328. package/dist/esm/kol-alert.entry.js +1 -1
  329. package/dist/esm/kol-alert.entry.js.map +1 -1
  330. package/dist/esm/kol-avatar.entry.js +1 -1
  331. package/dist/esm/kol-avatar.entry.js.map +1 -1
  332. package/dist/esm/kol-badge.entry.js +1 -1
  333. package/dist/esm/kol-badge.entry.js.map +1 -1
  334. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  335. package/dist/esm/kol-breadcrumb.entry.js.map +1 -1
  336. package/dist/esm/kol-button-link.entry.js +1 -1
  337. package/dist/esm/kol-button-link.entry.js.map +1 -1
  338. package/dist/esm/kol-button-wc.entry.js +1 -1
  339. package/dist/esm/kol-button-wc.entry.js.map +1 -1
  340. package/dist/esm/kol-button.entry.js +1 -1
  341. package/dist/esm/kol-button.entry.js.map +1 -1
  342. package/dist/esm/kol-card-wc.entry.js +1 -1
  343. package/dist/esm/kol-card-wc.entry.js.map +1 -1
  344. package/dist/esm/kol-card.entry.js +1 -1
  345. package/dist/esm/kol-card.entry.js.map +1 -1
  346. package/dist/esm/kol-click-button.entry.js +1 -1
  347. package/dist/esm/kol-click-button.entry.js.map +1 -1
  348. package/dist/esm/kol-combobox.entry.js +1 -1
  349. package/dist/esm/kol-combobox.entry.js.map +1 -1
  350. package/dist/esm/kol-details.entry.js +1 -1
  351. package/dist/esm/kol-details.entry.js.map +1 -1
  352. package/dist/esm/kol-dialog-wc.entry.js +1 -1
  353. package/dist/esm/kol-dialog.entry.js +1 -1
  354. package/dist/esm/kol-dialog.entry.js.map +1 -1
  355. package/dist/esm/kol-drawer.entry.js +1 -1
  356. package/dist/esm/kol-drawer.entry.js.map +1 -1
  357. package/dist/esm/kol-form.entry.js +1 -1
  358. package/dist/esm/kol-form.entry.js.map +1 -1
  359. package/dist/esm/kol-heading.entry.js +1 -1
  360. package/dist/esm/kol-heading.entry.js.map +1 -1
  361. package/dist/esm/kol-icon.entry.js +1 -1
  362. package/dist/esm/kol-icon.entry.js.map +1 -1
  363. package/dist/esm/kol-image.entry.js +1 -1
  364. package/dist/esm/kol-image.entry.js.map +1 -1
  365. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  366. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  367. package/dist/esm/kol-input-color.entry.js +1 -1
  368. package/dist/esm/kol-input-color.entry.js.map +1 -1
  369. package/dist/esm/kol-input-date.entry.js +1 -1
  370. package/dist/esm/kol-input-date.entry.js.map +1 -1
  371. package/dist/esm/kol-input-email.entry.js +1 -1
  372. package/dist/esm/kol-input-email.entry.js.map +1 -1
  373. package/dist/esm/kol-input-file.entry.js +1 -1
  374. package/dist/esm/kol-input-file.entry.js.map +1 -1
  375. package/dist/esm/kol-input-number.entry.js +1 -1
  376. package/dist/esm/kol-input-number.entry.js.map +1 -1
  377. package/dist/esm/kol-input-password.entry.js +1 -1
  378. package/dist/esm/kol-input-password.entry.js.map +1 -1
  379. package/dist/esm/kol-input-radio.entry.js +1 -1
  380. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  381. package/dist/esm/kol-input-range.entry.js +1 -1
  382. package/dist/esm/kol-input-range.entry.js.map +1 -1
  383. package/dist/esm/kol-input-text.entry.js +1 -1
  384. package/dist/esm/kol-input-text.entry.js.map +1 -1
  385. package/dist/esm/kol-kolibri.entry.js +1 -1
  386. package/dist/esm/kol-kolibri.entry.js.map +1 -1
  387. package/dist/esm/kol-link-button.entry.js +1 -1
  388. package/dist/esm/kol-link-button.entry.js.map +1 -1
  389. package/dist/esm/kol-link-wc.entry.js +1 -1
  390. package/dist/esm/kol-link.entry.js +1 -1
  391. package/dist/esm/kol-link.entry.js.map +1 -1
  392. package/dist/esm/kol-modal.entry.js +1 -1
  393. package/dist/esm/kol-modal.entry.js.map +1 -1
  394. package/dist/esm/kol-nav.entry.js +1 -1
  395. package/dist/esm/kol-nav.entry.js.map +1 -1
  396. package/dist/esm/kol-pagination-wc.entry.js +1 -1
  397. package/dist/esm/kol-pagination-wc.entry.js.map +1 -1
  398. package/dist/esm/kol-pagination.entry.js +1 -1
  399. package/dist/esm/kol-pagination.entry.js.map +1 -1
  400. package/dist/esm/kol-popover-button-wc.entry.js +1 -1
  401. package/dist/esm/kol-popover-button-wc.entry.js.map +1 -1
  402. package/dist/esm/kol-popover-button.entry.js +1 -1
  403. package/dist/esm/kol-popover-button.entry.js.map +1 -1
  404. package/dist/esm/kol-popover-wc.entry.js +1 -1
  405. package/dist/esm/kol-progress.entry.js +1 -1
  406. package/dist/esm/kol-progress.entry.js.map +1 -1
  407. package/dist/esm/kol-quote.entry.js +1 -1
  408. package/dist/esm/kol-quote.entry.js.map +1 -1
  409. package/dist/esm/kol-select-wc.entry.js +1 -1
  410. package/dist/esm/kol-select-wc.entry.js.map +1 -1
  411. package/dist/esm/kol-select.entry.js +1 -1
  412. package/dist/esm/kol-select.entry.js.map +1 -1
  413. package/dist/esm/kol-single-select.entry.js +1 -1
  414. package/dist/esm/kol-single-select.entry.js.map +1 -1
  415. package/dist/esm/kol-skeleton.entry.js +1 -1
  416. package/dist/esm/kol-skip-nav.entry.js +1 -1
  417. package/dist/esm/kol-skip-nav.entry.js.map +1 -1
  418. package/dist/esm/kol-spin.entry.js +1 -1
  419. package/dist/esm/kol-spin.entry.js.map +1 -1
  420. package/dist/esm/kol-split-button.entry.js +1 -1
  421. package/dist/esm/kol-split-button.entry.js.map +1 -1
  422. package/dist/esm/kol-table-settings-wc.entry.js +1 -1
  423. package/dist/esm/kol-table-stateful.entry.js +1 -1
  424. package/dist/esm/kol-table-stateful.entry.js.map +1 -1
  425. package/dist/esm/kol-table-stateless-wc.entry.js +1 -1
  426. package/dist/esm/kol-table-stateless.entry.js +1 -1
  427. package/dist/esm/kol-table-stateless.entry.js.map +1 -1
  428. package/dist/esm/kol-tabs.entry.js +1 -1
  429. package/dist/esm/kol-tabs.entry.js.map +1 -1
  430. package/dist/esm/kol-textarea.entry.js +1 -1
  431. package/dist/esm/kol-textarea.entry.js.map +1 -1
  432. package/dist/esm/kol-toast-container.entry.js +1 -1
  433. package/dist/esm/kol-toast-container.entry.js.map +1 -1
  434. package/dist/esm/kol-toolbar.entry.js +1 -1
  435. package/dist/esm/kol-toolbar.entry.js.map +1 -1
  436. package/dist/esm/kol-tooltip-wc.entry.js +1 -1
  437. package/dist/esm/kol-tree-item-wc.entry.js +1 -1
  438. package/dist/esm/kol-tree-item-wc.entry.js.map +1 -1
  439. package/dist/esm/kol-tree-item.entry.js +1 -1
  440. package/dist/esm/kol-tree-item.entry.js.map +1 -1
  441. package/dist/esm/kol-tree-wc.entry.js +1 -1
  442. package/dist/esm/kol-tree.entry.js +1 -1
  443. package/dist/esm/kol-tree.entry.js.map +1 -1
  444. package/dist/esm/kol-version.entry.js +1 -1
  445. package/dist/esm/kol-version.entry.js.map +1 -1
  446. package/dist/esm/kolibri.js +1 -1
  447. package/dist/esm/loader.js +1 -1
  448. package/dist/esm/test-component.entry.js +1 -1
  449. package/dist/kolibri/Alert-SEfIw75e.js +4 -0
  450. package/dist/kolibri/{Alert-Cw_LoKSN.js.map → Alert-SEfIw75e.js.map} +1 -1
  451. package/dist/kolibri/{Collapsible-DZA8yQbA.js → Collapsible-BJmhBOFS.js} +1 -1
  452. package/dist/kolibri/{Collapsible-DZA8yQbA.js.map → Collapsible-BJmhBOFS.js.map} +1 -1
  453. package/dist/kolibri/CustomSuggestionsOptionsGroup-BLcy0M21.js +4 -0
  454. package/dist/{esm/CustomSuggestionsOptionsGroup-B7qeS4jH.js.map → kolibri/CustomSuggestionsOptionsGroup-BLcy0M21.js.map} +1 -1
  455. package/dist/kolibri/FieldControlStateWrapper-BB5w_l7S.js +4 -0
  456. package/dist/{esm/FieldControlStateWrapper-B3IEsGo5.js.map → kolibri/FieldControlStateWrapper-BB5w_l7S.js.map} +1 -1
  457. package/dist/kolibri/{FormFieldStateWrapper-D1JTt3ul.js → FormFieldStateWrapper-CgJ3zrOg.js} +1 -1
  458. package/dist/{esm/FormFieldStateWrapper-D1JTt3ul.js.map → kolibri/FormFieldStateWrapper-CgJ3zrOg.js.map} +1 -1
  459. package/dist/kolibri/{Heading-CMmrUlbQ.js → Heading-CC-ueMZ4.js} +1 -1
  460. package/dist/{esm/Heading-CMmrUlbQ.js.map → kolibri/Heading-CC-ueMZ4.js.map} +1 -1
  461. package/dist/kolibri/{Input-BtjxL296.js → Input-DITvkoGT.js} +1 -1
  462. package/dist/kolibri/{Input-BtjxL296.js.map → Input-DITvkoGT.js.map} +1 -1
  463. package/dist/kolibri/InputStateWrapper-DnMUPWkd.js +4 -0
  464. package/dist/{esm/InputStateWrapper-CEMRSPYO.js.map → kolibri/InputStateWrapper-DnMUPWkd.js.map} +1 -1
  465. package/dist/kolibri/app-globals-BZVRuPmn.js +4 -0
  466. package/dist/kolibri/{app-globals-MFFawMzD.js.map → app-globals-BZVRuPmn.js.map} +1 -1
  467. package/dist/kolibri/component-CraT9mqx.js +4 -0
  468. package/dist/kolibri/{component-BssZbWQw.js.map → component-CraT9mqx.js.map} +1 -1
  469. package/dist/kolibri/{component-Dy6q6xwI.js → component-Hu7IB74c.js} +1 -1
  470. package/dist/kolibri/{component-Dy6q6xwI.js.map → component-Hu7IB74c.js.map} +1 -1
  471. package/dist/kolibri/{controller-Dcr8l6pm.js → controller-BycnRnHB.js} +1 -1
  472. package/dist/kolibri/{controller-Dcr8l6pm.js.map → controller-BycnRnHB.js.map} +1 -1
  473. package/dist/kolibri/{controller-Bdpk05ma.js → controller-D-JlwVeq.js} +1 -1
  474. package/dist/{esm/controller-Bdpk05ma.js.map → kolibri/controller-D-JlwVeq.js.map} +1 -1
  475. package/dist/kolibri/{controller-D9pydrRe.js → controller-_xUb5o7B.js} +1 -1
  476. package/dist/{esm/controller-D9pydrRe.js.map → kolibri/controller-_xUb5o7B.js.map} +1 -1
  477. package/dist/kolibri/{controller-icon-BGyWFin_.js → controller-icon-CtBWDrG3.js} +1 -1
  478. package/dist/kolibri/{controller-icon-BGyWFin_.js.map → controller-icon-CtBWDrG3.js.map} +1 -1
  479. package/dist/kolibri/{controller-bc3Jqv9j.js → controller-nDa_fsDo.js} +1 -1
  480. package/dist/kolibri/{controller-bc3Jqv9j.js.map → controller-nDa_fsDo.js.map} +1 -1
  481. package/dist/kolibri/{dev.utils-9aA-dFCs.js → dev.utils-_tIxkFEq.js} +1 -1
  482. package/dist/kolibri/{dev.utils-9aA-dFCs.js.map → dev.utils-_tIxkFEq.js.map} +1 -1
  483. package/dist/kolibri/{devtools-Cak1VbpQ.js → devtools-Shxsg0kz.js} +1 -1
  484. package/dist/{esm/devtools-Cak1VbpQ.js.map → kolibri/devtools-Shxsg0kz.js.map} +1 -1
  485. package/dist/kolibri/{index-Cgf1FZ14.js → index-C-7ueFeG.js} +1 -1
  486. package/dist/{esm/index-Cgf1FZ14.js.map → kolibri/index-C-7ueFeG.js.map} +1 -1
  487. package/dist/kolibri/kol-abbr.entry.esm.js.map +1 -1
  488. package/dist/kolibri/kol-abbr.entry.js +1 -1
  489. package/dist/kolibri/kol-accordion.entry.esm.js.map +1 -1
  490. package/dist/kolibri/kol-accordion.entry.js +1 -1
  491. package/dist/kolibri/kol-accordion.entry.js.map +1 -1
  492. package/dist/kolibri/kol-alert-wc.entry.esm.js.map +1 -1
  493. package/dist/kolibri/kol-alert-wc.entry.js +1 -1
  494. package/dist/kolibri/kol-alert.entry.esm.js.map +1 -1
  495. package/dist/kolibri/kol-alert.entry.js +1 -1
  496. package/dist/kolibri/kol-avatar.entry.esm.js.map +1 -1
  497. package/dist/kolibri/kol-avatar.entry.js +1 -1
  498. package/dist/kolibri/kol-badge.entry.esm.js.map +1 -1
  499. package/dist/kolibri/kol-badge.entry.js +1 -1
  500. package/dist/kolibri/kol-breadcrumb.entry.esm.js.map +1 -1
  501. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  502. package/dist/kolibri/kol-button-link.entry.esm.js.map +1 -1
  503. package/dist/kolibri/kol-button-link.entry.js +1 -1
  504. package/dist/kolibri/kol-button-wc.entry.esm.js.map +1 -1
  505. package/dist/kolibri/kol-button-wc.entry.js +1 -1
  506. package/dist/kolibri/kol-button-wc.entry.js.map +1 -1
  507. package/dist/kolibri/kol-button.entry.esm.js.map +1 -1
  508. package/dist/kolibri/kol-button.entry.js +1 -1
  509. package/dist/kolibri/kol-card-wc.entry.esm.js.map +1 -1
  510. package/dist/kolibri/kol-card-wc.entry.js +1 -1
  511. package/dist/kolibri/kol-card.entry.esm.js.map +1 -1
  512. package/dist/kolibri/kol-card.entry.js +1 -1
  513. package/dist/kolibri/kol-click-button.entry.esm.js.map +1 -1
  514. package/dist/kolibri/kol-click-button.entry.js +1 -1
  515. package/dist/kolibri/kol-combobox.entry.esm.js.map +1 -1
  516. package/dist/kolibri/kol-combobox.entry.js +1 -1
  517. package/dist/kolibri/kol-combobox.entry.js.map +1 -1
  518. package/dist/kolibri/kol-details.entry.esm.js.map +1 -1
  519. package/dist/kolibri/kol-details.entry.js +1 -1
  520. package/dist/kolibri/kol-details.entry.js.map +1 -1
  521. package/dist/kolibri/kol-dialog-wc.entry.js +1 -1
  522. package/dist/kolibri/kol-dialog.entry.esm.js.map +1 -1
  523. package/dist/kolibri/kol-dialog.entry.js +1 -1
  524. package/dist/kolibri/kol-drawer.entry.esm.js.map +1 -1
  525. package/dist/kolibri/kol-drawer.entry.js +1 -1
  526. package/dist/kolibri/kol-form.entry.esm.js.map +1 -1
  527. package/dist/kolibri/kol-form.entry.js +1 -1
  528. package/dist/kolibri/kol-heading.entry.esm.js.map +1 -1
  529. package/dist/kolibri/kol-heading.entry.js +1 -1
  530. package/dist/kolibri/kol-icon.entry.esm.js.map +1 -1
  531. package/dist/kolibri/kol-icon.entry.js +1 -1
  532. package/dist/kolibri/kol-image.entry.esm.js.map +1 -1
  533. package/dist/kolibri/kol-image.entry.js +1 -1
  534. package/dist/kolibri/kol-input-checkbox.entry.esm.js.map +1 -1
  535. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  536. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  537. package/dist/kolibri/kol-input-color.entry.esm.js.map +1 -1
  538. package/dist/kolibri/kol-input-color.entry.js +1 -1
  539. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  540. package/dist/kolibri/kol-input-date.entry.esm.js.map +1 -1
  541. package/dist/kolibri/kol-input-date.entry.js +1 -1
  542. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  543. package/dist/kolibri/kol-input-email.entry.esm.js.map +1 -1
  544. package/dist/kolibri/kol-input-email.entry.js +1 -1
  545. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  546. package/dist/kolibri/kol-input-file.entry.esm.js.map +1 -1
  547. package/dist/kolibri/kol-input-file.entry.js +1 -1
  548. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  549. package/dist/kolibri/kol-input-number.entry.esm.js.map +1 -1
  550. package/dist/kolibri/kol-input-number.entry.js +1 -1
  551. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  552. package/dist/kolibri/kol-input-password.entry.esm.js.map +1 -1
  553. package/dist/kolibri/kol-input-password.entry.js +1 -1
  554. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  555. package/dist/kolibri/kol-input-radio.entry.esm.js.map +1 -1
  556. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  557. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  558. package/dist/kolibri/kol-input-range.entry.esm.js.map +1 -1
  559. package/dist/kolibri/kol-input-range.entry.js +1 -1
  560. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  561. package/dist/kolibri/kol-input-text.entry.esm.js.map +1 -1
  562. package/dist/kolibri/kol-input-text.entry.js +1 -1
  563. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  564. package/dist/kolibri/kol-kolibri.entry.esm.js.map +1 -1
  565. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  566. package/dist/kolibri/kol-link-button.entry.esm.js.map +1 -1
  567. package/dist/kolibri/kol-link-button.entry.js +1 -1
  568. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  569. package/dist/kolibri/kol-link.entry.esm.js.map +1 -1
  570. package/dist/kolibri/kol-link.entry.js +1 -1
  571. package/dist/kolibri/kol-modal.entry.esm.js.map +1 -1
  572. package/dist/kolibri/kol-modal.entry.js +1 -1
  573. package/dist/kolibri/kol-nav.entry.esm.js.map +1 -1
  574. package/dist/kolibri/kol-nav.entry.js +1 -1
  575. package/dist/kolibri/kol-pagination-wc.entry.esm.js.map +1 -1
  576. package/dist/kolibri/kol-pagination-wc.entry.js +1 -1
  577. package/dist/kolibri/kol-pagination.entry.esm.js.map +1 -1
  578. package/dist/kolibri/kol-pagination.entry.js +1 -1
  579. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  580. package/dist/kolibri/kol-popover-button-wc.entry.esm.js.map +1 -1
  581. package/dist/kolibri/kol-popover-button-wc.entry.js +1 -1
  582. package/dist/kolibri/kol-popover-button-wc.entry.js.map +1 -1
  583. package/dist/kolibri/kol-popover-button.entry.esm.js.map +1 -1
  584. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  585. package/dist/kolibri/kol-popover-wc.entry.js +1 -1
  586. package/dist/kolibri/kol-progress.entry.esm.js.map +1 -1
  587. package/dist/kolibri/kol-progress.entry.js +1 -1
  588. package/dist/kolibri/kol-progress.entry.js.map +1 -1
  589. package/dist/kolibri/kol-quote.entry.esm.js.map +1 -1
  590. package/dist/kolibri/kol-quote.entry.js +1 -1
  591. package/dist/kolibri/kol-select-wc.entry.esm.js.map +1 -1
  592. package/dist/kolibri/kol-select-wc.entry.js +1 -1
  593. package/dist/kolibri/kol-select.entry.esm.js.map +1 -1
  594. package/dist/kolibri/kol-select.entry.js +1 -1
  595. package/dist/kolibri/kol-select.entry.js.map +1 -1
  596. package/dist/kolibri/kol-single-select.entry.esm.js.map +1 -1
  597. package/dist/kolibri/kol-single-select.entry.js +1 -1
  598. package/dist/kolibri/kol-single-select.entry.js.map +1 -1
  599. package/dist/kolibri/kol-skeleton.entry.js +1 -1
  600. package/dist/kolibri/kol-skip-nav.entry.esm.js.map +1 -1
  601. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  602. package/dist/kolibri/kol-spin.entry.esm.js.map +1 -1
  603. package/dist/kolibri/kol-spin.entry.js +1 -1
  604. package/dist/kolibri/kol-split-button.entry.esm.js.map +1 -1
  605. package/dist/kolibri/kol-split-button.entry.js +1 -1
  606. package/dist/kolibri/kol-table-settings-wc.entry.js +1 -1
  607. package/dist/kolibri/kol-table-stateful.entry.esm.js.map +1 -1
  608. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  609. package/dist/kolibri/kol-table-stateful.entry.js.map +1 -1
  610. package/dist/kolibri/kol-table-stateless-wc.entry.js +1 -1
  611. package/dist/kolibri/kol-table-stateless.entry.esm.js.map +1 -1
  612. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  613. package/dist/kolibri/kol-tabs.entry.esm.js.map +1 -1
  614. package/dist/kolibri/kol-tabs.entry.js +1 -1
  615. package/dist/kolibri/kol-textarea.entry.esm.js.map +1 -1
  616. package/dist/kolibri/kol-textarea.entry.js +1 -1
  617. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  618. package/dist/kolibri/kol-toast-container.entry.esm.js.map +1 -1
  619. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  620. package/dist/kolibri/kol-toolbar.entry.esm.js.map +1 -1
  621. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  622. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  623. package/dist/kolibri/kol-tree-item-wc.entry.esm.js.map +1 -1
  624. package/dist/kolibri/kol-tree-item-wc.entry.js +1 -1
  625. package/dist/kolibri/kol-tree-item.entry.esm.js.map +1 -1
  626. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  627. package/dist/kolibri/kol-tree-wc.entry.js +1 -1
  628. package/dist/kolibri/kol-tree.entry.esm.js.map +1 -1
  629. package/dist/kolibri/kol-tree.entry.js +1 -1
  630. package/dist/kolibri/kol-version.entry.esm.js.map +1 -1
  631. package/dist/kolibri/kol-version.entry.js +1 -1
  632. package/dist/kolibri/kolibri.esm.js +1 -1
  633. package/dist/kolibri/test-component.entry.js +1 -1
  634. package/dist/types/components.d.ts +488 -0
  635. package/dist/types/index.d.ts +1 -1
  636. package/doc/_skeleton.md +54 -84
  637. package/doc/abbr.md +5 -0
  638. package/doc/accordion.md +9 -3
  639. package/doc/alert.md +7 -3
  640. package/doc/avatar.md +4 -0
  641. package/doc/badge.md +5 -0
  642. package/doc/breadcrumb.md +4 -0
  643. package/doc/button-link.md +19 -0
  644. package/doc/button.md +11 -0
  645. package/doc/card.md +12 -4
  646. package/doc/combobox.md +3 -3
  647. package/doc/details.md +13 -3
  648. package/doc/form.md +7 -3
  649. package/doc/heading.md +7 -3
  650. package/doc/icon.md +4 -0
  651. package/doc/image.md +4 -0
  652. package/doc/input-checkbox.md +4 -0
  653. package/doc/input-color.md +7 -3
  654. package/doc/input-date.md +7 -3
  655. package/doc/input-email.md +7 -3
  656. package/doc/input-file.md +7 -3
  657. package/doc/input-number.md +7 -3
  658. package/doc/input-password.md +7 -3
  659. package/doc/input-radio.md +7 -3
  660. package/doc/input-range.md +7 -3
  661. package/doc/input-text.md +7 -3
  662. package/doc/link-button.md +11 -0
  663. package/doc/modal.md +4 -0
  664. package/doc/nav.md +5 -0
  665. package/doc/pagination.md +1 -1
  666. package/doc/popover-button.md +5 -5
  667. package/doc/progress.md +4 -0
  668. package/doc/quote.md +4 -0
  669. package/doc/select.md +11 -11
  670. package/doc/single-select.md +7 -3
  671. package/doc/skip-nav.md +4 -0
  672. package/doc/spin.md +11 -0
  673. package/doc/split-button.md +8 -3
  674. package/doc/table-stateful.md +4 -0
  675. package/doc/tabs.md +4 -0
  676. package/doc/textarea.md +7 -3
  677. package/doc/tree-item.md +7 -7
  678. package/package.json +8 -7
  679. package/vscode-custom-data.json +36 -407
  680. package/dist/esm/component-BssZbWQw.js +0 -4
  681. package/dist/kolibri/Alert-Cw_LoKSN.js +0 -4
  682. package/dist/kolibri/CustomSuggestionsOptionsGroup-B7qeS4jH.js +0 -4
  683. package/dist/kolibri/FieldControlStateWrapper-B3IEsGo5.js +0 -4
  684. package/dist/kolibri/InputStateWrapper-CEMRSPYO.js +0 -4
  685. package/dist/kolibri/app-globals-MFFawMzD.js +0 -4
  686. package/dist/kolibri/component-BssZbWQw.js +0 -4
  687. package/doc/click-button.md +0 -28
  688. package/doc/toaster.md +0 -45
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";var index=require("./index-BDC4d4pa.js"),tslib_es6=require("./tslib.es6-7DbU_BSw.js"),componentNames=require("./component-names--SvI3zRN.js"),i18n=require("./i18n-BWA16k5X.js"),component=require("./component-D-qiYnI6.js"),common=require("./common-BDQKBMeS.js"),tableSelection=require("./table-selection-AQ4G1V6h.js"),label=require("./label-CU8lZiLE.js"),keyboard=require("./keyboard-BfFtSnNy.js"),clsx=require("./clsx-Bm_HQUnh.js"),dev_utils=require("./dev.utils-Cd8lnY8W.js"),events=require("./events-Cd8febUV.js"),_Uint8Array=require("./_Uint8Array-H2CXBET6.js"),isArray=require("./isArray-BOIOdEQh.js");require("./i18n-yHKQt1gl.js"),require("./bem-registry-BD-sGSzk.js"),require("./isObject-CyNHuTNs.js");const validateTableHeaderCells=(e,t)=>{common.emptyStringByArrayHandler(t,()=>{common.objectObjectHandler(t,()=>{try{t=common.parseJson(t)}catch(e){}common.watchValidator(e,"_headerCells",e=>{var t,a;return"object"==typeof e&&null!==e&&(void 0===e.horizontal||Array.isArray(e.horizontal)&&void 0===e.horizontal.find(e=>!Array.isArray(e)))&&(void 0===e.vertical||Array.isArray(e.vertical)&&void 0===e.vertical.find(e=>!Array.isArray(e)))&&[...null!==(t=e.horizontal)&&void 0!==t?t:[],...null!==(a=e.vertical)&&void 0!==a?a:[]].flat().every(e=>void 0===e.width||"number"==typeof e.width)&&!0},new Set(["TableHeaderCellsPropType"]),t)})})};var HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd(e){return this.__data__.set(e,HASH_UNDEFINED),this}function setCacheHas(e){return this.__data__.has(e)}function SetCache(e){var t=-1,a=null==e?0:e.length;for(this.__data__=new _Uint8Array.MapCache;++t<a;)this.add(e[t])}function arraySome(e,t){for(var a=-1,i=null==e?0:e.length;++a<i;)if(t(e[a],a,e))return!0;return!1}function cacheHas(e,t){return e.has(t)}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd,SetCache.prototype.has=setCacheHas;var COMPARE_PARTIAL_FLAG$3=1,COMPARE_UNORDERED_FLAG$1=2;function equalArrays(e,t,a,i,l,r){var s=a&COMPARE_PARTIAL_FLAG$3,o=e.length,n=t.length;if(o!=n&&!(s&&n>o))return!1;var c=r.get(e),d=r.get(t);if(c&&d)return c==t&&d==e;var h=-1,b=!0,u=a&COMPARE_UNORDERED_FLAG$1?new SetCache:void 0;for(r.set(e,t),r.set(t,e);++h<o;){var v=e[h],_=t[h];if(i)var f=s?i(_,v,h,t,e,r):i(v,_,h,e,t,r);if(void 0!==f){if(f)continue;b=!1;break}if(u){if(!arraySome(t,function(e,t){if(!cacheHas(u,t)&&(v===e||l(v,e,a,i,r)))return u.push(t)})){b=!1;break}}else if(v!==_&&!l(v,_,a,i,r)){b=!1;break}}return r.delete(e),r.delete(t),b}function mapToArray(e){var t=-1,a=Array(e.size);return e.forEach(function(e,i){a[++t]=[i,e]}),a}function setToArray(e){var t=-1,a=Array(e.size);return e.forEach(function(e){a[++t]=e}),a}var COMPARE_PARTIAL_FLAG$2=1,COMPARE_UNORDERED_FLAG=2,boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",symbolProto=isArray.Symbol?isArray.Symbol.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag(e,t,a,i,l,r,s){switch(a){case dataViewTag:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case arrayBufferTag:return!(e.byteLength!=t.byteLength||!r(new _Uint8Array.Uint8Array(e),new _Uint8Array.Uint8Array(t)));case boolTag:case dateTag:case numberTag:return _Uint8Array.eq(+e,+t);case errorTag:return e.name==t.name&&e.message==t.message;case regexpTag:case stringTag:return e==t+"";case mapTag:var o=mapToArray;case setTag:var n=i&COMPARE_PARTIAL_FLAG$2;if(o||(o=setToArray),e.size!=t.size&&!n)return!1;var c=s.get(e);if(c)return c==t;i|=COMPARE_UNORDERED_FLAG,s.set(e,t);var d=equalArrays(o(e),o(t),i,l,r,s);return s.delete(e),d;case symbolTag:if(symbolValueOf)return symbolValueOf.call(e)==symbolValueOf.call(t)}return!1}var COMPARE_PARTIAL_FLAG$1=1,objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty;function equalObjects(e,t,a,i,l,r){var s=a&COMPARE_PARTIAL_FLAG$1,o=_Uint8Array.getAllKeys(e),n=o.length;if(n!=_Uint8Array.getAllKeys(t).length&&!s)return!1;for(var c=n;c--;){var d=o[c];if(!(s?d in t:hasOwnProperty$1.call(t,d)))return!1}var h=r.get(e),b=r.get(t);if(h&&b)return h==t&&b==e;var u=!0;r.set(e,t),r.set(t,e);for(var v=s;++c<n;){var _=e[d=o[c]],f=t[d];if(i)var y=s?i(f,_,d,t,e,r):i(_,f,d,e,t,r);if(!(void 0===y?_===f||l(_,f,a,i,r):y)){u=!1;break}v||(v="constructor"==d)}if(u&&!v){var g=e.constructor,p=t.constructor;g==p||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof p&&p instanceof p||(u=!1)}return r.delete(e),r.delete(t),u}var COMPARE_PARTIAL_FLAG=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty;function baseIsEqualDeep(e,t,a,i,l,r){var s=isArray.isArray(e),o=isArray.isArray(t),n=s?arrayTag:_Uint8Array.getTag(e),c=o?arrayTag:_Uint8Array.getTag(t),d=(n=n==argsTag?objectTag:n)==objectTag,h=(c=c==argsTag?objectTag:c)==objectTag,b=n==c;if(b&&_Uint8Array.isBuffer(e)){if(!_Uint8Array.isBuffer(t))return!1;s=!0,d=!1}if(b&&!d)return r||(r=new _Uint8Array.Stack),s||_Uint8Array.isTypedArray(e)?equalArrays(e,t,a,i,l,r):equalByTag(e,t,n,a,i,l,r);if(!(a&COMPARE_PARTIAL_FLAG)){var u=d&&hasOwnProperty.call(e,"__wrapped__"),v=h&&hasOwnProperty.call(t,"__wrapped__");if(u||v){var _=u?e.value():e,f=v?t.value():t;return r||(r=new _Uint8Array.Stack),l(_,f,a,i,r)}}return!!b&&(r||(r=new _Uint8Array.Stack),equalObjects(e,t,a,i,l,r))}function baseIsEqual(e,t,a,i,l){return e===t||(null==e||null==t||!isArray.isObjectLike(e)&&!isArray.isObjectLike(t)?e!=e&&t!=t:baseIsEqualDeep(e,t,a,i,baseIsEqual,l))}function isEqual(e,t){return baseIsEqual(e,t)}const RESIZE_DEBOUNCE_DELAY=150,KolTableStateless=class{constructor(e){index.registerInstance(this,e),this.translateNoEntries=i18n.translate("kol-no-entries"),this.state={_data:[],_headerCells:{horizontal:[],vertical:[]},_label:"",_hasSettingsMenu:!1},this.horizontal=!0,this.cellsToRenderTimeouts=new Map,this.dataToKeyMap=new Map,this.checkboxRefs=[],this.translateSort=i18n.translate("kol-sort"),this.translateSortOrder=i18n.translate("kol-table-sort-order"),this.maxCols=0,this.fixedOffsets=[],this.tableDivElementHasScrollbar=!1,this.stickyColsDisabled=!1,this.renderTableRow=(e,t,a,i=!1)=>{var l,r;let s=String(t);return this.horizontal&&(null===(l=e[0])||void 0===l?void 0:l.data)&&(s=null!==(r=this.getDataKey(e[0].data))&&void 0!==r?r:s),index.h("tr",{class:clsx.clsx("kol-table__row",{"kol-table__row--body":!i,"kol-table__row--footer":i}),key:`row-${s}`},this.renderSelectionCell(e,t),e.map((e,i)=>this.renderTableCell(e,t,i,a)))},this.renderTableCell=(e,t,a,i)=>{if(!1===e.visible)return"";let l=`${t}-${a}-${e.label}`;if(e.data){const i=this.getDataKey(e.data);l=i?`${i}-${this.horizontal?a:t}`:l}if(e.headerCell)return this.renderHeadingCell(e,t,a,i);{const t="function"!=typeof e.render&&e.label===this.translateNoEntries,i=this.getActionColumnHeader(a),r=Boolean(i&&e.data),s=this.isFixedCol(a),o="left"===s?this.getOffsetString(e.colIndex,!0):void 0,n="right"===s?this.getOffsetString(e.colIndex):void 0;return index.h("td",{key:`cell-${l}`,class:clsx.clsx("kol-table__cell kol-table__cell--body",e.textAlign&&`kol-table__cell--align-${e.textAlign}`,r&&"kol-table__cell--actions",s&&`kol-table__cell--sticky-${s}`),"aria-atomic":t?"false":void 0,"aria-live":t?"polite":void 0,"aria-relevant":t?"text":void 0,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{textAlign:e.textAlign,left:o,right:n},ref:"function"==typeof e.render?t=>{this.cellRender(e,t)}:void 0},r&&i&&e.data?this.renderActionItems(i,e.data,l):"function"!=typeof e.render?e.label:"")}},this.renderActionItems=(e,t,a)=>{const i=e.actions(t);return index.h("div",{class:"kol-table__cell-actions"},i.map((e,t)=>{if("button"===e.type){const i=tslib_es6.__rest(e,[]);return index.h(componentNames.KolButtonWcTag,Object.assign({key:`action-${a}-${t}`},i,{_variant:i._variant}))}if("link"===e.type){const i=tslib_es6.__rest(e,[]);return index.h(componentNames.KolLinkWcTag,Object.assign({key:`action-${a}-${t}`},i))}return null}))}}validateHasSettingsMenu(e){tableSelection.validateHasSettingsMenu(this,e)}validateData(e){tableSelection.validateTableData(this,e,{beforePatch:e=>{this.updateDataToKeyMap(e)}})}validateDataFoot(e){tableSelection.validateTableDataFoot(this,e)}validateFixedCols(e){tableSelection.validateFixedCols(this,e),this.checkAndUpdateStickyState()}validateHeaderCells(e){validateTableHeaderCells(this,e),isEqual(this.previousHeaderCells,this.state._headerCells)||this.initializeHeaderCellSettings(),this.previousHeaderCells=this.state._headerCells}validateLabel(e){label.validateLabel(this,e,{required:!0})}validateOn(e){tableSelection.validateTableCallbacks(this,e)}validateSelection(e){tableSelection.validateTableSelection(this,e),this.checkAndUpdateStickyState()}handleKeyDown(e){var t;if("ArrowUp"===e.key||"ArrowDown"===e.key){const a=null===(t=this.tableDivElement)||void 0===t?void 0:t.querySelector(":focus");let i=this.checkboxRefs.indexOf(a);i>-1&&(e.preventDefault(),"ArrowDown"===e.key?(i=(i+1)%this.checkboxRefs.length,this.checkboxRefs[i].focus()):"ArrowUp"===e.key&&(e.preventDefault(),i=(i+this.checkboxRefs.length-1)%this.checkboxRefs.length,this.checkboxRefs[i].focus()))}}componentDidRender(){this.checkDivElementScrollbar()}componentDidLoad(){this.tableDivElement&&ResizeObserver&&(this.tableDivElementResizeObserver=new ResizeObserver(this.handleResize.bind(this)),this.tableDivElementResizeObserver.observe(this.tableDivElement)),this.checkAndUpdateStickyState()}handleSettingsChange(e){var t;const a=Object.assign(Object.assign({},this.state._headerCells),{horizontal:e.detail});common.setState(this,"_headerCells",a),"function"==typeof(null===(t=this.state._on)||void 0===t?void 0:t[keyboard.Callback.onChangeHeaderCells])&&this.state._on[keyboard.Callback.onChangeHeaderCells](e,a)}disconnectedCallback(){var e;null===(e=this.tableDivElementResizeObserver)||void 0===e||e.disconnect(),clearTimeout(this.resizeDebounceTimeout)}handleResize(){this.checkDivElementScrollbar(),clearTimeout(this.resizeDebounceTimeout),this.resizeDebounceTimeout=setTimeout(()=>{this.checkAndUpdateStickyState()},150)}checkDivElementScrollbar(){this.tableDivElement&&(this.tableDivElementHasScrollbar=this.tableDivElement.scrollWidth>this.tableDivElement.clientWidth)}calculateFixedColsWidth(){var e,t,a,i,l,r;if(!this._fixedCols)return 0;const s=this.getPrimaryHeaders(this.state._headerCells);let o=0;for(let a=0;a<this._fixedCols[0]&&a<s.length;a++)o+=null!==(t=null===(e=s[a])||void 0===e?void 0:e.width)&&void 0!==t?t:0;for(let e=this.maxCols-this._fixedCols[1];e<this.maxCols&&e<s.length;e++)o+=null!==(i=null===(a=s[e])||void 0===a?void 0:a.width)&&void 0!==i?i:0;if(this.state._selection){const e=null===(l=this.tableDivElement)||void 0===l?void 0:l.querySelector(".kol-table__cell--selection");o+=null!==(r=null==e?void 0:e.offsetWidth)&&void 0!==r?r:0}return o}checkAndUpdateStickyState(){if(!this.tableDivElement||!this._fixedCols)return void(this.stickyColsDisabled=!1);const e=this.tableDivElement.clientWidth,t=this.calculateFixedColsWidth();this.stickyColsDisabled=t>0&&t>=e}updateDataToKeyMap(e){e.forEach(e=>{this.dataToKeyMap.has(e)||this.dataToKeyMap.set(e,dev_utils.nonce())}),this.dataToKeyMap.forEach((t,a)=>{e.includes(a)||this.dataToKeyMap.delete(a)})}getDataKey(e){return this.dataToKeyMap.get(e)}getActionColumnHeader(e){const t=this.horizontal?this.state._headerCells.horizontal:this.state._headerCells.vertical;if(!t||0===t.length)return;const a=this.getPrimaryHeaders(this.state._headerCells)[e];return a&&"action"===a.type?a:void 0}cellRender(e,t){t&&(clearTimeout(this.cellsToRenderTimeouts.get(t)),this.cellsToRenderTimeouts.set(t,setTimeout(()=>{if("function"==typeof e.render){const a=e.render(t,e,e.data,this.state._data);"string"==typeof a&&(t.textContent=a)}})))}getNumberOfCols(e,t){let a=0;return e.forEach(e=>{let t=0;Array.isArray(e)&&e.forEach(e=>{var a;t+=null!==(a=e.colSpan)&&void 0!==a?a:1}),a<t&&(a=t)}),0===a&&(a=t.length),a}getNumberOfRows(e,t){var a;let i=0;return e.forEach(e=>{let t=0;Array.isArray(e)&&e.forEach(e=>{var a;t+=null!==(a=e.rowSpan)&&void 0!==a?a:1}),i<t&&(i=t)}),0===i?i=t.length:i-=(null===(a=this.state._dataFoot)||void 0===a?void 0:a.length)||0,i}getThePrimaryHeadersWithKeyOrRenderFunction(e){const t=[];return e.forEach(e=>{e.forEach(e=>{"string"!=typeof e.key&&"function"!=typeof e.render||t.push(e)})}),t}getPrimaryHeaders(e){var t,a;let i=this.getThePrimaryHeadersWithKeyOrRenderFunction(null!==(t=e.horizontal)&&void 0!==t?t:[]);return this.horizontal=!0,0===i.length&&(i=this.getThePrimaryHeadersWithKeyOrRenderFunction(null!==(a=e.vertical)&&void 0!==a?a:[]),i.length>0&&(this.horizontal=!1)),i}createDataField(e,t,a){var i,l,r,s,o,n,c;t.horizontal=Array.isArray(null==t?void 0:t.horizontal)?t.horizontal:[],t.vertical=Array.isArray(null==t?void 0:t.vertical)?t.vertical:[],this.maxCols=this.getNumberOfCols(t.horizontal,e);const d=this.getPrimaryHeaders(t);let h=this.getNumberOfRows(t.vertical,e),b=0;a&&(b=h,h+=(null===(i=this.state._dataFoot)||void 0===i?void 0:i.length)||0);const u=[],v=[],_=[];t.vertical.forEach((e,t)=>{v[t]=0,_[t]=[]});const f=d;for(let i=b;i<h;i++){const d=[];t.vertical.forEach((e,t)=>{let a=0;if(_[t].forEach(e=>a+=e),a<=i){const l=e[i-a+v[t]];if("object"==typeof l){d.push(Object.assign(Object.assign({},l),{headerCell:!0,data:{}}));let e=1;if("number"==typeof l.rowSpan&&l.rowSpan>1&&(e=l.rowSpan),_[t].push(e),"number"==typeof l.colSpan&&l.colSpan>1)for(let a=1;a<l.colSpan;a++)_[t+a].push(e);v[t]++}}});for(let t=0;t<this.maxCols;t++){let h=this.isFixedCol(t);if("left"===h&&void 0===this.getFixedOffset(t)){let e=null!==(l=this.fixedOffsets[t-1])&&void 0!==l?l:0;e+=null!==(s=null===(r=f[t-1])||void 0===r?void 0:r.width)&&void 0!==s?s:0,this.fixedOffsets[t]=e}if("right"===h&&void 0===this.getFixedOffset(t)){let e=null!==(o=this.fixedOffsets[t+1])&&void 0!==o?o:0;e+=null!==(c=null===(n=f[t+1])||void 0===n?void 0:n.width)&&void 0!==c?c:0,this.fixedOffsets[t]=e}if(!0===this.horizontal){const l=a&&this.state._dataFoot?this.state._dataFoot[i-b]:e[i];if("object"==typeof f[t]&&null!==f[t]&&"object"==typeof l&&null!==l&&("string"==typeof f[t].key||"function"==typeof f[t].render)){const e=l[f[t].key];d.push(Object.assign(Object.assign({},f[t]),{colIndex:t,colSpan:void 0,rowSpan:void 0,data:l,label:e}))}}else if("object"==typeof f[i]&&null!==f[i]&&"object"==typeof e[t]&&null!==e[t]&&("string"==typeof f[i].key||"function"==typeof f[i].render)){const a=f[i].key,l=e[t][a];d.push(Object.assign(Object.assign({},f[i]),{colIndex:t,colSpan:void 0,rowSpan:void 0,data:e[t],label:l}))}}u.push(d)}if(0===e.length){let e=0,a=0;Array.isArray(t.horizontal)&&t.horizontal.length>0&&t.horizontal[0].forEach(t=>{e+=t.colSpan||1}),Array.isArray(t.vertical)&&t.vertical.length>0&&(e-=t.vertical.length,t.vertical[0].forEach(e=>{a+=e.rowSpan||1}));const i={colSpan:e,label:this.translateNoEntries,render:void 0,rowSpan:Math.max(a,1)};0===u.length?u.push([i]):u[0].push(i)}return u}isFixedCol(e){if(this._fixedCols&&void 0!==e&&!this.stickyColsDisabled)return e<this._fixedCols[0]?"left":e>=this.maxCols-this._fixedCols[1]?"right":void 0}getFixedOffset(e){if(this.tableDivElement&&void 0!==e)return void 0!==this.fixedOffsets[e]?this.fixedOffsets[e]:void 0}getOffsetString(e,t){return t&&this._selection?"calc( var(--kol-table-selection-col-width) + "+this.getFixedOffset(e)+"px)":this.getFixedOffset(e)+"px"}handleSelectionChangeCallbackAndEvent(e,t){var a;"function"==typeof(null===(a=this.state._on)||void 0===a?void 0:a[keyboard.Callback.onSelectionChange])&&this.state._on[keyboard.Callback.onSelectionChange](e,t),this.host&&events.dispatchDomEvent(this.host,events.KolEvent.selectionChange,t)}initializeHeaderCellSettings(){if(this.state._headerCells&&this.state._headerCells.horizontal&&this.state._headerCells.horizontal.length>0){const e=Object.assign(Object.assign({},this.state._headerCells),{horizontal:this.state._headerCells.horizontal.map(e=>e.map(e=>Object.assign(Object.assign({},e),{visible:"boolean"!=typeof e.visible||e.visible,hidable:"boolean"!=typeof e.hidable||e.hidable})))});common.setState(this,"_headerCells",e)}}componentWillLoad(){this.validateData(this._data),this.validateDataFoot(this._dataFoot),this.validateHeaderCells(this._headerCells),this.validateLabel(this._label),this.validateOn(this._on),this.validateSelection(this._selection),this.validateHasSettingsMenu(this._hasSettingsMenu)}renderSelectionCell(e,t){var a;const i=this.state._selection;if(!i)return"";const l=this.getSelectionKeyPropertyName(),r=null===(a=e[0])||void 0===a?void 0:a.data;if(!r)return"";const s=r[l],o=i.multiple||void 0===i.multiple,n=(()=>{const e=null==i?void 0:i.selectedKeys;return(void 0===e?[]:Array.isArray(e)?e:[e]).some(e=>String(e)===String(s))})(),c=(()=>{const e=null==i?void 0:i.disabledKeys;return(void 0===e?[]:Array.isArray(e)?e:[e]).some(e=>String(e)===String(s))})(),d=i.label(r),h={name:"selection",checked:n,disabled:c,id:String(s),"aria-label":d};return index.h("td",{key:`tbody-${t}-selection`,class:"kol-table__cell kol-table__cell--selection"},index.h("div",{class:clsx.clsx("kol-table__selection",{"kol-table__selection--checked":n})},o?index.h("label",{class:clsx.clsx("kol-table__selection-label",{"kol-table__selection-label--disabled":c})},index.h(component.IconFC,{class:"kol-table__selection-icon",icons:"kolicon "+(n?"kolicon-check":""),label:""}),index.h("input",Object.assign({class:clsx.clsx("kol-table__selection-input kol-table__selection-input--checkbox"),ref:e=>e&&this.checkboxRefs.push(e)},h,{type:"checkbox",onInput:e=>{const t=(()=>{const e=null==i?void 0:i.selectedKeys;return void 0===e?[]:Array.isArray(e)?e:[e]})(),a=n?t.filter(e=>String(e)!==String(s)):[...t,s];this.handleSelectionChangeCallbackAndEvent(e,null!=a?a:[])}}))):index.h("label",{class:"kol-table__selection-label"},index.h("input",Object.assign({class:clsx.clsx("kol-table__selection-input kol-table__selection-input--radio")},h,{type:"radio",onInput:e=>{this.handleSelectionChangeCallbackAndEvent(e,[s])}}))),index.h(componentNames.KolTooltipWcTag,{"aria-hidden":"true",class:"kol-table__selection-input-tooltip",_align:"right",_id:`${s}-label`,_label:d})))}getSelectionKeyPropertyName(){var e,t;return null!==(t=null===(e=this.state._selection)||void 0===e?void 0:e.keyPropertyName)&&void 0!==t?t:"id"}getDataWithSelectionEnabled(){const e=this.getSelectionKeyPropertyName();return this.state._data.filter(t=>{var a;const i=null===(a=this.state._selection)||void 0===a?void 0:a.disabledKeys;return!(void 0===i?[]:Array.isArray(i)?i:[i]).some(a=>String(a)===String(t[e]))})}getSelectedKeysWithoutDisabledKeys(){const e=(()=>{var e;const t=null===(e=this.state._selection)||void 0===e?void 0:e.selectedKeys;return void 0===t?[]:Array.isArray(t)?t:[t]})(),t=(()=>{var e;const t=null===(e=this.state._selection)||void 0===e?void 0:e.disabledKeys;return void 0===t?[]:Array.isArray(t)?t:[t]})();return e.filter(e=>!t.some(t=>String(t)===String(e)))}getSelectedKeysWithDisabledKeysOnly(){const e=(()=>{var e;const t=null===(e=this.state._selection)||void 0===e?void 0:e.selectedKeys;return void 0===t?[]:Array.isArray(t)?t:[t]})(),t=(()=>{var e;const t=null===(e=this.state._selection)||void 0===e?void 0:e.disabledKeys;return void 0===t?[]:Array.isArray(t)?t:[t]})();return e.filter(e=>t.some(t=>String(t)===String(e)))}getRevertedSelection(e){var t;const a=this.getSelectionKeyPropertyName(),i=null!==(t=this.getSelectedKeysWithDisabledKeysOnly())&&void 0!==t?t:[];return e&&i.push(...this.getDataWithSelectionEnabled().map(e=>null==e?void 0:e[a])),i}getTableMinWidth(){var e,t;const a=null!==(e=this.state._headerCells.horizontal)&&void 0!==e?e:[],i=[];a.forEach(e=>{e.forEach(e=>{!1!==e.visible&&void 0!==e.width&&e.width>0&&i.push(e.width)})});const l=null!==(t=this.state._headerCells.vertical)&&void 0!==t?t:[],r=[];l.forEach(e=>{e.forEach(e=>{void 0!==e.width&&e.width>0&&r.push(e.width)})});const s=[...r,...i];return 0===s.length?"0px":1===s.length?`${s[0]}px`:`calc(${s.map(e=>`${e}px`).join(" + ")})`}renderHeadingSelectionCell(){var e,t;const a=this.state._selection;if(!a)return index.h("td",{class:"kol-table__cell kol-table__cell--header",key:"thead-0"});if(!1===a.multiple)return index.h("td",{key:"thead-0-selection",class:"kol-table__cell kol-table__cell--header kol-table__cell--selection"});const i=null!==(t=null===(e=this.getSelectedKeysWithoutDisabledKeys())||void 0===e?void 0:e.length)&&void 0!==t?t:0,l=i===this.getDataWithSelectionEnabled().length,r=0!==i&&!l;let s="kol-table-selection-indeterminate";l&&!r&&(s="kol-table-selection-none"),0===i&&(s="kol-table-selection-all");const o=i18n.translate(s);return index.h("th",{key:"thead-0-selection",class:"kol-table__cell kol-table__cell--header kol-table__cell--selection"},index.h("div",{class:clsx.clsx("kol-table__selection",{"kol-table__selection--indeterminate":r,"kol-table__selection--checked":l})},index.h("label",{class:"kol-table__selection-label"},index.h(component.IconFC,{class:"kol-table__selection-icon",icons:"kolicon "+(r?"kolicon-minus":l?"kolicon-check":""),label:""}),index.h("input",{class:clsx.clsx("kol-table__selection-input kol-table__selection-input--checkbox"),"data-testid":"selection-checkbox-all",ref:e=>e&&this.checkboxRefs.push(e),name:"selection",checked:l&&!r,indeterminate:r,"aria-label":o,type:"checkbox",onInput:e=>{this.handleSelectionChangeCallbackAndEvent(e,this.getRevertedSelection(!l))}})),index.h(componentNames.KolTooltipWcTag,{"aria-hidden":"true",class:"kol-table__selection-input-tooltip",_align:"right",_id:`${s}-label`,_label:o})))}renderHeaderTdCell(){const e=this.state._headerCells.horizontal,t=this.state._headerCells.vertical;if(!Array.isArray(e)||0===e.length||!Array.isArray(t)||0===t.length)return index.h(index.Fragment,null);const a=t.reduce((e,t)=>{var a;const i=null==t?void 0:t[0];return e+(null!==(a=null==i?void 0:i.width)&&void 0!==a?a:0)},0);return index.h("td",{"aria-hidden":"true",colSpan:t.length,rowSpan:e.length,style:a>0?{width:`${a}px`}:void 0})}formatSortOrderDescription(e){return this.translateSortOrder.replace("{{order}}",`${e}`)}getSortAriaDescription(e){return"number"==typeof e&&e>0?`${this.translateSort} – ${this.formatSortOrderDescription(e)}`:this.translateSort}renderHeadingCell(e,t,a,i){if(!1===e.visible)return"";const l=!1!==(null==e?void 0:e.sortable),r="string"==typeof e.sortDirection,s=l&&r;let o="none",n="kolicon-sort-neutral";if(s&&e.sortDirection)switch(e.sortDirection){case"ASC":n="kolicon-sort-asc",o="ascending";break;case"DESC":n="kolicon-sort-desc",o="descending";break;default:o="none"}const c=i?"row":"number"==typeof e.colSpan&&e.colSpan>1?"colgroup":"col",d="number"==typeof e.sortOrder&&e.sortOrder>0?e.sortOrder:void 0,h=this.getSortAriaDescription(d),b=void 0!==e.width?`${e.width}px`:void 0,u=this.isFixedCol(a),v="left"===u?this.getOffsetString(a,!0):void 0,_="right"===u?this.getOffsetString(a):void 0;return index.h("th",{key:`${t}-${a}-${e.label}`,class:clsx.clsx("kol-table__cell kol-table__cell--header",`kol-table__cell--${o}`,e.textAlign&&`kol-table__cell--align-${e.textAlign}`,u&&`kol-table__cell--sticky-${u}`),scope:c,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{width:b,left:v,right:_},"aria-sort":o,"data-sort":s&&e.sortDirection?`sort-${e.sortDirection}`:void 0},s&&e.sortDirection?index.h("span",{class:"kol-table__sort"},index.h(componentNames.KolButtonWcTag,{class:"kol-table__sort-button",_icons:{right:n},_label:e.label,_ariaDescription:h,_on:{onClick:t=>{var a;"function"==typeof(null===(a=this.state._on)||void 0===a?void 0:a.onSort)&&e.key&&e.sortDirection&&this.state._on.onSort(t,{key:e.key,currentSortDirection:e.sortDirection}),this.host&&events.dispatchDomEvent(this.host,events.KolEvent.sort,{key:e.key,currentSortDirection:e.sortDirection})}}}),d&&index.h("span",{"aria-hidden":"true",class:"kol-table__sort-order"},d)):e.label)}renderSpacer(e,t){var a,i;const l=(null===(a=this.state._headerCells.vertical)||void 0===a?void 0:a.length)||0,r=null===(i=null==t?void 0:t[0])||void 0===i?void 0:i.reduce((e,t)=>e+(t.colSpan||1),0),s=this.state._selection?1:0;return index.h("tr",{"aria-hidden":"true",class:clsx.clsx("kol-table__spacer",`kol-table__spacer--${e}`)},index.h("td",{class:clsx.clsx(`kol-table__spacer-line kol-table__spacer-line--${e}`),colSpan:l+r+s}))}renderFoot(){if(!this.state._dataFoot||0===this.state._dataFoot.length)return null;const e=this.createDataField(this.state._dataFoot,this.state._headerCells,!0);return index.h("tfoot",{class:"kol-table__footer"},[this.renderSpacer("foot",e),e.map((e,t)=>this.renderTableRow(e,t,!0,!0))])}render(){const e=this.createDataField(this.state._data,this.state._headerCells);this.checkboxRefs=[];const t=this.state._headerCells.horizontal;return index.h("div",{key:"7498fb1fcab0cde7d87073c2a30b307845886a3b",class:"kol-table"},this.state._hasSettingsMenu&&index.h(componentNames.KolTableSettingsWcTag,{key:"ddc7eedad2de6fdff8c8d25b75a901124de308b9",_horizontalHeaderCells:null!=t?t:[]}),index.h("div",{key:"92f2114a09ba2b9ae9d699cde8ebc14095901170",ref:e=>this.tableDivElement=e,class:"kol-table__scroll-container",tabindex:this.tableDivElementHasScrollbar?"-1":void 0},index.h("table",{key:"bb9df3b7d179826ea4405c45aa1a06c11e629fef",class:"kol-table__table",style:{minWidth:this.getTableMinWidth()}},index.h("caption",{key:"2fd9de95e825e595076779a8e0ee7d6a8d6687b4",class:"kol-table__focus-element kol-table__caption",id:"caption",tabindex:this.tableDivElementHasScrollbar?"0":void 0},this.state._label),Array.isArray(t)&&index.h("thead",{key:"9f372551f89c3345f66935062be5a00f5c160e4b",class:"kol-table__head"},[t.map((e,t)=>index.h("tr",{class:"kol-table__head-row",key:`thead-${t}`},this.state._selection&&this.renderHeadingSelectionCell(),0===t&&this.renderHeaderTdCell(),Array.isArray(e)&&e.map((e,a)=>this.renderHeadingCell(e,t,a,!1)))),this.renderSpacer("head",t)]),index.h("tbody",{key:"496f87dc4f5cbe6e26825cf1f30824d81391b2f0",class:"kol-table__body"},e.map((e,t)=>this.renderTableRow(e,t,!0))),this.renderFoot())))}get host(){return index.getElement(this)}static get watchers(){return{_hasSettingsMenu:["validateHasSettingsMenu"],_data:["validateData"],_dataFoot:["validateDataFoot"],_fixedCols:["validateFixedCols"],_headerCells:["validateHeaderCells"],_label:["validateLabel"],_on:["validateOn"],_selection:["validateSelection"]}}};exports.kol_table_stateless_wc=KolTableStateless;
4
+ "use strict";var index=require("./index-DMu8_ik9.js"),tslib_es6=require("./tslib.es6-7DbU_BSw.js"),componentNames=require("./component-names--SvI3zRN.js"),i18n=require("./i18n-BWA16k5X.js"),component=require("./component-g902nOgi.js"),common=require("./common-BDQKBMeS.js"),tableSelection=require("./table-selection-AQ4G1V6h.js"),label=require("./label-CU8lZiLE.js"),keyboard=require("./keyboard-BfFtSnNy.js"),clsx=require("./clsx-Bm_HQUnh.js"),dev_utils=require("./dev.utils-OOR6uYvl.js"),events=require("./events-Cd8febUV.js"),_Uint8Array=require("./_Uint8Array-H2CXBET6.js"),isArray=require("./isArray-BOIOdEQh.js");require("./i18n-yHKQt1gl.js"),require("./bem-registry-BD-sGSzk.js"),require("./isObject-CyNHuTNs.js");const validateTableHeaderCells=(e,t)=>{common.emptyStringByArrayHandler(t,()=>{common.objectObjectHandler(t,()=>{try{t=common.parseJson(t)}catch(e){}common.watchValidator(e,"_headerCells",e=>{var t,a;return"object"==typeof e&&null!==e&&(void 0===e.horizontal||Array.isArray(e.horizontal)&&void 0===e.horizontal.find(e=>!Array.isArray(e)))&&(void 0===e.vertical||Array.isArray(e.vertical)&&void 0===e.vertical.find(e=>!Array.isArray(e)))&&[...null!==(t=e.horizontal)&&void 0!==t?t:[],...null!==(a=e.vertical)&&void 0!==a?a:[]].flat().every(e=>void 0===e.width||"number"==typeof e.width)&&!0},new Set(["TableHeaderCellsPropType"]),t)})})};var HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd(e){return this.__data__.set(e,HASH_UNDEFINED),this}function setCacheHas(e){return this.__data__.has(e)}function SetCache(e){var t=-1,a=null==e?0:e.length;for(this.__data__=new _Uint8Array.MapCache;++t<a;)this.add(e[t])}function arraySome(e,t){for(var a=-1,i=null==e?0:e.length;++a<i;)if(t(e[a],a,e))return!0;return!1}function cacheHas(e,t){return e.has(t)}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd,SetCache.prototype.has=setCacheHas;var COMPARE_PARTIAL_FLAG$3=1,COMPARE_UNORDERED_FLAG$1=2;function equalArrays(e,t,a,i,l,r){var s=a&COMPARE_PARTIAL_FLAG$3,o=e.length,n=t.length;if(o!=n&&!(s&&n>o))return!1;var c=r.get(e),d=r.get(t);if(c&&d)return c==t&&d==e;var h=-1,b=!0,u=a&COMPARE_UNORDERED_FLAG$1?new SetCache:void 0;for(r.set(e,t),r.set(t,e);++h<o;){var v=e[h],_=t[h];if(i)var f=s?i(_,v,h,t,e,r):i(v,_,h,e,t,r);if(void 0!==f){if(f)continue;b=!1;break}if(u){if(!arraySome(t,function(e,t){if(!cacheHas(u,t)&&(v===e||l(v,e,a,i,r)))return u.push(t)})){b=!1;break}}else if(v!==_&&!l(v,_,a,i,r)){b=!1;break}}return r.delete(e),r.delete(t),b}function mapToArray(e){var t=-1,a=Array(e.size);return e.forEach(function(e,i){a[++t]=[i,e]}),a}function setToArray(e){var t=-1,a=Array(e.size);return e.forEach(function(e){a[++t]=e}),a}var COMPARE_PARTIAL_FLAG$2=1,COMPARE_UNORDERED_FLAG=2,boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",symbolProto=isArray.Symbol?isArray.Symbol.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag(e,t,a,i,l,r,s){switch(a){case dataViewTag:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case arrayBufferTag:return!(e.byteLength!=t.byteLength||!r(new _Uint8Array.Uint8Array(e),new _Uint8Array.Uint8Array(t)));case boolTag:case dateTag:case numberTag:return _Uint8Array.eq(+e,+t);case errorTag:return e.name==t.name&&e.message==t.message;case regexpTag:case stringTag:return e==t+"";case mapTag:var o=mapToArray;case setTag:var n=i&COMPARE_PARTIAL_FLAG$2;if(o||(o=setToArray),e.size!=t.size&&!n)return!1;var c=s.get(e);if(c)return c==t;i|=COMPARE_UNORDERED_FLAG,s.set(e,t);var d=equalArrays(o(e),o(t),i,l,r,s);return s.delete(e),d;case symbolTag:if(symbolValueOf)return symbolValueOf.call(e)==symbolValueOf.call(t)}return!1}var COMPARE_PARTIAL_FLAG$1=1,objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty;function equalObjects(e,t,a,i,l,r){var s=a&COMPARE_PARTIAL_FLAG$1,o=_Uint8Array.getAllKeys(e),n=o.length;if(n!=_Uint8Array.getAllKeys(t).length&&!s)return!1;for(var c=n;c--;){var d=o[c];if(!(s?d in t:hasOwnProperty$1.call(t,d)))return!1}var h=r.get(e),b=r.get(t);if(h&&b)return h==t&&b==e;var u=!0;r.set(e,t),r.set(t,e);for(var v=s;++c<n;){var _=e[d=o[c]],f=t[d];if(i)var y=s?i(f,_,d,t,e,r):i(_,f,d,e,t,r);if(!(void 0===y?_===f||l(_,f,a,i,r):y)){u=!1;break}v||(v="constructor"==d)}if(u&&!v){var g=e.constructor,p=t.constructor;g==p||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof p&&p instanceof p||(u=!1)}return r.delete(e),r.delete(t),u}var COMPARE_PARTIAL_FLAG=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty;function baseIsEqualDeep(e,t,a,i,l,r){var s=isArray.isArray(e),o=isArray.isArray(t),n=s?arrayTag:_Uint8Array.getTag(e),c=o?arrayTag:_Uint8Array.getTag(t),d=(n=n==argsTag?objectTag:n)==objectTag,h=(c=c==argsTag?objectTag:c)==objectTag,b=n==c;if(b&&_Uint8Array.isBuffer(e)){if(!_Uint8Array.isBuffer(t))return!1;s=!0,d=!1}if(b&&!d)return r||(r=new _Uint8Array.Stack),s||_Uint8Array.isTypedArray(e)?equalArrays(e,t,a,i,l,r):equalByTag(e,t,n,a,i,l,r);if(!(a&COMPARE_PARTIAL_FLAG)){var u=d&&hasOwnProperty.call(e,"__wrapped__"),v=h&&hasOwnProperty.call(t,"__wrapped__");if(u||v){var _=u?e.value():e,f=v?t.value():t;return r||(r=new _Uint8Array.Stack),l(_,f,a,i,r)}}return!!b&&(r||(r=new _Uint8Array.Stack),equalObjects(e,t,a,i,l,r))}function baseIsEqual(e,t,a,i,l){return e===t||(null==e||null==t||!isArray.isObjectLike(e)&&!isArray.isObjectLike(t)?e!=e&&t!=t:baseIsEqualDeep(e,t,a,i,baseIsEqual,l))}function isEqual(e,t){return baseIsEqual(e,t)}const RESIZE_DEBOUNCE_DELAY=150,KolTableStateless=class{constructor(e){index.registerInstance(this,e),this.translateNoEntries=i18n.translate("kol-no-entries"),this.state={_data:[],_headerCells:{horizontal:[],vertical:[]},_label:"",_hasSettingsMenu:!1},this.horizontal=!0,this.cellsToRenderTimeouts=new Map,this.dataToKeyMap=new Map,this.checkboxRefs=[],this.translateSort=i18n.translate("kol-sort"),this.translateSortOrder=i18n.translate("kol-table-sort-order"),this.maxCols=0,this.fixedOffsets=[],this.tableDivElementHasScrollbar=!1,this.stickyColsDisabled=!1,this.renderTableRow=(e,t,a,i=!1)=>{var l,r;let s=String(t);return this.horizontal&&(null===(l=e[0])||void 0===l?void 0:l.data)&&(s=null!==(r=this.getDataKey(e[0].data))&&void 0!==r?r:s),index.h("tr",{class:clsx.clsx("kol-table__row",{"kol-table__row--body":!i,"kol-table__row--footer":i}),key:`row-${s}`},this.renderSelectionCell(e,t),e.map((e,i)=>this.renderTableCell(e,t,i,a)))},this.renderTableCell=(e,t,a,i)=>{if(!1===e.visible)return"";let l=`${t}-${a}-${e.label}`;if(e.data){const i=this.getDataKey(e.data);l=i?`${i}-${this.horizontal?a:t}`:l}if(e.headerCell)return this.renderHeadingCell(e,t,a,i);{const t="function"!=typeof e.render&&e.label===this.translateNoEntries,i=this.getActionColumnHeader(a),r=Boolean(i&&e.data),s=this.isFixedCol(a),o="left"===s?this.getOffsetString(e.colIndex,!0):void 0,n="right"===s?this.getOffsetString(e.colIndex):void 0;return index.h("td",{key:`cell-${l}`,class:clsx.clsx("kol-table__cell kol-table__cell--body",e.textAlign&&`kol-table__cell--align-${e.textAlign}`,r&&"kol-table__cell--actions",s&&`kol-table__cell--sticky-${s}`),"aria-atomic":t?"false":void 0,"aria-live":t?"polite":void 0,"aria-relevant":t?"text":void 0,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{textAlign:e.textAlign,left:o,right:n},ref:"function"==typeof e.render?t=>{this.cellRender(e,t)}:void 0},r&&i&&e.data?this.renderActionItems(i,e.data,l):"function"!=typeof e.render?e.label:"")}},this.renderActionItems=(e,t,a)=>{const i=e.actions(t);return index.h("div",{class:"kol-table__cell-actions"},i.map((e,t)=>{if("button"===e.type){const i=tslib_es6.__rest(e,[]);return index.h(componentNames.KolButtonWcTag,Object.assign({key:`action-${a}-${t}`},i,{_variant:i._variant}))}if("link"===e.type){const i=tslib_es6.__rest(e,[]);return index.h(componentNames.KolLinkWcTag,Object.assign({key:`action-${a}-${t}`},i))}return null}))}}validateHasSettingsMenu(e){tableSelection.validateHasSettingsMenu(this,e)}validateData(e){tableSelection.validateTableData(this,e,{beforePatch:e=>{this.updateDataToKeyMap(e)}})}validateDataFoot(e){tableSelection.validateTableDataFoot(this,e)}validateFixedCols(e){tableSelection.validateFixedCols(this,e),this.checkAndUpdateStickyState()}validateHeaderCells(e){validateTableHeaderCells(this,e),isEqual(this.previousHeaderCells,this.state._headerCells)||this.initializeHeaderCellSettings(),this.previousHeaderCells=this.state._headerCells}validateLabel(e){label.validateLabel(this,e,{required:!0})}validateOn(e){tableSelection.validateTableCallbacks(this,e)}validateSelection(e){tableSelection.validateTableSelection(this,e),this.checkAndUpdateStickyState()}handleKeyDown(e){var t;if("ArrowUp"===e.key||"ArrowDown"===e.key){const a=null===(t=this.tableDivElement)||void 0===t?void 0:t.querySelector(":focus");let i=this.checkboxRefs.indexOf(a);i>-1&&(e.preventDefault(),"ArrowDown"===e.key?(i=(i+1)%this.checkboxRefs.length,this.checkboxRefs[i].focus()):"ArrowUp"===e.key&&(e.preventDefault(),i=(i+this.checkboxRefs.length-1)%this.checkboxRefs.length,this.checkboxRefs[i].focus()))}}componentDidRender(){this.checkDivElementScrollbar()}componentDidLoad(){this.tableDivElement&&ResizeObserver&&(this.tableDivElementResizeObserver=new ResizeObserver(this.handleResize.bind(this)),this.tableDivElementResizeObserver.observe(this.tableDivElement)),this.checkAndUpdateStickyState()}handleSettingsChange(e){var t;const a=Object.assign(Object.assign({},this.state._headerCells),{horizontal:e.detail});common.setState(this,"_headerCells",a),"function"==typeof(null===(t=this.state._on)||void 0===t?void 0:t[keyboard.Callback.onChangeHeaderCells])&&this.state._on[keyboard.Callback.onChangeHeaderCells](e,a)}disconnectedCallback(){var e;null===(e=this.tableDivElementResizeObserver)||void 0===e||e.disconnect(),clearTimeout(this.resizeDebounceTimeout)}handleResize(){this.checkDivElementScrollbar(),clearTimeout(this.resizeDebounceTimeout),this.resizeDebounceTimeout=setTimeout(()=>{this.checkAndUpdateStickyState()},150)}checkDivElementScrollbar(){this.tableDivElement&&(this.tableDivElementHasScrollbar=this.tableDivElement.scrollWidth>this.tableDivElement.clientWidth)}calculateFixedColsWidth(){var e,t,a,i,l,r;if(!this._fixedCols)return 0;const s=this.getPrimaryHeaders(this.state._headerCells);let o=0;for(let a=0;a<this._fixedCols[0]&&a<s.length;a++)o+=null!==(t=null===(e=s[a])||void 0===e?void 0:e.width)&&void 0!==t?t:0;for(let e=this.maxCols-this._fixedCols[1];e<this.maxCols&&e<s.length;e++)o+=null!==(i=null===(a=s[e])||void 0===a?void 0:a.width)&&void 0!==i?i:0;if(this.state._selection){const e=null===(l=this.tableDivElement)||void 0===l?void 0:l.querySelector(".kol-table__cell--selection");o+=null!==(r=null==e?void 0:e.offsetWidth)&&void 0!==r?r:0}return o}checkAndUpdateStickyState(){if(!this.tableDivElement||!this._fixedCols)return void(this.stickyColsDisabled=!1);const e=this.tableDivElement.clientWidth,t=this.calculateFixedColsWidth();this.stickyColsDisabled=t>0&&t>=e}updateDataToKeyMap(e){e.forEach(e=>{this.dataToKeyMap.has(e)||this.dataToKeyMap.set(e,dev_utils.nonce())}),this.dataToKeyMap.forEach((t,a)=>{e.includes(a)||this.dataToKeyMap.delete(a)})}getDataKey(e){return this.dataToKeyMap.get(e)}getActionColumnHeader(e){const t=this.horizontal?this.state._headerCells.horizontal:this.state._headerCells.vertical;if(!t||0===t.length)return;const a=this.getPrimaryHeaders(this.state._headerCells)[e];return a&&"action"===a.type?a:void 0}cellRender(e,t){t&&(clearTimeout(this.cellsToRenderTimeouts.get(t)),this.cellsToRenderTimeouts.set(t,setTimeout(()=>{if("function"==typeof e.render){const a=e.render(t,e,e.data,this.state._data);"string"==typeof a&&(t.textContent=a)}})))}getNumberOfCols(e,t){let a=0;return e.forEach(e=>{let t=0;Array.isArray(e)&&e.forEach(e=>{var a;t+=null!==(a=e.colSpan)&&void 0!==a?a:1}),a<t&&(a=t)}),0===a&&(a=t.length),a}getNumberOfRows(e,t){var a;let i=0;return e.forEach(e=>{let t=0;Array.isArray(e)&&e.forEach(e=>{var a;t+=null!==(a=e.rowSpan)&&void 0!==a?a:1}),i<t&&(i=t)}),0===i?i=t.length:i-=(null===(a=this.state._dataFoot)||void 0===a?void 0:a.length)||0,i}getThePrimaryHeadersWithKeyOrRenderFunction(e){const t=[];return e.forEach(e=>{e.forEach(e=>{"string"!=typeof e.key&&"function"!=typeof e.render||t.push(e)})}),t}getPrimaryHeaders(e){var t,a;let i=this.getThePrimaryHeadersWithKeyOrRenderFunction(null!==(t=e.horizontal)&&void 0!==t?t:[]);return this.horizontal=!0,0===i.length&&(i=this.getThePrimaryHeadersWithKeyOrRenderFunction(null!==(a=e.vertical)&&void 0!==a?a:[]),i.length>0&&(this.horizontal=!1)),i}createDataField(e,t,a){var i,l,r,s,o,n,c;t.horizontal=Array.isArray(null==t?void 0:t.horizontal)?t.horizontal:[],t.vertical=Array.isArray(null==t?void 0:t.vertical)?t.vertical:[],this.maxCols=this.getNumberOfCols(t.horizontal,e);const d=this.getPrimaryHeaders(t);let h=this.getNumberOfRows(t.vertical,e),b=0;a&&(b=h,h+=(null===(i=this.state._dataFoot)||void 0===i?void 0:i.length)||0);const u=[],v=[],_=[];t.vertical.forEach((e,t)=>{v[t]=0,_[t]=[]});const f=d;for(let i=b;i<h;i++){const d=[];t.vertical.forEach((e,t)=>{let a=0;if(_[t].forEach(e=>a+=e),a<=i){const l=e[i-a+v[t]];if("object"==typeof l){d.push(Object.assign(Object.assign({},l),{headerCell:!0,data:{}}));let e=1;if("number"==typeof l.rowSpan&&l.rowSpan>1&&(e=l.rowSpan),_[t].push(e),"number"==typeof l.colSpan&&l.colSpan>1)for(let a=1;a<l.colSpan;a++)_[t+a].push(e);v[t]++}}});for(let t=0;t<this.maxCols;t++){let h=this.isFixedCol(t);if("left"===h&&void 0===this.getFixedOffset(t)){let e=null!==(l=this.fixedOffsets[t-1])&&void 0!==l?l:0;e+=null!==(s=null===(r=f[t-1])||void 0===r?void 0:r.width)&&void 0!==s?s:0,this.fixedOffsets[t]=e}if("right"===h&&void 0===this.getFixedOffset(t)){let e=null!==(o=this.fixedOffsets[t+1])&&void 0!==o?o:0;e+=null!==(c=null===(n=f[t+1])||void 0===n?void 0:n.width)&&void 0!==c?c:0,this.fixedOffsets[t]=e}if(!0===this.horizontal){const l=a&&this.state._dataFoot?this.state._dataFoot[i-b]:e[i];if("object"==typeof f[t]&&null!==f[t]&&"object"==typeof l&&null!==l&&("string"==typeof f[t].key||"function"==typeof f[t].render)){const e=l[f[t].key];d.push(Object.assign(Object.assign({},f[t]),{colIndex:t,colSpan:void 0,rowSpan:void 0,data:l,label:e}))}}else if("object"==typeof f[i]&&null!==f[i]&&"object"==typeof e[t]&&null!==e[t]&&("string"==typeof f[i].key||"function"==typeof f[i].render)){const a=f[i].key,l=e[t][a];d.push(Object.assign(Object.assign({},f[i]),{colIndex:t,colSpan:void 0,rowSpan:void 0,data:e[t],label:l}))}}u.push(d)}if(0===e.length){let e=0,a=0;Array.isArray(t.horizontal)&&t.horizontal.length>0&&t.horizontal[0].forEach(t=>{e+=t.colSpan||1}),Array.isArray(t.vertical)&&t.vertical.length>0&&(e-=t.vertical.length,t.vertical[0].forEach(e=>{a+=e.rowSpan||1}));const i={colSpan:e,label:this.translateNoEntries,render:void 0,rowSpan:Math.max(a,1)};0===u.length?u.push([i]):u[0].push(i)}return u}isFixedCol(e){if(this._fixedCols&&void 0!==e&&!this.stickyColsDisabled)return e<this._fixedCols[0]?"left":e>=this.maxCols-this._fixedCols[1]?"right":void 0}getFixedOffset(e){if(this.tableDivElement&&void 0!==e)return void 0!==this.fixedOffsets[e]?this.fixedOffsets[e]:void 0}getOffsetString(e,t){return t&&this._selection?"calc( var(--kol-table-selection-col-width) + "+this.getFixedOffset(e)+"px)":this.getFixedOffset(e)+"px"}handleSelectionChangeCallbackAndEvent(e,t){var a;"function"==typeof(null===(a=this.state._on)||void 0===a?void 0:a[keyboard.Callback.onSelectionChange])&&this.state._on[keyboard.Callback.onSelectionChange](e,t),this.host&&events.dispatchDomEvent(this.host,events.KolEvent.selectionChange,t)}initializeHeaderCellSettings(){if(this.state._headerCells&&this.state._headerCells.horizontal&&this.state._headerCells.horizontal.length>0){const e=Object.assign(Object.assign({},this.state._headerCells),{horizontal:this.state._headerCells.horizontal.map(e=>e.map(e=>Object.assign(Object.assign({},e),{visible:"boolean"!=typeof e.visible||e.visible,hidable:"boolean"!=typeof e.hidable||e.hidable})))});common.setState(this,"_headerCells",e)}}componentWillLoad(){this.validateData(this._data),this.validateDataFoot(this._dataFoot),this.validateHeaderCells(this._headerCells),this.validateLabel(this._label),this.validateOn(this._on),this.validateSelection(this._selection),this.validateHasSettingsMenu(this._hasSettingsMenu)}renderSelectionCell(e,t){var a;const i=this.state._selection;if(!i)return"";const l=this.getSelectionKeyPropertyName(),r=null===(a=e[0])||void 0===a?void 0:a.data;if(!r)return"";const s=r[l],o=i.multiple||void 0===i.multiple,n=(()=>{const e=null==i?void 0:i.selectedKeys;return(void 0===e?[]:Array.isArray(e)?e:[e]).some(e=>String(e)===String(s))})(),c=(()=>{const e=null==i?void 0:i.disabledKeys;return(void 0===e?[]:Array.isArray(e)?e:[e]).some(e=>String(e)===String(s))})(),d=i.label(r),h={name:"selection",checked:n,disabled:c,id:String(s),"aria-label":d};return index.h("td",{key:`tbody-${t}-selection`,class:"kol-table__cell kol-table__cell--selection"},index.h("div",{class:clsx.clsx("kol-table__selection",{"kol-table__selection--checked":n})},o?index.h("label",{class:clsx.clsx("kol-table__selection-label",{"kol-table__selection-label--disabled":c})},index.h(component.IconFC,{class:"kol-table__selection-icon",icons:"kolicon "+(n?"kolicon-check":""),label:""}),index.h("input",Object.assign({class:clsx.clsx("kol-table__selection-input kol-table__selection-input--checkbox"),ref:e=>e&&this.checkboxRefs.push(e)},h,{type:"checkbox",onInput:e=>{const t=(()=>{const e=null==i?void 0:i.selectedKeys;return void 0===e?[]:Array.isArray(e)?e:[e]})(),a=n?t.filter(e=>String(e)!==String(s)):[...t,s];this.handleSelectionChangeCallbackAndEvent(e,null!=a?a:[])}}))):index.h("label",{class:"kol-table__selection-label"},index.h("input",Object.assign({class:clsx.clsx("kol-table__selection-input kol-table__selection-input--radio")},h,{type:"radio",onInput:e=>{this.handleSelectionChangeCallbackAndEvent(e,[s])}}))),index.h(componentNames.KolTooltipWcTag,{"aria-hidden":"true",class:"kol-table__selection-input-tooltip",_align:"right",_id:`${s}-label`,_label:d})))}getSelectionKeyPropertyName(){var e,t;return null!==(t=null===(e=this.state._selection)||void 0===e?void 0:e.keyPropertyName)&&void 0!==t?t:"id"}getDataWithSelectionEnabled(){const e=this.getSelectionKeyPropertyName();return this.state._data.filter(t=>{var a;const i=null===(a=this.state._selection)||void 0===a?void 0:a.disabledKeys;return!(void 0===i?[]:Array.isArray(i)?i:[i]).some(a=>String(a)===String(t[e]))})}getSelectedKeysWithoutDisabledKeys(){const e=(()=>{var e;const t=null===(e=this.state._selection)||void 0===e?void 0:e.selectedKeys;return void 0===t?[]:Array.isArray(t)?t:[t]})(),t=(()=>{var e;const t=null===(e=this.state._selection)||void 0===e?void 0:e.disabledKeys;return void 0===t?[]:Array.isArray(t)?t:[t]})();return e.filter(e=>!t.some(t=>String(t)===String(e)))}getSelectedKeysWithDisabledKeysOnly(){const e=(()=>{var e;const t=null===(e=this.state._selection)||void 0===e?void 0:e.selectedKeys;return void 0===t?[]:Array.isArray(t)?t:[t]})(),t=(()=>{var e;const t=null===(e=this.state._selection)||void 0===e?void 0:e.disabledKeys;return void 0===t?[]:Array.isArray(t)?t:[t]})();return e.filter(e=>t.some(t=>String(t)===String(e)))}getRevertedSelection(e){var t;const a=this.getSelectionKeyPropertyName(),i=null!==(t=this.getSelectedKeysWithDisabledKeysOnly())&&void 0!==t?t:[];return e&&i.push(...this.getDataWithSelectionEnabled().map(e=>null==e?void 0:e[a])),i}getTableMinWidth(){var e,t;const a=null!==(e=this.state._headerCells.horizontal)&&void 0!==e?e:[],i=[];a.forEach(e=>{e.forEach(e=>{!1!==e.visible&&void 0!==e.width&&e.width>0&&i.push(e.width)})});const l=null!==(t=this.state._headerCells.vertical)&&void 0!==t?t:[],r=[];l.forEach(e=>{e.forEach(e=>{void 0!==e.width&&e.width>0&&r.push(e.width)})});const s=[...r,...i];return 0===s.length?"0px":1===s.length?`${s[0]}px`:`calc(${s.map(e=>`${e}px`).join(" + ")})`}renderHeadingSelectionCell(){var e,t;const a=this.state._selection;if(!a)return index.h("td",{class:"kol-table__cell kol-table__cell--header",key:"thead-0"});if(!1===a.multiple)return index.h("td",{key:"thead-0-selection",class:"kol-table__cell kol-table__cell--header kol-table__cell--selection"});const i=null!==(t=null===(e=this.getSelectedKeysWithoutDisabledKeys())||void 0===e?void 0:e.length)&&void 0!==t?t:0,l=i===this.getDataWithSelectionEnabled().length,r=0!==i&&!l;let s="kol-table-selection-indeterminate";l&&!r&&(s="kol-table-selection-none"),0===i&&(s="kol-table-selection-all");const o=i18n.translate(s);return index.h("th",{key:"thead-0-selection",class:"kol-table__cell kol-table__cell--header kol-table__cell--selection"},index.h("div",{class:clsx.clsx("kol-table__selection",{"kol-table__selection--indeterminate":r,"kol-table__selection--checked":l})},index.h("label",{class:"kol-table__selection-label"},index.h(component.IconFC,{class:"kol-table__selection-icon",icons:"kolicon "+(r?"kolicon-minus":l?"kolicon-check":""),label:""}),index.h("input",{class:clsx.clsx("kol-table__selection-input kol-table__selection-input--checkbox"),"data-testid":"selection-checkbox-all",ref:e=>e&&this.checkboxRefs.push(e),name:"selection",checked:l&&!r,indeterminate:r,"aria-label":o,type:"checkbox",onInput:e=>{this.handleSelectionChangeCallbackAndEvent(e,this.getRevertedSelection(!l))}})),index.h(componentNames.KolTooltipWcTag,{"aria-hidden":"true",class:"kol-table__selection-input-tooltip",_align:"right",_id:`${s}-label`,_label:o})))}renderHeaderTdCell(){const e=this.state._headerCells.horizontal,t=this.state._headerCells.vertical;if(!Array.isArray(e)||0===e.length||!Array.isArray(t)||0===t.length)return index.h(index.Fragment,null);const a=t.reduce((e,t)=>{var a;const i=null==t?void 0:t[0];return e+(null!==(a=null==i?void 0:i.width)&&void 0!==a?a:0)},0);return index.h("td",{"aria-hidden":"true",colSpan:t.length,rowSpan:e.length,style:a>0?{width:`${a}px`}:void 0})}formatSortOrderDescription(e){return this.translateSortOrder.replace("{{order}}",`${e}`)}getSortAriaDescription(e){return"number"==typeof e&&e>0?`${this.translateSort} – ${this.formatSortOrderDescription(e)}`:this.translateSort}renderHeadingCell(e,t,a,i){if(!1===e.visible)return"";const l=!1!==(null==e?void 0:e.sortable),r="string"==typeof e.sortDirection,s=l&&r;let o="none",n="kolicon-sort-neutral";if(s&&e.sortDirection)switch(e.sortDirection){case"ASC":n="kolicon-sort-asc",o="ascending";break;case"DESC":n="kolicon-sort-desc",o="descending";break;default:o="none"}const c=i?"row":"number"==typeof e.colSpan&&e.colSpan>1?"colgroup":"col",d="number"==typeof e.sortOrder&&e.sortOrder>0?e.sortOrder:void 0,h=this.getSortAriaDescription(d),b=void 0!==e.width?`${e.width}px`:void 0,u=this.isFixedCol(a),v="left"===u?this.getOffsetString(a,!0):void 0,_="right"===u?this.getOffsetString(a):void 0;return index.h("th",{key:`${t}-${a}-${e.label}`,class:clsx.clsx("kol-table__cell kol-table__cell--header",`kol-table__cell--${o}`,e.textAlign&&`kol-table__cell--align-${e.textAlign}`,u&&`kol-table__cell--sticky-${u}`),scope:c,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{width:b,left:v,right:_},"aria-sort":o,"data-sort":s&&e.sortDirection?`sort-${e.sortDirection}`:void 0},s&&e.sortDirection?index.h("span",{class:"kol-table__sort"},index.h(componentNames.KolButtonWcTag,{class:"kol-table__sort-button",_icons:{right:n},_label:e.label,_ariaDescription:h,_on:{onClick:t=>{var a;"function"==typeof(null===(a=this.state._on)||void 0===a?void 0:a.onSort)&&e.key&&e.sortDirection&&this.state._on.onSort(t,{key:e.key,currentSortDirection:e.sortDirection}),this.host&&events.dispatchDomEvent(this.host,events.KolEvent.sort,{key:e.key,currentSortDirection:e.sortDirection})}}}),d&&index.h("span",{"aria-hidden":"true",class:"kol-table__sort-order"},d)):e.label)}renderSpacer(e,t){var a,i;const l=(null===(a=this.state._headerCells.vertical)||void 0===a?void 0:a.length)||0,r=null===(i=null==t?void 0:t[0])||void 0===i?void 0:i.reduce((e,t)=>e+(t.colSpan||1),0),s=this.state._selection?1:0;return index.h("tr",{"aria-hidden":"true",class:clsx.clsx("kol-table__spacer",`kol-table__spacer--${e}`)},index.h("td",{class:clsx.clsx(`kol-table__spacer-line kol-table__spacer-line--${e}`),colSpan:l+r+s}))}renderFoot(){if(!this.state._dataFoot||0===this.state._dataFoot.length)return null;const e=this.createDataField(this.state._dataFoot,this.state._headerCells,!0);return index.h("tfoot",{class:"kol-table__footer"},[this.renderSpacer("foot",e),e.map((e,t)=>this.renderTableRow(e,t,!0,!0))])}render(){const e=this.createDataField(this.state._data,this.state._headerCells);this.checkboxRefs=[];const t=this.state._headerCells.horizontal;return index.h("div",{key:"7498fb1fcab0cde7d87073c2a30b307845886a3b",class:"kol-table"},this.state._hasSettingsMenu&&index.h(componentNames.KolTableSettingsWcTag,{key:"ddc7eedad2de6fdff8c8d25b75a901124de308b9",_horizontalHeaderCells:null!=t?t:[]}),index.h("div",{key:"92f2114a09ba2b9ae9d699cde8ebc14095901170",ref:e=>this.tableDivElement=e,class:"kol-table__scroll-container",tabindex:this.tableDivElementHasScrollbar?"-1":void 0},index.h("table",{key:"bb9df3b7d179826ea4405c45aa1a06c11e629fef",class:"kol-table__table",style:{minWidth:this.getTableMinWidth()}},index.h("caption",{key:"2fd9de95e825e595076779a8e0ee7d6a8d6687b4",class:"kol-table__focus-element kol-table__caption",id:"caption",tabindex:this.tableDivElementHasScrollbar?"0":void 0},this.state._label),Array.isArray(t)&&index.h("thead",{key:"9f372551f89c3345f66935062be5a00f5c160e4b",class:"kol-table__head"},[t.map((e,t)=>index.h("tr",{class:"kol-table__head-row",key:`thead-${t}`},this.state._selection&&this.renderHeadingSelectionCell(),0===t&&this.renderHeaderTdCell(),Array.isArray(e)&&e.map((e,a)=>this.renderHeadingCell(e,t,a,!1)))),this.renderSpacer("head",t)]),index.h("tbody",{key:"496f87dc4f5cbe6e26825cf1f30824d81391b2f0",class:"kol-table__body"},e.map((e,t)=>this.renderTableRow(e,t,!0))),this.renderFoot())))}get host(){return index.getElement(this)}static get watchers(){return{_hasSettingsMenu:["validateHasSettingsMenu"],_data:["validateData"],_dataFoot:["validateDataFoot"],_fixedCols:["validateFixedCols"],_headerCells:["validateHeaderCells"],_label:["validateLabel"],_on:["validateOn"],_selection:["validateSelection"]}}};exports.kol_table_stateless_wc=KolTableStateless;
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";var index=require("./index-BDC4d4pa.js"),componentNames=require("./component-names--SvI3zRN.js");require("./common-BDQKBMeS.js");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 --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\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: lightgray;\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 opacity: 0.5;\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=1773232431126"); /* IE9*/\n src: url("kolicons.eot?t=1773232431126#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1773232431126") format("woff2"), url("kolicons.woff?t=1773232431126") format("woff"), url("kolicons.ttf?t=1773232431126") format("truetype"), url("kolicons.svg?t=1773232431126#kolicons") format("svg"); /* iOS 4.1- */\n}\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\n.kolicon-alert-error::before {\n content: "\\ea01";\n}\n\n.kolicon-alert-info::before {\n content: "\\ea02";\n}\n\n.kolicon-alert-success::before {\n content: "\\ea03";\n}\n\n.kolicon-alert-warning::before {\n content: "\\ea04";\n}\n\n.kolicon-check::before {\n content: "\\ea05";\n}\n\n.kolicon-chevron-double-left::before {\n content: "\\ea06";\n}\n\n.kolicon-chevron-double-right::before {\n content: "\\ea07";\n}\n\n.kolicon-chevron-down::before {\n content: "\\ea08";\n}\n\n.kolicon-chevron-left::before {\n content: "\\ea09";\n}\n\n.kolicon-chevron-right::before {\n content: "\\ea0a";\n}\n\n.kolicon-chevron-up::before {\n content: "\\ea0b";\n}\n\n.kolicon-cogwheel::before {\n content: "\\ea0c";\n}\n\n.kolicon-cross::before {\n content: "\\ea0d";\n}\n\n.kolicon-eye-closed::before {\n content: "\\ea0e";\n}\n\n.kolicon-eye::before {\n content: "\\ea0f";\n}\n\n.kolicon-house::before {\n content: "\\ea10";\n}\n\n.kolicon-kolibri::before {\n content: "\\ea11";\n}\n\n.kolicon-link-external::before {\n content: "\\ea12";\n}\n\n.kolicon-link::before {\n content: "\\ea13";\n}\n\n.kolicon-minus::before {\n content: "\\ea14";\n}\n\n.kolicon-plus::before {\n content: "\\ea15";\n}\n\n.kolicon-settings::before {\n content: "\\ea16";\n}\n\n.kolicon-sort-asc::before {\n content: "\\ea17";\n}\n\n.kolicon-sort-desc::before {\n content: "\\ea18";\n}\n\n.kolicon-sort-neutral::before {\n content: "\\ea19";\n}\n\n.kolicon-up::before {\n content: "\\ea1a";\n}\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: #000;\n background-color: #fff;\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: #000;\n background-color: #fff;\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 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 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-table-settings {\n background: #fff;\n position: absolute;\n top: 0;\n right: 0;\n z-index: 1;\n }\n .kol-table-settings .kol-popover-button__popover {\n background: #fff;\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 #d1d5db;\n }\n .kol-table-settings__columns-container {\n max-height: calc(200 * 1rem / var(--kolibri-root-font-size, 16));\n margin-top: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n overflow: auto;\n }\n .kol-table-settings__columns {\n display: grid;\n gap: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n align-items: center;\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: contents;\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 padding-right: var(--a11y-min-size);\n text-align: start;\n }\n .kol-table__sort-button .kol-button {\n color: inherit;\n }\n .kol-table__sort {\n display: inline-flex;\n gap: 0.25rem;\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 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 margin-left: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\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: rgb(255, 255, 255);\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: #000;\n }\n @media (forced-colors: active) {\n .kol-table__selection-input--radio:checked:before {\n /* Give it a visible background in forced colors mode */\n background-color: selectedItem !important;\n }\n }\n}',KolTableStateless=class{constructor(n){index.registerInstance(this,n)}render(){return index.h(componentNames.KolTableStatelessWcTag,{key:"02264e35916f8c8f68c730d3be9044444cd02955",_data:this._data,_dataFoot:this._dataFoot,_fixedCols:this._fixedCols,_headerCells:this._headerCells,_label:this._label,_on:this._on,_selection:this._selection,_hasSettingsMenu:this._hasSettingsMenu})}};KolTableStateless.style={default:defaultStyleCss},exports.kol_table_stateless=KolTableStateless;
4
+ "use strict";var index=require("./index-DMu8_ik9.js"),componentNames=require("./component-names--SvI3zRN.js");require("./common-BDQKBMeS.js");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 --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\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: lightgray;\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 opacity: 0.5;\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=1773990435463"); /* IE9*/\n src: url("kolicons.eot?t=1773990435463#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1773990435463") format("woff2"), url("kolicons.woff?t=1773990435463") format("woff"), url("kolicons.ttf?t=1773990435463") format("truetype"), url("kolicons.svg?t=1773990435463#kolicons") format("svg"); /* iOS 4.1- */\n}\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\n.kolicon-alert-error::before {\n content: "\\ea01";\n}\n\n.kolicon-alert-info::before {\n content: "\\ea02";\n}\n\n.kolicon-alert-success::before {\n content: "\\ea03";\n}\n\n.kolicon-alert-warning::before {\n content: "\\ea04";\n}\n\n.kolicon-check::before {\n content: "\\ea05";\n}\n\n.kolicon-chevron-double-left::before {\n content: "\\ea06";\n}\n\n.kolicon-chevron-double-right::before {\n content: "\\ea07";\n}\n\n.kolicon-chevron-down::before {\n content: "\\ea08";\n}\n\n.kolicon-chevron-left::before {\n content: "\\ea09";\n}\n\n.kolicon-chevron-right::before {\n content: "\\ea0a";\n}\n\n.kolicon-chevron-up::before {\n content: "\\ea0b";\n}\n\n.kolicon-cogwheel::before {\n content: "\\ea0c";\n}\n\n.kolicon-cross::before {\n content: "\\ea0d";\n}\n\n.kolicon-eye-closed::before {\n content: "\\ea0e";\n}\n\n.kolicon-eye::before {\n content: "\\ea0f";\n}\n\n.kolicon-house::before {\n content: "\\ea10";\n}\n\n.kolicon-kolibri::before {\n content: "\\ea11";\n}\n\n.kolicon-link-external::before {\n content: "\\ea12";\n}\n\n.kolicon-link::before {\n content: "\\ea13";\n}\n\n.kolicon-minus::before {\n content: "\\ea14";\n}\n\n.kolicon-plus::before {\n content: "\\ea15";\n}\n\n.kolicon-settings::before {\n content: "\\ea16";\n}\n\n.kolicon-sort-asc::before {\n content: "\\ea17";\n}\n\n.kolicon-sort-desc::before {\n content: "\\ea18";\n}\n\n.kolicon-sort-neutral::before {\n content: "\\ea19";\n}\n\n.kolicon-up::before {\n content: "\\ea1a";\n}\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: #000;\n background-color: #fff;\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: #000;\n background-color: #fff;\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 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 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-table-settings {\n background: #fff;\n position: absolute;\n top: 0;\n right: 0;\n z-index: 1;\n }\n .kol-table-settings .kol-popover-button__popover {\n background: #fff;\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 #d1d5db;\n }\n .kol-table-settings__columns-container {\n max-height: calc(200 * 1rem / var(--kolibri-root-font-size, 16));\n margin-top: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n overflow: auto;\n }\n .kol-table-settings__columns {\n display: grid;\n gap: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n align-items: center;\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: contents;\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 padding-right: var(--a11y-min-size);\n text-align: start;\n }\n .kol-table__sort-button .kol-button {\n color: inherit;\n }\n .kol-table__sort {\n display: inline-flex;\n gap: 0.25rem;\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 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 margin-left: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\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: rgb(255, 255, 255);\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: #000;\n }\n @media (forced-colors: active) {\n .kol-table__selection-input--radio:checked:before {\n /* Give it a visible background in forced colors mode */\n background-color: selectedItem !important;\n }\n }\n}',KolTableStateless=class{constructor(n){index.registerInstance(this,n)}render(){return index.h(componentNames.KolTableStatelessWcTag,{key:"02264e35916f8c8f68c730d3be9044444cd02955",_data:this._data,_dataFoot:this._dataFoot,_fixedCols:this._fixedCols,_headerCells:this._headerCells,_label:this._label,_on:this._on,_selection:this._selection,_hasSettingsMenu:this._hasSettingsMenu})}};KolTableStateless.style={default:defaultStyleCss},exports.kol_table_stateless=KolTableStateless;
@@ -1 +1 @@
1
- {"version":3,"file":"kol-table-stateless.entry.cjs.js","sources":["src/components/table-stateless/style.scss?tag=kol-table-stateless&mode=default&encapsulation=shadow","src/components/table-stateless/shadow.tsx"],"sourcesContent":["@use '../../styles/global' as *;\n@use '../../styles/kol-alert-mixin' as *;\n@use '../@shared/kol-button-mixin' as *;\n@use '../@shared/kol-popover-button-mixin' as *;\n@use '../@shared/kol-table-stateless-mixin' as *;\n@use '../@shared/mixins' as *;\n@use '../host-display-block' as *;\n@use '../tooltip/style' as *;\n\n@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, h, Prop } 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} from '../../schema';\n\n@Component({\n\ttag: 'kol-table-stateless',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolTableStateless implements TableStatelessProps {\n\t/**\n\t * Defines the primary table data.\n\t */\n\t@Prop() public _data!: TableDataPropType;\n\n\t/**\n\t * Defines the data for the table footer.\n\t */\n\t@Prop() public _dataFoot?: TableDataFootPropType;\n\n\t/**\n\t * Defines the 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\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<KolTableStatelessWcTag\n\t\t\t\t_data={this._data}\n\t\t\t\t_dataFoot={this._dataFoot}\n\t\t\t\t_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/>\n\t\t);\n\t}\n}\n"],"names":["h","KolTableStatelessWcTag"],"mappings":";;;;;;;;;AAAA,MAAM,eAAe,GAAG,8kkBAA8kkB;;MCqBzlkB,iBAAiB,GAAA,MAAA;;;;IAyCtB,MAAM,GAAA;AACZ,QAAA,QACCA,OAAC,CAAAC,qCAAsB,EACtB,EAAA,GAAA,EAAA,0CAAA,EAAA,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,EACtC,CAAA;;;;;;;;;"}
1
+ {"version":3,"file":"kol-table-stateless.entry.cjs.js","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, h, Prop } 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} from '../../schema';\n\n@Component({\n\ttag: 'kol-table-stateless',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolTableStateless implements TableStatelessProps {\n\t/**\n\t * Defines the primary table data.\n\t */\n\t@Prop() public _data!: TableDataPropType;\n\n\t/**\n\t * Defines the data for the table footer.\n\t */\n\t@Prop() public _dataFoot?: TableDataFootPropType;\n\n\t/**\n\t * Defines the 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\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<KolTableStatelessWcTag\n\t\t\t\t_data={this._data}\n\t\t\t\t_dataFoot={this._dataFoot}\n\t\t\t\t_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/>\n\t\t);\n\t}\n}\n"],"names":["h","KolTableStatelessWcTag"],"mappings":";;;;;;;;;AAAA,MAAM,eAAe,GAAG,8kkBAA8kkB;;MCqBzlkB,iBAAiB,GAAA,MAAA;;;;IAyCtB,MAAM,GAAA;AACZ,QAAA,QACCA,OAAC,CAAAC,qCAAsB,EACtB,EAAA,GAAA,EAAA,0CAAA,EAAA,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,EACtC,CAAA;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";var index=require("./index-BDC4d4pa.js"),common=require("./common-BDQKBMeS.js"),align=require("./align-DvUkg_hj.js"),label=require("./label-CU8lZiLE.js"),componentNames=require("./component-names--SvI3zRN.js"),i18n=require("./i18n-BWA16k5X.js"),keyboard=require("./keyboard-BfFtSnNy.js"),clsx=require("./clsx-Bm_HQUnh.js"),events=require("./events-Cd8febUV.js");require("./i18n-yHKQt1gl.js");const tabBehaviorPropTypeOptions=["select-automatic","select-manual"],validateTabBehavior=(e,n)=>{common.watchValidator(e,"_behavior",e=>"string"==typeof e&&tabBehaviorPropTypeOptions.includes(e),new Set([`KoliBriTabBehavior {${tabBehaviorPropTypeOptions.join(", ")}`]),n)},validateHasCreateButton=(e,n)=>{common.watchBoolean(e,"_hasCreateButton",n)},defaultStyleCss='/* 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 --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\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: lightgray;\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 opacity: 0.5;\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=1773232431126"); /* IE9*/\n src: url("kolicons.eot?t=1773232431126#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1773232431126") format("woff2"), url("kolicons.woff?t=1773232431126") format("woff"), url("kolicons.ttf?t=1773232431126") format("truetype"), url("kolicons.svg?t=1773232431126#kolicons") format("svg"); /* iOS 4.1- */\n}\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\n.kolicon-alert-error::before {\n content: "\\ea01";\n}\n\n.kolicon-alert-info::before {\n content: "\\ea02";\n}\n\n.kolicon-alert-success::before {\n content: "\\ea03";\n}\n\n.kolicon-alert-warning::before {\n content: "\\ea04";\n}\n\n.kolicon-check::before {\n content: "\\ea05";\n}\n\n.kolicon-chevron-double-left::before {\n content: "\\ea06";\n}\n\n.kolicon-chevron-double-right::before {\n content: "\\ea07";\n}\n\n.kolicon-chevron-down::before {\n content: "\\ea08";\n}\n\n.kolicon-chevron-left::before {\n content: "\\ea09";\n}\n\n.kolicon-chevron-right::before {\n content: "\\ea0a";\n}\n\n.kolicon-chevron-up::before {\n content: "\\ea0b";\n}\n\n.kolicon-cogwheel::before {\n content: "\\ea0c";\n}\n\n.kolicon-cross::before {\n content: "\\ea0d";\n}\n\n.kolicon-eye-closed::before {\n content: "\\ea0e";\n}\n\n.kolicon-eye::before {\n content: "\\ea0f";\n}\n\n.kolicon-house::before {\n content: "\\ea10";\n}\n\n.kolicon-kolibri::before {\n content: "\\ea11";\n}\n\n.kolicon-link-external::before {\n content: "\\ea12";\n}\n\n.kolicon-link::before {\n content: "\\ea13";\n}\n\n.kolicon-minus::before {\n content: "\\ea14";\n}\n\n.kolicon-plus::before {\n content: "\\ea15";\n}\n\n.kolicon-settings::before {\n content: "\\ea16";\n}\n\n.kolicon-sort-asc::before {\n content: "\\ea17";\n}\n\n.kolicon-sort-desc::before {\n content: "\\ea18";\n}\n\n.kolicon-sort-neutral::before {\n content: "\\ea19";\n}\n\n.kolicon-up::before {\n content: "\\ea1a";\n}\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: #000;\n background-color: #fff;\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: #000;\n background-color: #fff;\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 .kol-tabs__panel {\n height: 100%;\n }\n}',KolTabs=class{constructor(e){index.registerInstance(this,e),this.onCreateLabel=`${i18n.translate("kol-new")} …`,this.nextPossibleTabIndex=(e,n,t=1)=>{const o=n+t;return o<e.length?e[o]._disabled?this.nextPossibleTabIndex(e,n,t+1):o:n},this.prevPossibleTabIndex=(e,n,t=1)=>{const o=n-t;return o>=0?e[o]._disabled?this.prevPossibleTabIndex(e,n,t+1):o:n},this.onKeyDown=e=>{switch(e.key){case keyboard.KeyboardKey.ArrowRight:this.goToNextTab(e);break;case keyboard.KeyboardKey.ArrowLeft:this.goToPreviousTab(e);break;case keyboard.KeyboardKey.Space:case keyboard.KeyboardKey.Enter:this.activateFocusedTab(e)}},this.onClickSelect=(e,n)=>{this.selectNextTabEvent(e,n)},this.onMouseDown=e=>{e.preventDefault()},this.callbacks={onClick:this.onClickSelect,onMouseDown:this.onMouseDown},this.catchTabPanelHost=e=>{this.tabPanelHost=e},this._align="top",this._hasCreateButton=!1,this._selected=0,this.state={_align:"top",_label:"",_selected:0,_tabs:[]},this.selectNextNotDisabledTab=(e,n,t=!0,o)=>{if(e>n.length-1&&(e=n.length-1),e<0&&(e=0),Array.isArray(n)&&n[e]&&n[e]._disabled){if(!0===t){if(e<n.length-1)return this.selectNextNotDisabledTab(e+1,n,!0,o||e);e=o||e,t=!1}if(!1===t){if(e>0)return this.selectNextNotDisabledTab(e-1,n,!1,o||e);common.devHint("[KolTabs] All tabs are disabled, and therefore no tab can be displayed.")}}return e},this.syncSelectedAndTabs=(e,n,t,o)=>{let i,a;i="_selected"===o?e:this.state._selected,a="_tabs"===o?e:this.state._tabs,a.length>0&&n.set("_selected",this.selectNextNotDisabledTab(i,a))},this.refreshTabPanels=()=>{var e,n,t,o;if(this.tabPanelHost){for(;this.tabPanelHost.firstChild;)this.tabPanelHost.removeChild(this.tabPanelHost.firstChild);for(let i=0;i<(null===(e=this.state._tabs)||void 0===e?void 0:e.length);i++){const e=document.createElement("div");e.setAttribute("aria-labelledby",`${this.state._label.replace(/\s/g,"-")}-tab-${i}`),e.setAttribute("id",`tabpanel-${i}`),e.setAttribute("role","tabpanel"),e.setAttribute("hidden",""),e.setAttribute("tabindex","0");const a=document.createElement("slot");a.setAttribute("name",`tabpanel-slot-${i}`),e.appendChild(a),null===(n=this.tabPanelHost)||void 0===n||n.appendChild(e),"undefined"!=typeof HTMLCollection&&(null===(t=this.host)||void 0===t?void 0:t.children)instanceof HTMLCollection&&(null===(o=this.host)||void 0===o?void 0:o.children[i])&&this.host.children[i].setAttribute("slot",`tabpanel-slot-${i}`)}this.updateVisiblePanel()}},this.updateVisiblePanel=()=>{this.tabPanelHost&&Array.from(this.tabPanelHost.children).forEach((e,n)=>{n===this.state._selected?e.removeAttribute("hidden"):e.setAttribute("hidden","")})},this.onCreate=e=>{var n,t;e.preventDefault(),null===(t=null===(n=this.state._on)||void 0===n?void 0:n.onCreate)||void 0===t||t.call(n,e),this.host&&events.dispatchDomEvent(this.host,events.KolEvent.create)},this.onBlur=()=>{this.currentFocusIndex=void 0}}getCurrentFocusIndex(){return"number"==typeof this.currentFocusIndex?this.currentFocusIndex:this.state._selected}getKeyboardTabChangeMode(){return"select-manual"===this._behavior?"selectFocusOnly":"activateCompletely"}goToNextTab(e){const n=this.nextPossibleTabIndex(this.state._tabs,this.getCurrentFocusIndex());this.selectNextTabEvent(e,n,this.getKeyboardTabChangeMode())}goToPreviousTab(e){const n=this.prevPossibleTabIndex(this.state._tabs,this.getCurrentFocusIndex());this.selectNextTabEvent(e,n,this.getKeyboardTabChangeMode())}activateFocusedTab(e){"number"==typeof this.currentFocusIndex&&this.onSelect(e,this.currentFocusIndex)}selectNextTabEvent(e,n,t="activateCompletely"){var o,i;if(this.currentFocusIndex=n,this.focusTabById(n),"activateCompletely"===t){this._selected=n;null===(i=null===(o=this.state._tabs[n]._on)||void 0===o?void 0:o.onSelect)||void 0===i||i.call(o,e,n),this.onSelect(e,n)}}renderButtonGroup(){return index.h("div",{"aria-label":this.state._label,class:"kol-tabs__button-group",role:"tablist",onKeyDown:this.onKeyDown,onBlur:this.onBlur},this.state._tabs.map((e,n)=>index.h(componentNames.KolButtonWcTag,{_disabled:e._disabled,_icons:e._icons,_hideLabel:e._hideLabel,_label:e._label,_on:this.callbacks,_tabIndex:this.state._selected===n?0:-1,_tooltipAlign:e._tooltipAlign,_variant:this.state._selected===n?"custom":void 0,_customClass:this.state._selected===n?"selected":"",_ariaControls:`tabpanel-${n}`,_ariaSelected:this.state._selected===n,_id:`${this.state._label.replace(/\s/g,"-")}-tab-${n}`,_role:"tab",_value:n})),this.state._hasCreateButton&&index.h(componentNames.KolButtonWcTag,{class:"kol-tabs__button-create",_label:this.onCreateLabel,_on:{onClick:this.onCreate},_icons:"kolicon-plus","data-testid":"tabs-create-button"}))}render(){return index.h("div",{key:"4e58f1f69a3ba972d4a98a25fa4b2a65c78a79ff",ref:e=>{this.tabPanelsElement=e},class:clsx.clsx("kol-tabs",`kol-tabs--align-${this.state._align}`)},this.renderButtonGroup(),index.h("div",{key:"b16bba05b5dad4d0144231086488f0f1d7e1daf3",class:"kol-tabs__content",ref:this.catchTabPanelHost}))}validateAlign(e){align.validateAlign(this,e)}validateBehavior(e){validateTabBehavior(this,e)}validateHasCreateButton(e){validateHasCreateButton(this,e)}validateLabel(e){label.validateLabel(this,e,{required:!0})}validateOn(e){if("object"==typeof e&&null!==e){const n={};"function"==typeof e.onCreate&&(n.onCreate=e.onCreate),"function"==typeof e.onSelect&&(n.onSelect=e.onSelect),common.setState(this,"_on",n)}}validateSelected(e){common.watchNumber(this,"_selected",e,{hooks:{beforePatch:this.syncSelectedAndTabs}})}validateTabs(e){common.watchJsonArrayString(this,"_tabs",e=>"object"==typeof e&&null!==e&&"string"==typeof e._label&&e._label.length>0,e,void 0,{hooks:{beforePatch:this.syncSelectedAndTabs,afterPatch:this.refreshTabPanels}}),common.uiUxHintMillerscheZahl("KolTabs",this.state._tabs.length)}componentWillLoad(){this.validateAlign(this._align),this.validateLabel(this._label),this.validateOn(this._on),this.validateSelected(this._selected),this.validateTabs(this._tabs),this.validateBehavior(this._behavior),this.validateHasCreateButton(this._hasCreateButton)}componentDidRender(){this.refreshTabPanels()}focusTabById(e){if(this.tabPanelsElement){const n=common.koliBriQuerySelector(`button#${this.state._label.replace(/\s/g,"-")}-tab-${e}`,this.tabPanelsElement);null==n||n.focus()}}onSelect(e,n){var t,o;null===(o=null===(t=this._on)||void 0===t?void 0:t.onSelect)||void 0===o||o.call(t,e,n),this.host&&events.dispatchDomEvent(this.host,events.KolEvent.select,n),this.focusTabById(n)}get host(){return index.getElement(this)}static get watchers(){return{_align:["validateAlign"],_behavior:["validateBehavior"],_hasCreateButton:["validateHasCreateButton"],_label:["validateLabel"],_on:["validateOn"],_selected:["validateSelected"],_tabs:["validateTabs"]}}};KolTabs.style={default:defaultStyleCss},exports.kol_tabs=KolTabs;
4
+ "use strict";var index=require("./index-DMu8_ik9.js"),common=require("./common-BDQKBMeS.js"),align=require("./align-DvUkg_hj.js"),label=require("./label-CU8lZiLE.js"),componentNames=require("./component-names--SvI3zRN.js"),i18n=require("./i18n-BWA16k5X.js"),keyboard=require("./keyboard-BfFtSnNy.js"),clsx=require("./clsx-Bm_HQUnh.js"),events=require("./events-Cd8febUV.js");require("./i18n-yHKQt1gl.js");const tabBehaviorPropTypeOptions=["select-automatic","select-manual"],validateTabBehavior=(e,n)=>{common.watchValidator(e,"_behavior",e=>"string"==typeof e&&tabBehaviorPropTypeOptions.includes(e),new Set([`KoliBriTabBehavior {${tabBehaviorPropTypeOptions.join(", ")}`]),n)},validateHasCreateButton=(e,n)=>{common.watchBoolean(e,"_hasCreateButton",n)},defaultStyleCss='/* 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 --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\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: lightgray;\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 opacity: 0.5;\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=1773990435463"); /* IE9*/\n src: url("kolicons.eot?t=1773990435463#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1773990435463") format("woff2"), url("kolicons.woff?t=1773990435463") format("woff"), url("kolicons.ttf?t=1773990435463") format("truetype"), url("kolicons.svg?t=1773990435463#kolicons") format("svg"); /* iOS 4.1- */\n}\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\n.kolicon-alert-error::before {\n content: "\\ea01";\n}\n\n.kolicon-alert-info::before {\n content: "\\ea02";\n}\n\n.kolicon-alert-success::before {\n content: "\\ea03";\n}\n\n.kolicon-alert-warning::before {\n content: "\\ea04";\n}\n\n.kolicon-check::before {\n content: "\\ea05";\n}\n\n.kolicon-chevron-double-left::before {\n content: "\\ea06";\n}\n\n.kolicon-chevron-double-right::before {\n content: "\\ea07";\n}\n\n.kolicon-chevron-down::before {\n content: "\\ea08";\n}\n\n.kolicon-chevron-left::before {\n content: "\\ea09";\n}\n\n.kolicon-chevron-right::before {\n content: "\\ea0a";\n}\n\n.kolicon-chevron-up::before {\n content: "\\ea0b";\n}\n\n.kolicon-cogwheel::before {\n content: "\\ea0c";\n}\n\n.kolicon-cross::before {\n content: "\\ea0d";\n}\n\n.kolicon-eye-closed::before {\n content: "\\ea0e";\n}\n\n.kolicon-eye::before {\n content: "\\ea0f";\n}\n\n.kolicon-house::before {\n content: "\\ea10";\n}\n\n.kolicon-kolibri::before {\n content: "\\ea11";\n}\n\n.kolicon-link-external::before {\n content: "\\ea12";\n}\n\n.kolicon-link::before {\n content: "\\ea13";\n}\n\n.kolicon-minus::before {\n content: "\\ea14";\n}\n\n.kolicon-plus::before {\n content: "\\ea15";\n}\n\n.kolicon-settings::before {\n content: "\\ea16";\n}\n\n.kolicon-sort-asc::before {\n content: "\\ea17";\n}\n\n.kolicon-sort-desc::before {\n content: "\\ea18";\n}\n\n.kolicon-sort-neutral::before {\n content: "\\ea19";\n}\n\n.kolicon-up::before {\n content: "\\ea1a";\n}\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: #000;\n background-color: #fff;\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: #000;\n background-color: #fff;\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 .kol-tabs__panel {\n height: 100%;\n }\n}',KolTabs=class{constructor(e){index.registerInstance(this,e),this.onCreateLabel=`${i18n.translate("kol-new")} …`,this.nextPossibleTabIndex=(e,n,t=1)=>{const o=n+t;return o<e.length?e[o]._disabled?this.nextPossibleTabIndex(e,n,t+1):o:n},this.prevPossibleTabIndex=(e,n,t=1)=>{const o=n-t;return o>=0?e[o]._disabled?this.prevPossibleTabIndex(e,n,t+1):o:n},this.onKeyDown=e=>{switch(e.key){case keyboard.KeyboardKey.ArrowRight:this.goToNextTab(e);break;case keyboard.KeyboardKey.ArrowLeft:this.goToPreviousTab(e);break;case keyboard.KeyboardKey.Space:case keyboard.KeyboardKey.Enter:this.activateFocusedTab(e)}},this.onClickSelect=(e,n)=>{this.selectNextTabEvent(e,n)},this.onMouseDown=e=>{e.preventDefault()},this.callbacks={onClick:this.onClickSelect,onMouseDown:this.onMouseDown},this.catchTabPanelHost=e=>{this.tabPanelHost=e},this._align="top",this._hasCreateButton=!1,this._selected=0,this.state={_align:"top",_label:"",_selected:0,_tabs:[]},this.selectNextNotDisabledTab=(e,n,t=!0,o)=>{if(e>n.length-1&&(e=n.length-1),e<0&&(e=0),Array.isArray(n)&&n[e]&&n[e]._disabled){if(!0===t){if(e<n.length-1)return this.selectNextNotDisabledTab(e+1,n,!0,o||e);e=o||e,t=!1}if(!1===t){if(e>0)return this.selectNextNotDisabledTab(e-1,n,!1,o||e);common.devHint("[KolTabs] All tabs are disabled, and therefore no tab can be displayed.")}}return e},this.syncSelectedAndTabs=(e,n,t,o)=>{let i,a;i="_selected"===o?e:this.state._selected,a="_tabs"===o?e:this.state._tabs,a.length>0&&n.set("_selected",this.selectNextNotDisabledTab(i,a))},this.refreshTabPanels=()=>{var e,n,t,o;if(this.tabPanelHost){for(;this.tabPanelHost.firstChild;)this.tabPanelHost.removeChild(this.tabPanelHost.firstChild);for(let i=0;i<(null===(e=this.state._tabs)||void 0===e?void 0:e.length);i++){const e=document.createElement("div");e.setAttribute("aria-labelledby",`${this.state._label.replace(/\s/g,"-")}-tab-${i}`),e.setAttribute("id",`tabpanel-${i}`),e.setAttribute("role","tabpanel"),e.setAttribute("hidden",""),e.setAttribute("tabindex","0");const a=document.createElement("slot");a.setAttribute("name",`tabpanel-slot-${i}`),e.appendChild(a),null===(n=this.tabPanelHost)||void 0===n||n.appendChild(e),"undefined"!=typeof HTMLCollection&&(null===(t=this.host)||void 0===t?void 0:t.children)instanceof HTMLCollection&&(null===(o=this.host)||void 0===o?void 0:o.children[i])&&this.host.children[i].setAttribute("slot",`tabpanel-slot-${i}`)}this.updateVisiblePanel()}},this.updateVisiblePanel=()=>{this.tabPanelHost&&Array.from(this.tabPanelHost.children).forEach((e,n)=>{n===this.state._selected?e.removeAttribute("hidden"):e.setAttribute("hidden","")})},this.onCreate=e=>{var n,t;e.preventDefault(),null===(t=null===(n=this.state._on)||void 0===n?void 0:n.onCreate)||void 0===t||t.call(n,e),this.host&&events.dispatchDomEvent(this.host,events.KolEvent.create)},this.onBlur=()=>{this.currentFocusIndex=void 0}}getCurrentFocusIndex(){return"number"==typeof this.currentFocusIndex?this.currentFocusIndex:this.state._selected}getKeyboardTabChangeMode(){return"select-manual"===this._behavior?"selectFocusOnly":"activateCompletely"}goToNextTab(e){const n=this.nextPossibleTabIndex(this.state._tabs,this.getCurrentFocusIndex());this.selectNextTabEvent(e,n,this.getKeyboardTabChangeMode())}goToPreviousTab(e){const n=this.prevPossibleTabIndex(this.state._tabs,this.getCurrentFocusIndex());this.selectNextTabEvent(e,n,this.getKeyboardTabChangeMode())}activateFocusedTab(e){"number"==typeof this.currentFocusIndex&&this.onSelect(e,this.currentFocusIndex)}selectNextTabEvent(e,n,t="activateCompletely"){var o,i;if(this.currentFocusIndex=n,this.focusTabById(n),"activateCompletely"===t){this._selected=n;null===(i=null===(o=this.state._tabs[n]._on)||void 0===o?void 0:o.onSelect)||void 0===i||i.call(o,e,n),this.onSelect(e,n)}}renderButtonGroup(){return index.h("div",{"aria-label":this.state._label,class:"kol-tabs__button-group",role:"tablist",onKeyDown:this.onKeyDown,onBlur:this.onBlur},this.state._tabs.map((e,n)=>index.h(componentNames.KolButtonWcTag,{_disabled:e._disabled,_icons:e._icons,_hideLabel:e._hideLabel,_label:e._label,_on:this.callbacks,_tabIndex:this.state._selected===n?0:-1,_tooltipAlign:e._tooltipAlign,_variant:this.state._selected===n?"custom":void 0,_customClass:this.state._selected===n?"selected":"",_ariaControls:`tabpanel-${n}`,_ariaSelected:this.state._selected===n,_id:`${this.state._label.replace(/\s/g,"-")}-tab-${n}`,_role:"tab",_value:n})),this.state._hasCreateButton&&index.h(componentNames.KolButtonWcTag,{class:"kol-tabs__button-create",_label:this.onCreateLabel,_on:{onClick:this.onCreate},_icons:"kolicon-plus","data-testid":"tabs-create-button"}))}render(){return index.h("div",{key:"7ffe401b113f0331ccac35130ddd22078747d840",ref:e=>{this.tabPanelsElement=e},class:clsx.clsx("kol-tabs",`kol-tabs--align-${this.state._align}`)},this.renderButtonGroup(),index.h("div",{key:"3e524e7918e5dd1a105efd9359561bf89779343a",class:"kol-tabs__content",ref:this.catchTabPanelHost}))}validateAlign(e){align.validateAlign(this,e)}validateBehavior(e){validateTabBehavior(this,e)}validateHasCreateButton(e){validateHasCreateButton(this,e)}validateLabel(e){label.validateLabel(this,e,{required:!0})}validateOn(e){if("object"==typeof e&&null!==e){const n={};"function"==typeof e.onCreate&&(n.onCreate=e.onCreate),"function"==typeof e.onSelect&&(n.onSelect=e.onSelect),common.setState(this,"_on",n)}}validateSelected(e){common.watchNumber(this,"_selected",e,{hooks:{beforePatch:this.syncSelectedAndTabs}})}validateTabs(e){common.watchJsonArrayString(this,"_tabs",e=>"object"==typeof e&&null!==e&&"string"==typeof e._label&&e._label.length>0,e,void 0,{hooks:{beforePatch:this.syncSelectedAndTabs,afterPatch:this.refreshTabPanels}}),common.uiUxHintMillerscheZahl("KolTabs",this.state._tabs.length)}componentWillLoad(){this.validateAlign(this._align),this.validateLabel(this._label),this.validateOn(this._on),this.validateSelected(this._selected),this.validateTabs(this._tabs),this.validateBehavior(this._behavior),this.validateHasCreateButton(this._hasCreateButton)}componentDidRender(){this.refreshTabPanels()}focusTabById(e){if(this.tabPanelsElement){const n=common.koliBriQuerySelector(`button#${this.state._label.replace(/\s/g,"-")}-tab-${e}`,this.tabPanelsElement);null==n||n.focus()}}onSelect(e,n){var t,o;null===(o=null===(t=this._on)||void 0===t?void 0:t.onSelect)||void 0===o||o.call(t,e,n),this.host&&events.dispatchDomEvent(this.host,events.KolEvent.select,n),this.focusTabById(n)}get host(){return index.getElement(this)}static get watchers(){return{_align:["validateAlign"],_behavior:["validateBehavior"],_hasCreateButton:["validateHasCreateButton"],_label:["validateLabel"],_on:["validateOn"],_selected:["validateSelected"],_tabs:["validateTabs"]}}};KolTabs.style={default:defaultStyleCss},exports.kol_tabs=KolTabs;
@@ -1 +1 @@
1
- {"version":3,"file":"kol-tabs.entry.cjs.js","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 '../../styles/global' as *;\n@use '../host-display-block' as *;\n@use '../tooltip/style.scss' as *;\n@use '../@shared/kol-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\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, Prop, State, Watch } from '@stencil/core';\nimport type {\n\tAlignPropType,\n\tButtonCallbacksPropType,\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 { dispatchDomEvent, KolEvent } from '../../utils/events';\n// https://www.w3.org/TR/wai-aria-practices-1.1/examples/tabs/tabs-2/tabs.html\n\n@Component({\n\ttag: 'kol-tabs',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolTabs implements TabsAPI {\n\t@Element() private readonly host?: HTMLKolTabsElement;\n\tprivate tabPanelsElement?: HTMLElement;\n\tprivate onCreateLabel = `${translate('kol-new')} …`;\n\tprivate currentFocusIndex: number | undefined;\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\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\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 as HTMLElement;\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\tdiv.setAttribute('tabindex', '0');\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"],"names":["watchValidator","watchBoolean","translate","KeyboardKey","devHint","dispatchDomEvent","KolEvent","h","index","KolButtonWcTag","clsx","validateAlign","validateLabel","setState","watchNumber","watchJsonArrayString","uiUxHintMillerscheZahl","koliBriQuerySelector"],"mappings":";;;;;;;;;;;;;;;;AAIA,MAAM,0BAA0B,GAAG,CAAC,kBAAkB,EAAE,eAAe,CAAU;AAW1E,MAAM,mBAAmB,GAAG,CAAC,SAAoC,EAAE,KAA2B,KAAU;AAC9G,IAAAA,qBAAc,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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KAAa,EAAA;AACjC,QAAA,IAAI,IAAI,CAAC,gBAAgB,EAAmC;YAC3D,MAAM,MAAM,GAAuBC,2BAAoB,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;YACdZ,uBAAgB,CAAC,IAAI,CAAC,IAAI,EAAEC,eAAQ,CAAC,MAAM,EAAE,KAAK,CAAC;;AAGpD,QAAA,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"kol-tabs.entry.cjs.js","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\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, Prop, State, Watch } from '@stencil/core';\nimport type {\n\tAlignPropType,\n\tButtonCallbacksPropType,\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 { 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 TabsAPI {\n\t@Element() private readonly host?: HTMLKolTabsElement;\n\tprivate tabPanelsElement?: HTMLElement;\n\tprivate onCreateLabel = `${translate('kol-new')} …`;\n\tprivate currentFocusIndex: number | undefined;\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\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\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 as HTMLElement;\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\tdiv.setAttribute('tabindex', '0');\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"],"names":["watchValidator","watchBoolean","translate","KeyboardKey","devHint","dispatchDomEvent","KolEvent","h","index","KolButtonWcTag","clsx","validateAlign","validateLabel","setState","watchNumber","watchJsonArrayString","uiUxHintMillerscheZahl","ko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