@public-ui/components 4.6.0-rc.3 → 4.7.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (676) hide show
  1. package/assets/kolicons/kolicons.eot +0 -0
  2. package/assets/kolicons/kolicons.ttf +0 -0
  3. package/assets/kolicons/kolicons.woff +0 -0
  4. package/assets/kolicons/kolicons.woff2 +0 -0
  5. package/assets/kolicons/style.css +6 -6
  6. package/custom-elements.json +2 -2
  7. package/dist/cjs/{Heading-DqZXie2T.js → Heading-BiIgkzH8.js} +7 -7
  8. package/dist/cjs/{api-Cc1hT-oO.js → api-CYf8xdSs.js} +24 -26
  9. package/dist/cjs/{app-globals-DtXiFJRj.js → app-globals-BYAPmvIk.js} +2 -2
  10. package/dist/cjs/{base-CoMrpiHg.js → base--a0QJmk3.js} +10 -10
  11. package/dist/cjs/{base-BjiXfuju.js → base-BmhaEyug.js} +10 -10
  12. package/dist/cjs/{base-B-wbGF-X.js → base-BpyecmRJ.js} +47 -40
  13. package/dist/cjs/{base-BKsPSdXS.js → base-CUUvWtsB.js} +10 -10
  14. package/dist/cjs/{base-web-component-DXCN-Sp3.js → base-web-component-BompEaD1.js} +1 -1
  15. package/dist/cjs/{base-web-component-DApRK7Vs.js → base-web-component-CWIPg0xv.js} +14 -15
  16. package/dist/cjs/{base-web-component-BXtl3Nmq.js → base-web-component-ZnP9FmYh.js} +12 -14
  17. package/dist/cjs/{behavior-DIv2ciyM.js → behavior-CFLTEANn.js} +4 -4
  18. package/dist/cjs/{behavior-DtHCmCCv.js → behavior-DSFpiPZZ.js} +4 -4
  19. package/dist/cjs/{behavior-GG5TOrTV.js → behavior-O4U6x6z7.js} +4 -4
  20. package/dist/cjs/{bem-registry-h_moyLBn.js → bem-registry-CtnO3zCW.js} +22 -0
  21. package/dist/cjs/{bootstrap-HU5YhM_w.js → bootstrap-DOzWgRGX.js} +1 -1
  22. package/dist/cjs/{color-C3xsA3Uk.js → color-BAx-7-VH.js} +2 -2
  23. package/dist/cjs/{component-DlyhBQIa.js → component-7ByD-KGA.js} +4 -4
  24. package/dist/cjs/component-B2tj_1JK.js +19 -0
  25. package/dist/cjs/{component-CsnTf_45.js → component-BOtCtyyw.js} +8 -10
  26. package/dist/cjs/{component-BOI4FdZE.js → component-BhAlZY9F.js} +6 -7
  27. package/dist/cjs/{component-CNNGo5gU.js → component-BsX1-89D.js} +10 -12
  28. package/dist/cjs/{component-D0uxhuF3.js → component-C4QeEJ1-.js} +6 -5
  29. package/dist/cjs/{component-Cnc2NyzE.js → component-DUJYVdRR.js} +4 -4
  30. package/dist/cjs/{component-CxwSVBBv.js → component-DWb8RKVo.js} +11 -12
  31. package/dist/cjs/component-Dd3qxReW.js +178 -0
  32. package/dist/cjs/{component-BE_fK-Xu.js → component-STJidyBV.js} +14 -16
  33. package/dist/cjs/component-TQvy83J2.js +53 -0
  34. package/dist/cjs/{contrast-6Nku3lih.js → contrast-DOAdZqCp.js} +1 -1
  35. package/dist/cjs/{dev.utils-DTQy7QrG.js → dev.utils-DlmiDtkx.js} +1 -1
  36. package/dist/cjs/{devtools-BAChPN0l.js → devtools-C41YtdU_.js} +2 -2
  37. package/dist/cjs/{disabled-CilmJ-p-.js → disabled-BdFhTB-H.js} +1 -1
  38. package/dist/cjs/{field-control-Bxj6Xuu8.js → field-control-S9RwdD26.js} +12 -12
  39. package/dist/cjs/{group-BUdQbdkp.js → group-C00FoXnX.js} +7 -8
  40. package/dist/cjs/{has-closer-iSIrv52u.js → has-closer--ijHuPZy.js} +1 -1
  41. package/dist/cjs/{href-xojo1zy_.js → href-BD4uBwDL.js} +1 -1
  42. package/dist/cjs/{i18n-D7UmRsV8.js → i18n-4lKONPdP.js} +1 -1
  43. package/dist/cjs/{i18n-DgHI4-xa.js → i18n-CuXZ7SEi.js} +2 -1
  44. package/dist/cjs/{id-DP-w6i4q.js → id-BM9KgE0w.js} +1 -1
  45. package/dist/cjs/{index-BaB_2Z5W.js → index-DRjg_lHL.js} +1 -1
  46. package/dist/cjs/index.cjs.js +3 -3
  47. package/dist/cjs/input-0s6YjmaC.js +19 -0
  48. package/dist/cjs/{input-container-BcwbGU2R.js → input-container-DYp04csT.js} +8 -10
  49. package/dist/cjs/{item-BXt0-A5j.js → item-BKyAM3Uo.js} +20 -21
  50. package/dist/cjs/{item-DJ-XUS77.js → item-CRgD35fr.js} +4 -4
  51. package/dist/cjs/{item-BLrLbhAD.js → item-DWAwMGWB.js} +11 -11
  52. package/dist/cjs/{item-BYKMN41a.js → item-xUIdEroQ.js} +4 -4
  53. package/dist/cjs/kol-abbr.cjs.entry.js +8 -12
  54. package/dist/cjs/kol-accordion.cjs.entry.js +15 -17
  55. package/dist/cjs/kol-alert.cjs.entry.js +27 -30
  56. package/dist/cjs/kol-avatar.cjs.entry.js +14 -15
  57. package/dist/cjs/kol-badge.cjs.entry.js +23 -26
  58. package/dist/cjs/kol-breadcrumb.cjs.entry.js +26 -30
  59. package/dist/cjs/kol-button-link.cjs.entry.js +22 -25
  60. package/dist/cjs/kol-button.cjs.entry.js +22 -25
  61. package/dist/cjs/kol-card.cjs.entry.js +27 -30
  62. package/dist/cjs/kol-combobox.cjs.entry.js +37 -40
  63. package/dist/cjs/kol-details.cjs.entry.js +15 -17
  64. package/dist/cjs/kol-dialog.cjs.entry.js +30 -33
  65. package/dist/cjs/kol-drawer.cjs.entry.js +30 -33
  66. package/dist/cjs/kol-form.cjs.entry.js +24 -27
  67. package/dist/cjs/kol-heading.cjs.entry.js +13 -15
  68. package/dist/cjs/kol-icon.cjs.entry.js +8 -9
  69. package/dist/cjs/kol-image.cjs.entry.js +7 -9
  70. package/dist/cjs/kol-input-checkbox.cjs.entry.js +38 -41
  71. package/dist/cjs/kol-input-color.cjs.entry.js +35 -38
  72. package/dist/cjs/kol-input-date.cjs.entry.js +41 -45
  73. package/dist/cjs/kol-input-email.cjs.entry.js +42 -45
  74. package/dist/cjs/kol-input-file.cjs.entry.js +36 -39
  75. package/dist/cjs/kol-input-number.cjs.entry.js +40 -43
  76. package/dist/cjs/kol-input-password.cjs.entry.js +41 -44
  77. package/dist/cjs/kol-input-radio.cjs.entry.js +37 -40
  78. package/dist/cjs/kol-input-range.cjs.entry.js +35 -38
  79. package/dist/cjs/kol-input-text.cjs.entry.js +43 -46
  80. package/dist/cjs/kol-kolibri.cjs.entry.js +8 -12
  81. package/dist/cjs/kol-link-button.cjs.entry.js +23 -26
  82. package/dist/cjs/kol-link.cjs.entry.js +23 -26
  83. package/dist/cjs/kol-meter.cjs.entry.js +14 -15
  84. package/dist/cjs/kol-modal.cjs.entry.js +30 -33
  85. package/dist/cjs/kol-nav.cjs.entry.js +35 -38
  86. package/dist/cjs/kol-pagination.cjs.entry.js +41 -44
  87. package/dist/cjs/kol-popover-button.cjs.entry.js +23 -26
  88. package/dist/cjs/kol-progress.cjs.entry.js +13 -14
  89. package/dist/cjs/kol-quote.cjs.entry.js +9 -10
  90. package/dist/cjs/kol-select.cjs.entry.js +34 -37
  91. package/dist/cjs/kol-single-select.cjs.entry.js +37 -40
  92. package/dist/cjs/kol-skip-nav.cjs.entry.js +26 -30
  93. package/dist/cjs/kol-spin.cjs.entry.js +11 -15
  94. package/dist/cjs/kol-split-button.cjs.entry.js +28 -31
  95. package/dist/cjs/kol-table-stateful.cjs.entry.js +53 -54
  96. package/dist/cjs/kol-table-stateless.cjs.entry.js +37 -40
  97. package/dist/cjs/kol-tabs.cjs.entry.js +23 -26
  98. package/dist/cjs/kol-textarea.cjs.entry.js +39 -42
  99. package/dist/cjs/kol-toast-container.cjs.entry.js +20 -23
  100. package/dist/cjs/kol-toolbar.cjs.entry.js +29 -32
  101. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +11 -12
  102. package/dist/cjs/kol-tree-item.cjs.entry.js +22 -26
  103. package/dist/cjs/kol-tree.cjs.entry.js +9 -10
  104. package/dist/cjs/kol-version.cjs.entry.js +21 -24
  105. package/dist/cjs/kolibri.cjs.js +3 -3
  106. package/dist/cjs/{label-D6c6jfqK.js → label-BA98eiFj.js} +3 -3
  107. package/dist/cjs/{label-hints-q3XenWLW.js → label-hints-BE4LQ_Av.js} +1 -1
  108. package/dist/cjs/{label-lang-segment-k4OY9qRY.js → label-lang-segment-C5U5gEca.js} +2 -2
  109. package/dist/cjs/{label-with-expert-slot-CJoz7BLw.js → label-with-expert-slot-x1D8V34g.js} +3 -3
  110. package/dist/cjs/{level-B6vFMm9s.js → level-CX2p0n7U.js} +1 -1
  111. package/dist/cjs/{link-target-0qSVsAb2.js → link-target-B1N4Je6O.js} +1 -1
  112. package/dist/cjs/{links-Ur1e9DOK.js → links-SN0jipdB.js} +1 -1
  113. package/dist/cjs/loader.cjs.js +3 -3
  114. package/dist/cjs/{multiple-CCxtzqez.js → multiple-Dl_RoQ-P.js} +1 -1
  115. package/dist/cjs/{number-value-DzAHCwlP.js → number-value-DO-0brWb.js} +1 -1
  116. package/dist/cjs/{open-Gxr_K7HK.js → open-BQ2n_Z5t.js} +1 -1
  117. package/dist/cjs/{options-BT0m0gRT.js → options-B49Y2jkm.js} +1 -1
  118. package/dist/cjs/{orientation-CeHU4dT8.js → orientation-DKdQrdXN.js} +1 -1
  119. package/dist/cjs/{placeholder-22xUUFff.js → placeholder-E5zS-kqO.js} +1 -1
  120. package/dist/cjs/{props-from-config-D1qhXS9j.js → props-from-config-8bawgofo.js} +86 -5
  121. package/dist/cjs/{read-only-iHApMQEg.js → read-only-YsES5bfT.js} +1 -1
  122. package/dist/cjs/{required-BYdSI25I.js → required-BvWmptNq.js} +1 -1
  123. package/dist/cjs/{resolve-props-c-uwDulF.js → resolve-props-CHqmeYxD.js} +6 -6
  124. package/dist/cjs/{resolve-props-B7klWjLx.js → resolve-props-DUeggpV2.js} +7 -7
  125. package/dist/cjs/{rows-C9vBSQK1.js → rows-BBmwZt2C.js} +1 -1
  126. package/dist/cjs/{scroll-lock-daUQqmx_.js → scroll-lock-3znuNdTX.js} +8 -7
  127. package/dist/cjs/{smart-button-DRMmUyQ5.js → smart-button-B3OCsLLZ.js} +1 -1
  128. package/dist/cjs/{spell-check-CxgvHcGA.js → spell-check-DuFxddUB.js} +1 -1
  129. package/dist/cjs/{src-Bmd7gQCS.js → src-Cl2qHbxL.js} +1 -1
  130. package/dist/cjs/{step-CCqgsPCX.js → step-Bf3TCVBv.js} +1 -1
  131. package/dist/cjs/{suggestions-CoUp7HmN.js → suggestions-BjKRoku9.js} +1 -1
  132. package/dist/cjs/{suggestions-D3snLGL_.js → suggestions-C4B_eROV.js} +3 -3
  133. package/dist/cjs/test-component.cjs.entry.js +1 -1
  134. package/dist/cjs/{toggle-handler-B0xib7fH.js → toggle-handler-DEpykyv_.js} +11 -13
  135. package/dist/cjs/{unique-nav-labels-CgxOyb6V.js → unique-nav-labels-CNpNvloU.js} +1 -1
  136. package/dist/cjs/{unit-_oDj-vIB.js → unit-gLQjiSkI.js} +1 -1
  137. package/dist/cjs/{validators-CpCJvM4r.js → validators-DNveqLx4.js} +1 -1
  138. package/dist/cjs/{value-string-CKppMGVM.js → value-string-JMz269Bn.js} +1 -1
  139. package/dist/cjs/{width-e7f3wHF3.js → width-_6rleKWl.js} +1 -1
  140. package/dist/collection/components/abbr/style.css +21 -0
  141. package/dist/collection/components/accordion/style.css +23 -2
  142. package/dist/collection/components/alert/component.js +6 -5
  143. package/dist/collection/components/alert/style.css +23 -2
  144. package/dist/collection/components/avatar/style.css +21 -0
  145. package/dist/collection/components/badge/style.css +23 -2
  146. package/dist/collection/components/breadcrumb/style.css +23 -2
  147. package/dist/collection/components/button/style.css +23 -2
  148. package/dist/collection/components/button-link/style.css +23 -2
  149. package/dist/collection/components/card/style.css +23 -2
  150. package/dist/collection/components/combobox/style.css +23 -2
  151. package/dist/collection/components/details/style.css +23 -2
  152. package/dist/collection/components/dialog/base.js +2 -2
  153. package/dist/collection/components/dialog/style.css +23 -2
  154. package/dist/collection/components/drawer/style.css +23 -2
  155. package/dist/collection/components/form/style.css +23 -2
  156. package/dist/collection/components/heading/style.css +21 -0
  157. package/dist/collection/components/icon/style.css +2 -2
  158. package/dist/collection/components/image/style.css +21 -0
  159. package/dist/collection/components/input-checkbox/style.css +23 -2
  160. package/dist/collection/components/input-color/style.css +23 -2
  161. package/dist/collection/components/input-date/component.js +6 -6
  162. package/dist/collection/components/input-date/style.css +23 -2
  163. package/dist/collection/components/input-email/style.css +23 -2
  164. package/dist/collection/components/input-file/component.js +1 -1
  165. package/dist/collection/components/input-file/style.css +23 -2
  166. package/dist/collection/components/input-number/style.css +23 -2
  167. package/dist/collection/components/input-password/style.css +23 -2
  168. package/dist/collection/components/input-radio/style.css +23 -2
  169. package/dist/collection/components/input-range/style.css +23 -2
  170. package/dist/collection/components/input-text/style.css +23 -2
  171. package/dist/collection/components/kolibri/style.css +21 -0
  172. package/dist/collection/components/link/style.css +23 -2
  173. package/dist/collection/components/link-button/style.css +23 -2
  174. package/dist/collection/components/meter/style.css +21 -0
  175. package/dist/collection/components/modal/style.css +23 -2
  176. package/dist/collection/components/nav/style.css +23 -2
  177. package/dist/collection/components/pagination/component.js +5 -5
  178. package/dist/collection/components/pagination/style.css +23 -2
  179. package/dist/collection/components/popover-button/style.css +23 -2
  180. package/dist/collection/components/progress/style.css +21 -0
  181. package/dist/collection/components/quote/style.css +21 -0
  182. package/dist/collection/components/select/style.css +23 -2
  183. package/dist/collection/components/single-select/style.css +23 -2
  184. package/dist/collection/components/skip-nav/style.css +23 -2
  185. package/dist/collection/components/spin/style.css +21 -0
  186. package/dist/collection/components/split-button/style.css +23 -2
  187. package/dist/collection/components/table-stateful/component.js +5 -2
  188. package/dist/collection/components/table-stateful/style.css +23 -2
  189. package/dist/collection/components/table-stateless/style.css +23 -2
  190. package/dist/collection/components/tabs/style.css +23 -2
  191. package/dist/collection/components/textarea/style.css +23 -2
  192. package/dist/collection/components/toaster/style.css +23 -2
  193. package/dist/collection/components/toolbar/style.css +23 -2
  194. package/dist/collection/components/tree/style.css +21 -0
  195. package/dist/collection/components/tree-item/style.css +23 -2
  196. package/dist/collection/components/version/style.css +23 -2
  197. package/dist/collection/core/i18n.js +2 -1
  198. package/dist/collection/internal/functional-components/alert/component.js +2 -1
  199. package/dist/collection/internal/functional-components/avatar/component.js +2 -2
  200. package/dist/collection/internal/functional-components/badge/component.js +2 -1
  201. package/dist/collection/internal/functional-components/bem-root-node/component.js +16 -6
  202. package/dist/collection/internal/functional-components/breadcrumb/component.js +2 -2
  203. package/dist/collection/internal/functional-components/card/component.js +3 -1
  204. package/dist/collection/internal/functional-components/collapsible/component.js +3 -2
  205. package/dist/collection/internal/functional-components/dialog/component.js +6 -3
  206. package/dist/collection/internal/functional-components/dialog/item.js +2 -2
  207. package/dist/collection/internal/functional-components/drawer/component.js +1 -1
  208. package/dist/collection/internal/functional-components/heading/component.js +3 -4
  209. package/dist/collection/internal/functional-components/icon/component.js +2 -2
  210. package/dist/collection/internal/functional-components/image/component.js +2 -4
  211. package/dist/collection/internal/functional-components/link/component.js +1 -1
  212. package/dist/collection/internal/functional-components/meter/component.js +2 -1
  213. package/dist/collection/internal/functional-components/pagination/item.js +6 -6
  214. package/dist/collection/internal/functional-components/progress/component.js +2 -1
  215. package/dist/collection/internal/functional-components/quote/component.js +2 -2
  216. package/dist/collection/internal/functional-components/skip-nav/component.js +2 -2
  217. package/dist/collection/internal/functional-components/span/component.js +3 -2
  218. package/dist/collection/internal/functional-components/table-stateless/settings.js +12 -4
  219. package/dist/collection/internal/functional-components/tree/component.js +2 -2
  220. package/dist/collection/internal/functional-components/tree-item/component.js +2 -2
  221. package/dist/collection/schema/bem-registry.js +22 -0
  222. package/dist/collection/utils/markdown.js +49 -3
  223. package/dist/components/Heading.js +1 -1
  224. package/dist/components/base-web-component2.js +1 -1
  225. package/dist/components/base-web-component3.js +1 -1
  226. package/dist/components/base-web-component4.js +1 -1
  227. package/dist/components/base.js +1 -1
  228. package/dist/components/base2.js +1 -1
  229. package/dist/components/base3.js +1 -1
  230. package/dist/components/base4.js +1 -1
  231. package/dist/components/behavior.js +1 -1
  232. package/dist/components/behavior2.js +1 -1
  233. package/dist/components/behavior3.js +1 -1
  234. package/dist/components/behavior4.js +1 -1
  235. package/dist/components/bem-registry.js +1 -1
  236. package/dist/components/component.js +1 -1
  237. package/dist/components/component10.js +1 -1
  238. package/dist/components/component2.js +1 -1
  239. package/dist/components/component3.js +1 -1
  240. package/dist/components/component4.js +1 -1
  241. package/dist/components/component5.js +1 -1
  242. package/dist/components/component6.js +1 -1
  243. package/dist/components/component7.js +1 -1
  244. package/dist/components/component8.js +1 -1
  245. package/dist/components/component9.js +1 -1
  246. package/dist/components/contrast.js +1 -1
  247. package/dist/components/controller.js +1 -1
  248. package/dist/components/devtools.js +1 -1
  249. package/dist/components/field-control.js +1 -1
  250. package/dist/components/group.js +1 -1
  251. package/dist/components/i18n2.js +1 -1
  252. package/dist/components/input-container.js +1 -1
  253. package/dist/components/input.js +1 -1
  254. package/dist/components/item2.js +1 -1
  255. package/dist/components/item4.js +1 -1
  256. package/dist/components/kol-abbr.js +1 -1
  257. package/dist/components/kol-accordion.js +1 -1
  258. package/dist/components/kol-alert.js +1 -1
  259. package/dist/components/kol-avatar.js +1 -1
  260. package/dist/components/kol-badge.js +1 -1
  261. package/dist/components/kol-breadcrumb.js +1 -1
  262. package/dist/components/kol-button-link.js +1 -1
  263. package/dist/components/kol-button.js +1 -1
  264. package/dist/components/kol-card.js +1 -1
  265. package/dist/components/kol-combobox.js +1 -1
  266. package/dist/components/kol-details.js +1 -1
  267. package/dist/components/kol-dialog.js +1 -1
  268. package/dist/components/kol-drawer.js +1 -1
  269. package/dist/components/kol-form.js +1 -1
  270. package/dist/components/kol-heading.js +1 -1
  271. package/dist/components/kol-icon.js +1 -1
  272. package/dist/components/kol-image.js +1 -1
  273. package/dist/components/kol-input-checkbox.js +1 -1
  274. package/dist/components/kol-input-color.js +1 -1
  275. package/dist/components/kol-input-date.js +1 -1
  276. package/dist/components/kol-input-email.js +1 -1
  277. package/dist/components/kol-input-file.js +1 -1
  278. package/dist/components/kol-input-number.js +1 -1
  279. package/dist/components/kol-input-password.js +1 -1
  280. package/dist/components/kol-input-radio.js +1 -1
  281. package/dist/components/kol-input-range.js +1 -1
  282. package/dist/components/kol-input-text.js +1 -1
  283. package/dist/components/kol-kolibri.js +1 -1
  284. package/dist/components/kol-link-button.js +1 -1
  285. package/dist/components/kol-link.js +1 -1
  286. package/dist/components/kol-meter.js +1 -1
  287. package/dist/components/kol-modal.js +1 -1
  288. package/dist/components/kol-nav.js +1 -1
  289. package/dist/components/kol-pagination.js +1 -1
  290. package/dist/components/kol-popover-button.js +1 -1
  291. package/dist/components/kol-progress.js +1 -1
  292. package/dist/components/kol-quote.js +1 -1
  293. package/dist/components/kol-select.js +1 -1
  294. package/dist/components/kol-single-select.js +1 -1
  295. package/dist/components/kol-skip-nav.js +1 -1
  296. package/dist/components/kol-spin.js +1 -1
  297. package/dist/components/kol-split-button.js +1 -1
  298. package/dist/components/kol-table-stateful.js +1 -1
  299. package/dist/components/kol-table-stateless.js +1 -1
  300. package/dist/components/kol-tabs.js +1 -1
  301. package/dist/components/kol-textarea.js +1 -1
  302. package/dist/components/kol-toast-container.js +1 -1
  303. package/dist/components/kol-toolbar.js +1 -1
  304. package/dist/components/kol-tooltip-wc.js +1 -1
  305. package/dist/components/kol-tree-item.js +1 -1
  306. package/dist/components/kol-tree.js +1 -1
  307. package/dist/components/kol-version.js +1 -1
  308. package/dist/components/label-hints.js +1 -1
  309. package/dist/components/label-lang-segment.js +1 -1
  310. package/dist/components/label-with-expert-slot.js +1 -1
  311. package/dist/components/level.js +1 -1
  312. package/dist/components/links.js +1 -1
  313. package/dist/components/number-value.js +1 -1
  314. package/dist/components/props-from-config.js +1 -1
  315. package/dist/components/resolve-props.js +1 -1
  316. package/dist/components/resolve-props2.js +1 -1
  317. package/dist/components/rows.js +1 -1
  318. package/dist/components/scroll-lock.js +1 -1
  319. package/dist/components/step.js +1 -1
  320. package/dist/components/toggle-handler.js +1 -1
  321. package/dist/components/unit.js +1 -1
  322. package/dist/components/validators.js +1 -1
  323. package/dist/esm/{Heading-GZb1f2pZ.js → Heading-DDS-lyOB.js} +2 -2
  324. package/dist/esm/{api-CBPlj155.js → api-MBSY9afi.js} +18 -20
  325. package/dist/esm/{app-globals-DRl9A82c.js → app-globals-DytcyM_s.js} +2 -2
  326. package/dist/esm/{base-BByRnpRm.js → base-D-me6QDT.js} +10 -10
  327. package/dist/esm/{base-C7BBsrYZ.js → base-D7-iAVBu.js} +35 -28
  328. package/dist/esm/{base-DO0KvOv9.js → base-DP9yHJOV.js} +10 -10
  329. package/dist/esm/{base-Dtxcvto_.js → base-DZBnXHZh.js} +10 -10
  330. package/dist/esm/{base-web-component-BxXLva5d.js → base-web-component-BLA2cpyz.js} +8 -10
  331. package/dist/esm/{base-web-component-CC_gpyDb.js → base-web-component-Bh2NCN7p.js} +1 -1
  332. package/dist/esm/{base-web-component-CfPyCJDJ.js → base-web-component-DwY54ppZ.js} +13 -14
  333. package/dist/esm/{behavior-CsNDRS2z.js → behavior-Cw8QfOcm.js} +4 -4
  334. package/dist/esm/{behavior-ewHvUWVk.js → behavior-DUy0X7U1.js} +4 -4
  335. package/dist/esm/{behavior-CKU2tmCj.js → behavior-DmR4WVXd.js} +4 -4
  336. package/dist/esm/{bem-registry-D1KgKnyz.js → bem-registry-SKACeCny.js} +22 -0
  337. package/dist/esm/{bootstrap-tgQ2nQQI.js → bootstrap-Bp7i4RJQ.js} +1 -1
  338. package/dist/esm/{color-D1gM-F2l.js → color-CnRQPMm_.js} +2 -2
  339. package/dist/esm/{component-By8ggItU.js → component-B4CDonzN.js} +6 -8
  340. package/dist/esm/{component-B3OziaRC.js → component-BC1TpQVD.js} +9 -11
  341. package/dist/esm/component-BUzgs8fh.js +48 -0
  342. package/dist/esm/{component-D4-NVnsT.js → component-Bldy_ShO.js} +4 -4
  343. package/dist/esm/component-Cj3P_f35.js +173 -0
  344. package/dist/esm/{component-D6_K50vT.js → component-D5yKRPCZ.js} +4 -4
  345. package/dist/esm/{component-D6lo0LzE.js → component-DisuGN16.js} +5 -6
  346. package/dist/esm/{component-6l69Jvwl.js → component-DxnezN7K.js} +6 -5
  347. package/dist/esm/component-LadkF9an.js +17 -0
  348. package/dist/esm/{component-CF8uFG0A.js → component-ZJiUl6kZ.js} +13 -15
  349. package/dist/esm/{component-Cmi6iGfA.js → component-vxdandl4.js} +10 -11
  350. package/dist/esm/{contrast-BNoQruBh.js → contrast-pfwNxK_L.js} +1 -1
  351. package/dist/esm/{dev.utils-BwYCy1rP.js → dev.utils-DM7Qhcet.js} +1 -1
  352. package/dist/esm/{devtools-CGP3Nzsw.js → devtools-CxUqjh1N.js} +2 -2
  353. package/dist/esm/{disabled-BZXlWAgK.js → disabled-C2DzYwwy.js} +1 -1
  354. package/dist/esm/{field-control-0TRmF7Ea.js → field-control-CQJgDAKK.js} +7 -7
  355. package/dist/esm/{group-DapkT_Yh.js → group-DCoICCiG.js} +5 -6
  356. package/dist/esm/{has-closer-DUB0QcS9.js → has-closer-x20C4xl3.js} +1 -1
  357. package/dist/esm/{href-CxokGOJ2.js → href-vIF4eC7d.js} +1 -1
  358. package/dist/esm/{i18n-ePBcLlCr.js → i18n-BLkzMf6D.js} +1 -1
  359. package/dist/esm/{i18n-4J6U3ZDc.js → i18n-BRgvVqCf.js} +2 -1
  360. package/dist/esm/{id-BI0ZuK17.js → id-lCAtMmMx.js} +1 -1
  361. package/dist/esm/{index-DEcM8BEc.js → index-8-BSSKQL.js} +1 -1
  362. package/dist/esm/index.js +4 -4
  363. package/dist/esm/{input-CDUCo1S5.js → input-C4yo-d7N.js} +4 -5
  364. package/dist/esm/{input-container-BipAkWn4.js → input-container-Cb2xJUCl.js} +6 -8
  365. package/dist/esm/{item-UgJ2uikD.js → item-BANfM_Mo.js} +17 -18
  366. package/dist/esm/{item-BvnZc8uV.js → item-C2HHBTvm.js} +4 -4
  367. package/dist/esm/{item-B0oQTeju.js → item-H09kNXn9.js} +4 -4
  368. package/dist/esm/{item-Boe3t0Dm.js → item-gvmzMXYb.js} +11 -11
  369. package/dist/esm/kol-abbr.entry.js +7 -11
  370. package/dist/esm/kol-accordion.entry.js +15 -17
  371. package/dist/esm/kol-alert.entry.js +27 -30
  372. package/dist/esm/kol-avatar.entry.js +14 -15
  373. package/dist/esm/kol-badge.entry.js +23 -26
  374. package/dist/esm/kol-breadcrumb.entry.js +26 -30
  375. package/dist/esm/kol-button-link.entry.js +22 -25
  376. package/dist/esm/kol-button.entry.js +22 -25
  377. package/dist/esm/kol-card.entry.js +27 -30
  378. package/dist/esm/kol-combobox.entry.js +36 -39
  379. package/dist/esm/kol-details.entry.js +15 -17
  380. package/dist/esm/kol-dialog.entry.js +30 -33
  381. package/dist/esm/kol-drawer.entry.js +30 -33
  382. package/dist/esm/kol-form.entry.js +23 -26
  383. package/dist/esm/kol-heading.entry.js +13 -15
  384. package/dist/esm/kol-icon.entry.js +8 -9
  385. package/dist/esm/kol-image.entry.js +7 -9
  386. package/dist/esm/kol-input-checkbox.entry.js +32 -35
  387. package/dist/esm/kol-input-color.entry.js +35 -38
  388. package/dist/esm/kol-input-date.entry.js +40 -44
  389. package/dist/esm/kol-input-email.entry.js +41 -44
  390. package/dist/esm/kol-input-file.entry.js +35 -38
  391. package/dist/esm/kol-input-number.entry.js +39 -42
  392. package/dist/esm/kol-input-password.entry.js +39 -42
  393. package/dist/esm/kol-input-radio.entry.js +34 -37
  394. package/dist/esm/kol-input-range.entry.js +35 -38
  395. package/dist/esm/kol-input-text.entry.js +41 -44
  396. package/dist/esm/kol-kolibri.entry.js +7 -11
  397. package/dist/esm/kol-link-button.entry.js +23 -26
  398. package/dist/esm/kol-link.entry.js +23 -26
  399. package/dist/esm/kol-meter.entry.js +14 -15
  400. package/dist/esm/kol-modal.entry.js +30 -33
  401. package/dist/esm/kol-nav.entry.js +30 -33
  402. package/dist/esm/kol-pagination.entry.js +41 -44
  403. package/dist/esm/kol-popover-button.entry.js +23 -26
  404. package/dist/esm/kol-progress.entry.js +13 -14
  405. package/dist/esm/kol-quote.entry.js +9 -10
  406. package/dist/esm/kol-select.entry.js +34 -37
  407. package/dist/esm/kol-single-select.entry.js +36 -39
  408. package/dist/esm/kol-skip-nav.entry.js +26 -30
  409. package/dist/esm/kol-spin.entry.js +11 -15
  410. package/dist/esm/kol-split-button.entry.js +26 -29
  411. package/dist/esm/kol-table-stateful.entry.js +53 -54
  412. package/dist/esm/kol-table-stateless.entry.js +37 -40
  413. package/dist/esm/kol-tabs.entry.js +22 -25
  414. package/dist/esm/kol-textarea.entry.js +37 -40
  415. package/dist/esm/kol-toast-container.entry.js +19 -22
  416. package/dist/esm/kol-toolbar.entry.js +27 -30
  417. package/dist/esm/kol-tooltip-wc.entry.js +11 -12
  418. package/dist/esm/kol-tree-item.entry.js +22 -26
  419. package/dist/esm/kol-tree.entry.js +9 -10
  420. package/dist/esm/kol-version.entry.js +20 -23
  421. package/dist/esm/kolibri.js +4 -4
  422. package/dist/esm/{label-hints-CLMiVvfk.js → label-hints-BUADjqKF.js} +1 -1
  423. package/dist/esm/{label-lang-segment-iVD9hoM3.js → label-lang-segment-B13iL7iy.js} +2 -2
  424. package/dist/esm/{label-B-Dr7VaP.js → label-mr5joqaQ.js} +3 -3
  425. package/dist/esm/label-with-expert-slot-BVqi0_Fb.js +12 -0
  426. package/dist/esm/{level-DsQ_pcyD.js → level-eGeMFn0b.js} +1 -1
  427. package/dist/esm/{link-target-D7lYILOV.js → link-target-DEH-wAmf.js} +1 -1
  428. package/dist/esm/{links-IkK4zoXw.js → links-Dy9WkOJ-.js} +1 -1
  429. package/dist/esm/loader.js +4 -4
  430. package/dist/esm/{multiple--ay1C1n3.js → multiple-F8uOX8RD.js} +1 -1
  431. package/dist/esm/{number-value-Dl9-2O4r.js → number-value-DncK2_pC.js} +1 -1
  432. package/dist/esm/{open-CNHJhHsy.js → open-DoPXNruj.js} +1 -1
  433. package/dist/esm/{options-DwO32GBF.js → options-DcIQ-KB2.js} +1 -1
  434. package/dist/esm/{orientation-ChJ0S24M.js → orientation-tX0FldEu.js} +1 -1
  435. package/dist/esm/{placeholder-UxmBJ4Vl.js → placeholder-BPZ2sQEB.js} +1 -1
  436. package/dist/esm/{props-from-config-ytxYrJUY.js → props-from-config-LBgEHmcL.js} +84 -6
  437. package/dist/esm/{read-only-DytZ5HZJ.js → read-only-9BPUG7r4.js} +1 -1
  438. package/dist/esm/{required-BriHhuO4.js → required-DBJ4iW2e.js} +1 -1
  439. package/dist/esm/{resolve-props-DTXKtzir.js → resolve-props-0xfjG6h5.js} +6 -6
  440. package/dist/esm/{resolve-props-kM9N-fzf.js → resolve-props-BQa6SjZU.js} +7 -7
  441. package/dist/esm/{rows-I1jrTjzU.js → rows-DuYJeJT7.js} +1 -1
  442. package/dist/esm/{scroll-lock-Bv-U2FHM.js → scroll-lock-CIv7iOPB.js} +9 -7
  443. package/dist/esm/{smart-button-DM5g48-g.js → smart-button-p4avK7MS.js} +1 -1
  444. package/dist/esm/{spell-check-BWCnJG5v.js → spell-check-Bvc-Peew.js} +1 -1
  445. package/dist/esm/{src-ziOwSglN.js → src-CVwlo_cY.js} +1 -1
  446. package/dist/esm/{step-BcyhvRtu.js → step-oCposIuI.js} +1 -1
  447. package/dist/esm/{suggestions-LO267l8F.js → suggestions-BsWy2U2z.js} +1 -1
  448. package/dist/esm/{suggestions-D0u80DtA.js → suggestions-fWMdnACm.js} +3 -3
  449. package/dist/esm/test-component.entry.js +1 -1
  450. package/dist/esm/{toggle-handler-mPlmvrq7.js → toggle-handler-CtJ2Z7Us.js} +10 -12
  451. package/dist/esm/{unique-nav-labels-CxFUYSVY.js → unique-nav-labels-CZIyOzqJ.js} +1 -1
  452. package/dist/esm/{unit-1ix-K9SD.js → unit-YqluIXsF.js} +1 -1
  453. package/dist/esm/{validators-CTjxOidB.js → validators-ByUMEUYD.js} +1 -1
  454. package/dist/esm/{value-string-CxDz7dhD.js → value-string-Baqhc_TX.js} +1 -1
  455. package/dist/esm/{width-C1_yZHyL.js → width-BJNhiv_8.js} +1 -1
  456. package/dist/kolibri/Heading-DDS-lyOB.js +4 -0
  457. package/dist/kolibri/api-MBSY9afi.js +4 -0
  458. package/dist/kolibri/{app-globals-DRl9A82c.js → app-globals-DytcyM_s.js} +1 -1
  459. package/dist/kolibri/base-D-me6QDT.js +4 -0
  460. package/dist/kolibri/base-D7-iAVBu.js +4 -0
  461. package/dist/kolibri/base-DP9yHJOV.js +4 -0
  462. package/dist/kolibri/base-DZBnXHZh.js +4 -0
  463. package/dist/kolibri/base-web-component-BLA2cpyz.js +4 -0
  464. package/dist/kolibri/{base-web-component-CC_gpyDb.js → base-web-component-Bh2NCN7p.js} +1 -1
  465. package/dist/kolibri/base-web-component-DwY54ppZ.js +4 -0
  466. package/dist/kolibri/{behavior-CsNDRS2z.js → behavior-Cw8QfOcm.js} +1 -1
  467. package/dist/kolibri/{behavior-ewHvUWVk.js → behavior-DUy0X7U1.js} +1 -1
  468. package/dist/kolibri/{behavior-CKU2tmCj.js → behavior-DmR4WVXd.js} +1 -1
  469. package/dist/kolibri/bem-registry-SKACeCny.js +4 -0
  470. package/dist/kolibri/{bootstrap-tgQ2nQQI.js → bootstrap-Bp7i4RJQ.js} +1 -1
  471. package/dist/kolibri/{color-D1gM-F2l.js → color-CnRQPMm_.js} +1 -1
  472. package/dist/kolibri/{component-By8ggItU.js → component-B4CDonzN.js} +1 -1
  473. package/dist/kolibri/component-BC1TpQVD.js +4 -0
  474. package/dist/kolibri/component-BUzgs8fh.js +4 -0
  475. package/dist/kolibri/component-Bldy_ShO.js +4 -0
  476. package/dist/kolibri/component-Cj3P_f35.js +4 -0
  477. package/dist/kolibri/component-D5yKRPCZ.js +4 -0
  478. package/dist/kolibri/component-DisuGN16.js +4 -0
  479. package/dist/kolibri/component-DxnezN7K.js +4 -0
  480. package/dist/kolibri/component-LadkF9an.js +4 -0
  481. package/dist/kolibri/component-ZJiUl6kZ.js +4 -0
  482. package/dist/kolibri/component-vxdandl4.js +4 -0
  483. package/dist/kolibri/{contrast-BNoQruBh.js → contrast-pfwNxK_L.js} +1 -1
  484. package/dist/kolibri/{dev.utils-BwYCy1rP.js → dev.utils-DM7Qhcet.js} +1 -1
  485. package/dist/kolibri/{devtools-CGP3Nzsw.js → devtools-CxUqjh1N.js} +1 -1
  486. package/dist/kolibri/disabled-C2DzYwwy.js +4 -0
  487. package/dist/kolibri/field-control-CQJgDAKK.js +4 -0
  488. package/dist/kolibri/group-DCoICCiG.js +4 -0
  489. package/dist/kolibri/has-closer-x20C4xl3.js +4 -0
  490. package/dist/kolibri/href-vIF4eC7d.js +4 -0
  491. package/dist/kolibri/{i18n-ePBcLlCr.js → i18n-BLkzMf6D.js} +1 -1
  492. package/dist/kolibri/{i18n-4J6U3ZDc.js → i18n-BRgvVqCf.js} +1 -1
  493. package/dist/kolibri/id-lCAtMmMx.js +4 -0
  494. package/dist/kolibri/{index-DEcM8BEc.js → index-8-BSSKQL.js} +1 -1
  495. package/dist/kolibri/index.esm.js +1 -1
  496. package/dist/kolibri/input-C4yo-d7N.js +4 -0
  497. package/dist/kolibri/input-container-Cb2xJUCl.js +4 -0
  498. package/dist/kolibri/item-BANfM_Mo.js +4 -0
  499. package/dist/kolibri/item-C2HHBTvm.js +4 -0
  500. package/dist/kolibri/item-H09kNXn9.js +4 -0
  501. package/dist/kolibri/item-gvmzMXYb.js +4 -0
  502. package/dist/kolibri/kol-abbr.entry.js +1 -1
  503. package/dist/kolibri/kol-accordion.entry.js +1 -1
  504. package/dist/kolibri/kol-alert.entry.js +1 -1
  505. package/dist/kolibri/kol-avatar.entry.js +1 -1
  506. package/dist/kolibri/kol-badge.entry.js +1 -1
  507. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  508. package/dist/kolibri/kol-button-link.entry.js +1 -1
  509. package/dist/kolibri/kol-button.entry.js +1 -1
  510. package/dist/kolibri/kol-card.entry.js +1 -1
  511. package/dist/kolibri/kol-combobox.entry.js +1 -1
  512. package/dist/kolibri/kol-details.entry.js +1 -1
  513. package/dist/kolibri/kol-dialog.entry.js +1 -1
  514. package/dist/kolibri/kol-drawer.entry.js +1 -1
  515. package/dist/kolibri/kol-form.entry.js +1 -1
  516. package/dist/kolibri/kol-heading.entry.js +1 -1
  517. package/dist/kolibri/kol-icon.entry.js +1 -1
  518. package/dist/kolibri/kol-image.entry.js +1 -1
  519. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  520. package/dist/kolibri/kol-input-color.entry.js +1 -1
  521. package/dist/kolibri/kol-input-date.entry.js +1 -1
  522. package/dist/kolibri/kol-input-email.entry.js +1 -1
  523. package/dist/kolibri/kol-input-file.entry.js +1 -1
  524. package/dist/kolibri/kol-input-number.entry.js +1 -1
  525. package/dist/kolibri/kol-input-password.entry.js +1 -1
  526. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  527. package/dist/kolibri/kol-input-range.entry.js +1 -1
  528. package/dist/kolibri/kol-input-text.entry.js +1 -1
  529. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  530. package/dist/kolibri/kol-link-button.entry.js +1 -1
  531. package/dist/kolibri/kol-link.entry.js +1 -1
  532. package/dist/kolibri/kol-meter.entry.js +1 -1
  533. package/dist/kolibri/kol-modal.entry.js +1 -1
  534. package/dist/kolibri/kol-nav.entry.js +1 -1
  535. package/dist/kolibri/kol-pagination.entry.js +1 -1
  536. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  537. package/dist/kolibri/kol-progress.entry.js +1 -1
  538. package/dist/kolibri/kol-quote.entry.js +1 -1
  539. package/dist/kolibri/kol-select.entry.js +1 -1
  540. package/dist/kolibri/kol-single-select.entry.js +1 -1
  541. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  542. package/dist/kolibri/kol-spin.entry.js +1 -1
  543. package/dist/kolibri/kol-split-button.entry.js +1 -1
  544. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  545. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  546. package/dist/kolibri/kol-tabs.entry.js +1 -1
  547. package/dist/kolibri/kol-textarea.entry.js +1 -1
  548. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  549. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  550. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  551. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  552. package/dist/kolibri/kol-tree.entry.js +1 -1
  553. package/dist/kolibri/kol-version.entry.js +1 -1
  554. package/dist/kolibri/kolibri.esm.js +1 -1
  555. package/dist/kolibri/label-hints-BUADjqKF.js +4 -0
  556. package/dist/kolibri/label-lang-segment-B13iL7iy.js +4 -0
  557. package/dist/kolibri/label-mr5joqaQ.js +4 -0
  558. package/dist/kolibri/label-with-expert-slot-BVqi0_Fb.js +4 -0
  559. package/dist/kolibri/level-eGeMFn0b.js +4 -0
  560. package/dist/kolibri/link-target-DEH-wAmf.js +4 -0
  561. package/dist/kolibri/{links-IkK4zoXw.js → links-Dy9WkOJ-.js} +1 -1
  562. package/dist/kolibri/multiple-F8uOX8RD.js +4 -0
  563. package/dist/kolibri/number-value-DncK2_pC.js +4 -0
  564. package/dist/kolibri/open-DoPXNruj.js +4 -0
  565. package/dist/kolibri/{options-DwO32GBF.js → options-DcIQ-KB2.js} +1 -1
  566. package/dist/kolibri/orientation-tX0FldEu.js +4 -0
  567. package/dist/kolibri/placeholder-BPZ2sQEB.js +4 -0
  568. package/dist/kolibri/props-from-config-LBgEHmcL.js +4 -0
  569. package/dist/kolibri/read-only-9BPUG7r4.js +4 -0
  570. package/dist/kolibri/required-DBJ4iW2e.js +4 -0
  571. package/dist/kolibri/resolve-props-0xfjG6h5.js +4 -0
  572. package/dist/kolibri/resolve-props-BQa6SjZU.js +4 -0
  573. package/dist/kolibri/rows-DuYJeJT7.js +4 -0
  574. package/dist/kolibri/scroll-lock-CIv7iOPB.js +4 -0
  575. package/dist/kolibri/{smart-button-DM5g48-g.js → smart-button-p4avK7MS.js} +1 -1
  576. package/dist/kolibri/spell-check-Bvc-Peew.js +4 -0
  577. package/dist/kolibri/src-CVwlo_cY.js +4 -0
  578. package/dist/kolibri/step-oCposIuI.js +4 -0
  579. package/dist/kolibri/{suggestions-LO267l8F.js → suggestions-BsWy2U2z.js} +1 -1
  580. package/dist/kolibri/suggestions-fWMdnACm.js +4 -0
  581. package/dist/kolibri/test-component.entry.js +1 -1
  582. package/dist/kolibri/toggle-handler-CtJ2Z7Us.js +4 -0
  583. package/dist/kolibri/unique-nav-labels-CZIyOzqJ.js +4 -0
  584. package/dist/kolibri/unit-YqluIXsF.js +4 -0
  585. package/dist/kolibri/validators-ByUMEUYD.js +4 -0
  586. package/dist/kolibri/value-string-Baqhc_TX.js +4 -0
  587. package/dist/kolibri/{width-C1_yZHyL.js → width-BJNhiv_8.js} +1 -1
  588. package/dist/types/components/alert/component.d.ts +1 -0
  589. package/dist/types/components/input-date/component.d.ts +1 -1
  590. package/dist/types/components.d.ts +2 -2
  591. package/dist/types/internal/functional-components/bem-root-node/component.d.ts +8 -4
  592. package/dist/types/internal/functional-components/button/item.d.ts +1 -1
  593. package/dist/types/internal/functional-components/dialog/component.d.ts +7 -3
  594. package/dist/types/internal/functional-components/pagination/item.d.ts +4 -2
  595. package/dist/types/schema/bem-registry.d.ts +40 -0
  596. package/doc/pagination.md +13 -13
  597. package/package.json +11 -8
  598. package/vscode-custom-data.json +1 -1
  599. package/dist/cjs/block-bem-BVBM34Tu.js +0 -18
  600. package/dist/cjs/clsx-Bm_HQUnh.js +0 -54
  601. package/dist/cjs/component-C9B-yJ93.js +0 -9300
  602. package/dist/cjs/component-CVLJJvvd.js +0 -53
  603. package/dist/cjs/component-DNQW0lG8.js +0 -18
  604. package/dist/cjs/component-DfGgpwuP.js +0 -20
  605. package/dist/cjs/input-CtqTozTO.js +0 -20
  606. package/dist/components/block-bem.js +0 -4
  607. package/dist/components/clsx.js +0 -4
  608. package/dist/components/component11.js +0 -4
  609. package/dist/esm/block-bem-D3ixJyOY.js +0 -16
  610. package/dist/esm/clsx-COFh-Vc8.js +0 -52
  611. package/dist/esm/component-Ccv2lqNq.js +0 -16
  612. package/dist/esm/component-D9NreIlK.js +0 -9295
  613. package/dist/esm/component-DAk3R8NN.js +0 -48
  614. package/dist/esm/component-EDDTMC-J.js +0 -18
  615. package/dist/esm/label-with-expert-slot-BbZ9nx0l.js +0 -12
  616. package/dist/kolibri/Heading-GZb1f2pZ.js +0 -4
  617. package/dist/kolibri/api-CBPlj155.js +0 -4
  618. package/dist/kolibri/base-BByRnpRm.js +0 -4
  619. package/dist/kolibri/base-C7BBsrYZ.js +0 -4
  620. package/dist/kolibri/base-DO0KvOv9.js +0 -4
  621. package/dist/kolibri/base-Dtxcvto_.js +0 -4
  622. package/dist/kolibri/base-web-component-BxXLva5d.js +0 -4
  623. package/dist/kolibri/base-web-component-CfPyCJDJ.js +0 -4
  624. package/dist/kolibri/bem-registry-D1KgKnyz.js +0 -4
  625. package/dist/kolibri/block-bem-D3ixJyOY.js +0 -4
  626. package/dist/kolibri/clsx-COFh-Vc8.js +0 -4
  627. package/dist/kolibri/component-6l69Jvwl.js +0 -4
  628. package/dist/kolibri/component-B3OziaRC.js +0 -4
  629. package/dist/kolibri/component-CF8uFG0A.js +0 -4
  630. package/dist/kolibri/component-Ccv2lqNq.js +0 -4
  631. package/dist/kolibri/component-Cmi6iGfA.js +0 -4
  632. package/dist/kolibri/component-D4-NVnsT.js +0 -4
  633. package/dist/kolibri/component-D6_K50vT.js +0 -4
  634. package/dist/kolibri/component-D6lo0LzE.js +0 -4
  635. package/dist/kolibri/component-D9NreIlK.js +0 -4
  636. package/dist/kolibri/component-DAk3R8NN.js +0 -4
  637. package/dist/kolibri/component-EDDTMC-J.js +0 -4
  638. package/dist/kolibri/disabled-BZXlWAgK.js +0 -4
  639. package/dist/kolibri/field-control-0TRmF7Ea.js +0 -4
  640. package/dist/kolibri/group-DapkT_Yh.js +0 -4
  641. package/dist/kolibri/has-closer-DUB0QcS9.js +0 -4
  642. package/dist/kolibri/href-CxokGOJ2.js +0 -4
  643. package/dist/kolibri/id-BI0ZuK17.js +0 -4
  644. package/dist/kolibri/input-CDUCo1S5.js +0 -4
  645. package/dist/kolibri/input-container-BipAkWn4.js +0 -4
  646. package/dist/kolibri/item-B0oQTeju.js +0 -4
  647. package/dist/kolibri/item-Boe3t0Dm.js +0 -4
  648. package/dist/kolibri/item-BvnZc8uV.js +0 -4
  649. package/dist/kolibri/item-UgJ2uikD.js +0 -4
  650. package/dist/kolibri/label-B-Dr7VaP.js +0 -4
  651. package/dist/kolibri/label-hints-CLMiVvfk.js +0 -4
  652. package/dist/kolibri/label-lang-segment-iVD9hoM3.js +0 -4
  653. package/dist/kolibri/label-with-expert-slot-BbZ9nx0l.js +0 -4
  654. package/dist/kolibri/level-DsQ_pcyD.js +0 -4
  655. package/dist/kolibri/link-target-D7lYILOV.js +0 -4
  656. package/dist/kolibri/multiple--ay1C1n3.js +0 -4
  657. package/dist/kolibri/number-value-Dl9-2O4r.js +0 -4
  658. package/dist/kolibri/open-CNHJhHsy.js +0 -4
  659. package/dist/kolibri/orientation-ChJ0S24M.js +0 -4
  660. package/dist/kolibri/placeholder-UxmBJ4Vl.js +0 -4
  661. package/dist/kolibri/props-from-config-ytxYrJUY.js +0 -4
  662. package/dist/kolibri/read-only-DytZ5HZJ.js +0 -4
  663. package/dist/kolibri/required-BriHhuO4.js +0 -4
  664. package/dist/kolibri/resolve-props-DTXKtzir.js +0 -4
  665. package/dist/kolibri/resolve-props-kM9N-fzf.js +0 -4
  666. package/dist/kolibri/rows-I1jrTjzU.js +0 -4
  667. package/dist/kolibri/scroll-lock-Bv-U2FHM.js +0 -4
  668. package/dist/kolibri/spell-check-BWCnJG5v.js +0 -4
  669. package/dist/kolibri/src-ziOwSglN.js +0 -4
  670. package/dist/kolibri/step-BcyhvRtu.js +0 -4
  671. package/dist/kolibri/suggestions-D0u80DtA.js +0 -4
  672. package/dist/kolibri/toggle-handler-mPlmvrq7.js +0 -4
  673. package/dist/kolibri/unique-nav-labels-CxFUYSVY.js +0 -4
  674. package/dist/kolibri/unit-1ix-K9SD.js +0 -4
  675. package/dist/kolibri/validators-CTjxOidB.js +0 -4
  676. package/dist/kolibri/value-string-CxDz7dhD.js +0 -4
@@ -1,48 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import { t as translate } from './i18n-ePBcLlCr.js';
5
- import { r as resolveButtonProps } from './resolve-props-DTXKtzir.js';
6
- import { h } from './index-DEcM8BEc.js';
7
- import { K as KolHeadingFc } from './Heading-GZb1f2pZ.js';
8
- import { b as bem } from './bem-registry-D1KgKnyz.js';
9
- import { c as clsx } from './clsx-COFh-Vc8.js';
10
- import { B as ButtonFC } from './component-B3OziaRC.js';
11
- import { a as createCallbacksPropDefinition, r as resolveFcProps } from './props-from-config-ytxYrJUY.js';
12
- import { r as renderLabelWithLang } from './component-D9NreIlK.js';
13
- import './common-BdSzSIXg.js';
14
- import { l as levelProp } from './level-DsQ_pcyD.js';
15
- import { h as hasCloserProp } from './has-closer-DUB0QcS9.js';
16
- import { h as hrefProp } from './href-CxokGOJ2.js';
17
- import { l as labelLangSegmentsProp } from './label-lang-segment-iVD9hoM3.js';
18
- import { l as linkTargetProp } from './link-target-D7lYILOV.js';
19
-
20
- const cardCallbacksProp = createCallbacksPropDefinition();
21
-
22
- const cardPropsConfig = {
23
- required: [labelLangSegmentsProp],
24
- optional: [cardCallbacksProp, hasCloserProp, hrefProp, levelProp, linkTargetProp],
25
- };
26
-
27
- function resolveCardCloseButtonProps(host) {
28
- return resolveButtonProps({
29
- _hideLabel: true,
30
- _icons: { left: { icon: 'kolicon-cross' } },
31
- _label: translate('kol-close'),
32
- _tooltipAlign: 'top',
33
- }, host);
34
- }
35
-
36
- const cardBem = bem.forBlock('kol-card');
37
- const BEM_CLASS_CARD__CLOSE_BUTTON = cardBem('close-button');
38
- const BEM_CLASS_CARD__CONTENT = cardBem('content');
39
- const BEM_CLASS_CARD__HEADER = cardBem('header');
40
- const BEM_CLASS_CARD__LINK = cardBem('link');
41
- const NOOP = () => { };
42
- const CardHeadingFC = ({ headingId, label, level }) => (h(KolHeadingFc, { class: BEM_CLASS_CARD__HEADER, id: headingId, level: level }, renderLabelWithLang(label)));
43
- const CardFC = (props, children) => {
44
- const { ariaDescriptionId, class: hostClass, closeButtonProps, handleBlur, handleClose, handleFocus, hasCloser, headingId, href, label, level, refCloseButton, refCta, refTooltip, target, } = resolveFcProps(cardPropsConfig, props);
45
- return (h("article", { "aria-labelledby": headingId, class: clsx(cardBem(), hostClass) }, href.length > 0 ? (h("a", { class: BEM_CLASS_CARD__LINK, href: href, target: target || undefined, onBlur: handleBlur, onFocus: handleFocus, ref: refCta }, h(CardHeadingFC, { headingId: headingId, label: label, level: level }))) : (h(CardHeadingFC, { headingId: headingId, label: label, level: level })), h("div", { class: BEM_CLASS_CARD__CONTENT }, children), hasCloser && (h("div", { class: clsx(BEM_CLASS_CARD__CLOSE_BUTTON, 'kol-close-button') }, h(ButtonFC, Object.assign({}, closeButtonProps, { ariaDescriptionId: ariaDescriptionId, handleBlur: NOOP, handleClick: handleClose, handleFocus: NOOP, handleMouseDown: NOOP, refButton: refCloseButton, refTooltip: refTooltip }))))));
46
- };
47
-
48
- export { CardFC as C, cardCallbacksProp as a, cardPropsConfig as c, resolveCardCloseButtonProps as r };
@@ -1,18 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import { a as __rest } from './tslib.es6-QNbPBOk5.js';
5
- import { h } from './index-DEcM8BEc.js';
6
- import { b as bem } from './bem-registry-D1KgKnyz.js';
7
- import { c as clsx } from './clsx-COFh-Vc8.js';
8
-
9
- const iconBem = bem.forBlock('kol-icon');
10
- const BEM_CLASS_ICON = iconBem();
11
- const BEM_CLASS_ICON__ICON = iconBem('icon');
12
- const IconFC = (_a) => {
13
- var { class: classNames, icons, label } = _a, htmlAttributes = __rest(_a, ["class", "icons", "label"]);
14
- const hasAriaLabel = (label === null || label === void 0 ? void 0 : label.length) > 0;
15
- return (h("i", Object.assign({}, htmlAttributes, { "aria-hidden": hasAriaLabel ? undefined : 'true', "aria-label": hasAriaLabel ? label : undefined, class: clsx(BEM_CLASS_ICON, BEM_CLASS_ICON__ICON, icons, classNames), role: hasAriaLabel ? 'img' : 'presentation' })));
16
- };
17
-
18
- export { IconFC as I };
@@ -1,12 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import { c as createPropDefinition, h as normalizeLabelSegments } from './props-from-config-ytxYrJUY.js';
5
- import { b as isValidLabelWithExpertSlot } from './validators-CTjxOidB.js';
6
- import { l as labelHints } from './label-hints-CLMiVvfk.js';
7
-
8
- const labelWithExpertSlotProp = createPropDefinition('label', '', normalizeLabelSegments, isValidLabelWithExpertSlot, {
9
- hints: labelHints,
10
- });
11
-
12
- export { labelWithExpertSlotProp as l };
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{a as e}from"./tslib.es6-QNbPBOk5.js";import{h as s}from"./index-DEcM8BEc.js";import{c as l}from"./clsx-COFh-Vc8.js";const a=1;function r(e){return function(e){return e>=a&&e<=6}(e)?`h${e}`:"strong"}const o=(o,c)=>{var{class:n,level:t=a}=o,i=e(o,["class","level"]);const d=r(t);return s(d,Object.assign({class:l("kol-headline",`kol-headline--${d}`,n)},i),c)},c=(a,r)=>{var{class:o}=a,c=e(a,["class"]);return s("p",Object.assign({class:l("kol-headline kol-headline--group kol-headline--secondary",o)},c),r)},n=(r,n)=>{var{secondaryHeadline:t,level:i=a,class:d,HeadingGroupProps:p={},SecondaryHeadlineProps:u={}}=r,h=e(r,["secondaryHeadline","level","class","HeadingGroupProps","SecondaryHeadlineProps"]);const j=Object.assign({level:i},h);if(!t)return s(o,Object.assign({class:l(d,"kol-headline--single")},j),n);const{class:b}=p,g=e(p,["class"]),k=Object.assign({class:l("kol-heading-group",b)},g);return s("hgroup",Object.assign({},k),s(o,Object.assign({class:l(d,"kol-headline--group","kol-headline--primary")},j),n),s(c,Object.assign({},u),t))};export{n as K,r as g}
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{a as e}from"./tslib.es6-QNbPBOk5.js";import{p as i,j as t,D as o}from"./common-BdSzSIXg.js";import{S as s,b as l,s as r}from"./component-D9NreIlK.js";import{r as a}from"./aria-labelledby-DqJY_4G-.js";import{c as n,b as d,n as h,a as c,t as p}from"./props-from-config-ytxYrJUY.js";import{a as u,c as m,n as v}from"./dev.utils-BwYCy1rP.js";import{K as b,d as f}from"./events-CRHxtwup.js";import{d as g}from"./disabled-BZXlWAgK.js";import{j as y,h as j,e as B}from"./component-D4-NVnsT.js";import{l as _}from"./label-with-expert-slot-BbZ9nx0l.js";import{n as L}from"./component-B3OziaRC.js";import{B as O}from"./base-web-component-CC_gpyDb.js";import{c as C}from"./item-B0oQTeju.js";import{F as T}from"./behavior-ewHvUWVk.js";import{c as D}from"./item-Boe3t0Dm.js";import{T as K}from"./behavior-CKU2tmCj.js";import{h as N}from"./index-DEcM8BEc.js";import{t as x}from"./i18n-ePBcLlCr.js";import{b as F}from"./bem-registry-D1KgKnyz.js";import{c as w}from"./clsx-COFh-Vc8.js";import{B as P}from"./component-Ccv2lqNq.js";import{T as A}from"./component-D6_K50vT.js";import{P as k}from"./component-By8ggItU.js";import{A as I}from"./component-Cmi6iGfA.js";function H(e,i){return Boolean(e)&&!0===i}function M(e){var i;return"string"==typeof e?"error":null!==(i=null==e?void 0:e._type)&&void 0!==i?i:"error"}const S=n("ariaDetails","",d),q=n("hideMsg",!1,h),E=n("hint","",d),z=n("infoPopover",void 0,(function(e){if("object"==typeof e&&null!==e)return e;throw new Error("Invalid info popover: "+typeof e)})),$=c(),U=n("msg",void 0,(function(e){if("string"==typeof e)try{return i(e)}catch(i){return e}return e}),(function(e){return void 0===e||("string"==typeof e?e.length>0:t(e)&&o(e._description,1))})),V=n("touched",!1,h),Y=i=>{var{id:t,class:o,hint:s,baseClassName:l="kol-form-field"}=i,r=e(i,["id","class","hint","baseClassName"]);return s?N("span",Object.assign({class:w(`${l}__hint`,o),id:u(t||"","hint")},r),s):null},R=i=>{var{component:t="label",id:o,baseClassName:r="kol-form-field",class:a,accessKey:n,shortKey:d,label:h,hideLabel:c,hasExpertSlot:p,omitId:m,showBadge:v=!0,readOnly:b,infoPopover:f}=i,g=e(i,["component","id","baseClassName","class","accessKey","shortKey","label","hideLabel","hasExpertSlot","omitId","showBadge","readOnly","infoPopover"]);const y=!p&&c,j=!1===v?void 0:l(n,d);return N(t,Object.assign({},g,{class:w(`${r}__label`,a),id:y||m?void 0:u(o,"label"),hidden:y,htmlFor:"legend"===t?void 0:o}),N(s,{class:`${r}__label-text`,label:p?"":null!=h?h:"",badgeText:j},N("slot",{name:"expert"})),!p&&b&&N("span",{class:`${r}__label__read-only`,"aria-hidden":"true"},"(",x("kol-readonly"),")"),!p&&f&&N("span",null,N(k,Object.assign({},f.popoverButton),N("div",{class:"kol-popover-button__popover--styled"},f.content))))},G=t=>{var o,s,{alert:l,hideMsg:r,msg:a,id:n,class:d}=t,h=e(t,["alert","hideMsg","msg","id","class"]);const c=function(e){if("string"==typeof e)try{return i(e)}catch(i){return{_description:e,_type:"error"}}return e&&"object"==typeof e&&!("_type"in e)?Object.assign(Object.assign({},e),{_type:"error"}):e}(a);return N(I,Object.assign({alert:!r&&(null!==(o=null==c?void 0:c._alert)&&void 0!==o?o:!0===l),class:w("kol-form-field__msg",r&&"visually-hidden",d),closerAriaDescriptionId:v(),handleCloserClick:()=>{},hasCloser:!1,headingId:m("alert-heading"),id:u(n,"msg"),label:"",level:0,refCloserButton:()=>{},refCloserTooltip:()=>{},type:null!==(s=null==c?void 0:c._type)&&void 0!==s?s:"error",variant:"msg"},h),(null==c?void 0:c._description)||void 0)},J=F.forBlock("kol-form-field"),Q=({hideLabel:e,label:i,renderNoTooltip:t})=>!t&&!r(i)&&!0===e,W=e=>{const i=M(e);return{[i]:!0,[`msg-type-${i}`]:!0}},X=(i,t)=>{const{renderNoLabel:o,renderNoTooltip:s,renderNoHint:a,id:n,required:d,alert:h,disabled:c,class:p,msg:m,hideMsg:v,hideLabel:b,label:f,infoPopover:g,hint:j,accessKey:B,shortKey:_,counter:L,readOnly:O,touched:C,maxLength:T,ariaDescribedBy:D,showBadge:K,tooltipAlign:F,variant:k,component:I="div",orientation:M,refInput:S,refTooltip:q}=i,E=e(i,["renderNoLabel","renderNoTooltip","renderNoHint","id","required","alert","disabled","class","msg","hideMsg","hideLabel","label","infoPopover","hint","accessKey","shortKey","counter","readOnly","touched","maxLength","ariaDescribedBy","showBadge","tooltipAlign","variant","component","orientation","refInput","refTooltip"]),z=r(f),$=H(m,C),U=l(B,_),V=Q({hideLabel:b,label:f,renderNoTooltip:s}),X="fieldset"===I;return N(P,Object.assign({component:I,block:"kol-form-field",modifiers:Object.assign({disabled:Boolean(c),required:Boolean(d),touched:Boolean(C),"hide-label":Boolean(b),"read-only":Boolean(O),"hidden-msg":Boolean(v)},$?W(m):{}),class:w(k&&y(k,"form-field"),p),disabled:!(!X||!c)||void 0,"aria-describedby":D},E),!o&&N(R,{component:X?"legend":"label",class:X?"kol-form-field__label--legend":void 0,id:n,hasExpertSlot:z,hideLabel:b,label:f,accessKey:B,shortKey:_,readOnly:O,showBadge:K,infoPopover:g}),N("div",{class:J("input",{"orientation-horizontal":"horizontal"===M,"orientation-vertical":"vertical"===M}),ref:S},t,V&&N("div",{class:J("tooltip")},N(A,{badgeText:U||"",label:f,align:F,id:u(n,"label"),refFloating:q}))),L&&!("soft"===L.maxLengthBehavior&&"number"!=typeof L.maxLength)&&N("div",{class:J("counter")},N("span",{"aria-hidden":"true",class:J("counter"),ref:L.visualRef}),N("span",{"aria-live":"polite",class:"visually-hidden",id:u(n,"counter"),ref:L.ariaRef})),$&&N(G,{id:n,alert:h,hideMsg:v,msg:m}),!a&&N(Y,{id:n,hint:j}),"number"==typeof T&&!L&&N("span",{id:u(n,"character-limit-hint"),class:"visually-hidden"},x("kol-character-limit-hint",{placeholders:{limit:String(T)}})))};class Z extends O{constructor(){super(...arguments),this.tooltipBehavior=new K(O.stateLess),this.smartButton=C((()=>this.host)),this.infoPopover=D({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(b.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(b.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(b.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(b.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(b.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 T(O.stateLess,{host:this.host,type:e,name:i})}syncFormField(){this.smartButton.syncListeners(),this.infoPopover.syncListeners(),this.syncAriaDetails()}destroyFormField(){this.tooltipBehavior.destroy(),this.smartButton.destroy(),this.infoPopover.destroy()}connectedCallback(){this.syncFormField(),this.tooltipAnchor&&this.isTooltipShown()&&(this.tooltipBehavior.initContext(this.tooltipAnchor),this.tooltipBehavior.syncListeners(void 0,this.tooltipAnchor,!0))}getInfoPopover(){const i=this.shared.getRenderProp("infoPopover");if(!i)return;const{_content:t}=i,o=e(i,["_content"]);return{popoverButton:this.infoPopover.getFcProps(Object.assign(Object.assign({_variant:"ghost"},o),{_hideLabel:!0,_inline:!0})),content:t}}getSmartButtonFcProps(e,i){if("object"==typeof e&&null!==e)return this.smartButton.getFcProps(Object.assign({_hideLabel:!0,_disabled:i},e),{class:"kol-input-container__smart-button"})}applyAriaDetails(e){S.apply(e,(e=>this.shared.setRenderProp("ariaDetails",e))),this.syncAriaDetails()}syncAriaDetails(){var e,i,t,o;const s=null===(i=null===(e=this.host)||void 0===e?void 0:e.shadowRoot)||void 0===i?void 0:i.querySelector("input, select, textarea");if(!s||!("ariaDetailsElements"in s))return;const l=a(this.host,this.shared.getRenderProp("ariaDetails")),r=this.pushedDetailsElements;(s!==this.ariaDetailsTarget||(null!==(t=null==r?void 0:r.length)&&void 0!==t?t:0)!==l.length||null!==(o=null==r?void 0:r.some(((e,i)=>e!==l[i])))&&void 0!==o&&o)&&(this.ariaDetailsTarget=s,this.pushedDetailsElements=l,s.ariaDetailsElements=l.length?l:null)}applyDisabled(e){g.apply(e,(e=>this.shared.setRenderProp("disabled",e)))}applyHideLabel(e){j.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){z.apply(e,(e=>this.shared.setRenderProp("infoPopover",e)))}applyLabel(e){_.apply(e,(e=>this.shared.setRenderProp("label",e)),this.isRequired("label"))}applyMsg(e){U.apply(e,(e=>this.shared.setRenderProp("msg",e)))}applyName(e){L.apply(e,(e=>this.shared.setRenderProp("name",e))),this.formAssociation.watchName(e)}applyOn(e){$.apply(e,(e=>this.shared.setRenderProp("on",e)))}applySyncValueBySelector(e){this.formAssociation.watchSyncValueBySelector(e)}applyTooltipAlign(e){B.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&&f(this.eventHost,e,i)}handleFocusLeave(e){var i,t;if(this._disabled)return;const o=this.eventHost,s=(null==o?void 0:o.shadowRoot)||o,l=(null==s?void 0:s.contains(e.relatedTarget))||o===e.relatedTarget;this.focusEventSent&&!l&&(this._touched=!0,this.emit(b.blur),null===(t=null===(i=this._on)||void 0===i?void 0:i.onBlur)||void 0===t||t.call(i,e),this.focusEventSent=!1)}getAria(){const e=this.shared;return(({id:e,msg:i,hint:t,touched:o})=>{const s="string"==typeof i?i:null==i?void 0:i._description,l=Boolean(s&&s.length>0),r="error"===M(i)&&l&&!0===o,a="string"==typeof t&&t.length>0,n=[];return l&&!0===o&&n.push(u(e,"msg")),a&&n.push(u(e,"hint")),{hasError:r,hasHint:a,ariaDescribedBy:n}})({id:e.getState("id"),msg:e.getRenderProp("msg"),hint:e.getRenderProp("hint"),touched:e.getRenderProp("touched")})}showAsAlert(){return Boolean(this.shared.getRenderProp("touched"))&&!this.shared.getState("inputHasFocus")}isTooltipShown(){const e=this.shared;return Q({hideLabel:e.getRenderProp("hideLabel"),label:p(e.getRenderProp("label"))})}getLabelTooltipRefs(){return{refInput:this.setInputRef,refTooltip:this.setTooltipRef}}getFormFieldProps({class:e,accessKey:i,shortKey:t,variant:o,counter:s,maxLength:r,readOnly:a,renderNoLabel:n,renderNoTooltip:d,required:h}){const c=this.shared,p=c.getState("id"),m=c.getRenderProp("label"),v=c.getRenderProp("tooltipAlign");return this.isTooltipShown()?(this.tooltipBehavior.watchAlign(v),this.tooltipBehavior.watchBadgeText(l(i,t)||""),this.tooltipBehavior.watchId(u(p,"label")),this.tooltipBehavior.watchLabel(m)):this.tooltipBehavior.destroy(),{id:p,disabled:c.getRenderProp("disabled"),msg:c.getRenderProp("msg"),hint:c.getRenderProp("hint"),label:m,hideLabel:c.getRenderProp("hideLabel"),hideMsg:c.getRenderProp("hideMsg"),touched:c.getRenderProp("touched"),showBadge:Boolean(i)||Boolean(t),required:h,readOnly:a,accessKey:i,shortKey:t,maxLength:r,counter:s,variant:o,class:e,tooltipAlign:v,alert:this.showAsAlert(),infoPopover:this.getInfoPopover(),renderNoLabel:n,renderNoTooltip:d,refInput:d?void 0:this.setInputRef,refTooltip:this.setTooltipRef}}}function ee({ariaDescribedBy:e,hideLabel:i,label:t}){return{title:"",autoCapitalize:"off",autoCorrect:"off","aria-describedby":(null==e?void 0:e.length)?e.join(" "):void 0,"aria-label":i&&t?p(t):void 0}}const ie={required:[_],optional:[S,g,j,q,E,z,$,U,L,B,V]};export{Z as B,X as F,Y as a,R as b,ee as c,ie as f,M as g,H as i}
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{h as s}from"./index-DEcM8BEc.js";import{s as i,X as t}from"./common-BdSzSIXg.js";import{B as a}from"./base-web-component-CC_gpyDb.js";import{b as e,e as o,a as h,n as l,c as r,d as n,B as p}from"./component-B3OziaRC.js";import{F as d}from"./behavior-ewHvUWVk.js";import{T as c}from"./behavior-CKU2tmCj.js";import{a as m,b as y,c as b,f as u,g as f,h as v,s as C,i as j,l as x,d as B,t as A,e as I,v as g}from"./component-D4-NVnsT.js";import{d as D}from"./disabled-BZXlWAgK.js";import{i as K}from"./id-BI0ZuK17.js";import"./props-from-config-ytxYrJUY.js";import{l as T}from"./label-with-expert-slot-BbZ9nx0l.js";import{v as S}from"./access-and-short-key-ijzCZfHm.js";import{c as H}from"./element-interaction-sGYdEpmv.js";import{d as w,K as E}from"./events-CRHxtwup.js";import{p as L,a as P}from"./controller-CZcQ57AP.js";class V extends a{constructor(){super(...arguments),this.ctaRef=H(),this.propsConfig=e,this.tooltipBehavior=new c(this.stateAccess),this.handleClick=s=>{s.stopPropagation(),this.tooltipBehavior.hideTooltip();const t=this.getRenderProp("type");if("submit"===t)L({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,E.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,E.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,E.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,E.blur)}}initFormAssociation(){this.formAssociation=new d(a.stateLess,{host:this.host,type:"button"})}unsetButtonTabIndex(){this.unsetRenderProp("tabIndex")}initTooltipBehavior(){this.tooltipBehavior.componentWillLoad({label:this.getRenderProp("label"),align:this.getRenderProp("tooltipAlign")})}syncTooltipListeners(){this.ctaRef.el&&this.tooltipBehavior.syncListeners(void 0,this.ctaRef.el,!0)}destroyTooltipBehavior(){this.tooltipBehavior.destroy()}applyAccessKey(s,i){m.apply(s,(s=>this.setRenderProp("accessKey",s))),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){D.apply(s,(s=>this.setRenderProp("disabled",s)))}applyHideLabel(s){v.apply(s,(s=>this.setRenderProp("hideLabel",s)))}applyIcons(s){C.apply(s,(s=>this.setRenderProp("icons",s)))}applyId(s){K.apply(s,(s=>this.setRenderProp("id",s)))}applyInline(s){j.apply(s,(s=>this.setRenderProp("inline",s)))}applyLabel(s){T.apply(s,(s=>{this.setRenderProp("label",s),this.tooltipBehavior.watchLabel(s)}),this.isRequired("label"))}applyName(s){l.apply(s,(s=>this.setRenderProp("name",s))),this.formAssociation.watchName(s)}applyOn(s){r.apply(s,(s=>this.setRenderProp("on",s)))}applyRole(s){x.apply(s,(s=>this.setRenderProp("role",s)))}applyShortKey(s,i){B.apply(s,(s=>this.setRenderProp("shortKey",s))),S(i,s)}applySyncValueBySelector(s){this.formAssociation.watchSyncValueBySelector(s)}applyTabIndex(s){"number"==typeof s?A.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){n.apply(s,(s=>this.setRenderProp("type",s)))}applyValue(s){this.formValue=s,this.formAssociation.setFormAssociatedValue(s)}applyVariant(s){var i;g.apply(null!==(i=null!=s?s:t("buttonVariantDefault",this.host))&&void 0!==i?i:"normal",(s=>this.setRenderProp("variant",s)))}getButtonFCProps(){return{accessKey:this.getRenderProp("accessKey"),ariaControls:this.getRenderProp("ariaControls"),ariaDescription:this.getRenderProp("ariaDescription"),ariaDescriptionId:this.getState("ariaDescriptionId"),ariaExpanded:this.getRenderProp("ariaExpanded"),ariaHasPopup:this.getRenderProp("ariaHasPopup"),ariaSelected:this.getRenderProp("ariaSelected"),customClass:this.getRenderProp("customClass"),disabled:this.getRenderProp("disabled"),handleBlur:this.handleBlur,handleClick:this.handleClick,handleFocus:this.handleFocus,handleMouseDown:this.handleMouseDown,hideLabel:this.getRenderProp("hideLabel"),icons:this.getRenderProp("icons"),id:this.getRenderProp("id"),inline:this.getRenderProp("inline"),label:this.getRenderProp("label"),name:this.getRenderProp("name"),on:this.getRenderProp("on"),refButton:this.ctaRef,refTooltip:this.tooltipBehavior.setTooltipElementRef,role:this.getRenderProp("role"),shortKey:this.getRenderProp("shortKey"),tabIndex:this.getRenderProp("tabIndex"),tooltipAlign:this.getRenderProp("tooltipAlign"),type:this.getRenderProp("type"),variant:this.getRenderProp("variant")}}renderButtonFC(){return s(p,Object.assign({},this.getButtonFCProps()))}}export{V as B}
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{r as t}from"./aria-labelledby-DqJY_4G-.js";import{G as e,p as o,L as l}from"./common-BdSzSIXg.js";import{h as i,F as s,f as n}from"./index-DEcM8BEc.js";import{B as a}from"./base-web-component-CC_gpyDb.js";import{c as r}from"./item-B0oQTeju.js";import{c}from"./item-pool-BOxAYePG.js";import{c as d}from"./item-BvnZc8uV.js";import{c as h,e as u,n as b,a as p,r as v,t as f,v as m}from"./props-from-config-ytxYrJUY.js";import{l as y}from"./label-lang-segment-iVD9hoM3.js";import{v as g,j as k}from"./component-D4-NVnsT.js";import{c as j,d as C,e as S}from"./component-names-Dhbtt0mX.js";import{t as w}from"./i18n-ePBcLlCr.js";import{b as _}from"./bem-registry-D1KgKnyz.js";import{B as x}from"./component-Ccv2lqNq.js";import{B as O}from"./component-B3OziaRC.js";import{I as $}from"./component-EDDTMC-J.js";import{L as D}from"./component-CF8uFG0A.js";import{r as F}from"./component-D9NreIlK.js";import{S as L}from"./component-D6lo0LzE.js";import{T as B}from"./component-D6_K50vT.js";import{a as T}from"./tslib.es6-QNbPBOk5.js";import{n as z,c as E}from"./dev.utils-BwYCy1rP.js";import{d as A,K as I}from"./events-CRHxtwup.js";import{A as M}from"./component-Cmi6iGfA.js";import{l as H}from"./level-DsQ_pcyD.js";import{c as K}from"./element-interaction-sGYdEpmv.js";import{u as N,l as P,d as G,D as R}from"./scroll-lock-Bv-U2FHM.js";import{h as Y}from"./tooltip-open-tracking-D3tCiiGP.js";import{d as V,w as q}from"./width-C1_yZHyL.js";import{r as U,C as W}from"./component-DAk3R8NN.js";import{T as J}from"./behavior-CKU2tmCj.js";import{C as Q}from"./keyboard-DNd73LVa.js";const X=(o,l,i)=>{const s=t=>"string"==typeof t||void 0===t;return e(o,"_ariaLabelledby",s,new Set(["string"]),i),s(i)?t(l,i):[]},Z=t=>"number"==typeof t&&Number.isInteger(t)&&t>=0,tt=h("fixedCols",[0,0],(t=>u(t)),(t=>2===t.length&&t.every(Z))),et=h("hasSettingsMenu",!1,b),ot=p();function lt(t){const e="string"==typeof t?o(t):t;if(Array.isArray(e))return e;throw new Error("Invalid table data: expected an array of row objects.")}function it(t){return t.every((t=>"object"==typeof t&&null!==t))}const st=h("data",[],lt,it),nt=h("dataFoot",[],lt,it),at=t=>Array.isArray(t)&&t.every((t=>Array.isArray(t))),rt=h("headers",{horizontal:[],vertical:[]},(function(t){const e="string"==typeof t?o(t):t;if("object"!=typeof e||null===e)throw new Error("Invalid table headers: expected an object.");const{horizontal:l=[],vertical:i=[]}=e;if(!at(l)||!at(i))throw new Error("Invalid table headers: horizontal and vertical must be arrays of header rows.");return{horizontal:l,vertical:i}}),(function({horizontal:t,vertical:e}){return[...t,...e].every((t=>t.every((t=>void 0===t.width||"number"==typeof t.width))))})),ct=h("loading",!1,b),dt=h("selection",!1,(function(t){const e="string"==typeof t?o(t):t;if("object"==typeof e&&null!==e)return e;throw new Error("Invalid table selection: expected an object.")}),(function(t){return!1===t||"function"==typeof t.label&&(!t.selectedKeys||Array.isArray(t.selectedKeys))})),ht={required:[y,st],optional:[tt,et,ot,nt,rt,ct,dt,g]},ut=t=>t.flatMap((t=>t.filter((t=>"string"==typeof t.key||"function"==typeof t.render)))),bt=t=>{const e=ut(t.horizontal);if(e.length>0)return{cells:e,horizontal:!0};const o=ut(t.vertical);return{cells:o,horizontal:0===o.length}},pt=(t,e)=>{let o=0;return Array.isArray(t)&&t.forEach((t=>{var l;o+=null!==(l=t[e])&&void 0!==l?l:1})),o},vt=(t,e)=>{const o=Math.max(0,...t.map((t=>pt(t,"colSpan"))));return 0===o?e.length:o},ft=t=>{var e;return null!==(e=null==t?void 0:t.reduce(((t,e)=>"visible"in e&&!1===e.visible?t:t+(e.colSpan||1)),0))&&void 0!==e?e:0},mt=(t,e,o,l)=>{if(void 0!==l&&!e)return l<t[0]?"left":t[1]>0&&l>=o-t[1]?"right":void 0},yt=(t,e,o,l)=>{var i,s,n,a,r,c;const d=[];for(let a=0;a<e;a++)"left"===mt(o,l,e,a)&&(d[a]=(null!==(i=d[a-1])&&void 0!==i?i:0)+(null!==(n=null===(s=t[a-1])||void 0===s?void 0:s.width)&&void 0!==n?n:0));for(let i=e-1;i>=0;i--)"right"===mt(o,l,e,i)&&(d[i]=(null!==(a=d[i+1])&&void 0!==a?a:0)+(null!==(c=null===(r=t[i+1])||void 0===r?void 0:r.width)&&void 0!==c?c:0));return d},gt=(t,e,o,l)=>{const i=void 0===e?void 0:t[e];return o&&l?`calc( var(--kol-table-selection-col-width) + ${i}px)`:`${i}px`},kt=(t,e,o,l)=>{if(0===(e.horizontal?t.horizontal:t.vertical).length)return;const i=e.cells[o];return(null==i?void 0:i.type)===l?i:void 0},jt=({data:t,dataFoot:e,headers:o,isFoot:l,noEntriesLabel:i,primaryHeaders:s})=>{const n=vt(o.horizontal,t),a=s.cells;let r=((t,e,o)=>{const l=Math.max(0,...t.map((t=>pt(t,"rowSpan"))));return 0===l?e.length:l-o})(o.vertical,t,e.length),c=0;l&&(c=r,r+=e.length);const d=[],h=[],u=[];o.vertical.forEach(((t,e)=>{h[e]=0,u[e]=[]}));for(let i=c;i<r;i++){const r=[];o.vertical.forEach(((t,e)=>{let o=0;if(u[e].forEach((t=>o+=t)),o<=i){const l=t[i-o+h[e]];if("object"==typeof l){r.push(Object.assign(Object.assign({},l),{headerCell:!0,data:{}}));let t=1;if("number"==typeof l.rowSpan&&l.rowSpan>1&&(t=l.rowSpan),u[e].push(t),"number"==typeof l.colSpan&&l.colSpan>1)for(let o=1;o<l.colSpan;o++)u[e+o].push(t);h[e]++}}}));for(let o=0;o<n;o++)if(s.horizontal){const s=l?e[i-c]:t[i],n=a[o];"object"==typeof n&&null!==n&&"object"==typeof s&&null!==s&&r.push(Object.assign(Object.assign({},n),{colIndex:o,colSpan:void 0,rowSpan:void 0,data:s,label:s[n.key]}))}else{const e=a[i];"object"==typeof e&&null!==e&&"object"==typeof t[o]&&null!==t[o]&&r.push(Object.assign(Object.assign({},e),{colIndex:o,colSpan:void 0,rowSpan:void 0,data:t[o],label:t[o][e.key]}))}d.push(r)}if(0===t.length){let t=ft(o.horizontal[0]),e=0;o.vertical.length>0&&(t-=o.vertical.length,o.vertical[0].forEach((t=>{e+=t.rowSpan||1})));const l={colSpan:t,label:i,render:void 0,rowSpan:Math.max(e,1)};0===d.length?d.push([l]):d[0].push(l)}return d},Ct=({horizontal:t,vertical:e})=>{const o=t.flatMap((t=>t.filter((t=>!1!==t.visible&&void 0!==t.width&&t.width>0)).map((t=>t.width)))),l=[...e.flatMap((t=>t.filter((t=>void 0!==t.width&&t.width>0)).map((t=>t.width)))),...o];return 0===l.length?"0px":1===l.length?`${l[0]}px`:`calc(${l.map((t=>`${t}px`)).join(" + ")})`},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=_.forBlock("kol-table"),$t=Ot("body"),Dt=Ot("cell-actions"),Ft=Ot("cell-states"),Lt=Ot("footer"),Bt=Ot("head"),Tt=Ot("head-row"),zt=Ot("scroll-container"),Et=Ot("selection-icon"),At=Ot("selection-input-tooltip"),It=Ot("sort"),Mt=Ot("sort-button"),Ht=Ot("sort-order"),Kt=Ot("table"),Nt=`${Ot("focus-element")} ${Ot("caption")}`,Pt="caption",Gt=(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}),Yt=(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)},Vt=t=>{const e=w("kol-sort");return"number"==typeof t&&t>0?`${e} – ${w("kol-table-sort-order").replace("{{order}}",`${t}`)}`:e},qt=(t,e,o,l,s)=>{if(!1===e.visible)return"";const n=!1!==(null==e?void 0:e.sortable)&&"string"==typeof e.sortDirection;let a="none",r="kolicon-sort-neutral";if(n&&e.sortDirection)switch(e.sortDirection){case"ASC":r="kolicon-sort-asc",a="ascending";break;case"DESC":r="kolicon-sort-desc",a="descending";break;default:a="none"}const c=s?"row":"number"==typeof e.colSpan&&e.colSpan>1?"colgroup":"col",d="number"==typeof e.sortOrder&&e.sortOrder>0?e.sortOrder:void 0,h=void 0!==e.width?`${e.width}px`:void 0,u=Gt(t,l),{left:b,right:p}=Rt(t,u,l),v=e.textAlign,f=n?e.sortDirection:void 0;return i("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"===u,"sticky-right":"right"===u}),scope:c,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{width:h,left:b,right:p},"aria-sort":a,"data-sort":f?`sort-${f}`:void 0},f?i("span",{class:It},i(O,Object.assign({},t.getButtonFcProps(`sort-${s?"vertical":"horizontal"}-${o}-${l}`,{_icons:{right:r},_label:e.label,_ariaDescription:Vt(d),_on:{onClick:o=>{t.handleSort(o,{key:e.key,currentSortDirection:f})}}},{class:Mt}))),d&&i("span",{"aria-hidden":"true",class:Ht},d)):e.label)},Ut=(t,e,o,l,s=!1)=>i("tr",{class:Ot("row",{body:!s,footer:s}),key:`row-${Yt(t,e,o)}`},((t,e,o)=>{var l;const{handleSelectionChange:s,selection:n,selectionModel:a}=t;if(!n)return"";const r=null===(l=e[0])||void 0===l?void 0:l.data;if(!r)return"";const c=r[a.keyPropertyName],d=n.multiple||void 0===n.multiple,h=String(c),u=a.selectedKeysSet.has(h),b=a.disabledKeys.has(h),p=n.label(r),v={name:"selection",checked:u,disabled:b,id:String(c),"aria-label":p};return i("td",{key:`tbody-${o}-selection`,class:Ot("cell",{selection:!0})},i("div",{class:Ot("selection",{checked:u})},d?i("label",{class:Ot("selection-label",{disabled:b})},i($,{class:Et,icons:"kolicon "+(u?"kolicon-check":""),label:""}),i("input",Object.assign({class:Ot("selection-input",{checkbox:!0})},v,{type:"checkbox",onInput:t=>{const e=u?a.selectedKeys.filter((t=>String(t)!==h)):[...a.selectedKeys,c];s(t,e)}}))):i("label",{class:Ot("selection-label")},i("input",Object.assign({class:Ot("selection-input",{radio:!0})},v,{type:"radio",onInput:t=>{s(t,[c])}}))),i("div",{class:At},i(B,{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 qt(t,e,o,l,s);const a="function"!=typeof e.render&&e.label===t.translateNoEntries,r=kt(t.headers,t.primaryHeaders,l,"action"),c=Boolean(r&&e.data),d=kt(t.headers,t.primaryHeaders,l,"state"),h=Boolean(d&&e.data),u=Gt(t,l),{left:b,right:p}=Rt(t,u,e.colIndex),v="function"==typeof e.render,f=e.textAlign;return i("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"===u,"sticky-right":"right"===u}),"aria-atomic":a?"false":void 0,"aria-live":a?"polite":void 0,"aria-relevant":a?"text":void 0,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{textAlign:f,left:b,right:p},ref:v?o=>t.handleRenderCell(e,o):void 0},c&&r&&e.data?((t,e,o,l)=>i("div",{class:Dt},e.actions(o).map(((e,o)=>{const s=`action-${l}-${o}`;return"button"===e.type?i("span",{key:s},i(O,Object.assign({},t.getButtonFcProps(s,e)))):"link"===e.type?i("span",{key:s},i(D,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:Ft},s.map(((t,e)=>"badge"===t.type?i(j,Object.assign({key:`state-${o}-${e}`},t)):null))):""})(d,e.data,n):v?"":e.label)})(t,e,o,s,l)))),Wt=(t,e,o)=>{const l=t.headers.vertical.length+ft(null==o?void 0:o[0])+(t.selection?1:0);return i("tr",{"aria-hidden":"true",class:Ot("spacer",{[e]:!0})},i("td",{class:Ot("spacer-line",{[e]:!0}),colSpan:l}))},Jt=t=>{const e=v(ht,t),{data:o,dataFoot:l,externalLabelElements:n,fixedCols:a,hasScrollbar:r,hasSettingsMenu:c,headers:d,label:h,loading:u,refScrollContainer:b,refTable:p,selection:m,stickyColsDisabled:y,variant:g}=e,j=w("kol-no-entries"),C=bt(d),S=vt(d.horizontal,o),_=Object.assign(Object.assign({},e),{fixedOffsets:yt(C.cells,S,a,y),maxCols:S,primaryHeaders:C,selectionModel:_t(m),translateNoEntries:j}),O=jt({data:o,dataFoot:l,headers:d,isFoot:!1,noEntriesLabel:j,primaryHeaders:C}),D=0===n.length;return i(x,{block:"kol-table",class:k(g,"table")},c&&t.renderSettings(d.horizontal),i("div",{ref:b,class:zt,tabindex:r?D?"-1":"0":void 0},i("table",{ref:p,"aria-labelledby":D?Pt:void 0,class:Kt,style:{minWidth:Ct(d)}},D&&i("caption",{class:Nt,id:Pt,ref:t=>{t&&(r?t.tabIndex=0:t.removeAttribute("tabindex"))}},F(h)),i("thead",{class:Bt},[d.horizontal.map(((t,e)=>i("tr",{class:Tt,key:`thead-${e}`},m&&(t=>{const{data:e,handleSelectionChange:o,selection:l,selectionModel:s}=t;if(!l)return i("td",{class:Ot("cell",{header:!0}),key:"thead-0"});if(!1===l.multiple)return i("th",{scope:"col",key:"thead-0-selection",class:Ot("cell",{header:!0,selection:!0})},i("span",{class:"visually-hidden"},w("kol-table-selection")));const n=s.selectedKeys.filter((t=>!s.disabledKeys.has(String(t)))).length,a=n===xt(e,s).length,r=0!==n&&!a;let c;return c=w(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:Ot("cell",{header:!0,selection:!0})},i("span",{class:"visually-hidden"},w("kol-table-selection")),i("div",{class:Ot("selection",{checked:a,indeterminate:r})},i("label",{class:Ot("selection-label")},i($,{class:Et,icons:"kolicon "+(r?"kolicon-minus":a?"kolicon-check":""),label:""}),i("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,s,!a))}})),i("div",{class:At},i(B,{label:c,badgeText:"",refFloating:()=>{}}))))})(_),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})})(_),Array.isArray(t)&&t.map(((t,o)=>qt(_,t,e,o,!1)))))),Wt(_,"head",d.horizontal)]),i("tbody",{class:$t},i("div",{class:Ot("loader",{shown:u})},i(L,{label:w(u?"kol-table-data-loading":"kol-table-data-loaded").replace("{{caption}}",f(h)),show:u,variant:"cycle"})),O.map(((t,e)=>Ut(_,t,e,!0)))),(t=>{const{dataFoot:e,headers:o,primaryHeaders:l,translateNoEntries:s}=t;if(0===e.length)return null;const n=jt({data:e,dataFoot:e,headers:o,isFoot:!0,noEntriesLabel:s,primaryHeaders:l}),a=vt(o.horizontal,e),r=Object.assign(Object.assign({},t),{fixedOffsets:yt(l.cells,a,t.fixedCols,t.stickyColsDisabled),maxCols:a});return i("tfoot",{class:Lt},[Wt(t,"foot",n),n.map(((t,e)=>Ut(r,t,e,!0,!0)))])})(_))))},Qt=({dialog:t,card:e},o)=>i(R,Object.assign({},t),e?i(W,Object.assign({},e),o):o),Xt=_.forBlock("kol-table")("settings"),Zt=t=>Number.isFinite(t)&&void 0!==t&&t>0?t:void 0,te=()=>{},ee=(t,e)=>{const o=w("kol-table-settings"),l=w("kol-table-settings-cancel"),s=w("kol-table-settings-apply"),n=w("kol-table-settings-error-all-invisible");let d,h=!1,u=!1;const b=()=>{h=!0,e()},p=c((()=>r(t)),(t=>t.syncListeners()),(t=>t.destroy())),v=((t,e)=>{const o=K(),l=K(),i=new J(a.stateLess),s=z(),n=E("dialog-heading"),r={};let c,h=!0,u={};const b=t=>!d||A(d,t),p=()=>{var t,e;null===(e=null===(t=o.el)||void 0===t?void 0:t.close)||void 0===e||e.call(t)},v=t=>{var e;Y(t),t.defaultPrevented||(null===(e=u.onCancel)||void 0===e||e.call(u,t),t.defaultPrevented||b(I.cancel)||t.preventDefault())},g=t=>{var e;t.target===o.el&&(N(r),null===(e=u.onClose)||void 0===e||e.call(u),b(I.close))},k=()=>{i.hideTooltip(),p(),b(I.close)};return{getFcProps:e=>{var a,r,d;let b="",p=0,j="blank",C="100%";y.apply(e.label,(t=>{b=t})),H.apply(null!==(a=e.level)&&void 0!==a?a:0,(t=>{p=t})),V.apply(e.on,(t=>{u=t})),m.apply(null!==(r=e.variant)&&void 0!==r?r:"blank",(t=>{j=t})),q.apply(null!==(d=e.width)&&void 0!==d?d:"100%",(t=>{C=t}));const S="card"===j;return S&&!c&&(c=U(t()),i.componentWillLoad({label:c.label,align:c.tooltipAlign})),{dialog:{blockClass:G(j),handleCancel:v,handleClose:g,label:f(b),labelledBy:S?n:void 0,modal:h,refDialog:o,width:C},card:S&&c?{ariaDescriptionId:s,closeButtonProps:c,handleClose:k,hasCloser:!0,headingId:n,label:b,level:p,refCloseButton:l,refTooltip:i.setTooltipElementRef}:void 0}},show:t=>{var l,i;const s=o.el;(null==s?void 0:s.open)||(h!==t&&(h=t,e()),t?(null===(l=null==s?void 0:s.showModal)||void 0===l||l.call(s),s&&P(r)):null===(i=null==s?void 0:s.show)||void 0===i||i.call(s))},close:p,syncListeners:()=>{l.el&&i.syncListeners(void 0,l.el,!0)},destroy:()=>{p(),N(r),i.destroy()}}})(t,b),g=E("alert-heading"),k=z();let j,_=[],x=[],$=null;const D=()=>{var t;return null!==(t=x[x.length-1])&&void 0!==t?t:[]},F=t=>{x=x.map(((e,o,l)=>o===l.length-1?t:e)),b()},L=(t,e)=>{const o=[...D()],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),F(o)},B=t=>{if(t.preventDefault(),!D().some((t=>!1!==t.visible)))return $=n,void b();if(d){$=null,_=x.map((t=>t.map((t=>Object.assign({},t))))),b();const t=x.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}))));A(d,I.changeHeaderCells,t),v.close()}},R=t=>{t&&(d=t)};return{beginRender:()=>{p.beginRender(),u=h,h=!1},render:t=>{var e;u||t===j||(j=t,_=(e=t).map((t=>[...t])),x=e.map((t=>t.map((t=>Object.assign({},t))))));const n=D();return i("div",{class:Xt,ref:R},i("div",{class:"kol-table-settings"},i(O,Object.assign({},p.get("toggle").getFcProps({_icons:"kolicon-settings",_label:o,_hideLabel:!0,_on:{onClick:()=>v.show(!0)}})))),i(Qt,Object.assign({},v.getFcProps({label:o,variant:"card",width:"fit-content"})),i("div",{class:"kol-table-settings__content"},$&&i("div",{class:"kol-table-settings__error-message"},i(M,{alert:!1,closerAriaDescriptionId:k,handleCloserClick:te,hasCloser:!1,headingId:g,label:$,level:0,refCloserButton:te,refCloserTooltip:te,type:"error",variant:"msg"})),i("form",{onSubmit:B},i("div",{class:"kol-table-settings__columns"},n.map(((t,e)=>((t,e,o)=>i("div",{key:t.key,class:"kol-table-settings__column"},i(S,{_checked:!1!==t.visible,_label:w(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=D().map((o=>o.key===t&&!1!==o.hidable?Object.assign(Object.assign({},o),{visible:Boolean(e)}):o));F(o)})(null!==(l=t.key)&&void 0!==l?l:"",o)}}}),i("span",{class:"kol-table-settings__column-label"},t.label),i(C,{_hideLabel:!0,_value:Zt(t.width),_label:w("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=D().map((e=>e.key===t&&!1!==e.resizable?Object.assign(Object.assign({},e),{width:o}):e));F(l)})(null!==(l=t.key)&&void 0!==l?l:"",o)}}}),i(O,Object.assign({},p.get(`move-up-${t.key}`).getFcProps({_icons:"kolicon-chevron-up",_label:w(!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 L(null!==(e=t.key)&&void 0!==e?e:"","up")}},_disabled:!1===t.sortable||0===e}))),i(O,Object.assign({},p.get(`move-down-${t.key}`).getFcProps({_icons:"kolicon-chevron-down",_label:w(!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 L(null!==(e=t.key)&&void 0!==e?e:"","down")}},_disabled:!1===t.sortable||e===o.length-1})))))(t,e,n)))),i("div",{class:"kol-table-settings__actions"},i(O,Object.assign({},p.get("cancel").getFcProps({_label:l,_variant:"secondary",_on:{onClick:()=>(x=_.map((t=>[...t])),$=null,b(),void v.close())}}))),i(O,Object.assign({},p.get("apply").getFcProps({_label:s,_variant:"primary",_type:"submit"}))))))))},sync:()=>{p.endRender(),v.syncListeners()},destroy:()=>{p.destroy(),v.destroy()}}};class oe extends a{constructor(){super(...arguments),this.hasExternalTableLabelRefs=!1,this.cellRenderTimeouts=new Map,this.buttonItems=c((()=>r((()=>this.host))),(t=>t.syncListeners()),(t=>t.destroy())),this.settings=ee((()=>this.host),(()=>n(this))),this.linkItems=c((()=>d((()=>n(this)))),(t=>t.syncListeners()),(t=>t.destroy())),this.propsConfig=ht,this.handleResize=()=>{this.updateScrollbarState(),clearTimeout(this.resizeDebounceTimeout),this.resizeDebounceTimeout=setTimeout((()=>{this.updateStickyColsDisabled()}),150)},this.handleSelectionChange=(t,e)=>{this.emitSelectionChange(t,e)},this.handleSort=(t,e)=>{this.emitSort(t,e)},this.handleRenderCell=(t,e)=>{e&&(clearTimeout(this.cellRenderTimeouts.get(e)),this.cellRenderTimeouts.set(e,setTimeout((()=>{if(this.cellRenderTimeouts.delete(e),"function"==typeof t.render){const o=t.render(e,t,t.data,this.getRenderProp("data"));"string"==typeof o&&(e.textContent=o)}}))))},this.refScrollContainer=t=>{this.scrollContainerElement=t},this.refTable=t=>{this.tableElement=t,this.syncTableLabel(this.getState("externalLabelElements"))},this.getButtonFcProps=(t,e,o)=>this.buttonItems.get(t).getFcProps(e,o),this.renderSettings=t=>this.settings.render(t),this.getLinkFcProps=(t,e)=>this.linkItems.get(t).getFcProps(e)}observeScrollContainer(){this.scrollContainerElement&&ResizeObserver&&(this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.scrollContainerElement)),this.updateStickyColsDisabled()}teardownTable(){var t;null===(t=this.resizeObserver)||void 0===t||t.disconnect(),clearTimeout(this.resizeDebounceTimeout),this.cellRenderTimeouts.forEach((t=>clearTimeout(t))),this.cellRenderTimeouts.clear(),this.buttonItems.destroy(),this.linkItems.destroy(),this.settings.destroy()}syncTableItems(){this.buttonItems.endRender(),this.linkItems.endRender(),this.settings.sync()}applyData(t){st.apply(t,(t=>{this.setRenderProp("data",t),this.setState("rowKeys",((t,e)=>new Map(t.map((t=>{var o;return[t,null!==(o=e.get(t))&&void 0!==o?o:z()]}))))(t,this.getState("rowKeys")))}))}applyDataFoot(t){nt.apply(t,(t=>this.setRenderProp("dataFoot",t)))}applyFixedCols(t){tt.apply(t,(t=>this.setRenderProp("fixedCols",t))),this.updateStickyColsDisabled()}applyHasSettingsMenu(t){et.apply(t,(t=>this.setRenderProp("hasSettingsMenu",t)))}applyHeaders(t){rt.apply(t,(t=>this.setRenderProp("headers",(t=>0===t.horizontal.length?t:Object.assign(Object.assign({},t),{horizontal:t.horizontal.map((t=>t.map((t=>Object.assign(Object.assign({},t),{visible:"boolean"!=typeof t.visible||t.visible,hidable:"boolean"!=typeof t.hidable||t.hidable})))))}))(t))))}applyLabel(t){y.apply(t,(t=>this.setRenderProp("label",t)),this.isRequired("label"))}applyLoading(t){ct.apply(t,(t=>this.setRenderProp("loading",t)))}applyOn(t){ot.apply(t,(t=>this.setRenderProp("on",t)))}applySelection(t){dt.apply(t,(t=>this.setRenderProp("selection",t))),this.updateStickyColsDisabled()}applyVariant(t){g.apply(t,(t=>this.setRenderProp("variant",t)))}syncTableLabel(t){this.tableElement&&"ariaLabelledByElements"in this.tableElement&&((null==t?void 0:t.length)?(this.tableElement.ariaLabelledByElements=t,this.hasExternalTableLabelRefs=!0,l.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")[Q.onChangeHeaderCells];"function"==typeof o&&o(t,e)}updateScrollbarState(){if(this.scrollContainerElement){const{clientHeight:t,clientWidth:e,scrollHeight:o,scrollWidth:l}=this.scrollContainerElement;this.setState("hasScrollbar",l>e||o>t&&["auto","scroll"].includes(getComputedStyle(this.scrollContainerElement).overflowY))}}calculateFixedColsWidth(){var t,e,o,l,i,s;const[n,a]=this.getRenderProp("fixedCols"),r=this.getRenderProp("headers"),c=bt(r).cells,d=vt(r.horizontal,this.getRenderProp("data"));let h=0;for(let o=0;o<n&&o<c.length;o++)h+=null!==(e=null===(t=c[o])||void 0===t?void 0:t.width)&&void 0!==e?e:0;for(let t=d-a;t<d&&t<c.length;t++)h+=null!==(l=null===(o=c[t])||void 0===o?void 0:o.width)&&void 0!==l?l:0;if(this.getRenderProp("selection")){const t=null===(i=this.scrollContainerElement)||void 0===i?void 0:i.querySelector(".kol-table__cell--selection");h+=null!==(s=null==t?void 0:t.offsetWidth)&&void 0!==s?s:0}return h}updateStickyColsDisabled(){if(!this.scrollContainerElement)return void this.setState("stickyColsDisabled",!1);const t=this.calculateFixedColsWidth();this.setState("stickyColsDisabled",t>0&&t>=this.scrollContainerElement.clientWidth)}emitSelectionChange(t,e){const o=this.getRenderProp("on")[Q.onSelectionChange];"function"==typeof o&&o(t,e),this.host&&A(this.host,I.selectionChange,e)}emitSort(t,e){const o=this.getRenderProp("on")[Q.onSort];"function"==typeof o&&e.key&&o(t,e),this.host&&A(this.host,I.sort,e)}renderTableStatelessFC(){return this.buttonItems.beginRender(),this.linkItems.beginRender(),this.settings.beginRender(),i(Jt,{data:this.getRenderProp("data"),dataFoot:this.getRenderProp("dataFoot"),externalLabelElements:this.getState("externalLabelElements"),fixedCols:this.getRenderProp("fixedCols"),getButtonFcProps:this.getButtonFcProps,getLinkFcProps:this.getLinkFcProps,renderSettings:this.renderSettings,handleRenderCell:this.handleRenderCell,handleSelectionChange:this.handleSelectionChange,handleSort:this.handleSort,hasScrollbar:this.getState("hasScrollbar"),hasSettingsMenu:this.getRenderProp("hasSettingsMenu"),headers:this.getRenderProp("headers"),label:this.getRenderProp("label"),loading:this.getRenderProp("loading"),on:this.getRenderProp("on"),refScrollContainer:this.refScrollContainer,refTable:this.refTable,rowKeys:this.getState("rowKeys"),selection:this.getRenderProp("selection"),settingsChangedCounter:this.getState("settingsChangedCounter"),stickyColsDisabled:this.getState("stickyColsDisabled"),variant:this.getRenderProp("variant")})}}export{oe as B,nt as a,st as t,X as v}
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{h as i}from"./index-DEcM8BEc.js";import{B as s}from"./base-web-component-CC_gpyDb.js";import{l as t,a,c as r,d as e,b as o,L as h}from"./component-CF8uFG0A.js";import{T as n}from"./behavior-CKU2tmCj.js";import{s as l}from"./common-BdSzSIXg.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 j,v as A}from"./component-D4-NVnsT.js";import{d as v}from"./disabled-BZXlWAgK.js";import{h as L}from"./href-CxokGOJ2.js";import"./props-from-config-ytxYrJUY.js";import{l as D}from"./label-with-expert-slot-BbZ9nx0l.js";import{l as I}from"./link-target-D7lYILOV.js";import{c as w}from"./element-interaction-sGYdEpmv.js";import{d as K,K as T}from"./events-CRHxtwup.js";import{o as B}from"./ariaCurrentService-YoLNpD5S.js";class S extends s{constructor(){super(...arguments),this.ctaRef=w((()=>!0===this.getRenderProp("disabled"))),this.tooltipBehavior=new n(this.stateAccess),this.propsConfig=t,this.handleAnchorClick=i=>{if(this.tooltipBehavior.hideTooltip(),!0===this.getRenderProp("disabled"))return void i.preventDefault();const s=this.getRenderProp("href"),t=this.getRenderProp("on");"function"==typeof(null==t?void 0:t.onClick)&&(l(i,this.ctaRef.el),t.onClick(i,s)),this.host&&K(this.host,T.click,s)},this.setAnchorRef=i=>{this.ctaRef(i)}}unsetLinkTabIndex(){this.unsetRenderProp("tabIndex")}initLinkBehaviors(){this.unsubscribeOnLocationChange=B((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){v.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){D.apply(i,(s=>{this.setRenderProp("label",s),this.setState("expertSlot",""===i),this.tooltipBehavior.watchLabel(this.getTooltipLabel())}),this.isRequired("label"))}applyOn(i){o.apply(i,(i=>this.setRenderProp("on",i)))}applyRole(i){C.apply(i,(i=>this.setRenderProp("role",i)))}applyShortKey(i){x.apply(i,(i=>this.setRenderProp("shortKey",i)))}applyTabIndex(i){"number"==typeof i?g.apply(i,(i=>this.setRenderProp("tabIndex",i))):this.unsetRenderProp("tabIndex")}applyTarget(i){I.apply(i,(i=>this.setRenderProp("target",i)))}applyTooltipAlign(i){j.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{S as B}
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{h as i}from"./index-DEcM8BEc.js";import{B as s}from"./base-web-component-CC_gpyDb.js";import{r as t,C as o}from"./component-DAk3R8NN.js";import"./common-BdSzSIXg.js";import{l}from"./level-DsQ_pcyD.js";import{d as h,w as a}from"./width-C1_yZHyL.js";import{v as e,t as r}from"./props-from-config-ytxYrJUY.js";import{l as n}from"./label-lang-segment-iVD9hoM3.js";import{u as d,l as p,d as m,D as v}from"./scroll-lock-Bv-U2FHM.js";import{T as c}from"./behavior-CKU2tmCj.js";import{c as u}from"./element-interaction-sGYdEpmv.js";import{d as C,K as b}from"./events-CRHxtwup.js";import{h as f}from"./tooltip-open-tracking-D3tCiiGP.js";const g={required:[n],optional:[h,l,e,a]};class j extends s{constructor(){super(...arguments),this.dialogRef=u(),this.cardCloseButtonRef=u(),this.cardCloseTooltipBehavior=new c(this.stateAccess),this.propsConfig=g,this.handleCancel=i=>{var s,t;f(i),i.defaultPrevented||(null===(t=(s=this.getRenderProp("on")).onCancel)||void 0===t||t.call(s,i),i.defaultPrevented||this.host&&!C(this.host,b.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&&(C(this.host,b.close),C(this.host,b.toggle)))},this.handleCardClose=()=>{this.cardCloseTooltipBehavior.hideTooltip(),this.closeDialog(),this.host&&C(this.host,b.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&&C(this.host,b.toggle))}closeDialog(){var i,s;null===(s=null===(i=this.dialogRef.el)||void 0===i?void 0:i.close)||void 0===s||s.call(i)}buildCardProps(){return{ariaDescriptionId:this.getState("ariaDescriptionId"),closeButtonProps:this.cardCloseButtonProps,handleClose:this.handleCardClose,hasCloser:!0,headingId:this.getState("headingId"),label:this.getRenderProp("label"),level:this.getRenderProp("level"),refCloseButton:this.cardCloseButtonRef,refTooltip:this.cardCloseTooltipBehavior.setTooltipElementRef}}renderDialogFC(){const s=this.getRenderProp("variant"),t="card"===s;return i(v,{blockClass:m(s),handleCancel:this.handleCancel,handleClose:this.handleClose,label:r(this.getRenderProp("label")),labelledBy:t?this.getState("headingId"):void 0,modal:this.getState("modal"),refDialog:this.dialogRef,width:this.getRenderProp("width")},t?i(o,Object.assign({},this.buildCardProps()),this.renderSlot()):this.renderSlot())}}export{j as B}
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{n as e,p as s}from"./common-BdSzSIXg.js";import{a as i,d as t,t as o,v as r}from"./component-D4-NVnsT.js";import{h as a,g as l,I as n}from"./input-container-BipAkWn4.js";import{j as d,m as h,c}from"./props-from-config-ytxYrJUY.js";import{m as p}from"./multiple--ay1C1n3.js";import{r as u}from"./required-BriHhuO4.js";import{r as b}from"./rows-I1jrTjzU.js";import{f as m,i as v,g as y,c as f,B as j,F as O}from"./api-CBPlj155.js";import{h as B,F as g}from"./index-DEcM8BEc.js";import{v as A}from"./access-and-short-key-ijzCZfHm.js";import{c as w}from"./clsx-COFh-Vc8.js";import{f as K}from"./options-B0rBHetL.js";import{a as x}from"./tslib.es6-QNbPBOk5.js";import{g as P}from"./block-bem-D3ixJyOY.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},q=c("options",[],(function(e){const i="string"==typeof e?s(e):e;if(Array.isArray(i)&&i.every((e=>k(e))))return i;throw new Error("Invalid select options")})),D=c("value",[],(e=>Array.isArray(e)?e:[e])),E={required:[...m.required],optional:[...m.optional,i,a,p,q,u,b,D,t,o,r]},I=P("kol-select"),L=e=>{var{class:s,index:i,selectedValue:t,selected:o,value:r,label:a,disabled:l}=e,n=x(e,["class","index","selectedValue","selected","value","label","disabled"]);const d=void 0===t?[]:Array.isArray(t)?t:[t],h=o||d.includes(r);return B("option",Object.assign({class:w(I("option",{selected:Boolean(h),disabled:Boolean(l)}),s),selected:h,disabled:l,value:i},n),a)},V=({preKey:e,options:s,disabled:i,value:t,OptionProps:o={},OptionGroupProps:r={}})=>(null==s?void 0:s.length)?B(g,null,s.map(((s,a)=>{const l=[e,`-${a}`].join("");if("options"in s){const e=Boolean(i||s.disabled),{label:a}=s,n=x(s,["label"]);return B("optgroup",Object.assign({class:I("optgroup",{disabled:e}),key:l},r,{label:null==a?void 0:a.toString(),disabled:e}),B(V,Object.assign({OptionGroupProps:r,OptionProps:o,value:t,preKey:l},n,{disabled:e})))}return"value"in s?B(L,Object.assign({key:l},o,{index:l,selectedValue:t},s,{disabled:Boolean(i||s.disabled)})):null}))):null,C=e=>{const{class:s,msg:i,touched:t,disabled:o,required:r,options:a,value:l,OptionProps:n,OptionGroupProps:d,ariaDescribedBy:h,hideLabel:c,label:p}=e,u=x(e,["class","msg","touched","disabled","required","options","value","OptionProps","OptionGroupProps","ariaDescribedBy","hideLabel","label"]),b=Object.assign(Object.assign({class:w(I(Object.assign({disabled:Boolean(o),required:Boolean(r),touched:Boolean(t)},v(i,t)?{[y(i)]:!0}:{})),s),required:r,disabled:o},f({ariaDescribedBy:h,hideLabel:c,label:p})),u);return B("select",Object.assign({},b),B(V,{OptionGroupProps:d,OptionProps:n,disabled:o,options:a,value:l}))},S=(e,s,i)=>{const t=Array.isArray(e);if(s){if(void 0!==e&&!t)throw new Error(`↑ The schema for the property (_value) is not valid for multiple mode. Expected an array. The value will not be changed. (${i} = ${JSON.stringify(e)})`)}else if(t)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. (${i} = ${JSON.stringify(e)})`)},T=(e,s=!1)=>e.flatMap((e=>"options"in e&&Array.isArray(e.options)?T(e.options,Boolean(s||e.disabled)):[Object.assign(Object.assign({},e),{disabled:Boolean(s||e.disabled)})])),$=(e,s,i)=>{if(0===s.length)return e;const t=T(s),o=t.map((e=>e.value)),r=e.every((e=>o.includes(e)))?e:e.filter((e=>o.includes(e)));if(!1===i&&0===r.length){const e=t.find((e=>!0!==e.disabled));return e?[e.value]:r}return r};class F extends j{constructor(){super(...arguments),this.keyOptionMap=new Map,this.hasValue=!0,this.handleSelectInput=e=>{var s;const i=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=i,this.handleInput(e,i);else{const s=i.length>0?i[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){i.apply(e,(e=>this.setRenderProp("accessKey",e))),A(e,this.getShortKeyProp())}applyShortKey(e){t.apply(e,(e=>this.setRenderProp("shortKey",e))),A(this.getAccessKeyProp(),e)}applyIcons(e){a.apply(e,(e=>this.setRenderProp("icons",e)))}applyMultiple(e){S(this._value,!0===e,"current"),p.apply(e,(e=>{this.setRenderProp("multiple",e),this.setRenderProp("value",$(this.getRenderProp("value"),this.getRenderProp("options"),this._multiple))}))}applyOptions(e){q.apply(e,(e=>{this.setRenderProp("options",e),e.length>0&&(this.keyOptionMap.clear(),K(this.keyOptionMap,e),this.setRenderProp("value",$(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){S(e,!0===this._multiple,"received");const s=e=>{const s=$(e,this.getRenderProp("options"),this._multiple);this.setRenderProp("value",s),this.formAssociation.setFormAssociatedValue(this.getModelValue())};null===e?s([null]):D.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(),i=this.getRenderProp("multiple"),t=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:i?this.getRenderProp("rows"):void 0,multiple:i,required:this.getRenderProp("required"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")},t?{"aria-keyshortcuts":t}:{}),{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:i}=l({icons:this.getRenderProp("icons")});return B(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()}}),B(n,{disabled:e,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:s,endAdornment:i},B(C,Object.assign({},this.getSelectProps()))))}}export{F as B,E as s}
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import"./common-BdSzSIXg.js";import{a as t,d as s,v as i}from"./component-D4-NVnsT.js";import{a as e,S as o}from"./suggestions-D0u80DtA.js";import{h as a,g as r}from"./input-container-BipAkWn4.js";import{c as h,b as n}from"./props-from-config-ytxYrJUY.js";import{p as l}from"./placeholder-UxmBJ4Vl.js";import{r as p}from"./read-only-DytZ5HZJ.js";import{r as d}from"./required-BriHhuO4.js";import{s as c}from"./smart-button-DM5g48-g.js";import{s as u}from"./value-string-CxDz7dhD.js";import{f as m,B as v}from"./api-CBPlj155.js";import{h as y}from"./index-DEcM8BEc.js";import{s as j}from"./controller-CZcQ57AP.js";import{v as b}from"./access-and-short-key-ijzCZfHm.js";import{c as g}from"./clsx-COFh-Vc8.js";import{c as f}from"./element-interaction-sGYdEpmv.js";import{B as O}from"./base-web-component-CC_gpyDb.js";import{C as x}from"./behavior-CsNDRS2z.js";const B=h("pattern",void 0,n),C={required:[...m.required],optional:[...m.optional,t,e,a,B,l,p,d,s,c,u,i]};class D extends v{constructor(){super(...arguments),this.ctaRef=f(),this.counter=new x(O.stateLess),this.needsImmediateCounterUpdate=!1,this.hasValue=!1,this.handleTextInput=t=>{this._value=t.target.value,this.handleInput(t)},this.handleTextChange=(t,s)=>{this.handleChange(t,s)},this.handleTextFocus=t=>{var s,i;this.handleFocus(t),this.counter.retriggerAria(null!==(i=null===(s=this._value)||void 0===s?void 0:s.length)&&void 0!==i?i:0)},this.handleTextKeyDown=t=>{var s,i;this.handleKeyDown(t),this.counter.handleKeyDown(t,null!==(i=null===(s=this.ctaRef.el)||void 0===s?void 0:s.value.length)&&void 0!==i?i:0),j(t,{form:this.host,ref:this.ctaRef.el})}}get textShared(){return this}initHasValue(){this.hasValue=Boolean(this.textShared.getRenderProp("value"))}didLoadTextInput(){var t,s;this.needsImmediateCounterUpdate=!1,(this.counter.hasCounter()||this.counter.hasSoftLimit())&&this.counter.updateImmediate(null!==(s=null===(t=this._value)||void 0===t?void 0:t.length)&&void 0!==s?s:0)}didUpdateTextInput(){var t,s;this.needsImmediateCounterUpdate&&(this.needsImmediateCounterUpdate=!1,(this.counter.hasCounter()||this.counter.hasSoftLimit())&&this.counter.updateImmediate(null!==(s=null===(t=this._value)||void 0===t?void 0:t.length)&&void 0!==s?s:0))}destroyTextInput(){this.destroyFormField(),this.counter.destroy()}applyAccessKey(s){t.apply(s,(t=>this.textShared.setRenderProp("accessKey",t))),b(s,this._shortKey)}applyAutoComplete(t){e.apply(t,(t=>this.textShared.setRenderProp("autoComplete",t)))}applyIcons(t){a.apply(t,(t=>this.textShared.setRenderProp("icons",t)))}applyPattern(t){B.apply(t,(t=>this.textShared.setRenderProp("pattern",t)))}applyPlaceholder(t){l.apply(t,(t=>this.textShared.setRenderProp("placeholder",t)))}applyReadOnly(t){p.apply(t,(t=>this.textShared.setRenderProp("readOnly",t)))}applyRequired(t){d.apply(t,(t=>this.textShared.setRenderProp("required",t)))}applyShortKey(t){s.apply(t,(t=>this.textShared.setRenderProp("shortKey",t))),b(this._accessKey,t)}applySmartButton(t){null==t?this.textShared.unsetRenderProp("smartButton"):c.apply(t,(t=>this.textShared.setRenderProp("smartButton",t)))}applyValue(t){var s;this.initValue(t),this.hasValue=Boolean(this.textShared.getRenderProp("value")),this.counter.update(null!==(s=null==t?void 0:t.length)&&void 0!==s?s:0)}initValue(t){u.apply(t,(t=>this.textShared.setRenderProp("value",t))),this.formAssociation.setFormAssociatedValue(this.textShared.getRenderProp("value"))}initMaxLength(t){this.counter.watchMaxLength(t)}applyVariant(t){i.apply(t,(t=>this.textShared.setRenderProp("variant",t)))}applyHasCounter(t){this.counter.watchHasCounter(t),this.needsImmediateCounterUpdate=!0}applyMaxLength(t){var s,i;this.counter.watchMaxLength(t),this.counter.updateImmediate(null!==(i=null===(s=this._value)||void 0===s?void 0:s.length)&&void 0!==i?i:0)}applyMaxLengthBehavior(t){this.counter.watchMaxLengthBehavior(t),this.needsImmediateCounterUpdate=!0}getTextFormFieldProps(t){const s=this.textShared;return this.getFormFieldProps({class:g(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{D as B,C as t}
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{i as e}from"./common-BdSzSIXg.js";var i,l,n=e(l?i:(l=1,i=function(e){return function(i,l){if(!i)return e;var n;"string"==typeof i?n=i:l=i;var o=e;return n&&(o+="__"+n),o+(l?Object.keys(l).reduce((function(e,i){var n=l[i];return n&&(e+=" "+("boolean"==typeof n?o+"--"+i:o+"--"+i+"_"+n)),e}),""):"")}}));const o=function(){const e=new Map,i=(i,l,o)=>{try{return e.get(i)(l,o)}catch{return e.set(i,n(i)).get(i)(l,o)}};return i.forBlock=e=>{const l=(l,n)=>i(e,l,n);return l.forElement=l=>n=>i(e,l,n),l},i}(),r={"kol-abbr":{modifiers:null},"kol-alert":{elements:{closer:{modifiers:null},heading:{modifiers:new Set(["h0","h1","h2","h3","h4","h5","h6"])},icon:{modifiers:null},content:{modifiers:null},container:{modifiers:null}},modifiers:new Set(["hasCloser","type-default","type-error","type-info","type-success","type-warning","variant-card","variant-msg"])},"kol-badge":{elements:{label:{modifiers:null},"smart-button":{modifiers:null}},modifiers:new Set(["has-smart-button"])},"kol-version":{modifiers:null},"kol-accordion":{elements:{content:{modifiers:null},heading:{modifiers:null},wrapper:{modifiers:null},"wrapper-animation":{modifiers:null}},modifiers:new Set(["disabled","open"])},"kol-avatar":{elements:{image:{modifiers:null},initials:{modifiers:null}},modifiers:null},"kol-card":{elements:{"close-button":{modifiers:null},content:{modifiers:null},header:{modifiers:null},link:{modifiers:null}},modifiers:null},"kol-dialog":{elements:{blank:{modifiers:null},card:{modifiers:null}},modifiers:null},"kol-modal":{elements:{blank:{modifiers:null},card:{modifiers:null}},modifiers:null},"kol-button":{elements:{"interactive-element":{modifiers:null},text:{modifiers:null},tooltip:{modifiers:null}},modifiers:new Set(["disabled","hide-label","inline","standalone"])},"kol-breadcrumb":{elements:{icon:{modifiers:null},link:{modifiers:null},list:{modifiers:null},"list-element":{modifiers:null},"list-element-span":{modifiers:null},separator:{modifiers:null}},modifiers:null},"kol-nav":{elements:{compact:{modifiers:null},entry:{modifiers:new Set(["button","collapsible","link"])},"entry-wrapper":{modifiers:null},list:{modifiers:new Set(["nested","vertical"])},"list-item":{modifiers:new Set(["active","expanded","has-children"])},navigation:{modifiers:null},"toggle-button":{modifiers:null}},modifiers:new Set(["is-compact"])},"kol-kolibri":{elements:{text:{modifiers:null}},modifiers:null},"kol-popover-button":{elements:{popover:{modifiers:null}},modifiers:new Set(["inline","open"])},"kol-details":{elements:{content:{modifiers:null},heading:{modifiers:null},wrapper:{modifiers:null},"wrapper-animation":{modifiers:null}},modifiers:new Set(["disabled","open"])},"kol-drawer":{elements:{content:{modifiers:null},dialog:{modifiers:null},wrapper:{modifiers:new Set(["bottom","is-closing","left","open","right","top"])}},modifiers:null},"kol-heading":{modifiers:new Set(["group"])},"kol-headline":{modifiers:new Set(["group","h1","h2","h3","h4","h5","h6","primary","secondary","single","strong"])},"kol-icon":{elements:{icon:{modifiers:null}},modifiers:null},"kol-meter":{elements:{bar:{modifiers:null},"bar-background":{modifiers:null},"bar-border":{modifiers:null},"bar-fill":{modifiers:new Set(["critical","optimum","suboptimal"])},"bar-label":{modifiers:null},"bar-state":{modifiers:new Set(["critical","optimum","suboptimal"])},"bar-track":{modifiers:null},unit:{modifiers:null},value:{modifiers:null},"value-unit":{modifiers:null}},modifiers:new Set(["vertical"])},"kol-quote":{elements:{blockquote:{modifiers:null},cite:{modifiers:null},figcaption:{modifiers:null},quote:{modifiers:null}},modifiers:new Set(["block","inline"])},"kol-skip-nav":{elements:{list:{modifiers:null},"list-item":{modifiers:null}},modifiers:null},"kol-span":{elements:{container:{modifiers:null},icon:{modifiers:new Set(["bottom","left","right","top"])},label:{modifiers:null},slot:{modifiers:null}},modifiers:new Set(["has-badge","hide-label"])},"kol-link":{elements:{"interactive-element":{modifiers:null},icon:{modifiers:null},text:{modifiers:null}},modifiers:new Set(["disabled","external-link","hide-label","inline","standalone"])},"kol-form":{elements:{alert:{modifiers:null},form:{modifiers:null},link:{modifiers:null},"mandatory-fields-hint":{modifiers:null}},modifiers:null},"kol-form-field":{elements:{counter:{modifiers:null},hint:{modifiers:null},input:{modifiers:new Set(["orientation-horizontal","orientation-vertical"])},label:{modifiers:new Set(["legend"])},"label-text":{modifiers:null},msg:{modifiers:null},tooltip:{modifiers:null}},modifiers:new Set(["default","disabled","error","hidden-msg","hide-label","info","msg-type-default","msg-type-error","msg-type-info","msg-type-success","msg-type-warning","radio","read-only","required","success","touched","warning"])},"kol-input":{modifiers:new Set(["default","disabled","error","info","readonly","required","success","touched","warning"])},"kol-input-container":{elements:{adornment:{modifiers:new Set(["end","start"])},button:{modifiers:null},container:{modifiers:null},filename:{modifiers:new Set(["has-file"])},icon:{modifiers:null},"smart-button":{modifiers:null}},modifiers:new Set(["default","disabled","error","info","is-dragover","success","warning"])},"kol-field-control":{elements:{hint:{modifiers:null},input:{modifiers:null},label:{modifiers:new Set(["visually-hidden"])},"label-text":{modifiers:null}},modifiers:new Set(["default","disabled","error","hide-label","info","label-align-left","label-align-right","read-only","required","success","touched","warning"])},"kol-checkbox":{elements:{icon:{modifiers:null},input:{modifiers:null}},modifiers:new Set(["checked","default","disabled","error","indeterminate","info","required","success","touched","variant-button","variant-default","variant-switch","warning"])},"kol-input-checkbox":{elements:{"field-control":{modifiers:new Set(["checked","indeterminate","variant-button","variant-default","variant-switch"])}},modifiers:new Set(["checked","indeterminate","label-align-left","label-align-right","variant-button","variant-default","variant-switch"])},"kol-input-color":{elements:{input:{modifiers:new Set(["color"])}},modifiers:null},"kol-input-date":{modifiers:null},"kol-input-email":{modifiers:null},"kol-input-file":{modifiers:null},"kol-input-number":{elements:{"step-button":{modifiers:null}},modifiers:null},"kol-input-password":{elements:{"password-toggle-button":{modifiers:null}},modifiers:null},"kol-input-radio":{elements:{input:{modifiers:null}},modifiers:new Set(["checked","default","disabled","error","info","required","success","touched","warning"])},"kol-select":{elements:{optgroup:{modifiers:new Set(["disabled"])},option:{modifiers:new Set(["disabled","selected"])}},modifiers:new Set(["default","disabled","error","info","required","success","touched","warning"])},"kol-pagination":{elements:{button:{modifiers:new Set(["first","last","next","numbers","previous","selected"])},entries:{modifiers:null},navigation:{modifiers:null},"navigation-list":{modifiers:null},"page-size-select":{modifiers:null},separator:{modifiers:null}},modifiers:null},"kol-custom-suggestions-option":{modifiers:new Set(["disabled"])},"kol-custom-suggestions-options-group":{modifiers:new Set(["cursor-hidden","open"])},"kol-custom-suggestions-toggle":{modifiers:new Set(["disabled"])},"kol-combobox":{elements:{delete:{modifiers:null},group:{modifiers:null}},modifiers:new Set(["open"])},"kol-combobox-toggle":{modifiers:null},"kol-single-select":{elements:{delete:{modifiers:null},group:{modifiers:null},"no-results-message":{modifiers:null}},modifiers:new Set(["open"])},"kol-input-range":{elements:{input:{modifiers:new Set(["number","range"])},"inputs-wrapper":{modifiers:null}},modifiers:null},"kol-input-text":{elements:{"clear-button":{modifiers:new Set(["hidden"])}},modifiers:null},"kol-split-button":{elements:{button:{modifiers:null},"horizontal-line":{modifiers:null},root:{modifiers:null},"secondary-button":{modifiers:null}},modifiers:null},"kol-spin":{elements:{loader:{modifiers:null},spinner:{modifiers:new Set(["cycle","dot","none"])},"spinner-element":{modifiers:new Set(["1","2","3","neutral"])}},modifiers:null},"kol-table":{elements:{body:{modifiers:null},caption:{modifiers:null},cell:{modifiers:new Set(["actions","align-center","align-justify","align-left","align-right","ascending","body","descending","header","none","other","selection","states","sticky-left","sticky-right"])},"cell-actions":{modifiers:null},"cell-states":{modifiers:null},"focus-element":{modifiers:null},footer:{modifiers:null},head:{modifiers:null},"head-row":{modifiers:null},loader:{modifiers:new Set(["shown"])},row:{modifiers:new Set(["body","footer"])},"scroll-container":{modifiers:null},selection:{modifiers:new Set(["checked","indeterminate"])},"selection-icon":{modifiers:null},"selection-input":{modifiers:new Set(["checkbox","radio"])},"selection-input-tooltip":{modifiers:null},"selection-label":{modifiers:new Set(["disabled"])},settings:{modifiers:null},sort:{modifiers:null},"sort-button":{modifiers:null},"sort-order":{modifiers:null},spacer:{modifiers:new Set(["foot","head"])},"spacer-line":{modifiers:new Set(["foot","head"])},table:{modifiers:null}},modifiers:null},"kol-tabs":{elements:{"button-create":{modifiers:null},"button-group":{modifiers:null},content:{modifiers:null},tab:{modifiers:null},tablist:{modifiers:null}},modifiers:new Set(["align-bottom","align-left","align-right","align-top"])},"kol-textarea":{modifiers:new Set(["default","disabled","error","info","readonly","required","success","touched","warning"])},"kol-toolbar":{elements:{item:{modifiers:null}},modifiers:new Set(["orientation-horizontal","orientation-vertical"])},"kol-tree":{elements:{"treeview-navigation":{modifiers:null}},modifiers:null},"kol-tree-item":{elements:{children:{modifiers:null},link:{modifiers:new Set(["active","first-level"])},"link-inner":{modifiers:null},text:{modifiers:null},"toggle-button":{modifiers:null},"toggle-button-icon":{modifiers:null},"toggle-button-placeholder":{modifiers:null}},modifiers:null},"kol-image":{modifiers:null},"kol-popover":{elements:{arrow:{modifiers:new Set(["top","right","bottom","left"])}},modifiers:null},"kol-progress":{elements:{bar:{modifiers:null},"bar-background":{modifiers:null},"bar-border":{modifiers:null},"bar-label":{modifiers:null},"bar-progress":{modifiers:null},"bar-unit":{modifiers:null},"bar-value":{modifiers:null},cycle:{modifiers:null},"cycle-background":{modifiers:null},"cycle-border":{modifiers:null},"cycle-label":{modifiers:null},"cycle-progress":{modifiers:null},"cycle-text":{modifiers:null},"cycle-value":{modifiers:null},"cycle-whitespace":{modifiers:null}},modifiers:null},"kol-tooltip":{elements:{arrow:{modifiers:null},content:{modifiers:null},floating:{modifiers:null}},modifiers:null}};export{r as B,o as b}
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{b as r}from"./bem-registry-D1KgKnyz.js";const t=new Map;function e(e){let n=t.get(e);return n||(n=r.forBlock(e),t.set(e,n)),n}export{e as g}
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- const o=t=>{let e="";if("string"==typeof t||"number"==typeof t)e+=t;else if("object"==typeof t&&null!==t)if(Array.isArray(t)){for(const f of t)if(f){const t=o(f);t&&(e&&(e+=" "),e+=t)}}else for(const o in t)t[o]&&(e&&(e+=" "),e+=o);return e},t=(...t)=>{let e="";for(const f of t)if(f){const t=o(f);t&&(e&&(e+=" "),e+=t)}return e};export{t as c}
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{h as o}from"./index-DEcM8BEc.js";import{b as l}from"./bem-registry-D1KgKnyz.js";import{B as r}from"./component-B3OziaRC.js";import{S as s}from"./component-D9NreIlK.js";const a=l.forBlock("kol-badge"),t=a("label"),n=a("smart-button"),e=({color:l,icons:e,label:i,smartButton:c})=>o("div",{class:a({"has-smart-button":void 0!==c}),style:{backgroundColor:l.backgroundColor,color:l.foregroundColor}},o(s,{class:t,id:null==c?void 0:c.labelId,allowMarkdown:!0,icons:e,label:i}),c&&o(r,Object.assign({},c.resolvedButton,{class:n,ariaDescriptionId:c.ariaDescriptionId,handleBlur:c.handleBlur,handleClick:c.handleClick,handleFocus:c.handleFocus,handleMouseDown:c.handleMouseDown,refButton:c.refSmartButton,refTooltip:c.refTooltip})),o("br",null));export{e as B}
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{a}from"./tslib.es6-QNbPBOk5.js";import{h as e}from"./index-DEcM8BEc.js";import"./common-BdSzSIXg.js";import{c as o,i as s,u as i,a as t,b as r,r as n,t as l}from"./props-from-config-ytxYrJUY.js";import{a as d,b as c,c as p,f as m,g as b,h as u,i as f,l as h,d as v,s as x,t as j,e as y,v as g,A as B,j as D}from"./component-D4-NVnsT.js";import{b as I}from"./bem-registry-D1KgKnyz.js";import{c as K}from"./clsx-COFh-Vc8.js";import{B as C}from"./component-Ccv2lqNq.js";import{S as k}from"./component-D9NreIlK.js";import{T as w}from"./component-D6_K50vT.js";import{d as S}from"./disabled-BZXlWAgK.js";import{i as T}from"./id-BI0ZuK17.js";import{l as E}from"./label-with-expert-slot-BbZ9nx0l.js";const F=["dialog","false","grid","listbox","menu","tree","true"],N=o("ariaHasPopup","",(function(a){if(""===a)return"";if(s(a,F))return a;throw new Error(`Invalid aria-haspopup value: expected one of ${F.join(", ")}, got ${JSON.stringify(a)}`)})),M=o("ariaSelected","",(function(a){return i(a,"aria-selected")})),O=t(),P=["button","reset","submit"],q=o("type","button",(function(a){const e=r(a);if(s(e,P))return e;throw new Error(`Invalid button type: ${e}`)}),(a=>P.includes(a))),A=o("name","",r),H={required:[E],optional:[d,c,p,m,N,M,O,q,b,S,u,T,f,h,A,v,x,j,y,g]},L=I.forBlock("kol-button"),Z=L("interactive-element"),$=L("text"),z=L("tooltip"),J=o=>{const s=n(H,o),{accessKey:i,ariaControls:t,ariaDescription:r,ariaDescriptionId:d,ariaExpanded:c,ariaHasPopup:p,ariaSelected:m,class:b,customClass:u,disabled:f,handleBlur:h,handleClick:v,handleFocus:x,handleMouseDown:j,hideLabel:y,icons:g,id:I,inline:S,label:T,name:E,refButton:F,refTooltip:N,role:M,shortKey:O,tabIndex:P,type:q,variant:A}=s,L=a(s,["accessKey","ariaControls","ariaDescription","ariaDescriptionId","ariaExpanded","ariaHasPopup","ariaSelected","class","customClass","disabled","handleBlur","handleClick","handleFocus","handleMouseDown","hideLabel","icons","id","inline","label","name","refButton","refTooltip","role","shortKey","tabIndex","type","variant","on","tooltipAlign"]),J=i||O,V=l(T).length>0,X=r.trim().length>0;return e(C,Object.assign({block:"kol-button",class:K(b,{[D(A,"button")]:A.length>0,[u]:u.length>0}),modifiers:{disabled:f,"hide-label":y,inline:!0===S,standalone:!1===S}},L),e("button",{ref:F,accessKey:i||void 0,"aria-controls":t||void 0,"aria-describedby":X?d:void 0,"aria-expanded":c||void 0,"aria-haspopup":p||void 0,"aria-keyshortcuts":O||void 0,"aria-label":y&&V?l(T):void 0,"aria-selected":m||void 0,class:Z,disabled:f,id:I||void 0,name:E||void 0,onBlur:h,onClick:v,onFocus:x,onMouseDown:j,role:M||void 0,tabIndex:P,type:q},e(k,{class:$,badgeText:J,icons:g,hideLabel:y,label:T},e("slot",{name:"expert",slot:"expert"}))),y&&V&&e("div",{class:z},e(w,{badgeText:J,label:T,refFloating:N})),X&&e(B,{description:r,descriptionId:d}))};export{J as B,M as a,H as b,O as c,q as d,N as e,A as n}
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{h as a}from"./index-DEcM8BEc.js";import{t as o}from"./i18n-ePBcLlCr.js";import{e}from"./common-BdSzSIXg.js";import{c as s,b as i,a as r,r as t,t as n}from"./props-from-config-ytxYrJUY.js";import{a as l,b as d,c,f as p,g as m,h as f,s as b,i as v,l as k,d as g,t as h,e as j,v as x,A as u,j as y}from"./component-D4-NVnsT.js";import{b as C}from"./bem-registry-D1KgKnyz.js";import{c as D}from"./clsx-COFh-Vc8.js";import{p as w}from"./element-interaction-sGYdEpmv.js";import{B as K}from"./component-Ccv2lqNq.js";import{I as _}from"./component-EDDTMC-J.js";import{S as I}from"./component-D9NreIlK.js";import{T}from"./component-D6_K50vT.js";import{d as B}from"./disabled-BZXlWAgK.js";import{h as L}from"./href-CxokGOJ2.js";import{l as O}from"./label-with-expert-slot-BbZ9nx0l.js";import{l as A}from"./link-target-D7lYILOV.js";const E=["date","location","page","step","time","true","false"],S=s("ariaCurrentValue","page",(function(a){const o=i(a);return E.includes(o)?o:"page"})),V=s("ariaOwns","",i),Y=s("download",void 0,i),q=r(),J={required:[L],optional:[l,d,S,c,p,V,m,B,Y,f,b,v,O,q,k,A,g,h,j,x]},M=C.forBlock("kol-link"),N=(s,i)=>{const{accessKey:r,ariaControls:l,ariaCurrent:d,ariaDescription:c,ariaDescriptionId:p,ariaExpanded:m,ariaOwns:f,class:b,customClass:v,disabled:k,download:g,handleAnchorClick:h,hideLabel:j,href:x,icons:C,inline:B,label:L,on:O,ref:A,refAnchor:E,refTooltip:S,role:V,shortKey:Y,tabIndex:q,target:N,variant:$,expertSlot:z}=t(J,s),F=o("kol-open-link-in-tab"),G="string"==typeof N&&N.length>0&&"_self"!==N,X={href:"string"==typeof x&&x.length>0?x:"javascript:void(0);",target:"string"==typeof N&&N.length>0?N:void 0,rel:G?"noopener":void 0,download:"string"==typeof g?g:void 0};!0===j&&""===n(L)&&e("[KolLink] An aria-label must be set when _hide-label is set.");const Z=null==c?void 0:c.trim(),P=V||void 0;return a(K,{block:"kol-link",ref:A,class:D(b,{[v]:$.includes("custom")&&v.length>0,[y($,"link")]:$.length>0}),modifiers:{disabled:!0===k,"external-link":G,"hide-label":!0===j,inline:!0===B,standalone:!1===B}},a("a",Object.assign({ref:E},X,{href:X.href,accessKey:r||void 0,"aria-current":d||void 0,"aria-controls":l||void 0,"aria-describedby":Z?p:void 0,"aria-disabled":k?"true":void 0,"aria-expanded":""===m?void 0:m,"aria-owns":f||void 0,"aria-label":j&&""!==n(L)?`${n(L)}${G?` (${F})`:""}`:void 0,"aria-keyshortcuts":Y||void 0,class:M("interactive-element")},O,{onClick:h,onMouseDown:k?w:void 0,role:P,tabIndex:k?-1:q}),a(I,{class:"kol-link__text",badgeText:r||Y,icons:C,hideLabel:j,label:z?"":L||x},i.length>0?i:a("slot",{name:"expert",slot:"expert"})),G&&a(_,{class:"kol-link__icon",label:j?"":F,icons:"kolicon-link-external","aria-hidden":j})),!0===j&&!z&&a("div",{class:"kol-link__tooltip"},a(T,{badgeText:r||Y||"",label:""!==n(L)?L:"string"==typeof x?x:"",refFloating:S})),Z&&a(u,{description:Z,descriptionId:p}))};export{N as L,S as a,q as b,V as c,Y as d,J as l}
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{a as s}from"./tslib.es6-QNbPBOk5.js";import{h as o}from"./index-DEcM8BEc.js";import{c}from"./clsx-COFh-Vc8.js";import{g as r}from"./block-bem-D3ixJyOY.js";const m=(m,i)=>{var{block:t,modifiers:e,class:a,component:l="div"}=m,n=s(m,["block","modifiers","class","component"]);const b=r(t);return o(l,Object.assign({class:c(b(e),a)},n),i)};export{m as B}
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{a as o}from"./tslib.es6-QNbPBOk5.js";import{h as l,F as e}from"./index-DEcM8BEc.js";import{g as r}from"./Heading-GZb1f2pZ.js";import{t as a}from"./i18n-ePBcLlCr.js";import"./common-BdSzSIXg.js";import{t as s}from"./props-from-config-ytxYrJUY.js";import{b as i}from"./bem-registry-D1KgKnyz.js";import{c as n}from"./clsx-COFh-Vc8.js";import{B as t}from"./component-Ccv2lqNq.js";import{B as c}from"./component-B3OziaRC.js";import{r as d}from"./component-D9NreIlK.js";import{I as p}from"./component-EDDTMC-J.js";const m=i.forBlock("kol-alert")("icon"),f={error:{label:a("kol-error"),icon:"kolicon-alert-error"},info:{label:a("kol-info"),icon:"kolicon-alert-info"},warning:{label:a("kol-warning"),icon:"kolicon-alert-warning"},success:{label:a("kol-success"),icon:"kolicon-alert-success"},default:{label:a("kol-message"),icon:"kolicon-alert-info"}},k=({type:o="default"})=>{const r=f[o||"default"];return l(e,null,l("span",{class:"visually-hidden"},r.label),l(p,{class:m,label:"",icons:r.icon}))},b=i.forBlock("kol-alert"),u=b("closer"),h=b("content"),C=void 0,g=(e,i)=>{const{alert:p,class:m,closerAriaDescriptionId:f,handleCloserClick:g,hasCloser:v,headingId:j,label:y,level:B,refCloserButton:D,refCloserTooltip:I,type:x,variant:K}=e,w=o(e,["alert","class","closerAriaDescriptionId","handleCloserClick","hasCloser","headingId","label","level","refCloserButton","refCloserTooltip","type","variant"]),A=a("kol-close-alert"),E=r(null!=B?B:0);return l(t,Object.assign({block:"kol-alert",class:m,modifiers:{hasCloser:!0===v,[`type-${x}`]:!0,[`variant-${K}`]:!0},role:p?"alert":void 0},w),l(k,{type:x}),!!(null==y?void 0:y.length)&&l(E,{class:n("kol-headline",`kol-headline--${E}`,b("heading",{[`h${B}`]:!0}),"kol-headline--single"),id:j},d(y)),v&&l(c,{accessKey:"",ariaControls:"",ariaDescription:s(y),ariaDescriptionId:f,ariaExpanded:C,ariaHasPopup:"",ariaSelected:C,class:n(u,"kol-close-button"),customClass:"",disabled:!1,handleBlur:()=>{},handleClick:g,handleFocus:()=>{},handleMouseDown:()=>{},hideLabel:!0,icons:{left:{icon:"kolicon-cross"}},id:"",inline:!1,label:A,name:"",on:{},refButton:D,refTooltip:I,role:C,shortKey:"",tabIndex:C,tooltipAlign:"top",type:"button",variant:["normal"]}),l("div",{"aria-describedby":(null==y?void 0:y.length)?j:void 0,class:h},i))};export{g as A}
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{n as r}from"./common-BdSzSIXg.js";import{c as t,b as n,u as o,n as e,i as a,w as s,o as i}from"./props-from-config-ytxYrJUY.js";import{a as f}from"./validators-CTjxOidB.js";import{c}from"./component-D6_K50vT.js";import{h as u}from"./index-DEcM8BEc.js";const p=(r,t)=>{let n="";return Array.isArray(r)&&r.forEach((r=>{n+="kol-"+t+"--"+r+" "})),n},l=t("accessKey","",n),d=t("ariaControls","",n),m=t("ariaDescription","",n),y=t("ariaExpanded","",(function(r){return o(r,"aria-expanded")})),b=t("customClass","",n,(function(r){return""===r||f(r)})),g=t("hideLabel",!1,e),v=t("inline",!0,e),h=["tab","treeitem"],j=t("role","",(function(r){if(""===r)return"";if(a(r,h))return r;throw new Error(`Invalid role: expected one of ${h.join(", ")}, got ${JSON.stringify(r)}`)})),x=t("shortKey","",n),I=t("icons",{},(function(r){if(!r||"string"==typeof r&&""===r)return{};if("string"==typeof r&&/^[{[]/.test(r.trim()))return s(r);if("string"==typeof r)return n(r);if("object"==typeof r)return s(r);throw new Error("Invalid icons: "+typeof r)}),(function(r){return"string"==typeof r?r.length>0:"object"==typeof r&&null!==r})),w=t("tabIndex",0,i,void 0,{hints:(t,n)=>{"number"==typeof n&&n>0&&r(`Positive tabIndex values ("${n}") can disrupt the natural tab order. Use 0 for tabbable elements or rely on DOM order.`)}}),E=c("tooltipAlign","right"),A=t("variant",[],(function(r){return Array.isArray(r)?r:"string"==typeof r?r.split(" "):[]}),(function(r){return 0===r.length||r.every(f)})),D=({description:r,descriptionId:t})=>r?u("span",{class:"visually-hidden",id:t},r):null;export{D as A,l as a,d as b,m as c,x as d,E as e,y as f,b as g,g as h,v as i,p as j,j as l,I as s,w as t,A as v}
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{c as o,b as r,i as t}from"./props-from-config-ytxYrJUY.js";import{h as s}from"./index-DEcM8BEc.js";import{b as e}from"./bem-registry-D1KgKnyz.js";import{S as i}from"./component-D9NreIlK.js";const a=["left","right","top","bottom"];function n(s,e){return o(s,e,(o=>{const e=r(o);if(t(e,a))return e;throw new Error(`Invalid ${s} value: ${e}`)}))}const l=e.forBlock("kol-tooltip"),c=({label:o,badgeText:r,id:t,refFloating:e})=>s("div",{class:l("floating"),hidden:!o,ref:e},s("div",{class:l("arrow")}),s(i,{class:l("content"),badgeText:r,id:t,label:o}));export{c as T,n as c}
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{h as s,F as a}from"./index-DEcM8BEc.js";import{t as n}from"./i18n-ePBcLlCr.js";import{b as r}from"./bem-registry-D1KgKnyz.js";import{B as o}from"./component-Ccv2lqNq.js";import{c as e,n as t,b as l,r as i}from"./props-from-config-ytxYrJUY.js";import"./common-BdSzSIXg.js";import{l as c}from"./label-B-Dr7VaP.js";const p=e("show",!1,t),m=["dot","cycle","none"],u=e("variant","dot",(s=>{const a=l(s);if(m.includes(a))return a;throw new Error(`Invalid spin variant: ${a}`)}),(()=>!0)),d={optional:[c,p,u]},f=r.forBlock("kol-spin"),y=f("loader"),b=["1","2","3","neutral"],v=r=>{const{show:e,label:t,variant:l}=i(d,r);return s(o,{block:"kol-spin"},e?s(a,null,s("span",{class:f("spinner",{[l]:!0})},function(a){switch(a){case"cycle":return s("span",{class:y});case"none":return s("slot",{name:"expert"});default:return b.map((a=>s("span",{class:f("spinner-element",{[a]:!0})})))}}(l)),s("span",{"aria-busy":"true",class:"visually-hidden",role:"alert"},t||n("kol-action-running"))):s("span",{"aria-busy":"false",class:"visually-hidden",role:"alert"},t||n("kol-action-done")))};export{v as S,p as a,d as s,u as v}