@public-ui/components 4.1.4-rc.1 → 4.1.4-rc.3

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 (400) 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 +9 -9
  6. package/custom-elements.json +1 -1
  7. package/dist/cjs/{Alert-Cz8hF1Zp.js → Alert--F5OUtkd.js} +1 -1
  8. package/dist/cjs/{Alert-Cz8hF1Zp.js.map → Alert--F5OUtkd.js.map} +1 -1
  9. package/dist/cjs/{Collapsible-ntgaXnYl.js → Collapsible-DFTOFuy8.js} +1 -1
  10. package/dist/cjs/{Collapsible-ntgaXnYl.js.map → Collapsible-DFTOFuy8.js.map} +1 -1
  11. package/dist/cjs/{CustomSuggestionsOptionsGroup-CeNOKGiP.js → CustomSuggestionsOptionsGroup-CR3AKhNz.js} +1 -1
  12. package/dist/cjs/{CustomSuggestionsOptionsGroup-CeNOKGiP.js.map → CustomSuggestionsOptionsGroup-CR3AKhNz.js.map} +1 -1
  13. package/dist/cjs/{FieldControlStateWrapper-24WCI7Wu.js → FieldControlStateWrapper-BldUsszN.js} +1 -1
  14. package/dist/cjs/{FieldControlStateWrapper-24WCI7Wu.js.map → FieldControlStateWrapper-BldUsszN.js.map} +1 -1
  15. package/dist/cjs/{FormFieldStateWrapper-CHj8xCox.js → FormFieldStateWrapper-bDXoBUjT.js} +1 -1
  16. package/dist/cjs/{FormFieldStateWrapper-CHj8xCox.js.map → FormFieldStateWrapper-bDXoBUjT.js.map} +1 -1
  17. package/dist/cjs/{Heading-ZeA7jYKQ.js → Heading-Bo6gqvUD.js} +1 -1
  18. package/dist/cjs/{Heading-ZeA7jYKQ.js.map → Heading-Bo6gqvUD.js.map} +1 -1
  19. package/dist/cjs/{Input-DEfyGC4b.js → Input-BvDggoL0.js} +1 -1
  20. package/dist/cjs/{Input-DEfyGC4b.js.map → Input-BvDggoL0.js.map} +1 -1
  21. package/dist/cjs/{InputStateWrapper-D7ky_stK.js → InputStateWrapper-Cn8LXODE.js} +1 -1
  22. package/dist/cjs/{InputStateWrapper-D7ky_stK.js.map → InputStateWrapper-Cn8LXODE.js.map} +1 -1
  23. package/dist/cjs/{app-globals-C4K7-73F.js → app-globals-Bhyz2GUn.js} +1 -1
  24. package/dist/cjs/{app-globals-C4K7-73F.js.map → app-globals-Bhyz2GUn.js.map} +1 -1
  25. package/dist/cjs/{component-DeoFooWq.js → component-CZimHbaT.js} +1 -1
  26. package/dist/cjs/{component-DeoFooWq.js.map → component-CZimHbaT.js.map} +1 -1
  27. package/dist/cjs/{component-6sHxfcnM.js → component-CpO5LOpw.js} +1 -1
  28. package/dist/cjs/{component-6sHxfcnM.js.map → component-CpO5LOpw.js.map} +1 -1
  29. package/dist/cjs/{component-HM8p2KEJ.js → component-DLdJXHe1.js} +1 -1
  30. package/dist/cjs/{component-HM8p2KEJ.js.map → component-DLdJXHe1.js.map} +1 -1
  31. package/dist/cjs/{controller-uIa6no_S.js → controller-DAScJsWi.js} +1 -1
  32. package/dist/cjs/{controller-uIa6no_S.js.map → controller-DAScJsWi.js.map} +1 -1
  33. package/dist/cjs/{controller-X0jJMcJW.js → controller-DZodpL9g.js} +1 -1
  34. package/dist/cjs/{controller-X0jJMcJW.js.map → controller-DZodpL9g.js.map} +1 -1
  35. package/dist/cjs/{controller-Cif3yYuW.js → controller-DnPg4O7R.js} +1 -1
  36. package/dist/cjs/{controller-Cif3yYuW.js.map → controller-DnPg4O7R.js.map} +1 -1
  37. package/dist/cjs/{controller-BSG6IOzZ.js → controller-Ze7yxINs.js} +1 -1
  38. package/dist/cjs/{controller-BSG6IOzZ.js.map → controller-Ze7yxINs.js.map} +1 -1
  39. package/dist/cjs/{controller-icon-Cam_5Fs2.js → controller-icon-DrzBiMzk.js} +1 -1
  40. package/dist/cjs/{controller-icon-Cam_5Fs2.js.map → controller-icon-DrzBiMzk.js.map} +1 -1
  41. package/dist/cjs/{dev.utils-BaspkCBu.js → dev.utils-CJ2dHtNp.js} +1 -1
  42. package/dist/cjs/{dev.utils-BaspkCBu.js.map → dev.utils-CJ2dHtNp.js.map} +1 -1
  43. package/dist/cjs/{devtools-B80EAfxR.js → devtools-B-Ctu0Nk.js} +1 -1
  44. package/dist/cjs/{devtools-B80EAfxR.js.map → devtools-B-Ctu0Nk.js.map} +1 -1
  45. package/dist/cjs/{index-BTV_8HQr.js → index-C38Eo8_F.js} +1 -1
  46. package/dist/cjs/{index-BTV_8HQr.js.map → index-C38Eo8_F.js.map} +1 -1
  47. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  48. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  49. package/dist/cjs/kol-alert-wc.cjs.entry.js +1 -1
  50. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  51. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  52. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  53. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  54. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  55. package/dist/cjs/kol-button-wc.cjs.entry.js +1 -1
  56. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  57. package/dist/cjs/kol-card-wc.cjs.entry.js +1 -1
  58. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  59. package/dist/cjs/kol-click-button.cjs.entry.js +1 -1
  60. package/dist/cjs/kol-combobox.cjs.entry.js +1 -1
  61. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  62. package/dist/cjs/kol-dialog-wc.cjs.entry.js +1 -1
  63. package/dist/cjs/kol-dialog.cjs.entry.js +1 -1
  64. package/dist/cjs/kol-drawer.cjs.entry.js +1 -1
  65. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  66. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  67. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  68. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  69. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  70. package/dist/cjs/kol-input-checkbox.entry.cjs.js.map +1 -1
  71. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  72. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  73. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  74. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  75. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  76. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  77. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  78. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  79. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  80. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  81. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  82. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  83. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  84. package/dist/cjs/kol-meter.cjs.entry.js +1 -1
  85. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  86. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  87. package/dist/cjs/kol-pagination-wc.cjs.entry.js +1 -1
  88. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  89. package/dist/cjs/kol-popover-button-wc.cjs.entry.js +1 -1
  90. package/dist/cjs/kol-popover-button.cjs.entry.js +1 -1
  91. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  92. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  93. package/dist/cjs/kol-select-wc.cjs.entry.js +1 -1
  94. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  95. package/dist/cjs/kol-single-select.cjs.entry.js +1 -1
  96. package/dist/cjs/kol-skeleton.cjs.entry.js +1 -1
  97. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  98. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  99. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  100. package/dist/cjs/kol-table-settings-wc.cjs.entry.js +1 -1
  101. package/dist/cjs/kol-table-stateful.cjs.entry.js +1 -1
  102. package/dist/cjs/kol-table-stateful.entry.cjs.js.map +1 -1
  103. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js +1 -1
  104. package/dist/cjs/kol-table-stateless.cjs.entry.js +1 -1
  105. package/dist/cjs/kol-table-stateless.entry.cjs.js.map +1 -1
  106. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  107. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  108. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  109. package/dist/cjs/kol-toolbar.cjs.entry.js +1 -1
  110. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +1 -1
  111. package/dist/cjs/kol-tree-item-wc.cjs.entry.js +1 -1
  112. package/dist/cjs/kol-tree-item.cjs.entry.js +1 -1
  113. package/dist/cjs/kol-tree-wc.cjs.entry.js +1 -1
  114. package/dist/cjs/kol-tree.cjs.entry.js +1 -1
  115. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  116. package/dist/cjs/kolibri.cjs.js +1 -1
  117. package/dist/cjs/loader.cjs.js +1 -1
  118. package/dist/cjs/test-component.cjs.entry.js +1 -1
  119. package/dist/components/kol-abbr.js +1 -1
  120. package/dist/components/kol-accordion.js +1 -1
  121. package/dist/components/kol-alert.js +1 -1
  122. package/dist/components/kol-badge.js +1 -1
  123. package/dist/components/kol-breadcrumb.js +1 -1
  124. package/dist/components/kol-button-link.js +1 -1
  125. package/dist/components/kol-button.js +1 -1
  126. package/dist/components/kol-card.js +1 -1
  127. package/dist/components/kol-combobox.js +1 -1
  128. package/dist/components/kol-details.js +1 -1
  129. package/dist/components/kol-dialog.js +1 -1
  130. package/dist/components/kol-drawer.js +1 -1
  131. package/dist/components/kol-form.js +1 -1
  132. package/dist/components/kol-icon.js +1 -1
  133. package/dist/components/kol-input-checkbox.js +1 -1
  134. package/dist/components/kol-input-checkbox.js.map +1 -1
  135. package/dist/components/kol-input-color.js +1 -1
  136. package/dist/components/kol-input-date.js +1 -1
  137. package/dist/components/kol-input-email.js +1 -1
  138. package/dist/components/kol-input-file.js +1 -1
  139. package/dist/components/kol-input-number.js +1 -1
  140. package/dist/components/kol-input-password.js +1 -1
  141. package/dist/components/kol-input-radio.js +1 -1
  142. package/dist/components/kol-input-range.js +1 -1
  143. package/dist/components/kol-input-text.js +1 -1
  144. package/dist/components/kol-link-button.js +1 -1
  145. package/dist/components/kol-link.js +1 -1
  146. package/dist/components/kol-modal.js +1 -1
  147. package/dist/components/kol-nav.js +1 -1
  148. package/dist/components/kol-pagination.js +1 -1
  149. package/dist/components/kol-popover-button.js +1 -1
  150. package/dist/components/kol-select.js +1 -1
  151. package/dist/components/kol-single-select.js +1 -1
  152. package/dist/components/kol-skip-nav.js +1 -1
  153. package/dist/components/kol-split-button.js +1 -1
  154. package/dist/components/kol-table-stateful.js +1 -1
  155. package/dist/components/kol-table-stateful.js.map +1 -1
  156. package/dist/components/kol-table-stateless.js +1 -1
  157. package/dist/components/kol-table-stateless.js.map +1 -1
  158. package/dist/components/kol-tabs.js +1 -1
  159. package/dist/components/kol-textarea.js +1 -1
  160. package/dist/components/kol-toast-container.js +1 -1
  161. package/dist/components/kol-toolbar.js +1 -1
  162. package/dist/components/kol-tree-item.js +1 -1
  163. package/dist/esm/{Alert-CNbBKPGN.js → Alert-B5KWODS6.js} +1 -1
  164. package/dist/esm/{Alert-CNbBKPGN.js.map → Alert-B5KWODS6.js.map} +1 -1
  165. package/dist/esm/{Collapsible-BPzPZuCM.js → Collapsible-G0-5Bdun.js} +1 -1
  166. package/dist/esm/{Collapsible-BPzPZuCM.js.map → Collapsible-G0-5Bdun.js.map} +1 -1
  167. package/dist/esm/{CustomSuggestionsOptionsGroup-B1gvir2y.js → CustomSuggestionsOptionsGroup-CSlTuhtQ.js} +1 -1
  168. package/dist/{kolibri/CustomSuggestionsOptionsGroup-B1gvir2y.js.map → esm/CustomSuggestionsOptionsGroup-CSlTuhtQ.js.map} +1 -1
  169. package/dist/esm/{FieldControlStateWrapper-DbW1YqmM.js → FieldControlStateWrapper-DdK8x_Zq.js} +1 -1
  170. package/dist/{kolibri/FieldControlStateWrapper-DbW1YqmM.js.map → esm/FieldControlStateWrapper-DdK8x_Zq.js.map} +1 -1
  171. package/dist/esm/{FormFieldStateWrapper-CWC_T2V6.js → FormFieldStateWrapper-DMGj_ktW.js} +1 -1
  172. package/dist/{kolibri/FormFieldStateWrapper-CWC_T2V6.js.map → esm/FormFieldStateWrapper-DMGj_ktW.js.map} +1 -1
  173. package/dist/esm/{Heading-BrSxbA87.js → Heading-uyeDBNru.js} +1 -1
  174. package/dist/{kolibri/Heading-BrSxbA87.js.map → esm/Heading-uyeDBNru.js.map} +1 -1
  175. package/dist/esm/Input-C1MDH59i.js +4 -0
  176. package/dist/esm/{Input-ClFdRiF1.js.map → Input-C1MDH59i.js.map} +1 -1
  177. package/dist/esm/{InputStateWrapper-BKS2iOfy.js → InputStateWrapper-BV3ADUHL.js} +1 -1
  178. package/dist/esm/{InputStateWrapper-BKS2iOfy.js.map → InputStateWrapper-BV3ADUHL.js.map} +1 -1
  179. package/dist/esm/{app-globals-C6Irh5ZH.js → app-globals-DtFkA8QB.js} +1 -1
  180. package/dist/esm/{app-globals-C6Irh5ZH.js.map → app-globals-DtFkA8QB.js.map} +1 -1
  181. package/dist/esm/{component-sZ20spQ6.js → component-BiN2w_i3.js} +1 -1
  182. package/dist/esm/{component-sZ20spQ6.js.map → component-BiN2w_i3.js.map} +1 -1
  183. package/dist/esm/component-DeXlKUBS.js +4 -0
  184. package/dist/esm/{component-OtHwqg1I.js.map → component-DeXlKUBS.js.map} +1 -1
  185. package/dist/esm/{component-Bn_ahKfK.js → component-Dg1kfcHt.js} +1 -1
  186. package/dist/esm/{component-Bn_ahKfK.js.map → component-Dg1kfcHt.js.map} +1 -1
  187. package/dist/esm/{controller-CqJX1McJ.js → controller-CW3KixNs.js} +1 -1
  188. package/dist/{kolibri/controller-CqJX1McJ.js.map → esm/controller-CW3KixNs.js.map} +1 -1
  189. package/dist/esm/{controller-DBUYvuDB.js → controller-D0ziSIe4.js} +1 -1
  190. package/dist/esm/{controller-DBUYvuDB.js.map → controller-D0ziSIe4.js.map} +1 -1
  191. package/dist/esm/controller-DCOGmj2Z.js +4 -0
  192. package/dist/esm/{controller-Bq5rujy2.js.map → controller-DCOGmj2Z.js.map} +1 -1
  193. package/dist/esm/{controller-Gobc7mv-.js → controller-DRpGydxm.js} +1 -1
  194. package/dist/esm/{controller-Gobc7mv-.js.map → controller-DRpGydxm.js.map} +1 -1
  195. package/dist/esm/{controller-icon-CcvojG6N.js → controller-icon-eHFTwwAq.js} +1 -1
  196. package/dist/esm/{controller-icon-CcvojG6N.js.map → controller-icon-eHFTwwAq.js.map} +1 -1
  197. package/dist/esm/{dev.utils-UUgQWQxj.js → dev.utils-OocbD-tX.js} +1 -1
  198. package/dist/esm/{dev.utils-UUgQWQxj.js.map → dev.utils-OocbD-tX.js.map} +1 -1
  199. package/dist/esm/{devtools-CpN8MIei.js → devtools-BxVHdf_D.js} +1 -1
  200. package/dist/{kolibri/devtools-CpN8MIei.js.map → esm/devtools-BxVHdf_D.js.map} +1 -1
  201. package/dist/esm/{index-Bc-dkuUs.js → index-BLN7o4q9.js} +1 -1
  202. package/dist/{kolibri/index-Bc-dkuUs.js.map → esm/index-BLN7o4q9.js.map} +1 -1
  203. package/dist/esm/kol-abbr.entry.js +1 -1
  204. package/dist/esm/kol-accordion.entry.js +1 -1
  205. package/dist/esm/kol-alert-wc.entry.js +1 -1
  206. package/dist/esm/kol-alert.entry.js +1 -1
  207. package/dist/esm/kol-avatar.entry.js +1 -1
  208. package/dist/esm/kol-badge.entry.js +1 -1
  209. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  210. package/dist/esm/kol-button-link.entry.js +1 -1
  211. package/dist/esm/kol-button-wc.entry.js +1 -1
  212. package/dist/esm/kol-button.entry.js +1 -1
  213. package/dist/esm/kol-card-wc.entry.js +1 -1
  214. package/dist/esm/kol-card.entry.js +1 -1
  215. package/dist/esm/kol-click-button.entry.js +1 -1
  216. package/dist/esm/kol-combobox.entry.js +1 -1
  217. package/dist/esm/kol-details.entry.js +1 -1
  218. package/dist/esm/kol-dialog-wc.entry.js +1 -1
  219. package/dist/esm/kol-dialog.entry.js +1 -1
  220. package/dist/esm/kol-drawer.entry.js +1 -1
  221. package/dist/esm/kol-form.entry.js +1 -1
  222. package/dist/esm/kol-heading.entry.js +1 -1
  223. package/dist/esm/kol-icon.entry.js +1 -1
  224. package/dist/esm/kol-image.entry.js +1 -1
  225. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  226. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  227. package/dist/esm/kol-input-color.entry.js +1 -1
  228. package/dist/esm/kol-input-date.entry.js +1 -1
  229. package/dist/esm/kol-input-email.entry.js +1 -1
  230. package/dist/esm/kol-input-file.entry.js +1 -1
  231. package/dist/esm/kol-input-number.entry.js +1 -1
  232. package/dist/esm/kol-input-password.entry.js +1 -1
  233. package/dist/esm/kol-input-radio.entry.js +1 -1
  234. package/dist/esm/kol-input-range.entry.js +1 -1
  235. package/dist/esm/kol-input-text.entry.js +1 -1
  236. package/dist/esm/kol-kolibri.entry.js +1 -1
  237. package/dist/esm/kol-link-button.entry.js +1 -1
  238. package/dist/esm/kol-link-wc.entry.js +1 -1
  239. package/dist/esm/kol-link.entry.js +1 -1
  240. package/dist/esm/kol-meter.entry.js +1 -1
  241. package/dist/esm/kol-modal.entry.js +1 -1
  242. package/dist/esm/kol-nav.entry.js +1 -1
  243. package/dist/esm/kol-pagination-wc.entry.js +1 -1
  244. package/dist/esm/kol-pagination.entry.js +1 -1
  245. package/dist/esm/kol-popover-button-wc.entry.js +1 -1
  246. package/dist/esm/kol-popover-button.entry.js +1 -1
  247. package/dist/esm/kol-progress.entry.js +1 -1
  248. package/dist/esm/kol-quote.entry.js +1 -1
  249. package/dist/esm/kol-select-wc.entry.js +1 -1
  250. package/dist/esm/kol-select.entry.js +1 -1
  251. package/dist/esm/kol-single-select.entry.js +1 -1
  252. package/dist/esm/kol-skeleton.entry.js +1 -1
  253. package/dist/esm/kol-skip-nav.entry.js +1 -1
  254. package/dist/esm/kol-spin.entry.js +1 -1
  255. package/dist/esm/kol-split-button.entry.js +1 -1
  256. package/dist/esm/kol-table-settings-wc.entry.js +1 -1
  257. package/dist/esm/kol-table-stateful.entry.js +1 -1
  258. package/dist/esm/kol-table-stateful.entry.js.map +1 -1
  259. package/dist/esm/kol-table-stateless-wc.entry.js +1 -1
  260. package/dist/esm/kol-table-stateless.entry.js +1 -1
  261. package/dist/esm/kol-table-stateless.entry.js.map +1 -1
  262. package/dist/esm/kol-tabs.entry.js +1 -1
  263. package/dist/esm/kol-textarea.entry.js +1 -1
  264. package/dist/esm/kol-toast-container.entry.js +1 -1
  265. package/dist/esm/kol-toolbar.entry.js +1 -1
  266. package/dist/esm/kol-tooltip-wc.entry.js +1 -1
  267. package/dist/esm/kol-tree-item-wc.entry.js +1 -1
  268. package/dist/esm/kol-tree-item.entry.js +1 -1
  269. package/dist/esm/kol-tree-wc.entry.js +1 -1
  270. package/dist/esm/kol-tree.entry.js +1 -1
  271. package/dist/esm/kol-version.entry.js +1 -1
  272. package/dist/esm/kolibri.js +1 -1
  273. package/dist/esm/loader.js +1 -1
  274. package/dist/esm/test-component.entry.js +1 -1
  275. package/dist/kolibri/{Alert-CNbBKPGN.js → Alert-B5KWODS6.js} +1 -1
  276. package/dist/kolibri/{Alert-CNbBKPGN.js.map → Alert-B5KWODS6.js.map} +1 -1
  277. package/dist/kolibri/{Collapsible-BPzPZuCM.js → Collapsible-G0-5Bdun.js} +1 -1
  278. package/dist/kolibri/{Collapsible-BPzPZuCM.js.map → Collapsible-G0-5Bdun.js.map} +1 -1
  279. package/dist/kolibri/{CustomSuggestionsOptionsGroup-B1gvir2y.js → CustomSuggestionsOptionsGroup-CSlTuhtQ.js} +1 -1
  280. package/dist/{esm/CustomSuggestionsOptionsGroup-B1gvir2y.js.map → kolibri/CustomSuggestionsOptionsGroup-CSlTuhtQ.js.map} +1 -1
  281. package/dist/kolibri/FieldControlStateWrapper-DdK8x_Zq.js +4 -0
  282. package/dist/{esm/FieldControlStateWrapper-DbW1YqmM.js.map → kolibri/FieldControlStateWrapper-DdK8x_Zq.js.map} +1 -1
  283. package/dist/kolibri/FormFieldStateWrapper-DMGj_ktW.js +4 -0
  284. package/dist/{esm/FormFieldStateWrapper-CWC_T2V6.js.map → kolibri/FormFieldStateWrapper-DMGj_ktW.js.map} +1 -1
  285. package/dist/kolibri/{Heading-BrSxbA87.js → Heading-uyeDBNru.js} +1 -1
  286. package/dist/{esm/Heading-BrSxbA87.js.map → kolibri/Heading-uyeDBNru.js.map} +1 -1
  287. package/dist/kolibri/Input-C1MDH59i.js +4 -0
  288. package/dist/kolibri/{Input-ClFdRiF1.js.map → Input-C1MDH59i.js.map} +1 -1
  289. package/dist/kolibri/InputStateWrapper-BV3ADUHL.js +4 -0
  290. package/dist/kolibri/{InputStateWrapper-BKS2iOfy.js.map → InputStateWrapper-BV3ADUHL.js.map} +1 -1
  291. package/dist/kolibri/app-globals-DtFkA8QB.js +4 -0
  292. package/dist/kolibri/{app-globals-C6Irh5ZH.js.map → app-globals-DtFkA8QB.js.map} +1 -1
  293. package/dist/kolibri/component-BiN2w_i3.js +4 -0
  294. package/dist/kolibri/{component-sZ20spQ6.js.map → component-BiN2w_i3.js.map} +1 -1
  295. package/dist/kolibri/component-DeXlKUBS.js +4 -0
  296. package/dist/kolibri/{component-OtHwqg1I.js.map → component-DeXlKUBS.js.map} +1 -1
  297. package/dist/kolibri/{component-Bn_ahKfK.js → component-Dg1kfcHt.js} +1 -1
  298. package/dist/kolibri/{component-Bn_ahKfK.js.map → component-Dg1kfcHt.js.map} +1 -1
  299. package/dist/kolibri/{controller-CqJX1McJ.js → controller-CW3KixNs.js} +1 -1
  300. package/dist/{esm/controller-CqJX1McJ.js.map → kolibri/controller-CW3KixNs.js.map} +1 -1
  301. package/dist/kolibri/{controller-DBUYvuDB.js → controller-D0ziSIe4.js} +1 -1
  302. package/dist/kolibri/{controller-DBUYvuDB.js.map → controller-D0ziSIe4.js.map} +1 -1
  303. package/dist/kolibri/{controller-Bq5rujy2.js → controller-DCOGmj2Z.js} +1 -1
  304. package/dist/kolibri/{controller-Bq5rujy2.js.map → controller-DCOGmj2Z.js.map} +1 -1
  305. package/dist/kolibri/{controller-Gobc7mv-.js → controller-DRpGydxm.js} +1 -1
  306. package/dist/kolibri/{controller-Gobc7mv-.js.map → controller-DRpGydxm.js.map} +1 -1
  307. package/dist/kolibri/{controller-icon-CcvojG6N.js → controller-icon-eHFTwwAq.js} +1 -1
  308. package/dist/kolibri/{controller-icon-CcvojG6N.js.map → controller-icon-eHFTwwAq.js.map} +1 -1
  309. package/dist/kolibri/{dev.utils-UUgQWQxj.js → dev.utils-OocbD-tX.js} +1 -1
  310. package/dist/kolibri/{dev.utils-UUgQWQxj.js.map → dev.utils-OocbD-tX.js.map} +1 -1
  311. package/dist/kolibri/{devtools-CpN8MIei.js → devtools-BxVHdf_D.js} +1 -1
  312. package/dist/{esm/devtools-CpN8MIei.js.map → kolibri/devtools-BxVHdf_D.js.map} +1 -1
  313. package/dist/kolibri/{index-Bc-dkuUs.js → index-BLN7o4q9.js} +1 -1
  314. package/dist/{esm/index-Bc-dkuUs.js.map → kolibri/index-BLN7o4q9.js.map} +1 -1
  315. package/dist/kolibri/kol-abbr.entry.js +1 -1
  316. package/dist/kolibri/kol-accordion.entry.js +1 -1
  317. package/dist/kolibri/kol-alert-wc.entry.js +1 -1
  318. package/dist/kolibri/kol-alert.entry.js +1 -1
  319. package/dist/kolibri/kol-avatar.entry.js +1 -1
  320. package/dist/kolibri/kol-badge.entry.js +1 -1
  321. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  322. package/dist/kolibri/kol-button-link.entry.js +1 -1
  323. package/dist/kolibri/kol-button-wc.entry.js +1 -1
  324. package/dist/kolibri/kol-button.entry.js +1 -1
  325. package/dist/kolibri/kol-card-wc.entry.js +1 -1
  326. package/dist/kolibri/kol-card.entry.js +1 -1
  327. package/dist/kolibri/kol-click-button.entry.js +1 -1
  328. package/dist/kolibri/kol-combobox.entry.js +1 -1
  329. package/dist/kolibri/kol-details.entry.js +1 -1
  330. package/dist/kolibri/kol-dialog-wc.entry.js +1 -1
  331. package/dist/kolibri/kol-dialog.entry.js +1 -1
  332. package/dist/kolibri/kol-drawer.entry.js +1 -1
  333. package/dist/kolibri/kol-form.entry.js +1 -1
  334. package/dist/kolibri/kol-heading.entry.js +1 -1
  335. package/dist/kolibri/kol-icon.entry.js +1 -1
  336. package/dist/kolibri/kol-image.entry.js +1 -1
  337. package/dist/kolibri/kol-input-checkbox.entry.esm.js.map +1 -1
  338. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  339. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  340. package/dist/kolibri/kol-input-color.entry.js +1 -1
  341. package/dist/kolibri/kol-input-date.entry.js +1 -1
  342. package/dist/kolibri/kol-input-email.entry.js +1 -1
  343. package/dist/kolibri/kol-input-file.entry.js +1 -1
  344. package/dist/kolibri/kol-input-number.entry.js +1 -1
  345. package/dist/kolibri/kol-input-password.entry.js +1 -1
  346. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  347. package/dist/kolibri/kol-input-range.entry.js +1 -1
  348. package/dist/kolibri/kol-input-text.entry.js +1 -1
  349. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  350. package/dist/kolibri/kol-link-button.entry.js +1 -1
  351. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  352. package/dist/kolibri/kol-link.entry.js +1 -1
  353. package/dist/kolibri/kol-meter.entry.js +1 -1
  354. package/dist/kolibri/kol-modal.entry.js +1 -1
  355. package/dist/kolibri/kol-nav.entry.js +1 -1
  356. package/dist/kolibri/kol-pagination-wc.entry.js +1 -1
  357. package/dist/kolibri/kol-pagination.entry.js +1 -1
  358. package/dist/kolibri/kol-popover-button-wc.entry.js +1 -1
  359. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  360. package/dist/kolibri/kol-progress.entry.js +1 -1
  361. package/dist/kolibri/kol-quote.entry.js +1 -1
  362. package/dist/kolibri/kol-select-wc.entry.js +1 -1
  363. package/dist/kolibri/kol-select.entry.js +1 -1
  364. package/dist/kolibri/kol-single-select.entry.js +1 -1
  365. package/dist/kolibri/kol-skeleton.entry.js +1 -1
  366. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  367. package/dist/kolibri/kol-spin.entry.js +1 -1
  368. package/dist/kolibri/kol-split-button.entry.js +1 -1
  369. package/dist/kolibri/kol-table-settings-wc.entry.js +1 -1
  370. package/dist/kolibri/kol-table-stateful.entry.esm.js.map +1 -1
  371. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  372. package/dist/kolibri/kol-table-stateful.entry.js.map +1 -1
  373. package/dist/kolibri/kol-table-stateless-wc.entry.js +1 -1
  374. package/dist/kolibri/kol-table-stateless.entry.esm.js.map +1 -1
  375. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  376. package/dist/kolibri/kol-table-stateless.entry.js.map +1 -1
  377. package/dist/kolibri/kol-tabs.entry.js +1 -1
  378. package/dist/kolibri/kol-tabs.entry.js.map +1 -1
  379. package/dist/kolibri/kol-textarea.entry.js +1 -1
  380. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  381. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  382. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  383. package/dist/kolibri/kol-tree-item-wc.entry.js +1 -1
  384. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  385. package/dist/kolibri/kol-tree-wc.entry.js +1 -1
  386. package/dist/kolibri/kol-tree.entry.js +1 -1
  387. package/dist/kolibri/kol-version.entry.js +1 -1
  388. package/dist/kolibri/kolibri.esm.js +1 -1
  389. package/dist/kolibri/test-component.entry.js +1 -1
  390. package/package.json +1 -1
  391. package/dist/esm/Input-ClFdRiF1.js +0 -4
  392. package/dist/esm/component-OtHwqg1I.js +0 -4
  393. package/dist/esm/controller-Bq5rujy2.js +0 -4
  394. package/dist/kolibri/FieldControlStateWrapper-DbW1YqmM.js +0 -4
  395. package/dist/kolibri/FormFieldStateWrapper-CWC_T2V6.js +0 -4
  396. package/dist/kolibri/Input-ClFdRiF1.js +0 -4
  397. package/dist/kolibri/InputStateWrapper-BKS2iOfy.js +0 -4
  398. package/dist/kolibri/app-globals-C6Irh5ZH.js +0 -4
  399. package/dist/kolibri/component-OtHwqg1I.js +0 -4
  400. package/dist/kolibri/component-sZ20spQ6.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as t,h as e,F as i,g as n}from"./index-Bc-dkuUs.js";import{_ as l}from"./tslib.es6-CxX45GIN.js";import{b as s,c as o,t as r}from"./component-names-Dy77vq43.js";import{t as a}from"./i18n-BVaUp6qp.js";import{I as c}from"./component-OtHwqg1I.js";import{T as d}from"./component-sZ20spQ6.js";import{P as u,o as f,p as h,b,s as v}from"./common-BqV6Zb30.js";import{c as _,v as p,a as k,b as y,f as m,d as g}from"./table-selection-CXJmsMfX.js";import{v as S}from"./label-vxVEH2gH.js";import{C as j}from"./keyboard-DNd73LVa.js";import{c as w}from"./clsx-COFh-Vc8.js";import{n as A}from"./dev.utils-UUgQWQxj.js";import{d as $,K as x}from"./events-DHTi_wtD.js";import{M as C,e as O,U as D,f as H,b as T,d as F,S as M,h as K}from"./_Uint8Array-kJHDjtoP.js";import{S as B,a as R,i as U}from"./isArray-CcrBs4JM.js";import"./i18n-B2d_exHc.js";import"./bem-registry-Bux_TllX.js";import"./component-Bn_ahKfK.js";var W="__lodash_hash_undefined__";function z(e){return this.__data__.set(e,W),this}function I(e){return this.__data__.has(e)}function E(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new C;++t<i;)this.add(e[t])}function P(e,t){for(var i=-1,l=null==e?0:e.length;++i<l;)if(t(e[i],i,e))return!0;return!1}function N(e,t){return e.has(t)}E.prototype.add=E.prototype.push=z,E.prototype.has=I;var V=1,q=2;function L(e,t,i,l,a,s){var o=i&V,r=e.length,n=t.length;if(r!=n&&!(o&&n>r))return!1;var c=s.get(e),d=s.get(t);if(c&&d)return c==t&&d==e;var h=-1,u=!0,b=i&q?new E:void 0;for(s.set(e,t),s.set(t,e);++h<r;){var f=e[h],v=t[h];if(l)var _=o?l(v,f,h,t,e,s):l(f,v,h,e,t,s);if(void 0!==_){if(_)continue;u=!1;break}if(b){if(!P(t,function(e,t){if(!N(b,t)&&(f===e||a(f,e,i,l,s)))return b.push(t)})){u=!1;break}}else if(f!==v&&!a(f,v,i,l,s)){u=!1;break}}return s.delete(e),s.delete(t),u}function X(e){var t=-1,i=Array(e.size);return e.forEach(function(e,l){i[++t]=[l,e]}),i}function J(e){var t=-1,i=Array(e.size);return e.forEach(function(e){i[++t]=e}),i}var Q=1,Z=2,G="[object Boolean]",Y="[object Date]",tt="[object Error]",et="[object Map]",it="[object Number]",nt="[object RegExp]",lt="[object Set]",st="[object String]",ot="[object Symbol]",rt="[object ArrayBuffer]",at="[object DataView]",ct=B?B.prototype:void 0,dt=ct?ct.valueOf:void 0;function ut(e,t,i,l,a,s,o){switch(i){case at:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case rt:return!(e.byteLength!=t.byteLength||!s(new D(e),new D(t)));case G:case Y:case it:return O(+e,+t);case tt:return e.name==t.name&&e.message==t.message;case nt:case st:return e==t+"";case et:var r=X;case lt:var n=l&Q;if(r||(r=J),e.size!=t.size&&!n)return!1;var c=o.get(e);if(c)return c==t;l|=Z,o.set(e,t);var d=L(r(e),r(t),l,a,s,o);return o.delete(e),d;case ot:if(dt)return dt.call(e)==dt.call(t)}return!1}var ft=1,ht=Object.prototype,bt=ht.hasOwnProperty;function vt(e,t,i,l,a,s){var o=i&ft,r=H(e),n=r.length;if(n!=H(t).length&&!o)return!1;for(var c=n;c--;){var d=r[c];if(!(o?d in t:bt.call(t,d)))return!1}var h=s.get(e),u=s.get(t);if(h&&u)return h==t&&u==e;var b=!0;s.set(e,t),s.set(t,e);for(var f=o;++c<n;){var v=e[d=r[c]],_=t[d];if(l)var p=o?l(_,v,d,t,e,s):l(v,_,d,e,t,s);if(!(void 0===p?v===_||a(v,_,i,l,s):p)){b=!1;break}f||(f="constructor"==d)}if(b&&!f){var y=e.constructor,g=t.constructor;y==g||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof g&&g instanceof g||(b=!1)}return s.delete(e),s.delete(t),b}var _t=1,pt="[object Arguments]",kt="[object Array]",yt="[object Object]",mt=Object.prototype,gt=mt.hasOwnProperty;function St(e,t,i,l,a,s){var o=R(e),r=R(t),n=o?kt:T(e),c=r?kt:T(t),d=(n=n==pt?yt:n)==yt,h=(c=c==pt?yt:c)==yt,u=n==c;if(u&&F(e)){if(!F(t))return!1;o=!0,d=!1}if(u&&!d)return s||(s=new M),o||K(e)?L(e,t,i,l,a,s):ut(e,t,n,i,l,a,s);if(!(i&_t)){var b=d&&gt.call(e,"__wrapped__"),f=h&&gt.call(t,"__wrapped__");if(b||f){var v=b?e.value():e,_=f?t.value():t;return s||(s=new M),a(v,_,i,l,s)}}return!!u&&(s||(s=new M),vt(e,t,i,l,a,s))}function jt(e,t,i,l,a){return e===t||(null==e||null==t||!U(e)&&!U(t)?e!=e&&t!=t:St(e,t,i,l,jt,a))}function wt(e,t){return jt(e,t)}const At=(e,t)=>{u(t,()=>{f(t,()=>{try{t=h(t)}catch(e){}b(e,"_headerCells",e=>{var t,i;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!==(i=e.vertical)&&void 0!==i?i:[]].flat().every(e=>void 0===e.width||"number"==typeof e.width)&&!0},new Set(["TableHeaderCellsPropType"]),t)})})},$t=150,xt=class{constructor(i){t(this,i),this.translateNoEntries=a("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=a("kol-sort"),this.translateSortOrder=a("kol-table-sort-order"),this.maxCols=0,this.fixedOffsets=[],this.settingsChangedCounter=0,this.tableDivElementHasScrollbar=!1,this.stickyColsDisabled=!1,this.renderTableRow=(t,i,l,a=!1)=>{var s,o;let r=String(i);return this.horizontal&&(null===(s=t[0])||void 0===s?void 0:s.data)&&(r=null!==(o=this.getDataKey(t[0].data))&&void 0!==o?o:r),e("tr",{class:w("kol-table__row",{"kol-table__row--body":!a,"kol-table__row--footer":a}),key:`row-${r}`},this.renderSelectionCell(t,i),t.map((e,t)=>this.renderTableCell(e,i,t,l)))},this.renderTableCell=(t,i,l,a)=>{if(!1===t.visible)return"";let s=`${i}-${l}-${t.label}`;if(t.data){const e=this.getDataKey(t.data);s=e?`${e}-${this.horizontal?l:i}`:s}if(t.headerCell)return this.renderHeadingCell(t,i,l,a);{const i="function"!=typeof t.render&&t.label===this.translateNoEntries,a=this.getActionColumnHeader(l),o=Boolean(a&&t.data),r=this.isFixedCol(l),n="left"===r?this.getOffsetString(t.colIndex,!0):void 0,c="right"===r?this.getOffsetString(t.colIndex):void 0,d="function"==typeof t.render;return e("td",{key:`cell-${s}-${this.settingsChangedCounter}`,class:w("kol-table__cell kol-table__cell--body",t.textAlign&&`kol-table__cell--align-${t.textAlign}`,o&&"kol-table__cell--actions",r&&`kol-table__cell--sticky-${r}`),"aria-atomic":i?"false":void 0,"aria-live":i?"polite":void 0,"aria-relevant":i?"text":void 0,colSpan:t.colSpan,rowSpan:t.rowSpan,style:{textAlign:t.textAlign,left:n,right:c},ref:d?e=>{this.cellRender(t,e)}:void 0},o&&a&&t.data?this.renderActionItems(a,t.data,s):d?"":t.label)}},this.renderActionItems=(t,i,a)=>{const r=t.actions(i);return e("div",{class:"kol-table__cell-actions"},r.map((t,i)=>{if("button"===t.type){const o=l(t,[]);return e(s,Object.assign({key:`action-${a}-${i}`},o,{_variant:o._variant}))}if("link"===t.type){const s=l(t,[]);return e(o,Object.assign({key:`action-${a}-${i}`},s))}return null}))}}validateHasSettingsMenu(e){_(this,e)}validateData(e){p(this,e,{beforePatch:e=>{this.updateDataToKeyMap(e)}})}validateDataFoot(e){k(this,e)}validateFixedCols(e){y(this,e),this.checkAndUpdateStickyState()}validateHeaderCells(e){At(this,e),wt(this.previousHeaderCells,this.state._headerCells)||this.initializeHeaderCellSettings(),this.previousHeaderCells=this.state._headerCells}validateLabel(e){S(this,e,{required:!0})}validateOn(e){m(this,e)}validateSelection(e){g(this,e),this.checkAndUpdateStickyState()}handleKeyDown(e){var t;if("ArrowUp"===e.key||"ArrowDown"===e.key){const i=null===(t=this.tableDivElement)||void 0===t?void 0:t.querySelector(":focus");let l=this.checkboxRefs.indexOf(i);l>-1&&(e.preventDefault(),"ArrowDown"===e.key?(l=(l+1)%this.checkboxRefs.length,this.checkboxRefs[l].focus()):"ArrowUp"===e.key&&(e.preventDefault(),l=(l+this.checkboxRefs.length-1)%this.checkboxRefs.length,this.checkboxRefs[l].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 i=Object.assign(Object.assign({},this.state._headerCells),{horizontal:e.detail});v(this,"_headerCells",i),this.settingsChangedCounter++,"function"==typeof(null===(t=this.state._on)||void 0===t?void 0:t[j.onChangeHeaderCells])&&this.state._on[j.onChangeHeaderCells](e,i)}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()},$t)}checkDivElementScrollbar(){this.tableDivElement&&(this.tableDivElementHasScrollbar=this.tableDivElement.scrollWidth>this.tableDivElement.clientWidth)}calculateFixedColsWidth(){var e,t,i,l,a,s;if(!this._fixedCols)return 0;const o=this.getPrimaryHeaders(this.state._headerCells);let r=0;for(let i=0;i<this._fixedCols[0]&&i<o.length;i++)r+=null!==(t=null===(e=o[i])||void 0===e?void 0:e.width)&&void 0!==t?t:0;for(let e=this.maxCols-this._fixedCols[1];e<this.maxCols&&e<o.length;e++)r+=null!==(l=null===(i=o[e])||void 0===i?void 0:i.width)&&void 0!==l?l:0;if(this.state._selection){const e=null===(a=this.tableDivElement)||void 0===a?void 0:a.querySelector(".kol-table__cell--selection");r+=null!==(s=null==e?void 0:e.offsetWidth)&&void 0!==s?s:0}return r}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,A())}),this.dataToKeyMap.forEach((t,i)=>{e.includes(i)||this.dataToKeyMap.delete(i)})}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 i=this.getPrimaryHeaders(this.state._headerCells)[e];return i&&"action"===i.type?i:void 0}cellRender(e,t){t&&(clearTimeout(this.cellsToRenderTimeouts.get(t)),this.cellsToRenderTimeouts.set(t,setTimeout(()=>{if("function"==typeof e.render){const i=e.render(t,e,e.data,this.state._data);"string"==typeof i&&(t.textContent=i)}})))}getNumberOfCols(e,t){let i=0;return e.forEach(e=>{let t=0;Array.isArray(e)&&e.forEach(e=>{var i;t+=null!==(i=e.colSpan)&&void 0!==i?i:1}),i<t&&(i=t)}),0===i&&(i=t.length),i}getNumberOfRows(e,t){var i;let l=0;return e.forEach(e=>{let t=0;Array.isArray(e)&&e.forEach(e=>{var i;t+=null!==(i=e.rowSpan)&&void 0!==i?i:1}),l<t&&(l=t)}),0===l?l=t.length:l-=(null===(i=this.state._dataFoot)||void 0===i?void 0:i.length)||0,l}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,i;let l=this.getThePrimaryHeadersWithKeyOrRenderFunction(null!==(t=e.horizontal)&&void 0!==t?t:[]);return this.horizontal=!0,0===l.length&&(l=this.getThePrimaryHeadersWithKeyOrRenderFunction(null!==(i=e.vertical)&&void 0!==i?i:[]),l.length>0&&(this.horizontal=!1)),l}createDataField(e,t,i){var l,a,s,o,r,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),u=0;i&&(u=h,h+=(null===(l=this.state._dataFoot)||void 0===l?void 0:l.length)||0);const b=[],f=[],v=[];t.vertical.forEach((e,t)=>{f[t]=0,v[t]=[]});const _=d;for(let l=u;l<h;l++){const d=[];t.vertical.forEach((e,t)=>{let i=0;if(v[t].forEach(e=>i+=e),i<=l){const a=e[l-i+f[t]];if("object"==typeof a){d.push(Object.assign(Object.assign({},a),{headerCell:!0,data:{}}));let e=1;if("number"==typeof a.rowSpan&&a.rowSpan>1&&(e=a.rowSpan),v[t].push(e),"number"==typeof a.colSpan&&a.colSpan>1)for(let i=1;i<a.colSpan;i++)v[t+i].push(e);f[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!==(a=this.fixedOffsets[t-1])&&void 0!==a?a:0;e+=null!==(o=null===(s=_[t-1])||void 0===s?void 0:s.width)&&void 0!==o?o:0,this.fixedOffsets[t]=e}if("right"===h&&void 0===this.getFixedOffset(t)){let e=null!==(r=this.fixedOffsets[t+1])&&void 0!==r?r:0;e+=null!==(c=null===(n=_[t+1])||void 0===n?void 0:n.width)&&void 0!==c?c:0,this.fixedOffsets[t]=e}if(!0===this.horizontal){const a=i&&this.state._dataFoot?this.state._dataFoot[l-u]:e[l];if("object"==typeof _[t]&&null!==_[t]&&"object"==typeof a&&null!==a&&("string"==typeof _[t].key||"function"==typeof _[t].render)){const e=a[_[t].key];d.push(Object.assign(Object.assign({},_[t]),{colIndex:t,colSpan:void 0,rowSpan:void 0,data:a,label:e}))}}else if("object"==typeof _[l]&&null!==_[l]&&"object"==typeof e[t]&&null!==e[t]&&("string"==typeof _[l].key||"function"==typeof _[l].render)){const i=_[l].key,a=e[t][i];d.push(Object.assign(Object.assign({},_[l]),{colIndex:t,colSpan:void 0,rowSpan:void 0,data:e[t],label:a}))}}b.push(d)}if(0===e.length){let e=0,i=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=>{i+=e.rowSpan||1}));const l={colSpan:e,label:this.translateNoEntries,render:void 0,rowSpan:Math.max(i,1)};0===b.length?b.push([l]):b[0].push(l)}return b}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 i;"function"==typeof(null===(i=this.state._on)||void 0===i?void 0:i[j.onSelectionChange])&&this.state._on[j.onSelectionChange](e,t),this.host&&$(this.host,x.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})))});v(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(t,i){var l;const a=this.state._selection;if(!a)return"";const s=this.getSelectionKeyPropertyName(),o=null===(l=t[0])||void 0===l?void 0:l.data;if(!o)return"";const r=o[s],n=a.multiple||void 0===a.multiple,h=(()=>{const e=null==a?void 0:a.selectedKeys;return(void 0===e?[]:Array.isArray(e)?e:[e]).some(e=>String(e)===String(r))})(),u=(()=>{const e=null==a?void 0:a.disabledKeys;return(void 0===e?[]:Array.isArray(e)?e:[e]).some(e=>String(e)===String(r))})(),b=a.label(o),f={name:"selection",checked:h,disabled:u,id:String(r),"aria-label":b};return e("td",{key:`tbody-${i}-selection`,class:"kol-table__cell kol-table__cell--selection"},e("div",{class:w("kol-table__selection",{"kol-table__selection--checked":h})},n?e("label",{class:w("kol-table__selection-label",{"kol-table__selection-label--disabled":u})},e(c,{class:"kol-table__selection-icon",icons:"kolicon "+(h?"kolicon-check":""),label:""}),e("input",Object.assign({class:w("kol-table__selection-input kol-table__selection-input--checkbox"),ref:e=>e&&this.checkboxRefs.push(e)},f,{type:"checkbox",onInput:e=>{const t=(()=>{const e=null==a?void 0:a.selectedKeys;return void 0===e?[]:Array.isArray(e)?e:[e]})(),i=h?t.filter(e=>String(e)!==String(r)):[...t,r];this.handleSelectionChangeCallbackAndEvent(e,null!=i?i:[])}}))):e("label",{class:"kol-table__selection-label"},e("input",Object.assign({class:w("kol-table__selection-input kol-table__selection-input--radio")},f,{type:"radio",onInput:e=>{this.handleSelectionChangeCallbackAndEvent(e,[r])}}))),e("div",{class:"kol-table__selection-input-tooltip"},e(d,{label:b,badgeText:"",id:`${r}-label`,refFloating:()=>{}}))))}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 i;const l=null===(i=this.state._selection)||void 0===i?void 0:i.disabledKeys;return!(void 0===l?[]:Array.isArray(l)?l:[l]).some(i=>String(i)===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 i=this.getSelectionKeyPropertyName(),l=null!==(t=this.getSelectedKeysWithDisabledKeysOnly())&&void 0!==t?t:[];return e&&l.push(...this.getDataWithSelectionEnabled().map(e=>null==e?void 0:e[i])),l}getTableMinWidth(){var e,t;const i=null!==(e=this.state._headerCells.horizontal)&&void 0!==e?e:[],l=[];i.forEach(e=>{e.forEach(e=>{!1!==e.visible&&void 0!==e.width&&e.width>0&&l.push(e.width)})});const a=null!==(t=this.state._headerCells.vertical)&&void 0!==t?t:[],s=[];a.forEach(e=>{e.forEach(e=>{void 0!==e.width&&e.width>0&&s.push(e.width)})});const o=[...s,...l];return 0===o.length?"0px":1===o.length?`${o[0]}px`:`calc(${o.map(e=>`${e}px`).join(" + ")})`}renderHeadingSelectionCell(){var t,i;const l=this.state._selection;if(!l)return e("td",{class:"kol-table__cell kol-table__cell--header",key:"thead-0"});if(!1===l.multiple)return e("td",{key:"thead-0-selection",class:"kol-table__cell kol-table__cell--header kol-table__cell--selection"});const s=null!==(i=null===(t=this.getSelectedKeysWithoutDisabledKeys())||void 0===t?void 0:t.length)&&void 0!==i?i:0,o=s===this.getDataWithSelectionEnabled().length,r=0!==s&&!o;let n="kol-table-selection-indeterminate";o&&!r&&(n="kol-table-selection-none"),0===s&&(n="kol-table-selection-all");const h=a(n);return e("th",{key:"thead-0-selection",class:"kol-table__cell kol-table__cell--header kol-table__cell--selection"},e("div",{class:w("kol-table__selection",{"kol-table__selection--indeterminate":r,"kol-table__selection--checked":o})},e("label",{class:"kol-table__selection-label"},e(c,{class:"kol-table__selection-icon",icons:"kolicon "+(r?"kolicon-minus":o?"kolicon-check":""),label:""}),e("input",{class:w("kol-table__selection-input kol-table__selection-input--checkbox"),"data-testid":"selection-checkbox-all",ref:e=>e&&this.checkboxRefs.push(e),name:"selection",checked:o&&!r,indeterminate:r,"aria-label":h,type:"checkbox",onInput:e=>{this.handleSelectionChangeCallbackAndEvent(e,this.getRevertedSelection(!o))}})),e("div",{class:"kol-table__selection-input-tooltip"},e(d,{label:h,badgeText:"",id:`${n}-label`,refFloating:()=>{}}))))}renderHeaderTdCell(){const t=this.state._headerCells.horizontal,l=this.state._headerCells.vertical;if(!Array.isArray(t)||0===t.length||!Array.isArray(l)||0===l.length)return e(i,null);const a=l.reduce((e,t)=>{var i;const l=null==t?void 0:t[0];return e+(null!==(i=null==l?void 0:l.width)&&void 0!==i?i:0)},0);return e("td",{"aria-hidden":"true",colSpan:l.length,rowSpan:t.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(t,i,l,a){if(!1===t.visible)return"";const o=!1!==(null==t?void 0:t.sortable),r="string"==typeof t.sortDirection,n=o&&r;let c="none",d="kolicon-sort-neutral";if(n&&t.sortDirection)switch(t.sortDirection){case"ASC":d="kolicon-sort-asc",c="ascending";break;case"DESC":d="kolicon-sort-desc",c="descending";break;default:c="none"}const h=a?"row":"number"==typeof t.colSpan&&t.colSpan>1?"colgroup":"col",u="number"==typeof t.sortOrder&&t.sortOrder>0?t.sortOrder:void 0,b=this.getSortAriaDescription(u),f=void 0!==t.width?`${t.width}px`:void 0,v=this.isFixedCol(l),_="left"===v?this.getOffsetString(l,!0):void 0,p="right"===v?this.getOffsetString(l):void 0;return e("th",{key:`${i}-${l}-${t.label}`,class:w("kol-table__cell kol-table__cell--header",`kol-table__cell--${c}`,t.textAlign&&`kol-table__cell--align-${t.textAlign}`,v&&`kol-table__cell--sticky-${v}`),scope:h,colSpan:t.colSpan,rowSpan:t.rowSpan,style:{width:f,left:_,right:p},"aria-sort":c,"data-sort":n&&t.sortDirection?`sort-${t.sortDirection}`:void 0},n&&t.sortDirection?e("span",{class:"kol-table__sort"},e(s,{class:"kol-table__sort-button",_icons:{right:d},_label:t.label,_ariaDescription:b,_on:{onClick:e=>{var i;"function"==typeof(null===(i=this.state._on)||void 0===i?void 0:i.onSort)&&t.key&&t.sortDirection&&this.state._on.onSort(e,{key:t.key,currentSortDirection:t.sortDirection}),this.host&&$(this.host,x.sort,{key:t.key,currentSortDirection:t.sortDirection})}}}),u&&e("span",{"aria-hidden":"true",class:"kol-table__sort-order"},u)):t.label)}renderSpacer(t,i){var l,a;const s=(null===(l=this.state._headerCells.vertical)||void 0===l?void 0:l.length)||0,o=null===(a=null==i?void 0:i[0])||void 0===a?void 0:a.reduce((e,t)=>e+(t.colSpan||1),0),r=this.state._selection?1:0;return e("tr",{"aria-hidden":"true",class:w("kol-table__spacer",`kol-table__spacer--${t}`)},e("td",{class:w(`kol-table__spacer-line kol-table__spacer-line--${t}`),colSpan:s+o+r}))}renderFoot(){if(!this.state._dataFoot||0===this.state._dataFoot.length)return null;const t=this.createDataField(this.state._dataFoot,this.state._headerCells,!0);return e("tfoot",{class:"kol-table__footer"},[this.renderSpacer("foot",t),t.map((e,t)=>this.renderTableRow(e,t,!0,!0))])}render(){const t=this.createDataField(this.state._data,this.state._headerCells);this.checkboxRefs=[];const i=this.state._headerCells.horizontal;return e("div",{key:"58848c2a07a40c3fb4aa1edf058aeb08fa0769ba",class:"kol-table"},this.state._hasSettingsMenu&&e(r,{key:"83c320417d105e6a363b611766d65b8f93564496",_horizontalHeaderCells:null!=i?i:[]}),e("div",{key:"07d0d0857d6c2faac908b4ef27f1117f8b3657ff",ref:e=>this.tableDivElement=e,class:"kol-table__scroll-container",tabindex:this.tableDivElementHasScrollbar?"-1":void 0},e("table",{key:"ca0d7629e4311bc1259072fbc3e8041afe2ee29d",class:"kol-table__table",style:{minWidth:this.getTableMinWidth()}},e("caption",{key:"1d7b6fe18b3a10693e03b0d59bafe16f0b424ea5",class:"kol-table__focus-element kol-table__caption",id:"caption",tabindex:this.tableDivElementHasScrollbar?"0":void 0},this.state._label),Array.isArray(i)&&e("thead",{key:"7736a5e70ad8011b596486becf1937464fc5cc3d",class:"kol-table__head"},[i.map((t,i)=>e("tr",{class:"kol-table__head-row",key:`thead-${i}`},this.state._selection&&this.renderHeadingSelectionCell(),0===i&&this.renderHeaderTdCell(),Array.isArray(t)&&t.map((e,t)=>this.renderHeadingCell(e,i,t,!1)))),this.renderSpacer("head",i)]),e("tbody",{key:"c1c09fb657f46835b7d58be54752be62ad3ccca2",class:"kol-table__body"},t.map((e,t)=>this.renderTableRow(e,t,!0))),this.renderFoot())))}get host(){return n(this)}static get watchers(){return{_hasSettingsMenu:["validateHasSettingsMenu"],_data:["validateData"],_dataFoot:["validateDataFoot"],_fixedCols:["validateFixedCols"],_headerCells:["validateHeaderCells"],_label:["validateLabel"],_on:["validateOn"],_selection:["validateSelection"]}}};export{xt as kol_table_stateless_wc};
4
+ import{r as t,h as e,F as i,g as n}from"./index-BLN7o4q9.js";import{_ as l}from"./tslib.es6-CxX45GIN.js";import{b as s,c as o,t as r}from"./component-names-Dy77vq43.js";import{t as a}from"./i18n-BVaUp6qp.js";import{I as c}from"./component-DeXlKUBS.js";import{T as d}from"./component-BiN2w_i3.js";import{P as u,o as f,p as h,b,s as v}from"./common-BqV6Zb30.js";import{c as _,v as p,a as k,b as y,f as m,d as g}from"./table-selection-CXJmsMfX.js";import{v as S}from"./label-vxVEH2gH.js";import{C as j}from"./keyboard-DNd73LVa.js";import{c as w}from"./clsx-COFh-Vc8.js";import{n as A}from"./dev.utils-OocbD-tX.js";import{d as $,K as x}from"./events-DHTi_wtD.js";import{M as C,e as D,U as O,f as H,b as T,d as F,S as M,h as B}from"./_Uint8Array-kJHDjtoP.js";import{S as K,a as R,i as z}from"./isArray-CcrBs4JM.js";import"./i18n-B2d_exHc.js";import"./bem-registry-Bux_TllX.js";import"./component-Dg1kfcHt.js";var N="__lodash_hash_undefined__";function W(e){return this.__data__.set(e,N),this}function E(e){return this.__data__.has(e)}function I(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new C;++t<i;)this.add(e[t])}function P(e,t){for(var i=-1,l=null==e?0:e.length;++i<l;)if(t(e[i],i,e))return!0;return!1}function U(e,t){return e.has(t)}I.prototype.add=I.prototype.push=W,I.prototype.has=E;var L=1,V=2;function X(e,t,i,l,a,s){var o=i&L,r=e.length,n=t.length;if(r!=n&&!(o&&n>r))return!1;var c=s.get(e),d=s.get(t);if(c&&d)return c==t&&d==e;var h=-1,u=!0,b=i&V?new I:void 0;for(s.set(e,t),s.set(t,e);++h<r;){var f=e[h],v=t[h];if(l)var _=o?l(v,f,h,t,e,s):l(f,v,h,e,t,s);if(void 0!==_){if(_)continue;u=!1;break}if(b){if(!P(t,function(e,t){if(!U(b,t)&&(f===e||a(f,e,i,l,s)))return b.push(t)})){u=!1;break}}else if(f!==v&&!a(f,v,i,l,s)){u=!1;break}}return s.delete(e),s.delete(t),u}function q(e){var t=-1,i=Array(e.size);return e.forEach(function(e,l){i[++t]=[l,e]}),i}function J(e){var t=-1,i=Array(e.size);return e.forEach(function(e){i[++t]=e}),i}var G=1,Z=2,Q="[object Boolean]",Y="[object Date]",tt="[object Error]",et="[object Map]",it="[object Number]",nt="[object RegExp]",lt="[object Set]",st="[object String]",ot="[object Symbol]",rt="[object ArrayBuffer]",at="[object DataView]",ct=K?K.prototype:void 0,dt=ct?ct.valueOf:void 0;function ut(e,t,i,l,a,s,o){switch(i){case at:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case rt:return!(e.byteLength!=t.byteLength||!s(new O(e),new O(t)));case Q:case Y:case it:return D(+e,+t);case tt:return e.name==t.name&&e.message==t.message;case nt:case st:return e==t+"";case et:var r=q;case lt:var n=l&G;if(r||(r=J),e.size!=t.size&&!n)return!1;var c=o.get(e);if(c)return c==t;l|=Z,o.set(e,t);var d=X(r(e),r(t),l,a,s,o);return o.delete(e),d;case ot:if(dt)return dt.call(e)==dt.call(t)}return!1}var ft=1,ht=Object.prototype,bt=ht.hasOwnProperty;function vt(e,t,i,l,a,s){var o=i&ft,r=H(e),n=r.length;if(n!=H(t).length&&!o)return!1;for(var c=n;c--;){var d=r[c];if(!(o?d in t:bt.call(t,d)))return!1}var h=s.get(e),u=s.get(t);if(h&&u)return h==t&&u==e;var b=!0;s.set(e,t),s.set(t,e);for(var f=o;++c<n;){var v=e[d=r[c]],_=t[d];if(l)var p=o?l(_,v,d,t,e,s):l(v,_,d,e,t,s);if(!(void 0===p?v===_||a(v,_,i,l,s):p)){b=!1;break}f||(f="constructor"==d)}if(b&&!f){var y=e.constructor,g=t.constructor;y==g||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof g&&g instanceof g||(b=!1)}return s.delete(e),s.delete(t),b}var _t=1,pt="[object Arguments]",kt="[object Array]",yt="[object Object]",mt=Object.prototype,gt=mt.hasOwnProperty;function St(e,t,i,l,a,s){var o=R(e),r=R(t),n=o?kt:T(e),c=r?kt:T(t),d=(n=n==pt?yt:n)==yt,h=(c=c==pt?yt:c)==yt,u=n==c;if(u&&F(e)){if(!F(t))return!1;o=!0,d=!1}if(u&&!d)return s||(s=new M),o||B(e)?X(e,t,i,l,a,s):ut(e,t,n,i,l,a,s);if(!(i&_t)){var b=d&&gt.call(e,"__wrapped__"),f=h&&gt.call(t,"__wrapped__");if(b||f){var v=b?e.value():e,_=f?t.value():t;return s||(s=new M),a(v,_,i,l,s)}}return!!u&&(s||(s=new M),vt(e,t,i,l,a,s))}function jt(e,t,i,l,a){return e===t||(null==e||null==t||!z(e)&&!z(t)?e!=e&&t!=t:St(e,t,i,l,jt,a))}function wt(e,t){return jt(e,t)}const At=(e,t)=>{u(t,()=>{f(t,()=>{try{t=h(t)}catch(e){}b(e,"_headerCells",e=>{var t,i;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!==(i=e.vertical)&&void 0!==i?i:[]].flat().every(e=>void 0===e.width||"number"==typeof e.width)&&!0},new Set(["TableHeaderCellsPropType"]),t)})})},$t=150,xt=class{constructor(i){t(this,i),this.translateNoEntries=a("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=a("kol-sort"),this.translateSortOrder=a("kol-table-sort-order"),this.maxCols=0,this.fixedOffsets=[],this.settingsChangedCounter=0,this.tableDivElementHasScrollbar=!1,this.stickyColsDisabled=!1,this.renderTableRow=(t,i,l,a=!1)=>{var s,o;let r=String(i);return this.horizontal&&(null===(s=t[0])||void 0===s?void 0:s.data)&&(r=null!==(o=this.getDataKey(t[0].data))&&void 0!==o?o:r),e("tr",{class:w("kol-table__row",{"kol-table__row--body":!a,"kol-table__row--footer":a}),key:`row-${r}`},this.renderSelectionCell(t,i),t.map((e,t)=>this.renderTableCell(e,i,t,l)))},this.renderTableCell=(t,i,l,a)=>{if(!1===t.visible)return"";let s=`${i}-${l}-${t.label}`;if(t.data){const e=this.getDataKey(t.data);s=e?`${e}-${this.horizontal?l:i}`:s}if(t.headerCell)return this.renderHeadingCell(t,i,l,a);{const i="function"!=typeof t.render&&t.label===this.translateNoEntries,a=this.getActionColumnHeader(l),o=Boolean(a&&t.data),r=this.isFixedCol(l),n="left"===r?this.getOffsetString(t.colIndex,!0):void 0,c="right"===r?this.getOffsetString(t.colIndex):void 0,d="function"==typeof t.render;return e("td",{key:`cell-${s}-${this.settingsChangedCounter}`,class:w("kol-table__cell kol-table__cell--body",t.textAlign&&`kol-table__cell--align-${t.textAlign}`,o&&"kol-table__cell--actions",r&&`kol-table__cell--sticky-${r}`),"aria-atomic":i?"false":void 0,"aria-live":i?"polite":void 0,"aria-relevant":i?"text":void 0,colSpan:t.colSpan,rowSpan:t.rowSpan,style:{textAlign:t.textAlign,left:n,right:c},ref:d?e=>{this.cellRender(t,e)}:void 0},o&&a&&t.data?this.renderActionItems(a,t.data,s):d?"":t.label)}},this.renderActionItems=(t,i,a)=>{const r=t.actions(i);return e("div",{class:"kol-table__cell-actions"},r.map((t,i)=>{if("button"===t.type){const o=l(t,[]);return e(s,Object.assign({key:`action-${a}-${i}`},o,{_variant:o._variant}))}if("link"===t.type){const s=l(t,[]);return e(o,Object.assign({key:`action-${a}-${i}`},s))}return null}))}}validateHasSettingsMenu(e){_(this,e)}validateData(e){p(this,e,{beforePatch:e=>{this.updateDataToKeyMap(e)}})}validateDataFoot(e){k(this,e)}validateFixedCols(e){y(this,e),this.checkAndUpdateStickyState()}validateHeaderCells(e){At(this,e),wt(this.previousHeaderCells,this.state._headerCells)||this.initializeHeaderCellSettings(),this.previousHeaderCells=this.state._headerCells}validateLabel(e){S(this,e,{required:!0})}validateOn(e){m(this,e)}validateSelection(e){g(this,e),this.checkAndUpdateStickyState()}handleKeyDown(e){var t;if("ArrowUp"===e.key||"ArrowDown"===e.key){const i=null===(t=this.tableDivElement)||void 0===t?void 0:t.querySelector(":focus");let l=this.checkboxRefs.indexOf(i);l>-1&&(e.preventDefault(),"ArrowDown"===e.key?(l=(l+1)%this.checkboxRefs.length,this.checkboxRefs[l].focus()):"ArrowUp"===e.key&&(e.preventDefault(),l=(l+this.checkboxRefs.length-1)%this.checkboxRefs.length,this.checkboxRefs[l].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 i=Object.assign(Object.assign({},this.state._headerCells),{horizontal:e.detail});v(this,"_headerCells",i),this.settingsChangedCounter++,"function"==typeof(null===(t=this.state._on)||void 0===t?void 0:t[j.onChangeHeaderCells])&&this.state._on[j.onChangeHeaderCells](e,i)}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()},$t)}checkDivElementScrollbar(){this.tableDivElement&&(this.tableDivElementHasScrollbar=this.tableDivElement.scrollWidth>this.tableDivElement.clientWidth)}calculateFixedColsWidth(){var e,t,i,l,a,s;if(!this._fixedCols)return 0;const o=this.getPrimaryHeaders(this.state._headerCells);let r=0;for(let i=0;i<this._fixedCols[0]&&i<o.length;i++)r+=null!==(t=null===(e=o[i])||void 0===e?void 0:e.width)&&void 0!==t?t:0;for(let e=this.maxCols-this._fixedCols[1];e<this.maxCols&&e<o.length;e++)r+=null!==(l=null===(i=o[e])||void 0===i?void 0:i.width)&&void 0!==l?l:0;if(this.state._selection){const e=null===(a=this.tableDivElement)||void 0===a?void 0:a.querySelector(".kol-table__cell--selection");r+=null!==(s=null==e?void 0:e.offsetWidth)&&void 0!==s?s:0}return r}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,A())}),this.dataToKeyMap.forEach((t,i)=>{e.includes(i)||this.dataToKeyMap.delete(i)})}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 i=this.getPrimaryHeaders(this.state._headerCells)[e];return i&&"action"===i.type?i:void 0}cellRender(e,t){t&&(clearTimeout(this.cellsToRenderTimeouts.get(t)),this.cellsToRenderTimeouts.set(t,setTimeout(()=>{if("function"==typeof e.render){const i=e.render(t,e,e.data,this.state._data);"string"==typeof i&&(t.textContent=i)}})))}getNumberOfCols(e,t){let i=0;return e.forEach(e=>{let t=0;Array.isArray(e)&&e.forEach(e=>{var i;t+=null!==(i=e.colSpan)&&void 0!==i?i:1}),i<t&&(i=t)}),0===i&&(i=t.length),i}getNumberOfRows(e,t){var i;let l=0;return e.forEach(e=>{let t=0;Array.isArray(e)&&e.forEach(e=>{var i;t+=null!==(i=e.rowSpan)&&void 0!==i?i:1}),l<t&&(l=t)}),0===l?l=t.length:l-=(null===(i=this.state._dataFoot)||void 0===i?void 0:i.length)||0,l}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,i;let l=this.getThePrimaryHeadersWithKeyOrRenderFunction(null!==(t=e.horizontal)&&void 0!==t?t:[]);return this.horizontal=!0,0===l.length&&(l=this.getThePrimaryHeadersWithKeyOrRenderFunction(null!==(i=e.vertical)&&void 0!==i?i:[]),l.length>0&&(this.horizontal=!1)),l}createDataField(e,t,i){var l,a,s,o,r,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),u=0;i&&(u=h,h+=(null===(l=this.state._dataFoot)||void 0===l?void 0:l.length)||0);const b=[],f=[],v=[];t.vertical.forEach((e,t)=>{f[t]=0,v[t]=[]});const _=d;for(let l=u;l<h;l++){const d=[];t.vertical.forEach((e,t)=>{let i=0;if(v[t].forEach(e=>i+=e),i<=l){const a=e[l-i+f[t]];if("object"==typeof a){d.push(Object.assign(Object.assign({},a),{headerCell:!0,data:{}}));let e=1;if("number"==typeof a.rowSpan&&a.rowSpan>1&&(e=a.rowSpan),v[t].push(e),"number"==typeof a.colSpan&&a.colSpan>1)for(let i=1;i<a.colSpan;i++)v[t+i].push(e);f[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!==(a=this.fixedOffsets[t-1])&&void 0!==a?a:0;e+=null!==(o=null===(s=_[t-1])||void 0===s?void 0:s.width)&&void 0!==o?o:0,this.fixedOffsets[t]=e}if("right"===h&&void 0===this.getFixedOffset(t)){let e=null!==(r=this.fixedOffsets[t+1])&&void 0!==r?r:0;e+=null!==(c=null===(n=_[t+1])||void 0===n?void 0:n.width)&&void 0!==c?c:0,this.fixedOffsets[t]=e}if(!0===this.horizontal){const a=i&&this.state._dataFoot?this.state._dataFoot[l-u]:e[l];if("object"==typeof _[t]&&null!==_[t]&&"object"==typeof a&&null!==a&&("string"==typeof _[t].key||"function"==typeof _[t].render)){const e=a[_[t].key];d.push(Object.assign(Object.assign({},_[t]),{colIndex:t,colSpan:void 0,rowSpan:void 0,data:a,label:e}))}}else if("object"==typeof _[l]&&null!==_[l]&&"object"==typeof e[t]&&null!==e[t]&&("string"==typeof _[l].key||"function"==typeof _[l].render)){const i=_[l].key,a=e[t][i];d.push(Object.assign(Object.assign({},_[l]),{colIndex:t,colSpan:void 0,rowSpan:void 0,data:e[t],label:a}))}}b.push(d)}if(0===e.length){let e=0,i=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=>{i+=e.rowSpan||1}));const l={colSpan:e,label:this.translateNoEntries,render:void 0,rowSpan:Math.max(i,1)};0===b.length?b.push([l]):b[0].push(l)}return b}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 i;"function"==typeof(null===(i=this.state._on)||void 0===i?void 0:i[j.onSelectionChange])&&this.state._on[j.onSelectionChange](e,t),this.host&&$(this.host,x.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})))});v(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(t,i){var l;const a=this.state._selection;if(!a)return"";const s=this.getSelectionKeyPropertyName(),o=null===(l=t[0])||void 0===l?void 0:l.data;if(!o)return"";const r=o[s],n=a.multiple||void 0===a.multiple,h=(()=>{const e=null==a?void 0:a.selectedKeys;return(void 0===e?[]:Array.isArray(e)?e:[e]).some(e=>String(e)===String(r))})(),u=(()=>{const e=null==a?void 0:a.disabledKeys;return(void 0===e?[]:Array.isArray(e)?e:[e]).some(e=>String(e)===String(r))})(),b=a.label(o),f={name:"selection",checked:h,disabled:u,id:String(r),"aria-label":b};return e("td",{key:`tbody-${i}-selection`,class:"kol-table__cell kol-table__cell--selection"},e("div",{class:w("kol-table__selection",{"kol-table__selection--checked":h})},n?e("label",{class:w("kol-table__selection-label",{"kol-table__selection-label--disabled":u})},e(c,{class:"kol-table__selection-icon",icons:"kolicon "+(h?"kolicon-check":""),label:""}),e("input",Object.assign({class:w("kol-table__selection-input kol-table__selection-input--checkbox"),ref:e=>e&&this.checkboxRefs.push(e)},f,{type:"checkbox",onInput:e=>{const t=(()=>{const e=null==a?void 0:a.selectedKeys;return void 0===e?[]:Array.isArray(e)?e:[e]})(),i=h?t.filter(e=>String(e)!==String(r)):[...t,r];this.handleSelectionChangeCallbackAndEvent(e,null!=i?i:[])}}))):e("label",{class:"kol-table__selection-label"},e("input",Object.assign({class:w("kol-table__selection-input kol-table__selection-input--radio")},f,{type:"radio",onInput:e=>{this.handleSelectionChangeCallbackAndEvent(e,[r])}}))),e("div",{class:"kol-table__selection-input-tooltip"},e(d,{label:b,badgeText:"",id:`${r}-label`,refFloating:()=>{}}))))}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 i;const l=null===(i=this.state._selection)||void 0===i?void 0:i.disabledKeys;return!(void 0===l?[]:Array.isArray(l)?l:[l]).some(i=>String(i)===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 i=this.getSelectionKeyPropertyName(),l=null!==(t=this.getSelectedKeysWithDisabledKeysOnly())&&void 0!==t?t:[];return e&&l.push(...this.getDataWithSelectionEnabled().map(e=>null==e?void 0:e[i])),l}getTableMinWidth(){var e,t;const i=null!==(e=this.state._headerCells.horizontal)&&void 0!==e?e:[],l=[];i.forEach(e=>{e.forEach(e=>{!1!==e.visible&&void 0!==e.width&&e.width>0&&l.push(e.width)})});const a=null!==(t=this.state._headerCells.vertical)&&void 0!==t?t:[],s=[];a.forEach(e=>{e.forEach(e=>{void 0!==e.width&&e.width>0&&s.push(e.width)})});const o=[...s,...l];return 0===o.length?"0px":1===o.length?`${o[0]}px`:`calc(${o.map(e=>`${e}px`).join(" + ")})`}renderHeadingSelectionCell(){var t,i;const l=this.state._selection;if(!l)return e("td",{class:"kol-table__cell kol-table__cell--header",key:"thead-0"});if(!1===l.multiple)return e("td",{key:"thead-0-selection",class:"kol-table__cell kol-table__cell--header kol-table__cell--selection"});const s=null!==(i=null===(t=this.getSelectedKeysWithoutDisabledKeys())||void 0===t?void 0:t.length)&&void 0!==i?i:0,o=s===this.getDataWithSelectionEnabled().length,r=0!==s&&!o;let n="kol-table-selection-indeterminate";o&&!r&&(n="kol-table-selection-none"),0===s&&(n="kol-table-selection-all");const h=a(n);return e("th",{key:"thead-0-selection",class:"kol-table__cell kol-table__cell--header kol-table__cell--selection"},e("div",{class:w("kol-table__selection",{"kol-table__selection--indeterminate":r,"kol-table__selection--checked":o})},e("label",{class:"kol-table__selection-label"},e(c,{class:"kol-table__selection-icon",icons:"kolicon "+(r?"kolicon-minus":o?"kolicon-check":""),label:""}),e("input",{class:w("kol-table__selection-input kol-table__selection-input--checkbox"),"data-testid":"selection-checkbox-all",ref:e=>e&&this.checkboxRefs.push(e),name:"selection",checked:o&&!r,indeterminate:r,"aria-label":h,type:"checkbox",onInput:e=>{this.handleSelectionChangeCallbackAndEvent(e,this.getRevertedSelection(!o))}})),e("div",{class:"kol-table__selection-input-tooltip"},e(d,{label:h,badgeText:"",id:`${n}-label`,refFloating:()=>{}}))))}renderHeaderTdCell(){const t=this.state._headerCells.horizontal,l=this.state._headerCells.vertical;if(!Array.isArray(t)||0===t.length||!Array.isArray(l)||0===l.length)return e(i,null);const a=l.reduce((e,t)=>{var i;const l=null==t?void 0:t[0];return e+(null!==(i=null==l?void 0:l.width)&&void 0!==i?i:0)},0);return e("td",{"aria-hidden":"true",colSpan:l.length,rowSpan:t.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(t,i,l,a){if(!1===t.visible)return"";const o=!1!==(null==t?void 0:t.sortable),r="string"==typeof t.sortDirection,n=o&&r;let c="none",d="kolicon-sort-neutral";if(n&&t.sortDirection)switch(t.sortDirection){case"ASC":d="kolicon-sort-asc",c="ascending";break;case"DESC":d="kolicon-sort-desc",c="descending";break;default:c="none"}const h=a?"row":"number"==typeof t.colSpan&&t.colSpan>1?"colgroup":"col",u="number"==typeof t.sortOrder&&t.sortOrder>0?t.sortOrder:void 0,b=this.getSortAriaDescription(u),f=void 0!==t.width?`${t.width}px`:void 0,v=this.isFixedCol(l),_="left"===v?this.getOffsetString(l,!0):void 0,p="right"===v?this.getOffsetString(l):void 0;return e("th",{key:`${i}-${l}-${t.label}`,class:w("kol-table__cell kol-table__cell--header",`kol-table__cell--${c}`,t.textAlign&&`kol-table__cell--align-${t.textAlign}`,v&&`kol-table__cell--sticky-${v}`),scope:h,colSpan:t.colSpan,rowSpan:t.rowSpan,style:{width:f,left:_,right:p},"aria-sort":c,"data-sort":n&&t.sortDirection?`sort-${t.sortDirection}`:void 0},n&&t.sortDirection?e("span",{class:"kol-table__sort"},e(s,{class:"kol-table__sort-button",_icons:{right:d},_label:t.label,_ariaDescription:b,_on:{onClick:e=>{var i;"function"==typeof(null===(i=this.state._on)||void 0===i?void 0:i.onSort)&&t.key&&t.sortDirection&&this.state._on.onSort(e,{key:t.key,currentSortDirection:t.sortDirection}),this.host&&$(this.host,x.sort,{key:t.key,currentSortDirection:t.sortDirection})}}}),u&&e("span",{"aria-hidden":"true",class:"kol-table__sort-order"},u)):t.label)}renderSpacer(t,i){var l,a;const s=(null===(l=this.state._headerCells.vertical)||void 0===l?void 0:l.length)||0,o=null===(a=null==i?void 0:i[0])||void 0===a?void 0:a.reduce((e,t)=>e+(t.colSpan||1),0),r=this.state._selection?1:0;return e("tr",{"aria-hidden":"true",class:w("kol-table__spacer",`kol-table__spacer--${t}`)},e("td",{class:w(`kol-table__spacer-line kol-table__spacer-line--${t}`),colSpan:s+o+r}))}renderFoot(){if(!this.state._dataFoot||0===this.state._dataFoot.length)return null;const t=this.createDataField(this.state._dataFoot,this.state._headerCells,!0);return e("tfoot",{class:"kol-table__footer"},[this.renderSpacer("foot",t),t.map((e,t)=>this.renderTableRow(e,t,!0,!0))])}render(){const t=this.createDataField(this.state._data,this.state._headerCells);this.checkboxRefs=[];const i=this.state._headerCells.horizontal;return e("div",{key:"58848c2a07a40c3fb4aa1edf058aeb08fa0769ba",class:"kol-table"},this.state._hasSettingsMenu&&e(r,{key:"83c320417d105e6a363b611766d65b8f93564496",_horizontalHeaderCells:null!=i?i:[]}),e("div",{key:"07d0d0857d6c2faac908b4ef27f1117f8b3657ff",ref:e=>this.tableDivElement=e,class:"kol-table__scroll-container",tabindex:this.tableDivElementHasScrollbar?"-1":void 0},e("table",{key:"ca0d7629e4311bc1259072fbc3e8041afe2ee29d",class:"kol-table__table",style:{minWidth:this.getTableMinWidth()}},e("caption",{key:"1d7b6fe18b3a10693e03b0d59bafe16f0b424ea5",class:"kol-table__focus-element kol-table__caption",id:"caption",tabindex:this.tableDivElementHasScrollbar?"0":void 0},this.state._label),Array.isArray(i)&&e("thead",{key:"7736a5e70ad8011b596486becf1937464fc5cc3d",class:"kol-table__head"},[i.map((t,i)=>e("tr",{class:"kol-table__head-row",key:`thead-${i}`},this.state._selection&&this.renderHeadingSelectionCell(),0===i&&this.renderHeaderTdCell(),Array.isArray(t)&&t.map((e,t)=>this.renderHeadingCell(e,i,t,!1)))),this.renderSpacer("head",i)]),e("tbody",{key:"c1c09fb657f46835b7d58be54752be62ad3ccca2",class:"kol-table__body"},t.map((e,t)=>this.renderTableRow(e,t,!0))),this.renderFoot())))}get host(){return n(this)}static get watchers(){return{_hasSettingsMenu:["validateHasSettingsMenu"],_data:["validateData"],_dataFoot:["validateDataFoot"],_fixedCols:["validateFixedCols"],_headerCells:["validateHeaderCells"],_label:["validateLabel"],_on:["validateOn"],_selection:["validateSelection"]}}};export{xt as kol_table_stateless_wc};
@@ -1 +1 @@
1
- {"version":3,"file":"kol-table-stateless.entry.esm.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":[],"mappings":";;;;;;;AAAA,MAAM,eAAe,GAAG,6lkBAA6lkB;;MCqBxmkB,iBAAiB,GAAA,MAAA;;;;IAyCtB,MAAM,GAAA;AACZ,QAAA,QACC,CAAC,CAAA,sBAAsB,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.esm.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":[],"mappings":";;;;;;;AAAA,MAAM,eAAe,GAAG,skkBAAskkB;;MCqBjlkB,iBAAiB,GAAA,MAAA;;;;IAyCtB,MAAM,GAAA;AACZ,QAAA,QACC,CAAC,CAAA,sBAAsB,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
- import{r as n,h as e}from"./index-Bc-dkuUs.js";import{k as t}from"./component-names-Dy77vq43.js";import"./common-BqV6Zb30.js";const o='@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 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=1777029041506"); /* IE9*/\n src: url("kolicons.eot?t=1777029041506#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1777029041506") format("woff2"), url("kolicons.woff?t=1777029041506") format("woff"), url("kolicons.ttf?t=1777029041506") format("truetype"), url("kolicons.svg?t=1777029041506#kolicons") format("svg"); /* iOS 4.1- */\n}\n@layer kol-component {\n [class^=kolicon-], [class*=" kolicon-"] {\n font-family: "kolicons";\n font-style: normal;\n font-weight: 400;\n line-height: 1em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n .kolicon-alert-error::before {\n content: "\\ea01";\n }\n .kolicon-alert-info::before {\n content: "\\ea02";\n }\n .kolicon-alert-success::before {\n content: "\\ea03";\n }\n .kolicon-alert-warning::before {\n content: "\\ea04";\n }\n .kolicon-check::before {\n content: "\\ea05";\n }\n .kolicon-chevron-double-left::before {\n content: "\\ea06";\n }\n .kolicon-chevron-double-right::before {\n content: "\\ea07";\n }\n .kolicon-chevron-down::before {\n content: "\\ea08";\n }\n .kolicon-chevron-left::before {\n content: "\\ea09";\n }\n .kolicon-chevron-right::before {\n content: "\\ea0a";\n }\n .kolicon-chevron-up::before {\n content: "\\ea0b";\n }\n .kolicon-cogwheel::before {\n content: "\\ea0c";\n }\n .kolicon-cross::before {\n content: "\\ea0d";\n }\n .kolicon-eye-closed::before {\n content: "\\ea0e";\n }\n .kolicon-eye::before {\n content: "\\ea0f";\n }\n .kolicon-house::before {\n content: "\\ea10";\n }\n .kolicon-kolibri::before {\n content: "\\ea11";\n }\n .kolicon-link-external::before {\n content: "\\ea12";\n }\n .kolicon-link::before {\n content: "\\ea13";\n }\n .kolicon-minus::before {\n content: "\\ea14";\n }\n .kolicon-plus::before {\n content: "\\ea15";\n }\n .kolicon-settings::before {\n content: "\\ea16";\n }\n .kolicon-sort-asc::before {\n content: "\\ea17";\n }\n .kolicon-sort-desc::before {\n content: "\\ea18";\n }\n .kolicon-sort-neutral::before {\n content: "\\ea19";\n }\n .kolicon-up::before {\n content: "\\ea1a";\n }\n .kolicon-version::before {\n content: "\\ea1b";\n }\n}\n@layer kol-component {\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #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-popover {\n opacity: 0;\n transition: 0.2s ease-out opacity;\n }\n .kol-popover-button--open + .kol-popover {\n opacity: 1;\n }\n .kol-table-settings {\n 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 overflow: auto;\n }\n .kol-table-settings__columns {\n display: grid;\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 text-align: start;\n }\n .kol-table__sort-button .kol-button {\n color: inherit;\n }\n .kol-table__sort {\n display: inline-flex;\n align-items: center;\n }\n .kol-table__sort-order {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n }\n .kol-table__body {\n text-align: left;\n }\n .kol-table__body .kol-button__text {\n justify-items: start;\n }\n .kol-table__cell--align-left {\n text-align: left;\n }\n .kol-table__cell--align-left .kol-button__text {\n align-items: start;\n }\n .kol-table__cell--align-center {\n text-align: center;\n }\n .kol-table__cell--align-center .kol-button__text {\n align-items: center;\n }\n .kol-table__cell--align-right {\n text-align: right;\n }\n .kol-table__cell--align-right .kol-button__text {\n align-items: end;\n }\n .kol-table__cell--selection {\n background-color: white;\n position: sticky !important;\n left: 0;\n z-index: 2;\n width: var(--kol-table-selection-col-width, auto);\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n white-space: nowrap;\n }\n .kol-table__cell--actions {\n white-space: nowrap;\n }\n .kol-table__cell--actions .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-table__cell--actions :host {\n display: inline-block;\n }\n .kol-table__cell--actions .kol-button {\n display: flex;\n min-height: var(--a11y-min-size);\n font-style: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n text-decoration-line: none;\n }\n .kol-table__cell--actions .kol-button::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: "​";\n }\n .kol-table__cell--actions .kol-button__text {\n flex: 1 0 100%;\n }\n .kol-table__cell--actions .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-table__cell--actions :host {\n display: inline-block;\n }\n .kol-table__cell--actions .kol-link {\n display: inline-flex;\n max-width: fit-content;\n align-items: baseline;\n place-items: center;\n text-align: left;\n text-decoration-line: none;\n }\n .kol-table__cell--actions .kol-link--standalone {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n align-items: stretch;\n }\n .kol-table__cell--actions .kol-link--standalone .kol-link__text {\n display: inline-flex;\n flex: 1 1 100%;\n place-items: center;\n }\n .kol-table__cell--actions .kol-link .kol-span__label {\n text-decoration-line: underline;\n }\n .kol-table__cell--actions .kol-link:focus:not([aria-disabled], [disabled]) .kol-span__label, .kol-table__cell--actions .kol-link:hover:not([aria-disabled], [disabled]) .kol-span__label {\n text-decoration-thickness: 0.2em;\n }\n .kol-table__cell--actions .kol-link__icon {\n display: inline-flex;\n }\n .kol-table__cell--sticky-left, .kol-table__cell--sticky-right {\n background-color: white;\n position: sticky !important;\n z-index: 1;\n }\n .kol-table__cell--sticky-left:nth-last-child(1 of .kol-table__cell--sticky-left) {\n border-right: 2px solid black;\n }\n .kol-table__cell--sticky-right:nth-child(1 of .kol-table__cell--sticky-left) {\n border-left: 2px solid black;\n }\n .kol-table__cell-actions {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: center;\n }\n .kol-table__spacer {\n display: none;\n }\n .kol-table__selection {\n position: relative;\n }\n .kol-table__selection-label {\n display: flex;\n position: relative;\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n align-items: center;\n justify-content: center;\n cursor: pointer;\n }\n .kol-table__selection--disabled {\n cursor: not-allowed;\n }\n .kol-table__selection-icon {\n display: block;\n position: absolute;\n inset: auto;\n z-index: 1;\n }\n .kol-table__selection-input {\n border-style: solid;\n margin: 0;\n appearance: none;\n cursor: pointer;\n }\n .kol-table__selection-input:disabled {\n cursor: not-allowed;\n }\n .kol-table__selection-input:before {\n content: "";\n }\n .kol-table__selection-input--checkbox {\n background-color: 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}',i=class{constructor(e){n(this,e)}render(){return e(t,{key:"4f7161160a38949331d6141e8233f4ef0acf444c",_data:this._data,_dataFoot:this._dataFoot,_fixedCols:this._fixedCols,_headerCells:this._headerCells,_label:this._label,_on:this._on,_selection:this._selection,_hasSettingsMenu:this._hasSettingsMenu})}};i.style={default:o};export{i as kol_table_stateless};
4
+ import{r as n,h as e}from"./index-BLN7o4q9.js";import{k as t}from"./component-names-Dy77vq43.js";import"./common-BqV6Zb30.js";const o='@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 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=1777089109826"); /* IE9*/\n src: url("kolicons.eot?t=1777089109826#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1777089109826") format("woff2"), url("kolicons.woff?t=1777089109826") format("woff"), url("kolicons.ttf?t=1777089109826") format("truetype"), url("kolicons.svg?t=1777089109826#kolicons") format("svg"); /* iOS 4.1- */\n}\n@layer kol-component {\n [class^=kolicon-], [class*=" kolicon-"] {\n font-family: "kolicons";\n font-style: normal;\n font-weight: 400;\n line-height: 1em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n .kolicon-alert-error::before {\n content: "\\ea01";\n }\n .kolicon-alert-info::before {\n content: "\\ea02";\n }\n .kolicon-alert-success::before {\n content: "\\ea03";\n }\n .kolicon-alert-warning::before {\n content: "\\ea04";\n }\n .kolicon-check::before {\n content: "\\ea05";\n }\n .kolicon-chevron-double-left::before {\n content: "\\ea06";\n }\n .kolicon-chevron-double-right::before {\n content: "\\ea07";\n }\n .kolicon-chevron-down::before {\n content: "\\ea08";\n }\n .kolicon-chevron-left::before {\n content: "\\ea09";\n }\n .kolicon-chevron-right::before {\n content: "\\ea0a";\n }\n .kolicon-chevron-up::before {\n content: "\\ea0b";\n }\n .kolicon-cogwheel::before {\n content: "\\ea0c";\n }\n .kolicon-cross::before {\n content: "\\ea0d";\n }\n .kolicon-eye-closed::before {\n content: "\\ea0e";\n }\n .kolicon-eye::before {\n content: "\\ea0f";\n }\n .kolicon-house::before {\n content: "\\ea10";\n }\n .kolicon-kolibri::before {\n content: "\\ea11";\n }\n .kolicon-link-external::before {\n content: "\\ea12";\n }\n .kolicon-link::before {\n content: "\\ea13";\n }\n .kolicon-minus::before {\n content: "\\ea14";\n }\n .kolicon-plus::before {\n content: "\\ea15";\n }\n .kolicon-settings::before {\n content: "\\ea16";\n }\n .kolicon-sort-asc::before {\n content: "\\ea17";\n }\n .kolicon-sort-desc::before {\n content: "\\ea18";\n }\n .kolicon-sort-neutral::before {\n content: "\\ea19";\n }\n .kolicon-up::before {\n content: "\\ea1a";\n }\n .kolicon-version::before {\n content: "\\ea1b";\n }\n}\n@layer kol-component {\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #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-popover {\n opacity: 0;\n transition: 0.2s ease-out opacity;\n }\n .kol-popover-button--open + .kol-popover {\n opacity: 1;\n }\n .kol-table-settings {\n position: absolute;\n top: 0;\n right: 0;\n z-index: 1;\n }\n .kol-table-settings .kol-popover-button__popover {\n background: #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 overflow: auto;\n }\n .kol-table-settings__columns {\n display: grid;\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 text-align: start;\n }\n .kol-table__sort-button .kol-button {\n color: inherit;\n }\n .kol-table__sort {\n display: inline-flex;\n align-items: center;\n }\n .kol-table__sort-order {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n }\n .kol-table__body {\n text-align: left;\n }\n .kol-table__body .kol-button__text {\n justify-items: start;\n }\n .kol-table__cell--align-left {\n text-align: left;\n }\n .kol-table__cell--align-left .kol-button__text {\n align-items: start;\n }\n .kol-table__cell--align-center {\n text-align: center;\n }\n .kol-table__cell--align-center .kol-button__text {\n align-items: center;\n }\n .kol-table__cell--align-right {\n text-align: right;\n }\n .kol-table__cell--align-right .kol-button__text {\n align-items: end;\n }\n .kol-table__cell--selection {\n background-color: white;\n position: sticky !important;\n left: 0;\n z-index: 2;\n width: var(--kol-table-selection-col-width, auto);\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n white-space: nowrap;\n }\n .kol-table__cell--actions {\n white-space: nowrap;\n }\n .kol-table__cell--actions .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-table__cell--actions :host {\n display: inline-block;\n }\n .kol-table__cell--actions .kol-button {\n display: flex;\n min-height: var(--a11y-min-size);\n font-style: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n text-decoration-line: none;\n }\n .kol-table__cell--actions .kol-button::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: "​";\n }\n .kol-table__cell--actions .kol-button__text {\n flex: 1 0 100%;\n }\n .kol-table__cell--actions .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-table__cell--actions :host {\n display: inline-block;\n }\n .kol-table__cell--actions .kol-link {\n display: inline-flex;\n max-width: fit-content;\n align-items: baseline;\n place-items: center;\n text-align: left;\n text-decoration-line: none;\n }\n .kol-table__cell--actions .kol-link--standalone {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n align-items: stretch;\n }\n .kol-table__cell--actions .kol-link--standalone .kol-link__text {\n display: inline-flex;\n flex: 1 1 100%;\n place-items: center;\n }\n .kol-table__cell--actions .kol-link .kol-span__label {\n text-decoration-line: underline;\n }\n .kol-table__cell--actions .kol-link:focus:not([aria-disabled], [disabled]) .kol-span__label, .kol-table__cell--actions .kol-link:hover:not([aria-disabled], [disabled]) .kol-span__label {\n text-decoration-thickness: 0.2em;\n }\n .kol-table__cell--actions .kol-link__icon {\n display: inline-flex;\n }\n .kol-table__cell--sticky-left, .kol-table__cell--sticky-right {\n background-color: white;\n position: sticky !important;\n z-index: 1;\n }\n .kol-table__cell--sticky-left:nth-last-child(1 of .kol-table__cell--sticky-left) {\n border-right: 2px solid black;\n }\n .kol-table__cell--sticky-right:nth-child(1 of .kol-table__cell--sticky-left) {\n border-left: 2px solid black;\n }\n .kol-table__cell-actions {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: center;\n }\n .kol-table__spacer {\n display: none;\n }\n .kol-table__selection {\n position: relative;\n }\n .kol-table__selection-label {\n display: flex;\n position: relative;\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n align-items: center;\n justify-content: center;\n cursor: pointer;\n }\n .kol-table__selection--disabled {\n cursor: not-allowed;\n }\n .kol-table__selection-icon {\n display: block;\n position: absolute;\n inset: auto;\n z-index: 1;\n }\n .kol-table__selection-input {\n border-style: solid;\n margin: 0;\n appearance: none;\n cursor: pointer;\n }\n .kol-table__selection-input:disabled {\n cursor: not-allowed;\n }\n .kol-table__selection-input:before {\n content: "";\n }\n .kol-table__selection-input--checkbox {\n background-color: 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}',i=class{constructor(e){n(this,e)}render(){return e(t,{key:"4f7161160a38949331d6141e8233f4ef0acf444c",_data:this._data,_dataFoot:this._dataFoot,_fixedCols:this._fixedCols,_headerCells:this._headerCells,_label:this._label,_on:this._on,_selection:this._selection,_hasSettingsMenu:this._hasSettingsMenu})}};i.style={default:o};export{i as kol_table_stateless};
@@ -1 +1 @@
1
- {"version":3,"names":["registerInstance","h","KolTableStatelessWcTag","defaultStyleCss","KolTableStateless","constructor","hostRef","this","render","key","_data","_dataFoot","_fixedCols","_headerCells","_label","_on","_selection","_hasSettingsMenu","style","default"],"sources":["0"],"mappings":";;;YAGcA,OAAkBC,MAAS,kCAC3BC,MAA8B,sCACrC,uBAEP,MAAMC,EAAkB,ygkBAExB,MAAMC,EAAoB,MACtB,WAAAC,CAAYC,GACRN,EAAiBO,KAAMD,EAC3B,CACA,MAAAE,GACI,OAAQP,EAAEC,EAAwB,CAAEO,IAAK,2CAA4CC,MAAOH,KAAKG,MAAOC,UAAWJ,KAAKI,UAAWC,WAAYL,KAAKK,WAAYC,aAAcN,KAAKM,aAAcC,OAAQP,KAAKO,OAAQC,IAAKR,KAAKQ,IAAKC,WAAYT,KAAKS,WAAYC,iBAAkBV,KAAKU,kBAC7R,GAEJb,EAAkBc,MAAQ,CACtBC,QAAShB,UAGJC","ignoreList":[]}
1
+ {"version":3,"names":["registerInstance","h","KolTableStatelessWcTag","defaultStyleCss","KolTableStateless","constructor","hostRef","this","render","key","_data","_dataFoot","_fixedCols","_headerCells","_label","_on","_selection","_hasSettingsMenu","style","default"],"sources":["0"],"mappings":";;;YAGcA,OAAkBC,MAAS,kCAC3BC,MAA8B,sCACrC,uBAEP,MAAMC,EAAkB,k/jBAExB,MAAMC,EAAoB,MACtB,WAAAC,CAAYC,GACRN,EAAiBO,KAAMD,EAC3B,CACA,MAAAE,GACI,OAAQP,EAAEC,EAAwB,CAAEO,IAAK,2CAA4CC,MAAOH,KAAKG,MAAOC,UAAWJ,KAAKI,UAAWC,WAAYL,KAAKK,WAAYC,aAAcN,KAAKM,aAAcC,OAAQP,KAAKO,OAAQC,IAAKR,KAAKQ,IAAKC,WAAYT,KAAKS,WAAYC,iBAAkBV,KAAKU,kBAC7R,GAEJb,EAAkBc,MAAQ,CACtBC,QAAShB,UAGJC","ignoreList":[]}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as n,h as t,g as e}from"./index-Bc-dkuUs.js";import{b as o,e as i,k as s,s as a,N as l,G as r,H as c,Q as h}from"./common-BqV6Zb30.js";import{v as d}from"./align-D3Z54kEL.js";import{v as f}from"./label-vxVEH2gH.js";import{b}from"./component-names-Dy77vq43.js";import{t as u}from"./i18n-BVaUp6qp.js";import{K as p}from"./keyboard-DNd73LVa.js";import{c as m}from"./clsx-COFh-Vc8.js";import{d as k,s as g}from"./element-click-BTxuJDNT.js";import{d as y,s as v}from"./element-focus-BKUtVrWY.js";import{d as w,K as _}from"./events-DHTi_wtD.js";import"./i18n-B2d_exHc.js";const x=["select-automatic","select-manual"],T=(e,t)=>{o(e,"_behavior",e=>"string"==typeof e&&x.includes(e),new Set([`KoliBriTabBehavior {${x.join(", ")}`]),t)},z=(e,t)=>{i(e,"_hasCreateButton",t)},C='/* 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 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=1777029041506"); /* IE9*/\n src: url("kolicons.eot?t=1777029041506#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1777029041506") format("woff2"), url("kolicons.woff?t=1777029041506") format("woff"), url("kolicons.ttf?t=1777029041506") format("truetype"), url("kolicons.svg?t=1777029041506#kolicons") format("svg"); /* iOS 4.1- */\n}\n@layer kol-component {\n [class^=kolicon-], [class*=" kolicon-"] {\n font-family: "kolicons";\n font-style: normal;\n font-weight: 400;\n line-height: 1em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n .kolicon-alert-error::before {\n content: "\\ea01";\n }\n .kolicon-alert-info::before {\n content: "\\ea02";\n }\n .kolicon-alert-success::before {\n content: "\\ea03";\n }\n .kolicon-alert-warning::before {\n content: "\\ea04";\n }\n .kolicon-check::before {\n content: "\\ea05";\n }\n .kolicon-chevron-double-left::before {\n content: "\\ea06";\n }\n .kolicon-chevron-double-right::before {\n content: "\\ea07";\n }\n .kolicon-chevron-down::before {\n content: "\\ea08";\n }\n .kolicon-chevron-left::before {\n content: "\\ea09";\n }\n .kolicon-chevron-right::before {\n content: "\\ea0a";\n }\n .kolicon-chevron-up::before {\n content: "\\ea0b";\n }\n .kolicon-cogwheel::before {\n content: "\\ea0c";\n }\n .kolicon-cross::before {\n content: "\\ea0d";\n }\n .kolicon-eye-closed::before {\n content: "\\ea0e";\n }\n .kolicon-eye::before {\n content: "\\ea0f";\n }\n .kolicon-house::before {\n content: "\\ea10";\n }\n .kolicon-kolibri::before {\n content: "\\ea11";\n }\n .kolicon-link-external::before {\n content: "\\ea12";\n }\n .kolicon-link::before {\n content: "\\ea13";\n }\n .kolicon-minus::before {\n content: "\\ea14";\n }\n .kolicon-plus::before {\n content: "\\ea15";\n }\n .kolicon-settings::before {\n content: "\\ea16";\n }\n .kolicon-sort-asc::before {\n content: "\\ea17";\n }\n .kolicon-sort-desc::before {\n content: "\\ea18";\n }\n .kolicon-sort-neutral::before {\n content: "\\ea19";\n }\n .kolicon-up::before {\n content: "\\ea1a";\n }\n .kolicon-version::before {\n content: "\\ea1b";\n }\n}\n@layer kol-component {\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #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}',B=class{constructor(e){n(this,e),this.onCreateLabel=`${u("kol-new")} …`,this.nextPossibleTabIndex=(e,t,n=1)=>{const o=t+n;return o<e.length?e[o]._disabled?this.nextPossibleTabIndex(e,t,n+1):o:t},this.prevPossibleTabIndex=(e,t,n=1)=>{const o=t-n;return o>=0?e[o]._disabled?this.prevPossibleTabIndex(e,t,n+1):o:t},this.onKeyDown=e=>{switch(e.key){case p.ArrowRight:this.goToNextTab(e);break;case p.ArrowLeft:this.goToPreviousTab(e);break;case p.Space:case p.Enter:this.activateFocusedTab(e)}},this.onClickSelect=(e,t)=>{this.selectNextTabEvent(e,t)},this.onMouseDown=e=>{e.preventDefault()},this.callbacks={onClick:this.onClickSelect,onMouseDown:this.onMouseDown},this.setCurrentTabButtonRef=e=>{this.currentTabButtonRef=e},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,t,n=!0,o)=>{if(e>t.length-1&&(e=t.length-1),e<0&&(e=0),Array.isArray(t)&&t[e]&&t[e]._disabled){if(!0===n){if(e<t.length-1)return this.selectNextNotDisabledTab(e+1,t,!0,o||e);e=o||e,n=!1}if(!1===n){if(e>0)return this.selectNextNotDisabledTab(e-1,t,!1,o||e);s("[KolTabs] All tabs are disabled, and therefore no tab can be displayed.")}}return e},this.syncSelectedAndTabs=(e,t,n,o)=>{let i,a;i="_selected"===o?e:this.state._selected,a="_tabs"===o?e:this.state._tabs,a.length>0&&t.set("_selected",this.selectNextNotDisabledTab(i,a))},this.refreshTabPanels=()=>{var e,t,n,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===(t=this.tabPanelHost)||void 0===t||t.appendChild(e),"undefined"!=typeof HTMLCollection&&(null===(n=this.host)||void 0===n?void 0:n.children)instanceof HTMLCollection&&(null===(o=this.host)||void 0===o?void 0:o.children[i])&&this.host.children[i].setAttribute("slot",`tabpanel-slot-${i}`)}this.updateVisiblePanel()}},this.updateVisiblePanel=()=>{this.tabPanelHost&&Array.from(this.tabPanelHost.children).forEach((e,t)=>{t===this.state._selected?e.removeAttribute("hidden"):e.setAttribute("hidden","")})},this.onCreate=e=>{var t,n;e.preventDefault(),null===(n=null===(t=this.state._on)||void 0===t?void 0:t.onCreate)||void 0===n||n.call(t,e),this.host&&w(this.host,_.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 t=this.nextPossibleTabIndex(this.state._tabs,this.getCurrentFocusIndex());this.selectNextTabEvent(e,t,this.getKeyboardTabChangeMode())}goToPreviousTab(e){const t=this.prevPossibleTabIndex(this.state._tabs,this.getCurrentFocusIndex());this.selectNextTabEvent(e,t,this.getKeyboardTabChangeMode())}activateFocusedTab(e){"number"==typeof this.currentFocusIndex&&this.onSelect(e,this.currentFocusIndex)}selectNextTabEvent(e,t,n="activateCompletely"){var o,i;if(this.currentFocusIndex=t,this.focusTabById(t),"activateCompletely"===n){this._selected=t;null===(i=null===(o=this.state._tabs[t]._on)||void 0===o?void 0:o.onSelect)||void 0===i||i.call(o,e,t),this.onSelect(e,t)}}async focus(){return y(this.host,()=>v(this.currentTabButtonRef))}async click(){return k(this.host,async()=>g(this.currentTabButtonRef))}renderButtonGroup(){return t("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)=>t(b,{ref:this.state._selected===n?this.setCurrentTabButtonRef:void 0,_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&&t(b,{class:"kol-tabs__button-create",_label:this.onCreateLabel,_on:{onClick:this.onCreate},_icons:"kolicon-plus","data-testid":"tabs-create-button"}))}render(){return t("div",{key:"253099cbbf5db5fa1451dbfaa29670454939e581",ref:e=>{this.tabPanelsElement=e},class:m("kol-tabs",`kol-tabs--align-${this.state._align}`)},this.renderButtonGroup(),t("div",{key:"8f6a109324808cf7914ca7cdd9db878268bf3383",class:"kol-tabs__content",ref:this.catchTabPanelHost}))}validateAlign(e){d(this,e)}validateBehavior(e){T(this,e)}validateHasCreateButton(e){z(this,e)}validateLabel(e){f(this,e,{required:!0})}validateOn(e){if("object"==typeof e&&null!==e){const t={};"function"==typeof e.onCreate&&(t.onCreate=e.onCreate),"function"==typeof e.onSelect&&(t.onSelect=e.onSelect),a(this,"_on",t)}}validateSelected(e){l(this,"_selected",e,{hooks:{beforePatch:this.syncSelectedAndTabs}})}validateTabs(e){r(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}}),c("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 t=h(`button#${this.state._label.replace(/\s/g,"-")}-tab-${e}`,this.tabPanelsElement);null==t||t.focus()}}onSelect(e,t){var n,o;null===(o=null===(n=this._on)||void 0===n?void 0:n.onSelect)||void 0===o||o.call(n,e,t),this.host&&w(this.host,_.select,t),this.focusTabById(t)}get host(){return e(this)}static get watchers(){return{_align:["validateAlign"],_behavior:["validateBehavior"],_hasCreateButton:["validateHasCreateButton"],_label:["validateLabel"],_on:["validateOn"],_selected:["validateSelected"],_tabs:["validateTabs"]}}};B.style={default:C};export{B as kol_tabs};
4
+ import{r as n,h as t,g as e}from"./index-BLN7o4q9.js";import{b as o,e as i,k as a,s,N as l,G as r,H as c,Q as h}from"./common-BqV6Zb30.js";import{v as d}from"./align-D3Z54kEL.js";import{v as f}from"./label-vxVEH2gH.js";import{b}from"./component-names-Dy77vq43.js";import{t as u}from"./i18n-BVaUp6qp.js";import{K as p}from"./keyboard-DNd73LVa.js";import{c as m}from"./clsx-COFh-Vc8.js";import{d as k,s as g}from"./element-click-BTxuJDNT.js";import{d as y,s as v}from"./element-focus-BKUtVrWY.js";import{d as w,K as _}from"./events-DHTi_wtD.js";import"./i18n-B2d_exHc.js";const x=["select-automatic","select-manual"],T=(e,t)=>{o(e,"_behavior",e=>"string"==typeof e&&x.includes(e),new Set([`KoliBriTabBehavior {${x.join(", ")}`]),t)},z=(e,t)=>{i(e,"_hasCreateButton",t)},C='/* 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 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=1777089109826"); /* IE9*/\n src: url("kolicons.eot?t=1777089109826#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1777089109826") format("woff2"), url("kolicons.woff?t=1777089109826") format("woff"), url("kolicons.ttf?t=1777089109826") format("truetype"), url("kolicons.svg?t=1777089109826#kolicons") format("svg"); /* iOS 4.1- */\n}\n@layer kol-component {\n [class^=kolicon-], [class*=" kolicon-"] {\n font-family: "kolicons";\n font-style: normal;\n font-weight: 400;\n line-height: 1em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n .kolicon-alert-error::before {\n content: "\\ea01";\n }\n .kolicon-alert-info::before {\n content: "\\ea02";\n }\n .kolicon-alert-success::before {\n content: "\\ea03";\n }\n .kolicon-alert-warning::before {\n content: "\\ea04";\n }\n .kolicon-check::before {\n content: "\\ea05";\n }\n .kolicon-chevron-double-left::before {\n content: "\\ea06";\n }\n .kolicon-chevron-double-right::before {\n content: "\\ea07";\n }\n .kolicon-chevron-down::before {\n content: "\\ea08";\n }\n .kolicon-chevron-left::before {\n content: "\\ea09";\n }\n .kolicon-chevron-right::before {\n content: "\\ea0a";\n }\n .kolicon-chevron-up::before {\n content: "\\ea0b";\n }\n .kolicon-cogwheel::before {\n content: "\\ea0c";\n }\n .kolicon-cross::before {\n content: "\\ea0d";\n }\n .kolicon-eye-closed::before {\n content: "\\ea0e";\n }\n .kolicon-eye::before {\n content: "\\ea0f";\n }\n .kolicon-house::before {\n content: "\\ea10";\n }\n .kolicon-kolibri::before {\n content: "\\ea11";\n }\n .kolicon-link-external::before {\n content: "\\ea12";\n }\n .kolicon-link::before {\n content: "\\ea13";\n }\n .kolicon-minus::before {\n content: "\\ea14";\n }\n .kolicon-plus::before {\n content: "\\ea15";\n }\n .kolicon-settings::before {\n content: "\\ea16";\n }\n .kolicon-sort-asc::before {\n content: "\\ea17";\n }\n .kolicon-sort-desc::before {\n content: "\\ea18";\n }\n .kolicon-sort-neutral::before {\n content: "\\ea19";\n }\n .kolicon-up::before {\n content: "\\ea1a";\n }\n .kolicon-version::before {\n content: "\\ea1b";\n }\n}\n@layer kol-component {\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #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}',B=class{constructor(e){n(this,e),this.onCreateLabel=`${u("kol-new")} …`,this.nextPossibleTabIndex=(e,t,n=1)=>{const o=t+n;return o<e.length?e[o]._disabled?this.nextPossibleTabIndex(e,t,n+1):o:t},this.prevPossibleTabIndex=(e,t,n=1)=>{const o=t-n;return o>=0?e[o]._disabled?this.prevPossibleTabIndex(e,t,n+1):o:t},this.onKeyDown=e=>{switch(e.key){case p.ArrowRight:this.goToNextTab(e);break;case p.ArrowLeft:this.goToPreviousTab(e);break;case p.Space:case p.Enter:this.activateFocusedTab(e)}},this.onClickSelect=(e,t)=>{this.selectNextTabEvent(e,t)},this.onMouseDown=e=>{e.preventDefault()},this.callbacks={onClick:this.onClickSelect,onMouseDown:this.onMouseDown},this.setCurrentTabButtonRef=e=>{this.currentTabButtonRef=e},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,t,n=!0,o)=>{if(e>t.length-1&&(e=t.length-1),e<0&&(e=0),Array.isArray(t)&&t[e]&&t[e]._disabled){if(!0===n){if(e<t.length-1)return this.selectNextNotDisabledTab(e+1,t,!0,o||e);e=o||e,n=!1}if(!1===n){if(e>0)return this.selectNextNotDisabledTab(e-1,t,!1,o||e);a("[KolTabs] All tabs are disabled, and therefore no tab can be displayed.")}}return e},this.syncSelectedAndTabs=(e,t,n,o)=>{let i,a;i="_selected"===o?e:this.state._selected,a="_tabs"===o?e:this.state._tabs,a.length>0&&t.set("_selected",this.selectNextNotDisabledTab(i,a))},this.refreshTabPanels=()=>{var e,t,n,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===(t=this.tabPanelHost)||void 0===t||t.appendChild(e),"undefined"!=typeof HTMLCollection&&(null===(n=this.host)||void 0===n?void 0:n.children)instanceof HTMLCollection&&(null===(o=this.host)||void 0===o?void 0:o.children[i])&&this.host.children[i].setAttribute("slot",`tabpanel-slot-${i}`)}this.updateVisiblePanel()}},this.updateVisiblePanel=()=>{this.tabPanelHost&&Array.from(this.tabPanelHost.children).forEach((e,t)=>{t===this.state._selected?e.removeAttribute("hidden"):e.setAttribute("hidden","")})},this.onCreate=e=>{var t,n;e.preventDefault(),null===(n=null===(t=this.state._on)||void 0===t?void 0:t.onCreate)||void 0===n||n.call(t,e),this.host&&w(this.host,_.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 t=this.nextPossibleTabIndex(this.state._tabs,this.getCurrentFocusIndex());this.selectNextTabEvent(e,t,this.getKeyboardTabChangeMode())}goToPreviousTab(e){const t=this.prevPossibleTabIndex(this.state._tabs,this.getCurrentFocusIndex());this.selectNextTabEvent(e,t,this.getKeyboardTabChangeMode())}activateFocusedTab(e){"number"==typeof this.currentFocusIndex&&this.onSelect(e,this.currentFocusIndex)}selectNextTabEvent(e,t,n="activateCompletely"){var o,i;if(this.currentFocusIndex=t,this.focusTabById(t),"activateCompletely"===n){this._selected=t;null===(i=null===(o=this.state._tabs[t]._on)||void 0===o?void 0:o.onSelect)||void 0===i||i.call(o,e,t),this.onSelect(e,t)}}async focus(){return y(this.host,()=>v(this.currentTabButtonRef))}async click(){return k(this.host,async()=>g(this.currentTabButtonRef))}renderButtonGroup(){return t("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)=>t(b,{ref:this.state._selected===n?this.setCurrentTabButtonRef:void 0,_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&&t(b,{class:"kol-tabs__button-create",_label:this.onCreateLabel,_on:{onClick:this.onCreate},_icons:"kolicon-plus","data-testid":"tabs-create-button"}))}render(){return t("div",{key:"253099cbbf5db5fa1451dbfaa29670454939e581",ref:e=>{this.tabPanelsElement=e},class:m("kol-tabs",`kol-tabs--align-${this.state._align}`)},this.renderButtonGroup(),t("div",{key:"8f6a109324808cf7914ca7cdd9db878268bf3383",class:"kol-tabs__content",ref:this.catchTabPanelHost}))}validateAlign(e){d(this,e)}validateBehavior(e){T(this,e)}validateHasCreateButton(e){z(this,e)}validateLabel(e){f(this,e,{required:!0})}validateOn(e){if("object"==typeof e&&null!==e){const t={};"function"==typeof e.onCreate&&(t.onCreate=e.onCreate),"function"==typeof e.onSelect&&(t.onSelect=e.onSelect),s(this,"_on",t)}}validateSelected(e){l(this,"_selected",e,{hooks:{beforePatch:this.syncSelectedAndTabs}})}validateTabs(e){r(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}}),c("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 t=h(`button#${this.state._label.replace(/\s/g,"-")}-tab-${e}`,this.tabPanelsElement);null==t||t.focus()}}onSelect(e,t){var n,o;null===(o=null===(n=this._on)||void 0===n?void 0:n.onSelect)||void 0===o||o.call(n,e,t),this.host&&w(this.host,_.select,t),this.focusTabById(t)}get host(){return e(this)}static get watchers(){return{_align:["validateAlign"],_behavior:["validateBehavior"],_hasCreateButton:["validateHasCreateButton"],_label:["validateLabel"],_on:["validateOn"],_selected:["validateSelected"],_tabs:["validateTabs"]}}};B.style={default:C};export{B as kol_tabs};
@@ -1 +1 @@
1
- {"version":3,"names":["registerInstance","h","getElement","watchValidator","watchBoolean","devHint","setState","watchNumber","watchJsonArrayString","uiUxHintMillerscheZahl","koliBriQuerySelector","validateAlign","validateLabel","KolButtonWcTag","translate","KeyboardKey","clsx","delegateClick","setClick","delegateFocus","setFocus","dispatchDomEvent","KolEvent","tabBehaviorPropTypeOptions","validateTabBehavior","component","value","includes","Set","join","validateHasCreateButton","defaultStyleCss","KolTabs","constructor","hostRef","this","onCreateLabel","nextPossibleTabIndex","tabs","offset","step","nextOffset","length","_disabled","prevPossibleTabIndex","onKeyDown","event","key","ArrowRight","goToNextTab","ArrowLeft","goToPreviousTab","Space","Enter","activateFocusedTab","onClickSelect","index","selectNextTabEvent","onMouseDown","preventDefault","callbacks","onClick","setCurrentTabButtonRef","ref","currentTabButtonRef","catchTabPanelHost","el","tabPanelHost","_align","_hasCreateButton","_selected","state","_label","_tabs","selectNextNotDisabledTab","selected","upOrDown","initialSelected","Array","isArray","syncSelectedAndTabs","nextValue","nextState","_component","set","refreshTabPanels","_a","_b","_c","_d","firstChild","removeChild","i","div","document","createElement","setAttribute","replace","slot","appendChild","HTMLCollection","host","children","updateVisiblePanel","from","forEach","child","removeAttribute","onCreate","_on","call","create","onBlur","currentFocusIndex","undefined","getCurrentFocusIndex","getKeyboardTabChangeMode","_behavior","nextFocusIndex","onSelect","nextTabIndex","changeMode","focusTabById","tab","focus","click","async","renderButtonGroup","class","role","map","button","_icons","_hideLabel","_tabIndex","_tooltipAlign","_variant","_customClass","_ariaControls","_ariaSelected","_id","_role","_value","render","tabPanelsElement","validateBehavior","required","validateOn","validateSelected","hooks","beforePatch","validateTabs","item","afterPatch","componentWillLoad","componentDidRender","select","watchers","style","default"],"sources":["0"],"mappings":";;;YAGcA,OAAkBC,OAAQC,MAAkB,kCAC5CC,OAAqBC,OAAmBC,OAAcC,OAAeC,OAAkBC,OAA2BC,OAA6BC,MAA4B,mCAC3KC,MAAqB,kCACrBC,MAAqB,6BACrBC,MAAsB,4CACtBC,MAAiB,iCACjBC,MAAmB,qCACnBC,MAAY,iCACZC,OAAoBC,MAAgB,0CACpCC,OAAoBC,MAAgB,0CACpCC,OAAuBC,MAAgB,6BAC9C,qBAEP,MAAMC,EAA6B,CAAC,mBAAoB,iBACxD,MAAMC,EAAsB,CAACC,EAAWC,KACpCvB,EAAesB,EAAW,aAAcC,UAAiBA,IAAU,UAAYH,EAA2BI,SAASD,IAAQ,IAAIE,IAAI,CAAC,uBAAuBL,EAA2BM,KAAK,UAAWH,EAAM,EAGhN,MAAMI,EAA0B,CAACL,EAAWC,KACxCtB,EAAaqB,EAAW,mBAAoBC,EAAM,EAGtD,MAAMK,EAAkB,ikVAExB,MAAMC,EAAU,MACZ,WAAAC,CAAYC,GACRlC,EAAiBmC,KAAMD,GACvBC,KAAKC,cAAgB,GAAGtB,EAAU,eAClCqB,KAAKE,qBAAuB,CAACC,EAAMC,EAAQC,EAAO,KAC9C,MAAMC,EAAaF,EAASC,EAC5B,GAAIC,EAAaH,EAAKI,OAAQ,CAC1B,GAAIJ,EAAKG,GAAYE,UAAW,CAC5B,OAAOR,KAAKE,qBAAqBC,EAAMC,EAAQC,EAAO,EAC1D,CACA,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S,EAAIA,EAAGuB,KAAKxB,EAAIxC,EAAOU,GAChI,GAAIrB,KAAKkE,KAAM,CACXhF,EAAiBc,KAAKkE,KAAM/E,EAASsI,OAAQpG,EACjD,CACArB,KAAKuF,aAAalE,EACtB,CACA,QAAI6C,GAAS,OAAOnG,EAAWiC,KAAO,CACtC,mBAAW0H,GAAa,MAAO,CAC3BzF,OAAU,CAAC,iBACXiD,UAAa,CAAC,oBACdhD,iBAAoB,CAAC,2BACrBG,OAAU,CAAC,iBACXqC,IAAO,CAAC,cACRvC,UAAa,CAAC,oBACdG,MAAS,CAAC,gBACX,GAEPzC,EAAQ8H,MAAQ,CACZC,QAAShI,UAGJC","ignoreList":[]}
1
+ {"version":3,"names":["registerInstance","h","getElement","watchValidator","watchBoolean","devHint","setState","watchNumber","watchJsonArrayString","uiUxHintMillerscheZahl","koliBriQuerySelector","validateAlign","validateLabel","KolButtonWcTag","translate","KeyboardKey","clsx","delegateClick","setClick","delegateFocus","setFocus","dispatchDomEvent","KolEvent","tabBehaviorPropTypeOptions","validateTabBehavior","component","value","includes","Set","join","validateHasCreateButton","defaultStyleCss","KolTabs","constructor","hostRef","this","onCreateLabel","nextPossibleTabIndex","tabs","offset","step","nextOffset","length","_disabled","prevPossibleTabIndex","onKeyDown","event","key","ArrowRight","goToNextTab","ArrowLeft","goToPreviousTab","Space","Enter","activateFocusedTab","onClickSelect","index","selectNextTabEvent","onMouseDown","preventDefault","callbacks","onClick","setCurrentTabButtonRef","ref","currentTabButtonRef","catchTabPanelHost","el","tabPanelHost","_align","_hasCreateButton","_selected","state","_label","_tabs","selectNextNotDisabledTab","selected","upOrDown","initialSelected","Array","isArray","syncSelectedAndTabs","nextValue","nextState","_component","set","refreshTabPanels","_a","_b","_c","_d","firstChild","removeChild","i","div","document","createElement","setAttribute","replace","slot","appendChild","HTMLCollection","host","children","updateVisiblePanel","from","forEach","child","removeAttribute","onCreate","_on","call","create","onBlur","currentFocusIndex","undefined","getCurrentFocusIndex","getKeyboardTabChangeMode","_behavior","nextFocusIndex","onSelect","nextTabIndex","changeMode","focusTabById","tab","focus","click","async","renderButtonGroup","class","role","map","button","_icons","_hideLabel","_tabIndex","_tooltipAlign","_variant","_customClass","_ariaControls","_ariaSelected","_id","_role","_value","render","tabPanelsElement","validateBehavior","required","validateOn","validateSelected","hooks","beforePatch","validateTabs","item","afterPatch","componentWillLoad","componentDidRender","select","watchers","style","default"],"sources":["0"],"mappings":";;;YAGcA,OAAkBC,OAAQC,MAAkB,kCAC5CC,OAAqBC,OAAmBC,EAAcC,OAAeC,OAAkBC,OAA2BC,OAA6BC,MAA4B,mCAC3KC,MAAqB,kCACrBC,MAAqB,6BACrBC,MAAsB,4CACtBC,MAAiB,iCACjBC,MAAmB,qCACnBC,MAAY,iCACZC,OAAoBC,MAAgB,0CACpCC,OAAoBC,MAAgB,0CACpCC,OAAuBC,MAAgB,6BAC9C,qBAEP,MAAMC,EAA6B,CAAC,mBAAoB,iBACxD,MAAMC,EAAsB,CAACC,EAAWC,KACpCvB,EAAesB,EAAW,aAAcC,UAAiBA,IAAU,UAAYH,EAA2BI,SAASD,IAAQ,IAAIE,IAAI,CAAC,uBAAuBL,EAA2BM,KAAK,UAAWH,EAAM,EAGhN,MAAMI,EAA0B,CAACL,EAAWC,KACxCtB,EAAaqB,EAAW,mBAAoBC,EAAM,EAGtD,MAAMK,EAAkB,ikVAExB,MAAMC,EAAU,MACZ,WAAAC,CAAYC,GACRlC,EAAiBmC,KAAMD,GACvBC,KAAKC,cAAgB,GAAGtB,EAAU,eAClCqB,KAAKE,qBAAuB,CAACC,EAAMC,EAAQC,EAAO,KAC9C,MAAMC,EAAaF,EAASC,EAC5B,GAAIC,EAAaH,EAAKI,OAAQ,CAC1B,GAAIJ,EAAKG,GAAYE,UAAW,CAC5B,OAAOR,KAAKE,qBAAqBC,EAAMC,EAAQC,EAAO,EAC1D,CACA,OAAOC,CACX,CACA,OAAOF,CAAM,EAEjBJ,KAAKS,qBAAuB,CAACN,EAAMC,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M,CACXhF,EAAiBc,KAAKkE,KAAM/E,EAASsI,OAAQpG,EACjD,CACArB,KAAKuF,aAAalE,EACtB,CACA,QAAI6C,GAAS,OAAOnG,EAAWiC,KAAO,CACtC,mBAAW0H,GAAa,MAAO,CAC3BzF,OAAU,CAAC,iBACXiD,UAAa,CAAC,oBACdhD,iBAAoB,CAAC,2BACrBG,OAAU,CAAC,iBACXqC,IAAO,CAAC,cACRvC,UAAa,CAAC,oBACdG,MAAS,CAAC,gBACX,GAEPzC,EAAQ8H,MAAQ,CACZC,QAAShI,UAGJC","ignoreList":[]}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h as e,r as n,g as t}from"./index-Bc-dkuUs.js";import{c as i}from"./clsx-COFh-Vc8.js";import{i as o,c as a,g as l,a as s,F as r}from"./FormFieldStateWrapper-CWC_T2V6.js";import{I as c,a as h}from"./controller-icon-CcvojG6N.js";import{_ as d}from"./tslib.es6-CxX45GIN.js";import{b as f,g as m}from"./common-BqV6Zb30.js";import{n as p}from"./dev.utils-UUgQWQxj.js";import{d as u,s as b}from"./element-click-BTxuJDNT.js";import{d as k,s as g}from"./element-focus-BKUtVrWY.js";import{a as v,v as y,b as _}from"./max-length-behavior-DMw3rhwa.js";import{v as w}from"./placeholder-BuBUMNhW.js";import{v as x}from"./read-only-DnkXqxgk.js";import{v as j}from"./required-C9Xj8kw2.js";import{v as z}from"./rows-lThApm3P.js";import{v as B}from"./spell-check-Y1ApnP_M.js";import"./access-and-short-key-D2TiPdWw.js";import"./disabled-BBn2JEzf.js";import"./hide-label-DQL9J6E_.js";import"./label-vxVEH2gH.js";import"./tooltip-align-DnbCY1Uu.js";import"./align-D3Z54kEL.js";import"./events-DHTi_wtD.js";import"./associated.controller-BKQIR17-.js";import"./bootstrap-CbPXNlVt.js";import"./component-names-Dy77vq43.js";import"./i18n-B2d_exHc.js";import"./_Uint8Array-kJHDjtoP.js";import"./isArray-CcrBs4JM.js";import"./variant-quote-DI6q8gPw.js";import"./normalizers-C14RETgU.js";import"./component-sZ20spQ6.js";import"./component-Bn_ahKfK.js";import"./bem-registry-Bux_TllX.js";import"./component-OtHwqg1I.js";import"./controller-Cf3CGZT-.js";import"./align-floating-elements-58sFZOrL.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./label-DK7sT-k5.js";import"./base-controller-CXhqh4cR.js";import"./i18n-BVaUp6qp.js";import"./Alert-CNbBKPGN.js";import"./Heading-BrSxbA87.js";import"./icons-CqQ9plmY.js";const T=["vertical","none"],L=e=>"string"==typeof e&&T.includes(e),C=(e,t)=>{f(e,"_resize",L,new Set(T),t,{defaultValue:"vertical"})},q=t=>{const{class:n,msg:r,touched:s,readonly:c,disabled:h,required:m,ariaDescribedBy:p,hideLabel:u,label:f}=t,b=d(t,["class","msg","touched","readonly","disabled","required","ariaDescribedBy","hideLabel","label"]),v={"kol-textarea--disabled":Boolean(h),"kol-textarea--required":Boolean(m),"kol-textarea--touched":Boolean(s),"kol-textarea--readonly":Boolean(c),[`kol-textarea--${l(r)}`]:o(r,s)},g=Object.assign(Object.assign({class:i("kol-textarea",v,n),required:m,disabled:h,readonly:c},a({ariaDescribedBy:p,hideLabel:u,label:f})),b);return e("textarea",Object.assign({},g))};function D(e,t){var n;const o=[...s(e).ariaDescribedBy,...null!==(n=t.ariaDescribedBy)&&void 0!==n?n:[]],i=Object.assign(Object.assign({id:e._id,hideLabel:e._hideLabel,label:e._label,value:e._value,accessKey:e._accessKey,disabled:e._disabled,name:e._name,rows:e._rows,readonly:e._readOnly,required:e._required,placeholder:e._placeholder,touched:e._touched,msg:e._msg},t),{ariaDescribedBy:o});return"_maxLength"in e&&"_maxLengthBehavior"in e&&"hard"===e._maxLengthBehavior&&(i.maxLength=e._maxLength),"_shortKey"in e&&(i["aria-keyshortcuts"]=e._shortKey),i}const S=t=>{var{state:n}=t,o=d(t,["state"]);return e(q,Object.assign({},D(n,o)))};class A extends c{constructor(e,t,n){super(e,t,n),this.afterSyncCharCounter=()=>{"string"==typeof this.component._value&&(this.component.state._currentLength=this.component._value.length,this.updateCurrentLengthDebounced(this.component._value.length))},this.component=e}validateHasCounter(e){v(this.component,e)}validateMaxLengthBehavior(e){y(this.component,e)}validateMaxLength(e){_(this.component,e,{hooks:{afterPatch:this.afterSyncCharCounter}})}validatePlaceholder(e){w(this.component,e)}validateReadOnly(e){x(this.component,e)}validateResize(e){C(this.component,e)}validateRequired(e){j(this.component,e)}validateRows(e){z(this.component,e)}validateSpellCheck(e){B(this.component,e)}validateValue(e){m(this.component,"_value",e,{hooks:{afterPatch:this.afterSyncCharCounter}}),this.setFormAssociatedValue(this.component._value)}componentWillLoad(){super.componentWillLoad(),this.validateHasCounter(this.component._hasCounter),this.validateMaxLengthBehavior(this.component._maxLengthBehavior),this.validateMaxLength(this.component._maxLength),this.validatePlaceholder(this.component._placeholder),this.validateReadOnly(this.component._readOnly),this.validateRequired(this.component._required),this.validateResize(this.component._resize),this.validateRows(this.component._rows),this.validateSpellCheck(this.component._spellCheck),this.validateValue(this.component._value)}}const H='@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 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=1777029041506"); /* IE9*/\n src: url("kolicons.eot?t=1777029041506#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1777029041506") format("woff2"), url("kolicons.woff?t=1777029041506") format("woff"), url("kolicons.ttf?t=1777029041506") format("truetype"), url("kolicons.svg?t=1777029041506#kolicons") format("svg"); /* iOS 4.1- */\n}\n@layer kol-component {\n [class^=kolicon-], [class*=" kolicon-"] {\n font-family: "kolicons";\n font-style: normal;\n font-weight: 400;\n line-height: 1em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n .kolicon-alert-error::before {\n content: "\\ea01";\n }\n .kolicon-alert-info::before {\n content: "\\ea02";\n }\n .kolicon-alert-success::before {\n content: "\\ea03";\n }\n .kolicon-alert-warning::before {\n content: "\\ea04";\n }\n .kolicon-check::before {\n content: "\\ea05";\n }\n .kolicon-chevron-double-left::before {\n content: "\\ea06";\n }\n .kolicon-chevron-double-right::before {\n content: "\\ea07";\n }\n .kolicon-chevron-down::before {\n content: "\\ea08";\n }\n .kolicon-chevron-left::before {\n content: "\\ea09";\n }\n .kolicon-chevron-right::before {\n content: "\\ea0a";\n }\n .kolicon-chevron-up::before {\n content: "\\ea0b";\n }\n .kolicon-cogwheel::before {\n content: "\\ea0c";\n }\n .kolicon-cross::before {\n content: "\\ea0d";\n }\n .kolicon-eye-closed::before {\n content: "\\ea0e";\n }\n .kolicon-eye::before {\n content: "\\ea0f";\n }\n .kolicon-house::before {\n content: "\\ea10";\n }\n .kolicon-kolibri::before {\n content: "\\ea11";\n }\n .kolicon-link-external::before {\n content: "\\ea12";\n }\n .kolicon-link::before {\n content: "\\ea13";\n }\n .kolicon-minus::before {\n content: "\\ea14";\n }\n .kolicon-plus::before {\n content: "\\ea15";\n }\n .kolicon-settings::before {\n content: "\\ea16";\n }\n .kolicon-sort-asc::before {\n content: "\\ea17";\n }\n .kolicon-sort-desc::before {\n content: "\\ea18";\n }\n .kolicon-sort-neutral::before {\n content: "\\ea19";\n }\n .kolicon-up::before {\n content: "\\ea1a";\n }\n .kolicon-version::before {\n content: "\\ea1b";\n }\n}\n@layer kol-component {\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #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-form-field {\n display: grid;\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field__label-text {\n flex-flow: row;\n align-items: flex-start;\n justify-content: flex-start;\n }\n .kol-form-field--required .kol-form-field__label-text:not(:has(> [name]))::after,\n .kol-form-field--required .kol-tooltip__content .kol-span__label::after {\n content: "*"/"";\n }\n .kol-input-container {\n background-color: transparent;\n display: grid;\n width: 100%;\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n align-items: center;\n grid-template-columns: 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start) {\n grid-template-columns: auto 1fr auto;\n }\n .kol-input-container__container {\n position: relative;\n }\n .kol-input-container__adornment {\n display: flex;\n align-items: center;\n }\n .kol-input-container__adornment .kol-icon {\n display: grid;\n min-height: var(--a11y-min-size);\n place-items: center;\n }\n .kol-textarea {\n width: 100%;\n }\n .kol-textarea:focus {\n outline: none;\n }\n}',O=e=>{e.style.overflow="hidden";const t=e.rows,n=e.clientHeight/t;e.rows=1;const o=Math.round(e.scrollHeight/n);return e.rows=t,o},M=class{async getValue(){var e;return null===(e=this.textareaRef)||void 0===e?void 0:e.value}async focus(){return k(this.host,()=>g(this.textareaRef))}async click(){return u(this.host,async()=>b(this.textareaRef))}getFormFieldProps(){return{state:this.state,class:i("kol-form-field-textarea",{"kol-form-field--has-value":this.state._hasValue,"kol-form-field--has-counter":this.controller.hasSoftCharacterLimit()||this.controller.hasCounter()}),tooltipAlign:this._tooltipAlign,alert:this.showAsAlert()}}getTextAreaProps(){const e="number"==typeof this.state._maxLength?[`${this.state._id}-character-limit-hint`]:void 0;return Object.assign(Object.assign({ref:this.setTextareaRef,state:this.state,style:{resize:this.state._resize},ariaDescribedBy:e},this.controller.onFacade),{onInput:this.onInput,onFocus:e=>{this.controller.onFacade.onFocus(e),this.inputHasFocus=!0},onBlur:e=>{this.controller.onFacade.onBlur(e),this.inputHasFocus=!1}})}render(){return e(r,Object.assign({key:"c1bcc294429bf73310f6fc14c3e272041c97e421"},this.getFormFieldProps()),e(h,{key:"fc13866d1e2377f33157368a6ec61c095d6aff65",state:this.state},e(S,Object.assign({key:"86c4a66e9899ec776ca42298faa9465b763505b5"},this.getTextAreaProps()))))}constructor(e){n(this,e),this.setTextareaRef=e=>{this.textareaRef=e},this._adjustHeight=!1,this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._hasCounter=!1,this._maxLengthBehavior="hard",this._readOnly=!1,this._resize="vertical",this._required=!1,this._tooltipAlign="top",this._touched=!1,this.state={_adjustHeight:!1,_currentLength:0,_currentLengthDebounced:0,_hasValue:!1,_hideMsg:!1,_id:`id-${p()}`,_label:"",_resize:"vertical"},this.inputHasFocus=!1,this.onInput=e=>{this.textareaRef instanceof HTMLTextAreaElement&&(this._value=this.textareaRef.value,this.state._adjustHeight&&(this._rows=O(this.textareaRef)),this.controller.onFacade.onInput(e))},this.controller=new A(this,"textarea",this.host)}showAsAlert(){return Boolean(this.state._touched)&&!this.inputHasFocus}validateAccessKey(e){this.controller.validateAccessKey(e)}validateAdjustHeight(e){this.controller.validateAdjustHeight(e)}validateDisabled(e){this.controller.validateDisabled(e)}validateHideMsg(e){this.controller.validateHideMsg(e)}validateHideLabel(e){this.controller.validateHideLabel(e)}validateHasCounter(e){this.controller.validateHasCounter(e)}validateHint(e){this.controller.validateHint(e)}validateIcons(e){this.controller.validateIcons(e)}validateLabel(e){this.controller.validateLabel(e)}validateMaxLength(e){this.controller.validateMaxLength(e)}validateMaxLengthBehavior(e){this.controller.validateMaxLengthBehavior(e)}validateMsg(e){this.controller.validateMsg(e)}validateName(e){this.controller.validateName(e)}validateOn(e){this.controller.validateOn(e)}validatePlaceholder(e){this.controller.validatePlaceholder(e)}validateReadOnly(e){this.controller.validateReadOnly(e)}validateResize(e){this.controller.validateResize(e)}validateRequired(e){this.controller.validateRequired(e)}validateRows(e){this.controller.validateRows(e)}validateShortKey(e){this.controller.validateShortKey(e)}validateSpellCheck(e){this.controller.validateSpellCheck(e)}validateSyncValueBySelector(e){this.controller.validateSyncValueBySelector(e)}validateTouched(e){this.controller.validateTouched(e)}validateValue(e){this.controller.validateValue(e)}componentDidLoad(){setTimeout(()=>{var e;!0===this._adjustHeight&&this.textareaRef?this._rows=(null===(e=this.state)||void 0===e?void 0:e._rows)&&this.state._rows>O(this.textareaRef)?this.state._rows:O(this.textareaRef):this._rows||(this._rows=1)})}componentWillLoad(){this._touched=!0===this._touched,this.controller.componentWillLoad(),this.state._hasValue=!!this.state._value,this.controller.addValueChangeListener(e=>this.state._hasValue=!!e)}get host(){return t(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_adjustHeight:["validateAdjustHeight"],_disabled:["validateDisabled"],_hideMsg:["validateHideMsg"],_hideLabel:["validateHideLabel"],_hasCounter:["validateHasCounter"],_hint:["validateHint"],_icons:["validateIcons"],_label:["validateLabel"],_maxLength:["validateMaxLength"],_maxLengthBehavior:["validateMaxLengthBehavior"],_msg:["validateMsg"],_name:["validateName"],_on:["validateOn"],_placeholder:["validatePlaceholder"],_readOnly:["validateReadOnly"],_resize:["validateResize"],_required:["validateRequired"],_rows:["validateRows"],_shortKey:["validateShortKey"],_spellCheck:["validateSpellCheck"],_syncValueBySelector:["validateSyncValueBySelector"],_touched:["validateTouched"],_value:["validateValue"]}}};M.style={default:H};export{M as kol_textarea};
4
+ import{h as e,r as n,g as t}from"./index-BLN7o4q9.js";import{c as i}from"./clsx-COFh-Vc8.js";import{i as o,c as a,g as l,a as s,F as r}from"./FormFieldStateWrapper-DMGj_ktW.js";import{I as c,a as h}from"./controller-icon-eHFTwwAq.js";import{_ as d}from"./tslib.es6-CxX45GIN.js";import{b as f,g as m}from"./common-BqV6Zb30.js";import{n as p}from"./dev.utils-OocbD-tX.js";import{d as u,s as b}from"./element-click-BTxuJDNT.js";import{d as k,s as g}from"./element-focus-BKUtVrWY.js";import{a as v,v as y,b as w}from"./max-length-behavior-DMw3rhwa.js";import{v as _}from"./placeholder-BuBUMNhW.js";import{v as x}from"./read-only-DnkXqxgk.js";import{v as j}from"./required-C9Xj8kw2.js";import{v as z}from"./rows-lThApm3P.js";import{v as B}from"./spell-check-Y1ApnP_M.js";import"./access-and-short-key-D2TiPdWw.js";import"./disabled-BBn2JEzf.js";import"./hide-label-DQL9J6E_.js";import"./label-vxVEH2gH.js";import"./tooltip-align-DnbCY1Uu.js";import"./align-D3Z54kEL.js";import"./events-DHTi_wtD.js";import"./associated.controller-BKQIR17-.js";import"./bootstrap-CbPXNlVt.js";import"./component-names-Dy77vq43.js";import"./i18n-B2d_exHc.js";import"./_Uint8Array-kJHDjtoP.js";import"./isArray-CcrBs4JM.js";import"./variant-quote-DI6q8gPw.js";import"./normalizers-C14RETgU.js";import"./component-BiN2w_i3.js";import"./component-Dg1kfcHt.js";import"./bem-registry-Bux_TllX.js";import"./component-DeXlKUBS.js";import"./controller-Cf3CGZT-.js";import"./align-floating-elements-58sFZOrL.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./label-DK7sT-k5.js";import"./base-controller-CXhqh4cR.js";import"./i18n-BVaUp6qp.js";import"./Alert-B5KWODS6.js";import"./Heading-uyeDBNru.js";import"./icons-CqQ9plmY.js";const T=["vertical","none"],L=e=>"string"==typeof e&&T.includes(e),D=(e,t)=>{f(e,"_resize",L,new Set(T),t,{defaultValue:"vertical"})},q=t=>{const{class:n,msg:r,touched:s,readonly:c,disabled:h,required:m,ariaDescribedBy:p,hideLabel:u,label:f}=t,b=d(t,["class","msg","touched","readonly","disabled","required","ariaDescribedBy","hideLabel","label"]),v={"kol-textarea--disabled":Boolean(h),"kol-textarea--required":Boolean(m),"kol-textarea--touched":Boolean(s),"kol-textarea--readonly":Boolean(c),[`kol-textarea--${l(r)}`]:o(r,s)},g=Object.assign(Object.assign({class:i("kol-textarea",v,n),required:m,disabled:h,readonly:c},a({ariaDescribedBy:p,hideLabel:u,label:f})),b);return e("textarea",Object.assign({},g))};function C(e,t){var n;const o=[...s(e).ariaDescribedBy,...null!==(n=t.ariaDescribedBy)&&void 0!==n?n:[]],i=Object.assign(Object.assign({id:e._id,hideLabel:e._hideLabel,label:e._label,value:e._value,accessKey:e._accessKey,disabled:e._disabled,name:e._name,rows:e._rows,readonly:e._readOnly,required:e._required,placeholder:e._placeholder,touched:e._touched,msg:e._msg},t),{ariaDescribedBy:o});return"_maxLength"in e&&"_maxLengthBehavior"in e&&"hard"===e._maxLengthBehavior&&(i.maxLength=e._maxLength),"_shortKey"in e&&(i["aria-keyshortcuts"]=e._shortKey),i}const S=t=>{var{state:n}=t,o=d(t,["state"]);return e(q,Object.assign({},C(n,o)))};class A extends c{constructor(e,t,n){super(e,t,n),this.afterSyncCharCounter=()=>{"string"==typeof this.component._value&&(this.component.state._currentLength=this.component._value.length,this.updateCurrentLengthDebounced(this.component._value.length))},this.component=e}validateHasCounter(e){v(this.component,e)}validateMaxLengthBehavior(e){y(this.component,e)}validateMaxLength(e){w(this.component,e,{hooks:{afterPatch:this.afterSyncCharCounter}})}validatePlaceholder(e){_(this.component,e)}validateReadOnly(e){x(this.component,e)}validateResize(e){D(this.component,e)}validateRequired(e){j(this.component,e)}validateRows(e){z(this.component,e)}validateSpellCheck(e){B(this.component,e)}validateValue(e){m(this.component,"_value",e,{hooks:{afterPatch:this.afterSyncCharCounter}}),this.setFormAssociatedValue(this.component._value)}componentWillLoad(){super.componentWillLoad(),this.validateHasCounter(this.component._hasCounter),this.validateMaxLengthBehavior(this.component._maxLengthBehavior),this.validateMaxLength(this.component._maxLength),this.validatePlaceholder(this.component._placeholder),this.validateReadOnly(this.component._readOnly),this.validateRequired(this.component._required),this.validateResize(this.component._resize),this.validateRows(this.component._rows),this.validateSpellCheck(this.component._spellCheck),this.validateValue(this.component._value)}}const H='@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 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=1777089109826"); /* IE9*/\n src: url("kolicons.eot?t=1777089109826#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1777089109826") format("woff2"), url("kolicons.woff?t=1777089109826") format("woff"), url("kolicons.ttf?t=1777089109826") format("truetype"), url("kolicons.svg?t=1777089109826#kolicons") format("svg"); /* iOS 4.1- */\n}\n@layer kol-component {\n [class^=kolicon-], [class*=" kolicon-"] {\n font-family: "kolicons";\n font-style: normal;\n font-weight: 400;\n line-height: 1em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n .kolicon-alert-error::before {\n content: "\\ea01";\n }\n .kolicon-alert-info::before {\n content: "\\ea02";\n }\n .kolicon-alert-success::before {\n content: "\\ea03";\n }\n .kolicon-alert-warning::before {\n content: "\\ea04";\n }\n .kolicon-check::before {\n content: "\\ea05";\n }\n .kolicon-chevron-double-left::before {\n content: "\\ea06";\n }\n .kolicon-chevron-double-right::before {\n content: "\\ea07";\n }\n .kolicon-chevron-down::before {\n content: "\\ea08";\n }\n .kolicon-chevron-left::before {\n content: "\\ea09";\n }\n .kolicon-chevron-right::before {\n content: "\\ea0a";\n }\n .kolicon-chevron-up::before {\n content: "\\ea0b";\n }\n .kolicon-cogwheel::before {\n content: "\\ea0c";\n }\n .kolicon-cross::before {\n content: "\\ea0d";\n }\n .kolicon-eye-closed::before {\n content: "\\ea0e";\n }\n .kolicon-eye::before {\n content: "\\ea0f";\n }\n .kolicon-house::before {\n content: "\\ea10";\n }\n .kolicon-kolibri::before {\n content: "\\ea11";\n }\n .kolicon-link-external::before {\n content: "\\ea12";\n }\n .kolicon-link::before {\n content: "\\ea13";\n }\n .kolicon-minus::before {\n content: "\\ea14";\n }\n .kolicon-plus::before {\n content: "\\ea15";\n }\n .kolicon-settings::before {\n content: "\\ea16";\n }\n .kolicon-sort-asc::before {\n content: "\\ea17";\n }\n .kolicon-sort-desc::before {\n content: "\\ea18";\n }\n .kolicon-sort-neutral::before {\n content: "\\ea19";\n }\n .kolicon-up::before {\n content: "\\ea1a";\n }\n .kolicon-version::before {\n content: "\\ea1b";\n }\n}\n@layer kol-component {\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #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-form-field {\n display: grid;\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field__label-text {\n flex-flow: row;\n align-items: flex-start;\n justify-content: flex-start;\n }\n .kol-form-field--required .kol-form-field__label-text:not(:has(> [name]))::after,\n .kol-form-field--required .kol-tooltip__content .kol-span__label::after {\n content: "*"/"";\n }\n .kol-input-container {\n background-color: transparent;\n display: grid;\n width: 100%;\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n align-items: center;\n grid-template-columns: 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start) {\n grid-template-columns: auto 1fr auto;\n }\n .kol-input-container__container {\n position: relative;\n }\n .kol-input-container__adornment {\n display: flex;\n align-items: center;\n }\n .kol-input-container__adornment .kol-icon {\n display: grid;\n min-height: var(--a11y-min-size);\n place-items: center;\n }\n .kol-textarea {\n width: 100%;\n }\n .kol-textarea:focus {\n outline: none;\n }\n}',O=e=>{e.style.overflow="hidden";const t=e.rows,n=e.clientHeight/t;e.rows=1;const o=Math.round(e.scrollHeight/n);return e.rows=t,o},M=class{async getValue(){var e;return null===(e=this.textareaRef)||void 0===e?void 0:e.value}async focus(){return k(this.host,()=>g(this.textareaRef))}async click(){return u(this.host,async()=>b(this.textareaRef))}getFormFieldProps(){return{state:this.state,class:i("kol-form-field-textarea",{"kol-form-field--has-value":this.state._hasValue,"kol-form-field--has-counter":this.controller.hasSoftCharacterLimit()||this.controller.hasCounter()}),tooltipAlign:this._tooltipAlign,alert:this.showAsAlert()}}getTextAreaProps(){const e="number"==typeof this.state._maxLength?[`${this.state._id}-character-limit-hint`]:void 0;return Object.assign(Object.assign({ref:this.setTextareaRef,state:this.state,style:{resize:this.state._resize},ariaDescribedBy:e},this.controller.onFacade),{onInput:this.onInput,onFocus:e=>{this.controller.onFacade.onFocus(e),this.inputHasFocus=!0},onBlur:e=>{this.controller.onFacade.onBlur(e),this.inputHasFocus=!1}})}render(){return e(r,Object.assign({key:"c1bcc294429bf73310f6fc14c3e272041c97e421"},this.getFormFieldProps()),e(h,{key:"fc13866d1e2377f33157368a6ec61c095d6aff65",state:this.state},e(S,Object.assign({key:"86c4a66e9899ec776ca42298faa9465b763505b5"},this.getTextAreaProps()))))}constructor(e){n(this,e),this.setTextareaRef=e=>{this.textareaRef=e},this._adjustHeight=!1,this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._hasCounter=!1,this._maxLengthBehavior="hard",this._readOnly=!1,this._resize="vertical",this._required=!1,this._tooltipAlign="top",this._touched=!1,this.state={_adjustHeight:!1,_currentLength:0,_currentLengthDebounced:0,_hasValue:!1,_hideMsg:!1,_id:`id-${p()}`,_label:"",_resize:"vertical"},this.inputHasFocus=!1,this.onInput=e=>{this.textareaRef instanceof HTMLTextAreaElement&&(this._value=this.textareaRef.value,this.state._adjustHeight&&(this._rows=O(this.textareaRef)),this.controller.onFacade.onInput(e))},this.controller=new A(this,"textarea",this.host)}showAsAlert(){return Boolean(this.state._touched)&&!this.inputHasFocus}validateAccessKey(e){this.controller.validateAccessKey(e)}validateAdjustHeight(e){this.controller.validateAdjustHeight(e)}validateDisabled(e){this.controller.validateDisabled(e)}validateHideMsg(e){this.controller.validateHideMsg(e)}validateHideLabel(e){this.controller.validateHideLabel(e)}validateHasCounter(e){this.controller.validateHasCounter(e)}validateHint(e){this.controller.validateHint(e)}validateIcons(e){this.controller.validateIcons(e)}validateLabel(e){this.controller.validateLabel(e)}validateMaxLength(e){this.controller.validateMaxLength(e)}validateMaxLengthBehavior(e){this.controller.validateMaxLengthBehavior(e)}validateMsg(e){this.controller.validateMsg(e)}validateName(e){this.controller.validateName(e)}validateOn(e){this.controller.validateOn(e)}validatePlaceholder(e){this.controller.validatePlaceholder(e)}validateReadOnly(e){this.controller.validateReadOnly(e)}validateResize(e){this.controller.validateResize(e)}validateRequired(e){this.controller.validateRequired(e)}validateRows(e){this.controller.validateRows(e)}validateShortKey(e){this.controller.validateShortKey(e)}validateSpellCheck(e){this.controller.validateSpellCheck(e)}validateSyncValueBySelector(e){this.controller.validateSyncValueBySelector(e)}validateTouched(e){this.controller.validateTouched(e)}validateValue(e){this.controller.validateValue(e)}componentDidLoad(){setTimeout(()=>{var e;!0===this._adjustHeight&&this.textareaRef?this._rows=(null===(e=this.state)||void 0===e?void 0:e._rows)&&this.state._rows>O(this.textareaRef)?this.state._rows:O(this.textareaRef):this._rows||(this._rows=1)})}componentWillLoad(){this._touched=!0===this._touched,this.controller.componentWillLoad(),this.state._hasValue=!!this.state._value,this.controller.addValueChangeListener(e=>this.state._hasValue=!!e)}get host(){return t(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_adjustHeight:["validateAdjustHeight"],_disabled:["validateDisabled"],_hideMsg:["validateHideMsg"],_hideLabel:["validateHideLabel"],_hasCounter:["validateHasCounter"],_hint:["validateHint"],_icons:["validateIcons"],_label:["validateLabel"],_maxLength:["validateMaxLength"],_maxLengthBehavior:["validateMaxLengthBehavior"],_msg:["validateMsg"],_name:["validateName"],_on:["validateOn"],_placeholder:["validatePlaceholder"],_readOnly:["validateReadOnly"],_resize:["validateResize"],_required:["validateRequired"],_rows:["validateRows"],_shortKey:["validateShortKey"],_spellCheck:["validateSpellCheck"],_syncValueBySelector:["validateSyncValueBySelector"],_touched:["validateTouched"],_value:["validateValue"]}}};M.style={default:H};export{M as kol_textarea};