@public-ui/components 3.1.0-rc.0 → 3.1.0-rc.1

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 (355) hide show
  1. package/custom-elements.json +1 -1
  2. package/dist/cjs/{Alert-Bj1BTIEj.js → Alert-DfF6pi1r.js} +1 -1
  3. package/dist/cjs/{Alert-Bj1BTIEj.js.map → Alert-DfF6pi1r.js.map} +1 -1
  4. package/dist/cjs/{Collapsible-aA771eR4.js → Collapsible-CLx0W4A9.js} +1 -1
  5. package/dist/cjs/{Collapsible-aA771eR4.js.map → Collapsible-CLx0W4A9.js.map} +1 -1
  6. package/dist/cjs/{CustomSuggestionsOptionsGroup-cTHRZeAc.js → CustomSuggestionsOptionsGroup-BdxFs_LG.js} +1 -1
  7. package/dist/cjs/{CustomSuggestionsOptionsGroup-cTHRZeAc.js.map → CustomSuggestionsOptionsGroup-BdxFs_LG.js.map} +1 -1
  8. package/dist/cjs/{FieldControlStateWrapper-Cyr_zzt3.js → FieldControlStateWrapper-B1pTh6HU.js} +1 -1
  9. package/dist/cjs/{FieldControlStateWrapper-Cyr_zzt3.js.map → FieldControlStateWrapper-B1pTh6HU.js.map} +1 -1
  10. package/dist/cjs/{FormFieldStateWrapper-B2LPpMpo.js → FormFieldStateWrapper-ClCM0elK.js} +1 -1
  11. package/dist/cjs/{FormFieldStateWrapper-B2LPpMpo.js.map → FormFieldStateWrapper-ClCM0elK.js.map} +1 -1
  12. package/dist/cjs/{Heading-BZTrj6_i.js → Heading-CWat1DEt.js} +1 -1
  13. package/dist/cjs/{Heading-BZTrj6_i.js.map → Heading-CWat1DEt.js.map} +1 -1
  14. package/dist/cjs/Icon-Dt9mYxSx.js +4 -0
  15. package/dist/cjs/{Icon-B9T-4CsE.js.map → Icon-Dt9mYxSx.js.map} +1 -1
  16. package/dist/cjs/Input-BB9iPhrt.js +4 -0
  17. package/dist/cjs/{Input-BCYP3Fc4.js.map → Input-BB9iPhrt.js.map} +1 -1
  18. package/dist/cjs/{InputStateWrapper-uvFi_BbH.js → InputStateWrapper-Bm5LkOTg.js} +1 -1
  19. package/dist/cjs/{InputStateWrapper-uvFi_BbH.js.map → InputStateWrapper-Bm5LkOTg.js.map} +1 -1
  20. package/dist/cjs/{InternalUnderlinedBadgeText-uCh_T5VD.js → InternalUnderlinedBadgeText-DywRqXji.js} +1 -1
  21. package/dist/cjs/{InternalUnderlinedBadgeText-uCh_T5VD.js.map → InternalUnderlinedBadgeText-DywRqXji.js.map} +1 -1
  22. package/dist/cjs/{Span-BkNklKcs.js → Span-Cp4f8qt3.js} +1 -1
  23. package/dist/cjs/{Span-BkNklKcs.js.map → Span-Cp4f8qt3.js.map} +1 -1
  24. package/dist/cjs/{app-globals-CXoEHCxk.js → app-globals-Be2MWNox.js} +1 -1
  25. package/dist/cjs/{app-globals-CXoEHCxk.js.map → app-globals-Be2MWNox.js.map} +1 -1
  26. package/dist/cjs/{bem-Bu0VYjZa.js → bem-CWXmxX43.js} +1 -1
  27. package/dist/{kolibri/bem-C27SfH6w.js.map → cjs/bem-CWXmxX43.js.map} +1 -1
  28. package/dist/cjs/{controller-DmfL38P4.js → controller-BY-Gfbgp.js} +1 -1
  29. package/dist/cjs/{controller-DmfL38P4.js.map → controller-BY-Gfbgp.js.map} +1 -1
  30. package/dist/cjs/{controller-DLwQQPHC.js → controller-CD6T4mPV.js} +1 -1
  31. package/dist/cjs/{controller-DLwQQPHC.js.map → controller-CD6T4mPV.js.map} +1 -1
  32. package/dist/cjs/{controller-LxYfXuho.js → controller-D-Fy_4el.js} +1 -1
  33. package/dist/cjs/{controller-LxYfXuho.js.map → controller-D-Fy_4el.js.map} +1 -1
  34. package/dist/cjs/{controller-icon-9udvsM5R.js → controller-icon-Cdldbw48.js} +1 -1
  35. package/dist/cjs/{controller-icon-9udvsM5R.js.map → controller-icon-Cdldbw48.js.map} +1 -1
  36. package/dist/cjs/{dev.utils-fZEgoGGu.js → dev.utils-BauUU93N.js} +1 -1
  37. package/dist/cjs/{dev.utils-fZEgoGGu.js.map → dev.utils-BauUU93N.js.map} +1 -1
  38. package/dist/cjs/{devtools-yltf149z.js → devtools-64uESiJl.js} +1 -1
  39. package/dist/cjs/{devtools-yltf149z.js.map → devtools-64uESiJl.js.map} +1 -1
  40. package/dist/cjs/{index-uT47A9Jc.js → index-DarjP8Gj.js} +1 -1
  41. package/dist/cjs/{index-uT47A9Jc.js.map → index-DarjP8Gj.js.map} +1 -1
  42. package/dist/cjs/index.cjs.js +1 -1
  43. package/dist/cjs/isObject-DMA85Fq4.js.map +1 -1
  44. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  45. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  46. package/dist/cjs/kol-alert-wc.cjs.entry.js +1 -1
  47. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  48. package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
  49. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  50. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  51. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  52. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  53. package/dist/cjs/kol-button-wc.cjs.entry.js +1 -1
  54. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  55. package/dist/cjs/kol-card-wc.cjs.entry.js +1 -1
  56. package/dist/cjs/kol-card-wc.entry.cjs.js.map +1 -1
  57. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  58. package/dist/cjs/kol-combobox.cjs.entry.js +1 -1
  59. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  60. package/dist/cjs/kol-drawer.cjs.entry.js +1 -1
  61. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  62. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  63. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  64. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  65. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  66. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  67. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  68. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  69. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  70. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  71. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  72. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  73. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  74. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  75. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  76. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  77. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  78. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  79. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  80. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  81. package/dist/cjs/kol-nav.entry.cjs.js.map +1 -1
  82. package/dist/cjs/kol-pagination-wc.cjs.entry.js +1 -1
  83. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  84. package/dist/cjs/kol-popover-button-wc.cjs.entry.js +1 -1
  85. package/dist/cjs/kol-popover-button.cjs.entry.js +1 -1
  86. package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
  87. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  88. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  89. package/dist/cjs/kol-select-wc.cjs.entry.js +1 -1
  90. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  91. package/dist/cjs/kol-single-select.cjs.entry.js +1 -1
  92. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  93. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  94. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  95. package/dist/cjs/kol-table-settings-wc.cjs.entry.js +1 -1
  96. package/dist/cjs/kol-table-stateful.cjs.entry.js +1 -1
  97. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js +1 -1
  98. package/dist/cjs/kol-table-stateless-wc.entry.cjs.js.map +1 -1
  99. package/dist/cjs/kol-table-stateless.cjs.entry.js +1 -1
  100. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  101. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  102. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  103. package/dist/cjs/kol-toolbar.cjs.entry.js +1 -1
  104. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +1 -1
  105. package/dist/cjs/kol-tree-item-wc.cjs.entry.js +1 -1
  106. package/dist/cjs/kol-tree-item.cjs.entry.js +1 -1
  107. package/dist/cjs/kol-tree-wc.cjs.entry.js +1 -1
  108. package/dist/cjs/kol-tree.cjs.entry.js +1 -1
  109. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  110. package/dist/cjs/kolibri.cjs.js +1 -1
  111. package/dist/cjs/loader.cjs.js +1 -1
  112. package/dist/cjs/test-component.cjs.entry.js +1 -1
  113. package/dist/components/InternalUnderlinedBadgeText.js.map +1 -1
  114. package/dist/components/bem2.js +1 -1
  115. package/dist/components/bem2.js.map +1 -1
  116. package/dist/components/controller2.js.map +1 -1
  117. package/dist/components/isObject.js.map +1 -1
  118. package/dist/components/kol-card-wc.js +1 -1
  119. package/dist/components/kol-card-wc.js.map +1 -1
  120. package/dist/components/kol-nav.js +1 -1
  121. package/dist/components/kol-nav.js.map +1 -1
  122. package/dist/components/kol-table-stateless-wc.js.map +1 -1
  123. package/dist/esm/{Alert-DFxK42_b.js → Alert-DZ3Qvmx3.js} +1 -1
  124. package/dist/{kolibri/Alert-DFxK42_b.js.map → esm/Alert-DZ3Qvmx3.js.map} +1 -1
  125. package/dist/esm/{Collapsible-CaNCj17a.js → Collapsible-sLC3-zDi.js} +1 -1
  126. package/dist/esm/{Collapsible-CaNCj17a.js.map → Collapsible-sLC3-zDi.js.map} +1 -1
  127. package/dist/esm/{CustomSuggestionsOptionsGroup-BElrEzPg.js → CustomSuggestionsOptionsGroup-110zEZnD.js} +1 -1
  128. package/dist/{kolibri/CustomSuggestionsOptionsGroup-BElrEzPg.js.map → esm/CustomSuggestionsOptionsGroup-110zEZnD.js.map} +1 -1
  129. package/dist/esm/{FieldControlStateWrapper-BQEssIZt.js → FieldControlStateWrapper-Dwn9ilVO.js} +1 -1
  130. package/dist/{kolibri/FieldControlStateWrapper-BQEssIZt.js.map → esm/FieldControlStateWrapper-Dwn9ilVO.js.map} +1 -1
  131. package/dist/esm/{FormFieldStateWrapper-Bs6adxNw.js → FormFieldStateWrapper-CMVWsf1s.js} +1 -1
  132. package/dist/esm/{FormFieldStateWrapper-Bs6adxNw.js.map → FormFieldStateWrapper-CMVWsf1s.js.map} +1 -1
  133. package/dist/esm/{Heading-DqCQ4tvo.js → Heading-CLE-Js8a.js} +1 -1
  134. package/dist/{kolibri/Heading-DqCQ4tvo.js.map → esm/Heading-CLE-Js8a.js.map} +1 -1
  135. package/dist/esm/{Icon-qDQ9VVcv.js → Icon-R0rZZbtD.js} +1 -1
  136. package/dist/esm/{Icon-qDQ9VVcv.js.map → Icon-R0rZZbtD.js.map} +1 -1
  137. package/dist/esm/{Input-WOVJOXlM.js → Input-Dc432kZ2.js} +1 -1
  138. package/dist/esm/{Input-WOVJOXlM.js.map → Input-Dc432kZ2.js.map} +1 -1
  139. package/dist/esm/{InputStateWrapper-C9u4kUR_.js → InputStateWrapper-D6x3J4a5.js} +1 -1
  140. package/dist/esm/{InputStateWrapper-C9u4kUR_.js.map → InputStateWrapper-D6x3J4a5.js.map} +1 -1
  141. package/dist/esm/{InternalUnderlinedBadgeText-CNjTZsLo.js → InternalUnderlinedBadgeText-CQHhXGXt.js} +1 -1
  142. package/dist/esm/{InternalUnderlinedBadgeText-CNjTZsLo.js.map → InternalUnderlinedBadgeText-CQHhXGXt.js.map} +1 -1
  143. package/dist/esm/{Span-CgBP4Uo5.js → Span-MWb3xhCV.js} +1 -1
  144. package/dist/{kolibri/Span-CgBP4Uo5.js.map → esm/Span-MWb3xhCV.js.map} +1 -1
  145. package/dist/esm/{app-globals-C1JBLIBF.js → app-globals-DP-Al-8J.js} +1 -1
  146. package/dist/esm/{app-globals-C1JBLIBF.js.map → app-globals-DP-Al-8J.js.map} +1 -1
  147. package/dist/esm/{bem-C27SfH6w.js → bem-Dj4gWVFO.js} +1 -1
  148. package/dist/{cjs/bem-Bu0VYjZa.js.map → esm/bem-Dj4gWVFO.js.map} +1 -1
  149. package/dist/esm/{controller-D3181HNj.js → controller-ByoIxwlc.js} +1 -1
  150. package/dist/esm/{controller-D3181HNj.js.map → controller-ByoIxwlc.js.map} +1 -1
  151. package/dist/esm/{controller-CHfpEwXt.js → controller-DiBS7J6Z.js} +1 -1
  152. package/dist/esm/{controller-CHfpEwXt.js.map → controller-DiBS7J6Z.js.map} +1 -1
  153. package/dist/esm/{controller-XsiwUqFk.js → controller-YU3DJWZU.js} +1 -1
  154. package/dist/esm/{controller-XsiwUqFk.js.map → controller-YU3DJWZU.js.map} +1 -1
  155. package/dist/esm/{controller-icon-s2Mrr-X3.js → controller-icon-DwSibEz-.js} +1 -1
  156. package/dist/esm/{controller-icon-s2Mrr-X3.js.map → controller-icon-DwSibEz-.js.map} +1 -1
  157. package/dist/esm/{dev.utils-Bl9mUZR6.js → dev.utils-1ts_3yRe.js} +1 -1
  158. package/dist/esm/{dev.utils-Bl9mUZR6.js.map → dev.utils-1ts_3yRe.js.map} +1 -1
  159. package/dist/esm/{devtools-DfvAaTZM.js → devtools-CjGJpuSn.js} +1 -1
  160. package/dist/esm/{devtools-DfvAaTZM.js.map → devtools-CjGJpuSn.js.map} +1 -1
  161. package/dist/esm/{index-BuVNvMVh.js → index-DuOiqRzT.js} +1 -1
  162. package/dist/esm/{index-BuVNvMVh.js.map → index-DuOiqRzT.js.map} +1 -1
  163. package/dist/esm/index.js +1 -1
  164. package/dist/esm/isObject-DvSELytj.js.map +1 -1
  165. package/dist/esm/kol-abbr.entry.js +1 -1
  166. package/dist/esm/kol-accordion.entry.js +1 -1
  167. package/dist/esm/kol-alert-wc.entry.js +1 -1
  168. package/dist/esm/kol-alert.entry.js +1 -1
  169. package/dist/esm/kol-avatar-wc.entry.js +1 -1
  170. package/dist/esm/kol-avatar.entry.js +1 -1
  171. package/dist/esm/kol-badge.entry.js +1 -1
  172. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  173. package/dist/esm/kol-button-link.entry.js +1 -1
  174. package/dist/esm/kol-button-wc.entry.js +1 -1
  175. package/dist/esm/kol-button.entry.js +1 -1
  176. package/dist/esm/kol-card-wc.entry.js +1 -1
  177. package/dist/esm/kol-card-wc.entry.js.map +1 -1
  178. package/dist/esm/kol-card.entry.js +1 -1
  179. package/dist/esm/kol-combobox.entry.js +1 -1
  180. package/dist/esm/kol-details.entry.js +1 -1
  181. package/dist/esm/kol-drawer.entry.js +1 -1
  182. package/dist/esm/kol-form.entry.js +1 -1
  183. package/dist/esm/kol-heading.entry.js +1 -1
  184. package/dist/esm/kol-icon.entry.js +1 -1
  185. package/dist/esm/kol-image.entry.js +1 -1
  186. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  187. package/dist/esm/kol-input-color.entry.js +1 -1
  188. package/dist/esm/kol-input-date.entry.js +1 -1
  189. package/dist/esm/kol-input-email.entry.js +1 -1
  190. package/dist/esm/kol-input-file.entry.js +1 -1
  191. package/dist/esm/kol-input-number.entry.js +1 -1
  192. package/dist/esm/kol-input-password.entry.js +1 -1
  193. package/dist/esm/kol-input-radio.entry.js +1 -1
  194. package/dist/esm/kol-input-range.entry.js +1 -1
  195. package/dist/esm/kol-input-text.entry.js +1 -1
  196. package/dist/esm/kol-kolibri.entry.js +1 -1
  197. package/dist/esm/kol-link-button.entry.js +1 -1
  198. package/dist/esm/kol-link-wc.entry.js +1 -1
  199. package/dist/esm/kol-link.entry.js +1 -1
  200. package/dist/esm/kol-modal.entry.js +1 -1
  201. package/dist/esm/kol-nav.entry.js +1 -1
  202. package/dist/esm/kol-nav.entry.js.map +1 -1
  203. package/dist/esm/kol-pagination-wc.entry.js +1 -1
  204. package/dist/esm/kol-pagination.entry.js +1 -1
  205. package/dist/esm/kol-popover-button-wc.entry.js +1 -1
  206. package/dist/esm/kol-popover-button.entry.js +1 -1
  207. package/dist/esm/kol-popover-wc.entry.js +1 -1
  208. package/dist/esm/kol-progress.entry.js +1 -1
  209. package/dist/esm/kol-quote.entry.js +1 -1
  210. package/dist/esm/kol-select-wc.entry.js +1 -1
  211. package/dist/esm/kol-select.entry.js +1 -1
  212. package/dist/esm/kol-single-select.entry.js +1 -1
  213. package/dist/esm/kol-skip-nav.entry.js +1 -1
  214. package/dist/esm/kol-spin.entry.js +1 -1
  215. package/dist/esm/kol-split-button.entry.js +1 -1
  216. package/dist/esm/kol-table-settings-wc.entry.js +1 -1
  217. package/dist/esm/kol-table-stateful.entry.js +1 -1
  218. package/dist/esm/kol-table-stateless-wc.entry.js +1 -1
  219. package/dist/esm/kol-table-stateless-wc.entry.js.map +1 -1
  220. package/dist/esm/kol-table-stateless.entry.js +1 -1
  221. package/dist/esm/kol-tabs.entry.js +1 -1
  222. package/dist/esm/kol-textarea.entry.js +1 -1
  223. package/dist/esm/kol-toast-container.entry.js +1 -1
  224. package/dist/esm/kol-toolbar.entry.js +1 -1
  225. package/dist/esm/kol-tooltip-wc.entry.js +1 -1
  226. package/dist/esm/kol-tree-item-wc.entry.js +1 -1
  227. package/dist/esm/kol-tree-item.entry.js +1 -1
  228. package/dist/esm/kol-tree-wc.entry.js +1 -1
  229. package/dist/esm/kol-tree.entry.js +1 -1
  230. package/dist/esm/kol-version.entry.js +1 -1
  231. package/dist/esm/kolibri.js +1 -1
  232. package/dist/esm/loader.js +1 -1
  233. package/dist/esm/test-component.entry.js +1 -1
  234. package/dist/kolibri/{Alert-DFxK42_b.js → Alert-DZ3Qvmx3.js} +1 -1
  235. package/dist/{esm/Alert-DFxK42_b.js.map → kolibri/Alert-DZ3Qvmx3.js.map} +1 -1
  236. package/dist/kolibri/{Collapsible-CaNCj17a.js → Collapsible-sLC3-zDi.js} +1 -1
  237. package/dist/kolibri/{Collapsible-CaNCj17a.js.map → Collapsible-sLC3-zDi.js.map} +1 -1
  238. package/dist/kolibri/{CustomSuggestionsOptionsGroup-BElrEzPg.js → CustomSuggestionsOptionsGroup-110zEZnD.js} +1 -1
  239. package/dist/{esm/CustomSuggestionsOptionsGroup-BElrEzPg.js.map → kolibri/CustomSuggestionsOptionsGroup-110zEZnD.js.map} +1 -1
  240. package/dist/kolibri/FieldControlStateWrapper-Dwn9ilVO.js +4 -0
  241. package/dist/{esm/FieldControlStateWrapper-BQEssIZt.js.map → kolibri/FieldControlStateWrapper-Dwn9ilVO.js.map} +1 -1
  242. package/dist/kolibri/{FormFieldStateWrapper-Bs6adxNw.js → FormFieldStateWrapper-CMVWsf1s.js} +1 -1
  243. package/dist/kolibri/{FormFieldStateWrapper-Bs6adxNw.js.map → FormFieldStateWrapper-CMVWsf1s.js.map} +1 -1
  244. package/dist/kolibri/{Heading-DqCQ4tvo.js → Heading-CLE-Js8a.js} +1 -1
  245. package/dist/{esm/Heading-DqCQ4tvo.js.map → kolibri/Heading-CLE-Js8a.js.map} +1 -1
  246. package/dist/kolibri/{Icon-qDQ9VVcv.js → Icon-R0rZZbtD.js} +1 -1
  247. package/dist/kolibri/{Icon-qDQ9VVcv.js.map → Icon-R0rZZbtD.js.map} +1 -1
  248. package/dist/kolibri/Input-Dc432kZ2.js +4 -0
  249. package/dist/kolibri/{Input-WOVJOXlM.js.map → Input-Dc432kZ2.js.map} +1 -1
  250. package/dist/kolibri/InputStateWrapper-D6x3J4a5.js +4 -0
  251. package/dist/kolibri/{InputStateWrapper-C9u4kUR_.js.map → InputStateWrapper-D6x3J4a5.js.map} +1 -1
  252. package/dist/kolibri/InternalUnderlinedBadgeText-CQHhXGXt.js +4 -0
  253. package/dist/kolibri/{InternalUnderlinedBadgeText-CNjTZsLo.js.map → InternalUnderlinedBadgeText-CQHhXGXt.js.map} +1 -1
  254. package/dist/kolibri/Span-MWb3xhCV.js +4 -0
  255. package/dist/{esm/Span-CgBP4Uo5.js.map → kolibri/Span-MWb3xhCV.js.map} +1 -1
  256. package/dist/kolibri/app-globals-DP-Al-8J.js +4 -0
  257. package/dist/kolibri/{app-globals-C1JBLIBF.js.map → app-globals-DP-Al-8J.js.map} +1 -1
  258. package/dist/kolibri/{bem-C27SfH6w.js → bem-Dj4gWVFO.js} +1 -1
  259. package/dist/{esm/bem-C27SfH6w.js.map → kolibri/bem-Dj4gWVFO.js.map} +1 -1
  260. package/dist/kolibri/{controller-D3181HNj.js → controller-ByoIxwlc.js} +1 -1
  261. package/dist/kolibri/{controller-D3181HNj.js.map → controller-ByoIxwlc.js.map} +1 -1
  262. package/dist/kolibri/{controller-CHfpEwXt.js → controller-DiBS7J6Z.js} +1 -1
  263. package/dist/kolibri/{controller-CHfpEwXt.js.map → controller-DiBS7J6Z.js.map} +1 -1
  264. package/dist/kolibri/{controller-XsiwUqFk.js → controller-YU3DJWZU.js} +1 -1
  265. package/dist/kolibri/{controller-XsiwUqFk.js.map → controller-YU3DJWZU.js.map} +1 -1
  266. package/dist/kolibri/{controller-icon-s2Mrr-X3.js → controller-icon-DwSibEz-.js} +1 -1
  267. package/dist/kolibri/{controller-icon-s2Mrr-X3.js.map → controller-icon-DwSibEz-.js.map} +1 -1
  268. package/dist/kolibri/{dev.utils-Bl9mUZR6.js → dev.utils-1ts_3yRe.js} +1 -1
  269. package/dist/kolibri/{dev.utils-Bl9mUZR6.js.map → dev.utils-1ts_3yRe.js.map} +1 -1
  270. package/dist/kolibri/{devtools-DfvAaTZM.js → devtools-CjGJpuSn.js} +1 -1
  271. package/dist/kolibri/{devtools-DfvAaTZM.js.map → devtools-CjGJpuSn.js.map} +1 -1
  272. package/dist/kolibri/{index-BuVNvMVh.js → index-DuOiqRzT.js} +1 -1
  273. package/dist/kolibri/{index-BuVNvMVh.js.map → index-DuOiqRzT.js.map} +1 -1
  274. package/dist/kolibri/index.esm.js +1 -1
  275. package/dist/kolibri/isObject-DvSELytj.js.map +1 -1
  276. package/dist/kolibri/kol-abbr.entry.js +1 -1
  277. package/dist/kolibri/kol-accordion.entry.js +1 -1
  278. package/dist/kolibri/kol-alert-wc.entry.js +1 -1
  279. package/dist/kolibri/kol-alert.entry.js +1 -1
  280. package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
  281. package/dist/kolibri/kol-avatar.entry.js +1 -1
  282. package/dist/kolibri/kol-badge.entry.js +1 -1
  283. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  284. package/dist/kolibri/kol-button-link.entry.js +1 -1
  285. package/dist/kolibri/kol-button-wc.entry.js +1 -1
  286. package/dist/kolibri/kol-button.entry.js +1 -1
  287. package/dist/kolibri/kol-card-wc.entry.esm.js.map +1 -1
  288. package/dist/kolibri/kol-card-wc.entry.js +1 -1
  289. package/dist/kolibri/kol-card-wc.entry.js.map +1 -1
  290. package/dist/kolibri/kol-card.entry.js +1 -1
  291. package/dist/kolibri/kol-combobox.entry.js +1 -1
  292. package/dist/kolibri/kol-details.entry.js +1 -1
  293. package/dist/kolibri/kol-drawer.entry.js +1 -1
  294. package/dist/kolibri/kol-form.entry.js +1 -1
  295. package/dist/kolibri/kol-heading.entry.js +1 -1
  296. package/dist/kolibri/kol-icon.entry.js +1 -1
  297. package/dist/kolibri/kol-image.entry.js +1 -1
  298. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  299. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  300. package/dist/kolibri/kol-input-color.entry.js +1 -1
  301. package/dist/kolibri/kol-input-date.entry.js +1 -1
  302. package/dist/kolibri/kol-input-email.entry.js +1 -1
  303. package/dist/kolibri/kol-input-file.entry.js +1 -1
  304. package/dist/kolibri/kol-input-number.entry.js +1 -1
  305. package/dist/kolibri/kol-input-password.entry.js +1 -1
  306. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  307. package/dist/kolibri/kol-input-range.entry.js +1 -1
  308. package/dist/kolibri/kol-input-text.entry.js +1 -1
  309. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  310. package/dist/kolibri/kol-link-button.entry.js +1 -1
  311. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  312. package/dist/kolibri/kol-link.entry.js +1 -1
  313. package/dist/kolibri/kol-modal.entry.js +1 -1
  314. package/dist/kolibri/kol-nav.entry.esm.js.map +1 -1
  315. package/dist/kolibri/kol-nav.entry.js +1 -1
  316. package/dist/kolibri/kol-nav.entry.js.map +1 -1
  317. package/dist/kolibri/kol-pagination-wc.entry.js +1 -1
  318. package/dist/kolibri/kol-pagination.entry.js +1 -1
  319. package/dist/kolibri/kol-popover-button-wc.entry.js +1 -1
  320. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  321. package/dist/kolibri/kol-popover-wc.entry.js +1 -1
  322. package/dist/kolibri/kol-progress.entry.js +1 -1
  323. package/dist/kolibri/kol-quote.entry.js +1 -1
  324. package/dist/kolibri/kol-select-wc.entry.js +1 -1
  325. package/dist/kolibri/kol-select.entry.js +1 -1
  326. package/dist/kolibri/kol-single-select.entry.js +1 -1
  327. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  328. package/dist/kolibri/kol-spin.entry.js +1 -1
  329. package/dist/kolibri/kol-split-button.entry.js +1 -1
  330. package/dist/kolibri/kol-table-settings-wc.entry.js +1 -1
  331. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  332. package/dist/kolibri/kol-table-stateless-wc.entry.esm.js.map +1 -1
  333. package/dist/kolibri/kol-table-stateless-wc.entry.js +1 -1
  334. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  335. package/dist/kolibri/kol-tabs.entry.js +1 -1
  336. package/dist/kolibri/kol-textarea.entry.js +1 -1
  337. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  338. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  339. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  340. package/dist/kolibri/kol-tree-item-wc.entry.js +1 -1
  341. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  342. package/dist/kolibri/kol-tree-wc.entry.js +1 -1
  343. package/dist/kolibri/kol-tree.entry.js +1 -1
  344. package/dist/kolibri/kol-version.entry.js +1 -1
  345. package/dist/kolibri/kolibri.esm.js +1 -1
  346. package/dist/kolibri/test-component.entry.js +1 -1
  347. package/package.json +2 -2
  348. package/dist/cjs/Icon-B9T-4CsE.js +0 -4
  349. package/dist/cjs/Input-BCYP3Fc4.js +0 -4
  350. package/dist/kolibri/FieldControlStateWrapper-BQEssIZt.js +0 -4
  351. package/dist/kolibri/Input-WOVJOXlM.js +0 -4
  352. package/dist/kolibri/InputStateWrapper-C9u4kUR_.js +0 -4
  353. package/dist/kolibri/InternalUnderlinedBadgeText-CNjTZsLo.js +0 -4
  354. package/dist/kolibri/Span-CgBP4Uo5.js +0 -4
  355. package/dist/kolibri/app-globals-C1JBLIBF.js +0 -4
@@ -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-DarjP8Gj.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-BauUU93N.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"],_data:["validateData"],_dataFoot:["validateDataFoot"],_headerCells:["validateHeaderCells"],_label:["validateLabel"],_minWidth:["validateMinWidth"],_on:["validateOn"],_selection:["validateSelection"],_tableSettings:["validateTableSettings"]}}};exports.kol_table_stateless_wc=KolTableStateless;