@public-ui/components 4.6.0-rc.1 → 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 (664) 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 +1 -1
  7. package/dist/cjs/{Heading-DpKpW9_U.js → Heading-CmnijhLd.js} +1 -1
  8. package/dist/cjs/{api-DSnFV5pX.js → api-Bg7hdIrJ.js} +20 -20
  9. package/dist/cjs/{app-globals-DWk29tH4.js → app-globals-BwYPSMbG.js} +3 -3
  10. package/dist/cjs/{base-Cdk10fDz.js → base-BVhV5HmV.js} +10 -10
  11. package/dist/cjs/{base-B1L6tTOu.js → base-CQB0r-ZQ.js} +11 -11
  12. package/dist/cjs/{base-uTtcb6OV.js → base-JFyPasp9.js} +27 -24
  13. package/dist/cjs/{base-DB-5MCfF.js → base-ob1X79UM.js} +12 -12
  14. package/dist/cjs/{base-web-component-CyF5QpIH.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-BdHm5Oq9.js → base-web-component-dI9FmFIm.js} +10 -10
  17. package/dist/cjs/{behavior-BnUihLzw.js → behavior-B5wr2A8R.js} +5 -5
  18. package/dist/cjs/{behavior-D5F_9gEC.js → behavior-CUmF8rJf.js} +5 -5
  19. package/dist/cjs/{behavior-C3w_8ifK.js → behavior-DujaVCwV.js} +5 -5
  20. package/dist/cjs/{bem-registry-ZJZujhCi.js → bem-registry-B6QoNC9E.js} +1 -1
  21. package/dist/cjs/{block-bem-CMvCkLkl.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-_p4OHWcc.js → component-1J4G5HmZ.js} +14 -14
  26. package/dist/cjs/{component-C46QQbMS.js → component-BexD3069.js} +11 -11
  27. package/dist/cjs/{component-CrW05zUq.js → component-BilLJFfC.js} +5 -5
  28. package/dist/cjs/{component-DfChjUi8.js → component-Bza8hlo-.js} +10 -10
  29. package/dist/cjs/{component-BwrQID5A.js → component-Cbbx7Z6c.js} +4 -4
  30. package/dist/cjs/{component-eYoUHQ64.js → component-CjXcCX2V.js} +2 -2
  31. package/dist/cjs/{component-N-3XFtFS.js → component-Cqp00Tb9.js} +8 -8
  32. package/dist/cjs/{component-BXz1XtoE.js → component-DFhuXUqv.js} +15 -15
  33. package/dist/cjs/{component-B2l8N5t_.js → component-DGVc4bOy.js} +4 -4
  34. package/dist/cjs/{component-BE_gS80r.js → component-DkV9oPCL.js} +2 -2
  35. package/dist/cjs/{component-CWEYNtAH.js → component-Doln6Ltn.js} +5 -5
  36. package/dist/cjs/{component-DsWMXDya.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-Bxq7b-n1.js → dev.utils-Bx4sgPsr.js} +2 -2
  40. package/dist/cjs/{devtools-BLvPSoCH.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-D9t3USqP.js → field-control-B95uzQnW.js} +8 -8
  43. package/dist/cjs/{group-CFBPF3hG.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-CNhjOFBg.js → index-Ccvyz7Rq.js} +23 -12
  50. package/dist/cjs/index.cjs.js +4 -4
  51. package/dist/cjs/{input-C3F73RZW.js → input-BKXEykG_.js} +5 -5
  52. package/dist/cjs/{input-container-B5-_NcRy.js → input-container-CWb_kRbs.js} +8 -8
  53. package/dist/cjs/{item-CfCrfeQL.js → item-C4Boh5Cz.js} +5 -5
  54. package/dist/cjs/{item-dlea1NHr.js → item-DgNTEUz3.js} +30 -15
  55. package/dist/cjs/{item-DvddzW3M.js → item-vDMQvV0t.js} +6 -6
  56. package/dist/cjs/{item-nAB1wPvv.js → item-wr5KfPYM.js} +12 -12
  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 -30
  60. package/dist/cjs/kol-avatar.cjs.entry.js +17 -16
  61. package/dist/cjs/kol-badge.cjs.entry.js +30 -29
  62. package/dist/cjs/kol-breadcrumb.cjs.entry.js +32 -31
  63. package/dist/cjs/kol-button-link.cjs.entry.js +29 -28
  64. package/dist/cjs/kol-button.cjs.entry.js +29 -28
  65. package/dist/cjs/kol-card.cjs.entry.js +34 -33
  66. package/dist/cjs/kol-combobox.cjs.entry.js +46 -45
  67. package/dist/cjs/kol-details.cjs.entry.js +21 -20
  68. package/dist/cjs/kol-dialog.cjs.entry.js +37 -36
  69. package/dist/cjs/kol-drawer.cjs.entry.js +36 -35
  70. package/dist/cjs/kol-form.cjs.entry.js +30 -29
  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 -40
  75. package/dist/cjs/kol-input-color.cjs.entry.js +43 -42
  76. package/dist/cjs/kol-input-date.cjs.entry.js +45 -44
  77. package/dist/cjs/kol-input-email.cjs.entry.js +48 -47
  78. package/dist/cjs/kol-input-file.cjs.entry.js +42 -41
  79. package/dist/cjs/kol-input-number.cjs.entry.js +47 -46
  80. package/dist/cjs/kol-input-password.cjs.entry.js +46 -45
  81. package/dist/cjs/kol-input-radio.cjs.entry.js +41 -40
  82. package/dist/cjs/kol-input-range.cjs.entry.js +43 -42
  83. package/dist/cjs/kol-input-text.cjs.entry.js +48 -47
  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 -36
  89. package/dist/cjs/kol-nav.cjs.entry.js +38 -37
  90. package/dist/cjs/kol-pagination.cjs.entry.js +45 -44
  91. package/dist/cjs/kol-popover-button.cjs.entry.js +30 -29
  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 -40
  95. package/dist/cjs/kol-single-select.cjs.entry.js +53 -47
  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 -32
  99. package/dist/cjs/kol-table-stateful.cjs.entry.js +57 -56
  100. package/dist/cjs/kol-table-stateless.cjs.entry.js +45 -44
  101. package/dist/cjs/kol-tabs.cjs.entry.js +36 -38
  102. package/dist/cjs/kol-textarea.cjs.entry.js +48 -45
  103. package/dist/cjs/kol-toast-container.cjs.entry.js +25 -24
  104. package/dist/cjs/kol-toolbar.cjs.entry.js +35 -34
  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 -26
  109. package/dist/cjs/kolibri.cjs.js +4 -4
  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 +3 -3
  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-ClWlRbhz.js → resolve-props-B_ytLWBO.js} +7 -7
  128. package/dist/cjs/{resolve-props-BUSerQcI.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-CSW_wA0P.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-CIGYxDps.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-Cy5RcTS_.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 -1
  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 +2 -2
  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 +2 -2
  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/component.js +2 -3
  244. package/dist/collection/internal/functional-components/pagination/item.js +15 -0
  245. package/dist/collection/internal/functional-components/progress/component.js +1 -1
  246. package/dist/collection/internal/functional-components/single-select/component.js +2 -1
  247. package/dist/collection/internal/functional-components/tabs/component.js +7 -1
  248. package/dist/collection/internal/props/helpers/validators.js +1 -0
  249. package/dist/collection/internal/props/index.js +1 -0
  250. package/dist/collection/internal/props/label-decorative.js +10 -0
  251. package/dist/collection/locales/de.js +1 -0
  252. package/dist/collection/locales/en.js +1 -0
  253. package/dist/collection/schema/i18n-keys.js +29 -28
  254. package/dist/components/base4.js +1 -1
  255. package/dist/components/bem-registry.js +1 -1
  256. package/dist/components/component3.js +1 -1
  257. package/dist/components/component6.js +1 -1
  258. package/dist/components/group.js +1 -1
  259. package/dist/components/i18n2.js +1 -1
  260. package/dist/components/item4.js +1 -1
  261. package/dist/components/kol-abbr.js +1 -1
  262. package/dist/components/kol-accordion.js +1 -1
  263. package/dist/components/kol-alert.js +1 -1
  264. package/dist/components/kol-avatar.js +1 -1
  265. package/dist/components/kol-badge.js +1 -1
  266. package/dist/components/kol-breadcrumb.js +1 -1
  267. package/dist/components/kol-button-link.js +1 -1
  268. package/dist/components/kol-button.js +1 -1
  269. package/dist/components/kol-card.js +1 -1
  270. package/dist/components/kol-combobox.js +1 -1
  271. package/dist/components/kol-details.js +1 -1
  272. package/dist/components/kol-dialog.js +1 -1
  273. package/dist/components/kol-drawer.js +1 -1
  274. package/dist/components/kol-form.js +1 -1
  275. package/dist/components/kol-heading.js +1 -1
  276. package/dist/components/kol-icon.js +1 -1
  277. package/dist/components/kol-image.js +1 -1
  278. package/dist/components/kol-input-checkbox.js +1 -1
  279. package/dist/components/kol-input-color.js +1 -1
  280. package/dist/components/kol-input-date.js +1 -1
  281. package/dist/components/kol-input-email.js +1 -1
  282. package/dist/components/kol-input-file.js +1 -1
  283. package/dist/components/kol-input-number.js +1 -1
  284. package/dist/components/kol-input-password.js +1 -1
  285. package/dist/components/kol-input-radio.js +1 -1
  286. package/dist/components/kol-input-range.js +1 -1
  287. package/dist/components/kol-input-text.js +1 -1
  288. package/dist/components/kol-kolibri.js +1 -1
  289. package/dist/components/kol-link-button.js +1 -1
  290. package/dist/components/kol-link.js +1 -1
  291. package/dist/components/kol-meter.js +1 -1
  292. package/dist/components/kol-modal.js +1 -1
  293. package/dist/components/kol-nav.js +1 -1
  294. package/dist/components/kol-pagination.js +1 -1
  295. package/dist/components/kol-popover-button.js +1 -1
  296. package/dist/components/kol-progress.js +1 -1
  297. package/dist/components/kol-quote.js +1 -1
  298. package/dist/components/kol-select.js +1 -1
  299. package/dist/components/kol-single-select.js +1 -1
  300. package/dist/components/kol-skip-nav.js +1 -1
  301. package/dist/components/kol-spin.js +1 -1
  302. package/dist/components/kol-split-button.js +1 -1
  303. package/dist/components/kol-table-stateful.js +1 -1
  304. package/dist/components/kol-table-stateless.js +1 -1
  305. package/dist/components/kol-tabs.js +1 -1
  306. package/dist/components/kol-textarea.js +1 -1
  307. package/dist/components/kol-toast-container.js +1 -1
  308. package/dist/components/kol-toolbar.js +1 -1
  309. package/dist/components/kol-tooltip-wc.js +1 -1
  310. package/dist/components/kol-tree-item.js +1 -1
  311. package/dist/components/kol-tree.js +1 -1
  312. package/dist/components/kol-version.js +1 -1
  313. package/dist/components/label-with-expert-slot.js +1 -1
  314. package/dist/components/label.js +1 -1
  315. package/dist/components/validators.js +1 -1
  316. package/dist/esm/{Heading-wrhAEuG3.js → Heading-C_CwXDMp.js} +1 -1
  317. package/dist/esm/{api-7B_iI89k.js → api-DGiFM9p0.js} +20 -20
  318. package/dist/esm/{app-globals-tRqgHq3P.js → app-globals-sZHZyXjD.js} +3 -3
  319. package/dist/esm/{base-C32RNC8q.js → base-B4sGK9cX.js} +12 -12
  320. package/dist/esm/{base-BDYPTFjC.js → base-CWrvN3Gt.js} +10 -10
  321. package/dist/esm/{base-BVztEKgJ.js → base-DTKJ1Z06.js} +27 -24
  322. package/dist/esm/{base-D_-9Lzkd.js → base-P1TaQ7Ba.js} +11 -11
  323. package/dist/esm/{base-web-component-BUu68byc.js → base-web-component-Bq_B9edx.js} +15 -15
  324. package/dist/esm/{base-web-component-XgI4wUyN.js → base-web-component-CC_gpyDb.js} +1 -1
  325. package/dist/esm/{base-web-component-DdY5aIHN.js → base-web-component-CKgIOZqi.js} +10 -10
  326. package/dist/esm/{behavior-fGxZN96S.js → behavior-Bb7JYoUn.js} +5 -5
  327. package/dist/esm/{behavior-DsTiTiJC.js → behavior-CFG1f4KQ.js} +5 -5
  328. package/dist/esm/{behavior-DN-22cB1.js → behavior-CkPQGfgo.js} +5 -5
  329. package/dist/esm/{bem-registry-Crcs_65u.js → bem-registry-DQUGxdIS.js} +1 -1
  330. package/dist/esm/{block-bem-DehcAQZQ.js → block-bem-BGIVcYJu.js} +1 -1
  331. package/dist/esm/{bootstrap-DHXUvPBY.js → bootstrap-tgQ2nQQI.js} +2 -2
  332. package/dist/esm/{color-eAL9I7Wq.js → color-D1gM-F2l.js} +3 -3
  333. package/dist/esm/{common-OzsC_6kt.js → common-BdSzSIXg.js} +31 -30
  334. package/dist/esm/{component-4xXBb7K-.js → component-5Uu-ahLC.js} +4 -4
  335. package/dist/esm/{component-BJ4gGOph.js → component-B05zRrM0.js} +2 -2
  336. package/dist/esm/{component-Cxdi6on4.js → component-B16Fbp3W.js} +11 -11
  337. package/dist/esm/{component-0IO2wu9i.js → component-BI8jDgBz.js} +10 -10
  338. package/dist/esm/{component-DHNcVTi0.js → component-Bc2pdOk1.js} +8 -8
  339. package/dist/esm/{component-CPq3i3I_.js → component-C79oAu7a.js} +5 -5
  340. package/dist/esm/{component-CTOYF3q6.js → component-CldKbBUh.js} +7 -7
  341. package/dist/esm/{component-et0GdBuf.js → component-Clz6b6ho.js} +2 -2
  342. package/dist/esm/{component-DWywPG_a.js → component-Ct11K0Gv.js} +14 -14
  343. package/dist/esm/{component-EK9BJR6z.js → component-DAQzDMY8.js} +15 -15
  344. package/dist/esm/{component-ChuoBFI-.js → component-W1KZI4h4.js} +4 -4
  345. package/dist/esm/{component-NEw1tN3M.js → component-oUQcgxDj.js} +5 -5
  346. package/dist/esm/{contrast-D78VGPFR.js → contrast-BNoQruBh.js} +2 -2
  347. package/dist/esm/{controller-Cb-96wE-.js → controller-CZcQ57AP.js} +1 -1
  348. package/dist/esm/{dev.utils-Bg7nZBMk.js → dev.utils-DDWOHUcg.js} +2 -2
  349. package/dist/esm/{devtools-nUT3JVTV.js → devtools-B0kEE_za.js} +3 -3
  350. package/dist/esm/{disabled-Cqhc40CU.js → disabled-BZXlWAgK.js} +1 -1
  351. package/dist/esm/{field-control-D2tOd14v.js → field-control-DsQHa0v9.js} +8 -8
  352. package/dist/esm/{group-CxWsx0aJ.js → group-DUVsgWxS.js} +7 -7
  353. package/dist/esm/{has-closer-B9NQY7BK.js → has-closer-DUB0QcS9.js} +1 -1
  354. package/dist/esm/{href-JqLbNBsW.js → href-CxokGOJ2.js} +1 -1
  355. package/dist/esm/{i18n-Dl6Jjofb.js → i18n-4J6U3ZDc.js} +2 -0
  356. package/dist/esm/{i18n-DtLKn3Xt.js → i18n-ePBcLlCr.js} +2 -2
  357. package/dist/esm/{id-CIYvVaNr.js → id-BI0ZuK17.js} +1 -1
  358. package/dist/esm/{index-B_bJG8-2.js → index-Dulj0jro.js} +23 -12
  359. package/dist/esm/index.js +6 -6
  360. package/dist/esm/{input-Ia9Z3AP7.js → input-C0Li7DsE.js} +5 -5
  361. package/dist/esm/{input-container-Y_8n5Sen.js → input-container-DmtMTcjB.js} +8 -8
  362. package/dist/esm/{item-BjriQHQl.js → item-8RKFpmbd.js} +6 -6
  363. package/dist/esm/{item-BZtI88zF.js → item-CnJMuEyl.js} +5 -5
  364. package/dist/esm/{item-BKVeXzUO.js → item-CxVe5INa.js} +30 -15
  365. package/dist/esm/{item-BuqBMSYI.js → item-DHZGDrAn.js} +12 -12
  366. package/dist/esm/kol-abbr.entry.js +13 -12
  367. package/dist/esm/kol-accordion.entry.js +21 -20
  368. package/dist/esm/kol-alert.entry.js +32 -30
  369. package/dist/esm/kol-avatar.entry.js +17 -16
  370. package/dist/esm/kol-badge.entry.js +30 -29
  371. package/dist/esm/kol-breadcrumb.entry.js +32 -31
  372. package/dist/esm/kol-button-link.entry.js +29 -28
  373. package/dist/esm/kol-button.entry.js +29 -28
  374. package/dist/esm/kol-card.entry.js +34 -33
  375. package/dist/esm/kol-combobox.entry.js +46 -45
  376. package/dist/esm/kol-details.entry.js +21 -20
  377. package/dist/esm/kol-dialog.entry.js +37 -36
  378. package/dist/esm/kol-drawer.entry.js +36 -35
  379. package/dist/esm/kol-form.entry.js +30 -29
  380. package/dist/esm/kol-heading.entry.js +15 -14
  381. package/dist/esm/kol-icon.entry.js +20 -16
  382. package/dist/esm/kol-image.entry.js +10 -9
  383. package/dist/esm/kol-input-checkbox.entry.js +41 -40
  384. package/dist/esm/kol-input-color.entry.js +43 -42
  385. package/dist/esm/kol-input-date.entry.js +45 -44
  386. package/dist/esm/kol-input-email.entry.js +48 -47
  387. package/dist/esm/kol-input-file.entry.js +42 -41
  388. package/dist/esm/kol-input-number.entry.js +47 -46
  389. package/dist/esm/kol-input-password.entry.js +46 -45
  390. package/dist/esm/kol-input-radio.entry.js +41 -40
  391. package/dist/esm/kol-input-range.entry.js +43 -42
  392. package/dist/esm/kol-input-text.entry.js +48 -47
  393. package/dist/esm/kol-kolibri.entry.js +13 -12
  394. package/dist/esm/kol-link-button.entry.js +30 -29
  395. package/dist/esm/kol-link.entry.js +30 -29
  396. package/dist/esm/kol-meter.entry.js +20 -22
  397. package/dist/esm/kol-modal.entry.js +37 -36
  398. package/dist/esm/kol-nav.entry.js +38 -37
  399. package/dist/esm/kol-pagination.entry.js +45 -44
  400. package/dist/esm/kol-popover-button.entry.js +30 -29
  401. package/dist/esm/kol-progress.entry.js +21 -17
  402. package/dist/esm/kol-quote.entry.js +12 -11
  403. package/dist/esm/kol-select.entry.js +41 -40
  404. package/dist/esm/kol-single-select.entry.js +53 -47
  405. package/dist/esm/kol-skip-nav.entry.js +32 -31
  406. package/dist/esm/kol-spin.entry.js +17 -16
  407. package/dist/esm/kol-split-button.entry.js +33 -32
  408. package/dist/esm/kol-table-stateful.entry.js +57 -56
  409. package/dist/esm/kol-table-stateless.entry.js +45 -44
  410. package/dist/esm/kol-tabs.entry.js +36 -38
  411. package/dist/esm/kol-textarea.entry.js +48 -45
  412. package/dist/esm/kol-toast-container.entry.js +25 -24
  413. package/dist/esm/kol-toolbar.entry.js +35 -34
  414. package/dist/esm/kol-tooltip-wc.entry.js +15 -14
  415. package/dist/esm/kol-tree-item.entry.js +28 -27
  416. package/dist/esm/kol-tree.entry.js +12 -11
  417. package/dist/esm/kol-version.entry.js +27 -26
  418. package/dist/esm/kolibri.js +5 -5
  419. package/dist/esm/{label-BRosRgdX.js → label-B-Dr7VaP.js} +3 -3
  420. package/dist/esm/{label-hints-Jn18RUT-.js → label-hints-CLMiVvfk.js} +2 -2
  421. package/dist/esm/{label-lang-segment-2_GnxjFp.js → label-lang-segment-iVD9hoM3.js} +2 -2
  422. package/dist/esm/{label-with-expert-slot-CicRes-W.js → label-with-expert-slot-BbZ9nx0l.js} +3 -3
  423. package/dist/esm/{level-CA1s1_Mf.js → level-DsQ_pcyD.js} +1 -1
  424. package/dist/esm/{link-target-FX94oqMo.js → link-target-D7lYILOV.js} +1 -1
  425. package/dist/esm/{links-DwucTqcR.js → links-IkK4zoXw.js} +2 -2
  426. package/dist/esm/loader.js +4 -4
  427. package/dist/esm/{multiple-DqrZxybx.js → multiple--ay1C1n3.js} +1 -1
  428. package/dist/esm/{number-value-B-SJ1dRo.js → number-value-Dl9-2O4r.js} +1 -1
  429. package/dist/esm/{open-DRRv1KFK.js → open-CNHJhHsy.js} +1 -1
  430. package/dist/esm/{options-DCaUcfAu.js → options-DwO32GBF.js} +2 -2
  431. package/dist/esm/{orientation-XNOCaPwy.js → orientation-ChJ0S24M.js} +1 -1
  432. package/dist/esm/{placeholder-BeLIzdJv.js → placeholder-UxmBJ4Vl.js} +1 -1
  433. package/dist/esm/{props-from-config-Ci0dILpz.js → props-from-config-ytxYrJUY.js} +1 -1
  434. package/dist/esm/{read-only-Bby9r6ZX.js → read-only-DytZ5HZJ.js} +1 -1
  435. package/dist/esm/{required-hoaT7UmZ.js → required-BriHhuO4.js} +1 -1
  436. package/dist/esm/{resolve-props-BkF1VBBB.js → resolve-props-02J6OCRf.js} +8 -8
  437. package/dist/esm/{resolve-props-CHPFh7Tn.js → resolve-props-Bj6IaybL.js} +7 -7
  438. package/dist/esm/{rows-B0x8CR7K.js → rows-I1jrTjzU.js} +1 -1
  439. package/dist/esm/{scroll-lock-D7Zo0QLt.js → scroll-lock-B6hVv8A8.js} +2 -2
  440. package/dist/esm/{smart-button-CS_ZriPt.js → smart-button-DM5g48-g.js} +2 -2
  441. package/dist/esm/{spell-check-DzgftyqL.js → spell-check-BWCnJG5v.js} +1 -1
  442. package/dist/esm/{src-DaGhmCL1.js → src-ziOwSglN.js} +1 -1
  443. package/dist/esm/{step-Bdj89bGO.js → step-BcyhvRtu.js} +1 -1
  444. package/dist/esm/{suggestions-GEr-cvbz.js → suggestions-DaB3FVaz.js} +3 -3
  445. package/dist/esm/{suggestions-Dy1X-Pc3.js → suggestions-LO267l8F.js} +2 -2
  446. package/dist/esm/test-component.entry.js +4 -3
  447. package/dist/esm/{toggle-handler-Bqoo8tCo.js → toggle-handler-3qaN2kmt.js} +10 -10
  448. package/dist/esm/{unique-nav-labels-h2KOu5Qy.js → unique-nav-labels-CxFUYSVY.js} +2 -2
  449. package/dist/esm/{unit-BUhhJbhT.js → unit-1ix-K9SD.js} +1 -1
  450. package/dist/esm/{validators-BVM40IEr.js → validators-CTjxOidB.js} +3 -2
  451. package/dist/esm/{value-string-e9pwLcS-.js → value-string-CxDz7dhD.js} +1 -1
  452. package/dist/esm/{width-CgYY17tL.js → width-C1_yZHyL.js} +1 -1
  453. package/dist/kolibri/{Heading-wrhAEuG3.js → Heading-C_CwXDMp.js} +1 -1
  454. package/dist/kolibri/api-DGiFM9p0.js +4 -0
  455. package/dist/kolibri/app-globals-sZHZyXjD.js +4 -0
  456. package/dist/kolibri/{base-C32RNC8q.js → base-B4sGK9cX.js} +1 -1
  457. package/dist/kolibri/{base-BDYPTFjC.js → base-CWrvN3Gt.js} +1 -1
  458. package/dist/kolibri/base-DTKJ1Z06.js +4 -0
  459. package/dist/kolibri/{base-D_-9Lzkd.js → base-P1TaQ7Ba.js} +1 -1
  460. package/dist/kolibri/{base-web-component-BUu68byc.js → base-web-component-Bq_B9edx.js} +1 -1
  461. package/dist/kolibri/{base-web-component-XgI4wUyN.js → base-web-component-CC_gpyDb.js} +1 -1
  462. package/dist/kolibri/{base-web-component-DdY5aIHN.js → base-web-component-CKgIOZqi.js} +1 -1
  463. package/dist/kolibri/{behavior-fGxZN96S.js → behavior-Bb7JYoUn.js} +1 -1
  464. package/dist/kolibri/{behavior-DsTiTiJC.js → behavior-CFG1f4KQ.js} +1 -1
  465. package/dist/kolibri/{behavior-DN-22cB1.js → behavior-CkPQGfgo.js} +1 -1
  466. package/dist/kolibri/{bem-registry-Crcs_65u.js → bem-registry-DQUGxdIS.js} +1 -1
  467. package/dist/kolibri/block-bem-BGIVcYJu.js +4 -0
  468. package/dist/kolibri/bootstrap-tgQ2nQQI.js +4 -0
  469. package/dist/kolibri/{color-eAL9I7Wq.js → color-D1gM-F2l.js} +1 -1
  470. package/dist/kolibri/common-BdSzSIXg.js +4 -0
  471. package/dist/kolibri/component-5Uu-ahLC.js +4 -0
  472. package/dist/kolibri/component-B05zRrM0.js +4 -0
  473. package/dist/kolibri/component-B16Fbp3W.js +4 -0
  474. package/dist/kolibri/component-BI8jDgBz.js +4 -0
  475. package/dist/kolibri/{component-DHNcVTi0.js → component-Bc2pdOk1.js} +1 -1
  476. package/dist/kolibri/component-C79oAu7a.js +4 -0
  477. package/dist/kolibri/component-CldKbBUh.js +4 -0
  478. package/dist/kolibri/component-Clz6b6ho.js +4 -0
  479. package/dist/kolibri/component-Ct11K0Gv.js +4 -0
  480. package/dist/kolibri/component-DAQzDMY8.js +4 -0
  481. package/dist/kolibri/component-W1KZI4h4.js +4 -0
  482. package/dist/kolibri/{component-NEw1tN3M.js → component-oUQcgxDj.js} +1 -1
  483. package/dist/kolibri/contrast-BNoQruBh.js +4 -0
  484. package/dist/kolibri/{controller-Cb-96wE-.js → controller-CZcQ57AP.js} +1 -1
  485. package/dist/kolibri/dev.utils-DDWOHUcg.js +4 -0
  486. package/dist/kolibri/{devtools-nUT3JVTV.js → devtools-B0kEE_za.js} +1 -1
  487. package/dist/kolibri/disabled-BZXlWAgK.js +4 -0
  488. package/dist/kolibri/field-control-DsQHa0v9.js +4 -0
  489. package/dist/kolibri/group-DUVsgWxS.js +4 -0
  490. package/dist/kolibri/has-closer-DUB0QcS9.js +4 -0
  491. package/dist/kolibri/href-CxokGOJ2.js +4 -0
  492. package/dist/kolibri/i18n-4J6U3ZDc.js +4 -0
  493. package/dist/kolibri/i18n-ePBcLlCr.js +4 -0
  494. package/dist/kolibri/id-BI0ZuK17.js +4 -0
  495. package/dist/kolibri/index-Dulj0jro.js +6 -0
  496. package/dist/kolibri/index.esm.js +1 -1
  497. package/dist/kolibri/input-C0Li7DsE.js +4 -0
  498. package/dist/kolibri/{input-container-Y_8n5Sen.js → input-container-DmtMTcjB.js} +1 -1
  499. package/dist/kolibri/item-8RKFpmbd.js +4 -0
  500. package/dist/kolibri/item-CnJMuEyl.js +4 -0
  501. package/dist/kolibri/item-CxVe5INa.js +4 -0
  502. package/dist/kolibri/item-DHZGDrAn.js +4 -0
  503. package/dist/kolibri/kol-abbr.entry.js +1 -1
  504. package/dist/kolibri/kol-accordion.entry.js +1 -1
  505. package/dist/kolibri/kol-alert.entry.js +1 -1
  506. package/dist/kolibri/kol-avatar.entry.js +1 -1
  507. package/dist/kolibri/kol-badge.entry.js +1 -1
  508. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  509. package/dist/kolibri/kol-button-link.entry.js +1 -1
  510. package/dist/kolibri/kol-button.entry.js +1 -1
  511. package/dist/kolibri/kol-card.entry.js +1 -1
  512. package/dist/kolibri/kol-combobox.entry.js +1 -1
  513. package/dist/kolibri/kol-details.entry.js +1 -1
  514. package/dist/kolibri/kol-dialog.entry.js +1 -1
  515. package/dist/kolibri/kol-drawer.entry.js +1 -1
  516. package/dist/kolibri/kol-form.entry.js +1 -1
  517. package/dist/kolibri/kol-heading.entry.js +1 -1
  518. package/dist/kolibri/kol-icon.entry.js +1 -1
  519. package/dist/kolibri/kol-image.entry.js +1 -1
  520. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  521. package/dist/kolibri/kol-input-color.entry.js +1 -1
  522. package/dist/kolibri/kol-input-date.entry.js +1 -1
  523. package/dist/kolibri/kol-input-email.entry.js +1 -1
  524. package/dist/kolibri/kol-input-file.entry.js +1 -1
  525. package/dist/kolibri/kol-input-number.entry.js +1 -1
  526. package/dist/kolibri/kol-input-password.entry.js +1 -1
  527. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  528. package/dist/kolibri/kol-input-range.entry.js +1 -1
  529. package/dist/kolibri/kol-input-text.entry.js +1 -1
  530. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  531. package/dist/kolibri/kol-link-button.entry.js +1 -1
  532. package/dist/kolibri/kol-link.entry.js +1 -1
  533. package/dist/kolibri/kol-meter.entry.js +1 -1
  534. package/dist/kolibri/kol-modal.entry.js +1 -1
  535. package/dist/kolibri/kol-nav.entry.js +1 -1
  536. package/dist/kolibri/kol-pagination.entry.js +1 -1
  537. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  538. package/dist/kolibri/kol-progress.entry.js +1 -1
  539. package/dist/kolibri/kol-quote.entry.js +1 -1
  540. package/dist/kolibri/kol-select.entry.js +1 -1
  541. package/dist/kolibri/kol-single-select.entry.js +1 -1
  542. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  543. package/dist/kolibri/kol-spin.entry.js +1 -1
  544. package/dist/kolibri/kol-split-button.entry.js +1 -1
  545. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  546. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  547. package/dist/kolibri/kol-tabs.entry.js +1 -1
  548. package/dist/kolibri/kol-textarea.entry.js +1 -1
  549. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  550. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  551. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  552. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  553. package/dist/kolibri/kol-tree.entry.js +1 -1
  554. package/dist/kolibri/kol-version.entry.js +1 -1
  555. package/dist/kolibri/kolibri.esm.js +1 -1
  556. package/dist/kolibri/label-B-Dr7VaP.js +4 -0
  557. package/dist/kolibri/label-hints-CLMiVvfk.js +4 -0
  558. package/dist/kolibri/label-lang-segment-iVD9hoM3.js +4 -0
  559. package/dist/kolibri/label-with-expert-slot-BbZ9nx0l.js +4 -0
  560. package/dist/kolibri/level-DsQ_pcyD.js +4 -0
  561. package/dist/kolibri/link-target-D7lYILOV.js +4 -0
  562. package/dist/kolibri/links-IkK4zoXw.js +4 -0
  563. package/dist/kolibri/multiple--ay1C1n3.js +4 -0
  564. package/dist/kolibri/number-value-Dl9-2O4r.js +4 -0
  565. package/dist/kolibri/open-CNHJhHsy.js +4 -0
  566. package/dist/kolibri/options-DwO32GBF.js +4 -0
  567. package/dist/kolibri/orientation-ChJ0S24M.js +4 -0
  568. package/dist/kolibri/placeholder-UxmBJ4Vl.js +4 -0
  569. package/dist/kolibri/{props-from-config-Ci0dILpz.js → props-from-config-ytxYrJUY.js} +1 -1
  570. package/dist/kolibri/read-only-DytZ5HZJ.js +4 -0
  571. package/dist/kolibri/required-BriHhuO4.js +4 -0
  572. package/dist/kolibri/resolve-props-02J6OCRf.js +4 -0
  573. package/dist/kolibri/resolve-props-Bj6IaybL.js +4 -0
  574. package/dist/kolibri/rows-I1jrTjzU.js +4 -0
  575. package/dist/kolibri/scroll-lock-B6hVv8A8.js +4 -0
  576. package/dist/kolibri/{smart-button-CS_ZriPt.js → smart-button-DM5g48-g.js} +1 -1
  577. package/dist/kolibri/spell-check-BWCnJG5v.js +4 -0
  578. package/dist/kolibri/src-ziOwSglN.js +4 -0
  579. package/dist/kolibri/step-BcyhvRtu.js +4 -0
  580. package/dist/kolibri/suggestions-DaB3FVaz.js +4 -0
  581. package/dist/kolibri/{suggestions-Dy1X-Pc3.js → suggestions-LO267l8F.js} +1 -1
  582. package/dist/kolibri/test-component.entry.js +1 -1
  583. package/dist/kolibri/toggle-handler-3qaN2kmt.js +4 -0
  584. package/dist/kolibri/unique-nav-labels-CxFUYSVY.js +4 -0
  585. package/dist/kolibri/unit-1ix-K9SD.js +4 -0
  586. package/dist/kolibri/validators-CTjxOidB.js +4 -0
  587. package/dist/kolibri/value-string-CxDz7dhD.js +4 -0
  588. package/dist/kolibri/{width-CgYY17tL.js → width-C1_yZHyL.js} +1 -1
  589. package/dist/types/components/progress/component.d.ts +1 -0
  590. package/dist/types/components/single-select/component.d.ts +1 -0
  591. package/dist/types/components/tabs/component.d.ts +0 -1
  592. package/dist/types/internal/functional-components/form-field/custom-suggestions.d.ts +1 -0
  593. package/dist/types/internal/functional-components/icon/api.d.ts +1 -1
  594. package/dist/types/internal/functional-components/single-select/component.d.ts +3 -0
  595. package/dist/types/internal/props/helpers/validators.d.ts +2 -1
  596. package/dist/types/internal/props/index.d.ts +1 -0
  597. package/dist/types/internal/props/label-decorative.d.ts +4 -0
  598. package/dist/types/locales/de.d.ts +1 -0
  599. package/dist/types/locales/en.d.ts +1 -0
  600. package/dist/types/schema/i18n-keys.d.ts +29 -28
  601. package/dist/types/schema/index.d.ts +1 -1
  602. package/dist/types/schema/props/label.d.ts +1 -0
  603. package/dist/types/stencil-public-runtime.d.ts +1 -1
  604. package/package.json +6 -6
  605. package/dist/kolibri/api-7B_iI89k.js +0 -4
  606. package/dist/kolibri/app-globals-tRqgHq3P.js +0 -4
  607. package/dist/kolibri/base-BVztEKgJ.js +0 -4
  608. package/dist/kolibri/block-bem-DehcAQZQ.js +0 -4
  609. package/dist/kolibri/bootstrap-DHXUvPBY.js +0 -4
  610. package/dist/kolibri/common-OzsC_6kt.js +0 -4
  611. package/dist/kolibri/component-0IO2wu9i.js +0 -4
  612. package/dist/kolibri/component-4xXBb7K-.js +0 -4
  613. package/dist/kolibri/component-BJ4gGOph.js +0 -4
  614. package/dist/kolibri/component-CPq3i3I_.js +0 -4
  615. package/dist/kolibri/component-CTOYF3q6.js +0 -4
  616. package/dist/kolibri/component-ChuoBFI-.js +0 -4
  617. package/dist/kolibri/component-Cxdi6on4.js +0 -4
  618. package/dist/kolibri/component-DWywPG_a.js +0 -4
  619. package/dist/kolibri/component-EK9BJR6z.js +0 -4
  620. package/dist/kolibri/component-et0GdBuf.js +0 -4
  621. package/dist/kolibri/contrast-D78VGPFR.js +0 -4
  622. package/dist/kolibri/dev.utils-Bg7nZBMk.js +0 -4
  623. package/dist/kolibri/disabled-Cqhc40CU.js +0 -4
  624. package/dist/kolibri/field-control-D2tOd14v.js +0 -4
  625. package/dist/kolibri/group-CxWsx0aJ.js +0 -4
  626. package/dist/kolibri/has-closer-B9NQY7BK.js +0 -4
  627. package/dist/kolibri/href-JqLbNBsW.js +0 -4
  628. package/dist/kolibri/i18n-Dl6Jjofb.js +0 -4
  629. package/dist/kolibri/i18n-DtLKn3Xt.js +0 -4
  630. package/dist/kolibri/id-CIYvVaNr.js +0 -4
  631. package/dist/kolibri/index-B_bJG8-2.js +0 -6
  632. package/dist/kolibri/input-Ia9Z3AP7.js +0 -4
  633. package/dist/kolibri/item-BKVeXzUO.js +0 -4
  634. package/dist/kolibri/item-BZtI88zF.js +0 -4
  635. package/dist/kolibri/item-BjriQHQl.js +0 -4
  636. package/dist/kolibri/item-BuqBMSYI.js +0 -4
  637. package/dist/kolibri/label-BRosRgdX.js +0 -4
  638. package/dist/kolibri/label-hints-Jn18RUT-.js +0 -4
  639. package/dist/kolibri/label-lang-segment-2_GnxjFp.js +0 -4
  640. package/dist/kolibri/label-with-expert-slot-CicRes-W.js +0 -4
  641. package/dist/kolibri/level-CA1s1_Mf.js +0 -4
  642. package/dist/kolibri/link-target-FX94oqMo.js +0 -4
  643. package/dist/kolibri/links-DwucTqcR.js +0 -4
  644. package/dist/kolibri/multiple-DqrZxybx.js +0 -4
  645. package/dist/kolibri/number-value-B-SJ1dRo.js +0 -4
  646. package/dist/kolibri/open-DRRv1KFK.js +0 -4
  647. package/dist/kolibri/options-DCaUcfAu.js +0 -4
  648. package/dist/kolibri/orientation-XNOCaPwy.js +0 -4
  649. package/dist/kolibri/placeholder-BeLIzdJv.js +0 -4
  650. package/dist/kolibri/read-only-Bby9r6ZX.js +0 -4
  651. package/dist/kolibri/required-hoaT7UmZ.js +0 -4
  652. package/dist/kolibri/resolve-props-BkF1VBBB.js +0 -4
  653. package/dist/kolibri/resolve-props-CHPFh7Tn.js +0 -4
  654. package/dist/kolibri/rows-B0x8CR7K.js +0 -4
  655. package/dist/kolibri/scroll-lock-D7Zo0QLt.js +0 -4
  656. package/dist/kolibri/spell-check-DzgftyqL.js +0 -4
  657. package/dist/kolibri/src-DaGhmCL1.js +0 -4
  658. package/dist/kolibri/step-Bdj89bGO.js +0 -4
  659. package/dist/kolibri/suggestions-GEr-cvbz.js +0 -4
  660. package/dist/kolibri/toggle-handler-Bqoo8tCo.js +0 -4
  661. package/dist/kolibri/unique-nav-labels-h2KOu5Qy.js +0 -4
  662. package/dist/kolibri/unit-BUhhJbhT.js +0 -4
  663. package/dist/kolibri/validators-BVM40IEr.js +0 -4
  664. package/dist/kolibri/value-string-e9pwLcS-.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h as t,proxyCustomElement as o,Host as e,transformTag as i}from"@stencil/core/internal/client";import{_ as n}from"./tslib.es6.js";import{B as a}from"./base-web-component.js";import{D as l,s,b as r,g as c,J as h}from"./bem-registry.js";import{a as d,T as b}from"./behavior.js";import{c as u,n as f,j as p,i as k,b as m,e as g,F as _}from"./props-from-config.js";import{l as v}from"./label.js";import{n as y,c as w}from"./dev.utils.js";import{d as x,K as B}from"./events.js";import{r as T}from"./resolve-props.js";import{B as C}from"./component.js";import{B as j}from"./component9.js";import{t as z}from"./i18n.js";import{K as $}from"./keyboard.js";import{c as S,d as A,a as D}from"./element-interaction.js";const K=u("hasCreateButton",!1,f),L=u("selected",0,p),O=["select-automatic","select-manual"],F=u("behavior","select-automatic",(t=>m(t)),(t=>k(t,O))),H=u("tabs",[],(t=>g(t)),(t=>t.every((t=>"object"==typeof t&&null!==t&&(Array.isArray(t._label)||"string"==typeof t._label&&t._label.length>0)))),{hints:(t,o)=>l("KolTabs",o.length)}),I=u("on",{},(t=>{const o=_(t),e={};return"function"==typeof o.onCreate&&(e.onCreate=o.onCreate),"function"==typeof o.onSelect&&(e.onSelect=o.onSelect),e})),P={required:[v,H],optional:[d,K,L,F,I]},G=()=>{const t=new b(a.stateLess),o=y();let e,i,n,l;const r=(t,o)=>{n&&x(n,t,o)},c=o=>{o.stopPropagation(),t.hideTooltip();const n=null==e?void 0:e.on.onClick;"function"==typeof n&&(s(o,l),n(o,i)),r(B.click,i)},h=t=>{var o,i;null===(i=null==e?void 0:(o=e.on).onMouseDown)||void 0===i||i.call(o,t),r(B.mousedown)},d=t=>{var o,i;null===(i=null==e?void 0:(o=e.on).onFocus)||void 0===i||i.call(o,t),r(B.focus)},u=t=>{var o,i;null===(i=null==e?void 0:(o=e.on).onBlur)||void 0===i||i.call(o,t),r(B.blur)},f=t=>{n=t},p=t=>{l=t};return{getButton:(n,a)=>(e=T(n,a),i=n._value,t.componentWillLoad({label:e.label,align:e.tooltipAlign}),{buttonProps:Object.assign(Object.assign({},e),{ariaDescriptionId:o,handleBlur:u,handleClick:c,handleFocus:d,handleMouseDown:h,refButton:p,refTooltip:t.setTooltipElementRef}),refBox:f}),getButtonElement:()=>l,syncListeners:()=>{l&&t.syncListeners(void 0,l,!0)},destroy:()=>{t.destroy()}}},R=r.forBlock("kol-tabs"),E=R("button-create"),M=R("button-group"),N=R("content"),V=R("tab"),W=R("tablist"),q=o=>{const{align:e,class:i,createButton:n,handleBlur:a,handleKeyDown:l,hasCreateButton:s,label:r,refContent:c,refRoot:h,tabButtons:d}=o;return t(C,{block:"kol-tabs",modifiers:{["align-"+e]:!0},class:i,ref:h},t("div",{class:M},t("div",{"aria-label":r,class:W,role:"tablist",tabIndex:-1,onKeyDown:l,onBlur:a},d.map((({buttonProps:o,refBox:e})=>t("div",{class:V,ref:e},t(j,Object.assign({},o)))))),s&&t("div",{class:E,ref:n.refBox},t(j,Object.assign({},n.buttonProps)))),t("div",{class:N,ref:c}))},J=o(class extends a{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.onCreateLabel=z("kol-new")+" …",this.ctaRef=S(),this.id=w("tabs"),this.tabButtonItems=[],this.createButtonItem=G(),this.onClickSelect=(t,o)=>{this.selectNextTabEvent(t,o)},this.onMouseDown=t=>{t.preventDefault()},this.tabButtonCallbacks={onClick:this.onClickSelect,onMouseDown:this.onMouseDown},this.tabButtons=[],this.propsConfig=P,this._align="top",this._behavior=void 0,this._hasCreateButton=!1,this._on=void 0,this._selected=0,this.nextPossibleTabIndex=(t,o,e=1)=>this.selectNextNotDisabledTab(o+e,t,!0),this.prevPossibleTabIndex=(t,o,e=1)=>this.selectNextNotDisabledTab(o-e,t,!1),this.selectNextNotDisabledTab=(t,o,e=!0,i)=>{if(t>o.length-1&&(t=0),t<0&&(t=o.length-1),Array.isArray(o)&&o[t]&&o[t]._disabled){if(!0===e){if(t<o.length-1)return this.selectNextNotDisabledTab(t+1,o,!0,i||t);t=i||t,e=!1}if(!1===e){if(t>0)return this.selectNextNotDisabledTab(t-1,o,!1,i||t);c("[KolTabs] All tabs are disabled, and therefore no tab can be displayed.")}}return t},this.handleKeyDown=t=>{switch(t.key){case $.ArrowRight:this.goToNextTab(t);break;case $.ArrowLeft:this.goToPreviousTab(t);break;case $.Space:case $.Enter:this.activateFocusedTab(t)}},this.handleBlur=()=>{this.currentFocusIndex=void 0},this.onCreate=t=>{var o,e;t.preventDefault(),null===(e=(o=this.getRenderProp("on")).onCreate)||void 0===e||e.call(o,t),this.host&&x(this.host,B.create)},this.setRootRef=t=>{this.rootElement=t},this.setContentRef=t=>{this.tabPanelHost=t}}watchAlign(t){d.apply(t,(t=>this.setRenderProp("align",t)))}watchBehavior(t){F.apply(t,(t=>this.setRenderProp("behavior",t)))}watchHasCreateButton(t){K.apply(t,(t=>this.setRenderProp("hasCreateButton",t)))}watchLabel(t){v.apply(t,(t=>this.setRenderProp("label",t)),this.isRequired("label"))}watchOn(t){I.apply(t,(t=>this.setRenderProp("on",t)))}watchSelected(t){this.applySelected(t)}watchTabs(t){this.applyTabs(t)}focus(t){return Promise.resolve()}click(){return Promise.resolve()}componentWillLoad(){d.apply(this._align,(t=>this.setRenderProp("align",t))),F.apply(this._behavior,(t=>this.setRenderProp("behavior",t))),K.apply(this._hasCreateButton,(t=>this.setRenderProp("hasCreateButton",t))),v.apply(this._label,(t=>this.setRenderProp("label",t)),this.isRequired("label")),I.apply(this._on,(t=>this.setRenderProp("on",t))),this.applySelected(this._selected),this.applyTabs(this._tabs)}componentWillRender(){this.resolveButtons()}componentDidRender(){var t;this.ctaRef(null===(t=this.tabButtonItems[this.getRenderProp("selected")])||void 0===t?void 0:t.getButtonElement()),this.tabButtonItems.forEach((t=>t.syncListeners())),this.createButtonItem.syncListeners(),this.refreshTabPanels()}disconnectedCallback(){this.tabButtonItems.forEach((t=>t.destroy())),this.createButtonItem.destroy()}syncSelected(){const t=this.getRenderProp("tabs");t.length>0&&this.setRenderProp("selected",this.selectNextNotDisabledTab(this.getRenderProp("selected"),t))}getCurrentFocusIndex(){return"number"==typeof this.currentFocusIndex?this.currentFocusIndex:this.getRenderProp("selected")}getKeyboardTabChangeMode(){return"select-manual"===this.getRenderProp("behavior")?"selectFocusOnly":"activateCompletely"}goToNextTab(t){const o=this.nextPossibleTabIndex(this.getRenderProp("tabs"),this.getCurrentFocusIndex());this.selectNextTabEvent(t,o,this.getKeyboardTabChangeMode())}goToPreviousTab(t){const o=this.prevPossibleTabIndex(this.getRenderProp("tabs"),this.getCurrentFocusIndex());this.selectNextTabEvent(t,o,this.getKeyboardTabChangeMode())}activateFocusedTab(t){"number"==typeof this.currentFocusIndex&&this.onSelect(t,this.currentFocusIndex)}selectNextTabEvent(t,o,e="activateCompletely"){var i,n;this.currentFocusIndex=o,this.focusTabById(o),"activateCompletely"===e&&(this._selected=o,null===(n=null===(i=this.getRenderProp("tabs")[o]._on)||void 0===i?void 0:i.onSelect)||void 0===n||n.call(i,t,o),this.onSelect(t,o))}focusTabById(t){if(this.rootElement){const o=h(`button#${this.id}-tab-${t}`,this.rootElement);null==o||o.focus()}}onSelect(t,o){var e,i;null===(i=(e=this.getRenderProp("on")).onSelect)||void 0===i||i.call(e,t,o),this.host&&x(this.host,B.select,o),this.focusTabById(o)}refreshTabPanels(){var t,o;if(!this.tabPanelHost)return;for(;this.tabPanelHost.firstChild;)this.tabPanelHost.removeChild(this.tabPanelHost.firstChild);const e=this.getRenderProp("tabs");for(let i=0;i<e.length;i++){const e=document.createElement("div");e.setAttribute("aria-labelledby",`${this.id}-tab-${i}`),e.setAttribute("id",`${this.id}-panel-${i}`),e.setAttribute("role","tabpanel"),e.setAttribute("hidden","");const n=document.createElement("slot");n.setAttribute("name","tabpanel-slot-"+i),e.appendChild(n),this.tabPanelHost.appendChild(e),"undefined"!=typeof HTMLCollection&&(null===(t=this.host)||void 0===t?void 0:t.children)instanceof HTMLCollection&&(null===(o=this.host)||void 0===o?void 0:o.children[i])&&this.host.children[i].setAttribute("slot","tabpanel-slot-"+i)}this.updateVisiblePanel()}updateVisiblePanel(){if(!this.tabPanelHost)return;const t=this.getRenderProp("selected");Array.from(this.tabPanelHost.children).forEach(((o,e)=>{e===t?o.removeAttribute("hidden"):o.setAttribute("hidden","")}))}resolveButtons(){const t=this.getRenderProp("selected"),o=this.getRenderProp("tabs");this.tabButtons=this.tabButtonItems.map(((e,i)=>{const n=o[i],a=t===i;return e.getButton({_ariaControls:`${this.id}-panel-${i}`,_ariaSelected:a,_customClass:a?"selected":"",_disabled:n._disabled,_hideLabel:n._hideLabel,_icons:n._icons,_id:`${this.id}-tab-${i}`,_label:n._label,_on:this.tabButtonCallbacks,_role:"tab",_tabIndex:a?0:-1,_tooltipAlign:n._tooltipAlign,_value:i,_variant:a?"custom":void 0},this.host)})),this.createButton=this.createButtonItem.getButton({_icons:"kolicon-plus",_label:this.onCreateLabel,_on:{onClick:this.onCreate}},this.host)}applySelected(t){L.apply(t,(t=>{this.setRenderProp("selected",t),this.syncSelected()}))}applyTabs(t){H.apply(t,(t=>{this.setRenderProp("tabs",t),this.tabButtonItems.forEach((t=>t.destroy())),this.tabButtonItems=t.map((()=>G())),this.syncSelected()}))}render(){return t(e,{key:"0abd643c8bb617f9b21ad72e136fea8e42e23eaf"},t(q,{key:"82d3bdac38a70eac65b57de4a6a6c45f59fdec6c",align:this.getRenderProp("align"),behavior:this.getRenderProp("behavior"),createButton:this.createButton,handleBlur:this.handleBlur,handleKeyDown:this.handleKeyDown,hasCreateButton:this.getRenderProp("hasCreateButton"),label:this.getRenderProp("label"),on:this.getRenderProp("on"),refContent:this.setContentRef,refRoot:this.setRootRef,selected:this.getRenderProp("selected"),tabButtons:this.tabButtons,tabs:this.getRenderProp("tabs")}))}get host(){return this}static get watchers(){return{_align:[{watchAlign:0}],_behavior:[{watchBehavior:0}],_hasCreateButton:[{watchHasCreateButton:0}],_label:[{watchLabel:0}],_on:[{watchOn:0}],_selected:[{watchSelected:0}],_tabs:[{watchTabs:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794493099910"); src: url("kolicons.eot?t=1794493099910#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794493099910") format("woff2"), url("kolicons.woff?t=1794493099910") format("woff"), url("kolicons.ttf?t=1794493099910") format("truetype"), url("kolicons.svg?t=1794493099910#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-button { background-color: transparent; display: inline-block; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); margin: 0; padding: 0; text-align: center; } .kol-button__interactive-element { border-style: none; display: block; border-width: medium; font-weight: inherit; font-style: inherit; text-align: inherit; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-tabs { display: var(--display); grid-template-columns: var(--grid-template-columns); grid-template-rows: var(--grid-template-rows); } .kol-tabs--align-right { --display: grid; --grid-template-columns: 1fr auto; --button-group-flex-direction: column; --button-group-order: 2; } .kol-tabs--align-left { --display: grid; --grid-template-columns: auto 1fr; --button-group-flex-direction: column; --button-group-order: 0; } .kol-tabs--align-bottom { --display: grid; --grid-template-rows: 1fr auto; --button-group-order: 2; } .kol-tabs__tabs-align-top { --display: grid; --grid-template-rows: auto 1fr; --button-group-order: 0; } .kol-tabs__button-group { display: flex; order: var(--button-group-order); flex-direction: var(--button-group-flex-direction); flex-wrap: wrap; } .kol-tabs__button-group .kol-button { display: block; } .kol-tabs__button-group .kol-button .kol-button__interactive-element { border-bottom-color: transparent; border-bottom-style: solid; } @media (forced-colors: active) { .kol-tabs__button-group .kol-button.selected { outline: 3px solid Highlight; outline-offset: -3px; } .kol-tabs__button-group .kol-button.selected:has(.kol-button__interactive-element:focus-visible) { outline-style: dashed; } } .kol-tabs__tablist { display: flex; flex-direction: var(--button-group-flex-direction); flex-wrap: wrap; } .kol-tabs__panel { height: 100%; } }'}}},[801,"kol-tabs",{_align:[1],_behavior:[1],_hasCreateButton:[4,"_has-create-button"],_label:[1],_on:[16],_selected:[1538],_tabs:[1],focus:[64],click:[64]},void 0,{_align:[{watchAlign:0}],_behavior:[{watchBehavior:0}],_hasCreateButton:[{watchHasCreateButton:0}],_label:[{watchLabel:0}],_on:[{watchOn:0}],_selected:[{watchSelected:0}],_tabs:[{watchTabs:0}]}]);n([A("ctaRef")],J.prototype,"focus",null),n([D("ctaRef")],J.prototype,"click",null);const U=J,Q=function(){"undefined"!=typeof customElements&&["kol-tabs"].forEach((t=>{"kol-tabs"===t&&(customElements.get(i(t))||customElements.define(i(t),J))}))};export{U as KolTabs,Q as defineCustomElement}
4
+ import{h as t,proxyCustomElement as o,Host as e,transformTag as i}from"@stencil/core/internal/client";import{_ as n}from"./tslib.es6.js";import{B as a}from"./base-web-component.js";import{D as l,s,b as r,g as c,J as h}from"./bem-registry.js";import{a as d,T as b}from"./behavior.js";import{c as u,n as f,j as p,i as k,b as m,e as g,F as _}from"./props-from-config.js";import{l as v}from"./label.js";import{n as y,c as w}from"./dev.utils.js";import{d as x,K as B}from"./events.js";import{r as T}from"./resolve-props.js";import{B as C}from"./component.js";import{B as j}from"./component9.js";import{t as z}from"./i18n.js";import{K as $}from"./keyboard.js";import{c as S,d as A,a as D}from"./element-interaction.js";const K=u("hasCreateButton",!1,f),L=u("selected",0,p),O=["select-automatic","select-manual"],F=u("behavior","select-automatic",(t=>m(t)),(t=>k(t,O))),H=u("tabs",[],(t=>g(t)),(t=>t.every((t=>"object"==typeof t&&null!==t&&(Array.isArray(t._label)||"string"==typeof t._label&&t._label.length>0)))),{hints:(t,o)=>l("KolTabs",o.length)}),I=u("on",{},(t=>{const o=_(t),e={};return"function"==typeof o.onCreate&&(e.onCreate=o.onCreate),"function"==typeof o.onSelect&&(e.onSelect=o.onSelect),e})),P={required:[v,H],optional:[d,K,L,F,I]},G=()=>{const t=new b(a.stateLess),o=y();let e,i,n,l;const r=(t,o)=>{n&&x(n,t,o)},c=o=>{o.stopPropagation(),t.hideTooltip();const n=null==e?void 0:e.on.onClick;"function"==typeof n&&(s(o,l),n(o,i)),r(B.click,i)},h=t=>{var o,i;null===(i=null==e?void 0:(o=e.on).onMouseDown)||void 0===i||i.call(o,t),r(B.mousedown)},d=t=>{var o,i;null===(i=null==e?void 0:(o=e.on).onFocus)||void 0===i||i.call(o,t),r(B.focus)},u=t=>{var o,i;null===(i=null==e?void 0:(o=e.on).onBlur)||void 0===i||i.call(o,t),r(B.blur)},f=t=>{n=t},p=t=>{l=t};return{getButton:(n,a)=>(e=T(n,a),i=n._value,t.componentWillLoad({label:e.label,align:e.tooltipAlign}),{buttonProps:Object.assign(Object.assign({},e),{ariaDescriptionId:o,handleBlur:u,handleClick:c,handleFocus:d,handleMouseDown:h,refButton:p,refTooltip:t.setTooltipElementRef}),refBox:f}),getButtonElement:()=>l,syncListeners:()=>{l&&t.syncListeners(void 0,l,!0)},destroy:()=>{t.destroy()}}},R=r.forBlock("kol-tabs"),E=R("button-create"),M=R("button-group"),N=R("content"),V=R("tab"),W=R("tablist"),q=o=>{const{align:e,class:i,createButton:n,handleBlur:a,handleKeyDown:l,hasCreateButton:s,label:r,refContent:c,refRoot:h,tabButtons:d}=o;return t(C,{block:"kol-tabs",modifiers:{["align-"+e]:!0},class:i,ref:h},t("div",{class:M},t("div",{"aria-label":r,class:W,role:"tablist",tabIndex:-1,onKeyDown:l,onFocusout:t=>{t.relatedTarget instanceof Node&&t.currentTarget.contains(t.relatedTarget)||a()}},d.map((({buttonProps:o,refBox:e})=>t("div",{class:V,ref:e},t(j,Object.assign({},o)))))),s&&t("div",{class:E,ref:n.refBox},t(j,Object.assign({},n.buttonProps)))),t("div",{class:N,ref:c}))},J=o(class extends a{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.onCreateLabel=z("kol-new")+" …",this.ctaRef=S(),this.id=w("tabs"),this.tabButtonItems=[],this.createButtonItem=G(),this.onClickSelect=(t,o)=>{this.selectNextTabEvent(t,o)},this.onMouseDown=t=>{t.preventDefault()},this.tabButtonCallbacks={onClick:this.onClickSelect,onMouseDown:this.onMouseDown},this.tabButtons=[],this.propsConfig=P,this._align="top",this._behavior=void 0,this._hasCreateButton=!1,this._on=void 0,this._selected=0,this.nextPossibleTabIndex=(t,o,e=1)=>this.selectNextNotDisabledTab(o+e,t,!0),this.prevPossibleTabIndex=(t,o,e=1)=>this.selectNextNotDisabledTab(o-e,t,!1),this.selectNextNotDisabledTab=(t,o,e=!0,i)=>{if(t>o.length-1&&(t=0),t<0&&(t=o.length-1),Array.isArray(o)&&o[t]&&o[t]._disabled){if(!0===e){if(t<o.length-1)return this.selectNextNotDisabledTab(t+1,o,!0,i||t);t=i||t,e=!1}if(!1===e){if(t>0)return this.selectNextNotDisabledTab(t-1,o,!1,i||t);c("[KolTabs] All tabs are disabled, and therefore no tab can be displayed.")}}return t},this.handleKeyDown=t=>{switch(t.key){case $.ArrowRight:this.goToNextTab(t);break;case $.ArrowLeft:this.goToPreviousTab(t)}},this.handleBlur=()=>{this.currentFocusIndex=void 0},this.onCreate=t=>{var o,e;t.preventDefault(),null===(e=(o=this.getRenderProp("on")).onCreate)||void 0===e||e.call(o,t),this.host&&x(this.host,B.create)},this.setRootRef=t=>{this.rootElement=t},this.setContentRef=t=>{this.tabPanelHost=t}}watchAlign(t){d.apply(t,(t=>this.setRenderProp("align",t)))}watchBehavior(t){F.apply(t,(t=>this.setRenderProp("behavior",t)))}watchHasCreateButton(t){K.apply(t,(t=>this.setRenderProp("hasCreateButton",t)))}watchLabel(t){v.apply(t,(t=>this.setRenderProp("label",t)),this.isRequired("label"))}watchOn(t){I.apply(t,(t=>this.setRenderProp("on",t)))}watchSelected(t){this.applySelected(t)}watchTabs(t){this.applyTabs(t)}focus(t){return Promise.resolve()}click(){return Promise.resolve()}componentWillLoad(){d.apply(this._align,(t=>this.setRenderProp("align",t))),F.apply(this._behavior,(t=>this.setRenderProp("behavior",t))),K.apply(this._hasCreateButton,(t=>this.setRenderProp("hasCreateButton",t))),v.apply(this._label,(t=>this.setRenderProp("label",t)),this.isRequired("label")),I.apply(this._on,(t=>this.setRenderProp("on",t))),this.applySelected(this._selected),this.applyTabs(this._tabs)}componentWillRender(){this.resolveButtons()}componentDidRender(){var t;this.ctaRef(null===(t=this.tabButtonItems[this.getRenderProp("selected")])||void 0===t?void 0:t.getButtonElement()),this.tabButtonItems.forEach((t=>t.syncListeners())),this.createButtonItem.syncListeners(),this.refreshTabPanels()}disconnectedCallback(){this.tabButtonItems.forEach((t=>t.destroy())),this.createButtonItem.destroy()}syncSelected(){const t=this.getRenderProp("tabs");t.length>0&&this.setRenderProp("selected",this.selectNextNotDisabledTab(this.getRenderProp("selected"),t))}getCurrentFocusIndex(){return"number"==typeof this.currentFocusIndex?this.currentFocusIndex:this.getRenderProp("selected")}getKeyboardTabChangeMode(){return"select-manual"===this.getRenderProp("behavior")?"selectFocusOnly":"activateCompletely"}goToNextTab(t){const o=this.nextPossibleTabIndex(this.getRenderProp("tabs"),this.getCurrentFocusIndex());this.selectNextTabEvent(t,o,this.getKeyboardTabChangeMode())}goToPreviousTab(t){const o=this.prevPossibleTabIndex(this.getRenderProp("tabs"),this.getCurrentFocusIndex());this.selectNextTabEvent(t,o,this.getKeyboardTabChangeMode())}selectNextTabEvent(t,o,e="activateCompletely"){var i,n;this.currentFocusIndex=o,this.focusTabById(o),"activateCompletely"===e&&(this._selected=o,null===(n=null===(i=this.getRenderProp("tabs")[o]._on)||void 0===i?void 0:i.onSelect)||void 0===n||n.call(i,t,o),this.onSelect(t,o))}focusTabById(t){if(this.rootElement){const o=h(`button#${this.id}-tab-${t}`,this.rootElement);null==o||o.focus()}}onSelect(t,o){var e,i;null===(i=(e=this.getRenderProp("on")).onSelect)||void 0===i||i.call(e,t,o),this.host&&x(this.host,B.select,o),this.focusTabById(o)}refreshTabPanels(){var t,o;if(!this.tabPanelHost)return;for(;this.tabPanelHost.firstChild;)this.tabPanelHost.removeChild(this.tabPanelHost.firstChild);const e=this.getRenderProp("tabs");for(let i=0;i<e.length;i++){const e=document.createElement("div");e.setAttribute("aria-labelledby",`${this.id}-tab-${i}`),e.setAttribute("id",`${this.id}-panel-${i}`),e.setAttribute("role","tabpanel"),e.setAttribute("hidden","");const n=document.createElement("slot");n.setAttribute("name","tabpanel-slot-"+i),e.appendChild(n),this.tabPanelHost.appendChild(e),"undefined"!=typeof HTMLCollection&&(null===(t=this.host)||void 0===t?void 0:t.children)instanceof HTMLCollection&&(null===(o=this.host)||void 0===o?void 0:o.children[i])&&this.host.children[i].setAttribute("slot","tabpanel-slot-"+i)}this.updateVisiblePanel()}updateVisiblePanel(){if(!this.tabPanelHost)return;const t=this.getRenderProp("selected");Array.from(this.tabPanelHost.children).forEach(((o,e)=>{e===t?o.removeAttribute("hidden"):o.setAttribute("hidden","")}))}resolveButtons(){const t=this.getRenderProp("selected"),o=this.getRenderProp("tabs");this.tabButtons=this.tabButtonItems.map(((e,i)=>{const n=o[i],a=t===i;return e.getButton({_ariaControls:`${this.id}-panel-${i}`,_ariaSelected:a,_customClass:a?"selected":"",_disabled:n._disabled,_hideLabel:n._hideLabel,_icons:n._icons,_id:`${this.id}-tab-${i}`,_label:n._label,_on:this.tabButtonCallbacks,_role:"tab",_tabIndex:a?0:-1,_tooltipAlign:n._tooltipAlign,_value:i,_variant:a?"custom":void 0},this.host)})),this.createButton=this.createButtonItem.getButton({_icons:"kolicon-plus",_label:this.onCreateLabel,_on:{onClick:this.onCreate}},this.host)}applySelected(t){L.apply(t,(t=>{this.setRenderProp("selected",t),this.syncSelected()}))}applyTabs(t){H.apply(t,(t=>{this.setRenderProp("tabs",t),this.tabButtonItems.forEach((t=>t.destroy())),this.tabButtonItems=t.map((()=>G())),this.syncSelected()}))}render(){return t(e,{key:"f42c56ba7918ef6a33a6a354e2f9c4de5ca8fcb4"},t(q,{key:"9691fd92c0782719c4c343e663cde270c907449c",align:this.getRenderProp("align"),behavior:this.getRenderProp("behavior"),createButton:this.createButton,handleBlur:this.handleBlur,handleKeyDown:this.handleKeyDown,hasCreateButton:this.getRenderProp("hasCreateButton"),label:this.getRenderProp("label"),on:this.getRenderProp("on"),refContent:this.setContentRef,refRoot:this.setRootRef,selected:this.getRenderProp("selected"),tabButtons:this.tabButtons,tabs:this.getRenderProp("tabs")}))}get host(){return this}static get watchers(){return{_align:[{watchAlign:0}],_behavior:[{watchBehavior:0}],_hasCreateButton:[{watchHasCreateButton:0}],_label:[{watchLabel:0}],_on:[{watchOn:0}],_selected:[{watchSelected:0}],_tabs:[{watchTabs:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794582088003"); 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"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-button { background-color: transparent; display: inline-block; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); margin: 0; padding: 0; text-align: center; } .kol-button__interactive-element { border-style: none; display: block; border-width: medium; font-weight: inherit; font-style: inherit; text-align: inherit; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-tabs { display: var(--display); grid-template-columns: var(--grid-template-columns); grid-template-rows: var(--grid-template-rows); } .kol-tabs--align-right { --display: grid; --grid-template-columns: 1fr auto; --button-group-flex-direction: column; --button-group-order: 2; } .kol-tabs--align-left { --display: grid; --grid-template-columns: auto 1fr; --button-group-flex-direction: column; --button-group-order: 0; } .kol-tabs--align-bottom { --display: grid; --grid-template-rows: 1fr auto; --button-group-order: 2; } .kol-tabs__tabs-align-top { --display: grid; --grid-template-rows: auto 1fr; --button-group-order: 0; } .kol-tabs__button-group { display: flex; order: var(--button-group-order); flex-direction: var(--button-group-flex-direction); flex-wrap: wrap; } .kol-tabs__button-group .kol-button { display: block; } .kol-tabs__button-group .kol-button .kol-button__interactive-element { border-bottom-color: transparent; border-bottom-style: solid; } @media (forced-colors: active) { .kol-tabs__button-group .kol-button.selected { outline: 3px solid Highlight; outline-offset: -3px; } .kol-tabs__button-group .kol-button.selected:has(.kol-button__interactive-element:focus-visible) { outline-style: dashed; } } .kol-tabs__tablist { display: flex; flex-direction: var(--button-group-flex-direction); flex-wrap: wrap; } .kol-tabs__panel { height: 100%; } }'}}},[801,"kol-tabs",{_align:[1],_behavior:[1],_hasCreateButton:[4,"_has-create-button"],_label:[1],_on:[16],_selected:[1538],_tabs:[1],focus:[64],click:[64]},void 0,{_align:[{watchAlign:0}],_behavior:[{watchBehavior:0}],_hasCreateButton:[{watchHasCreateButton:0}],_label:[{watchLabel:0}],_on:[{watchOn:0}],_selected:[{watchSelected:0}],_tabs:[{watchTabs:0}]}]);n([A("ctaRef")],J.prototype,"focus",null),n([D("ctaRef")],J.prototype,"click",null);const U=J,Q=function(){"undefined"!=typeof customElements&&["kol-tabs"].forEach((t=>{"kol-tabs"===t&&(customElements.get(i(t))||customElements.define(i(t),J))}))};export{U as KolTabs,Q as defineCustomElement}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h as t,proxyCustomElement as e,Host as o,transformTag as i}from"@stencil/core/internal/client";import{a,_ as n}from"./tslib.es6.js";import{v as l}from"./access-and-short-key.js";import{B as s}from"./base-web-component.js";import{C as r}from"./behavior2.js";import{h,g as c,I as d}from"./input-container.js";import{i as k,g as u,c as m,f as b,B as p,F as f}from"./base-web-component2.js";import"./bem-registry.js";import{c as _}from"./clsx.js";import{g}from"./block-bem.js";import{a as w,d as y,v}from"./component3.js";import{c as x,n as j,b as z,i as L}from"./props-from-config.js";import{p as B}from"./placeholder.js";import{r as T}from"./read-only.js";import{r as H}from"./required.js";import{r as K}from"./rows.js";import{s as O}from"./spell-check.js";import{s as A}from"./value-string.js";import{c as C}from"./dev.utils.js";import{c as q,d as D,a as M}from"./element-interaction.js";const R=["vertical","none"],S=x("adjustHeight",!1,j),V=x("resize","vertical",(function(t){const e=z(t);if(L(e,R))return e;throw Error("Invalid resize option: "+e)})),P=e=>{const{class:o,msg:i,touched:n,readonly:l,disabled:s,required:r,ariaDescribedBy:h,hideLabel:c,label:d}=e,b=a(e,["class","msg","touched","readonly","disabled","required","ariaDescribedBy","hideLabel","label"]),p=Object.assign(Object.assign({class:_(g("kol-textarea")(Object.assign({disabled:!!s,required:!!r,touched:!!n,readonly:!!l},k(i,n)?{[u(i)]:!0}:{})),o),required:r,disabled:s,readonly:l},m({ariaDescribedBy:h,hideLabel:c,label:d})),b);return t("textarea",Object.assign({},p))},I={required:[...b.required],optional:[...b.optional,w,S,h,B,T,H,V,K,y,O,A,v]},E=e(class extends p{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=C("textarea"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=q(),this.counter=new r(s.stateLess),this.needsImmediateCounterUpdate=!1,this.hasValue=!1,this.isWritingRows=!1,this.propsConfig=I,this._accessKey=void 0,this._adjustHeight=!1,this._ariaDetails=void 0,this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._infoPopover=void 0,this._maxLength=void 0,this._hasCounter=!1,this._maxLengthBehavior="hard",this._msg=void 0,this._name=void 0,this._on=void 0,this._placeholder=void 0,this._readOnly=!1,this._resize="vertical",this._required=!1,this._rows=void 0,this._shortKey=void 0,this._spellCheck=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this._variant=void 0,this.handleTextareaInput=t=>{this.ctaRef.el instanceof HTMLTextAreaElement&&(this._value=this.ctaRef.el.value,this.getRenderProp("adjustHeight")&&this.writeRows(this.measureTextareaRows(this.ctaRef.el)),this.handleInput(t))},this.handleTextareaChange=t=>{this.handleChange(t)},this.handleTextareaFocus=t=>{var e,o;this.handleFocus(t),this.counter.retriggerAria(null!==(o=null===(e=this._value)||void 0===e?void 0:e.length)&&void 0!==o?o:0)},this.handleTextareaKeyDown=t=>{var e,o;this.handleKeyDown(t),this.counter.handleKeyDown(t,null!==(o=null===(e=this.ctaRef.el)||void 0===e?void 0:e.value.length)&&void 0!==o?o:0)},this.initFormAssociation("textarea",this._name)}watchAccessKey(t){w.apply(t,(t=>this.setRenderProp("accessKey",t))),l(t,this._shortKey)}watchAdjustHeight(t){S.apply(t,(t=>this.setRenderProp("adjustHeight",t)))}watchAriaDetails(t){this.applyAriaDetails(t)}watchDisabled(t){this.applyDisabled(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchIcons(t){h.apply(t,(t=>this.setRenderProp("icons",t)))}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMaxLength(t){var e,o;this.counter.watchMaxLength(t),this.counter.updateImmediate(null!==(o=null===(e=this._value)||void 0===e?void 0:e.length)&&void 0!==o?o:0)}watchHasCounter(t){this.counter.watchHasCounter(t),this.needsImmediateCounterUpdate=!0}watchMaxLengthBehavior(t){this.counter.watchMaxLengthBehavior(t),this.needsImmediateCounterUpdate=!0}watchMsg(t){this.applyMsg(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchPlaceholder(t){B.apply(t,(t=>this.setRenderProp("placeholder",t)))}watchReadOnly(t){T.apply(t,(t=>this.setRenderProp("readOnly",t)))}watchResize(t){V.apply(t,(t=>this.setRenderProp("resize",t)))}watchRequired(t){H.apply(t,(t=>this.setRenderProp("required",t)))}watchRows(t){K.apply(t,(t=>{this.setRenderProp("rows",t),this.isWritingRows||(this.minRows=t)}))}watchShortKey(t){y.apply(t,(t=>this.setRenderProp("shortKey",t))),l(this._accessKey,t)}watchSpellCheck(t){O.apply(t,(t=>this.setRenderProp("spellCheck",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchValue(t){var e;this.applyValue(t),this.counter.update(null!==(e=null==t?void 0:t.length)&&void 0!==e?e:0)}watchVariant(t){v.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){var t;return Promise.resolve(null===(t=this.ctaRef.el)||void 0===t?void 0:t.value)}focus(t){return Promise.resolve()}async click(){return Promise.resolve()}componentWillLoad(){this.watchAriaDetails(this._ariaDetails),this._touched=!0===this._touched,this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccessKey(this._accessKey),this.watchAdjustHeight(this._adjustHeight),this.watchMsg(this._msg),this.watchDisabled(this._disabled),this.watchHideMsg(this._hideMsg),this.watchHideLabel(this._hideLabel),this.watchHint(this._hint),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchShortKey(this._shortKey),this.watchOn(this._on),this.watchTooltipAlign(this._tooltipAlign),this.watchVariant(this._variant),this.watchIcons(this._icons),this.watchHasCounter(this._hasCounter),this.watchMaxLengthBehavior(this._maxLengthBehavior),this.counter.watchMaxLength(this._maxLength),this.watchPlaceholder(this._placeholder),this.watchReadOnly(this._readOnly),this.watchRequired(this._required),this.watchResize(this._resize),this.watchRows(this._rows),this.watchSpellCheck(this._spellCheck),this.applyValue(this._value)}componentDidLoad(){var t,e;this.needsImmediateCounterUpdate=!1,(this.counter.hasCounter()||this.counter.hasSoftLimit())&&this.counter.updateImmediate(null!==(e=null===(t=this._value)||void 0===t?void 0:t.length)&&void 0!==e?e:0),setTimeout((()=>{!0===this._adjustHeight&&this.ctaRef.el?this.writeRows(this.measureTextareaRows(this.ctaRef.el)):this._rows||this.writeRows(1)}))}componentDidUpdate(){var t,e;this.needsImmediateCounterUpdate&&(this.needsImmediateCounterUpdate=!1,(this.counter.hasCounter()||this.counter.hasSoftLimit())&&this.counter.updateImmediate(null!==(e=null===(t=this._value)||void 0===t?void 0:t.length)&&void 0!==e?e:0))}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField(),this.counter.destroy()}writeRows(t){this.isWritingRows=!0,this._rows=t,this.isWritingRows=!1}measureTextareaRows(t){t.style.overflow="hidden",t.style.padding="0";const e=t.rows,o=t.clientHeight/e;t.rows=1;const i=Math.round(t.scrollHeight/o);t.rows=e,t.style.padding="";const a=this.minRows;return a&&a>i?a:i}getTextareaProps(){const t=this.id,e=this.getRenderProp("shortKey"),o=this.counter.getMaxLengthAttribute(),i=this.counter.getCharacterLimitHintId(t),{ariaDescribedBy:a,hasError:n}=this.getAria();return Object.assign(Object.assign({id:t,hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),value:this.getRenderProp("value"),accessKey:this.getRenderProp("accessKey")||void 0,disabled:this.getRenderProp("disabled"),name:this.getRenderProp("name")||void 0,rows:this.getRenderProp("rows"),readonly:this.getRenderProp("readOnly"),required:this.getRenderProp("required"),placeholder:this.getRenderProp("placeholder"),spellcheck:this.getRenderProp("spellCheck"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg"),ref:this.ctaRef,style:{resize:this.getRenderProp("resize")},onBlur:this.handleBlur,onChange:this.handleTextareaChange,onClick:this.handleClick,onFocus:this.handleTextareaFocus,onInput:this.handleTextareaInput,onKeyDown:this.handleTextareaKeyDown,ariaDescribedBy:i?[...a,i]:a,"aria-invalid":n?"true":void 0},void 0!==o?{maxLength:o}:{}),e?{"aria-keyshortcuts":e}:{})}applyValue(t){A.apply(t,(t=>this.setRenderProp("value",t))),this.hasValue=!!this.getRenderProp("value"),this.formAssociation.setFormAssociatedValue(this.getRenderProp("value"))}render(){const e=this.getRenderProp("disabled"),{startAdornment:i,endAdornment:a}=c({icons:this.getRenderProp("icons")});return t(o,{key:"86a1b4d82b3354c4e3f1f478d8cf2b3f9a9947b1"},t(f,Object.assign({key:"d993ae8887564c1c8ad04ecf3322b487009c56e4"},this.getFormFieldProps({class:_("kol-form-field-textarea",{"kol-form-field--has-value":this.hasValue,"kol-form-field--has-counter":this.counter.hasSoftLimit()||this.counter.hasCounter()}),accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,variant:this.getRenderProp("variant"),required:this.getRenderProp("required"),readOnly:this.getRenderProp("readOnly"),maxLength:this.counter.getRenderProp("maxLength"),counter:this.counter.getCounterProps()})),t(d,{key:"da2e2e23a310a622a6c3b55b6e5884087abaf803",disabled:e,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:a},t(P,Object.assign({key:"8b97860a62ce968dc09a6cda294f3579fc9ad0d9"},this.getTextareaProps())))))}get host(){return this}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_adjustHeight:[{watchAdjustHeight:0}],_ariaDetails:[{watchAriaDetails:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_maxLength:[{watchMaxLength:0}],_hasCounter:[{watchHasCounter:0}],_maxLengthBehavior:[{watchMaxLengthBehavior:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_placeholder:[{watchPlaceholder:0}],_readOnly:[{watchReadOnly:0}],_resize:[{watchResize:0}],_required:[{watchRequired:0}],_rows:[{watchRows:0}],_shortKey:[{watchShortKey:0}],_spellCheck:[{watchSpellCheck:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794493099910"); src: url("kolicons.eot?t=1794493099910#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794493099910") format("woff2"), url("kolicons.woff?t=1794493099910") format("woff"), url("kolicons.ttf?t=1794493099910") format("truetype"), url("kolicons.svg?t=1794493099910#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-button { background-color: transparent; display: inline-block; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); margin: 0; padding: 0; text-align: center; } .kol-button__interactive-element { border-style: none; display: block; border-width: medium; font-weight: inherit; font-style: inherit; text-align: inherit; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: "​"; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-form-field .kol-popover-button { display: inline; } .kol-form-field .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-form-field .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-form-field .kol-popover-button--inline { display: inline-block; } .kol-form-field .kol-popover-button--inline .kol-button, .kol-form-field .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-form-field .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-form-field .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-form-field { display: grid; } .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label { cursor: pointer; } .kol-form-field__label { display: flex; } .kol-form-field__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-form-field--required .kol-form-field__label-text:has(.kol-span__slot[hidden]) .kol-span__label::after, .kol-form-field--required:not(:has(.kol-form-field__label--legend)) .kol-form-field__input .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-input-container { background-color: transparent; display: grid; position: relative; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; grid-template-columns: 1fr; } .kol-input-container:has(> .kol-input-container__adornment--start) { grid-template-columns: auto 1fr auto; } .kol-input-container__container { position: relative; z-index: 1; } .kol-input-container__adornment { display: flex; align-items: center; } .kol-input-container__adornment .kol-icon { display: grid; place-items: center; } .kol-textarea { width: 100%; } }'}}},[545,"kol-textarea",{_accessKey:[1,"_access-key"],_adjustHeight:[4,"_adjust-height"],_ariaDetails:[1,"_aria-details"],_disabled:[4],_hideMsg:[4,"_hide-msg"],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_infoPopover:[16],_label:[1],_maxLength:[2,"_max-length"],_hasCounter:[4,"_has-counter"],_maxLengthBehavior:[1,"_max-length-behavior"],_msg:[1],_name:[1],_on:[16],_placeholder:[1],_readOnly:[4,"_read-only"],_resize:[1],_required:[4],_rows:[1026],_shortKey:[1,"_short-key"],_spellCheck:[4,"_spell-check"],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[1537],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],getValue:[64],focus:[64],click:[64]},void 0,{_accessKey:[{watchAccessKey:0}],_adjustHeight:[{watchAdjustHeight:0}],_ariaDetails:[{watchAriaDetails:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_maxLength:[{watchMaxLength:0}],_hasCounter:[{watchHasCounter:0}],_maxLengthBehavior:[{watchMaxLengthBehavior:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_placeholder:[{watchPlaceholder:0}],_readOnly:[{watchReadOnly:0}],_resize:[{watchResize:0}],_required:[{watchRequired:0}],_rows:[{watchRows:0}],_shortKey:[{watchShortKey:0}],_spellCheck:[{watchSpellCheck:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]);n([D("ctaRef")],E.prototype,"focus",null),n([M("ctaRef")],E.prototype,"click",null);const G=E,F=function(){"undefined"!=typeof customElements&&["kol-textarea"].forEach((t=>{"kol-textarea"===t&&(customElements.get(i(t))||customElements.define(i(t),E))}))};export{G as KolTextarea,F as defineCustomElement}
4
+ import{h as t,proxyCustomElement as e,Host as o,transformTag as i}from"@stencil/core/internal/client";import{a,_ as n}from"./tslib.es6.js";import{v as l}from"./access-and-short-key.js";import{B as s}from"./base-web-component.js";import{C as r}from"./behavior2.js";import{h,g as c,I as d}from"./input-container.js";import{i as k,g as u,c as m,f,B as p,F as b}from"./base-web-component2.js";import"./bem-registry.js";import{c as _}from"./clsx.js";import{g}from"./block-bem.js";import{a as w,d as y,v}from"./component3.js";import{c as x,n as j,b as z,i as L}from"./props-from-config.js";import{p as B}from"./placeholder.js";import{r as T}from"./read-only.js";import{r as H}from"./required.js";import{r as K}from"./rows.js";import{s as O}from"./spell-check.js";import{s as A}from"./value-string.js";import{c as C}from"./dev.utils.js";import{c as q,d as D,a as M}from"./element-interaction.js";const R=["vertical","none"],S=x("adjustHeight",!1,j),V=x("resize","vertical",(function(t){const e=z(t);if(L(e,R))return e;throw Error("Invalid resize option: "+e)})),P=e=>{const{class:o,msg:i,touched:n,readonly:l,disabled:s,required:r,ariaDescribedBy:h,hideLabel:c,label:d}=e,f=a(e,["class","msg","touched","readonly","disabled","required","ariaDescribedBy","hideLabel","label"]),p=Object.assign(Object.assign({class:_(g("kol-textarea")(Object.assign({disabled:!!s,required:!!r,touched:!!n,readonly:!!l},k(i,n)?{[u(i)]:!0}:{})),o),required:r,disabled:s,readonly:l},m({ariaDescribedBy:h,hideLabel:c,label:d})),f);return t("textarea",Object.assign({},p))},I={required:[...f.required],optional:[...f.optional,w,S,h,B,T,H,V,K,y,O,A,v]},E=e(class extends p{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=C("textarea"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=q(),this.counter=new r(s.stateLess),this.needsImmediateCounterUpdate=!1,this.hasValue=!1,this.isWritingRows=!1,this.propsConfig=I,this._accessKey=void 0,this._adjustHeight=!1,this._ariaDetails=void 0,this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._infoPopover=void 0,this._maxLength=void 0,this._hasCounter=!1,this._maxLengthBehavior="hard",this._msg=void 0,this._name=void 0,this._on=void 0,this._placeholder=void 0,this._readOnly=!1,this._resize="vertical",this._required=!1,this._rows=void 0,this._shortKey=void 0,this._spellCheck=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this._variant=void 0,this.handleTextareaInput=t=>{this.ctaRef.el instanceof HTMLTextAreaElement&&(this._value=this.ctaRef.el.value,this.getRenderProp("adjustHeight")&&this.writeRows(this.measureTextareaRows(this.ctaRef.el)),this.handleInput(t))},this.handleTextareaChange=t=>{this.handleChange(t)},this.handleTextareaFocus=t=>{var e,o;this.handleFocus(t),this.counter.retriggerAria(null!==(o=null===(e=this._value)||void 0===e?void 0:e.length)&&void 0!==o?o:0)},this.handleTextareaKeyDown=t=>{var e,o;this.handleKeyDown(t),this.counter.handleKeyDown(t,null!==(o=null===(e=this.ctaRef.el)||void 0===e?void 0:e.value.length)&&void 0!==o?o:0)},this.initFormAssociation("textarea",this._name)}watchAccessKey(t){w.apply(t,(t=>this.setRenderProp("accessKey",t))),l(t,this._shortKey)}watchAdjustHeight(t){S.apply(t,(t=>this.setRenderProp("adjustHeight",t)))}watchAriaDetails(t){this.applyAriaDetails(t)}watchDisabled(t){this.applyDisabled(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchIcons(t){h.apply(t,(t=>this.setRenderProp("icons",t)))}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMaxLength(t){var e,o;this.counter.watchMaxLength(t),this.counter.updateImmediate(null!==(o=null===(e=this._value)||void 0===e?void 0:e.length)&&void 0!==o?o:0)}watchHasCounter(t){this.counter.watchHasCounter(t),this.needsImmediateCounterUpdate=!0}watchMaxLengthBehavior(t){this.counter.watchMaxLengthBehavior(t),this.needsImmediateCounterUpdate=!0}watchMsg(t){this.applyMsg(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchPlaceholder(t){B.apply(t,(t=>this.setRenderProp("placeholder",t)))}watchReadOnly(t){T.apply(t,(t=>this.setRenderProp("readOnly",t)))}watchResize(t){V.apply(t,(t=>this.setRenderProp("resize",t)))}watchRequired(t){H.apply(t,(t=>this.setRenderProp("required",t)))}watchRows(t){K.apply(t,(t=>{this.setRenderProp("rows",t),this.isWritingRows||(this.minRows=t)}))}watchShortKey(t){y.apply(t,(t=>this.setRenderProp("shortKey",t))),l(this._accessKey,t)}watchSpellCheck(t){O.apply(t,(t=>this.setRenderProp("spellCheck",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchValue(t){var e;this.applyValue(t),this.counter.update(null!==(e=null==t?void 0:t.length)&&void 0!==e?e:0)}watchVariant(t){v.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){var t;return Promise.resolve(null===(t=this.ctaRef.el)||void 0===t?void 0:t.value)}focus(t){return Promise.resolve()}async click(){return Promise.resolve()}componentWillLoad(){this.watchAriaDetails(this._ariaDetails),this._touched=!0===this._touched,this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccessKey(this._accessKey),this.watchAdjustHeight(this._adjustHeight),this.watchMsg(this._msg),this.watchDisabled(this._disabled),this.watchHideMsg(this._hideMsg),this.watchHideLabel(this._hideLabel),this.watchHint(this._hint),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchShortKey(this._shortKey),this.watchOn(this._on),this.watchTooltipAlign(this._tooltipAlign),this.watchVariant(this._variant),this.watchIcons(this._icons),this.watchHasCounter(this._hasCounter),this.watchMaxLengthBehavior(this._maxLengthBehavior),this.counter.watchMaxLength(this._maxLength),this.watchPlaceholder(this._placeholder),this.watchReadOnly(this._readOnly),this.watchRequired(this._required),this.watchResize(this._resize),this.watchRows(this._rows),this.watchSpellCheck(this._spellCheck),this.applyValue(this._value)}componentDidLoad(){var t,e;this.needsImmediateCounterUpdate=!1,(this.counter.hasCounter()||this.counter.hasSoftLimit())&&this.counter.updateImmediate(null!==(e=null===(t=this._value)||void 0===t?void 0:t.length)&&void 0!==e?e:0),setTimeout((()=>{!0===this._adjustHeight&&this.ctaRef.el?this.writeRows(this.measureTextareaRows(this.ctaRef.el)):this._rows||this.writeRows(1)}))}componentDidUpdate(){var t,e;this.needsImmediateCounterUpdate&&(this.needsImmediateCounterUpdate=!1,(this.counter.hasCounter()||this.counter.hasSoftLimit())&&this.counter.updateImmediate(null!==(e=null===(t=this._value)||void 0===t?void 0:t.length)&&void 0!==e?e:0))}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField(),this.counter.destroy()}writeRows(t){this.isWritingRows=!0,this._rows=t,this.isWritingRows=!1}measureTextareaRows(t){const{overflow:e,padding:o}=t.style;t.style.overflow="hidden",t.style.padding="0";const i=t.rows,a=t.clientHeight/i;t.rows=1;const n=Math.round(t.scrollHeight/a);t.rows=i,t.style.overflow=e,t.style.padding=o;const l=this.minRows;return l&&l>n?l:n}getTextareaProps(){const t=this.id,e=this.getRenderProp("shortKey"),o=this.counter.getMaxLengthAttribute(),i=this.counter.getCharacterLimitHintId(t),{ariaDescribedBy:a,hasError:n}=this.getAria();return Object.assign(Object.assign({id:t,hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),value:this.getRenderProp("value"),accessKey:this.getRenderProp("accessKey")||void 0,disabled:this.getRenderProp("disabled"),name:this.getRenderProp("name")||void 0,rows:this.getRenderProp("rows"),readonly:this.getRenderProp("readOnly"),required:this.getRenderProp("required"),placeholder:this.getRenderProp("placeholder"),spellcheck:this.getRenderProp("spellCheck"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg"),ref:this.ctaRef,style:{resize:this.getRenderProp("resize")},onBlur:this.handleBlur,onChange:this.handleTextareaChange,onClick:this.handleClick,onFocus:this.handleTextareaFocus,onInput:this.handleTextareaInput,onKeyDown:this.handleTextareaKeyDown,ariaDescribedBy:i?[...a,i]:a,"aria-invalid":n?"true":void 0},void 0!==o?{maxLength:o}:{}),e?{"aria-keyshortcuts":e}:{})}applyValue(t){A.apply(t,(t=>this.setRenderProp("value",t))),this.hasValue=!!this.getRenderProp("value"),this.formAssociation.setFormAssociatedValue(this.getRenderProp("value"))}render(){const e=this.getRenderProp("disabled"),{startAdornment:i,endAdornment:a}=c({icons:this.getRenderProp("icons")});return t(o,{key:"f213a17cb37e5957ab505f30bb9a16f4d540277a"},t(b,Object.assign({key:"f30d7ffa05b8f88949b05967af1270a26de84dff"},this.getFormFieldProps({class:_("kol-form-field-textarea",{"kol-form-field--has-value":this.hasValue,"kol-form-field--has-counter":this.counter.hasSoftLimit()||this.counter.hasCounter()}),accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,variant:this.getRenderProp("variant"),required:this.getRenderProp("required"),readOnly:this.getRenderProp("readOnly"),maxLength:this.counter.getRenderProp("maxLength"),counter:this.counter.getCounterProps()})),t(d,{key:"0d9be56a253943f934a0e0c00f4c879ce50459e5",disabled:e,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:a},t(P,Object.assign({key:"2151d1aa605a6fd3c3899b106270fc16c432d0dc"},this.getTextareaProps())))))}get host(){return this}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_adjustHeight:[{watchAdjustHeight:0}],_ariaDetails:[{watchAriaDetails:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_maxLength:[{watchMaxLength:0}],_hasCounter:[{watchHasCounter:0}],_maxLengthBehavior:[{watchMaxLengthBehavior:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_placeholder:[{watchPlaceholder:0}],_readOnly:[{watchReadOnly:0}],_resize:[{watchResize:0}],_required:[{watchRequired:0}],_rows:[{watchRows:0}],_shortKey:[{watchShortKey:0}],_spellCheck:[{watchSpellCheck:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794582088003"); 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"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-button { background-color: transparent; display: inline-block; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); margin: 0; padding: 0; text-align: center; } .kol-button__interactive-element { border-style: none; display: block; border-width: medium; font-weight: inherit; font-style: inherit; text-align: inherit; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: "​"; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-form-field .kol-popover-button { display: inline; } .kol-form-field .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-form-field .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-form-field .kol-popover-button--inline { display: inline-block; } .kol-form-field .kol-popover-button--inline .kol-button, .kol-form-field .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-form-field .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-form-field .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-form-field { display: grid; } .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label { cursor: pointer; } .kol-form-field__label { display: flex; } .kol-form-field__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-form-field--required .kol-form-field__label-text:has(.kol-span__slot[hidden]) .kol-span__label::after, .kol-form-field--required:not(:has(.kol-form-field__label--legend)) .kol-form-field__input .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-input-container { background-color: transparent; display: grid; position: relative; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; grid-template-columns: 1fr; } .kol-input-container:has(> .kol-input-container__adornment--start) { grid-template-columns: auto 1fr auto; } .kol-input-container__container { position: relative; z-index: 1; } .kol-input-container__adornment { display: flex; align-items: center; } .kol-input-container__adornment .kol-icon { display: grid; place-items: center; } .kol-textarea { width: 100%; } }'}}},[545,"kol-textarea",{_accessKey:[1,"_access-key"],_adjustHeight:[4,"_adjust-height"],_ariaDetails:[1,"_aria-details"],_disabled:[4],_hideMsg:[4,"_hide-msg"],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_infoPopover:[16],_label:[1],_maxLength:[2,"_max-length"],_hasCounter:[4,"_has-counter"],_maxLengthBehavior:[1,"_max-length-behavior"],_msg:[1],_name:[1],_on:[16],_placeholder:[1],_readOnly:[4,"_read-only"],_resize:[1],_required:[4],_rows:[1026],_shortKey:[1,"_short-key"],_spellCheck:[4,"_spell-check"],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[1537],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],getValue:[64],focus:[64],click:[64]},void 0,{_accessKey:[{watchAccessKey:0}],_adjustHeight:[{watchAdjustHeight:0}],_ariaDetails:[{watchAriaDetails:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_maxLength:[{watchMaxLength:0}],_hasCounter:[{watchHasCounter:0}],_maxLengthBehavior:[{watchMaxLengthBehavior:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_placeholder:[{watchPlaceholder:0}],_readOnly:[{watchReadOnly:0}],_resize:[{watchResize:0}],_required:[{watchRequired:0}],_rows:[{watchRows:0}],_shortKey:[{watchShortKey:0}],_spellCheck:[{watchSpellCheck:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]);n([D("ctaRef")],E.prototype,"focus",null),n([M("ctaRef")],E.prototype,"click",null);const G=E,F=function(){"undefined"!=typeof customElements&&["kol-textarea"].forEach((t=>{"kol-textarea"===t&&(customElements.get(i(t))||customElements.define(i(t),E))}))};export{G as KolTextarea,F as defineCustomElement}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h as o,proxyCustomElement as t,HTMLElement as e,Host as i,transformTag as n}from"@stencil/core/internal/client";import{t as l}from"./i18n.js";import{c as a,n as r}from"./dev.utils.js";import{f as s}from"./component-names.js";import{a as c}from"./tslib.es6.js";import{A as d}from"./component2.js";import{c as k}from"./clsx.js";import{L as b}from"./bem-registry.js";const f=t=>{var{status:e,toast:i,onClose:n}=t,l=c(t,["status","toast","onClose"]);const{type:s,label:b,description:f,variant:h}=i;return o("div",{class:k("kol-toast-item","kol-toast-item--"+e)},o(d,{alert:!0,class:"kol-toast-item__alert",closerAriaDescriptionId:r(),handleCloserClick:n,hasCloser:!0,headingId:a("alert-heading"),label:b,level:0,refCloserButton:()=>{},refCloserTooltip:()=>{},type:s,variant:h||"card"},o("div",Object.assign({},l),f)))},h=t(class extends e{constructor(o){super(),!1!==o&&this.__registerHost(),this.__attachShadow(),this.state={_toastStates:[]},this.translateToastCloseAll=l("kol-toast-close-all"),this.knownRenderFunctions=new Set}enqueue(o){const t={toast:Object.assign(Object.assign({},o),{variant:"card"}),status:"adding",id:a("toast")};return this.state=Object.assign(Object.assign({},this.state),{_toastStates:[t,...this.state._toastStates]}),setTimeout((()=>{this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.map((o=>o.id===t.id&&"removing"!==o.status?Object.assign(Object.assign({},o),{status:"settled"}):o))})}),300),Promise.resolve((()=>{this.handleClose(t)}))}closeAll(o=!1){if(o)this.state=Object.assign(Object.assign({},this.state),{_toastStates:[]}),this.knownRenderFunctions.clear();else{const o=[...this.state._toastStates];this.state=Object.assign(Object.assign({},this.state),{_toastStates:o.map((o=>Object.assign(Object.assign({},o),{status:"removing"})))}),setTimeout((()=>{this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.filter((t=>o.every((o=>o.id!==t.id))))}),o.forEach((o=>{var t,e;"function"==typeof o.toast.render&&this.knownRenderFunctions.delete(o.toast.render),null===(e=(t=o.toast).onClose)||void 0===e||e.call(t)}))}),300)}return Promise.resolve()}componentWillLoad(){b.warn("kol-toast-container is deprecated and will be removed in the next major version. Use kol-alert for inline notifications or kol-dialog for interactive messages instead. See https://github.com/public-ui/kolibri/issues/8372")}handleClose(o){const t=this.state._toastStates.find((t=>t.id===o.id));t&&"removing"!==t.status&&(this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.map((t=>t.id===o.id?Object.assign(Object.assign({},t),{status:"removing"}):t))}),setTimeout((()=>{var t,e;this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.filter((t=>t.id!==o.id))}),"function"==typeof o.toast.render&&this.knownRenderFunctions.delete(o.toast.render),null===(e=(t=o.toast).onClose)||void 0===e||e.call(t)}),300))}handleToastRef(o,t){t&&"function"==typeof o.toast.render&&!this.knownRenderFunctions.has(o.toast.render)&&(this.knownRenderFunctions.add(o.toast.render),o.toast.render(t,{close:()=>this.handleClose(o)}))}render(){return o(i,{key:"56aed44373c55a99b27ba0a087480b03c36e3f49",class:"kol-toast-container"},this.state._toastStates.length>1&&o(s,{key:"524283493e8d81895eea1d6696ff0d4889d5d61a",_label:this.translateToastCloseAll,class:"kol-toast-container__button-close-all",_on:{onClick:()=>{this.closeAll()}}}),this.state._toastStates.map((t=>o(f,{key:t.id,onClose:()=>this.handleClose(t),ref:o=>this.handleToastRef(t,o),toast:t.toast,status:t.status}))))}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794493099910"); src: url("kolicons.eot?t=1794493099910#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794493099910") format("woff2"), url("kolicons.woff?t=1794493099910") format("woff"), url("kolicons.ttf?t=1794493099910") format("truetype"), url("kolicons.svg?t=1794493099910#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: "​"; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } :host { display: flex; position: fixed; z-index: 200; max-width: 90vw; flex-direction: column; } .kol-toast-container__close-all { align-self: flex-end; } }'}}},[33,"kol-toast-container",{state:[32],enqueue:[64],closeAll:[64]}]),m=h,u=function(){"undefined"!=typeof customElements&&["kol-toast-container"].forEach((o=>{"kol-toast-container"===o&&(customElements.get(n(o))||customElements.define(n(o),h))}))};export{m as KolToastContainer,u as defineCustomElement}
4
+ import{h as o,proxyCustomElement as t,HTMLElement as e,Host as i,transformTag as n}from"@stencil/core/internal/client";import{t as l}from"./i18n.js";import{c as a,n as r}from"./dev.utils.js";import{f as s}from"./component-names.js";import{a as c}from"./tslib.es6.js";import{A as d}from"./component2.js";import{c as k}from"./clsx.js";import{L as b}from"./bem-registry.js";const f=t=>{var{status:e,toast:i,onClose:n}=t,l=c(t,["status","toast","onClose"]);const{type:s,label:b,description:f,variant:h}=i;return o("div",{class:k("kol-toast-item","kol-toast-item--"+e)},o(d,{alert:!0,class:"kol-toast-item__alert",closerAriaDescriptionId:r(),handleCloserClick:n,hasCloser:!0,headingId:a("alert-heading"),label:b,level:0,refCloserButton:()=>{},refCloserTooltip:()=>{},type:s,variant:h||"card"},o("div",Object.assign({},l),f)))},h=t(class extends e{constructor(o){super(),!1!==o&&this.__registerHost(),this.__attachShadow(),this.state={_toastStates:[]},this.translateToastCloseAll=l("kol-toast-close-all"),this.knownRenderFunctions=new Set}enqueue(o){const t={toast:Object.assign(Object.assign({},o),{variant:"card"}),status:"adding",id:a("toast")};return this.state=Object.assign(Object.assign({},this.state),{_toastStates:[t,...this.state._toastStates]}),setTimeout((()=>{this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.map((o=>o.id===t.id&&"removing"!==o.status?Object.assign(Object.assign({},o),{status:"settled"}):o))})}),300),Promise.resolve((()=>{this.handleClose(t)}))}closeAll(o=!1){if(o)this.state=Object.assign(Object.assign({},this.state),{_toastStates:[]}),this.knownRenderFunctions.clear();else{const o=[...this.state._toastStates];this.state=Object.assign(Object.assign({},this.state),{_toastStates:o.map((o=>Object.assign(Object.assign({},o),{status:"removing"})))}),setTimeout((()=>{this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.filter((t=>o.every((o=>o.id!==t.id))))}),o.forEach((o=>{var t,e;"function"==typeof o.toast.render&&this.knownRenderFunctions.delete(o.toast.render),null===(e=(t=o.toast).onClose)||void 0===e||e.call(t)}))}),300)}return Promise.resolve()}componentWillLoad(){b.warn("kol-toast-container is deprecated and will be removed in the next major version. Use kol-alert for inline notifications or kol-dialog for interactive messages instead. See https://github.com/public-ui/kolibri/issues/8372")}handleClose(o){const t=this.state._toastStates.find((t=>t.id===o.id));t&&"removing"!==t.status&&(this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.map((t=>t.id===o.id?Object.assign(Object.assign({},t),{status:"removing"}):t))}),setTimeout((()=>{var t,e;this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.filter((t=>t.id!==o.id))}),"function"==typeof o.toast.render&&this.knownRenderFunctions.delete(o.toast.render),null===(e=(t=o.toast).onClose)||void 0===e||e.call(t)}),300))}handleToastRef(o,t){t&&"function"==typeof o.toast.render&&!this.knownRenderFunctions.has(o.toast.render)&&(this.knownRenderFunctions.add(o.toast.render),o.toast.render(t,{close:()=>this.handleClose(o)}))}render(){return o(i,{key:"7c3623651b8bb10e3b8b7670a53605890d04b9be",class:"kol-toast-container"},this.state._toastStates.length>1&&o(s,{key:"3bfb7ef93ead485aa7a2588ab92b4a49371fe80b",_label:this.translateToastCloseAll,class:"kol-toast-container__button-close-all",_on:{onClick:()=>{this.closeAll()}}}),this.state._toastStates.map((t=>o(f,{key:t.id,onClose:()=>this.handleClose(t),ref:o=>this.handleToastRef(t,o),toast:t.toast,status:t.status}))))}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794582088003"); 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"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: "​"; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } :host { display: flex; position: fixed; z-index: 200; max-width: 90vw; flex-direction: column; } .kol-toast-container__close-all { align-self: flex-end; } }'}}},[33,"kol-toast-container",{state:[32],enqueue:[64],closeAll:[64]}]),m=h,u=function(){"undefined"!=typeof customElements&&["kol-toast-container"].forEach((o=>{"kol-toast-container"===o&&(customElements.get(n(o))||customElements.define(n(o),h))}))};export{m as KolToastContainer,u as defineCustomElement}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h as o,proxyCustomElement as e,Host as t,transformTag as n}from"@stencil/core/internal/client";import{B as i}from"./base-web-component.js";import{b as l,X as r,s as a}from"./bem-registry.js";import{c as s,e as c}from"./props-from-config.js";import{l as d}from"./label.js";import{o as k}from"./orientation.js";import{B as h}from"./component.js";import{B as b}from"./component9.js";import{L as f}from"./component6.js";import{p as m,a as p}from"./controller.js";import{n as u}from"./dev.utils.js";import{c as y,b as g,s as _}from"./element-interaction.js";import{d as x,K as v}from"./events.js";import{r as w}from"./resolve-props.js";import{r as j}from"./resolve-props2.js";import{T as z}from"./behavior.js";import{K as I}from"./keyboard.js";import{d as T,s as B}from"./element-focus.js";import{o as O}from"./ariaCurrentService.js";const E=s("items",[],(o=>c(o)),(o=>o.every((o=>"object"==typeof o&&null!==o)))),C={required:[d,E],optional:[k]},F=l.forBlock("kol-toolbar")("item"),L=({class:e,currentIndex:t,itemRecords:n,label:i,location:l,orientation:r})=>o(h,{block:"kol-toolbar",class:e,modifiers:{"orientation-horizontal":"horizontal"===r,"orientation-vertical":"vertical"===r},role:"toolbar","aria-label":i},n.map(((e,n)=>((e,t,n,i)=>{const l=t!==n||e.disabled?-1:0;return o("div",{class:F,key:t,ref:e.refWrapper},"link"===e.type?o(f,Object.assign({},e.getFcProps(l,i))):"button"===e.type?o(b,Object.assign({},e.getFcProps(l))):o("hr",null))})(e,n,t,l)))),D=[I.ArrowUp,I.ArrowDown,I.ArrowRight,I.ArrowLeft],G=e(class extends i{constructor(o){super(!1),!1!==o&&this.__registerHost(),this.__attachShadow(),this.currentIndex=0,this.itemRecords=[],this.location="",this.propsConfig=C,this._orientation=void 0}watchLabel(o){d.apply(o,(o=>this.setRenderProp("label",o)),this.isRequired("label"))}watchItems(o){E.apply(o,(o=>{this.setRenderProp("items",o),this.itemRecords.forEach((o=>o.destroy())),this.itemRecords=o.map((o=>((o,e)=>"link"===o.type?((o,e)=>{var t,n,l;const s=new z(i.stateLess),c=y(),d=u();let k;const h=o,b=j(Object.assign(Object.assign({},h),{_inline:null!==(t=h._inline)&&void 0!==t&&t,_variant:null!==(l=null!==(n=h._variant)&&void 0!==n?n:r("buttonVariantDefault",e()))&&void 0!==l?l:"normal"}));s.componentWillLoad({label:b.label.length>0?b.label:b.href,align:b.tooltipAlign});const f=o=>{s.hideTooltip(),b.disabled?o.preventDefault():("function"==typeof b.on.onClick&&(a(o,c.el),b.on.onClick(o,b.href)),k&&x(k,v.click,b.href))};return{type:"link",disabled:b.disabled,getElement:()=>c.el,getFcProps:(e,t)=>Object.assign(Object.assign({},b),{ariaCurrent:""!==t&&t===b.href?b.ariaCurrentValue:"",ariaDescriptionId:d,expertSlot:""===o._label,handleAnchorClick:f,refAnchor:c,refTooltip:s.setTooltipElementRef,tabIndex:"number"==typeof o._tabIndex?b.tabIndex:e}),refWrapper:o=>{k=o},syncListeners:()=>{c.el&&s.syncListeners(void 0,c.el,!0)},destroy:()=>s.destroy()}})(o,e):"button"===o.type?((o,e)=>{const t=new z(i.stateLess),n=y(),l=u();let r;const s=w(o,e()),c=o._value;t.componentWillLoad({label:s.label,align:s.tooltipAlign});const d=(o,e)=>{r&&x(r,o,e)},k=o=>{o.stopPropagation(),t.hideTooltip(),"submit"===s.type?m({form:r}):"reset"===s.type?p({form:r}):"function"==typeof s.on.onClick&&(a(o,n.el),s.on.onClick(o,c)),d(v.click,c)},h=o=>{var e,t;null===(t=(e=s.on).onMouseDown)||void 0===t||t.call(e,o),d(v.mousedown)},b=o=>{var e,t;null===(t=(e=s.on).onFocus)||void 0===t||t.call(e,o),d(v.focus)},f=o=>{var e,t;null===(t=(e=s.on).onBlur)||void 0===t||t.call(e,o),d(v.blur)};return{type:"button",disabled:s.disabled,getElement:()=>n.el,getFcProps:e=>Object.assign(Object.assign({},s),{ariaDescriptionId:l,handleBlur:f,handleClick:k,handleFocus:b,handleMouseDown:h,refButton:n,refTooltip:t.setTooltipElementRef,tabIndex:"number"==typeof o._tabIndex?s.tabIndex:e}),refWrapper:o=>{r=o},syncListeners:()=>{n.el&&t.syncListeners(void 0,n.el,!0)},destroy:()=>t.destroy()}})(o,e):(()=>{const o=y();return{type:"hr",disabled:!0,getElement:()=>o.el,refWrapper:()=>{},syncListeners:()=>{},destroy:()=>{}}})())(o,(()=>this.host)))),this.setFirstEnabledItemIndex()}))}watchOrientation(o){k.apply(o,(o=>this.setRenderProp("orientation",o)))}async focus(o){const e=this.getCurrentItemElement();if(e)return T(this.host,(()=>B(e,o)))}async click(){const o=this.getCurrentItemElement();if(o)return g(this.host,(async()=>_(o)))}componentWillLoad(){this.watchLabel(this._label),this.watchItems(this._items),this.watchOrientation(this._orientation),this.unsubscribeOnLocationChange=O((o=>{this.location=o}))}componentDidRender(){this.itemRecords.forEach((o=>o.syncListeners()))}disconnectedCallback(){this.unsubscribeOnLocationChange&&(this.unsubscribeOnLocationChange(),this.unsubscribeOnLocationChange=void 0),this.itemRecords.forEach((o=>o.destroy()))}handleKeyDown(o){var e;const t=o.code;if(!D.includes(t))return;if(o.preventDefault(),0===this.itemRecords.length)return;const n=this.findNextEnabledItemIndex(this.currentIndex,t===I.ArrowUp||t===I.ArrowLeft?-1:1);void 0!==n&&n!==this.currentIndex&&(this.currentIndex=n,null===(e=this.itemRecords[n].getElement())||void 0===e||e.focus())}handleFocusout(o){o.target===this.host&&this.setFirstEnabledItemIndex()}getCurrentItemElement(){const o=this.itemRecords[this.currentIndex];return o&&!o.disabled?o.getElement():void 0}setFirstEnabledItemIndex(){this.currentIndex=this.itemRecords.findIndex((o=>!o.disabled))}findNextEnabledItemIndex(o,e){const t=this.itemRecords.length;for(let n=1;n<=t;n++){const i=((o+e*n)%t+t)%t;if(!this.itemRecords[i].disabled)return i}}render(){return o(t,{key:"4c4c890db0d62196978f35293c3c5a04866727bc"},o(L,{key:"cc849b18f9614f0ae878dbaba6ac9aef46f15ce6",currentIndex:this.currentIndex,itemRecords:this.itemRecords,label:this.getRenderProp("label"),location:this.location,orientation:this.getRenderProp("orientation")}))}get host(){return this}static get watchers(){return{_label:[{watchLabel:0}],_items:[{watchItems:0}],_orientation:[{watchOrientation:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794493099910"); src: url("kolicons.eot?t=1794493099910#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794493099910") format("woff2"), url("kolicons.woff?t=1794493099910") format("woff"), url("kolicons.ttf?t=1794493099910") format("truetype"), url("kolicons.svg?t=1794493099910#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } :host { display: inline-block; } .kol-link { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-link__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-link__interactive-element::before { content: "​"; } .kol-link__text { flex: 1 0 100%; } .kol-link { } .kol-link__tooltip { height: 0; } .kol-link--external-link > .kolicon-link-external::before { content: none; } .kol-link--external-link .kol-link__interactive-element > .kolicon-link-external::before { content: none; } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } :host { display: inline-block; } .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-button__interactive-element::before { content: "​"; } .kol-button__text { flex: 1 0 100%; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-toolbar { display: flex; flex-wrap: wrap; align-items: stretch; } .kol-toolbar--orientation-horizontal .kol-toolbar__item hr { height: 100%; } .kol-toolbar--orientation-vertical { flex-direction: column; align-items: stretch; } .kol-toolbar--orientation-vertical .kol-span { align-items: flex-start; } .kol-toolbar__item hr { margin: 0; } .kol-toolbar:focus-within { outline: 1px solid; outline-offset: 2px; } }'}}},[545,"kol-toolbar",{_label:[1],_items:[16],_orientation:[1],currentIndex:[32],itemRecords:[32],location:[32],focus:[64],click:[64]},[[0,"keydown","handleKeyDown"],[2,"focusout","handleFocusout"]],{_label:[{watchLabel:0}],_items:[{watchItems:0}],_orientation:[{watchOrientation:0}]}]),K=G,R=function(){"undefined"!=typeof customElements&&["kol-toolbar"].forEach((o=>{"kol-toolbar"===o&&(customElements.get(n(o))||customElements.define(n(o),G))}))};export{K as KolToolbar,R as defineCustomElement}
4
+ import{h as o,proxyCustomElement as e,Host as t,transformTag as n}from"@stencil/core/internal/client";import{B as i}from"./base-web-component.js";import{b as l,X as r,s as a}from"./bem-registry.js";import{c as s,e as c}from"./props-from-config.js";import{l as d}from"./label.js";import{o as k}from"./orientation.js";import{B as h}from"./component.js";import{B as b}from"./component9.js";import{L as f}from"./component6.js";import{p as m,a as p}from"./controller.js";import{n as u}from"./dev.utils.js";import{c as y,b as g,s as _}from"./element-interaction.js";import{d as x,K as v}from"./events.js";import{r as w}from"./resolve-props.js";import{r as j}from"./resolve-props2.js";import{T as z}from"./behavior.js";import{K as I}from"./keyboard.js";import{d as T,s as B}from"./element-focus.js";import{o as O}from"./ariaCurrentService.js";const E=s("items",[],(o=>c(o)),(o=>o.every((o=>"object"==typeof o&&null!==o)))),C={required:[d,E],optional:[k]},F=l.forBlock("kol-toolbar")("item"),L=({class:e,currentIndex:t,itemRecords:n,label:i,location:l,orientation:r})=>o(h,{block:"kol-toolbar",class:e,modifiers:{"orientation-horizontal":"horizontal"===r,"orientation-vertical":"vertical"===r},role:"toolbar","aria-label":i},n.map(((e,n)=>((e,t,n,i)=>{const l=t!==n||e.disabled?-1:0;return o("div",{class:F,key:t,ref:e.refWrapper},"link"===e.type?o(f,Object.assign({},e.getFcProps(l,i))):"button"===e.type?o(b,Object.assign({},e.getFcProps(l))):o("hr",null))})(e,n,t,l)))),D=[I.ArrowUp,I.ArrowDown,I.ArrowRight,I.ArrowLeft],G=e(class extends i{constructor(o){super(!1),!1!==o&&this.__registerHost(),this.__attachShadow(),this.currentIndex=0,this.itemRecords=[],this.location="",this.propsConfig=C,this._orientation=void 0}watchLabel(o){d.apply(o,(o=>this.setRenderProp("label",o)),this.isRequired("label"))}watchItems(o){E.apply(o,(o=>{this.setRenderProp("items",o),this.itemRecords.forEach((o=>o.destroy())),this.itemRecords=o.map((o=>((o,e)=>"link"===o.type?((o,e)=>{var t,n,l;const s=new z(i.stateLess),c=y(),d=u();let k;const h=o,b=j(Object.assign(Object.assign({},h),{_inline:null!==(t=h._inline)&&void 0!==t&&t,_variant:null!==(l=null!==(n=h._variant)&&void 0!==n?n:r("buttonVariantDefault",e()))&&void 0!==l?l:"normal"}));s.componentWillLoad({label:b.label.length>0?b.label:b.href,align:b.tooltipAlign});const f=o=>{s.hideTooltip(),b.disabled?o.preventDefault():("function"==typeof b.on.onClick&&(a(o,c.el),b.on.onClick(o,b.href)),k&&x(k,v.click,b.href))};return{type:"link",disabled:b.disabled,getElement:()=>c.el,getFcProps:(e,t)=>Object.assign(Object.assign({},b),{ariaCurrent:""!==t&&t===b.href?b.ariaCurrentValue:"",ariaDescriptionId:d,expertSlot:""===o._label,handleAnchorClick:f,refAnchor:c,refTooltip:s.setTooltipElementRef,tabIndex:"number"==typeof o._tabIndex?b.tabIndex:e}),refWrapper:o=>{k=o},syncListeners:()=>{c.el&&s.syncListeners(void 0,c.el,!0)},destroy:()=>s.destroy()}})(o,e):"button"===o.type?((o,e)=>{const t=new z(i.stateLess),n=y(),l=u();let r;const s=w(o,e()),c=o._value;t.componentWillLoad({label:s.label,align:s.tooltipAlign});const d=(o,e)=>{r&&x(r,o,e)},k=o=>{o.stopPropagation(),t.hideTooltip(),"submit"===s.type?m({form:r}):"reset"===s.type?p({form:r}):"function"==typeof s.on.onClick&&(a(o,n.el),s.on.onClick(o,c)),d(v.click,c)},h=o=>{var e,t;null===(t=(e=s.on).onMouseDown)||void 0===t||t.call(e,o),d(v.mousedown)},b=o=>{var e,t;null===(t=(e=s.on).onFocus)||void 0===t||t.call(e,o),d(v.focus)},f=o=>{var e,t;null===(t=(e=s.on).onBlur)||void 0===t||t.call(e,o),d(v.blur)};return{type:"button",disabled:s.disabled,getElement:()=>n.el,getFcProps:e=>Object.assign(Object.assign({},s),{ariaDescriptionId:l,handleBlur:f,handleClick:k,handleFocus:b,handleMouseDown:h,refButton:n,refTooltip:t.setTooltipElementRef,tabIndex:"number"==typeof o._tabIndex?s.tabIndex:e}),refWrapper:o=>{r=o},syncListeners:()=>{n.el&&t.syncListeners(void 0,n.el,!0)},destroy:()=>t.destroy()}})(o,e):(()=>{const o=y();return{type:"hr",disabled:!0,getElement:()=>o.el,refWrapper:()=>{},syncListeners:()=>{},destroy:()=>{}}})())(o,(()=>this.host)))),this.setFirstEnabledItemIndex()}))}watchOrientation(o){k.apply(o,(o=>this.setRenderProp("orientation",o)))}async focus(o){const e=this.getCurrentItemElement();if(e)return T(this.host,(()=>B(e,o)))}async click(){const o=this.getCurrentItemElement();if(o)return g(this.host,(async()=>_(o)))}componentWillLoad(){this.watchLabel(this._label),this.watchItems(this._items),this.watchOrientation(this._orientation),this.unsubscribeOnLocationChange=O((o=>{this.location=o}))}componentDidRender(){this.itemRecords.forEach((o=>o.syncListeners()))}disconnectedCallback(){this.unsubscribeOnLocationChange&&(this.unsubscribeOnLocationChange(),this.unsubscribeOnLocationChange=void 0),this.itemRecords.forEach((o=>o.destroy()))}handleKeyDown(o){var e;const t=o.code;if(!D.includes(t))return;if(o.preventDefault(),0===this.itemRecords.length)return;const n=this.findNextEnabledItemIndex(this.currentIndex,t===I.ArrowUp||t===I.ArrowLeft?-1:1);void 0!==n&&n!==this.currentIndex&&(this.currentIndex=n,null===(e=this.itemRecords[n].getElement())||void 0===e||e.focus())}handleFocusout(o){o.target===this.host&&this.setFirstEnabledItemIndex()}getCurrentItemElement(){const o=this.itemRecords[this.currentIndex];return o&&!o.disabled?o.getElement():void 0}setFirstEnabledItemIndex(){this.currentIndex=this.itemRecords.findIndex((o=>!o.disabled))}findNextEnabledItemIndex(o,e){const t=this.itemRecords.length;for(let n=1;n<=t;n++){const i=((o+e*n)%t+t)%t;if(!this.itemRecords[i].disabled)return i}}render(){return o(t,{key:"10c807156e0a9f91b26ffb26ac01768029106dab"},o(L,{key:"7ebbb8a2e88664afddf0c66e046003b21ba0e3d5",currentIndex:this.currentIndex,itemRecords:this.itemRecords,label:this.getRenderProp("label"),location:this.location,orientation:this.getRenderProp("orientation")}))}get host(){return this}static get watchers(){return{_label:[{watchLabel:0}],_items:[{watchItems:0}],_orientation:[{watchOrientation:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794582088003"); 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"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } :host { display: inline-block; } .kol-link { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-link__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-link__interactive-element::before { content: "​"; } .kol-link__text { flex: 1 0 100%; } .kol-link { } .kol-link__tooltip { height: 0; } .kol-link--external-link > .kolicon-link-external::before { content: none; } .kol-link--external-link .kol-link__interactive-element > .kolicon-link-external::before { content: none; } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } :host { display: inline-block; } .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-button__interactive-element::before { content: "​"; } .kol-button__text { flex: 1 0 100%; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-toolbar { display: flex; flex-wrap: wrap; align-items: stretch; } .kol-toolbar--orientation-horizontal .kol-toolbar__item hr { height: 100%; } .kol-toolbar--orientation-vertical { flex-direction: column; align-items: stretch; } .kol-toolbar--orientation-vertical .kol-span { align-items: flex-start; } .kol-toolbar__item hr { margin: 0; } .kol-toolbar:focus-within { outline: 1px solid; outline-offset: 2px; } }'}}},[545,"kol-toolbar",{_label:[1],_items:[16],_orientation:[1],currentIndex:[32],itemRecords:[32],location:[32],focus:[64],click:[64]},[[0,"keydown","handleKeyDown"],[2,"focusout","handleFocusout"]],{_label:[{watchLabel:0}],_items:[{watchItems:0}],_orientation:[{watchOrientation:0}]}]),K=G,R=function(){"undefined"!=typeof customElements&&["kol-toolbar"].forEach((o=>{"kol-toolbar"===o&&(customElements.get(n(o))||customElements.define(n(o),G))}))};export{K as KolToolbar,R as defineCustomElement}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{proxyCustomElement as i,HTMLElement as t,h as e,Host as l,transformTag as o}from"@stencil/core/internal/client";import{B as a}from"./base-web-component.js";import{T as d}from"./behavior.js";import{T as n}from"./component10.js";const s=i(class extends t{constructor(i){super(),!1!==i&&this.__registerHost(),this.tooltipBehavior=new d(a.stateLess),this._badgeText=void 0,this._align="top",this._id=void 0}validateAlign(i){var t;null===(t=this.tooltipBehavior)||void 0===t||t.watchAlign(i)}validateId(i){var t;null===(t=this.tooltipBehavior)||void 0===t||t.watchId(i)}validateLabel(i){var t;null===(t=this.tooltipBehavior)||void 0===t||t.watchLabel(i)}hideTooltip(){var i;return Promise.resolve(null===(i=this.tooltipBehavior)||void 0===i?void 0:i.hideTooltip())}connectedCallback(){var i,t,e;null===(i=this.tooltipBehavior)||void 0===i||i.initContext(null!==(e=null===(t=this.host)||void 0===t?void 0:t.previousElementSibling)&&void 0!==e?e:void 0)}componentWillLoad(){this.tooltipBehavior.componentWillLoad({label:this._label,align:this._align,badgeText:this._badgeText,id:this._id})}componentDidRender(){var i;this.host&&(null===(i=this.tooltipBehavior)||void 0===i||i.handleEventListeners(this.host))}disconnectedCallback(){var i;null===(i=this.tooltipBehavior)||void 0===i||i.destroy()}render(){return e(l,{key:"d36c595b4ac8424320bc5ecaae1080197521c8b1",class:"kol-tooltip"},e(n,{key:"6ba8643d938bed5ccfadd4579acc6478426f3c5e",label:this.tooltipBehavior.getRenderProp("label"),badgeText:this._badgeText,id:this.tooltipBehavior.getRenderProp("id"),refFloating:i=>{var t;return null===(t=this.tooltipBehavior)||void 0===t?void 0:t.setTooltipElementRef(i)}}))}get host(){return this}static get watchers(){return{_align:[{validateAlign:0}],_id:[{validateId:0}],_label:[{validateLabel:0}]}}},[0,"kol-tooltip-wc",{_badgeText:[1,"_badge-text"],_align:[1],_id:[1],_label:[1],hideTooltip:[64]},void 0,{_align:[{validateAlign:0}],_id:[{validateId:0}],_label:[{validateLabel:0}]}]),r=s,c=function(){"undefined"!=typeof customElements&&["kol-tooltip-wc"].forEach((i=>{"kol-tooltip-wc"===i&&(customElements.get(o(i))||customElements.define(o(i),s))}))};export{r as KolTooltipWc,c as defineCustomElement}
4
+ import{proxyCustomElement as i,HTMLElement as t,h as e,Host as l,transformTag as o}from"@stencil/core/internal/client";import{B as a}from"./base-web-component.js";import{T as d}from"./behavior.js";import{T as n}from"./component10.js";const s=i(class extends t{constructor(i){super(),!1!==i&&this.__registerHost(),this.tooltipBehavior=new d(a.stateLess),this._badgeText=void 0,this._align="top",this._id=void 0}validateAlign(i){var t;null===(t=this.tooltipBehavior)||void 0===t||t.watchAlign(i)}validateId(i){var t;null===(t=this.tooltipBehavior)||void 0===t||t.watchId(i)}validateLabel(i){var t;null===(t=this.tooltipBehavior)||void 0===t||t.watchLabel(i)}hideTooltip(){var i;return Promise.resolve(null===(i=this.tooltipBehavior)||void 0===i?void 0:i.hideTooltip())}connectedCallback(){var i,t,e;null===(i=this.tooltipBehavior)||void 0===i||i.initContext(null!==(e=null===(t=this.host)||void 0===t?void 0:t.previousElementSibling)&&void 0!==e?e:void 0)}componentWillLoad(){this.tooltipBehavior.componentWillLoad({label:this._label,align:this._align,badgeText:this._badgeText,id:this._id})}componentDidRender(){var i;this.host&&(null===(i=this.tooltipBehavior)||void 0===i||i.handleEventListeners(this.host))}disconnectedCallback(){var i;null===(i=this.tooltipBehavior)||void 0===i||i.destroy()}render(){return e(l,{key:"a0f2a8ea9f13c720320d69166664f24875b6a92e",class:"kol-tooltip"},e(n,{key:"b0459c0faf4862e66e4704503a47bd9499e5181e",label:this.tooltipBehavior.getRenderProp("label"),badgeText:this._badgeText,id:this.tooltipBehavior.getRenderProp("id"),refFloating:i=>{var t;return null===(t=this.tooltipBehavior)||void 0===t?void 0:t.setTooltipElementRef(i)}}))}get host(){return this}static get watchers(){return{_align:[{validateAlign:0}],_id:[{validateId:0}],_label:[{validateLabel:0}]}}},[0,"kol-tooltip-wc",{_badgeText:[1,"_badge-text"],_align:[1],_id:[1],_label:[1],hideTooltip:[64]},void 0,{_align:[{validateAlign:0}],_id:[{validateId:0}],_label:[{validateLabel:0}]}]),r=s,v=function(){"undefined"!=typeof customElements&&["kol-tooltip-wc"].forEach((i=>{"kol-tooltip-wc"===i&&(customElements.get(o(i))||customElements.define(o(i),s))}))};export{r as KolTooltipWc,v as defineCustomElement}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h as e,proxyCustomElement as o,Host as t,transformTag as i}from"@stencil/core/internal/client";import{_ as n}from"./tslib.es6.js";import{h as l}from"./component-names.js";import{B as r}from"./base-web-component.js";import{b as a}from"./bem-registry.js";import{c as s,n as c,d as h}from"./props-from-config.js";import{h as d}from"./href.js";import{l as f}from"./label-lang-segment.js";import{I as k}from"./component5.js";import{l as b,L as m,a as p}from"./component6.js";import{r as u}from"./component7.js";import{o as g}from"./open.js";import{c as v}from"./dev.utils.js";import{c as _,e as y}from"./element-interaction.js";import{d as x,K as w}from"./events.js";import{o as j}from"./ariaCurrentService.js";import{i as C}from"./open-items-cache.js";const T=s("active",!1,c),z={required:[d,f],optional:[T]},A=a.forBlock("kol-tree-item"),I=A(),O=A("children"),B=A("link-inner"),S=A("text"),G=A("toggle-button"),L=A("toggle-button-icon"),E=A("toggle-button-placeholder"),H=Object.freeze(h(b)),P=()=>{},F=({active:o,ariaCurrent:t,groupId:i,handleAnchorClick:n,handleSlotchange:l,handleToggleClick:r,hasChildren:a,href:s,label:c,level:h,open:d,refAnchor:f})=>e("li",{class:I,role:"none",style:{"--level":""+h}},e("span",{class:A("link",{active:o,"first-level":0===h})},e(m,Object.assign({},H,{ariaCurrent:t,ariaDescriptionId:"",ariaExpanded:a?d?"true":"false":"",ariaOwns:a?i:"",expertSlot:!0,handleAnchorClick:n,href:s,label:"",refAnchor:f,refTooltip:P,role:"treeitem",tabIndex:o?0:-1}),e("span",{class:B},a?e("span",{class:G,onClick:r},e(k,{class:L,icons:"kolicon kolicon-"+(d?"chevron-down":"chevron-right"),label:""})):e("span",{class:E}),e("span",{class:S},u(c))))),e("ul",{class:O,hidden:!a||!d,role:"group",id:i},e("slot",{onSlotchange:l}))),D=o(class extends r{constructor(e){super(!1),!1!==e&&this.__registerHost(),this.__attachShadow(),this.ariaCurrent="",this.groupId=v("tree-group"),this.hasChildren=!1,this.level=0,this.open=!1,this.anchorRef=_(),this.propsConfig=z,this._active=void 0,this._open=void 0,this.handleAnchorClick=()=>{this.host&&x(this.host,w.click,this.getRenderProp("href"))},this.handleSlotchange=()=>{this.checkForChildren()},this.handleToggleClick=e=>{e.preventDefault();const o=this.open;this.focus().then((()=>this.setOpen(!o)))}}watchActive(e){T.apply(e,(e=>this.setRenderProp("active",e)))}watchLabel(e){f.apply(e,(e=>this.setRenderProp("label",e)),this.isRequired("label"))}watchOpen(e){g.apply(e,(e=>this.open=e))}watchHref(e){d.apply(e,(e=>this.setRenderProp("href",e)),this.isRequired("href"))}focus(e){return Promise.resolve()}expand(){return this.setOpen(!0),Promise.resolve()}collapse(){return this.setOpen(!1),Promise.resolve()}isOpen(){return Promise.resolve(this.open)}componentWillLoad(){this.watchActive(this._active),this.watchHref(this._href),this.watchLabel(this._label),this.watchOpen(this._open),this.checkForChildren(),this.determineTreeItemDepth(),this.unsubscribeOnLocationChange=j((e=>{const o=e===this.getRenderProp("href")?p.getDefaultValue():"";this.ariaCurrent!==o&&(this.ariaCurrent=o)}))}disconnectedCallback(){this.unsubscribeOnLocationChange&&(this.unsubscribeOnLocationChange(),this.unsubscribeOnLocationChange=void 0)}determineTreeItemDepth(){var e,o;let t=0,i=null!==(o=null===(e=this.host)||void 0===e?void 0:e.parentElement)&&void 0!==o?o:null;for(;null!==i&&i.tagName.toLowerCase()!==l&&i!==document.body;)i=i.parentElement,t+=1;this.level=t}checkForChildren(){var e,o;this.hasChildren=Array.from(null!==(o=null===(e=this.host)||void 0===e?void 0:e.children)&&void 0!==o?o:[]).some((e=>!e.slot))}getTree(){var e;let o=this.host;for(;o;){const t=o.closest(l);if(t)return t;const i=null===(e=o.getRootNode())||void 0===e?void 0:e.host;if(!i||i===document.body)break;o=i}}setOpen(e){this.hasChildren&&(this.open=e,C(this.getTree()))}render(){return e(t,{key:"14f2e3fc8f9962709affacb42713fa34191d92ac"},e(F,{key:"0f686e7c0614786b21b2d334fcfd25b19cb320f5",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}))}get host(){return this}static get watchers(){return{_active:[{watchActive:0}],_label:[{watchLabel:0}],_open:[{watchOpen:0}],_href:[{watchHref:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794493099910"); src: url("kolicons.eot?t=1794493099910#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794493099910") format("woff2"), url("kolicons.woff?t=1794493099910") format("woff"), url("kolicons.ttf?t=1794493099910") format("truetype"), url("kolicons.svg?t=1794493099910#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tree-item__link .kol-link { display: inline-flex; width: 100%; min-height: var(--a11y-min-size); align-items: center; text-decoration: none; } .kol-tree-item__link .kol-link__interactive-element { flex: 1 1 auto; text-decoration: none; } .kol-tree-item__link-inner { display: flex; align-items: center; } .kol-tree-item__children { margin: 0; padding: 0; list-style: none; } .kol-tree-item .kol-span { place-items: unset; } .kol-tree-item__toggle-button, .kol-tree-item__toggle-button-placeholder { display: inline-flex; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; justify-content: center; } .kol-tree-item__text { text-decoration: underline; } }'}}},[545,"kol-tree-item",{_active:[4],_label:[1],_open:[4],_href:[1],ariaCurrent:[32],groupId:[32],hasChildren:[32],level:[32],open:[32],focus:[64],expand:[64],collapse:[64],isOpen:[64]},void 0,{_active:[{watchActive:0}],_label:[{watchLabel:0}],_open:[{watchOpen:0}],_href:[{watchHref:0}]}]);n([y("anchorRef")],D.prototype,"focus",null);const q=D,K=function(){"undefined"!=typeof customElements&&["kol-tree-item"].forEach((e=>{"kol-tree-item"===e&&(customElements.get(i(e))||customElements.define(i(e),D))}))};export{q as KolTreeItem,K as defineCustomElement}
4
+ import{h as e,proxyCustomElement as o,Host as t,transformTag as i}from"@stencil/core/internal/client";import{_ as n}from"./tslib.es6.js";import{h as l}from"./component-names.js";import{B as r}from"./base-web-component.js";import{b as a}from"./bem-registry.js";import{c as s,n as c,d as h}from"./props-from-config.js";import{h as d}from"./href.js";import{l as f}from"./label-lang-segment.js";import{I as k}from"./component5.js";import{l as b,L as m,a as p}from"./component6.js";import{r as u}from"./component7.js";import{o as g}from"./open.js";import{c as v}from"./dev.utils.js";import{c as _,e as y}from"./element-interaction.js";import{d as x,K as w}from"./events.js";import{o as j}from"./ariaCurrentService.js";import{i as C}from"./open-items-cache.js";const T=s("active",!1,c),z={required:[d,f],optional:[T]},A=a.forBlock("kol-tree-item"),I=A(),O=A("children"),B=A("link-inner"),S=A("text"),G=A("toggle-button"),L=A("toggle-button-icon"),E=A("toggle-button-placeholder"),H=Object.freeze(h(b)),P=()=>{},F=({active:o,ariaCurrent:t,groupId:i,handleAnchorClick:n,handleSlotchange:l,handleToggleClick:r,hasChildren:a,href:s,label:c,level:h,open:d,refAnchor:f})=>e("li",{class:I,role:"none",style:{"--level":""+h}},e("span",{class:A("link",{active:o,"first-level":0===h})},e(m,Object.assign({},H,{ariaCurrent:t,ariaDescriptionId:"",ariaExpanded:a?d?"true":"false":"",ariaOwns:a?i:"",expertSlot:!0,handleAnchorClick:n,href:s,label:"",refAnchor:f,refTooltip:P,role:"treeitem",tabIndex:o?0:-1}),e("span",{class:B},a?e("span",{class:G,onClick:r},e(k,{class:L,icons:"kolicon kolicon-"+(d?"chevron-down":"chevron-right"),label:""})):e("span",{class:E}),e("span",{class:S},u(c))))),e("ul",{class:O,hidden:!a||!d,role:"group",id:i},e("slot",{onSlotchange:l}))),D=o(class extends r{constructor(e){super(!1),!1!==e&&this.__registerHost(),this.__attachShadow(),this.ariaCurrent="",this.groupId=v("tree-group"),this.hasChildren=!1,this.level=0,this.open=!1,this.anchorRef=_(),this.propsConfig=z,this._active=void 0,this._open=void 0,this.handleAnchorClick=()=>{this.host&&x(this.host,w.click,this.getRenderProp("href"))},this.handleSlotchange=()=>{this.checkForChildren()},this.handleToggleClick=e=>{e.preventDefault();const o=this.open;this.focus().then((()=>this.setOpen(!o)))}}watchActive(e){T.apply(e,(e=>this.setRenderProp("active",e)))}watchLabel(e){f.apply(e,(e=>this.setRenderProp("label",e)),this.isRequired("label"))}watchOpen(e){g.apply(e,(e=>this.open=e))}watchHref(e){d.apply(e,(e=>this.setRenderProp("href",e)),this.isRequired("href"))}focus(e){return Promise.resolve()}expand(){return this.setOpen(!0),Promise.resolve()}collapse(){return this.setOpen(!1),Promise.resolve()}isOpen(){return Promise.resolve(this.open)}componentWillLoad(){this.watchActive(this._active),this.watchHref(this._href),this.watchLabel(this._label),this.watchOpen(this._open),this.checkForChildren(),this.determineTreeItemDepth(),this.unsubscribeOnLocationChange=j((e=>{const o=e===this.getRenderProp("href")?p.getDefaultValue():"";this.ariaCurrent!==o&&(this.ariaCurrent=o)}))}disconnectedCallback(){this.unsubscribeOnLocationChange&&(this.unsubscribeOnLocationChange(),this.unsubscribeOnLocationChange=void 0)}determineTreeItemDepth(){var e,o;let t=0,i=null!==(o=null===(e=this.host)||void 0===e?void 0:e.parentElement)&&void 0!==o?o:null;for(;null!==i&&i.tagName.toLowerCase()!==l&&i!==document.body;)i=i.parentElement,t+=1;this.level=t}checkForChildren(){var e,o;this.hasChildren=Array.from(null!==(o=null===(e=this.host)||void 0===e?void 0:e.children)&&void 0!==o?o:[]).some((e=>!e.slot))}getTree(){var e;let o=this.host;for(;o;){const t=o.closest(l);if(t)return t;const i=null===(e=o.getRootNode())||void 0===e?void 0:e.host;if(!i||i===document.body)break;o=i}}setOpen(e){this.hasChildren&&(this.open=e,C(this.getTree()))}render(){return e(t,{key:"52b3ee0d7b7d593abeaf27e782a5e3ed384d710f"},e(F,{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}))}get host(){return this}static get watchers(){return{_active:[{watchActive:0}],_label:[{watchLabel:0}],_open:[{watchOpen:0}],_href:[{watchHref:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794582088003"); 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"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tree-item__link .kol-link { display: inline-flex; width: 100%; min-height: var(--a11y-min-size); align-items: center; text-decoration: none; } .kol-tree-item__link .kol-link__interactive-element { flex: 1 1 auto; text-decoration: none; } .kol-tree-item__link-inner { display: flex; align-items: center; } .kol-tree-item__children { margin: 0; padding: 0; list-style: none; } .kol-tree-item .kol-span { place-items: unset; } .kol-tree-item__toggle-button, .kol-tree-item__toggle-button-placeholder { display: inline-flex; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; justify-content: center; } .kol-tree-item__text { text-decoration: underline; } }'}}},[545,"kol-tree-item",{_active:[4],_label:[1],_open:[4],_href:[1],ariaCurrent:[32],groupId:[32],hasChildren:[32],level:[32],open:[32],focus:[64],expand:[64],collapse:[64],isOpen:[64]},void 0,{_active:[{watchActive:0}],_label:[{watchLabel:0}],_open:[{watchOpen:0}],_href:[{watchHref:0}]}]);n([y("anchorRef")],D.prototype,"focus",null);const q=D,K=function(){"undefined"!=typeof customElements&&["kol-tree-item"].forEach((e=>{"kol-tree-item"===e&&(customElements.get(i(e))||customElements.define(i(e),D))}))};export{q as KolTreeItem,K as defineCustomElement}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h as e,proxyCustomElement as t,Host as o,transformTag as i}from"@stencil/core/internal/client";import{g as a,h as l}from"./component-names.js";import{B as n}from"./base-web-component.js";import{b as r}from"./bem-registry.js";import"./props-from-config.js";import{l as s}from"./label.js";import{d}from"./element-focus.js";import{r as c,u as h}from"./open-items-cache.js";const u={required:[s]},b=r.forBlock("kol-tree"),m=b(),k=b("treeview-navigation"),f=({handleSlotchange:t,label:o})=>e("nav",{class:m,"aria-label":o},e("ul",{class:k,role:"tree","aria-label":o},e("slot",{onSlotchange:t}))),p=e=>(null==e?void 0:e.tagName)===a.toUpperCase(),v=t(class extends n{constructor(e){super(!1),!1!==e&&this.__registerHost(),this.__attachShadow(),this.cacheValid=!1,this.propsConfig=u,this.invalidateOpenItemsCache=()=>{this.cacheValid=!1},this.handleSlotchange=()=>{this.observeTopLevelItems(),this.scheduleTreeChange()}}watchLabel(e){s.apply(e,(e=>this.setRenderProp("label",e)),this.isRequired("label"))}async focus(e){this.host&&await d(this.host,(async()=>{var t;const o=await this.getOpenTreeItemElements();await(null===(t=null==o?void 0:o[0])||void 0===t?void 0:t.focus(e))}))}connectedCallback(){this.host&&c(this.host,this.invalidateOpenItemsCache)}componentWillLoad(){this.watchLabel(this._label),this.handleTreeChange(),this.observeChildListMutations()}disconnectedCallback(){var e;this.host&&h(this.host),null===(e=this.observer)||void 0===e||e.disconnect(),void 0!==this.rafHandle&&(cancelAnimationFrame(this.rafHandle),this.rafHandle=void 0)}async handleKeyDown(e){var t,o,i,l,n,r,s,d,c,h;const u=await this.getOpenTreeItemElements(),b=null===(t=document.activeElement)||void 0===t?void 0:t.closest(a),m=e.metaKey||e.altKey||e.ctrlKey||e.shiftKey;if(!u||!b)return;const k=u.findIndex((e=>e===b));switch(e.key){case"ArrowDown":await(null===(o=u[k+1])||void 0===o?void 0:o.focus()),e.preventDefault();break;case"ArrowUp":await(null===(i=u[k-1])||void 0===i?void 0:i.focus()),e.preventDefault();break;case"Right":case"ArrowRight":e.preventDefault(),await b.isOpen()?await(null===(l=u[k+1])||void 0===l?void 0:l.focus()):await b.expand();break;case"Left":case"ArrowLeft":if(e.preventDefault(),await b.isOpen())await b.collapse();else{const e=b.parentElement,t=e?u.indexOf(e):-1;-1!==t&&await(null===(n=u[t])||void 0===n?void 0:n.focus())}break;case"Home":await(null===(r=u[0])||void 0===r?void 0:r.focus()),e.preventDefault();break;case"End":await(null===(s=u[u.length-1])||void 0===s?void 0:s.focus()),e.preventDefault();break;case null===(d=e.key.match(/^[a-zA-Z0-9]$/))||void 0===d?void 0:d.input:if(!m){const t=e.key.toLowerCase(),o=k+1,i=e=>{var o,i;return null!==(i=null===(o=e.getAttribute("_label"))||void 0===o?void 0:o.trim().toLowerCase().startsWith(t))&&void 0!==i&&i};let a=u.slice(o).findIndex(i);-1===a?a=u.slice(0,o).findIndex(i):a+=o,-1!==a&&(await(null===(c=u[a])||void 0===c?void 0:c.focus()),e.preventDefault())}break;case"*":{const e=null===(h=b.parentElement)||void 0===h?void 0:h.querySelectorAll(a);null==e||e.forEach((e=>{e.expand()}));break}}}handleFocusIn(e){var t;e.target!==this.host||(null===(t=document.activeElement)||void 0===t?void 0:t.closest(a))||requestAnimationFrame((()=>{this.focus()}))}handleFocusOut(e){e.relatedTarget&&!e.relatedTarget.closest(l)&&this.ensureActiveItemVisibility()}observeChildListMutations(){this.observer=new MutationObserver((()=>this.scheduleTreeChange())),this.observeTopLevelItems()}observeTopLevelItems(){this.getTopLevelTreeItems().forEach((e=>{var t;null===(t=this.observer)||void 0===t||t.observe(e,{childList:!0,subtree:!0})}))}scheduleTreeChange(){this.rafHandle&&cancelAnimationFrame(this.rafHandle),this.rafHandle=requestAnimationFrame((()=>{this.handleTreeChange()}))}getTopLevelTreeItems(){var e,t;return Array.from(null!==(t=null===(e=this.host)||void 0===e?void 0:e.children)&&void 0!==t?t:[]).filter((e=>p(e)&&!e.slot))}handleTreeChange(){this.treeItemElements=this.getTreeItemElements(),this.cacheValid=!1,this.ensureActiveItemVisibility()}getTreeItemElements(){return this.getTopLevelTreeItems().reduce(((e,t)=>{const o=t.querySelectorAll(a);return[...e,t,...o]}),[])}async getOpenTreeItemElements(){if(!this.treeItemElements)return;if(this.cacheValid&&this.cachedOpenItems)return this.cachedOpenItems;const e=async e=>{let t=e.parentElement;for(;p(t);){if(!await t.isOpen())return!1;t=t.parentElement}return!0};return this.cachedOpenItems=await Promise.all(this.treeItemElements.map((async t=>({item:t,isOpen:await e(t)})))).then((e=>e.filter((({isOpen:e})=>e)).map((({item:e})=>e)))),this.cacheValid=!0,this.cachedOpenItems}ensureActiveItemVisibility(){const e=t=>{p(t.parentElement)&&(t.parentElement.expand(),e(t.parentElement))},t=(()=>{for(const e of this.getTopLevelTreeItems()){if(e._active)return e;const t=e.querySelector(a+'[_active="true"]');if(null==t?void 0:t._active)return t}})();t&&e(t)}render(){return e(o,{key:"a8e0b251f295562720bc046f9b14d4741781583e",tabindex:"0"},e(f,{key:"fd1b8bdbcfcc9af312905739d58e3dfddde22e49",handleSlotchange:this.handleSlotchange,label:this.getRenderProp("label")}))}get host(){return this}static get watchers(){return{_label:[{watchLabel:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { .kol-tree__treeview-navigation { margin: 0; padding: 0; list-style: none; } .kol-tree:focus-within { outline: 1px solid; outline-offset: 2px; } }'}}},[545,"kol-tree",{_label:[1],focus:[64]},[[0,"keydown","handleKeyDown"],[0,"focusin","handleFocusIn"],[0,"focusout","handleFocusOut"]],{_label:[{watchLabel:0}]}]),g=v,w=function(){"undefined"!=typeof customElements&&["kol-tree"].forEach((e=>{"kol-tree"===e&&(customElements.get(i(e))||customElements.define(i(e),v))}))};export{g as KolTree,w as defineCustomElement}
4
+ import{h as e,proxyCustomElement as t,Host as o,transformTag as i}from"@stencil/core/internal/client";import{g as a,h as l}from"./component-names.js";import{B as n}from"./base-web-component.js";import{b as r}from"./bem-registry.js";import"./props-from-config.js";import{l as s}from"./label.js";import{d}from"./element-focus.js";import{r as c,u as h}from"./open-items-cache.js";const u={required:[s]},b=r.forBlock("kol-tree"),m=b(),k=b("treeview-navigation"),f=({handleSlotchange:t,label:o})=>e("nav",{class:m,"aria-label":o},e("ul",{class:k,role:"tree","aria-label":o},e("slot",{onSlotchange:t}))),p=e=>(null==e?void 0:e.tagName)===a.toUpperCase(),v=t(class extends n{constructor(e){super(!1),!1!==e&&this.__registerHost(),this.__attachShadow(),this.cacheValid=!1,this.propsConfig=u,this.invalidateOpenItemsCache=()=>{this.cacheValid=!1},this.handleSlotchange=()=>{this.observeTopLevelItems(),this.scheduleTreeChange()}}watchLabel(e){s.apply(e,(e=>this.setRenderProp("label",e)),this.isRequired("label"))}async focus(e){this.host&&await d(this.host,(async()=>{var t;const o=await this.getOpenTreeItemElements();await(null===(t=null==o?void 0:o[0])||void 0===t?void 0:t.focus(e))}))}connectedCallback(){this.host&&c(this.host,this.invalidateOpenItemsCache)}componentWillLoad(){this.watchLabel(this._label),this.handleTreeChange(),this.observeChildListMutations()}disconnectedCallback(){var e;this.host&&h(this.host),null===(e=this.observer)||void 0===e||e.disconnect(),void 0!==this.rafHandle&&(cancelAnimationFrame(this.rafHandle),this.rafHandle=void 0)}async handleKeyDown(e){var t,o,i,l,n,r,s,d,c,h;const u=await this.getOpenTreeItemElements(),b=null===(t=document.activeElement)||void 0===t?void 0:t.closest(a),m=e.metaKey||e.altKey||e.ctrlKey||e.shiftKey;if(!u||!b)return;const k=u.findIndex((e=>e===b));switch(e.key){case"ArrowDown":await(null===(o=u[k+1])||void 0===o?void 0:o.focus()),e.preventDefault();break;case"ArrowUp":await(null===(i=u[k-1])||void 0===i?void 0:i.focus()),e.preventDefault();break;case"Right":case"ArrowRight":e.preventDefault(),await b.isOpen()?await(null===(l=u[k+1])||void 0===l?void 0:l.focus()):await b.expand();break;case"Left":case"ArrowLeft":if(e.preventDefault(),await b.isOpen())await b.collapse();else{const e=b.parentElement,t=e?u.indexOf(e):-1;-1!==t&&await(null===(n=u[t])||void 0===n?void 0:n.focus())}break;case"Home":await(null===(r=u[0])||void 0===r?void 0:r.focus()),e.preventDefault();break;case"End":await(null===(s=u[u.length-1])||void 0===s?void 0:s.focus()),e.preventDefault();break;case null===(d=e.key.match(/^[a-zA-Z0-9]$/))||void 0===d?void 0:d.input:if(!m){const t=e.key.toLowerCase(),o=k+1,i=e=>{var o,i;return null!==(i=null===(o=e.getAttribute("_label"))||void 0===o?void 0:o.trim().toLowerCase().startsWith(t))&&void 0!==i&&i};let a=u.slice(o).findIndex(i);-1===a?a=u.slice(0,o).findIndex(i):a+=o,-1!==a&&(await(null===(c=u[a])||void 0===c?void 0:c.focus()),e.preventDefault())}break;case"*":{const e=null===(h=b.parentElement)||void 0===h?void 0:h.querySelectorAll(a);null==e||e.forEach((e=>{e.expand()}));break}}}handleFocusIn(e){var t;e.target!==this.host||(null===(t=document.activeElement)||void 0===t?void 0:t.closest(a))||requestAnimationFrame((()=>{this.focus()}))}handleFocusOut(e){e.relatedTarget&&!e.relatedTarget.closest(l)&&this.ensureActiveItemVisibility()}observeChildListMutations(){this.observer=new MutationObserver((()=>this.scheduleTreeChange())),this.observeTopLevelItems()}observeTopLevelItems(){this.getTopLevelTreeItems().forEach((e=>{var t;null===(t=this.observer)||void 0===t||t.observe(e,{childList:!0,subtree:!0})}))}scheduleTreeChange(){this.rafHandle&&cancelAnimationFrame(this.rafHandle),this.rafHandle=requestAnimationFrame((()=>{this.handleTreeChange()}))}getTopLevelTreeItems(){var e,t;return Array.from(null!==(t=null===(e=this.host)||void 0===e?void 0:e.children)&&void 0!==t?t:[]).filter((e=>p(e)&&!e.slot))}handleTreeChange(){this.treeItemElements=this.getTreeItemElements(),this.cacheValid=!1,this.ensureActiveItemVisibility()}getTreeItemElements(){return this.getTopLevelTreeItems().reduce(((e,t)=>{const o=t.querySelectorAll(a);return[...e,t,...o]}),[])}async getOpenTreeItemElements(){if(!this.treeItemElements)return;if(this.cacheValid&&this.cachedOpenItems)return this.cachedOpenItems;const e=async e=>{let t=e.parentElement;for(;p(t);){if(!await t.isOpen())return!1;t=t.parentElement}return!0};return this.cachedOpenItems=await Promise.all(this.treeItemElements.map((async t=>({item:t,isOpen:await e(t)})))).then((e=>e.filter((({isOpen:e})=>e)).map((({item:e})=>e)))),this.cacheValid=!0,this.cachedOpenItems}ensureActiveItemVisibility(){const e=t=>{p(t.parentElement)&&(t.parentElement.expand(),e(t.parentElement))},t=(()=>{for(const e of this.getTopLevelTreeItems()){if(e._active)return e;const t=e.querySelector(a+'[_active="true"]');if(null==t?void 0:t._active)return t}})();t&&e(t)}render(){return e(o,{key:"46407a67efb548149a62e371713e0da8ec352863",tabindex:"0"},e(f,{key:"2725ae9400123f266b59b8c45b82eac3b83cf5f3",handleSlotchange:this.handleSlotchange,label:this.getRenderProp("label")}))}get host(){return this}static get watchers(){return{_label:[{watchLabel:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { .kol-tree__treeview-navigation { margin: 0; padding: 0; list-style: none; } .kol-tree:focus-within { outline: 1px solid; outline-offset: 2px; } }'}}},[545,"kol-tree",{_label:[1],focus:[64]},[[0,"keydown","handleKeyDown"],[0,"focusin","handleFocusIn"],[0,"focusout","handleFocusOut"]],{_label:[{watchLabel:0}]}]),g=v,w=function(){"undefined"!=typeof customElements&&["kol-tree"].forEach((e=>{"kol-tree"===e&&(customElements.get(i(e))||customElements.define(i(e),v))}))};export{g as KolTree,w as defineCustomElement}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h as o,proxyCustomElement as e,Host as t,transformTag as n}from"@stencil/core/internal/client";import{t as l}from"./i18n.js";import{B as i}from"./base-web-component.js";import"./bem-registry.js";import"./props-from-config.js";import{l as a}from"./label.js";import{B as r}from"./component4.js";import{B as c}from"./component.js";import{c as s}from"./contrast.js";const d={required:[a]},b=({class:e,color:t,icons:n,label:l})=>o(c,{block:"kol-version",class:e},o(r,{color:t,icons:n,label:l})),k=s("#bec5c9"),f={backgroundColor:k.background,foregroundColor:k.foreground},u={left:{icon:"kolicon-version",label:l("kol-version")}},h=e(class extends i{constructor(o){super(!1),!1!==o&&this.__registerHost(),this.__attachShadow(),this.propsConfig=d}watchLabel(o){a.apply(o,(o=>this.setRenderProp("label",o)),this.isRequired("label"))}componentWillLoad(){a.apply(this._label,(o=>this.setRenderProp("label",o)),this.isRequired("label"))}render(){return o(t,{key:"dc73bdd05c397b0a19864b8914ad88e8328d03a1"},o(b,{key:"9fd2c1082e58750ada4e9df753abe6f2998947a1",color:f,icons:u,label:this.getRenderProp("label")}))}static get watchers(){return{_label:[{watchLabel:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794493099910"); src: url("kolicons.eot?t=1794493099910#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794493099910") format("woff2"), url("kolicons.woff?t=1794493099910") format("woff"), url("kolicons.ttf?t=1794493099910") format("truetype"), url("kolicons.svg?t=1794493099910#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-badge { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); display: flex; align-items: center; justify-content: space-between; } .kol-badge > br { user-select: none; } }'}}},[545,"kol-version",{_label:[1]},void 0,{_label:[{watchLabel:0}]}]),m=h,p=function(){"undefined"!=typeof customElements&&["kol-version"].forEach((o=>{"kol-version"===o&&(customElements.get(n(o))||customElements.define(n(o),h))}))};export{m as KolVersion,p as defineCustomElement}
4
+ import{h as o,proxyCustomElement as e,Host as t,transformTag as n}from"@stencil/core/internal/client";import{t as l}from"./i18n.js";import{B as i}from"./base-web-component.js";import"./bem-registry.js";import"./props-from-config.js";import{l as r}from"./label.js";import{B as a}from"./component4.js";import{B as c}from"./component.js";import{c as s}from"./contrast.js";const d={required:[r]},b=({class:e,color:t,icons:n,label:l})=>o(c,{block:"kol-version",class:e},o(a,{color:t,icons:n,label:l})),k=s("#bec5c9"),f={backgroundColor:k.background,foregroundColor:k.foreground},u={left:{icon:"kolicon-version",label:l("kol-version")}},h=e(class extends i{constructor(o){super(!1),!1!==o&&this.__registerHost(),this.__attachShadow(),this.propsConfig=d}watchLabel(o){r.apply(o,(o=>this.setRenderProp("label",o)),this.isRequired("label"))}componentWillLoad(){r.apply(this._label,(o=>this.setRenderProp("label",o)),this.isRequired("label"))}render(){return o(t,{key:"41f3fe21b34ed55fe622cc212cec754c5110292e"},o(b,{key:"3239e582b5e207e28c4a2cf92d730278f21afd0b",color:f,icons:u,label:this.getRenderProp("label")}))}static get watchers(){return{_label:[{watchLabel:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794582088003"); 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"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-badge { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); display: flex; align-items: center; justify-content: space-between; } .kol-badge > br { user-select: none; } }'}}},[545,"kol-version",{_label:[1]},void 0,{_label:[{watchLabel:0}]}]),m=h,p=function(){"undefined"!=typeof customElements&&["kol-version"].forEach((o=>{"kol-version"===o&&(customElements.get(n(o))||customElements.define(n(o),h))}))};export{m as KolVersion,p as defineCustomElement}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{c as s,p as o}from"./props-from-config.js";import{a}from"./validators.js";import{l as r}from"./label-hints.js";const t=s("label","",o,a,{hints:r});export{t as l}
4
+ import{c as s,p as o}from"./props-from-config.js";import{b as r}from"./validators.js";import{l as a}from"./label-hints.js";const t=s("label","",o,r,{hints:a});export{t as l}