@public-ui/components 2.2.6-rc.2 → 3.0.0-0edf6aa20a9ac9faa46ebe0e45a8c62841b05164.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 (1179) hide show
  1. package/custom-elements.json +285 -567
  2. package/dist/cjs/Alert-e499a0f5.js +4 -0
  3. package/dist/cjs/Alert-e499a0f5.js.map +1 -0
  4. package/dist/cjs/Collapsible-86925548.js +4 -0
  5. package/dist/cjs/Collapsible-86925548.js.map +1 -0
  6. package/dist/cjs/CustomSuggestionsOptionsGroup-a8f57231.js +4 -0
  7. package/dist/cjs/CustomSuggestionsOptionsGroup-a8f57231.js.map +1 -0
  8. package/dist/cjs/FieldControlStateWrapper-24628eb1.js +4 -0
  9. package/dist/cjs/FieldControlStateWrapper-24628eb1.js.map +1 -0
  10. package/dist/cjs/FormFieldMsg-4224a47c.js +4 -0
  11. package/dist/cjs/FormFieldMsg-4224a47c.js.map +1 -0
  12. package/dist/cjs/Heading-ad46954e.js +4 -0
  13. package/dist/cjs/Heading-ad46954e.js.map +1 -0
  14. package/dist/cjs/Icon-7f43100b.js +4 -0
  15. package/dist/cjs/Icon-7f43100b.js.map +1 -0
  16. package/dist/cjs/Input-1dcec29c.js +4 -0
  17. package/dist/cjs/Input-1dcec29c.js.map +1 -0
  18. package/dist/cjs/InputStateWrapper-5951abef.js +4 -0
  19. package/dist/cjs/InputStateWrapper-5951abef.js.map +1 -0
  20. package/dist/cjs/InternalUnderlinedBadgeText-434182d2.js +4 -0
  21. package/dist/cjs/InternalUnderlinedBadgeText-434182d2.js.map +1 -0
  22. package/dist/cjs/Span-8ca233d2.js +4 -0
  23. package/dist/cjs/Span-8ca233d2.js.map +1 -0
  24. package/dist/cjs/{app-globals-258d120f.js → app-globals-702172ad.js} +1 -1
  25. package/dist/cjs/{app-globals-258d120f.js.map → app-globals-702172ad.js.map} +1 -1
  26. package/dist/cjs/{aria-expanded-3376c72e.js → button-variant-cd1a80cf.js} +1 -1
  27. package/dist/cjs/button-variant-cd1a80cf.js.map +1 -0
  28. package/dist/cjs/callback-ab215ba6.js +4 -0
  29. package/dist/cjs/callback-ab215ba6.js.map +1 -0
  30. package/dist/cjs/component-names-74abfa2e.js +4 -0
  31. package/dist/cjs/component-names-74abfa2e.js.map +1 -0
  32. package/dist/cjs/{controller-8c83cf6d.js → controller-44df52af.js} +1 -1
  33. package/dist/cjs/{controller-8c83cf6d.js.map → controller-44df52af.js.map} +1 -1
  34. package/dist/cjs/controller-737e4986.js +4 -0
  35. package/dist/cjs/{controller-3df689d7.js.map → controller-737e4986.js.map} +1 -1
  36. package/dist/cjs/{controller-6bc73748.js → controller-739092ae.js} +1 -1
  37. package/dist/cjs/{controller-6bc73748.js.map → controller-739092ae.js.map} +1 -1
  38. package/dist/cjs/{controller-c06ec8d6.js → controller-fcd5edcb.js} +1 -1
  39. package/dist/cjs/{controller-c06ec8d6.js.map → controller-fcd5edcb.js.map} +1 -1
  40. package/dist/cjs/controller-icon-0f569061.js +4 -0
  41. package/dist/cjs/controller-icon-0f569061.js.map +1 -0
  42. package/dist/cjs/{dev.utils-9e3947fb.js → dev.utils-94f2c3c9.js} +1 -1
  43. package/dist/cjs/{dev.utils-9e3947fb.js.map → dev.utils-94f2c3c9.js.map} +1 -1
  44. package/dist/cjs/{devtools-55b90d40.js → devtools-649d9a72.js} +1 -1
  45. package/dist/cjs/{devtools-55b90d40.js.map → devtools-649d9a72.js.map} +1 -1
  46. package/dist/cjs/events-fc641593.js +4 -0
  47. package/dist/cjs/events-fc641593.js.map +1 -0
  48. package/dist/cjs/getRenderStates-bea5d834.js +4 -0
  49. package/dist/cjs/getRenderStates-bea5d834.js.map +1 -0
  50. package/dist/cjs/index-f2f390fa.js +4 -0
  51. package/dist/cjs/index-f2f390fa.js.map +1 -0
  52. package/dist/cjs/index.cjs.js +1 -1
  53. package/dist/cjs/index.cjs.js.map +1 -1
  54. package/dist/cjs/isObject-6090b636.js +4 -0
  55. package/dist/cjs/isObject-6090b636.js.map +1 -0
  56. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  57. package/dist/cjs/kol-abbr.cjs.entry.js.map +1 -1
  58. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  59. package/dist/cjs/kol-accordion.cjs.entry.js.map +1 -1
  60. package/dist/cjs/kol-alert-wc.cjs.entry.js +1 -1
  61. package/dist/cjs/kol-alert-wc.cjs.entry.js.map +1 -1
  62. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  63. package/dist/cjs/kol-alert.cjs.entry.js.map +1 -1
  64. package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
  65. package/dist/cjs/kol-avatar-wc.cjs.entry.js.map +1 -1
  66. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  67. package/dist/cjs/kol-avatar.cjs.entry.js.map +1 -1
  68. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  69. package/dist/cjs/kol-badge.cjs.entry.js.map +1 -1
  70. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  71. package/dist/cjs/kol-breadcrumb.cjs.entry.js.map +1 -1
  72. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  73. package/dist/cjs/kol-button-link.cjs.entry.js.map +1 -1
  74. package/dist/cjs/kol-button-wc.cjs.entry.js +1 -1
  75. package/dist/cjs/kol-button-wc.cjs.entry.js.map +1 -1
  76. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  77. package/dist/cjs/kol-button.cjs.entry.js.map +1 -1
  78. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  79. package/dist/cjs/kol-card.cjs.entry.js.map +1 -1
  80. package/dist/cjs/kol-combobox.cjs.entry.js +1 -1
  81. package/dist/cjs/kol-combobox.cjs.entry.js.map +1 -1
  82. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  83. package/dist/cjs/kol-details.cjs.entry.js.map +1 -1
  84. package/dist/cjs/kol-drawer.cjs.entry.js +1 -1
  85. package/dist/cjs/kol-drawer.cjs.entry.js.map +1 -1
  86. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  87. package/dist/cjs/kol-form.cjs.entry.js.map +1 -1
  88. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  89. package/dist/cjs/kol-heading.cjs.entry.js.map +1 -1
  90. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  91. package/dist/cjs/kol-icon.cjs.entry.js.map +1 -1
  92. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  93. package/dist/cjs/kol-image.cjs.entry.js.map +1 -1
  94. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  95. package/dist/cjs/kol-input-checkbox.cjs.entry.js.map +1 -1
  96. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  97. package/dist/cjs/kol-input-color.cjs.entry.js.map +1 -1
  98. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  99. package/dist/cjs/kol-input-date.cjs.entry.js.map +1 -1
  100. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  101. package/dist/cjs/kol-input-email.cjs.entry.js.map +1 -1
  102. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  103. package/dist/cjs/kol-input-file.cjs.entry.js.map +1 -1
  104. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  105. package/dist/cjs/kol-input-number.cjs.entry.js.map +1 -1
  106. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  107. package/dist/cjs/kol-input-password.cjs.entry.js.map +1 -1
  108. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  109. package/dist/cjs/kol-input-radio.cjs.entry.js.map +1 -1
  110. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  111. package/dist/cjs/kol-input-range.cjs.entry.js.map +1 -1
  112. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  113. package/dist/cjs/kol-input-text.cjs.entry.js.map +1 -1
  114. package/dist/cjs/kol-input.cjs.entry.js +1 -1
  115. package/dist/cjs/kol-input.cjs.entry.js.map +1 -1
  116. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  117. package/dist/cjs/kol-kolibri.cjs.entry.js.map +1 -1
  118. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  119. package/dist/cjs/kol-link-button.cjs.entry.js.map +1 -1
  120. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  121. package/dist/cjs/kol-link-wc.cjs.entry.js.map +1 -1
  122. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  123. package/dist/cjs/kol-link.cjs.entry.js.map +1 -1
  124. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  125. package/dist/cjs/kol-modal.cjs.entry.js.map +1 -1
  126. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  127. package/dist/cjs/kol-nav.cjs.entry.js.map +1 -1
  128. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  129. package/dist/cjs/kol-pagination.cjs.entry.js.map +1 -1
  130. package/dist/cjs/kol-popover-button.cjs.entry.js +4 -0
  131. package/dist/cjs/kol-popover-button.cjs.entry.js.map +1 -0
  132. package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
  133. package/dist/cjs/kol-popover-wc.cjs.entry.js.map +1 -1
  134. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  135. package/dist/cjs/kol-progress.cjs.entry.js.map +1 -1
  136. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  137. package/dist/cjs/kol-quote.cjs.entry.js.map +1 -1
  138. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  139. package/dist/cjs/kol-select.cjs.entry.js.map +1 -1
  140. package/dist/cjs/kol-single-select.cjs.entry.js +1 -1
  141. package/dist/cjs/kol-single-select.cjs.entry.js.map +1 -1
  142. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  143. package/dist/cjs/kol-skip-nav.cjs.entry.js.map +1 -1
  144. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  145. package/dist/cjs/kol-spin.cjs.entry.js.map +1 -1
  146. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  147. package/dist/cjs/kol-split-button.cjs.entry.js.map +1 -1
  148. package/dist/cjs/kol-table-stateful.cjs.entry.js +1 -1
  149. package/dist/cjs/kol-table-stateful.cjs.entry.js.map +1 -1
  150. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js +1 -1
  151. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js.map +1 -1
  152. package/dist/cjs/kol-table-stateless.cjs.entry.js +1 -1
  153. package/dist/cjs/kol-table-stateless.cjs.entry.js.map +1 -1
  154. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  155. package/dist/cjs/kol-tabs.cjs.entry.js.map +1 -1
  156. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  157. package/dist/cjs/kol-textarea.cjs.entry.js.map +1 -1
  158. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  159. package/dist/cjs/kol-toast-container.cjs.entry.js.map +1 -1
  160. package/dist/cjs/kol-toolbar.cjs.entry.js +1 -1
  161. package/dist/cjs/kol-toolbar.cjs.entry.js.map +1 -1
  162. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +1 -1
  163. package/dist/cjs/kol-tooltip-wc.cjs.entry.js.map +1 -1
  164. package/dist/cjs/kol-tree-item-wc.cjs.entry.js +1 -1
  165. package/dist/cjs/kol-tree-item-wc.cjs.entry.js.map +1 -1
  166. package/dist/cjs/kol-tree-item.cjs.entry.js +1 -1
  167. package/dist/cjs/kol-tree-item.cjs.entry.js.map +1 -1
  168. package/dist/cjs/kol-tree-wc.cjs.entry.js +1 -1
  169. package/dist/cjs/kol-tree-wc.cjs.entry.js.map +1 -1
  170. package/dist/cjs/kol-tree.cjs.entry.js +1 -1
  171. package/dist/cjs/kol-tree.cjs.entry.js.map +1 -1
  172. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  173. package/dist/cjs/kol-version.cjs.entry.js.map +1 -1
  174. package/dist/cjs/kolibri.cjs.js +1 -1
  175. package/dist/cjs/loader.cjs.js +1 -1
  176. package/dist/cjs/test-component.cjs.entry.js +1 -1
  177. package/dist/cjs/tslib.es6-5e301284.js.map +1 -0
  178. package/dist/components/Alert.js +1 -1
  179. package/dist/components/Alert.js.map +1 -1
  180. package/dist/components/Collapsible.js +1 -1
  181. package/dist/components/Collapsible.js.map +1 -1
  182. package/dist/components/CustomSuggestionsOptionsGroup.js +4 -0
  183. package/dist/components/CustomSuggestionsOptionsGroup.js.map +1 -0
  184. package/dist/components/FieldControlStateWrapper.js +4 -0
  185. package/dist/components/FieldControlStateWrapper.js.map +1 -0
  186. package/dist/components/FormFieldMsg.js +1 -1
  187. package/dist/components/FormFieldMsg.js.map +1 -1
  188. package/dist/components/Heading.js +4 -0
  189. package/dist/components/Heading.js.map +1 -0
  190. package/dist/components/Icon.js +4 -0
  191. package/dist/components/Icon.js.map +1 -0
  192. package/dist/components/Input.js +4 -0
  193. package/dist/components/Input.js.map +1 -0
  194. package/dist/components/InputContainerStateWrapper.js +4 -0
  195. package/dist/components/InputContainerStateWrapper.js.map +1 -0
  196. package/dist/components/InputStateWrapper.js +4 -0
  197. package/dist/components/InputStateWrapper.js.map +1 -0
  198. package/dist/components/InternalUnderlinedBadgeText.js +1 -1
  199. package/dist/components/InternalUnderlinedBadgeText.js.map +1 -1
  200. package/dist/components/Span.js +4 -0
  201. package/dist/components/Span.js.map +1 -0
  202. package/dist/components/{aria-expanded.js → button-variant.js} +1 -1
  203. package/dist/components/button-variant.js.map +1 -0
  204. package/dist/components/callback.js +4 -0
  205. package/dist/components/callback.js.map +1 -0
  206. package/dist/components/component-names.js +1 -1
  207. package/dist/components/component-names.js.map +1 -1
  208. package/dist/components/controller.js +1 -1
  209. package/dist/components/controller2.js +1 -1
  210. package/dist/components/controller2.js.map +1 -1
  211. package/dist/components/controller3.js +1 -1
  212. package/dist/components/controller3.js.map +1 -1
  213. package/dist/components/controller4.js +1 -1
  214. package/dist/components/controller4.js.map +1 -1
  215. package/dist/components/events.js +1 -1
  216. package/dist/components/events.js.map +1 -1
  217. package/dist/components/getRenderStates.js +4 -0
  218. package/dist/components/getRenderStates.js.map +1 -0
  219. package/dist/components/index.js +1 -1
  220. package/dist/components/index.js.map +1 -1
  221. package/dist/components/isObject.js +4 -0
  222. package/dist/components/isObject.js.map +1 -0
  223. package/dist/components/kol-abbr.js +1 -1
  224. package/dist/components/kol-abbr.js.map +1 -1
  225. package/dist/components/kol-accordion.js +1 -1
  226. package/dist/components/kol-accordion.js.map +1 -1
  227. package/dist/components/kol-alert-wc.js +1 -1
  228. package/dist/components/kol-alert-wc.js.map +1 -1
  229. package/dist/components/kol-alert.js +1 -1
  230. package/dist/components/kol-alert.js.map +1 -1
  231. package/dist/components/kol-avatar-wc.js +1 -1
  232. package/dist/components/kol-avatar-wc.js.map +1 -1
  233. package/dist/components/kol-avatar.js +1 -1
  234. package/dist/components/kol-avatar.js.map +1 -1
  235. package/dist/components/kol-badge.js +1 -1
  236. package/dist/components/kol-badge.js.map +1 -1
  237. package/dist/components/kol-breadcrumb.js +1 -1
  238. package/dist/components/kol-breadcrumb.js.map +1 -1
  239. package/dist/components/kol-button-link.js +1 -1
  240. package/dist/components/kol-button-link.js.map +1 -1
  241. package/dist/components/kol-button-wc.js +1 -1
  242. package/dist/components/kol-button-wc.js.map +1 -1
  243. package/dist/components/kol-button.js +1 -1
  244. package/dist/components/kol-button.js.map +1 -1
  245. package/dist/components/kol-card.js +1 -1
  246. package/dist/components/kol-card.js.map +1 -1
  247. package/dist/components/kol-combobox.js +1 -1
  248. package/dist/components/kol-combobox.js.map +1 -1
  249. package/dist/components/kol-details.js +1 -1
  250. package/dist/components/kol-details.js.map +1 -1
  251. package/dist/components/kol-drawer.js +1 -1
  252. package/dist/components/kol-drawer.js.map +1 -1
  253. package/dist/components/kol-form.js +1 -1
  254. package/dist/components/kol-form.js.map +1 -1
  255. package/dist/components/kol-heading.js +1 -1
  256. package/dist/components/kol-heading.js.map +1 -1
  257. package/dist/components/kol-icon.js +1 -1
  258. package/dist/components/kol-icon.js.map +1 -1
  259. package/dist/components/kol-image.js +1 -1
  260. package/dist/components/kol-image.js.map +1 -1
  261. package/dist/components/kol-input-checkbox.js +1 -1
  262. package/dist/components/kol-input-checkbox.js.map +1 -1
  263. package/dist/components/kol-input-color.js +1 -1
  264. package/dist/components/kol-input-color.js.map +1 -1
  265. package/dist/components/kol-input-date.js +1 -1
  266. package/dist/components/kol-input-date.js.map +1 -1
  267. package/dist/components/kol-input-email.js +1 -1
  268. package/dist/components/kol-input-email.js.map +1 -1
  269. package/dist/components/kol-input-file.js +1 -1
  270. package/dist/components/kol-input-file.js.map +1 -1
  271. package/dist/components/kol-input-number.js +1 -1
  272. package/dist/components/kol-input-number.js.map +1 -1
  273. package/dist/components/kol-input-password.js +1 -1
  274. package/dist/components/kol-input-password.js.map +1 -1
  275. package/dist/components/kol-input-radio.js +1 -1
  276. package/dist/components/kol-input-radio.js.map +1 -1
  277. package/dist/components/kol-input-range.js +1 -1
  278. package/dist/components/kol-input-range.js.map +1 -1
  279. package/dist/components/kol-input-text.js +1 -1
  280. package/dist/components/kol-input-text.js.map +1 -1
  281. package/dist/components/kol-input.js +1 -1
  282. package/dist/components/kol-input.js.map +1 -1
  283. package/dist/components/kol-kolibri.js +1 -1
  284. package/dist/components/kol-kolibri.js.map +1 -1
  285. package/dist/components/kol-link-button.js +1 -1
  286. package/dist/components/kol-link-button.js.map +1 -1
  287. package/dist/components/kol-link-wc.js +1 -1
  288. package/dist/components/kol-link-wc.js.map +1 -1
  289. package/dist/components/kol-link.js +1 -1
  290. package/dist/components/kol-link.js.map +1 -1
  291. package/dist/components/kol-modal.js +1 -1
  292. package/dist/components/kol-modal.js.map +1 -1
  293. package/dist/components/kol-nav.js +1 -1
  294. package/dist/components/kol-nav.js.map +1 -1
  295. package/dist/components/kol-pagination.js +1 -1
  296. package/dist/components/kol-pagination.js.map +1 -1
  297. package/dist/components/{kol-button-group-wc.d.ts → kol-popover-button.d.ts} +4 -4
  298. package/dist/components/kol-popover-button.js +4 -0
  299. package/dist/components/kol-popover-button.js.map +1 -0
  300. package/dist/components/kol-popover-wc.js +1 -1
  301. package/dist/components/kol-popover-wc.js.map +1 -1
  302. package/dist/components/kol-progress.js +1 -1
  303. package/dist/components/kol-progress.js.map +1 -1
  304. package/dist/components/kol-quote.js +1 -1
  305. package/dist/components/kol-quote.js.map +1 -1
  306. package/dist/components/kol-select.js +1 -1
  307. package/dist/components/kol-select.js.map +1 -1
  308. package/dist/components/kol-single-select.js +1 -1
  309. package/dist/components/kol-single-select.js.map +1 -1
  310. package/dist/components/kol-skip-nav.js +1 -1
  311. package/dist/components/kol-skip-nav.js.map +1 -1
  312. package/dist/components/kol-spin.js +1 -1
  313. package/dist/components/kol-spin.js.map +1 -1
  314. package/dist/components/kol-split-button.js +1 -1
  315. package/dist/components/kol-split-button.js.map +1 -1
  316. package/dist/components/kol-table-stateful.js +1 -1
  317. package/dist/components/kol-table-stateful.js.map +1 -1
  318. package/dist/components/kol-table-stateless-wc.js +1 -1
  319. package/dist/components/kol-table-stateless-wc.js.map +1 -1
  320. package/dist/components/kol-table-stateless.js +1 -1
  321. package/dist/components/kol-table-stateless.js.map +1 -1
  322. package/dist/components/kol-tabs.js +1 -1
  323. package/dist/components/kol-tabs.js.map +1 -1
  324. package/dist/components/kol-textarea.js +1 -1
  325. package/dist/components/kol-textarea.js.map +1 -1
  326. package/dist/components/kol-toast-container.js +1 -1
  327. package/dist/components/kol-toast-container.js.map +1 -1
  328. package/dist/components/kol-toolbar.js +1 -1
  329. package/dist/components/kol-toolbar.js.map +1 -1
  330. package/dist/components/kol-tooltip-wc.js +1 -1
  331. package/dist/components/kol-tooltip-wc.js.map +1 -1
  332. package/dist/components/kol-tree-item-wc.js +1 -1
  333. package/dist/components/kol-tree-item-wc.js.map +1 -1
  334. package/dist/components/kol-tree-item.js +1 -1
  335. package/dist/components/kol-tree-item.js.map +1 -1
  336. package/dist/components/kol-tree-wc.js +1 -1
  337. package/dist/components/kol-tree-wc.js.map +1 -1
  338. package/dist/components/kol-tree.js +1 -1
  339. package/dist/components/kol-tree.js.map +1 -1
  340. package/dist/components/kol-version.js +1 -1
  341. package/dist/components/kol-version.js.map +1 -1
  342. package/dist/components/tslib.es6.js.map +1 -1
  343. package/dist/esm/Alert-ee7dcaa7.js +4 -0
  344. package/dist/esm/Alert-ee7dcaa7.js.map +1 -0
  345. package/dist/esm/Collapsible-9dbf3e00.js +4 -0
  346. package/dist/esm/Collapsible-9dbf3e00.js.map +1 -0
  347. package/dist/esm/CustomSuggestionsOptionsGroup-15302af4.js +4 -0
  348. package/dist/esm/CustomSuggestionsOptionsGroup-15302af4.js.map +1 -0
  349. package/dist/esm/FieldControlStateWrapper-a5049927.js +4 -0
  350. package/dist/esm/FieldControlStateWrapper-a5049927.js.map +1 -0
  351. package/dist/esm/FormFieldMsg-f1c6a975.js +4 -0
  352. package/dist/esm/FormFieldMsg-f1c6a975.js.map +1 -0
  353. package/dist/esm/Heading-e1db538b.js +4 -0
  354. package/dist/esm/Heading-e1db538b.js.map +1 -0
  355. package/dist/esm/Icon-1eca6817.js +4 -0
  356. package/dist/esm/Icon-1eca6817.js.map +1 -0
  357. package/dist/esm/Input-cc85529a.js +4 -0
  358. package/dist/esm/Input-cc85529a.js.map +1 -0
  359. package/dist/esm/InputStateWrapper-3d255d22.js +4 -0
  360. package/dist/esm/InputStateWrapper-3d255d22.js.map +1 -0
  361. package/dist/esm/InternalUnderlinedBadgeText-738f2cd0.js +4 -0
  362. package/dist/esm/InternalUnderlinedBadgeText-738f2cd0.js.map +1 -0
  363. package/dist/esm/Span-a19668ac.js +4 -0
  364. package/dist/esm/Span-a19668ac.js.map +1 -0
  365. package/dist/esm/{align-82100bda.js → align-4719d626.js} +1 -1
  366. package/dist/esm/{align-82100bda.js.map → align-4719d626.js.map} +1 -1
  367. package/dist/esm/{app-globals-9c57779d.js → app-globals-6d7eac5a.js} +1 -1
  368. package/dist/esm/{app-globals-9c57779d.js.map → app-globals-6d7eac5a.js.map} +1 -1
  369. package/dist/esm/{aria-expanded-ec1ec6df.js → button-variant-ce5f212b.js} +1 -1
  370. package/dist/esm/button-variant-ce5f212b.js.map +1 -0
  371. package/dist/esm/callback-fd6ab619.js +4 -0
  372. package/dist/esm/callback-fd6ab619.js.map +1 -0
  373. package/dist/esm/{common-0f1f2276.js → common-54bf85ba.js} +1 -1
  374. package/dist/esm/{common-0f1f2276.js.map → common-54bf85ba.js.map} +1 -1
  375. package/dist/esm/component-names-545d6582.js +4 -0
  376. package/dist/esm/component-names-545d6582.js.map +1 -0
  377. package/dist/esm/{controller-9c6419a9.js → controller-0953b02a.js} +1 -1
  378. package/dist/esm/{controller-9c6419a9.js.map → controller-0953b02a.js.map} +1 -1
  379. package/dist/esm/controller-2be0e2ad.js +4 -0
  380. package/dist/esm/{controller-964599c0.js.map → controller-2be0e2ad.js.map} +1 -1
  381. package/dist/esm/{controller-07000871.js → controller-a26ccfc4.js} +1 -1
  382. package/dist/esm/{controller-07000871.js.map → controller-a26ccfc4.js.map} +1 -1
  383. package/dist/esm/{controller-d66d5bed.js → controller-f84a4671.js} +1 -1
  384. package/dist/esm/{controller-d66d5bed.js.map → controller-f84a4671.js.map} +1 -1
  385. package/dist/esm/controller-icon-b0799db4.js +4 -0
  386. package/dist/esm/controller-icon-b0799db4.js.map +1 -0
  387. package/dist/esm/{dev.utils-e6830118.js → dev.utils-f9d0242d.js} +1 -1
  388. package/dist/esm/{dev.utils-e6830118.js.map → dev.utils-f9d0242d.js.map} +1 -1
  389. package/dist/esm/{devtools-f3ad27b2.js → devtools-87a9e4de.js} +1 -1
  390. package/dist/esm/{devtools-f3ad27b2.js.map → devtools-87a9e4de.js.map} +1 -1
  391. package/dist/esm/events-5adf6b62.js +4 -0
  392. package/dist/esm/events-5adf6b62.js.map +1 -0
  393. package/dist/esm/getRenderStates-8b6bedc5.js +4 -0
  394. package/dist/esm/getRenderStates-8b6bedc5.js.map +1 -0
  395. package/dist/esm/{icons-e1a5023e.js → icons-199f1746.js} +1 -1
  396. package/dist/esm/{icons-e1a5023e.js.map → icons-199f1746.js.map} +1 -1
  397. package/dist/esm/index-06658c3d.js +4 -0
  398. package/dist/esm/index-06658c3d.js.map +1 -0
  399. package/dist/esm/index.js +1 -1
  400. package/dist/esm/index.js.map +1 -1
  401. package/dist/esm/isObject-ffcbbb76.js +4 -0
  402. package/dist/esm/isObject-ffcbbb76.js.map +1 -0
  403. package/dist/esm/kol-abbr.entry.js +1 -1
  404. package/dist/esm/kol-abbr.entry.js.map +1 -1
  405. package/dist/esm/kol-accordion.entry.js +1 -1
  406. package/dist/esm/kol-accordion.entry.js.map +1 -1
  407. package/dist/esm/kol-alert-wc.entry.js +1 -1
  408. package/dist/esm/kol-alert-wc.entry.js.map +1 -1
  409. package/dist/esm/kol-alert.entry.js +1 -1
  410. package/dist/esm/kol-alert.entry.js.map +1 -1
  411. package/dist/esm/kol-avatar-wc.entry.js +1 -1
  412. package/dist/esm/kol-avatar-wc.entry.js.map +1 -1
  413. package/dist/esm/kol-avatar.entry.js +1 -1
  414. package/dist/esm/kol-avatar.entry.js.map +1 -1
  415. package/dist/esm/kol-badge.entry.js +1 -1
  416. package/dist/esm/kol-badge.entry.js.map +1 -1
  417. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  418. package/dist/esm/kol-breadcrumb.entry.js.map +1 -1
  419. package/dist/esm/kol-button-link.entry.js +1 -1
  420. package/dist/esm/kol-button-link.entry.js.map +1 -1
  421. package/dist/esm/kol-button-wc.entry.js +1 -1
  422. package/dist/esm/kol-button-wc.entry.js.map +1 -1
  423. package/dist/esm/kol-button.entry.js +1 -1
  424. package/dist/esm/kol-button.entry.js.map +1 -1
  425. package/dist/esm/kol-card.entry.js +1 -1
  426. package/dist/esm/kol-card.entry.js.map +1 -1
  427. package/dist/esm/kol-combobox.entry.js +1 -1
  428. package/dist/esm/kol-combobox.entry.js.map +1 -1
  429. package/dist/esm/kol-details.entry.js +1 -1
  430. package/dist/esm/kol-details.entry.js.map +1 -1
  431. package/dist/esm/kol-drawer.entry.js +1 -1
  432. package/dist/esm/kol-drawer.entry.js.map +1 -1
  433. package/dist/esm/kol-form.entry.js +1 -1
  434. package/dist/esm/kol-form.entry.js.map +1 -1
  435. package/dist/esm/kol-heading.entry.js +1 -1
  436. package/dist/esm/kol-heading.entry.js.map +1 -1
  437. package/dist/esm/kol-icon.entry.js +1 -1
  438. package/dist/esm/kol-icon.entry.js.map +1 -1
  439. package/dist/esm/kol-image.entry.js +1 -1
  440. package/dist/esm/kol-image.entry.js.map +1 -1
  441. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  442. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  443. package/dist/esm/kol-input-color.entry.js +1 -1
  444. package/dist/esm/kol-input-color.entry.js.map +1 -1
  445. package/dist/esm/kol-input-date.entry.js +1 -1
  446. package/dist/esm/kol-input-date.entry.js.map +1 -1
  447. package/dist/esm/kol-input-email.entry.js +1 -1
  448. package/dist/esm/kol-input-email.entry.js.map +1 -1
  449. package/dist/esm/kol-input-file.entry.js +1 -1
  450. package/dist/esm/kol-input-file.entry.js.map +1 -1
  451. package/dist/esm/kol-input-number.entry.js +1 -1
  452. package/dist/esm/kol-input-number.entry.js.map +1 -1
  453. package/dist/esm/kol-input-password.entry.js +1 -1
  454. package/dist/esm/kol-input-password.entry.js.map +1 -1
  455. package/dist/esm/kol-input-radio.entry.js +1 -1
  456. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  457. package/dist/esm/kol-input-range.entry.js +1 -1
  458. package/dist/esm/kol-input-range.entry.js.map +1 -1
  459. package/dist/esm/kol-input-text.entry.js +1 -1
  460. package/dist/esm/kol-input-text.entry.js.map +1 -1
  461. package/dist/esm/kol-input.entry.js +1 -1
  462. package/dist/esm/kol-input.entry.js.map +1 -1
  463. package/dist/esm/kol-kolibri.entry.js +1 -1
  464. package/dist/esm/kol-kolibri.entry.js.map +1 -1
  465. package/dist/esm/kol-link-button.entry.js +1 -1
  466. package/dist/esm/kol-link-button.entry.js.map +1 -1
  467. package/dist/esm/kol-link-wc.entry.js +1 -1
  468. package/dist/esm/kol-link-wc.entry.js.map +1 -1
  469. package/dist/esm/kol-link.entry.js +1 -1
  470. package/dist/esm/kol-link.entry.js.map +1 -1
  471. package/dist/esm/kol-modal.entry.js +1 -1
  472. package/dist/esm/kol-modal.entry.js.map +1 -1
  473. package/dist/esm/kol-nav.entry.js +1 -1
  474. package/dist/esm/kol-nav.entry.js.map +1 -1
  475. package/dist/esm/kol-pagination.entry.js +1 -1
  476. package/dist/esm/kol-pagination.entry.js.map +1 -1
  477. package/dist/esm/kol-popover-button.entry.js +4 -0
  478. package/dist/esm/kol-popover-button.entry.js.map +1 -0
  479. package/dist/esm/kol-popover-wc.entry.js +1 -1
  480. package/dist/esm/kol-popover-wc.entry.js.map +1 -1
  481. package/dist/esm/kol-progress.entry.js +1 -1
  482. package/dist/esm/kol-progress.entry.js.map +1 -1
  483. package/dist/esm/kol-quote.entry.js +1 -1
  484. package/dist/esm/kol-quote.entry.js.map +1 -1
  485. package/dist/esm/kol-select.entry.js +1 -1
  486. package/dist/esm/kol-select.entry.js.map +1 -1
  487. package/dist/esm/kol-single-select.entry.js +1 -1
  488. package/dist/esm/kol-single-select.entry.js.map +1 -1
  489. package/dist/esm/kol-skip-nav.entry.js +1 -1
  490. package/dist/esm/kol-skip-nav.entry.js.map +1 -1
  491. package/dist/esm/kol-spin.entry.js +1 -1
  492. package/dist/esm/kol-spin.entry.js.map +1 -1
  493. package/dist/esm/kol-split-button.entry.js +1 -1
  494. package/dist/esm/kol-split-button.entry.js.map +1 -1
  495. package/dist/esm/kol-table-stateful.entry.js +1 -1
  496. package/dist/esm/kol-table-stateful.entry.js.map +1 -1
  497. package/dist/esm/kol-table-stateless-wc.entry.js +1 -1
  498. package/dist/esm/kol-table-stateless-wc.entry.js.map +1 -1
  499. package/dist/esm/kol-table-stateless.entry.js +1 -1
  500. package/dist/esm/kol-table-stateless.entry.js.map +1 -1
  501. package/dist/esm/kol-tabs.entry.js +1 -1
  502. package/dist/esm/kol-tabs.entry.js.map +1 -1
  503. package/dist/esm/kol-textarea.entry.js +1 -1
  504. package/dist/esm/kol-textarea.entry.js.map +1 -1
  505. package/dist/esm/kol-toast-container.entry.js +1 -1
  506. package/dist/esm/kol-toast-container.entry.js.map +1 -1
  507. package/dist/esm/kol-toolbar.entry.js +1 -1
  508. package/dist/esm/kol-toolbar.entry.js.map +1 -1
  509. package/dist/esm/kol-tooltip-wc.entry.js +1 -1
  510. package/dist/esm/kol-tooltip-wc.entry.js.map +1 -1
  511. package/dist/esm/kol-tree-item-wc.entry.js +1 -1
  512. package/dist/esm/kol-tree-item-wc.entry.js.map +1 -1
  513. package/dist/esm/kol-tree-item.entry.js +1 -1
  514. package/dist/esm/kol-tree-item.entry.js.map +1 -1
  515. package/dist/esm/kol-tree-wc.entry.js +1 -1
  516. package/dist/esm/kol-tree-wc.entry.js.map +1 -1
  517. package/dist/esm/kol-tree.entry.js +1 -1
  518. package/dist/esm/kol-tree.entry.js.map +1 -1
  519. package/dist/esm/kol-version.entry.js +1 -1
  520. package/dist/esm/kol-version.entry.js.map +1 -1
  521. package/dist/esm/kolibri.js +1 -1
  522. package/dist/esm/loader.js +1 -1
  523. package/dist/esm/test-component.entry.js +1 -1
  524. package/dist/esm/{tooltip-align-3e629203.js → tooltip-align-8e0fa436.js} +1 -1
  525. package/dist/esm/{tooltip-align-3e629203.js.map → tooltip-align-8e0fa436.js.map} +1 -1
  526. package/dist/esm/tslib.es6-1173d062.js.map +1 -0
  527. package/dist/kolibri/Alert-ee7dcaa7.js +4 -0
  528. package/dist/kolibri/Alert-ee7dcaa7.js.map +1 -0
  529. package/dist/kolibri/Collapsible-9dbf3e00.js +4 -0
  530. package/dist/kolibri/Collapsible-9dbf3e00.js.map +1 -0
  531. package/dist/kolibri/CustomSuggestionsOptionsGroup-15302af4.js +4 -0
  532. package/dist/kolibri/CustomSuggestionsOptionsGroup-15302af4.js.map +1 -0
  533. package/dist/kolibri/FieldControlStateWrapper-a5049927.js +4 -0
  534. package/dist/kolibri/FieldControlStateWrapper-a5049927.js.map +1 -0
  535. package/dist/kolibri/FormFieldMsg-f1c6a975.js +4 -0
  536. package/dist/kolibri/FormFieldMsg-f1c6a975.js.map +1 -0
  537. package/dist/kolibri/Heading-e1db538b.js +4 -0
  538. package/dist/kolibri/Heading-e1db538b.js.map +1 -0
  539. package/dist/kolibri/Icon-1eca6817.js +4 -0
  540. package/dist/kolibri/Icon-1eca6817.js.map +1 -0
  541. package/dist/kolibri/Input-cc85529a.js +4 -0
  542. package/dist/kolibri/Input-cc85529a.js.map +1 -0
  543. package/dist/kolibri/InputStateWrapper-3d255d22.js +4 -0
  544. package/dist/kolibri/InputStateWrapper-3d255d22.js.map +1 -0
  545. package/dist/kolibri/InternalUnderlinedBadgeText-738f2cd0.js +4 -0
  546. package/dist/kolibri/InternalUnderlinedBadgeText-738f2cd0.js.map +1 -0
  547. package/dist/kolibri/Span-a19668ac.js +4 -0
  548. package/dist/kolibri/Span-a19668ac.js.map +1 -0
  549. package/dist/kolibri/{align-82100bda.js → align-4719d626.js} +1 -1
  550. package/dist/kolibri/app-globals-6d7eac5a.js +4 -0
  551. package/dist/kolibri/button-variant-ce5f212b.js +4 -0
  552. package/dist/kolibri/button-variant-ce5f212b.js.map +1 -0
  553. package/dist/kolibri/callback-fd6ab619.js +4 -0
  554. package/dist/kolibri/callback-fd6ab619.js.map +1 -0
  555. package/dist/kolibri/{common-0f1f2276.js → common-54bf85ba.js} +1 -1
  556. package/dist/kolibri/component-names-545d6582.js +4 -0
  557. package/dist/kolibri/component-names-545d6582.js.map +1 -0
  558. package/dist/kolibri/{controller-9c6419a9.js → controller-0953b02a.js} +1 -1
  559. package/dist/kolibri/controller-2be0e2ad.js +4 -0
  560. package/dist/kolibri/{controller-964599c0.js.map → controller-2be0e2ad.js.map} +1 -1
  561. package/dist/kolibri/{controller-07000871.js → controller-a26ccfc4.js} +1 -1
  562. package/dist/kolibri/controller-f84a4671.js +4 -0
  563. package/dist/kolibri/controller-icon-b0799db4.js +4 -0
  564. package/dist/kolibri/controller-icon-b0799db4.js.map +1 -0
  565. package/dist/kolibri/{dev.utils-e6830118.js → dev.utils-f9d0242d.js} +1 -1
  566. package/dist/kolibri/{devtools-f3ad27b2.js → devtools-87a9e4de.js} +1 -1
  567. package/dist/kolibri/events-5adf6b62.js +4 -0
  568. package/dist/kolibri/events-5adf6b62.js.map +1 -0
  569. package/dist/kolibri/getRenderStates-8b6bedc5.js +4 -0
  570. package/dist/kolibri/getRenderStates-8b6bedc5.js.map +1 -0
  571. package/dist/kolibri/{icons-e1a5023e.js → icons-199f1746.js} +1 -1
  572. package/dist/kolibri/{index-58121290.js → index-06658c3d.js} +2 -2
  573. package/dist/kolibri/index-06658c3d.js.map +1 -0
  574. package/dist/kolibri/index.esm.js +1 -1
  575. package/dist/kolibri/index.esm.js.map +1 -1
  576. package/dist/kolibri/isObject-ffcbbb76.js +4 -0
  577. package/dist/kolibri/isObject-ffcbbb76.js.map +1 -0
  578. package/dist/kolibri/kol-abbr.entry.js +1 -1
  579. package/dist/kolibri/kol-abbr.entry.js.map +1 -1
  580. package/dist/kolibri/kol-accordion.entry.js +1 -1
  581. package/dist/kolibri/kol-accordion.entry.js.map +1 -1
  582. package/dist/kolibri/kol-alert-wc.entry.js +1 -1
  583. package/dist/kolibri/kol-alert-wc.entry.js.map +1 -1
  584. package/dist/kolibri/kol-alert.entry.js +1 -1
  585. package/dist/kolibri/kol-alert.entry.js.map +1 -1
  586. package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
  587. package/dist/kolibri/kol-avatar-wc.entry.js.map +1 -1
  588. package/dist/kolibri/kol-avatar.entry.js +1 -1
  589. package/dist/kolibri/kol-avatar.entry.js.map +1 -1
  590. package/dist/kolibri/kol-badge.entry.js +1 -1
  591. package/dist/kolibri/kol-badge.entry.js.map +1 -1
  592. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  593. package/dist/kolibri/kol-breadcrumb.entry.js.map +1 -1
  594. package/dist/kolibri/kol-button-link.entry.js +1 -1
  595. package/dist/kolibri/kol-button-link.entry.js.map +1 -1
  596. package/dist/kolibri/kol-button-wc.entry.js +1 -1
  597. package/dist/kolibri/kol-button-wc.entry.js.map +1 -1
  598. package/dist/kolibri/kol-button.entry.js +1 -1
  599. package/dist/kolibri/kol-button.entry.js.map +1 -1
  600. package/dist/kolibri/kol-card.entry.js +1 -1
  601. package/dist/kolibri/kol-card.entry.js.map +1 -1
  602. package/dist/kolibri/kol-combobox.entry.js +1 -1
  603. package/dist/kolibri/kol-combobox.entry.js.map +1 -1
  604. package/dist/kolibri/kol-details.entry.js +1 -1
  605. package/dist/kolibri/kol-details.entry.js.map +1 -1
  606. package/dist/kolibri/kol-drawer.entry.js +1 -1
  607. package/dist/kolibri/kol-drawer.entry.js.map +1 -1
  608. package/dist/kolibri/kol-form.entry.js +1 -1
  609. package/dist/kolibri/kol-form.entry.js.map +1 -1
  610. package/dist/kolibri/kol-heading.entry.js +1 -1
  611. package/dist/kolibri/kol-heading.entry.js.map +1 -1
  612. package/dist/kolibri/kol-icon.entry.js +1 -1
  613. package/dist/kolibri/kol-icon.entry.js.map +1 -1
  614. package/dist/kolibri/kol-image.entry.js +1 -1
  615. package/dist/kolibri/kol-image.entry.js.map +1 -1
  616. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  617. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  618. package/dist/kolibri/kol-input-color.entry.js +1 -1
  619. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  620. package/dist/kolibri/kol-input-date.entry.js +1 -1
  621. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  622. package/dist/kolibri/kol-input-email.entry.js +1 -1
  623. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  624. package/dist/kolibri/kol-input-file.entry.js +1 -1
  625. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  626. package/dist/kolibri/kol-input-number.entry.js +1 -1
  627. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  628. package/dist/kolibri/kol-input-password.entry.js +1 -1
  629. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  630. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  631. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  632. package/dist/kolibri/kol-input-range.entry.js +1 -1
  633. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  634. package/dist/kolibri/kol-input-text.entry.js +1 -1
  635. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  636. package/dist/kolibri/kol-input.entry.js +1 -1
  637. package/dist/kolibri/kol-input.entry.js.map +1 -1
  638. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  639. package/dist/kolibri/kol-kolibri.entry.js.map +1 -1
  640. package/dist/kolibri/kol-link-button.entry.js +1 -1
  641. package/dist/kolibri/kol-link-button.entry.js.map +1 -1
  642. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  643. package/dist/kolibri/kol-link-wc.entry.js.map +1 -1
  644. package/dist/kolibri/kol-link.entry.js +1 -1
  645. package/dist/kolibri/kol-link.entry.js.map +1 -1
  646. package/dist/kolibri/kol-modal.entry.js +1 -1
  647. package/dist/kolibri/kol-modal.entry.js.map +1 -1
  648. package/dist/kolibri/kol-nav.entry.js +1 -1
  649. package/dist/kolibri/kol-nav.entry.js.map +1 -1
  650. package/dist/kolibri/kol-pagination.entry.js +1 -1
  651. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  652. package/dist/kolibri/kol-popover-button.entry.js +4 -0
  653. package/dist/kolibri/kol-popover-button.entry.js.map +1 -0
  654. package/dist/kolibri/kol-popover-wc.entry.js +1 -1
  655. package/dist/kolibri/kol-popover-wc.entry.js.map +1 -1
  656. package/dist/kolibri/kol-progress.entry.js +1 -1
  657. package/dist/kolibri/kol-progress.entry.js.map +1 -1
  658. package/dist/kolibri/kol-quote.entry.js +1 -1
  659. package/dist/kolibri/kol-quote.entry.js.map +1 -1
  660. package/dist/kolibri/kol-select.entry.js +1 -1
  661. package/dist/kolibri/kol-select.entry.js.map +1 -1
  662. package/dist/kolibri/kol-single-select.entry.js +1 -1
  663. package/dist/kolibri/kol-single-select.entry.js.map +1 -1
  664. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  665. package/dist/kolibri/kol-skip-nav.entry.js.map +1 -1
  666. package/dist/kolibri/kol-spin.entry.js +1 -1
  667. package/dist/kolibri/kol-spin.entry.js.map +1 -1
  668. package/dist/kolibri/kol-split-button.entry.js +1 -1
  669. package/dist/kolibri/kol-split-button.entry.js.map +1 -1
  670. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  671. package/dist/kolibri/kol-table-stateful.entry.js.map +1 -1
  672. package/dist/kolibri/kol-table-stateless-wc.entry.js +1 -1
  673. package/dist/kolibri/kol-table-stateless-wc.entry.js.map +1 -1
  674. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  675. package/dist/kolibri/kol-table-stateless.entry.js.map +1 -1
  676. package/dist/kolibri/kol-tabs.entry.js +1 -1
  677. package/dist/kolibri/kol-tabs.entry.js.map +1 -1
  678. package/dist/kolibri/kol-textarea.entry.js +1 -1
  679. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  680. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  681. package/dist/kolibri/kol-toast-container.entry.js.map +1 -1
  682. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  683. package/dist/kolibri/kol-toolbar.entry.js.map +1 -1
  684. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  685. package/dist/kolibri/kol-tooltip-wc.entry.js.map +1 -1
  686. package/dist/kolibri/kol-tree-item-wc.entry.js +1 -1
  687. package/dist/kolibri/kol-tree-item-wc.entry.js.map +1 -1
  688. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  689. package/dist/kolibri/kol-tree-item.entry.js.map +1 -1
  690. package/dist/kolibri/kol-tree-wc.entry.js +1 -1
  691. package/dist/kolibri/kol-tree-wc.entry.js.map +1 -1
  692. package/dist/kolibri/kol-tree.entry.js +1 -1
  693. package/dist/kolibri/kol-tree.entry.js.map +1 -1
  694. package/dist/kolibri/kol-version.entry.js +1 -1
  695. package/dist/kolibri/kol-version.entry.js.map +1 -1
  696. package/dist/kolibri/kolibri.esm.js +1 -1
  697. package/dist/kolibri/kolibri.esm.js.map +1 -1
  698. package/dist/kolibri/test-component.entry.js +1 -1
  699. package/dist/kolibri/tooltip-align-8e0fa436.js +4 -0
  700. package/dist/kolibri/tslib.es6-1173d062.js.map +1 -0
  701. package/dist/types/components/@deprecated/input/controller.d.ts +3 -3
  702. package/dist/types/components/@deprecated/input/types.d.ts +1 -2
  703. package/dist/types/components/abbr/shadow.d.ts +2 -5
  704. package/dist/types/components/accordion/shadow.d.ts +1 -1
  705. package/dist/types/components/alert/component.d.ts +1 -0
  706. package/dist/types/components/badge/shadow.d.ts +1 -0
  707. package/dist/types/components/button/component.d.ts +1 -0
  708. package/dist/types/components/button/shadow.d.ts +0 -1
  709. package/dist/types/components/button-link/shadow.d.ts +0 -1
  710. package/dist/types/components/card/shadow.d.ts +2 -1
  711. package/dist/types/components/combobox/shadow.d.ts +5 -5
  712. package/dist/types/components/component-list.d.ts +16 -2
  713. package/dist/types/components/details/shadow.d.ts +1 -2
  714. package/dist/types/components/drawer/shadow.d.ts +5 -5
  715. package/dist/types/components/form/shadow.d.ts +1 -0
  716. package/dist/types/components/heading/shadow.d.ts +9 -3
  717. package/dist/types/components/input/component.d.ts +1 -1
  718. package/dist/types/components/input/types.d.ts +2 -2
  719. package/dist/types/components/input-adapter-leanup/controller.d.ts +0 -1
  720. package/dist/types/components/input-adapter-leanup/types.d.ts +0 -1
  721. package/dist/types/components/input-checkbox/shadow.d.ts +7 -9
  722. package/dist/types/components/input-color/shadow.d.ts +8 -8
  723. package/dist/types/components/input-date/shadow.d.ts +7 -8
  724. package/dist/types/components/input-email/shadow.d.ts +5 -8
  725. package/dist/types/components/input-file/controller.d.ts +0 -1
  726. package/dist/types/components/input-file/shadow.d.ts +5 -10
  727. package/dist/types/components/input-number/shadow.d.ts +12 -14
  728. package/dist/types/components/input-password/shadow.d.ts +6 -8
  729. package/dist/types/components/input-radio/shadow.d.ts +7 -9
  730. package/dist/types/components/input-range/shadow.d.ts +8 -8
  731. package/dist/types/components/input-text/shadow.d.ts +7 -8
  732. package/dist/types/components/link/component.d.ts +6 -1
  733. package/dist/types/components/link/shadow.d.ts +0 -1
  734. package/dist/types/components/link-button/shadow.d.ts +0 -1
  735. package/dist/types/components/modal/shadow.d.ts +5 -3
  736. package/dist/types/components/pagination/shadow.d.ts +1 -0
  737. package/dist/types/components/popover-button/shadow.d.ts +39 -0
  738. package/dist/types/components/select/shadow.d.ts +5 -9
  739. package/dist/types/components/single-select/shadow.d.ts +6 -5
  740. package/dist/types/components/table-stateful/shadow.d.ts +3 -6
  741. package/dist/types/components/table-stateless/component.d.ts +4 -2
  742. package/dist/types/components/table-stateless/shadow.d.ts +3 -2
  743. package/dist/types/components/textarea/shadow.d.ts +5 -8
  744. package/dist/types/components.d.ts +399 -958
  745. package/dist/types/core/component-names.d.ts +1 -10
  746. package/dist/types/e2e/index.d.ts +1 -0
  747. package/dist/types/e2e/input-callbacks-and-events.d.ts +9 -0
  748. package/dist/types/e2e/input-value-reflection.d.ts +5 -0
  749. package/dist/types/e2e/utils/FillAction.d.ts +4 -0
  750. package/dist/types/e2e/utils/inputsSelector.d.ts +2 -0
  751. package/dist/types/functional-component-wrappers/CheckboxStateWrapper/CheckboxStateWrapper.d.ts +10 -0
  752. package/dist/types/functional-component-wrappers/CheckboxStateWrapper/index.d.ts +1 -0
  753. package/dist/types/functional-component-wrappers/FieldControlStateWrapper/FieldControlStateWrapper.d.ts +9 -0
  754. package/dist/types/functional-component-wrappers/FieldControlStateWrapper/index.d.ts +1 -0
  755. package/dist/types/functional-component-wrappers/FormFieldStateWrapper/FormFieldStateWrapper.d.ts +9 -0
  756. package/dist/types/functional-component-wrappers/FormFieldStateWrapper/index.d.ts +1 -0
  757. package/dist/types/functional-component-wrappers/InputContainerStateWrapper/InputContainerStateWrapper.d.ts +9 -0
  758. package/dist/types/functional-component-wrappers/InputContainerStateWrapper/index.d.ts +1 -0
  759. package/dist/types/functional-component-wrappers/InputStateWrapper/InputStateWrapper.d.ts +10 -0
  760. package/dist/types/functional-component-wrappers/InputStateWrapper/index.d.ts +1 -0
  761. package/dist/types/functional-component-wrappers/SelectStateWrapper/SelectStateWrapper.d.ts +8 -0
  762. package/dist/types/functional-component-wrappers/SelectStateWrapper/index.d.ts +1 -0
  763. package/dist/types/functional-component-wrappers/TextAreaStateWrapper/TextAreaStateWrapper.d.ts +8 -0
  764. package/dist/types/functional-component-wrappers/TextAreaStateWrapper/index.d.ts +1 -0
  765. package/dist/types/functional-component-wrappers/_helpers/getRenderStates.d.ts +11 -0
  766. package/dist/types/functional-components/Alert/Alert.d.ts +1 -1
  767. package/dist/types/functional-components/Button/Button.d.ts +9 -0
  768. package/dist/types/functional-components/Button/index.d.ts +1 -0
  769. package/dist/types/functional-components/Button/tests/snapshot.test.d.ts +1 -0
  770. package/dist/types/functional-components/Collapsible/Collapsible.d.ts +1 -1
  771. package/dist/types/functional-components/CustomSuggestionsOption/CustomSuggestionsOption.d.ts +11 -0
  772. package/dist/types/functional-components/CustomSuggestionsOption/index.d.ts +1 -0
  773. package/dist/types/functional-components/CustomSuggestionsOption/test/snapshot.test.d.ts +1 -0
  774. package/dist/types/functional-components/CustomSuggestionsOptionsGroup/CustomSuggestionsOptionsGroup.d.ts +7 -0
  775. package/dist/types/functional-components/CustomSuggestionsOptionsGroup/index.d.ts +1 -0
  776. package/dist/types/functional-components/CustomSuggestionsOptionsGroup/test/snapshot.test.d.ts +1 -0
  777. package/dist/types/functional-components/CustomSuggestionsToggle/CustomSuggestionsToggle.d.ts +7 -0
  778. package/dist/types/functional-components/CustomSuggestionsToggle/index.d.ts +1 -0
  779. package/dist/types/functional-components/CustomSuggestionsToggle/test/snapshot.test.d.ts +1 -0
  780. package/dist/types/functional-components/FieldControl/FieldControl.d.ts +31 -0
  781. package/dist/types/functional-components/FieldControl/index.d.ts +1 -0
  782. package/dist/types/functional-components/FormField/FormField.d.ts +41 -0
  783. package/dist/types/functional-components/FormField/index.d.ts +1 -0
  784. package/dist/types/functional-components/FormField/tests/snapshot.test.d.ts +1 -0
  785. package/dist/types/functional-components/FormFieldCounter/FormFieldCounter.d.ts +8 -0
  786. package/dist/types/functional-components/FormFieldCounter/index.d.ts +1 -0
  787. package/dist/types/functional-components/FormFieldCounter/tests/snapshot.test.d.ts +1 -0
  788. package/dist/types/functional-components/FormFieldHint/FormFieldHint.d.ts +8 -0
  789. package/dist/types/functional-components/FormFieldHint/index.d.ts +1 -0
  790. package/dist/types/functional-components/FormFieldHint/tests/snapshot.test.d.ts +1 -0
  791. package/dist/types/functional-components/FormFieldLabel/FormFieldLabel.d.ts +18 -0
  792. package/dist/types/functional-components/FormFieldLabel/index.d.ts +1 -0
  793. package/dist/types/functional-components/FormFieldLabel/tests/snapshot.test.d.ts +1 -0
  794. package/dist/types/functional-components/FormFieldMsg/FormFieldMsg.d.ts +7 -6
  795. package/dist/types/functional-components/FormFieldMsg/tests/snapshort.test.d.ts +1 -0
  796. package/dist/types/functional-components/FormFieldTooltip/FormFieldTooltip.d.ts +12 -0
  797. package/dist/types/functional-components/FormFieldTooltip/index.d.ts +1 -0
  798. package/dist/types/functional-components/FormFieldTooltip/tests/snapshort.test.d.ts +1 -0
  799. package/dist/types/functional-components/Heading/Heading.d.ts +21 -0
  800. package/dist/types/functional-components/Heading/index.d.ts +1 -0
  801. package/dist/types/functional-components/Heading/test/Heading.test.d.ts +1 -0
  802. package/dist/types/functional-components/Heading/test/snapshot.test.d.ts +1 -0
  803. package/dist/types/functional-components/Icon/Icon.d.ts +11 -0
  804. package/dist/types/functional-components/Icon/index.d.ts +1 -0
  805. package/dist/types/functional-components/Icon/tests/snapshot.test.d.ts +1 -0
  806. package/dist/types/functional-components/IconButton/IconButton.d.ts +19 -0
  807. package/dist/types/functional-components/IconButton/index.d.ts +1 -0
  808. package/dist/types/functional-components/IconButton/tests/snapshot.test.d.ts +1 -0
  809. package/dist/types/functional-components/InputAdornment/InputAdornment.d.ts +7 -0
  810. package/dist/types/functional-components/InputAdornment/index.d.ts +1 -0
  811. package/dist/types/functional-components/InputAdornment/tests/snapshot.test.d.ts +1 -0
  812. package/dist/types/functional-components/InputContainer/InputContainer.d.ts +16 -0
  813. package/dist/types/functional-components/InputContainer/index.d.ts +1 -0
  814. package/dist/types/functional-components/InputContainer/tests/snapshot.test.d.ts +1 -0
  815. package/dist/types/functional-components/InternalUnderlinedBadgeText/InternalUnderlinedBadgeText.d.ts +8 -0
  816. package/dist/types/functional-components/InternalUnderlinedBadgeText/index.d.ts +1 -0
  817. package/dist/types/functional-components/Span/IconHelper.d.ts +6 -0
  818. package/dist/types/functional-components/Span/LabelHelper.d.ts +9 -0
  819. package/dist/types/functional-components/Span/Span.d.ts +12 -0
  820. package/dist/types/functional-components/Span/SpanCoreHelper.d.ts +9 -0
  821. package/dist/types/functional-components/Span/index.d.ts +1 -0
  822. package/dist/types/functional-components/Span/test/snapshot.test.d.ts +1 -0
  823. package/dist/types/functional-components/Suggestions/Suggestions.d.ts +9 -0
  824. package/dist/types/functional-components/Suggestions/index.d.ts +1 -0
  825. package/dist/types/functional-components/Suggestions/tests/snapshot.test.d.ts +1 -0
  826. package/dist/types/functional-components/ToastItem/ToastItem.d.ts +10 -0
  827. package/dist/types/functional-components/ToastItem/index.d.ts +1 -0
  828. package/dist/types/functional-components/ToastItem/tests/snapshot.test.d.ts +1 -0
  829. package/dist/types/functional-components/index.d.ts +1 -1
  830. package/dist/types/functional-components/inputs/Checkbox/Checkbox.d.ts +10 -0
  831. package/dist/types/functional-components/inputs/Checkbox/index.d.ts +1 -0
  832. package/dist/types/functional-components/inputs/Combobox/Combobox.d.ts +10 -0
  833. package/dist/types/functional-components/inputs/Input/Input.d.ts +16 -0
  834. package/dist/types/functional-components/inputs/Input/index.d.ts +1 -0
  835. package/dist/types/functional-components/inputs/Input/tests/snapshot.test.d.ts +1 -0
  836. package/dist/types/functional-components/inputs/NativeOption/NativeOption.d.ts +12 -0
  837. package/dist/types/functional-components/inputs/NativeOption/index.d.ts +1 -0
  838. package/dist/types/functional-components/inputs/NativeOption/tests/snapshot.test.d.ts +1 -0
  839. package/dist/types/functional-components/inputs/NativeOptionList/NativeOptionList.d.ts +14 -0
  840. package/dist/types/functional-components/inputs/NativeOptionList/index.d.ts +1 -0
  841. package/dist/types/functional-components/inputs/NativeOptionList/tests/snapshot.test.d.ts +1 -0
  842. package/dist/types/functional-components/inputs/NativeSelect/NativeSelect.d.ts +12 -0
  843. package/dist/types/functional-components/inputs/NativeSelect/index.d.ts +1 -0
  844. package/dist/types/functional-components/inputs/NativeSelect/tests/snapshot.test.d.ts +1 -0
  845. package/dist/types/functional-components/inputs/TextArea/TextArea.d.ts +11 -0
  846. package/dist/types/functional-components/inputs/TextArea/index.d.ts +1 -0
  847. package/dist/types/functional-components/inputs/TextArea/tests/snapshot.test.d.ts +1 -0
  848. package/dist/types/functional-components/inputs/_helpers/getDefaultProps.d.ts +11 -0
  849. package/dist/types/functional-components/inputs/_helpers/getDefaultProps.test.d.ts +1 -0
  850. package/dist/types/functional-components/inputs/_types/index.d.ts +6 -0
  851. package/dist/types/index.d.ts +1 -0
  852. package/dist/types/schema/components/abbr.d.ts +3 -3
  853. package/dist/types/schema/components/badge.d.ts +5 -3
  854. package/dist/types/schema/components/button.d.ts +1 -0
  855. package/dist/types/schema/components/combobox.d.ts +3 -4
  856. package/dist/types/schema/components/form.d.ts +3 -3
  857. package/dist/types/schema/components/icon.d.ts +1 -0
  858. package/dist/types/schema/components/index.d.ts +1 -1
  859. package/dist/types/schema/components/input-checkbox.d.ts +3 -6
  860. package/dist/types/schema/components/input-color.d.ts +3 -6
  861. package/dist/types/schema/components/input-date.d.ts +3 -5
  862. package/dist/types/schema/components/input-email.d.ts +3 -6
  863. package/dist/types/schema/components/input-file.d.ts +3 -8
  864. package/dist/types/schema/components/input-number.d.ts +4 -6
  865. package/dist/types/schema/components/input-password.d.ts +3 -6
  866. package/dist/types/schema/components/input-radio.d.ts +3 -6
  867. package/dist/types/schema/components/input-range.d.ts +3 -6
  868. package/dist/types/schema/components/input-text.d.ts +3 -6
  869. package/dist/types/schema/components/input.d.ts +2 -3
  870. package/dist/types/schema/components/link-button.d.ts +2 -2
  871. package/dist/types/schema/components/link.d.ts +2 -2
  872. package/dist/types/schema/components/modal.d.ts +3 -4
  873. package/dist/types/schema/components/pagination.d.ts +2 -2
  874. package/dist/types/schema/components/popover-button.d.ts +9 -0
  875. package/dist/types/schema/components/select.d.ts +3 -7
  876. package/dist/types/schema/components/single-select.d.ts +3 -5
  877. package/dist/types/schema/components/table.d.ts +7 -16
  878. package/dist/types/schema/components/tableStateless.d.ts +5 -8
  879. package/dist/types/schema/components/tabs.d.ts +3 -3
  880. package/dist/types/schema/components/textarea.d.ts +4 -8
  881. package/dist/types/schema/components/toaster.d.ts +0 -2
  882. package/dist/types/schema/enums/{events.d.ts → callback.d.ts} +6 -4
  883. package/dist/types/schema/enums/index.d.ts +1 -1
  884. package/dist/types/schema/index.d.ts +1 -1
  885. package/dist/types/schema/props/accordion-callbacks.d.ts +2 -2
  886. package/dist/types/schema/props/alert.d.ts +0 -2
  887. package/dist/types/schema/props/button-callbacks.d.ts +3 -3
  888. package/dist/types/schema/props/details-callbacks.d.ts +2 -2
  889. package/dist/types/schema/props/hide-msg.d.ts +7 -0
  890. package/dist/types/schema/props/index.d.ts +1 -1
  891. package/dist/types/schema/props/link-on-callbacks.d.ts +2 -2
  892. package/dist/types/schema/props/min-width.d.ts +7 -0
  893. package/dist/types/schema/props/msg.d.ts +7 -1
  894. package/dist/types/schema/props/popover-align.d.ts +7 -0
  895. package/dist/types/schema/props/popover-callbacks.d.ts +2 -2
  896. package/dist/types/schema/props/table-callbacks.d.ts +4 -4
  897. package/dist/types/schema/props/variant/modal.d.ts +8 -0
  898. package/dist/types/schema/tag-names.d.ts +45 -47
  899. package/dist/types/schema/types/icons.d.ts +1 -1
  900. package/dist/types/schema/types/input/control/number.d.ts +0 -2
  901. package/dist/types/schema/types/input/types.d.ts +6 -6
  902. package/dist/types/schema/types/table.d.ts +0 -1
  903. package/dist/types/utils/events.d.ts +19 -5
  904. package/doc/abbr.md +7 -48
  905. package/doc/accordion.md +1 -118
  906. package/doc/alert.md +2 -86
  907. package/doc/avatar.md +1 -45
  908. package/doc/badge.md +1 -96
  909. package/doc/breadcrumb.md +1 -84
  910. package/doc/button-link.md +1 -58
  911. package/doc/button.md +1 -127
  912. package/doc/card.md +2 -66
  913. package/doc/combobox.md +22 -72
  914. package/doc/components.md +1 -1
  915. package/doc/details.md +1 -99
  916. package/doc/drawer.md +1 -127
  917. package/doc/form.md +1 -21
  918. package/doc/heading.md +5 -38
  919. package/doc/icon.md +1 -43
  920. package/doc/image.md +1 -51
  921. package/doc/input-checkbox.md +27 -116
  922. package/doc/input-color.md +22 -77
  923. package/doc/input-date.md +28 -138
  924. package/doc/input-email.md +29 -105
  925. package/doc/input-file.md +22 -98
  926. package/doc/input-number.md +28 -95
  927. package/doc/input-password.md +28 -96
  928. package/doc/input-radio.md +21 -129
  929. package/doc/input-range.md +24 -110
  930. package/doc/input-text.md +30 -121
  931. package/doc/kolibri.md +1 -18
  932. package/doc/link-button.md +1 -36
  933. package/doc/link.md +1 -81
  934. package/doc/modal.md +7 -97
  935. package/doc/nav.md +1 -110
  936. package/doc/pagination.md +1 -42
  937. package/doc/popover-button.md +42 -0
  938. package/doc/progress.md +1 -41
  939. package/doc/quote.md +1 -63
  940. package/doc/select.md +23 -146
  941. package/doc/single-select.md +21 -50
  942. package/doc/skip-nav.md +1 -50
  943. package/doc/spin.md +1 -113
  944. package/doc/split-button.md +1 -24
  945. package/doc/table-stateful.md +13 -200
  946. package/doc/table-stateless.md +10 -81
  947. package/doc/tabs.md +1 -89
  948. package/doc/textarea.md +4 -88
  949. package/doc/toaster.md +4 -74
  950. package/doc/toolbar.md +1 -46
  951. package/doc/tree-item.md +1 -3
  952. package/doc/tree.md +1 -70
  953. package/doc/version.md +1 -23
  954. package/package.json +2 -1
  955. package/vscode-custom-data.json +311 -446
  956. package/dist/cjs/Alert-de993405.js +0 -4
  957. package/dist/cjs/Alert-de993405.js.map +0 -1
  958. package/dist/cjs/Collapsible-7feeee0e.js +0 -4
  959. package/dist/cjs/Collapsible-7feeee0e.js.map +0 -1
  960. package/dist/cjs/FormFieldMsg-0b87c94b.js +0 -4
  961. package/dist/cjs/FormFieldMsg-0b87c94b.js.map +0 -1
  962. package/dist/cjs/InternalUnderlinedBadgeText-839dbe91.js +0 -4
  963. package/dist/cjs/InternalUnderlinedBadgeText-839dbe91.js.map +0 -1
  964. package/dist/cjs/aria-expanded-3376c72e.js.map +0 -1
  965. package/dist/cjs/badge-text-3a33a84b.js +0 -4
  966. package/dist/cjs/badge-text-3a33a84b.js.map +0 -1
  967. package/dist/cjs/bund-4be96755.js +0 -4
  968. package/dist/cjs/bund-4be96755.js.map +0 -1
  969. package/dist/cjs/component-names-72b76dc7.js +0 -4
  970. package/dist/cjs/component-names-72b76dc7.js.map +0 -1
  971. package/dist/cjs/controller-0fbcf11a.js +0 -4
  972. package/dist/cjs/controller-0fbcf11a.js.map +0 -1
  973. package/dist/cjs/controller-3df689d7.js +0 -4
  974. package/dist/cjs/controller-icon-4caf2636.js +0 -4
  975. package/dist/cjs/controller-icon-4caf2636.js.map +0 -1
  976. package/dist/cjs/events-221fcb43.js +0 -4
  977. package/dist/cjs/events-221fcb43.js.map +0 -1
  978. package/dist/cjs/events-e094ddcb.js +0 -4
  979. package/dist/cjs/events-e094ddcb.js.map +0 -1
  980. package/dist/cjs/index-61cd5c06.js +0 -4
  981. package/dist/cjs/index-61cd5c06.js.map +0 -1
  982. package/dist/cjs/kol-button-group-wc.cjs.entry.js +0 -4
  983. package/dist/cjs/kol-button-group-wc.cjs.entry.js.map +0 -1
  984. package/dist/cjs/kol-button-group.cjs.entry.js +0 -4
  985. package/dist/cjs/kol-button-group.cjs.entry.js.map +0 -1
  986. package/dist/cjs/kol-heading-wc.cjs.entry.js +0 -4
  987. package/dist/cjs/kol-heading-wc.cjs.entry.js.map +0 -1
  988. package/dist/cjs/kol-indented-text-wc.cjs.entry.js +0 -4
  989. package/dist/cjs/kol-indented-text-wc.cjs.entry.js.map +0 -1
  990. package/dist/cjs/kol-indented-text.cjs.entry.js +0 -4
  991. package/dist/cjs/kol-indented-text.cjs.entry.js.map +0 -1
  992. package/dist/cjs/kol-link-group.cjs.entry.js +0 -4
  993. package/dist/cjs/kol-link-group.cjs.entry.js.map +0 -1
  994. package/dist/cjs/kol-logo.cjs.entry.js +0 -4
  995. package/dist/cjs/kol-logo.cjs.entry.js.map +0 -1
  996. package/dist/cjs/kol-span-wc.cjs.entry.js +0 -4
  997. package/dist/cjs/kol-span-wc.cjs.entry.js.map +0 -1
  998. package/dist/cjs/kol-symbol.cjs.entry.js +0 -4
  999. package/dist/cjs/kol-symbol.cjs.entry.js.map +0 -1
  1000. package/dist/cjs/kol-table.cjs.entry.js +0 -4
  1001. package/dist/cjs/kol-table.cjs.entry.js.map +0 -1
  1002. package/dist/cjs/tslib.es6-16e4524f.js.map +0 -1
  1003. package/dist/components/aria-expanded.js.map +0 -1
  1004. package/dist/components/badge-text.js +0 -4
  1005. package/dist/components/badge-text.js.map +0 -1
  1006. package/dist/components/bund.js +0 -4
  1007. package/dist/components/bund.js.map +0 -1
  1008. package/dist/components/controller-icon.js +0 -4
  1009. package/dist/components/controller-icon.js.map +0 -1
  1010. package/dist/components/controller5.js +0 -4
  1011. package/dist/components/controller5.js.map +0 -1
  1012. package/dist/components/events2.js +0 -4
  1013. package/dist/components/events2.js.map +0 -1
  1014. package/dist/components/kol-button-group-wc.js +0 -4
  1015. package/dist/components/kol-button-group-wc.js.map +0 -1
  1016. package/dist/components/kol-button-group.d.ts +0 -11
  1017. package/dist/components/kol-button-group.js +0 -4
  1018. package/dist/components/kol-button-group.js.map +0 -1
  1019. package/dist/components/kol-heading-wc.d.ts +0 -11
  1020. package/dist/components/kol-heading-wc.js +0 -4
  1021. package/dist/components/kol-heading-wc.js.map +0 -1
  1022. package/dist/components/kol-indented-text-wc.d.ts +0 -11
  1023. package/dist/components/kol-indented-text-wc.js +0 -4
  1024. package/dist/components/kol-indented-text-wc.js.map +0 -1
  1025. package/dist/components/kol-indented-text.d.ts +0 -11
  1026. package/dist/components/kol-indented-text.js +0 -4
  1027. package/dist/components/kol-indented-text.js.map +0 -1
  1028. package/dist/components/kol-link-group.d.ts +0 -11
  1029. package/dist/components/kol-link-group.js +0 -4
  1030. package/dist/components/kol-link-group.js.map +0 -1
  1031. package/dist/components/kol-logo.d.ts +0 -11
  1032. package/dist/components/kol-logo.js +0 -4
  1033. package/dist/components/kol-logo.js.map +0 -1
  1034. package/dist/components/kol-span-wc.d.ts +0 -11
  1035. package/dist/components/kol-span-wc.js +0 -4
  1036. package/dist/components/kol-span-wc.js.map +0 -1
  1037. package/dist/components/kol-symbol.d.ts +0 -11
  1038. package/dist/components/kol-symbol.js +0 -4
  1039. package/dist/components/kol-symbol.js.map +0 -1
  1040. package/dist/components/kol-table.d.ts +0 -11
  1041. package/dist/components/kol-table.js +0 -4
  1042. package/dist/components/kol-table.js.map +0 -1
  1043. package/dist/esm/Alert-6aaced9b.js +0 -4
  1044. package/dist/esm/Alert-6aaced9b.js.map +0 -1
  1045. package/dist/esm/Collapsible-0d0bf3c8.js +0 -4
  1046. package/dist/esm/Collapsible-0d0bf3c8.js.map +0 -1
  1047. package/dist/esm/FormFieldMsg-626846eb.js +0 -4
  1048. package/dist/esm/FormFieldMsg-626846eb.js.map +0 -1
  1049. package/dist/esm/InternalUnderlinedBadgeText-0834e865.js +0 -4
  1050. package/dist/esm/InternalUnderlinedBadgeText-0834e865.js.map +0 -1
  1051. package/dist/esm/aria-expanded-ec1ec6df.js.map +0 -1
  1052. package/dist/esm/badge-text-16dedc1b.js +0 -4
  1053. package/dist/esm/badge-text-16dedc1b.js.map +0 -1
  1054. package/dist/esm/bund-ad41b762.js +0 -4
  1055. package/dist/esm/bund-ad41b762.js.map +0 -1
  1056. package/dist/esm/component-names-d278f819.js +0 -4
  1057. package/dist/esm/component-names-d278f819.js.map +0 -1
  1058. package/dist/esm/controller-8eb39b13.js +0 -4
  1059. package/dist/esm/controller-8eb39b13.js.map +0 -1
  1060. package/dist/esm/controller-964599c0.js +0 -4
  1061. package/dist/esm/controller-icon-e363322f.js +0 -4
  1062. package/dist/esm/controller-icon-e363322f.js.map +0 -1
  1063. package/dist/esm/events-29e84d75.js +0 -4
  1064. package/dist/esm/events-29e84d75.js.map +0 -1
  1065. package/dist/esm/events-8ec9ecc6.js +0 -4
  1066. package/dist/esm/events-8ec9ecc6.js.map +0 -1
  1067. package/dist/esm/index-58121290.js +0 -4
  1068. package/dist/esm/index-58121290.js.map +0 -1
  1069. package/dist/esm/kol-button-group-wc.entry.js +0 -4
  1070. package/dist/esm/kol-button-group-wc.entry.js.map +0 -1
  1071. package/dist/esm/kol-button-group.entry.js +0 -4
  1072. package/dist/esm/kol-button-group.entry.js.map +0 -1
  1073. package/dist/esm/kol-heading-wc.entry.js +0 -4
  1074. package/dist/esm/kol-heading-wc.entry.js.map +0 -1
  1075. package/dist/esm/kol-indented-text-wc.entry.js +0 -4
  1076. package/dist/esm/kol-indented-text-wc.entry.js.map +0 -1
  1077. package/dist/esm/kol-indented-text.entry.js +0 -4
  1078. package/dist/esm/kol-indented-text.entry.js.map +0 -1
  1079. package/dist/esm/kol-link-group.entry.js +0 -4
  1080. package/dist/esm/kol-link-group.entry.js.map +0 -1
  1081. package/dist/esm/kol-logo.entry.js +0 -4
  1082. package/dist/esm/kol-logo.entry.js.map +0 -1
  1083. package/dist/esm/kol-span-wc.entry.js +0 -4
  1084. package/dist/esm/kol-span-wc.entry.js.map +0 -1
  1085. package/dist/esm/kol-symbol.entry.js +0 -4
  1086. package/dist/esm/kol-symbol.entry.js.map +0 -1
  1087. package/dist/esm/kol-table.entry.js +0 -4
  1088. package/dist/esm/kol-table.entry.js.map +0 -1
  1089. package/dist/esm/tslib.es6-2e5096f8.js.map +0 -1
  1090. package/dist/kolibri/Alert-6aaced9b.js +0 -4
  1091. package/dist/kolibri/Alert-6aaced9b.js.map +0 -1
  1092. package/dist/kolibri/Collapsible-0d0bf3c8.js +0 -4
  1093. package/dist/kolibri/Collapsible-0d0bf3c8.js.map +0 -1
  1094. package/dist/kolibri/FormFieldMsg-626846eb.js +0 -4
  1095. package/dist/kolibri/FormFieldMsg-626846eb.js.map +0 -1
  1096. package/dist/kolibri/InternalUnderlinedBadgeText-0834e865.js +0 -4
  1097. package/dist/kolibri/InternalUnderlinedBadgeText-0834e865.js.map +0 -1
  1098. package/dist/kolibri/app-globals-9c57779d.js +0 -4
  1099. package/dist/kolibri/aria-expanded-ec1ec6df.js +0 -4
  1100. package/dist/kolibri/aria-expanded-ec1ec6df.js.map +0 -1
  1101. package/dist/kolibri/badge-text-16dedc1b.js +0 -4
  1102. package/dist/kolibri/badge-text-16dedc1b.js.map +0 -1
  1103. package/dist/kolibri/bund-ad41b762.js +0 -4
  1104. package/dist/kolibri/bund-ad41b762.js.map +0 -1
  1105. package/dist/kolibri/component-names-d278f819.js +0 -4
  1106. package/dist/kolibri/component-names-d278f819.js.map +0 -1
  1107. package/dist/kolibri/controller-8eb39b13.js +0 -4
  1108. package/dist/kolibri/controller-8eb39b13.js.map +0 -1
  1109. package/dist/kolibri/controller-964599c0.js +0 -4
  1110. package/dist/kolibri/controller-d66d5bed.js +0 -4
  1111. package/dist/kolibri/controller-icon-e363322f.js +0 -4
  1112. package/dist/kolibri/controller-icon-e363322f.js.map +0 -1
  1113. package/dist/kolibri/events-29e84d75.js +0 -4
  1114. package/dist/kolibri/events-29e84d75.js.map +0 -1
  1115. package/dist/kolibri/events-8ec9ecc6.js +0 -4
  1116. package/dist/kolibri/events-8ec9ecc6.js.map +0 -1
  1117. package/dist/kolibri/index-58121290.js.map +0 -1
  1118. package/dist/kolibri/kol-button-group-wc.entry.js +0 -4
  1119. package/dist/kolibri/kol-button-group-wc.entry.js.map +0 -1
  1120. package/dist/kolibri/kol-button-group.entry.js +0 -4
  1121. package/dist/kolibri/kol-button-group.entry.js.map +0 -1
  1122. package/dist/kolibri/kol-heading-wc.entry.js +0 -4
  1123. package/dist/kolibri/kol-heading-wc.entry.js.map +0 -1
  1124. package/dist/kolibri/kol-indented-text-wc.entry.js +0 -4
  1125. package/dist/kolibri/kol-indented-text-wc.entry.js.map +0 -1
  1126. package/dist/kolibri/kol-indented-text.entry.js +0 -4
  1127. package/dist/kolibri/kol-indented-text.entry.js.map +0 -1
  1128. package/dist/kolibri/kol-link-group.entry.js +0 -4
  1129. package/dist/kolibri/kol-link-group.entry.js.map +0 -1
  1130. package/dist/kolibri/kol-logo.entry.js +0 -4
  1131. package/dist/kolibri/kol-logo.entry.js.map +0 -1
  1132. package/dist/kolibri/kol-span-wc.entry.js +0 -4
  1133. package/dist/kolibri/kol-span-wc.entry.js.map +0 -1
  1134. package/dist/kolibri/kol-symbol.entry.js +0 -4
  1135. package/dist/kolibri/kol-symbol.entry.js.map +0 -1
  1136. package/dist/kolibri/kol-table.entry.js +0 -4
  1137. package/dist/kolibri/kol-table.entry.js.map +0 -1
  1138. package/dist/kolibri/tooltip-align-3e629203.js +0 -4
  1139. package/dist/kolibri/tslib.es6-2e5096f8.js.map +0 -1
  1140. package/dist/types/components/button-group/component.d.ts +0 -6
  1141. package/dist/types/components/button-group/shadow.d.ts +0 -5
  1142. package/dist/types/components/heading/component.d.ts +0 -17
  1143. package/dist/types/components/indented-text/component.d.ts +0 -6
  1144. package/dist/types/components/indented-text/shadow.d.ts +0 -5
  1145. package/dist/types/components/link-group/shadow.d.ts +0 -17
  1146. package/dist/types/components/logo/shadow.d.ts +0 -10
  1147. package/dist/types/components/logo/types.d.ts +0 -11
  1148. package/dist/types/components/span/InternalUnderlinedBadgeText.d.ts +0 -7
  1149. package/dist/types/components/span/component.d.ts +0 -17
  1150. package/dist/types/components/symbol/component.d.ts +0 -11
  1151. package/dist/types/components/table/shadow.d.ts +0 -15
  1152. package/dist/types/components/toaster/InternalToast.d.ts +0 -9
  1153. package/dist/types/schema/components/button-group.d.ts +0 -9
  1154. package/dist/types/schema/components/indented-text.d.ts +0 -9
  1155. package/dist/types/schema/components/link-group.d.ts +0 -22
  1156. package/dist/types/schema/components/symbol.d.ts +0 -12
  1157. package/dist/types/schema/props/hide-error.d.ts +0 -7
  1158. package/doc/button-group.md +0 -96
  1159. package/doc/indented-text.md +0 -52
  1160. package/doc/link-group.md +0 -98
  1161. package/doc/logo.md +0 -67
  1162. package/doc/popover.md +0 -26
  1163. package/doc/span.md +0 -32
  1164. package/doc/symbol.md +0 -44
  1165. package/doc/table.md +0 -201
  1166. package/doc/tooltip.md +0 -47
  1167. /package/dist/cjs/{tslib.es6-16e4524f.js → tslib.es6-5e301284.js} +0 -0
  1168. /package/dist/esm/{tslib.es6-2e5096f8.js → tslib.es6-1173d062.js} +0 -0
  1169. /package/dist/kolibri/{align-82100bda.js.map → align-4719d626.js.map} +0 -0
  1170. /package/dist/kolibri/{app-globals-9c57779d.js.map → app-globals-6d7eac5a.js.map} +0 -0
  1171. /package/dist/kolibri/{common-0f1f2276.js.map → common-54bf85ba.js.map} +0 -0
  1172. /package/dist/kolibri/{controller-9c6419a9.js.map → controller-0953b02a.js.map} +0 -0
  1173. /package/dist/kolibri/{controller-07000871.js.map → controller-a26ccfc4.js.map} +0 -0
  1174. /package/dist/kolibri/{controller-d66d5bed.js.map → controller-f84a4671.js.map} +0 -0
  1175. /package/dist/kolibri/{dev.utils-e6830118.js.map → dev.utils-f9d0242d.js.map} +0 -0
  1176. /package/dist/kolibri/{devtools-f3ad27b2.js.map → devtools-87a9e4de.js.map} +0 -0
  1177. /package/dist/kolibri/{icons-e1a5023e.js.map → icons-199f1746.js.map} +0 -0
  1178. /package/dist/kolibri/{tooltip-align-3e629203.js.map → tooltip-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K,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,aAAa,EAAE,EAAE,MAAM,EAAC,QAAQ,IAC9F,8DAAQ,CACS,CACZ,EACN;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":["@import '../@shared/mixins';\n@import '../style';\n@import '../popover/style.scss';\n@import '../tooltip/style.scss';\n\n@layer kol-component {\n\t:host {\n\t\tdisplay: flex;\n\t\tfont-size: rem(16);\n\t\tposition: relative;\n\t}\n\n\t.split-button-root {\n\t\tdisplay: flex;\n\t\tposition: relative;\n\t}\n\n\t.main-button {\n\t\tflex-grow: 1;\n\t\ttext-align: left;\n\t}\n\n\t.kol-popover {\n\t\t.popover {\n\t\t\tmargin-top: rem(2);\n\t\t}\n\n\t\t.arrow {\n\t\t\tdisplay: none;\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, Host, Method, Prop, State } from '@stencil/core';\n\nimport { translate } from '../../i18n';\nimport { KolButtonWcTag, KolPopoverWcTag } from '../../core/component-names';\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: (e: MouseEvent) => {\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(e, 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 = { onClick: () => this.toggleDropdown() };\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<Host class=\"kol-split-button\">\n\t\t\t\t<div class=\"split-button-root\">\n\t\t\t\t\t<KolButtonWcTag\n\t\t\t\t\t\tclass={{\n\t\t\t\t\t\t\t'main-button': true,\n\t\t\t\t\t\t\tbutton: true,\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_tabIndex={this._tabIndex}\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=\"horizontal-line\"></div>\n\t\t\t\t\t<KolButtonWcTag\n\t\t\t\t\t\tclass=\"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</Host>\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 which tab-index the primary element of the component has. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)\n\t */\n\t@Prop() public _tabIndex?: number;\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":";;;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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":["@import '../@shared/mixins';\n@import '../../styles/global';\n@import '../popover/style.scss';\n@import '../tooltip/style.scss';\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_tabIndex={this._tabIndex}\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 which tab-index the primary element of the component has. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)\n\t */\n\t@Prop() public _tabIndex?: number;\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,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-58121290.js";import{t as translate}from"./i18n-5fe08f1c.js";import{t as KolPaginationTag,r as KolTableStatelessWcTag}from"./component-names-d278f819.js";import{t as tryToDispatchKoliBriEvent}from"./events-29e84d75.js";import{v as validateTableData,a as validateTableDataFoot,b as validateTableSelection,c as validateTableStatefulCallbacks,E as Events}from"./events-8ec9ecc6.js";import{w as watchValidator,s as setState,t as emptyStringByArrayHandler,i as watchString,p as parseJson,o as objectObjectHandler,j as devHint}from"./prop.validators-9feb1d92.js";import{v as validateLabel}from"./label-d0315384.js";import"./i18n-7ea9f137.js";import"./reuse-32931294.js";import"./common-0f1f2276.js";import"./index-da3e0c00.js";import"./dev.utils-fab45cbc.js";const paginationPositionPropTypeOptions=["top","bottom","both"],validatePaginationPosition=(t,e)=>{watchValidator(t,"_paginationPosition",(t=>"string"==typeof t&&paginationPositionPropTypeOptions.includes(t)),new Set([`PaginationPositionPropType {${paginationPositionPropTypeOptions.join(", ")}`]),e,{defaultValue:"bottom"})},defaultStyleCss="/*\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 .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: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\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-wc,\n [disabled]:focus .kol-span-wc {\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-wc {\n display: contents;\n }\n .kol-tooltip-wc .tooltip-floating {\n animation-duration: 0.5s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n /* Shared between content and arrow */\n .kol-tooltip-wc .tooltip-area {\n background-color: #fff;\n color: #000;\n }\n .kol-tooltip-wc .tooltip-arrow {\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-wc .tooltip-content {\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 :root {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n div.pagination .kol-pagination {\n display: flex;\n flex-wrap: wrap;\n }\n div.pagination,\n div.pagination > div:last-child {\n display: grid;\n place-items: center;\n }\n @media (max-width: 1024px) {\n div.pagination .kol-pagination {\n flex-direction: column;\n }\n }\n @media (min-width: 1024px) {\n div.pagination,\n div.pagination > div:last-child {\n grid-auto-flow: column;\n }\n div.pagination .kol-pagination {\n display: flex;\n }\n }\n}\n@layer kol-component {\n :host,\n .kol-table-stateless-wc {\n display: block;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .table {\n max-width: 100%;\n overflow-x: auto;\n overflow-y: hidden;\n }\n table {\n width: 100%;\n }\n caption {\n text-align: start;\n }\n .focus-element {\n font-size: 0;\n }\n .focus-element:focus {\n outline: 0 !important;\n }\n .table:has(.focus-element:focus) {\n /* @see https://remysharp.com/til/css/focus-ring-default-styles */\n outline: calc(5rem / var(--kolibri-root-font-size, 16)) auto Highlight;\n outline: calc(5rem / var(--kolibri-root-font-size, 16)) auto -webkit-focus-ring-color;\n outline-offset: calc(2rem / var(--kolibri-root-font-size, 16));\n }\n .table-sort-button .button {\n color: inherit;\n }\n tbody th,\n th.align-left {\n text-align: left;\n }\n tbody th .table-sort-button .button-inner,\n th.align-left .table-sort-button .button-inner {\n justify-items: start;\n }\n th.align-center {\n text-align: center;\n }\n th.align-center .table-sort-button .button-inner {\n justify-items: center;\n }\n th.align-right {\n text-align: right;\n }\n th.align-right .table-sort-button .button-inner {\n justify-items: end;\n }\n tr.foot-spacer,\n tr.head-spacer {\n display: none;\n }\n .selection-header-cell {\n width: 0;\n }\n .selection-cell {\n width: var(--a11y-min-size);\n height: var(--a11y-min-size);\n white-space: nowrap;\n }\n .input 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 .input .icon {\n display: block;\n inset: auto;\n position: absolute;\n z-index: 1;\n }\n .input input {\n appearance: none;\n border-style: solid;\n cursor: pointer;\n margin: 0;\n }\n .input input:before {\n content: \"\";\n }\n .input input[type=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: calc(2rem / var(--kolibri-root-font-size, 16));\n line-height: 1.5;\n transition: all 0.5s ease 0s;\n }\n .input input[type=radio] {\n display: flex;\n border-width: calc(2rem / var(--kolibri-root-font-size, 16));\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 .input input[type=radio]:before {\n border-radius: 100%;\n margin: auto;\n height: 0.75em;\n width: 0.75em;\n }\n .input input[type=radio]:checked:before {\n background-color: #000;\n }\n @media (forced-colors: active) {\n .input input[type=radio]:checked:before {\n /* Give it a visible background in forced colors mode */\n background-color: selectedItem !important;\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.sortDirections=new Map,this.sortData=[],this.showPagination=!1,this.pageStartSlice=0,this.pageEndSlice=10,this.disableSort=!1,this.sortedColumnHead={label:"",key:"",sortDirection:"NOS"},this.setSortDirection=(t,e)=>{this.sortDirections.clear(),this.sortDirections.set(t,e),this.sortFunction=t},this.handlePagination={onClick:(t,e)=>{var n;"function"==typeof(null===(n=this.state._pagination._on)||void 0===n?void 0:n.onClick)&&this.state._pagination._on.onClick(t,e),setState(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_page:e}))},onChangePage:(t,e)=>{var n;"function"==typeof(null===(n=this.state._pagination._on)||void 0===n?void 0:n.onChangePage)&&this.state._pagination._on.onChangePage(t,e),setState(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_page:e}))},onChangePageSize:(t,e)=>{var n;"function"==typeof(null===(n=this.state._pagination._on)||void 0===n?void 0:n.onChangePageSize)&&this.state._pagination._on.onChangePageSize(t,e),setState(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_pageSize:e})),setState(this,"_pageSize",e)}},this.onSelectionChange=t=>{t.stopPropagation()},this.updateSortedData=(t=this.sortedColumnHead)=>{if(this.disableSort)return void setState(this,"_sortedData",this.state._data);let e=this.state._data;if(this.sortData.length>0)e=this.state._data.sort(((t,e)=>{for(let n=0;n<this.sortData.length;n++){const i=this.sortData[n],a=i.compareFn(t,e);if(0!==a)return"ASC"===i.direction?a:-a}return 0}));else if("function"==typeof this.sortFunction)switch(this.sortDirections.get(this.sortFunction)){case"ASC":e=this.sortFunction([...this.state._data]),this.sortedColumnHead={label:t.label,key:t.key,sortDirection:"ASC"};break;case"DESC":e=this.sortFunction([...this.state._data]).reverse(),this.sortedColumnHead={label:t.label,key:t.key,sortDirection:"DESC"};break;default:e=[...this.state._data],this.sortedColumnHead={label:"",key:"",sortDirection:"NOS"}}setState(this,"_sortedData",e)},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.state={_allowMultiSort:!1,_data:[],_dataFoot:[],_headers:{horizontal:[],vertical:[]},_label:"",_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 e;if("function"==typeof t.compareFn){this.state._allowMultiSort||t.key==(null===(e=this.sortData[0])||void 0===e?void 0:e.key)||(this.sortData=[]);const n=this.sortData.findIndex((e=>e.key===t.key));if(n>=0){const t=this.sortData[n];switch(t.direction){case"ASC":t.direction="DESC";break;case"DESC":this.sortData.splice(n,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(t)}else if("function"==typeof t.sort){switch(this.sortFunction=t.sort,this.sortDirections.get(this.sortFunction)){case"ASC":this.setSortDirection(this.sortFunction,"DESC");break;case"DESC":this.setSortDirection(this.sortFunction,"NOS");break;default:this.setSortDirection(this.sortFunction,"ASC")}this.updateSortedData(t)}}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 e,n,i,a;const o=t=>{let e=!1;t.forEach((t=>{const n=t.key;if(!n)return;const i=t.sortDirection;"ASC"!==i&&"DESC"!==i||("function"==typeof t.compareFn?((this.state._allowMultiSort||0===this.sortData.length)&&this.sortData.push({label:t.label,key:n,compareFn:t.compareFn,direction:i}),e=!0):"function"==typeof t.sort&&(this.setSortDirection(t.sort,i),setTimeout((()=>this.updateSortedData({key:n,label:t.label,sortDirection:i})))))})),e&&setTimeout((()=>this.updateSortedData()))},s=t;null===(e=s.horizontal)||void 0===e||e.forEach(o),null===(n=s.vertical)||void 0===n||n.forEach(o),s.horizontal&&s.vertical&&(null===(i=s.horizontal)||void 0===i?void 0:i.length)>0&&(null===(a=s.vertical)||void 0===a?void 0:a.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)}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("kol-selection-change",this.onSelectionChange)}disconnectedCallback(){var t;null===(t=this.tableWcRef)||void 0===t||t.removeEventListener("kol-selection-change",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.validatePagination(this._pagination),this.validatePaginationPosition(this._paginationPosition),this.validateSelection(this._selection),this.validateOn(this._on)}selectDisplayedData(t,e,n){return"number"==typeof e&&e>0&&"number"==typeof n&&n>0?(this.pageStartSlice=e*(n-1),this.pageEndSlice=e*n>t.length?t.length:e*n,t.slice(this.pageStartSlice,this.pageEndSlice)):(this.pageStartSlice=0,this.pageEndSlice=t.length,t)}renderPagination(){return h("div",{class:"pagination"},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",null,h(KolPaginationTag,{_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:translate("kol-table-pagination-label",{placeholders:{label:this.state._label}})})))}getHeaderCellSortState(t){if(!this.disableSort&&("function"==typeof t.compareFn||"function"==typeof t.sort)){if(t.key===this.sortedColumnHead.key)return this.sortedColumnHead.sortDirection;if(t.key){const e=this.sortData.find((e=>e.key===t.key));if(null==e?void 0:e.direction)return e.direction}return"NOS"}}handleSort({key:t}){const e=[...(this.state._headers.horizontal||[]).flat(),...(this.state._headers.vertical||[]).flat()].find((e=>e.key===t));e&&this.changeCellSort(e)}getSelectedData(t){var e;const n=this.state._selection;if(n){const i=null!==(e=n.keyPropertyName)&&void 0!==e?e:"id",a=this.state._sortedData.filter((e=>t.includes(e[i])));if(!1===(null==n?void 0:n.multiple))return a[0];if(i)return a}return null}handleSelectionChange(t,e){var n;const i=this.state._selection;i&&(this.state=Object.assign(Object.assign({},this.state),{_selection:Object.assign(Object.assign({},i),{selectedKeys:"object"==typeof e?e:[e]})}));const a=this.getSelectedData(e);tryToDispatchKoliBriEvent("selection-change",this.host,a),"function"==typeof(null===(n=this.state._on)||void 0===n?void 0:n[Events.onSelectionChange])&&this.state._on[Events.onSelectionChange](t,a)}async getSelection(){var t;const e=(null===(t=this.state._selection)||void 0===t?void 0:t.selectedKeys)||[];return this.getSelectedData(e)}render(){var t,e,n,i;const a=this.selectDisplayedData(this.state._sortedData,this.showPagination?null!==(e=null===(t=this.state._pagination)||void 0===t?void 0:t._pageSize)&&void 0!==e?e:10:this.state._sortedData.length,this.state._pagination._page||1),o="top"===this._paginationPosition||"both"===this._paginationPosition?this.renderPagination():null,s="bottom"===this._paginationPosition||"both"===this._paginationPosition?this.renderPagination():null,l={horizontal:null===(n=this.state._headers.horizontal)||void 0===n?void 0:n.map((t=>t.map((t=>Object.assign(Object.assign({},t),{sortDirection:this.getHeaderCellSortState(t)}))))),vertical: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)})))))};return h(Host,{key:"2d471104de44ada86910ebd7d31f73577085b449",class:"kol-table-stateful"},this.pageEndSlice>0&&this.showPagination&&o,h(KolTableStatelessWcTag,{key:"36aed71807ef42ce071ea35964eed001139e5ee0",ref:this.catchRef,_data:a,_headerCells:l,_label:this.state._label,_dataFoot:this.state._dataFoot,_minWidth:this.state._minWidth,_on:{onSort:(t,e)=>{this.handleSort(e)},onSelectionChange:(t,e)=>{this.handleSelectionChange(t,e)}},_selection:this.state._selection}),this.pageEndSlice>0&&this.showPagination&&s)}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"],_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-06658c3d.js";import{l as KolPaginationTag,m as KolTableStatelessWcTag}from"./component-names-545d6582.js";import{t as translate}from"./i18n-5fe08f1c.js";import{K as KolEvent,d as dispatchDomEvent}from"./events-5adf6b62.js";import{v as validateTableData,a as validateTableDataFoot,b as validateTableSelection,c as validateTableStatefulCallbacks,C as Callback}from"./callback-fd6ab619.js";import{w as watchValidator,s as setState,t as emptyStringByArrayHandler,i as watchString,p as parseJson,o as objectObjectHandler,j as devHint}from"./prop.validators-9feb1d92.js";import{v as validateLabel}from"./label-d0315384.js";import"./i18n-7ea9f137.js";import"./reuse-32931294.js";import"./common-54bf85ba.js";import"./index-da3e0c00.js";import"./dev.utils-fab45cbc.js";const paginationPositionPropTypeOptions=["top","bottom","both"],validatePaginationPosition=(t,e)=>{watchValidator(t,"_paginationPosition",(t=>"string"==typeof t&&paginationPositionPropTypeOptions.includes(t)),new Set([`PaginationPositionPropType {${paginationPositionPropTypeOptions.join(", ")}`]),e,{defaultValue:"bottom"})},defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]) {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n }\n}\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: grid;\n place-items: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.5s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n .kol-tooltip__arrow {\n background-color: #fff;\n color: #000;\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip__content {\n background-color: #fff;\n color: #000;\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-table {\n display: block;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n max-width: 100%;\n overflow-x: auto;\n overflow-y: hidden;\n }\n .kol-table__table {\n width: 100%;\n }\n .kol-table__caption {\n text-align: start;\n }\n .kol-table__focus-element {\n font-size: 0;\n }\n .kol-table__focus-element:focus {\n outline: 0 !important;\n /* @see https://remysharp.com/til/css/focus-ring-default-styles */\n outline: 5px auto Highlight;\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: 2px;\n }\n .kol-table__sort-button .kol-button {\n color: inherit;\n }\n .kol-table__body {\n text-align: left;\n }\n .kol-table__body .kol-button__text {\n justify-items: start;\n }\n .kol-table__cell--align-left {\n text-align: left;\n }\n .kol-table__cell--align-left .kol-button__text {\n justify-items: start;\n }\n .kol-table__cell--align-center {\n text-align: center;\n }\n .kol-table__cell--align-center .kol-button__text {\n justify-items: center;\n }\n .kol-table__cell--align-right {\n text-align: right;\n }\n .kol-table__cell--align-right .kol-button__text {\n justify-items: end;\n }\n .kol-table__cell--selection {\n width: var(--a11y-min-size);\n height: var(--a11y-min-size);\n white-space: nowrap;\n }\n .kol-table__spacer {\n display: none;\n }\n .kol-table__selection-label {\n align-items: center;\n cursor: pointer;\n display: flex;\n height: var(--a11y-min-size);\n justify-content: center;\n position: relative;\n width: var(--a11y-min-size);\n }\n .kol-table__selection-icon {\n display: block;\n inset: auto;\n position: absolute;\n z-index: 1;\n }\n .kol-table__selection-input {\n appearance: none;\n border-style: solid;\n cursor: pointer;\n margin: 0;\n }\n .kol-table__selection-input:before {\n content: \"\";\n }\n .kol-table__selection-input--checkbox {\n position: relative;\n display: flex;\n height: calc(var(--a11y-min-size) / 2);\n width: calc(var(--a11y-min-size) / 2);\n align-items: center;\n justify-content: center;\n background-color: rgb(255, 255, 255);\n border-width: 2px;\n line-height: 1.5;\n transition: all 0.5s ease 0s;\n }\n .kol-table__selection-input--radio {\n display: flex;\n border-width: 2px;\n border-radius: 100%;\n height: 1.5em;\n min-height: 1.5em;\n min-width: 1.5em;\n padding: 0;\n width: 1.5em;\n }\n .kol-table__selection-input--radio:before {\n border-radius: 100%;\n margin: auto;\n height: 0.75em;\n width: 0.75em;\n }\n .kol-table__selection-input--radio:checked:before {\n background-color: #000;\n }\n @media (forced-colors: active) {\n .kol-table__selection-input--radio:checked:before {\n /* Give it a visible background in forced colors mode */\n background-color: selectedItem !important;\n }\n }\n}\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,e)=>{var n;"function"==typeof(null===(n=this.state._pagination._on)||void 0===n?void 0:n.onClick)&&this.state._pagination._on.onClick(t,e),setState(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_page:e}))},onChangePage:(t,e)=>{var n;"function"==typeof(null===(n=this.state._pagination._on)||void 0===n?void 0:n.onChangePage)&&this.state._pagination._on.onChangePage(t,e),setState(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_page:e}))},onChangePageSize:(t,e)=>{var n;"function"==typeof(null===(n=this.state._pagination._on)||void 0===n?void 0:n.onChangePageSize)&&this.state._pagination._on.onChangePageSize(t,e),setState(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_pageSize:e})),setState(this,"_pageSize",e)}},this.onSelectionChange=t=>{t.stopPropagation()},this.updateSortedData=()=>{if(this.disableSort)return void setState(this,"_sortedData",this.state._data);let t=this.state._data;this.sortData.length>0&&(t=this.state._data.sort(((t,e)=>{for(let n=0;n<this.sortData.length;n++){const a=this.sortData[n],i=a.compareFn(t,e);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.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 e;if("function"==typeof t.compareFn){this.state._allowMultiSort||t.key==(null===(e=this.sortData[0])||void 0===e?void 0:e.key)||(this.sortData=[]);const n=this.sortData.findIndex((e=>e.key===t.key));if(n>=0){const t=this.sortData[n];switch(t.direction){case"ASC":t.direction="DESC";break;case"DESC":this.sortData.splice(n,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 e,n,a,i;const o=t=>{let e=!1;t.forEach((t=>{const n=t.key;if(!n)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:n,compareFn:t.compareFn,direction:a}),e=!0)})),e&&setTimeout((()=>this.updateSortedData()))},l=t;null===(e=l.horizontal)||void 0===e||e.forEach(o),null===(n=l.vertical)||void 0===n||n.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)}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.validatePagination(this._pagination),this.validatePaginationPosition(this._paginationPosition),this.validateSelection(this._selection),this.validateOn(this._on)}selectDisplayedData(t,e,n){return"number"==typeof e&&e>0&&"number"==typeof n&&n>0?(this.pageStartSlice=e*(n-1),this.pageEndSlice=e*n>t.length?t.length:e*n,t.slice(this.pageStartSlice,this.pageEndSlice)):(this.pageStartSlice=0,this.pageEndSlice=t.length,t)}renderPagination(){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:translate("kol-table-pagination-label",{placeholders:{label:this.state._label}})})))}getHeaderCellSortState(t){if(!this.disableSort&&"function"==typeof t.compareFn){if(t.key){const e=this.sortData.find((e=>e.key===t.key));if(null==e?void 0:e.direction)return e.direction}return"NOS"}}handleSort({key:t}){const e=[...(this.state._headers.horizontal||[]).flat(),...(this.state._headers.vertical||[]).flat()].find((e=>e.key===t));e&&this.changeCellSort(e)}getSelectedData(t){var e;const n=this.state._selection;if(n){const a=null!==(e=n.keyPropertyName)&&void 0!==e?e:"id",i=this.state._sortedData.filter((e=>t.includes(e[a])));if(!1===(null==n?void 0:n.multiple))return i[0];if(a)return i}return null}handleSelectionChange(t,e){var n;const a=this.state._selection;a&&(this.state=Object.assign(Object.assign({},this.state),{_selection:Object.assign(Object.assign({},a),{selectedKeys:"object"==typeof e?e:[e]})}));const i=this.getSelectedData(e);"function"==typeof(null===(n=this.state._on)||void 0===n?void 0:n[Callback.onSelectionChange])&&this.state._on[Callback.onSelectionChange](t,i),this.host&&dispatchDomEvent(this.host,KolEvent.selectionChange,i)}async getSelection(){var t;const e=(null===(t=this.state._selection)||void 0===t?void 0:t.selectedKeys)||[];return this.getSelectedData(e)}render(){var t,e,n,a;const i=this.selectDisplayedData(this.state._sortedData,this.showPagination?null!==(e=null===(t=this.state._pagination)||void 0===t?void 0:t._pageSize)&&void 0!==e?e:10:this.state._sortedData.length,this.state._pagination._page||1),o="top"===this._paginationPosition||"both"===this._paginationPosition?this.renderPagination():null,l="bottom"===this._paginationPosition||"both"===this._paginationPosition?this.renderPagination():null,s={horizontal:null===(n=this.state._headers.horizontal)||void 0===n?void 0:n.map((t=>t.map((t=>Object.assign(Object.assign({},t),{sortDirection:this.getHeaderCellSortState(t)}))))),vertical:null===(a=this.state._headers.vertical)||void 0===a?void 0:a.map((t=>t.map((t=>Object.assign(Object.assign({},t),{sortDirection:this.getHeaderCellSortState(t)})))))};return h(Host,{key:"15056645457c11a826a46d56feda6c3a0607d019",class:"kol-table-stateful"},this.pageEndSlice>0&&this.showPagination&&o,h(KolTableStatelessWcTag,{key:"ffca8ad5fd9f27f4b66f61de2c5a32ff78b03348",ref:this.catchRef,_data:i,_headerCells:s,_label:this.state._label,_dataFoot:this.state._dataFoot,_minWidth:this.state._minWidth,_on:{onSort:(t,e)=>{this.handleSort(e)},onSelectionChange:(t,e)=>{this.handleSelectionChange(t,e)}},_selection:this.state._selection}),this.pageEndSlice>0&&this.showPagination&&l)}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"],_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,I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AK,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;SAC9I,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,GAChC,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","@import '../@shared/mixins';\n@import '../style';\n@import '../@shared/kol-table-stateless-mixin';\n\n@layer kol-component {\n\t:root {\n\t\tfont-size: rem(16);\n\t}\n\n\tdiv.pagination .kol-pagination {\n\t\tdisplay: flex;\n\t\tflex-wrap: wrap;\n\t}\n\n\tdiv.pagination,\n\tdiv.pagination > div:last-child {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t@media (max-width: 1024px) {\n\t\tdiv.pagination .kol-pagination {\n\t\t\tflex-direction: column;\n\t\t}\n\t}\n\n\t@media (min-width: 1024px) {\n\t\tdiv.pagination,\n\t\tdiv.pagination > div:last-child {\n\t\t\tgrid-auto-flow: column;\n\t\t}\n\n\t\tdiv.pagination .kol-pagination {\n\t\t\tdisplay: flex;\n\t\t}\n\t}\n}\n\n@include kol-table-stateless-styles;\n","/* eslint-disable jsx-a11y/no-noninteractive-tabindex */\nimport type {\n\tKoliBriDataCompareFn,\n\tKoliBriPaginationButtonCallbacks,\n\tKoliBriSortDirection,\n\tKoliBriSortFunction,\n\tKoliBriTableDataType,\n\tKoliBriTableHeaderCellWithLogic,\n\tKoliBriTableHeaders,\n\tKoliBriTablePaginationProps,\n\tKoliBriTableSelectedHead,\n\tLabelPropType,\n\tPaginationPositionPropType,\n\tStringified,\n\tTableAPI,\n\tTableStatefulCallbacksPropType,\n\tTableDataFootPropType,\n\tTableDataPropType,\n\tTableHeaderCells,\n\tTableSelectionPropType,\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 type { JSX } from '@stencil/core';\nimport { Component, h, Host, Method, Prop, State, Watch, Element } from '@stencil/core';\n\nimport { translate } from '../../i18n';\nimport { KolPaginationTag, KolTableStatelessWcTag } from '../../core/component-names';\nimport type { SortEventPayload } from '../../schema';\nimport { tryToDispatchKoliBriEvent } from '../../utils/events';\nimport { Events } from '../../schema/enums';\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\t/**\n\t * @deprecated only for backward compatibility\n\t */\n\tprivate sortFunction?: KoliBriSortFunction;\n\t/**\n\t * @deprecated only for backward compatibility\n\t */\n\tprivate sortDirections: Map<KoliBriSortFunction, KoliBriSortDirection> = new Map();\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 * @deprecated only for backward compatibility\n\t */\n\tprivate sortedColumnHead: KoliBriTableSelectedHead = { label: '', key: '', sortDirection: 'NOS' };\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.\n\t * @deprecated This property is deprecated and will be removed in the next major release.\n\t */\n\t@Prop() public _minWidth?: string;\n\n\t/**\n\t * Defines whether to show the data distributed over multiple pages.\n\t */\n\t@Prop() public _pagination?: boolean | Stringified<KoliBriTablePaginationProps>;\n\t/**\n\t * Controls the position of the pagination.\n\t */\n\t@Prop() public _paginationPosition?: PaginationPositionPropType = 'bottom';\n\t/**\n\t * Defines how rows can be selected and the current selection.\n\t */\n\t@Prop() public _selection?: TableSelectionPropType;\n\t/**\n\t * Defines the callback functions for table events.\n\t */\n\t@Prop() public _on?: TableStatefulCallbacksPropType;\n\n\t@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_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 * @deprecated only for backward compatibility\n\t */\n\tprivate setSortDirection = (sort: KoliBriSortFunction, direction: KoliBriSortDirection) => {\n\t\t/**\n\t\t * Durch des Clearen, ist es nicht möglich eine Mehr-Spalten-Sortierung\n\t\t * darzustellen. Das wäre der Fall, wenn man ggf. Daten in außerhalb der\n\t\t * Komponente sortiert und diese sortiert von außen rein gibt und der\n\t\t * Sortierungsalgorithmus mehrere Spalten zusammen sortierte.\n\t\t *\n\t\t * Beachte auch col.sort !== this.sortFunction\n\t\t */\n\t\tthis.sortDirections.clear();\n\t\tthis.sortDirections.set(sort, direction);\n\t\tthis.sortFunction = sort;\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\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(headerCell as KoliBriTableSelectedHead);\n\t\t} else if (typeof headerCell.sort === 'function') {\n\t\t\tthis.sortFunction = headerCell.sort;\n\t\t\tswitch (this.sortDirections.get(this.sortFunction)) {\n\t\t\t\tcase 'ASC':\n\t\t\t\t\tthis.setSortDirection(this.sortFunction, 'DESC');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'DESC':\n\t\t\t\t\tthis.setSortDirection(this.sortFunction, 'NOS');\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tthis.setSortDirection(this.sortFunction, 'ASC');\n\t\t\t}\n\t\t\tthis.updateSortedData(headerCell as KoliBriTableSelectedHead);\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} else if (typeof cell.sort === 'function') {\n\t\t\t\t\t\t\t\t\t\t\tthis.setSortDirection(cell.sort, sortDirection);\n\t\t\t\t\t\t\t\t\t\t\tsetTimeout(() => this.updateSortedData({ key, label: cell.label, sortDirection }));\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/**\n\t * @deprecated This property is deprecated and will be removed in the next major release.\n\t */\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\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\tevent.stopPropagation();\n\t};\n\n\tpublic componentDidLoad(): void {\n\t\tthis.tableWcRef?.addEventListener('kol-selection-change', this.onSelectionChange);\n\t}\n\n\tpublic disconnectedCallback(): void {\n\t\tthis.tableWcRef?.removeEventListener('kol-selection-change', 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.validatePagination(this._pagination);\n\t\tthis.validatePaginationPosition(this._paginationPosition);\n\t\tthis.validateSelection(this._selection);\n\t\tthis.validateOn(this._on);\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\t/**\n\t *\n\t * @param cell only used for old single sort. Can be removed when sort is removed.\n\t */\n\tprivate updateSortedData = (cell: KoliBriTableSelectedHead = this.sortedColumnHead) => {\n\t\tif (this.disableSort) {\n\t\t\tsetState(this, '_sortedData', this.state._data);\n\t\t\treturn;\n\t\t}\n\n\t\tlet sortedData: KoliBriTableDataType[] = this.state._data;\n\t\tif (this.sortData.length > 0) {\n\t\t\tsortedData = this.state._data.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} else if (typeof this.sortFunction === 'function') {\n\t\t\tswitch (this.sortDirections.get(this.sortFunction)) {\n\t\t\t\tcase 'ASC':\n\t\t\t\t\tsortedData = this.sortFunction([...this.state._data]);\n\t\t\t\t\tthis.sortedColumnHead = { label: cell.label, key: cell.key, sortDirection: 'ASC' };\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'DESC':\n\t\t\t\t\tsortedData = this.sortFunction([...this.state._data]).reverse();\n\t\t\t\t\tthis.sortedColumnHead = { label: cell.label, key: cell.key, sortDirection: 'DESC' };\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'NOS':\n\t\t\t\tdefault:\n\t\t\t\t\tsortedData = [...this.state._data];\n\t\t\t\t\tthis.sortedColumnHead = { label: '', key: '', sortDirection: 'NOS' };\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(): JSX.Element {\n\t\treturn (\n\t\t\t<div class=\"pagination\">\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>\n\t\t\t\t\t<KolPaginationTag\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={translate('kol-table-pagination-label', { placeholders: { label: this.state._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' || typeof headerCell.sort === 'function')) {\n\t\t\tif (headerCell.key === this.sortedColumnHead.key) {\n\t\t\t\treturn this.sortedColumnHead.sortDirection;\n\t\t\t}\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\ttryToDispatchKoliBriEvent('selection-change', this.host, selectedData);\n\n\t\tif (typeof this.state._on?.[Events.onSelectionChange] === 'function') {\n\t\t\tthis.state._on[Events.onSelectionChange](event, 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() : null;\n\t\tconst paginationBottom = this._paginationPosition === 'bottom' || this._paginationPosition === 'both' ? this.renderPagination() : 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/>\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,o3RAAo3R,CAAC;AAC74R,sCAA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AC,sBAAsB,CAAC,IAAI,CAAC,IAAG,CAAC,CAAC;YAC5I,QAAQ,EAAE,MAAA,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;SAC9I,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,GAChC,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","@import '../@shared/mixins';\n@import '../../styles/global';\n@import '../@shared/kol-table-stateless-mixin';\n\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\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\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';\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@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\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.validatePagination(this._pagination);\n\t\tthis.validatePaginationPosition(this._paginationPosition);\n\t\tthis.validateSelection(this._selection);\n\t\tthis.validateOn(this._on);\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\tlet sortedData: KoliBriTableDataType[] = this.state._data;\n\t\tif (this.sortData.length > 0) {\n\t\t\tsortedData = this.state._data.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(): JSX.Element {\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={translate('kol-table-pagination-label', { placeholders: { label: this.state._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() : null;\n\t\tconst paginationBottom = this._paginationPosition === 'bottom' || this._paginationPosition === 'both' ? this.renderPagination() : 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/>\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,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as registerInstance,h,F as Fragment,H as Host,g as getElement}from"./index-58121290.js";import{g as KolIconTag,a as KolTooltipWcTag,c as KolButtonWcTag}from"./component-names-d278f819.js";import{t as translate}from"./i18n-5fe08f1c.js";import{n as nonce}from"./dev.utils-e6830118.js";import{t as tryToDispatchKoliBriEvent}from"./events-29e84d75.js";import{t as emptyStringByArrayHandler,o as objectObjectHandler,p as parseJson,w as watchValidator,i as watchString}from"./prop.validators-9feb1d92.js";import{v as validateTableData,a as validateTableDataFoot,d as validateTableCallbacks,b as validateTableSelection,E as Events}from"./events-8ec9ecc6.js";import{v as validateLabel}from"./label-d0315384.js";import"./i18n-7ea9f137.js";import"./reuse-32931294.js";import"./dev.utils-fab45cbc.js";import"./index-da3e0c00.js";import"./common-0f1f2276.js";const validateTableHeaderCells=(e,t)=>{emptyStringByArrayHandler(t,(()=>{objectObjectHandler(t,(()=>{try{t=parseJson(t)}catch(e){}watchValidator(e,"_headerCells",(e=>"object"==typeof e&&null!==e&&(void 0===e.horizontal||Array.isArray(e.horizontal)&&void 0===e.horizontal.find((e=>!Array.isArray(e))))&&(void 0===e.vertical||Array.isArray(e.vertical)&&void 0===e.vertical.find((e=>!Array.isArray(e))))&&!0),new Set(["TableHeaderCellsPropType"]),t)}))}))},KolTableStateless=class{constructor(e){registerInstance(this,e),this.horizontal=!0,this.cellsToRenderTimeouts=new Map,this.dataToKeyMap=new Map,this.checkboxRefs=[],this.renderTableRow=(e,t,a)=>{var i,l;let o=String(t);return this.horizontal&&(null===(i=e[0])||void 0===i?void 0:i.data)&&(o=null!==(l=this.getDataKey(e[0].data))&&void 0!==l?l:o),h("tr",{key:`row-${o}`},this.renderSelectionCell(e,t),e.map(((e,i)=>this.renderTableCell(e,t,i,a))))},this.renderTableCell=(e,t,a,i)=>{let l=`${t}-${a}-${e.label}`;if(e.data){const i=this.getDataKey(e.data);l=i?`${i}-${this.horizontal?a:t}`:l}return!1===e.asTd?this.renderHeadingCell(e,t,a,i):h("td",{key:`cell-${l}`,class:{[e.textAlign]:"string"==typeof e.textAlign&&e.textAlign.length>0},colSpan:e.colSpan,rowSpan:e.rowSpan,style:{textAlign:e.textAlign,width:e.width},ref:"function"==typeof e.render?t=>{this.cellRender(e,t)}:void 0},"function"!=typeof e.render?e.label:"")},this.state={_data:[],_label:"",_headerCells:{horizontal:[],vertical:[]}},this.tableDivElementHasScrollbar=!1,this._data=void 0,this._dataFoot=void 0,this._headerCells=void 0,this._label=void 0,this._minWidth=void 0,this._on=void 0,this._selection=void 0}validateData(e){validateTableData(this,e,{beforePatch:e=>{this.updateDataToKeyMap(e)}})}validateDataFoot(e){validateTableDataFoot(this,e)}validateHeaderCells(e){validateTableHeaderCells(this,e)}validateLabel(e){validateLabel(this,e,{required:!0})}validateMinWidth(e){watchString(this,"_deprecatedMinWidth",e,{defaultValue:void 0})}validateOn(e){validateTableCallbacks(this,e)}validateSelection(e){validateTableSelection(this,e)}handleKeyDown(e){var t;if("ArrowUp"===e.key||"ArrowDown"===e.key){const a=null===(t=this.tableDivElement)||void 0===t?void 0:t.querySelector(":focus");let i=this.checkboxRefs.indexOf(a);i>-1&&(e.preventDefault(),"ArrowDown"===e.key?(i=(i+1)%this.checkboxRefs.length,this.checkboxRefs[i].focus()):"ArrowUp"===e.key&&(e.preventDefault(),i=(i+this.checkboxRefs.length-1)%this.checkboxRefs.length,this.checkboxRefs[i].focus()))}}componentDidRender(){this.checkDivElementScrollbar()}componentDidLoad(){this.tableDivElement&&ResizeObserver&&(this.tableDivElementResizeObserver=new ResizeObserver(this.checkDivElementScrollbar.bind(this)),this.tableDivElementResizeObserver.observe(this.tableDivElement))}disconnectedCallback(){var e;null===(e=this.tableDivElementResizeObserver)||void 0===e||e.disconnect()}checkDivElementScrollbar(){this.tableDivElement&&(this.tableDivElementHasScrollbar=this.tableDivElement.scrollWidth>this.tableDivElement.clientWidth)}updateDataToKeyMap(e){e.forEach((e=>{this.dataToKeyMap.has(e)||this.dataToKeyMap.set(e,nonce())})),this.dataToKeyMap.forEach(((t,a)=>{e.includes(a)||this.dataToKeyMap.delete(a)}))}getDataKey(e){return this.dataToKeyMap.get(e)}cellRender(e,t){t&&(clearTimeout(this.cellsToRenderTimeouts.get(t)),this.cellsToRenderTimeouts.set(t,setTimeout((()=>{if("function"==typeof e.render){const a=e.render(t,e,e.data,this.state._data);"string"==typeof a&&(t.textContent=a)}}))))}getNumberOfCols(e,t){let a=0;return e.forEach((e=>{let t=0;Array.isArray(e)&&e.forEach((e=>{var a;return t+=null!==(a=e.colSpan)&&void 0!==a?a:1})),a<t&&(a=t)})),0===a&&(a=t.length),a}getNumberOfRows(e,t){var a;let i=0;return e.forEach((e=>{let t=0;Array.isArray(e)&&e.forEach((e=>{var a;return t+=null!==(a=e.rowSpan)&&void 0!==a?a:1})),i<t&&(i=t)})),0===i?i=t.length:i-=(null===(a=this.state._dataFoot)||void 0===a?void 0:a.length)||0,i}getThePrimaryHeadersWithKeysIfExists(e){const t=[];return e.forEach((e=>{e.forEach((e=>{"string"==typeof e.key&&t.push(e)}))})),t}getPrimaryHeaders(e){var t,a;let i=this.getThePrimaryHeadersWithKeysIfExists(null!==(t=e.horizontal)&&void 0!==t?t:[]);return this.horizontal=!0,0===i.length&&(i=this.getThePrimaryHeadersWithKeysIfExists(null!==(a=e.vertical)&&void 0!==a?a:[]),i.length>0&&(this.horizontal=!1)),i}createDataField(e,t,a){var i;t.horizontal=Array.isArray(null==t?void 0:t.horizontal)?t.horizontal:[],t.vertical=Array.isArray(null==t?void 0:t.vertical)?t.vertical:[];const l=this.getPrimaryHeaders(t),o=this.getNumberOfCols(t.horizontal,e);let s=this.getNumberOfRows(t.vertical,e),n=0;a&&(n=s,s+=(null===(i=this.state._dataFoot)||void 0===i?void 0:i.length)||0);const r=[],c=[],h=[];t.vertical.forEach(((e,t)=>{c[t]=0,h[t]=[]}));for(let i=n;i<s;i++){const s=[];t.vertical.forEach(((e,t)=>{let a=0;if(h[t].forEach((e=>a+=e)),a<=i){const l=e[i-a+c[t]];if("object"==typeof l){s.push(Object.assign(Object.assign({},l),{asTd:!1,data:{}}));let e=1;if("number"==typeof l.rowSpan&&l.rowSpan>1&&(e=l.rowSpan),h[t].push(e),"number"==typeof l.colSpan&&l.colSpan>1)for(let a=1;a<l.colSpan;a++)h[t+a].push(e);c[t]++}}}));for(let t=0;t<o;t++)if(!0===this.horizontal){const o=a&&this.state._dataFoot?this.state._dataFoot[i-n]:e[i];"object"==typeof l[t]&&null!==l[t]&&"string"==typeof l[t].key&&"object"==typeof o&&null!==o&&s.push(Object.assign(Object.assign({},l[t]),{colSpan:void 0,data:o,label:o[l[t].key],rowSpan:void 0}))}else"object"==typeof l[i]&&null!==l[i]&&"string"==typeof l[i].key&&"object"==typeof e[t]&&null!==e[t]&&s.push(Object.assign(Object.assign({},l[i]),{colSpan:void 0,data:e[t],label:e[t][l[i].key],rowSpan:void 0}));r.push(s)}if(0===e.length){let e=0,a=0;Array.isArray(t.horizontal)&&t.horizontal.length>0&&t.horizontal[0].forEach((t=>{e+=t.colSpan||1})),Array.isArray(t.vertical)&&t.vertical.length>0&&(e-=t.vertical.length,t.vertical[0].forEach((e=>{a+=e.rowSpan||1})));const i={colSpan:e,label:translate("kol-no-entries"),render:void 0,rowSpan:Math.max(a,1)};0===r.length?r.push([i]):r[0].push(i)}return r}componentWillLoad(){this.validateData(this._data),this.validateDataFoot(this._dataFoot),this.validateHeaderCells(this._headerCells),this.validateLabel(this._label),this.validateMinWidth(this._minWidth),this.validateOn(this._on),this.validateSelection(this._selection)}renderSelectionCell(e,t){var a,i,l;const o=this.state._selection;if(!o)return"";const s=null!==(a=o.keyPropertyName)&&void 0!==a?a:"id",n=null===(i=e[0])||void 0===i?void 0:i.data;if(!n)return"";const r=n[s],c=o.multiple||void 0===o.multiple,d=null===(l=null==o?void 0:o.selectedKeys)||void 0===l?void 0:l.includes(r),v=o.label(n),b={name:"selection",checked:d,id:r,"aria-label":v};return h("td",{key:`tbody-${t}-selection`,class:"selection-cell"},h("div",{class:"input "+(d?"checked":"")},c?h("label",{class:"checkbox-container"},h(KolIconTag,{class:"icon",_icons:"codicon "+(d?"codicon-check":""),_label:""}),h("input",Object.assign({ref:e=>e&&this.checkboxRefs.push(e)},b,{type:"checkbox",onInput:e=>{var t,a,i;const l=d?null===(a=null==o?void 0:o.selectedKeys)||void 0===a?void 0:a.filter((e=>e!==r)):[...null!==(t=null==o?void 0:o.selectedKeys)&&void 0!==t?t:[],r];tryToDispatchKoliBriEvent("selection-change",this.host,l),"function"==typeof(null===(i=this.state._on)||void 0===i?void 0:i[Events.onSelectionChange])&&this.state._on[Events.onSelectionChange](e,null!=l?l:[])}}))):h("label",{class:"radio-container"},h("input",Object.assign({},b,{type:"radio",onInput:e=>{var t;tryToDispatchKoliBriEvent("selection-change",this.host,r),"function"==typeof(null===(t=this.state._on)||void 0===t?void 0:t[Events.onSelectionChange])&&this.state._on[Events.onSelectionChange](e,r)}}))),h(KolTooltipWcTag,{"aria-hidden":"true",class:"input-tooltip",_align:"right",_id:`${r}-label`,_label:v})))}renderHeadingSelectionCell(){var e,t;const a=this.state._selection;if(!a||!a.multiple&&void 0!==a.multiple)return h("th",{key:"thead-0"});const i=null!==(e=a.keyPropertyName)&&void 0!==e?e:"id",l=null===(t=a.selectedKeys)||void 0===t?void 0:t.length,o=l===this.state._data.length,s=0!==l&&!o;let n="kol-table-selection-indeterminate";o&&!s&&(n="kol-table-selection-none"),0===l&&(n="kol-table-selection-all");const r=translate(n);return h("th",{key:"thead-0-selection",class:"selection-cell selection-control"},h("div",{class:"input "+(s?"indeterminate":o?"checked":"")},h("label",{class:"checkbox-container"},h(KolIconTag,{class:"icon",_icons:"codicon "+(s?"codicon-remove":o?"codicon-check":""),_label:""}),h("input",{ref:e=>e&&this.checkboxRefs.push(e),name:"selection",checked:o&&!s,"aria-label":r,type:"checkbox",onInput:e=>{var t;const a=o?[]:this.state._data.map((e=>null==e?void 0:e[i]));tryToDispatchKoliBriEvent("selection-change",this.host,a),"function"==typeof(null===(t=this.state._on)||void 0===t?void 0:t[Events.onSelectionChange])&&this.state._on[Events.onSelectionChange](e,a)}})),h(KolTooltipWcTag,{"aria-hidden":"true",class:"input-tooltip",_align:"right",_id:`${n}-label`,_label:r})))}renderHeaderTdCell(){return h(Fragment,null,Array.isArray(this.state._headerCells.horizontal)&&this.state._headerCells.horizontal.length>0&&Array.isArray(this.state._headerCells.vertical)&&this.state._headerCells.vertical.length>0&&Array.isArray(this.state._headerCells.horizontal)&&h("td",{"aria-hidden":"true",colSpan:this.state._headerCells.vertical.length,rowSpan:this.state._headerCells.horizontal.length}))}renderHeadingCell(e,t,a,i){let l,o="codicon codicon-fold";if(e.sortDirection)switch(e.sortDirection){case"ASC":o="codicon codicon-chevron-up",l="ascending";break;case"DESC":o="codicon codicon-chevron-down",l="descending"}const s=i?"row":"number"==typeof e.colSpan&&e.colSpan>1?"colgroup":"col";return h("th",{key:`${t}-${a}-${e.label}`,class:e.textAlign?`align-${e.textAlign}`:void 0,scope:s,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{width:e.width},"aria-sort":l,"data-sort":`sort-${e.sortDirection}`},e.sortDirection?h(KolButtonWcTag,{class:"table-sort-button",exportparts:"icon",_icons:{right:o},_label:e.label,_on:{onClick:t=>{var a;"function"==typeof(null===(a=this.state._on)||void 0===a?void 0:a.onSort)&&e.key&&e.sortDirection&&this.state._on.onSort(t,{key:e.key,currentSortDirection:e.sortDirection})}}}):e.label)}renderSpacer(e,t){var a,i;const l=(null===(a=this.state._headerCells.vertical)||void 0===a?void 0:a.length)||0,o=null===(i=null==t?void 0:t[0])||void 0===i?void 0:i.reduce(((e,t)=>e+(t.colSpan||1)),0),s=this.state._selection?1:0;return h("tr",{"aria-hidden":"true",class:`${e}-spacer`},h("td",{colSpan:l+o+s}))}renderFoot(){if(!this.state._dataFoot||0===this.state._dataFoot.length)return null;const e=this.createDataField(this.state._dataFoot,this.state._headerCells,!0);return h("tfoot",null,[this.renderSpacer("foot",e),e.map(((e,t)=>this.renderTableRow(e,t,!0)))])}render(){const e=this.createDataField(this.state._data,this.state._headerCells);return this.checkboxRefs=[],h(Host,{key:"9518b44a4421b5843936ee7623532733b6134a2a",class:"kol-table-stateless-wc"},h("div",{key:"5bfd8c297dd3bed301c7e7e455b60278e270af24",ref:e=>this.tableDivElement=e,class:"table",tabindex:this.tableDivElementHasScrollbar?"-1":void 0},h("table",{key:"6906eae36940a1a00a5eed7401526a218949e990",style:{minWidth:this.state._deprecatedMinWidth||this.state._minWidth}},h("div",{key:"ee461a67c036209a11cd55134023a85090c371d8",class:"focus-element",tabindex:this.tableDivElementHasScrollbar?"0":void 0,"aria-describedby":"caption"}," "),h("caption",{key:"a8aa614eb1b4db063238a818022bf2139b269b09",id:"caption"},this.state._label),Array.isArray(this.state._headerCells.horizontal)&&h("thead",{key:"1c88c8dba9d88ef7163645b686d1d5007cc75f47"},[this.state._headerCells.horizontal.map(((e,t)=>h("tr",{key:`thead-${t}`},this.state._selection&&this.renderHeadingSelectionCell(),0===t&&this.renderHeaderTdCell(),Array.isArray(e)&&e.map(((e,a)=>!0===e.asTd?h("td",{key:`thead-${t}-${a}-${e.label}`,class:{[e.textAlign]:"string"==typeof e.textAlign&&e.textAlign.length>0},colSpan:e.colSpan,rowSpan:e.rowSpan,style:{textAlign:e.textAlign,width:e.width},ref:"function"==typeof e.render?t=>{this.cellRender(e,t)}:void 0},"function"!=typeof e.render?e.label:""):this.renderHeadingCell(e,t,a,!1)))))),this.renderSpacer("head",this.state._headerCells.horizontal)]),h("tbody",{key:"d5983096363ef26b192a129bec8ab8e1df051056"},e.map(((e,t)=>this.renderTableRow(e,t,!0)))),this.renderFoot())))}get host(){return getElement(this)}static get watchers(){return{_data:["validateData"],_dataFoot:["validateDataFoot"],_headerCells:["validateHeaderCells"],_label:["validateLabel"],_minWidth:["validateMinWidth"],_on:["validateOn"],_selection:["validateSelection"]}}};export{KolTableStateless as kol_table_stateless_wc};
4
+ import{r as registerInstance,h,F as Fragment,g as getElement}from"./index-06658c3d.js";import{c as clsx}from"./clsx-09a06a12.js";import{d as KolIconTag,g as KolTooltipWcTag,a as KolButtonWcTag}from"./component-names-545d6582.js";import{t as translate}from"./i18n-5fe08f1c.js";import{t as emptyStringByArrayHandler,o as objectObjectHandler,p as parseJson,w as watchValidator}from"./prop.validators-9feb1d92.js";import{n as nonce}from"./dev.utils-f9d0242d.js";import{d as dispatchDomEvent,K as KolEvent}from"./events-5adf6b62.js";import{v as validateTableData,a as validateTableDataFoot,d as validateTableCallbacks,b as validateTableSelection,C as Callback}from"./callback-fd6ab619.js";import{v as validateLabel}from"./label-d0315384.js";import"./i18n-7ea9f137.js";import"./reuse-32931294.js";import"./index-da3e0c00.js";import"./dev.utils-fab45cbc.js";import"./common-54bf85ba.js";const validateTableHeaderCells=(e,t)=>{emptyStringByArrayHandler(t,(()=>{objectObjectHandler(t,(()=>{try{t=parseJson(t)}catch(e){}watchValidator(e,"_headerCells",(e=>"object"==typeof e&&null!==e&&(void 0===e.horizontal||Array.isArray(e.horizontal)&&void 0===e.horizontal.find((e=>!Array.isArray(e))))&&(void 0===e.vertical||Array.isArray(e.vertical)&&void 0===e.vertical.find((e=>!Array.isArray(e))))&&!0),new Set(["TableHeaderCellsPropType"]),t)}))}))},HEADER_CELL_WIDTH_VALIDATOR=/^\d+(\.\d+)?([a-z]+|%)?$/,validateMinWidth=(e,t,a)=>{watchValidator(e,"_minWidth",(e=>"string"==typeof e&&HEADER_CELL_WIDTH_VALIDATOR.test(e)),new Set(["String","/^\\d+(\\.\\d+)?([a-z]+|%)?$/"]),t,a)},KolTableStateless=class{constructor(e){registerInstance(this,e),this.horizontal=!0,this.cellsToRenderTimeouts=new Map,this.dataToKeyMap=new Map,this.checkboxRefs=[],this.renderTableRow=(e,t,a,l=!1)=>{var i,o;let s=String(t);return this.horizontal&&(null===(i=e[0])||void 0===i?void 0:i.data)&&(s=null!==(o=this.getDataKey(e[0].data))&&void 0!==o?o:s),h("tr",{class:clsx("kol-table__row",{"kol-table__row--body":!l,"kol-table__row--footer":l}),key:`row-${s}`},this.renderSelectionCell(e,t),e.map(((e,l)=>this.renderTableCell(e,t,l,a))))},this.renderTableCell=(e,t,a,l)=>{let i=`${t}-${a}-${e.label}`;if(e.data){const l=this.getDataKey(e.data);i=l?`${l}-${this.horizontal?a:t}`:i}return e.headerCell?this.renderHeadingCell(e,t,a,l):h("td",{key:`cell-${i}`,class:clsx("kol-table__cell kol-table__cell--body",{[`kol-table__cell--align-${e.textAlign}`]:e.textAlign}),colSpan:e.colSpan,rowSpan:e.rowSpan,style:{textAlign:e.textAlign,width:e.width},ref:"function"==typeof e.render?t=>{this.cellRender(e,t)}:void 0},"function"!=typeof e.render?e.label:"")},this.state={_data:[],_headerCells:{horizontal:[],vertical:[]},_label:"",_minWidth:"auto"},this.tableDivElementHasScrollbar=!1,this._data=void 0,this._dataFoot=void 0,this._headerCells=void 0,this._label=void 0,this._minWidth=void 0,this._on=void 0,this._selection=void 0}validateData(e){validateTableData(this,e,{beforePatch:e=>{this.updateDataToKeyMap(e)}})}validateDataFoot(e){validateTableDataFoot(this,e)}validateHeaderCells(e){validateTableHeaderCells(this,e)}validateLabel(e){validateLabel(this,e,{required:!0})}validateMinWidth(e){validateMinWidth(this,e)}validateOn(e){validateTableCallbacks(this,e)}validateSelection(e){validateTableSelection(this,e)}handleKeyDown(e){var t;if("ArrowUp"===e.key||"ArrowDown"===e.key){const a=null===(t=this.tableDivElement)||void 0===t?void 0:t.querySelector(":focus");let l=this.checkboxRefs.indexOf(a);l>-1&&(e.preventDefault(),"ArrowDown"===e.key?(l=(l+1)%this.checkboxRefs.length,this.checkboxRefs[l].focus()):"ArrowUp"===e.key&&(e.preventDefault(),l=(l+this.checkboxRefs.length-1)%this.checkboxRefs.length,this.checkboxRefs[l].focus()))}}componentDidRender(){this.checkDivElementScrollbar()}componentDidLoad(){this.tableDivElement&&ResizeObserver&&(this.tableDivElementResizeObserver=new ResizeObserver(this.checkDivElementScrollbar.bind(this)),this.tableDivElementResizeObserver.observe(this.tableDivElement))}disconnectedCallback(){var e;null===(e=this.tableDivElementResizeObserver)||void 0===e||e.disconnect()}checkDivElementScrollbar(){this.tableDivElement&&(this.tableDivElementHasScrollbar=this.tableDivElement.scrollWidth>this.tableDivElement.clientWidth)}updateDataToKeyMap(e){e.forEach((e=>{this.dataToKeyMap.has(e)||this.dataToKeyMap.set(e,nonce())})),this.dataToKeyMap.forEach(((t,a)=>{e.includes(a)||this.dataToKeyMap.delete(a)}))}getDataKey(e){return this.dataToKeyMap.get(e)}cellRender(e,t){t&&(clearTimeout(this.cellsToRenderTimeouts.get(t)),this.cellsToRenderTimeouts.set(t,setTimeout((()=>{if("function"==typeof e.render){const a=e.render(t,e,e.data,this.state._data);"string"==typeof a&&(t.textContent=a)}}))))}getNumberOfCols(e,t){let a=0;return e.forEach((e=>{let t=0;Array.isArray(e)&&e.forEach((e=>{var a;return t+=null!==(a=e.colSpan)&&void 0!==a?a:1})),a<t&&(a=t)})),0===a&&(a=t.length),a}getNumberOfRows(e,t){var a;let l=0;return e.forEach((e=>{let t=0;Array.isArray(e)&&e.forEach((e=>{var a;return t+=null!==(a=e.rowSpan)&&void 0!==a?a:1})),l<t&&(l=t)})),0===l?l=t.length:l-=(null===(a=this.state._dataFoot)||void 0===a?void 0:a.length)||0,l}getThePrimaryHeadersWithKeysIfExists(e){const t=[];return e.forEach((e=>{e.forEach((e=>{"string"==typeof e.key&&t.push(e)}))})),t}getPrimaryHeaders(e){var t,a;let l=this.getThePrimaryHeadersWithKeysIfExists(null!==(t=e.horizontal)&&void 0!==t?t:[]);return this.horizontal=!0,0===l.length&&(l=this.getThePrimaryHeadersWithKeysIfExists(null!==(a=e.vertical)&&void 0!==a?a:[]),l.length>0&&(this.horizontal=!1)),l}createDataField(e,t,a){var l;t.horizontal=Array.isArray(null==t?void 0:t.horizontal)?t.horizontal:[],t.vertical=Array.isArray(null==t?void 0:t.vertical)?t.vertical:[];const i=this.getPrimaryHeaders(t),o=this.getNumberOfCols(t.horizontal,e);let s=this.getNumberOfRows(t.vertical,e),n=0;a&&(n=s,s+=(null===(l=this.state._dataFoot)||void 0===l?void 0:l.length)||0);const r=[],c=[],d=[];t.vertical.forEach(((e,t)=>{c[t]=0,d[t]=[]}));for(let l=n;l<s;l++){const s=[];t.vertical.forEach(((e,t)=>{let a=0;if(d[t].forEach((e=>a+=e)),a<=l){const i=e[l-a+c[t]];if("object"==typeof i){s.push(Object.assign(Object.assign({},i),{headerCell:!0,data:{}}));let e=1;if("number"==typeof i.rowSpan&&i.rowSpan>1&&(e=i.rowSpan),d[t].push(e),"number"==typeof i.colSpan&&i.colSpan>1)for(let a=1;a<i.colSpan;a++)d[t+a].push(e);c[t]++}}}));for(let t=0;t<o;t++)if(!0===this.horizontal){const o=a&&this.state._dataFoot?this.state._dataFoot[l-n]:e[l];"object"==typeof i[t]&&null!==i[t]&&"string"==typeof i[t].key&&"object"==typeof o&&null!==o&&s.push(Object.assign(Object.assign({},i[t]),{colSpan:void 0,data:o,label:o[i[t].key],rowSpan:void 0}))}else"object"==typeof i[l]&&null!==i[l]&&"string"==typeof i[l].key&&"object"==typeof e[t]&&null!==e[t]&&s.push(Object.assign(Object.assign({},i[l]),{colSpan:void 0,data:e[t],label:e[t][i[l].key],rowSpan:void 0}));r.push(s)}if(0===e.length){let e=0,a=0;Array.isArray(t.horizontal)&&t.horizontal.length>0&&t.horizontal[0].forEach((t=>{e+=t.colSpan||1})),Array.isArray(t.vertical)&&t.vertical.length>0&&(e-=t.vertical.length,t.vertical[0].forEach((e=>{a+=e.rowSpan||1})));const l={colSpan:e,label:translate("kol-no-entries"),render:void 0,rowSpan:Math.max(a,1)};0===r.length?r.push([l]):r[0].push(l)}return r}handleSelectionChangeCallbackAndEvent(e,t){var a;"function"==typeof(null===(a=this.state._on)||void 0===a?void 0:a[Callback.onSelectionChange])&&this.state._on[Callback.onSelectionChange](e,t),this.host&&dispatchDomEvent(this.host,KolEvent.selectionChange,t)}componentWillLoad(){this.validateData(this._data),this.validateDataFoot(this._dataFoot),this.validateHeaderCells(this._headerCells),this.validateLabel(this._label),this.validateMinWidth(this._minWidth),this.validateOn(this._on),this.validateSelection(this._selection)}renderSelectionCell(e,t){var a,l,i;const o=this.state._selection;if(!o)return"";const s=null!==(a=o.keyPropertyName)&&void 0!==a?a:"id",n=null===(l=e[0])||void 0===l?void 0:l.data;if(!n)return"";const r=n[s],c=o.multiple||void 0===o.multiple,d=null===(i=null==o?void 0:o.selectedKeys)||void 0===i?void 0:i.includes(r),b=o.label(n),v={name:"selection",checked:d,id:r,"aria-label":b};return h("td",{key:`tbody-${t}-selection`,class:"kol-table__cell kol-table__cell--selection"},h("div",{class:clsx("kol-table__selection",{"kol-table__selection--checked":d})},c?h("label",{class:"kol-table__selection-label"},h(KolIconTag,{class:"kol-table__selection-icon",_icons:"codicon "+(d?"codicon-check":""),_label:""}),h("input",Object.assign({class:clsx("kol-table__selection-input kol-table__selection-input--checkbox"),ref:e=>e&&this.checkboxRefs.push(e)},v,{type:"checkbox",onInput:e=>{var t,a;const l=d?null===(a=null==o?void 0:o.selectedKeys)||void 0===a?void 0:a.filter((e=>e!==r)):[...null!==(t=null==o?void 0:o.selectedKeys)&&void 0!==t?t:[],r];this.handleSelectionChangeCallbackAndEvent(e,null!=l?l:[])}}))):h("label",{class:"kol-table__selection-label"},h("input",Object.assign({class:clsx("kol-table__selection-input kol-table__selection-input--radio")},v,{type:"radio",onInput:e=>{this.handleSelectionChangeCallbackAndEvent(e,r)}}))),h(KolTooltipWcTag,{"aria-hidden":"true",class:"kol-table__selection-input-tooltip",_align:"right",_id:`${r}-label`,_label:b})))}renderHeadingSelectionCell(){var e,t;const a=this.state._selection;if(!a||!a.multiple&&void 0!==a.multiple)return h("th",{class:"kol-table__cell kol-table__cell--header",key:"thead-0"});const l=null!==(e=a.keyPropertyName)&&void 0!==e?e:"id",i=null===(t=a.selectedKeys)||void 0===t?void 0:t.length,o=i===this.state._data.length,s=0!==i&&!o;let n="kol-table-selection-indeterminate";o&&!s&&(n="kol-table-selection-none"),0===i&&(n="kol-table-selection-all");const r=translate(n);return h("th",{key:"thead-0-selection",class:"kol-table__cell kol-table__cell--header"},h("div",{class:clsx("kol-table__selection",{"kol-table__selection--indeterminate":s,"kol-table__selection--checked":o})},h("label",{class:"kol-table__selection-label"},h(KolIconTag,{class:"kol-table__selection-icon",_icons:"codicon "+(s?"codicon-remove":o?"codicon-check":""),_label:""}),h("input",{class:clsx("kol-table__selection-input kol-table__selection-input--checkbox"),ref:e=>e&&this.checkboxRefs.push(e),name:"selection",checked:o&&!s,"aria-label":r,type:"checkbox",onInput:e=>{const t=o?[]:this.state._data.map((e=>null==e?void 0:e[l]));this.handleSelectionChangeCallbackAndEvent(e,t)}})),h(KolTooltipWcTag,{"aria-hidden":"true",class:"kol-table__selection-input-tooltip",_align:"right",_id:`${n}-label`,_label:r})))}renderHeaderTdCell(){return h(Fragment,null,Array.isArray(this.state._headerCells.horizontal)&&this.state._headerCells.horizontal.length>0&&Array.isArray(this.state._headerCells.vertical)&&this.state._headerCells.vertical.length>0&&Array.isArray(this.state._headerCells.horizontal)&&h("td",{"aria-hidden":"true",colSpan:this.state._headerCells.vertical.length,rowSpan:this.state._headerCells.horizontal.length}))}renderHeadingCell(e,t,a,l){let i,o="codicon codicon-fold";if(e.sortDirection)switch(e.sortDirection){case"ASC":o="codicon codicon-chevron-up",i="ascending";break;case"DESC":o="codicon codicon-chevron-down",i="descending"}const s=l?"row":"number"==typeof e.colSpan&&e.colSpan>1?"colgroup":"col";return h("th",{key:`${t}-${a}-${e.label}`,class:clsx("kol-table__cell kol-table__cell--header",{[`kol-table__cell--align-${e.textAlign}`]:e.textAlign,[`kol-table__cell--${i}`]:i}),scope:s,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{width:e.width},"aria-sort":i,"data-sort":`sort-${e.sortDirection}`},e.sortDirection?h(KolButtonWcTag,{class:"kol-table__sort-button",exportparts:"icon",_icons:{right:o},_label:e.label,_on:{onClick:t=>{var a;"function"==typeof(null===(a=this.state._on)||void 0===a?void 0:a.onSort)&&e.key&&e.sortDirection&&this.state._on.onSort(t,{key:e.key,currentSortDirection:e.sortDirection}),this.host&&dispatchDomEvent(this.host,KolEvent.sort,{key:e.key,currentSortDirection:e.sortDirection})}}}):e.label)}renderSpacer(e,t){var a,l;const i=(null===(a=this.state._headerCells.vertical)||void 0===a?void 0:a.length)||0,o=null===(l=null==t?void 0:t[0])||void 0===l?void 0:l.reduce(((e,t)=>e+(t.colSpan||1)),0),s=this.state._selection?1:0;return h("tr",{"aria-hidden":"true",class:clsx("kol-table__spacer",`kol-table__spacer--${e}`)},h("td",{class:clsx(`kol-table__spacer-line kol-table__spacer-line--${e}`),colSpan:i+o+s}))}renderFoot(){if(!this.state._dataFoot||0===this.state._dataFoot.length)return null;const e=this.createDataField(this.state._dataFoot,this.state._headerCells,!0);return h("tfoot",{class:"kol-table__footer"},[this.renderSpacer("foot",e),e.map(((e,t)=>this.renderTableRow(e,t,!0,!0)))])}render(){const e=this.createDataField(this.state._data,this.state._headerCells);return this.checkboxRefs=[],h("div",{key:"018dbdf0ae4856dee08e8a6d13a3f9f221d2d90a",ref:e=>this.tableDivElement=e,class:"kol-table",tabindex:this.tableDivElementHasScrollbar?"-1":void 0},h("table",{key:"dc242c33ba7a6a147453458430fedba8701c36d0",class:"kol-table__table",style:{minWidth:this.state._minWidth}},h("div",{key:"31887f9eadb14626d367010ae436d3f6ee71bbf5",class:"kol-table__focus-element",tabindex:this.tableDivElementHasScrollbar?"0":void 0,"aria-describedby":"caption"}," "),h("caption",{key:"92fcb5229b74c310ddd5d128704036ee754e263a",class:"kol-table__caption",id:"caption"},this.state._label),Array.isArray(this.state._headerCells.horizontal)&&h("thead",{key:"d7bda1ed3f6e17b20136a27807832c617286588c",class:"kol-table__head"},[this.state._headerCells.horizontal.map(((e,t)=>h("tr",{class:"kol-table__head-row",key:`thead-${t}`},this.state._selection&&this.renderHeadingSelectionCell(),0===t&&this.renderHeaderTdCell(),Array.isArray(e)&&e.map(((e,a)=>this.renderHeadingCell(e,t,a,!1)))))),this.renderSpacer("head",this.state._headerCells.horizontal)]),h("tbody",{key:"01f9f54a99f0b27407740c40cd1f948e52a33c34",class:"kol-table__body"},e.map(((e,t)=>this.renderTableRow(e,t,!0)))),this.renderFoot()))}get host(){return getElement(this)}static get watchers(){return{_data:["validateData"],_dataFoot:["validateDataFoot"],_headerCells:["validateHeaderCells"],_label:["validateLabel"],_minWidth:["validateMinWidth"],_on:["validateOn"],_selection:["validateSelection"]}}};export{KolTableStateless as kol_table_stateless_wc};