@public-ui/components 4.6.0-rc.2 → 4.6.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 (702) hide show
  1. package/assets/kolicons/kolicons.eot +0 -0
  2. package/assets/kolicons/kolicons.ttf +0 -0
  3. package/assets/kolicons/kolicons.woff +0 -0
  4. package/assets/kolicons/kolicons.woff2 +0 -0
  5. package/assets/kolicons/style.css +6 -6
  6. package/custom-elements.json +4 -4
  7. package/dist/cjs/{Heading-CmnijhLd.js → Heading-CnnBHLhu.js} +7 -7
  8. package/dist/cjs/{api-Bg7hdIrJ.js → api-C-uDDxcA.js} +29 -30
  9. package/dist/cjs/{app-globals-BwYPSMbG.js → app-globals-BfpVa0Lg.js} +2 -2
  10. package/dist/cjs/{aria-labelledby-BRMgWRVp.js → aria-labelledby-By2dgbCn.js} +0 -13
  11. package/dist/cjs/{base-JFyPasp9.js → base-BIbzHEVE.js} +50 -52
  12. package/dist/cjs/{base-ob1X79UM.js → base-BZ3x1Yaj.js} +10 -10
  13. package/dist/cjs/{base-CQB0r-ZQ.js → base-Cc2tyQoy.js} +10 -10
  14. package/dist/cjs/{base-BVhV5HmV.js → base-CeaAJa72.js} +10 -10
  15. package/dist/cjs/{base-web-component-DXCN-Sp3.js → base-web-component-B_zszxEg.js} +1 -1
  16. package/dist/cjs/{base-web-component-DBcJrpRb.js → base-web-component-CpqYvVDi.js} +14 -15
  17. package/dist/cjs/{base-web-component-dI9FmFIm.js → base-web-component-Dk-So1FD.js} +12 -14
  18. package/dist/cjs/{behavior-B5wr2A8R.js → behavior--ZjzmIB4.js} +5 -12
  19. package/dist/cjs/{behavior-DujaVCwV.js → behavior-CYg7XOXd.js} +4 -4
  20. package/dist/cjs/{behavior-CUmF8rJf.js → behavior-cEIf2evT.js} +4 -4
  21. package/dist/cjs/{bem-registry-B6QoNC9E.js → bem-registry-CtnO3zCW.js} +61 -0
  22. package/dist/cjs/{bootstrap-HU5YhM_w.js → bootstrap-DOzWgRGX.js} +1 -1
  23. package/dist/cjs/{color-C3xsA3Uk.js → color-BJ776mPh.js} +2 -2
  24. package/dist/cjs/{component-DprHBKdZ.js → component-5ABjFE_U.js} +6 -7
  25. package/dist/cjs/{component-BexD3069.js → component-BSx0ZVSD.js} +10 -12
  26. package/dist/cjs/component-BTfaB8W5.js +19 -0
  27. package/dist/cjs/{component-Cbbx7Z6c.js → component-BacsMsF-.js} +4 -4
  28. package/dist/cjs/component-C_9WksgV.js +53 -0
  29. package/dist/cjs/{component-Cqp00Tb9.js → component-D65WOH6c.js} +8 -10
  30. package/dist/cjs/{component-Doln6Ltn.js → component-DE4OHvyu.js} +7 -8
  31. package/dist/cjs/{component-DGVc4bOy.js → component-DVf7tz1e.js} +6 -5
  32. package/dist/cjs/{component-Bza8hlo-.js → component-Ddp-Luc6.js} +11 -12
  33. package/dist/cjs/{component-DFhuXUqv.js → component-DuknrIKz.js} +14 -16
  34. package/dist/cjs/{component-BilLJFfC.js → component-DwuAKOV_.js} +4 -4
  35. package/dist/cjs/{contrast-6Nku3lih.js → contrast-DrGTr5zd.js} +1 -1
  36. package/dist/cjs/{dev.utils-Bx4sgPsr.js → dev.utils-EwVibOKw.js} +1 -1
  37. package/dist/cjs/{devtools-BXBKJice.js → devtools-CEqUJI9f.js} +2 -2
  38. package/dist/cjs/{disabled-CilmJ-p-.js → disabled-DBnI2OR4.js} +1 -1
  39. package/dist/cjs/{field-control-B95uzQnW.js → field-control-Jhzreo_j.js} +12 -12
  40. package/dist/cjs/{group-DGS7K6Ja.js → group-DDmENjNB.js} +7 -8
  41. package/dist/cjs/{has-closer-iSIrv52u.js → has-closer-DIk_toj-.js} +1 -1
  42. package/dist/cjs/{href-xojo1zy_.js → href-_UE7179j.js} +1 -1
  43. package/dist/cjs/{i18n-D7UmRsV8.js → i18n-4lKONPdP.js} +1 -1
  44. package/dist/cjs/{i18n-DgHI4-xa.js → i18n-CuXZ7SEi.js} +2 -1
  45. package/dist/cjs/{id-DP-w6i4q.js → id-JbinnWCW.js} +1 -1
  46. package/dist/cjs/{index-Ccvyz7Rq.js → index-P8gY4ccL.js} +1 -1
  47. package/dist/cjs/index.cjs.js +3 -3
  48. package/dist/cjs/input-BYfPasa5.js +19 -0
  49. package/dist/cjs/{input-container-CWb_kRbs.js → input-container-BQlNjdk3.js} +8 -10
  50. package/dist/cjs/{item-vDMQvV0t.js → item-C6gnuMjx.js} +4 -4
  51. package/dist/cjs/{item-wr5KfPYM.js → item-CvvVUcQZ.js} +11 -11
  52. package/dist/cjs/{item-C4Boh5Cz.js → item-DSSJt2YS.js} +4 -4
  53. package/dist/cjs/{item-DgNTEUz3.js → item-Dgikq96R.js} +20 -21
  54. package/dist/cjs/kol-abbr.cjs.entry.js +8 -12
  55. package/dist/cjs/kol-accordion.cjs.entry.js +15 -17
  56. package/dist/cjs/kol-alert.cjs.entry.js +27 -30
  57. package/dist/cjs/kol-avatar.cjs.entry.js +14 -15
  58. package/dist/cjs/kol-badge.cjs.entry.js +23 -26
  59. package/dist/cjs/kol-breadcrumb.cjs.entry.js +26 -30
  60. package/dist/cjs/kol-button-link.cjs.entry.js +22 -25
  61. package/dist/cjs/kol-button.cjs.entry.js +22 -25
  62. package/dist/cjs/kol-card.cjs.entry.js +27 -30
  63. package/dist/cjs/kol-combobox.cjs.entry.js +38 -41
  64. package/dist/cjs/kol-details.cjs.entry.js +15 -17
  65. package/dist/cjs/kol-dialog.cjs.entry.js +30 -33
  66. package/dist/cjs/kol-drawer.cjs.entry.js +30 -33
  67. package/dist/cjs/kol-form.cjs.entry.js +24 -27
  68. package/dist/cjs/kol-heading.cjs.entry.js +13 -15
  69. package/dist/cjs/kol-icon.cjs.entry.js +8 -9
  70. package/dist/cjs/kol-image.cjs.entry.js +7 -9
  71. package/dist/cjs/kol-input-checkbox.cjs.entry.js +53 -55
  72. package/dist/cjs/kol-input-color.cjs.entry.js +42 -44
  73. package/dist/cjs/kol-input-date.cjs.entry.js +44 -47
  74. package/dist/cjs/kol-input-email.cjs.entry.js +45 -47
  75. package/dist/cjs/kol-input-file.cjs.entry.js +39 -41
  76. package/dist/cjs/kol-input-number.cjs.entry.js +46 -48
  77. package/dist/cjs/kol-input-password.cjs.entry.js +43 -45
  78. package/dist/cjs/kol-input-radio.cjs.entry.js +38 -41
  79. package/dist/cjs/kol-input-range.cjs.entry.js +37 -40
  80. package/dist/cjs/kol-input-text.cjs.entry.js +45 -47
  81. package/dist/cjs/kol-kolibri.cjs.entry.js +8 -12
  82. package/dist/cjs/kol-link-button.cjs.entry.js +23 -26
  83. package/dist/cjs/kol-link.cjs.entry.js +23 -26
  84. package/dist/cjs/kol-meter.cjs.entry.js +14 -15
  85. package/dist/cjs/kol-modal.cjs.entry.js +30 -33
  86. package/dist/cjs/kol-nav.cjs.entry.js +35 -38
  87. package/dist/cjs/kol-pagination.cjs.entry.js +42 -45
  88. package/dist/cjs/kol-popover-button.cjs.entry.js +23 -26
  89. package/dist/cjs/kol-progress.cjs.entry.js +13 -14
  90. package/dist/cjs/kol-quote.cjs.entry.js +9 -10
  91. package/dist/cjs/kol-select.cjs.entry.js +36 -39
  92. package/dist/cjs/kol-single-select.cjs.entry.js +38 -41
  93. package/dist/cjs/kol-skip-nav.cjs.entry.js +26 -30
  94. package/dist/cjs/kol-spin.cjs.entry.js +11 -15
  95. package/dist/cjs/kol-split-button.cjs.entry.js +28 -31
  96. package/dist/cjs/kol-table-stateful.cjs.entry.js +55 -57
  97. package/dist/cjs/kol-table-stateless.cjs.entry.js +40 -44
  98. package/dist/cjs/kol-tabs.cjs.entry.js +23 -26
  99. package/dist/cjs/kol-textarea.cjs.entry.js +41 -44
  100. package/dist/cjs/kol-toast-container.cjs.entry.js +20 -23
  101. package/dist/cjs/kol-toolbar.cjs.entry.js +29 -32
  102. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +11 -12
  103. package/dist/cjs/kol-tree-item.cjs.entry.js +27 -28
  104. package/dist/cjs/kol-tree.cjs.entry.js +24 -14
  105. package/dist/cjs/kol-version.cjs.entry.js +21 -24
  106. package/dist/cjs/kolibri.cjs.js +3 -3
  107. package/dist/cjs/{label-D6c6jfqK.js → label-BAULqhwq.js} +3 -3
  108. package/dist/cjs/{label-hints-q3XenWLW.js → label-hints-BHw-UcMt.js} +1 -1
  109. package/dist/cjs/{label-lang-segment-k4OY9qRY.js → label-lang-segment-D_UYFhgr.js} +2 -2
  110. package/dist/cjs/{label-with-expert-slot-CJoz7BLw.js → label-with-expert-slot-XZTOiRp-.js} +3 -3
  111. package/dist/cjs/{level-B6vFMm9s.js → level-CaJUuMiH.js} +1 -1
  112. package/dist/cjs/{link-target-0qSVsAb2.js → link-target-EZq24qVX.js} +1 -1
  113. package/dist/cjs/{links-Ur1e9DOK.js → links-CNPivOpm.js} +1 -1
  114. package/dist/cjs/loader.cjs.js +3 -3
  115. package/dist/cjs/{multiple-CCxtzqez.js → multiple-D4ktp4Q2.js} +1 -1
  116. package/dist/cjs/{number-value-DzAHCwlP.js → number-value-BzIR1UvL.js} +1 -1
  117. package/dist/cjs/{open-Gxr_K7HK.js → open-BYh5VAA1.js} +1 -1
  118. package/dist/cjs/{options-BT0m0gRT.js → options-DkF38kx_.js} +1 -1
  119. package/dist/cjs/{orientation-CeHU4dT8.js → orientation-D4yopkvP.js} +1 -1
  120. package/dist/cjs/{placeholder-22xUUFff.js → placeholder-CZOGOuLS.js} +1 -1
  121. package/dist/cjs/{props-from-config-D1qhXS9j.js → props-from-config-CiU21EHb.js} +86 -5
  122. package/dist/cjs/{read-only-iHApMQEg.js → read-only-PNG5jHgh.js} +1 -1
  123. package/dist/cjs/{required-BYdSI25I.js → required-mj54_vO_.js} +1 -1
  124. package/dist/cjs/{resolve-props-pZBj0tIz.js → resolve-props-CH6OL2es.js} +7 -7
  125. package/dist/cjs/{resolve-props-B_ytLWBO.js → resolve-props-DOnocHFi.js} +6 -6
  126. package/dist/cjs/{rows-C9vBSQK1.js → rows-YaAnXjAm.js} +1 -1
  127. package/dist/cjs/{scroll-lock-DguXX-Em.js → scroll-lock-D3pgiG8q.js} +8 -7
  128. package/dist/cjs/{smart-button-DRMmUyQ5.js → smart-button-BU7mWP5H.js} +1 -1
  129. package/dist/cjs/{spell-check-CxgvHcGA.js → spell-check-CZWiLkQE.js} +1 -1
  130. package/dist/cjs/{src-Bmd7gQCS.js → src-rB2yGTSn.js} +1 -1
  131. package/dist/cjs/{step-CCqgsPCX.js → step-Bo6ILIqa.js} +1 -1
  132. package/dist/cjs/{suggestions-CoUp7HmN.js → suggestions-BO4EvOXc.js} +1 -1
  133. package/dist/cjs/{suggestions-C6Q3kj5J.js → suggestions-Ca575hi-.js} +3 -3
  134. package/dist/cjs/test-component.cjs.entry.js +1 -1
  135. package/dist/cjs/{toggle-handler-BaOOa9I5.js → toggle-handler-ByJYSOdb.js} +11 -13
  136. package/dist/cjs/{unique-nav-labels-CgxOyb6V.js → unique-nav-labels-_EHPpYUR.js} +1 -1
  137. package/dist/cjs/{unit-_oDj-vIB.js → unit-Bl0Lyk08.js} +1 -1
  138. package/dist/cjs/{validators-CpCJvM4r.js → validators-rLs6tEWo.js} +1 -1
  139. package/dist/cjs/{value-string-CKppMGVM.js → value-string-BKsvZy1q.js} +1 -1
  140. package/dist/cjs/{width-e7f3wHF3.js → width-DegQFxQB.js} +1 -1
  141. package/dist/collection/components/abbr/style.css +21 -0
  142. package/dist/collection/components/accordion/style.css +23 -2
  143. package/dist/collection/components/alert/component.js +6 -5
  144. package/dist/collection/components/alert/style.css +23 -2
  145. package/dist/collection/components/avatar/style.css +21 -0
  146. package/dist/collection/components/badge/style.css +23 -2
  147. package/dist/collection/components/breadcrumb/style.css +23 -2
  148. package/dist/collection/components/button/style.css +23 -2
  149. package/dist/collection/components/button-link/style.css +23 -2
  150. package/dist/collection/components/card/style.css +26 -2
  151. package/dist/collection/components/combobox/style.css +23 -2
  152. package/dist/collection/components/details/style.css +23 -2
  153. package/dist/collection/components/dialog/base.js +2 -2
  154. package/dist/collection/components/dialog/style.css +26 -2
  155. package/dist/collection/components/drawer/style.css +26 -2
  156. package/dist/collection/components/form/style.css +23 -2
  157. package/dist/collection/components/heading/style.css +21 -0
  158. package/dist/collection/components/icon/style.css +2 -2
  159. package/dist/collection/components/image/style.css +21 -0
  160. package/dist/collection/components/input-checkbox/component.js +13 -11
  161. package/dist/collection/components/input-checkbox/style.css +23 -2
  162. package/dist/collection/components/input-color/component.js +6 -4
  163. package/dist/collection/components/input-color/style.css +23 -2
  164. package/dist/collection/components/input-date/component.js +9 -7
  165. package/dist/collection/components/input-date/style.css +23 -2
  166. package/dist/collection/components/input-email/component.js +4 -1
  167. package/dist/collection/components/input-email/style.css +23 -2
  168. package/dist/collection/components/input-file/component.js +6 -3
  169. package/dist/collection/components/input-file/style.css +23 -2
  170. package/dist/collection/components/input-number/component.js +6 -4
  171. package/dist/collection/components/input-number/style.css +23 -2
  172. package/dist/collection/components/input-password/component.js +5 -2
  173. package/dist/collection/components/input-password/style.css +23 -2
  174. package/dist/collection/components/input-radio/style.css +23 -2
  175. package/dist/collection/components/input-range/style.css +23 -2
  176. package/dist/collection/components/input-text/component.js +4 -2
  177. package/dist/collection/components/input-text/style.css +23 -2
  178. package/dist/collection/components/kolibri/style.css +21 -0
  179. package/dist/collection/components/link/style.css +23 -2
  180. package/dist/collection/components/link-button/style.css +23 -2
  181. package/dist/collection/components/meter/style.css +21 -0
  182. package/dist/collection/components/modal/style.css +26 -2
  183. package/dist/collection/components/nav/style.css +23 -2
  184. package/dist/collection/components/pagination/component.js +5 -5
  185. package/dist/collection/components/pagination/style.css +23 -2
  186. package/dist/collection/components/popover-button/style.css +23 -2
  187. package/dist/collection/components/progress/style.css +21 -0
  188. package/dist/collection/components/quote/style.css +21 -0
  189. package/dist/collection/components/select/style.css +23 -2
  190. package/dist/collection/components/single-select/style.css +23 -2
  191. package/dist/collection/components/skip-nav/style.css +23 -2
  192. package/dist/collection/components/spin/style.css +21 -0
  193. package/dist/collection/components/split-button/style.css +23 -2
  194. package/dist/collection/components/table-stateful/component.js +7 -6
  195. package/dist/collection/components/table-stateful/style.css +26 -2
  196. package/dist/collection/components/table-stateless/component.js +3 -5
  197. package/dist/collection/components/table-stateless/style.css +26 -2
  198. package/dist/collection/components/tabs/style.css +23 -2
  199. package/dist/collection/components/textarea/style.css +23 -2
  200. package/dist/collection/components/toaster/style.css +23 -2
  201. package/dist/collection/components/toolbar/style.css +23 -2
  202. package/dist/collection/components/tree/component.js +15 -4
  203. package/dist/collection/components/tree/style.css +21 -0
  204. package/dist/collection/components/tree-item/component.js +5 -2
  205. package/dist/collection/components/tree-item/style.css +23 -2
  206. package/dist/collection/components/version/style.css +23 -2
  207. package/dist/collection/core/i18n.js +2 -1
  208. package/dist/collection/internal/functional-components/alert/component.js +2 -1
  209. package/dist/collection/internal/functional-components/avatar/component.js +2 -2
  210. package/dist/collection/internal/functional-components/badge/component.js +2 -1
  211. package/dist/collection/internal/functional-components/bem-root-node/component.js +16 -6
  212. package/dist/collection/internal/functional-components/breadcrumb/component.js +2 -2
  213. package/dist/collection/internal/functional-components/card/component.js +3 -1
  214. package/dist/collection/internal/functional-components/collapsible/component.js +3 -2
  215. package/dist/collection/internal/functional-components/dialog/component.js +6 -3
  216. package/dist/collection/internal/functional-components/dialog/item.js +2 -2
  217. package/dist/collection/internal/functional-components/drawer/component.js +1 -1
  218. package/dist/collection/internal/functional-components/form-association/api.js +2 -2
  219. package/dist/collection/internal/functional-components/form-association/behavior.js +1 -5
  220. package/dist/collection/internal/functional-components/form-field/base-web-component.js +0 -1
  221. package/dist/collection/internal/functional-components/heading/component.js +3 -4
  222. package/dist/collection/internal/functional-components/icon/component.js +2 -2
  223. package/dist/collection/internal/functional-components/image/component.js +2 -4
  224. package/dist/collection/internal/functional-components/link/component.js +1 -1
  225. package/dist/collection/internal/functional-components/meter/component.js +2 -1
  226. package/dist/collection/internal/functional-components/pagination/item.js +6 -6
  227. package/dist/collection/internal/functional-components/progress/component.js +2 -1
  228. package/dist/collection/internal/functional-components/quote/component.js +2 -2
  229. package/dist/collection/internal/functional-components/skip-nav/component.js +2 -2
  230. package/dist/collection/internal/functional-components/span/component.js +3 -2
  231. package/dist/collection/internal/functional-components/table-stateless/settings.js +12 -4
  232. package/dist/collection/internal/functional-components/tree/component.js +2 -2
  233. package/dist/collection/internal/functional-components/tree-item/component.js +2 -2
  234. package/dist/collection/schema/bem-registry.js +61 -0
  235. package/dist/collection/schema/props/aria-details.js +1 -22
  236. package/dist/collection/schema/props/aria-labelledby.js +3 -12
  237. package/dist/collection/utils/aria-labelledby.js +0 -12
  238. package/dist/components/Heading.js +1 -1
  239. package/dist/components/aria-labelledby.js +1 -1
  240. package/dist/components/base-web-component2.js +1 -1
  241. package/dist/components/base-web-component3.js +1 -1
  242. package/dist/components/base-web-component4.js +1 -1
  243. package/dist/components/base.js +1 -1
  244. package/dist/components/base2.js +1 -1
  245. package/dist/components/base3.js +1 -1
  246. package/dist/components/base4.js +1 -1
  247. package/dist/components/behavior.js +1 -1
  248. package/dist/components/behavior2.js +1 -1
  249. package/dist/components/behavior3.js +1 -1
  250. package/dist/components/behavior4.js +1 -1
  251. package/dist/components/bem-registry.js +1 -1
  252. package/dist/components/component.js +1 -1
  253. package/dist/components/component10.js +1 -1
  254. package/dist/components/component2.js +1 -1
  255. package/dist/components/component3.js +1 -1
  256. package/dist/components/component4.js +1 -1
  257. package/dist/components/component5.js +1 -1
  258. package/dist/components/component6.js +1 -1
  259. package/dist/components/component7.js +1 -1
  260. package/dist/components/component8.js +1 -1
  261. package/dist/components/component9.js +1 -1
  262. package/dist/components/contrast.js +1 -1
  263. package/dist/components/field-control.js +1 -1
  264. package/dist/components/group.js +1 -1
  265. package/dist/components/i18n2.js +1 -1
  266. package/dist/components/input-container.js +1 -1
  267. package/dist/components/input.js +1 -1
  268. package/dist/components/item2.js +1 -1
  269. package/dist/components/item4.js +1 -1
  270. package/dist/components/kol-abbr.js +1 -1
  271. package/dist/components/kol-accordion.js +1 -1
  272. package/dist/components/kol-alert.js +1 -1
  273. package/dist/components/kol-avatar.js +1 -1
  274. package/dist/components/kol-badge.js +1 -1
  275. package/dist/components/kol-breadcrumb.js +1 -1
  276. package/dist/components/kol-button-link.js +1 -1
  277. package/dist/components/kol-button.js +1 -1
  278. package/dist/components/kol-card.js +1 -1
  279. package/dist/components/kol-combobox.js +1 -1
  280. package/dist/components/kol-details.js +1 -1
  281. package/dist/components/kol-dialog.js +1 -1
  282. package/dist/components/kol-drawer.js +1 -1
  283. package/dist/components/kol-form.js +1 -1
  284. package/dist/components/kol-heading.js +1 -1
  285. package/dist/components/kol-icon.js +1 -1
  286. package/dist/components/kol-image.js +1 -1
  287. package/dist/components/kol-input-checkbox.js +1 -1
  288. package/dist/components/kol-input-color.js +1 -1
  289. package/dist/components/kol-input-date.js +1 -1
  290. package/dist/components/kol-input-email.js +1 -1
  291. package/dist/components/kol-input-file.js +1 -1
  292. package/dist/components/kol-input-number.js +1 -1
  293. package/dist/components/kol-input-password.js +1 -1
  294. package/dist/components/kol-input-radio.js +1 -1
  295. package/dist/components/kol-input-range.js +1 -1
  296. package/dist/components/kol-input-text.js +1 -1
  297. package/dist/components/kol-kolibri.js +1 -1
  298. package/dist/components/kol-link-button.js +1 -1
  299. package/dist/components/kol-link.js +1 -1
  300. package/dist/components/kol-meter.js +1 -1
  301. package/dist/components/kol-modal.js +1 -1
  302. package/dist/components/kol-nav.js +1 -1
  303. package/dist/components/kol-pagination.js +1 -1
  304. package/dist/components/kol-popover-button.js +1 -1
  305. package/dist/components/kol-progress.js +1 -1
  306. package/dist/components/kol-quote.js +1 -1
  307. package/dist/components/kol-select.js +1 -1
  308. package/dist/components/kol-single-select.js +1 -1
  309. package/dist/components/kol-skip-nav.js +1 -1
  310. package/dist/components/kol-spin.js +1 -1
  311. package/dist/components/kol-split-button.js +1 -1
  312. package/dist/components/kol-table-stateful.js +1 -1
  313. package/dist/components/kol-table-stateless.js +1 -1
  314. package/dist/components/kol-tabs.js +1 -1
  315. package/dist/components/kol-textarea.js +1 -1
  316. package/dist/components/kol-toast-container.js +1 -1
  317. package/dist/components/kol-toolbar.js +1 -1
  318. package/dist/components/kol-tooltip-wc.js +1 -1
  319. package/dist/components/kol-tree-item.js +1 -1
  320. package/dist/components/kol-tree.js +1 -1
  321. package/dist/components/kol-version.js +1 -1
  322. package/dist/components/label-hints.js +1 -1
  323. package/dist/components/label-lang-segment.js +1 -1
  324. package/dist/components/label-with-expert-slot.js +1 -1
  325. package/dist/components/level.js +1 -1
  326. package/dist/components/links.js +1 -1
  327. package/dist/components/number-value.js +1 -1
  328. package/dist/components/props-from-config.js +1 -1
  329. package/dist/components/resolve-props.js +1 -1
  330. package/dist/components/resolve-props2.js +1 -1
  331. package/dist/components/rows.js +1 -1
  332. package/dist/components/scroll-lock.js +1 -1
  333. package/dist/components/step.js +1 -1
  334. package/dist/components/toggle-handler.js +1 -1
  335. package/dist/components/unit.js +1 -1
  336. package/dist/components/validators.js +1 -1
  337. package/dist/esm/{Heading-C_CwXDMp.js → Heading-BubZbykM.js} +2 -2
  338. package/dist/esm/{api-DGiFM9p0.js → api-D0RNr-zh.js} +21 -22
  339. package/dist/esm/{app-globals-sZHZyXjD.js → app-globals-DYRte_jr.js} +2 -2
  340. package/dist/esm/{aria-labelledby-CLehu03h.js → aria-labelledby-DqJY_4G-.js} +1 -13
  341. package/dist/esm/{base-DTKJ1Z06.js → base-BP5SdLvQ.js} +39 -41
  342. package/dist/esm/{base-B4sGK9cX.js → base-BbGt9eYx.js} +10 -10
  343. package/dist/esm/{base-CWrvN3Gt.js → base-CLsKm3-e.js} +10 -10
  344. package/dist/esm/{base-P1TaQ7Ba.js → base-Cz00snD6.js} +10 -10
  345. package/dist/esm/{base-web-component-CC_gpyDb.js → base-web-component-CYPdDdRn.js} +1 -1
  346. package/dist/esm/{base-web-component-CKgIOZqi.js → base-web-component-CdSFFCst.js} +8 -10
  347. package/dist/esm/{base-web-component-Bq_B9edx.js → base-web-component-DP9_OPgV.js} +13 -14
  348. package/dist/esm/{behavior-Bb7JYoUn.js → behavior-B6y5Gofe.js} +4 -4
  349. package/dist/esm/{behavior-CFG1f4KQ.js → behavior-BJR8CKBx.js} +4 -4
  350. package/dist/esm/{behavior-CkPQGfgo.js → behavior-DlH8byIw.js} +6 -12
  351. package/dist/esm/{bem-registry-DQUGxdIS.js → bem-registry-SKACeCny.js} +61 -0
  352. package/dist/esm/{bootstrap-tgQ2nQQI.js → bootstrap-Bp7i4RJQ.js} +1 -1
  353. package/dist/esm/{color-D1gM-F2l.js → color-BbljGuAW.js} +2 -2
  354. package/dist/esm/component-6_YiKr2Z.js +48 -0
  355. package/dist/esm/{component-W1KZI4h4.js → component-B8UMedaK.js} +4 -4
  356. package/dist/esm/{component-5Uu-ahLC.js → component-CMHB3reH.js} +6 -5
  357. package/dist/esm/{component-B16Fbp3W.js → component-CNgECeRi.js} +9 -11
  358. package/dist/esm/{component-Bc2pdOk1.js → component-CSsUaL_h.js} +6 -8
  359. package/dist/esm/{component-DAQzDMY8.js → component-CiJGQTU0.js} +13 -15
  360. package/dist/esm/{component-C79oAu7a.js → component-DEwcJKDA.js} +4 -4
  361. package/dist/esm/{component-CldKbBUh.js → component-NOe28NXD.js} +5 -6
  362. package/dist/esm/{component-BI8jDgBz.js → component-ZdHnXLLI.js} +10 -11
  363. package/dist/esm/component-bIIx1x7q.js +17 -0
  364. package/dist/esm/{component-oUQcgxDj.js → component-hiabKVP3.js} +6 -7
  365. package/dist/esm/{contrast-BNoQruBh.js → contrast-DtK0a6X2.js} +1 -1
  366. package/dist/esm/{dev.utils-DDWOHUcg.js → dev.utils-B0t4rcBV.js} +1 -1
  367. package/dist/esm/{devtools-B0kEE_za.js → devtools-DuJRc6wJ.js} +2 -2
  368. package/dist/esm/{disabled-BZXlWAgK.js → disabled-B2o4Ctgy.js} +1 -1
  369. package/dist/esm/{field-control-DsQHa0v9.js → field-control-C9dIXnES.js} +7 -7
  370. package/dist/esm/{group-DUVsgWxS.js → group-DydT1Z92.js} +5 -6
  371. package/dist/esm/{has-closer-DUB0QcS9.js → has-closer-BrG00xL7.js} +1 -1
  372. package/dist/esm/{href-CxokGOJ2.js → href-CfNF4pHX.js} +1 -1
  373. package/dist/esm/{i18n-ePBcLlCr.js → i18n-BLkzMf6D.js} +1 -1
  374. package/dist/esm/{i18n-4J6U3ZDc.js → i18n-BRgvVqCf.js} +2 -1
  375. package/dist/esm/{id-BI0ZuK17.js → id-Bh4FF8c0.js} +1 -1
  376. package/dist/esm/{index-Dulj0jro.js → index-Bbr6Os1b.js} +1 -1
  377. package/dist/esm/index.js +4 -4
  378. package/dist/esm/{input-C0Li7DsE.js → input-C1YsxnDL.js} +4 -5
  379. package/dist/esm/{input-container-DmtMTcjB.js → input-container-zXl_6y52.js} +6 -8
  380. package/dist/esm/{item-CnJMuEyl.js → item-DXDEHrEg.js} +4 -4
  381. package/dist/esm/{item-DHZGDrAn.js → item-Dms_59sU.js} +11 -11
  382. package/dist/esm/{item-8RKFpmbd.js → item-hsQoejqZ.js} +4 -4
  383. package/dist/esm/{item-CxVe5INa.js → item-zXunNZh5.js} +17 -18
  384. package/dist/esm/kol-abbr.entry.js +7 -11
  385. package/dist/esm/kol-accordion.entry.js +15 -17
  386. package/dist/esm/kol-alert.entry.js +27 -30
  387. package/dist/esm/kol-avatar.entry.js +14 -15
  388. package/dist/esm/kol-badge.entry.js +23 -26
  389. package/dist/esm/kol-breadcrumb.entry.js +26 -30
  390. package/dist/esm/kol-button-link.entry.js +22 -25
  391. package/dist/esm/kol-button.entry.js +22 -25
  392. package/dist/esm/kol-card.entry.js +27 -30
  393. package/dist/esm/kol-combobox.entry.js +37 -40
  394. package/dist/esm/kol-details.entry.js +15 -17
  395. package/dist/esm/kol-dialog.entry.js +30 -33
  396. package/dist/esm/kol-drawer.entry.js +30 -33
  397. package/dist/esm/kol-form.entry.js +23 -26
  398. package/dist/esm/kol-heading.entry.js +13 -15
  399. package/dist/esm/kol-icon.entry.js +8 -9
  400. package/dist/esm/kol-image.entry.js +7 -9
  401. package/dist/esm/kol-input-checkbox.entry.js +48 -50
  402. package/dist/esm/kol-input-color.entry.js +42 -44
  403. package/dist/esm/kol-input-date.entry.js +44 -47
  404. package/dist/esm/kol-input-email.entry.js +45 -47
  405. package/dist/esm/kol-input-file.entry.js +39 -41
  406. package/dist/esm/kol-input-number.entry.js +46 -48
  407. package/dist/esm/kol-input-password.entry.js +43 -45
  408. package/dist/esm/kol-input-radio.entry.js +35 -38
  409. package/dist/esm/kol-input-range.entry.js +37 -40
  410. package/dist/esm/kol-input-text.entry.js +45 -47
  411. package/dist/esm/kol-kolibri.entry.js +7 -11
  412. package/dist/esm/kol-link-button.entry.js +23 -26
  413. package/dist/esm/kol-link.entry.js +23 -26
  414. package/dist/esm/kol-meter.entry.js +14 -15
  415. package/dist/esm/kol-modal.entry.js +30 -33
  416. package/dist/esm/kol-nav.entry.js +30 -33
  417. package/dist/esm/kol-pagination.entry.js +42 -45
  418. package/dist/esm/kol-popover-button.entry.js +23 -26
  419. package/dist/esm/kol-progress.entry.js +13 -14
  420. package/dist/esm/kol-quote.entry.js +9 -10
  421. package/dist/esm/kol-select.entry.js +36 -39
  422. package/dist/esm/kol-single-select.entry.js +37 -40
  423. package/dist/esm/kol-skip-nav.entry.js +26 -30
  424. package/dist/esm/kol-spin.entry.js +11 -15
  425. package/dist/esm/kol-split-button.entry.js +26 -29
  426. package/dist/esm/kol-table-stateful.entry.js +55 -57
  427. package/dist/esm/kol-table-stateless.entry.js +40 -44
  428. package/dist/esm/kol-tabs.entry.js +22 -25
  429. package/dist/esm/kol-textarea.entry.js +39 -42
  430. package/dist/esm/kol-toast-container.entry.js +19 -22
  431. package/dist/esm/kol-toolbar.entry.js +27 -30
  432. package/dist/esm/kol-tooltip-wc.entry.js +11 -12
  433. package/dist/esm/kol-tree-item.entry.js +27 -28
  434. package/dist/esm/kol-tree.entry.js +24 -14
  435. package/dist/esm/kol-version.entry.js +20 -23
  436. package/dist/esm/kolibri.js +4 -4
  437. package/dist/esm/{label-B-Dr7VaP.js → label-BQVd3bkc.js} +3 -3
  438. package/dist/esm/{label-hints-CLMiVvfk.js → label-hints-CZGo9ZD5.js} +1 -1
  439. package/dist/esm/{label-lang-segment-iVD9hoM3.js → label-lang-segment-C5LYGOHt.js} +2 -2
  440. package/dist/esm/label-with-expert-slot-D1tpX9DI.js +12 -0
  441. package/dist/esm/{level-DsQ_pcyD.js → level-BVXGgbSM.js} +1 -1
  442. package/dist/esm/{link-target-D7lYILOV.js → link-target-BWPSEd9a.js} +1 -1
  443. package/dist/esm/{links-IkK4zoXw.js → links-BbsnNXfa.js} +1 -1
  444. package/dist/esm/loader.js +4 -4
  445. package/dist/esm/{multiple--ay1C1n3.js → multiple-S3Ol1G6Z.js} +1 -1
  446. package/dist/esm/{number-value-Dl9-2O4r.js → number-value-DmOl1z7z.js} +1 -1
  447. package/dist/esm/{open-CNHJhHsy.js → open-DPP79Urq.js} +1 -1
  448. package/dist/esm/{options-DwO32GBF.js → options-aA3M-QV2.js} +1 -1
  449. package/dist/esm/{orientation-ChJ0S24M.js → orientation-DlsgaY1v.js} +1 -1
  450. package/dist/esm/{placeholder-UxmBJ4Vl.js → placeholder-DlHbiVjz.js} +1 -1
  451. package/dist/esm/{props-from-config-ytxYrJUY.js → props-from-config-BOUcpF7e.js} +84 -6
  452. package/dist/esm/{read-only-DytZ5HZJ.js → read-only-DSBWEPED.js} +1 -1
  453. package/dist/esm/{required-BriHhuO4.js → required-xw5BBPvV.js} +1 -1
  454. package/dist/esm/{resolve-props-02J6OCRf.js → resolve-props-CL8wxjtP.js} +7 -7
  455. package/dist/esm/{resolve-props-Bj6IaybL.js → resolve-props-DAVb5BM3.js} +6 -6
  456. package/dist/esm/{rows-I1jrTjzU.js → rows-DRV8YlQv.js} +1 -1
  457. package/dist/esm/{scroll-lock-B6hVv8A8.js → scroll-lock-BxAe0gL5.js} +9 -7
  458. package/dist/esm/{smart-button-DM5g48-g.js → smart-button-CQps8AlL.js} +1 -1
  459. package/dist/esm/{spell-check-BWCnJG5v.js → spell-check-hy6xFhmT.js} +1 -1
  460. package/dist/esm/{src-ziOwSglN.js → src-AwoM1pRe.js} +1 -1
  461. package/dist/esm/{step-BcyhvRtu.js → step-CopA0_m7.js} +1 -1
  462. package/dist/esm/{suggestions-DaB3FVaz.js → suggestions-BsiiaAxK.js} +3 -3
  463. package/dist/esm/{suggestions-LO267l8F.js → suggestions-CY8BJMOa.js} +1 -1
  464. package/dist/esm/test-component.entry.js +1 -1
  465. package/dist/esm/{toggle-handler-3qaN2kmt.js → toggle-handler-ZMs2rBXc.js} +10 -12
  466. package/dist/esm/{unique-nav-labels-CxFUYSVY.js → unique-nav-labels-BV-M3fPR.js} +1 -1
  467. package/dist/esm/{unit-1ix-K9SD.js → unit-hmMwqE9a.js} +1 -1
  468. package/dist/esm/{validators-CTjxOidB.js → validators-BgDmq-Qt.js} +1 -1
  469. package/dist/esm/{value-string-CxDz7dhD.js → value-string-Dy8zJxlP.js} +1 -1
  470. package/dist/esm/{width-C1_yZHyL.js → width-BHn7XHj_.js} +1 -1
  471. package/dist/kolibri/Heading-BubZbykM.js +4 -0
  472. package/dist/kolibri/api-D0RNr-zh.js +4 -0
  473. package/dist/kolibri/app-globals-DYRte_jr.js +4 -0
  474. package/dist/kolibri/aria-labelledby-DqJY_4G-.js +4 -0
  475. package/dist/kolibri/base-BP5SdLvQ.js +4 -0
  476. package/dist/kolibri/base-BbGt9eYx.js +4 -0
  477. package/dist/kolibri/base-CLsKm3-e.js +4 -0
  478. package/dist/kolibri/base-Cz00snD6.js +4 -0
  479. package/dist/kolibri/{base-web-component-CC_gpyDb.js → base-web-component-CYPdDdRn.js} +1 -1
  480. package/dist/kolibri/base-web-component-CdSFFCst.js +4 -0
  481. package/dist/kolibri/base-web-component-DP9_OPgV.js +4 -0
  482. package/dist/kolibri/{behavior-Bb7JYoUn.js → behavior-B6y5Gofe.js} +1 -1
  483. package/dist/kolibri/{behavior-CFG1f4KQ.js → behavior-BJR8CKBx.js} +1 -1
  484. package/dist/kolibri/behavior-DlH8byIw.js +4 -0
  485. package/dist/kolibri/bem-registry-SKACeCny.js +4 -0
  486. package/dist/kolibri/{bootstrap-tgQ2nQQI.js → bootstrap-Bp7i4RJQ.js} +1 -1
  487. package/dist/kolibri/{color-D1gM-F2l.js → color-BbljGuAW.js} +1 -1
  488. package/dist/kolibri/component-6_YiKr2Z.js +4 -0
  489. package/dist/kolibri/{component-W1KZI4h4.js → component-B8UMedaK.js} +1 -1
  490. package/dist/kolibri/component-CMHB3reH.js +4 -0
  491. package/dist/kolibri/component-CNgECeRi.js +4 -0
  492. package/dist/kolibri/{component-Bc2pdOk1.js → component-CSsUaL_h.js} +1 -1
  493. package/dist/kolibri/component-CiJGQTU0.js +4 -0
  494. package/dist/kolibri/component-DEwcJKDA.js +4 -0
  495. package/dist/kolibri/component-NOe28NXD.js +4 -0
  496. package/dist/kolibri/component-ZdHnXLLI.js +4 -0
  497. package/dist/kolibri/component-bIIx1x7q.js +4 -0
  498. package/dist/kolibri/component-hiabKVP3.js +4 -0
  499. package/dist/kolibri/contrast-DtK0a6X2.js +4 -0
  500. package/dist/kolibri/{dev.utils-DDWOHUcg.js → dev.utils-B0t4rcBV.js} +1 -1
  501. package/dist/kolibri/{devtools-B0kEE_za.js → devtools-DuJRc6wJ.js} +1 -1
  502. package/dist/kolibri/disabled-B2o4Ctgy.js +4 -0
  503. package/dist/kolibri/field-control-C9dIXnES.js +4 -0
  504. package/dist/kolibri/group-DydT1Z92.js +4 -0
  505. package/dist/kolibri/has-closer-BrG00xL7.js +4 -0
  506. package/dist/kolibri/href-CfNF4pHX.js +4 -0
  507. package/dist/kolibri/{i18n-ePBcLlCr.js → i18n-BLkzMf6D.js} +1 -1
  508. package/dist/kolibri/{i18n-4J6U3ZDc.js → i18n-BRgvVqCf.js} +1 -1
  509. package/dist/kolibri/id-Bh4FF8c0.js +4 -0
  510. package/dist/kolibri/index-Bbr6Os1b.js +6 -0
  511. package/dist/kolibri/index.esm.js +1 -1
  512. package/dist/kolibri/input-C1YsxnDL.js +4 -0
  513. package/dist/kolibri/{input-container-DmtMTcjB.js → input-container-zXl_6y52.js} +1 -1
  514. package/dist/kolibri/item-DXDEHrEg.js +4 -0
  515. package/dist/kolibri/item-Dms_59sU.js +4 -0
  516. package/dist/kolibri/item-hsQoejqZ.js +4 -0
  517. package/dist/kolibri/item-zXunNZh5.js +4 -0
  518. package/dist/kolibri/kol-abbr.entry.js +1 -1
  519. package/dist/kolibri/kol-accordion.entry.js +1 -1
  520. package/dist/kolibri/kol-alert.entry.js +1 -1
  521. package/dist/kolibri/kol-avatar.entry.js +1 -1
  522. package/dist/kolibri/kol-badge.entry.js +1 -1
  523. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  524. package/dist/kolibri/kol-button-link.entry.js +1 -1
  525. package/dist/kolibri/kol-button.entry.js +1 -1
  526. package/dist/kolibri/kol-card.entry.js +1 -1
  527. package/dist/kolibri/kol-combobox.entry.js +1 -1
  528. package/dist/kolibri/kol-details.entry.js +1 -1
  529. package/dist/kolibri/kol-dialog.entry.js +1 -1
  530. package/dist/kolibri/kol-drawer.entry.js +1 -1
  531. package/dist/kolibri/kol-form.entry.js +1 -1
  532. package/dist/kolibri/kol-heading.entry.js +1 -1
  533. package/dist/kolibri/kol-icon.entry.js +1 -1
  534. package/dist/kolibri/kol-image.entry.js +1 -1
  535. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  536. package/dist/kolibri/kol-input-color.entry.js +1 -1
  537. package/dist/kolibri/kol-input-date.entry.js +1 -1
  538. package/dist/kolibri/kol-input-email.entry.js +1 -1
  539. package/dist/kolibri/kol-input-file.entry.js +1 -1
  540. package/dist/kolibri/kol-input-number.entry.js +1 -1
  541. package/dist/kolibri/kol-input-password.entry.js +1 -1
  542. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  543. package/dist/kolibri/kol-input-range.entry.js +1 -1
  544. package/dist/kolibri/kol-input-text.entry.js +1 -1
  545. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  546. package/dist/kolibri/kol-link-button.entry.js +1 -1
  547. package/dist/kolibri/kol-link.entry.js +1 -1
  548. package/dist/kolibri/kol-meter.entry.js +1 -1
  549. package/dist/kolibri/kol-modal.entry.js +1 -1
  550. package/dist/kolibri/kol-nav.entry.js +1 -1
  551. package/dist/kolibri/kol-pagination.entry.js +1 -1
  552. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  553. package/dist/kolibri/kol-progress.entry.js +1 -1
  554. package/dist/kolibri/kol-quote.entry.js +1 -1
  555. package/dist/kolibri/kol-select.entry.js +1 -1
  556. package/dist/kolibri/kol-single-select.entry.js +1 -1
  557. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  558. package/dist/kolibri/kol-spin.entry.js +1 -1
  559. package/dist/kolibri/kol-split-button.entry.js +1 -1
  560. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  561. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  562. package/dist/kolibri/kol-tabs.entry.js +1 -1
  563. package/dist/kolibri/kol-textarea.entry.js +1 -1
  564. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  565. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  566. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  567. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  568. package/dist/kolibri/kol-tree.entry.js +1 -1
  569. package/dist/kolibri/kol-version.entry.js +1 -1
  570. package/dist/kolibri/kolibri.esm.js +1 -1
  571. package/dist/kolibri/label-BQVd3bkc.js +4 -0
  572. package/dist/kolibri/label-hints-CZGo9ZD5.js +4 -0
  573. package/dist/kolibri/label-lang-segment-C5LYGOHt.js +4 -0
  574. package/dist/kolibri/label-with-expert-slot-D1tpX9DI.js +4 -0
  575. package/dist/kolibri/level-BVXGgbSM.js +4 -0
  576. package/dist/kolibri/link-target-BWPSEd9a.js +4 -0
  577. package/dist/kolibri/{links-IkK4zoXw.js → links-BbsnNXfa.js} +1 -1
  578. package/dist/kolibri/multiple-S3Ol1G6Z.js +4 -0
  579. package/dist/kolibri/number-value-DmOl1z7z.js +4 -0
  580. package/dist/kolibri/open-DPP79Urq.js +4 -0
  581. package/dist/kolibri/{options-DwO32GBF.js → options-aA3M-QV2.js} +1 -1
  582. package/dist/kolibri/orientation-DlsgaY1v.js +4 -0
  583. package/dist/kolibri/placeholder-DlHbiVjz.js +4 -0
  584. package/dist/kolibri/props-from-config-BOUcpF7e.js +4 -0
  585. package/dist/kolibri/read-only-DSBWEPED.js +4 -0
  586. package/dist/kolibri/required-xw5BBPvV.js +4 -0
  587. package/dist/kolibri/resolve-props-CL8wxjtP.js +4 -0
  588. package/dist/kolibri/resolve-props-DAVb5BM3.js +4 -0
  589. package/dist/kolibri/rows-DRV8YlQv.js +4 -0
  590. package/dist/kolibri/scroll-lock-BxAe0gL5.js +4 -0
  591. package/dist/kolibri/{smart-button-DM5g48-g.js → smart-button-CQps8AlL.js} +1 -1
  592. package/dist/kolibri/spell-check-hy6xFhmT.js +4 -0
  593. package/dist/kolibri/src-AwoM1pRe.js +4 -0
  594. package/dist/kolibri/step-CopA0_m7.js +4 -0
  595. package/dist/kolibri/{suggestions-DaB3FVaz.js → suggestions-BsiiaAxK.js} +1 -1
  596. package/dist/kolibri/{suggestions-LO267l8F.js → suggestions-CY8BJMOa.js} +1 -1
  597. package/dist/kolibri/test-component.entry.js +1 -1
  598. package/dist/kolibri/toggle-handler-ZMs2rBXc.js +4 -0
  599. package/dist/kolibri/unique-nav-labels-BV-M3fPR.js +4 -0
  600. package/dist/kolibri/unit-hmMwqE9a.js +4 -0
  601. package/dist/kolibri/validators-BgDmq-Qt.js +4 -0
  602. package/dist/kolibri/value-string-Dy8zJxlP.js +4 -0
  603. package/dist/kolibri/{width-C1_yZHyL.js → width-BHn7XHj_.js} +1 -1
  604. package/dist/types/components/alert/component.d.ts +1 -0
  605. package/dist/types/components/input-date/component.d.ts +1 -1
  606. package/dist/types/components/table-stateful/component.d.ts +0 -1
  607. package/dist/types/components/table-stateless/component.d.ts +0 -1
  608. package/dist/types/components/tree/component.d.ts +1 -0
  609. package/dist/types/components.d.ts +6 -6
  610. package/dist/types/internal/functional-components/bem-root-node/component.d.ts +8 -4
  611. package/dist/types/internal/functional-components/button/item.d.ts +1 -1
  612. package/dist/types/internal/functional-components/dialog/component.d.ts +7 -3
  613. package/dist/types/internal/functional-components/form-association/api.d.ts +1 -1
  614. package/dist/types/internal/functional-components/form-association/behavior.d.ts +0 -1
  615. package/dist/types/internal/functional-components/pagination/item.d.ts +4 -2
  616. package/dist/types/schema/bem-registry.d.ts +89 -0
  617. package/dist/types/schema/props/aria-details.d.ts +0 -2
  618. package/dist/types/schema/props/aria-labelledby.d.ts +1 -2
  619. package/dist/types/utils/aria-labelledby.d.ts +0 -6
  620. package/doc/pagination.md +13 -13
  621. package/doc/table-stateful.md +16 -16
  622. package/doc/table-stateless.md +14 -14
  623. package/package.json +10 -5
  624. package/vscode-custom-data.json +3 -3
  625. package/dist/cjs/block-bem-ByCgFI2B.js +0 -18
  626. package/dist/cjs/clsx-Bm_HQUnh.js +0 -54
  627. package/dist/cjs/component-1J4G5HmZ.js +0 -53
  628. package/dist/cjs/component-CjXcCX2V.js +0 -20
  629. package/dist/cjs/component-DkV9oPCL.js +0 -18
  630. package/dist/cjs/input-BKXEykG_.js +0 -20
  631. package/dist/components/block-bem.js +0 -4
  632. package/dist/components/clsx.js +0 -4
  633. package/dist/components/component11.js +0 -4
  634. package/dist/esm/block-bem-BGIVcYJu.js +0 -16
  635. package/dist/esm/clsx-COFh-Vc8.js +0 -52
  636. package/dist/esm/component-B05zRrM0.js +0 -16
  637. package/dist/esm/component-Clz6b6ho.js +0 -18
  638. package/dist/esm/component-Ct11K0Gv.js +0 -48
  639. package/dist/esm/label-with-expert-slot-BbZ9nx0l.js +0 -12
  640. package/dist/kolibri/Heading-C_CwXDMp.js +0 -4
  641. package/dist/kolibri/api-DGiFM9p0.js +0 -4
  642. package/dist/kolibri/app-globals-sZHZyXjD.js +0 -4
  643. package/dist/kolibri/aria-labelledby-CLehu03h.js +0 -4
  644. package/dist/kolibri/base-B4sGK9cX.js +0 -4
  645. package/dist/kolibri/base-CWrvN3Gt.js +0 -4
  646. package/dist/kolibri/base-DTKJ1Z06.js +0 -4
  647. package/dist/kolibri/base-P1TaQ7Ba.js +0 -4
  648. package/dist/kolibri/base-web-component-Bq_B9edx.js +0 -4
  649. package/dist/kolibri/base-web-component-CKgIOZqi.js +0 -4
  650. package/dist/kolibri/behavior-CkPQGfgo.js +0 -4
  651. package/dist/kolibri/bem-registry-DQUGxdIS.js +0 -4
  652. package/dist/kolibri/block-bem-BGIVcYJu.js +0 -4
  653. package/dist/kolibri/clsx-COFh-Vc8.js +0 -4
  654. package/dist/kolibri/component-5Uu-ahLC.js +0 -4
  655. package/dist/kolibri/component-B05zRrM0.js +0 -4
  656. package/dist/kolibri/component-B16Fbp3W.js +0 -4
  657. package/dist/kolibri/component-BI8jDgBz.js +0 -4
  658. package/dist/kolibri/component-C79oAu7a.js +0 -4
  659. package/dist/kolibri/component-CldKbBUh.js +0 -4
  660. package/dist/kolibri/component-Clz6b6ho.js +0 -4
  661. package/dist/kolibri/component-Ct11K0Gv.js +0 -4
  662. package/dist/kolibri/component-DAQzDMY8.js +0 -4
  663. package/dist/kolibri/component-oUQcgxDj.js +0 -4
  664. package/dist/kolibri/contrast-BNoQruBh.js +0 -4
  665. package/dist/kolibri/disabled-BZXlWAgK.js +0 -4
  666. package/dist/kolibri/field-control-DsQHa0v9.js +0 -4
  667. package/dist/kolibri/group-DUVsgWxS.js +0 -4
  668. package/dist/kolibri/has-closer-DUB0QcS9.js +0 -4
  669. package/dist/kolibri/href-CxokGOJ2.js +0 -4
  670. package/dist/kolibri/id-BI0ZuK17.js +0 -4
  671. package/dist/kolibri/index-Dulj0jro.js +0 -6
  672. package/dist/kolibri/input-C0Li7DsE.js +0 -4
  673. package/dist/kolibri/item-8RKFpmbd.js +0 -4
  674. package/dist/kolibri/item-CnJMuEyl.js +0 -4
  675. package/dist/kolibri/item-CxVe5INa.js +0 -4
  676. package/dist/kolibri/item-DHZGDrAn.js +0 -4
  677. package/dist/kolibri/label-B-Dr7VaP.js +0 -4
  678. package/dist/kolibri/label-hints-CLMiVvfk.js +0 -4
  679. package/dist/kolibri/label-lang-segment-iVD9hoM3.js +0 -4
  680. package/dist/kolibri/label-with-expert-slot-BbZ9nx0l.js +0 -4
  681. package/dist/kolibri/level-DsQ_pcyD.js +0 -4
  682. package/dist/kolibri/link-target-D7lYILOV.js +0 -4
  683. package/dist/kolibri/multiple--ay1C1n3.js +0 -4
  684. package/dist/kolibri/number-value-Dl9-2O4r.js +0 -4
  685. package/dist/kolibri/open-CNHJhHsy.js +0 -4
  686. package/dist/kolibri/orientation-ChJ0S24M.js +0 -4
  687. package/dist/kolibri/placeholder-UxmBJ4Vl.js +0 -4
  688. package/dist/kolibri/props-from-config-ytxYrJUY.js +0 -4
  689. package/dist/kolibri/read-only-DytZ5HZJ.js +0 -4
  690. package/dist/kolibri/required-BriHhuO4.js +0 -4
  691. package/dist/kolibri/resolve-props-02J6OCRf.js +0 -4
  692. package/dist/kolibri/resolve-props-Bj6IaybL.js +0 -4
  693. package/dist/kolibri/rows-I1jrTjzU.js +0 -4
  694. package/dist/kolibri/scroll-lock-B6hVv8A8.js +0 -4
  695. package/dist/kolibri/spell-check-BWCnJG5v.js +0 -4
  696. package/dist/kolibri/src-ziOwSglN.js +0 -4
  697. package/dist/kolibri/step-BcyhvRtu.js +0 -4
  698. package/dist/kolibri/toggle-handler-3qaN2kmt.js +0 -4
  699. package/dist/kolibri/unique-nav-labels-CxFUYSVY.js +0 -4
  700. package/dist/kolibri/unit-1ix-K9SD.js +0 -4
  701. package/dist/kolibri/validators-CTjxOidB.js +0 -4
  702. package/dist/kolibri/value-string-CxDz7dhD.js +0 -4
@@ -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{F as a}from"./base-web-component2.js";import{I as l}from"./input.js";import{I as r}from"./input-container.js";import"./bem-registry.js";import"./props-from-config.js";import{m as s}from"./multiple.js";import{s as c}from"./suggestions.js";import{t as h,B as d}from"./base-web-component3.js";import{c as k}from"./dev.utils.js";import{d as m,a as p}from"./element-interaction.js";const u={required:[...h.required],optional:[...h.optional,s,c]},f=t(class extends d{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=k("input-email"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.propsConfig=u,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._multiple=!1,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._suggestions=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this._variant=void 0,this.initFormAssociation("email",this._name)}watchAccessKey(t){this.applyAccessKey(t)}watchAriaDetails(t){this.applyAriaDetails(t)}watchAutoComplete(t){this.applyAutoComplete(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)}watchMultiple(t){s.apply(t,(t=>this.setRenderProp("multiple",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)}watchSuggestions(t){c.apply(t,(t=>this.setRenderProp("suggestions",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)}getValue(){var t;return Promise.resolve(null===(t=this.ctaRef.el)||void 0===t?void 0:t.value)}focus(t){return Promise.resolve()}async click(){return Promise.resolve()}componentWillLoad(){this.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.watchMultiple(this._multiple),this.initValue(this._value),this.initHasValue()}componentDidLoad(){this.didLoadTextInput()}componentDidUpdate(){this.didUpdateTextInput()}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyTextInput()}render(){const{startAdornment:t,endAdornment:i}=this.getTextInputAdornments();return o(e,{key:"2157f9be8cf3316767455de058c51fc3ebc9a754"},o(a,Object.assign({key:"fcbceceedb6aeac3e0eaee00bf9b9dc3b19a1e74"},this.getTextFormFieldProps("kol-input-email email")),o(r,{key:"294d96f944a343a674c57600b56f39eb8e3a4901",disabled:this.getRenderProp("disabled"),msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:t,endAdornment:i},o(l,Object.assign({key:"d0a7c626261c6b160e055ef201410f98fe9a0aa5"},this.getTextInputProps({multiple:this.getRenderProp("multiple"),suggestions:this.getRenderProp("suggestions")},{type:"email"}))))))}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}],_multiple:[{watchMultiple: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}],_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=1794582088003"); src: url("kolicons.eot?t=1794582088003#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794582088003") format("woff2"), url("kolicons.woff?t=1794582088003") format("woff"), url("kolicons.ttf?t=1794582088003") format("truetype"), url("kolicons.svg?t=1794582088003#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-button { background-color: transparent; display: inline-block; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); margin: 0; padding: 0; text-align: center; } .kol-button__interactive-element { border-style: none; display: block; border-width: medium; font-weight: inherit; font-style: inherit; text-align: inherit; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: "​"; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-form-field .kol-popover-button { display: inline; } .kol-form-field .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-form-field .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-form-field .kol-popover-button--inline { display: inline-block; } .kol-form-field .kol-popover-button--inline .kol-button, .kol-form-field .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-form-field .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-form-field .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-form-field { display: grid; } .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label { cursor: pointer; } .kol-form-field__label { display: flex; } .kol-form-field__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-form-field--required .kol-form-field__label-text:has(.kol-span__slot[hidden]) .kol-span__label::after, .kol-form-field--required:not(:has(.kol-form-field__label--legend)) .kol-form-field__input .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-input-container { background-color: transparent; display: grid; position: relative; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; grid-template-columns: 1fr; } .kol-input-container:has(> .kol-input-container__adornment--start) { grid-template-columns: auto 1fr auto; } .kol-input-container__container { position: relative; z-index: 1; } .kol-input-container__adornment { display: flex; align-items: center; } .kol-input-container__adornment .kol-icon { display: grid; place-items: center; } .kol-input { background-color: transparent; width: 100%; min-width: var(--a11y-min-size); } }'}}},[545,"kol-input-email",{_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],_multiple:[4],_name:[1],_on:[16],_pattern:[1],_placeholder:[1],_readOnly:[4,"_read-only"],_required:[4],_shortKey:[1,"_short-key"],_smartButton:[1,"_smart-button"],_suggestions:[1],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[1537],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],getValue:[64],focus:[64],click:[64]},void 0,{_accessKey:[{watchAccessKey:0}],_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}],_multiple:[{watchMultiple: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}],_suggestions:[{watchSuggestions:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]);n([m("ctaRef")],f.prototype,"focus",null),n([p("ctaRef")],f.prototype,"click",null);const _=f,b=function(){"undefined"!=typeof customElements&&["kol-input-email"].forEach((t=>{"kol-input-email"===t&&(customElements.get(i(t))||customElements.define(i(t),f))}))};export{_ as KolInputEmail,b 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{F as a}from"./base-web-component2.js";import{I as l}from"./input.js";import{I as r}from"./input-container.js";import{b as s}from"./bem-registry.js";import{e as c}from"./props-from-config.js";import{m as h}from"./multiple.js";import{s as d}from"./suggestions.js";import{t as m,B as k}from"./base-web-component3.js";import{c as u}from"./dev.utils.js";import{d as p,a as b}from"./element-interaction.js";const f={required:[...m.required],optional:[...m.optional,h,d]},_=s.forBlock("kol-input-email"),g=t(class extends k{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=u("input-email"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.propsConfig=f,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._multiple=!1,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._suggestions=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this._variant=void 0,this.initFormAssociation("email",this._name)}watchAccessKey(t){this.applyAccessKey(t)}watchAriaDetails(t){this.applyAriaDetails(t)}watchAutoComplete(t){this.applyAutoComplete(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)}watchMultiple(t){h.apply(t,(t=>this.setRenderProp("multiple",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)}watchSuggestions(t){d.apply(t,(t=>this.setRenderProp("suggestions",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)}getValue(){var t;return Promise.resolve(null===(t=this.ctaRef.el)||void 0===t?void 0:t.value)}focus(t){return Promise.resolve()}async click(){return Promise.resolve()}componentWillLoad(){this.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.watchMultiple(this._multiple),this.initValue(this._value),this.initHasValue()}componentDidLoad(){this.didLoadTextInput()}componentDidUpdate(){this.didUpdateTextInput()}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyTextInput()}render(){const{startAdornment:t,endAdornment:i}=this.getTextInputAdornments();return e(o,{key:"08ae831267744fd7c98322a547fbad1077d3b1f8"},e(a,Object.assign({key:"743984d398c11dba015d5b8c1427f0d90ae180ef"},this.getTextFormFieldProps(c(_(),"email"))),e(r,{key:"ad202484cc40752e0def2e081af9683d39556ef7",disabled:this.getRenderProp("disabled"),msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:t,endAdornment:i},e(l,Object.assign({key:"22bea72e7b9dc3a58a68a9a5e60806e1fa16c306"},this.getTextInputProps({multiple:this.getRenderProp("multiple"),suggestions:this.getRenderProp("suggestions")},{type:"email"}))))))}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}],_multiple:[{watchMultiple: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}],_suggestions:[{watchSuggestions:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-meter meter { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-bar { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-optimum-value, .kol-meter meter::-webkit-meter-suboptimum-value, .kol-meter meter::-webkit-meter-even-less-good-value { background-color: CanvasText; } .kol-meter meter::-moz-meter-bar { background-color: CanvasText; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794998877659"); src: url("kolicons.eot?t=1794998877659#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794998877659") format("woff2"), url("kolicons.woff?t=1794998877659") format("woff"), url("kolicons.ttf?t=1794998877659") format("truetype"), url("kolicons.svg?t=1794998877659#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); } }'}}},[545,"kol-input-email",{_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],_multiple:[4],_name:[1],_on:[16],_pattern:[1],_placeholder:[1],_readOnly:[4,"_read-only"],_required:[4],_shortKey:[1,"_short-key"],_smartButton:[1,"_smart-button"],_suggestions:[1],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[1537],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],getValue:[64],focus:[64],click:[64]},void 0,{_accessKey:[{watchAccessKey:0}],_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}],_multiple:[{watchMultiple: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}],_suggestions:[{watchSuggestions:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]);n([p("ctaRef")],g.prototype,"focus",null),n([b("ctaRef")],g.prototype,"click",null);const w=g,y=function(){"undefined"!=typeof customElements&&["kol-input-email"].forEach((t=>{"kol-input-email"===t&&(customElements.get(i(t))||customElements.define(i(t),g))}))};export{w as KolInputEmail,y 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 l}from"./access-and-short-key.js";import{t as a}from"./i18n.js";import{B as r}from"./component9.js";import{c as s}from"./item.js";import{h as c,g as h,I as d}from"./input-container.js";import{f as k,B as p,F as u}from"./base-web-component2.js";import{I as f}from"./input.js";import{c as m,b}from"./props-from-config.js";import{a as _,d as g,v as y}from"./component3.js";import{b as w}from"./bem-registry.js";import{m as v}from"./multiple.js";import{r as x}from"./required.js";import{s as B}from"./smart-button.js";import{c as j}from"./dev.utils.js";import{c as z,d as K,a as T}from"./element-interaction.js";const A=m("accept",void 0,b);function S(t){if(null==t?void 0:t.length)return Array.from(t).map((t=>t.name)).join(", ")}const D={required:[...k.required],optional:[...k.optional,A,_,c,v,x,g,B,y]},q=w.forBlock("kol-input-container"),L=q("button"),I=({filename:e,hasFile:o})=>t("span",{class:q("filename",{"has-file":o})},e),M=e(class extends p{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=j("input-file"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.translateFilenameText=a("kol-filename-text"),this.filename=this.translateFilenameText,this.hasFileSelected=!1,this.isDragover=!1,this.ctaRef=z(),this.translateDataBrowseText=a("kol-data-browse-text"),this.browseButton=s((()=>this.host)),this.propsConfig=D,this._accept=void 0,this._accessKey=void 0,this._ariaDetails=void 0,this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._infoPopover=void 0,this._msg=void 0,this._multiple=!1,this._name=void 0,this._on=void 0,this._required=!1,this._shortKey=void 0,this._smartButton=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._variant=void 0,this.handleFileChange=t=>{var e;if(this.ctaRef.el instanceof HTMLInputElement&&"file"===this.ctaRef.el.type){const o=this.ctaRef.el.files;this.hasFileSelected=!!(null==o?void 0:o.length),this.filename=null!==(e=S(o))&&void 0!==e?e:this.translateFilenameText,this.handleChange(t,o),this.formAssociation.setFormAssociatedValue(o)}},this.handleFileInput=t=>{this.ctaRef.el instanceof HTMLInputElement&&"file"===this.ctaRef.el.type&&this.handleInput(t,this.ctaRef.el.files)},this.isDisabled=()=>!0===this._disabled,this.handleDragOver=t=>{this.isDisabled()||(t.preventDefault(),this.isDragover=!0)},this.handleDragLeave=()=>{this.isDragover=!1},this.handleDrop=t=>{var e,o;if(!this.isDisabled()&&(t.preventDefault(),this.ctaRef.el&&(this.isDragover=!1,null===(e=t.dataTransfer)||void 0===e?void 0:e.files.length))){const e=t.dataTransfer.files;this.ctaRef.el.files=e,this.filename=null!==(o=S(e))&&void 0!==o?o:this.translateFilenameText,this.formAssociation.setFormAssociatedValue(e),this.handleChange(t,e),this.handleInput(t,e)}},this.initFormAssociation("file",this._name)}watchAccept(t){A.apply(t,(t=>this.setRenderProp("accept",t)))}watchAccessKey(t){_.apply(t,(t=>this.setRenderProp("accessKey",t))),l(t,this._shortKey)}watchAriaDetails(t){this.applyAriaDetails(t)}watchDisabled(t){this.applyDisabled(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchIcons(t){c.apply(t,(t=>this.setRenderProp("icons",t)))}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMsg(t){this.applyMsg(t)}watchMultiple(t){v.apply(t,(t=>this.setRenderProp("multiple",t)))}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchRequired(t){x.apply(t,(t=>this.setRenderProp("required",t)))}watchShortKey(t){g.apply(t,(t=>this.setRenderProp("shortKey",t))),l(this._accessKey,t)}watchSmartButton(t){null==t?this.unsetRenderProp("smartButton"):B.apply(t,(t=>this.setRenderProp("smartButton",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchVariant(t){y.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){var t;return Promise.resolve(null===(t=this.ctaRef.el)||void 0===t?void 0:t.files)}focus(t){return Promise.resolve()}async click(){return Promise.resolve()}reset(){return this.formAssociation.setFormAssociatedValue(""),this.filename=this.translateFilenameText,this.hasFileSelected=!1,this.ctaRef.el&&(this.ctaRef.el.value=""),Promise.resolve()}componentWillLoad(){this.unsetRenderProp("smartButton"),this._touched=!0===this._touched,this.watchAriaDetails(this._ariaDetails),this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccept(this._accept),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.watchIcons(this._icons),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchMultiple(this._multiple),this.watchOn(this._on),this.watchRequired(this._required),this.watchShortKey(this._shortKey),this.watchSmartButton(this._smartButton),this.watchTooltipAlign(this._tooltipAlign),this.watchVariant(this._variant)}componentDidRender(){this.browseButton.syncListeners(),this.syncFormField()}disconnectedCallback(){this.browseButton.destroy(),this.destroyFormField()}getInputProps(){const t=this.getRenderProp("accessKey"),e=this.getRenderProp("shortKey"),{ariaDescribedBy:o,hasError:i}=this.getAria();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:this.getRenderProp("name")||void 0},t?{accessKey:t}:{}),{required:this.getRenderProp("required"),multiple:this.getRenderProp("multiple"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")}),e?{"aria-keyshortcuts":e}:{}),{ref:this.ctaRef,type:"file",accept:this.getRenderProp("accept"),onBlur:this.handleBlur,onChange:this.handleFileChange,onClick:this.handleClick,onFocus:this.handleFocus,onInput:this.handleFileInput,onKeyDown:this.handleKeyDown,ariaDescribedBy:o,"aria-invalid":i?"true":void 0})}render(){const e=this.getRenderProp("disabled"),{startAdornment:i,endAdornment:n}=h({icons:this.getRenderProp("icons"),smartButton:this.getSmartButtonFcProps(this.getRenderProp("smartButton"),e)});return t(o,{key:"25a212036a6a5c270c5546b3c9b8d18f3760ba02"},t(u,Object.assign({key:"c1f046691cb2b689c1e18ff9067519b55e4d86c0"},this.getFormFieldProps({class:"kol-input-file file",accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,variant:this.getRenderProp("variant"),required:this.getRenderProp("required")})),t(d,{key:"1cab09cc2d86b18763c2640b775dd623f16fbfe7",class:{"kol-input-container--is-dragover":this.isDragover},disabled:e,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:n,onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop},t(I,{key:"7a4243b1e9f798c9d7134f14120560d3d42ef169",filename:this.filename,hasFile:this.hasFileSelected}),t(f,Object.assign({key:"829abae762f1dda9e12ea775c795dad6a209a25b"},this.getInputProps())),t(r,Object.assign({key:"86f4a5d315863b54858573d4c7e769933874e39b"},this.browseButton.getFcProps({_label:this.translateDataBrowseText,_variant:"primary",_disabled:e},{class:L}))))))}get host(){return this}static get watchers(){return{_accept:[{watchAccept:0}],_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_msg:[{watchMsg:0}],_multiple:[{watchMultiple:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794582088003"); src: url("kolicons.eot?t=1794582088003#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794582088003") format("woff2"), url("kolicons.woff?t=1794582088003") format("woff"), url("kolicons.ttf?t=1794582088003") format("truetype"), url("kolicons.svg?t=1794582088003#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-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; } :host { display: inline-block; } .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-button__interactive-element::before { content: "​"; } .kol-button__text { flex: 1 0 100%; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; } .kol-input::-webkit-file-upload-button, .kol-input::file-selector-button { cursor: pointer; } .kol-input:disabled, .kol-input:disabled::-webkit-file-upload-button, .kol-input:disabled::file-selector-button { cursor: not-allowed; pointer-events: none; } .kol-input-container__container { display: flex; overflow: hidden; align-items: center; } .kol-input-container__button { height: auto; } .kol-input-container__filename { overflow: hidden; flex-grow: 1; white-space: nowrap; text-overflow: ellipsis; } .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) { grid-template-columns: auto 1fr; } }'}}},[545,"kol-input-file",{_accept:[1],_accessKey:[1,"_access-key"],_ariaDetails:[1,"_aria-details"],_disabled:[4],_hideMsg:[4,"_hide-msg"],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_infoPopover:[16],_label:[1],_msg:[1],_multiple:[4],_name:[1],_on:[16],_required:[4],_shortKey:[1,"_short-key"],_smartButton:[1,"_smart-button"],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],filename:[32],hasFileSelected:[32],isDragover:[32],getValue:[64],focus:[64],click:[64],reset:[64]},void 0,{_accept:[{watchAccept:0}],_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_msg:[{watchMsg:0}],_multiple:[{watchMultiple:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_variant:[{watchVariant:0}]}]);n([K("ctaRef")],M.prototype,"focus",null),n([T("ctaRef")],M.prototype,"click",null);const H=M,O=function(){"undefined"!=typeof customElements&&["kol-input-file"].forEach((t=>{"kol-input-file"===t&&(customElements.get(i(t))||customElements.define(i(t),M))}))};export{H as KolInputFile,O 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{b as l}from"./bem-registry.js";import{v as a}from"./access-and-short-key.js";import{t as r}from"./i18n.js";import{B as s}from"./component8.js";import{c}from"./item.js";import{h,g as d,I as k}from"./input-container.js";import{f as u,B as m,F as p}from"./base-web-component2.js";import{I as f}from"./input.js";import{c as b,b as _,e as g}from"./props-from-config.js";import{a as y,d as w,v}from"./component2.js";import{m as x}from"./multiple.js";import{r as B}from"./required.js";import{s as z}from"./smart-button.js";import{c as T}from"./dev.utils.js";import{c as j,d as K,a as A}from"./element-interaction.js";const S=b("accept",void 0,_);function D(t){if(null==t?void 0:t.length)return Array.from(t).map((t=>t.name)).join(", ")}const q={required:[...u.required],optional:[...u.optional,S,y,h,x,B,w,z,v]},I=l.forBlock("kol-input-container"),L=I("button"),M=({filename:e,hasFile:o})=>t("span",{class:I("filename",{"has-file":o})},e),H=l.forBlock("kol-input-file"),O=e(class extends m{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=T("input-file"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.translateFilenameText=r("kol-filename-text"),this.filename=this.translateFilenameText,this.hasFileSelected=!1,this.isDragover=!1,this.ctaRef=j(),this.translateDataBrowseText=r("kol-data-browse-text"),this.browseButton=c((()=>this.host)),this.propsConfig=q,this._accept=void 0,this._accessKey=void 0,this._ariaDetails=void 0,this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._infoPopover=void 0,this._msg=void 0,this._multiple=!1,this._name=void 0,this._on=void 0,this._required=!1,this._shortKey=void 0,this._smartButton=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._variant=void 0,this.handleFileChange=t=>{var e;if(this.ctaRef.el instanceof HTMLInputElement&&"file"===this.ctaRef.el.type){const o=this.ctaRef.el.files;this.hasFileSelected=!!(null==o?void 0:o.length),this.filename=null!==(e=D(o))&&void 0!==e?e:this.translateFilenameText,this.handleChange(t,o),this.formAssociation.setFormAssociatedValue(o)}},this.handleFileInput=t=>{this.ctaRef.el instanceof HTMLInputElement&&"file"===this.ctaRef.el.type&&this.handleInput(t,this.ctaRef.el.files)},this.isDisabled=()=>!0===this._disabled,this.handleDragOver=t=>{this.isDisabled()||(t.preventDefault(),this.isDragover=!0)},this.handleDragLeave=()=>{this.isDragover=!1},this.handleDrop=t=>{var e,o;if(!this.isDisabled()&&(t.preventDefault(),this.ctaRef.el&&(this.isDragover=!1,null===(e=t.dataTransfer)||void 0===e?void 0:e.files.length))){const e=t.dataTransfer.files;this.ctaRef.el.files=e,this.filename=null!==(o=D(e))&&void 0!==o?o:this.translateFilenameText,this.formAssociation.setFormAssociatedValue(e),this.handleChange(t,e),this.handleInput(t,e)}},this.initFormAssociation("file",this._name)}watchAccept(t){S.apply(t,(t=>this.setRenderProp("accept",t)))}watchAccessKey(t){y.apply(t,(t=>this.setRenderProp("accessKey",t))),a(t,this._shortKey)}watchAriaDetails(t){this.applyAriaDetails(t)}watchDisabled(t){this.applyDisabled(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchIcons(t){h.apply(t,(t=>this.setRenderProp("icons",t)))}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMsg(t){this.applyMsg(t)}watchMultiple(t){x.apply(t,(t=>this.setRenderProp("multiple",t)))}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchRequired(t){B.apply(t,(t=>this.setRenderProp("required",t)))}watchShortKey(t){w.apply(t,(t=>this.setRenderProp("shortKey",t))),a(this._accessKey,t)}watchSmartButton(t){null==t?this.unsetRenderProp("smartButton"):z.apply(t,(t=>this.setRenderProp("smartButton",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchVariant(t){v.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){var t;return Promise.resolve(null===(t=this.ctaRef.el)||void 0===t?void 0:t.files)}focus(t){return Promise.resolve()}async click(){return Promise.resolve()}reset(){return this.formAssociation.setFormAssociatedValue(""),this.filename=this.translateFilenameText,this.hasFileSelected=!1,this.ctaRef.el&&(this.ctaRef.el.value=""),Promise.resolve()}componentWillLoad(){this.unsetRenderProp("smartButton"),this._touched=!0===this._touched,this.watchAriaDetails(this._ariaDetails),this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccept(this._accept),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.watchIcons(this._icons),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchMultiple(this._multiple),this.watchOn(this._on),this.watchRequired(this._required),this.watchShortKey(this._shortKey),this.watchSmartButton(this._smartButton),this.watchTooltipAlign(this._tooltipAlign),this.watchVariant(this._variant)}componentDidRender(){this.browseButton.syncListeners(),this.syncFormField()}disconnectedCallback(){this.browseButton.destroy(),this.destroyFormField()}getInputProps(){const t=this.getRenderProp("accessKey"),e=this.getRenderProp("shortKey"),{ariaDescribedBy:o,hasError:i}=this.getAria();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:this.getRenderProp("name")||void 0},t?{accessKey:t}:{}),{required:this.getRenderProp("required"),multiple:this.getRenderProp("multiple"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")}),e?{"aria-keyshortcuts":e}:{}),{ref:this.ctaRef,type:"file",accept:this.getRenderProp("accept"),onBlur:this.handleBlur,onChange:this.handleFileChange,onClick:this.handleClick,onFocus:this.handleFocus,onInput:this.handleFileInput,onKeyDown:this.handleKeyDown,ariaDescribedBy:o,"aria-invalid":i?"true":void 0})}render(){const e=this.getRenderProp("disabled"),{startAdornment:i,endAdornment:n}=d({icons:this.getRenderProp("icons"),smartButton:this.getSmartButtonFcProps(this.getRenderProp("smartButton"),e)});return t(o,{key:"7cb436aa1aa1d44e3fc40a0260b9e5475007f1e4"},t(p,Object.assign({key:"ae061478a153821b070f274cc5c2cb508d290aa9"},this.getFormFieldProps({class:g(H(),"file"),accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,variant:this.getRenderProp("variant"),required:this.getRenderProp("required")})),t(k,{key:"3d636959f1b5dabb5d083774a5045834afa27678",class:{"kol-input-container--is-dragover":this.isDragover},disabled:e,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:n,onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop},t(M,{key:"37431aa753621fbe4fbc02b8f8aa11e04b8ffb8d",filename:this.filename,hasFile:this.hasFileSelected}),t(f,Object.assign({key:"e85b80d96ac69719f8539797958c61f286139d46"},this.getInputProps())),t(s,Object.assign({key:"b1082af32631fba64378917cfde6d092ba5acc24"},this.browseButton.getFcProps({_label:this.translateDataBrowseText,_variant:"primary",_disabled:e,_tabIndex:-1},{class:L,"aria-hidden":"true"}))))))}get host(){return this}static get watchers(){return{_accept:[{watchAccept:0}],_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_msg:[{watchMsg:0}],_multiple:[{watchMultiple:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-meter meter { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-bar { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-optimum-value, .kol-meter meter::-webkit-meter-suboptimum-value, .kol-meter meter::-webkit-meter-even-less-good-value { background-color: CanvasText; } .kol-meter meter::-moz-meter-bar { background-color: CanvasText; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794998877659"); src: url("kolicons.eot?t=1794998877659#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794998877659") format("woff2"), url("kolicons.woff?t=1794998877659") format("woff"), url("kolicons.ttf?t=1794998877659") format("truetype"), url("kolicons.svg?t=1794998877659#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-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; } :host { display: inline-block; } .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-button__interactive-element::before { content: "​"; } .kol-button__text { flex: 1 0 100%; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; } .kol-input::-webkit-file-upload-button, .kol-input::file-selector-button { cursor: pointer; } .kol-input:disabled, .kol-input:disabled::-webkit-file-upload-button, .kol-input:disabled::file-selector-button { cursor: not-allowed; pointer-events: none; } .kol-input-container__container { display: flex; overflow: hidden; align-items: center; } .kol-input-container__button { height: auto; } .kol-input-container__filename { overflow: hidden; flex-grow: 1; white-space: nowrap; text-overflow: ellipsis; } .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) { grid-template-columns: auto 1fr; } }'}}},[545,"kol-input-file",{_accept:[1],_accessKey:[1,"_access-key"],_ariaDetails:[1,"_aria-details"],_disabled:[4],_hideMsg:[4,"_hide-msg"],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_infoPopover:[16],_label:[1],_msg:[1],_multiple:[4],_name:[1],_on:[16],_required:[4],_shortKey:[1,"_short-key"],_smartButton:[1,"_smart-button"],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],filename:[32],hasFileSelected:[32],isDragover:[32],getValue:[64],focus:[64],click:[64],reset:[64]},void 0,{_accept:[{watchAccept:0}],_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_msg:[{watchMsg:0}],_multiple:[{watchMultiple:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_variant:[{watchVariant:0}]}]);n([K("ctaRef")],O.prototype,"focus",null),n([A("ctaRef")],O.prototype,"click",null);const P=O,V=function(){"undefined"!=typeof customElements&&["kol-input-file"].forEach((t=>{"kol-input-file"===t&&(customElements.get(i(t))||customElements.define(i(t),O))}))};export{P as KolInputFile,V 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{X as a}from"./bem-registry.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"./component5.js";import{a as x,d as j,v as B}from"./component3.js";import"./props-from-config.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 P}from"./controller.js";const D={required:[...h.required],optional:[...h.optional,x,y,s,p,k,b,z,S,O,j,K,A,T,B]},L="kol-input-number__step-button",H=t=>{var o;return!0===(null===(o=null==t?void 0:t.classList)||void 0===o?void 0:o.contains(L))},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.propsConfig=D,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 o=this.readInputValue();this.handleChange(t,o),this.hasValue=!!o},this.handleNumberFocus=t=>{H(t.relatedTarget)||this.handleFocus(t)},this.handleNumberBlur=t=>{H(t.relatedTarget)||this.handleBlur(t)},this.handleNumberKeyDown=t=>{this.handleKeyDown(t),P(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 o;b.apply(t,(t=>this.setRenderProp("value",t))),this.formAssociation.setFormAssociatedValue(null!==(o=this.getRenderProp("value"))&&void 0!==o?o:null),null!=t&&(this.valueType=f(t))}watchVariant(t){B.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){return Promise.resolve(this.remapValue(this.getRenderProp("value")))}focus(t){return Promise.resolve()}async click(){return Promise.resolve()}componentWillLoad(){this.unsetRenderProp("smartButton"),this._touched=!0===this._touched,this.watchAriaDetails(this._ariaDetails),this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccessKey(this._accessKey),this.watchMsg(this._msg),this.watchDisabled(this._disabled),this.watchHideMsg(this._hideMsg),this.watchHideLabel(this._hideLabel),this.watchHint(this._hint),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchShortKey(this._shortKey),this.watchSmartButton(this._smartButton),this.watchOn(this._on),this.watchTooltipAlign(this._tooltipAlign),this.watchVariant(this._variant),this.watchIcons(this._icons),this.watchAutoComplete(this._autoComplete),this.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,o){var e,i,n;"up"===o?null===(e=this.ctaRef.el)||void 0===e||e.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:o("button",{type:"button","aria-hidden":"true",tabIndex:-1,class:`${L} ${L}-${t} kol-input-container__smart-button`,onClick:"up"===t?this.handleStepUp:this.handleStepDown,disabled:this._disabled||this._readOnly},o(v,{icons:"up"===t?"kolicon-plus":"kolicon-minus",label:""}))}getInputProps(){var t,e,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!==(e=this.getRenderProp("min"))&&void 0!==e?e: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:o(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 o(e,{key:"72ac3294746fee359a1bc104ff67d98b12863910"},o(u,Object.assign({key:"56e069564f2166347361d4d5519bfd768201ea5d"},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")})),o(c,{key:"a81cbe93dccd157800796e2c4dd3c9555058759c",disabled:t,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:n},o(m,Object.assign({key:"bdcdc00739d790d7f4f0d40fd1d0d66561afbcd4"},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=1794582088003"); src: url("kolicons.eot?t=1794582088003#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794582088003") format("woff2"), url("kolicons.woff?t=1794582088003") format("woff"), url("kolicons.ttf?t=1794582088003") format("truetype"), url("kolicons.svg?t=1794582088003#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-button { background-color: transparent; display: inline-block; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); margin: 0; padding: 0; text-align: center; } .kol-button__interactive-element { border-style: none; display: block; border-width: medium; font-weight: inherit; font-style: inherit; text-align: inherit; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: "​"; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-form-field .kol-popover-button { display: inline; } .kol-form-field .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-form-field .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-form-field .kol-popover-button--inline { display: inline-block; } .kol-form-field .kol-popover-button--inline .kol-button, .kol-form-field .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-form-field .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-form-field .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-form-field { display: grid; } .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label { cursor: pointer; } .kol-form-field__label { display: flex; } .kol-form-field__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-form-field--required .kol-form-field__label-text:has(.kol-span__slot[hidden]) .kol-span__label::after, .kol-form-field--required:not(:has(.kol-form-field__label--legend)) .kol-form-field__input .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-input-container { background-color: transparent; display: grid; position: relative; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; grid-template-columns: 1fr; } .kol-input-container:has(> .kol-input-container__adornment--start) { grid-template-columns: auto 1fr auto; } .kol-input-container__container { position: relative; z-index: 1; } .kol-input-container__adornment { display: flex; align-items: center; } .kol-input-container__adornment .kol-icon { display: grid; place-items: center; } .kol-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{b as a,X as l}from"./bem-registry.js";import{v as r}from"./access-and-short-key.js";import{h as s,g as c,I as h}from"./input-container.js";import{f as d,B as u,F as m}from"./base-web-component2.js";import{I as p}from"./input.js";import{i as k,a as b,b as f,g as _,r as g,p as y}from"./number-value.js";import{a as w,S as v}from"./suggestions2.js";import{I as x}from"./component4.js";import{a as j,d as B,v as z}from"./component2.js";import{e as S}from"./props-from-config.js";import{p as T}from"./placeholder.js";import{r as O}from"./read-only.js";import{r as K}from"./required.js";import{s as A}from"./smart-button.js";import{s as C}from"./step.js";import{s as V}from"./suggestions.js";import{c as q}from"./dev.utils.js";import{c as I,d as M,a as P}from"./element-interaction.js";import{s as D}from"./controller.js";const L={required:[...d.required],optional:[...d.optional,j,w,s,k,b,f,T,O,K,B,A,C,V,z]},H=a.forBlock("kol-input-number"),R=H("step-button"),G=t=>{var e;return!0===(null===(e=null==t?void 0:t.classList)||void 0===e?void 0:e.contains(R))},F=t(class extends u{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=q("input-number"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=I(),this.valueType="null",this.hasValue=!1,this.propsConfig=L,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=>{G(t.relatedTarget)||this.handleFocus(t)},this.handleNumberBlur=t=>{G(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){j.apply(t,(t=>this.setRenderProp("accessKey",t))),r(t,this._shortKey)}watchAriaDetails(t){this.applyAriaDetails(t)}watchAutoComplete(t){w.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){k.apply(t,(t=>this.setRenderProp("max",t)))}watchMin(t){b.apply(t,(t=>this.setRenderProp("min",t)))}watchMsg(t){this.applyMsg(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchPlaceholder(t){T.apply(t,(t=>this.setRenderProp("placeholder",t)))}watchReadOnly(t){O.apply(t,(t=>this.setRenderProp("readOnly",t)))}watchRequired(t){K.apply(t,(t=>this.setRenderProp("required",t)))}watchShortKey(t){B.apply(t,(t=>this.setRenderProp("shortKey",t))),r(this._accessKey,t)}watchSmartButton(t){null==t?this.unsetRenderProp("smartButton"):A.apply(t,(t=>this.setRenderProp("smartButton",t)))}watchSuggestions(t){V.apply(t,(t=>this.setRenderProp("suggestions",t)))}watchStep(t){C.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;f.apply(t,(t=>this.setRenderProp("value",t))),this.formAssociation.setFormAssociatedValue(null!==(e=this.getRenderProp("value"))&&void 0!==e?e:null),null!=t&&(this.valueType=_(t))}watchVariant(t){z.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){return Promise.resolve(this.remapValue(this.getRenderProp("value")))}focus(t){return Promise.resolve()}async click(){return Promise.resolve()}componentWillLoad(){this.unsetRenderProp("smartButton"),this._touched=!0===this._touched,this.watchAriaDetails(this._ariaDetails),this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccessKey(this._accessKey),this.watchMsg(this._msg),this.watchDisabled(this._disabled),this.watchHideMsg(this._hideMsg),this.watchHideLabel(this._hideLabel),this.watchHint(this._hint),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchShortKey(this._shortKey),this.watchSmartButton(this._smartButton),this.watchOn(this._on),this.watchTooltipAlign(this._tooltipAlign),this.watchVariant(this._variant),this.watchIcons(this._icons),this.watchAutoComplete(this._autoComplete),this.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 g(t,this.valueType)}readInputValue(){var t;return this.remapValue(y(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"===l("inputNumberButtons",this.host)?null:e("button",{type:"button","aria-hidden":"true",tabIndex:-1,class:`${R} ${R}-${t} kol-input-container__smart-button`,onClick:"up"===t?this.handleStepUp:this.handleStepDown,disabled:this._disabled||this._readOnly},e(x,{icons:"up"===t?"kolicon-plus":"kolicon-minus",label:""}))}getInputProps(){var t,o,i,n;const a=this.id,l=this.getRenderProp("accessKey"),r=this.getRenderProp("placeholder"),s=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!==r?{placeholder:r}:{}),{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")}),s?{"aria-keyshortcuts":s}:{}),c.length>0?{suggestions:e(v,{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}=c({icons:this.getRenderProp("icons"),smartButton:this.getSmartButtonFcProps(this.getRenderProp("smartButton"),t),startAdornment:this.renderStepButton("down"),endAdornment:this.renderStepButton("up")});return e(o,{key:"633d71799f0a2fde9a6e3d702450fc26e23c9942"},e(m,Object.assign({key:"8f5fa79cbf292b1630e1b7e03f768defab06bf77"},this.getFormFieldProps({class:S(H(),"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(h,{key:"ea95d533f0c32b837aaa8ba8db3a7be67badef3c",disabled:t,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:n},e(p,Object.assign({key:"525ed0013a2d8cb020f2d99198a0989609382bae"},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-meter meter { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-bar { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-optimum-value, .kol-meter meter::-webkit-meter-suboptimum-value, .kol-meter meter::-webkit-meter-even-less-good-value { background-color: CanvasText; } .kol-meter meter::-moz-meter-bar { background-color: CanvasText; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794998877659"); src: url("kolicons.eot?t=1794998877659#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794998877659") format("woff2"), url("kolicons.woff?t=1794998877659") format("woff"), url("kolicons.ttf?t=1794998877659") format("truetype"), url("kolicons.svg?t=1794998877659#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([M("ctaRef")],F.prototype,"focus",null),n([P("ctaRef")],F.prototype,"click",null);const E=F,N=function(){"undefined"!=typeof customElements&&["kol-input-number"].forEach((t=>{"kol-input-number"===t&&(customElements.get(i(t))||customElements.define(i(t),F))}))};export{E as KolInputNumber,N 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{g as a}from"./bem-registry.js";import{t as l}from"./i18n.js";import{B as r}from"./component9.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"./props-from-config.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.propsConfig=w,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)))}getValue(){var t;return Promise.resolve(null===(t=this.ctaRef.el)||void 0===t?void 0:t.value)}focus(t){return Promise.resolve()}async click(){return Promise.resolve()}connectedCallback(){super.connectedCallback(),this.visibilityToggle.syncListeners()}componentWillLoad(){this.unsetRenderProp("smartButton"),this._touched=!0===this._touched,this.watchAriaDetails(this._ariaDetails),this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccessKey(this._accessKey),this.watchMsg(this._msg),this.watchDisabled(this._disabled),this.watchHideMsg(this._hideMsg),this.watchHideLabel(this._hideLabel),this.watchHint(this._hint),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchShortKey(this._shortKey),this.watchSmartButton(this._smartButton),this.watchOn(this._on),this.watchTooltipAlign(this._tooltipAlign),this.watchVariant(this._variant),this.watchIcons(this._icons),this.watchAutoComplete(this._autoComplete),this.watchHasCounter(this._hasCounter),this.watchMaxLengthBehavior(this._maxLengthBehavior),this.initMaxLength(this._maxLength),this.watchPattern(this._pattern),this.watchPlaceholder(this._placeholder),this.watchReadOnly(this._readOnly),this.watchRequired(this._required),this.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"}))):null}render(){const{startAdornment:t,endAdornment:i}=this.getTextInputAdornments(this.getVisibilityToggle());return o(e,{key:"ce55fc277ab96baa7e52816fa04a65490a99fabb"},o(c,Object.assign({key:"b25084fb51790c3e0a8d166abd0b1e834520e4c8"},this.getTextFormFieldProps("kol-input-password password")),o(d,{key:"25310c042ba68177496ee3089c798a9b0997948c",disabled:this.getRenderProp("disabled"),msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:t,endAdornment:i},o(h,Object.assign({key:"0e6e6baf69d70ac82f06fc957139f83cf0afb9fa"},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=1794582088003"); src: url("kolicons.eot?t=1794582088003#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794582088003") format("woff2"), url("kolicons.woff?t=1794582088003") format("woff"), url("kolicons.ttf?t=1794582088003") format("truetype"), url("kolicons.svg?t=1794582088003#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-button { background-color: transparent; display: inline-block; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); margin: 0; padding: 0; text-align: center; } .kol-button__interactive-element { border-style: none; display: block; border-width: medium; font-weight: inherit; font-style: inherit; text-align: inherit; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: "​"; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-form-field .kol-popover-button { display: inline; } .kol-form-field .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-form-field .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-form-field .kol-popover-button--inline { display: inline-block; } .kol-form-field .kol-popover-button--inline .kol-button, .kol-form-field .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-form-field .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-form-field .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-form-field { display: grid; } .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label { cursor: pointer; } .kol-form-field__label { display: flex; } .kol-form-field__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-form-field--required .kol-form-field__label-text:has(.kol-span__slot[hidden]) .kol-span__label::after, .kol-form-field--required:not(:has(.kol-form-field__label--legend)) .kol-form-field__input .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-input-container { background-color: transparent; display: grid; position: relative; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; grid-template-columns: 1fr; } .kol-input-container:has(> .kol-input-container__adornment--start) { grid-template-columns: auto 1fr auto; } .kol-input-container__container { position: relative; z-index: 1; } .kol-input-container__adornment { display: flex; align-items: center; } .kol-input-container__adornment .kol-icon { display: grid; place-items: center; } .kol-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}
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{b as a,g as l}from"./bem-registry.js";import{t as r}from"./i18n.js";import{B as s}from"./component8.js";import{c}from"./item.js";import{F as h}from"./base-web-component2.js";import{I as d}from"./input.js";import{I as k}from"./input-container.js";import{c as m,n as p,e as b}from"./props-from-config.js";import{t as u,B as f}from"./base-web-component3.js";import{c as _}from"./dev.utils.js";import{d as g,a as w}from"./element-interaction.js";const y=m("visibilityToggle",!1,p),v={required:[...u.required],optional:[...u.optional,y]},x=a.forBlock("kol-input-password"),T=t(class extends f{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=_("input-password"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.passwordVisible=!1,this.visibilityToggle=c((()=>this.host)),this.translateHidePassword=r("kol-hide-password"),this.translateShowPassword=r("kol-show-password"),this.propsConfig=v,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&&l("[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){y.apply(t,(t=>this.setRenderProp("visibilityToggle",t)))}getValue(){var t;return Promise.resolve(null===(t=this.ctaRef.el)||void 0===t?void 0:t.value)}focus(t){return Promise.resolve()}async click(){return Promise.resolve()}connectedCallback(){super.connectedCallback(),this.visibilityToggle.syncListeners()}componentWillLoad(){this.unsetRenderProp("smartButton"),this._touched=!0===this._touched,this.watchAriaDetails(this._ariaDetails),this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccessKey(this._accessKey),this.watchMsg(this._msg),this.watchDisabled(this._disabled),this.watchHideMsg(this._hideMsg),this.watchHideLabel(this._hideLabel),this.watchHint(this._hint),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchShortKey(this._shortKey),this.watchSmartButton(this._smartButton),this.watchOn(this._on),this.watchTooltipAlign(this._tooltipAlign),this.watchVariant(this._variant),this.watchIcons(this._icons),this.watchAutoComplete(this._autoComplete),this.watchHasCounter(this._hasCounter),this.watchMaxLengthBehavior(this._maxLengthBehavior),this.initMaxLength(this._maxLength),this.watchPattern(this._pattern),this.watchPlaceholder(this._placeholder),this.watchReadOnly(this._readOnly),this.watchRequired(this._required),this.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(s,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:b(x("password-toggle-button"),"kol-input-container__smart-button")}))):null}render(){const{startAdornment:t,endAdornment:i}=this.getTextInputAdornments(this.getVisibilityToggle());return o(e,{key:"e02394bc1ef15faa3404defe03fbf2775fafd213"},o(h,Object.assign({key:"2d431e8b581f698e8ace6bf2f02d29e6a32ac745"},this.getTextFormFieldProps(b(x(),"password"))),o(k,{key:"1ae2cc3d10067d7863dba448c1b3de21653747d8",disabled:this.getRenderProp("disabled"),msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:t,endAdornment:i},o(d,Object.assign({key:"54857c45aff5bb0416fdf8dd8e85a4ab09ced05c"},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-meter meter { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-bar { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-optimum-value, .kol-meter meter::-webkit-meter-suboptimum-value, .kol-meter meter::-webkit-meter-even-less-good-value { background-color: CanvasText; } .kol-meter meter::-moz-meter-bar { background-color: CanvasText; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794998877659"); src: url("kolicons.eot?t=1794998877659#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794998877659") format("woff2"), url("kolicons.woff?t=1794998877659") format("woff"), url("kolicons.ttf?t=1794998877659") format("truetype"), url("kolicons.svg?t=1794998877659#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([g("ctaRef")],T.prototype,"focus",null),n([w("ctaRef")],T.prototype,"click",null);const z=T,B=function(){"undefined"!=typeof customElements&&["kol-input-password"].forEach((t=>{"kol-input-password"===t&&(customElements.get(i(t))||customElements.define(i(t),T))}))};export{z as KolInputPassword,B 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{B as n}from"./base-web-component.js";import{i as l,g as a,f as r,B as s,F as c}from"./base-web-component2.js";import{i as d,F as h}from"./field-control.js";import{f as p,n as f}from"./options.js";import{a as u}from"./tslib.es6.js";import{b as k}from"./bem-registry.js";import{c as m}from"./clsx.js";import{B as b}from"./component.js";import{I as _}from"./input.js";import{c as g}from"./props-from-config.js";import{c as w}from"./options2.js";import{n as y}from"./orientation.js";import{r as v}from"./required.js";import{v as x}from"./component3.js";import{T as z}from"./behavior.js";import{c as j,a as T}from"./dev.utils.js";import{b as O,s as q}from"./element-interaction.js";import{d as B,s as L}from"./element-focus.js";import{s as V}from"./controller.js";const D=w(),A=g("orientation","vertical",y),M=g("value",null,(t=>Array.isArray(t)?t[0]:t)),P=k.forBlock("kol-input-radio"),H=o=>{var{class:e,inputProps:i}=o,n=u(o,["class","inputProps"]);const{class:r}=i,s=u(i,["class"]);return t(b,Object.assign({component:"label",block:"kol-input-radio",modifiers:Object.assign({checked:!!i.checked,disabled:!!i.disabled,required:!!i.required,touched:!!i.touched},l(i.msg,i.touched)?{[a(i.msg)]:!0}:{}),class:e},n),t(_,Object.assign({class:m(P("input"),r)},s,{type:"radio"})))},I={required:[...r.required],optional:[...r.optional,D,A,M,v,x]},S=o(class extends s{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=j("input-radio"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.inputRefs=new Map,this.keyOptionMap=new Map,this.optionTooltips=new Map,this.propsConfig=I,this._ariaDetails=void 0,this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._infoPopover=void 0,this._msg=void 0,this._name=void 0,this._on=void 0,this._options=void 0,this._orientation="vertical",this._required=!1,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=null,this._variant=void 0,this.setSelectedInputRef=t=>{this.inputRef=t},this.setOptionInputRef=t=>o=>{o?this.inputRefs.set(t,o):this.inputRefs.delete(t)},this.handleRadioInput=t=>{const o=this.getOptionOfEvent(t);void 0!==o&&this.handleInput(t,o.value)},this.handleRadioChange=t=>{const o=this.getOptionOfEvent(t);void 0!==o&&(this.handleChange(t,o.value),this._value=o.value)},this.handleRadioKeyDown=t=>{this.handleKeyDown(t),V(t,{form:this.host,ref:this.inputRef})},this.initFormAssociation("radio",this._name)}watchAriaDetails(t){this.applyAriaDetails(t)}watchDisabled(t){this.applyDisabled(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMsg(t){this.applyMsg(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchOptions(t){D.apply(t,(t=>{this.setRenderProp("options",t),t.length>0&&(this.keyOptionMap.clear(),p(this.keyOptionMap,f(t)))}))}watchOrientation(t){A.apply(t,(t=>this.setRenderProp("orientation",t)))}watchRequired(t){v.apply(t,(t=>this.setRenderProp("required",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchValue(t){null==t?this.setRenderProp("value",t):M.apply(t,(t=>this.setRenderProp("value",t))),this.formAssociation.setFormAssociatedValue(this.getRenderProp("value"))}watchVariant(t){x.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){return Promise.resolve(this._value)}async focus(t){const o=this.getFocusableInput();return B(this.host,(()=>L(o,t)))}async click(){return O(this.host,(async()=>q(this.getFocusableInput())))}componentWillLoad(){this._touched=!0===this._touched,this.watchAriaDetails(this._ariaDetails),this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchMsg(this._msg),this.watchDisabled(this._disabled),this.watchHideMsg(this._hideMsg),this.watchHideLabel(this._hideLabel),this.watchHint(this._hint),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchOn(this._on),this.watchTooltipAlign(this._tooltipAlign),this.watchVariant(this._variant),this.watchRequired(this._required),this.watchOrientation(this._orientation),this.watchOptions(this._options),this.watchValue(this._value)}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField(),this.optionTooltips.forEach((t=>t.destroy())),this.optionTooltips.clear()}isOptionSelected(t){var o;return this.getRenderProp("value")===(null!==(o=t.value)&&void 0!==o?o:t.label)}getFocusableInput(){const t=this.getRenderProp("options"),o=!!this.getRenderProp("disabled"),e=t.findIndex((t=>this.isOptionSelected(t)&&!o&&!t.disabled));if(-1!==e){const t=this.inputRefs.get(e);if(t)return t}const i=t.findIndex((t=>!o&&!t.disabled));if(-1!==i)return this.inputRefs.get(i)}getOptionOfEvent(t){return t.target instanceof HTMLInputElement?this.keyOptionMap.get(t.target.value):void 0}getOptionTooltipRefs(t,o){let e=this.optionTooltips.get(t);d({hideLabel:this.getRenderProp("hideLabel"),label:o})?(e||(e=new z(n.stateLess),e.componentWillLoad({label:""}),this.optionTooltips.set(t,e)),e.watchAlign(this.getRenderProp("tooltipAlign")),e.watchBadgeText(""),e.watchId(T(t,"label")),e.watchLabel(o)):e&&(e.destroy(),this.optionTooltips.delete(t),e=void 0);const i=e;return{refInput:t=>{i&&t&&(i.initContext(t),i.syncListeners(void 0,t,!0))},refTooltip:t=>{null==i||i.setTooltipElementRef(t)}}}isOptionDisabled(t){return!!this.getRenderProp("disabled")||!!t.disabled}getInputProps(t,o,e,i){const{hasError:n}=this.getAria(),l=this.getRenderProp("hideLabel");return{id:o,hideLabel:l,label:this.getRenderProp("label"),value:"-"+e,disabled:this.isOptionDisabled(t),name:this.getRenderProp("name")||this.id,required:this.getRenderProp("required"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg"),ref:t=>{this.setOptionInputRef(e)(t),i&&this.setSelectedInputRef(t)},"aria-label":l&&"string"==typeof t.label?t.label:void 0,type:"radio",checked:i,onBlur:this.handleBlur,onChange:this.handleRadioChange,onFocus:this.handleFocus,onInput:this.handleRadioInput,onKeyDown:this.handleRadioKeyDown,"aria-invalid":n?"true":void 0}}renderOption(o,e){const i=T(this.id,e+""),n=this.isOptionSelected(o),l=o.label;return t(h,Object.assign({key:i,id:i,label:l,hint:o.hint,hideLabel:this.getRenderProp("hideLabel"),tooltipAlign:this.getRenderProp("tooltipAlign"),disabled:this.isOptionDisabled(o),msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),required:!1,labelProps:{showBadge:!1}},this.getOptionTooltipRefs(i,l)),t(H,{inputProps:this.getInputProps(o,i,e,n)}))}render(){const{ariaDescribedBy:o}=this.getAria();return t(e,{key:"e42fbdf89edfc2f6a343096f5725dec6980d5b9f"},t(c,Object.assign({key:"22f7a6684edce31a1d8d2a28f1909ad111ea177d"},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=1794582088003"); src: url("kolicons.eot?t=1794582088003#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794582088003") format("woff2"), url("kolicons.woff?t=1794582088003") format("woff"), url("kolicons.ttf?t=1794582088003") format("truetype"), url("kolicons.svg?t=1794582088003#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: "​"; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-field-control { display: grid; min-height: var(--a11y-min-size); align-items: center; justify-content: left; grid-template-areas: "input label"; grid-template-columns: auto 1fr; grid-template-rows: auto; } .kol-field-control:has(.kol-field-control__hint) { grid-template-areas: "input label" "hint hint"; grid-template-columns: auto 1fr; grid-template-rows: auto auto; } .kol-field-control--label-align-left:not(.kol-field-control--hide-label) { grid-template-areas: "label input"; grid-template-columns: 1fr auto; grid-template-rows: auto; } .kol-field-control--label-align-left:not(.kol-field-control--hide-label):has(.kol-field-control__hint) { grid-template-areas: "label input" "hint hint"; grid-template-columns: 1fr auto; grid-template-rows: auto auto; } .kol-field-control__input { display: flex; min-height: var(--a11y-min-size); align-items: center; grid-area: input; } .kol-field-control__label { display: flex; min-height: var(--a11y-min-size); flex-grow: 1; align-items: center; cursor: pointer; grid-area: label; } .kol-field-control__label--visually-hidden { display: none; height: 0; margin: 0; padding: 0; visibility: hidden; } .kol-field-control__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-field-control__hint { grid-area: hint; } .kol-field-control--disabled .kol-field-control__label { cursor: not-allowed; } .kol-field-control--required .kol-field-control__label-text:has(.kol-span__slot[hidden])::after, .kol-field-control--required .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-form-field .kol-popover-button { display: inline; } .kol-form-field .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-form-field .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-form-field .kol-popover-button--inline { display: inline-block; } .kol-form-field .kol-popover-button--inline .kol-button, .kol-form-field .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-form-field .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-form-field .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-form-field { display: grid; } .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label { cursor: pointer; } .kol-form-field__label { display: flex; } .kol-form-field__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-form-field--required .kol-form-field__label-text:has(.kol-span__slot[hidden]) .kol-span__label::after, .kol-form-field--required:not(:has(.kol-form-field__label--legend)) .kol-form-field__input .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-input-container { background-color: transparent; display: grid; position: relative; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; grid-template-columns: 1fr; } .kol-input-container:has(> .kol-input-container__adornment--start) { grid-template-columns: auto 1fr auto; } .kol-input-container__container { position: relative; z-index: 1; } .kol-input-container__adornment { display: flex; align-items: center; } .kol-input-container__adornment .kol-icon { display: grid; place-items: center; } .kol-form-field { --border-width: 2px; --input-size: 1.5em; } .kol-form-field__label { display: contents; } .kol-form-field__label-text { display: ruby; } .kol-form-field__input { display: flex; flex-direction: column; } .kol-form-field__input--orientation-horizontal { flex-direction: row; flex-wrap: wrap; align-items: flex-start; } .kol-form-field--disabled { opacity: unset; } .kol-input-radio { display: flex; position: relative; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; justify-content: center; cursor: pointer; } .kol-input-radio__input { border-style: solid; border-radius: 100%; display: flex; width: var(--input-size); min-width: var(--input-size); height: var(--input-size); min-height: var(--input-size); margin: 0; padding: 0; border-width: var(--border-width); appearance: none; cursor: pointer; } .kol-input-radio__input:before { border-radius: 100%; width: calc(var(--input-size) / 2); height: calc(var(--input-size) / 2); margin: auto; content: ""; } .kol-input-radio__input:checked:before { background-color: black; } @media (forced-colors: active) { .kol-input-radio__input:checked:before { background-color: selectedItem !important; } } .kol-input-radio__input:disabled { cursor: not-allowed; } .kol-input-radio--disabled { cursor: not-allowed; } }'}}},[545,"kol-input-radio",{_ariaDetails:[1,"_aria-details"],_disabled:[4],_hideMsg:[4,"_hide-msg"],_hideLabel:[4,"_hide-label"],_hint:[1],_infoPopover:[16],_label:[1],_msg:[1],_name:[1],_on:[16],_options:[1],_orientation:[1],_required:[4],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[1544],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],getValue:[64],focus:[64],click:[64]},void 0,{_ariaDetails:[{watchAriaDetails:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_options:[{watchOptions:0}],_orientation:[{watchOrientation:0}],_required:[{watchRequired:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]),F=S,E=function(){"undefined"!=typeof customElements&&["kol-input-radio"].forEach((t=>{"kol-input-radio"===t&&(customElements.get(i(t))||customElements.define(i(t),S))}))};export{F as KolInputRadio,E as defineCustomElement}
4
+ import{h as t,proxyCustomElement as o,Host as e,transformTag as i}from"@stencil/core/internal/client";import{B as l}from"./base-web-component.js";import{i as n,g as a,f as r,B as s,F as c}from"./base-web-component2.js";import{i as d,F as h}from"./field-control.js";import{f as p,n as u}from"./options.js";import{a as f}from"./tslib.es6.js";import{b as k}from"./bem-registry.js";import{c as m,B as b,e as _}from"./props-from-config.js";import{I as g}from"./input.js";import{c as w}from"./options2.js";import{n as v}from"./orientation.js";import{r as y}from"./required.js";import{v as x}from"./component2.js";import{T as z}from"./behavior.js";import{c as T,a as j}from"./dev.utils.js";import{b as O,s as q}from"./element-interaction.js";import{d as B,s as L}from"./element-focus.js";import{s as V}from"./controller.js";const D=w(),A=m("orientation","vertical",v),M=m("value",null,(t=>Array.isArray(t)?t[0]:t)),P=k.forBlock("kol-input-radio"),H=o=>{var{class:e,inputProps:i}=o,l=f(o,["class","inputProps"]);const{class:r}=i,s=f(i,["class"]);return t(b,Object.assign({component:"label",block:"kol-input-radio",modifiers:Object.assign({checked:!!i.checked,disabled:!!i.disabled,required:!!i.required,touched:!!i.touched},n(i.msg,i.touched)?{[a(i.msg)]:!0}:{}),class:e},l),t(g,Object.assign({class:_(P("input"),r)},s,{type:"radio"})))},I={required:[...r.required],optional:[...r.optional,D,A,M,y,x]},S=o(class extends s{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=T("input-radio"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.inputRefs=new Map,this.keyOptionMap=new Map,this.optionTooltips=new Map,this.propsConfig=I,this._ariaDetails=void 0,this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._infoPopover=void 0,this._msg=void 0,this._name=void 0,this._on=void 0,this._options=void 0,this._orientation="vertical",this._required=!1,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=null,this._variant=void 0,this.setSelectedInputRef=t=>{this.inputRef=t},this.setOptionInputRef=t=>o=>{o?this.inputRefs.set(t,o):this.inputRefs.delete(t)},this.handleRadioInput=t=>{const o=this.getOptionOfEvent(t);void 0!==o&&this.handleInput(t,o.value)},this.handleRadioChange=t=>{const o=this.getOptionOfEvent(t);void 0!==o&&(this.handleChange(t,o.value),this._value=o.value)},this.handleRadioKeyDown=t=>{this.handleKeyDown(t),V(t,{form:this.host,ref:this.inputRef})},this.initFormAssociation("radio",this._name)}watchAriaDetails(t){this.applyAriaDetails(t)}watchDisabled(t){this.applyDisabled(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMsg(t){this.applyMsg(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchOptions(t){D.apply(t,(t=>{this.setRenderProp("options",t),t.length>0&&(this.keyOptionMap.clear(),p(this.keyOptionMap,u(t)))}))}watchOrientation(t){A.apply(t,(t=>this.setRenderProp("orientation",t)))}watchRequired(t){y.apply(t,(t=>this.setRenderProp("required",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchValue(t){null==t?this.setRenderProp("value",t):M.apply(t,(t=>this.setRenderProp("value",t))),this.formAssociation.setFormAssociatedValue(this.getRenderProp("value"))}watchVariant(t){x.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){return Promise.resolve(this._value)}async focus(t){const o=this.getFocusableInput();return B(this.host,(()=>L(o,t)))}async click(){return O(this.host,(async()=>q(this.getFocusableInput())))}componentWillLoad(){this._touched=!0===this._touched,this.watchAriaDetails(this._ariaDetails),this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchMsg(this._msg),this.watchDisabled(this._disabled),this.watchHideMsg(this._hideMsg),this.watchHideLabel(this._hideLabel),this.watchHint(this._hint),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchOn(this._on),this.watchTooltipAlign(this._tooltipAlign),this.watchVariant(this._variant),this.watchRequired(this._required),this.watchOrientation(this._orientation),this.watchOptions(this._options),this.watchValue(this._value)}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField(),this.optionTooltips.forEach((t=>t.destroy())),this.optionTooltips.clear()}isOptionSelected(t){var o;return this.getRenderProp("value")===(null!==(o=t.value)&&void 0!==o?o:t.label)}getFocusableInput(){const t=this.getRenderProp("options"),o=!!this.getRenderProp("disabled"),e=t.findIndex((t=>this.isOptionSelected(t)&&!o&&!t.disabled));if(-1!==e){const t=this.inputRefs.get(e);if(t)return t}const i=t.findIndex((t=>!o&&!t.disabled));if(-1!==i)return this.inputRefs.get(i)}getOptionOfEvent(t){return t.target instanceof HTMLInputElement?this.keyOptionMap.get(t.target.value):void 0}getOptionTooltipRefs(t,o){let e=this.optionTooltips.get(t);d({hideLabel:this.getRenderProp("hideLabel"),label:o})?(e||(e=new z(l.stateLess),e.componentWillLoad({label:""}),this.optionTooltips.set(t,e)),e.watchAlign(this.getRenderProp("tooltipAlign")),e.watchBadgeText(""),e.watchId(j(t,"label")),e.watchLabel(o)):e&&(e.destroy(),this.optionTooltips.delete(t),e=void 0);const i=e;return{refInput:t=>{i&&t&&(i.initContext(t),i.syncListeners(void 0,t,!0))},refTooltip:t=>{null==i||i.setTooltipElementRef(t)}}}isOptionDisabled(t){return!!this.getRenderProp("disabled")||!!t.disabled}getInputProps(t,o,e,i){const{hasError:l}=this.getAria(),n=this.getRenderProp("hideLabel");return{id:o,hideLabel:n,label:this.getRenderProp("label"),value:"-"+e,disabled:this.isOptionDisabled(t),name:this.getRenderProp("name")||this.id,required:this.getRenderProp("required"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg"),ref:t=>{this.setOptionInputRef(e)(t),i&&this.setSelectedInputRef(t)},"aria-label":n&&"string"==typeof t.label?t.label:void 0,type:"radio",checked:i,onBlur:this.handleBlur,onChange:this.handleRadioChange,onFocus:this.handleFocus,onInput:this.handleRadioInput,onKeyDown:this.handleRadioKeyDown,"aria-invalid":l?"true":void 0}}renderOption(o,e){const i=j(this.id,e+""),l=this.isOptionSelected(o),n=o.label;return t(h,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(H,{inputProps:this.getInputProps(o,i,e,l)}))}render(){const{ariaDescribedBy:o}=this.getAria();return t(e,{key:"e42fbdf89edfc2f6a343096f5725dec6980d5b9f"},t(c,Object.assign({key:"22f7a6684edce31a1d8d2a28f1909ad111ea177d"},this.getFormFieldProps({class:"kol-form-field--radio",required:this.getRenderProp("required"),variant:this.getRenderProp("variant"),renderNoTooltip:!0}),{component:"fieldset",orientation:this.getRenderProp("orientation"),hideLabel:!1,ariaDescribedBy:o.length>0?o.join(" "):void 0}),this.getRenderProp("options").map(((t,o)=>this.renderOption(t,o)))))}get host(){return this}static get watchers(){return{_ariaDetails:[{watchAriaDetails:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_options:[{watchOptions:0}],_orientation:[{watchOrientation:0}],_required:[{watchRequired:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-meter meter { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-bar { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-optimum-value, .kol-meter meter::-webkit-meter-suboptimum-value, .kol-meter meter::-webkit-meter-even-less-good-value { background-color: CanvasText; } .kol-meter meter::-moz-meter-bar { background-color: CanvasText; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794998877659"); src: url("kolicons.eot?t=1794998877659#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794998877659") format("woff2"), url("kolicons.woff?t=1794998877659") format("woff"), url("kolicons.ttf?t=1794998877659") format("truetype"), url("kolicons.svg?t=1794998877659#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: "​"; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-field-control { display: grid; min-height: var(--a11y-min-size); align-items: center; justify-content: left; grid-template-areas: "input label"; grid-template-columns: auto 1fr; grid-template-rows: auto; } .kol-field-control:has(.kol-field-control__hint) { grid-template-areas: "input label" "hint hint"; grid-template-columns: auto 1fr; grid-template-rows: auto auto; } .kol-field-control--label-align-left:not(.kol-field-control--hide-label) { grid-template-areas: "label input"; grid-template-columns: 1fr auto; grid-template-rows: auto; } .kol-field-control--label-align-left:not(.kol-field-control--hide-label):has(.kol-field-control__hint) { grid-template-areas: "label input" "hint hint"; grid-template-columns: 1fr auto; grid-template-rows: auto auto; } .kol-field-control__input { display: flex; min-height: var(--a11y-min-size); align-items: center; grid-area: input; } .kol-field-control__label { display: flex; min-height: var(--a11y-min-size); flex-grow: 1; align-items: center; cursor: pointer; grid-area: label; } .kol-field-control__label--visually-hidden { display: none; height: 0; margin: 0; padding: 0; visibility: hidden; } .kol-field-control__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-field-control__hint { grid-area: hint; } .kol-field-control--disabled .kol-field-control__label { cursor: not-allowed; } .kol-field-control--required .kol-field-control__label-text:has(.kol-span__slot[hidden])::after, .kol-field-control--required .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-form-field .kol-popover-button { display: inline; } .kol-form-field .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-form-field .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-form-field .kol-popover-button--inline { display: inline-block; } .kol-form-field .kol-popover-button--inline .kol-button, .kol-form-field .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-form-field .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-form-field .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-form-field { display: grid; } .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label { cursor: pointer; } .kol-form-field__label { display: flex; } .kol-form-field__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-form-field--required .kol-form-field__label-text:has(.kol-span__slot[hidden]) .kol-span__label::after, .kol-form-field--required:not(:has(.kol-form-field__label--legend)) .kol-form-field__input .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-input-container { background-color: transparent; display: grid; position: relative; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; grid-template-columns: 1fr; } .kol-input-container:has(> .kol-input-container__adornment--start) { grid-template-columns: auto 1fr auto; } .kol-input-container__container { position: relative; z-index: 1; } .kol-input-container__adornment { display: flex; align-items: center; } .kol-input-container__adornment .kol-icon { display: grid; place-items: center; } .kol-form-field { --border-width: 2px; --input-size: 1.5em; } .kol-form-field__label { display: contents; } .kol-form-field__label-text { display: ruby; } .kol-form-field__input { display: flex; flex-direction: column; } .kol-form-field__input--orientation-horizontal { flex-direction: row; flex-wrap: wrap; align-items: flex-start; } .kol-form-field--disabled { opacity: unset; } .kol-input-radio { display: flex; position: relative; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; justify-content: center; cursor: pointer; } .kol-input-radio__input { border-style: solid; border-radius: 100%; display: flex; width: var(--input-size); min-width: var(--input-size); height: var(--input-size); min-height: var(--input-size); margin: 0; padding: 0; border-width: var(--border-width); appearance: none; cursor: pointer; } .kol-input-radio__input:before { border-radius: 100%; width: calc(var(--input-size) / 2); height: calc(var(--input-size) / 2); margin: auto; content: ""; } .kol-input-radio__input:checked:before { background-color: black; } @media (forced-colors: active) { .kol-input-radio__input:checked:before { background-color: selectedItem !important; } } .kol-input-radio__input:disabled { cursor: not-allowed; } .kol-input-radio--disabled { cursor: not-allowed; } }'}}},[545,"kol-input-radio",{_ariaDetails:[1,"_aria-details"],_disabled:[4],_hideMsg:[4,"_hide-msg"],_hideLabel:[4,"_hide-label"],_hint:[1],_infoPopover:[16],_label:[1],_msg:[1],_name:[1],_on:[16],_options:[1],_orientation:[1],_required:[4],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[1544],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],getValue:[64],focus:[64],click:[64]},void 0,{_ariaDetails:[{watchAriaDetails:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_options:[{watchOptions:0}],_orientation:[{watchOrientation:0}],_required:[{watchRequired:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]),C=S,F=function(){"undefined"!=typeof customElements&&["kol-input-radio"].forEach((t=>{"kol-input-radio"===t&&(customElements.get(i(t))||customElements.define(i(t),S))}))};export{C as KolInputRadio,F as defineCustomElement}