@public-ui/components 4.6.0-rc.2 → 4.6.0-rc.3

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 (447) 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 +3 -3
  7. package/dist/cjs/{Heading-CmnijhLd.js → Heading-DqZXie2T.js} +1 -1
  8. package/dist/cjs/{api-Bg7hdIrJ.js → api-Cc1hT-oO.js} +19 -18
  9. package/dist/cjs/{app-globals-BwYPSMbG.js → app-globals-DtXiFJRj.js} +2 -2
  10. package/dist/cjs/{aria-labelledby-BRMgWRVp.js → aria-labelledby-By2dgbCn.js} +0 -13
  11. package/dist/cjs/{base-JFyPasp9.js → base-B-wbGF-X.js} +20 -29
  12. package/dist/cjs/{base-ob1X79UM.js → base-BKsPSdXS.js} +5 -5
  13. package/dist/cjs/{base-BVhV5HmV.js → base-BjiXfuju.js} +4 -4
  14. package/dist/cjs/{base-CQB0r-ZQ.js → base-CoMrpiHg.js} +4 -4
  15. package/dist/cjs/{base-web-component-dI9FmFIm.js → base-web-component-BXtl3Nmq.js} +5 -5
  16. package/dist/cjs/{base-web-component-DBcJrpRb.js → base-web-component-DApRK7Vs.js} +6 -6
  17. package/dist/cjs/{behavior-CUmF8rJf.js → behavior-DIv2ciyM.js} +1 -1
  18. package/dist/cjs/{behavior-DujaVCwV.js → behavior-DtHCmCCv.js} +2 -2
  19. package/dist/cjs/{behavior-B5wr2A8R.js → behavior-GG5TOrTV.js} +3 -10
  20. package/dist/cjs/{bem-registry-B6QoNC9E.js → bem-registry-h_moyLBn.js} +39 -0
  21. package/dist/cjs/{block-bem-ByCgFI2B.js → block-bem-BVBM34Tu.js} +1 -1
  22. package/dist/cjs/{component-DFhuXUqv.js → component-BE_fK-Xu.js} +7 -7
  23. package/dist/cjs/{component-DprHBKdZ.js → component-BOI4FdZE.js} +3 -3
  24. package/dist/cjs/{component-Doln6Ltn.js → component-C9B-yJ93.js} +3 -3
  25. package/dist/cjs/{component-BexD3069.js → component-CNNGo5gU.js} +6 -6
  26. package/dist/cjs/{component-1J4G5HmZ.js → component-CVLJJvvd.js} +6 -6
  27. package/dist/cjs/{component-BilLJFfC.js → component-Cnc2NyzE.js} +2 -2
  28. package/dist/cjs/{component-Cqp00Tb9.js → component-CsnTf_45.js} +6 -6
  29. package/dist/cjs/{component-Bza8hlo-.js → component-CxwSVBBv.js} +7 -7
  30. package/dist/cjs/{component-DGVc4bOy.js → component-D0uxhuF3.js} +4 -4
  31. package/dist/cjs/{component-DkV9oPCL.js → component-DNQW0lG8.js} +2 -2
  32. package/dist/cjs/{component-CjXcCX2V.js → component-DfGgpwuP.js} +2 -2
  33. package/dist/cjs/{component-Cbbx7Z6c.js → component-DlyhBQIa.js} +3 -3
  34. package/dist/cjs/{dev.utils-Bx4sgPsr.js → dev.utils-DTQy7QrG.js} +1 -1
  35. package/dist/cjs/{devtools-BXBKJice.js → devtools-BAChPN0l.js} +2 -2
  36. package/dist/cjs/{field-control-B95uzQnW.js → field-control-Bxj6Xuu8.js} +7 -7
  37. package/dist/cjs/{group-DGS7K6Ja.js → group-BUdQbdkp.js} +5 -5
  38. package/dist/cjs/{index-Ccvyz7Rq.js → index-BaB_2Z5W.js} +1 -1
  39. package/dist/cjs/index.cjs.js +1 -1
  40. package/dist/cjs/{input-BKXEykG_.js → input-CtqTozTO.js} +4 -4
  41. package/dist/cjs/{input-container-CWb_kRbs.js → input-container-BcwbGU2R.js} +6 -6
  42. package/dist/cjs/{item-wr5KfPYM.js → item-BLrLbhAD.js} +6 -6
  43. package/dist/cjs/{item-DgNTEUz3.js → item-BXt0-A5j.js} +8 -8
  44. package/dist/cjs/{item-C4Boh5Cz.js → item-BYKMN41a.js} +3 -3
  45. package/dist/cjs/{item-vDMQvV0t.js → item-DJ-XUS77.js} +3 -3
  46. package/dist/cjs/kol-abbr.cjs.entry.js +4 -4
  47. package/dist/cjs/kol-accordion.cjs.entry.js +9 -9
  48. package/dist/cjs/kol-alert.cjs.entry.js +14 -14
  49. package/dist/cjs/kol-avatar.cjs.entry.js +2 -2
  50. package/dist/cjs/kol-badge.cjs.entry.js +14 -14
  51. package/dist/cjs/kol-breadcrumb.cjs.entry.js +12 -12
  52. package/dist/cjs/kol-button-link.cjs.entry.js +14 -14
  53. package/dist/cjs/kol-button.cjs.entry.js +14 -14
  54. package/dist/cjs/kol-card.cjs.entry.js +15 -15
  55. package/dist/cjs/kol-combobox.cjs.entry.js +24 -24
  56. package/dist/cjs/kol-details.cjs.entry.js +9 -9
  57. package/dist/cjs/kol-dialog.cjs.entry.js +17 -17
  58. package/dist/cjs/kol-drawer.cjs.entry.js +16 -16
  59. package/dist/cjs/kol-form.cjs.entry.js +14 -14
  60. package/dist/cjs/kol-heading.cjs.entry.js +4 -4
  61. package/dist/cjs/kol-icon.cjs.entry.js +4 -4
  62. package/dist/cjs/kol-image.cjs.entry.js +2 -2
  63. package/dist/cjs/kol-input-checkbox.cjs.entry.js +42 -41
  64. package/dist/cjs/kol-input-color.cjs.entry.js +33 -32
  65. package/dist/cjs/kol-input-date.cjs.entry.js +31 -30
  66. package/dist/cjs/kol-input-email.cjs.entry.js +36 -35
  67. package/dist/cjs/kol-input-file.cjs.entry.js +28 -27
  68. package/dist/cjs/kol-input-number.cjs.entry.js +32 -31
  69. package/dist/cjs/kol-input-password.cjs.entry.js +30 -29
  70. package/dist/cjs/kol-input-radio.cjs.entry.js +27 -27
  71. package/dist/cjs/kol-input-range.cjs.entry.js +27 -27
  72. package/dist/cjs/kol-input-text.cjs.entry.js +29 -28
  73. package/dist/cjs/kol-kolibri.cjs.entry.js +4 -4
  74. package/dist/cjs/kol-link-button.cjs.entry.js +13 -13
  75. package/dist/cjs/kol-link.cjs.entry.js +13 -13
  76. package/dist/cjs/kol-meter.cjs.entry.js +4 -4
  77. package/dist/cjs/kol-modal.cjs.entry.js +17 -17
  78. package/dist/cjs/kol-nav.cjs.entry.js +17 -17
  79. package/dist/cjs/kol-pagination.cjs.entry.js +24 -24
  80. package/dist/cjs/kol-popover-button.cjs.entry.js +15 -15
  81. package/dist/cjs/kol-progress.cjs.entry.js +4 -4
  82. package/dist/cjs/kol-quote.cjs.entry.js +2 -2
  83. package/dist/cjs/kol-select.cjs.entry.js +27 -27
  84. package/dist/cjs/kol-single-select.cjs.entry.js +24 -24
  85. package/dist/cjs/kol-skip-nav.cjs.entry.js +12 -12
  86. package/dist/cjs/kol-spin.cjs.entry.js +5 -5
  87. package/dist/cjs/kol-split-button.cjs.entry.js +17 -17
  88. package/dist/cjs/kol-table-stateful.cjs.entry.js +33 -34
  89. package/dist/cjs/kol-table-stateless.cjs.entry.js +26 -27
  90. package/dist/cjs/kol-tabs.cjs.entry.js +13 -13
  91. package/dist/cjs/kol-textarea.cjs.entry.js +25 -25
  92. package/dist/cjs/kol-toast-container.cjs.entry.js +13 -13
  93. package/dist/cjs/kol-toolbar.cjs.entry.js +15 -15
  94. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +6 -6
  95. package/dist/cjs/kol-tree-item.cjs.entry.js +16 -13
  96. package/dist/cjs/kol-tree.cjs.entry.js +17 -6
  97. package/dist/cjs/kol-version.cjs.entry.js +11 -11
  98. package/dist/cjs/kolibri.cjs.js +2 -2
  99. package/dist/cjs/loader.cjs.js +2 -2
  100. package/dist/cjs/{resolve-props-pZBj0tIz.js → resolve-props-B7klWjLx.js} +2 -2
  101. package/dist/cjs/{resolve-props-B_ytLWBO.js → resolve-props-c-uwDulF.js} +2 -2
  102. package/dist/cjs/{scroll-lock-DguXX-Em.js → scroll-lock-daUQqmx_.js} +2 -2
  103. package/dist/cjs/{suggestions-C6Q3kj5J.js → suggestions-D3snLGL_.js} +2 -2
  104. package/dist/cjs/test-component.cjs.entry.js +1 -1
  105. package/dist/cjs/{toggle-handler-BaOOa9I5.js → toggle-handler-B0xib7fH.js} +4 -4
  106. package/dist/collection/components/accordion/style.css +2 -2
  107. package/dist/collection/components/alert/style.css +2 -2
  108. package/dist/collection/components/badge/style.css +2 -2
  109. package/dist/collection/components/breadcrumb/style.css +2 -2
  110. package/dist/collection/components/button/style.css +2 -2
  111. package/dist/collection/components/button-link/style.css +2 -2
  112. package/dist/collection/components/card/style.css +5 -2
  113. package/dist/collection/components/combobox/style.css +2 -2
  114. package/dist/collection/components/details/style.css +2 -2
  115. package/dist/collection/components/dialog/style.css +5 -2
  116. package/dist/collection/components/drawer/style.css +5 -2
  117. package/dist/collection/components/form/style.css +2 -2
  118. package/dist/collection/components/icon/style.css +2 -2
  119. package/dist/collection/components/input-checkbox/component.js +13 -11
  120. package/dist/collection/components/input-checkbox/style.css +2 -2
  121. package/dist/collection/components/input-color/component.js +6 -4
  122. package/dist/collection/components/input-color/style.css +2 -2
  123. package/dist/collection/components/input-date/component.js +5 -3
  124. package/dist/collection/components/input-date/style.css +2 -2
  125. package/dist/collection/components/input-email/component.js +4 -1
  126. package/dist/collection/components/input-email/style.css +2 -2
  127. package/dist/collection/components/input-file/component.js +6 -3
  128. package/dist/collection/components/input-file/style.css +2 -2
  129. package/dist/collection/components/input-number/component.js +6 -4
  130. package/dist/collection/components/input-number/style.css +2 -2
  131. package/dist/collection/components/input-password/component.js +5 -2
  132. package/dist/collection/components/input-password/style.css +2 -2
  133. package/dist/collection/components/input-radio/style.css +2 -2
  134. package/dist/collection/components/input-range/style.css +2 -2
  135. package/dist/collection/components/input-text/component.js +4 -2
  136. package/dist/collection/components/input-text/style.css +2 -2
  137. package/dist/collection/components/link/style.css +2 -2
  138. package/dist/collection/components/link-button/style.css +2 -2
  139. package/dist/collection/components/modal/style.css +5 -2
  140. package/dist/collection/components/nav/style.css +2 -2
  141. package/dist/collection/components/pagination/style.css +2 -2
  142. package/dist/collection/components/popover-button/style.css +2 -2
  143. package/dist/collection/components/select/style.css +2 -2
  144. package/dist/collection/components/single-select/style.css +2 -2
  145. package/dist/collection/components/skip-nav/style.css +2 -2
  146. package/dist/collection/components/split-button/style.css +2 -2
  147. package/dist/collection/components/table-stateful/component.js +3 -5
  148. package/dist/collection/components/table-stateful/style.css +5 -2
  149. package/dist/collection/components/table-stateless/component.js +3 -5
  150. package/dist/collection/components/table-stateless/style.css +5 -2
  151. package/dist/collection/components/tabs/style.css +2 -2
  152. package/dist/collection/components/textarea/style.css +2 -2
  153. package/dist/collection/components/toaster/style.css +2 -2
  154. package/dist/collection/components/toolbar/style.css +2 -2
  155. package/dist/collection/components/tree/component.js +15 -4
  156. package/dist/collection/components/tree-item/component.js +5 -2
  157. package/dist/collection/components/tree-item/style.css +2 -2
  158. package/dist/collection/components/version/style.css +2 -2
  159. package/dist/collection/internal/functional-components/form-association/api.js +2 -2
  160. package/dist/collection/internal/functional-components/form-association/behavior.js +1 -5
  161. package/dist/collection/internal/functional-components/form-field/base-web-component.js +0 -1
  162. package/dist/collection/schema/bem-registry.js +39 -0
  163. package/dist/collection/schema/props/aria-details.js +1 -22
  164. package/dist/collection/schema/props/aria-labelledby.js +3 -12
  165. package/dist/collection/utils/aria-labelledby.js +0 -12
  166. package/dist/components/aria-labelledby.js +1 -1
  167. package/dist/components/base-web-component2.js +1 -1
  168. package/dist/components/base4.js +1 -1
  169. package/dist/components/behavior3.js +1 -1
  170. package/dist/components/bem-registry.js +1 -1
  171. package/dist/components/kol-accordion.js +1 -1
  172. package/dist/components/kol-alert.js +1 -1
  173. package/dist/components/kol-badge.js +1 -1
  174. package/dist/components/kol-breadcrumb.js +1 -1
  175. package/dist/components/kol-button-link.js +1 -1
  176. package/dist/components/kol-button.js +1 -1
  177. package/dist/components/kol-card.js +1 -1
  178. package/dist/components/kol-combobox.js +1 -1
  179. package/dist/components/kol-details.js +1 -1
  180. package/dist/components/kol-dialog.js +1 -1
  181. package/dist/components/kol-drawer.js +1 -1
  182. package/dist/components/kol-form.js +1 -1
  183. package/dist/components/kol-icon.js +1 -1
  184. package/dist/components/kol-input-checkbox.js +1 -1
  185. package/dist/components/kol-input-color.js +1 -1
  186. package/dist/components/kol-input-date.js +1 -1
  187. package/dist/components/kol-input-email.js +1 -1
  188. package/dist/components/kol-input-file.js +1 -1
  189. package/dist/components/kol-input-number.js +1 -1
  190. package/dist/components/kol-input-password.js +1 -1
  191. package/dist/components/kol-input-radio.js +1 -1
  192. package/dist/components/kol-input-range.js +1 -1
  193. package/dist/components/kol-input-text.js +1 -1
  194. package/dist/components/kol-link-button.js +1 -1
  195. package/dist/components/kol-link.js +1 -1
  196. package/dist/components/kol-modal.js +1 -1
  197. package/dist/components/kol-nav.js +1 -1
  198. package/dist/components/kol-pagination.js +1 -1
  199. package/dist/components/kol-popover-button.js +1 -1
  200. package/dist/components/kol-select.js +1 -1
  201. package/dist/components/kol-single-select.js +1 -1
  202. package/dist/components/kol-skip-nav.js +1 -1
  203. package/dist/components/kol-split-button.js +1 -1
  204. package/dist/components/kol-table-stateful.js +1 -1
  205. package/dist/components/kol-table-stateless.js +1 -1
  206. package/dist/components/kol-tabs.js +1 -1
  207. package/dist/components/kol-textarea.js +1 -1
  208. package/dist/components/kol-toast-container.js +1 -1
  209. package/dist/components/kol-toolbar.js +1 -1
  210. package/dist/components/kol-tree-item.js +1 -1
  211. package/dist/components/kol-tree.js +1 -1
  212. package/dist/components/kol-version.js +1 -1
  213. package/dist/esm/{Heading-C_CwXDMp.js → Heading-GZb1f2pZ.js} +1 -1
  214. package/dist/esm/{api-DGiFM9p0.js → api-CBPlj155.js} +18 -17
  215. package/dist/esm/{app-globals-sZHZyXjD.js → app-globals-DRl9A82c.js} +2 -2
  216. package/dist/esm/{aria-labelledby-CLehu03h.js → aria-labelledby-DqJY_4G-.js} +1 -13
  217. package/dist/esm/{base-B4sGK9cX.js → base-BByRnpRm.js} +5 -5
  218. package/dist/esm/{base-DTKJ1Z06.js → base-C7BBsrYZ.js} +21 -30
  219. package/dist/esm/{base-P1TaQ7Ba.js → base-DO0KvOv9.js} +4 -4
  220. package/dist/esm/{base-CWrvN3Gt.js → base-Dtxcvto_.js} +4 -4
  221. package/dist/esm/{base-web-component-CKgIOZqi.js → base-web-component-BxXLva5d.js} +5 -5
  222. package/dist/esm/{base-web-component-Bq_B9edx.js → base-web-component-CfPyCJDJ.js} +6 -6
  223. package/dist/esm/{behavior-Bb7JYoUn.js → behavior-CKU2tmCj.js} +1 -1
  224. package/dist/esm/{behavior-CFG1f4KQ.js → behavior-CsNDRS2z.js} +2 -2
  225. package/dist/esm/{behavior-CkPQGfgo.js → behavior-ewHvUWVk.js} +4 -10
  226. package/dist/esm/{bem-registry-DQUGxdIS.js → bem-registry-D1KgKnyz.js} +39 -0
  227. package/dist/esm/{block-bem-BGIVcYJu.js → block-bem-D3ixJyOY.js} +1 -1
  228. package/dist/esm/{component-5Uu-ahLC.js → component-6l69Jvwl.js} +4 -4
  229. package/dist/esm/{component-B16Fbp3W.js → component-B3OziaRC.js} +6 -6
  230. package/dist/esm/{component-Bc2pdOk1.js → component-By8ggItU.js} +6 -6
  231. package/dist/esm/{component-DAQzDMY8.js → component-CF8uFG0A.js} +7 -7
  232. package/dist/esm/{component-B05zRrM0.js → component-Ccv2lqNq.js} +2 -2
  233. package/dist/esm/{component-BI8jDgBz.js → component-Cmi6iGfA.js} +7 -7
  234. package/dist/esm/{component-C79oAu7a.js → component-D4-NVnsT.js} +2 -2
  235. package/dist/esm/{component-W1KZI4h4.js → component-D6_K50vT.js} +3 -3
  236. package/dist/esm/{component-CldKbBUh.js → component-D6lo0LzE.js} +3 -3
  237. package/dist/esm/{component-oUQcgxDj.js → component-D9NreIlK.js} +3 -3
  238. package/dist/esm/{component-Ct11K0Gv.js → component-DAk3R8NN.js} +6 -6
  239. package/dist/esm/{component-Clz6b6ho.js → component-EDDTMC-J.js} +2 -2
  240. package/dist/esm/{dev.utils-DDWOHUcg.js → dev.utils-BwYCy1rP.js} +1 -1
  241. package/dist/esm/{devtools-B0kEE_za.js → devtools-CGP3Nzsw.js} +2 -2
  242. package/dist/esm/{field-control-DsQHa0v9.js → field-control-0TRmF7Ea.js} +7 -7
  243. package/dist/esm/{group-DUVsgWxS.js → group-DapkT_Yh.js} +5 -5
  244. package/dist/esm/{index-Dulj0jro.js → index-DEcM8BEc.js} +1 -1
  245. package/dist/esm/index.js +1 -1
  246. package/dist/esm/{input-C0Li7DsE.js → input-CDUCo1S5.js} +4 -4
  247. package/dist/esm/{input-container-DmtMTcjB.js → input-container-BipAkWn4.js} +6 -6
  248. package/dist/esm/{item-8RKFpmbd.js → item-B0oQTeju.js} +3 -3
  249. package/dist/esm/{item-DHZGDrAn.js → item-Boe3t0Dm.js} +6 -6
  250. package/dist/esm/{item-CnJMuEyl.js → item-BvnZc8uV.js} +3 -3
  251. package/dist/esm/{item-CxVe5INa.js → item-UgJ2uikD.js} +8 -8
  252. package/dist/esm/kol-abbr.entry.js +4 -4
  253. package/dist/esm/kol-accordion.entry.js +9 -9
  254. package/dist/esm/kol-alert.entry.js +14 -14
  255. package/dist/esm/kol-avatar.entry.js +2 -2
  256. package/dist/esm/kol-badge.entry.js +14 -14
  257. package/dist/esm/kol-breadcrumb.entry.js +12 -12
  258. package/dist/esm/kol-button-link.entry.js +14 -14
  259. package/dist/esm/kol-button.entry.js +14 -14
  260. package/dist/esm/kol-card.entry.js +15 -15
  261. package/dist/esm/kol-combobox.entry.js +24 -24
  262. package/dist/esm/kol-details.entry.js +9 -9
  263. package/dist/esm/kol-dialog.entry.js +17 -17
  264. package/dist/esm/kol-drawer.entry.js +16 -16
  265. package/dist/esm/kol-form.entry.js +14 -14
  266. package/dist/esm/kol-heading.entry.js +4 -4
  267. package/dist/esm/kol-icon.entry.js +4 -4
  268. package/dist/esm/kol-image.entry.js +2 -2
  269. package/dist/esm/kol-input-checkbox.entry.js +42 -41
  270. package/dist/esm/kol-input-color.entry.js +33 -32
  271. package/dist/esm/kol-input-date.entry.js +31 -30
  272. package/dist/esm/kol-input-email.entry.js +36 -35
  273. package/dist/esm/kol-input-file.entry.js +28 -27
  274. package/dist/esm/kol-input-number.entry.js +32 -31
  275. package/dist/esm/kol-input-password.entry.js +30 -29
  276. package/dist/esm/kol-input-radio.entry.js +27 -27
  277. package/dist/esm/kol-input-range.entry.js +27 -27
  278. package/dist/esm/kol-input-text.entry.js +29 -28
  279. package/dist/esm/kol-kolibri.entry.js +4 -4
  280. package/dist/esm/kol-link-button.entry.js +13 -13
  281. package/dist/esm/kol-link.entry.js +13 -13
  282. package/dist/esm/kol-meter.entry.js +4 -4
  283. package/dist/esm/kol-modal.entry.js +17 -17
  284. package/dist/esm/kol-nav.entry.js +17 -17
  285. package/dist/esm/kol-pagination.entry.js +24 -24
  286. package/dist/esm/kol-popover-button.entry.js +15 -15
  287. package/dist/esm/kol-progress.entry.js +4 -4
  288. package/dist/esm/kol-quote.entry.js +2 -2
  289. package/dist/esm/kol-select.entry.js +27 -27
  290. package/dist/esm/kol-single-select.entry.js +24 -24
  291. package/dist/esm/kol-skip-nav.entry.js +12 -12
  292. package/dist/esm/kol-spin.entry.js +5 -5
  293. package/dist/esm/kol-split-button.entry.js +17 -17
  294. package/dist/esm/kol-table-stateful.entry.js +33 -34
  295. package/dist/esm/kol-table-stateless.entry.js +26 -27
  296. package/dist/esm/kol-tabs.entry.js +13 -13
  297. package/dist/esm/kol-textarea.entry.js +25 -25
  298. package/dist/esm/kol-toast-container.entry.js +13 -13
  299. package/dist/esm/kol-toolbar.entry.js +15 -15
  300. package/dist/esm/kol-tooltip-wc.entry.js +6 -6
  301. package/dist/esm/kol-tree-item.entry.js +16 -13
  302. package/dist/esm/kol-tree.entry.js +17 -6
  303. package/dist/esm/kol-version.entry.js +11 -11
  304. package/dist/esm/kolibri.js +3 -3
  305. package/dist/esm/loader.js +3 -3
  306. package/dist/esm/{resolve-props-Bj6IaybL.js → resolve-props-DTXKtzir.js} +2 -2
  307. package/dist/esm/{resolve-props-02J6OCRf.js → resolve-props-kM9N-fzf.js} +2 -2
  308. package/dist/esm/{scroll-lock-B6hVv8A8.js → scroll-lock-Bv-U2FHM.js} +2 -2
  309. package/dist/esm/{suggestions-DaB3FVaz.js → suggestions-D0u80DtA.js} +2 -2
  310. package/dist/esm/test-component.entry.js +1 -1
  311. package/dist/esm/{toggle-handler-3qaN2kmt.js → toggle-handler-mPlmvrq7.js} +4 -4
  312. package/dist/kolibri/Heading-GZb1f2pZ.js +4 -0
  313. package/dist/kolibri/api-CBPlj155.js +4 -0
  314. package/dist/kolibri/app-globals-DRl9A82c.js +4 -0
  315. package/dist/kolibri/aria-labelledby-DqJY_4G-.js +4 -0
  316. package/dist/kolibri/base-BByRnpRm.js +4 -0
  317. package/dist/kolibri/base-C7BBsrYZ.js +4 -0
  318. package/dist/kolibri/{base-P1TaQ7Ba.js → base-DO0KvOv9.js} +1 -1
  319. package/dist/kolibri/{base-CWrvN3Gt.js → base-Dtxcvto_.js} +1 -1
  320. package/dist/kolibri/{base-web-component-CKgIOZqi.js → base-web-component-BxXLva5d.js} +1 -1
  321. package/dist/kolibri/{base-web-component-Bq_B9edx.js → base-web-component-CfPyCJDJ.js} +1 -1
  322. package/dist/kolibri/{behavior-Bb7JYoUn.js → behavior-CKU2tmCj.js} +1 -1
  323. package/dist/kolibri/{behavior-CFG1f4KQ.js → behavior-CsNDRS2z.js} +1 -1
  324. package/dist/kolibri/behavior-ewHvUWVk.js +4 -0
  325. package/dist/kolibri/{bem-registry-DQUGxdIS.js → bem-registry-D1KgKnyz.js} +1 -1
  326. package/dist/kolibri/{block-bem-BGIVcYJu.js → block-bem-D3ixJyOY.js} +1 -1
  327. package/dist/kolibri/{component-5Uu-ahLC.js → component-6l69Jvwl.js} +1 -1
  328. package/dist/kolibri/component-B3OziaRC.js +4 -0
  329. package/dist/kolibri/{component-Bc2pdOk1.js → component-By8ggItU.js} +1 -1
  330. package/dist/kolibri/component-CF8uFG0A.js +4 -0
  331. package/dist/kolibri/component-Ccv2lqNq.js +4 -0
  332. package/dist/kolibri/component-Cmi6iGfA.js +4 -0
  333. package/dist/kolibri/component-D4-NVnsT.js +4 -0
  334. package/dist/kolibri/{component-W1KZI4h4.js → component-D6_K50vT.js} +1 -1
  335. package/dist/kolibri/component-D6lo0LzE.js +4 -0
  336. package/dist/kolibri/{component-oUQcgxDj.js → component-D9NreIlK.js} +1 -1
  337. package/dist/kolibri/{component-Ct11K0Gv.js → component-DAk3R8NN.js} +1 -1
  338. package/dist/kolibri/component-EDDTMC-J.js +4 -0
  339. package/dist/kolibri/{dev.utils-DDWOHUcg.js → dev.utils-BwYCy1rP.js} +1 -1
  340. package/dist/kolibri/{devtools-B0kEE_za.js → devtools-CGP3Nzsw.js} +1 -1
  341. package/dist/kolibri/field-control-0TRmF7Ea.js +4 -0
  342. package/dist/kolibri/{group-DUVsgWxS.js → group-DapkT_Yh.js} +1 -1
  343. package/dist/kolibri/{index-Dulj0jro.js → index-DEcM8BEc.js} +1 -1
  344. package/dist/kolibri/index.esm.js +1 -1
  345. package/dist/kolibri/input-CDUCo1S5.js +4 -0
  346. package/dist/kolibri/{input-container-DmtMTcjB.js → input-container-BipAkWn4.js} +1 -1
  347. package/dist/kolibri/item-B0oQTeju.js +4 -0
  348. package/dist/kolibri/item-Boe3t0Dm.js +4 -0
  349. package/dist/kolibri/item-BvnZc8uV.js +4 -0
  350. package/dist/kolibri/item-UgJ2uikD.js +4 -0
  351. package/dist/kolibri/kol-abbr.entry.js +1 -1
  352. package/dist/kolibri/kol-accordion.entry.js +1 -1
  353. package/dist/kolibri/kol-alert.entry.js +1 -1
  354. package/dist/kolibri/kol-avatar.entry.js +1 -1
  355. package/dist/kolibri/kol-badge.entry.js +1 -1
  356. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  357. package/dist/kolibri/kol-button-link.entry.js +1 -1
  358. package/dist/kolibri/kol-button.entry.js +1 -1
  359. package/dist/kolibri/kol-card.entry.js +1 -1
  360. package/dist/kolibri/kol-combobox.entry.js +1 -1
  361. package/dist/kolibri/kol-details.entry.js +1 -1
  362. package/dist/kolibri/kol-dialog.entry.js +1 -1
  363. package/dist/kolibri/kol-drawer.entry.js +1 -1
  364. package/dist/kolibri/kol-form.entry.js +1 -1
  365. package/dist/kolibri/kol-heading.entry.js +1 -1
  366. package/dist/kolibri/kol-icon.entry.js +1 -1
  367. package/dist/kolibri/kol-image.entry.js +1 -1
  368. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  369. package/dist/kolibri/kol-input-color.entry.js +1 -1
  370. package/dist/kolibri/kol-input-date.entry.js +1 -1
  371. package/dist/kolibri/kol-input-email.entry.js +1 -1
  372. package/dist/kolibri/kol-input-file.entry.js +1 -1
  373. package/dist/kolibri/kol-input-number.entry.js +1 -1
  374. package/dist/kolibri/kol-input-password.entry.js +1 -1
  375. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  376. package/dist/kolibri/kol-input-range.entry.js +1 -1
  377. package/dist/kolibri/kol-input-text.entry.js +1 -1
  378. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  379. package/dist/kolibri/kol-link-button.entry.js +1 -1
  380. package/dist/kolibri/kol-link.entry.js +1 -1
  381. package/dist/kolibri/kol-meter.entry.js +1 -1
  382. package/dist/kolibri/kol-modal.entry.js +1 -1
  383. package/dist/kolibri/kol-nav.entry.js +1 -1
  384. package/dist/kolibri/kol-pagination.entry.js +1 -1
  385. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  386. package/dist/kolibri/kol-progress.entry.js +1 -1
  387. package/dist/kolibri/kol-quote.entry.js +1 -1
  388. package/dist/kolibri/kol-select.entry.js +1 -1
  389. package/dist/kolibri/kol-single-select.entry.js +1 -1
  390. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  391. package/dist/kolibri/kol-spin.entry.js +1 -1
  392. package/dist/kolibri/kol-split-button.entry.js +1 -1
  393. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  394. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  395. package/dist/kolibri/kol-tabs.entry.js +1 -1
  396. package/dist/kolibri/kol-textarea.entry.js +1 -1
  397. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  398. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  399. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  400. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  401. package/dist/kolibri/kol-tree.entry.js +1 -1
  402. package/dist/kolibri/kol-version.entry.js +1 -1
  403. package/dist/kolibri/kolibri.esm.js +1 -1
  404. package/dist/kolibri/resolve-props-DTXKtzir.js +4 -0
  405. package/dist/kolibri/resolve-props-kM9N-fzf.js +4 -0
  406. package/dist/kolibri/scroll-lock-Bv-U2FHM.js +4 -0
  407. package/dist/kolibri/{suggestions-DaB3FVaz.js → suggestions-D0u80DtA.js} +1 -1
  408. package/dist/kolibri/test-component.entry.js +1 -1
  409. package/dist/kolibri/toggle-handler-mPlmvrq7.js +4 -0
  410. package/dist/types/components/table-stateful/component.d.ts +0 -1
  411. package/dist/types/components/table-stateless/component.d.ts +0 -1
  412. package/dist/types/components/tree/component.d.ts +1 -0
  413. package/dist/types/components.d.ts +4 -4
  414. package/dist/types/internal/functional-components/form-association/api.d.ts +1 -1
  415. package/dist/types/internal/functional-components/form-association/behavior.d.ts +0 -1
  416. package/dist/types/schema/bem-registry.d.ts +49 -0
  417. package/dist/types/schema/props/aria-details.d.ts +0 -2
  418. package/dist/types/schema/props/aria-labelledby.d.ts +1 -2
  419. package/dist/types/utils/aria-labelledby.d.ts +0 -6
  420. package/doc/table-stateful.md +16 -16
  421. package/doc/table-stateless.md +14 -14
  422. package/package.json +1 -1
  423. package/vscode-custom-data.json +2 -2
  424. package/dist/kolibri/Heading-C_CwXDMp.js +0 -4
  425. package/dist/kolibri/api-DGiFM9p0.js +0 -4
  426. package/dist/kolibri/app-globals-sZHZyXjD.js +0 -4
  427. package/dist/kolibri/aria-labelledby-CLehu03h.js +0 -4
  428. package/dist/kolibri/base-B4sGK9cX.js +0 -4
  429. package/dist/kolibri/base-DTKJ1Z06.js +0 -4
  430. package/dist/kolibri/behavior-CkPQGfgo.js +0 -4
  431. package/dist/kolibri/component-B05zRrM0.js +0 -4
  432. package/dist/kolibri/component-B16Fbp3W.js +0 -4
  433. package/dist/kolibri/component-BI8jDgBz.js +0 -4
  434. package/dist/kolibri/component-C79oAu7a.js +0 -4
  435. package/dist/kolibri/component-CldKbBUh.js +0 -4
  436. package/dist/kolibri/component-Clz6b6ho.js +0 -4
  437. package/dist/kolibri/component-DAQzDMY8.js +0 -4
  438. package/dist/kolibri/field-control-DsQHa0v9.js +0 -4
  439. package/dist/kolibri/input-C0Li7DsE.js +0 -4
  440. package/dist/kolibri/item-8RKFpmbd.js +0 -4
  441. package/dist/kolibri/item-CnJMuEyl.js +0 -4
  442. package/dist/kolibri/item-CxVe5INa.js +0 -4
  443. package/dist/kolibri/item-DHZGDrAn.js +0 -4
  444. package/dist/kolibri/resolve-props-02J6OCRf.js +0 -4
  445. package/dist/kolibri/resolve-props-Bj6IaybL.js +0 -4
  446. package/dist/kolibri/scroll-lock-B6hVv8A8.js +0 -4
  447. package/dist/kolibri/toggle-handler-3qaN2kmt.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as o,h as t,H as e,g as i}from"./index-Dulj0jro.js";import{_ as n}from"./tslib.es6-QNbPBOk5.js";import{v as l}from"./access-and-short-key-ijzCZfHm.js";import{h as a,g as r,I as s}from"./input-container-DmtMTcjB.js";import{f as c,B as h,F as d}from"./api-DGiFM9p0.js";import{I as p}from"./input-C0Li7DsE.js";import{a as m,S as k}from"./suggestions-DaB3FVaz.js";import"./common-BdSzSIXg.js";import{a as b,d as u,v as f}from"./component-C79oAu7a.js";import"./props-from-config-ytxYrJUY.js";import{s as g}from"./smart-button-DM5g48-g.js";import{s as _}from"./suggestions-LO267l8F.js";import{s as y}from"./value-string-CxDz7dhD.js";import{c as v}from"./dev.utils-DDWOHUcg.js";import{d as w,a as x,c as j}from"./element-interaction-sGYdEpmv.js";import"./component-B16Fbp3W.js";import"./bem-registry-DQUGxdIS.js";import"./clsx-COFh-Vc8.js";import"./component-B05zRrM0.js";import"./block-bem-BGIVcYJu.js";import"./component-oUQcgxDj.js";import"./component-Clz6b6ho.js";import"./component-W1KZI4h4.js";import"./disabled-BZXlWAgK.js";import"./id-BI0ZuK17.js";import"./label-with-expert-slot-BbZ9nx0l.js";import"./validators-CTjxOidB.js";import"./label-hints-CLMiVvfk.js";import"./aria-labelledby-CLehu03h.js";import"./events-CRHxtwup.js";import"./behavior-CkPQGfgo.js";import"./bootstrap-tgQ2nQQI.js";import"./component-names-Dhbtt0mX.js";import"./i18n-4J6U3ZDc.js";import"./behavior-Bb7JYoUn.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./label-lang-segment-iVD9hoM3.js";import"./base-web-component-CC_gpyDb.js";import"./item-8RKFpmbd.js";import"./controller-CZcQ57AP.js";import"./resolve-props-Bj6IaybL.js";import"./item-DHZGDrAn.js";import"./component-Bc2pdOk1.js";import"./i18n-ePBcLlCr.js";import"./component-BI8jDgBz.js";import"./Heading-C_CwXDMp.js";import"./element-focus-BIRmGg5W.js";const B={required:[...c.required],optional:[...c.optional,b,m,a,u,g,y,_,f]},z=class extends h{constructor(t){super(),new.target===z&&o(this,t),this.id=v("input-color"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=j(),this.propsConfig=B,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._msg=void 0,this._name=void 0,this._on=void 0,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.handleColorInput=o=>{const t=o.target.value;this.setRenderProp("value",t),this.ctaRef.el&&(this.ctaRef.el.value=t),this.handleInput(o)},this.initFormAssociation("color",this._name)}watchAccessKey(o){b.apply(o,(o=>this.setRenderProp("accessKey",o))),l(o,this._shortKey)}watchAriaDetails(o){this.applyAriaDetails(o)}watchAutoComplete(o){m.apply(o,(o=>this.setRenderProp("autoComplete",o)))}watchDisabled(o){this.applyDisabled(o)}watchHideMsg(o){this.applyHideMsg(o)}watchHideLabel(o){this.applyHideLabel(o)}watchHint(o){this.applyHint(o)}watchIcons(o){a.apply(o,(o=>this.setRenderProp("icons",o)))}watchInfoPopover(o){this.applyInfoPopover(o)}watchLabel(o){this.applyLabel(o)}watchMsg(o){this.applyMsg(o)}watchName(o){this.applyName(o)}watchOn(o){this.applyOn(o)}watchShortKey(o){u.apply(o,(o=>this.setRenderProp("shortKey",o))),l(this._accessKey,o)}watchSmartButton(o){null==o?this.unsetRenderProp("smartButton"):g.apply(o,(o=>this.setRenderProp("smartButton",o)))}watchSuggestions(o){_.apply(o,(o=>this.setRenderProp("suggestions",o)))}watchSyncValueBySelector(o){this.applySyncValueBySelector(o)}watchTooltipAlign(o){this.applyTooltipAlign(o)}watchTouched(o){this.applyTouched(o)}watchValue(o){y.apply(o,(o=>this.setRenderProp("value",o))),this.formAssociation.setFormAssociatedValue(this.getRenderProp("value"))}watchVariant(o){f.apply(o,(o=>this.setRenderProp("variant",o)))}getValue(){var o;return Promise.resolve(null===(o=this.ctaRef.el)||void 0===o?void 0:o.value)}focus(o){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.watchSuggestions(this._suggestions),this.watchValue(this._value)}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField()}getInputProps(){const o=this.id,e=this.getRenderProp("name"),i=this.getRenderProp("accessKey"),n=this.getRenderProp("shortKey"),l=this.getRenderProp("suggestions"),{ariaDescribedBy:a,hasError:r}=this.getAria();return Object.assign(Object.assign(Object.assign(Object.assign({id:o,hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),disabled:this.getRenderProp("disabled"),name:e?`${e}-color`:void 0},i?{accessKey:i}:{}),{value:this.getRenderProp("value"),autoComplete:this.getRenderProp("autoComplete"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")}),n?{"aria-keyshortcuts":n}:{}),{suggestions:l.length>0?t(k,{id:o,suggestions:l}):void 0,class:"kol-input-color__input kol-input-color__input--color",onBlur:this.handleBlur,onChange:this.handleChange,onClick:this.handleClick,onFocus:this.handleFocus,onInput:this.handleColorInput,onKeyDown:this.handleKeyDown,ref:this.ctaRef,type:"color",ariaDescribedBy:a,"aria-invalid":r?"true":void 0})}render(){const o=this.getRenderProp("disabled"),{startAdornment:i,endAdornment:n}=r({icons:this.getRenderProp("icons"),smartButton:this.getSmartButtonFcProps(this.getRenderProp("smartButton"),o)});return t(e,{key:"28705e83028430f22d59e707a250016a7a8a63e3"},t(d,Object.assign({key:"12baf7a8e1544bc7105fa36c20aead6ed11ce4b3"},this.getFormFieldProps({class:"kol-input-color",accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,variant:this.getRenderProp("variant")})),t(s,{key:"c0a2302c21ddbc21d538ac3e4f2ca73a034e4604",disabled:o,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:n},t(p,Object.assign({key:"5290f0735219b04f6efbf76212b4c62b1be3428c"},this.getInputProps())))))}get host(){return i(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}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn: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([w("ctaRef")],z.prototype,"focus",null),n([x("ctaRef")],z.prototype,"click",null),z.style={default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794582088003"); src: url("kolicons.eot?t=1794582088003#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794582088003") format("woff2"), url("kolicons.woff?t=1794582088003") format("woff"), url("kolicons.ttf?t=1794582088003") format("truetype"), url("kolicons.svg?t=1794582088003#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-button { background-color: transparent; display: inline-block; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); margin: 0; padding: 0; text-align: center; } .kol-button__interactive-element { border-style: none; display: block; border-width: medium; font-weight: inherit; font-style: inherit; text-align: inherit; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: "​"; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-form-field .kol-popover-button { display: inline; } .kol-form-field .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-form-field .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-form-field .kol-popover-button--inline { display: inline-block; } .kol-form-field .kol-popover-button--inline .kol-button, .kol-form-field .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-form-field .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-form-field .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-form-field { display: grid; } .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label { cursor: pointer; } .kol-form-field__label { display: flex; } .kol-form-field__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-form-field--required .kol-form-field__label-text:has(.kol-span__slot[hidden]) .kol-span__label::after, .kol-form-field--required:not(:has(.kol-form-field__label--legend)) .kol-form-field__input .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-input-container { background-color: transparent; display: grid; position: relative; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; grid-template-columns: 1fr; } .kol-input-container:has(> .kol-input-container__adornment--start) { grid-template-columns: auto 1fr auto; } .kol-input-container__container { position: relative; z-index: 1; } .kol-input-container__adornment { display: flex; align-items: center; } .kol-input-container__adornment .kol-icon { display: grid; place-items: center; } .kol-input { background-color: transparent; width: 100%; min-width: var(--a11y-min-size); } .kol-input { cursor: pointer; } .kol-input:disabled { cursor: not-allowed; } }'};export{z as kol_input_color}
4
+ import{r as o,h as t,H as e,g as i}from"./index-DEcM8BEc.js";import{_ as n}from"./tslib.es6-QNbPBOk5.js";import{b as l}from"./bem-registry-D1KgKnyz.js";import{v as a}from"./access-and-short-key-ijzCZfHm.js";import{h as r,g as s,I as c}from"./input-container-BipAkWn4.js";import{f as h,B as d,F as m}from"./api-CBPlj155.js";import{I as p}from"./input-CDUCo1S5.js";import{a as k,S as b}from"./suggestions-D0u80DtA.js";import"./common-BdSzSIXg.js";import{a as f,d as u,v as g}from"./component-D4-NVnsT.js";import"./props-from-config-ytxYrJUY.js";import{s as _}from"./smart-button-DM5g48-g.js";import{s as y}from"./suggestions-LO267l8F.js";import{s as v}from"./value-string-CxDz7dhD.js";import{c as w}from"./dev.utils-BwYCy1rP.js";import{d as x,a as j,c as B}from"./element-interaction-sGYdEpmv.js";import"./component-B3OziaRC.js";import"./clsx-COFh-Vc8.js";import"./component-Ccv2lqNq.js";import"./block-bem-D3ixJyOY.js";import"./component-D9NreIlK.js";import"./component-EDDTMC-J.js";import"./component-D6_K50vT.js";import"./disabled-BZXlWAgK.js";import"./id-BI0ZuK17.js";import"./label-with-expert-slot-BbZ9nx0l.js";import"./validators-CTjxOidB.js";import"./label-hints-CLMiVvfk.js";import"./aria-labelledby-DqJY_4G-.js";import"./events-CRHxtwup.js";import"./base-web-component-CC_gpyDb.js";import"./item-B0oQTeju.js";import"./controller-CZcQ57AP.js";import"./component-names-Dhbtt0mX.js";import"./behavior-CKU2tmCj.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./label-lang-segment-iVD9hoM3.js";import"./resolve-props-DTXKtzir.js";import"./behavior-ewHvUWVk.js";import"./bootstrap-tgQ2nQQI.js";import"./i18n-4J6U3ZDc.js";import"./item-Boe3t0Dm.js";import"./component-By8ggItU.js";import"./i18n-ePBcLlCr.js";import"./component-Cmi6iGfA.js";import"./Heading-GZb1f2pZ.js";import"./element-focus-BIRmGg5W.js";const C={required:[...h.required],optional:[...h.optional,f,k,r,u,_,v,y,g]},z=l.forBlock("kol-input-color"),D=class extends d{constructor(t){super(),new.target===D&&o(this,t),this.id=w("input-color"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=B(),this.propsConfig=C,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._msg=void 0,this._name=void 0,this._on=void 0,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.handleColorInput=o=>{const t=o.target.value;this.setRenderProp("value",t),this.ctaRef.el&&(this.ctaRef.el.value=t),this.handleInput(o)},this.initFormAssociation("color",this._name)}watchAccessKey(o){f.apply(o,(o=>this.setRenderProp("accessKey",o))),a(o,this._shortKey)}watchAriaDetails(o){this.applyAriaDetails(o)}watchAutoComplete(o){k.apply(o,(o=>this.setRenderProp("autoComplete",o)))}watchDisabled(o){this.applyDisabled(o)}watchHideMsg(o){this.applyHideMsg(o)}watchHideLabel(o){this.applyHideLabel(o)}watchHint(o){this.applyHint(o)}watchIcons(o){r.apply(o,(o=>this.setRenderProp("icons",o)))}watchInfoPopover(o){this.applyInfoPopover(o)}watchLabel(o){this.applyLabel(o)}watchMsg(o){this.applyMsg(o)}watchName(o){this.applyName(o)}watchOn(o){this.applyOn(o)}watchShortKey(o){u.apply(o,(o=>this.setRenderProp("shortKey",o))),a(this._accessKey,o)}watchSmartButton(o){null==o?this.unsetRenderProp("smartButton"):_.apply(o,(o=>this.setRenderProp("smartButton",o)))}watchSuggestions(o){y.apply(o,(o=>this.setRenderProp("suggestions",o)))}watchSyncValueBySelector(o){this.applySyncValueBySelector(o)}watchTooltipAlign(o){this.applyTooltipAlign(o)}watchTouched(o){this.applyTouched(o)}watchValue(o){v.apply(o,(o=>this.setRenderProp("value",o))),this.formAssociation.setFormAssociatedValue(this.getRenderProp("value"))}watchVariant(o){g.apply(o,(o=>this.setRenderProp("variant",o)))}getValue(){var o;return Promise.resolve(null===(o=this.ctaRef.el)||void 0===o?void 0:o.value)}focus(o){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.watchSuggestions(this._suggestions),this.watchValue(this._value)}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField()}getInputProps(){const o=this.id,e=this.getRenderProp("name"),i=this.getRenderProp("accessKey"),n=this.getRenderProp("shortKey"),l=this.getRenderProp("suggestions"),{ariaDescribedBy:a,hasError:r}=this.getAria();return Object.assign(Object.assign(Object.assign(Object.assign({id:o,hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),disabled:this.getRenderProp("disabled"),name:e?`${e}-color`:void 0},i?{accessKey:i}:{}),{value:this.getRenderProp("value"),autoComplete:this.getRenderProp("autoComplete"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")}),n?{"aria-keyshortcuts":n}:{}),{suggestions:l.length>0?t(b,{id:o,suggestions:l}):void 0,class:z("input",{color:!0}),onBlur:this.handleBlur,onChange:this.handleChange,onClick:this.handleClick,onFocus:this.handleFocus,onInput:this.handleColorInput,onKeyDown:this.handleKeyDown,ref:this.ctaRef,type:"color",ariaDescribedBy:a,"aria-invalid":r?"true":void 0})}render(){const o=this.getRenderProp("disabled"),{startAdornment:i,endAdornment:n}=s({icons:this.getRenderProp("icons"),smartButton:this.getSmartButtonFcProps(this.getRenderProp("smartButton"),o)});return t(e,{key:"89e0f26553404c7836b933b0f36d8075b8bad263"},t(m,Object.assign({key:"b587f9fe1e55ef2708b4621c5b9e12abea47e0e9"},this.getFormFieldProps({class:z(),accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,variant:this.getRenderProp("variant")})),t(c,{key:"a6e45cf9a2e54391629b6ddd04b7e7b24b1c2dfe",disabled:o,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:n},t(p,Object.assign({key:"0b65d575f9f5938229289aaccc8c514171755c6a"},this.getInputProps())))))}get host(){return i(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}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn: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([x("ctaRef")],D.prototype,"focus",null),n([j("ctaRef")],D.prototype,"click",null),D.style={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: pointer; } .kol-input:disabled { cursor: not-allowed; } }'};export{D as kol_input_color}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as t,f as o,h as e,H as i,g as n}from"./index-Dulj0jro.js";import{_ as a}from"./tslib.es6-QNbPBOk5.js";import{c as l}from"./common-BdSzSIXg.js";import{v as r}from"./access-and-short-key-ijzCZfHm.js";import{h as s,g as c,I as h}from"./input-container-DmtMTcjB.js";import{f as d,B as m,F as p}from"./api-DGiFM9p0.js";import{I as u}from"./input-C0Li7DsE.js";import{a as k,S as f}from"./suggestions-DaB3FVaz.js";import{a as b,d as g,v as y}from"./component-C79oAu7a.js";import{f as _,c as v,b as w,i as x}from"./props-from-config-ytxYrJUY.js";import{r as j}from"./read-only-DytZ5HZJ.js";import{r as B}from"./required-BriHhuO4.js";import{s as D}from"./smart-button-DM5g48-g.js";import{s as z}from"./step-BcyhvRtu.js";import{s as C}from"./suggestions-LO267l8F.js";import{c as S}from"./clsx-COFh-Vc8.js";import{c as O}from"./dev.utils-DDWOHUcg.js";import{d as T,a as I,c as K}from"./element-interaction-sGYdEpmv.js";import{s as A}from"./controller-CZcQ57AP.js";import"./component-B16Fbp3W.js";import"./bem-registry-DQUGxdIS.js";import"./component-B05zRrM0.js";import"./block-bem-BGIVcYJu.js";import"./component-oUQcgxDj.js";import"./component-Clz6b6ho.js";import"./component-W1KZI4h4.js";import"./disabled-BZXlWAgK.js";import"./id-BI0ZuK17.js";import"./label-with-expert-slot-BbZ9nx0l.js";import"./validators-CTjxOidB.js";import"./label-hints-CLMiVvfk.js";import"./aria-labelledby-CLehu03h.js";import"./events-CRHxtwup.js";import"./behavior-CkPQGfgo.js";import"./bootstrap-tgQ2nQQI.js";import"./component-names-Dhbtt0mX.js";import"./i18n-4J6U3ZDc.js";import"./behavior-Bb7JYoUn.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./label-lang-segment-iVD9hoM3.js";import"./base-web-component-CC_gpyDb.js";import"./item-8RKFpmbd.js";import"./resolve-props-Bj6IaybL.js";import"./item-DHZGDrAn.js";import"./component-Bc2pdOk1.js";import"./i18n-ePBcLlCr.js";import"./component-BI8jDgBz.js";import"./Heading-C_CwXDMp.js";import"./element-focus-BIRmGg5W.js";const M=["date","datetime-local","month","time","week"],H=/^\d{4}-([0]\d|1[0-2])-([0-2]\d|3[01])/,V=/^\d{4}-([0]\d|1[0-2])-([0-2]\d|3[01])[T ][0-2]\d:[0-5]\d(:[0-5]\d(?:\.\d+)?)?/,G=/^\d{4}-([0]\d|1[0-2])/,L=/^[0-2]\d:[0-5]\d(:[0-5]\d(?:\.\d+)?)?/,P=/^\d{4}-W(?:[0-4]\d|5[0-3])$/;function q(t,{type:o,step:e}){return function(t,o,e){if("string"==typeof t||null===t)return t;if(t instanceof Date){const i=t.getFullYear(),n=String(t.getMonth()+1).padStart(2,"0"),a=String(t.getDate()).padStart(2,"0"),l=String(t.getHours()).padStart(2,"0"),r=String(t.getMinutes()).padStart(2,"0"),s=String(t.getSeconds()).padStart(2,"0"),c=[i,n,a].join("-"),h=[l,r,s].join(":");switch(o){case"date":return c;case"datetime-local":return`${c}T${h}`;case"month":return`${i}-${n}`;case"time":return void 0===e||"60"===String(e)?`${l}:${r}`:h;case"week":return`${i}-W${function(t){const o=new Date(t),e=(o.getDay()+6)%7;o.setDate(o.getDate()-e+3);const i=o.valueOf();return o.setMonth(0,1),4!==o.getDay()&&o.setMonth(0,1+(4-o.getDay()+7)%7),(1+Math.ceil((i-o.valueOf())/6048e5)).toString().padStart(2,"0")}(t)}`}}}(t,o,e)}function R(t,{type:o}){return null==t||""===t||function(t,o){switch(o){case"date":return H.test(t);case"datetime-local":return V.test(t);case"month":return G.test(t);case"time":return L.test(t);case"week":return P.test(t);default:return!1}}(t,o)}const $=_("max",void 0,q,R),F=_("min",void 0,q,R),Z=v("type","date",(function(t){const o=w(t);if(x(o,M))return o;throw new Error(`Invalid input date type: ${o}`)})),Q=_("value",void 0,q,R);function U(t){return t instanceof Date?"Date":"string"==typeof t?"String":null}function W(t,o){return""===t?null:"Date"!==o?t:function(t){const o=N.exec(t);return o?new Date(Number(o[1]),Number(o[2])-1,Number(o[3])):new Date(t)}(t)}const N=/^(\d{4})-(\d{2})-(\d{2})$/,J={required:[...d.required],optional:[...d.optional,b,k,s,$,F,Z,Q,j,B,g,D,z,C,y]},Y=class extends m{constructor(o){super(),new.target===Y&&t(this,o),this.id=O("input-date"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=K(),this.valueType=null,this.hasValue=!1,this.propsConfig=J,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 o=this.readValue(t);this._value=o,this.handleInput(t,o)},this.handleDateChange=t=>{const o=this.readValue(t);this.handleChange(t,o),this.hasValue=Boolean(o)},this.handleDateBlur=t=>{this.handleBlur(t);const o=t.target.value;Boolean(o)!==Boolean(this._value)&&(this._value=o)},this.handleDateKeyDown=t=>{this.handleKeyDown(t),A(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){$.apply(t,(t=>this.setRenderProp("max",t)),this.dateDeps)}watchMin(t){F.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){j.apply(t,(t=>this.setRenderProp("readOnly",t)))}watchRequired(t){B.apply(t,(t=>this.setRenderProp("required",t)))}watchShortKey(t){g.apply(t,(t=>this.setRenderProp("shortKey",t))),r(this._accessKey,t)}watchSmartButton(t){null==t?this.unsetRenderProp("smartButton"):D.apply(t,(t=>this.setRenderProp("smartButton",t)))}watchSuggestions(t){C.apply(t,(t=>this.setRenderProp("suggestions",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchStep(t){z.apply(t,(t=>this.setRenderProp("step",t)))}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchType(t){Z.apply(t,(t=>this.setRenderProp("type",t)))}watchValue(t){var o;t instanceof Date&&l("Date type will be removed in v3. Use `Iso8601` instead."),Q.apply(t,(t=>this.setRenderProp("value",t)),this.dateDeps),this.formAssociation.setFormAssociatedValue(null!==(o=this.getRenderProp("value"))&&void 0!==o?o:null),null!=t&&(this.valueType=U(t))}watchVariant(t){y.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){return Promise.resolve(this.ctaRef.el&&W(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,o(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=Boolean(this.getRenderProp("value"))}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField()}get dateDeps(){return{type:this._type,step:this._step}}readValue(t){return W(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:o,endAdornment:n}=c({icons:this.getRenderProp("icons"),smartButton:this.getSmartButtonFcProps(this.getRenderProp("smartButton"),t)});return e(i,{key:"205a63142271ddb4cab5d2374f238e77104f5a7c"},e(p,Object.assign({key:"887189f5d662ee48def8d2343ce114bef9e0d0d7"},this.getFormFieldProps({class:S("kol-input-date",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:"e5d8bc6c622d7b44e74df5bc0197f5ab0638de56",disabled:t,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:o,endAdornment:n},e(u,Object.assign({key:"d73d8348068f1890182b3c26ead621bb806f64db"},this.getInputProps())))))}get host(){return n(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}]}}};a([T("ctaRef")],Y.prototype,"focus",null),a([I("ctaRef")],Y.prototype,"click",null),Y.style={default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794582088003"); src: url("kolicons.eot?t=1794582088003#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794582088003") format("woff2"), url("kolicons.woff?t=1794582088003") format("woff"), url("kolicons.ttf?t=1794582088003") format("truetype"), url("kolicons.svg?t=1794582088003#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-button { background-color: transparent; display: inline-block; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); margin: 0; padding: 0; text-align: center; } .kol-button__interactive-element { border-style: none; display: block; border-width: medium; font-weight: inherit; font-style: inherit; text-align: inherit; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: "​"; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-form-field .kol-popover-button { display: inline; } .kol-form-field .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-form-field .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-form-field .kol-popover-button--inline { display: inline-block; } .kol-form-field .kol-popover-button--inline .kol-button, .kol-form-field .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-form-field .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-form-field .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-form-field { display: grid; } .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label { cursor: pointer; } .kol-form-field__label { display: flex; } .kol-form-field__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-form-field--required .kol-form-field__label-text:has(.kol-span__slot[hidden]) .kol-span__label::after, .kol-form-field--required:not(:has(.kol-form-field__label--legend)) .kol-form-field__input .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-input-container { background-color: transparent; display: grid; position: relative; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; grid-template-columns: 1fr; } .kol-input-container:has(> .kol-input-container__adornment--start) { grid-template-columns: auto 1fr auto; } .kol-input-container__container { position: relative; z-index: 1; } .kol-input-container__adornment { display: flex; align-items: center; } .kol-input-container__adornment .kol-icon { display: grid; place-items: center; } .kol-input { background-color: transparent; width: 100%; min-width: var(--a11y-min-size); } .kol-input { cursor: text; } .kol-input::-webkit-calendar-picker-indicator { cursor: pointer; } }'};export{Y as kol_input_date}
4
+ import{r as t,f as o,h as e,H as i,g as n}from"./index-DEcM8BEc.js";import{_ as a}from"./tslib.es6-QNbPBOk5.js";import{c as l}from"./common-BdSzSIXg.js";import{b as r}from"./bem-registry-D1KgKnyz.js";import{v as s}from"./access-and-short-key-ijzCZfHm.js";import{h as c,g as h,I as d}from"./input-container-BipAkWn4.js";import{f as m,B as p,F as u}from"./api-CBPlj155.js";import{I as k}from"./input-CDUCo1S5.js";import{a as f,S as b}from"./suggestions-D0u80DtA.js";import{a as g,d as y,v as _}from"./component-D4-NVnsT.js";import{f as v,c as w,b as x,i as j}from"./props-from-config-ytxYrJUY.js";import{r as B}from"./read-only-DytZ5HZJ.js";import{r as D}from"./required-BriHhuO4.js";import{s as C}from"./smart-button-DM5g48-g.js";import{s as z}from"./step-BcyhvRtu.js";import{s as T}from"./suggestions-LO267l8F.js";import{c as S}from"./clsx-COFh-Vc8.js";import{c as K}from"./dev.utils-BwYCy1rP.js";import{d as O,a as A,c as I}from"./element-interaction-sGYdEpmv.js";import{s as q}from"./controller-CZcQ57AP.js";import"./component-B3OziaRC.js";import"./component-Ccv2lqNq.js";import"./block-bem-D3ixJyOY.js";import"./component-D9NreIlK.js";import"./component-EDDTMC-J.js";import"./component-D6_K50vT.js";import"./disabled-BZXlWAgK.js";import"./id-BI0ZuK17.js";import"./label-with-expert-slot-BbZ9nx0l.js";import"./validators-CTjxOidB.js";import"./label-hints-CLMiVvfk.js";import"./aria-labelledby-DqJY_4G-.js";import"./events-CRHxtwup.js";import"./base-web-component-CC_gpyDb.js";import"./item-B0oQTeju.js";import"./behavior-CKU2tmCj.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./label-lang-segment-iVD9hoM3.js";import"./resolve-props-DTXKtzir.js";import"./behavior-ewHvUWVk.js";import"./bootstrap-tgQ2nQQI.js";import"./component-names-Dhbtt0mX.js";import"./i18n-4J6U3ZDc.js";import"./item-Boe3t0Dm.js";import"./component-By8ggItU.js";import"./i18n-ePBcLlCr.js";import"./component-Cmi6iGfA.js";import"./Heading-GZb1f2pZ.js";import"./element-focus-BIRmGg5W.js";const M=["date","datetime-local","month","time","week"],V=/^\d{4}-([0]\d|1[0-2])-([0-2]\d|3[01])/,H=/^\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])/,G=/^[0-2]\d:[0-5]\d(:[0-5]\d(?:\.\d+)?)?/,L=/^\d{4}-W(?:[0-4]\d|5[0-3])$/;function R(t,{type:o,step:e}){return function(t,o,e){if("string"==typeof t||null===t)return t;if(t instanceof Date){const i=t.getFullYear(),n=String(t.getMonth()+1).padStart(2,"0"),a=String(t.getDate()).padStart(2,"0"),l=String(t.getHours()).padStart(2,"0"),r=String(t.getMinutes()).padStart(2,"0"),s=String(t.getSeconds()).padStart(2,"0"),c=[i,n,a].join("-"),h=[l,r,s].join(":");switch(o){case"date":return c;case"datetime-local":return`${c}T${h}`;case"month":return`${i}-${n}`;case"time":return void 0===e||"60"===String(e)?`${l}:${r}`:h;case"week":return`${i}-W${function(t){const o=new Date(t),e=(o.getDay()+6)%7;o.setDate(o.getDate()-e+3);const i=o.valueOf();return o.setMonth(0,1),4!==o.getDay()&&o.setMonth(0,1+(4-o.getDay()+7)%7),(1+Math.ceil((i-o.valueOf())/6048e5)).toString().padStart(2,"0")}(t)}`}}}(t,o,e)}function $(t,{type:o}){return null==t||""===t||function(t,o){switch(o){case"date":return V.test(t);case"datetime-local":return H.test(t);case"month":return P.test(t);case"time":return G.test(t);case"week":return L.test(t);default:return!1}}(t,o)}const Z=v("max",void 0,R,$),N=v("min",void 0,R,$),U=w("type","date",(function(t){const o=x(t);if(j(o,M))return o;throw new Error(`Invalid input date type: ${o}`)})),W=v("value",void 0,R,$);function E(t){return t instanceof Date?"Date":"string"==typeof t?"String":null}function F(t,o){return""===t?null:"Date"!==o?t:function(t){const o=J.exec(t);return o?new Date(Number(o[1]),Number(o[2])-1,Number(o[3])):new Date(t)}(t)}const J=/^(\d{4})-(\d{2})-(\d{2})$/,Q={required:[...m.required],optional:[...m.optional,g,f,c,Z,N,U,W,B,D,y,C,z,T,_]},Y=r.forBlock("kol-input-date"),X=class extends p{constructor(o){super(),new.target===X&&t(this,o),this.id=K("input-date"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=I(),this.valueType=null,this.hasValue=!1,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 o=this.readValue(t);this._value=o,this.handleInput(t,o)},this.handleDateChange=t=>{const o=this.readValue(t);this.handleChange(t,o),this.hasValue=Boolean(o)},this.handleDateBlur=t=>{this.handleBlur(t);const o=t.target.value;Boolean(o)!==Boolean(this._value)&&(this._value=o)},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){g.apply(t,(t=>this.setRenderProp("accessKey",t))),s(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){Z.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){D.apply(t,(t=>this.setRenderProp("required",t)))}watchShortKey(t){y.apply(t,(t=>this.setRenderProp("shortKey",t))),s(this._accessKey,t)}watchSmartButton(t){null==t?this.unsetRenderProp("smartButton"):C.apply(t,(t=>this.setRenderProp("smartButton",t)))}watchSuggestions(t){T.apply(t,(t=>this.setRenderProp("suggestions",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchStep(t){z.apply(t,(t=>this.setRenderProp("step",t)))}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchType(t){U.apply(t,(t=>this.setRenderProp("type",t)))}watchValue(t){var o;t instanceof Date&&l("Date type will be removed in v3. Use `Iso8601` instead."),W.apply(t,(t=>this.setRenderProp("value",t)),this.dateDeps),this.formAssociation.setFormAssociatedValue(null!==(o=this.getRenderProp("value"))&&void 0!==o?o:null),null!=t&&(this.valueType=E(t))}watchVariant(t){_.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){return Promise.resolve(this.ctaRef.el&&F(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,o(this),this.formAssociation.setFormAssociatedValue(""),this.ctaRef.el&&(this.ctaRef.el.value=""),Promise.resolve()}componentWillLoad(){this.unsetRenderProp("smartButton"),void 0!==this._value&&(this.valueType=E(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=Boolean(this.getRenderProp("value"))}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField()}get dateDeps(){return{type:this._type,step:this._step}}readValue(t){return F(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(b,{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:o,endAdornment:n}=h({icons:this.getRenderProp("icons"),smartButton:this.getSmartButtonFcProps(this.getRenderProp("smartButton"),t)});return e(i,{key:"23b44960be1170c4260569baf9ef16e5e47ee7b1"},e(u,Object.assign({key:"8e4651fa3225a8e0490f14cff261ea89d2e5625e"},this.getFormFieldProps({class:S(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")})),e(d,{key:"514f623d0ed2a1877965ae042c29dbf861462c5f",disabled:t,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:o,endAdornment:n},e(k,Object.assign({key:"4bba5733e85bd0e38acb669eca99417b077a132f"},this.getInputProps())))))}get host(){return n(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}]}}};a([O("ctaRef")],X.prototype,"focus",null),a([A("ctaRef")],X.prototype,"click",null),X.style={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; } }'};export{X as kol_input_date}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as t,h as o,H as e,g as i}from"./index-Dulj0jro.js";import{_ as n}from"./tslib.es6-QNbPBOk5.js";import{F as l}from"./api-DGiFM9p0.js";import{I as a}from"./input-C0Li7DsE.js";import{I as r}from"./input-container-DmtMTcjB.js";import"./common-BdSzSIXg.js";import"./props-from-config-ytxYrJUY.js";import{m as s}from"./multiple--ay1C1n3.js";import{s as c}from"./suggestions-LO267l8F.js";import{t as h,B as d}from"./base-web-component-Bq_B9edx.js";import{c as p}from"./dev.utils-DDWOHUcg.js";import{d as m,a as k}from"./element-interaction-sGYdEpmv.js";import"./component-oUQcgxDj.js";import"./bem-registry-DQUGxdIS.js";import"./clsx-COFh-Vc8.js";import"./component-Clz6b6ho.js";import"./aria-labelledby-CLehu03h.js";import"./events-CRHxtwup.js";import"./behavior-CkPQGfgo.js";import"./bootstrap-tgQ2nQQI.js";import"./component-names-Dhbtt0mX.js";import"./i18n-4J6U3ZDc.js";import"./component-B16Fbp3W.js";import"./component-C79oAu7a.js";import"./validators-CTjxOidB.js";import"./component-W1KZI4h4.js";import"./component-B05zRrM0.js";import"./block-bem-BGIVcYJu.js";import"./disabled-BZXlWAgK.js";import"./id-BI0ZuK17.js";import"./label-with-expert-slot-BbZ9nx0l.js";import"./label-hints-CLMiVvfk.js";import"./behavior-Bb7JYoUn.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./label-lang-segment-iVD9hoM3.js";import"./base-web-component-CC_gpyDb.js";import"./item-8RKFpmbd.js";import"./controller-CZcQ57AP.js";import"./resolve-props-Bj6IaybL.js";import"./item-DHZGDrAn.js";import"./component-Bc2pdOk1.js";import"./i18n-ePBcLlCr.js";import"./component-BI8jDgBz.js";import"./Heading-C_CwXDMp.js";import"./suggestions-DaB3FVaz.js";import"./placeholder-UxmBJ4Vl.js";import"./read-only-DytZ5HZJ.js";import"./required-BriHhuO4.js";import"./smart-button-DM5g48-g.js";import"./value-string-CxDz7dhD.js";import"./access-and-short-key-ijzCZfHm.js";import"./behavior-CFG1f4KQ.js";import"./element-focus-BIRmGg5W.js";const b={required:[...h.required],optional:[...h.optional,s,c]},f=class extends d{constructor(o){super(),new.target===f&&t(this,o),this.id=p("input-email"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.propsConfig=b,this._accessKey=void 0,this._ariaDetails=void 0,this._autoComplete="off",this._hasCounter=!1,this._maxLengthBehavior="hard",this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._infoPopover=void 0,this._maxLength=void 0,this._msg=void 0,this._multiple=!1,this._name=void 0,this._on=void 0,this._pattern=void 0,this._placeholder=void 0,this._readOnly=!1,this._required=!1,this._shortKey=void 0,this._smartButton=void 0,this._suggestions=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this._variant=void 0,this.initFormAssociation("email",this._name)}watchAccessKey(t){this.applyAccessKey(t)}watchAriaDetails(t){this.applyAriaDetails(t)}watchAutoComplete(t){this.applyAutoComplete(t)}watchHasCounter(t){this.applyHasCounter(t)}watchMaxLengthBehavior(t){this.applyMaxLengthBehavior(t)}watchDisabled(t){this.applyDisabled(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchIcons(t){this.applyIcons(t)}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMaxLength(t){this.applyMaxLength(t)}watchMsg(t){this.applyMsg(t)}watchMultiple(t){s.apply(t,(t=>this.setRenderProp("multiple",t)))}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchPattern(t){this.applyPattern(t)}watchPlaceholder(t){this.applyPlaceholder(t)}watchReadOnly(t){this.applyReadOnly(t)}watchRequired(t){this.applyRequired(t)}watchShortKey(t){this.applyShortKey(t)}watchSmartButton(t){this.applySmartButton(t)}watchSuggestions(t){c.apply(t,(t=>this.setRenderProp("suggestions",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchValue(t){this.applyValue(t)}watchVariant(t){this.applyVariant(t)}getValue(){var t;return Promise.resolve(null===(t=this.ctaRef.el)||void 0===t?void 0:t.value)}focus(t){return Promise.resolve()}async click(){return Promise.resolve()}componentWillLoad(){this.unsetRenderProp("smartButton"),this._touched=!0===this._touched,this.watchAriaDetails(this._ariaDetails),this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccessKey(this._accessKey),this.watchMsg(this._msg),this.watchDisabled(this._disabled),this.watchHideMsg(this._hideMsg),this.watchHideLabel(this._hideLabel),this.watchHint(this._hint),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchShortKey(this._shortKey),this.watchSmartButton(this._smartButton),this.watchOn(this._on),this.watchTooltipAlign(this._tooltipAlign),this.watchVariant(this._variant),this.watchIcons(this._icons),this.watchAutoComplete(this._autoComplete),this.watchHasCounter(this._hasCounter),this.watchMaxLengthBehavior(this._maxLengthBehavior),this.initMaxLength(this._maxLength),this.watchPattern(this._pattern),this.watchPlaceholder(this._placeholder),this.watchReadOnly(this._readOnly),this.watchRequired(this._required),this.watchSuggestions(this._suggestions),this.watchMultiple(this._multiple),this.initValue(this._value),this.initHasValue()}componentDidLoad(){this.didLoadTextInput()}componentDidUpdate(){this.didUpdateTextInput()}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyTextInput()}render(){const{startAdornment:t,endAdornment:i}=this.getTextInputAdornments();return o(e,{key:"2157f9be8cf3316767455de058c51fc3ebc9a754"},o(l,Object.assign({key:"fcbceceedb6aeac3e0eaee00bf9b9dc3b19a1e74"},this.getTextFormFieldProps("kol-input-email email")),o(r,{key:"294d96f944a343a674c57600b56f39eb8e3a4901",disabled:this.getRenderProp("disabled"),msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:t,endAdornment:i},o(a,Object.assign({key:"d0a7c626261c6b160e055ef201410f98fe9a0aa5"},this.getTextInputProps({multiple:this.getRenderProp("multiple"),suggestions:this.getRenderProp("suggestions")},{type:"email"}))))))}get host(){return i(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}]}}};n([m("ctaRef")],f.prototype,"focus",null),n([k("ctaRef")],f.prototype,"click",null),f.style={default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794582088003"); src: url("kolicons.eot?t=1794582088003#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794582088003") format("woff2"), url("kolicons.woff?t=1794582088003") format("woff"), url("kolicons.ttf?t=1794582088003") format("truetype"), url("kolicons.svg?t=1794582088003#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-button { background-color: transparent; display: inline-block; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); margin: 0; padding: 0; text-align: center; } .kol-button__interactive-element { border-style: none; display: block; border-width: medium; font-weight: inherit; font-style: inherit; text-align: inherit; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: "​"; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-form-field .kol-popover-button { display: inline; } .kol-form-field .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-form-field .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-form-field .kol-popover-button--inline { display: inline-block; } .kol-form-field .kol-popover-button--inline .kol-button, .kol-form-field .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-form-field .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-form-field .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-form-field { display: grid; } .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label { cursor: pointer; } .kol-form-field__label { display: flex; } .kol-form-field__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-form-field--required .kol-form-field__label-text:has(.kol-span__slot[hidden]) .kol-span__label::after, .kol-form-field--required:not(:has(.kol-form-field__label--legend)) .kol-form-field__input .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-input-container { background-color: transparent; display: grid; position: relative; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; grid-template-columns: 1fr; } .kol-input-container:has(> .kol-input-container__adornment--start) { grid-template-columns: auto 1fr auto; } .kol-input-container__container { position: relative; z-index: 1; } .kol-input-container__adornment { display: flex; align-items: center; } .kol-input-container__adornment .kol-icon { display: grid; place-items: center; } .kol-input { background-color: transparent; width: 100%; min-width: var(--a11y-min-size); } }'};export{f as kol_input_email}
4
+ import{r as t,h as o,H as e,g as i}from"./index-DEcM8BEc.js";import{_ as n}from"./tslib.es6-QNbPBOk5.js";import{F as l}from"./api-CBPlj155.js";import{I as a}from"./input-CDUCo1S5.js";import{I as r}from"./input-container-BipAkWn4.js";import"./common-BdSzSIXg.js";import"./props-from-config-ytxYrJUY.js";import{m as s}from"./multiple--ay1C1n3.js";import{s as c}from"./suggestions-LO267l8F.js";import{t as h,B as d}from"./base-web-component-CfPyCJDJ.js";import{b as m}from"./bem-registry-D1KgKnyz.js";import{c as p}from"./clsx-COFh-Vc8.js";import{c as k}from"./dev.utils-BwYCy1rP.js";import{d as f,a as b}from"./element-interaction-sGYdEpmv.js";import"./component-D9NreIlK.js";import"./component-EDDTMC-J.js";import"./aria-labelledby-DqJY_4G-.js";import"./events-CRHxtwup.js";import"./disabled-BZXlWAgK.js";import"./component-D4-NVnsT.js";import"./validators-CTjxOidB.js";import"./component-D6_K50vT.js";import"./label-with-expert-slot-BbZ9nx0l.js";import"./label-hints-CLMiVvfk.js";import"./component-B3OziaRC.js";import"./component-Ccv2lqNq.js";import"./block-bem-D3ixJyOY.js";import"./id-BI0ZuK17.js";import"./base-web-component-CC_gpyDb.js";import"./item-B0oQTeju.js";import"./controller-CZcQ57AP.js";import"./component-names-Dhbtt0mX.js";import"./behavior-CKU2tmCj.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./label-lang-segment-iVD9hoM3.js";import"./resolve-props-DTXKtzir.js";import"./behavior-ewHvUWVk.js";import"./bootstrap-tgQ2nQQI.js";import"./i18n-4J6U3ZDc.js";import"./item-Boe3t0Dm.js";import"./component-By8ggItU.js";import"./i18n-ePBcLlCr.js";import"./component-Cmi6iGfA.js";import"./Heading-GZb1f2pZ.js";import"./suggestions-D0u80DtA.js";import"./placeholder-UxmBJ4Vl.js";import"./read-only-DytZ5HZJ.js";import"./required-BriHhuO4.js";import"./smart-button-DM5g48-g.js";import"./value-string-CxDz7dhD.js";import"./access-and-short-key-ijzCZfHm.js";import"./behavior-CsNDRS2z.js";import"./element-focus-BIRmGg5W.js";const u={required:[...h.required],optional:[...h.optional,s,c]},g=m.forBlock("kol-input-email"),_=class extends d{constructor(o){super(),new.target===_&&t(this,o),this.id=k("input-email"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.propsConfig=u,this._accessKey=void 0,this._ariaDetails=void 0,this._autoComplete="off",this._hasCounter=!1,this._maxLengthBehavior="hard",this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._infoPopover=void 0,this._maxLength=void 0,this._msg=void 0,this._multiple=!1,this._name=void 0,this._on=void 0,this._pattern=void 0,this._placeholder=void 0,this._readOnly=!1,this._required=!1,this._shortKey=void 0,this._smartButton=void 0,this._suggestions=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this._variant=void 0,this.initFormAssociation("email",this._name)}watchAccessKey(t){this.applyAccessKey(t)}watchAriaDetails(t){this.applyAriaDetails(t)}watchAutoComplete(t){this.applyAutoComplete(t)}watchHasCounter(t){this.applyHasCounter(t)}watchMaxLengthBehavior(t){this.applyMaxLengthBehavior(t)}watchDisabled(t){this.applyDisabled(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchIcons(t){this.applyIcons(t)}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMaxLength(t){this.applyMaxLength(t)}watchMsg(t){this.applyMsg(t)}watchMultiple(t){s.apply(t,(t=>this.setRenderProp("multiple",t)))}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchPattern(t){this.applyPattern(t)}watchPlaceholder(t){this.applyPlaceholder(t)}watchReadOnly(t){this.applyReadOnly(t)}watchRequired(t){this.applyRequired(t)}watchShortKey(t){this.applyShortKey(t)}watchSmartButton(t){this.applySmartButton(t)}watchSuggestions(t){c.apply(t,(t=>this.setRenderProp("suggestions",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchValue(t){this.applyValue(t)}watchVariant(t){this.applyVariant(t)}getValue(){var t;return Promise.resolve(null===(t=this.ctaRef.el)||void 0===t?void 0:t.value)}focus(t){return Promise.resolve()}async click(){return Promise.resolve()}componentWillLoad(){this.unsetRenderProp("smartButton"),this._touched=!0===this._touched,this.watchAriaDetails(this._ariaDetails),this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccessKey(this._accessKey),this.watchMsg(this._msg),this.watchDisabled(this._disabled),this.watchHideMsg(this._hideMsg),this.watchHideLabel(this._hideLabel),this.watchHint(this._hint),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchShortKey(this._shortKey),this.watchSmartButton(this._smartButton),this.watchOn(this._on),this.watchTooltipAlign(this._tooltipAlign),this.watchVariant(this._variant),this.watchIcons(this._icons),this.watchAutoComplete(this._autoComplete),this.watchHasCounter(this._hasCounter),this.watchMaxLengthBehavior(this._maxLengthBehavior),this.initMaxLength(this._maxLength),this.watchPattern(this._pattern),this.watchPlaceholder(this._placeholder),this.watchReadOnly(this._readOnly),this.watchRequired(this._required),this.watchSuggestions(this._suggestions),this.watchMultiple(this._multiple),this.initValue(this._value),this.initHasValue()}componentDidLoad(){this.didLoadTextInput()}componentDidUpdate(){this.didUpdateTextInput()}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyTextInput()}render(){const{startAdornment:t,endAdornment:i}=this.getTextInputAdornments();return o(e,{key:"08ae831267744fd7c98322a547fbad1077d3b1f8"},o(l,Object.assign({key:"743984d398c11dba015d5b8c1427f0d90ae180ef"},this.getTextFormFieldProps(p(g(),"email"))),o(r,{key:"ad202484cc40752e0def2e081af9683d39556ef7",disabled:this.getRenderProp("disabled"),msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:t,endAdornment:i},o(a,Object.assign({key:"22bea72e7b9dc3a58a68a9a5e60806e1fa16c306"},this.getTextInputProps({multiple:this.getRenderProp("multiple"),suggestions:this.getRenderProp("suggestions")},{type:"email"}))))))}get host(){return i(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}]}}};n([f("ctaRef")],_.prototype,"focus",null),n([b("ctaRef")],_.prototype,"click",null),_.style={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); } }'};export{_ as kol_input_email}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h as t,r as o,H as e,g as i}from"./index-Dulj0jro.js";import{_ as n}from"./tslib.es6-QNbPBOk5.js";import{v as l}from"./access-and-short-key-ijzCZfHm.js";import{t as a}from"./i18n-ePBcLlCr.js";import{B as r}from"./component-B16Fbp3W.js";import{c as s}from"./item-8RKFpmbd.js";import{h as c,g as h,I as d}from"./input-container-DmtMTcjB.js";import{f as p,B as m,F as k}from"./api-DGiFM9p0.js";import{I as f}from"./input-C0Li7DsE.js";import{c as b,b as u}from"./props-from-config-ytxYrJUY.js";import{a as _,d as g,v as y}from"./component-C79oAu7a.js";import"./common-BdSzSIXg.js";import{m as v}from"./multiple--ay1C1n3.js";import{r as w}from"./required-BriHhuO4.js";import{s as x}from"./smart-button-DM5g48-g.js";import{b as j}from"./bem-registry-DQUGxdIS.js";import{c as B}from"./dev.utils-DDWOHUcg.js";import{d as z,a as D,c as C}from"./element-interaction-sGYdEpmv.js";import"./i18n-4J6U3ZDc.js";import"./clsx-COFh-Vc8.js";import"./component-B05zRrM0.js";import"./block-bem-BGIVcYJu.js";import"./component-oUQcgxDj.js";import"./component-Clz6b6ho.js";import"./component-W1KZI4h4.js";import"./disabled-BZXlWAgK.js";import"./id-BI0ZuK17.js";import"./label-with-expert-slot-BbZ9nx0l.js";import"./validators-CTjxOidB.js";import"./label-hints-CLMiVvfk.js";import"./controller-CZcQ57AP.js";import"./component-names-Dhbtt0mX.js";import"./events-CRHxtwup.js";import"./base-web-component-CC_gpyDb.js";import"./behavior-Bb7JYoUn.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./label-lang-segment-iVD9hoM3.js";import"./resolve-props-Bj6IaybL.js";import"./aria-labelledby-CLehu03h.js";import"./behavior-CkPQGfgo.js";import"./bootstrap-tgQ2nQQI.js";import"./item-DHZGDrAn.js";import"./component-Bc2pdOk1.js";import"./component-BI8jDgBz.js";import"./Heading-C_CwXDMp.js";import"./element-focus-BIRmGg5W.js";const T=b("accept",void 0,u);function I(t){if(null==t?void 0:t.length)return Array.from(t).map((t=>t.name)).join(", ")}const K={required:[...p.required],optional:[...p.optional,T,_,c,v,w,g,x,y]},A=j.forBlock("kol-input-container"),H=A("button"),L=({filename:o,hasFile:e})=>t("span",{class:A("filename",{"has-file":e})},o),M=class extends m{constructor(t){super(),new.target===M&&o(this,t),this.id=B("input-file"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.translateFilenameText=a("kol-filename-text"),this.filename=this.translateFilenameText,this.hasFileSelected=!1,this.isDragover=!1,this.ctaRef=C(),this.translateDataBrowseText=a("kol-data-browse-text"),this.browseButton=s((()=>this.host)),this.propsConfig=K,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 o;if(this.ctaRef.el instanceof HTMLInputElement&&"file"===this.ctaRef.el.type){const e=this.ctaRef.el.files;this.hasFileSelected=!!(null==e?void 0:e.length),this.filename=null!==(o=I(e))&&void 0!==o?o:this.translateFilenameText,this.handleChange(t,e),this.formAssociation.setFormAssociatedValue(e)}},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 o,e;if(!this.isDisabled()&&(t.preventDefault(),this.ctaRef.el&&(this.isDragover=!1,null===(o=t.dataTransfer)||void 0===o?void 0:o.files.length))){const o=t.dataTransfer.files;this.ctaRef.el.files=o,this.filename=null!==(e=I(o))&&void 0!==e?e:this.translateFilenameText,this.formAssociation.setFormAssociatedValue(o),this.handleChange(t,o),this.handleInput(t,o)}},this.initFormAssociation("file",this._name)}watchAccept(t){T.apply(t,(t=>this.setRenderProp("accept",t)))}watchAccessKey(t){_.apply(t,(t=>this.setRenderProp("accessKey",t))),l(t,this._shortKey)}watchAriaDetails(t){this.applyAriaDetails(t)}watchDisabled(t){this.applyDisabled(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchIcons(t){c.apply(t,(t=>this.setRenderProp("icons",t)))}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMsg(t){this.applyMsg(t)}watchMultiple(t){v.apply(t,(t=>this.setRenderProp("multiple",t)))}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchRequired(t){w.apply(t,(t=>this.setRenderProp("required",t)))}watchShortKey(t){g.apply(t,(t=>this.setRenderProp("shortKey",t))),l(this._accessKey,t)}watchSmartButton(t){null==t?this.unsetRenderProp("smartButton"):x.apply(t,(t=>this.setRenderProp("smartButton",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchVariant(t){y.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){var t;return Promise.resolve(null===(t=this.ctaRef.el)||void 0===t?void 0:t.files)}focus(t){return Promise.resolve()}async click(){return Promise.resolve()}reset(){return this.formAssociation.setFormAssociatedValue(""),this.filename=this.translateFilenameText,this.hasFileSelected=!1,this.ctaRef.el&&(this.ctaRef.el.value=""),Promise.resolve()}componentWillLoad(){this.unsetRenderProp("smartButton"),this._touched=!0===this._touched,this.watchAriaDetails(this._ariaDetails),this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccept(this._accept),this.watchAccessKey(this._accessKey),this.watchMsg(this._msg),this.watchDisabled(this._disabled),this.watchHideMsg(this._hideMsg),this.watchHideLabel(this._hideLabel),this.watchHint(this._hint),this.watchIcons(this._icons),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchMultiple(this._multiple),this.watchOn(this._on),this.watchRequired(this._required),this.watchShortKey(this._shortKey),this.watchSmartButton(this._smartButton),this.watchTooltipAlign(this._tooltipAlign),this.watchVariant(this._variant)}componentDidRender(){this.browseButton.syncListeners(),this.syncFormField()}disconnectedCallback(){this.browseButton.destroy(),this.destroyFormField()}getInputProps(){const t=this.getRenderProp("accessKey"),o=this.getRenderProp("shortKey"),{ariaDescribedBy:e,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")}),o?{"aria-keyshortcuts":o}:{}),{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:e,"aria-invalid":i?"true":void 0})}render(){const o=this.getRenderProp("disabled"),{startAdornment:i,endAdornment:n}=h({icons:this.getRenderProp("icons"),smartButton:this.getSmartButtonFcProps(this.getRenderProp("smartButton"),o)});return t(e,{key:"25a212036a6a5c270c5546b3c9b8d18f3760ba02"},t(k,Object.assign({key:"c1f046691cb2b689c1e18ff9067519b55e4d86c0"},this.getFormFieldProps({class:"kol-input-file file",accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,variant:this.getRenderProp("variant"),required:this.getRenderProp("required")})),t(d,{key:"1cab09cc2d86b18763c2640b775dd623f16fbfe7",class:{"kol-input-container--is-dragover":this.isDragover},disabled:o,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:n,onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop},t(L,{key:"7a4243b1e9f798c9d7134f14120560d3d42ef169",filename:this.filename,hasFile:this.hasFileSelected}),t(f,Object.assign({key:"829abae762f1dda9e12ea775c795dad6a209a25b"},this.getInputProps())),t(r,Object.assign({key:"86f4a5d315863b54858573d4c7e769933874e39b"},this.browseButton.getFcProps({_label:this.translateDataBrowseText,_variant:"primary",_disabled:o},{class:H}))))))}get host(){return i(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}]}}};n([z("ctaRef")],M.prototype,"focus",null),n([D("ctaRef")],M.prototype,"click",null),M.style={default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794582088003"); src: url("kolicons.eot?t=1794582088003#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794582088003") format("woff2"), url("kolicons.woff?t=1794582088003") format("woff"), url("kolicons.ttf?t=1794582088003") format("truetype"), url("kolicons.svg?t=1794582088003#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: "​"; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-form-field .kol-popover-button { display: inline; } .kol-form-field .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-form-field .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-form-field .kol-popover-button--inline { display: inline-block; } .kol-form-field .kol-popover-button--inline .kol-button, .kol-form-field .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-form-field .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-form-field .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-form-field { display: grid; } .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label { cursor: pointer; } .kol-form-field__label { display: flex; } .kol-form-field__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-form-field--required .kol-form-field__label-text:has(.kol-span__slot[hidden]) .kol-span__label::after, .kol-form-field--required:not(:has(.kol-form-field__label--legend)) .kol-form-field__input .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-input-container { background-color: transparent; display: grid; position: relative; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; grid-template-columns: 1fr; } .kol-input-container:has(> .kol-input-container__adornment--start) { grid-template-columns: auto 1fr auto; } .kol-input-container__container { position: relative; z-index: 1; } .kol-input-container__adornment { display: flex; align-items: center; } .kol-input-container__adornment .kol-icon { display: grid; place-items: center; } .kol-input { background-color: transparent; width: 100%; min-width: var(--a11y-min-size); } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } :host { display: inline-block; } .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-button__interactive-element::before { content: "​"; } .kol-button__text { flex: 1 0 100%; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; } .kol-input::-webkit-file-upload-button, .kol-input::file-selector-button { cursor: pointer; } .kol-input:disabled, .kol-input:disabled::-webkit-file-upload-button, .kol-input:disabled::file-selector-button { cursor: not-allowed; pointer-events: none; } .kol-input-container__container { display: flex; overflow: hidden; align-items: center; } .kol-input-container__button { height: auto; } .kol-input-container__filename { overflow: hidden; flex-grow: 1; white-space: nowrap; text-overflow: ellipsis; } .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) { grid-template-columns: auto 1fr; } }'};export{M as kol_input_file}
4
+ import{h as t,r as o,H as e,g as i}from"./index-DEcM8BEc.js";import{_ as n}from"./tslib.es6-QNbPBOk5.js";import{b as l}from"./bem-registry-D1KgKnyz.js";import{v as a}from"./access-and-short-key-ijzCZfHm.js";import{t as r}from"./i18n-ePBcLlCr.js";import{B as s}from"./component-B3OziaRC.js";import{c}from"./item-B0oQTeju.js";import{h,g as d,I as p}from"./input-container-BipAkWn4.js";import{f as m,B as k,F as f}from"./api-CBPlj155.js";import{I as b}from"./input-CDUCo1S5.js";import{c as u,b as _}from"./props-from-config-ytxYrJUY.js";import{a as g,d as y,v}from"./component-D4-NVnsT.js";import"./common-BdSzSIXg.js";import{m as w}from"./multiple--ay1C1n3.js";import{r as x}from"./required-BriHhuO4.js";import{s as j}from"./smart-button-DM5g48-g.js";import{c as B}from"./clsx-COFh-Vc8.js";import{c as z}from"./dev.utils-BwYCy1rP.js";import{d as D,a as C,c as T}from"./element-interaction-sGYdEpmv.js";import"./i18n-4J6U3ZDc.js";import"./component-Ccv2lqNq.js";import"./block-bem-D3ixJyOY.js";import"./component-D9NreIlK.js";import"./component-EDDTMC-J.js";import"./component-D6_K50vT.js";import"./disabled-BZXlWAgK.js";import"./id-BI0ZuK17.js";import"./label-with-expert-slot-BbZ9nx0l.js";import"./validators-CTjxOidB.js";import"./label-hints-CLMiVvfk.js";import"./controller-CZcQ57AP.js";import"./component-names-Dhbtt0mX.js";import"./events-CRHxtwup.js";import"./base-web-component-CC_gpyDb.js";import"./behavior-CKU2tmCj.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./label-lang-segment-iVD9hoM3.js";import"./resolve-props-DTXKtzir.js";import"./aria-labelledby-DqJY_4G-.js";import"./behavior-ewHvUWVk.js";import"./bootstrap-tgQ2nQQI.js";import"./item-Boe3t0Dm.js";import"./component-By8ggItU.js";import"./component-Cmi6iGfA.js";import"./Heading-GZb1f2pZ.js";import"./element-focus-BIRmGg5W.js";const K=u("accept",void 0,_);function A(t){if(null==t?void 0:t.length)return Array.from(t).map((t=>t.name)).join(", ")}const I={required:[...m.required],optional:[...m.optional,K,g,h,w,x,y,j,v]},O=l.forBlock("kol-input-container"),q=O("button"),H=({filename:o,hasFile:e})=>t("span",{class:O("filename",{"has-file":e})},o),M=l.forBlock("kol-input-file"),P=class extends k{constructor(t){super(),new.target===P&&o(this,t),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=T(),this.translateDataBrowseText=r("kol-data-browse-text"),this.browseButton=c((()=>this.host)),this.propsConfig=I,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 o;if(this.ctaRef.el instanceof HTMLInputElement&&"file"===this.ctaRef.el.type){const e=this.ctaRef.el.files;this.hasFileSelected=!!(null==e?void 0:e.length),this.filename=null!==(o=A(e))&&void 0!==o?o:this.translateFilenameText,this.handleChange(t,e),this.formAssociation.setFormAssociatedValue(e)}},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 o,e;if(!this.isDisabled()&&(t.preventDefault(),this.ctaRef.el&&(this.isDragover=!1,null===(o=t.dataTransfer)||void 0===o?void 0:o.files.length))){const o=t.dataTransfer.files;this.ctaRef.el.files=o,this.filename=null!==(e=A(o))&&void 0!==e?e:this.translateFilenameText,this.formAssociation.setFormAssociatedValue(o),this.handleChange(t,o),this.handleInput(t,o)}},this.initFormAssociation("file",this._name)}watchAccept(t){K.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){w.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"):j.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"),o=this.getRenderProp("shortKey"),{ariaDescribedBy:e,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")}),o?{"aria-keyshortcuts":o}:{}),{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:e,"aria-invalid":i?"true":void 0})}render(){const o=this.getRenderProp("disabled"),{startAdornment:i,endAdornment:n}=d({icons:this.getRenderProp("icons"),smartButton:this.getSmartButtonFcProps(this.getRenderProp("smartButton"),o)});return t(e,{key:"7cb436aa1aa1d44e3fc40a0260b9e5475007f1e4"},t(f,Object.assign({key:"ae061478a153821b070f274cc5c2cb508d290aa9"},this.getFormFieldProps({class:B(M(),"file"),accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,variant:this.getRenderProp("variant"),required:this.getRenderProp("required")})),t(p,{key:"3d636959f1b5dabb5d083774a5045834afa27678",class:{"kol-input-container--is-dragover":this.isDragover},disabled:o,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:n,onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop},t(H,{key:"37431aa753621fbe4fbc02b8f8aa11e04b8ffb8d",filename:this.filename,hasFile:this.hasFileSelected}),t(b,Object.assign({key:"e85b80d96ac69719f8539797958c61f286139d46"},this.getInputProps())),t(s,Object.assign({key:"ccf46b04f5c159a15e735d790e3e3c1d48eb75d7"},this.browseButton.getFcProps({_label:this.translateDataBrowseText,_variant:"primary",_disabled:o},{class:q}))))))}get host(){return i(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}]}}};n([D("ctaRef")],P.prototype,"focus",null),n([C("ctaRef")],P.prototype,"click",null),P.style={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; } }'};export{P as kol_input_file}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as t,h as o,H as i,g as e}from"./index-Dulj0jro.js";import{_ as n}from"./tslib.es6-QNbPBOk5.js";import{X as l}from"./common-BdSzSIXg.js";import{v as a}from"./access-and-short-key-ijzCZfHm.js";import{h as s,g as r,I as c}from"./input-container-DmtMTcjB.js";import{f as h,B as d,F as p}from"./api-DGiFM9p0.js";import{I as m}from"./input-C0Li7DsE.js";import{i as u,a as k,b,g as f,r as g,p as _}from"./number-value-Dl9-2O4r.js";import{a as y,S as v}from"./suggestions-DaB3FVaz.js";import{I as w}from"./component-Clz6b6ho.js";import{a as x,d as j,v as B}from"./component-C79oAu7a.js";import"./props-from-config-ytxYrJUY.js";import{p as z}from"./placeholder-UxmBJ4Vl.js";import{r as D}from"./read-only-DytZ5HZJ.js";import{r as C}from"./required-BriHhuO4.js";import{s as O}from"./smart-button-DM5g48-g.js";import{s as I}from"./step-BcyhvRtu.js";import{s as K}from"./suggestions-LO267l8F.js";import{c as S}from"./clsx-COFh-Vc8.js";import{c as T}from"./dev.utils-DDWOHUcg.js";import{d as A,a as V,c as M}from"./element-interaction-sGYdEpmv.js";import{s as H}from"./controller-CZcQ57AP.js";import"./component-B16Fbp3W.js";import"./bem-registry-DQUGxdIS.js";import"./component-B05zRrM0.js";import"./block-bem-BGIVcYJu.js";import"./component-oUQcgxDj.js";import"./component-W1KZI4h4.js";import"./disabled-BZXlWAgK.js";import"./id-BI0ZuK17.js";import"./label-with-expert-slot-BbZ9nx0l.js";import"./validators-CTjxOidB.js";import"./label-hints-CLMiVvfk.js";import"./aria-labelledby-CLehu03h.js";import"./events-CRHxtwup.js";import"./behavior-CkPQGfgo.js";import"./bootstrap-tgQ2nQQI.js";import"./component-names-Dhbtt0mX.js";import"./i18n-4J6U3ZDc.js";import"./behavior-Bb7JYoUn.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./label-lang-segment-iVD9hoM3.js";import"./base-web-component-CC_gpyDb.js";import"./item-8RKFpmbd.js";import"./resolve-props-Bj6IaybL.js";import"./item-DHZGDrAn.js";import"./component-Bc2pdOk1.js";import"./i18n-ePBcLlCr.js";import"./component-BI8jDgBz.js";import"./Heading-C_CwXDMp.js";import"./element-focus-BIRmGg5W.js";const G={required:[...h.required],optional:[...h.optional,x,y,s,u,k,b,z,D,C,j,O,I,K,B]},L="kol-input-number__step-button",P=t=>{var o;return!0===(null===(o=null==t?void 0:t.classList)||void 0===o?void 0:o.contains(L))},q=class extends d{constructor(o){super(),new.target===q&&t(this,o),this.id=T("input-number"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=M(),this.valueType="null",this.hasValue=!1,this.propsConfig=G,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=Boolean(o)},this.handleNumberFocus=t=>{P(t.relatedTarget)||this.handleFocus(t)},this.handleNumberBlur=t=>{P(t.relatedTarget)||this.handleBlur(t)},this.handleNumberKeyDown=t=>{this.handleKeyDown(t),H(t,{form:this.host,ref:this.ctaRef.el})},this.handleStepDown=t=>{this.step(t,"down")},this.handleStepUp=t=>{this.step(t,"up")},this.initFormAssociation("number",this._name)}watchAccessKey(t){x.apply(t,(t=>this.setRenderProp("accessKey",t))),a(t,this._shortKey)}watchAriaDetails(t){this.applyAriaDetails(t)}watchAutoComplete(t){y.apply(t,(t=>this.setRenderProp("autoComplete",t)))}watchDisabled(t){this.applyDisabled(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchIcons(t){s.apply(t,(t=>this.setRenderProp("icons",t)))}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMax(t){u.apply(t,(t=>this.setRenderProp("max",t)))}watchMin(t){k.apply(t,(t=>this.setRenderProp("min",t)))}watchMsg(t){this.applyMsg(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchPlaceholder(t){z.apply(t,(t=>this.setRenderProp("placeholder",t)))}watchReadOnly(t){D.apply(t,(t=>this.setRenderProp("readOnly",t)))}watchRequired(t){C.apply(t,(t=>this.setRenderProp("required",t)))}watchShortKey(t){j.apply(t,(t=>this.setRenderProp("shortKey",t))),a(this._accessKey,t)}watchSmartButton(t){null==t?this.unsetRenderProp("smartButton"):O.apply(t,(t=>this.setRenderProp("smartButton",t)))}watchSuggestions(t){K.apply(t,(t=>this.setRenderProp("suggestions",t)))}watchStep(t){I.apply(t,(t=>this.setRenderProp("step",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchValue(t){var o;b.apply(t,(t=>this.setRenderProp("value",t))),this.formAssociation.setFormAssociatedValue(null!==(o=this.getRenderProp("value"))&&void 0!==o?o:null),null!=t&&(this.valueType=f(t))}watchVariant(t){B.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){return Promise.resolve(this.remapValue(this.getRenderProp("value")))}focus(t){return Promise.resolve()}async click(){return Promise.resolve()}componentWillLoad(){this.unsetRenderProp("smartButton"),this._touched=!0===this._touched,this.watchAriaDetails(this._ariaDetails),this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccessKey(this._accessKey),this.watchMsg(this._msg),this.watchDisabled(this._disabled),this.watchHideMsg(this._hideMsg),this.watchHideLabel(this._hideLabel),this.watchHint(this._hint),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchShortKey(this._shortKey),this.watchSmartButton(this._smartButton),this.watchOn(this._on),this.watchTooltipAlign(this._tooltipAlign),this.watchVariant(this._variant),this.watchIcons(this._icons),this.watchAutoComplete(this._autoComplete),this.watchMax(this._max),this.watchMin(this._min),this.watchSuggestions(this._suggestions),this.watchPlaceholder(this._placeholder),this.watchReadOnly(this._readOnly),this.watchRequired(this._required),this.watchStep(this._step),this.watchValue(this._value),this.hasValue=Boolean(this.getRenderProp("value"))}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField()}remapValue(t){return g(t,this.valueType)}readInputValue(){var t;return this.remapValue(_(null===(t=this.ctaRef.el)||void 0===t?void 0:t.value))}step(t,o){var i,e,n;"up"===o?null===(i=this.ctaRef.el)||void 0===i||i.stepUp():null===(e=this.ctaRef.el)||void 0===e||e.stepDown(),this._value=this.readInputValue(),this.handleInput(t,this._value),this.handleChange(t,this._value),this.hasValue=Boolean(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:`${L} ${L}-${t} kol-input-container__smart-button`,onClick:"up"===t?this.handleStepUp:this.handleStepDown,disabled:this._disabled||this._readOnly},o(w,{icons:"up"===t?"kolicon-plus":"kolicon-minus",label:""}))}getInputProps(){var t,i,e,n;const l=this.id,a=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:l,hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),disabled:this.getRenderProp("disabled"),name:this.getRenderProp("name")||void 0},a?{accessKey:a}:{}),{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!==(i=this.getRenderProp("min"))&&void 0!==i?i:null,max:null!==(e=this.getRenderProp("max"))&&void 0!==e?e: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:l,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:e,endAdornment:n}=r({icons:this.getRenderProp("icons"),smartButton:this.getSmartButtonFcProps(this.getRenderProp("smartButton"),t),startAdornment:this.renderStepButton("down"),endAdornment:this.renderStepButton("up")});return o(i,{key:"72ac3294746fee359a1bc104ff67d98b12863910"},o(p,Object.assign({key:"56e069564f2166347361d4d5519bfd768201ea5d"},this.getFormFieldProps({class:S("kol-input-number","number",{"has-value":this.hasValue}),accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,variant:this.getRenderProp("variant"),required:this.getRenderProp("required"),readOnly:this.getRenderProp("readOnly")})),o(c,{key:"a81cbe93dccd157800796e2c4dd3c9555058759c",disabled:t,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:e,endAdornment:n},o(m,Object.assign({key:"bdcdc00739d790d7f4f0d40fd1d0d66561afbcd4"},this.getInputProps())))))}get host(){return e(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}]}}};n([A("ctaRef")],q.prototype,"focus",null),n([V("ctaRef")],q.prototype,"click",null),q.style={default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794582088003"); src: url("kolicons.eot?t=1794582088003#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794582088003") format("woff2"), url("kolicons.woff?t=1794582088003") format("woff"), url("kolicons.ttf?t=1794582088003") format("truetype"), url("kolicons.svg?t=1794582088003#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-button { background-color: transparent; display: inline-block; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); margin: 0; padding: 0; text-align: center; } .kol-button__interactive-element { border-style: none; display: block; border-width: medium; font-weight: inherit; font-style: inherit; text-align: inherit; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: "​"; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-form-field .kol-popover-button { display: inline; } .kol-form-field .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-form-field .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-form-field .kol-popover-button--inline { display: inline-block; } .kol-form-field .kol-popover-button--inline .kol-button, .kol-form-field .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-form-field .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-form-field .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-form-field { display: grid; } .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label { cursor: pointer; } .kol-form-field__label { display: flex; } .kol-form-field__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-form-field--required .kol-form-field__label-text:has(.kol-span__slot[hidden]) .kol-span__label::after, .kol-form-field--required:not(:has(.kol-form-field__label--legend)) .kol-form-field__input .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-input-container { background-color: transparent; display: grid; position: relative; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; grid-template-columns: 1fr; } .kol-input-container:has(> .kol-input-container__adornment--start) { grid-template-columns: auto 1fr auto; } .kol-input-container__container { position: relative; z-index: 1; } .kol-input-container__adornment { display: flex; align-items: center; } .kol-input-container__adornment .kol-icon { display: grid; place-items: center; } .kol-input { background-color: transparent; width: 100%; min-width: var(--a11y-min-size); } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-input-number input { appearance: textfield; text-align: right; } .kol-input-number input::-webkit-inner-spin-button { display: none; } }'};export{q as kol_input_number}
4
+ import{r as t,h as o,H as e,g as i}from"./index-DEcM8BEc.js";import{_ as n}from"./tslib.es6-QNbPBOk5.js";import{X as l}from"./common-BdSzSIXg.js";import{b as a}from"./bem-registry-D1KgKnyz.js";import{v as s}from"./access-and-short-key-ijzCZfHm.js";import{h as r,g as c,I as h}from"./input-container-BipAkWn4.js";import{f as d,B as m,F as p}from"./api-CBPlj155.js";import{I as u}from"./input-CDUCo1S5.js";import{i as k,a as b,b as f,g,r as _,p as y}from"./number-value-Dl9-2O4r.js";import{a as v,S as w}from"./suggestions-D0u80DtA.js";import{I as x}from"./component-EDDTMC-J.js";import{a as j,d as B,v as C}from"./component-D4-NVnsT.js";import"./props-from-config-ytxYrJUY.js";import{p as z}from"./placeholder-UxmBJ4Vl.js";import{r as D}from"./read-only-DytZ5HZJ.js";import{r as O}from"./required-BriHhuO4.js";import{s as K}from"./smart-button-DM5g48-g.js";import{s as T}from"./step-BcyhvRtu.js";import{s as A}from"./suggestions-LO267l8F.js";import{c as S}from"./clsx-COFh-Vc8.js";import{c as I}from"./dev.utils-BwYCy1rP.js";import{d as V,a as q,c as P}from"./element-interaction-sGYdEpmv.js";import{s as H}from"./controller-CZcQ57AP.js";import"./component-B3OziaRC.js";import"./component-Ccv2lqNq.js";import"./block-bem-D3ixJyOY.js";import"./component-D9NreIlK.js";import"./component-D6_K50vT.js";import"./disabled-BZXlWAgK.js";import"./id-BI0ZuK17.js";import"./label-with-expert-slot-BbZ9nx0l.js";import"./validators-CTjxOidB.js";import"./label-hints-CLMiVvfk.js";import"./aria-labelledby-DqJY_4G-.js";import"./events-CRHxtwup.js";import"./base-web-component-CC_gpyDb.js";import"./item-B0oQTeju.js";import"./behavior-CKU2tmCj.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./label-lang-segment-iVD9hoM3.js";import"./resolve-props-DTXKtzir.js";import"./behavior-ewHvUWVk.js";import"./bootstrap-tgQ2nQQI.js";import"./component-names-Dhbtt0mX.js";import"./i18n-4J6U3ZDc.js";import"./item-Boe3t0Dm.js";import"./component-By8ggItU.js";import"./i18n-ePBcLlCr.js";import"./component-Cmi6iGfA.js";import"./Heading-GZb1f2pZ.js";import"./element-focus-BIRmGg5W.js";const M={required:[...d.required],optional:[...d.optional,j,v,r,k,b,f,z,D,O,B,K,T,A,C]},G=a.forBlock("kol-input-number"),L=G("step-button"),R=t=>{var o;return!0===(null===(o=null==t?void 0:t.classList)||void 0===o?void 0:o.contains(L))},Z=class extends m{constructor(o){super(),new.target===Z&&t(this,o),this.id=I("input-number"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=P(),this.valueType="null",this.hasValue=!1,this.propsConfig=M,this._accessKey=void 0,this._ariaDetails=void 0,this._autoComplete="off",this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._infoPopover=void 0,this._max=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=Boolean(o)},this.handleNumberFocus=t=>{R(t.relatedTarget)||this.handleFocus(t)},this.handleNumberBlur=t=>{R(t.relatedTarget)||this.handleBlur(t)},this.handleNumberKeyDown=t=>{this.handleKeyDown(t),H(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){v.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){z.apply(t,(t=>this.setRenderProp("placeholder",t)))}watchReadOnly(t){D.apply(t,(t=>this.setRenderProp("readOnly",t)))}watchRequired(t){O.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"):K.apply(t,(t=>this.setRenderProp("smartButton",t)))}watchSuggestions(t){A.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=g(t))}watchVariant(t){C.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=Boolean(this.getRenderProp("value"))}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField()}remapValue(t){return _(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=Boolean(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:`${L} ${L}-${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 l=this.id,a=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:l,hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),disabled:this.getRenderProp("disabled"),name:this.getRenderProp("name")||void 0},a?{accessKey:a}:{}),{value:null!==(t=this.getRenderProp("value"))&&void 0!==t?t:null,required:this.getRenderProp("required")}),void 0!==s?{placeholder:s}:{}),{autoComplete:this.getRenderProp("autoComplete"),readonly:this.getRenderProp("readOnly"),min:null!==(e=this.getRenderProp("min"))&&void 0!==e?e:null,max:null!==(i=this.getRenderProp("max"))&&void 0!==i?i:null,step:null!==(n=this.getRenderProp("step"))&&void 0!==n?n:null,touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")}),r?{"aria-keyshortcuts":r}:{}),c.length>0?{suggestions:o(w,{id:l,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(p,Object.assign({key:"8f5fa79cbf292b1630e1b7e03f768defab06bf77"},this.getFormFieldProps({class:S(G(),"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(u,Object.assign({key:"525ed0013a2d8cb020f2d99198a0989609382bae"},this.getInputProps())))))}get host(){return i(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}]}}};n([V("ctaRef")],Z.prototype,"focus",null),n([q("ctaRef")],Z.prototype,"click",null),Z.style={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; } }'};export{Z as kol_input_number}