@public-ui/components 5.0.0-beta.1 → 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 (969) hide show
  1. package/assets/kolicons/kolicons.eot +0 -0
  2. package/assets/kolicons/kolicons.ttf +0 -0
  3. package/assets/kolicons/kolicons.woff +0 -0
  4. package/assets/kolicons/kolicons.woff2 +0 -0
  5. package/assets/kolicons/style.css +6 -6
  6. package/custom-elements.json +9 -55
  7. package/dist/cjs/{Heading-C9osvqjY.js → Heading-o_m1bQbh.js} +7 -7
  8. package/dist/cjs/{access-and-short-key-D40HWCJe.js → access-and-short-key-BrLP4fF_.js} +2 -0
  9. package/dist/cjs/{api-U7I3XBPI.js → api-SFTkHR9W.js} +32 -34
  10. package/dist/cjs/{app-globals-DsADKGEe.js → app-globals-BVGzsN2O.js} +6 -5
  11. package/dist/cjs/{aria-labelledby-BRMgWRVp.js → aria-labelledby-CgJJS0K5.js} +2 -13
  12. package/dist/cjs/ariaCurrentService-aysGX58T.js +30 -0
  13. package/dist/cjs/{base-DCxbMk0f.js → base-4xLnw9ep.js} +17 -19
  14. package/dist/cjs/{base-l99dGLYo.js → base-DGpJZOXm.js} +67 -73
  15. package/dist/cjs/{base-DcN_YC72.js → base-DJhwvwdo.js} +13 -14
  16. package/dist/cjs/{base-CyqDmoZZ.js → base-DoujJ-Xz.js} +14 -15
  17. package/dist/cjs/{base-web-component-BnaxS2Z3.js → base-web-component-BgX5i_fc.js} +16 -19
  18. package/dist/cjs/{base-web-component-B6mwGD0m.js → base-web-component-DSCg1arP.js} +2 -1
  19. package/dist/cjs/{base-web-component-DxJ0hQ9u.js → base-web-component-nGb9E-GX.js} +17 -19
  20. package/dist/cjs/{behavior-BNyFQ_B5.js → behavior-CBwUdaXu.js} +10 -10
  21. package/dist/cjs/{behavior-CTaw4dj3.js → behavior-DhfuU2HF.js} +5 -5
  22. package/dist/cjs/{behavior-DrFJy0QC.js → behavior-S2U8skNd.js} +33 -33
  23. package/dist/cjs/{bem-registry-CyxrH26c.js → bem-registry-CMf1T2kb.js} +61 -15
  24. package/dist/cjs/bootstrap-C4GRmpTI.js +59 -0
  25. package/dist/cjs/{color-BW4t1Cif.js → color-BWamMCyw.js} +4 -4
  26. package/dist/cjs/{component-lmJOXuD6.js → component-BGIFlgKu.js} +8 -11
  27. package/dist/cjs/component-BM6eWMuC.js +177 -0
  28. package/dist/cjs/{component-Cvjqbxf4.js → component-CKc_-O64.js} +15 -18
  29. package/dist/cjs/{component-Cty_HlJR.js → component-CweSM_ze.js} +6 -5
  30. package/dist/cjs/{component-4OErV1Bg.js → component-DPCpVWBj.js} +11 -13
  31. package/dist/cjs/{component-DAQ1XSNA.js → component-DSlW2KVw.js} +6 -8
  32. package/dist/cjs/component-DTC3WbHR.js +52 -0
  33. package/dist/cjs/{component-DF5q9ssd.js → component-DUvRV4FE.js} +13 -14
  34. package/dist/cjs/component-SeQac11p.js +19 -0
  35. package/dist/cjs/component-names-CyEXMjv9.js +121 -0
  36. package/dist/cjs/{component-DtxKrISb.js → component-t6Upgw7f.js} +6 -7
  37. package/dist/cjs/{contrast-4mAdSLs0.js → contrast-CXinV5ii.js} +5 -5
  38. package/dist/cjs/{controller-tEyAFJN9.js → controller-D4usgPg-.js} +20 -20
  39. package/dist/cjs/{dev.utils-D5qh-RLT.js → dev.utils-glOxiW4E.js} +9 -10
  40. package/dist/cjs/{devtools-Dtv-Apvj.js → devtools-VDx5moKY.js} +24 -25
  41. package/dist/cjs/{disabled-jYcvcwjv.js → disabled-CZJO6fbW.js} +2 -1
  42. package/dist/cjs/{element-focus-CzkKMwtn.js → element-focus-IBv4yiNw.js} +1 -0
  43. package/dist/cjs/{element-interaction-BtYQAbhu.js → element-interaction-CvCJFwUh.js} +2 -1
  44. package/dist/cjs/{events-BJC5JJcU.js → events-fafEzzml.js} +2 -0
  45. package/dist/cjs/{field-control-Btb5zapE.js → field-control-xEw1WZFL.js} +12 -13
  46. package/dist/cjs/{group-Dg2gJze5.js → group-CMns8Vns.js} +8 -9
  47. package/dist/cjs/{has-closer-CvNa5gqv.js → has-closer-Cs7BCj4r.js} +2 -1
  48. package/dist/cjs/{href-BBhiVyPb.js → href-C93ktLo4.js} +2 -1
  49. package/dist/cjs/{i18n-BSWM5nea.js → i18n-DXYL9rIn.js} +11 -6
  50. package/dist/cjs/{i18n-BnOWw1MQ.js → i18n-YdI7_XKo.js} +3 -3
  51. package/dist/cjs/{id-D1VZsLkg.js → id-CtES_I0D.js} +2 -1
  52. package/dist/cjs/{index-BacpU-d0.js → index-B65pR1Ir.js} +1807 -61
  53. package/dist/cjs/index.cjs.js +20 -14
  54. package/dist/cjs/input-Bi8Zo8Bv.js +18 -0
  55. package/dist/cjs/{input-container-PaL4ZNf3.js → input-container-BErSDYvG.js} +17 -20
  56. package/dist/cjs/{item-CLnIJY4J.js → item-BHQRF4Sp.js} +9 -9
  57. package/dist/cjs/{item-CErU-EPA.js → item-BLhkAIub.js} +9 -9
  58. package/dist/cjs/{item-Cckqxc6T.js → item-BVHbqXo2.js} +56 -35
  59. package/dist/cjs/{item-CPxmIcoq.js → item-N9AmF46D.js} +16 -17
  60. package/dist/cjs/{item-pool-CY0WyGOL.js → item-pool-ecjkEvCG.js} +2 -0
  61. package/dist/cjs/{keyboard-Ca1I5RM2.js → keyboard-DHPlsLs0.js} +2 -0
  62. package/dist/cjs/kol-abbr.cjs.entry.js +12 -16
  63. package/dist/cjs/kol-accordion.cjs.entry.js +23 -25
  64. package/dist/cjs/kol-alert.cjs.entry.js +34 -36
  65. package/dist/cjs/kol-avatar.cjs.entry.js +19 -19
  66. package/dist/cjs/kol-badge.cjs.entry.js +34 -37
  67. package/dist/cjs/kol-breadcrumb.cjs.entry.js +39 -42
  68. package/dist/cjs/kol-button-link.cjs.entry.js +33 -35
  69. package/dist/cjs/kol-button.cjs.entry.js +33 -35
  70. package/dist/cjs/kol-card.cjs.entry.js +35 -38
  71. package/dist/cjs/kol-combobox.cjs.entry.js +52 -54
  72. package/dist/cjs/kol-details.cjs.entry.js +23 -25
  73. package/dist/cjs/kol-dialog.cjs.entry.js +38 -41
  74. package/dist/cjs/kol-drawer.cjs.entry.js +38 -41
  75. package/dist/cjs/kol-form.cjs.entry.js +32 -35
  76. package/dist/cjs/kol-heading.cjs.entry.js +17 -19
  77. package/dist/cjs/kol-icon.cjs.entry.js +19 -17
  78. package/dist/cjs/kol-image.cjs.entry.js +12 -14
  79. package/dist/cjs/kol-input-checkbox.cjs.entry.js +62 -63
  80. package/dist/cjs/kol-input-color.cjs.entry.js +51 -52
  81. package/dist/cjs/kol-input-date.cjs.entry.js +54 -56
  82. package/dist/cjs/kol-input-email.cjs.entry.js +54 -55
  83. package/dist/cjs/kol-input-file.cjs.entry.js +49 -50
  84. package/dist/cjs/kol-input-number.cjs.entry.js +56 -57
  85. package/dist/cjs/kol-input-password.cjs.entry.js +54 -55
  86. package/dist/cjs/kol-input-radio.cjs.entry.js +50 -53
  87. package/dist/cjs/kol-input-range.cjs.entry.js +48 -50
  88. package/dist/cjs/kol-input-text.cjs.entry.js +55 -56
  89. package/dist/cjs/kol-kolibri.cjs.entry.js +13 -16
  90. package/dist/cjs/kol-link-button.cjs.entry.js +34 -36
  91. package/dist/cjs/kol-link.cjs.entry.js +33 -35
  92. package/dist/cjs/kol-meter.cjs.entry.js +22 -25
  93. package/dist/cjs/kol-modal.cjs.entry.js +38 -41
  94. package/dist/cjs/kol-nav.cjs.entry.js +50 -53
  95. package/dist/cjs/kol-pagination.cjs.entry.js +55 -58
  96. package/dist/cjs/kol-popover-button.cjs.entry.js +34 -36
  97. package/dist/cjs/kol-progress.cjs.entry.js +22 -19
  98. package/dist/cjs/kol-quote.cjs.entry.js +13 -15
  99. package/dist/cjs/kol-select.cjs.entry.js +47 -49
  100. package/dist/cjs/kol-single-select.cjs.entry.js +59 -56
  101. package/dist/cjs/kol-skip-nav.cjs.entry.js +37 -40
  102. package/dist/cjs/kol-spin.cjs.entry.js +16 -19
  103. package/dist/cjs/kol-split-button.cjs.entry.js +39 -41
  104. package/dist/cjs/kol-table-stateful.cjs.entry.js +74 -75
  105. package/dist/cjs/kol-table-stateless.cjs.entry.js +54 -66
  106. package/dist/cjs/kol-tabs.cjs.entry.js +50 -56
  107. package/dist/cjs/kol-textarea.cjs.entry.js +55 -55
  108. package/dist/cjs/kol-toast-container.cjs.entry.js +24 -28
  109. package/dist/cjs/kol-toolbar.cjs.entry.js +57 -56
  110. package/dist/cjs/kol-tree-item.cjs.entry.js +38 -38
  111. package/dist/cjs/kol-tree.cjs.entry.js +35 -25
  112. package/dist/cjs/kol-version.cjs.entry.js +25 -28
  113. package/dist/cjs/kolibri.cjs.js +6 -5
  114. package/dist/cjs/{label-vVOiX4dC.js → label-0j3-2J3C.js} +4 -3
  115. package/dist/cjs/{label-hints-D6EBRW9T.js → label-hints-DEiM49uy.js} +4 -4
  116. package/dist/cjs/{label-lang-segment-CYlAqtUl.js → label-lang-segment-BBCLeyBy.js} +3 -2
  117. package/dist/cjs/{label-with-expert-slot-B9z4nqW1.js → label-with-expert-slot-D0wokf7-.js} +4 -3
  118. package/dist/cjs/{level-BAiEYu4U.js → level-xVivGv7t.js} +2 -1
  119. package/dist/cjs/{link-target-4AzB3I84.js → link-target-D9qpCovV.js} +2 -1
  120. package/dist/cjs/{links-CPNK7VZo.js → links-DlW9up_d.js} +3 -3
  121. package/dist/cjs/loader.cjs.js +5 -4
  122. package/dist/cjs/{multiple-B3ZpkzWu.js → multiple-DO-asa_4.js} +2 -1
  123. package/dist/cjs/{number-value-B2yoKlvx.js → number-value-BUKMKQvN.js} +2 -1
  124. package/dist/cjs/{open-CvoX_qxD.js → open-BVqlpoxd.js} +2 -1
  125. package/dist/cjs/{open-items-cache-B6hP2Aqy.js → open-items-cache-DuXVixiW.js} +2 -0
  126. package/dist/cjs/{options-z7FKffHh.js → options-Dg3zz7Wo.js} +2 -0
  127. package/dist/cjs/{options-B2pQC9w2.js → options-vneqbPL0.js} +3 -3
  128. package/dist/cjs/{orientation-u2cvwgBc.js → orientation-DL6G4K4r.js} +2 -1
  129. package/dist/cjs/{placeholder-C9Ngp2tQ.js → placeholder-C-ecB96f.js} +2 -1
  130. package/dist/cjs/{props-from-config-BQ2SOZlz.js → props-from-config-Bm6Pf2tK.js} +96 -16
  131. package/dist/cjs/{read-only-DfWF-Coi.js → read-only-D__auxXg.js} +2 -1
  132. package/dist/cjs/{required-CdXn16dq.js → required-DqW-WueJ.js} +2 -1
  133. package/dist/cjs/{resolve-props-B8kPPEMw.js → resolve-props-CjhxUwj-.js} +9 -9
  134. package/dist/cjs/{resolve-props-B5MED90T.js → resolve-props-DKYD6i56.js} +9 -10
  135. package/dist/cjs/{rows-Ca5ya9tG.js → rows-Z8UDqY9u.js} +2 -1
  136. package/dist/cjs/{scroll-lock-jojYHBR3.js → scroll-lock-DgqKifg3.js} +8 -7
  137. package/dist/cjs/shared-state-C2e8sL5f.js +16 -0
  138. package/dist/cjs/{smart-button-CB8qIzgQ.js → smart-button-C_S63qaB.js} +3 -3
  139. package/dist/cjs/{spell-check-DKRC8xbW.js → spell-check-CT0WE9tq.js} +2 -1
  140. package/dist/cjs/{src-C3NG0rLO.js → src-Bwu1rJi2.js} +2 -1
  141. package/dist/cjs/{step-CZNyTb2h.js → step-W8T4AA1l.js} +2 -1
  142. package/dist/cjs/{suggestions-BRclldK2.js → suggestions-C-tM7INY.js} +4 -4
  143. package/dist/cjs/{suggestions-CRyB_YCX.js → suggestions-DvPhi4lP.js} +3 -3
  144. package/dist/cjs/test-component.cjs.entry.js +3 -3
  145. package/dist/cjs/theme-store-CHGfvYB-.js +13 -0
  146. package/dist/cjs/{toggle-handler-DRPltZqQ.js → toggle-handler-DHEfrMM0.js} +13 -16
  147. package/dist/cjs/{tooltip-open-tracking-Ba0udJRU.js → tooltip-open-tracking-DaQFzT-b.js} +8 -5
  148. package/dist/cjs/{unique-nav-labels-CIAwid5V.js → unique-nav-labels-CpJcPNBO.js} +3 -3
  149. package/dist/cjs/{unit-bsoemclF.js → unit-CNVBdvOH.js} +2 -1
  150. package/dist/cjs/{validators-DuLdbf2D.js → validators-BM9XrnzJ.js} +4 -1
  151. package/dist/cjs/{value-string-DZ_FFaUt.js → value-string-DXRes-dR.js} +2 -1
  152. package/dist/cjs/{width-BklaRCqt.js → width-BAwXHART.js} +2 -1
  153. package/dist/collection/collection-manifest.json +1 -8
  154. package/dist/collection/components/abbr/component.js +2 -2
  155. package/dist/collection/components/abbr/style.css +21 -0
  156. package/dist/collection/components/accordion/component.js +2 -2
  157. package/dist/collection/components/accordion/style.css +23 -2
  158. package/dist/collection/components/alert/component.js +6 -4
  159. package/dist/collection/components/alert/style.css +23 -2
  160. package/dist/collection/components/avatar/component.js +2 -2
  161. package/dist/collection/components/avatar/style.css +21 -0
  162. package/dist/collection/components/badge/component.js +2 -2
  163. package/dist/collection/components/badge/style.css +23 -2
  164. package/dist/collection/components/breadcrumb/component.js +2 -2
  165. package/dist/collection/components/breadcrumb/style.css +23 -2
  166. package/dist/collection/components/button/component.js +1 -1
  167. package/dist/collection/components/button/style.css +23 -2
  168. package/dist/collection/components/button-link/component.js +1 -1
  169. package/dist/collection/components/button-link/style.css +23 -2
  170. package/dist/collection/components/card/component.js +2 -2
  171. package/dist/collection/components/card/style.css +26 -2
  172. package/dist/collection/components/combobox/component.js +4 -4
  173. package/dist/collection/components/combobox/style.css +23 -2
  174. package/dist/collection/components/details/component.js +2 -2
  175. package/dist/collection/components/details/style.css +23 -2
  176. package/dist/collection/components/dialog/base.js +2 -2
  177. package/dist/collection/components/dialog/component.js +2 -2
  178. package/dist/collection/components/dialog/style.css +26 -2
  179. package/dist/collection/components/drawer/component.js +2 -2
  180. package/dist/collection/components/drawer/style.css +26 -2
  181. package/dist/collection/components/form/component.js +2 -2
  182. package/dist/collection/components/form/controller.js +4 -3
  183. package/dist/collection/components/form/style.css +23 -2
  184. package/dist/collection/components/heading/component.js +2 -2
  185. package/dist/collection/components/heading/style.css +21 -0
  186. package/dist/collection/components/icon/component.js +5 -5
  187. package/dist/collection/components/icon/style.css +2 -2
  188. package/dist/collection/components/image/component.js +2 -2
  189. package/dist/collection/components/image/style.css +21 -0
  190. package/dist/collection/components/input-checkbox/component.js +13 -11
  191. package/dist/collection/components/input-checkbox/style.css +23 -2
  192. package/dist/collection/components/input-color/component.js +6 -4
  193. package/dist/collection/components/input-color/style.css +23 -2
  194. package/dist/collection/components/input-date/component.js +9 -7
  195. package/dist/collection/components/input-date/style.css +23 -2
  196. package/dist/collection/components/input-email/component.js +4 -1
  197. package/dist/collection/components/input-email/style.css +23 -2
  198. package/dist/collection/components/input-file/component.js +6 -3
  199. package/dist/collection/components/input-file/style.css +23 -2
  200. package/dist/collection/components/input-number/component.js +6 -4
  201. package/dist/collection/components/input-number/style.css +23 -2
  202. package/dist/collection/components/input-password/component.js +5 -2
  203. package/dist/collection/components/input-password/style.css +23 -2
  204. package/dist/collection/components/input-radio/component.js +2 -3
  205. package/dist/collection/components/input-radio/style.css +23 -2
  206. package/dist/collection/components/input-range/component.js +2 -2
  207. package/dist/collection/components/input-range/style.css +23 -2
  208. package/dist/collection/components/input-text/component.js +4 -2
  209. package/dist/collection/components/input-text/style.css +23 -2
  210. package/dist/collection/components/kolibri/component.js +2 -2
  211. package/dist/collection/components/kolibri/style.css +21 -0
  212. package/dist/collection/components/link/ariaCurrentService.js +9 -9
  213. package/dist/collection/components/link/component.js +2 -2
  214. package/dist/collection/components/link/style.css +23 -2
  215. package/dist/collection/components/link-button/component.js +2 -2
  216. package/dist/collection/components/link-button/style.css +23 -2
  217. package/dist/collection/components/meter/component.js +2 -2
  218. package/dist/collection/components/meter/style.css +21 -0
  219. package/dist/collection/components/modal/component.js +2 -2
  220. package/dist/collection/components/modal/style.css +26 -2
  221. package/dist/collection/components/nav/component.js +2 -2
  222. package/dist/collection/components/nav/style.css +23 -2
  223. package/dist/collection/components/pagination/component.js +10 -12
  224. package/dist/collection/components/pagination/style.css +23 -2
  225. package/dist/collection/components/popover-button/component.js +1 -1
  226. package/dist/collection/components/popover-button/style.css +23 -2
  227. package/dist/collection/components/progress/component.js +6 -3
  228. package/dist/collection/components/progress/style.css +21 -0
  229. package/dist/collection/components/quote/component.js +2 -2
  230. package/dist/collection/components/quote/style.css +21 -0
  231. package/dist/collection/components/select/component.js +1 -1
  232. package/dist/collection/components/select/style.css +23 -2
  233. package/dist/collection/components/single-select/component.js +10 -6
  234. package/dist/collection/components/single-select/style.css +23 -2
  235. package/dist/collection/components/skip-nav/component.js +2 -2
  236. package/dist/collection/components/skip-nav/style.css +23 -2
  237. package/dist/collection/components/spin/component.js +2 -2
  238. package/dist/collection/components/spin/style.css +21 -0
  239. package/dist/collection/components/split-button/component.js +1 -1
  240. package/dist/collection/components/split-button/style.css +23 -2
  241. package/dist/collection/components/table-stateful/component.js +13 -18
  242. package/dist/collection/components/table-stateful/style.css +26 -2
  243. package/dist/collection/components/table-stateless/base.js +4 -1
  244. package/dist/collection/components/table-stateless/component.js +14 -55
  245. package/dist/collection/components/table-stateless/style.css +26 -2
  246. package/dist/collection/components/tabs/component.js +8 -17
  247. package/dist/collection/components/tabs/style.css +23 -2
  248. package/dist/collection/components/textarea/component.js +5 -3
  249. package/dist/collection/components/textarea/style.css +23 -2
  250. package/dist/collection/components/toaster/shadow.js +1 -2
  251. package/dist/collection/components/toaster/style.css +23 -2
  252. package/dist/collection/components/toaster/toaster.js +2 -1
  253. package/dist/collection/components/toolbar/component.js +14 -10
  254. package/dist/collection/components/toolbar/style.css +23 -2
  255. package/dist/collection/components/tree/component.js +22 -11
  256. package/dist/collection/components/tree/style.css +21 -0
  257. package/dist/collection/components/tree-item/component.js +9 -6
  258. package/dist/collection/components/tree-item/style.css +23 -2
  259. package/dist/collection/components/version/component.js +2 -2
  260. package/dist/collection/components/version/style.css +23 -2
  261. package/dist/collection/core/bootstrap.js +8 -5
  262. package/dist/collection/core/component-names.js +52 -106
  263. package/dist/collection/core/i18n.js +7 -6
  264. package/dist/collection/core/shared-state.js +10 -0
  265. package/dist/collection/core/tag-transformer.js +27 -0
  266. package/dist/collection/core/theme-store.js +8 -0
  267. package/dist/collection/global/script.js +2 -0
  268. package/dist/collection/index.js +2 -0
  269. package/dist/collection/internal/functional-components/alert/component.js +2 -1
  270. package/dist/collection/internal/functional-components/avatar/component.js +2 -2
  271. package/dist/collection/internal/functional-components/badge/component.js +2 -1
  272. package/dist/collection/internal/functional-components/bem-root-node/component.js +16 -6
  273. package/dist/collection/internal/functional-components/breadcrumb/component.js +2 -2
  274. package/dist/collection/internal/functional-components/card/component.js +3 -1
  275. package/dist/collection/internal/functional-components/collapsible/component.js +3 -2
  276. package/dist/collection/internal/functional-components/dialog/component.js +6 -3
  277. package/dist/collection/internal/functional-components/dialog/item.js +2 -2
  278. package/dist/collection/internal/functional-components/drawer/component.js +1 -1
  279. package/dist/collection/internal/functional-components/form-association/api.js +2 -2
  280. package/dist/collection/internal/functional-components/form-association/behavior.js +18 -15
  281. package/dist/collection/internal/functional-components/form-field/base-web-component.js +0 -1
  282. package/dist/collection/internal/functional-components/form-field/custom-suggestions.js +1 -1
  283. package/dist/collection/internal/functional-components/heading/component.js +3 -4
  284. package/dist/collection/internal/functional-components/icon/api.js +2 -2
  285. package/dist/collection/internal/functional-components/icon/component.js +2 -2
  286. package/dist/collection/internal/functional-components/image/component.js +2 -4
  287. package/dist/collection/internal/functional-components/link/component.js +1 -1
  288. package/dist/collection/internal/functional-components/meter/component.js +5 -7
  289. package/dist/collection/internal/functional-components/pagination/api.js +2 -2
  290. package/dist/collection/internal/functional-components/pagination/component.js +2 -3
  291. package/dist/collection/internal/functional-components/pagination/item.js +26 -11
  292. package/dist/collection/internal/functional-components/pagination/page-size-select.js +8 -0
  293. package/dist/collection/internal/functional-components/progress/component.js +2 -1
  294. package/dist/collection/internal/functional-components/quote/component.js +2 -3
  295. package/dist/collection/internal/functional-components/single-select/component.js +2 -1
  296. package/dist/collection/internal/functional-components/skip-nav/component.js +2 -2
  297. package/dist/collection/internal/functional-components/span/component.js +3 -2
  298. package/dist/collection/internal/functional-components/table-stateless/api.js +2 -2
  299. package/dist/collection/internal/functional-components/table-stateless/component.js +5 -5
  300. package/dist/collection/internal/functional-components/table-stateless/settings.js +10 -5
  301. package/dist/collection/internal/functional-components/table-stateless/table-model.js +2 -6
  302. package/dist/collection/internal/functional-components/tabs/component.js +7 -1
  303. package/dist/collection/internal/functional-components/tree/component.js +2 -2
  304. package/dist/collection/internal/functional-components/tree-item/component.js +2 -2
  305. package/dist/collection/internal/props/helpers/validators.js +1 -0
  306. package/dist/collection/internal/props/index.js +1 -0
  307. package/dist/collection/internal/props/label-decorative.js +10 -0
  308. package/dist/collection/locales/de.js +1 -0
  309. package/dist/collection/locales/en.js +1 -0
  310. package/dist/collection/schema/bem-registry.js +59 -13
  311. package/dist/collection/schema/i18n-keys.js +29 -28
  312. package/dist/collection/schema/props/aria-details.js +1 -22
  313. package/dist/collection/schema/props/aria-labelledby.js +3 -12
  314. package/dist/collection/schema/props/index.js +1 -1
  315. package/dist/collection/schema/props/table-headers.js +1 -0
  316. package/dist/collection/utils/aria-labelledby.js +0 -12
  317. package/dist/collection/utils/markdown.js +49 -3
  318. package/dist/collection/utils/tooltip-open-tracking.js +6 -5
  319. package/dist/components/Heading.js +1 -1
  320. package/dist/components/access-and-short-key.js +1 -1
  321. package/dist/components/ariaCurrentService.js +1 -1
  322. package/dist/components/base-web-component.js +1 -1
  323. package/dist/components/base-web-component2.js +1 -1
  324. package/dist/components/base-web-component3.js +1 -1
  325. package/dist/components/base-web-component4.js +1 -1
  326. package/dist/components/base.js +1 -1
  327. package/dist/components/base2.js +1 -1
  328. package/dist/components/base3.js +1 -1
  329. package/dist/components/base4.js +1 -1
  330. package/dist/components/behavior.js +1 -1
  331. package/dist/components/behavior2.js +1 -1
  332. package/dist/components/behavior3.js +1 -1
  333. package/dist/components/behavior4.js +1 -1
  334. package/dist/components/bem-registry.js +1 -1
  335. package/dist/components/bootstrap.js +1 -1
  336. package/dist/components/color.js +1 -1
  337. package/dist/components/common.js +4 -0
  338. package/dist/components/component-names.js +1 -1
  339. package/dist/components/component.js +1 -1
  340. package/dist/components/component10.js +1 -1
  341. package/dist/components/component11.js +1 -1
  342. package/dist/components/component12.js +4 -0
  343. package/dist/components/component13.js +4 -0
  344. package/dist/components/component14.js +4 -0
  345. package/dist/components/component2.js +1 -1
  346. package/dist/components/component3.js +1 -1
  347. package/dist/components/component4.js +1 -1
  348. package/dist/components/component5.js +1 -1
  349. package/dist/components/component6.js +1 -1
  350. package/dist/components/component7.js +1 -1
  351. package/dist/components/component8.js +1 -1
  352. package/dist/components/component9.js +1 -1
  353. package/dist/components/contrast.js +1 -1
  354. package/dist/components/controller.js +1 -1
  355. package/dist/components/dev.utils.js +1 -1
  356. package/dist/components/devtools.js +1 -1
  357. package/dist/components/disabled.js +1 -1
  358. package/dist/components/element-focus.js +1 -1
  359. package/dist/components/element-interaction.js +1 -1
  360. package/dist/components/events.js +1 -1
  361. package/dist/components/field-control.js +1 -1
  362. package/dist/components/group.js +1 -1
  363. package/dist/components/has-closer.js +1 -1
  364. package/dist/components/i18n.js +1 -1
  365. package/dist/components/i18n2.js +1 -1
  366. package/dist/components/id.js +1 -1
  367. package/dist/components/index.js +1 -1
  368. package/dist/components/input-container.js +1 -1
  369. package/dist/components/input.js +1 -1
  370. package/dist/components/item-pool.js +1 -1
  371. package/dist/components/item.js +1 -1
  372. package/dist/components/item2.js +1 -1
  373. package/dist/components/item3.js +1 -1
  374. package/dist/components/item4.js +1 -1
  375. package/dist/components/keyboard.js +1 -1
  376. package/dist/components/kol-abbr.js +1 -1
  377. package/dist/components/kol-accordion.js +1 -1
  378. package/dist/components/kol-alert.js +1 -1
  379. package/dist/components/kol-avatar.js +1 -1
  380. package/dist/components/kol-badge.js +1 -1
  381. package/dist/components/kol-breadcrumb.js +1 -1
  382. package/dist/components/kol-button-link.js +1 -1
  383. package/dist/components/kol-button.js +1 -1
  384. package/dist/components/kol-card.js +1 -1
  385. package/dist/components/kol-combobox.js +1 -1
  386. package/dist/components/kol-details.js +1 -1
  387. package/dist/components/kol-dialog.js +1 -1
  388. package/dist/components/kol-drawer.js +1 -1
  389. package/dist/components/kol-form.js +1 -1
  390. package/dist/components/kol-heading.js +1 -1
  391. package/dist/components/kol-icon.js +1 -1
  392. package/dist/components/kol-image.js +1 -1
  393. package/dist/components/kol-input-checkbox.js +1 -1
  394. package/dist/components/kol-input-color.js +1 -1
  395. package/dist/components/kol-input-date.js +1 -1
  396. package/dist/components/kol-input-email.js +1 -1
  397. package/dist/components/kol-input-file.js +1 -1
  398. package/dist/components/kol-input-number.js +1 -1
  399. package/dist/components/kol-input-password.js +1 -1
  400. package/dist/components/kol-input-radio.js +1 -1
  401. package/dist/components/kol-input-range.js +1 -1
  402. package/dist/components/kol-input-text.js +1 -1
  403. package/dist/components/kol-kolibri.js +1 -1
  404. package/dist/components/kol-link-button.js +1 -1
  405. package/dist/components/kol-link.js +1 -1
  406. package/dist/components/kol-meter.js +1 -1
  407. package/dist/components/kol-modal.js +1 -1
  408. package/dist/components/kol-nav.js +1 -1
  409. package/dist/components/kol-pagination.js +1 -1
  410. package/dist/components/kol-popover-button.js +1 -1
  411. package/dist/components/kol-progress.js +1 -1
  412. package/dist/components/kol-quote.js +1 -1
  413. package/dist/components/kol-select.js +1 -1
  414. package/dist/components/kol-single-select.js +1 -1
  415. package/dist/components/kol-skip-nav.js +1 -1
  416. package/dist/components/kol-spin.js +1 -1
  417. package/dist/components/kol-split-button.js +1 -1
  418. package/dist/components/kol-table-stateful.js +1 -1
  419. package/dist/components/kol-table-stateless.js +1 -1
  420. package/dist/components/kol-tabs.js +1 -1
  421. package/dist/components/kol-textarea.js +1 -1
  422. package/dist/components/kol-toast-container.js +1 -1
  423. package/dist/components/kol-toolbar.js +1 -1
  424. package/dist/components/kol-tree-item.js +1 -1
  425. package/dist/components/kol-tree.js +1 -1
  426. package/dist/components/kol-version.js +1 -1
  427. package/dist/components/label-hints.js +1 -1
  428. package/dist/components/label-lang-segment.js +1 -1
  429. package/dist/components/label-with-expert-slot.js +1 -1
  430. package/dist/components/label.js +1 -1
  431. package/dist/components/level.js +1 -1
  432. package/dist/components/link-target.js +1 -1
  433. package/dist/components/links.js +1 -1
  434. package/dist/components/multiple.js +1 -1
  435. package/dist/components/number-value.js +1 -1
  436. package/dist/components/open-items-cache.js +1 -1
  437. package/dist/components/open.js +1 -1
  438. package/dist/components/options.js +1 -1
  439. package/dist/components/options2.js +1 -1
  440. package/dist/components/orientation.js +1 -1
  441. package/dist/components/placeholder.js +1 -1
  442. package/dist/components/read-only.js +1 -1
  443. package/dist/components/required.js +1 -1
  444. package/dist/components/resolve-props.js +1 -1
  445. package/dist/components/resolve-props2.js +1 -1
  446. package/dist/components/rows.js +1 -1
  447. package/dist/components/scroll-lock.js +1 -1
  448. package/dist/components/shared-state.js +4 -0
  449. package/dist/components/smart-button.js +1 -1
  450. package/dist/components/spell-check.js +1 -1
  451. package/dist/components/src.js +1 -1
  452. package/dist/components/step.js +1 -1
  453. package/dist/components/suggestions.js +1 -1
  454. package/dist/components/suggestions2.js +1 -1
  455. package/dist/components/test-component.js +1 -1
  456. package/dist/components/toggle-handler.js +1 -1
  457. package/dist/components/tooltip-open-tracking.js +1 -1
  458. package/dist/components/unique-nav-labels.js +1 -1
  459. package/dist/components/unit.js +1 -1
  460. package/dist/components/validators.js +1 -1
  461. package/dist/components/value-string.js +1 -1
  462. package/dist/components/width.js +1 -1
  463. package/dist/esm/{Heading-BVhjT9av.js → Heading-Cynkalqu.js} +2 -2
  464. package/dist/esm/{access-and-short-key-ijzCZfHm.js → access-and-short-key-CW0oxi_q.js} +2 -0
  465. package/dist/esm/{api-D92_O-0H.js → api-B76-Osk1.js} +21 -23
  466. package/dist/esm/{app-globals-CBGjgNge.js → app-globals-Dtu1AIr1.js} +4 -3
  467. package/dist/esm/{aria-labelledby-CLehu03h.js → aria-labelledby-DQov9uSv.js} +3 -13
  468. package/dist/esm/ariaCurrentService-B9TgWLEw.js +27 -0
  469. package/dist/esm/{base-DIcqHqMz.js → base-BZCFxul4.js} +13 -14
  470. package/dist/esm/{base-BLBSJu_1.js → base-BpgzOuy3.js} +13 -14
  471. package/dist/esm/{base-qvPPg-dn.js → base-CAiOx0qs.js} +52 -58
  472. package/dist/esm/{base-CHmdLgoO.js → base-DJ3lTPYp.js} +14 -16
  473. package/dist/esm/{base-web-component-XgI4wUyN.js → base-web-component-D16FuHFf.js} +2 -1
  474. package/dist/esm/{base-web-component-CaAexWy_.js → base-web-component-E9cH8tf8.js} +16 -18
  475. package/dist/esm/{base-web-component-DbagnM7m.js → base-web-component-aOhHFXxF.js} +10 -13
  476. package/dist/esm/{behavior-DW7_5Wxp.js → behavior-ByyBa-o8.js} +5 -5
  477. package/dist/esm/{behavior-CwUUkdaP.js → behavior-DJQFXyfi.js} +6 -6
  478. package/dist/esm/{behavior-B08CXmI4.js → behavior-DnTJtQBK.js} +29 -28
  479. package/dist/esm/{bem-registry-CWN7_O1L.js → bem-registry-CK2s_XZ4.js} +60 -14
  480. package/dist/esm/bootstrap-DUmk0ILT.js +52 -0
  481. package/dist/esm/{color-eAL9I7Wq.js → color-CEoIhjJR.js} +3 -3
  482. package/dist/esm/{component-8ALsFV4i.js → component-BPL1Mikq.js} +5 -6
  483. package/dist/esm/{component-D0mBOGjS.js → component-C0ijstyp.js} +10 -12
  484. package/dist/esm/component-C58IwTEf.js +47 -0
  485. package/dist/esm/{component-nR5Bf9G5.js → component-CAEpgoSo.js} +6 -5
  486. package/dist/esm/component-CDyoNoJe.js +17 -0
  487. package/dist/esm/{component-CdKSiR5P.js → component-CiTw4ODP.js} +6 -9
  488. package/dist/esm/component-DTV1Kuf1.js +172 -0
  489. package/dist/esm/{component-DCw1ZAE5.js → component-DeFANBua.js} +5 -7
  490. package/dist/esm/{component-DBAicJ2u.js → component-S6ib3O8N.js} +13 -16
  491. package/dist/esm/{component-BTMWoACz.js → component-XbTjo2nm.js} +11 -13
  492. package/dist/esm/component-names-Ur_UbEzI.js +115 -0
  493. package/dist/esm/{contrast-D78VGPFR.js → contrast-Ujnfz49m.js} +2 -2
  494. package/dist/esm/{controller-C3O9ohSP.js → controller-BdPVgWDs.js} +5 -5
  495. package/dist/esm/{dev.utils-wYkYn08d.js → dev.utils--eVyQ4zr.js} +1 -2
  496. package/dist/esm/{devtools-DrBkkLdP.js → devtools-CosbyboJ.js} +4 -5
  497. package/dist/esm/{disabled-Cqhc40CU.js → disabled-Cu0e92-b.js} +2 -1
  498. package/dist/esm/{element-focus-BIRmGg5W.js → element-focus-BYLFG-oz.js} +1 -0
  499. package/dist/esm/{element-interaction-sGYdEpmv.js → element-interaction-C2pgnQ6t.js} +2 -1
  500. package/dist/esm/{events-BIT-JUP2.js → events-B2UzbUT7.js} +2 -0
  501. package/dist/esm/{field-control-Cs5VvsYo.js → field-control-DbmtKHc1.js} +7 -8
  502. package/dist/esm/{group-uNo1CfbK.js → group-CqAFhkgE.js} +6 -7
  503. package/dist/esm/{has-closer-B9NQY7BK.js → has-closer-DOs1CXhp.js} +2 -1
  504. package/dist/esm/{href-JqLbNBsW.js → href-DQbHtp6T.js} +2 -1
  505. package/dist/esm/{i18n-Dl6Jjofb.js → i18n-Bcb0tuyF.js} +11 -6
  506. package/dist/esm/{i18n-DtLKn3Xt.js → i18n-Cf0DhAke.js} +2 -2
  507. package/dist/esm/{id-CIYvVaNr.js → id-BXwy9iRy.js} +2 -1
  508. package/dist/esm/{index-BKEJuyFi.js → index-Bsx5X6jK.js} +1745 -46
  509. package/dist/esm/index.js +14 -12
  510. package/dist/esm/{input-Dja5Qioc.js → input-RvLnUp6C.js} +4 -6
  511. package/dist/esm/{input-container-C2Am7LEP.js → input-container-BpG3WHug.js} +6 -9
  512. package/dist/esm/{item-D627ShRd.js → item-Cw_jdgc6.js} +14 -15
  513. package/dist/esm/{item-DIAFIFSy.js → item-DMttg5uX.js} +51 -30
  514. package/dist/esm/{item-ConW1c81.js → item-DibV9jD7.js} +8 -8
  515. package/dist/esm/{item-C4AmpdVD.js → item-KqTsA-5a.js} +8 -8
  516. package/dist/esm/{item-pool-BOxAYePG.js → item-pool-C_4Isquh.js} +2 -0
  517. package/dist/esm/{keyboard-Cnv7zP3N.js → keyboard-Cc1-_wSt.js} +2 -0
  518. package/dist/esm/kol-abbr.entry.js +11 -15
  519. package/dist/esm/kol-accordion.entry.js +22 -24
  520. package/dist/esm/kol-alert.entry.js +34 -36
  521. package/dist/esm/kol-avatar.entry.js +19 -19
  522. package/dist/esm/kol-badge.entry.js +31 -34
  523. package/dist/esm/kol-breadcrumb.entry.js +36 -39
  524. package/dist/esm/kol-button-link.entry.js +33 -35
  525. package/dist/esm/kol-button.entry.js +33 -35
  526. package/dist/esm/kol-card.entry.js +35 -38
  527. package/dist/esm/kol-combobox.entry.js +51 -53
  528. package/dist/esm/kol-details.entry.js +22 -24
  529. package/dist/esm/kol-dialog.entry.js +38 -41
  530. package/dist/esm/kol-drawer.entry.js +38 -41
  531. package/dist/esm/kol-form.entry.js +30 -33
  532. package/dist/esm/kol-heading.entry.js +17 -19
  533. package/dist/esm/kol-icon.entry.js +19 -17
  534. package/dist/esm/kol-image.entry.js +12 -14
  535. package/dist/esm/kol-input-checkbox.entry.js +57 -58
  536. package/dist/esm/kol-input-color.entry.js +51 -52
  537. package/dist/esm/kol-input-date.entry.js +53 -55
  538. package/dist/esm/kol-input-email.entry.js +54 -55
  539. package/dist/esm/kol-input-file.entry.js +49 -50
  540. package/dist/esm/kol-input-number.entry.js +55 -56
  541. package/dist/esm/kol-input-password.entry.js +53 -54
  542. package/dist/esm/kol-input-radio.entry.js +47 -50
  543. package/dist/esm/kol-input-range.entry.js +48 -50
  544. package/dist/esm/kol-input-text.entry.js +55 -56
  545. package/dist/esm/kol-kolibri.entry.js +12 -15
  546. package/dist/esm/kol-link-button.entry.js +33 -35
  547. package/dist/esm/kol-link.entry.js +33 -35
  548. package/dist/esm/kol-meter.entry.js +22 -25
  549. package/dist/esm/kol-modal.entry.js +38 -41
  550. package/dist/esm/kol-nav.entry.js +43 -46
  551. package/dist/esm/kol-pagination.entry.js +55 -58
  552. package/dist/esm/kol-popover-button.entry.js +34 -36
  553. package/dist/esm/kol-progress.entry.js +22 -19
  554. package/dist/esm/kol-quote.entry.js +13 -15
  555. package/dist/esm/kol-select.entry.js +47 -49
  556. package/dist/esm/kol-single-select.entry.js +58 -55
  557. package/dist/esm/kol-skip-nav.entry.js +35 -38
  558. package/dist/esm/kol-spin.entry.js +16 -19
  559. package/dist/esm/kol-split-button.entry.js +37 -39
  560. package/dist/esm/kol-table-stateful.entry.js +70 -71
  561. package/dist/esm/kol-table-stateless.entry.js +54 -66
  562. package/dist/esm/kol-tabs.entry.js +46 -52
  563. package/dist/esm/kol-textarea.entry.js +53 -53
  564. package/dist/esm/kol-toast-container.entry.js +22 -26
  565. package/dist/esm/kol-toolbar.entry.js +52 -51
  566. package/dist/esm/kol-tree-item.entry.js +38 -38
  567. package/dist/esm/kol-tree.entry.js +35 -25
  568. package/dist/esm/kol-version.entry.js +24 -27
  569. package/dist/esm/kolibri.js +7 -6
  570. package/dist/esm/{label-BRosRgdX.js → label-DEZIsnKw.js} +4 -3
  571. package/dist/esm/{label-hints-Jn18RUT-.js → label-hints-C--ftrg_.js} +2 -2
  572. package/dist/esm/{label-lang-segment-2_GnxjFp.js → label-lang-segment-B8ayoizG.js} +3 -2
  573. package/dist/esm/label-with-expert-slot-DXi27J4o.js +13 -0
  574. package/dist/esm/{level-CA1s1_Mf.js → level-BV6M_zmM.js} +2 -1
  575. package/dist/esm/{link-target-FX94oqMo.js → link-target-C9qzQAQg.js} +2 -1
  576. package/dist/esm/{links-DwucTqcR.js → links-Dt0OhMXb.js} +2 -2
  577. package/dist/esm/loader.js +6 -5
  578. package/dist/esm/{multiple-DqrZxybx.js → multiple-DQdOCIyW.js} +2 -1
  579. package/dist/esm/{number-value-B-SJ1dRo.js → number-value-DtZloH4P.js} +2 -1
  580. package/dist/esm/{open-DRRv1KFK.js → open-DaO7wXMr.js} +2 -1
  581. package/dist/esm/{open-items-cache-D-kml1h6.js → open-items-cache-C98FzYQ9.js} +2 -0
  582. package/dist/esm/{options-DCaUcfAu.js → options-C8BsBGBl.js} +2 -2
  583. package/dist/esm/{options-B0rBHetL.js → options-CKAHQbcF.js} +2 -0
  584. package/dist/esm/{orientation-XNOCaPwy.js → orientation-VvJMCd9m.js} +2 -1
  585. package/dist/esm/{placeholder-BeLIzdJv.js → placeholder-7pbjAn-x.js} +2 -1
  586. package/dist/esm/{props-from-config-Ci0dILpz.js → props-from-config-DVxNB2Lx.js} +84 -7
  587. package/dist/esm/{read-only-Bby9r6ZX.js → read-only-3XuQIAB8.js} +2 -1
  588. package/dist/esm/{required-hoaT7UmZ.js → required-CNgdXJ8H.js} +2 -1
  589. package/dist/esm/{resolve-props-BLZxWC3j.js → resolve-props-B1DQKjTD.js} +7 -8
  590. package/dist/esm/{resolve-props-D2KiItuv.js → resolve-props-DOaJCd7Y.js} +9 -9
  591. package/dist/esm/{rows-B0x8CR7K.js → rows-DL1whQNh.js} +2 -1
  592. package/dist/esm/{scroll-lock-Y2hf47KW.js → scroll-lock-CF_Z7MzO.js} +9 -7
  593. package/dist/esm/shared-state-sWI1upS8.js +14 -0
  594. package/dist/esm/{smart-button-CS_ZriPt.js → smart-button-BdA5-cUG.js} +2 -2
  595. package/dist/esm/{spell-check-DzgftyqL.js → spell-check-B7J-eU5K.js} +2 -1
  596. package/dist/esm/{src-DaGhmCL1.js → src-C2baLPDp.js} +2 -1
  597. package/dist/esm/{step-Bdj89bGO.js → step-DmzcVFZB.js} +2 -1
  598. package/dist/esm/{suggestions-Dy1X-Pc3.js → suggestions-BJxNFtkL.js} +2 -2
  599. package/dist/esm/{suggestions-DuqzGDve.js → suggestions-BXp8OhOi.js} +3 -3
  600. package/dist/esm/test-component.entry.js +3 -3
  601. package/dist/esm/theme-store-CEu5d_EK.js +11 -0
  602. package/dist/esm/{toggle-handler-BRLmxe1J.js → toggle-handler-D7oFDKvq.js} +12 -15
  603. package/dist/esm/tooltip-open-tracking-DXhnfmA2.js +21 -0
  604. package/dist/esm/{unique-nav-labels-h2KOu5Qy.js → unique-nav-labels-BOqpcYk4.js} +2 -2
  605. package/dist/esm/{unit-BUhhJbhT.js → unit-BFYz7QfA.js} +2 -1
  606. package/dist/esm/{validators-BVM40IEr.js → validators-DPSQyOeQ.js} +4 -2
  607. package/dist/esm/{value-string-e9pwLcS-.js → value-string-Cmozozek.js} +2 -1
  608. package/dist/esm/{width-CgYY17tL.js → width-D5-Licpp.js} +2 -1
  609. package/dist/kolibri/Heading-Cynkalqu.js +4 -0
  610. package/dist/kolibri/access-and-short-key-CW0oxi_q.js +4 -0
  611. package/dist/kolibri/api-B76-Osk1.js +4 -0
  612. package/dist/kolibri/app-globals-Dtu1AIr1.js +4 -0
  613. package/dist/kolibri/aria-labelledby-DQov9uSv.js +4 -0
  614. package/dist/kolibri/ariaCurrentService-B9TgWLEw.js +4 -0
  615. package/dist/kolibri/base-BZCFxul4.js +4 -0
  616. package/dist/kolibri/base-BpgzOuy3.js +4 -0
  617. package/dist/kolibri/base-CAiOx0qs.js +4 -0
  618. package/dist/kolibri/base-DJ3lTPYp.js +4 -0
  619. package/dist/kolibri/base-web-component-D16FuHFf.js +4 -0
  620. package/dist/kolibri/base-web-component-E9cH8tf8.js +4 -0
  621. package/dist/kolibri/base-web-component-aOhHFXxF.js +4 -0
  622. package/dist/kolibri/behavior-ByyBa-o8.js +4 -0
  623. package/dist/kolibri/behavior-DJQFXyfi.js +4 -0
  624. package/dist/kolibri/behavior-DnTJtQBK.js +4 -0
  625. package/dist/kolibri/bem-registry-CK2s_XZ4.js +4 -0
  626. package/dist/kolibri/bootstrap-DUmk0ILT.js +4 -0
  627. package/dist/kolibri/color-CEoIhjJR.js +4 -0
  628. package/dist/kolibri/component-BPL1Mikq.js +4 -0
  629. package/dist/kolibri/component-C0ijstyp.js +4 -0
  630. package/dist/kolibri/component-C58IwTEf.js +4 -0
  631. package/dist/kolibri/component-CAEpgoSo.js +4 -0
  632. package/dist/kolibri/component-CDyoNoJe.js +4 -0
  633. package/dist/kolibri/component-CiTw4ODP.js +4 -0
  634. package/dist/kolibri/component-DTV1Kuf1.js +4 -0
  635. package/dist/kolibri/component-DeFANBua.js +4 -0
  636. package/dist/kolibri/component-S6ib3O8N.js +4 -0
  637. package/dist/kolibri/component-XbTjo2nm.js +4 -0
  638. package/dist/kolibri/component-names-Ur_UbEzI.js +4 -0
  639. package/dist/kolibri/contrast-Ujnfz49m.js +4 -0
  640. package/dist/kolibri/controller-BdPVgWDs.js +4 -0
  641. package/dist/kolibri/dev.utils--eVyQ4zr.js +4 -0
  642. package/dist/kolibri/devtools-CosbyboJ.js +4 -0
  643. package/dist/kolibri/disabled-Cu0e92-b.js +4 -0
  644. package/dist/kolibri/element-focus-BYLFG-oz.js +4 -0
  645. package/dist/kolibri/element-interaction-C2pgnQ6t.js +4 -0
  646. package/dist/kolibri/events-B2UzbUT7.js +4 -0
  647. package/dist/kolibri/field-control-DbmtKHc1.js +4 -0
  648. package/dist/kolibri/group-CqAFhkgE.js +4 -0
  649. package/dist/kolibri/has-closer-DOs1CXhp.js +4 -0
  650. package/dist/kolibri/href-DQbHtp6T.js +4 -0
  651. package/dist/kolibri/i18n-Bcb0tuyF.js +4 -0
  652. package/dist/kolibri/i18n-Cf0DhAke.js +4 -0
  653. package/dist/kolibri/id-BXwy9iRy.js +4 -0
  654. package/dist/kolibri/index-Bsx5X6jK.js +6 -0
  655. package/dist/kolibri/index.esm.js +1 -1
  656. package/dist/kolibri/input-RvLnUp6C.js +4 -0
  657. package/dist/kolibri/input-container-BpG3WHug.js +4 -0
  658. package/dist/kolibri/item-Cw_jdgc6.js +4 -0
  659. package/dist/kolibri/item-DMttg5uX.js +4 -0
  660. package/dist/kolibri/item-DibV9jD7.js +4 -0
  661. package/dist/kolibri/item-KqTsA-5a.js +4 -0
  662. package/dist/kolibri/item-pool-C_4Isquh.js +4 -0
  663. package/dist/kolibri/keyboard-Cc1-_wSt.js +4 -0
  664. package/dist/kolibri/kol-abbr.entry.js +1 -1
  665. package/dist/kolibri/kol-accordion.entry.js +1 -1
  666. package/dist/kolibri/kol-alert.entry.js +1 -1
  667. package/dist/kolibri/kol-avatar.entry.js +1 -1
  668. package/dist/kolibri/kol-badge.entry.js +1 -1
  669. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  670. package/dist/kolibri/kol-button-link.entry.js +1 -1
  671. package/dist/kolibri/kol-button.entry.js +1 -1
  672. package/dist/kolibri/kol-card.entry.js +1 -1
  673. package/dist/kolibri/kol-combobox.entry.js +1 -1
  674. package/dist/kolibri/kol-details.entry.js +1 -1
  675. package/dist/kolibri/kol-dialog.entry.js +1 -1
  676. package/dist/kolibri/kol-drawer.entry.js +1 -1
  677. package/dist/kolibri/kol-form.entry.js +1 -1
  678. package/dist/kolibri/kol-heading.entry.js +1 -1
  679. package/dist/kolibri/kol-icon.entry.js +1 -1
  680. package/dist/kolibri/kol-image.entry.js +1 -1
  681. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  682. package/dist/kolibri/kol-input-color.entry.js +1 -1
  683. package/dist/kolibri/kol-input-date.entry.js +1 -1
  684. package/dist/kolibri/kol-input-email.entry.js +1 -1
  685. package/dist/kolibri/kol-input-file.entry.js +1 -1
  686. package/dist/kolibri/kol-input-number.entry.js +1 -1
  687. package/dist/kolibri/kol-input-password.entry.js +1 -1
  688. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  689. package/dist/kolibri/kol-input-range.entry.js +1 -1
  690. package/dist/kolibri/kol-input-text.entry.js +1 -1
  691. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  692. package/dist/kolibri/kol-link-button.entry.js +1 -1
  693. package/dist/kolibri/kol-link.entry.js +1 -1
  694. package/dist/kolibri/kol-meter.entry.js +1 -1
  695. package/dist/kolibri/kol-modal.entry.js +1 -1
  696. package/dist/kolibri/kol-nav.entry.js +1 -1
  697. package/dist/kolibri/kol-pagination.entry.js +1 -1
  698. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  699. package/dist/kolibri/kol-progress.entry.js +1 -1
  700. package/dist/kolibri/kol-quote.entry.js +1 -1
  701. package/dist/kolibri/kol-select.entry.js +1 -1
  702. package/dist/kolibri/kol-single-select.entry.js +1 -1
  703. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  704. package/dist/kolibri/kol-spin.entry.js +1 -1
  705. package/dist/kolibri/kol-split-button.entry.js +1 -1
  706. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  707. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  708. package/dist/kolibri/kol-tabs.entry.js +1 -1
  709. package/dist/kolibri/kol-textarea.entry.js +1 -1
  710. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  711. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  712. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  713. package/dist/kolibri/kol-tree.entry.js +1 -1
  714. package/dist/kolibri/kol-version.entry.js +1 -1
  715. package/dist/kolibri/kolibri.esm.js +1 -1
  716. package/dist/kolibri/label-DEZIsnKw.js +4 -0
  717. package/dist/kolibri/label-hints-C--ftrg_.js +4 -0
  718. package/dist/kolibri/label-lang-segment-B8ayoizG.js +4 -0
  719. package/dist/kolibri/label-with-expert-slot-DXi27J4o.js +4 -0
  720. package/dist/kolibri/level-BV6M_zmM.js +4 -0
  721. package/dist/kolibri/link-target-C9qzQAQg.js +4 -0
  722. package/dist/kolibri/links-Dt0OhMXb.js +4 -0
  723. package/dist/kolibri/multiple-DQdOCIyW.js +4 -0
  724. package/dist/kolibri/number-value-DtZloH4P.js +4 -0
  725. package/dist/kolibri/open-DaO7wXMr.js +4 -0
  726. package/dist/kolibri/open-items-cache-C98FzYQ9.js +4 -0
  727. package/dist/kolibri/options-C8BsBGBl.js +4 -0
  728. package/dist/kolibri/options-CKAHQbcF.js +4 -0
  729. package/dist/kolibri/orientation-VvJMCd9m.js +4 -0
  730. package/dist/kolibri/placeholder-7pbjAn-x.js +4 -0
  731. package/dist/kolibri/props-from-config-DVxNB2Lx.js +4 -0
  732. package/dist/kolibri/read-only-3XuQIAB8.js +4 -0
  733. package/dist/kolibri/required-CNgdXJ8H.js +4 -0
  734. package/dist/kolibri/resolve-props-B1DQKjTD.js +4 -0
  735. package/dist/kolibri/resolve-props-DOaJCd7Y.js +4 -0
  736. package/dist/kolibri/rows-DL1whQNh.js +4 -0
  737. package/dist/kolibri/scroll-lock-CF_Z7MzO.js +4 -0
  738. package/dist/kolibri/shared-state-sWI1upS8.js +4 -0
  739. package/dist/kolibri/smart-button-BdA5-cUG.js +4 -0
  740. package/dist/kolibri/spell-check-B7J-eU5K.js +4 -0
  741. package/dist/kolibri/src-C2baLPDp.js +4 -0
  742. package/dist/kolibri/step-DmzcVFZB.js +4 -0
  743. package/dist/kolibri/suggestions-BJxNFtkL.js +4 -0
  744. package/dist/kolibri/suggestions-BXp8OhOi.js +4 -0
  745. package/dist/kolibri/test-component.entry.js +1 -1
  746. package/dist/kolibri/theme-store-CEu5d_EK.js +4 -0
  747. package/dist/kolibri/toggle-handler-D7oFDKvq.js +4 -0
  748. package/dist/kolibri/tooltip-open-tracking-DXhnfmA2.js +4 -0
  749. package/dist/kolibri/unique-nav-labels-BOqpcYk4.js +4 -0
  750. package/dist/kolibri/unit-BFYz7QfA.js +4 -0
  751. package/dist/kolibri/validators-DPSQyOeQ.js +4 -0
  752. package/dist/kolibri/value-string-Cmozozek.js +4 -0
  753. package/dist/kolibri/width-D5-Licpp.js +4 -0
  754. package/dist/types/components/alert/component.d.ts +1 -0
  755. package/dist/types/components/input-date/component.d.ts +1 -1
  756. package/dist/types/components/pagination/component.d.ts +1 -1
  757. package/dist/types/components/progress/component.d.ts +1 -0
  758. package/dist/types/components/single-select/component.d.ts +1 -0
  759. package/dist/types/components/table-stateful/component.d.ts +3 -4
  760. package/dist/types/components/table-stateless/base.d.ts +2 -2
  761. package/dist/types/components/table-stateless/component.d.ts +3 -6
  762. package/dist/types/components/tabs/component.d.ts +1 -2
  763. package/dist/types/components/tree/component.d.ts +1 -0
  764. package/dist/types/components.d.ts +18 -125
  765. package/dist/types/core/component-names.d.ts +52 -53
  766. package/dist/types/core/i18n.d.ts +1 -1
  767. package/dist/types/core/shared-state.d.ts +1 -0
  768. package/dist/types/core/tag-transformer.d.ts +4 -0
  769. package/dist/types/core/theme-store.d.ts +1 -0
  770. package/dist/types/index.d.ts +3 -1
  771. package/dist/types/internal/functional-components/bem-root-node/component.d.ts +8 -4
  772. package/dist/types/internal/functional-components/button/item.d.ts +1 -1
  773. package/dist/types/internal/functional-components/dialog/component.d.ts +7 -3
  774. package/dist/types/internal/functional-components/form-association/api.d.ts +1 -1
  775. package/dist/types/internal/functional-components/form-association/behavior.d.ts +2 -2
  776. package/dist/types/internal/functional-components/form-field/custom-suggestions.d.ts +1 -0
  777. package/dist/types/internal/functional-components/icon/api.d.ts +1 -1
  778. package/dist/types/internal/functional-components/pagination/api.d.ts +2 -2
  779. package/dist/types/internal/functional-components/pagination/item.d.ts +5 -3
  780. package/dist/types/internal/functional-components/pagination/page-size-select.d.ts +1 -0
  781. package/dist/types/internal/functional-components/single-select/component.d.ts +3 -0
  782. package/dist/types/internal/functional-components/table-stateful/model.d.ts +2 -2
  783. package/dist/types/internal/functional-components/table-stateless/api.d.ts +2 -2
  784. package/dist/types/internal/functional-components/table-stateless/table-model.d.ts +4 -4
  785. package/dist/types/internal/props/helpers/validators.d.ts +2 -1
  786. package/dist/types/internal/props/index.d.ts +1 -0
  787. package/dist/types/internal/props/label-decorative.d.ts +4 -0
  788. package/dist/types/internal/props/table-headers.d.ts +2 -2
  789. package/dist/types/internal/props/table-stateful-headers.d.ts +2 -2
  790. package/dist/types/locales/de.d.ts +1 -0
  791. package/dist/types/locales/en.d.ts +1 -0
  792. package/dist/types/schema/bem-registry.d.ts +87 -23
  793. package/dist/types/schema/components/pagination.d.ts +2 -2
  794. package/dist/types/schema/components/table.d.ts +2 -3
  795. package/dist/types/schema/components/tableStateless.d.ts +5 -4
  796. package/dist/types/schema/i18n-keys.d.ts +29 -28
  797. package/dist/types/schema/index.d.ts +1 -1
  798. package/dist/types/schema/props/aria-details.d.ts +0 -2
  799. package/dist/types/schema/props/aria-labelledby.d.ts +1 -2
  800. package/dist/types/schema/props/index.d.ts +1 -1
  801. package/dist/types/schema/props/label.d.ts +1 -0
  802. package/dist/types/schema/props/table-callbacks.d.ts +3 -3
  803. package/dist/types/schema/props/table-headers.d.ts +3 -0
  804. package/dist/types/stencil-public-runtime.d.ts +1 -1
  805. package/dist/types/utils/aria-labelledby.d.ts +0 -6
  806. package/doc/badge.md +15 -0
  807. package/doc/button.md +13 -0
  808. package/doc/input-checkbox.md +15 -0
  809. package/doc/input-number.md +15 -0
  810. package/doc/link.md +13 -0
  811. package/doc/pagination.md +13 -13
  812. package/doc/quote.md +13 -0
  813. package/doc/table-stateful.md +33 -16
  814. package/doc/table-stateless.md +31 -15
  815. package/package.json +23 -15
  816. package/vscode-custom-data.json +3 -20
  817. package/dist/cjs/ariaCurrentService-3051l6MI.js +0 -28
  818. package/dist/cjs/block-bem-BI7yfoFU.js +0 -18
  819. package/dist/cjs/bootstrap-DkgMbRSL.js +0 -33
  820. package/dist/cjs/clsx-Bm_HQUnh.js +0 -54
  821. package/dist/cjs/common-C-hcIfzh.js +0 -1755
  822. package/dist/cjs/component-BEzksV1U.js +0 -9300
  823. package/dist/cjs/component-BQUKg-qY.js +0 -53
  824. package/dist/cjs/component-BlAPlTfV.js +0 -20
  825. package/dist/cjs/component-DMfcX1br.js +0 -14
  826. package/dist/cjs/component-Dkx5Zyhq.js +0 -18
  827. package/dist/cjs/component-names-BMpML1sX.js +0 -113
  828. package/dist/cjs/input-CgTL2oH6.js +0 -20
  829. package/dist/cjs/kol-click-button.cjs.entry.js +0 -55
  830. package/dist/cjs/kol-skeleton.cjs.entry.js +0 -107
  831. package/dist/cjs/name-D4qpL1m-.js +0 -10
  832. package/dist/collection/components/click-button/component.js +0 -105
  833. package/dist/collection/components/skeleton/component.js +0 -215
  834. package/dist/collection/internal/functional-components/click-button/api.js +0 -7
  835. package/dist/collection/internal/functional-components/click-button/component.js +0 -9
  836. package/dist/collection/internal/functional-components/skeleton/api.js +0 -7
  837. package/dist/collection/internal/functional-components/skeleton/component.js +0 -20
  838. package/dist/collection/schema/props/table-header-cells.js +0 -36
  839. package/dist/components/aria-labelledby.js +0 -4
  840. package/dist/components/block-bem.js +0 -4
  841. package/dist/components/clsx.js +0 -4
  842. package/dist/components/href.js +0 -4
  843. package/dist/components/kol-click-button.d.ts +0 -11
  844. package/dist/components/kol-click-button.js +0 -4
  845. package/dist/components/kol-skeleton.d.ts +0 -11
  846. package/dist/components/kol-skeleton.js +0 -4
  847. package/dist/components/name.js +0 -4
  848. package/dist/components/props-from-config.js +0 -4
  849. package/dist/esm/ariaCurrentService-YoLNpD5S.js +0 -25
  850. package/dist/esm/block-bem-BpQSY04L.js +0 -16
  851. package/dist/esm/bootstrap-B9DtStuh.js +0 -28
  852. package/dist/esm/clsx-COFh-Vc8.js +0 -52
  853. package/dist/esm/common-OzsC_6kt.js +0 -1709
  854. package/dist/esm/component-Bc1n82Y8.js +0 -16
  855. package/dist/esm/component-CZZNha2e.js +0 -9295
  856. package/dist/esm/component-Cdnq5GYF.js +0 -18
  857. package/dist/esm/component-DLSlbWg8.js +0 -12
  858. package/dist/esm/component-DeMf195P.js +0 -48
  859. package/dist/esm/component-names-CrfBV37S.js +0 -111
  860. package/dist/esm/kol-click-button.entry.js +0 -53
  861. package/dist/esm/kol-skeleton.entry.js +0 -105
  862. package/dist/esm/label-with-expert-slot-CicRes-W.js +0 -12
  863. package/dist/esm/name-B2Yf3EpX.js +0 -8
  864. package/dist/esm/tooltip-open-tracking-D3tCiiGP.js +0 -18
  865. package/dist/kolibri/Heading-BVhjT9av.js +0 -4
  866. package/dist/kolibri/access-and-short-key-ijzCZfHm.js +0 -4
  867. package/dist/kolibri/api-D92_O-0H.js +0 -4
  868. package/dist/kolibri/app-globals-CBGjgNge.js +0 -4
  869. package/dist/kolibri/aria-labelledby-CLehu03h.js +0 -4
  870. package/dist/kolibri/ariaCurrentService-YoLNpD5S.js +0 -4
  871. package/dist/kolibri/base-BLBSJu_1.js +0 -4
  872. package/dist/kolibri/base-CHmdLgoO.js +0 -4
  873. package/dist/kolibri/base-DIcqHqMz.js +0 -4
  874. package/dist/kolibri/base-qvPPg-dn.js +0 -4
  875. package/dist/kolibri/base-web-component-CaAexWy_.js +0 -4
  876. package/dist/kolibri/base-web-component-DbagnM7m.js +0 -4
  877. package/dist/kolibri/base-web-component-XgI4wUyN.js +0 -4
  878. package/dist/kolibri/behavior-B08CXmI4.js +0 -4
  879. package/dist/kolibri/behavior-CwUUkdaP.js +0 -4
  880. package/dist/kolibri/behavior-DW7_5Wxp.js +0 -4
  881. package/dist/kolibri/bem-registry-CWN7_O1L.js +0 -4
  882. package/dist/kolibri/block-bem-BpQSY04L.js +0 -4
  883. package/dist/kolibri/bootstrap-B9DtStuh.js +0 -4
  884. package/dist/kolibri/clsx-COFh-Vc8.js +0 -4
  885. package/dist/kolibri/color-eAL9I7Wq.js +0 -4
  886. package/dist/kolibri/common-OzsC_6kt.js +0 -4
  887. package/dist/kolibri/component-8ALsFV4i.js +0 -4
  888. package/dist/kolibri/component-BTMWoACz.js +0 -4
  889. package/dist/kolibri/component-Bc1n82Y8.js +0 -4
  890. package/dist/kolibri/component-CZZNha2e.js +0 -4
  891. package/dist/kolibri/component-CdKSiR5P.js +0 -4
  892. package/dist/kolibri/component-Cdnq5GYF.js +0 -4
  893. package/dist/kolibri/component-D0mBOGjS.js +0 -4
  894. package/dist/kolibri/component-DBAicJ2u.js +0 -4
  895. package/dist/kolibri/component-DCw1ZAE5.js +0 -4
  896. package/dist/kolibri/component-DLSlbWg8.js +0 -4
  897. package/dist/kolibri/component-DeMf195P.js +0 -4
  898. package/dist/kolibri/component-nR5Bf9G5.js +0 -4
  899. package/dist/kolibri/component-names-CrfBV37S.js +0 -4
  900. package/dist/kolibri/contrast-D78VGPFR.js +0 -4
  901. package/dist/kolibri/controller-C3O9ohSP.js +0 -4
  902. package/dist/kolibri/dev.utils-wYkYn08d.js +0 -4
  903. package/dist/kolibri/devtools-DrBkkLdP.js +0 -4
  904. package/dist/kolibri/disabled-Cqhc40CU.js +0 -4
  905. package/dist/kolibri/element-focus-BIRmGg5W.js +0 -4
  906. package/dist/kolibri/element-interaction-sGYdEpmv.js +0 -4
  907. package/dist/kolibri/events-BIT-JUP2.js +0 -4
  908. package/dist/kolibri/field-control-Cs5VvsYo.js +0 -4
  909. package/dist/kolibri/group-uNo1CfbK.js +0 -4
  910. package/dist/kolibri/has-closer-B9NQY7BK.js +0 -4
  911. package/dist/kolibri/href-JqLbNBsW.js +0 -4
  912. package/dist/kolibri/i18n-Dl6Jjofb.js +0 -4
  913. package/dist/kolibri/i18n-DtLKn3Xt.js +0 -4
  914. package/dist/kolibri/id-CIYvVaNr.js +0 -4
  915. package/dist/kolibri/index-BKEJuyFi.js +0 -6
  916. package/dist/kolibri/input-Dja5Qioc.js +0 -4
  917. package/dist/kolibri/input-container-C2Am7LEP.js +0 -4
  918. package/dist/kolibri/item-C4AmpdVD.js +0 -4
  919. package/dist/kolibri/item-ConW1c81.js +0 -4
  920. package/dist/kolibri/item-D627ShRd.js +0 -4
  921. package/dist/kolibri/item-DIAFIFSy.js +0 -4
  922. package/dist/kolibri/item-pool-BOxAYePG.js +0 -4
  923. package/dist/kolibri/keyboard-Cnv7zP3N.js +0 -4
  924. package/dist/kolibri/kol-click-button.entry.js +0 -4
  925. package/dist/kolibri/kol-skeleton.entry.js +0 -4
  926. package/dist/kolibri/label-BRosRgdX.js +0 -4
  927. package/dist/kolibri/label-hints-Jn18RUT-.js +0 -4
  928. package/dist/kolibri/label-lang-segment-2_GnxjFp.js +0 -4
  929. package/dist/kolibri/label-with-expert-slot-CicRes-W.js +0 -4
  930. package/dist/kolibri/level-CA1s1_Mf.js +0 -4
  931. package/dist/kolibri/link-target-FX94oqMo.js +0 -4
  932. package/dist/kolibri/links-DwucTqcR.js +0 -4
  933. package/dist/kolibri/multiple-DqrZxybx.js +0 -4
  934. package/dist/kolibri/name-B2Yf3EpX.js +0 -4
  935. package/dist/kolibri/number-value-B-SJ1dRo.js +0 -4
  936. package/dist/kolibri/open-DRRv1KFK.js +0 -4
  937. package/dist/kolibri/open-items-cache-D-kml1h6.js +0 -4
  938. package/dist/kolibri/options-B0rBHetL.js +0 -4
  939. package/dist/kolibri/options-DCaUcfAu.js +0 -4
  940. package/dist/kolibri/orientation-XNOCaPwy.js +0 -4
  941. package/dist/kolibri/placeholder-BeLIzdJv.js +0 -4
  942. package/dist/kolibri/props-from-config-Ci0dILpz.js +0 -4
  943. package/dist/kolibri/read-only-Bby9r6ZX.js +0 -4
  944. package/dist/kolibri/required-hoaT7UmZ.js +0 -4
  945. package/dist/kolibri/resolve-props-BLZxWC3j.js +0 -4
  946. package/dist/kolibri/resolve-props-D2KiItuv.js +0 -4
  947. package/dist/kolibri/rows-B0x8CR7K.js +0 -4
  948. package/dist/kolibri/scroll-lock-Y2hf47KW.js +0 -4
  949. package/dist/kolibri/smart-button-CS_ZriPt.js +0 -4
  950. package/dist/kolibri/spell-check-DzgftyqL.js +0 -4
  951. package/dist/kolibri/src-DaGhmCL1.js +0 -4
  952. package/dist/kolibri/step-Bdj89bGO.js +0 -4
  953. package/dist/kolibri/suggestions-DuqzGDve.js +0 -4
  954. package/dist/kolibri/suggestions-Dy1X-Pc3.js +0 -4
  955. package/dist/kolibri/toggle-handler-BRLmxe1J.js +0 -4
  956. package/dist/kolibri/tooltip-open-tracking-D3tCiiGP.js +0 -4
  957. package/dist/kolibri/unique-nav-labels-h2KOu5Qy.js +0 -4
  958. package/dist/kolibri/unit-BUhhJbhT.js +0 -4
  959. package/dist/kolibri/validators-BVM40IEr.js +0 -4
  960. package/dist/kolibri/value-string-e9pwLcS-.js +0 -4
  961. package/dist/kolibri/width-CgYY17tL.js +0 -4
  962. package/dist/types/components/click-button/component.d.ts +0 -15
  963. package/dist/types/components/skeleton/component.d.ts +0 -26
  964. package/dist/types/internal/functional-components/click-button/api.d.ts +0 -15
  965. package/dist/types/internal/functional-components/click-button/component.d.ts +0 -4
  966. package/dist/types/internal/functional-components/skeleton/api.d.ts +0 -29
  967. package/dist/types/internal/functional-components/skeleton/component.d.ts +0 -4
  968. package/dist/types/schema/props/table-header-cells.d.ts +0 -11
  969. package/doc/skeleton.md +0 -54
@@ -1,18 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import { a as __rest } from './tslib.es6-QNbPBOk5.js';
5
- import { h } from './index-BKEJuyFi.js';
6
- import { b as bem } from './bem-registry-CWN7_O1L.js';
7
- import { c as clsx } from './clsx-COFh-Vc8.js';
8
-
9
- const iconBem = bem.forBlock('kol-icon');
10
- const BEM_CLASS_ICON = iconBem();
11
- const BEM_CLASS_ICON__ICON = iconBem('icon');
12
- const IconFC = (_a) => {
13
- var { class: classNames, icons, label } = _a, htmlAttributes = __rest(_a, ["class", "icons", "label"]);
14
- const hasAriaLabel = (label === null || label === void 0 ? void 0 : label.length) > 0;
15
- return (h("i", Object.assign({}, htmlAttributes, { "aria-hidden": hasAriaLabel ? undefined : 'true', "aria-label": hasAriaLabel ? label : undefined, class: clsx(BEM_CLASS_ICON, BEM_CLASS_ICON__ICON, icons, classNames), role: hasAriaLabel ? 'img' : 'presentation' })));
16
- };
17
-
18
- export { IconFC as I };
@@ -1,12 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import { h } from './index-BKEJuyFi.js';
5
- import { b as bem } from './bem-registry-CWN7_O1L.js';
6
-
7
- const clickButtonBem = bem.forBlock('kol-click-button');
8
- const BEM_CLASS_CLICK_BUTTON = clickButtonBem();
9
- const BEM_CLASS_CLICK_BUTTON__LABEL = clickButtonBem('label');
10
- const ClickButtonFC = ({ label, handleClick, refButton }) => (h("button", { class: BEM_CLASS_CLICK_BUTTON, ref: refButton, onClick: handleClick }, h("span", { class: BEM_CLASS_CLICK_BUTTON__LABEL }, label)));
11
-
12
- export { ClickButtonFC as C };
@@ -1,48 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import { t as translate } from './i18n-DtLKn3Xt.js';
5
- import { r as resolveButtonProps } from './resolve-props-BLZxWC3j.js';
6
- import { h } from './index-BKEJuyFi.js';
7
- import { K as KolHeadingFc } from './Heading-BVhjT9av.js';
8
- import { b as bem } from './bem-registry-CWN7_O1L.js';
9
- import { c as clsx } from './clsx-COFh-Vc8.js';
10
- import { B as ButtonFC } from './component-BTMWoACz.js';
11
- import { a as createCallbacksPropDefinition, r as resolveFcProps } from './props-from-config-Ci0dILpz.js';
12
- import { r as renderLabelWithLang } from './component-CZZNha2e.js';
13
- import './common-OzsC_6kt.js';
14
- import { l as levelProp } from './level-CA1s1_Mf.js';
15
- import { h as hasCloserProp } from './has-closer-B9NQY7BK.js';
16
- import { h as hrefProp } from './href-JqLbNBsW.js';
17
- import { l as labelLangSegmentsProp } from './label-lang-segment-2_GnxjFp.js';
18
- import { l as linkTargetProp } from './link-target-FX94oqMo.js';
19
-
20
- const cardCallbacksProp = createCallbacksPropDefinition();
21
-
22
- const cardPropsConfig = {
23
- required: [labelLangSegmentsProp],
24
- optional: [cardCallbacksProp, hasCloserProp, hrefProp, levelProp, linkTargetProp],
25
- };
26
-
27
- function resolveCardCloseButtonProps(host) {
28
- return resolveButtonProps({
29
- _hideLabel: true,
30
- _icons: { left: { icon: 'kolicon-cross' } },
31
- _label: translate('kol-close'),
32
- _tooltipAlign: 'top',
33
- }, host);
34
- }
35
-
36
- const cardBem = bem.forBlock('kol-card');
37
- const BEM_CLASS_CARD__CLOSE_BUTTON = cardBem('close-button');
38
- const BEM_CLASS_CARD__CONTENT = cardBem('content');
39
- const BEM_CLASS_CARD__HEADER = cardBem('header');
40
- const BEM_CLASS_CARD__LINK = cardBem('link');
41
- const NOOP = () => { };
42
- const CardHeadingFC = ({ headingId, label, level }) => (h(KolHeadingFc, { class: BEM_CLASS_CARD__HEADER, id: headingId, level: level }, renderLabelWithLang(label)));
43
- const CardFC = (props, children) => {
44
- const { ariaDescriptionId, class: hostClass, closeButtonProps, handleBlur, handleClose, handleFocus, hasCloser, headingId, href, label, level, refCloseButton, refCta, refTooltip, target, } = resolveFcProps(cardPropsConfig, props);
45
- return (h("article", { "aria-labelledby": headingId, class: clsx(cardBem(), hostClass) }, href.length > 0 ? (h("a", { class: BEM_CLASS_CARD__LINK, href: href, target: target || undefined, onBlur: handleBlur, onFocus: handleFocus, ref: refCta }, h(CardHeadingFC, { headingId: headingId, label: label, level: level }))) : (h(CardHeadingFC, { headingId: headingId, label: label, level: level })), h("div", { class: BEM_CLASS_CARD__CONTENT }, children), hasCloser && (h("div", { class: clsx(BEM_CLASS_CARD__CLOSE_BUTTON, 'kol-close-button') }, h(ButtonFC, Object.assign({}, closeButtonProps, { ariaDescriptionId: ariaDescriptionId, handleBlur: NOOP, handleClick: handleClose, handleFocus: NOOP, handleMouseDown: NOOP, refButton: refCloseButton, refTooltip: refTooltip }))))));
46
- };
47
-
48
- export { CardFC as C, cardCallbacksProp as a, cardPropsConfig as c, resolveCardCloseButtonProps as r };
@@ -1,111 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- let KolAbbrTag = 'kol-abbr';
5
- let KolAccordionTag = 'kol-accordion';
6
- let KolAlertTag = 'kol-alert';
7
- let KolAvatarTag = 'kol-avatar';
8
- let KolBadgeTag = 'kol-badge';
9
- let KolBreadcrumbTag = 'kol-breadcrumb';
10
- let KolButtonLinkTag = 'kol-button-link';
11
- let KolButtonTag = 'kol-button';
12
- let KolCardTag = 'kol-card';
13
- let KolComboboxTag = 'kol-combobox';
14
- let KolDetailsTag = 'kol-details';
15
- let KolDialogTag = 'kol-dialog';
16
- let KolDrawerTag = 'kol-drawer';
17
- let KolFormTag = 'kol-form';
18
- let KolHeadingTag = 'kol-heading';
19
- let KolIconTag = 'kol-icon';
20
- let KolImageTag = 'kol-image';
21
- let KolInputCheckboxTag = 'kol-input-checkbox';
22
- let KolInputColorTag = 'kol-input-color';
23
- let KolInputDateTag = 'kol-input-date';
24
- let KolInputEmailTag = 'kol-input-email';
25
- let KolInputFileTag = 'kol-input-file';
26
- let KolInputNumberTag = 'kol-input-number';
27
- let KolInputPasswordTag = 'kol-input-password';
28
- let KolInputRadioTag = 'kol-input-radio';
29
- let KolInputRangeTag = 'kol-input-range';
30
- let KolInputTag = 'kol-input';
31
- let KolInputTextTag = 'kol-input-text';
32
- let KolKolibriTag = 'kol-kolibri';
33
- let KolLinkButtonTag = 'kol-link-button';
34
- let KolLinkTag = 'kol-link';
35
- let KolMeterTag = 'kol-meter';
36
- let KolModalTag = 'kol-modal';
37
- let KolNavTag = 'kol-nav';
38
- let KolPaginationTag = 'kol-pagination';
39
- let KolPopoverButtonTag = 'kol-popover-button';
40
- let KolProgressTag = 'kol-progress';
41
- let KolQuoteTag = 'kol-quote';
42
- let KolSelectTag = 'kol-select';
43
- let KolSingleSelectTag = 'kol-single-select';
44
- let KolSkipNavTag = 'kol-skip-nav';
45
- let KolSpinTag = 'kol-spin';
46
- let KolSplitButtonTag = 'kol-split-button';
47
- let KolTableStatefulTag = 'kol-table-stateful';
48
- let KolTableStatelessTag = 'kol-table-stateless';
49
- let KolTabsTag = 'kol-tabs';
50
- let KolTextareaTag = 'kol-textarea';
51
- let KolToastContainerTag = 'kol-toast-container';
52
- let KolToolbarTag = 'kol-toolbar';
53
- let KolTreeItemTag = 'kol-tree-item';
54
- let KolTreeTag = 'kol-tree';
55
- let KolVersionTag = 'kol-version';
56
- const setCustomTagNames = (transformTagName) => {
57
- KolAbbrTag = transformTagName(KolAbbrTag);
58
- KolAccordionTag = transformTagName(KolAccordionTag);
59
- KolAlertTag = transformTagName(KolAlertTag);
60
- KolAvatarTag = transformTagName(KolAvatarTag);
61
- KolBadgeTag = transformTagName(KolBadgeTag);
62
- KolBreadcrumbTag = transformTagName(KolBreadcrumbTag);
63
- KolButtonLinkTag = transformTagName(KolButtonLinkTag);
64
- KolButtonTag = transformTagName(KolButtonTag);
65
- KolCardTag = transformTagName(KolCardTag);
66
- KolComboboxTag = transformTagName(KolComboboxTag);
67
- KolDetailsTag = transformTagName(KolDetailsTag);
68
- KolDialogTag = transformTagName(KolDialogTag);
69
- KolDrawerTag = transformTagName(KolDrawerTag);
70
- KolFormTag = transformTagName(KolFormTag);
71
- KolHeadingTag = transformTagName(KolHeadingTag);
72
- KolIconTag = transformTagName(KolIconTag);
73
- KolImageTag = transformTagName(KolImageTag);
74
- KolInputCheckboxTag = transformTagName(KolInputCheckboxTag);
75
- KolInputColorTag = transformTagName(KolInputColorTag);
76
- KolInputDateTag = transformTagName(KolInputDateTag);
77
- KolInputEmailTag = transformTagName(KolInputEmailTag);
78
- KolInputFileTag = transformTagName(KolInputFileTag);
79
- KolInputNumberTag = transformTagName(KolInputNumberTag);
80
- KolInputPasswordTag = transformTagName(KolInputPasswordTag);
81
- KolInputRadioTag = transformTagName(KolInputRadioTag);
82
- KolInputRangeTag = transformTagName(KolInputRangeTag);
83
- KolInputTag = transformTagName(KolInputTag);
84
- KolInputTextTag = transformTagName(KolInputTextTag);
85
- KolKolibriTag = transformTagName(KolKolibriTag);
86
- KolLinkButtonTag = transformTagName(KolLinkButtonTag);
87
- KolLinkTag = transformTagName(KolLinkTag);
88
- KolMeterTag = transformTagName(KolMeterTag);
89
- KolModalTag = transformTagName(KolModalTag);
90
- KolNavTag = transformTagName(KolNavTag);
91
- KolPaginationTag = transformTagName(KolPaginationTag);
92
- KolPopoverButtonTag = transformTagName(KolPopoverButtonTag);
93
- KolProgressTag = transformTagName(KolProgressTag);
94
- KolQuoteTag = transformTagName(KolQuoteTag);
95
- KolSelectTag = transformTagName(KolSelectTag);
96
- KolSingleSelectTag = transformTagName(KolSingleSelectTag);
97
- KolSkipNavTag = transformTagName(KolSkipNavTag);
98
- KolSpinTag = transformTagName(KolSpinTag);
99
- KolSplitButtonTag = transformTagName(KolSplitButtonTag);
100
- KolTableStatefulTag = transformTagName(KolTableStatefulTag);
101
- KolTableStatelessTag = transformTagName(KolTableStatelessTag);
102
- KolTabsTag = transformTagName(KolTabsTag);
103
- KolTextareaTag = transformTagName(KolTextareaTag);
104
- KolToastContainerTag = transformTagName(KolToastContainerTag);
105
- KolToolbarTag = transformTagName(KolToolbarTag);
106
- KolTreeItemTag = transformTagName(KolTreeItemTag);
107
- KolTreeTag = transformTagName(KolTreeTag);
108
- KolVersionTag = transformTagName(KolVersionTag);
109
- };
110
-
111
- export { KolToastContainerTag as K, KolFormTag as a, KolLinkTag as b, KolBadgeTag as c, KolInputNumberTag as d, KolInputCheckboxTag as e, KolButtonTag as f, KolTreeItemTag as g, KolTreeTag as h, setCustomTagNames as s };
@@ -1,53 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import { r as registerInstance, h, H as Host } from './index-BKEJuyFi.js';
5
- import { _ as __decorate } from './tslib.es6-QNbPBOk5.js';
6
- import { B as BaseWebComponent } from './base-web-component-XgI4wUyN.js';
7
- import './common-OzsC_6kt.js';
8
- import './props-from-config-Ci0dILpz.js';
9
- import { l as labelProp } from './label-BRosRgdX.js';
10
- import { C as ClickButtonFC } from './component-DLSlbWg8.js';
11
- import { d as delegateFocus, c as createCtaRef } from './element-interaction-sGYdEpmv.js';
12
- import './validators-BVM40IEr.js';
13
- import './label-hints-Jn18RUT-.js';
14
- import './bem-registry-CWN7_O1L.js';
15
- import './element-focus-BIRmGg5W.js';
16
-
17
- const clickButtonPropsConfig = {
18
- required: [labelProp],
19
- };
20
-
21
- const KolClickButton = class extends BaseWebComponent {
22
- constructor(hostRef) {
23
- super();
24
- registerInstance(this, hostRef);
25
- this.buttonRef = createCtaRef();
26
- this.propsConfig = clickButtonPropsConfig;
27
- this.handleClick = () => {
28
- console.log(this, 'button clicked');
29
- };
30
- }
31
- watchLabel(value) {
32
- labelProp.apply(value, (v) => this.setRenderProp('label', v), this.isRequired('label'));
33
- }
34
- focus(options) {
35
- return Promise.resolve();
36
- }
37
- componentWillLoad() {
38
- labelProp.apply(this._label, (v) => this.setRenderProp('label', v), this.isRequired('label'));
39
- }
40
- render() {
41
- return (h(Host, { key: 'f51fda05ea6388027a2560614614c9af7f4bd36c' }, h(ClickButtonFC, { key: '968939ea3a46bbbf9d59fec87aaa1154a63699f5', label: this.getRenderProp('label'), refButton: this.buttonRef, handleClick: this.handleClick })));
42
- }
43
- static get watchers() { return {
44
- "_label": [{
45
- "watchLabel": 0
46
- }]
47
- }; }
48
- };
49
- __decorate([
50
- delegateFocus('buttonRef')
51
- ], KolClickButton.prototype, "focus", null);
52
-
53
- export { KolClickButton as kol_click_button };
@@ -1,105 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import { h, r as registerInstance, c as createEvent, H as Host } from './index-BKEJuyFi.js';
5
- import { _ as __decorate } from './tslib.es6-QNbPBOk5.js';
6
- import { B as BaseWebComponent } from './base-web-component-XgI4wUyN.js';
7
- import { L as Log } from './common-OzsC_6kt.js';
8
- import './props-from-config-Ci0dILpz.js';
9
- import { n as nameProp } from './name-B2Yf3EpX.js';
10
- import { b as bem } from './bem-registry-CWN7_O1L.js';
11
- import { C as ClickButtonFC } from './component-DLSlbWg8.js';
12
- import { d as delegateFocus, c as createCtaRef } from './element-interaction-sGYdEpmv.js';
13
- import './element-focus-BIRmGg5W.js';
14
-
15
- const skeletonPropsConfig = {
16
- required: [nameProp],
17
- };
18
-
19
- const skeletonBem = bem.forBlock('kol-skeleton');
20
- const BEM_CLASS_SKELETON__ACTIONS = skeletonBem('actions');
21
- const BEM_CLASS_SKELETON__CONTAINER = skeletonBem('container');
22
- const BEM_CLASS_SKELETON__COUNTER = skeletonBem('counter');
23
- const BEM_CLASS_SKELETON__NAME = skeletonBem('name');
24
- const SkeletonFC = (props) => {
25
- const { count, label, name, show, handleClick, refButton } = props;
26
- const hasName = !!(show && (name === null || name === void 0 ? void 0 : name.trim()));
27
- const BEM_CLASS_ROOT = skeletonBem({
28
- 'has-name': hasName,
29
- 'is-hidden': !show,
30
- });
31
- return (h("div", { class: BEM_CLASS_ROOT }, h("div", { class: BEM_CLASS_SKELETON__CONTAINER }, hasName && h("span", { class: BEM_CLASS_SKELETON__NAME }, name), h("div", { class: BEM_CLASS_SKELETON__COUNTER }, "Count: ", count)), h("div", { class: BEM_CLASS_SKELETON__ACTIONS }, h(ClickButtonFC, { label: label, handleClick: handleClick, refButton: refButton }))));
32
- };
33
-
34
- const KolSkeleton = class extends BaseWebComponent {
35
- constructor(hostRef) {
36
- super();
37
- registerInstance(this, hostRef);
38
- this.loaded = createEvent(this, "loaded");
39
- this.rendered = createEvent(this, "rendered");
40
- this.count = 0;
41
- this.label = 'Label';
42
- this.show = true;
43
- this.buttonRef = createCtaRef();
44
- this.propsConfig = skeletonPropsConfig;
45
- this.handleClick = () => {
46
- var _a;
47
- Log.debug('Button clicked, count should be increased');
48
- this.setState('count', ((_a = this.getState('count')) !== null && _a !== void 0 ? _a : 0) + 1);
49
- };
50
- }
51
- watchName(value) {
52
- nameProp.apply(value, (v) => this.setRenderProp('name', v));
53
- }
54
- focus(options) {
55
- return Promise.resolve();
56
- }
57
- async toggle() {
58
- var _a;
59
- this.setState('show', !((_a = this.getState('show')) !== null && _a !== void 0 ? _a : false));
60
- return Promise.resolve();
61
- }
62
- componentWillLoad() {
63
- nameProp.apply(this._name, (v) => this.setRenderProp('name', v));
64
- this.intervalId = setInterval(() => {
65
- var _a;
66
- this.loaded.emit((_a = this.getState('count')) !== null && _a !== void 0 ? _a : 0);
67
- }, 2000);
68
- }
69
- componentDidLoad() {
70
- requestAnimationFrame(() => {
71
- this.rendered.emit();
72
- });
73
- }
74
- disconnectedCallback() {
75
- if (this.intervalId) {
76
- clearInterval(this.intervalId);
77
- this.intervalId = undefined;
78
- }
79
- }
80
- handleKeyDown(event) {
81
- if (event.key === 'Enter' || event.key === ' ') {
82
- Log.debug('button pressed');
83
- this.handleClick();
84
- }
85
- }
86
- onKeydown(event) {
87
- if (event.key === 'Escape') {
88
- Log.debug('Show should be toggled');
89
- void this.toggle();
90
- }
91
- }
92
- render() {
93
- return (h(Host, { key: '2a3824454e635829ec4cac68796fdfe24eab3ddb' }, h(SkeletonFC, { key: 'f87599792931970772f66cc6d6acfe37290eb042', count: this.count, label: this.label, name: this.getRenderProp('name'), handleClick: this.handleClick, onLoaded: this.loaded, onRendered: this.rendered, show: this.show, refButton: this.buttonRef })));
94
- }
95
- static get watchers() { return {
96
- "_name": [{
97
- "watchName": 0
98
- }]
99
- }; }
100
- };
101
- __decorate([
102
- delegateFocus('buttonRef')
103
- ], KolSkeleton.prototype, "focus", null);
104
-
105
- export { KolSkeleton as kol_skeleton };
@@ -1,12 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import { c as createPropDefinition, h as normalizeLabelSegments } from './props-from-config-Ci0dILpz.js';
5
- import { a as isValidLabelWithExpertSlot } from './validators-BVM40IEr.js';
6
- import { l as labelHints } from './label-hints-Jn18RUT-.js';
7
-
8
- const labelWithExpertSlotProp = createPropDefinition('label', '', normalizeLabelSegments, isValidLabelWithExpertSlot, {
9
- hints: labelHints,
10
- });
11
-
12
- export { labelWithExpertSlotProp as l };
@@ -1,8 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import { c as createPropDefinition, b as normalizeString } from './props-from-config-Ci0dILpz.js';
5
-
6
- const nameProp = createPropDefinition('name', '', normalizeString);
7
-
8
- export { nameProp as n };
@@ -1,18 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- let openTooltips = 0;
5
- const tooltipOpened = () => {
6
- openTooltips++;
7
- };
8
- const tooltipClosed = () => {
9
- openTooltips = Math.max(0, openTooltips - 1);
10
- };
11
- const handleCancelOverlay = (event) => {
12
- if (openTooltips > 0) {
13
- event.preventDefault();
14
- }
15
- };
16
- const isTooltipOpen = () => openTooltips > 0;
17
-
18
- export { tooltipOpened as a, handleCancelOverlay as h, isTooltipOpen as i, tooltipClosed as t };
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{a as e}from"./tslib.es6-QNbPBOk5.js";import{h as s}from"./index-BKEJuyFi.js";import{c as l}from"./clsx-COFh-Vc8.js";const a=1;function r(e){return function(e){return e>=a&&e<=6}(e)?`h${e}`:"strong"}const o=(o,n)=>{var{class:c,level:t=a}=o,i=e(o,["class","level"]);const d=r(t);return s(d,Object.assign({class:l("kol-headline",`kol-headline--${d}`,c)},i),n)},n=(a,r)=>{var{class:o}=a,n=e(a,["class"]);return s("p",Object.assign({class:l("kol-headline kol-headline--group kol-headline--secondary",o)},n),r)},c=(r,c)=>{var{secondaryHeadline:t,level:i=a,class:d,HeadingGroupProps:p={},SecondaryHeadlineProps:u={}}=r,h=e(r,["secondaryHeadline","level","class","HeadingGroupProps","SecondaryHeadlineProps"]);const j=Object.assign({level:i},h);if(!t)return s(o,Object.assign({class:l(d,"kol-headline--single")},j),c);const{class:b}=p,g=e(p,["class"]),k=Object.assign({class:l("kol-heading-group",b)},g);return s("hgroup",Object.assign({},k),s(o,Object.assign({class:l(d,"kol-headline--group","kol-headline--primary")},j),c),s(n,Object.assign({},u),t))};export{c as K,r as g}
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- const e=(e,o)=>{if(e&&o)throw new Error("AccessKey and ShortKey are used. Only one is allowed.")};export{e as v}
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{a as e}from"./tslib.es6-QNbPBOk5.js";import{p as i,j as t,D as o}from"./common-OzsC_6kt.js";import{S as s,b as l,s as r}from"./component-CZZNha2e.js";import{r as a}from"./aria-labelledby-CLehu03h.js";import{c as n,n as d,b as h,a as c,t as p}from"./props-from-config-Ci0dILpz.js";import{a as u,c as m,n as b}from"./dev.utils-wYkYn08d.js";import{K as v,d as f}from"./events-BIT-JUP2.js";import{F as g,a as y}from"./behavior-B08CXmI4.js";import{d as j}from"./disabled-Cqhc40CU.js";import{T as B,k as L,h as _,e as O}from"./component-8ALsFV4i.js";import{l as C}from"./label-with-expert-slot-CicRes-W.js";import{n as N}from"./name-B2Yf3EpX.js";import{B as F}from"./base-web-component-XgI4wUyN.js";import{c as T}from"./item-C4AmpdVD.js";import{c as k}from"./item-D627ShRd.js";import{T as K}from"./behavior-CwUUkdaP.js";import{h as P}from"./index-BKEJuyFi.js";import{t as w}from"./i18n-DtLKn3Xt.js";import{b as x}from"./bem-registry-CWN7_O1L.js";import{c as A}from"./clsx-COFh-Vc8.js";import{B as D}from"./component-Bc1n82Y8.js";import{P as I}from"./component-CdKSiR5P.js";import{A as S}from"./component-D0mBOGjS.js";function H(e,i){return Boolean(e)&&!0===i}function M(e){var i;return"string"==typeof e?"error":null!==(i=null==e?void 0:e._type)&&void 0!==i?i:"error"}const E=n("hideMsg",!1,d),q=n("hint","",h),z=n("infoPopover",void 0,(function(e){if("object"==typeof e&&null!==e)return e;throw new Error("Invalid info popover: "+typeof e)})),U=c(),$=n("msg",void 0,(function(e){if("string"==typeof e)try{return i(e)}catch(i){return e}return e}),(function(e){return void 0===e||("string"==typeof e?e.length>0:t(e)&&o(e._description,1))})),R=n("touched",!1,d),V=i=>{var{id:t,class:o,hint:s,baseClassName:l="kol-form-field"}=i,r=e(i,["id","class","hint","baseClassName"]);return s?P("span",Object.assign({class:A(`${l}__hint`,o),id:u(t||"","hint")},r),s):null},X=i=>{var{component:t="label",id:o,baseClassName:r="kol-form-field",class:a,accessKey:n,shortKey:d,label:h,hideLabel:c,hasExpertSlot:p,omitId:m,showBadge:b=!0,readOnly:v,infoPopover:f}=i,g=e(i,["component","id","baseClassName","class","accessKey","shortKey","label","hideLabel","hasExpertSlot","omitId","showBadge","readOnly","infoPopover"]);const y=!p&&c,j=!1===b?void 0:l(n,d);return P(t,Object.assign({},g,{class:A(`${r}__label`,a),id:y||m?void 0:u(o,"label"),hidden:y,htmlFor:"legend"===t?void 0:o}),P(s,{class:`${r}__label-text`,label:p?"":null!=h?h:"",badgeText:j},P("slot",{name:"expert"})),!p&&v&&P("span",{class:`${r}__label__read-only`,"aria-hidden":"true"},"(",w("kol-readonly"),")"),!p&&f&&P("span",null,P(I,Object.assign({},f.popoverButton),P("div",{class:"kol-popover-button__popover--styled"},f.content))))},Y=t=>{var o,s,{alert:l,hideMsg:r,msg:a,id:n,class:d}=t,h=e(t,["alert","hideMsg","msg","id","class"]);const c=function(e){if("string"==typeof e)try{return i(e)}catch(i){return{_description:e,_type:"error"}}return e&&"object"==typeof e&&!("_type"in e)?Object.assign(Object.assign({},e),{_type:"error"}):e}(a);return P(S,Object.assign({alert:!r&&(null!==(o=null==c?void 0:c._alert)&&void 0!==o?o:!0===l),class:A("kol-form-field__msg",r&&"visually-hidden",d),closerAriaDescriptionId:b(),handleCloserClick:()=>{},hasCloser:!1,headingId:m("alert-heading"),id:u(n,"msg"),label:"",level:0,refCloserButton:()=>{},refCloserTooltip:()=>{},type:null!==(s=null==c?void 0:c._type)&&void 0!==s?s:"error",variant:"msg"},h),(null==c?void 0:c._description)||void 0)},J=x.forBlock("kol-form-field"),W=({hideLabel:e,label:i,renderNoTooltip:t})=>!t&&!r(i)&&!0===e,Z=e=>{const i=M(e);return{[i]:!0,[`msg-type-${i}`]:!0}},G=(i,t)=>{const{renderNoLabel:o,renderNoTooltip:s,renderNoHint:a,id:n,required:d,alert:h,disabled:c,class:p,msg:m,hideMsg:b,hideLabel:v,label:f,infoPopover:g,hint:y,accessKey:j,shortKey:_,counter:O,readOnly:C,touched:N,maxLength:F,ariaDescribedBy:T,showBadge:k,tooltipAlign:K,variant:x,component:I="div",orientation:S,refInput:M,refTooltip:E}=i,q=e(i,["renderNoLabel","renderNoTooltip","renderNoHint","id","required","alert","disabled","class","msg","hideMsg","hideLabel","label","infoPopover","hint","accessKey","shortKey","counter","readOnly","touched","maxLength","ariaDescribedBy","showBadge","tooltipAlign","variant","component","orientation","refInput","refTooltip"]),z=r(f),U=H(m,N),$=l(j,_),R=W({hideLabel:v,label:f,renderNoTooltip:s}),G="fieldset"===I;return P(D,Object.assign({component:I,block:"kol-form-field",modifiers:Object.assign({disabled:Boolean(c),required:Boolean(d),touched:Boolean(N),"hide-label":Boolean(v),"read-only":Boolean(C),"hidden-msg":Boolean(b)},U?Z(m):{}),class:A(x&&L(x,"form-field"),p),disabled:!(!G||!c)||void 0,"aria-describedby":T},q),!o&&P(X,{component:G?"legend":"label",class:G?"kol-form-field__label--legend":void 0,id:n,hasExpertSlot:z,hideLabel:v,label:f,accessKey:j,shortKey:_,readOnly:C,showBadge:k,infoPopover:g}),P("div",{class:J("input",{"orientation-horizontal":"horizontal"===S,"orientation-vertical":"vertical"===S}),ref:M},t,R&&P("div",{class:J("tooltip")},P(B,{badgeText:$||"",label:f,align:K,id:u(n,"label"),refFloating:E}))),O&&!("soft"===O.maxLengthBehavior&&"number"!=typeof O.maxLength)&&P("div",{class:J("counter")},P("span",{"aria-hidden":"true",class:J("counter"),ref:O.visualRef}),P("span",{"aria-live":"polite",class:"visually-hidden",id:u(n,"counter"),ref:O.ariaRef})),U&&P(Y,{id:n,alert:h,hideMsg:b,msg:m}),!a&&P(V,{id:n,hint:y}),"number"==typeof F&&!O&&P("span",{id:u(n,"character-limit-hint"),class:"visually-hidden"},w("kol-character-limit-hint",{placeholders:{limit:String(F)}})))};class Q extends F{constructor(){super(...arguments),this.tooltipBehavior=new K(F.stateLess),this.smartButton=T((()=>this.host)),this.infoPopover=k({getFlagHost:()=>this.host,getOpen:()=>!0===this.infoPopoverOpen,setOpen:e=>{this.infoPopoverOpen=e}}),this.focusEventSent=!1,this.handleChange=(e,i)=>{var t,o;e.stopPropagation(),void 0===i&&(i=e.target.value),this.emit(v.change,i),null===(o=null===(t=this._on)||void 0===t?void 0:t.onChange)||void 0===o||o.call(t,e,i)},this.handleInput=(e,i)=>{var t,o;e.stopPropagation(),void 0===i&&(i=e.target.value),this.emit(v.input,i),this.formAssociation.setFormAssociatedValue(i),null===(o=null===(t=this._on)||void 0===t?void 0:t.onInput)||void 0===o||o.call(t,e,i)},this.handleClick=e=>{var i,t;this.emit(v.click),null===(t=null===(i=this._on)||void 0===i?void 0:i.onClick)||void 0===t||t.call(i,e)},this.handleFocus=e=>{var i,t;this.focusEventSent||(this.emit(v.focus),null===(t=null===(i=this._on)||void 0===i?void 0:i.onFocus)||void 0===t||t.call(i,e),this.focusEventSent=!0),this.shared.setState("inputHasFocus",!0)},this.handleBlur=e=>{this.handleFocusLeave(e),this.shared.setState("inputHasFocus",!1)},this.handleKeyDown=e=>{var i,t;this.emit(v.keydown),null===(t=null===(i=this._on)||void 0===i?void 0:i.onKeyDown)||void 0===t||t.call(i,e)},this.setInputRef=e=>{this.tooltipAnchor=e,e&&this.isTooltipShown()&&(this.tooltipBehavior.initContext(e),this.tooltipBehavior.syncListeners(void 0,e,!0))},this.setTooltipRef=e=>{this.tooltipBehavior.setTooltipElementRef(e)}}get shared(){return this}initFormAssociation(e,i){this.formAssociation=new g(F.stateLess,{host:this.host,type:e,name:i})}syncFormField(){this.smartButton.syncListeners(),this.infoPopover.syncListeners(),this.syncAriaDetails()}destroyFormField(){this.tooltipBehavior.destroy(),this.smartButton.destroy(),this.infoPopover.destroy()}connectedCallback(){this.syncFormField(),this.tooltipAnchor&&this.isTooltipShown()&&(this.tooltipBehavior.initContext(this.tooltipAnchor),this.tooltipBehavior.syncListeners(void 0,this.tooltipAnchor,!0))}getInfoPopover(){const i=this.shared.getRenderProp("infoPopover");if(!i)return;const{_content:t}=i,o=e(i,["_content"]);return{popoverButton:this.infoPopover.getFcProps(Object.assign(Object.assign({_variant:"ghost"},o),{_hideLabel:!0,_inline:!0})),content:t}}getSmartButtonFcProps(e,i){if("object"==typeof e&&null!==e)return this.smartButton.getFcProps(Object.assign({_hideLabel:!0,_disabled:i},e),{class:"kol-input-container__smart-button"})}applyAriaDetails(e){y.apply(e,(e=>this.shared.setRenderProp("ariaDetails",e))),this.formAssociation.watchAriaDetails(e),this.syncAriaDetails()}syncAriaDetails(){var e,i,t,o;const s=null===(i=null===(e=this.host)||void 0===e?void 0:e.shadowRoot)||void 0===i?void 0:i.querySelector("input, select, textarea");if(!s||!("ariaDetailsElements"in s))return;const l=a(this.host,this.shared.getRenderProp("ariaDetails")),r=this.pushedDetailsElements;(s!==this.ariaDetailsTarget||(null!==(t=null==r?void 0:r.length)&&void 0!==t?t:0)!==l.length||null!==(o=null==r?void 0:r.some(((e,i)=>e!==l[i])))&&void 0!==o&&o)&&(this.ariaDetailsTarget=s,this.pushedDetailsElements=l,s.ariaDetailsElements=l.length?l:null)}applyDisabled(e){j.apply(e,(e=>this.shared.setRenderProp("disabled",e)))}applyHideLabel(e){_.apply(e,(e=>this.shared.setRenderProp("hideLabel",e)))}applyHideMsg(e){E.apply(e,(e=>this.shared.setRenderProp("hideMsg",e)))}applyHint(e){q.apply(e,(e=>this.shared.setRenderProp("hint",e)))}applyInfoPopover(e){z.apply(e,(e=>this.shared.setRenderProp("infoPopover",e)))}applyLabel(e){C.apply(e,(e=>this.shared.setRenderProp("label",e)),this.isRequired("label"))}applyMsg(e){$.apply(e,(e=>this.shared.setRenderProp("msg",e)))}applyName(e){N.apply(e,(e=>this.shared.setRenderProp("name",e))),this.formAssociation.watchName(e)}applyOn(e){U.apply(e,(e=>this.shared.setRenderProp("on",e)))}applySyncValueBySelector(e){this.formAssociation.watchSyncValueBySelector(e)}applyTooltipAlign(e){O.apply(null!=e?e:"top",(e=>this.shared.setRenderProp("tooltipAlign",e)))}applyTouched(e){R.apply(e,(e=>this.shared.setRenderProp("touched",e)))}get eventHost(){var e,i;return null!==(i=null===(e=this.formAssociation)||void 0===e?void 0:e.host)&&void 0!==i?i:this.host}emit(e,i){this.eventHost&&f(this.eventHost,e,i)}handleFocusLeave(e){var i,t;if(this._disabled)return;const o=this.eventHost,s=(null==o?void 0:o.shadowRoot)||o,l=(null==s?void 0:s.contains(e.relatedTarget))||o===e.relatedTarget;this.focusEventSent&&!l&&(this._touched=!0,this.emit(v.blur),null===(t=null===(i=this._on)||void 0===i?void 0:i.onBlur)||void 0===t||t.call(i,e),this.focusEventSent=!1)}getAria(){const e=this.shared;return(({id:e,msg:i,hint:t,touched:o})=>{const s="string"==typeof i?i:null==i?void 0:i._description,l=Boolean(s&&s.length>0),r="error"===M(i)&&l&&!0===o,a="string"==typeof t&&t.length>0,n=[];return l&&!0===o&&n.push(u(e,"msg")),a&&n.push(u(e,"hint")),{hasError:r,hasHint:a,ariaDescribedBy:n}})({id:e.getState("id"),msg:e.getRenderProp("msg"),hint:e.getRenderProp("hint"),touched:e.getRenderProp("touched")})}showAsAlert(){return Boolean(this.shared.getRenderProp("touched"))&&!this.shared.getState("inputHasFocus")}isTooltipShown(){const e=this.shared;return W({hideLabel:e.getRenderProp("hideLabel"),label:p(e.getRenderProp("label"))})}getLabelTooltipRefs(){return{refInput:this.setInputRef,refTooltip:this.setTooltipRef}}getFormFieldProps({class:e,accessKey:i,shortKey:t,variant:o,counter:s,maxLength:r,readOnly:a,renderNoLabel:n,renderNoTooltip:d,required:h}){const c=this.shared,p=c.getState("id"),m=c.getRenderProp("label"),b=c.getRenderProp("tooltipAlign");return this.isTooltipShown()?(this.tooltipBehavior.watchAlign(b),this.tooltipBehavior.watchBadgeText(l(i,t)||""),this.tooltipBehavior.watchId(u(p,"label")),this.tooltipBehavior.watchLabel(m)):this.tooltipBehavior.destroy(),{id:p,disabled:c.getRenderProp("disabled"),msg:c.getRenderProp("msg"),hint:c.getRenderProp("hint"),label:m,hideLabel:c.getRenderProp("hideLabel"),hideMsg:c.getRenderProp("hideMsg"),touched:c.getRenderProp("touched"),showBadge:Boolean(i)||Boolean(t),required:h,readOnly:a,accessKey:i,shortKey:t,maxLength:r,counter:s,variant:o,class:e,tooltipAlign:b,alert:this.showAsAlert(),infoPopover:this.getInfoPopover(),renderNoLabel:n,renderNoTooltip:d,refInput:d?void 0:this.setInputRef,refTooltip:this.setTooltipRef}}}function ee({ariaDescribedBy:e,hideLabel:i,label:t}){return{title:"",autoCapitalize:"off",autoCorrect:"off","aria-describedby":(null==e?void 0:e.length)?e.join(" "):void 0,"aria-label":i&&t?p(t):void 0}}const ie={required:[C],optional:[y,j,_,E,q,z,U,$,N,O,R]};export{Q as B,G as F,V as a,X as b,ee as c,ie as f,M as g,H as i}
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{L as o,d as t,w as s}from"./common-OzsC_6kt.js";import{a as r}from"./index-BKEJuyFi.js";const a=(()=>{r((o=>{try{o.shadowRoot instanceof ShadowRoot&&t(o,s(o))}catch(o){}return"default"})),import("./devtools-DrBkkLdP.js").then((o=>{"object"==typeof o&&null!==o&&"function"==typeof o.initialize&&o.initialize()})).catch((t=>{o.error(t)}))})||(()=>{});export{a as g}
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- const n=(n,o)=>{const t=(null!=o?o:"").trim().split(/\s+/).filter(Boolean);if(!t.length)return[];const e=null==n?void 0:n.getRootNode();return t.map((n=>"undefined"!=typeof Document&&e instanceof Document?e.getElementById(n):"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot?e.querySelector(`#${(n=>{var o;return(null===(o=globalThis.CSS)||void 0===o?void 0:o.escape)?globalThis.CSS.escape(n):n.replace(/[^a-zA-Z0-9_-]/g,"\\$&")})(n)}`):"undefined"!=typeof document?document.getElementById(n):null)).filter((n=>!!n))},o=n=>{const o=null==n?void 0:n.attachInternals;if(o)try{return o.call(n)}catch(n){return}};export{o as a,n as r}
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- let s;const t=[],o=o=>{s=o,t.forEach((s=>{s(o)}))},e=(o,e=!0)=>(e&&"string"==typeof s&&o(s),t.push(o),()=>{const s=t.indexOf(o);s>=0&&t.splice(s,1)});export{e as o,o as s}
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{h as i}from"./index-BKEJuyFi.js";import{B as s}from"./base-web-component-XgI4wUyN.js";import{r as t,C as o}from"./component-DeMf195P.js";import"./common-OzsC_6kt.js";import{l}from"./level-CA1s1_Mf.js";import{d as h,w as a}from"./width-CgYY17tL.js";import{v as e,t as r}from"./props-from-config-Ci0dILpz.js";import{l as n}from"./label-lang-segment-2_GnxjFp.js";import{u as d,l as p,d as m,D as v}from"./scroll-lock-Y2hf47KW.js";import{T as c}from"./behavior-CwUUkdaP.js";import{c as u}from"./element-interaction-sGYdEpmv.js";import{d as f,K as C}from"./events-BIT-JUP2.js";import{h as b}from"./tooltip-open-tracking-D3tCiiGP.js";const g={required:[n],optional:[h,l,e,a]};class j extends s{constructor(){super(...arguments),this.dialogRef=u(),this.cardCloseButtonRef=u(),this.cardCloseTooltipBehavior=new c(this.stateAccess),this.propsConfig=g,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&&!f(this.host,C.cancel)&&i.preventDefault())},this.handleClose=i=>{var s,t,o,l;i.target===this.dialogRef.el&&(d(this),null===(t=(s=this.getRenderProp("on")).onClose)||void 0===t||t.call(s),null===(l=(o=this.getRenderProp("on")).onToggle)||void 0===l||l.call(o,!1),this.host&&(f(this.host,C.close),f(this.host,C.toggle)))},this.handleCardClose=()=>{this.cardCloseTooltipBehavior.hideTooltip(),this.closeDialog(),this.host&&f(this.host,C.close)}}initCardCloseButton(){this.cardCloseButtonProps=t(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){l.apply(i,(i=>this.setRenderProp("level",i)))}applyOn(i){h.apply(i,(i=>this.setRenderProp("on",i)))}applyVariant(i){e.apply(i,(i=>this.setRenderProp("variant",i)))}applyWidth(i){a.apply(i,(i=>this.setRenderProp("width",i)))}showDialog(i){var s,t,o,l;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===(l=(o=this.getRenderProp("on")).onToggle)||void 0===l||l.call(o,!0),this.host&&f(this.host,C.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(v,{blockClass:m(s),handleCancel:this.handleCancel,handleClose:this.handleClose,label:r(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{j as B}
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{h as s}from"./index-BKEJuyFi.js";import{s as i,X as t}from"./common-OzsC_6kt.js";import{B as a}from"./base-web-component-XgI4wUyN.js";import{b as o,e,a as h,c as l,d as r,B as p}from"./component-BTMWoACz.js";import{F as n}from"./behavior-B08CXmI4.js";import{T as d}from"./behavior-CwUUkdaP.js";import{a as m,b as c,c as y,f as b,g as u,h as f,s as C,i as v,l as j,d as I,t as B,e as x,v as A}from"./component-8ALsFV4i.js";import{d as T}from"./disabled-Cqhc40CU.js";import{i as g}from"./id-CIYvVaNr.js";import"./props-from-config-Ci0dILpz.js";import{l as K}from"./label-with-expert-slot-CicRes-W.js";import{n as D}from"./name-B2Yf3EpX.js";import{v as L}from"./access-and-short-key-ijzCZfHm.js";import{c as P}from"./element-interaction-sGYdEpmv.js";import{d as S,K as w}from"./events-BIT-JUP2.js";import{p as E,a as F}from"./controller-C3O9ohSP.js";class H extends a{constructor(){super(...arguments),this.ctaRef=P(),this.propsConfig=o,this.tooltipBehavior=new d(this.stateAccess),this.handleClick=s=>{s.stopPropagation(),this.tooltipBehavior.hideTooltip();const t=this.getRenderProp("type");if("submit"===t)E({form:this.host});else if("reset"===t)F({form:this.host});else{this.formAssociation.setFormAssociatedValue(this.formValue);const t=this.getRenderProp("on").onClick;"function"==typeof t&&(i(s,this.ctaRef.el),t(s,this.formValue))}this.host&&S(this.host,w.click,this.formValue)},this.handleMouseDown=s=>{var i,t;null===(t=(i=this.getRenderProp("on")).onMouseDown)||void 0===t||t.call(i,s),this.host&&S(this.host,w.mousedown)},this.handleFocus=s=>{var i,t;null===(t=(i=this.getRenderProp("on")).onFocus)||void 0===t||t.call(i,s),this.host&&S(this.host,w.focus)},this.handleBlur=s=>{var i,t;null===(t=(i=this.getRenderProp("on")).onBlur)||void 0===t||t.call(i,s),this.host&&S(this.host,w.blur)}}initFormAssociation(){this.formAssociation=new n(a.stateLess,{host:this.host,type:"button"})}unsetButtonTabIndex(){this.unsetRenderProp("tabIndex")}initTooltipBehavior(){this.tooltipBehavior.componentWillLoad({label:this.getRenderProp("label"),align:this.getRenderProp("tooltipAlign")})}syncTooltipListeners(){this.ctaRef.el&&this.tooltipBehavior.syncListeners(void 0,this.ctaRef.el,!0)}destroyTooltipBehavior(){this.tooltipBehavior.destroy()}applyAccessKey(s,i){m.apply(s,(s=>this.setRenderProp("accessKey",s))),L(s,i)}applyAriaControls(s){c.apply(s,(s=>this.setRenderProp("ariaControls",s)))}applyAriaDescription(s){y.apply(s,(s=>this.setRenderProp("ariaDescription",s)))}applyAriaExpanded(s){b.apply(s,(s=>this.setRenderProp("ariaExpanded",s)))}applyAriaHasPopup(s){e.apply(s,(s=>this.setRenderProp("ariaHasPopup",s)))}applyAriaSelected(s){h.apply(s,(s=>this.setRenderProp("ariaSelected",s)))}applyCustomClass(s){u.apply(s,(s=>this.setRenderProp("customClass",s)))}applyDisabled(s){T.apply(s,(s=>this.setRenderProp("disabled",s)))}applyHideLabel(s){f.apply(s,(s=>this.setRenderProp("hideLabel",s)))}applyIcons(s){C.apply(s,(s=>this.setRenderProp("icons",s)))}applyId(s){g.apply(s,(s=>this.setRenderProp("id",s)))}applyInline(s){v.apply(s,(s=>this.setRenderProp("inline",s)))}applyLabel(s){K.apply(s,(s=>{this.setRenderProp("label",s),this.tooltipBehavior.watchLabel(s)}),this.isRequired("label"))}applyName(s){D.apply(s,(s=>this.setRenderProp("name",s))),this.formAssociation.watchName(s)}applyOn(s){l.apply(s,(s=>this.setRenderProp("on",s)))}applyRole(s){j.apply(s,(s=>this.setRenderProp("role",s)))}applyShortKey(s,i){I.apply(s,(s=>this.setRenderProp("shortKey",s))),L(i,s)}applySyncValueBySelector(s){this.formAssociation.watchSyncValueBySelector(s)}applyTabIndex(s){"number"==typeof s?B.apply(s,(s=>this.setRenderProp("tabIndex",s))):this.unsetRenderProp("tabIndex")}applyTooltipAlign(s){x.apply(null!=s?s:"top",(s=>{this.setRenderProp("tooltipAlign",s),this.tooltipBehavior.watchAlign(s)}))}applyType(s){r.apply(s,(s=>this.setRenderProp("type",s)))}applyValue(s){this.formValue=s,this.formAssociation.setFormAssociatedValue(s)}applyVariant(s){var i;A.apply(null!==(i=null!=s?s:t("buttonVariantDefault",this.host))&&void 0!==i?i:"normal",(s=>this.setRenderProp("variant",s)))}getButtonFCProps(){return{accessKey:this.getRenderProp("accessKey"),ariaControls:this.getRenderProp("ariaControls"),ariaDescription:this.getRenderProp("ariaDescription"),ariaDescriptionId:this.getState("ariaDescriptionId"),ariaExpanded:this.getRenderProp("ariaExpanded"),ariaHasPopup:this.getRenderProp("ariaHasPopup"),ariaSelected:this.getRenderProp("ariaSelected"),customClass:this.getRenderProp("customClass"),disabled:this.getRenderProp("disabled"),handleBlur:this.handleBlur,handleClick:this.handleClick,handleFocus:this.handleFocus,handleMouseDown:this.handleMouseDown,hideLabel:this.getRenderProp("hideLabel"),icons:this.getRenderProp("icons"),id:this.getRenderProp("id"),inline:this.getRenderProp("inline"),label:this.getRenderProp("label"),name:this.getRenderProp("name"),on:this.getRenderProp("on"),refButton:this.ctaRef,refTooltip:this.tooltipBehavior.setTooltipElementRef,role:this.getRenderProp("role"),shortKey:this.getRenderProp("shortKey"),tabIndex:this.getRenderProp("tabIndex"),tooltipAlign:this.getRenderProp("tooltipAlign"),type:this.getRenderProp("type"),variant:this.getRenderProp("variant")}}renderButtonFC(){return s(p,Object.assign({},this.getButtonFCProps()))}}export{H as B}
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{h as i}from"./index-BKEJuyFi.js";import{B as s}from"./base-web-component-XgI4wUyN.js";import{l as t,a,c as r,d as e,b as o,L as h}from"./component-DBAicJ2u.js";import{T as n}from"./behavior-CwUUkdaP.js";import{s as l}from"./common-OzsC_6kt.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 L,v as A}from"./component-8ALsFV4i.js";import{d as j}from"./disabled-Cqhc40CU.js";import{h as v}from"./href-JqLbNBsW.js";import"./props-from-config-Ci0dILpz.js";import{l as I}from"./label-with-expert-slot-CicRes-W.js";import{l as w}from"./link-target-FX94oqMo.js";import{c as D}from"./element-interaction-sGYdEpmv.js";import{d as K,K as T}from"./events-BIT-JUP2.js";import{o as k}from"./ariaCurrentService-YoLNpD5S.js";class B extends s{constructor(){super(...arguments),this.ctaRef=D((()=>!0===this.getRenderProp("disabled"))),this.tooltipBehavior=new n(this.stateAccess),this.propsConfig=t,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&&K(this.host,T.click,s)},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){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){v.apply(i,(i=>this.setRenderProp("href",i)),this.isRequired("href"))}applyIcons(i){f.apply(i,(i=>this.setRenderProp("icons",i)))}applyInline(i){u.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){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){w.apply(i,(i=>this.setRenderProp("target",i)))}applyTooltipAlign(i){L.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{B}
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{r as t}from"./aria-labelledby-CLehu03h.js";import{G as e,L as o,p as l}from"./common-OzsC_6kt.js";import{h as i,F as s,f as n}from"./index-BKEJuyFi.js";import{B as a}from"./base-web-component-XgI4wUyN.js";import{c as r}from"./item-C4AmpdVD.js";import{c}from"./item-pool-BOxAYePG.js";import{c as d}from"./item-ConW1c81.js";import{c as h,e as u,n as b,a as p,r as v,t as f,v as m}from"./props-from-config-Ci0dILpz.js";import{l as y}from"./label-lang-segment-2_GnxjFp.js";import{v as g,k,T as j}from"./component-8ALsFV4i.js";import{c as C,d as w,e as S}from"./component-names-CrfBV37S.js";import{t as _}from"./i18n-DtLKn3Xt.js";import{b as O}from"./bem-registry-CWN7_O1L.js";import{B as x}from"./component-Bc1n82Y8.js";import{B as $}from"./component-BTMWoACz.js";import{I as F}from"./component-Cdnq5GYF.js";import{L}from"./component-DBAicJ2u.js";import{r as D}from"./component-CZZNha2e.js";import{S as A}from"./component-DCw1ZAE5.js";import{a as B}from"./tslib.es6-QNbPBOk5.js";import{n as z,c as I}from"./dev.utils-wYkYn08d.js";import{d as T,K as E}from"./events-BIT-JUP2.js";import{A as M}from"./component-D0mBOGjS.js";import{l as P}from"./level-CA1s1_Mf.js";import{c as K}from"./element-interaction-sGYdEpmv.js";import{u as N,l as H,d as W,D as Y}from"./scroll-lock-Y2hf47KW.js";import{h as G}from"./tooltip-open-tracking-D3tCiiGP.js";import{d as U,w as R}from"./width-CgYY17tL.js";import{r as V,C as J}from"./component-DeMf195P.js";import{T as Z}from"./behavior-CwUUkdaP.js";import{C as q}from"./keyboard-Cnv7zP3N.js";const X=(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},Q=t=>"number"==typeof t&&Number.isInteger(t)&&t>=0,tt=h("fixedCols",[0,0],(t=>u(t)),(t=>2===t.length&&t.every(Q))),et=h("hasSettingsMenu",!1,b),ot=p();function lt(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 it(t){return t.every((t=>"object"==typeof t&&null!==t))}const st=h("data",[],lt,it),nt=h("dataFoot",[],lt,it),at=t=>Array.isArray(t)&&t.every((t=>Array.isArray(t))),rt=h("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(!at(o)||!at(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))))})),ct=h("loading",!1,b),dt=h("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))})),ht={required:[y,st],optional:[tt,et,ot,nt,rt,ct,dt,g]},ut=t=>t.flatMap((t=>t.filter((t=>"string"==typeof t.key||"function"==typeof t.render)))),bt=t=>{const e=ut(t.horizontal);if(e.length>0)return{cells:e,horizontal:!0};const o=ut(t.vertical);return{cells:o,horizontal:0===o.length}},pt=(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},vt=(t,e)=>{const o=Math.max(0,...t.map((t=>pt(t,"colSpan"))));return 0===o?e.length:o},ft=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},mt=(t,e,o,l)=>{if(void 0!==l&&!e)return l<t[0]?"left":t[1]>0&&l>=o-t[1]?"right":void 0},yt=(t,e,o,l)=>{var i,s,n,a,r,c;const d=[];for(let a=0;a<e;a++)"left"===mt(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"===mt(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},gt=(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`},kt=(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},jt=({data:t,dataFoot:e,headers:o,isFoot:l,noEntriesLabel:i,primaryHeaders:s})=>{const n=vt(o.horizontal,t),a=s.cells;let r=((t,e,o)=>{const l=Math.max(0,...t.map((t=>pt(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=ft(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},Ct=({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(" + ")})`},wt=t=>void 0===t?[]:Array.isArray(t)?t:[t],St=t=>{var e;return null!==(e=t?t.keyPropertyName:void 0)&&void 0!==e?e:"id"},_t=t=>{const e=t?wt(t.selectedKeys):[];return{disabledKeys:new Set((t?wt(t.disabledKeys):[]).map(String)),keyPropertyName:St(t),selectedKeys:e,selectedKeysSet:new Set(e.map(String))}},Ot=(t,e)=>t.filter((t=>!e.disabledKeys.has(String(t[e.keyPropertyName])))),xt=O.forBlock("kol-table"),$t=xt("body"),Ft=xt("cell-actions"),Lt=xt("cell-states"),Dt=xt("footer"),At=xt("head"),Bt=xt("head-row"),zt=xt("scroll-container"),It=xt("selection-icon"),Tt=xt("selection-input-tooltip"),Et=xt("sort"),Mt=xt("sort-button"),Pt=xt("sort-order"),Kt=xt("table"),Nt=`${xt("focus-element")} ${xt("caption")}`,Ht="caption",Wt=(t,e)=>mt(t.fixedCols,t.stickyColsDisabled,t.maxCols,e),Yt=(t,e,o)=>({left:"left"===e?gt(t.fixedOffsets,o,!0,!1!==t.selection):void 0,right:"right"===e?gt(t.fixedOffsets,o,!1,!1!==t.selection):void 0}),Gt=(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)},Ut=t=>{const e=_("kol-sort");return"number"==typeof t&&t>0?`${e} – ${_("kol-table-sort-order").replace("{{order}}",`${t}`)}`:e},Rt=(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,u=Wt(t,l),{left:b,right:p}=Yt(t,u,l),v=e.textAlign,f=n?e.sortDirection:void 0;return i("th",{key:`${o}-${l}-${e.label}`,class:xt("cell",{[a]:!0,"align-center":"center"===v,"align-justify":"justify"===v,"align-left":"left"===v,"align-right":"right"===v,header:!0,"sticky-left":"left"===u,"sticky-right":"right"===u}),scope:c,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{width:h,left:b,right:p},"aria-sort":a,"data-sort":f?`sort-${f}`:void 0},f?i("span",{class:Et},i($,Object.assign({},t.getButtonFcProps(`sort-${s?"vertical":"horizontal"}-${o}-${l}`,{_icons:{right:r},_label:e.label,_ariaDescription:Ut(d),_on:{onClick:o=>{t.handleSort(o,{key:e.key,currentSortDirection:f})}}},{class:Mt}))),d&&i("span",{"aria-hidden":"true",class:Pt},d)):e.label)},Vt=(t,e,o,l,s=!1)=>i("tr",{class:xt("row",{body:!s,footer:s}),key:`row-${Gt(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),u=a.selectedKeysSet.has(h),b=a.disabledKeys.has(h),p=n.label(r),v={name:"selection",checked:u,disabled:b,id:String(c),"aria-label":p};return i("td",{key:`tbody-${o}-selection`,class:xt("cell",{selection:!0})},i("div",{class:xt("selection",{checked:u})},d?i("label",{class:xt("selection-label",{disabled:b})},i(F,{class:It,icons:"kolicon "+(u?"kolicon-check":""),label:""}),i("input",Object.assign({class:xt("selection-input",{checkbox:!0})},v,{type:"checkbox",onInput:t=>{const e=u?a.selectedKeys.filter((t=>String(t)!==h)):[...a.selectedKeys,c];s(t,e)}}))):i("label",{class:xt("selection-label")},i("input",Object.assign({class:xt("selection-input",{radio:!0})},v,{type:"radio",onInput:t=>{s(t,[c])}}))),i("div",{class:Tt},i(j,{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 Rt(t,e,o,l,s);const a="function"!=typeof e.render&&e.label===t.translateNoEntries,r=kt(t.headers,t.primaryHeaders,l,"action"),c=Boolean(r&&e.data),d=kt(t.headers,t.primaryHeaders,l,"state"),h=Boolean(d&&e.data),u=Wt(t,l),{left:b,right:p}=Yt(t,u,e.colIndex),v="function"==typeof e.render,f=e.textAlign;return i("td",{key:`cell-${n}-${t.settingsChangedCounter}`,class:xt("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"===u,"sticky-right":"right"===u}),"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:b,right:p},ref:v?o=>t.handleRenderCell(e,o):void 0},c&&r&&e.data?((t,e,o,l)=>i("div",{class:Ft},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(L,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:Lt},s.map(((t,e)=>"badge"===t.type?i(C,Object.assign({key:`state-${o}-${e}`},t)):null))):""})(d,e.data,n):v?"":e.label)})(t,e,o,s,l)))),Jt=(t,e,o)=>{const l=t.headers.vertical.length+ft(null==o?void 0:o[0])+(t.selection?1:0);return i("tr",{"aria-hidden":"true",class:xt("spacer",{[e]:!0})},i("td",{class:xt("spacer-line",{[e]:!0}),colSpan:l}))},Zt=t=>{const e=v(ht,t),{data:o,dataFoot:l,externalLabelElements:n,fixedCols:a,hasScrollbar:r,hasSettingsMenu:c,headers:d,label:h,loading:u,refScrollContainer:b,refTable:p,selection:m,stickyColsDisabled:y,variant:g}=e,C=_("kol-no-entries"),w=bt(d),S=vt(d.horizontal,o),O=Object.assign(Object.assign({},e),{fixedOffsets:yt(w.cells,S,a,y),maxCols:S,primaryHeaders:w,selectionModel:_t(m),translateNoEntries:C}),$=jt({data:o,dataFoot:l,headers:d,isFoot:!1,noEntriesLabel:C,primaryHeaders:w}),L=0===n.length;return i(x,{block:"kol-table",class:k(g,"table")},c&&t.renderSettings(d.horizontal),i("div",{ref:b,class:zt,tabindex:r?L?"-1":"0":void 0},i("table",{ref:p,"aria-labelledby":L?Ht:void 0,class:Kt,style:{minWidth:Ct(d)}},L&&i("caption",{class:Nt,id:Ht,ref:t=>{t&&(r?t.tabIndex=0:t.removeAttribute("tabindex"))}},D(h)),i("thead",{class:At},[d.horizontal.map(((t,e)=>i("tr",{class:Bt,key:`thead-${e}`},m&&(t=>{const{data:e,handleSelectionChange:o,selection:l,selectionModel:s}=t;if(!l)return i("td",{class:xt("cell",{header:!0}),key:"thead-0"});if(!1===l.multiple)return i("th",{scope:"col",key:"thead-0-selection",class:xt("cell",{header:!0,selection:!0})},i("span",{class:"visually-hidden"},_("kol-table-selection")));const n=s.selectedKeys.filter((t=>!s.disabledKeys.has(String(t)))).length,a=n===Ot(e,s).length,r=0!==n&&!a;let c;return c=_(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:xt("cell",{header:!0,selection:!0})},i("span",{class:"visually-hidden"},_("kol-table-selection")),i("div",{class:xt("selection",{checked:a,indeterminate:r})},i("label",{class:xt("selection-label")},i(F,{class:It,icons:"kolicon "+(r?"kolicon-minus":a?"kolicon-check":""),label:""}),i("input",{class:xt("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(...Ot(t,e).map((t=>null==t?void 0:t[e.keyPropertyName]))),l})(e,s,!a))}})),i("div",{class:Tt},i(j,{label:c,badgeText:"",refFloating:()=>{}}))))})(O),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})})(O),Array.isArray(t)&&t.map(((t,o)=>Rt(O,t,e,o,!1)))))),Jt(O,"head",d.horizontal)]),i("tbody",{class:$t},i("div",{class:xt("loader",{shown:u})},i(A,{label:_(u?"kol-table-data-loading":"kol-table-data-loaded").replace("{{caption}}",f(h)),show:u,variant:"cycle"})),$.map(((t,e)=>Vt(O,t,e,!0)))),(t=>{const{dataFoot:e,headers:o,primaryHeaders:l,translateNoEntries:s}=t;if(0===e.length)return null;const n=jt({data:e,dataFoot:e,headers:o,isFoot:!0,noEntriesLabel:s,primaryHeaders:l}),a=vt(o.horizontal,e),r=Object.assign(Object.assign({},t),{fixedOffsets:yt(l.cells,a,t.fixedCols,t.stickyColsDisabled),maxCols:a});return i("tfoot",{class:Dt},[Jt(t,"foot",n),n.map(((t,e)=>Vt(r,t,e,!0,!0)))])})(O))))},qt=({dialog:t,card:e},o)=>i(Y,Object.assign({},t),e?i(J,Object.assign({},e),o):o),Xt=O.forBlock("kol-table")("settings"),Qt=t=>Number.isFinite(t)&&void 0!==t&&t>0?t:void 0,te=()=>{},ee=(t,e)=>{const o=_("kol-table-settings"),l=_("kol-table-settings-cancel"),s=_("kol-table-settings-apply"),n=_("kol-table-settings-error-all-invisible");let d,h=!1,u=!1;const b=()=>{h=!0,e()},p=c((()=>r(t)),(t=>t.syncListeners()),(t=>t.destroy())),v=((t,e)=>{const o=K(),l=K(),i=new Z(a.stateLess),s=z(),n=I("dialog-heading"),r={};let c,h=!0,u={};const b=t=>!d||T(d,t),p=()=>{var t,e;null===(e=null===(t=o.el)||void 0===t?void 0:t.close)||void 0===e||e.call(t)},v=t=>{var e;G(t),t.defaultPrevented||(null===(e=u.onCancel)||void 0===e||e.call(u,t),t.defaultPrevented||b(E.cancel)||t.preventDefault())},g=t=>{var e;t.target===o.el&&(N(r),null===(e=u.onClose)||void 0===e||e.call(u),b(E.close))},k=()=>{i.hideTooltip(),p(),b(E.close)};return{getFcProps:e=>{var a,r,d;let b="",p=0,j="blank",C="100%";y.apply(e.label,(t=>{b=t})),P.apply(null!==(a=e.level)&&void 0!==a?a:0,(t=>{p=t})),U.apply(e.on,(t=>{u=t})),m.apply(null!==(r=e.variant)&&void 0!==r?r:"blank",(t=>{j=t})),R.apply(null!==(d=e.width)&&void 0!==d?d:"100%",(t=>{C=t}));const w="card"===j;return w&&!c&&(c=V(t()),i.componentWillLoad({label:c.label,align:c.tooltipAlign})),{dialog:{blockClass:W(j),handleCancel:v,handleClose:g,label:f(b),labelledBy:w?n:void 0,modal:h,refDialog:o,width:C},card:w&&c?{ariaDescriptionId:s,closeButtonProps:c,handleClose:k,hasCloser:!0,headingId:n,label:b,level:p,refCloseButton:l,refTooltip:i.setTooltipElementRef}:void 0}},show:t=>{var l,i;const s=o.el;(null==s?void 0:s.open)||(h!==t&&(h=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:p,syncListeners:()=>{l.el&&i.syncListeners(void 0,l.el,!0)},destroy:()=>{p(),N(r),i.destroy()}}})(t,b),g=I("alert-heading"),k=z();let j,C=[],O=[],x=null;const F=()=>{var t;return null!==(t=O[O.length-1])&&void 0!==t?t:[]},L=t=>{O=O.map(((e,o,l)=>o===l.length-1?t:e)),b()},D=(t,e)=>{const o=[...F()],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),L(o)},A=t=>{if(t.preventDefault(),!F().some((t=>!1!==t.visible)))return x=n,void b();if(d){x=null,C=O.map((t=>t.map((t=>Object.assign({},t))))),b();const t=O.map((t=>t.map((t=>{const e=t,{hidable:o,resizable:l,sortable:i,visible:s,width:n}=e,a=B(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}))));T(d,E.changeHeaderCells,t),v.close()}},Y=t=>{t&&(d=t)};return{beginRender:()=>{p.beginRender(),u=h,h=!1},render:t=>{var e;u||t===j||(j=t,C=(e=t).map((t=>[...t])),O=e.map((t=>t.map((t=>Object.assign({},t))))));const n=F();return i("div",{class:Xt,ref:Y},i("div",{class:"kol-table-settings"},i($,Object.assign({},p.get("toggle").getFcProps({_icons:"kolicon-settings",_label:o,_hideLabel:!0,_on:{onClick:()=>v.show(!0)}})))),i(qt,Object.assign({},v.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(M,{alert:!1,closerAriaDescriptionId:k,handleCloserClick:te,hasCloser:!1,headingId:g,label:x,level:0,refCloserButton:te,refCloserTooltip:te,type:"error",variant:"msg"})),i("form",{onSubmit:A},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(S,{_checked:!1!==t.visible,_label:_(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=F().map((o=>o.key===t&&!1!==o.hidable?Object.assign(Object.assign({},o),{visible:Boolean(e)}):o));L(o)})(null!==(l=t.key)&&void 0!==l?l:"",o)}}}),i("span",{class:"kol-table-settings__column-label"},t.label),i(w,{_hideLabel:!0,_value:Qt(t.width),_label:_("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=Qt(Number(e)),l=F().map((e=>e.key===t&&!1!==e.resizable?Object.assign(Object.assign({},e),{width:o}):e));L(l)})(null!==(l=t.key)&&void 0!==l?l:"",o)}}}),i($,Object.assign({},p.get(`move-up-${t.key}`).getFcProps({_icons:"kolicon-chevron-up",_label:_(!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 D(null!==(e=t.key)&&void 0!==e?e:"","up")}},_disabled:!1===t.sortable||0===e}))),i($,Object.assign({},p.get(`move-down-${t.key}`).getFcProps({_icons:"kolicon-chevron-down",_label:_(!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 D(null!==(e=t.key)&&void 0!==e?e:"","down")}},_disabled:!1===t.sortable||e===o.length-1})))))(t,e,n)))),i("div",{class:"kol-table-settings__actions"},i($,Object.assign({},p.get("cancel").getFcProps({_label:l,_variant:"secondary",_on:{onClick:()=>(O=C.map((t=>[...t])),x=null,b(),void v.close())}}))),i($,Object.assign({},p.get("apply").getFcProps({_label:s,_variant:"primary",_type:"submit"}))))))))},sync:()=>{p.endRender(),v.syncListeners()},destroy:()=>{p.destroy(),v.destroy()}}};class oe extends a{constructor(){super(...arguments),this.hasExternalTableLabelRefs=!1,this.cellRenderTimeouts=new Map,this.buttonItems=c((()=>r((()=>this.host))),(t=>t.syncListeners()),(t=>t.destroy())),this.settings=ee((()=>this.host),(()=>n(this))),this.linkItems=c((()=>d((()=>n(this)))),(t=>t.syncListeners()),(t=>t.destroy())),this.propsConfig=ht,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)}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){st.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:z()]}))))(t,this.getState("rowKeys")))}))}applyDataFoot(t){nt.apply(t,(t=>this.setRenderProp("dataFoot",t)))}applyFixedCols(t){tt.apply(t,(t=>this.setRenderProp("fixedCols",t))),this.updateStickyColsDisabled()}applyHasSettingsMenu(t){et.apply(t,(t=>this.setRenderProp("hasSettingsMenu",t)))}applyHeaders(t){rt.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){y.apply(t,(t=>this.setRenderProp("label",t)),this.isRequired("label"))}applyLoading(t){ct.apply(t,(t=>this.setRenderProp("loading",t)))}applyOn(t){ot.apply(t,(t=>this.setRenderProp("on",t)))}applySelection(t){dt.apply(t,(t=>this.setRenderProp("selection",t))),this.updateStickyColsDisabled()}applyVariant(t){g.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,o.debug([this.tableElement,t,this.tableElement.ariaLabelledByElements])):this.hasExternalTableLabelRefs&&(this.hasExternalTableLabelRefs=!1,this.tableElement.ariaLabelledByElements=null,this.tableElement.setAttribute("aria-labelledby",Ht)))}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")[q.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=bt(r).cells,d=vt(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")[q.onSelectionChange];"function"==typeof o&&o(t,e),this.host&&T(this.host,E.selectionChange,e)}emitSort(t,e){const o=this.getRenderProp("on")[q.onSort];"function"==typeof o&&e.key&&o(t,e),this.host&&T(this.host,E.sort,e)}renderTableStatelessFC(){return this.buttonItems.beginRender(),this.linkItems.beginRender(),this.settings.beginRender(),i(Zt,{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{oe as B,nt as a,st as t,X as v}
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import"./common-OzsC_6kt.js";import{a as t,d as s,v as i}from"./component-8ALsFV4i.js";import{a as e,S as o}from"./suggestions-DuqzGDve.js";import{h as a,g as r}from"./input-container-C2Am7LEP.js";import{c as h,b as n}from"./props-from-config-Ci0dILpz.js";import{p as l}from"./placeholder-BeLIzdJv.js";import{r as p}from"./read-only-Bby9r6ZX.js";import{r as d}from"./required-hoaT7UmZ.js";import{s as c}from"./smart-button-CS_ZriPt.js";import{s as u}from"./value-string-e9pwLcS-.js";import{f as m,B as v}from"./api-D92_O-0H.js";import{h as y}from"./index-BKEJuyFi.js";import{s as j}from"./controller-C3O9ohSP.js";import{v as b}from"./access-and-short-key-ijzCZfHm.js";import{c as f}from"./clsx-COFh-Vc8.js";import{c as g}from"./element-interaction-sGYdEpmv.js";import{B as O}from"./base-web-component-XgI4wUyN.js";import{C as x}from"./behavior-DW7_5Wxp.js";const B=h("pattern",void 0,n),C={required:[...m.required],optional:[...m.optional,t,e,a,B,l,p,d,s,c,u,i]};class K extends v{constructor(){super(...arguments),this.ctaRef=g(),this.counter=new x(O.stateLess),this.needsImmediateCounterUpdate=!1,this.hasValue=!1,this.handleTextInput=t=>{this._value=t.target.value,this.handleInput(t)},this.handleTextChange=(t,s)=>{this.handleChange(t,s)},this.handleTextFocus=t=>{var s,i;this.handleFocus(t),this.counter.retriggerAria(null!==(i=null===(s=this._value)||void 0===s?void 0:s.length)&&void 0!==i?i:0)},this.handleTextKeyDown=t=>{var s,i;this.handleKeyDown(t),this.counter.handleKeyDown(t,null!==(i=null===(s=this.ctaRef.el)||void 0===s?void 0:s.value.length)&&void 0!==i?i:0),j(t,{form:this.host,ref:this.ctaRef.el})}}get textShared(){return this}initHasValue(){this.hasValue=Boolean(this.textShared.getRenderProp("value"))}didLoadTextInput(){var t,s;this.needsImmediateCounterUpdate=!1,(this.counter.hasCounter()||this.counter.hasSoftLimit())&&this.counter.updateImmediate(null!==(s=null===(t=this._value)||void 0===t?void 0:t.length)&&void 0!==s?s:0)}didUpdateTextInput(){var t,s;this.needsImmediateCounterUpdate&&(this.needsImmediateCounterUpdate=!1,(this.counter.hasCounter()||this.counter.hasSoftLimit())&&this.counter.updateImmediate(null!==(s=null===(t=this._value)||void 0===t?void 0:t.length)&&void 0!==s?s:0))}destroyTextInput(){this.destroyFormField(),this.counter.destroy()}applyAccessKey(s){t.apply(s,(t=>this.textShared.setRenderProp("accessKey",t))),b(s,this._shortKey)}applyAutoComplete(t){e.apply(t,(t=>this.textShared.setRenderProp("autoComplete",t)))}applyIcons(t){a.apply(t,(t=>this.textShared.setRenderProp("icons",t)))}applyPattern(t){B.apply(t,(t=>this.textShared.setRenderProp("pattern",t)))}applyPlaceholder(t){l.apply(t,(t=>this.textShared.setRenderProp("placeholder",t)))}applyReadOnly(t){p.apply(t,(t=>this.textShared.setRenderProp("readOnly",t)))}applyRequired(t){d.apply(t,(t=>this.textShared.setRenderProp("required",t)))}applyShortKey(t){s.apply(t,(t=>this.textShared.setRenderProp("shortKey",t))),b(this._accessKey,t)}applySmartButton(t){null==t?this.textShared.unsetRenderProp("smartButton"):c.apply(t,(t=>this.textShared.setRenderProp("smartButton",t)))}applyValue(t){var s;this.initValue(t),this.hasValue=Boolean(this.textShared.getRenderProp("value")),this.counter.update(null!==(s=null==t?void 0:t.length)&&void 0!==s?s:0)}initValue(t){u.apply(t,(t=>this.textShared.setRenderProp("value",t))),this.formAssociation.setFormAssociatedValue(this.textShared.getRenderProp("value"))}initMaxLength(t){this.counter.watchMaxLength(t)}applyVariant(t){i.apply(t,(t=>this.textShared.setRenderProp("variant",t)))}applyHasCounter(t){this.counter.watchHasCounter(t),this.needsImmediateCounterUpdate=!0}applyMaxLength(t){var s,i;this.counter.watchMaxLength(t),this.counter.updateImmediate(null!==(i=null===(s=this._value)||void 0===s?void 0:s.length)&&void 0!==i?i:0)}applyMaxLengthBehavior(t){this.counter.watchMaxLengthBehavior(t),this.needsImmediateCounterUpdate=!0}getTextFormFieldProps(t){const s=this.textShared;return this.getFormFieldProps({class:f(t,{"has-value":this.hasValue,"kol-form-field--has-counter":this.counter.hasSoftLimit()||this.counter.hasCounter()}),accessKey:s.getRenderProp("accessKey")||void 0,shortKey:s.getRenderProp("shortKey")||void 0,variant:s.getRenderProp("variant"),required:s.getRenderProp("required"),readOnly:s.getRenderProp("readOnly"),maxLength:this.counter.getRenderProp("maxLength"),counter:this.counter.getCounterProps()})}getTextInputAdornments(t){return r({icons:this.textShared.getRenderProp("icons"),smartButton:this.getSmartButtonFcProps(this.textShared.getRenderProp("smartButton"),this.textShared.getRenderProp("disabled")),endAdornment:t})}getTextInputProps({type:t,spellcheck:s,multiple:i,suggestions:e},a={}){const r=this.textShared,h=r.getState("id"),n=r.getRenderProp("accessKey"),l=r.getRenderProp("shortKey"),p=r.getRenderProp("placeholder"),d=r.getRenderProp("pattern"),c=this.counter.getMaxLengthAttribute(),u=this.counter.getCharacterLimitHintId(h),{ariaDescribedBy:m,hasError:v}=this.getAria();return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({id:h,hideLabel:r.getRenderProp("hideLabel"),label:r.getRenderProp("label"),disabled:r.getRenderProp("disabled"),name:r.getRenderProp("name")||void 0},n?{accessKey:n}:{}),void 0!==t?{type:t}:{}),{value:r.getRenderProp("value"),required:r.getRenderProp("required")}),void 0!==c?{maxlength:c}:{}),void 0!==p?{placeholder:p}:{}),{autoComplete:r.getRenderProp("autoComplete")}),void 0!==s?{spellcheck:s}:{}),void 0!==d?{pattern:d}:{}),{readonly:r.getRenderProp("readOnly")}),void 0!==i?{multiple:i}:{}),{touched:r.getRenderProp("touched"),msg:r.getRenderProp("msg")}),l?{"aria-keyshortcuts":l}:{}),e&&e.length>0?{suggestions:y(o,{id:h,suggestions:e})}:{}),{ref:this.ctaRef,onBlur:this.handleBlur,onChange:this.handleTextChange,onClick:this.handleClick,onFocus:this.handleTextFocus,onInput:this.handleTextInput,onKeyDown:this.handleTextKeyDown}),a),{ariaDescribedBy:u?[...m,u]:m,"aria-invalid":v?"true":void 0})}}export{K as B,C as t}