@public-ui/components 4.6.0-rc.2 → 4.6.0-rc.3

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 (447) 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 +3 -3
  7. package/dist/cjs/{Heading-CmnijhLd.js → Heading-DqZXie2T.js} +1 -1
  8. package/dist/cjs/{api-Bg7hdIrJ.js → api-Cc1hT-oO.js} +19 -18
  9. package/dist/cjs/{app-globals-BwYPSMbG.js → app-globals-DtXiFJRj.js} +2 -2
  10. package/dist/cjs/{aria-labelledby-BRMgWRVp.js → aria-labelledby-By2dgbCn.js} +0 -13
  11. package/dist/cjs/{base-JFyPasp9.js → base-B-wbGF-X.js} +20 -29
  12. package/dist/cjs/{base-ob1X79UM.js → base-BKsPSdXS.js} +5 -5
  13. package/dist/cjs/{base-BVhV5HmV.js → base-BjiXfuju.js} +4 -4
  14. package/dist/cjs/{base-CQB0r-ZQ.js → base-CoMrpiHg.js} +4 -4
  15. package/dist/cjs/{base-web-component-dI9FmFIm.js → base-web-component-BXtl3Nmq.js} +5 -5
  16. package/dist/cjs/{base-web-component-DBcJrpRb.js → base-web-component-DApRK7Vs.js} +6 -6
  17. package/dist/cjs/{behavior-CUmF8rJf.js → behavior-DIv2ciyM.js} +1 -1
  18. package/dist/cjs/{behavior-DujaVCwV.js → behavior-DtHCmCCv.js} +2 -2
  19. package/dist/cjs/{behavior-B5wr2A8R.js → behavior-GG5TOrTV.js} +3 -10
  20. package/dist/cjs/{bem-registry-B6QoNC9E.js → bem-registry-h_moyLBn.js} +39 -0
  21. package/dist/cjs/{block-bem-ByCgFI2B.js → block-bem-BVBM34Tu.js} +1 -1
  22. package/dist/cjs/{component-DFhuXUqv.js → component-BE_fK-Xu.js} +7 -7
  23. package/dist/cjs/{component-DprHBKdZ.js → component-BOI4FdZE.js} +3 -3
  24. package/dist/cjs/{component-Doln6Ltn.js → component-C9B-yJ93.js} +3 -3
  25. package/dist/cjs/{component-BexD3069.js → component-CNNGo5gU.js} +6 -6
  26. package/dist/cjs/{component-1J4G5HmZ.js → component-CVLJJvvd.js} +6 -6
  27. package/dist/cjs/{component-BilLJFfC.js → component-Cnc2NyzE.js} +2 -2
  28. package/dist/cjs/{component-Cqp00Tb9.js → component-CsnTf_45.js} +6 -6
  29. package/dist/cjs/{component-Bza8hlo-.js → component-CxwSVBBv.js} +7 -7
  30. package/dist/cjs/{component-DGVc4bOy.js → component-D0uxhuF3.js} +4 -4
  31. package/dist/cjs/{component-DkV9oPCL.js → component-DNQW0lG8.js} +2 -2
  32. package/dist/cjs/{component-CjXcCX2V.js → component-DfGgpwuP.js} +2 -2
  33. package/dist/cjs/{component-Cbbx7Z6c.js → component-DlyhBQIa.js} +3 -3
  34. package/dist/cjs/{dev.utils-Bx4sgPsr.js → dev.utils-DTQy7QrG.js} +1 -1
  35. package/dist/cjs/{devtools-BXBKJice.js → devtools-BAChPN0l.js} +2 -2
  36. package/dist/cjs/{field-control-B95uzQnW.js → field-control-Bxj6Xuu8.js} +7 -7
  37. package/dist/cjs/{group-DGS7K6Ja.js → group-BUdQbdkp.js} +5 -5
  38. package/dist/cjs/{index-Ccvyz7Rq.js → index-BaB_2Z5W.js} +1 -1
  39. package/dist/cjs/index.cjs.js +1 -1
  40. package/dist/cjs/{input-BKXEykG_.js → input-CtqTozTO.js} +4 -4
  41. package/dist/cjs/{input-container-CWb_kRbs.js → input-container-BcwbGU2R.js} +6 -6
  42. package/dist/cjs/{item-wr5KfPYM.js → item-BLrLbhAD.js} +6 -6
  43. package/dist/cjs/{item-DgNTEUz3.js → item-BXt0-A5j.js} +8 -8
  44. package/dist/cjs/{item-C4Boh5Cz.js → item-BYKMN41a.js} +3 -3
  45. package/dist/cjs/{item-vDMQvV0t.js → item-DJ-XUS77.js} +3 -3
  46. package/dist/cjs/kol-abbr.cjs.entry.js +4 -4
  47. package/dist/cjs/kol-accordion.cjs.entry.js +9 -9
  48. package/dist/cjs/kol-alert.cjs.entry.js +14 -14
  49. package/dist/cjs/kol-avatar.cjs.entry.js +2 -2
  50. package/dist/cjs/kol-badge.cjs.entry.js +14 -14
  51. package/dist/cjs/kol-breadcrumb.cjs.entry.js +12 -12
  52. package/dist/cjs/kol-button-link.cjs.entry.js +14 -14
  53. package/dist/cjs/kol-button.cjs.entry.js +14 -14
  54. package/dist/cjs/kol-card.cjs.entry.js +15 -15
  55. package/dist/cjs/kol-combobox.cjs.entry.js +24 -24
  56. package/dist/cjs/kol-details.cjs.entry.js +9 -9
  57. package/dist/cjs/kol-dialog.cjs.entry.js +17 -17
  58. package/dist/cjs/kol-drawer.cjs.entry.js +16 -16
  59. package/dist/cjs/kol-form.cjs.entry.js +14 -14
  60. package/dist/cjs/kol-heading.cjs.entry.js +4 -4
  61. package/dist/cjs/kol-icon.cjs.entry.js +4 -4
  62. package/dist/cjs/kol-image.cjs.entry.js +2 -2
  63. package/dist/cjs/kol-input-checkbox.cjs.entry.js +42 -41
  64. package/dist/cjs/kol-input-color.cjs.entry.js +33 -32
  65. package/dist/cjs/kol-input-date.cjs.entry.js +31 -30
  66. package/dist/cjs/kol-input-email.cjs.entry.js +36 -35
  67. package/dist/cjs/kol-input-file.cjs.entry.js +28 -27
  68. package/dist/cjs/kol-input-number.cjs.entry.js +32 -31
  69. package/dist/cjs/kol-input-password.cjs.entry.js +30 -29
  70. package/dist/cjs/kol-input-radio.cjs.entry.js +27 -27
  71. package/dist/cjs/kol-input-range.cjs.entry.js +27 -27
  72. package/dist/cjs/kol-input-text.cjs.entry.js +29 -28
  73. package/dist/cjs/kol-kolibri.cjs.entry.js +4 -4
  74. package/dist/cjs/kol-link-button.cjs.entry.js +13 -13
  75. package/dist/cjs/kol-link.cjs.entry.js +13 -13
  76. package/dist/cjs/kol-meter.cjs.entry.js +4 -4
  77. package/dist/cjs/kol-modal.cjs.entry.js +17 -17
  78. package/dist/cjs/kol-nav.cjs.entry.js +17 -17
  79. package/dist/cjs/kol-pagination.cjs.entry.js +24 -24
  80. package/dist/cjs/kol-popover-button.cjs.entry.js +15 -15
  81. package/dist/cjs/kol-progress.cjs.entry.js +4 -4
  82. package/dist/cjs/kol-quote.cjs.entry.js +2 -2
  83. package/dist/cjs/kol-select.cjs.entry.js +27 -27
  84. package/dist/cjs/kol-single-select.cjs.entry.js +24 -24
  85. package/dist/cjs/kol-skip-nav.cjs.entry.js +12 -12
  86. package/dist/cjs/kol-spin.cjs.entry.js +5 -5
  87. package/dist/cjs/kol-split-button.cjs.entry.js +17 -17
  88. package/dist/cjs/kol-table-stateful.cjs.entry.js +33 -34
  89. package/dist/cjs/kol-table-stateless.cjs.entry.js +26 -27
  90. package/dist/cjs/kol-tabs.cjs.entry.js +13 -13
  91. package/dist/cjs/kol-textarea.cjs.entry.js +25 -25
  92. package/dist/cjs/kol-toast-container.cjs.entry.js +13 -13
  93. package/dist/cjs/kol-toolbar.cjs.entry.js +15 -15
  94. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +6 -6
  95. package/dist/cjs/kol-tree-item.cjs.entry.js +16 -13
  96. package/dist/cjs/kol-tree.cjs.entry.js +17 -6
  97. package/dist/cjs/kol-version.cjs.entry.js +11 -11
  98. package/dist/cjs/kolibri.cjs.js +2 -2
  99. package/dist/cjs/loader.cjs.js +2 -2
  100. package/dist/cjs/{resolve-props-pZBj0tIz.js → resolve-props-B7klWjLx.js} +2 -2
  101. package/dist/cjs/{resolve-props-B_ytLWBO.js → resolve-props-c-uwDulF.js} +2 -2
  102. package/dist/cjs/{scroll-lock-DguXX-Em.js → scroll-lock-daUQqmx_.js} +2 -2
  103. package/dist/cjs/{suggestions-C6Q3kj5J.js → suggestions-D3snLGL_.js} +2 -2
  104. package/dist/cjs/test-component.cjs.entry.js +1 -1
  105. package/dist/cjs/{toggle-handler-BaOOa9I5.js → toggle-handler-B0xib7fH.js} +4 -4
  106. package/dist/collection/components/accordion/style.css +2 -2
  107. package/dist/collection/components/alert/style.css +2 -2
  108. package/dist/collection/components/badge/style.css +2 -2
  109. package/dist/collection/components/breadcrumb/style.css +2 -2
  110. package/dist/collection/components/button/style.css +2 -2
  111. package/dist/collection/components/button-link/style.css +2 -2
  112. package/dist/collection/components/card/style.css +5 -2
  113. package/dist/collection/components/combobox/style.css +2 -2
  114. package/dist/collection/components/details/style.css +2 -2
  115. package/dist/collection/components/dialog/style.css +5 -2
  116. package/dist/collection/components/drawer/style.css +5 -2
  117. package/dist/collection/components/form/style.css +2 -2
  118. package/dist/collection/components/icon/style.css +2 -2
  119. package/dist/collection/components/input-checkbox/component.js +13 -11
  120. package/dist/collection/components/input-checkbox/style.css +2 -2
  121. package/dist/collection/components/input-color/component.js +6 -4
  122. package/dist/collection/components/input-color/style.css +2 -2
  123. package/dist/collection/components/input-date/component.js +5 -3
  124. package/dist/collection/components/input-date/style.css +2 -2
  125. package/dist/collection/components/input-email/component.js +4 -1
  126. package/dist/collection/components/input-email/style.css +2 -2
  127. package/dist/collection/components/input-file/component.js +6 -3
  128. package/dist/collection/components/input-file/style.css +2 -2
  129. package/dist/collection/components/input-number/component.js +6 -4
  130. package/dist/collection/components/input-number/style.css +2 -2
  131. package/dist/collection/components/input-password/component.js +5 -2
  132. package/dist/collection/components/input-password/style.css +2 -2
  133. package/dist/collection/components/input-radio/style.css +2 -2
  134. package/dist/collection/components/input-range/style.css +2 -2
  135. package/dist/collection/components/input-text/component.js +4 -2
  136. package/dist/collection/components/input-text/style.css +2 -2
  137. package/dist/collection/components/link/style.css +2 -2
  138. package/dist/collection/components/link-button/style.css +2 -2
  139. package/dist/collection/components/modal/style.css +5 -2
  140. package/dist/collection/components/nav/style.css +2 -2
  141. package/dist/collection/components/pagination/style.css +2 -2
  142. package/dist/collection/components/popover-button/style.css +2 -2
  143. package/dist/collection/components/select/style.css +2 -2
  144. package/dist/collection/components/single-select/style.css +2 -2
  145. package/dist/collection/components/skip-nav/style.css +2 -2
  146. package/dist/collection/components/split-button/style.css +2 -2
  147. package/dist/collection/components/table-stateful/component.js +3 -5
  148. package/dist/collection/components/table-stateful/style.css +5 -2
  149. package/dist/collection/components/table-stateless/component.js +3 -5
  150. package/dist/collection/components/table-stateless/style.css +5 -2
  151. package/dist/collection/components/tabs/style.css +2 -2
  152. package/dist/collection/components/textarea/style.css +2 -2
  153. package/dist/collection/components/toaster/style.css +2 -2
  154. package/dist/collection/components/toolbar/style.css +2 -2
  155. package/dist/collection/components/tree/component.js +15 -4
  156. package/dist/collection/components/tree-item/component.js +5 -2
  157. package/dist/collection/components/tree-item/style.css +2 -2
  158. package/dist/collection/components/version/style.css +2 -2
  159. package/dist/collection/internal/functional-components/form-association/api.js +2 -2
  160. package/dist/collection/internal/functional-components/form-association/behavior.js +1 -5
  161. package/dist/collection/internal/functional-components/form-field/base-web-component.js +0 -1
  162. package/dist/collection/schema/bem-registry.js +39 -0
  163. package/dist/collection/schema/props/aria-details.js +1 -22
  164. package/dist/collection/schema/props/aria-labelledby.js +3 -12
  165. package/dist/collection/utils/aria-labelledby.js +0 -12
  166. package/dist/components/aria-labelledby.js +1 -1
  167. package/dist/components/base-web-component2.js +1 -1
  168. package/dist/components/base4.js +1 -1
  169. package/dist/components/behavior3.js +1 -1
  170. package/dist/components/bem-registry.js +1 -1
  171. package/dist/components/kol-accordion.js +1 -1
  172. package/dist/components/kol-alert.js +1 -1
  173. package/dist/components/kol-badge.js +1 -1
  174. package/dist/components/kol-breadcrumb.js +1 -1
  175. package/dist/components/kol-button-link.js +1 -1
  176. package/dist/components/kol-button.js +1 -1
  177. package/dist/components/kol-card.js +1 -1
  178. package/dist/components/kol-combobox.js +1 -1
  179. package/dist/components/kol-details.js +1 -1
  180. package/dist/components/kol-dialog.js +1 -1
  181. package/dist/components/kol-drawer.js +1 -1
  182. package/dist/components/kol-form.js +1 -1
  183. package/dist/components/kol-icon.js +1 -1
  184. package/dist/components/kol-input-checkbox.js +1 -1
  185. package/dist/components/kol-input-color.js +1 -1
  186. package/dist/components/kol-input-date.js +1 -1
  187. package/dist/components/kol-input-email.js +1 -1
  188. package/dist/components/kol-input-file.js +1 -1
  189. package/dist/components/kol-input-number.js +1 -1
  190. package/dist/components/kol-input-password.js +1 -1
  191. package/dist/components/kol-input-radio.js +1 -1
  192. package/dist/components/kol-input-range.js +1 -1
  193. package/dist/components/kol-input-text.js +1 -1
  194. package/dist/components/kol-link-button.js +1 -1
  195. package/dist/components/kol-link.js +1 -1
  196. package/dist/components/kol-modal.js +1 -1
  197. package/dist/components/kol-nav.js +1 -1
  198. package/dist/components/kol-pagination.js +1 -1
  199. package/dist/components/kol-popover-button.js +1 -1
  200. package/dist/components/kol-select.js +1 -1
  201. package/dist/components/kol-single-select.js +1 -1
  202. package/dist/components/kol-skip-nav.js +1 -1
  203. package/dist/components/kol-split-button.js +1 -1
  204. package/dist/components/kol-table-stateful.js +1 -1
  205. package/dist/components/kol-table-stateless.js +1 -1
  206. package/dist/components/kol-tabs.js +1 -1
  207. package/dist/components/kol-textarea.js +1 -1
  208. package/dist/components/kol-toast-container.js +1 -1
  209. package/dist/components/kol-toolbar.js +1 -1
  210. package/dist/components/kol-tree-item.js +1 -1
  211. package/dist/components/kol-tree.js +1 -1
  212. package/dist/components/kol-version.js +1 -1
  213. package/dist/esm/{Heading-C_CwXDMp.js → Heading-GZb1f2pZ.js} +1 -1
  214. package/dist/esm/{api-DGiFM9p0.js → api-CBPlj155.js} +18 -17
  215. package/dist/esm/{app-globals-sZHZyXjD.js → app-globals-DRl9A82c.js} +2 -2
  216. package/dist/esm/{aria-labelledby-CLehu03h.js → aria-labelledby-DqJY_4G-.js} +1 -13
  217. package/dist/esm/{base-B4sGK9cX.js → base-BByRnpRm.js} +5 -5
  218. package/dist/esm/{base-DTKJ1Z06.js → base-C7BBsrYZ.js} +21 -30
  219. package/dist/esm/{base-P1TaQ7Ba.js → base-DO0KvOv9.js} +4 -4
  220. package/dist/esm/{base-CWrvN3Gt.js → base-Dtxcvto_.js} +4 -4
  221. package/dist/esm/{base-web-component-CKgIOZqi.js → base-web-component-BxXLva5d.js} +5 -5
  222. package/dist/esm/{base-web-component-Bq_B9edx.js → base-web-component-CfPyCJDJ.js} +6 -6
  223. package/dist/esm/{behavior-Bb7JYoUn.js → behavior-CKU2tmCj.js} +1 -1
  224. package/dist/esm/{behavior-CFG1f4KQ.js → behavior-CsNDRS2z.js} +2 -2
  225. package/dist/esm/{behavior-CkPQGfgo.js → behavior-ewHvUWVk.js} +4 -10
  226. package/dist/esm/{bem-registry-DQUGxdIS.js → bem-registry-D1KgKnyz.js} +39 -0
  227. package/dist/esm/{block-bem-BGIVcYJu.js → block-bem-D3ixJyOY.js} +1 -1
  228. package/dist/esm/{component-5Uu-ahLC.js → component-6l69Jvwl.js} +4 -4
  229. package/dist/esm/{component-B16Fbp3W.js → component-B3OziaRC.js} +6 -6
  230. package/dist/esm/{component-Bc2pdOk1.js → component-By8ggItU.js} +6 -6
  231. package/dist/esm/{component-DAQzDMY8.js → component-CF8uFG0A.js} +7 -7
  232. package/dist/esm/{component-B05zRrM0.js → component-Ccv2lqNq.js} +2 -2
  233. package/dist/esm/{component-BI8jDgBz.js → component-Cmi6iGfA.js} +7 -7
  234. package/dist/esm/{component-C79oAu7a.js → component-D4-NVnsT.js} +2 -2
  235. package/dist/esm/{component-W1KZI4h4.js → component-D6_K50vT.js} +3 -3
  236. package/dist/esm/{component-CldKbBUh.js → component-D6lo0LzE.js} +3 -3
  237. package/dist/esm/{component-oUQcgxDj.js → component-D9NreIlK.js} +3 -3
  238. package/dist/esm/{component-Ct11K0Gv.js → component-DAk3R8NN.js} +6 -6
  239. package/dist/esm/{component-Clz6b6ho.js → component-EDDTMC-J.js} +2 -2
  240. package/dist/esm/{dev.utils-DDWOHUcg.js → dev.utils-BwYCy1rP.js} +1 -1
  241. package/dist/esm/{devtools-B0kEE_za.js → devtools-CGP3Nzsw.js} +2 -2
  242. package/dist/esm/{field-control-DsQHa0v9.js → field-control-0TRmF7Ea.js} +7 -7
  243. package/dist/esm/{group-DUVsgWxS.js → group-DapkT_Yh.js} +5 -5
  244. package/dist/esm/{index-Dulj0jro.js → index-DEcM8BEc.js} +1 -1
  245. package/dist/esm/index.js +1 -1
  246. package/dist/esm/{input-C0Li7DsE.js → input-CDUCo1S5.js} +4 -4
  247. package/dist/esm/{input-container-DmtMTcjB.js → input-container-BipAkWn4.js} +6 -6
  248. package/dist/esm/{item-8RKFpmbd.js → item-B0oQTeju.js} +3 -3
  249. package/dist/esm/{item-DHZGDrAn.js → item-Boe3t0Dm.js} +6 -6
  250. package/dist/esm/{item-CnJMuEyl.js → item-BvnZc8uV.js} +3 -3
  251. package/dist/esm/{item-CxVe5INa.js → item-UgJ2uikD.js} +8 -8
  252. package/dist/esm/kol-abbr.entry.js +4 -4
  253. package/dist/esm/kol-accordion.entry.js +9 -9
  254. package/dist/esm/kol-alert.entry.js +14 -14
  255. package/dist/esm/kol-avatar.entry.js +2 -2
  256. package/dist/esm/kol-badge.entry.js +14 -14
  257. package/dist/esm/kol-breadcrumb.entry.js +12 -12
  258. package/dist/esm/kol-button-link.entry.js +14 -14
  259. package/dist/esm/kol-button.entry.js +14 -14
  260. package/dist/esm/kol-card.entry.js +15 -15
  261. package/dist/esm/kol-combobox.entry.js +24 -24
  262. package/dist/esm/kol-details.entry.js +9 -9
  263. package/dist/esm/kol-dialog.entry.js +17 -17
  264. package/dist/esm/kol-drawer.entry.js +16 -16
  265. package/dist/esm/kol-form.entry.js +14 -14
  266. package/dist/esm/kol-heading.entry.js +4 -4
  267. package/dist/esm/kol-icon.entry.js +4 -4
  268. package/dist/esm/kol-image.entry.js +2 -2
  269. package/dist/esm/kol-input-checkbox.entry.js +42 -41
  270. package/dist/esm/kol-input-color.entry.js +33 -32
  271. package/dist/esm/kol-input-date.entry.js +31 -30
  272. package/dist/esm/kol-input-email.entry.js +36 -35
  273. package/dist/esm/kol-input-file.entry.js +28 -27
  274. package/dist/esm/kol-input-number.entry.js +32 -31
  275. package/dist/esm/kol-input-password.entry.js +30 -29
  276. package/dist/esm/kol-input-radio.entry.js +27 -27
  277. package/dist/esm/kol-input-range.entry.js +27 -27
  278. package/dist/esm/kol-input-text.entry.js +29 -28
  279. package/dist/esm/kol-kolibri.entry.js +4 -4
  280. package/dist/esm/kol-link-button.entry.js +13 -13
  281. package/dist/esm/kol-link.entry.js +13 -13
  282. package/dist/esm/kol-meter.entry.js +4 -4
  283. package/dist/esm/kol-modal.entry.js +17 -17
  284. package/dist/esm/kol-nav.entry.js +17 -17
  285. package/dist/esm/kol-pagination.entry.js +24 -24
  286. package/dist/esm/kol-popover-button.entry.js +15 -15
  287. package/dist/esm/kol-progress.entry.js +4 -4
  288. package/dist/esm/kol-quote.entry.js +2 -2
  289. package/dist/esm/kol-select.entry.js +27 -27
  290. package/dist/esm/kol-single-select.entry.js +24 -24
  291. package/dist/esm/kol-skip-nav.entry.js +12 -12
  292. package/dist/esm/kol-spin.entry.js +5 -5
  293. package/dist/esm/kol-split-button.entry.js +17 -17
  294. package/dist/esm/kol-table-stateful.entry.js +33 -34
  295. package/dist/esm/kol-table-stateless.entry.js +26 -27
  296. package/dist/esm/kol-tabs.entry.js +13 -13
  297. package/dist/esm/kol-textarea.entry.js +25 -25
  298. package/dist/esm/kol-toast-container.entry.js +13 -13
  299. package/dist/esm/kol-toolbar.entry.js +15 -15
  300. package/dist/esm/kol-tooltip-wc.entry.js +6 -6
  301. package/dist/esm/kol-tree-item.entry.js +16 -13
  302. package/dist/esm/kol-tree.entry.js +17 -6
  303. package/dist/esm/kol-version.entry.js +11 -11
  304. package/dist/esm/kolibri.js +3 -3
  305. package/dist/esm/loader.js +3 -3
  306. package/dist/esm/{resolve-props-Bj6IaybL.js → resolve-props-DTXKtzir.js} +2 -2
  307. package/dist/esm/{resolve-props-02J6OCRf.js → resolve-props-kM9N-fzf.js} +2 -2
  308. package/dist/esm/{scroll-lock-B6hVv8A8.js → scroll-lock-Bv-U2FHM.js} +2 -2
  309. package/dist/esm/{suggestions-DaB3FVaz.js → suggestions-D0u80DtA.js} +2 -2
  310. package/dist/esm/test-component.entry.js +1 -1
  311. package/dist/esm/{toggle-handler-3qaN2kmt.js → toggle-handler-mPlmvrq7.js} +4 -4
  312. package/dist/kolibri/Heading-GZb1f2pZ.js +4 -0
  313. package/dist/kolibri/api-CBPlj155.js +4 -0
  314. package/dist/kolibri/app-globals-DRl9A82c.js +4 -0
  315. package/dist/kolibri/aria-labelledby-DqJY_4G-.js +4 -0
  316. package/dist/kolibri/base-BByRnpRm.js +4 -0
  317. package/dist/kolibri/base-C7BBsrYZ.js +4 -0
  318. package/dist/kolibri/{base-P1TaQ7Ba.js → base-DO0KvOv9.js} +1 -1
  319. package/dist/kolibri/{base-CWrvN3Gt.js → base-Dtxcvto_.js} +1 -1
  320. package/dist/kolibri/{base-web-component-CKgIOZqi.js → base-web-component-BxXLva5d.js} +1 -1
  321. package/dist/kolibri/{base-web-component-Bq_B9edx.js → base-web-component-CfPyCJDJ.js} +1 -1
  322. package/dist/kolibri/{behavior-Bb7JYoUn.js → behavior-CKU2tmCj.js} +1 -1
  323. package/dist/kolibri/{behavior-CFG1f4KQ.js → behavior-CsNDRS2z.js} +1 -1
  324. package/dist/kolibri/behavior-ewHvUWVk.js +4 -0
  325. package/dist/kolibri/{bem-registry-DQUGxdIS.js → bem-registry-D1KgKnyz.js} +1 -1
  326. package/dist/kolibri/{block-bem-BGIVcYJu.js → block-bem-D3ixJyOY.js} +1 -1
  327. package/dist/kolibri/{component-5Uu-ahLC.js → component-6l69Jvwl.js} +1 -1
  328. package/dist/kolibri/component-B3OziaRC.js +4 -0
  329. package/dist/kolibri/{component-Bc2pdOk1.js → component-By8ggItU.js} +1 -1
  330. package/dist/kolibri/component-CF8uFG0A.js +4 -0
  331. package/dist/kolibri/component-Ccv2lqNq.js +4 -0
  332. package/dist/kolibri/component-Cmi6iGfA.js +4 -0
  333. package/dist/kolibri/component-D4-NVnsT.js +4 -0
  334. package/dist/kolibri/{component-W1KZI4h4.js → component-D6_K50vT.js} +1 -1
  335. package/dist/kolibri/component-D6lo0LzE.js +4 -0
  336. package/dist/kolibri/{component-oUQcgxDj.js → component-D9NreIlK.js} +1 -1
  337. package/dist/kolibri/{component-Ct11K0Gv.js → component-DAk3R8NN.js} +1 -1
  338. package/dist/kolibri/component-EDDTMC-J.js +4 -0
  339. package/dist/kolibri/{dev.utils-DDWOHUcg.js → dev.utils-BwYCy1rP.js} +1 -1
  340. package/dist/kolibri/{devtools-B0kEE_za.js → devtools-CGP3Nzsw.js} +1 -1
  341. package/dist/kolibri/field-control-0TRmF7Ea.js +4 -0
  342. package/dist/kolibri/{group-DUVsgWxS.js → group-DapkT_Yh.js} +1 -1
  343. package/dist/kolibri/{index-Dulj0jro.js → index-DEcM8BEc.js} +1 -1
  344. package/dist/kolibri/index.esm.js +1 -1
  345. package/dist/kolibri/input-CDUCo1S5.js +4 -0
  346. package/dist/kolibri/{input-container-DmtMTcjB.js → input-container-BipAkWn4.js} +1 -1
  347. package/dist/kolibri/item-B0oQTeju.js +4 -0
  348. package/dist/kolibri/item-Boe3t0Dm.js +4 -0
  349. package/dist/kolibri/item-BvnZc8uV.js +4 -0
  350. package/dist/kolibri/item-UgJ2uikD.js +4 -0
  351. package/dist/kolibri/kol-abbr.entry.js +1 -1
  352. package/dist/kolibri/kol-accordion.entry.js +1 -1
  353. package/dist/kolibri/kol-alert.entry.js +1 -1
  354. package/dist/kolibri/kol-avatar.entry.js +1 -1
  355. package/dist/kolibri/kol-badge.entry.js +1 -1
  356. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  357. package/dist/kolibri/kol-button-link.entry.js +1 -1
  358. package/dist/kolibri/kol-button.entry.js +1 -1
  359. package/dist/kolibri/kol-card.entry.js +1 -1
  360. package/dist/kolibri/kol-combobox.entry.js +1 -1
  361. package/dist/kolibri/kol-details.entry.js +1 -1
  362. package/dist/kolibri/kol-dialog.entry.js +1 -1
  363. package/dist/kolibri/kol-drawer.entry.js +1 -1
  364. package/dist/kolibri/kol-form.entry.js +1 -1
  365. package/dist/kolibri/kol-heading.entry.js +1 -1
  366. package/dist/kolibri/kol-icon.entry.js +1 -1
  367. package/dist/kolibri/kol-image.entry.js +1 -1
  368. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  369. package/dist/kolibri/kol-input-color.entry.js +1 -1
  370. package/dist/kolibri/kol-input-date.entry.js +1 -1
  371. package/dist/kolibri/kol-input-email.entry.js +1 -1
  372. package/dist/kolibri/kol-input-file.entry.js +1 -1
  373. package/dist/kolibri/kol-input-number.entry.js +1 -1
  374. package/dist/kolibri/kol-input-password.entry.js +1 -1
  375. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  376. package/dist/kolibri/kol-input-range.entry.js +1 -1
  377. package/dist/kolibri/kol-input-text.entry.js +1 -1
  378. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  379. package/dist/kolibri/kol-link-button.entry.js +1 -1
  380. package/dist/kolibri/kol-link.entry.js +1 -1
  381. package/dist/kolibri/kol-meter.entry.js +1 -1
  382. package/dist/kolibri/kol-modal.entry.js +1 -1
  383. package/dist/kolibri/kol-nav.entry.js +1 -1
  384. package/dist/kolibri/kol-pagination.entry.js +1 -1
  385. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  386. package/dist/kolibri/kol-progress.entry.js +1 -1
  387. package/dist/kolibri/kol-quote.entry.js +1 -1
  388. package/dist/kolibri/kol-select.entry.js +1 -1
  389. package/dist/kolibri/kol-single-select.entry.js +1 -1
  390. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  391. package/dist/kolibri/kol-spin.entry.js +1 -1
  392. package/dist/kolibri/kol-split-button.entry.js +1 -1
  393. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  394. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  395. package/dist/kolibri/kol-tabs.entry.js +1 -1
  396. package/dist/kolibri/kol-textarea.entry.js +1 -1
  397. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  398. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  399. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  400. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  401. package/dist/kolibri/kol-tree.entry.js +1 -1
  402. package/dist/kolibri/kol-version.entry.js +1 -1
  403. package/dist/kolibri/kolibri.esm.js +1 -1
  404. package/dist/kolibri/resolve-props-DTXKtzir.js +4 -0
  405. package/dist/kolibri/resolve-props-kM9N-fzf.js +4 -0
  406. package/dist/kolibri/scroll-lock-Bv-U2FHM.js +4 -0
  407. package/dist/kolibri/{suggestions-DaB3FVaz.js → suggestions-D0u80DtA.js} +1 -1
  408. package/dist/kolibri/test-component.entry.js +1 -1
  409. package/dist/kolibri/toggle-handler-mPlmvrq7.js +4 -0
  410. package/dist/types/components/table-stateful/component.d.ts +0 -1
  411. package/dist/types/components/table-stateless/component.d.ts +0 -1
  412. package/dist/types/components/tree/component.d.ts +1 -0
  413. package/dist/types/components.d.ts +4 -4
  414. package/dist/types/internal/functional-components/form-association/api.d.ts +1 -1
  415. package/dist/types/internal/functional-components/form-association/behavior.d.ts +0 -1
  416. package/dist/types/schema/bem-registry.d.ts +49 -0
  417. package/dist/types/schema/props/aria-details.d.ts +0 -2
  418. package/dist/types/schema/props/aria-labelledby.d.ts +1 -2
  419. package/dist/types/utils/aria-labelledby.d.ts +0 -6
  420. package/doc/table-stateful.md +16 -16
  421. package/doc/table-stateless.md +14 -14
  422. package/package.json +1 -1
  423. package/vscode-custom-data.json +2 -2
  424. package/dist/kolibri/Heading-C_CwXDMp.js +0 -4
  425. package/dist/kolibri/api-DGiFM9p0.js +0 -4
  426. package/dist/kolibri/app-globals-sZHZyXjD.js +0 -4
  427. package/dist/kolibri/aria-labelledby-CLehu03h.js +0 -4
  428. package/dist/kolibri/base-B4sGK9cX.js +0 -4
  429. package/dist/kolibri/base-DTKJ1Z06.js +0 -4
  430. package/dist/kolibri/behavior-CkPQGfgo.js +0 -4
  431. package/dist/kolibri/component-B05zRrM0.js +0 -4
  432. package/dist/kolibri/component-B16Fbp3W.js +0 -4
  433. package/dist/kolibri/component-BI8jDgBz.js +0 -4
  434. package/dist/kolibri/component-C79oAu7a.js +0 -4
  435. package/dist/kolibri/component-CldKbBUh.js +0 -4
  436. package/dist/kolibri/component-Clz6b6ho.js +0 -4
  437. package/dist/kolibri/component-DAQzDMY8.js +0 -4
  438. package/dist/kolibri/field-control-DsQHa0v9.js +0 -4
  439. package/dist/kolibri/input-C0Li7DsE.js +0 -4
  440. package/dist/kolibri/item-8RKFpmbd.js +0 -4
  441. package/dist/kolibri/item-CnJMuEyl.js +0 -4
  442. package/dist/kolibri/item-CxVe5INa.js +0 -4
  443. package/dist/kolibri/item-DHZGDrAn.js +0 -4
  444. package/dist/kolibri/resolve-props-02J6OCRf.js +0 -4
  445. package/dist/kolibri/resolve-props-Bj6IaybL.js +0 -4
  446. package/dist/kolibri/scroll-lock-B6hVv8A8.js +0 -4
  447. package/dist/kolibri/toggle-handler-3qaN2kmt.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{y as t,q as e}from"./common-BdSzSIXg.js";import{t as n,a as i}from"./tooltip-open-tracking-D3tCiiGP.js";import{c as o}from"./component-W1KZI4h4.js";import{c as r,b as s,d as l}from"./props-from-config-ytxYrJUY.js";import{i as a}from"./id-BI0ZuK17.js";import{l as c}from"./label-lang-segment-iVD9hoM3.js";const u=o("align","top"),f=r("badgeText","",s),h=Math.min,d=Math.max,m=Math.round,p=Math.floor,y=t=>({x:t,y:t}),w={left:"right",right:"left",bottom:"top",top:"bottom"};function g(t,e,n){return d(t,h(e,n))}function x(t,e){return"function"==typeof t?t(e):t}function v(t){return t.split("-")[0]}function b(t){return t.split("-")[1]}function A(t){return"x"===t?"y":"x"}function S(t){return"y"===t?"height":"width"}function T(t){const e=t[0];return"t"===e||"b"===e?"y":"x"}function k(t){return A(T(t))}function R(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const O=["left","right"],F=["right","left"],E=["top","bottom"],z=["bottom","top"];function C(t){const e=v(t);return w[e]+t.slice(e.length)}function L(t){return"number"!=typeof t?function(t){var e,n,i,o;return{top:null!=(e=t.top)?e:0,right:null!=(n=t.right)?n:0,bottom:null!=(i=t.bottom)?i:0,left:null!=(o=t.left)?o:0}}(t):{top:t,right:t,bottom:t,left:t}}function j(t){const{x:e,y:n,width:i,height:o}=t;return{width:i,height:o,top:n,left:e,right:e+i,bottom:n+o,x:e,y:n}}function D(t,e,n){let{reference:i,floating:o}=t;const r=T(e),s=k(e),l=S(s),a=v(e),c="y"===r,u=i.x+i.width/2-o.width/2,f=i.y+i.height/2-o.height/2,h=i[l]/2-o[l]/2;let d;switch(a){case"top":d={x:u,y:i.y-o.height};break;case"bottom":d={x:u,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:f};break;case"left":d={x:i.x-o.width,y:f};break;default:d={x:i.x,y:i.y}}const m=b(e);return m&&(d[s]+=h*("end"===m?1:-1)*(n&&c?-1:1)),d}async function P(t,e){var n;void 0===e&&(e={});const{x:i,y:o,platform:r,rects:s,elements:l,strategy:a}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:h=!1,padding:d=0}=x(e,t),m=L(d),p=l[h?"floating"===f?"reference":"floating":f],y=j(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(p)))||n?p:p.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:a})),w="floating"===f?{x:i,y:o,width:s.floating.width,height:s.floating.height}:s.reference,g=await(null==r.getOffsetParent?void 0:r.getOffsetParent(l.floating)),v=await(null==r.isElement?void 0:r.isElement(g))&&await(null==r.getScale?void 0:r.getScale(g))||{x:1,y:1},b=j(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:g,strategy:a}):w);return{top:(y.top-b.top+m.top)/v.y,bottom:(b.bottom-y.bottom+m.bottom)/v.y,left:(y.left-b.left+m.left)/v.x,right:(b.right-y.right+m.right)/v.x}}const M=new Set(["left","top"]);function B(){return"undefined"!=typeof window}function $(t){return q(t)?(t.nodeName||"").toLowerCase():"#document"}function I(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function V(t){var e;return null==(e=(q(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function q(t){return!!B()&&(t instanceof Node||t instanceof I(t).Node)}function H(t){return!!B()&&(t instanceof Element||t instanceof I(t).Element)}function N(t){return!!B()&&(t instanceof HTMLElement||t instanceof I(t).HTMLElement)}function W(t){return!(!B()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof I(t).ShadowRoot)}function Y(t){const{overflow:e,overflowX:n,overflowY:i,display:o}=et(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&"inline"!==o&&"contents"!==o}function _(t){return/^(table|td|th)$/.test($(t))}function K(t){try{if(t.matches(":popover-open"))return!0}catch(t){}try{return t.matches(":modal")}catch(t){return!1}}const X=/transform|translate|scale|rotate|perspective|filter/,Z=/paint|layout|strict|content/,G=t=>!!t&&"none"!==t;let J;function U(t){const e=H(t)?et(t):t;return G(e.transform)||G(e.translate)||G(e.scale)||G(e.rotate)||G(e.perspective)||!Q()&&(G(e.backdropFilter)||G(e.filter))||X.test(e.willChange||"")||Z.test(e.contain||"")}function Q(){return null==J&&(J="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),J}function tt(t){return/^(html|body|#document)$/.test($(t))}function et(t){return I(t).getComputedStyle(t)}function nt(t){return H(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function it(t){if("html"===$(t))return t;const e=t.assignedSlot||t.parentNode||W(t)&&t.host||V(t);return W(e)?e.host:e}function ot(t){const e=it(t);return tt(e)?(t.ownerDocument||t).body:N(e)&&Y(e)?e:ot(e)}function rt(t,e,n){var i;void 0===e&&(e=[]),void 0===n&&(n=!0);const o=ot(t),r=o===(null==(i=t.ownerDocument)?void 0:i.body),s=I(o);if(r){const t=st(s);return e.concat(s,s.visualViewport||[],Y(o)?o:[],t&&n?rt(t):[])}return e.concat(o,rt(o,[],n))}function st(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function lt(t){const e=et(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const o=N(t),r=o?t.offsetWidth:n,s=o?t.offsetHeight:i,l=m(n)!==r||m(i)!==s;return l&&(n=r,i=s),{width:n,height:i,$:l}}function at(t){return H(t)?t:t.contextElement}function ct(t){const e=at(t);if(!N(e))return y(1);const n=e.getBoundingClientRect(),{width:i,height:o,$:r}=lt(e);let s=(r?m(n.width):n.width)/i,l=(r?m(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}const ut=y(0);function ft(t){const e=I(t);return Q()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:ut}function ht(t,e,n,i){void 0===e&&(e=!1),void 0===n&&(n=!1);const o=t.getBoundingClientRect(),r=at(t);let s=y(1);e&&(i?H(i)&&(s=ct(i)):s=ct(t));const l=function(t,e,n){return void 0===e&&(e=!1),!!n&&e&&n===I(t)}(r,n,i)?ft(r):y(0);let a=(o.left+l.x)/s.x,c=(o.top+l.y)/s.y,u=o.width/s.x,f=o.height/s.y;if(r&&i){const t=I(r),e=H(i)?I(i):i;let n=t,o=st(n);for(;o&&e!==n;){const t=ct(o),e=o.getBoundingClientRect(),i=et(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,s=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;a*=t.x,c*=t.y,u*=t.x,f*=t.y,a+=r,c+=s,n=I(o),o=st(n)}}return j({width:u,height:f,x:a,y:c})}function dt(t,e){const n=nt(t).scrollLeft;return e?e.left+n:ht(V(t)).left+n}function mt(t,e){const n=t.getBoundingClientRect();return{x:n.left+e.scrollLeft-dt(t,n),y:n.top+e.scrollTop}}function pt(t,e,n){let i;if("viewport"===e||"layoutViewport"===e)i=function(t,e,n){void 0===n&&(n="viewport");const i="layoutViewport"===n,o=I(t),r=V(t),s=o.visualViewport;let l=r.clientWidth,a=r.clientHeight,c=0,u=0;if(s){const t=!Q()||"fixed"===e;i?t||(c=-s.offsetLeft,u=-s.offsetTop):(l=s.width,a=s.height,t&&(c=s.offsetLeft,u=s.offsetTop))}if(dt(r)<=0){const t=r.ownerDocument,e=t.body,n=getComputedStyle(e),i="CSS1Compat"===t.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-e.clientWidth-i),s="stable both-edges"===getComputedStyle(r).scrollbarGutter?o/2:o;s<=25&&(l-=s)}return{width:l,height:a,x:c,y:u}}(t,n,e);else if("document"===e)i=function(t){const e=nt(t),n=t.ownerDocument.body,i=d(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=d(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let r=-e.scrollLeft+dt(t);const s=-e.scrollTop;return"rtl"===et(n).direction&&(r+=d(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:r,y:s}}(V(t));else if(H(e))i=function(t,e){const n=ht(t,!0,"fixed"===e),i=n.top+t.clientTop,o=n.left+t.clientLeft,r=ct(t);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:o*r.x,y:i*r.y}}(e,n);else{const n=ft(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return j(i)}function yt(t,e,n){const i=N(e),o=V(e),r="fixed"===n,s=ht(t,!0,r,e);let l={scrollLeft:0,scrollTop:0};const a=y(0);if((i||!r)&&(("body"!==$(e)||Y(o))&&(l=nt(e)),i)){const t=ht(e,!0,r,e);a.x=t.x+e.clientLeft,a.y=t.y+e.clientTop}!i&&o&&(a.x=dt(o));const c=!o||i||r?y(0):mt(o,l);return{x:s.left+l.scrollLeft-a.x-c.x,y:s.top+l.scrollTop-a.y-c.y,width:s.width,height:s.height}}function wt(t){return"static"===et(t).position}function gt(t,e){if(!N(t)||"fixed"===et(t).position)return null;if(e)return e(t);let n=t.offsetParent;return V(t)===n&&(n=n.ownerDocument.body),n}function xt(t,e){const n=I(t);if(K(t))return n;if(!N(t)){let e=it(t);for(;e&&!tt(e);){if(H(e)&&!wt(e))return e;e=it(e)}return n}let i=gt(t,e);for(;i&&_(i)&&wt(i);)i=gt(i,e);return i&&tt(i)&&wt(i)&&!U(i)?n:i||function(t){let e=it(t);for(;N(e)&&!tt(e);){if(U(e))return e;if(K(e))return null;e=it(e)}return null}(t)||n}const vt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:i,strategy:o}=t;const r="fixed"===o,s=V(i),l=!!e&&K(e.floating);if(i===s||l&&r)return n;let a={scrollLeft:0,scrollTop:0},c=y(1);const u=y(0),f=N(i);if((f||!r)&&(("body"!==$(i)||Y(s))&&(a=nt(i)),f)){const t=ht(i);c=ct(i),u.x=t.x+i.clientLeft,u.y=t.y+i.clientTop}const h=!s||f||r?y(0):mt(s,a);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-a.scrollTop*c.y+u.y+h.y}},getDocumentElement:V,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t;const r=[..."clippingAncestors"===n?K(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let i=rt(t,[],!1).filter((t=>H(t)&&"body"!==$(t))),o=null;const r="fixed"===et(t).position;let s=r?it(t):t;for(;H(s)&&!tt(s);){const t=et(s),e=U(s),n=o?o.position:r?"fixed":"";e||"fixed"!==n&&("absolute"!==n||"static"!==t.position)?o=t:i=i.filter((t=>t!==s)),s=it(s)}return e.set(t,i),i}(e,this._c):[].concat(n),i],s=pt(e,r[0],o);let l=s.top,a=s.right,c=s.bottom,u=s.left;for(let t=1;t<r.length;t++){const n=pt(e,r[t],o);l=d(n.top,l),a=h(n.right,a),c=h(n.bottom,c),u=d(n.left,u)}return{width:a-u,height:c-l,x:u,y:l}},getOffsetParent:xt,getElementRects:async function(t){const e=this.getOffsetParent||xt,n=this.getDimensions,i=await n(t.floating);return{reference:yt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},getClientRects:function(t){return t.getClientRects?Array.from(t.getClientRects()):[]},getDimensions:function(t){const{width:e,height:n}=lt(t);return{width:e,height:n}},getScale:ct,isElement:H,isRTL:function(t){return"rtl"===et(t).direction}};function bt(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function At(t,e,n,i){void 0===i&&(i={});const{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:a=!1}=i,c=at(t),u=o||r?[...c?rt(c):[],...e?rt(e):[]]:[];u.forEach((t=>{o&&t.addEventListener("scroll",n),r&&t.addEventListener("resize",n)}));const f=c&&l?function(t,e,n){let i,o=null;const r=V(t);function s(){var t;clearTimeout(i),null==(t=o)||t.disconnect(),o=null}function l(n,a){void 0===n&&(n=!1),void 0===a&&(a=1),s();const c=t.getBoundingClientRect(),{left:u,top:f,width:m,height:y}=c;if(n||e(),!m||!y)return;const w={rootMargin:-p(f)+"px "+-p(r.clientWidth-(u+m))+"px "+-p(r.clientHeight-(f+y))+"px "+-p(u)+"px",threshold:d(0,h(1,a))||1};let g=!0;function x(e){const n=e[0].intersectionRatio;if(!bt(c,t.getBoundingClientRect()))return l();if(n!==a){if(!g)return l();n?l(!1,n):i=setTimeout((()=>{l(!1,1e-7)}),1e3)}g=!1}try{o=new IntersectionObserver(x,{...w,root:r.ownerDocument})}catch(t){o=new IntersectionObserver(x,w)}o.observe(t)}const a=I(t),c=()=>l(n);return a.addEventListener("resize",c),l(!0),()=>{a.removeEventListener("resize",c),s()}}(c,n,r):null;let m,y=-1,w=null;s&&(w=new ResizeObserver((t=>{let[i]=t;i&&i.target===c&&w&&e&&(w.unobserve(e),cancelAnimationFrame(y),y=requestAnimationFrame((()=>{var t;null==(t=w)||t.observe(e)}))),n()})),c&&!a&&w.observe(c),e&&w.observe(e));let g=a?ht(t):null;return a&&function e(){const i=ht(t);g&&!bt(g,i)&&n(),g=i,m=requestAnimationFrame(e)}(),n(),()=>{var t;u.forEach((t=>{o&&t.removeEventListener("scroll",n),r&&t.removeEventListener("resize",n)})),null==f||f(),null==(t=w)||t.disconnect(),w=null,a&&cancelAnimationFrame(m)}}const St=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:i,placement:o,platform:r}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:a={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...c}=x(t,e),u={x:n,y:i},f=await r.detectOverflow(e,c),h=T(o),d=A(h);let m=u[d],p=u[h];const y=(t,e)=>g(e+f["y"===t?"top":"left"],e,e-f["y"===t?"bottom":"right"]);s&&(m=y(d,m)),l&&(p=y(h,p));const w=a.fn({...e,[d]:m,[h]:p});return{...w,data:{x:w.x-n,y:w.y-i,enabled:{[d]:s,[h]:l}}}}}},Tt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,i;const{placement:o,middlewareData:r,rects:s,initialPlacement:l,platform:a,elements:c}=e,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:p=!0,...y}=x(t,e);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const w=v(o),g=T(l),A=v(l)===l,L=await(null==a.isRTL?void 0:a.isRTL(c.floating)),j=h||(A||!p?[C(l)]:function(t){const e=C(t);return[R(t),e,R(e)]}(l)),D="none"!==m;!h&&D&&j.push(...function(t,e,n,i){const o=b(t);let r=function(t,e,n){switch(t){case"top":case"bottom":return n?e?F:O:e?O:F;case"left":case"right":return e?E:z;default:return[]}}(v(t),"start"===n,i);return o&&(r=r.map((t=>t+"-"+o)),e&&(r=r.concat(r.map(R)))),r}(l,p,m,L));const P=[l,...j],M=await a.detectOverflow(e,y),B=[];let $=(null==(i=r.flip)?void 0:i.overflows)||[];if(u&&B.push(M[w]),f){const t=function(t,e,n){void 0===n&&(n=!1);const i=b(t),o=k(t),r=S(o);let s="x"===o?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=C(s)),[s,C(s)]}(o,s,L);B.push(M[t[0]],M[t[1]])}if($=[...$,{placement:o,overflows:B}],!B.every((t=>t<=0))){var I,V;const t=((null==(I=r.flip)?void 0:I.index)||0)+1,e=P[t];if(e&&("alignment"!==f||g===T(e)||$.every((t=>T(t.placement)!==g||t.overflows[0]>0))))return{data:{index:t,overflows:$},reset:{placement:e}};let n=null==(V=$.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:V.placement;if(!n)switch(d){case"bestFit":{var q;const t=null==(q=$.filter((t=>{if(D){const e=T(t.placement);return e===g||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:q[0];t&&(n=t);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}},kt=async({floatingElement:e,referenceElement:n,arrowElement:i,align:o="top"})=>{var r,s,l;if(!t()){const t=[(l=(null==i?void 0:i.offsetHeight)||10,void 0===l&&(l=0),{name:"offset",options:l,async fn(t){var e,n;const{x:i,y:o,placement:r,middlewareData:s}=t,a=await async function(t,e){const{placement:n,platform:i,elements:o}=t,r=await(null==i.isRTL?void 0:i.isRTL(o.floating)),s=v(n),l=b(n),a="y"===T(n),c=M.has(s)?-1:1,u=r&&a?-1:1,f=x(e,t);let{mainAxis:h,crossAxis:d,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&"number"==typeof m&&(d="end"===l?-1*m:m),a?{x:d*u,y:h*c}:{x:h*c,y:d*u}}(t,l);return r===(null==(e=s.offset)?void 0:e.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:i+a.x,y:o+a.y,data:{...a,placement:r}}}}),Tt(),St()];i&&t.push((t=>({name:"arrow",options:t,async fn(e){const{x:n,y:i,placement:o,rects:r,platform:s,elements:l,middlewareData:a}=e,{element:c,padding:u=0}=x(t,e)||{};if(null==c)return{};const f=L(u),d={x:n,y:i},m=k(o),p=S(m),y=await s.getDimensions(c),w="y"===m,v=w?"top":"left",A=w?"bottom":"right",T=w?"clientHeight":"clientWidth",R=r.reference[p]+r.reference[m]-d[m]-r.floating[p],O=d[m]-r.reference[m],F=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let E=F?F[T]:0;E&&await(null==s.isElement?void 0:s.isElement(F))||(E=l.floating[T]||r.floating[p]);const z=R/2-O/2,C=E/2-y[p]/2-1,j=h(f[v],C),D=h(f[A],C),P=E-y[p]-D,M=E/2-y[p]/2+z,B=g(j,M,P),$=!a.arrow&&null!=b(o)&&M!==B&&r.reference[p]/2-(M<j?j:D)-y[p]/2<0,I=$?M<j?M-j:M-P:0;return{[m]:d[m]+I,data:{[m]:B,centerOffset:M-B-I,...$&&{alignmentOffset:I}},reset:$}}}))({element:i}));const{x:a,y:c,middlewareData:u,placement:f}=await((t,e,n)=>{const i=new Map,o=null!=n?n:{},r={...vt,...o.platform,_c:i};return(async(t,e,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:s}=n,l=s.detectOverflow?s:{...s,detectOverflow:P},a=await(null==s.isRTL?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:u,y:f}=D(c,i,a),h=i,d=0;const m={};for(let n=0;n<r.length;n++){const p=r[n];if(!p)continue;const{name:y,fn:w}=p,{x:g,y:x,data:v,reset:b}=await w({x:u,y:f,initialPlacement:i,placement:h,strategy:o,middlewareData:m,rects:c,platform:l,elements:{reference:t,floating:e}});u=null!=g?g:u,f=null!=x?x:f,m[y]={...m[y],...v},b&&d<50&&(d++,"object"==typeof b&&(b.placement&&(h=b.placement),b.rects&&(c=!0===b.rects?await s.getElementRects({reference:t,floating:e,strategy:o}):b.rects),({x:u,y:f}=D(c,h,a))),n=-1)}return{x:u,y:f,placement:h,strategy:o,middlewareData:m}})(t,e,{...o,platform:r})})(n,e,{placement:o,middleware:t,strategy:"fixed"});Object.assign(e.style,{left:`${a}px`,top:`${c}px`,visibility:"visible"}),i&&((null===(r=u.arrow)||void 0===r?void 0:r.x)?Object.assign(i.style,{left:`${u.arrow.x}px`,top:"bottom"===f?-i.offsetHeight/2+"px":"",bottom:"top"===f?-i.offsetHeight/2+"px":""}):(null===(s=u.arrow)||void 0===s?void 0:s.y)&&Object.assign(i.style,{left:"right"===f?-i.offsetWidth/2+"px":"",right:"left"===f?-i.offsetWidth/2+"px":"",top:`${u.arrow.y}px`}))}},Rt=new Set;let Ot=null;class Ft{constructor(t,e){this.setState=t.setState,this.getState=t.getState,this.renderProps=l(e)}setRenderProp(t,e){this.renderProps[t]=e}getRenderProp(t){return this.renderProps[t]}}const Et={required:[c],optional:[u,f,a]};class zt extends Ft{constructor(t){super(t,Et),this.hasFocusIn=!1,this.hasMouseIn=!1,this.isHiddenForCurrentVisit=!1,this.setTooltipElementRef=t=>{this.tooltipElement=t,this.tooltipElement&&this.addListeners(this.tooltipElement)},this.hideTooltipByEscape=t=>{"Escape"===t.key&&(t.stopPropagation(),t.preventDefault(),this.hideTooltip())},this.handleMouseEnter=()=>{const t=this.isNewVisit();this.hasMouseIn=!0,t&&(this.isHiddenForCurrentVisit=!1),this.showOrHideTooltip()},this.handleMouseLeave=()=>{this.hasMouseIn=!1,this.resetHideFlag(),this.showOrHideTooltip()},this.handleFocusIn=()=>{const t=this.isNewVisit();this.hasFocusIn=!0,t&&(this.isHiddenForCurrentVisit=!1),this.showOrHideTooltip()},this.handleFocusOut=()=>{this.hasFocusIn=!1,this.resetHideFlag(),this.showOrHideTooltip()}}componentWillLoad(t){this.watchLabel(t.label),this.watchAlign(t.align),this.watchBadgeText(t.badgeText),this.watchId(t.id)}watchLabel(t){c.apply(t||void 0,(t=>{this.setRenderProp("label",t)}))}watchAlign(t){u.apply(t,(t=>{this.setRenderProp("align",t)}))}watchBadgeText(t){f.apply(t,(t=>{this.setRenderProp("badgeText",t)}))}watchId(t){a.apply(t,(t=>{this.setRenderProp("id",t)}))}initContext(t){this.previousSibling=t}syncListeners(t,e,n=!1){t&&this.removeListeners(t),e&&(n&&(this.previousSibling=e),this.removeListeners(e),this.addListeners(e))}handleEventListeners(t){this.syncListeners(this.previousSibling,t.previousElementSibling,!0)}hideTooltip(){this.isHiddenForCurrentVisit=!0,this.tooltipElement&&(function(t){if(Rt.delete(t)&&Ot===t){Ot=null;for(const t of Rt)Ot=t;Ot&&Ot.style.setProperty("z-index","1000")}}(this.tooltipElement),n(),this.tooltipElement.classList.remove("show"),this.tooltipElement.classList.add("hide"),this.tooltipElement.addEventListener("animationend",(()=>{var t;(null===(t=this.tooltipElement)||void 0===t?void 0:t.classList.contains("hide"))&&this.tooltipElement.style.removeProperty("display")}),{once:!0}),this.cleanupAutoPositioning&&(this.cleanupAutoPositioning(),this.cleanupAutoPositioning=void 0)),e().removeEventListener("keydown",this.hideTooltipByEscape)}destroy(){clearTimeout(this.overFocusTimeout),this.previousSibling&&(this.removeListeners(this.previousSibling),this.previousSibling=void 0),this.tooltipElement&&this.removeListeners(this.tooltipElement),this.cleanupAutoPositioning&&(this.cleanupAutoPositioning(),this.cleanupAutoPositioning=void 0),e().removeEventListener("keydown",this.hideTooltipByEscape)}isNewVisit(){return!this.hasMouseIn&&!this.hasFocusIn}resetHideFlag(){this.isNewVisit()&&(this.isHiddenForCurrentVisit=!1)}async alignTooltip(){this.tooltipElement&&this.previousSibling&&await kt({align:this.getRenderProp("align"),arrowElement:this.tooltipElement.querySelector(".kol-tooltip__arrow"),floatingElement:this.tooltipElement,referenceElement:this.previousSibling})}showTooltip(){var t;!this.isHiddenForCurrentVisit&&this.previousSibling&&this.tooltipElement&&(Ot!==(t=this.tooltipElement)&&(Ot&&Ot.style.setProperty("z-index","999"),Rt.delete(t),Rt.add(t),t.style.setProperty("z-index","1000"),Ot=t),i(),this.tooltipElement.classList.remove("hide"),this.tooltipElement.classList.add("show"),this.tooltipElement.style.setProperty("display","block"),e().addEventListener("keydown",this.hideTooltipByEscape),this.cleanupAutoPositioning=At(this.previousSibling,this.tooltipElement,(()=>{this.alignTooltip()})))}showOrHideTooltip(){clearTimeout(this.overFocusTimeout),this.overFocusTimeout=setTimeout((()=>{this.hasMouseIn||this.hasFocusIn?this.showTooltip():this.hideTooltip()}),300)}addListeners(t){t.addEventListener("mouseover",this.handleMouseEnter),t.addEventListener("mouseout",this.handleMouseLeave),t.addEventListener("focusin",this.handleFocusIn),t.addEventListener("focusout",this.handleFocusOut)}removeListeners(t){t.removeEventListener("mouseover",this.handleMouseEnter),t.removeEventListener("mouseout",this.handleMouseLeave),t.removeEventListener("focusin",this.handleFocusIn),t.removeEventListener("focusout",this.handleFocusOut)}}export{Ft as B,zt as T,u as a,kt as b,At as c}
4
+ import{y as t,q as e}from"./common-BdSzSIXg.js";import{t as n,a as i}from"./tooltip-open-tracking-D3tCiiGP.js";import{c as o}from"./component-D6_K50vT.js";import{c as r,b as s,d as l}from"./props-from-config-ytxYrJUY.js";import{i as a}from"./id-BI0ZuK17.js";import{l as c}from"./label-lang-segment-iVD9hoM3.js";const u=o("align","top"),f=r("badgeText","",s),h=Math.min,d=Math.max,m=Math.round,p=Math.floor,y=t=>({x:t,y:t}),w={left:"right",right:"left",bottom:"top",top:"bottom"};function g(t,e,n){return d(t,h(e,n))}function x(t,e){return"function"==typeof t?t(e):t}function v(t){return t.split("-")[0]}function b(t){return t.split("-")[1]}function A(t){return"x"===t?"y":"x"}function S(t){return"y"===t?"height":"width"}function T(t){const e=t[0];return"t"===e||"b"===e?"y":"x"}function k(t){return A(T(t))}function R(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const O=["left","right"],F=["right","left"],E=["top","bottom"],z=["bottom","top"];function C(t){const e=v(t);return w[e]+t.slice(e.length)}function D(t){return"number"!=typeof t?function(t){var e,n,i,o;return{top:null!=(e=t.top)?e:0,right:null!=(n=t.right)?n:0,bottom:null!=(i=t.bottom)?i:0,left:null!=(o=t.left)?o:0}}(t):{top:t,right:t,bottom:t,left:t}}function L(t){const{x:e,y:n,width:i,height:o}=t;return{width:i,height:o,top:n,left:e,right:e+i,bottom:n+o,x:e,y:n}}function j(t,e,n){let{reference:i,floating:o}=t;const r=T(e),s=k(e),l=S(s),a=v(e),c="y"===r,u=i.x+i.width/2-o.width/2,f=i.y+i.height/2-o.height/2,h=i[l]/2-o[l]/2;let d;switch(a){case"top":d={x:u,y:i.y-o.height};break;case"bottom":d={x:u,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:f};break;case"left":d={x:i.x-o.width,y:f};break;default:d={x:i.x,y:i.y}}const m=b(e);return m&&(d[s]+=h*("end"===m?1:-1)*(n&&c?-1:1)),d}async function P(t,e){var n;void 0===e&&(e={});const{x:i,y:o,platform:r,rects:s,elements:l,strategy:a}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:h=!1,padding:d=0}=x(e,t),m=D(d),p=l[h?"floating"===f?"reference":"floating":f],y=L(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(p)))||n?p:p.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:a})),w="floating"===f?{x:i,y:o,width:s.floating.width,height:s.floating.height}:s.reference,g=await(null==r.getOffsetParent?void 0:r.getOffsetParent(l.floating)),v=await(null==r.isElement?void 0:r.isElement(g))&&await(null==r.getScale?void 0:r.getScale(g))||{x:1,y:1},b=L(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:g,strategy:a}):w);return{top:(y.top-b.top+m.top)/v.y,bottom:(b.bottom-y.bottom+m.bottom)/v.y,left:(y.left-b.left+m.left)/v.x,right:(b.right-y.right+m.right)/v.x}}const M=new Set(["left","top"]);function B(){return"undefined"!=typeof window}function $(t){return q(t)?(t.nodeName||"").toLowerCase():"#document"}function I(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function V(t){var e;return null==(e=(q(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function q(t){return!!B()&&(t instanceof Node||t instanceof I(t).Node)}function H(t){return!!B()&&(t instanceof Element||t instanceof I(t).Element)}function N(t){return!!B()&&(t instanceof HTMLElement||t instanceof I(t).HTMLElement)}function _(t){return!(!B()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof I(t).ShadowRoot)}function Y(t){const{overflow:e,overflowX:n,overflowY:i,display:o}=et(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&"inline"!==o&&"contents"!==o}function K(t){return/^(table|td|th)$/.test($(t))}function W(t){try{if(t.matches(":popover-open"))return!0}catch(t){}try{return t.matches(":modal")}catch(t){return!1}}const X=/transform|translate|scale|rotate|perspective|filter/,G=/paint|layout|strict|content/,J=t=>!!t&&"none"!==t;let U;function Z(t){const e=H(t)?et(t):t;return J(e.transform)||J(e.translate)||J(e.scale)||J(e.rotate)||J(e.perspective)||!Q()&&(J(e.backdropFilter)||J(e.filter))||X.test(e.willChange||"")||G.test(e.contain||"")}function Q(){return null==U&&(U="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),U}function tt(t){return/^(html|body|#document)$/.test($(t))}function et(t){return I(t).getComputedStyle(t)}function nt(t){return H(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function it(t){if("html"===$(t))return t;const e=t.assignedSlot||t.parentNode||_(t)&&t.host||V(t);return _(e)?e.host:e}function ot(t){const e=it(t);return tt(e)?(t.ownerDocument||t).body:N(e)&&Y(e)?e:ot(e)}function rt(t,e,n){var i;void 0===e&&(e=[]),void 0===n&&(n=!0);const o=ot(t),r=o===(null==(i=t.ownerDocument)?void 0:i.body),s=I(o);if(r){const t=st(s);return e.concat(s,s.visualViewport||[],Y(o)?o:[],t&&n?rt(t):[])}return e.concat(o,rt(o,[],n))}function st(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function lt(t){const e=et(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const o=N(t),r=o?t.offsetWidth:n,s=o?t.offsetHeight:i,l=m(n)!==r||m(i)!==s;return l&&(n=r,i=s),{width:n,height:i,$:l}}function at(t){return H(t)?t:t.contextElement}function ct(t){const e=at(t);if(!N(e))return y(1);const n=e.getBoundingClientRect(),{width:i,height:o,$:r}=lt(e);let s=(r?m(n.width):n.width)/i,l=(r?m(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}const ut=y(0);function ft(t){const e=I(t);return Q()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:ut}function ht(t,e,n,i){void 0===e&&(e=!1),void 0===n&&(n=!1);const o=t.getBoundingClientRect(),r=at(t);let s=y(1);e&&(i?H(i)&&(s=ct(i)):s=ct(t));const l=function(t,e,n){return void 0===e&&(e=!1),!!n&&e&&n===I(t)}(r,n,i)?ft(r):y(0);let a=(o.left+l.x)/s.x,c=(o.top+l.y)/s.y,u=o.width/s.x,f=o.height/s.y;if(r&&i){const t=I(r),e=H(i)?I(i):i;let n=t,o=st(n);for(;o&&e!==n;){const t=ct(o),e=o.getBoundingClientRect(),i=et(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,s=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;a*=t.x,c*=t.y,u*=t.x,f*=t.y,a+=r,c+=s,n=I(o),o=st(n)}}return L({width:u,height:f,x:a,y:c})}function dt(t,e){const n=nt(t).scrollLeft;return e?e.left+n:ht(V(t)).left+n}function mt(t,e){const n=t.getBoundingClientRect();return{x:n.left+e.scrollLeft-dt(t,n),y:n.top+e.scrollTop}}function pt(t,e,n){let i;if("viewport"===e||"layoutViewport"===e)i=function(t,e,n){void 0===n&&(n="viewport");const i="layoutViewport"===n,o=I(t),r=V(t),s=o.visualViewport;let l=r.clientWidth,a=r.clientHeight,c=0,u=0;if(s){const t=!Q()||"fixed"===e;i?t||(c=-s.offsetLeft,u=-s.offsetTop):(l=s.width,a=s.height,t&&(c=s.offsetLeft,u=s.offsetTop))}if(dt(r)<=0){const t=r.ownerDocument,e=t.body,n=getComputedStyle(e),i="CSS1Compat"===t.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-e.clientWidth-i),s="stable both-edges"===getComputedStyle(r).scrollbarGutter?o/2:o;s<=25&&(l-=s)}return{width:l,height:a,x:c,y:u}}(t,n,e);else if("document"===e)i=function(t){const e=nt(t),n=t.ownerDocument.body,i=d(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=d(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let r=-e.scrollLeft+dt(t);const s=-e.scrollTop;return"rtl"===et(n).direction&&(r+=d(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:r,y:s}}(V(t));else if(H(e))i=function(t,e){const n=ht(t,!0,"fixed"===e),i=n.top+t.clientTop,o=n.left+t.clientLeft,r=ct(t);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:o*r.x,y:i*r.y}}(e,n);else{const n=ft(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return L(i)}function yt(t,e,n){const i=N(e),o=V(e),r="fixed"===n,s=ht(t,!0,r,e);let l={scrollLeft:0,scrollTop:0};const a=y(0);if((i||!r)&&(("body"!==$(e)||Y(o))&&(l=nt(e)),i)){const t=ht(e,!0,r,e);a.x=t.x+e.clientLeft,a.y=t.y+e.clientTop}!i&&o&&(a.x=dt(o));const c=!o||i||r?y(0):mt(o,l);return{x:s.left+l.scrollLeft-a.x-c.x,y:s.top+l.scrollTop-a.y-c.y,width:s.width,height:s.height}}function wt(t){return"static"===et(t).position}function gt(t,e){if(!N(t)||"fixed"===et(t).position)return null;if(e)return e(t);let n=t.offsetParent;return V(t)===n&&(n=n.ownerDocument.body),n}function xt(t,e){const n=I(t);if(W(t))return n;if(!N(t)){let e=it(t);for(;e&&!tt(e);){if(H(e)&&!wt(e))return e;e=it(e)}return n}let i=gt(t,e);for(;i&&K(i)&&wt(i);)i=gt(i,e);return i&&tt(i)&&wt(i)&&!Z(i)?n:i||function(t){let e=it(t);for(;N(e)&&!tt(e);){if(Z(e))return e;if(W(e))return null;e=it(e)}return null}(t)||n}const vt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:i,strategy:o}=t;const r="fixed"===o,s=V(i),l=!!e&&W(e.floating);if(i===s||l&&r)return n;let a={scrollLeft:0,scrollTop:0},c=y(1);const u=y(0),f=N(i);if((f||!r)&&(("body"!==$(i)||Y(s))&&(a=nt(i)),f)){const t=ht(i);c=ct(i),u.x=t.x+i.clientLeft,u.y=t.y+i.clientTop}const h=!s||f||r?y(0):mt(s,a);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-a.scrollTop*c.y+u.y+h.y}},getDocumentElement:V,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t;const r=[..."clippingAncestors"===n?W(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let i=rt(t,[],!1).filter((t=>H(t)&&"body"!==$(t))),o=null;const r="fixed"===et(t).position;let s=r?it(t):t;for(;H(s)&&!tt(s);){const t=et(s),e=Z(s),n=o?o.position:r?"fixed":"";e||"fixed"!==n&&("absolute"!==n||"static"!==t.position)?o=t:i=i.filter((t=>t!==s)),s=it(s)}return e.set(t,i),i}(e,this._c):[].concat(n),i],s=pt(e,r[0],o);let l=s.top,a=s.right,c=s.bottom,u=s.left;for(let t=1;t<r.length;t++){const n=pt(e,r[t],o);l=d(n.top,l),a=h(n.right,a),c=h(n.bottom,c),u=d(n.left,u)}return{width:a-u,height:c-l,x:u,y:l}},getOffsetParent:xt,getElementRects:async function(t){const e=this.getOffsetParent||xt,n=this.getDimensions,i=await n(t.floating);return{reference:yt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},getClientRects:function(t){return t.getClientRects?Array.from(t.getClientRects()):[]},getDimensions:function(t){const{width:e,height:n}=lt(t);return{width:e,height:n}},getScale:ct,isElement:H,isRTL:function(t){return"rtl"===et(t).direction}};function bt(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function At(t,e,n,i){void 0===i&&(i={});const{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:a=!1}=i,c=at(t),u=o||r?[...c?rt(c):[],...e?rt(e):[]]:[];u.forEach((t=>{o&&t.addEventListener("scroll",n),r&&t.addEventListener("resize",n)}));const f=c&&l?function(t,e,n){let i,o=null;const r=V(t);function s(){var t;clearTimeout(i),null==(t=o)||t.disconnect(),o=null}function l(n,a){void 0===n&&(n=!1),void 0===a&&(a=1),s();const c=t.getBoundingClientRect(),{left:u,top:f,width:m,height:y}=c;if(n||e(),!m||!y)return;const w={rootMargin:-p(f)+"px "+-p(r.clientWidth-(u+m))+"px "+-p(r.clientHeight-(f+y))+"px "+-p(u)+"px",threshold:d(0,h(1,a))||1};let g=!0;function x(e){const n=e[0].intersectionRatio;if(!bt(c,t.getBoundingClientRect()))return l();if(n!==a){if(!g)return l();n?l(!1,n):i=setTimeout((()=>{l(!1,1e-7)}),1e3)}g=!1}try{o=new IntersectionObserver(x,{...w,root:r.ownerDocument})}catch(t){o=new IntersectionObserver(x,w)}o.observe(t)}const a=I(t),c=()=>l(n);return a.addEventListener("resize",c),l(!0),()=>{a.removeEventListener("resize",c),s()}}(c,n,r):null;let m,y=-1,w=null;s&&(w=new ResizeObserver((t=>{let[i]=t;i&&i.target===c&&w&&e&&(w.unobserve(e),cancelAnimationFrame(y),y=requestAnimationFrame((()=>{var t;null==(t=w)||t.observe(e)}))),n()})),c&&!a&&w.observe(c),e&&w.observe(e));let g=a?ht(t):null;return a&&function e(){const i=ht(t);g&&!bt(g,i)&&n(),g=i,m=requestAnimationFrame(e)}(),n(),()=>{var t;u.forEach((t=>{o&&t.removeEventListener("scroll",n),r&&t.removeEventListener("resize",n)})),null==f||f(),null==(t=w)||t.disconnect(),w=null,a&&cancelAnimationFrame(m)}}const St=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:i,placement:o,platform:r}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:a={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...c}=x(t,e),u={x:n,y:i},f=await r.detectOverflow(e,c),h=T(o),d=A(h);let m=u[d],p=u[h];const y=(t,e)=>g(e+f["y"===t?"top":"left"],e,e-f["y"===t?"bottom":"right"]);s&&(m=y(d,m)),l&&(p=y(h,p));const w=a.fn({...e,[d]:m,[h]:p});return{...w,data:{x:w.x-n,y:w.y-i,enabled:{[d]:s,[h]:l}}}}}},Tt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,i;const{placement:o,middlewareData:r,rects:s,initialPlacement:l,platform:a,elements:c}=e,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:p=!0,...y}=x(t,e);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const w=v(o),g=T(l),A=v(l)===l,D=await(null==a.isRTL?void 0:a.isRTL(c.floating)),L=h||(A||!p?[C(l)]:function(t){const e=C(t);return[R(t),e,R(e)]}(l)),j="none"!==m;!h&&j&&L.push(...function(t,e,n,i){const o=b(t);let r=function(t,e,n){switch(t){case"top":case"bottom":return n?e?F:O:e?O:F;case"left":case"right":return e?E:z;default:return[]}}(v(t),"start"===n,i);return o&&(r=r.map((t=>t+"-"+o)),e&&(r=r.concat(r.map(R)))),r}(l,p,m,D));const P=[l,...L],M=await a.detectOverflow(e,y),B=[];let $=(null==(i=r.flip)?void 0:i.overflows)||[];if(u&&B.push(M[w]),f){const t=function(t,e,n){void 0===n&&(n=!1);const i=b(t),o=k(t),r=S(o);let s="x"===o?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=C(s)),[s,C(s)]}(o,s,D);B.push(M[t[0]],M[t[1]])}if($=[...$,{placement:o,overflows:B}],!B.every((t=>t<=0))){var I,V;const t=((null==(I=r.flip)?void 0:I.index)||0)+1,e=P[t];if(e&&("alignment"!==f||g===T(e)||$.every((t=>T(t.placement)!==g||t.overflows[0]>0))))return{data:{index:t,overflows:$},reset:{placement:e}};let n=null==(V=$.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:V.placement;if(!n)switch(d){case"bestFit":{var q;const t=null==(q=$.filter((t=>{if(j){const e=T(t.placement);return e===g||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:q[0];t&&(n=t);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}},kt=async({floatingElement:e,referenceElement:n,arrowElement:i,align:o="top"})=>{var r,s,l;if(!t()){const t=[(l=(null==i?void 0:i.offsetHeight)||10,void 0===l&&(l=0),{name:"offset",options:l,async fn(t){var e,n;const{x:i,y:o,placement:r,middlewareData:s}=t,a=await async function(t,e){const{placement:n,platform:i,elements:o}=t,r=await(null==i.isRTL?void 0:i.isRTL(o.floating)),s=v(n),l=b(n),a="y"===T(n),c=M.has(s)?-1:1,u=r&&a?-1:1,f=x(e,t);let{mainAxis:h,crossAxis:d,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&"number"==typeof m&&(d="end"===l?-1*m:m),a?{x:d*u,y:h*c}:{x:h*c,y:d*u}}(t,l);return r===(null==(e=s.offset)?void 0:e.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:i+a.x,y:o+a.y,data:{...a,placement:r}}}}),Tt(),St()];i&&t.push((t=>({name:"arrow",options:t,async fn(e){const{x:n,y:i,placement:o,rects:r,platform:s,elements:l,middlewareData:a}=e,{element:c,padding:u=0}=x(t,e)||{};if(null==c)return{};const f=D(u),d={x:n,y:i},m=k(o),p=S(m),y=await s.getDimensions(c),w="y"===m,v=w?"top":"left",A=w?"bottom":"right",T=w?"clientHeight":"clientWidth",R=r.reference[p]+r.reference[m]-d[m]-r.floating[p],O=d[m]-r.reference[m],F=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let E=F?F[T]:0;E&&await(null==s.isElement?void 0:s.isElement(F))||(E=l.floating[T]||r.floating[p]);const z=R/2-O/2,C=E/2-y[p]/2-1,L=h(f[v],C),j=h(f[A],C),P=E-y[p]-j,M=E/2-y[p]/2+z,B=g(L,M,P),$=!a.arrow&&null!=b(o)&&M!==B&&r.reference[p]/2-(M<L?L:j)-y[p]/2<0,I=$?M<L?M-L:M-P:0;return{[m]:d[m]+I,data:{[m]:B,centerOffset:M-B-I,...$&&{alignmentOffset:I}},reset:$}}}))({element:i}));const{x:a,y:c,middlewareData:u,placement:f}=await((t,e,n)=>{const i=new Map,o=null!=n?n:{},r={...vt,...o.platform,_c:i};return(async(t,e,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:s}=n,l=s.detectOverflow?s:{...s,detectOverflow:P},a=await(null==s.isRTL?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:u,y:f}=j(c,i,a),h=i,d=0;const m={};for(let n=0;n<r.length;n++){const p=r[n];if(!p)continue;const{name:y,fn:w}=p,{x:g,y:x,data:v,reset:b}=await w({x:u,y:f,initialPlacement:i,placement:h,strategy:o,middlewareData:m,rects:c,platform:l,elements:{reference:t,floating:e}});u=null!=g?g:u,f=null!=x?x:f,m[y]={...m[y],...v},b&&d<50&&(d++,"object"==typeof b&&(b.placement&&(h=b.placement),b.rects&&(c=!0===b.rects?await s.getElementRects({reference:t,floating:e,strategy:o}):b.rects),({x:u,y:f}=j(c,h,a))),n=-1)}return{x:u,y:f,placement:h,strategy:o,middlewareData:m}})(t,e,{...o,platform:r})})(n,e,{placement:o,middleware:t,strategy:"fixed"});Object.assign(e.style,{left:`${a}px`,top:`${c}px`,visibility:"visible"}),i&&((null===(r=u.arrow)||void 0===r?void 0:r.x)?Object.assign(i.style,{left:`${u.arrow.x}px`,top:"bottom"===f?-i.offsetHeight/2+"px":"",bottom:"top"===f?-i.offsetHeight/2+"px":""}):(null===(s=u.arrow)||void 0===s?void 0:s.y)&&Object.assign(i.style,{left:"right"===f?-i.offsetWidth/2+"px":"",right:"left"===f?-i.offsetWidth/2+"px":"",top:`${u.arrow.y}px`}))}},Rt=new Set;let Ot=null;class Ft{constructor(t,e){this.setState=t.setState,this.getState=t.getState,this.renderProps=l(e)}setRenderProp(t,e){this.renderProps[t]=e}getRenderProp(t){return this.renderProps[t]}}const Et={required:[c],optional:[u,f,a]};class zt extends Ft{constructor(t){super(t,Et),this.hasFocusIn=!1,this.hasMouseIn=!1,this.isHiddenForCurrentVisit=!1,this.setTooltipElementRef=t=>{this.tooltipElement=t,this.tooltipElement&&this.addListeners(this.tooltipElement)},this.hideTooltipByEscape=t=>{"Escape"===t.key&&(t.stopPropagation(),t.preventDefault(),this.hideTooltip())},this.handleMouseEnter=()=>{const t=this.isNewVisit();this.hasMouseIn=!0,t&&(this.isHiddenForCurrentVisit=!1),this.showOrHideTooltip()},this.handleMouseLeave=()=>{this.hasMouseIn=!1,this.resetHideFlag(),this.showOrHideTooltip()},this.handleFocusIn=()=>{const t=this.isNewVisit();this.hasFocusIn=!0,t&&(this.isHiddenForCurrentVisit=!1),this.showOrHideTooltip()},this.handleFocusOut=()=>{this.hasFocusIn=!1,this.resetHideFlag(),this.showOrHideTooltip()}}componentWillLoad(t){this.watchLabel(t.label),this.watchAlign(t.align),this.watchBadgeText(t.badgeText),this.watchId(t.id)}watchLabel(t){c.apply(t||void 0,(t=>{this.setRenderProp("label",t)}))}watchAlign(t){u.apply(t,(t=>{this.setRenderProp("align",t)}))}watchBadgeText(t){f.apply(t,(t=>{this.setRenderProp("badgeText",t)}))}watchId(t){a.apply(t,(t=>{this.setRenderProp("id",t)}))}initContext(t){this.previousSibling=t}syncListeners(t,e,n=!1){t&&this.removeListeners(t),e&&(n&&(this.previousSibling=e),this.removeListeners(e),this.addListeners(e))}handleEventListeners(t){this.syncListeners(this.previousSibling,t.previousElementSibling,!0)}hideTooltip(){this.isHiddenForCurrentVisit=!0,this.tooltipElement&&(function(t){if(Rt.delete(t)&&Ot===t){Ot=null;for(const t of Rt)Ot=t;Ot&&Ot.style.setProperty("z-index","1000")}}(this.tooltipElement),n(),this.tooltipElement.classList.remove("show"),this.tooltipElement.classList.add("hide"),this.tooltipElement.addEventListener("animationend",(()=>{var t;(null===(t=this.tooltipElement)||void 0===t?void 0:t.classList.contains("hide"))&&this.tooltipElement.style.removeProperty("display")}),{once:!0}),this.cleanupAutoPositioning&&(this.cleanupAutoPositioning(),this.cleanupAutoPositioning=void 0)),e().removeEventListener("keydown",this.hideTooltipByEscape)}destroy(){clearTimeout(this.overFocusTimeout),this.previousSibling&&(this.removeListeners(this.previousSibling),this.previousSibling=void 0),this.tooltipElement&&this.removeListeners(this.tooltipElement),this.cleanupAutoPositioning&&(this.cleanupAutoPositioning(),this.cleanupAutoPositioning=void 0),e().removeEventListener("keydown",this.hideTooltipByEscape)}isNewVisit(){return!this.hasMouseIn&&!this.hasFocusIn}resetHideFlag(){this.isNewVisit()&&(this.isHiddenForCurrentVisit=!1)}async alignTooltip(){this.tooltipElement&&this.previousSibling&&await kt({align:this.getRenderProp("align"),arrowElement:this.tooltipElement.querySelector(".kol-tooltip__arrow"),floatingElement:this.tooltipElement,referenceElement:this.previousSibling})}showTooltip(){var t;!this.isHiddenForCurrentVisit&&this.previousSibling&&this.tooltipElement&&(Ot!==(t=this.tooltipElement)&&(Ot&&Ot.style.setProperty("z-index","999"),Rt.delete(t),Rt.add(t),t.style.setProperty("z-index","1000"),Ot=t),i(),this.tooltipElement.classList.remove("hide"),this.tooltipElement.classList.add("show"),this.tooltipElement.style.setProperty("display","block"),e().addEventListener("keydown",this.hideTooltipByEscape),this.cleanupAutoPositioning=At(this.previousSibling,this.tooltipElement,(()=>{this.alignTooltip()})))}showOrHideTooltip(){clearTimeout(this.overFocusTimeout),this.overFocusTimeout=setTimeout((()=>{this.hasMouseIn||this.hasFocusIn?this.showTooltip():this.hideTooltip()}),300)}addListeners(t){t.addEventListener("mouseover",this.handleMouseEnter),t.addEventListener("mouseout",this.handleMouseLeave),t.addEventListener("focusin",this.handleFocusIn),t.addEventListener("focusout",this.handleFocusOut)}removeListeners(t){t.removeEventListener("mouseover",this.handleMouseEnter),t.removeEventListener("mouseout",this.handleMouseLeave),t.removeEventListener("focusin",this.handleFocusIn),t.removeEventListener("focusout",this.handleFocusOut)}}export{Ft as B,zt as T,u as a,kt as b,At as c}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{a as t}from"./dev.utils-DDWOHUcg.js";import"./common-BdSzSIXg.js";import{c as e,n as r,A as i,b as a,i as h}from"./props-from-config-ytxYrJUY.js";import{B as n}from"./behavior-Bb7JYoUn.js";import{t as o}from"./i18n-ePBcLlCr.js";const s=e("hasCounter",!1,r),c=e("maxLength",void 0,i,(t=>t>=0)),m=["hard","soft"],u=e("maxLengthBehavior","hard",(function(t){const e=a(t);if(h(e,m))return e;throw new Error(`Invalid max length behavior: ${e}`)})),g={optional:[s,c,u]},l=(t,e,r)=>{if("number"!=typeof e)return o("kol-character-counter-current",{placeholders:{current:String(r)}});if("soft"===t){const t=e-r;return t<0?o("kol-character-limit-exceeded",{placeholders:{over:String(Math.abs(t))}}):o("kol-character-limit-remaining",{placeholders:{remaining:String(t)}})}return o("kol-character-counter-current-of-max-aria",{placeholders:{current:String(r),max:String(e)}})},x=(t,e,r)=>"hard"===t&&"number"==typeof e&&r>=e?o("kol-character-counter-max-aria"):"";class d extends n{constructor(t){super(t,g),this.reannounceToggle=!1,this.setVisualRef=t=>{this.visualSpan=t},this.setAriaRef=t=>{this.ariaSpan=t},this.handleKeyDown=(t,e)=>{const{maxLength:r,maxLengthBehavior:i}=this.getLimit();"hard"!==i||"number"!=typeof r||e<r||(t=>1===t.key.length&&!t.ctrlKey&&!t.metaKey&&!t.altKey)(t)&&this.retriggerAria(e)}}componentWillLoad(t){this.watchHasCounter(t.hasCounter),this.watchMaxLength(t.maxLength),this.watchMaxLengthBehavior(t.maxLengthBehavior)}watchHasCounter(t){s.apply(t,(t=>this.setRenderProp("hasCounter",t)))}watchMaxLength(t){c.apply(t,(t=>this.setRenderProp("maxLength",t)))}watchMaxLengthBehavior(t){u.apply(t,(t=>this.setRenderProp("maxLengthBehavior",t)))}hasCounter(){return!0===this.getRenderProp("hasCounter")}hasSoftLimit(){const{maxLength:t,maxLengthBehavior:e}=this.getLimit();return"number"==typeof t&&"soft"===e}getMaxLengthAttribute(){const{maxLength:t,maxLengthBehavior:e}=this.getLimit();return"hard"===e?t:void 0}getCounterProps(){if(!this.hasCounter())return;const{maxLength:t,maxLengthBehavior:e}=this.getLimit();return{maxLength:t,maxLengthBehavior:e,visualRef:this.setVisualRef,ariaRef:this.setAriaRef}}getCharacterLimitHintId(e){return"number"!=typeof this.getRenderProp("maxLength")||this.hasCounter()?void 0:t(e,"character-limit-hint")}update(t){const e=this.getLimit();this.updateVisual(t,e),clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout((()=>this.updateAria(t,e)),1e3)}updateImmediate(t){const e=this.getLimit();this.updateVisual(t,e),clearTimeout(this.debounceTimer),this.updateAria(t,e)}retriggerAria(t){if(!this.ariaSpan)return;const e=this.getLimit();clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout((()=>this.updateAria(t,e,!0)),1e3)}destroy(){clearTimeout(this.debounceTimer)}getLimit(){return{maxLength:this.getRenderProp("maxLength"),maxLengthBehavior:this.getRenderProp("maxLengthBehavior")}}updateVisual(t,{maxLength:e,maxLengthBehavior:r}){this.visualSpan&&(this.visualSpan.innerText=((t,e,r)=>{if("number"!=typeof e)return o("kol-character-counter-current",{placeholders:{current:String(r)}});if("soft"===t){const t=e-r;return t<0?o("kol-character-limit-exceeded",{placeholders:{over:String(Math.abs(t))}}):o("kol-character-limit-remaining",{placeholders:{remaining:String(t)}})}return o("kol-character-counter-current-of-max",{placeholders:{current:String(r),max:String(e)}})})(r,e,t),this.visualSpan.classList.toggle("kol-form-field__counter--exceeded","soft"===r&&"number"==typeof e&&t>e))}updateAria(t,{maxLength:e,maxLengthBehavior:r},i=!1){if(!this.ariaSpan)return;let a=[l(r,e,t),x(r,e,t)].filter(Boolean).join(" ");i&&(this.reannounceToggle=!this.reannounceToggle,this.reannounceToggle&&(a+=" ")),this.ariaSpan.innerText=a}}export{d as C}
4
+ import{a as t}from"./dev.utils-BwYCy1rP.js";import"./common-BdSzSIXg.js";import{c as e,n as r,A as i,b as a,i as h}from"./props-from-config-ytxYrJUY.js";import{B as n}from"./behavior-CKU2tmCj.js";import{t as o}from"./i18n-ePBcLlCr.js";const s=e("hasCounter",!1,r),c=e("maxLength",void 0,i,(t=>t>=0)),m=["hard","soft"],u=e("maxLengthBehavior","hard",(function(t){const e=a(t);if(h(e,m))return e;throw new Error(`Invalid max length behavior: ${e}`)})),g={optional:[s,c,u]},l=(t,e,r)=>{if("number"!=typeof e)return o("kol-character-counter-current",{placeholders:{current:String(r)}});if("soft"===t){const t=e-r;return t<0?o("kol-character-limit-exceeded",{placeholders:{over:String(Math.abs(t))}}):o("kol-character-limit-remaining",{placeholders:{remaining:String(t)}})}return o("kol-character-counter-current-of-max-aria",{placeholders:{current:String(r),max:String(e)}})},x=(t,e,r)=>"hard"===t&&"number"==typeof e&&r>=e?o("kol-character-counter-max-aria"):"";class d extends n{constructor(t){super(t,g),this.reannounceToggle=!1,this.setVisualRef=t=>{this.visualSpan=t},this.setAriaRef=t=>{this.ariaSpan=t},this.handleKeyDown=(t,e)=>{const{maxLength:r,maxLengthBehavior:i}=this.getLimit();"hard"!==i||"number"!=typeof r||e<r||(t=>1===t.key.length&&!t.ctrlKey&&!t.metaKey&&!t.altKey)(t)&&this.retriggerAria(e)}}componentWillLoad(t){this.watchHasCounter(t.hasCounter),this.watchMaxLength(t.maxLength),this.watchMaxLengthBehavior(t.maxLengthBehavior)}watchHasCounter(t){s.apply(t,(t=>this.setRenderProp("hasCounter",t)))}watchMaxLength(t){c.apply(t,(t=>this.setRenderProp("maxLength",t)))}watchMaxLengthBehavior(t){u.apply(t,(t=>this.setRenderProp("maxLengthBehavior",t)))}hasCounter(){return!0===this.getRenderProp("hasCounter")}hasSoftLimit(){const{maxLength:t,maxLengthBehavior:e}=this.getLimit();return"number"==typeof t&&"soft"===e}getMaxLengthAttribute(){const{maxLength:t,maxLengthBehavior:e}=this.getLimit();return"hard"===e?t:void 0}getCounterProps(){if(!this.hasCounter())return;const{maxLength:t,maxLengthBehavior:e}=this.getLimit();return{maxLength:t,maxLengthBehavior:e,visualRef:this.setVisualRef,ariaRef:this.setAriaRef}}getCharacterLimitHintId(e){return"number"!=typeof this.getRenderProp("maxLength")||this.hasCounter()?void 0:t(e,"character-limit-hint")}update(t){const e=this.getLimit();this.updateVisual(t,e),clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout((()=>this.updateAria(t,e)),1e3)}updateImmediate(t){const e=this.getLimit();this.updateVisual(t,e),clearTimeout(this.debounceTimer),this.updateAria(t,e)}retriggerAria(t){if(!this.ariaSpan)return;const e=this.getLimit();clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout((()=>this.updateAria(t,e,!0)),1e3)}destroy(){clearTimeout(this.debounceTimer)}getLimit(){return{maxLength:this.getRenderProp("maxLength"),maxLengthBehavior:this.getRenderProp("maxLengthBehavior")}}updateVisual(t,{maxLength:e,maxLengthBehavior:r}){this.visualSpan&&(this.visualSpan.innerText=((t,e,r)=>{if("number"!=typeof e)return o("kol-character-counter-current",{placeholders:{current:String(r)}});if("soft"===t){const t=e-r;return t<0?o("kol-character-limit-exceeded",{placeholders:{over:String(Math.abs(t))}}):o("kol-character-limit-remaining",{placeholders:{remaining:String(t)}})}return o("kol-character-counter-current-of-max",{placeholders:{current:String(r),max:String(e)}})})(r,e,t),this.visualSpan.classList.toggle("kol-form-field__counter--exceeded","soft"===r&&"number"==typeof e&&t>e))}updateAria(t,{maxLength:e,maxLengthBehavior:r},i=!1){if(!this.ariaSpan)return;let a=[l(r,e,t),x(r,e,t)].filter(Boolean).join(" ");i&&(this.reannounceToggle=!this.reannounceToggle,this.reannounceToggle&&(a+=" ")),this.ariaSpan.innerText=a}}export{d as C}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{g as t}from"./bootstrap-tgQ2nQQI.js";import{C as e,e as i,k as s}from"./common-BdSzSIXg.js";import{c as o,b as n}from"./props-from-config-ytxYrJUY.js";import{n as a}from"./component-B3OziaRC.js";import{B as r}from"./behavior-CKU2tmCj.js";const l=o("syncValueBySelector",void 0,n),c={optional:[a,l]},u=new Set(["KOL-COMBOBOX","KOL-INPUT-CHECKBOX","KOL-INPUT-COLOR","KOL-INPUT-DATE","KOL-INPUT-EMAIL","KOL-INPUT-FILE","KOL-INPUT-NUMBER","KOL-INPUT-PASSWORD","KOL-INPUT-RADIO","KOL-INPUT-RANGE","KOL-INPUT-TEXT","KOL-SELECT","KOL-SINGLE-SELECT","KOL-TEXTAREA"]);class h extends r{constructor(s,{host:o,type:n,name:a}){var r,l,h,d,f;super(s,c),this.experimentalMode=e(),this.setFormAssociatedValue=t=>{var e;const s=null===(e=this.formAssociated)||void 0===e?void 0:e.getAttribute("name");null!==s&&""!==s||i(` The form field (${this.type}) must have a name attribute to be form-associated. Please define the _name attribute.`);const o=this.tryToStringifyValue(t);this.syncValue(t,o,this.formAssociated),this.syncValue(t,o,this.syncToOwnInput)},this.host=this.findHostWithShadowRoot(o),this.type=n,(null===(r=t())||void 0===r?void 0:r.reflectInputValues)&&u.has(null!==(h=null===(l=this.host)||void 0===l?void 0:l.tagName)&&void 0!==h?h:"")&&a&&(null===(d=this.host)||void 0===d||d.querySelectorAll("input,select,textarea").forEach((t=>{var e;null===(e=this.host)||void 0===e||e.removeChild(t)})),this.formAssociated=this.createFormAssociatedElement(),this.formAssociated.setAttribute("data-form-associated",""),this.formAssociated.setAttribute("hidden",""),null===(f=this.host)||void 0===f||f.appendChild(this.formAssociated))}componentWillLoad(t){this.watchName(t.name),this.watchSyncValueBySelector(t.syncValueBySelector)}watchName(t){a.apply(t,(t=>{this.setRenderProp("name",t),this.setNameAttribute(t)})),void 0===t&&i("A name on input fields or switches is not strictly required, but it might be relevant for the autocomplete function and for the static submission of the input field.")}watchSyncValueBySelector(t){if(this.experimentalMode&&"string"==typeof t){this.setRenderProp("syncValueBySelector",t);const e=document.querySelector(t);e&&(this.syncToOwnInput=e)}}setNameAttribute(t){this.setAttribute("name",this.formAssociated,t)}createFormAssociatedElement(){switch(this.type){case"color":case"date":case"email":case"file":case"number":case"password":case"radio":case"range":case"text":{const t=document.createElement("input");return t.setAttribute("type",this.type),t}case"select":{const t=document.createElement("select");return t.setAttribute("multiple",""),t}case"textarea":return document.createElement("textarea");default:{const t=document.createElement("input");return t.setAttribute("type","hidden"),t}}}findHostWithShadowRoot(t){for(;null===(null==t?void 0:t.shadowRoot)&&t!==document.body;){const e=t.parentNode;t=11===(null==e?void 0:e.nodeType)&&"host"in e?e.host:1===(null==e?void 0:e.nodeType)?e:void 0}return t}setAttribute(t,e,i){if(this.experimentalMode)try{if("boolean"!=typeof(i="object"==typeof i&&null!==i?JSON.stringify(i):i)&&"number"!=typeof i&&"string"!=typeof i)throw new Error("Invalid value type: "+typeof i);null==e||e.setAttribute(t,`${i}`)}catch(i){null==e||e.removeAttribute(t)}}tryToStringifyValue(t){try{return"object"==typeof t&&null!==t?JSON.stringify(t).toString():null==t?null:t.toString()}catch(t){return s(`The form field raw value is not able to stringify! ${t}`),""}}syncValue(t,e,i){if(i)switch(this.type){case"file":"undefined"!=typeof FileList&&t instanceof FileList?i.files=t:i.value="";break;case"select":"SELECT"===i.tagName?this.syncSelectOptions(t,i):this.syncValueAttribute(e,i);break;case"radio":"string"==typeof e&&(i.setAttribute("value",e),i.setAttribute("checked",""),i.value=e);break;default:this.syncValueAttribute(e,i)}}syncSelectOptions(t,e){e.querySelectorAll("option").forEach((t=>{e.removeChild(t)})),(Array.isArray(t)?t:null==t?[]:[t]).forEach((t=>{const i=this.tryToStringifyValue(t);if("string"==typeof i){const t=document.createElement("option");t.setAttribute("value",i),t.setAttribute("selected",""),e.appendChild(t)}}))}syncValueAttribute(t,e){"string"==typeof t?(e.setAttribute("value",t),e.value=t):(e.removeAttribute("value"),e.value="")}}export{h as F}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
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-radio":{elements:{input:{modifiers:null}},modifiers:new Set(["checked","default","disabled","error","info","required","success","touched","warning"])},"kol-select":{elements:{optgroup:{modifiers:new Set(["disabled"])},option:{modifiers:new Set(["disabled","selected"])}},modifiers:new Set(["default","disabled","error","info","required","success","touched","warning"])},"kol-pagination":{elements:{button:{modifiers:new Set(["first","last","next","numbers","previous","selected"])},entries:{modifiers:null},navigation:{modifiers:null},"navigation-list":{modifiers:null},"page-size-select":{modifiers:null},separator:{modifiers:null}},modifiers:null},"kol-custom-suggestions-option":{modifiers:new Set(["disabled"])},"kol-custom-suggestions-options-group":{modifiers:new Set(["cursor-hidden","open"])},"kol-custom-suggestions-toggle":{modifiers:new Set(["disabled"])},"kol-combobox":{elements:{delete:{modifiers:null},group:{modifiers:null}},modifiers:new Set(["open"])},"kol-combobox-toggle":{modifiers:null},"kol-single-select":{elements:{delete:{modifiers:null},group:{modifiers:null},"no-results-message":{modifiers:null}},modifiers:new Set(["open"])},"kol-input-range":{elements:{input:{modifiers:new Set(["number","range"])},"inputs-wrapper":{modifiers:null}},modifiers:null},"kol-split-button":{elements:{button:{modifiers:null},"horizontal-line":{modifiers:null},root:{modifiers:null},"secondary-button":{modifiers:null}},modifiers:null},"kol-spin":{elements:{loader:{modifiers:null},spinner:{modifiers:new Set(["cycle","dot","none"])},"spinner-element":{modifiers:new Set(["1","2","3","neutral"])}},modifiers:null},"kol-table":{elements:{body:{modifiers:null},caption:{modifiers:null},cell:{modifiers:new Set(["actions","align-center","align-justify","align-left","align-right","ascending","body","descending","header","none","other","selection","states","sticky-left","sticky-right"])},"cell-actions":{modifiers:null},"cell-states":{modifiers:null},"focus-element":{modifiers:null},footer:{modifiers:null},head:{modifiers:null},"head-row":{modifiers:null},loader:{modifiers:new Set(["shown"])},row:{modifiers:new Set(["body","footer"])},"scroll-container":{modifiers:null},selection:{modifiers:new Set(["checked","indeterminate"])},"selection-icon":{modifiers:null},"selection-input":{modifiers:new Set(["checkbox","radio"])},"selection-input-tooltip":{modifiers:null},"selection-label":{modifiers:new Set(["disabled"])},settings:{modifiers:null},sort:{modifiers:null},"sort-button":{modifiers:null},"sort-order":{modifiers:null},spacer:{modifiers:new Set(["foot","head"])},"spacer-line":{modifiers:new Set(["foot","head"])},table:{modifiers:null}},modifiers:null},"kol-tabs":{elements:{"button-create":{modifiers:null},"button-group":{modifiers:null},content:{modifiers:null},tab:{modifiers:null},tablist:{modifiers:null}},modifiers:new Set(["align-bottom","align-left","align-right","align-top"])},"kol-textarea":{modifiers:new Set(["default","disabled","error","info","readonly","required","success","touched","warning"])},"kol-toolbar":{elements:{item:{modifiers:null}},modifiers:new Set(["orientation-horizontal","orientation-vertical"])},"kol-tree":{elements:{"treeview-navigation":{modifiers:null}},modifiers:null},"kol-tree-item":{elements:{children:{modifiers:null},link:{modifiers:new Set(["active","first-level"])},"link-inner":{modifiers:null},text:{modifiers:null},"toggle-button":{modifiers:null},"toggle-button-icon":{modifiers:null},"toggle-button-placeholder":{modifiers:null}},modifiers:null},"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}
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 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{b as r}from"./bem-registry-DQUGxdIS.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}
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 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h as o}from"./index-Dulj0jro.js";import{b as l}from"./bem-registry-DQUGxdIS.js";import{B as r}from"./component-B16Fbp3W.js";import{S as s}from"./component-oUQcgxDj.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}
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}
@@ -0,0 +1,4 @@
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 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{c as o}from"./component-W1KZI4h4.js";import{a as i,B as s,b as t,c as e}from"./behavior-Bb7JYoUn.js";import"./common-BdSzSIXg.js";import"./props-from-config-ytxYrJUY.js";import{h as r}from"./index-Dulj0jro.js";import{B as a}from"./component-B05zRrM0.js";import{B as n}from"./component-B16Fbp3W.js";import{a as l}from"./tslib.es6-QNbPBOk5.js";import{b as p}from"./bem-registry-DQUGxdIS.js";import{c as h}from"./clsx-COFh-Vc8.js";const c=o("popoverAlign","bottom"),d={optional:[i]};class m extends s{constructor(o){super(o,d),this.show=!1,this.setPopoverElementRef=o=>{this.popoverElement=o,this.arrowElement=null==o?void 0:o.querySelector(".kol-popover__arrow")},this.setTriggerElement=o=>{this.triggerElement=o},this.alignPopover=async()=>{this.popoverElement&&this.triggerElement&&await t({align:this.getRenderProp("align"),referenceElement:this.triggerElement,arrowElement:this.arrowElement,floatingElement:this.popoverElement})},this.setupAutoUpdate=()=>{this.popoverElement&&this.triggerElement&&!this.cleanupAutoUpdate&&(this.cleanupAutoUpdate=e(this.triggerElement,this.popoverElement,(()=>{this.alignPopover()})))}}componentWillLoad(o){this.watchAlign(o.align)}watchAlign(o){i.apply(o,(o=>{this.setRenderProp("align",o)}))}setShow(o){this.show=o,this.popoverElement&&(this.popoverElement.isConnected?this.toggleVisibility():requestAnimationFrame((()=>{this.toggleVisibility()})))}destroy(){var o;null===(o=this.cleanupAutoUpdate)||void 0===o||o.call(this),this.cleanupAutoUpdate=void 0,this.popoverElement=void 0,this.arrowElement=void 0,this.triggerElement=void 0}toggleVisibility(){var o;if(!this.popoverElement)return;const i=this.popoverElement.matches(":popover-open");if(this.show){if(!i)try{this.popoverElement.showPopover(),this.setupAutoUpdate(),this.alignPopover()}catch(o){}}else if(i)try{this.popoverElement.hidePopover(),null===(o=this.cleanupAutoUpdate)||void 0===o||o.call(this),this.cleanupAutoUpdate=void 0}catch(o){}}}const f=p.forBlock("kol-popover"),v=(o,i)=>{const{align:s="bottom",popoverRef:t,arrowRef:e,class:a}=o,n=l(o,["align","popoverRef","arrowRef","class"]);return r("div",Object.assign({},n,{class:h(f(),a),ref:t,popover:"auto"}),r("div",{class:h(f("arrow"),f("arrow",{[s]:!0})),ref:e}),i.length>0?i:r("slot",null))},u=(o,i)=>{const{accessKey:s,ariaDescription:t,ariaDescriptionId:e,ariaHasPopup:l,ariaSelected:p,customClass:h,disabled:c,handleBlur:d,handleClick:m,handleFocus:f,handleMouseDown:u,hideLabel:b,icons:g,id:j,inline:y,label:B,name:w,on:x,popoverAlign:k,popoverOpen:D,popoverId:I,ref:A,refButton:C,refPopover:R,refTooltip:S,role:F,shortKey:K,tabIndex:P,tooltipAlign:E,type:O,variant:_}=o;return r(a,{block:"kol-popover-button",class:o.class,ref:A,modifiers:{open:D,inline:!0===y}},r(n,{accessKey:s,ariaControls:I,ariaDescription:t,ariaDescriptionId:e,ariaExpanded:D?"true":"false",ariaHasPopup:l,ariaSelected:p,customClass:h,disabled:c,handleBlur:d,handleClick:m,handleFocus:f,handleMouseDown:u,hideLabel:b,icons:g,id:j,inline:y,label:B,name:w,on:x,refButton:C,refTooltip:S,role:F,shortKey:K,tabIndex:P,tooltipAlign:E,type:O,variant:_}),r(v,{align:k,class:"kol-popover-button__popover",id:I,popoverRef:R},i))};export{u as P,m as a,c as p}
4
+ import{c as o}from"./component-D6_K50vT.js";import{a as i,B as s,b as t,c as e}from"./behavior-CKU2tmCj.js";import"./common-BdSzSIXg.js";import"./props-from-config-ytxYrJUY.js";import{h as r}from"./index-DEcM8BEc.js";import{B as a}from"./component-Ccv2lqNq.js";import{B as n}from"./component-B3OziaRC.js";import{a as l}from"./tslib.es6-QNbPBOk5.js";import{b as p}from"./bem-registry-D1KgKnyz.js";import{c as h}from"./clsx-COFh-Vc8.js";const c=o("popoverAlign","bottom"),d={optional:[i]};class m extends s{constructor(o){super(o,d),this.show=!1,this.setPopoverElementRef=o=>{this.popoverElement=o,this.arrowElement=null==o?void 0:o.querySelector(".kol-popover__arrow")},this.setTriggerElement=o=>{this.triggerElement=o},this.alignPopover=async()=>{this.popoverElement&&this.triggerElement&&await t({align:this.getRenderProp("align"),referenceElement:this.triggerElement,arrowElement:this.arrowElement,floatingElement:this.popoverElement})},this.setupAutoUpdate=()=>{this.popoverElement&&this.triggerElement&&!this.cleanupAutoUpdate&&(this.cleanupAutoUpdate=e(this.triggerElement,this.popoverElement,(()=>{this.alignPopover()})))}}componentWillLoad(o){this.watchAlign(o.align)}watchAlign(o){i.apply(o,(o=>{this.setRenderProp("align",o)}))}setShow(o){this.show=o,this.popoverElement&&(this.popoverElement.isConnected?this.toggleVisibility():requestAnimationFrame((()=>{this.toggleVisibility()})))}destroy(){var o;null===(o=this.cleanupAutoUpdate)||void 0===o||o.call(this),this.cleanupAutoUpdate=void 0,this.popoverElement=void 0,this.arrowElement=void 0,this.triggerElement=void 0}toggleVisibility(){var o;if(!this.popoverElement)return;const i=this.popoverElement.matches(":popover-open");if(this.show){if(!i)try{this.popoverElement.showPopover(),this.setupAutoUpdate(),this.alignPopover()}catch(o){}}else if(i)try{this.popoverElement.hidePopover(),null===(o=this.cleanupAutoUpdate)||void 0===o||o.call(this),this.cleanupAutoUpdate=void 0}catch(o){}}}const f=p.forBlock("kol-popover"),v=(o,i)=>{const{align:s="bottom",popoverRef:t,arrowRef:e,class:a}=o,n=l(o,["align","popoverRef","arrowRef","class"]);return r("div",Object.assign({},n,{class:h(f(),a),ref:t,popover:"auto"}),r("div",{class:h(f("arrow"),f("arrow",{[s]:!0})),ref:e}),i.length>0?i:r("slot",null))},u=(o,i)=>{const{accessKey:s,ariaDescription:t,ariaDescriptionId:e,ariaHasPopup:l,ariaSelected:p,customClass:h,disabled:c,handleBlur:d,handleClick:m,handleFocus:f,handleMouseDown:u,hideLabel:b,icons:g,id:y,inline:j,label:w,name:B,on:C,popoverAlign:D,popoverOpen:k,popoverId:x,ref:K,refButton:A,refPopover:E,refTooltip:I,role:R,shortKey:O,tabIndex:P,tooltipAlign:S,type:_,variant:F}=o;return r(a,{block:"kol-popover-button",class:o.class,ref:K,modifiers:{open:k,inline:!0===j}},r(n,{accessKey:s,ariaControls:x,ariaDescription:t,ariaDescriptionId:e,ariaExpanded:k?"true":"false",ariaHasPopup:l,ariaSelected:p,customClass:h,disabled:c,handleBlur:d,handleClick:m,handleFocus:f,handleMouseDown:u,hideLabel:b,icons:g,id:y,inline:j,label:w,name:B,on:C,refButton:A,refTooltip:I,role:R,shortKey:O,tabIndex:P,tooltipAlign:S,type:_,variant:F}),r(v,{align:D,class:"kol-popover-button__popover",id:x,popoverRef:E},i))};export{u as P,m as a,c as p}
@@ -0,0 +1,4 @@
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}
@@ -0,0 +1,4 @@
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}
@@ -0,0 +1,4 @@
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}
@@ -0,0 +1,4 @@
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 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{c as o,b as r,i as t}from"./props-from-config-ytxYrJUY.js";import{h as s}from"./index-Dulj0jro.js";import{b as e}from"./bem-registry-DQUGxdIS.js";import{S as i}from"./component-oUQcgxDj.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}
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}
@@ -0,0 +1,4 @@
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}