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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (734) 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 +4 -42
  7. package/dist/cjs/{Heading-CSxHzc97.js → Heading-CmnijhLd.js} +1 -1
  8. package/dist/cjs/{api-CgWeKMMq.js → api-Bg7hdIrJ.js} +22 -22
  9. package/dist/cjs/{app-globals-pY-Cyxgv.js → app-globals-BwYPSMbG.js} +3 -3
  10. package/dist/cjs/{base-YsLg9vB1.js → base-BVhV5HmV.js} +10 -10
  11. package/dist/cjs/{base-qwdvh9pf.js → base-CQB0r-ZQ.js} +11 -11
  12. package/dist/cjs/{base-CYqcl2o4.js → base-JFyPasp9.js} +27 -24
  13. package/dist/cjs/{base-Bza2102z.js → base-ob1X79UM.js} +13 -14
  14. package/dist/cjs/{base-web-component-Cp4fQ2Mh.js → base-web-component-DBcJrpRb.js} +15 -15
  15. package/dist/cjs/{base-web-component-B6mwGD0m.js → base-web-component-DXCN-Sp3.js} +1 -1
  16. package/dist/cjs/{base-web-component-CkEUtzNr.js → base-web-component-dI9FmFIm.js} +10 -10
  17. package/dist/cjs/{behavior-DV-LMyJJ.js → behavior-B5wr2A8R.js} +7 -7
  18. package/dist/cjs/{behavior-DvLNQY2U.js → behavior-CUmF8rJf.js} +5 -5
  19. package/dist/cjs/{behavior-BqwUv55g.js → behavior-DujaVCwV.js} +5 -5
  20. package/dist/cjs/{bem-registry-CyxrH26c.js → bem-registry-B6QoNC9E.js} +1 -16
  21. package/dist/cjs/{block-bem-BI7yfoFU.js → block-bem-ByCgFI2B.js} +1 -1
  22. package/dist/cjs/{bootstrap-C4lWLUW9.js → bootstrap-HU5YhM_w.js} +2 -2
  23. package/dist/cjs/{color-BW4t1Cif.js → color-C3xsA3Uk.js} +3 -3
  24. package/dist/cjs/{common-C-hcIfzh.js → common-CzGJx0nT.js} +31 -30
  25. package/dist/cjs/{component-CKMtvWhe.js → component-1J4G5HmZ.js} +14 -14
  26. package/dist/cjs/{component-D_9ZydZA.js → component-BexD3069.js} +15 -13
  27. package/dist/cjs/{component-CRDSSR7G.js → component-BilLJFfC.js} +5 -5
  28. package/dist/cjs/{component-BM0H6uUo.js → component-Bza8hlo-.js} +10 -10
  29. package/dist/cjs/{component-DXBzTkOY.js → component-Cbbx7Z6c.js} +4 -4
  30. package/dist/cjs/{component-D5PYQ9Ku.js → component-CjXcCX2V.js} +2 -2
  31. package/dist/cjs/{component-Br2jlQXL.js → component-Cqp00Tb9.js} +8 -8
  32. package/dist/cjs/{component-B9y7UnKg.js → component-DFhuXUqv.js} +15 -15
  33. package/dist/cjs/{component-DtmmNGjm.js → component-DGVc4bOy.js} +4 -4
  34. package/dist/cjs/{component-COEAaB_B.js → component-DkV9oPCL.js} +2 -2
  35. package/dist/cjs/{component-q87oQHev.js → component-Doln6Ltn.js} +5 -5
  36. package/dist/cjs/{component-CeT2UQLF.js → component-DprHBKdZ.js} +7 -7
  37. package/dist/cjs/{contrast-4mAdSLs0.js → contrast-6Nku3lih.js} +2 -2
  38. package/dist/cjs/{controller-DcinOUmN.js → controller-D66Eq44x.js} +1 -1
  39. package/dist/cjs/{dev.utils-DOgQN_zk.js → dev.utils-Bx4sgPsr.js} +2 -2
  40. package/dist/cjs/{devtools-CG9Ov5FS.js → devtools-BXBKJice.js} +3 -3
  41. package/dist/cjs/{disabled-jYcvcwjv.js → disabled-CilmJ-p-.js} +1 -1
  42. package/dist/cjs/{field-control-BT1ZyKNR.js → field-control-B95uzQnW.js} +8 -8
  43. package/dist/cjs/{group-0C7hEZpp.js → group-DGS7K6Ja.js} +7 -7
  44. package/dist/cjs/{has-closer-CvNa5gqv.js → has-closer-iSIrv52u.js} +1 -1
  45. package/dist/cjs/{href-BBhiVyPb.js → href-xojo1zy_.js} +1 -1
  46. package/dist/cjs/{i18n-BnOWw1MQ.js → i18n-D7UmRsV8.js} +2 -2
  47. package/dist/cjs/{i18n-BSWM5nea.js → i18n-DgHI4-xa.js} +2 -0
  48. package/dist/cjs/{id-D1VZsLkg.js → id-DP-w6i4q.js} +1 -1
  49. package/dist/cjs/{index-14cLFAPd.js → index-Ccvyz7Rq.js} +24 -43
  50. package/dist/cjs/index.cjs.js +4 -4
  51. package/dist/cjs/{input-DOHuLJaE.js → input-BKXEykG_.js} +5 -5
  52. package/dist/cjs/{input-container-Ddovz1-b.js → input-container-CWb_kRbs.js} +8 -8
  53. package/dist/cjs/{item--tny4oQM.js → item-C4Boh5Cz.js} +5 -5
  54. package/dist/cjs/{item-aV2WKcK3.js → item-DgNTEUz3.js} +35 -20
  55. package/dist/cjs/{item-CWoQfEPo.js → item-vDMQvV0t.js} +6 -6
  56. package/dist/cjs/{item-ZLQ1Yy47.js → item-wr5KfPYM.js} +13 -14
  57. package/dist/cjs/kol-abbr.cjs.entry.js +13 -12
  58. package/dist/cjs/kol-accordion.cjs.entry.js +21 -20
  59. package/dist/cjs/kol-alert.cjs.entry.js +32 -31
  60. package/dist/cjs/kol-avatar.cjs.entry.js +17 -16
  61. package/dist/cjs/kol-badge.cjs.entry.js +30 -30
  62. package/dist/cjs/kol-breadcrumb.cjs.entry.js +32 -31
  63. package/dist/cjs/kol-button-link.cjs.entry.js +29 -29
  64. package/dist/cjs/kol-button.cjs.entry.js +29 -29
  65. package/dist/cjs/kol-card.cjs.entry.js +34 -34
  66. package/dist/cjs/kol-combobox.cjs.entry.js +46 -46
  67. package/dist/cjs/kol-details.cjs.entry.js +21 -20
  68. package/dist/cjs/kol-dialog.cjs.entry.js +37 -37
  69. package/dist/cjs/kol-drawer.cjs.entry.js +36 -36
  70. package/dist/cjs/kol-form.cjs.entry.js +30 -30
  71. package/dist/cjs/kol-heading.cjs.entry.js +15 -14
  72. package/dist/cjs/kol-icon.cjs.entry.js +20 -16
  73. package/dist/cjs/kol-image.cjs.entry.js +10 -9
  74. package/dist/cjs/kol-input-checkbox.cjs.entry.js +41 -41
  75. package/dist/cjs/kol-input-color.cjs.entry.js +43 -43
  76. package/dist/cjs/kol-input-date.cjs.entry.js +45 -45
  77. package/dist/cjs/kol-input-email.cjs.entry.js +48 -48
  78. package/dist/cjs/kol-input-file.cjs.entry.js +42 -42
  79. package/dist/cjs/kol-input-number.cjs.entry.js +47 -47
  80. package/dist/cjs/kol-input-password.cjs.entry.js +46 -46
  81. package/dist/cjs/kol-input-radio.cjs.entry.js +41 -41
  82. package/dist/cjs/kol-input-range.cjs.entry.js +43 -43
  83. package/dist/cjs/kol-input-text.cjs.entry.js +48 -48
  84. package/dist/cjs/kol-kolibri.cjs.entry.js +13 -12
  85. package/dist/cjs/kol-link-button.cjs.entry.js +30 -29
  86. package/dist/cjs/kol-link.cjs.entry.js +30 -29
  87. package/dist/cjs/kol-meter.cjs.entry.js +20 -22
  88. package/dist/cjs/kol-modal.cjs.entry.js +37 -37
  89. package/dist/cjs/kol-nav.cjs.entry.js +38 -38
  90. package/dist/cjs/kol-pagination.cjs.entry.js +47 -48
  91. package/dist/cjs/kol-popover-button.cjs.entry.js +30 -30
  92. package/dist/cjs/kol-progress.cjs.entry.js +21 -17
  93. package/dist/cjs/kol-quote.cjs.entry.js +12 -11
  94. package/dist/cjs/kol-select.cjs.entry.js +41 -41
  95. package/dist/cjs/kol-single-select.cjs.entry.js +53 -48
  96. package/dist/cjs/kol-skip-nav.cjs.entry.js +32 -31
  97. package/dist/cjs/kol-spin.cjs.entry.js +17 -16
  98. package/dist/cjs/kol-split-button.cjs.entry.js +33 -33
  99. package/dist/cjs/kol-table-stateful.cjs.entry.js +57 -57
  100. package/dist/cjs/kol-table-stateless.cjs.entry.js +45 -45
  101. package/dist/cjs/kol-tabs.cjs.entry.js +36 -39
  102. package/dist/cjs/kol-textarea.cjs.entry.js +48 -46
  103. package/dist/cjs/kol-toast-container.cjs.entry.js +25 -25
  104. package/dist/cjs/kol-toolbar.cjs.entry.js +35 -35
  105. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +15 -14
  106. package/dist/cjs/kol-tree-item.cjs.entry.js +28 -27
  107. package/dist/cjs/kol-tree.cjs.entry.js +12 -11
  108. package/dist/cjs/kol-version.cjs.entry.js +27 -27
  109. package/dist/cjs/kolibri.cjs.js +5 -5
  110. package/dist/cjs/{label-vVOiX4dC.js → label-D6c6jfqK.js} +3 -3
  111. package/dist/cjs/{label-hints-D6EBRW9T.js → label-hints-q3XenWLW.js} +2 -2
  112. package/dist/cjs/{label-lang-segment-CYlAqtUl.js → label-lang-segment-k4OY9qRY.js} +2 -2
  113. package/dist/cjs/{label-with-expert-slot-B9z4nqW1.js → label-with-expert-slot-CJoz7BLw.js} +3 -3
  114. package/dist/cjs/{level-BAiEYu4U.js → level-B6vFMm9s.js} +1 -1
  115. package/dist/cjs/{link-target-4AzB3I84.js → link-target-0qSVsAb2.js} +1 -1
  116. package/dist/cjs/{links-CPNK7VZo.js → links-Ur1e9DOK.js} +2 -2
  117. package/dist/cjs/loader.cjs.js +4 -4
  118. package/dist/cjs/{multiple-B3ZpkzWu.js → multiple-CCxtzqez.js} +1 -1
  119. package/dist/cjs/{number-value-B2yoKlvx.js → number-value-DzAHCwlP.js} +1 -1
  120. package/dist/cjs/{open-CvoX_qxD.js → open-Gxr_K7HK.js} +1 -1
  121. package/dist/cjs/{options-B2pQC9w2.js → options-BT0m0gRT.js} +2 -2
  122. package/dist/cjs/{orientation-u2cvwgBc.js → orientation-CeHU4dT8.js} +1 -1
  123. package/dist/cjs/{placeholder-C9Ngp2tQ.js → placeholder-22xUUFff.js} +1 -1
  124. package/dist/cjs/{props-from-config-BQ2SOZlz.js → props-from-config-D1qhXS9j.js} +1 -1
  125. package/dist/cjs/{read-only-DfWF-Coi.js → read-only-iHApMQEg.js} +1 -1
  126. package/dist/cjs/{required-CdXn16dq.js → required-BYdSI25I.js} +1 -1
  127. package/dist/cjs/{resolve-props-BpLJmK75.js → resolve-props-B_ytLWBO.js} +8 -9
  128. package/dist/cjs/{resolve-props-DhLgYN4l.js → resolve-props-pZBj0tIz.js} +8 -8
  129. package/dist/cjs/{rows-Ca5ya9tG.js → rows-C9vBSQK1.js} +1 -1
  130. package/dist/cjs/{scroll-lock-C7PeigI_.js → scroll-lock-DguXX-Em.js} +2 -2
  131. package/dist/cjs/{smart-button-CB8qIzgQ.js → smart-button-DRMmUyQ5.js} +2 -2
  132. package/dist/cjs/{spell-check-DKRC8xbW.js → spell-check-CxgvHcGA.js} +1 -1
  133. package/dist/cjs/{src-C3NG0rLO.js → src-Bmd7gQCS.js} +1 -1
  134. package/dist/cjs/{step-CZNyTb2h.js → step-CCqgsPCX.js} +1 -1
  135. package/dist/cjs/{suggestions-CZjGY0Eu.js → suggestions-C6Q3kj5J.js} +3 -3
  136. package/dist/cjs/{suggestions-BRclldK2.js → suggestions-CoUp7HmN.js} +2 -2
  137. package/dist/cjs/test-component.cjs.entry.js +4 -3
  138. package/dist/cjs/{toggle-handler-rQkcX4QY.js → toggle-handler-BaOOa9I5.js} +10 -10
  139. package/dist/cjs/{unique-nav-labels-CIAwid5V.js → unique-nav-labels-CgxOyb6V.js} +2 -2
  140. package/dist/cjs/{unit-bsoemclF.js → unit-_oDj-vIB.js} +1 -1
  141. package/dist/cjs/{validators-DuLdbf2D.js → validators-CpCJvM4r.js} +3 -1
  142. package/dist/cjs/{value-string-DZ_FFaUt.js → value-string-CKppMGVM.js} +1 -1
  143. package/dist/cjs/{width-BklaRCqt.js → width-e7f3wHF3.js} +1 -1
  144. package/dist/collection/collection-manifest.json +1 -8
  145. package/dist/collection/components/abbr/component.js +2 -2
  146. package/dist/collection/components/accordion/component.js +2 -2
  147. package/dist/collection/components/accordion/style.css +2 -2
  148. package/dist/collection/components/alert/component.js +4 -3
  149. package/dist/collection/components/alert/style.css +2 -2
  150. package/dist/collection/components/avatar/component.js +2 -2
  151. package/dist/collection/components/badge/component.js +2 -2
  152. package/dist/collection/components/badge/style.css +2 -2
  153. package/dist/collection/components/breadcrumb/component.js +2 -2
  154. package/dist/collection/components/breadcrumb/style.css +2 -2
  155. package/dist/collection/components/button/component.js +1 -1
  156. package/dist/collection/components/button/style.css +2 -2
  157. package/dist/collection/components/button-link/component.js +1 -1
  158. package/dist/collection/components/button-link/style.css +2 -2
  159. package/dist/collection/components/card/component.js +2 -2
  160. package/dist/collection/components/card/style.css +2 -2
  161. package/dist/collection/components/combobox/component.js +4 -4
  162. package/dist/collection/components/combobox/style.css +2 -2
  163. package/dist/collection/components/details/component.js +2 -2
  164. package/dist/collection/components/details/style.css +2 -2
  165. package/dist/collection/components/dialog/component.js +2 -2
  166. package/dist/collection/components/dialog/style.css +2 -2
  167. package/dist/collection/components/drawer/component.js +2 -2
  168. package/dist/collection/components/drawer/style.css +2 -2
  169. package/dist/collection/components/form/component.js +2 -2
  170. package/dist/collection/components/form/style.css +2 -2
  171. package/dist/collection/components/heading/component.js +2 -2
  172. package/dist/collection/components/icon/component.js +5 -5
  173. package/dist/collection/components/icon/style.css +2 -2
  174. package/dist/collection/components/image/component.js +2 -2
  175. package/dist/collection/components/input-checkbox/component.js +3 -3
  176. package/dist/collection/components/input-checkbox/style.css +2 -2
  177. package/dist/collection/components/input-color/component.js +2 -2
  178. package/dist/collection/components/input-color/style.css +2 -2
  179. package/dist/collection/components/input-date/component.js +2 -2
  180. package/dist/collection/components/input-date/style.css +2 -2
  181. package/dist/collection/components/input-email/component.js +1 -1
  182. package/dist/collection/components/input-email/style.css +2 -2
  183. package/dist/collection/components/input-file/component.js +2 -2
  184. package/dist/collection/components/input-file/style.css +2 -2
  185. package/dist/collection/components/input-number/component.js +2 -2
  186. package/dist/collection/components/input-number/style.css +2 -2
  187. package/dist/collection/components/input-password/component.js +1 -1
  188. package/dist/collection/components/input-password/style.css +2 -2
  189. package/dist/collection/components/input-radio/component.js +1 -1
  190. package/dist/collection/components/input-radio/style.css +2 -2
  191. package/dist/collection/components/input-range/component.js +2 -2
  192. package/dist/collection/components/input-range/style.css +2 -2
  193. package/dist/collection/components/input-text/component.js +1 -1
  194. package/dist/collection/components/input-text/style.css +2 -2
  195. package/dist/collection/components/kolibri/component.js +2 -2
  196. package/dist/collection/components/link/component.js +2 -2
  197. package/dist/collection/components/link/style.css +2 -2
  198. package/dist/collection/components/link-button/component.js +2 -2
  199. package/dist/collection/components/link-button/style.css +2 -2
  200. package/dist/collection/components/meter/component.js +2 -2
  201. package/dist/collection/components/modal/component.js +2 -2
  202. package/dist/collection/components/modal/style.css +2 -2
  203. package/dist/collection/components/nav/component.js +2 -2
  204. package/dist/collection/components/nav/style.css +2 -2
  205. package/dist/collection/components/pagination/component.js +8 -10
  206. package/dist/collection/components/pagination/style.css +2 -2
  207. package/dist/collection/components/popover-button/component.js +1 -1
  208. package/dist/collection/components/popover-button/style.css +2 -2
  209. package/dist/collection/components/progress/component.js +6 -3
  210. package/dist/collection/components/quote/component.js +2 -2
  211. package/dist/collection/components/select/component.js +1 -1
  212. package/dist/collection/components/select/style.css +2 -2
  213. package/dist/collection/components/single-select/component.js +10 -6
  214. package/dist/collection/components/single-select/style.css +2 -2
  215. package/dist/collection/components/skip-nav/component.js +2 -2
  216. package/dist/collection/components/skip-nav/style.css +2 -2
  217. package/dist/collection/components/spin/component.js +2 -2
  218. package/dist/collection/components/split-button/component.js +1 -1
  219. package/dist/collection/components/split-button/style.css +2 -2
  220. package/dist/collection/components/table-stateful/component.js +3 -3
  221. package/dist/collection/components/table-stateful/style.css +2 -2
  222. package/dist/collection/components/table-stateless/base.js +3 -0
  223. package/dist/collection/components/table-stateless/component.js +2 -2
  224. package/dist/collection/components/table-stateless/style.css +2 -2
  225. package/dist/collection/components/tabs/component.js +2 -11
  226. package/dist/collection/components/tabs/style.css +2 -2
  227. package/dist/collection/components/textarea/component.js +5 -3
  228. package/dist/collection/components/textarea/style.css +2 -2
  229. package/dist/collection/components/toaster/shadow.js +1 -1
  230. package/dist/collection/components/toaster/style.css +2 -2
  231. package/dist/collection/components/toolbar/component.js +2 -2
  232. package/dist/collection/components/toolbar/style.css +2 -2
  233. package/dist/collection/components/tooltip/component.js +1 -1
  234. package/dist/collection/components/tree/component.js +2 -2
  235. package/dist/collection/components/tree-item/component.js +2 -2
  236. package/dist/collection/components/tree-item/style.css +2 -2
  237. package/dist/collection/components/version/component.js +2 -2
  238. package/dist/collection/components/version/style.css +2 -2
  239. package/dist/collection/internal/functional-components/form-field/custom-suggestions.js +1 -1
  240. package/dist/collection/internal/functional-components/icon/api.js +2 -2
  241. package/dist/collection/internal/functional-components/link/component.js +1 -1
  242. package/dist/collection/internal/functional-components/meter/component.js +3 -6
  243. package/dist/collection/internal/functional-components/pagination/api.js +2 -2
  244. package/dist/collection/internal/functional-components/pagination/component.js +2 -3
  245. package/dist/collection/internal/functional-components/pagination/item.js +18 -3
  246. package/dist/collection/internal/functional-components/progress/component.js +1 -1
  247. package/dist/collection/internal/functional-components/single-select/component.js +2 -1
  248. package/dist/collection/internal/functional-components/tabs/component.js +7 -1
  249. package/dist/collection/internal/props/helpers/validators.js +1 -0
  250. package/dist/collection/internal/props/index.js +1 -0
  251. package/dist/collection/internal/props/label-decorative.js +10 -0
  252. package/dist/collection/locales/de.js +1 -0
  253. package/dist/collection/locales/en.js +1 -0
  254. package/dist/collection/schema/bem-registry.js +0 -15
  255. package/dist/collection/schema/i18n-keys.js +29 -28
  256. package/dist/components/base-web-component2.js +1 -1
  257. package/dist/components/base-web-component4.js +1 -1
  258. package/dist/components/base.js +1 -1
  259. package/dist/components/base2.js +1 -1
  260. package/dist/components/base4.js +1 -1
  261. package/dist/components/behavior.js +1 -1
  262. package/dist/components/behavior2.js +1 -1
  263. package/dist/components/behavior3.js +1 -1
  264. package/dist/components/behavior4.js +1 -1
  265. package/dist/components/bem-registry.js +1 -1
  266. package/dist/components/component10.js +1 -1
  267. package/dist/components/component11.js +1 -1
  268. package/dist/components/component2.js +1 -1
  269. package/dist/components/component3.js +1 -1
  270. package/dist/components/component4.js +1 -1
  271. package/dist/components/component6.js +1 -1
  272. package/dist/components/component7.js +1 -1
  273. package/dist/components/component8.js +1 -1
  274. package/dist/components/component9.js +1 -1
  275. package/dist/components/contrast.js +1 -1
  276. package/dist/components/field-control.js +1 -1
  277. package/dist/components/group.js +1 -1
  278. package/dist/components/i18n2.js +1 -1
  279. package/dist/components/input-container.js +1 -1
  280. package/dist/components/item2.js +1 -1
  281. package/dist/components/item4.js +1 -1
  282. package/dist/components/kol-abbr.js +1 -1
  283. package/dist/components/kol-accordion.js +1 -1
  284. package/dist/components/kol-alert.js +1 -1
  285. package/dist/components/kol-avatar.js +1 -1
  286. package/dist/components/kol-badge.js +1 -1
  287. package/dist/components/kol-breadcrumb.js +1 -1
  288. package/dist/components/kol-button-link.js +1 -1
  289. package/dist/components/kol-button.js +1 -1
  290. package/dist/components/kol-card.js +1 -1
  291. package/dist/components/kol-combobox.js +1 -1
  292. package/dist/components/kol-details.js +1 -1
  293. package/dist/components/kol-dialog.js +1 -1
  294. package/dist/components/kol-drawer.js +1 -1
  295. package/dist/components/kol-form.js +1 -1
  296. package/dist/components/kol-heading.js +1 -1
  297. package/dist/components/kol-icon.js +1 -1
  298. package/dist/components/kol-image.js +1 -1
  299. package/dist/components/kol-input-checkbox.js +1 -1
  300. package/dist/components/kol-input-color.js +1 -1
  301. package/dist/components/kol-input-date.js +1 -1
  302. package/dist/components/kol-input-email.js +1 -1
  303. package/dist/components/kol-input-file.js +1 -1
  304. package/dist/components/kol-input-number.js +1 -1
  305. package/dist/components/kol-input-password.js +1 -1
  306. package/dist/components/kol-input-radio.js +1 -1
  307. package/dist/components/kol-input-range.js +1 -1
  308. package/dist/components/kol-input-text.js +1 -1
  309. package/dist/components/kol-kolibri.js +1 -1
  310. package/dist/components/kol-link-button.js +1 -1
  311. package/dist/components/kol-link.js +1 -1
  312. package/dist/components/kol-meter.js +1 -1
  313. package/dist/components/kol-modal.js +1 -1
  314. package/dist/components/kol-nav.js +1 -1
  315. package/dist/components/kol-pagination.js +1 -1
  316. package/dist/components/kol-popover-button.js +1 -1
  317. package/dist/components/kol-progress.js +1 -1
  318. package/dist/components/kol-quote.js +1 -1
  319. package/dist/components/kol-select.js +1 -1
  320. package/dist/components/kol-single-select.js +1 -1
  321. package/dist/components/kol-skip-nav.js +1 -1
  322. package/dist/components/kol-spin.js +1 -1
  323. package/dist/components/kol-split-button.js +1 -1
  324. package/dist/components/kol-table-stateful.js +1 -1
  325. package/dist/components/kol-table-stateless.js +1 -1
  326. package/dist/components/kol-tabs.js +1 -1
  327. package/dist/components/kol-textarea.js +1 -1
  328. package/dist/components/kol-toast-container.js +1 -1
  329. package/dist/components/kol-toolbar.js +1 -1
  330. package/dist/components/kol-tooltip-wc.js +1 -1
  331. package/dist/components/kol-tree-item.js +1 -1
  332. package/dist/components/kol-tree.js +1 -1
  333. package/dist/components/kol-version.js +1 -1
  334. package/dist/components/label-hints.js +1 -1
  335. package/dist/components/label-lang-segment.js +1 -1
  336. package/dist/components/label-with-expert-slot.js +1 -1
  337. package/dist/components/label.js +1 -1
  338. package/dist/components/level.js +1 -1
  339. package/dist/components/props-from-config.js +1 -1
  340. package/dist/components/resolve-props.js +1 -1
  341. package/dist/components/rows.js +1 -1
  342. package/dist/components/unit.js +1 -1
  343. package/dist/components/validators.js +1 -1
  344. package/dist/esm/{Heading-Bj2Ma7Tr.js → Heading-C_CwXDMp.js} +1 -1
  345. package/dist/esm/{api-DhMNvXtN.js → api-DGiFM9p0.js} +20 -20
  346. package/dist/esm/{app-globals-Dpmwwlv-.js → app-globals-sZHZyXjD.js} +3 -3
  347. package/dist/esm/{base-DV_Pzm7z.js → base-B4sGK9cX.js} +12 -13
  348. package/dist/esm/{base-IzdO60L1.js → base-CWrvN3Gt.js} +10 -10
  349. package/dist/esm/{base-CJ5WCVaj.js → base-DTKJ1Z06.js} +27 -24
  350. package/dist/esm/{base-Ba-xzpOT.js → base-P1TaQ7Ba.js} +11 -11
  351. package/dist/esm/{base-web-component-BB3dHStd.js → base-web-component-Bq_B9edx.js} +15 -15
  352. package/dist/esm/{base-web-component-XgI4wUyN.js → base-web-component-CC_gpyDb.js} +1 -1
  353. package/dist/esm/{base-web-component-ug9DZUOx.js → base-web-component-CKgIOZqi.js} +10 -10
  354. package/dist/esm/{behavior-B4IW5_Qt.js → behavior-Bb7JYoUn.js} +5 -5
  355. package/dist/esm/{behavior-BgmZcrK6.js → behavior-CFG1f4KQ.js} +5 -5
  356. package/dist/esm/{behavior-BMXrK4gj.js → behavior-CkPQGfgo.js} +5 -5
  357. package/dist/esm/{bem-registry-CWN7_O1L.js → bem-registry-DQUGxdIS.js} +1 -16
  358. package/dist/esm/{block-bem-BpQSY04L.js → block-bem-BGIVcYJu.js} +1 -1
  359. package/dist/esm/{bootstrap-DHXUvPBY.js → bootstrap-tgQ2nQQI.js} +2 -2
  360. package/dist/esm/{color-eAL9I7Wq.js → color-D1gM-F2l.js} +3 -3
  361. package/dist/esm/{common-OzsC_6kt.js → common-BdSzSIXg.js} +31 -30
  362. package/dist/esm/{component-DdIOGRgB.js → component-5Uu-ahLC.js} +4 -4
  363. package/dist/esm/{component-scm3PBuq.js → component-B05zRrM0.js} +2 -2
  364. package/dist/esm/{component-Dt6efHXY.js → component-B16Fbp3W.js} +14 -13
  365. package/dist/esm/{component-BiYFPpjn.js → component-BI8jDgBz.js} +10 -10
  366. package/dist/esm/{component-Drxdk3mb.js → component-Bc2pdOk1.js} +8 -8
  367. package/dist/esm/{component-BvvE8aim.js → component-C79oAu7a.js} +5 -5
  368. package/dist/esm/{component-ChtW1HQv.js → component-CldKbBUh.js} +7 -7
  369. package/dist/esm/{component-C5QCCLLa.js → component-Clz6b6ho.js} +2 -2
  370. package/dist/esm/{component-gj7TBL0i.js → component-Ct11K0Gv.js} +14 -14
  371. package/dist/esm/{component-Ua7-J4C-.js → component-DAQzDMY8.js} +15 -15
  372. package/dist/esm/{component-BKfXEtN0.js → component-W1KZI4h4.js} +4 -4
  373. package/dist/esm/{component-C0zMsvYl.js → component-oUQcgxDj.js} +5 -5
  374. package/dist/esm/{contrast-D78VGPFR.js → contrast-BNoQruBh.js} +2 -2
  375. package/dist/esm/{controller-Cb-96wE-.js → controller-CZcQ57AP.js} +1 -1
  376. package/dist/esm/{dev.utils-CwXr_J8N.js → dev.utils-DDWOHUcg.js} +2 -2
  377. package/dist/esm/{devtools-QEDvmhav.js → devtools-B0kEE_za.js} +3 -3
  378. package/dist/esm/{disabled-Cqhc40CU.js → disabled-BZXlWAgK.js} +1 -1
  379. package/dist/esm/{field-control-BOsAM8BW.js → field-control-DsQHa0v9.js} +8 -8
  380. package/dist/esm/{group-D4WbZY27.js → group-DUVsgWxS.js} +7 -7
  381. package/dist/esm/{has-closer-B9NQY7BK.js → has-closer-DUB0QcS9.js} +1 -1
  382. package/dist/esm/{href-JqLbNBsW.js → href-CxokGOJ2.js} +1 -1
  383. package/dist/esm/{i18n-Dl6Jjofb.js → i18n-4J6U3ZDc.js} +2 -0
  384. package/dist/esm/{i18n-DtLKn3Xt.js → i18n-ePBcLlCr.js} +2 -2
  385. package/dist/esm/{id-CIYvVaNr.js → id-BI0ZuK17.js} +1 -1
  386. package/dist/esm/{index-D_P2XoAc.js → index-Dulj0jro.js} +25 -43
  387. package/dist/esm/index.js +6 -6
  388. package/dist/esm/{input-C0kj1MmP.js → input-C0Li7DsE.js} +5 -5
  389. package/dist/esm/{input-container-B4TgBfDz.js → input-container-DmtMTcjB.js} +8 -8
  390. package/dist/esm/{item-e4SzwxHe.js → item-8RKFpmbd.js} +6 -6
  391. package/dist/esm/{item-DRC1CmzC.js → item-CnJMuEyl.js} +5 -5
  392. package/dist/esm/{item-WrCdQw7F.js → item-CxVe5INa.js} +35 -20
  393. package/dist/esm/{item-BMniY_My.js → item-DHZGDrAn.js} +12 -13
  394. package/dist/esm/kol-abbr.entry.js +13 -12
  395. package/dist/esm/kol-accordion.entry.js +21 -20
  396. package/dist/esm/kol-alert.entry.js +32 -31
  397. package/dist/esm/kol-avatar.entry.js +17 -16
  398. package/dist/esm/kol-badge.entry.js +30 -30
  399. package/dist/esm/kol-breadcrumb.entry.js +32 -31
  400. package/dist/esm/kol-button-link.entry.js +29 -29
  401. package/dist/esm/kol-button.entry.js +29 -29
  402. package/dist/esm/kol-card.entry.js +34 -34
  403. package/dist/esm/kol-combobox.entry.js +46 -46
  404. package/dist/esm/kol-details.entry.js +21 -20
  405. package/dist/esm/kol-dialog.entry.js +37 -37
  406. package/dist/esm/kol-drawer.entry.js +36 -36
  407. package/dist/esm/kol-form.entry.js +30 -30
  408. package/dist/esm/kol-heading.entry.js +15 -14
  409. package/dist/esm/kol-icon.entry.js +20 -16
  410. package/dist/esm/kol-image.entry.js +10 -9
  411. package/dist/esm/kol-input-checkbox.entry.js +41 -41
  412. package/dist/esm/kol-input-color.entry.js +43 -43
  413. package/dist/esm/kol-input-date.entry.js +45 -45
  414. package/dist/esm/kol-input-email.entry.js +48 -48
  415. package/dist/esm/kol-input-file.entry.js +42 -42
  416. package/dist/esm/kol-input-number.entry.js +47 -47
  417. package/dist/esm/kol-input-password.entry.js +46 -46
  418. package/dist/esm/kol-input-radio.entry.js +41 -41
  419. package/dist/esm/kol-input-range.entry.js +43 -43
  420. package/dist/esm/kol-input-text.entry.js +48 -48
  421. package/dist/esm/kol-kolibri.entry.js +13 -12
  422. package/dist/esm/kol-link-button.entry.js +30 -29
  423. package/dist/esm/kol-link.entry.js +30 -29
  424. package/dist/esm/kol-meter.entry.js +20 -22
  425. package/dist/esm/kol-modal.entry.js +37 -37
  426. package/dist/esm/kol-nav.entry.js +38 -38
  427. package/dist/esm/kol-pagination.entry.js +47 -48
  428. package/dist/esm/kol-popover-button.entry.js +30 -30
  429. package/dist/esm/kol-progress.entry.js +21 -17
  430. package/dist/esm/kol-quote.entry.js +12 -11
  431. package/dist/esm/kol-select.entry.js +41 -41
  432. package/dist/esm/kol-single-select.entry.js +53 -48
  433. package/dist/esm/kol-skip-nav.entry.js +32 -31
  434. package/dist/esm/kol-spin.entry.js +17 -16
  435. package/dist/esm/kol-split-button.entry.js +33 -33
  436. package/dist/esm/kol-table-stateful.entry.js +57 -57
  437. package/dist/esm/kol-table-stateless.entry.js +45 -45
  438. package/dist/esm/kol-tabs.entry.js +36 -39
  439. package/dist/esm/kol-textarea.entry.js +48 -46
  440. package/dist/esm/kol-toast-container.entry.js +25 -25
  441. package/dist/esm/kol-toolbar.entry.js +35 -35
  442. package/dist/esm/kol-tooltip-wc.entry.js +15 -14
  443. package/dist/esm/kol-tree-item.entry.js +28 -27
  444. package/dist/esm/kol-tree.entry.js +12 -11
  445. package/dist/esm/kol-version.entry.js +27 -27
  446. package/dist/esm/kolibri.js +6 -6
  447. package/dist/esm/{label-BRosRgdX.js → label-B-Dr7VaP.js} +3 -3
  448. package/dist/esm/{label-hints-Jn18RUT-.js → label-hints-CLMiVvfk.js} +2 -2
  449. package/dist/esm/{label-lang-segment-2_GnxjFp.js → label-lang-segment-iVD9hoM3.js} +2 -2
  450. package/dist/esm/{label-with-expert-slot-CicRes-W.js → label-with-expert-slot-BbZ9nx0l.js} +3 -3
  451. package/dist/esm/{level-CA1s1_Mf.js → level-DsQ_pcyD.js} +1 -1
  452. package/dist/esm/{link-target-FX94oqMo.js → link-target-D7lYILOV.js} +1 -1
  453. package/dist/esm/{links-DwucTqcR.js → links-IkK4zoXw.js} +2 -2
  454. package/dist/esm/loader.js +5 -5
  455. package/dist/esm/{multiple-DqrZxybx.js → multiple--ay1C1n3.js} +1 -1
  456. package/dist/esm/{number-value-B-SJ1dRo.js → number-value-Dl9-2O4r.js} +1 -1
  457. package/dist/esm/{open-DRRv1KFK.js → open-CNHJhHsy.js} +1 -1
  458. package/dist/esm/{options-DCaUcfAu.js → options-DwO32GBF.js} +2 -2
  459. package/dist/esm/{orientation-XNOCaPwy.js → orientation-ChJ0S24M.js} +1 -1
  460. package/dist/esm/{placeholder-BeLIzdJv.js → placeholder-UxmBJ4Vl.js} +1 -1
  461. package/dist/esm/{props-from-config-Ci0dILpz.js → props-from-config-ytxYrJUY.js} +1 -1
  462. package/dist/esm/{read-only-Bby9r6ZX.js → read-only-DytZ5HZJ.js} +1 -1
  463. package/dist/esm/{required-hoaT7UmZ.js → required-BriHhuO4.js} +1 -1
  464. package/dist/esm/{resolve-props-CqTztQhV.js → resolve-props-02J6OCRf.js} +8 -8
  465. package/dist/esm/{resolve-props-B-67viId.js → resolve-props-Bj6IaybL.js} +7 -8
  466. package/dist/esm/{rows-B0x8CR7K.js → rows-I1jrTjzU.js} +1 -1
  467. package/dist/esm/{scroll-lock-CKnC0y0o.js → scroll-lock-B6hVv8A8.js} +2 -2
  468. package/dist/esm/{smart-button-CS_ZriPt.js → smart-button-DM5g48-g.js} +2 -2
  469. package/dist/esm/{spell-check-DzgftyqL.js → spell-check-BWCnJG5v.js} +1 -1
  470. package/dist/esm/{src-DaGhmCL1.js → src-ziOwSglN.js} +1 -1
  471. package/dist/esm/{step-Bdj89bGO.js → step-BcyhvRtu.js} +1 -1
  472. package/dist/esm/{suggestions-Be1_H9fA.js → suggestions-DaB3FVaz.js} +3 -3
  473. package/dist/esm/{suggestions-Dy1X-Pc3.js → suggestions-LO267l8F.js} +2 -2
  474. package/dist/esm/test-component.entry.js +4 -3
  475. package/dist/esm/{toggle-handler-Cjc991vd.js → toggle-handler-3qaN2kmt.js} +10 -10
  476. package/dist/esm/{unique-nav-labels-h2KOu5Qy.js → unique-nav-labels-CxFUYSVY.js} +2 -2
  477. package/dist/esm/{unit-BUhhJbhT.js → unit-1ix-K9SD.js} +1 -1
  478. package/dist/esm/{validators-BVM40IEr.js → validators-CTjxOidB.js} +3 -2
  479. package/dist/esm/{value-string-e9pwLcS-.js → value-string-CxDz7dhD.js} +1 -1
  480. package/dist/esm/{width-CgYY17tL.js → width-C1_yZHyL.js} +1 -1
  481. package/dist/kolibri/Heading-C_CwXDMp.js +4 -0
  482. package/dist/kolibri/api-DGiFM9p0.js +4 -0
  483. package/dist/kolibri/app-globals-sZHZyXjD.js +4 -0
  484. package/dist/kolibri/base-B4sGK9cX.js +4 -0
  485. package/dist/kolibri/{base-IzdO60L1.js → base-CWrvN3Gt.js} +1 -1
  486. package/dist/kolibri/base-DTKJ1Z06.js +4 -0
  487. package/dist/kolibri/{base-Ba-xzpOT.js → base-P1TaQ7Ba.js} +1 -1
  488. package/dist/kolibri/{base-web-component-BB3dHStd.js → base-web-component-Bq_B9edx.js} +1 -1
  489. package/dist/kolibri/{base-web-component-XgI4wUyN.js → base-web-component-CC_gpyDb.js} +1 -1
  490. package/dist/kolibri/{base-web-component-ug9DZUOx.js → base-web-component-CKgIOZqi.js} +1 -1
  491. package/dist/kolibri/{behavior-B4IW5_Qt.js → behavior-Bb7JYoUn.js} +1 -1
  492. package/dist/kolibri/{behavior-BgmZcrK6.js → behavior-CFG1f4KQ.js} +1 -1
  493. package/dist/kolibri/behavior-CkPQGfgo.js +4 -0
  494. package/dist/kolibri/bem-registry-DQUGxdIS.js +4 -0
  495. package/dist/kolibri/{block-bem-BpQSY04L.js → block-bem-BGIVcYJu.js} +1 -1
  496. package/dist/kolibri/bootstrap-tgQ2nQQI.js +4 -0
  497. package/dist/kolibri/{color-eAL9I7Wq.js → color-D1gM-F2l.js} +1 -1
  498. package/dist/kolibri/common-BdSzSIXg.js +4 -0
  499. package/dist/kolibri/component-5Uu-ahLC.js +4 -0
  500. package/dist/kolibri/component-B05zRrM0.js +4 -0
  501. package/dist/kolibri/component-B16Fbp3W.js +4 -0
  502. package/dist/kolibri/component-BI8jDgBz.js +4 -0
  503. package/dist/kolibri/{component-Drxdk3mb.js → component-Bc2pdOk1.js} +1 -1
  504. package/dist/kolibri/component-C79oAu7a.js +4 -0
  505. package/dist/kolibri/component-CldKbBUh.js +4 -0
  506. package/dist/kolibri/component-Clz6b6ho.js +4 -0
  507. package/dist/kolibri/component-Ct11K0Gv.js +4 -0
  508. package/dist/kolibri/component-DAQzDMY8.js +4 -0
  509. package/dist/kolibri/component-W1KZI4h4.js +4 -0
  510. package/dist/kolibri/{component-C0zMsvYl.js → component-oUQcgxDj.js} +1 -1
  511. package/dist/kolibri/contrast-BNoQruBh.js +4 -0
  512. package/dist/kolibri/{controller-Cb-96wE-.js → controller-CZcQ57AP.js} +1 -1
  513. package/dist/kolibri/dev.utils-DDWOHUcg.js +4 -0
  514. package/dist/kolibri/{devtools-QEDvmhav.js → devtools-B0kEE_za.js} +1 -1
  515. package/dist/kolibri/disabled-BZXlWAgK.js +4 -0
  516. package/dist/kolibri/field-control-DsQHa0v9.js +4 -0
  517. package/dist/kolibri/group-DUVsgWxS.js +4 -0
  518. package/dist/kolibri/has-closer-DUB0QcS9.js +4 -0
  519. package/dist/kolibri/href-CxokGOJ2.js +4 -0
  520. package/dist/kolibri/i18n-4J6U3ZDc.js +4 -0
  521. package/dist/kolibri/i18n-ePBcLlCr.js +4 -0
  522. package/dist/kolibri/id-BI0ZuK17.js +4 -0
  523. package/dist/kolibri/index-Dulj0jro.js +6 -0
  524. package/dist/kolibri/index.esm.js +1 -1
  525. package/dist/kolibri/input-C0Li7DsE.js +4 -0
  526. package/dist/kolibri/input-container-DmtMTcjB.js +4 -0
  527. package/dist/kolibri/item-8RKFpmbd.js +4 -0
  528. package/dist/kolibri/item-CnJMuEyl.js +4 -0
  529. package/dist/kolibri/item-CxVe5INa.js +4 -0
  530. package/dist/kolibri/item-DHZGDrAn.js +4 -0
  531. package/dist/kolibri/kol-abbr.entry.js +1 -1
  532. package/dist/kolibri/kol-accordion.entry.js +1 -1
  533. package/dist/kolibri/kol-alert.entry.js +1 -1
  534. package/dist/kolibri/kol-avatar.entry.js +1 -1
  535. package/dist/kolibri/kol-badge.entry.js +1 -1
  536. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  537. package/dist/kolibri/kol-button-link.entry.js +1 -1
  538. package/dist/kolibri/kol-button.entry.js +1 -1
  539. package/dist/kolibri/kol-card.entry.js +1 -1
  540. package/dist/kolibri/kol-combobox.entry.js +1 -1
  541. package/dist/kolibri/kol-details.entry.js +1 -1
  542. package/dist/kolibri/kol-dialog.entry.js +1 -1
  543. package/dist/kolibri/kol-drawer.entry.js +1 -1
  544. package/dist/kolibri/kol-form.entry.js +1 -1
  545. package/dist/kolibri/kol-heading.entry.js +1 -1
  546. package/dist/kolibri/kol-icon.entry.js +1 -1
  547. package/dist/kolibri/kol-image.entry.js +1 -1
  548. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  549. package/dist/kolibri/kol-input-color.entry.js +1 -1
  550. package/dist/kolibri/kol-input-date.entry.js +1 -1
  551. package/dist/kolibri/kol-input-email.entry.js +1 -1
  552. package/dist/kolibri/kol-input-file.entry.js +1 -1
  553. package/dist/kolibri/kol-input-number.entry.js +1 -1
  554. package/dist/kolibri/kol-input-password.entry.js +1 -1
  555. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  556. package/dist/kolibri/kol-input-range.entry.js +1 -1
  557. package/dist/kolibri/kol-input-text.entry.js +1 -1
  558. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  559. package/dist/kolibri/kol-link-button.entry.js +1 -1
  560. package/dist/kolibri/kol-link.entry.js +1 -1
  561. package/dist/kolibri/kol-meter.entry.js +1 -1
  562. package/dist/kolibri/kol-modal.entry.js +1 -1
  563. package/dist/kolibri/kol-nav.entry.js +1 -1
  564. package/dist/kolibri/kol-pagination.entry.js +1 -1
  565. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  566. package/dist/kolibri/kol-progress.entry.js +1 -1
  567. package/dist/kolibri/kol-quote.entry.js +1 -1
  568. package/dist/kolibri/kol-select.entry.js +1 -1
  569. package/dist/kolibri/kol-single-select.entry.js +1 -1
  570. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  571. package/dist/kolibri/kol-spin.entry.js +1 -1
  572. package/dist/kolibri/kol-split-button.entry.js +1 -1
  573. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  574. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  575. package/dist/kolibri/kol-tabs.entry.js +1 -1
  576. package/dist/kolibri/kol-textarea.entry.js +1 -1
  577. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  578. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  579. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  580. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  581. package/dist/kolibri/kol-tree.entry.js +1 -1
  582. package/dist/kolibri/kol-version.entry.js +1 -1
  583. package/dist/kolibri/kolibri.esm.js +1 -1
  584. package/dist/kolibri/label-B-Dr7VaP.js +4 -0
  585. package/dist/kolibri/label-hints-CLMiVvfk.js +4 -0
  586. package/dist/kolibri/label-lang-segment-iVD9hoM3.js +4 -0
  587. package/dist/kolibri/label-with-expert-slot-BbZ9nx0l.js +4 -0
  588. package/dist/kolibri/level-DsQ_pcyD.js +4 -0
  589. package/dist/kolibri/link-target-D7lYILOV.js +4 -0
  590. package/dist/kolibri/links-IkK4zoXw.js +4 -0
  591. package/dist/kolibri/multiple--ay1C1n3.js +4 -0
  592. package/dist/kolibri/number-value-Dl9-2O4r.js +4 -0
  593. package/dist/kolibri/open-CNHJhHsy.js +4 -0
  594. package/dist/kolibri/options-DwO32GBF.js +4 -0
  595. package/dist/kolibri/orientation-ChJ0S24M.js +4 -0
  596. package/dist/kolibri/placeholder-UxmBJ4Vl.js +4 -0
  597. package/dist/kolibri/{props-from-config-Ci0dILpz.js → props-from-config-ytxYrJUY.js} +1 -1
  598. package/dist/kolibri/read-only-DytZ5HZJ.js +4 -0
  599. package/dist/kolibri/required-BriHhuO4.js +4 -0
  600. package/dist/kolibri/resolve-props-02J6OCRf.js +4 -0
  601. package/dist/kolibri/resolve-props-Bj6IaybL.js +4 -0
  602. package/dist/kolibri/rows-I1jrTjzU.js +4 -0
  603. package/dist/kolibri/scroll-lock-B6hVv8A8.js +4 -0
  604. package/dist/kolibri/{smart-button-CS_ZriPt.js → smart-button-DM5g48-g.js} +1 -1
  605. package/dist/kolibri/spell-check-BWCnJG5v.js +4 -0
  606. package/dist/kolibri/src-ziOwSglN.js +4 -0
  607. package/dist/kolibri/step-BcyhvRtu.js +4 -0
  608. package/dist/kolibri/{suggestions-Be1_H9fA.js → suggestions-DaB3FVaz.js} +1 -1
  609. package/dist/kolibri/{suggestions-Dy1X-Pc3.js → suggestions-LO267l8F.js} +1 -1
  610. package/dist/kolibri/test-component.entry.js +1 -1
  611. package/dist/kolibri/{toggle-handler-Cjc991vd.js → toggle-handler-3qaN2kmt.js} +1 -1
  612. package/dist/kolibri/unique-nav-labels-CxFUYSVY.js +4 -0
  613. package/dist/kolibri/unit-1ix-K9SD.js +4 -0
  614. package/dist/kolibri/validators-CTjxOidB.js +4 -0
  615. package/dist/kolibri/value-string-CxDz7dhD.js +4 -0
  616. package/dist/kolibri/{width-CgYY17tL.js → width-C1_yZHyL.js} +1 -1
  617. package/dist/types/components/pagination/component.d.ts +1 -1
  618. package/dist/types/components/progress/component.d.ts +1 -0
  619. package/dist/types/components/single-select/component.d.ts +1 -0
  620. package/dist/types/components/tabs/component.d.ts +0 -1
  621. package/dist/types/components.d.ts +3 -97
  622. package/dist/types/internal/functional-components/form-field/custom-suggestions.d.ts +1 -0
  623. package/dist/types/internal/functional-components/icon/api.d.ts +1 -1
  624. package/dist/types/internal/functional-components/pagination/api.d.ts +2 -2
  625. package/dist/types/internal/functional-components/pagination/item.d.ts +1 -1
  626. package/dist/types/internal/functional-components/single-select/component.d.ts +3 -0
  627. package/dist/types/internal/props/helpers/validators.d.ts +2 -1
  628. package/dist/types/internal/props/index.d.ts +1 -0
  629. package/dist/types/internal/props/label-decorative.d.ts +4 -0
  630. package/dist/types/locales/de.d.ts +1 -0
  631. package/dist/types/locales/en.d.ts +1 -0
  632. package/dist/types/schema/bem-registry.d.ts +0 -25
  633. package/dist/types/schema/components/pagination.d.ts +2 -2
  634. package/dist/types/schema/i18n-keys.d.ts +29 -28
  635. package/dist/types/schema/index.d.ts +1 -1
  636. package/dist/types/schema/props/label.d.ts +1 -0
  637. package/dist/types/stencil-public-runtime.d.ts +1 -1
  638. package/doc/pagination.md +13 -13
  639. package/doc/table-stateful.md +1 -1
  640. package/package.json +8 -8
  641. package/vscode-custom-data.json +0 -13
  642. package/dist/cjs/component-r497oHWq.js +0 -14
  643. package/dist/cjs/kol-click-button.cjs.entry.js +0 -55
  644. package/dist/cjs/kol-skeleton.cjs.entry.js +0 -107
  645. package/dist/cjs/name-D4qpL1m-.js +0 -10
  646. package/dist/collection/components/click-button/component.js +0 -105
  647. package/dist/collection/components/skeleton/component.js +0 -215
  648. package/dist/collection/internal/functional-components/click-button/api.js +0 -7
  649. package/dist/collection/internal/functional-components/click-button/component.js +0 -9
  650. package/dist/collection/internal/functional-components/skeleton/api.js +0 -7
  651. package/dist/collection/internal/functional-components/skeleton/component.js +0 -20
  652. package/dist/components/component12.js +0 -4
  653. package/dist/components/kol-click-button.d.ts +0 -11
  654. package/dist/components/kol-click-button.js +0 -4
  655. package/dist/components/kol-skeleton.d.ts +0 -11
  656. package/dist/components/kol-skeleton.js +0 -4
  657. package/dist/components/name.js +0 -4
  658. package/dist/esm/component-Db9HadXA.js +0 -12
  659. package/dist/esm/kol-click-button.entry.js +0 -53
  660. package/dist/esm/kol-skeleton.entry.js +0 -105
  661. package/dist/esm/name-B2Yf3EpX.js +0 -8
  662. package/dist/kolibri/Heading-Bj2Ma7Tr.js +0 -4
  663. package/dist/kolibri/api-DhMNvXtN.js +0 -4
  664. package/dist/kolibri/app-globals-Dpmwwlv-.js +0 -4
  665. package/dist/kolibri/base-CJ5WCVaj.js +0 -4
  666. package/dist/kolibri/base-DV_Pzm7z.js +0 -4
  667. package/dist/kolibri/behavior-BMXrK4gj.js +0 -4
  668. package/dist/kolibri/bem-registry-CWN7_O1L.js +0 -4
  669. package/dist/kolibri/bootstrap-DHXUvPBY.js +0 -4
  670. package/dist/kolibri/common-OzsC_6kt.js +0 -4
  671. package/dist/kolibri/component-BKfXEtN0.js +0 -4
  672. package/dist/kolibri/component-BiYFPpjn.js +0 -4
  673. package/dist/kolibri/component-BvvE8aim.js +0 -4
  674. package/dist/kolibri/component-C5QCCLLa.js +0 -4
  675. package/dist/kolibri/component-ChtW1HQv.js +0 -4
  676. package/dist/kolibri/component-Db9HadXA.js +0 -4
  677. package/dist/kolibri/component-DdIOGRgB.js +0 -4
  678. package/dist/kolibri/component-Dt6efHXY.js +0 -4
  679. package/dist/kolibri/component-Ua7-J4C-.js +0 -4
  680. package/dist/kolibri/component-gj7TBL0i.js +0 -4
  681. package/dist/kolibri/component-scm3PBuq.js +0 -4
  682. package/dist/kolibri/contrast-D78VGPFR.js +0 -4
  683. package/dist/kolibri/dev.utils-CwXr_J8N.js +0 -4
  684. package/dist/kolibri/disabled-Cqhc40CU.js +0 -4
  685. package/dist/kolibri/field-control-BOsAM8BW.js +0 -4
  686. package/dist/kolibri/group-D4WbZY27.js +0 -4
  687. package/dist/kolibri/has-closer-B9NQY7BK.js +0 -4
  688. package/dist/kolibri/href-JqLbNBsW.js +0 -4
  689. package/dist/kolibri/i18n-Dl6Jjofb.js +0 -4
  690. package/dist/kolibri/i18n-DtLKn3Xt.js +0 -4
  691. package/dist/kolibri/id-CIYvVaNr.js +0 -4
  692. package/dist/kolibri/index-D_P2XoAc.js +0 -6
  693. package/dist/kolibri/input-C0kj1MmP.js +0 -4
  694. package/dist/kolibri/input-container-B4TgBfDz.js +0 -4
  695. package/dist/kolibri/item-BMniY_My.js +0 -4
  696. package/dist/kolibri/item-DRC1CmzC.js +0 -4
  697. package/dist/kolibri/item-WrCdQw7F.js +0 -4
  698. package/dist/kolibri/item-e4SzwxHe.js +0 -4
  699. package/dist/kolibri/kol-click-button.entry.js +0 -4
  700. package/dist/kolibri/kol-skeleton.entry.js +0 -4
  701. package/dist/kolibri/label-BRosRgdX.js +0 -4
  702. package/dist/kolibri/label-hints-Jn18RUT-.js +0 -4
  703. package/dist/kolibri/label-lang-segment-2_GnxjFp.js +0 -4
  704. package/dist/kolibri/label-with-expert-slot-CicRes-W.js +0 -4
  705. package/dist/kolibri/level-CA1s1_Mf.js +0 -4
  706. package/dist/kolibri/link-target-FX94oqMo.js +0 -4
  707. package/dist/kolibri/links-DwucTqcR.js +0 -4
  708. package/dist/kolibri/multiple-DqrZxybx.js +0 -4
  709. package/dist/kolibri/name-B2Yf3EpX.js +0 -4
  710. package/dist/kolibri/number-value-B-SJ1dRo.js +0 -4
  711. package/dist/kolibri/open-DRRv1KFK.js +0 -4
  712. package/dist/kolibri/options-DCaUcfAu.js +0 -4
  713. package/dist/kolibri/orientation-XNOCaPwy.js +0 -4
  714. package/dist/kolibri/placeholder-BeLIzdJv.js +0 -4
  715. package/dist/kolibri/read-only-Bby9r6ZX.js +0 -4
  716. package/dist/kolibri/required-hoaT7UmZ.js +0 -4
  717. package/dist/kolibri/resolve-props-B-67viId.js +0 -4
  718. package/dist/kolibri/resolve-props-CqTztQhV.js +0 -4
  719. package/dist/kolibri/rows-B0x8CR7K.js +0 -4
  720. package/dist/kolibri/scroll-lock-CKnC0y0o.js +0 -4
  721. package/dist/kolibri/spell-check-DzgftyqL.js +0 -4
  722. package/dist/kolibri/src-DaGhmCL1.js +0 -4
  723. package/dist/kolibri/step-Bdj89bGO.js +0 -4
  724. package/dist/kolibri/unique-nav-labels-h2KOu5Qy.js +0 -4
  725. package/dist/kolibri/unit-BUhhJbhT.js +0 -4
  726. package/dist/kolibri/validators-BVM40IEr.js +0 -4
  727. package/dist/kolibri/value-string-e9pwLcS-.js +0 -4
  728. package/dist/types/components/click-button/component.d.ts +0 -15
  729. package/dist/types/components/skeleton/component.d.ts +0 -26
  730. package/dist/types/internal/functional-components/click-button/api.d.ts +0 -15
  731. package/dist/types/internal/functional-components/click-button/component.d.ts +0 -4
  732. package/dist/types/internal/functional-components/skeleton/api.d.ts +0 -29
  733. package/dist/types/internal/functional-components/skeleton/component.d.ts +0 -4
  734. package/doc/skeleton.md +0 -54
@@ -21,7 +21,7 @@ export class KolTree extends BaseWebComponent {
21
21
  this.observeTopLevelItems();
22
22
  this.scheduleTreeChange();
23
23
  };
24
- super();
24
+ super(...arguments);
25
25
  }
26
26
  watchLabel(value) {
27
27
  labelProp.apply(value, (v) => this.setRenderProp('label', v), this.isRequired('label'));
@@ -233,7 +233,7 @@ export class KolTree extends BaseWebComponent {
233
233
  }
234
234
  }
235
235
  render() {
236
- return (h(Host, { key: '1fb24a2de3319b420e68b4bd15cc37381a63ab50', tabindex: "0" }, h(TreeFC, { key: '8802d1300e5a81f13d6fafe71d47c958a7f8948b', handleSlotchange: this.handleSlotchange, label: this.getRenderProp('label') })));
236
+ return (h(Host, { key: '46407a67efb548149a62e371713e0da8ec352863', tabindex: "0" }, h(TreeFC, { key: '2725ae9400123f266b59b8c45b82eac3b83cf5f3', handleSlotchange: this.handleSlotchange, label: this.getRenderProp('label') })));
237
237
  }
238
238
  static get is() { return "kol-tree"; }
239
239
  static get encapsulation() { return "shadow"; }
@@ -37,7 +37,7 @@ export class KolTreeItem extends BaseWebComponent {
37
37
  const open = this.open;
38
38
  void this.focus().then(() => this.setOpen(!open));
39
39
  };
40
- super();
40
+ super(...arguments);
41
41
  }
42
42
  watchActive(value) {
43
43
  activeProp.apply(value, (v) => this.setRenderProp('active', v));
@@ -123,7 +123,7 @@ export class KolTreeItem extends BaseWebComponent {
123
123
  }
124
124
  }
125
125
  render() {
126
- return (h(Host, { key: 'a6ac1553de6eddf6822a794b037db12e3877ea80' }, h(TreeItemFC, { key: '28fea9784c71bf54e42c8aa3c38e229c6e946d21', active: this.getRenderProp('active'), ariaCurrent: this.ariaCurrent, groupId: this.groupId, handleAnchorClick: this.handleAnchorClick, handleSlotchange: this.handleSlotchange, handleToggleClick: this.handleToggleClick, hasChildren: this.hasChildren, href: this.getRenderProp('href'), label: this.getRenderProp('label'), level: this.level, open: this.open, refAnchor: this.anchorRef })));
126
+ return (h(Host, { key: '52b3ee0d7b7d593abeaf27e782a5e3ed384d710f' }, h(TreeItemFC, { key: '8acfdb55c45f3245ca7df0839c734188dcaea5bd', active: this.getRenderProp('active'), ariaCurrent: this.ariaCurrent, groupId: this.groupId, handleAnchorClick: this.handleAnchorClick, handleSlotchange: this.handleSlotchange, handleToggleClick: this.handleToggleClick, hasChildren: this.hasChildren, href: this.getRenderProp('href'), label: this.getRenderProp('label'), level: this.level, open: this.open, refAnchor: this.anchorRef })));
127
127
  }
128
128
  static get is() { return "kol-tree-item"; }
129
129
  static get encapsulation() { return "shadow"; }
@@ -289,8 +289,8 @@
289
289
  }
290
290
  @font-face {
291
291
  font-family: "kolicons";
292
- src: url("kolicons.eot?t=1794028903670"); /* IE9*/
293
- src: url("kolicons.eot?t=1794028903670#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794028903670") format("woff2"), url("kolicons.woff?t=1794028903670") format("woff"), url("kolicons.ttf?t=1794028903670") format("truetype"), url("kolicons.svg?t=1794028903670#kolicons") format("svg"); /* iOS 4.1- */
292
+ src: url("kolicons.eot?t=1794582088003"); /* IE9*/
293
+ src: url("kolicons.eot?t=1794582088003#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794582088003") format("woff2"), url("kolicons.woff?t=1794582088003") format("woff"), url("kolicons.ttf?t=1794582088003") format("truetype"), url("kolicons.svg?t=1794582088003#kolicons") format("svg"); /* iOS 4.1- */
294
294
  }
295
295
  @layer kol-component {
296
296
  [class^=kolicon-], [class*=" kolicon-"] {
@@ -14,7 +14,7 @@ const VERSION_ICON = { left: { icon: 'kolicon-version', label: translate('kol-ve
14
14
  export class KolVersion extends BaseWebComponent {
15
15
  constructor() {
16
16
  this.propsConfig = versionPropsConfig;
17
- super();
17
+ super(...arguments);
18
18
  }
19
19
  watchLabel(value) {
20
20
  labelProp.apply(value, (v) => this.setRenderProp('label', v), this.isRequired('label'));
@@ -23,7 +23,7 @@ export class KolVersion extends BaseWebComponent {
23
23
  labelProp.apply(this._label, (v) => this.setRenderProp('label', v), this.isRequired('label'));
24
24
  }
25
25
  render() {
26
- return (h(Host, { key: 'ad538181901c4dd81f30ed371052eb91650d5986' }, h(VersionFC, { key: 'b39761317d0beb47e7663dc2032fead60787af43', color: VERSION_COLOR, icons: VERSION_ICON, label: this.getRenderProp('label') })));
26
+ return (h(Host, { key: '41f3fe21b34ed55fe622cc212cec754c5110292e' }, h(VersionFC, { key: '3239e582b5e207e28c4a2cf92d730278f21afd0b', color: VERSION_COLOR, icons: VERSION_ICON, label: this.getRenderProp('label') })));
27
27
  }
28
28
  static get is() { return "kol-version"; }
29
29
  static get encapsulation() { return "shadow"; }
@@ -289,8 +289,8 @@
289
289
  }
290
290
  @font-face {
291
291
  font-family: "kolicons";
292
- src: url("kolicons.eot?t=1794028903670"); /* IE9*/
293
- src: url("kolicons.eot?t=1794028903670#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794028903670") format("woff2"), url("kolicons.woff?t=1794028903670") format("woff"), url("kolicons.ttf?t=1794028903670") format("truetype"), url("kolicons.svg?t=1794028903670#kolicons") format("svg"); /* iOS 4.1- */
292
+ src: url("kolicons.eot?t=1794582088003"); /* IE9*/
293
+ src: url("kolicons.eot?t=1794582088003#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794582088003") format("woff2"), url("kolicons.woff?t=1794582088003") format("woff"), url("kolicons.ttf?t=1794582088003") format("truetype"), url("kolicons.svg?t=1794582088003#kolicons") format("svg"); /* iOS 4.1- */
294
294
  }
295
295
  @layer kol-component {
296
296
  [class^=kolicon-], [class*=" kolicon-"] {
@@ -5,7 +5,7 @@ import { h } from "@stencil/core";
5
5
  import { getBlockBem } from "../bem-root-node/block-bem";
6
6
  const optionsGroupBem = getBlockBem('kol-custom-suggestions-options-group');
7
7
  const optionBem = getBlockBem('kol-custom-suggestions-option');
8
- export const CustomSuggestionsOptionsGroupFC = ({ blockSuggestionMouseOver, onKeyDown, style, hidden, id }, children) => (h("ul", { id: id, role: "listbox", style: style, class: optionsGroupBem({ 'cursor-hidden': blockSuggestionMouseOver, open: !hidden }), hidden: hidden, onKeyDown: onKeyDown }, children));
8
+ export const CustomSuggestionsOptionsGroupFC = ({ 'aria-labelledby': ariaLabelledBy, blockSuggestionMouseOver, onKeyDown, style, hidden, id }, children) => (h("ul", { "aria-labelledby": ariaLabelledBy, id: id, role: "listbox", style: style, class: optionsGroupBem({ 'cursor-hidden': blockSuggestionMouseOver, open: !hidden }), hidden: hidden, onKeyDown: onKeyDown }, children));
9
9
  const highlightSearchTerm = (text, searchTerm) => {
10
10
  if (!(searchTerm === null || searchTerm === void 0 ? void 0 : searchTerm.trim()))
11
11
  return text;
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import { iconsProp, labelProp } from "../../props";
4
+ import { iconsProp, labelDecorativeProp } from "../../props";
5
5
  export const iconPropsConfig = {
6
- required: [iconsProp, labelProp],
6
+ required: [iconsProp, labelDecorativeProp],
7
7
  };
@@ -40,5 +40,5 @@ export const LinkFC = (props, children) => {
40
40
  'hide-label': hideLabel === true,
41
41
  inline: inline === true,
42
42
  standalone: inline === false,
43
- } }, h("a", Object.assign({ ref: refAnchor }, tagAttrs, { href: tagAttrs.href, accessKey: accessKey || undefined, "aria-current": ariaCurrent || undefined, "aria-controls": ariaControls || undefined, "aria-describedby": trimmedAriaDescription ? ariaDescriptionId : undefined, "aria-disabled": disabled ? 'true' : undefined, "aria-expanded": ariaExpanded === '' ? undefined : ariaExpanded, "aria-owns": ariaOwns || undefined, "aria-label": hideLabel && trimLabel(label) !== '' ? `${trimLabel(label)}${isExternal ? ` (${translateOpenLinkInTab})` : ''}` : undefined, "aria-keyshortcuts": shortKey || undefined, class: linkBem('interactive-element') }, on, { onClick: handleAnchorClick, onMouseDown: disabled ? preventFocus : undefined, role: roleValue, tabIndex: disabled ? -1 : tabIndex }), h(SpanFC, { class: "kol-link__text", badgeText: accessKey || shortKey, icons: icons, hideLabel: hideLabel, label: expertSlot ? '' : label || href }, children.length > 0 ? children : h("slot", { name: "expert", slot: "expert" })), isExternal && (h(IconFC, { class: "kol-link__icon", label: hideLabel ? '' : translateOpenLinkInTab, icons: 'kolicon-link-external', "aria-hidden": hideLabel }))), hideLabel === true && !expertSlot && (h("div", { class: "kol-link__tooltip" }, h(TooltipFC, { badgeText: accessKey || shortKey || '', label: typeof label === 'string' ? label : typeof href === 'string' ? href : '', refFloating: refTooltip }))), trimmedAriaDescription && h(AriaDescriptionSpanFC, { description: trimmedAriaDescription, descriptionId: ariaDescriptionId })));
43
+ } }, h("a", Object.assign({ ref: refAnchor }, tagAttrs, { href: tagAttrs.href, accessKey: accessKey || undefined, "aria-current": ariaCurrent || undefined, "aria-controls": ariaControls || undefined, "aria-describedby": trimmedAriaDescription ? ariaDescriptionId : undefined, "aria-disabled": disabled ? 'true' : undefined, "aria-expanded": ariaExpanded === '' ? undefined : ariaExpanded, "aria-owns": ariaOwns || undefined, "aria-label": hideLabel && trimLabel(label) !== '' ? `${trimLabel(label)}${isExternal ? ` (${translateOpenLinkInTab})` : ''}` : undefined, "aria-keyshortcuts": shortKey || undefined, class: linkBem('interactive-element') }, on, { onClick: handleAnchorClick, onMouseDown: disabled ? preventFocus : undefined, role: roleValue, tabIndex: disabled ? -1 : tabIndex }), h(SpanFC, { class: "kol-link__text", badgeText: accessKey || shortKey, icons: icons, hideLabel: hideLabel, label: expertSlot ? '' : label || href }, children.length > 0 ? children : h("slot", { name: "expert", slot: "expert" })), isExternal && (h(IconFC, { class: "kol-link__icon", label: hideLabel ? '' : translateOpenLinkInTab, icons: 'kolicon-link-external', "aria-hidden": hideLabel }))), hideLabel === true && !expertSlot && (h("div", { class: "kol-link__tooltip" }, h(TooltipFC, { badgeText: accessKey || shortKey || '', label: trimLabel(label) !== '' ? label : typeof href === 'string' ? href : '', refFloating: refTooltip }))), trimmedAriaDescription && h(AriaDescriptionSpanFC, { description: trimmedAriaDescription, descriptionId: ariaDescriptionId })));
44
44
  };
@@ -10,15 +10,12 @@ const meterBem = bem.forBlock('kol-meter');
10
10
  function getMeterState(value, min, max, low, high, optimum) {
11
11
  const effectiveLow = low !== null && low !== void 0 ? low : min;
12
12
  const effectiveHigh = high !== null && high !== void 0 ? high : max;
13
- if (optimum === undefined) {
14
- const inMidRegion = value >= effectiveLow && value <= effectiveHigh;
15
- return inMidRegion ? 'optimum' : 'suboptimal';
16
- }
13
+ const effectiveOptimum = optimum !== null && optimum !== void 0 ? optimum : (min + max) / 2;
17
14
  const inLowRegion = value < effectiveLow;
18
15
  const inHighRegion = value > effectiveHigh;
19
16
  const inMidRegion = !inLowRegion && !inHighRegion;
20
- const optimumInLow = optimum < effectiveLow;
21
- const optimumInHigh = optimum > effectiveHigh;
17
+ const optimumInLow = effectiveOptimum < effectiveLow;
18
+ const optimumInHigh = effectiveOptimum > effectiveHigh;
22
19
  if (optimumInLow) {
23
20
  if (inLowRegion)
24
21
  return 'optimum';
@@ -3,6 +3,6 @@
3
3
  */
4
4
  import { boundaryCountProp, customClassProp, labelProp, pageProp, pageSizeOptionsProp, pageSizeProp, paginationCallbacksProp, paginationHasButtonsProp, paginationMaxProp, siblingCountProp, tooltipAlignProp, } from "../../props";
5
5
  export const paginationPropsConfig = {
6
- required: [pageProp, paginationCallbacksProp, paginationMaxProp],
7
- optional: [boundaryCountProp, customClassProp, labelProp, pageSizeOptionsProp, pageSizeProp, paginationHasButtonsProp, siblingCountProp, tooltipAlignProp],
6
+ required: [labelProp, pageProp, paginationCallbacksProp, paginationMaxProp],
7
+ optional: [boundaryCountProp, customClassProp, pageSizeOptionsProp, pageSizeProp, paginationHasButtonsProp, siblingCountProp, tooltipAlignProp],
8
8
  };
@@ -5,7 +5,6 @@ import { h } from "@stencil/core";
5
5
  import { translate } from "../../../i18n";
6
6
  import { trimLabel } from "../../../schema";
7
7
  import { bem } from "../../../schema/bem-registry";
8
- import { nonce } from "../../../utils/dev.utils";
9
8
  import { BemRootNodeFC } from "../bem-root-node/component";
10
9
  import { ButtonFC } from "../button/component";
11
10
  import { resolveFcProps } from "../props-from-config";
@@ -38,7 +37,7 @@ export const PaginationContentFC = (props) => {
38
37
  const pageButton = (item, selected) => {
39
38
  const pageText = NUMBER_FORMATTER.format(item);
40
39
  const ariaDescription = `${translate('kol-page')} ${pageText}`;
41
- return (h("li", { key: nonce() }, selected ? (h(ButtonFC, Object.assign({}, getButtonFcProps(`page-${item}`, { _ariaDescription: ariaDescription, _customClass: customClass, _label: pageText }, { 'aria-current': 'page', class: `${paginationBem('button', { selected: true })} selected` })))) : (h(ButtonFC, Object.assign({}, getButtonFcProps(`page-${item}`, {
40
+ return (h("li", { key: `page-${item}` }, selected ? (h(ButtonFC, Object.assign({}, getButtonFcProps(`page-${item}`, { _ariaDescription: ariaDescription, _customClass: customClass, _label: pageText }, { 'aria-current': 'page', class: `${paginationBem('button', { selected: true })} selected` })))) : (h(ButtonFC, Object.assign({}, getButtonFcProps(`page-${item}`, {
42
41
  _ariaDescription: ariaDescription,
43
42
  _customClass: customClass,
44
43
  _label: pageText,
@@ -53,7 +52,7 @@ export const PaginationContentFC = (props) => {
53
52
  total: NUMBER_FORMATTER.format(max),
54
53
  },
55
54
  })),
56
- h("nav", { class: paginationBem('navigation'), "aria-label": trimLabel(label) }, h("ul", { class: paginationBem('navigation-list') }, hasButtons.first && navigationButton('first', leftDoubleArrowIcon, translate('kol-page-first'), page <= 1), hasButtons.previous && navigationButton('previous', leftSingleArrowIcon, translate('kol-page-back'), page <= 1), getPageItems(page, count, boundaryCount, siblingCount).map((item) => item === null ? null : item === 'separator' ? (h("li", { key: nonce() }, h("span", { class: paginationBem('separator'), "aria-hidden": "true" }))) : (pageButton(item.page, item.selected))), hasButtons.next && navigationButton('next', rightSingleArrowIcon, translate('kol-page-next'), count <= page), hasButtons.last && navigationButton('last', rightDoubleArrowIcon, translate('kol-page-last'), count <= page))),
55
+ h("nav", { class: paginationBem('navigation'), "aria-label": trimLabel(label) }, h("ul", { class: paginationBem('navigation-list') }, hasButtons.first && navigationButton('first', leftDoubleArrowIcon, translate('kol-page-first'), page <= 1), hasButtons.previous && navigationButton('previous', leftSingleArrowIcon, translate('kol-page-back'), page <= 1), getPageItems(page, count, boundaryCount, siblingCount).map((item, index) => item === null ? null : item === 'separator' ? (h("li", { key: index + 1 < page ? 'separator-left' : 'separator-right' }, h("span", { class: paginationBem('separator'), "aria-hidden": "true" }))) : (pageButton(item.page, item.selected))), hasButtons.next && navigationButton('next', rightSingleArrowIcon, translate('kol-page-next'), count <= page), hasButtons.last && navigationButton('last', rightDoubleArrowIcon, translate('kol-page-last'), count <= page))),
57
56
  (pageSizeOptions === null || pageSizeOptions === void 0 ? void 0 : pageSizeOptions.length) > 0 && (h("div", { class: "page-size" }, h("div", { class: paginationBem('page-size-select') }, renderPageSizeSelect({ label: translate('kol-entries-per-site'), options: pageSizeOptions, value: pageSize })))),
58
57
  ];
59
58
  };
@@ -43,6 +43,7 @@ export const createPaginationItem = (options) => {
43
43
  const pageSizeSelects = createItemPool(() => new PageSizeSelect(options.getEventTarget, options.requestRender), (select) => select.sync(), (select) => select.destroy());
44
44
  let pageSizeValue = 1;
45
45
  let applied = {};
46
+ let pendingFocusPage;
46
47
  store.set('label', translatePagination);
47
48
  const reportPageChange = (event, page) => {
48
49
  setTimeout(() => {
@@ -71,15 +72,28 @@ export const createPaginationItem = (options) => {
71
72
  syncPage(store.get('page'), resolved, store.get('max'));
72
73
  });
73
74
  };
74
- const applyLabel = (value, initial) => {
75
+ const applyLabel = (value, initial, required) => {
75
76
  if (!initial) {
76
77
  removeNavLabel(store.get('label'));
77
78
  }
78
- labelProp.apply(value !== null && value !== void 0 ? value : translatePagination, (v) => store.set('label', v));
79
+ labelProp.apply(value, (v) => store.set('label', v !== null && v !== void 0 ? v : translatePagination), required);
79
80
  addNavLabel(store.get('label'));
80
81
  };
82
+ const restorePageFocus = () => {
83
+ if (pendingFocusPage === undefined || pendingFocusPage !== store.get('page')) {
84
+ return;
85
+ }
86
+ pendingFocusPage = undefined;
87
+ const button = buttons.get(`page-${store.get('page')}`).getElement();
88
+ const root = button === null || button === void 0 ? void 0 : button.getRootNode();
89
+ const focusLost = !(root === null || root === void 0 ? void 0 : root.activeElement) && (document.activeElement === null || document.activeElement === document.body);
90
+ if ((button === null || button === void 0 ? void 0 : button.isConnected) && focusLost) {
91
+ button.focus();
92
+ }
93
+ };
81
94
  const handlePageClick = (event, page) => {
82
95
  var _a, _b;
96
+ pendingFocusPage = page;
83
97
  (_b = (_a = store.get('on')).onClick) === null || _b === void 0 ? void 0 : _b.call(_a, event, page);
84
98
  const target = options.getEventTarget();
85
99
  if (target) {
@@ -116,7 +130,7 @@ export const createPaginationItem = (options) => {
116
130
  applyBoundaryCount: (value) => boundaryCountProp.apply(value, (v) => store.set('boundaryCount', v)),
117
131
  applyCustomClass: (value) => customClassProp.apply(value, (v) => store.set('customClass', v)),
118
132
  applyHasButtons: (value) => paginationHasButtonsProp.apply(value, (v) => store.set('hasButtons', Object.assign(Object.assign({}, store.get('hasButtons')), v))),
119
- applyLabel: (value) => applyLabel(value, false),
133
+ applyLabel: (value, required) => applyLabel(value, false, required),
120
134
  applyMax: (value) => {
121
135
  if (value === undefined || value === null) {
122
136
  return;
@@ -201,6 +215,7 @@ export const createPaginationItem = (options) => {
201
215
  sync: () => {
202
216
  buttons.endRender();
203
217
  pageSizeSelects.endRender();
218
+ restorePageFocus();
204
219
  },
205
220
  destroy: () => {
206
221
  removeNavLabel(store.get('label'));
@@ -34,5 +34,5 @@ export const ProgressFC = (props) => {
34
34
  const liveValueText = isPercentage
35
35
  ? translate('kol-live-value', { placeholders: { value: String(liveProgressValue), unit } })
36
36
  : translate('kol-live-value-bounded', { placeholders: { value: String(liveProgressValue), max: String(max), unit } });
37
- return (h("div", { class: progressBem() }, h("div", { "aria-hidden": "true", class: progressBem(variant === 'cycle' ? 'cycle' : 'bar') }, variant === 'bar' && label && h("div", { class: progressBem('bar-label') }, renderLabelWithLang(label)), createProgressSVG(variant, max, value), variant === 'cycle' && (h("div", { class: progressBem('cycle-text') }, label && h("div", { class: progressBem('cycle-label') }, renderLabelWithLang(label)), h("div", { class: progressBem('cycle-value') }, `${displayValue} ${unit}`))), variant === 'bar' && (h("div", { class: progressBem('bar-value'), style: { width: valueColumnWidth } }, displayValue)), variant === 'bar' && h("div", { class: progressBem('bar-unit') }, unit)), h("progress", { "aria-busy": value < max ? 'true' : 'false', "aria-label": trimLabel(label), class: "visually-hidden", max: max, value: value }), h("span", { "aria-live": "polite", "aria-relevant": "removals text", class: "visually-hidden" }, liveValueText)));
37
+ return (h("div", { class: progressBem() }, h("div", { "aria-hidden": "true", class: progressBem(variant === 'cycle' ? 'cycle' : 'bar') }, variant === 'bar' && label && h("div", { class: progressBem('bar-label') }, renderLabelWithLang(label)), createProgressSVG(variant, max, value), variant === 'cycle' && (h("div", { class: progressBem('cycle-text') }, label && h("div", { class: progressBem('cycle-label') }, renderLabelWithLang(label)), h("div", { class: progressBem('cycle-value') }, `${displayValue} ${unit}`))), variant === 'bar' && (h("div", { class: progressBem('bar-value'), style: { width: valueColumnWidth } }, displayValue)), variant === 'bar' && h("div", { class: progressBem('bar-unit') }, unit)), h("progress", { "aria-busy": value < max ? 'true' : 'false', "aria-label": trimLabel(label) || translate('kol-progress'), class: "visually-hidden", max: max, value: value }), h("span", { "aria-live": "polite", "aria-relevant": "removals text", class: "visually-hidden" }, liveValueText)));
38
38
  };
@@ -9,4 +9,5 @@ const customSuggestionsToggleBem = bem.forBlock('kol-custom-suggestions-toggle')
9
9
  export const BEM_CLASS_SINGLE_SELECT__DELETE = singleSelectBem('delete');
10
10
  const BEM_CLASS_SINGLE_SELECT__NO_RESULTS_MESSAGE = singleSelectBem('no-results-message');
11
11
  export const SingleSelectToggleFC = ({ disabled, handleClick }) => (h(IconFC, { icons: "kolicon-chevron-down", label: "", class: customSuggestionsToggleBem({ disabled }), onClick: handleClick }));
12
- export const SingleSelectNoResultsFC = ({ message }) => (h("li", { class: BEM_CLASS_SINGLE_SELECT__NO_RESULTS_MESSAGE, role: "alert" }, message, ' '));
12
+ export const SingleSelectNoResultsFC = ({ message }) => h("div", { class: BEM_CLASS_SINGLE_SELECT__NO_RESULTS_MESSAGE }, message, " ");
13
+ export const SingleSelectNoResultsStatusFC = ({ message }) => (h("span", { class: "visually-hidden", role: "status" }, message));
@@ -13,5 +13,11 @@ const BEM_CLASS_TABS__TAB = tabsBem('tab');
13
13
  const BEM_CLASS_TABS__TABLIST = tabsBem('tablist');
14
14
  export const TabsFC = (props) => {
15
15
  const { align, class: hostClass, createButton, handleBlur, handleKeyDown, hasCreateButton, label, refContent, refRoot, tabButtons } = props;
16
- return (h(BemRootNodeFC, { block: "kol-tabs", modifiers: { [`align-${align}`]: true }, class: hostClass, ref: refRoot }, h("div", { class: BEM_CLASS_TABS__BUTTON_GROUP }, h("div", { "aria-label": label, class: BEM_CLASS_TABS__TABLIST, role: "tablist", tabIndex: -1, onKeyDown: handleKeyDown, onBlur: handleBlur }, tabButtons.map(({ buttonProps, refBox }) => (h("div", { class: BEM_CLASS_TABS__TAB, ref: refBox }, h(ButtonFC, Object.assign({}, buttonProps)))))), hasCreateButton && (h("div", { class: BEM_CLASS_TABS__BUTTON_CREATE, ref: createButton.refBox }, h(ButtonFC, Object.assign({}, createButton.buttonProps))))), h("div", { class: BEM_CLASS_TABS__CONTENT, ref: refContent })));
16
+ const handleFocusOut = (event) => {
17
+ const tablist = event.currentTarget;
18
+ if (!(event.relatedTarget instanceof Node && tablist.contains(event.relatedTarget))) {
19
+ handleBlur();
20
+ }
21
+ };
22
+ return (h(BemRootNodeFC, { block: "kol-tabs", modifiers: { [`align-${align}`]: true }, class: hostClass, ref: refRoot }, h("div", { class: BEM_CLASS_TABS__BUTTON_GROUP }, h("div", { "aria-label": label, class: BEM_CLASS_TABS__TABLIST, role: "tablist", tabIndex: -1, onKeyDown: handleKeyDown, onFocusout: handleFocusOut }, tabButtons.map(({ buttonProps, refBox }) => (h("div", { class: BEM_CLASS_TABS__TAB, ref: refBox }, h(ButtonFC, Object.assign({}, buttonProps)))))), hasCreateButton && (h("div", { class: BEM_CLASS_TABS__BUTTON_CREATE, ref: createButton.refBox }, h(ButtonFC, Object.assign({}, createButton.buttonProps))))), h("div", { class: BEM_CLASS_TABS__CONTENT, ref: refContent })));
17
23
  };
@@ -7,3 +7,4 @@ export const isSafeClassName = (value) => typeof value === 'string' && SAFE_CLAS
7
7
  export const isValidLabel = isValidLabelString;
8
8
  export { isValidLabelSegments };
9
9
  export const isValidLabelWithExpertSlot = (value) => value === '' || isValidLabelSegments(value);
10
+ export const isValidLabelDecorative = (value) => value === '' || isValidLabel(value);
@@ -72,6 +72,7 @@ export * from './input-text-type';
72
72
  export * from './kolibri-color';
73
73
  export * from './label';
74
74
  export * from './label-align';
75
+ export * from './label-decorative';
75
76
  export * from './label-lang-segment';
76
77
  export * from './label-with-expert-slot';
77
78
  export * from './labeled';
@@ -0,0 +1,10 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import { createPropDefinition } from "./helpers/factory";
5
+ import { normalizeString } from "./helpers/normalizers";
6
+ import { isValidLabelDecorative } from "./helpers/validators";
7
+ import { labelHints } from "./hints/label-hints";
8
+ export const labelDecorativeProp = createPropDefinition('label', undefined, normalizeString, isValidLabelDecorative, {
9
+ hints: labelHints,
10
+ });
@@ -46,6 +46,7 @@ export default {
46
46
  pagination: 'Paginierung',
47
47
  'pagination-position-bottom': 'unten',
48
48
  'pagination-position-top': 'oben',
49
+ progress: 'Fortschritt',
49
50
  readonly: 'schreibgeschützt',
50
51
  'show-password': 'Passwort einblenden',
51
52
  'show-suggestions': 'Vorschläge anzeigen',
@@ -46,6 +46,7 @@ export default {
46
46
  pagination: 'Pagination',
47
47
  'pagination-position-bottom': 'bottom',
48
48
  'pagination-position-top': 'top',
49
+ progress: 'Progress',
49
50
  readonly: 'read-only',
50
51
  'show-password': 'Show password',
51
52
  'show-suggestions': 'Show suggestions',
@@ -169,21 +169,6 @@ const BEM = {
169
169
  },
170
170
  modifiers: null,
171
171
  },
172
- 'kol-skeleton': {
173
- elements: {
174
- actions: { modifiers: null },
175
- container: { modifiers: null },
176
- counter: { modifiers: null },
177
- name: { modifiers: null },
178
- },
179
- modifiers: new Set(['has-name', 'is-hidden']),
180
- },
181
- 'kol-click-button': {
182
- elements: {
183
- label: { modifiers: null },
184
- },
185
- modifiers: null,
186
- },
187
172
  'kol-span': {
188
173
  elements: {
189
174
  container: { modifiers: null },
@@ -47,32 +47,33 @@ export var KeyEnum;
47
47
  KeyEnum[KeyEnum["pagination"] = 41] = "pagination";
48
48
  KeyEnum[KeyEnum["pagination-position-bottom"] = 42] = "pagination-position-bottom";
49
49
  KeyEnum[KeyEnum["pagination-position-top"] = 43] = "pagination-position-top";
50
- KeyEnum[KeyEnum["readonly"] = 44] = "readonly";
51
- KeyEnum[KeyEnum["show-password"] = 45] = "show-password";
52
- KeyEnum[KeyEnum["show-suggestions"] = 46] = "show-suggestions";
53
- KeyEnum[KeyEnum["sort"] = 47] = "sort";
54
- KeyEnum[KeyEnum["split-button-dropdown-label-open"] = 48] = "split-button-dropdown-label-open";
55
- KeyEnum[KeyEnum["success"] = 49] = "success";
56
- KeyEnum[KeyEnum["table-data-loading"] = 50] = "table-data-loading";
57
- KeyEnum[KeyEnum["table-data-loaded"] = 51] = "table-data-loaded";
58
- KeyEnum[KeyEnum["table-pagination-label"] = 52] = "table-pagination-label";
59
- KeyEnum[KeyEnum["table-selection"] = 53] = "table-selection";
60
- KeyEnum[KeyEnum["table-selection-all"] = 54] = "table-selection-all";
61
- KeyEnum[KeyEnum["table-selection-indeterminate"] = 55] = "table-selection-indeterminate";
62
- KeyEnum[KeyEnum["table-selection-none"] = 56] = "table-selection-none";
63
- KeyEnum[KeyEnum["table-settings"] = 57] = "table-settings";
64
- KeyEnum[KeyEnum["table-settings-apply"] = 58] = "table-settings-apply";
65
- KeyEnum[KeyEnum["table-settings-cancel"] = 59] = "table-settings-cancel";
66
- KeyEnum[KeyEnum["table-settings-column-hidable"] = 60] = "table-settings-column-hidable";
67
- KeyEnum[KeyEnum["table-settings-column-not-hidable"] = 61] = "table-settings-column-not-hidable";
68
- KeyEnum[KeyEnum["table-settings-column-width"] = 62] = "table-settings-column-width";
69
- KeyEnum[KeyEnum["table-settings-error-all-invisible"] = 63] = "table-settings-error-all-invisible";
70
- KeyEnum[KeyEnum["table-settings-move-down"] = 64] = "table-settings-move-down";
71
- KeyEnum[KeyEnum["table-settings-move-up"] = 65] = "table-settings-move-up";
72
- KeyEnum[KeyEnum["table-settings-not-move"] = 66] = "table-settings-not-move";
73
- KeyEnum[KeyEnum["table-sort-order"] = 67] = "table-sort-order";
74
- KeyEnum[KeyEnum["table-visible-range"] = 68] = "table-visible-range";
75
- KeyEnum[KeyEnum["toast-close-all"] = 69] = "toast-close-all";
76
- KeyEnum[KeyEnum["version"] = 70] = "version";
77
- KeyEnum[KeyEnum["warning"] = 71] = "warning";
50
+ KeyEnum[KeyEnum["progress"] = 44] = "progress";
51
+ KeyEnum[KeyEnum["readonly"] = 45] = "readonly";
52
+ KeyEnum[KeyEnum["show-password"] = 46] = "show-password";
53
+ KeyEnum[KeyEnum["show-suggestions"] = 47] = "show-suggestions";
54
+ KeyEnum[KeyEnum["sort"] = 48] = "sort";
55
+ KeyEnum[KeyEnum["split-button-dropdown-label-open"] = 49] = "split-button-dropdown-label-open";
56
+ KeyEnum[KeyEnum["success"] = 50] = "success";
57
+ KeyEnum[KeyEnum["table-data-loading"] = 51] = "table-data-loading";
58
+ KeyEnum[KeyEnum["table-data-loaded"] = 52] = "table-data-loaded";
59
+ KeyEnum[KeyEnum["table-pagination-label"] = 53] = "table-pagination-label";
60
+ KeyEnum[KeyEnum["table-selection"] = 54] = "table-selection";
61
+ KeyEnum[KeyEnum["table-selection-all"] = 55] = "table-selection-all";
62
+ KeyEnum[KeyEnum["table-selection-indeterminate"] = 56] = "table-selection-indeterminate";
63
+ KeyEnum[KeyEnum["table-selection-none"] = 57] = "table-selection-none";
64
+ KeyEnum[KeyEnum["table-settings"] = 58] = "table-settings";
65
+ KeyEnum[KeyEnum["table-settings-apply"] = 59] = "table-settings-apply";
66
+ KeyEnum[KeyEnum["table-settings-cancel"] = 60] = "table-settings-cancel";
67
+ KeyEnum[KeyEnum["table-settings-column-hidable"] = 61] = "table-settings-column-hidable";
68
+ KeyEnum[KeyEnum["table-settings-column-not-hidable"] = 62] = "table-settings-column-not-hidable";
69
+ KeyEnum[KeyEnum["table-settings-column-width"] = 63] = "table-settings-column-width";
70
+ KeyEnum[KeyEnum["table-settings-error-all-invisible"] = 64] = "table-settings-error-all-invisible";
71
+ KeyEnum[KeyEnum["table-settings-move-down"] = 65] = "table-settings-move-down";
72
+ KeyEnum[KeyEnum["table-settings-move-up"] = 66] = "table-settings-move-up";
73
+ KeyEnum[KeyEnum["table-settings-not-move"] = 67] = "table-settings-not-move";
74
+ KeyEnum[KeyEnum["table-sort-order"] = 68] = "table-sort-order";
75
+ KeyEnum[KeyEnum["table-visible-range"] = 69] = "table-visible-range";
76
+ KeyEnum[KeyEnum["toast-close-all"] = 70] = "toast-close-all";
77
+ KeyEnum[KeyEnum["version"] = 71] = "version";
78
+ KeyEnum[KeyEnum["warning"] = 72] = "warning";
78
79
  })(KeyEnum || (KeyEnum = {}));
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{p as e,k as i,H as t,b as o}from"./bem-registry.js";import{a as s,F as l}from"./behavior3.js";import{d as r}from"./disabled.js";import{h as a,e as n,j as d}from"./component3.js";import{c as h,n as c,b as p,a as u,t as m}from"./props-from-config.js";import{l as v}from"./label-with-expert-slot.js";import{n as b}from"./name.js";import{a as f}from"./tslib.es6.js";import{S as g,b as y,s as j}from"./component7.js";import{r as _}from"./aria-labelledby.js";import{a as B,c as L,n as O}from"./dev.utils.js";import{K as T,d as F}from"./events.js";import{B as N}from"./base-web-component.js";import{c as x}from"./item.js";import{c as K}from"./item2.js";import{T as k}from"./behavior.js";import{h as w}from"@stencil/core/internal/client";import{t as A}from"./i18n.js";import{c as P}from"./clsx.js";import{B as C}from"./component.js";import{T as H}from"./component11.js";import{P as D}from"./behavior4.js";import{A as I}from"./component2.js";function M(e,i){return Boolean(e)&&!0===i}function S(e){var i;return"string"==typeof e?"error":null!==(i=null==e?void 0:e._type)&&void 0!==i?i:"error"}const q=h("hideMsg",!1,c),E=h("hint","",p),$=h("infoPopover",void 0,(function(e){if("object"==typeof e&&null!==e)return e;throw new Error("Invalid info popover: "+typeof e)})),z=u(),R=h("msg",void 0,(function(i){if("string"==typeof i)try{return e(i)}catch(e){return i}return i}),(function(e){return void 0===e||("string"==typeof e?e.length>0:i(e)&&t(e._description,1))})),V=h("touched",!1,c),G={required:[v],optional:[s,r,a,q,E,$,z,R,b,n,V]},J=e=>{var{id:i,class:t,hint:o,baseClassName:s="kol-form-field"}=e,l=f(e,["id","class","hint","baseClassName"]);return o?w("span",Object.assign({class:P(`${s}__hint`,t),id:B(i||"","hint")},l),o):null},Q=e=>{var{component:i="label",id:t,baseClassName:o="kol-form-field",class:s,accessKey:l,shortKey:r,label:a,hideLabel:n,hasExpertSlot:d,omitId:h,showBadge:c=!0,readOnly:p,infoPopover:u}=e,m=f(e,["component","id","baseClassName","class","accessKey","shortKey","label","hideLabel","hasExpertSlot","omitId","showBadge","readOnly","infoPopover"]);const v=!d&&n,b=!1===c?void 0:y(l,r);return w(i,Object.assign({},m,{class:P(`${o}__label`,s),id:v||h?void 0:B(t,"label"),hidden:v,htmlFor:"legend"===i?void 0:t}),w(g,{class:`${o}__label-text`,label:d?"":null!=a?a:"",badgeText:b},w("slot",{name:"expert"})),!d&&p&&w("span",{class:`${o}__label__read-only`,"aria-hidden":"true"},"(",A("kol-readonly"),")"),!d&&u&&w("span",null,w(D,Object.assign({},u.popoverButton),w("div",{class:"kol-popover-button__popover--styled"},u.content))))},U=i=>{var t,o,{alert:s,hideMsg:l,msg:r,id:a,class:n}=i,d=f(i,["alert","hideMsg","msg","id","class"]);const h=function(i){if("string"==typeof i)try{return e(i)}catch(e){return{_description:i,_type:"error"}}return i&&"object"==typeof i&&!("_type"in i)?Object.assign(Object.assign({},i),{_type:"error"}):i}(r);return w(I,Object.assign({alert:!l&&(null!==(t=null==h?void 0:h._alert)&&void 0!==t?t:!0===s),class:P("kol-form-field__msg",l&&"visually-hidden",n),closerAriaDescriptionId:O(),handleCloserClick:()=>{},hasCloser:!1,headingId:L("alert-heading"),id:B(a,"msg"),label:"",level:0,refCloserButton:()=>{},refCloserTooltip:()=>{},type:null!==(o=null==h?void 0:h._type)&&void 0!==o?o:"error",variant:"msg"},d),(null==h?void 0:h._description)||void 0)},W=o.forBlock("kol-form-field"),X=({hideLabel:e,label:i,renderNoTooltip:t})=>!t&&!j(i)&&!0===e,Y=e=>{const i=S(e);return{[i]:!0,[`msg-type-${i}`]:!0}},Z=(e,i)=>{const{renderNoLabel:t,renderNoTooltip:o,renderNoHint:s,id:l,required:r,alert:a,disabled:n,class:h,msg:c,hideMsg:p,hideLabel:u,label:m,infoPopover:v,hint:b,accessKey:g,shortKey:_,counter:L,readOnly:O,touched:T,maxLength:F,ariaDescribedBy:N,showBadge:x,tooltipAlign:K,variant:k,component:D="div",orientation:I,refInput:S,refTooltip:q}=e,E=f(e,["renderNoLabel","renderNoTooltip","renderNoHint","id","required","alert","disabled","class","msg","hideMsg","hideLabel","label","infoPopover","hint","accessKey","shortKey","counter","readOnly","touched","maxLength","ariaDescribedBy","showBadge","tooltipAlign","variant","component","orientation","refInput","refTooltip"]),$=j(m),z=M(c,T),R=y(g,_),V=X({hideLabel:u,label:m,renderNoTooltip:o}),G="fieldset"===D;return w(C,Object.assign({component:D,block:"kol-form-field",modifiers:Object.assign({disabled:Boolean(n),required:Boolean(r),touched:Boolean(T),"hide-label":Boolean(u),"read-only":Boolean(O),"hidden-msg":Boolean(p)},z?Y(c):{}),class:P(k&&d(k,"form-field"),h),disabled:!(!G||!n)||void 0,"aria-describedby":N},E),!t&&w(Q,{component:G?"legend":"label",class:G?"kol-form-field__label--legend":void 0,id:l,hasExpertSlot:$,hideLabel:u,label:m,accessKey:g,shortKey:_,readOnly:O,showBadge:x,infoPopover:v}),w("div",{class:W("input",{"orientation-horizontal":"horizontal"===I,"orientation-vertical":"vertical"===I}),ref:S},i,V&&w("div",{class:W("tooltip")},w(H,{badgeText:R||"",label:m,align:K,id:B(l,"label"),refFloating:q}))),L&&!("soft"===L.maxLengthBehavior&&"number"!=typeof L.maxLength)&&w("div",{class:W("counter")},w("span",{"aria-hidden":"true",class:W("counter"),ref:L.visualRef}),w("span",{"aria-live":"polite",class:"visually-hidden",id:B(l,"counter"),ref:L.ariaRef})),z&&w(U,{id:l,alert:a,hideMsg:p,msg:c}),!s&&w(J,{id:l,hint:b}),"number"==typeof F&&!L&&w("span",{id:B(l,"character-limit-hint"),class:"visually-hidden"},A("kol-character-limit-hint",{placeholders:{limit:String(F)}})))};function ee({ariaDescribedBy:e,hideLabel:i,label:t}){return{title:"",autoCapitalize:"off",autoCorrect:"off","aria-describedby":(null==e?void 0:e.length)?e.join(" "):void 0,"aria-label":i&&t?m(t):void 0}}const ie=class extends N{constructor(){super(...arguments),this.tooltipBehavior=new k(N.stateLess),this.smartButton=x((()=>this.host)),this.infoPopover=K({getFlagHost:()=>this.host,getOpen:()=>!0===this.infoPopoverOpen,setOpen:e=>{this.infoPopoverOpen=e}}),this.focusEventSent=!1,this.handleChange=(e,i)=>{var t,o;e.stopPropagation(),void 0===i&&(i=e.target.value),this.emit(T.change,i),null===(o=null===(t=this._on)||void 0===t?void 0:t.onChange)||void 0===o||o.call(t,e,i)},this.handleInput=(e,i)=>{var t,o;e.stopPropagation(),void 0===i&&(i=e.target.value),this.emit(T.input,i),this.formAssociation.setFormAssociatedValue(i),null===(o=null===(t=this._on)||void 0===t?void 0:t.onInput)||void 0===o||o.call(t,e,i)},this.handleClick=e=>{var i,t;this.emit(T.click),null===(t=null===(i=this._on)||void 0===i?void 0:i.onClick)||void 0===t||t.call(i,e)},this.handleFocus=e=>{var i,t;this.focusEventSent||(this.emit(T.focus),null===(t=null===(i=this._on)||void 0===i?void 0:i.onFocus)||void 0===t||t.call(i,e),this.focusEventSent=!0),this.shared.setState("inputHasFocus",!0)},this.handleBlur=e=>{this.handleFocusLeave(e),this.shared.setState("inputHasFocus",!1)},this.handleKeyDown=e=>{var i,t;this.emit(T.keydown),null===(t=null===(i=this._on)||void 0===i?void 0:i.onKeyDown)||void 0===t||t.call(i,e)},this.setInputRef=e=>{this.tooltipAnchor=e,e&&this.isTooltipShown()&&(this.tooltipBehavior.initContext(e),this.tooltipBehavior.syncListeners(void 0,e,!0))},this.setTooltipRef=e=>{this.tooltipBehavior.setTooltipElementRef(e)}}get shared(){return this}initFormAssociation(e,i){this.formAssociation=new l(N.stateLess,{host:this.host,type:e,name:i})}syncFormField(){this.smartButton.syncListeners(),this.infoPopover.syncListeners(),this.syncAriaDetails()}destroyFormField(){this.tooltipBehavior.destroy(),this.smartButton.destroy(),this.infoPopover.destroy()}connectedCallback(){this.syncFormField(),this.tooltipAnchor&&this.isTooltipShown()&&(this.tooltipBehavior.initContext(this.tooltipAnchor),this.tooltipBehavior.syncListeners(void 0,this.tooltipAnchor,!0))}getInfoPopover(){const e=this.shared.getRenderProp("infoPopover");if(!e)return;const{_content:i}=e,t=f(e,["_content"]);return{popoverButton:this.infoPopover.getFcProps(Object.assign(Object.assign({_variant:"ghost"},t),{_hideLabel:!0,_inline:!0})),content:i}}getSmartButtonFcProps(e,i){if("object"==typeof e&&null!==e)return this.smartButton.getFcProps(Object.assign({_hideLabel:!0,_disabled:i},e),{class:"kol-input-container__smart-button"})}applyAriaDetails(e){s.apply(e,(e=>this.shared.setRenderProp("ariaDetails",e))),this.formAssociation.watchAriaDetails(e),this.syncAriaDetails()}syncAriaDetails(){var e,i,t,o;const s=null===(i=null===(e=this.host)||void 0===e?void 0:e.shadowRoot)||void 0===i?void 0:i.querySelector("input, select, textarea");if(!s||!("ariaDetailsElements"in s))return;const l=_(this.host,this.shared.getRenderProp("ariaDetails")),r=this.pushedDetailsElements;(s!==this.ariaDetailsTarget||(null!==(t=null==r?void 0:r.length)&&void 0!==t?t:0)!==l.length||null!==(o=null==r?void 0:r.some(((e,i)=>e!==l[i])))&&void 0!==o&&o)&&(this.ariaDetailsTarget=s,this.pushedDetailsElements=l,s.ariaDetailsElements=l.length?l:null)}applyDisabled(e){r.apply(e,(e=>this.shared.setRenderProp("disabled",e)))}applyHideLabel(e){a.apply(e,(e=>this.shared.setRenderProp("hideLabel",e)))}applyHideMsg(e){q.apply(e,(e=>this.shared.setRenderProp("hideMsg",e)))}applyHint(e){E.apply(e,(e=>this.shared.setRenderProp("hint",e)))}applyInfoPopover(e){$.apply(e,(e=>this.shared.setRenderProp("infoPopover",e)))}applyLabel(e){v.apply(e,(e=>this.shared.setRenderProp("label",e)),this.isRequired("label"))}applyMsg(e){R.apply(e,(e=>this.shared.setRenderProp("msg",e)))}applyName(e){b.apply(e,(e=>this.shared.setRenderProp("name",e))),this.formAssociation.watchName(e)}applyOn(e){z.apply(e,(e=>this.shared.setRenderProp("on",e)))}applySyncValueBySelector(e){this.formAssociation.watchSyncValueBySelector(e)}applyTooltipAlign(e){n.apply(null!=e?e:"top",(e=>this.shared.setRenderProp("tooltipAlign",e)))}applyTouched(e){V.apply(e,(e=>this.shared.setRenderProp("touched",e)))}get eventHost(){var e,i;return null!==(i=null===(e=this.formAssociation)||void 0===e?void 0:e.host)&&void 0!==i?i:this.host}emit(e,i){this.eventHost&&F(this.eventHost,e,i)}handleFocusLeave(e){var i,t;if(this._disabled)return;const o=this.eventHost,s=(null==o?void 0:o.shadowRoot)||o,l=(null==s?void 0:s.contains(e.relatedTarget))||o===e.relatedTarget;this.focusEventSent&&!l&&(this._touched=!0,this.emit(T.blur),null===(t=null===(i=this._on)||void 0===i?void 0:i.onBlur)||void 0===t||t.call(i,e),this.focusEventSent=!1)}getAria(){const e=this.shared;return(({id:e,msg:i,hint:t,touched:o})=>{const s="string"==typeof i?i:null==i?void 0:i._description,l=Boolean(s&&s.length>0),r="error"===S(i)&&l&&!0===o,a="string"==typeof t&&t.length>0,n=[];return l&&!0===o&&n.push(B(e,"msg")),a&&n.push(B(e,"hint")),{hasError:r,hasHint:a,ariaDescribedBy:n}})({id:e.getState("id"),msg:e.getRenderProp("msg"),hint:e.getRenderProp("hint"),touched:e.getRenderProp("touched")})}showAsAlert(){return Boolean(this.shared.getRenderProp("touched"))&&!this.shared.getState("inputHasFocus")}isTooltipShown(){const e=this.shared;return X({hideLabel:e.getRenderProp("hideLabel"),label:m(e.getRenderProp("label"))})}getLabelTooltipRefs(){return{refInput:this.setInputRef,refTooltip:this.setTooltipRef}}getFormFieldProps({class:e,accessKey:i,shortKey:t,variant:o,counter:s,maxLength:l,readOnly:r,renderNoLabel:a,renderNoTooltip:n,required:d}){const h=this.shared,c=h.getState("id"),p=h.getRenderProp("label"),u=h.getRenderProp("tooltipAlign");return this.isTooltipShown()?(this.tooltipBehavior.watchAlign(u),this.tooltipBehavior.watchBadgeText(y(i,t)||""),this.tooltipBehavior.watchId(B(c,"label")),this.tooltipBehavior.watchLabel(p)):this.tooltipBehavior.destroy(),{id:c,disabled:h.getRenderProp("disabled"),msg:h.getRenderProp("msg"),hint:h.getRenderProp("hint"),label:p,hideLabel:h.getRenderProp("hideLabel"),hideMsg:h.getRenderProp("hideMsg"),touched:h.getRenderProp("touched"),showBadge:Boolean(i)||Boolean(t),required:d,readOnly:r,accessKey:i,shortKey:t,maxLength:l,counter:s,variant:o,class:e,tooltipAlign:u,alert:this.showAsAlert(),infoPopover:this.getInfoPopover(),renderNoLabel:a,renderNoTooltip:n,refInput:n?void 0:this.setInputRef,refTooltip:this.setTooltipRef}}};export{ie as B,Z as F,J as a,Q as b,ee as c,G as f,S as g,M as i}
4
+ import{p as e,k as i,H as t,b as o}from"./bem-registry.js";import{a as s,F as l}from"./behavior3.js";import{d as r}from"./disabled.js";import{h as a,e as n,j as d}from"./component3.js";import{c as h,n as c,b as p,a as u,t as m}from"./props-from-config.js";import{l as v}from"./label-with-expert-slot.js";import{n as b}from"./component9.js";import{a as f}from"./tslib.es6.js";import{S as g,b as y,s as j}from"./component7.js";import{r as _}from"./aria-labelledby.js";import{a as B,c as L,n as O}from"./dev.utils.js";import{K as T,d as F}from"./events.js";import{B as N}from"./base-web-component.js";import{c as x}from"./item.js";import{c as K}from"./item2.js";import{T as k}from"./behavior.js";import{h as w}from"@stencil/core/internal/client";import{t as A}from"./i18n.js";import{c as P}from"./clsx.js";import{B as C}from"./component.js";import{T as H}from"./component10.js";import{P as D}from"./behavior4.js";import{A as I}from"./component2.js";function M(e,i){return Boolean(e)&&!0===i}function S(e){var i;return"string"==typeof e?"error":null!==(i=null==e?void 0:e._type)&&void 0!==i?i:"error"}const q=h("hideMsg",!1,c),E=h("hint","",p),$=h("infoPopover",void 0,(function(e){if("object"==typeof e&&null!==e)return e;throw new Error("Invalid info popover: "+typeof e)})),z=u(),R=h("msg",void 0,(function(i){if("string"==typeof i)try{return e(i)}catch(e){return i}return i}),(function(e){return void 0===e||("string"==typeof e?e.length>0:i(e)&&t(e._description,1))})),V=h("touched",!1,c),G={required:[v],optional:[s,r,a,q,E,$,z,R,b,n,V]},J=e=>{var{id:i,class:t,hint:o,baseClassName:s="kol-form-field"}=e,l=f(e,["id","class","hint","baseClassName"]);return o?w("span",Object.assign({class:P(`${s}__hint`,t),id:B(i||"","hint")},l),o):null},Q=e=>{var{component:i="label",id:t,baseClassName:o="kol-form-field",class:s,accessKey:l,shortKey:r,label:a,hideLabel:n,hasExpertSlot:d,omitId:h,showBadge:c=!0,readOnly:p,infoPopover:u}=e,m=f(e,["component","id","baseClassName","class","accessKey","shortKey","label","hideLabel","hasExpertSlot","omitId","showBadge","readOnly","infoPopover"]);const v=!d&&n,b=!1===c?void 0:y(l,r);return w(i,Object.assign({},m,{class:P(`${o}__label`,s),id:v||h?void 0:B(t,"label"),hidden:v,htmlFor:"legend"===i?void 0:t}),w(g,{class:`${o}__label-text`,label:d?"":null!=a?a:"",badgeText:b},w("slot",{name:"expert"})),!d&&p&&w("span",{class:`${o}__label__read-only`,"aria-hidden":"true"},"(",A("kol-readonly"),")"),!d&&u&&w("span",null,w(D,Object.assign({},u.popoverButton),w("div",{class:"kol-popover-button__popover--styled"},u.content))))},U=i=>{var t,o,{alert:s,hideMsg:l,msg:r,id:a,class:n}=i,d=f(i,["alert","hideMsg","msg","id","class"]);const h=function(i){if("string"==typeof i)try{return e(i)}catch(e){return{_description:i,_type:"error"}}return i&&"object"==typeof i&&!("_type"in i)?Object.assign(Object.assign({},i),{_type:"error"}):i}(r);return w(I,Object.assign({alert:!l&&(null!==(t=null==h?void 0:h._alert)&&void 0!==t?t:!0===s),class:P("kol-form-field__msg",l&&"visually-hidden",n),closerAriaDescriptionId:O(),handleCloserClick:()=>{},hasCloser:!1,headingId:L("alert-heading"),id:B(a,"msg"),label:"",level:0,refCloserButton:()=>{},refCloserTooltip:()=>{},type:null!==(o=null==h?void 0:h._type)&&void 0!==o?o:"error",variant:"msg"},d),(null==h?void 0:h._description)||void 0)},W=o.forBlock("kol-form-field"),X=({hideLabel:e,label:i,renderNoTooltip:t})=>!t&&!j(i)&&!0===e,Y=e=>{const i=S(e);return{[i]:!0,[`msg-type-${i}`]:!0}},Z=(e,i)=>{const{renderNoLabel:t,renderNoTooltip:o,renderNoHint:s,id:l,required:r,alert:a,disabled:n,class:h,msg:c,hideMsg:p,hideLabel:u,label:m,infoPopover:v,hint:b,accessKey:g,shortKey:_,counter:L,readOnly:O,touched:T,maxLength:F,ariaDescribedBy:N,showBadge:x,tooltipAlign:K,variant:k,component:D="div",orientation:I,refInput:S,refTooltip:q}=e,E=f(e,["renderNoLabel","renderNoTooltip","renderNoHint","id","required","alert","disabled","class","msg","hideMsg","hideLabel","label","infoPopover","hint","accessKey","shortKey","counter","readOnly","touched","maxLength","ariaDescribedBy","showBadge","tooltipAlign","variant","component","orientation","refInput","refTooltip"]),$=j(m),z=M(c,T),R=y(g,_),V=X({hideLabel:u,label:m,renderNoTooltip:o}),G="fieldset"===D;return w(C,Object.assign({component:D,block:"kol-form-field",modifiers:Object.assign({disabled:Boolean(n),required:Boolean(r),touched:Boolean(T),"hide-label":Boolean(u),"read-only":Boolean(O),"hidden-msg":Boolean(p)},z?Y(c):{}),class:P(k&&d(k,"form-field"),h),disabled:!(!G||!n)||void 0,"aria-describedby":N},E),!t&&w(Q,{component:G?"legend":"label",class:G?"kol-form-field__label--legend":void 0,id:l,hasExpertSlot:$,hideLabel:u,label:m,accessKey:g,shortKey:_,readOnly:O,showBadge:x,infoPopover:v}),w("div",{class:W("input",{"orientation-horizontal":"horizontal"===I,"orientation-vertical":"vertical"===I}),ref:S},i,V&&w("div",{class:W("tooltip")},w(H,{badgeText:R||"",label:m,align:K,id:B(l,"label"),refFloating:q}))),L&&!("soft"===L.maxLengthBehavior&&"number"!=typeof L.maxLength)&&w("div",{class:W("counter")},w("span",{"aria-hidden":"true",class:W("counter"),ref:L.visualRef}),w("span",{"aria-live":"polite",class:"visually-hidden",id:B(l,"counter"),ref:L.ariaRef})),z&&w(U,{id:l,alert:a,hideMsg:p,msg:c}),!s&&w(J,{id:l,hint:b}),"number"==typeof F&&!L&&w("span",{id:B(l,"character-limit-hint"),class:"visually-hidden"},A("kol-character-limit-hint",{placeholders:{limit:String(F)}})))};function ee({ariaDescribedBy:e,hideLabel:i,label:t}){return{title:"",autoCapitalize:"off",autoCorrect:"off","aria-describedby":(null==e?void 0:e.length)?e.join(" "):void 0,"aria-label":i&&t?m(t):void 0}}const ie=class extends N{constructor(){super(...arguments),this.tooltipBehavior=new k(N.stateLess),this.smartButton=x((()=>this.host)),this.infoPopover=K({getFlagHost:()=>this.host,getOpen:()=>!0===this.infoPopoverOpen,setOpen:e=>{this.infoPopoverOpen=e}}),this.focusEventSent=!1,this.handleChange=(e,i)=>{var t,o;e.stopPropagation(),void 0===i&&(i=e.target.value),this.emit(T.change,i),null===(o=null===(t=this._on)||void 0===t?void 0:t.onChange)||void 0===o||o.call(t,e,i)},this.handleInput=(e,i)=>{var t,o;e.stopPropagation(),void 0===i&&(i=e.target.value),this.emit(T.input,i),this.formAssociation.setFormAssociatedValue(i),null===(o=null===(t=this._on)||void 0===t?void 0:t.onInput)||void 0===o||o.call(t,e,i)},this.handleClick=e=>{var i,t;this.emit(T.click),null===(t=null===(i=this._on)||void 0===i?void 0:i.onClick)||void 0===t||t.call(i,e)},this.handleFocus=e=>{var i,t;this.focusEventSent||(this.emit(T.focus),null===(t=null===(i=this._on)||void 0===i?void 0:i.onFocus)||void 0===t||t.call(i,e),this.focusEventSent=!0),this.shared.setState("inputHasFocus",!0)},this.handleBlur=e=>{this.handleFocusLeave(e),this.shared.setState("inputHasFocus",!1)},this.handleKeyDown=e=>{var i,t;this.emit(T.keydown),null===(t=null===(i=this._on)||void 0===i?void 0:i.onKeyDown)||void 0===t||t.call(i,e)},this.setInputRef=e=>{this.tooltipAnchor=e,e&&this.isTooltipShown()&&(this.tooltipBehavior.initContext(e),this.tooltipBehavior.syncListeners(void 0,e,!0))},this.setTooltipRef=e=>{this.tooltipBehavior.setTooltipElementRef(e)}}get shared(){return this}initFormAssociation(e,i){this.formAssociation=new l(N.stateLess,{host:this.host,type:e,name:i})}syncFormField(){this.smartButton.syncListeners(),this.infoPopover.syncListeners(),this.syncAriaDetails()}destroyFormField(){this.tooltipBehavior.destroy(),this.smartButton.destroy(),this.infoPopover.destroy()}connectedCallback(){this.syncFormField(),this.tooltipAnchor&&this.isTooltipShown()&&(this.tooltipBehavior.initContext(this.tooltipAnchor),this.tooltipBehavior.syncListeners(void 0,this.tooltipAnchor,!0))}getInfoPopover(){const e=this.shared.getRenderProp("infoPopover");if(!e)return;const{_content:i}=e,t=f(e,["_content"]);return{popoverButton:this.infoPopover.getFcProps(Object.assign(Object.assign({_variant:"ghost"},t),{_hideLabel:!0,_inline:!0})),content:i}}getSmartButtonFcProps(e,i){if("object"==typeof e&&null!==e)return this.smartButton.getFcProps(Object.assign({_hideLabel:!0,_disabled:i},e),{class:"kol-input-container__smart-button"})}applyAriaDetails(e){s.apply(e,(e=>this.shared.setRenderProp("ariaDetails",e))),this.formAssociation.watchAriaDetails(e),this.syncAriaDetails()}syncAriaDetails(){var e,i,t,o;const s=null===(i=null===(e=this.host)||void 0===e?void 0:e.shadowRoot)||void 0===i?void 0:i.querySelector("input, select, textarea");if(!s||!("ariaDetailsElements"in s))return;const l=_(this.host,this.shared.getRenderProp("ariaDetails")),r=this.pushedDetailsElements;(s!==this.ariaDetailsTarget||(null!==(t=null==r?void 0:r.length)&&void 0!==t?t:0)!==l.length||null!==(o=null==r?void 0:r.some(((e,i)=>e!==l[i])))&&void 0!==o&&o)&&(this.ariaDetailsTarget=s,this.pushedDetailsElements=l,s.ariaDetailsElements=l.length?l:null)}applyDisabled(e){r.apply(e,(e=>this.shared.setRenderProp("disabled",e)))}applyHideLabel(e){a.apply(e,(e=>this.shared.setRenderProp("hideLabel",e)))}applyHideMsg(e){q.apply(e,(e=>this.shared.setRenderProp("hideMsg",e)))}applyHint(e){E.apply(e,(e=>this.shared.setRenderProp("hint",e)))}applyInfoPopover(e){$.apply(e,(e=>this.shared.setRenderProp("infoPopover",e)))}applyLabel(e){v.apply(e,(e=>this.shared.setRenderProp("label",e)),this.isRequired("label"))}applyMsg(e){R.apply(e,(e=>this.shared.setRenderProp("msg",e)))}applyName(e){b.apply(e,(e=>this.shared.setRenderProp("name",e))),this.formAssociation.watchName(e)}applyOn(e){z.apply(e,(e=>this.shared.setRenderProp("on",e)))}applySyncValueBySelector(e){this.formAssociation.watchSyncValueBySelector(e)}applyTooltipAlign(e){n.apply(null!=e?e:"top",(e=>this.shared.setRenderProp("tooltipAlign",e)))}applyTouched(e){V.apply(e,(e=>this.shared.setRenderProp("touched",e)))}get eventHost(){var e,i;return null!==(i=null===(e=this.formAssociation)||void 0===e?void 0:e.host)&&void 0!==i?i:this.host}emit(e,i){this.eventHost&&F(this.eventHost,e,i)}handleFocusLeave(e){var i,t;if(this._disabled)return;const o=this.eventHost,s=(null==o?void 0:o.shadowRoot)||o,l=(null==s?void 0:s.contains(e.relatedTarget))||o===e.relatedTarget;this.focusEventSent&&!l&&(this._touched=!0,this.emit(T.blur),null===(t=null===(i=this._on)||void 0===i?void 0:i.onBlur)||void 0===t||t.call(i,e),this.focusEventSent=!1)}getAria(){const e=this.shared;return(({id:e,msg:i,hint:t,touched:o})=>{const s="string"==typeof i?i:null==i?void 0:i._description,l=Boolean(s&&s.length>0),r="error"===S(i)&&l&&!0===o,a="string"==typeof t&&t.length>0,n=[];return l&&!0===o&&n.push(B(e,"msg")),a&&n.push(B(e,"hint")),{hasError:r,hasHint:a,ariaDescribedBy:n}})({id:e.getState("id"),msg:e.getRenderProp("msg"),hint:e.getRenderProp("hint"),touched:e.getRenderProp("touched")})}showAsAlert(){return Boolean(this.shared.getRenderProp("touched"))&&!this.shared.getState("inputHasFocus")}isTooltipShown(){const e=this.shared;return X({hideLabel:e.getRenderProp("hideLabel"),label:m(e.getRenderProp("label"))})}getLabelTooltipRefs(){return{refInput:this.setInputRef,refTooltip:this.setTooltipRef}}getFormFieldProps({class:e,accessKey:i,shortKey:t,variant:o,counter:s,maxLength:l,readOnly:r,renderNoLabel:a,renderNoTooltip:n,required:d}){const h=this.shared,c=h.getState("id"),p=h.getRenderProp("label"),u=h.getRenderProp("tooltipAlign");return this.isTooltipShown()?(this.tooltipBehavior.watchAlign(u),this.tooltipBehavior.watchBadgeText(y(i,t)||""),this.tooltipBehavior.watchId(B(c,"label")),this.tooltipBehavior.watchLabel(p)):this.tooltipBehavior.destroy(),{id:c,disabled:h.getRenderProp("disabled"),msg:h.getRenderProp("msg"),hint:h.getRenderProp("hint"),label:p,hideLabel:h.getRenderProp("hideLabel"),hideMsg:h.getRenderProp("hideMsg"),touched:h.getRenderProp("touched"),showBadge:Boolean(i)||Boolean(t),required:d,readOnly:r,accessKey:i,shortKey:t,maxLength:l,counter:s,variant:o,class:e,tooltipAlign:u,alert:this.showAsAlert(),infoPopover:this.getInfoPopover(),renderNoLabel:a,renderNoTooltip:n,refInput:n?void 0:this.setInputRef,refTooltip:this.setTooltipRef}}};export{ie as B,Z as F,J as a,Q as b,ee as c,G as f,S as g,M as i}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h as e,p as s}from"./bem-registry.js";import{a as t,d as i,t as o,v as r}from"./component3.js";import{h as a,g as l,I as n}from"./input-container.js";import{o as d,p as h,c}from"./props-from-config.js";import{m as p}from"./multiple.js";import{r as u}from"./required.js";import{r as b}from"./rows.js";import{f as m,i as v,g as y,c as f,B as j,F as O}from"./base-web-component2.js";import{h as g,Fragment as A}from"@stencil/core/internal/client";import{v as B}from"./access-and-short-key.js";import{c as w}from"./clsx.js";import{f as K}from"./options.js";import{a as q}from"./tslib.es6.js";import{g as P}from"./block-bem.js";const k=s=>{if("object"==typeof s&&null!==s){if("string"==typeof s.label&&s.label.length>0)return s.disabled=!0===s.disabled,s.label=`${s.label}`.trim(),!1===d(s.label,3)&&!1===h(s.label)&&e(`A differing Aria-Label (${s.label}) is inaccessible. A differing Aria-Label should consist of at least three readable characters.`),!Array.isArray(s.options)||void 0===s.options.find((e=>!1===k(e)));if("number"==typeof s.label)return!0}return!1},x=c("options",[],(function(e){const t="string"==typeof e?s(e):e;if(Array.isArray(t)&&t.every((e=>k(e))))return t;throw new Error("Invalid select options")})),L=c("value",[],(e=>Array.isArray(e)?e:[e])),$={required:[...m.required],optional:[...m.optional,t,a,p,x,u,b,L,i,o,r]},D=P("kol-select"),E=e=>{var{class:s,index:t,selectedValue:i,selected:o,value:r,label:a,disabled:l}=e,n=q(e,["class","index","selectedValue","selected","value","label","disabled"]);const d=void 0===i?[]:Array.isArray(i)?i:[i],h=o||d.includes(r);return g("option",Object.assign({class:w(D("option",{selected:Boolean(h),disabled:Boolean(l)}),s),selected:h,disabled:l,value:t},n),a)},I=({preKey:e,options:s,disabled:t,value:i,OptionProps:o={},OptionGroupProps:r={}})=>(null==s?void 0:s.length)?g(A,null,s.map(((s,a)=>{const l=[e,`-${a}`].join("");if("options"in s){const e=Boolean(t||s.disabled),{label:a}=s,n=q(s,["label"]);return g("optgroup",Object.assign({class:D("optgroup",{disabled:e}),key:l},r,{label:null==a?void 0:a.toString(),disabled:e}),g(I,Object.assign({OptionGroupProps:r,OptionProps:o,value:i,preKey:l},n,{disabled:e})))}return"value"in s?g(E,Object.assign({key:l},o,{index:l,selectedValue:i},s,{disabled:Boolean(t||s.disabled)})):null}))):null,V=e=>{const{class:s,msg:t,touched:i,disabled:o,required:r,options:a,value:l,OptionProps:n,OptionGroupProps:d,ariaDescribedBy:h,hideLabel:c,label:p}=e,u=q(e,["class","msg","touched","disabled","required","options","value","OptionProps","OptionGroupProps","ariaDescribedBy","hideLabel","label"]),b=Object.assign(Object.assign({class:w(D(Object.assign({disabled:Boolean(o),required:Boolean(r),touched:Boolean(i)},v(t,i)?{[y(t)]:!0}:{})),s),required:r,disabled:o},f({ariaDescribedBy:h,hideLabel:c,label:p})),u);return g("select",Object.assign({},b),g(I,{OptionGroupProps:d,OptionProps:n,disabled:o,options:a,value:l}))},G=(e,s,t)=>{const i=Array.isArray(e);if(s){if(void 0!==e&&!i)throw new Error(`↑ The schema for the property (_value) is not valid for multiple mode. Expected an array. The value will not be changed. (${t} = ${JSON.stringify(e)})`)}else if(i)throw new Error(`↑ The schema for the property (_value) is not valid for single mode. Expected a single value. The value will not be changed. (${t} = ${JSON.stringify(e)})`)},S=(e,s=!1)=>e.flatMap((e=>"options"in e&&Array.isArray(e.options)?S(e.options,Boolean(s||e.disabled)):[Object.assign(Object.assign({},e),{disabled:Boolean(s||e.disabled)})])),T=(e,s,t)=>{if(0===s.length)return e;const i=S(s),o=i.map((e=>e.value)),r=e.every((e=>o.includes(e)))?e:e.filter((e=>o.includes(e)));if(!1===t&&0===r.length){const e=i.find((e=>!0!==e.disabled));return e?[e.value]:r}return r},C=class extends j{constructor(){super(...arguments),this.keyOptionMap=new Map,this.hasValue=!0,this.handleSelectInput=e=>{var s;const t=Array.from((null===(s=this.ctaRef.el)||void 0===s?void 0:s.options)||[]).filter((e=>e.selected)).map((e=>{var s;return null===(s=this.keyOptionMap.get(e.value))||void 0===s?void 0:s.value}));if(this._multiple)this._value=t,this.handleInput(e,t);else{const s=t.length>0?t[0]:void 0;this._value=s,this.handleInput(e,s)}},this.handleSelectChange=e=>{const s=this._value;this.handleChange(e,s),this.hasValue=!!s}}applyAccessKey(e){t.apply(e,(e=>this.setRenderProp("accessKey",e))),B(e,this.getShortKeyProp())}applyShortKey(e){i.apply(e,(e=>this.setRenderProp("shortKey",e))),B(this.getAccessKeyProp(),e)}applyIcons(e){a.apply(e,(e=>this.setRenderProp("icons",e)))}applyMultiple(e){G(this._value,!0===e,"current"),p.apply(e,(e=>{this.setRenderProp("multiple",e),this.setRenderProp("value",T(this.getRenderProp("value"),this.getRenderProp("options"),this._multiple))}))}applyOptions(e){x.apply(e,(e=>{this.setRenderProp("options",e),e.length>0&&(this.keyOptionMap.clear(),K(this.keyOptionMap,e),this.setRenderProp("value",T(this.getRenderProp("value"),e,this._multiple)))}))}applyRequired(e){u.apply(e,(e=>this.setRenderProp("required",e)))}applyRows(e){b.apply(e,(e=>this.setRenderProp("rows",e)))}applyTabIndex(e){o.apply(e,(e=>this.setRenderProp("tabIndex",e)))}applyValue(e){G(e,!0===this._multiple,"received");const s=e=>{const s=T(e,this.getRenderProp("options"),this._multiple);this.setRenderProp("value",s),this.formAssociation.setFormAssociatedValue(this.getModelValue())};null===e?s([null]):L.apply(e,s)}applyVariant(e){r.apply(e,(e=>this.setRenderProp("variant",e)))}getModelValue(){const e=this.getRenderProp("value");return this._multiple?e:Array.isArray(e)&&e.length>0?e[0]:e}getSelectProps(){const{ariaDescribedBy:e,hasError:s}=this.getAria(),t=this.getRenderProp("multiple"),i=this.getRenderProp("shortKey");return Object.assign(Object.assign({id:this.getState("id"),hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),value:this.getRenderProp("value"),options:this.getRenderProp("options"),accessKey:this.getRenderProp("accessKey")||void 0,disabled:this.getRenderProp("disabled"),name:this.getRenderProp("name")||void 0,"aria-invalid":s?"true":void 0,ariaDescribedBy:e,size:t?this.getRenderProp("rows"):void 0,multiple:t,required:this.getRenderProp("required"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")},i?{"aria-keyshortcuts":i}:{}),{ref:this.ctaRef,onBlur:this.handleBlur,onChange:this.handleSelectChange,onClick:this.handleClick,onFocus:this.handleFocus,onInput:this.handleSelectInput,onKeyDown:this.handleKeyDown})}renderSelectField(){const e=this.getRenderProp("disabled"),{startAdornment:s,endAdornment:t}=l({icons:this.getRenderProp("icons")});return g(O,Object.assign({},this.getFormFieldProps({class:w("kol-form-field-select",{"kol-form-field--has-value":this.hasValue}),accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,required:this.getRenderProp("required"),variant:this.getRenderProp("variant")}),{onClick:()=>{var e;return null===(e=this.ctaRef.el)||void 0===e?void 0:e.focus()}}),g(n,{disabled:e,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:s,endAdornment:t},g(V,Object.assign({},this.getSelectProps()))))}};export{C as B,$ as s}
4
+ import{h as e,p as s}from"./bem-registry.js";import{a as t,d as i,t as o,v as r}from"./component3.js";import{h as a,g as l,I as n}from"./input-container.js";import{q as d,s as h,c}from"./props-from-config.js";import{m as p}from"./multiple.js";import{r as u}from"./required.js";import{r as b}from"./rows.js";import{f as m,i as v,g as y,c as f,B as j,F as O}from"./base-web-component2.js";import{h as g,Fragment as A}from"@stencil/core/internal/client";import{v as B}from"./access-and-short-key.js";import{c as w}from"./clsx.js";import{f as K}from"./options.js";import{a as q}from"./tslib.es6.js";import{g as P}from"./block-bem.js";const k=s=>{if("object"==typeof s&&null!==s){if("string"==typeof s.label&&s.label.length>0)return s.disabled=!0===s.disabled,s.label=`${s.label}`.trim(),!1===d(s.label,3)&&!1===h(s.label)&&e(`A differing Aria-Label (${s.label}) is inaccessible. A differing Aria-Label should consist of at least three readable characters.`),!Array.isArray(s.options)||void 0===s.options.find((e=>!1===k(e)));if("number"==typeof s.label)return!0}return!1},x=c("options",[],(function(e){const t="string"==typeof e?s(e):e;if(Array.isArray(t)&&t.every((e=>k(e))))return t;throw new Error("Invalid select options")})),L=c("value",[],(e=>Array.isArray(e)?e:[e])),$={required:[...m.required],optional:[...m.optional,t,a,p,x,u,b,L,i,o,r]},D=P("kol-select"),E=e=>{var{class:s,index:t,selectedValue:i,selected:o,value:r,label:a,disabled:l}=e,n=q(e,["class","index","selectedValue","selected","value","label","disabled"]);const d=void 0===i?[]:Array.isArray(i)?i:[i],h=o||d.includes(r);return g("option",Object.assign({class:w(D("option",{selected:Boolean(h),disabled:Boolean(l)}),s),selected:h,disabled:l,value:t},n),a)},I=({preKey:e,options:s,disabled:t,value:i,OptionProps:o={},OptionGroupProps:r={}})=>(null==s?void 0:s.length)?g(A,null,s.map(((s,a)=>{const l=[e,`-${a}`].join("");if("options"in s){const e=Boolean(t||s.disabled),{label:a}=s,n=q(s,["label"]);return g("optgroup",Object.assign({class:D("optgroup",{disabled:e}),key:l},r,{label:null==a?void 0:a.toString(),disabled:e}),g(I,Object.assign({OptionGroupProps:r,OptionProps:o,value:i,preKey:l},n,{disabled:e})))}return"value"in s?g(E,Object.assign({key:l},o,{index:l,selectedValue:i},s,{disabled:Boolean(t||s.disabled)})):null}))):null,V=e=>{const{class:s,msg:t,touched:i,disabled:o,required:r,options:a,value:l,OptionProps:n,OptionGroupProps:d,ariaDescribedBy:h,hideLabel:c,label:p}=e,u=q(e,["class","msg","touched","disabled","required","options","value","OptionProps","OptionGroupProps","ariaDescribedBy","hideLabel","label"]),b=Object.assign(Object.assign({class:w(D(Object.assign({disabled:Boolean(o),required:Boolean(r),touched:Boolean(i)},v(t,i)?{[y(t)]:!0}:{})),s),required:r,disabled:o},f({ariaDescribedBy:h,hideLabel:c,label:p})),u);return g("select",Object.assign({},b),g(I,{OptionGroupProps:d,OptionProps:n,disabled:o,options:a,value:l}))},G=(e,s,t)=>{const i=Array.isArray(e);if(s){if(void 0!==e&&!i)throw new Error(`↑ The schema for the property (_value) is not valid for multiple mode. Expected an array. The value will not be changed. (${t} = ${JSON.stringify(e)})`)}else if(i)throw new Error(`↑ The schema for the property (_value) is not valid for single mode. Expected a single value. The value will not be changed. (${t} = ${JSON.stringify(e)})`)},S=(e,s=!1)=>e.flatMap((e=>"options"in e&&Array.isArray(e.options)?S(e.options,Boolean(s||e.disabled)):[Object.assign(Object.assign({},e),{disabled:Boolean(s||e.disabled)})])),T=(e,s,t)=>{if(0===s.length)return e;const i=S(s),o=i.map((e=>e.value)),r=e.every((e=>o.includes(e)))?e:e.filter((e=>o.includes(e)));if(!1===t&&0===r.length){const e=i.find((e=>!0!==e.disabled));return e?[e.value]:r}return r},C=class extends j{constructor(){super(...arguments),this.keyOptionMap=new Map,this.hasValue=!0,this.handleSelectInput=e=>{var s;const t=Array.from((null===(s=this.ctaRef.el)||void 0===s?void 0:s.options)||[]).filter((e=>e.selected)).map((e=>{var s;return null===(s=this.keyOptionMap.get(e.value))||void 0===s?void 0:s.value}));if(this._multiple)this._value=t,this.handleInput(e,t);else{const s=t.length>0?t[0]:void 0;this._value=s,this.handleInput(e,s)}},this.handleSelectChange=e=>{const s=this._value;this.handleChange(e,s),this.hasValue=!!s}}applyAccessKey(e){t.apply(e,(e=>this.setRenderProp("accessKey",e))),B(e,this.getShortKeyProp())}applyShortKey(e){i.apply(e,(e=>this.setRenderProp("shortKey",e))),B(this.getAccessKeyProp(),e)}applyIcons(e){a.apply(e,(e=>this.setRenderProp("icons",e)))}applyMultiple(e){G(this._value,!0===e,"current"),p.apply(e,(e=>{this.setRenderProp("multiple",e),this.setRenderProp("value",T(this.getRenderProp("value"),this.getRenderProp("options"),this._multiple))}))}applyOptions(e){x.apply(e,(e=>{this.setRenderProp("options",e),e.length>0&&(this.keyOptionMap.clear(),K(this.keyOptionMap,e),this.setRenderProp("value",T(this.getRenderProp("value"),e,this._multiple)))}))}applyRequired(e){u.apply(e,(e=>this.setRenderProp("required",e)))}applyRows(e){b.apply(e,(e=>this.setRenderProp("rows",e)))}applyTabIndex(e){o.apply(e,(e=>this.setRenderProp("tabIndex",e)))}applyValue(e){G(e,!0===this._multiple,"received");const s=e=>{const s=T(e,this.getRenderProp("options"),this._multiple);this.setRenderProp("value",s),this.formAssociation.setFormAssociatedValue(this.getModelValue())};null===e?s([null]):L.apply(e,s)}applyVariant(e){r.apply(e,(e=>this.setRenderProp("variant",e)))}getModelValue(){const e=this.getRenderProp("value");return this._multiple?e:Array.isArray(e)&&e.length>0?e[0]:e}getSelectProps(){const{ariaDescribedBy:e,hasError:s}=this.getAria(),t=this.getRenderProp("multiple"),i=this.getRenderProp("shortKey");return Object.assign(Object.assign({id:this.getState("id"),hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),value:this.getRenderProp("value"),options:this.getRenderProp("options"),accessKey:this.getRenderProp("accessKey")||void 0,disabled:this.getRenderProp("disabled"),name:this.getRenderProp("name")||void 0,"aria-invalid":s?"true":void 0,ariaDescribedBy:e,size:t?this.getRenderProp("rows"):void 0,multiple:t,required:this.getRenderProp("required"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")},i?{"aria-keyshortcuts":i}:{}),{ref:this.ctaRef,onBlur:this.handleBlur,onChange:this.handleSelectChange,onClick:this.handleClick,onFocus:this.handleFocus,onInput:this.handleSelectInput,onKeyDown:this.handleKeyDown})}renderSelectField(){const e=this.getRenderProp("disabled"),{startAdornment:s,endAdornment:t}=l({icons:this.getRenderProp("icons")});return g(O,Object.assign({},this.getFormFieldProps({class:w("kol-form-field-select",{"kol-form-field--has-value":this.hasValue}),accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,required:this.getRenderProp("required"),variant:this.getRenderProp("variant")}),{onClick:()=>{var e;return null===(e=this.ctaRef.el)||void 0===e?void 0:e.focus()}}),g(n,{disabled:e,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:s,endAdornment:t},g(V,Object.assign({},this.getSelectProps()))))}};export{C as B,$ as s}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h as s}from"@stencil/core/internal/client";import{s as i,X as t}from"./bem-registry.js";import{B as a}from"./base-web-component.js";import{b as e,e as o,a as h,c as l,d as r,B as n}from"./component10.js";import{F as p}from"./behavior3.js";import{T as d}from"./behavior.js";import{a as c,b as m,c as y,f as b,g as u,h as f,s as v,i as j,l as x,d as A,t as C,e as I,v as B}from"./component3.js";import{d as g}from"./disabled.js";import{i as D}from"./id.js";import"./props-from-config.js";import{l as K}from"./label-with-expert-slot.js";import{n as T}from"./name.js";import{v as S}from"./access-and-short-key.js";import{c as L}from"./element-interaction.js";import{d as w,K as F}from"./events.js";import{p as H,a as P}from"./controller.js";const E=class extends a{constructor(){super(...arguments),this.ctaRef=L(),this.propsConfig=e,this.tooltipBehavior=new d(this.stateAccess),this.handleClick=s=>{s.stopPropagation(),this.tooltipBehavior.hideTooltip();const t=this.getRenderProp("type");if("submit"===t)H({form:this.host});else if("reset"===t)P({form:this.host});else{this.formAssociation.setFormAssociatedValue(this.formValue);const t=this.getRenderProp("on").onClick;"function"==typeof t&&(i(s,this.ctaRef.el),t(s,this.formValue))}this.host&&w(this.host,F.click,this.formValue)},this.handleMouseDown=s=>{var i,t;null===(t=(i=this.getRenderProp("on")).onMouseDown)||void 0===t||t.call(i,s),this.host&&w(this.host,F.mousedown)},this.handleFocus=s=>{var i,t;null===(t=(i=this.getRenderProp("on")).onFocus)||void 0===t||t.call(i,s),this.host&&w(this.host,F.focus)},this.handleBlur=s=>{var i,t;null===(t=(i=this.getRenderProp("on")).onBlur)||void 0===t||t.call(i,s),this.host&&w(this.host,F.blur)}}initFormAssociation(){this.formAssociation=new p(a.stateLess,{host:this.host,type:"button"})}unsetButtonTabIndex(){this.unsetRenderProp("tabIndex")}initTooltipBehavior(){this.tooltipBehavior.componentWillLoad({label:this.getRenderProp("label"),align:this.getRenderProp("tooltipAlign")})}syncTooltipListeners(){this.ctaRef.el&&this.tooltipBehavior.syncListeners(void 0,this.ctaRef.el,!0)}destroyTooltipBehavior(){this.tooltipBehavior.destroy()}applyAccessKey(s,i){c.apply(s,(s=>this.setRenderProp("accessKey",s))),S(s,i)}applyAriaControls(s){m.apply(s,(s=>this.setRenderProp("ariaControls",s)))}applyAriaDescription(s){y.apply(s,(s=>this.setRenderProp("ariaDescription",s)))}applyAriaExpanded(s){b.apply(s,(s=>this.setRenderProp("ariaExpanded",s)))}applyAriaHasPopup(s){o.apply(s,(s=>this.setRenderProp("ariaHasPopup",s)))}applyAriaSelected(s){h.apply(s,(s=>this.setRenderProp("ariaSelected",s)))}applyCustomClass(s){u.apply(s,(s=>this.setRenderProp("customClass",s)))}applyDisabled(s){g.apply(s,(s=>this.setRenderProp("disabled",s)))}applyHideLabel(s){f.apply(s,(s=>this.setRenderProp("hideLabel",s)))}applyIcons(s){v.apply(s,(s=>this.setRenderProp("icons",s)))}applyId(s){D.apply(s,(s=>this.setRenderProp("id",s)))}applyInline(s){j.apply(s,(s=>this.setRenderProp("inline",s)))}applyLabel(s){K.apply(s,(s=>{this.setRenderProp("label",s),this.tooltipBehavior.watchLabel(s)}),this.isRequired("label"))}applyName(s){T.apply(s,(s=>this.setRenderProp("name",s))),this.formAssociation.watchName(s)}applyOn(s){l.apply(s,(s=>this.setRenderProp("on",s)))}applyRole(s){x.apply(s,(s=>this.setRenderProp("role",s)))}applyShortKey(s,i){A.apply(s,(s=>this.setRenderProp("shortKey",s))),S(i,s)}applySyncValueBySelector(s){this.formAssociation.watchSyncValueBySelector(s)}applyTabIndex(s){"number"==typeof s?C.apply(s,(s=>this.setRenderProp("tabIndex",s))):this.unsetRenderProp("tabIndex")}applyTooltipAlign(s){I.apply(null!=s?s:"top",(s=>{this.setRenderProp("tooltipAlign",s),this.tooltipBehavior.watchAlign(s)}))}applyType(s){r.apply(s,(s=>this.setRenderProp("type",s)))}applyValue(s){this.formValue=s,this.formAssociation.setFormAssociatedValue(s)}applyVariant(s){var i;B.apply(null!==(i=null!=s?s:t("buttonVariantDefault",this.host))&&void 0!==i?i:"normal",(s=>this.setRenderProp("variant",s)))}getButtonFCProps(){return{accessKey:this.getRenderProp("accessKey"),ariaControls:this.getRenderProp("ariaControls"),ariaDescription:this.getRenderProp("ariaDescription"),ariaDescriptionId:this.getState("ariaDescriptionId"),ariaExpanded:this.getRenderProp("ariaExpanded"),ariaHasPopup:this.getRenderProp("ariaHasPopup"),ariaSelected:this.getRenderProp("ariaSelected"),customClass:this.getRenderProp("customClass"),disabled:this.getRenderProp("disabled"),handleBlur:this.handleBlur,handleClick:this.handleClick,handleFocus:this.handleFocus,handleMouseDown:this.handleMouseDown,hideLabel:this.getRenderProp("hideLabel"),icons:this.getRenderProp("icons"),id:this.getRenderProp("id"),inline:this.getRenderProp("inline"),label:this.getRenderProp("label"),name:this.getRenderProp("name"),on:this.getRenderProp("on"),refButton:this.ctaRef,refTooltip:this.tooltipBehavior.setTooltipElementRef,role:this.getRenderProp("role"),shortKey:this.getRenderProp("shortKey"),tabIndex:this.getRenderProp("tabIndex"),tooltipAlign:this.getRenderProp("tooltipAlign"),type:this.getRenderProp("type"),variant:this.getRenderProp("variant")}}renderButtonFC(){return s(n,Object.assign({},this.getButtonFCProps()))}};export{E as B}
4
+ import{h as s}from"@stencil/core/internal/client";import{s as i,X as t}from"./bem-registry.js";import{B as a}from"./base-web-component.js";import{b as e,e as o,a as h,n as l,c as r,d as n,B as p}from"./component9.js";import{F as d}from"./behavior3.js";import{T as c}from"./behavior.js";import{a as m,b as y,c as b,f as u,g as f,h as v,s as j,i as x,l as A,d as C,t as I,e as B,v as g}from"./component3.js";import{d as D}from"./disabled.js";import{i as K}from"./id.js";import"./props-from-config.js";import{l as T}from"./label-with-expert-slot.js";import{v as S}from"./access-and-short-key.js";import{c as L}from"./element-interaction.js";import{d as w,K as F}from"./events.js";import{p as H,a as P}from"./controller.js";const E=class extends a{constructor(){super(...arguments),this.ctaRef=L(),this.propsConfig=e,this.tooltipBehavior=new c(this.stateAccess),this.handleClick=s=>{s.stopPropagation(),this.tooltipBehavior.hideTooltip();const t=this.getRenderProp("type");if("submit"===t)H({form:this.host});else if("reset"===t)P({form:this.host});else{this.formAssociation.setFormAssociatedValue(this.formValue);const t=this.getRenderProp("on").onClick;"function"==typeof t&&(i(s,this.ctaRef.el),t(s,this.formValue))}this.host&&w(this.host,F.click,this.formValue)},this.handleMouseDown=s=>{var i,t;null===(t=(i=this.getRenderProp("on")).onMouseDown)||void 0===t||t.call(i,s),this.host&&w(this.host,F.mousedown)},this.handleFocus=s=>{var i,t;null===(t=(i=this.getRenderProp("on")).onFocus)||void 0===t||t.call(i,s),this.host&&w(this.host,F.focus)},this.handleBlur=s=>{var i,t;null===(t=(i=this.getRenderProp("on")).onBlur)||void 0===t||t.call(i,s),this.host&&w(this.host,F.blur)}}initFormAssociation(){this.formAssociation=new d(a.stateLess,{host:this.host,type:"button"})}unsetButtonTabIndex(){this.unsetRenderProp("tabIndex")}initTooltipBehavior(){this.tooltipBehavior.componentWillLoad({label:this.getRenderProp("label"),align:this.getRenderProp("tooltipAlign")})}syncTooltipListeners(){this.ctaRef.el&&this.tooltipBehavior.syncListeners(void 0,this.ctaRef.el,!0)}destroyTooltipBehavior(){this.tooltipBehavior.destroy()}applyAccessKey(s,i){m.apply(s,(s=>this.setRenderProp("accessKey",s))),S(s,i)}applyAriaControls(s){y.apply(s,(s=>this.setRenderProp("ariaControls",s)))}applyAriaDescription(s){b.apply(s,(s=>this.setRenderProp("ariaDescription",s)))}applyAriaExpanded(s){u.apply(s,(s=>this.setRenderProp("ariaExpanded",s)))}applyAriaHasPopup(s){o.apply(s,(s=>this.setRenderProp("ariaHasPopup",s)))}applyAriaSelected(s){h.apply(s,(s=>this.setRenderProp("ariaSelected",s)))}applyCustomClass(s){f.apply(s,(s=>this.setRenderProp("customClass",s)))}applyDisabled(s){D.apply(s,(s=>this.setRenderProp("disabled",s)))}applyHideLabel(s){v.apply(s,(s=>this.setRenderProp("hideLabel",s)))}applyIcons(s){j.apply(s,(s=>this.setRenderProp("icons",s)))}applyId(s){K.apply(s,(s=>this.setRenderProp("id",s)))}applyInline(s){x.apply(s,(s=>this.setRenderProp("inline",s)))}applyLabel(s){T.apply(s,(s=>{this.setRenderProp("label",s),this.tooltipBehavior.watchLabel(s)}),this.isRequired("label"))}applyName(s){l.apply(s,(s=>this.setRenderProp("name",s))),this.formAssociation.watchName(s)}applyOn(s){r.apply(s,(s=>this.setRenderProp("on",s)))}applyRole(s){A.apply(s,(s=>this.setRenderProp("role",s)))}applyShortKey(s,i){C.apply(s,(s=>this.setRenderProp("shortKey",s))),S(i,s)}applySyncValueBySelector(s){this.formAssociation.watchSyncValueBySelector(s)}applyTabIndex(s){"number"==typeof s?I.apply(s,(s=>this.setRenderProp("tabIndex",s))):this.unsetRenderProp("tabIndex")}applyTooltipAlign(s){B.apply(null!=s?s:"top",(s=>{this.setRenderProp("tooltipAlign",s),this.tooltipBehavior.watchAlign(s)}))}applyType(s){n.apply(s,(s=>this.setRenderProp("type",s)))}applyValue(s){this.formValue=s,this.formAssociation.setFormAssociatedValue(s)}applyVariant(s){var i;g.apply(null!==(i=null!=s?s:t("buttonVariantDefault",this.host))&&void 0!==i?i:"normal",(s=>this.setRenderProp("variant",s)))}getButtonFCProps(){return{accessKey:this.getRenderProp("accessKey"),ariaControls:this.getRenderProp("ariaControls"),ariaDescription:this.getRenderProp("ariaDescription"),ariaDescriptionId:this.getState("ariaDescriptionId"),ariaExpanded:this.getRenderProp("ariaExpanded"),ariaHasPopup:this.getRenderProp("ariaHasPopup"),ariaSelected:this.getRenderProp("ariaSelected"),customClass:this.getRenderProp("customClass"),disabled:this.getRenderProp("disabled"),handleBlur:this.handleBlur,handleClick:this.handleClick,handleFocus:this.handleFocus,handleMouseDown:this.handleMouseDown,hideLabel:this.getRenderProp("hideLabel"),icons:this.getRenderProp("icons"),id:this.getRenderProp("id"),inline:this.getRenderProp("inline"),label:this.getRenderProp("label"),name:this.getRenderProp("name"),on:this.getRenderProp("on"),refButton:this.ctaRef,refTooltip:this.tooltipBehavior.setTooltipElementRef,role:this.getRenderProp("role"),shortKey:this.getRenderProp("shortKey"),tabIndex:this.getRenderProp("tabIndex"),tooltipAlign:this.getRenderProp("tooltipAlign"),type:this.getRenderProp("type"),variant:this.getRenderProp("variant")}}renderButtonFC(){return s(p,Object.assign({},this.getButtonFCProps()))}};export{E as B}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h as i}from"@stencil/core/internal/client";import{B as s}from"./base-web-component.js";import{r as t,C as o}from"./component8.js";import"./bem-registry.js";import{l}from"./level.js";import{d as h,w as a}from"./width.js";import{A as e,t as r}from"./props-from-config.js";import{l as n}from"./label-lang-segment.js";import{u as d,l as p,D as m,d as v}from"./scroll-lock.js";import{T as c}from"./behavior.js";import{c as u}from"./element-interaction.js";import{d as b,K as f}from"./events.js";import{h as g}from"./tooltip-open-tracking.js";const j={required:[n],optional:[h,l,e,a]},C=class extends s{constructor(){super(...arguments),this.dialogRef=u(),this.cardCloseButtonRef=u(),this.cardCloseTooltipBehavior=new c(this.stateAccess),this.propsConfig=j,this.handleCancel=i=>{var s,t;g(i),i.defaultPrevented||(null===(t=(s=this.getRenderProp("on")).onCancel)||void 0===t||t.call(s,i),i.defaultPrevented||this.host&&!b(this.host,f.cancel)&&i.preventDefault())},this.handleClose=i=>{var s,t,o,l;i.target===this.dialogRef.el&&(d(this),null===(t=(s=this.getRenderProp("on")).onClose)||void 0===t||t.call(s),null===(l=(o=this.getRenderProp("on")).onToggle)||void 0===l||l.call(o,!1),this.host&&(b(this.host,f.close),b(this.host,f.toggle)))},this.handleCardClose=()=>{this.cardCloseTooltipBehavior.hideTooltip(),this.closeDialog(),this.host&&b(this.host,f.close)}}initCardCloseButton(){this.cardCloseButtonProps=t(this.host),this.cardCloseTooltipBehavior.componentWillLoad({label:this.cardCloseButtonProps.label,align:this.cardCloseButtonProps.tooltipAlign})}syncCardCloseTooltipListeners(){this.cardCloseButtonRef.el&&this.cardCloseTooltipBehavior.syncListeners(void 0,this.cardCloseButtonRef.el,!0)}teardownDialog(){this.closeDialog(),d(this),this.cardCloseTooltipBehavior.destroy()}applyLabel(i){n.apply(i,(i=>this.setRenderProp("label",i)),this.isRequired("label"))}applyLevel(i){l.apply(i,(i=>this.setRenderProp("level",i)))}applyOn(i){h.apply(i,(i=>this.setRenderProp("on",i)))}applyVariant(i){e.apply(i,(i=>this.setRenderProp("variant",i)))}applyWidth(i){a.apply(i,(i=>this.setRenderProp("width",i)))}showDialog(i){var s,t,o,l;const h=this.dialogRef.el;(null==h?void 0:h.open)||(this.setState("modal",i),i?(null===(s=null==h?void 0:h.showModal)||void 0===s||s.call(h),h&&p(this)):null===(t=null==h?void 0:h.show)||void 0===t||t.call(h),null===(l=(o=this.getRenderProp("on")).onToggle)||void 0===l||l.call(o,!0),this.host&&b(this.host,f.toggle))}closeDialog(){var i,s;null===(s=null===(i=this.dialogRef.el)||void 0===i?void 0:i.close)||void 0===s||s.call(i)}buildCardProps(){return{ariaDescriptionId:this.getState("ariaDescriptionId"),closeButtonProps:this.cardCloseButtonProps,handleClose:this.handleCardClose,hasCloser:!0,headingId:this.getState("headingId"),label:this.getRenderProp("label"),level:this.getRenderProp("level"),refCloseButton:this.cardCloseButtonRef,refTooltip:this.cardCloseTooltipBehavior.setTooltipElementRef}}renderDialogFC(){const s=this.getRenderProp("variant"),t="card"===s;return i(m,{blockClass:v(s),handleCancel:this.handleCancel,handleClose:this.handleClose,label:r(this.getRenderProp("label")),labelledBy:t?this.getState("headingId"):void 0,modal:this.getState("modal"),refDialog:this.dialogRef,width:this.getRenderProp("width")},t?i(o,Object.assign({},this.buildCardProps()),this.renderSlot()):this.renderSlot())}};export{C as B}
4
+ import{h as i}from"@stencil/core/internal/client";import{B as s}from"./base-web-component.js";import{r as t,C as o}from"./component8.js";import"./bem-registry.js";import{l}from"./level.js";import{d as h,w as a}from"./width.js";import{C as e,t as r}from"./props-from-config.js";import{l as n}from"./label-lang-segment.js";import{u as d,l as p,D as m,d as v}from"./scroll-lock.js";import{T as c}from"./behavior.js";import{c as u}from"./element-interaction.js";import{d as b,K as f}from"./events.js";import{h as g}from"./tooltip-open-tracking.js";const C={required:[n],optional:[h,l,e,a]},j=class extends s{constructor(){super(...arguments),this.dialogRef=u(),this.cardCloseButtonRef=u(),this.cardCloseTooltipBehavior=new c(this.stateAccess),this.propsConfig=C,this.handleCancel=i=>{var s,t;g(i),i.defaultPrevented||(null===(t=(s=this.getRenderProp("on")).onCancel)||void 0===t||t.call(s,i),i.defaultPrevented||this.host&&!b(this.host,f.cancel)&&i.preventDefault())},this.handleClose=i=>{var s,t,o,l;i.target===this.dialogRef.el&&(d(this),null===(t=(s=this.getRenderProp("on")).onClose)||void 0===t||t.call(s),null===(l=(o=this.getRenderProp("on")).onToggle)||void 0===l||l.call(o,!1),this.host&&(b(this.host,f.close),b(this.host,f.toggle)))},this.handleCardClose=()=>{this.cardCloseTooltipBehavior.hideTooltip(),this.closeDialog(),this.host&&b(this.host,f.close)}}initCardCloseButton(){this.cardCloseButtonProps=t(this.host),this.cardCloseTooltipBehavior.componentWillLoad({label:this.cardCloseButtonProps.label,align:this.cardCloseButtonProps.tooltipAlign})}syncCardCloseTooltipListeners(){this.cardCloseButtonRef.el&&this.cardCloseTooltipBehavior.syncListeners(void 0,this.cardCloseButtonRef.el,!0)}teardownDialog(){this.closeDialog(),d(this),this.cardCloseTooltipBehavior.destroy()}applyLabel(i){n.apply(i,(i=>this.setRenderProp("label",i)),this.isRequired("label"))}applyLevel(i){l.apply(i,(i=>this.setRenderProp("level",i)))}applyOn(i){h.apply(i,(i=>this.setRenderProp("on",i)))}applyVariant(i){e.apply(i,(i=>this.setRenderProp("variant",i)))}applyWidth(i){a.apply(i,(i=>this.setRenderProp("width",i)))}showDialog(i){var s,t,o,l;const h=this.dialogRef.el;(null==h?void 0:h.open)||(this.setState("modal",i),i?(null===(s=null==h?void 0:h.showModal)||void 0===s||s.call(h),h&&p(this)):null===(t=null==h?void 0:h.show)||void 0===t||t.call(h),null===(l=(o=this.getRenderProp("on")).onToggle)||void 0===l||l.call(o,!0),this.host&&b(this.host,f.toggle))}closeDialog(){var i,s;null===(s=null===(i=this.dialogRef.el)||void 0===i?void 0:i.close)||void 0===s||s.call(i)}buildCardProps(){return{ariaDescriptionId:this.getState("ariaDescriptionId"),closeButtonProps:this.cardCloseButtonProps,handleClose:this.handleCardClose,hasCloser:!0,headingId:this.getState("headingId"),label:this.getRenderProp("label"),level:this.getRenderProp("level"),refCloseButton:this.cardCloseButtonRef,refTooltip:this.cardCloseTooltipBehavior.setTooltipElementRef}}renderDialogFC(){const s=this.getRenderProp("variant"),t="card"===s;return i(m,{blockClass:v(s),handleCancel:this.handleCancel,handleClose:this.handleClose,label:r(this.getRenderProp("label")),labelledBy:t?this.getState("headingId"):void 0,modal:this.getState("modal"),refDialog:this.dialogRef,width:this.getRenderProp("width")},t?i(o,Object.assign({},this.buildCardProps()),this.renderSlot()):this.renderSlot())}};export{j as B}