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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1328) hide show
  1. package/README.md +1 -1
  2. package/assets/kolicons/kolicons.eot +0 -0
  3. package/assets/kolicons/kolicons.ttf +0 -0
  4. package/assets/kolicons/kolicons.woff +0 -0
  5. package/assets/kolicons/kolicons.woff2 +0 -0
  6. package/assets/kolicons/style.css +6 -6
  7. package/custom-elements.json +344 -86
  8. package/dist/cjs/{Heading-gKYGJ1tV.js → Heading-C9osvqjY.js} +1 -1
  9. package/dist/cjs/{api-DyRC0E3C.js → api-U7I3XBPI.js} +64 -37
  10. package/dist/cjs/{app-globals-C-QndvUR.js → app-globals-DsADKGEe.js} +3 -3
  11. package/dist/cjs/{aria-labelledby-ny809Vdx.js → aria-labelledby-BRMgWRVp.js} +2 -2
  12. package/dist/cjs/{base-Cau7nZZw.js → base-CyqDmoZZ.js} +34 -33
  13. package/dist/cjs/{base-C9jeVqnN.js → base-DCxbMk0f.js} +35 -34
  14. package/dist/cjs/{base-zeK_arau.js → base-DcN_YC72.js} +26 -26
  15. package/dist/cjs/{base-DjGWfEqB.js → base-l99dGLYo.js} +79 -73
  16. package/dist/cjs/base-web-component-B6mwGD0m.js +65 -0
  17. package/dist/cjs/{base-web-component-r0Jr01kf.js → base-web-component-BnaxS2Z3.js} +21 -26
  18. package/dist/cjs/{base-web-component-BOQatEb9.js → base-web-component-DxJ0hQ9u.js} +23 -22
  19. package/dist/cjs/{behavior-Djs9V7Si.js → behavior-BNyFQ_B5.js} +13 -14
  20. package/dist/cjs/{behavior-P_MOoqmo.js → behavior-CTaw4dj3.js} +10 -10
  21. package/dist/cjs/{behavior-APmbiQTR.js → behavior-DrFJy0QC.js} +7 -17
  22. package/dist/cjs/{bem-registry-Q82FjrSD.js → bem-registry-CyxrH26c.js} +40 -1
  23. package/dist/cjs/{block-bem-CNP2_qFi.js → block-bem-BI7yfoFU.js} +1 -1
  24. package/dist/cjs/{bootstrap-BbvuwOW2.js → bootstrap-DkgMbRSL.js} +2 -2
  25. package/dist/cjs/{color-CbCW4wyr.js → color-BW4t1Cif.js} +14 -4
  26. package/dist/cjs/{common-DRvysX2o.js → common-C-hcIfzh.js} +20 -6
  27. package/dist/cjs/{component-hiip9BeX.js → component-4OErV1Bg.js} +14 -11
  28. package/dist/cjs/{component-CyFwKqlx.js → component-BEzksV1U.js} +25 -12
  29. package/dist/cjs/{component-C-jt8Zgv.js → component-BQUKg-qY.js} +26 -9
  30. package/dist/cjs/{component-Byx8Sl1k.js → component-BlAPlTfV.js} +2 -2
  31. package/dist/cjs/{component-DTToXqth.js → component-Cty_HlJR.js} +4 -4
  32. package/dist/cjs/component-Cvjqbxf4.js +94 -0
  33. package/dist/cjs/{component-DK-qYG29.js → component-DAQ1XSNA.js} +26 -5
  34. package/dist/cjs/component-DF5q9ssd.js +100 -0
  35. package/dist/cjs/{component-DMaPKMLG.js → component-DMfcX1br.js} +3 -3
  36. package/dist/cjs/{component-x3LvOAC0.js → component-Dkx5Zyhq.js} +2 -2
  37. package/dist/cjs/component-DtxKrISb.js +141 -0
  38. package/dist/cjs/{component-w4DHKGRj.js → component-lmJOXuD6.js} +13 -11
  39. package/dist/cjs/{component-names-EMVnNhTP.js → component-names-BMpML1sX.js} +0 -2
  40. package/dist/cjs/{contrast-BTU5ne8E.js → contrast-4mAdSLs0.js} +5 -5
  41. package/dist/cjs/{controller-ncy0x4Nz.js → controller-tEyAFJN9.js} +15 -15
  42. package/dist/cjs/{dev.utils-r-OFnYmI.js → dev.utils-D5qh-RLT.js} +2 -2
  43. package/dist/cjs/{devtools-BjCHvsaO.js → devtools-Dtv-Apvj.js} +3 -3
  44. package/dist/cjs/disabled-jYcvcwjv.js +10 -0
  45. package/dist/cjs/{element-focus-D5g3xQN4.js → element-focus-CzkKMwtn.js} +24 -0
  46. package/dist/cjs/{element-interaction-7FI_z19L.js → element-interaction-BtYQAbhu.js} +1 -1
  47. package/dist/cjs/{field-control-B2MocM-9.js → field-control-Btb5zapE.js} +8 -8
  48. package/dist/cjs/{group-DUgI6ORW.js → group-Dg2gJze5.js} +7 -7
  49. package/dist/cjs/has-closer-CvNa5gqv.js +10 -0
  50. package/dist/cjs/href-BBhiVyPb.js +10 -0
  51. package/dist/cjs/{i18n-BPfGxCna.js → i18n-BnOWw1MQ.js} +1 -1
  52. package/dist/cjs/id-D1VZsLkg.js +10 -0
  53. package/dist/cjs/{index-1NUYc4bH.js → index-BacpU-d0.js} +2 -6
  54. package/dist/cjs/index.cjs.js +4 -4
  55. package/dist/cjs/{input-tgqPNmdz.js → input-CgTL2oH6.js} +5 -5
  56. package/dist/cjs/{input-container-Ce6tEgzv.js → input-container-PaL4ZNf3.js} +9 -9
  57. package/dist/cjs/{item-BDJC0QKy.js → item-CErU-EPA.js} +6 -6
  58. package/dist/cjs/{item-CU9y10V3.js → item-CLnIJY4J.js} +7 -7
  59. package/dist/cjs/{item-do7gGebG.js → item-CPxmIcoq.js} +42 -40
  60. package/dist/cjs/{item-CdalyKjL.js → item-Cckqxc6T.js} +35 -44
  61. package/dist/cjs/kol-abbr.cjs.entry.js +15 -13
  62. package/dist/cjs/kol-accordion.cjs.entry.js +29 -23
  63. package/dist/cjs/kol-alert.cjs.entry.js +41 -35
  64. package/dist/cjs/kol-avatar.cjs.entry.js +28 -22
  65. package/dist/cjs/kol-badge.cjs.entry.js +38 -35
  66. package/dist/cjs/kol-breadcrumb.cjs.entry.js +49 -47
  67. package/dist/cjs/kol-button-link.cjs.entry.js +52 -37
  68. package/dist/cjs/kol-button.cjs.entry.js +53 -37
  69. package/dist/cjs/kol-card.cjs.entry.js +47 -48
  70. package/dist/cjs/kol-click-button.cjs.entry.js +18 -14
  71. package/dist/cjs/kol-combobox.cjs.entry.js +77 -64
  72. package/dist/cjs/kol-details.cjs.entry.js +29 -23
  73. package/dist/cjs/kol-dialog.cjs.entry.js +43 -37
  74. package/dist/cjs/kol-drawer.cjs.entry.js +47 -48
  75. package/dist/cjs/kol-form.cjs.entry.js +40 -36
  76. package/dist/cjs/kol-heading.cjs.entry.js +22 -16
  77. package/dist/cjs/kol-icon.cjs.entry.js +15 -13
  78. package/dist/cjs/kol-image.cjs.entry.js +23 -16
  79. package/dist/cjs/kol-input-checkbox.cjs.entry.js +73 -60
  80. package/dist/cjs/kol-input-color.cjs.entry.js +72 -62
  81. package/dist/cjs/kol-input-date.cjs.entry.js +98 -66
  82. package/dist/cjs/kol-input-email.cjs.entry.js +74 -55
  83. package/dist/cjs/kol-input-file.cjs.entry.js +73 -57
  84. package/dist/cjs/kol-input-number.cjs.entry.js +81 -61
  85. package/dist/cjs/kol-input-password.cjs.entry.js +79 -58
  86. package/dist/cjs/kol-input-radio.cjs.entry.js +57 -50
  87. package/dist/cjs/kol-input-range.cjs.entry.js +73 -56
  88. package/dist/cjs/kol-input-text.cjs.entry.js +91 -65
  89. package/dist/cjs/kol-kolibri.cjs.entry.js +16 -15
  90. package/dist/cjs/kol-link-button.cjs.entry.js +46 -30
  91. package/dist/cjs/kol-link.cjs.entry.js +43 -29
  92. package/dist/cjs/kol-meter.cjs.entry.js +38 -25
  93. package/dist/cjs/kol-modal.cjs.entry.js +42 -37
  94. package/dist/cjs/kol-nav.cjs.entry.js +59 -56
  95. package/dist/cjs/kol-pagination.cjs.entry.js +48 -46
  96. package/dist/cjs/kol-popover-button.cjs.entry.js +54 -40
  97. package/dist/cjs/kol-progress.cjs.entry.js +31 -24
  98. package/dist/cjs/kol-quote.cjs.entry.js +23 -21
  99. package/dist/cjs/kol-select.cjs.entry.js +61 -47
  100. package/dist/cjs/kol-single-select.cjs.entry.js +73 -62
  101. package/dist/cjs/kol-skeleton.cjs.entry.js +15 -13
  102. package/dist/cjs/kol-skip-nav.cjs.entry.js +50 -47
  103. package/dist/cjs/kol-spin.cjs.entry.js +24 -34
  104. package/dist/cjs/kol-split-button.cjs.entry.js +57 -41
  105. package/dist/cjs/kol-table-stateful.cjs.entry.js +78 -67
  106. package/dist/cjs/kol-table-stateless.cjs.entry.js +56 -46
  107. package/dist/cjs/kol-tabs.cjs.entry.js +46 -40
  108. package/dist/cjs/kol-textarea.cjs.entry.js +80 -62
  109. package/dist/cjs/kol-toast-container.cjs.entry.js +28 -22
  110. package/dist/cjs/kol-toolbar.cjs.entry.js +40 -39
  111. package/dist/cjs/kol-tree-item.cjs.entry.js +45 -39
  112. package/dist/cjs/kol-tree.cjs.entry.js +15 -13
  113. package/dist/cjs/kol-version.cjs.entry.js +26 -21
  114. package/dist/cjs/kolibri.cjs.js +4 -4
  115. package/dist/cjs/label-hints-D6EBRW9T.js +22 -0
  116. package/dist/cjs/label-lang-segment-CYlAqtUl.js +13 -0
  117. package/dist/cjs/label-vVOiX4dC.js +14 -0
  118. package/dist/cjs/label-with-expert-slot-B9z4nqW1.js +14 -0
  119. package/dist/cjs/level-BAiEYu4U.js +11 -0
  120. package/dist/cjs/link-target-4AzB3I84.js +10 -0
  121. package/dist/cjs/links-CPNK7VZo.js +15 -0
  122. package/dist/cjs/loader.cjs.js +4 -4
  123. package/dist/cjs/multiple-B3ZpkzWu.js +10 -0
  124. package/dist/cjs/name-D4qpL1m-.js +10 -0
  125. package/dist/cjs/{number-value-aLzn0dDO.js → number-value-B2yoKlvx.js} +5 -5
  126. package/dist/cjs/open-CvoX_qxD.js +10 -0
  127. package/dist/cjs/{options-BRwmqi8M.js → options-B2pQC9w2.js} +3 -3
  128. package/dist/cjs/{orientation-BcqEqZ3D.js → orientation-u2cvwgBc.js} +3 -3
  129. package/dist/cjs/placeholder-C9Ngp2tQ.js +10 -0
  130. package/dist/cjs/{base-web-component-DPBaBA5x.js → props-from-config-BQ2SOZlz.js} +262 -72
  131. package/dist/cjs/read-only-DfWF-Coi.js +10 -0
  132. package/dist/cjs/required-CdXn16dq.js +10 -0
  133. package/dist/cjs/resolve-props-B5MED90T.js +58 -0
  134. package/dist/cjs/resolve-props-B8kPPEMw.js +60 -0
  135. package/dist/cjs/rows-Ca5ya9tG.js +10 -0
  136. package/dist/cjs/{scroll-lock-Bs5vb-ss.js → scroll-lock-jojYHBR3.js} +2 -2
  137. package/dist/cjs/{smart-button-DQryZ9gX.js → smart-button-CB8qIzgQ.js} +3 -3
  138. package/dist/cjs/spell-check-DKRC8xbW.js +10 -0
  139. package/dist/cjs/src-C3NG0rLO.js +10 -0
  140. package/dist/cjs/step-CZNyTb2h.js +10 -0
  141. package/dist/cjs/{suggestions-b21ak6-A.js → suggestions-BRclldK2.js} +3 -3
  142. package/dist/cjs/{suggestions-B4X9HMr-.js → suggestions-CRyB_YCX.js} +4 -4
  143. package/dist/cjs/test-component.cjs.entry.js +2 -2
  144. package/dist/cjs/{toggle-handler-AgDdplvI.js → toggle-handler-DRPltZqQ.js} +13 -13
  145. package/dist/cjs/unique-nav-labels-CIAwid5V.js +25 -0
  146. package/dist/cjs/unit-bsoemclF.js +13 -0
  147. package/dist/cjs/validators-DuLdbf2D.js +15 -0
  148. package/dist/cjs/value-string-DZ_FFaUt.js +10 -0
  149. package/dist/cjs/{width-DF6eLXIz.js → width-BklaRCqt.js} +7 -4
  150. package/dist/collection/collection-manifest.json +13 -17
  151. package/dist/collection/components/abbr/component.js +12 -10
  152. package/dist/collection/components/abbr/style.css +0 -3
  153. package/dist/collection/components/accordion/component.js +38 -20
  154. package/dist/collection/components/accordion/style.css +2 -5
  155. package/dist/collection/components/alert/component.js +35 -20
  156. package/dist/collection/components/alert/style.css +2 -5
  157. package/dist/collection/components/avatar/component.js +32 -12
  158. package/dist/collection/components/avatar/style.css +0 -3
  159. package/dist/collection/components/badge/component.js +19 -12
  160. package/dist/collection/components/badge/style.css +2 -5
  161. package/dist/collection/components/breadcrumb/component.js +7 -6
  162. package/dist/collection/components/breadcrumb/style.css +2 -5
  163. package/dist/collection/components/button/base.js +4 -4
  164. package/dist/collection/components/button/component.js +110 -38
  165. package/dist/collection/components/button/style.css +2 -5
  166. package/dist/collection/components/button-link/component.js +101 -47
  167. package/dist/collection/components/button-link/style.css +2 -5
  168. package/dist/collection/components/card/base.js +5 -5
  169. package/dist/collection/components/card/component.js +34 -19
  170. package/dist/collection/components/card/style.css +2 -5
  171. package/dist/collection/components/{_skeleton/web-components/click-button → click-button}/component.js +23 -13
  172. package/dist/collection/components/combobox/component.js +151 -65
  173. package/dist/collection/components/combobox/style.css +3 -7
  174. package/dist/collection/components/details/component.js +38 -20
  175. package/dist/collection/components/details/style.css +2 -5
  176. package/dist/collection/components/dialog/base.js +14 -14
  177. package/dist/collection/components/dialog/component.js +24 -12
  178. package/dist/collection/components/dialog/style.css +2 -5
  179. package/dist/collection/components/drawer/component.js +33 -28
  180. package/dist/collection/components/drawer/style.css +2 -5
  181. package/dist/collection/components/form/component.js +10 -5
  182. package/dist/collection/components/form/controller.js +13 -13
  183. package/dist/collection/components/form/style.css +2 -5
  184. package/dist/collection/components/heading/component.js +18 -9
  185. package/dist/collection/components/heading/style.css +0 -3
  186. package/dist/collection/components/icon/component.js +13 -6
  187. package/dist/collection/components/icon/style.css +2 -2
  188. package/dist/collection/components/image/component.js +50 -14
  189. package/dist/collection/components/image/style.css +0 -3
  190. package/dist/collection/components/input-checkbox/component.js +135 -68
  191. package/dist/collection/components/input-checkbox/style.css +4 -8
  192. package/dist/collection/components/input-color/component.js +123 -61
  193. package/dist/collection/components/input-color/style.css +3 -7
  194. package/dist/collection/components/input-date/component.js +146 -69
  195. package/dist/collection/components/input-date/style.css +3 -7
  196. package/dist/collection/components/input-email/component.js +197 -83
  197. package/dist/collection/components/input-email/style.css +3 -7
  198. package/dist/collection/components/input-file/component.js +142 -67
  199. package/dist/collection/components/input-file/style.css +3 -7
  200. package/dist/collection/components/input-number/component.js +156 -72
  201. package/dist/collection/components/input-number/style.css +3 -7
  202. package/dist/collection/components/input-password/component.js +189 -78
  203. package/dist/collection/components/input-password/style.css +3 -7
  204. package/dist/collection/components/input-radio/component.js +91 -48
  205. package/dist/collection/components/input-radio/style.css +4 -8
  206. package/dist/collection/components/input-range/component.js +114 -52
  207. package/dist/collection/components/input-range/style.css +3 -7
  208. package/dist/collection/components/input-text/component.js +191 -80
  209. package/dist/collection/components/input-text/style.css +3 -7
  210. package/dist/collection/components/kolibri/component.js +11 -4
  211. package/dist/collection/components/kolibri/style.css +0 -3
  212. package/dist/collection/components/link/base.js +4 -4
  213. package/dist/collection/components/link/component.js +88 -41
  214. package/dist/collection/components/link/style.css +2 -5
  215. package/dist/collection/components/link-button/component.js +80 -35
  216. package/dist/collection/components/link-button/style.css +2 -5
  217. package/dist/collection/components/meter/component.js +87 -25
  218. package/dist/collection/components/meter/style.css +0 -3
  219. package/dist/collection/components/modal/component.js +23 -12
  220. package/dist/collection/components/modal/style.css +2 -5
  221. package/dist/collection/components/nav/component.js +42 -20
  222. package/dist/collection/components/nav/style.css +2 -5
  223. package/dist/collection/components/pagination/component.js +35 -10
  224. package/dist/collection/components/pagination/style.css +3 -7
  225. package/dist/collection/components/popover-button/base.js +2 -2
  226. package/dist/collection/components/popover-button/component.js +82 -30
  227. package/dist/collection/components/popover-button/style.css +2 -5
  228. package/dist/collection/components/progress/component.js +51 -17
  229. package/dist/collection/components/progress/style.css +0 -3
  230. package/dist/collection/components/{_skeleton/public-api → public-api}/contract.js +8 -8
  231. package/dist/collection/components/quote/component.js +39 -16
  232. package/dist/collection/components/quote/style.css +0 -3
  233. package/dist/collection/components/select/component.js +138 -64
  234. package/dist/collection/components/select/style.css +3 -7
  235. package/dist/collection/components/single-select/component.js +138 -61
  236. package/dist/collection/components/single-select/style.css +3 -7
  237. package/dist/collection/components/{_skeleton/web-components/skeleton → skeleton}/component.js +23 -13
  238. package/dist/collection/components/skip-nav/component.js +8 -5
  239. package/dist/collection/components/skip-nav/style.css +2 -5
  240. package/dist/collection/components/spin/component.js +31 -11
  241. package/dist/collection/components/spin/style.css +0 -3
  242. package/dist/collection/components/split-button/component.js +108 -37
  243. package/dist/collection/components/split-button/style.css +2 -5
  244. package/dist/collection/components/table-stateful/component.js +74 -46
  245. package/dist/collection/components/table-stateful/style.css +3 -7
  246. package/dist/collection/components/table-stateless/base.js +12 -7
  247. package/dist/collection/components/table-stateless/component.js +50 -17
  248. package/dist/collection/components/table-stateless/style.css +2 -5
  249. package/dist/collection/components/tabs/component.js +27 -11
  250. package/dist/collection/components/tabs/style.css +2 -5
  251. package/dist/collection/components/textarea/component.js +184 -76
  252. package/dist/collection/components/textarea/style.css +3 -7
  253. package/dist/collection/components/toaster/shadow.js +6 -5
  254. package/dist/collection/components/toaster/style.css +2 -5
  255. package/dist/collection/components/toolbar/component.js +16 -7
  256. package/dist/collection/components/toolbar/style.css +2 -5
  257. package/dist/collection/components/tree/component.js +4 -4
  258. package/dist/collection/components/tree/style.css +0 -3
  259. package/dist/collection/components/tree-item/component.js +26 -17
  260. package/dist/collection/components/tree-item/style.css +2 -5
  261. package/dist/collection/components/version/component.js +4 -4
  262. package/dist/collection/components/version/style.css +2 -5
  263. package/dist/collection/core/component-names.js +0 -2
  264. package/dist/collection/core/i18n.js +1 -1
  265. package/dist/collection/e2e/aria-details.js +9 -0
  266. package/dist/collection/e2e/input-character-limit.js +18 -18
  267. package/dist/collection/functional-components/index.js +0 -1
  268. package/dist/collection/internal/functional-components/abbr/api.js +2 -2
  269. package/dist/collection/internal/functional-components/alert/api.js +2 -2
  270. package/dist/collection/internal/functional-components/alert/component.js +5 -3
  271. package/dist/collection/internal/functional-components/avatar/component.js +9 -5
  272. package/dist/collection/internal/functional-components/base-web-component.js +20 -8
  273. package/dist/collection/internal/functional-components/breadcrumb/api.js +2 -2
  274. package/dist/collection/internal/functional-components/breadcrumb/component.js +3 -1
  275. package/dist/collection/internal/functional-components/breadcrumb/link-item.js +1 -1
  276. package/dist/collection/internal/functional-components/button/component.js +6 -4
  277. package/dist/collection/internal/functional-components/card/api.js +3 -3
  278. package/dist/collection/internal/functional-components/card/close-button.js +1 -1
  279. package/dist/collection/internal/functional-components/card/component.js +5 -2
  280. package/dist/collection/internal/functional-components/click-button/component.js +1 -1
  281. package/dist/collection/internal/functional-components/collapsible/api.js +2 -2
  282. package/dist/collection/internal/functional-components/dialog/api.js +2 -2
  283. package/dist/collection/internal/functional-components/dialog/item.js +4 -10
  284. package/dist/collection/internal/functional-components/drawer/api.js +2 -2
  285. package/dist/collection/internal/functional-components/drawer/component.js +3 -1
  286. package/dist/collection/internal/functional-components/form-association/behavior.js +1 -11
  287. package/dist/collection/internal/functional-components/form-field/base-web-component.js +32 -4
  288. package/dist/collection/internal/functional-components/form-field/component.js +1 -1
  289. package/dist/collection/internal/functional-components/form-field/date-value.js +12 -1
  290. package/dist/collection/internal/functional-components/form-field/default-input-props.js +3 -2
  291. package/dist/collection/internal/functional-components/form-field/select.js +0 -4
  292. package/dist/collection/internal/functional-components/heading/component.js +6 -3
  293. package/dist/collection/internal/functional-components/image/component.js +4 -1
  294. package/dist/collection/internal/functional-components/kolibri/component.js +4 -1
  295. package/dist/collection/internal/functional-components/link/component.js +6 -4
  296. package/dist/collection/internal/functional-components/meter/api.js +2 -2
  297. package/dist/collection/internal/functional-components/meter/component.js +13 -6
  298. package/dist/collection/internal/functional-components/nav/api.js +2 -2
  299. package/dist/collection/internal/functional-components/nav/component.js +14 -9
  300. package/dist/collection/internal/functional-components/pagination/api.js +2 -11
  301. package/dist/collection/internal/functional-components/pagination/component.js +6 -2
  302. package/dist/collection/internal/functional-components/pagination/item.js +2 -2
  303. package/dist/collection/internal/functional-components/pagination/page-size-select.js +1 -1
  304. package/dist/collection/internal/functional-components/popover/component.js +3 -1
  305. package/dist/collection/internal/functional-components/progress/api.js +2 -2
  306. package/dist/collection/internal/functional-components/progress/component.js +10 -7
  307. package/dist/collection/internal/functional-components/props-from-config.js +3 -0
  308. package/dist/collection/internal/functional-components/quote/api.js +2 -2
  309. package/dist/collection/internal/functional-components/quote/component.js +4 -2
  310. package/dist/collection/internal/functional-components/skip-nav/api.js +2 -2
  311. package/dist/collection/internal/functional-components/skip-nav/link-item.js +1 -1
  312. package/dist/collection/internal/functional-components/span/api.js +2 -4
  313. package/dist/collection/internal/functional-components/span/component.js +18 -6
  314. package/dist/collection/internal/functional-components/spin/component.js +3 -1
  315. package/dist/collection/internal/functional-components/table-stateful/api.js +2 -2
  316. package/dist/collection/internal/functional-components/table-stateless/api.js +2 -2
  317. package/dist/collection/internal/functional-components/table-stateless/component.js +19 -5
  318. package/dist/collection/internal/functional-components/table-stateless/settings.js +3 -5
  319. package/dist/collection/internal/functional-components/table-stateless/table-model.js +3 -3
  320. package/dist/collection/internal/functional-components/tabs/api.js +2 -2
  321. package/dist/collection/internal/functional-components/tabs/component.js +1 -1
  322. package/dist/collection/internal/functional-components/toolbar/api.js +2 -2
  323. package/dist/collection/internal/functional-components/tooltip/api.js +2 -2
  324. package/dist/collection/internal/functional-components/tooltip/behavior.js +3 -2
  325. package/dist/collection/internal/functional-components/tooltip/component.js +3 -1
  326. package/dist/collection/internal/functional-components/tree/api.js +2 -2
  327. package/dist/collection/internal/functional-components/tree-item/api.js +2 -2
  328. package/dist/collection/internal/functional-components/tree-item/component.js +2 -1
  329. package/dist/collection/internal/props/color.js +10 -0
  330. package/dist/collection/internal/props/dialog-callbacks.js +4 -1
  331. package/dist/collection/internal/props/helpers/factory.js +11 -3
  332. package/dist/collection/internal/props/helpers/normalizers.js +13 -1
  333. package/dist/collection/internal/props/helpers/validators.js +4 -0
  334. package/dist/collection/internal/props/hints/label-hints.js +10 -8
  335. package/dist/collection/internal/props/href.js +1 -2
  336. package/dist/collection/internal/props/index.js +1 -1
  337. package/dist/collection/internal/props/label-lang-segment.js +10 -0
  338. package/dist/collection/internal/props/label-with-expert-slot.js +6 -2
  339. package/dist/collection/internal/props/label.js +2 -1
  340. package/dist/collection/internal/props/max-length.js +1 -1
  341. package/dist/collection/internal/props/rows.js +1 -1
  342. package/dist/collection/internal/props/tabs.js +1 -1
  343. package/dist/collection/schema/bem-registry.js +39 -0
  344. package/dist/collection/schema/props/index.js +19 -2
  345. package/dist/collection/schema/props/label.js +54 -5
  346. package/dist/collection/schema/props/page-size.js +1 -0
  347. package/dist/collection/schema/props/page.js +1 -0
  348. package/dist/collection/schema/props/quote.js +1 -9
  349. package/dist/collection/schema/props/secondary-headline.js +1 -0
  350. package/dist/collection/schema/props/selected.js +1 -0
  351. package/dist/collection/schema/props/sibling-count.js +1 -0
  352. package/dist/collection/schema/props/sizes.js +1 -0
  353. package/dist/collection/schema/props/src.js +1 -0
  354. package/dist/collection/schema/props/srcset.js +1 -0
  355. package/dist/collection/schema/props/table-loading.js +1 -0
  356. package/dist/collection/schema/props/value-number-clamped.js +1 -0
  357. package/dist/collection/schema/props/value-string.js +1 -0
  358. package/dist/collection/schema/utils/dev.utils.js +8 -6
  359. package/dist/collection/schema/utils/prop.validators.js +16 -3
  360. package/dist/collection/utils/aria-labelledby.js +2 -2
  361. package/dist/collection/utils/dev.utils.js +0 -1
  362. package/dist/collection/utils/element-focus.js +23 -0
  363. package/dist/collection/utils/element-interaction.js +0 -7
  364. package/dist/collection/utils/element-themed.js +1 -1
  365. package/dist/collection/utils/testing/snapshot-input-testing.js +1 -0
  366. package/dist/collection/utils/testing/snapshot-testing.js +17 -0
  367. package/dist/collection/utils/unique-nav-labels.js +7 -5
  368. package/dist/components/aria-labelledby.js +1 -1
  369. package/dist/components/base-web-component.js +1 -1
  370. package/dist/components/base-web-component2.js +1 -1
  371. package/dist/components/base-web-component3.js +1 -1
  372. package/dist/components/base-web-component4.js +1 -1
  373. package/dist/components/base.js +1 -1
  374. package/dist/components/base2.js +1 -1
  375. package/dist/components/base3.js +1 -1
  376. package/dist/components/base4.js +1 -1
  377. package/dist/components/behavior.js +1 -1
  378. package/dist/components/behavior2.js +1 -1
  379. package/dist/components/behavior3.js +1 -1
  380. package/dist/components/behavior4.js +1 -1
  381. package/dist/components/bem-registry.js +1 -1
  382. package/dist/components/bootstrap.js +1 -1
  383. package/dist/components/color.js +1 -1
  384. package/dist/components/component-names.js +1 -1
  385. package/dist/components/component10.js +1 -1
  386. package/dist/components/component11.js +1 -1
  387. package/dist/components/component2.js +1 -1
  388. package/dist/components/component3.js +1 -1
  389. package/dist/components/component4.js +1 -1
  390. package/dist/components/component5.js +1 -1
  391. package/dist/components/component6.js +1 -1
  392. package/dist/components/component7.js +1 -1
  393. package/dist/components/component8.js +1 -1
  394. package/dist/components/component9.js +1 -1
  395. package/dist/components/contrast.js +1 -1
  396. package/dist/components/controller.js +1 -1
  397. package/dist/components/dev.utils.js +1 -1
  398. package/dist/components/devtools.js +1 -1
  399. package/dist/components/disabled.js +1 -1
  400. package/dist/components/element-focus.js +1 -1
  401. package/dist/components/field-control.js +1 -1
  402. package/dist/components/group.js +1 -1
  403. package/dist/components/has-closer.js +1 -1
  404. package/dist/components/href.js +1 -1
  405. package/dist/components/i18n.js +1 -1
  406. package/dist/components/id.js +4 -0
  407. package/dist/components/index.js +1 -1
  408. package/dist/components/input-container.js +1 -1
  409. package/dist/components/input.js +1 -1
  410. package/dist/components/item.js +1 -1
  411. package/dist/components/item2.js +1 -1
  412. package/dist/components/item3.js +1 -1
  413. package/dist/components/item4.js +1 -1
  414. package/dist/components/kol-abbr.js +1 -1
  415. package/dist/components/kol-accordion.js +1 -1
  416. package/dist/components/kol-alert.js +1 -1
  417. package/dist/components/kol-avatar.js +1 -1
  418. package/dist/components/kol-badge.js +1 -1
  419. package/dist/components/kol-breadcrumb.js +1 -1
  420. package/dist/components/kol-button-link.js +1 -1
  421. package/dist/components/kol-button.js +1 -1
  422. package/dist/components/kol-card.js +1 -1
  423. package/dist/components/kol-click-button.js +1 -1
  424. package/dist/components/kol-combobox.js +1 -1
  425. package/dist/components/kol-details.js +1 -1
  426. package/dist/components/kol-dialog.js +1 -1
  427. package/dist/components/kol-drawer.js +1 -1
  428. package/dist/components/kol-form.js +1 -1
  429. package/dist/components/kol-heading.js +1 -1
  430. package/dist/components/kol-icon.js +1 -1
  431. package/dist/components/kol-image.js +1 -1
  432. package/dist/components/kol-input-checkbox.js +1 -1
  433. package/dist/components/kol-input-color.js +1 -1
  434. package/dist/components/kol-input-date.js +1 -1
  435. package/dist/components/kol-input-email.js +1 -1
  436. package/dist/components/kol-input-file.js +1 -1
  437. package/dist/components/kol-input-number.js +1 -1
  438. package/dist/components/kol-input-password.js +1 -1
  439. package/dist/components/kol-input-radio.js +1 -1
  440. package/dist/components/kol-input-range.js +1 -1
  441. package/dist/components/kol-input-text.js +1 -1
  442. package/dist/components/kol-kolibri.js +1 -1
  443. package/dist/components/kol-link-button.js +1 -1
  444. package/dist/components/kol-link.js +1 -1
  445. package/dist/components/kol-meter.js +1 -1
  446. package/dist/components/kol-modal.js +1 -1
  447. package/dist/components/kol-nav.js +1 -1
  448. package/dist/components/kol-pagination.js +1 -1
  449. package/dist/components/kol-popover-button.js +1 -1
  450. package/dist/components/kol-progress.js +1 -1
  451. package/dist/components/kol-quote.js +1 -1
  452. package/dist/components/kol-select.js +1 -1
  453. package/dist/components/kol-single-select.js +1 -1
  454. package/dist/components/kol-skeleton.js +1 -1
  455. package/dist/components/kol-skip-nav.js +1 -1
  456. package/dist/components/kol-spin.js +1 -1
  457. package/dist/components/kol-split-button.js +1 -1
  458. package/dist/components/kol-table-stateful.js +1 -1
  459. package/dist/components/kol-table-stateless.js +1 -1
  460. package/dist/components/kol-tabs.js +1 -1
  461. package/dist/components/kol-textarea.js +1 -1
  462. package/dist/components/kol-toast-container.js +1 -1
  463. package/dist/components/kol-toolbar.js +1 -1
  464. package/dist/components/kol-tree-item.js +1 -1
  465. package/dist/components/kol-tree.js +1 -1
  466. package/dist/components/kol-version.js +1 -1
  467. package/dist/components/label-hints.js +4 -0
  468. package/dist/components/label-lang-segment.js +4 -0
  469. package/dist/components/label-with-expert-slot.js +1 -1
  470. package/dist/components/label.js +1 -1
  471. package/dist/components/level.js +1 -1
  472. package/dist/components/link-target.js +1 -1
  473. package/dist/components/links.js +1 -1
  474. package/dist/components/multiple.js +1 -1
  475. package/dist/components/name.js +1 -1
  476. package/dist/components/number-value.js +1 -1
  477. package/dist/components/open.js +1 -1
  478. package/dist/components/options2.js +1 -1
  479. package/dist/components/orientation.js +1 -1
  480. package/dist/components/placeholder.js +1 -1
  481. package/dist/components/props-from-config.js +4 -0
  482. package/dist/components/read-only.js +1 -1
  483. package/dist/components/required.js +1 -1
  484. package/dist/components/resolve-props.js +1 -1
  485. package/dist/components/resolve-props2.js +1 -1
  486. package/dist/components/rows.js +1 -1
  487. package/dist/components/smart-button.js +1 -1
  488. package/dist/components/spell-check.js +1 -1
  489. package/dist/components/src.js +1 -1
  490. package/dist/components/step.js +1 -1
  491. package/dist/components/suggestions.js +1 -1
  492. package/dist/components/suggestions2.js +1 -1
  493. package/dist/components/toggle-handler.js +1 -1
  494. package/dist/components/unique-nav-labels.js +1 -1
  495. package/dist/components/unit.js +1 -1
  496. package/dist/components/validators.js +4 -0
  497. package/dist/components/value-string.js +1 -1
  498. package/dist/components/width.js +1 -1
  499. package/dist/esm/{Heading-0teSdkFq.js → Heading-BVhjT9av.js} +1 -1
  500. package/dist/esm/{api-hAvZrw9X.js → api-D92_O-0H.js} +53 -26
  501. package/dist/esm/{app-globals-Dff_iJYF.js → app-globals-CBGjgNge.js} +3 -3
  502. package/dist/esm/{aria-labelledby-BRToXqsQ.js → aria-labelledby-CLehu03h.js} +2 -2
  503. package/dist/esm/{base-Df1bwC8d.js → base-BLBSJu_1.js} +24 -24
  504. package/dist/esm/{base-7FEvBJ3L.js → base-CHmdLgoO.js} +18 -17
  505. package/dist/esm/{base-COT79ELt.js → base-DIcqHqMz.js} +16 -15
  506. package/dist/esm/{base-CsJWjTJl.js → base-qvPPg-dn.js} +57 -51
  507. package/dist/esm/{base-web-component-cTyj95G-.js → base-web-component-CaAexWy_.js} +16 -15
  508. package/dist/esm/{base-web-component-C1XSz7ML.js → base-web-component-DbagnM7m.js} +10 -15
  509. package/dist/esm/base-web-component-XgI4wUyN.js +63 -0
  510. package/dist/esm/{behavior-Zr6qAX7F.js → behavior-B08CXmI4.js} +5 -15
  511. package/dist/esm/{behavior-BlS6DO8T.js → behavior-CwUUkdaP.js} +9 -9
  512. package/dist/esm/{behavior-BMW-_4Oy.js → behavior-DW7_5Wxp.js} +6 -6
  513. package/dist/esm/{bem-registry-BlJAUViA.js → bem-registry-CWN7_O1L.js} +40 -1
  514. package/dist/esm/{block-bem-DXqmf3Te.js → block-bem-BpQSY04L.js} +1 -1
  515. package/dist/esm/{bootstrap-DTVsVq0w.js → bootstrap-B9DtStuh.js} +2 -2
  516. package/dist/esm/{color-9CMp_pOq.js → color-eAL9I7Wq.js} +13 -3
  517. package/dist/esm/{common-D03JQJgy.js → common-OzsC_6kt.js} +20 -6
  518. package/dist/esm/{variant-PJN56KWi.js → component-8ALsFV4i.js} +38 -7
  519. package/dist/esm/component-BTMWoACz.js +93 -0
  520. package/dist/esm/{component-DzVHCXnG.js → component-Bc1n82Y8.js} +2 -2
  521. package/dist/esm/{component-Ik_-HAMT.js → component-CZZNha2e.js} +24 -12
  522. package/dist/esm/{component-DHl33p9J.js → component-CdKSiR5P.js} +10 -8
  523. package/dist/esm/{component-C9mkZ63L.js → component-Cdnq5GYF.js} +2 -2
  524. package/dist/esm/{component-BmJGOcby.js → component-D0mBOGjS.js} +13 -10
  525. package/dist/esm/{api-B9mpTRGa.js → component-DBAicJ2u.js} +42 -44
  526. package/dist/esm/component-DCw1ZAE5.js +45 -0
  527. package/dist/esm/{component-DeWynlzi.js → component-DLSlbWg8.js} +3 -3
  528. package/dist/esm/{component-BkjWlzLc.js → component-DeMf195P.js} +25 -10
  529. package/dist/esm/{component-C_Te18y_.js → component-nR5Bf9G5.js} +4 -4
  530. package/dist/esm/{component-names-Dhbtt0mX.js → component-names-CrfBV37S.js} +0 -2
  531. package/dist/esm/{contrast-BK5uVXeb.js → contrast-D78VGPFR.js} +2 -2
  532. package/dist/esm/{controller-Bf-CAo4Q.js → controller-C3O9ohSP.js} +15 -15
  533. package/dist/esm/{dev.utils-BgjegQC8.js → dev.utils-wYkYn08d.js} +2 -2
  534. package/dist/esm/{devtools-4nOArEGl.js → devtools-DrBkkLdP.js} +3 -3
  535. package/dist/esm/{disabled-BaPgTuFO.js → disabled-Cqhc40CU.js} +1 -1
  536. package/dist/esm/{element-focus-Cp994Rrk.js → element-focus-BIRmGg5W.js} +24 -1
  537. package/dist/esm/{element-interaction-Cy9tx3Sx.js → element-interaction-sGYdEpmv.js} +1 -1
  538. package/dist/esm/{field-control-Brx62dJV.js → field-control-Cs5VvsYo.js} +8 -8
  539. package/dist/esm/{group-Ce5pMiZJ.js → group-uNo1CfbK.js} +6 -6
  540. package/dist/esm/{has-closer-C9L79ect.js → has-closer-B9NQY7BK.js} +1 -1
  541. package/dist/esm/href-JqLbNBsW.js +8 -0
  542. package/dist/esm/{i18n-DRQl0u--.js → i18n-DtLKn3Xt.js} +1 -1
  543. package/dist/esm/id-CIYvVaNr.js +8 -0
  544. package/dist/esm/{index-D5UV99lE.js → index-BKEJuyFi.js} +2 -6
  545. package/dist/esm/index.js +6 -6
  546. package/dist/esm/{input-DjQorwQ5.js → input-Dja5Qioc.js} +5 -5
  547. package/dist/esm/{input-container-RSmfcRgK.js → input-container-C2Am7LEP.js} +8 -8
  548. package/dist/esm/{item-2cprk9ut.js → item-C4AmpdVD.js} +7 -7
  549. package/dist/esm/{item-DMWn_IlJ.js → item-ConW1c81.js} +6 -6
  550. package/dist/esm/{item-Bfk2xd-D.js → item-D627ShRd.js} +14 -12
  551. package/dist/esm/{item-D9_O5WAR.js → item-DIAFIFSy.js} +20 -29
  552. package/dist/esm/kol-abbr.entry.js +15 -13
  553. package/dist/esm/kol-accordion.entry.js +29 -23
  554. package/dist/esm/kol-alert.entry.js +35 -29
  555. package/dist/esm/kol-avatar.entry.js +28 -22
  556. package/dist/esm/kol-badge.entry.js +36 -33
  557. package/dist/esm/kol-breadcrumb.entry.js +36 -34
  558. package/dist/esm/kol-button-link.entry.js +52 -37
  559. package/dist/esm/kol-button.entry.js +53 -37
  560. package/dist/esm/kol-card.entry.js +46 -47
  561. package/dist/esm/kol-click-button.entry.js +18 -14
  562. package/dist/esm/kol-combobox.entry.js +70 -57
  563. package/dist/esm/kol-details.entry.js +29 -23
  564. package/dist/esm/kol-dialog.entry.js +43 -37
  565. package/dist/esm/kol-drawer.entry.js +46 -47
  566. package/dist/esm/kol-form.entry.js +33 -29
  567. package/dist/esm/kol-heading.entry.js +21 -15
  568. package/dist/esm/kol-icon.entry.js +14 -12
  569. package/dist/esm/kol-image.entry.js +16 -9
  570. package/dist/esm/kol-input-checkbox.entry.js +61 -48
  571. package/dist/esm/kol-input-color.entry.js +66 -56
  572. package/dist/esm/kol-input-date.entry.js +86 -54
  573. package/dist/esm/kol-input-email.entry.js +74 -55
  574. package/dist/esm/kol-input-file.entry.js +66 -50
  575. package/dist/esm/kol-input-number.entry.js +75 -55
  576. package/dist/esm/kol-input-password.entry.js +75 -54
  577. package/dist/esm/kol-input-radio.entry.js +53 -46
  578. package/dist/esm/kol-input-range.entry.js +67 -50
  579. package/dist/esm/kol-input-text.entry.js +85 -59
  580. package/dist/esm/kol-kolibri.entry.js +13 -12
  581. package/dist/esm/kol-link-button.entry.js +46 -30
  582. package/dist/esm/kol-link.entry.js +43 -29
  583. package/dist/esm/kol-meter.entry.js +33 -20
  584. package/dist/esm/kol-modal.entry.js +42 -37
  585. package/dist/esm/kol-nav.entry.js +52 -49
  586. package/dist/esm/kol-pagination.entry.js +48 -46
  587. package/dist/esm/kol-popover-button.entry.js +54 -40
  588. package/dist/esm/kol-progress.entry.js +27 -20
  589. package/dist/esm/kol-quote.entry.js +20 -18
  590. package/dist/esm/kol-select.entry.js +61 -47
  591. package/dist/esm/kol-single-select.entry.js +66 -55
  592. package/dist/esm/kol-skeleton.entry.js +15 -13
  593. package/dist/esm/kol-skip-nav.entry.js +36 -33
  594. package/dist/esm/kol-spin.entry.js +20 -30
  595. package/dist/esm/kol-split-button.entry.js +57 -41
  596. package/dist/esm/kol-table-stateful.entry.js +72 -61
  597. package/dist/esm/kol-table-stateless.entry.js +56 -46
  598. package/dist/esm/kol-tabs.entry.js +41 -35
  599. package/dist/esm/kol-textarea.entry.js +70 -52
  600. package/dist/esm/kol-toast-container.entry.js +28 -22
  601. package/dist/esm/kol-toolbar.entry.js +38 -37
  602. package/dist/esm/kol-tree-item.entry.js +42 -36
  603. package/dist/esm/kol-tree.entry.js +15 -13
  604. package/dist/esm/kol-version.entry.js +26 -21
  605. package/dist/esm/kolibri.js +5 -5
  606. package/dist/esm/label-BRosRgdX.js +12 -0
  607. package/dist/esm/label-hints-Jn18RUT-.js +20 -0
  608. package/dist/esm/label-lang-segment-2_GnxjFp.js +11 -0
  609. package/dist/esm/label-with-expert-slot-CicRes-W.js +12 -0
  610. package/dist/esm/{level-Df663c7y.js → level-CA1s1_Mf.js} +1 -1
  611. package/dist/esm/{link-target-C7_smSbV.js → link-target-FX94oqMo.js} +1 -1
  612. package/dist/esm/{links-B0xbzBwU.js → links-DwucTqcR.js} +2 -2
  613. package/dist/esm/loader.js +5 -5
  614. package/dist/esm/{multiple-CYHm7rd3.js → multiple-DqrZxybx.js} +1 -1
  615. package/dist/esm/{name-m3owaZxH.js → name-B2Yf3EpX.js} +1 -1
  616. package/dist/esm/{number-value-CMedWR58.js → number-value-B-SJ1dRo.js} +1 -1
  617. package/dist/esm/{open-DCGNTmvC.js → open-DRRv1KFK.js} +1 -1
  618. package/dist/esm/{options-CR431ims.js → options-DCaUcfAu.js} +2 -2
  619. package/dist/esm/{orientation-C9FRNmPD.js → orientation-XNOCaPwy.js} +1 -1
  620. package/dist/esm/{placeholder-Bwzvbwhh.js → placeholder-BeLIzdJv.js} +1 -1
  621. package/dist/esm/{base-web-component-Bcoukts3.js → props-from-config-Ci0dILpz.js} +231 -50
  622. package/dist/esm/{read-only-C5fDsZVK.js → read-only-Bby9r6ZX.js} +1 -1
  623. package/dist/esm/{required-CC0212MQ.js → required-hoaT7UmZ.js} +1 -1
  624. package/dist/esm/{resolve-props-47S-r31C.js → resolve-props-BLZxWC3j.js} +8 -8
  625. package/dist/esm/{resolve-props-CnHCiXuG.js → resolve-props-D2KiItuv.js} +8 -8
  626. package/dist/esm/rows-B0x8CR7K.js +8 -0
  627. package/dist/esm/{scroll-lock-DQGTnLvW.js → scroll-lock-Y2hf47KW.js} +2 -2
  628. package/dist/esm/{smart-button-BHM06d-t.js → smart-button-CS_ZriPt.js} +2 -2
  629. package/dist/esm/{spell-check-DiSedaOR.js → spell-check-DzgftyqL.js} +1 -1
  630. package/dist/esm/{src-CsLEg--w.js → src-DaGhmCL1.js} +1 -1
  631. package/dist/esm/{step-BxSThOke.js → step-Bdj89bGO.js} +1 -1
  632. package/dist/esm/{suggestions-C38q-5JU.js → suggestions-DuqzGDve.js} +3 -3
  633. package/dist/esm/{suggestions-B79TOsF_.js → suggestions-Dy1X-Pc3.js} +2 -2
  634. package/dist/esm/test-component.entry.js +2 -2
  635. package/dist/esm/{toggle-handler-CQ0FhBmD.js → toggle-handler-BRLmxe1J.js} +13 -13
  636. package/dist/esm/unique-nav-labels-h2KOu5Qy.js +22 -0
  637. package/dist/esm/{unit-BgjPEae-.js → unit-BUhhJbhT.js} +1 -1
  638. package/dist/esm/validators-BVM40IEr.js +11 -0
  639. package/dist/esm/{value-string-BDfywbme.js → value-string-e9pwLcS-.js} +1 -1
  640. package/dist/esm/{width-CAS8lhOU.js → width-CgYY17tL.js} +5 -2
  641. package/dist/kolibri/{Heading-0teSdkFq.js → Heading-BVhjT9av.js} +1 -1
  642. package/dist/kolibri/api-D92_O-0H.js +4 -0
  643. package/dist/kolibri/app-globals-CBGjgNge.js +4 -0
  644. package/dist/kolibri/aria-labelledby-CLehu03h.js +4 -0
  645. package/dist/kolibri/base-BLBSJu_1.js +4 -0
  646. package/dist/kolibri/base-CHmdLgoO.js +4 -0
  647. package/dist/kolibri/base-DIcqHqMz.js +4 -0
  648. package/dist/kolibri/base-qvPPg-dn.js +4 -0
  649. package/dist/kolibri/base-web-component-CaAexWy_.js +4 -0
  650. package/dist/kolibri/base-web-component-DbagnM7m.js +4 -0
  651. package/dist/kolibri/base-web-component-XgI4wUyN.js +4 -0
  652. package/dist/kolibri/behavior-B08CXmI4.js +4 -0
  653. package/dist/kolibri/behavior-CwUUkdaP.js +4 -0
  654. package/dist/kolibri/behavior-DW7_5Wxp.js +4 -0
  655. package/dist/kolibri/{bem-registry-BlJAUViA.js → bem-registry-CWN7_O1L.js} +1 -1
  656. package/dist/kolibri/{block-bem-DXqmf3Te.js → block-bem-BpQSY04L.js} +1 -1
  657. package/dist/kolibri/bootstrap-B9DtStuh.js +4 -0
  658. package/dist/kolibri/color-eAL9I7Wq.js +4 -0
  659. package/dist/kolibri/common-OzsC_6kt.js +4 -0
  660. package/dist/kolibri/component-8ALsFV4i.js +4 -0
  661. package/dist/kolibri/component-BTMWoACz.js +4 -0
  662. package/dist/kolibri/component-Bc1n82Y8.js +4 -0
  663. package/dist/kolibri/component-CZZNha2e.js +4 -0
  664. package/dist/kolibri/component-CdKSiR5P.js +4 -0
  665. package/dist/kolibri/{component-C9mkZ63L.js → component-Cdnq5GYF.js} +1 -1
  666. package/dist/kolibri/component-D0mBOGjS.js +4 -0
  667. package/dist/kolibri/component-DBAicJ2u.js +4 -0
  668. package/dist/kolibri/component-DCw1ZAE5.js +4 -0
  669. package/dist/kolibri/component-DLSlbWg8.js +4 -0
  670. package/dist/kolibri/component-DeMf195P.js +4 -0
  671. package/dist/kolibri/component-nR5Bf9G5.js +4 -0
  672. package/dist/kolibri/{component-names-Dhbtt0mX.js → component-names-CrfBV37S.js} +1 -1
  673. package/dist/kolibri/contrast-D78VGPFR.js +4 -0
  674. package/dist/kolibri/controller-C3O9ohSP.js +4 -0
  675. package/dist/kolibri/dev.utils-wYkYn08d.js +4 -0
  676. package/dist/kolibri/{devtools-4nOArEGl.js → devtools-DrBkkLdP.js} +1 -1
  677. package/dist/kolibri/disabled-Cqhc40CU.js +4 -0
  678. package/dist/kolibri/element-focus-BIRmGg5W.js +4 -0
  679. package/dist/kolibri/{element-interaction-Cy9tx3Sx.js → element-interaction-sGYdEpmv.js} +1 -1
  680. package/dist/kolibri/field-control-Cs5VvsYo.js +4 -0
  681. package/dist/kolibri/group-uNo1CfbK.js +4 -0
  682. package/dist/kolibri/has-closer-B9NQY7BK.js +4 -0
  683. package/dist/kolibri/href-JqLbNBsW.js +4 -0
  684. package/dist/kolibri/i18n-DtLKn3Xt.js +4 -0
  685. package/dist/kolibri/id-CIYvVaNr.js +4 -0
  686. package/dist/kolibri/{index-D5UV99lE.js → index-BKEJuyFi.js} +2 -2
  687. package/dist/kolibri/index.esm.js +1 -1
  688. package/dist/kolibri/input-Dja5Qioc.js +4 -0
  689. package/dist/kolibri/input-container-C2Am7LEP.js +4 -0
  690. package/dist/kolibri/item-C4AmpdVD.js +4 -0
  691. package/dist/kolibri/item-ConW1c81.js +4 -0
  692. package/dist/kolibri/item-D627ShRd.js +4 -0
  693. package/dist/kolibri/item-DIAFIFSy.js +4 -0
  694. package/dist/kolibri/kol-abbr.entry.js +1 -1
  695. package/dist/kolibri/kol-accordion.entry.js +1 -1
  696. package/dist/kolibri/kol-alert.entry.js +1 -1
  697. package/dist/kolibri/kol-avatar.entry.js +1 -1
  698. package/dist/kolibri/kol-badge.entry.js +1 -1
  699. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  700. package/dist/kolibri/kol-button-link.entry.js +1 -1
  701. package/dist/kolibri/kol-button.entry.js +1 -1
  702. package/dist/kolibri/kol-card.entry.js +1 -1
  703. package/dist/kolibri/kol-click-button.entry.js +1 -1
  704. package/dist/kolibri/kol-combobox.entry.js +1 -1
  705. package/dist/kolibri/kol-details.entry.js +1 -1
  706. package/dist/kolibri/kol-dialog.entry.js +1 -1
  707. package/dist/kolibri/kol-drawer.entry.js +1 -1
  708. package/dist/kolibri/kol-form.entry.js +1 -1
  709. package/dist/kolibri/kol-heading.entry.js +1 -1
  710. package/dist/kolibri/kol-icon.entry.js +1 -1
  711. package/dist/kolibri/kol-image.entry.js +1 -1
  712. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  713. package/dist/kolibri/kol-input-color.entry.js +1 -1
  714. package/dist/kolibri/kol-input-date.entry.js +1 -1
  715. package/dist/kolibri/kol-input-email.entry.js +1 -1
  716. package/dist/kolibri/kol-input-file.entry.js +1 -1
  717. package/dist/kolibri/kol-input-number.entry.js +1 -1
  718. package/dist/kolibri/kol-input-password.entry.js +1 -1
  719. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  720. package/dist/kolibri/kol-input-range.entry.js +1 -1
  721. package/dist/kolibri/kol-input-text.entry.js +1 -1
  722. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  723. package/dist/kolibri/kol-link-button.entry.js +1 -1
  724. package/dist/kolibri/kol-link.entry.js +1 -1
  725. package/dist/kolibri/kol-meter.entry.js +1 -1
  726. package/dist/kolibri/kol-modal.entry.js +1 -1
  727. package/dist/kolibri/kol-nav.entry.js +1 -1
  728. package/dist/kolibri/kol-pagination.entry.js +1 -1
  729. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  730. package/dist/kolibri/kol-progress.entry.js +1 -1
  731. package/dist/kolibri/kol-quote.entry.js +1 -1
  732. package/dist/kolibri/kol-select.entry.js +1 -1
  733. package/dist/kolibri/kol-single-select.entry.js +1 -1
  734. package/dist/kolibri/kol-skeleton.entry.js +1 -1
  735. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  736. package/dist/kolibri/kol-spin.entry.js +1 -1
  737. package/dist/kolibri/kol-split-button.entry.js +1 -1
  738. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  739. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  740. package/dist/kolibri/kol-tabs.entry.js +1 -1
  741. package/dist/kolibri/kol-textarea.entry.js +1 -1
  742. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  743. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  744. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  745. package/dist/kolibri/kol-tree.entry.js +1 -1
  746. package/dist/kolibri/kol-version.entry.js +1 -1
  747. package/dist/kolibri/kolibri.esm.js +1 -1
  748. package/dist/kolibri/label-BRosRgdX.js +4 -0
  749. package/dist/kolibri/label-hints-Jn18RUT-.js +4 -0
  750. package/dist/kolibri/label-lang-segment-2_GnxjFp.js +4 -0
  751. package/dist/kolibri/label-with-expert-slot-CicRes-W.js +4 -0
  752. package/dist/kolibri/level-CA1s1_Mf.js +4 -0
  753. package/dist/kolibri/link-target-FX94oqMo.js +4 -0
  754. package/dist/kolibri/links-DwucTqcR.js +4 -0
  755. package/dist/kolibri/multiple-DqrZxybx.js +4 -0
  756. package/dist/kolibri/name-B2Yf3EpX.js +4 -0
  757. package/dist/kolibri/number-value-B-SJ1dRo.js +4 -0
  758. package/dist/kolibri/open-DRRv1KFK.js +4 -0
  759. package/dist/kolibri/options-DCaUcfAu.js +4 -0
  760. package/dist/kolibri/orientation-XNOCaPwy.js +4 -0
  761. package/dist/kolibri/placeholder-BeLIzdJv.js +4 -0
  762. package/dist/kolibri/props-from-config-Ci0dILpz.js +4 -0
  763. package/dist/kolibri/read-only-Bby9r6ZX.js +4 -0
  764. package/dist/kolibri/required-hoaT7UmZ.js +4 -0
  765. package/dist/kolibri/resolve-props-BLZxWC3j.js +4 -0
  766. package/dist/kolibri/resolve-props-D2KiItuv.js +4 -0
  767. package/dist/kolibri/rows-B0x8CR7K.js +4 -0
  768. package/dist/kolibri/{scroll-lock-DQGTnLvW.js → scroll-lock-Y2hf47KW.js} +1 -1
  769. package/dist/kolibri/smart-button-CS_ZriPt.js +4 -0
  770. package/dist/kolibri/spell-check-DzgftyqL.js +4 -0
  771. package/dist/kolibri/src-DaGhmCL1.js +4 -0
  772. package/dist/kolibri/step-Bdj89bGO.js +4 -0
  773. package/dist/kolibri/suggestions-DuqzGDve.js +4 -0
  774. package/dist/kolibri/suggestions-Dy1X-Pc3.js +4 -0
  775. package/dist/kolibri/test-component.entry.js +1 -1
  776. package/dist/kolibri/toggle-handler-BRLmxe1J.js +4 -0
  777. package/dist/kolibri/unique-nav-labels-h2KOu5Qy.js +4 -0
  778. package/dist/kolibri/unit-BUhhJbhT.js +4 -0
  779. package/dist/kolibri/validators-BVM40IEr.js +4 -0
  780. package/dist/kolibri/value-string-e9pwLcS-.js +4 -0
  781. package/dist/kolibri/width-CgYY17tL.js +4 -0
  782. package/dist/types/components/abbr/component.d.ts +5 -4
  783. package/dist/types/components/accordion/component.d.ts +9 -8
  784. package/dist/types/components/alert/component.d.ts +9 -8
  785. package/dist/types/components/avatar/component.d.ts +7 -6
  786. package/dist/types/components/badge/component.d.ts +5 -4
  787. package/dist/types/components/breadcrumb/component.d.ts +2 -1
  788. package/dist/types/components/button/base.d.ts +9 -8
  789. package/dist/types/components/button/component.d.ts +13 -13
  790. package/dist/types/components/button-link/component.d.ts +11 -11
  791. package/dist/types/components/card/base.d.ts +6 -4
  792. package/dist/types/components/card/component.d.ts +5 -5
  793. package/dist/types/components/click-button/component.d.ts +15 -0
  794. package/dist/types/components/combobox/component.d.ts +23 -22
  795. package/dist/types/components/details/component.d.ts +9 -8
  796. package/dist/types/components/dialog/base.d.ts +6 -4
  797. package/dist/types/components/dialog/component.d.ts +5 -5
  798. package/dist/types/components/drawer/component.d.ts +7 -6
  799. package/dist/types/components/form/component.d.ts +2 -1
  800. package/dist/types/components/heading/component.d.ts +5 -4
  801. package/dist/types/components/icon/component.d.ts +5 -3
  802. package/dist/types/components/image/component.d.ts +11 -9
  803. package/dist/types/components/input-checkbox/component.d.ts +21 -20
  804. package/dist/types/components/input-color/component.d.ts +17 -17
  805. package/dist/types/components/input-date/component.d.ts +19 -18
  806. package/dist/types/components/input-email/component.d.ts +31 -30
  807. package/dist/types/components/input-file/component.d.ts +18 -17
  808. package/dist/types/components/input-number/component.d.ts +21 -20
  809. package/dist/types/components/input-password/component.d.ts +30 -28
  810. package/dist/types/components/input-radio/component.d.ts +15 -14
  811. package/dist/types/components/input-range/component.d.ts +15 -14
  812. package/dist/types/components/input-text/component.d.ts +28 -26
  813. package/dist/types/components/kolibri/component.d.ts +5 -4
  814. package/dist/types/components/link/base.d.ts +8 -6
  815. package/dist/types/components/link/component.d.ts +11 -13
  816. package/dist/types/components/link-button/component.d.ts +9 -11
  817. package/dist/types/components/meter/component.d.ts +19 -17
  818. package/dist/types/components/modal/component.d.ts +5 -5
  819. package/dist/types/components/nav/component.d.ts +9 -8
  820. package/dist/types/components/pagination/component.d.ts +10 -9
  821. package/dist/types/components/popover-button/base.d.ts +1 -1
  822. package/dist/types/components/popover-button/component.d.ts +9 -9
  823. package/dist/types/components/progress/component.d.ts +11 -9
  824. package/dist/types/components/{_skeleton/public-api → public-api}/contract.d.ts +1 -6
  825. package/dist/types/components/quote/component.d.ts +9 -7
  826. package/dist/types/components/select/component.d.ts +21 -20
  827. package/dist/types/components/single-select/component.d.ts +21 -20
  828. package/dist/types/components/{_skeleton/web-components/skeleton → skeleton}/component.d.ts +8 -7
  829. package/dist/types/components/skip-nav/component.d.ts +2 -1
  830. package/dist/types/components/spin/component.d.ts +7 -5
  831. package/dist/types/components/split-button/component.d.ts +13 -13
  832. package/dist/types/components/table-stateful/component.d.ts +9 -9
  833. package/dist/types/components/table-stateless/base.d.ts +6 -4
  834. package/dist/types/components/table-stateless/component.d.ts +5 -5
  835. package/dist/types/components/tabs/component.d.ts +5 -4
  836. package/dist/types/components/textarea/component.d.ts +29 -28
  837. package/dist/types/components/toolbar/component.d.ts +5 -4
  838. package/dist/types/components/tree/component.d.ts +2 -1
  839. package/dist/types/components/tree-item/component.d.ts +5 -4
  840. package/dist/types/components/version/component.d.ts +2 -1
  841. package/dist/types/components.d.ts +1420 -1043
  842. package/dist/types/core/component-names.d.ts +0 -1
  843. package/dist/types/core/i18n.d.ts +1 -1
  844. package/dist/types/e2e/aria-details.d.ts +2 -0
  845. package/dist/types/e2e/input-behavior-contract.d.ts +0 -1
  846. package/dist/types/functional-components/index.d.ts +0 -1
  847. package/dist/types/internal/functional-components/abbr/api.d.ts +1 -1
  848. package/dist/types/internal/functional-components/alert/api.d.ts +1 -1
  849. package/dist/types/internal/functional-components/avatar/api.d.ts +1 -1
  850. package/dist/types/internal/functional-components/avatar/component.d.ts +1 -1
  851. package/dist/types/internal/functional-components/badge/api.d.ts +4 -4
  852. package/dist/types/internal/functional-components/badge/component.d.ts +3 -2
  853. package/dist/types/internal/functional-components/base-web-component.d.ts +5 -1
  854. package/dist/types/internal/functional-components/breadcrumb/api.d.ts +1 -1
  855. package/dist/types/internal/functional-components/button/api.d.ts +2 -2
  856. package/dist/types/internal/functional-components/button/component.d.ts +1 -1
  857. package/dist/types/internal/functional-components/button/item.d.ts +1 -3
  858. package/dist/types/internal/functional-components/card/api.d.ts +2 -2
  859. package/dist/types/internal/functional-components/card/component.d.ts +5 -2
  860. package/dist/types/internal/functional-components/collapsible/api.d.ts +2 -2
  861. package/dist/types/internal/functional-components/combobox/api.d.ts +4 -4
  862. package/dist/types/internal/functional-components/counter/api.d.ts +1 -1
  863. package/dist/types/internal/functional-components/dialog/api.d.ts +2 -2
  864. package/dist/types/internal/functional-components/dialog/item.d.ts +2 -2
  865. package/dist/types/internal/functional-components/drawer/api.d.ts +2 -2
  866. package/dist/types/internal/functional-components/drawer/component.d.ts +1 -1
  867. package/dist/types/internal/functional-components/form/api.d.ts +1 -1
  868. package/dist/types/internal/functional-components/form-association/api.d.ts +1 -1
  869. package/dist/types/internal/functional-components/form-association/behavior.d.ts +0 -3
  870. package/dist/types/internal/functional-components/form-field/api.d.ts +3 -3
  871. package/dist/types/internal/functional-components/form-field/base-web-component.d.ts +5 -0
  872. package/dist/types/internal/functional-components/form-field/component.d.ts +2 -2
  873. package/dist/types/internal/functional-components/form-field/default-input-props.d.ts +4 -3
  874. package/dist/types/internal/functional-components/form-field/field-control.d.ts +2 -2
  875. package/dist/types/internal/functional-components/form-field/label.d.ts +2 -1
  876. package/dist/types/internal/functional-components/generic-types.d.ts +6 -5
  877. package/dist/types/internal/functional-components/heading/api.d.ts +2 -2
  878. package/dist/types/internal/functional-components/heading/component.d.ts +1 -1
  879. package/dist/types/internal/functional-components/icon/api.d.ts +1 -1
  880. package/dist/types/internal/functional-components/image/api.d.ts +2 -2
  881. package/dist/types/internal/functional-components/input-checkbox/api.d.ts +3 -3
  882. package/dist/types/internal/functional-components/input-color/api.d.ts +6 -6
  883. package/dist/types/internal/functional-components/input-date/api.d.ts +6 -6
  884. package/dist/types/internal/functional-components/input-email/api.d.ts +6 -6
  885. package/dist/types/internal/functional-components/input-file/api.d.ts +6 -6
  886. package/dist/types/internal/functional-components/input-number/api.d.ts +6 -6
  887. package/dist/types/internal/functional-components/input-password/api.d.ts +6 -6
  888. package/dist/types/internal/functional-components/input-radio/api.d.ts +3 -3
  889. package/dist/types/internal/functional-components/input-range/api.d.ts +4 -4
  890. package/dist/types/internal/functional-components/input-text/api.d.ts +6 -6
  891. package/dist/types/internal/functional-components/kolibri/api.d.ts +1 -1
  892. package/dist/types/internal/functional-components/kolibri/component.d.ts +1 -1
  893. package/dist/types/internal/functional-components/link/api.d.ts +2 -2
  894. package/dist/types/internal/functional-components/link/component.d.ts +1 -1
  895. package/dist/types/internal/functional-components/link/item.d.ts +2 -1
  896. package/dist/types/internal/functional-components/meter/api.d.ts +11 -2
  897. package/dist/types/internal/functional-components/meter/component.d.ts +4 -1
  898. package/dist/types/internal/functional-components/nav/api.d.ts +2 -2
  899. package/dist/types/internal/functional-components/nav/component.d.ts +1 -1
  900. package/dist/types/internal/functional-components/pagination/api.d.ts +2 -2
  901. package/dist/types/internal/functional-components/pagination/component.d.ts +2 -2
  902. package/dist/types/internal/functional-components/pagination/item.d.ts +6 -4
  903. package/dist/types/internal/functional-components/pagination/page-size-select.d.ts +2 -0
  904. package/dist/types/internal/functional-components/popover-button/api.d.ts +2 -2
  905. package/dist/types/internal/functional-components/progress/api.d.ts +11 -2
  906. package/dist/types/internal/functional-components/progress/component.d.ts +1 -1
  907. package/dist/types/internal/functional-components/props-from-config.d.ts +4 -1
  908. package/dist/types/internal/functional-components/quote/api.d.ts +2 -2
  909. package/dist/types/internal/functional-components/quote/component.d.ts +1 -1
  910. package/dist/types/internal/functional-components/select/api.d.ts +4 -4
  911. package/dist/types/internal/functional-components/single-select/api.d.ts +4 -4
  912. package/dist/types/internal/functional-components/skeleton/api.d.ts +1 -1
  913. package/dist/types/internal/functional-components/skip-nav/api.d.ts +1 -1
  914. package/dist/types/internal/functional-components/span/api.d.ts +2 -2
  915. package/dist/types/internal/functional-components/span/component.d.ts +2 -1
  916. package/dist/types/internal/functional-components/spin/api.d.ts +1 -1
  917. package/dist/types/internal/functional-components/spin/component.d.ts +1 -1
  918. package/dist/types/internal/functional-components/table-stateful/api.d.ts +2 -2
  919. package/dist/types/internal/functional-components/table-stateless/api.d.ts +2 -2
  920. package/dist/types/internal/functional-components/table-stateless/component.d.ts +2 -1
  921. package/dist/types/internal/functional-components/table-stateless/table-model.d.ts +0 -3
  922. package/dist/types/internal/functional-components/tabs/api.d.ts +2 -2
  923. package/dist/types/internal/functional-components/text-input/api.d.ts +6 -6
  924. package/dist/types/internal/functional-components/textarea/api.d.ts +4 -4
  925. package/dist/types/internal/functional-components/toolbar/api.d.ts +2 -2
  926. package/dist/types/internal/functional-components/tooltip/api.d.ts +2 -2
  927. package/dist/types/internal/functional-components/tooltip/behavior.d.ts +2 -1
  928. package/dist/types/internal/functional-components/tree/api.d.ts +1 -1
  929. package/dist/types/internal/functional-components/tree-item/api.d.ts +2 -2
  930. package/dist/types/internal/props/accept.d.ts +2 -1
  931. package/dist/types/internal/props/access-key.d.ts +3 -2
  932. package/dist/types/internal/props/active.d.ts +3 -2
  933. package/dist/types/internal/props/adjust-height.d.ts +3 -2
  934. package/dist/types/internal/props/alert-callbacks.d.ts +1 -3
  935. package/dist/types/internal/props/alert-type.d.ts +1 -1
  936. package/dist/types/internal/props/alert-variant.d.ts +1 -1
  937. package/dist/types/internal/props/alert.d.ts +3 -2
  938. package/dist/types/internal/props/allow-markdown.d.ts +3 -2
  939. package/dist/types/internal/props/allow-multi-sort.d.ts +3 -2
  940. package/dist/types/internal/props/alt.d.ts +3 -2
  941. package/dist/types/internal/props/aria-controls.d.ts +3 -2
  942. package/dist/types/internal/props/aria-current-value.d.ts +1 -1
  943. package/dist/types/internal/props/aria-description.d.ts +3 -2
  944. package/dist/types/internal/props/aria-details.d.ts +3 -2
  945. package/dist/types/internal/props/aria-expanded.d.ts +1 -1
  946. package/dist/types/internal/props/aria-has-popup.d.ts +1 -1
  947. package/dist/types/internal/props/aria-owns.d.ts +3 -2
  948. package/dist/types/internal/props/aria-selected.d.ts +1 -1
  949. package/dist/types/internal/props/auto-complete.d.ts +1 -1
  950. package/dist/types/internal/props/badge-text.d.ts +3 -2
  951. package/dist/types/internal/props/boundary-count.d.ts +3 -2
  952. package/dist/types/internal/props/breadcrumb-links.d.ts +1 -4
  953. package/dist/types/internal/props/button-callbacks.d.ts +1 -3
  954. package/dist/types/internal/props/button-type.d.ts +1 -1
  955. package/dist/types/internal/props/card-callbacks.d.ts +1 -3
  956. package/dist/types/internal/props/checkbox-value.d.ts +1 -1
  957. package/dist/types/internal/props/checked.d.ts +3 -2
  958. package/dist/types/internal/props/collapsible-callbacks.d.ts +1 -3
  959. package/dist/types/internal/props/collapsible.d.ts +3 -2
  960. package/dist/types/internal/props/color.d.ts +1 -1
  961. package/dist/types/internal/props/custom-class.d.ts +3 -2
  962. package/dist/types/internal/props/dialog-callbacks.d.ts +1 -1
  963. package/dist/types/internal/props/disabled.d.ts +3 -2
  964. package/dist/types/internal/props/download.d.ts +2 -1
  965. package/dist/types/internal/props/drawer-callbacks.d.ts +1 -1
  966. package/dist/types/internal/props/error-list.d.ts +1 -1
  967. package/dist/types/internal/props/fixed-cols.d.ts +1 -1
  968. package/dist/types/internal/props/form-callbacks.d.ts +1 -3
  969. package/dist/types/internal/props/has-clear-button.d.ts +3 -2
  970. package/dist/types/internal/props/has-closer.d.ts +3 -2
  971. package/dist/types/internal/props/has-compact-button.d.ts +3 -2
  972. package/dist/types/internal/props/has-counter.d.ts +3 -2
  973. package/dist/types/internal/props/has-create-button.d.ts +3 -2
  974. package/dist/types/internal/props/has-icons-when-expanded.d.ts +3 -2
  975. package/dist/types/internal/props/has-settings-menu.d.ts +3 -2
  976. package/dist/types/internal/props/helpers/factory.d.ts +13 -6
  977. package/dist/types/internal/props/helpers/normalizers.d.ts +2 -1
  978. package/dist/types/internal/props/helpers/validators.d.ts +4 -0
  979. package/dist/types/internal/props/hide-label.d.ts +3 -2
  980. package/dist/types/internal/props/hide-msg.d.ts +3 -2
  981. package/dist/types/internal/props/high.d.ts +3 -2
  982. package/dist/types/internal/props/hint.d.ts +3 -2
  983. package/dist/types/internal/props/hints/label-hints.d.ts +2 -1
  984. package/dist/types/internal/props/horizontal-icons.d.ts +1 -1
  985. package/dist/types/internal/props/href.d.ts +3 -3
  986. package/dist/types/internal/props/icons-input-checkbox.d.ts +1 -1
  987. package/dist/types/internal/props/icons.d.ts +1 -1
  988. package/dist/types/internal/props/id.d.ts +3 -2
  989. package/dist/types/internal/props/image-callbacks.d.ts +1 -3
  990. package/dist/types/internal/props/indeterminate.d.ts +3 -2
  991. package/dist/types/internal/props/index.d.ts +1 -1
  992. package/dist/types/internal/props/inline.d.ts +3 -2
  993. package/dist/types/internal/props/input-date-type.d.ts +1 -1
  994. package/dist/types/internal/props/input-text-type.d.ts +1 -1
  995. package/dist/types/internal/props/kolibri-color.d.ts +1 -1
  996. package/dist/types/internal/props/label-align.d.ts +1 -1
  997. package/dist/types/internal/props/label-lang-segment.d.ts +4 -0
  998. package/dist/types/internal/props/label-with-expert-slot.d.ts +3 -2
  999. package/dist/types/internal/props/label.d.ts +2 -1
  1000. package/dist/types/internal/props/labeled.d.ts +3 -2
  1001. package/dist/types/internal/props/level.d.ts +1 -1
  1002. package/dist/types/internal/props/link-callbacks.d.ts +1 -3
  1003. package/dist/types/internal/props/link-role.d.ts +1 -1
  1004. package/dist/types/internal/props/link-target.d.ts +3 -2
  1005. package/dist/types/internal/props/loading.d.ts +1 -1
  1006. package/dist/types/internal/props/low.d.ts +3 -2
  1007. package/dist/types/internal/props/max-length-behavior.d.ts +1 -1
  1008. package/dist/types/internal/props/max-length.d.ts +2 -1
  1009. package/dist/types/internal/props/max.d.ts +3 -2
  1010. package/dist/types/internal/props/min.d.ts +3 -2
  1011. package/dist/types/internal/props/multiple.d.ts +3 -2
  1012. package/dist/types/internal/props/name.d.ts +3 -2
  1013. package/dist/types/internal/props/nav-links.d.ts +1 -3
  1014. package/dist/types/internal/props/open.d.ts +3 -2
  1015. package/dist/types/internal/props/optimum.d.ts +3 -2
  1016. package/dist/types/internal/props/options-with-optgroup.d.ts +1 -1
  1017. package/dist/types/internal/props/orientation.d.ts +1 -1
  1018. package/dist/types/internal/props/page-size-options.d.ts +1 -1
  1019. package/dist/types/internal/props/page-size.d.ts +3 -2
  1020. package/dist/types/internal/props/page.d.ts +3 -2
  1021. package/dist/types/internal/props/pagination-callbacks.d.ts +1 -3
  1022. package/dist/types/internal/props/pagination-has-buttons.d.ts +1 -1
  1023. package/dist/types/internal/props/pagination-max.d.ts +3 -2
  1024. package/dist/types/internal/props/pagination-position.d.ts +1 -1
  1025. package/dist/types/internal/props/pattern.d.ts +2 -1
  1026. package/dist/types/internal/props/placeholder.d.ts +2 -1
  1027. package/dist/types/internal/props/quote.d.ts +3 -2
  1028. package/dist/types/internal/props/radio-orientation.d.ts +1 -1
  1029. package/dist/types/internal/props/radio-value.d.ts +1 -1
  1030. package/dist/types/internal/props/read-only.d.ts +3 -2
  1031. package/dist/types/internal/props/required-text.d.ts +1 -1
  1032. package/dist/types/internal/props/required.d.ts +3 -2
  1033. package/dist/types/internal/props/resize.d.ts +1 -1
  1034. package/dist/types/internal/props/rows.d.ts +2 -1
  1035. package/dist/types/internal/props/secondary-headline.d.ts +3 -2
  1036. package/dist/types/internal/props/select-value.d.ts +1 -1
  1037. package/dist/types/internal/props/selected.d.ts +3 -2
  1038. package/dist/types/internal/props/short-key.d.ts +3 -2
  1039. package/dist/types/internal/props/show.d.ts +3 -2
  1040. package/dist/types/internal/props/sibling-count.d.ts +3 -2
  1041. package/dist/types/internal/props/sizes.d.ts +3 -2
  1042. package/dist/types/internal/props/skip-nav-links.d.ts +1 -3
  1043. package/dist/types/internal/props/smart-button.d.ts +2 -2
  1044. package/dist/types/internal/props/span-icons.d.ts +1 -1
  1045. package/dist/types/internal/props/spell-check.d.ts +2 -1
  1046. package/dist/types/internal/props/src.d.ts +3 -2
  1047. package/dist/types/internal/props/srcset.d.ts +3 -2
  1048. package/dist/types/internal/props/suggestions.d.ts +1 -1
  1049. package/dist/types/internal/props/sync-value-by-selector.d.ts +2 -1
  1050. package/dist/types/internal/props/tab-behavior.d.ts +1 -1
  1051. package/dist/types/internal/props/tab-index.d.ts +3 -2
  1052. package/dist/types/internal/props/table-data-foot.d.ts +1 -1
  1053. package/dist/types/internal/props/table-data.d.ts +1 -1
  1054. package/dist/types/internal/props/table-headers.d.ts +1 -1
  1055. package/dist/types/internal/props/table-loading.d.ts +3 -2
  1056. package/dist/types/internal/props/table-pagination.d.ts +1 -1
  1057. package/dist/types/internal/props/table-selection.d.ts +1 -1
  1058. package/dist/types/internal/props/table-stateful-headers.d.ts +1 -1
  1059. package/dist/types/internal/props/tabs-callbacks.d.ts +1 -1
  1060. package/dist/types/internal/props/tabs.d.ts +1 -1
  1061. package/dist/types/internal/props/toolbar-items.d.ts +1 -1
  1062. package/dist/types/internal/props/touched.d.ts +3 -2
  1063. package/dist/types/internal/props/unit.d.ts +3 -2
  1064. package/dist/types/internal/props/value-number-clamped.d.ts +4 -3
  1065. package/dist/types/internal/props/value-string.d.ts +2 -1
  1066. package/dist/types/internal/props/variant-dialog.d.ts +1 -1
  1067. package/dist/types/internal/props/variant-input-checkbox.d.ts +1 -1
  1068. package/dist/types/internal/props/variant-progress.d.ts +1 -1
  1069. package/dist/types/internal/props/variant-quote.d.ts +1 -1
  1070. package/dist/types/internal/props/variant-spin.d.ts +1 -1
  1071. package/dist/types/internal/props/variant.d.ts +1 -1
  1072. package/dist/types/internal/props/visibility-toggle.d.ts +3 -2
  1073. package/dist/types/internal/props/width.d.ts +3 -2
  1074. package/dist/types/schema/bem-registry.d.ts +75 -0
  1075. package/dist/types/schema/components/alert.d.ts +2 -2
  1076. package/dist/types/schema/components/badge.d.ts +2 -2
  1077. package/dist/types/schema/components/breadcrumb.d.ts +2 -2
  1078. package/dist/types/schema/components/card.d.ts +2 -2
  1079. package/dist/types/schema/components/collapsible.d.ts +3 -3
  1080. package/dist/types/schema/components/dialog.d.ts +3 -3
  1081. package/dist/types/schema/components/drawer.d.ts +3 -3
  1082. package/dist/types/schema/components/split-button.d.ts +2 -2
  1083. package/dist/types/schema/components/table.d.ts +3 -3
  1084. package/dist/types/schema/components/tableStateless.d.ts +3 -3
  1085. package/dist/types/schema/components/tabs.d.ts +2 -2
  1086. package/dist/types/schema/components/tree-item.d.ts +2 -2
  1087. package/dist/types/schema/props/allow-markdown.d.ts +1 -0
  1088. package/dist/types/schema/props/aria-controls.d.ts +1 -2
  1089. package/dist/types/schema/props/boundary-count.d.ts +1 -0
  1090. package/dist/types/schema/props/has-clear-button.d.ts +1 -0
  1091. package/dist/types/schema/props/has-compact-button.d.ts +1 -2
  1092. package/dist/types/schema/props/high.d.ts +1 -0
  1093. package/dist/types/schema/props/index.d.ts +19 -2
  1094. package/dist/types/schema/props/label.d.ts +16 -2
  1095. package/dist/types/schema/props/labeled.d.ts +1 -0
  1096. package/dist/types/schema/props/low.d.ts +1 -0
  1097. package/dist/types/schema/props/min.d.ts +1 -0
  1098. package/dist/types/schema/props/optimum.d.ts +1 -0
  1099. package/dist/types/schema/props/page-size.d.ts +1 -0
  1100. package/dist/types/schema/props/page.d.ts +1 -0
  1101. package/dist/types/schema/props/quote.d.ts +0 -5
  1102. package/dist/types/schema/props/secondary-headline.d.ts +1 -0
  1103. package/dist/types/schema/props/selected.d.ts +1 -0
  1104. package/dist/types/schema/props/sibling-count.d.ts +1 -0
  1105. package/dist/types/schema/props/sizes.d.ts +1 -0
  1106. package/dist/types/schema/props/src.d.ts +1 -0
  1107. package/dist/types/schema/props/srcset.d.ts +1 -0
  1108. package/dist/types/schema/props/table-loading.d.ts +1 -0
  1109. package/dist/types/schema/props/value-number-clamped.d.ts +1 -0
  1110. package/dist/types/schema/props/value-string.d.ts +1 -0
  1111. package/dist/types/schema/types/button-link-text.d.ts +4 -4
  1112. package/dist/types/schema/utils/dev.utils.d.ts +1 -0
  1113. package/dist/types/utils/dev.utils.d.ts +0 -2
  1114. package/dist/types/utils/element-focus.d.ts +1 -0
  1115. package/dist/types/utils/element-interaction.d.ts +0 -1
  1116. package/dist/types/utils/element-themed.d.ts +1 -2
  1117. package/dist/types/utils/unique-nav-labels.d.ts +3 -2
  1118. package/doc/abbr.md +3 -3
  1119. package/doc/accordion.md +1 -1
  1120. package/doc/alert.md +1 -1
  1121. package/doc/badge.md +6 -6
  1122. package/doc/breadcrumb.md +4 -4
  1123. package/doc/button-link.md +2 -2
  1124. package/doc/button.md +1 -1
  1125. package/doc/card.md +2 -2
  1126. package/doc/combobox.md +23 -23
  1127. package/doc/details.md +1 -1
  1128. package/doc/dialog.md +1 -1
  1129. package/doc/drawer.md +1 -1
  1130. package/doc/heading.md +5 -5
  1131. package/doc/input-checkbox.md +23 -23
  1132. package/doc/input-color.md +22 -22
  1133. package/doc/input-date.md +28 -28
  1134. package/doc/input-email.md +30 -30
  1135. package/doc/input-file.md +22 -22
  1136. package/doc/input-number.md +28 -28
  1137. package/doc/input-password.md +29 -29
  1138. package/doc/input-radio.md +19 -19
  1139. package/doc/input-range.md +24 -24
  1140. package/doc/input-text.md +31 -31
  1141. package/doc/link-button.md +5 -5
  1142. package/doc/link.md +6 -6
  1143. package/doc/meter.md +1 -1
  1144. package/doc/modal.md +1 -1
  1145. package/doc/popover-button.md +18 -18
  1146. package/doc/progress.md +7 -7
  1147. package/doc/quote.md +6 -6
  1148. package/doc/select.md +24 -24
  1149. package/doc/single-select.md +24 -24
  1150. package/doc/split-button.md +1 -1
  1151. package/doc/table-stateful.md +1 -1
  1152. package/doc/table-stateless.md +1 -1
  1153. package/doc/textarea.md +3 -3
  1154. package/doc/tree-item.md +6 -6
  1155. package/package.json +3 -10
  1156. package/vscode-custom-data.json +38 -38
  1157. package/dist/cjs/align-NV74hwT0.js +0 -22
  1158. package/dist/cjs/api-BBdhCCKv.js +0 -73
  1159. package/dist/cjs/api-BlwpFlt1.js +0 -96
  1160. package/dist/cjs/component-B_EvGSM0.js +0 -22
  1161. package/dist/cjs/component-kxdSa2S4.js +0 -36
  1162. package/dist/cjs/component-plNY-StC.js +0 -13
  1163. package/dist/cjs/disabled-wIEbt0Gz.js +0 -10
  1164. package/dist/cjs/has-closer-4Czygcsx.js +0 -10
  1165. package/dist/cjs/href-B2aqb6-P.js +0 -12
  1166. package/dist/cjs/isArray-BOIOdEQh.js +0 -163
  1167. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +0 -82
  1168. package/dist/cjs/label-DeUoiK6M.js +0 -39
  1169. package/dist/cjs/label-with-expert-slot-B1k6ppMF.js +0 -10
  1170. package/dist/cjs/level-DGDM1aXl.js +0 -11
  1171. package/dist/cjs/link-target-PjKWXgno.js +0 -10
  1172. package/dist/cjs/links-0QyGYlHz.js +0 -15
  1173. package/dist/cjs/multiple-BoCGiGxR.js +0 -10
  1174. package/dist/cjs/name-BZcwC1Zd.js +0 -10
  1175. package/dist/cjs/open-ui_yY8GH.js +0 -10
  1176. package/dist/cjs/placeholder-CCYSgsip.js +0 -10
  1177. package/dist/cjs/read-only-KKKbZyk5.js +0 -10
  1178. package/dist/cjs/required-CeiUcxrv.js +0 -10
  1179. package/dist/cjs/resolve-props-BcGzqFFR.js +0 -58
  1180. package/dist/cjs/resolve-props-Cv67cUZA.js +0 -60
  1181. package/dist/cjs/rows-BWBG8nDk.js +0 -10
  1182. package/dist/cjs/spell-check-DHRle7ui.js +0 -10
  1183. package/dist/cjs/src-B6CU1zD0.js +0 -10
  1184. package/dist/cjs/step-kuREYDVE.js +0 -10
  1185. package/dist/cjs/unique-nav-labels-CuHbVHx9.js +0 -22
  1186. package/dist/cjs/unit-DHpzrXY7.js +0 -13
  1187. package/dist/cjs/value-string-BtfdnGIb.js +0 -10
  1188. package/dist/cjs/variant-CxQO5qFu.js +0 -106
  1189. package/dist/collection/components/@else/all/component.js +0 -17
  1190. package/dist/collection/components/@else/counter/component.js +0 -29
  1191. package/dist/collection/components/component-list.js +0 -105
  1192. package/dist/collection/components/heading/validation.js +0 -11
  1193. package/dist/collection/components/tooltip/component.js +0 -204
  1194. package/dist/collection/functional-components/Heading/index.js +0 -5
  1195. package/dist/collection/internal/functional-components/form-field/custom-suggestions.test.js +0 -55
  1196. package/dist/collection/internal/functional-components/form-field/field-control.test.js +0 -57
  1197. package/dist/collection/internal/functional-components/form-field/input-shell.test.js +0 -43
  1198. package/dist/collection/internal/functional-components/form-field/select.test.js +0 -140
  1199. package/dist/collection/internal/functional-components/form-field/snapshot.test.js +0 -43
  1200. package/dist/collection/internal/functional-components/form-field/textarea.test.js +0 -18
  1201. package/dist/collection/internal/functional-components/popover/snapshot.test.js +0 -15
  1202. package/dist/collection/internal/functional-components/span/snapshot.test.js +0 -70
  1203. package/dist/collection/internal/props/hints/index.js +0 -4
  1204. package/dist/collection/internal/props/pagination-label.js +0 -6
  1205. package/dist/collection/schema/components/input.js +0 -4
  1206. package/dist/collection/schema/props/variant/spin.js +0 -8
  1207. package/dist/collection/schema/props/variant-quote.js +0 -11
  1208. package/dist/collection/schema/validators/window.js +0 -4
  1209. package/dist/components/align.js +0 -4
  1210. package/dist/components/api.js +0 -4
  1211. package/dist/components/api2.js +0 -4
  1212. package/dist/components/common.js +0 -4
  1213. package/dist/components/isArray.js +0 -4
  1214. package/dist/components/kol-tooltip-wc.d.ts +0 -11
  1215. package/dist/components/kol-tooltip-wc.js +0 -4
  1216. package/dist/components/variant.js +0 -4
  1217. package/dist/esm/align-DsFuqEf5.js +0 -20
  1218. package/dist/esm/api-CvPkoAAG.js +0 -67
  1219. package/dist/esm/component-CySyXSru.js +0 -19
  1220. package/dist/esm/component-DqHI-AwD.js +0 -27
  1221. package/dist/esm/component-DxddScWx.js +0 -34
  1222. package/dist/esm/component-YhEwg1LK.js +0 -11
  1223. package/dist/esm/href-OaK1sDT5.js +0 -9
  1224. package/dist/esm/isArray-CcrBs4JM.js +0 -156
  1225. package/dist/esm/kol-tooltip-wc.entry.js +0 -80
  1226. package/dist/esm/label-BNtqGdMQ.js +0 -35
  1227. package/dist/esm/label-with-expert-slot-aAOUzLo3.js +0 -8
  1228. package/dist/esm/rows-CUHDEUm9.js +0 -8
  1229. package/dist/esm/unique-nav-labels-Bh3w7dCH.js +0 -19
  1230. package/dist/kolibri/align-DsFuqEf5.js +0 -4
  1231. package/dist/kolibri/api-B9mpTRGa.js +0 -4
  1232. package/dist/kolibri/api-CvPkoAAG.js +0 -4
  1233. package/dist/kolibri/api-hAvZrw9X.js +0 -4
  1234. package/dist/kolibri/app-globals-Dff_iJYF.js +0 -4
  1235. package/dist/kolibri/aria-labelledby-BRToXqsQ.js +0 -4
  1236. package/dist/kolibri/base-7FEvBJ3L.js +0 -4
  1237. package/dist/kolibri/base-COT79ELt.js +0 -4
  1238. package/dist/kolibri/base-CsJWjTJl.js +0 -4
  1239. package/dist/kolibri/base-Df1bwC8d.js +0 -4
  1240. package/dist/kolibri/base-web-component-Bcoukts3.js +0 -4
  1241. package/dist/kolibri/base-web-component-C1XSz7ML.js +0 -4
  1242. package/dist/kolibri/base-web-component-cTyj95G-.js +0 -4
  1243. package/dist/kolibri/behavior-BMW-_4Oy.js +0 -4
  1244. package/dist/kolibri/behavior-BlS6DO8T.js +0 -4
  1245. package/dist/kolibri/behavior-Zr6qAX7F.js +0 -4
  1246. package/dist/kolibri/bootstrap-DTVsVq0w.js +0 -4
  1247. package/dist/kolibri/color-9CMp_pOq.js +0 -4
  1248. package/dist/kolibri/common-D03JQJgy.js +0 -4
  1249. package/dist/kolibri/component-BkjWlzLc.js +0 -4
  1250. package/dist/kolibri/component-BmJGOcby.js +0 -4
  1251. package/dist/kolibri/component-C_Te18y_.js +0 -4
  1252. package/dist/kolibri/component-CySyXSru.js +0 -4
  1253. package/dist/kolibri/component-DHl33p9J.js +0 -4
  1254. package/dist/kolibri/component-DeWynlzi.js +0 -4
  1255. package/dist/kolibri/component-DqHI-AwD.js +0 -4
  1256. package/dist/kolibri/component-DxddScWx.js +0 -4
  1257. package/dist/kolibri/component-DzVHCXnG.js +0 -4
  1258. package/dist/kolibri/component-Ik_-HAMT.js +0 -4
  1259. package/dist/kolibri/component-YhEwg1LK.js +0 -4
  1260. package/dist/kolibri/contrast-BK5uVXeb.js +0 -4
  1261. package/dist/kolibri/controller-Bf-CAo4Q.js +0 -4
  1262. package/dist/kolibri/dev.utils-BgjegQC8.js +0 -4
  1263. package/dist/kolibri/disabled-BaPgTuFO.js +0 -4
  1264. package/dist/kolibri/element-focus-Cp994Rrk.js +0 -4
  1265. package/dist/kolibri/field-control-Brx62dJV.js +0 -4
  1266. package/dist/kolibri/group-Ce5pMiZJ.js +0 -4
  1267. package/dist/kolibri/has-closer-C9L79ect.js +0 -4
  1268. package/dist/kolibri/href-OaK1sDT5.js +0 -4
  1269. package/dist/kolibri/i18n-DRQl0u--.js +0 -4
  1270. package/dist/kolibri/input-DjQorwQ5.js +0 -4
  1271. package/dist/kolibri/input-container-RSmfcRgK.js +0 -4
  1272. package/dist/kolibri/isArray-CcrBs4JM.js +0 -4
  1273. package/dist/kolibri/item-2cprk9ut.js +0 -4
  1274. package/dist/kolibri/item-Bfk2xd-D.js +0 -4
  1275. package/dist/kolibri/item-D9_O5WAR.js +0 -4
  1276. package/dist/kolibri/item-DMWn_IlJ.js +0 -4
  1277. package/dist/kolibri/kol-tooltip-wc.entry.js +0 -4
  1278. package/dist/kolibri/label-BNtqGdMQ.js +0 -4
  1279. package/dist/kolibri/label-with-expert-slot-aAOUzLo3.js +0 -4
  1280. package/dist/kolibri/level-Df663c7y.js +0 -4
  1281. package/dist/kolibri/link-target-C7_smSbV.js +0 -4
  1282. package/dist/kolibri/links-B0xbzBwU.js +0 -4
  1283. package/dist/kolibri/multiple-CYHm7rd3.js +0 -4
  1284. package/dist/kolibri/name-m3owaZxH.js +0 -4
  1285. package/dist/kolibri/number-value-CMedWR58.js +0 -4
  1286. package/dist/kolibri/open-DCGNTmvC.js +0 -4
  1287. package/dist/kolibri/options-CR431ims.js +0 -4
  1288. package/dist/kolibri/orientation-C9FRNmPD.js +0 -4
  1289. package/dist/kolibri/placeholder-Bwzvbwhh.js +0 -4
  1290. package/dist/kolibri/read-only-C5fDsZVK.js +0 -4
  1291. package/dist/kolibri/required-CC0212MQ.js +0 -4
  1292. package/dist/kolibri/resolve-props-47S-r31C.js +0 -4
  1293. package/dist/kolibri/resolve-props-CnHCiXuG.js +0 -4
  1294. package/dist/kolibri/rows-CUHDEUm9.js +0 -4
  1295. package/dist/kolibri/smart-button-BHM06d-t.js +0 -4
  1296. package/dist/kolibri/spell-check-DiSedaOR.js +0 -4
  1297. package/dist/kolibri/src-CsLEg--w.js +0 -4
  1298. package/dist/kolibri/step-BxSThOke.js +0 -4
  1299. package/dist/kolibri/suggestions-B79TOsF_.js +0 -4
  1300. package/dist/kolibri/suggestions-C38q-5JU.js +0 -4
  1301. package/dist/kolibri/toggle-handler-CQ0FhBmD.js +0 -4
  1302. package/dist/kolibri/unique-nav-labels-Bh3w7dCH.js +0 -4
  1303. package/dist/kolibri/unit-BgjPEae-.js +0 -4
  1304. package/dist/kolibri/value-string-BDfywbme.js +0 -4
  1305. package/dist/kolibri/variant-PJN56KWi.js +0 -4
  1306. package/dist/kolibri/width-CAS8lhOU.js +0 -4
  1307. package/dist/types/components/@else/all/component.d.ts +0 -12
  1308. package/dist/types/components/@else/counter/component.d.ts +0 -9
  1309. package/dist/types/components/_skeleton/web-components/click-button/component.d.ts +0 -14
  1310. package/dist/types/components/component-list.d.ts +0 -7
  1311. package/dist/types/components/heading/validation.d.ts +0 -3
  1312. package/dist/types/components/tooltip/component.d.ts +0 -19
  1313. package/dist/types/functional-components/Heading/index.d.ts +0 -2
  1314. package/dist/types/internal/props/hints/index.d.ts +0 -1
  1315. package/dist/types/internal/props/pagination-label.d.ts +0 -3
  1316. package/dist/types/schema/components/input.d.ts +0 -0
  1317. package/dist/types/schema/props/variant/spin.d.ts +0 -8
  1318. package/dist/types/schema/props/variant-quote.d.ts +0 -7
  1319. package/dist/types/schema/validators/window.d.ts +0 -0
  1320. package/doc/_skeleton.md +0 -79
  1321. /package/dist/{types/internal/functional-components/form-field/custom-suggestions.test.d.ts → collection/schema/props/allow-markdown.js} +0 -0
  1322. /package/dist/{types/internal/functional-components/form-field/field-control.test.d.ts → collection/schema/props/boundary-count.js} +0 -0
  1323. /package/dist/{types/internal/functional-components/form-field/input-shell.test.d.ts → collection/schema/props/has-clear-button.js} +0 -0
  1324. /package/dist/{types/internal/functional-components/form-field/select.test.d.ts → collection/schema/props/high.js} +0 -0
  1325. /package/dist/{types/internal/functional-components/form-field/snapshot.test.d.ts → collection/schema/props/labeled.js} +0 -0
  1326. /package/dist/{types/internal/functional-components/form-field/textarea.test.d.ts → collection/schema/props/low.js} +0 -0
  1327. /package/dist/{types/internal/functional-components/popover/snapshot.test.d.ts → collection/schema/props/min.js} +0 -0
  1328. /package/dist/{types/internal/functional-components/span/snapshot.test.d.ts → collection/schema/props/optimum.js} +0 -0
@@ -19,5 +19,22 @@ export const executeSnapshotTests = (ComponentName, components, propVariants) =>
19
19
  await page.waitForChanges();
20
20
  expect(page.root).toMatchSnapshot();
21
21
  });
22
+ it.each(testTable)('should keep assigning props %s before the first render silent', async (_, props) => {
23
+ const page = await newSpecPage({
24
+ components,
25
+ html: '<div></div>',
26
+ });
27
+ const errorSpy = jest.spyOn(console, 'error').mockImplementation(() => undefined);
28
+ const element = page.doc.createElement(ComponentName);
29
+ page.body.appendChild(element);
30
+ Object.assign(element, props);
31
+ await page.waitForChanges();
32
+ try {
33
+ expect(errorSpy).not.toHaveBeenCalled();
34
+ }
35
+ finally {
36
+ errorSpy.mockRestore();
37
+ }
38
+ });
22
39
  });
23
40
  };
@@ -1,16 +1,18 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import { Log } from "../schema";
4
+ import { Log, trimLabel } from "../schema";
5
5
  const UNIQUE_LABELS = new Set();
6
6
  export function addNavLabel(ariaLabel) {
7
- if (UNIQUE_LABELS.has(ariaLabel)) {
8
- Log.warn(`There already is a nav element with the label "${ariaLabel}"`);
7
+ const trimmedLabel = trimLabel(ariaLabel);
8
+ if (UNIQUE_LABELS.has(trimmedLabel)) {
9
+ Log.warn(`There already is a nav element with the label "${trimmedLabel}"`);
9
10
  }
10
11
  else {
11
- UNIQUE_LABELS.add(ariaLabel);
12
+ UNIQUE_LABELS.add(trimmedLabel);
12
13
  }
13
14
  }
14
15
  export function removeNavLabel(ariaLabel) {
15
- UNIQUE_LABELS.delete(ariaLabel);
16
+ const trimmedLabel = trimLabel(ariaLabel);
17
+ UNIQUE_LABELS.delete(trimmedLabel);
16
18
  }
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
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=>e instanceof Document?e.getElementById(n):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}
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 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{k as t,l as r,m as n,n as e,r as o}from"./common.js";import{b as i,r as u,i as a,f as c,a as s,S as f}from"./isArray.js";import{HTMLElement as l}from"@stencil/core/internal/client";function h(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}function v(t){if(!h(t))return!1;var r=i(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}var b,p=u["__core-js_shared__"],d=(b=/[^.]+$/.exec(p&&p.keys&&p.keys.IE_PROTO||""))?"Symbol(src)_1."+b:"",y=Function.prototype.toString;function j(t){if(null!=t){try{return y.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var w=/^\[object .+?Constructor\]$/,m=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function g(t,r){var n=function(t,r){return null==t?void 0:t[r]}(t,r);return function(t){return!(!h(t)||(r=t,d&&d in r))&&(v(t)?m:w).test(j(t));var r}(n)?n:void 0}var O=g(u,"WeakMap"),$=Object.create,S=function(){function t(){}return function(r){if(!h(r))return{};if($)return $(r);t.prototype=r;var n=new t;return t.prototype=void 0,n}}(),x=function(){try{var t=g(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),A=/^(?:0|[1-9]\d*)$/;function N(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&A.test(t))&&t>-1&&t%1==0&&t<r}function _(t,r){return t===r||t!=t&&r!=r}var E=Object.prototype.hasOwnProperty;function M(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}var I=Object.prototype;function P(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||I)}function F(t){return a(t)&&"[object Arguments]"==i(t)}var k=Object.prototype,D=k.hasOwnProperty,R=k.propertyIsEnumerable,B=F(function(){return arguments}())?F:function(t){return a(t)&&D.call(t,"callee")&&!R.call(t,"callee")},T="object"==typeof exports&&exports&&!exports.nodeType&&exports,z=T&&"object"==typeof module&&module&&!module.nodeType&&module,J=z&&z.exports===T?u.Buffer:void 0,V=(J?J.isBuffer:void 0)||function(){return!1},U={};function C(t){return function(r){return t(r)}}U["[object Float32Array]"]=U["[object Float64Array]"]=U["[object Int8Array]"]=U["[object Int16Array]"]=U["[object Int32Array]"]=U["[object Uint8Array]"]=U["[object Uint8ClampedArray]"]=U["[object Uint16Array]"]=U["[object Uint32Array]"]=!0,U["[object Arguments]"]=U["[object Array]"]=U["[object ArrayBuffer]"]=U["[object Boolean]"]=U["[object DataView]"]=U["[object Date]"]=U["[object Error]"]=U["[object Function]"]=U["[object Map]"]=U["[object Number]"]=U["[object Object]"]=U["[object RegExp]"]=U["[object Set]"]=U["[object String]"]=U["[object WeakMap]"]=!1;var q="object"==typeof exports&&exports&&!exports.nodeType&&exports,G=q&&"object"==typeof module&&module&&!module.nodeType&&module,K=G&&G.exports===q&&c.process,W=function(){try{return G&&G.require&&G.require("util").types||K&&K.binding&&K.binding("util")}catch(t){}}(),L=W&&W.isTypedArray,H=L?C(L):function(t){return a(t)&&M(t.length)&&!!U[i(t)]},Q=Object.prototype.hasOwnProperty;function X(t,r){return function(n){return t(r(n))}}var Y=X(Object.keys,Object),Z=Object.prototype.hasOwnProperty;function tt(t){return null!=(r=t)&&M(r.length)&&!v(r)?function(t){var r=s(t),n=!r&&B(t),e=!r&&!n&&V(t),o=!r&&!n&&!e&&H(t),i=r||n||e||o,u=i?function(t,r){for(var n=-1,e=Array(t);++n<t;)e[n]=r(n);return e}(t.length,String):[],a=u.length;for(var c in t)!Q.call(t,c)||i&&("length"==c||e&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||N(c,a))||u.push(c);return u}(t):function(t){if(!P(t))return Y(t);var r=[];for(var n in Object(t))Z.call(t,n)&&"constructor"!=n&&r.push(n);return r}(t);var r}var rt=g(Object,"create"),nt=Object.prototype.hasOwnProperty,et=Object.prototype.hasOwnProperty;function ot(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}function it(t,r){for(var n=t.length;n--;)if(_(t[n][0],r))return n;return-1}ot.prototype.clear=function(){this.__data__=rt?rt(null):{},this.size=0},ot.prototype.delete=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r},ot.prototype.get=function(t){var r=this.__data__;if(rt){var n=r[t];return"__lodash_hash_undefined__"===n?void 0:n}return nt.call(r,t)?r[t]:void 0},ot.prototype.has=function(t){var r=this.__data__;return rt?void 0!==r[t]:et.call(r,t)},ot.prototype.set=function(t,r){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=rt&&void 0===r?"__lodash_hash_undefined__":r,this};var ut=Array.prototype.splice;function at(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}at.prototype.clear=function(){this.__data__=[],this.size=0},at.prototype.delete=function(t){var r=this.__data__,n=it(r,t);return!(n<0||(n==r.length-1?r.pop():ut.call(r,n,1),--this.size,0))},at.prototype.get=function(t){var r=this.__data__,n=it(r,t);return n<0?void 0:r[n][1]},at.prototype.has=function(t){return it(this.__data__,t)>-1},at.prototype.set=function(t,r){var n=this.__data__,e=it(n,t);return e<0?(++this.size,n.push([t,r])):n[e][1]=r,this};var ct=g(u,"Map");function st(t,r){var n,e,o=t.__data__;return("string"==(e=typeof(n=r))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==n:null===n)?o["string"==typeof r?"string":"hash"]:o.map}function ft(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}ft.prototype.clear=function(){this.size=0,this.__data__={hash:new ot,map:new(ct||at),string:new ot}},ft.prototype.delete=function(t){var r=st(this,t).delete(t);return this.size-=r?1:0,r},ft.prototype.get=function(t){return st(this,t).get(t)},ft.prototype.has=function(t){return st(this,t).has(t)},ft.prototype.set=function(t,r){var n=st(this,t),e=n.size;return n.set(t,r),this.size+=n.size==e?0:1,this};var lt=X(Object.getPrototypeOf,Object);function ht(t){var r=this.__data__=new at(t);this.size=r.size}ht.prototype.clear=function(){this.__data__=new at,this.size=0},ht.prototype.delete=function(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n},ht.prototype.get=function(t){return this.__data__.get(t)},ht.prototype.has=function(t){return this.__data__.has(t)},ht.prototype.set=function(t,r){var n=this.__data__;if(n instanceof at){var e=n.__data__;if(!ct||e.length<199)return e.push([t,r]),this.size=++n.size,this;n=this.__data__=new ft(e)}return n.set(t,r),this.size=n.size,this},"object"==typeof exports&&exports&&!exports.nodeType&&exports&&"object"==typeof module&&module&&!module.nodeType&&module;var vt=Object.prototype.propertyIsEnumerable,bt=Object.getOwnPropertySymbols,pt=bt?function(t){return null==t?[]:(t=Object(t),function(r){for(var n=-1,e=null==r?0:r.length,o=0,i=[];++n<e;){var u=r[n];vt.call(t,u)&&(i[o++]=u)}return i}(bt(t)))}:function(){return[]};var dt=g(u,"DataView"),yt=g(u,"Promise"),jt=g(u,"Set"),wt="[object Map]",mt="[object Promise]",gt="[object Set]",Ot="[object WeakMap]",$t="[object DataView]",St=j(dt),xt=j(ct),At=j(yt),Nt=j(jt),_t=j(O),Et=i;(dt&&Et(new dt(new ArrayBuffer(1)))!=$t||ct&&Et(new ct)!=wt||yt&&Et(yt.resolve())!=mt||jt&&Et(new jt)!=gt||O&&Et(new O)!=Ot)&&(Et=function(t){var r=i(t),n="[object Object]"==r?t.constructor:void 0,e=n?j(n):"";if(e)switch(e){case St:return $t;case xt:return wt;case At:return mt;case Nt:return gt;case _t:return Ot}return r});var Mt=Object.prototype.hasOwnProperty,It=u.Uint8Array;function Pt(t){var r=new t.constructor(t.byteLength);return new It(r).set(new It(t)),r}var Ft=/\w*$/,kt=f?f.prototype:void 0,Dt=kt?kt.valueOf:void 0;var Rt=W&&W.isMap,Bt=Rt?C(Rt):function(t){return a(t)&&"[object Map]"==Et(t)},Tt=W&&W.isSet,zt=Tt?C(Tt):function(t){return a(t)&&"[object Set]"==Et(t)},Jt="[object Arguments]",Vt="[object Function]",Ut="[object Object]",Ct={};function qt(t,r,n,e,o,i){var u;if(void 0!==u)return u;if(!h(t))return t;var a=s(t);if(a)u=function(t){var r=t.length,n=new t.constructor(r);return r&&"string"==typeof t[0]&&Mt.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t);else{var c=Et(t),f=c==Vt||"[object GeneratorFunction]"==c;if(V(t))return t.slice();if(c==Ut||c==Jt||f&&!o)u=f?{}:function(t){return"function"!=typeof t.constructor||P(t)?{}:S(lt(t))}(t);else{if(!Ct[c])return o?t:{};u=function(t,r){var n,e,o,i,u=t.constructor;switch(r){case"[object ArrayBuffer]":return Pt(t);case"[object Boolean]":case"[object Date]":return new u(+t);case"[object DataView]":return i=Pt((o=t).buffer),new o.constructor(i,o.byteOffset,o.byteLength);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(t){var r=Pt(t.buffer);return new t.constructor(r,t.byteOffset,t.length)}(t);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(t);case"[object RegExp]":return(e=new(n=t).constructor(n.source,Ft.exec(n))).lastIndex=n.lastIndex,e;case"[object Symbol]":return Dt?Object(Dt.call(t)):{}}}(t,c)}}i||(i=new ht);var l=i.get(t);if(l)return l;i.set(t,u),zt(t)?t.forEach((function(e){u.add(qt(e,r,n,0,t,i))})):Bt(t)&&t.forEach((function(e,o){u.set(o,qt(e,r,n,0,t,i))}));var v=a?void 0:function(t){return function(t,r,n){var e=tt(t);return s(t)?e:function(t,r){for(var n=-1,e=r.length,o=t.length;++n<e;)t[o+n]=r[n];return t}(e,n(t))}(t,0,pt)}(t);return function(t,r){for(var n=-1,e=null==t?0:t.length;++n<e&&!1!==r(t[n],n););}(v||t,(function(e,o){v&&(e=t[o=e]),function(t,r,n){var e=t[r];E.call(t,r)&&_(e,n)&&(void 0!==n||r in t)||function(t,r,n){"__proto__"==r&&x?x(t,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[r]=n}(t,r,n)}(u,o,qt(e,r,n,0,t,i))})),u}function Gt(t){return qt(t,5)}function Kt(t){if("string"==typeof t)return t;if("number"==typeof t||"boolean"==typeof t||"bigint"==typeof t)return String(t);throw new TypeError(`Cannot convert ${typeof t} to string`)}function Wt(t){let r;try{r=Lt(t)}catch(r){throw new Error(`Invalid integer: ${String(t)}`)}return Number.isInteger(r)?r:Math.round(r)}function Lt(t){if("number"==typeof t&&!isNaN(t))return t;if("string"==typeof t&&""!==t.trim()){const r=Number(t);if(!isNaN(r))return r}throw new Error(`Invalid number: ${String(t)}`)}function Ht(t){if("number"==typeof t&&!isNaN(t))return t;throw new Error(`Invalid number: ${String(t)}`)}Ct[Jt]=Ct["[object Array]"]=Ct["[object ArrayBuffer]"]=Ct["[object DataView]"]=Ct["[object Boolean]"]=Ct["[object Date]"]=Ct["[object Float32Array]"]=Ct["[object Float64Array]"]=Ct["[object Int8Array]"]=Ct["[object Int16Array]"]=Ct["[object Int32Array]"]=Ct["[object Map]"]=Ct["[object Number]"]=Ct[Ut]=Ct["[object RegExp]"]=Ct["[object Set]"]=Ct["[object String]"]=Ct["[object Symbol]"]=Ct["[object Uint8Array]"]=Ct["[object Uint8ClampedArray]"]=Ct["[object Uint16Array]"]=Ct["[object Uint32Array]"]=!0,Ct["[object Error]"]=Ct[Vt]=Ct["[object WeakMap]"]=!1;const Qt=/^[-+]?(\d+(\.\d*)?|\.\d+)([eE][-+]?\d+)?$/;function Xt(t){return"string"==typeof t&&Qt.test(t)&&Number.isFinite(Number(t))}function Yt(t){if("number"==typeof t)return isNaN(t)?void 0:t;if(Xt(t))return parseFloat(t);throw new Error(`Invalid number: ${t}`)}function Zt(t){if("boolean"==typeof t)return t;if("string"==typeof t){const r=t.toLowerCase();if("true"===r||"false"===r)return"true"===r}throw new Error(`Invalid boolean: ${String(t)}`)}function tr(t,r){if(!0===t||"true"===t)return"true";if(!1===t||"false"===t)return"false";if(""===t)return"";throw new Error(`Invalid ${r} value: expected a boolean, got ${JSON.stringify(t)}`)}function rr(t,r){return"string"==typeof t&&r.includes(t)}function nr(r){if(t(r))return r;if("string"==typeof r){const n=JSON.parse(r);if(t(n))return n}throw new Error(`Invalid object: ${r}`)}function er(r){if(t(r)&&Array.isArray(r))return r;if("string"==typeof r){const n=JSON.parse(r);if(t(n)&&Array.isArray(n))return n}throw new Error(`Invalid array: ${r}`)}function or(t){if("object"==typeof t&&null!==t)return t;throw new Error("Invalid on callbacks: expected object, got "+typeof t)}function ir(t){try{return JSON.stringify(t)}catch(t){return"[unserializable]"}}function ur(t,n,e){const o=e instanceof Error?` (${e.message})`:"";r(`The property value ${ir(n)} for '${t}' is not valid${o}. The value is ignored.`)}function ar(t,n,e,o=()=>!0,i){return{propName:t,getDefaultValue:h(n)?()=>Gt(n):()=>n,normalize:e,validate:o,apply(e,o){var u;if(null!=e)try{const r=this.normalize(e);this.validate(r)?(null===(u=null==i?void 0:i.hints)||void 0===u||u.call(i,this.propName,r),o(r)):ur(t,e)}catch(r){ur(t,e,r)}else{(null==i?void 0:i.required)&&r(`The required property '_${t}' did not receive a value. The default value is used instead.`);const e=this.getDefaultValue();if(!this.validate(e))throw new Error(`Default value ${ir(n)} is invalid for prop definition '${t}'.`);o(e)}}}}function cr(t,r,n,e=()=>!0){return{propName:t,getDefaultValue:h(r)?()=>Gt(r):()=>r,normalize:n,validate:e,apply(n,e,o){if(null!=n)try{const r=this.normalize(n,o);this.validate(r,o)?e(r):ur(t,n)}catch(r){ur(t,n,r)}else{const n=this.getDefaultValue();if(!this.validate(n,o))throw new Error(`Default value ${ir(r)} is invalid for prop definition '${t}' with dependencies ${ir(o)}.`);e(n)}}}}function sr(){return ar("on",{},(t=>or(t)))}function fr(t){var r;Array.isArray(t)&&t.raw&&(t=String.raw(...arguments));var i=n(t);if(!i.space)return[];const u="h"===i.space[0]?e.min:o.min,a="h"===i.space[0]?e.max:o.max;return(r=Array(3))[0]=Math.min(Math.max(i.values[0],u[0]),a[0]),r[1]=Math.min(Math.max(i.values[1],u[1]),a[1]),r[2]=Math.min(Math.max(i.values[2],u[2]),a[2]),"h"===i.space[0]&&(r=e.rgb(r)),r.push(Math.min(Math.max(i.alpha,0),1)),r}const lr=/^#((\d|[a-f]){8}|(\d|[a-f]){6}|(\d|[a-f]){3,4})$/i,hr=t=>"object"==typeof t&&null!==t&&"string"==typeof t.backgroundColor&&"string"==typeof t.foregroundColor,vr=t=>{const r=fr(t);if(!Array.isArray(r)||r.length<3)throw new Error(`Invalid KoliBri color: ${t}`);const[n,e,o]=r;return{red:n,green:e,blue:o}},br=ar("color",vr("#003c78"),(t=>{if("string"==typeof t&&lr.test(t))return vr(t);const r=hr(t)?t:"string"==typeof t?(t=>{if(t.startsWith("{"))try{const r=JSON.parse(t);return hr(r)?r:void 0}catch(t){return}})(t):void 0;if(r)return vr(r.foregroundColor);throw new Error("Invalid KoliBri color: expected a hex string or a color pair.")})),pr=new Set(["eager","lazy"]),dr=ar("loading","lazy",(t=>Kt(t)),(t=>pr.has(t)));function yr(t,r){return t<r.min?r.min:t>r.max?r.max:t}const jr=cr("value",0,((t,r)=>yr(Lt(t),r)),(t=>"number"==typeof t&&!isNaN(t))),wr=Object.assign(Object.assign({},jr),{apply(t,r,n){jr.apply(t,(t=>r(yr(t,n))),n)}}),mr=new Set(["blank","card"]),gr=ar("variant","blank",(t=>Kt(t)),(t=>mr.has(t))),Or=new Set(["block","inline"]),$r=ar("variant","inline",(t=>Kt(t)),(t=>Or.has(t)));function Sr(t){var r,n;const e={};for(const o of[...null!==(r=t.required)&&void 0!==r?r:[],...null!==(n=t.optional)&&void 0!==n?n:[]])e[o.propName]=o.getDefaultValue();return e}function xr(){throw new Error("This behavior does not use component state.")}const Ar=class extends l{constructor(){super(!1),this.rawProps={},this.setState=(t,r)=>{this[t]=r},this.getState=t=>this[t],this.stateAccess={setState:this.setState,getState:this.getState}}initRenderProps(t){this.renderProps=Sr(t)}setRawProp(t,r){this.rawProps[t]=r}getRawProp(t){return this.rawProps[t]}setRenderProp(t,r){this.renderProps&&(this.renderProps[t]=r)}unsetRenderProp(t){this.renderProps&&(this.renderProps[t]=void 0)}getRenderProp(t){return this.renderProps[t]}};Ar.stateLess=Object.freeze({setState:xr,getState:xr});export{Ar as B,sr as a,Kt as b,ar as c,Sr as d,er as e,cr as f,Yt as g,Xt as h,rr as i,Wt as j,br as k,dr as l,tr as m,Zt as n,nr as o,Lt as p,wr as q,fr as r,Ht as s,$r as t,or as u,gr as v}
4
+ import{HTMLElement as t}from"@stencil/core/internal/client";import{d as s}from"./props-from-config.js";function e(){throw new Error("This behavior does not use component state.")}const i=class extends t{constructor(){super(!1),this.rawProps={},this.renderProps={},this.requiredPropNames=new Set,this.renderPropsSeeded=!1,this.setState=(t,s)=>{this[t]=s},this.getState=t=>this[t],this.stateAccess={setState:this.setState,getState:this.getState}}seedRenderProps(){var t;this.renderPropsSeeded||(this.renderPropsSeeded=!0,this.renderProps=s(this.propsConfig),this.requiredPropNames=new Set((null!==(t=this.propsConfig.required)&&void 0!==t?t:[]).map((t=>t.propName))))}isRequired(t){return this.seedRenderProps(),this.requiredPropNames.has(t)}setRawProp(t,s){this.rawProps[t]=s}getRawProp(t){return this.rawProps[t]}setRenderProp(t,s){this.seedRenderProps(),this.renderProps[t]=s}unsetRenderProp(t){this.seedRenderProps(),this.renderProps[t]=void 0}getRenderProp(t){return this.seedRenderProps(),this.renderProps[t]}};i.stateLess=Object.freeze({setState:e,getState:e});export{i as B}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{p as e,k as t,F as i}from"./common.js";import{a as o,F as s}from"./behavior3.js";import{d as r}from"./disabled.js";import{h as a,e as l}from"./variant.js";import{c as n,n as d,b as h,a as c,B as p}from"./base-web-component.js";import{l as u}from"./label-with-expert-slot.js";import{n as m}from"./name.js";import{a as b}from"./tslib.es6.js";import{S as v,b as f,s as g}from"./component8.js";import{a as y,c as j,n as _}from"./dev.utils.js";import{K as B,d as L}from"./events.js";import{c as O}from"./item.js";import{c as T}from"./item2.js";import{T as F}from"./behavior.js";import{h as N}from"@stencil/core/internal/client";import{t as x}from"./i18n.js";import{c as K}from"./component10.js";import{b as w}from"./bem-registry.js";import{c as P}from"./clsx.js";import{B as k}from"./component.js";import{T as A}from"./component9.js";import{P as C}from"./behavior4.js";import{A as H}from"./component2.js";function I(e,t){return Boolean(e)&&!0===t}function M(e){var t;return"string"==typeof e?"error":null!==(t=null==e?void 0:e._type)&&void 0!==t?t:"error"}const S=n("hideMsg",!1,d),D=n("hint","",h),q=n("infoPopover",void 0,(function(e){if("object"==typeof e&&null!==e)return e;throw new Error("Invalid info popover: "+typeof e)})),E=c(),$=n("msg",void 0,(function(t){if("string"==typeof t)try{return e(t)}catch(e){return t}return t}),(function(e){return void 0===e||("string"==typeof e?e.length>0:t(e)&&i(e._description,1))})),z=n("touched",!1,d),R={required:[u],optional:[o,r,a,S,D,q,E,$,m,l,z]},V=e=>{var{id:t,class:i,hint:o,baseClassName:s="kol-form-field"}=e,r=b(e,["id","class","hint","baseClassName"]);return o?N("span",Object.assign({class:P(`${s}__hint`,i),id:y(t||"","hint")},r),o):null},G=e=>{var{component:t="label",id:i,baseClassName:o="kol-form-field",class:s,accessKey:r,shortKey:a,label:l,hideLabel:n,hasExpertSlot:d,omitId:h,showBadge:c=!0,readOnly:p,infoPopover:u}=e,m=b(e,["component","id","baseClassName","class","accessKey","shortKey","label","hideLabel","hasExpertSlot","omitId","showBadge","readOnly","infoPopover"]);const g=!d&&n,j=!1===c?void 0:f(r,a);return N(t,Object.assign({},m,{class:P(`${o}__label`,s),id:g||h?void 0:y(i,"label"),hidden:g,htmlFor:"legend"===t?void 0:i}),N(v,{class:`${o}__label-text`,label:d?"":null!=l?l:"",badgeText:j},N("slot",{name:"expert"})),!d&&p&&N("span",{class:`${o}__label__read-only`,"aria-hidden":"true"},"(",x("kol-readonly"),")"),!d&&u&&N("span",null,N(C,Object.assign({},u.popoverButton),N("div",{class:"kol-popover-button__popover--styled"},u.content))))},J=t=>{var i,o,{alert:s,hideMsg:r,msg:a,id:l,class:n}=t,d=b(t,["alert","hideMsg","msg","id","class"]);const h=function(t){if("string"==typeof t)try{return e(t)}catch(e){return{_description:t,_type:"error"}}return t&&"object"==typeof t&&!("_type"in t)?Object.assign(Object.assign({},t),{_type:"error"}):t}(a);return N(H,Object.assign({alert:!r&&(null!==(i=null==h?void 0:h._alert)&&void 0!==i?i:!0===s),class:P("kol-form-field__msg",r&&"visually-hidden",n),closerAriaDescriptionId:_(),handleCloserClick:()=>{},hasCloser:!1,headingId:j("alert-heading"),id:y(l,"msg"),label:"",level:0,refCloserButton:()=>{},refCloserTooltip:()=>{},type:null!==(o=null==h?void 0:h._type)&&void 0!==o?o:"error",variant:"msg"},d),(null==h?void 0:h._description)||void 0)},Q=w.forBlock("kol-form-field"),U=({hideLabel:e,label:t,renderNoTooltip:i})=>!i&&!g(t)&&!0===e,W=e=>{const t=M(e);return{[t]:!0,[`msg-type-${t}`]:!0}},X=(e,t)=>{const{renderNoLabel:i,renderNoTooltip:o,renderNoHint:s,id:r,required:a,alert:l,disabled:n,class:d,msg:h,hideMsg:c,hideLabel:p,label:u,infoPopover:m,hint:v,accessKey:j,shortKey:_,counter:B,readOnly:L,touched:O,maxLength:T,ariaDescribedBy:F,showBadge:w,tooltipAlign:C,variant:H,component:M="div",orientation:S,refInput:D,refTooltip:q}=e,E=b(e,["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"]),$=g(u),z=I(h,O),R=f(j,_),X=U({hideLabel:p,label:u,renderNoTooltip:o}),Y="fieldset"===M;return N(k,Object.assign({component:M,block:"kol-form-field",modifiers:Object.assign({disabled:Boolean(n),required:Boolean(a),touched:Boolean(O),"hide-label":Boolean(p),"read-only":Boolean(L),"hidden-msg":Boolean(c)},z?W(h):{}),class:P(H&&K(H,"form-field"),d),disabled:!(!Y||!n)||void 0,"aria-describedby":F},E),!i&&N(G,{component:Y?"legend":"label",class:Y?"kol-form-field__label--legend":void 0,id:r,hasExpertSlot:$,hideLabel:p,label:u,accessKey:j,shortKey:_,readOnly:L,showBadge:w,infoPopover:m}),N("div",{class:Q("input",{"orientation-horizontal":"horizontal"===S,"orientation-vertical":"vertical"===S}),ref:D},t,X&&N("div",{class:Q("tooltip")},N(A,{badgeText:R||"",label:u,align:C,id:y(r,"label"),refFloating:q}))),B&&!("soft"===B.maxLengthBehavior&&"number"!=typeof B.maxLength)&&N("div",{class:Q("counter")},N("span",{"data-testid":"input-counter","aria-hidden":"true",class:Q("counter"),ref:B.visualRef}),N("span",{"aria-live":"polite",class:"visually-hidden","data-testid":"input-counter-aria",id:y(r,"counter"),ref:B.ariaRef})),z&&N(J,{id:r,alert:l,hideMsg:c,msg:h}),!s&&N(V,{id:r,hint:v}),"number"==typeof T&&!B&&N("span",{id:y(r,"character-limit-hint"),class:"visually-hidden"},x("kol-character-limit-hint",{placeholders:{limit:String(T)}})))};function Y({ariaDescribedBy:e,hideLabel:t,label:i}){return{title:"",autoCapitalize:"off",autoCorrect:"off","aria-describedby":(null==e?void 0:e.length)?e.join(" "):void 0,"aria-label":t&&i?i:void 0}}const Z=class extends p{constructor(){super(...arguments),this.tooltipBehavior=new F(p.stateLess),this.smartButton=O((()=>this.host)),this.infoPopover=T({getFlagHost:()=>this.host,getOpen:()=>!0===this.infoPopoverOpen,setOpen:e=>{this.infoPopoverOpen=e}}),this.focusEventSent=!1,this.handleChange=(e,t)=>{var i,o;e.stopPropagation(),void 0===t&&(t=e.target.value),this.emit(B.change,t),null===(o=null===(i=this._on)||void 0===i?void 0:i.onChange)||void 0===o||o.call(i,e,t)},this.handleInput=(e,t)=>{var i,o;e.stopPropagation(),void 0===t&&(t=e.target.value),this.emit(B.input,t),this.formAssociation.setFormAssociatedValue(t),null===(o=null===(i=this._on)||void 0===i?void 0:i.onInput)||void 0===o||o.call(i,e,t)},this.handleClick=e=>{var t,i;this.emit(B.click),null===(i=null===(t=this._on)||void 0===t?void 0:t.onClick)||void 0===i||i.call(t,e)},this.handleFocus=e=>{var t,i;this.focusEventSent||(this.emit(B.focus),null===(i=null===(t=this._on)||void 0===t?void 0:t.onFocus)||void 0===i||i.call(t,e),this.focusEventSent=!0),this.shared.setState("inputHasFocus",!0)},this.handleBlur=e=>{this.handleFocusLeave(e),this.shared.setState("inputHasFocus",!1)},this.handleKeyDown=e=>{var t,i;this.emit(B.keydown),null===(i=null===(t=this._on)||void 0===t?void 0:t.onKeyDown)||void 0===i||i.call(t,e)},this.setInputRef=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,t){this.formAssociation=new s(p.stateLess,{host:this.host,type:e,name:t})}syncFormField(){this.smartButton.syncListeners(),this.infoPopover.syncListeners()}destroyFormField(){this.tooltipBehavior.destroy(),this.smartButton.destroy(),this.infoPopover.destroy()}getInfoPopover(){const e=this.shared.getRenderProp("infoPopover");if(!e)return;const{_content:t}=e,i=b(e,["_content"]);return{popoverButton:this.infoPopover.getFcProps(Object.assign(Object.assign({_variant:"ghost"},i),{_hideLabel:!0,_inline:!0})),content:t}}getSmartButtonFcProps(e,t){if("object"==typeof e&&null!==e)return this.smartButton.getFcProps(Object.assign({_hideLabel:!0,_disabled:t},e),{class:"kol-input-container__smart-button"})}applyAriaDetails(e){o.apply(e,(e=>this.shared.setRenderProp("ariaDetails",e))),this.formAssociation.watchAriaDetails(e)}applyDisabled(e){r.apply(e,(e=>this.shared.setRenderProp("disabled",e)))}applyHideLabel(e){a.apply(e,(e=>this.shared.setRenderProp("hideLabel",e)))}applyHideMsg(e){S.apply(e,(e=>this.shared.setRenderProp("hideMsg",e)))}applyHint(e){D.apply(e,(e=>this.shared.setRenderProp("hint",e)))}applyInfoPopover(e){q.apply(e,(e=>this.shared.setRenderProp("infoPopover",e)))}applyLabel(e){u.apply(!1===e?"":e,(e=>this.shared.setRenderProp("label",e)))}applyMsg(e){$.apply(e,(e=>this.shared.setRenderProp("msg",e)))}applyName(e){m.apply(e,(e=>this.shared.setRenderProp("name",e))),this.formAssociation.watchName(e)}applyOn(e){E.apply(e,(e=>this.shared.setRenderProp("on",e)))}applySyncValueBySelector(e){this.formAssociation.watchSyncValueBySelector(e)}applyTooltipAlign(e){l.apply(null!=e?e:"top",(e=>this.shared.setRenderProp("tooltipAlign",e)))}applyTouched(e){z.apply(e,(e=>this.shared.setRenderProp("touched",e)))}get eventHost(){var e,t;return null!==(t=null===(e=this.formAssociation)||void 0===e?void 0:e.host)&&void 0!==t?t:this.host}emit(e,t){this.eventHost&&L(this.eventHost,e,t)}handleFocusLeave(e){var t,i;if(this._disabled)return;const o=this.eventHost,s=(null==o?void 0:o.shadowRoot)||o,r=(null==s?void 0:s.contains(e.relatedTarget))||o===e.relatedTarget;this.focusEventSent&&!r&&(this._touched=!0,this.emit(B.blur),null===(i=null===(t=this._on)||void 0===t?void 0:t.onBlur)||void 0===i||i.call(t,e),this.focusEventSent=!1)}getAria(){const e=this.shared;return(({id:e,msg:t,hint:i,touched:o})=>{const s="string"==typeof t?t:null==t?void 0:t._description,r=Boolean(s&&s.length>0),a="error"===M(t)&&r&&!0===o,l="string"==typeof i&&i.length>0,n=[];return r&&!0===o&&n.push(y(e,"msg")),l&&n.push(y(e,"hint")),{hasError:a,hasHint:l,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 U({hideLabel:e.getRenderProp("hideLabel"),label:e.getRenderProp("label")})}getLabelTooltipRefs(){return{refInput:this.setInputRef,refTooltip:this.setTooltipRef}}getFormFieldProps({class:e,accessKey:t,shortKey:i,variant:o,counter:s,maxLength:r,readOnly:a,renderNoLabel:l,renderNoTooltip:n,required:d}){const h=this.shared,c=h.getState("id"),p=h.getRenderProp("label"),u=h.getRenderProp("tooltipAlign");return this.isTooltipShown()?(this.tooltipBehavior.watchAlign(u),this.tooltipBehavior.watchBadgeText(f(t,i)||""),this.tooltipBehavior.watchId(y(c,"label")),this.tooltipBehavior.watchLabel(p)):this.tooltipBehavior.destroy(),{id:c,disabled:h.getRenderProp("disabled"),msg:h.getRenderProp("msg"),hint:h.getRenderProp("hint"),label:p,hideLabel:h.getRenderProp("hideLabel"),hideMsg:h.getRenderProp("hideMsg"),touched:h.getRenderProp("touched"),showBadge:Boolean(t)||Boolean(i),required:d,readOnly:a,accessKey:t,shortKey:i,maxLength:r,counter:s,variant:o,class:e,tooltipAlign:u,alert:this.showAsAlert(),infoPopover:this.getInfoPopover(),renderNoLabel:l,renderNoTooltip:n,refInput:n?void 0:this.setInputRef,refTooltip:this.setTooltipRef}}};export{Z as B,X as F,V as a,G as b,Y as c,R as f,M as g,I as i}
4
+ import{p as e,k as i,H as t,b as o}from"./bem-registry.js";import{a as s,F as l}from"./behavior3.js";import{d as r}from"./disabled.js";import{h as a,e as n,k as d,T as h}from"./component3.js";import{c,n as p,b as u,a as m,t as v}from"./props-from-config.js";import{l as b}from"./label-with-expert-slot.js";import{n as f}from"./name.js";import{a as g}from"./tslib.es6.js";import{S as y,b as j,s as _}from"./component7.js";import{r as B}from"./aria-labelledby.js";import{a as L,c as O,n as T}from"./dev.utils.js";import{K as F,d as N}from"./events.js";import{B as x}from"./base-web-component.js";import{c as k}from"./item.js";import{c as K}from"./item2.js";import{T as w}from"./behavior.js";import{h as A}from"@stencil/core/internal/client";import{t as P}from"./i18n.js";import{c as C}from"./clsx.js";import{B as H}from"./component.js";import{P as D}from"./behavior4.js";import{A as I}from"./component2.js";function M(e,i){return Boolean(e)&&!0===i}function S(e){var i;return"string"==typeof e?"error":null!==(i=null==e?void 0:e._type)&&void 0!==i?i:"error"}const q=c("hideMsg",!1,p),E=c("hint","",u),$=c("infoPopover",void 0,(function(e){if("object"==typeof e&&null!==e)return e;throw new Error("Invalid info popover: "+typeof e)})),z=m(),R=c("msg",void 0,(function(i){if("string"==typeof i)try{return e(i)}catch(e){return i}return i}),(function(e){return void 0===e||("string"==typeof e?e.length>0:i(e)&&t(e._description,1))})),V=c("touched",!1,p),G={required:[b],optional:[s,r,a,q,E,$,z,R,f,n,V]},J=e=>{var{id:i,class:t,hint:o,baseClassName:s="kol-form-field"}=e,l=g(e,["id","class","hint","baseClassName"]);return o?A("span",Object.assign({class:C(`${s}__hint`,t),id:L(i||"","hint")},l),o):null},Q=e=>{var{component:i="label",id:t,baseClassName:o="kol-form-field",class:s,accessKey:l,shortKey:r,label:a,hideLabel:n,hasExpertSlot:d,omitId:h,showBadge:c=!0,readOnly:p,infoPopover:u}=e,m=g(e,["component","id","baseClassName","class","accessKey","shortKey","label","hideLabel","hasExpertSlot","omitId","showBadge","readOnly","infoPopover"]);const v=!d&&n,b=!1===c?void 0:j(l,r);return A(i,Object.assign({},m,{class:C(`${o}__label`,s),id:v||h?void 0:L(t,"label"),hidden:v,htmlFor:"legend"===i?void 0:t}),A(y,{class:`${o}__label-text`,label:d?"":null!=a?a:"",badgeText:b},A("slot",{name:"expert"})),!d&&p&&A("span",{class:`${o}__label__read-only`,"aria-hidden":"true"},"(",P("kol-readonly"),")"),!d&&u&&A("span",null,A(D,Object.assign({},u.popoverButton),A("div",{class:"kol-popover-button__popover--styled"},u.content))))},U=i=>{var t,o,{alert:s,hideMsg:l,msg:r,id:a,class:n}=i,d=g(i,["alert","hideMsg","msg","id","class"]);const h=function(i){if("string"==typeof i)try{return e(i)}catch(e){return{_description:i,_type:"error"}}return i&&"object"==typeof i&&!("_type"in i)?Object.assign(Object.assign({},i),{_type:"error"}):i}(r);return A(I,Object.assign({alert:!l&&(null!==(t=null==h?void 0:h._alert)&&void 0!==t?t:!0===s),class:C("kol-form-field__msg",l&&"visually-hidden",n),closerAriaDescriptionId:T(),handleCloserClick:()=>{},hasCloser:!1,headingId:O("alert-heading"),id:L(a,"msg"),label:"",level:0,refCloserButton:()=>{},refCloserTooltip:()=>{},type:null!==(o=null==h?void 0:h._type)&&void 0!==o?o:"error",variant:"msg"},d),(null==h?void 0:h._description)||void 0)},W=o.forBlock("kol-form-field"),X=({hideLabel:e,label:i,renderNoTooltip:t})=>!t&&!_(i)&&!0===e,Y=e=>{const i=S(e);return{[i]:!0,[`msg-type-${i}`]:!0}},Z=(e,i)=>{const{renderNoLabel:t,renderNoTooltip:o,renderNoHint:s,id:l,required:r,alert:a,disabled:n,class:c,msg:p,hideMsg:u,hideLabel:m,label:v,infoPopover:b,hint:f,accessKey:y,shortKey:B,counter:O,readOnly:T,touched:F,maxLength:N,ariaDescribedBy:x,showBadge:k,tooltipAlign:K,variant:w,component:D="div",orientation:I,refInput:S,refTooltip:q}=e,E=g(e,["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"]),$=_(v),z=M(p,F),R=j(y,B),V=X({hideLabel:m,label:v,renderNoTooltip:o}),G="fieldset"===D;return A(H,Object.assign({component:D,block:"kol-form-field",modifiers:Object.assign({disabled:Boolean(n),required:Boolean(r),touched:Boolean(F),"hide-label":Boolean(m),"read-only":Boolean(T),"hidden-msg":Boolean(u)},z?Y(p):{}),class:C(w&&d(w,"form-field"),c),disabled:!(!G||!n)||void 0,"aria-describedby":x},E),!t&&A(Q,{component:G?"legend":"label",class:G?"kol-form-field__label--legend":void 0,id:l,hasExpertSlot:$,hideLabel:m,label:v,accessKey:y,shortKey:B,readOnly:T,showBadge:k,infoPopover:b}),A("div",{class:W("input",{"orientation-horizontal":"horizontal"===I,"orientation-vertical":"vertical"===I}),ref:S},i,V&&A("div",{class:W("tooltip")},A(h,{badgeText:R||"",label:v,align:K,id:L(l,"label"),refFloating:q}))),O&&!("soft"===O.maxLengthBehavior&&"number"!=typeof O.maxLength)&&A("div",{class:W("counter")},A("span",{"aria-hidden":"true",class:W("counter"),ref:O.visualRef}),A("span",{"aria-live":"polite",class:"visually-hidden",id:L(l,"counter"),ref:O.ariaRef})),z&&A(U,{id:l,alert:a,hideMsg:u,msg:p}),!s&&A(J,{id:l,hint:f}),"number"==typeof N&&!O&&A("span",{id:L(l,"character-limit-hint"),class:"visually-hidden"},P("kol-character-limit-hint",{placeholders:{limit:String(N)}})))};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?v(t):void 0}}const ie=class extends x{constructor(){super(...arguments),this.tooltipBehavior=new w(x.stateLess),this.smartButton=k((()=>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(F.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(F.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(F.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(F.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(F.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 l(x.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 e=this.shared.getRenderProp("infoPopover");if(!e)return;const{_content:i}=e,t=g(e,["_content"]);return{popoverButton:this.infoPopover.getFcProps(Object.assign(Object.assign({_variant:"ghost"},t),{_hideLabel:!0,_inline:!0})),content:i}}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){s.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=B(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){r.apply(e,(e=>this.shared.setRenderProp("disabled",e)))}applyHideLabel(e){a.apply(e,(e=>this.shared.setRenderProp("hideLabel",e)))}applyHideMsg(e){q.apply(e,(e=>this.shared.setRenderProp("hideMsg",e)))}applyHint(e){E.apply(e,(e=>this.shared.setRenderProp("hint",e)))}applyInfoPopover(e){$.apply(e,(e=>this.shared.setRenderProp("infoPopover",e)))}applyLabel(e){b.apply(e,(e=>this.shared.setRenderProp("label",e)),this.isRequired("label"))}applyMsg(e){R.apply(e,(e=>this.shared.setRenderProp("msg",e)))}applyName(e){f.apply(e,(e=>this.shared.setRenderProp("name",e))),this.formAssociation.watchName(e)}applyOn(e){z.apply(e,(e=>this.shared.setRenderProp("on",e)))}applySyncValueBySelector(e){this.formAssociation.watchSyncValueBySelector(e)}applyTooltipAlign(e){n.apply(null!=e?e:"top",(e=>this.shared.setRenderProp("tooltipAlign",e)))}applyTouched(e){V.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&&N(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(F.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"===S(i)&&l&&!0===o,a="string"==typeof t&&t.length>0,n=[];return l&&!0===o&&n.push(L(e,"msg")),a&&n.push(L(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 X({hideLabel:e.getRenderProp("hideLabel"),label:v(e.getRenderProp("label"))})}getLabelTooltipRefs(){return{refInput:this.setInputRef,refTooltip:this.setTooltipRef}}getFormFieldProps({class:e,accessKey:i,shortKey:t,variant:o,counter:s,maxLength:l,readOnly:r,renderNoLabel:a,renderNoTooltip:n,required:d}){const h=this.shared,c=h.getState("id"),p=h.getRenderProp("label"),u=h.getRenderProp("tooltipAlign");return this.isTooltipShown()?(this.tooltipBehavior.watchAlign(u),this.tooltipBehavior.watchBadgeText(j(i,t)||""),this.tooltipBehavior.watchId(L(c,"label")),this.tooltipBehavior.watchLabel(p)):this.tooltipBehavior.destroy(),{id:c,disabled:h.getRenderProp("disabled"),msg:h.getRenderProp("msg"),hint:h.getRenderProp("hint"),label:p,hideLabel:h.getRenderProp("hideLabel"),hideMsg:h.getRenderProp("hideMsg"),touched:h.getRenderProp("touched"),showBadge:Boolean(i)||Boolean(t),required:d,readOnly:r,accessKey:i,shortKey:t,maxLength:l,counter:s,variant:o,class:e,tooltipAlign:u,alert:this.showAsAlert(),infoPopover:this.getInfoPopover(),renderNoLabel:a,renderNoTooltip:n,refInput:n?void 0:this.setInputRef,refTooltip:this.setTooltipRef}}};export{ie as B,Z as F,J as a,Q as b,ee as c,G as f,S as g,M as i}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import"./common.js";import{a as t,d as s,v as i}from"./variant.js";import{a as e,S as o}from"./suggestions2.js";import{h as a,g as r}from"./input-container.js";import{c as h,b as n,B as l}from"./base-web-component.js";import{p as d}from"./placeholder.js";import{r as p}from"./read-only.js";import{r as c}from"./required.js";import{s as u}from"./smart-button.js";import{s as m}from"./value-string.js";import{f as v,B as y}from"./base-web-component2.js";import{h as b}from"@stencil/core/internal/client";import{s as j}from"./controller.js";import{v as g}from"./access-and-short-key.js";import{c as f}from"./clsx.js";import{c as O}from"./element-interaction.js";import{C as x}from"./behavior2.js";const B=h("pattern",void 0,n),K={required:[...v.required],optional:[...v.optional,t,e,a,B,d,p,c,s,u,m,i]},q=class extends y{constructor(){super(...arguments),this.ctaRef=O(),this.counter=new x(l.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))),g(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){d.apply(t,(t=>this.textShared.setRenderProp("placeholder",t)))}applyReadOnly(t){p.apply(t,(t=>this.textShared.setRenderProp("readOnly",t)))}applyRequired(t){c.apply(t,(t=>this.textShared.setRenderProp("required",t)))}applyShortKey(t){s.apply(t,(t=>this.textShared.setRenderProp("shortKey",t))),g(this._accessKey,t)}applySmartButton(t){null==t?this.textShared.unsetRenderProp("smartButton"):u.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){m.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"),d=r.getRenderProp("placeholder"),p=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!==d?{placeholder:d}:{}),{autoComplete:r.getRenderProp("autoComplete")}),void 0!==s?{spellcheck:s}:{}),void 0!==p?{pattern:p}:{}),{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:b(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{q as B,K as t}
4
+ import"./bem-registry.js";import{a as t,d as s,v as i}from"./component3.js";import{a as e,S as o}from"./suggestions2.js";import{h as a,g as r}from"./input-container.js";import{c as h,b as n}from"./props-from-config.js";import{p as l}from"./placeholder.js";import{r as p}from"./read-only.js";import{r as d}from"./required.js";import{s as c}from"./smart-button.js";import{s as u}from"./value-string.js";import{f as m,B as v}from"./base-web-component2.js";import{h as y}from"@stencil/core/internal/client";import{s as b}from"./controller.js";import{v as j}from"./access-and-short-key.js";import{c as f}from"./clsx.js";import{c as g}from"./element-interaction.js";import{B as O}from"./base-web-component.js";import{C as x}from"./behavior2.js";const B=h("pattern",void 0,n),K={required:[...m.required],optional:[...m.optional,t,e,a,B,l,p,d,s,c,u,i]},q=class 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),b(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))),j(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))),j(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{q as B,K as t}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{g as e,p as s}from"./common.js";import{a as t,d as i,t as o,v as r}from"./variant.js";import{h as a,g as l,I as n}from"./input-container.js";import{c as d}from"./base-web-component.js";import{m as c}from"./multiple.js";import{r as h}from"./required.js";import{r as p}from"./rows.js";import{f as u,i as b,g as m,c as v,B as f,F as y}from"./base-web-component2.js";import{h as j,Fragment as O}from"@stencil/core/internal/client";import{v as g}from"./access-and-short-key.js";import{c as A}from"./clsx.js";import{h as B,c as w}from"./label.js";import{f as K}from"./options.js";import{a as q}from"./tslib.es6.js";import{g as P}from"./block-bem.js";const k=s=>{if("object"==typeof s&&null!==s){if("string"==typeof s.label&&s.label.length>0)return s.disabled=!0===s.disabled,s.label=`${s.label}`.trim(),!1===B(s.label,3)&&!1===w(s.label)&&e(`A differing Aria-Label (${s.label}) is inaccessible. A differing Aria-Label should consist of at least three readable characters.`),!Array.isArray(s.options)||void 0===s.options.find((e=>!1===k(e)));if("number"==typeof s.label)return!0}return!1},x=d("options",[],(function(e){const t="string"==typeof e?s(e):e;if(Array.isArray(t)&&t.every((e=>k(e))))return t;throw new Error("Invalid select options")})),L=d("value",[],(e=>Array.isArray(e)?e:[e])),$={required:[...u.required],optional:[...u.optional,t,a,c,x,h,p,L,i,o,r]},D=P("kol-select"),E=e=>{var{class:s,index:t,selectedValue:i,selected:o,value:r,label:a,disabled:l}=e,n=q(e,["class","index","selectedValue","selected","value","label","disabled"]);const d=void 0===i?[]:Array.isArray(i)?i:[i],c=o||d.includes(r);return j("option",Object.assign({class:A(D("option",{selected:Boolean(c),disabled:Boolean(l)}),s),selected:c,disabled:l,value:t},n),a)},I=({preKey:e,options:s,disabled:t,value:i,OptionProps:o={},OptionGroupProps:r={}})=>(null==s?void 0:s.length)?j(O,null,s.map(((s,a)=>{var l;const n=[e,`-${a}`].join("");if("options"in s){if(!(null===(l=s.options)||void 0===l?void 0:l.length))return null;const e=Boolean(t||s.disabled),{label:a}=s,d=q(s,["label"]);return j("optgroup",Object.assign({class:D("optgroup",{disabled:e}),key:n},r,{label:null==a?void 0:a.toString(),disabled:e}),j(I,Object.assign({OptionGroupProps:r,OptionProps:o,value:i,preKey:n},d,{disabled:e})))}return"value"in s?j(E,Object.assign({key:n},o,{index:n,selectedValue:i},s,{disabled:Boolean(t||s.disabled)})):null}))):null,V=e=>{const{class:s,msg:t,touched:i,disabled:o,required:r,options:a,value:l,OptionProps:n,OptionGroupProps:d,ariaDescribedBy:c,hideLabel:h,label:p}=e,u=q(e,["class","msg","touched","disabled","required","options","value","OptionProps","OptionGroupProps","ariaDescribedBy","hideLabel","label"]),f=Object.assign(Object.assign({class:A(D(Object.assign({disabled:Boolean(o),required:Boolean(r),touched:Boolean(i)},b(t,i)?{[m(t)]:!0}:{})),s),required:r,disabled:o},v({ariaDescribedBy:c,hideLabel:h,label:p})),u);return j("select",Object.assign({},f),j(I,{OptionGroupProps:d,OptionProps:n,disabled:o,options:a,value:l}))},G=(e,s,t)=>{const i=Array.isArray(e);if(s){if(void 0!==e&&!i)throw new Error(`↑ The schema for the property (_value) is not valid for multiple mode. Expected an array. The value will not be changed. (${t} = ${JSON.stringify(e)})`)}else if(i)throw new Error(`↑ The schema for the property (_value) is not valid for single mode. Expected a single value. The value will not be changed. (${t} = ${JSON.stringify(e)})`)},S=(e,s=!1)=>e.flatMap((e=>"options"in e&&Array.isArray(e.options)?S(e.options,Boolean(s||e.disabled)):[Object.assign(Object.assign({},e),{disabled:Boolean(s||e.disabled)})])),T=(e,s,t)=>{if(0===s.length)return e;const i=S(s),o=i.map((e=>e.value)),r=e.every((e=>o.includes(e)))?e:e.filter((e=>o.includes(e)));if(!1===t&&0===r.length){const e=i.find((e=>!0!==e.disabled));return e?[e.value]:r}return r},C=class extends f{constructor(){super(...arguments),this.keyOptionMap=new Map,this.hasValue=!0,this.handleSelectInput=e=>{var s;const t=Array.from((null===(s=this.ctaRef.el)||void 0===s?void 0:s.options)||[]).filter((e=>e.selected)).map((e=>{var s;return null===(s=this.keyOptionMap.get(e.value))||void 0===s?void 0:s.value}));if(this._multiple)this._value=t,this.handleInput(e,t);else{const s=t.length>0?t[0]:void 0;this._value=s,this.handleInput(e,s)}},this.handleSelectChange=e=>{const s=this._value;this.handleChange(e,s),this.hasValue=!!s}}applyAccessKey(e){t.apply(e,(e=>this.setRenderProp("accessKey",e))),g(e,this.getShortKeyProp())}applyShortKey(e){i.apply(e,(e=>this.setRenderProp("shortKey",e))),g(this.getAccessKeyProp(),e)}applyIcons(e){a.apply(e,(e=>this.setRenderProp("icons",e)))}applyMultiple(e){G(this._value,!0===e,"current"),c.apply(e,(e=>{this.setRenderProp("multiple",e),this.setRenderProp("value",T(this.getRenderProp("value"),this.getRenderProp("options"),this._multiple))}))}applyOptions(e){x.apply(e,(e=>{this.setRenderProp("options",e),e.length>0&&(this.keyOptionMap.clear(),K(this.keyOptionMap,e),this.setRenderProp("value",T(this.getRenderProp("value"),e,this._multiple)))}))}applyRequired(e){h.apply(e,(e=>this.setRenderProp("required",e)))}applyRows(e){p.apply(e,(e=>this.setRenderProp("rows",e)))}applyTabIndex(e){o.apply(e,(e=>this.setRenderProp("tabIndex",e)))}applyValue(e){G(e,!0===this._multiple,"received");const s=e=>{const s=T(e,this.getRenderProp("options"),this._multiple);this.setRenderProp("value",s),this.formAssociation.setFormAssociatedValue(this.getModelValue())};null===e?s([null]):L.apply(e,s)}applyVariant(e){r.apply(e,(e=>this.setRenderProp("variant",e)))}getModelValue(){const e=this.getRenderProp("value");return this._multiple?e:Array.isArray(e)&&e.length>0?e[0]:e}getSelectProps(){const{ariaDescribedBy:e,hasError:s}=this.getAria(),t=this.getRenderProp("multiple"),i=this.getRenderProp("shortKey");return Object.assign(Object.assign({id:this.getState("id"),hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),value:this.getRenderProp("value"),options:this.getRenderProp("options"),accessKey:this.getRenderProp("accessKey")||void 0,disabled:this.getRenderProp("disabled"),name:this.getRenderProp("name")||void 0,"aria-invalid":s?"true":void 0,ariaDescribedBy:e,size:t?this.getRenderProp("rows"):void 0,multiple:t,required:this.getRenderProp("required"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")},i?{"aria-keyshortcuts":i}:{}),{ref:this.ctaRef,onBlur:this.handleBlur,onChange:this.handleSelectChange,onClick:this.handleClick,onFocus:this.handleFocus,onInput:this.handleSelectInput,onKeyDown:this.handleKeyDown})}renderSelectField(){const e=this.getRenderProp("disabled"),{startAdornment:s,endAdornment:t}=l({icons:this.getRenderProp("icons")});return j(y,Object.assign({},this.getFormFieldProps({class:A("kol-form-field-select",{"kol-form-field--has-value":this.hasValue}),accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,required:this.getRenderProp("required"),variant:this.getRenderProp("variant")}),{onClick:()=>{var e;return null===(e=this.ctaRef.el)||void 0===e?void 0:e.focus()}}),j(n,{disabled:e,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:s,endAdornment:t},j(V,Object.assign({},this.getSelectProps()))))}};export{C as B,$ as s}
4
+ import{h as e,p as s}from"./bem-registry.js";import{a as t,d as i,t as o,v as r}from"./component3.js";import{h as a,g as l,I as n}from"./input-container.js";import{o as d,p as h,c}from"./props-from-config.js";import{m as p}from"./multiple.js";import{r as u}from"./required.js";import{r as b}from"./rows.js";import{f as m,i as v,g as y,c as f,B as j,F as O}from"./base-web-component2.js";import{h as g,Fragment as A}from"@stencil/core/internal/client";import{v as B}from"./access-and-short-key.js";import{c as w}from"./clsx.js";import{f as K}from"./options.js";import{a as q}from"./tslib.es6.js";import{g as P}from"./block-bem.js";const k=s=>{if("object"==typeof s&&null!==s){if("string"==typeof s.label&&s.label.length>0)return s.disabled=!0===s.disabled,s.label=`${s.label}`.trim(),!1===d(s.label,3)&&!1===h(s.label)&&e(`A differing Aria-Label (${s.label}) is inaccessible. A differing Aria-Label should consist of at least three readable characters.`),!Array.isArray(s.options)||void 0===s.options.find((e=>!1===k(e)));if("number"==typeof s.label)return!0}return!1},x=c("options",[],(function(e){const t="string"==typeof e?s(e):e;if(Array.isArray(t)&&t.every((e=>k(e))))return t;throw new Error("Invalid select options")})),L=c("value",[],(e=>Array.isArray(e)?e:[e])),$={required:[...m.required],optional:[...m.optional,t,a,p,x,u,b,L,i,o,r]},D=P("kol-select"),E=e=>{var{class:s,index:t,selectedValue:i,selected:o,value:r,label:a,disabled:l}=e,n=q(e,["class","index","selectedValue","selected","value","label","disabled"]);const d=void 0===i?[]:Array.isArray(i)?i:[i],h=o||d.includes(r);return g("option",Object.assign({class:w(D("option",{selected:Boolean(h),disabled:Boolean(l)}),s),selected:h,disabled:l,value:t},n),a)},I=({preKey:e,options:s,disabled:t,value:i,OptionProps:o={},OptionGroupProps:r={}})=>(null==s?void 0:s.length)?g(A,null,s.map(((s,a)=>{const l=[e,`-${a}`].join("");if("options"in s){const e=Boolean(t||s.disabled),{label:a}=s,n=q(s,["label"]);return g("optgroup",Object.assign({class:D("optgroup",{disabled:e}),key:l},r,{label:null==a?void 0:a.toString(),disabled:e}),g(I,Object.assign({OptionGroupProps:r,OptionProps:o,value:i,preKey:l},n,{disabled:e})))}return"value"in s?g(E,Object.assign({key:l},o,{index:l,selectedValue:i},s,{disabled:Boolean(t||s.disabled)})):null}))):null,V=e=>{const{class:s,msg:t,touched:i,disabled:o,required:r,options:a,value:l,OptionProps:n,OptionGroupProps:d,ariaDescribedBy:h,hideLabel:c,label:p}=e,u=q(e,["class","msg","touched","disabled","required","options","value","OptionProps","OptionGroupProps","ariaDescribedBy","hideLabel","label"]),b=Object.assign(Object.assign({class:w(D(Object.assign({disabled:Boolean(o),required:Boolean(r),touched:Boolean(i)},v(t,i)?{[y(t)]:!0}:{})),s),required:r,disabled:o},f({ariaDescribedBy:h,hideLabel:c,label:p})),u);return g("select",Object.assign({},b),g(I,{OptionGroupProps:d,OptionProps:n,disabled:o,options:a,value:l}))},G=(e,s,t)=>{const i=Array.isArray(e);if(s){if(void 0!==e&&!i)throw new Error(`↑ The schema for the property (_value) is not valid for multiple mode. Expected an array. The value will not be changed. (${t} = ${JSON.stringify(e)})`)}else if(i)throw new Error(`↑ The schema for the property (_value) is not valid for single mode. Expected a single value. The value will not be changed. (${t} = ${JSON.stringify(e)})`)},S=(e,s=!1)=>e.flatMap((e=>"options"in e&&Array.isArray(e.options)?S(e.options,Boolean(s||e.disabled)):[Object.assign(Object.assign({},e),{disabled:Boolean(s||e.disabled)})])),T=(e,s,t)=>{if(0===s.length)return e;const i=S(s),o=i.map((e=>e.value)),r=e.every((e=>o.includes(e)))?e:e.filter((e=>o.includes(e)));if(!1===t&&0===r.length){const e=i.find((e=>!0!==e.disabled));return e?[e.value]:r}return r},C=class extends j{constructor(){super(...arguments),this.keyOptionMap=new Map,this.hasValue=!0,this.handleSelectInput=e=>{var s;const t=Array.from((null===(s=this.ctaRef.el)||void 0===s?void 0:s.options)||[]).filter((e=>e.selected)).map((e=>{var s;return null===(s=this.keyOptionMap.get(e.value))||void 0===s?void 0:s.value}));if(this._multiple)this._value=t,this.handleInput(e,t);else{const s=t.length>0?t[0]:void 0;this._value=s,this.handleInput(e,s)}},this.handleSelectChange=e=>{const s=this._value;this.handleChange(e,s),this.hasValue=!!s}}applyAccessKey(e){t.apply(e,(e=>this.setRenderProp("accessKey",e))),B(e,this.getShortKeyProp())}applyShortKey(e){i.apply(e,(e=>this.setRenderProp("shortKey",e))),B(this.getAccessKeyProp(),e)}applyIcons(e){a.apply(e,(e=>this.setRenderProp("icons",e)))}applyMultiple(e){G(this._value,!0===e,"current"),p.apply(e,(e=>{this.setRenderProp("multiple",e),this.setRenderProp("value",T(this.getRenderProp("value"),this.getRenderProp("options"),this._multiple))}))}applyOptions(e){x.apply(e,(e=>{this.setRenderProp("options",e),e.length>0&&(this.keyOptionMap.clear(),K(this.keyOptionMap,e),this.setRenderProp("value",T(this.getRenderProp("value"),e,this._multiple)))}))}applyRequired(e){u.apply(e,(e=>this.setRenderProp("required",e)))}applyRows(e){b.apply(e,(e=>this.setRenderProp("rows",e)))}applyTabIndex(e){o.apply(e,(e=>this.setRenderProp("tabIndex",e)))}applyValue(e){G(e,!0===this._multiple,"received");const s=e=>{const s=T(e,this.getRenderProp("options"),this._multiple);this.setRenderProp("value",s),this.formAssociation.setFormAssociatedValue(this.getModelValue())};null===e?s([null]):L.apply(e,s)}applyVariant(e){r.apply(e,(e=>this.setRenderProp("variant",e)))}getModelValue(){const e=this.getRenderProp("value");return this._multiple?e:Array.isArray(e)&&e.length>0?e[0]:e}getSelectProps(){const{ariaDescribedBy:e,hasError:s}=this.getAria(),t=this.getRenderProp("multiple"),i=this.getRenderProp("shortKey");return Object.assign(Object.assign({id:this.getState("id"),hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),value:this.getRenderProp("value"),options:this.getRenderProp("options"),accessKey:this.getRenderProp("accessKey")||void 0,disabled:this.getRenderProp("disabled"),name:this.getRenderProp("name")||void 0,"aria-invalid":s?"true":void 0,ariaDescribedBy:e,size:t?this.getRenderProp("rows"):void 0,multiple:t,required:this.getRenderProp("required"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")},i?{"aria-keyshortcuts":i}:{}),{ref:this.ctaRef,onBlur:this.handleBlur,onChange:this.handleSelectChange,onClick:this.handleClick,onFocus:this.handleFocus,onInput:this.handleSelectInput,onKeyDown:this.handleKeyDown})}renderSelectField(){const e=this.getRenderProp("disabled"),{startAdornment:s,endAdornment:t}=l({icons:this.getRenderProp("icons")});return g(O,Object.assign({},this.getFormFieldProps({class:w("kol-form-field-select",{"kol-form-field--has-value":this.hasValue}),accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,required:this.getRenderProp("required"),variant:this.getRenderProp("variant")}),{onClick:()=>{var e;return null===(e=this.ctaRef.el)||void 0===e?void 0:e.focus()}}),g(n,{disabled:e,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:s,endAdornment:t},g(V,Object.assign({},this.getSelectProps()))))}};export{C as B,$ as s}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h as s}from"@stencil/core/internal/client";import{s as i,X as t}from"./common.js";import{B as a}from"./base-web-component.js";import{b as e,e as o,a as h,c as r,d as l}from"./api2.js";import{B as n}from"./component7.js";import{F as p}from"./behavior3.js";import{T as d,i as c}from"./behavior.js";import{a as m,b as y,c as b,f as u,g as f,h as v,s as j,i as x,l as A,d as C,t as B,e as I,v as D}from"./variant.js";import{d as K}from"./disabled.js";import{l as g}from"./label-with-expert-slot.js";import{n as T}from"./name.js";import{v as S}from"./access-and-short-key.js";import{c as L}from"./element-interaction.js";import{d as P,K as w}from"./events.js";import{p as F,a as H}from"./controller.js";const E=class extends a{constructor(){super(...arguments),this.ctaRef=L(),this.tooltipBehavior=new d(this.stateAccess),this.handleClick=s=>{s.stopPropagation(),this.tooltipBehavior.hideTooltip();const t=this.getRenderProp("type");if("submit"===t)F({form:this.host});else if("reset"===t)H({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&&P(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&&P(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&&P(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&&P(this.host,w.blur)}}initFormAssociation(){this.formAssociation=new p(a.stateLess,{host:this.host,type:"button"})}initButtonRenderProps(){this.initRenderProps(e),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))),S(s,i)}applyAriaControls(s){y.apply(s,(s=>this.setRenderProp("ariaControls",s)))}applyAriaDescription(s){b.apply(s,(s=>this.setRenderProp("ariaDescription",s)))}applyAriaExpanded(s){u.apply(s,(s=>this.setRenderProp("ariaExpanded",s)))}applyAriaHasPopup(s){o.apply(s,(s=>this.setRenderProp("ariaHasPopup",s)))}applyAriaSelected(s){h.apply(s,(s=>this.setRenderProp("ariaSelected",s)))}applyCustomClass(s){f.apply(s,(s=>this.setRenderProp("customClass",s)))}applyDisabled(s){K.apply(s,(s=>this.setRenderProp("disabled",s)))}applyHideLabel(s){v.apply(s,(s=>this.setRenderProp("hideLabel",s)))}applyIcons(s){j.apply(s,(s=>this.setRenderProp("icons",s)))}applyId(s){c.apply(s,(s=>this.setRenderProp("id",s)))}applyInline(s){x.apply(s,(s=>this.setRenderProp("inline",s)))}applyLabel(s){g.apply(s,(s=>{this.setRenderProp("label",s),this.tooltipBehavior.watchLabel(s)}))}applyName(s){T.apply(s,(s=>this.setRenderProp("name",s))),this.formAssociation.watchName(s)}applyOn(s){r.apply(s,(s=>this.setRenderProp("on",s)))}applyRole(s){A.apply(s,(s=>this.setRenderProp("role",s)))}applyShortKey(s,i){C.apply(s,(s=>this.setRenderProp("shortKey",s))),S(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){I.apply(s,(s=>{this.setRenderProp("tooltipAlign",s),this.tooltipBehavior.watchAlign(s)}))}applyType(s){l.apply(s,(s=>this.setRenderProp("type",s)))}applyValue(s){this.formValue=s,this.formAssociation.setFormAssociatedValue(s)}applyVariant(s){var i;D.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(n,Object.assign({},this.getButtonFCProps()))}};export{E as B}
4
+ import{h as s}from"@stencil/core/internal/client";import{s as i,X as t}from"./bem-registry.js";import{B as a}from"./base-web-component.js";import{b as e,e as o,a as h,c as l,d as r,B as n}from"./component10.js";import{F as p}from"./behavior3.js";import{T as d}from"./behavior.js";import{a as c,b as m,c as y,f as b,g as u,h as f,s as v,i as j,l as x,d as A,t as C,e as I,v as B}from"./component3.js";import{d as g}from"./disabled.js";import{i as D}from"./id.js";import"./props-from-config.js";import{l as K}from"./label-with-expert-slot.js";import{n as T}from"./name.js";import{v as S}from"./access-and-short-key.js";import{c as L}from"./element-interaction.js";import{d as w,K as F}from"./events.js";import{p as H,a as P}from"./controller.js";const E=class extends a{constructor(){super(...arguments),this.ctaRef=L(),this.propsConfig=e,this.tooltipBehavior=new d(this.stateAccess),this.handleClick=s=>{s.stopPropagation(),this.tooltipBehavior.hideTooltip();const t=this.getRenderProp("type");if("submit"===t)H({form:this.host});else if("reset"===t)P({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&&w(this.host,F.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&&w(this.host,F.mousedown)},this.handleFocus=s=>{var i,t;null===(t=(i=this.getRenderProp("on")).onFocus)||void 0===t||t.call(i,s),this.host&&w(this.host,F.focus)},this.handleBlur=s=>{var i,t;null===(t=(i=this.getRenderProp("on")).onBlur)||void 0===t||t.call(i,s),this.host&&w(this.host,F.blur)}}initFormAssociation(){this.formAssociation=new p(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){c.apply(s,(s=>this.setRenderProp("accessKey",s))),S(s,i)}applyAriaControls(s){m.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){o.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){g.apply(s,(s=>this.setRenderProp("disabled",s)))}applyHideLabel(s){f.apply(s,(s=>this.setRenderProp("hideLabel",s)))}applyIcons(s){v.apply(s,(s=>this.setRenderProp("icons",s)))}applyId(s){D.apply(s,(s=>this.setRenderProp("id",s)))}applyInline(s){j.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){T.apply(s,(s=>this.setRenderProp("name",s))),this.formAssociation.watchName(s)}applyOn(s){l.apply(s,(s=>this.setRenderProp("on",s)))}applyRole(s){x.apply(s,(s=>this.setRenderProp("role",s)))}applyShortKey(s,i){A.apply(s,(s=>this.setRenderProp("shortKey",s))),S(i,s)}applySyncValueBySelector(s){this.formAssociation.watchSyncValueBySelector(s)}applyTabIndex(s){"number"==typeof s?C.apply(s,(s=>this.setRenderProp("tabIndex",s))):this.unsetRenderProp("tabIndex")}applyTooltipAlign(s){I.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;B.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(n,Object.assign({},this.getButtonFCProps()))}};export{E as B}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h as i}from"@stencil/core/internal/client";import{v as s,B as t}from"./base-web-component.js";import{r as l,C as o}from"./component5.js";import"./common.js";import{l as a}from"./level.js";import{d as e,w as h}from"./width.js";import{l as r}from"./label.js";import{u as n,l as d,D as p,d as m}from"./scroll-lock.js";import{T as c}from"./behavior.js";import{c as v}from"./element-interaction.js";import{d as u,K as f}from"./events.js";import{h as b}from"./tooltip-open-tracking.js";const g={required:[r],optional:[e,a,s,h]},j=()=>{},C=class extends t{constructor(){super(...arguments),this.dialogRef=v(),this.cardCloseButtonRef=v(),this.cardCloseTooltipBehavior=new c(this.stateAccess),this.handleCancel=i=>{var s,t;b(i),i.defaultPrevented||(null===(t=(s=this.getRenderProp("on")).onCancel)||void 0===t||t.call(s,i),i.defaultPrevented||this.host&&!u(this.host,f.cancel)&&i.preventDefault())},this.handleClose=i=>{var s,t;i.target===this.dialogRef.el&&(n(this),null===(t=(s=this.getRenderProp("on")).onClose)||void 0===t||t.call(s),this.host&&u(this.host,f.close))},this.handleCardClose=()=>{this.cardCloseTooltipBehavior.hideTooltip(),this.closeDialog(),this.host&&u(this.host,f.close)}}initDialogRenderProps(){this.initRenderProps(g),this.cardCloseButtonProps=l(this.host),this.cardCloseTooltipBehavior.componentWillLoad({label:this.cardCloseButtonProps.label,align:this.cardCloseButtonProps.tooltipAlign})}syncCardCloseTooltipListeners(){this.cardCloseButtonRef.el&&this.cardCloseTooltipBehavior.syncListeners(void 0,this.cardCloseButtonRef.el,!0)}teardownDialog(){this.closeDialog(),n(this),this.cardCloseTooltipBehavior.destroy()}applyLabel(i){r.apply(i,(i=>this.setRenderProp("label",i)))}applyLevel(i){a.apply(i,(i=>this.setRenderProp("level",i)))}applyOn(i){e.apply(i,(i=>this.setRenderProp("on",i)))}applyVariant(i){s.apply(i,(i=>this.setRenderProp("variant",i)))}applyWidth(i){h.apply(i,(i=>this.setRenderProp("width",i)))}showDialog(i){var s,t;const l=this.dialogRef.el;(null==l?void 0:l.open)||(this.setState("modal",i),i?(null===(s=null==l?void 0:l.showModal)||void 0===s||s.call(l),l&&d(this)):null===(t=null==l?void 0:l.show)||void 0===t||t.call(l))}closeDialog(){var i,s;null===(s=null===(i=this.dialogRef.el)||void 0===i?void 0:i.close)||void 0===s||s.call(i)}buildCardProps(){return{ariaDescriptionId:this.getState("ariaDescriptionId"),closeButtonProps:this.cardCloseButtonProps,handleBlur:j,handleClose:this.handleCardClose,handleFocus:j,hasCloser:!0,headingId:this.getState("headingId"),href:"",label:this.getRenderProp("label"),level:this.getRenderProp("level"),on:{},refCloseButton:this.cardCloseButtonRef,refCta:j,refTooltip:this.cardCloseTooltipBehavior.setTooltipElementRef,target:""}}renderDialogFC(){const s=this.getRenderProp("variant"),t="card"===s;return i(p,{blockClass:m(s),handleCancel:this.handleCancel,handleClose:this.handleClose,label:this.getRenderProp("label"),labelledBy:t?this.getState("headingId"):void 0,modal:this.getState("modal"),refDialog:this.dialogRef,width:this.getRenderProp("width")},t?i(o,Object.assign({},this.buildCardProps()),this.renderSlot()):this.renderSlot())}};export{C as B}
4
+ import{h as i}from"@stencil/core/internal/client";import{B as s}from"./base-web-component.js";import{r as t,C as o}from"./component8.js";import"./bem-registry.js";import{l}from"./level.js";import{d as h,w as a}from"./width.js";import{A as e,t as r}from"./props-from-config.js";import{l as n}from"./label-lang-segment.js";import{u as d,l as p,D as m,d as v}from"./scroll-lock.js";import{T as c}from"./behavior.js";import{c as u}from"./element-interaction.js";import{d as b,K as f}from"./events.js";import{h as g}from"./tooltip-open-tracking.js";const j={required:[n],optional:[h,l,e,a]},C=class extends s{constructor(){super(...arguments),this.dialogRef=u(),this.cardCloseButtonRef=u(),this.cardCloseTooltipBehavior=new c(this.stateAccess),this.propsConfig=j,this.handleCancel=i=>{var s,t;g(i),i.defaultPrevented||(null===(t=(s=this.getRenderProp("on")).onCancel)||void 0===t||t.call(s,i),i.defaultPrevented||this.host&&!b(this.host,f.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&&(b(this.host,f.close),b(this.host,f.toggle)))},this.handleCardClose=()=>{this.cardCloseTooltipBehavior.hideTooltip(),this.closeDialog(),this.host&&b(this.host,f.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&&b(this.host,f.toggle))}closeDialog(){var i,s;null===(s=null===(i=this.dialogRef.el)||void 0===i?void 0:i.close)||void 0===s||s.call(i)}buildCardProps(){return{ariaDescriptionId:this.getState("ariaDescriptionId"),closeButtonProps:this.cardCloseButtonProps,handleClose:this.handleCardClose,hasCloser:!0,headingId:this.getState("headingId"),label:this.getRenderProp("label"),level:this.getRenderProp("level"),refCloseButton:this.cardCloseButtonRef,refTooltip:this.cardCloseTooltipBehavior.setTooltipElementRef}}renderDialogFC(){const s=this.getRenderProp("variant"),t="card"===s;return i(m,{blockClass:v(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{C as B}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h as i}from"@stencil/core/internal/client";import{B as s}from"./base-web-component.js";import{l as t,a,c as r,d as e,b as o,L as h}from"./api.js";import{T as n}from"./behavior.js";import{s as l}from"./common.js";import{a as p,b as d,c,f as m,g as y,h as b,s as f,i as u,l as C,d as x,t as g,e as v,v as A}from"./variant.js";import{d as j}from"./disabled.js";import{h as L}from"./href.js";import{l as w}from"./label-with-expert-slot.js";import{l as I}from"./link-target.js";import{c as K}from"./element-interaction.js";import{d as D,K as T}from"./events.js";import{o as k}from"./ariaCurrentService.js";const V=class extends s{constructor(){super(...arguments),this.ctaRef=K((()=>!0===this.getRenderProp("disabled"))),this.tooltipBehavior=new n(this.stateAccess),this.handleAnchorClick=i=>{if(this.tooltipBehavior.hideTooltip(),!0===this.getRenderProp("disabled"))return void i.preventDefault();const s=this.getRenderProp("href"),t=this.getRenderProp("on");"function"==typeof(null==t?void 0:t.onClick)&&(l(i,this.ctaRef.el),t.onClick(i,s)),this.host&&D(this.host,T.click,s)},this.setAnchorRef=i=>{this.ctaRef(i)}}initLinkRenderProps(){this.initRenderProps(t),this.unsetRenderProp("tabIndex")}initLinkBehaviors(){this.unsubscribeOnLocationChange=k((i=>{const s=this.getRenderProp("href"),t=this.getRenderProp("ariaCurrentValue"),a=i===s?t:"";this.getState("ariaCurrent")!==a&&this.setState("ariaCurrent",a)})),this.tooltipBehavior.componentWillLoad({label:this.getTooltipLabel(),align:this.getRenderProp("tooltipAlign")})}syncTooltipListeners(){this.ctaRef.el&&this.tooltipBehavior.syncListeners(void 0,this.ctaRef.el,!0)}destroyLinkBehaviors(){this.unsubscribeOnLocationChange&&(this.unsubscribeOnLocationChange(),this.unsubscribeOnLocationChange=void 0),this.tooltipBehavior.destroy()}getTooltipLabel(){const i=this.getRenderProp("label");if("string"==typeof i&&i.length>0)return i;const s=this.getRenderProp("href");return"string"==typeof s?s:""}applyAccessKey(i){p.apply(i,(i=>this.setRenderProp("accessKey",i)))}applyAriaControls(i){d.apply(i,(i=>this.setRenderProp("ariaControls",i)))}applyAriaCurrentValue(i){a.apply(i,(i=>this.setRenderProp("ariaCurrentValue",i)))}applyAriaDescription(i){c.apply(i,(i=>this.setRenderProp("ariaDescription",i)))}applyAriaExpanded(i){m.apply(i,(i=>this.setRenderProp("ariaExpanded",i)))}applyAriaOwns(i){r.apply(i,(i=>this.setRenderProp("ariaOwns",i)))}applyCustomClass(i){y.apply(i,(i=>this.setRenderProp("customClass",i)))}applyDisabled(i){j.apply(i,(i=>this.setRenderProp("disabled",i)))}applyDownload(i){e.apply(i,(i=>this.setRenderProp("download",i)))}applyHideLabel(i){b.apply(i,(i=>this.setRenderProp("hideLabel",i)))}applyHref(i){L.apply(i,(i=>this.setRenderProp("href",i)))}applyIcons(i){f.apply(i,(i=>this.setRenderProp("icons",i)))}applyInline(i){u.apply(i,(i=>this.setRenderProp("inline",i)))}applyLabel(i){w.apply(i,(s=>{this.setRenderProp("label",s),this.setState("expertSlot",""===i),this.tooltipBehavior.watchLabel(this.getTooltipLabel())}))}applyOn(i){o.apply(i,(i=>this.setRenderProp("on",i)))}applyRole(i){C.apply(i,(i=>this.setRenderProp("role",i)))}applyShortKey(i){x.apply(i,(i=>this.setRenderProp("shortKey",i)))}applyTabIndex(i){"number"==typeof i?g.apply(i,(i=>this.setRenderProp("tabIndex",i))):this.unsetRenderProp("tabIndex")}applyTarget(i){I.apply(i,(i=>this.setRenderProp("target",i)))}applyTooltipAlign(i){v.apply(i,(i=>{this.setRenderProp("tooltipAlign",i),this.tooltipBehavior.watchAlign(i)}))}applyVariant(i){A.apply(i,(i=>this.setRenderProp("variant",i)))}renderLinkFC(){return i(h,{accessKey:this.getRenderProp("accessKey"),ariaControls:this.getRenderProp("ariaControls"),ariaCurrent:this.getState("ariaCurrent"),ariaCurrentValue:this.getRenderProp("ariaCurrentValue"),ariaDescription:this.getRenderProp("ariaDescription"),ariaDescriptionId:this.getState("ariaDescriptionId"),ariaExpanded:this.getRenderProp("ariaExpanded"),ariaOwns:this.getRenderProp("ariaOwns"),customClass:this.getRenderProp("customClass"),disabled:this.getRenderProp("disabled"),download:this.getRenderProp("download"),handleAnchorClick:this.handleAnchorClick,hideLabel:this.getRenderProp("hideLabel"),href:this.getRenderProp("href"),icons:this.getRenderProp("icons"),inline:this.getRenderProp("inline"),label:this.getRenderProp("label"),on:this.getRenderProp("on"),refAnchor:this.setAnchorRef,refTooltip:this.tooltipBehavior.setTooltipElementRef,role:this.getRenderProp("role"),shortKey:this.getRenderProp("shortKey"),tabIndex:this.getRenderProp("tabIndex"),target:this.getRenderProp("target"),tooltipAlign:this.getRenderProp("tooltipAlign"),variant:this.getRenderProp("variant"),expertSlot:this.getState("expertSlot")})}};export{V as B}
4
+ import{h as i}from"@stencil/core/internal/client";import{B as s}from"./base-web-component.js";import{l as t,a,c as r,d as e,b as o,L as h}from"./component6.js";import{T as n}from"./behavior.js";import{s as l}from"./bem-registry.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 g,t as x,e as j,v}from"./component3.js";import{d as A}from"./disabled.js";import{h as L}from"./href.js";import"./props-from-config.js";import{l as w}from"./label-with-expert-slot.js";import{l as I}from"./link-target.js";import{c as K}from"./element-interaction.js";import{d as D,K as T}from"./events.js";import{o as k}from"./ariaCurrentService.js";const V=class extends s{constructor(){super(...arguments),this.ctaRef=K((()=>!0===this.getRenderProp("disabled"))),this.tooltipBehavior=new n(this.stateAccess),this.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&&D(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){A.apply(i,(i=>this.setRenderProp("disabled",i)))}applyDownload(i){e.apply(i,(i=>this.setRenderProp("download",i)))}applyHideLabel(i){b.apply(i,(i=>this.setRenderProp("hideLabel",i)))}applyHref(i){L.apply(i,(i=>this.setRenderProp("href",i)),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){w.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){g.apply(i,(i=>this.setRenderProp("shortKey",i)))}applyTabIndex(i){"number"==typeof i?x.apply(i,(i=>this.setRenderProp("tabIndex",i))):this.unsetRenderProp("tabIndex")}applyTarget(i){I.apply(i,(i=>this.setRenderProp("target",i)))}applyTooltipAlign(i){j.apply(i,(i=>{this.setRenderProp("tooltipAlign",i),this.tooltipBehavior.watchAlign(i)}))}applyVariant(i){v.apply(i,(i=>this.setRenderProp("variant",i)))}renderLinkFC(){return i(h,{accessKey:this.getRenderProp("accessKey"),ariaControls:this.getRenderProp("ariaControls"),ariaCurrent:this.getState("ariaCurrent"),ariaCurrentValue:this.getRenderProp("ariaCurrentValue"),ariaDescription:this.getRenderProp("ariaDescription"),ariaDescriptionId:this.getState("ariaDescriptionId"),ariaExpanded:this.getRenderProp("ariaExpanded"),ariaOwns:this.getRenderProp("ariaOwns"),customClass:this.getRenderProp("customClass"),disabled:this.getRenderProp("disabled"),download:this.getRenderProp("download"),handleAnchorClick:this.handleAnchorClick,hideLabel:this.getRenderProp("hideLabel"),href:this.getRenderProp("href"),icons:this.getRenderProp("icons"),inline:this.getRenderProp("inline"),label:this.getRenderProp("label"),on:this.getRenderProp("on"),refAnchor:this.setAnchorRef,refTooltip:this.tooltipBehavior.setTooltipElementRef,role:this.getRenderProp("role"),shortKey:this.getRenderProp("shortKey"),tabIndex:this.getRenderProp("tabIndex"),target:this.getRenderProp("target"),tooltipAlign:this.getRenderProp("tooltipAlign"),variant:this.getRenderProp("variant"),expertSlot:this.getState("expertSlot")})}};export{V as B}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as t}from"./aria-labelledby.js";import{G as e,L as o,p as l}from"./common.js";import{h as i,Fragment as s,forceUpdate as n}from"@stencil/core/internal/client";import{c as a,e as r,n as c,a as d,B as h,v as b}from"./base-web-component.js";import{c as u}from"./item.js";import{c as p}from"./item-pool.js";import{c as v}from"./item3.js";import{l as f}from"./label-with-expert-slot.js";import{v as m}from"./variant.js";import{c as y,d as g,e as k}from"./component-names.js";import{t as j}from"./i18n.js";import{c as w}from"./component10.js";import{b as C}from"./bem-registry.js";import{B as S}from"./component.js";import{B as _}from"./component7.js";import{I as x}from"./component4.js";import{L as O}from"./api.js";import{S as $}from"./component11.js";import{T as F}from"./component9.js";import{a as L}from"./tslib.es6.js";import{n as T,c as D}from"./dev.utils.js";import{d as I,K as z}from"./events.js";import{A}from"./component2.js";import{c as E}from"./element-interaction.js";import{u as B,l as M,d as H,D as K}from"./scroll-lock.js";import{h as N}from"./tooltip-open-tracking.js";import{l as P}from"./level.js";import{d as R,w as W}from"./width.js";import{l as q}from"./label.js";import{r as G,C as U}from"./component5.js";import{T as V}from"./behavior.js";import{C as J}from"./keyboard.js";const Q=(l,i,s,n)=>{const a=t=>"string"==typeof t||void 0===t;if(e(l,"_ariaLabelledby",a,new Set(["string"]),n),!a(n))return[];const r=t(i,n);if(s){try{s.ariaLabelledByElements=r}catch(t){}o.debug(["WebComponent internals",s])}return r},X=t=>"number"==typeof t&&Number.isInteger(t)&&t>=0,Y=a("fixedCols",[0,0],(t=>r(t)),(t=>2===t.length&&t.every(X))),Z=a("hasSettingsMenu",!1,c),tt=d();function et(t){const e="string"==typeof t?l(t):t;if(Array.isArray(e))return e;throw new Error("Invalid table data: expected an array of row objects.")}function ot(t){return t.every((t=>"object"==typeof t&&null!==t))}const lt=a("data",[],et,ot),it=a("dataFoot",[],et,ot),st=t=>Array.isArray(t)&&t.every((t=>Array.isArray(t))),nt=a("headers",{horizontal:[],vertical:[]},(function(t){const e="string"==typeof t?l(t):t;if("object"!=typeof e||null===e)throw new Error("Invalid table headers: expected an object.");const{horizontal:o=[],vertical:i=[]}=e;if(!st(o)||!st(i))throw new Error("Invalid table headers: horizontal and vertical must be arrays of header rows.");return{horizontal:o,vertical:i}}),(function({horizontal:t,vertical:e}){return[...t,...e].every((t=>t.every((t=>void 0===t.width||"number"==typeof t.width))))})),at=a("loading",!1,c),rt=a("selection",!1,(function(t){const e="string"==typeof t?l(t):t;if("object"==typeof e&&null!==e)return e;throw new Error("Invalid table selection: expected an object.")}),(function(t){return!1===t||"function"==typeof t.label&&(!t.selectedKeys||Array.isArray(t.selectedKeys))})),ct={required:[f,lt],optional:[Y,Z,tt,it,nt,at,rt,m]},dt=t=>t.flatMap((t=>t.filter((t=>"string"==typeof t.key||"function"==typeof t.render)))),ht=t=>{const e=dt(t.horizontal);if(e.length>0)return{cells:e,horizontal:!0};const o=dt(t.vertical);return{cells:o,horizontal:0===o.length}},bt=(t,e)=>{let o=0;return Array.isArray(t)&&t.forEach((t=>{var l;o+=null!==(l=t[e])&&void 0!==l?l:1})),o},ut=(t,e)=>{const o=Math.max(0,...t.map((t=>bt(t,"colSpan"))));return 0===o?e.length:o},pt=t=>{var e;return null!==(e=null==t?void 0:t.reduce(((t,e)=>"visible"in e&&!1===e.visible?t:t+(e.colSpan||1)),0))&&void 0!==e?e:0},vt=(t,e,o,l)=>{if(void 0!==l&&!e)return l<t[0]?"left":t[1]>0&&l>=o-t[1]?"right":void 0},ft=(t,e,o,l)=>{var i,s,n,a,r,c;const d=[];for(let a=0;a<e;a++)"left"===vt(o,l,e,a)&&(d[a]=(null!==(i=d[a-1])&&void 0!==i?i:0)+(null!==(n=null===(s=t[a-1])||void 0===s?void 0:s.width)&&void 0!==n?n:0));for(let i=e-1;i>=0;i--)"right"===vt(o,l,e,i)&&(d[i]=(null!==(a=d[i+1])&&void 0!==a?a:0)+(null!==(c=null===(r=t[i+1])||void 0===r?void 0:r.width)&&void 0!==c?c:0));return d},mt=(t,e,o,l)=>{const i=void 0===e?void 0:t[e];return o&&l?`calc( var(--kol-table-selection-col-width) + ${i}px)`:`${i}px`},yt=(t,e,o,l)=>{if(0===(e.horizontal?t.horizontal:t.vertical).length)return;const i=e.cells[o];return(null==i?void 0:i.type)===l?i:void 0},gt=({data:t,dataFoot:e,headers:o,isFoot:l,noEntriesLabel:i,primaryHeaders:s})=>{const n=ut(o.horizontal,t),a=s.cells;let r=((t,e,o)=>{const l=Math.max(0,...t.map((t=>bt(t,"rowSpan"))));return 0===l?e.length:l-o})(o.vertical,t,e.length),c=0;l&&(c=r,r+=e.length);const d=[],h=[],b=[];o.vertical.forEach(((t,e)=>{h[e]=0,b[e]=[]}));for(let i=c;i<r;i++){const r=[];o.vertical.forEach(((t,e)=>{let o=0;if(b[e].forEach((t=>o+=t)),o<=i){const l=t[i-o+h[e]];if("object"==typeof l){r.push(Object.assign(Object.assign({},l),{headerCell:!0,data:{}}));let t=1;if("number"==typeof l.rowSpan&&l.rowSpan>1&&(t=l.rowSpan),b[e].push(t),"number"==typeof l.colSpan&&l.colSpan>1)for(let o=1;o<l.colSpan;o++)b[e+o].push(t);h[e]++}}}));for(let o=0;o<n;o++)if(s.horizontal){const s=l?e[i-c]:t[i],n=a[o];"object"==typeof n&&null!==n&&"object"==typeof s&&null!==s&&r.push(Object.assign(Object.assign({},n),{colIndex:o,colSpan:void 0,rowSpan:void 0,data:s,label:s[n.key]}))}else{const e=a[i];"object"==typeof e&&null!==e&&"object"==typeof t[o]&&null!==t[o]&&r.push(Object.assign(Object.assign({},e),{colIndex:o,colSpan:void 0,rowSpan:void 0,data:t[o],label:t[o][e.key]}))}d.push(r)}if(0===t.length){let t=pt(o.horizontal[0]),e=0;o.vertical.length>0&&(t-=o.vertical.length,o.vertical[0].forEach((t=>{e+=t.rowSpan||1})));const l={colSpan:t,label:i,render:void 0,rowSpan:Math.max(e,1)};0===d.length?d.push([l]):d[0].push(l)}return d},kt=({horizontal:t,vertical:e})=>{const o=t.flatMap((t=>t.filter((t=>!1!==t.visible&&void 0!==t.width&&t.width>0)).map((t=>t.width)))),l=[...e.flatMap((t=>t.filter((t=>void 0!==t.width&&t.width>0)).map((t=>t.width)))),...o];return 0===l.length?"0px":1===l.length?`${l[0]}px`:`calc(${l.map((t=>`${t}px`)).join(" + ")})`},jt=t=>void 0===t?[]:Array.isArray(t)?t:[t],wt=t=>{var e;return null!==(e=t?t.keyPropertyName:void 0)&&void 0!==e?e:"id"},Ct=t=>{const e=t?jt(t.selectedKeys):[];return{disabledKeys:new Set((t?jt(t.disabledKeys):[]).map(String)),keyPropertyName:wt(t),selectedKeys:e,selectedKeysSet:new Set(e.map(String))}},St=(t,e)=>t.filter((t=>!e.disabledKeys.has(String(t[e.keyPropertyName])))),_t=C.forBlock("kol-table"),xt=_t("body"),Ot=_t("cell-actions"),$t=_t("cell-states"),Ft=_t("footer"),Lt=_t("head"),Tt=_t("head-row"),Dt=_t("scroll-container"),It=_t("selection-icon"),zt=_t("selection-input-tooltip"),At=_t("sort"),Et=_t("sort-button"),Bt=_t("sort-order"),Mt=_t("table"),Ht=`${_t("focus-element")} ${_t("caption")}`,Kt=(t,e)=>vt(t.fixedCols,t.stickyColsDisabled,t.maxCols,e),Nt=(t,e,o)=>({left:"left"===e?mt(t.fixedOffsets,o,!0,!1!==t.selection):void 0,right:"right"===e?mt(t.fixedOffsets,o,!1,!1!==t.selection):void 0}),Pt=(t,e,o)=>{var l,i;return null!==(i=t.primaryHeaders.horizontal&&(null===(l=e[0])||void 0===l?void 0:l.data)?t.rowKeys.get(e[0].data):void 0)&&void 0!==i?i:String(o)},Rt=t=>{const e=j("kol-sort");return"number"==typeof t&&t>0?`${e} – ${j("kol-table-sort-order").replace("{{order}}",`${t}`)}`:e},Wt=(t,e,o,l,s)=>{if(!1===e.visible)return"";const n=!1!==(null==e?void 0:e.sortable)&&"string"==typeof e.sortDirection;let a="none",r="kolicon-sort-neutral";if(n&&e.sortDirection)switch(e.sortDirection){case"ASC":r="kolicon-sort-asc",a="ascending";break;case"DESC":r="kolicon-sort-desc",a="descending";break;default:a="none"}const c=s?"row":"number"==typeof e.colSpan&&e.colSpan>1?"colgroup":"col",d="number"==typeof e.sortOrder&&e.sortOrder>0?e.sortOrder:void 0,h=void 0!==e.width?`${e.width}px`:void 0,b=Kt(t,l),{left:u,right:p}=Nt(t,b,l),v=e.textAlign,f=n?e.sortDirection:void 0;return i("th",{key:`${o}-${l}-${e.label}`,class:_t("cell",{[a]:!0,"align-center":"center"===v,"align-justify":"justify"===v,"align-left":"left"===v,"align-right":"right"===v,header:!0,"sticky-left":"left"===b,"sticky-right":"right"===b}),scope:c,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{width:h,left:u,right:p},"aria-sort":a,"data-sort":f?`sort-${f}`:void 0},f?i("span",{class:At},i(_,Object.assign({},t.getButtonFcProps(`sort-${s?"vertical":"horizontal"}-${o}-${l}`,{_icons:{right:r},_label:e.label,_ariaDescription:Rt(d),_on:{onClick:o=>{t.handleSort(o,{key:e.key,currentSortDirection:f})}}},{class:Et}))),d&&i("span",{"aria-hidden":"true",class:Bt},d)):e.label)},qt=(t,e,o,l,s=!1)=>i("tr",{class:_t("row",{body:!s,footer:s}),key:`row-${Pt(t,e,o)}`},((t,e,o)=>{var l;const{handleSelectionChange:s,selection:n,selectionModel:a}=t;if(!n)return"";const r=null===(l=e[0])||void 0===l?void 0:l.data;if(!r)return"";const c=r[a.keyPropertyName],d=n.multiple||void 0===n.multiple,h=String(c),b=a.selectedKeysSet.has(h),u=a.disabledKeys.has(h),p=n.label(r),v={name:"selection",checked:b,disabled:u,id:String(c),"aria-label":p};return i("td",{key:`tbody-${o}-selection`,class:_t("cell",{selection:!0})},i("div",{class:_t("selection",{checked:b})},d?i("label",{class:_t("selection-label",{disabled:u})},i(x,{class:It,icons:"kolicon "+(b?"kolicon-check":""),label:""}),i("input",Object.assign({class:_t("selection-input",{checkbox:!0})},v,{type:"checkbox",onInput:t=>{const e=b?a.selectedKeys.filter((t=>String(t)!==h)):[...a.selectedKeys,c];s(t,e)}}))):i("label",{class:_t("selection-label")},i("input",Object.assign({class:_t("selection-input",{radio:!0})},v,{type:"radio",onInput:t=>{s(t,[c])}}))),i("div",{class:zt},i(F,{label:p,badgeText:"",id:`${c}-label`,refFloating:()=>{}}))))})(t,e,o),e.map(((e,s)=>((t,e,o,l,s)=>{if(!1===e.visible)return"";let n=`${o}-${l}-${e.label}`;if(e.data){const i=t.rowKeys.get(e.data);n=i?`${i}-${t.primaryHeaders.horizontal?l:o}`:n}if(e.headerCell)return Wt(t,e,o,l,s);const a="function"!=typeof e.render&&e.label===t.translateNoEntries,r=yt(t.headers,t.primaryHeaders,l,"action"),c=Boolean(r&&e.data),d=yt(t.headers,t.primaryHeaders,l,"state"),h=Boolean(d&&e.data),b=Kt(t,l),{left:u,right:p}=Nt(t,b,e.colIndex),v="function"==typeof e.render,f=e.textAlign;return i("td",{key:`cell-${n}-${t.settingsChangedCounter}`,class:_t("cell",{actions:c,"align-center":"center"===f,"align-justify":"justify"===f,"align-left":"left"===f,"align-right":"right"===f,body:!0,states:h,"sticky-left":"left"===b,"sticky-right":"right"===b}),"aria-atomic":a?"false":void 0,"aria-live":a?"polite":void 0,"aria-relevant":a?"text":void 0,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{textAlign:f,left:u,right:p},ref:v?o=>t.handleRenderCell(e,o):void 0},c&&r&&e.data?((t,e,o,l)=>i("div",{class:Ot},e.actions(o).map(((e,o)=>{const s=`action-${l}-${o}`;return"button"===e.type?i("span",{key:s},i(_,Object.assign({},t.getButtonFcProps(s,e)))):"link"===e.type?i("span",{key:s},i(O,Object.assign({},t.getLinkFcProps(s,e)))):null}))))(t,r,e.data,n):h&&d&&e.data?((t,e,o)=>{const l=t.key;if(!l)return"";const s=e[l];return s?i("div",{class:$t},s.map(((t,e)=>"badge"===t.type?i(y,Object.assign({key:`state-${o}-${e}`},t)):null))):""})(d,e.data,n):v?"":e.label)})(t,e,o,s,l)))),Gt=(t,e,o)=>{const l=t.headers.vertical.length+pt(null==o?void 0:o[0])+(t.selection?1:0);return i("tr",{"aria-hidden":"true",class:_t("spacer",{[e]:!0})},i("td",{class:_t("spacer-line",{[e]:!0}),colSpan:l}))},Ut=t=>{const{data:e,dataFoot:o,externalLabelElements:l,fixedCols:n,hasScrollbar:a,hasSettingsMenu:r,headers:c,label:d,loading:h,refScrollContainer:b,refTable:u,selection:p,stickyColsDisabled:v,variant:f}=t,m=j("kol-no-entries"),y=ht(c),g=ut(c.horizontal,e),k=Object.assign(Object.assign({},t),{fixedOffsets:ft(y.cells,g,n,v),maxCols:g,primaryHeaders:y,selectionModel:Ct(p),translateNoEntries:m}),C=gt({data:e,dataFoot:o,headers:c,isFoot:!1,noEntriesLabel:m,primaryHeaders:y}),_=0===l.length;return i(S,{block:"kol-table",class:w(f,"table")},r&&t.renderSettings(c.horizontal),i("div",{ref:b,class:Dt,tabindex:a?_?"-1":"0":void 0},i("table",{ref:u,"aria-labelledby":_?"caption":void 0,class:Mt,style:{minWidth:kt(c)}},_&&i("caption",{class:Ht,id:"caption",tabindex:a?"0":void 0},d),i("thead",{class:Lt},[c.horizontal.map(((t,e)=>i("tr",{class:Tt,key:`thead-${e}`},p&&(t=>{const{data:e,handleSelectionChange:o,selection:l,selectionModel:s}=t;if(!l)return i("td",{class:_t("cell",{header:!0}),key:"thead-0"});if(!1===l.multiple)return i("th",{scope:"col",key:"thead-0-selection",class:_t("cell",{header:!0,selection:!0})},i("span",{class:"visually-hidden"},j("kol-table-selection")));const n=s.selectedKeys.filter((t=>!s.disabledKeys.has(String(t)))).length,a=n===St(e,s).length,r=0!==n&&!a;let c;return c=j(0===n?"kol-table-selection-all":a&&!r?"kol-table-selection-none":"kol-table-selection-indeterminate"),i("th",{scope:"col",key:"thead-0-selection",class:_t("cell",{header:!0,selection:!0})},i("span",{class:"visually-hidden"},j("kol-table-selection")),i("div",{class:_t("selection",{checked:a,indeterminate:r})},i("label",{class:_t("selection-label")},i(x,{class:It,icons:"kolicon "+(r?"kolicon-minus":a?"kolicon-check":""),label:""}),i("input",{class:_t("selection-input",{checkbox:!0}),name:"selection",checked:a&&!r,indeterminate:r,"aria-label":c,type:"checkbox",onInput:t=>{o(t,((t,e,o)=>{const l=e.selectedKeys.filter((t=>e.disabledKeys.has(String(t))));return o&&l.push(...St(t,e).map((t=>null==t?void 0:t[e.keyPropertyName]))),l})(e,s,!a))}})),i("div",{class:zt},i(F,{label:c,badgeText:"",refFloating:()=>{}}))))})(k),0===e&&(({headers:t})=>{const{horizontal:e,vertical:o}=t;if(0===e.length||0===o.length)return i(s,null);const l=o.reduce(((t,e)=>{var o,l;return t+(null!==(l=null===(o=null==e?void 0:e[0])||void 0===o?void 0:o.width)&&void 0!==l?l:0)}),0);return i("td",{"aria-hidden":"true",colSpan:o.length,rowSpan:e.length,style:l>0?{width:`${l}px`}:void 0})})(k),Array.isArray(t)&&t.map(((t,o)=>Wt(k,t,e,o,!1)))))),Gt(k,"head",c.horizontal)]),i("tbody",{class:xt},i("div",{class:_t("loader",{shown:h})},i($,{label:j(h?"kol-table-data-loading":"kol-table-data-loaded").replace("{{caption}}",d),show:h,variant:"cycle"})),C.map(((t,e)=>qt(k,t,e,!0)))),(t=>{const{dataFoot:e,headers:o,primaryHeaders:l,translateNoEntries:s}=t;if(0===e.length)return null;const n=gt({data:e,dataFoot:e,headers:o,isFoot:!0,noEntriesLabel:s,primaryHeaders:l}),a=ut(o.horizontal,e),r=Object.assign(Object.assign({},t),{fixedOffsets:ft(l.cells,a,t.fixedCols,t.stickyColsDisabled),maxCols:a});return i("tfoot",{class:Ft},[Gt(t,"foot",n),n.map(((t,e)=>qt(r,t,e,!0,!0)))])})(k))))},Vt=({dialog:t,card:e},o)=>i(K,Object.assign({},t),e?i(U,Object.assign({},e),o):o),Jt=()=>{},Qt=C.forBlock("kol-table")("settings"),Xt=t=>Number.isFinite(t)&&void 0!==t&&t>0?t:void 0,Yt=()=>{},Zt=(t,e)=>{const o=j("kol-table-settings"),l=j("kol-table-settings-cancel"),s=j("kol-table-settings-apply"),n=j("kol-table-settings-error-all-invisible");let a,r=!1,c=!1;const d=()=>{r=!0,e()},v=p((()=>u(t)),(t=>t.syncListeners()),(t=>t.destroy())),f=((t,e)=>{const o=E(),l=E(),i=new V(h.stateLess),s=T(),n=D("dialog-heading"),r={};let c,d=!0,u={};const p=t=>!a||I(a,t),v=()=>{var t,e;null===(e=null===(t=o.el)||void 0===t?void 0:t.close)||void 0===e||e.call(t)},f=t=>{var e;N(t),t.defaultPrevented||(null===(e=u.onCancel)||void 0===e||e.call(u,t),t.defaultPrevented||p(z.cancel)||t.preventDefault())},m=t=>{var e;t.target===o.el&&(B(r),null===(e=u.onClose)||void 0===e||e.call(u),p(z.close))},y=()=>{i.hideTooltip(),v(),p(z.close)};return{getFcProps:e=>{var a,r,h;let p="",v=0,g="blank",k="100%";q.apply(e.label,(t=>{p=t})),P.apply(null!==(a=e.level)&&void 0!==a?a:0,(t=>{v=t})),R.apply(e.on,(t=>{u=t})),b.apply(null!==(r=e.variant)&&void 0!==r?r:"blank",(t=>{g=t})),W.apply(null!==(h=e.width)&&void 0!==h?h:"100%",(t=>{k=t}));const j="card"===g;return j&&!c&&(c=G(t()),i.componentWillLoad({label:c.label,align:c.tooltipAlign})),{dialog:{blockClass:H(g),handleCancel:f,handleClose:m,label:p,labelledBy:j?n:void 0,modal:d,refDialog:o,width:k},card:j&&c?{ariaDescriptionId:s,closeButtonProps:c,handleBlur:Jt,handleClose:y,handleFocus:Jt,hasCloser:!0,headingId:n,href:"",label:p,level:v,on:{},refCloseButton:l,refCta:Jt,refTooltip:i.setTooltipElementRef,target:""}:void 0}},show:t=>{var l,i;const s=o.el;(null==s?void 0:s.open)||(d!==t&&(d=t,e()),t?(null===(l=null==s?void 0:s.showModal)||void 0===l||l.call(s),s&&M(r)):null===(i=null==s?void 0:s.show)||void 0===i||i.call(s))},close:v,syncListeners:()=>{l.el&&i.syncListeners(void 0,l.el,!0)},destroy:()=>{v(),B(r),i.destroy()}}})(t,d),m=D("alert-heading"),y=T();let w,C=[],S=[],x=null;const O=()=>{var t;return null!==(t=S[S.length-1])&&void 0!==t?t:[]},$=t=>{S=S.map(((e,o,l)=>o===l.length-1?t:e)),d()},F=(t,e)=>{const o=[...O()],l=o.findIndex((e=>e.key===t));if(-1===l)return;let i;if("up"===e){if(0===l)return;i=l-1}else{if(l===o.length-1)return;i=l+1}const[s]=o.splice(l,1);o.splice(i,0,s),$(o)},K=t=>{if(t.preventDefault(),!O().some((t=>!1!==t.visible)))return x=n,void d();if(a){x=null,C=S.map((t=>t.map((t=>Object.assign({},t))))),d();const t=S.map((t=>t.map((t=>{const e=t,{hidable:o,resizable:l,sortable:i,visible:s,width:n}=e,a=L(e,["hidable","resizable","sortable","visible","width"]),r=Object.assign({},a);return void 0!==s&&(r.visible=s),void 0!==o&&(r.hidable=o),void 0!==i&&(r.sortable=i),void 0!==l&&(r.resizable=l),null!=n&&(r.width=n),r}))));I(a,z.changeHeaderCells,t),f.close()}},U=t=>{t&&(a=t)};return{beginRender:()=>{v.beginRender(),c=r,r=!1},render:t=>{var e;c||t===w||(w=t,C=(e=t).map((t=>[...t])),S=e.map((t=>t.map((t=>Object.assign({},t))))));const n=O();return i("div",{class:Qt,ref:U},i("div",{class:"kol-table-settings"},i(_,Object.assign({},v.get("toggle").getFcProps({_icons:"kolicon-settings",_label:o,_hideLabel:!0,_on:{onClick:()=>f.show(!0)}})))),i(Vt,Object.assign({},f.getFcProps({label:o,variant:"card",width:"fit-content"})),i("div",{class:"kol-table-settings__content"},x&&i("div",{class:"kol-table-settings__error-message"},i(A,{alert:!1,closerAriaDescriptionId:y,handleCloserClick:Yt,hasCloser:!1,headingId:m,label:x,level:0,refCloserButton:Yt,refCloserTooltip:Yt,type:"error",variant:"msg"})),i("form",{onSubmit:K},i("div",{class:"kol-table-settings__columns"},n.map(((t,e)=>((t,e,o)=>i("div",{key:t.key,class:"kol-table-settings__column"},i(g,{_checked:!1!==t.visible,_label:j(t.hidable?"kol-table-settings-column-hidable":"kol-table-settings-column-not-hidable",{placeholders:{column:t.label}}),_value:!0,_hideLabel:!0,_disabled:!1===t.hidable,_on:{onInput:(e,o)=>{var l;return((t,e)=>{const o=O().map((o=>o.key===t&&!1!==o.hidable?Object.assign(Object.assign({},o),{visible:Boolean(e)}):o));$(o)})(null!==(l=t.key)&&void 0!==l?l:"",o)}}}),i("span",{class:"kol-table-settings__column-label"},t.label),i(k,{_hideLabel:!0,_value:Xt(t.width),_label:j("kol-table-settings-column-width",{placeholders:{column:t.label}}),_min:1,_disabled:!1===t.resizable,_on:{onInput:(e,o)=>{var l;return((t,e)=>{const o=Xt(Number(e)),l=O().map((e=>e.key===t&&!1!==e.resizable?Object.assign(Object.assign({},e),{width:o}):e));$(l)})(null!==(l=t.key)&&void 0!==l?l:"",o)}}}),i(_,Object.assign({},v.get(`move-up-${t.key}`).getFcProps({_icons:"kolicon-chevron-up",_label:j(!1===t.sortable||0===e?"kol-table-settings-not-move":"kol-table-settings-move-up",{placeholders:{column:t.label}}),_hideLabel:!0,_variant:"ghost",_on:{onClick:()=>{var e;return F(null!==(e=t.key)&&void 0!==e?e:"","up")}},_disabled:!1===t.sortable||0===e},{"data-testid":"table-settings-move-up"}))),i(_,Object.assign({},v.get(`move-down-${t.key}`).getFcProps({_icons:"kolicon-chevron-down",_label:j(!1===t.sortable||e===o.length-1?"kol-table-settings-not-move":"kol-table-settings-move-down",{placeholders:{column:t.label}}),_hideLabel:!0,_variant:"ghost",_on:{onClick:()=>{var e;return F(null!==(e=t.key)&&void 0!==e?e:"","down")}},_disabled:!1===t.sortable||e===o.length-1},{"data-testid":"table-settings-move-down"})))))(t,e,n)))),i("div",{class:"kol-table-settings__actions"},i(_,Object.assign({},v.get("cancel").getFcProps({_label:l,_variant:"secondary",_on:{onClick:()=>(S=C.map((t=>[...t])),x=null,d(),void f.close())}},{"data-testid":"table-settings-cancel"}))),i(_,Object.assign({},v.get("apply").getFcProps({_label:s,_variant:"primary",_type:"submit"},{"data-testid":"table-settings-apply"}))))))))},sync:()=>{v.endRender(),f.syncListeners()},destroy:()=>{v.destroy(),f.destroy()}}},te=class extends h{constructor(){super(...arguments),this.cellRenderTimeouts=new Map,this.buttonItems=p((()=>u((()=>this.host))),(t=>t.syncListeners()),(t=>t.destroy())),this.settings=Zt((()=>this.host),(()=>n(this))),this.linkItems=p((()=>v((()=>n(this)))),(t=>t.syncListeners()),(t=>t.destroy())),this.handleResize=()=>{this.updateScrollbarState(),clearTimeout(this.resizeDebounceTimeout),this.resizeDebounceTimeout=setTimeout((()=>{this.updateStickyColsDisabled()}),150)},this.handleSelectionChange=(t,e)=>{this.emitSelectionChange(t,e)},this.handleSort=(t,e)=>{this.emitSort(t,e)},this.handleRenderCell=(t,e)=>{e&&(clearTimeout(this.cellRenderTimeouts.get(e)),this.cellRenderTimeouts.set(e,setTimeout((()=>{if("function"==typeof t.render){const o=t.render(e,t,t.data,this.getRenderProp("data"));"string"==typeof o&&(e.textContent=o)}}))))},this.refScrollContainer=t=>{this.scrollContainerElement=t},this.refTable=t=>{this.tableElement=t,this.syncTableLabel(this.getState("externalLabelElements"))},this.getButtonFcProps=(t,e,o)=>this.buttonItems.get(t).getFcProps(e,o),this.renderSettings=t=>this.settings.render(t),this.getLinkFcProps=(t,e)=>this.linkItems.get(t).getFcProps(e)}initTableRenderProps(){this.initRenderProps(ct)}observeScrollContainer(){this.scrollContainerElement&&ResizeObserver&&(this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.scrollContainerElement)),this.updateStickyColsDisabled()}teardownTable(){var t;null===(t=this.resizeObserver)||void 0===t||t.disconnect(),clearTimeout(this.resizeDebounceTimeout),this.buttonItems.destroy(),this.linkItems.destroy(),this.settings.destroy()}syncTableItems(){this.buttonItems.endRender(),this.linkItems.endRender(),this.settings.sync()}applyData(t){lt.apply(t,(t=>{this.setRenderProp("data",t),this.setState("rowKeys",((t,e)=>new Map(t.map((t=>{var o;return[t,null!==(o=e.get(t))&&void 0!==o?o:T()]}))))(t,this.getState("rowKeys")))}))}applyDataFoot(t){it.apply(t,(t=>this.setRenderProp("dataFoot",t)))}applyFixedCols(t){Y.apply(t,(t=>this.setRenderProp("fixedCols",t))),this.updateStickyColsDisabled()}applyHasSettingsMenu(t){Z.apply(t,(t=>this.setRenderProp("hasSettingsMenu",t)))}applyHeaders(t){nt.apply(t,(t=>this.setRenderProp("headers",(t=>0===t.horizontal.length?t:Object.assign(Object.assign({},t),{horizontal:t.horizontal.map((t=>t.map((t=>Object.assign(Object.assign({},t),{visible:"boolean"!=typeof t.visible||t.visible,hidable:"boolean"!=typeof t.hidable||t.hidable})))))}))(t))))}applyLabel(t){f.apply(t,(t=>this.setRenderProp("label",t)))}applyLoading(t){at.apply(t,(t=>this.setRenderProp("loading",t)))}applyOn(t){tt.apply(t,(t=>this.setRenderProp("on",t)))}applySelection(t){rt.apply(t,(t=>this.setRenderProp("selection",t))),this.updateStickyColsDisabled()}applyVariant(t){m.apply(t,(t=>this.setRenderProp("variant",t)))}syncTableLabel(t){this.tableElement&&"ariaLabelledByElements"in this.tableElement&&((null==t?void 0:t.length)&&(this.tableElement.ariaLabelledByElements=t),o.debug([this.tableElement,!!(null==t?void 0:t.length),t,this.tableElement.ariaLabelledByElements]))}moveCheckboxFocus(t){var e,o,l;if("ArrowUp"!==t.key&&"ArrowDown"!==t.key)return;const i=Array.from(null!==(o=null===(e=this.scrollContainerElement)||void 0===e?void 0:e.querySelectorAll(".kol-table__selection-input--checkbox"))&&void 0!==o?o:[]),s=null===(l=this.scrollContainerElement)||void 0===l?void 0:l.querySelector(":focus");let n=i.indexOf(s);n>-1&&(t.preventDefault(),n=(n+("ArrowDown"===t.key?1:i.length-1))%i.length,i[n].focus())}applyChangedHeaderCells(t){const e=Object.assign(Object.assign({},this.getRenderProp("headers")),{horizontal:t.detail});this.setRenderProp("headers",e),this.setState("settingsChangedCounter",this.getState("settingsChangedCounter")+1);const o=this.getRenderProp("on")[J.onChangeHeaderCells];"function"==typeof o&&o(t,e)}updateScrollbarState(){if(this.scrollContainerElement){const{clientHeight:t,clientWidth:e,scrollHeight:o,scrollWidth:l}=this.scrollContainerElement;this.setState("hasScrollbar",l>e||o>t&&["auto","scroll"].includes(getComputedStyle(this.scrollContainerElement).overflowY))}}calculateFixedColsWidth(){var t,e,o,l,i,s;const[n,a]=this.getRenderProp("fixedCols"),r=this.getRenderProp("headers"),c=ht(r).cells,d=ut(r.horizontal,this.getRenderProp("data"));let h=0;for(let o=0;o<n&&o<c.length;o++)h+=null!==(e=null===(t=c[o])||void 0===t?void 0:t.width)&&void 0!==e?e:0;for(let t=d-a;t<d&&t<c.length;t++)h+=null!==(l=null===(o=c[t])||void 0===o?void 0:o.width)&&void 0!==l?l:0;if(this.getRenderProp("selection")){const t=null===(i=this.scrollContainerElement)||void 0===i?void 0:i.querySelector(".kol-table__cell--selection");h+=null!==(s=null==t?void 0:t.offsetWidth)&&void 0!==s?s:0}return h}updateStickyColsDisabled(){if(!this.scrollContainerElement)return void this.setState("stickyColsDisabled",!1);const t=this.calculateFixedColsWidth();this.setState("stickyColsDisabled",t>0&&t>=this.scrollContainerElement.clientWidth)}emitSelectionChange(t,e){const o=this.getRenderProp("on")[J.onSelectionChange];"function"==typeof o&&o(t,e),this.host&&I(this.host,z.selectionChange,e)}emitSort(t,e){const o=this.getRenderProp("on")[J.onSort];"function"==typeof o&&e.key&&o(t,e),this.host&&I(this.host,z.sort,e)}renderTableStatelessFC(){return this.buttonItems.beginRender(),this.linkItems.beginRender(),this.settings.beginRender(),i(Ut,{data:this.getRenderProp("data"),dataFoot:this.getRenderProp("dataFoot"),externalLabelElements:this.getState("externalLabelElements"),fixedCols:this.getRenderProp("fixedCols"),getButtonFcProps:this.getButtonFcProps,getLinkFcProps:this.getLinkFcProps,renderSettings:this.renderSettings,handleRenderCell:this.handleRenderCell,handleSelectionChange:this.handleSelectionChange,handleSort:this.handleSort,hasScrollbar:this.getState("hasScrollbar"),hasSettingsMenu:this.getRenderProp("hasSettingsMenu"),headers:this.getRenderProp("headers"),label:this.getRenderProp("label"),loading:this.getRenderProp("loading"),on:this.getRenderProp("on"),refScrollContainer:this.refScrollContainer,refTable:this.refTable,rowKeys:this.getState("rowKeys"),selection:this.getRenderProp("selection"),settingsChangedCounter:this.getState("settingsChangedCounter"),stickyColsDisabled:this.getState("stickyColsDisabled"),variant:this.getRenderProp("variant")})}};export{te as B,it as a,lt as t,Q as v}
4
+ import{r as t}from"./aria-labelledby.js";import{I as e,L as o,p as l,b as i}from"./bem-registry.js";import{h as s,Fragment as n,forceUpdate as a}from"@stencil/core/internal/client";import{B as r}from"./base-web-component.js";import{c}from"./item.js";import{c as d}from"./item-pool.js";import{c as h}from"./item3.js";import{c as b,e as u,n as p,a as v,r as f,t as m,A as y}from"./props-from-config.js";import{l as g}from"./label-lang-segment.js";import{v as k,k as j,T as C}from"./component3.js";import{c as S,d as w,e as _}from"./component-names.js";import{t as x}from"./i18n.js";import{B as O}from"./component.js";import{B as $}from"./component10.js";import{I as F}from"./component5.js";import{L}from"./component6.js";import{r as I}from"./component7.js";import{S as D}from"./component11.js";import{a as T}from"./tslib.es6.js";import{n as z,c as A}from"./dev.utils.js";import{d as E,K as M}from"./events.js";import{A as B}from"./component2.js";import{l as H}from"./level.js";import{c as K}from"./element-interaction.js";import{u as N,l as P,d as W,D as R}from"./scroll-lock.js";import{h as q}from"./tooltip-open-tracking.js";import{d as U,w as V}from"./width.js";import{r as G,C as J}from"./component8.js";import{T as Q}from"./behavior.js";import{C as X}from"./keyboard.js";const Y=(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},Z=t=>"number"==typeof t&&Number.isInteger(t)&&t>=0,tt=b("fixedCols",[0,0],(t=>u(t)),(t=>2===t.length&&t.every(Z))),et=b("hasSettingsMenu",!1,p),ot=v();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=b("data",[],lt,it),nt=b("dataFoot",[],lt,it),at=t=>Array.isArray(t)&&t.every((t=>Array.isArray(t))),rt=b("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=b("loading",!1,p),dt=b("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:[g,st],optional:[tt,et,ot,nt,rt,ct,dt,k]},bt=t=>t.flatMap((t=>t.filter((t=>"string"==typeof t.key||"function"==typeof t.render)))),ut=t=>{const e=bt(t.horizontal);if(e.length>0)return{cells:e,horizontal:!0};const o=bt(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=[],b=[];o.vertical.forEach(((t,e)=>{h[e]=0,b[e]=[]}));for(let i=c;i<r;i++){const r=[];o.vertical.forEach(((t,e)=>{let o=0;if(b[e].forEach((t=>o+=t)),o<=i){const l=t[i-o+h[e]];if("object"==typeof l){r.push(Object.assign(Object.assign({},l),{headerCell:!0,data:{}}));let t=1;if("number"==typeof l.rowSpan&&l.rowSpan>1&&(t=l.rowSpan),b[e].push(t),"number"==typeof l.colSpan&&l.colSpan>1)for(let o=1;o<l.colSpan;o++)b[e+o].push(t);h[e]++}}}));for(let o=0;o<n;o++)if(s.horizontal){const s=l?e[i-c]:t[i],n=a[o];"object"==typeof n&&null!==n&&"object"==typeof s&&null!==s&&r.push(Object.assign(Object.assign({},n),{colIndex:o,colSpan:void 0,rowSpan:void 0,data:s,label:s[n.key]}))}else{const e=a[i];"object"==typeof e&&null!==e&&"object"==typeof t[o]&&null!==t[o]&&r.push(Object.assign(Object.assign({},e),{colIndex:o,colSpan:void 0,rowSpan:void 0,data:t[o],label:t[o][e.key]}))}d.push(r)}if(0===t.length){let t=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(" + ")})`},St=t=>void 0===t?[]:Array.isArray(t)?t:[t],wt=t=>{var e;return null!==(e=t?t.keyPropertyName:void 0)&&void 0!==e?e:"id"},_t=t=>{const e=t?St(t.selectedKeys):[];return{disabledKeys:new Set((t?St(t.disabledKeys):[]).map(String)),keyPropertyName:wt(t),selectedKeys:e,selectedKeysSet:new Set(e.map(String))}},xt=(t,e)=>t.filter((t=>!e.disabledKeys.has(String(t[e.keyPropertyName])))),Ot=i.forBlock("kol-table"),$t=Ot("body"),Ft=Ot("cell-actions"),Lt=Ot("cell-states"),It=Ot("footer"),Dt=Ot("head"),Tt=Ot("head-row"),zt=Ot("scroll-container"),At=Ot("selection-icon"),Et=Ot("selection-input-tooltip"),Mt=Ot("sort"),Bt=Ot("sort-button"),Ht=Ot("sort-order"),Kt=Ot("table"),Nt=`${Ot("focus-element")} ${Ot("caption")}`,Pt="caption",Wt=(t,e)=>mt(t.fixedCols,t.stickyColsDisabled,t.maxCols,e),Rt=(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}),qt=(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=x("kol-sort");return"number"==typeof t&&t>0?`${e} – ${x("kol-table-sort-order").replace("{{order}}",`${t}`)}`:e},Vt=(t,e,o,l,i)=>{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=i?"row":"number"==typeof e.colSpan&&e.colSpan>1?"colgroup":"col",d="number"==typeof e.sortOrder&&e.sortOrder>0?e.sortOrder:void 0,h=void 0!==e.width?`${e.width}px`:void 0,b=Wt(t,l),{left:u,right:p}=Rt(t,b,l),v=e.textAlign,f=n?e.sortDirection:void 0;return s("th",{key:`${o}-${l}-${e.label}`,class:Ot("cell",{[a]:!0,"align-center":"center"===v,"align-justify":"justify"===v,"align-left":"left"===v,"align-right":"right"===v,header:!0,"sticky-left":"left"===b,"sticky-right":"right"===b}),scope:c,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{width:h,left:u,right:p},"aria-sort":a,"data-sort":f?`sort-${f}`:void 0},f?s("span",{class:Mt},s($,Object.assign({},t.getButtonFcProps(`sort-${i?"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:Bt}))),d&&s("span",{"aria-hidden":"true",class:Ht},d)):e.label)},Gt=(t,e,o,l,i=!1)=>s("tr",{class:Ot("row",{body:!i,footer:i}),key:`row-${qt(t,e,o)}`},((t,e,o)=>{var l;const{handleSelectionChange:i,selection:n,selectionModel:a}=t;if(!n)return"";const r=null===(l=e[0])||void 0===l?void 0:l.data;if(!r)return"";const c=r[a.keyPropertyName],d=n.multiple||void 0===n.multiple,h=String(c),b=a.selectedKeysSet.has(h),u=a.disabledKeys.has(h),p=n.label(r),v={name:"selection",checked:b,disabled:u,id:String(c),"aria-label":p};return s("td",{key:`tbody-${o}-selection`,class:Ot("cell",{selection:!0})},s("div",{class:Ot("selection",{checked:b})},d?s("label",{class:Ot("selection-label",{disabled:u})},s(F,{class:At,icons:"kolicon "+(b?"kolicon-check":""),label:""}),s("input",Object.assign({class:Ot("selection-input",{checkbox:!0})},v,{type:"checkbox",onInput:t=>{const e=b?a.selectedKeys.filter((t=>String(t)!==h)):[...a.selectedKeys,c];i(t,e)}}))):s("label",{class:Ot("selection-label")},s("input",Object.assign({class:Ot("selection-input",{radio:!0})},v,{type:"radio",onInput:t=>{i(t,[c])}}))),s("div",{class:Et},s(C,{label:p,badgeText:"",id:`${c}-label`,refFloating:()=>{}}))))})(t,e,o),e.map(((e,i)=>((t,e,o,l,i)=>{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 Vt(t,e,o,l,i);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),b=Wt(t,l),{left:u,right:p}=Rt(t,b,e.colIndex),v="function"==typeof e.render,f=e.textAlign;return s("td",{key:`cell-${n}-${t.settingsChangedCounter}`,class:Ot("cell",{actions:c,"align-center":"center"===f,"align-justify":"justify"===f,"align-left":"left"===f,"align-right":"right"===f,body:!0,states:h,"sticky-left":"left"===b,"sticky-right":"right"===b}),"aria-atomic":a?"false":void 0,"aria-live":a?"polite":void 0,"aria-relevant":a?"text":void 0,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{textAlign:f,left:u,right:p},ref:v?o=>t.handleRenderCell(e,o):void 0},c&&r&&e.data?((t,e,o,l)=>s("div",{class:Ft},e.actions(o).map(((e,o)=>{const i=`action-${l}-${o}`;return"button"===e.type?s("span",{key:i},s($,Object.assign({},t.getButtonFcProps(i,e)))):"link"===e.type?s("span",{key:i},s(L,Object.assign({},t.getLinkFcProps(i,e)))):null}))))(t,r,e.data,n):h&&d&&e.data?((t,e,o)=>{const l=t.key;if(!l)return"";const i=e[l];return i?s("div",{class:Lt},i.map(((t,e)=>"badge"===t.type?s(S,Object.assign({key:`state-${o}-${e}`},t)):null))):""})(d,e.data,n):v?"":e.label)})(t,e,o,i,l)))),Jt=(t,e,o)=>{const l=t.headers.vertical.length+ft(null==o?void 0:o[0])+(t.selection?1:0);return s("tr",{"aria-hidden":"true",class:Ot("spacer",{[e]:!0})},s("td",{class:Ot("spacer-line",{[e]:!0}),colSpan:l}))},Qt=t=>{const e=f(ht,t),{data:o,dataFoot:l,externalLabelElements:i,fixedCols:a,hasScrollbar:r,hasSettingsMenu:c,headers:d,label:h,loading:b,refScrollContainer:u,refTable:p,selection:v,stickyColsDisabled:y,variant:g}=e,k=x("kol-no-entries"),S=ut(d),w=vt(d.horizontal,o),_=Object.assign(Object.assign({},e),{fixedOffsets:yt(S.cells,w,a,y),maxCols:w,primaryHeaders:S,selectionModel:_t(v),translateNoEntries:k}),$=jt({data:o,dataFoot:l,headers:d,isFoot:!1,noEntriesLabel:k,primaryHeaders:S}),L=0===i.length;return s(O,{block:"kol-table",class:j(g,"table")},c&&t.renderSettings(d.horizontal),s("div",{ref:u,class:zt,tabindex:r?L?"-1":"0":void 0},s("table",{ref:p,"aria-labelledby":L?Pt:void 0,class:Kt,style:{minWidth:Ct(d)}},L&&s("caption",{class:Nt,id:Pt,ref:t=>{t&&(r?t.tabIndex=0:t.removeAttribute("tabindex"))}},I(h)),s("thead",{class:Dt},[d.horizontal.map(((t,e)=>s("tr",{class:Tt,key:`thead-${e}`},v&&(t=>{const{data:e,handleSelectionChange:o,selection:l,selectionModel:i}=t;if(!l)return s("td",{class:Ot("cell",{header:!0}),key:"thead-0"});if(!1===l.multiple)return s("th",{scope:"col",key:"thead-0-selection",class:Ot("cell",{header:!0,selection:!0})},s("span",{class:"visually-hidden"},x("kol-table-selection")));const n=i.selectedKeys.filter((t=>!i.disabledKeys.has(String(t)))).length,a=n===xt(e,i).length,r=0!==n&&!a;let c;return c=x(0===n?"kol-table-selection-all":a&&!r?"kol-table-selection-none":"kol-table-selection-indeterminate"),s("th",{scope:"col",key:"thead-0-selection",class:Ot("cell",{header:!0,selection:!0})},s("span",{class:"visually-hidden"},x("kol-table-selection")),s("div",{class:Ot("selection",{checked:a,indeterminate:r})},s("label",{class:Ot("selection-label")},s(F,{class:At,icons:"kolicon "+(r?"kolicon-minus":a?"kolicon-check":""),label:""}),s("input",{class:Ot("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(...xt(t,e).map((t=>null==t?void 0:t[e.keyPropertyName]))),l})(e,i,!a))}})),s("div",{class:Et},s(C,{label:c,badgeText:"",refFloating:()=>{}}))))})(_),0===e&&(({headers:t})=>{const{horizontal:e,vertical:o}=t;if(0===e.length||0===o.length)return s(n,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 s("td",{"aria-hidden":"true",colSpan:o.length,rowSpan:e.length,style:l>0?{width:`${l}px`}:void 0})})(_),Array.isArray(t)&&t.map(((t,o)=>Vt(_,t,e,o,!1)))))),Jt(_,"head",d.horizontal)]),s("tbody",{class:$t},s("div",{class:Ot("loader",{shown:b})},s(D,{label:x(b?"kol-table-data-loading":"kol-table-data-loaded").replace("{{caption}}",m(h)),show:b,variant:"cycle"})),$.map(((t,e)=>Gt(_,t,e,!0)))),(t=>{const{dataFoot:e,headers:o,primaryHeaders:l,translateNoEntries:i}=t;if(0===e.length)return null;const n=jt({data:e,dataFoot:e,headers:o,isFoot:!0,noEntriesLabel:i,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 s("tfoot",{class:It},[Jt(t,"foot",n),n.map(((t,e)=>Gt(r,t,e,!0,!0)))])})(_))))},Xt=({dialog:t,card:e},o)=>s(R,Object.assign({},t),e?s(J,Object.assign({},e),o):o),Yt=i.forBlock("kol-table")("settings"),Zt=t=>Number.isFinite(t)&&void 0!==t&&t>0?t:void 0,te=()=>{},ee=(t,e)=>{const o=x("kol-table-settings"),l=x("kol-table-settings-cancel"),i=x("kol-table-settings-apply"),n=x("kol-table-settings-error-all-invisible");let a,h=!1,b=!1;const u=()=>{h=!0,e()},p=d((()=>c(t)),(t=>t.syncListeners()),(t=>t.destroy())),v=((t,e)=>{const o=K(),l=K(),i=new Q(r.stateLess),s=z(),n=A("dialog-heading"),c={};let d,h=!0,b={};const u=t=>!a||E(a,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;q(t),t.defaultPrevented||(null===(e=b.onCancel)||void 0===e||e.call(b,t),t.defaultPrevented||u(M.cancel)||t.preventDefault())},f=t=>{var e;t.target===o.el&&(N(c),null===(e=b.onClose)||void 0===e||e.call(b),u(M.close))},k=()=>{i.hideTooltip(),p(),u(M.close)};return{getFcProps:e=>{var a,r,c;let u="",p=0,j="blank",C="100%";g.apply(e.label,(t=>{u=t})),H.apply(null!==(a=e.level)&&void 0!==a?a:0,(t=>{p=t})),U.apply(e.on,(t=>{b=t})),y.apply(null!==(r=e.variant)&&void 0!==r?r:"blank",(t=>{j=t})),V.apply(null!==(c=e.width)&&void 0!==c?c:"100%",(t=>{C=t}));const S="card"===j;return S&&!d&&(d=G(t()),i.componentWillLoad({label:d.label,align:d.tooltipAlign})),{dialog:{blockClass:W(j),handleCancel:v,handleClose:f,label:m(u),labelledBy:S?n:void 0,modal:h,refDialog:o,width:C},card:S&&d?{ariaDescriptionId:s,closeButtonProps:d,handleClose:k,hasCloser:!0,headingId:n,label:u,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&&P(c)):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(c),i.destroy()}}})(t,u),f=A("alert-heading"),k=z();let j,C=[],S=[],O=null;const F=()=>{var t;return null!==(t=S[S.length-1])&&void 0!==t?t:[]},L=t=>{S=S.map(((e,o,l)=>o===l.length-1?t:e)),u()},I=(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)},D=t=>{if(t.preventDefault(),!F().some((t=>!1!==t.visible)))return O=n,void u();if(a){O=null,C=S.map((t=>t.map((t=>Object.assign({},t))))),u();const t=S.map((t=>t.map((t=>{const e=t,{hidable:o,resizable:l,sortable:i,visible:s,width:n}=e,a=T(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}))));E(a,M.changeHeaderCells,t),v.close()}},R=t=>{t&&(a=t)};return{beginRender:()=>{p.beginRender(),b=h,h=!1},render:t=>{var e;b||t===j||(j=t,C=(e=t).map((t=>[...t])),S=e.map((t=>t.map((t=>Object.assign({},t))))));const n=F();return s("div",{class:Yt,ref:R},s("div",{class:"kol-table-settings"},s($,Object.assign({},p.get("toggle").getFcProps({_icons:"kolicon-settings",_label:o,_hideLabel:!0,_on:{onClick:()=>v.show(!0)}})))),s(Xt,Object.assign({},v.getFcProps({label:o,variant:"card",width:"fit-content"})),s("div",{class:"kol-table-settings__content"},O&&s("div",{class:"kol-table-settings__error-message"},s(B,{alert:!1,closerAriaDescriptionId:k,handleCloserClick:te,hasCloser:!1,headingId:f,label:O,level:0,refCloserButton:te,refCloserTooltip:te,type:"error",variant:"msg"})),s("form",{onSubmit:D},s("div",{class:"kol-table-settings__columns"},n.map(((t,e)=>((t,e,o)=>s("div",{key:t.key,class:"kol-table-settings__column"},s(w,{_checked:!1!==t.visible,_label:x(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)}}}),s("span",{class:"kol-table-settings__column-label"},t.label),s(_,{_hideLabel:!0,_value:Zt(t.width),_label:x("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=Zt(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)}}}),s($,Object.assign({},p.get(`move-up-${t.key}`).getFcProps({_icons:"kolicon-chevron-up",_label:x(!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 I(null!==(e=t.key)&&void 0!==e?e:"","up")}},_disabled:!1===t.sortable||0===e}))),s($,Object.assign({},p.get(`move-down-${t.key}`).getFcProps({_icons:"kolicon-chevron-down",_label:x(!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 I(null!==(e=t.key)&&void 0!==e?e:"","down")}},_disabled:!1===t.sortable||e===o.length-1})))))(t,e,n)))),s("div",{class:"kol-table-settings__actions"},s($,Object.assign({},p.get("cancel").getFcProps({_label:l,_variant:"secondary",_on:{onClick:()=>(S=C.map((t=>[...t])),O=null,u(),void v.close())}}))),s($,Object.assign({},p.get("apply").getFcProps({_label:i,_variant:"primary",_type:"submit"}))))))))},sync:()=>{p.endRender(),v.syncListeners()},destroy:()=>{p.destroy(),v.destroy()}}},oe=class extends r{constructor(){super(...arguments),this.hasExternalTableLabelRefs=!1,this.cellRenderTimeouts=new Map,this.buttonItems=d((()=>c((()=>this.host))),(t=>t.syncListeners()),(t=>t.destroy())),this.settings=ee((()=>this.host),(()=>a(this))),this.linkItems=d((()=>h((()=>a(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){g.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){k.apply(t,(t=>this.setRenderProp("variant",t)))}syncTableLabel(t){this.tableElement&&"ariaLabelledByElements"in this.tableElement&&((null==t?void 0:t.length)?(this.tableElement.ariaLabelledByElements=t,this.hasExternalTableLabelRefs=!0,o.debug([this.tableElement,t,this.tableElement.ariaLabelledByElements])):this.hasExternalTableLabelRefs&&(this.hasExternalTableLabelRefs=!1,this.tableElement.ariaLabelledByElements=null,this.tableElement.setAttribute("aria-labelledby",Pt)))}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")[X.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=ut(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")[X.onSelectionChange];"function"==typeof o&&o(t,e),this.host&&E(this.host,M.selectionChange,e)}emitSort(t,e){const o=this.getRenderProp("on")[X.onSort];"function"==typeof o&&e.key&&o(t,e),this.host&&E(this.host,M.sort,e)}renderTableStatelessFC(){return this.buttonItems.beginRender(),this.linkItems.beginRender(),this.settings.beginRender(),s(Qt,{data:this.getRenderProp("data"),dataFoot:this.getRenderProp("dataFoot"),externalLabelElements:this.getState("externalLabelElements"),fixedCols:this.getRenderProp("fixedCols"),getButtonFcProps:this.getButtonFcProps,getLinkFcProps:this.getLinkFcProps,renderSettings:this.renderSettings,handleRenderCell:this.handleRenderCell,handleSelectionChange:this.handleSelectionChange,handleSort:this.handleSort,hasScrollbar:this.getState("hasScrollbar"),hasSettingsMenu:this.getRenderProp("hasSettingsMenu"),headers:this.getRenderProp("headers"),label:this.getRenderProp("label"),loading:this.getRenderProp("loading"),on:this.getRenderProp("on"),refScrollContainer:this.refScrollContainer,refTable:this.refTable,rowKeys:this.getState("rowKeys"),selection:this.getRenderProp("selection"),settingsChangedCounter:this.getState("settingsChangedCounter"),stickyColsDisabled:this.getState("stickyColsDisabled"),variant:this.getRenderProp("variant")})}};export{oe as B,nt as a,st as t,Y as v}