@public-ui/components 4.6.0-rc.3 → 4.7.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (676) 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 +2 -2
  7. package/dist/cjs/{Heading-DqZXie2T.js → Heading-BiIgkzH8.js} +7 -7
  8. package/dist/cjs/{api-Cc1hT-oO.js → api-CYf8xdSs.js} +24 -26
  9. package/dist/cjs/{app-globals-DtXiFJRj.js → app-globals-BYAPmvIk.js} +2 -2
  10. package/dist/cjs/{base-CoMrpiHg.js → base--a0QJmk3.js} +10 -10
  11. package/dist/cjs/{base-BjiXfuju.js → base-BmhaEyug.js} +10 -10
  12. package/dist/cjs/{base-B-wbGF-X.js → base-BpyecmRJ.js} +47 -40
  13. package/dist/cjs/{base-BKsPSdXS.js → base-CUUvWtsB.js} +10 -10
  14. package/dist/cjs/{base-web-component-DXCN-Sp3.js → base-web-component-BompEaD1.js} +1 -1
  15. package/dist/cjs/{base-web-component-DApRK7Vs.js → base-web-component-CWIPg0xv.js} +14 -15
  16. package/dist/cjs/{base-web-component-BXtl3Nmq.js → base-web-component-ZnP9FmYh.js} +12 -14
  17. package/dist/cjs/{behavior-DIv2ciyM.js → behavior-CFLTEANn.js} +4 -4
  18. package/dist/cjs/{behavior-DtHCmCCv.js → behavior-DSFpiPZZ.js} +4 -4
  19. package/dist/cjs/{behavior-GG5TOrTV.js → behavior-O4U6x6z7.js} +4 -4
  20. package/dist/cjs/{bem-registry-h_moyLBn.js → bem-registry-CtnO3zCW.js} +22 -0
  21. package/dist/cjs/{bootstrap-HU5YhM_w.js → bootstrap-DOzWgRGX.js} +1 -1
  22. package/dist/cjs/{color-C3xsA3Uk.js → color-BAx-7-VH.js} +2 -2
  23. package/dist/cjs/{component-DlyhBQIa.js → component-7ByD-KGA.js} +4 -4
  24. package/dist/cjs/component-B2tj_1JK.js +19 -0
  25. package/dist/cjs/{component-CsnTf_45.js → component-BOtCtyyw.js} +8 -10
  26. package/dist/cjs/{component-BOI4FdZE.js → component-BhAlZY9F.js} +6 -7
  27. package/dist/cjs/{component-CNNGo5gU.js → component-BsX1-89D.js} +10 -12
  28. package/dist/cjs/{component-D0uxhuF3.js → component-C4QeEJ1-.js} +6 -5
  29. package/dist/cjs/{component-Cnc2NyzE.js → component-DUJYVdRR.js} +4 -4
  30. package/dist/cjs/{component-CxwSVBBv.js → component-DWb8RKVo.js} +11 -12
  31. package/dist/cjs/component-Dd3qxReW.js +178 -0
  32. package/dist/cjs/{component-BE_fK-Xu.js → component-STJidyBV.js} +14 -16
  33. package/dist/cjs/component-TQvy83J2.js +53 -0
  34. package/dist/cjs/{contrast-6Nku3lih.js → contrast-DOAdZqCp.js} +1 -1
  35. package/dist/cjs/{dev.utils-DTQy7QrG.js → dev.utils-DlmiDtkx.js} +1 -1
  36. package/dist/cjs/{devtools-BAChPN0l.js → devtools-C41YtdU_.js} +2 -2
  37. package/dist/cjs/{disabled-CilmJ-p-.js → disabled-BdFhTB-H.js} +1 -1
  38. package/dist/cjs/{field-control-Bxj6Xuu8.js → field-control-S9RwdD26.js} +12 -12
  39. package/dist/cjs/{group-BUdQbdkp.js → group-C00FoXnX.js} +7 -8
  40. package/dist/cjs/{has-closer-iSIrv52u.js → has-closer--ijHuPZy.js} +1 -1
  41. package/dist/cjs/{href-xojo1zy_.js → href-BD4uBwDL.js} +1 -1
  42. package/dist/cjs/{i18n-D7UmRsV8.js → i18n-4lKONPdP.js} +1 -1
  43. package/dist/cjs/{i18n-DgHI4-xa.js → i18n-CuXZ7SEi.js} +2 -1
  44. package/dist/cjs/{id-DP-w6i4q.js → id-BM9KgE0w.js} +1 -1
  45. package/dist/cjs/{index-BaB_2Z5W.js → index-DRjg_lHL.js} +1 -1
  46. package/dist/cjs/index.cjs.js +3 -3
  47. package/dist/cjs/input-0s6YjmaC.js +19 -0
  48. package/dist/cjs/{input-container-BcwbGU2R.js → input-container-DYp04csT.js} +8 -10
  49. package/dist/cjs/{item-BXt0-A5j.js → item-BKyAM3Uo.js} +20 -21
  50. package/dist/cjs/{item-DJ-XUS77.js → item-CRgD35fr.js} +4 -4
  51. package/dist/cjs/{item-BLrLbhAD.js → item-DWAwMGWB.js} +11 -11
  52. package/dist/cjs/{item-BYKMN41a.js → item-xUIdEroQ.js} +4 -4
  53. package/dist/cjs/kol-abbr.cjs.entry.js +8 -12
  54. package/dist/cjs/kol-accordion.cjs.entry.js +15 -17
  55. package/dist/cjs/kol-alert.cjs.entry.js +27 -30
  56. package/dist/cjs/kol-avatar.cjs.entry.js +14 -15
  57. package/dist/cjs/kol-badge.cjs.entry.js +23 -26
  58. package/dist/cjs/kol-breadcrumb.cjs.entry.js +26 -30
  59. package/dist/cjs/kol-button-link.cjs.entry.js +22 -25
  60. package/dist/cjs/kol-button.cjs.entry.js +22 -25
  61. package/dist/cjs/kol-card.cjs.entry.js +27 -30
  62. package/dist/cjs/kol-combobox.cjs.entry.js +37 -40
  63. package/dist/cjs/kol-details.cjs.entry.js +15 -17
  64. package/dist/cjs/kol-dialog.cjs.entry.js +30 -33
  65. package/dist/cjs/kol-drawer.cjs.entry.js +30 -33
  66. package/dist/cjs/kol-form.cjs.entry.js +24 -27
  67. package/dist/cjs/kol-heading.cjs.entry.js +13 -15
  68. package/dist/cjs/kol-icon.cjs.entry.js +8 -9
  69. package/dist/cjs/kol-image.cjs.entry.js +7 -9
  70. package/dist/cjs/kol-input-checkbox.cjs.entry.js +38 -41
  71. package/dist/cjs/kol-input-color.cjs.entry.js +35 -38
  72. package/dist/cjs/kol-input-date.cjs.entry.js +41 -45
  73. package/dist/cjs/kol-input-email.cjs.entry.js +42 -45
  74. package/dist/cjs/kol-input-file.cjs.entry.js +36 -39
  75. package/dist/cjs/kol-input-number.cjs.entry.js +40 -43
  76. package/dist/cjs/kol-input-password.cjs.entry.js +41 -44
  77. package/dist/cjs/kol-input-radio.cjs.entry.js +37 -40
  78. package/dist/cjs/kol-input-range.cjs.entry.js +35 -38
  79. package/dist/cjs/kol-input-text.cjs.entry.js +43 -46
  80. package/dist/cjs/kol-kolibri.cjs.entry.js +8 -12
  81. package/dist/cjs/kol-link-button.cjs.entry.js +23 -26
  82. package/dist/cjs/kol-link.cjs.entry.js +23 -26
  83. package/dist/cjs/kol-meter.cjs.entry.js +14 -15
  84. package/dist/cjs/kol-modal.cjs.entry.js +30 -33
  85. package/dist/cjs/kol-nav.cjs.entry.js +35 -38
  86. package/dist/cjs/kol-pagination.cjs.entry.js +41 -44
  87. package/dist/cjs/kol-popover-button.cjs.entry.js +23 -26
  88. package/dist/cjs/kol-progress.cjs.entry.js +13 -14
  89. package/dist/cjs/kol-quote.cjs.entry.js +9 -10
  90. package/dist/cjs/kol-select.cjs.entry.js +34 -37
  91. package/dist/cjs/kol-single-select.cjs.entry.js +37 -40
  92. package/dist/cjs/kol-skip-nav.cjs.entry.js +26 -30
  93. package/dist/cjs/kol-spin.cjs.entry.js +11 -15
  94. package/dist/cjs/kol-split-button.cjs.entry.js +28 -31
  95. package/dist/cjs/kol-table-stateful.cjs.entry.js +53 -54
  96. package/dist/cjs/kol-table-stateless.cjs.entry.js +37 -40
  97. package/dist/cjs/kol-tabs.cjs.entry.js +23 -26
  98. package/dist/cjs/kol-textarea.cjs.entry.js +39 -42
  99. package/dist/cjs/kol-toast-container.cjs.entry.js +20 -23
  100. package/dist/cjs/kol-toolbar.cjs.entry.js +29 -32
  101. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +11 -12
  102. package/dist/cjs/kol-tree-item.cjs.entry.js +22 -26
  103. package/dist/cjs/kol-tree.cjs.entry.js +9 -10
  104. package/dist/cjs/kol-version.cjs.entry.js +21 -24
  105. package/dist/cjs/kolibri.cjs.js +3 -3
  106. package/dist/cjs/{label-D6c6jfqK.js → label-BA98eiFj.js} +3 -3
  107. package/dist/cjs/{label-hints-q3XenWLW.js → label-hints-BE4LQ_Av.js} +1 -1
  108. package/dist/cjs/{label-lang-segment-k4OY9qRY.js → label-lang-segment-C5U5gEca.js} +2 -2
  109. package/dist/cjs/{label-with-expert-slot-CJoz7BLw.js → label-with-expert-slot-x1D8V34g.js} +3 -3
  110. package/dist/cjs/{level-B6vFMm9s.js → level-CX2p0n7U.js} +1 -1
  111. package/dist/cjs/{link-target-0qSVsAb2.js → link-target-B1N4Je6O.js} +1 -1
  112. package/dist/cjs/{links-Ur1e9DOK.js → links-SN0jipdB.js} +1 -1
  113. package/dist/cjs/loader.cjs.js +3 -3
  114. package/dist/cjs/{multiple-CCxtzqez.js → multiple-Dl_RoQ-P.js} +1 -1
  115. package/dist/cjs/{number-value-DzAHCwlP.js → number-value-DO-0brWb.js} +1 -1
  116. package/dist/cjs/{open-Gxr_K7HK.js → open-BQ2n_Z5t.js} +1 -1
  117. package/dist/cjs/{options-BT0m0gRT.js → options-B49Y2jkm.js} +1 -1
  118. package/dist/cjs/{orientation-CeHU4dT8.js → orientation-DKdQrdXN.js} +1 -1
  119. package/dist/cjs/{placeholder-22xUUFff.js → placeholder-E5zS-kqO.js} +1 -1
  120. package/dist/cjs/{props-from-config-D1qhXS9j.js → props-from-config-8bawgofo.js} +86 -5
  121. package/dist/cjs/{read-only-iHApMQEg.js → read-only-YsES5bfT.js} +1 -1
  122. package/dist/cjs/{required-BYdSI25I.js → required-BvWmptNq.js} +1 -1
  123. package/dist/cjs/{resolve-props-c-uwDulF.js → resolve-props-CHqmeYxD.js} +6 -6
  124. package/dist/cjs/{resolve-props-B7klWjLx.js → resolve-props-DUeggpV2.js} +7 -7
  125. package/dist/cjs/{rows-C9vBSQK1.js → rows-BBmwZt2C.js} +1 -1
  126. package/dist/cjs/{scroll-lock-daUQqmx_.js → scroll-lock-3znuNdTX.js} +8 -7
  127. package/dist/cjs/{smart-button-DRMmUyQ5.js → smart-button-B3OCsLLZ.js} +1 -1
  128. package/dist/cjs/{spell-check-CxgvHcGA.js → spell-check-DuFxddUB.js} +1 -1
  129. package/dist/cjs/{src-Bmd7gQCS.js → src-Cl2qHbxL.js} +1 -1
  130. package/dist/cjs/{step-CCqgsPCX.js → step-Bf3TCVBv.js} +1 -1
  131. package/dist/cjs/{suggestions-CoUp7HmN.js → suggestions-BjKRoku9.js} +1 -1
  132. package/dist/cjs/{suggestions-D3snLGL_.js → suggestions-C4B_eROV.js} +3 -3
  133. package/dist/cjs/test-component.cjs.entry.js +1 -1
  134. package/dist/cjs/{toggle-handler-B0xib7fH.js → toggle-handler-DEpykyv_.js} +11 -13
  135. package/dist/cjs/{unique-nav-labels-CgxOyb6V.js → unique-nav-labels-CNpNvloU.js} +1 -1
  136. package/dist/cjs/{unit-_oDj-vIB.js → unit-gLQjiSkI.js} +1 -1
  137. package/dist/cjs/{validators-CpCJvM4r.js → validators-DNveqLx4.js} +1 -1
  138. package/dist/cjs/{value-string-CKppMGVM.js → value-string-JMz269Bn.js} +1 -1
  139. package/dist/cjs/{width-e7f3wHF3.js → width-_6rleKWl.js} +1 -1
  140. package/dist/collection/components/abbr/style.css +21 -0
  141. package/dist/collection/components/accordion/style.css +23 -2
  142. package/dist/collection/components/alert/component.js +6 -5
  143. package/dist/collection/components/alert/style.css +23 -2
  144. package/dist/collection/components/avatar/style.css +21 -0
  145. package/dist/collection/components/badge/style.css +23 -2
  146. package/dist/collection/components/breadcrumb/style.css +23 -2
  147. package/dist/collection/components/button/style.css +23 -2
  148. package/dist/collection/components/button-link/style.css +23 -2
  149. package/dist/collection/components/card/style.css +23 -2
  150. package/dist/collection/components/combobox/style.css +23 -2
  151. package/dist/collection/components/details/style.css +23 -2
  152. package/dist/collection/components/dialog/base.js +2 -2
  153. package/dist/collection/components/dialog/style.css +23 -2
  154. package/dist/collection/components/drawer/style.css +23 -2
  155. package/dist/collection/components/form/style.css +23 -2
  156. package/dist/collection/components/heading/style.css +21 -0
  157. package/dist/collection/components/icon/style.css +2 -2
  158. package/dist/collection/components/image/style.css +21 -0
  159. package/dist/collection/components/input-checkbox/style.css +23 -2
  160. package/dist/collection/components/input-color/style.css +23 -2
  161. package/dist/collection/components/input-date/component.js +6 -6
  162. package/dist/collection/components/input-date/style.css +23 -2
  163. package/dist/collection/components/input-email/style.css +23 -2
  164. package/dist/collection/components/input-file/component.js +1 -1
  165. package/dist/collection/components/input-file/style.css +23 -2
  166. package/dist/collection/components/input-number/style.css +23 -2
  167. package/dist/collection/components/input-password/style.css +23 -2
  168. package/dist/collection/components/input-radio/style.css +23 -2
  169. package/dist/collection/components/input-range/style.css +23 -2
  170. package/dist/collection/components/input-text/style.css +23 -2
  171. package/dist/collection/components/kolibri/style.css +21 -0
  172. package/dist/collection/components/link/style.css +23 -2
  173. package/dist/collection/components/link-button/style.css +23 -2
  174. package/dist/collection/components/meter/style.css +21 -0
  175. package/dist/collection/components/modal/style.css +23 -2
  176. package/dist/collection/components/nav/style.css +23 -2
  177. package/dist/collection/components/pagination/component.js +5 -5
  178. package/dist/collection/components/pagination/style.css +23 -2
  179. package/dist/collection/components/popover-button/style.css +23 -2
  180. package/dist/collection/components/progress/style.css +21 -0
  181. package/dist/collection/components/quote/style.css +21 -0
  182. package/dist/collection/components/select/style.css +23 -2
  183. package/dist/collection/components/single-select/style.css +23 -2
  184. package/dist/collection/components/skip-nav/style.css +23 -2
  185. package/dist/collection/components/spin/style.css +21 -0
  186. package/dist/collection/components/split-button/style.css +23 -2
  187. package/dist/collection/components/table-stateful/component.js +5 -2
  188. package/dist/collection/components/table-stateful/style.css +23 -2
  189. package/dist/collection/components/table-stateless/style.css +23 -2
  190. package/dist/collection/components/tabs/style.css +23 -2
  191. package/dist/collection/components/textarea/style.css +23 -2
  192. package/dist/collection/components/toaster/style.css +23 -2
  193. package/dist/collection/components/toolbar/style.css +23 -2
  194. package/dist/collection/components/tree/style.css +21 -0
  195. package/dist/collection/components/tree-item/style.css +23 -2
  196. package/dist/collection/components/version/style.css +23 -2
  197. package/dist/collection/core/i18n.js +2 -1
  198. package/dist/collection/internal/functional-components/alert/component.js +2 -1
  199. package/dist/collection/internal/functional-components/avatar/component.js +2 -2
  200. package/dist/collection/internal/functional-components/badge/component.js +2 -1
  201. package/dist/collection/internal/functional-components/bem-root-node/component.js +16 -6
  202. package/dist/collection/internal/functional-components/breadcrumb/component.js +2 -2
  203. package/dist/collection/internal/functional-components/card/component.js +3 -1
  204. package/dist/collection/internal/functional-components/collapsible/component.js +3 -2
  205. package/dist/collection/internal/functional-components/dialog/component.js +6 -3
  206. package/dist/collection/internal/functional-components/dialog/item.js +2 -2
  207. package/dist/collection/internal/functional-components/drawer/component.js +1 -1
  208. package/dist/collection/internal/functional-components/heading/component.js +3 -4
  209. package/dist/collection/internal/functional-components/icon/component.js +2 -2
  210. package/dist/collection/internal/functional-components/image/component.js +2 -4
  211. package/dist/collection/internal/functional-components/link/component.js +1 -1
  212. package/dist/collection/internal/functional-components/meter/component.js +2 -1
  213. package/dist/collection/internal/functional-components/pagination/item.js +6 -6
  214. package/dist/collection/internal/functional-components/progress/component.js +2 -1
  215. package/dist/collection/internal/functional-components/quote/component.js +2 -2
  216. package/dist/collection/internal/functional-components/skip-nav/component.js +2 -2
  217. package/dist/collection/internal/functional-components/span/component.js +3 -2
  218. package/dist/collection/internal/functional-components/table-stateless/settings.js +12 -4
  219. package/dist/collection/internal/functional-components/tree/component.js +2 -2
  220. package/dist/collection/internal/functional-components/tree-item/component.js +2 -2
  221. package/dist/collection/schema/bem-registry.js +22 -0
  222. package/dist/collection/utils/markdown.js +49 -3
  223. package/dist/components/Heading.js +1 -1
  224. package/dist/components/base-web-component2.js +1 -1
  225. package/dist/components/base-web-component3.js +1 -1
  226. package/dist/components/base-web-component4.js +1 -1
  227. package/dist/components/base.js +1 -1
  228. package/dist/components/base2.js +1 -1
  229. package/dist/components/base3.js +1 -1
  230. package/dist/components/base4.js +1 -1
  231. package/dist/components/behavior.js +1 -1
  232. package/dist/components/behavior2.js +1 -1
  233. package/dist/components/behavior3.js +1 -1
  234. package/dist/components/behavior4.js +1 -1
  235. package/dist/components/bem-registry.js +1 -1
  236. package/dist/components/component.js +1 -1
  237. package/dist/components/component10.js +1 -1
  238. package/dist/components/component2.js +1 -1
  239. package/dist/components/component3.js +1 -1
  240. package/dist/components/component4.js +1 -1
  241. package/dist/components/component5.js +1 -1
  242. package/dist/components/component6.js +1 -1
  243. package/dist/components/component7.js +1 -1
  244. package/dist/components/component8.js +1 -1
  245. package/dist/components/component9.js +1 -1
  246. package/dist/components/contrast.js +1 -1
  247. package/dist/components/controller.js +1 -1
  248. package/dist/components/devtools.js +1 -1
  249. package/dist/components/field-control.js +1 -1
  250. package/dist/components/group.js +1 -1
  251. package/dist/components/i18n2.js +1 -1
  252. package/dist/components/input-container.js +1 -1
  253. package/dist/components/input.js +1 -1
  254. package/dist/components/item2.js +1 -1
  255. package/dist/components/item4.js +1 -1
  256. package/dist/components/kol-abbr.js +1 -1
  257. package/dist/components/kol-accordion.js +1 -1
  258. package/dist/components/kol-alert.js +1 -1
  259. package/dist/components/kol-avatar.js +1 -1
  260. package/dist/components/kol-badge.js +1 -1
  261. package/dist/components/kol-breadcrumb.js +1 -1
  262. package/dist/components/kol-button-link.js +1 -1
  263. package/dist/components/kol-button.js +1 -1
  264. package/dist/components/kol-card.js +1 -1
  265. package/dist/components/kol-combobox.js +1 -1
  266. package/dist/components/kol-details.js +1 -1
  267. package/dist/components/kol-dialog.js +1 -1
  268. package/dist/components/kol-drawer.js +1 -1
  269. package/dist/components/kol-form.js +1 -1
  270. package/dist/components/kol-heading.js +1 -1
  271. package/dist/components/kol-icon.js +1 -1
  272. package/dist/components/kol-image.js +1 -1
  273. package/dist/components/kol-input-checkbox.js +1 -1
  274. package/dist/components/kol-input-color.js +1 -1
  275. package/dist/components/kol-input-date.js +1 -1
  276. package/dist/components/kol-input-email.js +1 -1
  277. package/dist/components/kol-input-file.js +1 -1
  278. package/dist/components/kol-input-number.js +1 -1
  279. package/dist/components/kol-input-password.js +1 -1
  280. package/dist/components/kol-input-radio.js +1 -1
  281. package/dist/components/kol-input-range.js +1 -1
  282. package/dist/components/kol-input-text.js +1 -1
  283. package/dist/components/kol-kolibri.js +1 -1
  284. package/dist/components/kol-link-button.js +1 -1
  285. package/dist/components/kol-link.js +1 -1
  286. package/dist/components/kol-meter.js +1 -1
  287. package/dist/components/kol-modal.js +1 -1
  288. package/dist/components/kol-nav.js +1 -1
  289. package/dist/components/kol-pagination.js +1 -1
  290. package/dist/components/kol-popover-button.js +1 -1
  291. package/dist/components/kol-progress.js +1 -1
  292. package/dist/components/kol-quote.js +1 -1
  293. package/dist/components/kol-select.js +1 -1
  294. package/dist/components/kol-single-select.js +1 -1
  295. package/dist/components/kol-skip-nav.js +1 -1
  296. package/dist/components/kol-spin.js +1 -1
  297. package/dist/components/kol-split-button.js +1 -1
  298. package/dist/components/kol-table-stateful.js +1 -1
  299. package/dist/components/kol-table-stateless.js +1 -1
  300. package/dist/components/kol-tabs.js +1 -1
  301. package/dist/components/kol-textarea.js +1 -1
  302. package/dist/components/kol-toast-container.js +1 -1
  303. package/dist/components/kol-toolbar.js +1 -1
  304. package/dist/components/kol-tooltip-wc.js +1 -1
  305. package/dist/components/kol-tree-item.js +1 -1
  306. package/dist/components/kol-tree.js +1 -1
  307. package/dist/components/kol-version.js +1 -1
  308. package/dist/components/label-hints.js +1 -1
  309. package/dist/components/label-lang-segment.js +1 -1
  310. package/dist/components/label-with-expert-slot.js +1 -1
  311. package/dist/components/level.js +1 -1
  312. package/dist/components/links.js +1 -1
  313. package/dist/components/number-value.js +1 -1
  314. package/dist/components/props-from-config.js +1 -1
  315. package/dist/components/resolve-props.js +1 -1
  316. package/dist/components/resolve-props2.js +1 -1
  317. package/dist/components/rows.js +1 -1
  318. package/dist/components/scroll-lock.js +1 -1
  319. package/dist/components/step.js +1 -1
  320. package/dist/components/toggle-handler.js +1 -1
  321. package/dist/components/unit.js +1 -1
  322. package/dist/components/validators.js +1 -1
  323. package/dist/esm/{Heading-GZb1f2pZ.js → Heading-DDS-lyOB.js} +2 -2
  324. package/dist/esm/{api-CBPlj155.js → api-MBSY9afi.js} +18 -20
  325. package/dist/esm/{app-globals-DRl9A82c.js → app-globals-DytcyM_s.js} +2 -2
  326. package/dist/esm/{base-BByRnpRm.js → base-D-me6QDT.js} +10 -10
  327. package/dist/esm/{base-C7BBsrYZ.js → base-D7-iAVBu.js} +35 -28
  328. package/dist/esm/{base-DO0KvOv9.js → base-DP9yHJOV.js} +10 -10
  329. package/dist/esm/{base-Dtxcvto_.js → base-DZBnXHZh.js} +10 -10
  330. package/dist/esm/{base-web-component-BxXLva5d.js → base-web-component-BLA2cpyz.js} +8 -10
  331. package/dist/esm/{base-web-component-CC_gpyDb.js → base-web-component-Bh2NCN7p.js} +1 -1
  332. package/dist/esm/{base-web-component-CfPyCJDJ.js → base-web-component-DwY54ppZ.js} +13 -14
  333. package/dist/esm/{behavior-CsNDRS2z.js → behavior-Cw8QfOcm.js} +4 -4
  334. package/dist/esm/{behavior-ewHvUWVk.js → behavior-DUy0X7U1.js} +4 -4
  335. package/dist/esm/{behavior-CKU2tmCj.js → behavior-DmR4WVXd.js} +4 -4
  336. package/dist/esm/{bem-registry-D1KgKnyz.js → bem-registry-SKACeCny.js} +22 -0
  337. package/dist/esm/{bootstrap-tgQ2nQQI.js → bootstrap-Bp7i4RJQ.js} +1 -1
  338. package/dist/esm/{color-D1gM-F2l.js → color-CnRQPMm_.js} +2 -2
  339. package/dist/esm/{component-By8ggItU.js → component-B4CDonzN.js} +6 -8
  340. package/dist/esm/{component-B3OziaRC.js → component-BC1TpQVD.js} +9 -11
  341. package/dist/esm/component-BUzgs8fh.js +48 -0
  342. package/dist/esm/{component-D4-NVnsT.js → component-Bldy_ShO.js} +4 -4
  343. package/dist/esm/component-Cj3P_f35.js +173 -0
  344. package/dist/esm/{component-D6_K50vT.js → component-D5yKRPCZ.js} +4 -4
  345. package/dist/esm/{component-D6lo0LzE.js → component-DisuGN16.js} +5 -6
  346. package/dist/esm/{component-6l69Jvwl.js → component-DxnezN7K.js} +6 -5
  347. package/dist/esm/component-LadkF9an.js +17 -0
  348. package/dist/esm/{component-CF8uFG0A.js → component-ZJiUl6kZ.js} +13 -15
  349. package/dist/esm/{component-Cmi6iGfA.js → component-vxdandl4.js} +10 -11
  350. package/dist/esm/{contrast-BNoQruBh.js → contrast-pfwNxK_L.js} +1 -1
  351. package/dist/esm/{dev.utils-BwYCy1rP.js → dev.utils-DM7Qhcet.js} +1 -1
  352. package/dist/esm/{devtools-CGP3Nzsw.js → devtools-CxUqjh1N.js} +2 -2
  353. package/dist/esm/{disabled-BZXlWAgK.js → disabled-C2DzYwwy.js} +1 -1
  354. package/dist/esm/{field-control-0TRmF7Ea.js → field-control-CQJgDAKK.js} +7 -7
  355. package/dist/esm/{group-DapkT_Yh.js → group-DCoICCiG.js} +5 -6
  356. package/dist/esm/{has-closer-DUB0QcS9.js → has-closer-x20C4xl3.js} +1 -1
  357. package/dist/esm/{href-CxokGOJ2.js → href-vIF4eC7d.js} +1 -1
  358. package/dist/esm/{i18n-ePBcLlCr.js → i18n-BLkzMf6D.js} +1 -1
  359. package/dist/esm/{i18n-4J6U3ZDc.js → i18n-BRgvVqCf.js} +2 -1
  360. package/dist/esm/{id-BI0ZuK17.js → id-lCAtMmMx.js} +1 -1
  361. package/dist/esm/{index-DEcM8BEc.js → index-8-BSSKQL.js} +1 -1
  362. package/dist/esm/index.js +4 -4
  363. package/dist/esm/{input-CDUCo1S5.js → input-C4yo-d7N.js} +4 -5
  364. package/dist/esm/{input-container-BipAkWn4.js → input-container-Cb2xJUCl.js} +6 -8
  365. package/dist/esm/{item-UgJ2uikD.js → item-BANfM_Mo.js} +17 -18
  366. package/dist/esm/{item-BvnZc8uV.js → item-C2HHBTvm.js} +4 -4
  367. package/dist/esm/{item-B0oQTeju.js → item-H09kNXn9.js} +4 -4
  368. package/dist/esm/{item-Boe3t0Dm.js → item-gvmzMXYb.js} +11 -11
  369. package/dist/esm/kol-abbr.entry.js +7 -11
  370. package/dist/esm/kol-accordion.entry.js +15 -17
  371. package/dist/esm/kol-alert.entry.js +27 -30
  372. package/dist/esm/kol-avatar.entry.js +14 -15
  373. package/dist/esm/kol-badge.entry.js +23 -26
  374. package/dist/esm/kol-breadcrumb.entry.js +26 -30
  375. package/dist/esm/kol-button-link.entry.js +22 -25
  376. package/dist/esm/kol-button.entry.js +22 -25
  377. package/dist/esm/kol-card.entry.js +27 -30
  378. package/dist/esm/kol-combobox.entry.js +36 -39
  379. package/dist/esm/kol-details.entry.js +15 -17
  380. package/dist/esm/kol-dialog.entry.js +30 -33
  381. package/dist/esm/kol-drawer.entry.js +30 -33
  382. package/dist/esm/kol-form.entry.js +23 -26
  383. package/dist/esm/kol-heading.entry.js +13 -15
  384. package/dist/esm/kol-icon.entry.js +8 -9
  385. package/dist/esm/kol-image.entry.js +7 -9
  386. package/dist/esm/kol-input-checkbox.entry.js +32 -35
  387. package/dist/esm/kol-input-color.entry.js +35 -38
  388. package/dist/esm/kol-input-date.entry.js +40 -44
  389. package/dist/esm/kol-input-email.entry.js +41 -44
  390. package/dist/esm/kol-input-file.entry.js +35 -38
  391. package/dist/esm/kol-input-number.entry.js +39 -42
  392. package/dist/esm/kol-input-password.entry.js +39 -42
  393. package/dist/esm/kol-input-radio.entry.js +34 -37
  394. package/dist/esm/kol-input-range.entry.js +35 -38
  395. package/dist/esm/kol-input-text.entry.js +41 -44
  396. package/dist/esm/kol-kolibri.entry.js +7 -11
  397. package/dist/esm/kol-link-button.entry.js +23 -26
  398. package/dist/esm/kol-link.entry.js +23 -26
  399. package/dist/esm/kol-meter.entry.js +14 -15
  400. package/dist/esm/kol-modal.entry.js +30 -33
  401. package/dist/esm/kol-nav.entry.js +30 -33
  402. package/dist/esm/kol-pagination.entry.js +41 -44
  403. package/dist/esm/kol-popover-button.entry.js +23 -26
  404. package/dist/esm/kol-progress.entry.js +13 -14
  405. package/dist/esm/kol-quote.entry.js +9 -10
  406. package/dist/esm/kol-select.entry.js +34 -37
  407. package/dist/esm/kol-single-select.entry.js +36 -39
  408. package/dist/esm/kol-skip-nav.entry.js +26 -30
  409. package/dist/esm/kol-spin.entry.js +11 -15
  410. package/dist/esm/kol-split-button.entry.js +26 -29
  411. package/dist/esm/kol-table-stateful.entry.js +53 -54
  412. package/dist/esm/kol-table-stateless.entry.js +37 -40
  413. package/dist/esm/kol-tabs.entry.js +22 -25
  414. package/dist/esm/kol-textarea.entry.js +37 -40
  415. package/dist/esm/kol-toast-container.entry.js +19 -22
  416. package/dist/esm/kol-toolbar.entry.js +27 -30
  417. package/dist/esm/kol-tooltip-wc.entry.js +11 -12
  418. package/dist/esm/kol-tree-item.entry.js +22 -26
  419. package/dist/esm/kol-tree.entry.js +9 -10
  420. package/dist/esm/kol-version.entry.js +20 -23
  421. package/dist/esm/kolibri.js +4 -4
  422. package/dist/esm/{label-hints-CLMiVvfk.js → label-hints-BUADjqKF.js} +1 -1
  423. package/dist/esm/{label-lang-segment-iVD9hoM3.js → label-lang-segment-B13iL7iy.js} +2 -2
  424. package/dist/esm/{label-B-Dr7VaP.js → label-mr5joqaQ.js} +3 -3
  425. package/dist/esm/label-with-expert-slot-BVqi0_Fb.js +12 -0
  426. package/dist/esm/{level-DsQ_pcyD.js → level-eGeMFn0b.js} +1 -1
  427. package/dist/esm/{link-target-D7lYILOV.js → link-target-DEH-wAmf.js} +1 -1
  428. package/dist/esm/{links-IkK4zoXw.js → links-Dy9WkOJ-.js} +1 -1
  429. package/dist/esm/loader.js +4 -4
  430. package/dist/esm/{multiple--ay1C1n3.js → multiple-F8uOX8RD.js} +1 -1
  431. package/dist/esm/{number-value-Dl9-2O4r.js → number-value-DncK2_pC.js} +1 -1
  432. package/dist/esm/{open-CNHJhHsy.js → open-DoPXNruj.js} +1 -1
  433. package/dist/esm/{options-DwO32GBF.js → options-DcIQ-KB2.js} +1 -1
  434. package/dist/esm/{orientation-ChJ0S24M.js → orientation-tX0FldEu.js} +1 -1
  435. package/dist/esm/{placeholder-UxmBJ4Vl.js → placeholder-BPZ2sQEB.js} +1 -1
  436. package/dist/esm/{props-from-config-ytxYrJUY.js → props-from-config-LBgEHmcL.js} +84 -6
  437. package/dist/esm/{read-only-DytZ5HZJ.js → read-only-9BPUG7r4.js} +1 -1
  438. package/dist/esm/{required-BriHhuO4.js → required-DBJ4iW2e.js} +1 -1
  439. package/dist/esm/{resolve-props-DTXKtzir.js → resolve-props-0xfjG6h5.js} +6 -6
  440. package/dist/esm/{resolve-props-kM9N-fzf.js → resolve-props-BQa6SjZU.js} +7 -7
  441. package/dist/esm/{rows-I1jrTjzU.js → rows-DuYJeJT7.js} +1 -1
  442. package/dist/esm/{scroll-lock-Bv-U2FHM.js → scroll-lock-CIv7iOPB.js} +9 -7
  443. package/dist/esm/{smart-button-DM5g48-g.js → smart-button-p4avK7MS.js} +1 -1
  444. package/dist/esm/{spell-check-BWCnJG5v.js → spell-check-Bvc-Peew.js} +1 -1
  445. package/dist/esm/{src-ziOwSglN.js → src-CVwlo_cY.js} +1 -1
  446. package/dist/esm/{step-BcyhvRtu.js → step-oCposIuI.js} +1 -1
  447. package/dist/esm/{suggestions-LO267l8F.js → suggestions-BsWy2U2z.js} +1 -1
  448. package/dist/esm/{suggestions-D0u80DtA.js → suggestions-fWMdnACm.js} +3 -3
  449. package/dist/esm/test-component.entry.js +1 -1
  450. package/dist/esm/{toggle-handler-mPlmvrq7.js → toggle-handler-CtJ2Z7Us.js} +10 -12
  451. package/dist/esm/{unique-nav-labels-CxFUYSVY.js → unique-nav-labels-CZIyOzqJ.js} +1 -1
  452. package/dist/esm/{unit-1ix-K9SD.js → unit-YqluIXsF.js} +1 -1
  453. package/dist/esm/{validators-CTjxOidB.js → validators-ByUMEUYD.js} +1 -1
  454. package/dist/esm/{value-string-CxDz7dhD.js → value-string-Baqhc_TX.js} +1 -1
  455. package/dist/esm/{width-C1_yZHyL.js → width-BJNhiv_8.js} +1 -1
  456. package/dist/kolibri/Heading-DDS-lyOB.js +4 -0
  457. package/dist/kolibri/api-MBSY9afi.js +4 -0
  458. package/dist/kolibri/{app-globals-DRl9A82c.js → app-globals-DytcyM_s.js} +1 -1
  459. package/dist/kolibri/base-D-me6QDT.js +4 -0
  460. package/dist/kolibri/base-D7-iAVBu.js +4 -0
  461. package/dist/kolibri/base-DP9yHJOV.js +4 -0
  462. package/dist/kolibri/base-DZBnXHZh.js +4 -0
  463. package/dist/kolibri/base-web-component-BLA2cpyz.js +4 -0
  464. package/dist/kolibri/{base-web-component-CC_gpyDb.js → base-web-component-Bh2NCN7p.js} +1 -1
  465. package/dist/kolibri/base-web-component-DwY54ppZ.js +4 -0
  466. package/dist/kolibri/{behavior-CsNDRS2z.js → behavior-Cw8QfOcm.js} +1 -1
  467. package/dist/kolibri/{behavior-ewHvUWVk.js → behavior-DUy0X7U1.js} +1 -1
  468. package/dist/kolibri/{behavior-CKU2tmCj.js → behavior-DmR4WVXd.js} +1 -1
  469. package/dist/kolibri/bem-registry-SKACeCny.js +4 -0
  470. package/dist/kolibri/{bootstrap-tgQ2nQQI.js → bootstrap-Bp7i4RJQ.js} +1 -1
  471. package/dist/kolibri/{color-D1gM-F2l.js → color-CnRQPMm_.js} +1 -1
  472. package/dist/kolibri/{component-By8ggItU.js → component-B4CDonzN.js} +1 -1
  473. package/dist/kolibri/component-BC1TpQVD.js +4 -0
  474. package/dist/kolibri/component-BUzgs8fh.js +4 -0
  475. package/dist/kolibri/component-Bldy_ShO.js +4 -0
  476. package/dist/kolibri/component-Cj3P_f35.js +4 -0
  477. package/dist/kolibri/component-D5yKRPCZ.js +4 -0
  478. package/dist/kolibri/component-DisuGN16.js +4 -0
  479. package/dist/kolibri/component-DxnezN7K.js +4 -0
  480. package/dist/kolibri/component-LadkF9an.js +4 -0
  481. package/dist/kolibri/component-ZJiUl6kZ.js +4 -0
  482. package/dist/kolibri/component-vxdandl4.js +4 -0
  483. package/dist/kolibri/{contrast-BNoQruBh.js → contrast-pfwNxK_L.js} +1 -1
  484. package/dist/kolibri/{dev.utils-BwYCy1rP.js → dev.utils-DM7Qhcet.js} +1 -1
  485. package/dist/kolibri/{devtools-CGP3Nzsw.js → devtools-CxUqjh1N.js} +1 -1
  486. package/dist/kolibri/disabled-C2DzYwwy.js +4 -0
  487. package/dist/kolibri/field-control-CQJgDAKK.js +4 -0
  488. package/dist/kolibri/group-DCoICCiG.js +4 -0
  489. package/dist/kolibri/has-closer-x20C4xl3.js +4 -0
  490. package/dist/kolibri/href-vIF4eC7d.js +4 -0
  491. package/dist/kolibri/{i18n-ePBcLlCr.js → i18n-BLkzMf6D.js} +1 -1
  492. package/dist/kolibri/{i18n-4J6U3ZDc.js → i18n-BRgvVqCf.js} +1 -1
  493. package/dist/kolibri/id-lCAtMmMx.js +4 -0
  494. package/dist/kolibri/{index-DEcM8BEc.js → index-8-BSSKQL.js} +1 -1
  495. package/dist/kolibri/index.esm.js +1 -1
  496. package/dist/kolibri/input-C4yo-d7N.js +4 -0
  497. package/dist/kolibri/input-container-Cb2xJUCl.js +4 -0
  498. package/dist/kolibri/item-BANfM_Mo.js +4 -0
  499. package/dist/kolibri/item-C2HHBTvm.js +4 -0
  500. package/dist/kolibri/item-H09kNXn9.js +4 -0
  501. package/dist/kolibri/item-gvmzMXYb.js +4 -0
  502. package/dist/kolibri/kol-abbr.entry.js +1 -1
  503. package/dist/kolibri/kol-accordion.entry.js +1 -1
  504. package/dist/kolibri/kol-alert.entry.js +1 -1
  505. package/dist/kolibri/kol-avatar.entry.js +1 -1
  506. package/dist/kolibri/kol-badge.entry.js +1 -1
  507. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  508. package/dist/kolibri/kol-button-link.entry.js +1 -1
  509. package/dist/kolibri/kol-button.entry.js +1 -1
  510. package/dist/kolibri/kol-card.entry.js +1 -1
  511. package/dist/kolibri/kol-combobox.entry.js +1 -1
  512. package/dist/kolibri/kol-details.entry.js +1 -1
  513. package/dist/kolibri/kol-dialog.entry.js +1 -1
  514. package/dist/kolibri/kol-drawer.entry.js +1 -1
  515. package/dist/kolibri/kol-form.entry.js +1 -1
  516. package/dist/kolibri/kol-heading.entry.js +1 -1
  517. package/dist/kolibri/kol-icon.entry.js +1 -1
  518. package/dist/kolibri/kol-image.entry.js +1 -1
  519. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  520. package/dist/kolibri/kol-input-color.entry.js +1 -1
  521. package/dist/kolibri/kol-input-date.entry.js +1 -1
  522. package/dist/kolibri/kol-input-email.entry.js +1 -1
  523. package/dist/kolibri/kol-input-file.entry.js +1 -1
  524. package/dist/kolibri/kol-input-number.entry.js +1 -1
  525. package/dist/kolibri/kol-input-password.entry.js +1 -1
  526. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  527. package/dist/kolibri/kol-input-range.entry.js +1 -1
  528. package/dist/kolibri/kol-input-text.entry.js +1 -1
  529. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  530. package/dist/kolibri/kol-link-button.entry.js +1 -1
  531. package/dist/kolibri/kol-link.entry.js +1 -1
  532. package/dist/kolibri/kol-meter.entry.js +1 -1
  533. package/dist/kolibri/kol-modal.entry.js +1 -1
  534. package/dist/kolibri/kol-nav.entry.js +1 -1
  535. package/dist/kolibri/kol-pagination.entry.js +1 -1
  536. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  537. package/dist/kolibri/kol-progress.entry.js +1 -1
  538. package/dist/kolibri/kol-quote.entry.js +1 -1
  539. package/dist/kolibri/kol-select.entry.js +1 -1
  540. package/dist/kolibri/kol-single-select.entry.js +1 -1
  541. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  542. package/dist/kolibri/kol-spin.entry.js +1 -1
  543. package/dist/kolibri/kol-split-button.entry.js +1 -1
  544. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  545. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  546. package/dist/kolibri/kol-tabs.entry.js +1 -1
  547. package/dist/kolibri/kol-textarea.entry.js +1 -1
  548. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  549. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  550. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  551. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  552. package/dist/kolibri/kol-tree.entry.js +1 -1
  553. package/dist/kolibri/kol-version.entry.js +1 -1
  554. package/dist/kolibri/kolibri.esm.js +1 -1
  555. package/dist/kolibri/label-hints-BUADjqKF.js +4 -0
  556. package/dist/kolibri/label-lang-segment-B13iL7iy.js +4 -0
  557. package/dist/kolibri/label-mr5joqaQ.js +4 -0
  558. package/dist/kolibri/label-with-expert-slot-BVqi0_Fb.js +4 -0
  559. package/dist/kolibri/level-eGeMFn0b.js +4 -0
  560. package/dist/kolibri/link-target-DEH-wAmf.js +4 -0
  561. package/dist/kolibri/{links-IkK4zoXw.js → links-Dy9WkOJ-.js} +1 -1
  562. package/dist/kolibri/multiple-F8uOX8RD.js +4 -0
  563. package/dist/kolibri/number-value-DncK2_pC.js +4 -0
  564. package/dist/kolibri/open-DoPXNruj.js +4 -0
  565. package/dist/kolibri/{options-DwO32GBF.js → options-DcIQ-KB2.js} +1 -1
  566. package/dist/kolibri/orientation-tX0FldEu.js +4 -0
  567. package/dist/kolibri/placeholder-BPZ2sQEB.js +4 -0
  568. package/dist/kolibri/props-from-config-LBgEHmcL.js +4 -0
  569. package/dist/kolibri/read-only-9BPUG7r4.js +4 -0
  570. package/dist/kolibri/required-DBJ4iW2e.js +4 -0
  571. package/dist/kolibri/resolve-props-0xfjG6h5.js +4 -0
  572. package/dist/kolibri/resolve-props-BQa6SjZU.js +4 -0
  573. package/dist/kolibri/rows-DuYJeJT7.js +4 -0
  574. package/dist/kolibri/scroll-lock-CIv7iOPB.js +4 -0
  575. package/dist/kolibri/{smart-button-DM5g48-g.js → smart-button-p4avK7MS.js} +1 -1
  576. package/dist/kolibri/spell-check-Bvc-Peew.js +4 -0
  577. package/dist/kolibri/src-CVwlo_cY.js +4 -0
  578. package/dist/kolibri/step-oCposIuI.js +4 -0
  579. package/dist/kolibri/{suggestions-LO267l8F.js → suggestions-BsWy2U2z.js} +1 -1
  580. package/dist/kolibri/suggestions-fWMdnACm.js +4 -0
  581. package/dist/kolibri/test-component.entry.js +1 -1
  582. package/dist/kolibri/toggle-handler-CtJ2Z7Us.js +4 -0
  583. package/dist/kolibri/unique-nav-labels-CZIyOzqJ.js +4 -0
  584. package/dist/kolibri/unit-YqluIXsF.js +4 -0
  585. package/dist/kolibri/validators-ByUMEUYD.js +4 -0
  586. package/dist/kolibri/value-string-Baqhc_TX.js +4 -0
  587. package/dist/kolibri/{width-C1_yZHyL.js → width-BJNhiv_8.js} +1 -1
  588. package/dist/types/components/alert/component.d.ts +1 -0
  589. package/dist/types/components/input-date/component.d.ts +1 -1
  590. package/dist/types/components.d.ts +2 -2
  591. package/dist/types/internal/functional-components/bem-root-node/component.d.ts +8 -4
  592. package/dist/types/internal/functional-components/button/item.d.ts +1 -1
  593. package/dist/types/internal/functional-components/dialog/component.d.ts +7 -3
  594. package/dist/types/internal/functional-components/pagination/item.d.ts +4 -2
  595. package/dist/types/schema/bem-registry.d.ts +40 -0
  596. package/doc/pagination.md +13 -13
  597. package/package.json +11 -8
  598. package/vscode-custom-data.json +1 -1
  599. package/dist/cjs/block-bem-BVBM34Tu.js +0 -18
  600. package/dist/cjs/clsx-Bm_HQUnh.js +0 -54
  601. package/dist/cjs/component-C9B-yJ93.js +0 -9300
  602. package/dist/cjs/component-CVLJJvvd.js +0 -53
  603. package/dist/cjs/component-DNQW0lG8.js +0 -18
  604. package/dist/cjs/component-DfGgpwuP.js +0 -20
  605. package/dist/cjs/input-CtqTozTO.js +0 -20
  606. package/dist/components/block-bem.js +0 -4
  607. package/dist/components/clsx.js +0 -4
  608. package/dist/components/component11.js +0 -4
  609. package/dist/esm/block-bem-D3ixJyOY.js +0 -16
  610. package/dist/esm/clsx-COFh-Vc8.js +0 -52
  611. package/dist/esm/component-Ccv2lqNq.js +0 -16
  612. package/dist/esm/component-D9NreIlK.js +0 -9295
  613. package/dist/esm/component-DAk3R8NN.js +0 -48
  614. package/dist/esm/component-EDDTMC-J.js +0 -18
  615. package/dist/esm/label-with-expert-slot-BbZ9nx0l.js +0 -12
  616. package/dist/kolibri/Heading-GZb1f2pZ.js +0 -4
  617. package/dist/kolibri/api-CBPlj155.js +0 -4
  618. package/dist/kolibri/base-BByRnpRm.js +0 -4
  619. package/dist/kolibri/base-C7BBsrYZ.js +0 -4
  620. package/dist/kolibri/base-DO0KvOv9.js +0 -4
  621. package/dist/kolibri/base-Dtxcvto_.js +0 -4
  622. package/dist/kolibri/base-web-component-BxXLva5d.js +0 -4
  623. package/dist/kolibri/base-web-component-CfPyCJDJ.js +0 -4
  624. package/dist/kolibri/bem-registry-D1KgKnyz.js +0 -4
  625. package/dist/kolibri/block-bem-D3ixJyOY.js +0 -4
  626. package/dist/kolibri/clsx-COFh-Vc8.js +0 -4
  627. package/dist/kolibri/component-6l69Jvwl.js +0 -4
  628. package/dist/kolibri/component-B3OziaRC.js +0 -4
  629. package/dist/kolibri/component-CF8uFG0A.js +0 -4
  630. package/dist/kolibri/component-Ccv2lqNq.js +0 -4
  631. package/dist/kolibri/component-Cmi6iGfA.js +0 -4
  632. package/dist/kolibri/component-D4-NVnsT.js +0 -4
  633. package/dist/kolibri/component-D6_K50vT.js +0 -4
  634. package/dist/kolibri/component-D6lo0LzE.js +0 -4
  635. package/dist/kolibri/component-D9NreIlK.js +0 -4
  636. package/dist/kolibri/component-DAk3R8NN.js +0 -4
  637. package/dist/kolibri/component-EDDTMC-J.js +0 -4
  638. package/dist/kolibri/disabled-BZXlWAgK.js +0 -4
  639. package/dist/kolibri/field-control-0TRmF7Ea.js +0 -4
  640. package/dist/kolibri/group-DapkT_Yh.js +0 -4
  641. package/dist/kolibri/has-closer-DUB0QcS9.js +0 -4
  642. package/dist/kolibri/href-CxokGOJ2.js +0 -4
  643. package/dist/kolibri/id-BI0ZuK17.js +0 -4
  644. package/dist/kolibri/input-CDUCo1S5.js +0 -4
  645. package/dist/kolibri/input-container-BipAkWn4.js +0 -4
  646. package/dist/kolibri/item-B0oQTeju.js +0 -4
  647. package/dist/kolibri/item-Boe3t0Dm.js +0 -4
  648. package/dist/kolibri/item-BvnZc8uV.js +0 -4
  649. package/dist/kolibri/item-UgJ2uikD.js +0 -4
  650. package/dist/kolibri/label-B-Dr7VaP.js +0 -4
  651. package/dist/kolibri/label-hints-CLMiVvfk.js +0 -4
  652. package/dist/kolibri/label-lang-segment-iVD9hoM3.js +0 -4
  653. package/dist/kolibri/label-with-expert-slot-BbZ9nx0l.js +0 -4
  654. package/dist/kolibri/level-DsQ_pcyD.js +0 -4
  655. package/dist/kolibri/link-target-D7lYILOV.js +0 -4
  656. package/dist/kolibri/multiple--ay1C1n3.js +0 -4
  657. package/dist/kolibri/number-value-Dl9-2O4r.js +0 -4
  658. package/dist/kolibri/open-CNHJhHsy.js +0 -4
  659. package/dist/kolibri/orientation-ChJ0S24M.js +0 -4
  660. package/dist/kolibri/placeholder-UxmBJ4Vl.js +0 -4
  661. package/dist/kolibri/props-from-config-ytxYrJUY.js +0 -4
  662. package/dist/kolibri/read-only-DytZ5HZJ.js +0 -4
  663. package/dist/kolibri/required-BriHhuO4.js +0 -4
  664. package/dist/kolibri/resolve-props-DTXKtzir.js +0 -4
  665. package/dist/kolibri/resolve-props-kM9N-fzf.js +0 -4
  666. package/dist/kolibri/rows-I1jrTjzU.js +0 -4
  667. package/dist/kolibri/scroll-lock-Bv-U2FHM.js +0 -4
  668. package/dist/kolibri/spell-check-BWCnJG5v.js +0 -4
  669. package/dist/kolibri/src-ziOwSglN.js +0 -4
  670. package/dist/kolibri/step-BcyhvRtu.js +0 -4
  671. package/dist/kolibri/suggestions-D0u80DtA.js +0 -4
  672. package/dist/kolibri/toggle-handler-mPlmvrq7.js +0 -4
  673. package/dist/kolibri/unique-nav-labels-CxFUYSVY.js +0 -4
  674. package/dist/kolibri/unit-1ix-K9SD.js +0 -4
  675. package/dist/kolibri/validators-CTjxOidB.js +0 -4
  676. 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,forceUpdate as e,h as o,Host as i,transformTag as n}from"@stencil/core/internal/client";import{_ as a}from"./tslib.es6.js";import{b as l,e as s}from"./bem-registry.js";import{v as r}from"./access-and-short-key.js";import{h as c,g as h,I as d}from"./input-container.js";import{f as u,B as m,F as p}from"./base-web-component2.js";import{I as k}from"./input.js";import{a as f,S as b}from"./suggestions2.js";import{a as _,d as y,v as g}from"./component3.js";import{f as w,c as v,b as x,i as j}from"./props-from-config.js";import{r as B}from"./read-only.js";import{r as S}from"./required.js";import{s as z}from"./smart-button.js";import{s as T}from"./step.js";import{s as D}from"./suggestions.js";import{c as K}from"./clsx.js";import{c as O}from"./dev.utils.js";import{c as A,d as M,a as V}from"./element-interaction.js";import{s as q}from"./controller.js";const C=["date","datetime-local","month","time","week"],I=/^\d{4}-([0]\d|1[0-2])-([0-2]\d|3[01])/,L=/^\d{4}-([0]\d|1[0-2])-([0-2]\d|3[01])[T ][0-2]\d:[0-5]\d(:[0-5]\d(?:\.\d+)?)?/,P=/^\d{4}-([0]\d|1[0-2])/,H=/^[0-2]\d:[0-5]\d(:[0-5]\d(?:\.\d+)?)?/,$=/^\d{4}-W(?:[0-4]\d|5[0-3])$/;function R(t,{type:e,step:o}){return function(t,e,o){if("string"==typeof t||null===t)return t;if(t instanceof Date){const i=t.getFullYear(),n=(t.getMonth()+1+"").padStart(2,"0"),a=(t.getDate()+"").padStart(2,"0"),l=(t.getHours()+"").padStart(2,"0"),s=(t.getMinutes()+"").padStart(2,"0"),r=(t.getSeconds()+"").padStart(2,"0"),c=[i,n,a].join("-"),h=[l,s,r].join(":");switch(e){case"date":return c;case"datetime-local":return`${c}T${h}`;case"month":return`${i}-${n}`;case"time":return void 0===o||o+""=="60"?`${l}:${s}`:h;case"week":return`${i}-W${function(t){const e=new Date(t),o=(e.getDay()+6)%7;e.setDate(e.getDate()-o+3);const i=e.valueOf();return e.setMonth(0,1),4!==e.getDay()&&e.setMonth(0,1+(4-e.getDay()+7)%7),(""+(1+Math.ceil((i-e.valueOf())/6048e5))).padStart(2,"0")}(t)}`}}}(t,e,o)}function G(t,{type:e}){return null==t||""===t||function(t,e){switch(e){case"date":return I.test(t);case"datetime-local":return L.test(t);case"month":return P.test(t);case"time":return H.test(t);case"week":return $.test(t);default:return!1}}(t,e)}const N=w("max",void 0,R,G),E=w("min",void 0,R,G),F=v("type","date",(function(t){const e=x(t);if(j(e,C))return e;throw Error("Invalid input date type: "+e)})),W=w("value",void 0,R,G);function U(t){return t instanceof Date?"Date":"string"==typeof t?"String":null}function J(t,e){return""===t?null:"Date"!==e?t:function(t){const e=Q.exec(t);return e?new Date(Number(e[1]),Number(e[2])-1,Number(e[3])):new Date(t)}(t)}const Q=/^(\d{4})-(\d{2})-(\d{2})$/,X={required:[...u.required],optional:[...u.optional,_,f,c,N,E,F,W,B,S,y,z,T,D,g]},Y=l.forBlock("kol-input-date"),Z=t(class extends m{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=O("input-date"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=A(),this.valueType=null,this.hasValue=!1,this.propsConfig=X,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._readOnly=!1,this._required=!1,this._shortKey=void 0,this._smartButton=void 0,this._suggestions=void 0,this._syncValueBySelector=void 0,this._step=void 0,this._tooltipAlign="top",this._touched=!1,this._type="date",this._value=void 0,this._variant=void 0,this.handleDateInput=t=>{const e=this.readValue(t);this._value=e,this.handleInput(t,e)},this.handleDateChange=t=>{const e=this.readValue(t);this.handleChange(t,e),this.hasValue=!!e},this.handleDateBlur=t=>{this.handleBlur(t);const e=t.target.value;!!e!=!!this._value&&(this._value=e)},this.handleDateKeyDown=t=>{this.handleKeyDown(t),q(t,{form:this.host,ref:this.ctaRef.el}),this.getRenderProp("readOnly")&&"Space"===t.code&&t.preventDefault()},this.initFormAssociation("date",this._name)}watchAccessKey(t){_.apply(t,(t=>this.setRenderProp("accessKey",t))),r(t,this._shortKey)}watchAriaDetails(t){this.applyAriaDetails(t)}watchAutoComplete(t){f.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){c.apply(t,(t=>this.setRenderProp("icons",t)))}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMax(t){N.apply(t,(t=>this.setRenderProp("max",t)),this.dateDeps)}watchMin(t){E.apply(t,(t=>this.setRenderProp("min",t)),this.dateDeps)}watchMsg(t){this.applyMsg(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchReadOnly(t){B.apply(t,(t=>this.setRenderProp("readOnly",t)))}watchRequired(t){S.apply(t,(t=>this.setRenderProp("required",t)))}watchShortKey(t){y.apply(t,(t=>this.setRenderProp("shortKey",t))),r(this._accessKey,t)}watchSmartButton(t){null==t?this.unsetRenderProp("smartButton"):z.apply(t,(t=>this.setRenderProp("smartButton",t)))}watchSuggestions(t){D.apply(t,(t=>this.setRenderProp("suggestions",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchStep(t){T.apply(t,(t=>this.setRenderProp("step",t)))}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchType(t){F.apply(t,(t=>this.setRenderProp("type",t)))}watchValue(t){var e;t instanceof Date&&s("Date type will be removed in v3. Use `Iso8601` instead."),W.apply(t,(t=>this.setRenderProp("value",t)),this.dateDeps),this.formAssociation.setFormAssociatedValue(null!==(e=this.getRenderProp("value"))&&void 0!==e?e:null),null!=t&&(this.valueType=U(t))}watchVariant(t){g.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){return Promise.resolve(this.ctaRef.el&&J(this.ctaRef.el.value,this.valueType))}focus(t){return Promise.resolve()}async click(){return Promise.resolve()}reset(){return this.setRenderProp("value",void 0),this.hasValue=!1,e(this),this.formAssociation.setFormAssociatedValue(""),this.ctaRef.el&&(this.ctaRef.el.value=""),Promise.resolve()}componentWillLoad(){this.unsetRenderProp("smartButton"),void 0!==this._value&&(this.valueType=U(this._value)),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.watchReadOnly(this._readOnly),this.watchRequired(this._required),this.watchStep(this._step),this.watchType(this._type),this.watchValue(this._value),this.hasValue=!!this.getRenderProp("value")}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField()}get dateDeps(){return{type:this._type,step:this._step}}readValue(t){return J(t.target.value,this.valueType)}getInputProps(){var t,e,i,n;const a=this.id,l=this.getRenderProp("accessKey"),s=this.getRenderProp("shortKey"),r=this.getRenderProp("suggestions"),{ariaDescribedBy:c,hasError:h}=this.getAria();return 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}:{}),{type:this.getRenderProp("type"),value:null!==(t=this.getRenderProp("value"))&&void 0!==t?t:null===this._value?null:void 0,required:this.getRenderProp("required"),autoComplete:this.getRenderProp("autoComplete"),readonly:this.getRenderProp("readOnly"),min:null!==(e=this.getRenderProp("min"))&&void 0!==e?e:null===this._min?null:void 0,max:null!==(i=this.getRenderProp("max"))&&void 0!==i?i:null===this._max?null:void 0,step:null!==(n=this.getRenderProp("step"))&&void 0!==n?n:null,touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")}),s?{"aria-keyshortcuts":s}:{}),r.length>0?{suggestions:o(b,{id:a,suggestions:r})}:{}),{ref:this.ctaRef,onBlur:this.handleDateBlur,onChange:this.handleDateChange,onClick:this.handleClick,onFocus:this.handleFocus,onInput:this.handleDateInput,onKeyDown:this.handleDateKeyDown,ariaDescribedBy:c,"aria-invalid":h?"true":void 0})}render(){const t=this.getRenderProp("disabled"),{startAdornment:e,endAdornment:n}=h({icons:this.getRenderProp("icons"),smartButton:this.getSmartButtonFcProps(this.getRenderProp("smartButton"),t)});return o(i,{key:"23b44960be1170c4260569baf9ef16e5e47ee7b1"},o(p,Object.assign({key:"8e4651fa3225a8e0490f14cff261ea89d2e5625e"},this.getFormFieldProps({class:K(Y(),this.getRenderProp("type"),{"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(d,{key:"514f623d0ed2a1877965ae042c29dbf861462c5f",disabled:t,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:e,endAdornment:n},o(k,Object.assign({key:"4bba5733e85bd0e38acb669eca99417b077a132f"},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}],_readOnly:[{watchReadOnly:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_suggestions:[{watchSuggestions:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_step:[{watchStep:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_type:[{watchType:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794913000943"); src: url("kolicons.eot?t=1794913000943#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794913000943") format("woff2"), url("kolicons.woff?t=1794913000943") format("woff"), url("kolicons.ttf?t=1794913000943") format("truetype"), url("kolicons.svg?t=1794913000943#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-button { background-color: transparent; display: inline-block; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); margin: 0; padding: 0; text-align: center; } .kol-button__interactive-element { border-style: none; display: block; border-width: medium; font-weight: inherit; font-style: inherit; text-align: inherit; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: "​"; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-form-field .kol-popover-button { display: inline; } .kol-form-field .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-form-field .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-form-field .kol-popover-button--inline { display: inline-block; } .kol-form-field .kol-popover-button--inline .kol-button, .kol-form-field .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-form-field .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-form-field .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-form-field { display: grid; } .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label { cursor: pointer; } .kol-form-field__label { display: flex; } .kol-form-field__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-form-field--required .kol-form-field__label-text:has(.kol-span__slot[hidden]) .kol-span__label::after, .kol-form-field--required:not(:has(.kol-form-field__label--legend)) .kol-form-field__input .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-input-container { background-color: transparent; display: grid; position: relative; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; grid-template-columns: 1fr; } .kol-input-container:has(> .kol-input-container__adornment--start) { grid-template-columns: auto 1fr auto; } .kol-input-container__container { position: relative; z-index: 1; } .kol-input-container__adornment { display: flex; align-items: center; } .kol-input-container__adornment .kol-icon { display: grid; place-items: center; } .kol-input { background-color: transparent; width: 100%; min-width: var(--a11y-min-size); } .kol-input { cursor: text; } .kol-input::-webkit-calendar-picker-indicator { cursor: pointer; } }'}}},[545,"kol-input-date",{_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:[1],_min:[1],_msg:[1],_name:[1],_on:[16],_readOnly:[4,"_read-only"],_required:[4],_shortKey:[1,"_short-key"],_smartButton:[1,"_smart-button"],_suggestions:[1],_syncValueBySelector:[1,"_sync-value-by-selector"],_step:[8],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_type:[1],_value:[1537],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],getValue:[64],focus:[64],click:[64],reset:[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}],_readOnly:[{watchReadOnly:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_suggestions:[{watchSuggestions:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_step:[{watchStep:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_type:[{watchType:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]);a([M("ctaRef")],Z.prototype,"focus",null),a([V("ctaRef")],Z.prototype,"click",null);const tt=Z,et=function(){"undefined"!=typeof customElements&&["kol-input-date"].forEach((t=>{"kol-input-date"===t&&(customElements.get(n(t))||customElements.define(n(t),Z))}))};export{tt as KolInputDate,et 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,e 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{a as k,S as f}from"./suggestions2.js";import{a as b,d as _,v as g}from"./component2.js";import{h as y,c as w,b as v,i as x,e as T}from"./props-from-config.js";import{r as B}from"./read-only.js";import{r as j}from"./required.js";import{s as z}from"./smart-button.js";import{s as S}from"./step.js";import{s as D}from"./suggestions.js";import{c as K}from"./dev.utils.js";import{c as O,d as C,a as A}from"./element-interaction.js";import{s as V}from"./controller.js";const M=["date","datetime-local","month","time","week"],q=/^\d{4}-([0]\d|1[0-2])-([0-2]\d|3[01])/,I=/^\d{4}-([0]\d|1[0-2])-([0-2]\d|3[01])[T ][0-2]\d:[0-5]\d(:[0-5]\d(?:\.\d+)?)?/,L=/^\d{4}-([0]\d|1[0-2])/,P=/^[0-2]\d:[0-5]\d(:[0-5]\d(?:\.\d+)?)?/,H=/^\d{4}-W(?:[0-4]\d|5[0-3])$/;function $(t,{type:e,step:o}){return function(t,e,o){if("string"==typeof t||null===t)return t;if(t instanceof Date){const i=t.getFullYear(),n=(t.getMonth()+1+"").padStart(2,"0"),a=(t.getDate()+"").padStart(2,"0"),l=(t.getHours()+"").padStart(2,"0"),r=(t.getMinutes()+"").padStart(2,"0"),s=(t.getSeconds()+"").padStart(2,"0"),c=[i,n,a].join("-"),h=[l,r,s].join(":");switch(e){case"date":return c;case"datetime-local":return`${c}T${h}`;case"month":return`${i}-${n}`;case"time":return void 0===o||o+""=="60"?`${l}:${r}`:h;case"week":return`${i}-W${function(t){const e=new Date(t),o=(e.getDay()+6)%7;e.setDate(e.getDate()-o+3);const i=e.valueOf();return e.setMonth(0,1),4!==e.getDay()&&e.setMonth(0,1+(4-e.getDay()+7)%7),(""+(1+Math.ceil((i-e.valueOf())/6048e5))).padStart(2,"0")}(t)}`}}}(t,e,o)}function R(t,{type:e}){return null==t||""===t||function(t,e){switch(e){case"date":return q.test(t);case"datetime-local":return I.test(t);case"month":return L.test(t);case"time":return P.test(t);case"week":return H.test(t);default:return!1}}(t,e)}const G=y("max",void 0,$,R),N=y("min",void 0,$,R),E=w("type","date",(function(t){const e=v(t);if(x(e,M))return e;throw Error("Invalid input date type: "+e)})),F=y("value",void 0,$,R);function W(t){return t instanceof Date?"Date":"string"==typeof t?"String":null}function U(t,e){return""===t?null:"Date"!==e?t:function(t){const e=J.exec(t);return e?new Date(Number(e[1]),Number(e[2])-1,Number(e[3])):new Date(t)}(t)}const J=/^(\d{4})-(\d{2})-(\d{2})$/,Q={required:[...d.required],optional:[...d.optional,b,k,s,G,N,E,F,B,j,_,z,S,D,g]},X=a.forBlock("kol-input-date"),Y=t(class extends u{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=K("input-date"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.hasValue=!1,this.ctaRef=O(),this.valueType=null,this.propsConfig=Q,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._readOnly=!1,this._required=!1,this._shortKey=void 0,this._smartButton=void 0,this._suggestions=void 0,this._syncValueBySelector=void 0,this._step=void 0,this._tooltipAlign="top",this._touched=!1,this._type="date",this._value=void 0,this._variant=void 0,this.handleDateInput=t=>{const e=this.readValue(t);this._value=e,this.handleInput(t,e)},this.handleDateChange=t=>{const e=this.readValue(t);this.handleChange(t,e),this.hasValue=!!e},this.handleDateBlur=t=>{this.handleBlur(t);const e=t.target.value;!!e!=!!this._value&&(this._value=e)},this.handleDateKeyDown=t=>{this.handleKeyDown(t),V(t,{form:this.host,ref:this.ctaRef.el}),this.getRenderProp("readOnly")&&"Space"===t.code&&t.preventDefault()},this.initFormAssociation("date",this._name)}watchAccessKey(t){b.apply(t,(t=>this.setRenderProp("accessKey",t))),r(t,this._shortKey)}watchAriaDetails(t){this.applyAriaDetails(t)}watchAutoComplete(t){k.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){G.apply(t,(t=>this.setRenderProp("max",t)),this.dateDeps)}watchMin(t){N.apply(t,(t=>this.setRenderProp("min",t)),this.dateDeps)}watchMsg(t){this.applyMsg(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchReadOnly(t){B.apply(t,(t=>this.setRenderProp("readOnly",t)))}watchRequired(t){j.apply(t,(t=>this.setRenderProp("required",t)))}watchShortKey(t){_.apply(t,(t=>this.setRenderProp("shortKey",t))),r(this._accessKey,t)}watchSmartButton(t){null==t?this.unsetRenderProp("smartButton"):z.apply(t,(t=>this.setRenderProp("smartButton",t)))}watchSuggestions(t){D.apply(t,(t=>this.setRenderProp("suggestions",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchStep(t){S.apply(t,(t=>this.setRenderProp("step",t)))}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchType(t){E.apply(t,(t=>this.setRenderProp("type",t)))}watchValue(t){var e;t instanceof Date&&l("Date type will be removed in v3. Use `Iso8601` instead."),F.apply(t,(t=>this.setRenderProp("value",t)),this.dateDeps),this.formAssociation.setFormAssociatedValue(null!==(e=this.getRenderProp("value"))&&void 0!==e?e:null),null!=t&&(this.valueType=W(t))}watchVariant(t){g.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){return Promise.resolve(this.ctaRef.el&&U(this.ctaRef.el.value,this.valueType))}focus(t){return Promise.resolve()}async click(){return Promise.resolve()}reset(){return this.setRenderProp("value",void 0),this.hasValue=!1,this.formAssociation.setFormAssociatedValue(""),this.ctaRef.el&&(this.ctaRef.el.value=""),Promise.resolve()}componentWillLoad(){this.unsetRenderProp("smartButton"),void 0!==this._value&&(this.valueType=W(this._value)),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.watchReadOnly(this._readOnly),this.watchRequired(this._required),this.watchStep(this._step),this.watchType(this._type),this.watchValue(this._value),this.hasValue=!!this.getRenderProp("value")}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField()}get dateDeps(){return{type:this._type,step:this._step}}readValue(t){return U(t.target.value,this.valueType)}getInputProps(){var t,o,i,n;const a=this.id,l=this.getRenderProp("accessKey"),r=this.getRenderProp("shortKey"),s=this.getRenderProp("suggestions"),{ariaDescribedBy:c,hasError:h}=this.getAria();return 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}:{}),{type:this.getRenderProp("type"),value:null!==(t=this.getRenderProp("value"))&&void 0!==t?t:null===this._value?null:void 0,required:this.getRenderProp("required"),autoComplete:this.getRenderProp("autoComplete"),readonly:this.getRenderProp("readOnly"),min:null!==(o=this.getRenderProp("min"))&&void 0!==o?o:null===this._min?null:void 0,max:null!==(i=this.getRenderProp("max"))&&void 0!==i?i:null===this._max?null:void 0,step:null!==(n=this.getRenderProp("step"))&&void 0!==n?n:null,touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")}),r?{"aria-keyshortcuts":r}:{}),s.length>0?{suggestions:e(f,{id:a,suggestions:s})}:{}),{ref:this.ctaRef,onBlur:this.handleDateBlur,onChange:this.handleDateChange,onClick:this.handleClick,onFocus:this.handleFocus,onInput:this.handleDateInput,onKeyDown:this.handleDateKeyDown,ariaDescribedBy:c,"aria-invalid":h?"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)});return e(o,{key:"5927ba049cedee1387da8ac344d45839bf7b5273"},e(m,Object.assign({key:"569e5d28c5a9cd6549156c2f55a65408246fc68f"},this.getFormFieldProps({class:T(X(),this.getRenderProp("type"),{"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:"1480cd1c9c6a8b4dc9a321c90a60c29e555292da",disabled:t,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:n},e(p,Object.assign({key:"5fd31dcad9dade642ed77bc6117a085d9b03f7e2"},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}],_readOnly:[{watchReadOnly:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_suggestions:[{watchSuggestions:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_step:[{watchStep:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_type:[{watchType:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-meter meter { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-bar { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-optimum-value, .kol-meter meter::-webkit-meter-suboptimum-value, .kol-meter meter::-webkit-meter-even-less-good-value { background-color: CanvasText; } .kol-meter meter::-moz-meter-bar { background-color: CanvasText; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1795160658049"); src: url("kolicons.eot?t=1795160658049#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1795160658049") format("woff2"), url("kolicons.woff?t=1795160658049") format("woff"), url("kolicons.ttf?t=1795160658049") format("truetype"), url("kolicons.svg?t=1795160658049#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-button { background-color: transparent; display: inline-block; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); margin: 0; padding: 0; text-align: center; } .kol-button__interactive-element { border-style: none; display: block; border-width: medium; font-weight: inherit; font-style: inherit; text-align: inherit; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: "​"; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-form-field .kol-popover-button { display: inline; } .kol-form-field .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-form-field .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-form-field .kol-popover-button--inline { display: inline-block; } .kol-form-field .kol-popover-button--inline .kol-button, .kol-form-field .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-form-field .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-form-field .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-form-field { display: grid; } .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label { cursor: pointer; } .kol-form-field__label { display: flex; } .kol-form-field__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-form-field--required .kol-form-field__label-text:has(.kol-span__slot[hidden]) .kol-span__label::after, .kol-form-field--required:not(:has(.kol-form-field__label--legend)) .kol-form-field__input .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-input-container { background-color: transparent; display: grid; position: relative; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; grid-template-columns: 1fr; } .kol-input-container:has(> .kol-input-container__adornment--start) { grid-template-columns: auto 1fr auto; } .kol-input-container__container { position: relative; z-index: 1; } .kol-input-container__adornment { display: flex; align-items: center; } .kol-input-container__adornment .kol-icon { display: grid; place-items: center; } .kol-input { background-color: transparent; width: 100%; min-width: var(--a11y-min-size); } .kol-input { cursor: text; } .kol-input::-webkit-calendar-picker-indicator { cursor: pointer; } }'}}},[545,"kol-input-date",{_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:[1],_min:[1],_msg:[1],_name:[1],_on:[16],_readOnly:[4,"_read-only"],_required:[4],_shortKey:[1,"_short-key"],_smartButton:[1,"_smart-button"],_suggestions:[1],_syncValueBySelector:[1,"_sync-value-by-selector"],_step:[8],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_type:[1],_value:[1537],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],hasValue:[32],getValue:[64],focus:[64],click:[64],reset:[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}],_readOnly:[{watchReadOnly:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_suggestions:[{watchSuggestions:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_step:[{watchStep:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_type:[{watchType:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]);n([C("ctaRef")],Y.prototype,"focus",null),n([A("ctaRef")],Y.prototype,"click",null);const Z=Y,tt=function(){"undefined"!=typeof customElements&&["kol-input-date"].forEach((t=>{"kol-input-date"===t&&(customElements.get(i(t))||customElements.define(i(t),Y))}))};export{Z as KolInputDate,tt 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{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"./props-from-config.js";import{m as c}from"./multiple.js";import{s as h}from"./suggestions.js";import{t as d,B as m}from"./base-web-component3.js";import{c as k}from"./clsx.js";import{c as p}from"./dev.utils.js";import{d as u,a as f}from"./element-interaction.js";const _={required:[...d.required],optional:[...d.optional,c,h]},b=s.forBlock("kol-input-email"),g=t(class extends m{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=p("input-email"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.propsConfig=_,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){c.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){h.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:"08ae831267744fd7c98322a547fbad1077d3b1f8"},o(a,Object.assign({key:"743984d398c11dba015d5b8c1427f0d90ae180ef"},this.getTextFormFieldProps(k(b(),"email"))),o(r,{key:"ad202484cc40752e0def2e081af9683d39556ef7",disabled:this.getRenderProp("disabled"),msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:t,endAdornment:i},o(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-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=1794913000943"); src: url("kolicons.eot?t=1794913000943#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794913000943") format("woff2"), url("kolicons.woff?t=1794913000943") format("woff"), url("kolicons.ttf?t=1794913000943") format("truetype"), url("kolicons.svg?t=1794913000943#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([u("ctaRef")],g.prototype,"focus",null),n([f("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}
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=1795160658049"); src: url("kolicons.eot?t=1795160658049#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1795160658049") format("woff2"), url("kolicons.woff?t=1795160658049") format("woff"), url("kolicons.ttf?t=1795160658049") format("truetype"), url("kolicons.svg?t=1795160658049#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{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"./component9.js";import{c}from"./item.js";import{h,g as d,I as k}from"./input-container.js";import{f as p,B as f,F as u}from"./base-web-component2.js";import{I as m}from"./input.js";import{c as b,b as _}from"./props-from-config.js";import{a as g,d as y,v as w}from"./component3.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"./clsx.js";import{c as z}from"./dev.utils.js";import{c as K,d as T,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:[...p.required],optional:[...p.optional,S,g,h,v,x,y,B,w]},L=l.forBlock("kol-input-container"),I=L("button"),M=({filename:e,hasFile:o})=>t("span",{class:L("filename",{"has-file":o})},e),H=l.forBlock("kol-input-file"),O=e(class extends f{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=z("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=K(),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){g.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){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){y.apply(t,(t=>this.setRenderProp("shortKey",t))),a(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){w.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(u,Object.assign({key:"ae061478a153821b070f274cc5c2cb508d290aa9"},this.getFormFieldProps({class:j(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(m,Object.assign({key:"e85b80d96ac69719f8539797958c61f286139d46"},this.getInputProps())),t(s,Object.assign({key:"ccf46b04f5c159a15e735d790e3e3c1d48eb75d7"},this.browseButton.getFcProps({_label:this.translateDataBrowseText,_variant:"primary",_disabled:e},{class:I}))))))}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=1794913000943"); src: url("kolicons.eot?t=1794913000943#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794913000943") format("woff2"), url("kolicons.woff?t=1794913000943") format("woff"), url("kolicons.ttf?t=1794913000943") format("truetype"), url("kolicons.svg?t=1794913000943#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([T("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}
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=1795160658049"); src: url("kolicons.eot?t=1795160658049#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1795160658049") format("woff2"), url("kolicons.woff?t=1795160658049") format("woff"), url("kolicons.ttf?t=1795160658049") format("truetype"), url("kolicons.svg?t=1795160658049#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{b as a,X as l}from"./bem-registry.js";import{v as s}from"./access-and-short-key.js";import{h as r,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"./component5.js";import{a as j,d as B,v as z}from"./component3.js";import"./props-from-config.js";import{p as S}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 T}from"./step.js";import{s as V}from"./suggestions.js";import{c as q}from"./clsx.js";import{c as C}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,r,k,b,f,S,O,K,B,A,T,V,z]},H=a.forBlock("kol-input-number"),R=H("step-button"),G=t=>{var o;return!0===(null===(o=null==t?void 0:t.classList)||void 0===o?void 0:o.contains(R))},F=t(class extends u{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=C("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 o=this.readInputValue();this.handleChange(t,o),this.hasValue=!!o},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))),s(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){r.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){S.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))),s(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){T.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;f.apply(t,(t=>this.setRenderProp("value",t))),this.formAssociation.setFormAssociatedValue(null!==(o=this.getRenderProp("value"))&&void 0!==o?o: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,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"===l("inputNumberButtons",this.host)?null:o("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},o(x,{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(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 o(e,{key:"633d71799f0a2fde9a6e3d702450fc26e23c9942"},o(m,Object.assign({key:"8f5fa79cbf292b1630e1b7e03f768defab06bf77"},this.getFormFieldProps({class:q(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")})),o(h,{key:"ea95d533f0c32b837aaa8ba8db3a7be67badef3c",disabled:t,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:n},o(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-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=1794913000943"); src: url("kolicons.eot?t=1794913000943#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794913000943") format("woff2"), url("kolicons.woff?t=1794913000943") format("woff"), url("kolicons.ttf?t=1794913000943") format("truetype"), url("kolicons.svg?t=1794913000943#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}
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=1795160658049"); src: url("kolicons.eot?t=1795160658049#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1795160658049") format("woff2"), url("kolicons.woff?t=1795160658049") format("woff"), url("kolicons.ttf?t=1795160658049") format("truetype"), url("kolicons.svg?t=1795160658049#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{b as a,g as l}from"./bem-registry.js";import{t as r}from"./i18n.js";import{B as s}from"./component9.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 p,n as m}from"./props-from-config.js";import{t as b,B as f}from"./base-web-component3.js";import{c as u}from"./clsx.js";import{c as _}from"./dev.utils.js";import{d as g,a as w}from"./element-interaction.js";const y=p("visibilityToggle",!1,m),v={required:[...b.required],optional:[...b.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:u(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(u(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-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=1794913000943"); src: url("kolicons.eot?t=1794913000943#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794913000943") format("woff2"), url("kolicons.woff?t=1794913000943") format("woff"), url("kolicons.ttf?t=1794913000943") format("truetype"), url("kolicons.svg?t=1794913000943#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}
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=1795160658049"); src: url("kolicons.eot?t=1795160658049#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1795160658049") format("woff2"), url("kolicons.woff?t=1795160658049") format("woff"), url("kolicons.ttf?t=1795160658049") format("truetype"), url("kolicons.svg?t=1795160658049#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}