@public-ui/components 3.0.1-rc.0 → 3.0.2-1e1d8522b9f6826d286c64e7859e0ac6d14b13a9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1047) hide show
  1. package/README.md +58 -8
  2. package/custom-elements.json +176 -19
  3. package/dist/cjs/Alert-95d222c3.js +4 -0
  4. package/dist/cjs/Alert-95d222c3.js.map +1 -0
  5. package/dist/cjs/{Collapsible-58d459ac.js → Collapsible-27685355.js} +1 -1
  6. package/dist/cjs/{Collapsible-58d459ac.js.map → Collapsible-27685355.js.map} +1 -1
  7. package/dist/cjs/CustomSuggestionsOptionsGroup-faff6757.js +4 -0
  8. package/dist/cjs/CustomSuggestionsOptionsGroup-faff6757.js.map +1 -0
  9. package/dist/cjs/FieldControlStateWrapper-1f9f63c3.js +4 -0
  10. package/dist/cjs/FieldControlStateWrapper-1f9f63c3.js.map +1 -0
  11. package/dist/cjs/Heading-9f8e6122.js +4 -0
  12. package/dist/cjs/Heading-9f8e6122.js.map +1 -0
  13. package/dist/cjs/Icon-363ceed6.js +4 -0
  14. package/dist/cjs/{Icon-1ab759d0.js.map → Icon-363ceed6.js.map} +1 -1
  15. package/dist/cjs/{Input-49eb6dae.js → Input-2cae1c79.js} +1 -1
  16. package/dist/cjs/{Input-49eb6dae.js.map → Input-2cae1c79.js.map} +1 -1
  17. package/dist/cjs/InputStateWrapper-e5f8a125.js +4 -0
  18. package/dist/cjs/InputStateWrapper-e5f8a125.js.map +1 -0
  19. package/dist/cjs/{InternalUnderlinedBadgeText-793a01ae.js → InternalUnderlinedBadgeText-fae7644a.js} +1 -1
  20. package/dist/cjs/{InternalUnderlinedBadgeText-793a01ae.js.map → InternalUnderlinedBadgeText-fae7644a.js.map} +1 -1
  21. package/dist/cjs/{Span-d9a9102a.js → Span-e67cc75c.js} +1 -1
  22. package/dist/cjs/{Span-d9a9102a.js.map → Span-e67cc75c.js.map} +1 -1
  23. package/dist/cjs/{access-and-short-key-2167fc7c.js → access-and-short-key-ba5dc318.js} +1 -1
  24. package/dist/cjs/{access-and-short-key-2167fc7c.js.map → access-and-short-key-ba5dc318.js.map} +1 -1
  25. package/dist/cjs/{align-4abb9b20.js → align-6dbf7621.js} +1 -1
  26. package/dist/cjs/{align-4abb9b20.js.map → align-6dbf7621.js.map} +1 -1
  27. package/dist/cjs/align-floating-elements-8ddb8593.js +4 -0
  28. package/dist/cjs/align-floating-elements-8ddb8593.js.map +1 -0
  29. package/dist/cjs/app-globals-9ceafddc.js +4 -0
  30. package/dist/cjs/{app-globals-2d81cc92.js.map → app-globals-9ceafddc.js.map} +1 -1
  31. package/dist/cjs/{associated.controller-949dd4e2.js → associated.controller-7b651bde.js} +1 -1
  32. package/dist/cjs/{associated.controller-949dd4e2.js.map → associated.controller-7b651bde.js.map} +1 -1
  33. package/dist/cjs/{bootstrap-7c830737.js → bootstrap-0ea93cf5.js} +1 -1
  34. package/dist/cjs/{bootstrap-7c830737.js.map → bootstrap-0ea93cf5.js.map} +1 -1
  35. package/dist/cjs/{color-e458d959.js → color-9f3a33be.js} +1 -1
  36. package/dist/cjs/color-9f3a33be.js.map +1 -0
  37. package/dist/cjs/component-names-1cb5b7ce.js +4 -0
  38. package/dist/cjs/component-names-1cb5b7ce.js.map +1 -0
  39. package/dist/cjs/controller-2ac6da6b.js +4 -0
  40. package/dist/cjs/controller-2ac6da6b.js.map +1 -0
  41. package/dist/cjs/{controller-9169085a.js → controller-58d062d3.js} +1 -1
  42. package/dist/cjs/{controller-9169085a.js.map → controller-58d062d3.js.map} +1 -1
  43. package/dist/cjs/{controller-7c72bfb5.js → controller-75a14bc0.js} +1 -1
  44. package/dist/cjs/{controller-7c72bfb5.js.map → controller-75a14bc0.js.map} +1 -1
  45. package/dist/cjs/{controller-7b2b6afc.js → controller-e1671afc.js} +1 -1
  46. package/dist/cjs/{controller-7b2b6afc.js.map → controller-e1671afc.js.map} +1 -1
  47. package/dist/cjs/{controller-icon-6be4bb30.js → controller-icon-570b1854.js} +1 -1
  48. package/dist/cjs/controller-icon-570b1854.js.map +1 -0
  49. package/dist/cjs/{custom-class-cfe6094f.js → custom-class-65fdabdc.js} +1 -1
  50. package/dist/cjs/{custom-class-cfe6094f.js.map → custom-class-65fdabdc.js.map} +1 -1
  51. package/dist/cjs/{dev.utils-178da62b.js → dev.utils-dcfea774.js} +1 -1
  52. package/dist/cjs/{dev.utils-178da62b.js.map → dev.utils-dcfea774.js.map} +1 -1
  53. package/dist/cjs/{devtools-9dcc4aee.js → devtools-65916bdb.js} +1 -1
  54. package/dist/cjs/{devtools-9dcc4aee.js.map → devtools-65916bdb.js.map} +1 -1
  55. package/dist/cjs/{disabled-71a44266.js → disabled-1872d3f6.js} +1 -1
  56. package/dist/cjs/{disabled-71a44266.js.map → disabled-1872d3f6.js.map} +1 -1
  57. package/dist/cjs/events-df7aa71f.js +4 -0
  58. package/dist/cjs/events-df7aa71f.js.map +1 -0
  59. package/dist/cjs/{getRenderStates-bdec93a5.js → getRenderStates-d82906ff.js} +1 -1
  60. package/dist/cjs/getRenderStates-d82906ff.js.map +1 -0
  61. package/dist/cjs/{has-closer-eda2f56e.js → has-closer-b9c139d3.js} +1 -1
  62. package/dist/cjs/{has-closer-eda2f56e.js.map → has-closer-b9c139d3.js.map} +1 -1
  63. package/dist/cjs/{has-counter-c7ed1940.js → has-counter-edfb692b.js} +1 -1
  64. package/dist/cjs/{has-counter-c7ed1940.js.map → has-counter-edfb692b.js.map} +1 -1
  65. package/dist/cjs/{hide-label-5889f019.js → hide-label-18d6d9e2.js} +1 -1
  66. package/dist/cjs/{hide-label-5889f019.js.map → hide-label-18d6d9e2.js.map} +1 -1
  67. package/dist/cjs/{href-273fdbde.js → href-b36c8e1d.js} +1 -1
  68. package/dist/cjs/{href-273fdbde.js.map → href-b36c8e1d.js.map} +1 -1
  69. package/dist/cjs/{i18n-b9d16ebc.js → i18n-b01aa5d0.js} +1 -1
  70. package/dist/cjs/{i18n-b9d16ebc.js.map → i18n-b01aa5d0.js.map} +1 -1
  71. package/dist/cjs/{icons-9df3131b.js → icons-99569c9b.js} +1 -1
  72. package/dist/cjs/{icons-9df3131b.js.map → icons-99569c9b.js.map} +1 -1
  73. package/dist/cjs/image-source-481ea03a.js +4 -0
  74. package/dist/cjs/{image-source-f24a4569.js.map → image-source-481ea03a.js.map} +1 -1
  75. package/dist/cjs/index-77bc3aef.js +4 -0
  76. package/dist/cjs/index-77bc3aef.js.map +1 -0
  77. package/dist/cjs/index-94c17ce6.js +4 -0
  78. package/dist/cjs/index-94c17ce6.js.map +1 -0
  79. package/dist/cjs/index.cjs.js +1 -1
  80. package/dist/cjs/index.cjs.js.map +1 -1
  81. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  82. package/dist/cjs/kol-abbr.cjs.entry.js.map +1 -1
  83. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  84. package/dist/cjs/kol-accordion.cjs.entry.js.map +1 -1
  85. package/dist/cjs/kol-alert-wc.cjs.entry.js +1 -1
  86. package/dist/cjs/kol-alert-wc.cjs.entry.js.map +1 -1
  87. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  88. package/dist/cjs/kol-alert.cjs.entry.js.map +1 -1
  89. package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
  90. package/dist/cjs/kol-avatar-wc.cjs.entry.js.map +1 -1
  91. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  92. package/dist/cjs/kol-avatar.cjs.entry.js.map +1 -1
  93. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  94. package/dist/cjs/kol-badge.cjs.entry.js.map +1 -1
  95. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  96. package/dist/cjs/kol-breadcrumb.cjs.entry.js.map +1 -1
  97. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  98. package/dist/cjs/kol-button-link.cjs.entry.js.map +1 -1
  99. package/dist/cjs/kol-button-wc.cjs.entry.js +1 -1
  100. package/dist/cjs/kol-button-wc.cjs.entry.js.map +1 -1
  101. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  102. package/dist/cjs/kol-button.cjs.entry.js.map +1 -1
  103. package/dist/cjs/kol-card-wc.cjs.entry.js +4 -0
  104. package/dist/cjs/kol-card-wc.cjs.entry.js.map +1 -0
  105. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  106. package/dist/cjs/kol-card.cjs.entry.js.map +1 -1
  107. package/dist/cjs/kol-combobox.cjs.entry.js +1 -1
  108. package/dist/cjs/kol-combobox.cjs.entry.js.map +1 -1
  109. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  110. package/dist/cjs/kol-details.cjs.entry.js.map +1 -1
  111. package/dist/cjs/kol-drawer.cjs.entry.js +1 -1
  112. package/dist/cjs/kol-drawer.cjs.entry.js.map +1 -1
  113. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  114. package/dist/cjs/kol-form.cjs.entry.js.map +1 -1
  115. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  116. package/dist/cjs/kol-heading.cjs.entry.js.map +1 -1
  117. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  118. package/dist/cjs/kol-icon.cjs.entry.js.map +1 -1
  119. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  120. package/dist/cjs/kol-image.cjs.entry.js.map +1 -1
  121. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  122. package/dist/cjs/kol-input-checkbox.cjs.entry.js.map +1 -1
  123. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  124. package/dist/cjs/kol-input-color.cjs.entry.js.map +1 -1
  125. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  126. package/dist/cjs/kol-input-date.cjs.entry.js.map +1 -1
  127. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  128. package/dist/cjs/kol-input-email.cjs.entry.js.map +1 -1
  129. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  130. package/dist/cjs/kol-input-file.cjs.entry.js.map +1 -1
  131. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  132. package/dist/cjs/kol-input-number.cjs.entry.js.map +1 -1
  133. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  134. package/dist/cjs/kol-input-password.cjs.entry.js.map +1 -1
  135. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  136. package/dist/cjs/kol-input-radio.cjs.entry.js.map +1 -1
  137. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  138. package/dist/cjs/kol-input-range.cjs.entry.js.map +1 -1
  139. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  140. package/dist/cjs/kol-input-text.cjs.entry.js.map +1 -1
  141. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  142. package/dist/cjs/kol-kolibri.cjs.entry.js.map +1 -1
  143. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  144. package/dist/cjs/kol-link-button.cjs.entry.js.map +1 -1
  145. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  146. package/dist/cjs/kol-link-wc.cjs.entry.js.map +1 -1
  147. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  148. package/dist/cjs/kol-link.cjs.entry.js.map +1 -1
  149. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  150. package/dist/cjs/kol-modal.cjs.entry.js.map +1 -1
  151. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  152. package/dist/cjs/kol-nav.cjs.entry.js.map +1 -1
  153. package/dist/cjs/kol-pagination-wc.cjs.entry.js +4 -0
  154. package/dist/cjs/kol-pagination-wc.cjs.entry.js.map +1 -0
  155. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  156. package/dist/cjs/kol-pagination.cjs.entry.js.map +1 -1
  157. package/dist/cjs/kol-popover-button-wc.cjs.entry.js +1 -1
  158. package/dist/cjs/kol-popover-button-wc.cjs.entry.js.map +1 -1
  159. package/dist/cjs/kol-popover-button.cjs.entry.js +1 -1
  160. package/dist/cjs/kol-popover-button.cjs.entry.js.map +1 -1
  161. package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
  162. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  163. package/dist/cjs/kol-progress.cjs.entry.js.map +1 -1
  164. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  165. package/dist/cjs/kol-quote.cjs.entry.js.map +1 -1
  166. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  167. package/dist/cjs/kol-select.cjs.entry.js.map +1 -1
  168. package/dist/cjs/kol-single-select.cjs.entry.js +1 -1
  169. package/dist/cjs/kol-single-select.cjs.entry.js.map +1 -1
  170. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  171. package/dist/cjs/kol-skip-nav.cjs.entry.js.map +1 -1
  172. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  173. package/dist/cjs/kol-spin.cjs.entry.js.map +1 -1
  174. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  175. package/dist/cjs/kol-split-button.cjs.entry.js.map +1 -1
  176. package/dist/cjs/kol-table-settings-wc.cjs.entry.js +1 -1
  177. package/dist/cjs/kol-table-settings-wc.cjs.entry.js.map +1 -1
  178. package/dist/cjs/kol-table-stateful.cjs.entry.js +1 -1
  179. package/dist/cjs/kol-table-stateful.cjs.entry.js.map +1 -1
  180. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js +1 -1
  181. package/dist/cjs/kol-table-stateless.cjs.entry.js +1 -1
  182. package/dist/cjs/kol-table-stateless.cjs.entry.js.map +1 -1
  183. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  184. package/dist/cjs/kol-tabs.cjs.entry.js.map +1 -1
  185. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  186. package/dist/cjs/kol-textarea.cjs.entry.js.map +1 -1
  187. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  188. package/dist/cjs/kol-toast-container.cjs.entry.js.map +1 -1
  189. package/dist/cjs/kol-toolbar.cjs.entry.js +1 -1
  190. package/dist/cjs/kol-toolbar.cjs.entry.js.map +1 -1
  191. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +1 -1
  192. package/dist/cjs/kol-tree-item-wc.cjs.entry.js +1 -1
  193. package/dist/cjs/kol-tree-item.cjs.entry.js +1 -1
  194. package/dist/cjs/kol-tree-item.cjs.entry.js.map +1 -1
  195. package/dist/cjs/kol-tree-wc.cjs.entry.js +1 -1
  196. package/dist/cjs/kol-tree.cjs.entry.js +1 -1
  197. package/dist/cjs/kol-tree.cjs.entry.js.map +1 -1
  198. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  199. package/dist/cjs/kol-version.cjs.entry.js.map +1 -1
  200. package/dist/cjs/kolibri.cjs.js +1 -1
  201. package/dist/cjs/{label-21c38949.js → label-7b22af75.js} +1 -1
  202. package/dist/cjs/{label-21c38949.js.map → label-7b22af75.js.map} +1 -1
  203. package/dist/cjs/link-variant-fa5e798a.js +4 -0
  204. package/dist/cjs/link-variant-fa5e798a.js.map +1 -0
  205. package/dist/cjs/loader.cjs.js +1 -1
  206. package/dist/cjs/{open-4dee9006.js → open-350f3b99.js} +1 -1
  207. package/dist/cjs/{open-4dee9006.js.map → open-350f3b99.js.map} +1 -1
  208. package/dist/cjs/orientation-7bef64eb.js +4 -0
  209. package/dist/cjs/orientation-7bef64eb.js.map +1 -0
  210. package/dist/cjs/{rows-f8c639c4.js → rows-00510978.js} +1 -1
  211. package/dist/cjs/{rows-f8c639c4.js.map → rows-00510978.js.map} +1 -1
  212. package/dist/cjs/{show-f24ad825.js → show-0449c2d9.js} +1 -1
  213. package/dist/cjs/{show-f24ad825.js.map → show-0449c2d9.js.map} +1 -1
  214. package/dist/cjs/spell-check-e7bda657.js +4 -0
  215. package/dist/cjs/{spell-check-0419d7d7.js.map → spell-check-e7bda657.js.map} +1 -1
  216. package/dist/cjs/{suggestions-69a79ec5.js → suggestions-88f8f404.js} +1 -1
  217. package/dist/cjs/{suggestions-69a79ec5.js.map → suggestions-88f8f404.js.map} +1 -1
  218. package/dist/cjs/{table-settings-ab716c5d.js → table-settings-3f1de70e.js} +1 -1
  219. package/dist/cjs/{table-settings-ab716c5d.js.map → table-settings-3f1de70e.js.map} +1 -1
  220. package/dist/cjs/test-component.cjs.entry.js +1 -1
  221. package/dist/cjs/tooltip-align-6938fb01.js +4 -0
  222. package/dist/cjs/{tooltip-align-4446177f.js.map → tooltip-align-6938fb01.js.map} +1 -1
  223. package/dist/cjs/unique-nav-labels-eee92e0a.js +4 -0
  224. package/dist/cjs/unique-nav-labels-eee92e0a.js.map +1 -0
  225. package/dist/cjs/validation-515de18a.js +4 -0
  226. package/dist/cjs/{validation-2d282d7c.js.map → validation-515de18a.js.map} +1 -1
  227. package/dist/cjs/{validation-6b01b0ae.js → validation-8f012860.js} +1 -1
  228. package/dist/cjs/{validation-6b01b0ae.js.map → validation-8f012860.js.map} +1 -1
  229. package/dist/components/Alert.js +1 -1
  230. package/dist/components/Alert.js.map +1 -1
  231. package/dist/components/Collapsible.js +1 -1
  232. package/dist/components/CustomSuggestionsOptionsGroup.js +1 -1
  233. package/dist/components/CustomSuggestionsOptionsGroup.js.map +1 -1
  234. package/dist/components/FieldControlStateWrapper.js +1 -1
  235. package/dist/components/FieldControlStateWrapper.js.map +1 -1
  236. package/dist/components/Heading.js +1 -1
  237. package/dist/components/Heading.js.map +1 -1
  238. package/dist/components/Icon.js +1 -1
  239. package/dist/components/InputContainerStateWrapper.js +1 -1
  240. package/dist/components/InputContainerStateWrapper.js.map +1 -1
  241. package/dist/components/InputStateWrapper.js +1 -1
  242. package/dist/components/InputStateWrapper.js.map +1 -1
  243. package/dist/components/Span.js +1 -1
  244. package/dist/components/access-and-short-key.js +1 -1
  245. package/dist/components/align-floating-elements.js +1 -1
  246. package/dist/components/align-floating-elements.js.map +1 -1
  247. package/dist/components/associated.controller.js +1 -1
  248. package/dist/components/color.js +1 -1
  249. package/dist/components/color.js.map +1 -1
  250. package/dist/components/component-names.js +1 -1
  251. package/dist/components/component-names.js.map +1 -1
  252. package/dist/components/controller2.js +1 -1
  253. package/dist/components/controller2.js.map +1 -1
  254. package/dist/components/controller4.js +1 -1
  255. package/dist/components/custom-class.js +1 -1
  256. package/dist/components/dev.utils.js +1 -1
  257. package/dist/components/devtools.js +1 -1
  258. package/dist/components/disabled.js +1 -1
  259. package/dist/components/events.js +1 -1
  260. package/dist/components/events.js.map +1 -1
  261. package/dist/components/getRenderStates.js +1 -1
  262. package/dist/components/getRenderStates.js.map +1 -1
  263. package/dist/components/has-closer.js +1 -1
  264. package/dist/components/has-counter.js +1 -1
  265. package/dist/components/hide-label.js +1 -1
  266. package/dist/components/href.js +1 -1
  267. package/dist/components/icons.js +1 -1
  268. package/dist/components/image-source.js +1 -1
  269. package/dist/components/index.js +1 -1
  270. package/dist/components/index.js.map +1 -1
  271. package/dist/components/index2.js +1 -1
  272. package/dist/components/index2.js.map +1 -1
  273. package/dist/components/kol-abbr.js +1 -1
  274. package/dist/components/kol-abbr.js.map +1 -1
  275. package/dist/components/kol-accordion.js +1 -1
  276. package/dist/components/kol-accordion.js.map +1 -1
  277. package/dist/components/kol-alert-wc.js +1 -1
  278. package/dist/components/kol-alert-wc.js.map +1 -1
  279. package/dist/components/kol-alert.js +1 -1
  280. package/dist/components/kol-alert.js.map +1 -1
  281. package/dist/components/kol-avatar-wc.js +1 -1
  282. package/dist/components/kol-avatar-wc.js.map +1 -1
  283. package/dist/components/kol-avatar.js +1 -1
  284. package/dist/components/kol-avatar.js.map +1 -1
  285. package/dist/components/kol-badge.js +1 -1
  286. package/dist/components/kol-badge.js.map +1 -1
  287. package/dist/components/kol-breadcrumb.js +1 -1
  288. package/dist/components/kol-breadcrumb.js.map +1 -1
  289. package/dist/components/kol-button-link.js +1 -1
  290. package/dist/components/kol-button-link.js.map +1 -1
  291. package/dist/components/kol-button-wc.js +1 -1
  292. package/dist/components/kol-button-wc.js.map +1 -1
  293. package/dist/components/kol-button.js +1 -1
  294. package/dist/components/kol-button.js.map +1 -1
  295. package/dist/components/kol-card-wc.d.ts +11 -0
  296. package/dist/components/kol-card-wc.js +4 -0
  297. package/dist/components/kol-card-wc.js.map +1 -0
  298. package/dist/components/kol-card.js +1 -1
  299. package/dist/components/kol-card.js.map +1 -1
  300. package/dist/components/kol-combobox.js +1 -1
  301. package/dist/components/kol-combobox.js.map +1 -1
  302. package/dist/components/kol-details.js +1 -1
  303. package/dist/components/kol-details.js.map +1 -1
  304. package/dist/components/kol-drawer.js +1 -1
  305. package/dist/components/kol-drawer.js.map +1 -1
  306. package/dist/components/kol-form.js +1 -1
  307. package/dist/components/kol-form.js.map +1 -1
  308. package/dist/components/kol-heading.js +1 -1
  309. package/dist/components/kol-heading.js.map +1 -1
  310. package/dist/components/kol-icon.js +1 -1
  311. package/dist/components/kol-icon.js.map +1 -1
  312. package/dist/components/kol-image.js +1 -1
  313. package/dist/components/kol-image.js.map +1 -1
  314. package/dist/components/kol-input-checkbox.js +1 -1
  315. package/dist/components/kol-input-checkbox.js.map +1 -1
  316. package/dist/components/kol-input-color.js +1 -1
  317. package/dist/components/kol-input-color.js.map +1 -1
  318. package/dist/components/kol-input-date.js +1 -1
  319. package/dist/components/kol-input-date.js.map +1 -1
  320. package/dist/components/kol-input-email.js +1 -1
  321. package/dist/components/kol-input-email.js.map +1 -1
  322. package/dist/components/kol-input-file.js +1 -1
  323. package/dist/components/kol-input-file.js.map +1 -1
  324. package/dist/components/kol-input-number.js +1 -1
  325. package/dist/components/kol-input-number.js.map +1 -1
  326. package/dist/components/kol-input-password.js +1 -1
  327. package/dist/components/kol-input-password.js.map +1 -1
  328. package/dist/components/kol-input-radio.js +1 -1
  329. package/dist/components/kol-input-radio.js.map +1 -1
  330. package/dist/components/kol-input-range.js +1 -1
  331. package/dist/components/kol-input-range.js.map +1 -1
  332. package/dist/components/kol-input-text.js +1 -1
  333. package/dist/components/kol-input-text.js.map +1 -1
  334. package/dist/components/kol-kolibri.js +1 -1
  335. package/dist/components/kol-kolibri.js.map +1 -1
  336. package/dist/components/kol-link-button.js +1 -1
  337. package/dist/components/kol-link-button.js.map +1 -1
  338. package/dist/components/kol-link-wc.js +1 -1
  339. package/dist/components/kol-link-wc.js.map +1 -1
  340. package/dist/components/kol-link.js +1 -1
  341. package/dist/components/kol-link.js.map +1 -1
  342. package/dist/components/kol-modal.js +1 -1
  343. package/dist/components/kol-modal.js.map +1 -1
  344. package/dist/components/kol-nav.js +1 -1
  345. package/dist/components/kol-nav.js.map +1 -1
  346. package/dist/components/kol-pagination-wc.d.ts +11 -0
  347. package/dist/components/kol-pagination-wc.js +4 -0
  348. package/dist/components/kol-pagination-wc.js.map +1 -0
  349. package/dist/components/kol-pagination.js +1 -1
  350. package/dist/components/kol-pagination.js.map +1 -1
  351. package/dist/components/kol-popover-button-wc.js +1 -1
  352. package/dist/components/kol-popover-button-wc.js.map +1 -1
  353. package/dist/components/kol-popover-button.js +1 -1
  354. package/dist/components/kol-popover-button.js.map +1 -1
  355. package/dist/components/kol-popover-wc.js +1 -1
  356. package/dist/components/kol-progress.js +1 -1
  357. package/dist/components/kol-progress.js.map +1 -1
  358. package/dist/components/kol-quote.js +1 -1
  359. package/dist/components/kol-quote.js.map +1 -1
  360. package/dist/components/kol-select.js +1 -1
  361. package/dist/components/kol-select.js.map +1 -1
  362. package/dist/components/kol-single-select.js +1 -1
  363. package/dist/components/kol-single-select.js.map +1 -1
  364. package/dist/components/kol-skip-nav.js +1 -1
  365. package/dist/components/kol-skip-nav.js.map +1 -1
  366. package/dist/components/kol-spin.js +1 -1
  367. package/dist/components/kol-spin.js.map +1 -1
  368. package/dist/components/kol-split-button.js +1 -1
  369. package/dist/components/kol-split-button.js.map +1 -1
  370. package/dist/components/kol-table-settings-wc.js +1 -1
  371. package/dist/components/kol-table-settings-wc.js.map +1 -1
  372. package/dist/components/kol-table-stateful.js +1 -1
  373. package/dist/components/kol-table-stateful.js.map +1 -1
  374. package/dist/components/kol-table-stateless-wc.js +1 -1
  375. package/dist/components/kol-table-stateless.js +1 -1
  376. package/dist/components/kol-table-stateless.js.map +1 -1
  377. package/dist/components/kol-tabs.js +1 -1
  378. package/dist/components/kol-tabs.js.map +1 -1
  379. package/dist/components/kol-textarea.js +1 -1
  380. package/dist/components/kol-textarea.js.map +1 -1
  381. package/dist/components/kol-toast-container.js +1 -1
  382. package/dist/components/kol-toast-container.js.map +1 -1
  383. package/dist/components/kol-toolbar.js +1 -1
  384. package/dist/components/kol-toolbar.js.map +1 -1
  385. package/dist/components/kol-tooltip-wc.js +1 -1
  386. package/dist/components/kol-tree-item-wc.js +1 -1
  387. package/dist/components/kol-tree-item.js +1 -1
  388. package/dist/components/kol-tree-item.js.map +1 -1
  389. package/dist/components/kol-tree-wc.js +1 -1
  390. package/dist/components/kol-tree.js +1 -1
  391. package/dist/components/kol-tree.js.map +1 -1
  392. package/dist/components/kol-version.js +1 -1
  393. package/dist/components/kol-version.js.map +1 -1
  394. package/dist/components/label.js +1 -1
  395. package/dist/components/link-variant.js +4 -0
  396. package/dist/components/link-variant.js.map +1 -0
  397. package/dist/components/open.js +1 -1
  398. package/dist/components/orientation.js +4 -0
  399. package/dist/components/orientation.js.map +1 -0
  400. package/dist/components/show.js +1 -1
  401. package/dist/components/spell-check.js +1 -1
  402. package/dist/components/suggestions.js +1 -1
  403. package/dist/components/table-settings.js +1 -1
  404. package/dist/components/unique-nav-labels.js +1 -1
  405. package/dist/components/unique-nav-labels.js.map +1 -1
  406. package/dist/components/validation2.js +1 -1
  407. package/dist/esm/Alert-e58cf301.js +4 -0
  408. package/dist/esm/Alert-e58cf301.js.map +1 -0
  409. package/dist/esm/{Collapsible-957956e1.js → Collapsible-556bd10b.js} +1 -1
  410. package/dist/esm/{Collapsible-957956e1.js.map → Collapsible-556bd10b.js.map} +1 -1
  411. package/dist/esm/CustomSuggestionsOptionsGroup-72c6ff70.js +4 -0
  412. package/dist/esm/CustomSuggestionsOptionsGroup-72c6ff70.js.map +1 -0
  413. package/dist/esm/{FieldControlStateWrapper-ee200880.js → FieldControlStateWrapper-0cd044eb.js} +1 -1
  414. package/dist/esm/FieldControlStateWrapper-0cd044eb.js.map +1 -0
  415. package/dist/esm/Heading-dcf25cb6.js +4 -0
  416. package/dist/esm/Heading-dcf25cb6.js.map +1 -0
  417. package/dist/esm/Icon-cd576310.js +4 -0
  418. package/dist/esm/{Icon-23e91462.js.map → Icon-cd576310.js.map} +1 -1
  419. package/dist/esm/Input-673592ef.js +4 -0
  420. package/dist/esm/{Input-83880d09.js.map → Input-673592ef.js.map} +1 -1
  421. package/dist/esm/InputStateWrapper-c166c7ed.js +4 -0
  422. package/dist/esm/InputStateWrapper-c166c7ed.js.map +1 -0
  423. package/dist/esm/InternalUnderlinedBadgeText-2223c9c3.js +4 -0
  424. package/dist/esm/{InternalUnderlinedBadgeText-d345205c.js.map → InternalUnderlinedBadgeText-2223c9c3.js.map} +1 -1
  425. package/dist/esm/{Span-c9064f6e.js → Span-0d93e5fa.js} +1 -1
  426. package/dist/esm/{Span-c9064f6e.js.map → Span-0d93e5fa.js.map} +1 -1
  427. package/dist/esm/{access-and-short-key-753466cb.js → access-and-short-key-f743a5c4.js} +1 -1
  428. package/dist/esm/{access-and-short-key-753466cb.js.map → access-and-short-key-f743a5c4.js.map} +1 -1
  429. package/dist/esm/{align-a05c3d17.js → align-d2572387.js} +1 -1
  430. package/dist/esm/{align-a05c3d17.js.map → align-d2572387.js.map} +1 -1
  431. package/dist/esm/align-floating-elements-9459ccc3.js +4 -0
  432. package/dist/esm/align-floating-elements-9459ccc3.js.map +1 -0
  433. package/dist/esm/app-globals-4a4a31c2.js +4 -0
  434. package/dist/esm/{app-globals-ce014dbd.js.map → app-globals-4a4a31c2.js.map} +1 -1
  435. package/dist/esm/{associated.controller-4efb16f5.js → associated.controller-4237c28d.js} +1 -1
  436. package/dist/esm/{associated.controller-4efb16f5.js.map → associated.controller-4237c28d.js.map} +1 -1
  437. package/dist/esm/bootstrap-53ed580c.js +4 -0
  438. package/dist/esm/{bootstrap-874afb5b.js.map → bootstrap-53ed580c.js.map} +1 -1
  439. package/dist/esm/{color-066d384d.js → color-1228dab7.js} +1 -1
  440. package/dist/esm/color-1228dab7.js.map +1 -0
  441. package/dist/esm/component-names-0657b355.js +4 -0
  442. package/dist/esm/component-names-0657b355.js.map +1 -0
  443. package/dist/esm/{controller-4227bd3b.js → controller-235b6c3b.js} +1 -1
  444. package/dist/esm/{controller-4227bd3b.js.map → controller-235b6c3b.js.map} +1 -1
  445. package/dist/esm/{controller-78a365ff.js → controller-31137f06.js} +1 -1
  446. package/dist/esm/{controller-78a365ff.js.map → controller-31137f06.js.map} +1 -1
  447. package/dist/esm/{controller-93a592b9.js → controller-c152770e.js} +1 -1
  448. package/dist/esm/{controller-93a592b9.js.map → controller-c152770e.js.map} +1 -1
  449. package/dist/esm/controller-d70d121a.js +4 -0
  450. package/dist/esm/controller-d70d121a.js.map +1 -0
  451. package/dist/esm/{controller-icon-ddd0267b.js → controller-icon-14c213a2.js} +1 -1
  452. package/dist/esm/controller-icon-14c213a2.js.map +1 -0
  453. package/dist/esm/{custom-class-30e531d5.js → custom-class-d73b81b1.js} +1 -1
  454. package/dist/esm/{custom-class-30e531d5.js.map → custom-class-d73b81b1.js.map} +1 -1
  455. package/dist/esm/{dev.utils-f7f473b7.js → dev.utils-300c83a4.js} +1 -1
  456. package/dist/esm/{dev.utils-f7f473b7.js.map → dev.utils-300c83a4.js.map} +1 -1
  457. package/dist/esm/{devtools-8cc4da6d.js → devtools-ca41eeaf.js} +1 -1
  458. package/dist/esm/{devtools-8cc4da6d.js.map → devtools-ca41eeaf.js.map} +1 -1
  459. package/dist/esm/disabled-e1038f54.js +4 -0
  460. package/dist/esm/{disabled-e64a9155.js.map → disabled-e1038f54.js.map} +1 -1
  461. package/dist/esm/{events-5886c68b.js → events-bad0a075.js} +1 -1
  462. package/dist/esm/events-bad0a075.js.map +1 -0
  463. package/dist/esm/{getRenderStates-e405825a.js → getRenderStates-d5b07576.js} +1 -1
  464. package/dist/esm/getRenderStates-d5b07576.js.map +1 -0
  465. package/dist/esm/has-closer-798e8f4d.js +4 -0
  466. package/dist/esm/{has-closer-ca9bcd36.js.map → has-closer-798e8f4d.js.map} +1 -1
  467. package/dist/esm/has-counter-3fc44829.js +4 -0
  468. package/dist/esm/{has-counter-a7dccaa5.js.map → has-counter-3fc44829.js.map} +1 -1
  469. package/dist/esm/hide-label-8b3a8709.js +4 -0
  470. package/dist/esm/{hide-label-418cc5c0.js.map → hide-label-8b3a8709.js.map} +1 -1
  471. package/dist/esm/href-d9ccbbdf.js +4 -0
  472. package/dist/esm/{href-7f134614.js.map → href-d9ccbbdf.js.map} +1 -1
  473. package/dist/esm/i18n-260f0fe9.js +4 -0
  474. package/dist/esm/{i18n-01abf777.js.map → i18n-260f0fe9.js.map} +1 -1
  475. package/dist/esm/{icons-acf365fd.js → icons-a9c52ed8.js} +1 -1
  476. package/dist/esm/{icons-acf365fd.js.map → icons-a9c52ed8.js.map} +1 -1
  477. package/dist/esm/{image-source-00f34574.js → image-source-8079f8a5.js} +1 -1
  478. package/dist/esm/{image-source-00f34574.js.map → image-source-8079f8a5.js.map} +1 -1
  479. package/dist/esm/index-aa2635d0.js +4 -0
  480. package/dist/esm/index-aa2635d0.js.map +1 -0
  481. package/dist/esm/index-ebe5a881.js +4 -0
  482. package/dist/esm/index-ebe5a881.js.map +1 -0
  483. package/dist/esm/index.js +1 -1
  484. package/dist/esm/index.js.map +1 -1
  485. package/dist/esm/kol-abbr.entry.js +1 -1
  486. package/dist/esm/kol-abbr.entry.js.map +1 -1
  487. package/dist/esm/kol-accordion.entry.js +1 -1
  488. package/dist/esm/kol-accordion.entry.js.map +1 -1
  489. package/dist/esm/kol-alert-wc.entry.js +1 -1
  490. package/dist/esm/kol-alert-wc.entry.js.map +1 -1
  491. package/dist/esm/kol-alert.entry.js +1 -1
  492. package/dist/esm/kol-alert.entry.js.map +1 -1
  493. package/dist/esm/kol-avatar-wc.entry.js +1 -1
  494. package/dist/esm/kol-avatar-wc.entry.js.map +1 -1
  495. package/dist/esm/kol-avatar.entry.js +1 -1
  496. package/dist/esm/kol-avatar.entry.js.map +1 -1
  497. package/dist/esm/kol-badge.entry.js +1 -1
  498. package/dist/esm/kol-badge.entry.js.map +1 -1
  499. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  500. package/dist/esm/kol-breadcrumb.entry.js.map +1 -1
  501. package/dist/esm/kol-button-link.entry.js +1 -1
  502. package/dist/esm/kol-button-link.entry.js.map +1 -1
  503. package/dist/esm/kol-button-wc.entry.js +1 -1
  504. package/dist/esm/kol-button-wc.entry.js.map +1 -1
  505. package/dist/esm/kol-button.entry.js +1 -1
  506. package/dist/esm/kol-button.entry.js.map +1 -1
  507. package/dist/esm/kol-card-wc.entry.js +4 -0
  508. package/dist/esm/kol-card-wc.entry.js.map +1 -0
  509. package/dist/esm/kol-card.entry.js +1 -1
  510. package/dist/esm/kol-card.entry.js.map +1 -1
  511. package/dist/esm/kol-combobox.entry.js +1 -1
  512. package/dist/esm/kol-combobox.entry.js.map +1 -1
  513. package/dist/esm/kol-details.entry.js +1 -1
  514. package/dist/esm/kol-details.entry.js.map +1 -1
  515. package/dist/esm/kol-drawer.entry.js +1 -1
  516. package/dist/esm/kol-drawer.entry.js.map +1 -1
  517. package/dist/esm/kol-form.entry.js +1 -1
  518. package/dist/esm/kol-form.entry.js.map +1 -1
  519. package/dist/esm/kol-heading.entry.js +1 -1
  520. package/dist/esm/kol-heading.entry.js.map +1 -1
  521. package/dist/esm/kol-icon.entry.js +1 -1
  522. package/dist/esm/kol-icon.entry.js.map +1 -1
  523. package/dist/esm/kol-image.entry.js +1 -1
  524. package/dist/esm/kol-image.entry.js.map +1 -1
  525. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  526. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  527. package/dist/esm/kol-input-color.entry.js +1 -1
  528. package/dist/esm/kol-input-color.entry.js.map +1 -1
  529. package/dist/esm/kol-input-date.entry.js +1 -1
  530. package/dist/esm/kol-input-date.entry.js.map +1 -1
  531. package/dist/esm/kol-input-email.entry.js +1 -1
  532. package/dist/esm/kol-input-email.entry.js.map +1 -1
  533. package/dist/esm/kol-input-file.entry.js +1 -1
  534. package/dist/esm/kol-input-file.entry.js.map +1 -1
  535. package/dist/esm/kol-input-number.entry.js +1 -1
  536. package/dist/esm/kol-input-number.entry.js.map +1 -1
  537. package/dist/esm/kol-input-password.entry.js +1 -1
  538. package/dist/esm/kol-input-password.entry.js.map +1 -1
  539. package/dist/esm/kol-input-radio.entry.js +1 -1
  540. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  541. package/dist/esm/kol-input-range.entry.js +1 -1
  542. package/dist/esm/kol-input-range.entry.js.map +1 -1
  543. package/dist/esm/kol-input-text.entry.js +1 -1
  544. package/dist/esm/kol-input-text.entry.js.map +1 -1
  545. package/dist/esm/kol-kolibri.entry.js +1 -1
  546. package/dist/esm/kol-kolibri.entry.js.map +1 -1
  547. package/dist/esm/kol-link-button.entry.js +1 -1
  548. package/dist/esm/kol-link-button.entry.js.map +1 -1
  549. package/dist/esm/kol-link-wc.entry.js +1 -1
  550. package/dist/esm/kol-link-wc.entry.js.map +1 -1
  551. package/dist/esm/kol-link.entry.js +1 -1
  552. package/dist/esm/kol-link.entry.js.map +1 -1
  553. package/dist/esm/kol-modal.entry.js +1 -1
  554. package/dist/esm/kol-modal.entry.js.map +1 -1
  555. package/dist/esm/kol-nav.entry.js +1 -1
  556. package/dist/esm/kol-nav.entry.js.map +1 -1
  557. package/dist/esm/kol-pagination-wc.entry.js +4 -0
  558. package/dist/esm/kol-pagination-wc.entry.js.map +1 -0
  559. package/dist/esm/kol-pagination.entry.js +1 -1
  560. package/dist/esm/kol-pagination.entry.js.map +1 -1
  561. package/dist/esm/kol-popover-button-wc.entry.js +1 -1
  562. package/dist/esm/kol-popover-button-wc.entry.js.map +1 -1
  563. package/dist/esm/kol-popover-button.entry.js +1 -1
  564. package/dist/esm/kol-popover-button.entry.js.map +1 -1
  565. package/dist/esm/kol-popover-wc.entry.js +1 -1
  566. package/dist/esm/kol-progress.entry.js +1 -1
  567. package/dist/esm/kol-progress.entry.js.map +1 -1
  568. package/dist/esm/kol-quote.entry.js +1 -1
  569. package/dist/esm/kol-quote.entry.js.map +1 -1
  570. package/dist/esm/kol-select.entry.js +1 -1
  571. package/dist/esm/kol-select.entry.js.map +1 -1
  572. package/dist/esm/kol-single-select.entry.js +1 -1
  573. package/dist/esm/kol-single-select.entry.js.map +1 -1
  574. package/dist/esm/kol-skip-nav.entry.js +1 -1
  575. package/dist/esm/kol-skip-nav.entry.js.map +1 -1
  576. package/dist/esm/kol-spin.entry.js +1 -1
  577. package/dist/esm/kol-spin.entry.js.map +1 -1
  578. package/dist/esm/kol-split-button.entry.js +1 -1
  579. package/dist/esm/kol-split-button.entry.js.map +1 -1
  580. package/dist/esm/kol-table-settings-wc.entry.js +1 -1
  581. package/dist/esm/kol-table-settings-wc.entry.js.map +1 -1
  582. package/dist/esm/kol-table-stateful.entry.js +1 -1
  583. package/dist/esm/kol-table-stateful.entry.js.map +1 -1
  584. package/dist/esm/kol-table-stateless-wc.entry.js +1 -1
  585. package/dist/esm/kol-table-stateless.entry.js +1 -1
  586. package/dist/esm/kol-table-stateless.entry.js.map +1 -1
  587. package/dist/esm/kol-tabs.entry.js +1 -1
  588. package/dist/esm/kol-tabs.entry.js.map +1 -1
  589. package/dist/esm/kol-textarea.entry.js +1 -1
  590. package/dist/esm/kol-textarea.entry.js.map +1 -1
  591. package/dist/esm/kol-toast-container.entry.js +1 -1
  592. package/dist/esm/kol-toast-container.entry.js.map +1 -1
  593. package/dist/esm/kol-toolbar.entry.js +1 -1
  594. package/dist/esm/kol-toolbar.entry.js.map +1 -1
  595. package/dist/esm/kol-tooltip-wc.entry.js +1 -1
  596. package/dist/esm/kol-tree-item-wc.entry.js +1 -1
  597. package/dist/esm/kol-tree-item.entry.js +1 -1
  598. package/dist/esm/kol-tree-item.entry.js.map +1 -1
  599. package/dist/esm/kol-tree-wc.entry.js +1 -1
  600. package/dist/esm/kol-tree.entry.js +1 -1
  601. package/dist/esm/kol-tree.entry.js.map +1 -1
  602. package/dist/esm/kol-version.entry.js +1 -1
  603. package/dist/esm/kol-version.entry.js.map +1 -1
  604. package/dist/esm/kolibri.js +1 -1
  605. package/dist/esm/{label-5982d241.js → label-bf9966d0.js} +1 -1
  606. package/dist/esm/{label-5982d241.js.map → label-bf9966d0.js.map} +1 -1
  607. package/dist/esm/link-variant-47605ebe.js +4 -0
  608. package/dist/esm/link-variant-47605ebe.js.map +1 -0
  609. package/dist/esm/loader.js +1 -1
  610. package/dist/esm/{open-a64bb227.js → open-385de2c9.js} +1 -1
  611. package/dist/esm/{open-a64bb227.js.map → open-385de2c9.js.map} +1 -1
  612. package/dist/esm/orientation-409d844a.js +4 -0
  613. package/dist/esm/orientation-409d844a.js.map +1 -0
  614. package/dist/esm/{rows-4ad04320.js → rows-225b4f43.js} +1 -1
  615. package/dist/esm/{rows-4ad04320.js.map → rows-225b4f43.js.map} +1 -1
  616. package/dist/esm/{show-96e68a00.js → show-fabfe6d7.js} +1 -1
  617. package/dist/esm/{show-96e68a00.js.map → show-fabfe6d7.js.map} +1 -1
  618. package/dist/esm/{spell-check-3f34625f.js → spell-check-5559a801.js} +1 -1
  619. package/dist/esm/{spell-check-3f34625f.js.map → spell-check-5559a801.js.map} +1 -1
  620. package/dist/esm/{suggestions-021d2964.js → suggestions-198125b7.js} +1 -1
  621. package/dist/esm/{suggestions-021d2964.js.map → suggestions-198125b7.js.map} +1 -1
  622. package/dist/esm/{table-settings-b08f49c1.js → table-settings-c12356ed.js} +1 -1
  623. package/dist/esm/{table-settings-b08f49c1.js.map → table-settings-c12356ed.js.map} +1 -1
  624. package/dist/esm/test-component.entry.js +1 -1
  625. package/dist/esm/tooltip-align-465a8590.js +4 -0
  626. package/dist/esm/{tooltip-align-4c18152e.js.map → tooltip-align-465a8590.js.map} +1 -1
  627. package/dist/esm/unique-nav-labels-e20db0b7.js +4 -0
  628. package/dist/esm/unique-nav-labels-e20db0b7.js.map +1 -0
  629. package/dist/esm/{validation-66c33ff5.js → validation-152ea092.js} +1 -1
  630. package/dist/esm/{validation-66c33ff5.js.map → validation-152ea092.js.map} +1 -1
  631. package/dist/esm/validation-9d549145.js +4 -0
  632. package/dist/esm/{validation-7cc70d5a.js.map → validation-9d549145.js.map} +1 -1
  633. package/dist/kolibri/Alert-e58cf301.js +4 -0
  634. package/dist/kolibri/Alert-e58cf301.js.map +1 -0
  635. package/dist/kolibri/{Collapsible-957956e1.js → Collapsible-556bd10b.js} +1 -1
  636. package/dist/kolibri/CustomSuggestionsOptionsGroup-72c6ff70.js +4 -0
  637. package/dist/kolibri/CustomSuggestionsOptionsGroup-72c6ff70.js.map +1 -0
  638. package/dist/kolibri/FieldControlStateWrapper-0cd044eb.js +4 -0
  639. package/dist/kolibri/{FieldControlStateWrapper-ee200880.js.map → FieldControlStateWrapper-0cd044eb.js.map} +1 -1
  640. package/dist/kolibri/Heading-dcf25cb6.js +4 -0
  641. package/dist/kolibri/Heading-dcf25cb6.js.map +1 -0
  642. package/dist/kolibri/Icon-cd576310.js +4 -0
  643. package/dist/kolibri/{Input-83880d09.js → Input-673592ef.js} +1 -1
  644. package/dist/kolibri/InputStateWrapper-c166c7ed.js +4 -0
  645. package/dist/kolibri/InputStateWrapper-c166c7ed.js.map +1 -0
  646. package/dist/kolibri/InternalUnderlinedBadgeText-2223c9c3.js +4 -0
  647. package/dist/kolibri/Span-0d93e5fa.js +4 -0
  648. package/dist/kolibri/{Span-c9064f6e.js.map → Span-0d93e5fa.js.map} +1 -1
  649. package/dist/kolibri/{access-and-short-key-753466cb.js → access-and-short-key-f743a5c4.js} +1 -1
  650. package/dist/kolibri/align-d2572387.js +4 -0
  651. package/dist/kolibri/align-floating-elements-9459ccc3.js +4 -0
  652. package/dist/kolibri/align-floating-elements-9459ccc3.js.map +1 -0
  653. package/dist/kolibri/app-globals-4a4a31c2.js +4 -0
  654. package/dist/kolibri/{associated.controller-4efb16f5.js → associated.controller-4237c28d.js} +1 -1
  655. package/dist/kolibri/bootstrap-53ed580c.js +4 -0
  656. package/dist/kolibri/{color-066d384d.js → color-1228dab7.js} +1 -1
  657. package/dist/kolibri/color-1228dab7.js.map +1 -0
  658. package/dist/kolibri/component-names-0657b355.js +4 -0
  659. package/dist/kolibri/component-names-0657b355.js.map +1 -0
  660. package/dist/kolibri/{controller-4227bd3b.js → controller-235b6c3b.js} +1 -1
  661. package/dist/kolibri/{controller-78a365ff.js → controller-31137f06.js} +1 -1
  662. package/dist/kolibri/{controller-93a592b9.js → controller-c152770e.js} +1 -1
  663. package/dist/kolibri/controller-d70d121a.js +4 -0
  664. package/dist/kolibri/controller-d70d121a.js.map +1 -0
  665. package/dist/kolibri/{controller-icon-ddd0267b.js → controller-icon-14c213a2.js} +1 -1
  666. package/dist/kolibri/controller-icon-14c213a2.js.map +1 -0
  667. package/dist/kolibri/custom-class-d73b81b1.js +4 -0
  668. package/dist/kolibri/{dev.utils-f7f473b7.js → dev.utils-300c83a4.js} +1 -1
  669. package/dist/kolibri/{devtools-8cc4da6d.js → devtools-ca41eeaf.js} +1 -1
  670. package/dist/kolibri/disabled-e1038f54.js +4 -0
  671. package/dist/kolibri/events-bad0a075.js +4 -0
  672. package/dist/kolibri/events-bad0a075.js.map +1 -0
  673. package/dist/kolibri/{getRenderStates-e405825a.js → getRenderStates-d5b07576.js} +1 -1
  674. package/dist/kolibri/{getRenderStates-e405825a.js.map → getRenderStates-d5b07576.js.map} +1 -1
  675. package/dist/kolibri/has-closer-798e8f4d.js +4 -0
  676. package/dist/kolibri/has-counter-3fc44829.js +4 -0
  677. package/dist/kolibri/hide-label-8b3a8709.js +4 -0
  678. package/dist/kolibri/href-d9ccbbdf.js +4 -0
  679. package/dist/kolibri/i18n-260f0fe9.js +4 -0
  680. package/dist/kolibri/{icons-acf365fd.js → icons-a9c52ed8.js} +1 -1
  681. package/dist/kolibri/image-source-8079f8a5.js +4 -0
  682. package/dist/kolibri/{index-831675d2.js → index-aa2635d0.js} +1 -1
  683. package/dist/kolibri/index-aa2635d0.js.map +1 -0
  684. package/dist/kolibri/index-ebe5a881.js +4 -0
  685. package/dist/kolibri/index-ebe5a881.js.map +1 -0
  686. package/dist/kolibri/index.esm.js +1 -1
  687. package/dist/kolibri/index.esm.js.map +1 -1
  688. package/dist/kolibri/kol-abbr.entry.js +1 -1
  689. package/dist/kolibri/kol-abbr.entry.js.map +1 -1
  690. package/dist/kolibri/kol-accordion.entry.js +1 -1
  691. package/dist/kolibri/kol-accordion.entry.js.map +1 -1
  692. package/dist/kolibri/kol-alert-wc.entry.js +1 -1
  693. package/dist/kolibri/kol-alert-wc.entry.js.map +1 -1
  694. package/dist/kolibri/kol-alert.entry.js +1 -1
  695. package/dist/kolibri/kol-alert.entry.js.map +1 -1
  696. package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
  697. package/dist/kolibri/kol-avatar-wc.entry.js.map +1 -1
  698. package/dist/kolibri/kol-avatar.entry.js +1 -1
  699. package/dist/kolibri/kol-avatar.entry.js.map +1 -1
  700. package/dist/kolibri/kol-badge.entry.js +1 -1
  701. package/dist/kolibri/kol-badge.entry.js.map +1 -1
  702. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  703. package/dist/kolibri/kol-breadcrumb.entry.js.map +1 -1
  704. package/dist/kolibri/kol-button-link.entry.js +1 -1
  705. package/dist/kolibri/kol-button-link.entry.js.map +1 -1
  706. package/dist/kolibri/kol-button-wc.entry.js +1 -1
  707. package/dist/kolibri/kol-button-wc.entry.js.map +1 -1
  708. package/dist/kolibri/kol-button.entry.js +1 -1
  709. package/dist/kolibri/kol-button.entry.js.map +1 -1
  710. package/dist/kolibri/kol-card-wc.entry.js +4 -0
  711. package/dist/kolibri/kol-card-wc.entry.js.map +1 -0
  712. package/dist/kolibri/kol-card.entry.js +1 -1
  713. package/dist/kolibri/kol-card.entry.js.map +1 -1
  714. package/dist/kolibri/kol-combobox.entry.js +1 -1
  715. package/dist/kolibri/kol-combobox.entry.js.map +1 -1
  716. package/dist/kolibri/kol-details.entry.js +1 -1
  717. package/dist/kolibri/kol-details.entry.js.map +1 -1
  718. package/dist/kolibri/kol-drawer.entry.js +1 -1
  719. package/dist/kolibri/kol-drawer.entry.js.map +1 -1
  720. package/dist/kolibri/kol-form.entry.js +1 -1
  721. package/dist/kolibri/kol-form.entry.js.map +1 -1
  722. package/dist/kolibri/kol-heading.entry.js +1 -1
  723. package/dist/kolibri/kol-heading.entry.js.map +1 -1
  724. package/dist/kolibri/kol-icon.entry.js +1 -1
  725. package/dist/kolibri/kol-icon.entry.js.map +1 -1
  726. package/dist/kolibri/kol-image.entry.js +1 -1
  727. package/dist/kolibri/kol-image.entry.js.map +1 -1
  728. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  729. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  730. package/dist/kolibri/kol-input-color.entry.js +1 -1
  731. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  732. package/dist/kolibri/kol-input-date.entry.js +1 -1
  733. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  734. package/dist/kolibri/kol-input-email.entry.js +1 -1
  735. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  736. package/dist/kolibri/kol-input-file.entry.js +1 -1
  737. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  738. package/dist/kolibri/kol-input-number.entry.js +1 -1
  739. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  740. package/dist/kolibri/kol-input-password.entry.js +1 -1
  741. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  742. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  743. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  744. package/dist/kolibri/kol-input-range.entry.js +1 -1
  745. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  746. package/dist/kolibri/kol-input-text.entry.js +1 -1
  747. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  748. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  749. package/dist/kolibri/kol-kolibri.entry.js.map +1 -1
  750. package/dist/kolibri/kol-link-button.entry.js +1 -1
  751. package/dist/kolibri/kol-link-button.entry.js.map +1 -1
  752. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  753. package/dist/kolibri/kol-link-wc.entry.js.map +1 -1
  754. package/dist/kolibri/kol-link.entry.js +1 -1
  755. package/dist/kolibri/kol-link.entry.js.map +1 -1
  756. package/dist/kolibri/kol-modal.entry.js +1 -1
  757. package/dist/kolibri/kol-modal.entry.js.map +1 -1
  758. package/dist/kolibri/kol-nav.entry.js +1 -1
  759. package/dist/kolibri/kol-nav.entry.js.map +1 -1
  760. package/dist/kolibri/kol-pagination-wc.entry.js +4 -0
  761. package/dist/kolibri/kol-pagination-wc.entry.js.map +1 -0
  762. package/dist/kolibri/kol-pagination.entry.js +1 -1
  763. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  764. package/dist/kolibri/kol-popover-button-wc.entry.js +1 -1
  765. package/dist/kolibri/kol-popover-button-wc.entry.js.map +1 -1
  766. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  767. package/dist/kolibri/kol-popover-button.entry.js.map +1 -1
  768. package/dist/kolibri/kol-popover-wc.entry.js +1 -1
  769. package/dist/kolibri/kol-progress.entry.js +1 -1
  770. package/dist/kolibri/kol-progress.entry.js.map +1 -1
  771. package/dist/kolibri/kol-quote.entry.js +1 -1
  772. package/dist/kolibri/kol-quote.entry.js.map +1 -1
  773. package/dist/kolibri/kol-select.entry.js +1 -1
  774. package/dist/kolibri/kol-select.entry.js.map +1 -1
  775. package/dist/kolibri/kol-single-select.entry.js +1 -1
  776. package/dist/kolibri/kol-single-select.entry.js.map +1 -1
  777. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  778. package/dist/kolibri/kol-skip-nav.entry.js.map +1 -1
  779. package/dist/kolibri/kol-spin.entry.js +1 -1
  780. package/dist/kolibri/kol-spin.entry.js.map +1 -1
  781. package/dist/kolibri/kol-split-button.entry.js +1 -1
  782. package/dist/kolibri/kol-split-button.entry.js.map +1 -1
  783. package/dist/kolibri/kol-table-settings-wc.entry.js +1 -1
  784. package/dist/kolibri/kol-table-settings-wc.entry.js.map +1 -1
  785. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  786. package/dist/kolibri/kol-table-stateful.entry.js.map +1 -1
  787. package/dist/kolibri/kol-table-stateless-wc.entry.js +1 -1
  788. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  789. package/dist/kolibri/kol-table-stateless.entry.js.map +1 -1
  790. package/dist/kolibri/kol-tabs.entry.js +1 -1
  791. package/dist/kolibri/kol-tabs.entry.js.map +1 -1
  792. package/dist/kolibri/kol-textarea.entry.js +1 -1
  793. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  794. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  795. package/dist/kolibri/kol-toast-container.entry.js.map +1 -1
  796. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  797. package/dist/kolibri/kol-toolbar.entry.js.map +1 -1
  798. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  799. package/dist/kolibri/kol-tree-item-wc.entry.js +1 -1
  800. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  801. package/dist/kolibri/kol-tree-item.entry.js.map +1 -1
  802. package/dist/kolibri/kol-tree-wc.entry.js +1 -1
  803. package/dist/kolibri/kol-tree.entry.js +1 -1
  804. package/dist/kolibri/kol-tree.entry.js.map +1 -1
  805. package/dist/kolibri/kol-version.entry.js +1 -1
  806. package/dist/kolibri/kol-version.entry.js.map +1 -1
  807. package/dist/kolibri/kolibri.esm.js +1 -1
  808. package/dist/kolibri/kolibri.esm.js.map +1 -1
  809. package/dist/kolibri/{label-5982d241.js → label-bf9966d0.js} +1 -1
  810. package/dist/kolibri/link-variant-47605ebe.js +4 -0
  811. package/dist/kolibri/link-variant-47605ebe.js.map +1 -0
  812. package/dist/kolibri/open-385de2c9.js +4 -0
  813. package/dist/kolibri/orientation-409d844a.js +4 -0
  814. package/dist/kolibri/orientation-409d844a.js.map +1 -0
  815. package/dist/kolibri/rows-225b4f43.js +4 -0
  816. package/dist/kolibri/show-fabfe6d7.js +4 -0
  817. package/dist/kolibri/spell-check-5559a801.js +4 -0
  818. package/dist/kolibri/{suggestions-021d2964.js → suggestions-198125b7.js} +1 -1
  819. package/dist/kolibri/{table-settings-b08f49c1.js → table-settings-c12356ed.js} +1 -1
  820. package/dist/kolibri/test-component.entry.js +1 -1
  821. package/dist/kolibri/tooltip-align-465a8590.js +4 -0
  822. package/dist/kolibri/unique-nav-labels-e20db0b7.js +4 -0
  823. package/dist/kolibri/unique-nav-labels-e20db0b7.js.map +1 -0
  824. package/dist/kolibri/validation-152ea092.js +4 -0
  825. package/dist/kolibri/validation-9d549145.js +4 -0
  826. package/dist/types/components/button/component.d.ts +6 -4
  827. package/dist/types/components/button-link/shadow.d.ts +2 -1
  828. package/dist/types/components/card/component.d.ts +19 -0
  829. package/dist/types/components/card/shadow.d.ts +2 -12
  830. package/dist/types/components/drawer/shadow.d.ts +3 -1
  831. package/dist/types/components/heading/shadow.d.ts +1 -3
  832. package/dist/types/components/input-radio/controller.d.ts +3 -2
  833. package/dist/types/components/input-radio/shadow.d.ts +4 -7
  834. package/dist/types/components/link/component.d.ts +6 -4
  835. package/dist/types/components/link/shadow.d.ts +2 -1
  836. package/dist/types/components/nav/shadow.d.ts +4 -3
  837. package/dist/types/components/pagination/component.d.ts +46 -0
  838. package/dist/types/components/pagination/shadow.d.ts +2 -32
  839. package/dist/types/components/split-button/shadow.d.ts +11 -4
  840. package/dist/types/components/tabs/shadow.d.ts +3 -1
  841. package/dist/types/components/toolbar/shadow.d.ts +3 -0
  842. package/dist/types/components.d.ts +251 -55
  843. package/dist/types/core/component-names.d.ts +2 -0
  844. package/dist/types/e2e/input-callbacks-and-events.d.ts +11 -1
  845. package/dist/types/e2e/input-value-reflection.d.ts +8 -1
  846. package/dist/types/functional-components/CustomSuggestionsOption/CustomSuggestionsOption.d.ts +1 -0
  847. package/dist/types/functional-components/Heading/Heading.d.ts +2 -4
  848. package/dist/types/functional-components/IconButton/IconButton.d.ts +2 -0
  849. package/dist/types/schema/components/button-link.d.ts +2 -2
  850. package/dist/types/schema/components/button.d.ts +7 -3
  851. package/dist/types/schema/components/drawer.d.ts +3 -3
  852. package/dist/types/schema/components/heading.d.ts +3 -3
  853. package/dist/types/schema/components/image.d.ts +5 -16
  854. package/dist/types/schema/components/input-radio.d.ts +6 -7
  855. package/dist/types/schema/components/link-button.d.ts +2 -2
  856. package/dist/types/schema/components/link.d.ts +7 -3
  857. package/dist/types/schema/components/nav.d.ts +4 -6
  858. package/dist/types/schema/components/tabs.d.ts +4 -6
  859. package/dist/types/schema/components/toolbar.d.ts +2 -1
  860. package/dist/types/schema/props/alt.d.ts +7 -0
  861. package/dist/types/schema/props/has-create-button.d.ts +6 -0
  862. package/dist/types/schema/props/image-sizes.d.ts +7 -0
  863. package/dist/types/schema/props/image-srcset.d.ts +7 -0
  864. package/dist/types/schema/props/index.d.ts +1 -1
  865. package/dist/types/schema/props/link-variant.d.ts +8 -0
  866. package/dist/types/schema/props/loading.d.ts +3 -0
  867. package/dist/types/schema/props/orientation.d.ts +8 -0
  868. package/dist/types/schema/types/index.d.ts +1 -1
  869. package/dist/types/utils/events.d.ts +3 -2
  870. package/doc/button-link.md +1 -0
  871. package/doc/card.md +1 -1
  872. package/doc/components.md +4 -4
  873. package/doc/drawer.md +7 -6
  874. package/doc/heading.md +5 -6
  875. package/doc/input-radio.md +0 -2
  876. package/doc/link.md +1 -0
  877. package/doc/pagination.md +1 -1
  878. package/doc/split-button.md +41 -18
  879. package/doc/tabs.md +9 -8
  880. package/doc/toolbar.md +5 -4
  881. package/package.json +9 -5
  882. package/postinstall.js +38 -0
  883. package/vscode-custom-data.json +140 -35
  884. package/dist/cjs/Alert-9c319ea5.js +0 -4
  885. package/dist/cjs/Alert-9c319ea5.js.map +0 -1
  886. package/dist/cjs/CustomSuggestionsOptionsGroup-28f9f94d.js +0 -4
  887. package/dist/cjs/CustomSuggestionsOptionsGroup-28f9f94d.js.map +0 -1
  888. package/dist/cjs/FieldControlStateWrapper-edeed91c.js +0 -4
  889. package/dist/cjs/FieldControlStateWrapper-edeed91c.js.map +0 -1
  890. package/dist/cjs/Heading-ed23ff09.js +0 -4
  891. package/dist/cjs/Heading-ed23ff09.js.map +0 -1
  892. package/dist/cjs/Icon-1ab759d0.js +0 -4
  893. package/dist/cjs/InputStateWrapper-636f1717.js +0 -4
  894. package/dist/cjs/InputStateWrapper-636f1717.js.map +0 -1
  895. package/dist/cjs/align-floating-elements-44e9ce7f.js +0 -4
  896. package/dist/cjs/align-floating-elements-44e9ce7f.js.map +0 -1
  897. package/dist/cjs/app-globals-2d81cc92.js +0 -4
  898. package/dist/cjs/button-variant-d57323f9.js +0 -4
  899. package/dist/cjs/button-variant-d57323f9.js.map +0 -1
  900. package/dist/cjs/color-e458d959.js.map +0 -1
  901. package/dist/cjs/component-names-82c4d68d.js +0 -4
  902. package/dist/cjs/component-names-82c4d68d.js.map +0 -1
  903. package/dist/cjs/controller-9934d221.js +0 -4
  904. package/dist/cjs/controller-9934d221.js.map +0 -1
  905. package/dist/cjs/controller-icon-6be4bb30.js.map +0 -1
  906. package/dist/cjs/events-40771c95.js +0 -4
  907. package/dist/cjs/events-40771c95.js.map +0 -1
  908. package/dist/cjs/getRenderStates-bdec93a5.js.map +0 -1
  909. package/dist/cjs/image-source-f24a4569.js +0 -4
  910. package/dist/cjs/index-1b2a8369.js +0 -4
  911. package/dist/cjs/index-1b2a8369.js.map +0 -1
  912. package/dist/cjs/index-8b802221.js +0 -4
  913. package/dist/cjs/index-8b802221.js.map +0 -1
  914. package/dist/cjs/spell-check-0419d7d7.js +0 -4
  915. package/dist/cjs/tooltip-align-4446177f.js +0 -4
  916. package/dist/cjs/unique-nav-labels-879c42cf.js +0 -4
  917. package/dist/cjs/unique-nav-labels-879c42cf.js.map +0 -1
  918. package/dist/cjs/validation-2d282d7c.js +0 -4
  919. package/dist/components/button-variant.js +0 -4
  920. package/dist/components/button-variant.js.map +0 -1
  921. package/dist/esm/Alert-363bad74.js +0 -4
  922. package/dist/esm/Alert-363bad74.js.map +0 -1
  923. package/dist/esm/CustomSuggestionsOptionsGroup-0e2df8f9.js +0 -4
  924. package/dist/esm/CustomSuggestionsOptionsGroup-0e2df8f9.js.map +0 -1
  925. package/dist/esm/FieldControlStateWrapper-ee200880.js.map +0 -1
  926. package/dist/esm/Heading-9bb68e2c.js +0 -4
  927. package/dist/esm/Heading-9bb68e2c.js.map +0 -1
  928. package/dist/esm/Icon-23e91462.js +0 -4
  929. package/dist/esm/Input-83880d09.js +0 -4
  930. package/dist/esm/InputStateWrapper-ebbf5565.js +0 -4
  931. package/dist/esm/InputStateWrapper-ebbf5565.js.map +0 -1
  932. package/dist/esm/InternalUnderlinedBadgeText-d345205c.js +0 -4
  933. package/dist/esm/align-floating-elements-14bb4167.js +0 -4
  934. package/dist/esm/align-floating-elements-14bb4167.js.map +0 -1
  935. package/dist/esm/app-globals-ce014dbd.js +0 -4
  936. package/dist/esm/bootstrap-874afb5b.js +0 -4
  937. package/dist/esm/button-variant-d6a980cf.js +0 -4
  938. package/dist/esm/button-variant-d6a980cf.js.map +0 -1
  939. package/dist/esm/color-066d384d.js.map +0 -1
  940. package/dist/esm/component-names-799e91e2.js +0 -4
  941. package/dist/esm/component-names-799e91e2.js.map +0 -1
  942. package/dist/esm/controller-17a9fc10.js +0 -4
  943. package/dist/esm/controller-17a9fc10.js.map +0 -1
  944. package/dist/esm/controller-icon-ddd0267b.js.map +0 -1
  945. package/dist/esm/disabled-e64a9155.js +0 -4
  946. package/dist/esm/events-5886c68b.js.map +0 -1
  947. package/dist/esm/getRenderStates-e405825a.js.map +0 -1
  948. package/dist/esm/has-closer-ca9bcd36.js +0 -4
  949. package/dist/esm/has-counter-a7dccaa5.js +0 -4
  950. package/dist/esm/hide-label-418cc5c0.js +0 -4
  951. package/dist/esm/href-7f134614.js +0 -4
  952. package/dist/esm/i18n-01abf777.js +0 -4
  953. package/dist/esm/index-831675d2.js +0 -4
  954. package/dist/esm/index-831675d2.js.map +0 -1
  955. package/dist/esm/index-88dea7b1.js +0 -4
  956. package/dist/esm/index-88dea7b1.js.map +0 -1
  957. package/dist/esm/tooltip-align-4c18152e.js +0 -4
  958. package/dist/esm/unique-nav-labels-de957b96.js +0 -4
  959. package/dist/esm/unique-nav-labels-de957b96.js.map +0 -1
  960. package/dist/esm/validation-7cc70d5a.js +0 -4
  961. package/dist/kolibri/Alert-363bad74.js +0 -4
  962. package/dist/kolibri/Alert-363bad74.js.map +0 -1
  963. package/dist/kolibri/CustomSuggestionsOptionsGroup-0e2df8f9.js +0 -4
  964. package/dist/kolibri/CustomSuggestionsOptionsGroup-0e2df8f9.js.map +0 -1
  965. package/dist/kolibri/FieldControlStateWrapper-ee200880.js +0 -4
  966. package/dist/kolibri/Heading-9bb68e2c.js +0 -4
  967. package/dist/kolibri/Heading-9bb68e2c.js.map +0 -1
  968. package/dist/kolibri/Icon-23e91462.js +0 -4
  969. package/dist/kolibri/InputStateWrapper-ebbf5565.js +0 -4
  970. package/dist/kolibri/InputStateWrapper-ebbf5565.js.map +0 -1
  971. package/dist/kolibri/InternalUnderlinedBadgeText-d345205c.js +0 -4
  972. package/dist/kolibri/Span-c9064f6e.js +0 -4
  973. package/dist/kolibri/align-a05c3d17.js +0 -4
  974. package/dist/kolibri/align-floating-elements-14bb4167.js +0 -4
  975. package/dist/kolibri/align-floating-elements-14bb4167.js.map +0 -1
  976. package/dist/kolibri/app-globals-ce014dbd.js +0 -4
  977. package/dist/kolibri/bootstrap-874afb5b.js +0 -4
  978. package/dist/kolibri/button-variant-d6a980cf.js +0 -4
  979. package/dist/kolibri/button-variant-d6a980cf.js.map +0 -1
  980. package/dist/kolibri/color-066d384d.js.map +0 -1
  981. package/dist/kolibri/component-names-799e91e2.js +0 -4
  982. package/dist/kolibri/component-names-799e91e2.js.map +0 -1
  983. package/dist/kolibri/controller-17a9fc10.js +0 -4
  984. package/dist/kolibri/controller-17a9fc10.js.map +0 -1
  985. package/dist/kolibri/controller-icon-ddd0267b.js.map +0 -1
  986. package/dist/kolibri/custom-class-30e531d5.js +0 -4
  987. package/dist/kolibri/disabled-e64a9155.js +0 -4
  988. package/dist/kolibri/events-5886c68b.js +0 -4
  989. package/dist/kolibri/events-5886c68b.js.map +0 -1
  990. package/dist/kolibri/has-closer-ca9bcd36.js +0 -4
  991. package/dist/kolibri/has-counter-a7dccaa5.js +0 -4
  992. package/dist/kolibri/hide-label-418cc5c0.js +0 -4
  993. package/dist/kolibri/href-7f134614.js +0 -4
  994. package/dist/kolibri/i18n-01abf777.js +0 -4
  995. package/dist/kolibri/image-source-00f34574.js +0 -4
  996. package/dist/kolibri/index-831675d2.js.map +0 -1
  997. package/dist/kolibri/index-88dea7b1.js +0 -4
  998. package/dist/kolibri/index-88dea7b1.js.map +0 -1
  999. package/dist/kolibri/open-a64bb227.js +0 -4
  1000. package/dist/kolibri/rows-4ad04320.js +0 -4
  1001. package/dist/kolibri/show-96e68a00.js +0 -4
  1002. package/dist/kolibri/spell-check-3f34625f.js +0 -4
  1003. package/dist/kolibri/tooltip-align-4c18152e.js +0 -4
  1004. package/dist/kolibri/unique-nav-labels-de957b96.js +0 -4
  1005. package/dist/kolibri/unique-nav-labels-de957b96.js.map +0 -1
  1006. package/dist/kolibri/validation-66c33ff5.js +0 -4
  1007. package/dist/kolibri/validation-7cc70d5a.js +0 -4
  1008. package/dist/types/components/kolibri/color-rgba.d.ts +0 -1
  1009. package/dist/types/schema/props/heading-variant.d.ts +0 -8
  1010. package/dist/types/schema/types/orientation.d.ts +0 -2
  1011. package/dist/types/schema/utils/contrast/color-rgba.d.ts +0 -1
  1012. package/dist/types/schema/utils/contrast/index.d.ts +0 -1
  1013. package/dist/types/schema/utils/contrast/rgba-convert.d.ts +0 -1
  1014. /package/dist/kolibri/{Collapsible-957956e1.js.map → Collapsible-556bd10b.js.map} +0 -0
  1015. /package/dist/kolibri/{Icon-23e91462.js.map → Icon-cd576310.js.map} +0 -0
  1016. /package/dist/kolibri/{Input-83880d09.js.map → Input-673592ef.js.map} +0 -0
  1017. /package/dist/kolibri/{InternalUnderlinedBadgeText-d345205c.js.map → InternalUnderlinedBadgeText-2223c9c3.js.map} +0 -0
  1018. /package/dist/kolibri/{access-and-short-key-753466cb.js.map → access-and-short-key-f743a5c4.js.map} +0 -0
  1019. /package/dist/kolibri/{align-a05c3d17.js.map → align-d2572387.js.map} +0 -0
  1020. /package/dist/kolibri/{app-globals-ce014dbd.js.map → app-globals-4a4a31c2.js.map} +0 -0
  1021. /package/dist/kolibri/{associated.controller-4efb16f5.js.map → associated.controller-4237c28d.js.map} +0 -0
  1022. /package/dist/kolibri/{bootstrap-874afb5b.js.map → bootstrap-53ed580c.js.map} +0 -0
  1023. /package/dist/kolibri/{controller-4227bd3b.js.map → controller-235b6c3b.js.map} +0 -0
  1024. /package/dist/kolibri/{controller-78a365ff.js.map → controller-31137f06.js.map} +0 -0
  1025. /package/dist/kolibri/{controller-93a592b9.js.map → controller-c152770e.js.map} +0 -0
  1026. /package/dist/kolibri/{custom-class-30e531d5.js.map → custom-class-d73b81b1.js.map} +0 -0
  1027. /package/dist/kolibri/{dev.utils-f7f473b7.js.map → dev.utils-300c83a4.js.map} +0 -0
  1028. /package/dist/kolibri/{devtools-8cc4da6d.js.map → devtools-ca41eeaf.js.map} +0 -0
  1029. /package/dist/kolibri/{disabled-e64a9155.js.map → disabled-e1038f54.js.map} +0 -0
  1030. /package/dist/kolibri/{has-closer-ca9bcd36.js.map → has-closer-798e8f4d.js.map} +0 -0
  1031. /package/dist/kolibri/{has-counter-a7dccaa5.js.map → has-counter-3fc44829.js.map} +0 -0
  1032. /package/dist/kolibri/{hide-label-418cc5c0.js.map → hide-label-8b3a8709.js.map} +0 -0
  1033. /package/dist/kolibri/{href-7f134614.js.map → href-d9ccbbdf.js.map} +0 -0
  1034. /package/dist/kolibri/{i18n-01abf777.js.map → i18n-260f0fe9.js.map} +0 -0
  1035. /package/dist/kolibri/{icons-acf365fd.js.map → icons-a9c52ed8.js.map} +0 -0
  1036. /package/dist/kolibri/{image-source-00f34574.js.map → image-source-8079f8a5.js.map} +0 -0
  1037. /package/dist/kolibri/{label-5982d241.js.map → label-bf9966d0.js.map} +0 -0
  1038. /package/dist/kolibri/{open-a64bb227.js.map → open-385de2c9.js.map} +0 -0
  1039. /package/dist/kolibri/{rows-4ad04320.js.map → rows-225b4f43.js.map} +0 -0
  1040. /package/dist/kolibri/{show-96e68a00.js.map → show-fabfe6d7.js.map} +0 -0
  1041. /package/dist/kolibri/{spell-check-3f34625f.js.map → spell-check-5559a801.js.map} +0 -0
  1042. /package/dist/kolibri/{suggestions-021d2964.js.map → suggestions-198125b7.js.map} +0 -0
  1043. /package/dist/kolibri/{table-settings-b08f49c1.js.map → table-settings-c12356ed.js.map} +0 -0
  1044. /package/dist/kolibri/{tooltip-align-4c18152e.js.map → tooltip-align-465a8590.js.map} +0 -0
  1045. /package/dist/kolibri/{validation-66c33ff5.js.map → validation-152ea092.js.map} +0 -0
  1046. /package/dist/kolibri/{validation-7cc70d5a.js.map → validation-9d549145.js.map} +0 -0
  1047. /package/dist/types/schema/utils/{contrast/contrast.d.ts → contrast.d.ts} +0 -0
@@ -1 +1 @@
1
- {"file":"kol-split-button.entry.js","mappings":";;;;;;;;;;AAAA,MAAM,eAAe,GAAG,onNAAonN,CAAC;AAC7oN,oCAAe,eAAe;;MCkCjB,cAAc;;;QACT,uBAAkB,GAAG;YACrC,OAAO,EAAE,CAAC,KAAiB;;gBAC1B,KAAK,CAAC,eAAe,EAAE,CAAC;gBAExB,IAAI,QAAO,MAAA,IAAI,CAAC,GAAG,0CAAE,OAAO,CAAA,KAAK,UAAU,EAAE;oBAE5C,MAAA,IAAI,CAAC,GAAG,0CAAE,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;iBACtC;qBAAM;oBACN,IAAI,CAAC,cAAc,EAAE,C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AAE,IAAI,CAAC,UAAU,EAC3B,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,GAAG,EAAE,IAAI,CAAC,kBAAkB,EAC5B,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,oBAAoB,EAAE,IAAI,CAAC,oBAAoB,EAC/C,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,QAAQ,EAAE,IAAI,CAAC,QAAQ,GACN,EAClB,4DAAK,KAAK,EAAC,mCAAmC,GAAO,EACrD,EAAC,cAAc,qDACd,KAAK,EAAC,oCAAoC,EAC1C,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,UAAU,QACV,MAAM,EAAC,+BAA+B,EACtC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,SAAS,CAAC,GAAG,iBAAiB,QAAQ,CAAC,GAAG,SAAS,CAAC,GAAG,iBAAiB,OAAO,CAAC,EAC3G,GAAG,EAAE,IAAI,CAAC,kBAAkB,GACX,CACb,EACN,EAAC,eAAe,qDAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,aAAa,EAAE,EAAE,MAAM,EAAC,QAAQ,IAC9F,8DAAQ,CACS,CACb,EACL;KACF;IAGM,MAAM,UAAU;QACtB,IAAI,CAAC,aAAa,EAAE,CAAC;QAErB,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;KACzB;;;;;;;;;","names":[],"sources":["src/components/split-button/style.scss?tag=kol-split-button&mode=default&encapsulation=shadow","src/components/split-button/shadow.tsx"],"sourcesContent":["@use '../@shared/mixins' as *;\n@use '../../styles/global' as *;\n@use '../popover/style.scss' as *;\n@use '../tooltip/style.scss' as *;\n\n@layer kol-component {\n\t.kol-split-button {\n\t\tdisplay: flex;\n\t\tfont-size: rem(16);\n\t\tposition: relative;\n\n\t\t&__root {\n\t\t\tdisplay: flex;\n\t\t\tposition: relative;\n\t\t}\n\n\t\t&__button {\n\t\t\tflex-grow: 1;\n\t\t\ttext-align: left;\n\t\t}\n\n\t\t.kol-popover {\n\t\t\t&__content {\n\t\t\t\tmargin-top: rem(2);\n\t\t\t}\n\n\t\t\t&__arrow {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n","import type {\n\tAlternativeButtonLinkRolePropType,\n\tButtonCallbacksPropType,\n\tButtonTypePropType,\n\tButtonVariantPropType,\n\tCustomClassPropType,\n\tIconsPropType,\n\tLabelPropType,\n\tNamePropType,\n\tSplitButtonProps,\n\tSplitButtonStates,\n\tStencilUnknown,\n\tStringified,\n\tSyncValueBySelectorPropType,\n\tTooltipAlignPropType,\n} from '../../schema';\nimport type { JSX } from '@stencil/core';\nimport { Component, h, Method, Prop, State } from '@stencil/core';\n\nimport { translate } from '../../i18n';\nimport { KolButtonWcTag, KolPopoverWcTag } from '../../core/component-names';\nimport clsx from 'clsx';\n\n/**\n * @slot - Ermöglicht das Einfügen beliebigen HTMLs in das dropdown.\n */\n@Component({\n\ttag: 'kol-split-button',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: {\n\t\tdelegatesFocus: true,\n\t},\n})\nexport class KolSplitButton implements SplitButtonProps /*, SplitButtonAPI*/ {\n\tprivate readonly clickButtonHandler = {\n\t\tonClick: (event: MouseEvent) => {\n\t\t\tevent.stopPropagation(); // stop propagation to avoid triggering the event that closes the popover\n\n\t\t\tif (typeof this._on?.onClick === 'function') {\n\t\t\t\t// TODO: this._on is not validated\n\t\t\t\tthis._on?.onClick(event, this._value);\n\t\t\t} else {\n\t\t\t\tthis.toggleDropdown();\n\t\t\t}\n\t\t},\n\t};\n\tprivate readonly clickToggleHandler = {\n\t\tonClick: (event: MouseEvent) => {\n\t\t\tevent.stopPropagation(); // stop propagation to avoid triggering the event that closes the popover\n\t\t\tthis.toggleDropdown();\n\t\t},\n\t};\n\n\tprivate readonly toggleDropdown = () => {\n\t\tthis.state = { ...this.state, _show: !this.state._show };\n\t};\n\n\tprivate readonly handleOnClose = () => {\n\t\tthis.state = { ...this.state, _show: false };\n\t};\n\n\tpublic render(): JSX.Element {\n\t\tconst i18nDropdownLabel = 'kol-split-button-dropdown-label';\n\t\treturn (\n\t\t\t<div class=\"kol-split-button\">\n\t\t\t\t<div class=\"kol-split-button__root\">\n\t\t\t\t\t<KolButtonWcTag\n\t\t\t\t\t\tclass={clsx('kol-split-button__button', {\n\t\t\t\t\t\t\t[this._variant as string]: this._variant !== 'custom',\n\t\t\t\t\t\t\t[this._customClass as string]: this._variant === 'custom' && typeof this._customClass === 'string' && this._customClass.length > 0,\n\t\t\t\t\t\t})}\n\t\t\t\t\t\t_ariaControls={this._ariaControls}\n\t\t\t\t\t\t_ariaExpanded={this._ariaExpanded}\n\t\t\t\t\t\t_ariaSelected={this._ariaSelected}\n\t\t\t\t\t\t_customClass={this._customClass}\n\t\t\t\t\t\t_disabled={this._disabled}\n\t\t\t\t\t\t_icons={this._icons}\n\t\t\t\t\t\t_hideLabel={this._hideLabel}\n\t\t\t\t\t\t_label={this._label}\n\t\t\t\t\t\t_name={this._name}\n\t\t\t\t\t\t_on={this.clickButtonHandler}\n\t\t\t\t\t\t_role={this._role}\n\t\t\t\t\t\t_syncValueBySelector={this._syncValueBySelector}\n\t\t\t\t\t\t_tooltipAlign={this._tooltipAlign}\n\t\t\t\t\t\t_type={this._type}\n\t\t\t\t\t\t_value={this._value}\n\t\t\t\t\t\t_variant={this._variant}\n\t\t\t\t\t></KolButtonWcTag>\n\t\t\t\t\t<div class=\"kol-split-button__horizontal-line\"></div>\n\t\t\t\t\t<KolButtonWcTag\n\t\t\t\t\t\tclass=\"kol-split-button__secondary-button\"\n\t\t\t\t\t\t_disabled={this._disabled}\n\t\t\t\t\t\t_hideLabel\n\t\t\t\t\t\t_icons=\"codicon codicon-triangle-down\"\n\t\t\t\t\t\t_label={this.state._show ? translate(`${i18nDropdownLabel}-close`) : translate(`${i18nDropdownLabel}-open`)}\n\t\t\t\t\t\t_on={this.clickToggleHandler}\n\t\t\t\t\t></KolButtonWcTag>\n\t\t\t\t</div>\n\t\t\t\t<KolPopoverWcTag _show={this.state._show} _on={{ onClose: this.handleOnClose }} _align=\"bottom\">\n\t\t\t\t\t<slot />\n\t\t\t\t</KolPopoverWcTag>\n\t\t\t</div>\n\t\t);\n\t}\n\n\t@Method()\n\tpublic async closePopup() {\n\t\tthis.handleOnClose();\n\n\t\treturn Promise.resolve();\n\t}\n\n\t/**\n\t * Defines which elements are controlled by this component. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls)\n\t */\n\t@Prop() public _ariaControls?: string;\n\n\t/**\n\t * Defines whether the interactive element of the component expanded something. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded)\n\t */\n\t@Prop() public _ariaExpanded?: boolean;\n\n\t/**\n\t * Defines whether the interactive element of the component is selected (e.g. role=tab). (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-selected)\n\t */\n\t@Prop() public _ariaSelected?: boolean;\n\n\t/**\n\t * Defines the custom class attribute if _variant=\"custom\" is set.\n\t */\n\t@Prop() public _customClass?: CustomClassPropType;\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Hides the caption by default and displays the caption text with a tooltip when the\n\t * interactive element is focused or the mouse is over it.\n\t * @TODO: Change type back to `HideLabelPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hideLabel?: boolean = false;\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: IconsPropType;\n\n\t/**\n\t * Defines the internal ID of the primary component element.\n\t */\n\t@Prop() public _id?: string;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label!: LabelPropType;\n\n\t/**\n\t * Defines the technical name of an input field.\n\t */\n\t@Prop() public _name?: NamePropType;\n\n\t/**\n\t * Defines the callback functions for button events.\n\t */\n\t@Prop() public _on?: ButtonCallbacksPropType<StencilUnknown>;\n\n\t/**\n\t * Defines the role of the components primary element.\n\t */\n\t@Prop() public _role?: AlternativeButtonLinkRolePropType;\n\n\t/**\n\t * Selector for synchronizing the value with another input element.\n\t * @internal\n\t */\n\t@Prop() public _syncValueBySelector?: SyncValueBySelectorPropType;\n\n\t/**\n\t * Defines where to show the Tooltip preferably: top, right, bottom or left.\n\t */\n\t@Prop() public _tooltipAlign?: TooltipAlignPropType = 'top';\n\n\t/**\n\t * Defines either the type of the component or of the components interactive element.\n\t */\n\t@Prop() public _type?: ButtonTypePropType = 'button';\n\n\t/**\n\t * Defines the value that the button emits on click.\n\t */\n\t@Prop() public _value?: Stringified<StencilUnknown>;\n\n\t/**\n\t * Defines which variant should be used for presentation.\n\t */\n\t@Prop() public _variant?: ButtonVariantPropType = 'normal';\n\n\t@State() public state: SplitButtonStates = {\n\t\t_show: false,\n\t};\n}\n"],"version":3}
1
+ {"file":"kol-split-button.entry.js","mappings":";;;;;;;;;;AAAA,MAAM,eAAe,GAAG,61MAA61M,CAAC;AACt3M,oCAAe,eAAe;;MCmCjB,cAAc;;;QAGT,oBAAe,GAAG,CAAC,GAA4B;YAC/D,IAAI,CAAC,kBAAkB,GAAG,GAAG,CAAC;SAC9B,CAAC;QAae,uBAAkB,GAAG;YACrC,OAAO,EAAE,CAAC,KAAiB;;gBAC1B,KAAK,CAAC,eAAe,EAAE,CAAC;gBAExB,IAAI,QAAO,MAAA,IAAI,CAAC,GAAG,0CAAE,OAAO,CAAA,KAAK,UAAU,EAAE;oBAE5C,MAAA,IAAI,CAAC,GAAG,0CAAE,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;iBACt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L;KACF;IAGM,MAAM,UAAU;QACtB,IAAI,CAAC,aAAa,EAAE,CAAC;QAErB,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;KACzB;;;;;;;;;","names":[],"sources":["src/components/split-button/style.scss?tag=kol-split-button&mode=default&encapsulation=shadow","src/components/split-button/shadow.tsx"],"sourcesContent":["@use '../@shared/mixins' as *;\n@use '../../styles/global' as *;\n@use '../popover/style.scss' as *;\n@use '../tooltip/style.scss' as *;\n\n@layer kol-component {\n\t.kol-split-button {\n\t\tdisplay: flex;\n\t\tposition: relative;\n\n\t\t&__root {\n\t\t\tdisplay: flex;\n\t\t\tposition: relative;\n\t\t}\n\n\t\t&__button {\n\t\t\tflex-grow: 1;\n\t\t\ttext-align: left;\n\t\t}\n\n\t\t.kol-popover {\n\t\t\t&__content {\n\t\t\t\tmargin-top: rem(2);\n\t\t\t}\n\n\t\t\t&__arrow {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n","import type {\n\tAccessKeyPropType,\n\tAlternativeButtonLinkRolePropType,\n\tAriaDescriptionPropType,\n\tButtonCallbacksPropType,\n\tButtonTypePropType,\n\tButtonVariantPropType,\n\tCustomClassPropType,\n\tIconsPropType,\n\tLabelWithExpertSlotPropType,\n\tShortKeyPropType,\n\tSplitButtonProps,\n\tSplitButtonStates,\n\tStencilUnknown,\n\tSyncValueBySelectorPropType,\n\tTooltipAlignPropType,\n} from '../../schema';\nimport type { JSX } from '@stencil/core';\nimport { Component, h, Method, Prop, State } from '@stencil/core';\n\nimport { translate } from '../../i18n';\nimport { KolButtonWcTag, KolPopoverWcTag } from '../../core/component-names';\nimport clsx from 'clsx';\n\n/**\n * @slot - Ermöglicht das Einfügen beliebigen HTMLs in das dropdown.\n */\n@Component({\n\ttag: 'kol-split-button',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: {\n\t\tdelegatesFocus: true,\n\t},\n})\nexport class KolSplitButton implements SplitButtonProps /*, SplitButtonAPI*/ {\n\tprivate primaryButtonWcRef?: HTMLKolButtonWcElement;\n\n\tprivate readonly catchPrimaryRef = (ref?: HTMLKolButtonWcElement) => {\n\t\tthis.primaryButtonWcRef = ref;\n\t};\n\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async getValue(): Promise<StencilUnknown> {\n\t\treturn this._value;\n\t}\n\n\t@Method()\n\tpublic async kolFocus() {\n\t\tawait this.primaryButtonWcRef?.kolFocus();\n\t}\n\n\tprivate readonly clickButtonHandler = {\n\t\tonClick: (event: MouseEvent) => {\n\t\t\tevent.stopPropagation(); // stop propagation to avoid triggering the event that closes the popover\n\n\t\t\tif (typeof this._on?.onClick === 'function') {\n\t\t\t\t// TODO: this._on is not validated\n\t\t\t\tthis._on?.onClick(event, this._value);\n\t\t\t}\n\t\t},\n\t};\n\tprivate readonly clickToggleHandler = {\n\t\tonClick: (event: MouseEvent) => {\n\t\t\tevent.stopPropagation(); // stop propagation to avoid triggering the event that closes the popover\n\t\t\tthis.toggleDropdown();\n\t\t},\n\t};\n\n\tprivate readonly toggleDropdown = () => {\n\t\tthis.state = { ...this.state, _show: !this.state._show };\n\t};\n\n\tprivate readonly handleOnClose = () => {\n\t\tthis.state = { ...this.state, _show: false };\n\t};\n\n\tpublic render(): JSX.Element {\n\t\tconst i18nDropdownLabel = 'kol-split-button-dropdown-label';\n\t\treturn (\n\t\t\t<div class=\"kol-split-button\">\n\t\t\t\t<div class=\"kol-split-button__root\">\n\t\t\t\t\t<KolButtonWcTag\n\t\t\t\t\t\tclass={clsx('kol-split-button__button', {\n\t\t\t\t\t\t\t[this._variant as string]: this._variant !== 'custom',\n\t\t\t\t\t\t\t[this._customClass as string]: this._variant === 'custom' && typeof this._customClass === 'string' && this._customClass.length > 0,\n\t\t\t\t\t\t})}\n\t\t\t\t\t\tref={this.catchPrimaryRef}\n\t\t\t\t\t\t_accessKey={this._accessKey}\n\t\t\t\t\t\t_ariaControls={this._ariaControls}\n\t\t\t\t\t\t_ariaDescription={this._ariaDescription}\n\t\t\t\t\t\t_ariaExpanded={this._ariaExpanded}\n\t\t\t\t\t\t_ariaSelected={this._ariaSelected}\n\t\t\t\t\t\t_customClass={this._customClass}\n\t\t\t\t\t\t_disabled={this._disabled}\n\t\t\t\t\t\t_icons={this._icons}\n\t\t\t\t\t\t_id={this._id}\n\t\t\t\t\t\t_hideLabel={this._hideLabel}\n\t\t\t\t\t\t_label={this._label}\n\t\t\t\t\t\t_name={this._name}\n\t\t\t\t\t\t_on={this.clickButtonHandler}\n\t\t\t\t\t\t_role={this._role}\n\t\t\t\t\t\t_shortKey={this._shortKey}\n\t\t\t\t\t\t_syncValueBySelector={this._syncValueBySelector}\n\t\t\t\t\t\t_tooltipAlign={this._tooltipAlign}\n\t\t\t\t\t\t_type={this._type}\n\t\t\t\t\t\t_value={this._value}\n\t\t\t\t\t\t_buttonVariant={this._variant}\n\t\t\t\t\t></KolButtonWcTag>\n\t\t\t\t\t<div class=\"kol-split-button__horizontal-line\"></div>\n\t\t\t\t\t<KolButtonWcTag\n\t\t\t\t\t\tclass=\"kol-split-button__secondary-button\"\n\t\t\t\t\t\t_disabled={this._disabled}\n\t\t\t\t\t\t_hideLabel\n\t\t\t\t\t\t_icons=\"codicon codicon-triangle-down\"\n\t\t\t\t\t\t_label={this.state._show ? translate(`${i18nDropdownLabel}-close`) : translate(`${i18nDropdownLabel}-open`)}\n\t\t\t\t\t\t_on={this.clickToggleHandler}\n\t\t\t\t\t></KolButtonWcTag>\n\t\t\t\t</div>\n\t\t\t\t<KolPopoverWcTag _show={this.state._show} _on={{ onClose: this.handleOnClose }} _align=\"bottom\">\n\t\t\t\t\t<slot />\n\t\t\t\t</KolPopoverWcTag>\n\t\t\t</div>\n\t\t);\n\t}\n\n\t@Method()\n\tpublic async closePopup() {\n\t\tthis.handleOnClose();\n\n\t\treturn Promise.resolve();\n\t}\n\n\t/**\n\t * Defines which key combination can be used to trigger or focus the interactive element of the component.\n\t */\n\t@Prop() public _accessKey?: AccessKeyPropType;\n\n\t/**\n\t * Defines which elements are controlled by this component. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls)\n\t */\n\t@Prop() public _ariaControls?: string;\n\n\t/**\n\t * Defines the value for the aria-description attribute.\n\t */\n\t@Prop() public _ariaDescription?: AriaDescriptionPropType;\n\n\t/**\n\t * Defines whether the interactive element of the component expanded something. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded)\n\t */\n\t@Prop() public _ariaExpanded?: boolean;\n\n\t/**\n\t * Defines whether the interactive element of the component is selected (e.g. role=tab). (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-selected)\n\t */\n\t@Prop() public _ariaSelected?: boolean;\n\n\t/**\n\t * Defines the custom class attribute if _variant=\"custom\" is set.\n\t */\n\t@Prop() public _customClass?: CustomClassPropType;\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Hides the caption by default and displays the caption text with a tooltip when the\n\t * interactive element is focused or the mouse is over it.\n\t * @TODO: Change type back to `HideLabelPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hideLabel?: boolean = false;\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: IconsPropType;\n\n\t/**\n\t * Defines the internal ID of the primary component element.\n\t */\n\t@Prop() public _id?: string;\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!: LabelWithExpertSlotPropType;\n\n\t/**\n\t * Defines the technical name of an input field.\n\t */\n\t@Prop() public _name?: string;\n\n\t/**\n\t * Defines the callback functions for button events.\n\t */\n\t@Prop() public _on?: ButtonCallbacksPropType<StencilUnknown>;\n\n\t/**\n\t * Defines the role of the components primary element.\n\t */\n\t@Prop() public _role?: AlternativeButtonLinkRolePropType;\n\n\t/**\n\t * Adds a visual short key hint to the component.\n\t */\n\t@Prop() public _shortKey?: ShortKeyPropType;\n\n\t/**\n\t * Selector for synchronizing the value with another input element.\n\t * @internal\n\t */\n\t@Prop() public _syncValueBySelector?: SyncValueBySelectorPropType;\n\n\t/**\n\t * Defines where to show the Tooltip preferably: top, right, bottom or left.\n\t */\n\t@Prop() public _tooltipAlign?: TooltipAlignPropType = 'top';\n\n\t/**\n\t * Defines either the type of the component or of the components interactive element.\n\t */\n\t@Prop() public _type?: ButtonTypePropType = 'button';\n\n\t/**\n\t * Defines the value that the button emits on click.\n\t */\n\t@Prop() public _value?: StencilUnknown;\n\n\t/**\n\t * Defines which variant should be used for presentation.\n\t */\n\t@Prop() public _variant?: ButtonVariantPropType = 'normal';\n\n\t@State() public state: SplitButtonStates = {\n\t\t_show: false,\n\t};\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as registerInstance,h,g as getElement}from"./index-831675d2.js";import{t as translate}from"./i18n-01abf777.js";import{r as KolHeadingTag,b as KolAlertWcTag,t as KolInputCheckboxTag,u as KolInputNumberTag,a as KolButtonWcTag,i as KolPopoverButtonWcTag}from"./component-names-799e91e2.js";import{d as dispatchDomEvent,K as KolEvent}from"./events-5886c68b.js";import"./i18n-45224cc3.js";import"./index-88dea7b1.js";const KolTableSettings=class{constructor(e){registerInstance(this,e),this.tableSettings={columns:[]},this.errorMessage=null,this._tableSettings={columns:[]}}handleTableSettingsChange(e){this.tableSettings=Object.assign(Object.assign({},e),{columns:this.sortColumnsByPosition(e.columns)})}componentWillLoad(){this.handleTableSettingsChange(this._tableSettings)}sortColumnsByPosition(e){return[...e].sort(((e,t)=>e.position-t.position))}moveColumn(e,t){const s=[...this.tableSettings.columns],a=s.findIndex((t=>t.key===e)),n="up"===t?a-1:a+1,l=s[a],i=s[n],o=s.map((e=>e.key===l.key?Object.assign(Object.assign({},e),{position:i.position}):e.key===i.key?Object.assign(Object.assign({},e),{position:l.position}):e));this.tableSettings=Object.assign(Object.assign({},this.tableSettings),{columns:this.sortColumnsByPosition(o)})}handleVisibilityChange(e,t){this.tableSettings=Object.assign(Object.assign({},this.tableSettings),{columns:this.tableSettings.columns.map((s=>s.key===e?Object.assign(Object.assign({},s),{visible:Boolean(t)}):s))})}handleWidthChange(e,t){this.tableSettings=Object.assign(Object.assign({},this.tableSettings),{columns:this.tableSettings.columns.map((s=>s.key===e?Object.assign(Object.assign({},s),{width:Number(t)}):s))})}handleCancel(){var e;null===(e=this.popoverRef)||void 0===e||e.hidePopover()}handleSubmit(e){var t;e.preventDefault();this.tableSettings.columns.some((e=>e.visible))?this.host&&(this.errorMessage=null,dispatchDomEvent(this.host,KolEvent.settingsChange,this.tableSettings),null===(t=this.popoverRef)||void 0===t||t.hidePopover()):this.errorMessage=translate("kol-table-settings-error-all-invisible")}render(){const e=[...this.tableSettings.columns].sort(((e,t)=>e.position-t.position));return h(KolPopoverButtonWcTag,{key:"a3e0145a3399d8dee361f7e29e34198b1ec99b27",ref:e=>this.popoverRef=e,class:"kol-table-settings",_icons:"codicon codicon-settings-gear",_label:translate("kol-table-settings"),_popoverAlign:"top",_hideLabel:!0},h("div",{key:"66f2e14ac78f6d865a6a6ad9e2393c94c42fa8a7",class:"kol-table-settings__content"},h(KolHeadingTag,{key:"558f2b97ac8c7f049147125a642e5e4862108dda",_label:translate("kol-table-settings"),_level:0}),this.errorMessage&&h(KolAlertWcTag,{key:"433c0381c504eff423516b40d899751ae5ea4658",_type:"error",_label:this.errorMessage,_variant:"msg",class:"kol-table-settings__error-message"}),h("form",{key:"404aae1da74273e840c1980fe3a94d126cbfbe8b",onSubmit:this.handleSubmit.bind(this)},h("div",{key:"d18a3fe79c0f576dbf23444eb06a744d003b77af",class:"kol-table-settings__columns-container"},h("div",{key:"adb1ad8d4afc6e0dc062f7dfb2cbbfebbc5b83d1",class:"kol-table-settings__columns"},e.map(((t,s)=>h("div",{key:t.key,class:"kol-table-settings__column"},h(KolInputCheckboxTag,{_checked:t.visible,_label:translate("kol-table-settings-show-column",{placeholders:{column:t.label}}),_value:!0,_hideLabel:!0,_on:{onInput:(e,s)=>this.handleVisibilityChange(t.key,s)}}),h("span",null,t.label),h(KolInputNumberTag,{_hideLabel:!0,_value:t.width,_label:translate("kol-table-settings-column-width",{placeholders:{column:t.label}}),_min:1,_on:{onInput:(e,s)=>this.handleWidthChange(t.key,s)}}),h(KolButtonWcTag,{_icons:"codicon codicon-arrow-up",_label:translate("kol-table-settings-move-up",{placeholders:{column:t.label}}),_hideLabel:!0,_variant:"ghost",_on:{onClick:()=>this.moveColumn(t.key,"up")},_disabled:0===s,"data-testid":"table-settings-move-up"}),h(KolButtonWcTag,{_icons:"codicon codicon-arrow-down",_label:translate("kol-table-settings-move-down",{placeholders:{column:t.label}}),_hideLabel:!0,_variant:"ghost",_on:{onClick:()=>this.moveColumn(t.key,"down")},_disabled:s===e.length-1,"data-testid":"table-settings-move-down"})))))),h("div",{key:"d0f48d73ce013cbd5b185a437756482c855ac9dc",class:"kol-table-settings__actions"},h(KolButtonWcTag,{key:"a7e5797e348e821f8054a92121ecff1d61b13135",_label:translate("kol-table-settings-cancel"),_variant:"secondary",_on:{onClick:()=>this.handleCancel()},"data-testid":"table-settings-cancel"}),h(KolButtonWcTag,{key:"b42ca9c4f951fcc93a281f022dabafda59fe3373",_label:translate("kol-table-settings-apply"),_variant:"primary",_type:"submit","data-testid":"table-settings-apply"})))))}get host(){return getElement(this)}static get watchers(){return{_tableSettings:["handleTableSettingsChange"]}}};export{KolTableSettings as kol_table_settings_wc};
4
+ import{r as registerInstance,h,g as getElement}from"./index-aa2635d0.js";import{t as translate}from"./i18n-260f0fe9.js";import{t as KolHeadingTag,c as KolAlertWcTag,u as KolInputCheckboxTag,v as KolInputNumberTag,b as KolButtonWcTag,j as KolPopoverButtonWcTag}from"./component-names-0657b355.js";import{d as dispatchDomEvent,K as KolEvent}from"./events-bad0a075.js";import"./i18n-45224cc3.js";import"./index-ebe5a881.js";const KolTableSettings=class{constructor(e){registerInstance(this,e),this.tableSettings={columns:[]},this.errorMessage=null,this._tableSettings={columns:[]}}handleTableSettingsChange(e){this.tableSettings=Object.assign(Object.assign({},e),{columns:this.sortColumnsByPosition(e.columns)})}componentWillLoad(){this.handleTableSettingsChange(this._tableSettings)}sortColumnsByPosition(e){return[...e].sort(((e,t)=>e.position-t.position))}moveColumn(e,t){const s=[...this.tableSettings.columns],a=s.findIndex((t=>t.key===e)),n="up"===t?a-1:a+1,l=s[a],o=s[n],i=s.map((e=>e.key===l.key?Object.assign(Object.assign({},e),{position:o.position}):e.key===o.key?Object.assign(Object.assign({},e),{position:l.position}):e));this.tableSettings=Object.assign(Object.assign({},this.tableSettings),{columns:this.sortColumnsByPosition(i)})}handleVisibilityChange(e,t){this.tableSettings=Object.assign(Object.assign({},this.tableSettings),{columns:this.tableSettings.columns.map((s=>s.key===e?Object.assign(Object.assign({},s),{visible:Boolean(t)}):s))})}handleWidthChange(e,t){this.tableSettings=Object.assign(Object.assign({},this.tableSettings),{columns:this.tableSettings.columns.map((s=>s.key===e?Object.assign(Object.assign({},s),{width:Number(t)}):s))})}handleCancel(){var e;null===(e=this.popoverRef)||void 0===e||e.hidePopover()}handleSubmit(e){var t;e.preventDefault();this.tableSettings.columns.some((e=>e.visible))?this.host&&(this.errorMessage=null,dispatchDomEvent(this.host,KolEvent.settingsChange,this.tableSettings),null===(t=this.popoverRef)||void 0===t||t.hidePopover()):this.errorMessage=translate("kol-table-settings-error-all-invisible")}render(){const e=[...this.tableSettings.columns].sort(((e,t)=>e.position-t.position));return h(KolPopoverButtonWcTag,{key:"0ca51ae3cc20e2c0a3e8af8d287ec0a0414139bc",ref:e=>this.popoverRef=e,class:"kol-table-settings",_icons:"codicon codicon-settings-gear",_label:translate("kol-table-settings"),_popoverAlign:"top",_hideLabel:!0},h("div",{key:"e5fbc57fd59529262b64192a8013d84be69f0f9b",class:"kol-table-settings__content"},h(KolHeadingTag,{key:"f15bdeface7b959ddd25ed3fe76d5ad262954091",_label:translate("kol-table-settings"),_level:0}),this.errorMessage&&h(KolAlertWcTag,{key:"286889a668bc874f1688b06ad145c71bdc5cde6b",_type:"error",_label:this.errorMessage,_variant:"msg",class:"kol-table-settings__error-message"}),h("form",{key:"de4d015a4bf8123a0f61cb94a6d546b7fc2a947c",onSubmit:this.handleSubmit.bind(this)},h("div",{key:"5f59e3f62159570ce663ee4946c45305064c47f0",class:"kol-table-settings__columns-container"},h("div",{key:"316fc127e3d68faa71e57c055cabfa6635ce7732",class:"kol-table-settings__columns"},e.map(((t,s)=>h("div",{key:t.key,class:"kol-table-settings__column"},h(KolInputCheckboxTag,{_checked:t.visible,_label:translate("kol-table-settings-show-column",{placeholders:{column:t.label}}),_value:!0,_hideLabel:!0,_on:{onInput:(e,s)=>this.handleVisibilityChange(t.key,s)}}),h("span",null,t.label),h(KolInputNumberTag,{_hideLabel:!0,_value:t.width,_label:translate("kol-table-settings-column-width",{placeholders:{column:t.label}}),_min:1,_on:{onInput:(e,s)=>this.handleWidthChange(t.key,s)}}),h(KolButtonWcTag,{_icons:"codicon codicon-arrow-up",_label:translate("kol-table-settings-move-up",{placeholders:{column:t.label}}),_hideLabel:!0,_buttonVariant:"ghost",_on:{onClick:()=>this.moveColumn(t.key,"up")},_disabled:0===s,"data-testid":"table-settings-move-up"}),h(KolButtonWcTag,{_icons:"codicon codicon-arrow-down",_label:translate("kol-table-settings-move-down",{placeholders:{column:t.label}}),_hideLabel:!0,_buttonVariant:"ghost",_on:{onClick:()=>this.moveColumn(t.key,"down")},_disabled:s===e.length-1,"data-testid":"table-settings-move-down"})))))),h("div",{key:"4e7a2481531e1cf0c387df5476efd5b9044f27d5",class:"kol-table-settings__actions"},h(KolButtonWcTag,{key:"b4ad0c611d272a9e4f29d93ebcf018febb16cf83",_label:translate("kol-table-settings-cancel"),_buttonVariant:"secondary",_on:{onClick:()=>this.handleCancel()},"data-testid":"table-settings-cancel"}),h(KolButtonWcTag,{key:"b46efad370ce482f80e181acab237ce0a8433711",_label:translate("kol-table-settings-apply"),_buttonVariant:"primary",_type:"submit","data-testid":"table-settings-apply"})))))}get host(){return getElement(this)}static get watchers(){return{_tableSettings:["handleTableSettingsChange"]}}};export{KolTableSettings as kol_table_settings_wc};
@@ -1 +1 @@
1
- {"file":"kol-table-settings-wc.entry.js","mappings":";;;;;;;;;;MAea,gBAAgB;;;6BAEoB,EAAE,OAAO,EAAE,EAAE,EAAE;4BACxB,IAAI;8BACK,EAAE,OAAO,EAAE,EAAE,EAAE;;IAG/D,yBAAyB,CAAC,QAA+B;QACxD,IAAI,CAAC,aAAa,mCACd,QAAQ,KACX,OAAO,EAAE,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC,OAAO,CAAC,GACrD,CAAC;KACF;IAEM,iBAAiB;QACvB,IAAI,CAAC,yBAAyB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;KACpD;IAIO,qBAAqB,CAAC,OAAyB;QACtD,OAAO,CAAC,GAAG,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC;KACxE;IAEO,UAAU,CAAC,QAAgB,EAAE,SAAwB;QAC5D,MAAM,cAAc,GAAG,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAEvD,MAAM,WAAW,GAAG,cAAc,CAAC,SAAS,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,GAAG,KAAK,QAAQ,CAAC,CAAC;QAC5E,MAAM,WAAW,GAAG,SAAS,KAAK,IAAI,GAAG,WAAW,GAAG,CAAC,GAAG,WAAW,GAAG,CAAC,CAAC;QAE3E,MAAM,MAAM,GAAG,cAAc,CAAC,WAAW,CAAC,CAAC;QAC3C,MAAM,MAAM,GAAG,cAAc,CAAC,WAAW,CAAC,CAAC;QAE3C,MAAM,OAAO,GAAG,cAAc,CAAC,G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AS,EAAE,KAAK,KAAK,CAAC,iBACV,wBAAwB,GACnC,EACF,EAAC,cAAc,IACd,MAAM,EAAC,4BAA4B,EACnC,MAAM,EAAE,SAAS,CAAC,8BAA8B,EAAE,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,KAAK,EAAE,EAAE,CAAC,EAC7F,UAAU,QACV,QAAQ,EAAC,OAAO,EAChB,GAAG,EAAE,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,EAAE,EAC3D,SAAS,EAAE,KAAK,KAAK,aAAa,CAAC,MAAM,GAAG,CAAC,iBACjC,0BAA0B,GACrC,CACG,CACN,CAAC,CACG,CACD,EAEN,4DAAK,KAAK,EAAC,6BAA6B,IACvC,EAAC,cAAc,qDACd,MAAM,EAAE,SAAS,CAAC,2BAA2B,CAAC,EAC9C,QAAQ,EAAC,WAAW,EACpB,GAAG,EAAE,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC,YAAY,EAAE,EAAE,iBAC/B,uBAAuB,GAClC,EACF,EAAC,cAAc,qDAAC,MAAM,EAAE,SAAS,CAAC,0BAA0B,CAAC,EAAE,QAAQ,EAAC,SAAS,EAAC,KAAK,EAAC,QAAQ,iBAAa,sBAAsB,GAAG,CACjI,CACA,CACF,CACiB,EACvB;KACF;;;;;;;;;","names":[],"sources":["src/components/table-stateless/table-settings.tsx"],"sourcesContent":["import type { JSX } from '@stencil/core';\nimport { Component, Element, h, Prop, State, Watch } from '@stencil/core';\nimport { translate } from '../../i18n';\nimport { KolAlertWcTag, KolButtonWcTag, KolHeadingTag, KolInputCheckboxTag, KolInputNumberTag, KolPopoverButtonWcTag } from '../../core/component-names';\nimport { dispatchDomEvent, KolEvent } from '../../utils/events';\nimport type { TableSettingsPropType } from '../../schema/props/table-settings';\nimport type { ColumnSettings } from '../../schema';\n\n/**\n * @internal\n */\n@Component({\n\ttag: 'kol-table-settings-wc',\n\tshadow: false,\n})\nexport class KolTableSettings {\n\t@Element() private readonly host?: HTMLKolTableSettingsWcElement;\n\t@State() tableSettings: TableSettingsPropType = { columns: [] };\n\t@State() errorMessage: string | null = null;\n\t@Prop() _tableSettings: TableSettingsPropType = { columns: [] };\n\n\t@Watch('_tableSettings')\n\thandleTableSettingsChange(newValue: TableSettingsPropType) {\n\t\tthis.tableSettings = {\n\t\t\t...newValue,\n\t\t\tcolumns: this.sortColumnsByPosition(newValue.columns),\n\t\t};\n\t}\n\n\tpublic componentWillLoad() {\n\t\tthis.handleTableSettingsChange(this._tableSettings);\n\t}\n\n\tprivate popoverRef: HTMLKolPopoverButtonWcElement | undefined;\n\n\tprivate sortColumnsByPosition(columns: ColumnSettings[]): ColumnSettings[] {\n\t\treturn [...columns].sort((colA, colB) => colA.position - colB.position);\n\t}\n\n\tprivate moveColumn(columnId: string, direction: 'up' | 'down'): void {\n\t\tconst columnSettings = [...this.tableSettings.columns];\n\n\t\tconst sourceIndex = columnSettings.findIndex((col) => col.key === columnId);\n\t\tconst targetIndex = direction === 'up' ? sourceIndex - 1 : sourceIndex + 1;\n\n\t\tconst source = columnSettings[sourceIndex];\n\t\tconst target = columnSettings[targetIndex];\n\n\t\tconst newCols = columnSettings.map((col) => {\n\t\t\tif (col.key === source.key) return { ...col, position: target.position };\n\t\t\tif (col.key === target.key) return { ...col, position: source.position };\n\t\t\treturn col;\n\t\t});\n\n\t\t// re-sort by position and update\n\t\tthis.tableSettings = {\n\t\t\t...this.tableSettings,\n\t\t\tcolumns: this.sortColumnsByPosition(newCols),\n\t\t};\n\t}\n\n\tprivate handleVisibilityChange(key: string, visible: unknown): void {\n\t\tthis.tableSettings = {\n\t\t\t...this.tableSettings,\n\t\t\tcolumns: this.tableSettings.columns.map((col) => (col.key === key ? { ...col, visible: Boolean(visible) } : col)),\n\t\t};\n\t}\n\n\tprivate handleWidthChange(key: string, width: unknown): void {\n\t\tthis.tableSettings = {\n\t\t\t...this.tableSettings,\n\t\t\tcolumns: this.tableSettings.columns.map((col) => (col.key === key ? { ...col, width: Number(width) } : col)),\n\t\t};\n\t}\n\n\tprivate handleCancel() {\n\t\tvoid this.popoverRef?.hidePopover();\n\t}\n\n\tprivate handleSubmit(event: Event): void {\n\t\tevent.preventDefault();\n\n\t\tconst hasVisibleColumn = this.tableSettings.columns.some((column) => column.visible);\n\n\t\tif (!hasVisibleColumn) {\n\t\t\tthis.errorMessage = translate('kol-table-settings-error-all-invisible');\n\t\t\treturn;\n\t\t} else if (this.host) {\n\t\t\tthis.errorMessage = null;\n\t\t\tdispatchDomEvent(this.host, KolEvent.settingsChange, this.tableSettings);\n\t\t\tvoid this.popoverRef?.hidePopover();\n\t\t}\n\t}\n\n\tpublic render(): JSX.Element {\n\t\tconst sortedColumns = [...this.tableSettings.columns].sort((a, b) => a.position - b.position);\n\n\t\treturn (\n\t\t\t<KolPopoverButtonWcTag\n\t\t\t\tref={(el) => (this.popoverRef = el)}\n\t\t\t\tclass=\"kol-table-settings\"\n\t\t\t\t_icons=\"codicon codicon-settings-gear\"\n\t\t\t\t_label={translate('kol-table-settings')}\n\t\t\t\t_popoverAlign=\"top\"\n\t\t\t\t_hideLabel\n\t\t\t>\n\t\t\t\t<div class=\"kol-table-settings__content\">\n\t\t\t\t\t<KolHeadingTag _label={translate('kol-table-settings')} _level={0} />\n\n\t\t\t\t\t{this.errorMessage && <KolAlertWcTag _type=\"error\" _label={this.errorMessage} _variant=\"msg\" class=\"kol-table-settings__error-message\" />}\n\n\t\t\t\t\t<form onSubmit={this.handleSubmit.bind(this)}>\n\t\t\t\t\t\t<div class=\"kol-table-settings__columns-container\">\n\t\t\t\t\t\t\t<div class=\"kol-table-settings__columns\">\n\t\t\t\t\t\t\t\t{sortedColumns.map((column, index) => (\n\t\t\t\t\t\t\t\t\t<div key={column.key} class=\"kol-table-settings__column\">\n\t\t\t\t\t\t\t\t\t\t<KolInputCheckboxTag\n\t\t\t\t\t\t\t\t\t\t\t_checked={column.visible}\n\t\t\t\t\t\t\t\t\t\t\t_label={translate('kol-table-settings-show-column', { placeholders: { column: column.label } })}\n\t\t\t\t\t\t\t\t\t\t\t_value={true}\n\t\t\t\t\t\t\t\t\t\t\t_hideLabel\n\t\t\t\t\t\t\t\t\t\t\t_on={{ onInput: (_, value: unknown) => this.handleVisibilityChange(column.key, value) }}\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t<span>{column.label}</span>\n\t\t\t\t\t\t\t\t\t\t<KolInputNumberTag\n\t\t\t\t\t\t\t\t\t\t\t_hideLabel\n\t\t\t\t\t\t\t\t\t\t\t_value={column.width}\n\t\t\t\t\t\t\t\t\t\t\t_label={translate('kol-table-settings-column-width', { placeholders: { column: column.label } })}\n\t\t\t\t\t\t\t\t\t\t\t_min={1}\n\t\t\t\t\t\t\t\t\t\t\t_on={{ onInput: (_, value: unknown) => this.handleWidthChange(column.key, value) }}\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t<KolButtonWcTag\n\t\t\t\t\t\t\t\t\t\t\t_icons=\"codicon codicon-arrow-up\"\n\t\t\t\t\t\t\t\t\t\t\t_label={translate('kol-table-settings-move-up', { placeholders: { column: column.label } })}\n\t\t\t\t\t\t\t\t\t\t\t_hideLabel\n\t\t\t\t\t\t\t\t\t\t\t_variant=\"ghost\"\n\t\t\t\t\t\t\t\t\t\t\t_on={{ onClick: () => this.moveColumn(column.key, 'up') }}\n\t\t\t\t\t\t\t\t\t\t\t_disabled={index === 0}\n\t\t\t\t\t\t\t\t\t\t\tdata-testid=\"table-settings-move-up\"\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t<KolButtonWcTag\n\t\t\t\t\t\t\t\t\t\t\t_icons=\"codicon codicon-arrow-down\"\n\t\t\t\t\t\t\t\t\t\t\t_label={translate('kol-table-settings-move-down', { placeholders: { column: column.label } })}\n\t\t\t\t\t\t\t\t\t\t\t_hideLabel\n\t\t\t\t\t\t\t\t\t\t\t_variant=\"ghost\"\n\t\t\t\t\t\t\t\t\t\t\t_on={{ onClick: () => this.moveColumn(column.key, 'down') }}\n\t\t\t\t\t\t\t\t\t\t\t_disabled={index === sortedColumns.length - 1}\n\t\t\t\t\t\t\t\t\t\t\tdata-testid=\"table-settings-move-down\"\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class=\"kol-table-settings__actions\">\n\t\t\t\t\t\t\t<KolButtonWcTag\n\t\t\t\t\t\t\t\t_label={translate('kol-table-settings-cancel')}\n\t\t\t\t\t\t\t\t_variant=\"secondary\"\n\t\t\t\t\t\t\t\t_on={{ onClick: () => this.handleCancel() }}\n\t\t\t\t\t\t\t\tdata-testid=\"table-settings-cancel\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<KolButtonWcTag _label={translate('kol-table-settings-apply')} _variant=\"primary\" _type=\"submit\" data-testid=\"table-settings-apply\" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</form>\n\t\t\t\t</div>\n\t\t\t</KolPopoverButtonWcTag>\n\t\t);\n\t}\n}\n"],"version":3}
1
+ {"file":"kol-table-settings-wc.entry.js","mappings":";;;;;;;;;;MAea,gBAAgB;;;6BAEoB,EAAE,OAAO,EAAE,EAAE,EAAE;4BACxB,IAAI;8BACK,EAAE,OAAO,EAAE,EAAE,EAAE;;IAG/D,yBAAyB,CAAC,QAA+B;QACxD,IAAI,CAAC,aAAa,mCACd,QAAQ,KACX,OAAO,EAAE,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC,OAAO,CAAC,GACrD,CAAC;KACF;IAEM,iBAAiB;QACvB,IAAI,CAAC,yBAAyB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;KACpD;IAIO,qBAAqB,CAAC,OAAyB;QACtD,OAAO,CAAC,GAAG,OAAO,CAAC,CAAC,I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iBAC/B,uBAAuB,GAClC,EACF,EAAC,cAAc,qDAAC,MAAM,EAAE,SAAS,CAAC,0BAA0B,CAAC,EAAE,cAAc,EAAC,SAAS,EAAC,KAAK,EAAC,QAAQ,iBAAa,sBAAsB,GAAG,CACvI,CACA,CACF,CACiB,EACvB;KACF;;;;;;;;;","names":[],"sources":["src/components/table-stateless/table-settings.tsx"],"sourcesContent":["import type { JSX } from '@stencil/core';\nimport { Component, Element, h, Prop, State, Watch } from '@stencil/core';\nimport { translate } from '../../i18n';\nimport { KolAlertWcTag, KolButtonWcTag, KolHeadingTag, KolInputCheckboxTag, KolInputNumberTag, KolPopoverButtonWcTag } from '../../core/component-names';\nimport { dispatchDomEvent, KolEvent } from '../../utils/events';\nimport type { TableSettingsPropType } from '../../schema/props/table-settings';\nimport type { ColumnSettings } from '../../schema';\n\n/**\n * @internal\n */\n@Component({\n\ttag: 'kol-table-settings-wc',\n\tshadow: false,\n})\nexport class KolTableSettings {\n\t@Element() private readonly host?: HTMLKolTableSettingsWcElement;\n\t@State() tableSettings: TableSettingsPropType = { columns: [] };\n\t@State() errorMessage: string | null = null;\n\t@Prop() _tableSettings: TableSettingsPropType = { columns: [] };\n\n\t@Watch('_tableSettings')\n\thandleTableSettingsChange(newValue: TableSettingsPropType) {\n\t\tthis.tableSettings = {\n\t\t\t...newValue,\n\t\t\tcolumns: this.sortColumnsByPosition(newValue.columns),\n\t\t};\n\t}\n\n\tpublic componentWillLoad() {\n\t\tthis.handleTableSettingsChange(this._tableSettings);\n\t}\n\n\tprivate popoverRef: HTMLKolPopoverButtonWcElement | undefined;\n\n\tprivate sortColumnsByPosition(columns: ColumnSettings[]): ColumnSettings[] {\n\t\treturn [...columns].sort((colA, colB) => colA.position - colB.position);\n\t}\n\n\tprivate moveColumn(columnId: string, direction: 'up' | 'down'): void {\n\t\tconst columnSettings = [...this.tableSettings.columns];\n\n\t\tconst sourceIndex = columnSettings.findIndex((col) => col.key === columnId);\n\t\tconst targetIndex = direction === 'up' ? sourceIndex - 1 : sourceIndex + 1;\n\n\t\tconst source = columnSettings[sourceIndex];\n\t\tconst target = columnSettings[targetIndex];\n\n\t\tconst newCols = columnSettings.map((col) => {\n\t\t\tif (col.key === source.key) return { ...col, position: target.position };\n\t\t\tif (col.key === target.key) return { ...col, position: source.position };\n\t\t\treturn col;\n\t\t});\n\n\t\t// re-sort by position and update\n\t\tthis.tableSettings = {\n\t\t\t...this.tableSettings,\n\t\t\tcolumns: this.sortColumnsByPosition(newCols),\n\t\t};\n\t}\n\n\tprivate handleVisibilityChange(key: string, visible: unknown): void {\n\t\tthis.tableSettings = {\n\t\t\t...this.tableSettings,\n\t\t\tcolumns: this.tableSettings.columns.map((col) => (col.key === key ? { ...col, visible: Boolean(visible) } : col)),\n\t\t};\n\t}\n\n\tprivate handleWidthChange(key: string, width: unknown): void {\n\t\tthis.tableSettings = {\n\t\t\t...this.tableSettings,\n\t\t\tcolumns: this.tableSettings.columns.map((col) => (col.key === key ? { ...col, width: Number(width) } : col)),\n\t\t};\n\t}\n\n\tprivate handleCancel() {\n\t\tvoid this.popoverRef?.hidePopover();\n\t}\n\n\tprivate handleSubmit(event: Event): void {\n\t\tevent.preventDefault();\n\n\t\tconst hasVisibleColumn = this.tableSettings.columns.some((column) => column.visible);\n\n\t\tif (!hasVisibleColumn) {\n\t\t\tthis.errorMessage = translate('kol-table-settings-error-all-invisible');\n\t\t\treturn;\n\t\t} else if (this.host) {\n\t\t\tthis.errorMessage = null;\n\t\t\tdispatchDomEvent(this.host, KolEvent.settingsChange, this.tableSettings);\n\t\t\tvoid this.popoverRef?.hidePopover();\n\t\t}\n\t}\n\n\tpublic render(): JSX.Element {\n\t\tconst sortedColumns = [...this.tableSettings.columns].sort((a, b) => a.position - b.position);\n\n\t\treturn (\n\t\t\t<KolPopoverButtonWcTag\n\t\t\t\tref={(el) => (this.popoverRef = el)}\n\t\t\t\tclass=\"kol-table-settings\"\n\t\t\t\t_icons=\"codicon codicon-settings-gear\"\n\t\t\t\t_label={translate('kol-table-settings')}\n\t\t\t\t_popoverAlign=\"top\"\n\t\t\t\t_hideLabel\n\t\t\t>\n\t\t\t\t<div class=\"kol-table-settings__content\">\n\t\t\t\t\t<KolHeadingTag _label={translate('kol-table-settings')} _level={0} />\n\n\t\t\t\t\t{this.errorMessage && <KolAlertWcTag _type=\"error\" _label={this.errorMessage} _variant=\"msg\" class=\"kol-table-settings__error-message\" />}\n\n\t\t\t\t\t<form onSubmit={this.handleSubmit.bind(this)}>\n\t\t\t\t\t\t<div class=\"kol-table-settings__columns-container\">\n\t\t\t\t\t\t\t<div class=\"kol-table-settings__columns\">\n\t\t\t\t\t\t\t\t{sortedColumns.map((column, index) => (\n\t\t\t\t\t\t\t\t\t<div key={column.key} class=\"kol-table-settings__column\">\n\t\t\t\t\t\t\t\t\t\t<KolInputCheckboxTag\n\t\t\t\t\t\t\t\t\t\t\t_checked={column.visible}\n\t\t\t\t\t\t\t\t\t\t\t_label={translate('kol-table-settings-show-column', { placeholders: { column: column.label } })}\n\t\t\t\t\t\t\t\t\t\t\t_value={true}\n\t\t\t\t\t\t\t\t\t\t\t_hideLabel\n\t\t\t\t\t\t\t\t\t\t\t_on={{ onInput: (_, value: unknown) => this.handleVisibilityChange(column.key, value) }}\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t<span>{column.label}</span>\n\t\t\t\t\t\t\t\t\t\t<KolInputNumberTag\n\t\t\t\t\t\t\t\t\t\t\t_hideLabel\n\t\t\t\t\t\t\t\t\t\t\t_value={column.width}\n\t\t\t\t\t\t\t\t\t\t\t_label={translate('kol-table-settings-column-width', { placeholders: { column: column.label } })}\n\t\t\t\t\t\t\t\t\t\t\t_min={1}\n\t\t\t\t\t\t\t\t\t\t\t_on={{ onInput: (_, value: unknown) => this.handleWidthChange(column.key, value) }}\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t<KolButtonWcTag\n\t\t\t\t\t\t\t\t\t\t\t_icons=\"codicon codicon-arrow-up\"\n\t\t\t\t\t\t\t\t\t\t\t_label={translate('kol-table-settings-move-up', { placeholders: { column: column.label } })}\n\t\t\t\t\t\t\t\t\t\t\t_hideLabel\n\t\t\t\t\t\t\t\t\t\t\t_buttonVariant=\"ghost\"\n\t\t\t\t\t\t\t\t\t\t\t_on={{ onClick: () => this.moveColumn(column.key, 'up') }}\n\t\t\t\t\t\t\t\t\t\t\t_disabled={index === 0}\n\t\t\t\t\t\t\t\t\t\t\tdata-testid=\"table-settings-move-up\"\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t<KolButtonWcTag\n\t\t\t\t\t\t\t\t\t\t\t_icons=\"codicon codicon-arrow-down\"\n\t\t\t\t\t\t\t\t\t\t\t_label={translate('kol-table-settings-move-down', { placeholders: { column: column.label } })}\n\t\t\t\t\t\t\t\t\t\t\t_hideLabel\n\t\t\t\t\t\t\t\t\t\t\t_buttonVariant=\"ghost\"\n\t\t\t\t\t\t\t\t\t\t\t_on={{ onClick: () => this.moveColumn(column.key, 'down') }}\n\t\t\t\t\t\t\t\t\t\t\t_disabled={index === sortedColumns.length - 1}\n\t\t\t\t\t\t\t\t\t\t\tdata-testid=\"table-settings-move-down\"\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class=\"kol-table-settings__actions\">\n\t\t\t\t\t\t\t<KolButtonWcTag\n\t\t\t\t\t\t\t\t_label={translate('kol-table-settings-cancel')}\n\t\t\t\t\t\t\t\t_buttonVariant=\"secondary\"\n\t\t\t\t\t\t\t\t_on={{ onClick: () => this.handleCancel() }}\n\t\t\t\t\t\t\t\tdata-testid=\"table-settings-cancel\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<KolButtonWcTag _label={translate('kol-table-settings-apply')} _buttonVariant=\"primary\" _type=\"submit\" data-testid=\"table-settings-apply\" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</form>\n\t\t\t\t</div>\n\t\t\t</KolPopoverButtonWcTag>\n\t\t);\n\t}\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as registerInstance,h,H as Host,g as getElement}from"./index-831675d2.js";import{l as KolPaginationTag,m as KolTableStatelessWcTag}from"./component-names-799e91e2.js";import{t as translate}from"./i18n-01abf777.js";import{w as watchValidator,k as setState,M as emptyStringByArrayHandler,A as watchString,j as parseJson,o as objectObjectHandler,D as devHint}from"./index-88dea7b1.js";import{C as Callback}from"./keyboard-2483c6de.js";import{K as KolEvent,d as dispatchDomEvent}from"./events-5886c68b.js";import{v as validateTableData,a as validateTableDataFoot,b as validateTableSelection,c as validateTableStatefulCallbacks,d as validateTableSettings}from"./table-settings-b08f49c1.js";import{v as validateLabel}from"./label-5982d241.js";import"./i18n-45224cc3.js";const paginationPositionPropTypeOptions=["top","bottom","both"],validatePaginationPosition=(t,n)=>{watchValidator(t,"_paginationPosition",(t=>"string"==typeof t&&paginationPositionPropTypeOptions.includes(t)),new Set([`PaginationPositionPropType {${paginationPositionPropTypeOptions.join(", ")}`]),n,{defaultValue:"bottom"})},defaultStyleCss="@charset \"UTF-8\";\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]) {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n }\n}\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n background-color: lightgray;\n color: black;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: grid;\n place-items: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n .kol-tooltip__arrow {\n background-color: #fff;\n color: #000;\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip__content {\n background-color: #fff;\n color: #000;\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-alert {\n display: grid;\n }\n .kol-alert__container {\n place-items: center;\n display: flex;\n }\n .kol-alert__container-content {\n flex-grow: 1;\n }\n .kol-alert__closer {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n :host {\n display: inline-block;\n }\n .kol-button {\n font-style: calc(16rem / var(--kolibri-root-font-size, 16));\n display: inline-flex;\n place-items: center;\n text-align: center;\n text-decoration-line: none;\n }\n .kol-button::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: \"​\";\n }\n .kol-button__text {\n margin: auto;\n width: 100%;\n }\n}\n@layer kol-component {\n .kol-popover-button__button {\n display: inline-block;\n }\n .kol-popover-button__popover {\n border: 1px solid #000;\n margin: 0;\n padding: 0;\n }\n}\n@layer kol-component {\n .kol-table-settings {\n background: #fff;\n position: absolute;\n right: 0;\n top: 0;\n z-index: 1;\n }\n .kol-table-settings__columns-container {\n margin-top: calc(16rem / var(--kolibri-root-font-size, 16));\n max-height: calc(200rem / var(--kolibri-root-font-size, 16));\n overflow: auto;\n }\n .kol-table-settings__columns {\n align-items: center;\n display: grid;\n gap: calc(8rem / var(--kolibri-root-font-size, 16));\n grid-auto-rows: min-content;\n grid-template-columns: min-content 1fr calc(100rem / var(--kolibri-root-font-size, 16)) auto auto;\n overflow: hidden;\n }\n .kol-table-settings__column {\n display: contents;\n }\n}\n@layer kol-component {\n .kol-table {\n display: block;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n max-width: 100%;\n position: relative;\n }\n .kol-table__scroll-container {\n overflow-x: auto;\n overflow-y: hidden;\n }\n .kol-table__table {\n width: 100%;\n }\n .kol-table__caption {\n text-align: start;\n min-height: var(--a11y-min-size);\n padding-right: var(--a11y-min-size);\n }\n .kol-table__focus-element {\n font-size: 0;\n }\n .kol-table__focus-element:focus {\n outline: 0 !important;\n /* @see https://remysharp.com/til/css/focus-ring-default-styles */\n outline: 5px auto Highlight;\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: 2px;\n }\n .kol-table__sort-button .kol-button {\n color: inherit;\n }\n .kol-table__body {\n text-align: left;\n }\n .kol-table__body .kol-button__text {\n justify-items: start;\n }\n .kol-table__cell--align-left {\n text-align: left;\n }\n .kol-table__cell--align-left .kol-button__text {\n justify-items: start;\n }\n .kol-table__cell--align-center {\n text-align: center;\n }\n .kol-table__cell--align-center .kol-button__text {\n justify-items: center;\n }\n .kol-table__cell--align-right {\n text-align: right;\n }\n .kol-table__cell--align-right .kol-button__text {\n justify-items: end;\n }\n .kol-table__cell--selection {\n width: var(--a11y-min-size);\n height: var(--a11y-min-size);\n white-space: nowrap;\n }\n .kol-table__spacer {\n display: none;\n }\n .kol-table__selection-label {\n align-items: center;\n cursor: pointer;\n display: flex;\n height: var(--a11y-min-size);\n justify-content: center;\n position: relative;\n width: var(--a11y-min-size);\n }\n .kol-table__selection-label--disabled {\n cursor: not-allowed;\n }\n .kol-table__selection-icon {\n display: block;\n inset: auto;\n position: absolute;\n z-index: 1;\n }\n .kol-table__selection-input {\n appearance: none;\n border-style: solid;\n cursor: pointer;\n margin: 0;\n }\n .kol-table__selection-input:disabled {\n cursor: not-allowed;\n }\n .kol-table__selection-input:before {\n content: \"\";\n }\n .kol-table__selection-input--checkbox {\n position: relative;\n display: flex;\n height: calc(var(--a11y-min-size) / 2);\n width: calc(var(--a11y-min-size) / 2);\n align-items: center;\n justify-content: center;\n background-color: rgb(255, 255, 255);\n border-width: 2px;\n line-height: 1.5;\n transition: all 0.5s ease 0s;\n }\n .kol-table__selection-input--radio {\n display: flex;\n border-width: 2px;\n border-radius: 100%;\n height: 1.5em;\n min-height: 1.5em;\n min-width: 1.5em;\n padding: 0;\n width: 1.5em;\n }\n .kol-table__selection-input--radio:before {\n border-radius: 100%;\n margin: auto;\n height: 0.75em;\n width: 0.75em;\n }\n .kol-table__selection-input--radio:checked:before {\n background-color: #000;\n }\n @media (forced-colors: active) {\n .kol-table__selection-input--radio:checked:before {\n /* Give it a visible background in forced colors mode */\n background-color: selectedItem !important;\n }\n }\n}\n@layer kol-component {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-table-stateful__pagination, .kol-table-stateful__pagination-wrapper {\n display: grid;\n place-items: center;\n }\n @media (min-width: 1024px) {\n .kol-table-stateful__pagination, .kol-table-stateful__pagination-wrapper {\n grid-auto-flow: column;\n }\n }\n .kol-pagination {\n display: flex;\n flex-wrap: wrap;\n }\n @media (min-width: 1024px) {\n .kol-pagination {\n display: flex;\n }\n }\n @media (max-width: 1024px) {\n .kol-pagination {\n flex-direction: column;\n }\n }\n}",KolTableStatefulDefaultStyle0=defaultStyleCss,PAGINATION_OPTIONS=[10,20,50,100],paginationValidator=t=>!0===t||""===t||"object"==typeof t&&null!==t,KolTableStateful=class{constructor(t){registerInstance(this,t),this.catchRef=t=>{this.tableWcRef=t},this.sortData=[],this.showPagination=!1,this.pageStartSlice=0,this.pageEndSlice=10,this.disableSort=!1,this.handlePagination={onClick:(t,n)=>{var e;"function"==typeof(null===(e=this.state._pagination._on)||void 0===e?void 0:e.onClick)&&this.state._pagination._on.onClick(t,n),setState(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_page:n}))},onChangePage:(t,n)=>{var e;"function"==typeof(null===(e=this.state._pagination._on)||void 0===e?void 0:e.onChangePage)&&this.state._pagination._on.onChangePage(t,n),setState(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_page:n}))},onChangePageSize:(t,n)=>{var e;"function"==typeof(null===(e=this.state._pagination._on)||void 0===e?void 0:e.onChangePageSize)&&this.state._pagination._on.onChangePageSize(t,n),setState(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_pageSize:n})),setState(this,"_pageSize",n)}},this.onSelectionChange=t=>{t.stopPropagation()},this.updateSortedData=()=>{if(this.disableSort)return void setState(this,"_sortedData",this.state._data);const t=[...this.state._data];this.sortData.length>0&&t.sort(((t,n)=>{for(let e=0;e<this.sortData.length;e++){const a=this.sortData[e],i=a.compareFn(t,n);if(0!==i)return"ASC"===a.direction?i:-i}return 0})),setState(this,"_sortedData",t)},this._allowMultiSort=void 0,this._data=void 0,this._dataFoot=void 0,this._headers=void 0,this._label=void 0,this._minWidth=void 0,this._pagination=void 0,this._paginationPosition="bottom",this._selection=void 0,this._on=void 0,this._tableSettings=void 0,this.state={_allowMultiSort:!1,_data:[],_dataFoot:[],_headers:{horizontal:[],vertical:[]},_label:"",_minWidth:"auto",_pagination:{_page:1,_pageSize:10,_max:0},_sortedData:[],_paginationPosition:"bottom"}}validateAllowMultiSort(t){watchValidator(this,"_allowMultiSort",(()=>!0),new Set(["boolean"]),t,{defaultValue:!1})}validateData(t){validateTableData(this,t,{afterPatch:()=>{setTimeout(this.updateSortedData)}})}validateDataFoot(t){validateTableDataFoot(this,t,{afterPatch:()=>{setTimeout(this.updateSortedData)}})}validatePaginationPosition(t){validatePaginationPosition(this,t)}changeCellSort(t){var n;if("function"==typeof t.compareFn){this.state._allowMultiSort||t.key==(null===(n=this.sortData[0])||void 0===n?void 0:n.key)||(this.sortData=[]);const e=this.sortData.findIndex((n=>n.key===t.key));if(e>=0){const t=this.sortData[e];switch(t.direction){case"ASC":t.direction="DESC";break;case"DESC":this.sortData.splice(e,1);break;default:t.direction="ASC"}}else t.key&&this.sortData.push({label:t.label,key:t.key,compareFn:t.compareFn,direction:"ASC"});this.updateSortedData()}}validateHeaders(t){emptyStringByArrayHandler(t,(()=>{objectObjectHandler(t,(()=>{try{t=parseJson(t)}catch(t){}watchValidator(this,"_headers",(t=>"object"==typeof t&&null!==t),new Set(["KoliBriTableHeaders"]),t,{hooks:{beforePatch:t=>{var n,e,a,i;const o=t=>{let n=!1;t.forEach((t=>{const e=t.key;if(!e)return;const a=t.sortDirection;"ASC"!==a&&"DESC"!==a||"function"==typeof t.compareFn&&((this.state._allowMultiSort||0===this.sortData.length)&&this.sortData.push({label:t.label,key:e,compareFn:t.compareFn,direction:a}),n=!0)})),n&&setTimeout((()=>this.updateSortedData()))},l=t;null===(n=l.horizontal)||void 0===n||n.forEach(o),null===(e=l.vertical)||void 0===e||e.forEach(o),l.horizontal&&l.vertical&&(null===(a=l.horizontal)||void 0===a?void 0:a.length)>0&&(null===(i=l.vertical)||void 0===i?void 0:i.length)>0&&(this.disableSort=!0,devHint("Table: You can not sort the table data, if horizontal and vertical headers are defined at the same time. (https://github.com/public-ui/kolibri/issues/2372)"))}}})}))}))}validateLabel(t){validateLabel(this,t,{required:!0})}validateMinWidth(t){watchString(this,"_minWidth",t,{defaultValue:void 0})}validateSelection(t){validateTableSelection(this,t)}validateOn(t){validateTableStatefulCallbacks(this,t)}validateTableSettings(t){validateTableSettings(this,t)}validatePagination(t){try{t=parseJson(t)}catch(t){}this.showPagination=paginationValidator(t),watchValidator(this,"_pagination",paginationValidator,new Set(["boolean","KoliBriTablePagination"]),t,{defaultValue:{_page:1,_pageSize:10,_max:0}})}componentDidLoad(){var t;null===(t=this.tableWcRef)||void 0===t||t.addEventListener(KolEvent.selectionChange,this.onSelectionChange)}disconnectedCallback(){var t;null===(t=this.tableWcRef)||void 0===t||t.removeEventListener(KolEvent.selectionChange,this.onSelectionChange)}componentWillLoad(){this.validateAllowMultiSort(this._allowMultiSort),this.validateData(this._data),this.validateDataFoot(this._dataFoot),this.validateHeaders(this._headers),this.validateLabel(this._label),this.validateMinWidth(this._minWidth),this.validateOn(this._on),this.validatePagination(this._pagination),this.validatePaginationPosition(this._paginationPosition),this.validateSelection(this._selection),this.validateTableSettings(this._tableSettings)}selectDisplayedData(t,n,e){return"number"==typeof n&&n>0&&"number"==typeof e&&e>0?(this.pageStartSlice=n*(e-1),this.pageEndSlice=n*e>t.length?t.length:n*e,t.slice(this.pageStartSlice,this.pageEndSlice)):(this.pageStartSlice=0,this.pageEndSlice=t.length,t)}renderPagination(t){const n=translate("kol-table-pagination-label",{placeholders:{label:`${this.state._label} (${translate(`kol-pagination-position-${t}`)})`}});return h("div",{class:`kol-table-stateful__pagination kol-table-stateful__pagination--${this.state._paginationPosition}`},h("span",null,translate("kol-table-visible-range",{placeholders:{start:this.pageEndSlice>0?(this.pageStartSlice+1).toString():"0",end:this.pageEndSlice.toString(),total:this.state._pagination&&this.state._pagination._max>0?this.state._pagination._max.toString():Array.isArray(this.state._data)?this.state._data.length.toString():"0"}})),h("div",{class:"kol-table-stateful__pagination-wrapper"},h(KolPaginationTag,{class:"test",_boundaryCount:this.state._pagination._boundaryCount,_customClass:this.state._pagination._customClass,_on:this.handlePagination,_page:this.state._pagination._page,_pageSize:this.state._pagination._pageSize,_pageSizeOptions:this.state._pagination._pageSizeOptions||PAGINATION_OPTIONS,_siblingCount:this.state._pagination._siblingCount,_tooltipAlign:"bottom",_max:this.state._pagination._max||this.state._pagination._max||this.state._data.length,_label:n})))}getHeaderCellSortState(t){if(!this.disableSort&&"function"==typeof t.compareFn){if(t.key){const n=this.sortData.find((n=>n.key===t.key));if(null==n?void 0:n.direction)return n.direction}return"NOS"}}handleSort({key:t}){const n=[...(this.state._headers.horizontal||[]).flat(),...(this.state._headers.vertical||[]).flat()].find((n=>n.key===t));n&&this.changeCellSort(n)}getSelectedData(t){var n;const e=this.state._selection;if(e){const a=null!==(n=e.keyPropertyName)&&void 0!==n?n:"id",i=this.state._sortedData.filter((n=>t.includes(n[a])));if(!1===(null==e?void 0:e.multiple))return i[0];if(a)return i}return null}handleSelectionChange(t,n){var e;const a=this.state._selection;a&&(this.state=Object.assign(Object.assign({},this.state),{_selection:Object.assign(Object.assign({},a),{selectedKeys:"object"==typeof n?n:[n]})}));const i=this.getSelectedData(n);"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e[Callback.onSelectionChange])&&this.state._on[Callback.onSelectionChange](t,i),this.host&&dispatchDomEvent(this.host,KolEvent.selectionChange,i)}async getSelection(){var t;const n=(null===(t=this.state._selection)||void 0===t?void 0:t.selectedKeys)||[];return this.getSelectedData(n)}render(){var t,n,e,a,i,o;const l=this.selectDisplayedData(this.state._sortedData,this.showPagination?null!==(n=null===(t=this.state._pagination)||void 0===t?void 0:t._pageSize)&&void 0!==n?n:10:this.state._sortedData.length,this.state._pagination._page||1),s="top"===this._paginationPosition||"both"===this._paginationPosition?this.renderPagination("top"):null,r="bottom"===this._paginationPosition||"both"===this._paginationPosition?this.renderPagination("bottom"):null,d={horizontal:null!==(a=null===(e=this.state._headers.horizontal)||void 0===e?void 0:e.map((t=>t.map((t=>Object.assign(Object.assign({},t),{sortDirection:this.getHeaderCellSortState(t)}))))))&&void 0!==a?a:[],vertical:null!==(o=null===(i=this.state._headers.vertical)||void 0===i?void 0:i.map((t=>t.map((t=>Object.assign(Object.assign({},t),{sortDirection:this.getHeaderCellSortState(t)}))))))&&void 0!==o?o:[]};return h(Host,{key:"28ef6723c730e6f9a52694c65b984b27b97bbe43",class:"kol-table-stateful"},this.pageEndSlice>0&&this.showPagination&&s,h(KolTableStatelessWcTag,{key:"78fcf96661bd3e57bc41fbc3523096e7de513eeb",ref:this.catchRef,_data:l,_headerCells:d,_label:this.state._label,_dataFoot:this.state._dataFoot,_minWidth:this.state._minWidth,_on:{onSort:(t,n)=>{this.handleSort(n)},onSelectionChange:(t,n)=>{this.handleSelectionChange(t,n)}},_selection:this.state._selection,_tableSettings:this.state._tableSettings}),this.pageEndSlice>0&&this.showPagination&&r)}get host(){return getElement(this)}static get watchers(){return{_allowMultiSort:["validateAllowMultiSort"],_data:["validateData"],_dataFoot:["validateDataFoot"],_paginationPosition:["validatePaginationPosition"],_headers:["validateHeaders"],_label:["validateLabel"],_minWidth:["validateMinWidth"],_selection:["validateSelection"],_on:["validateOn"],_tableSettings:["validateTableSettings"],_pagination:["validatePagination"]}}};KolTableStateful.style={default:KolTableStatefulDefaultStyle0};export{KolTableStateful as kol_table_stateful};
4
+ import{r as registerInstance,h,H as Host,g as getElement}from"./index-aa2635d0.js";import{i as KolPaginationWcTag,m as KolTableStatelessWcTag}from"./component-names-0657b355.js";import{t as translate}from"./i18n-260f0fe9.js";import{w as watchValidator,l as setState,M as emptyStringByArrayHandler,B as watchString,k as parseJson,o as objectObjectHandler,D as devHint}from"./index-ebe5a881.js";import{C as Callback}from"./keyboard-2483c6de.js";import{K as KolEvent,d as dispatchDomEvent}from"./events-bad0a075.js";import{v as validateTableData,a as validateTableDataFoot,b as validateTableSelection,c as validateTableStatefulCallbacks,d as validateTableSettings}from"./table-settings-c12356ed.js";import{v as validateLabel}from"./label-bf9966d0.js";import"./i18n-45224cc3.js";const paginationPositionPropTypeOptions=["top","bottom","both"],validatePaginationPosition=(t,n)=>{watchValidator(t,"_paginationPosition",(t=>"string"==typeof t&&paginationPositionPropTypeOptions.includes(t)),new Set([`PaginationPositionPropType {${paginationPositionPropTypeOptions.join(", ")}`]),n,{defaultValue:"bottom"})},defaultStyleCss='@charset "UTF-8";\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\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 * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type=\'checkbox\'], [type=\'radio\'], [type=\'range\']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n }\n}\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don\'t want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n background-color: lightgray;\n color: black;\n }\n}\n@layer kol-global {\n :host {\n font-size: rem(16);\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: grid;\n place-items: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n .kol-tooltip__arrow {\n background-color: #fff;\n color: #000;\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip__content {\n background-color: #fff;\n color: #000;\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-alert {\n display: grid;\n }\n .kol-alert__container {\n place-items: center;\n display: flex;\n }\n .kol-alert__container-content {\n flex-grow: 1;\n }\n .kol-alert__closer {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n :host {\n display: inline-block;\n }\n .kol-button {\n font-style: calc(16rem / var(--kolibri-root-font-size, 16));\n display: inline-flex;\n place-items: center;\n text-align: center;\n text-decoration-line: none;\n }\n .kol-button::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: "​";\n }\n .kol-button__text {\n margin: auto;\n width: 100%;\n }\n}\n@layer kol-component {\n .kol-popover-button__button {\n display: inline-block;\n }\n .kol-popover-button__popover {\n border: 0;\n margin: 0;\n padding: 0;\n }\n}\n@layer kol-component {\n .kol-table-settings {\n background: #fff;\n position: absolute;\n right: 0;\n top: 0;\n z-index: 1;\n }\n .kol-table-settings__columns-container {\n margin-top: calc(16rem / var(--kolibri-root-font-size, 16));\n max-height: calc(200rem / var(--kolibri-root-font-size, 16));\n overflow: auto;\n }\n .kol-table-settings__columns {\n align-items: center;\n display: grid;\n gap: calc(8rem / var(--kolibri-root-font-size, 16));\n grid-auto-rows: min-content;\n grid-template-columns: min-content 1fr calc(100rem / var(--kolibri-root-font-size, 16)) auto auto;\n overflow: hidden;\n }\n .kol-table-settings__column {\n display: contents;\n }\n}\n@layer kol-component {\n .kol-table {\n display: block;\n max-width: 100%;\n position: relative;\n }\n .kol-table__scroll-container {\n overflow-x: auto;\n overflow-y: hidden;\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__table {\n width: 100%;\n }\n .kol-table__caption {\n text-align: start;\n min-height: var(--a11y-min-size);\n padding-right: var(--a11y-min-size);\n }\n .kol-table__focus-element {\n font-size: 0;\n }\n .kol-table__sort-button .kol-button {\n color: inherit;\n }\n .kol-table__body {\n text-align: left;\n }\n .kol-table__body .kol-button__text {\n justify-items: start;\n }\n .kol-table__cell--align-left {\n text-align: left;\n }\n .kol-table__cell--align-left .kol-button__text {\n justify-items: start;\n }\n .kol-table__cell--align-center {\n text-align: center;\n }\n .kol-table__cell--align-center .kol-button__text {\n justify-items: center;\n }\n .kol-table__cell--align-right {\n text-align: right;\n }\n .kol-table__cell--align-right .kol-button__text {\n justify-items: end;\n }\n .kol-table__cell--selection {\n width: var(--a11y-min-size);\n height: var(--a11y-min-size);\n white-space: nowrap;\n }\n .kol-table__spacer {\n display: none;\n }\n .kol-table__selection-label {\n align-items: center;\n cursor: pointer;\n display: flex;\n height: var(--a11y-min-size);\n justify-content: center;\n position: relative;\n width: var(--a11y-min-size);\n }\n .kol-table__selection-label--disabled {\n cursor: not-allowed;\n }\n .kol-table__selection-icon {\n display: block;\n inset: auto;\n position: absolute;\n z-index: 1;\n }\n .kol-table__selection-input {\n appearance: none;\n border-style: solid;\n cursor: pointer;\n margin: 0;\n }\n .kol-table__selection-input:disabled {\n cursor: not-allowed;\n }\n .kol-table__selection-input:before {\n content: "";\n }\n .kol-table__selection-input--checkbox {\n position: relative;\n display: flex;\n height: calc(var(--a11y-min-size) / 2);\n width: calc(var(--a11y-min-size) / 2);\n align-items: center;\n justify-content: center;\n background-color: rgb(255, 255, 255);\n border-width: 2px;\n line-height: 1.5;\n transition: all 0.5s ease 0s;\n }\n .kol-table__selection-input--radio {\n display: flex;\n border-width: 2px;\n border-radius: 100%;\n height: 1.5em;\n min-height: 1.5em;\n min-width: 1.5em;\n padding: 0;\n width: 1.5em;\n }\n .kol-table__selection-input--radio:before {\n border-radius: 100%;\n margin: auto;\n height: 0.75em;\n width: 0.75em;\n }\n .kol-table__selection-input--radio:checked:before {\n background-color: #000;\n }\n @media (forced-colors: active) {\n .kol-table__selection-input--radio:checked:before {\n /* Give it a visible background in forced colors mode */\n background-color: selectedItem !important;\n }\n }\n}\n@layer kol-component {\n .kol-pagination {\n align-items: center;\n display: grid;\n gap: calc(16rem / var(--kolibri-root-font-size, 16));\n grid-template-columns: 1fr auto;\n }\n .kol-pagination__navigation-list {\n align-items: center;\n display: inline-flex;\n flex-wrap: wrap;\n gap: 0.5em;\n list-style: none;\n margin: 0;\n padding: 0;\n }\n .kol-pagination__separator:before {\n content: "•••";\n }\n}\n@layer kol-component {\n .kol-table-stateful__pagination, .kol-table-stateful__pagination-wrapper {\n display: grid;\n place-items: center;\n }\n @media (min-width: 1024px) {\n .kol-table-stateful__pagination, .kol-table-stateful__pagination-wrapper {\n grid-auto-flow: column;\n }\n }\n .kol-pagination {\n display: flex;\n flex-wrap: wrap;\n }\n @media (min-width: 1024px) {\n .kol-pagination {\n display: flex;\n }\n }\n @media (max-width: 1024px) {\n .kol-pagination {\n flex-direction: column;\n }\n }\n}',KolTableStatefulDefaultStyle0=defaultStyleCss,PAGINATION_OPTIONS=[10,20,50,100],paginationValidator=t=>!0===t||""===t||"object"==typeof t&&null!==t,KolTableStateful=class{constructor(t){registerInstance(this,t),this.catchRef=t=>{this.tableWcRef=t},this.sortData=[],this.showPagination=!1,this.pageStartSlice=0,this.pageEndSlice=10,this.disableSort=!1,this.handlePagination={onClick:(t,n)=>{var e;"function"==typeof(null===(e=this.state._pagination._on)||void 0===e?void 0:e.onClick)&&this.state._pagination._on.onClick(t,n),setState(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_page:n}))},onChangePage:(t,n)=>{var e;"function"==typeof(null===(e=this.state._pagination._on)||void 0===e?void 0:e.onChangePage)&&this.state._pagination._on.onChangePage(t,n),setState(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_page:n}))},onChangePageSize:(t,n)=>{var e;"function"==typeof(null===(e=this.state._pagination._on)||void 0===e?void 0:e.onChangePageSize)&&this.state._pagination._on.onChangePageSize(t,n),setState(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_pageSize:n})),setState(this,"_pageSize",n)}},this.onSelectionChange=t=>{t.stopPropagation()},this.updateSortedData=()=>{if(this.disableSort)return void setState(this,"_sortedData",this.state._data);const t=[...this.state._data];this.sortData.length>0&&t.sort(((t,n)=>{for(let e=0;e<this.sortData.length;e++){const a=this.sortData[e],i=a.compareFn(t,n);if(0!==i)return"ASC"===a.direction?i:-i}return 0})),setState(this,"_sortedData",t)},this._allowMultiSort=void 0,this._data=void 0,this._dataFoot=void 0,this._headers=void 0,this._label=void 0,this._minWidth=void 0,this._pagination=void 0,this._paginationPosition="bottom",this._selection=void 0,this._on=void 0,this._tableSettings=void 0,this.state={_allowMultiSort:!1,_data:[],_dataFoot:[],_headers:{horizontal:[],vertical:[]},_label:"",_minWidth:"auto",_pagination:{_page:1,_pageSize:10,_max:0},_sortedData:[],_paginationPosition:"bottom"}}validateAllowMultiSort(t){watchValidator(this,"_allowMultiSort",(()=>!0),new Set(["boolean"]),t,{defaultValue:!1})}validateData(t){validateTableData(this,t,{afterPatch:()=>{setTimeout(this.updateSortedData)}})}validateDataFoot(t){validateTableDataFoot(this,t,{afterPatch:()=>{setTimeout(this.updateSortedData)}})}validatePaginationPosition(t){validatePaginationPosition(this,t)}changeCellSort(t){var n;if("function"==typeof t.compareFn){this.state._allowMultiSort||t.key===(null===(n=this.sortData[0])||void 0===n?void 0:n.key)||(this.sortData=[]);const e=this.sortData.findIndex((n=>n.key===t.key));if(e>=0){const t=this.sortData[e];switch(t.direction){case"ASC":t.direction="DESC";break;case"DESC":this.sortData.splice(e,1);break;default:t.direction="ASC"}}else t.key&&this.sortData.push({label:t.label,key:t.key,compareFn:t.compareFn,direction:"ASC"});this.updateSortedData()}}validateHeaders(t){emptyStringByArrayHandler(t,(()=>{objectObjectHandler(t,(()=>{try{t=parseJson(t)}catch(t){}watchValidator(this,"_headers",(t=>"object"==typeof t&&null!==t),new Set(["KoliBriTableHeaders"]),t,{hooks:{beforePatch:t=>{var n,e,a,i;const o=t=>{let n=!1;t.forEach((t=>{const e=t.key;if(!e)return;const a=t.sortDirection;"ASC"!==a&&"DESC"!==a||"function"==typeof t.compareFn&&((this.state._allowMultiSort||0===this.sortData.length)&&this.sortData.push({label:t.label,key:e,compareFn:t.compareFn,direction:a}),n=!0)})),n&&setTimeout((()=>this.updateSortedData()))},l=t;null===(n=l.horizontal)||void 0===n||n.forEach(o),null===(e=l.vertical)||void 0===e||e.forEach(o),l.horizontal&&l.vertical&&(null===(a=l.horizontal)||void 0===a?void 0:a.length)>0&&(null===(i=l.vertical)||void 0===i?void 0:i.length)>0&&(this.disableSort=!0,devHint("Table: You can not sort the table data, if horizontal and vertical headers are defined at the same time. (https://github.com/public-ui/kolibri/issues/2372)"))}}})}))}))}validateLabel(t){validateLabel(this,t,{required:!0})}validateMinWidth(t){watchString(this,"_minWidth",t,{defaultValue:void 0})}validateSelection(t){validateTableSelection(this,t)}validateOn(t){validateTableStatefulCallbacks(this,t)}validateTableSettings(t){validateTableSettings(this,t)}validatePagination(t){try{t=parseJson(t)}catch(t){}this.showPagination=paginationValidator(t),watchValidator(this,"_pagination",paginationValidator,new Set(["boolean","KoliBriTablePagination"]),t,{defaultValue:{_page:1,_pageSize:10,_max:0}})}componentDidLoad(){var t;null===(t=this.tableWcRef)||void 0===t||t.addEventListener(KolEvent.selectionChange,this.onSelectionChange)}disconnectedCallback(){var t;null===(t=this.tableWcRef)||void 0===t||t.removeEventListener(KolEvent.selectionChange,this.onSelectionChange)}componentWillLoad(){this.validateAllowMultiSort(this._allowMultiSort),this.validateData(this._data),this.validateDataFoot(this._dataFoot),this.validateHeaders(this._headers),this.validateLabel(this._label),this.validateMinWidth(this._minWidth),this.validateOn(this._on),this.validatePagination(this._pagination),this.validatePaginationPosition(this._paginationPosition),this.validateSelection(this._selection),this.validateTableSettings(this._tableSettings)}selectDisplayedData(t,n,e){return"number"==typeof n&&n>0&&"number"==typeof e&&e>0?(this.pageStartSlice=n*(e-1),this.pageEndSlice=n*e>t.length?t.length:n*e,t.slice(this.pageStartSlice,this.pageEndSlice)):(this.pageStartSlice=0,this.pageEndSlice=t.length,t)}renderPagination(t){const n=translate("kol-table-pagination-label",{placeholders:{label:`${this.state._label} (${translate(`kol-pagination-position-${t}`)})`}});return h("div",{class:`kol-table-stateful__pagination kol-table-stateful__pagination--${this.state._paginationPosition}`},h("span",null,translate("kol-table-visible-range",{placeholders:{start:this.pageEndSlice>0?(this.pageStartSlice+1).toString():"0",end:this.pageEndSlice.toString(),total:this.state._pagination&&this.state._pagination._max>0?this.state._pagination._max.toString():Array.isArray(this.state._data)?this.state._data.length.toString():"0"}})),h("div",{class:"kol-table-stateful__pagination-wrapper"},h(KolPaginationWcTag,{class:"test",_boundaryCount:this.state._pagination._boundaryCount,_customClass:this.state._pagination._customClass,_on:this.handlePagination,_page:this.state._pagination._page,_pageSize:this.state._pagination._pageSize,_pageSizeOptions:this.state._pagination._pageSizeOptions||PAGINATION_OPTIONS,_siblingCount:this.state._pagination._siblingCount,_tooltipAlign:"bottom",_max:this.state._pagination._max||this.state._pagination._max||this.state._data.length,_label:n})))}getHeaderCellSortState(t){if(!this.disableSort&&"function"==typeof t.compareFn){if(t.key){const n=this.sortData.find((n=>n.key===t.key));if(null==n?void 0:n.direction)return n.direction}return"NOS"}}handleSort({key:t}){const n=[...(this.state._headers.horizontal||[]).flat(),...(this.state._headers.vertical||[]).flat()].find((n=>n.key===t));n&&this.changeCellSort(n)}getSelectedData(t){var n;const e=this.state._selection;if(e){const a=null!==(n=e.keyPropertyName)&&void 0!==n?n:"id",i=this.state._sortedData.filter((n=>t.includes(n[a])));if(!1===(null==e?void 0:e.multiple))return i[0];if(a)return i}return null}handleSelectionChange(t,n){var e;const a=this.state._selection;a&&(this.state=Object.assign(Object.assign({},this.state),{_selection:Object.assign(Object.assign({},a),{selectedKeys:"object"==typeof n?n:[n]})}));const i=this.getSelectedData(n);"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e[Callback.onSelectionChange])&&this.state._on[Callback.onSelectionChange](t,i),this.host&&dispatchDomEvent(this.host,KolEvent.selectionChange,i)}async getSelection(){var t;const n=(null===(t=this.state._selection)||void 0===t?void 0:t.selectedKeys)||[];return this.getSelectedData(n)}render(){var t,n,e,a,i,o;const l=this.selectDisplayedData(this.state._sortedData,this.showPagination?null!==(n=null===(t=this.state._pagination)||void 0===t?void 0:t._pageSize)&&void 0!==n?n:10:this.state._sortedData.length,this.state._pagination._page||1),s="top"===this._paginationPosition||"both"===this._paginationPosition?this.renderPagination("top"):null,r="bottom"===this._paginationPosition||"both"===this._paginationPosition?this.renderPagination("bottom"):null,d={horizontal:null!==(a=null===(e=this.state._headers.horizontal)||void 0===e?void 0:e.map((t=>t.map((t=>Object.assign(Object.assign({},t),{sortDirection:this.getHeaderCellSortState(t)}))))))&&void 0!==a?a:[],vertical:null!==(o=null===(i=this.state._headers.vertical)||void 0===i?void 0:i.map((t=>t.map((t=>Object.assign(Object.assign({},t),{sortDirection:this.getHeaderCellSortState(t)}))))))&&void 0!==o?o:[]};return h(Host,{key:"ae9fe552c93f1ef8273be72a54865e524abc550d",class:"kol-table-stateful"},this.pageEndSlice>0&&this.showPagination&&s,h(KolTableStatelessWcTag,{key:"4409842d643b60aa5a19e31394e7ec40823d10e8",ref:this.catchRef,_data:l,_headerCells:d,_label:this.state._label,_dataFoot:this.state._dataFoot,_minWidth:this.state._minWidth,_on:{onSort:(t,n)=>{this.handleSort(n)},onSelectionChange:(t,n)=>{this.handleSelectionChange(t,n)}},_selection:this.state._selection,_tableSettings:this.state._tableSettings}),this.pageEndSlice>0&&this.showPagination&&r)}get host(){return getElement(this)}static get watchers(){return{_allowMultiSort:["validateAllowMultiSort"],_data:["validateData"],_dataFoot:["validateDataFoot"],_paginationPosition:["validatePaginationPosition"],_headers:["validateHeaders"],_label:["validateLabel"],_minWidth:["validateMinWidth"],_selection:["validateSelection"],_on:["validateOn"],_tableSettings:["validateTableSettings"],_pagination:["validatePagination"]}}};KolTableStateful.style={default:KolTableStatefulDefaultStyle0};export{KolTableStateful as kol_table_stateful};
@@ -1 +1 @@
1
- {"file":"kol-table-stateful.entry.js","mappings":";;;;;;;;;;;;;AAIA,MAAM,iCAAiC,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAU,CAAC;AAWtE,MAAM,0BAA0B,GAAG,CAAC,SAAoC,EAAE,KAAkC;IAClH,cAAc,CACb,SAAS,EACT,qBAAqB,EACrB,CAAC,KAAK,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,iCAAiC,CAAC,QAAQ,CAAC,KAAK,CAAC,EACzF,IAAI,GAAG,CAAC,CAAC,+BAA+B,iCAAiC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,EACxF,KAAK,EACL;QACC,YAAY,EAAE,QAAQ;KACtB,CACD,CAAC;AACH,CAAC;;AC1BD,MAAM,eAAe,GAAG,68VAA68V,CAAC;AACt+V,sCAAe,eAAe;;AC6C9B,MAAM,kBAAkB,GAAG,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC;AAE7C,MAAM,mBAAmB,GAAG,CAAC,KAAc,KAAK,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,EAAE,KAAgB,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC;MAgB9H,gBAAgB;;;QAIX,aAAQ,GAAG,CAAC,GAAoC;YAChE,IAAI,CAAC,UAAU,GAAG,GAAG,CAAC;S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AAA,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,QAAQ,0CAAE,GAAG,CAAC,CAAC,MAAM,KAAK,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,sCAAW,IAAI,KAAE,aAAa,EAAE,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,IAAG,CAAC,CAAC,mCAAI,EAAE;SACpJ,CAAC;QACF,QACC,EAAC,IAAI,qDAAC,KAAK,EAAC,oBAAoB,IAC9B,IAAI,CAAC,YAAY,GAAG,CAAC,IAAI,IAAI,CAAC,cAAc,IAAI,aAAa,EAC9D,EAAC,sBAAsB,qDACtB,GAAG,EAAE,IAAI,CAAC,QAAQ,EAClB,KAAK,EAAE,aAAa,EACpB,YAAY,EAAE,WAAW,EACzB,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,EACzB,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,EAC/B,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,EAC/B,GAAG,EAAE;gBACJ,MAAM,EAAE,CAAC,CAAa,EAAE,OAAyB;oBAChD,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;iBACzB;gBACD,iBAAiB,EAAE,CAAC,KAAY,EAAE,KAAwB;oBACzD,IAAI,CAAC,qBAAqB,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;iBACzC;aACD,EACD,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,EACjC,cAAc,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,GACxC,EACD,IAAI,CAAC,YAAY,GAAG,CAAC,IAAI,IAAI,CAAC,cAAc,IAAI,gBAAgB,CAC3D,EACN;KACF;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/schema/props/pagination-position.ts","src/components/table-stateful/style.scss?tag=kol-table-stateful&mode=default&encapsulation=shadow","src/components/table-stateful/shadow.tsx"],"sourcesContent":["/* types */\nimport type { Generic } from 'adopted-style-sheets';\nimport { watchValidator } from '../utils/prop.validators';\n\nconst paginationPositionPropTypeOptions = ['top', 'bottom', 'both'] as const;\nexport type PaginationPositionPropType = (typeof paginationPositionPropTypeOptions)[number];\n\n/**\n * Defines which position should be used for presentation.\n */\nexport type PropPaginationPosition = {\n\tpaginationPosition: PaginationPositionPropType;\n};\n\n/* validator */\nexport const validatePaginationPosition = (component: Generic.Element.Component, value?: PaginationPositionPropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t`_paginationPosition`,\n\t\t(value) => typeof value === 'string' && paginationPositionPropTypeOptions.includes(value),\n\t\tnew Set([`PaginationPositionPropType {${paginationPositionPropTypeOptions.join(', ')}`]),\n\t\tvalue,\n\t\t{\n\t\t\tdefaultValue: 'bottom',\n\t\t},\n\t);\n};\n","@use '../../styles/global' as *;\n@use '../../styles/kol-alert-mixin' as *;\n@use '../@shared/kol-button-mixin' as *;\n@use '../@shared/kol-popover-button-mixin' as *;\n@use '../@shared/kol-table-stateless-mixin' as *;\n@use '../@shared/mixins' as *;\n\n@include kol-alert;\n@include kol-button-styles('kol-button');\n@include kol-popover-button-styles;\n@include kol-table-stateless-styles;\n\n@layer kol-component {\n\t:host {\n\t\tfont-size: rem(16);\n\t}\n\n\t.kol-table-stateful {\n\t\t&__pagination,\n\t\t&__pagination-wrapper {\n\t\t\tdisplay: grid;\n\t\t\tplace-items: center;\n\n\t\t\t@media (min-width: 1024px) {\n\t\t\t\tgrid-auto-flow: column;\n\t\t\t}\n\t\t}\n\t}\n\n\t.kol-pagination {\n\t\tdisplay: flex;\n\t\tflex-wrap: wrap;\n\n\t\t@media (min-width: 1024px) {\n\t\t\tdisplay: flex;\n\t\t}\n\n\t\t@media (max-width: 1024px) {\n\t\t\tflex-direction: column;\n\t\t}\n\t}\n}\n","/* eslint-disable jsx-a11y/no-noninteractive-tabindex */\nimport type { JSX } from '@stencil/core';\nimport { Component, Element, h, Host, Method, Prop, State, Watch } from '@stencil/core';\nimport { KolPaginationTag, KolTableStatelessWcTag } from '../../core/component-names';\nimport { translate } from '../../i18n';\nimport type {\n\tKoliBriDataCompareFn,\n\tKoliBriPaginationButtonCallbacks,\n\tKoliBriSortDirection,\n\tKoliBriTableDataType,\n\tKoliBriTableHeaderCellWithLogic,\n\tKoliBriTableHeaders,\n\tKoliBriTablePaginationProps,\n\tLabelPropType,\n\tPaginationPositionPropType,\n\tSortEventPayload,\n\tStringified,\n\tTableAPI,\n\tTableDataFootPropType,\n\tTableDataPropType,\n\tTableHeaderCells,\n\tTableSelectionPropType,\n\tTableStatefulCallbacksPropType,\n\tTableStates,\n} from '../../schema';\nimport {\n\tdevHint,\n\temptyStringByArrayHandler,\n\tobjectObjectHandler,\n\tparseJson,\n\tsetState,\n\tvalidateLabel,\n\tvalidatePaginationPosition,\n\tvalidateTableData,\n\tvalidateTableDataFoot,\n\tvalidateTableSelection,\n\tvalidateTableStatefulCallbacks,\n\twatchString,\n\twatchValidator,\n} from '../../schema';\nimport { Callback } from '../../schema/enums';\nimport type { MinWidthPropType } from '../../schema/props/min-width';\nimport { dispatchDomEvent, KolEvent } from '../../utils/events';\nimport type { TableSettingsPropType } from '../../schema/props/table-settings';\nimport { validateTableSettings } from '../../schema/props/table-settings';\n\nconst PAGINATION_OPTIONS = [10, 20, 50, 100];\n\nconst paginationValidator = (value: unknown) => value === true || value === '' /* true */ || (typeof value === 'object' && value !== null);\n\ntype SortData = {\n\tlabel: string;\n\tkey: string;\n\tcompareFn: KoliBriDataCompareFn;\n\tdirection: KoliBriSortDirection;\n};\n\n@Component({\n\ttag: 'kol-table-stateful',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolTableStateful implements TableAPI {\n\t@Element() private readonly host?: HTMLKolTableStatelessWcElement;\n\tprivate tableWcRef?: HTMLKolTableStatelessWcElement;\n\n\tprivate readonly catchRef = (ref?: HTMLKolTableStatelessWcElement) => {\n\t\tthis.tableWcRef = ref;\n\t};\n\n\tprivate sortData: SortData[] = [];\n\tprivate showPagination = false;\n\tprivate pageStartSlice = 0;\n\tprivate pageEndSlice = 10;\n\tprivate disableSort = false;\n\n\t/**\n\t * Defines whether to allow multi sort.\n\t */\n\t@Prop() public _allowMultiSort?: boolean;\n\n\t/**\n\t * Defines the primary table data.\n\t */\n\t@Prop() public _data!: Stringified<KoliBriTableDataType[]>;\n\n\t/**\n\t * Defines the data for the table footer.\n\t */\n\t@Prop() public _dataFoot?: Stringified<KoliBriTableDataType[]>;\n\n\t/**\n\t * Defines the horizontal and vertical table headers.\n\t */\n\t@Prop() public _headers!: Stringified<KoliBriTableHeaders>;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label!: string;\n\n\t/**\n\t * Defines the table min-width (CSS width values).\n\t */\n\t@Prop() public _minWidth!: MinWidthPropType;\n\n\t/**\n\t * Defines whether to show the data distributed over multiple pages.\n\t */\n\t@Prop() public _pagination?: boolean | Stringified<KoliBriTablePaginationProps>;\n\t/**\n\t * Controls the position of the pagination.\n\t */\n\t@Prop() public _paginationPosition?: PaginationPositionPropType = 'bottom';\n\t/**\n\t * Defines how rows can be selected and the current selection.\n\t */\n\t@Prop() public _selection?: TableSelectionPropType;\n\t/**\n\t * Defines the callback functions for table events.\n\t */\n\t@Prop() public _on?: TableStatefulCallbacksPropType;\n\n\t/**\n\t * Defines the table settings including column visibility, order and width.\n\t */\n\t@Prop() public _tableSettings?: TableSettingsPropType;\n\n\t@State() public state: TableStates = {\n\t\t_allowMultiSort: false,\n\t\t_data: [],\n\t\t_dataFoot: [],\n\t\t_headers: {\n\t\t\thorizontal: [],\n\t\t\tvertical: [],\n\t\t},\n\t\t_label: '', // ⚠ required\n\t\t_minWidth: 'auto',\n\t\t_pagination: {\n\t\t\t_page: 1,\n\t\t\t_pageSize: 10,\n\t\t\t_max: 0,\n\t\t},\n\t\t_sortedData: [],\n\t\t_paginationPosition: 'bottom',\n\t};\n\n\t@Watch('_allowMultiSort')\n\tpublic validateAllowMultiSort(value?: boolean): void {\n\t\twatchValidator(this, '_allowMultiSort', () => true, new Set(['boolean']), value, {\n\t\t\tdefaultValue: false,\n\t\t});\n\t}\n\n\t@Watch('_data')\n\tpublic validateData(value?: TableDataPropType): void {\n\t\tvalidateTableData(this, value, {\n\t\t\tafterPatch: () => {\n\t\t\t\t// TODO: kein guter Hack (endless loop)\n\t\t\t\tsetTimeout(this.updateSortedData);\n\t\t\t},\n\t\t});\n\t}\n\n\t@Watch('_dataFoot')\n\tpublic validateDataFoot(value?: TableDataFootPropType): void {\n\t\tvalidateTableDataFoot(this, value, {\n\t\t\tafterPatch: () => {\n\t\t\t\tsetTimeout(this.updateSortedData);\n\t\t\t},\n\t\t});\n\t}\n\n\t@Watch('_paginationPosition')\n\tpublic validatePaginationPosition(value?: PaginationPositionPropType): void {\n\t\tvalidatePaginationPosition(this, value);\n\t}\n\n\t/**\n\t * Handles sorting logic for table columns.\n\t * If multi-sort is enabled (`_allowMultiSort`), multiple columns can be sorted at once.\n\t * Otherwise, sorting is cleared when switching between columns.\n\t */\n\tprivate changeCellSort(headerCell: KoliBriTableHeaderCellWithLogic) {\n\t\tif (typeof headerCell.compareFn === 'function') {\n\t\t\tif (!this.state._allowMultiSort && headerCell.key != this.sortData[0]?.key) {\n\t\t\t\t// clear when another column is sorted and multi sort is not allowed\n\t\t\t\tthis.sortData = [];\n\t\t\t}\n\n\t\t\tconst index = this.sortData.findIndex((value) => value.key === headerCell.key);\n\t\t\tif (index >= 0) {\n\t\t\t\tconst settings = this.sortData[index];\n\t\t\t\tswitch (settings.direction) {\n\t\t\t\t\tcase 'ASC':\n\t\t\t\t\t\tsettings.direction = 'DESC';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'DESC':\n\t\t\t\t\t\tthis.sortData.splice(index, 1);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tsettings.direction = 'ASC';\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else if (headerCell.key) {\n\t\t\t\tthis.sortData.push({\n\t\t\t\t\tlabel: headerCell.label,\n\t\t\t\t\tkey: headerCell.key,\n\t\t\t\t\tcompareFn: headerCell.compareFn,\n\t\t\t\t\tdirection: 'ASC',\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tthis.updateSortedData();\n\t\t}\n\t}\n\n\t@Watch('_headers')\n\tpublic validateHeaders(value?: Stringified<KoliBriTableHeaders>): void {\n\t\t/**\n\t\t * - es darf maximal ein Header als primary markiert werden (last win)\n\t\t * - der primary-Header entscheidet implizit über _order und _orientation\n\t\t * - primary-Headers müssen das key-Property setzen\n\t\t * - nicht primary-Headers müssen das key-Property nicht setzen (wird ignoriert)\n\t\t * - _order: wird durch den primary-Header geregelt\n\t\t * - _orientation: wird durch den primary-Header geregelt\n\t\t * - sobald ein Header sortierbar ist, darf es nur noch entweder horizontale\n\t\t * oder vertikale Header geben, aber nicht mehr beides\n\t\t */\n\t\temptyStringByArrayHandler(value, () => {\n\t\t\tobjectObjectHandler(value, () => {\n\t\t\t\ttry {\n\t\t\t\t\tvalue = parseJson<KoliBriTableHeaders>(value);\n\t\t\t\t\t// eslint-disable-next-line no-empty\n\t\t\t\t} catch (e) {\n\t\t\t\t\t// value behält den ursprünglichen Wert\n\t\t\t\t}\n\t\t\t\twatchValidator(this, '_headers', (value): boolean => typeof value === 'object' && value !== null, new Set(['KoliBriTableHeaders']), value, {\n\t\t\t\t\thooks: {\n\t\t\t\t\t\tbeforePatch: (nextValue: unknown) => {\n\t\t\t\t\t\t\tconst applySort = (headers: KoliBriTableHeaderCellWithLogic[]) => {\n\t\t\t\t\t\t\t\tlet hasSortedCells = false;\n\t\t\t\t\t\t\t\theaders.forEach((cell) => {\n\t\t\t\t\t\t\t\t\tconst key = cell.key;\n\t\t\t\t\t\t\t\t\tif (!key) {\n\t\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tconst sortDirection = cell.sortDirection;\n\t\t\t\t\t\t\t\t\tif (sortDirection === 'ASC' || sortDirection === 'DESC') {\n\t\t\t\t\t\t\t\t\t\tif (typeof cell.compareFn === 'function') {\n\t\t\t\t\t\t\t\t\t\t\tif (this.state._allowMultiSort || this.sortData.length === 0) {\n\t\t\t\t\t\t\t\t\t\t\t\tthis.sortData.push({ label: cell.label, key, compareFn: cell.compareFn, direction: sortDirection });\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\thasSortedCells = true;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\tif (hasSortedCells) {\n\t\t\t\t\t\t\t\t\tsetTimeout(() => this.updateSortedData());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\tconst headers: KoliBriTableHeaders = nextValue as KoliBriTableHeaders;\n\t\t\t\t\t\t\theaders.horizontal?.forEach(applySort);\n\t\t\t\t\t\t\theaders.vertical?.forEach(applySort);\n\n\t\t\t\t\t\t\tif (headers.horizontal && headers.vertical && headers.horizontal?.length > 0 && headers.vertical?.length > 0) {\n\t\t\t\t\t\t\t\tthis.disableSort = true;\n\t\t\t\t\t\t\t\tdevHint(\n\t\t\t\t\t\t\t\t\t`Table: You can not sort the table data, if horizontal and vertical headers are defined at the same time. (https://github.com/public-ui/kolibri/issues/2372)`,\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t});\n\t\t\t});\n\t\t});\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelPropType): void {\n\t\tvalidateLabel(this, value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t@Watch('_minWidth')\n\tpublic validateMinWidth(value?: string): void {\n\t\twatchString(this, '_minWidth', value, {\n\t\t\tdefaultValue: undefined,\n\t\t});\n\t}\n\n\t@Watch('_selection')\n\tpublic validateSelection(value?: TableSelectionPropType): void {\n\t\tvalidateTableSelection(this, value);\n\t}\n\t@Watch('_on')\n\tpublic validateOn(value?: TableStatefulCallbacksPropType): void {\n\t\tvalidateTableStatefulCallbacks(this, value);\n\t}\n\n\t@Watch('_tableSettings')\n\tpublic validateTableSettings(value?: TableSettingsPropType): void {\n\t\tvalidateTableSettings(this, value);\n\t}\n\n\tprivate readonly handlePagination: KoliBriPaginationButtonCallbacks = {\n\t\tonClick: (event: Event, page: number) => {\n\t\t\tif (typeof this.state._pagination._on?.onClick === 'function') {\n\t\t\t\tthis.state._pagination._on.onClick(event, page);\n\t\t\t}\n\t\t\tsetState(this, '_pagination', {\n\t\t\t\t...this.state._pagination,\n\t\t\t\t_page: page,\n\t\t\t});\n\t\t},\n\t\tonChangePage: (event: Event, page: number) => {\n\t\t\tif (typeof this.state._pagination._on?.onChangePage === 'function') {\n\t\t\t\tthis.state._pagination._on.onChangePage(event, page);\n\t\t\t}\n\t\t\tsetState(this, '_pagination', {\n\t\t\t\t...this.state._pagination,\n\t\t\t\t_page: page,\n\t\t\t});\n\t\t},\n\t\tonChangePageSize: (event: Event, pageSize: number) => {\n\t\t\tif (typeof this.state._pagination._on?.onChangePageSize === 'function') {\n\t\t\t\tthis.state._pagination._on.onChangePageSize(event, pageSize);\n\t\t\t}\n\t\t\tsetState(this, '_pagination', {\n\t\t\t\t...this.state._pagination,\n\t\t\t\t_pageSize: pageSize,\n\t\t\t});\n\t\t\tsetState(this, '_pageSize', pageSize);\n\t\t},\n\t};\n\n\t@Watch('_pagination')\n\tpublic validatePagination(value?: boolean | Stringified<KoliBriTablePaginationProps>): void {\n\t\ttry {\n\t\t\tvalue = parseJson<boolean | KoliBriTablePaginationProps>(value);\n\t\t\t// eslint-disable-next-line no-empty\n\t\t} catch (e) {\n\t\t\t// value behält den ursprünglichen Wert\n\t\t}\n\n\t\tthis.showPagination = paginationValidator(value);\n\n\t\twatchValidator<boolean | Stringified<KoliBriTablePaginationProps>>(\n\t\t\tthis,\n\t\t\t'_pagination',\n\t\t\tpaginationValidator,\n\t\t\tnew Set(['boolean', 'KoliBriTablePagination']),\n\t\t\tvalue,\n\t\t\t{\n\t\t\t\tdefaultValue: {\n\t\t\t\t\t_page: 1,\n\t\t\t\t\t_pageSize: 10,\n\t\t\t\t\t_max: 0,\n\t\t\t\t},\n\t\t\t},\n\t\t);\n\t}\n\n\tprivate onSelectionChange = (event: Event): void => {\n\t\t/* Stop propagation for selectionChange event from table-stateless component because table-stateful emits its own selectionChange event. */\n\t\tevent.stopPropagation();\n\t};\n\n\tpublic componentDidLoad(): void {\n\t\tthis.tableWcRef?.addEventListener(KolEvent.selectionChange, this.onSelectionChange);\n\t}\n\n\tpublic disconnectedCallback(): void {\n\t\tthis.tableWcRef?.removeEventListener(KolEvent.selectionChange, this.onSelectionChange);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateAllowMultiSort(this._allowMultiSort);\n\t\tthis.validateData(this._data);\n\t\tthis.validateDataFoot(this._dataFoot);\n\t\tthis.validateHeaders(this._headers);\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateMinWidth(this._minWidth);\n\t\tthis.validateOn(this._on);\n\t\tthis.validatePagination(this._pagination);\n\t\tthis.validatePaginationPosition(this._paginationPosition);\n\t\tthis.validateSelection(this._selection);\n\t\tthis.validateTableSettings(this._tableSettings);\n\t}\n\n\tprivate selectDisplayedData(data: KoliBriTableDataType[], pageSize: number, page: number): KoliBriTableDataType[] {\n\t\tif (typeof pageSize === 'number' && pageSize > 0 && typeof page === 'number' && page > 0) {\n\t\t\tthis.pageStartSlice = pageSize * (page - 1);\n\t\t\tthis.pageEndSlice = pageSize * page > data.length ? data.length : pageSize * page;\n\t\t\treturn data.slice(this.pageStartSlice, this.pageEndSlice);\n\t\t} else {\n\t\t\tthis.pageStartSlice = 0;\n\t\t\tthis.pageEndSlice = data.length;\n\t\t\treturn data;\n\t\t}\n\t}\n\n\tprivate updateSortedData = () => {\n\t\tif (this.disableSort) {\n\t\t\tsetState(this, '_sortedData', this.state._data);\n\t\t\treturn;\n\t\t}\n\n\t\tconst sortedData: KoliBriTableDataType[] = [...this.state._data];\n\t\tif (this.sortData.length > 0) {\n\t\t\tsortedData.sort((a: KoliBriTableDataType, b: KoliBriTableDataType) => {\n\t\t\t\tfor (let index = 0; index < this.sortData.length; index++) {\n\t\t\t\t\tconst data = this.sortData[index];\n\t\t\t\t\tconst result = data.compareFn(a, b);\n\t\t\t\t\tif (result !== 0) {\n\t\t\t\t\t\treturn data.direction === 'ASC' ? result : -result;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn 0;\n\t\t\t});\n\t\t}\n\t\tsetState(this, '_sortedData', sortedData);\n\t};\n\n\t/**\n\t * Renders the pagination controls for the table, showing the current visible data range\n\t * and providing navigation between different pages.\n\t *\n\t * @returns {JSX.Element} The rendered pagination controls including page range and navigation.\n\t */\n\tprivate renderPagination(position: 'top' | 'bottom'): JSX.Element {\n\t\tconst label = translate('kol-table-pagination-label', {\n\t\t\tplaceholders: {\n\t\t\t\tlabel: `${this.state._label} (${translate(`kol-pagination-position-${position}`)})`,\n\t\t\t},\n\t\t});\n\t\treturn (\n\t\t\t<div class={`kol-table-stateful__pagination kol-table-stateful__pagination--${this.state._paginationPosition}`}>\n\t\t\t\t<span>\n\t\t\t\t\t{translate('kol-table-visible-range', {\n\t\t\t\t\t\tplaceholders: {\n\t\t\t\t\t\t\tstart: this.pageEndSlice > 0 ? (this.pageStartSlice + 1).toString() : '0',\n\t\t\t\t\t\t\tend: this.pageEndSlice.toString(),\n\t\t\t\t\t\t\ttotal:\n\t\t\t\t\t\t\t\tthis.state._pagination && this.state._pagination._max > 0\n\t\t\t\t\t\t\t\t\t? this.state._pagination._max.toString()\n\t\t\t\t\t\t\t\t\t: Array.isArray(this.state._data)\n\t\t\t\t\t\t\t\t\t\t? this.state._data.length.toString()\n\t\t\t\t\t\t\t\t\t\t: '0',\n\t\t\t\t\t\t},\n\t\t\t\t\t})}\n\t\t\t\t</span>\n\t\t\t\t<div class=\"kol-table-stateful__pagination-wrapper\">\n\t\t\t\t\t<KolPaginationTag\n\t\t\t\t\t\tclass=\"test\"\n\t\t\t\t\t\t_boundaryCount={this.state._pagination._boundaryCount}\n\t\t\t\t\t\t_customClass={this.state._pagination._customClass}\n\t\t\t\t\t\t_on={this.handlePagination}\n\t\t\t\t\t\t_page={this.state._pagination._page}\n\t\t\t\t\t\t_pageSize={this.state._pagination._pageSize}\n\t\t\t\t\t\t_pageSizeOptions={this.state._pagination._pageSizeOptions || PAGINATION_OPTIONS}\n\t\t\t\t\t\t_siblingCount={this.state._pagination._siblingCount}\n\t\t\t\t\t\t_tooltipAlign=\"bottom\"\n\t\t\t\t\t\t_max={this.state._pagination._max || this.state._pagination._max || this.state._data.length}\n\t\t\t\t\t\t_label={label}\n\t\t\t\t\t></KolPaginationTag>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n\n\tprivate getHeaderCellSortState(headerCell: KoliBriTableHeaderCellWithLogic): KoliBriSortDirection | undefined {\n\t\tif (!this.disableSort && typeof headerCell.compareFn === 'function') {\n\t\t\tif (headerCell.key) {\n\t\t\t\tconst data = this.sortData.find((value) => value.key === headerCell.key);\n\t\t\t\tif (data?.direction) {\n\t\t\t\t\treturn data.direction;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn 'NOS';\n\t\t}\n\t}\n\n\tprivate handleSort({ key }: SortEventPayload) {\n\t\tconst headerCell = [...(this.state._headers.horizontal || []).flat(), ...(this.state._headers.vertical || []).flat()].find((cell) => cell.key === key);\n\t\tif (headerCell) {\n\t\t\tthis.changeCellSort(headerCell);\n\t\t}\n\t}\n\n\tprivate getSelectedData(selectedKeys: string[] | string): null | KoliBriTableDataType | KoliBriTableDataType[] {\n\t\tconst selection = this.state._selection;\n\t\tif (selection) {\n\t\t\tconst keyPropertyName = selection.keyPropertyName ?? 'id';\n\t\t\tconst data = this.state._sortedData.filter((item) => selectedKeys.includes(item[keyPropertyName] as string));\n\t\t\tif (selection?.multiple === false) {\n\t\t\t\treturn data[0];\n\t\t\t}\n\n\t\t\tif (keyPropertyName) return data;\n\t\t}\n\t\treturn null;\n\t}\n\tprivate handleSelectionChange(event: Event, value: string[] | string): void {\n\t\tconst selection = this.state._selection;\n\t\tif (selection)\n\t\t\tthis.state = {\n\t\t\t\t...this.state,\n\t\t\t\t_selection: {\n\t\t\t\t\t...selection,\n\t\t\t\t\tselectedKeys: typeof value === 'object' ? value : [value],\n\t\t\t\t},\n\t\t\t};\n\t\tconst selectedData = this.getSelectedData(value);\n\n\t\tif (typeof this.state._on?.[Callback.onSelectionChange] === 'function') {\n\t\t\tthis.state._on[Callback.onSelectionChange](event, selectedData);\n\t\t}\n\t\tif (this.host) {\n\t\t\tdispatchDomEvent(this.host, KolEvent.selectionChange, selectedData);\n\t\t}\n\t}\n\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async getSelection(): Promise<KoliBriTableDataType[] | KoliBriTableDataType | null> {\n\t\tconst selectedKeys: string[] = this.state._selection?.selectedKeys || [];\n\t\treturn this.getSelectedData(selectedKeys);\n\t}\n\n\tpublic render(): JSX.Element {\n\t\tconst displayedData: KoliBriTableDataType[] = this.selectDisplayedData(\n\t\t\tthis.state._sortedData,\n\t\t\tthis.showPagination ? (this.state._pagination?._pageSize ?? 10) : this.state._sortedData.length,\n\t\t\tthis.state._pagination._page || 1,\n\t\t);\n\t\tconst paginationTop = this._paginationPosition === 'top' || this._paginationPosition === 'both' ? this.renderPagination('top') : null;\n\t\tconst paginationBottom = this._paginationPosition === 'bottom' || this._paginationPosition === 'both' ? this.renderPagination('bottom') : null;\n\n\t\tconst headerCells: TableHeaderCells = {\n\t\t\thorizontal: this.state._headers.horizontal?.map((row) => row.map((cell) => ({ ...cell, sortDirection: this.getHeaderCellSortState(cell) }))) ?? [],\n\t\t\tvertical: this.state._headers.vertical?.map((column) => column.map((cell) => ({ ...cell, sortDirection: this.getHeaderCellSortState(cell) }))) ?? [],\n\t\t};\n\t\treturn (\n\t\t\t<Host class=\"kol-table-stateful\">\n\t\t\t\t{this.pageEndSlice > 0 && this.showPagination && paginationTop}\n\t\t\t\t<KolTableStatelessWcTag\n\t\t\t\t\tref={this.catchRef}\n\t\t\t\t\t_data={displayedData}\n\t\t\t\t\t_headerCells={headerCells}\n\t\t\t\t\t_label={this.state._label}\n\t\t\t\t\t_dataFoot={this.state._dataFoot}\n\t\t\t\t\t_minWidth={this.state._minWidth}\n\t\t\t\t\t_on={{\n\t\t\t\t\t\tonSort: (_: MouseEvent, payload: SortEventPayload) => {\n\t\t\t\t\t\t\tthis.handleSort(payload);\n\t\t\t\t\t\t},\n\t\t\t\t\t\tonSelectionChange: (event: Event, value: string[] | string) => {\n\t\t\t\t\t\t\tthis.handleSelectionChange(event, value);\n\t\t\t\t\t\t},\n\t\t\t\t\t}}\n\t\t\t\t\t_selection={this.state._selection}\n\t\t\t\t\t_tableSettings={this.state._tableSettings}\n\t\t\t\t/>\n\t\t\t\t{this.pageEndSlice > 0 && this.showPagination && paginationBottom}\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"version":3}
1
+ {"file":"kol-table-stateful.entry.js","mappings":";;;;;;;;;;;;;AAIA,MAAM,iCAAiC,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAU,CAAC;AAWtE,MAAM,0BAA0B,GAAG,CAAC,SAAoC,EAAE,KAAkC;IAClH,cAAc,CACb,SAAS,EACT,qBAAqB,EACrB,CAAC,KAAK,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,iCAAiC,CAAC,QAAQ,CAAC,KAAK,CAAC,EACzF,IAAI,GAAG,CAAC,CAAC,+BAA+B,iCAAiC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,EACxF,KAAK,EACL;QACC,YAAY,EAAE,QAAQ;KACtB,CACD,CAAC;AACH,CAAC;;AC1BD,MAAM,eAAe,GAAG,gnWAAgnW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UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,EACjC,cAAc,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,GACxC,EACD,IAAI,CAAC,YAAY,GAAG,CAAC,IAAI,IAAI,CAAC,cAAc,IAAI,gBAAgB,CAC3D,EACN;KACF;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/schema/props/pagination-position.ts","src/components/table-stateful/style.scss?tag=kol-table-stateful&mode=default&encapsulation=shadow","src/components/table-stateful/shadow.tsx"],"sourcesContent":["/* types */\nimport type { Generic } from 'adopted-style-sheets';\nimport { watchValidator } from '../utils/prop.validators';\n\nconst paginationPositionPropTypeOptions = ['top', 'bottom', 'both'] as const;\nexport type PaginationPositionPropType = (typeof paginationPositionPropTypeOptions)[number];\n\n/**\n * Defines which position should be used for presentation.\n */\nexport type PropPaginationPosition = {\n\tpaginationPosition: PaginationPositionPropType;\n};\n\n/* validator */\nexport const validatePaginationPosition = (component: Generic.Element.Component, value?: PaginationPositionPropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t`_paginationPosition`,\n\t\t(value) => typeof value === 'string' && paginationPositionPropTypeOptions.includes(value),\n\t\tnew Set([`PaginationPositionPropType {${paginationPositionPropTypeOptions.join(', ')}`]),\n\t\tvalue,\n\t\t{\n\t\t\tdefaultValue: 'bottom',\n\t\t},\n\t);\n};\n","@use '../../styles/global' as *;\n@use '../../styles/kol-alert-mixin' as *;\n@use '../@shared/kol-button-mixin' as *;\n@use '../@shared/kol-popover-button-mixin' as *;\n@use '../@shared/kol-table-stateless-mixin' as *;\n@use '../@shared/mixins' as *;\n@use '../@shared/kol-pagination-mixin' as *;\n\n@include kol-alert;\n@include kol-button-styles('kol-button');\n@include kol-popover-button-styles;\n@include kol-table-stateless-styles;\n@include kol-pagination-styles;\n\n@layer kol-component {\n\t.kol-table-stateful {\n\t\t&__pagination,\n\t\t&__pagination-wrapper {\n\t\t\tdisplay: grid;\n\t\t\tplace-items: center;\n\n\t\t\t@media (min-width: 1024px) {\n\t\t\t\tgrid-auto-flow: column;\n\t\t\t}\n\t\t}\n\t}\n\n\t.kol-pagination {\n\t\tdisplay: flex;\n\t\tflex-wrap: wrap;\n\n\t\t@media (min-width: 1024px) {\n\t\t\tdisplay: flex;\n\t\t}\n\n\t\t@media (max-width: 1024px) {\n\t\t\tflex-direction: column;\n\t\t}\n\t}\n}\n","/* eslint-disable jsx-a11y/no-noninteractive-tabindex */\nimport type { JSX } from '@stencil/core';\nimport { Component, Element, h, Host, Method, Prop, State, Watch } from '@stencil/core';\nimport { KolPaginationWcTag, KolTableStatelessWcTag } from '../../core/component-names';\nimport { translate } from '../../i18n';\nimport type {\n\tKoliBriDataCompareFn,\n\tKoliBriPaginationButtonCallbacks,\n\tKoliBriSortDirection,\n\tKoliBriTableDataType,\n\tKoliBriTableHeaderCellWithLogic,\n\tKoliBriTableHeaders,\n\tKoliBriTablePaginationProps,\n\tLabelPropType,\n\tPaginationPositionPropType,\n\tSortEventPayload,\n\tStringified,\n\tTableAPI,\n\tTableDataFootPropType,\n\tTableDataPropType,\n\tTableHeaderCells,\n\tTableSelectionPropType,\n\tTableStatefulCallbacksPropType,\n\tTableStates,\n} from '../../schema';\nimport {\n\tdevHint,\n\temptyStringByArrayHandler,\n\tobjectObjectHandler,\n\tparseJson,\n\tsetState,\n\tvalidateLabel,\n\tvalidatePaginationPosition,\n\tvalidateTableData,\n\tvalidateTableDataFoot,\n\tvalidateTableSelection,\n\tvalidateTableStatefulCallbacks,\n\twatchString,\n\twatchValidator,\n} from '../../schema';\nimport { Callback } from '../../schema/enums';\nimport type { MinWidthPropType } from '../../schema/props/min-width';\nimport { dispatchDomEvent, KolEvent } from '../../utils/events';\nimport type { TableSettingsPropType } from '../../schema/props/table-settings';\nimport { validateTableSettings } from '../../schema/props/table-settings';\n\nconst PAGINATION_OPTIONS = [10, 20, 50, 100];\n\nconst paginationValidator = (value: unknown) => value === true || value === '' /* true */ || (typeof value === 'object' && value !== null);\n\ntype SortData = {\n\tlabel: string;\n\tkey: string;\n\tcompareFn: KoliBriDataCompareFn;\n\tdirection: KoliBriSortDirection;\n};\n\n@Component({\n\ttag: 'kol-table-stateful',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolTableStateful implements TableAPI {\n\t@Element() private readonly host?: HTMLKolTableStatelessWcElement;\n\tprivate tableWcRef?: HTMLKolTableStatelessWcElement;\n\n\tprivate readonly catchRef = (ref?: HTMLKolTableStatelessWcElement) => {\n\t\tthis.tableWcRef = ref;\n\t};\n\n\tprivate sortData: SortData[] = [];\n\tprivate showPagination = false;\n\tprivate pageStartSlice = 0;\n\tprivate pageEndSlice = 10;\n\tprivate disableSort = false;\n\n\t/**\n\t * Defines whether to allow multi sort.\n\t */\n\t@Prop() public _allowMultiSort?: boolean;\n\n\t/**\n\t * Defines the primary table data.\n\t */\n\t@Prop() public _data!: Stringified<KoliBriTableDataType[]>;\n\n\t/**\n\t * Defines the data for the table footer.\n\t */\n\t@Prop() public _dataFoot?: Stringified<KoliBriTableDataType[]>;\n\n\t/**\n\t * Defines the horizontal and vertical table headers.\n\t */\n\t@Prop() public _headers!: Stringified<KoliBriTableHeaders>;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label!: string;\n\n\t/**\n\t * Defines the table min-width (CSS width values).\n\t */\n\t@Prop() public _minWidth!: MinWidthPropType;\n\n\t/**\n\t * Defines whether to show the data distributed over multiple pages.\n\t */\n\t@Prop() public _pagination?: boolean | Stringified<KoliBriTablePaginationProps>;\n\t/**\n\t * Controls the position of the pagination.\n\t */\n\t@Prop() public _paginationPosition?: PaginationPositionPropType = 'bottom';\n\t/**\n\t * Defines how rows can be selected and the current selection.\n\t */\n\t@Prop() public _selection?: TableSelectionPropType;\n\t/**\n\t * Defines the callback functions for table events.\n\t */\n\t@Prop() public _on?: TableStatefulCallbacksPropType;\n\n\t/**\n\t * Defines the table settings including column visibility, order and width.\n\t */\n\t@Prop() public _tableSettings?: TableSettingsPropType;\n\n\t@State() public state: TableStates = {\n\t\t_allowMultiSort: false,\n\t\t_data: [],\n\t\t_dataFoot: [],\n\t\t_headers: {\n\t\t\thorizontal: [],\n\t\t\tvertical: [],\n\t\t},\n\t\t_label: '', // ⚠ required\n\t\t_minWidth: 'auto',\n\t\t_pagination: {\n\t\t\t_page: 1,\n\t\t\t_pageSize: 10,\n\t\t\t_max: 0,\n\t\t},\n\t\t_sortedData: [],\n\t\t_paginationPosition: 'bottom',\n\t};\n\n\t@Watch('_allowMultiSort')\n\tpublic validateAllowMultiSort(value?: boolean): void {\n\t\twatchValidator(this, '_allowMultiSort', () => true, new Set(['boolean']), value, {\n\t\t\tdefaultValue: false,\n\t\t});\n\t}\n\n\t@Watch('_data')\n\tpublic validateData(value?: TableDataPropType): void {\n\t\tvalidateTableData(this, value, {\n\t\t\tafterPatch: () => {\n\t\t\t\t// TODO: kein guter Hack (endless loop)\n\t\t\t\tsetTimeout(this.updateSortedData);\n\t\t\t},\n\t\t});\n\t}\n\n\t@Watch('_dataFoot')\n\tpublic validateDataFoot(value?: TableDataFootPropType): void {\n\t\tvalidateTableDataFoot(this, value, {\n\t\t\tafterPatch: () => {\n\t\t\t\tsetTimeout(this.updateSortedData);\n\t\t\t},\n\t\t});\n\t}\n\n\t@Watch('_paginationPosition')\n\tpublic validatePaginationPosition(value?: PaginationPositionPropType): void {\n\t\tvalidatePaginationPosition(this, value);\n\t}\n\n\t/**\n\t * Handles sorting logic for table columns.\n\t * If multi-sort is enabled (`_allowMultiSort`), multiple columns can be sorted at once.\n\t * Otherwise, sorting is cleared when switching between columns.\n\t */\n\tprivate changeCellSort(headerCell: KoliBriTableHeaderCellWithLogic) {\n\t\tif (typeof headerCell.compareFn === 'function') {\n\t\t\tif (!this.state._allowMultiSort && headerCell.key !== this.sortData[0]?.key) {\n\t\t\t\t// clear when another column is sorted and multi sort is not allowed\n\t\t\t\tthis.sortData = [];\n\t\t\t}\n\n\t\t\tconst index = this.sortData.findIndex((value) => value.key === headerCell.key);\n\t\t\tif (index >= 0) {\n\t\t\t\tconst settings = this.sortData[index];\n\t\t\t\tswitch (settings.direction) {\n\t\t\t\t\tcase 'ASC':\n\t\t\t\t\t\tsettings.direction = 'DESC';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'DESC':\n\t\t\t\t\t\tthis.sortData.splice(index, 1);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tsettings.direction = 'ASC';\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else if (headerCell.key) {\n\t\t\t\tthis.sortData.push({\n\t\t\t\t\tlabel: headerCell.label,\n\t\t\t\t\tkey: headerCell.key,\n\t\t\t\t\tcompareFn: headerCell.compareFn,\n\t\t\t\t\tdirection: 'ASC',\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tthis.updateSortedData();\n\t\t}\n\t}\n\n\t@Watch('_headers')\n\tpublic validateHeaders(value?: Stringified<KoliBriTableHeaders>): void {\n\t\t/**\n\t\t * - es darf maximal ein Header als primary markiert werden (last win)\n\t\t * - der primary-Header entscheidet implizit über _order und _orientation\n\t\t * - primary-Headers müssen das key-Property setzen\n\t\t * - nicht primary-Headers müssen das key-Property nicht setzen (wird ignoriert)\n\t\t * - _order: wird durch den primary-Header geregelt\n\t\t * - _orientation: wird durch den primary-Header geregelt\n\t\t * - sobald ein Header sortierbar ist, darf es nur noch entweder horizontale\n\t\t * oder vertikale Header geben, aber nicht mehr beides\n\t\t */\n\t\temptyStringByArrayHandler(value, () => {\n\t\t\tobjectObjectHandler(value, () => {\n\t\t\t\ttry {\n\t\t\t\t\tvalue = parseJson<KoliBriTableHeaders>(value);\n\t\t\t\t\t// eslint-disable-next-line no-empty\n\t\t\t\t} catch (e) {\n\t\t\t\t\t// value behält den ursprünglichen Wert\n\t\t\t\t}\n\t\t\t\twatchValidator(this, '_headers', (value): boolean => typeof value === 'object' && value !== null, new Set(['KoliBriTableHeaders']), value, {\n\t\t\t\t\thooks: {\n\t\t\t\t\t\tbeforePatch: (nextValue: unknown) => {\n\t\t\t\t\t\t\tconst applySort = (headers: KoliBriTableHeaderCellWithLogic[]) => {\n\t\t\t\t\t\t\t\tlet hasSortedCells = false;\n\t\t\t\t\t\t\t\theaders.forEach((cell) => {\n\t\t\t\t\t\t\t\t\tconst key = cell.key;\n\t\t\t\t\t\t\t\t\tif (!key) {\n\t\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tconst sortDirection = cell.sortDirection;\n\t\t\t\t\t\t\t\t\tif (sortDirection === 'ASC' || sortDirection === 'DESC') {\n\t\t\t\t\t\t\t\t\t\tif (typeof cell.compareFn === 'function') {\n\t\t\t\t\t\t\t\t\t\t\tif (this.state._allowMultiSort || this.sortData.length === 0) {\n\t\t\t\t\t\t\t\t\t\t\t\tthis.sortData.push({ label: cell.label, key, compareFn: cell.compareFn, direction: sortDirection });\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\thasSortedCells = true;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\tif (hasSortedCells) {\n\t\t\t\t\t\t\t\t\tsetTimeout(() => this.updateSortedData());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\tconst headers: KoliBriTableHeaders = nextValue as KoliBriTableHeaders;\n\t\t\t\t\t\t\theaders.horizontal?.forEach(applySort);\n\t\t\t\t\t\t\theaders.vertical?.forEach(applySort);\n\n\t\t\t\t\t\t\tif (headers.horizontal && headers.vertical && headers.horizontal?.length > 0 && headers.vertical?.length > 0) {\n\t\t\t\t\t\t\t\tthis.disableSort = true;\n\t\t\t\t\t\t\t\tdevHint(\n\t\t\t\t\t\t\t\t\t`Table: You can not sort the table data, if horizontal and vertical headers are defined at the same time. (https://github.com/public-ui/kolibri/issues/2372)`,\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t});\n\t\t\t});\n\t\t});\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelPropType): void {\n\t\tvalidateLabel(this, value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t@Watch('_minWidth')\n\tpublic validateMinWidth(value?: string): void {\n\t\twatchString(this, '_minWidth', value, {\n\t\t\tdefaultValue: undefined,\n\t\t});\n\t}\n\n\t@Watch('_selection')\n\tpublic validateSelection(value?: TableSelectionPropType): void {\n\t\tvalidateTableSelection(this, value);\n\t}\n\t@Watch('_on')\n\tpublic validateOn(value?: TableStatefulCallbacksPropType): void {\n\t\tvalidateTableStatefulCallbacks(this, value);\n\t}\n\n\t@Watch('_tableSettings')\n\tpublic validateTableSettings(value?: TableSettingsPropType): void {\n\t\tvalidateTableSettings(this, value);\n\t}\n\n\tprivate readonly handlePagination: KoliBriPaginationButtonCallbacks = {\n\t\tonClick: (event: Event, page: number) => {\n\t\t\tif (typeof this.state._pagination._on?.onClick === 'function') {\n\t\t\t\tthis.state._pagination._on.onClick(event, page);\n\t\t\t}\n\t\t\tsetState(this, '_pagination', {\n\t\t\t\t...this.state._pagination,\n\t\t\t\t_page: page,\n\t\t\t});\n\t\t},\n\t\tonChangePage: (event: Event, page: number) => {\n\t\t\tif (typeof this.state._pagination._on?.onChangePage === 'function') {\n\t\t\t\tthis.state._pagination._on.onChangePage(event, page);\n\t\t\t}\n\t\t\tsetState(this, '_pagination', {\n\t\t\t\t...this.state._pagination,\n\t\t\t\t_page: page,\n\t\t\t});\n\t\t},\n\t\tonChangePageSize: (event: Event, pageSize: number) => {\n\t\t\tif (typeof this.state._pagination._on?.onChangePageSize === 'function') {\n\t\t\t\tthis.state._pagination._on.onChangePageSize(event, pageSize);\n\t\t\t}\n\t\t\tsetState(this, '_pagination', {\n\t\t\t\t...this.state._pagination,\n\t\t\t\t_pageSize: pageSize,\n\t\t\t});\n\t\t\tsetState(this, '_pageSize', pageSize);\n\t\t},\n\t};\n\n\t@Watch('_pagination')\n\tpublic validatePagination(value?: boolean | Stringified<KoliBriTablePaginationProps>): void {\n\t\ttry {\n\t\t\tvalue = parseJson<boolean | KoliBriTablePaginationProps>(value);\n\t\t\t// eslint-disable-next-line no-empty\n\t\t} catch (e) {\n\t\t\t// value behält den ursprünglichen Wert\n\t\t}\n\n\t\tthis.showPagination = paginationValidator(value);\n\n\t\twatchValidator<boolean | Stringified<KoliBriTablePaginationProps>>(\n\t\t\tthis,\n\t\t\t'_pagination',\n\t\t\tpaginationValidator,\n\t\t\tnew Set(['boolean', 'KoliBriTablePagination']),\n\t\t\tvalue,\n\t\t\t{\n\t\t\t\tdefaultValue: {\n\t\t\t\t\t_page: 1,\n\t\t\t\t\t_pageSize: 10,\n\t\t\t\t\t_max: 0,\n\t\t\t\t},\n\t\t\t},\n\t\t);\n\t}\n\n\tprivate onSelectionChange = (event: Event): void => {\n\t\t/* Stop propagation for selectionChange event from table-stateless component because table-stateful emits its own selectionChange event. */\n\t\tevent.stopPropagation();\n\t};\n\n\tpublic componentDidLoad(): void {\n\t\tthis.tableWcRef?.addEventListener(KolEvent.selectionChange, this.onSelectionChange);\n\t}\n\n\tpublic disconnectedCallback(): void {\n\t\tthis.tableWcRef?.removeEventListener(KolEvent.selectionChange, this.onSelectionChange);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateAllowMultiSort(this._allowMultiSort);\n\t\tthis.validateData(this._data);\n\t\tthis.validateDataFoot(this._dataFoot);\n\t\tthis.validateHeaders(this._headers);\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateMinWidth(this._minWidth);\n\t\tthis.validateOn(this._on);\n\t\tthis.validatePagination(this._pagination);\n\t\tthis.validatePaginationPosition(this._paginationPosition);\n\t\tthis.validateSelection(this._selection);\n\t\tthis.validateTableSettings(this._tableSettings);\n\t}\n\n\tprivate selectDisplayedData(data: KoliBriTableDataType[], pageSize: number, page: number): KoliBriTableDataType[] {\n\t\tif (typeof pageSize === 'number' && pageSize > 0 && typeof page === 'number' && page > 0) {\n\t\t\tthis.pageStartSlice = pageSize * (page - 1);\n\t\t\tthis.pageEndSlice = pageSize * page > data.length ? data.length : pageSize * page;\n\t\t\treturn data.slice(this.pageStartSlice, this.pageEndSlice);\n\t\t} else {\n\t\t\tthis.pageStartSlice = 0;\n\t\t\tthis.pageEndSlice = data.length;\n\t\t\treturn data;\n\t\t}\n\t}\n\n\tprivate updateSortedData = () => {\n\t\tif (this.disableSort) {\n\t\t\tsetState(this, '_sortedData', this.state._data);\n\t\t\treturn;\n\t\t}\n\n\t\tconst sortedData: KoliBriTableDataType[] = [...this.state._data];\n\t\tif (this.sortData.length > 0) {\n\t\t\tsortedData.sort((a: KoliBriTableDataType, b: KoliBriTableDataType) => {\n\t\t\t\tfor (let index = 0; index < this.sortData.length; index++) {\n\t\t\t\t\tconst data = this.sortData[index];\n\t\t\t\t\tconst result = data.compareFn(a, b);\n\t\t\t\t\tif (result !== 0) {\n\t\t\t\t\t\treturn data.direction === 'ASC' ? result : -result;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn 0;\n\t\t\t});\n\t\t}\n\t\tsetState(this, '_sortedData', sortedData);\n\t};\n\n\t/**\n\t * Renders the pagination controls for the table, showing the current visible data range\n\t * and providing navigation between different pages.\n\t *\n\t * @returns {JSX.Element} The rendered pagination controls including page range and navigation.\n\t */\n\tprivate renderPagination(position: 'top' | 'bottom'): JSX.Element {\n\t\tconst label = translate('kol-table-pagination-label', {\n\t\t\tplaceholders: {\n\t\t\t\tlabel: `${this.state._label} (${translate(`kol-pagination-position-${position}`)})`,\n\t\t\t},\n\t\t});\n\t\treturn (\n\t\t\t<div class={`kol-table-stateful__pagination kol-table-stateful__pagination--${this.state._paginationPosition}`}>\n\t\t\t\t<span>\n\t\t\t\t\t{translate('kol-table-visible-range', {\n\t\t\t\t\t\tplaceholders: {\n\t\t\t\t\t\t\tstart: this.pageEndSlice > 0 ? (this.pageStartSlice + 1).toString() : '0',\n\t\t\t\t\t\t\tend: this.pageEndSlice.toString(),\n\t\t\t\t\t\t\ttotal:\n\t\t\t\t\t\t\t\tthis.state._pagination && this.state._pagination._max > 0\n\t\t\t\t\t\t\t\t\t? this.state._pagination._max.toString()\n\t\t\t\t\t\t\t\t\t: Array.isArray(this.state._data)\n\t\t\t\t\t\t\t\t\t\t? this.state._data.length.toString()\n\t\t\t\t\t\t\t\t\t\t: '0',\n\t\t\t\t\t\t},\n\t\t\t\t\t})}\n\t\t\t\t</span>\n\t\t\t\t<div class=\"kol-table-stateful__pagination-wrapper\">\n\t\t\t\t\t<KolPaginationWcTag\n\t\t\t\t\t\tclass=\"test\"\n\t\t\t\t\t\t_boundaryCount={this.state._pagination._boundaryCount}\n\t\t\t\t\t\t_customClass={this.state._pagination._customClass}\n\t\t\t\t\t\t_on={this.handlePagination}\n\t\t\t\t\t\t_page={this.state._pagination._page}\n\t\t\t\t\t\t_pageSize={this.state._pagination._pageSize}\n\t\t\t\t\t\t_pageSizeOptions={this.state._pagination._pageSizeOptions || PAGINATION_OPTIONS}\n\t\t\t\t\t\t_siblingCount={this.state._pagination._siblingCount}\n\t\t\t\t\t\t_tooltipAlign=\"bottom\"\n\t\t\t\t\t\t_max={this.state._pagination._max || this.state._pagination._max || this.state._data.length}\n\t\t\t\t\t\t_label={label}\n\t\t\t\t\t></KolPaginationWcTag>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n\n\tprivate getHeaderCellSortState(headerCell: KoliBriTableHeaderCellWithLogic): KoliBriSortDirection | undefined {\n\t\tif (!this.disableSort && typeof headerCell.compareFn === 'function') {\n\t\t\tif (headerCell.key) {\n\t\t\t\tconst data = this.sortData.find((value) => value.key === headerCell.key);\n\t\t\t\tif (data?.direction) {\n\t\t\t\t\treturn data.direction;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn 'NOS';\n\t\t}\n\t}\n\n\tprivate handleSort({ key }: SortEventPayload) {\n\t\tconst headerCell = [...(this.state._headers.horizontal || []).flat(), ...(this.state._headers.vertical || []).flat()].find((cell) => cell.key === key);\n\t\tif (headerCell) {\n\t\t\tthis.changeCellSort(headerCell);\n\t\t}\n\t}\n\n\tprivate getSelectedData(selectedKeys: string[] | string): null | KoliBriTableDataType | KoliBriTableDataType[] {\n\t\tconst selection = this.state._selection;\n\t\tif (selection) {\n\t\t\tconst keyPropertyName = selection.keyPropertyName ?? 'id';\n\t\t\tconst data = this.state._sortedData.filter((item) => selectedKeys.includes(item[keyPropertyName] as string));\n\t\t\tif (selection?.multiple === false) {\n\t\t\t\treturn data[0];\n\t\t\t}\n\n\t\t\tif (keyPropertyName) return data;\n\t\t}\n\t\treturn null;\n\t}\n\tprivate handleSelectionChange(event: Event, value: string[] | string): void {\n\t\tconst selection = this.state._selection;\n\t\tif (selection)\n\t\t\tthis.state = {\n\t\t\t\t...this.state,\n\t\t\t\t_selection: {\n\t\t\t\t\t...selection,\n\t\t\t\t\tselectedKeys: typeof value === 'object' ? value : [value],\n\t\t\t\t},\n\t\t\t};\n\t\tconst selectedData = this.getSelectedData(value);\n\n\t\tif (typeof this.state._on?.[Callback.onSelectionChange] === 'function') {\n\t\t\tthis.state._on[Callback.onSelectionChange](event, selectedData);\n\t\t}\n\t\tif (this.host) {\n\t\t\tdispatchDomEvent(this.host, KolEvent.selectionChange, selectedData);\n\t\t}\n\t}\n\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async getSelection(): Promise<KoliBriTableDataType[] | KoliBriTableDataType | null> {\n\t\tconst selectedKeys: string[] = this.state._selection?.selectedKeys || [];\n\t\treturn this.getSelectedData(selectedKeys);\n\t}\n\n\tpublic render(): JSX.Element {\n\t\tconst displayedData: KoliBriTableDataType[] = this.selectDisplayedData(\n\t\t\tthis.state._sortedData,\n\t\t\tthis.showPagination ? (this.state._pagination?._pageSize ?? 10) : this.state._sortedData.length,\n\t\t\tthis.state._pagination._page || 1,\n\t\t);\n\t\tconst paginationTop = this._paginationPosition === 'top' || this._paginationPosition === 'both' ? this.renderPagination('top') : null;\n\t\tconst paginationBottom = this._paginationPosition === 'bottom' || this._paginationPosition === 'both' ? this.renderPagination('bottom') : null;\n\n\t\tconst headerCells: TableHeaderCells = {\n\t\t\thorizontal: this.state._headers.horizontal?.map((row) => row.map((cell) => ({ ...cell, sortDirection: this.getHeaderCellSortState(cell) }))) ?? [],\n\t\t\tvertical: this.state._headers.vertical?.map((column) => column.map((cell) => ({ ...cell, sortDirection: this.getHeaderCellSortState(cell) }))) ?? [],\n\t\t};\n\t\treturn (\n\t\t\t<Host class=\"kol-table-stateful\">\n\t\t\t\t{this.pageEndSlice > 0 && this.showPagination && paginationTop}\n\t\t\t\t<KolTableStatelessWcTag\n\t\t\t\t\tref={this.catchRef}\n\t\t\t\t\t_data={displayedData}\n\t\t\t\t\t_headerCells={headerCells}\n\t\t\t\t\t_label={this.state._label}\n\t\t\t\t\t_dataFoot={this.state._dataFoot}\n\t\t\t\t\t_minWidth={this.state._minWidth}\n\t\t\t\t\t_on={{\n\t\t\t\t\t\tonSort: (_: MouseEvent, payload: SortEventPayload) => {\n\t\t\t\t\t\t\tthis.handleSort(payload);\n\t\t\t\t\t\t},\n\t\t\t\t\t\tonSelectionChange: (event: Event, value: string[] | string) => {\n\t\t\t\t\t\t\tthis.handleSelectionChange(event, value);\n\t\t\t\t\t\t},\n\t\t\t\t\t}}\n\t\t\t\t\t_selection={this.state._selection}\n\t\t\t\t\t_tableSettings={this.state._tableSettings}\n\t\t\t\t/>\n\t\t\t\t{this.pageEndSlice > 0 && this.showPagination && paginationBottom}\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"version":3}