@public-ui/components 3.1.0-rc.0 → 3.1.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 (1055) hide show
  1. package/custom-elements.json +1 -1
  2. package/dist/cjs/{Alert-Bj1BTIEj.js → Alert-iB2nNldZ.js} +1 -1
  3. package/dist/cjs/{Collapsible-aA771eR4.js → Collapsible-CAJwi50V.js} +1 -1
  4. package/dist/cjs/{CustomSuggestionsOptionsGroup-cTHRZeAc.js → CustomSuggestionsOptionsGroup-BmxcG68L.js} +1 -1
  5. package/dist/cjs/{FieldControlStateWrapper-Cyr_zzt3.js → FieldControlStateWrapper-B_0MFAHD.js} +1 -1
  6. package/dist/cjs/{FormFieldStateWrapper-B2LPpMpo.js → FormFieldStateWrapper-BFcysaVO.js} +1 -1
  7. package/dist/cjs/{Heading-BZTrj6_i.js → Heading-CXo3APiB.js} +1 -1
  8. package/dist/cjs/Icon-CA2N7E-m.js +4 -0
  9. package/dist/cjs/{Input-BCYP3Fc4.js → Input-BG9SwAmi.js} +1 -1
  10. package/dist/cjs/{InputStateWrapper-uvFi_BbH.js → InputStateWrapper-Dc3UUVaW.js} +1 -1
  11. package/dist/cjs/{InternalUnderlinedBadgeText-uCh_T5VD.js → InternalUnderlinedBadgeText-BmcMXSlV.js} +1 -1
  12. package/dist/cjs/{Span-BkNklKcs.js → Span-Zi-z0XR5.js} +1 -1
  13. package/dist/cjs/app-globals-DjK7EzF0.js +4 -0
  14. package/dist/cjs/{bem-Bu0VYjZa.js → bem-CWXmxX43.js} +1 -1
  15. package/dist/cjs/{controller-DmfL38P4.js → controller-DHLdEAgl.js} +1 -1
  16. package/dist/cjs/{controller-LxYfXuho.js → controller-DT6QqMUx.js} +1 -1
  17. package/dist/cjs/{controller-icon-9udvsM5R.js → controller-icon-oRdlfcl8.js} +1 -1
  18. package/dist/cjs/{controller-DLwQQPHC.js → controller-r0aj2ftA.js} +1 -1
  19. package/dist/cjs/{dev.utils-fZEgoGGu.js → dev.utils-7DjklDXI.js} +1 -1
  20. package/dist/cjs/{devtools-yltf149z.js → devtools-C0JF5BjI.js} +1 -1
  21. package/dist/cjs/index-CUwAAV9q.js +4 -0
  22. package/dist/cjs/index.cjs.js +1 -1
  23. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  24. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  25. package/dist/cjs/kol-alert-wc.cjs.entry.js +1 -1
  26. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  27. package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
  28. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  29. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  30. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  31. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  32. package/dist/cjs/kol-button-wc.cjs.entry.js +1 -1
  33. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  34. package/dist/cjs/kol-card-wc.cjs.entry.js +1 -1
  35. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  36. package/dist/cjs/kol-combobox.cjs.entry.js +1 -1
  37. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  38. package/dist/cjs/kol-drawer.cjs.entry.js +1 -1
  39. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  40. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  41. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  42. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  43. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  44. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  45. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  46. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  47. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  48. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  49. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  50. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  51. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  52. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  53. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  54. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  55. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  56. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  57. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  58. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  59. package/dist/cjs/kol-pagination-wc.cjs.entry.js +1 -1
  60. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  61. package/dist/cjs/kol-popover-button-wc.cjs.entry.js +1 -1
  62. package/dist/cjs/kol-popover-button.cjs.entry.js +1 -1
  63. package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
  64. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  65. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  66. package/dist/cjs/kol-select-wc.cjs.entry.js +1 -1
  67. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  68. package/dist/cjs/kol-single-select.cjs.entry.js +1 -1
  69. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  70. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  71. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  72. package/dist/cjs/kol-table-settings-wc.cjs.entry.js +1 -1
  73. package/dist/cjs/kol-table-stateful.cjs.entry.js +1 -1
  74. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js +1 -1
  75. package/dist/cjs/kol-table-stateless.cjs.entry.js +1 -1
  76. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  77. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  78. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  79. package/dist/cjs/kol-toolbar.cjs.entry.js +1 -1
  80. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +1 -1
  81. package/dist/cjs/kol-tree-item-wc.cjs.entry.js +1 -1
  82. package/dist/cjs/kol-tree-item.cjs.entry.js +1 -1
  83. package/dist/cjs/kol-tree-wc.cjs.entry.js +1 -1
  84. package/dist/cjs/kol-tree.cjs.entry.js +1 -1
  85. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  86. package/dist/cjs/kolibri.cjs.js +1 -1
  87. package/dist/cjs/loader.cjs.js +1 -1
  88. package/dist/cjs/test-component.cjs.entry.js +1 -1
  89. package/dist/components/Alert.js +1 -1
  90. package/dist/components/Collapsible.js +1 -1
  91. package/dist/components/CustomSuggestionsOptionsGroup.js +1 -1
  92. package/dist/components/FieldControlStateWrapper.js +1 -1
  93. package/dist/components/Heading.js +1 -1
  94. package/dist/components/Icon.js +1 -1
  95. package/dist/components/Input.js +1 -1
  96. package/dist/components/InputStateWrapper.js +1 -1
  97. package/dist/components/InternalUnderlinedBadgeText.js +1 -1
  98. package/dist/components/Span.js +1 -1
  99. package/dist/components/access-and-short-key.js +1 -1
  100. package/dist/components/align-floating-elements.js +1 -1
  101. package/dist/components/align.js +1 -1
  102. package/dist/components/ariaCurrentService.js +1 -1
  103. package/dist/components/associated.controller.js +1 -1
  104. package/dist/components/auto-complete.js +1 -1
  105. package/dist/components/bem.js +1 -1
  106. package/dist/components/bem2.js +1 -1
  107. package/dist/components/bootstrap.js +1 -1
  108. package/dist/components/browser.js +1 -1
  109. package/dist/components/button-variant.js +1 -1
  110. package/dist/components/clsx.js +1 -1
  111. package/dist/components/color.js +1 -1
  112. package/dist/components/common.js +1 -1
  113. package/dist/components/component-names.js +1 -1
  114. package/dist/components/controller-icon.js +1 -1
  115. package/dist/components/controller.js +1 -1
  116. package/dist/components/controller2.js +1 -1
  117. package/dist/components/controller3.js +1 -1
  118. package/dist/components/controller4.js +1 -1
  119. package/dist/components/controller5.js +1 -1
  120. package/dist/components/custom-class.js +1 -1
  121. package/dist/components/dev.utils.js +1 -1
  122. package/dist/components/devtools.js +1 -1
  123. package/dist/components/disabled.js +1 -1
  124. package/dist/components/events.js +1 -1
  125. package/dist/components/has-closer.js +1 -1
  126. package/dist/components/hide-label.js +1 -1
  127. package/dist/components/href.js +1 -1
  128. package/dist/components/i18n.js +1 -1
  129. package/dist/components/i18n2.js +1 -1
  130. package/dist/components/icons.js +1 -1
  131. package/dist/components/image-source.js +1 -1
  132. package/dist/components/index.d.ts +2 -0
  133. package/dist/components/index.js +1 -1
  134. package/dist/components/inline.js +1 -1
  135. package/dist/components/isObject.js +1 -1
  136. package/dist/components/keyboard.js +1 -1
  137. package/dist/components/kol-abbr.js +1 -1
  138. package/dist/components/kol-accordion.js +1 -1
  139. package/dist/components/kol-alert-wc.js +1 -1
  140. package/dist/components/kol-alert.js +1 -1
  141. package/dist/components/kol-avatar-wc.js +1 -1
  142. package/dist/components/kol-avatar.js +1 -1
  143. package/dist/components/kol-badge.js +1 -1
  144. package/dist/components/kol-breadcrumb.js +1 -1
  145. package/dist/components/kol-button-link.js +1 -1
  146. package/dist/components/kol-button-wc.js +1 -1
  147. package/dist/components/kol-button.js +1 -1
  148. package/dist/components/kol-card-wc.js +1 -1
  149. package/dist/components/kol-card.js +1 -1
  150. package/dist/components/kol-combobox.js +1 -1
  151. package/dist/components/kol-details.js +1 -1
  152. package/dist/components/kol-drawer.js +1 -1
  153. package/dist/components/kol-form.js +1 -1
  154. package/dist/components/kol-heading.js +1 -1
  155. package/dist/components/kol-icon.js +1 -1
  156. package/dist/components/kol-image.js +1 -1
  157. package/dist/components/kol-input-checkbox.js +1 -1
  158. package/dist/components/kol-input-color.js +1 -1
  159. package/dist/components/kol-input-date.js +1 -1
  160. package/dist/components/kol-input-email.js +1 -1
  161. package/dist/components/kol-input-file.js +1 -1
  162. package/dist/components/kol-input-number.js +1 -1
  163. package/dist/components/kol-input-password.js +1 -1
  164. package/dist/components/kol-input-radio.js +1 -1
  165. package/dist/components/kol-input-range.js +1 -1
  166. package/dist/components/kol-input-text.js +1 -1
  167. package/dist/components/kol-kolibri.js +1 -1
  168. package/dist/components/kol-link-button.js +1 -1
  169. package/dist/components/kol-link-wc.js +1 -1
  170. package/dist/components/kol-link.js +1 -1
  171. package/dist/components/kol-modal.js +1 -1
  172. package/dist/components/kol-nav.js +1 -1
  173. package/dist/components/kol-pagination-wc.js +1 -1
  174. package/dist/components/kol-pagination.js +1 -1
  175. package/dist/components/kol-popover-button-wc.js +1 -1
  176. package/dist/components/kol-popover-button.js +1 -1
  177. package/dist/components/kol-popover-wc.js +1 -1
  178. package/dist/components/kol-progress.js +1 -1
  179. package/dist/components/kol-quote.js +1 -1
  180. package/dist/components/kol-select-wc.js +1 -1
  181. package/dist/components/kol-select.js +1 -1
  182. package/dist/components/kol-single-select.js +1 -1
  183. package/dist/components/kol-skip-nav.js +1 -1
  184. package/dist/components/kol-spin.js +1 -1
  185. package/dist/components/kol-split-button.js +1 -1
  186. package/dist/components/kol-table-settings-wc.js +1 -1
  187. package/dist/components/kol-table-stateful.js +1 -1
  188. package/dist/components/kol-table-stateless-wc.js +1 -1
  189. package/dist/components/kol-table-stateless.js +1 -1
  190. package/dist/components/kol-tabs.js +1 -1
  191. package/dist/components/kol-textarea.js +1 -1
  192. package/dist/components/kol-toast-container.js +1 -1
  193. package/dist/components/kol-toolbar.js +1 -1
  194. package/dist/components/kol-tooltip-wc.js +1 -1
  195. package/dist/components/kol-tree-item-wc.js +1 -1
  196. package/dist/components/kol-tree-item.js +1 -1
  197. package/dist/components/kol-tree-wc.js +1 -1
  198. package/dist/components/kol-tree.js +1 -1
  199. package/dist/components/kol-version.js +1 -1
  200. package/dist/components/label.js +1 -1
  201. package/dist/components/markdown.js +1 -1
  202. package/dist/components/max-length-behavior.js +1 -1
  203. package/dist/components/multiple.js +1 -1
  204. package/dist/components/open.js +1 -1
  205. package/dist/components/orientation.js +1 -1
  206. package/dist/components/placeholder.js +1 -1
  207. package/dist/components/read-only.js +1 -1
  208. package/dist/components/required.js +1 -1
  209. package/dist/components/reuse.js +1 -1
  210. package/dist/components/rows.js +1 -1
  211. package/dist/components/show.js +1 -1
  212. package/dist/components/spell-check.js +1 -1
  213. package/dist/components/suggestions.js +1 -1
  214. package/dist/components/table-settings.js +1 -1
  215. package/dist/components/test-component.js +1 -1
  216. package/dist/components/tooltip-align.js +1 -1
  217. package/dist/components/tooltip-open-tracking.js +1 -1
  218. package/dist/components/tslib.es6.js +1 -1
  219. package/dist/components/unique-nav-labels.js +1 -1
  220. package/dist/components/validation.js +1 -1
  221. package/dist/components/validation2.js +1 -1
  222. package/dist/esm/{Alert-DFxK42_b.js → Alert-I3c2hFqL.js} +1 -1
  223. package/dist/esm/{Collapsible-CaNCj17a.js → Collapsible-CK8NIzH0.js} +1 -1
  224. package/dist/esm/{CustomSuggestionsOptionsGroup-BElrEzPg.js → CustomSuggestionsOptionsGroup-CKk6vmBF.js} +1 -1
  225. package/dist/esm/{FieldControlStateWrapper-BQEssIZt.js → FieldControlStateWrapper-CHxIkx4o.js} +1 -1
  226. package/dist/esm/{FormFieldStateWrapper-Bs6adxNw.js → FormFieldStateWrapper-BD6_Aq_y.js} +1 -1
  227. package/dist/esm/{Heading-DqCQ4tvo.js → Heading-DwQEABii.js} +1 -1
  228. package/dist/esm/{Icon-qDQ9VVcv.js → Icon-DazIQvDi.js} +1 -1
  229. package/dist/esm/{Input-WOVJOXlM.js → Input-KPeaFJZR.js} +1 -1
  230. package/dist/esm/{InputStateWrapper-C9u4kUR_.js → InputStateWrapper-Br3zT89Q.js} +1 -1
  231. package/dist/esm/{InternalUnderlinedBadgeText-CNjTZsLo.js → InternalUnderlinedBadgeText-BXMEPoNX.js} +1 -1
  232. package/dist/esm/{Span-CgBP4Uo5.js → Span-_4yQD2YZ.js} +1 -1
  233. package/dist/esm/app-globals-BMo3oAt8.js +4 -0
  234. package/dist/esm/{bem-C27SfH6w.js → bem-Dj4gWVFO.js} +1 -1
  235. package/dist/esm/{controller-XsiwUqFk.js → controller-BVGTTRsM.js} +1 -1
  236. package/dist/esm/{controller-CHfpEwXt.js → controller-CBTbnj0P.js} +1 -1
  237. package/dist/esm/{controller-D3181HNj.js → controller-hCTGmOJP.js} +1 -1
  238. package/dist/esm/{controller-icon-s2Mrr-X3.js → controller-icon-z0j8meAS.js} +1 -1
  239. package/dist/esm/{dev.utils-Bl9mUZR6.js → dev.utils-CT0IU26V.js} +1 -1
  240. package/dist/esm/{devtools-DfvAaTZM.js → devtools-CKGr6nvH.js} +1 -1
  241. package/dist/esm/index-BVfSKhpj.js +4 -0
  242. package/dist/esm/index.js +1 -1
  243. package/dist/esm/kol-abbr.entry.js +1 -1
  244. package/dist/esm/kol-accordion.entry.js +1 -1
  245. package/dist/esm/kol-alert-wc.entry.js +1 -1
  246. package/dist/esm/kol-alert.entry.js +1 -1
  247. package/dist/esm/kol-avatar-wc.entry.js +1 -1
  248. package/dist/esm/kol-avatar.entry.js +1 -1
  249. package/dist/esm/kol-badge.entry.js +1 -1
  250. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  251. package/dist/esm/kol-button-link.entry.js +1 -1
  252. package/dist/esm/kol-button-wc.entry.js +1 -1
  253. package/dist/esm/kol-button.entry.js +1 -1
  254. package/dist/esm/kol-card-wc.entry.js +1 -1
  255. package/dist/esm/kol-card.entry.js +1 -1
  256. package/dist/esm/kol-combobox.entry.js +1 -1
  257. package/dist/esm/kol-details.entry.js +1 -1
  258. package/dist/esm/kol-drawer.entry.js +1 -1
  259. package/dist/esm/kol-form.entry.js +1 -1
  260. package/dist/esm/kol-heading.entry.js +1 -1
  261. package/dist/esm/kol-icon.entry.js +1 -1
  262. package/dist/esm/kol-image.entry.js +1 -1
  263. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  264. package/dist/esm/kol-input-color.entry.js +1 -1
  265. package/dist/esm/kol-input-date.entry.js +1 -1
  266. package/dist/esm/kol-input-email.entry.js +1 -1
  267. package/dist/esm/kol-input-file.entry.js +1 -1
  268. package/dist/esm/kol-input-number.entry.js +1 -1
  269. package/dist/esm/kol-input-password.entry.js +1 -1
  270. package/dist/esm/kol-input-radio.entry.js +1 -1
  271. package/dist/esm/kol-input-range.entry.js +1 -1
  272. package/dist/esm/kol-input-text.entry.js +1 -1
  273. package/dist/esm/kol-kolibri.entry.js +1 -1
  274. package/dist/esm/kol-link-button.entry.js +1 -1
  275. package/dist/esm/kol-link-wc.entry.js +1 -1
  276. package/dist/esm/kol-link.entry.js +1 -1
  277. package/dist/esm/kol-modal.entry.js +1 -1
  278. package/dist/esm/kol-nav.entry.js +1 -1
  279. package/dist/esm/kol-pagination-wc.entry.js +1 -1
  280. package/dist/esm/kol-pagination.entry.js +1 -1
  281. package/dist/esm/kol-popover-button-wc.entry.js +1 -1
  282. package/dist/esm/kol-popover-button.entry.js +1 -1
  283. package/dist/esm/kol-popover-wc.entry.js +1 -1
  284. package/dist/esm/kol-progress.entry.js +1 -1
  285. package/dist/esm/kol-quote.entry.js +1 -1
  286. package/dist/esm/kol-select-wc.entry.js +1 -1
  287. package/dist/esm/kol-select.entry.js +1 -1
  288. package/dist/esm/kol-single-select.entry.js +1 -1
  289. package/dist/esm/kol-skip-nav.entry.js +1 -1
  290. package/dist/esm/kol-spin.entry.js +1 -1
  291. package/dist/esm/kol-split-button.entry.js +1 -1
  292. package/dist/esm/kol-table-settings-wc.entry.js +1 -1
  293. package/dist/esm/kol-table-stateful.entry.js +1 -1
  294. package/dist/esm/kol-table-stateless-wc.entry.js +1 -1
  295. package/dist/esm/kol-table-stateless.entry.js +1 -1
  296. package/dist/esm/kol-tabs.entry.js +1 -1
  297. package/dist/esm/kol-textarea.entry.js +1 -1
  298. package/dist/esm/kol-toast-container.entry.js +1 -1
  299. package/dist/esm/kol-toolbar.entry.js +1 -1
  300. package/dist/esm/kol-tooltip-wc.entry.js +1 -1
  301. package/dist/esm/kol-tree-item-wc.entry.js +1 -1
  302. package/dist/esm/kol-tree-item.entry.js +1 -1
  303. package/dist/esm/kol-tree-wc.entry.js +1 -1
  304. package/dist/esm/kol-tree.entry.js +1 -1
  305. package/dist/esm/kol-version.entry.js +1 -1
  306. package/dist/esm/kolibri.js +1 -1
  307. package/dist/esm/loader.js +1 -1
  308. package/dist/esm/test-component.entry.js +1 -1
  309. package/dist/kolibri/Alert-I3c2hFqL.js +4 -0
  310. package/dist/kolibri/Collapsible-CK8NIzH0.js +4 -0
  311. package/dist/kolibri/{CustomSuggestionsOptionsGroup-BElrEzPg.js → CustomSuggestionsOptionsGroup-CKk6vmBF.js} +1 -1
  312. package/dist/kolibri/FieldControlStateWrapper-CHxIkx4o.js +4 -0
  313. package/dist/kolibri/FormFieldStateWrapper-BD6_Aq_y.js +4 -0
  314. package/dist/kolibri/Heading-DwQEABii.js +4 -0
  315. package/dist/kolibri/{Icon-qDQ9VVcv.js → Icon-DazIQvDi.js} +1 -1
  316. package/dist/kolibri/Input-KPeaFJZR.js +4 -0
  317. package/dist/kolibri/InputStateWrapper-Br3zT89Q.js +4 -0
  318. package/dist/kolibri/InternalUnderlinedBadgeText-BXMEPoNX.js +4 -0
  319. package/dist/kolibri/Span-_4yQD2YZ.js +4 -0
  320. package/dist/kolibri/access-and-short-key-B37XLwy2.js +1 -1
  321. package/dist/kolibri/align-D-ifSKu8.js +1 -1
  322. package/dist/kolibri/align-floating-elements-BkpeqvtE.js +1 -1
  323. package/dist/kolibri/app-globals-BMo3oAt8.js +4 -0
  324. package/dist/kolibri/ariaCurrentService-YoLNpD5S.js +1 -1
  325. package/dist/kolibri/associated.controller-B9GDDaFL.js +1 -1
  326. package/dist/kolibri/bem-BBRwGb1a.js +1 -1
  327. package/dist/kolibri/{bem-C27SfH6w.js → bem-Dj4gWVFO.js} +1 -1
  328. package/dist/kolibri/bootstrap-DcyDkVEo.js +1 -1
  329. package/dist/kolibri/browser-DiRe0qUf.js +1 -1
  330. package/dist/kolibri/button-variant-_wL6MroY.js +1 -1
  331. package/dist/kolibri/color-BOIEtqEM.js +1 -1
  332. package/dist/kolibri/common-Dd0zJQbD.js +1 -1
  333. package/dist/kolibri/component-names-C3fyby67.js +1 -1
  334. package/dist/kolibri/controller-BVGTTRsM.js +4 -0
  335. package/dist/kolibri/controller-CBTbnj0P.js +4 -0
  336. package/dist/kolibri/controller-CM5wW8Ij.js +1 -1
  337. package/dist/kolibri/controller-hCTGmOJP.js +4 -0
  338. package/dist/kolibri/controller-icon-z0j8meAS.js +4 -0
  339. package/dist/kolibri/dev.utils-CT0IU26V.js +4 -0
  340. package/dist/kolibri/devtools-CKGr6nvH.js +4 -0
  341. package/dist/kolibri/events-9-skLO0f.js +1 -1
  342. package/dist/kolibri/i18n-CfLoIZ8T.js +1 -1
  343. package/dist/kolibri/i18n-LBpyQ66X.js +1 -1
  344. package/dist/kolibri/icons-DNTuScEN.js +1 -1
  345. package/dist/kolibri/index-BVfSKhpj.js +5 -0
  346. package/dist/kolibri/index.esm.js +1 -1
  347. package/dist/kolibri/isObject-DvSELytj.js +1 -1
  348. package/dist/kolibri/kol-abbr.entry.js +1 -1
  349. package/dist/kolibri/kol-accordion.entry.js +1 -1
  350. package/dist/kolibri/kol-alert-wc.entry.js +1 -1
  351. package/dist/kolibri/kol-alert.entry.js +1 -1
  352. package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
  353. package/dist/kolibri/kol-avatar.entry.js +1 -1
  354. package/dist/kolibri/kol-badge.entry.js +1 -1
  355. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  356. package/dist/kolibri/kol-button-link.entry.js +1 -1
  357. package/dist/kolibri/kol-button-wc.entry.js +1 -1
  358. package/dist/kolibri/kol-button.entry.js +1 -1
  359. package/dist/kolibri/kol-card-wc.entry.js +1 -1
  360. package/dist/kolibri/kol-card.entry.js +1 -1
  361. package/dist/kolibri/kol-combobox.entry.js +1 -1
  362. package/dist/kolibri/kol-details.entry.js +1 -1
  363. package/dist/kolibri/kol-drawer.entry.js +1 -1
  364. package/dist/kolibri/kol-form.entry.js +1 -1
  365. package/dist/kolibri/kol-heading.entry.js +1 -1
  366. package/dist/kolibri/kol-icon.entry.js +1 -1
  367. package/dist/kolibri/kol-image.entry.js +1 -1
  368. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  369. package/dist/kolibri/kol-input-color.entry.js +1 -1
  370. package/dist/kolibri/kol-input-date.entry.js +1 -1
  371. package/dist/kolibri/kol-input-email.entry.js +1 -1
  372. package/dist/kolibri/kol-input-file.entry.js +1 -1
  373. package/dist/kolibri/kol-input-number.entry.js +1 -1
  374. package/dist/kolibri/kol-input-password.entry.js +1 -1
  375. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  376. package/dist/kolibri/kol-input-range.entry.js +1 -1
  377. package/dist/kolibri/kol-input-text.entry.js +1 -1
  378. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  379. package/dist/kolibri/kol-link-button.entry.js +1 -1
  380. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  381. package/dist/kolibri/kol-link.entry.js +1 -1
  382. package/dist/kolibri/kol-modal.entry.js +1 -1
  383. package/dist/kolibri/kol-nav.entry.js +1 -1
  384. package/dist/kolibri/kol-pagination-wc.entry.js +1 -1
  385. package/dist/kolibri/kol-pagination.entry.js +1 -1
  386. package/dist/kolibri/kol-popover-button-wc.entry.js +1 -1
  387. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  388. package/dist/kolibri/kol-popover-wc.entry.js +1 -1
  389. package/dist/kolibri/kol-progress.entry.js +1 -1
  390. package/dist/kolibri/kol-quote.entry.js +1 -1
  391. package/dist/kolibri/kol-select-wc.entry.js +1 -1
  392. package/dist/kolibri/kol-select.entry.js +1 -1
  393. package/dist/kolibri/kol-single-select.entry.js +1 -1
  394. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  395. package/dist/kolibri/kol-spin.entry.js +1 -1
  396. package/dist/kolibri/kol-split-button.entry.js +1 -1
  397. package/dist/kolibri/kol-table-settings-wc.entry.js +1 -1
  398. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  399. package/dist/kolibri/kol-table-stateless-wc.entry.js +1 -1
  400. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  401. package/dist/kolibri/kol-tabs.entry.js +1 -1
  402. package/dist/kolibri/kol-textarea.entry.js +1 -1
  403. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  404. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  405. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  406. package/dist/kolibri/kol-tree-item-wc.entry.js +1 -1
  407. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  408. package/dist/kolibri/kol-tree-wc.entry.js +1 -1
  409. package/dist/kolibri/kol-tree.entry.js +1 -1
  410. package/dist/kolibri/kol-version.entry.js +1 -1
  411. package/dist/kolibri/kolibri.esm.js +1 -1
  412. package/dist/kolibri/label-Dnmzb2S_.js +1 -1
  413. package/dist/kolibri/markdown-BSkXjaSn.js +1 -1
  414. package/dist/kolibri/max-length-behavior-nTw1Zuyf.js +1 -1
  415. package/dist/kolibri/reuse-CX4AQDkS.js +1 -1
  416. package/dist/kolibri/spell-check-B9ot-4t-.js +1 -1
  417. package/dist/kolibri/suggestions-B-jLvT4L.js +1 -1
  418. package/dist/kolibri/table-settings-DxLvhwRE.js +1 -1
  419. package/dist/kolibri/test-component.entry.js +1 -1
  420. package/dist/kolibri/tooltip-open-tracking-rBbBgPWP.js +1 -1
  421. package/dist/kolibri/validation-aqgnZOL6.js +1 -1
  422. package/dist/types/stencil-public-runtime.d.ts +87 -4
  423. package/doc/accordion.md +7 -7
  424. package/doc/button-link.md +21 -21
  425. package/doc/button.md +22 -22
  426. package/doc/details.md +7 -7
  427. package/doc/popover-button.md +22 -22
  428. package/doc/split-button.md +21 -21
  429. package/package.json +2 -2
  430. package/dist/cjs/Alert-Bj1BTIEj.js.map +0 -1
  431. package/dist/cjs/Collapsible-aA771eR4.js.map +0 -1
  432. package/dist/cjs/CustomSuggestionsOptionsGroup-cTHRZeAc.js.map +0 -1
  433. package/dist/cjs/FieldControlStateWrapper-Cyr_zzt3.js.map +0 -1
  434. package/dist/cjs/FormFieldStateWrapper-B2LPpMpo.js.map +0 -1
  435. package/dist/cjs/Heading-BZTrj6_i.js.map +0 -1
  436. package/dist/cjs/Icon-B9T-4CsE.js +0 -4
  437. package/dist/cjs/Icon-B9T-4CsE.js.map +0 -1
  438. package/dist/cjs/Input-BCYP3Fc4.js.map +0 -1
  439. package/dist/cjs/InputStateWrapper-uvFi_BbH.js.map +0 -1
  440. package/dist/cjs/InternalUnderlinedBadgeText-uCh_T5VD.js.map +0 -1
  441. package/dist/cjs/Span-BkNklKcs.js.map +0 -1
  442. package/dist/cjs/access-and-short-key-BExF929g.js.map +0 -1
  443. package/dist/cjs/align-CGG5V8xM.js.map +0 -1
  444. package/dist/cjs/align-floating-elements-Bxx5nIn-.js.map +0 -1
  445. package/dist/cjs/app-globals-CXoEHCxk.js +0 -4
  446. package/dist/cjs/app-globals-CXoEHCxk.js.map +0 -1
  447. package/dist/cjs/ariaCurrentService-3051l6MI.js.map +0 -1
  448. package/dist/cjs/associated.controller-jhz1Ef5Z.js.map +0 -1
  449. package/dist/cjs/auto-complete-DQ9TPAgi.js.map +0 -1
  450. package/dist/cjs/bem-BVClcAVJ.js.map +0 -1
  451. package/dist/cjs/bem-Bu0VYjZa.js.map +0 -1
  452. package/dist/cjs/bootstrap-DmmGbpjB.js.map +0 -1
  453. package/dist/cjs/browser-D7A31aEp.js.map +0 -1
  454. package/dist/cjs/button-variant-Dc6H5OWB.js.map +0 -1
  455. package/dist/cjs/clsx-CkZlkaek.js.map +0 -1
  456. package/dist/cjs/color-D7OxzTlF.js.map +0 -1
  457. package/dist/cjs/common-Cd2qH809.js.map +0 -1
  458. package/dist/cjs/component-names-CuI-0Pbo.js.map +0 -1
  459. package/dist/cjs/controller-DLwQQPHC.js.map +0 -1
  460. package/dist/cjs/controller-DmfL38P4.js.map +0 -1
  461. package/dist/cjs/controller-LxYfXuho.js.map +0 -1
  462. package/dist/cjs/controller-Q-LXBPh4.js.map +0 -1
  463. package/dist/cjs/controller-icon-9udvsM5R.js.map +0 -1
  464. package/dist/cjs/custom-class-BhuMM_WI.js.map +0 -1
  465. package/dist/cjs/dev.utils-fZEgoGGu.js.map +0 -1
  466. package/dist/cjs/devtools-yltf149z.js.map +0 -1
  467. package/dist/cjs/disabled-DT-7CUov.js.map +0 -1
  468. package/dist/cjs/events-cX8h6I3p.js.map +0 -1
  469. package/dist/cjs/has-closer-COtNvUI4.js.map +0 -1
  470. package/dist/cjs/hide-label-DdGk9NfD.js.map +0 -1
  471. package/dist/cjs/href-BxaZOlRE.js.map +0 -1
  472. package/dist/cjs/i18n-BnIFsVIa.js.map +0 -1
  473. package/dist/cjs/i18n-DNWGj4j8.js.map +0 -1
  474. package/dist/cjs/icons-D_PtPRwb.js.map +0 -1
  475. package/dist/cjs/image-source-DI336Od8.js.map +0 -1
  476. package/dist/cjs/index-uT47A9Jc.js +0 -4
  477. package/dist/cjs/index-uT47A9Jc.js.map +0 -1
  478. package/dist/cjs/index.cjs.js.map +0 -1
  479. package/dist/cjs/inline-CGvu_CRs.js.map +0 -1
  480. package/dist/cjs/isObject-DMA85Fq4.js.map +0 -1
  481. package/dist/cjs/keyboard-C096g_BV.js.map +0 -1
  482. package/dist/cjs/kol-abbr.entry.cjs.js.map +0 -1
  483. package/dist/cjs/kol-accordion.entry.cjs.js.map +0 -1
  484. package/dist/cjs/kol-alert-wc.entry.cjs.js.map +0 -1
  485. package/dist/cjs/kol-alert.entry.cjs.js.map +0 -1
  486. package/dist/cjs/kol-avatar-wc.entry.cjs.js.map +0 -1
  487. package/dist/cjs/kol-avatar.entry.cjs.js.map +0 -1
  488. package/dist/cjs/kol-badge.entry.cjs.js.map +0 -1
  489. package/dist/cjs/kol-breadcrumb.entry.cjs.js.map +0 -1
  490. package/dist/cjs/kol-button-link.entry.cjs.js.map +0 -1
  491. package/dist/cjs/kol-button-wc.entry.cjs.js.map +0 -1
  492. package/dist/cjs/kol-button.entry.cjs.js.map +0 -1
  493. package/dist/cjs/kol-card-wc.entry.cjs.js.map +0 -1
  494. package/dist/cjs/kol-card.entry.cjs.js.map +0 -1
  495. package/dist/cjs/kol-combobox.entry.cjs.js.map +0 -1
  496. package/dist/cjs/kol-details.entry.cjs.js.map +0 -1
  497. package/dist/cjs/kol-drawer.entry.cjs.js.map +0 -1
  498. package/dist/cjs/kol-form.entry.cjs.js.map +0 -1
  499. package/dist/cjs/kol-heading.entry.cjs.js.map +0 -1
  500. package/dist/cjs/kol-icon.entry.cjs.js.map +0 -1
  501. package/dist/cjs/kol-image.entry.cjs.js.map +0 -1
  502. package/dist/cjs/kol-input-checkbox.entry.cjs.js.map +0 -1
  503. package/dist/cjs/kol-input-color.entry.cjs.js.map +0 -1
  504. package/dist/cjs/kol-input-date.entry.cjs.js.map +0 -1
  505. package/dist/cjs/kol-input-email.entry.cjs.js.map +0 -1
  506. package/dist/cjs/kol-input-file.entry.cjs.js.map +0 -1
  507. package/dist/cjs/kol-input-number.entry.cjs.js.map +0 -1
  508. package/dist/cjs/kol-input-password.entry.cjs.js.map +0 -1
  509. package/dist/cjs/kol-input-radio.entry.cjs.js.map +0 -1
  510. package/dist/cjs/kol-input-range.entry.cjs.js.map +0 -1
  511. package/dist/cjs/kol-input-text.entry.cjs.js.map +0 -1
  512. package/dist/cjs/kol-kolibri.entry.cjs.js.map +0 -1
  513. package/dist/cjs/kol-link-button.entry.cjs.js.map +0 -1
  514. package/dist/cjs/kol-link-wc.entry.cjs.js.map +0 -1
  515. package/dist/cjs/kol-link.entry.cjs.js.map +0 -1
  516. package/dist/cjs/kol-modal.entry.cjs.js.map +0 -1
  517. package/dist/cjs/kol-nav.entry.cjs.js.map +0 -1
  518. package/dist/cjs/kol-pagination-wc.entry.cjs.js.map +0 -1
  519. package/dist/cjs/kol-pagination.entry.cjs.js.map +0 -1
  520. package/dist/cjs/kol-popover-button-wc.entry.cjs.js.map +0 -1
  521. package/dist/cjs/kol-popover-button.entry.cjs.js.map +0 -1
  522. package/dist/cjs/kol-popover-wc.entry.cjs.js.map +0 -1
  523. package/dist/cjs/kol-progress.entry.cjs.js.map +0 -1
  524. package/dist/cjs/kol-quote.entry.cjs.js.map +0 -1
  525. package/dist/cjs/kol-select-wc.entry.cjs.js.map +0 -1
  526. package/dist/cjs/kol-select.entry.cjs.js.map +0 -1
  527. package/dist/cjs/kol-single-select.entry.cjs.js.map +0 -1
  528. package/dist/cjs/kol-skip-nav.entry.cjs.js.map +0 -1
  529. package/dist/cjs/kol-spin.entry.cjs.js.map +0 -1
  530. package/dist/cjs/kol-split-button.entry.cjs.js.map +0 -1
  531. package/dist/cjs/kol-table-settings-wc.entry.cjs.js.map +0 -1
  532. package/dist/cjs/kol-table-stateful.entry.cjs.js.map +0 -1
  533. package/dist/cjs/kol-table-stateless-wc.entry.cjs.js.map +0 -1
  534. package/dist/cjs/kol-table-stateless.entry.cjs.js.map +0 -1
  535. package/dist/cjs/kol-tabs.entry.cjs.js.map +0 -1
  536. package/dist/cjs/kol-textarea.entry.cjs.js.map +0 -1
  537. package/dist/cjs/kol-toast-container.entry.cjs.js.map +0 -1
  538. package/dist/cjs/kol-toolbar.entry.cjs.js.map +0 -1
  539. package/dist/cjs/kol-tooltip-wc.entry.cjs.js.map +0 -1
  540. package/dist/cjs/kol-tree-item-wc.entry.cjs.js.map +0 -1
  541. package/dist/cjs/kol-tree-item.entry.cjs.js.map +0 -1
  542. package/dist/cjs/kol-tree-wc.entry.cjs.js.map +0 -1
  543. package/dist/cjs/kol-tree.entry.cjs.js.map +0 -1
  544. package/dist/cjs/kol-version.entry.cjs.js.map +0 -1
  545. package/dist/cjs/kolibri.cjs.js.map +0 -1
  546. package/dist/cjs/label-Nicf9N_T.js.map +0 -1
  547. package/dist/cjs/loader.cjs.js.map +0 -1
  548. package/dist/cjs/markdown-1dxeA2q6.js.map +0 -1
  549. package/dist/cjs/max-length-behavior-Bvbwhaxv.js.map +0 -1
  550. package/dist/cjs/multiple-DRhU5nKU.js.map +0 -1
  551. package/dist/cjs/open-CFgcd51_.js.map +0 -1
  552. package/dist/cjs/orientation-BGODo_Ua.js.map +0 -1
  553. package/dist/cjs/placeholder-BncK-3gZ.js.map +0 -1
  554. package/dist/cjs/read-only-dIvCm73W.js.map +0 -1
  555. package/dist/cjs/required-CXU7vdyH.js.map +0 -1
  556. package/dist/cjs/reuse-Cs36Ddzu.js.map +0 -1
  557. package/dist/cjs/rows-BUvz5j5U.js.map +0 -1
  558. package/dist/cjs/show-C0ZlevIe.js.map +0 -1
  559. package/dist/cjs/spell-check-Bkq4G9L7.js.map +0 -1
  560. package/dist/cjs/suggestions-BjiW0xio.js.map +0 -1
  561. package/dist/cjs/table-settings-Ct3SRuhX.js.map +0 -1
  562. package/dist/cjs/test-component.entry.cjs.js.map +0 -1
  563. package/dist/cjs/tooltip-align-WJPFINTL.js.map +0 -1
  564. package/dist/cjs/tooltip-open-tracking-Ba0udJRU.js.map +0 -1
  565. package/dist/cjs/tslib.es6-7DbU_BSw.js.map +0 -1
  566. package/dist/cjs/unique-nav-labels-hzeBq0jr.js.map +0 -1
  567. package/dist/cjs/validation-BvY0ZgXp.js.map +0 -1
  568. package/dist/cjs/validation-DsxRnVmU.js.map +0 -1
  569. package/dist/components/Alert.js.map +0 -1
  570. package/dist/components/Collapsible.js.map +0 -1
  571. package/dist/components/CustomSuggestionsOptionsGroup.js.map +0 -1
  572. package/dist/components/FieldControlStateWrapper.js.map +0 -1
  573. package/dist/components/Heading.js.map +0 -1
  574. package/dist/components/Icon.js.map +0 -1
  575. package/dist/components/Input.js.map +0 -1
  576. package/dist/components/InputStateWrapper.js.map +0 -1
  577. package/dist/components/InternalUnderlinedBadgeText.js.map +0 -1
  578. package/dist/components/Span.js.map +0 -1
  579. package/dist/components/access-and-short-key.js.map +0 -1
  580. package/dist/components/align-floating-elements.js.map +0 -1
  581. package/dist/components/align.js.map +0 -1
  582. package/dist/components/ariaCurrentService.js.map +0 -1
  583. package/dist/components/associated.controller.js.map +0 -1
  584. package/dist/components/auto-complete.js.map +0 -1
  585. package/dist/components/bem.js.map +0 -1
  586. package/dist/components/bem2.js.map +0 -1
  587. package/dist/components/bootstrap.js.map +0 -1
  588. package/dist/components/browser.js.map +0 -1
  589. package/dist/components/button-variant.js.map +0 -1
  590. package/dist/components/clsx.js.map +0 -1
  591. package/dist/components/color.js.map +0 -1
  592. package/dist/components/common.js.map +0 -1
  593. package/dist/components/component-names.js.map +0 -1
  594. package/dist/components/controller-icon.js.map +0 -1
  595. package/dist/components/controller.js.map +0 -1
  596. package/dist/components/controller2.js.map +0 -1
  597. package/dist/components/controller3.js.map +0 -1
  598. package/dist/components/controller4.js.map +0 -1
  599. package/dist/components/controller5.js.map +0 -1
  600. package/dist/components/custom-class.js.map +0 -1
  601. package/dist/components/dev.utils.js.map +0 -1
  602. package/dist/components/devtools.js.map +0 -1
  603. package/dist/components/disabled.js.map +0 -1
  604. package/dist/components/events.js.map +0 -1
  605. package/dist/components/has-closer.js.map +0 -1
  606. package/dist/components/hide-label.js.map +0 -1
  607. package/dist/components/href.js.map +0 -1
  608. package/dist/components/i18n.js.map +0 -1
  609. package/dist/components/i18n2.js.map +0 -1
  610. package/dist/components/icons.js.map +0 -1
  611. package/dist/components/image-source.js.map +0 -1
  612. package/dist/components/index.js.map +0 -1
  613. package/dist/components/inline.js.map +0 -1
  614. package/dist/components/isObject.js.map +0 -1
  615. package/dist/components/keyboard.js.map +0 -1
  616. package/dist/components/kol-abbr.js.map +0 -1
  617. package/dist/components/kol-accordion.js.map +0 -1
  618. package/dist/components/kol-alert-wc.js.map +0 -1
  619. package/dist/components/kol-alert.js.map +0 -1
  620. package/dist/components/kol-avatar-wc.js.map +0 -1
  621. package/dist/components/kol-avatar.js.map +0 -1
  622. package/dist/components/kol-badge.js.map +0 -1
  623. package/dist/components/kol-breadcrumb.js.map +0 -1
  624. package/dist/components/kol-button-link.js.map +0 -1
  625. package/dist/components/kol-button-wc.js.map +0 -1
  626. package/dist/components/kol-button.js.map +0 -1
  627. package/dist/components/kol-card-wc.js.map +0 -1
  628. package/dist/components/kol-card.js.map +0 -1
  629. package/dist/components/kol-combobox.js.map +0 -1
  630. package/dist/components/kol-details.js.map +0 -1
  631. package/dist/components/kol-drawer.js.map +0 -1
  632. package/dist/components/kol-form.js.map +0 -1
  633. package/dist/components/kol-heading.js.map +0 -1
  634. package/dist/components/kol-icon.js.map +0 -1
  635. package/dist/components/kol-image.js.map +0 -1
  636. package/dist/components/kol-input-checkbox.js.map +0 -1
  637. package/dist/components/kol-input-color.js.map +0 -1
  638. package/dist/components/kol-input-date.js.map +0 -1
  639. package/dist/components/kol-input-email.js.map +0 -1
  640. package/dist/components/kol-input-file.js.map +0 -1
  641. package/dist/components/kol-input-number.js.map +0 -1
  642. package/dist/components/kol-input-password.js.map +0 -1
  643. package/dist/components/kol-input-radio.js.map +0 -1
  644. package/dist/components/kol-input-range.js.map +0 -1
  645. package/dist/components/kol-input-text.js.map +0 -1
  646. package/dist/components/kol-kolibri.js.map +0 -1
  647. package/dist/components/kol-link-button.js.map +0 -1
  648. package/dist/components/kol-link-wc.js.map +0 -1
  649. package/dist/components/kol-link.js.map +0 -1
  650. package/dist/components/kol-modal.js.map +0 -1
  651. package/dist/components/kol-nav.js.map +0 -1
  652. package/dist/components/kol-pagination-wc.js.map +0 -1
  653. package/dist/components/kol-pagination.js.map +0 -1
  654. package/dist/components/kol-popover-button-wc.js.map +0 -1
  655. package/dist/components/kol-popover-button.js.map +0 -1
  656. package/dist/components/kol-popover-wc.js.map +0 -1
  657. package/dist/components/kol-progress.js.map +0 -1
  658. package/dist/components/kol-quote.js.map +0 -1
  659. package/dist/components/kol-select-wc.js.map +0 -1
  660. package/dist/components/kol-select.js.map +0 -1
  661. package/dist/components/kol-single-select.js.map +0 -1
  662. package/dist/components/kol-skip-nav.js.map +0 -1
  663. package/dist/components/kol-spin.js.map +0 -1
  664. package/dist/components/kol-split-button.js.map +0 -1
  665. package/dist/components/kol-table-settings-wc.js.map +0 -1
  666. package/dist/components/kol-table-stateful.js.map +0 -1
  667. package/dist/components/kol-table-stateless-wc.js.map +0 -1
  668. package/dist/components/kol-table-stateless.js.map +0 -1
  669. package/dist/components/kol-tabs.js.map +0 -1
  670. package/dist/components/kol-textarea.js.map +0 -1
  671. package/dist/components/kol-toast-container.js.map +0 -1
  672. package/dist/components/kol-toolbar.js.map +0 -1
  673. package/dist/components/kol-tooltip-wc.js.map +0 -1
  674. package/dist/components/kol-tree-item-wc.js.map +0 -1
  675. package/dist/components/kol-tree-item.js.map +0 -1
  676. package/dist/components/kol-tree-wc.js.map +0 -1
  677. package/dist/components/kol-tree.js.map +0 -1
  678. package/dist/components/kol-version.js.map +0 -1
  679. package/dist/components/label.js.map +0 -1
  680. package/dist/components/markdown.js.map +0 -1
  681. package/dist/components/max-length-behavior.js.map +0 -1
  682. package/dist/components/multiple.js.map +0 -1
  683. package/dist/components/open.js.map +0 -1
  684. package/dist/components/orientation.js.map +0 -1
  685. package/dist/components/placeholder.js.map +0 -1
  686. package/dist/components/read-only.js.map +0 -1
  687. package/dist/components/required.js.map +0 -1
  688. package/dist/components/reuse.js.map +0 -1
  689. package/dist/components/rows.js.map +0 -1
  690. package/dist/components/show.js.map +0 -1
  691. package/dist/components/spell-check.js.map +0 -1
  692. package/dist/components/suggestions.js.map +0 -1
  693. package/dist/components/table-settings.js.map +0 -1
  694. package/dist/components/test-component.js.map +0 -1
  695. package/dist/components/tooltip-align.js.map +0 -1
  696. package/dist/components/tooltip-open-tracking.js.map +0 -1
  697. package/dist/components/tslib.es6.js.map +0 -1
  698. package/dist/components/unique-nav-labels.js.map +0 -1
  699. package/dist/components/validation.js.map +0 -1
  700. package/dist/components/validation2.js.map +0 -1
  701. package/dist/esm/Alert-DFxK42_b.js.map +0 -1
  702. package/dist/esm/Collapsible-CaNCj17a.js.map +0 -1
  703. package/dist/esm/CustomSuggestionsOptionsGroup-BElrEzPg.js.map +0 -1
  704. package/dist/esm/FieldControlStateWrapper-BQEssIZt.js.map +0 -1
  705. package/dist/esm/FormFieldStateWrapper-Bs6adxNw.js.map +0 -1
  706. package/dist/esm/Heading-DqCQ4tvo.js.map +0 -1
  707. package/dist/esm/Icon-qDQ9VVcv.js.map +0 -1
  708. package/dist/esm/Input-WOVJOXlM.js.map +0 -1
  709. package/dist/esm/InputStateWrapper-C9u4kUR_.js.map +0 -1
  710. package/dist/esm/InternalUnderlinedBadgeText-CNjTZsLo.js.map +0 -1
  711. package/dist/esm/Span-CgBP4Uo5.js.map +0 -1
  712. package/dist/esm/access-and-short-key-B37XLwy2.js.map +0 -1
  713. package/dist/esm/align-D-ifSKu8.js.map +0 -1
  714. package/dist/esm/align-floating-elements-BkpeqvtE.js.map +0 -1
  715. package/dist/esm/app-globals-C1JBLIBF.js +0 -4
  716. package/dist/esm/app-globals-C1JBLIBF.js.map +0 -1
  717. package/dist/esm/ariaCurrentService-YoLNpD5S.js.map +0 -1
  718. package/dist/esm/associated.controller-B9GDDaFL.js.map +0 -1
  719. package/dist/esm/auto-complete-mCkUnxg2.js.map +0 -1
  720. package/dist/esm/bem-BBRwGb1a.js.map +0 -1
  721. package/dist/esm/bem-C27SfH6w.js.map +0 -1
  722. package/dist/esm/bootstrap-DcyDkVEo.js.map +0 -1
  723. package/dist/esm/browser-DiRe0qUf.js.map +0 -1
  724. package/dist/esm/button-variant-_wL6MroY.js.map +0 -1
  725. package/dist/esm/clsx-eK3rPvPS.js.map +0 -1
  726. package/dist/esm/color-BOIEtqEM.js.map +0 -1
  727. package/dist/esm/common-Dd0zJQbD.js.map +0 -1
  728. package/dist/esm/component-names-C3fyby67.js.map +0 -1
  729. package/dist/esm/controller-CHfpEwXt.js.map +0 -1
  730. package/dist/esm/controller-CM5wW8Ij.js.map +0 -1
  731. package/dist/esm/controller-D3181HNj.js.map +0 -1
  732. package/dist/esm/controller-XsiwUqFk.js.map +0 -1
  733. package/dist/esm/controller-icon-s2Mrr-X3.js.map +0 -1
  734. package/dist/esm/custom-class-nuoQ9Aml.js.map +0 -1
  735. package/dist/esm/dev.utils-Bl9mUZR6.js.map +0 -1
  736. package/dist/esm/devtools-DfvAaTZM.js.map +0 -1
  737. package/dist/esm/disabled-BhpAFgSp.js.map +0 -1
  738. package/dist/esm/events-9-skLO0f.js.map +0 -1
  739. package/dist/esm/has-closer-CQzjaTkv.js.map +0 -1
  740. package/dist/esm/hide-label-B9FhGrWP.js.map +0 -1
  741. package/dist/esm/href-rwDd36rS.js.map +0 -1
  742. package/dist/esm/i18n-CfLoIZ8T.js.map +0 -1
  743. package/dist/esm/i18n-LBpyQ66X.js.map +0 -1
  744. package/dist/esm/icons-DNTuScEN.js.map +0 -1
  745. package/dist/esm/image-source-BfBEJ0rX.js.map +0 -1
  746. package/dist/esm/index-BuVNvMVh.js +0 -4
  747. package/dist/esm/index-BuVNvMVh.js.map +0 -1
  748. package/dist/esm/index.js.map +0 -1
  749. package/dist/esm/inline-cDaqwSfK.js.map +0 -1
  750. package/dist/esm/isObject-DvSELytj.js.map +0 -1
  751. package/dist/esm/keyboard-D6PoWr38.js.map +0 -1
  752. package/dist/esm/kol-abbr.entry.js.map +0 -1
  753. package/dist/esm/kol-accordion.entry.js.map +0 -1
  754. package/dist/esm/kol-alert-wc.entry.js.map +0 -1
  755. package/dist/esm/kol-alert.entry.js.map +0 -1
  756. package/dist/esm/kol-avatar-wc.entry.js.map +0 -1
  757. package/dist/esm/kol-avatar.entry.js.map +0 -1
  758. package/dist/esm/kol-badge.entry.js.map +0 -1
  759. package/dist/esm/kol-breadcrumb.entry.js.map +0 -1
  760. package/dist/esm/kol-button-link.entry.js.map +0 -1
  761. package/dist/esm/kol-button-wc.entry.js.map +0 -1
  762. package/dist/esm/kol-button.entry.js.map +0 -1
  763. package/dist/esm/kol-card-wc.entry.js.map +0 -1
  764. package/dist/esm/kol-card.entry.js.map +0 -1
  765. package/dist/esm/kol-combobox.entry.js.map +0 -1
  766. package/dist/esm/kol-details.entry.js.map +0 -1
  767. package/dist/esm/kol-drawer.entry.js.map +0 -1
  768. package/dist/esm/kol-form.entry.js.map +0 -1
  769. package/dist/esm/kol-heading.entry.js.map +0 -1
  770. package/dist/esm/kol-icon.entry.js.map +0 -1
  771. package/dist/esm/kol-image.entry.js.map +0 -1
  772. package/dist/esm/kol-input-checkbox.entry.js.map +0 -1
  773. package/dist/esm/kol-input-color.entry.js.map +0 -1
  774. package/dist/esm/kol-input-date.entry.js.map +0 -1
  775. package/dist/esm/kol-input-email.entry.js.map +0 -1
  776. package/dist/esm/kol-input-file.entry.js.map +0 -1
  777. package/dist/esm/kol-input-number.entry.js.map +0 -1
  778. package/dist/esm/kol-input-password.entry.js.map +0 -1
  779. package/dist/esm/kol-input-radio.entry.js.map +0 -1
  780. package/dist/esm/kol-input-range.entry.js.map +0 -1
  781. package/dist/esm/kol-input-text.entry.js.map +0 -1
  782. package/dist/esm/kol-kolibri.entry.js.map +0 -1
  783. package/dist/esm/kol-link-button.entry.js.map +0 -1
  784. package/dist/esm/kol-link-wc.entry.js.map +0 -1
  785. package/dist/esm/kol-link.entry.js.map +0 -1
  786. package/dist/esm/kol-modal.entry.js.map +0 -1
  787. package/dist/esm/kol-nav.entry.js.map +0 -1
  788. package/dist/esm/kol-pagination-wc.entry.js.map +0 -1
  789. package/dist/esm/kol-pagination.entry.js.map +0 -1
  790. package/dist/esm/kol-popover-button-wc.entry.js.map +0 -1
  791. package/dist/esm/kol-popover-button.entry.js.map +0 -1
  792. package/dist/esm/kol-popover-wc.entry.js.map +0 -1
  793. package/dist/esm/kol-progress.entry.js.map +0 -1
  794. package/dist/esm/kol-quote.entry.js.map +0 -1
  795. package/dist/esm/kol-select-wc.entry.js.map +0 -1
  796. package/dist/esm/kol-select.entry.js.map +0 -1
  797. package/dist/esm/kol-single-select.entry.js.map +0 -1
  798. package/dist/esm/kol-skip-nav.entry.js.map +0 -1
  799. package/dist/esm/kol-spin.entry.js.map +0 -1
  800. package/dist/esm/kol-split-button.entry.js.map +0 -1
  801. package/dist/esm/kol-table-settings-wc.entry.js.map +0 -1
  802. package/dist/esm/kol-table-stateful.entry.js.map +0 -1
  803. package/dist/esm/kol-table-stateless-wc.entry.js.map +0 -1
  804. package/dist/esm/kol-table-stateless.entry.js.map +0 -1
  805. package/dist/esm/kol-tabs.entry.js.map +0 -1
  806. package/dist/esm/kol-textarea.entry.js.map +0 -1
  807. package/dist/esm/kol-toast-container.entry.js.map +0 -1
  808. package/dist/esm/kol-toolbar.entry.js.map +0 -1
  809. package/dist/esm/kol-tooltip-wc.entry.js.map +0 -1
  810. package/dist/esm/kol-tree-item-wc.entry.js.map +0 -1
  811. package/dist/esm/kol-tree-item.entry.js.map +0 -1
  812. package/dist/esm/kol-tree-wc.entry.js.map +0 -1
  813. package/dist/esm/kol-tree.entry.js.map +0 -1
  814. package/dist/esm/kol-version.entry.js.map +0 -1
  815. package/dist/esm/kolibri.js.map +0 -1
  816. package/dist/esm/label-Dnmzb2S_.js.map +0 -1
  817. package/dist/esm/loader.js.map +0 -1
  818. package/dist/esm/markdown-BSkXjaSn.js.map +0 -1
  819. package/dist/esm/max-length-behavior-nTw1Zuyf.js.map +0 -1
  820. package/dist/esm/multiple-Cj3JQafH.js.map +0 -1
  821. package/dist/esm/open-CbvHO4XG.js.map +0 -1
  822. package/dist/esm/orientation-eCMt8CD1.js.map +0 -1
  823. package/dist/esm/placeholder-BVhy3BzI.js.map +0 -1
  824. package/dist/esm/read-only-BetTuumR.js.map +0 -1
  825. package/dist/esm/required-CnTTpFCN.js.map +0 -1
  826. package/dist/esm/reuse-CX4AQDkS.js.map +0 -1
  827. package/dist/esm/rows-DtS-0sp9.js.map +0 -1
  828. package/dist/esm/show-DdPK3aM7.js.map +0 -1
  829. package/dist/esm/spell-check-B9ot-4t-.js.map +0 -1
  830. package/dist/esm/suggestions-B-jLvT4L.js.map +0 -1
  831. package/dist/esm/table-settings-DxLvhwRE.js.map +0 -1
  832. package/dist/esm/test-component.entry.js.map +0 -1
  833. package/dist/esm/tooltip-align-Cnin7S26.js.map +0 -1
  834. package/dist/esm/tooltip-open-tracking-rBbBgPWP.js.map +0 -1
  835. package/dist/esm/tslib.es6-CxX45GIN.js.map +0 -1
  836. package/dist/esm/unique-nav-labels-CrfmPC99.js.map +0 -1
  837. package/dist/esm/validation-BfjI5un_.js.map +0 -1
  838. package/dist/esm/validation-aqgnZOL6.js.map +0 -1
  839. package/dist/kolibri/Alert-DFxK42_b.js +0 -4
  840. package/dist/kolibri/Alert-DFxK42_b.js.map +0 -1
  841. package/dist/kolibri/Collapsible-CaNCj17a.js +0 -4
  842. package/dist/kolibri/Collapsible-CaNCj17a.js.map +0 -1
  843. package/dist/kolibri/CustomSuggestionsOptionsGroup-BElrEzPg.js.map +0 -1
  844. package/dist/kolibri/FieldControlStateWrapper-BQEssIZt.js +0 -4
  845. package/dist/kolibri/FieldControlStateWrapper-BQEssIZt.js.map +0 -1
  846. package/dist/kolibri/FormFieldStateWrapper-Bs6adxNw.js +0 -4
  847. package/dist/kolibri/FormFieldStateWrapper-Bs6adxNw.js.map +0 -1
  848. package/dist/kolibri/Heading-DqCQ4tvo.js +0 -4
  849. package/dist/kolibri/Heading-DqCQ4tvo.js.map +0 -1
  850. package/dist/kolibri/Icon-qDQ9VVcv.js.map +0 -1
  851. package/dist/kolibri/Input-WOVJOXlM.js +0 -4
  852. package/dist/kolibri/Input-WOVJOXlM.js.map +0 -1
  853. package/dist/kolibri/InputStateWrapper-C9u4kUR_.js +0 -4
  854. package/dist/kolibri/InputStateWrapper-C9u4kUR_.js.map +0 -1
  855. package/dist/kolibri/InternalUnderlinedBadgeText-CNjTZsLo.js +0 -4
  856. package/dist/kolibri/InternalUnderlinedBadgeText-CNjTZsLo.js.map +0 -1
  857. package/dist/kolibri/Span-CgBP4Uo5.js +0 -4
  858. package/dist/kolibri/Span-CgBP4Uo5.js.map +0 -1
  859. package/dist/kolibri/access-and-short-key-B37XLwy2.js.map +0 -1
  860. package/dist/kolibri/align-D-ifSKu8.js.map +0 -1
  861. package/dist/kolibri/align-floating-elements-BkpeqvtE.js.map +0 -1
  862. package/dist/kolibri/app-globals-C1JBLIBF.js +0 -4
  863. package/dist/kolibri/app-globals-C1JBLIBF.js.map +0 -1
  864. package/dist/kolibri/ariaCurrentService-YoLNpD5S.js.map +0 -1
  865. package/dist/kolibri/associated.controller-B9GDDaFL.js.map +0 -1
  866. package/dist/kolibri/auto-complete-mCkUnxg2.js.map +0 -1
  867. package/dist/kolibri/bem-BBRwGb1a.js.map +0 -1
  868. package/dist/kolibri/bem-C27SfH6w.js.map +0 -1
  869. package/dist/kolibri/bootstrap-DcyDkVEo.js.map +0 -1
  870. package/dist/kolibri/browser-DiRe0qUf.js.map +0 -1
  871. package/dist/kolibri/button-variant-_wL6MroY.js.map +0 -1
  872. package/dist/kolibri/clsx-eK3rPvPS.js.map +0 -1
  873. package/dist/kolibri/color-BOIEtqEM.js.map +0 -1
  874. package/dist/kolibri/common-Dd0zJQbD.js.map +0 -1
  875. package/dist/kolibri/component-names-C3fyby67.js.map +0 -1
  876. package/dist/kolibri/controller-CHfpEwXt.js +0 -4
  877. package/dist/kolibri/controller-CHfpEwXt.js.map +0 -1
  878. package/dist/kolibri/controller-CM5wW8Ij.js.map +0 -1
  879. package/dist/kolibri/controller-D3181HNj.js +0 -4
  880. package/dist/kolibri/controller-D3181HNj.js.map +0 -1
  881. package/dist/kolibri/controller-XsiwUqFk.js +0 -4
  882. package/dist/kolibri/controller-XsiwUqFk.js.map +0 -1
  883. package/dist/kolibri/controller-icon-s2Mrr-X3.js +0 -4
  884. package/dist/kolibri/controller-icon-s2Mrr-X3.js.map +0 -1
  885. package/dist/kolibri/custom-class-nuoQ9Aml.js.map +0 -1
  886. package/dist/kolibri/dev.utils-Bl9mUZR6.js +0 -4
  887. package/dist/kolibri/dev.utils-Bl9mUZR6.js.map +0 -1
  888. package/dist/kolibri/devtools-DfvAaTZM.js +0 -4
  889. package/dist/kolibri/devtools-DfvAaTZM.js.map +0 -1
  890. package/dist/kolibri/disabled-BhpAFgSp.js.map +0 -1
  891. package/dist/kolibri/events-9-skLO0f.js.map +0 -1
  892. package/dist/kolibri/has-closer-CQzjaTkv.js.map +0 -1
  893. package/dist/kolibri/hide-label-B9FhGrWP.js.map +0 -1
  894. package/dist/kolibri/href-rwDd36rS.js.map +0 -1
  895. package/dist/kolibri/i18n-CfLoIZ8T.js.map +0 -1
  896. package/dist/kolibri/i18n-LBpyQ66X.js.map +0 -1
  897. package/dist/kolibri/icons-DNTuScEN.js.map +0 -1
  898. package/dist/kolibri/image-source-BfBEJ0rX.js.map +0 -1
  899. package/dist/kolibri/index-BuVNvMVh.js +0 -5
  900. package/dist/kolibri/index-BuVNvMVh.js.map +0 -1
  901. package/dist/kolibri/index.esm.js.map +0 -1
  902. package/dist/kolibri/inline-cDaqwSfK.js.map +0 -1
  903. package/dist/kolibri/isObject-DvSELytj.js.map +0 -1
  904. package/dist/kolibri/keyboard-D6PoWr38.js.map +0 -1
  905. package/dist/kolibri/kol-abbr.entry.esm.js.map +0 -1
  906. package/dist/kolibri/kol-abbr.entry.js.map +0 -1
  907. package/dist/kolibri/kol-accordion.entry.esm.js.map +0 -1
  908. package/dist/kolibri/kol-accordion.entry.js.map +0 -1
  909. package/dist/kolibri/kol-alert-wc.entry.esm.js.map +0 -1
  910. package/dist/kolibri/kol-alert-wc.entry.js.map +0 -1
  911. package/dist/kolibri/kol-alert.entry.esm.js.map +0 -1
  912. package/dist/kolibri/kol-alert.entry.js.map +0 -1
  913. package/dist/kolibri/kol-avatar-wc.entry.esm.js.map +0 -1
  914. package/dist/kolibri/kol-avatar-wc.entry.js.map +0 -1
  915. package/dist/kolibri/kol-avatar.entry.esm.js.map +0 -1
  916. package/dist/kolibri/kol-avatar.entry.js.map +0 -1
  917. package/dist/kolibri/kol-badge.entry.esm.js.map +0 -1
  918. package/dist/kolibri/kol-badge.entry.js.map +0 -1
  919. package/dist/kolibri/kol-breadcrumb.entry.esm.js.map +0 -1
  920. package/dist/kolibri/kol-breadcrumb.entry.js.map +0 -1
  921. package/dist/kolibri/kol-button-link.entry.esm.js.map +0 -1
  922. package/dist/kolibri/kol-button-link.entry.js.map +0 -1
  923. package/dist/kolibri/kol-button-wc.entry.esm.js.map +0 -1
  924. package/dist/kolibri/kol-button-wc.entry.js.map +0 -1
  925. package/dist/kolibri/kol-button.entry.esm.js.map +0 -1
  926. package/dist/kolibri/kol-button.entry.js.map +0 -1
  927. package/dist/kolibri/kol-card-wc.entry.esm.js.map +0 -1
  928. package/dist/kolibri/kol-card-wc.entry.js.map +0 -1
  929. package/dist/kolibri/kol-card.entry.esm.js.map +0 -1
  930. package/dist/kolibri/kol-card.entry.js.map +0 -1
  931. package/dist/kolibri/kol-combobox.entry.esm.js.map +0 -1
  932. package/dist/kolibri/kol-combobox.entry.js.map +0 -1
  933. package/dist/kolibri/kol-details.entry.esm.js.map +0 -1
  934. package/dist/kolibri/kol-details.entry.js.map +0 -1
  935. package/dist/kolibri/kol-drawer.entry.esm.js.map +0 -1
  936. package/dist/kolibri/kol-drawer.entry.js.map +0 -1
  937. package/dist/kolibri/kol-form.entry.esm.js.map +0 -1
  938. package/dist/kolibri/kol-form.entry.js.map +0 -1
  939. package/dist/kolibri/kol-heading.entry.esm.js.map +0 -1
  940. package/dist/kolibri/kol-heading.entry.js.map +0 -1
  941. package/dist/kolibri/kol-icon.entry.esm.js.map +0 -1
  942. package/dist/kolibri/kol-icon.entry.js.map +0 -1
  943. package/dist/kolibri/kol-image.entry.esm.js.map +0 -1
  944. package/dist/kolibri/kol-image.entry.js.map +0 -1
  945. package/dist/kolibri/kol-input-checkbox.entry.esm.js.map +0 -1
  946. package/dist/kolibri/kol-input-checkbox.entry.js.map +0 -1
  947. package/dist/kolibri/kol-input-color.entry.esm.js.map +0 -1
  948. package/dist/kolibri/kol-input-color.entry.js.map +0 -1
  949. package/dist/kolibri/kol-input-date.entry.esm.js.map +0 -1
  950. package/dist/kolibri/kol-input-date.entry.js.map +0 -1
  951. package/dist/kolibri/kol-input-email.entry.esm.js.map +0 -1
  952. package/dist/kolibri/kol-input-email.entry.js.map +0 -1
  953. package/dist/kolibri/kol-input-file.entry.esm.js.map +0 -1
  954. package/dist/kolibri/kol-input-file.entry.js.map +0 -1
  955. package/dist/kolibri/kol-input-number.entry.esm.js.map +0 -1
  956. package/dist/kolibri/kol-input-number.entry.js.map +0 -1
  957. package/dist/kolibri/kol-input-password.entry.esm.js.map +0 -1
  958. package/dist/kolibri/kol-input-password.entry.js.map +0 -1
  959. package/dist/kolibri/kol-input-radio.entry.esm.js.map +0 -1
  960. package/dist/kolibri/kol-input-radio.entry.js.map +0 -1
  961. package/dist/kolibri/kol-input-range.entry.esm.js.map +0 -1
  962. package/dist/kolibri/kol-input-range.entry.js.map +0 -1
  963. package/dist/kolibri/kol-input-text.entry.esm.js.map +0 -1
  964. package/dist/kolibri/kol-input-text.entry.js.map +0 -1
  965. package/dist/kolibri/kol-kolibri.entry.esm.js.map +0 -1
  966. package/dist/kolibri/kol-kolibri.entry.js.map +0 -1
  967. package/dist/kolibri/kol-link-button.entry.esm.js.map +0 -1
  968. package/dist/kolibri/kol-link-button.entry.js.map +0 -1
  969. package/dist/kolibri/kol-link-wc.entry.esm.js.map +0 -1
  970. package/dist/kolibri/kol-link-wc.entry.js.map +0 -1
  971. package/dist/kolibri/kol-link.entry.esm.js.map +0 -1
  972. package/dist/kolibri/kol-link.entry.js.map +0 -1
  973. package/dist/kolibri/kol-modal.entry.esm.js.map +0 -1
  974. package/dist/kolibri/kol-modal.entry.js.map +0 -1
  975. package/dist/kolibri/kol-nav.entry.esm.js.map +0 -1
  976. package/dist/kolibri/kol-nav.entry.js.map +0 -1
  977. package/dist/kolibri/kol-pagination-wc.entry.esm.js.map +0 -1
  978. package/dist/kolibri/kol-pagination-wc.entry.js.map +0 -1
  979. package/dist/kolibri/kol-pagination.entry.esm.js.map +0 -1
  980. package/dist/kolibri/kol-pagination.entry.js.map +0 -1
  981. package/dist/kolibri/kol-popover-button-wc.entry.esm.js.map +0 -1
  982. package/dist/kolibri/kol-popover-button-wc.entry.js.map +0 -1
  983. package/dist/kolibri/kol-popover-button.entry.esm.js.map +0 -1
  984. package/dist/kolibri/kol-popover-button.entry.js.map +0 -1
  985. package/dist/kolibri/kol-popover-wc.entry.esm.js.map +0 -1
  986. package/dist/kolibri/kol-popover-wc.entry.js.map +0 -1
  987. package/dist/kolibri/kol-progress.entry.esm.js.map +0 -1
  988. package/dist/kolibri/kol-progress.entry.js.map +0 -1
  989. package/dist/kolibri/kol-quote.entry.esm.js.map +0 -1
  990. package/dist/kolibri/kol-quote.entry.js.map +0 -1
  991. package/dist/kolibri/kol-select-wc.entry.esm.js.map +0 -1
  992. package/dist/kolibri/kol-select-wc.entry.js.map +0 -1
  993. package/dist/kolibri/kol-select.entry.esm.js.map +0 -1
  994. package/dist/kolibri/kol-select.entry.js.map +0 -1
  995. package/dist/kolibri/kol-single-select.entry.esm.js.map +0 -1
  996. package/dist/kolibri/kol-single-select.entry.js.map +0 -1
  997. package/dist/kolibri/kol-skip-nav.entry.esm.js.map +0 -1
  998. package/dist/kolibri/kol-skip-nav.entry.js.map +0 -1
  999. package/dist/kolibri/kol-spin.entry.esm.js.map +0 -1
  1000. package/dist/kolibri/kol-spin.entry.js.map +0 -1
  1001. package/dist/kolibri/kol-split-button.entry.esm.js.map +0 -1
  1002. package/dist/kolibri/kol-split-button.entry.js.map +0 -1
  1003. package/dist/kolibri/kol-table-settings-wc.entry.esm.js.map +0 -1
  1004. package/dist/kolibri/kol-table-settings-wc.entry.js.map +0 -1
  1005. package/dist/kolibri/kol-table-stateful.entry.esm.js.map +0 -1
  1006. package/dist/kolibri/kol-table-stateful.entry.js.map +0 -1
  1007. package/dist/kolibri/kol-table-stateless-wc.entry.esm.js.map +0 -1
  1008. package/dist/kolibri/kol-table-stateless-wc.entry.js.map +0 -1
  1009. package/dist/kolibri/kol-table-stateless.entry.esm.js.map +0 -1
  1010. package/dist/kolibri/kol-table-stateless.entry.js.map +0 -1
  1011. package/dist/kolibri/kol-tabs.entry.esm.js.map +0 -1
  1012. package/dist/kolibri/kol-tabs.entry.js.map +0 -1
  1013. package/dist/kolibri/kol-textarea.entry.esm.js.map +0 -1
  1014. package/dist/kolibri/kol-textarea.entry.js.map +0 -1
  1015. package/dist/kolibri/kol-toast-container.entry.esm.js.map +0 -1
  1016. package/dist/kolibri/kol-toast-container.entry.js.map +0 -1
  1017. package/dist/kolibri/kol-toolbar.entry.esm.js.map +0 -1
  1018. package/dist/kolibri/kol-toolbar.entry.js.map +0 -1
  1019. package/dist/kolibri/kol-tooltip-wc.entry.esm.js.map +0 -1
  1020. package/dist/kolibri/kol-tooltip-wc.entry.js.map +0 -1
  1021. package/dist/kolibri/kol-tree-item-wc.entry.esm.js.map +0 -1
  1022. package/dist/kolibri/kol-tree-item-wc.entry.js.map +0 -1
  1023. package/dist/kolibri/kol-tree-item.entry.esm.js.map +0 -1
  1024. package/dist/kolibri/kol-tree-item.entry.js.map +0 -1
  1025. package/dist/kolibri/kol-tree-wc.entry.esm.js.map +0 -1
  1026. package/dist/kolibri/kol-tree-wc.entry.js.map +0 -1
  1027. package/dist/kolibri/kol-tree.entry.esm.js.map +0 -1
  1028. package/dist/kolibri/kol-tree.entry.js.map +0 -1
  1029. package/dist/kolibri/kol-version.entry.esm.js.map +0 -1
  1030. package/dist/kolibri/kol-version.entry.js.map +0 -1
  1031. package/dist/kolibri/kolibri.esm.js.map +0 -1
  1032. package/dist/kolibri/label-Dnmzb2S_.js.map +0 -1
  1033. package/dist/kolibri/loader.esm.js.map +0 -1
  1034. package/dist/kolibri/markdown-BSkXjaSn.js.map +0 -1
  1035. package/dist/kolibri/max-length-behavior-nTw1Zuyf.js.map +0 -1
  1036. package/dist/kolibri/multiple-Cj3JQafH.js.map +0 -1
  1037. package/dist/kolibri/open-CbvHO4XG.js.map +0 -1
  1038. package/dist/kolibri/orientation-eCMt8CD1.js.map +0 -1
  1039. package/dist/kolibri/placeholder-BVhy3BzI.js.map +0 -1
  1040. package/dist/kolibri/read-only-BetTuumR.js.map +0 -1
  1041. package/dist/kolibri/required-CnTTpFCN.js.map +0 -1
  1042. package/dist/kolibri/reuse-CX4AQDkS.js.map +0 -1
  1043. package/dist/kolibri/rows-DtS-0sp9.js.map +0 -1
  1044. package/dist/kolibri/show-DdPK3aM7.js.map +0 -1
  1045. package/dist/kolibri/spell-check-B9ot-4t-.js.map +0 -1
  1046. package/dist/kolibri/suggestions-B-jLvT4L.js.map +0 -1
  1047. package/dist/kolibri/table-settings-DxLvhwRE.js.map +0 -1
  1048. package/dist/kolibri/test-component.entry.esm.js.map +0 -1
  1049. package/dist/kolibri/test-component.entry.js.map +0 -1
  1050. package/dist/kolibri/tooltip-align-Cnin7S26.js.map +0 -1
  1051. package/dist/kolibri/tooltip-open-tracking-rBbBgPWP.js.map +0 -1
  1052. package/dist/kolibri/tslib.es6-CxX45GIN.js.map +0 -1
  1053. package/dist/kolibri/unique-nav-labels-CrfmPC99.js.map +0 -1
  1054. package/dist/kolibri/validation-BfjI5un_.js.map +0 -1
  1055. package/dist/kolibri/validation-aqgnZOL6.js.map +0 -1
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";var index=require("./index-uT47A9Jc.js"),componentNames=require("./component-names-CuI-0Pbo.js"),i18n=require("./i18n-DNWGj4j8.js"),common=require("./common-Cd2qH809.js"),tableSettings=require("./table-settings-Ct3SRuhX.js"),label=require("./label-Nicf9N_T.js"),keyboard=require("./keyboard-C096g_BV.js"),events=require("./events-cX8h6I3p.js");require("./i18n-BnIFsVIa.js");const validateAllowMultiSort=(t,n,e={})=>{common.watchBoolean(t,"_allowMultiSort",n,Object.assign({defaultValue:!1},e))},paginationPositionPropTypeOptions=["top","bottom","both"],validatePaginationPosition=(t,n)=>{common.watchValidator(t,"_paginationPosition",t=>"string"==typeof t&&paginationPositionPropTypeOptions.includes(t),new Set([`PaginationPositionPropType {${paginationPositionPropTypeOptions.join(", ")}`]),n,{defaultValue:"bottom"})},defaultStyleCss='@charset "UTF-8";\n/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/* forward the rem function */\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type=\'checkbox\'], [type=\'radio\'], [type=\'range\']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don\'t want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-alert {\n display: grid;\n }\n .kol-alert__container {\n display: flex;\n place-items: center;\n }\n .kol-alert__container-content {\n flex-grow: 1;\n }\n .kol-alert__closer {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n }\n :host {\n display: inline-block;\n }\n .kol-button {\n display: inline-flex;\n font-style: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n text-decoration-line: none;\n }\n .kol-button::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: "​";\n }\n .kol-button__text {\n width: 100%;\n }\n .kol-popover-button__button {\n display: inline-block;\n }\n .kol-popover-button__popover {\n margin: 0;\n padding: 0;\n border: 0;\n }\n .kol-popover-button--inline .kol-popover-button__button {\n display: inline;\n }\n .kol-table-settings {\n background: #fff;\n position: absolute;\n top: 0;\n right: 0;\n z-index: 1;\n }\n .kol-table-settings .kol-popover-button__popover {\n background: #fff;\n box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n border-radius: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n border: 1px solid #d1d5db;\n }\n .kol-table-settings__columns-container {\n max-height: calc(200 * 1rem / var(--kolibri-root-font-size, 16));\n margin-top: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n overflow: auto;\n }\n .kol-table-settings__columns {\n display: grid;\n gap: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n align-items: center;\n grid-auto-rows: min-content;\n grid-template-columns: min-content minmax(max-content, 1fr) calc(100 * 1rem / var(--kolibri-root-font-size, 16)) auto auto;\n }\n .kol-table-settings__column {\n display: contents;\n }\n .kol-table {\n display: block;\n position: relative;\n max-width: 100%;\n }\n .kol-table:has(.kol-table__focus-element:focus) .kol-table__scroll-container {\n /* @see https://remysharp.com/til/css/focus-ring-default-styles */\n outline: 5px auto Highlight;\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: 2px;\n }\n .kol-table__scroll-container {\n overflow-x: auto;\n overflow-y: hidden;\n }\n .kol-table__table {\n width: 100%;\n }\n .kol-table__caption {\n min-height: var(--a11y-min-size);\n padding-right: var(--a11y-min-size);\n text-align: start;\n }\n .kol-table__sort-button .kol-button {\n color: inherit;\n }\n .kol-table__body {\n text-align: left;\n }\n .kol-table__body .kol-button__text {\n justify-items: start;\n }\n .kol-table__cell--align-left {\n text-align: left;\n }\n .kol-table__cell--align-left .kol-button__text {\n align-items: start;\n }\n .kol-table__cell--align-center {\n text-align: center;\n }\n .kol-table__cell--align-center .kol-button__text {\n align-items: center;\n }\n .kol-table__cell--align-right {\n text-align: right;\n }\n .kol-table__cell--align-right .kol-button__text {\n align-items: end;\n }\n .kol-table__cell--selection {\n 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 display: flex;\n position: relative;\n width: var(--a11y-min-size);\n height: var(--a11y-min-size);\n align-items: center;\n justify-content: center;\n cursor: pointer;\n }\n .kol-table__selection-label--disabled {\n cursor: not-allowed;\n }\n .kol-table__selection-icon {\n display: block;\n position: absolute;\n inset: auto;\n z-index: 1;\n }\n .kol-table__selection-input {\n border-style: solid;\n margin: 0;\n appearance: none;\n cursor: pointer;\n }\n .kol-table__selection-input:disabled {\n cursor: not-allowed;\n }\n .kol-table__selection-input:before {\n content: "";\n }\n .kol-table__selection-input--checkbox {\n background-color: rgb(255, 255, 255);\n display: flex;\n position: relative;\n width: calc(var(--a11y-min-size) / 2);\n height: calc(var(--a11y-min-size) / 2);\n border-width: 2px;\n align-items: center;\n justify-content: center;\n line-height: 1.5;\n }\n .kol-table__selection-input--radio {\n border-radius: 100%;\n display: flex;\n width: 1.5em;\n min-width: 1.5em;\n height: 1.5em;\n min-height: 1.5em;\n padding: 0;\n border-width: 2px;\n }\n .kol-table__selection-input--radio:before {\n border-radius: 100%;\n width: 0.75em;\n height: 0.75em;\n margin: auto;\n }\n .kol-table__selection-input--radio:checked:before {\n background-color: #000;\n }\n @media (forced-colors: active) {\n .kol-table__selection-input--radio:checked:before {\n /* Give it a visible background in forced colors mode */\n background-color: selectedItem !important;\n }\n }\n .kol-alert {\n display: grid;\n }\n .kol-alert__container {\n display: flex;\n place-items: center;\n }\n .kol-alert__container-content {\n flex-grow: 1;\n }\n .kol-alert__closer {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-form-field {\n display: grid;\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field--disabled .kol-form-field__label {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__label-text::after {\n content: "*"/"";\n }\n .kol-form-field--disabled .kol-form-field__hint {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\n content: "*"/"";\n }\n .kol-input-container {\n background-color: transparent;\n display: grid;\n width: 100%;\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n align-items: center;\n grid-template-columns: 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start) {\n grid-template-columns: auto 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--end) {\n grid-template-columns: 1fr auto;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) {\n grid-template-columns: auto 1fr auto;\n }\n .kol-input-container__container {\n position: relative;\n }\n .kol-input-container__adornment {\n display: flex;\n align-items: center;\n }\n .kol-input-container__adornment .kol-icon {\n display: grid;\n height: var(--a11y-min-size);\n place-items: center;\n }\n .kol-select {\n background-color: transparent;\n width: 100%;\n }\n .kol-select:not(:disabled) {\n cursor: pointer;\n }\n .kol-select:not([multiple], [size]) {\n height: 2.75em;\n }\n .kol-select:focus {\n outline: none;\n }\n .kol-select__option:checked::before {\n content: "✓ ";\n }\n .kol-select {\n /* needed hack for vertical alignment */\n }\n .kol-select[multiple] option {\n padding: calc((var(--a11y-min-size) - 16 * 1rem / var(--kolibri-root-font-size, 16)) / 2) 0.5em;\n }\n .kol-pagination {\n display: grid;\n gap: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n align-items: center;\n grid-template-columns: 1fr auto;\n }\n .kol-pagination__navigation-list {\n display: inline-flex;\n margin: 0;\n padding: 0;\n gap: 0.5em;\n flex-wrap: wrap;\n align-items: center;\n list-style: none;\n }\n .kol-pagination__separator:before {\n content: "•••";\n }\n .kol-pagination__page-size-select .kol-form-field-select {\n align-items: center;\n grid-template-columns: 1fr max-content;\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}',PAGINATION_OPTIONS=[10,20,50,100],paginationValidator=t=>!0===t||""===t||"object"==typeof t&&null!==t,KolTableStateful=class{constructor(t){index.registerInstance(this,t),this.catchRef=t=>{this.tableWcRef=t},this.sortData=[],this.showPagination=!1,this.pageStartSlice=0,this.pageEndSlice=10,this.disableSort=!1,this._paginationPosition="bottom",this.state={_allowMultiSort:!1,_data:[],_dataFoot:[],_headers:{horizontal:[],vertical:[]},_label:"",_minWidth:"auto",_pagination:{_page:1,_pageSize:10,_max:0},_sortedData:[],_paginationPosition:"bottom",_hasSettingsMenu:!1},this.handlePagination={onClick:(t,n)=>{var e;"function"==typeof(null===(e=this.state._pagination._on)||void 0===e?void 0:e.onClick)&&this.state._pagination._on.onClick(t,n),common.setState(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_page:n}))},onChangePage:(t,n)=>{var e;"function"==typeof(null===(e=this.state._pagination._on)||void 0===e?void 0:e.onChangePage)&&this.state._pagination._on.onChangePage(t,n),common.setState(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_page:n}))},onChangePageSize:(t,n)=>{var e;"function"==typeof(null===(e=this.state._pagination._on)||void 0===e?void 0:e.onChangePageSize)&&this.state._pagination._on.onChangePageSize(t,n),common.setState(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_pageSize:n})),common.setState(this,"_pageSize",n)}},this.onSelectionChange=t=>{t.stopPropagation()},this.updateSortedData=()=>{if(this.disableSort)return void common.setState(this,"_sortedData",this.state._data);const t=[...this.state._data];this.sortData.length>0&&t.sort((t,n)=>{for(let e=0;e<this.sortData.length;e++){const i=this.sortData[e],a=i.compareFn(t,n,i.direction);if(0!==a)return"ASC"===i.direction?a:-a}return 0}),common.setState(this,"_sortedData",t)}}validateAllowMultiSort(t){validateAllowMultiSort(this,t,{defaultValue:!1})}validateData(t){tableSettings.validateTableData(this,t,{afterPatch:()=>{setTimeout(this.updateSortedData)}})}validateDataFoot(t){tableSettings.validateTableDataFoot(this,t,{afterPatch:()=>{setTimeout(this.updateSortedData)}})}validatePaginationPosition(t){validatePaginationPosition(this,t)}validateHasSettingsMenu(t){tableSettings.validateHasSettingsMenu(this,t)}changeCellSort(t){var n;if("function"==typeof t.compareFn){this.state._allowMultiSort||t.key===(null===(n=this.sortData[0])||void 0===n?void 0:n.key)||(this.sortData=[]);const e=this.sortData.findIndex(n=>n.key===t.key);if(e>=0){const t=this.sortData[e];switch(t.direction){case"ASC":t.direction="DESC";break;case"DESC":this.sortData.splice(e,1);break;default:t.direction="ASC"}}else t.key&&this.sortData.push({label:t.label,key:t.key,compareFn:t.compareFn,direction:"ASC"});this.updateSortedData()}}validateHeaders(t){common.emptyStringByArrayHandler(t,()=>{common.objectObjectHandler(t,()=>{try{t=common.parseJson(t)}catch(t){}common.watchValidator(this,"_headers",t=>"object"==typeof t&&null!==t,new Set(["KoliBriTableHeaders"]),t,{hooks:{beforePatch:t=>{var n,e,i,a;const o=t=>{let n=!1;this.sortData=[],t.forEach(t=>{if("function"==typeof t.compareFn&&!t.key)return void common.devHint("[KolTableStateful] A sortable column requires the 'key' property.");const e=t.key;if(!e)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:e,compareFn:t.compareFn,direction:i}),n=!0)}),n&&setTimeout(()=>this.updateSortedData())},l=t;null===(n=l.horizontal)||void 0===n||n.forEach(o),null===(e=l.vertical)||void 0===e||e.forEach(o),l.horizontal&&l.vertical&&(null===(i=l.horizontal)||void 0===i?void 0:i.length)>0&&(null===(a=l.vertical)||void 0===a?void 0:a.length)>0&&(this.disableSort=!0,common.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){label.validateLabel(this,t,{required:!0})}validateMinWidth(t){common.watchString(this,"_minWidth",t,{defaultValue:void 0})}validateSelection(t){tableSettings.validateTableSelection(this,t)}validateOn(t){tableSettings.validateTableStatefulCallbacks(this,t)}validateTableSettings(t){tableSettings.validateTableSettings(this,t)}validatePagination(t){try{t=common.parseJson(t)}catch(t){}this.showPagination=paginationValidator(t),common.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(events.KolEvent.selectionChange,this.onSelectionChange)}disconnectedCallback(){var t;null===(t=this.tableWcRef)||void 0===t||t.removeEventListener(events.KolEvent.selectionChange,this.onSelectionChange)}componentWillLoad(){this.validateAllowMultiSort(this._allowMultiSort),this.validateData(this._data),this.validateDataFoot(this._dataFoot),this.validateHeaders(this._headers),this.validateLabel(this._label),this.validateMinWidth(this._minWidth),this.validateOn(this._on),this.validatePagination(this._pagination),this.validatePaginationPosition(this._paginationPosition),this.validateSelection(this._selection),this.validateTableSettings(this._tableSettings),this.validateHasSettingsMenu(this._hasSettingsMenu)}selectDisplayedData(t,n,e){return"number"==typeof n&&n>0&&"number"==typeof e&&e>0?(this.pageStartSlice=n*(e-1),this.pageEndSlice=n*e>t.length?t.length:n*e,t.slice(this.pageStartSlice,this.pageEndSlice)):(this.pageStartSlice=0,this.pageEndSlice=t.length,t)}renderPagination(t){const n=i18n.translate("kol-table-pagination-label",{placeholders:{label:`${this.state._label} (${i18n.translate(`kol-pagination-position-${t}`)})`}});return index.h("div",{class:`kol-table-stateful__pagination kol-table-stateful__pagination--${this.state._paginationPosition}`},index.h("span",{role:"status","aria-live":"polite"},i18n.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"}})),index.h("div",{class:"kol-table-stateful__pagination-wrapper"},index.h(componentNames.KolPaginationWcTag,{class:"test",_boundaryCount:this.state._pagination._boundaryCount,_customClass:this.state._pagination._customClass,_on:this.handlePagination,_page:this.state._pagination._page,_pageSize:this.state._pagination._pageSize,_pageSizeOptions:this.state._pagination._pageSizeOptions||PAGINATION_OPTIONS,_siblingCount:this.state._pagination._siblingCount,_tooltipAlign:"bottom",_max:this.state._pagination._max||this.state._pagination._max||this.state._data.length,_label:n})))}getHeaderCellSortState(t){if(!this.disableSort&&"function"==typeof t.compareFn){if(t.key){const n=this.sortData.find(n=>n.key===t.key);if(null==n?void 0:n.direction)return n.direction}return"NOS"}}handleSort({key:t}){const n=[...(this.state._headers.horizontal||[]).flat(),...(this.state._headers.vertical||[]).flat()].find(n=>n.key===t);n&&this.changeCellSort(n)}getSelectedData(t){var n;const e=this.state._selection;if(e){const i=null!==(n=e.keyPropertyName)&&void 0!==n?n:"id",a=Array.isArray(t)?t:[t],o=new Set(a.map(String)),l=this.state._sortedData.filter(t=>o.has(String(t[i])));if(!1===(null==e?void 0:e.multiple))return l[0];if(i)return l}return null}handleSelectionChange(t,n){var e;const i=this.state._selection;i&&(this.state=Object.assign(Object.assign({},this.state),{_selection:Object.assign(Object.assign({},i),{selectedKeys:Array.isArray(n)?n:[n]})}));const a=this.getSelectedData(n);"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e[keyboard.Callback.onSelectionChange])&&this.state._on[keyboard.Callback.onSelectionChange](t,a),this.host&&events.dispatchDomEvent(this.host,events.KolEvent.selectionChange,a)}async getSelection(){var t;const n=(null===(t=this.state._selection)||void 0===t?void 0:t.selectedKeys)||[];return this.getSelectedData(n)}render(){var t,n,e,i,a,o;const l=this.selectDisplayedData(this.state._sortedData,this.showPagination?null!==(n=null===(t=this.state._pagination)||void 0===t?void 0:t._pageSize)&&void 0!==n?n:10:this.state._sortedData.length,this.state._pagination._page||1),s="top"===this._paginationPosition||"both"===this._paginationPosition?this.renderPagination("top"):null,r="bottom"===this._paginationPosition||"both"===this._paginationPosition?this.renderPagination("bottom"):null,d={horizontal:null!==(i=null===(e=this.state._headers.horizontal)||void 0===e?void 0:e.map(t=>t.map(t=>Object.assign(Object.assign({},t),{sortDirection:this.getHeaderCellSortState(t)}))))&&void 0!==i?i:[],vertical:null!==(o=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)}))))&&void 0!==o?o:[]};return index.h(index.Host,{key:"5ab8ff5b83647e809cddeccf2245696887bd12b4",class:"kol-table-stateful"},this.pageEndSlice>0&&this.showPagination&&s,index.h(componentNames.KolTableStatelessWcTag,{key:"a508c9984294f4be4f37b43ea4b8d5f7417c0818",ref:this.catchRef,_data:l,_headerCells:d,_label:this.state._label,_dataFoot:this.state._dataFoot,_minWidth:this.state._minWidth,_on:{onSort:(t,n)=>{this.handleSort(n)},onSelectionChange:(t,n)=>{this.handleSelectionChange(t,n)}},_selection:this.state._selection,_tableSettings:this.state._tableSettings,_hasSettingsMenu:this.state._hasSettingsMenu}),this.pageEndSlice>0&&this.showPagination&&r)}get host(){return index.getElement(this)}static get watchers(){return{_allowMultiSort:["validateAllowMultiSort"],_data:["validateData"],_dataFoot:["validateDataFoot"],_paginationPosition:["validatePaginationPosition"],_hasSettingsMenu:["validateHasSettingsMenu"],_headers:["validateHeaders"],_label:["validateLabel"],_minWidth:["validateMinWidth"],_selection:["validateSelection"],_on:["validateOn"],_tableSettings:["validateTableSettings"],_pagination:["validatePagination"]}}};KolTableStateful.style={default:defaultStyleCss},exports.kol_table_stateful=KolTableStateful;
4
+ "use strict";var index=require("./index-CUwAAV9q.js"),componentNames=require("./component-names-CuI-0Pbo.js"),i18n=require("./i18n-DNWGj4j8.js"),common=require("./common-Cd2qH809.js"),tableSettings=require("./table-settings-Ct3SRuhX.js"),label=require("./label-Nicf9N_T.js"),keyboard=require("./keyboard-C096g_BV.js"),events=require("./events-cX8h6I3p.js");require("./i18n-BnIFsVIa.js");const validateAllowMultiSort=(t,e,i={})=>{common.watchBoolean(t,"_allowMultiSort",e,Object.assign({defaultValue:!1},i))},paginationPositionPropTypeOptions=["top","bottom","both"],validatePaginationPosition=(t,e)=>{common.watchValidator(t,"_paginationPosition",t=>"string"==typeof t&&paginationPositionPropTypeOptions.includes(t),new Set([`PaginationPositionPropType {${paginationPositionPropTypeOptions.join(", ")}`]),e,{defaultValue:"bottom"})},defaultStyleCss=()=>'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component; @layer kol-a11y { :host { --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16)); color: black; background-color: white; font-family: Verdana; letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; white-space: nowrap; clip-path: inset(50%); } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: lightgray; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } .kol-span .kol-span__label--hide-label .kol-span__label { display: none; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled], [disabled]:focus { opacity: 0.5; outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } } @layer kol-component { :host { display: block; } } @layer kol-component { .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: #000; background-color: #fff; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: #000; background-color: #fff; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-alert { display: grid; } .kol-alert__container { display: flex; place-items: center; } .kol-alert__container-content { flex-grow: 1; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); } :host { display: inline-block; } .kol-button { display: inline-flex; font-style: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); text-decoration-line: none; } .kol-button::before { content: "​"; } .kol-button__text { width: 100%; } .kol-popover-button__button { display: inline-block; } .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-popover-button--inline .kol-popover-button__button { display: inline; } .kol-table-settings { background: #fff; position: absolute; top: 0; right: 0; z-index: 1; } .kol-table-settings .kol-popover-button__popover { background: #fff; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); border-radius: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); border: 1px solid #d1d5db; } .kol-table-settings__columns-container { max-height: calc(200 * 1rem / var(--kolibri-root-font-size, 16)); margin-top: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); overflow: auto; } .kol-table-settings__columns { display: grid; gap: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); align-items: center; grid-auto-rows: min-content; grid-template-columns: min-content minmax(max-content, 1fr) calc(100 * 1rem / var(--kolibri-root-font-size, 16)) auto auto; } .kol-table-settings__column { display: contents; } .kol-table { display: block; position: relative; max-width: 100%; } .kol-table:has(.kol-table__focus-element:focus) .kol-table__scroll-container { outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color; outline-offset: 2px; } .kol-table__scroll-container { overflow-x: auto; overflow-y: hidden; } .kol-table__table { width: 100%; } .kol-table__caption { min-height: var(--a11y-min-size); padding-right: var(--a11y-min-size); text-align: start; } .kol-table__sort-button .kol-button { color: inherit; } .kol-table__body { text-align: left; } .kol-table__body .kol-button__text { justify-items: start; } .kol-table__cell--align-left { text-align: left; } .kol-table__cell--align-left .kol-button__text { align-items: start; } .kol-table__cell--align-center { text-align: center; } .kol-table__cell--align-center .kol-button__text { align-items: center; } .kol-table__cell--align-right { text-align: right; } .kol-table__cell--align-right .kol-button__text { align-items: end; } .kol-table__cell--selection { width: var(--a11y-min-size); height: var(--a11y-min-size); white-space: nowrap; } .kol-table__spacer { display: none; } .kol-table__selection-label { display: flex; position: relative; width: var(--a11y-min-size); height: var(--a11y-min-size); align-items: center; justify-content: center; cursor: pointer; } .kol-table__selection-label--disabled { cursor: not-allowed; } .kol-table__selection-icon { display: block; position: absolute; inset: auto; z-index: 1; } .kol-table__selection-input { border-style: solid; margin: 0; appearance: none; cursor: pointer; } .kol-table__selection-input:disabled { cursor: not-allowed; } .kol-table__selection-input:before { content: ""; } .kol-table__selection-input--checkbox { background-color: rgb(255, 255, 255); display: flex; position: relative; width: calc(var(--a11y-min-size) / 2); height: calc(var(--a11y-min-size) / 2); border-width: 2px; align-items: center; justify-content: center; line-height: 1.5; } .kol-table__selection-input--radio { border-radius: 100%; display: flex; width: 1.5em; min-width: 1.5em; height: 1.5em; min-height: 1.5em; padding: 0; border-width: 2px; } .kol-table__selection-input--radio:before { border-radius: 100%; width: 0.75em; height: 0.75em; margin: auto; } .kol-table__selection-input--radio:checked:before { background-color: #000; } @media (forced-colors: active) { .kol-table__selection-input--radio:checked:before { background-color: selectedItem !important; } } .kol-alert { display: grid; } .kol-alert__container { display: flex; place-items: center; } .kol-alert__container-content { flex-grow: 1; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-form-field { display: grid; } .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label { cursor: pointer; } .kol-form-field--disabled .kol-form-field__label { opacity: 0.5; } .kol-form-field--required .kol-form-field__label-text::after { content: "*"/""; } .kol-form-field--disabled .kol-form-field__hint { opacity: 0.5; } .kol-form-field--required .kol-form-field__tooltip .span-label::after { content: "*"/""; } .kol-input-container { background-color: transparent; display: grid; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; grid-template-columns: 1fr; } .kol-input-container:has(> .kol-input-container__adornment--start) { grid-template-columns: auto 1fr; } .kol-input-container:has(> .kol-input-container__adornment--end) { grid-template-columns: 1fr auto; } .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) { grid-template-columns: auto 1fr auto; } .kol-input-container__container { position: relative; } .kol-input-container__adornment { display: flex; align-items: center; } .kol-input-container__adornment .kol-icon { display: grid; height: var(--a11y-min-size); place-items: center; } .kol-select { background-color: transparent; width: 100%; } .kol-select:not(:disabled) { cursor: pointer; } .kol-select:not([multiple], [size]) { height: 2.75em; } .kol-select:focus { outline: none; } .kol-select__option:checked::before { content: "✓ "; } .kol-select { } .kol-select[multiple] option { padding: calc((var(--a11y-min-size) - 16 * 1rem / var(--kolibri-root-font-size, 16)) / 2) 0.5em; } .kol-pagination { display: grid; gap: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); align-items: center; grid-template-columns: 1fr auto; } .kol-pagination__navigation-list { display: inline-flex; margin: 0; padding: 0; gap: 0.5em; flex-wrap: wrap; align-items: center; list-style: none; } .kol-pagination__separator:before { content: "•••"; } .kol-pagination__page-size-select .kol-form-field-select { align-items: center; grid-template-columns: 1fr max-content; } .kol-table-stateful__pagination, .kol-table-stateful__pagination-wrapper { display: grid; place-items: center; } @media (min-width: 1024px) { .kol-table-stateful__pagination, .kol-table-stateful__pagination-wrapper { grid-auto-flow: column; } } .kol-pagination { display: flex; flex-wrap: wrap; } @media (min-width: 1024px) { .kol-pagination { display: flex; } } @media (max-width: 1024px) { .kol-pagination { flex-direction: column; } } }',PAGINATION_OPTIONS=[10,20,50,100],paginationValidator=t=>!0===t||""===t||"object"==typeof t&&null!==t,KolTableStateful=class{constructor(t){index.registerInstance(this,t),this.catchRef=t=>{this.tableWcRef=t},this.sortData=[],this.showPagination=!1,this.pageStartSlice=0,this.pageEndSlice=10,this.disableSort=!1,this._paginationPosition="bottom",this.state={_allowMultiSort:!1,_data:[],_dataFoot:[],_headers:{horizontal:[],vertical:[]},_label:"",_minWidth:"auto",_pagination:{_page:1,_pageSize:10,_max:0},_sortedData:[],_paginationPosition:"bottom",_hasSettingsMenu:!1},this.handlePagination={onClick:(t,e)=>{var i;"function"==typeof(null===(i=this.state._pagination._on)||void 0===i?void 0:i.onClick)&&this.state._pagination._on.onClick(t,e),common.setState(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_page:e}))},onChangePage:(t,e)=>{var i;"function"==typeof(null===(i=this.state._pagination._on)||void 0===i?void 0:i.onChangePage)&&this.state._pagination._on.onChangePage(t,e),common.setState(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_page:e}))},onChangePageSize:(t,e)=>{var i;"function"==typeof(null===(i=this.state._pagination._on)||void 0===i?void 0:i.onChangePageSize)&&this.state._pagination._on.onChangePageSize(t,e),common.setState(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_pageSize:e})),common.setState(this,"_pageSize",e)}},this.onSelectionChange=t=>{t.stopPropagation()},this.updateSortedData=()=>{if(this.disableSort)return void common.setState(this,"_sortedData",this.state._data);const t=[...this.state._data];this.sortData.length>0&&t.sort((t,e)=>{for(let i=0;i<this.sortData.length;i++){const a=this.sortData[i],o=a.compareFn(t,e,a.direction);if(0!==o)return"ASC"===a.direction?o:-o}return 0}),common.setState(this,"_sortedData",t)}}validateAllowMultiSort(t){validateAllowMultiSort(this,t,{defaultValue:!1})}validateData(t){tableSettings.validateTableData(this,t,{afterPatch:()=>{setTimeout(this.updateSortedData)}})}validateDataFoot(t){tableSettings.validateTableDataFoot(this,t,{afterPatch:()=>{setTimeout(this.updateSortedData)}})}validatePaginationPosition(t){validatePaginationPosition(this,t)}validateHasSettingsMenu(t){tableSettings.validateHasSettingsMenu(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 i=this.sortData.findIndex(e=>e.key===t.key);if(i>=0){const t=this.sortData[i];switch(t.direction){case"ASC":t.direction="DESC";break;case"DESC":this.sortData.splice(i,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){common.emptyStringByArrayHandler(t,()=>{common.objectObjectHandler(t,()=>{try{t=common.parseJson(t)}catch(t){}common.watchValidator(this,"_headers",t=>"object"==typeof t&&null!==t,new Set(["KoliBriTableHeaders"]),t,{hooks:{beforePatch:t=>{var e,i,a,o;const n=t=>{let e=!1;this.sortData=[],t.forEach(t=>{if("function"==typeof t.compareFn&&!t.key)return void common.devHint("[KolTableStateful] A sortable column requires the 'key' property.");const i=t.key;if(!i)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:i,compareFn:t.compareFn,direction:a}),e=!0)}),e&&setTimeout(()=>this.updateSortedData())},l=t;null===(e=l.horizontal)||void 0===e||e.forEach(n),null===(i=l.vertical)||void 0===i||i.forEach(n),l.horizontal&&l.vertical&&(null===(a=l.horizontal)||void 0===a?void 0:a.length)>0&&(null===(o=l.vertical)||void 0===o?void 0:o.length)>0&&(this.disableSort=!0,common.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){label.validateLabel(this,t,{required:!0})}validateMinWidth(t){common.watchString(this,"_minWidth",t,{defaultValue:void 0})}validateSelection(t){tableSettings.validateTableSelection(this,t)}validateOn(t){tableSettings.validateTableStatefulCallbacks(this,t)}validateTableSettings(t){tableSettings.validateTableSettings(this,t)}validatePagination(t){try{t=common.parseJson(t)}catch(t){}this.showPagination=paginationValidator(t),common.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(events.KolEvent.selectionChange,this.onSelectionChange)}disconnectedCallback(){var t;null===(t=this.tableWcRef)||void 0===t||t.removeEventListener(events.KolEvent.selectionChange,this.onSelectionChange)}componentWillLoad(){this.validateAllowMultiSort(this._allowMultiSort),this.validateData(this._data),this.validateDataFoot(this._dataFoot),this.validateHeaders(this._headers),this.validateLabel(this._label),this.validateMinWidth(this._minWidth),this.validateOn(this._on),this.validatePagination(this._pagination),this.validatePaginationPosition(this._paginationPosition),this.validateSelection(this._selection),this.validateTableSettings(this._tableSettings),this.validateHasSettingsMenu(this._hasSettingsMenu)}selectDisplayedData(t,e,i){return"number"==typeof e&&e>0&&"number"==typeof i&&i>0?(this.pageStartSlice=e*(i-1),this.pageEndSlice=e*i>t.length?t.length:e*i,t.slice(this.pageStartSlice,this.pageEndSlice)):(this.pageStartSlice=0,this.pageEndSlice=t.length,t)}renderPagination(t){const e=i18n.translate("kol-table-pagination-label",{placeholders:{label:`${this.state._label} (${i18n.translate(`kol-pagination-position-${t}`)})`}});return index.h("div",{class:`kol-table-stateful__pagination kol-table-stateful__pagination--${this.state._paginationPosition}`},index.h("span",{role:"status","aria-live":"polite"},i18n.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"}})),index.h("div",{class:"kol-table-stateful__pagination-wrapper"},index.h(componentNames.KolPaginationWcTag,{class:"test",_boundaryCount:this.state._pagination._boundaryCount,_customClass:this.state._pagination._customClass,_on:this.handlePagination,_page:this.state._pagination._page,_pageSize:this.state._pagination._pageSize,_pageSizeOptions:this.state._pagination._pageSizeOptions||PAGINATION_OPTIONS,_siblingCount:this.state._pagination._siblingCount,_tooltipAlign:"bottom",_max:this.state._pagination._max||this.state._pagination._max||this.state._data.length,_label:e})))}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 i=this.state._selection;if(i){const a=null!==(e=i.keyPropertyName)&&void 0!==e?e:"id",o=Array.isArray(t)?t:[t],n=new Set(o.map(String)),l=this.state._sortedData.filter(t=>n.has(String(t[a])));if(!1===(null==i?void 0:i.multiple))return l[0];if(a)return l}return null}handleSelectionChange(t,e){var i;const a=this.state._selection;a&&(this.state=Object.assign(Object.assign({},this.state),{_selection:Object.assign(Object.assign({},a),{selectedKeys:Array.isArray(e)?e:[e]})}));const o=this.getSelectedData(e);"function"==typeof(null===(i=this.state._on)||void 0===i?void 0:i[keyboard.Callback.onSelectionChange])&&this.state._on[keyboard.Callback.onSelectionChange](t,o),this.host&&events.dispatchDomEvent(this.host,events.KolEvent.selectionChange,o)}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,i,a,o,n;const l=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),s="top"===this._paginationPosition||"both"===this._paginationPosition?this.renderPagination("top"):null,r="bottom"===this._paginationPosition||"both"===this._paginationPosition?this.renderPagination("bottom"):null,d={horizontal:null!==(a=null===(i=this.state._headers.horizontal)||void 0===i?void 0:i.map(t=>t.map(t=>Object.assign(Object.assign({},t),{sortDirection:this.getHeaderCellSortState(t)}))))&&void 0!==a?a:[],vertical:null!==(n=null===(o=this.state._headers.vertical)||void 0===o?void 0:o.map(t=>t.map(t=>Object.assign(Object.assign({},t),{sortDirection:this.getHeaderCellSortState(t)}))))&&void 0!==n?n:[]};return index.h(index.Host,{key:"5ab8ff5b83647e809cddeccf2245696887bd12b4",class:"kol-table-stateful"},this.pageEndSlice>0&&this.showPagination&&s,index.h(componentNames.KolTableStatelessWcTag,{key:"a508c9984294f4be4f37b43ea4b8d5f7417c0818",ref:this.catchRef,_data:l,_headerCells:d,_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,_tableSettings:this.state._tableSettings,_hasSettingsMenu:this.state._hasSettingsMenu}),this.pageEndSlice>0&&this.showPagination&&r)}get host(){return index.getElement(this)}static get watchers(){return{_allowMultiSort:[{validateAllowMultiSort:0}],_data:[{validateData:0}],_dataFoot:[{validateDataFoot:0}],_paginationPosition:[{validatePaginationPosition:0}],_hasSettingsMenu:[{validateHasSettingsMenu:0}],_headers:[{validateHeaders:0}],_label:[{validateLabel:0}],_minWidth:[{validateMinWidth:0}],_selection:[{validateSelection:0}],_on:[{validateOn:0}],_tableSettings:[{validateTableSettings:0}],_pagination:[{validatePagination:0}]}}};KolTableStateful.style={default:defaultStyleCss()},exports.kol_table_stateful=KolTableStateful;
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";var index=require("./index-uT47A9Jc.js"),clsx=require("./clsx-CkZlkaek.js"),componentNames=require("./component-names-CuI-0Pbo.js"),i18n=require("./i18n-DNWGj4j8.js"),common=require("./common-Cd2qH809.js"),tableSettings=require("./table-settings-Ct3SRuhX.js"),label=require("./label-Nicf9N_T.js"),keyboard=require("./keyboard-C096g_BV.js"),dev_utils=require("./dev.utils-fZEgoGGu.js"),events=require("./events-cX8h6I3p.js"),isObject=require("./isObject-DMA85Fq4.js");require("./i18n-BnIFsVIa.js");const validateTableHeaderCells=(e,t)=>{common.emptyStringByArrayHandler(t,()=>{common.objectObjectHandler(t,()=>{try{t=common.parseJson(t)}catch(e){}common.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)})})};var asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction(e){if(!isObject.isObject(e))return!1;var t=isObject.baseGetTag(e);return t==funcTag$1||t==genTag||t==asyncTag||t==proxyTag}var coreJsData=isObject.root["__core-js_shared__"],maskSrcKey=function(){var e=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function isMasked(e){return!!maskSrcKey&&maskSrcKey in e}var funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString;function toSource(e){if(null!=e){try{return funcToString$1.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto$9=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$7=objectProto$9.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$7).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(e){return!(!isObject.isObject(e)||isMasked(e))&&(isFunction(e)?reIsNative:reIsHostCtor).test(toSource(e))}function getValue(e,t){return null==e?void 0:e[t]}function getNative(e,t){var a=getValue(e,t);return baseIsNative(a)?a:void 0}var WeakMap=getNative(isObject.root,"WeakMap"),MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(e,t){var a=typeof e;return!!(t=null==t?MAX_SAFE_INTEGER$1:t)&&("number"==a||"symbol"!=a&&reIsUint.test(e))&&e>-1&&e%1==0&&e<t}function eq(e,t){return e===t||e!=e&&t!=t}var MAX_SAFE_INTEGER=9007199254740991;function isLength(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=MAX_SAFE_INTEGER}function isArrayLike(e){return null!=e&&isLength(e.length)&&!isFunction(e)}var objectProto$8=Object.prototype;function isPrototype(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||objectProto$8)}function baseTimes(e,t){for(var a=-1,r=Array(e);++a<e;)r[a]=t(a);return r}var argsTag$2="[object Arguments]";function baseIsArguments(e){return isObject.isObjectLike(e)&&isObject.baseGetTag(e)==argsTag$2}var objectProto$7=Object.prototype,hasOwnProperty$6=objectProto$7.hasOwnProperty,propertyIsEnumerable$1=objectProto$7.propertyIsEnumerable,isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObject.isObjectLike(e)&&hasOwnProperty$6.call(e,"callee")&&!propertyIsEnumerable$1.call(e,"callee")};function stubFalse(){return!1}var freeExports$1="object"==typeof exports&&exports&&!exports.nodeType&&exports,freeModule$1=freeExports$1&&"object"==typeof module&&module&&!module.nodeType&&module,moduleExports$1=freeModule$1&&freeModule$1.exports===freeExports$1,Buffer=moduleExports$1?isObject.root.Buffer:void 0,nativeIsBuffer=Buffer?Buffer.isBuffer:void 0,isBuffer=nativeIsBuffer||stubFalse,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",funcTag="[object Function]",mapTag$2="[object Map]",numberTag$1="[object Number]",objectTag$2="[object Object]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$1="[object String]",weakMapTag$1="[object WeakMap]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$2="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",typedArrayTags={};function baseIsTypedArray(e){return isObject.isObjectLike(e)&&isLength(e.length)&&!!typedArrayTags[isObject.baseGetTag(e)]}function baseUnary(e){return function(t){return e(t)}}typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0,typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag$1]=typedArrayTags[boolTag$1]=typedArrayTags[dataViewTag$2]=typedArrayTags[dateTag$1]=typedArrayTags[errorTag$1]=typedArrayTags[funcTag]=typedArrayTags[mapTag$2]=typedArrayTags[numberTag$1]=typedArrayTags[objectTag$2]=typedArrayTags[regexpTag$1]=typedArrayTags[setTag$2]=typedArrayTags[stringTag$1]=typedArrayTags[weakMapTag$1]=!1;var freeExports="object"==typeof exports&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&"object"==typeof module&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,freeProcess=moduleExports&&isObject.freeGlobal.process,nodeUtil=function(){try{var e=freeModule&&freeModule.require&&freeModule.require("util").types;return e||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch(e){}}(),nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,objectProto$6=Object.prototype,hasOwnProperty$5=objectProto$6.hasOwnProperty;function arrayLikeKeys(e,t){var a=isObject.isArray(e),r=!a&&isArguments(e),o=!a&&!r&&isBuffer(e),i=!a&&!r&&!o&&isTypedArray(e),s=a||r||o||i,n=s?baseTimes(e.length,String):[],l=n.length;for(var c in e)!hasOwnProperty$5.call(e,c)||s&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||isIndex(c,l))||n.push(c);return n}function overArg(e,t){return function(a){return e(t(a))}}var nativeKeys=overArg(Object.keys,Object),objectProto$5=Object.prototype,hasOwnProperty$4=objectProto$5.hasOwnProperty;function baseKeys(e){if(!isPrototype(e))return nativeKeys(e);var t=[];for(var a in Object(e))hasOwnProperty$4.call(e,a)&&"constructor"!=a&&t.push(a);return t}function keys(e){return isArrayLike(e)?arrayLikeKeys(e):baseKeys(e)}var nativeCreate=getNative(Object,"create");function hashClear(){this.__data__=nativeCreate?nativeCreate(null):{},this.size=0}function hashDelete(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$4=Object.prototype,hasOwnProperty$3=objectProto$4.hasOwnProperty;function hashGet(e){var t=this.__data__;if(nativeCreate){var a=t[e];return a===HASH_UNDEFINED$2?void 0:a}return hasOwnProperty$3.call(t,e)?t[e]:void 0}var objectProto$3=Object.prototype,hasOwnProperty$2=objectProto$3.hasOwnProperty;function hashHas(e){var t=this.__data__;return nativeCreate?void 0!==t[e]:hasOwnProperty$2.call(t,e)}var HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet(e,t){var a=this.__data__;return this.size+=this.has(e)?0:1,a[e]=nativeCreate&&void 0===t?HASH_UNDEFINED$1:t,this}function Hash(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}function listCacheClear(){this.__data__=[],this.size=0}function assocIndexOf(e,t){for(var a=e.length;a--;)if(eq(e[a][0],t))return a;return-1}Hash.prototype.clear=hashClear,Hash.prototype.delete=hashDelete,Hash.prototype.get=hashGet,Hash.prototype.has=hashHas,Hash.prototype.set=hashSet;var arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete(e){var t=this.__data__,a=assocIndexOf(t,e);return!(a<0)&&(a==t.length-1?t.pop():splice.call(t,a,1),--this.size,!0)}function listCacheGet(e){var t=this.__data__,a=assocIndexOf(t,e);return a<0?void 0:t[a][1]}function listCacheHas(e){return assocIndexOf(this.__data__,e)>-1}function listCacheSet(e,t){var a=this.__data__,r=assocIndexOf(a,e);return r<0?(++this.size,a.push([e,t])):a[r][1]=t,this}function ListCache(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}ListCache.prototype.clear=listCacheClear,ListCache.prototype.delete=listCacheDelete,ListCache.prototype.get=listCacheGet,ListCache.prototype.has=listCacheHas,ListCache.prototype.set=listCacheSet;var Map$1=getNative(isObject.root,"Map");function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Map$1||ListCache),string:new Hash}}function isKeyable(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function getMapData(e,t){var a=e.__data__;return isKeyable(t)?a["string"==typeof t?"string":"hash"]:a.map}function mapCacheDelete(e){var t=getMapData(this,e).delete(e);return this.size-=t?1:0,t}function mapCacheGet(e){return getMapData(this,e).get(e)}function mapCacheHas(e){return getMapData(this,e).has(e)}function mapCacheSet(e,t){var a=getMapData(this,e),r=a.size;return a.set(e,t),this.size+=a.size==r?0:1,this}function MapCache(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}function arrayPush(e,t){for(var a=-1,r=t.length,o=e.length;++a<r;)e[o+a]=t[a];return e}function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete(e){var t=this.__data__,a=t.delete(e);return this.size=t.size,a}function stackGet(e){return this.__data__.get(e)}function stackHas(e){return this.__data__.has(e)}MapCache.prototype.clear=mapCacheClear,MapCache.prototype.delete=mapCacheDelete,MapCache.prototype.get=mapCacheGet,MapCache.prototype.has=mapCacheHas,MapCache.prototype.set=mapCacheSet;var LARGE_ARRAY_SIZE=200;function stackSet(e,t){var a=this.__data__;if(a instanceof ListCache){var r=a.__data__;if(!Map$1||r.length<LARGE_ARRAY_SIZE-1)return r.push([e,t]),this.size=++a.size,this;a=this.__data__=new MapCache(r)}return a.set(e,t),this.size=a.size,this}function Stack(e){var t=this.__data__=new ListCache(e);this.size=t.size}function arrayFilter(e,t){for(var a=-1,r=null==e?0:e.length,o=0,i=[];++a<r;){var s=e[a];t(s,a,e)&&(i[o++]=s)}return i}function stubArray(){return[]}Stack.prototype.clear=stackClear,Stack.prototype.delete=stackDelete,Stack.prototype.get=stackGet,Stack.prototype.has=stackHas,Stack.prototype.set=stackSet;var objectProto$2=Object.prototype,propertyIsEnumerable=objectProto$2.propertyIsEnumerable,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbols=nativeGetSymbols?function(e){return null==e?[]:(e=Object(e),arrayFilter(nativeGetSymbols(e),function(t){return propertyIsEnumerable.call(e,t)}))}:stubArray;function baseGetAllKeys(e,t,a){var r=t(e);return isObject.isArray(e)?r:arrayPush(r,a(e))}function getAllKeys(e){return baseGetAllKeys(e,keys,getSymbols)}var DataView=getNative(isObject.root,"DataView"),Promise$1=getNative(isObject.root,"Promise"),Set$1=getNative(isObject.root,"Set"),mapTag$1="[object Map]",objectTag$1="[object Object]",promiseTag="[object Promise]",setTag$1="[object Set]",weakMapTag="[object WeakMap]",dataViewTag$1="[object DataView]",dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap),getTag=isObject.baseGetTag;(DataView&&getTag(new DataView(new ArrayBuffer(1)))!=dataViewTag$1||Map$1&&getTag(new Map$1)!=mapTag$1||Promise$1&&getTag(Promise$1.resolve())!=promiseTag||Set$1&&getTag(new Set$1)!=setTag$1||WeakMap&&getTag(new WeakMap)!=weakMapTag)&&(getTag=function(e){var t=isObject.baseGetTag(e),a=t==objectTag$1?e.constructor:void 0,r=a?toSource(a):"";if(r)switch(r){case dataViewCtorString:return dataViewTag$1;case mapCtorString:return mapTag$1;case promiseCtorString:return promiseTag;case setCtorString:return setTag$1;case weakMapCtorString:return weakMapTag}return t});var Uint8Array=isObject.root.Uint8Array,HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd(e){return this.__data__.set(e,HASH_UNDEFINED),this}function setCacheHas(e){return this.__data__.has(e)}function SetCache(e){var t=-1,a=null==e?0:e.length;for(this.__data__=new MapCache;++t<a;)this.add(e[t])}function arraySome(e,t){for(var a=-1,r=null==e?0:e.length;++a<r;)if(t(e[a],a,e))return!0;return!1}function cacheHas(e,t){return e.has(t)}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd,SetCache.prototype.has=setCacheHas;var COMPARE_PARTIAL_FLAG$3=1,COMPARE_UNORDERED_FLAG$1=2;function equalArrays(e,t,a,r,o,i){var s=a&COMPARE_PARTIAL_FLAG$3,n=e.length,l=t.length;if(n!=l&&!(s&&l>n))return!1;var c=i.get(e),h=i.get(t);if(c&&h)return c==t&&h==e;var d=-1,u=!0,b=a&COMPARE_UNORDERED_FLAG$1?new SetCache:void 0;for(i.set(e,t),i.set(t,e);++d<n;){var y=e[d],g=t[d];if(r)var p=s?r(g,y,d,t,e,i):r(y,g,d,e,t,i);if(void 0!==p){if(p)continue;u=!1;break}if(b){if(!arraySome(t,function(e,t){if(!cacheHas(b,t)&&(y===e||o(y,e,a,r,i)))return b.push(t)})){u=!1;break}}else if(y!==g&&!o(y,g,a,r,i)){u=!1;break}}return i.delete(e),i.delete(t),u}function mapToArray(e){var t=-1,a=Array(e.size);return e.forEach(function(e,r){a[++t]=[r,e]}),a}function setToArray(e){var t=-1,a=Array(e.size);return e.forEach(function(e){a[++t]=e}),a}var COMPARE_PARTIAL_FLAG$2=1,COMPARE_UNORDERED_FLAG=2,boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",symbolProto=isObject.Symbol?isObject.Symbol.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag(e,t,a,r,o,i,s){switch(a){case dataViewTag:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case arrayBufferTag:return!(e.byteLength!=t.byteLength||!i(new Uint8Array(e),new Uint8Array(t)));case boolTag:case dateTag:case numberTag:return eq(+e,+t);case errorTag:return e.name==t.name&&e.message==t.message;case regexpTag:case stringTag:return e==t+"";case mapTag:var n=mapToArray;case setTag:var l=r&COMPARE_PARTIAL_FLAG$2;if(n||(n=setToArray),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;r|=COMPARE_UNORDERED_FLAG,s.set(e,t);var h=equalArrays(n(e),n(t),r,o,i,s);return s.delete(e),h;case symbolTag:if(symbolValueOf)return symbolValueOf.call(e)==symbolValueOf.call(t)}return!1}var COMPARE_PARTIAL_FLAG$1=1,objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty;function equalObjects(e,t,a,r,o,i){var s=a&COMPARE_PARTIAL_FLAG$1,n=getAllKeys(e),l=n.length;if(l!=getAllKeys(t).length&&!s)return!1;for(var c=l;c--;){var h=n[c];if(!(s?h in t:hasOwnProperty$1.call(t,h)))return!1}var d=i.get(e),u=i.get(t);if(d&&u)return d==t&&u==e;var b=!0;i.set(e,t),i.set(t,e);for(var y=s;++c<l;){var g=e[h=n[c]],p=t[h];if(r)var _=s?r(p,g,h,t,e,i):r(g,p,h,e,t,i);if(!(void 0===_?g===p||o(g,p,a,r,i):_)){b=!1;break}y||(y="constructor"==h)}if(b&&!y){var f=e.constructor,v=t.constructor;f==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof f&&f instanceof f&&"function"==typeof v&&v instanceof v||(b=!1)}return i.delete(e),i.delete(t),b}var COMPARE_PARTIAL_FLAG=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty;function baseIsEqualDeep(e,t,a,r,o,i){var s=isObject.isArray(e),n=isObject.isArray(t),l=s?arrayTag:getTag(e),c=n?arrayTag:getTag(t),h=(l=l==argsTag?objectTag:l)==objectTag,d=(c=c==argsTag?objectTag:c)==objectTag,u=l==c;if(u&&isBuffer(e)){if(!isBuffer(t))return!1;s=!0,h=!1}if(u&&!h)return i||(i=new Stack),s||isTypedArray(e)?equalArrays(e,t,a,r,o,i):equalByTag(e,t,l,a,r,o,i);if(!(a&COMPARE_PARTIAL_FLAG)){var b=h&&hasOwnProperty.call(e,"__wrapped__"),y=d&&hasOwnProperty.call(t,"__wrapped__");if(b||y){var g=b?e.value():e,p=y?t.value():t;return i||(i=new Stack),o(g,p,a,r,i)}}return!!u&&(i||(i=new Stack),equalObjects(e,t,a,r,o,i))}function baseIsEqual(e,t,a,r,o){return e===t||(null==e||null==t||!isObject.isObjectLike(e)&&!isObject.isObjectLike(t)?e!=e&&t!=t:baseIsEqualDeep(e,t,a,r,baseIsEqual,o))}function isEqual(e,t){return baseIsEqual(e,t)}const HEADER_CELL_WIDTH_VALIDATOR=/^\d+(\.\d+)?([a-z]+|%)?$/,validateMinWidth=(e,t,a)=>{common.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){index.registerInstance(this,e),this.translateNoEntries=i18n.translate("kol-no-entries"),this.state={_data:[],_headerCells:{horizontal:[],vertical:[]},_label:"",_minWidth:"auto",_hasSettingsMenu:!1},this.horizontal=!0,this.cellsToRenderTimeouts=new Map,this.dataToKeyMap=new Map,this.checkboxRefs=[],this.translateSort=i18n.translate("kol-sort"),this.tableDivElementHasScrollbar=!1,this.renderTableRow=(e,t,a,r=!1)=>{var o,i;let s=String(t);return this.horizontal&&(null===(o=e[0])||void 0===o?void 0:o.data)&&(s=null!==(i=this.getDataKey(e[0].data))&&void 0!==i?i:s),index.h("tr",{class:clsx.clsx("kol-table__row",{"kol-table__row--body":!r,"kol-table__row--footer":r}),key:`row-${s}`},this.renderSelectionCell(e,t),e.map((e,r)=>this.renderTableCell(e,t,r,a)))},this.renderTableCell=(e,t,a,r)=>{const o=this.getColumnSettings(e);if(o&&!o.visible)return"";let i=`${t}-${a}-${e.label}`;if(e.data){const r=this.getDataKey(e.data);i=r?`${r}-${this.horizontal?a:t}`:i}if(e.headerCell)return this.renderHeadingCell(e,t,a,r);{const t="function"!=typeof e.render&&e.label===this.translateNoEntries;return index.h("td",{key:`cell-${i}`,class:clsx.clsx("kol-table__cell kol-table__cell--body",{[`kol-table__cell--align-${e.textAlign}`]:e.textAlign}),"aria-atomic":t?"false":void 0,"aria-live":t?"polite":void 0,"aria-relevant":t?"text":void 0,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{textAlign:e.textAlign,width:(null==o?void 0:o.width)?`${o.width}ch`:e.width},ref:"function"==typeof e.render?t=>{this.cellRender(e,t)}:void 0},"function"!=typeof e.render?e.label:"")}}}validateHasSettingsMenu(e){tableSettings.validateHasSettingsMenu(this,e)}validateData(e){tableSettings.validateTableData(this,e,{beforePatch:e=>{this.updateDataToKeyMap(e)}})}validateDataFoot(e){tableSettings.validateTableDataFoot(this,e)}validateHeaderCells(e){validateTableHeaderCells(this,e),isEqual(this.previousHeaderCells,this.state._headerCells)||this.initializeTableSettings(),this.previousHeaderCells=this.state._headerCells}validateLabel(e){label.validateLabel(this,e,{required:!0})}validateMinWidth(e){validateMinWidth(this,e)}validateOn(e){tableSettings.validateTableCallbacks(this,e)}validateSelection(e){tableSettings.validateTableSelection(this,e)}validateTableSettings(e){tableSettings.validateTableSettings(this,this.normalizeTableSettings(e))}normalizeTableSettings(e){if(!e||"object"!=typeof e)return e;const t=Array.isArray(e.columns)?e.columns:[];return Object.assign(Object.assign({},e),{columns:t.map(({hidable:e,key:t,label:a,resizable:r,sortable:o,visible:i,width:s})=>({hidable:!1!==e,key:null!=t?t:dev_utils.nonce(),label:a,resizable:!1!==r,sortable:!1!==o,visible:!1!==i,width:s}))})}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 r=this.checkboxRefs.indexOf(a);r>-1&&(e.preventDefault(),"ArrowDown"===e.key?(r=(r+1)%this.checkboxRefs.length,this.checkboxRefs[r].focus()):"ArrowUp"===e.key&&(e.preventDefault(),r=(r+this.checkboxRefs.length-1)%this.checkboxRefs.length,this.checkboxRefs[r].focus()))}}componentDidRender(){this.checkDivElementScrollbar()}componentDidLoad(){this.tableDivElement&&ResizeObserver&&(this.tableDivElementResizeObserver=new ResizeObserver(this.checkDivElementScrollbar.bind(this)),this.tableDivElementResizeObserver.observe(this.tableDivElement))}handleSettingsChange(e){common.setState(this,"_tableSettings",e.detail)}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,dev_utils.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 r=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}),r<t&&(r=t)}),0===r?r=t.length:r-=(null===(a=this.state._dataFoot)||void 0===a?void 0:a.length)||0,r}getThePrimaryHeadersWithKeyOrRenderFunction(e){const t=[];return e.forEach(e=>{e.forEach(e=>{"string"!=typeof e.key&&"function"!=typeof e.render||t.push(e)})}),t}getPrimaryHeaders(e){var t,a;let r=this.getThePrimaryHeadersWithKeyOrRenderFunction(null!==(t=e.horizontal)&&void 0!==t?t:[]);return this.horizontal=!0,0===r.length&&(r=this.getThePrimaryHeadersWithKeyOrRenderFunction(null!==(a=e.vertical)&&void 0!==a?a:[]),r.length>0&&(this.horizontal=!1)),r}getColumnPositionMap(){var e;const t=new Map;return null===(e=this.state._tableSettings)||void 0===e||e.columns.forEach((e,a)=>{t.set(e.key,a)}),t}sortByColumnPosition(e){const t=this.getColumnPositionMap();return e.map((e,t)=>({column:e,index:t})).sort((e,a)=>{var r,o,i,s;const n=null!==(o=t.get(null!==(r=e.column.key)&&void 0!==r?r:""))&&void 0!==o?o:Number.MAX_SAFE_INTEGER,l=null!==(s=t.get(null!==(i=a.column.key)&&void 0!==i?i:""))&&void 0!==s?s:Number.MAX_SAFE_INTEGER;return n!==l?n-l:e.index-a.index}).map(({column:e})=>e)}createDataField(e,t,a){var r;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 o=this.getPrimaryHeaders(t),i=this.getNumberOfCols(t.horizontal,e);let s=this.getNumberOfRows(t.vertical,e),n=0;a&&(n=s,s+=(null===(r=this.state._dataFoot)||void 0===r?void 0:r.length)||0);const l=[],c=[],h=[];t.vertical.forEach((e,t)=>{c[t]=0,h[t]=[]});const d=this.sortByColumnPosition(o);for(let r=n;r<s;r++){const o=[];t.vertical.forEach((e,t)=>{let a=0;if(h[t].forEach(e=>a+=e),a<=r){const i=e[r-a+c[t]];if("object"==typeof i){o.push(Object.assign(Object.assign({},i),{headerCell:!0,data:{}}));let e=1;if("number"==typeof i.rowSpan&&i.rowSpan>1&&(e=i.rowSpan),h[t].push(e),"number"==typeof i.colSpan&&i.colSpan>1)for(let a=1;a<i.colSpan;a++)h[t+a].push(e);c[t]++}}});for(let t=0;t<i;t++)if(!0===this.horizontal){const i=a&&this.state._dataFoot?this.state._dataFoot[r-n]:e[r];"object"!=typeof d[t]||null===d[t]||"object"!=typeof i||null===i||"string"!=typeof d[t].key&&"function"!=typeof d[t].render||o.push(Object.assign(Object.assign({},d[t]),{colSpan:void 0,data:i,label:i[d[t].key],rowSpan:void 0}))}else"object"!=typeof d[r]||null===d[r]||"object"!=typeof e[t]||null===e[t]||"string"!=typeof d[r].key&&"function"!=typeof d[r].render||o.push(Object.assign(Object.assign({},d[r]),{colSpan:void 0,data:e[t],label:e[t][d[r].key],rowSpan:void 0}));l.push(o)}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 r={colSpan:e,label:this.translateNoEntries,render:void 0,rowSpan:Math.max(a,1)};0===l.length?l.push([r]):l[0].push(r)}return l}handleSelectionChangeCallbackAndEvent(e,t){var a;"function"==typeof(null===(a=this.state._on)||void 0===a?void 0:a[keyboard.Callback.onSelectionChange])&&this.state._on[keyboard.Callback.onSelectionChange](e,t),this.host&&events.dispatchDomEvent(this.host,events.KolEvent.selectionChange,t)}initializeTableSettings(){if(this._tableSettings)return;const e=this.getPrimaryHeaders(this.state._headerCells);this.state._tableSettings||(this.state._tableSettings={columns:[]}),this.state._tableSettings.columns=e.filter(e=>e.key).map(e=>{var t;return{hidable:!1!==e.hidable,sortable:!1!==e.sortable,resizable:!1!==e.resizable,key:null!==(t=e.key)&&void 0!==t?t:dev_utils.nonce(),label:e.label,visible:!0}})}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),this.validateTableSettings(this._tableSettings),this.validateHasSettingsMenu(this._hasSettingsMenu)}renderSelectionCell(e,t){var a;const r=this.state._selection;if(!r)return"";const o=this.getSelectionKeyPropertyName(),i=null===(a=e[0])||void 0===a?void 0:a.data;if(!i)return"";const s=i[o],n=r.multiple||void 0===r.multiple,l=(()=>{const e=null==r?void 0:r.selectedKeys;return(void 0===e?[]:Array.isArray(e)?e:[e]).some(e=>String(e)===String(s))})(),c=(()=>{const e=null==r?void 0:r.disabledKeys;return(void 0===e?[]:Array.isArray(e)?e:[e]).some(e=>String(e)===String(s))})(),h=r.label(i),d={name:"selection",checked:l,disabled:c,id:String(s),"aria-label":h};return index.h("td",{key:`tbody-${t}-selection`,class:"kol-table__cell kol-table__cell--selection"},index.h("div",{class:clsx.clsx("kol-table__selection",{"kol-table__selection--checked":l})},n?index.h("label",{class:clsx.clsx("kol-table__selection-label",{"kol-table__selection-label--disabled":c})},index.h(componentNames.KolIconTag,{class:"kol-table__selection-icon",_icons:"codicon "+(l?"codicon-check":""),_label:""}),index.h("input",Object.assign({class:clsx.clsx("kol-table__selection-input kol-table__selection-input--checkbox"),ref:e=>e&&this.checkboxRefs.push(e)},d,{type:"checkbox",onInput:e=>{const t=(()=>{const e=null==r?void 0:r.selectedKeys;return void 0===e?[]:Array.isArray(e)?e:[e]})(),a=l?t.filter(e=>String(e)!==String(s)):[...t,s];this.handleSelectionChangeCallbackAndEvent(e,null!=a?a:[])}}))):index.h("label",{class:"kol-table__selection-label"},index.h("input",Object.assign({class:clsx.clsx("kol-table__selection-input kol-table__selection-input--radio")},d,{type:"radio",onInput:e=>{this.handleSelectionChangeCallbackAndEvent(e,s)}}))),index.h(componentNames.KolTooltipWcTag,{"aria-hidden":"true",class:"kol-table__selection-input-tooltip",_align:"right",_id:`${s}-label`,_label:h})))}getColumnSettings(e){var t;return null===(t=this.state._tableSettings)||void 0===t?void 0:t.columns.find(t=>t.key===e.key)}getSelectionKeyPropertyName(){var e,t;return null!==(t=null===(e=this.state._selection)||void 0===e?void 0:e.keyPropertyName)&&void 0!==t?t:"id"}getDataWithSelectionEnabled(){const e=this.getSelectionKeyPropertyName();return this.state._data.filter(t=>{var a;const r=null===(a=this.state._selection)||void 0===a?void 0:a.disabledKeys;return!(void 0===r?[]:Array.isArray(r)?r:[r]).some(a=>String(a)===String(t[e]))})}getSelectedKeysWithoutDisabledKeys(){const e=(()=>{var e;const t=null===(e=this.state._selection)||void 0===e?void 0:e.selectedKeys;return void 0===t?[]:Array.isArray(t)?t:[t]})(),t=(()=>{var e;const t=null===(e=this.state._selection)||void 0===e?void 0:e.disabledKeys;return void 0===t?[]:Array.isArray(t)?t:[t]})();return e.filter(e=>!t.some(t=>String(t)===String(e)))}getSelectedKeysWithDisabledKeysOnly(){const e=(()=>{var e;const t=null===(e=this.state._selection)||void 0===e?void 0:e.selectedKeys;return void 0===t?[]:Array.isArray(t)?t:[t]})(),t=(()=>{var e;const t=null===(e=this.state._selection)||void 0===e?void 0:e.disabledKeys;return void 0===t?[]:Array.isArray(t)?t:[t]})();return e.filter(e=>t.some(t=>String(t)===String(e)))}getRevertedSelection(e){var t;const a=this.getSelectionKeyPropertyName(),r=null!==(t=this.getSelectedKeysWithDisabledKeysOnly())&&void 0!==t?t:[];return e&&r.push(...this.getDataWithSelectionEnabled().map(e=>null==e?void 0:e[a])),r}getTableMinWidth(){var e,t;const a=null!==(t=null===(e=this.state._tableSettings)||void 0===e?void 0:e.columns.filter(e=>e.visible).reduce((e,t)=>{var a;return e+(null!==(a=t.width)&&void 0!==a?a:0)},0))&&void 0!==t?t:0;return"auto"===this.state._minWidth?`${a}ch`:`max(${this.state._minWidth}, ${a}ch)`}renderHeadingSelectionCell(){var e,t;const a=this.state._selection;if(!a)return index.h("th",{class:"kol-table__cell kol-table__cell--header",key:"thead-0"});if(!1===a.multiple)return index.h("td",{key:"thead-0-selection",class:"kol-table__cell kol-table__cell--header kol-table__cell--selection"});const r=null!==(t=null===(e=this.getSelectedKeysWithoutDisabledKeys())||void 0===e?void 0:e.length)&&void 0!==t?t:0,o=r===this.getDataWithSelectionEnabled().length,i=0!==r&&!o;let s="kol-table-selection-indeterminate";o&&!i&&(s="kol-table-selection-none"),0===r&&(s="kol-table-selection-all");const n=i18n.translate(s);return index.h("th",{key:"thead-0-selection",class:"kol-table__cell kol-table__cell--header kol-table__cell--selection"},index.h("div",{class:clsx.clsx("kol-table__selection",{"kol-table__selection--indeterminate":i,"kol-table__selection--checked":o})},index.h("label",{class:"kol-table__selection-label"},index.h(componentNames.KolIconTag,{class:"kol-table__selection-icon",_icons:"codicon "+(i?"codicon-remove":o?"codicon-check":""),_label:""}),index.h("input",{class:clsx.clsx("kol-table__selection-input kol-table__selection-input--checkbox"),"data-testid":"selection-checkbox-all",ref:e=>e&&this.checkboxRefs.push(e),name:"selection",checked:o&&!i,indeterminate:i,"aria-label":n,type:"checkbox",onInput:e=>{this.handleSelectionChangeCallbackAndEvent(e,this.getRevertedSelection(!o))}})),index.h(componentNames.KolTooltipWcTag,{"aria-hidden":"true",class:"kol-table__selection-input-tooltip",_align:"right",_id:`${s}-label`,_label:n})))}renderHeaderTdCell(){return index.h(index.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)&&index.h("td",{"aria-hidden":"true",colSpan:this.state._headerCells.vertical.length,rowSpan:this.state._headerCells.horizontal.length}))}renderHeadingCell(e,t,a,r){const o=this.getColumnSettings(e);if(o&&!o.visible)return"";const i=!1!==(null==o?void 0:o.sortable),s="string"==typeof e.sortDirection,n=i&&s;let l="none",c="codicon codicon-fold";if(n&&e.sortDirection)switch(e.sortDirection){case"ASC":c="codicon codicon-chevron-up",l="ascending";break;case"DESC":c="codicon codicon-chevron-down",l="descending";break;default:l="none"}const h=r?"row":"number"==typeof e.colSpan&&e.colSpan>1?"colgroup":"col";return index.h("th",{key:`${t}-${a}-${e.label}`,class:clsx.clsx("kol-table__cell kol-table__cell--header",{[`kol-table__cell--align-${e.textAlign}`]:e.textAlign,[`kol-table__cell--${l}`]:l}),scope:h,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{width:(null==o?void 0:o.width)?`${o.width}ch`:e.width},"aria-sort":l,"data-sort":n&&e.sortDirection?`sort-${e.sortDirection}`:void 0},n&&e.sortDirection?index.h(componentNames.KolButtonWcTag,{class:"kol-table__sort-button",exportparts:"icon",_icons:{right:c},_label:e.label,_ariaDescription:this.translateSort,_on:{onClick:t=>{var a;"function"==typeof(null===(a=this.state._on)||void 0===a?void 0:a.onSort)&&e.key&&e.sortDirection&&this.state._on.onSort(t,{key:e.key,currentSortDirection:e.sortDirection}),this.host&&events.dispatchDomEvent(this.host,events.KolEvent.sort,{key:e.key,currentSortDirection:e.sortDirection})}}}):e.label)}renderSpacer(e,t){var a,r;const o=(null===(a=this.state._headerCells.vertical)||void 0===a?void 0:a.length)||0,i=null===(r=null==t?void 0:t[0])||void 0===r?void 0:r.reduce((e,t)=>e+(t.colSpan||1),0),s=this.state._selection?1:0;return index.h("tr",{"aria-hidden":"true",class:clsx.clsx("kol-table__spacer",`kol-table__spacer--${e}`)},index.h("td",{class:clsx.clsx(`kol-table__spacer-line kol-table__spacer-line--${e}`),colSpan:o+i+s}))}renderFoot(){if(!this.state._dataFoot||0===this.state._dataFoot.length)return null;const e=this.createDataField(this.state._dataFoot,this.state._headerCells,!0);return index.h("tfoot",{class:"kol-table__footer"},[this.renderSpacer("foot",e),e.map((e,t)=>this.renderTableRow(e,t,!0,!0))])}render(){var e;const t=this.createDataField(this.state._data,this.state._headerCells);this.checkboxRefs=[];const a=null===(e=this.state._headerCells.horizontal)||void 0===e?void 0:e.map(e=>this.sortByColumnPosition(e));return index.h("div",{key:"a66eb9f22e8267d1bfcc00b2429b8234e07beb51",class:"kol-table"},this.state._hasSettingsMenu&&index.h(componentNames.KolTableSettingsWcTag,{key:"8c5bfcc3f01813773d07912fcf2fa78455efac06",_tableSettings:this.state._tableSettings}),index.h("div",{key:"6f9ac777bae4c27c80052aeeae5678ddff56a6bc",ref:e=>this.tableDivElement=e,class:"kol-table__scroll-container",tabindex:this.tableDivElementHasScrollbar?"-1":void 0},index.h("table",{key:"89710649cdcd7fcca523656de8f8b13fc3d9509f",class:"kol-table__table",style:{minWidth:this.getTableMinWidth()}},index.h("caption",{key:"0f5550f8377daed2043a18de8c2cdb5b6e45f554",class:"kol-table__focus-element kol-table__caption",id:"caption",tabindex:this.tableDivElementHasScrollbar?"0":void 0},this.state._label),Array.isArray(a)&&index.h("thead",{key:"83577b101b26b8ee80bc81ccd12526fb78f576c4",class:"kol-table__head"},[a.map((e,t)=>index.h("tr",{class:"kol-table__head-row",key:`thead-${t}`},this.state._selection&&this.renderHeadingSelectionCell(),0===t&&this.renderHeaderTdCell(),Array.isArray(e)&&e.map((e,a)=>this.renderHeadingCell(e,t,a,!1)))),this.renderSpacer("head",a)]),index.h("tbody",{key:"6fe763adb26ca11ebea14f035200df42c970d5cd",class:"kol-table__body"},t.map((e,t)=>this.renderTableRow(e,t,!0))),this.renderFoot())))}get host(){return index.getElement(this)}static get watchers(){return{_hasSettingsMenu:["validateHasSettingsMenu"],_data:["validateData"],_dataFoot:["validateDataFoot"],_headerCells:["validateHeaderCells"],_label:["validateLabel"],_minWidth:["validateMinWidth"],_on:["validateOn"],_selection:["validateSelection"],_tableSettings:["validateTableSettings"]}}};exports.kol_table_stateless_wc=KolTableStateless;
4
+ "use strict";var index=require("./index-CUwAAV9q.js"),clsx=require("./clsx-CkZlkaek.js"),componentNames=require("./component-names-CuI-0Pbo.js"),i18n=require("./i18n-DNWGj4j8.js"),common=require("./common-Cd2qH809.js"),tableSettings=require("./table-settings-Ct3SRuhX.js"),label=require("./label-Nicf9N_T.js"),keyboard=require("./keyboard-C096g_BV.js"),dev_utils=require("./dev.utils-7DjklDXI.js"),events=require("./events-cX8h6I3p.js"),isObject=require("./isObject-DMA85Fq4.js");require("./i18n-BnIFsVIa.js");const validateTableHeaderCells=(e,t)=>{common.emptyStringByArrayHandler(t,()=>{common.objectObjectHandler(t,()=>{try{t=common.parseJson(t)}catch(e){}common.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)})})};var asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction(e){if(!isObject.isObject(e))return!1;var t=isObject.baseGetTag(e);return t==funcTag$1||t==genTag||t==asyncTag||t==proxyTag}var coreJsData=isObject.root["__core-js_shared__"],maskSrcKey=function(){var e=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function isMasked(e){return!!maskSrcKey&&maskSrcKey in e}var funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString;function toSource(e){if(null!=e){try{return funcToString$1.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto$9=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$7=objectProto$9.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$7).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(e){return!(!isObject.isObject(e)||isMasked(e))&&(isFunction(e)?reIsNative:reIsHostCtor).test(toSource(e))}function getValue(e,t){return null==e?void 0:e[t]}function getNative(e,t){var a=getValue(e,t);return baseIsNative(a)?a:void 0}var WeakMap=getNative(isObject.root,"WeakMap"),MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(e,t){var a=typeof e;return!!(t=null==t?MAX_SAFE_INTEGER$1:t)&&("number"==a||"symbol"!=a&&reIsUint.test(e))&&e>-1&&e%1==0&&e<t}function eq(e,t){return e===t||e!=e&&t!=t}var MAX_SAFE_INTEGER=9007199254740991;function isLength(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=MAX_SAFE_INTEGER}function isArrayLike(e){return null!=e&&isLength(e.length)&&!isFunction(e)}var objectProto$8=Object.prototype;function isPrototype(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||objectProto$8)}function baseTimes(e,t){for(var a=-1,r=Array(e);++a<e;)r[a]=t(a);return r}var argsTag$2="[object Arguments]";function baseIsArguments(e){return isObject.isObjectLike(e)&&isObject.baseGetTag(e)==argsTag$2}var objectProto$7=Object.prototype,hasOwnProperty$6=objectProto$7.hasOwnProperty,propertyIsEnumerable$1=objectProto$7.propertyIsEnumerable,isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObject.isObjectLike(e)&&hasOwnProperty$6.call(e,"callee")&&!propertyIsEnumerable$1.call(e,"callee")};function stubFalse(){return!1}var freeExports$1="object"==typeof exports&&exports&&!exports.nodeType&&exports,freeModule$1=freeExports$1&&"object"==typeof module&&module&&!module.nodeType&&module,moduleExports$1=freeModule$1&&freeModule$1.exports===freeExports$1,Buffer=moduleExports$1?isObject.root.Buffer:void 0,nativeIsBuffer=Buffer?Buffer.isBuffer:void 0,isBuffer=nativeIsBuffer||stubFalse,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",funcTag="[object Function]",mapTag$2="[object Map]",numberTag$1="[object Number]",objectTag$2="[object Object]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$1="[object String]",weakMapTag$1="[object WeakMap]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$2="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",typedArrayTags={};function baseIsTypedArray(e){return isObject.isObjectLike(e)&&isLength(e.length)&&!!typedArrayTags[isObject.baseGetTag(e)]}function baseUnary(e){return function(t){return e(t)}}typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0,typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag$1]=typedArrayTags[boolTag$1]=typedArrayTags[dataViewTag$2]=typedArrayTags[dateTag$1]=typedArrayTags[errorTag$1]=typedArrayTags[funcTag]=typedArrayTags[mapTag$2]=typedArrayTags[numberTag$1]=typedArrayTags[objectTag$2]=typedArrayTags[regexpTag$1]=typedArrayTags[setTag$2]=typedArrayTags[stringTag$1]=typedArrayTags[weakMapTag$1]=!1;var freeExports="object"==typeof exports&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&"object"==typeof module&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,freeProcess=moduleExports&&isObject.freeGlobal.process,nodeUtil=function(){try{var e=freeModule&&freeModule.require&&freeModule.require("util").types;return e||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch(e){}}(),nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,objectProto$6=Object.prototype,hasOwnProperty$5=objectProto$6.hasOwnProperty;function arrayLikeKeys(e,t){var a=isObject.isArray(e),r=!a&&isArguments(e),o=!a&&!r&&isBuffer(e),i=!a&&!r&&!o&&isTypedArray(e),s=a||r||o||i,n=s?baseTimes(e.length,String):[],l=n.length;for(var c in e)!hasOwnProperty$5.call(e,c)||s&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||isIndex(c,l))||n.push(c);return n}function overArg(e,t){return function(a){return e(t(a))}}var nativeKeys=overArg(Object.keys,Object),objectProto$5=Object.prototype,hasOwnProperty$4=objectProto$5.hasOwnProperty;function baseKeys(e){if(!isPrototype(e))return nativeKeys(e);var t=[];for(var a in Object(e))hasOwnProperty$4.call(e,a)&&"constructor"!=a&&t.push(a);return t}function keys(e){return isArrayLike(e)?arrayLikeKeys(e):baseKeys(e)}var nativeCreate=getNative(Object,"create");function hashClear(){this.__data__=nativeCreate?nativeCreate(null):{},this.size=0}function hashDelete(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$4=Object.prototype,hasOwnProperty$3=objectProto$4.hasOwnProperty;function hashGet(e){var t=this.__data__;if(nativeCreate){var a=t[e];return a===HASH_UNDEFINED$2?void 0:a}return hasOwnProperty$3.call(t,e)?t[e]:void 0}var objectProto$3=Object.prototype,hasOwnProperty$2=objectProto$3.hasOwnProperty;function hashHas(e){var t=this.__data__;return nativeCreate?void 0!==t[e]:hasOwnProperty$2.call(t,e)}var HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet(e,t){var a=this.__data__;return this.size+=this.has(e)?0:1,a[e]=nativeCreate&&void 0===t?HASH_UNDEFINED$1:t,this}function Hash(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}function listCacheClear(){this.__data__=[],this.size=0}function assocIndexOf(e,t){for(var a=e.length;a--;)if(eq(e[a][0],t))return a;return-1}Hash.prototype.clear=hashClear,Hash.prototype.delete=hashDelete,Hash.prototype.get=hashGet,Hash.prototype.has=hashHas,Hash.prototype.set=hashSet;var arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete(e){var t=this.__data__,a=assocIndexOf(t,e);return!(a<0)&&(a==t.length-1?t.pop():splice.call(t,a,1),--this.size,!0)}function listCacheGet(e){var t=this.__data__,a=assocIndexOf(t,e);return a<0?void 0:t[a][1]}function listCacheHas(e){return assocIndexOf(this.__data__,e)>-1}function listCacheSet(e,t){var a=this.__data__,r=assocIndexOf(a,e);return r<0?(++this.size,a.push([e,t])):a[r][1]=t,this}function ListCache(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}ListCache.prototype.clear=listCacheClear,ListCache.prototype.delete=listCacheDelete,ListCache.prototype.get=listCacheGet,ListCache.prototype.has=listCacheHas,ListCache.prototype.set=listCacheSet;var Map$1=getNative(isObject.root,"Map");function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Map$1||ListCache),string:new Hash}}function isKeyable(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function getMapData(e,t){var a=e.__data__;return isKeyable(t)?a["string"==typeof t?"string":"hash"]:a.map}function mapCacheDelete(e){var t=getMapData(this,e).delete(e);return this.size-=t?1:0,t}function mapCacheGet(e){return getMapData(this,e).get(e)}function mapCacheHas(e){return getMapData(this,e).has(e)}function mapCacheSet(e,t){var a=getMapData(this,e),r=a.size;return a.set(e,t),this.size+=a.size==r?0:1,this}function MapCache(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}function arrayPush(e,t){for(var a=-1,r=t.length,o=e.length;++a<r;)e[o+a]=t[a];return e}function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete(e){var t=this.__data__,a=t.delete(e);return this.size=t.size,a}function stackGet(e){return this.__data__.get(e)}function stackHas(e){return this.__data__.has(e)}MapCache.prototype.clear=mapCacheClear,MapCache.prototype.delete=mapCacheDelete,MapCache.prototype.get=mapCacheGet,MapCache.prototype.has=mapCacheHas,MapCache.prototype.set=mapCacheSet;var LARGE_ARRAY_SIZE=200;function stackSet(e,t){var a=this.__data__;if(a instanceof ListCache){var r=a.__data__;if(!Map$1||r.length<LARGE_ARRAY_SIZE-1)return r.push([e,t]),this.size=++a.size,this;a=this.__data__=new MapCache(r)}return a.set(e,t),this.size=a.size,this}function Stack(e){var t=this.__data__=new ListCache(e);this.size=t.size}function arrayFilter(e,t){for(var a=-1,r=null==e?0:e.length,o=0,i=[];++a<r;){var s=e[a];t(s,a,e)&&(i[o++]=s)}return i}function stubArray(){return[]}Stack.prototype.clear=stackClear,Stack.prototype.delete=stackDelete,Stack.prototype.get=stackGet,Stack.prototype.has=stackHas,Stack.prototype.set=stackSet;var objectProto$2=Object.prototype,propertyIsEnumerable=objectProto$2.propertyIsEnumerable,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbols=nativeGetSymbols?function(e){return null==e?[]:(e=Object(e),arrayFilter(nativeGetSymbols(e),function(t){return propertyIsEnumerable.call(e,t)}))}:stubArray;function baseGetAllKeys(e,t,a){var r=t(e);return isObject.isArray(e)?r:arrayPush(r,a(e))}function getAllKeys(e){return baseGetAllKeys(e,keys,getSymbols)}var DataView=getNative(isObject.root,"DataView"),Promise$1=getNative(isObject.root,"Promise"),Set$1=getNative(isObject.root,"Set"),mapTag$1="[object Map]",objectTag$1="[object Object]",promiseTag="[object Promise]",setTag$1="[object Set]",weakMapTag="[object WeakMap]",dataViewTag$1="[object DataView]",dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap),getTag=isObject.baseGetTag;(DataView&&getTag(new DataView(new ArrayBuffer(1)))!=dataViewTag$1||Map$1&&getTag(new Map$1)!=mapTag$1||Promise$1&&getTag(Promise$1.resolve())!=promiseTag||Set$1&&getTag(new Set$1)!=setTag$1||WeakMap&&getTag(new WeakMap)!=weakMapTag)&&(getTag=function(e){var t=isObject.baseGetTag(e),a=t==objectTag$1?e.constructor:void 0,r=a?toSource(a):"";if(r)switch(r){case dataViewCtorString:return dataViewTag$1;case mapCtorString:return mapTag$1;case promiseCtorString:return promiseTag;case setCtorString:return setTag$1;case weakMapCtorString:return weakMapTag}return t});var Uint8Array=isObject.root.Uint8Array,HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd(e){return this.__data__.set(e,HASH_UNDEFINED),this}function setCacheHas(e){return this.__data__.has(e)}function SetCache(e){var t=-1,a=null==e?0:e.length;for(this.__data__=new MapCache;++t<a;)this.add(e[t])}function arraySome(e,t){for(var a=-1,r=null==e?0:e.length;++a<r;)if(t(e[a],a,e))return!0;return!1}function cacheHas(e,t){return e.has(t)}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd,SetCache.prototype.has=setCacheHas;var COMPARE_PARTIAL_FLAG$3=1,COMPARE_UNORDERED_FLAG$1=2;function equalArrays(e,t,a,r,o,i){var s=a&COMPARE_PARTIAL_FLAG$3,n=e.length,l=t.length;if(n!=l&&!(s&&l>n))return!1;var c=i.get(e),h=i.get(t);if(c&&h)return c==t&&h==e;var d=-1,u=!0,b=a&COMPARE_UNORDERED_FLAG$1?new SetCache:void 0;for(i.set(e,t),i.set(t,e);++d<n;){var y=e[d],p=t[d];if(r)var g=s?r(p,y,d,t,e,i):r(y,p,d,e,t,i);if(void 0!==g){if(g)continue;u=!1;break}if(b){if(!arraySome(t,function(e,t){if(!cacheHas(b,t)&&(y===e||o(y,e,a,r,i)))return b.push(t)})){u=!1;break}}else if(y!==p&&!o(y,p,a,r,i)){u=!1;break}}return i.delete(e),i.delete(t),u}function mapToArray(e){var t=-1,a=Array(e.size);return e.forEach(function(e,r){a[++t]=[r,e]}),a}function setToArray(e){var t=-1,a=Array(e.size);return e.forEach(function(e){a[++t]=e}),a}var COMPARE_PARTIAL_FLAG$2=1,COMPARE_UNORDERED_FLAG=2,boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",symbolProto=isObject.Symbol?isObject.Symbol.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag(e,t,a,r,o,i,s){switch(a){case dataViewTag:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case arrayBufferTag:return!(e.byteLength!=t.byteLength||!i(new Uint8Array(e),new Uint8Array(t)));case boolTag:case dateTag:case numberTag:return eq(+e,+t);case errorTag:return e.name==t.name&&e.message==t.message;case regexpTag:case stringTag:return e==t+"";case mapTag:var n=mapToArray;case setTag:var l=r&COMPARE_PARTIAL_FLAG$2;if(n||(n=setToArray),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;r|=COMPARE_UNORDERED_FLAG,s.set(e,t);var h=equalArrays(n(e),n(t),r,o,i,s);return s.delete(e),h;case symbolTag:if(symbolValueOf)return symbolValueOf.call(e)==symbolValueOf.call(t)}return!1}var COMPARE_PARTIAL_FLAG$1=1,objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty;function equalObjects(e,t,a,r,o,i){var s=a&COMPARE_PARTIAL_FLAG$1,n=getAllKeys(e),l=n.length;if(l!=getAllKeys(t).length&&!s)return!1;for(var c=l;c--;){var h=n[c];if(!(s?h in t:hasOwnProperty$1.call(t,h)))return!1}var d=i.get(e),u=i.get(t);if(d&&u)return d==t&&u==e;var b=!0;i.set(e,t),i.set(t,e);for(var y=s;++c<l;){var p=e[h=n[c]],g=t[h];if(r)var _=s?r(g,p,h,t,e,i):r(p,g,h,e,t,i);if(!(void 0===_?p===g||o(p,g,a,r,i):_)){b=!1;break}y||(y="constructor"==h)}if(b&&!y){var f=e.constructor,v=t.constructor;f==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof f&&f instanceof f&&"function"==typeof v&&v instanceof v||(b=!1)}return i.delete(e),i.delete(t),b}var COMPARE_PARTIAL_FLAG=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty;function baseIsEqualDeep(e,t,a,r,o,i){var s=isObject.isArray(e),n=isObject.isArray(t),l=s?arrayTag:getTag(e),c=n?arrayTag:getTag(t),h=(l=l==argsTag?objectTag:l)==objectTag,d=(c=c==argsTag?objectTag:c)==objectTag,u=l==c;if(u&&isBuffer(e)){if(!isBuffer(t))return!1;s=!0,h=!1}if(u&&!h)return i||(i=new Stack),s||isTypedArray(e)?equalArrays(e,t,a,r,o,i):equalByTag(e,t,l,a,r,o,i);if(!(a&COMPARE_PARTIAL_FLAG)){var b=h&&hasOwnProperty.call(e,"__wrapped__"),y=d&&hasOwnProperty.call(t,"__wrapped__");if(b||y){var p=b?e.value():e,g=y?t.value():t;return i||(i=new Stack),o(p,g,a,r,i)}}return!!u&&(i||(i=new Stack),equalObjects(e,t,a,r,o,i))}function baseIsEqual(e,t,a,r,o){return e===t||(null==e||null==t||!isObject.isObjectLike(e)&&!isObject.isObjectLike(t)?e!=e&&t!=t:baseIsEqualDeep(e,t,a,r,baseIsEqual,o))}function isEqual(e,t){return baseIsEqual(e,t)}const HEADER_CELL_WIDTH_VALIDATOR=/^\d+(\.\d+)?([a-z]+|%)?$/,validateMinWidth=(e,t,a)=>{common.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){index.registerInstance(this,e),this.translateNoEntries=i18n.translate("kol-no-entries"),this.state={_data:[],_headerCells:{horizontal:[],vertical:[]},_label:"",_minWidth:"auto",_hasSettingsMenu:!1},this.horizontal=!0,this.cellsToRenderTimeouts=new Map,this.dataToKeyMap=new Map,this.checkboxRefs=[],this.translateSort=i18n.translate("kol-sort"),this.tableDivElementHasScrollbar=!1,this.renderTableRow=(e,t,a,r=!1)=>{var o,i;let s=String(t);return this.horizontal&&(null===(o=e[0])||void 0===o?void 0:o.data)&&(s=null!==(i=this.getDataKey(e[0].data))&&void 0!==i?i:s),index.h("tr",{class:clsx.clsx("kol-table__row",{"kol-table__row--body":!r,"kol-table__row--footer":r}),key:`row-${s}`},this.renderSelectionCell(e,t),e.map((e,r)=>this.renderTableCell(e,t,r,a)))},this.renderTableCell=(e,t,a,r)=>{const o=this.getColumnSettings(e);if(o&&!o.visible)return"";let i=`${t}-${a}-${e.label}`;if(e.data){const r=this.getDataKey(e.data);i=r?`${r}-${this.horizontal?a:t}`:i}if(e.headerCell)return this.renderHeadingCell(e,t,a,r);{const t="function"!=typeof e.render&&e.label===this.translateNoEntries;return index.h("td",{key:`cell-${i}`,class:clsx.clsx("kol-table__cell kol-table__cell--body",{[`kol-table__cell--align-${e.textAlign}`]:e.textAlign}),"aria-atomic":t?"false":void 0,"aria-live":t?"polite":void 0,"aria-relevant":t?"text":void 0,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{textAlign:e.textAlign,width:(null==o?void 0:o.width)?`${o.width}ch`:e.width},ref:"function"==typeof e.render?t=>{this.cellRender(e,t)}:void 0},"function"!=typeof e.render?e.label:"")}}}validateHasSettingsMenu(e){tableSettings.validateHasSettingsMenu(this,e)}validateData(e){tableSettings.validateTableData(this,e,{beforePatch:e=>{this.updateDataToKeyMap(e)}})}validateDataFoot(e){tableSettings.validateTableDataFoot(this,e)}validateHeaderCells(e){validateTableHeaderCells(this,e),isEqual(this.previousHeaderCells,this.state._headerCells)||this.initializeTableSettings(),this.previousHeaderCells=this.state._headerCells}validateLabel(e){label.validateLabel(this,e,{required:!0})}validateMinWidth(e){validateMinWidth(this,e)}validateOn(e){tableSettings.validateTableCallbacks(this,e)}validateSelection(e){tableSettings.validateTableSelection(this,e)}validateTableSettings(e){tableSettings.validateTableSettings(this,this.normalizeTableSettings(e))}normalizeTableSettings(e){if(!e||"object"!=typeof e)return e;const t=Array.isArray(e.columns)?e.columns:[];return Object.assign(Object.assign({},e),{columns:t.map(({hidable:e,key:t,label:a,resizable:r,sortable:o,visible:i,width:s})=>({hidable:!1!==e,key:null!=t?t:dev_utils.nonce(),label:a,resizable:!1!==r,sortable:!1!==o,visible:!1!==i,width:s}))})}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 r=this.checkboxRefs.indexOf(a);r>-1&&(e.preventDefault(),"ArrowDown"===e.key?(r=(r+1)%this.checkboxRefs.length,this.checkboxRefs[r].focus()):"ArrowUp"===e.key&&(e.preventDefault(),r=(r+this.checkboxRefs.length-1)%this.checkboxRefs.length,this.checkboxRefs[r].focus()))}}componentDidRender(){this.checkDivElementScrollbar()}componentDidLoad(){this.tableDivElement&&ResizeObserver&&(this.tableDivElementResizeObserver=new ResizeObserver(this.checkDivElementScrollbar.bind(this)),this.tableDivElementResizeObserver.observe(this.tableDivElement))}handleSettingsChange(e){common.setState(this,"_tableSettings",e.detail)}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,dev_utils.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 r=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}),r<t&&(r=t)}),0===r?r=t.length:r-=(null===(a=this.state._dataFoot)||void 0===a?void 0:a.length)||0,r}getThePrimaryHeadersWithKeyOrRenderFunction(e){const t=[];return e.forEach(e=>{e.forEach(e=>{"string"!=typeof e.key&&"function"!=typeof e.render||t.push(e)})}),t}getPrimaryHeaders(e){var t,a;let r=this.getThePrimaryHeadersWithKeyOrRenderFunction(null!==(t=e.horizontal)&&void 0!==t?t:[]);return this.horizontal=!0,0===r.length&&(r=this.getThePrimaryHeadersWithKeyOrRenderFunction(null!==(a=e.vertical)&&void 0!==a?a:[]),r.length>0&&(this.horizontal=!1)),r}getColumnPositionMap(){var e;const t=new Map;return null===(e=this.state._tableSettings)||void 0===e||e.columns.forEach((e,a)=>{t.set(e.key,a)}),t}sortByColumnPosition(e){const t=this.getColumnPositionMap();return e.map((e,t)=>({column:e,index:t})).sort((e,a)=>{var r,o,i,s;const n=null!==(o=t.get(null!==(r=e.column.key)&&void 0!==r?r:""))&&void 0!==o?o:Number.MAX_SAFE_INTEGER,l=null!==(s=t.get(null!==(i=a.column.key)&&void 0!==i?i:""))&&void 0!==s?s:Number.MAX_SAFE_INTEGER;return n!==l?n-l:e.index-a.index}).map(({column:e})=>e)}createDataField(e,t,a){var r;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 o=this.getPrimaryHeaders(t),i=this.getNumberOfCols(t.horizontal,e);let s=this.getNumberOfRows(t.vertical,e),n=0;a&&(n=s,s+=(null===(r=this.state._dataFoot)||void 0===r?void 0:r.length)||0);const l=[],c=[],h=[];t.vertical.forEach((e,t)=>{c[t]=0,h[t]=[]});const d=this.sortByColumnPosition(o);for(let r=n;r<s;r++){const o=[];t.vertical.forEach((e,t)=>{let a=0;if(h[t].forEach(e=>a+=e),a<=r){const i=e[r-a+c[t]];if("object"==typeof i){o.push(Object.assign(Object.assign({},i),{headerCell:!0,data:{}}));let e=1;if("number"==typeof i.rowSpan&&i.rowSpan>1&&(e=i.rowSpan),h[t].push(e),"number"==typeof i.colSpan&&i.colSpan>1)for(let a=1;a<i.colSpan;a++)h[t+a].push(e);c[t]++}}});for(let t=0;t<i;t++)if(!0===this.horizontal){const i=a&&this.state._dataFoot?this.state._dataFoot[r-n]:e[r];"object"!=typeof d[t]||null===d[t]||"object"!=typeof i||null===i||"string"!=typeof d[t].key&&"function"!=typeof d[t].render||o.push(Object.assign(Object.assign({},d[t]),{colSpan:void 0,data:i,label:i[d[t].key],rowSpan:void 0}))}else"object"!=typeof d[r]||null===d[r]||"object"!=typeof e[t]||null===e[t]||"string"!=typeof d[r].key&&"function"!=typeof d[r].render||o.push(Object.assign(Object.assign({},d[r]),{colSpan:void 0,data:e[t],label:e[t][d[r].key],rowSpan:void 0}));l.push(o)}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 r={colSpan:e,label:this.translateNoEntries,render:void 0,rowSpan:Math.max(a,1)};0===l.length?l.push([r]):l[0].push(r)}return l}handleSelectionChangeCallbackAndEvent(e,t){var a;"function"==typeof(null===(a=this.state._on)||void 0===a?void 0:a[keyboard.Callback.onSelectionChange])&&this.state._on[keyboard.Callback.onSelectionChange](e,t),this.host&&events.dispatchDomEvent(this.host,events.KolEvent.selectionChange,t)}initializeTableSettings(){if(this._tableSettings)return;const e=this.getPrimaryHeaders(this.state._headerCells);this.state._tableSettings||(this.state._tableSettings={columns:[]}),this.state._tableSettings.columns=e.filter(e=>e.key).map(e=>{var t;return{hidable:!1!==e.hidable,sortable:!1!==e.sortable,resizable:!1!==e.resizable,key:null!==(t=e.key)&&void 0!==t?t:dev_utils.nonce(),label:e.label,visible:!0}})}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),this.validateTableSettings(this._tableSettings),this.validateHasSettingsMenu(this._hasSettingsMenu)}renderSelectionCell(e,t){var a;const r=this.state._selection;if(!r)return"";const o=this.getSelectionKeyPropertyName(),i=null===(a=e[0])||void 0===a?void 0:a.data;if(!i)return"";const s=i[o],n=r.multiple||void 0===r.multiple,l=(()=>{const e=null==r?void 0:r.selectedKeys;return(void 0===e?[]:Array.isArray(e)?e:[e]).some(e=>String(e)===String(s))})(),c=(()=>{const e=null==r?void 0:r.disabledKeys;return(void 0===e?[]:Array.isArray(e)?e:[e]).some(e=>String(e)===String(s))})(),h=r.label(i),d={name:"selection",checked:l,disabled:c,id:String(s),"aria-label":h};return index.h("td",{key:`tbody-${t}-selection`,class:"kol-table__cell kol-table__cell--selection"},index.h("div",{class:clsx.clsx("kol-table__selection",{"kol-table__selection--checked":l})},n?index.h("label",{class:clsx.clsx("kol-table__selection-label",{"kol-table__selection-label--disabled":c})},index.h(componentNames.KolIconTag,{class:"kol-table__selection-icon",_icons:"codicon "+(l?"codicon-check":""),_label:""}),index.h("input",Object.assign({class:clsx.clsx("kol-table__selection-input kol-table__selection-input--checkbox"),ref:e=>e&&this.checkboxRefs.push(e)},d,{type:"checkbox",onInput:e=>{const t=(()=>{const e=null==r?void 0:r.selectedKeys;return void 0===e?[]:Array.isArray(e)?e:[e]})(),a=l?t.filter(e=>String(e)!==String(s)):[...t,s];this.handleSelectionChangeCallbackAndEvent(e,null!=a?a:[])}}))):index.h("label",{class:"kol-table__selection-label"},index.h("input",Object.assign({class:clsx.clsx("kol-table__selection-input kol-table__selection-input--radio")},d,{type:"radio",onInput:e=>{this.handleSelectionChangeCallbackAndEvent(e,s)}}))),index.h(componentNames.KolTooltipWcTag,{"aria-hidden":"true",class:"kol-table__selection-input-tooltip",_align:"right",_id:`${s}-label`,_label:h})))}getColumnSettings(e){var t;return null===(t=this.state._tableSettings)||void 0===t?void 0:t.columns.find(t=>t.key===e.key)}getSelectionKeyPropertyName(){var e,t;return null!==(t=null===(e=this.state._selection)||void 0===e?void 0:e.keyPropertyName)&&void 0!==t?t:"id"}getDataWithSelectionEnabled(){const e=this.getSelectionKeyPropertyName();return this.state._data.filter(t=>{var a;const r=null===(a=this.state._selection)||void 0===a?void 0:a.disabledKeys;return!(void 0===r?[]:Array.isArray(r)?r:[r]).some(a=>String(a)===String(t[e]))})}getSelectedKeysWithoutDisabledKeys(){const e=(()=>{var e;const t=null===(e=this.state._selection)||void 0===e?void 0:e.selectedKeys;return void 0===t?[]:Array.isArray(t)?t:[t]})(),t=(()=>{var e;const t=null===(e=this.state._selection)||void 0===e?void 0:e.disabledKeys;return void 0===t?[]:Array.isArray(t)?t:[t]})();return e.filter(e=>!t.some(t=>String(t)===String(e)))}getSelectedKeysWithDisabledKeysOnly(){const e=(()=>{var e;const t=null===(e=this.state._selection)||void 0===e?void 0:e.selectedKeys;return void 0===t?[]:Array.isArray(t)?t:[t]})(),t=(()=>{var e;const t=null===(e=this.state._selection)||void 0===e?void 0:e.disabledKeys;return void 0===t?[]:Array.isArray(t)?t:[t]})();return e.filter(e=>t.some(t=>String(t)===String(e)))}getRevertedSelection(e){var t;const a=this.getSelectionKeyPropertyName(),r=null!==(t=this.getSelectedKeysWithDisabledKeysOnly())&&void 0!==t?t:[];return e&&r.push(...this.getDataWithSelectionEnabled().map(e=>null==e?void 0:e[a])),r}getTableMinWidth(){var e,t;const a=null!==(t=null===(e=this.state._tableSettings)||void 0===e?void 0:e.columns.filter(e=>e.visible).reduce((e,t)=>{var a;return e+(null!==(a=t.width)&&void 0!==a?a:0)},0))&&void 0!==t?t:0;return"auto"===this.state._minWidth?`${a}ch`:`max(${this.state._minWidth}, ${a}ch)`}renderHeadingSelectionCell(){var e,t;const a=this.state._selection;if(!a)return index.h("th",{class:"kol-table__cell kol-table__cell--header",key:"thead-0"});if(!1===a.multiple)return index.h("td",{key:"thead-0-selection",class:"kol-table__cell kol-table__cell--header kol-table__cell--selection"});const r=null!==(t=null===(e=this.getSelectedKeysWithoutDisabledKeys())||void 0===e?void 0:e.length)&&void 0!==t?t:0,o=r===this.getDataWithSelectionEnabled().length,i=0!==r&&!o;let s="kol-table-selection-indeterminate";o&&!i&&(s="kol-table-selection-none"),0===r&&(s="kol-table-selection-all");const n=i18n.translate(s);return index.h("th",{key:"thead-0-selection",class:"kol-table__cell kol-table__cell--header kol-table__cell--selection"},index.h("div",{class:clsx.clsx("kol-table__selection",{"kol-table__selection--indeterminate":i,"kol-table__selection--checked":o})},index.h("label",{class:"kol-table__selection-label"},index.h(componentNames.KolIconTag,{class:"kol-table__selection-icon",_icons:"codicon "+(i?"codicon-remove":o?"codicon-check":""),_label:""}),index.h("input",{class:clsx.clsx("kol-table__selection-input kol-table__selection-input--checkbox"),"data-testid":"selection-checkbox-all",ref:e=>e&&this.checkboxRefs.push(e),name:"selection",checked:o&&!i,indeterminate:i,"aria-label":n,type:"checkbox",onInput:e=>{this.handleSelectionChangeCallbackAndEvent(e,this.getRevertedSelection(!o))}})),index.h(componentNames.KolTooltipWcTag,{"aria-hidden":"true",class:"kol-table__selection-input-tooltip",_align:"right",_id:`${s}-label`,_label:n})))}renderHeaderTdCell(){return index.h(index.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)&&index.h("td",{"aria-hidden":"true",colSpan:this.state._headerCells.vertical.length,rowSpan:this.state._headerCells.horizontal.length}))}renderHeadingCell(e,t,a,r){const o=this.getColumnSettings(e);if(o&&!o.visible)return"";const i=!1!==(null==o?void 0:o.sortable),s="string"==typeof e.sortDirection,n=i&&s;let l="none",c="codicon codicon-fold";if(n&&e.sortDirection)switch(e.sortDirection){case"ASC":c="codicon codicon-chevron-up",l="ascending";break;case"DESC":c="codicon codicon-chevron-down",l="descending";break;default:l="none"}const h=r?"row":"number"==typeof e.colSpan&&e.colSpan>1?"colgroup":"col";return index.h("th",{key:`${t}-${a}-${e.label}`,class:clsx.clsx("kol-table__cell kol-table__cell--header",{[`kol-table__cell--align-${e.textAlign}`]:e.textAlign,[`kol-table__cell--${l}`]:l}),scope:h,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{width:(null==o?void 0:o.width)?`${o.width}ch`:e.width},"aria-sort":l,"data-sort":n&&e.sortDirection?`sort-${e.sortDirection}`:void 0},n&&e.sortDirection?index.h(componentNames.KolButtonWcTag,{class:"kol-table__sort-button",exportparts:"icon",_icons:{right:c},_label:e.label,_ariaDescription:this.translateSort,_on:{onClick:t=>{var a;"function"==typeof(null===(a=this.state._on)||void 0===a?void 0:a.onSort)&&e.key&&e.sortDirection&&this.state._on.onSort(t,{key:e.key,currentSortDirection:e.sortDirection}),this.host&&events.dispatchDomEvent(this.host,events.KolEvent.sort,{key:e.key,currentSortDirection:e.sortDirection})}}}):e.label)}renderSpacer(e,t){var a,r;const o=(null===(a=this.state._headerCells.vertical)||void 0===a?void 0:a.length)||0,i=null===(r=null==t?void 0:t[0])||void 0===r?void 0:r.reduce((e,t)=>e+(t.colSpan||1),0),s=this.state._selection?1:0;return index.h("tr",{"aria-hidden":"true",class:clsx.clsx("kol-table__spacer",`kol-table__spacer--${e}`)},index.h("td",{class:clsx.clsx(`kol-table__spacer-line kol-table__spacer-line--${e}`),colSpan:o+i+s}))}renderFoot(){if(!this.state._dataFoot||0===this.state._dataFoot.length)return null;const e=this.createDataField(this.state._dataFoot,this.state._headerCells,!0);return index.h("tfoot",{class:"kol-table__footer"},[this.renderSpacer("foot",e),e.map((e,t)=>this.renderTableRow(e,t,!0,!0))])}render(){var e;const t=this.createDataField(this.state._data,this.state._headerCells);this.checkboxRefs=[];const a=null===(e=this.state._headerCells.horizontal)||void 0===e?void 0:e.map(e=>this.sortByColumnPosition(e));return index.h("div",{key:"a66eb9f22e8267d1bfcc00b2429b8234e07beb51",class:"kol-table"},this.state._hasSettingsMenu&&index.h(componentNames.KolTableSettingsWcTag,{key:"8c5bfcc3f01813773d07912fcf2fa78455efac06",_tableSettings:this.state._tableSettings}),index.h("div",{key:"6f9ac777bae4c27c80052aeeae5678ddff56a6bc",ref:e=>this.tableDivElement=e,class:"kol-table__scroll-container",tabindex:this.tableDivElementHasScrollbar?"-1":void 0},index.h("table",{key:"89710649cdcd7fcca523656de8f8b13fc3d9509f",class:"kol-table__table",style:{minWidth:this.getTableMinWidth()}},index.h("caption",{key:"0f5550f8377daed2043a18de8c2cdb5b6e45f554",class:"kol-table__focus-element kol-table__caption",id:"caption",tabindex:this.tableDivElementHasScrollbar?"0":void 0},this.state._label),Array.isArray(a)&&index.h("thead",{key:"83577b101b26b8ee80bc81ccd12526fb78f576c4",class:"kol-table__head"},[a.map((e,t)=>index.h("tr",{class:"kol-table__head-row",key:`thead-${t}`},this.state._selection&&this.renderHeadingSelectionCell(),0===t&&this.renderHeaderTdCell(),Array.isArray(e)&&e.map((e,a)=>this.renderHeadingCell(e,t,a,!1)))),this.renderSpacer("head",a)]),index.h("tbody",{key:"6fe763adb26ca11ebea14f035200df42c970d5cd",class:"kol-table__body"},t.map((e,t)=>this.renderTableRow(e,t,!0))),this.renderFoot())))}get host(){return index.getElement(this)}static get watchers(){return{_hasSettingsMenu:[{validateHasSettingsMenu:0}],_data:[{validateData:0}],_dataFoot:[{validateDataFoot:0}],_headerCells:[{validateHeaderCells:0}],_label:[{validateLabel:0}],_minWidth:[{validateMinWidth:0}],_on:[{validateOn:0}],_selection:[{validateSelection:0}],_tableSettings:[{validateTableSettings:0}]}}};exports.kol_table_stateless_wc=KolTableStateless;
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";var index=require("./index-uT47A9Jc.js"),componentNames=require("./component-names-CuI-0Pbo.js");require("./common-Cd2qH809.js");const defaultStyleCss="@charset \"UTF-8\";\n/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/* forward the rem function */\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-alert {\n display: grid;\n }\n .kol-alert__container {\n display: flex;\n place-items: center;\n }\n .kol-alert__container-content {\n flex-grow: 1;\n }\n .kol-alert__closer {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n }\n :host {\n display: inline-block;\n }\n .kol-button {\n display: inline-flex;\n font-style: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n text-decoration-line: none;\n }\n .kol-button::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: \"​\";\n }\n .kol-button__text {\n width: 100%;\n }\n .kol-popover-button__button {\n display: inline-block;\n }\n .kol-popover-button__popover {\n margin: 0;\n padding: 0;\n border: 0;\n }\n .kol-popover-button--inline .kol-popover-button__button {\n display: inline;\n }\n .kol-table-settings {\n background: #fff;\n position: absolute;\n top: 0;\n right: 0;\n z-index: 1;\n }\n .kol-table-settings .kol-popover-button__popover {\n background: #fff;\n box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n border-radius: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n border: 1px solid #d1d5db;\n }\n .kol-table-settings__columns-container {\n max-height: calc(200 * 1rem / var(--kolibri-root-font-size, 16));\n margin-top: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n overflow: auto;\n }\n .kol-table-settings__columns {\n display: grid;\n gap: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n align-items: center;\n grid-auto-rows: min-content;\n grid-template-columns: min-content minmax(max-content, 1fr) calc(100 * 1rem / var(--kolibri-root-font-size, 16)) auto auto;\n }\n .kol-table-settings__column {\n display: contents;\n }\n .kol-table {\n display: block;\n position: relative;\n max-width: 100%;\n }\n .kol-table:has(.kol-table__focus-element:focus) .kol-table__scroll-container {\n /* @see https://remysharp.com/til/css/focus-ring-default-styles */\n outline: 5px auto Highlight;\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: 2px;\n }\n .kol-table__scroll-container {\n overflow-x: auto;\n overflow-y: hidden;\n }\n .kol-table__table {\n width: 100%;\n }\n .kol-table__caption {\n min-height: var(--a11y-min-size);\n padding-right: var(--a11y-min-size);\n text-align: start;\n }\n .kol-table__sort-button .kol-button {\n color: inherit;\n }\n .kol-table__body {\n text-align: left;\n }\n .kol-table__body .kol-button__text {\n justify-items: start;\n }\n .kol-table__cell--align-left {\n text-align: left;\n }\n .kol-table__cell--align-left .kol-button__text {\n align-items: start;\n }\n .kol-table__cell--align-center {\n text-align: center;\n }\n .kol-table__cell--align-center .kol-button__text {\n align-items: center;\n }\n .kol-table__cell--align-right {\n text-align: right;\n }\n .kol-table__cell--align-right .kol-button__text {\n align-items: end;\n }\n .kol-table__cell--selection {\n 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 display: flex;\n position: relative;\n width: var(--a11y-min-size);\n height: var(--a11y-min-size);\n align-items: center;\n justify-content: center;\n cursor: pointer;\n }\n .kol-table__selection-label--disabled {\n cursor: not-allowed;\n }\n .kol-table__selection-icon {\n display: block;\n position: absolute;\n inset: auto;\n z-index: 1;\n }\n .kol-table__selection-input {\n border-style: solid;\n margin: 0;\n appearance: none;\n cursor: pointer;\n }\n .kol-table__selection-input:disabled {\n cursor: not-allowed;\n }\n .kol-table__selection-input:before {\n content: \"\";\n }\n .kol-table__selection-input--checkbox {\n background-color: rgb(255, 255, 255);\n display: flex;\n position: relative;\n width: calc(var(--a11y-min-size) / 2);\n height: calc(var(--a11y-min-size) / 2);\n border-width: 2px;\n align-items: center;\n justify-content: center;\n line-height: 1.5;\n }\n .kol-table__selection-input--radio {\n border-radius: 100%;\n display: flex;\n width: 1.5em;\n min-width: 1.5em;\n height: 1.5em;\n min-height: 1.5em;\n padding: 0;\n border-width: 2px;\n }\n .kol-table__selection-input--radio:before {\n border-radius: 100%;\n width: 0.75em;\n height: 0.75em;\n margin: auto;\n }\n .kol-table__selection-input--radio:checked:before {\n background-color: #000;\n }\n @media (forced-colors: active) {\n .kol-table__selection-input--radio:checked:before {\n /* Give it a visible background in forced colors mode */\n background-color: selectedItem !important;\n }\n }\n}",KolTableStateless=class{constructor(n){index.registerInstance(this,n)}render(){return index.h(componentNames.KolTableStatelessWcTag,{key:"0bb344f2ce9af4bfcfe4f075b4a86343b33f275f",_data:this._data,_dataFoot:this._dataFoot,_headerCells:this._headerCells,_label:this._label,_minWidth:this._minWidth,_on:this._on,_selection:this._selection,_tableSettings:this._tableSettings,_hasSettingsMenu:this._hasSettingsMenu})}};KolTableStateless.style={default:defaultStyleCss},exports.kol_table_stateless=KolTableStateless;
4
+ "use strict";var index=require("./index-CUwAAV9q.js"),componentNames=require("./component-names-CuI-0Pbo.js");require("./common-Cd2qH809.js");const defaultStyleCss=()=>'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component; @layer kol-a11y { :host { --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16)); color: black; background-color: white; font-family: Verdana; letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; white-space: nowrap; clip-path: inset(50%); } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: lightgray; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } .kol-span .kol-span__label--hide-label .kol-span__label { display: none; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled], [disabled]:focus { opacity: 0.5; outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } } @layer kol-component { :host { display: block; } } @layer kol-component { .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: #000; background-color: #fff; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: #000; background-color: #fff; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-alert { display: grid; } .kol-alert__container { display: flex; place-items: center; } .kol-alert__container-content { flex-grow: 1; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); } :host { display: inline-block; } .kol-button { display: inline-flex; font-style: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); text-decoration-line: none; } .kol-button::before { content: "​"; } .kol-button__text { width: 100%; } .kol-popover-button__button { display: inline-block; } .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-popover-button--inline .kol-popover-button__button { display: inline; } .kol-table-settings { background: #fff; position: absolute; top: 0; right: 0; z-index: 1; } .kol-table-settings .kol-popover-button__popover { background: #fff; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); border-radius: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); border: 1px solid #d1d5db; } .kol-table-settings__columns-container { max-height: calc(200 * 1rem / var(--kolibri-root-font-size, 16)); margin-top: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); overflow: auto; } .kol-table-settings__columns { display: grid; gap: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); align-items: center; grid-auto-rows: min-content; grid-template-columns: min-content minmax(max-content, 1fr) calc(100 * 1rem / var(--kolibri-root-font-size, 16)) auto auto; } .kol-table-settings__column { display: contents; } .kol-table { display: block; position: relative; max-width: 100%; } .kol-table:has(.kol-table__focus-element:focus) .kol-table__scroll-container { outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color; outline-offset: 2px; } .kol-table__scroll-container { overflow-x: auto; overflow-y: hidden; } .kol-table__table { width: 100%; } .kol-table__caption { min-height: var(--a11y-min-size); padding-right: var(--a11y-min-size); text-align: start; } .kol-table__sort-button .kol-button { color: inherit; } .kol-table__body { text-align: left; } .kol-table__body .kol-button__text { justify-items: start; } .kol-table__cell--align-left { text-align: left; } .kol-table__cell--align-left .kol-button__text { align-items: start; } .kol-table__cell--align-center { text-align: center; } .kol-table__cell--align-center .kol-button__text { align-items: center; } .kol-table__cell--align-right { text-align: right; } .kol-table__cell--align-right .kol-button__text { align-items: end; } .kol-table__cell--selection { width: var(--a11y-min-size); height: var(--a11y-min-size); white-space: nowrap; } .kol-table__spacer { display: none; } .kol-table__selection-label { display: flex; position: relative; width: var(--a11y-min-size); height: var(--a11y-min-size); align-items: center; justify-content: center; cursor: pointer; } .kol-table__selection-label--disabled { cursor: not-allowed; } .kol-table__selection-icon { display: block; position: absolute; inset: auto; z-index: 1; } .kol-table__selection-input { border-style: solid; margin: 0; appearance: none; cursor: pointer; } .kol-table__selection-input:disabled { cursor: not-allowed; } .kol-table__selection-input:before { content: ""; } .kol-table__selection-input--checkbox { background-color: rgb(255, 255, 255); display: flex; position: relative; width: calc(var(--a11y-min-size) / 2); height: calc(var(--a11y-min-size) / 2); border-width: 2px; align-items: center; justify-content: center; line-height: 1.5; } .kol-table__selection-input--radio { border-radius: 100%; display: flex; width: 1.5em; min-width: 1.5em; height: 1.5em; min-height: 1.5em; padding: 0; border-width: 2px; } .kol-table__selection-input--radio:before { border-radius: 100%; width: 0.75em; height: 0.75em; margin: auto; } .kol-table__selection-input--radio:checked:before { background-color: #000; } @media (forced-colors: active) { .kol-table__selection-input--radio:checked:before { background-color: selectedItem !important; } } }',KolTableStateless=class{constructor(t){index.registerInstance(this,t)}render(){return index.h(componentNames.KolTableStatelessWcTag,{key:"0bb344f2ce9af4bfcfe4f075b4a86343b33f275f",_data:this._data,_dataFoot:this._dataFoot,_headerCells:this._headerCells,_label:this._label,_minWidth:this._minWidth,_on:this._on,_selection:this._selection,_tableSettings:this._tableSettings,_hasSettingsMenu:this._hasSettingsMenu})}};KolTableStateless.style={default:defaultStyleCss()},exports.kol_table_stateless=KolTableStateless;
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";var index=require("./index-uT47A9Jc.js"),common=require("./common-Cd2qH809.js"),align=require("./align-CGG5V8xM.js"),label=require("./label-Nicf9N_T.js"),clsx=require("./clsx-CkZlkaek.js"),componentNames=require("./component-names-CuI-0Pbo.js"),i18n=require("./i18n-DNWGj4j8.js"),keyboard=require("./keyboard-C096g_BV.js"),events=require("./events-cX8h6I3p.js");require("./i18n-BnIFsVIa.js");const tabBehaviorPropTypeOptions=["select-automatic","select-manual"],validateTabBehavior=(e,t)=>{common.watchValidator(e,"_behavior",e=>"string"==typeof e&&tabBehaviorPropTypeOptions.includes(e),new Set([`KoliBriTabBehavior {${tabBehaviorPropTypeOptions.join(", ")}`]),t)},validateHasCreateButton=(e,t)=>{common.watchBoolean(e,"_hasCreateButton",t)},defaultStyleCss="/* forward the rem function */\n/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-tabs {\n display: var(--display);\n grid-template-columns: var(--grid-template-columns);\n grid-template-rows: var(--grid-template-rows);\n }\n .kol-tabs--align-right {\n --display: grid;\n --grid-template-columns: 1fr auto;\n --button-group-flex-direction: column;\n --button-group-order: 2;\n }\n .kol-tabs--align-left {\n --display: grid;\n --grid-template-columns: auto 1fr;\n --button-group-flex-direction: column;\n --button-group-order: 0;\n }\n .kol-tabs--align-bottom {\n --display: grid;\n --grid-template-rows: 1fr auto;\n --button-group-order: 2;\n }\n .kol-tabs__tabs-align-top {\n --display: grid;\n --grid-template-rows: auto 1fr;\n --button-group-order: 0;\n }\n .kol-tabs__button-group {\n display: flex;\n order: var(--button-group-order);\n flex-direction: var(--button-group-flex-direction);\n flex-wrap: wrap;\n }\n .kol-tabs__button-group .kol-button {\n border-bottom-color: transparent;\n display: block;\n border-bottom-style: solid;\n }\n .kol-tabs__panel {\n height: 100%;\n }\n}",KolTabs=class{constructor(e){index.registerInstance(this,e),this.onCreateLabel=`${i18n.translate("kol-new")} …`,this.nextPossibleTabIndex=(e,t,n=1)=>{const o=t+n;return o<e.length?e[o]._disabled?this.nextPossibleTabIndex(e,t,n+1):o:t},this.prevPossibleTabIndex=(e,t,n=1)=>{const o=t-n;return o>=0?e[o]._disabled?this.prevPossibleTabIndex(e,t,n+1):o:t},this.onKeyDown=e=>{switch(e.key){case keyboard.KeyboardKey.ArrowRight:this.goToNextTab(e);break;case keyboard.KeyboardKey.ArrowLeft:this.goToPreviousTab(e);break;case keyboard.KeyboardKey.Space:case keyboard.KeyboardKey.Enter:this.activateFocusedTab(e)}},this.onClickSelect=(e,t)=>{this.selectNextTabEvent(e,t)},this.onMouseDown=e=>{e.preventDefault()},this.callbacks={onClick:this.onClickSelect,onMouseDown:this.onMouseDown},this.catchTabPanelHost=e=>{this.tabPanelHost=e},this._align="top",this._hasCreateButton=!1,this._selected=0,this.state={_align:"top",_label:"",_selected:0,_tabs:[]},this.selectNextNotDisabledTab=(e,t,n=!0,o)=>{if(e>t.length-1&&(e=t.length-1),e<0&&(e=0),Array.isArray(t)&&t[e]&&t[e]._disabled){if(!0===n){if(e<t.length-1)return this.selectNextNotDisabledTab(e+1,t,!0,o||e);e=o||e,n=!1}if(!1===n){if(e>0)return this.selectNextNotDisabledTab(e-1,t,!1,o||e);common.devHint("[KolTabs] All tabs are disabled, and therefore no tab can be displayed.")}}return e},this.syncSelectedAndTabs=(e,t,n,o)=>{let i,a;i="_selected"===o?e:this.state._selected,a="_tabs"===o?e:this.state._tabs,a.length>0&&t.set("_selected",this.selectNextNotDisabledTab(i,a))},this.refreshTabPanels=()=>{var e,t,n,o;if(this.tabPanelHost){for(;this.tabPanelHost.firstChild;)this.tabPanelHost.removeChild(this.tabPanelHost.firstChild);for(let i=0;i<(null===(e=this.state._tabs)||void 0===e?void 0:e.length);i++){const e=document.createElement("div");e.setAttribute("aria-labelledby",`${this.state._label.replace(/\s/g,"-")}-tab-${i}`),e.setAttribute("id",`tabpanel-${i}`),e.setAttribute("role","tabpanel"),e.setAttribute("hidden","");const a=document.createElement("slot");a.setAttribute("name",`tabpanel-slot-${i}`),e.appendChild(a),null===(t=this.tabPanelHost)||void 0===t||t.appendChild(e),"undefined"!=typeof HTMLCollection&&(null===(n=this.host)||void 0===n?void 0:n.children)instanceof HTMLCollection&&(null===(o=this.host)||void 0===o?void 0:o.children[i])&&this.host.children[i].setAttribute("slot",`tabpanel-slot-${i}`)}this.updateVisiblePanel()}},this.updateVisiblePanel=()=>{this.tabPanelHost&&Array.from(this.tabPanelHost.children).forEach((e,t)=>{t===this.state._selected?e.removeAttribute("hidden"):e.setAttribute("hidden","")})},this.onCreate=e=>{var t,n;e.preventDefault(),null===(n=null===(t=this.state._on)||void 0===t?void 0:t.onCreate)||void 0===n||n.call(t,e),this.host&&events.dispatchDomEvent(this.host,events.KolEvent.create)},this.onBlur=()=>{this.currentFocusIndex=void 0}}getCurrentFocusIndex(){return"number"==typeof this.currentFocusIndex?this.currentFocusIndex:this.state._selected}getKeyboardTabChangeMode(){return"select-manual"===this._behavior?"selectFocusOnly":"activateCompletely"}goToNextTab(e){const t=this.nextPossibleTabIndex(this.state._tabs,this.getCurrentFocusIndex());this.selectNextTabEvent(e,t,this.getKeyboardTabChangeMode())}goToPreviousTab(e){const t=this.prevPossibleTabIndex(this.state._tabs,this.getCurrentFocusIndex());this.selectNextTabEvent(e,t,this.getKeyboardTabChangeMode())}activateFocusedTab(e){"number"==typeof this.currentFocusIndex&&this.onSelect(e,this.currentFocusIndex)}selectNextTabEvent(e,t,n="activateCompletely"){var o,i;if(this.currentFocusIndex=t,this.focusTabById(t),"activateCompletely"===n){this._selected=t;null===(i=null===(o=this.state._tabs[t]._on)||void 0===o?void 0:o.onSelect)||void 0===i||i.call(o,e,t),this.onSelect(e,t)}}renderButtonGroup(){return index.h("div",{"aria-label":this.state._label,class:"kol-tabs__button-group",role:"tablist",onKeyDown:this.onKeyDown,onBlur:this.onBlur},this.state._tabs.map((e,t)=>index.h(componentNames.KolButtonWcTag,{_disabled:e._disabled,_icons:e._icons,_hideLabel:e._hideLabel,_label:e._label,_on:this.callbacks,_tabIndex:this.state._selected===t?0:-1,_tooltipAlign:e._tooltipAlign,_buttonVariant:this.state._selected===t?"custom":void 0,_customClass:this.state._selected===t?"selected":void 0,_ariaControls:`tabpanel-${t}`,_ariaSelected:this.state._selected===t,_id:`${this.state._label.replace(/\s/g,"-")}-tab-${t}`,_role:"tab",_value:t})),this.state._hasCreateButton&&index.h(componentNames.KolButtonWcTag,{class:"kol-tabs__button-create",_label:this.onCreateLabel,_on:{onClick:this.onCreate},_icons:"codicon codicon-plus","data-testid":"tabs-create-button"}))}render(){return index.h("div",{key:"5ff105f158763851589016d153653f9082038b09",ref:e=>{this.tabPanelsElement=e},class:clsx.clsx("kol-tabs",`kol-tabs--align-${this.state._align}`)},this.renderButtonGroup(),index.h("div",{key:"f474721466208ada0a986ba4e00863b025195fb4",class:"kol-tabs__content",ref:this.catchTabPanelHost}))}validateAlign(e){align.validateAlign(this,e)}validateBehavior(e){validateTabBehavior(this,e)}validateHasCreateButton(e){validateHasCreateButton(this,e)}validateLabel(e){label.validateLabel(this,e,{required:!0})}validateOn(e){if("object"==typeof e&&null!==e){const t={};"function"==typeof e.onCreate&&(t.onCreate=e.onCreate),"function"==typeof e.onSelect&&(t.onSelect=e.onSelect),common.setState(this,"_on",t)}}validateSelected(e){common.watchNumber(this,"_selected",e,{hooks:{beforePatch:this.syncSelectedAndTabs}})}validateTabs(e){common.watchJsonArrayString(this,"_tabs",e=>"object"==typeof e&&null!==e&&"string"==typeof e._label&&e._label.length>0,e,void 0,{hooks:{beforePatch:this.syncSelectedAndTabs,afterPatch:this.refreshTabPanels}}),common.uiUxHintMillerscheZahl("KolTabs",this.state._tabs.length)}componentWillLoad(){this.validateAlign(this._align),this.validateLabel(this._label),this.validateOn(this._on),this.validateSelected(this._selected),this.validateTabs(this._tabs),this.validateBehavior(this._behavior),this.validateHasCreateButton(this._hasCreateButton)}componentDidRender(){this.refreshTabPanels()}focusTabById(e){if(this.tabPanelsElement){const t=common.koliBriQuerySelector(`button#${this.state._label.replace(/\s/g,"-")}-tab-${e}`,this.tabPanelsElement);null==t||t.focus()}}onSelect(e,t){var n,o;null===(o=null===(n=this._on)||void 0===n?void 0:n.onSelect)||void 0===o||o.call(n,e,t),this.host&&events.dispatchDomEvent(this.host,events.KolEvent.select,t),this.focusTabById(t)}get host(){return index.getElement(this)}static get watchers(){return{_align:["validateAlign"],_behavior:["validateBehavior"],_hasCreateButton:["validateHasCreateButton"],_label:["validateLabel"],_on:["validateOn"],_selected:["validateSelected"],_tabs:["validateTabs"]}}};KolTabs.style={default:defaultStyleCss},exports.kol_tabs=KolTabs;
4
+ "use strict";var index=require("./index-CUwAAV9q.js"),common=require("./common-Cd2qH809.js"),align=require("./align-CGG5V8xM.js"),label=require("./label-Nicf9N_T.js"),clsx=require("./clsx-CkZlkaek.js"),componentNames=require("./component-names-CuI-0Pbo.js"),i18n=require("./i18n-DNWGj4j8.js"),keyboard=require("./keyboard-C096g_BV.js"),events=require("./events-cX8h6I3p.js");require("./i18n-BnIFsVIa.js");const tabBehaviorPropTypeOptions=["select-automatic","select-manual"],validateTabBehavior=(t,e)=>{common.watchValidator(t,"_behavior",t=>"string"==typeof t&&tabBehaviorPropTypeOptions.includes(t),new Set([`KoliBriTabBehavior {${tabBehaviorPropTypeOptions.join(", ")}`]),e)},validateHasCreateButton=(t,e)=>{common.watchBoolean(t,"_hasCreateButton",e)},defaultStyleCss=()=>" @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component; @layer kol-a11y { :host { --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16)); color: black; background-color: white; font-family: Verdana; letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; white-space: nowrap; clip-path: inset(50%); } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: lightgray; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } .kol-span .kol-span__label--hide-label .kol-span__label { display: none; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled], [disabled]:focus { opacity: 0.5; outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } } @layer kol-component { :host { display: block; } } @layer kol-component { .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: #000; background-color: #fff; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: #000; background-color: #fff; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-tabs { display: var(--display); grid-template-columns: var(--grid-template-columns); grid-template-rows: var(--grid-template-rows); } .kol-tabs--align-right { --display: grid; --grid-template-columns: 1fr auto; --button-group-flex-direction: column; --button-group-order: 2; } .kol-tabs--align-left { --display: grid; --grid-template-columns: auto 1fr; --button-group-flex-direction: column; --button-group-order: 0; } .kol-tabs--align-bottom { --display: grid; --grid-template-rows: 1fr auto; --button-group-order: 2; } .kol-tabs__tabs-align-top { --display: grid; --grid-template-rows: auto 1fr; --button-group-order: 0; } .kol-tabs__button-group { display: flex; order: var(--button-group-order); flex-direction: var(--button-group-flex-direction); flex-wrap: wrap; } .kol-tabs__button-group .kol-button { border-bottom-color: transparent; display: block; border-bottom-style: solid; } .kol-tabs__panel { height: 100%; } }",KolTabs=class{constructor(t){index.registerInstance(this,t),this.onCreateLabel=`${i18n.translate("kol-new")} …`,this.nextPossibleTabIndex=(t,e,a=1)=>{const o=e+a;return o<t.length?t[o]._disabled?this.nextPossibleTabIndex(t,e,a+1):o:e},this.prevPossibleTabIndex=(t,e,a=1)=>{const o=e-a;return o>=0?t[o]._disabled?this.prevPossibleTabIndex(t,e,a+1):o:e},this.onKeyDown=t=>{switch(t.key){case keyboard.KeyboardKey.ArrowRight:this.goToNextTab(t);break;case keyboard.KeyboardKey.ArrowLeft:this.goToPreviousTab(t);break;case keyboard.KeyboardKey.Space:case keyboard.KeyboardKey.Enter:this.activateFocusedTab(t)}},this.onClickSelect=(t,e)=>{this.selectNextTabEvent(t,e)},this.onMouseDown=t=>{t.preventDefault()},this.callbacks={onClick:this.onClickSelect,onMouseDown:this.onMouseDown},this.catchTabPanelHost=t=>{this.tabPanelHost=t},this._align="top",this._hasCreateButton=!1,this._selected=0,this.state={_align:"top",_label:"",_selected:0,_tabs:[]},this.selectNextNotDisabledTab=(t,e,a=!0,o)=>{if(t>e.length-1&&(t=e.length-1),t<0&&(t=0),Array.isArray(e)&&e[t]&&e[t]._disabled){if(!0===a){if(t<e.length-1)return this.selectNextNotDisabledTab(t+1,e,!0,o||t);t=o||t,a=!1}if(!1===a){if(t>0)return this.selectNextNotDisabledTab(t-1,e,!1,o||t);common.devHint("[KolTabs] All tabs are disabled, and therefore no tab can be displayed.")}}return t},this.syncSelectedAndTabs=(t,e,a,o)=>{let i,l;i="_selected"===o?t:this.state._selected,l="_tabs"===o?t:this.state._tabs,l.length>0&&e.set("_selected",this.selectNextNotDisabledTab(i,l))},this.refreshTabPanels=()=>{var t,e,a,o;if(this.tabPanelHost){for(;this.tabPanelHost.firstChild;)this.tabPanelHost.removeChild(this.tabPanelHost.firstChild);for(let i=0;i<(null===(t=this.state._tabs)||void 0===t?void 0:t.length);i++){const t=document.createElement("div");t.setAttribute("aria-labelledby",`${this.state._label.replace(/\s/g,"-")}-tab-${i}`),t.setAttribute("id",`tabpanel-${i}`),t.setAttribute("role","tabpanel"),t.setAttribute("hidden","");const l=document.createElement("slot");l.setAttribute("name",`tabpanel-slot-${i}`),t.appendChild(l),null===(e=this.tabPanelHost)||void 0===e||e.appendChild(t),"undefined"!=typeof HTMLCollection&&(null===(a=this.host)||void 0===a?void 0:a.children)instanceof HTMLCollection&&(null===(o=this.host)||void 0===o?void 0:o.children[i])&&this.host.children[i].setAttribute("slot",`tabpanel-slot-${i}`)}this.updateVisiblePanel()}},this.updateVisiblePanel=()=>{this.tabPanelHost&&Array.from(this.tabPanelHost.children).forEach((t,e)=>{e===this.state._selected?t.removeAttribute("hidden"):t.setAttribute("hidden","")})},this.onCreate=t=>{var e,a;t.preventDefault(),null===(a=null===(e=this.state._on)||void 0===e?void 0:e.onCreate)||void 0===a||a.call(e,t),this.host&&events.dispatchDomEvent(this.host,events.KolEvent.create)},this.onBlur=()=>{this.currentFocusIndex=void 0}}getCurrentFocusIndex(){return"number"==typeof this.currentFocusIndex?this.currentFocusIndex:this.state._selected}getKeyboardTabChangeMode(){return"select-manual"===this._behavior?"selectFocusOnly":"activateCompletely"}goToNextTab(t){const e=this.nextPossibleTabIndex(this.state._tabs,this.getCurrentFocusIndex());this.selectNextTabEvent(t,e,this.getKeyboardTabChangeMode())}goToPreviousTab(t){const e=this.prevPossibleTabIndex(this.state._tabs,this.getCurrentFocusIndex());this.selectNextTabEvent(t,e,this.getKeyboardTabChangeMode())}activateFocusedTab(t){"number"==typeof this.currentFocusIndex&&this.onSelect(t,this.currentFocusIndex)}selectNextTabEvent(t,e,a="activateCompletely"){var o,i;if(this.currentFocusIndex=e,this.focusTabById(e),"activateCompletely"===a){this._selected=e;null===(i=null===(o=this.state._tabs[e]._on)||void 0===o?void 0:o.onSelect)||void 0===i||i.call(o,t,e),this.onSelect(t,e)}}renderButtonGroup(){return index.h("div",{"aria-label":this.state._label,class:"kol-tabs__button-group",role:"tablist",onKeyDown:this.onKeyDown,onBlur:this.onBlur},this.state._tabs.map((t,e)=>index.h(componentNames.KolButtonWcTag,{_disabled:t._disabled,_icons:t._icons,_hideLabel:t._hideLabel,_label:t._label,_on:this.callbacks,_tabIndex:this.state._selected===e?0:-1,_tooltipAlign:t._tooltipAlign,_buttonVariant:this.state._selected===e?"custom":void 0,_customClass:this.state._selected===e?"selected":void 0,_ariaControls:`tabpanel-${e}`,_ariaSelected:this.state._selected===e,_id:`${this.state._label.replace(/\s/g,"-")}-tab-${e}`,_role:"tab",_value:e})),this.state._hasCreateButton&&index.h(componentNames.KolButtonWcTag,{class:"kol-tabs__button-create",_label:this.onCreateLabel,_on:{onClick:this.onCreate},_icons:"codicon codicon-plus","data-testid":"tabs-create-button"}))}render(){return index.h("div",{key:"5ff105f158763851589016d153653f9082038b09",ref:t=>{this.tabPanelsElement=t},class:clsx.clsx("kol-tabs",`kol-tabs--align-${this.state._align}`)},this.renderButtonGroup(),index.h("div",{key:"f474721466208ada0a986ba4e00863b025195fb4",class:"kol-tabs__content",ref:this.catchTabPanelHost}))}validateAlign(t){align.validateAlign(this,t)}validateBehavior(t){validateTabBehavior(this,t)}validateHasCreateButton(t){validateHasCreateButton(this,t)}validateLabel(t){label.validateLabel(this,t,{required:!0})}validateOn(t){if("object"==typeof t&&null!==t){const e={};"function"==typeof t.onCreate&&(e.onCreate=t.onCreate),"function"==typeof t.onSelect&&(e.onSelect=t.onSelect),common.setState(this,"_on",e)}}validateSelected(t){common.watchNumber(this,"_selected",t,{hooks:{beforePatch:this.syncSelectedAndTabs}})}validateTabs(t){common.watchJsonArrayString(this,"_tabs",t=>"object"==typeof t&&null!==t&&"string"==typeof t._label&&t._label.length>0,t,void 0,{hooks:{beforePatch:this.syncSelectedAndTabs,afterPatch:this.refreshTabPanels}}),common.uiUxHintMillerscheZahl("KolTabs",this.state._tabs.length)}componentWillLoad(){this.validateAlign(this._align),this.validateLabel(this._label),this.validateOn(this._on),this.validateSelected(this._selected),this.validateTabs(this._tabs),this.validateBehavior(this._behavior),this.validateHasCreateButton(this._hasCreateButton)}componentDidRender(){this.refreshTabPanels()}focusTabById(t){if(this.tabPanelsElement){const e=common.koliBriQuerySelector(`button#${this.state._label.replace(/\s/g,"-")}-tab-${t}`,this.tabPanelsElement);null==e||e.focus()}}onSelect(t,e){var a,o;null===(o=null===(a=this._on)||void 0===a?void 0:a.onSelect)||void 0===o||o.call(a,t,e),this.host&&events.dispatchDomEvent(this.host,events.KolEvent.select,e),this.focusTabById(e)}get host(){return index.getElement(this)}static get watchers(){return{_align:[{validateAlign:0}],_behavior:[{validateBehavior:0}],_hasCreateButton:[{validateHasCreateButton:0}],_label:[{validateLabel:0}],_on:[{validateOn:0}],_selected:[{validateSelected:0}],_tabs:[{validateTabs:0}]}}};KolTabs.style={default:defaultStyleCss()},exports.kol_tabs=KolTabs;
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";var index=require("./index-uT47A9Jc.js"),clsx=require("./clsx-CkZlkaek.js"),FormFieldStateWrapper=require("./FormFieldStateWrapper-B2LPpMpo.js"),controllerIcon=require("./controller-icon-9udvsM5R.js"),tslib_es6=require("./tslib.es6-7DbU_BSw.js"),common=require("./common-Cd2qH809.js"),dev_utils=require("./dev.utils-fZEgoGGu.js"),maxLengthBehavior=require("./max-length-behavior-Bvbwhaxv.js"),placeholder=require("./placeholder-BncK-3gZ.js"),readOnly=require("./read-only-dIvCm73W.js"),required=require("./required-CXU7vdyH.js"),rows=require("./rows-BUvz5j5U.js"),spellCheck=require("./spell-check-Bkq4G9L7.js");require("./access-and-short-key-BExF929g.js"),require("./disabled-DT-7CUov.js"),require("./hide-label-DdGk9NfD.js"),require("./label-Nicf9N_T.js"),require("./tooltip-align-WJPFINTL.js"),require("./align-CGG5V8xM.js"),require("./events-cX8h6I3p.js"),require("./associated.controller-jhz1Ef5Z.js"),require("./bootstrap-DmmGbpjB.js"),require("./component-names-CuI-0Pbo.js"),require("./i18n-BnIFsVIa.js"),require("./isObject-DMA85Fq4.js"),require("./reuse-Cs36Ddzu.js"),require("./i18n-DNWGj4j8.js"),require("./InternalUnderlinedBadgeText-uCh_T5VD.js"),require("./Alert-Bj1BTIEj.js"),require("./bem-Bu0VYjZa.js"),require("./browser-D7A31aEp.js"),require("./Heading-BZTrj6_i.js"),require("./Icon-B9T-4CsE.js"),require("./icons-D_PtPRwb.js");const textareaResizeOptions=["vertical","none"],isTextareaResizePropType=e=>"string"==typeof e&&textareaResizeOptions.includes(e),validateResizeTextarea=(e,t)=>{common.watchValidator(e,"_resize",isTextareaResizePropType,new Set(textareaResizeOptions),t,{defaultValue:"vertical"})},TextAreaFc=e=>{const{class:t,msg:n,touched:a,readonly:i,disabled:o,required:l,ariaDescribedBy:r,hideLabel:s,label:d}=e,h=tslib_es6.__rest(e,["class","msg","touched","readonly","disabled","required","ariaDescribedBy","hideLabel","label"]),c=FormFieldStateWrapper.checkHasMsg(n,a),u="string"==typeof n?"error":null==n?void 0:n._type,p={"kol-textarea--disabled":Boolean(o),"kol-textarea--required":Boolean(l),"kol-textarea--touched":Boolean(a),"kol-textarea--readonly":Boolean(i),[`kol-textarea--${u||"error"}`]:c},m=Object.assign(Object.assign({class:clsx.clsx("kol-textarea",p,t),required:l,disabled:o,readonly:i},FormFieldStateWrapper.getDefaultProps({ariaDescribedBy:r,hideLabel:s,label:d})),h);return index.h("textarea",Object.assign({},m))};function getTextAreaProps(e,t){var n;const a=[...FormFieldStateWrapper.getRenderStates(e).ariaDescribedBy,...null!==(n=t.ariaDescribedBy)&&void 0!==n?n:[]],i=Object.assign(Object.assign({id:e._id,hideLabel:e._hideLabel,label:e._label,value:e._value,accessKey:e._accessKey,disabled:e._disabled,name:e._name,rows:e._rows,readonly:e._readOnly,required:e._required,placeholder:e._placeholder,touched:e._touched,msg:e._msg},t),{ariaDescribedBy:a});return"_maxLength"in e&&"_maxLengthBehavior"in e&&"hard"===e._maxLengthBehavior&&(i.maxLength=e._maxLength),"_shortKey"in e&&(i["aria-keyshortcuts"]=e._shortKey),i}const TextAreaStateWrapper=e=>{var{state:t}=e,n=tslib_es6.__rest(e,["state"]);return index.h(TextAreaFc,Object.assign({},getTextAreaProps(t,n)))};class TextareaController extends controllerIcon.InputIconController{constructor(e,t,n){super(e,t,n),this.afterSyncCharCounter=()=>{"string"==typeof this.component._value&&(this.component.state._currentLength=this.component._value.length,this.updateCurrentLengthDebounced(this.component._value.length))},this.component=e}validateHasCounter(e){maxLengthBehavior.validateHasCounter(this.component,e)}validateMaxLengthBehavior(e){maxLengthBehavior.validateMaxLengthBehavior(this.component,e)}validateMaxLength(e){maxLengthBehavior.validateMaxLength(this.component,e,{hooks:{afterPatch:this.afterSyncCharCounter}})}validatePlaceholder(e){placeholder.validatePlaceholder(this.component,e)}validateReadOnly(e){readOnly.validateReadOnly(this.component,e)}validateResize(e){validateResizeTextarea(this.component,e)}validateRequired(e){required.validateRequired(this.component,e)}validateRows(e){rows.validateRows(this.component,e)}validateSpellCheck(e){spellCheck.validateSpellCheck(this.component,e)}validateValue(e){common.watchString(this.component,"_value",e,{hooks:{afterPatch:this.afterSyncCharCounter}}),this.setFormAssociatedValue(this.component._value)}componentWillLoad(){super.componentWillLoad(),this.validateHasCounter(this.component._hasCounter),this.validateMaxLengthBehavior(this.component._maxLengthBehavior),this.validateMaxLength(this.component._maxLength),this.validatePlaceholder(this.component._placeholder),this.validateReadOnly(this.component._readOnly),this.validateRequired(this.component._required),this.validateResize(this.component._resize),this.validateRows(this.component._rows),this.validateSpellCheck(this.component._spellCheck),this.validateValue(this.component._value)}}const defaultStyleCss='/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/* forward the rem function */\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type=\'checkbox\'], [type=\'radio\'], [type=\'range\']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don\'t want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-alert {\n display: grid;\n }\n .kol-alert__container {\n display: flex;\n place-items: center;\n }\n .kol-alert__container-content {\n flex-grow: 1;\n }\n .kol-alert__closer {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-form-field {\n display: grid;\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field--disabled .kol-form-field__label {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__label-text::after {\n content: "*"/"";\n }\n .kol-form-field--disabled .kol-form-field__hint {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\n content: "*"/"";\n }\n .kol-input-container {\n background-color: transparent;\n display: grid;\n width: 100%;\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n align-items: center;\n grid-template-columns: 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start) {\n grid-template-columns: auto 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--end) {\n grid-template-columns: 1fr auto;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) {\n grid-template-columns: auto 1fr auto;\n }\n .kol-input-container__container {\n position: relative;\n }\n .kol-input-container__adornment {\n display: flex;\n align-items: center;\n }\n .kol-input-container__adornment .kol-icon {\n display: grid;\n height: var(--a11y-min-size);\n place-items: center;\n }\n .kol-textarea {\n width: 100%;\n }\n .kol-textarea:focus {\n outline: none;\n }\n}',increaseTextareaHeight=e=>{e.style.overflow="hidden";const t=e.rows,n=e.clientHeight/t;e.rows=1;const a=Math.round(e.scrollHeight/n);return e.rows=t,a},KolTextarea=class{async getValue(){var e;return null===(e=this.textareaRef)||void 0===e?void 0:e.value}async focus(){var e;return Promise.resolve(null===(e=this.textareaRef)||void 0===e?void 0:e.focus())}async kolFocus(){return this.focus()}getFormFieldProps(){return{state:this.state,class:clsx.clsx("kol-form-field-textarea",{"kol-form-field--has-value":this.state._hasValue,"kol-form-field--has-counter":this.controller.hasSoftCharacterLimit()||this.controller.hasCounter()}),tooltipAlign:this._tooltipAlign,alert:this.showAsAlert()}}getTextAreaProps(){const e="number"==typeof this.state._maxLength?[`${this.state._id}-character-limit-hint`]:void 0;return Object.assign(Object.assign({ref:this.catchRef,state:this.state,style:{resize:this.state._resize},ariaDescribedBy:e},this.controller.onFacade),{onInput:this.onInput,onFocus:e=>{this.controller.onFacade.onFocus(e),this.inputHasFocus=!0},onBlur:e=>{this.controller.onFacade.onBlur(e),this.inputHasFocus=!1}})}render(){return index.h(FormFieldStateWrapper.FormFieldStateWrapper,Object.assign({key:"8c0e36e0f3518438ad47719a0487838b50458bfa"},this.getFormFieldProps()),index.h(controllerIcon.InputContainerStateWrapperFc,{key:"46550d2a7fe6d389b92205e55da49cd30e525fb3",state:this.state},index.h(TextAreaStateWrapper,Object.assign({key:"95bfd7318945abbd30a807e2f705946d8e2dabf1"},this.getTextAreaProps()))))}constructor(e){index.registerInstance(this,e),this.catchRef=e=>{this.textareaRef=e},this._adjustHeight=!1,this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._hasCounter=!1,this._maxLengthBehavior="hard",this._readOnly=!1,this._resize="vertical",this._required=!1,this._tooltipAlign="top",this._touched=!1,this.state={_adjustHeight:!1,_currentLength:0,_currentLengthDebounced:0,_hasValue:!1,_hideMsg:!1,_id:`id-${dev_utils.nonce()}`,_label:"",_resize:"vertical"},this.inputHasFocus=!1,this.onInput=e=>{this.textareaRef instanceof HTMLTextAreaElement&&(this._value=this.textareaRef.value,this.state._adjustHeight&&(this._rows=increaseTextareaHeight(this.textareaRef)),this.controller.onFacade.onInput(e))},this.controller=new TextareaController(this,"textarea",this.host)}showAsAlert(){return Boolean(this.state._touched)&&!this.inputHasFocus}validateAccessKey(e){this.controller.validateAccessKey(e)}validateAdjustHeight(e){this.controller.validateAdjustHeight(e)}validateDisabled(e){this.controller.validateDisabled(e)}validateHideMsg(e){this.controller.validateHideMsg(e)}validateHideLabel(e){this.controller.validateHideLabel(e)}validateHasCounter(e){this.controller.validateHasCounter(e)}validateHint(e){this.controller.validateHint(e)}validateIcons(e){this.controller.validateIcons(e)}validateId(e){this.controller.validateId(e)}validateLabel(e){this.controller.validateLabel(e)}validateMaxLength(e){this.controller.validateMaxLength(e)}validateMaxLengthBehavior(e){this.controller.validateMaxLengthBehavior(e)}validateMsg(e){this.controller.validateMsg(e)}validateName(e){this.controller.validateName(e)}validateOn(e){this.controller.validateOn(e)}validatePlaceholder(e){this.controller.validatePlaceholder(e)}validateReadOnly(e){this.controller.validateReadOnly(e)}validateResize(e){this.controller.validateResize(e)}validateRequired(e){this.controller.validateRequired(e)}validateRows(e){this.controller.validateRows(e)}validateShortKey(e){this.controller.validateShortKey(e)}validateSpellCheck(e){this.controller.validateSpellCheck(e)}validateSyncValueBySelector(e){this.controller.validateSyncValueBySelector(e)}validateTouched(e){this.controller.validateTouched(e)}validateValue(e){this.controller.validateValue(e)}componentDidLoad(){setTimeout(()=>{var e;!0===this._adjustHeight&&this.textareaRef?this._rows=(null===(e=this.state)||void 0===e?void 0:e._rows)&&this.state._rows>increaseTextareaHeight(this.textareaRef)?this.state._rows:increaseTextareaHeight(this.textareaRef):this._rows||(this._rows=1)},0)}componentWillLoad(){this._touched=!0===this._touched,this.controller.componentWillLoad(),this.state._hasValue=!!this.state._value,this.controller.addValueChangeListener(e=>this.state._hasValue=!!e)}get host(){return index.getElement(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_adjustHeight:["validateAdjustHeight"],_disabled:["validateDisabled"],_hideMsg:["validateHideMsg"],_hideLabel:["validateHideLabel"],_hasCounter:["validateHasCounter"],_hint:["validateHint"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_maxLength:["validateMaxLength"],_maxLengthBehavior:["validateMaxLengthBehavior"],_msg:["validateMsg"],_name:["validateName"],_on:["validateOn"],_placeholder:["validatePlaceholder"],_readOnly:["validateReadOnly"],_resize:["validateResize"],_required:["validateRequired"],_rows:["validateRows"],_shortKey:["validateShortKey"],_spellCheck:["validateSpellCheck"],_syncValueBySelector:["validateSyncValueBySelector"],_touched:["validateTouched"],_value:["validateValue"]}}};KolTextarea.style={default:defaultStyleCss},exports.kol_textarea=KolTextarea;
4
+ "use strict";var index=require("./index-CUwAAV9q.js"),clsx=require("./clsx-CkZlkaek.js"),FormFieldStateWrapper=require("./FormFieldStateWrapper-BFcysaVO.js"),controllerIcon=require("./controller-icon-oRdlfcl8.js"),tslib_es6=require("./tslib.es6-7DbU_BSw.js"),common=require("./common-Cd2qH809.js"),dev_utils=require("./dev.utils-7DjklDXI.js"),maxLengthBehavior=require("./max-length-behavior-Bvbwhaxv.js"),placeholder=require("./placeholder-BncK-3gZ.js"),readOnly=require("./read-only-dIvCm73W.js"),required=require("./required-CXU7vdyH.js"),rows=require("./rows-BUvz5j5U.js"),spellCheck=require("./spell-check-Bkq4G9L7.js");require("./access-and-short-key-BExF929g.js"),require("./disabled-DT-7CUov.js"),require("./hide-label-DdGk9NfD.js"),require("./label-Nicf9N_T.js"),require("./tooltip-align-WJPFINTL.js"),require("./align-CGG5V8xM.js"),require("./events-cX8h6I3p.js"),require("./associated.controller-jhz1Ef5Z.js"),require("./bootstrap-DmmGbpjB.js"),require("./component-names-CuI-0Pbo.js"),require("./i18n-BnIFsVIa.js"),require("./isObject-DMA85Fq4.js"),require("./reuse-Cs36Ddzu.js"),require("./i18n-DNWGj4j8.js"),require("./InternalUnderlinedBadgeText-BmcMXSlV.js"),require("./Alert-iB2nNldZ.js"),require("./bem-CWXmxX43.js"),require("./browser-D7A31aEp.js"),require("./Heading-CXo3APiB.js"),require("./Icon-CA2N7E-m.js"),require("./icons-D_PtPRwb.js");const textareaResizeOptions=["vertical","none"],isTextareaResizePropType=e=>"string"==typeof e&&textareaResizeOptions.includes(e),validateResizeTextarea=(e,t)=>{common.watchValidator(e,"_resize",isTextareaResizePropType,new Set(textareaResizeOptions),t,{defaultValue:"vertical"})},TextAreaFc=e=>{const{class:t,msg:a,touched:i,readonly:o,disabled:l,required:r,ariaDescribedBy:n,hideLabel:s,label:d}=e,h=tslib_es6.__rest(e,["class","msg","touched","readonly","disabled","required","ariaDescribedBy","hideLabel","label"]),c=FormFieldStateWrapper.checkHasMsg(a,i),u="string"==typeof a?"error":null==a?void 0:a._type,p={"kol-textarea--disabled":Boolean(l),"kol-textarea--required":Boolean(r),"kol-textarea--touched":Boolean(i),"kol-textarea--readonly":Boolean(o),[`kol-textarea--${u||"error"}`]:c},v=Object.assign(Object.assign({class:clsx.clsx("kol-textarea",p,t),required:r,disabled:l,readonly:o},FormFieldStateWrapper.getDefaultProps({ariaDescribedBy:n,hideLabel:s,label:d})),h);return index.h("textarea",Object.assign({},v))};function getTextAreaProps(e,t){var a;const i=[...FormFieldStateWrapper.getRenderStates(e).ariaDescribedBy,...null!==(a=t.ariaDescribedBy)&&void 0!==a?a:[]],o=Object.assign(Object.assign({id:e._id,hideLabel:e._hideLabel,label:e._label,value:e._value,accessKey:e._accessKey,disabled:e._disabled,name:e._name,rows:e._rows,readonly:e._readOnly,required:e._required,placeholder:e._placeholder,touched:e._touched,msg:e._msg},t),{ariaDescribedBy:i});return"_maxLength"in e&&"_maxLengthBehavior"in e&&"hard"===e._maxLengthBehavior&&(o.maxLength=e._maxLength),"_shortKey"in e&&(o["aria-keyshortcuts"]=e._shortKey),o}const TextAreaStateWrapper=e=>{var{state:t}=e,a=tslib_es6.__rest(e,["state"]);return index.h(TextAreaFc,Object.assign({},getTextAreaProps(t,a)))};class TextareaController extends controllerIcon.InputIconController{constructor(e,t,a){super(e,t,a),this.afterSyncCharCounter=()=>{"string"==typeof this.component._value&&(this.component.state._currentLength=this.component._value.length,this.updateCurrentLengthDebounced(this.component._value.length))},this.component=e}validateHasCounter(e){maxLengthBehavior.validateHasCounter(this.component,e)}validateMaxLengthBehavior(e){maxLengthBehavior.validateMaxLengthBehavior(this.component,e)}validateMaxLength(e){maxLengthBehavior.validateMaxLength(this.component,e,{hooks:{afterPatch:this.afterSyncCharCounter}})}validatePlaceholder(e){placeholder.validatePlaceholder(this.component,e)}validateReadOnly(e){readOnly.validateReadOnly(this.component,e)}validateResize(e){validateResizeTextarea(this.component,e)}validateRequired(e){required.validateRequired(this.component,e)}validateRows(e){rows.validateRows(this.component,e)}validateSpellCheck(e){spellCheck.validateSpellCheck(this.component,e)}validateValue(e){common.watchString(this.component,"_value",e,{hooks:{afterPatch:this.afterSyncCharCounter}}),this.setFormAssociatedValue(this.component._value)}componentWillLoad(){super.componentWillLoad(),this.validateHasCounter(this.component._hasCounter),this.validateMaxLengthBehavior(this.component._maxLengthBehavior),this.validateMaxLength(this.component._maxLength),this.validatePlaceholder(this.component._placeholder),this.validateReadOnly(this.component._readOnly),this.validateRequired(this.component._required),this.validateResize(this.component._resize),this.validateRows(this.component._rows),this.validateSpellCheck(this.component._spellCheck),this.validateValue(this.component._value)}}const defaultStyleCss=()=>' @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component; @layer kol-a11y { :host { --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16)); color: black; background-color: white; font-family: Verdana; letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; white-space: nowrap; clip-path: inset(50%); } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: lightgray; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } .kol-span .kol-span__label--hide-label .kol-span__label { display: none; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled], [disabled]:focus { opacity: 0.5; outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } } @layer kol-component { :host { display: block; } } @layer kol-component { .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: #000; background-color: #fff; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: #000; background-color: #fff; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-alert { display: grid; } .kol-alert__container { display: flex; place-items: center; } .kol-alert__container-content { flex-grow: 1; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-form-field { display: grid; } .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label { cursor: pointer; } .kol-form-field--disabled .kol-form-field__label { opacity: 0.5; } .kol-form-field--required .kol-form-field__label-text::after { content: "*"/""; } .kol-form-field--disabled .kol-form-field__hint { opacity: 0.5; } .kol-form-field--required .kol-form-field__tooltip .span-label::after { content: "*"/""; } .kol-input-container { background-color: transparent; display: grid; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; grid-template-columns: 1fr; } .kol-input-container:has(> .kol-input-container__adornment--start) { grid-template-columns: auto 1fr; } .kol-input-container:has(> .kol-input-container__adornment--end) { grid-template-columns: 1fr auto; } .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) { grid-template-columns: auto 1fr auto; } .kol-input-container__container { position: relative; } .kol-input-container__adornment { display: flex; align-items: center; } .kol-input-container__adornment .kol-icon { display: grid; height: var(--a11y-min-size); place-items: center; } .kol-textarea { width: 100%; } .kol-textarea:focus { outline: none; } }',increaseTextareaHeight=e=>{e.style.overflow="hidden";const t=e.rows,a=e.clientHeight/t;e.rows=1;const i=Math.round(e.scrollHeight/a);return e.rows=t,i},KolTextarea=class{async getValue(){var e;return null===(e=this.textareaRef)||void 0===e?void 0:e.value}async focus(){var e;return Promise.resolve(null===(e=this.textareaRef)||void 0===e?void 0:e.focus())}async kolFocus(){return this.focus()}getFormFieldProps(){return{state:this.state,class:clsx.clsx("kol-form-field-textarea",{"kol-form-field--has-value":this.state._hasValue,"kol-form-field--has-counter":this.controller.hasSoftCharacterLimit()||this.controller.hasCounter()}),tooltipAlign:this._tooltipAlign,alert:this.showAsAlert()}}getTextAreaProps(){const e="number"==typeof this.state._maxLength?[`${this.state._id}-character-limit-hint`]:void 0;return Object.assign(Object.assign({ref:this.catchRef,state:this.state,style:{resize:this.state._resize},ariaDescribedBy:e},this.controller.onFacade),{onInput:this.onInput,onFocus:e=>{this.controller.onFacade.onFocus(e),this.inputHasFocus=!0},onBlur:e=>{this.controller.onFacade.onBlur(e),this.inputHasFocus=!1}})}render(){return index.h(FormFieldStateWrapper.FormFieldStateWrapper,Object.assign({key:"8c0e36e0f3518438ad47719a0487838b50458bfa"},this.getFormFieldProps()),index.h(controllerIcon.InputContainerStateWrapperFc,{key:"46550d2a7fe6d389b92205e55da49cd30e525fb3",state:this.state},index.h(TextAreaStateWrapper,Object.assign({key:"95bfd7318945abbd30a807e2f705946d8e2dabf1"},this.getTextAreaProps()))))}constructor(e){index.registerInstance(this,e),this.catchRef=e=>{this.textareaRef=e},this._adjustHeight=!1,this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._hasCounter=!1,this._maxLengthBehavior="hard",this._readOnly=!1,this._resize="vertical",this._required=!1,this._tooltipAlign="top",this._touched=!1,this.state={_adjustHeight:!1,_currentLength:0,_currentLengthDebounced:0,_hasValue:!1,_hideMsg:!1,_id:`id-${dev_utils.nonce()}`,_label:"",_resize:"vertical"},this.inputHasFocus=!1,this.onInput=e=>{this.textareaRef instanceof HTMLTextAreaElement&&(this._value=this.textareaRef.value,this.state._adjustHeight&&(this._rows=increaseTextareaHeight(this.textareaRef)),this.controller.onFacade.onInput(e))},this.controller=new TextareaController(this,"textarea",this.host)}showAsAlert(){return Boolean(this.state._touched)&&!this.inputHasFocus}validateAccessKey(e){this.controller.validateAccessKey(e)}validateAdjustHeight(e){this.controller.validateAdjustHeight(e)}validateDisabled(e){this.controller.validateDisabled(e)}validateHideMsg(e){this.controller.validateHideMsg(e)}validateHideLabel(e){this.controller.validateHideLabel(e)}validateHasCounter(e){this.controller.validateHasCounter(e)}validateHint(e){this.controller.validateHint(e)}validateIcons(e){this.controller.validateIcons(e)}validateId(e){this.controller.validateId(e)}validateLabel(e){this.controller.validateLabel(e)}validateMaxLength(e){this.controller.validateMaxLength(e)}validateMaxLengthBehavior(e){this.controller.validateMaxLengthBehavior(e)}validateMsg(e){this.controller.validateMsg(e)}validateName(e){this.controller.validateName(e)}validateOn(e){this.controller.validateOn(e)}validatePlaceholder(e){this.controller.validatePlaceholder(e)}validateReadOnly(e){this.controller.validateReadOnly(e)}validateResize(e){this.controller.validateResize(e)}validateRequired(e){this.controller.validateRequired(e)}validateRows(e){this.controller.validateRows(e)}validateShortKey(e){this.controller.validateShortKey(e)}validateSpellCheck(e){this.controller.validateSpellCheck(e)}validateSyncValueBySelector(e){this.controller.validateSyncValueBySelector(e)}validateTouched(e){this.controller.validateTouched(e)}validateValue(e){this.controller.validateValue(e)}componentDidLoad(){setTimeout(()=>{var e;!0===this._adjustHeight&&this.textareaRef?this._rows=(null===(e=this.state)||void 0===e?void 0:e._rows)&&this.state._rows>increaseTextareaHeight(this.textareaRef)?this.state._rows:increaseTextareaHeight(this.textareaRef):this._rows||(this._rows=1)},0)}componentWillLoad(){this._touched=!0===this._touched,this.controller.componentWillLoad(),this.state._hasValue=!!this.state._value,this.controller.addValueChangeListener(e=>this.state._hasValue=!!e)}get host(){return index.getElement(this)}static get watchers(){return{_accessKey:[{validateAccessKey:0}],_adjustHeight:[{validateAdjustHeight:0}],_disabled:[{validateDisabled:0}],_hideMsg:[{validateHideMsg:0}],_hideLabel:[{validateHideLabel:0}],_hasCounter:[{validateHasCounter:0}],_hint:[{validateHint:0}],_icons:[{validateIcons:0}],_id:[{validateId:0}],_label:[{validateLabel:0}],_maxLength:[{validateMaxLength:0}],_maxLengthBehavior:[{validateMaxLengthBehavior:0}],_msg:[{validateMsg:0}],_name:[{validateName:0}],_on:[{validateOn:0}],_placeholder:[{validatePlaceholder:0}],_readOnly:[{validateReadOnly:0}],_resize:[{validateResize:0}],_required:[{validateRequired:0}],_rows:[{validateRows:0}],_shortKey:[{validateShortKey:0}],_spellCheck:[{validateSpellCheck:0}],_syncValueBySelector:[{validateSyncValueBySelector:0}],_touched:[{validateTouched:0}],_value:[{validateValue:0}]}}};KolTextarea.style={default:defaultStyleCss()},exports.kol_textarea=KolTextarea;
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";var index=require("./index-uT47A9Jc.js"),i18n=require("./i18n-DNWGj4j8.js"),dev_utils=require("./dev.utils-fZEgoGGu.js"),componentNames=require("./component-names-CuI-0Pbo.js"),Alert=require("./Alert-Bj1BTIEj.js");require("./common-Cd2qH809.js"),require("./markdown-1dxeA2q6.js");var tslib_es6=require("./tslib.es6-7DbU_BSw.js"),clsx=require("./clsx-CkZlkaek.js");require("./i18n-BnIFsVIa.js"),require("./bem-Bu0VYjZa.js"),require("./browser-D7A31aEp.js"),require("./Heading-BZTrj6_i.js");const ToastItemFc=t=>{var{status:n,toast:e,onClose:o}=t,i=tslib_es6.__rest(t,["status","toast","onClose"]);const{type:s,label:a,description:l,variant:r}=e;return index.h("div",{class:clsx.clsx("kol-toast-item",`kol-toast-item--${n}`)},index.h(Alert.KolAlertFc,{class:"kol-toast-item__alert",alert:!0,label:a,level:0,hasCloser:!0,type:s,variant:r||"card",onCloserClick:o},index.h("div",Object.assign({},i),l)))},defaultStyleCss="/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/* forward the rem function */\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-alert {\n display: grid;\n }\n .kol-alert__container {\n display: flex;\n place-items: center;\n }\n .kol-alert__container-content {\n flex-grow: 1;\n }\n .kol-alert__closer {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n }\n :host {\n display: flex;\n position: fixed;\n z-index: 200;\n max-width: 90vw;\n flex-direction: column;\n }\n .kol-toast-container__close-all {\n align-self: flex-end;\n }\n}",TRANSITION_TIMEOUT=300,KolToastContainer=class{constructor(t){index.registerInstance(this,t),this.state={_toastStates:[]},this.translateToastCloseAll=i18n.translate("kol-toast-close-all"),this.knownRenderFunctions=new Set}async enqueue(t){const n={toast:Object.assign(Object.assign({},t),{variant:"card"}),status:"adding",id:`toast-${dev_utils.nonce()}`};return this.state=Object.assign(Object.assign({},this.state),{_toastStates:[n,...this.state._toastStates]}),setTimeout(()=>{this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.map(t=>t.id===n.id&&"removing"!==t.status?Object.assign(Object.assign({},t),{status:"settled"}):t)})},300),()=>{this.handleClose(n)}}handleClose(t){this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.map(n=>(n.id===t.id&&(n.status="removing"),n))}),setTimeout(()=>{var n,e;this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.filter(n=>n.id!==t.id)}),null===(e=(n=t.toast).onClose)||void 0===e||e.call(n)},300)}async closeAll(t=!1){if(t)this.state=Object.assign(Object.assign({},this.state),{_toastStates:[]});else{const t=[...this.state._toastStates];this.state=Object.assign(Object.assign({},this.state),{_toastStates:t.map(t=>Object.assign(Object.assign({},t),{status:"removing"}))}),setTimeout(()=>{this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.filter(n=>t.every(t=>t.id!==n.id))}),t.forEach(t=>{var n,e;null===(e=(n=t.toast).onClose)||void 0===e||e.call(n)})},300)}}handleToastRef(t,n){n&&"function"==typeof t.toast.render&&!this.knownRenderFunctions.has(t.toast.render)&&(this.knownRenderFunctions.add(t.toast.render),t.toast.render(n,{close:()=>this.handleClose(t)}))}render(){return index.h(index.Host,{key:"05182cc920080f5bc3c06bb647a1bf59c58fae8d",class:"kol-toast-container"},this.state._toastStates.length>1&&index.h(componentNames.KolButtonTag,{key:"e4e196489dd617e994ba8c11c38893dd505db1e1",_label:this.translateToastCloseAll,class:"kol-toast-container__button-close-all",_on:{onClick:()=>{this.closeAll()}}}),this.state._toastStates.map(t=>index.h(ToastItemFc,{key:t.id,onClose:()=>this.handleClose(t),ref:n=>this.handleToastRef(t,n),toast:t.toast,status:t.status})))}};KolToastContainer.style={default:defaultStyleCss},exports.kol_toast_container=KolToastContainer;
4
+ "use strict";var index=require("./index-CUwAAV9q.js"),i18n=require("./i18n-DNWGj4j8.js"),dev_utils=require("./dev.utils-7DjklDXI.js"),componentNames=require("./component-names-CuI-0Pbo.js"),Alert=require("./Alert-iB2nNldZ.js");require("./common-Cd2qH809.js"),require("./markdown-1dxeA2q6.js");var tslib_es6=require("./tslib.es6-7DbU_BSw.js"),clsx=require("./clsx-CkZlkaek.js");require("./i18n-BnIFsVIa.js"),require("./bem-CWXmxX43.js"),require("./browser-D7A31aEp.js"),require("./Heading-CXo3APiB.js");const ToastItemFc=t=>{var{status:e,toast:o,onClose:s}=t,a=tslib_es6.__rest(t,["status","toast","onClose"]);const{type:i,label:n,description:l,variant:r}=o;return index.h("div",{class:clsx.clsx("kol-toast-item",`kol-toast-item--${e}`)},index.h(Alert.KolAlertFc,{class:"kol-toast-item__alert",alert:!0,label:n,level:0,hasCloser:!0,type:i,variant:r||"card",onCloserClick:s},index.h("div",Object.assign({},a),l)))},defaultStyleCss=()=>" @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component; @layer kol-a11y { :host { --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16)); color: black; background-color: white; font-family: Verdana; letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; white-space: nowrap; clip-path: inset(50%); } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: lightgray; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } .kol-span .kol-span__label--hide-label .kol-span__label { display: none; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled], [disabled]:focus { opacity: 0.5; outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } } @layer kol-component { :host { display: block; } } @layer kol-component { .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: #000; background-color: #fff; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: #000; background-color: #fff; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-alert { display: grid; } .kol-alert__container { display: flex; place-items: center; } .kol-alert__container-content { flex-grow: 1; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); } :host { display: flex; position: fixed; z-index: 200; max-width: 90vw; flex-direction: column; } .kol-toast-container__close-all { align-self: flex-end; } }",TRANSITION_TIMEOUT=300,KolToastContainer=class{constructor(t){index.registerInstance(this,t),this.state={_toastStates:[]},this.translateToastCloseAll=i18n.translate("kol-toast-close-all"),this.knownRenderFunctions=new Set}async enqueue(t){const e={toast:Object.assign(Object.assign({},t),{variant:"card"}),status:"adding",id:`toast-${dev_utils.nonce()}`};return this.state=Object.assign(Object.assign({},this.state),{_toastStates:[e,...this.state._toastStates]}),setTimeout(()=>{this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.map(t=>t.id===e.id&&"removing"!==t.status?Object.assign(Object.assign({},t),{status:"settled"}):t)})},300),()=>{this.handleClose(e)}}handleClose(t){this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.map(e=>(e.id===t.id&&(e.status="removing"),e))}),setTimeout(()=>{var e,o;this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.filter(e=>e.id!==t.id)}),null===(o=(e=t.toast).onClose)||void 0===o||o.call(e)},300)}async closeAll(t=!1){if(t)this.state=Object.assign(Object.assign({},this.state),{_toastStates:[]});else{const t=[...this.state._toastStates];this.state=Object.assign(Object.assign({},this.state),{_toastStates:t.map(t=>Object.assign(Object.assign({},t),{status:"removing"}))}),setTimeout(()=>{this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.filter(e=>t.every(t=>t.id!==e.id))}),t.forEach(t=>{var e,o;null===(o=(e=t.toast).onClose)||void 0===o||o.call(e)})},300)}}handleToastRef(t,e){e&&"function"==typeof t.toast.render&&!this.knownRenderFunctions.has(t.toast.render)&&(this.knownRenderFunctions.add(t.toast.render),t.toast.render(e,{close:()=>this.handleClose(t)}))}render(){return index.h(index.Host,{key:"05182cc920080f5bc3c06bb647a1bf59c58fae8d",class:"kol-toast-container"},this.state._toastStates.length>1&&index.h(componentNames.KolButtonTag,{key:"e4e196489dd617e994ba8c11c38893dd505db1e1",_label:this.translateToastCloseAll,class:"kol-toast-container__button-close-all",_on:{onClick:()=>{this.closeAll()}}}),this.state._toastStates.map(t=>index.h(ToastItemFc,{key:t.id,onClose:()=>this.handleClose(t),ref:e=>this.handleToastRef(t,e),toast:t.toast,status:t.status})))}};KolToastContainer.style={default:defaultStyleCss()},exports.kol_toast_container=KolToastContainer;