@public-ui/components 5.0.0-beta.1 → 5.0.0-beta.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 (969) 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 +9 -55
  7. package/dist/cjs/{Heading-C9osvqjY.js → Heading-o_m1bQbh.js} +7 -7
  8. package/dist/cjs/{access-and-short-key-D40HWCJe.js → access-and-short-key-BrLP4fF_.js} +2 -0
  9. package/dist/cjs/{api-U7I3XBPI.js → api-SFTkHR9W.js} +32 -34
  10. package/dist/cjs/{app-globals-DsADKGEe.js → app-globals-BVGzsN2O.js} +6 -5
  11. package/dist/cjs/{aria-labelledby-BRMgWRVp.js → aria-labelledby-CgJJS0K5.js} +2 -13
  12. package/dist/cjs/ariaCurrentService-aysGX58T.js +30 -0
  13. package/dist/cjs/{base-DCxbMk0f.js → base-4xLnw9ep.js} +17 -19
  14. package/dist/cjs/{base-l99dGLYo.js → base-DGpJZOXm.js} +67 -73
  15. package/dist/cjs/{base-DcN_YC72.js → base-DJhwvwdo.js} +13 -14
  16. package/dist/cjs/{base-CyqDmoZZ.js → base-DoujJ-Xz.js} +14 -15
  17. package/dist/cjs/{base-web-component-BnaxS2Z3.js → base-web-component-BgX5i_fc.js} +16 -19
  18. package/dist/cjs/{base-web-component-B6mwGD0m.js → base-web-component-DSCg1arP.js} +2 -1
  19. package/dist/cjs/{base-web-component-DxJ0hQ9u.js → base-web-component-nGb9E-GX.js} +17 -19
  20. package/dist/cjs/{behavior-BNyFQ_B5.js → behavior-CBwUdaXu.js} +10 -10
  21. package/dist/cjs/{behavior-CTaw4dj3.js → behavior-DhfuU2HF.js} +5 -5
  22. package/dist/cjs/{behavior-DrFJy0QC.js → behavior-S2U8skNd.js} +33 -33
  23. package/dist/cjs/{bem-registry-CyxrH26c.js → bem-registry-CMf1T2kb.js} +61 -15
  24. package/dist/cjs/bootstrap-C4GRmpTI.js +59 -0
  25. package/dist/cjs/{color-BW4t1Cif.js → color-BWamMCyw.js} +4 -4
  26. package/dist/cjs/{component-lmJOXuD6.js → component-BGIFlgKu.js} +8 -11
  27. package/dist/cjs/component-BM6eWMuC.js +177 -0
  28. package/dist/cjs/{component-Cvjqbxf4.js → component-CKc_-O64.js} +15 -18
  29. package/dist/cjs/{component-Cty_HlJR.js → component-CweSM_ze.js} +6 -5
  30. package/dist/cjs/{component-4OErV1Bg.js → component-DPCpVWBj.js} +11 -13
  31. package/dist/cjs/{component-DAQ1XSNA.js → component-DSlW2KVw.js} +6 -8
  32. package/dist/cjs/component-DTC3WbHR.js +52 -0
  33. package/dist/cjs/{component-DF5q9ssd.js → component-DUvRV4FE.js} +13 -14
  34. package/dist/cjs/component-SeQac11p.js +19 -0
  35. package/dist/cjs/component-names-CyEXMjv9.js +121 -0
  36. package/dist/cjs/{component-DtxKrISb.js → component-t6Upgw7f.js} +6 -7
  37. package/dist/cjs/{contrast-4mAdSLs0.js → contrast-CXinV5ii.js} +5 -5
  38. package/dist/cjs/{controller-tEyAFJN9.js → controller-D4usgPg-.js} +20 -20
  39. package/dist/cjs/{dev.utils-D5qh-RLT.js → dev.utils-glOxiW4E.js} +9 -10
  40. package/dist/cjs/{devtools-Dtv-Apvj.js → devtools-VDx5moKY.js} +24 -25
  41. package/dist/cjs/{disabled-jYcvcwjv.js → disabled-CZJO6fbW.js} +2 -1
  42. package/dist/cjs/{element-focus-CzkKMwtn.js → element-focus-IBv4yiNw.js} +1 -0
  43. package/dist/cjs/{element-interaction-BtYQAbhu.js → element-interaction-CvCJFwUh.js} +2 -1
  44. package/dist/cjs/{events-BJC5JJcU.js → events-fafEzzml.js} +2 -0
  45. package/dist/cjs/{field-control-Btb5zapE.js → field-control-xEw1WZFL.js} +12 -13
  46. package/dist/cjs/{group-Dg2gJze5.js → group-CMns8Vns.js} +8 -9
  47. package/dist/cjs/{has-closer-CvNa5gqv.js → has-closer-Cs7BCj4r.js} +2 -1
  48. package/dist/cjs/{href-BBhiVyPb.js → href-C93ktLo4.js} +2 -1
  49. package/dist/cjs/{i18n-BSWM5nea.js → i18n-DXYL9rIn.js} +11 -6
  50. package/dist/cjs/{i18n-BnOWw1MQ.js → i18n-YdI7_XKo.js} +3 -3
  51. package/dist/cjs/{id-D1VZsLkg.js → id-CtES_I0D.js} +2 -1
  52. package/dist/cjs/{index-BacpU-d0.js → index-B65pR1Ir.js} +1807 -61
  53. package/dist/cjs/index.cjs.js +20 -14
  54. package/dist/cjs/input-Bi8Zo8Bv.js +18 -0
  55. package/dist/cjs/{input-container-PaL4ZNf3.js → input-container-BErSDYvG.js} +17 -20
  56. package/dist/cjs/{item-CLnIJY4J.js → item-BHQRF4Sp.js} +9 -9
  57. package/dist/cjs/{item-CErU-EPA.js → item-BLhkAIub.js} +9 -9
  58. package/dist/cjs/{item-Cckqxc6T.js → item-BVHbqXo2.js} +56 -35
  59. package/dist/cjs/{item-CPxmIcoq.js → item-N9AmF46D.js} +16 -17
  60. package/dist/cjs/{item-pool-CY0WyGOL.js → item-pool-ecjkEvCG.js} +2 -0
  61. package/dist/cjs/{keyboard-Ca1I5RM2.js → keyboard-DHPlsLs0.js} +2 -0
  62. package/dist/cjs/kol-abbr.cjs.entry.js +12 -16
  63. package/dist/cjs/kol-accordion.cjs.entry.js +23 -25
  64. package/dist/cjs/kol-alert.cjs.entry.js +34 -36
  65. package/dist/cjs/kol-avatar.cjs.entry.js +19 -19
  66. package/dist/cjs/kol-badge.cjs.entry.js +34 -37
  67. package/dist/cjs/kol-breadcrumb.cjs.entry.js +39 -42
  68. package/dist/cjs/kol-button-link.cjs.entry.js +33 -35
  69. package/dist/cjs/kol-button.cjs.entry.js +33 -35
  70. package/dist/cjs/kol-card.cjs.entry.js +35 -38
  71. package/dist/cjs/kol-combobox.cjs.entry.js +52 -54
  72. package/dist/cjs/kol-details.cjs.entry.js +23 -25
  73. package/dist/cjs/kol-dialog.cjs.entry.js +38 -41
  74. package/dist/cjs/kol-drawer.cjs.entry.js +38 -41
  75. package/dist/cjs/kol-form.cjs.entry.js +32 -35
  76. package/dist/cjs/kol-heading.cjs.entry.js +17 -19
  77. package/dist/cjs/kol-icon.cjs.entry.js +19 -17
  78. package/dist/cjs/kol-image.cjs.entry.js +12 -14
  79. package/dist/cjs/kol-input-checkbox.cjs.entry.js +62 -63
  80. package/dist/cjs/kol-input-color.cjs.entry.js +51 -52
  81. package/dist/cjs/kol-input-date.cjs.entry.js +54 -56
  82. package/dist/cjs/kol-input-email.cjs.entry.js +54 -55
  83. package/dist/cjs/kol-input-file.cjs.entry.js +49 -50
  84. package/dist/cjs/kol-input-number.cjs.entry.js +56 -57
  85. package/dist/cjs/kol-input-password.cjs.entry.js +54 -55
  86. package/dist/cjs/kol-input-radio.cjs.entry.js +50 -53
  87. package/dist/cjs/kol-input-range.cjs.entry.js +48 -50
  88. package/dist/cjs/kol-input-text.cjs.entry.js +55 -56
  89. package/dist/cjs/kol-kolibri.cjs.entry.js +13 -16
  90. package/dist/cjs/kol-link-button.cjs.entry.js +34 -36
  91. package/dist/cjs/kol-link.cjs.entry.js +33 -35
  92. package/dist/cjs/kol-meter.cjs.entry.js +22 -25
  93. package/dist/cjs/kol-modal.cjs.entry.js +38 -41
  94. package/dist/cjs/kol-nav.cjs.entry.js +50 -53
  95. package/dist/cjs/kol-pagination.cjs.entry.js +55 -58
  96. package/dist/cjs/kol-popover-button.cjs.entry.js +34 -36
  97. package/dist/cjs/kol-progress.cjs.entry.js +22 -19
  98. package/dist/cjs/kol-quote.cjs.entry.js +13 -15
  99. package/dist/cjs/kol-select.cjs.entry.js +47 -49
  100. package/dist/cjs/kol-single-select.cjs.entry.js +59 -56
  101. package/dist/cjs/kol-skip-nav.cjs.entry.js +37 -40
  102. package/dist/cjs/kol-spin.cjs.entry.js +16 -19
  103. package/dist/cjs/kol-split-button.cjs.entry.js +39 -41
  104. package/dist/cjs/kol-table-stateful.cjs.entry.js +74 -75
  105. package/dist/cjs/kol-table-stateless.cjs.entry.js +54 -66
  106. package/dist/cjs/kol-tabs.cjs.entry.js +50 -56
  107. package/dist/cjs/kol-textarea.cjs.entry.js +55 -55
  108. package/dist/cjs/kol-toast-container.cjs.entry.js +24 -28
  109. package/dist/cjs/kol-toolbar.cjs.entry.js +57 -56
  110. package/dist/cjs/kol-tree-item.cjs.entry.js +38 -38
  111. package/dist/cjs/kol-tree.cjs.entry.js +35 -25
  112. package/dist/cjs/kol-version.cjs.entry.js +25 -28
  113. package/dist/cjs/kolibri.cjs.js +6 -5
  114. package/dist/cjs/{label-vVOiX4dC.js → label-0j3-2J3C.js} +4 -3
  115. package/dist/cjs/{label-hints-D6EBRW9T.js → label-hints-DEiM49uy.js} +4 -4
  116. package/dist/cjs/{label-lang-segment-CYlAqtUl.js → label-lang-segment-BBCLeyBy.js} +3 -2
  117. package/dist/cjs/{label-with-expert-slot-B9z4nqW1.js → label-with-expert-slot-D0wokf7-.js} +4 -3
  118. package/dist/cjs/{level-BAiEYu4U.js → level-xVivGv7t.js} +2 -1
  119. package/dist/cjs/{link-target-4AzB3I84.js → link-target-D9qpCovV.js} +2 -1
  120. package/dist/cjs/{links-CPNK7VZo.js → links-DlW9up_d.js} +3 -3
  121. package/dist/cjs/loader.cjs.js +5 -4
  122. package/dist/cjs/{multiple-B3ZpkzWu.js → multiple-DO-asa_4.js} +2 -1
  123. package/dist/cjs/{number-value-B2yoKlvx.js → number-value-BUKMKQvN.js} +2 -1
  124. package/dist/cjs/{open-CvoX_qxD.js → open-BVqlpoxd.js} +2 -1
  125. package/dist/cjs/{open-items-cache-B6hP2Aqy.js → open-items-cache-DuXVixiW.js} +2 -0
  126. package/dist/cjs/{options-z7FKffHh.js → options-Dg3zz7Wo.js} +2 -0
  127. package/dist/cjs/{options-B2pQC9w2.js → options-vneqbPL0.js} +3 -3
  128. package/dist/cjs/{orientation-u2cvwgBc.js → orientation-DL6G4K4r.js} +2 -1
  129. package/dist/cjs/{placeholder-C9Ngp2tQ.js → placeholder-C-ecB96f.js} +2 -1
  130. package/dist/cjs/{props-from-config-BQ2SOZlz.js → props-from-config-Bm6Pf2tK.js} +96 -16
  131. package/dist/cjs/{read-only-DfWF-Coi.js → read-only-D__auxXg.js} +2 -1
  132. package/dist/cjs/{required-CdXn16dq.js → required-DqW-WueJ.js} +2 -1
  133. package/dist/cjs/{resolve-props-B8kPPEMw.js → resolve-props-CjhxUwj-.js} +9 -9
  134. package/dist/cjs/{resolve-props-B5MED90T.js → resolve-props-DKYD6i56.js} +9 -10
  135. package/dist/cjs/{rows-Ca5ya9tG.js → rows-Z8UDqY9u.js} +2 -1
  136. package/dist/cjs/{scroll-lock-jojYHBR3.js → scroll-lock-DgqKifg3.js} +8 -7
  137. package/dist/cjs/shared-state-C2e8sL5f.js +16 -0
  138. package/dist/cjs/{smart-button-CB8qIzgQ.js → smart-button-C_S63qaB.js} +3 -3
  139. package/dist/cjs/{spell-check-DKRC8xbW.js → spell-check-CT0WE9tq.js} +2 -1
  140. package/dist/cjs/{src-C3NG0rLO.js → src-Bwu1rJi2.js} +2 -1
  141. package/dist/cjs/{step-CZNyTb2h.js → step-W8T4AA1l.js} +2 -1
  142. package/dist/cjs/{suggestions-BRclldK2.js → suggestions-C-tM7INY.js} +4 -4
  143. package/dist/cjs/{suggestions-CRyB_YCX.js → suggestions-DvPhi4lP.js} +3 -3
  144. package/dist/cjs/test-component.cjs.entry.js +3 -3
  145. package/dist/cjs/theme-store-CHGfvYB-.js +13 -0
  146. package/dist/cjs/{toggle-handler-DRPltZqQ.js → toggle-handler-DHEfrMM0.js} +13 -16
  147. package/dist/cjs/{tooltip-open-tracking-Ba0udJRU.js → tooltip-open-tracking-DaQFzT-b.js} +8 -5
  148. package/dist/cjs/{unique-nav-labels-CIAwid5V.js → unique-nav-labels-CpJcPNBO.js} +3 -3
  149. package/dist/cjs/{unit-bsoemclF.js → unit-CNVBdvOH.js} +2 -1
  150. package/dist/cjs/{validators-DuLdbf2D.js → validators-BM9XrnzJ.js} +4 -1
  151. package/dist/cjs/{value-string-DZ_FFaUt.js → value-string-DXRes-dR.js} +2 -1
  152. package/dist/cjs/{width-BklaRCqt.js → width-BAwXHART.js} +2 -1
  153. package/dist/collection/collection-manifest.json +1 -8
  154. package/dist/collection/components/abbr/component.js +2 -2
  155. package/dist/collection/components/abbr/style.css +21 -0
  156. package/dist/collection/components/accordion/component.js +2 -2
  157. package/dist/collection/components/accordion/style.css +23 -2
  158. package/dist/collection/components/alert/component.js +6 -4
  159. package/dist/collection/components/alert/style.css +23 -2
  160. package/dist/collection/components/avatar/component.js +2 -2
  161. package/dist/collection/components/avatar/style.css +21 -0
  162. package/dist/collection/components/badge/component.js +2 -2
  163. package/dist/collection/components/badge/style.css +23 -2
  164. package/dist/collection/components/breadcrumb/component.js +2 -2
  165. package/dist/collection/components/breadcrumb/style.css +23 -2
  166. package/dist/collection/components/button/component.js +1 -1
  167. package/dist/collection/components/button/style.css +23 -2
  168. package/dist/collection/components/button-link/component.js +1 -1
  169. package/dist/collection/components/button-link/style.css +23 -2
  170. package/dist/collection/components/card/component.js +2 -2
  171. package/dist/collection/components/card/style.css +26 -2
  172. package/dist/collection/components/combobox/component.js +4 -4
  173. package/dist/collection/components/combobox/style.css +23 -2
  174. package/dist/collection/components/details/component.js +2 -2
  175. package/dist/collection/components/details/style.css +23 -2
  176. package/dist/collection/components/dialog/base.js +2 -2
  177. package/dist/collection/components/dialog/component.js +2 -2
  178. package/dist/collection/components/dialog/style.css +26 -2
  179. package/dist/collection/components/drawer/component.js +2 -2
  180. package/dist/collection/components/drawer/style.css +26 -2
  181. package/dist/collection/components/form/component.js +2 -2
  182. package/dist/collection/components/form/controller.js +4 -3
  183. package/dist/collection/components/form/style.css +23 -2
  184. package/dist/collection/components/heading/component.js +2 -2
  185. package/dist/collection/components/heading/style.css +21 -0
  186. package/dist/collection/components/icon/component.js +5 -5
  187. package/dist/collection/components/icon/style.css +2 -2
  188. package/dist/collection/components/image/component.js +2 -2
  189. package/dist/collection/components/image/style.css +21 -0
  190. package/dist/collection/components/input-checkbox/component.js +13 -11
  191. package/dist/collection/components/input-checkbox/style.css +23 -2
  192. package/dist/collection/components/input-color/component.js +6 -4
  193. package/dist/collection/components/input-color/style.css +23 -2
  194. package/dist/collection/components/input-date/component.js +9 -7
  195. package/dist/collection/components/input-date/style.css +23 -2
  196. package/dist/collection/components/input-email/component.js +4 -1
  197. package/dist/collection/components/input-email/style.css +23 -2
  198. package/dist/collection/components/input-file/component.js +6 -3
  199. package/dist/collection/components/input-file/style.css +23 -2
  200. package/dist/collection/components/input-number/component.js +6 -4
  201. package/dist/collection/components/input-number/style.css +23 -2
  202. package/dist/collection/components/input-password/component.js +5 -2
  203. package/dist/collection/components/input-password/style.css +23 -2
  204. package/dist/collection/components/input-radio/component.js +2 -3
  205. package/dist/collection/components/input-radio/style.css +23 -2
  206. package/dist/collection/components/input-range/component.js +2 -2
  207. package/dist/collection/components/input-range/style.css +23 -2
  208. package/dist/collection/components/input-text/component.js +4 -2
  209. package/dist/collection/components/input-text/style.css +23 -2
  210. package/dist/collection/components/kolibri/component.js +2 -2
  211. package/dist/collection/components/kolibri/style.css +21 -0
  212. package/dist/collection/components/link/ariaCurrentService.js +9 -9
  213. package/dist/collection/components/link/component.js +2 -2
  214. package/dist/collection/components/link/style.css +23 -2
  215. package/dist/collection/components/link-button/component.js +2 -2
  216. package/dist/collection/components/link-button/style.css +23 -2
  217. package/dist/collection/components/meter/component.js +2 -2
  218. package/dist/collection/components/meter/style.css +21 -0
  219. package/dist/collection/components/modal/component.js +2 -2
  220. package/dist/collection/components/modal/style.css +26 -2
  221. package/dist/collection/components/nav/component.js +2 -2
  222. package/dist/collection/components/nav/style.css +23 -2
  223. package/dist/collection/components/pagination/component.js +10 -12
  224. package/dist/collection/components/pagination/style.css +23 -2
  225. package/dist/collection/components/popover-button/component.js +1 -1
  226. package/dist/collection/components/popover-button/style.css +23 -2
  227. package/dist/collection/components/progress/component.js +6 -3
  228. package/dist/collection/components/progress/style.css +21 -0
  229. package/dist/collection/components/quote/component.js +2 -2
  230. package/dist/collection/components/quote/style.css +21 -0
  231. package/dist/collection/components/select/component.js +1 -1
  232. package/dist/collection/components/select/style.css +23 -2
  233. package/dist/collection/components/single-select/component.js +10 -6
  234. package/dist/collection/components/single-select/style.css +23 -2
  235. package/dist/collection/components/skip-nav/component.js +2 -2
  236. package/dist/collection/components/skip-nav/style.css +23 -2
  237. package/dist/collection/components/spin/component.js +2 -2
  238. package/dist/collection/components/spin/style.css +21 -0
  239. package/dist/collection/components/split-button/component.js +1 -1
  240. package/dist/collection/components/split-button/style.css +23 -2
  241. package/dist/collection/components/table-stateful/component.js +13 -18
  242. package/dist/collection/components/table-stateful/style.css +26 -2
  243. package/dist/collection/components/table-stateless/base.js +4 -1
  244. package/dist/collection/components/table-stateless/component.js +14 -55
  245. package/dist/collection/components/table-stateless/style.css +26 -2
  246. package/dist/collection/components/tabs/component.js +8 -17
  247. package/dist/collection/components/tabs/style.css +23 -2
  248. package/dist/collection/components/textarea/component.js +5 -3
  249. package/dist/collection/components/textarea/style.css +23 -2
  250. package/dist/collection/components/toaster/shadow.js +1 -2
  251. package/dist/collection/components/toaster/style.css +23 -2
  252. package/dist/collection/components/toaster/toaster.js +2 -1
  253. package/dist/collection/components/toolbar/component.js +14 -10
  254. package/dist/collection/components/toolbar/style.css +23 -2
  255. package/dist/collection/components/tree/component.js +22 -11
  256. package/dist/collection/components/tree/style.css +21 -0
  257. package/dist/collection/components/tree-item/component.js +9 -6
  258. package/dist/collection/components/tree-item/style.css +23 -2
  259. package/dist/collection/components/version/component.js +2 -2
  260. package/dist/collection/components/version/style.css +23 -2
  261. package/dist/collection/core/bootstrap.js +8 -5
  262. package/dist/collection/core/component-names.js +52 -106
  263. package/dist/collection/core/i18n.js +7 -6
  264. package/dist/collection/core/shared-state.js +10 -0
  265. package/dist/collection/core/tag-transformer.js +27 -0
  266. package/dist/collection/core/theme-store.js +8 -0
  267. package/dist/collection/global/script.js +2 -0
  268. package/dist/collection/index.js +2 -0
  269. package/dist/collection/internal/functional-components/alert/component.js +2 -1
  270. package/dist/collection/internal/functional-components/avatar/component.js +2 -2
  271. package/dist/collection/internal/functional-components/badge/component.js +2 -1
  272. package/dist/collection/internal/functional-components/bem-root-node/component.js +16 -6
  273. package/dist/collection/internal/functional-components/breadcrumb/component.js +2 -2
  274. package/dist/collection/internal/functional-components/card/component.js +3 -1
  275. package/dist/collection/internal/functional-components/collapsible/component.js +3 -2
  276. package/dist/collection/internal/functional-components/dialog/component.js +6 -3
  277. package/dist/collection/internal/functional-components/dialog/item.js +2 -2
  278. package/dist/collection/internal/functional-components/drawer/component.js +1 -1
  279. package/dist/collection/internal/functional-components/form-association/api.js +2 -2
  280. package/dist/collection/internal/functional-components/form-association/behavior.js +18 -15
  281. package/dist/collection/internal/functional-components/form-field/base-web-component.js +0 -1
  282. package/dist/collection/internal/functional-components/form-field/custom-suggestions.js +1 -1
  283. package/dist/collection/internal/functional-components/heading/component.js +3 -4
  284. package/dist/collection/internal/functional-components/icon/api.js +2 -2
  285. package/dist/collection/internal/functional-components/icon/component.js +2 -2
  286. package/dist/collection/internal/functional-components/image/component.js +2 -4
  287. package/dist/collection/internal/functional-components/link/component.js +1 -1
  288. package/dist/collection/internal/functional-components/meter/component.js +5 -7
  289. package/dist/collection/internal/functional-components/pagination/api.js +2 -2
  290. package/dist/collection/internal/functional-components/pagination/component.js +2 -3
  291. package/dist/collection/internal/functional-components/pagination/item.js +26 -11
  292. package/dist/collection/internal/functional-components/pagination/page-size-select.js +8 -0
  293. package/dist/collection/internal/functional-components/progress/component.js +2 -1
  294. package/dist/collection/internal/functional-components/quote/component.js +2 -3
  295. package/dist/collection/internal/functional-components/single-select/component.js +2 -1
  296. package/dist/collection/internal/functional-components/skip-nav/component.js +2 -2
  297. package/dist/collection/internal/functional-components/span/component.js +3 -2
  298. package/dist/collection/internal/functional-components/table-stateless/api.js +2 -2
  299. package/dist/collection/internal/functional-components/table-stateless/component.js +5 -5
  300. package/dist/collection/internal/functional-components/table-stateless/settings.js +10 -5
  301. package/dist/collection/internal/functional-components/table-stateless/table-model.js +2 -6
  302. package/dist/collection/internal/functional-components/tabs/component.js +7 -1
  303. package/dist/collection/internal/functional-components/tree/component.js +2 -2
  304. package/dist/collection/internal/functional-components/tree-item/component.js +2 -2
  305. package/dist/collection/internal/props/helpers/validators.js +1 -0
  306. package/dist/collection/internal/props/index.js +1 -0
  307. package/dist/collection/internal/props/label-decorative.js +10 -0
  308. package/dist/collection/locales/de.js +1 -0
  309. package/dist/collection/locales/en.js +1 -0
  310. package/dist/collection/schema/bem-registry.js +59 -13
  311. package/dist/collection/schema/i18n-keys.js +29 -28
  312. package/dist/collection/schema/props/aria-details.js +1 -22
  313. package/dist/collection/schema/props/aria-labelledby.js +3 -12
  314. package/dist/collection/schema/props/index.js +1 -1
  315. package/dist/collection/schema/props/table-headers.js +1 -0
  316. package/dist/collection/utils/aria-labelledby.js +0 -12
  317. package/dist/collection/utils/markdown.js +49 -3
  318. package/dist/collection/utils/tooltip-open-tracking.js +6 -5
  319. package/dist/components/Heading.js +1 -1
  320. package/dist/components/access-and-short-key.js +1 -1
  321. package/dist/components/ariaCurrentService.js +1 -1
  322. package/dist/components/base-web-component.js +1 -1
  323. package/dist/components/base-web-component2.js +1 -1
  324. package/dist/components/base-web-component3.js +1 -1
  325. package/dist/components/base-web-component4.js +1 -1
  326. package/dist/components/base.js +1 -1
  327. package/dist/components/base2.js +1 -1
  328. package/dist/components/base3.js +1 -1
  329. package/dist/components/base4.js +1 -1
  330. package/dist/components/behavior.js +1 -1
  331. package/dist/components/behavior2.js +1 -1
  332. package/dist/components/behavior3.js +1 -1
  333. package/dist/components/behavior4.js +1 -1
  334. package/dist/components/bem-registry.js +1 -1
  335. package/dist/components/bootstrap.js +1 -1
  336. package/dist/components/color.js +1 -1
  337. package/dist/components/common.js +4 -0
  338. package/dist/components/component-names.js +1 -1
  339. package/dist/components/component.js +1 -1
  340. package/dist/components/component10.js +1 -1
  341. package/dist/components/component11.js +1 -1
  342. package/dist/components/component12.js +4 -0
  343. package/dist/components/component13.js +4 -0
  344. package/dist/components/component14.js +4 -0
  345. package/dist/components/component2.js +1 -1
  346. package/dist/components/component3.js +1 -1
  347. package/dist/components/component4.js +1 -1
  348. package/dist/components/component5.js +1 -1
  349. package/dist/components/component6.js +1 -1
  350. package/dist/components/component7.js +1 -1
  351. package/dist/components/component8.js +1 -1
  352. package/dist/components/component9.js +1 -1
  353. package/dist/components/contrast.js +1 -1
  354. package/dist/components/controller.js +1 -1
  355. package/dist/components/dev.utils.js +1 -1
  356. package/dist/components/devtools.js +1 -1
  357. package/dist/components/disabled.js +1 -1
  358. package/dist/components/element-focus.js +1 -1
  359. package/dist/components/element-interaction.js +1 -1
  360. package/dist/components/events.js +1 -1
  361. package/dist/components/field-control.js +1 -1
  362. package/dist/components/group.js +1 -1
  363. package/dist/components/has-closer.js +1 -1
  364. package/dist/components/i18n.js +1 -1
  365. package/dist/components/i18n2.js +1 -1
  366. package/dist/components/id.js +1 -1
  367. package/dist/components/index.js +1 -1
  368. package/dist/components/input-container.js +1 -1
  369. package/dist/components/input.js +1 -1
  370. package/dist/components/item-pool.js +1 -1
  371. package/dist/components/item.js +1 -1
  372. package/dist/components/item2.js +1 -1
  373. package/dist/components/item3.js +1 -1
  374. package/dist/components/item4.js +1 -1
  375. package/dist/components/keyboard.js +1 -1
  376. package/dist/components/kol-abbr.js +1 -1
  377. package/dist/components/kol-accordion.js +1 -1
  378. package/dist/components/kol-alert.js +1 -1
  379. package/dist/components/kol-avatar.js +1 -1
  380. package/dist/components/kol-badge.js +1 -1
  381. package/dist/components/kol-breadcrumb.js +1 -1
  382. package/dist/components/kol-button-link.js +1 -1
  383. package/dist/components/kol-button.js +1 -1
  384. package/dist/components/kol-card.js +1 -1
  385. package/dist/components/kol-combobox.js +1 -1
  386. package/dist/components/kol-details.js +1 -1
  387. package/dist/components/kol-dialog.js +1 -1
  388. package/dist/components/kol-drawer.js +1 -1
  389. package/dist/components/kol-form.js +1 -1
  390. package/dist/components/kol-heading.js +1 -1
  391. package/dist/components/kol-icon.js +1 -1
  392. package/dist/components/kol-image.js +1 -1
  393. package/dist/components/kol-input-checkbox.js +1 -1
  394. package/dist/components/kol-input-color.js +1 -1
  395. package/dist/components/kol-input-date.js +1 -1
  396. package/dist/components/kol-input-email.js +1 -1
  397. package/dist/components/kol-input-file.js +1 -1
  398. package/dist/components/kol-input-number.js +1 -1
  399. package/dist/components/kol-input-password.js +1 -1
  400. package/dist/components/kol-input-radio.js +1 -1
  401. package/dist/components/kol-input-range.js +1 -1
  402. package/dist/components/kol-input-text.js +1 -1
  403. package/dist/components/kol-kolibri.js +1 -1
  404. package/dist/components/kol-link-button.js +1 -1
  405. package/dist/components/kol-link.js +1 -1
  406. package/dist/components/kol-meter.js +1 -1
  407. package/dist/components/kol-modal.js +1 -1
  408. package/dist/components/kol-nav.js +1 -1
  409. package/dist/components/kol-pagination.js +1 -1
  410. package/dist/components/kol-popover-button.js +1 -1
  411. package/dist/components/kol-progress.js +1 -1
  412. package/dist/components/kol-quote.js +1 -1
  413. package/dist/components/kol-select.js +1 -1
  414. package/dist/components/kol-single-select.js +1 -1
  415. package/dist/components/kol-skip-nav.js +1 -1
  416. package/dist/components/kol-spin.js +1 -1
  417. package/dist/components/kol-split-button.js +1 -1
  418. package/dist/components/kol-table-stateful.js +1 -1
  419. package/dist/components/kol-table-stateless.js +1 -1
  420. package/dist/components/kol-tabs.js +1 -1
  421. package/dist/components/kol-textarea.js +1 -1
  422. package/dist/components/kol-toast-container.js +1 -1
  423. package/dist/components/kol-toolbar.js +1 -1
  424. package/dist/components/kol-tree-item.js +1 -1
  425. package/dist/components/kol-tree.js +1 -1
  426. package/dist/components/kol-version.js +1 -1
  427. package/dist/components/label-hints.js +1 -1
  428. package/dist/components/label-lang-segment.js +1 -1
  429. package/dist/components/label-with-expert-slot.js +1 -1
  430. package/dist/components/label.js +1 -1
  431. package/dist/components/level.js +1 -1
  432. package/dist/components/link-target.js +1 -1
  433. package/dist/components/links.js +1 -1
  434. package/dist/components/multiple.js +1 -1
  435. package/dist/components/number-value.js +1 -1
  436. package/dist/components/open-items-cache.js +1 -1
  437. package/dist/components/open.js +1 -1
  438. package/dist/components/options.js +1 -1
  439. package/dist/components/options2.js +1 -1
  440. package/dist/components/orientation.js +1 -1
  441. package/dist/components/placeholder.js +1 -1
  442. package/dist/components/read-only.js +1 -1
  443. package/dist/components/required.js +1 -1
  444. package/dist/components/resolve-props.js +1 -1
  445. package/dist/components/resolve-props2.js +1 -1
  446. package/dist/components/rows.js +1 -1
  447. package/dist/components/scroll-lock.js +1 -1
  448. package/dist/components/shared-state.js +4 -0
  449. package/dist/components/smart-button.js +1 -1
  450. package/dist/components/spell-check.js +1 -1
  451. package/dist/components/src.js +1 -1
  452. package/dist/components/step.js +1 -1
  453. package/dist/components/suggestions.js +1 -1
  454. package/dist/components/suggestions2.js +1 -1
  455. package/dist/components/test-component.js +1 -1
  456. package/dist/components/toggle-handler.js +1 -1
  457. package/dist/components/tooltip-open-tracking.js +1 -1
  458. package/dist/components/unique-nav-labels.js +1 -1
  459. package/dist/components/unit.js +1 -1
  460. package/dist/components/validators.js +1 -1
  461. package/dist/components/value-string.js +1 -1
  462. package/dist/components/width.js +1 -1
  463. package/dist/esm/{Heading-BVhjT9av.js → Heading-Cynkalqu.js} +2 -2
  464. package/dist/esm/{access-and-short-key-ijzCZfHm.js → access-and-short-key-CW0oxi_q.js} +2 -0
  465. package/dist/esm/{api-D92_O-0H.js → api-B76-Osk1.js} +21 -23
  466. package/dist/esm/{app-globals-CBGjgNge.js → app-globals-Dtu1AIr1.js} +4 -3
  467. package/dist/esm/{aria-labelledby-CLehu03h.js → aria-labelledby-DQov9uSv.js} +3 -13
  468. package/dist/esm/ariaCurrentService-B9TgWLEw.js +27 -0
  469. package/dist/esm/{base-DIcqHqMz.js → base-BZCFxul4.js} +13 -14
  470. package/dist/esm/{base-BLBSJu_1.js → base-BpgzOuy3.js} +13 -14
  471. package/dist/esm/{base-qvPPg-dn.js → base-CAiOx0qs.js} +52 -58
  472. package/dist/esm/{base-CHmdLgoO.js → base-DJ3lTPYp.js} +14 -16
  473. package/dist/esm/{base-web-component-XgI4wUyN.js → base-web-component-D16FuHFf.js} +2 -1
  474. package/dist/esm/{base-web-component-CaAexWy_.js → base-web-component-E9cH8tf8.js} +16 -18
  475. package/dist/esm/{base-web-component-DbagnM7m.js → base-web-component-aOhHFXxF.js} +10 -13
  476. package/dist/esm/{behavior-DW7_5Wxp.js → behavior-ByyBa-o8.js} +5 -5
  477. package/dist/esm/{behavior-CwUUkdaP.js → behavior-DJQFXyfi.js} +6 -6
  478. package/dist/esm/{behavior-B08CXmI4.js → behavior-DnTJtQBK.js} +29 -28
  479. package/dist/esm/{bem-registry-CWN7_O1L.js → bem-registry-CK2s_XZ4.js} +60 -14
  480. package/dist/esm/bootstrap-DUmk0ILT.js +52 -0
  481. package/dist/esm/{color-eAL9I7Wq.js → color-CEoIhjJR.js} +3 -3
  482. package/dist/esm/{component-8ALsFV4i.js → component-BPL1Mikq.js} +5 -6
  483. package/dist/esm/{component-D0mBOGjS.js → component-C0ijstyp.js} +10 -12
  484. package/dist/esm/component-C58IwTEf.js +47 -0
  485. package/dist/esm/{component-nR5Bf9G5.js → component-CAEpgoSo.js} +6 -5
  486. package/dist/esm/component-CDyoNoJe.js +17 -0
  487. package/dist/esm/{component-CdKSiR5P.js → component-CiTw4ODP.js} +6 -9
  488. package/dist/esm/component-DTV1Kuf1.js +172 -0
  489. package/dist/esm/{component-DCw1ZAE5.js → component-DeFANBua.js} +5 -7
  490. package/dist/esm/{component-DBAicJ2u.js → component-S6ib3O8N.js} +13 -16
  491. package/dist/esm/{component-BTMWoACz.js → component-XbTjo2nm.js} +11 -13
  492. package/dist/esm/component-names-Ur_UbEzI.js +115 -0
  493. package/dist/esm/{contrast-D78VGPFR.js → contrast-Ujnfz49m.js} +2 -2
  494. package/dist/esm/{controller-C3O9ohSP.js → controller-BdPVgWDs.js} +5 -5
  495. package/dist/esm/{dev.utils-wYkYn08d.js → dev.utils--eVyQ4zr.js} +1 -2
  496. package/dist/esm/{devtools-DrBkkLdP.js → devtools-CosbyboJ.js} +4 -5
  497. package/dist/esm/{disabled-Cqhc40CU.js → disabled-Cu0e92-b.js} +2 -1
  498. package/dist/esm/{element-focus-BIRmGg5W.js → element-focus-BYLFG-oz.js} +1 -0
  499. package/dist/esm/{element-interaction-sGYdEpmv.js → element-interaction-C2pgnQ6t.js} +2 -1
  500. package/dist/esm/{events-BIT-JUP2.js → events-B2UzbUT7.js} +2 -0
  501. package/dist/esm/{field-control-Cs5VvsYo.js → field-control-DbmtKHc1.js} +7 -8
  502. package/dist/esm/{group-uNo1CfbK.js → group-CqAFhkgE.js} +6 -7
  503. package/dist/esm/{has-closer-B9NQY7BK.js → has-closer-DOs1CXhp.js} +2 -1
  504. package/dist/esm/{href-JqLbNBsW.js → href-DQbHtp6T.js} +2 -1
  505. package/dist/esm/{i18n-Dl6Jjofb.js → i18n-Bcb0tuyF.js} +11 -6
  506. package/dist/esm/{i18n-DtLKn3Xt.js → i18n-Cf0DhAke.js} +2 -2
  507. package/dist/esm/{id-CIYvVaNr.js → id-BXwy9iRy.js} +2 -1
  508. package/dist/esm/{index-BKEJuyFi.js → index-Bsx5X6jK.js} +1745 -46
  509. package/dist/esm/index.js +14 -12
  510. package/dist/esm/{input-Dja5Qioc.js → input-RvLnUp6C.js} +4 -6
  511. package/dist/esm/{input-container-C2Am7LEP.js → input-container-BpG3WHug.js} +6 -9
  512. package/dist/esm/{item-D627ShRd.js → item-Cw_jdgc6.js} +14 -15
  513. package/dist/esm/{item-DIAFIFSy.js → item-DMttg5uX.js} +51 -30
  514. package/dist/esm/{item-ConW1c81.js → item-DibV9jD7.js} +8 -8
  515. package/dist/esm/{item-C4AmpdVD.js → item-KqTsA-5a.js} +8 -8
  516. package/dist/esm/{item-pool-BOxAYePG.js → item-pool-C_4Isquh.js} +2 -0
  517. package/dist/esm/{keyboard-Cnv7zP3N.js → keyboard-Cc1-_wSt.js} +2 -0
  518. package/dist/esm/kol-abbr.entry.js +11 -15
  519. package/dist/esm/kol-accordion.entry.js +22 -24
  520. package/dist/esm/kol-alert.entry.js +34 -36
  521. package/dist/esm/kol-avatar.entry.js +19 -19
  522. package/dist/esm/kol-badge.entry.js +31 -34
  523. package/dist/esm/kol-breadcrumb.entry.js +36 -39
  524. package/dist/esm/kol-button-link.entry.js +33 -35
  525. package/dist/esm/kol-button.entry.js +33 -35
  526. package/dist/esm/kol-card.entry.js +35 -38
  527. package/dist/esm/kol-combobox.entry.js +51 -53
  528. package/dist/esm/kol-details.entry.js +22 -24
  529. package/dist/esm/kol-dialog.entry.js +38 -41
  530. package/dist/esm/kol-drawer.entry.js +38 -41
  531. package/dist/esm/kol-form.entry.js +30 -33
  532. package/dist/esm/kol-heading.entry.js +17 -19
  533. package/dist/esm/kol-icon.entry.js +19 -17
  534. package/dist/esm/kol-image.entry.js +12 -14
  535. package/dist/esm/kol-input-checkbox.entry.js +57 -58
  536. package/dist/esm/kol-input-color.entry.js +51 -52
  537. package/dist/esm/kol-input-date.entry.js +53 -55
  538. package/dist/esm/kol-input-email.entry.js +54 -55
  539. package/dist/esm/kol-input-file.entry.js +49 -50
  540. package/dist/esm/kol-input-number.entry.js +55 -56
  541. package/dist/esm/kol-input-password.entry.js +53 -54
  542. package/dist/esm/kol-input-radio.entry.js +47 -50
  543. package/dist/esm/kol-input-range.entry.js +48 -50
  544. package/dist/esm/kol-input-text.entry.js +55 -56
  545. package/dist/esm/kol-kolibri.entry.js +12 -15
  546. package/dist/esm/kol-link-button.entry.js +33 -35
  547. package/dist/esm/kol-link.entry.js +33 -35
  548. package/dist/esm/kol-meter.entry.js +22 -25
  549. package/dist/esm/kol-modal.entry.js +38 -41
  550. package/dist/esm/kol-nav.entry.js +43 -46
  551. package/dist/esm/kol-pagination.entry.js +55 -58
  552. package/dist/esm/kol-popover-button.entry.js +34 -36
  553. package/dist/esm/kol-progress.entry.js +22 -19
  554. package/dist/esm/kol-quote.entry.js +13 -15
  555. package/dist/esm/kol-select.entry.js +47 -49
  556. package/dist/esm/kol-single-select.entry.js +58 -55
  557. package/dist/esm/kol-skip-nav.entry.js +35 -38
  558. package/dist/esm/kol-spin.entry.js +16 -19
  559. package/dist/esm/kol-split-button.entry.js +37 -39
  560. package/dist/esm/kol-table-stateful.entry.js +70 -71
  561. package/dist/esm/kol-table-stateless.entry.js +54 -66
  562. package/dist/esm/kol-tabs.entry.js +46 -52
  563. package/dist/esm/kol-textarea.entry.js +53 -53
  564. package/dist/esm/kol-toast-container.entry.js +22 -26
  565. package/dist/esm/kol-toolbar.entry.js +52 -51
  566. package/dist/esm/kol-tree-item.entry.js +38 -38
  567. package/dist/esm/kol-tree.entry.js +35 -25
  568. package/dist/esm/kol-version.entry.js +24 -27
  569. package/dist/esm/kolibri.js +7 -6
  570. package/dist/esm/{label-BRosRgdX.js → label-DEZIsnKw.js} +4 -3
  571. package/dist/esm/{label-hints-Jn18RUT-.js → label-hints-C--ftrg_.js} +2 -2
  572. package/dist/esm/{label-lang-segment-2_GnxjFp.js → label-lang-segment-B8ayoizG.js} +3 -2
  573. package/dist/esm/label-with-expert-slot-DXi27J4o.js +13 -0
  574. package/dist/esm/{level-CA1s1_Mf.js → level-BV6M_zmM.js} +2 -1
  575. package/dist/esm/{link-target-FX94oqMo.js → link-target-C9qzQAQg.js} +2 -1
  576. package/dist/esm/{links-DwucTqcR.js → links-Dt0OhMXb.js} +2 -2
  577. package/dist/esm/loader.js +6 -5
  578. package/dist/esm/{multiple-DqrZxybx.js → multiple-DQdOCIyW.js} +2 -1
  579. package/dist/esm/{number-value-B-SJ1dRo.js → number-value-DtZloH4P.js} +2 -1
  580. package/dist/esm/{open-DRRv1KFK.js → open-DaO7wXMr.js} +2 -1
  581. package/dist/esm/{open-items-cache-D-kml1h6.js → open-items-cache-C98FzYQ9.js} +2 -0
  582. package/dist/esm/{options-DCaUcfAu.js → options-C8BsBGBl.js} +2 -2
  583. package/dist/esm/{options-B0rBHetL.js → options-CKAHQbcF.js} +2 -0
  584. package/dist/esm/{orientation-XNOCaPwy.js → orientation-VvJMCd9m.js} +2 -1
  585. package/dist/esm/{placeholder-BeLIzdJv.js → placeholder-7pbjAn-x.js} +2 -1
  586. package/dist/esm/{props-from-config-Ci0dILpz.js → props-from-config-DVxNB2Lx.js} +84 -7
  587. package/dist/esm/{read-only-Bby9r6ZX.js → read-only-3XuQIAB8.js} +2 -1
  588. package/dist/esm/{required-hoaT7UmZ.js → required-CNgdXJ8H.js} +2 -1
  589. package/dist/esm/{resolve-props-BLZxWC3j.js → resolve-props-B1DQKjTD.js} +7 -8
  590. package/dist/esm/{resolve-props-D2KiItuv.js → resolve-props-DOaJCd7Y.js} +9 -9
  591. package/dist/esm/{rows-B0x8CR7K.js → rows-DL1whQNh.js} +2 -1
  592. package/dist/esm/{scroll-lock-Y2hf47KW.js → scroll-lock-CF_Z7MzO.js} +9 -7
  593. package/dist/esm/shared-state-sWI1upS8.js +14 -0
  594. package/dist/esm/{smart-button-CS_ZriPt.js → smart-button-BdA5-cUG.js} +2 -2
  595. package/dist/esm/{spell-check-DzgftyqL.js → spell-check-B7J-eU5K.js} +2 -1
  596. package/dist/esm/{src-DaGhmCL1.js → src-C2baLPDp.js} +2 -1
  597. package/dist/esm/{step-Bdj89bGO.js → step-DmzcVFZB.js} +2 -1
  598. package/dist/esm/{suggestions-Dy1X-Pc3.js → suggestions-BJxNFtkL.js} +2 -2
  599. package/dist/esm/{suggestions-DuqzGDve.js → suggestions-BXp8OhOi.js} +3 -3
  600. package/dist/esm/test-component.entry.js +3 -3
  601. package/dist/esm/theme-store-CEu5d_EK.js +11 -0
  602. package/dist/esm/{toggle-handler-BRLmxe1J.js → toggle-handler-D7oFDKvq.js} +12 -15
  603. package/dist/esm/tooltip-open-tracking-DXhnfmA2.js +21 -0
  604. package/dist/esm/{unique-nav-labels-h2KOu5Qy.js → unique-nav-labels-BOqpcYk4.js} +2 -2
  605. package/dist/esm/{unit-BUhhJbhT.js → unit-BFYz7QfA.js} +2 -1
  606. package/dist/esm/{validators-BVM40IEr.js → validators-DPSQyOeQ.js} +4 -2
  607. package/dist/esm/{value-string-e9pwLcS-.js → value-string-Cmozozek.js} +2 -1
  608. package/dist/esm/{width-CgYY17tL.js → width-D5-Licpp.js} +2 -1
  609. package/dist/kolibri/Heading-Cynkalqu.js +4 -0
  610. package/dist/kolibri/access-and-short-key-CW0oxi_q.js +4 -0
  611. package/dist/kolibri/api-B76-Osk1.js +4 -0
  612. package/dist/kolibri/app-globals-Dtu1AIr1.js +4 -0
  613. package/dist/kolibri/aria-labelledby-DQov9uSv.js +4 -0
  614. package/dist/kolibri/ariaCurrentService-B9TgWLEw.js +4 -0
  615. package/dist/kolibri/base-BZCFxul4.js +4 -0
  616. package/dist/kolibri/base-BpgzOuy3.js +4 -0
  617. package/dist/kolibri/base-CAiOx0qs.js +4 -0
  618. package/dist/kolibri/base-DJ3lTPYp.js +4 -0
  619. package/dist/kolibri/base-web-component-D16FuHFf.js +4 -0
  620. package/dist/kolibri/base-web-component-E9cH8tf8.js +4 -0
  621. package/dist/kolibri/base-web-component-aOhHFXxF.js +4 -0
  622. package/dist/kolibri/behavior-ByyBa-o8.js +4 -0
  623. package/dist/kolibri/behavior-DJQFXyfi.js +4 -0
  624. package/dist/kolibri/behavior-DnTJtQBK.js +4 -0
  625. package/dist/kolibri/bem-registry-CK2s_XZ4.js +4 -0
  626. package/dist/kolibri/bootstrap-DUmk0ILT.js +4 -0
  627. package/dist/kolibri/color-CEoIhjJR.js +4 -0
  628. package/dist/kolibri/component-BPL1Mikq.js +4 -0
  629. package/dist/kolibri/component-C0ijstyp.js +4 -0
  630. package/dist/kolibri/component-C58IwTEf.js +4 -0
  631. package/dist/kolibri/component-CAEpgoSo.js +4 -0
  632. package/dist/kolibri/component-CDyoNoJe.js +4 -0
  633. package/dist/kolibri/component-CiTw4ODP.js +4 -0
  634. package/dist/kolibri/component-DTV1Kuf1.js +4 -0
  635. package/dist/kolibri/component-DeFANBua.js +4 -0
  636. package/dist/kolibri/component-S6ib3O8N.js +4 -0
  637. package/dist/kolibri/component-XbTjo2nm.js +4 -0
  638. package/dist/kolibri/component-names-Ur_UbEzI.js +4 -0
  639. package/dist/kolibri/contrast-Ujnfz49m.js +4 -0
  640. package/dist/kolibri/controller-BdPVgWDs.js +4 -0
  641. package/dist/kolibri/dev.utils--eVyQ4zr.js +4 -0
  642. package/dist/kolibri/devtools-CosbyboJ.js +4 -0
  643. package/dist/kolibri/disabled-Cu0e92-b.js +4 -0
  644. package/dist/kolibri/element-focus-BYLFG-oz.js +4 -0
  645. package/dist/kolibri/element-interaction-C2pgnQ6t.js +4 -0
  646. package/dist/kolibri/events-B2UzbUT7.js +4 -0
  647. package/dist/kolibri/field-control-DbmtKHc1.js +4 -0
  648. package/dist/kolibri/group-CqAFhkgE.js +4 -0
  649. package/dist/kolibri/has-closer-DOs1CXhp.js +4 -0
  650. package/dist/kolibri/href-DQbHtp6T.js +4 -0
  651. package/dist/kolibri/i18n-Bcb0tuyF.js +4 -0
  652. package/dist/kolibri/i18n-Cf0DhAke.js +4 -0
  653. package/dist/kolibri/id-BXwy9iRy.js +4 -0
  654. package/dist/kolibri/index-Bsx5X6jK.js +6 -0
  655. package/dist/kolibri/index.esm.js +1 -1
  656. package/dist/kolibri/input-RvLnUp6C.js +4 -0
  657. package/dist/kolibri/input-container-BpG3WHug.js +4 -0
  658. package/dist/kolibri/item-Cw_jdgc6.js +4 -0
  659. package/dist/kolibri/item-DMttg5uX.js +4 -0
  660. package/dist/kolibri/item-DibV9jD7.js +4 -0
  661. package/dist/kolibri/item-KqTsA-5a.js +4 -0
  662. package/dist/kolibri/item-pool-C_4Isquh.js +4 -0
  663. package/dist/kolibri/keyboard-Cc1-_wSt.js +4 -0
  664. package/dist/kolibri/kol-abbr.entry.js +1 -1
  665. package/dist/kolibri/kol-accordion.entry.js +1 -1
  666. package/dist/kolibri/kol-alert.entry.js +1 -1
  667. package/dist/kolibri/kol-avatar.entry.js +1 -1
  668. package/dist/kolibri/kol-badge.entry.js +1 -1
  669. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  670. package/dist/kolibri/kol-button-link.entry.js +1 -1
  671. package/dist/kolibri/kol-button.entry.js +1 -1
  672. package/dist/kolibri/kol-card.entry.js +1 -1
  673. package/dist/kolibri/kol-combobox.entry.js +1 -1
  674. package/dist/kolibri/kol-details.entry.js +1 -1
  675. package/dist/kolibri/kol-dialog.entry.js +1 -1
  676. package/dist/kolibri/kol-drawer.entry.js +1 -1
  677. package/dist/kolibri/kol-form.entry.js +1 -1
  678. package/dist/kolibri/kol-heading.entry.js +1 -1
  679. package/dist/kolibri/kol-icon.entry.js +1 -1
  680. package/dist/kolibri/kol-image.entry.js +1 -1
  681. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  682. package/dist/kolibri/kol-input-color.entry.js +1 -1
  683. package/dist/kolibri/kol-input-date.entry.js +1 -1
  684. package/dist/kolibri/kol-input-email.entry.js +1 -1
  685. package/dist/kolibri/kol-input-file.entry.js +1 -1
  686. package/dist/kolibri/kol-input-number.entry.js +1 -1
  687. package/dist/kolibri/kol-input-password.entry.js +1 -1
  688. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  689. package/dist/kolibri/kol-input-range.entry.js +1 -1
  690. package/dist/kolibri/kol-input-text.entry.js +1 -1
  691. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  692. package/dist/kolibri/kol-link-button.entry.js +1 -1
  693. package/dist/kolibri/kol-link.entry.js +1 -1
  694. package/dist/kolibri/kol-meter.entry.js +1 -1
  695. package/dist/kolibri/kol-modal.entry.js +1 -1
  696. package/dist/kolibri/kol-nav.entry.js +1 -1
  697. package/dist/kolibri/kol-pagination.entry.js +1 -1
  698. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  699. package/dist/kolibri/kol-progress.entry.js +1 -1
  700. package/dist/kolibri/kol-quote.entry.js +1 -1
  701. package/dist/kolibri/kol-select.entry.js +1 -1
  702. package/dist/kolibri/kol-single-select.entry.js +1 -1
  703. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  704. package/dist/kolibri/kol-spin.entry.js +1 -1
  705. package/dist/kolibri/kol-split-button.entry.js +1 -1
  706. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  707. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  708. package/dist/kolibri/kol-tabs.entry.js +1 -1
  709. package/dist/kolibri/kol-textarea.entry.js +1 -1
  710. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  711. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  712. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  713. package/dist/kolibri/kol-tree.entry.js +1 -1
  714. package/dist/kolibri/kol-version.entry.js +1 -1
  715. package/dist/kolibri/kolibri.esm.js +1 -1
  716. package/dist/kolibri/label-DEZIsnKw.js +4 -0
  717. package/dist/kolibri/label-hints-C--ftrg_.js +4 -0
  718. package/dist/kolibri/label-lang-segment-B8ayoizG.js +4 -0
  719. package/dist/kolibri/label-with-expert-slot-DXi27J4o.js +4 -0
  720. package/dist/kolibri/level-BV6M_zmM.js +4 -0
  721. package/dist/kolibri/link-target-C9qzQAQg.js +4 -0
  722. package/dist/kolibri/links-Dt0OhMXb.js +4 -0
  723. package/dist/kolibri/multiple-DQdOCIyW.js +4 -0
  724. package/dist/kolibri/number-value-DtZloH4P.js +4 -0
  725. package/dist/kolibri/open-DaO7wXMr.js +4 -0
  726. package/dist/kolibri/open-items-cache-C98FzYQ9.js +4 -0
  727. package/dist/kolibri/options-C8BsBGBl.js +4 -0
  728. package/dist/kolibri/options-CKAHQbcF.js +4 -0
  729. package/dist/kolibri/orientation-VvJMCd9m.js +4 -0
  730. package/dist/kolibri/placeholder-7pbjAn-x.js +4 -0
  731. package/dist/kolibri/props-from-config-DVxNB2Lx.js +4 -0
  732. package/dist/kolibri/read-only-3XuQIAB8.js +4 -0
  733. package/dist/kolibri/required-CNgdXJ8H.js +4 -0
  734. package/dist/kolibri/resolve-props-B1DQKjTD.js +4 -0
  735. package/dist/kolibri/resolve-props-DOaJCd7Y.js +4 -0
  736. package/dist/kolibri/rows-DL1whQNh.js +4 -0
  737. package/dist/kolibri/scroll-lock-CF_Z7MzO.js +4 -0
  738. package/dist/kolibri/shared-state-sWI1upS8.js +4 -0
  739. package/dist/kolibri/smart-button-BdA5-cUG.js +4 -0
  740. package/dist/kolibri/spell-check-B7J-eU5K.js +4 -0
  741. package/dist/kolibri/src-C2baLPDp.js +4 -0
  742. package/dist/kolibri/step-DmzcVFZB.js +4 -0
  743. package/dist/kolibri/suggestions-BJxNFtkL.js +4 -0
  744. package/dist/kolibri/suggestions-BXp8OhOi.js +4 -0
  745. package/dist/kolibri/test-component.entry.js +1 -1
  746. package/dist/kolibri/theme-store-CEu5d_EK.js +4 -0
  747. package/dist/kolibri/toggle-handler-D7oFDKvq.js +4 -0
  748. package/dist/kolibri/tooltip-open-tracking-DXhnfmA2.js +4 -0
  749. package/dist/kolibri/unique-nav-labels-BOqpcYk4.js +4 -0
  750. package/dist/kolibri/unit-BFYz7QfA.js +4 -0
  751. package/dist/kolibri/validators-DPSQyOeQ.js +4 -0
  752. package/dist/kolibri/value-string-Cmozozek.js +4 -0
  753. package/dist/kolibri/width-D5-Licpp.js +4 -0
  754. package/dist/types/components/alert/component.d.ts +1 -0
  755. package/dist/types/components/input-date/component.d.ts +1 -1
  756. package/dist/types/components/pagination/component.d.ts +1 -1
  757. package/dist/types/components/progress/component.d.ts +1 -0
  758. package/dist/types/components/single-select/component.d.ts +1 -0
  759. package/dist/types/components/table-stateful/component.d.ts +3 -4
  760. package/dist/types/components/table-stateless/base.d.ts +2 -2
  761. package/dist/types/components/table-stateless/component.d.ts +3 -6
  762. package/dist/types/components/tabs/component.d.ts +1 -2
  763. package/dist/types/components/tree/component.d.ts +1 -0
  764. package/dist/types/components.d.ts +18 -125
  765. package/dist/types/core/component-names.d.ts +52 -53
  766. package/dist/types/core/i18n.d.ts +1 -1
  767. package/dist/types/core/shared-state.d.ts +1 -0
  768. package/dist/types/core/tag-transformer.d.ts +4 -0
  769. package/dist/types/core/theme-store.d.ts +1 -0
  770. package/dist/types/index.d.ts +3 -1
  771. package/dist/types/internal/functional-components/bem-root-node/component.d.ts +8 -4
  772. package/dist/types/internal/functional-components/button/item.d.ts +1 -1
  773. package/dist/types/internal/functional-components/dialog/component.d.ts +7 -3
  774. package/dist/types/internal/functional-components/form-association/api.d.ts +1 -1
  775. package/dist/types/internal/functional-components/form-association/behavior.d.ts +2 -2
  776. package/dist/types/internal/functional-components/form-field/custom-suggestions.d.ts +1 -0
  777. package/dist/types/internal/functional-components/icon/api.d.ts +1 -1
  778. package/dist/types/internal/functional-components/pagination/api.d.ts +2 -2
  779. package/dist/types/internal/functional-components/pagination/item.d.ts +5 -3
  780. package/dist/types/internal/functional-components/pagination/page-size-select.d.ts +1 -0
  781. package/dist/types/internal/functional-components/single-select/component.d.ts +3 -0
  782. package/dist/types/internal/functional-components/table-stateful/model.d.ts +2 -2
  783. package/dist/types/internal/functional-components/table-stateless/api.d.ts +2 -2
  784. package/dist/types/internal/functional-components/table-stateless/table-model.d.ts +4 -4
  785. package/dist/types/internal/props/helpers/validators.d.ts +2 -1
  786. package/dist/types/internal/props/index.d.ts +1 -0
  787. package/dist/types/internal/props/label-decorative.d.ts +4 -0
  788. package/dist/types/internal/props/table-headers.d.ts +2 -2
  789. package/dist/types/internal/props/table-stateful-headers.d.ts +2 -2
  790. package/dist/types/locales/de.d.ts +1 -0
  791. package/dist/types/locales/en.d.ts +1 -0
  792. package/dist/types/schema/bem-registry.d.ts +87 -23
  793. package/dist/types/schema/components/pagination.d.ts +2 -2
  794. package/dist/types/schema/components/table.d.ts +2 -3
  795. package/dist/types/schema/components/tableStateless.d.ts +5 -4
  796. package/dist/types/schema/i18n-keys.d.ts +29 -28
  797. package/dist/types/schema/index.d.ts +1 -1
  798. package/dist/types/schema/props/aria-details.d.ts +0 -2
  799. package/dist/types/schema/props/aria-labelledby.d.ts +1 -2
  800. package/dist/types/schema/props/index.d.ts +1 -1
  801. package/dist/types/schema/props/label.d.ts +1 -0
  802. package/dist/types/schema/props/table-callbacks.d.ts +3 -3
  803. package/dist/types/schema/props/table-headers.d.ts +3 -0
  804. package/dist/types/stencil-public-runtime.d.ts +1 -1
  805. package/dist/types/utils/aria-labelledby.d.ts +0 -6
  806. package/doc/badge.md +15 -0
  807. package/doc/button.md +13 -0
  808. package/doc/input-checkbox.md +15 -0
  809. package/doc/input-number.md +15 -0
  810. package/doc/link.md +13 -0
  811. package/doc/pagination.md +13 -13
  812. package/doc/quote.md +13 -0
  813. package/doc/table-stateful.md +33 -16
  814. package/doc/table-stateless.md +31 -15
  815. package/package.json +23 -15
  816. package/vscode-custom-data.json +3 -20
  817. package/dist/cjs/ariaCurrentService-3051l6MI.js +0 -28
  818. package/dist/cjs/block-bem-BI7yfoFU.js +0 -18
  819. package/dist/cjs/bootstrap-DkgMbRSL.js +0 -33
  820. package/dist/cjs/clsx-Bm_HQUnh.js +0 -54
  821. package/dist/cjs/common-C-hcIfzh.js +0 -1755
  822. package/dist/cjs/component-BEzksV1U.js +0 -9300
  823. package/dist/cjs/component-BQUKg-qY.js +0 -53
  824. package/dist/cjs/component-BlAPlTfV.js +0 -20
  825. package/dist/cjs/component-DMfcX1br.js +0 -14
  826. package/dist/cjs/component-Dkx5Zyhq.js +0 -18
  827. package/dist/cjs/component-names-BMpML1sX.js +0 -113
  828. package/dist/cjs/input-CgTL2oH6.js +0 -20
  829. package/dist/cjs/kol-click-button.cjs.entry.js +0 -55
  830. package/dist/cjs/kol-skeleton.cjs.entry.js +0 -107
  831. package/dist/cjs/name-D4qpL1m-.js +0 -10
  832. package/dist/collection/components/click-button/component.js +0 -105
  833. package/dist/collection/components/skeleton/component.js +0 -215
  834. package/dist/collection/internal/functional-components/click-button/api.js +0 -7
  835. package/dist/collection/internal/functional-components/click-button/component.js +0 -9
  836. package/dist/collection/internal/functional-components/skeleton/api.js +0 -7
  837. package/dist/collection/internal/functional-components/skeleton/component.js +0 -20
  838. package/dist/collection/schema/props/table-header-cells.js +0 -36
  839. package/dist/components/aria-labelledby.js +0 -4
  840. package/dist/components/block-bem.js +0 -4
  841. package/dist/components/clsx.js +0 -4
  842. package/dist/components/href.js +0 -4
  843. package/dist/components/kol-click-button.d.ts +0 -11
  844. package/dist/components/kol-click-button.js +0 -4
  845. package/dist/components/kol-skeleton.d.ts +0 -11
  846. package/dist/components/kol-skeleton.js +0 -4
  847. package/dist/components/name.js +0 -4
  848. package/dist/components/props-from-config.js +0 -4
  849. package/dist/esm/ariaCurrentService-YoLNpD5S.js +0 -25
  850. package/dist/esm/block-bem-BpQSY04L.js +0 -16
  851. package/dist/esm/bootstrap-B9DtStuh.js +0 -28
  852. package/dist/esm/clsx-COFh-Vc8.js +0 -52
  853. package/dist/esm/common-OzsC_6kt.js +0 -1709
  854. package/dist/esm/component-Bc1n82Y8.js +0 -16
  855. package/dist/esm/component-CZZNha2e.js +0 -9295
  856. package/dist/esm/component-Cdnq5GYF.js +0 -18
  857. package/dist/esm/component-DLSlbWg8.js +0 -12
  858. package/dist/esm/component-DeMf195P.js +0 -48
  859. package/dist/esm/component-names-CrfBV37S.js +0 -111
  860. package/dist/esm/kol-click-button.entry.js +0 -53
  861. package/dist/esm/kol-skeleton.entry.js +0 -105
  862. package/dist/esm/label-with-expert-slot-CicRes-W.js +0 -12
  863. package/dist/esm/name-B2Yf3EpX.js +0 -8
  864. package/dist/esm/tooltip-open-tracking-D3tCiiGP.js +0 -18
  865. package/dist/kolibri/Heading-BVhjT9av.js +0 -4
  866. package/dist/kolibri/access-and-short-key-ijzCZfHm.js +0 -4
  867. package/dist/kolibri/api-D92_O-0H.js +0 -4
  868. package/dist/kolibri/app-globals-CBGjgNge.js +0 -4
  869. package/dist/kolibri/aria-labelledby-CLehu03h.js +0 -4
  870. package/dist/kolibri/ariaCurrentService-YoLNpD5S.js +0 -4
  871. package/dist/kolibri/base-BLBSJu_1.js +0 -4
  872. package/dist/kolibri/base-CHmdLgoO.js +0 -4
  873. package/dist/kolibri/base-DIcqHqMz.js +0 -4
  874. package/dist/kolibri/base-qvPPg-dn.js +0 -4
  875. package/dist/kolibri/base-web-component-CaAexWy_.js +0 -4
  876. package/dist/kolibri/base-web-component-DbagnM7m.js +0 -4
  877. package/dist/kolibri/base-web-component-XgI4wUyN.js +0 -4
  878. package/dist/kolibri/behavior-B08CXmI4.js +0 -4
  879. package/dist/kolibri/behavior-CwUUkdaP.js +0 -4
  880. package/dist/kolibri/behavior-DW7_5Wxp.js +0 -4
  881. package/dist/kolibri/bem-registry-CWN7_O1L.js +0 -4
  882. package/dist/kolibri/block-bem-BpQSY04L.js +0 -4
  883. package/dist/kolibri/bootstrap-B9DtStuh.js +0 -4
  884. package/dist/kolibri/clsx-COFh-Vc8.js +0 -4
  885. package/dist/kolibri/color-eAL9I7Wq.js +0 -4
  886. package/dist/kolibri/common-OzsC_6kt.js +0 -4
  887. package/dist/kolibri/component-8ALsFV4i.js +0 -4
  888. package/dist/kolibri/component-BTMWoACz.js +0 -4
  889. package/dist/kolibri/component-Bc1n82Y8.js +0 -4
  890. package/dist/kolibri/component-CZZNha2e.js +0 -4
  891. package/dist/kolibri/component-CdKSiR5P.js +0 -4
  892. package/dist/kolibri/component-Cdnq5GYF.js +0 -4
  893. package/dist/kolibri/component-D0mBOGjS.js +0 -4
  894. package/dist/kolibri/component-DBAicJ2u.js +0 -4
  895. package/dist/kolibri/component-DCw1ZAE5.js +0 -4
  896. package/dist/kolibri/component-DLSlbWg8.js +0 -4
  897. package/dist/kolibri/component-DeMf195P.js +0 -4
  898. package/dist/kolibri/component-nR5Bf9G5.js +0 -4
  899. package/dist/kolibri/component-names-CrfBV37S.js +0 -4
  900. package/dist/kolibri/contrast-D78VGPFR.js +0 -4
  901. package/dist/kolibri/controller-C3O9ohSP.js +0 -4
  902. package/dist/kolibri/dev.utils-wYkYn08d.js +0 -4
  903. package/dist/kolibri/devtools-DrBkkLdP.js +0 -4
  904. package/dist/kolibri/disabled-Cqhc40CU.js +0 -4
  905. package/dist/kolibri/element-focus-BIRmGg5W.js +0 -4
  906. package/dist/kolibri/element-interaction-sGYdEpmv.js +0 -4
  907. package/dist/kolibri/events-BIT-JUP2.js +0 -4
  908. package/dist/kolibri/field-control-Cs5VvsYo.js +0 -4
  909. package/dist/kolibri/group-uNo1CfbK.js +0 -4
  910. package/dist/kolibri/has-closer-B9NQY7BK.js +0 -4
  911. package/dist/kolibri/href-JqLbNBsW.js +0 -4
  912. package/dist/kolibri/i18n-Dl6Jjofb.js +0 -4
  913. package/dist/kolibri/i18n-DtLKn3Xt.js +0 -4
  914. package/dist/kolibri/id-CIYvVaNr.js +0 -4
  915. package/dist/kolibri/index-BKEJuyFi.js +0 -6
  916. package/dist/kolibri/input-Dja5Qioc.js +0 -4
  917. package/dist/kolibri/input-container-C2Am7LEP.js +0 -4
  918. package/dist/kolibri/item-C4AmpdVD.js +0 -4
  919. package/dist/kolibri/item-ConW1c81.js +0 -4
  920. package/dist/kolibri/item-D627ShRd.js +0 -4
  921. package/dist/kolibri/item-DIAFIFSy.js +0 -4
  922. package/dist/kolibri/item-pool-BOxAYePG.js +0 -4
  923. package/dist/kolibri/keyboard-Cnv7zP3N.js +0 -4
  924. package/dist/kolibri/kol-click-button.entry.js +0 -4
  925. package/dist/kolibri/kol-skeleton.entry.js +0 -4
  926. package/dist/kolibri/label-BRosRgdX.js +0 -4
  927. package/dist/kolibri/label-hints-Jn18RUT-.js +0 -4
  928. package/dist/kolibri/label-lang-segment-2_GnxjFp.js +0 -4
  929. package/dist/kolibri/label-with-expert-slot-CicRes-W.js +0 -4
  930. package/dist/kolibri/level-CA1s1_Mf.js +0 -4
  931. package/dist/kolibri/link-target-FX94oqMo.js +0 -4
  932. package/dist/kolibri/links-DwucTqcR.js +0 -4
  933. package/dist/kolibri/multiple-DqrZxybx.js +0 -4
  934. package/dist/kolibri/name-B2Yf3EpX.js +0 -4
  935. package/dist/kolibri/number-value-B-SJ1dRo.js +0 -4
  936. package/dist/kolibri/open-DRRv1KFK.js +0 -4
  937. package/dist/kolibri/open-items-cache-D-kml1h6.js +0 -4
  938. package/dist/kolibri/options-B0rBHetL.js +0 -4
  939. package/dist/kolibri/options-DCaUcfAu.js +0 -4
  940. package/dist/kolibri/orientation-XNOCaPwy.js +0 -4
  941. package/dist/kolibri/placeholder-BeLIzdJv.js +0 -4
  942. package/dist/kolibri/props-from-config-Ci0dILpz.js +0 -4
  943. package/dist/kolibri/read-only-Bby9r6ZX.js +0 -4
  944. package/dist/kolibri/required-hoaT7UmZ.js +0 -4
  945. package/dist/kolibri/resolve-props-BLZxWC3j.js +0 -4
  946. package/dist/kolibri/resolve-props-D2KiItuv.js +0 -4
  947. package/dist/kolibri/rows-B0x8CR7K.js +0 -4
  948. package/dist/kolibri/scroll-lock-Y2hf47KW.js +0 -4
  949. package/dist/kolibri/smart-button-CS_ZriPt.js +0 -4
  950. package/dist/kolibri/spell-check-DzgftyqL.js +0 -4
  951. package/dist/kolibri/src-DaGhmCL1.js +0 -4
  952. package/dist/kolibri/step-Bdj89bGO.js +0 -4
  953. package/dist/kolibri/suggestions-DuqzGDve.js +0 -4
  954. package/dist/kolibri/suggestions-Dy1X-Pc3.js +0 -4
  955. package/dist/kolibri/toggle-handler-BRLmxe1J.js +0 -4
  956. package/dist/kolibri/tooltip-open-tracking-D3tCiiGP.js +0 -4
  957. package/dist/kolibri/unique-nav-labels-h2KOu5Qy.js +0 -4
  958. package/dist/kolibri/unit-BUhhJbhT.js +0 -4
  959. package/dist/kolibri/validators-BVM40IEr.js +0 -4
  960. package/dist/kolibri/value-string-e9pwLcS-.js +0 -4
  961. package/dist/kolibri/width-CgYY17tL.js +0 -4
  962. package/dist/types/components/click-button/component.d.ts +0 -15
  963. package/dist/types/components/skeleton/component.d.ts +0 -26
  964. package/dist/types/internal/functional-components/click-button/api.d.ts +0 -15
  965. package/dist/types/internal/functional-components/click-button/component.d.ts +0 -4
  966. package/dist/types/internal/functional-components/skeleton/api.d.ts +0 -29
  967. package/dist/types/internal/functional-components/skeleton/component.d.ts +0 -4
  968. package/dist/types/schema/props/table-header-cells.d.ts +0 -11
  969. package/doc/skeleton.md +0 -54
@@ -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{B as n}from"./base-web-component.js";import{i as l,g as a,f as r,B as s,F as c}from"./base-web-component2.js";import{i as d,F as h}from"./field-control.js";import{f as p,n as f}from"./options.js";import{a as u}from"./tslib.es6.js";import{b as k}from"./bem-registry.js";import{c as m}from"./clsx.js";import{B as b}from"./component.js";import{I as _}from"./input.js";import{c as g}from"./props-from-config.js";import{c as w}from"./options2.js";import{n as y}from"./orientation.js";import{r as v}from"./required.js";import{v as x}from"./component3.js";import{T as z}from"./behavior.js";import{c as j,a as T}from"./dev.utils.js";import{b as O,s as q}from"./element-interaction.js";import{d as B,s as L}from"./element-focus.js";import{s as V}from"./controller.js";const D=w(),A=g("orientation","vertical",y),M=g("value",null,(t=>Array.isArray(t)?t[0]:t)),P=k.forBlock("kol-input-radio"),H=o=>{var{class:e,inputProps:i}=o,n=u(o,["class","inputProps"]);const{class:r}=i,s=u(i,["class"]);return t(b,Object.assign({component:"label",block:"kol-input-radio",modifiers:Object.assign({checked:!!i.checked,disabled:!!i.disabled,required:!!i.required,touched:!!i.touched},l(i.msg,i.touched)?{[a(i.msg)]:!0}:{}),class:e},n),t(_,Object.assign({class:m(P("input"),r)},s,{type:"radio"})))},I={required:[...r.required],optional:[...r.optional,D,A,M,v,x]},S=o(class extends s{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=j("input-radio"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.inputRefs=new Map,this.keyOptionMap=new Map,this.optionTooltips=new Map,this.propsConfig=I,this._ariaDetails=void 0,this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._infoPopover=void 0,this._msg=void 0,this._name=void 0,this._on=void 0,this._options=void 0,this._orientation="vertical",this._required=!1,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=null,this._variant=void 0,this.setSelectedInputRef=t=>{this.inputRef=t},this.setOptionInputRef=t=>o=>{o?this.inputRefs.set(t,o):this.inputRefs.delete(t)},this.handleRadioInput=t=>{const o=this.getOptionOfEvent(t);void 0!==o&&this.handleInput(t,o.value)},this.handleRadioChange=t=>{const o=this.getOptionOfEvent(t);void 0!==o&&(this.handleChange(t,o.value),this._value=o.value)},this.handleRadioKeyDown=t=>{this.handleKeyDown(t),V(t,{form:this.host,ref:this.inputRef})},this.initFormAssociation("radio",this._name)}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)}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMsg(t){this.applyMsg(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchOptions(t){D.apply(t,(t=>{this.setRenderProp("options",t),t.length>0&&(this.keyOptionMap.clear(),p(this.keyOptionMap,f(t)))}))}watchOrientation(t){A.apply(t,(t=>this.setRenderProp("orientation",t)))}watchRequired(t){v.apply(t,(t=>this.setRenderProp("required",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchValue(t){null==t?this.setRenderProp("value",t):M.apply(t,(t=>this.setRenderProp("value",t))),this.formAssociation.setFormAssociatedValue(this.getRenderProp("value"))}watchVariant(t){x.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){return Promise.resolve(this._value)}async focus(t){const o=this.getFocusableInput();return B(this.host,(()=>L(o,t)))}async click(){return O(this.host,(async()=>q(this.getFocusableInput())))}componentWillLoad(){this._touched=!0===this._touched,this.watchAriaDetails(this._ariaDetails),this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),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.watchOn(this._on),this.watchTooltipAlign(this._tooltipAlign),this.watchVariant(this._variant),this.watchRequired(this._required),this.watchOrientation(this._orientation),this.watchOptions(this._options),this.watchValue(this._value)}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField(),this.optionTooltips.forEach((t=>t.destroy())),this.optionTooltips.clear()}isOptionSelected(t){var o;return this.getRenderProp("value")===(null!==(o=t.value)&&void 0!==o?o:t.label)}getFocusableInput(){const t=this.getRenderProp("options"),o=!!this.getRenderProp("disabled"),e=t.findIndex((t=>this.isOptionSelected(t)&&!o&&!t.disabled));if(-1!==e){const t=this.inputRefs.get(e);if(t)return t}const i=t.findIndex((t=>!o&&!t.disabled));if(-1!==i)return this.inputRefs.get(i)}getOptionOfEvent(t){return t.target instanceof HTMLInputElement?this.keyOptionMap.get(t.target.value):void 0}getOptionTooltipRefs(t,o){let e=this.optionTooltips.get(t);d({hideLabel:this.getRenderProp("hideLabel"),label:o})?(e||(e=new z(n.stateLess),e.componentWillLoad({label:""}),this.optionTooltips.set(t,e)),e.watchAlign(this.getRenderProp("tooltipAlign")),e.watchBadgeText(""),e.watchId(T(t,"label")),e.watchLabel(o)):e&&(e.destroy(),this.optionTooltips.delete(t),e=void 0);const i=e;return{refInput:t=>{i&&t&&(i.initContext(t),i.syncListeners(void 0,t,!0))},refTooltip:t=>{null==i||i.setTooltipElementRef(t)}}}isOptionDisabled(t){return!!this.getRenderProp("disabled")||!!t.disabled}getInputProps(t,o,e,i){const{hasError:n}=this.getAria(),l=this.getRenderProp("hideLabel");return{id:o,hideLabel:l,label:this.getRenderProp("label"),value:"-"+e,disabled:this.isOptionDisabled(t),name:this.getRenderProp("name")||this.id,required:this.getRenderProp("required"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg"),ref:t=>{this.setOptionInputRef(e)(t),i&&this.setSelectedInputRef(t)},"aria-label":l&&"string"==typeof t.label?t.label:void 0,type:"radio",checked:i,onBlur:this.handleBlur,onChange:this.handleRadioChange,onFocus:this.handleFocus,onInput:this.handleRadioInput,onKeyDown:this.handleRadioKeyDown,"aria-invalid":n?"true":void 0}}renderOption(o,e){const i=T(this.id,e+""),n=this.isOptionSelected(o),l=o.label;return t(h,Object.assign({key:i,id:i,label:l,hint:o.hint,hideLabel:this.getRenderProp("hideLabel"),tooltipAlign:this.getRenderProp("tooltipAlign"),disabled:this.isOptionDisabled(o),msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),required:!1,labelProps:{showBadge:!1}},this.getOptionTooltipRefs(i,l)),t(H,{inputProps:this.getInputProps(o,i,e,n)}))}render(){const{ariaDescribedBy:o}=this.getAria();return t(e,{key:"5742f3de38fb7d91196e591fa0a253d8b06b49da"},t(c,Object.assign({key:"039352572e9b706785a98dcd7390b3e0c27b8168"},this.getFormFieldProps({class:"kol-form-field--radio",required:this.getRenderProp("required"),variant:this.getRenderProp("variant"),renderNoTooltip:!0}),{component:"fieldset",orientation:this.getRenderProp("orientation"),hideLabel:!1,ariaDescribedBy:o.length>0?o.join(" "):void 0}),this.getRenderProp("options").map(((t,o)=>this.renderOption(t,o)))))}get host(){return this}static get watchers(){return{_ariaDetails:[{watchAriaDetails:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_options:[{watchOptions:0}],_orientation:[{watchOrientation:0}],_required:[{watchRequired: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=1794497133718"); src: url("kolicons.eot?t=1794497133718#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794497133718") format("woff2"), url("kolicons.woff?t=1794497133718") format("woff"), url("kolicons.ttf?t=1794497133718") format("truetype"), url("kolicons.svg?t=1794497133718#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; } .kol-field-control { display: grid; min-height: var(--a11y-min-size); align-items: center; justify-content: left; grid-template-areas: "input label"; grid-template-columns: auto 1fr; grid-template-rows: auto; } .kol-field-control:has(.kol-field-control__hint) { grid-template-areas: "input label" "hint hint"; grid-template-columns: auto 1fr; grid-template-rows: auto auto; } .kol-field-control--label-align-left:not(.kol-field-control--hide-label) { grid-template-areas: "label input"; grid-template-columns: 1fr auto; grid-template-rows: auto; } .kol-field-control--label-align-left:not(.kol-field-control--hide-label):has(.kol-field-control__hint) { grid-template-areas: "label input" "hint hint"; grid-template-columns: 1fr auto; grid-template-rows: auto auto; } .kol-field-control__input { display: flex; min-height: var(--a11y-min-size); align-items: center; grid-area: input; } .kol-field-control__label { display: flex; min-height: var(--a11y-min-size); flex-grow: 1; align-items: center; cursor: pointer; grid-area: label; } .kol-field-control__label--visually-hidden { display: none; height: 0; margin: 0; padding: 0; visibility: hidden; } .kol-field-control__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-field-control__hint { grid-area: hint; } .kol-field-control--disabled .kol-field-control__label { cursor: not-allowed; } .kol-field-control--required .kol-field-control__label-text:has(.kol-span__slot[hidden])::after, .kol-field-control--required .kol-tooltip__content .kol-span__label::after { 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-form-field { --border-width: 2px; --input-size: 1.5em; } .kol-form-field__label { display: contents; } .kol-form-field__label-text { display: ruby; } .kol-form-field__input { display: flex; flex-direction: column; } .kol-form-field__input--orientation-horizontal { flex-direction: row; flex-wrap: wrap; align-items: flex-start; } .kol-form-field--disabled { opacity: unset; } .kol-input-radio { display: flex; position: relative; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; justify-content: center; cursor: pointer; } .kol-input-radio__input { border-style: solid; border-radius: 100%; display: flex; width: var(--input-size); min-width: var(--input-size); height: var(--input-size); min-height: var(--input-size); margin: 0; padding: 0; border-width: var(--border-width); appearance: none; cursor: pointer; } .kol-input-radio__input:before { border-radius: 100%; width: calc(var(--input-size) / 2); height: calc(var(--input-size) / 2); margin: auto; content: ""; } .kol-input-radio__input:checked:before { background-color: black; } @media (forced-colors: active) { .kol-input-radio__input:checked:before { background-color: selectedItem !important; } } .kol-input-radio__input:disabled { cursor: not-allowed; } .kol-input-radio--disabled { cursor: not-allowed; } }'}}},[545,"kol-input-radio",{_ariaDetails:[1,"_aria-details"],_disabled:[4],_hideMsg:[4,"_hide-msg"],_hideLabel:[4,"_hide-label"],_hint:[1],_infoPopover:[16],_label:[1],_msg:[1],_name:[1],_on:[16],_options:[1],_orientation:[1],_required:[4],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[1544],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],getValue:[64],focus:[64],click:[64]},void 0,{_ariaDetails:[{watchAriaDetails:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_options:[{watchOptions:0}],_orientation:[{watchOrientation:0}],_required:[{watchRequired:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]),F=S,E=function(){"undefined"!=typeof customElements&&["kol-input-radio"].forEach((t=>{"kol-input-radio"===t&&(customElements.get(i(t))||customElements.define(i(t),S))}))};export{F as KolInputRadio,E as defineCustomElement}
4
+ import{h as t,p as o,H as e,t as i}from"./common.js";import{c as l,f as n,B as a,a as r}from"./base-web-component.js";import{i as s,g as c,f as d,B as h,F as p}from"./base-web-component2.js";import{i as u,F as f}from"./field-control.js";import{f as k,n as m}from"./options.js";import{a as b}from"./tslib.es6.js";import{b as _}from"./bem-registry.js";import{I as g}from"./input.js";import{c as w}from"./options2.js";import{n as v}from"./orientation.js";import{r as y}from"./required.js";import{v as x}from"./component6.js";import{T as z}from"./behavior.js";import{c as T,a as j}from"./dev.utils.js";import{b as O,s as q}from"./element-interaction.js";import{d as B,s as L}from"./element-focus.js";import{s as V}from"./controller.js";const D=w(),A=l("orientation","vertical",v),H=l("value",null,(t=>Array.isArray(t)?t[0]:t)),M=_.forBlock("kol-input-radio"),P=o=>{var{class:e,inputProps:i}=o,l=b(o,["class","inputProps"]);const{class:r}=i,d=b(i,["class"]);return t(a,Object.assign({component:"label",block:"kol-input-radio",modifiers:Object.assign({checked:!!i.checked,disabled:!!i.disabled,required:!!i.required,touched:!!i.touched},s(i.msg,i.touched)?{[c(i.msg)]:!0}:{}),class:e},l),t(g,Object.assign({class:n(M("input"),r)},d,{type:"radio"})))},I={required:[...d.required],optional:[...d.optional,D,A,H,y,x]},S=o(class extends h{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=T("input-radio"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.inputRefs=new Map,this.keyOptionMap=new Map,this.optionTooltips=new Map,this.propsConfig=I,this._ariaDetails=void 0,this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._infoPopover=void 0,this._msg=void 0,this._name=void 0,this._on=void 0,this._options=void 0,this._orientation="vertical",this._required=!1,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=null,this._variant=void 0,this.setSelectedInputRef=t=>{this.inputRef=t},this.setOptionInputRef=t=>o=>{o?this.inputRefs.set(t,o):this.inputRefs.delete(t)},this.handleRadioInput=t=>{const o=this.getOptionOfEvent(t);void 0!==o&&this.handleInput(t,o.value)},this.handleRadioChange=t=>{const o=this.getOptionOfEvent(t);void 0!==o&&(this.handleChange(t,o.value),this._value=o.value)},this.handleRadioKeyDown=t=>{this.handleKeyDown(t),V(t,{form:this.host,ref:this.inputRef})},this.initFormAssociation("radio",this._name)}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)}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMsg(t){this.applyMsg(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchOptions(t){D.apply(t,(t=>{this.setRenderProp("options",t),t.length>0&&(this.keyOptionMap.clear(),k(this.keyOptionMap,m(t)))}))}watchOrientation(t){A.apply(t,(t=>this.setRenderProp("orientation",t)))}watchRequired(t){y.apply(t,(t=>this.setRenderProp("required",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchValue(t){null==t?this.setRenderProp("value",t):H.apply(t,(t=>this.setRenderProp("value",t))),this.formAssociation.setFormAssociatedValue(this.getRenderProp("value"))}watchVariant(t){x.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){return Promise.resolve(this._value)}async focus(t){return B(this.host,(()=>L(this.getFocusableInput(),t)))}async click(){return O(this.host,(async()=>q(this.getFocusableInput())))}componentWillLoad(){this._touched=!0===this._touched,this.watchAriaDetails(this._ariaDetails),this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),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.watchOn(this._on),this.watchTooltipAlign(this._tooltipAlign),this.watchVariant(this._variant),this.watchRequired(this._required),this.watchOrientation(this._orientation),this.watchOptions(this._options),this.watchValue(this._value)}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField(),this.optionTooltips.forEach((t=>t.destroy())),this.optionTooltips.clear()}isOptionSelected(t){var o;return this.getRenderProp("value")===(null!==(o=t.value)&&void 0!==o?o:t.label)}getFocusableInput(){const t=this.getRenderProp("options"),o=!!this.getRenderProp("disabled"),e=t.findIndex((t=>this.isOptionSelected(t)&&!o&&!t.disabled));if(-1!==e){const t=this.inputRefs.get(e);if(t)return t}const i=t.findIndex((t=>!o&&!t.disabled));if(-1!==i)return this.inputRefs.get(i)}getOptionOfEvent(t){return t.target instanceof HTMLInputElement?this.keyOptionMap.get(t.target.value):void 0}getOptionTooltipRefs(t,o){let e=this.optionTooltips.get(t);u({hideLabel:this.getRenderProp("hideLabel"),label:o})?(e||(e=new z(r.stateLess),e.componentWillLoad({label:""}),this.optionTooltips.set(t,e)),e.watchAlign(this.getRenderProp("tooltipAlign")),e.watchBadgeText(""),e.watchId(j(t,"label")),e.watchLabel(o)):e&&(e.destroy(),this.optionTooltips.delete(t),e=void 0);const i=e;return{refInput:t=>{i&&t&&(i.initContext(t),i.syncListeners(void 0,t,!0))},refTooltip:t=>{null==i||i.setTooltipElementRef(t)}}}isOptionDisabled(t){return!!this.getRenderProp("disabled")||!!t.disabled}getInputProps(t,o,e,i){const{hasError:l}=this.getAria(),n=this.getRenderProp("hideLabel");return{id:o,hideLabel:n,label:this.getRenderProp("label"),value:"-"+e,disabled:this.isOptionDisabled(t),name:this.getRenderProp("name")||this.id,required:this.getRenderProp("required"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg"),ref:t=>{this.setOptionInputRef(e)(t),i&&this.setSelectedInputRef(t)},"aria-label":n&&"string"==typeof t.label?t.label:void 0,type:"radio",checked:i,onBlur:this.handleBlur,onChange:this.handleRadioChange,onFocus:this.handleFocus,onInput:this.handleRadioInput,onKeyDown:this.handleRadioKeyDown,"aria-invalid":l?"true":void 0}}renderOption(o,e){const i=j(this.id,e+""),l=this.isOptionSelected(o),n=o.label;return t(f,Object.assign({key:i,id:i,label:n,hint:o.hint,hideLabel:this.getRenderProp("hideLabel"),tooltipAlign:this.getRenderProp("tooltipAlign"),disabled:this.isOptionDisabled(o),msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),required:!1,labelProps:{showBadge:!1}},this.getOptionTooltipRefs(i,n)),t(P,{inputProps:this.getInputProps(o,i,e,l)}))}render(){const{ariaDescribedBy:o}=this.getAria();return t(e,{key:"fac3cd11f8370ba172f1aa1c1d5aa5f8d3e550c0"},t(p,Object.assign({key:"c8d6cba2cb494267d359681aec4fccc7d7d23476"},this.getFormFieldProps({class:"kol-form-field--radio",required:this.getRenderProp("required"),variant:this.getRenderProp("variant"),renderNoTooltip:!0}),{component:"fieldset",orientation:this.getRenderProp("orientation"),hideLabel:!1,ariaDescribedBy:o.length>0?o.join(" "):void 0}),this.getRenderProp("options").map(((t,o)=>this.renderOption(t,o)))))}get host(){return this}static get watchers(){return{_ariaDetails:[{watchAriaDetails:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_options:[{watchOptions:0}],_orientation:[{watchOrientation:0}],_required:[{watchRequired: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-meter meter { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-bar { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-optimum-value, .kol-meter meter::-webkit-meter-suboptimum-value, .kol-meter meter::-webkit-meter-even-less-good-value { background-color: CanvasText; } .kol-meter meter::-moz-meter-bar { background-color: CanvasText; } .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=1795175086587"); src: url("kolicons.eot?t=1795175086587#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1795175086587") format("woff2"), url("kolicons.woff?t=1795175086587") format("woff"), url("kolicons.ttf?t=1795175086587") format("truetype"), url("kolicons.svg?t=1795175086587#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; } .kol-field-control { display: grid; min-height: var(--a11y-min-size); align-items: center; justify-content: left; grid-template-areas: "input label"; grid-template-columns: auto 1fr; grid-template-rows: auto; } .kol-field-control:has(.kol-field-control__hint) { grid-template-areas: "input label" "hint hint"; grid-template-columns: auto 1fr; grid-template-rows: auto auto; } .kol-field-control--label-align-left:not(.kol-field-control--hide-label) { grid-template-areas: "label input"; grid-template-columns: 1fr auto; grid-template-rows: auto; } .kol-field-control--label-align-left:not(.kol-field-control--hide-label):has(.kol-field-control__hint) { grid-template-areas: "label input" "hint hint"; grid-template-columns: 1fr auto; grid-template-rows: auto auto; } .kol-field-control__input { display: flex; min-height: var(--a11y-min-size); align-items: center; grid-area: input; } .kol-field-control__label { display: flex; min-height: var(--a11y-min-size); flex-grow: 1; align-items: center; cursor: pointer; grid-area: label; } .kol-field-control__label--visually-hidden { display: none; height: 0; margin: 0; padding: 0; visibility: hidden; } .kol-field-control__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-field-control__hint { grid-area: hint; } .kol-field-control--disabled .kol-field-control__label { cursor: not-allowed; } .kol-field-control--required .kol-field-control__label-text:has(.kol-span__slot[hidden])::after, .kol-field-control--required .kol-tooltip__content .kol-span__label::after { 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-form-field { --border-width: 2px; --input-size: 1.5em; } .kol-form-field__label { display: contents; } .kol-form-field__label-text { display: ruby; } .kol-form-field__input { display: flex; flex-direction: column; } .kol-form-field__input--orientation-horizontal { flex-direction: row; flex-wrap: wrap; align-items: flex-start; } .kol-form-field--disabled { opacity: unset; } .kol-input-radio { display: flex; position: relative; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; justify-content: center; cursor: pointer; } .kol-input-radio__input { border-style: solid; border-radius: 100%; display: flex; width: var(--input-size); min-width: var(--input-size); height: var(--input-size); min-height: var(--input-size); margin: 0; padding: 0; border-width: var(--border-width); appearance: none; cursor: pointer; } .kol-input-radio__input:before { border-radius: 100%; width: calc(var(--input-size) / 2); height: calc(var(--input-size) / 2); margin: auto; content: ""; } .kol-input-radio__input:checked:before { background-color: black; } @media (forced-colors: active) { .kol-input-radio__input:checked:before { background-color: selectedItem !important; } } .kol-input-radio__input:disabled { cursor: not-allowed; } .kol-input-radio--disabled { cursor: not-allowed; } }'}}},[545,"kol-input-radio",{_ariaDetails:[1,"_aria-details"],_disabled:[4],_hideMsg:[4,"_hide-msg"],_hideLabel:[4,"_hide-label"],_hint:[1],_infoPopover:[16],_label:[1],_msg:[1],_name:[1],_on:[16],_options:[1],_orientation:[1],_required:[4],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[1544],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],getValue:[64],focus:[64],click:[64]},void 0,{_ariaDetails:[{watchAriaDetails:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_options:[{watchOptions:0}],_orientation:[{watchOrientation:0}],_required:[{watchRequired:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]),C=S,F=function(){"undefined"!=typeof customElements&&["kol-input-radio"].forEach((t=>{"kol-input-radio"===t&&(customElements.get(i(t))||customElements.define(i(t),S))}))};export{C as KolInputRadio,F 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{_ as n}from"./tslib.es6.js";import{v as a}from"./access-and-short-key.js";import{h as l,g as r,I as s}from"./input-container.js";import{f as c,B as h,F as d}from"./base-web-component2.js";import{I as u}from"./input.js";import{i as p,a as m,b as k,g as b,c as f,r as _}from"./number-value.js";import{a as g,S as w}from"./suggestions2.js";import{b as y}from"./bem-registry.js";import{a as v,d as x,v as z}from"./component3.js";import"./props-from-config.js";import{s as j}from"./step.js";import{s as K}from"./suggestions.js";import{c as S,a as T}from"./dev.utils.js";import{c as A,d as B,a as D}from"./element-interaction.js";import{s as M}from"./controller.js";const V={required:[...c.required],optional:[...c.optional,v,g,l,p,m,k,x,j,K,z]},C=y.forBlock("kol-input-range"),I=C("input",{number:!0}),L=C("input",{range:!0}),H=C("inputs-wrapper"),O=({max:e,min:o},i)=>t("div",{class:H,style:{"--kolibri-input-range--input-number--width":`calc(${Math.max(((null!=e?e:100)+"").length,((null!=o?o:0)+"").length,4)}ch + 2em)`}},i),P=e(class extends h{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=S("input-range"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=A(),this.valueIsNumberString=!1,this.propsConfig=V,this._accessKey=void 0,this._ariaDetails=void 0,this._autoComplete="off",this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._infoPopover=void 0,this._max=100,this._min=0,this._msg=void 0,this._name=void 0,this._on=void 0,this._shortKey=void 0,this._step=void 0,this._suggestions=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this._variant=void 0,this.handleRangeInput=t=>{const e=t.target,o=this.readValue(e.value);e===this.rangeRef?this._value=o:this.rangeRef&&Number.isFinite(Number(o))&&(this.rangeRef.value=o+""),this.handleInput(t,o)},this.handleRangeChange=t=>{const e=this.readValue(t.target.value);this._value=e,this.handleChange(t,e)},this.handleNumberKeyDown=t=>{this.handleKeyDown(t),M(t,{form:this.host,ref:this.ctaRef.el})},this.setRangeRef=t=>{t&&(this.rangeRef=t)},this.initFormAssociation("range",this._name)}watchAccessKey(t){v.apply(t,(t=>this.setRenderProp("accessKey",t))),a(t,this._shortKey)}watchAriaDetails(t){this.applyAriaDetails(t)}watchAutoComplete(t){g.apply(t,(t=>this.setRenderProp("autoComplete",t)))}watchDisabled(t){this.applyDisabled(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchIcons(t){l.apply(t,(t=>this.setRenderProp("icons",t)))}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMax(t){p.apply(t,(t=>this.setRenderProp("max",t)))}watchMin(t){m.apply(t,(t=>this.setRenderProp("min",t)))}watchMsg(t){this.applyMsg(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchShortKey(t){x.apply(t,(t=>this.setRenderProp("shortKey",t))),a(this._accessKey,t)}watchStep(t){j.apply(t,(t=>this.setRenderProp("step",t)))}watchSuggestions(t){K.apply(t,(t=>this.setRenderProp("suggestions",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchValue(t){var e;k.apply(t,(t=>this.setRenderProp("value",t))),this.formAssociation.setFormAssociatedValue(null!==(e=this.getRenderProp("value"))&&void 0!==e?e:null),void 0!==t&&(this.valueIsNumberString="NumberString"===b(t))}watchVariant(t){z.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){return Promise.resolve(void 0!==this.ctaRef.el?this.readValue(this.ctaRef.el.value):void 0)}focus(t){return Promise.resolve()}click(){return Promise.resolve()}componentWillLoad(){this.setRenderProp("min",0),this.setRenderProp("max",100),this._touched=!0===this._touched,this.watchAriaDetails(this._ariaDetails),this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccessKey(this._accessKey),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.watchAutoComplete(this._autoComplete),this.watchMax(this._max),this.watchMin(this._min),this.watchStep(this._step),this.watchSuggestions(this._suggestions),this.watchValue(this._value)}componentDidLoad(){var t;!this._value&&(null===(t=this.rangeRef)||void 0===t?void 0:t.value)&&(this._value=parseFloat(this.rangeRef.value))}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField()}readValue(t){var e;const o=f(t,this.getRenderProp("min"),this.getRenderProp("max"));return null!==(e=_(o,this.valueIsNumberString?"NumberString":"number"))&&void 0!==e?e:o}getSharedInputProps(){var t,e,o,i;const n=this.getRenderProp("accessKey"),a=this.getRenderProp("shortKey");return Object.assign(Object.assign(Object.assign(Object.assign({id:this.id,hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),disabled:this.getRenderProp("disabled"),name:void 0},n?{accessKey:n}:{}),{value:null!==(t=this.getRenderProp("value"))&&void 0!==t?t:null,autoComplete:this.getRenderProp("autoComplete"),min:null!==(e=this.getRenderProp("min"))&&void 0!==e?e:null,max:null!==(o=this.getRenderProp("max"))&&void 0!==o?o:null,step:null!==(i=this.getRenderProp("step"))&&void 0!==i?i:null,touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")}),a?{"aria-keyshortcuts":a}:{}),{onBlur:this.handleBlur,onChange:this.handleRangeChange,onClick:this.handleClick,onFocus:this.handleFocus,onInput:this.handleRangeInput,onKeyDown:this.handleKeyDown})}render(){const e=this.getRenderProp("disabled"),i=this.getRenderProp("name"),n=this.getRenderProp("min"),a=this.getRenderProp("max"),l=this.getRenderProp("suggestions"),c=l.length>0,h=c?T(this.id,"list"):void 0,p=this.getSharedInputProps(),{ariaDescribedBy:m,hasError:k}=this.getAria(),b=k?"true":void 0,{startAdornment:f,endAdornment:_}=r({icons:this.getRenderProp("icons")});return t(o,{key:"4ab4ad967d53110ce6487dcd263f9745e6a02b15"},t(d,Object.assign({key:"c37e9683aa00f8d3eedb4ee72683bc20d1b9711c"},this.getFormFieldProps({class:"kol-input-range range",accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,variant:this.getRenderProp("variant")})),t(s,{key:"f56ec0f79f8f846a577982d035d5217b14d360be",disabled:e,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:f,endAdornment:_},t(O,{key:"cba2e0426592607ab4afd33099a5c624ff387a8d",max:a,min:n},t(u,Object.assign({key:"8cfd5dafe3c8560a8c84e7c2a752dc5007e6a3b2"},p,{class:L,name:i?i+"-range":void 0,list:h,type:"range",tabIndex:-1,id:void 0,accessKey:void 0,"aria-hidden":"true",ref:this.setRangeRef,ariaDescribedBy:m,"aria-invalid":b})),t(u,Object.assign({key:"105d0e56f624be4243d456fb59877755c75510fb"},p,{class:I,name:i?i+"-number":void 0,list:h,type:"number",ref:this.ctaRef,onKeyDown:this.handleNumberKeyDown,ariaDescribedBy:m,"aria-invalid":b}))),c&&t(w,{key:"61f595d88f283ce38396b3eb9ecc9ff2ca22eb85",id:this.id,suggestions:l}))))}get host(){return this}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_autoComplete:[{watchAutoComplete:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_max:[{watchMax:0}],_min:[{watchMin:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_shortKey:[{watchShortKey:0}],_step:[{watchStep:0}],_suggestions:[{watchSuggestions: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=1794497133718"); src: url("kolicons.eot?t=1794497133718#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794497133718") format("woff2"), url("kolicons.woff?t=1794497133718") format("woff"), url("kolicons.ttf?t=1794497133718") format("truetype"), url("kolicons.svg?t=1794497133718#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-input { background-color: transparent; width: 100%; min-width: var(--a11y-min-size); } .kol-input-range__inputs-wrapper { display: flex; flex-grow: 1; flex-direction: row; flex-wrap: wrap; align-items: center; } .kol-input-range__input--number { width: var(--kolibri-input-range--input-number--width); text-align: right; } .kol-input-range__input--range { background-color: white; display: inline-block; width: 0; min-width: calc(128 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); margin: 0; padding: 0; flex-grow: 1; line-height: 1.5; appearance: none; border: 1px solid black; } .kol-input-range__input:not(:disabled).kol-input-range__input--range::-webkit-slider-thumb { cursor: pointer; } .kol-input-range__input--range::-webkit-slider-thumb { background-color: black; border-radius: 20px; width: calc(20 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(20 * 1rem / var(--kolibri-root-font-size, 16)); -webkit-appearance: none; } @media (prefers-contrast: more) or (forced-colors: active) { .kol-input-range__input--range::-webkit-slider-thumb { outline: 1px solid currentColor; } } .kol-input-range__input:not(:disabled).kol-input-range__input--range::-moz-range-thumb { cursor: pointer; } .kol-input-range__input--range::-moz-range-thumb { background-color: black; border-radius: 20px; width: calc(20 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(20 * 1rem / var(--kolibri-root-font-size, 16)); -moz-appearance: none; } }'}}},[545,"kol-input-range",{_accessKey:[1,"_access-key"],_ariaDetails:[1,"_aria-details"],_autoComplete:[1,"_auto-complete"],_disabled:[4],_hideMsg:[4,"_hide-msg"],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_infoPopover:[16],_label:[1],_max:[8],_min:[8],_msg:[1],_name:[1],_on:[16],_shortKey:[1,"_short-key"],_step:[8],_suggestions:[1],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[1544],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],getValue:[64],focus:[64],click:[64]},void 0,{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_autoComplete:[{watchAutoComplete:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_max:[{watchMax:0}],_min:[{watchMin:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_shortKey:[{watchShortKey:0}],_step:[{watchStep:0}],_suggestions:[{watchSuggestions:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]);n([B("ctaRef")],P.prototype,"focus",null),n([D("ctaRef")],P.prototype,"click",null);const N=P,F=function(){"undefined"!=typeof customElements&&["kol-input-range"].forEach((t=>{"kol-input-range"===t&&(customElements.get(i(t))||customElements.define(i(t),P))}))};export{N as KolInputRange,F as defineCustomElement}
4
+ import{h as t,p as e,H as o,t as i}from"./common.js";import{_ as n}from"./tslib.es6.js";import{v as a}from"./access-and-short-key.js";import{h as l,g as r,I as s}from"./input-container.js";import{f as c,B as h,F as d}from"./base-web-component2.js";import{I as m}from"./input.js";import{i as u,a as p,b as k,g as b,c as f,r as g}from"./number-value.js";import{a as _,S as w}from"./suggestions2.js";import{a as v,d as y,v as x}from"./component6.js";import"./base-web-component.js";import{s as z}from"./step.js";import{s as j}from"./suggestions.js";import{b as K}from"./bem-registry.js";import{c as S,a as T}from"./dev.utils.js";import{c as C,d as A,a as B}from"./element-interaction.js";import{s as D}from"./controller.js";const M={required:[...c.required],optional:[...c.optional,v,_,l,u,p,k,y,z,j,x]},V=K.forBlock("kol-input-range"),I=V("input",{number:!0}),L=V("input",{range:!0}),H=V("inputs-wrapper"),O=({max:e,min:o},i)=>t("div",{class:H,style:{"--kolibri-input-range--input-number--width":`calc(${Math.max(((null!=e?e:100)+"").length,((null!=o?o:0)+"").length,4)}ch + 2em)`}},i),P=e(class extends h{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=S("input-range"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=C(),this.valueIsNumberString=!1,this.propsConfig=M,this._accessKey=void 0,this._ariaDetails=void 0,this._autoComplete="off",this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._infoPopover=void 0,this._max=100,this._min=0,this._msg=void 0,this._name=void 0,this._on=void 0,this._shortKey=void 0,this._step=void 0,this._suggestions=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this._variant=void 0,this.handleRangeInput=t=>{const e=t.target,o=this.readValue(e.value);e===this.rangeRef?this._value=o:this.rangeRef&&Number.isFinite(Number(o))&&(this.rangeRef.value=o+""),this.handleInput(t,o)},this.handleRangeChange=t=>{const e=this.readValue(t.target.value);this._value=e,this.handleChange(t,e)},this.handleNumberKeyDown=t=>{this.handleKeyDown(t),D(t,{form:this.host,ref:this.ctaRef.el})},this.setRangeRef=t=>{t&&(this.rangeRef=t)},this.initFormAssociation("range",this._name)}watchAccessKey(t){v.apply(t,(t=>this.setRenderProp("accessKey",t))),a(t,this._shortKey)}watchAriaDetails(t){this.applyAriaDetails(t)}watchAutoComplete(t){_.apply(t,(t=>this.setRenderProp("autoComplete",t)))}watchDisabled(t){this.applyDisabled(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchIcons(t){l.apply(t,(t=>this.setRenderProp("icons",t)))}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMax(t){u.apply(t,(t=>this.setRenderProp("max",t)))}watchMin(t){p.apply(t,(t=>this.setRenderProp("min",t)))}watchMsg(t){this.applyMsg(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchShortKey(t){y.apply(t,(t=>this.setRenderProp("shortKey",t))),a(this._accessKey,t)}watchStep(t){z.apply(t,(t=>this.setRenderProp("step",t)))}watchSuggestions(t){j.apply(t,(t=>this.setRenderProp("suggestions",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchValue(t){var e;k.apply(t,(t=>this.setRenderProp("value",t))),this.formAssociation.setFormAssociatedValue(null!==(e=this.getRenderProp("value"))&&void 0!==e?e:null),void 0!==t&&(this.valueIsNumberString="NumberString"===b(t))}watchVariant(t){x.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){return Promise.resolve(void 0!==this.ctaRef.el?this.readValue(this.ctaRef.el.value):void 0)}focus(t){return Promise.resolve()}click(){return Promise.resolve()}componentWillLoad(){this.setRenderProp("min",0),this.setRenderProp("max",100),this._touched=!0===this._touched,this.watchAriaDetails(this._ariaDetails),this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccessKey(this._accessKey),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.watchAutoComplete(this._autoComplete),this.watchMax(this._max),this.watchMin(this._min),this.watchStep(this._step),this.watchSuggestions(this._suggestions),this.watchValue(this._value)}componentDidLoad(){var t;!this._value&&(null===(t=this.rangeRef)||void 0===t?void 0:t.value)&&(this._value=parseFloat(this.rangeRef.value))}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField()}readValue(t){var e;const o=f(t,this.getRenderProp("min"),this.getRenderProp("max"));return null!==(e=g(o,this.valueIsNumberString?"NumberString":"number"))&&void 0!==e?e:o}getSharedInputProps(){var t,e,o,i;const n=this.getRenderProp("accessKey"),a=this.getRenderProp("shortKey");return Object.assign(Object.assign(Object.assign(Object.assign({id:this.id,hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),disabled:this.getRenderProp("disabled"),name:void 0},n?{accessKey:n}:{}),{value:null!==(t=this.getRenderProp("value"))&&void 0!==t?t:null,autoComplete:this.getRenderProp("autoComplete"),min:null!==(e=this.getRenderProp("min"))&&void 0!==e?e:null,max:null!==(o=this.getRenderProp("max"))&&void 0!==o?o:null,step:null!==(i=this.getRenderProp("step"))&&void 0!==i?i:null,touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")}),a?{"aria-keyshortcuts":a}:{}),{onBlur:this.handleBlur,onChange:this.handleRangeChange,onClick:this.handleClick,onFocus:this.handleFocus,onInput:this.handleRangeInput,onKeyDown:this.handleKeyDown})}render(){const e=this.getRenderProp("disabled"),i=this.getRenderProp("name"),n=this.getRenderProp("min"),a=this.getRenderProp("max"),l=this.getRenderProp("suggestions"),c=l.length>0,h=c?T(this.id,"list"):void 0,u=this.getSharedInputProps(),{ariaDescribedBy:p,hasError:k}=this.getAria(),b=k?"true":void 0,{startAdornment:f,endAdornment:g}=r({icons:this.getRenderProp("icons")});return t(o,{key:"10b545a08f51a7b492f3ac812e93bbddd8c10862"},t(d,Object.assign({key:"7824b730788699a12596160ba4ef6733e98efdc1"},this.getFormFieldProps({class:"kol-input-range range",accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,variant:this.getRenderProp("variant")})),t(s,{key:"102242477d6e7137987f3c7ab160241d354366c9",disabled:e,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:f,endAdornment:g},t(O,{key:"2090bc0a05a75cf77f9ee69a9b78a81e58822dbf",max:a,min:n},t(m,Object.assign({key:"2d309f6e270fd8a2b6901570bf7e9cf71580cc20"},u,{class:L,name:i?i+"-range":void 0,list:h,type:"range",tabIndex:-1,id:void 0,accessKey:void 0,"aria-hidden":"true",ref:this.setRangeRef,ariaDescribedBy:p,"aria-invalid":b})),t(m,Object.assign({key:"b50927e1e728773c472fcbbed10f57dacd9ae3d1"},u,{class:I,name:i?i+"-number":void 0,list:h,type:"number",ref:this.ctaRef,onKeyDown:this.handleNumberKeyDown,ariaDescribedBy:p,"aria-invalid":b}))),c&&t(w,{key:"ed4ae34650d1dc858f817a0fb9f3af34e6168cc5",id:this.id,suggestions:l}))))}get host(){return this}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_autoComplete:[{watchAutoComplete:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_max:[{watchMax:0}],_min:[{watchMin:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_shortKey:[{watchShortKey:0}],_step:[{watchStep:0}],_suggestions:[{watchSuggestions: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-meter meter { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-bar { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-optimum-value, .kol-meter meter::-webkit-meter-suboptimum-value, .kol-meter meter::-webkit-meter-even-less-good-value { background-color: CanvasText; } .kol-meter meter::-moz-meter-bar { background-color: CanvasText; } .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=1795175086587"); src: url("kolicons.eot?t=1795175086587#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1795175086587") format("woff2"), url("kolicons.woff?t=1795175086587") format("woff"), url("kolicons.ttf?t=1795175086587") format("truetype"), url("kolicons.svg?t=1795175086587#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-input { background-color: transparent; width: 100%; min-width: var(--a11y-min-size); } .kol-input-range__inputs-wrapper { display: flex; flex-grow: 1; flex-direction: row; flex-wrap: wrap; align-items: center; } .kol-input-range__input--number { width: var(--kolibri-input-range--input-number--width); text-align: right; } .kol-input-range__input--range { background-color: white; display: inline-block; width: 0; min-width: calc(128 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); margin: 0; padding: 0; flex-grow: 1; line-height: 1.5; appearance: none; border: 1px solid black; } .kol-input-range__input:not(:disabled).kol-input-range__input--range::-webkit-slider-thumb { cursor: pointer; } .kol-input-range__input--range::-webkit-slider-thumb { background-color: black; border-radius: 20px; width: calc(20 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(20 * 1rem / var(--kolibri-root-font-size, 16)); -webkit-appearance: none; } @media (prefers-contrast: more) or (forced-colors: active) { .kol-input-range__input--range::-webkit-slider-thumb { outline: 1px solid currentColor; } } .kol-input-range__input:not(:disabled).kol-input-range__input--range::-moz-range-thumb { cursor: pointer; } .kol-input-range__input--range::-moz-range-thumb { background-color: black; border-radius: 20px; width: calc(20 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(20 * 1rem / var(--kolibri-root-font-size, 16)); -moz-appearance: none; } }'}}},[545,"kol-input-range",{_accessKey:[1,"_access-key"],_ariaDetails:[1,"_aria-details"],_autoComplete:[1,"_auto-complete"],_disabled:[4],_hideMsg:[4,"_hide-msg"],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_infoPopover:[16],_label:[1],_max:[8],_min:[8],_msg:[1],_name:[1],_on:[16],_shortKey:[1,"_short-key"],_step:[8],_suggestions:[1],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[1544],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],getValue:[64],focus:[64],click:[64]},void 0,{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_autoComplete:[{watchAutoComplete:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_max:[{watchMax:0}],_min:[{watchMin:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_shortKey:[{watchShortKey:0}],_step:[{watchStep:0}],_suggestions:[{watchSuggestions:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]);n([A("ctaRef")],P.prototype,"focus",null),n([B("ctaRef")],P.prototype,"click",null);const N=P,F=function(){"undefined"!=typeof customElements&&["kol-input-range"].forEach((t=>{"kol-input-range"===t&&(customElements.get(i(t))||customElements.define(i(t),P))}))};export{N as KolInputRange,F as defineCustomElement}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{proxyCustomElement as t,h as e,Host as o,transformTag as i}from"@stencil/core/internal/client";import{_ as n}from"./tslib.es6.js";import{t as a}from"./i18n.js";import{B as l}from"./component10.js";import{c as r}from"./item.js";import{F as s}from"./base-web-component2.js";import{I as c}from"./input.js";import{I as h}from"./input-container.js";import"./bem-registry.js";import{c as d,b as p,i as k}from"./props-from-config.js";import{s as u}from"./spell-check.js";import{s as m}from"./suggestions.js";import{t as f,B as _}from"./base-web-component3.js";import{c as b}from"./clsx.js";import{c as g}from"./dev.utils.js";import{d as w,a as y}from"./element-interaction.js";import{c as v,K as x}from"./events.js";const S=["text","search","url","tel"],B=d("type","text",(function(t){const e=p(t);if(k(e,S))return e;throw Error("Invalid input text type: "+e)})),C={required:[...f.required],optional:[...f.optional,B,u,m]},z=t(class extends _{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=g("input-text"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.clearButton=r((()=>this.host)),this.translateClearSearch=a("kol-clear-search"),this.propsConfig=C,this._accessKey=void 0,this._autoComplete="off",this._ariaDetails=void 0,this._hasCounter=!1,this._maxLengthBehavior="hard",this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._infoPopover=void 0,this._maxLength=void 0,this._msg=void 0,this._name=void 0,this._on=void 0,this._pattern=void 0,this._placeholder=void 0,this._readOnly=!1,this._required=!1,this._shortKey=void 0,this._spellCheck=void 0,this._suggestions=void 0,this._smartButton=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._type="text",this._value=void 0,this._variant=void 0,this.handleClearButtonClick=()=>{var t;if(this._disabled||this._readOnly||!this.hasValue)return;const e={name:this.getRenderProp("name"),value:""};this._value="",this.ctaRef.el&&(this.ctaRef.el.value=""),this.handleInput(v(x.input,e,this.ctaRef.el),""),this.handleTextChange(v(x.change,e,this.ctaRef.el),""),null===(t=this.ctaRef.el)||void 0===t||t.focus()},this.initFormAssociation("text",this._name)}watchAccessKey(t){this.applyAccessKey(t)}watchAutoComplete(t){this.applyAutoComplete(t)}watchAriaDetails(t){this.applyAriaDetails(t)}watchHasCounter(t){this.applyHasCounter(t)}watchMaxLengthBehavior(t){this.applyMaxLengthBehavior(t)}watchDisabled(t){this.applyDisabled(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchIcons(t){this.applyIcons(t)}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMaxLength(t){this.applyMaxLength(t)}watchMsg(t){this.applyMsg(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchPattern(t){this.applyPattern(t)}watchPlaceholder(t){this.applyPlaceholder(t)}watchReadOnly(t){this.applyReadOnly(t)}watchRequired(t){this.applyRequired(t)}watchShortKey(t){this.applyShortKey(t)}watchSpellCheck(t){u.apply(t,(t=>this.setRenderProp("spellCheck",t)))}watchSuggestions(t){m.apply(t,(t=>this.setRenderProp("suggestions",t)))}watchSmartButton(t){this.applySmartButton(t)}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchType(t){B.apply(t,(t=>this.setRenderProp("type",t)))}watchValue(t){this.applyValue(t)}watchVariant(t){this.applyVariant(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()}async selectionStart(){var t;return Promise.resolve(null===(t=this.ctaRef.el)||void 0===t?void 0:t.selectionStart)}async selectionEnd(){var t;return Promise.resolve(null===(t=this.ctaRef.el)||void 0===t?void 0:t.selectionEnd)}setSelectionRange(t,e,o){var i;return null===(i=this.ctaRef.el)||void 0===i||i.setSelectionRange(t,e,o),Promise.resolve()}setSelectionStart(t){var e;return null===(e=this.ctaRef.el)||void 0===e||e.setSelectionRange(t,t),Promise.resolve()}setRangeText(t,e,o,i){var n,a;return void 0!==e&&void 0!==o?null===(n=this.ctaRef.el)||void 0===n||n.setRangeText(t,e,o,i):null===(a=this.ctaRef.el)||void 0===a||a.setRangeText(t),Promise.resolve()}connectedCallback(){super.connectedCallback(),this.clearButton.syncListeners()}componentWillLoad(){this.unsetRenderProp("smartButton"),this._touched=!0===this._touched,this.watchAriaDetails(this._ariaDetails),this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccessKey(this._accessKey),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.watchSmartButton(this._smartButton),this.watchOn(this._on),this.watchTooltipAlign(this._tooltipAlign),this.watchVariant(this._variant),this.watchIcons(this._icons),this.watchAutoComplete(this._autoComplete),this.watchHasCounter(this._hasCounter),this.watchMaxLengthBehavior(this._maxLengthBehavior),this.initMaxLength(this._maxLength),this.watchPattern(this._pattern),this.watchPlaceholder(this._placeholder),this.watchReadOnly(this._readOnly),this.watchRequired(this._required),this.watchSuggestions(this._suggestions),this.watchSpellCheck(this._spellCheck),this.watchType(this._type),this.initValue(this._value),this.initHasValue()}componentDidLoad(){this.didLoadTextInput()}componentDidUpdate(){this.didUpdateTextInput()}componentDidRender(){this.syncFormField(),this.clearButton.syncListeners()}disconnectedCallback(){this.clearButton.destroy(),this.destroyTextInput()}getClearButton(){if(this._disabled||this.getRenderProp("readOnly")||"search"!==this.getRenderProp("type"))return null;const t=this.hasValue;return e(l,Object.assign({},this.clearButton.getFcProps({_label:this.translateClearSearch,_icons:"kolicon-cross",_hideLabel:!0,_disabled:!t,_on:{onClick:this.handleClearButtonClick}},{class:b("kol-input-text__clear-button","kol-input-container__smart-button",{"kol-input-text__clear-button--hidden":!t})})))}render(){const t=this.getRenderProp("type"),{startAdornment:i,endAdornment:n}=this.getTextInputAdornments(this.getClearButton());return e(o,{key:"2f0cf3c8a2cb328df79e3fc7c8a3f91a18bed086"},e(s,Object.assign({key:"1343e2f091b5a020979bea794db49a48e02581a6"},this.getTextFormFieldProps("kol-input-text "+t)),e(h,{key:"f95bedf779b2115fa4609df51b5b52e4a8e1b8f5",disabled:this.getRenderProp("disabled"),msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:n},e(c,Object.assign({key:"93e7bec2927035216c5ff7c7f1e6c885f0846c01"},this.getTextInputProps({type:t,spellcheck:this.getRenderProp("spellCheck"),suggestions:this.getRenderProp("suggestions")}))))))}get host(){return this}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_autoComplete:[{watchAutoComplete:0}],_ariaDetails:[{watchAriaDetails:0}],_hasCounter:[{watchHasCounter:0}],_maxLengthBehavior:[{watchMaxLengthBehavior: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}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_pattern:[{watchPattern:0}],_placeholder:[{watchPlaceholder:0}],_readOnly:[{watchReadOnly:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_spellCheck:[{watchSpellCheck:0}],_suggestions:[{watchSuggestions:0}],_smartButton:[{watchSmartButton:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_type:[{watchType: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=1794497133718"); src: url("kolicons.eot?t=1794497133718#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794497133718") format("woff2"), url("kolicons.woff?t=1794497133718") format("woff"), url("kolicons.ttf?t=1794497133718") format("truetype"), url("kolicons.svg?t=1794497133718#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-input { background-color: transparent; width: 100%; min-width: var(--a11y-min-size); } input[type=search]::-webkit-search-cancel-button { display: none; } .kol-input-text__clear-button--hidden { display: none; } }'}}},[545,"kol-input-text",{_accessKey:[1,"_access-key"],_autoComplete:[1,"_auto-complete"],_ariaDetails:[1,"_aria-details"],_hasCounter:[4,"_has-counter"],_maxLengthBehavior:[1,"_max-length-behavior"],_disabled:[4],_hideMsg:[4,"_hide-msg"],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_infoPopover:[16],_label:[1],_maxLength:[2,"_max-length"],_msg:[1],_name:[1],_on:[16],_pattern:[1],_placeholder:[1],_readOnly:[4,"_read-only"],_required:[4],_shortKey:[1,"_short-key"],_spellCheck:[4,"_spell-check"],_suggestions:[1],_smartButton:[1,"_smart-button"],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_type:[1],_value:[1537],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],getValue:[64],focus:[64],click:[64],selectionStart:[64],selectionEnd:[64],setSelectionRange:[64],setSelectionStart:[64],setRangeText:[64]},void 0,{_accessKey:[{watchAccessKey:0}],_autoComplete:[{watchAutoComplete:0}],_ariaDetails:[{watchAriaDetails:0}],_hasCounter:[{watchHasCounter:0}],_maxLengthBehavior:[{watchMaxLengthBehavior: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}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_pattern:[{watchPattern:0}],_placeholder:[{watchPlaceholder:0}],_readOnly:[{watchReadOnly:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_spellCheck:[{watchSpellCheck:0}],_suggestions:[{watchSuggestions:0}],_smartButton:[{watchSmartButton:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_type:[{watchType:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]);n([w("ctaRef")],z.prototype,"focus",null),n([y("ctaRef")],z.prototype,"click",null);const T=z,L=function(){"undefined"!=typeof customElements&&["kol-input-text"].forEach((t=>{"kol-input-text"===t&&(customElements.get(i(t))||customElements.define(i(t),z))}))};export{T as KolInputText,L as defineCustomElement}
4
+ import{p as t,h as e,H as o,t as i}from"./common.js";import{_ as n}from"./tslib.es6.js";import{t as a}from"./i18n.js";import{B as l}from"./component9.js";import{c as r}from"./item.js";import{F as s}from"./base-web-component2.js";import{I as c}from"./input.js";import{I as h}from"./input-container.js";import{c as d,d as k,j as m,f as u}from"./base-web-component.js";import{s as p}from"./spell-check.js";import{s as b}from"./suggestions.js";import{t as f,B as _}from"./base-web-component3.js";import{b as g}from"./bem-registry.js";import{c as w}from"./dev.utils.js";import{d as y,a as v}from"./element-interaction.js";import{c as x,K as C}from"./events.js";const S=["text","search","url","tel"],T=d("type","text",(function(t){const e=k(t);if(m(e,S))return e;throw Error("Invalid input text type: "+e)})),B={required:[...f.required],optional:[...f.optional,T,p,b]},z=g.forBlock("kol-input-text"),L=t(class extends _{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=w("input-text"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.clearButton=r((()=>this.host)),this.translateClearSearch=a("kol-clear-search"),this.propsConfig=B,this._accessKey=void 0,this._autoComplete="off",this._ariaDetails=void 0,this._hasCounter=!1,this._maxLengthBehavior="hard",this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._infoPopover=void 0,this._maxLength=void 0,this._msg=void 0,this._name=void 0,this._on=void 0,this._pattern=void 0,this._placeholder=void 0,this._readOnly=!1,this._required=!1,this._shortKey=void 0,this._spellCheck=void 0,this._suggestions=void 0,this._smartButton=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._type="text",this._value=void 0,this._variant=void 0,this.handleClearButtonClick=()=>{var t;if(this._disabled||this._readOnly||!this.hasValue)return;const e={name:this.getRenderProp("name"),value:""};this._value="",this.ctaRef.el&&(this.ctaRef.el.value=""),this.handleInput(x(C.input,e,this.ctaRef.el),""),this.handleTextChange(x(C.change,e,this.ctaRef.el),""),null===(t=this.ctaRef.el)||void 0===t||t.focus()},this.initFormAssociation("text",this._name)}watchAccessKey(t){this.applyAccessKey(t)}watchAutoComplete(t){this.applyAutoComplete(t)}watchAriaDetails(t){this.applyAriaDetails(t)}watchHasCounter(t){this.applyHasCounter(t)}watchMaxLengthBehavior(t){this.applyMaxLengthBehavior(t)}watchDisabled(t){this.applyDisabled(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchIcons(t){this.applyIcons(t)}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMaxLength(t){this.applyMaxLength(t)}watchMsg(t){this.applyMsg(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchPattern(t){this.applyPattern(t)}watchPlaceholder(t){this.applyPlaceholder(t)}watchReadOnly(t){this.applyReadOnly(t)}watchRequired(t){this.applyRequired(t)}watchShortKey(t){this.applyShortKey(t)}watchSpellCheck(t){p.apply(t,(t=>this.setRenderProp("spellCheck",t)))}watchSuggestions(t){b.apply(t,(t=>this.setRenderProp("suggestions",t)))}watchSmartButton(t){this.applySmartButton(t)}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchType(t){T.apply(t,(t=>this.setRenderProp("type",t)))}watchValue(t){this.applyValue(t)}watchVariant(t){this.applyVariant(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()}async selectionStart(){var t;return Promise.resolve(null===(t=this.ctaRef.el)||void 0===t?void 0:t.selectionStart)}async selectionEnd(){var t;return Promise.resolve(null===(t=this.ctaRef.el)||void 0===t?void 0:t.selectionEnd)}setSelectionRange(t,e,o){var i;return null===(i=this.ctaRef.el)||void 0===i||i.setSelectionRange(t,e,o),Promise.resolve()}setSelectionStart(t){var e;return null===(e=this.ctaRef.el)||void 0===e||e.setSelectionRange(t,t),Promise.resolve()}setRangeText(t,e,o,i){var n,a;return void 0!==e&&void 0!==o?null===(n=this.ctaRef.el)||void 0===n||n.setRangeText(t,e,o,i):null===(a=this.ctaRef.el)||void 0===a||a.setRangeText(t),Promise.resolve()}connectedCallback(){super.connectedCallback(),this.clearButton.syncListeners()}componentWillLoad(){this.unsetRenderProp("smartButton"),this._touched=!0===this._touched,this.watchAriaDetails(this._ariaDetails),this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccessKey(this._accessKey),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.watchSmartButton(this._smartButton),this.watchOn(this._on),this.watchTooltipAlign(this._tooltipAlign),this.watchVariant(this._variant),this.watchIcons(this._icons),this.watchAutoComplete(this._autoComplete),this.watchHasCounter(this._hasCounter),this.watchMaxLengthBehavior(this._maxLengthBehavior),this.initMaxLength(this._maxLength),this.watchPattern(this._pattern),this.watchPlaceholder(this._placeholder),this.watchReadOnly(this._readOnly),this.watchRequired(this._required),this.watchSuggestions(this._suggestions),this.watchSpellCheck(this._spellCheck),this.watchType(this._type),this.initValue(this._value),this.initHasValue()}componentDidLoad(){this.didLoadTextInput()}componentDidUpdate(){this.didUpdateTextInput()}componentDidRender(){this.syncFormField(),this.clearButton.syncListeners()}disconnectedCallback(){this.clearButton.destroy(),this.destroyTextInput()}getClearButton(){if(this._disabled||this.getRenderProp("readOnly")||"search"!==this.getRenderProp("type"))return null;const t=this.hasValue;return e(l,Object.assign({},this.clearButton.getFcProps({_label:this.translateClearSearch,_icons:"kolicon-cross",_hideLabel:!0,_disabled:!t,_on:{onClick:this.handleClearButtonClick}},{class:u(z("clear-button"),"kol-input-container__smart-button",{"kol-input-text__clear-button--hidden":!t})})))}render(){const t=this.getRenderProp("type"),{startAdornment:i,endAdornment:n}=this.getTextInputAdornments(this.getClearButton());return e(o,{key:"201c23f61ec12b33a4603873879c373f252861ae"},e(s,Object.assign({key:"061603e37f1e7aed8e1df3eaa96097c838f3e751"},this.getTextFormFieldProps(u(z(),t))),e(h,{key:"60b8c7a09ab45896e51ba42192ac5cf0289aea0a",disabled:this.getRenderProp("disabled"),msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:n},e(c,Object.assign({key:"e96ebffad5b8551f6f8a2613bfe3b31e7f42e948"},this.getTextInputProps({type:t,spellcheck:this.getRenderProp("spellCheck"),suggestions:this.getRenderProp("suggestions")}))))))}get host(){return this}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_autoComplete:[{watchAutoComplete:0}],_ariaDetails:[{watchAriaDetails:0}],_hasCounter:[{watchHasCounter:0}],_maxLengthBehavior:[{watchMaxLengthBehavior: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}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_pattern:[{watchPattern:0}],_placeholder:[{watchPlaceholder:0}],_readOnly:[{watchReadOnly:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_spellCheck:[{watchSpellCheck:0}],_suggestions:[{watchSuggestions:0}],_smartButton:[{watchSmartButton:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_type:[{watchType: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-meter meter { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-bar { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-optimum-value, .kol-meter meter::-webkit-meter-suboptimum-value, .kol-meter meter::-webkit-meter-even-less-good-value { background-color: CanvasText; } .kol-meter meter::-moz-meter-bar { background-color: CanvasText; } .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=1795175086587"); src: url("kolicons.eot?t=1795175086587#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1795175086587") format("woff2"), url("kolicons.woff?t=1795175086587") format("woff"), url("kolicons.ttf?t=1795175086587") format("truetype"), url("kolicons.svg?t=1795175086587#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-input { background-color: transparent; width: 100%; min-width: var(--a11y-min-size); } input[type=search]::-webkit-search-cancel-button { display: none; } .kol-input-text__clear-button--hidden { display: none; } }'}}},[545,"kol-input-text",{_accessKey:[1,"_access-key"],_autoComplete:[1,"_auto-complete"],_ariaDetails:[1,"_aria-details"],_hasCounter:[4,"_has-counter"],_maxLengthBehavior:[1,"_max-length-behavior"],_disabled:[4],_hideMsg:[4,"_hide-msg"],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_infoPopover:[16],_label:[1],_maxLength:[2,"_max-length"],_msg:[1],_name:[1],_on:[16],_pattern:[1],_placeholder:[1],_readOnly:[4,"_read-only"],_required:[4],_shortKey:[1,"_short-key"],_spellCheck:[4,"_spell-check"],_suggestions:[1],_smartButton:[1,"_smart-button"],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_type:[1],_value:[1537],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],getValue:[64],focus:[64],click:[64],selectionStart:[64],selectionEnd:[64],setSelectionRange:[64],setSelectionStart:[64],setRangeText:[64]},void 0,{_accessKey:[{watchAccessKey:0}],_autoComplete:[{watchAutoComplete:0}],_ariaDetails:[{watchAriaDetails:0}],_hasCounter:[{watchHasCounter:0}],_maxLengthBehavior:[{watchMaxLengthBehavior: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}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_pattern:[{watchPattern:0}],_placeholder:[{watchPlaceholder:0}],_readOnly:[{watchReadOnly:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_spellCheck:[{watchSpellCheck:0}],_suggestions:[{watchSuggestions:0}],_smartButton:[{watchSmartButton:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_type:[{watchType:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]);n([y("ctaRef")],L.prototype,"focus",null),n([v("ctaRef")],L.prototype,"click",null);const j=L,P=function(){"undefined"!=typeof customElements&&["kol-input-text"].forEach((t=>{"kol-input-text"===t&&(customElements.get(i(t))||customElements.define(i(t),L))}))};export{j as KolInputText,P 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 l}from"@stencil/core/internal/client";import{t as a}from"./i18n.js";import{B as i}from"./base-web-component.js";import{b as r}from"./bem-registry.js";import{c as n,n as d,k as s,r as c}from"./props-from-config.js";import{B as b}from"./component.js";const k=n("labeled",!0,d),h={optional:[s,k]},p=r.forBlock("kol-kolibri"),u=e=>{const{ariaLabel:t,color:l,labeled:a}=c(h,e),i=`rgb(${l.red},${l.green},${l.blue})`;return o(b,{block:"kol-kolibri",component:"svg",role:"img","aria-label":t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 600 600",fill:i},o("path",{d:"M353 322L213 304V434L353 322Z"}),o("path",{d:"M209 564V304L149 434L209 564Z"}),o("path",{d:"M357 316L417 250L361 210L275 244L357 316Z"}),o("path",{d:"M329 218L237 92L250 222L272 241L329 218Z"}),o("path",{d:"M353 318L35 36L213 300L353 318Z"}),o("path",{d:"M391 286L565 272L421 252L391 286Z"}),!0===a&&o("text",{class:p("text"),x:"250",y:"525",fill:i},"KoliBri"))},m=e(class extends i{constructor(o){super(!1),!1!==o&&this.__registerHost(),this.__attachShadow(),this.translateKolibriLogo=a("kol-kolibri-logo"),this.propsConfig=h,this._color="#003c78",this._labeled=!0}watchColor(o){s.apply(o,(o=>this.setRenderProp("color",o)))}watchLabeled(o){k.apply(o,(o=>this.setRenderProp("labeled",o)))}componentWillLoad(){this.watchColor(this._color),this.watchLabeled(this._labeled)}render(){return o(t,{key:"2f21f5b12914091450b0fd32b4df7dec2dd0e679"},o(u,{key:"0af69cde92c176c5b2aa5d7e74dbfe2f0fc70e68",ariaLabel:this.translateKolibriLogo,color:this.getRenderProp("color"),labeled:this.getRenderProp("labeled")}))}static get watchers(){return{_color:[{watchColor:0}],_labeled:[{watchLabeled: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-kolibri { display: inline-block; max-height: 100%; } .kol-kolibri__text { font-size: calc(90 * 1rem / var(--kolibri-root-font-size, 16)); letter-spacing: normal; word-spacing: normal; } }'}}},[545,"kol-kolibri",{_color:[1],_labeled:[4]},void 0,{_color:[{watchColor:0}],_labeled:[{watchLabeled:0}]}]),f=m,g=function(){"undefined"!=typeof customElements&&["kol-kolibri"].forEach((o=>{"kol-kolibri"===o&&(customElements.get(l(o))||customElements.define(l(o),m))}))};export{f as KolKolibri,g as defineCustomElement}
4
+ import{h as o,p as e,H as t,t as l}from"./common.js";import{t as a}from"./i18n.js";import{c as r,n as i,k as n,r as s,B as d,a as c}from"./base-web-component.js";import{b}from"./bem-registry.js";const k=r("labeled",!0,i),m={optional:[n,k]},u=b.forBlock("kol-kolibri"),h=e=>{const{ariaLabel:t,color:l,labeled:a}=s(m,e),r=`rgb(${l.red},${l.green},${l.blue})`;return o(d,{block:"kol-kolibri",component:"svg",role:"img","aria-label":t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 600 600",fill:r},o("path",{d:"M353 322L213 304V434L353 322Z"}),o("path",{d:"M209 564V304L149 434L209 564Z"}),o("path",{d:"M357 316L417 250L361 210L275 244L357 316Z"}),o("path",{d:"M329 218L237 92L250 222L272 241L329 218Z"}),o("path",{d:"M353 318L35 36L213 300L353 318Z"}),o("path",{d:"M391 286L565 272L421 252L391 286Z"}),!0===a&&o("text",{class:u("text"),x:"250",y:"525",fill:r},"KoliBri"))},p=e(class extends c{constructor(o){super(!1),!1!==o&&this.__registerHost(),this.__attachShadow(),this.translateKolibriLogo=a("kol-kolibri-logo"),this.propsConfig=m,this._color="#003c78",this._labeled=!0}watchColor(o){n.apply(o,(o=>this.setRenderProp("color",o)))}watchLabeled(o){k.apply(o,(o=>this.setRenderProp("labeled",o)))}componentWillLoad(){this.watchColor(this._color),this.watchLabeled(this._labeled)}render(){return o(t,{key:"8c7dc2c807cf20ce1aa78db052eb02d7886396e9"},o(h,{key:"b9726f92e6e614fdcb3b77a8bda838a7c203f296",ariaLabel:this.translateKolibriLogo,color:this.getRenderProp("color"),labeled:this.getRenderProp("labeled")}))}static get watchers(){return{_color:[{watchColor:0}],_labeled:[{watchLabeled: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-meter meter { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-bar { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-optimum-value, .kol-meter meter::-webkit-meter-suboptimum-value, .kol-meter meter::-webkit-meter-even-less-good-value { background-color: CanvasText; } .kol-meter meter::-moz-meter-bar { background-color: CanvasText; } .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-kolibri { display: inline-block; max-height: 100%; } .kol-kolibri__text { font-size: calc(90 * 1rem / var(--kolibri-root-font-size, 16)); letter-spacing: normal; word-spacing: normal; } }'}}},[545,"kol-kolibri",{_color:[1],_labeled:[4]},void 0,{_color:[{watchColor:0}],_labeled:[{watchLabeled:0}]}]),g=p,f=function(){"undefined"!=typeof customElements&&["kol-kolibri"].forEach((o=>{"kol-kolibri"===o&&(customElements.get(l(o))||customElements.define(l(o),p))}))};export{g as KolKolibri,f as defineCustomElement}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{proxyCustomElement as o,h as t,Host as e,transformTag as i}from"@stencil/core/internal/client";import{_ as n}from"./tslib.es6.js";import{X as a}from"./bem-registry.js";import{v as l}from"./access-and-short-key.js";import{n as r}from"./dev.utils.js";import{d as c,a as s}from"./element-interaction.js";import{B as h}from"./base3.js";const d=o(class extends h{constructor(o){var t;super(!1),!1!==o&&this.__registerHost(),this.__attachShadow(),this.ariaCurrent="",this.ariaDescriptionId=r(),this.expertSlot=!1,this._accessKey=void 0,this._ariaCurrentValue=void 0,this._ariaControls=void 0,this._ariaDescription=void 0,this._customClass=void 0,this._disabled=!1,this._download=void 0,this._hideLabel=!1,this._icons=void 0,this._inline=!1,this._label=void 0,this._on=void 0,this._role=void 0,this._shortKey=void 0,this._target=void 0,this._tooltipAlign="right",this._variant=null!==(t=a("buttonVariantDefault",this.host))&&void 0!==t?t:"normal"}watchAccessKey(o){this.applyAccessKey(o)}watchAriaCurrentValue(o){this.applyAriaCurrentValue(o)}watchAriaControls(o){this.applyAriaControls(o)}watchAriaDescription(o){this.applyAriaDescription(o)}watchCustomClass(o){this.applyCustomClass(o)}watchDisabled(o){this.applyDisabled(o)}watchDownload(o){this.applyDownload(o)}watchHideLabel(o){this.applyHideLabel(o)}watchHref(o){this.applyHref(o)}watchIcons(o){this.applyIcons(o)}watchInline(o){this.applyInline(o)}watchLabel(o){this.applyLabel(o)}watchOn(o){this.applyOn(o)}watchRole(){}watchShortKey(o){this.applyShortKey(o)}watchTarget(o){this.applyTarget(o)}watchTooltipAlign(o){this.applyTooltipAlign(o)}watchVariant(o){this.applyVariant(o)}focus(o){return Promise.resolve()}click(){return Promise.resolve()}componentWillLoad(){this.unsetLinkTabIndex(),this.watchAccessKey(this._accessKey),this.watchAriaCurrentValue(this._ariaCurrentValue),this.watchAriaControls(this._ariaControls),this.watchAriaDescription(this._ariaDescription),this.watchCustomClass(this._customClass),this.watchDisabled(this._disabled),this.watchDownload(this._download),this.watchHideLabel(this._hideLabel),this.watchHref(this._href),this.watchIcons(this._icons),this.watchInline(this._inline),this.watchLabel(this._label),this.watchOn(this._on),this.watchShortKey(this._shortKey),this.watchTarget(this._target),this.watchTooltipAlign(this._tooltipAlign),this.watchVariant(this._variant),l(this._accessKey,this._shortKey),this.initLinkBehaviors()}componentDidRender(){this.syncTooltipListeners()}disconnectedCallback(){this.destroyLinkBehaviors()}render(){return t(e,{key:"5a34cb0dc2928101bc65ee844e37b33156eacd19"},this.renderLinkFC())}get host(){return this}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_ariaCurrentValue:[{watchAriaCurrentValue:0}],_ariaControls:[{watchAriaControls:0}],_ariaDescription:[{watchAriaDescription:0}],_customClass:[{watchCustomClass:0}],_disabled:[{watchDisabled:0}],_download:[{watchDownload:0}],_hideLabel:[{watchHideLabel:0}],_href:[{watchHref:0}],_icons:[{watchIcons:0}],_inline:[{watchInline:0}],_label:[{watchLabel:0}],_on:[{watchOn:0}],_role:[{watchRole:0}],_shortKey:[{watchShortKey:0}],_target:[{watchTarget:0}],_tooltipAlign:[{watchTooltipAlign: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; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794497133718"); src: url("kolicons.eot?t=1794497133718#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794497133718") format("woff2"), url("kolicons.woff?t=1794497133718") format("woff"), url("kolicons.ttf?t=1794497133718") format("truetype"), url("kolicons.svg?t=1794497133718#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; } }'}}},[545,"kol-link-button",{_accessKey:[1,"_access-key"],_ariaCurrentValue:[1,"_aria-current-value"],_ariaControls:[1,"_aria-controls"],_ariaDescription:[1,"_aria-description"],_customClass:[1,"_custom-class"],_disabled:[4],_download:[1],_hideLabel:[4,"_hide-label"],_href:[1],_icons:[1],_inline:[4],_label:[1],_on:[16],_role:[1],_shortKey:[1,"_short-key"],_target:[1],_tooltipAlign:[1,"_tooltip-align"],_variant:[1],ariaCurrent:[32],ariaDescriptionId:[32],expertSlot:[32],focus:[64],click:[64]},void 0,{_accessKey:[{watchAccessKey:0}],_ariaCurrentValue:[{watchAriaCurrentValue:0}],_ariaControls:[{watchAriaControls:0}],_ariaDescription:[{watchAriaDescription:0}],_customClass:[{watchCustomClass:0}],_disabled:[{watchDisabled:0}],_download:[{watchDownload:0}],_hideLabel:[{watchHideLabel:0}],_href:[{watchHref:0}],_icons:[{watchIcons:0}],_inline:[{watchInline:0}],_label:[{watchLabel:0}],_on:[{watchOn:0}],_role:[{watchRole:0}],_shortKey:[{watchShortKey:0}],_target:[{watchTarget:0}],_tooltipAlign:[{watchTooltipAlign:0}],_variant:[{watchVariant:0}]}]);n([c("ctaRef")],d.prototype,"focus",null),n([s("ctaRef")],d.prototype,"click",null);const k=d,b=function(){"undefined"!=typeof customElements&&["kol-link-button"].forEach((o=>{"kol-link-button"===o&&(customElements.get(i(o))||customElements.define(i(o),d))}))};export{k as KolLinkButton,b as defineCustomElement}
4
+ import{p as o,X as t,h as e,H as i,t as n}from"./common.js";import{_ as a}from"./tslib.es6.js";import{v as l}from"./access-and-short-key.js";import{n as r}from"./dev.utils.js";import{d as c,a as s}from"./element-interaction.js";import{B as h}from"./base3.js";const d=o(class extends h{constructor(o){var e;super(!1),!1!==o&&this.__registerHost(),this.__attachShadow(),this.ariaCurrent="",this.ariaDescriptionId=r(),this.expertSlot=!1,this._accessKey=void 0,this._ariaCurrentValue=void 0,this._ariaControls=void 0,this._ariaDescription=void 0,this._customClass=void 0,this._disabled=!1,this._download=void 0,this._hideLabel=!1,this._icons=void 0,this._inline=!1,this._label=void 0,this._on=void 0,this._role=void 0,this._shortKey=void 0,this._target=void 0,this._tooltipAlign="right",this._variant=null!==(e=t("buttonVariantDefault",this.host))&&void 0!==e?e:"normal"}watchAccessKey(o){this.applyAccessKey(o)}watchAriaCurrentValue(o){this.applyAriaCurrentValue(o)}watchAriaControls(o){this.applyAriaControls(o)}watchAriaDescription(o){this.applyAriaDescription(o)}watchCustomClass(o){this.applyCustomClass(o)}watchDisabled(o){this.applyDisabled(o)}watchDownload(o){this.applyDownload(o)}watchHideLabel(o){this.applyHideLabel(o)}watchHref(o){this.applyHref(o)}watchIcons(o){this.applyIcons(o)}watchInline(o){this.applyInline(o)}watchLabel(o){this.applyLabel(o)}watchOn(o){this.applyOn(o)}watchRole(){}watchShortKey(o){this.applyShortKey(o)}watchTarget(o){this.applyTarget(o)}watchTooltipAlign(o){this.applyTooltipAlign(o)}watchVariant(o){this.applyVariant(o)}focus(o){return Promise.resolve()}click(){return Promise.resolve()}componentWillLoad(){this.unsetLinkTabIndex(),this.watchAccessKey(this._accessKey),this.watchAriaCurrentValue(this._ariaCurrentValue),this.watchAriaControls(this._ariaControls),this.watchAriaDescription(this._ariaDescription),this.watchCustomClass(this._customClass),this.watchDisabled(this._disabled),this.watchDownload(this._download),this.watchHideLabel(this._hideLabel),this.watchHref(this._href),this.watchIcons(this._icons),this.watchInline(this._inline),this.watchLabel(this._label),this.watchOn(this._on),this.watchShortKey(this._shortKey),this.watchTarget(this._target),this.watchTooltipAlign(this._tooltipAlign),this.watchVariant(this._variant),l(this._accessKey,this._shortKey),this.initLinkBehaviors()}componentDidRender(){this.syncTooltipListeners()}disconnectedCallback(){this.destroyLinkBehaviors()}render(){return e(i,{key:"6a04ed29c52b39028a29f42fae807cf667ada977"},this.renderLinkFC())}get host(){return this}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_ariaCurrentValue:[{watchAriaCurrentValue:0}],_ariaControls:[{watchAriaControls:0}],_ariaDescription:[{watchAriaDescription:0}],_customClass:[{watchCustomClass:0}],_disabled:[{watchDisabled:0}],_download:[{watchDownload:0}],_hideLabel:[{watchHideLabel:0}],_href:[{watchHref:0}],_icons:[{watchIcons:0}],_inline:[{watchInline:0}],_label:[{watchLabel:0}],_on:[{watchOn:0}],_role:[{watchRole:0}],_shortKey:[{watchShortKey:0}],_target:[{watchTarget:0}],_tooltipAlign:[{watchTooltipAlign: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-meter meter { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-bar { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-optimum-value, .kol-meter meter::-webkit-meter-suboptimum-value, .kol-meter meter::-webkit-meter-even-less-good-value { background-color: CanvasText; } .kol-meter meter::-moz-meter-bar { background-color: CanvasText; } .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=1795175086587"); src: url("kolicons.eot?t=1795175086587#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1795175086587") format("woff2"), url("kolicons.woff?t=1795175086587") format("woff"), url("kolicons.ttf?t=1795175086587") format("truetype"), url("kolicons.svg?t=1795175086587#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; } }'}}},[545,"kol-link-button",{_accessKey:[1,"_access-key"],_ariaCurrentValue:[1,"_aria-current-value"],_ariaControls:[1,"_aria-controls"],_ariaDescription:[1,"_aria-description"],_customClass:[1,"_custom-class"],_disabled:[4],_download:[1],_hideLabel:[4,"_hide-label"],_href:[1],_icons:[1],_inline:[4],_label:[1],_on:[16],_role:[1],_shortKey:[1,"_short-key"],_target:[1],_tooltipAlign:[1,"_tooltip-align"],_variant:[1],ariaCurrent:[32],ariaDescriptionId:[32],expertSlot:[32],focus:[64],click:[64]},void 0,{_accessKey:[{watchAccessKey:0}],_ariaCurrentValue:[{watchAriaCurrentValue:0}],_ariaControls:[{watchAriaControls:0}],_ariaDescription:[{watchAriaDescription:0}],_customClass:[{watchCustomClass:0}],_disabled:[{watchDisabled:0}],_download:[{watchDownload:0}],_hideLabel:[{watchHideLabel:0}],_href:[{watchHref:0}],_icons:[{watchIcons:0}],_inline:[{watchInline:0}],_label:[{watchLabel:0}],_on:[{watchOn:0}],_role:[{watchRole:0}],_shortKey:[{watchShortKey:0}],_target:[{watchTarget:0}],_tooltipAlign:[{watchTooltipAlign:0}],_variant:[{watchVariant:0}]}]);a([c("ctaRef")],d.prototype,"focus",null),a([s("ctaRef")],d.prototype,"click",null);const k=d,b=function(){"undefined"!=typeof customElements&&["kol-link-button"].forEach((o=>{"kol-link-button"===o&&(customElements.get(n(o))||customElements.define(n(o),d))}))};export{k as KolLinkButton,b as defineCustomElement}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{proxyCustomElement as o,h as t,Host as e,transformTag as i}from"@stencil/core/internal/client";import{_ as n}from"./tslib.es6.js";import{v as a}from"./access-and-short-key.js";import{n as l}from"./dev.utils.js";import{d as r}from"./element-interaction.js";import{B as s}from"./base3.js";const c=o(class extends s{constructor(o){super(!1),!1!==o&&this.__registerHost(),this.__attachShadow(),this.ariaCurrent="",this.ariaDescriptionId=l(),this.expertSlot=!1,this._accessKey=void 0,this._ariaCurrentValue=void 0,this._ariaControls=void 0,this._ariaDescription=void 0,this._ariaExpanded=void 0,this._disabled=!1,this._download=void 0,this._hideLabel=!1,this._icons=void 0,this._inline=!0,this._label=void 0,this._on=void 0,this._shortKey=void 0,this._target=void 0,this._tooltipAlign="right",this._variant=void 0}watchAccessKey(o){this.applyAccessKey(o)}watchAriaCurrentValue(o){this.applyAriaCurrentValue(o)}watchAriaControls(o){this.applyAriaControls(o)}watchAriaDescription(o){this.applyAriaDescription(o)}watchAriaExpanded(o){this.applyAriaExpanded(o)}watchDisabled(o){this.applyDisabled(o)}watchDownload(o){this.applyDownload(o)}watchHideLabel(o){this.applyHideLabel(o)}watchHref(o){this.applyHref(o)}watchIcons(o){this.applyIcons(o)}watchInline(o){this.applyInline(o)}watchLabel(o){this.applyLabel(o)}watchOn(o){this.applyOn(o)}watchShortKey(o){this.applyShortKey(o)}watchTarget(o){this.applyTarget(o)}watchTooltipAlign(o){this.applyTooltipAlign(o)}watchVariant(o){this.applyVariant(o)}focus(o){return Promise.resolve()}componentWillLoad(){this.unsetLinkTabIndex(),this.watchAccessKey(this._accessKey),this.watchAriaControls(this._ariaControls),this.watchAriaCurrentValue(this._ariaCurrentValue),this.watchAriaDescription(this._ariaDescription),this.watchAriaExpanded(this._ariaExpanded),this.watchDisabled(this._disabled),this.watchDownload(this._download),this.watchHideLabel(this._hideLabel),this.watchHref(this._href),this.watchIcons(this._icons),this.watchInline(this._inline),this.watchLabel(this._label),this.watchOn(this._on),this.watchShortKey(this._shortKey),this.watchTarget(this._target),this.watchTooltipAlign(this._tooltipAlign),this.watchVariant(this._variant),a(this._accessKey,this._shortKey),this.initLinkBehaviors()}componentDidRender(){this.syncTooltipListeners()}disconnectedCallback(){this.destroyLinkBehaviors()}render(){return t(e,{key:"b764c0f6a32959078e64b0e9e7a825144430efee"},this.renderLinkFC())}get host(){return this}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_ariaCurrentValue:[{watchAriaCurrentValue:0}],_ariaControls:[{watchAriaControls:0}],_ariaDescription:[{watchAriaDescription:0}],_ariaExpanded:[{watchAriaExpanded:0}],_disabled:[{watchDisabled:0}],_download:[{watchDownload:0}],_hideLabel:[{watchHideLabel:0}],_href:[{watchHref:0}],_icons:[{watchIcons:0}],_inline:[{watchInline:0}],_label:[{watchLabel:0}],_on:[{watchOn:0}],_shortKey:[{watchShortKey:0}],_target:[{watchTarget:0}],_tooltipAlign:[{watchTooltipAlign: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; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794497133718"); src: url("kolicons.eot?t=1794497133718#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794497133718") format("woff2"), url("kolicons.woff?t=1794497133718") format("woff"), url("kolicons.ttf?t=1794497133718") format("truetype"), url("kolicons.svg?t=1794497133718#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: inline-flex; max-width: fit-content; } .kol-link--standalone { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: stretch; } .kol-link--standalone .kol-link__interactive-element { align-items: stretch; } .kol-link--standalone .kol-link__text { display: inline-flex; flex: 1 1 100%; place-items: center; } .kol-link__interactive-element { display: inline-flex; flex: 1; align-items: baseline; place-items: center; text-align: left; text-decoration-line: none; } .kol-link__interactive-element:focus:not([aria-disabled], [disabled]) .kol-span__label, .kol-link__interactive-element:hover:not([aria-disabled], [disabled]) .kol-span__label { text-decoration-thickness: 0.2em; } .kol-link .kol-span__label { text-decoration-line: underline; } .kol-link__icon { display: inline-flex; } }'}}},[545,"kol-link",{_accessKey:[1,"_access-key"],_ariaCurrentValue:[1,"_aria-current-value"],_ariaControls:[1,"_aria-controls"],_ariaDescription:[1,"_aria-description"],_ariaExpanded:[4,"_aria-expanded"],_disabled:[4],_download:[1],_hideLabel:[4,"_hide-label"],_href:[1],_icons:[1],_inline:[4],_label:[1],_on:[16],_shortKey:[1,"_short-key"],_target:[1],_tooltipAlign:[1,"_tooltip-align"],_variant:[1],ariaCurrent:[32],ariaDescriptionId:[32],expertSlot:[32],focus:[64]},void 0,{_accessKey:[{watchAccessKey:0}],_ariaCurrentValue:[{watchAriaCurrentValue:0}],_ariaControls:[{watchAriaControls:0}],_ariaDescription:[{watchAriaDescription:0}],_ariaExpanded:[{watchAriaExpanded:0}],_disabled:[{watchDisabled:0}],_download:[{watchDownload:0}],_hideLabel:[{watchHideLabel:0}],_href:[{watchHref:0}],_icons:[{watchIcons:0}],_inline:[{watchInline:0}],_label:[{watchLabel:0}],_on:[{watchOn:0}],_shortKey:[{watchShortKey:0}],_target:[{watchTarget:0}],_tooltipAlign:[{watchTooltipAlign:0}],_variant:[{watchVariant:0}]}]);n([r("ctaRef")],c.prototype,"focus",null);const h=c,d=function(){"undefined"!=typeof customElements&&["kol-link"].forEach((o=>{"kol-link"===o&&(customElements.get(i(o))||customElements.define(i(o),c))}))};export{h as KolLink,d as defineCustomElement}
4
+ import{K as o,d as s}from"./component12.js";const t=o,m=s;export{t as KolLink,m 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{B as a}from"./base-web-component.js";import{b as l}from"./bem-registry.js";import{c as r,B as n,C as s,t as m}from"./props-from-config.js";import{l as c}from"./label-lang-segment.js";import{m as h,u as d}from"./unit.js";import{o as u}from"./orientation.js";import{t as b}from"./i18n.js";import{r as k}from"./component7.js";const p=r("high",0,n),v=r("low",0,n),g=r("min",0,n),_=r("optimum",0,n),f={optional:[p,v,g,_,u,d],required:[s,c,h]},w=l.forBlock("kol-meter"),x=e=>{const{high:o,label:i,low:a,max:l,min:r,optimum:n,orientation:s,unit:c,value:h}=e,d=null!=h,u="vertical"===s,p="%"===c,v=d?p?l===r?0:Math.round((h-r)/(l-r)*100):h:"",g=function(t,e,o,i,a,l){const r=null!=i?i:e,n=null!=a?a:o;if(void 0===l)return t>=r&&t<=n?"optimum":"suboptimal";const s=t<r,m=t>n,c=!s&&!m;return l<r?s?"optimum":c?"suboptimal":"critical":l>n?m?"optimum":c?"suboptimal":"critical":c?"optimum":"suboptimal"}(d?h:r,r,l,a,o,n),_=void 0!==a||void 0!==o;let f="";_&&(f=b("critical"===g?"kol-meter-state-critical":"optimum"===g?"kol-meter-state-optimum":"kol-meter-state-suboptimal"));const x=d?p?b("kol-live-value",{placeholders:{value:v+"",unit:c}}):b("kol-live-value-bounded",{placeholders:{value:v+"",max:l+"",unit:c}}):"",y=_?`${x} – ${f}`:x,z=(""+l).length>(""+r).length?(""+l).length+"ch":(""+r).length+"ch";return t("div",{class:w({vertical:u})},t("div",{class:w("bar")},t("div",{class:w("bar-label")},k(i),_&&t("span",{class:w("bar-state",{[g]:!0})}," – ",f)),t("div",{class:w("bar-track")},t("meter",{"aria-label":m(i),"aria-valuetext":y||void 0,high:o,low:a,max:l,min:r,optimum:n,value:d?h:void 0})),t("span",{class:w("value-unit")},t("span",{class:w("value"),style:{"min-width":z}},v),t("span",{class:w("unit")},c))))},y=e(class extends a{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.propsConfig=f,this._high=void 0,this._low=void 0,this._max=1,this._min=0,this._optimum=void 0,this._orientation="horizontal",this._unit="%"}watchHigh(t){void 0===t?this.unsetRenderProp("high"):p.apply(t,(t=>this.setRenderProp("high",t)))}watchLabel(t){c.apply(t,(t=>this.setRenderProp("label",t)),this.isRequired("label"))}watchLow(t){void 0===t?this.unsetRenderProp("low"):v.apply(t,(t=>this.setRenderProp("low",t)))}watchMax(t){h.apply(t,(t=>{this.setRenderProp("max",t),this.watchValue(this.getRawProp("value"))}))}watchMin(t){g.apply(t,(t=>{this.setRenderProp("min",t),this.watchValue(this.getRawProp("value"))}))}watchOptimum(t){void 0===t?this.unsetRenderProp("optimum"):_.apply(t,(t=>this.setRenderProp("optimum",t)))}watchOrientation(t){u.apply(t,(t=>this.setRenderProp("orientation",t)))}watchUnit(t){d.apply(t,(t=>this.setRenderProp("unit",t)))}watchValue(t){this.setRawProp("value",t),s.apply(t,(t=>{this.setRenderProp("value",t)}),{min:this.getRenderProp("min"),max:this.getRenderProp("max")})}componentWillLoad(){this.watchHigh(this._high),c.apply(this._label,(t=>this.setRenderProp("label",t)),this.isRequired("label")),this.watchLow(this._low),h.apply(this._max,(t=>{this.setRenderProp("max",t),this.watchValue(this.getRawProp("value"))})),g.apply(this._min,(t=>{this.setRenderProp("min",t),this.watchValue(this.getRawProp("value"))})),this.watchOptimum(this._optimum),u.apply(this._orientation,(t=>this.setRenderProp("orientation",t))),d.apply(this._unit,(t=>this.setRenderProp("unit",t))),this.watchValue(this._value)}render(){return t(o,{key:"0073699ca69743127bf0a17ef57c85066f410f9e"},t(x,{key:"323779f98766d9e7b9359c2ee061170a12dd63af",high:this.getRenderProp("high"),label:this.getRenderProp("label"),low:this.getRenderProp("low"),max:this.getRenderProp("max"),min:this.getRenderProp("min"),optimum:this.getRenderProp("optimum"),orientation:this.getRenderProp("orientation"),unit:this.getRenderProp("unit"),value:this.getRenderProp("value")}))}static get watchers(){return{_high:[{watchHigh:0}],_label:[{watchLabel:0}],_low:[{watchLow:0}],_max:[{watchMax:0}],_min:[{watchMin:0}],_optimum:[{watchOptimum:0}],_orientation:[{watchOrientation:0}],_unit:[{watchUnit:0}],_value:[{watchValue: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-meter { --color-optimal: var(--kol-meter-color-optimal, #2ea32e); --color-suboptimal: var(--kol-meter-color-suboptimal, #c8a000); --color-critical: var(--kol-meter-color-critical, #c00); --vertical-height: var(--kol-meter-vertical-height, 128); --horizontal-height: var(--kol-meter-horizontal-height, 12); } .kol-meter__bar { display: grid; align-items: center; grid-template-areas: "label label" "bar value"; grid-template-columns: 1fr auto; } .kol-meter__bar-label { grid-column-end: 2; grid-area: label; } .kol-meter__bar-track { display: flex; min-width: 100%; grid-area: bar; } .kol-meter__value-unit { grid-area: value; } .kol-meter:not(.kol-meter--vertical) .kol-meter__value { display: inline-block; text-align: right; } .kol-meter--vertical { min-height: 100%; } .kol-meter--vertical .kol-meter__bar { min-height: 100%; align-items: end; justify-items: center; grid-template-areas: "label" "bar" "value"; grid-template-columns: 1fr; grid-template-rows: min-content 1fr min-content; } .kol-meter--vertical .kol-meter__bar-label { text-align: center; } .kol-meter--vertical .kol-meter__bar-track { position: relative; min-width: 0; min-height: calc(var(--vertical-height) * 1rem / var(--kolibri-root-font-size, 16)); align-items: center; } .kol-meter--vertical .kol-meter__bar meter { transform: rotate(-90deg); transform-origin: left bottom; position: absolute; bottom: 0; width: calc(var(--vertical-height) * 1rem / var(--kolibri-root-font-size, 16)); } .kol-meter { } .kol-meter meter { width: 100%; height: calc(var(--horizontal-height) * 1rem / var(--kolibri-root-font-size, 16)); -webkit-appearance: none; -moz-appearance: none; appearance: none; } .kol-meter { } .kol-meter meter::-webkit-meter-bar { background: white; height: calc(var(--horizontal-height) * 1rem / var(--kolibri-root-font-size, 16)); border: 1px solid black; } .kol-meter meter::-webkit-meter-optimum-value { background: var(--color-optimal); } .kol-meter meter::-webkit-meter-suboptimum-value { background: var(--color-suboptimal); } .kol-meter meter::-webkit-meter-even-less-good-value { background: var(--color-critical); } .kol-meter { } @supports (selector(::-moz-meter-bar)) { .kol-meter meter { background: white; border: 1px solid black; } } .kol-meter meter::-moz-meter-bar { background: var(--color-optimal); } .kol-meter meter:-moz-meter-sub-optimum::-moz-meter-bar { background: var(--color-suboptimal); } .kol-meter meter:-moz-meter-sub-sub-optimum::-moz-meter-bar { background: var(--color-critical); } }'}}},[545,"kol-meter",{_high:[2],_label:[1],_low:[2],_max:[2],_min:[2],_optimum:[2],_orientation:[1],_unit:[1],_value:[2]},void 0,{_high:[{watchHigh:0}],_label:[{watchLabel:0}],_low:[{watchLow:0}],_max:[{watchMax:0}],_min:[{watchMin:0}],_optimum:[{watchOptimum:0}],_orientation:[{watchOrientation:0}],_unit:[{watchUnit:0}],_value:[{watchValue:0}]}]),z=y,j=function(){"undefined"!=typeof customElements&&["kol-meter"].forEach((t=>{"kol-meter"===t&&(customElements.get(i(t))||customElements.define(i(t),y))}))};export{z as KolMeter,j as defineCustomElement}
4
+ import{h as e,p as t,H as o,t as a}from"./common.js";import{c as i,m as l,o as r,t as n,B as s,a as m}from"./base-web-component.js";import{l as c}from"./label-lang-segment.js";import{m as h,u as d}from"./unit.js";import{o as u}from"./orientation.js";import{t as b}from"./i18n.js";import{b as k}from"./bem-registry.js";import{r as p}from"./component5.js";const v=i("high",0,l),g=i("low",0,l),_=i("min",0,l),w=i("optimum",0,l),f={optional:[v,g,_,w,u,d],required:[r,c,h]},x=k.forBlock("kol-meter"),y=t=>{const{high:o,label:a,low:i,max:l,min:r,optimum:m,orientation:c,unit:h,value:d}=t,u=null!=d,k="vertical"===c,v="%"===h,g=u?v?l===r?0:Math.round((d-r)/(l-r)*100):d:"",_=function(e,t,o,a,i,l){const r=null!=a?a:t,n=null!=i?i:o,s=null!=l?l:(t+o)/2,m=e<r,c=e>n,h=!m&&!c;return s<r?m?"optimum":h?"suboptimal":"critical":s>n?c?"optimum":h?"suboptimal":"critical":h?"optimum":"suboptimal"}(u?d:r,r,l,i,o,m),w=void 0!==i||void 0!==o;let f="";w&&(f=b("critical"===_?"kol-meter-state-critical":"optimum"===_?"kol-meter-state-optimum":"kol-meter-state-suboptimal"));const y=u?v?b("kol-live-value",{placeholders:{value:g+"",unit:h}}):b("kol-live-value-bounded",{placeholders:{value:g+"",max:l+"",unit:h}}):"",z=w?`${y} – ${f}`:y,T=(""+l).length>(""+r).length?(""+l).length+"ch":(""+r).length+"ch";return e(s,{block:"kol-meter",modifiers:{vertical:k}},e("div",{class:x("bar")},e("div",{class:x("bar-label")},p(a),w&&e("span",{class:x("bar-state",{[_]:!0})}," – ",f)),e("div",{class:x("bar-track")},e("meter",{"aria-label":n(a),"aria-valuetext":z||void 0,high:o,low:i,max:l,min:r,optimum:m,value:u?d:void 0})),e("span",{class:x("value-unit")},e("span",{class:x("value"),style:{"min-width":T}},g),e("span",{class:x("unit")},h))))},z=t(class extends m{constructor(e){super(!1),!1!==e&&this.__registerHost(),this.__attachShadow(),this.propsConfig=f,this._high=void 0,this._low=void 0,this._max=1,this._min=0,this._optimum=void 0,this._orientation="horizontal",this._unit="%"}watchHigh(e){void 0===e?this.unsetRenderProp("high"):v.apply(e,(e=>this.setRenderProp("high",e)))}watchLabel(e){c.apply(e,(e=>this.setRenderProp("label",e)),this.isRequired("label"))}watchLow(e){void 0===e?this.unsetRenderProp("low"):g.apply(e,(e=>this.setRenderProp("low",e)))}watchMax(e){h.apply(e,(e=>{this.setRenderProp("max",e),this.watchValue(this.getRawProp("value"))}))}watchMin(e){_.apply(e,(e=>{this.setRenderProp("min",e),this.watchValue(this.getRawProp("value"))}))}watchOptimum(e){void 0===e?this.unsetRenderProp("optimum"):w.apply(e,(e=>this.setRenderProp("optimum",e)))}watchOrientation(e){u.apply(e,(e=>this.setRenderProp("orientation",e)))}watchUnit(e){d.apply(e,(e=>this.setRenderProp("unit",e)))}watchValue(e){this.setRawProp("value",e),r.apply(e,(e=>{this.setRenderProp("value",e)}),{min:this.getRenderProp("min"),max:this.getRenderProp("max")})}componentWillLoad(){this.watchHigh(this._high),c.apply(this._label,(e=>this.setRenderProp("label",e)),this.isRequired("label")),this.watchLow(this._low),h.apply(this._max,(e=>{this.setRenderProp("max",e),this.watchValue(this.getRawProp("value"))})),_.apply(this._min,(e=>{this.setRenderProp("min",e),this.watchValue(this.getRawProp("value"))})),this.watchOptimum(this._optimum),u.apply(this._orientation,(e=>this.setRenderProp("orientation",e))),d.apply(this._unit,(e=>this.setRenderProp("unit",e))),this.watchValue(this._value)}render(){return e(o,{key:"9db77f1661c14173fd3e132e27e9dd752cddba97"},e(y,{key:"fc54f3ca9afdfd60a945abdf371f3eca904a209b",high:this.getRenderProp("high"),label:this.getRenderProp("label"),low:this.getRenderProp("low"),max:this.getRenderProp("max"),min:this.getRenderProp("min"),optimum:this.getRenderProp("optimum"),orientation:this.getRenderProp("orientation"),unit:this.getRenderProp("unit"),value:this.getRenderProp("value")}))}static get watchers(){return{_high:[{watchHigh:0}],_label:[{watchLabel:0}],_low:[{watchLow:0}],_max:[{watchMax:0}],_min:[{watchMin:0}],_optimum:[{watchOptimum:0}],_orientation:[{watchOrientation:0}],_unit:[{watchUnit:0}],_value:[{watchValue: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-meter meter { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-bar { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-optimum-value, .kol-meter meter::-webkit-meter-suboptimum-value, .kol-meter meter::-webkit-meter-even-less-good-value { background-color: CanvasText; } .kol-meter meter::-moz-meter-bar { background-color: CanvasText; } .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-meter { --color-optimal: var(--kol-meter-color-optimal, #2ea32e); --color-suboptimal: var(--kol-meter-color-suboptimal, #c8a000); --color-critical: var(--kol-meter-color-critical, #c00); --vertical-height: var(--kol-meter-vertical-height, 128); --horizontal-height: var(--kol-meter-horizontal-height, 12); } .kol-meter__bar { display: grid; align-items: center; grid-template-areas: "label label" "bar value"; grid-template-columns: 1fr auto; } .kol-meter__bar-label { grid-column-end: 2; grid-area: label; } .kol-meter__bar-track { display: flex; min-width: 100%; grid-area: bar; } .kol-meter__value-unit { grid-area: value; } .kol-meter:not(.kol-meter--vertical) .kol-meter__value { display: inline-block; text-align: right; } .kol-meter--vertical { min-height: 100%; } .kol-meter--vertical .kol-meter__bar { min-height: 100%; align-items: end; justify-items: center; grid-template-areas: "label" "bar" "value"; grid-template-columns: 1fr; grid-template-rows: min-content 1fr min-content; } .kol-meter--vertical .kol-meter__bar-label { text-align: center; } .kol-meter--vertical .kol-meter__bar-track { position: relative; min-width: 0; min-height: calc(var(--vertical-height) * 1rem / var(--kolibri-root-font-size, 16)); align-items: center; } .kol-meter--vertical .kol-meter__bar meter { transform: rotate(-90deg); transform-origin: left bottom; position: absolute; bottom: 0; width: calc(var(--vertical-height) * 1rem / var(--kolibri-root-font-size, 16)); } .kol-meter { } .kol-meter meter { width: 100%; height: calc(var(--horizontal-height) * 1rem / var(--kolibri-root-font-size, 16)); -webkit-appearance: none; -moz-appearance: none; appearance: none; } .kol-meter { } .kol-meter meter::-webkit-meter-bar { background: white; height: calc(var(--horizontal-height) * 1rem / var(--kolibri-root-font-size, 16)); border: 1px solid black; } .kol-meter meter::-webkit-meter-optimum-value { background: var(--color-optimal); } .kol-meter meter::-webkit-meter-suboptimum-value { background: var(--color-suboptimal); } .kol-meter meter::-webkit-meter-even-less-good-value { background: var(--color-critical); } .kol-meter { } @supports (selector(::-moz-meter-bar)) { .kol-meter meter { background: white; border: 1px solid black; } } .kol-meter meter::-moz-meter-bar { background: var(--color-optimal); } .kol-meter meter:-moz-meter-sub-optimum::-moz-meter-bar { background: var(--color-suboptimal); } .kol-meter meter:-moz-meter-sub-sub-optimum::-moz-meter-bar { background: var(--color-critical); } }'}}},[545,"kol-meter",{_high:[2],_label:[1],_low:[2],_max:[2],_min:[2],_optimum:[2],_orientation:[1],_unit:[1],_value:[2]},void 0,{_high:[{watchHigh:0}],_label:[{watchLabel:0}],_low:[{watchLow:0}],_max:[{watchMax:0}],_min:[{watchMin:0}],_optimum:[{watchOptimum:0}],_orientation:[{watchOrientation:0}],_unit:[{watchUnit:0}],_value:[{watchValue:0}]}]),T=z,j=function(){"undefined"!=typeof customElements&&["kol-meter"].forEach((e=>{"kol-meter"===e&&(customElements.get(a(e))||customElements.define(a(e),z))}))};export{T as KolMeter,j as defineCustomElement}