@public-ui/components 5.0.0-beta.0 → 5.1.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1172) hide show
  1. package/README.md +1 -1
  2. package/assets/kolicons/kolicons.eot +0 -0
  3. package/assets/kolicons/kolicons.ttf +0 -0
  4. package/assets/kolicons/kolicons.woff +0 -0
  5. package/assets/kolicons/kolicons.woff2 +0 -0
  6. package/assets/kolicons/style.css +6 -6
  7. package/custom-elements.json +324 -66
  8. package/dist/cjs/{Heading-gKYGJ1tV.js → Heading-DkRJJg18.js} +1 -1
  9. package/dist/cjs/{align-NV74hwT0.js → align-1ptk-pir.js} +1 -1
  10. package/dist/cjs/{api-BlwpFlt1.js → api-BHYk3kXB.js} +17 -17
  11. package/dist/cjs/{api-DyRC0E3C.js → api-Bx-kMwS-.js} +30 -22
  12. package/dist/cjs/{api-BBdhCCKv.js → api-LDDRsovK.js} +6 -6
  13. package/dist/cjs/{app-globals-C-QndvUR.js → app-globals-Ccbdxh47.js} +2 -2
  14. package/dist/cjs/{aria-labelledby-ny809Vdx.js → aria-labelledby-BRMgWRVp.js} +2 -2
  15. package/dist/cjs/{base-DjGWfEqB.js → base-C39txjCj.js} +44 -36
  16. package/dist/cjs/{base-C9jeVqnN.js → base-Ctf3_lQs.js} +14 -14
  17. package/dist/cjs/{base-Cau7nZZw.js → base-DHqHIMP-.js} +12 -12
  18. package/dist/cjs/{base-zeK_arau.js → base-XB_UlEMi.js} +21 -14
  19. package/dist/cjs/{base-web-component-BOQatEb9.js → base-web-component-3D1pZRXT.js} +14 -14
  20. package/dist/cjs/{base-web-component-r0Jr01kf.js → base-web-component-AJHupAXc.js} +9 -9
  21. package/dist/cjs/{base-web-component-DPBaBA5x.js → base-web-component-C6DKJNGD.js} +54 -28
  22. package/dist/cjs/{behavior-Djs9V7Si.js → behavior-2xAX1euA.js} +6 -5
  23. package/dist/cjs/{behavior-P_MOoqmo.js → behavior-B9-IyIXq.js} +4 -4
  24. package/dist/cjs/{behavior-APmbiQTR.js → behavior-iZBKzFFw.js} +5 -5
  25. package/dist/cjs/{bootstrap-BbvuwOW2.js → bootstrap-b6PadCf1.js} +1 -1
  26. package/dist/cjs/{color-CbCW4wyr.js → color-CwbFUaK7.js} +12 -2
  27. package/dist/cjs/{component-B_EvGSM0.js → component-B9cVUITX.js} +7 -1
  28. package/dist/cjs/{component-hiip9BeX.js → component-BRvUYbSZ.js} +12 -9
  29. package/dist/cjs/{component-DK-qYG29.js → component-Bk4Tvby3.js} +2 -2
  30. package/dist/cjs/{component-x3LvOAC0.js → component-BqIblzhp.js} +1 -1
  31. package/dist/cjs/{component-Byx8Sl1k.js → component-C9MKHoRd.js} +1 -1
  32. package/dist/cjs/{component-CyFwKqlx.js → component-DBnZM8w2.js} +23 -10
  33. package/dist/cjs/{component-DMaPKMLG.js → component-DE4BP8IK.js} +2 -2
  34. package/dist/cjs/{component-DTToXqth.js → component-Da5C3eFC.js} +3 -3
  35. package/dist/cjs/{component-w4DHKGRj.js → component-NEiBvvE2.js} +6 -6
  36. package/dist/cjs/component-X0iN_qoU.js +36 -0
  37. package/dist/cjs/{component-C-jt8Zgv.js → component-_vYtsFBi.js} +6 -5
  38. package/dist/cjs/{component-names-EMVnNhTP.js → component-names-BMpML1sX.js} +0 -2
  39. package/dist/cjs/{contrast-BTU5ne8E.js → contrast-CTEPTNkC.js} +1 -1
  40. package/dist/cjs/{controller-ncy0x4Nz.js → controller-gDnA0yhI.js} +14 -14
  41. package/dist/cjs/{dev.utils-r-OFnYmI.js → dev.utils-U3Rfa3Dp.js} +1 -1
  42. package/dist/cjs/{devtools-BjCHvsaO.js → devtools-B7YU-YbX.js} +2 -2
  43. package/dist/cjs/{disabled-wIEbt0Gz.js → disabled-DU5r5VLL.js} +1 -1
  44. package/dist/cjs/{element-focus-D5g3xQN4.js → element-focus-CzkKMwtn.js} +24 -0
  45. package/dist/cjs/{element-interaction-7FI_z19L.js → element-interaction-BtYQAbhu.js} +1 -1
  46. package/dist/cjs/{field-control-B2MocM-9.js → field-control-CDGssAUf.js} +6 -6
  47. package/dist/cjs/{group-DUgI6ORW.js → group-CiakLLar.js} +4 -4
  48. package/dist/cjs/{has-closer-4Czygcsx.js → has-closer-CNdG-wEk.js} +1 -1
  49. package/dist/cjs/href-DoAvPFga.js +10 -0
  50. package/dist/cjs/{index-1NUYc4bH.js → index-C8LQwR1o.js} +1 -5
  51. package/dist/cjs/index.cjs.js +2 -2
  52. package/dist/cjs/{input-tgqPNmdz.js → input-CA-5lqTb.js} +3 -3
  53. package/dist/cjs/{input-container-Ce6tEgzv.js → input-container-CV02nXgX.js} +6 -6
  54. package/dist/cjs/{item-do7gGebG.js → item-9oQGuAqH.js} +11 -11
  55. package/dist/cjs/{item-CdalyKjL.js → item-Dfsg3MMy.js} +16 -25
  56. package/dist/cjs/{item-CU9y10V3.js → item-dTflpCWB.js} +6 -6
  57. package/dist/cjs/{item-BDJC0QKy.js → item-eJaPjEL7.js} +5 -5
  58. package/dist/cjs/kol-abbr.cjs.entry.js +11 -9
  59. package/dist/cjs/kol-accordion.cjs.entry.js +19 -17
  60. package/dist/cjs/kol-alert.cjs.entry.js +25 -23
  61. package/dist/cjs/kol-avatar.cjs.entry.js +19 -14
  62. package/dist/cjs/kol-badge.cjs.entry.js +31 -28
  63. package/dist/cjs/kol-breadcrumb.cjs.entry.js +29 -27
  64. package/dist/cjs/kol-button-link.cjs.entry.js +42 -28
  65. package/dist/cjs/kol-button.cjs.entry.js +43 -28
  66. package/dist/cjs/kol-card.cjs.entry.js +37 -33
  67. package/dist/cjs/kol-click-button.cjs.entry.js +12 -10
  68. package/dist/cjs/kol-combobox.cjs.entry.js +59 -47
  69. package/dist/cjs/kol-details.cjs.entry.js +19 -17
  70. package/dist/cjs/kol-dialog.cjs.entry.js +31 -29
  71. package/dist/cjs/kol-drawer.cjs.entry.js +35 -31
  72. package/dist/cjs/kol-form.cjs.entry.js +26 -23
  73. package/dist/cjs/kol-heading.cjs.entry.js +17 -11
  74. package/dist/cjs/kol-icon.cjs.entry.js +11 -9
  75. package/dist/cjs/kol-image.cjs.entry.js +10 -6
  76. package/dist/cjs/kol-input-checkbox.cjs.entry.js +50 -39
  77. package/dist/cjs/kol-input-color.cjs.entry.js +55 -47
  78. package/dist/cjs/kol-input-date.cjs.entry.js +73 -44
  79. package/dist/cjs/kol-input-email.cjs.entry.js +63 -46
  80. package/dist/cjs/kol-input-file.cjs.entry.js +53 -40
  81. package/dist/cjs/kol-input-number.cjs.entry.js +63 -45
  82. package/dist/cjs/kol-input-password.cjs.entry.js +64 -44
  83. package/dist/cjs/kol-input-radio.cjs.entry.js +48 -39
  84. package/dist/cjs/kol-input-range.cjs.entry.js +55 -41
  85. package/dist/cjs/kol-input-text.cjs.entry.js +68 -46
  86. package/dist/cjs/kol-kolibri.cjs.entry.js +6 -6
  87. package/dist/cjs/kol-link-button.cjs.entry.js +36 -23
  88. package/dist/cjs/kol-link.cjs.entry.js +36 -23
  89. package/dist/cjs/kol-meter.cjs.entry.js +30 -18
  90. package/dist/cjs/kol-modal.cjs.entry.js +31 -29
  91. package/dist/cjs/kol-nav.cjs.entry.js +37 -35
  92. package/dist/cjs/kol-pagination.cjs.entry.js +45 -41
  93. package/dist/cjs/kol-popover-button.cjs.entry.js +40 -29
  94. package/dist/cjs/kol-progress.cjs.entry.js +21 -12
  95. package/dist/cjs/kol-quote.cjs.entry.js +16 -14
  96. package/dist/cjs/kol-select.cjs.entry.js +53 -39
  97. package/dist/cjs/kol-single-select.cjs.entry.js +58 -47
  98. package/dist/cjs/kol-skeleton.cjs.entry.js +8 -8
  99. package/dist/cjs/kol-skip-nav.cjs.entry.js +28 -26
  100. package/dist/cjs/kol-spin.cjs.entry.js +15 -10
  101. package/dist/cjs/kol-split-button.cjs.entry.js +45 -31
  102. package/dist/cjs/kol-table-stateful.cjs.entry.js +65 -53
  103. package/dist/cjs/kol-table-stateless.cjs.entry.js +51 -40
  104. package/dist/cjs/kol-tabs.cjs.entry.js +31 -27
  105. package/dist/cjs/kol-textarea.cjs.entry.js +59 -43
  106. package/dist/cjs/kol-toast-container.cjs.entry.js +13 -14
  107. package/dist/cjs/kol-toolbar.cjs.entry.js +35 -32
  108. package/dist/cjs/kol-tree-item.cjs.entry.js +30 -26
  109. package/dist/cjs/kol-tree.cjs.entry.js +12 -10
  110. package/dist/cjs/kol-version.cjs.entry.js +17 -16
  111. package/dist/cjs/kolibri.cjs.js +3 -3
  112. package/dist/cjs/label-CfuNAHBN.js +14 -0
  113. package/dist/cjs/{isArray-BOIOdEQh.js → label-Dhv1cJx3.js} +60 -0
  114. package/dist/cjs/label-hints-CgBCaif9.js +22 -0
  115. package/dist/cjs/label-lang-segment--yHvPZvF.js +14 -0
  116. package/dist/cjs/label-with-expert-slot-BdXwXCrc.js +14 -0
  117. package/dist/cjs/{level-DGDM1aXl.js → level-BmOF3SXd.js} +1 -1
  118. package/dist/cjs/{link-target-PjKWXgno.js → link-target-CxHe2nvO.js} +1 -1
  119. package/dist/cjs/{links-0QyGYlHz.js → links-D-6IG8ZN.js} +1 -1
  120. package/dist/cjs/loader.cjs.js +3 -3
  121. package/dist/cjs/{multiple-BoCGiGxR.js → multiple-DwIwRAg_.js} +1 -1
  122. package/dist/cjs/{name-BZcwC1Zd.js → name-vaRuDIu9.js} +1 -1
  123. package/dist/cjs/{number-value-aLzn0dDO.js → number-value-DdxcZ3wW.js} +1 -1
  124. package/dist/cjs/{open-ui_yY8GH.js → open-aeya5Q2h.js} +1 -1
  125. package/dist/cjs/{options-BRwmqi8M.js → options-DZE1zmTq.js} +1 -1
  126. package/dist/cjs/{orientation-BcqEqZ3D.js → orientation-DgoLv2WA.js} +1 -1
  127. package/dist/cjs/{placeholder-CCYSgsip.js → placeholder-CHT6vsaN.js} +1 -1
  128. package/dist/cjs/{read-only-KKKbZyk5.js → read-only-AeNVMOPS.js} +1 -1
  129. package/dist/cjs/{required-CeiUcxrv.js → required-DU_lEi_a.js} +1 -1
  130. package/dist/cjs/{resolve-props-BcGzqFFR.js → resolve-props-Bgqa1y71.js} +7 -7
  131. package/dist/cjs/{resolve-props-Cv67cUZA.js → resolve-props-gpH7EEKM.js} +7 -7
  132. package/dist/cjs/{rows-BWBG8nDk.js → rows-C-HHixH0.js} +2 -2
  133. package/dist/cjs/{scroll-lock-Bs5vb-ss.js → scroll-lock-D7i76ZoY.js} +1 -1
  134. package/dist/cjs/{smart-button-DQryZ9gX.js → smart-button-eNvMPGW9.js} +1 -1
  135. package/dist/cjs/{spell-check-DHRle7ui.js → spell-check-DsU1STqx.js} +1 -1
  136. package/dist/cjs/{src-B6CU1zD0.js → src-BqZDpTCj.js} +1 -1
  137. package/dist/cjs/{step-kuREYDVE.js → step-CTAiZ5xn.js} +1 -1
  138. package/dist/cjs/{suggestions-b21ak6-A.js → suggestions-0I18Pk65.js} +1 -1
  139. package/dist/cjs/{suggestions-B4X9HMr-.js → suggestions-C-QgtY7Q.js} +3 -3
  140. package/dist/cjs/test-component.cjs.entry.js +1 -1
  141. package/dist/cjs/{toggle-handler-AgDdplvI.js → toggle-handler-kx77ZDI9.js} +10 -10
  142. package/dist/cjs/{unique-nav-labels-CuHbVHx9.js → unique-nav-labels-CaD7vZWy.js} +7 -4
  143. package/dist/cjs/{unit-DHpzrXY7.js → unit-DmftTbjX.js} +1 -1
  144. package/dist/cjs/validators-ivurI_Hf.js +15 -0
  145. package/dist/cjs/{value-string-BtfdnGIb.js → value-string-BFgf4hTO.js} +1 -1
  146. package/dist/cjs/{variant-CxQO5qFu.js → variant-DidopMGV.js} +5 -7
  147. package/dist/cjs/{width-DF6eLXIz.js → width-BX3KQodz.js} +5 -2
  148. package/dist/collection/collection-manifest.json +12 -13
  149. package/dist/collection/components/@else/all/component.js +1 -1
  150. package/dist/collection/components/_skeleton/public-api/contract.js +6 -6
  151. package/dist/collection/components/_skeleton/web-components/click-button/component.js +12 -5
  152. package/dist/collection/components/_skeleton/web-components/skeleton/component.js +10 -3
  153. package/dist/collection/components/abbr/component.js +11 -9
  154. package/dist/collection/components/abbr/style.css +0 -3
  155. package/dist/collection/components/accordion/component.js +30 -17
  156. package/dist/collection/components/accordion/style.css +2 -5
  157. package/dist/collection/components/alert/component.js +33 -18
  158. package/dist/collection/components/alert/style.css +2 -5
  159. package/dist/collection/components/avatar/component.js +31 -11
  160. package/dist/collection/components/avatar/style.css +0 -3
  161. package/dist/collection/components/badge/component.js +14 -10
  162. package/dist/collection/components/badge/style.css +2 -5
  163. package/dist/collection/components/breadcrumb/component.js +4 -4
  164. package/dist/collection/components/breadcrumb/style.css +2 -5
  165. package/dist/collection/components/button/base.js +2 -2
  166. package/dist/collection/components/button/component.js +100 -33
  167. package/dist/collection/components/button/style.css +2 -5
  168. package/dist/collection/components/button-link/component.js +91 -42
  169. package/dist/collection/components/button-link/style.css +2 -5
  170. package/dist/collection/components/card/base.js +3 -3
  171. package/dist/collection/components/card/component.js +25 -15
  172. package/dist/collection/components/card/style.css +2 -5
  173. package/dist/collection/components/combobox/component.js +139 -57
  174. package/dist/collection/components/combobox/style.css +3 -7
  175. package/dist/collection/components/details/component.js +30 -17
  176. package/dist/collection/components/details/style.css +2 -5
  177. package/dist/collection/components/dialog/base.js +12 -5
  178. package/dist/collection/components/dialog/component.js +18 -9
  179. package/dist/collection/components/dialog/style.css +2 -5
  180. package/dist/collection/components/drawer/component.js +27 -17
  181. package/dist/collection/components/drawer/style.css +2 -5
  182. package/dist/collection/components/form/component.js +7 -3
  183. package/dist/collection/components/form/controller.js +13 -13
  184. package/dist/collection/components/form/style.css +2 -5
  185. package/dist/collection/components/heading/component.js +17 -8
  186. package/dist/collection/components/heading/style.css +0 -3
  187. package/dist/collection/components/icon/component.js +12 -5
  188. package/dist/collection/components/icon/style.css +2 -2
  189. package/dist/collection/components/image/component.js +49 -13
  190. package/dist/collection/components/image/style.css +0 -3
  191. package/dist/collection/components/input-checkbox/component.js +123 -61
  192. package/dist/collection/components/input-checkbox/style.css +4 -8
  193. package/dist/collection/components/input-color/component.js +111 -54
  194. package/dist/collection/components/input-color/style.css +3 -7
  195. package/dist/collection/components/input-date/component.js +132 -61
  196. package/dist/collection/components/input-date/style.css +3 -7
  197. package/dist/collection/components/input-email/component.js +185 -76
  198. package/dist/collection/components/input-email/style.css +3 -7
  199. package/dist/collection/components/input-file/component.js +128 -59
  200. package/dist/collection/components/input-file/style.css +3 -7
  201. package/dist/collection/components/input-number/component.js +143 -64
  202. package/dist/collection/components/input-number/style.css +3 -7
  203. package/dist/collection/components/input-password/component.js +177 -70
  204. package/dist/collection/components/input-password/style.css +3 -7
  205. package/dist/collection/components/input-radio/component.js +86 -43
  206. package/dist/collection/components/input-radio/style.css +4 -8
  207. package/dist/collection/components/input-range/component.js +101 -45
  208. package/dist/collection/components/input-range/style.css +3 -7
  209. package/dist/collection/components/input-text/component.js +173 -69
  210. package/dist/collection/components/input-text/style.css +3 -7
  211. package/dist/collection/components/kolibri/component.js +10 -3
  212. package/dist/collection/components/kolibri/style.css +0 -3
  213. package/dist/collection/components/link/base.js +2 -2
  214. package/dist/collection/components/link/component.js +77 -31
  215. package/dist/collection/components/link/style.css +2 -5
  216. package/dist/collection/components/link-button/component.js +67 -25
  217. package/dist/collection/components/link-button/style.css +2 -5
  218. package/dist/collection/components/meter/component.js +86 -24
  219. package/dist/collection/components/meter/style.css +0 -3
  220. package/dist/collection/components/modal/component.js +18 -9
  221. package/dist/collection/components/modal/style.css +2 -5
  222. package/dist/collection/components/nav/component.js +41 -19
  223. package/dist/collection/components/nav/style.css +2 -5
  224. package/dist/collection/components/pagination/component.js +34 -9
  225. package/dist/collection/components/pagination/style.css +3 -7
  226. package/dist/collection/components/popover-button/component.js +70 -25
  227. package/dist/collection/components/popover-button/style.css +2 -5
  228. package/dist/collection/components/progress/component.js +50 -16
  229. package/dist/collection/components/progress/style.css +0 -3
  230. package/dist/collection/components/quote/component.js +37 -14
  231. package/dist/collection/components/quote/style.css +0 -3
  232. package/dist/collection/components/select/component.js +129 -58
  233. package/dist/collection/components/select/style.css +3 -7
  234. package/dist/collection/components/single-select/component.js +129 -55
  235. package/dist/collection/components/single-select/style.css +3 -7
  236. package/dist/collection/components/skip-nav/component.js +3 -3
  237. package/dist/collection/components/skip-nav/style.css +2 -5
  238. package/dist/collection/components/spin/component.js +30 -10
  239. package/dist/collection/components/spin/style.css +0 -3
  240. package/dist/collection/components/split-button/component.js +96 -31
  241. package/dist/collection/components/split-button/style.css +2 -5
  242. package/dist/collection/components/table-stateful/component.js +69 -40
  243. package/dist/collection/components/table-stateful/style.css +3 -7
  244. package/dist/collection/components/table-stateless/base.js +11 -4
  245. package/dist/collection/components/table-stateless/component.js +50 -16
  246. package/dist/collection/components/table-stateless/style.css +2 -5
  247. package/dist/collection/components/tabs/component.js +19 -8
  248. package/dist/collection/components/tabs/style.css +2 -5
  249. package/dist/collection/components/textarea/component.js +172 -69
  250. package/dist/collection/components/textarea/style.css +3 -7
  251. package/dist/collection/components/toaster/shadow.js +1 -1
  252. package/dist/collection/components/toaster/style.css +2 -5
  253. package/dist/collection/components/toolbar/component.js +15 -6
  254. package/dist/collection/components/toolbar/style.css +2 -5
  255. package/dist/collection/components/tree/component.js +3 -3
  256. package/dist/collection/components/tree/style.css +0 -3
  257. package/dist/collection/components/tree-item/component.js +15 -11
  258. package/dist/collection/components/tree-item/style.css +2 -5
  259. package/dist/collection/components/version/component.js +3 -3
  260. package/dist/collection/components/version/style.css +2 -5
  261. package/dist/collection/core/component-names.js +0 -2
  262. package/dist/collection/core/i18n.js +1 -1
  263. package/dist/collection/functional-components/index.js +0 -1
  264. package/dist/collection/internal/functional-components/abbr/api.js +2 -2
  265. package/dist/collection/internal/functional-components/alert/api.js +2 -2
  266. package/dist/collection/internal/functional-components/alert/component.js +4 -2
  267. package/dist/collection/internal/functional-components/avatar/component.js +2 -1
  268. package/dist/collection/internal/functional-components/base-web-component.js +8 -3
  269. package/dist/collection/internal/functional-components/breadcrumb/api.js +2 -2
  270. package/dist/collection/internal/functional-components/breadcrumb/component.js +3 -1
  271. package/dist/collection/internal/functional-components/button/component.js +3 -3
  272. package/dist/collection/internal/functional-components/card/api.js +3 -3
  273. package/dist/collection/internal/functional-components/card/component.js +2 -1
  274. package/dist/collection/internal/functional-components/click-button/component.js +1 -1
  275. package/dist/collection/internal/functional-components/collapsible/api.js +2 -2
  276. package/dist/collection/internal/functional-components/dialog/api.js +2 -2
  277. package/dist/collection/internal/functional-components/dialog/item.js +4 -3
  278. package/dist/collection/internal/functional-components/drawer/api.js +2 -2
  279. package/dist/collection/internal/functional-components/form-association/behavior.js +1 -1
  280. package/dist/collection/internal/functional-components/form-field/base-web-component.js +11 -3
  281. package/dist/collection/internal/functional-components/form-field/date-value.js +12 -1
  282. package/dist/collection/internal/functional-components/form-field/default-input-props.js +3 -2
  283. package/dist/collection/internal/functional-components/heading/component.js +3 -2
  284. package/dist/collection/internal/functional-components/link/component.js +3 -3
  285. package/dist/collection/internal/functional-components/meter/api.js +2 -2
  286. package/dist/collection/internal/functional-components/meter/component.js +11 -6
  287. package/dist/collection/internal/functional-components/meter/component.test.js +29 -0
  288. package/dist/collection/internal/functional-components/nav/api.js +2 -2
  289. package/dist/collection/internal/functional-components/pagination/api.js +2 -11
  290. package/dist/collection/internal/functional-components/pagination/component.js +2 -1
  291. package/dist/collection/internal/functional-components/pagination/item.js +2 -2
  292. package/dist/collection/internal/functional-components/progress/api.js +2 -2
  293. package/dist/collection/internal/functional-components/progress/component.js +3 -1
  294. package/dist/collection/internal/functional-components/quote/api.js +2 -2
  295. package/dist/collection/internal/functional-components/quote/component.js +1 -1
  296. package/dist/collection/internal/functional-components/skip-nav/api.js +2 -2
  297. package/dist/collection/internal/functional-components/span/api.js +2 -3
  298. package/dist/collection/internal/functional-components/span/component.js +18 -6
  299. package/dist/collection/internal/functional-components/span/snapshot.test.js +5 -0
  300. package/dist/collection/internal/functional-components/table-stateful/api.js +2 -2
  301. package/dist/collection/internal/functional-components/table-stateless/api.js +2 -2
  302. package/dist/collection/internal/functional-components/table-stateless/component.js +5 -3
  303. package/dist/collection/internal/functional-components/table-stateless/table-model.js +3 -3
  304. package/dist/collection/internal/functional-components/tabs/api.js +2 -2
  305. package/dist/collection/internal/functional-components/toolbar/api.js +2 -2
  306. package/dist/collection/internal/functional-components/tooltip/api.js +2 -2
  307. package/dist/collection/internal/functional-components/tooltip/behavior.js +3 -2
  308. package/dist/collection/internal/functional-components/tooltip/component.js +1 -1
  309. package/dist/collection/internal/functional-components/tree/api.js +2 -2
  310. package/dist/collection/internal/functional-components/tree-item/api.js +2 -2
  311. package/dist/collection/internal/functional-components/tree-item/component.js +2 -1
  312. package/dist/collection/internal/props/color.js +10 -0
  313. package/dist/collection/internal/props/dialog-callbacks.js +4 -1
  314. package/dist/collection/internal/props/helpers/factory.js +10 -2
  315. package/dist/collection/internal/props/helpers/normalizers.js +13 -1
  316. package/dist/collection/internal/props/helpers/validators.js +4 -0
  317. package/dist/collection/internal/props/hints/label-hints.js +10 -8
  318. package/dist/collection/internal/props/href.js +1 -2
  319. package/dist/collection/internal/props/index.js +1 -1
  320. package/dist/collection/internal/props/label-lang-segment.js +10 -0
  321. package/dist/collection/internal/props/label-with-expert-slot.js +6 -2
  322. package/dist/collection/internal/props/label.js +2 -1
  323. package/dist/collection/internal/props/max-length.js +1 -1
  324. package/dist/collection/internal/props/rows.js +1 -1
  325. package/dist/collection/internal/props/tabs.js +1 -1
  326. package/dist/collection/schema/props/allow-markdown.js +1 -0
  327. package/dist/collection/schema/props/boundary-count.js +1 -0
  328. package/dist/collection/schema/props/has-clear-button.js +1 -0
  329. package/dist/collection/schema/props/high.js +1 -0
  330. package/dist/collection/schema/props/index.js +19 -0
  331. package/dist/collection/schema/props/label.js +54 -5
  332. package/dist/collection/schema/props/labeled.js +1 -0
  333. package/dist/collection/schema/props/low.js +1 -0
  334. package/dist/collection/schema/props/min.js +1 -0
  335. package/dist/collection/schema/props/optimum.js +1 -0
  336. package/dist/collection/schema/props/page-size.js +1 -0
  337. package/dist/collection/schema/props/page.js +1 -0
  338. package/dist/collection/schema/props/secondary-headline.js +1 -0
  339. package/dist/collection/schema/props/selected.js +1 -0
  340. package/dist/collection/schema/props/sibling-count.js +1 -0
  341. package/dist/collection/schema/props/sizes.js +1 -0
  342. package/dist/collection/schema/props/src.js +1 -0
  343. package/dist/collection/schema/props/srcset.js +1 -0
  344. package/dist/collection/schema/props/table-loading.js +1 -0
  345. package/dist/collection/schema/props/value-number-clamped.js +1 -0
  346. package/dist/collection/schema/props/value-string.js +1 -0
  347. package/dist/collection/utils/aria-labelledby.js +2 -2
  348. package/dist/collection/utils/dev.utils.js +0 -1
  349. package/dist/collection/utils/element-focus.js +23 -0
  350. package/dist/collection/utils/element-interaction.js +0 -7
  351. package/dist/collection/utils/element-themed.js +1 -1
  352. package/dist/collection/utils/testing/snapshot-input-testing.js +1 -0
  353. package/dist/collection/utils/unique-nav-labels.js +7 -5
  354. package/dist/components/api.js +1 -1
  355. package/dist/components/api2.js +1 -1
  356. package/dist/components/aria-labelledby.js +1 -1
  357. package/dist/components/base-web-component.js +1 -1
  358. package/dist/components/base-web-component2.js +1 -1
  359. package/dist/components/base-web-component4.js +1 -1
  360. package/dist/components/base.js +1 -1
  361. package/dist/components/base2.js +1 -1
  362. package/dist/components/base3.js +1 -1
  363. package/dist/components/base4.js +1 -1
  364. package/dist/components/behavior.js +1 -1
  365. package/dist/components/behavior2.js +1 -1
  366. package/dist/components/behavior4.js +1 -1
  367. package/dist/components/color.js +1 -1
  368. package/dist/components/component-names.js +1 -1
  369. package/dist/components/component10.js +1 -1
  370. package/dist/components/component2.js +1 -1
  371. package/dist/components/component3.js +1 -1
  372. package/dist/components/component5.js +1 -1
  373. package/dist/components/component6.js +1 -1
  374. package/dist/components/component7.js +1 -1
  375. package/dist/components/component8.js +1 -1
  376. package/dist/components/component9.js +1 -1
  377. package/dist/components/controller.js +1 -1
  378. package/dist/components/element-focus.js +1 -1
  379. package/dist/components/field-control.js +1 -1
  380. package/dist/components/href.js +1 -1
  381. package/dist/components/input-container.js +1 -1
  382. package/dist/components/item4.js +1 -1
  383. package/dist/components/kol-abbr.js +1 -1
  384. package/dist/components/kol-accordion.js +1 -1
  385. package/dist/components/kol-alert.js +1 -1
  386. package/dist/components/kol-avatar.js +1 -1
  387. package/dist/components/kol-badge.js +1 -1
  388. package/dist/components/kol-breadcrumb.js +1 -1
  389. package/dist/components/kol-button-link.js +1 -1
  390. package/dist/components/kol-button.js +1 -1
  391. package/dist/components/kol-card.js +1 -1
  392. package/dist/components/kol-click-button.js +1 -1
  393. package/dist/components/kol-combobox.js +1 -1
  394. package/dist/components/kol-details.js +1 -1
  395. package/dist/components/kol-dialog.js +1 -1
  396. package/dist/components/kol-drawer.js +1 -1
  397. package/dist/components/kol-form.js +1 -1
  398. package/dist/components/kol-heading.js +1 -1
  399. package/dist/components/kol-icon.js +1 -1
  400. package/dist/components/kol-image.js +1 -1
  401. package/dist/components/kol-input-checkbox.js +1 -1
  402. package/dist/components/kol-input-color.js +1 -1
  403. package/dist/components/kol-input-date.js +1 -1
  404. package/dist/components/kol-input-email.js +1 -1
  405. package/dist/components/kol-input-file.js +1 -1
  406. package/dist/components/kol-input-number.js +1 -1
  407. package/dist/components/kol-input-password.js +1 -1
  408. package/dist/components/kol-input-radio.js +1 -1
  409. package/dist/components/kol-input-range.js +1 -1
  410. package/dist/components/kol-input-text.js +1 -1
  411. package/dist/components/kol-kolibri.js +1 -1
  412. package/dist/components/kol-link-button.js +1 -1
  413. package/dist/components/kol-link.js +1 -1
  414. package/dist/components/kol-meter.js +1 -1
  415. package/dist/components/kol-modal.js +1 -1
  416. package/dist/components/kol-nav.js +1 -1
  417. package/dist/components/kol-pagination.js +1 -1
  418. package/dist/components/kol-popover-button.js +1 -1
  419. package/dist/components/kol-progress.js +1 -1
  420. package/dist/components/kol-quote.js +1 -1
  421. package/dist/components/kol-select.js +1 -1
  422. package/dist/components/kol-single-select.js +1 -1
  423. package/dist/components/kol-skeleton.js +1 -1
  424. package/dist/components/kol-skip-nav.js +1 -1
  425. package/dist/components/kol-spin.js +1 -1
  426. package/dist/components/kol-split-button.js +1 -1
  427. package/dist/components/kol-table-stateful.js +1 -1
  428. package/dist/components/kol-table-stateless.js +1 -1
  429. package/dist/components/kol-tabs.js +1 -1
  430. package/dist/components/kol-textarea.js +1 -1
  431. package/dist/components/kol-toast-container.js +1 -1
  432. package/dist/components/kol-toolbar.js +1 -1
  433. package/dist/components/kol-tree-item.js +1 -1
  434. package/dist/components/kol-tree.js +1 -1
  435. package/dist/components/kol-version.js +1 -1
  436. package/dist/components/label-hints.js +4 -0
  437. package/dist/components/label-lang-segment.js +4 -0
  438. package/dist/components/label-with-expert-slot.js +1 -1
  439. package/dist/components/label.js +1 -1
  440. package/dist/components/label2.js +4 -0
  441. package/dist/components/level.js +1 -1
  442. package/dist/components/rows.js +1 -1
  443. package/dist/components/toggle-handler.js +1 -1
  444. package/dist/components/unique-nav-labels.js +1 -1
  445. package/dist/components/unit.js +1 -1
  446. package/dist/components/validators.js +4 -0
  447. package/dist/components/variant.js +1 -1
  448. package/dist/components/width.js +1 -1
  449. package/dist/esm/{Heading-0teSdkFq.js → Heading-BSa6BQTS.js} +1 -1
  450. package/dist/esm/{align-DsFuqEf5.js → align-CR9s255S.js} +1 -1
  451. package/dist/esm/{api-B9mpTRGa.js → api-BNtfQTYQ.js} +15 -15
  452. package/dist/esm/{api-CvPkoAAG.js → api-DxF6-oIO.js} +6 -6
  453. package/dist/esm/{api-hAvZrw9X.js → api-qNAcP_o2.js} +29 -21
  454. package/dist/esm/{app-globals-Dff_iJYF.js → app-globals-BbKBH3UI.js} +2 -2
  455. package/dist/esm/{aria-labelledby-BRToXqsQ.js → aria-labelledby-CLehu03h.js} +2 -2
  456. package/dist/esm/{base-CsJWjTJl.js → base-B-_Cm8wH.js} +39 -31
  457. package/dist/esm/{base-Df1bwC8d.js → base-MxYtjOUP.js} +21 -14
  458. package/dist/esm/{base-COT79ELt.js → base-WHbY0uVC.js} +12 -12
  459. package/dist/esm/{base-7FEvBJ3L.js → base-wY3yC1z6.js} +14 -14
  460. package/dist/esm/{base-web-component-Bcoukts3.js → base-web-component-B0QkUucC.js} +32 -7
  461. package/dist/esm/{base-web-component-C1XSz7ML.js → base-web-component-CgbHhshr.js} +9 -9
  462. package/dist/esm/{base-web-component-cTyj95G-.js → base-web-component-D8x1WFVT.js} +14 -14
  463. package/dist/esm/{behavior-Zr6qAX7F.js → behavior-BqydGn0c.js} +5 -5
  464. package/dist/esm/{behavior-BlS6DO8T.js → behavior-DJY-AtON.js} +6 -5
  465. package/dist/esm/{behavior-BMW-_4Oy.js → behavior-DyHxeIOP.js} +4 -4
  466. package/dist/esm/{bootstrap-DTVsVq0w.js → bootstrap-ddeYryQr.js} +1 -1
  467. package/dist/esm/{color-9CMp_pOq.js → color-w3K7aUcU.js} +12 -2
  468. package/dist/esm/{component-DHl33p9J.js → component-BPRJ0qOM.js} +6 -6
  469. package/dist/esm/{component-DxddScWx.js → component-BQBWV-Dj.js} +7 -7
  470. package/dist/esm/{component-DzVHCXnG.js → component-B_u7M1gI.js} +1 -1
  471. package/dist/esm/{component-BkjWlzLc.js → component-Bk12rjp3.js} +6 -5
  472. package/dist/esm/{component-BmJGOcby.js → component-D1XWWFos.js} +10 -7
  473. package/dist/esm/{component-DeWynlzi.js → component-Dfgawulk.js} +2 -2
  474. package/dist/esm/{component-C_Te18y_.js → component-DsvRA1H3.js} +3 -3
  475. package/dist/esm/{component-Ik_-HAMT.js → component-PLZiII08.js} +22 -10
  476. package/dist/esm/{component-CySyXSru.js → component-TFkvNo8L.js} +7 -2
  477. package/dist/esm/{component-DqHI-AwD.js → component-k7qmCOq7.js} +2 -2
  478. package/dist/esm/{component-names-Dhbtt0mX.js → component-names-CrfBV37S.js} +0 -2
  479. package/dist/esm/{component-C9mkZ63L.js → component-u7CHIDOX.js} +1 -1
  480. package/dist/esm/{contrast-BK5uVXeb.js → contrast-Dtg34nol.js} +1 -1
  481. package/dist/esm/{controller-Bf-CAo4Q.js → controller-DL8n64W5.js} +14 -14
  482. package/dist/esm/{dev.utils-BgjegQC8.js → dev.utils-Cl2Ehgvu.js} +1 -1
  483. package/dist/esm/{devtools-4nOArEGl.js → devtools-BkgDF9Wk.js} +2 -2
  484. package/dist/esm/{disabled-BaPgTuFO.js → disabled-DU4BpeNO.js} +1 -1
  485. package/dist/esm/{element-focus-Cp994Rrk.js → element-focus-BIRmGg5W.js} +24 -1
  486. package/dist/esm/{element-interaction-Cy9tx3Sx.js → element-interaction-sGYdEpmv.js} +1 -1
  487. package/dist/esm/{field-control-Brx62dJV.js → field-control-CQRYx4SF.js} +6 -6
  488. package/dist/esm/{group-Ce5pMiZJ.js → group-D3knBA42.js} +4 -4
  489. package/dist/esm/{has-closer-C9L79ect.js → has-closer-W6jQEQkV.js} +1 -1
  490. package/dist/esm/href-DzETOAed.js +8 -0
  491. package/dist/esm/{index-D5UV99lE.js → index-DqqSYO-1.js} +1 -5
  492. package/dist/esm/index.js +3 -3
  493. package/dist/esm/{input-DjQorwQ5.js → input-BBxRsjm-.js} +3 -3
  494. package/dist/esm/{input-container-RSmfcRgK.js → input-container-DrzJi_0x.js} +6 -6
  495. package/dist/esm/{item-Bfk2xd-D.js → item-CJvb0vTK.js} +11 -11
  496. package/dist/esm/{item-2cprk9ut.js → item-CYZtLav7.js} +6 -6
  497. package/dist/esm/{item-DMWn_IlJ.js → item-CuotjQUP.js} +5 -5
  498. package/dist/esm/{item-D9_O5WAR.js → item-DQR44mQ_.js} +16 -25
  499. package/dist/esm/kol-abbr.entry.js +11 -9
  500. package/dist/esm/kol-accordion.entry.js +19 -17
  501. package/dist/esm/kol-alert.entry.js +25 -23
  502. package/dist/esm/kol-avatar.entry.js +19 -14
  503. package/dist/esm/kol-badge.entry.js +31 -28
  504. package/dist/esm/kol-breadcrumb.entry.js +29 -27
  505. package/dist/esm/kol-button-link.entry.js +42 -28
  506. package/dist/esm/kol-button.entry.js +43 -28
  507. package/dist/esm/kol-card.entry.js +37 -33
  508. package/dist/esm/kol-click-button.entry.js +12 -10
  509. package/dist/esm/kol-combobox.entry.js +59 -47
  510. package/dist/esm/kol-details.entry.js +19 -17
  511. package/dist/esm/kol-dialog.entry.js +31 -29
  512. package/dist/esm/kol-drawer.entry.js +35 -31
  513. package/dist/esm/kol-form.entry.js +26 -23
  514. package/dist/esm/kol-heading.entry.js +17 -11
  515. package/dist/esm/kol-icon.entry.js +11 -9
  516. package/dist/esm/kol-image.entry.js +10 -6
  517. package/dist/esm/kol-input-checkbox.entry.js +50 -39
  518. package/dist/esm/kol-input-color.entry.js +55 -47
  519. package/dist/esm/kol-input-date.entry.js +73 -44
  520. package/dist/esm/kol-input-email.entry.js +63 -46
  521. package/dist/esm/kol-input-file.entry.js +53 -40
  522. package/dist/esm/kol-input-number.entry.js +63 -45
  523. package/dist/esm/kol-input-password.entry.js +64 -44
  524. package/dist/esm/kol-input-radio.entry.js +48 -39
  525. package/dist/esm/kol-input-range.entry.js +55 -41
  526. package/dist/esm/kol-input-text.entry.js +68 -46
  527. package/dist/esm/kol-kolibri.entry.js +6 -6
  528. package/dist/esm/kol-link-button.entry.js +36 -23
  529. package/dist/esm/kol-link.entry.js +36 -23
  530. package/dist/esm/kol-meter.entry.js +29 -17
  531. package/dist/esm/kol-modal.entry.js +31 -29
  532. package/dist/esm/kol-nav.entry.js +37 -35
  533. package/dist/esm/kol-pagination.entry.js +45 -41
  534. package/dist/esm/kol-popover-button.entry.js +40 -29
  535. package/dist/esm/kol-progress.entry.js +20 -11
  536. package/dist/esm/kol-quote.entry.js +16 -14
  537. package/dist/esm/kol-select.entry.js +53 -39
  538. package/dist/esm/kol-single-select.entry.js +58 -47
  539. package/dist/esm/kol-skeleton.entry.js +8 -8
  540. package/dist/esm/kol-skip-nav.entry.js +28 -26
  541. package/dist/esm/kol-spin.entry.js +15 -10
  542. package/dist/esm/kol-split-button.entry.js +45 -31
  543. package/dist/esm/kol-table-stateful.entry.js +65 -53
  544. package/dist/esm/kol-table-stateless.entry.js +51 -40
  545. package/dist/esm/kol-tabs.entry.js +31 -27
  546. package/dist/esm/kol-textarea.entry.js +59 -43
  547. package/dist/esm/kol-toast-container.entry.js +13 -14
  548. package/dist/esm/kol-toolbar.entry.js +35 -32
  549. package/dist/esm/kol-tree-item.entry.js +30 -26
  550. package/dist/esm/kol-tree.entry.js +12 -10
  551. package/dist/esm/kol-version.entry.js +17 -16
  552. package/dist/esm/kolibri.js +4 -4
  553. package/dist/esm/{isArray-CcrBs4JM.js → label-CJRIAbnc.js} +55 -1
  554. package/dist/esm/label-CPjIrpB0.js +12 -0
  555. package/dist/esm/label-hints-CGyBuIY6.js +20 -0
  556. package/dist/esm/label-lang-segment-c3GyH-Op.js +12 -0
  557. package/dist/esm/label-with-expert-slot-89Cj-cq-.js +12 -0
  558. package/dist/esm/{level-Df663c7y.js → level-JSbGeBz9.js} +1 -1
  559. package/dist/esm/{link-target-C7_smSbV.js → link-target-aw_DcyX2.js} +1 -1
  560. package/dist/esm/{links-B0xbzBwU.js → links-C0RerkBI.js} +1 -1
  561. package/dist/esm/loader.js +4 -4
  562. package/dist/esm/{multiple-CYHm7rd3.js → multiple-DMz1NE8m.js} +1 -1
  563. package/dist/esm/{name-m3owaZxH.js → name-CWVb8Q5W.js} +1 -1
  564. package/dist/esm/{number-value-CMedWR58.js → number-value-Bm0uVl62.js} +1 -1
  565. package/dist/esm/{open-DCGNTmvC.js → open-CnguVIAX.js} +1 -1
  566. package/dist/esm/{options-CR431ims.js → options-DK9U0D2y.js} +1 -1
  567. package/dist/esm/{orientation-C9FRNmPD.js → orientation-T7LcUCDT.js} +1 -1
  568. package/dist/esm/{placeholder-Bwzvbwhh.js → placeholder-C1LF_luk.js} +1 -1
  569. package/dist/esm/{read-only-C5fDsZVK.js → read-only-DLntjWLi.js} +1 -1
  570. package/dist/esm/{required-CC0212MQ.js → required-CySt8O-6.js} +1 -1
  571. package/dist/esm/{resolve-props-CnHCiXuG.js → resolve-props-CECEyL7n.js} +7 -7
  572. package/dist/esm/{resolve-props-47S-r31C.js → resolve-props-bPGYbQje.js} +7 -7
  573. package/dist/esm/rows-D2i8Qw0_.js +8 -0
  574. package/dist/esm/{scroll-lock-DQGTnLvW.js → scroll-lock-BJ_1AYBl.js} +1 -1
  575. package/dist/esm/{smart-button-BHM06d-t.js → smart-button-BARe7Uqb.js} +1 -1
  576. package/dist/esm/{spell-check-DiSedaOR.js → spell-check-dMfm8ESK.js} +1 -1
  577. package/dist/esm/{src-CsLEg--w.js → src-evXzPKgX.js} +1 -1
  578. package/dist/esm/{step-BxSThOke.js → step-BHPlkf18.js} +1 -1
  579. package/dist/esm/{suggestions-B79TOsF_.js → suggestions-8D7aWSYG.js} +1 -1
  580. package/dist/esm/{suggestions-C38q-5JU.js → suggestions-D0ShCnWU.js} +3 -3
  581. package/dist/esm/test-component.entry.js +1 -1
  582. package/dist/esm/{toggle-handler-CQ0FhBmD.js → toggle-handler-WD9E4u31.js} +10 -10
  583. package/dist/esm/{unique-nav-labels-Bh3w7dCH.js → unique-nav-labels-B5lSg8F6.js} +7 -4
  584. package/dist/esm/{unit-BgjPEae-.js → unit-B_lrrs5g.js} +1 -1
  585. package/dist/esm/validators-C9J6nOXq.js +11 -0
  586. package/dist/esm/{value-string-BDfywbme.js → value-string-Bg_YNL53.js} +1 -1
  587. package/dist/esm/{variant-PJN56KWi.js → variant-DL7TMWWF.js} +3 -5
  588. package/dist/esm/{width-CAS8lhOU.js → width-DGMj8F25.js} +5 -2
  589. package/dist/kolibri/{Heading-0teSdkFq.js → Heading-BSa6BQTS.js} +1 -1
  590. package/dist/kolibri/{align-DsFuqEf5.js → align-CR9s255S.js} +1 -1
  591. package/dist/kolibri/api-BNtfQTYQ.js +4 -0
  592. package/dist/kolibri/api-DxF6-oIO.js +4 -0
  593. package/dist/kolibri/api-qNAcP_o2.js +4 -0
  594. package/dist/kolibri/app-globals-BbKBH3UI.js +4 -0
  595. package/dist/kolibri/aria-labelledby-CLehu03h.js +4 -0
  596. package/dist/kolibri/base-B-_Cm8wH.js +4 -0
  597. package/dist/kolibri/base-MxYtjOUP.js +4 -0
  598. package/dist/kolibri/base-WHbY0uVC.js +4 -0
  599. package/dist/kolibri/base-wY3yC1z6.js +4 -0
  600. package/dist/kolibri/base-web-component-B0QkUucC.js +4 -0
  601. package/dist/kolibri/{base-web-component-C1XSz7ML.js → base-web-component-CgbHhshr.js} +1 -1
  602. package/dist/kolibri/{base-web-component-cTyj95G-.js → base-web-component-D8x1WFVT.js} +1 -1
  603. package/dist/kolibri/{behavior-Zr6qAX7F.js → behavior-BqydGn0c.js} +1 -1
  604. package/dist/kolibri/behavior-DJY-AtON.js +4 -0
  605. package/dist/kolibri/behavior-DyHxeIOP.js +4 -0
  606. package/dist/kolibri/bootstrap-ddeYryQr.js +4 -0
  607. package/dist/kolibri/color-w3K7aUcU.js +4 -0
  608. package/dist/kolibri/{component-DHl33p9J.js → component-BPRJ0qOM.js} +1 -1
  609. package/dist/kolibri/component-BQBWV-Dj.js +4 -0
  610. package/dist/kolibri/{component-DzVHCXnG.js → component-B_u7M1gI.js} +1 -1
  611. package/dist/kolibri/component-Bk12rjp3.js +4 -0
  612. package/dist/kolibri/component-D1XWWFos.js +4 -0
  613. package/dist/kolibri/component-Dfgawulk.js +4 -0
  614. package/dist/kolibri/{component-C_Te18y_.js → component-DsvRA1H3.js} +1 -1
  615. package/dist/kolibri/component-PLZiII08.js +4 -0
  616. package/dist/kolibri/component-TFkvNo8L.js +4 -0
  617. package/dist/kolibri/{component-DqHI-AwD.js → component-k7qmCOq7.js} +1 -1
  618. package/dist/kolibri/{component-names-Dhbtt0mX.js → component-names-CrfBV37S.js} +1 -1
  619. package/dist/kolibri/{component-C9mkZ63L.js → component-u7CHIDOX.js} +1 -1
  620. package/dist/kolibri/contrast-Dtg34nol.js +4 -0
  621. package/dist/kolibri/controller-DL8n64W5.js +4 -0
  622. package/dist/kolibri/{dev.utils-BgjegQC8.js → dev.utils-Cl2Ehgvu.js} +1 -1
  623. package/dist/kolibri/{devtools-4nOArEGl.js → devtools-BkgDF9Wk.js} +1 -1
  624. package/dist/kolibri/disabled-DU4BpeNO.js +4 -0
  625. package/dist/kolibri/element-focus-BIRmGg5W.js +4 -0
  626. package/dist/kolibri/{element-interaction-Cy9tx3Sx.js → element-interaction-sGYdEpmv.js} +1 -1
  627. package/dist/kolibri/field-control-CQRYx4SF.js +4 -0
  628. package/dist/kolibri/{group-Ce5pMiZJ.js → group-D3knBA42.js} +1 -1
  629. package/dist/kolibri/has-closer-W6jQEQkV.js +4 -0
  630. package/dist/kolibri/href-DzETOAed.js +4 -0
  631. package/dist/kolibri/index-DqqSYO-1.js +6 -0
  632. package/dist/kolibri/index.esm.js +1 -1
  633. package/dist/kolibri/input-BBxRsjm-.js +4 -0
  634. package/dist/kolibri/input-container-DrzJi_0x.js +4 -0
  635. package/dist/kolibri/item-CJvb0vTK.js +4 -0
  636. package/dist/kolibri/item-CYZtLav7.js +4 -0
  637. package/dist/kolibri/item-CuotjQUP.js +4 -0
  638. package/dist/kolibri/item-DQR44mQ_.js +4 -0
  639. package/dist/kolibri/kol-abbr.entry.js +1 -1
  640. package/dist/kolibri/kol-accordion.entry.js +1 -1
  641. package/dist/kolibri/kol-alert.entry.js +1 -1
  642. package/dist/kolibri/kol-avatar.entry.js +1 -1
  643. package/dist/kolibri/kol-badge.entry.js +1 -1
  644. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  645. package/dist/kolibri/kol-button-link.entry.js +1 -1
  646. package/dist/kolibri/kol-button.entry.js +1 -1
  647. package/dist/kolibri/kol-card.entry.js +1 -1
  648. package/dist/kolibri/kol-click-button.entry.js +1 -1
  649. package/dist/kolibri/kol-combobox.entry.js +1 -1
  650. package/dist/kolibri/kol-details.entry.js +1 -1
  651. package/dist/kolibri/kol-dialog.entry.js +1 -1
  652. package/dist/kolibri/kol-drawer.entry.js +1 -1
  653. package/dist/kolibri/kol-form.entry.js +1 -1
  654. package/dist/kolibri/kol-heading.entry.js +1 -1
  655. package/dist/kolibri/kol-icon.entry.js +1 -1
  656. package/dist/kolibri/kol-image.entry.js +1 -1
  657. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  658. package/dist/kolibri/kol-input-color.entry.js +1 -1
  659. package/dist/kolibri/kol-input-date.entry.js +1 -1
  660. package/dist/kolibri/kol-input-email.entry.js +1 -1
  661. package/dist/kolibri/kol-input-file.entry.js +1 -1
  662. package/dist/kolibri/kol-input-number.entry.js +1 -1
  663. package/dist/kolibri/kol-input-password.entry.js +1 -1
  664. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  665. package/dist/kolibri/kol-input-range.entry.js +1 -1
  666. package/dist/kolibri/kol-input-text.entry.js +1 -1
  667. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  668. package/dist/kolibri/kol-link-button.entry.js +1 -1
  669. package/dist/kolibri/kol-link.entry.js +1 -1
  670. package/dist/kolibri/kol-meter.entry.js +1 -1
  671. package/dist/kolibri/kol-modal.entry.js +1 -1
  672. package/dist/kolibri/kol-nav.entry.js +1 -1
  673. package/dist/kolibri/kol-pagination.entry.js +1 -1
  674. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  675. package/dist/kolibri/kol-progress.entry.js +1 -1
  676. package/dist/kolibri/kol-quote.entry.js +1 -1
  677. package/dist/kolibri/kol-select.entry.js +1 -1
  678. package/dist/kolibri/kol-single-select.entry.js +1 -1
  679. package/dist/kolibri/kol-skeleton.entry.js +1 -1
  680. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  681. package/dist/kolibri/kol-spin.entry.js +1 -1
  682. package/dist/kolibri/kol-split-button.entry.js +1 -1
  683. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  684. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  685. package/dist/kolibri/kol-tabs.entry.js +1 -1
  686. package/dist/kolibri/kol-textarea.entry.js +1 -1
  687. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  688. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  689. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  690. package/dist/kolibri/kol-tree.entry.js +1 -1
  691. package/dist/kolibri/kol-version.entry.js +1 -1
  692. package/dist/kolibri/kolibri.esm.js +1 -1
  693. package/dist/kolibri/label-CJRIAbnc.js +4 -0
  694. package/dist/kolibri/label-CPjIrpB0.js +4 -0
  695. package/dist/kolibri/label-hints-CGyBuIY6.js +4 -0
  696. package/dist/kolibri/label-lang-segment-c3GyH-Op.js +4 -0
  697. package/dist/kolibri/label-with-expert-slot-89Cj-cq-.js +4 -0
  698. package/dist/kolibri/level-JSbGeBz9.js +4 -0
  699. package/dist/kolibri/link-target-aw_DcyX2.js +4 -0
  700. package/dist/kolibri/links-C0RerkBI.js +4 -0
  701. package/dist/kolibri/multiple-DMz1NE8m.js +4 -0
  702. package/dist/kolibri/name-CWVb8Q5W.js +4 -0
  703. package/dist/kolibri/number-value-Bm0uVl62.js +4 -0
  704. package/dist/kolibri/open-CnguVIAX.js +4 -0
  705. package/dist/kolibri/{options-CR431ims.js → options-DK9U0D2y.js} +1 -1
  706. package/dist/kolibri/{orientation-C9FRNmPD.js → orientation-T7LcUCDT.js} +1 -1
  707. package/dist/kolibri/placeholder-C1LF_luk.js +4 -0
  708. package/dist/kolibri/read-only-DLntjWLi.js +4 -0
  709. package/dist/kolibri/required-CySt8O-6.js +4 -0
  710. package/dist/kolibri/resolve-props-CECEyL7n.js +4 -0
  711. package/dist/kolibri/resolve-props-bPGYbQje.js +4 -0
  712. package/dist/kolibri/rows-D2i8Qw0_.js +4 -0
  713. package/dist/kolibri/{scroll-lock-DQGTnLvW.js → scroll-lock-BJ_1AYBl.js} +1 -1
  714. package/dist/kolibri/{smart-button-BHM06d-t.js → smart-button-BARe7Uqb.js} +1 -1
  715. package/dist/kolibri/spell-check-dMfm8ESK.js +4 -0
  716. package/dist/kolibri/src-evXzPKgX.js +4 -0
  717. package/dist/kolibri/step-BHPlkf18.js +4 -0
  718. package/dist/kolibri/suggestions-8D7aWSYG.js +4 -0
  719. package/dist/kolibri/suggestions-D0ShCnWU.js +4 -0
  720. package/dist/kolibri/test-component.entry.js +1 -1
  721. package/dist/kolibri/toggle-handler-WD9E4u31.js +4 -0
  722. package/dist/kolibri/unique-nav-labels-B5lSg8F6.js +4 -0
  723. package/dist/kolibri/unit-B_lrrs5g.js +4 -0
  724. package/dist/kolibri/validators-C9J6nOXq.js +4 -0
  725. package/dist/kolibri/value-string-Bg_YNL53.js +4 -0
  726. package/dist/kolibri/variant-DL7TMWWF.js +4 -0
  727. package/dist/kolibri/width-DGMj8F25.js +4 -0
  728. package/dist/types/components/_skeleton/public-api/contract.d.ts +1 -6
  729. package/dist/types/components/_skeleton/web-components/click-button/component.d.ts +3 -3
  730. package/dist/types/components/_skeleton/web-components/skeleton/component.d.ts +3 -3
  731. package/dist/types/components/abbr/component.d.ts +3 -3
  732. package/dist/types/components/accordion/component.d.ts +7 -7
  733. package/dist/types/components/alert/component.d.ts +7 -7
  734. package/dist/types/components/avatar/component.d.ts +5 -5
  735. package/dist/types/components/badge/component.d.ts +3 -3
  736. package/dist/types/components/button/base.d.ts +6 -6
  737. package/dist/types/components/button/component.d.ts +13 -13
  738. package/dist/types/components/button-link/component.d.ts +11 -11
  739. package/dist/types/components/card/base.d.ts +3 -3
  740. package/dist/types/components/card/component.d.ts +5 -5
  741. package/dist/types/components/combobox/component.d.ts +21 -21
  742. package/dist/types/components/details/component.d.ts +7 -7
  743. package/dist/types/components/dialog/base.d.ts +3 -3
  744. package/dist/types/components/dialog/component.d.ts +5 -5
  745. package/dist/types/components/drawer/component.d.ts +5 -5
  746. package/dist/types/components/heading/component.d.ts +3 -3
  747. package/dist/types/components/icon/component.d.ts +3 -2
  748. package/dist/types/components/image/component.d.ts +9 -8
  749. package/dist/types/components/input-checkbox/component.d.ts +19 -19
  750. package/dist/types/components/input-color/component.d.ts +15 -16
  751. package/dist/types/components/input-date/component.d.ts +17 -17
  752. package/dist/types/components/input-email/component.d.ts +29 -29
  753. package/dist/types/components/input-file/component.d.ts +16 -16
  754. package/dist/types/components/input-number/component.d.ts +19 -19
  755. package/dist/types/components/input-password/component.d.ts +28 -27
  756. package/dist/types/components/input-radio/component.d.ts +13 -13
  757. package/dist/types/components/input-range/component.d.ts +13 -13
  758. package/dist/types/components/input-text/component.d.ts +26 -25
  759. package/dist/types/components/kolibri/component.d.ts +3 -3
  760. package/dist/types/components/link/base.d.ts +5 -5
  761. package/dist/types/components/link/component.d.ts +9 -9
  762. package/dist/types/components/link-button/component.d.ts +7 -7
  763. package/dist/types/components/meter/component.d.ts +17 -16
  764. package/dist/types/components/modal/component.d.ts +5 -5
  765. package/dist/types/components/nav/component.d.ts +7 -7
  766. package/dist/types/components/pagination/component.d.ts +8 -8
  767. package/dist/types/components/popover-button/component.d.ts +9 -9
  768. package/dist/types/components/progress/component.d.ts +9 -8
  769. package/dist/types/components/quote/component.d.ts +7 -6
  770. package/dist/types/components/select/component.d.ts +19 -19
  771. package/dist/types/components/single-select/component.d.ts +19 -19
  772. package/dist/types/components/spin/component.d.ts +5 -4
  773. package/dist/types/components/split-button/component.d.ts +13 -13
  774. package/dist/types/components/table-stateful/component.d.ts +9 -9
  775. package/dist/types/components/table-stateless/base.d.ts +4 -3
  776. package/dist/types/components/table-stateless/component.d.ts +5 -5
  777. package/dist/types/components/tabs/component.d.ts +3 -3
  778. package/dist/types/components/textarea/component.d.ts +27 -27
  779. package/dist/types/components/toolbar/component.d.ts +3 -3
  780. package/dist/types/components/tree-item/component.d.ts +3 -3
  781. package/dist/types/components.d.ts +1350 -973
  782. package/dist/types/core/component-names.d.ts +0 -1
  783. package/dist/types/core/i18n.d.ts +1 -1
  784. package/dist/types/e2e/input-behavior-contract.d.ts +0 -1
  785. package/dist/types/functional-components/index.d.ts +0 -1
  786. package/dist/types/internal/functional-components/abbr/api.d.ts +1 -1
  787. package/dist/types/internal/functional-components/alert/api.d.ts +1 -1
  788. package/dist/types/internal/functional-components/avatar/api.d.ts +1 -1
  789. package/dist/types/internal/functional-components/badge/api.d.ts +4 -4
  790. package/dist/types/internal/functional-components/base-web-component.d.ts +2 -0
  791. package/dist/types/internal/functional-components/breadcrumb/api.d.ts +1 -1
  792. package/dist/types/internal/functional-components/button/api.d.ts +2 -2
  793. package/dist/types/internal/functional-components/card/api.d.ts +2 -2
  794. package/dist/types/internal/functional-components/collapsible/api.d.ts +2 -2
  795. package/dist/types/internal/functional-components/combobox/api.d.ts +4 -4
  796. package/dist/types/internal/functional-components/counter/api.d.ts +1 -1
  797. package/dist/types/internal/functional-components/dialog/api.d.ts +2 -2
  798. package/dist/types/internal/functional-components/dialog/item.d.ts +2 -2
  799. package/dist/types/internal/functional-components/drawer/api.d.ts +2 -2
  800. package/dist/types/internal/functional-components/form/api.d.ts +1 -1
  801. package/dist/types/internal/functional-components/form-association/api.d.ts +1 -1
  802. package/dist/types/internal/functional-components/form-association/behavior.d.ts +0 -1
  803. package/dist/types/internal/functional-components/form-field/api.d.ts +3 -3
  804. package/dist/types/internal/functional-components/form-field/base-web-component.d.ts +2 -0
  805. package/dist/types/internal/functional-components/form-field/component.d.ts +2 -2
  806. package/dist/types/internal/functional-components/form-field/default-input-props.d.ts +4 -3
  807. package/dist/types/internal/functional-components/form-field/field-control.d.ts +2 -2
  808. package/dist/types/internal/functional-components/form-field/label.d.ts +2 -1
  809. package/dist/types/internal/functional-components/generic-types.d.ts +2 -2
  810. package/dist/types/internal/functional-components/heading/api.d.ts +2 -2
  811. package/dist/types/internal/functional-components/icon/api.d.ts +1 -1
  812. package/dist/types/internal/functional-components/image/api.d.ts +2 -2
  813. package/dist/types/internal/functional-components/input-checkbox/api.d.ts +3 -3
  814. package/dist/types/internal/functional-components/input-color/api.d.ts +6 -6
  815. package/dist/types/internal/functional-components/input-date/api.d.ts +6 -6
  816. package/dist/types/internal/functional-components/input-email/api.d.ts +6 -6
  817. package/dist/types/internal/functional-components/input-file/api.d.ts +6 -6
  818. package/dist/types/internal/functional-components/input-number/api.d.ts +6 -6
  819. package/dist/types/internal/functional-components/input-password/api.d.ts +6 -6
  820. package/dist/types/internal/functional-components/input-radio/api.d.ts +3 -3
  821. package/dist/types/internal/functional-components/input-range/api.d.ts +4 -4
  822. package/dist/types/internal/functional-components/input-text/api.d.ts +6 -6
  823. package/dist/types/internal/functional-components/kolibri/api.d.ts +1 -1
  824. package/dist/types/internal/functional-components/link/api.d.ts +2 -2
  825. package/dist/types/internal/functional-components/link/item.d.ts +2 -1
  826. package/dist/types/internal/functional-components/meter/api.d.ts +11 -2
  827. package/dist/types/internal/functional-components/meter/component.test.d.ts +1 -0
  828. package/dist/types/internal/functional-components/nav/api.d.ts +2 -2
  829. package/dist/types/internal/functional-components/pagination/api.d.ts +2 -2
  830. package/dist/types/internal/functional-components/pagination/component.d.ts +1 -1
  831. package/dist/types/internal/functional-components/pagination/item.d.ts +3 -3
  832. package/dist/types/internal/functional-components/popover-button/api.d.ts +2 -2
  833. package/dist/types/internal/functional-components/progress/api.d.ts +11 -2
  834. package/dist/types/internal/functional-components/quote/api.d.ts +2 -2
  835. package/dist/types/internal/functional-components/select/api.d.ts +4 -4
  836. package/dist/types/internal/functional-components/single-select/api.d.ts +4 -4
  837. package/dist/types/internal/functional-components/skeleton/api.d.ts +1 -1
  838. package/dist/types/internal/functional-components/skip-nav/api.d.ts +1 -1
  839. package/dist/types/internal/functional-components/span/api.d.ts +2 -2
  840. package/dist/types/internal/functional-components/span/component.d.ts +2 -1
  841. package/dist/types/internal/functional-components/spin/api.d.ts +1 -1
  842. package/dist/types/internal/functional-components/table-stateful/api.d.ts +2 -2
  843. package/dist/types/internal/functional-components/table-stateless/api.d.ts +2 -2
  844. package/dist/types/internal/functional-components/table-stateless/component.d.ts +1 -0
  845. package/dist/types/internal/functional-components/table-stateless/table-model.d.ts +0 -3
  846. package/dist/types/internal/functional-components/tabs/api.d.ts +2 -2
  847. package/dist/types/internal/functional-components/text-input/api.d.ts +6 -6
  848. package/dist/types/internal/functional-components/textarea/api.d.ts +4 -4
  849. package/dist/types/internal/functional-components/toolbar/api.d.ts +2 -2
  850. package/dist/types/internal/functional-components/tooltip/api.d.ts +2 -2
  851. package/dist/types/internal/functional-components/tooltip/behavior.d.ts +2 -1
  852. package/dist/types/internal/functional-components/tree/api.d.ts +1 -1
  853. package/dist/types/internal/functional-components/tree-item/api.d.ts +2 -2
  854. package/dist/types/internal/props/accept.d.ts +2 -1
  855. package/dist/types/internal/props/access-key.d.ts +3 -2
  856. package/dist/types/internal/props/active.d.ts +3 -2
  857. package/dist/types/internal/props/adjust-height.d.ts +3 -2
  858. package/dist/types/internal/props/alert-callbacks.d.ts +1 -3
  859. package/dist/types/internal/props/alert-type.d.ts +1 -1
  860. package/dist/types/internal/props/alert-variant.d.ts +1 -1
  861. package/dist/types/internal/props/alert.d.ts +3 -2
  862. package/dist/types/internal/props/allow-markdown.d.ts +3 -2
  863. package/dist/types/internal/props/allow-multi-sort.d.ts +3 -2
  864. package/dist/types/internal/props/alt.d.ts +3 -2
  865. package/dist/types/internal/props/aria-controls.d.ts +3 -2
  866. package/dist/types/internal/props/aria-current-value.d.ts +1 -1
  867. package/dist/types/internal/props/aria-description.d.ts +3 -2
  868. package/dist/types/internal/props/aria-details.d.ts +3 -2
  869. package/dist/types/internal/props/aria-expanded.d.ts +1 -1
  870. package/dist/types/internal/props/aria-has-popup.d.ts +1 -1
  871. package/dist/types/internal/props/aria-owns.d.ts +3 -2
  872. package/dist/types/internal/props/aria-selected.d.ts +1 -1
  873. package/dist/types/internal/props/auto-complete.d.ts +1 -1
  874. package/dist/types/internal/props/badge-text.d.ts +3 -2
  875. package/dist/types/internal/props/boundary-count.d.ts +3 -2
  876. package/dist/types/internal/props/breadcrumb-links.d.ts +1 -4
  877. package/dist/types/internal/props/button-callbacks.d.ts +1 -3
  878. package/dist/types/internal/props/button-type.d.ts +1 -1
  879. package/dist/types/internal/props/card-callbacks.d.ts +1 -3
  880. package/dist/types/internal/props/checkbox-value.d.ts +1 -1
  881. package/dist/types/internal/props/checked.d.ts +3 -2
  882. package/dist/types/internal/props/collapsible-callbacks.d.ts +1 -3
  883. package/dist/types/internal/props/collapsible.d.ts +3 -2
  884. package/dist/types/internal/props/color.d.ts +1 -1
  885. package/dist/types/internal/props/custom-class.d.ts +3 -2
  886. package/dist/types/internal/props/dialog-callbacks.d.ts +1 -1
  887. package/dist/types/internal/props/disabled.d.ts +3 -2
  888. package/dist/types/internal/props/download.d.ts +2 -1
  889. package/dist/types/internal/props/drawer-callbacks.d.ts +1 -1
  890. package/dist/types/internal/props/error-list.d.ts +1 -1
  891. package/dist/types/internal/props/fixed-cols.d.ts +1 -1
  892. package/dist/types/internal/props/form-callbacks.d.ts +1 -3
  893. package/dist/types/internal/props/has-clear-button.d.ts +3 -2
  894. package/dist/types/internal/props/has-closer.d.ts +3 -2
  895. package/dist/types/internal/props/has-compact-button.d.ts +3 -2
  896. package/dist/types/internal/props/has-counter.d.ts +3 -2
  897. package/dist/types/internal/props/has-create-button.d.ts +3 -2
  898. package/dist/types/internal/props/has-icons-when-expanded.d.ts +3 -2
  899. package/dist/types/internal/props/has-settings-menu.d.ts +3 -2
  900. package/dist/types/internal/props/helpers/factory.d.ts +13 -6
  901. package/dist/types/internal/props/helpers/normalizers.d.ts +2 -1
  902. package/dist/types/internal/props/helpers/validators.d.ts +4 -0
  903. package/dist/types/internal/props/hide-label.d.ts +3 -2
  904. package/dist/types/internal/props/hide-msg.d.ts +3 -2
  905. package/dist/types/internal/props/high.d.ts +3 -2
  906. package/dist/types/internal/props/hint.d.ts +3 -2
  907. package/dist/types/internal/props/hints/label-hints.d.ts +2 -1
  908. package/dist/types/internal/props/horizontal-icons.d.ts +1 -1
  909. package/dist/types/internal/props/href.d.ts +3 -3
  910. package/dist/types/internal/props/icons-input-checkbox.d.ts +1 -1
  911. package/dist/types/internal/props/icons.d.ts +1 -1
  912. package/dist/types/internal/props/id.d.ts +3 -2
  913. package/dist/types/internal/props/image-callbacks.d.ts +1 -3
  914. package/dist/types/internal/props/indeterminate.d.ts +3 -2
  915. package/dist/types/internal/props/index.d.ts +1 -1
  916. package/dist/types/internal/props/inline.d.ts +3 -2
  917. package/dist/types/internal/props/input-date-type.d.ts +1 -1
  918. package/dist/types/internal/props/input-text-type.d.ts +1 -1
  919. package/dist/types/internal/props/kolibri-color.d.ts +1 -1
  920. package/dist/types/internal/props/label-align.d.ts +1 -1
  921. package/dist/types/internal/props/label-lang-segment.d.ts +4 -0
  922. package/dist/types/internal/props/label-with-expert-slot.d.ts +3 -2
  923. package/dist/types/internal/props/label.d.ts +2 -1
  924. package/dist/types/internal/props/labeled.d.ts +3 -2
  925. package/dist/types/internal/props/level.d.ts +1 -1
  926. package/dist/types/internal/props/link-callbacks.d.ts +1 -3
  927. package/dist/types/internal/props/link-role.d.ts +1 -1
  928. package/dist/types/internal/props/link-target.d.ts +3 -2
  929. package/dist/types/internal/props/loading.d.ts +1 -1
  930. package/dist/types/internal/props/low.d.ts +3 -2
  931. package/dist/types/internal/props/max-length-behavior.d.ts +1 -1
  932. package/dist/types/internal/props/max-length.d.ts +2 -1
  933. package/dist/types/internal/props/max.d.ts +3 -2
  934. package/dist/types/internal/props/min.d.ts +3 -2
  935. package/dist/types/internal/props/multiple.d.ts +3 -2
  936. package/dist/types/internal/props/name.d.ts +3 -2
  937. package/dist/types/internal/props/nav-links.d.ts +1 -3
  938. package/dist/types/internal/props/open.d.ts +3 -2
  939. package/dist/types/internal/props/optimum.d.ts +3 -2
  940. package/dist/types/internal/props/options-with-optgroup.d.ts +1 -1
  941. package/dist/types/internal/props/orientation.d.ts +1 -1
  942. package/dist/types/internal/props/page-size-options.d.ts +1 -1
  943. package/dist/types/internal/props/page-size.d.ts +3 -2
  944. package/dist/types/internal/props/page.d.ts +3 -2
  945. package/dist/types/internal/props/pagination-callbacks.d.ts +1 -3
  946. package/dist/types/internal/props/pagination-has-buttons.d.ts +1 -1
  947. package/dist/types/internal/props/pagination-max.d.ts +3 -2
  948. package/dist/types/internal/props/pagination-position.d.ts +1 -1
  949. package/dist/types/internal/props/pattern.d.ts +2 -1
  950. package/dist/types/internal/props/placeholder.d.ts +2 -1
  951. package/dist/types/internal/props/quote.d.ts +3 -2
  952. package/dist/types/internal/props/radio-orientation.d.ts +1 -1
  953. package/dist/types/internal/props/radio-value.d.ts +1 -1
  954. package/dist/types/internal/props/read-only.d.ts +3 -2
  955. package/dist/types/internal/props/required-text.d.ts +1 -1
  956. package/dist/types/internal/props/required.d.ts +3 -2
  957. package/dist/types/internal/props/resize.d.ts +1 -1
  958. package/dist/types/internal/props/rows.d.ts +2 -1
  959. package/dist/types/internal/props/secondary-headline.d.ts +3 -2
  960. package/dist/types/internal/props/select-value.d.ts +1 -1
  961. package/dist/types/internal/props/selected.d.ts +3 -2
  962. package/dist/types/internal/props/short-key.d.ts +3 -2
  963. package/dist/types/internal/props/show.d.ts +3 -2
  964. package/dist/types/internal/props/sibling-count.d.ts +3 -2
  965. package/dist/types/internal/props/sizes.d.ts +3 -2
  966. package/dist/types/internal/props/skip-nav-links.d.ts +1 -3
  967. package/dist/types/internal/props/smart-button.d.ts +2 -2
  968. package/dist/types/internal/props/span-icons.d.ts +1 -1
  969. package/dist/types/internal/props/spell-check.d.ts +2 -1
  970. package/dist/types/internal/props/src.d.ts +3 -2
  971. package/dist/types/internal/props/srcset.d.ts +3 -2
  972. package/dist/types/internal/props/suggestions.d.ts +1 -1
  973. package/dist/types/internal/props/sync-value-by-selector.d.ts +2 -1
  974. package/dist/types/internal/props/tab-behavior.d.ts +1 -1
  975. package/dist/types/internal/props/tab-index.d.ts +3 -2
  976. package/dist/types/internal/props/table-data-foot.d.ts +1 -1
  977. package/dist/types/internal/props/table-data.d.ts +1 -1
  978. package/dist/types/internal/props/table-headers.d.ts +1 -1
  979. package/dist/types/internal/props/table-loading.d.ts +3 -2
  980. package/dist/types/internal/props/table-pagination.d.ts +1 -1
  981. package/dist/types/internal/props/table-selection.d.ts +1 -1
  982. package/dist/types/internal/props/table-stateful-headers.d.ts +1 -1
  983. package/dist/types/internal/props/tabs-callbacks.d.ts +1 -1
  984. package/dist/types/internal/props/tabs.d.ts +1 -1
  985. package/dist/types/internal/props/toolbar-items.d.ts +1 -1
  986. package/dist/types/internal/props/touched.d.ts +3 -2
  987. package/dist/types/internal/props/unit.d.ts +3 -2
  988. package/dist/types/internal/props/value-number-clamped.d.ts +4 -3
  989. package/dist/types/internal/props/value-string.d.ts +2 -1
  990. package/dist/types/internal/props/variant-dialog.d.ts +1 -1
  991. package/dist/types/internal/props/variant-input-checkbox.d.ts +1 -1
  992. package/dist/types/internal/props/variant-progress.d.ts +1 -1
  993. package/dist/types/internal/props/variant-quote.d.ts +1 -1
  994. package/dist/types/internal/props/variant-spin.d.ts +1 -1
  995. package/dist/types/internal/props/variant.d.ts +1 -1
  996. package/dist/types/internal/props/visibility-toggle.d.ts +3 -2
  997. package/dist/types/internal/props/width.d.ts +3 -2
  998. package/dist/types/schema/components/alert.d.ts +2 -2
  999. package/dist/types/schema/components/badge.d.ts +2 -2
  1000. package/dist/types/schema/components/breadcrumb.d.ts +2 -2
  1001. package/dist/types/schema/components/card.d.ts +2 -2
  1002. package/dist/types/schema/components/collapsible.d.ts +3 -3
  1003. package/dist/types/schema/components/dialog.d.ts +3 -3
  1004. package/dist/types/schema/components/drawer.d.ts +3 -3
  1005. package/dist/types/schema/components/split-button.d.ts +2 -2
  1006. package/dist/types/schema/components/table.d.ts +3 -3
  1007. package/dist/types/schema/components/tableStateless.d.ts +3 -3
  1008. package/dist/types/schema/components/tabs.d.ts +2 -2
  1009. package/dist/types/schema/components/tree-item.d.ts +2 -2
  1010. package/dist/types/schema/props/allow-markdown.d.ts +1 -0
  1011. package/dist/types/schema/props/aria-controls.d.ts +1 -2
  1012. package/dist/types/schema/props/boundary-count.d.ts +1 -0
  1013. package/dist/types/schema/props/has-clear-button.d.ts +1 -0
  1014. package/dist/types/schema/props/has-compact-button.d.ts +1 -2
  1015. package/dist/types/schema/props/high.d.ts +1 -0
  1016. package/dist/types/schema/props/index.d.ts +19 -0
  1017. package/dist/types/schema/props/label.d.ts +16 -2
  1018. package/dist/types/schema/props/labeled.d.ts +1 -0
  1019. package/dist/types/schema/props/low.d.ts +1 -0
  1020. package/dist/types/schema/props/min.d.ts +1 -0
  1021. package/dist/types/schema/props/optimum.d.ts +1 -0
  1022. package/dist/types/schema/props/page-size.d.ts +1 -0
  1023. package/dist/types/schema/props/page.d.ts +1 -0
  1024. package/dist/types/schema/props/secondary-headline.d.ts +1 -0
  1025. package/dist/types/schema/props/selected.d.ts +1 -0
  1026. package/dist/types/schema/props/sibling-count.d.ts +1 -0
  1027. package/dist/types/schema/props/sizes.d.ts +1 -0
  1028. package/dist/types/schema/props/src.d.ts +1 -0
  1029. package/dist/types/schema/props/srcset.d.ts +1 -0
  1030. package/dist/types/schema/props/table-loading.d.ts +1 -0
  1031. package/dist/types/schema/props/value-number-clamped.d.ts +1 -0
  1032. package/dist/types/schema/props/value-string.d.ts +1 -0
  1033. package/dist/types/schema/types/button-link-text.d.ts +4 -4
  1034. package/dist/types/utils/dev.utils.d.ts +0 -2
  1035. package/dist/types/utils/element-focus.d.ts +1 -0
  1036. package/dist/types/utils/element-interaction.d.ts +0 -1
  1037. package/dist/types/utils/element-themed.d.ts +1 -2
  1038. package/dist/types/utils/unique-nav-labels.d.ts +3 -2
  1039. package/doc/abbr.md +3 -3
  1040. package/doc/accordion.md +1 -1
  1041. package/doc/alert.md +1 -1
  1042. package/doc/badge.md +6 -6
  1043. package/doc/breadcrumb.md +4 -4
  1044. package/doc/button-link.md +1 -1
  1045. package/doc/button.md +1 -1
  1046. package/doc/card.md +1 -1
  1047. package/doc/combobox.md +23 -23
  1048. package/doc/details.md +1 -1
  1049. package/doc/dialog.md +1 -1
  1050. package/doc/drawer.md +1 -1
  1051. package/doc/heading.md +5 -5
  1052. package/doc/input-checkbox.md +1 -1
  1053. package/doc/input-color.md +22 -22
  1054. package/doc/input-date.md +28 -28
  1055. package/doc/input-email.md +30 -30
  1056. package/doc/input-file.md +22 -22
  1057. package/doc/input-number.md +28 -28
  1058. package/doc/input-password.md +29 -29
  1059. package/doc/input-radio.md +1 -1
  1060. package/doc/input-range.md +1 -1
  1061. package/doc/input-text.md +31 -31
  1062. package/doc/link-button.md +1 -1
  1063. package/doc/link.md +1 -1
  1064. package/doc/meter.md +1 -1
  1065. package/doc/modal.md +1 -1
  1066. package/doc/popover-button.md +18 -18
  1067. package/doc/progress.md +7 -7
  1068. package/doc/quote.md +6 -6
  1069. package/doc/select.md +24 -24
  1070. package/doc/single-select.md +1 -1
  1071. package/doc/split-button.md +1 -1
  1072. package/doc/table-stateful.md +1 -1
  1073. package/doc/table-stateless.md +1 -1
  1074. package/doc/textarea.md +1 -1
  1075. package/doc/tree-item.md +6 -6
  1076. package/package.json +5 -12
  1077. package/vscode-custom-data.json +20 -20
  1078. package/dist/cjs/component-kxdSa2S4.js +0 -36
  1079. package/dist/cjs/component-plNY-StC.js +0 -13
  1080. package/dist/cjs/href-B2aqb6-P.js +0 -12
  1081. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +0 -82
  1082. package/dist/cjs/label-DeUoiK6M.js +0 -39
  1083. package/dist/cjs/label-with-expert-slot-B1k6ppMF.js +0 -10
  1084. package/dist/collection/components/component-list.js +0 -105
  1085. package/dist/collection/components/heading/validation.js +0 -11
  1086. package/dist/collection/components/tooltip/component.js +0 -204
  1087. package/dist/collection/functional-components/Heading/index.js +0 -5
  1088. package/dist/collection/internal/props/hints/index.js +0 -4
  1089. package/dist/collection/internal/props/pagination-label.js +0 -6
  1090. package/dist/collection/schema/components/input.js +0 -4
  1091. package/dist/collection/schema/validators/window.js +0 -4
  1092. package/dist/components/component11.js +0 -4
  1093. package/dist/components/isArray.js +0 -4
  1094. package/dist/components/kol-tooltip-wc.d.ts +0 -11
  1095. package/dist/components/kol-tooltip-wc.js +0 -4
  1096. package/dist/esm/component-YhEwg1LK.js +0 -11
  1097. package/dist/esm/href-OaK1sDT5.js +0 -9
  1098. package/dist/esm/kol-tooltip-wc.entry.js +0 -80
  1099. package/dist/esm/label-BNtqGdMQ.js +0 -35
  1100. package/dist/esm/label-with-expert-slot-aAOUzLo3.js +0 -8
  1101. package/dist/esm/rows-CUHDEUm9.js +0 -8
  1102. package/dist/kolibri/api-B9mpTRGa.js +0 -4
  1103. package/dist/kolibri/api-CvPkoAAG.js +0 -4
  1104. package/dist/kolibri/api-hAvZrw9X.js +0 -4
  1105. package/dist/kolibri/app-globals-Dff_iJYF.js +0 -4
  1106. package/dist/kolibri/aria-labelledby-BRToXqsQ.js +0 -4
  1107. package/dist/kolibri/base-7FEvBJ3L.js +0 -4
  1108. package/dist/kolibri/base-COT79ELt.js +0 -4
  1109. package/dist/kolibri/base-CsJWjTJl.js +0 -4
  1110. package/dist/kolibri/base-Df1bwC8d.js +0 -4
  1111. package/dist/kolibri/base-web-component-Bcoukts3.js +0 -4
  1112. package/dist/kolibri/behavior-BMW-_4Oy.js +0 -4
  1113. package/dist/kolibri/behavior-BlS6DO8T.js +0 -4
  1114. package/dist/kolibri/bootstrap-DTVsVq0w.js +0 -4
  1115. package/dist/kolibri/color-9CMp_pOq.js +0 -4
  1116. package/dist/kolibri/component-BkjWlzLc.js +0 -4
  1117. package/dist/kolibri/component-BmJGOcby.js +0 -4
  1118. package/dist/kolibri/component-CySyXSru.js +0 -4
  1119. package/dist/kolibri/component-DeWynlzi.js +0 -4
  1120. package/dist/kolibri/component-DxddScWx.js +0 -4
  1121. package/dist/kolibri/component-Ik_-HAMT.js +0 -4
  1122. package/dist/kolibri/component-YhEwg1LK.js +0 -4
  1123. package/dist/kolibri/contrast-BK5uVXeb.js +0 -4
  1124. package/dist/kolibri/controller-Bf-CAo4Q.js +0 -4
  1125. package/dist/kolibri/disabled-BaPgTuFO.js +0 -4
  1126. package/dist/kolibri/element-focus-Cp994Rrk.js +0 -4
  1127. package/dist/kolibri/field-control-Brx62dJV.js +0 -4
  1128. package/dist/kolibri/has-closer-C9L79ect.js +0 -4
  1129. package/dist/kolibri/href-OaK1sDT5.js +0 -4
  1130. package/dist/kolibri/index-D5UV99lE.js +0 -6
  1131. package/dist/kolibri/input-DjQorwQ5.js +0 -4
  1132. package/dist/kolibri/input-container-RSmfcRgK.js +0 -4
  1133. package/dist/kolibri/isArray-CcrBs4JM.js +0 -4
  1134. package/dist/kolibri/item-2cprk9ut.js +0 -4
  1135. package/dist/kolibri/item-Bfk2xd-D.js +0 -4
  1136. package/dist/kolibri/item-D9_O5WAR.js +0 -4
  1137. package/dist/kolibri/item-DMWn_IlJ.js +0 -4
  1138. package/dist/kolibri/kol-tooltip-wc.entry.js +0 -4
  1139. package/dist/kolibri/label-BNtqGdMQ.js +0 -4
  1140. package/dist/kolibri/label-with-expert-slot-aAOUzLo3.js +0 -4
  1141. package/dist/kolibri/level-Df663c7y.js +0 -4
  1142. package/dist/kolibri/link-target-C7_smSbV.js +0 -4
  1143. package/dist/kolibri/links-B0xbzBwU.js +0 -4
  1144. package/dist/kolibri/multiple-CYHm7rd3.js +0 -4
  1145. package/dist/kolibri/name-m3owaZxH.js +0 -4
  1146. package/dist/kolibri/number-value-CMedWR58.js +0 -4
  1147. package/dist/kolibri/open-DCGNTmvC.js +0 -4
  1148. package/dist/kolibri/placeholder-Bwzvbwhh.js +0 -4
  1149. package/dist/kolibri/read-only-C5fDsZVK.js +0 -4
  1150. package/dist/kolibri/required-CC0212MQ.js +0 -4
  1151. package/dist/kolibri/resolve-props-47S-r31C.js +0 -4
  1152. package/dist/kolibri/resolve-props-CnHCiXuG.js +0 -4
  1153. package/dist/kolibri/rows-CUHDEUm9.js +0 -4
  1154. package/dist/kolibri/spell-check-DiSedaOR.js +0 -4
  1155. package/dist/kolibri/src-CsLEg--w.js +0 -4
  1156. package/dist/kolibri/step-BxSThOke.js +0 -4
  1157. package/dist/kolibri/suggestions-B79TOsF_.js +0 -4
  1158. package/dist/kolibri/suggestions-C38q-5JU.js +0 -4
  1159. package/dist/kolibri/toggle-handler-CQ0FhBmD.js +0 -4
  1160. package/dist/kolibri/unique-nav-labels-Bh3w7dCH.js +0 -4
  1161. package/dist/kolibri/unit-BgjPEae-.js +0 -4
  1162. package/dist/kolibri/value-string-BDfywbme.js +0 -4
  1163. package/dist/kolibri/variant-PJN56KWi.js +0 -4
  1164. package/dist/kolibri/width-CAS8lhOU.js +0 -4
  1165. package/dist/types/components/component-list.d.ts +0 -7
  1166. package/dist/types/components/heading/validation.d.ts +0 -3
  1167. package/dist/types/components/tooltip/component.d.ts +0 -19
  1168. package/dist/types/functional-components/Heading/index.d.ts +0 -2
  1169. package/dist/types/internal/props/hints/index.d.ts +0 -1
  1170. package/dist/types/internal/props/pagination-label.d.ts +0 -3
  1171. package/dist/types/schema/components/input.d.ts +0 -0
  1172. package/dist/types/schema/validators/window.d.ts +0 -0
@@ -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{X as a}from"./common.js";import{v as l}from"./access-and-short-key.js";import{h as s,g as r,I as c}from"./input-container.js";import{f as h,B as d,F as u}from"./base-web-component2.js";import{I as p}from"./input.js";import{i as m,a as k,b,g as f,r as _,p as g}from"./number-value.js";import{a as y,S as w}from"./suggestions2.js";import{I as v}from"./component4.js";import{a as x,d as j,v as B}from"./variant.js";import"./base-web-component.js";import{p as z}from"./placeholder.js";import{r as S}from"./read-only.js";import{r as O}from"./required.js";import{s as K}from"./smart-button.js";import{s as A}from"./step.js";import{s as T}from"./suggestions.js";import{c as V}from"./clsx.js";import{c as q}from"./dev.utils.js";import{c as C,d as I,a as M}from"./element-interaction.js";import{s as D}from"./controller.js";const L={required:[...h.required],optional:[...h.optional,x,y,s,m,k,b,z,S,O,j,K,A,T,B]},H="kol-input-number__step-button",P=t=>{var e;return!0===(null===(e=null==t?void 0:t.classList)||void 0===e?void 0:e.contains(H))},R=t(class extends d{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=q("input-number"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=C(),this.valueType="null",this.hasValue=!1,this._autoComplete="off",this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._readOnly=!1,this._required=!1,this._tooltipAlign="top",this._touched=!1,this.handleNumberInput=t=>{this._value=this.readInputValue(),this.handleInput(t,this._value)},this.handleNumberChange=t=>{const e=this.readInputValue();this.handleChange(t,e),this.hasValue=!!e},this.handleNumberFocus=t=>{P(t.relatedTarget)||this.handleFocus(t)},this.handleNumberBlur=t=>{P(t.relatedTarget)||this.handleBlur(t)},this.handleNumberKeyDown=t=>{this.handleKeyDown(t),D(t,{form:this.host,ref:this.ctaRef.el})},this.handleStepDown=t=>{this.step(t,"down")},this.handleStepUp=t=>{this.step(t,"up")},this.initFormAssociation("number",this._name)}watchAccessKey(t){x.apply(t,(t=>this.setRenderProp("accessKey",t))),l(t,this._shortKey)}watchAriaDetails(t){this.applyAriaDetails(t)}watchAutoComplete(t){y.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){s.apply(t,(t=>this.setRenderProp("icons",t)))}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMax(t){m.apply(t,(t=>this.setRenderProp("max",t)))}watchMin(t){k.apply(t,(t=>this.setRenderProp("min",t)))}watchMsg(t){this.applyMsg(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchPlaceholder(t){z.apply(t,(t=>this.setRenderProp("placeholder",t)))}watchReadOnly(t){S.apply(t,(t=>this.setRenderProp("readOnly",t)))}watchRequired(t){O.apply(t,(t=>this.setRenderProp("required",t)))}watchShortKey(t){j.apply(t,(t=>this.setRenderProp("shortKey",t))),l(this._accessKey,t)}watchSmartButton(t){null==t?this.unsetRenderProp("smartButton"):K.apply(t,(t=>this.setRenderProp("smartButton",t)))}watchSuggestions(t){T.apply(t,(t=>this.setRenderProp("suggestions",t)))}watchStep(t){A.apply(t,(t=>this.setRenderProp("step",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchValue(t){var e;b.apply(t,(t=>this.setRenderProp("value",t))),this.formAssociation.setFormAssociatedValue(null!==(e=this.getRenderProp("value"))&&void 0!==e?e:null),null!=t&&(this.valueType=f(t))}watchVariant(t){B.apply(t,(t=>this.setRenderProp("variant",t)))}async getValue(){return this.remapValue(this.getRenderProp("value"))}async focus(t){}async click(){}componentWillLoad(){this.initRenderProps(L),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.watchMax(this._max),this.watchMin(this._min),this.watchSuggestions(this._suggestions),this.watchPlaceholder(this._placeholder),this.watchReadOnly(this._readOnly),this.watchRequired(this._required),this.watchStep(this._step),this.watchValue(this._value),this.hasValue=!!this.getRenderProp("value")}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField()}remapValue(t){return _(t,this.valueType)}readInputValue(){var t;return this.remapValue(g(null===(t=this.ctaRef.el)||void 0===t?void 0:t.value))}step(t,e){var o,i,n;"up"===e?null===(o=this.ctaRef.el)||void 0===o||o.stepUp():null===(i=this.ctaRef.el)||void 0===i||i.stepDown(),this._value=this.readInputValue(),this.handleInput(t,this._value),this.handleChange(t,this._value),this.hasValue=!!this._value,null===(n=this.ctaRef.el)||void 0===n||n.focus()}renderStepButton(t){return this._disabled||this._readOnly||"hide"===a("inputNumberButtons",this.host)?null:e("button",{type:"button","aria-hidden":"true",tabIndex:-1,class:`${H} ${H}-${t} kol-input-container__smart-button`,"data-testid":"kol-input-number-step-"+t,onClick:"up"===t?this.handleStepUp:this.handleStepDown,disabled:this._disabled||this._readOnly},e(v,{icons:"up"===t?"kolicon-plus":"kolicon-minus",label:""}))}getInputProps(){var t,o,i,n;const a=this.id,l=this.getRenderProp("accessKey"),s=this.getRenderProp("placeholder"),r=this.getRenderProp("shortKey"),c=this.getRenderProp("suggestions"),{ariaDescribedBy:h,hasError:d}=this.getAria();return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({id:a,hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),disabled:this.getRenderProp("disabled"),name:this.getRenderProp("name")||void 0},l?{accessKey:l}:{}),{value:null!==(t=this.getRenderProp("value"))&&void 0!==t?t:null,required:this.getRenderProp("required")}),void 0!==s?{placeholder:s}:{}),{autoComplete:this.getRenderProp("autoComplete"),readonly:this.getRenderProp("readOnly"),min:null!==(o=this.getRenderProp("min"))&&void 0!==o?o:null,max:null!==(i=this.getRenderProp("max"))&&void 0!==i?i:null,step:null!==(n=this.getRenderProp("step"))&&void 0!==n?n:null,touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")}),r?{"aria-keyshortcuts":r}:{}),c.length>0?{suggestions:e(w,{id:a,suggestions:c})}:{}),{ref:this.ctaRef,type:"number",onBlur:this.handleNumberBlur,onChange:this.handleNumberChange,onClick:this.handleClick,onFocus:this.handleNumberFocus,onInput:this.handleNumberInput,onKeyDown:this.handleNumberKeyDown,ariaDescribedBy:h,"aria-invalid":d?"true":void 0})}render(){const t=this.getRenderProp("disabled"),{startAdornment:i,endAdornment:n}=r({icons:this.getRenderProp("icons"),smartButton:this.getSmartButtonFcProps(this.getRenderProp("smartButton"),t),startAdornment:this.renderStepButton("down"),endAdornment:this.renderStepButton("up")});return e(o,{key:"fe94ef26ac088b6c70282cce9f8316f60b8619a1"},e(u,Object.assign({key:"d3b7d3799320848da331bfca5a9cf5d3985019a6"},this.getFormFieldProps({class:V("kol-input-number","number",{"has-value":this.hasValue}),accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,variant:this.getRenderProp("variant"),required:this.getRenderProp("required"),readOnly:this.getRenderProp("readOnly")})),e(c,{key:"5e31fb7ecc013d3ebe7719d4f1313c62667f6caa",disabled:t,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:n},e(p,Object.assign({key:"51098e60535ac96fe6c14ceb828436ae967a2539"},this.getInputProps())))))}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}],_placeholder:[{watchPlaceholder:0}],_readOnly:[{watchReadOnly:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_suggestions:[{watchSuggestions:0}],_step:[{watchStep: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; } .kol-span .kol-span__label--hide-label .kol-span__label { display: none; } 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=1793002577585"); src: url("kolicons.eot?t=1793002577585#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1793002577585") format("woff2"), url("kolicons.woff?t=1793002577585") format("woff"), url("kolicons.ttf?t=1793002577585") format("truetype"), url("kolicons.svg?t=1793002577585#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 .kol-form-field .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-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-input-number input { appearance: textfield; text-align: right; } .kol-input-number input::-webkit-inner-spin-button { display: none; } }'}}},[545,"kol-input-number",{_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],_placeholder:[1],_readOnly:[4,"_read-only"],_required:[4],_shortKey:[1,"_short-key"],_smartButton:[1,"_smart-button"],_suggestions:[1],_step:[8],_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}],_placeholder:[{watchPlaceholder:0}],_readOnly:[{watchReadOnly:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_suggestions:[{watchSuggestions:0}],_step:[{watchStep:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]);n([I("ctaRef")],R.prototype,"focus",null),n([M("ctaRef")],R.prototype,"click",null);const G=R,F=function(){"undefined"!=typeof customElements&&["kol-input-number"].forEach((t=>{"kol-input-number"===t&&(customElements.get(i(t))||customElements.define(i(t),R))}))};export{G as KolInputNumber,F as defineCustomElement}
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{X as a}from"./common.js";import{v as l}from"./access-and-short-key.js";import{h as s,g as r,I as c}from"./input-container.js";import{f as h,B as d,F as u}from"./base-web-component2.js";import{I as m}from"./input.js";import{i as p,a as k,b,g as f,r as _,p as g}from"./number-value.js";import{a as y,S as w}from"./suggestions2.js";import{I as v}from"./component4.js";import{a as x,d as j,v as B}from"./variant.js";import"./base-web-component.js";import{p as z}from"./placeholder.js";import{r as S}from"./read-only.js";import{r as O}from"./required.js";import{s as K}from"./smart-button.js";import{s as A}from"./step.js";import{s as T}from"./suggestions.js";import{c as V}from"./clsx.js";import{c as q}from"./dev.utils.js";import{c as C,d as I,a as M}from"./element-interaction.js";import{s as D}from"./controller.js";const L={required:[...h.required],optional:[...h.optional,x,y,s,p,k,b,z,S,O,j,K,A,T,B]},H="kol-input-number__step-button",P=t=>{var e;return!0===(null===(e=null==t?void 0:t.classList)||void 0===e?void 0:e.contains(H))},R=t(class extends d{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=q("input-number"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=C(),this.valueType="null",this.hasValue=!1,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=void 0,this._min=void 0,this._msg=void 0,this._name=void 0,this._on=void 0,this._placeholder=void 0,this._readOnly=!1,this._required=!1,this._shortKey=void 0,this._smartButton=void 0,this._suggestions=void 0,this._step=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this._variant=void 0,this.handleNumberInput=t=>{this._value=this.readInputValue(),this.handleInput(t,this._value)},this.handleNumberChange=t=>{const e=this.readInputValue();this.handleChange(t,e),this.hasValue=!!e},this.handleNumberFocus=t=>{P(t.relatedTarget)||this.handleFocus(t)},this.handleNumberBlur=t=>{P(t.relatedTarget)||this.handleBlur(t)},this.handleNumberKeyDown=t=>{this.handleKeyDown(t),D(t,{form:this.host,ref:this.ctaRef.el})},this.handleStepDown=t=>{this.step(t,"down")},this.handleStepUp=t=>{this.step(t,"up")},this.initFormAssociation("number",this._name)}watchAccessKey(t){x.apply(t,(t=>this.setRenderProp("accessKey",t))),l(t,this._shortKey)}watchAriaDetails(t){this.applyAriaDetails(t)}watchAutoComplete(t){y.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){s.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){k.apply(t,(t=>this.setRenderProp("min",t)))}watchMsg(t){this.applyMsg(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchPlaceholder(t){z.apply(t,(t=>this.setRenderProp("placeholder",t)))}watchReadOnly(t){S.apply(t,(t=>this.setRenderProp("readOnly",t)))}watchRequired(t){O.apply(t,(t=>this.setRenderProp("required",t)))}watchShortKey(t){j.apply(t,(t=>this.setRenderProp("shortKey",t))),l(this._accessKey,t)}watchSmartButton(t){null==t?this.unsetRenderProp("smartButton"):K.apply(t,(t=>this.setRenderProp("smartButton",t)))}watchSuggestions(t){T.apply(t,(t=>this.setRenderProp("suggestions",t)))}watchStep(t){A.apply(t,(t=>this.setRenderProp("step",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchValue(t){var e;b.apply(t,(t=>this.setRenderProp("value",t))),this.formAssociation.setFormAssociatedValue(null!==(e=this.getRenderProp("value"))&&void 0!==e?e:null),null!=t&&(this.valueType=f(t))}watchVariant(t){B.apply(t,(t=>this.setRenderProp("variant",t)))}async getValue(){return this.remapValue(this.getRenderProp("value"))}async focus(t){}async click(){}componentWillLoad(){this.initRenderProps(L),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.watchMax(this._max),this.watchMin(this._min),this.watchSuggestions(this._suggestions),this.watchPlaceholder(this._placeholder),this.watchReadOnly(this._readOnly),this.watchRequired(this._required),this.watchStep(this._step),this.watchValue(this._value),this.hasValue=!!this.getRenderProp("value")}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField()}remapValue(t){return _(t,this.valueType)}readInputValue(){var t;return this.remapValue(g(null===(t=this.ctaRef.el)||void 0===t?void 0:t.value))}step(t,e){var o,i,n;"up"===e?null===(o=this.ctaRef.el)||void 0===o||o.stepUp():null===(i=this.ctaRef.el)||void 0===i||i.stepDown(),this._value=this.readInputValue(),this.handleInput(t,this._value),this.handleChange(t,this._value),this.hasValue=!!this._value,null===(n=this.ctaRef.el)||void 0===n||n.focus()}renderStepButton(t){return this._disabled||this._readOnly||"hide"===a("inputNumberButtons",this.host)?null:e("button",{type:"button","aria-hidden":"true",tabIndex:-1,class:`${H} ${H}-${t} kol-input-container__smart-button`,"data-testid":"kol-input-number-step-"+t,onClick:"up"===t?this.handleStepUp:this.handleStepDown,disabled:this._disabled||this._readOnly},e(v,{icons:"up"===t?"kolicon-plus":"kolicon-minus",label:""}))}getInputProps(){var t,o,i,n;const a=this.id,l=this.getRenderProp("accessKey"),s=this.getRenderProp("placeholder"),r=this.getRenderProp("shortKey"),c=this.getRenderProp("suggestions"),{ariaDescribedBy:h,hasError:d}=this.getAria();return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({id:a,hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),disabled:this.getRenderProp("disabled"),name:this.getRenderProp("name")||void 0},l?{accessKey:l}:{}),{value:null!==(t=this.getRenderProp("value"))&&void 0!==t?t:null,required:this.getRenderProp("required")}),void 0!==s?{placeholder:s}:{}),{autoComplete:this.getRenderProp("autoComplete"),readonly:this.getRenderProp("readOnly"),min:null!==(o=this.getRenderProp("min"))&&void 0!==o?o:null,max:null!==(i=this.getRenderProp("max"))&&void 0!==i?i:null,step:null!==(n=this.getRenderProp("step"))&&void 0!==n?n:null,touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")}),r?{"aria-keyshortcuts":r}:{}),c.length>0?{suggestions:e(w,{id:a,suggestions:c})}:{}),{ref:this.ctaRef,type:"number",onBlur:this.handleNumberBlur,onChange:this.handleNumberChange,onClick:this.handleClick,onFocus:this.handleNumberFocus,onInput:this.handleNumberInput,onKeyDown:this.handleNumberKeyDown,ariaDescribedBy:h,"aria-invalid":d?"true":void 0})}render(){const t=this.getRenderProp("disabled"),{startAdornment:i,endAdornment:n}=r({icons:this.getRenderProp("icons"),smartButton:this.getSmartButtonFcProps(this.getRenderProp("smartButton"),t),startAdornment:this.renderStepButton("down"),endAdornment:this.renderStepButton("up")});return e(o,{key:"7a67858ea6e43f8dc9c69ee6585fa69a7d81beb7"},e(u,Object.assign({key:"23e1aab66f344089c481a440e9fa27ca97299297"},this.getFormFieldProps({class:V("kol-input-number","number",{"has-value":this.hasValue}),accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,variant:this.getRenderProp("variant"),required:this.getRenderProp("required"),readOnly:this.getRenderProp("readOnly")})),e(c,{key:"02275eae2dbfcc7ac197ec080f0835e2c6742f16",disabled:t,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:n},e(m,Object.assign({key:"2537ee9173cfef5a9d99ddb9bcad098c227f2d0e"},this.getInputProps())))))}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}],_placeholder:[{watchPlaceholder:0}],_readOnly:[{watchReadOnly:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_suggestions:[{watchSuggestions:0}],_step:[{watchStep: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=1794027386898"); src: url("kolicons.eot?t=1794027386898#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794027386898") format("woff2"), url("kolicons.woff?t=1794027386898") format("woff"), url("kolicons.ttf?t=1794027386898") format("truetype"), url("kolicons.svg?t=1794027386898#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-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-input-number input { appearance: textfield; text-align: right; } .kol-input-number input::-webkit-inner-spin-button { display: none; } }'}}},[545,"kol-input-number",{_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],_placeholder:[1],_readOnly:[4,"_read-only"],_required:[4],_shortKey:[1,"_short-key"],_smartButton:[1,"_smart-button"],_suggestions:[1],_step:[8],_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}],_placeholder:[{watchPlaceholder:0}],_readOnly:[{watchReadOnly:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_suggestions:[{watchSuggestions:0}],_step:[{watchStep:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]);n([I("ctaRef")],R.prototype,"focus",null),n([M("ctaRef")],R.prototype,"click",null);const G=R,F=function(){"undefined"!=typeof customElements&&["kol-input-number"].forEach((t=>{"kol-input-number"===t&&(customElements.get(i(t))||customElements.define(i(t),R))}))};export{G as KolInputNumber,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 o,Host as e,transformTag as i}from"@stencil/core/internal/client";import{_ as n}from"./tslib.es6.js";import{e as a}from"./common.js";import{t as l}from"./i18n.js";import{B as r}from"./component7.js";import{c as s}from"./item.js";import{F as c}from"./base-web-component2.js";import{I as h}from"./input.js";import{I as d}from"./input-container.js";import{c as p,n as k}from"./base-web-component.js";import{t as b,B as m}from"./base-web-component3.js";import{c as u}from"./dev.utils.js";import{d as _,a as f}from"./element-interaction.js";const g=p("visibilityToggle",!1,k),w={required:[...b.required],optional:[...b.optional,g]},y=t(class extends m{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=u("input-password"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.passwordVisible=!1,this.visibilityToggle=s((()=>this.host)),this.translateHidePassword=l("kol-hide-password"),this.translateShowPassword=l("kol-show-password"),this._autoComplete="off",this._hasCounter=!1,this._maxLengthBehavior="hard",this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._readOnly=!1,this._required=!1,this._tooltipAlign="top",this._touched=!1,this._visibilityToggle=!1,this.handleVisibilityToggle=()=>{var t;this.passwordVisible=!this.passwordVisible,null===(t=this.ctaRef.el)||void 0===t||t.focus()},this.initFormAssociation("password",this._name)}watchAccessKey(t){this.applyAccessKey(t)}watchAriaDetails(t){this.applyAriaDetails(t)}watchAutoComplete(t){this.applyAutoComplete(t),"on"===t&&a("[KolInputPassword] The 'autocomplete' option should not be set to \"on\" for a password input field")}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)}watchSmartButton(t){this.applySmartButton(t)}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchValue(t){this.applyValue(t)}watchVariant(t){this.applyVariant(t)}watchVisibilityToggle(t){g.apply(t,(t=>this.setRenderProp("visibilityToggle",t)))}async getValue(){var t;return null===(t=this.ctaRef.el)||void 0===t?void 0:t.value}async focus(t){}async click(){}componentWillLoad(){this.initRenderProps(w),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.watchVisibilityToggle(this._visibilityToggle),this.initValue(this._value),this.initHasValue()}componentDidLoad(){this.didLoadTextInput()}componentDidUpdate(){this.didUpdateTextInput()}componentDidRender(){this.syncFormField(),this.visibilityToggle.syncListeners()}disconnectedCallback(){this.visibilityToggle.destroy(),this.destroyTextInput()}getVisibilityToggle(){return this.getRenderProp("visibilityToggle")?o(r,Object.assign({},this.visibilityToggle.getFcProps({_label:this.passwordVisible?this.translateHidePassword:this.translateShowPassword,_icons:this.passwordVisible?"kolicon-eye-closed":"kolicon-eye",_hideLabel:!0,_disabled:this._disabled,_on:{onClick:this.handleVisibilityToggle}},{class:"kol-input-password__password-toggle-button kol-input-container__smart-button","data-testid":"kol-input-password-toggle-button"}))):null}render(){const{startAdornment:t,endAdornment:i}=this.getTextInputAdornments(this.getVisibilityToggle());return o(e,{key:"61ba255d41330081e964a8d3d60bdc5b9f14970d"},o(c,Object.assign({key:"bf9ebd08b7fa57aeaae6b0a53979b1ee4907c95e"},this.getTextFormFieldProps("kol-input-password password")),o(d,{key:"3adeb9ec3102ab8698d1d70e403922260bcda228",disabled:this.getRenderProp("disabled"),msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:t,endAdornment:i},o(h,Object.assign({key:"113c1e6f187dead249eaf17f605138484dcedb42"},this.getTextInputProps({},{type:this.getRenderProp("visibilityToggle")&&this.passwordVisible?"text":"password"}))))))}get host(){return this}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_autoComplete:[{watchAutoComplete: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}],_smartButton:[{watchSmartButton:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}],_visibilityToggle:[{watchVisibilityToggle: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; } .kol-span .kol-span__label--hide-label .kol-span__label { display: none; } 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=1793002577585"); src: url("kolicons.eot?t=1793002577585#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1793002577585") format("woff2"), url("kolicons.woff?t=1793002577585") format("woff"), url("kolicons.ttf?t=1793002577585") format("truetype"), url("kolicons.svg?t=1793002577585#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 .kol-form-field .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-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-input-password { --kol-tooltip-width: calc(160 * 1rem / var(--kolibri-root-font-size, 16)); } }'}}},[545,"kol-input-password",{_accessKey:[1,"_access-key"],_ariaDetails:[1,"_aria-details"],_autoComplete:[1,"_auto-complete"],_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"],_smartButton:[1,"_smart-button"],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[1537],_variant:[1],_visibilityToggle:[4,"_visibility-toggle"],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],passwordVisible:[32],getValue:[64],focus:[64],click:[64]},void 0,{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_autoComplete:[{watchAutoComplete: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}],_smartButton:[{watchSmartButton:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}],_visibilityToggle:[{watchVisibilityToggle:0}]}]);n([_("ctaRef")],y.prototype,"focus",null),n([f("ctaRef")],y.prototype,"click",null);const v=y,x=function(){"undefined"!=typeof customElements&&["kol-input-password"].forEach((t=>{"kol-input-password"===t&&(customElements.get(i(t))||customElements.define(i(t),y))}))};export{v as KolInputPassword,x as defineCustomElement}
4
+ import{proxyCustomElement as t,h as o,Host as e,transformTag as i}from"@stencil/core/internal/client";import{_ as n}from"./tslib.es6.js";import{e as a}from"./common.js";import{t as l}from"./i18n.js";import{B as r}from"./component8.js";import{c as s}from"./item.js";import{F as c}from"./base-web-component2.js";import{I as h}from"./input.js";import{I as d}from"./input-container.js";import{c as k,n as p}from"./base-web-component.js";import{t as b,B as m}from"./base-web-component3.js";import{c as u}from"./dev.utils.js";import{d as f,a as _}from"./element-interaction.js";const g=k("visibilityToggle",!1,p),w={required:[...b.required],optional:[...b.optional,g]},y=t(class extends m{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=u("input-password"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.passwordVisible=!1,this.visibilityToggle=s((()=>this.host)),this.translateHidePassword=l("kol-hide-password"),this.translateShowPassword=l("kol-show-password"),this._accessKey=void 0,this._ariaDetails=void 0,this._autoComplete="off",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._smartButton=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this._variant=void 0,this._visibilityToggle=!1,this.handleVisibilityToggle=()=>{var t;this.passwordVisible=!this.passwordVisible,null===(t=this.ctaRef.el)||void 0===t||t.focus()},this.initFormAssociation("password",this._name)}watchAccessKey(t){this.applyAccessKey(t)}watchAriaDetails(t){this.applyAriaDetails(t)}watchAutoComplete(t){this.applyAutoComplete(t),"on"===t&&a("[KolInputPassword] The 'autocomplete' option should not be set to \"on\" for a password input field")}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)}watchSmartButton(t){this.applySmartButton(t)}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchValue(t){this.applyValue(t)}watchVariant(t){this.applyVariant(t)}watchVisibilityToggle(t){g.apply(t,(t=>this.setRenderProp("visibilityToggle",t)))}async getValue(){var t;return null===(t=this.ctaRef.el)||void 0===t?void 0:t.value}async focus(t){}async click(){}connectedCallback(){super.connectedCallback(),this.visibilityToggle.syncListeners()}componentWillLoad(){this.initRenderProps(w),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.watchVisibilityToggle(this._visibilityToggle),this.initValue(this._value),this.initHasValue()}componentDidLoad(){this.didLoadTextInput()}componentDidUpdate(){this.didUpdateTextInput()}componentDidRender(){this.syncFormField(),this.visibilityToggle.syncListeners()}disconnectedCallback(){this.visibilityToggle.destroy(),this.destroyTextInput()}getVisibilityToggle(){return this.getRenderProp("visibilityToggle")?o(r,Object.assign({},this.visibilityToggle.getFcProps({_label:this.passwordVisible?this.translateHidePassword:this.translateShowPassword,_icons:this.passwordVisible?"kolicon-eye-closed":"kolicon-eye",_hideLabel:!0,_disabled:this._disabled,_on:{onClick:this.handleVisibilityToggle}},{class:"kol-input-password__password-toggle-button kol-input-container__smart-button","data-testid":"kol-input-password-toggle-button"}))):null}render(){const{startAdornment:t,endAdornment:i}=this.getTextInputAdornments(this.getVisibilityToggle());return o(e,{key:"8251063b4e2f8c4087a1ff3302d0ce89fb5d90bc"},o(c,Object.assign({key:"59c17030906054520e11121871df2f2b0b81b3ce"},this.getTextFormFieldProps("kol-input-password password")),o(d,{key:"b989b083d3e044c9d6605b168d9feba29323f3ac",disabled:this.getRenderProp("disabled"),msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:t,endAdornment:i},o(h,Object.assign({key:"01002c4904c34e3552f8581c47b70f311ff4aa50"},this.getTextInputProps({},{type:this.getRenderProp("visibilityToggle")&&this.passwordVisible?"text":"password"}))))))}get host(){return this}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_autoComplete:[{watchAutoComplete: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}],_smartButton:[{watchSmartButton:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}],_visibilityToggle:[{watchVisibilityToggle: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=1794027386898"); src: url("kolicons.eot?t=1794027386898#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794027386898") format("woff2"), url("kolicons.woff?t=1794027386898") format("woff"), url("kolicons.ttf?t=1794027386898") format("truetype"), url("kolicons.svg?t=1794027386898#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-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-input-password { --kol-tooltip-width: calc(160 * 1rem / var(--kolibri-root-font-size, 16)); } }'}}},[545,"kol-input-password",{_accessKey:[1,"_access-key"],_ariaDetails:[1,"_aria-details"],_autoComplete:[1,"_auto-complete"],_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"],_smartButton:[1,"_smart-button"],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[1025],_variant:[1],_visibilityToggle:[4,"_visibility-toggle"],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],passwordVisible:[32],getValue:[64],focus:[64],click:[64]},void 0,{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_autoComplete:[{watchAutoComplete: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}],_smartButton:[{watchSmartButton:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}],_visibilityToggle:[{watchVisibilityToggle:0}]}]);n([f("ctaRef")],y.prototype,"focus",null),n([_("ctaRef")],y.prototype,"click",null);const v=y,x=function(){"undefined"!=typeof customElements&&["kol-input-password"].forEach((t=>{"kol-input-password"===t&&(customElements.get(i(t))||customElements.define(i(t),y))}))};export{v as KolInputPassword,x as defineCustomElement}
@@ -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{c as l,B as n}from"./base-web-component.js";import{i as a,g as r,f as s,B as c,F as d}from"./base-web-component2.js";import{i as h,F as p}from"./field-control.js";import{f,n as u}from"./options.js";import{a as k}from"./tslib.es6.js";import"./common.js";import{b}from"./bem-registry.js";import{c as m}from"./clsx.js";import{B as _}from"./component.js";import{I as g}from"./input.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"./variant.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=l("orientation","vertical",y),M=l("value",null,(t=>Array.isArray(t)?t[0]:t)),H=b.forBlock("kol-input-radio"),I=o=>{var{class:e,inputProps:i}=o,l=k(o,["class","inputProps"]);const{class:n}=i,s=k(i,["class"]);return t(_,Object.assign({component:"label",block:"kol-input-radio",modifiers:Object.assign({checked:!!i.checked,disabled:!!i.disabled,required:!!i.required,touched:!!i.touched},a(i.msg,i.touched)?{[r(i.msg)]:!0}:{}),class:e},l),t(g,Object.assign({class:m(H("input"),n)},s,{type:"radio"})))},P={required:[...s.required],optional:[...s.optional,D,A,M,v,x]},S=o(class extends c{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._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._orientation="vertical",this._required=!1,this._tooltipAlign="top",this._touched=!1,this._value=null,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(),f(this.keyOptionMap,u(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)))}async getValue(){return 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.initRenderProps(P),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);h({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: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=T(this.id,e+""),l=this.isOptionSelected(o),n=o.label;return t(p,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(I,{inputProps:this.getInputProps(o,i,e,l)}))}render(){const{ariaDescribedBy:o}=this.getAria();return t(e,{key:"746cc7fb608ae74fdb4992b21b428859f641639c"},t(d,Object.assign({key:"85670df5f6c39871a93be31c587817649ce651a7"},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; } .kol-span .kol-span__label--hide-label .kol-span__label { display: none; } 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=1793002577585"); src: url("kolicons.eot?t=1793002577585#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1793002577585") format("woff2"), url("kolicons.woff?t=1793002577585") format("woff"), url("kolicons.ttf?t=1793002577585") format("truetype"), url("kolicons.svg?t=1793002577585#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-field-control .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 .kol-form-field .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,proxyCustomElement as o,Host as e,transformTag as i}from"@stencil/core/internal/client";import{c as n,B as l}from"./base-web-component.js";import{i as a,g as r,f as s,B as c,F as d}from"./base-web-component2.js";import{i as h,F as p}from"./field-control.js";import{f,n as u}from"./options.js";import{a as k}from"./tslib.es6.js";import"./common.js";import{b as m}from"./bem-registry.js";import{c as b}from"./clsx.js";import{B as _}from"./component.js";import{I as g}from"./input.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"./variant.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=n("orientation","vertical",y),M=n("value",null,(t=>Array.isArray(t)?t[0]:t)),H=m.forBlock("kol-input-radio"),I=o=>{var{class:e,inputProps:i}=o,n=k(o,["class","inputProps"]);const{class:l}=i,s=k(i,["class"]);return t(_,Object.assign({component:"label",block:"kol-input-radio",modifiers:Object.assign({checked:!!i.checked,disabled:!!i.disabled,required:!!i.required,touched:!!i.touched},a(i.msg,i.touched)?{[r(i.msg)]:!0}:{}),class:e},n),t(g,Object.assign({class:b(H("input"),l)},s,{type:"radio"})))},P={required:[...s.required],optional:[...s.optional,D,A,M,v,x]},S=o(class extends c{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._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(),f(this.keyOptionMap,u(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)))}async getValue(){return 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.initRenderProps(P),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);h({hideLabel:this.getRenderProp("hideLabel"),label:o})?(e||(e=new z(l.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(p,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(I,{inputProps:this.getInputProps(o,i,e,n)}))}render(){const{ariaDescribedBy:o}=this.getAria();return t(e,{key:"51e22d6b9d8c41763907d159bcf13e55893246a3"},t(d,Object.assign({key:"36f162b26f66d15d8b5f37a1d333cc3ad3c7202a"},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=1794027386898"); src: url("kolicons.eot?t=1794027386898#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794027386898") format("woff2"), url("kolicons.woff?t=1794027386898") format("woff"), url("kolicons.ttf?t=1794027386898") format("truetype"), url("kolicons.svg?t=1794027386898#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}
@@ -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 p}from"./input.js";import{i as u,a as k,b as m,g as b,c as f,r as _}from"./number-value.js";import{a as g,S as y}from"./suggestions2.js";import"./common.js";import{a as w,d as v,v as x}from"./variant.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 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,w,g,l,u,k,m,v,z,j,x]},C=K.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._autoComplete="off",this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._max=100,this._min=0,this._tooltipAlign="top",this._touched=!1,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){w.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){u.apply(t,(t=>this.setRenderProp("max",t)))}watchMin(t){k.apply(t,(t=>this.setRenderProp("min",t)))}watchMsg(t){this.applyMsg(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchShortKey(t){v.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;m.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)))}async getValue(){if(void 0!==this.ctaRef.el)return this.readValue(this.ctaRef.el.value)}async focus(t){}async click(){}componentWillLoad(){this.initRenderProps(V),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,u=this.getSharedInputProps(),{ariaDescribedBy:k,hasError:m}=this.getAria(),b=m?"true":void 0,{startAdornment:f,endAdornment:_}=r({icons:this.getRenderProp("icons")});return t(o,{key:"569bc62668b4fa3f25ba9013f935df397df3f3f6"},t(d,Object.assign({key:"fb29d88e2be958fb52cc51ce4a49dd1ea52028f2"},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:"a8aafad49f3e91bed3ca928270a00c0f8508c789",disabled:e,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:f,endAdornment:_},t(O,{key:"6934e58aff55bdcef5e2faca7d6866821b89670e",max:a,min:n},t(p,Object.assign({key:"36792bb7e29f92ce371775252eb731098a09c52f"},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:k,"aria-invalid":b})),t(p,Object.assign({key:"c23fbd48af3dbdfd405f83ed3133bb38f6753702"},u,{class:I,name:i?i+"-number":void 0,list:h,type:"number",ref:this.ctaRef,onKeyDown:this.handleNumberKeyDown,ariaDescribedBy:k,"aria-invalid":b}))),c&&t(y,{key:"e6c7f27d23cc6ce5463e92fcd60b4dad5d736cf0",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; } .kol-span .kol-span__label--hide-label .kol-span__label { display: none; } 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=1793002577585"); src: url("kolicons.eot?t=1793002577585#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1793002577585") format("woff2"), url("kolicons.woff?t=1793002577585") format("woff"), url("kolicons.ttf?t=1793002577585") format("truetype"), url("kolicons.svg?t=1793002577585#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 .kol-form-field .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,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"./common.js";import{a as y,d as v,v as x}from"./variant.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 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,y,g,l,p,m,k,v,z,j,x]},C=K.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._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){y.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){v.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)))}async getValue(){if(void 0!==this.ctaRef.el)return this.readValue(this.ctaRef.el.value)}async focus(t){}async click(){}componentWillLoad(){this.initRenderProps(V),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:"da67bf6d5d86b550c49d551cc697b98d4556e184"},t(d,Object.assign({key:"86000c4e0b68e626fcacc311535cf9c4620f4ebf"},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:"a8f53bff4335a554f0ac97190ae037b343483664",disabled:e,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:f,endAdornment:_},t(O,{key:"daab899592a7b4c303fe0e51e6a759d426c3ea99",max:a,min:n},t(u,Object.assign({key:"84f757d28e5b9b7fe47d0c7b0821ee191dbd3ede"},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:"a67909d8f8c54806166c27d768b55fc6c8ea2e21"},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:"6b4d51d3570feb44f5f14ba7de26d9f9cb548d86",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=1794027386898"); src: url("kolicons.eot?t=1794027386898#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794027386898") format("woff2"), url("kolicons.woff?t=1794027386898") format("woff"), url("kolicons.ttf?t=1794027386898") format("truetype"), url("kolicons.svg?t=1794027386898#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}
@@ -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"./component7.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"./common.js";import{c as d,b as p,i as k}from"./base-web-component.js";import{s as u}from"./spell-check.js";import{s as m}from"./suggestions.js";import{t as _,B as f}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)})),z={required:[..._.required],optional:[..._.optional,B,u,m]},C=t(class extends f{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._autoComplete="off",this._hasCounter=!1,this._maxLengthBehavior="hard",this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._readOnly=!1,this._required=!1,this._tooltipAlign="top",this._touched=!1,this._type="text",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)}async getValue(){var t;return null===(t=this.ctaRef.el)||void 0===t?void 0:t.value}async focus(t){}async click(){}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)}async setSelectionRange(t,e,o){var i;null===(i=this.ctaRef.el)||void 0===i||i.setSelectionRange(t,e,o)}async setSelectionStart(t){var e;null===(e=this.ctaRef.el)||void 0===e||e.setSelectionRange(t,t)}async setRangeText(t,e,o,i){var n,a;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)}componentWillLoad(){this.initRenderProps(z),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}),"data-testid":"kol-input-text-clear-button"})))}render(){const t=this.getRenderProp("type"),{startAdornment:i,endAdornment:n}=this.getTextInputAdornments(this.getClearButton());return e(o,{key:"ab8c632f80d09044c72b4acf1869c2f9d3f0c51d"},e(s,Object.assign({key:"7301664c43a3045e189696f56994a18b30a19789"},this.getTextFormFieldProps("kol-input-text "+t)),e(h,{key:"5f271f873d0b2da324338c84d6018760aae9709f",disabled:this.getRenderProp("disabled"),msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:n},e(c,Object.assign({key:"6b4c0dbf989d32ddec7f9384dd55afcf657438f1"},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; } .kol-span .kol-span__label--hide-label .kol-span__label { display: none; } 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=1793002577585"); src: url("kolicons.eot?t=1793002577585#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1793002577585") format("woff2"), url("kolicons.woff?t=1793002577585") format("woff"), url("kolicons.ttf?t=1793002577585") format("truetype"), url("kolicons.svg?t=1793002577585#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 .kol-form-field .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")],C.prototype,"focus",null),n([y("ctaRef")],C.prototype,"click",null);const T=C,L=function(){"undefined"!=typeof customElements&&["kol-input-text"].forEach((t=>{"kol-input-text"===t&&(customElements.get(i(t))||customElements.define(i(t),C))}))};export{T as KolInputText,L as defineCustomElement}
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"./component8.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"./common.js";import{c as d,b as p,i as k}from"./base-web-component.js";import{s as u}from"./spell-check.js";import{s as m}from"./suggestions.js";import{t as b,B as _}from"./base-web-component3.js";import{c as f}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:[...b.required],optional:[...b.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._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)}async getValue(){var t;return null===(t=this.ctaRef.el)||void 0===t?void 0:t.value}async focus(t){}async click(){}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)}async setSelectionRange(t,e,o){var i;null===(i=this.ctaRef.el)||void 0===i||i.setSelectionRange(t,e,o)}async setSelectionStart(t){var e;null===(e=this.ctaRef.el)||void 0===e||e.setSelectionRange(t,t)}async setRangeText(t,e,o,i){var n,a;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)}connectedCallback(){super.connectedCallback(),this.clearButton.syncListeners()}componentWillLoad(){this.initRenderProps(C),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:f("kol-input-text__clear-button","kol-input-container__smart-button",{"kol-input-text__clear-button--hidden":!t}),"data-testid":"kol-input-text-clear-button"})))}render(){const t=this.getRenderProp("type"),{startAdornment:i,endAdornment:n}=this.getTextInputAdornments(this.getClearButton());return e(o,{key:"42f5c9893bd92ad056800edccb52d8e0bd202bb5"},e(s,Object.assign({key:"66fa45b1ed01b6048f9c0be04dba33d2dff78810"},this.getTextFormFieldProps("kol-input-text "+t)),e(h,{key:"c87a67097261600bb11a6ae0349c5c4354997407",disabled:this.getRenderProp("disabled"),msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:n},e(c,Object.assign({key:"c7eda4e383ef3220abddf8a8a55aea3ebb254a71"},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=1794027386898"); src: url("kolicons.eot?t=1794027386898#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794027386898") format("woff2"), url("kolicons.woff?t=1794027386898") format("woff"), url("kolicons.ttf?t=1794027386898") format("truetype"), url("kolicons.svg?t=1794027386898#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}