@public-ui/components 5.0.0-beta.0 → 5.0.0-beta.2

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 (1472) hide show
  1. package/README.md +1 -1
  2. package/assets/kolicons/kolicons.eot +0 -0
  3. package/assets/kolicons/kolicons.ttf +0 -0
  4. package/assets/kolicons/kolicons.woff +0 -0
  5. package/assets/kolicons/kolicons.woff2 +0 -0
  6. package/assets/kolicons/style.css +6 -6
  7. package/custom-elements.json +349 -137
  8. package/dist/cjs/{Heading-gKYGJ1tV.js → Heading-o_m1bQbh.js} +7 -7
  9. package/dist/cjs/{access-and-short-key-D40HWCJe.js → access-and-short-key-BrLP4fF_.js} +2 -0
  10. package/dist/cjs/{api-DyRC0E3C.js → api-SFTkHR9W.js} +75 -50
  11. package/dist/cjs/{app-globals-C-QndvUR.js → app-globals-BVGzsN2O.js} +6 -5
  12. package/dist/cjs/{aria-labelledby-ny809Vdx.js → aria-labelledby-CgJJS0K5.js} +4 -15
  13. package/dist/cjs/ariaCurrentService-aysGX58T.js +30 -0
  14. package/dist/cjs/{base-C9jeVqnN.js → base-4xLnw9ep.js} +37 -38
  15. package/dist/cjs/{base-DjGWfEqB.js → base-DGpJZOXm.js} +104 -104
  16. package/dist/cjs/{base-zeK_arau.js → base-DJhwvwdo.js} +27 -28
  17. package/dist/cjs/{base-Cau7nZZw.js → base-DoujJ-Xz.js} +36 -36
  18. package/dist/cjs/{base-web-component-r0Jr01kf.js → base-web-component-BgX5i_fc.js} +27 -35
  19. package/dist/cjs/base-web-component-DSCg1arP.js +66 -0
  20. package/dist/cjs/{base-web-component-BOQatEb9.js → base-web-component-nGb9E-GX.js} +24 -25
  21. package/dist/cjs/{behavior-Djs9V7Si.js → behavior-CBwUdaXu.js} +18 -19
  22. package/dist/cjs/{behavior-P_MOoqmo.js → behavior-DhfuU2HF.js} +10 -10
  23. package/dist/cjs/{behavior-APmbiQTR.js → behavior-S2U8skNd.js} +34 -44
  24. package/dist/cjs/{bem-registry-Q82FjrSD.js → bem-registry-CMf1T2kb.js} +100 -15
  25. package/dist/cjs/bootstrap-C4GRmpTI.js +59 -0
  26. package/dist/cjs/{color-CbCW4wyr.js → color-BWamMCyw.js} +15 -5
  27. package/dist/cjs/{component-w4DHKGRj.js → component-BGIFlgKu.js} +11 -12
  28. package/dist/cjs/component-BM6eWMuC.js +177 -0
  29. package/dist/cjs/component-CKc_-O64.js +91 -0
  30. package/dist/cjs/{component-DTToXqth.js → component-CweSM_ze.js} +6 -5
  31. package/dist/cjs/{component-hiip9BeX.js → component-DPCpVWBj.js} +13 -12
  32. package/dist/cjs/component-DSlW2KVw.js +48 -0
  33. package/dist/cjs/component-DTC3WbHR.js +52 -0
  34. package/dist/cjs/component-DUvRV4FE.js +99 -0
  35. package/dist/cjs/component-SeQac11p.js +19 -0
  36. package/dist/cjs/component-names-CyEXMjv9.js +121 -0
  37. package/dist/cjs/component-t6Upgw7f.js +140 -0
  38. package/dist/cjs/{contrast-BTU5ne8E.js → contrast-CXinV5ii.js} +8 -8
  39. package/dist/cjs/{controller-ncy0x4Nz.js → controller-D4usgPg-.js} +29 -29
  40. package/dist/cjs/{dev.utils-r-OFnYmI.js → dev.utils-glOxiW4E.js} +9 -10
  41. package/dist/cjs/{devtools-BjCHvsaO.js → devtools-VDx5moKY.js} +24 -25
  42. package/dist/cjs/disabled-CZJO6fbW.js +11 -0
  43. package/dist/cjs/{element-focus-D5g3xQN4.js → element-focus-IBv4yiNw.js} +25 -0
  44. package/dist/cjs/{element-interaction-7FI_z19L.js → element-interaction-CvCJFwUh.js} +2 -1
  45. package/dist/cjs/{events-BJC5JJcU.js → events-fafEzzml.js} +2 -0
  46. package/dist/cjs/{field-control-B2MocM-9.js → field-control-xEw1WZFL.js} +12 -13
  47. package/dist/cjs/{group-DUgI6ORW.js → group-CMns8Vns.js} +9 -10
  48. package/dist/cjs/has-closer-Cs7BCj4r.js +11 -0
  49. package/dist/cjs/href-C93ktLo4.js +11 -0
  50. package/dist/cjs/{i18n-BSWM5nea.js → i18n-DXYL9rIn.js} +11 -6
  51. package/dist/cjs/{i18n-BPfGxCna.js → i18n-YdI7_XKo.js} +3 -3
  52. package/dist/cjs/id-CtES_I0D.js +11 -0
  53. package/dist/cjs/{index-1NUYc4bH.js → index-B65pR1Ir.js} +1807 -65
  54. package/dist/cjs/index.cjs.js +20 -14
  55. package/dist/cjs/input-Bi8Zo8Bv.js +18 -0
  56. package/dist/cjs/{input-container-Ce6tEgzv.js → input-container-BErSDYvG.js} +18 -21
  57. package/dist/cjs/{item-CU9y10V3.js → item-BHQRF4Sp.js} +9 -9
  58. package/dist/cjs/{item-BDJC0QKy.js → item-BLhkAIub.js} +9 -9
  59. package/dist/cjs/{item-CdalyKjL.js → item-BVHbqXo2.js} +70 -58
  60. package/dist/cjs/{item-do7gGebG.js → item-N9AmF46D.js} +43 -42
  61. package/dist/cjs/{item-pool-CY0WyGOL.js → item-pool-ecjkEvCG.js} +2 -0
  62. package/dist/cjs/{keyboard-Ca1I5RM2.js → keyboard-DHPlsLs0.js} +2 -0
  63. package/dist/cjs/kol-abbr.cjs.entry.js +16 -18
  64. package/dist/cjs/kol-accordion.cjs.entry.js +32 -28
  65. package/dist/cjs/kol-alert.cjs.entry.js +46 -42
  66. package/dist/cjs/kol-avatar.cjs.entry.js +31 -25
  67. package/dist/cjs/kol-badge.cjs.entry.js +43 -43
  68. package/dist/cjs/kol-breadcrumb.cjs.entry.js +59 -60
  69. package/dist/cjs/kol-button-link.cjs.entry.js +55 -42
  70. package/dist/cjs/kol-button.cjs.entry.js +56 -42
  71. package/dist/cjs/kol-card.cjs.entry.js +50 -54
  72. package/dist/cjs/kol-combobox.cjs.entry.js +83 -72
  73. package/dist/cjs/kol-details.cjs.entry.js +32 -28
  74. package/dist/cjs/kol-dialog.cjs.entry.js +45 -42
  75. package/dist/cjs/kol-drawer.cjs.entry.js +51 -55
  76. package/dist/cjs/kol-form.cjs.entry.js +43 -42
  77. package/dist/cjs/kol-heading.cjs.entry.js +24 -20
  78. package/dist/cjs/kol-icon.cjs.entry.js +21 -17
  79. package/dist/cjs/kol-image.cjs.entry.js +24 -19
  80. package/dist/cjs/kol-input-checkbox.cjs.entry.js +89 -77
  81. package/dist/cjs/kol-input-color.cjs.entry.js +79 -70
  82. package/dist/cjs/kol-input-date.cjs.entry.js +106 -76
  83. package/dist/cjs/kol-input-email.cjs.entry.js +79 -61
  84. package/dist/cjs/kol-input-file.cjs.entry.js +79 -64
  85. package/dist/cjs/kol-input-number.cjs.entry.js +89 -70
  86. package/dist/cjs/kol-input-password.cjs.entry.js +86 -66
  87. package/dist/cjs/kol-input-radio.cjs.entry.js +63 -59
  88. package/dist/cjs/kol-input-range.cjs.entry.js +77 -62
  89. package/dist/cjs/kol-input-text.cjs.entry.js +97 -72
  90. package/dist/cjs/kol-kolibri.cjs.entry.js +19 -21
  91. package/dist/cjs/kol-link-button.cjs.entry.js +53 -39
  92. package/dist/cjs/kol-link.cjs.entry.js +49 -37
  93. package/dist/cjs/kol-meter.cjs.entry.js +44 -34
  94. package/dist/cjs/kol-modal.cjs.entry.js +44 -42
  95. package/dist/cjs/kol-nav.cjs.entry.js +70 -70
  96. package/dist/cjs/kol-pagination.cjs.entry.js +57 -58
  97. package/dist/cjs/kol-popover-button.cjs.entry.js +57 -45
  98. package/dist/cjs/kol-progress.cjs.entry.js +38 -28
  99. package/dist/cjs/kol-quote.cjs.entry.js +24 -24
  100. package/dist/cjs/kol-select.cjs.entry.js +66 -54
  101. package/dist/cjs/kol-single-select.cjs.entry.js +86 -72
  102. package/dist/cjs/kol-skip-nav.cjs.entry.js +57 -57
  103. package/dist/cjs/kol-spin.cjs.entry.js +26 -39
  104. package/dist/cjs/kol-split-button.cjs.entry.js +63 -49
  105. package/dist/cjs/kol-table-stateful.cjs.entry.js +95 -85
  106. package/dist/cjs/kol-table-stateless.cjs.entry.js +62 -64
  107. package/dist/cjs/kol-tabs.cjs.entry.js +68 -68
  108. package/dist/cjs/kol-textarea.cjs.entry.js +89 -71
  109. package/dist/cjs/kol-toast-container.cjs.entry.js +29 -27
  110. package/dist/cjs/kol-toolbar.cjs.entry.js +62 -60
  111. package/dist/cjs/kol-tree-item.cjs.entry.js +56 -50
  112. package/dist/cjs/kol-tree.cjs.entry.js +38 -26
  113. package/dist/cjs/kol-version.cjs.entry.js +28 -26
  114. package/dist/cjs/kolibri.cjs.js +6 -5
  115. package/dist/cjs/label-0j3-2J3C.js +15 -0
  116. package/dist/cjs/label-hints-DEiM49uy.js +22 -0
  117. package/dist/cjs/label-lang-segment-BBCLeyBy.js +14 -0
  118. package/dist/cjs/label-with-expert-slot-D0wokf7-.js +15 -0
  119. package/dist/cjs/level-xVivGv7t.js +12 -0
  120. package/dist/cjs/link-target-D9qpCovV.js +11 -0
  121. package/dist/cjs/links-DlW9up_d.js +15 -0
  122. package/dist/cjs/loader.cjs.js +5 -4
  123. package/dist/cjs/multiple-DO-asa_4.js +11 -0
  124. package/dist/cjs/{number-value-aLzn0dDO.js → number-value-BUKMKQvN.js} +6 -5
  125. package/dist/cjs/open-BVqlpoxd.js +11 -0
  126. package/dist/cjs/{open-items-cache-B6hP2Aqy.js → open-items-cache-DuXVixiW.js} +2 -0
  127. package/dist/cjs/{options-z7FKffHh.js → options-Dg3zz7Wo.js} +2 -0
  128. package/dist/cjs/{options-BRwmqi8M.js → options-vneqbPL0.js} +4 -4
  129. package/dist/cjs/{orientation-BcqEqZ3D.js → orientation-DL6G4K4r.js} +4 -3
  130. package/dist/cjs/placeholder-C-ecB96f.js +11 -0
  131. package/dist/cjs/{base-web-component-DPBaBA5x.js → props-from-config-Bm6Pf2tK.js} +355 -85
  132. package/dist/cjs/read-only-D__auxXg.js +11 -0
  133. package/dist/cjs/required-DqW-WueJ.js +11 -0
  134. package/dist/cjs/resolve-props-CjhxUwj-.js +60 -0
  135. package/dist/cjs/resolve-props-DKYD6i56.js +57 -0
  136. package/dist/cjs/rows-Z8UDqY9u.js +11 -0
  137. package/dist/cjs/{scroll-lock-Bs5vb-ss.js → scroll-lock-DgqKifg3.js} +8 -7
  138. package/dist/cjs/shared-state-C2e8sL5f.js +16 -0
  139. package/dist/cjs/smart-button-C_S63qaB.js +18 -0
  140. package/dist/cjs/spell-check-CT0WE9tq.js +11 -0
  141. package/dist/cjs/src-Bwu1rJi2.js +11 -0
  142. package/dist/cjs/step-W8T4AA1l.js +11 -0
  143. package/dist/cjs/suggestions-C-tM7INY.js +24 -0
  144. package/dist/cjs/{suggestions-B4X9HMr-.js → suggestions-DvPhi4lP.js} +4 -4
  145. package/dist/cjs/test-component.cjs.entry.js +3 -3
  146. package/dist/cjs/theme-store-CHGfvYB-.js +13 -0
  147. package/dist/cjs/{toggle-handler-AgDdplvI.js → toggle-handler-DHEfrMM0.js} +15 -18
  148. package/dist/cjs/{tooltip-open-tracking-Ba0udJRU.js → tooltip-open-tracking-DaQFzT-b.js} +8 -5
  149. package/dist/cjs/unique-nav-labels-CpJcPNBO.js +25 -0
  150. package/dist/cjs/unit-CNVBdvOH.js +14 -0
  151. package/dist/cjs/validators-BM9XrnzJ.js +18 -0
  152. package/dist/cjs/value-string-DXRes-dR.js +11 -0
  153. package/dist/cjs/{width-DF6eLXIz.js → width-BAwXHART.js} +8 -4
  154. package/dist/collection/collection-manifest.json +12 -23
  155. package/dist/collection/components/abbr/component.js +13 -11
  156. package/dist/collection/components/abbr/style.css +21 -3
  157. package/dist/collection/components/accordion/component.js +39 -21
  158. package/dist/collection/components/accordion/style.css +23 -5
  159. package/dist/collection/components/alert/component.js +40 -23
  160. package/dist/collection/components/alert/style.css +23 -5
  161. package/dist/collection/components/avatar/component.js +33 -13
  162. package/dist/collection/components/avatar/style.css +21 -3
  163. package/dist/collection/components/badge/component.js +20 -13
  164. package/dist/collection/components/badge/style.css +23 -5
  165. package/dist/collection/components/breadcrumb/component.js +8 -7
  166. package/dist/collection/components/breadcrumb/style.css +23 -5
  167. package/dist/collection/components/button/base.js +4 -4
  168. package/dist/collection/components/button/component.js +110 -38
  169. package/dist/collection/components/button/style.css +23 -5
  170. package/dist/collection/components/button-link/component.js +101 -47
  171. package/dist/collection/components/button-link/style.css +23 -5
  172. package/dist/collection/components/card/base.js +5 -5
  173. package/dist/collection/components/card/component.js +35 -20
  174. package/dist/collection/components/card/style.css +26 -5
  175. package/dist/collection/components/combobox/component.js +152 -66
  176. package/dist/collection/components/combobox/style.css +24 -7
  177. package/dist/collection/components/details/component.js +39 -21
  178. package/dist/collection/components/details/style.css +23 -5
  179. package/dist/collection/components/dialog/base.js +15 -15
  180. package/dist/collection/components/dialog/component.js +25 -13
  181. package/dist/collection/components/dialog/style.css +26 -5
  182. package/dist/collection/components/drawer/component.js +34 -29
  183. package/dist/collection/components/drawer/style.css +26 -5
  184. package/dist/collection/components/form/component.js +11 -6
  185. package/dist/collection/components/form/controller.js +17 -16
  186. package/dist/collection/components/form/style.css +23 -5
  187. package/dist/collection/components/heading/component.js +19 -10
  188. package/dist/collection/components/heading/style.css +21 -3
  189. package/dist/collection/components/icon/component.js +15 -8
  190. package/dist/collection/components/icon/style.css +2 -2
  191. package/dist/collection/components/image/component.js +51 -15
  192. package/dist/collection/components/image/style.css +21 -3
  193. package/dist/collection/components/input-checkbox/component.js +145 -76
  194. package/dist/collection/components/input-checkbox/style.css +25 -8
  195. package/dist/collection/components/input-color/component.js +127 -63
  196. package/dist/collection/components/input-color/style.css +24 -7
  197. package/dist/collection/components/input-date/component.js +153 -74
  198. package/dist/collection/components/input-date/style.css +24 -7
  199. package/dist/collection/components/input-email/component.js +200 -83
  200. package/dist/collection/components/input-email/style.css +24 -7
  201. package/dist/collection/components/input-file/component.js +146 -68
  202. package/dist/collection/components/input-file/style.css +24 -7
  203. package/dist/collection/components/input-number/component.js +160 -74
  204. package/dist/collection/components/input-number/style.css +24 -7
  205. package/dist/collection/components/input-password/component.js +193 -79
  206. package/dist/collection/components/input-password/style.css +24 -7
  207. package/dist/collection/components/input-radio/component.js +92 -50
  208. package/dist/collection/components/input-radio/style.css +25 -8
  209. package/dist/collection/components/input-range/component.js +114 -52
  210. package/dist/collection/components/input-range/style.css +24 -7
  211. package/dist/collection/components/input-text/component.js +194 -81
  212. package/dist/collection/components/input-text/style.css +24 -7
  213. package/dist/collection/components/kolibri/component.js +12 -5
  214. package/dist/collection/components/kolibri/style.css +21 -3
  215. package/dist/collection/components/link/ariaCurrentService.js +9 -9
  216. package/dist/collection/components/link/base.js +4 -4
  217. package/dist/collection/components/link/component.js +89 -42
  218. package/dist/collection/components/link/style.css +23 -5
  219. package/dist/collection/components/link-button/component.js +81 -36
  220. package/dist/collection/components/link-button/style.css +23 -5
  221. package/dist/collection/components/meter/component.js +88 -26
  222. package/dist/collection/components/meter/style.css +21 -3
  223. package/dist/collection/components/modal/component.js +24 -13
  224. package/dist/collection/components/modal/style.css +26 -5
  225. package/dist/collection/components/nav/component.js +43 -21
  226. package/dist/collection/components/nav/style.css +23 -5
  227. package/dist/collection/components/pagination/component.js +40 -17
  228. package/dist/collection/components/pagination/style.css +24 -7
  229. package/dist/collection/components/popover-button/base.js +2 -2
  230. package/dist/collection/components/popover-button/component.js +82 -30
  231. package/dist/collection/components/popover-button/style.css +23 -5
  232. package/dist/collection/components/progress/component.js +56 -19
  233. package/dist/collection/components/progress/style.css +21 -3
  234. package/dist/collection/components/{_skeleton/public-api → public-api}/contract.js +8 -8
  235. package/dist/collection/components/quote/component.js +40 -17
  236. package/dist/collection/components/quote/style.css +21 -3
  237. package/dist/collection/components/select/component.js +138 -64
  238. package/dist/collection/components/select/style.css +24 -7
  239. package/dist/collection/components/single-select/component.js +145 -64
  240. package/dist/collection/components/single-select/style.css +24 -7
  241. package/dist/collection/components/skip-nav/component.js +9 -6
  242. package/dist/collection/components/skip-nav/style.css +23 -5
  243. package/dist/collection/components/spin/component.js +32 -12
  244. package/dist/collection/components/spin/style.css +21 -3
  245. package/dist/collection/components/split-button/component.js +108 -37
  246. package/dist/collection/components/split-button/style.css +23 -5
  247. package/dist/collection/components/table-stateful/component.js +86 -63
  248. package/dist/collection/components/table-stateful/style.css +27 -7
  249. package/dist/collection/components/table-stateless/base.js +16 -8
  250. package/dist/collection/components/table-stateless/component.js +52 -60
  251. package/dist/collection/components/table-stateless/style.css +26 -5
  252. package/dist/collection/components/tabs/component.js +34 -27
  253. package/dist/collection/components/tabs/style.css +23 -5
  254. package/dist/collection/components/textarea/component.js +187 -77
  255. package/dist/collection/components/textarea/style.css +24 -7
  256. package/dist/collection/components/toaster/shadow.js +6 -6
  257. package/dist/collection/components/toaster/style.css +23 -5
  258. package/dist/collection/components/toaster/toaster.js +2 -1
  259. package/dist/collection/components/toolbar/component.js +29 -16
  260. package/dist/collection/components/toolbar/style.css +23 -5
  261. package/dist/collection/components/tree/component.js +25 -14
  262. package/dist/collection/components/tree/style.css +21 -3
  263. package/dist/collection/components/tree-item/component.js +34 -22
  264. package/dist/collection/components/tree-item/style.css +23 -5
  265. package/dist/collection/components/version/component.js +5 -5
  266. package/dist/collection/components/version/style.css +23 -5
  267. package/dist/collection/core/bootstrap.js +8 -5
  268. package/dist/collection/core/component-names.js +52 -108
  269. package/dist/collection/core/i18n.js +8 -7
  270. package/dist/collection/core/shared-state.js +10 -0
  271. package/dist/collection/core/tag-transformer.js +27 -0
  272. package/dist/collection/core/theme-store.js +8 -0
  273. package/dist/collection/e2e/aria-details.js +9 -0
  274. package/dist/collection/e2e/input-character-limit.js +18 -18
  275. package/dist/collection/functional-components/index.js +0 -1
  276. package/dist/collection/global/script.js +2 -0
  277. package/dist/collection/index.js +2 -0
  278. package/dist/collection/internal/functional-components/abbr/api.js +2 -2
  279. package/dist/collection/internal/functional-components/alert/api.js +2 -2
  280. package/dist/collection/internal/functional-components/alert/component.js +6 -3
  281. package/dist/collection/internal/functional-components/avatar/component.js +9 -5
  282. package/dist/collection/internal/functional-components/badge/component.js +2 -1
  283. package/dist/collection/internal/functional-components/base-web-component.js +20 -8
  284. package/dist/collection/internal/functional-components/bem-root-node/component.js +16 -6
  285. package/dist/collection/internal/functional-components/breadcrumb/api.js +2 -2
  286. package/dist/collection/internal/functional-components/breadcrumb/component.js +5 -3
  287. package/dist/collection/internal/functional-components/breadcrumb/link-item.js +1 -1
  288. package/dist/collection/internal/functional-components/button/component.js +6 -4
  289. package/dist/collection/internal/functional-components/card/api.js +3 -3
  290. package/dist/collection/internal/functional-components/card/close-button.js +1 -1
  291. package/dist/collection/internal/functional-components/card/component.js +8 -3
  292. package/dist/collection/internal/functional-components/collapsible/api.js +2 -2
  293. package/dist/collection/internal/functional-components/collapsible/component.js +3 -2
  294. package/dist/collection/internal/functional-components/dialog/api.js +2 -2
  295. package/dist/collection/internal/functional-components/dialog/component.js +6 -3
  296. package/dist/collection/internal/functional-components/dialog/item.js +6 -12
  297. package/dist/collection/internal/functional-components/drawer/api.js +2 -2
  298. package/dist/collection/internal/functional-components/drawer/component.js +4 -2
  299. package/dist/collection/internal/functional-components/form-association/api.js +2 -2
  300. package/dist/collection/internal/functional-components/form-association/behavior.js +19 -26
  301. package/dist/collection/internal/functional-components/form-field/base-web-component.js +32 -5
  302. package/dist/collection/internal/functional-components/form-field/component.js +1 -1
  303. package/dist/collection/internal/functional-components/form-field/custom-suggestions.js +1 -1
  304. package/dist/collection/internal/functional-components/form-field/date-value.js +12 -1
  305. package/dist/collection/internal/functional-components/form-field/default-input-props.js +3 -2
  306. package/dist/collection/internal/functional-components/form-field/select.js +0 -4
  307. package/dist/collection/internal/functional-components/heading/component.js +7 -5
  308. package/dist/collection/internal/functional-components/icon/api.js +2 -2
  309. package/dist/collection/internal/functional-components/icon/component.js +2 -2
  310. package/dist/collection/internal/functional-components/image/component.js +2 -1
  311. package/dist/collection/internal/functional-components/kolibri/component.js +4 -1
  312. package/dist/collection/internal/functional-components/link/component.js +6 -4
  313. package/dist/collection/internal/functional-components/meter/api.js +2 -2
  314. package/dist/collection/internal/functional-components/meter/component.js +17 -12
  315. package/dist/collection/internal/functional-components/nav/api.js +2 -2
  316. package/dist/collection/internal/functional-components/nav/component.js +14 -9
  317. package/dist/collection/internal/functional-components/pagination/api.js +3 -12
  318. package/dist/collection/internal/functional-components/pagination/component.js +7 -4
  319. package/dist/collection/internal/functional-components/pagination/item.js +27 -12
  320. package/dist/collection/internal/functional-components/pagination/page-size-select.js +9 -1
  321. package/dist/collection/internal/functional-components/popover/component.js +3 -1
  322. package/dist/collection/internal/functional-components/progress/api.js +2 -2
  323. package/dist/collection/internal/functional-components/progress/component.js +11 -7
  324. package/dist/collection/internal/functional-components/props-from-config.js +3 -0
  325. package/dist/collection/internal/functional-components/quote/api.js +2 -2
  326. package/dist/collection/internal/functional-components/quote/component.js +5 -4
  327. package/dist/collection/internal/functional-components/single-select/component.js +2 -1
  328. package/dist/collection/internal/functional-components/skip-nav/api.js +2 -2
  329. package/dist/collection/internal/functional-components/skip-nav/component.js +2 -2
  330. package/dist/collection/internal/functional-components/skip-nav/link-item.js +1 -1
  331. package/dist/collection/internal/functional-components/span/api.js +2 -4
  332. package/dist/collection/internal/functional-components/span/component.js +21 -8
  333. package/dist/collection/internal/functional-components/spin/component.js +3 -1
  334. package/dist/collection/internal/functional-components/table-stateful/api.js +2 -2
  335. package/dist/collection/internal/functional-components/table-stateless/api.js +3 -3
  336. package/dist/collection/internal/functional-components/table-stateless/component.js +24 -10
  337. package/dist/collection/internal/functional-components/table-stateless/settings.js +13 -10
  338. package/dist/collection/internal/functional-components/table-stateless/table-model.js +5 -9
  339. package/dist/collection/internal/functional-components/tabs/api.js +2 -2
  340. package/dist/collection/internal/functional-components/tabs/component.js +7 -1
  341. package/dist/collection/internal/functional-components/toolbar/api.js +2 -2
  342. package/dist/collection/internal/functional-components/tooltip/api.js +2 -2
  343. package/dist/collection/internal/functional-components/tooltip/behavior.js +3 -2
  344. package/dist/collection/internal/functional-components/tooltip/component.js +3 -1
  345. package/dist/collection/internal/functional-components/tree/api.js +2 -2
  346. package/dist/collection/internal/functional-components/tree/component.js +2 -2
  347. package/dist/collection/internal/functional-components/tree-item/api.js +2 -2
  348. package/dist/collection/internal/functional-components/tree-item/component.js +3 -2
  349. package/dist/collection/internal/props/color.js +10 -0
  350. package/dist/collection/internal/props/dialog-callbacks.js +4 -1
  351. package/dist/collection/internal/props/helpers/factory.js +11 -3
  352. package/dist/collection/internal/props/helpers/normalizers.js +13 -1
  353. package/dist/collection/internal/props/helpers/validators.js +5 -0
  354. package/dist/collection/internal/props/hints/label-hints.js +10 -8
  355. package/dist/collection/internal/props/href.js +1 -2
  356. package/dist/collection/internal/props/index.js +2 -1
  357. package/dist/collection/internal/props/label-decorative.js +10 -0
  358. package/dist/collection/internal/props/label-lang-segment.js +10 -0
  359. package/dist/collection/internal/props/label-with-expert-slot.js +6 -2
  360. package/dist/collection/internal/props/label.js +2 -1
  361. package/dist/collection/internal/props/max-length.js +1 -1
  362. package/dist/collection/internal/props/rows.js +1 -1
  363. package/dist/collection/internal/props/tabs.js +1 -1
  364. package/dist/collection/locales/de.js +1 -0
  365. package/dist/collection/locales/en.js +1 -0
  366. package/dist/collection/schema/bem-registry.js +98 -13
  367. package/dist/collection/schema/i18n-keys.js +29 -28
  368. package/dist/collection/schema/props/aria-details.js +1 -22
  369. package/dist/collection/schema/props/aria-labelledby.js +3 -12
  370. package/dist/collection/schema/props/index.js +20 -3
  371. package/dist/collection/schema/props/label.js +54 -5
  372. package/dist/collection/schema/props/page-size.js +1 -0
  373. package/dist/collection/schema/props/page.js +1 -0
  374. package/dist/collection/schema/props/quote.js +1 -9
  375. package/dist/collection/schema/props/secondary-headline.js +1 -0
  376. package/dist/collection/schema/props/selected.js +1 -0
  377. package/dist/collection/schema/props/sibling-count.js +1 -0
  378. package/dist/collection/schema/props/sizes.js +1 -0
  379. package/dist/collection/schema/props/src.js +1 -0
  380. package/dist/collection/schema/props/srcset.js +1 -0
  381. package/dist/collection/schema/props/table-headers.js +1 -0
  382. package/dist/collection/schema/props/table-loading.js +1 -0
  383. package/dist/collection/schema/props/value-number-clamped.js +1 -0
  384. package/dist/collection/schema/props/value-string.js +1 -0
  385. package/dist/collection/schema/utils/dev.utils.js +8 -6
  386. package/dist/collection/schema/utils/prop.validators.js +16 -3
  387. package/dist/collection/utils/aria-labelledby.js +2 -14
  388. package/dist/collection/utils/dev.utils.js +0 -1
  389. package/dist/collection/utils/element-focus.js +23 -0
  390. package/dist/collection/utils/element-interaction.js +0 -7
  391. package/dist/collection/utils/element-themed.js +1 -1
  392. package/dist/collection/utils/markdown.js +49 -3
  393. package/dist/collection/utils/testing/snapshot-input-testing.js +1 -0
  394. package/dist/collection/utils/testing/snapshot-testing.js +17 -0
  395. package/dist/collection/utils/tooltip-open-tracking.js +6 -5
  396. package/dist/collection/utils/unique-nav-labels.js +7 -5
  397. package/dist/components/Heading.js +1 -1
  398. package/dist/components/access-and-short-key.js +1 -1
  399. package/dist/components/ariaCurrentService.js +1 -1
  400. package/dist/components/base-web-component.js +1 -1
  401. package/dist/components/base-web-component2.js +1 -1
  402. package/dist/components/base-web-component3.js +1 -1
  403. package/dist/components/base-web-component4.js +1 -1
  404. package/dist/components/base.js +1 -1
  405. package/dist/components/base2.js +1 -1
  406. package/dist/components/base3.js +1 -1
  407. package/dist/components/base4.js +1 -1
  408. package/dist/components/behavior.js +1 -1
  409. package/dist/components/behavior2.js +1 -1
  410. package/dist/components/behavior3.js +1 -1
  411. package/dist/components/behavior4.js +1 -1
  412. package/dist/components/bem-registry.js +1 -1
  413. package/dist/components/bootstrap.js +1 -1
  414. package/dist/components/color.js +1 -1
  415. package/dist/components/common.js +1 -1
  416. package/dist/components/component-names.js +1 -1
  417. package/dist/components/component.js +1 -1
  418. package/dist/components/component10.js +1 -1
  419. package/dist/components/component11.js +1 -1
  420. package/dist/components/component12.js +4 -0
  421. package/dist/components/component13.js +4 -0
  422. package/dist/components/component14.js +4 -0
  423. package/dist/components/component2.js +1 -1
  424. package/dist/components/component3.js +1 -1
  425. package/dist/components/component4.js +1 -1
  426. package/dist/components/component5.js +1 -1
  427. package/dist/components/component6.js +1 -1
  428. package/dist/components/component7.js +1 -1
  429. package/dist/components/component8.js +1 -1
  430. package/dist/components/component9.js +1 -1
  431. package/dist/components/contrast.js +1 -1
  432. package/dist/components/controller.js +1 -1
  433. package/dist/components/dev.utils.js +1 -1
  434. package/dist/components/devtools.js +1 -1
  435. package/dist/components/disabled.js +1 -1
  436. package/dist/components/element-focus.js +1 -1
  437. package/dist/components/element-interaction.js +1 -1
  438. package/dist/components/events.js +1 -1
  439. package/dist/components/field-control.js +1 -1
  440. package/dist/components/group.js +1 -1
  441. package/dist/components/has-closer.js +1 -1
  442. package/dist/components/i18n.js +1 -1
  443. package/dist/components/i18n2.js +1 -1
  444. package/dist/components/id.js +4 -0
  445. package/dist/components/index.js +1 -1
  446. package/dist/components/input-container.js +1 -1
  447. package/dist/components/input.js +1 -1
  448. package/dist/components/item-pool.js +1 -1
  449. package/dist/components/item.js +1 -1
  450. package/dist/components/item2.js +1 -1
  451. package/dist/components/item3.js +1 -1
  452. package/dist/components/item4.js +1 -1
  453. package/dist/components/keyboard.js +1 -1
  454. package/dist/components/kol-abbr.js +1 -1
  455. package/dist/components/kol-accordion.js +1 -1
  456. package/dist/components/kol-alert.js +1 -1
  457. package/dist/components/kol-avatar.js +1 -1
  458. package/dist/components/kol-badge.js +1 -1
  459. package/dist/components/kol-breadcrumb.js +1 -1
  460. package/dist/components/kol-button-link.js +1 -1
  461. package/dist/components/kol-button.js +1 -1
  462. package/dist/components/kol-card.js +1 -1
  463. package/dist/components/kol-combobox.js +1 -1
  464. package/dist/components/kol-details.js +1 -1
  465. package/dist/components/kol-dialog.js +1 -1
  466. package/dist/components/kol-drawer.js +1 -1
  467. package/dist/components/kol-form.js +1 -1
  468. package/dist/components/kol-heading.js +1 -1
  469. package/dist/components/kol-icon.js +1 -1
  470. package/dist/components/kol-image.js +1 -1
  471. package/dist/components/kol-input-checkbox.js +1 -1
  472. package/dist/components/kol-input-color.js +1 -1
  473. package/dist/components/kol-input-date.js +1 -1
  474. package/dist/components/kol-input-email.js +1 -1
  475. package/dist/components/kol-input-file.js +1 -1
  476. package/dist/components/kol-input-number.js +1 -1
  477. package/dist/components/kol-input-password.js +1 -1
  478. package/dist/components/kol-input-radio.js +1 -1
  479. package/dist/components/kol-input-range.js +1 -1
  480. package/dist/components/kol-input-text.js +1 -1
  481. package/dist/components/kol-kolibri.js +1 -1
  482. package/dist/components/kol-link-button.js +1 -1
  483. package/dist/components/kol-link.js +1 -1
  484. package/dist/components/kol-meter.js +1 -1
  485. package/dist/components/kol-modal.js +1 -1
  486. package/dist/components/kol-nav.js +1 -1
  487. package/dist/components/kol-pagination.js +1 -1
  488. package/dist/components/kol-popover-button.js +1 -1
  489. package/dist/components/kol-progress.js +1 -1
  490. package/dist/components/kol-quote.js +1 -1
  491. package/dist/components/kol-select.js +1 -1
  492. package/dist/components/kol-single-select.js +1 -1
  493. package/dist/components/kol-skip-nav.js +1 -1
  494. package/dist/components/kol-spin.js +1 -1
  495. package/dist/components/kol-split-button.js +1 -1
  496. package/dist/components/kol-table-stateful.js +1 -1
  497. package/dist/components/kol-table-stateless.js +1 -1
  498. package/dist/components/kol-tabs.js +1 -1
  499. package/dist/components/kol-textarea.js +1 -1
  500. package/dist/components/kol-toast-container.js +1 -1
  501. package/dist/components/kol-toolbar.js +1 -1
  502. package/dist/components/kol-tree-item.js +1 -1
  503. package/dist/components/kol-tree.js +1 -1
  504. package/dist/components/kol-version.js +1 -1
  505. package/dist/components/label-hints.js +4 -0
  506. package/dist/components/label-lang-segment.js +4 -0
  507. package/dist/components/label-with-expert-slot.js +1 -1
  508. package/dist/components/label.js +1 -1
  509. package/dist/components/level.js +1 -1
  510. package/dist/components/link-target.js +1 -1
  511. package/dist/components/links.js +1 -1
  512. package/dist/components/multiple.js +1 -1
  513. package/dist/components/number-value.js +1 -1
  514. package/dist/components/open-items-cache.js +1 -1
  515. package/dist/components/open.js +1 -1
  516. package/dist/components/options.js +1 -1
  517. package/dist/components/options2.js +1 -1
  518. package/dist/components/orientation.js +1 -1
  519. package/dist/components/placeholder.js +1 -1
  520. package/dist/components/read-only.js +1 -1
  521. package/dist/components/required.js +1 -1
  522. package/dist/components/resolve-props.js +1 -1
  523. package/dist/components/resolve-props2.js +1 -1
  524. package/dist/components/rows.js +1 -1
  525. package/dist/components/scroll-lock.js +1 -1
  526. package/dist/components/shared-state.js +4 -0
  527. package/dist/components/smart-button.js +1 -1
  528. package/dist/components/spell-check.js +1 -1
  529. package/dist/components/src.js +1 -1
  530. package/dist/components/step.js +1 -1
  531. package/dist/components/suggestions.js +1 -1
  532. package/dist/components/suggestions2.js +1 -1
  533. package/dist/components/test-component.js +1 -1
  534. package/dist/components/toggle-handler.js +1 -1
  535. package/dist/components/tooltip-open-tracking.js +1 -1
  536. package/dist/components/unique-nav-labels.js +1 -1
  537. package/dist/components/unit.js +1 -1
  538. package/dist/components/validators.js +4 -0
  539. package/dist/components/value-string.js +1 -1
  540. package/dist/components/width.js +1 -1
  541. package/dist/esm/{Heading-0teSdkFq.js → Heading-Cynkalqu.js} +2 -2
  542. package/dist/esm/{access-and-short-key-ijzCZfHm.js → access-and-short-key-CW0oxi_q.js} +2 -0
  543. package/dist/esm/{api-hAvZrw9X.js → api-B76-Osk1.js} +54 -29
  544. package/dist/esm/{app-globals-Dff_iJYF.js → app-globals-Dtu1AIr1.js} +4 -3
  545. package/dist/esm/{aria-labelledby-BRToXqsQ.js → aria-labelledby-DQov9uSv.js} +5 -15
  546. package/dist/esm/ariaCurrentService-B9TgWLEw.js +27 -0
  547. package/dist/esm/{base-COT79ELt.js → base-BZCFxul4.js} +17 -17
  548. package/dist/esm/{base-Df1bwC8d.js → base-BpgzOuy3.js} +25 -26
  549. package/dist/esm/{base-CsJWjTJl.js → base-CAiOx0qs.js} +82 -82
  550. package/dist/esm/{base-7FEvBJ3L.js → base-DJ3lTPYp.js} +18 -19
  551. package/dist/esm/base-web-component-D16FuHFf.js +64 -0
  552. package/dist/esm/{base-web-component-cTyj95G-.js → base-web-component-E9cH8tf8.js} +16 -17
  553. package/dist/esm/{base-web-component-C1XSz7ML.js → base-web-component-aOhHFXxF.js} +10 -18
  554. package/dist/esm/{behavior-BMW-_4Oy.js → behavior-ByyBa-o8.js} +6 -6
  555. package/dist/esm/{behavior-BlS6DO8T.js → behavior-DJQFXyfi.js} +10 -10
  556. package/dist/esm/{behavior-Zr6qAX7F.js → behavior-DnTJtQBK.js} +29 -38
  557. package/dist/esm/{bem-registry-BlJAUViA.js → bem-registry-CK2s_XZ4.js} +99 -14
  558. package/dist/esm/bootstrap-DUmk0ILT.js +52 -0
  559. package/dist/esm/{color-9CMp_pOq.js → color-CEoIhjJR.js} +13 -3
  560. package/dist/esm/{variant-PJN56KWi.js → component-BPL1Mikq.js} +37 -7
  561. package/dist/esm/{component-BmJGOcby.js → component-C0ijstyp.js} +12 -11
  562. package/dist/esm/component-C58IwTEf.js +47 -0
  563. package/dist/esm/{component-C_Te18y_.js → component-CAEpgoSo.js} +6 -5
  564. package/dist/esm/component-CDyoNoJe.js +17 -0
  565. package/dist/esm/{component-DHl33p9J.js → component-CiTw4ODP.js} +8 -9
  566. package/dist/esm/component-DTV1Kuf1.js +172 -0
  567. package/dist/esm/component-DeFANBua.js +43 -0
  568. package/dist/esm/{api-B9mpTRGa.js → component-S6ib3O8N.js} +40 -45
  569. package/dist/esm/component-XbTjo2nm.js +91 -0
  570. package/dist/esm/component-names-Ur_UbEzI.js +115 -0
  571. package/dist/esm/{contrast-BK5uVXeb.js → contrast-Ujnfz49m.js} +2 -2
  572. package/dist/esm/{controller-Bf-CAo4Q.js → controller-BdPVgWDs.js} +18 -18
  573. package/dist/esm/{dev.utils-BgjegQC8.js → dev.utils--eVyQ4zr.js} +1 -2
  574. package/dist/esm/{devtools-4nOArEGl.js → devtools-CosbyboJ.js} +4 -5
  575. package/dist/esm/{disabled-BaPgTuFO.js → disabled-Cu0e92-b.js} +2 -1
  576. package/dist/esm/{element-focus-Cp994Rrk.js → element-focus-BYLFG-oz.js} +25 -1
  577. package/dist/esm/{element-interaction-Cy9tx3Sx.js → element-interaction-C2pgnQ6t.js} +2 -1
  578. package/dist/esm/{events-BIT-JUP2.js → events-B2UzbUT7.js} +2 -0
  579. package/dist/esm/{field-control-Brx62dJV.js → field-control-DbmtKHc1.js} +7 -8
  580. package/dist/esm/{group-Ce5pMiZJ.js → group-CqAFhkgE.js} +6 -7
  581. package/dist/esm/{has-closer-C9L79ect.js → has-closer-DOs1CXhp.js} +2 -1
  582. package/dist/esm/href-DQbHtp6T.js +9 -0
  583. package/dist/esm/{i18n-Dl6Jjofb.js → i18n-Bcb0tuyF.js} +11 -6
  584. package/dist/esm/{i18n-DRQl0u--.js → i18n-Cf0DhAke.js} +2 -2
  585. package/dist/esm/id-BXwy9iRy.js +9 -0
  586. package/dist/esm/{index-D5UV99lE.js → index-Bsx5X6jK.js} +1745 -50
  587. package/dist/esm/index.js +14 -12
  588. package/dist/esm/{input-DjQorwQ5.js → input-RvLnUp6C.js} +4 -6
  589. package/dist/esm/{input-container-RSmfcRgK.js → input-container-BpG3WHug.js} +6 -9
  590. package/dist/esm/{item-Bfk2xd-D.js → item-Cw_jdgc6.js} +14 -13
  591. package/dist/esm/{item-D9_O5WAR.js → item-DMttg5uX.js} +54 -42
  592. package/dist/esm/{item-DMWn_IlJ.js → item-DibV9jD7.js} +8 -8
  593. package/dist/esm/{item-2cprk9ut.js → item-KqTsA-5a.js} +8 -8
  594. package/dist/esm/{item-pool-BOxAYePG.js → item-pool-C_4Isquh.js} +2 -0
  595. package/dist/esm/{keyboard-Cnv7zP3N.js → keyboard-Cc1-_wSt.js} +2 -0
  596. package/dist/esm/kol-abbr.entry.js +15 -17
  597. package/dist/esm/kol-accordion.entry.js +31 -27
  598. package/dist/esm/kol-alert.entry.js +40 -36
  599. package/dist/esm/kol-avatar.entry.js +31 -25
  600. package/dist/esm/kol-badge.entry.js +38 -38
  601. package/dist/esm/kol-breadcrumb.entry.js +43 -44
  602. package/dist/esm/kol-button-link.entry.js +55 -42
  603. package/dist/esm/kol-button.entry.js +56 -42
  604. package/dist/esm/kol-card.entry.js +49 -53
  605. package/dist/esm/kol-combobox.entry.js +75 -64
  606. package/dist/esm/kol-details.entry.js +31 -27
  607. package/dist/esm/kol-dialog.entry.js +45 -42
  608. package/dist/esm/kol-drawer.entry.js +50 -54
  609. package/dist/esm/kol-form.entry.js +35 -34
  610. package/dist/esm/kol-heading.entry.js +23 -19
  611. package/dist/esm/kol-icon.entry.js +20 -16
  612. package/dist/esm/kol-image.entry.js +17 -12
  613. package/dist/esm/kol-input-checkbox.entry.js +76 -64
  614. package/dist/esm/kol-input-color.entry.js +73 -64
  615. package/dist/esm/kol-input-date.entry.js +93 -63
  616. package/dist/esm/kol-input-email.entry.js +79 -61
  617. package/dist/esm/kol-input-file.entry.js +72 -57
  618. package/dist/esm/kol-input-number.entry.js +82 -63
  619. package/dist/esm/kol-input-password.entry.js +81 -61
  620. package/dist/esm/kol-input-radio.entry.js +58 -54
  621. package/dist/esm/kol-input-range.entry.js +71 -56
  622. package/dist/esm/kol-input-text.entry.js +91 -66
  623. package/dist/esm/kol-kolibri.entry.js +15 -17
  624. package/dist/esm/kol-link-button.entry.js +52 -38
  625. package/dist/esm/kol-link.entry.js +49 -37
  626. package/dist/esm/kol-meter.entry.js +39 -29
  627. package/dist/esm/kol-modal.entry.js +44 -42
  628. package/dist/esm/kol-nav.entry.js +58 -58
  629. package/dist/esm/kol-pagination.entry.js +57 -58
  630. package/dist/esm/kol-popover-button.entry.js +57 -45
  631. package/dist/esm/kol-progress.entry.js +34 -24
  632. package/dist/esm/kol-quote.entry.js +21 -21
  633. package/dist/esm/kol-select.entry.js +66 -54
  634. package/dist/esm/kol-single-select.entry.js +78 -64
  635. package/dist/esm/kol-skip-nav.entry.js +42 -42
  636. package/dist/esm/kol-spin.entry.js +22 -35
  637. package/dist/esm/kol-split-button.entry.js +61 -47
  638. package/dist/esm/kol-table-stateful.entry.js +85 -75
  639. package/dist/esm/kol-table-stateless.entry.js +62 -64
  640. package/dist/esm/kol-tabs.entry.js +59 -59
  641. package/dist/esm/kol-textarea.entry.js +77 -59
  642. package/dist/esm/kol-toast-container.entry.js +27 -25
  643. package/dist/esm/kol-toolbar.entry.js +56 -54
  644. package/dist/esm/kol-tree-item.entry.js +53 -47
  645. package/dist/esm/kol-tree.entry.js +38 -26
  646. package/dist/esm/kol-version.entry.js +27 -25
  647. package/dist/esm/kolibri.js +7 -6
  648. package/dist/esm/label-DEZIsnKw.js +13 -0
  649. package/dist/esm/label-hints-C--ftrg_.js +20 -0
  650. package/dist/esm/label-lang-segment-B8ayoizG.js +12 -0
  651. package/dist/esm/label-with-expert-slot-DXi27J4o.js +13 -0
  652. package/dist/esm/{level-Df663c7y.js → level-BV6M_zmM.js} +2 -1
  653. package/dist/esm/{link-target-C7_smSbV.js → link-target-C9qzQAQg.js} +2 -1
  654. package/dist/esm/{links-B0xbzBwU.js → links-Dt0OhMXb.js} +2 -2
  655. package/dist/esm/loader.js +6 -5
  656. package/dist/esm/{multiple-CYHm7rd3.js → multiple-DQdOCIyW.js} +2 -1
  657. package/dist/esm/{number-value-CMedWR58.js → number-value-DtZloH4P.js} +2 -1
  658. package/dist/esm/{open-DCGNTmvC.js → open-DaO7wXMr.js} +2 -1
  659. package/dist/esm/{open-items-cache-D-kml1h6.js → open-items-cache-C98FzYQ9.js} +2 -0
  660. package/dist/esm/{options-CR431ims.js → options-C8BsBGBl.js} +2 -2
  661. package/dist/esm/{options-B0rBHetL.js → options-CKAHQbcF.js} +2 -0
  662. package/dist/esm/{orientation-C9FRNmPD.js → orientation-VvJMCd9m.js} +2 -1
  663. package/dist/esm/{placeholder-Bwzvbwhh.js → placeholder-7pbjAn-x.js} +2 -1
  664. package/dist/esm/{base-web-component-Bcoukts3.js → props-from-config-DVxNB2Lx.js} +313 -55
  665. package/dist/esm/{read-only-C5fDsZVK.js → read-only-3XuQIAB8.js} +2 -1
  666. package/dist/esm/{required-CC0212MQ.js → required-CNgdXJ8H.js} +2 -1
  667. package/dist/esm/{resolve-props-47S-r31C.js → resolve-props-B1DQKjTD.js} +7 -8
  668. package/dist/esm/{resolve-props-CnHCiXuG.js → resolve-props-DOaJCd7Y.js} +9 -9
  669. package/dist/esm/rows-DL1whQNh.js +9 -0
  670. package/dist/esm/{scroll-lock-DQGTnLvW.js → scroll-lock-CF_Z7MzO.js} +9 -7
  671. package/dist/esm/shared-state-sWI1upS8.js +14 -0
  672. package/dist/esm/{smart-button-BHM06d-t.js → smart-button-BdA5-cUG.js} +2 -2
  673. package/dist/esm/{spell-check-DiSedaOR.js → spell-check-B7J-eU5K.js} +2 -1
  674. package/dist/esm/{src-CsLEg--w.js → src-C2baLPDp.js} +2 -1
  675. package/dist/esm/{step-BxSThOke.js → step-DmzcVFZB.js} +2 -1
  676. package/dist/esm/{suggestions-B79TOsF_.js → suggestions-BJxNFtkL.js} +2 -2
  677. package/dist/esm/{suggestions-C38q-5JU.js → suggestions-BXp8OhOi.js} +3 -3
  678. package/dist/esm/test-component.entry.js +3 -3
  679. package/dist/esm/theme-store-CEu5d_EK.js +11 -0
  680. package/dist/esm/{toggle-handler-CQ0FhBmD.js → toggle-handler-D7oFDKvq.js} +14 -17
  681. package/dist/esm/tooltip-open-tracking-DXhnfmA2.js +21 -0
  682. package/dist/esm/unique-nav-labels-BOqpcYk4.js +22 -0
  683. package/dist/esm/{unit-BgjPEae-.js → unit-BFYz7QfA.js} +2 -1
  684. package/dist/esm/validators-DPSQyOeQ.js +13 -0
  685. package/dist/esm/{value-string-BDfywbme.js → value-string-Cmozozek.js} +2 -1
  686. package/dist/esm/{width-CAS8lhOU.js → width-D5-Licpp.js} +6 -2
  687. package/dist/kolibri/Heading-Cynkalqu.js +4 -0
  688. package/dist/kolibri/access-and-short-key-CW0oxi_q.js +4 -0
  689. package/dist/kolibri/api-B76-Osk1.js +4 -0
  690. package/dist/kolibri/app-globals-Dtu1AIr1.js +4 -0
  691. package/dist/kolibri/aria-labelledby-DQov9uSv.js +4 -0
  692. package/dist/kolibri/ariaCurrentService-B9TgWLEw.js +4 -0
  693. package/dist/kolibri/base-BZCFxul4.js +4 -0
  694. package/dist/kolibri/base-BpgzOuy3.js +4 -0
  695. package/dist/kolibri/base-CAiOx0qs.js +4 -0
  696. package/dist/kolibri/base-DJ3lTPYp.js +4 -0
  697. package/dist/kolibri/base-web-component-D16FuHFf.js +4 -0
  698. package/dist/kolibri/base-web-component-E9cH8tf8.js +4 -0
  699. package/dist/kolibri/base-web-component-aOhHFXxF.js +4 -0
  700. package/dist/kolibri/behavior-ByyBa-o8.js +4 -0
  701. package/dist/kolibri/behavior-DJQFXyfi.js +4 -0
  702. package/dist/kolibri/behavior-DnTJtQBK.js +4 -0
  703. package/dist/kolibri/bem-registry-CK2s_XZ4.js +4 -0
  704. package/dist/kolibri/bootstrap-DUmk0ILT.js +4 -0
  705. package/dist/kolibri/color-CEoIhjJR.js +4 -0
  706. package/dist/kolibri/component-BPL1Mikq.js +4 -0
  707. package/dist/kolibri/component-C0ijstyp.js +4 -0
  708. package/dist/kolibri/component-C58IwTEf.js +4 -0
  709. package/dist/kolibri/component-CAEpgoSo.js +4 -0
  710. package/dist/kolibri/component-CDyoNoJe.js +4 -0
  711. package/dist/kolibri/component-CiTw4ODP.js +4 -0
  712. package/dist/kolibri/component-DTV1Kuf1.js +4 -0
  713. package/dist/kolibri/component-DeFANBua.js +4 -0
  714. package/dist/kolibri/component-S6ib3O8N.js +4 -0
  715. package/dist/kolibri/component-XbTjo2nm.js +4 -0
  716. package/dist/kolibri/component-names-Ur_UbEzI.js +4 -0
  717. package/dist/kolibri/contrast-Ujnfz49m.js +4 -0
  718. package/dist/kolibri/controller-BdPVgWDs.js +4 -0
  719. package/dist/kolibri/dev.utils--eVyQ4zr.js +4 -0
  720. package/dist/kolibri/devtools-CosbyboJ.js +4 -0
  721. package/dist/kolibri/disabled-Cu0e92-b.js +4 -0
  722. package/dist/kolibri/element-focus-BYLFG-oz.js +4 -0
  723. package/dist/kolibri/element-interaction-C2pgnQ6t.js +4 -0
  724. package/dist/kolibri/events-B2UzbUT7.js +4 -0
  725. package/dist/kolibri/field-control-DbmtKHc1.js +4 -0
  726. package/dist/kolibri/group-CqAFhkgE.js +4 -0
  727. package/dist/kolibri/has-closer-DOs1CXhp.js +4 -0
  728. package/dist/kolibri/href-DQbHtp6T.js +4 -0
  729. package/dist/kolibri/i18n-Bcb0tuyF.js +4 -0
  730. package/dist/kolibri/i18n-Cf0DhAke.js +4 -0
  731. package/dist/kolibri/id-BXwy9iRy.js +4 -0
  732. package/dist/kolibri/index-Bsx5X6jK.js +6 -0
  733. package/dist/kolibri/index.esm.js +1 -1
  734. package/dist/kolibri/input-RvLnUp6C.js +4 -0
  735. package/dist/kolibri/input-container-BpG3WHug.js +4 -0
  736. package/dist/kolibri/item-Cw_jdgc6.js +4 -0
  737. package/dist/kolibri/item-DMttg5uX.js +4 -0
  738. package/dist/kolibri/item-DibV9jD7.js +4 -0
  739. package/dist/kolibri/item-KqTsA-5a.js +4 -0
  740. package/dist/kolibri/item-pool-C_4Isquh.js +4 -0
  741. package/dist/kolibri/keyboard-Cc1-_wSt.js +4 -0
  742. package/dist/kolibri/kol-abbr.entry.js +1 -1
  743. package/dist/kolibri/kol-accordion.entry.js +1 -1
  744. package/dist/kolibri/kol-alert.entry.js +1 -1
  745. package/dist/kolibri/kol-avatar.entry.js +1 -1
  746. package/dist/kolibri/kol-badge.entry.js +1 -1
  747. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  748. package/dist/kolibri/kol-button-link.entry.js +1 -1
  749. package/dist/kolibri/kol-button.entry.js +1 -1
  750. package/dist/kolibri/kol-card.entry.js +1 -1
  751. package/dist/kolibri/kol-combobox.entry.js +1 -1
  752. package/dist/kolibri/kol-details.entry.js +1 -1
  753. package/dist/kolibri/kol-dialog.entry.js +1 -1
  754. package/dist/kolibri/kol-drawer.entry.js +1 -1
  755. package/dist/kolibri/kol-form.entry.js +1 -1
  756. package/dist/kolibri/kol-heading.entry.js +1 -1
  757. package/dist/kolibri/kol-icon.entry.js +1 -1
  758. package/dist/kolibri/kol-image.entry.js +1 -1
  759. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  760. package/dist/kolibri/kol-input-color.entry.js +1 -1
  761. package/dist/kolibri/kol-input-date.entry.js +1 -1
  762. package/dist/kolibri/kol-input-email.entry.js +1 -1
  763. package/dist/kolibri/kol-input-file.entry.js +1 -1
  764. package/dist/kolibri/kol-input-number.entry.js +1 -1
  765. package/dist/kolibri/kol-input-password.entry.js +1 -1
  766. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  767. package/dist/kolibri/kol-input-range.entry.js +1 -1
  768. package/dist/kolibri/kol-input-text.entry.js +1 -1
  769. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  770. package/dist/kolibri/kol-link-button.entry.js +1 -1
  771. package/dist/kolibri/kol-link.entry.js +1 -1
  772. package/dist/kolibri/kol-meter.entry.js +1 -1
  773. package/dist/kolibri/kol-modal.entry.js +1 -1
  774. package/dist/kolibri/kol-nav.entry.js +1 -1
  775. package/dist/kolibri/kol-pagination.entry.js +1 -1
  776. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  777. package/dist/kolibri/kol-progress.entry.js +1 -1
  778. package/dist/kolibri/kol-quote.entry.js +1 -1
  779. package/dist/kolibri/kol-select.entry.js +1 -1
  780. package/dist/kolibri/kol-single-select.entry.js +1 -1
  781. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  782. package/dist/kolibri/kol-spin.entry.js +1 -1
  783. package/dist/kolibri/kol-split-button.entry.js +1 -1
  784. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  785. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  786. package/dist/kolibri/kol-tabs.entry.js +1 -1
  787. package/dist/kolibri/kol-textarea.entry.js +1 -1
  788. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  789. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  790. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  791. package/dist/kolibri/kol-tree.entry.js +1 -1
  792. package/dist/kolibri/kol-version.entry.js +1 -1
  793. package/dist/kolibri/kolibri.esm.js +1 -1
  794. package/dist/kolibri/label-DEZIsnKw.js +4 -0
  795. package/dist/kolibri/label-hints-C--ftrg_.js +4 -0
  796. package/dist/kolibri/label-lang-segment-B8ayoizG.js +4 -0
  797. package/dist/kolibri/label-with-expert-slot-DXi27J4o.js +4 -0
  798. package/dist/kolibri/level-BV6M_zmM.js +4 -0
  799. package/dist/kolibri/link-target-C9qzQAQg.js +4 -0
  800. package/dist/kolibri/links-Dt0OhMXb.js +4 -0
  801. package/dist/kolibri/multiple-DQdOCIyW.js +4 -0
  802. package/dist/kolibri/number-value-DtZloH4P.js +4 -0
  803. package/dist/kolibri/open-DaO7wXMr.js +4 -0
  804. package/dist/kolibri/open-items-cache-C98FzYQ9.js +4 -0
  805. package/dist/kolibri/options-C8BsBGBl.js +4 -0
  806. package/dist/kolibri/options-CKAHQbcF.js +4 -0
  807. package/dist/kolibri/orientation-VvJMCd9m.js +4 -0
  808. package/dist/kolibri/placeholder-7pbjAn-x.js +4 -0
  809. package/dist/kolibri/props-from-config-DVxNB2Lx.js +4 -0
  810. package/dist/kolibri/read-only-3XuQIAB8.js +4 -0
  811. package/dist/kolibri/required-CNgdXJ8H.js +4 -0
  812. package/dist/kolibri/resolve-props-B1DQKjTD.js +4 -0
  813. package/dist/kolibri/resolve-props-DOaJCd7Y.js +4 -0
  814. package/dist/kolibri/rows-DL1whQNh.js +4 -0
  815. package/dist/kolibri/scroll-lock-CF_Z7MzO.js +4 -0
  816. package/dist/kolibri/shared-state-sWI1upS8.js +4 -0
  817. package/dist/kolibri/smart-button-BdA5-cUG.js +4 -0
  818. package/dist/kolibri/spell-check-B7J-eU5K.js +4 -0
  819. package/dist/kolibri/src-C2baLPDp.js +4 -0
  820. package/dist/kolibri/step-DmzcVFZB.js +4 -0
  821. package/dist/kolibri/suggestions-BJxNFtkL.js +4 -0
  822. package/dist/kolibri/suggestions-BXp8OhOi.js +4 -0
  823. package/dist/kolibri/test-component.entry.js +1 -1
  824. package/dist/kolibri/theme-store-CEu5d_EK.js +4 -0
  825. package/dist/kolibri/toggle-handler-D7oFDKvq.js +4 -0
  826. package/dist/kolibri/tooltip-open-tracking-DXhnfmA2.js +4 -0
  827. package/dist/kolibri/unique-nav-labels-BOqpcYk4.js +4 -0
  828. package/dist/kolibri/unit-BFYz7QfA.js +4 -0
  829. package/dist/kolibri/validators-DPSQyOeQ.js +4 -0
  830. package/dist/kolibri/value-string-Cmozozek.js +4 -0
  831. package/dist/kolibri/width-D5-Licpp.js +4 -0
  832. package/dist/types/components/abbr/component.d.ts +5 -4
  833. package/dist/types/components/accordion/component.d.ts +9 -8
  834. package/dist/types/components/alert/component.d.ts +10 -8
  835. package/dist/types/components/avatar/component.d.ts +7 -6
  836. package/dist/types/components/badge/component.d.ts +5 -4
  837. package/dist/types/components/breadcrumb/component.d.ts +2 -1
  838. package/dist/types/components/button/base.d.ts +9 -8
  839. package/dist/types/components/button/component.d.ts +13 -13
  840. package/dist/types/components/button-link/component.d.ts +11 -11
  841. package/dist/types/components/card/base.d.ts +6 -4
  842. package/dist/types/components/card/component.d.ts +5 -5
  843. package/dist/types/components/combobox/component.d.ts +23 -22
  844. package/dist/types/components/details/component.d.ts +9 -8
  845. package/dist/types/components/dialog/base.d.ts +6 -4
  846. package/dist/types/components/dialog/component.d.ts +5 -5
  847. package/dist/types/components/drawer/component.d.ts +7 -6
  848. package/dist/types/components/form/component.d.ts +2 -1
  849. package/dist/types/components/heading/component.d.ts +5 -4
  850. package/dist/types/components/icon/component.d.ts +5 -3
  851. package/dist/types/components/image/component.d.ts +11 -9
  852. package/dist/types/components/input-checkbox/component.d.ts +21 -20
  853. package/dist/types/components/input-color/component.d.ts +17 -17
  854. package/dist/types/components/input-date/component.d.ts +20 -19
  855. package/dist/types/components/input-email/component.d.ts +31 -30
  856. package/dist/types/components/input-file/component.d.ts +18 -17
  857. package/dist/types/components/input-number/component.d.ts +21 -20
  858. package/dist/types/components/input-password/component.d.ts +30 -28
  859. package/dist/types/components/input-radio/component.d.ts +15 -14
  860. package/dist/types/components/input-range/component.d.ts +15 -14
  861. package/dist/types/components/input-text/component.d.ts +28 -26
  862. package/dist/types/components/kolibri/component.d.ts +5 -4
  863. package/dist/types/components/link/base.d.ts +8 -6
  864. package/dist/types/components/link/component.d.ts +11 -13
  865. package/dist/types/components/link-button/component.d.ts +9 -11
  866. package/dist/types/components/meter/component.d.ts +19 -17
  867. package/dist/types/components/modal/component.d.ts +5 -5
  868. package/dist/types/components/nav/component.d.ts +9 -8
  869. package/dist/types/components/pagination/component.d.ts +11 -10
  870. package/dist/types/components/popover-button/base.d.ts +1 -1
  871. package/dist/types/components/popover-button/component.d.ts +9 -9
  872. package/dist/types/components/progress/component.d.ts +12 -9
  873. package/dist/types/components/{_skeleton/public-api → public-api}/contract.d.ts +1 -6
  874. package/dist/types/components/quote/component.d.ts +9 -7
  875. package/dist/types/components/select/component.d.ts +21 -20
  876. package/dist/types/components/single-select/component.d.ts +22 -20
  877. package/dist/types/components/skip-nav/component.d.ts +2 -1
  878. package/dist/types/components/spin/component.d.ts +7 -5
  879. package/dist/types/components/split-button/component.d.ts +13 -13
  880. package/dist/types/components/table-stateful/component.d.ts +11 -12
  881. package/dist/types/components/table-stateless/base.d.ts +7 -5
  882. package/dist/types/components/table-stateless/component.d.ts +7 -10
  883. package/dist/types/components/tabs/component.d.ts +6 -6
  884. package/dist/types/components/textarea/component.d.ts +29 -28
  885. package/dist/types/components/toolbar/component.d.ts +5 -4
  886. package/dist/types/components/tree/component.d.ts +3 -1
  887. package/dist/types/components/tree-item/component.d.ts +5 -4
  888. package/dist/types/components/version/component.d.ts +2 -1
  889. package/dist/types/components.d.ts +1424 -1154
  890. package/dist/types/core/component-names.d.ts +52 -54
  891. package/dist/types/core/i18n.d.ts +2 -2
  892. package/dist/types/core/shared-state.d.ts +1 -0
  893. package/dist/types/core/tag-transformer.d.ts +4 -0
  894. package/dist/types/core/theme-store.d.ts +1 -0
  895. package/dist/types/e2e/aria-details.d.ts +2 -0
  896. package/dist/types/e2e/input-behavior-contract.d.ts +0 -1
  897. package/dist/types/functional-components/index.d.ts +0 -1
  898. package/dist/types/index.d.ts +3 -1
  899. package/dist/types/internal/functional-components/abbr/api.d.ts +1 -1
  900. package/dist/types/internal/functional-components/alert/api.d.ts +1 -1
  901. package/dist/types/internal/functional-components/avatar/api.d.ts +1 -1
  902. package/dist/types/internal/functional-components/avatar/component.d.ts +1 -1
  903. package/dist/types/internal/functional-components/badge/api.d.ts +4 -4
  904. package/dist/types/internal/functional-components/badge/component.d.ts +3 -2
  905. package/dist/types/internal/functional-components/base-web-component.d.ts +5 -1
  906. package/dist/types/internal/functional-components/bem-root-node/component.d.ts +8 -4
  907. package/dist/types/internal/functional-components/breadcrumb/api.d.ts +1 -1
  908. package/dist/types/internal/functional-components/button/api.d.ts +2 -2
  909. package/dist/types/internal/functional-components/button/component.d.ts +1 -1
  910. package/dist/types/internal/functional-components/button/item.d.ts +1 -3
  911. package/dist/types/internal/functional-components/card/api.d.ts +2 -2
  912. package/dist/types/internal/functional-components/card/component.d.ts +5 -2
  913. package/dist/types/internal/functional-components/collapsible/api.d.ts +2 -2
  914. package/dist/types/internal/functional-components/combobox/api.d.ts +4 -4
  915. package/dist/types/internal/functional-components/counter/api.d.ts +1 -1
  916. package/dist/types/internal/functional-components/dialog/api.d.ts +2 -2
  917. package/dist/types/internal/functional-components/dialog/component.d.ts +7 -3
  918. package/dist/types/internal/functional-components/dialog/item.d.ts +2 -2
  919. package/dist/types/internal/functional-components/drawer/api.d.ts +2 -2
  920. package/dist/types/internal/functional-components/drawer/component.d.ts +1 -1
  921. package/dist/types/internal/functional-components/form/api.d.ts +1 -1
  922. package/dist/types/internal/functional-components/form-association/api.d.ts +1 -1
  923. package/dist/types/internal/functional-components/form-association/behavior.d.ts +2 -5
  924. package/dist/types/internal/functional-components/form-field/api.d.ts +3 -3
  925. package/dist/types/internal/functional-components/form-field/base-web-component.d.ts +5 -0
  926. package/dist/types/internal/functional-components/form-field/component.d.ts +2 -2
  927. package/dist/types/internal/functional-components/form-field/custom-suggestions.d.ts +1 -0
  928. package/dist/types/internal/functional-components/form-field/default-input-props.d.ts +4 -3
  929. package/dist/types/internal/functional-components/form-field/field-control.d.ts +2 -2
  930. package/dist/types/internal/functional-components/form-field/label.d.ts +2 -1
  931. package/dist/types/internal/functional-components/generic-types.d.ts +6 -5
  932. package/dist/types/internal/functional-components/heading/api.d.ts +2 -2
  933. package/dist/types/internal/functional-components/heading/component.d.ts +1 -1
  934. package/dist/types/internal/functional-components/icon/api.d.ts +1 -1
  935. package/dist/types/internal/functional-components/image/api.d.ts +2 -2
  936. package/dist/types/internal/functional-components/input-checkbox/api.d.ts +3 -3
  937. package/dist/types/internal/functional-components/input-color/api.d.ts +6 -6
  938. package/dist/types/internal/functional-components/input-date/api.d.ts +6 -6
  939. package/dist/types/internal/functional-components/input-email/api.d.ts +6 -6
  940. package/dist/types/internal/functional-components/input-file/api.d.ts +6 -6
  941. package/dist/types/internal/functional-components/input-number/api.d.ts +6 -6
  942. package/dist/types/internal/functional-components/input-password/api.d.ts +6 -6
  943. package/dist/types/internal/functional-components/input-radio/api.d.ts +3 -3
  944. package/dist/types/internal/functional-components/input-range/api.d.ts +4 -4
  945. package/dist/types/internal/functional-components/input-text/api.d.ts +6 -6
  946. package/dist/types/internal/functional-components/kolibri/api.d.ts +1 -1
  947. package/dist/types/internal/functional-components/kolibri/component.d.ts +1 -1
  948. package/dist/types/internal/functional-components/link/api.d.ts +2 -2
  949. package/dist/types/internal/functional-components/link/component.d.ts +1 -1
  950. package/dist/types/internal/functional-components/link/item.d.ts +2 -1
  951. package/dist/types/internal/functional-components/meter/api.d.ts +11 -2
  952. package/dist/types/internal/functional-components/meter/component.d.ts +4 -1
  953. package/dist/types/internal/functional-components/nav/api.d.ts +2 -2
  954. package/dist/types/internal/functional-components/nav/component.d.ts +1 -1
  955. package/dist/types/internal/functional-components/pagination/api.d.ts +2 -2
  956. package/dist/types/internal/functional-components/pagination/component.d.ts +2 -2
  957. package/dist/types/internal/functional-components/pagination/item.d.ts +10 -6
  958. package/dist/types/internal/functional-components/pagination/page-size-select.d.ts +3 -0
  959. package/dist/types/internal/functional-components/popover-button/api.d.ts +2 -2
  960. package/dist/types/internal/functional-components/progress/api.d.ts +11 -2
  961. package/dist/types/internal/functional-components/progress/component.d.ts +1 -1
  962. package/dist/types/internal/functional-components/props-from-config.d.ts +4 -1
  963. package/dist/types/internal/functional-components/quote/api.d.ts +2 -2
  964. package/dist/types/internal/functional-components/quote/component.d.ts +1 -1
  965. package/dist/types/internal/functional-components/select/api.d.ts +4 -4
  966. package/dist/types/internal/functional-components/single-select/api.d.ts +4 -4
  967. package/dist/types/internal/functional-components/single-select/component.d.ts +3 -0
  968. package/dist/types/internal/functional-components/skip-nav/api.d.ts +1 -1
  969. package/dist/types/internal/functional-components/span/api.d.ts +2 -2
  970. package/dist/types/internal/functional-components/span/component.d.ts +2 -1
  971. package/dist/types/internal/functional-components/spin/api.d.ts +1 -1
  972. package/dist/types/internal/functional-components/spin/component.d.ts +1 -1
  973. package/dist/types/internal/functional-components/table-stateful/api.d.ts +2 -2
  974. package/dist/types/internal/functional-components/table-stateful/model.d.ts +2 -2
  975. package/dist/types/internal/functional-components/table-stateless/api.d.ts +2 -2
  976. package/dist/types/internal/functional-components/table-stateless/component.d.ts +2 -1
  977. package/dist/types/internal/functional-components/table-stateless/table-model.d.ts +4 -7
  978. package/dist/types/internal/functional-components/tabs/api.d.ts +2 -2
  979. package/dist/types/internal/functional-components/text-input/api.d.ts +6 -6
  980. package/dist/types/internal/functional-components/textarea/api.d.ts +4 -4
  981. package/dist/types/internal/functional-components/toolbar/api.d.ts +2 -2
  982. package/dist/types/internal/functional-components/tooltip/api.d.ts +2 -2
  983. package/dist/types/internal/functional-components/tooltip/behavior.d.ts +2 -1
  984. package/dist/types/internal/functional-components/tree/api.d.ts +1 -1
  985. package/dist/types/internal/functional-components/tree-item/api.d.ts +2 -2
  986. package/dist/types/internal/props/accept.d.ts +2 -1
  987. package/dist/types/internal/props/access-key.d.ts +3 -2
  988. package/dist/types/internal/props/active.d.ts +3 -2
  989. package/dist/types/internal/props/adjust-height.d.ts +3 -2
  990. package/dist/types/internal/props/alert-callbacks.d.ts +1 -3
  991. package/dist/types/internal/props/alert-type.d.ts +1 -1
  992. package/dist/types/internal/props/alert-variant.d.ts +1 -1
  993. package/dist/types/internal/props/alert.d.ts +3 -2
  994. package/dist/types/internal/props/allow-markdown.d.ts +3 -2
  995. package/dist/types/internal/props/allow-multi-sort.d.ts +3 -2
  996. package/dist/types/internal/props/alt.d.ts +3 -2
  997. package/dist/types/internal/props/aria-controls.d.ts +3 -2
  998. package/dist/types/internal/props/aria-current-value.d.ts +1 -1
  999. package/dist/types/internal/props/aria-description.d.ts +3 -2
  1000. package/dist/types/internal/props/aria-details.d.ts +3 -2
  1001. package/dist/types/internal/props/aria-expanded.d.ts +1 -1
  1002. package/dist/types/internal/props/aria-has-popup.d.ts +1 -1
  1003. package/dist/types/internal/props/aria-owns.d.ts +3 -2
  1004. package/dist/types/internal/props/aria-selected.d.ts +1 -1
  1005. package/dist/types/internal/props/auto-complete.d.ts +1 -1
  1006. package/dist/types/internal/props/badge-text.d.ts +3 -2
  1007. package/dist/types/internal/props/boundary-count.d.ts +3 -2
  1008. package/dist/types/internal/props/breadcrumb-links.d.ts +1 -4
  1009. package/dist/types/internal/props/button-callbacks.d.ts +1 -3
  1010. package/dist/types/internal/props/button-type.d.ts +1 -1
  1011. package/dist/types/internal/props/card-callbacks.d.ts +1 -3
  1012. package/dist/types/internal/props/checkbox-value.d.ts +1 -1
  1013. package/dist/types/internal/props/checked.d.ts +3 -2
  1014. package/dist/types/internal/props/collapsible-callbacks.d.ts +1 -3
  1015. package/dist/types/internal/props/collapsible.d.ts +3 -2
  1016. package/dist/types/internal/props/color.d.ts +1 -1
  1017. package/dist/types/internal/props/custom-class.d.ts +3 -2
  1018. package/dist/types/internal/props/dialog-callbacks.d.ts +1 -1
  1019. package/dist/types/internal/props/disabled.d.ts +3 -2
  1020. package/dist/types/internal/props/download.d.ts +2 -1
  1021. package/dist/types/internal/props/drawer-callbacks.d.ts +1 -1
  1022. package/dist/types/internal/props/error-list.d.ts +1 -1
  1023. package/dist/types/internal/props/fixed-cols.d.ts +1 -1
  1024. package/dist/types/internal/props/form-callbacks.d.ts +1 -3
  1025. package/dist/types/internal/props/has-clear-button.d.ts +3 -2
  1026. package/dist/types/internal/props/has-closer.d.ts +3 -2
  1027. package/dist/types/internal/props/has-compact-button.d.ts +3 -2
  1028. package/dist/types/internal/props/has-counter.d.ts +3 -2
  1029. package/dist/types/internal/props/has-create-button.d.ts +3 -2
  1030. package/dist/types/internal/props/has-icons-when-expanded.d.ts +3 -2
  1031. package/dist/types/internal/props/has-settings-menu.d.ts +3 -2
  1032. package/dist/types/internal/props/helpers/factory.d.ts +13 -6
  1033. package/dist/types/internal/props/helpers/normalizers.d.ts +2 -1
  1034. package/dist/types/internal/props/helpers/validators.d.ts +5 -0
  1035. package/dist/types/internal/props/hide-label.d.ts +3 -2
  1036. package/dist/types/internal/props/hide-msg.d.ts +3 -2
  1037. package/dist/types/internal/props/high.d.ts +3 -2
  1038. package/dist/types/internal/props/hint.d.ts +3 -2
  1039. package/dist/types/internal/props/hints/label-hints.d.ts +2 -1
  1040. package/dist/types/internal/props/horizontal-icons.d.ts +1 -1
  1041. package/dist/types/internal/props/href.d.ts +3 -3
  1042. package/dist/types/internal/props/icons-input-checkbox.d.ts +1 -1
  1043. package/dist/types/internal/props/icons.d.ts +1 -1
  1044. package/dist/types/internal/props/id.d.ts +3 -2
  1045. package/dist/types/internal/props/image-callbacks.d.ts +1 -3
  1046. package/dist/types/internal/props/indeterminate.d.ts +3 -2
  1047. package/dist/types/internal/props/index.d.ts +2 -1
  1048. package/dist/types/internal/props/inline.d.ts +3 -2
  1049. package/dist/types/internal/props/input-date-type.d.ts +1 -1
  1050. package/dist/types/internal/props/input-text-type.d.ts +1 -1
  1051. package/dist/types/internal/props/kolibri-color.d.ts +1 -1
  1052. package/dist/types/internal/props/label-align.d.ts +1 -1
  1053. package/dist/types/internal/props/label-decorative.d.ts +4 -0
  1054. package/dist/types/internal/props/label-lang-segment.d.ts +4 -0
  1055. package/dist/types/internal/props/label-with-expert-slot.d.ts +3 -2
  1056. package/dist/types/internal/props/label.d.ts +2 -1
  1057. package/dist/types/internal/props/labeled.d.ts +3 -2
  1058. package/dist/types/internal/props/level.d.ts +1 -1
  1059. package/dist/types/internal/props/link-callbacks.d.ts +1 -3
  1060. package/dist/types/internal/props/link-role.d.ts +1 -1
  1061. package/dist/types/internal/props/link-target.d.ts +3 -2
  1062. package/dist/types/internal/props/loading.d.ts +1 -1
  1063. package/dist/types/internal/props/low.d.ts +3 -2
  1064. package/dist/types/internal/props/max-length-behavior.d.ts +1 -1
  1065. package/dist/types/internal/props/max-length.d.ts +2 -1
  1066. package/dist/types/internal/props/max.d.ts +3 -2
  1067. package/dist/types/internal/props/min.d.ts +3 -2
  1068. package/dist/types/internal/props/multiple.d.ts +3 -2
  1069. package/dist/types/internal/props/name.d.ts +3 -2
  1070. package/dist/types/internal/props/nav-links.d.ts +1 -3
  1071. package/dist/types/internal/props/open.d.ts +3 -2
  1072. package/dist/types/internal/props/optimum.d.ts +3 -2
  1073. package/dist/types/internal/props/options-with-optgroup.d.ts +1 -1
  1074. package/dist/types/internal/props/orientation.d.ts +1 -1
  1075. package/dist/types/internal/props/page-size-options.d.ts +1 -1
  1076. package/dist/types/internal/props/page-size.d.ts +3 -2
  1077. package/dist/types/internal/props/page.d.ts +3 -2
  1078. package/dist/types/internal/props/pagination-callbacks.d.ts +1 -3
  1079. package/dist/types/internal/props/pagination-has-buttons.d.ts +1 -1
  1080. package/dist/types/internal/props/pagination-max.d.ts +3 -2
  1081. package/dist/types/internal/props/pagination-position.d.ts +1 -1
  1082. package/dist/types/internal/props/pattern.d.ts +2 -1
  1083. package/dist/types/internal/props/placeholder.d.ts +2 -1
  1084. package/dist/types/internal/props/quote.d.ts +3 -2
  1085. package/dist/types/internal/props/radio-orientation.d.ts +1 -1
  1086. package/dist/types/internal/props/radio-value.d.ts +1 -1
  1087. package/dist/types/internal/props/read-only.d.ts +3 -2
  1088. package/dist/types/internal/props/required-text.d.ts +1 -1
  1089. package/dist/types/internal/props/required.d.ts +3 -2
  1090. package/dist/types/internal/props/resize.d.ts +1 -1
  1091. package/dist/types/internal/props/rows.d.ts +2 -1
  1092. package/dist/types/internal/props/secondary-headline.d.ts +3 -2
  1093. package/dist/types/internal/props/select-value.d.ts +1 -1
  1094. package/dist/types/internal/props/selected.d.ts +3 -2
  1095. package/dist/types/internal/props/short-key.d.ts +3 -2
  1096. package/dist/types/internal/props/show.d.ts +3 -2
  1097. package/dist/types/internal/props/sibling-count.d.ts +3 -2
  1098. package/dist/types/internal/props/sizes.d.ts +3 -2
  1099. package/dist/types/internal/props/skip-nav-links.d.ts +1 -3
  1100. package/dist/types/internal/props/smart-button.d.ts +2 -2
  1101. package/dist/types/internal/props/span-icons.d.ts +1 -1
  1102. package/dist/types/internal/props/spell-check.d.ts +2 -1
  1103. package/dist/types/internal/props/src.d.ts +3 -2
  1104. package/dist/types/internal/props/srcset.d.ts +3 -2
  1105. package/dist/types/internal/props/suggestions.d.ts +1 -1
  1106. package/dist/types/internal/props/sync-value-by-selector.d.ts +2 -1
  1107. package/dist/types/internal/props/tab-behavior.d.ts +1 -1
  1108. package/dist/types/internal/props/tab-index.d.ts +3 -2
  1109. package/dist/types/internal/props/table-data-foot.d.ts +1 -1
  1110. package/dist/types/internal/props/table-data.d.ts +1 -1
  1111. package/dist/types/internal/props/table-headers.d.ts +3 -3
  1112. package/dist/types/internal/props/table-loading.d.ts +3 -2
  1113. package/dist/types/internal/props/table-pagination.d.ts +1 -1
  1114. package/dist/types/internal/props/table-selection.d.ts +1 -1
  1115. package/dist/types/internal/props/table-stateful-headers.d.ts +3 -3
  1116. package/dist/types/internal/props/tabs-callbacks.d.ts +1 -1
  1117. package/dist/types/internal/props/tabs.d.ts +1 -1
  1118. package/dist/types/internal/props/toolbar-items.d.ts +1 -1
  1119. package/dist/types/internal/props/touched.d.ts +3 -2
  1120. package/dist/types/internal/props/unit.d.ts +3 -2
  1121. package/dist/types/internal/props/value-number-clamped.d.ts +4 -3
  1122. package/dist/types/internal/props/value-string.d.ts +2 -1
  1123. package/dist/types/internal/props/variant-dialog.d.ts +1 -1
  1124. package/dist/types/internal/props/variant-input-checkbox.d.ts +1 -1
  1125. package/dist/types/internal/props/variant-progress.d.ts +1 -1
  1126. package/dist/types/internal/props/variant-quote.d.ts +1 -1
  1127. package/dist/types/internal/props/variant-spin.d.ts +1 -1
  1128. package/dist/types/internal/props/variant.d.ts +1 -1
  1129. package/dist/types/internal/props/visibility-toggle.d.ts +3 -2
  1130. package/dist/types/internal/props/width.d.ts +3 -2
  1131. package/dist/types/locales/de.d.ts +1 -0
  1132. package/dist/types/locales/en.d.ts +1 -0
  1133. package/dist/types/schema/bem-registry.d.ts +162 -23
  1134. package/dist/types/schema/components/alert.d.ts +2 -2
  1135. package/dist/types/schema/components/badge.d.ts +2 -2
  1136. package/dist/types/schema/components/breadcrumb.d.ts +2 -2
  1137. package/dist/types/schema/components/card.d.ts +2 -2
  1138. package/dist/types/schema/components/collapsible.d.ts +3 -3
  1139. package/dist/types/schema/components/dialog.d.ts +3 -3
  1140. package/dist/types/schema/components/drawer.d.ts +3 -3
  1141. package/dist/types/schema/components/pagination.d.ts +2 -2
  1142. package/dist/types/schema/components/split-button.d.ts +2 -2
  1143. package/dist/types/schema/components/table.d.ts +4 -5
  1144. package/dist/types/schema/components/tableStateless.d.ts +6 -5
  1145. package/dist/types/schema/components/tabs.d.ts +2 -2
  1146. package/dist/types/schema/components/tree-item.d.ts +2 -2
  1147. package/dist/types/schema/i18n-keys.d.ts +29 -28
  1148. package/dist/types/schema/index.d.ts +1 -1
  1149. package/dist/types/schema/props/allow-markdown.d.ts +1 -0
  1150. package/dist/types/schema/props/aria-controls.d.ts +1 -2
  1151. package/dist/types/schema/props/aria-details.d.ts +0 -2
  1152. package/dist/types/schema/props/aria-labelledby.d.ts +1 -2
  1153. package/dist/types/schema/props/boundary-count.d.ts +1 -0
  1154. package/dist/types/schema/props/has-clear-button.d.ts +1 -0
  1155. package/dist/types/schema/props/has-compact-button.d.ts +1 -2
  1156. package/dist/types/schema/props/high.d.ts +1 -0
  1157. package/dist/types/schema/props/index.d.ts +20 -3
  1158. package/dist/types/schema/props/label.d.ts +17 -2
  1159. package/dist/types/schema/props/labeled.d.ts +1 -0
  1160. package/dist/types/schema/props/low.d.ts +1 -0
  1161. package/dist/types/schema/props/min.d.ts +1 -0
  1162. package/dist/types/schema/props/optimum.d.ts +1 -0
  1163. package/dist/types/schema/props/page-size.d.ts +1 -0
  1164. package/dist/types/schema/props/page.d.ts +1 -0
  1165. package/dist/types/schema/props/quote.d.ts +0 -5
  1166. package/dist/types/schema/props/secondary-headline.d.ts +1 -0
  1167. package/dist/types/schema/props/selected.d.ts +1 -0
  1168. package/dist/types/schema/props/sibling-count.d.ts +1 -0
  1169. package/dist/types/schema/props/sizes.d.ts +1 -0
  1170. package/dist/types/schema/props/src.d.ts +1 -0
  1171. package/dist/types/schema/props/srcset.d.ts +1 -0
  1172. package/dist/types/schema/props/table-callbacks.d.ts +3 -3
  1173. package/dist/types/schema/props/table-headers.d.ts +3 -0
  1174. package/dist/types/schema/props/table-loading.d.ts +1 -0
  1175. package/dist/types/schema/props/value-number-clamped.d.ts +1 -0
  1176. package/dist/types/schema/props/value-string.d.ts +1 -0
  1177. package/dist/types/schema/types/button-link-text.d.ts +4 -4
  1178. package/dist/types/schema/utils/dev.utils.d.ts +1 -0
  1179. package/dist/types/stencil-public-runtime.d.ts +1 -1
  1180. package/dist/types/utils/aria-labelledby.d.ts +0 -6
  1181. package/dist/types/utils/dev.utils.d.ts +0 -2
  1182. package/dist/types/utils/element-focus.d.ts +1 -0
  1183. package/dist/types/utils/element-interaction.d.ts +0 -1
  1184. package/dist/types/utils/element-themed.d.ts +1 -2
  1185. package/dist/types/utils/unique-nav-labels.d.ts +3 -2
  1186. package/doc/abbr.md +3 -3
  1187. package/doc/accordion.md +1 -1
  1188. package/doc/alert.md +1 -1
  1189. package/doc/badge.md +21 -6
  1190. package/doc/breadcrumb.md +4 -4
  1191. package/doc/button-link.md +2 -2
  1192. package/doc/button.md +14 -1
  1193. package/doc/card.md +2 -2
  1194. package/doc/combobox.md +23 -23
  1195. package/doc/details.md +1 -1
  1196. package/doc/dialog.md +1 -1
  1197. package/doc/drawer.md +1 -1
  1198. package/doc/heading.md +5 -5
  1199. package/doc/input-checkbox.md +38 -23
  1200. package/doc/input-color.md +22 -22
  1201. package/doc/input-date.md +28 -28
  1202. package/doc/input-email.md +30 -30
  1203. package/doc/input-file.md +22 -22
  1204. package/doc/input-number.md +43 -28
  1205. package/doc/input-password.md +29 -29
  1206. package/doc/input-radio.md +19 -19
  1207. package/doc/input-range.md +24 -24
  1208. package/doc/input-text.md +31 -31
  1209. package/doc/link-button.md +5 -5
  1210. package/doc/link.md +19 -6
  1211. package/doc/meter.md +1 -1
  1212. package/doc/modal.md +1 -1
  1213. package/doc/pagination.md +13 -13
  1214. package/doc/popover-button.md +18 -18
  1215. package/doc/progress.md +7 -7
  1216. package/doc/quote.md +19 -6
  1217. package/doc/select.md +24 -24
  1218. package/doc/single-select.md +24 -24
  1219. package/doc/split-button.md +1 -1
  1220. package/doc/table-stateful.md +33 -16
  1221. package/doc/table-stateless.md +31 -15
  1222. package/doc/textarea.md +3 -3
  1223. package/doc/tree-item.md +6 -6
  1224. package/package.json +24 -23
  1225. package/vscode-custom-data.json +41 -58
  1226. package/dist/cjs/align-NV74hwT0.js +0 -22
  1227. package/dist/cjs/api-BBdhCCKv.js +0 -73
  1228. package/dist/cjs/api-BlwpFlt1.js +0 -96
  1229. package/dist/cjs/ariaCurrentService-3051l6MI.js +0 -28
  1230. package/dist/cjs/block-bem-CNP2_qFi.js +0 -18
  1231. package/dist/cjs/bootstrap-BbvuwOW2.js +0 -33
  1232. package/dist/cjs/clsx-Bm_HQUnh.js +0 -54
  1233. package/dist/cjs/common-DRvysX2o.js +0 -1741
  1234. package/dist/cjs/component-B_EvGSM0.js +0 -22
  1235. package/dist/cjs/component-Byx8Sl1k.js +0 -20
  1236. package/dist/cjs/component-C-jt8Zgv.js +0 -36
  1237. package/dist/cjs/component-CyFwKqlx.js +0 -9287
  1238. package/dist/cjs/component-DK-qYG29.js +0 -29
  1239. package/dist/cjs/component-DMaPKMLG.js +0 -14
  1240. package/dist/cjs/component-kxdSa2S4.js +0 -36
  1241. package/dist/cjs/component-names-EMVnNhTP.js +0 -115
  1242. package/dist/cjs/component-plNY-StC.js +0 -13
  1243. package/dist/cjs/component-x3LvOAC0.js +0 -18
  1244. package/dist/cjs/disabled-wIEbt0Gz.js +0 -10
  1245. package/dist/cjs/has-closer-4Czygcsx.js +0 -10
  1246. package/dist/cjs/href-B2aqb6-P.js +0 -12
  1247. package/dist/cjs/input-tgqPNmdz.js +0 -20
  1248. package/dist/cjs/isArray-BOIOdEQh.js +0 -163
  1249. package/dist/cjs/kol-click-button.cjs.entry.js +0 -51
  1250. package/dist/cjs/kol-skeleton.cjs.entry.js +0 -105
  1251. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +0 -82
  1252. package/dist/cjs/label-DeUoiK6M.js +0 -39
  1253. package/dist/cjs/label-with-expert-slot-B1k6ppMF.js +0 -10
  1254. package/dist/cjs/level-DGDM1aXl.js +0 -11
  1255. package/dist/cjs/link-target-PjKWXgno.js +0 -10
  1256. package/dist/cjs/links-0QyGYlHz.js +0 -15
  1257. package/dist/cjs/multiple-BoCGiGxR.js +0 -10
  1258. package/dist/cjs/name-BZcwC1Zd.js +0 -10
  1259. package/dist/cjs/open-ui_yY8GH.js +0 -10
  1260. package/dist/cjs/placeholder-CCYSgsip.js +0 -10
  1261. package/dist/cjs/read-only-KKKbZyk5.js +0 -10
  1262. package/dist/cjs/required-CeiUcxrv.js +0 -10
  1263. package/dist/cjs/resolve-props-BcGzqFFR.js +0 -58
  1264. package/dist/cjs/resolve-props-Cv67cUZA.js +0 -60
  1265. package/dist/cjs/rows-BWBG8nDk.js +0 -10
  1266. package/dist/cjs/smart-button-DQryZ9gX.js +0 -18
  1267. package/dist/cjs/spell-check-DHRle7ui.js +0 -10
  1268. package/dist/cjs/src-B6CU1zD0.js +0 -10
  1269. package/dist/cjs/step-kuREYDVE.js +0 -10
  1270. package/dist/cjs/suggestions-b21ak6-A.js +0 -24
  1271. package/dist/cjs/unique-nav-labels-CuHbVHx9.js +0 -22
  1272. package/dist/cjs/unit-DHpzrXY7.js +0 -13
  1273. package/dist/cjs/value-string-BtfdnGIb.js +0 -10
  1274. package/dist/cjs/variant-CxQO5qFu.js +0 -106
  1275. package/dist/collection/components/@else/all/component.js +0 -17
  1276. package/dist/collection/components/@else/counter/component.js +0 -29
  1277. package/dist/collection/components/_skeleton/web-components/click-button/component.js +0 -95
  1278. package/dist/collection/components/_skeleton/web-components/skeleton/component.js +0 -205
  1279. package/dist/collection/components/component-list.js +0 -105
  1280. package/dist/collection/components/heading/validation.js +0 -11
  1281. package/dist/collection/components/tooltip/component.js +0 -204
  1282. package/dist/collection/functional-components/Heading/index.js +0 -5
  1283. package/dist/collection/internal/functional-components/click-button/api.js +0 -7
  1284. package/dist/collection/internal/functional-components/click-button/component.js +0 -9
  1285. package/dist/collection/internal/functional-components/form-field/custom-suggestions.test.js +0 -55
  1286. package/dist/collection/internal/functional-components/form-field/field-control.test.js +0 -57
  1287. package/dist/collection/internal/functional-components/form-field/input-shell.test.js +0 -43
  1288. package/dist/collection/internal/functional-components/form-field/select.test.js +0 -140
  1289. package/dist/collection/internal/functional-components/form-field/snapshot.test.js +0 -43
  1290. package/dist/collection/internal/functional-components/form-field/textarea.test.js +0 -18
  1291. package/dist/collection/internal/functional-components/popover/snapshot.test.js +0 -15
  1292. package/dist/collection/internal/functional-components/skeleton/api.js +0 -7
  1293. package/dist/collection/internal/functional-components/skeleton/component.js +0 -20
  1294. package/dist/collection/internal/functional-components/span/snapshot.test.js +0 -70
  1295. package/dist/collection/internal/props/hints/index.js +0 -4
  1296. package/dist/collection/internal/props/pagination-label.js +0 -6
  1297. package/dist/collection/schema/components/input.js +0 -4
  1298. package/dist/collection/schema/props/table-header-cells.js +0 -36
  1299. package/dist/collection/schema/props/variant/spin.js +0 -8
  1300. package/dist/collection/schema/props/variant-quote.js +0 -11
  1301. package/dist/collection/schema/validators/window.js +0 -4
  1302. package/dist/components/align.js +0 -4
  1303. package/dist/components/api.js +0 -4
  1304. package/dist/components/api2.js +0 -4
  1305. package/dist/components/aria-labelledby.js +0 -4
  1306. package/dist/components/block-bem.js +0 -4
  1307. package/dist/components/clsx.js +0 -4
  1308. package/dist/components/href.js +0 -4
  1309. package/dist/components/isArray.js +0 -4
  1310. package/dist/components/kol-click-button.d.ts +0 -11
  1311. package/dist/components/kol-click-button.js +0 -4
  1312. package/dist/components/kol-skeleton.d.ts +0 -11
  1313. package/dist/components/kol-skeleton.js +0 -4
  1314. package/dist/components/kol-tooltip-wc.d.ts +0 -11
  1315. package/dist/components/kol-tooltip-wc.js +0 -4
  1316. package/dist/components/name.js +0 -4
  1317. package/dist/components/variant.js +0 -4
  1318. package/dist/esm/align-DsFuqEf5.js +0 -20
  1319. package/dist/esm/api-CvPkoAAG.js +0 -67
  1320. package/dist/esm/ariaCurrentService-YoLNpD5S.js +0 -25
  1321. package/dist/esm/block-bem-DXqmf3Te.js +0 -16
  1322. package/dist/esm/bootstrap-DTVsVq0w.js +0 -28
  1323. package/dist/esm/clsx-COFh-Vc8.js +0 -52
  1324. package/dist/esm/common-D03JQJgy.js +0 -1695
  1325. package/dist/esm/component-BkjWlzLc.js +0 -33
  1326. package/dist/esm/component-C9mkZ63L.js +0 -18
  1327. package/dist/esm/component-CySyXSru.js +0 -19
  1328. package/dist/esm/component-DeWynlzi.js +0 -12
  1329. package/dist/esm/component-DqHI-AwD.js +0 -27
  1330. package/dist/esm/component-DxddScWx.js +0 -34
  1331. package/dist/esm/component-DzVHCXnG.js +0 -16
  1332. package/dist/esm/component-Ik_-HAMT.js +0 -9283
  1333. package/dist/esm/component-YhEwg1LK.js +0 -11
  1334. package/dist/esm/component-names-Dhbtt0mX.js +0 -113
  1335. package/dist/esm/href-OaK1sDT5.js +0 -9
  1336. package/dist/esm/isArray-CcrBs4JM.js +0 -156
  1337. package/dist/esm/kol-click-button.entry.js +0 -49
  1338. package/dist/esm/kol-skeleton.entry.js +0 -103
  1339. package/dist/esm/kol-tooltip-wc.entry.js +0 -80
  1340. package/dist/esm/label-BNtqGdMQ.js +0 -35
  1341. package/dist/esm/label-with-expert-slot-aAOUzLo3.js +0 -8
  1342. package/dist/esm/name-m3owaZxH.js +0 -8
  1343. package/dist/esm/rows-CUHDEUm9.js +0 -8
  1344. package/dist/esm/tooltip-open-tracking-D3tCiiGP.js +0 -18
  1345. package/dist/esm/unique-nav-labels-Bh3w7dCH.js +0 -19
  1346. package/dist/kolibri/Heading-0teSdkFq.js +0 -4
  1347. package/dist/kolibri/access-and-short-key-ijzCZfHm.js +0 -4
  1348. package/dist/kolibri/align-DsFuqEf5.js +0 -4
  1349. package/dist/kolibri/api-B9mpTRGa.js +0 -4
  1350. package/dist/kolibri/api-CvPkoAAG.js +0 -4
  1351. package/dist/kolibri/api-hAvZrw9X.js +0 -4
  1352. package/dist/kolibri/app-globals-Dff_iJYF.js +0 -4
  1353. package/dist/kolibri/aria-labelledby-BRToXqsQ.js +0 -4
  1354. package/dist/kolibri/ariaCurrentService-YoLNpD5S.js +0 -4
  1355. package/dist/kolibri/base-7FEvBJ3L.js +0 -4
  1356. package/dist/kolibri/base-COT79ELt.js +0 -4
  1357. package/dist/kolibri/base-CsJWjTJl.js +0 -4
  1358. package/dist/kolibri/base-Df1bwC8d.js +0 -4
  1359. package/dist/kolibri/base-web-component-Bcoukts3.js +0 -4
  1360. package/dist/kolibri/base-web-component-C1XSz7ML.js +0 -4
  1361. package/dist/kolibri/base-web-component-cTyj95G-.js +0 -4
  1362. package/dist/kolibri/behavior-BMW-_4Oy.js +0 -4
  1363. package/dist/kolibri/behavior-BlS6DO8T.js +0 -4
  1364. package/dist/kolibri/behavior-Zr6qAX7F.js +0 -4
  1365. package/dist/kolibri/bem-registry-BlJAUViA.js +0 -4
  1366. package/dist/kolibri/block-bem-DXqmf3Te.js +0 -4
  1367. package/dist/kolibri/bootstrap-DTVsVq0w.js +0 -4
  1368. package/dist/kolibri/clsx-COFh-Vc8.js +0 -4
  1369. package/dist/kolibri/color-9CMp_pOq.js +0 -4
  1370. package/dist/kolibri/common-D03JQJgy.js +0 -4
  1371. package/dist/kolibri/component-BkjWlzLc.js +0 -4
  1372. package/dist/kolibri/component-BmJGOcby.js +0 -4
  1373. package/dist/kolibri/component-C9mkZ63L.js +0 -4
  1374. package/dist/kolibri/component-C_Te18y_.js +0 -4
  1375. package/dist/kolibri/component-CySyXSru.js +0 -4
  1376. package/dist/kolibri/component-DHl33p9J.js +0 -4
  1377. package/dist/kolibri/component-DeWynlzi.js +0 -4
  1378. package/dist/kolibri/component-DqHI-AwD.js +0 -4
  1379. package/dist/kolibri/component-DxddScWx.js +0 -4
  1380. package/dist/kolibri/component-DzVHCXnG.js +0 -4
  1381. package/dist/kolibri/component-Ik_-HAMT.js +0 -4
  1382. package/dist/kolibri/component-YhEwg1LK.js +0 -4
  1383. package/dist/kolibri/component-names-Dhbtt0mX.js +0 -4
  1384. package/dist/kolibri/contrast-BK5uVXeb.js +0 -4
  1385. package/dist/kolibri/controller-Bf-CAo4Q.js +0 -4
  1386. package/dist/kolibri/dev.utils-BgjegQC8.js +0 -4
  1387. package/dist/kolibri/devtools-4nOArEGl.js +0 -4
  1388. package/dist/kolibri/disabled-BaPgTuFO.js +0 -4
  1389. package/dist/kolibri/element-focus-Cp994Rrk.js +0 -4
  1390. package/dist/kolibri/element-interaction-Cy9tx3Sx.js +0 -4
  1391. package/dist/kolibri/events-BIT-JUP2.js +0 -4
  1392. package/dist/kolibri/field-control-Brx62dJV.js +0 -4
  1393. package/dist/kolibri/group-Ce5pMiZJ.js +0 -4
  1394. package/dist/kolibri/has-closer-C9L79ect.js +0 -4
  1395. package/dist/kolibri/href-OaK1sDT5.js +0 -4
  1396. package/dist/kolibri/i18n-DRQl0u--.js +0 -4
  1397. package/dist/kolibri/i18n-Dl6Jjofb.js +0 -4
  1398. package/dist/kolibri/index-D5UV99lE.js +0 -6
  1399. package/dist/kolibri/input-DjQorwQ5.js +0 -4
  1400. package/dist/kolibri/input-container-RSmfcRgK.js +0 -4
  1401. package/dist/kolibri/isArray-CcrBs4JM.js +0 -4
  1402. package/dist/kolibri/item-2cprk9ut.js +0 -4
  1403. package/dist/kolibri/item-Bfk2xd-D.js +0 -4
  1404. package/dist/kolibri/item-D9_O5WAR.js +0 -4
  1405. package/dist/kolibri/item-DMWn_IlJ.js +0 -4
  1406. package/dist/kolibri/item-pool-BOxAYePG.js +0 -4
  1407. package/dist/kolibri/keyboard-Cnv7zP3N.js +0 -4
  1408. package/dist/kolibri/kol-click-button.entry.js +0 -4
  1409. package/dist/kolibri/kol-skeleton.entry.js +0 -4
  1410. package/dist/kolibri/kol-tooltip-wc.entry.js +0 -4
  1411. package/dist/kolibri/label-BNtqGdMQ.js +0 -4
  1412. package/dist/kolibri/label-with-expert-slot-aAOUzLo3.js +0 -4
  1413. package/dist/kolibri/level-Df663c7y.js +0 -4
  1414. package/dist/kolibri/link-target-C7_smSbV.js +0 -4
  1415. package/dist/kolibri/links-B0xbzBwU.js +0 -4
  1416. package/dist/kolibri/multiple-CYHm7rd3.js +0 -4
  1417. package/dist/kolibri/name-m3owaZxH.js +0 -4
  1418. package/dist/kolibri/number-value-CMedWR58.js +0 -4
  1419. package/dist/kolibri/open-DCGNTmvC.js +0 -4
  1420. package/dist/kolibri/open-items-cache-D-kml1h6.js +0 -4
  1421. package/dist/kolibri/options-B0rBHetL.js +0 -4
  1422. package/dist/kolibri/options-CR431ims.js +0 -4
  1423. package/dist/kolibri/orientation-C9FRNmPD.js +0 -4
  1424. package/dist/kolibri/placeholder-Bwzvbwhh.js +0 -4
  1425. package/dist/kolibri/read-only-C5fDsZVK.js +0 -4
  1426. package/dist/kolibri/required-CC0212MQ.js +0 -4
  1427. package/dist/kolibri/resolve-props-47S-r31C.js +0 -4
  1428. package/dist/kolibri/resolve-props-CnHCiXuG.js +0 -4
  1429. package/dist/kolibri/rows-CUHDEUm9.js +0 -4
  1430. package/dist/kolibri/scroll-lock-DQGTnLvW.js +0 -4
  1431. package/dist/kolibri/smart-button-BHM06d-t.js +0 -4
  1432. package/dist/kolibri/spell-check-DiSedaOR.js +0 -4
  1433. package/dist/kolibri/src-CsLEg--w.js +0 -4
  1434. package/dist/kolibri/step-BxSThOke.js +0 -4
  1435. package/dist/kolibri/suggestions-B79TOsF_.js +0 -4
  1436. package/dist/kolibri/suggestions-C38q-5JU.js +0 -4
  1437. package/dist/kolibri/toggle-handler-CQ0FhBmD.js +0 -4
  1438. package/dist/kolibri/tooltip-open-tracking-D3tCiiGP.js +0 -4
  1439. package/dist/kolibri/unique-nav-labels-Bh3w7dCH.js +0 -4
  1440. package/dist/kolibri/unit-BgjPEae-.js +0 -4
  1441. package/dist/kolibri/value-string-BDfywbme.js +0 -4
  1442. package/dist/kolibri/variant-PJN56KWi.js +0 -4
  1443. package/dist/kolibri/width-CAS8lhOU.js +0 -4
  1444. package/dist/types/components/@else/all/component.d.ts +0 -12
  1445. package/dist/types/components/@else/counter/component.d.ts +0 -9
  1446. package/dist/types/components/_skeleton/web-components/click-button/component.d.ts +0 -14
  1447. package/dist/types/components/_skeleton/web-components/skeleton/component.d.ts +0 -25
  1448. package/dist/types/components/component-list.d.ts +0 -7
  1449. package/dist/types/components/heading/validation.d.ts +0 -3
  1450. package/dist/types/components/tooltip/component.d.ts +0 -19
  1451. package/dist/types/functional-components/Heading/index.d.ts +0 -2
  1452. package/dist/types/internal/functional-components/click-button/api.d.ts +0 -15
  1453. package/dist/types/internal/functional-components/click-button/component.d.ts +0 -4
  1454. package/dist/types/internal/functional-components/skeleton/api.d.ts +0 -29
  1455. package/dist/types/internal/functional-components/skeleton/component.d.ts +0 -4
  1456. package/dist/types/internal/props/hints/index.d.ts +0 -1
  1457. package/dist/types/internal/props/pagination-label.d.ts +0 -3
  1458. package/dist/types/schema/components/input.d.ts +0 -0
  1459. package/dist/types/schema/props/table-header-cells.d.ts +0 -11
  1460. package/dist/types/schema/props/variant/spin.d.ts +0 -8
  1461. package/dist/types/schema/props/variant-quote.d.ts +0 -7
  1462. package/dist/types/schema/validators/window.d.ts +0 -0
  1463. package/doc/_skeleton.md +0 -79
  1464. package/doc/skeleton.md +0 -54
  1465. /package/dist/{types/internal/functional-components/form-field/custom-suggestions.test.d.ts → collection/schema/props/allow-markdown.js} +0 -0
  1466. /package/dist/{types/internal/functional-components/form-field/field-control.test.d.ts → collection/schema/props/boundary-count.js} +0 -0
  1467. /package/dist/{types/internal/functional-components/form-field/input-shell.test.d.ts → collection/schema/props/has-clear-button.js} +0 -0
  1468. /package/dist/{types/internal/functional-components/form-field/select.test.d.ts → collection/schema/props/high.js} +0 -0
  1469. /package/dist/{types/internal/functional-components/form-field/snapshot.test.d.ts → collection/schema/props/labeled.js} +0 -0
  1470. /package/dist/{types/internal/functional-components/form-field/textarea.test.d.ts → collection/schema/props/low.js} +0 -0
  1471. /package/dist/{types/internal/functional-components/popover/snapshot.test.d.ts → collection/schema/props/min.js} +0 -0
  1472. /package/dist/{types/internal/functional-components/span/snapshot.test.d.ts → collection/schema/props/optimum.js} +0 -0
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h as i}from"@stencil/core/internal/client";import{v as s,B as t}from"./base-web-component.js";import{r as l,C as o}from"./component5.js";import"./common.js";import{l as a}from"./level.js";import{d as e,w as h}from"./width.js";import{l as r}from"./label.js";import{u as n,l as d,D as p,d as m}from"./scroll-lock.js";import{T as c}from"./behavior.js";import{c as v}from"./element-interaction.js";import{d as u,K as f}from"./events.js";import{h as b}from"./tooltip-open-tracking.js";const g={required:[r],optional:[e,a,s,h]},j=()=>{},C=class extends t{constructor(){super(...arguments),this.dialogRef=v(),this.cardCloseButtonRef=v(),this.cardCloseTooltipBehavior=new c(this.stateAccess),this.handleCancel=i=>{var s,t;b(i),i.defaultPrevented||(null===(t=(s=this.getRenderProp("on")).onCancel)||void 0===t||t.call(s,i),i.defaultPrevented||this.host&&!u(this.host,f.cancel)&&i.preventDefault())},this.handleClose=i=>{var s,t;i.target===this.dialogRef.el&&(n(this),null===(t=(s=this.getRenderProp("on")).onClose)||void 0===t||t.call(s),this.host&&u(this.host,f.close))},this.handleCardClose=()=>{this.cardCloseTooltipBehavior.hideTooltip(),this.closeDialog(),this.host&&u(this.host,f.close)}}initDialogRenderProps(){this.initRenderProps(g),this.cardCloseButtonProps=l(this.host),this.cardCloseTooltipBehavior.componentWillLoad({label:this.cardCloseButtonProps.label,align:this.cardCloseButtonProps.tooltipAlign})}syncCardCloseTooltipListeners(){this.cardCloseButtonRef.el&&this.cardCloseTooltipBehavior.syncListeners(void 0,this.cardCloseButtonRef.el,!0)}teardownDialog(){this.closeDialog(),n(this),this.cardCloseTooltipBehavior.destroy()}applyLabel(i){r.apply(i,(i=>this.setRenderProp("label",i)))}applyLevel(i){a.apply(i,(i=>this.setRenderProp("level",i)))}applyOn(i){e.apply(i,(i=>this.setRenderProp("on",i)))}applyVariant(i){s.apply(i,(i=>this.setRenderProp("variant",i)))}applyWidth(i){h.apply(i,(i=>this.setRenderProp("width",i)))}showDialog(i){var s,t;const l=this.dialogRef.el;(null==l?void 0:l.open)||(this.setState("modal",i),i?(null===(s=null==l?void 0:l.showModal)||void 0===s||s.call(l),l&&d(this)):null===(t=null==l?void 0:l.show)||void 0===t||t.call(l))}closeDialog(){var i,s;null===(s=null===(i=this.dialogRef.el)||void 0===i?void 0:i.close)||void 0===s||s.call(i)}buildCardProps(){return{ariaDescriptionId:this.getState("ariaDescriptionId"),closeButtonProps:this.cardCloseButtonProps,handleBlur:j,handleClose:this.handleCardClose,handleFocus:j,hasCloser:!0,headingId:this.getState("headingId"),href:"",label:this.getRenderProp("label"),level:this.getRenderProp("level"),on:{},refCloseButton:this.cardCloseButtonRef,refCta:j,refTooltip:this.cardCloseTooltipBehavior.setTooltipElementRef,target:""}}renderDialogFC(){const s=this.getRenderProp("variant"),t="card"===s;return i(p,{blockClass:m(s),handleCancel:this.handleCancel,handleClose:this.handleClose,label:this.getRenderProp("label"),labelledBy:t?this.getState("headingId"):void 0,modal:this.getState("modal"),refDialog:this.dialogRef,width:this.getRenderProp("width")},t?i(o,Object.assign({},this.buildCardProps()),this.renderSlot()):this.renderSlot())}};export{C as B}
4
+ import{h as i}from"./common.js";import{E as s,a as t,t as l}from"./base-web-component.js";import{r as o,C as h}from"./component8.js";import{l as a}from"./level.js";import{d as e,w as r}from"./width.js";import{l as n}from"./label-lang-segment.js";import{u as d,l as p,D as m}from"./scroll-lock.js";import{T as v}from"./behavior.js";import{c}from"./element-interaction.js";import{d as u,K as b}from"./events.js";import{h as f}from"./tooltip-open-tracking.js";const g={required:[n],optional:[e,a,s,r]},j=class extends t{constructor(){super(...arguments),this.dialogRef=c(),this.cardCloseButtonRef=c(),this.cardCloseTooltipBehavior=new v(this.stateAccess),this.propsConfig=g,this.handleCancel=i=>{var s,t;f(i),i.defaultPrevented||(null===(t=(s=this.getRenderProp("on")).onCancel)||void 0===t||t.call(s,i),i.defaultPrevented||this.host&&!u(this.host,b.cancel)&&i.preventDefault())},this.handleClose=i=>{var s,t,l,o;i.target===this.dialogRef.el&&(d(this),null===(t=(s=this.getRenderProp("on")).onClose)||void 0===t||t.call(s),null===(o=(l=this.getRenderProp("on")).onToggle)||void 0===o||o.call(l,!1),this.host&&(u(this.host,b.close),u(this.host,b.toggle)))},this.handleCardClose=()=>{this.cardCloseTooltipBehavior.hideTooltip(),this.closeDialog(),this.host&&u(this.host,b.close)}}initCardCloseButton(){this.cardCloseButtonProps=o(this.host),this.cardCloseTooltipBehavior.componentWillLoad({label:this.cardCloseButtonProps.label,align:this.cardCloseButtonProps.tooltipAlign})}syncCardCloseTooltipListeners(){this.cardCloseButtonRef.el&&this.cardCloseTooltipBehavior.syncListeners(void 0,this.cardCloseButtonRef.el,!0)}teardownDialog(){this.closeDialog(),d(this),this.cardCloseTooltipBehavior.destroy()}applyLabel(i){n.apply(i,(i=>this.setRenderProp("label",i)),this.isRequired("label"))}applyLevel(i){a.apply(i,(i=>this.setRenderProp("level",i)))}applyOn(i){e.apply(i,(i=>this.setRenderProp("on",i)))}applyVariant(i){s.apply(i,(i=>this.setRenderProp("variant",i)))}applyWidth(i){r.apply(i,(i=>this.setRenderProp("width",i)))}showDialog(i){var s,t,l,o;const h=this.dialogRef.el;(null==h?void 0:h.open)||(this.setState("modal",i),i?(null===(s=null==h?void 0:h.showModal)||void 0===s||s.call(h),h&&p(this)):null===(t=null==h?void 0:h.show)||void 0===t||t.call(h),null===(o=(l=this.getRenderProp("on")).onToggle)||void 0===o||o.call(l,!0),this.host&&u(this.host,b.toggle))}closeDialog(){var i,s;null===(s=null===(i=this.dialogRef.el)||void 0===i?void 0:i.close)||void 0===s||s.call(i)}buildCardProps(){return{ariaDescriptionId:this.getState("ariaDescriptionId"),closeButtonProps:this.cardCloseButtonProps,handleClose:this.handleCardClose,hasCloser:!0,headingId:this.getState("headingId"),label:this.getRenderProp("label"),level:this.getRenderProp("level"),refCloseButton:this.cardCloseButtonRef,refTooltip:this.cardCloseTooltipBehavior.setTooltipElementRef}}renderDialogFC(){const s=this.getRenderProp("variant"),t="card"===s;return i(m,{handleCancel:this.handleCancel,handleClose:this.handleClose,label:l(this.getRenderProp("label")),labelledBy:t?this.getState("headingId"):void 0,modal:this.getState("modal"),refDialog:this.dialogRef,variant:s,width:this.getRenderProp("width")},t?i(h,Object.assign({},this.buildCardProps()),this.renderSlot()):this.renderSlot())}};export{j as B}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h as i}from"@stencil/core/internal/client";import{B as s}from"./base-web-component.js";import{l as t,a,c as r,d as e,b as o,L as h}from"./api.js";import{T as n}from"./behavior.js";import{s as l}from"./common.js";import{a as p,b as d,c,f as m,g as y,h as b,s as f,i as u,l as C,d as x,t as g,e as v,v as A}from"./variant.js";import{d as j}from"./disabled.js";import{h as L}from"./href.js";import{l as w}from"./label-with-expert-slot.js";import{l as I}from"./link-target.js";import{c as K}from"./element-interaction.js";import{d as D,K as T}from"./events.js";import{o as k}from"./ariaCurrentService.js";const V=class extends s{constructor(){super(...arguments),this.ctaRef=K((()=>!0===this.getRenderProp("disabled"))),this.tooltipBehavior=new n(this.stateAccess),this.handleAnchorClick=i=>{if(this.tooltipBehavior.hideTooltip(),!0===this.getRenderProp("disabled"))return void i.preventDefault();const s=this.getRenderProp("href"),t=this.getRenderProp("on");"function"==typeof(null==t?void 0:t.onClick)&&(l(i,this.ctaRef.el),t.onClick(i,s)),this.host&&D(this.host,T.click,s)},this.setAnchorRef=i=>{this.ctaRef(i)}}initLinkRenderProps(){this.initRenderProps(t),this.unsetRenderProp("tabIndex")}initLinkBehaviors(){this.unsubscribeOnLocationChange=k((i=>{const s=this.getRenderProp("href"),t=this.getRenderProp("ariaCurrentValue"),a=i===s?t:"";this.getState("ariaCurrent")!==a&&this.setState("ariaCurrent",a)})),this.tooltipBehavior.componentWillLoad({label:this.getTooltipLabel(),align:this.getRenderProp("tooltipAlign")})}syncTooltipListeners(){this.ctaRef.el&&this.tooltipBehavior.syncListeners(void 0,this.ctaRef.el,!0)}destroyLinkBehaviors(){this.unsubscribeOnLocationChange&&(this.unsubscribeOnLocationChange(),this.unsubscribeOnLocationChange=void 0),this.tooltipBehavior.destroy()}getTooltipLabel(){const i=this.getRenderProp("label");if("string"==typeof i&&i.length>0)return i;const s=this.getRenderProp("href");return"string"==typeof s?s:""}applyAccessKey(i){p.apply(i,(i=>this.setRenderProp("accessKey",i)))}applyAriaControls(i){d.apply(i,(i=>this.setRenderProp("ariaControls",i)))}applyAriaCurrentValue(i){a.apply(i,(i=>this.setRenderProp("ariaCurrentValue",i)))}applyAriaDescription(i){c.apply(i,(i=>this.setRenderProp("ariaDescription",i)))}applyAriaExpanded(i){m.apply(i,(i=>this.setRenderProp("ariaExpanded",i)))}applyAriaOwns(i){r.apply(i,(i=>this.setRenderProp("ariaOwns",i)))}applyCustomClass(i){y.apply(i,(i=>this.setRenderProp("customClass",i)))}applyDisabled(i){j.apply(i,(i=>this.setRenderProp("disabled",i)))}applyDownload(i){e.apply(i,(i=>this.setRenderProp("download",i)))}applyHideLabel(i){b.apply(i,(i=>this.setRenderProp("hideLabel",i)))}applyHref(i){L.apply(i,(i=>this.setRenderProp("href",i)))}applyIcons(i){f.apply(i,(i=>this.setRenderProp("icons",i)))}applyInline(i){u.apply(i,(i=>this.setRenderProp("inline",i)))}applyLabel(i){w.apply(i,(s=>{this.setRenderProp("label",s),this.setState("expertSlot",""===i),this.tooltipBehavior.watchLabel(this.getTooltipLabel())}))}applyOn(i){o.apply(i,(i=>this.setRenderProp("on",i)))}applyRole(i){C.apply(i,(i=>this.setRenderProp("role",i)))}applyShortKey(i){x.apply(i,(i=>this.setRenderProp("shortKey",i)))}applyTabIndex(i){"number"==typeof i?g.apply(i,(i=>this.setRenderProp("tabIndex",i))):this.unsetRenderProp("tabIndex")}applyTarget(i){I.apply(i,(i=>this.setRenderProp("target",i)))}applyTooltipAlign(i){v.apply(i,(i=>{this.setRenderProp("tooltipAlign",i),this.tooltipBehavior.watchAlign(i)}))}applyVariant(i){A.apply(i,(i=>this.setRenderProp("variant",i)))}renderLinkFC(){return i(h,{accessKey:this.getRenderProp("accessKey"),ariaControls:this.getRenderProp("ariaControls"),ariaCurrent:this.getState("ariaCurrent"),ariaCurrentValue:this.getRenderProp("ariaCurrentValue"),ariaDescription:this.getRenderProp("ariaDescription"),ariaDescriptionId:this.getState("ariaDescriptionId"),ariaExpanded:this.getRenderProp("ariaExpanded"),ariaOwns:this.getRenderProp("ariaOwns"),customClass:this.getRenderProp("customClass"),disabled:this.getRenderProp("disabled"),download:this.getRenderProp("download"),handleAnchorClick:this.handleAnchorClick,hideLabel:this.getRenderProp("hideLabel"),href:this.getRenderProp("href"),icons:this.getRenderProp("icons"),inline:this.getRenderProp("inline"),label:this.getRenderProp("label"),on:this.getRenderProp("on"),refAnchor:this.setAnchorRef,refTooltip:this.tooltipBehavior.setTooltipElementRef,role:this.getRenderProp("role"),shortKey:this.getRenderProp("shortKey"),tabIndex:this.getRenderProp("tabIndex"),target:this.getRenderProp("target"),tooltipAlign:this.getRenderProp("tooltipAlign"),variant:this.getRenderProp("variant"),expertSlot:this.getState("expertSlot")})}};export{V as B}
4
+ import{i,h as s}from"./common.js";import{a as t}from"./base-web-component.js";import{l as a,a as e,c as r,d as o,b as h,L as n}from"./component4.js";import{T as l}from"./behavior.js";import{a as p,b as d,c,g as y,j as b,h as m,s as u,i as f,l as C,d as x,t as g,e as v,v as A}from"./component6.js";import{d as j}from"./disabled.js";import{h as L,l as w}from"./link-target.js";import{l as I}from"./label-with-expert-slot.js";import{c as K}from"./element-interaction.js";import{d as D,K as T}from"./events.js";import{o as k}from"./ariaCurrentService.js";const V=class extends t{constructor(){super(...arguments),this.ctaRef=K((()=>!0===this.getRenderProp("disabled"))),this.tooltipBehavior=new l(this.stateAccess),this.propsConfig=a,this.handleAnchorClick=s=>{if(this.tooltipBehavior.hideTooltip(),!0===this.getRenderProp("disabled"))return void s.preventDefault();const t=this.getRenderProp("href"),a=this.getRenderProp("on");"function"==typeof(null==a?void 0:a.onClick)&&(i(s,this.ctaRef.el),a.onClick(s,t)),this.host&&D(this.host,T.click,t)},this.setAnchorRef=i=>{this.ctaRef(i)}}unsetLinkTabIndex(){this.unsetRenderProp("tabIndex")}initLinkBehaviors(){this.unsubscribeOnLocationChange=k((i=>{const s=this.getRenderProp("href"),t=this.getRenderProp("ariaCurrentValue"),a=i===s?t:"";this.getState("ariaCurrent")!==a&&this.setState("ariaCurrent",a)})),this.tooltipBehavior.componentWillLoad({label:this.getTooltipLabel(),align:this.getRenderProp("tooltipAlign")})}syncTooltipListeners(){this.ctaRef.el&&this.tooltipBehavior.syncListeners(void 0,this.ctaRef.el,!0)}destroyLinkBehaviors(){this.unsubscribeOnLocationChange&&(this.unsubscribeOnLocationChange(),this.unsubscribeOnLocationChange=void 0),this.tooltipBehavior.destroy()}getTooltipLabel(){const i=this.getRenderProp("label");if("string"==typeof i&&i.length>0)return i;const s=this.getRenderProp("href");return"string"==typeof s?s:""}applyAccessKey(i){p.apply(i,(i=>this.setRenderProp("accessKey",i)))}applyAriaControls(i){d.apply(i,(i=>this.setRenderProp("ariaControls",i)))}applyAriaCurrentValue(i){e.apply(i,(i=>this.setRenderProp("ariaCurrentValue",i)))}applyAriaDescription(i){c.apply(i,(i=>this.setRenderProp("ariaDescription",i)))}applyAriaExpanded(i){y.apply(i,(i=>this.setRenderProp("ariaExpanded",i)))}applyAriaOwns(i){r.apply(i,(i=>this.setRenderProp("ariaOwns",i)))}applyCustomClass(i){b.apply(i,(i=>this.setRenderProp("customClass",i)))}applyDisabled(i){j.apply(i,(i=>this.setRenderProp("disabled",i)))}applyDownload(i){o.apply(i,(i=>this.setRenderProp("download",i)))}applyHideLabel(i){m.apply(i,(i=>this.setRenderProp("hideLabel",i)))}applyHref(i){L.apply(i,(i=>this.setRenderProp("href",i)),this.isRequired("href"))}applyIcons(i){u.apply(i,(i=>this.setRenderProp("icons",i)))}applyInline(i){f.apply(i,(i=>this.setRenderProp("inline",i)))}applyLabel(i){I.apply(i,(s=>{this.setRenderProp("label",s),this.setState("expertSlot",""===i),this.tooltipBehavior.watchLabel(this.getTooltipLabel())}),this.isRequired("label"))}applyOn(i){h.apply(i,(i=>this.setRenderProp("on",i)))}applyRole(i){C.apply(i,(i=>this.setRenderProp("role",i)))}applyShortKey(i){x.apply(i,(i=>this.setRenderProp("shortKey",i)))}applyTabIndex(i){"number"==typeof i?g.apply(i,(i=>this.setRenderProp("tabIndex",i))):this.unsetRenderProp("tabIndex")}applyTarget(i){w.apply(i,(i=>this.setRenderProp("target",i)))}applyTooltipAlign(i){v.apply(i,(i=>{this.setRenderProp("tooltipAlign",i),this.tooltipBehavior.watchAlign(i)}))}applyVariant(i){A.apply(i,(i=>this.setRenderProp("variant",i)))}renderLinkFC(){return s(n,{accessKey:this.getRenderProp("accessKey"),ariaControls:this.getRenderProp("ariaControls"),ariaCurrent:this.getState("ariaCurrent"),ariaCurrentValue:this.getRenderProp("ariaCurrentValue"),ariaDescription:this.getRenderProp("ariaDescription"),ariaDescriptionId:this.getState("ariaDescriptionId"),ariaExpanded:this.getRenderProp("ariaExpanded"),ariaOwns:this.getRenderProp("ariaOwns"),customClass:this.getRenderProp("customClass"),disabled:this.getRenderProp("disabled"),download:this.getRenderProp("download"),handleAnchorClick:this.handleAnchorClick,hideLabel:this.getRenderProp("hideLabel"),href:this.getRenderProp("href"),icons:this.getRenderProp("icons"),inline:this.getRenderProp("inline"),label:this.getRenderProp("label"),on:this.getRenderProp("on"),refAnchor:this.setAnchorRef,refTooltip:this.tooltipBehavior.setTooltipElementRef,role:this.getRenderProp("role"),shortKey:this.getRenderProp("shortKey"),tabIndex:this.getRenderProp("tabIndex"),target:this.getRenderProp("target"),tooltipAlign:this.getRenderProp("tooltipAlign"),variant:this.getRenderProp("variant"),expertSlot:this.getState("expertSlot")})}};export{V as B}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as t}from"./aria-labelledby.js";import{G as e,L as o,p as l}from"./common.js";import{h as i,Fragment as s,forceUpdate as n}from"@stencil/core/internal/client";import{c as a,e as r,n as c,a as d,B as h,v as b}from"./base-web-component.js";import{c as u}from"./item.js";import{c as p}from"./item-pool.js";import{c as v}from"./item3.js";import{l as f}from"./label-with-expert-slot.js";import{v as m}from"./variant.js";import{c as y,d as g,e as k}from"./component-names.js";import{t as j}from"./i18n.js";import{c as w}from"./component10.js";import{b as C}from"./bem-registry.js";import{B as S}from"./component.js";import{B as _}from"./component7.js";import{I as x}from"./component4.js";import{L as O}from"./api.js";import{S as $}from"./component11.js";import{T as F}from"./component9.js";import{a as L}from"./tslib.es6.js";import{n as T,c as D}from"./dev.utils.js";import{d as I,K as z}from"./events.js";import{A}from"./component2.js";import{c as E}from"./element-interaction.js";import{u as B,l as M,d as H,D as K}from"./scroll-lock.js";import{h as N}from"./tooltip-open-tracking.js";import{l as P}from"./level.js";import{d as R,w as W}from"./width.js";import{l as q}from"./label.js";import{r as G,C as U}from"./component5.js";import{T as V}from"./behavior.js";import{C as J}from"./keyboard.js";const Q=(l,i,s,n)=>{const a=t=>"string"==typeof t||void 0===t;if(e(l,"_ariaLabelledby",a,new Set(["string"]),n),!a(n))return[];const r=t(i,n);if(s){try{s.ariaLabelledByElements=r}catch(t){}o.debug(["WebComponent internals",s])}return r},X=t=>"number"==typeof t&&Number.isInteger(t)&&t>=0,Y=a("fixedCols",[0,0],(t=>r(t)),(t=>2===t.length&&t.every(X))),Z=a("hasSettingsMenu",!1,c),tt=d();function et(t){const e="string"==typeof t?l(t):t;if(Array.isArray(e))return e;throw new Error("Invalid table data: expected an array of row objects.")}function ot(t){return t.every((t=>"object"==typeof t&&null!==t))}const lt=a("data",[],et,ot),it=a("dataFoot",[],et,ot),st=t=>Array.isArray(t)&&t.every((t=>Array.isArray(t))),nt=a("headers",{horizontal:[],vertical:[]},(function(t){const e="string"==typeof t?l(t):t;if("object"!=typeof e||null===e)throw new Error("Invalid table headers: expected an object.");const{horizontal:o=[],vertical:i=[]}=e;if(!st(o)||!st(i))throw new Error("Invalid table headers: horizontal and vertical must be arrays of header rows.");return{horizontal:o,vertical:i}}),(function({horizontal:t,vertical:e}){return[...t,...e].every((t=>t.every((t=>void 0===t.width||"number"==typeof t.width))))})),at=a("loading",!1,c),rt=a("selection",!1,(function(t){const e="string"==typeof t?l(t):t;if("object"==typeof e&&null!==e)return e;throw new Error("Invalid table selection: expected an object.")}),(function(t){return!1===t||"function"==typeof t.label&&(!t.selectedKeys||Array.isArray(t.selectedKeys))})),ct={required:[f,lt],optional:[Y,Z,tt,it,nt,at,rt,m]},dt=t=>t.flatMap((t=>t.filter((t=>"string"==typeof t.key||"function"==typeof t.render)))),ht=t=>{const e=dt(t.horizontal);if(e.length>0)return{cells:e,horizontal:!0};const o=dt(t.vertical);return{cells:o,horizontal:0===o.length}},bt=(t,e)=>{let o=0;return Array.isArray(t)&&t.forEach((t=>{var l;o+=null!==(l=t[e])&&void 0!==l?l:1})),o},ut=(t,e)=>{const o=Math.max(0,...t.map((t=>bt(t,"colSpan"))));return 0===o?e.length:o},pt=t=>{var e;return null!==(e=null==t?void 0:t.reduce(((t,e)=>"visible"in e&&!1===e.visible?t:t+(e.colSpan||1)),0))&&void 0!==e?e:0},vt=(t,e,o,l)=>{if(void 0!==l&&!e)return l<t[0]?"left":t[1]>0&&l>=o-t[1]?"right":void 0},ft=(t,e,o,l)=>{var i,s,n,a,r,c;const d=[];for(let a=0;a<e;a++)"left"===vt(o,l,e,a)&&(d[a]=(null!==(i=d[a-1])&&void 0!==i?i:0)+(null!==(n=null===(s=t[a-1])||void 0===s?void 0:s.width)&&void 0!==n?n:0));for(let i=e-1;i>=0;i--)"right"===vt(o,l,e,i)&&(d[i]=(null!==(a=d[i+1])&&void 0!==a?a:0)+(null!==(c=null===(r=t[i+1])||void 0===r?void 0:r.width)&&void 0!==c?c:0));return d},mt=(t,e,o,l)=>{const i=void 0===e?void 0:t[e];return o&&l?`calc( var(--kol-table-selection-col-width) + ${i}px)`:`${i}px`},yt=(t,e,o,l)=>{if(0===(e.horizontal?t.horizontal:t.vertical).length)return;const i=e.cells[o];return(null==i?void 0:i.type)===l?i:void 0},gt=({data:t,dataFoot:e,headers:o,isFoot:l,noEntriesLabel:i,primaryHeaders:s})=>{const n=ut(o.horizontal,t),a=s.cells;let r=((t,e,o)=>{const l=Math.max(0,...t.map((t=>bt(t,"rowSpan"))));return 0===l?e.length:l-o})(o.vertical,t,e.length),c=0;l&&(c=r,r+=e.length);const d=[],h=[],b=[];o.vertical.forEach(((t,e)=>{h[e]=0,b[e]=[]}));for(let i=c;i<r;i++){const r=[];o.vertical.forEach(((t,e)=>{let o=0;if(b[e].forEach((t=>o+=t)),o<=i){const l=t[i-o+h[e]];if("object"==typeof l){r.push(Object.assign(Object.assign({},l),{headerCell:!0,data:{}}));let t=1;if("number"==typeof l.rowSpan&&l.rowSpan>1&&(t=l.rowSpan),b[e].push(t),"number"==typeof l.colSpan&&l.colSpan>1)for(let o=1;o<l.colSpan;o++)b[e+o].push(t);h[e]++}}}));for(let o=0;o<n;o++)if(s.horizontal){const s=l?e[i-c]:t[i],n=a[o];"object"==typeof n&&null!==n&&"object"==typeof s&&null!==s&&r.push(Object.assign(Object.assign({},n),{colIndex:o,colSpan:void 0,rowSpan:void 0,data:s,label:s[n.key]}))}else{const e=a[i];"object"==typeof e&&null!==e&&"object"==typeof t[o]&&null!==t[o]&&r.push(Object.assign(Object.assign({},e),{colIndex:o,colSpan:void 0,rowSpan:void 0,data:t[o],label:t[o][e.key]}))}d.push(r)}if(0===t.length){let t=pt(o.horizontal[0]),e=0;o.vertical.length>0&&(t-=o.vertical.length,o.vertical[0].forEach((t=>{e+=t.rowSpan||1})));const l={colSpan:t,label:i,render:void 0,rowSpan:Math.max(e,1)};0===d.length?d.push([l]):d[0].push(l)}return d},kt=({horizontal:t,vertical:e})=>{const o=t.flatMap((t=>t.filter((t=>!1!==t.visible&&void 0!==t.width&&t.width>0)).map((t=>t.width)))),l=[...e.flatMap((t=>t.filter((t=>void 0!==t.width&&t.width>0)).map((t=>t.width)))),...o];return 0===l.length?"0px":1===l.length?`${l[0]}px`:`calc(${l.map((t=>`${t}px`)).join(" + ")})`},jt=t=>void 0===t?[]:Array.isArray(t)?t:[t],wt=t=>{var e;return null!==(e=t?t.keyPropertyName:void 0)&&void 0!==e?e:"id"},Ct=t=>{const e=t?jt(t.selectedKeys):[];return{disabledKeys:new Set((t?jt(t.disabledKeys):[]).map(String)),keyPropertyName:wt(t),selectedKeys:e,selectedKeysSet:new Set(e.map(String))}},St=(t,e)=>t.filter((t=>!e.disabledKeys.has(String(t[e.keyPropertyName])))),_t=C.forBlock("kol-table"),xt=_t("body"),Ot=_t("cell-actions"),$t=_t("cell-states"),Ft=_t("footer"),Lt=_t("head"),Tt=_t("head-row"),Dt=_t("scroll-container"),It=_t("selection-icon"),zt=_t("selection-input-tooltip"),At=_t("sort"),Et=_t("sort-button"),Bt=_t("sort-order"),Mt=_t("table"),Ht=`${_t("focus-element")} ${_t("caption")}`,Kt=(t,e)=>vt(t.fixedCols,t.stickyColsDisabled,t.maxCols,e),Nt=(t,e,o)=>({left:"left"===e?mt(t.fixedOffsets,o,!0,!1!==t.selection):void 0,right:"right"===e?mt(t.fixedOffsets,o,!1,!1!==t.selection):void 0}),Pt=(t,e,o)=>{var l,i;return null!==(i=t.primaryHeaders.horizontal&&(null===(l=e[0])||void 0===l?void 0:l.data)?t.rowKeys.get(e[0].data):void 0)&&void 0!==i?i:String(o)},Rt=t=>{const e=j("kol-sort");return"number"==typeof t&&t>0?`${e} – ${j("kol-table-sort-order").replace("{{order}}",`${t}`)}`:e},Wt=(t,e,o,l,s)=>{if(!1===e.visible)return"";const n=!1!==(null==e?void 0:e.sortable)&&"string"==typeof e.sortDirection;let a="none",r="kolicon-sort-neutral";if(n&&e.sortDirection)switch(e.sortDirection){case"ASC":r="kolicon-sort-asc",a="ascending";break;case"DESC":r="kolicon-sort-desc",a="descending";break;default:a="none"}const c=s?"row":"number"==typeof e.colSpan&&e.colSpan>1?"colgroup":"col",d="number"==typeof e.sortOrder&&e.sortOrder>0?e.sortOrder:void 0,h=void 0!==e.width?`${e.width}px`:void 0,b=Kt(t,l),{left:u,right:p}=Nt(t,b,l),v=e.textAlign,f=n?e.sortDirection:void 0;return i("th",{key:`${o}-${l}-${e.label}`,class:_t("cell",{[a]:!0,"align-center":"center"===v,"align-justify":"justify"===v,"align-left":"left"===v,"align-right":"right"===v,header:!0,"sticky-left":"left"===b,"sticky-right":"right"===b}),scope:c,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{width:h,left:u,right:p},"aria-sort":a,"data-sort":f?`sort-${f}`:void 0},f?i("span",{class:At},i(_,Object.assign({},t.getButtonFcProps(`sort-${s?"vertical":"horizontal"}-${o}-${l}`,{_icons:{right:r},_label:e.label,_ariaDescription:Rt(d),_on:{onClick:o=>{t.handleSort(o,{key:e.key,currentSortDirection:f})}}},{class:Et}))),d&&i("span",{"aria-hidden":"true",class:Bt},d)):e.label)},qt=(t,e,o,l,s=!1)=>i("tr",{class:_t("row",{body:!s,footer:s}),key:`row-${Pt(t,e,o)}`},((t,e,o)=>{var l;const{handleSelectionChange:s,selection:n,selectionModel:a}=t;if(!n)return"";const r=null===(l=e[0])||void 0===l?void 0:l.data;if(!r)return"";const c=r[a.keyPropertyName],d=n.multiple||void 0===n.multiple,h=String(c),b=a.selectedKeysSet.has(h),u=a.disabledKeys.has(h),p=n.label(r),v={name:"selection",checked:b,disabled:u,id:String(c),"aria-label":p};return i("td",{key:`tbody-${o}-selection`,class:_t("cell",{selection:!0})},i("div",{class:_t("selection",{checked:b})},d?i("label",{class:_t("selection-label",{disabled:u})},i(x,{class:It,icons:"kolicon "+(b?"kolicon-check":""),label:""}),i("input",Object.assign({class:_t("selection-input",{checkbox:!0})},v,{type:"checkbox",onInput:t=>{const e=b?a.selectedKeys.filter((t=>String(t)!==h)):[...a.selectedKeys,c];s(t,e)}}))):i("label",{class:_t("selection-label")},i("input",Object.assign({class:_t("selection-input",{radio:!0})},v,{type:"radio",onInput:t=>{s(t,[c])}}))),i("div",{class:zt},i(F,{label:p,badgeText:"",id:`${c}-label`,refFloating:()=>{}}))))})(t,e,o),e.map(((e,s)=>((t,e,o,l,s)=>{if(!1===e.visible)return"";let n=`${o}-${l}-${e.label}`;if(e.data){const i=t.rowKeys.get(e.data);n=i?`${i}-${t.primaryHeaders.horizontal?l:o}`:n}if(e.headerCell)return Wt(t,e,o,l,s);const a="function"!=typeof e.render&&e.label===t.translateNoEntries,r=yt(t.headers,t.primaryHeaders,l,"action"),c=Boolean(r&&e.data),d=yt(t.headers,t.primaryHeaders,l,"state"),h=Boolean(d&&e.data),b=Kt(t,l),{left:u,right:p}=Nt(t,b,e.colIndex),v="function"==typeof e.render,f=e.textAlign;return i("td",{key:`cell-${n}-${t.settingsChangedCounter}`,class:_t("cell",{actions:c,"align-center":"center"===f,"align-justify":"justify"===f,"align-left":"left"===f,"align-right":"right"===f,body:!0,states:h,"sticky-left":"left"===b,"sticky-right":"right"===b}),"aria-atomic":a?"false":void 0,"aria-live":a?"polite":void 0,"aria-relevant":a?"text":void 0,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{textAlign:f,left:u,right:p},ref:v?o=>t.handleRenderCell(e,o):void 0},c&&r&&e.data?((t,e,o,l)=>i("div",{class:Ot},e.actions(o).map(((e,o)=>{const s=`action-${l}-${o}`;return"button"===e.type?i("span",{key:s},i(_,Object.assign({},t.getButtonFcProps(s,e)))):"link"===e.type?i("span",{key:s},i(O,Object.assign({},t.getLinkFcProps(s,e)))):null}))))(t,r,e.data,n):h&&d&&e.data?((t,e,o)=>{const l=t.key;if(!l)return"";const s=e[l];return s?i("div",{class:$t},s.map(((t,e)=>"badge"===t.type?i(y,Object.assign({key:`state-${o}-${e}`},t)):null))):""})(d,e.data,n):v?"":e.label)})(t,e,o,s,l)))),Gt=(t,e,o)=>{const l=t.headers.vertical.length+pt(null==o?void 0:o[0])+(t.selection?1:0);return i("tr",{"aria-hidden":"true",class:_t("spacer",{[e]:!0})},i("td",{class:_t("spacer-line",{[e]:!0}),colSpan:l}))},Ut=t=>{const{data:e,dataFoot:o,externalLabelElements:l,fixedCols:n,hasScrollbar:a,hasSettingsMenu:r,headers:c,label:d,loading:h,refScrollContainer:b,refTable:u,selection:p,stickyColsDisabled:v,variant:f}=t,m=j("kol-no-entries"),y=ht(c),g=ut(c.horizontal,e),k=Object.assign(Object.assign({},t),{fixedOffsets:ft(y.cells,g,n,v),maxCols:g,primaryHeaders:y,selectionModel:Ct(p),translateNoEntries:m}),C=gt({data:e,dataFoot:o,headers:c,isFoot:!1,noEntriesLabel:m,primaryHeaders:y}),_=0===l.length;return i(S,{block:"kol-table",class:w(f,"table")},r&&t.renderSettings(c.horizontal),i("div",{ref:b,class:Dt,tabindex:a?_?"-1":"0":void 0},i("table",{ref:u,"aria-labelledby":_?"caption":void 0,class:Mt,style:{minWidth:kt(c)}},_&&i("caption",{class:Ht,id:"caption",tabindex:a?"0":void 0},d),i("thead",{class:Lt},[c.horizontal.map(((t,e)=>i("tr",{class:Tt,key:`thead-${e}`},p&&(t=>{const{data:e,handleSelectionChange:o,selection:l,selectionModel:s}=t;if(!l)return i("td",{class:_t("cell",{header:!0}),key:"thead-0"});if(!1===l.multiple)return i("th",{scope:"col",key:"thead-0-selection",class:_t("cell",{header:!0,selection:!0})},i("span",{class:"visually-hidden"},j("kol-table-selection")));const n=s.selectedKeys.filter((t=>!s.disabledKeys.has(String(t)))).length,a=n===St(e,s).length,r=0!==n&&!a;let c;return c=j(0===n?"kol-table-selection-all":a&&!r?"kol-table-selection-none":"kol-table-selection-indeterminate"),i("th",{scope:"col",key:"thead-0-selection",class:_t("cell",{header:!0,selection:!0})},i("span",{class:"visually-hidden"},j("kol-table-selection")),i("div",{class:_t("selection",{checked:a,indeterminate:r})},i("label",{class:_t("selection-label")},i(x,{class:It,icons:"kolicon "+(r?"kolicon-minus":a?"kolicon-check":""),label:""}),i("input",{class:_t("selection-input",{checkbox:!0}),name:"selection",checked:a&&!r,indeterminate:r,"aria-label":c,type:"checkbox",onInput:t=>{o(t,((t,e,o)=>{const l=e.selectedKeys.filter((t=>e.disabledKeys.has(String(t))));return o&&l.push(...St(t,e).map((t=>null==t?void 0:t[e.keyPropertyName]))),l})(e,s,!a))}})),i("div",{class:zt},i(F,{label:c,badgeText:"",refFloating:()=>{}}))))})(k),0===e&&(({headers:t})=>{const{horizontal:e,vertical:o}=t;if(0===e.length||0===o.length)return i(s,null);const l=o.reduce(((t,e)=>{var o,l;return t+(null!==(l=null===(o=null==e?void 0:e[0])||void 0===o?void 0:o.width)&&void 0!==l?l:0)}),0);return i("td",{"aria-hidden":"true",colSpan:o.length,rowSpan:e.length,style:l>0?{width:`${l}px`}:void 0})})(k),Array.isArray(t)&&t.map(((t,o)=>Wt(k,t,e,o,!1)))))),Gt(k,"head",c.horizontal)]),i("tbody",{class:xt},i("div",{class:_t("loader",{shown:h})},i($,{label:j(h?"kol-table-data-loading":"kol-table-data-loaded").replace("{{caption}}",d),show:h,variant:"cycle"})),C.map(((t,e)=>qt(k,t,e,!0)))),(t=>{const{dataFoot:e,headers:o,primaryHeaders:l,translateNoEntries:s}=t;if(0===e.length)return null;const n=gt({data:e,dataFoot:e,headers:o,isFoot:!0,noEntriesLabel:s,primaryHeaders:l}),a=ut(o.horizontal,e),r=Object.assign(Object.assign({},t),{fixedOffsets:ft(l.cells,a,t.fixedCols,t.stickyColsDisabled),maxCols:a});return i("tfoot",{class:Ft},[Gt(t,"foot",n),n.map(((t,e)=>qt(r,t,e,!0,!0)))])})(k))))},Vt=({dialog:t,card:e},o)=>i(K,Object.assign({},t),e?i(U,Object.assign({},e),o):o),Jt=()=>{},Qt=C.forBlock("kol-table")("settings"),Xt=t=>Number.isFinite(t)&&void 0!==t&&t>0?t:void 0,Yt=()=>{},Zt=(t,e)=>{const o=j("kol-table-settings"),l=j("kol-table-settings-cancel"),s=j("kol-table-settings-apply"),n=j("kol-table-settings-error-all-invisible");let a,r=!1,c=!1;const d=()=>{r=!0,e()},v=p((()=>u(t)),(t=>t.syncListeners()),(t=>t.destroy())),f=((t,e)=>{const o=E(),l=E(),i=new V(h.stateLess),s=T(),n=D("dialog-heading"),r={};let c,d=!0,u={};const p=t=>!a||I(a,t),v=()=>{var t,e;null===(e=null===(t=o.el)||void 0===t?void 0:t.close)||void 0===e||e.call(t)},f=t=>{var e;N(t),t.defaultPrevented||(null===(e=u.onCancel)||void 0===e||e.call(u,t),t.defaultPrevented||p(z.cancel)||t.preventDefault())},m=t=>{var e;t.target===o.el&&(B(r),null===(e=u.onClose)||void 0===e||e.call(u),p(z.close))},y=()=>{i.hideTooltip(),v(),p(z.close)};return{getFcProps:e=>{var a,r,h;let p="",v=0,g="blank",k="100%";q.apply(e.label,(t=>{p=t})),P.apply(null!==(a=e.level)&&void 0!==a?a:0,(t=>{v=t})),R.apply(e.on,(t=>{u=t})),b.apply(null!==(r=e.variant)&&void 0!==r?r:"blank",(t=>{g=t})),W.apply(null!==(h=e.width)&&void 0!==h?h:"100%",(t=>{k=t}));const j="card"===g;return j&&!c&&(c=G(t()),i.componentWillLoad({label:c.label,align:c.tooltipAlign})),{dialog:{blockClass:H(g),handleCancel:f,handleClose:m,label:p,labelledBy:j?n:void 0,modal:d,refDialog:o,width:k},card:j&&c?{ariaDescriptionId:s,closeButtonProps:c,handleBlur:Jt,handleClose:y,handleFocus:Jt,hasCloser:!0,headingId:n,href:"",label:p,level:v,on:{},refCloseButton:l,refCta:Jt,refTooltip:i.setTooltipElementRef,target:""}:void 0}},show:t=>{var l,i;const s=o.el;(null==s?void 0:s.open)||(d!==t&&(d=t,e()),t?(null===(l=null==s?void 0:s.showModal)||void 0===l||l.call(s),s&&M(r)):null===(i=null==s?void 0:s.show)||void 0===i||i.call(s))},close:v,syncListeners:()=>{l.el&&i.syncListeners(void 0,l.el,!0)},destroy:()=>{v(),B(r),i.destroy()}}})(t,d),m=D("alert-heading"),y=T();let w,C=[],S=[],x=null;const O=()=>{var t;return null!==(t=S[S.length-1])&&void 0!==t?t:[]},$=t=>{S=S.map(((e,o,l)=>o===l.length-1?t:e)),d()},F=(t,e)=>{const o=[...O()],l=o.findIndex((e=>e.key===t));if(-1===l)return;let i;if("up"===e){if(0===l)return;i=l-1}else{if(l===o.length-1)return;i=l+1}const[s]=o.splice(l,1);o.splice(i,0,s),$(o)},K=t=>{if(t.preventDefault(),!O().some((t=>!1!==t.visible)))return x=n,void d();if(a){x=null,C=S.map((t=>t.map((t=>Object.assign({},t))))),d();const t=S.map((t=>t.map((t=>{const e=t,{hidable:o,resizable:l,sortable:i,visible:s,width:n}=e,a=L(e,["hidable","resizable","sortable","visible","width"]),r=Object.assign({},a);return void 0!==s&&(r.visible=s),void 0!==o&&(r.hidable=o),void 0!==i&&(r.sortable=i),void 0!==l&&(r.resizable=l),null!=n&&(r.width=n),r}))));I(a,z.changeHeaderCells,t),f.close()}},U=t=>{t&&(a=t)};return{beginRender:()=>{v.beginRender(),c=r,r=!1},render:t=>{var e;c||t===w||(w=t,C=(e=t).map((t=>[...t])),S=e.map((t=>t.map((t=>Object.assign({},t))))));const n=O();return i("div",{class:Qt,ref:U},i("div",{class:"kol-table-settings"},i(_,Object.assign({},v.get("toggle").getFcProps({_icons:"kolicon-settings",_label:o,_hideLabel:!0,_on:{onClick:()=>f.show(!0)}})))),i(Vt,Object.assign({},f.getFcProps({label:o,variant:"card",width:"fit-content"})),i("div",{class:"kol-table-settings__content"},x&&i("div",{class:"kol-table-settings__error-message"},i(A,{alert:!1,closerAriaDescriptionId:y,handleCloserClick:Yt,hasCloser:!1,headingId:m,label:x,level:0,refCloserButton:Yt,refCloserTooltip:Yt,type:"error",variant:"msg"})),i("form",{onSubmit:K},i("div",{class:"kol-table-settings__columns"},n.map(((t,e)=>((t,e,o)=>i("div",{key:t.key,class:"kol-table-settings__column"},i(g,{_checked:!1!==t.visible,_label:j(t.hidable?"kol-table-settings-column-hidable":"kol-table-settings-column-not-hidable",{placeholders:{column:t.label}}),_value:!0,_hideLabel:!0,_disabled:!1===t.hidable,_on:{onInput:(e,o)=>{var l;return((t,e)=>{const o=O().map((o=>o.key===t&&!1!==o.hidable?Object.assign(Object.assign({},o),{visible:Boolean(e)}):o));$(o)})(null!==(l=t.key)&&void 0!==l?l:"",o)}}}),i("span",{class:"kol-table-settings__column-label"},t.label),i(k,{_hideLabel:!0,_value:Xt(t.width),_label:j("kol-table-settings-column-width",{placeholders:{column:t.label}}),_min:1,_disabled:!1===t.resizable,_on:{onInput:(e,o)=>{var l;return((t,e)=>{const o=Xt(Number(e)),l=O().map((e=>e.key===t&&!1!==e.resizable?Object.assign(Object.assign({},e),{width:o}):e));$(l)})(null!==(l=t.key)&&void 0!==l?l:"",o)}}}),i(_,Object.assign({},v.get(`move-up-${t.key}`).getFcProps({_icons:"kolicon-chevron-up",_label:j(!1===t.sortable||0===e?"kol-table-settings-not-move":"kol-table-settings-move-up",{placeholders:{column:t.label}}),_hideLabel:!0,_variant:"ghost",_on:{onClick:()=>{var e;return F(null!==(e=t.key)&&void 0!==e?e:"","up")}},_disabled:!1===t.sortable||0===e},{"data-testid":"table-settings-move-up"}))),i(_,Object.assign({},v.get(`move-down-${t.key}`).getFcProps({_icons:"kolicon-chevron-down",_label:j(!1===t.sortable||e===o.length-1?"kol-table-settings-not-move":"kol-table-settings-move-down",{placeholders:{column:t.label}}),_hideLabel:!0,_variant:"ghost",_on:{onClick:()=>{var e;return F(null!==(e=t.key)&&void 0!==e?e:"","down")}},_disabled:!1===t.sortable||e===o.length-1},{"data-testid":"table-settings-move-down"})))))(t,e,n)))),i("div",{class:"kol-table-settings__actions"},i(_,Object.assign({},v.get("cancel").getFcProps({_label:l,_variant:"secondary",_on:{onClick:()=>(S=C.map((t=>[...t])),x=null,d(),void f.close())}},{"data-testid":"table-settings-cancel"}))),i(_,Object.assign({},v.get("apply").getFcProps({_label:s,_variant:"primary",_type:"submit"},{"data-testid":"table-settings-apply"}))))))))},sync:()=>{v.endRender(),f.syncListeners()},destroy:()=>{v.destroy(),f.destroy()}}},te=class extends h{constructor(){super(...arguments),this.cellRenderTimeouts=new Map,this.buttonItems=p((()=>u((()=>this.host))),(t=>t.syncListeners()),(t=>t.destroy())),this.settings=Zt((()=>this.host),(()=>n(this))),this.linkItems=p((()=>v((()=>n(this)))),(t=>t.syncListeners()),(t=>t.destroy())),this.handleResize=()=>{this.updateScrollbarState(),clearTimeout(this.resizeDebounceTimeout),this.resizeDebounceTimeout=setTimeout((()=>{this.updateStickyColsDisabled()}),150)},this.handleSelectionChange=(t,e)=>{this.emitSelectionChange(t,e)},this.handleSort=(t,e)=>{this.emitSort(t,e)},this.handleRenderCell=(t,e)=>{e&&(clearTimeout(this.cellRenderTimeouts.get(e)),this.cellRenderTimeouts.set(e,setTimeout((()=>{if("function"==typeof t.render){const o=t.render(e,t,t.data,this.getRenderProp("data"));"string"==typeof o&&(e.textContent=o)}}))))},this.refScrollContainer=t=>{this.scrollContainerElement=t},this.refTable=t=>{this.tableElement=t,this.syncTableLabel(this.getState("externalLabelElements"))},this.getButtonFcProps=(t,e,o)=>this.buttonItems.get(t).getFcProps(e,o),this.renderSettings=t=>this.settings.render(t),this.getLinkFcProps=(t,e)=>this.linkItems.get(t).getFcProps(e)}initTableRenderProps(){this.initRenderProps(ct)}observeScrollContainer(){this.scrollContainerElement&&ResizeObserver&&(this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.scrollContainerElement)),this.updateStickyColsDisabled()}teardownTable(){var t;null===(t=this.resizeObserver)||void 0===t||t.disconnect(),clearTimeout(this.resizeDebounceTimeout),this.buttonItems.destroy(),this.linkItems.destroy(),this.settings.destroy()}syncTableItems(){this.buttonItems.endRender(),this.linkItems.endRender(),this.settings.sync()}applyData(t){lt.apply(t,(t=>{this.setRenderProp("data",t),this.setState("rowKeys",((t,e)=>new Map(t.map((t=>{var o;return[t,null!==(o=e.get(t))&&void 0!==o?o:T()]}))))(t,this.getState("rowKeys")))}))}applyDataFoot(t){it.apply(t,(t=>this.setRenderProp("dataFoot",t)))}applyFixedCols(t){Y.apply(t,(t=>this.setRenderProp("fixedCols",t))),this.updateStickyColsDisabled()}applyHasSettingsMenu(t){Z.apply(t,(t=>this.setRenderProp("hasSettingsMenu",t)))}applyHeaders(t){nt.apply(t,(t=>this.setRenderProp("headers",(t=>0===t.horizontal.length?t:Object.assign(Object.assign({},t),{horizontal:t.horizontal.map((t=>t.map((t=>Object.assign(Object.assign({},t),{visible:"boolean"!=typeof t.visible||t.visible,hidable:"boolean"!=typeof t.hidable||t.hidable})))))}))(t))))}applyLabel(t){f.apply(t,(t=>this.setRenderProp("label",t)))}applyLoading(t){at.apply(t,(t=>this.setRenderProp("loading",t)))}applyOn(t){tt.apply(t,(t=>this.setRenderProp("on",t)))}applySelection(t){rt.apply(t,(t=>this.setRenderProp("selection",t))),this.updateStickyColsDisabled()}applyVariant(t){m.apply(t,(t=>this.setRenderProp("variant",t)))}syncTableLabel(t){this.tableElement&&"ariaLabelledByElements"in this.tableElement&&((null==t?void 0:t.length)&&(this.tableElement.ariaLabelledByElements=t),o.debug([this.tableElement,!!(null==t?void 0:t.length),t,this.tableElement.ariaLabelledByElements]))}moveCheckboxFocus(t){var e,o,l;if("ArrowUp"!==t.key&&"ArrowDown"!==t.key)return;const i=Array.from(null!==(o=null===(e=this.scrollContainerElement)||void 0===e?void 0:e.querySelectorAll(".kol-table__selection-input--checkbox"))&&void 0!==o?o:[]),s=null===(l=this.scrollContainerElement)||void 0===l?void 0:l.querySelector(":focus");let n=i.indexOf(s);n>-1&&(t.preventDefault(),n=(n+("ArrowDown"===t.key?1:i.length-1))%i.length,i[n].focus())}applyChangedHeaderCells(t){const e=Object.assign(Object.assign({},this.getRenderProp("headers")),{horizontal:t.detail});this.setRenderProp("headers",e),this.setState("settingsChangedCounter",this.getState("settingsChangedCounter")+1);const o=this.getRenderProp("on")[J.onChangeHeaderCells];"function"==typeof o&&o(t,e)}updateScrollbarState(){if(this.scrollContainerElement){const{clientHeight:t,clientWidth:e,scrollHeight:o,scrollWidth:l}=this.scrollContainerElement;this.setState("hasScrollbar",l>e||o>t&&["auto","scroll"].includes(getComputedStyle(this.scrollContainerElement).overflowY))}}calculateFixedColsWidth(){var t,e,o,l,i,s;const[n,a]=this.getRenderProp("fixedCols"),r=this.getRenderProp("headers"),c=ht(r).cells,d=ut(r.horizontal,this.getRenderProp("data"));let h=0;for(let o=0;o<n&&o<c.length;o++)h+=null!==(e=null===(t=c[o])||void 0===t?void 0:t.width)&&void 0!==e?e:0;for(let t=d-a;t<d&&t<c.length;t++)h+=null!==(l=null===(o=c[t])||void 0===o?void 0:o.width)&&void 0!==l?l:0;if(this.getRenderProp("selection")){const t=null===(i=this.scrollContainerElement)||void 0===i?void 0:i.querySelector(".kol-table__cell--selection");h+=null!==(s=null==t?void 0:t.offsetWidth)&&void 0!==s?s:0}return h}updateStickyColsDisabled(){if(!this.scrollContainerElement)return void this.setState("stickyColsDisabled",!1);const t=this.calculateFixedColsWidth();this.setState("stickyColsDisabled",t>0&&t>=this.scrollContainerElement.clientWidth)}emitSelectionChange(t,e){const o=this.getRenderProp("on")[J.onSelectionChange];"function"==typeof o&&o(t,e),this.host&&I(this.host,z.selectionChange,e)}emitSort(t,e){const o=this.getRenderProp("on")[J.onSort];"function"==typeof o&&e.key&&o(t,e),this.host&&I(this.host,z.sort,e)}renderTableStatelessFC(){return this.buttonItems.beginRender(),this.linkItems.beginRender(),this.settings.beginRender(),i(Ut,{data:this.getRenderProp("data"),dataFoot:this.getRenderProp("dataFoot"),externalLabelElements:this.getState("externalLabelElements"),fixedCols:this.getRenderProp("fixedCols"),getButtonFcProps:this.getButtonFcProps,getLinkFcProps:this.getLinkFcProps,renderSettings:this.renderSettings,handleRenderCell:this.handleRenderCell,handleSelectionChange:this.handleSelectionChange,handleSort:this.handleSort,hasScrollbar:this.getState("hasScrollbar"),hasSettingsMenu:this.getRenderProp("hasSettingsMenu"),headers:this.getRenderProp("headers"),label:this.getRenderProp("label"),loading:this.getRenderProp("loading"),on:this.getRenderProp("on"),refScrollContainer:this.refScrollContainer,refTable:this.refTable,rowKeys:this.getState("rowKeys"),selection:this.getRenderProp("selection"),settingsChangedCounter:this.getState("settingsChangedCounter"),stickyColsDisabled:this.getState("stickyColsDisabled"),variant:this.getRenderProp("variant")})}};export{te as B,it as a,lt as t,Q as v}
4
+ import{a0 as t,O as e,h as o,F as l,L as i,_ as s}from"./common.js";import{r as n}from"./base-web-component2.js";import{c as a,h as r,n as c,b as d,r as h,t as u,B as b,a as v,E as p}from"./base-web-component.js";import{c as f}from"./item.js";import{c as m}from"./item-pool.js";import{c as y}from"./item3.js";import{l as g}from"./label-lang-segment.js";import{v as k,k as j,T as w}from"./component6.js";import{t as S}from"./i18n.js";import{b as C}from"./bem-registry.js";import{B as _}from"./component9.js";import{I as x}from"./component3.js";import{L as O}from"./component4.js";import{r as $}from"./component5.js";import{S as F}from"./component14.js";import{a as L}from"./tslib.es6.js";import{n as T,c as D}from"./dev.utils.js";import{d as I,K as z}from"./events.js";import{A as E}from"./component.js";import{l as A}from"./level.js";import{c as M}from"./element-interaction.js";import{u as B,l as H,D as K}from"./scroll-lock.js";import{h as N}from"./tooltip-open-tracking.js";import{d as P,w as R}from"./width.js";import{r as W,C as q}from"./component8.js";import{T as U}from"./behavior.js";import{C as V}from"./keyboard.js";const G=(e,o,l)=>{const i=t=>"string"==typeof t||void 0===t;return t(e,"_ariaLabelledby",i,new Set(["string"]),l),i(l)?n(o,l):[]},J=t=>"number"==typeof t&&Number.isInteger(t)&&t>=0,Q=a("fixedCols",[0,0],(t=>r(t)),(t=>2===t.length&&t.every(J))),X=a("hasSettingsMenu",!1,c),Y=d();function Z(t){const o="string"==typeof t?e(t):t;if(Array.isArray(o))return o;throw new Error("Invalid table data: expected an array of row objects.")}function tt(t){return t.every((t=>"object"==typeof t&&null!==t))}const et=a("data",[],Z,tt),ot=a("dataFoot",[],Z,tt),lt=t=>Array.isArray(t)&&t.every((t=>Array.isArray(t))),it=a("headers",{horizontal:[],vertical:[]},(function(t){const o="string"==typeof t?e(t):t;if("object"!=typeof o||null===o)throw new Error("Invalid table headers: expected an object.");const{horizontal:l=[],vertical:i=[]}=o;if(!lt(l)||!lt(i))throw new Error("Invalid table headers: horizontal and vertical must be arrays of header rows.");return{horizontal:l,vertical:i}}),(function({horizontal:t,vertical:e}){return[...t,...e].every((t=>t.every((t=>void 0===t.width||"number"==typeof t.width))))})),st=a("loading",!1,c),nt=a("selection",!1,(function(t){const o="string"==typeof t?e(t):t;if("object"==typeof o&&null!==o)return o;throw new Error("Invalid table selection: expected an object.")}),(function(t){return!1===t||"function"==typeof t.label&&(!t.selectedKeys||Array.isArray(t.selectedKeys))})),at={required:[g,et,it],optional:[Q,X,Y,ot,st,nt,k]},rt=t=>t.flatMap((t=>t.filter((t=>"string"==typeof t.key||"function"==typeof t.render)))),ct=t=>{const e=rt(t.horizontal);if(e.length>0)return{cells:e,horizontal:!0};const o=rt(t.vertical);return{cells:o,horizontal:0===o.length}},dt=(t,e)=>{let o=0;return Array.isArray(t)&&t.forEach((t=>{var l;o+=null!==(l=t[e])&&void 0!==l?l:1})),o},ht=(t,e)=>{const o=Math.max(0,...t.map((t=>dt(t,"colSpan"))));return 0===o?e.length:o},ut=t=>{var e;return null!==(e=null==t?void 0:t.reduce(((t,e)=>"visible"in e&&!1===e.visible?t:t+(e.colSpan||1)),0))&&void 0!==e?e:0},bt=(t,e,o,l)=>{if(void 0!==l&&!e)return l<t[0]?"left":t[1]>0&&l>=o-t[1]?"right":void 0},vt=(t,e,o,l)=>{var i,s,n,a,r,c;const d=[];for(let a=0;a<e;a++)"left"===bt(o,l,e,a)&&(d[a]=(null!==(i=d[a-1])&&void 0!==i?i:0)+(null!==(n=null===(s=t[a-1])||void 0===s?void 0:s.width)&&void 0!==n?n:0));for(let i=e-1;i>=0;i--)"right"===bt(o,l,e,i)&&(d[i]=(null!==(a=d[i+1])&&void 0!==a?a:0)+(null!==(c=null===(r=t[i+1])||void 0===r?void 0:r.width)&&void 0!==c?c:0));return d},pt=(t,e,o,l)=>{const i=void 0===e?void 0:t[e];return o&&l?`calc( var(--kol-table-selection-col-width) + ${i}px)`:`${i}px`},ft=({data:t,dataFoot:e,headers:o,isFoot:l,noEntriesLabel:i,primaryHeaders:s})=>{const n=ht(o.horizontal,t),a=s.cells;let r=((t,e,o)=>{const l=Math.max(0,...t.map((t=>dt(t,"rowSpan"))));return 0===l?e.length:l-o})(o.vertical,t,e.length),c=0;l&&(c=r,r+=e.length);const d=[],h=[],u=[];o.vertical.forEach(((t,e)=>{h[e]=0,u[e]=[]}));for(let i=c;i<r;i++){const r=[];o.vertical.forEach(((t,e)=>{let o=0;if(u[e].forEach((t=>o+=t)),o<=i){const l=t[i-o+h[e]];if("object"==typeof l){r.push(Object.assign(Object.assign({},l),{headerCell:!0,data:{}}));let t=1;if("number"==typeof l.rowSpan&&l.rowSpan>1&&(t=l.rowSpan),u[e].push(t),"number"==typeof l.colSpan&&l.colSpan>1)for(let o=1;o<l.colSpan;o++)u[e+o].push(t);h[e]++}}}));for(let o=0;o<n;o++)if(s.horizontal){const s=l?e[i-c]:t[i],n=a[o];"object"==typeof n&&null!==n&&"object"==typeof s&&null!==s&&r.push(Object.assign(Object.assign({},n),{colIndex:o,colSpan:void 0,rowSpan:void 0,data:s,label:s[n.key]}))}else{const e=a[i];"object"==typeof e&&null!==e&&"object"==typeof t[o]&&null!==t[o]&&r.push(Object.assign(Object.assign({},e),{colIndex:o,colSpan:void 0,rowSpan:void 0,data:t[o],label:t[o][e.key]}))}d.push(r)}if(0===t.length){let t=ut(o.horizontal[0]),e=0;o.vertical.length>0&&(t-=o.vertical.length,o.vertical[0].forEach((t=>{e+=t.rowSpan||1})));const l={colSpan:t,label:i,render:void 0,rowSpan:Math.max(e,1)};0===d.length?d.push([l]):d[0].push(l)}return d},mt=({horizontal:t,vertical:e})=>{const o=t.flatMap((t=>t.filter((t=>!1!==t.visible&&void 0!==t.width&&t.width>0)).map((t=>t.width)))),l=[...e.flatMap((t=>t.filter((t=>void 0!==t.width&&t.width>0)).map((t=>t.width)))),...o];return 0===l.length?"0px":1===l.length?`${l[0]}px`:`calc(${l.map((t=>`${t}px`)).join(" + ")})`},yt=t=>void 0===t?[]:Array.isArray(t)?t:[t],gt=t=>{var e;return null!==(e=t?t.keyPropertyName:void 0)&&void 0!==e?e:"id"},kt=t=>{const e=t?yt(t.selectedKeys):[];return{disabledKeys:new Set((t?yt(t.disabledKeys):[]).map(String)),keyPropertyName:gt(t),selectedKeys:e,selectedKeysSet:new Set(e.map(String))}},jt=(t,e)=>t.filter((t=>!e.disabledKeys.has(String(t[e.keyPropertyName])))),wt=C.forBlock("kol-table"),St=wt("body"),Ct=wt("cell-actions"),_t=wt("cell-states"),xt=wt("footer"),Ot=wt("head"),$t=wt("head-row"),Ft=wt("scroll-container"),Lt=wt("selection-icon"),Tt=wt("selection-input-tooltip"),Dt=wt("sort"),It=wt("sort-button"),zt=wt("sort-order"),Et=wt("table"),At=`${wt("focus-element")} ${wt("caption")}`,Mt="caption",Bt=(t,e)=>bt(t.fixedCols,t.stickyColsDisabled,t.maxCols,e),Ht=(t,e,o)=>({left:"left"===e?pt(t.fixedOffsets,o,!0,!1!==t.selection):void 0,right:"right"===e?pt(t.fixedOffsets,o,!1,!1!==t.selection):void 0}),Kt=(t,e,o)=>{var l,i;return null!==(i=t.primaryHeaders.horizontal&&(null===(l=e[0])||void 0===l?void 0:l.data)?t.rowKeys.get(e[0].data):void 0)&&void 0!==i?i:String(o)},Nt=t=>{const e=S("kol-sort");return"number"==typeof t&&t>0?`${e} – ${S("kol-table-sort-order").replace("{{order}}",`${t}`)}`:e},Pt=(t,e,l,i,s)=>{if(!1===e.visible)return"";const n=!1!==(null==e?void 0:e.sortable)&&"string"==typeof e.sortDirection;let a="none",r="kolicon-sort-neutral";if(n&&e.sortDirection)switch(e.sortDirection){case"ASC":r="kolicon-sort-asc",a="ascending";break;case"DESC":r="kolicon-sort-desc",a="descending";break;default:a="none"}const c=s?"row":"number"==typeof e.colSpan&&e.colSpan>1?"colgroup":"col",d="number"==typeof e.sortOrder&&e.sortOrder>0?e.sortOrder:void 0,h=void 0!==e.width?`${e.width}px`:void 0,u=Bt(t,i),{left:b,right:v}=Ht(t,u,i),p=e.textAlign,f=n?e.sortDirection:void 0;return o("th",{key:`${l}-${i}-${e.label}`,class:wt("cell",{[a]:!0,"align-center":"center"===p,"align-justify":"justify"===p,"align-left":"left"===p,"align-right":"right"===p,header:!0,"sticky-left":"left"===u,"sticky-right":"right"===u}),scope:c,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{width:h,left:b,right:v},"aria-sort":a,"data-sort":f?`sort-${f}`:void 0},f?o("span",{class:Dt},o(_,Object.assign({},t.getButtonFcProps(`sort-${s?"vertical":"horizontal"}-${l}-${i}`,{_icons:{right:r},_label:e.label,_ariaDescription:Nt(d),_on:{onClick:o=>{t.handleSort(o,{key:e.key,currentSortDirection:f})}}},{class:It}))),d&&o("span",{"aria-hidden":"true",class:zt},d)):e.label)},Rt=(t,e,l,i,s=!1)=>o("tr",{class:wt("row",{body:!s,footer:s}),key:`row-${Kt(t,e,l)}`},((t,e,l)=>{var i;const{handleSelectionChange:s,selection:n,selectionModel:a}=t;if(!n)return"";const r=null===(i=e[0])||void 0===i?void 0:i.data;if(!r)return"";const c=r[a.keyPropertyName],d=n.multiple||void 0===n.multiple,h=String(c),u=a.selectedKeysSet.has(h),b=a.disabledKeys.has(h),v=n.label(r),p={name:"selection",checked:u,disabled:b,id:String(c),"aria-label":v};return o("td",{key:`tbody-${l}-selection`,class:wt("cell",{selection:!0})},o("div",{class:wt("selection",{checked:u})},d?o("label",{class:wt("selection-label",{disabled:b})},o(x,{class:Lt,icons:"kolicon "+(u?"kolicon-check":""),label:""}),o("input",Object.assign({class:wt("selection-input",{checkbox:!0})},p,{type:"checkbox",onInput:t=>{const e=u?a.selectedKeys.filter((t=>String(t)!==h)):[...a.selectedKeys,c];s(t,e)}}))):o("label",{class:wt("selection-label")},o("input",Object.assign({class:wt("selection-input",{radio:!0})},p,{type:"radio",onInput:t=>{s(t,[c])}}))),o("div",{class:Tt},o(w,{label:v,badgeText:"",id:`${c}-label`,refFloating:()=>{}}))))})(t,e,l),e.map(((e,s)=>((t,e,l,i,s)=>{if(!1===e.visible)return"";let n=`${l}-${i}-${e.label}`;if(e.data){const o=t.rowKeys.get(e.data);n=o?`${o}-${t.primaryHeaders.horizontal?i:l}`:n}if(e.headerCell)return Pt(t,e,l,i,s);const a="function"!=typeof e.render&&e.label===t.translateNoEntries,r=((t,e,o)=>{if(0!==(e.horizontal?t.horizontal:t.vertical).length)return e.cells[o]})(t.headers,t.primaryHeaders,i),c="action"===(null==r?void 0:r.type)?r:void 0,d=Boolean(c&&e.data),h="state"===(null==r?void 0:r.type)?r:void 0,u=Boolean(h&&e.data),b=Bt(t,i),{left:v,right:p}=Ht(t,b,e.colIndex),f="function"==typeof e.render,m=e.textAlign;return o("td",{key:`cell-${n}-${t.settingsChangedCounter}`,class:wt("cell",{actions:d,"align-center":"center"===m,"align-justify":"justify"===m,"align-left":"left"===m,"align-right":"right"===m,body:!0,states:u,"sticky-left":"left"===b,"sticky-right":"right"===b}),"aria-atomic":a?"false":void 0,"aria-live":a?"polite":void 0,"aria-relevant":a?"text":void 0,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{textAlign:m,left:v,right:p},ref:f?o=>t.handleRenderCell(e,o):void 0},d&&c&&e.data?((t,e,l,i)=>o("div",{class:Ct},e.actions(l).map(((e,l)=>{const s=`action-${i}-${l}`;return"button"===e.type?o("span",{key:s},o(_,Object.assign({},t.getButtonFcProps(s,e)))):"link"===e.type?o("span",{key:s},o(O,Object.assign({},t.getLinkFcProps(s,e)))):null}))))(t,c,e.data,n):u&&h&&e.data?((t,e,l)=>{const i=t.key;if(!i)return"";const s=e[i];return s?o("div",{class:_t},s.map(((t,e)=>"badge"===t.type?o("kol-badge",Object.assign({key:`state-${l}-${e}`},t)):null))):""})(h,e.data,n):f?"":e.label)})(t,e,l,s,i)))),Wt=(t,e,l)=>{const i=t.headers.vertical.length+ut(null==l?void 0:l[0])+(t.selection?1:0);return o("tr",{"aria-hidden":"true",class:wt("spacer",{[e]:!0})},o("td",{class:wt("spacer-line",{[e]:!0}),colSpan:i}))},qt=t=>{const e=h(at,t),{data:i,dataFoot:s,externalLabelElements:n,fixedCols:a,hasScrollbar:r,hasSettingsMenu:c,headers:d,label:v,loading:p,refScrollContainer:f,refTable:m,selection:y,stickyColsDisabled:g,variant:k}=e,C=S("kol-no-entries"),_=ct(d),O=ht(d.horizontal,i),L=Object.assign(Object.assign({},e),{fixedOffsets:vt(_.cells,O,a,g),maxCols:O,primaryHeaders:_,selectionModel:kt(y),translateNoEntries:C}),T=ft({data:i,dataFoot:s,headers:d,isFoot:!1,noEntriesLabel:C,primaryHeaders:_}),D=0===n.length;return o(b,{block:"kol-table",class:j(k,"table")},c&&t.renderSettings(d.horizontal),o("div",{ref:f,class:Ft,tabindex:r?D?"-1":"0":void 0},o("table",{ref:m,"aria-labelledby":D?Mt:void 0,class:Et,style:{minWidth:mt(d)}},D&&o("caption",{class:At,id:Mt,ref:t=>{t&&(r?t.tabIndex=0:t.removeAttribute("tabindex"))}},$(v)),o("thead",{class:Ot},[d.horizontal.map(((t,e)=>o("tr",{class:$t,key:`thead-${e}`},y&&(t=>{const{data:e,handleSelectionChange:l,selection:i,selectionModel:s}=t;if(!i)return o("td",{class:wt("cell",{header:!0}),key:"thead-0"});if(!1===i.multiple)return o("th",{scope:"col",key:"thead-0-selection",class:wt("cell",{header:!0,selection:!0})},o("span",{class:"visually-hidden"},S("kol-table-selection")));const n=s.selectedKeys.filter((t=>!s.disabledKeys.has(String(t)))).length,a=n===jt(e,s).length,r=0!==n&&!a;let c;return c=S(0===n?"kol-table-selection-all":a&&!r?"kol-table-selection-none":"kol-table-selection-indeterminate"),o("th",{scope:"col",key:"thead-0-selection",class:wt("cell",{header:!0,selection:!0})},o("span",{class:"visually-hidden"},S("kol-table-selection")),o("div",{class:wt("selection",{checked:a,indeterminate:r})},o("label",{class:wt("selection-label")},o(x,{class:Lt,icons:"kolicon "+(r?"kolicon-minus":a?"kolicon-check":""),label:""}),o("input",{class:wt("selection-input",{checkbox:!0}),name:"selection",checked:a&&!r,indeterminate:r,"aria-label":c,type:"checkbox",onInput:t=>{l(t,((t,e,o)=>{const l=e.selectedKeys.filter((t=>e.disabledKeys.has(String(t))));return o&&l.push(...jt(t,e).map((t=>null==t?void 0:t[e.keyPropertyName]))),l})(e,s,!a))}})),o("div",{class:Tt},o(w,{label:c,badgeText:"",refFloating:()=>{}}))))})(L),0===e&&(({headers:t})=>{const{horizontal:e,vertical:i}=t;if(0===e.length||0===i.length)return o(l,null);const s=i.reduce(((t,e)=>{var o,l;return t+(null!==(l=null===(o=null==e?void 0:e[0])||void 0===o?void 0:o.width)&&void 0!==l?l:0)}),0);return o("td",{"aria-hidden":"true",colSpan:i.length,rowSpan:e.length,style:s>0?{width:`${s}px`}:void 0})})(L),Array.isArray(t)&&t.map(((t,o)=>Pt(L,t,e,o,!1)))))),Wt(L,"head",d.horizontal)]),o("tbody",{class:St},o("div",{class:wt("loader",{shown:p})},o(F,{label:S(p?"kol-table-data-loading":"kol-table-data-loaded").replace("{{caption}}",u(v)),show:p,variant:"cycle"})),T.map(((t,e)=>Rt(L,t,e,!0)))),(t=>{const{dataFoot:e,headers:l,primaryHeaders:i,translateNoEntries:s}=t;if(0===e.length)return null;const n=ft({data:e,dataFoot:e,headers:l,isFoot:!0,noEntriesLabel:s,primaryHeaders:i}),a=ht(l.horizontal,e),r=Object.assign(Object.assign({},t),{fixedOffsets:vt(i.cells,a,t.fixedCols,t.stickyColsDisabled),maxCols:a});return o("tfoot",{class:xt},[Wt(t,"foot",n),n.map(((t,e)=>Rt(r,t,e,!0,!0)))])})(L))))},Ut=({dialog:t,card:e},l)=>o(K,Object.assign({},t),e?o(q,Object.assign({},e),l):l),Vt=C.forBlock("kol-table")("settings"),Gt=C.forBlock("kol-table-settings"),Jt=Gt(),Qt=Gt("actions"),Xt=Gt("columns"),Yt=Gt("content"),Zt=Gt("error-message"),te=t=>Number.isFinite(t)&&void 0!==t&&t>0?t:void 0,ee=()=>{},oe=(t,e)=>{const l=S("kol-table-settings"),i=S("kol-table-settings-cancel"),s=S("kol-table-settings-apply"),n=S("kol-table-settings-error-all-invisible");let a,r=!1,c=!1;const d=()=>{r=!0,e()},h=m((()=>f(t)),(t=>t.syncListeners()),(t=>t.destroy())),b=((t,e)=>{const o=M(),l=M(),i=new U(v.stateLess),s=T(),n=D("dialog-heading"),r={};let c,d=!0,h={};const b=t=>!a||I(a,t),f=()=>{var t,e;null===(e=null===(t=o.el)||void 0===t?void 0:t.close)||void 0===e||e.call(t)},m=t=>{var e;N(t),t.defaultPrevented||(null===(e=h.onCancel)||void 0===e||e.call(h,t),t.defaultPrevented||b(z.cancel)||t.preventDefault())},y=t=>{var e;t.target===o.el&&(B(r),null===(e=h.onClose)||void 0===e||e.call(h),b(z.close))},k=()=>{i.hideTooltip(),f(),b(z.close)};return{getFcProps:e=>{var a,r,b;let v="",f=0,j="blank",w="100%";g.apply(e.label,(t=>{v=t})),A.apply(null!==(a=e.level)&&void 0!==a?a:0,(t=>{f=t})),P.apply(e.on,(t=>{h=t})),p.apply(null!==(r=e.variant)&&void 0!==r?r:"blank",(t=>{j=t})),R.apply(null!==(b=e.width)&&void 0!==b?b:"100%",(t=>{w=t}));const S="card"===j;return S&&!c&&(c=W(t()),i.componentWillLoad({label:c.label,align:c.tooltipAlign})),{dialog:{handleCancel:m,handleClose:y,label:u(v),labelledBy:S?n:void 0,modal:d,refDialog:o,variant:j,width:w},card:S&&c?{ariaDescriptionId:s,closeButtonProps:c,handleClose:k,hasCloser:!0,headingId:n,label:v,level:f,refCloseButton:l,refTooltip:i.setTooltipElementRef}:void 0}},show:t=>{var l,i;const s=o.el;(null==s?void 0:s.open)||(d!==t&&(d=t,e()),t?(null===(l=null==s?void 0:s.showModal)||void 0===l||l.call(s),s&&H(r)):null===(i=null==s?void 0:s.show)||void 0===i||i.call(s))},close:f,syncListeners:()=>{l.el&&i.syncListeners(void 0,l.el,!0)},destroy:()=>{f(),B(r),i.destroy()}}})(t,d),y=D("alert-heading"),k=T();let j,w=[],C=[],x=null;const O=()=>{var t;return null!==(t=C[C.length-1])&&void 0!==t?t:[]},$=t=>{C=C.map(((e,o,l)=>o===l.length-1?t:e)),d()},F=(t,e)=>{const o=[...O()],l=o.findIndex((e=>e.key===t));if(-1===l)return;let i;if("up"===e){if(0===l)return;i=l-1}else{if(l===o.length-1)return;i=l+1}const[s]=o.splice(l,1);o.splice(i,0,s),$(o)},K=t=>{if(t.preventDefault(),!O().some((t=>!1!==t.visible)))return x=n,void d();if(a){x=null,w=C.map((t=>t.map((t=>Object.assign({},t))))),d();const t=C.map((t=>t.map((t=>{const e=t,{hidable:o,resizable:l,sortable:i,visible:s,width:n}=e,a=L(e,["hidable","resizable","sortable","visible","width"]),r=Object.assign({},a);return void 0!==s&&(r.visible=s),void 0!==o&&(r.hidable=o),void 0!==i&&(r.sortable=i),void 0!==l&&(r.resizable=l),null!=n&&(r.width=n),r}))));I(a,z.changeHeaderCells,t),b.close()}},q=t=>{t&&(a=t)};return{beginRender:()=>{h.beginRender(),c=r,r=!1},render:t=>{var e;c||t===j||(j=t,w=(e=t).map((t=>[...t])),C=e.map((t=>t.map((t=>Object.assign({},t))))));const n=O();return o("div",{class:Vt,ref:q},o("div",{class:Jt},o(_,Object.assign({},h.get("toggle").getFcProps({_icons:"kolicon-settings",_label:l,_hideLabel:!0,_on:{onClick:()=>b.show(!0)}})))),o(Ut,Object.assign({},b.getFcProps({label:l,variant:"card",width:"fit-content"})),o("div",{class:Yt},x&&o("div",{class:Zt},o(E,{alert:!1,closerAriaDescriptionId:k,handleCloserClick:ee,hasCloser:!1,headingId:y,label:x,level:0,refCloserButton:ee,refCloserTooltip:ee,type:"error",variant:"msg"})),o("form",{onSubmit:K},o("div",{class:Xt},n.map(((t,e)=>((t,e,l)=>o("div",{key:t.key,class:"kol-table-settings__column"},o("kol-input-checkbox",{_checked:!1!==t.visible,_label:S(t.hidable?"kol-table-settings-column-hidable":"kol-table-settings-column-not-hidable",{placeholders:{column:t.label}}),_value:!0,_hideLabel:!0,_disabled:!1===t.hidable,_on:{onInput:(e,o)=>{var l;return((t,e)=>{const o=O().map((o=>o.key===t&&!1!==o.hidable?Object.assign(Object.assign({},o),{visible:Boolean(e)}):o));$(o)})(null!==(l=t.key)&&void 0!==l?l:"",o)}}}),o("span",{class:"kol-table-settings__column-label"},t.label),o("kol-input-number",{_hideLabel:!0,_value:te(t.width),_label:S("kol-table-settings-column-width",{placeholders:{column:t.label}}),_min:1,_disabled:!1===t.resizable,_on:{onInput:(e,o)=>{var l;return((t,e)=>{const o=te(Number(e)),l=O().map((e=>e.key===t&&!1!==e.resizable?Object.assign(Object.assign({},e),{width:o}):e));$(l)})(null!==(l=t.key)&&void 0!==l?l:"",o)}}}),o(_,Object.assign({},h.get(`move-up-${t.key}`).getFcProps({_icons:"kolicon-chevron-up",_label:S(!1===t.sortable||0===e?"kol-table-settings-not-move":"kol-table-settings-move-up",{placeholders:{column:t.label}}),_hideLabel:!0,_variant:"ghost",_on:{onClick:()=>{var e;return F(null!==(e=t.key)&&void 0!==e?e:"","up")}},_disabled:!1===t.sortable||0===e}))),o(_,Object.assign({},h.get(`move-down-${t.key}`).getFcProps({_icons:"kolicon-chevron-down",_label:S(!1===t.sortable||e===l.length-1?"kol-table-settings-not-move":"kol-table-settings-move-down",{placeholders:{column:t.label}}),_hideLabel:!0,_variant:"ghost",_on:{onClick:()=>{var e;return F(null!==(e=t.key)&&void 0!==e?e:"","down")}},_disabled:!1===t.sortable||e===l.length-1})))))(t,e,n)))),o("div",{class:Qt},o(_,Object.assign({},h.get("cancel").getFcProps({_label:i,_variant:"secondary",_on:{onClick:()=>(C=w.map((t=>[...t])),x=null,d(),void b.close())}}))),o(_,Object.assign({},h.get("apply").getFcProps({_label:s,_variant:"primary",_type:"submit"}))))))))},sync:()=>{h.endRender(),b.syncListeners()},destroy:()=>{h.destroy(),b.destroy()}}},le=class extends v{constructor(){super(...arguments),this.hasExternalTableLabelRefs=!1,this.cellRenderTimeouts=new Map,this.buttonItems=m((()=>f((()=>this.host))),(t=>t.syncListeners()),(t=>t.destroy())),this.settings=oe((()=>this.host),(()=>s(this))),this.linkItems=m((()=>y((()=>s(this)))),(t=>t.syncListeners()),(t=>t.destroy())),this.propsConfig=at,this.handleResize=()=>{this.updateScrollbarState(),clearTimeout(this.resizeDebounceTimeout),this.resizeDebounceTimeout=setTimeout((()=>{this.updateStickyColsDisabled()}),150)},this.handleSelectionChange=(t,e)=>{this.emitSelectionChange(t,e)},this.handleSort=(t,e)=>{this.emitSort(t,e)},this.handleRenderCell=(t,e)=>{e&&(clearTimeout(this.cellRenderTimeouts.get(e)),this.cellRenderTimeouts.set(e,setTimeout((()=>{if(this.cellRenderTimeouts.delete(e),"function"==typeof t.render){const o=t.render(e,t,t.data,this.getRenderProp("data"));"string"==typeof o&&(e.textContent=o)}}))))},this.refScrollContainer=t=>{this.scrollContainerElement=t},this.refTable=t=>{this.tableElement=t,this.syncTableLabel(this.getState("externalLabelElements"))},this.getButtonFcProps=(t,e,o)=>this.buttonItems.get(t).getFcProps(e,o),this.renderSettings=t=>this.settings.render(t),this.getLinkFcProps=(t,e)=>this.linkItems.get(t).getFcProps(e)}observeScrollContainer(){this.scrollContainerElement&&ResizeObserver&&(this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.scrollContainerElement)),this.updateStickyColsDisabled()}teardownTable(){var t;null===(t=this.resizeObserver)||void 0===t||t.disconnect(),clearTimeout(this.resizeDebounceTimeout),this.cellRenderTimeouts.forEach((t=>clearTimeout(t))),this.cellRenderTimeouts.clear(),this.buttonItems.destroy(),this.linkItems.destroy(),this.settings.destroy()}syncTableItems(){this.buttonItems.endRender(),this.linkItems.endRender(),this.settings.sync()}applyData(t){et.apply(t,(t=>{this.setRenderProp("data",t),this.setState("rowKeys",((t,e)=>new Map(t.map((t=>{var o;return[t,null!==(o=e.get(t))&&void 0!==o?o:T()]}))))(t,this.getState("rowKeys")))}))}applyDataFoot(t){ot.apply(t,(t=>this.setRenderProp("dataFoot",t)))}applyFixedCols(t){Q.apply(t,(t=>this.setRenderProp("fixedCols",t))),this.updateStickyColsDisabled()}applyHasSettingsMenu(t){X.apply(t,(t=>this.setRenderProp("hasSettingsMenu",t)))}applyHeaders(t){it.apply(t,(t=>this.setRenderProp("headers",(t=>0===t.horizontal.length?t:Object.assign(Object.assign({},t),{horizontal:t.horizontal.map((t=>t.map((t=>Object.assign(Object.assign({},t),{visible:"boolean"!=typeof t.visible||t.visible,hidable:"boolean"!=typeof t.hidable||t.hidable})))))}))(t))),this.isRequired("headers"))}applyLabel(t){g.apply(t,(t=>this.setRenderProp("label",t)),this.isRequired("label"))}applyLoading(t){st.apply(t,(t=>this.setRenderProp("loading",t)))}applyOn(t){Y.apply(t,(t=>this.setRenderProp("on",t)))}applySelection(t){nt.apply(t,(t=>this.setRenderProp("selection",t))),this.updateStickyColsDisabled()}applyVariant(t){k.apply(t,(t=>this.setRenderProp("variant",t)))}syncTableLabel(t){this.tableElement&&"ariaLabelledByElements"in this.tableElement&&((null==t?void 0:t.length)?(this.tableElement.ariaLabelledByElements=t,this.hasExternalTableLabelRefs=!0,i.debug([this.tableElement,t,this.tableElement.ariaLabelledByElements])):this.hasExternalTableLabelRefs&&(this.hasExternalTableLabelRefs=!1,this.tableElement.ariaLabelledByElements=null,this.tableElement.setAttribute("aria-labelledby",Mt)))}moveCheckboxFocus(t){var e,o,l;if("ArrowUp"!==t.key&&"ArrowDown"!==t.key)return;const i=Array.from(null!==(o=null===(e=this.scrollContainerElement)||void 0===e?void 0:e.querySelectorAll(".kol-table__selection-input--checkbox"))&&void 0!==o?o:[]),s=null===(l=this.scrollContainerElement)||void 0===l?void 0:l.querySelector(":focus");let n=i.indexOf(s);n>-1&&(t.preventDefault(),n=(n+("ArrowDown"===t.key?1:i.length-1))%i.length,i[n].focus())}applyChangedHeaderCells(t){const e=Object.assign(Object.assign({},this.getRenderProp("headers")),{horizontal:t.detail});this.setRenderProp("headers",e),this.setState("settingsChangedCounter",this.getState("settingsChangedCounter")+1);const o=this.getRenderProp("on")[V.onChangeHeaderCells];"function"==typeof o&&o(t,e)}updateScrollbarState(){if(this.scrollContainerElement){const{clientHeight:t,clientWidth:e,scrollHeight:o,scrollWidth:l}=this.scrollContainerElement;this.setState("hasScrollbar",l>e||o>t&&["auto","scroll"].includes(getComputedStyle(this.scrollContainerElement).overflowY))}}calculateFixedColsWidth(){var t,e,o,l,i,s;const[n,a]=this.getRenderProp("fixedCols"),r=this.getRenderProp("headers"),c=ct(r).cells,d=ht(r.horizontal,this.getRenderProp("data"));let h=0;for(let o=0;o<n&&o<c.length;o++)h+=null!==(e=null===(t=c[o])||void 0===t?void 0:t.width)&&void 0!==e?e:0;for(let t=d-a;t<d&&t<c.length;t++)h+=null!==(l=null===(o=c[t])||void 0===o?void 0:o.width)&&void 0!==l?l:0;if(this.getRenderProp("selection")){const t=null===(i=this.scrollContainerElement)||void 0===i?void 0:i.querySelector(".kol-table__cell--selection");h+=null!==(s=null==t?void 0:t.offsetWidth)&&void 0!==s?s:0}return h}updateStickyColsDisabled(){if(!this.scrollContainerElement)return void this.setState("stickyColsDisabled",!1);const t=this.calculateFixedColsWidth();this.setState("stickyColsDisabled",t>0&&t>=this.scrollContainerElement.clientWidth)}emitSelectionChange(t,e){const o=this.getRenderProp("on")[V.onSelectionChange];"function"==typeof o&&o(t,e),this.host&&I(this.host,z.selectionChange,e)}emitSort(t,e){const o=this.getRenderProp("on")[V.onSort];"function"==typeof o&&e.key&&o(t,e),this.host&&I(this.host,z.sort,e)}renderTableStatelessFC(){return this.buttonItems.beginRender(),this.linkItems.beginRender(),this.settings.beginRender(),o(qt,{data:this.getRenderProp("data"),dataFoot:this.getRenderProp("dataFoot"),externalLabelElements:this.getState("externalLabelElements"),fixedCols:this.getRenderProp("fixedCols"),getButtonFcProps:this.getButtonFcProps,getLinkFcProps:this.getLinkFcProps,renderSettings:this.renderSettings,handleRenderCell:this.handleRenderCell,handleSelectionChange:this.handleSelectionChange,handleSort:this.handleSort,hasScrollbar:this.getState("hasScrollbar"),hasSettingsMenu:this.getRenderProp("hasSettingsMenu"),headers:this.getRenderProp("headers"),label:this.getRenderProp("label"),loading:this.getRenderProp("loading"),on:this.getRenderProp("on"),refScrollContainer:this.refScrollContainer,refTable:this.refTable,rowKeys:this.getState("rowKeys"),selection:this.getRenderProp("selection"),settingsChangedCounter:this.getState("settingsChangedCounter"),stickyColsDisabled:this.getState("stickyColsDisabled"),variant:this.getRenderProp("variant")})}};export{le as B,ot as a,et as t,G as v}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{y as t,q as e}from"./common.js";import{t as n,a as i}from"./tooltip-open-tracking.js";import{c as o}from"./align.js";import{c as r,b as s,d as l}from"./base-web-component.js";import{l as a}from"./label.js";const c=o("align","top"),u=r("badgeText","",s),f=r("id","",s),h=Math.min,d=Math.max,m=Math.round,p=Math.floor,y=t=>({x:t,y:t}),w={left:"right",right:"left",bottom:"top",top:"bottom"};function g(t,e,n){return d(t,h(e,n))}function x(t,e){return"function"==typeof t?t(e):t}function v(t){return t.split("-")[0]}function b(t){return t.split("-")[1]}function A(t){return"x"===t?"y":"x"}function T(t){return"y"===t?"height":"width"}function S(t){const e=t[0];return"t"===e||"b"===e?"y":"x"}function k(t){return A(S(t))}function R(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const O=["left","right"],F=["right","left"],E=["top","bottom"],L=["bottom","top"];function z(t){const e=v(t);return w[e]+t.slice(e.length)}function C(t){return"number"!=typeof t?function(t){var e,n,i,o;return{top:null!=(e=t.top)?e:0,right:null!=(n=t.right)?n:0,bottom:null!=(i=t.bottom)?i:0,left:null!=(o=t.left)?o:0}}(t):{top:t,right:t,bottom:t,left:t}}function j(t){const{x:e,y:n,width:i,height:o}=t;return{width:i,height:o,top:n,left:e,right:e+i,bottom:n+o,x:e,y:n}}function P(t,e,n){let{reference:i,floating:o}=t;const r=S(e),s=k(e),l=T(s),a=v(e),c="y"===r,u=i.x+i.width/2-o.width/2,f=i.y+i.height/2-o.height/2,h=i[l]/2-o[l]/2;let d;switch(a){case"top":d={x:u,y:i.y-o.height};break;case"bottom":d={x:u,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:f};break;case"left":d={x:i.x-o.width,y:f};break;default:d={x:i.x,y:i.y}}const m=b(e);return m&&(d[s]+=h*("end"===m?1:-1)*(n&&c?-1:1)),d}async function D(t,e){var n;void 0===e&&(e={});const{x:i,y:o,platform:r,rects:s,elements:l,strategy:a}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:h=!1,padding:d=0}=x(e,t),m=C(d),p=l[h?"floating"===f?"reference":"floating":f],y=j(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(p)))||n?p:p.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:a})),w="floating"===f?{x:i,y:o,width:s.floating.width,height:s.floating.height}:s.reference,g=await(null==r.getOffsetParent?void 0:r.getOffsetParent(l.floating)),v=await(null==r.isElement?void 0:r.isElement(g))&&await(null==r.getScale?void 0:r.getScale(g))||{x:1,y:1},b=j(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:g,strategy:a}):w);return{top:(y.top-b.top+m.top)/v.y,bottom:(b.bottom-y.bottom+m.bottom)/v.y,left:(y.left-b.left+m.left)/v.x,right:(b.right-y.right+m.right)/v.x}}const M=new Set(["left","top"]);function $(){return"undefined"!=typeof window}function B(t){return I(t)?(t.nodeName||"").toLowerCase():"#document"}function q(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function H(t){var e;return null==(e=(I(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function I(t){return!!$()&&(t instanceof Node||t instanceof q(t).Node)}function N(t){return!!$()&&(t instanceof Element||t instanceof q(t).Element)}function V(t){return!!$()&&(t instanceof HTMLElement||t instanceof q(t).HTMLElement)}function _(t){return!(!$()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof q(t).ShadowRoot)}function W(t){const{overflow:e,overflowX:n,overflowY:i,display:o}=et(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&"inline"!==o&&"contents"!==o}function X(t){return/^(table|td|th)$/.test(B(t))}function Y(t){try{if(t.matches(":popover-open"))return!0}catch(t){}try{return t.matches(":modal")}catch(t){return!1}}const G=/transform|translate|scale|rotate|perspective|filter/,J=/paint|layout|strict|content/,K=t=>!!t&&"none"!==t;let Q;function U(t){const e=N(t)?et(t):t;return K(e.transform)||K(e.translate)||K(e.scale)||K(e.rotate)||K(e.perspective)||!Z()&&(K(e.backdropFilter)||K(e.filter))||G.test(e.willChange||"")||J.test(e.contain||"")}function Z(){return null==Q&&(Q="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Q}function tt(t){return/^(html|body|#document)$/.test(B(t))}function et(t){return q(t).getComputedStyle(t)}function nt(t){return N(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function it(t){if("html"===B(t))return t;const e=t.assignedSlot||t.parentNode||_(t)&&t.host||H(t);return _(e)?e.host:e}function ot(t){const e=it(t);return tt(e)?(t.ownerDocument||t).body:V(e)&&W(e)?e:ot(e)}function rt(t,e,n){var i;void 0===e&&(e=[]),void 0===n&&(n=!0);const o=ot(t),r=o===(null==(i=t.ownerDocument)?void 0:i.body),s=q(o);if(r){const t=st(s);return e.concat(s,s.visualViewport||[],W(o)?o:[],t&&n?rt(t):[])}return e.concat(o,rt(o,[],n))}function st(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function lt(t){const e=et(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const o=V(t),r=o?t.offsetWidth:n,s=o?t.offsetHeight:i,l=m(n)!==r||m(i)!==s;return l&&(n=r,i=s),{width:n,height:i,$:l}}function at(t){return N(t)?t:t.contextElement}function ct(t){const e=at(t);if(!V(e))return y(1);const n=e.getBoundingClientRect(),{width:i,height:o,$:r}=lt(e);let s=(r?m(n.width):n.width)/i,l=(r?m(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}const ut=y(0);function ft(t){const e=q(t);return Z()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:ut}function ht(t,e,n,i){void 0===e&&(e=!1),void 0===n&&(n=!1);const o=t.getBoundingClientRect(),r=at(t);let s=y(1);e&&(i?N(i)&&(s=ct(i)):s=ct(t));const l=function(t,e,n){return void 0===e&&(e=!1),!!n&&e&&n===q(t)}(r,n,i)?ft(r):y(0);let a=(o.left+l.x)/s.x,c=(o.top+l.y)/s.y,u=o.width/s.x,f=o.height/s.y;if(r&&i){const t=q(r),e=N(i)?q(i):i;let n=t,o=st(n);for(;o&&e!==n;){const t=ct(o),e=o.getBoundingClientRect(),i=et(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,s=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;a*=t.x,c*=t.y,u*=t.x,f*=t.y,a+=r,c+=s,n=q(o),o=st(n)}}return j({width:u,height:f,x:a,y:c})}function dt(t,e){const n=nt(t).scrollLeft;return e?e.left+n:ht(H(t)).left+n}function mt(t,e){const n=t.getBoundingClientRect();return{x:n.left+e.scrollLeft-dt(t,n),y:n.top+e.scrollTop}}function pt(t,e,n){let i;if("viewport"===e||"layoutViewport"===e)i=function(t,e,n){void 0===n&&(n="viewport");const i="layoutViewport"===n,o=q(t),r=H(t),s=o.visualViewport;let l=r.clientWidth,a=r.clientHeight,c=0,u=0;if(s){const t=!Z()||"fixed"===e;i?t||(c=-s.offsetLeft,u=-s.offsetTop):(l=s.width,a=s.height,t&&(c=s.offsetLeft,u=s.offsetTop))}if(dt(r)<=0){const t=r.ownerDocument,e=t.body,n=getComputedStyle(e),i="CSS1Compat"===t.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-e.clientWidth-i),s="stable both-edges"===getComputedStyle(r).scrollbarGutter?o/2:o;s<=25&&(l-=s)}return{width:l,height:a,x:c,y:u}}(t,n,e);else if("document"===e)i=function(t){const e=nt(t),n=t.ownerDocument.body,i=d(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=d(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let r=-e.scrollLeft+dt(t);const s=-e.scrollTop;return"rtl"===et(n).direction&&(r+=d(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:r,y:s}}(H(t));else if(N(e))i=function(t,e){const n=ht(t,!0,"fixed"===e),i=n.top+t.clientTop,o=n.left+t.clientLeft,r=ct(t);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:o*r.x,y:i*r.y}}(e,n);else{const n=ft(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return j(i)}function yt(t,e,n){const i=V(e),o=H(e),r="fixed"===n,s=ht(t,!0,r,e);let l={scrollLeft:0,scrollTop:0};const a=y(0);if((i||!r)&&(("body"!==B(e)||W(o))&&(l=nt(e)),i)){const t=ht(e,!0,r,e);a.x=t.x+e.clientLeft,a.y=t.y+e.clientTop}!i&&o&&(a.x=dt(o));const c=!o||i||r?y(0):mt(o,l);return{x:s.left+l.scrollLeft-a.x-c.x,y:s.top+l.scrollTop-a.y-c.y,width:s.width,height:s.height}}function wt(t){return"static"===et(t).position}function gt(t,e){if(!V(t)||"fixed"===et(t).position)return null;if(e)return e(t);let n=t.offsetParent;return H(t)===n&&(n=n.ownerDocument.body),n}function xt(t,e){const n=q(t);if(Y(t))return n;if(!V(t)){let e=it(t);for(;e&&!tt(e);){if(N(e)&&!wt(e))return e;e=it(e)}return n}let i=gt(t,e);for(;i&&X(i)&&wt(i);)i=gt(i,e);return i&&tt(i)&&wt(i)&&!U(i)?n:i||function(t){let e=it(t);for(;V(e)&&!tt(e);){if(U(e))return e;if(Y(e))return null;e=it(e)}return null}(t)||n}const vt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:i,strategy:o}=t;const r="fixed"===o,s=H(i),l=!!e&&Y(e.floating);if(i===s||l&&r)return n;let a={scrollLeft:0,scrollTop:0},c=y(1);const u=y(0),f=V(i);if((f||!r)&&(("body"!==B(i)||W(s))&&(a=nt(i)),f)){const t=ht(i);c=ct(i),u.x=t.x+i.clientLeft,u.y=t.y+i.clientTop}const h=!s||f||r?y(0):mt(s,a);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-a.scrollTop*c.y+u.y+h.y}},getDocumentElement:H,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t;const r=[..."clippingAncestors"===n?Y(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let i=rt(t,[],!1).filter((t=>N(t)&&"body"!==B(t))),o=null;const r="fixed"===et(t).position;let s=r?it(t):t;for(;N(s)&&!tt(s);){const t=et(s),e=U(s),n=o?o.position:r?"fixed":"";e||"fixed"!==n&&("absolute"!==n||"static"!==t.position)?o=t:i=i.filter((t=>t!==s)),s=it(s)}return e.set(t,i),i}(e,this._c):[].concat(n),i],s=pt(e,r[0],o);let l=s.top,a=s.right,c=s.bottom,u=s.left;for(let t=1;t<r.length;t++){const n=pt(e,r[t],o);l=d(n.top,l),a=h(n.right,a),c=h(n.bottom,c),u=d(n.left,u)}return{width:a-u,height:c-l,x:u,y:l}},getOffsetParent:xt,getElementRects:async function(t){const e=this.getOffsetParent||xt,n=this.getDimensions,i=await n(t.floating);return{reference:yt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},getClientRects:function(t){return t.getClientRects?Array.from(t.getClientRects()):[]},getDimensions:function(t){const{width:e,height:n}=lt(t);return{width:e,height:n}},getScale:ct,isElement:N,isRTL:function(t){return"rtl"===et(t).direction}};function bt(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function At(t,e,n,i){void 0===i&&(i={});const{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:a=!1}=i,c=at(t),u=o||r?[...c?rt(c):[],...e?rt(e):[]]:[];u.forEach((t=>{o&&t.addEventListener("scroll",n),r&&t.addEventListener("resize",n)}));const f=c&&l?function(t,e,n){let i,o=null;const r=H(t);function s(){var t;clearTimeout(i),null==(t=o)||t.disconnect(),o=null}function l(n,a){void 0===n&&(n=!1),void 0===a&&(a=1),s();const c=t.getBoundingClientRect(),{left:u,top:f,width:m,height:y}=c;if(n||e(),!m||!y)return;const w={rootMargin:-p(f)+"px "+-p(r.clientWidth-(u+m))+"px "+-p(r.clientHeight-(f+y))+"px "+-p(u)+"px",threshold:d(0,h(1,a))||1};let g=!0;function x(e){const n=e[0].intersectionRatio;if(!bt(c,t.getBoundingClientRect()))return l();if(n!==a){if(!g)return l();n?l(!1,n):i=setTimeout((()=>{l(!1,1e-7)}),1e3)}g=!1}try{o=new IntersectionObserver(x,{...w,root:r.ownerDocument})}catch(t){o=new IntersectionObserver(x,w)}o.observe(t)}const a=q(t),c=()=>l(n);return a.addEventListener("resize",c),l(!0),()=>{a.removeEventListener("resize",c),s()}}(c,n,r):null;let m,y=-1,w=null;s&&(w=new ResizeObserver((t=>{let[i]=t;i&&i.target===c&&w&&e&&(w.unobserve(e),cancelAnimationFrame(y),y=requestAnimationFrame((()=>{var t;null==(t=w)||t.observe(e)}))),n()})),c&&!a&&w.observe(c),e&&w.observe(e));let g=a?ht(t):null;return a&&function e(){const i=ht(t);g&&!bt(g,i)&&n(),g=i,m=requestAnimationFrame(e)}(),n(),()=>{var t;u.forEach((t=>{o&&t.removeEventListener("scroll",n),r&&t.removeEventListener("resize",n)})),null==f||f(),null==(t=w)||t.disconnect(),w=null,a&&cancelAnimationFrame(m)}}const Tt=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:i,placement:o,platform:r}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:a={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...c}=x(t,e),u={x:n,y:i},f=await r.detectOverflow(e,c),h=S(o),d=A(h);let m=u[d],p=u[h];const y=(t,e)=>g(e+f["y"===t?"top":"left"],e,e-f["y"===t?"bottom":"right"]);s&&(m=y(d,m)),l&&(p=y(h,p));const w=a.fn({...e,[d]:m,[h]:p});return{...w,data:{x:w.x-n,y:w.y-i,enabled:{[d]:s,[h]:l}}}}}},St=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,i;const{placement:o,middlewareData:r,rects:s,initialPlacement:l,platform:a,elements:c}=e,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:p=!0,...y}=x(t,e);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const w=v(o),g=S(l),A=v(l)===l,C=await(null==a.isRTL?void 0:a.isRTL(c.floating)),j=h||(A||!p?[z(l)]:function(t){const e=z(t);return[R(t),e,R(e)]}(l)),P="none"!==m;!h&&P&&j.push(...function(t,e,n,i){const o=b(t);let r=function(t,e,n){switch(t){case"top":case"bottom":return n?e?F:O:e?O:F;case"left":case"right":return e?E:L;default:return[]}}(v(t),"start"===n,i);return o&&(r=r.map((t=>t+"-"+o)),e&&(r=r.concat(r.map(R)))),r}(l,p,m,C));const D=[l,...j],M=await a.detectOverflow(e,y),$=[];let B=(null==(i=r.flip)?void 0:i.overflows)||[];if(u&&$.push(M[w]),f){const t=function(t,e,n){void 0===n&&(n=!1);const i=b(t),o=k(t),r=T(o);let s="x"===o?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=z(s)),[s,z(s)]}(o,s,C);$.push(M[t[0]],M[t[1]])}if(B=[...B,{placement:o,overflows:$}],!$.every((t=>t<=0))){var q,H;const t=((null==(q=r.flip)?void 0:q.index)||0)+1,e=D[t];if(e&&("alignment"!==f||g===S(e)||B.every((t=>S(t.placement)!==g||t.overflows[0]>0))))return{data:{index:t,overflows:B},reset:{placement:e}};let n=null==(H=B.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:H.placement;if(!n)switch(d){case"bestFit":{var I;const t=null==(I=B.filter((t=>{if(P){const e=S(t.placement);return e===g||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:I[0];t&&(n=t);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}},kt=async({floatingElement:e,referenceElement:n,arrowElement:i,align:o="top"})=>{var r,s,l;if(!t()){const t=[(l=(null==i?void 0:i.offsetHeight)||10,void 0===l&&(l=0),{name:"offset",options:l,async fn(t){var e,n;const{x:i,y:o,placement:r,middlewareData:s}=t,a=await async function(t,e){const{placement:n,platform:i,elements:o}=t,r=await(null==i.isRTL?void 0:i.isRTL(o.floating)),s=v(n),l=b(n),a="y"===S(n),c=M.has(s)?-1:1,u=r&&a?-1:1,f=x(e,t);let{mainAxis:h,crossAxis:d,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&"number"==typeof m&&(d="end"===l?-1*m:m),a?{x:d*u,y:h*c}:{x:h*c,y:d*u}}(t,l);return r===(null==(e=s.offset)?void 0:e.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:i+a.x,y:o+a.y,data:{...a,placement:r}}}}),St(),Tt()];i&&t.push((t=>({name:"arrow",options:t,async fn(e){const{x:n,y:i,placement:o,rects:r,platform:s,elements:l,middlewareData:a}=e,{element:c,padding:u=0}=x(t,e)||{};if(null==c)return{};const f=C(u),d={x:n,y:i},m=k(o),p=T(m),y=await s.getDimensions(c),w="y"===m,v=w?"top":"left",A=w?"bottom":"right",S=w?"clientHeight":"clientWidth",R=r.reference[p]+r.reference[m]-d[m]-r.floating[p],O=d[m]-r.reference[m],F=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let E=F?F[S]:0;E&&await(null==s.isElement?void 0:s.isElement(F))||(E=l.floating[S]||r.floating[p]);const L=R/2-O/2,z=E/2-y[p]/2-1,j=h(f[v],z),P=h(f[A],z),D=E-y[p]-P,M=E/2-y[p]/2+L,$=g(j,M,D),B=!a.arrow&&null!=b(o)&&M!==$&&r.reference[p]/2-(M<j?j:P)-y[p]/2<0,q=B?M<j?M-j:M-D:0;return{[m]:d[m]+q,data:{[m]:$,centerOffset:M-$-q,...B&&{alignmentOffset:q}},reset:B}}}))({element:i}));const{x:a,y:c,middlewareData:u,placement:f}=await((t,e,n)=>{const i=new Map,o=null!=n?n:{},r={...vt,...o.platform,_c:i};return(async(t,e,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:s}=n,l=s.detectOverflow?s:{...s,detectOverflow:D},a=await(null==s.isRTL?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:u,y:f}=P(c,i,a),h=i,d=0;const m={};for(let n=0;n<r.length;n++){const p=r[n];if(!p)continue;const{name:y,fn:w}=p,{x:g,y:x,data:v,reset:b}=await w({x:u,y:f,initialPlacement:i,placement:h,strategy:o,middlewareData:m,rects:c,platform:l,elements:{reference:t,floating:e}});u=null!=g?g:u,f=null!=x?x:f,m[y]={...m[y],...v},b&&d<50&&(d++,"object"==typeof b&&(b.placement&&(h=b.placement),b.rects&&(c=!0===b.rects?await s.getElementRects({reference:t,floating:e,strategy:o}):b.rects),({x:u,y:f}=P(c,h,a))),n=-1)}return{x:u,y:f,placement:h,strategy:o,middlewareData:m}})(t,e,{...o,platform:r})})(n,e,{placement:o,middleware:t,strategy:"fixed"});Object.assign(e.style,{left:`${a}px`,top:`${c}px`,visibility:"visible"}),i&&((null===(r=u.arrow)||void 0===r?void 0:r.x)?Object.assign(i.style,{left:`${u.arrow.x}px`,top:"bottom"===f?-i.offsetHeight/2+"px":"",bottom:"top"===f?-i.offsetHeight/2+"px":""}):(null===(s=u.arrow)||void 0===s?void 0:s.y)&&Object.assign(i.style,{left:"right"===f?-i.offsetWidth/2+"px":"",right:"left"===f?-i.offsetWidth/2+"px":"",top:`${u.arrow.y}px`}))}},Rt=new Set;let Ot=null;class Ft{constructor(t,e){this.setState=t.setState,this.getState=t.getState,this.renderProps=l(e)}setRenderProp(t,e){this.renderProps[t]=e}getRenderProp(t){return this.renderProps[t]}}const Et={required:[a],optional:[c,u,f]};class Lt extends Ft{constructor(t){super(t,Et),this.hasFocusIn=!1,this.hasMouseIn=!1,this.isHiddenForCurrentVisit=!1,this.setTooltipElementRef=t=>{this.tooltipElement=t,this.tooltipElement&&this.addListeners(this.tooltipElement)},this.hideTooltipByEscape=t=>{"Escape"===t.key&&(t.stopPropagation(),t.preventDefault(),this.hideTooltip())},this.handleMouseEnter=()=>{const t=this.isNewVisit();this.hasMouseIn=!0,t&&(this.isHiddenForCurrentVisit=!1),this.showOrHideTooltip()},this.handleMouseLeave=()=>{this.hasMouseIn=!1,this.resetHideFlag(),this.showOrHideTooltip()},this.handleFocusIn=()=>{const t=this.isNewVisit();this.hasFocusIn=!0,t&&(this.isHiddenForCurrentVisit=!1),this.showOrHideTooltip()},this.handleFocusOut=()=>{this.hasFocusIn=!1,this.resetHideFlag(),this.showOrHideTooltip()}}componentWillLoad(t){this.watchLabel(t.label),this.watchAlign(t.align),this.watchBadgeText(t.badgeText),this.watchId(t.id)}watchLabel(t){a.apply(t,(t=>{this.setRenderProp("label",t)}))}watchAlign(t){c.apply(t,(t=>{this.setRenderProp("align",t)}))}watchBadgeText(t){u.apply(t,(t=>{this.setRenderProp("badgeText",t)}))}watchId(t){f.apply(t,(t=>{this.setRenderProp("id",t)}))}initContext(t){this.previousSibling=t}syncListeners(t,e,n=!1){t&&this.removeListeners(t),e&&(n&&(this.previousSibling=e),this.addListeners(e))}handleEventListeners(t){this.syncListeners(this.previousSibling,t.previousElementSibling,!0)}hideTooltip(){this.isHiddenForCurrentVisit=!0,this.tooltipElement&&(function(t){if(Rt.delete(t)&&Ot===t){Ot=null;for(const t of Rt)Ot=t;Ot&&Ot.style.setProperty("z-index","1000")}}(this.tooltipElement),n(),this.tooltipElement.classList.remove("show"),this.tooltipElement.classList.add("hide"),this.tooltipElement.addEventListener("animationend",(()=>{var t;(null===(t=this.tooltipElement)||void 0===t?void 0:t.classList.contains("hide"))&&this.tooltipElement.style.removeProperty("display")}),{once:!0}),this.cleanupAutoPositioning&&(this.cleanupAutoPositioning(),this.cleanupAutoPositioning=void 0)),e().removeEventListener("keydown",this.hideTooltipByEscape)}destroy(){clearTimeout(this.overFocusTimeout),this.previousSibling&&(this.removeListeners(this.previousSibling),this.previousSibling=void 0),this.tooltipElement&&this.removeListeners(this.tooltipElement),this.cleanupAutoPositioning&&(this.cleanupAutoPositioning(),this.cleanupAutoPositioning=void 0),e().removeEventListener("keydown",this.hideTooltipByEscape)}isNewVisit(){return!this.hasMouseIn&&!this.hasFocusIn}resetHideFlag(){this.isNewVisit()&&(this.isHiddenForCurrentVisit=!1)}async alignTooltip(){this.tooltipElement&&this.previousSibling&&await kt({align:this.getRenderProp("align"),arrowElement:this.tooltipElement.querySelector(".kol-tooltip__arrow"),floatingElement:this.tooltipElement,referenceElement:this.previousSibling})}showTooltip(){var t;!this.isHiddenForCurrentVisit&&this.previousSibling&&this.tooltipElement&&(Ot!==(t=this.tooltipElement)&&(Ot&&Ot.style.setProperty("z-index","999"),Rt.delete(t),Rt.add(t),t.style.setProperty("z-index","1000"),Ot=t),i(),this.tooltipElement.classList.remove("hide"),this.tooltipElement.classList.add("show"),this.tooltipElement.style.setProperty("display","block"),e().addEventListener("keydown",this.hideTooltipByEscape),this.cleanupAutoPositioning=At(this.previousSibling,this.tooltipElement,(()=>{this.alignTooltip()})))}showOrHideTooltip(){clearTimeout(this.overFocusTimeout),this.overFocusTimeout=setTimeout((()=>{this.hasMouseIn||this.hasFocusIn?this.showTooltip():this.hideTooltip()}),300)}addListeners(t){t.addEventListener("mouseover",this.handleMouseEnter),t.addEventListener("mouseout",this.handleMouseLeave),t.addEventListener("focusin",this.handleFocusIn),t.addEventListener("focusout",this.handleFocusOut)}removeListeners(t){t.removeEventListener("mouseover",this.handleMouseEnter),t.removeEventListener("mouseout",this.handleMouseLeave),t.removeEventListener("focusin",this.handleFocusIn),t.removeEventListener("focusout",this.handleFocusOut)}}export{Ft as B,Lt as T,c as a,kt as b,At as c,f as i}
4
+ import{N as t,G as e}from"./common.js";import{t as n,a as i}from"./tooltip-open-tracking.js";import{f as o}from"./component6.js";import{c as r,d as s,e as l}from"./base-web-component.js";import{i as a}from"./id.js";import{l as c}from"./label-lang-segment.js";const u=o("align","top"),f=r("badgeText","",s),h=Math.min,d=Math.max,m=Math.round,p=Math.floor,y=t=>({x:t,y:t}),w={left:"right",right:"left",bottom:"top",top:"bottom"};function g(t,e,n){return d(t,h(e,n))}function x(t,e){return"function"==typeof t?t(e):t}function v(t){return t.split("-")[0]}function b(t){return t.split("-")[1]}function A(t){return"x"===t?"y":"x"}function T(t){return"y"===t?"height":"width"}function S(t){const e=t[0];return"t"===e||"b"===e?"y":"x"}function k(t){return A(S(t))}function R(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const O=["left","right"],F=["right","left"],E=["top","bottom"],L=["bottom","top"];function j(t){const e=v(t);return w[e]+t.slice(e.length)}function z(t){return"number"!=typeof t?function(t){var e,n,i,o;return{top:null!=(e=t.top)?e:0,right:null!=(n=t.right)?n:0,bottom:null!=(i=t.bottom)?i:0,left:null!=(o=t.left)?o:0}}(t):{top:t,right:t,bottom:t,left:t}}function C(t){const{x:e,y:n,width:i,height:o}=t;return{width:i,height:o,top:n,left:e,right:e+i,bottom:n+o,x:e,y:n}}function P(t,e,n){let{reference:i,floating:o}=t;const r=S(e),s=k(e),l=T(s),a=v(e),c="y"===r,u=i.x+i.width/2-o.width/2,f=i.y+i.height/2-o.height/2,h=i[l]/2-o[l]/2;let d;switch(a){case"top":d={x:u,y:i.y-o.height};break;case"bottom":d={x:u,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:f};break;case"left":d={x:i.x-o.width,y:f};break;default:d={x:i.x,y:i.y}}const m=b(e);return m&&(d[s]+=h*("end"===m?1:-1)*(n&&c?-1:1)),d}async function D(t,e){var n;void 0===e&&(e={});const{x:i,y:o,platform:r,rects:s,elements:l,strategy:a}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:h=!1,padding:d=0}=x(e,t),m=z(d),p=l[h?"floating"===f?"reference":"floating":f],y=C(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(p)))||n?p:p.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:a})),w="floating"===f?{x:i,y:o,width:s.floating.width,height:s.floating.height}:s.reference,g=await(null==r.getOffsetParent?void 0:r.getOffsetParent(l.floating)),v=await(null==r.isElement?void 0:r.isElement(g))&&await(null==r.getScale?void 0:r.getScale(g))||{x:1,y:1},b=C(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:g,strategy:a}):w);return{top:(y.top-b.top+m.top)/v.y,bottom:(b.bottom-y.bottom+m.bottom)/v.y,left:(y.left-b.left+m.left)/v.x,right:(b.right-y.right+m.right)/v.x}}const M=new Set(["left","top"]);function $(){return"undefined"!=typeof window}function B(t){return I(t)?(t.nodeName||"").toLowerCase():"#document"}function N(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function H(t){var e;return null==(e=(I(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function I(t){return!!$()&&(t instanceof Node||t instanceof N(t).Node)}function V(t){return!!$()&&(t instanceof Element||t instanceof N(t).Element)}function q(t){return!!$()&&(t instanceof HTMLElement||t instanceof N(t).HTMLElement)}function _(t){return!(!$()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof N(t).ShadowRoot)}function W(t){const{overflow:e,overflowX:n,overflowY:i,display:o}=et(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&"inline"!==o&&"contents"!==o}function G(t){return/^(table|td|th)$/.test(B(t))}function X(t){try{if(t.matches(":popover-open"))return!0}catch(t){}try{return t.matches(":modal")}catch(t){return!1}}const Y=/transform|translate|scale|rotate|perspective|filter/,J=/paint|layout|strict|content/,K=t=>!!t&&"none"!==t;let Q;function U(t){const e=V(t)?et(t):t;return K(e.transform)||K(e.translate)||K(e.scale)||K(e.rotate)||K(e.perspective)||!Z()&&(K(e.backdropFilter)||K(e.filter))||Y.test(e.willChange||"")||J.test(e.contain||"")}function Z(){return null==Q&&(Q="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Q}function tt(t){return/^(html|body|#document)$/.test(B(t))}function et(t){return N(t).getComputedStyle(t)}function nt(t){return V(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function it(t){if("html"===B(t))return t;const e=t.assignedSlot||t.parentNode||_(t)&&t.host||H(t);return _(e)?e.host:e}function ot(t){const e=it(t);return tt(e)?(t.ownerDocument||t).body:q(e)&&W(e)?e:ot(e)}function rt(t,e,n){var i;void 0===e&&(e=[]),void 0===n&&(n=!0);const o=ot(t),r=o===(null==(i=t.ownerDocument)?void 0:i.body),s=N(o);if(r){const t=st(s);return e.concat(s,s.visualViewport||[],W(o)?o:[],t&&n?rt(t):[])}return e.concat(o,rt(o,[],n))}function st(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function lt(t){const e=et(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const o=q(t),r=o?t.offsetWidth:n,s=o?t.offsetHeight:i,l=m(n)!==r||m(i)!==s;return l&&(n=r,i=s),{width:n,height:i,$:l}}function at(t){return V(t)?t:t.contextElement}function ct(t){const e=at(t);if(!q(e))return y(1);const n=e.getBoundingClientRect(),{width:i,height:o,$:r}=lt(e);let s=(r?m(n.width):n.width)/i,l=(r?m(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}const ut=y(0);function ft(t){const e=N(t);return Z()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:ut}function ht(t,e,n,i){void 0===e&&(e=!1),void 0===n&&(n=!1);const o=t.getBoundingClientRect(),r=at(t);let s=y(1);e&&(i?V(i)&&(s=ct(i)):s=ct(t));const l=function(t,e,n){return void 0===e&&(e=!1),!!n&&e&&n===N(t)}(r,n,i)?ft(r):y(0);let a=(o.left+l.x)/s.x,c=(o.top+l.y)/s.y,u=o.width/s.x,f=o.height/s.y;if(r&&i){const t=N(r),e=V(i)?N(i):i;let n=t,o=st(n);for(;o&&e!==n;){const t=ct(o),e=o.getBoundingClientRect(),i=et(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,s=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;a*=t.x,c*=t.y,u*=t.x,f*=t.y,a+=r,c+=s,n=N(o),o=st(n)}}return C({width:u,height:f,x:a,y:c})}function dt(t,e){const n=nt(t).scrollLeft;return e?e.left+n:ht(H(t)).left+n}function mt(t,e){const n=t.getBoundingClientRect();return{x:n.left+e.scrollLeft-dt(t,n),y:n.top+e.scrollTop}}function pt(t,e,n){let i;if("viewport"===e||"layoutViewport"===e)i=function(t,e,n){void 0===n&&(n="viewport");const i="layoutViewport"===n,o=N(t),r=H(t),s=o.visualViewport;let l=r.clientWidth,a=r.clientHeight,c=0,u=0;if(s){const t=!Z()||"fixed"===e;i?t||(c=-s.offsetLeft,u=-s.offsetTop):(l=s.width,a=s.height,t&&(c=s.offsetLeft,u=s.offsetTop))}if(dt(r)<=0){const t=r.ownerDocument,e=t.body,n=getComputedStyle(e),i="CSS1Compat"===t.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-e.clientWidth-i),s="stable both-edges"===getComputedStyle(r).scrollbarGutter?o/2:o;s<=25&&(l-=s)}return{width:l,height:a,x:c,y:u}}(t,n,e);else if("document"===e)i=function(t){const e=nt(t),n=t.ownerDocument.body,i=d(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=d(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let r=-e.scrollLeft+dt(t);const s=-e.scrollTop;return"rtl"===et(n).direction&&(r+=d(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:r,y:s}}(H(t));else if(V(e))i=function(t,e){const n=ht(t,!0,"fixed"===e),i=n.top+t.clientTop,o=n.left+t.clientLeft,r=ct(t);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:o*r.x,y:i*r.y}}(e,n);else{const n=ft(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return C(i)}function yt(t,e,n){const i=q(e),o=H(e),r="fixed"===n,s=ht(t,!0,r,e);let l={scrollLeft:0,scrollTop:0};const a=y(0);if((i||!r)&&(("body"!==B(e)||W(o))&&(l=nt(e)),i)){const t=ht(e,!0,r,e);a.x=t.x+e.clientLeft,a.y=t.y+e.clientTop}!i&&o&&(a.x=dt(o));const c=!o||i||r?y(0):mt(o,l);return{x:s.left+l.scrollLeft-a.x-c.x,y:s.top+l.scrollTop-a.y-c.y,width:s.width,height:s.height}}function wt(t){return"static"===et(t).position}function gt(t,e){if(!q(t)||"fixed"===et(t).position)return null;if(e)return e(t);let n=t.offsetParent;return H(t)===n&&(n=n.ownerDocument.body),n}function xt(t,e){const n=N(t);if(X(t))return n;if(!q(t)){let e=it(t);for(;e&&!tt(e);){if(V(e)&&!wt(e))return e;e=it(e)}return n}let i=gt(t,e);for(;i&&G(i)&&wt(i);)i=gt(i,e);return i&&tt(i)&&wt(i)&&!U(i)?n:i||function(t){let e=it(t);for(;q(e)&&!tt(e);){if(U(e))return e;if(X(e))return null;e=it(e)}return null}(t)||n}const vt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:i,strategy:o}=t;const r="fixed"===o,s=H(i),l=!!e&&X(e.floating);if(i===s||l&&r)return n;let a={scrollLeft:0,scrollTop:0},c=y(1);const u=y(0),f=q(i);if((f||!r)&&(("body"!==B(i)||W(s))&&(a=nt(i)),f)){const t=ht(i);c=ct(i),u.x=t.x+i.clientLeft,u.y=t.y+i.clientTop}const h=!s||f||r?y(0):mt(s,a);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-a.scrollTop*c.y+u.y+h.y}},getDocumentElement:H,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t;const r=[..."clippingAncestors"===n?X(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let i=rt(t,[],!1).filter((t=>V(t)&&"body"!==B(t))),o=null;const r="fixed"===et(t).position;let s=r?it(t):t;for(;V(s)&&!tt(s);){const t=et(s),e=U(s),n=o?o.position:r?"fixed":"";e||"fixed"!==n&&("absolute"!==n||"static"!==t.position)?o=t:i=i.filter((t=>t!==s)),s=it(s)}return e.set(t,i),i}(e,this._c):[].concat(n),i],s=pt(e,r[0],o);let l=s.top,a=s.right,c=s.bottom,u=s.left;for(let t=1;t<r.length;t++){const n=pt(e,r[t],o);l=d(n.top,l),a=h(n.right,a),c=h(n.bottom,c),u=d(n.left,u)}return{width:a-u,height:c-l,x:u,y:l}},getOffsetParent:xt,getElementRects:async function(t){const e=this.getOffsetParent||xt,n=this.getDimensions,i=await n(t.floating);return{reference:yt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},getClientRects:function(t){return t.getClientRects?Array.from(t.getClientRects()):[]},getDimensions:function(t){const{width:e,height:n}=lt(t);return{width:e,height:n}},getScale:ct,isElement:V,isRTL:function(t){return"rtl"===et(t).direction}};function bt(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function At(t,e,n,i){void 0===i&&(i={});const{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:a=!1}=i,c=at(t),u=o||r?[...c?rt(c):[],...e?rt(e):[]]:[];u.forEach((t=>{o&&t.addEventListener("scroll",n),r&&t.addEventListener("resize",n)}));const f=c&&l?function(t,e,n){let i,o=null;const r=H(t);function s(){var t;clearTimeout(i),null==(t=o)||t.disconnect(),o=null}function l(n,a){void 0===n&&(n=!1),void 0===a&&(a=1),s();const c=t.getBoundingClientRect(),{left:u,top:f,width:m,height:y}=c;if(n||e(),!m||!y)return;const w={rootMargin:-p(f)+"px "+-p(r.clientWidth-(u+m))+"px "+-p(r.clientHeight-(f+y))+"px "+-p(u)+"px",threshold:d(0,h(1,a))||1};let g=!0;function x(e){const n=e[0].intersectionRatio;if(!bt(c,t.getBoundingClientRect()))return l();if(n!==a){if(!g)return l();n?l(!1,n):i=setTimeout((()=>{l(!1,1e-7)}),1e3)}g=!1}try{o=new IntersectionObserver(x,{...w,root:r.ownerDocument})}catch(t){o=new IntersectionObserver(x,w)}o.observe(t)}const a=N(t),c=()=>l(n);return a.addEventListener("resize",c),l(!0),()=>{a.removeEventListener("resize",c),s()}}(c,n,r):null;let m,y=-1,w=null;s&&(w=new ResizeObserver((t=>{let[i]=t;i&&i.target===c&&w&&e&&(w.unobserve(e),cancelAnimationFrame(y),y=requestAnimationFrame((()=>{var t;null==(t=w)||t.observe(e)}))),n()})),c&&!a&&w.observe(c),e&&w.observe(e));let g=a?ht(t):null;return a&&function e(){const i=ht(t);g&&!bt(g,i)&&n(),g=i,m=requestAnimationFrame(e)}(),n(),()=>{var t;u.forEach((t=>{o&&t.removeEventListener("scroll",n),r&&t.removeEventListener("resize",n)})),null==f||f(),null==(t=w)||t.disconnect(),w=null,a&&cancelAnimationFrame(m)}}const Tt=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:i,placement:o,platform:r}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:a={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...c}=x(t,e),u={x:n,y:i},f=await r.detectOverflow(e,c),h=S(o),d=A(h);let m=u[d],p=u[h];const y=(t,e)=>g(e+f["y"===t?"top":"left"],e,e-f["y"===t?"bottom":"right"]);s&&(m=y(d,m)),l&&(p=y(h,p));const w=a.fn({...e,[d]:m,[h]:p});return{...w,data:{x:w.x-n,y:w.y-i,enabled:{[d]:s,[h]:l}}}}}},St=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,i;const{placement:o,middlewareData:r,rects:s,initialPlacement:l,platform:a,elements:c}=e,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:p=!0,...y}=x(t,e);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const w=v(o),g=S(l),A=v(l)===l,z=await(null==a.isRTL?void 0:a.isRTL(c.floating)),C=h||(A||!p?[j(l)]:function(t){const e=j(t);return[R(t),e,R(e)]}(l)),P="none"!==m;!h&&P&&C.push(...function(t,e,n,i){const o=b(t);let r=function(t,e,n){switch(t){case"top":case"bottom":return n?e?F:O:e?O:F;case"left":case"right":return e?E:L;default:return[]}}(v(t),"start"===n,i);return o&&(r=r.map((t=>t+"-"+o)),e&&(r=r.concat(r.map(R)))),r}(l,p,m,z));const D=[l,...C],M=await a.detectOverflow(e,y),$=[];let B=(null==(i=r.flip)?void 0:i.overflows)||[];if(u&&$.push(M[w]),f){const t=function(t,e,n){void 0===n&&(n=!1);const i=b(t),o=k(t),r=T(o);let s="x"===o?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=j(s)),[s,j(s)]}(o,s,z);$.push(M[t[0]],M[t[1]])}if(B=[...B,{placement:o,overflows:$}],!$.every((t=>t<=0))){var N,H;const t=((null==(N=r.flip)?void 0:N.index)||0)+1,e=D[t];if(e&&("alignment"!==f||g===S(e)||B.every((t=>S(t.placement)!==g||t.overflows[0]>0))))return{data:{index:t,overflows:B},reset:{placement:e}};let n=null==(H=B.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:H.placement;if(!n)switch(d){case"bestFit":{var I;const t=null==(I=B.filter((t=>{if(P){const e=S(t.placement);return e===g||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:I[0];t&&(n=t);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}},kt=async({floatingElement:e,referenceElement:n,arrowElement:i,align:o="top"})=>{var r,s,l;if(!t()){const t=[(l=(null==i?void 0:i.offsetHeight)||10,void 0===l&&(l=0),{name:"offset",options:l,async fn(t){var e,n;const{x:i,y:o,placement:r,middlewareData:s}=t,a=await async function(t,e){const{placement:n,platform:i,elements:o}=t,r=await(null==i.isRTL?void 0:i.isRTL(o.floating)),s=v(n),l=b(n),a="y"===S(n),c=M.has(s)?-1:1,u=r&&a?-1:1,f=x(e,t);let{mainAxis:h,crossAxis:d,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&"number"==typeof m&&(d="end"===l?-1*m:m),a?{x:d*u,y:h*c}:{x:h*c,y:d*u}}(t,l);return r===(null==(e=s.offset)?void 0:e.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:i+a.x,y:o+a.y,data:{...a,placement:r}}}}),St(),Tt()];i&&t.push((t=>({name:"arrow",options:t,async fn(e){const{x:n,y:i,placement:o,rects:r,platform:s,elements:l,middlewareData:a}=e,{element:c,padding:u=0}=x(t,e)||{};if(null==c)return{};const f=z(u),d={x:n,y:i},m=k(o),p=T(m),y=await s.getDimensions(c),w="y"===m,v=w?"top":"left",A=w?"bottom":"right",S=w?"clientHeight":"clientWidth",R=r.reference[p]+r.reference[m]-d[m]-r.floating[p],O=d[m]-r.reference[m],F=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let E=F?F[S]:0;E&&await(null==s.isElement?void 0:s.isElement(F))||(E=l.floating[S]||r.floating[p]);const L=R/2-O/2,j=E/2-y[p]/2-1,C=h(f[v],j),P=h(f[A],j),D=E-y[p]-P,M=E/2-y[p]/2+L,$=g(C,M,D),B=!a.arrow&&null!=b(o)&&M!==$&&r.reference[p]/2-(M<C?C:P)-y[p]/2<0,N=B?M<C?M-C:M-D:0;return{[m]:d[m]+N,data:{[m]:$,centerOffset:M-$-N,...B&&{alignmentOffset:N}},reset:B}}}))({element:i}));const{x:a,y:c,middlewareData:u,placement:f}=await((t,e,n)=>{const i=new Map,o=null!=n?n:{},r={...vt,...o.platform,_c:i};return(async(t,e,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:s}=n,l=s.detectOverflow?s:{...s,detectOverflow:D},a=await(null==s.isRTL?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:u,y:f}=P(c,i,a),h=i,d=0;const m={};for(let n=0;n<r.length;n++){const p=r[n];if(!p)continue;const{name:y,fn:w}=p,{x:g,y:x,data:v,reset:b}=await w({x:u,y:f,initialPlacement:i,placement:h,strategy:o,middlewareData:m,rects:c,platform:l,elements:{reference:t,floating:e}});u=null!=g?g:u,f=null!=x?x:f,m[y]={...m[y],...v},b&&d<50&&(d++,"object"==typeof b&&(b.placement&&(h=b.placement),b.rects&&(c=!0===b.rects?await s.getElementRects({reference:t,floating:e,strategy:o}):b.rects),({x:u,y:f}=P(c,h,a))),n=-1)}return{x:u,y:f,placement:h,strategy:o,middlewareData:m}})(t,e,{...o,platform:r})})(n,e,{placement:o,middleware:t,strategy:"fixed"});Object.assign(e.style,{left:`${a}px`,top:`${c}px`,visibility:"visible"}),i&&((null===(r=u.arrow)||void 0===r?void 0:r.x)?Object.assign(i.style,{left:`${u.arrow.x}px`,top:"bottom"===f?-i.offsetHeight/2+"px":"",bottom:"top"===f?-i.offsetHeight/2+"px":""}):(null===(s=u.arrow)||void 0===s?void 0:s.y)&&Object.assign(i.style,{left:"right"===f?-i.offsetWidth/2+"px":"",right:"left"===f?-i.offsetWidth/2+"px":"",top:`${u.arrow.y}px`}))}},Rt=new Set;let Ot=null;class Ft{constructor(t,e){this.setState=t.setState,this.getState=t.getState,this.renderProps=l(e)}setRenderProp(t,e){this.renderProps[t]=e}getRenderProp(t){return this.renderProps[t]}}const Et={required:[c],optional:[u,f,a]};class Lt extends Ft{constructor(t){super(t,Et),this.hasFocusIn=!1,this.hasMouseIn=!1,this.isHiddenForCurrentVisit=!1,this.setTooltipElementRef=t=>{this.tooltipElement=t,this.tooltipElement&&this.addListeners(this.tooltipElement)},this.hideTooltipByEscape=t=>{"Escape"===t.key&&(t.stopPropagation(),t.preventDefault(),this.hideTooltip())},this.handleMouseEnter=()=>{const t=this.isNewVisit();this.hasMouseIn=!0,t&&(this.isHiddenForCurrentVisit=!1),this.showOrHideTooltip()},this.handleMouseLeave=()=>{this.hasMouseIn=!1,this.resetHideFlag(),this.showOrHideTooltip()},this.handleFocusIn=()=>{const t=this.isNewVisit();this.hasFocusIn=!0,t&&(this.isHiddenForCurrentVisit=!1),this.showOrHideTooltip()},this.handleFocusOut=()=>{this.hasFocusIn=!1,this.resetHideFlag(),this.showOrHideTooltip()}}componentWillLoad(t){this.watchLabel(t.label),this.watchAlign(t.align),this.watchBadgeText(t.badgeText),this.watchId(t.id)}watchLabel(t){c.apply(t||void 0,(t=>{this.setRenderProp("label",t)}))}watchAlign(t){u.apply(t,(t=>{this.setRenderProp("align",t)}))}watchBadgeText(t){f.apply(t,(t=>{this.setRenderProp("badgeText",t)}))}watchId(t){a.apply(t,(t=>{this.setRenderProp("id",t)}))}initContext(t){this.previousSibling=t}syncListeners(t,e,n=!1){t&&this.removeListeners(t),e&&(n&&(this.previousSibling=e),this.removeListeners(e),this.addListeners(e))}handleEventListeners(t){this.syncListeners(this.previousSibling,t.previousElementSibling,!0)}hideTooltip(){this.isHiddenForCurrentVisit=!0,this.tooltipElement&&(function(t){if(Rt.delete(t)&&Ot===t){Ot=null;for(const t of Rt)Ot=t;Ot&&Ot.style.setProperty("z-index","1000")}}(this.tooltipElement),n(),this.tooltipElement.classList.remove("show"),this.tooltipElement.classList.add("hide"),this.tooltipElement.addEventListener("animationend",(()=>{var t;(null===(t=this.tooltipElement)||void 0===t?void 0:t.classList.contains("hide"))&&this.tooltipElement.style.removeProperty("display")}),{once:!0}),this.cleanupAutoPositioning&&(this.cleanupAutoPositioning(),this.cleanupAutoPositioning=void 0)),e().removeEventListener("keydown",this.hideTooltipByEscape)}destroy(){clearTimeout(this.overFocusTimeout),this.previousSibling&&(this.removeListeners(this.previousSibling),this.previousSibling=void 0),this.tooltipElement&&this.removeListeners(this.tooltipElement),this.cleanupAutoPositioning&&(this.cleanupAutoPositioning(),this.cleanupAutoPositioning=void 0),e().removeEventListener("keydown",this.hideTooltipByEscape)}isNewVisit(){return!this.hasMouseIn&&!this.hasFocusIn}resetHideFlag(){this.isNewVisit()&&(this.isHiddenForCurrentVisit=!1)}async alignTooltip(){this.tooltipElement&&this.previousSibling&&await kt({align:this.getRenderProp("align"),arrowElement:this.tooltipElement.querySelector(".kol-tooltip__arrow"),floatingElement:this.tooltipElement,referenceElement:this.previousSibling})}showTooltip(){var t;!this.isHiddenForCurrentVisit&&this.previousSibling&&this.tooltipElement&&(Ot!==(t=this.tooltipElement)&&(Ot&&Ot.style.setProperty("z-index","999"),Rt.delete(t),Rt.add(t),t.style.setProperty("z-index","1000"),Ot=t),i(),this.tooltipElement.classList.remove("hide"),this.tooltipElement.classList.add("show"),this.tooltipElement.style.setProperty("display","block"),e().addEventListener("keydown",this.hideTooltipByEscape),this.cleanupAutoPositioning=At(this.previousSibling,this.tooltipElement,(()=>{this.alignTooltip()})))}showOrHideTooltip(){clearTimeout(this.overFocusTimeout),this.overFocusTimeout=setTimeout((()=>{this.hasMouseIn||this.hasFocusIn?this.showTooltip():this.hideTooltip()}),300)}addListeners(t){t.addEventListener("mouseover",this.handleMouseEnter),t.addEventListener("mouseout",this.handleMouseLeave),t.addEventListener("focusin",this.handleFocusIn),t.addEventListener("focusout",this.handleFocusOut)}removeListeners(t){t.removeEventListener("mouseover",this.handleMouseEnter),t.removeEventListener("mouseout",this.handleMouseLeave),t.removeEventListener("focusin",this.handleFocusIn),t.removeEventListener("focusout",this.handleFocusOut)}}export{Ft as B,Lt as T,u as a,kt as b,At as c}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{a as t}from"./dev.utils.js";import"./common.js";import{c as e,n as r,p as i,b as a,i as h}from"./base-web-component.js";import{B as n}from"./behavior.js";import{t as o}from"./i18n.js";const s=e("hasCounter",!1,r),c=e("maxLength",void 0,i,(t=>void 0===t||t>=0)),m=["hard","soft"],u=e("maxLengthBehavior","hard",(function(t){const e=a(t);if(h(e,m))return e;throw new Error(`Invalid max length behavior: ${e}`)})),g={optional:[s,c,u]},l=(t,e,r)=>{if("number"!=typeof e)return o("kol-character-counter-current",{placeholders:{current:String(r)}});if("soft"===t){const t=e-r;return t<0?o("kol-character-limit-exceeded",{placeholders:{over:String(Math.abs(t))}}):o("kol-character-limit-remaining",{placeholders:{remaining:String(t)}})}return o("kol-character-counter-current-of-max-aria",{placeholders:{current:String(r),max:String(e)}})},x=(t,e,r)=>"hard"===t&&"number"==typeof e&&r>=e?o("kol-character-counter-max-aria"):"";class d extends n{constructor(t){super(t,g),this.reannounceToggle=!1,this.setVisualRef=t=>{this.visualSpan=t},this.setAriaRef=t=>{this.ariaSpan=t},this.handleKeyDown=(t,e)=>{const{maxLength:r,maxLengthBehavior:i}=this.getLimit();"hard"!==i||"number"!=typeof r||e<r||(t=>1===t.key.length&&!t.ctrlKey&&!t.metaKey&&!t.altKey)(t)&&this.retriggerAria(e)}}componentWillLoad(t){this.watchHasCounter(t.hasCounter),this.watchMaxLength(t.maxLength),this.watchMaxLengthBehavior(t.maxLengthBehavior)}watchHasCounter(t){s.apply(t,(t=>this.setRenderProp("hasCounter",t)))}watchMaxLength(t){c.apply(t,(t=>this.setRenderProp("maxLength",t)))}watchMaxLengthBehavior(t){u.apply(t,(t=>this.setRenderProp("maxLengthBehavior",t)))}hasCounter(){return!0===this.getRenderProp("hasCounter")}hasSoftLimit(){const{maxLength:t,maxLengthBehavior:e}=this.getLimit();return"number"==typeof t&&"soft"===e}getMaxLengthAttribute(){const{maxLength:t,maxLengthBehavior:e}=this.getLimit();return"hard"===e?t:void 0}getCounterProps(){if(!this.hasCounter())return;const{maxLength:t,maxLengthBehavior:e}=this.getLimit();return{maxLength:t,maxLengthBehavior:e,visualRef:this.setVisualRef,ariaRef:this.setAriaRef}}getCharacterLimitHintId(e){return"number"!=typeof this.getRenderProp("maxLength")||this.hasCounter()?void 0:t(e,"character-limit-hint")}update(t){const e=this.getLimit();this.updateVisual(t,e),clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout((()=>this.updateAria(t,e)),1e3)}updateImmediate(t){const e=this.getLimit();this.updateVisual(t,e),clearTimeout(this.debounceTimer),this.updateAria(t,e)}retriggerAria(t){if(!this.ariaSpan)return;const e=this.getLimit();clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout((()=>this.updateAria(t,e,!0)),1e3)}destroy(){clearTimeout(this.debounceTimer)}getLimit(){return{maxLength:this.getRenderProp("maxLength"),maxLengthBehavior:this.getRenderProp("maxLengthBehavior")}}updateVisual(t,{maxLength:e,maxLengthBehavior:r}){this.visualSpan&&(this.visualSpan.innerText=((t,e,r)=>{if("number"!=typeof e)return o("kol-character-counter-current",{placeholders:{current:String(r)}});if("soft"===t){const t=e-r;return t<0?o("kol-character-limit-exceeded",{placeholders:{over:String(Math.abs(t))}}):o("kol-character-limit-remaining",{placeholders:{remaining:String(t)}})}return o("kol-character-counter-current-of-max",{placeholders:{current:String(r),max:String(e)}})})(r,e,t),this.visualSpan.classList.toggle("kol-form-field__counter--exceeded","soft"===r&&"number"==typeof e&&t>e))}updateAria(t,{maxLength:e,maxLengthBehavior:r},i=!1){if(!this.ariaSpan)return;let a=[l(r,e,t),x(r,e,t)].filter(Boolean).join(" ");i&&(this.reannounceToggle=!this.reannounceToggle,this.reannounceToggle&&(a+=" ")),this.ariaSpan.innerText=a}}export{d as C}
4
+ import"./common.js";import{a as t}from"./dev.utils.js";import{c as e,n as r,m as i,d as a,j as h}from"./base-web-component.js";import{B as n}from"./behavior.js";import{t as o}from"./i18n.js";const s=e("hasCounter",!1,r),c=e("maxLength",void 0,i,(t=>t>=0)),m=["hard","soft"],u=e("maxLengthBehavior","hard",(function(t){const e=a(t);if(h(e,m))return e;throw new Error(`Invalid max length behavior: ${e}`)})),g={optional:[s,c,u]},l=(t,e,r)=>{if("number"!=typeof e)return o("kol-character-counter-current",{placeholders:{current:String(r)}});if("soft"===t){const t=e-r;return t<0?o("kol-character-limit-exceeded",{placeholders:{over:String(Math.abs(t))}}):o("kol-character-limit-remaining",{placeholders:{remaining:String(t)}})}return o("kol-character-counter-current-of-max-aria",{placeholders:{current:String(r),max:String(e)}})},x=(t,e,r)=>"hard"===t&&"number"==typeof e&&r>=e?o("kol-character-counter-max-aria"):"";class d extends n{constructor(t){super(t,g),this.reannounceToggle=!1,this.setVisualRef=t=>{this.visualSpan=t},this.setAriaRef=t=>{this.ariaSpan=t},this.handleKeyDown=(t,e)=>{const{maxLength:r,maxLengthBehavior:i}=this.getLimit();"hard"!==i||"number"!=typeof r||e<r||(t=>1===t.key.length&&!t.ctrlKey&&!t.metaKey&&!t.altKey)(t)&&this.retriggerAria(e)}}componentWillLoad(t){this.watchHasCounter(t.hasCounter),this.watchMaxLength(t.maxLength),this.watchMaxLengthBehavior(t.maxLengthBehavior)}watchHasCounter(t){s.apply(t,(t=>this.setRenderProp("hasCounter",t)))}watchMaxLength(t){c.apply(t,(t=>this.setRenderProp("maxLength",t)))}watchMaxLengthBehavior(t){u.apply(t,(t=>this.setRenderProp("maxLengthBehavior",t)))}hasCounter(){return!0===this.getRenderProp("hasCounter")}hasSoftLimit(){const{maxLength:t,maxLengthBehavior:e}=this.getLimit();return"number"==typeof t&&"soft"===e}getMaxLengthAttribute(){const{maxLength:t,maxLengthBehavior:e}=this.getLimit();return"hard"===e?t:void 0}getCounterProps(){if(!this.hasCounter())return;const{maxLength:t,maxLengthBehavior:e}=this.getLimit();return{maxLength:t,maxLengthBehavior:e,visualRef:this.setVisualRef,ariaRef:this.setAriaRef}}getCharacterLimitHintId(e){return"number"!=typeof this.getRenderProp("maxLength")||this.hasCounter()?void 0:t(e,"character-limit-hint")}update(t){const e=this.getLimit();this.updateVisual(t,e),clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout((()=>this.updateAria(t,e)),1e3)}updateImmediate(t){const e=this.getLimit();this.updateVisual(t,e),clearTimeout(this.debounceTimer),this.updateAria(t,e)}retriggerAria(t){if(!this.ariaSpan)return;const e=this.getLimit();clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout((()=>this.updateAria(t,e,!0)),1e3)}destroy(){clearTimeout(this.debounceTimer)}getLimit(){return{maxLength:this.getRenderProp("maxLength"),maxLengthBehavior:this.getRenderProp("maxLengthBehavior")}}updateVisual(t,{maxLength:e,maxLengthBehavior:r}){this.visualSpan&&(this.visualSpan.innerText=((t,e,r)=>{if("number"!=typeof e)return o("kol-character-counter-current",{placeholders:{current:String(r)}});if("soft"===t){const t=e-r;return t<0?o("kol-character-limit-exceeded",{placeholders:{over:String(Math.abs(t))}}):o("kol-character-limit-remaining",{placeholders:{remaining:String(t)}})}return o("kol-character-counter-current-of-max",{placeholders:{current:String(r),max:String(e)}})})(r,e,t),this.visualSpan.classList.toggle("kol-form-field__counter--exceeded","soft"===r&&"number"==typeof e&&t>e))}updateAria(t,{maxLength:e,maxLengthBehavior:r},i=!1){if(!this.ariaSpan)return;let a=[l(r,e,t),x(r,e,t)].filter(Boolean).join(" ");i&&(this.reannounceToggle=!this.reannounceToggle,this.reannounceToggle&&(a+=" ")),this.ariaSpan.innerText=a}}export{d as C}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{g as t}from"./bootstrap.js";import{C as e,e as s,l as i}from"./common.js";import{a as o,r as a}from"./aria-labelledby.js";import{c as n,b as r}from"./base-web-component.js";import{n as l}from"./name.js";import{B as c}from"./behavior.js";const h=n("ariaDetails","",r),u=n("syncValueBySelector",void 0,r),d={optional:[h,l,u]},m=new Set(["KOL-COMBOBOX","KOL-INPUT-CHECKBOX","KOL-INPUT-COLOR","KOL-INPUT-DATE","KOL-INPUT-EMAIL","KOL-INPUT-FILE","KOL-INPUT-NUMBER","KOL-INPUT-PASSWORD","KOL-INPUT-RADIO","KOL-INPUT-RANGE","KOL-INPUT-TEXT","KOL-SELECT","KOL-SINGLE-SELECT","KOL-TEXTAREA"]);class f extends c{constructor(i,{host:a,type:n,name:r}){var l,c,h,u,f;super(i,d),this.experimentalMode=e(),this.setFormAssociatedValue=t=>{var e;const i=null===(e=this.formAssociated)||void 0===e?void 0:e.getAttribute("name");null!==i&&""!==i||s(` The form field (${this.type}) must have a name attribute to be form-associated. Please define the _name attribute.`);const o=this.tryToStringifyValue(t);this.syncValue(t,o,this.formAssociated),this.syncValue(t,o,this.syncToOwnInput)},this.host=this.findHostWithShadowRoot(a),this.type=n,this.internals=o(this.host),(null===(l=t())||void 0===l?void 0:l.reflectInputValues)&&m.has(null!==(h=null===(c=this.host)||void 0===c?void 0:c.tagName)&&void 0!==h?h:"")&&r&&(null===(u=this.host)||void 0===u||u.querySelectorAll("input,select,textarea").forEach((t=>{var e;null===(e=this.host)||void 0===e||e.removeChild(t)})),this.formAssociated=this.createFormAssociatedElement(),this.formAssociated.setAttribute("data-form-associated",""),this.formAssociated.setAttribute("hidden",""),null===(f=this.host)||void 0===f||f.appendChild(this.formAssociated))}componentWillLoad(t){this.watchName(t.name),this.watchSyncValueBySelector(t.syncValueBySelector),this.watchAriaDetails(t.ariaDetails)}watchAriaDetails(t){h.apply(t,(t=>this.setRenderProp("ariaDetails",t)));const e=a(this.host,t);if(this.internals)try{this.internals.ariaDetailsElements=e}catch(t){}}watchName(t){l.apply(t,(t=>{this.setRenderProp("name",t),this.setNameAttribute(t)})),void 0===t&&s("A name on input fields or switches is not strictly required, but it might be relevant for the autocomplete function and for the static submission of the input field.")}watchSyncValueBySelector(t){if(this.experimentalMode&&"string"==typeof t){this.setRenderProp("syncValueBySelector",t);const e=document.querySelector(t);e&&(this.syncToOwnInput=e)}}setNameAttribute(t){this.setAttribute("name",this.formAssociated,t)}createFormAssociatedElement(){switch(this.type){case"color":case"date":case"email":case"file":case"number":case"password":case"radio":case"range":case"text":{const t=document.createElement("input");return t.setAttribute("type",this.type),t}case"select":{const t=document.createElement("select");return t.setAttribute("multiple",""),t}case"textarea":return document.createElement("textarea");default:{const t=document.createElement("input");return t.setAttribute("type","hidden"),t}}}findHostWithShadowRoot(t){for(;null===(null==t?void 0:t.shadowRoot)&&t!==document.body;){const e=t.parentNode;t=11===(null==e?void 0:e.nodeType)&&"host"in e?e.host:1===(null==e?void 0:e.nodeType)?e:void 0}return t}setAttribute(t,e,s){if(this.experimentalMode)try{if("boolean"!=typeof(s="object"==typeof s&&null!==s?JSON.stringify(s):s)&&"number"!=typeof s&&"string"!=typeof s)throw new Error("Invalid value type: "+typeof s);null==e||e.setAttribute(t,`${s}`)}catch(s){null==e||e.removeAttribute(t)}}tryToStringifyValue(t){try{return"object"==typeof t&&null!==t?JSON.stringify(t).toString():null==t?null:t.toString()}catch(t){return i(`The form field raw value is not able to stringify! ${t}`),""}}syncValue(t,e,s){if(s)switch(this.type){case"file":"undefined"!=typeof FileList&&t instanceof FileList?s.files=t:s.value="";break;case"select":"SELECT"===s.tagName?this.syncSelectOptions(t,s):this.syncValueAttribute(e,s);break;case"radio":"string"==typeof e&&(s.setAttribute("value",e),s.setAttribute("checked",""),s.value=e);break;default:this.syncValueAttribute(e,s)}}syncSelectOptions(t,e){e.querySelectorAll("option").forEach((t=>{e.removeChild(t)})),(Array.isArray(t)?t:null==t?[]:[t]).forEach((t=>{const s=this.tryToStringifyValue(t);if("string"==typeof s){const t=document.createElement("option");t.setAttribute("value",s),t.setAttribute("selected",""),e.appendChild(t)}}))}syncValueAttribute(t,e){"string"==typeof t?(e.setAttribute("value",t),e.value=t):(e.removeAttribute("value"),e.value="")}}export{f as F,h as a}
4
+ import{W as t,l as e,t as s,v as i}from"./common.js";import{c as o}from"./bootstrap.js";import{c as n,d as a}from"./base-web-component.js";import{n as l}from"./component9.js";import{B as r}from"./behavior.js";const c=n("syncValueBySelector",void 0,a),u={optional:[l,c]},h=new Set(["KOL-COMBOBOX","KOL-INPUT-CHECKBOX","KOL-INPUT-COLOR","KOL-INPUT-DATE","KOL-INPUT-EMAIL","KOL-INPUT-FILE","KOL-INPUT-NUMBER","KOL-INPUT-PASSWORD","KOL-INPUT-RADIO","KOL-INPUT-RANGE","KOL-INPUT-TEXT","KOL-SELECT","KOL-SINGLE-SELECT","KOL-TEXTAREA"]);class d extends r{constructor(s,{host:i,type:o,name:n}){super(s,u),this.experimentalMode=t(),this.setFormAssociatedValue=t=>{var s;const i=null===(s=this.formAssociated)||void 0===s?void 0:s.getAttribute("name");null!==i&&""!==i||e(` The form field (${this.type}) must have a name attribute to be form-associated. Please define the _name attribute.`);const o=this.tryToStringifyValue(t);this.syncValue(t,o,this.formAssociated),this.syncValue(t,o,this.syncToOwnInput)},this.host=this.findHostWithShadowRoot(i),this.type=o,this.ensureFormAssociatedElement(n)}ensureFormAssociatedElement(t){var e,s,i,n,a;!this.formAssociated&&(null===(e=o())||void 0===e?void 0:e.reflectInputValues)&&h.has(null!==(i=null===(s=this.host)||void 0===s?void 0:s.tagName)&&void 0!==i?i:"")&&t&&(null===(n=this.host)||void 0===n||n.querySelectorAll("input,select,textarea").forEach((t=>{var e;null===(e=this.host)||void 0===e||e.removeChild(t)})),this.formAssociated=this.createFormAssociatedElement(),this.formAssociated.setAttribute("data-form-associated",""),this.formAssociated.setAttribute("hidden",""),this.setNameAttribute(t),null===(a=this.host)||void 0===a||a.appendChild(this.formAssociated))}componentWillLoad(t){this.watchName(t.name),this.watchSyncValueBySelector(t.syncValueBySelector)}watchName(t){l.apply(t,(t=>{this.setRenderProp("name",t),this.setNameAttribute(t)})),void 0!==t?this.ensureFormAssociatedElement(t):e("A name on input fields or switches is not strictly required, but it might be relevant for the autocomplete function and for the static submission of the input field.")}watchSyncValueBySelector(t){if(this.experimentalMode&&"string"==typeof t){this.setRenderProp("syncValueBySelector",t);const e=document.querySelector(t);e&&(this.syncToOwnInput=e)}}setNameAttribute(t){this.setAttribute("name",this.formAssociated,t)}createFormAssociatedElement(){switch(this.type){case"color":case"date":case"email":case"file":case"number":case"password":case"radio":case"range":case"text":{const t=document.createElement(s("input"));return t.setAttribute("type",this.type),t}case"select":{const t=document.createElement(s("select"));return t.setAttribute("multiple",""),t}case"textarea":return document.createElement(s("textarea"));default:{const t=document.createElement(s("input"));return t.setAttribute("type","hidden"),t}}}findHostWithShadowRoot(t){for(;null===(null==t?void 0:t.shadowRoot)&&t!==document.body;){const e=t.parentNode;t=11===(null==e?void 0:e.nodeType)&&"host"in e?e.host:1===(null==e?void 0:e.nodeType)?e:void 0}return t}setAttribute(t,e,s){if(this.experimentalMode)try{if("boolean"!=typeof(s="object"==typeof s&&null!==s?JSON.stringify(s):s)&&"number"!=typeof s&&"string"!=typeof s)throw new Error("Invalid value type: "+typeof s);null==e||e.setAttribute(t,`${s}`)}catch(s){null==e||e.removeAttribute(t)}}tryToStringifyValue(t){try{return"object"==typeof t&&null!==t?JSON.stringify(t).toString():null==t?null:t.toString()}catch(t){return i(`The form field raw value is not able to stringify! ${t}`),""}}syncValue(t,e,s){if(s)switch(this.type){case"file":"undefined"!=typeof FileList&&t instanceof FileList?s.files=t:s.value="";break;case"select":"SELECT"===s.tagName?this.syncSelectOptions(t,s):this.syncValueAttribute(e,s);break;case"radio":"string"==typeof e&&(s.setAttribute("value",e),s.setAttribute("checked",""),s.value=e);break;default:this.syncValueAttribute(e,s)}}syncSelectOptions(t,e){e.querySelectorAll("option").forEach((t=>{e.removeChild(t)})),(Array.isArray(t)?t:null==t?[]:[t]).forEach((t=>{const i=this.tryToStringifyValue(t);if("string"==typeof i){const t=document.createElement(s("option"));t.setAttribute("value",i),t.setAttribute("selected",""),e.appendChild(t)}}))}syncValueAttribute(t,e){"string"==typeof t?(e.setAttribute("value",t),e.value=t):(e.removeAttribute("value"),e.value="")}}export{d as F}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{c as o}from"./align.js";import{h as i}from"@stencil/core/internal/client";import{B as t}from"./component.js";import{B as s}from"./component7.js";import{a as e}from"./tslib.es6.js";import{c as a}from"./clsx.js";import{a as r,B as n,b as l,c as p}from"./behavior.js";import"./common.js";import"./base-web-component.js";const h=o("popoverAlign","bottom"),c=(o,t)=>{const{align:s="bottom",popoverRef:r,arrowRef:n,class:l}=o,p=e(o,["align","popoverRef","arrowRef","class"]);return i("div",Object.assign({},p,{class:a("kol-popover",l),ref:r,popover:"auto"}),i("div",{class:a("kol-popover__arrow",`kol-popover__arrow--${s}`),ref:n}),t.length>0?t:i("slot",null))},d=(o,e)=>{const{accessKey:a,ariaDescription:r,ariaDescriptionId:n,ariaHasPopup:l,ariaSelected:p,customClass:h,disabled:d,handleBlur:m,handleClick:v,handleFocus:f,handleMouseDown:u,hideLabel:b,icons:g,id:w,inline:y,label:j,name:k,on:_,popoverAlign:B,popoverOpen:x,popoverId:A,ref:D,refButton:C,refPopover:I,refTooltip:R,role:E,shortKey:K,tabIndex:P,tooltipAlign:F,type:L,variant:S}=o;return i(t,{block:"kol-popover-button",class:o.class,ref:D,modifiers:{open:x,inline:!0===y}},i(s,{accessKey:a,ariaControls:A,ariaDescription:r,ariaDescriptionId:n,ariaExpanded:x?"true":"false",ariaHasPopup:l,ariaSelected:p,customClass:h,disabled:d,handleBlur:m,handleClick:v,handleFocus:f,handleMouseDown:u,hideLabel:b,icons:g,id:w,inline:y,label:j,name:k,on:_,refButton:C,refTooltip:R,role:E,shortKey:K,tabIndex:P,tooltipAlign:F,type:L,variant:S}),i(c,{align:B,class:"kol-popover-button__popover",id:A,popoverRef:I},e))},m={optional:[r]};class v extends n{constructor(o){super(o,m),this.show=!1,this.setPopoverElementRef=o=>{this.popoverElement=o,this.arrowElement=null==o?void 0:o.querySelector(".kol-popover__arrow")},this.setTriggerElement=o=>{this.triggerElement=o},this.alignPopover=async()=>{this.popoverElement&&this.triggerElement&&await l({align:this.getRenderProp("align"),referenceElement:this.triggerElement,arrowElement:this.arrowElement,floatingElement:this.popoverElement})},this.setupAutoUpdate=()=>{this.popoverElement&&this.triggerElement&&!this.cleanupAutoUpdate&&(this.cleanupAutoUpdate=p(this.triggerElement,this.popoverElement,(()=>{this.alignPopover()})))}}componentWillLoad(o){this.watchAlign(o.align)}watchAlign(o){r.apply(o,(o=>{this.setRenderProp("align",o)}))}setShow(o){this.show=o,this.popoverElement&&(this.popoverElement.isConnected?this.toggleVisibility():requestAnimationFrame((()=>{this.toggleVisibility()})))}destroy(){var o;null===(o=this.cleanupAutoUpdate)||void 0===o||o.call(this),this.cleanupAutoUpdate=void 0,this.popoverElement=void 0,this.arrowElement=void 0,this.triggerElement=void 0}toggleVisibility(){var o;if(!this.popoverElement)return;const i=this.popoverElement.matches(":popover-open");if(this.show){if(!i)try{this.popoverElement.showPopover(),this.setupAutoUpdate(),this.alignPopover()}catch(o){}}else if(i)try{this.popoverElement.hidePopover(),null===(o=this.cleanupAutoUpdate)||void 0===o||o.call(this),this.cleanupAutoUpdate=void 0}catch(o){}}}export{d as P,v as a,h as p}
4
+ import{h as o}from"./common.js";import{f as i}from"./component6.js";import{f as s,B as t}from"./base-web-component.js";import{B as e}from"./component9.js";import{a}from"./tslib.es6.js";import{b as r}from"./bem-registry.js";import{a as n,B as l,b as p,c as h}from"./behavior.js";const c=i("popoverAlign","bottom"),d=r.forBlock("kol-popover"),m=(i,t)=>{const{align:e="bottom",popoverRef:r,arrowRef:n,class:l}=i,p=a(i,["align","popoverRef","arrowRef","class"]);return o("div",Object.assign({},p,{class:s(d(),l),ref:r,popover:"auto"}),o("div",{class:s(d("arrow"),d("arrow",{[e]:!0})),ref:n}),t.length>0?t:o("slot",null))},f=(i,s)=>{const{accessKey:a,ariaDescription:r,ariaDescriptionId:n,ariaHasPopup:l,ariaSelected:p,customClass:h,disabled:c,handleBlur:d,handleClick:f,handleFocus:v,handleMouseDown:u,hideLabel:b,icons:g,id:w,inline:y,label:j,name:k,on:B,popoverAlign:A,popoverOpen:D,popoverId:x,ref:C,refButton:I,refPopover:R,refTooltip:E,role:K,shortKey:P,tabIndex:_,tooltipAlign:F,type:L,variant:S}=i;return o(t,{block:"kol-popover-button",class:i.class,ref:C,modifiers:{open:D,inline:!0===y}},o(e,{accessKey:a,ariaControls:x,ariaDescription:r,ariaDescriptionId:n,ariaExpanded:D?"true":"false",ariaHasPopup:l,ariaSelected:p,customClass:h,disabled:c,handleBlur:d,handleClick:f,handleFocus:v,handleMouseDown:u,hideLabel:b,icons:g,id:w,inline:y,label:j,name:k,on:B,refButton:I,refTooltip:E,role:K,shortKey:P,tabIndex:_,tooltipAlign:F,type:L,variant:S}),o(m,{align:A,class:"kol-popover-button__popover",id:x,popoverRef:R},s))},v={optional:[n]};class u extends l{constructor(o){super(o,v),this.show=!1,this.setPopoverElementRef=o=>{this.popoverElement=o,this.arrowElement=null==o?void 0:o.querySelector(".kol-popover__arrow")},this.setTriggerElement=o=>{this.triggerElement=o},this.alignPopover=async()=>{this.popoverElement&&this.triggerElement&&await p({align:this.getRenderProp("align"),referenceElement:this.triggerElement,arrowElement:this.arrowElement,floatingElement:this.popoverElement})},this.setupAutoUpdate=()=>{this.popoverElement&&this.triggerElement&&!this.cleanupAutoUpdate&&(this.cleanupAutoUpdate=h(this.triggerElement,this.popoverElement,(()=>{this.alignPopover()})))}}componentWillLoad(o){this.watchAlign(o.align)}watchAlign(o){n.apply(o,(o=>{this.setRenderProp("align",o)}))}setShow(o){this.show=o,this.popoverElement&&(this.popoverElement.isConnected?this.toggleVisibility():requestAnimationFrame((()=>{this.toggleVisibility()})))}destroy(){var o;null===(o=this.cleanupAutoUpdate)||void 0===o||o.call(this),this.cleanupAutoUpdate=void 0,this.popoverElement=void 0,this.arrowElement=void 0,this.triggerElement=void 0}toggleVisibility(){var o;if(!this.popoverElement)return;const i=this.popoverElement.matches(":popover-open");if(this.show){if(!i)try{this.popoverElement.showPopover(),this.setupAutoUpdate(),this.alignPopover()}catch(o){}}else if(i)try{this.popoverElement.hidePopover(),null===(o=this.cleanupAutoUpdate)||void 0===o||o.call(this),this.cleanupAutoUpdate=void 0}catch(o){}}}export{f as P,u as a,c as p}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{j as e}from"./common.js";var i,l,n=e(l?i:(l=1,i=function(e){return function(i,l){if(!i)return e;var n;"string"==typeof i?n=i:l=i;var o=e;return n&&(o+="__"+n),o+(l?Object.keys(l).reduce((function(e,i){var n=l[i];return n&&(e+=" "+("boolean"==typeof n?o+"--"+i:o+"--"+i+"_"+n)),e}),""):"")}}));const o=function(){const e=new Map,i=(i,l,o)=>{try{return e.get(i)(l,o)}catch{return e.set(i,n(i)).get(i)(l,o)}};return i.forBlock=e=>{const l=(l,n)=>i(e,l,n);return l.forElement=l=>n=>i(e,l,n),l},i}(),r={"kol-abbr":{modifiers:null},"kol-alert":{elements:{closer:{modifiers:null},heading:{modifiers:new Set(["h0","h1","h2","h3","h4","h5","h6"])},icon:{modifiers:null},content:{modifiers:null},container:{modifiers:null}},modifiers:new Set(["hasCloser","type-default","type-error","type-info","type-success","type-warning","variant-card","variant-msg"])},"kol-badge":{elements:{label:{modifiers:null},"smart-button":{modifiers:null}},modifiers:new Set(["has-smart-button"])},"kol-version":{modifiers:null},"kol-accordion":{elements:{content:{modifiers:null},heading:{modifiers:null},wrapper:{modifiers:null},"wrapper-animation":{modifiers:null}},modifiers:new Set(["disabled","open"])},"kol-avatar":{elements:{image:{modifiers:null},initials:{modifiers:null}},modifiers:null},"kol-card":{elements:{"close-button":{modifiers:null},content:{modifiers:null},header:{modifiers:null},link:{modifiers:null}},modifiers:null},"kol-dialog":{elements:{blank:{modifiers:null},card:{modifiers:null}},modifiers:null},"kol-modal":{elements:{blank:{modifiers:null},card:{modifiers:null}},modifiers:null},"kol-button":{elements:{"interactive-element":{modifiers:null},text:{modifiers:null},tooltip:{modifiers:null}},modifiers:new Set(["disabled","hide-label","inline","standalone"])},"kol-breadcrumb":{elements:{icon:{modifiers:null},link:{modifiers:null},list:{modifiers:null},"list-element":{modifiers:null},"list-element-span":{modifiers:null},separator:{modifiers:null}},modifiers:null},"kol-nav":{elements:{compact:{modifiers:null},entry:{modifiers:new Set(["button","collapsible","link"])},"entry-wrapper":{modifiers:null},list:{modifiers:new Set(["nested","vertical"])},"list-item":{modifiers:new Set(["active","expanded","has-children"])},navigation:{modifiers:null},"toggle-button":{modifiers:null}},modifiers:new Set(["is-compact"])},"kol-kolibri":{elements:{text:{modifiers:null}},modifiers:null},"kol-popover-button":{elements:{popover:{modifiers:null}},modifiers:new Set(["inline","open"])},"kol-details":{elements:{content:{modifiers:null},heading:{modifiers:null},wrapper:{modifiers:null},"wrapper-animation":{modifiers:null}},modifiers:new Set(["disabled","open"])},"kol-drawer":{elements:{content:{modifiers:null},dialog:{modifiers:null},wrapper:{modifiers:new Set(["bottom","is-closing","left","open","right","top"])}},modifiers:null},"kol-heading":{modifiers:new Set(["group"])},"kol-headline":{modifiers:new Set(["group","h1","h2","h3","h4","h5","h6","primary","secondary","single","strong"])},"kol-icon":{elements:{icon:{modifiers:null}},modifiers:null},"kol-meter":{elements:{bar:{modifiers:null},"bar-background":{modifiers:null},"bar-border":{modifiers:null},"bar-fill":{modifiers:new Set(["critical","optimum","suboptimal"])},"bar-label":{modifiers:null},"bar-state":{modifiers:new Set(["critical","optimum","suboptimal"])},"bar-track":{modifiers:null},unit:{modifiers:null},value:{modifiers:null},"value-unit":{modifiers:null}},modifiers:new Set(["vertical"])},"kol-quote":{elements:{blockquote:{modifiers:null},cite:{modifiers:null},figcaption:{modifiers:null},quote:{modifiers:null}},modifiers:new Set(["block","inline"])},"kol-skip-nav":{elements:{list:{modifiers:null},"list-item":{modifiers:null}},modifiers:null},"kol-skeleton":{elements:{actions:{modifiers:null},container:{modifiers:null},counter:{modifiers:null},name:{modifiers:null}},modifiers:new Set(["has-name","is-hidden"])},"kol-click-button":{elements:{label:{modifiers:null}},modifiers:null},"kol-span":{elements:{container:{modifiers:null},icon:{modifiers:new Set(["bottom","left","right","top"])},label:{modifiers:null},slot:{modifiers:null}},modifiers:new Set(["has-badge","hide-label"])},"kol-link":{elements:{"interactive-element":{modifiers:null},icon:{modifiers:null},text:{modifiers:null}},modifiers:new Set(["disabled","external-link","hide-label","inline","standalone"])},"kol-form":{elements:{alert:{modifiers:null},form:{modifiers:null},link:{modifiers:null},"mandatory-fields-hint":{modifiers:null}},modifiers:null},"kol-form-field":{elements:{counter:{modifiers:null},hint:{modifiers:null},input:{modifiers:new Set(["orientation-horizontal","orientation-vertical"])},label:{modifiers:new Set(["legend"])},"label-text":{modifiers:null},msg:{modifiers:null},tooltip:{modifiers:null}},modifiers:new Set(["default","disabled","error","hidden-msg","hide-label","info","msg-type-default","msg-type-error","msg-type-info","msg-type-success","msg-type-warning","radio","read-only","required","success","touched","warning"])},"kol-input":{modifiers:new Set(["default","disabled","error","info","readonly","required","success","touched","warning"])},"kol-input-container":{elements:{adornment:{modifiers:new Set(["end","start"])},button:{modifiers:null},container:{modifiers:null},filename:{modifiers:new Set(["has-file"])},icon:{modifiers:null},"smart-button":{modifiers:null}},modifiers:new Set(["default","disabled","error","info","is-dragover","success","warning"])},"kol-field-control":{elements:{hint:{modifiers:null},input:{modifiers:null},label:{modifiers:new Set(["visually-hidden"])},"label-text":{modifiers:null}},modifiers:new Set(["default","disabled","error","hide-label","info","label-align-left","label-align-right","read-only","required","success","touched","warning"])},"kol-checkbox":{elements:{icon:{modifiers:null},input:{modifiers:null}},modifiers:new Set(["checked","default","disabled","error","indeterminate","info","required","success","touched","variant-button","variant-default","variant-switch","warning"])},"kol-input-radio":{elements:{input:{modifiers:null}},modifiers:new Set(["checked","default","disabled","error","info","required","success","touched","warning"])},"kol-select":{elements:{optgroup:{modifiers:new Set(["disabled"])},option:{modifiers:new Set(["disabled","selected"])}},modifiers:new Set(["default","disabled","error","info","required","success","touched","warning"])},"kol-pagination":{elements:{button:{modifiers:new Set(["first","last","next","numbers","previous","selected"])},entries:{modifiers:null},navigation:{modifiers:null},"navigation-list":{modifiers:null},"page-size-select":{modifiers:null},separator:{modifiers:null}},modifiers:null},"kol-custom-suggestions-option":{modifiers:new Set(["disabled"])},"kol-custom-suggestions-options-group":{modifiers:new Set(["cursor-hidden","open"])},"kol-custom-suggestions-toggle":{modifiers:new Set(["disabled"])},"kol-combobox":{elements:{delete:{modifiers:null},group:{modifiers:null}},modifiers:new Set(["open"])},"kol-combobox-toggle":{modifiers:null},"kol-single-select":{elements:{delete:{modifiers:null},group:{modifiers:null},"no-results-message":{modifiers:null}},modifiers:new Set(["open"])},"kol-input-range":{elements:{input:{modifiers:new Set(["number","range"])},"inputs-wrapper":{modifiers:null}},modifiers:null},"kol-split-button":{elements:{button:{modifiers:null},"horizontal-line":{modifiers:null},root:{modifiers:null},"secondary-button":{modifiers:null}},modifiers:null},"kol-spin":{elements:{loader:{modifiers:null},spinner:{modifiers:new Set(["cycle","dot","none"])},"spinner-element":{modifiers:new Set(["1","2","3","neutral"])}},modifiers:null},"kol-table":{elements:{body:{modifiers:null},caption:{modifiers:null},cell:{modifiers:new Set(["actions","align-center","align-justify","align-left","align-right","ascending","body","descending","header","none","other","selection","states","sticky-left","sticky-right"])},"cell-actions":{modifiers:null},"cell-states":{modifiers:null},"focus-element":{modifiers:null},footer:{modifiers:null},head:{modifiers:null},"head-row":{modifiers:null},loader:{modifiers:new Set(["shown"])},row:{modifiers:new Set(["body","footer"])},"scroll-container":{modifiers:null},selection:{modifiers:new Set(["checked","indeterminate"])},"selection-icon":{modifiers:null},"selection-input":{modifiers:new Set(["checkbox","radio"])},"selection-input-tooltip":{modifiers:null},"selection-label":{modifiers:new Set(["disabled"])},settings:{modifiers:null},sort:{modifiers:null},"sort-button":{modifiers:null},"sort-order":{modifiers:null},spacer:{modifiers:new Set(["foot","head"])},"spacer-line":{modifiers:new Set(["foot","head"])},table:{modifiers:null}},modifiers:null},"kol-tabs":{elements:{"button-create":{modifiers:null},"button-group":{modifiers:null},content:{modifiers:null},tab:{modifiers:null},tablist:{modifiers:null}},modifiers:new Set(["align-bottom","align-left","align-right","align-top"])},"kol-textarea":{modifiers:new Set(["default","disabled","error","info","readonly","required","success","touched","warning"])},"kol-toolbar":{elements:{item:{modifiers:null}},modifiers:new Set(["orientation-horizontal","orientation-vertical"])},"kol-tree":{elements:{"treeview-navigation":{modifiers:null}},modifiers:null},"kol-tree-item":{elements:{children:{modifiers:null},link:{modifiers:new Set(["active","first-level"])},"link-inner":{modifiers:null},text:{modifiers:null},"toggle-button":{modifiers:null},"toggle-button-icon":{modifiers:null},"toggle-button-placeholder":{modifiers:null}},modifiers:null}};export{r as B,o as b}
4
+ import{q as e}from"./common.js";var i,l,n=e(l?i:(l=1,i=function(e){return function(i,l){if(!i)return e;var n;"string"==typeof i?n=i:l=i;var o=e;return n&&(o+="__"+n),o+(l?Object.keys(l).reduce((function(e,i){var n=l[i];return n&&(e+=" "+("boolean"==typeof n?o+"--"+i:o+"--"+i+"_"+n)),e}),""):"")}}));const o=function(){const e=new Map,i=(i,l,o)=>{try{return e.get(i)(l,o)}catch{return e.set(i,n(i)).get(i)(l,o)}};return i.forBlock=e=>{const l=(l,n)=>i(e,l,n);return l.forElement=l=>n=>i(e,l,n),l},i}(),r={"kol-abbr":{modifiers:null},"kol-alert":{elements:{closer:{modifiers:null},heading:{modifiers:new Set(["h0","h1","h2","h3","h4","h5","h6"])},icon:{modifiers:null},content:{modifiers:null},container:{modifiers:null}},modifiers:new Set(["hasCloser","type-default","type-error","type-info","type-success","type-warning","variant-card","variant-msg"])},"kol-badge":{elements:{label:{modifiers:null},"smart-button":{modifiers:null}},modifiers:new Set(["has-smart-button"])},"kol-version":{modifiers:null},"kol-accordion":{elements:{content:{modifiers:null},heading:{modifiers:null},wrapper:{modifiers:null},"wrapper-animation":{modifiers:null}},modifiers:new Set(["disabled","open"])},"kol-avatar":{elements:{image:{modifiers:null},initials:{modifiers:null}},modifiers:null},"kol-card":{elements:{"close-button":{modifiers:null},content:{modifiers:null},header:{modifiers:null},link:{modifiers:null}},modifiers:null},"kol-dialog":{elements:{blank:{modifiers:null},card:{modifiers:null}},modifiers:null},"kol-modal":{elements:{blank:{modifiers:null},card:{modifiers:null}},modifiers:null},"kol-button":{elements:{"interactive-element":{modifiers:null},text:{modifiers:null},tooltip:{modifiers:null}},modifiers:new Set(["disabled","hide-label","inline","standalone"])},"kol-breadcrumb":{elements:{icon:{modifiers:null},link:{modifiers:null},list:{modifiers:null},"list-element":{modifiers:null},"list-element-span":{modifiers:null},separator:{modifiers:null}},modifiers:null},"kol-nav":{elements:{compact:{modifiers:null},entry:{modifiers:new Set(["button","collapsible","link"])},"entry-wrapper":{modifiers:null},list:{modifiers:new Set(["nested","vertical"])},"list-item":{modifiers:new Set(["active","expanded","has-children"])},navigation:{modifiers:null},"toggle-button":{modifiers:null}},modifiers:new Set(["is-compact"])},"kol-kolibri":{elements:{text:{modifiers:null}},modifiers:null},"kol-popover-button":{elements:{popover:{modifiers:null}},modifiers:new Set(["inline","open"])},"kol-details":{elements:{content:{modifiers:null},heading:{modifiers:null},wrapper:{modifiers:null},"wrapper-animation":{modifiers:null}},modifiers:new Set(["disabled","open"])},"kol-drawer":{elements:{content:{modifiers:null},dialog:{modifiers:null},wrapper:{modifiers:new Set(["bottom","is-closing","left","open","right","top"])}},modifiers:null},"kol-heading":{modifiers:new Set(["group"])},"kol-headline":{modifiers:new Set(["group","h1","h2","h3","h4","h5","h6","primary","secondary","single","strong"])},"kol-icon":{elements:{icon:{modifiers:null}},modifiers:null},"kol-meter":{elements:{bar:{modifiers:null},"bar-background":{modifiers:null},"bar-border":{modifiers:null},"bar-fill":{modifiers:new Set(["critical","optimum","suboptimal"])},"bar-label":{modifiers:null},"bar-state":{modifiers:new Set(["critical","optimum","suboptimal"])},"bar-track":{modifiers:null},unit:{modifiers:null},value:{modifiers:null},"value-unit":{modifiers:null}},modifiers:new Set(["vertical"])},"kol-quote":{elements:{blockquote:{modifiers:null},cite:{modifiers:null},figcaption:{modifiers:null},quote:{modifiers:null}},modifiers:new Set(["block","inline"])},"kol-skip-nav":{elements:{list:{modifiers:null},"list-item":{modifiers:null}},modifiers:null},"kol-close-button":{modifiers:null},"kol-span":{elements:{container:{modifiers:null},icon:{modifiers:new Set(["bottom","left","right","top"])},label:{modifiers:null},slot:{modifiers:null}},modifiers:new Set(["has-badge","hide-label"])},"kol-link":{elements:{"interactive-element":{modifiers:null},icon:{modifiers:null},text:{modifiers:null},tooltip:{modifiers:null}},modifiers:new Set(["disabled","external-link","hide-label","inline","standalone"])},"kol-form":{elements:{alert:{modifiers:null},form:{modifiers:null},link:{modifiers:null},"mandatory-fields-hint":{modifiers:null}},modifiers:null},"kol-form-field":{elements:{counter:{modifiers:null},hint:{modifiers:null},input:{modifiers:new Set(["orientation-horizontal","orientation-vertical"])},label:{modifiers:new Set(["legend"])},"label-text":{modifiers:null},msg:{modifiers:null},tooltip:{modifiers:null}},modifiers:new Set(["default","disabled","error","hidden-msg","hide-label","info","msg-type-default","msg-type-error","msg-type-info","msg-type-success","msg-type-warning","radio","read-only","required","success","touched","warning"])},"kol-input":{modifiers:new Set(["default","disabled","error","info","readonly","required","success","touched","warning"])},"kol-input-container":{elements:{adornment:{modifiers:new Set(["end","start"])},button:{modifiers:null},container:{modifiers:null},filename:{modifiers:new Set(["has-file"])},icon:{modifiers:null},"smart-button":{modifiers:null}},modifiers:new Set(["default","disabled","error","info","is-dragover","success","warning"])},"kol-field-control":{elements:{hint:{modifiers:null},input:{modifiers:null},label:{modifiers:new Set(["visually-hidden"])},"label-text":{modifiers:null}},modifiers:new Set(["default","disabled","error","hide-label","info","label-align-left","label-align-right","read-only","required","success","touched","warning"])},"kol-checkbox":{elements:{icon:{modifiers:null},input:{modifiers:null}},modifiers:new Set(["checked","default","disabled","error","indeterminate","info","required","success","touched","variant-button","variant-default","variant-switch","warning"])},"kol-input-checkbox":{elements:{"field-control":{modifiers:new Set(["checked","indeterminate","variant-button","variant-default","variant-switch"])}},modifiers:new Set(["checked","indeterminate","label-align-left","label-align-right","variant-button","variant-default","variant-switch"])},"kol-input-color":{elements:{input:{modifiers:new Set(["color"])}},modifiers:null},"kol-input-date":{modifiers:null},"kol-input-email":{modifiers:null},"kol-input-file":{modifiers:null},"kol-input-number":{elements:{"step-button":{modifiers:null}},modifiers:null},"kol-input-password":{elements:{"password-toggle-button":{modifiers:null}},modifiers:null},"kol-input-radio":{elements:{input:{modifiers:null}},modifiers:new Set(["checked","default","disabled","error","info","required","success","touched","warning"])},"kol-select":{elements:{optgroup:{modifiers:new Set(["disabled"])},option:{modifiers:new Set(["disabled","selected"])}},modifiers:new Set(["default","disabled","error","info","required","success","touched","warning"])},"kol-pagination":{elements:{button:{modifiers:new Set(["first","last","next","numbers","previous","selected"])},entries:{modifiers:null},navigation:{modifiers:null},"navigation-list":{modifiers:null},"page-size-select":{modifiers:null},separator:{modifiers:null}},modifiers:null},"kol-custom-suggestions-option":{modifiers:new Set(["disabled"])},"kol-custom-suggestions-options-group":{modifiers:new Set(["cursor-hidden","open"])},"kol-custom-suggestions-toggle":{modifiers:new Set(["disabled"])},"kol-combobox":{elements:{delete:{modifiers:null},group:{modifiers:null}},modifiers:new Set(["open"])},"kol-combobox-toggle":{modifiers:null},"kol-single-select":{elements:{delete:{modifiers:null},group:{modifiers:null},"no-results-message":{modifiers:null}},modifiers:new Set(["open"])},"kol-input-range":{elements:{input:{modifiers:new Set(["number","range"])},"inputs-wrapper":{modifiers:null}},modifiers:null},"kol-input-text":{elements:{"clear-button":{modifiers:new Set(["hidden"])}},modifiers:null},"kol-split-button":{elements:{button:{modifiers:null},"horizontal-line":{modifiers:null},root:{modifiers:null},"secondary-button":{modifiers:null}},modifiers:null},"kol-spin":{elements:{loader:{modifiers:null},spinner:{modifiers:new Set(["cycle","dot","none"])},"spinner-element":{modifiers:new Set(["1","2","3","neutral"])}},modifiers:null},"kol-table":{elements:{body:{modifiers:null},caption:{modifiers:null},cell:{modifiers:new Set(["actions","align-center","align-justify","align-left","align-right","ascending","body","descending","header","none","other","selection","states","sticky-left","sticky-right"])},"cell-actions":{modifiers:null},"cell-states":{modifiers:null},"focus-element":{modifiers:null},footer:{modifiers:null},head:{modifiers:null},"head-row":{modifiers:null},loader:{modifiers:new Set(["shown"])},row:{modifiers:new Set(["body","footer"])},"scroll-container":{modifiers:null},selection:{modifiers:new Set(["checked","indeterminate"])},"selection-icon":{modifiers:null},"selection-input":{modifiers:new Set(["checkbox","radio"])},"selection-input-tooltip":{modifiers:null},"selection-label":{modifiers:new Set(["disabled"])},settings:{modifiers:null},sort:{modifiers:null},"sort-button":{modifiers:null},"sort-order":{modifiers:null},spacer:{modifiers:new Set(["foot","head"])},"spacer-line":{modifiers:new Set(["foot","head"])},table:{modifiers:null}},modifiers:null},"kol-table-settings":{elements:{actions:{modifiers:null},column:{modifiers:null},"column-label":{modifiers:null},columns:{modifiers:null},content:{modifiers:null},"error-message":{modifiers:null}},modifiers:null},"kol-table-stateful":{elements:{pagination:{modifiers:new Set(["both","bottom","top"])},"pagination-wrapper":{modifiers:null}},modifiers:null},"kol-tabs":{elements:{"button-create":{modifiers:null},"button-group":{modifiers:null},content:{modifiers:null},tab:{modifiers:null},tablist:{modifiers:null}},modifiers:new Set(["align-bottom","align-left","align-right","align-top"])},"kol-textarea":{modifiers:new Set(["default","disabled","error","info","readonly","required","success","touched","warning"])},"kol-toolbar":{elements:{item:{modifiers:null}},modifiers:new Set(["orientation-horizontal","orientation-vertical"])},"kol-tree":{elements:{"treeview-navigation":{modifiers:null}},modifiers:null},"kol-tree-item":{elements:{children:{modifiers:null},link:{modifiers:new Set(["active","first-level"])},"link-inner":{modifiers:null},text:{modifiers:null},"toggle-button":{modifiers:null},"toggle-button-icon":{modifiers:null},"toggle-button-placeholder":{modifiers:null}},modifiers:null},"kol-image":{modifiers:null},"kol-popover":{elements:{arrow:{modifiers:new Set(["top","right","bottom","left"])}},modifiers:null},"kol-progress":{elements:{bar:{modifiers:null},"bar-background":{modifiers:null},"bar-border":{modifiers:null},"bar-label":{modifiers:null},"bar-progress":{modifiers:null},"bar-unit":{modifiers:null},"bar-value":{modifiers:null},cycle:{modifiers:null},"cycle-background":{modifiers:null},"cycle-border":{modifiers:null},"cycle-label":{modifiers:null},"cycle-progress":{modifiers:null},"cycle-text":{modifiers:null},"cycle-value":{modifiers:null},"cycle-whitespace":{modifiers:null}},modifiers:null},"kol-tooltip":{elements:{arrow:{modifiers:null},content:{modifiers:null},floating:{modifiers:null}},modifiers:null}};export{r as B,o as b}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h as o,i as n,L as i}from"./common.js";import{s}from"./component-names.js";import{i as e}from"./i18n2.js";let a,l=!1;const d=async(d,t,r)=>{var u,v;const c="undefined"!=typeof process&&process.env?"production":void 0;o((null==r?void 0:r.environment)||c||"production"),e(null!==(v=null===(u=null==r?void 0:r.translation)||void 0===u?void 0:u.name)&&void 0!==v?v:"de",null==r?void 0:r.translations),(null==r?void 0:r.transformTagName)&&s(null==r?void 0:r.transformTagName);const m=await n(d,t,r);return l=!0,a=r,i.info("Development mode active - Enhanced debugging features available"),m},t=d,r=()=>l,u=()=>a;export{d as b,u as g,r as i,t as r}
4
+ import{n as e,L as o,e as t,t as n,m as r,o as a}from"./common.js";import{g as s}from"./shared-state.js";import{i as d}from"./i18n2.js";import{a as i}from"./component-names.js";const l=()=>{e.A11yUi=s("themes",(()=>e.A11yUi))},m=s("tag-transformer",(()=>({}))),c=e=>"undefined"!=typeof customElements&&void 0!==customElements.get(n(e)),u=e=>{m.transformer&&o.warn("The tag name transformer was already registered. Components already defined keep their current tag and will not resolve under the new one.",{forceLog:!0}),Object.values(i).some((o=>c(o)||c(e(o))))&&o.warn("Components are already defined while the tag name transformer is registered. They keep their current tag and will not resolve under the transformed one.",{forceLog:!0});const n=o=>o.startsWith("kol-")?e(o):o;return t(n),m.transformer=n,n},p=()=>m.transformer,f=s("bootstrap",(()=>({})));let v=!1;l();const g=async(e,t,n)=>{var s,i;const l="undefined"!=typeof process&&process.env?"production":void 0;r((null==n?void 0:n.environment)||l||"production"),d(null!==(i=null===(s=null==n?void 0:n.translation)||void 0===s?void 0:s.name)&&void 0!==i?i:"de",null==n?void 0:n.translations),(null==n?void 0:n.transformTagName)&&u(n.transformTagName);const m=await a(e,t,n);return v=!0,f.options=n,o.info("Development mode active - Enhanced debugging features available"),m},h=g,y=()=>v,w=()=>f.options;export{u as a,g as b,w as c,p as g,y as i,h as r,l as s}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{p as o}from"./common.js";import{c as r}from"./base-web-component.js";import{c as n}from"./contrast.js";const t=/^#((\d|[a-f]){8}|(\d|[a-f]){6}|(\d|[a-f]){3,4})$/i;function f(o){return t.test(o)}const c=r("color",{backgroundColor:"#d3d3d3",foregroundColor:"#3f3f3f"},(function(r){if("string"==typeof r&&f(r)){const o=n(r);return{backgroundColor:o.background,foregroundColor:o.foreground}}const t="string"==typeof r?o(r):r;if("object"==typeof t&&t){const o=t;if("string"==typeof o.backgroundColor&&"string"==typeof o.foregroundColor&&f(o.backgroundColor)&&f(o.foregroundColor)){const r=n({background:o.backgroundColor,foreground:o.foregroundColor});return{backgroundColor:r.background,foregroundColor:r.foreground}}}throw new Error(`Invalid color ${r}`)}),(function(o){return f(o.foregroundColor)&&f(o.backgroundColor)}));export{c}
4
+ import{O as o}from"./common.js";import{c as r}from"./base-web-component.js";import{c as n}from"./contrast.js";const t=/^#((\d|[a-f]){8}|(\d|[a-f]){6}|(\d|[a-f]){3,4})$/i;function f(o){return t.test(o)}const c=r("color",{backgroundColor:"#d3d3d3",foregroundColor:"#3f3f3f"},(function(r){if("string"==typeof r&&f(r)){const o=n(r);return{backgroundColor:o.background,foregroundColor:o.foreground}}const t="string"==typeof r?o(r):r;if(Array.isArray(t)){const[o,r]=t;if("string"==typeof o&&"string"==typeof r&&f(o)&&f(r)){const t=n({background:o,foreground:r});return{backgroundColor:t.background,foregroundColor:t.foreground}}}if("object"==typeof t&&t){const o=t;if("string"==typeof o.backgroundColor&&"string"==typeof o.foregroundColor&&f(o.backgroundColor)&&f(o.foregroundColor)){const r=n({background:o.backgroundColor,foreground:o.foregroundColor});return{backgroundColor:r.background,foregroundColor:r.foreground}}}throw new Error(`Invalid color ${r}`)}),(function(o){return f(o.foregroundColor)&&f(o.backgroundColor)}));export{c}