@public-ui/components 4.6.0-rc.1 → 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 (693) 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-DpKpW9_U.js → Heading-DqZXie2T.js} +1 -1
  8. package/dist/cjs/{api-DSnFV5pX.js → api-Cc1hT-oO.js} +25 -24
  9. package/dist/cjs/{app-globals-DWk29tH4.js → app-globals-DtXiFJRj.js} +3 -3
  10. package/dist/cjs/{aria-labelledby-BRMgWRVp.js → aria-labelledby-By2dgbCn.js} +0 -13
  11. package/dist/cjs/{base-uTtcb6OV.js → base-B-wbGF-X.js} +30 -36
  12. package/dist/cjs/{base-DB-5MCfF.js → base-BKsPSdXS.js} +12 -12
  13. package/dist/cjs/{base-Cdk10fDz.js → base-BjiXfuju.js} +10 -10
  14. package/dist/cjs/{base-B1L6tTOu.js → base-CoMrpiHg.js} +11 -11
  15. package/dist/cjs/{base-web-component-BdHm5Oq9.js → base-web-component-BXtl3Nmq.js} +10 -10
  16. package/dist/cjs/{base-web-component-CyF5QpIH.js → base-web-component-DApRK7Vs.js} +15 -15
  17. package/dist/cjs/{base-web-component-B6mwGD0m.js → base-web-component-DXCN-Sp3.js} +1 -1
  18. package/dist/cjs/{behavior-D5F_9gEC.js → behavior-DIv2ciyM.js} +5 -5
  19. package/dist/cjs/{behavior-C3w_8ifK.js → behavior-DtHCmCCv.js} +5 -5
  20. package/dist/cjs/{behavior-BnUihLzw.js → behavior-GG5TOrTV.js} +6 -13
  21. package/dist/cjs/{bem-registry-ZJZujhCi.js → bem-registry-h_moyLBn.js} +40 -1
  22. package/dist/cjs/{block-bem-CMvCkLkl.js → block-bem-BVBM34Tu.js} +1 -1
  23. package/dist/cjs/{bootstrap-C4lWLUW9.js → bootstrap-HU5YhM_w.js} +2 -2
  24. package/dist/cjs/{color-BW4t1Cif.js → color-C3xsA3Uk.js} +3 -3
  25. package/dist/cjs/{common-C-hcIfzh.js → common-CzGJx0nT.js} +31 -30
  26. package/dist/cjs/{component-BXz1XtoE.js → component-BE_fK-Xu.js} +15 -15
  27. package/dist/cjs/{component-DsWMXDya.js → component-BOI4FdZE.js} +7 -7
  28. package/dist/cjs/{component-CWEYNtAH.js → component-C9B-yJ93.js} +5 -5
  29. package/dist/cjs/{component-C46QQbMS.js → component-CNNGo5gU.js} +11 -11
  30. package/dist/cjs/{component-_p4OHWcc.js → component-CVLJJvvd.js} +14 -14
  31. package/dist/cjs/{component-CrW05zUq.js → component-Cnc2NyzE.js} +5 -5
  32. package/dist/cjs/{component-N-3XFtFS.js → component-CsnTf_45.js} +8 -8
  33. package/dist/cjs/{component-DfChjUi8.js → component-CxwSVBBv.js} +10 -10
  34. package/dist/cjs/{component-B2l8N5t_.js → component-D0uxhuF3.js} +4 -4
  35. package/dist/cjs/{component-BE_gS80r.js → component-DNQW0lG8.js} +2 -2
  36. package/dist/cjs/{component-eYoUHQ64.js → component-DfGgpwuP.js} +2 -2
  37. package/dist/cjs/{component-BwrQID5A.js → component-DlyhBQIa.js} +4 -4
  38. package/dist/cjs/{contrast-4mAdSLs0.js → contrast-6Nku3lih.js} +2 -2
  39. package/dist/cjs/{controller-DcinOUmN.js → controller-D66Eq44x.js} +1 -1
  40. package/dist/cjs/{dev.utils-Bxq7b-n1.js → dev.utils-DTQy7QrG.js} +2 -2
  41. package/dist/cjs/{devtools-BLvPSoCH.js → devtools-BAChPN0l.js} +3 -3
  42. package/dist/cjs/{disabled-jYcvcwjv.js → disabled-CilmJ-p-.js} +1 -1
  43. package/dist/cjs/{field-control-D9t3USqP.js → field-control-Bxj6Xuu8.js} +8 -8
  44. package/dist/cjs/{group-CFBPF3hG.js → group-BUdQbdkp.js} +7 -7
  45. package/dist/cjs/{has-closer-CvNa5gqv.js → has-closer-iSIrv52u.js} +1 -1
  46. package/dist/cjs/{href-BBhiVyPb.js → href-xojo1zy_.js} +1 -1
  47. package/dist/cjs/{i18n-BnOWw1MQ.js → i18n-D7UmRsV8.js} +2 -2
  48. package/dist/cjs/{i18n-BSWM5nea.js → i18n-DgHI4-xa.js} +2 -0
  49. package/dist/cjs/{id-D1VZsLkg.js → id-DP-w6i4q.js} +1 -1
  50. package/dist/cjs/{index-CNhjOFBg.js → index-BaB_2Z5W.js} +23 -12
  51. package/dist/cjs/index.cjs.js +4 -4
  52. package/dist/cjs/{input-C3F73RZW.js → input-CtqTozTO.js} +5 -5
  53. package/dist/cjs/{input-container-B5-_NcRy.js → input-container-BcwbGU2R.js} +8 -8
  54. package/dist/cjs/{item-nAB1wPvv.js → item-BLrLbhAD.js} +12 -12
  55. package/dist/cjs/{item-dlea1NHr.js → item-BXt0-A5j.js} +30 -15
  56. package/dist/cjs/{item-CfCrfeQL.js → item-BYKMN41a.js} +5 -5
  57. package/dist/cjs/{item-DvddzW3M.js → item-DJ-XUS77.js} +6 -6
  58. package/dist/cjs/kol-abbr.cjs.entry.js +13 -12
  59. package/dist/cjs/kol-accordion.cjs.entry.js +21 -20
  60. package/dist/cjs/kol-alert.cjs.entry.js +32 -30
  61. package/dist/cjs/kol-avatar.cjs.entry.js +17 -16
  62. package/dist/cjs/kol-badge.cjs.entry.js +30 -29
  63. package/dist/cjs/kol-breadcrumb.cjs.entry.js +32 -31
  64. package/dist/cjs/kol-button-link.cjs.entry.js +29 -28
  65. package/dist/cjs/kol-button.cjs.entry.js +29 -28
  66. package/dist/cjs/kol-card.cjs.entry.js +34 -33
  67. package/dist/cjs/kol-combobox.cjs.entry.js +47 -46
  68. package/dist/cjs/kol-details.cjs.entry.js +21 -20
  69. package/dist/cjs/kol-dialog.cjs.entry.js +37 -36
  70. package/dist/cjs/kol-drawer.cjs.entry.js +36 -35
  71. package/dist/cjs/kol-form.cjs.entry.js +30 -29
  72. package/dist/cjs/kol-heading.cjs.entry.js +15 -14
  73. package/dist/cjs/kol-icon.cjs.entry.js +20 -16
  74. package/dist/cjs/kol-image.cjs.entry.js +10 -9
  75. package/dist/cjs/kol-input-checkbox.cjs.entry.js +54 -52
  76. package/dist/cjs/kol-input-color.cjs.entry.js +47 -45
  77. package/dist/cjs/kol-input-date.cjs.entry.js +49 -47
  78. package/dist/cjs/kol-input-email.cjs.entry.js +51 -49
  79. package/dist/cjs/kol-input-file.cjs.entry.js +46 -44
  80. package/dist/cjs/kol-input-number.cjs.entry.js +52 -50
  81. package/dist/cjs/kol-input-password.cjs.entry.js +50 -48
  82. package/dist/cjs/kol-input-radio.cjs.entry.js +42 -41
  83. package/dist/cjs/kol-input-range.cjs.entry.js +45 -44
  84. package/dist/cjs/kol-input-text.cjs.entry.js +51 -49
  85. package/dist/cjs/kol-kolibri.cjs.entry.js +13 -12
  86. package/dist/cjs/kol-link-button.cjs.entry.js +30 -29
  87. package/dist/cjs/kol-link.cjs.entry.js +30 -29
  88. package/dist/cjs/kol-meter.cjs.entry.js +20 -22
  89. package/dist/cjs/kol-modal.cjs.entry.js +37 -36
  90. package/dist/cjs/kol-nav.cjs.entry.js +38 -37
  91. package/dist/cjs/kol-pagination.cjs.entry.js +46 -45
  92. package/dist/cjs/kol-popover-button.cjs.entry.js +30 -29
  93. package/dist/cjs/kol-progress.cjs.entry.js +21 -17
  94. package/dist/cjs/kol-quote.cjs.entry.js +12 -11
  95. package/dist/cjs/kol-select.cjs.entry.js +42 -41
  96. package/dist/cjs/kol-single-select.cjs.entry.js +54 -48
  97. package/dist/cjs/kol-skip-nav.cjs.entry.js +32 -31
  98. package/dist/cjs/kol-spin.cjs.entry.js +17 -16
  99. package/dist/cjs/kol-split-button.cjs.entry.js +33 -32
  100. package/dist/cjs/kol-table-stateful.cjs.entry.js +59 -59
  101. package/dist/cjs/kol-table-stateless.cjs.entry.js +47 -47
  102. package/dist/cjs/kol-tabs.cjs.entry.js +36 -38
  103. package/dist/cjs/kol-textarea.cjs.entry.js +49 -46
  104. package/dist/cjs/kol-toast-container.cjs.entry.js +25 -24
  105. package/dist/cjs/kol-toolbar.cjs.entry.js +35 -34
  106. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +15 -14
  107. package/dist/cjs/kol-tree-item.cjs.entry.js +32 -28
  108. package/dist/cjs/kol-tree.cjs.entry.js +26 -14
  109. package/dist/cjs/kol-version.cjs.entry.js +27 -26
  110. package/dist/cjs/kolibri.cjs.js +4 -4
  111. package/dist/cjs/{label-vVOiX4dC.js → label-D6c6jfqK.js} +3 -3
  112. package/dist/cjs/{label-hints-D6EBRW9T.js → label-hints-q3XenWLW.js} +2 -2
  113. package/dist/cjs/{label-lang-segment-CYlAqtUl.js → label-lang-segment-k4OY9qRY.js} +2 -2
  114. package/dist/cjs/{label-with-expert-slot-B9z4nqW1.js → label-with-expert-slot-CJoz7BLw.js} +3 -3
  115. package/dist/cjs/{level-BAiEYu4U.js → level-B6vFMm9s.js} +1 -1
  116. package/dist/cjs/{link-target-4AzB3I84.js → link-target-0qSVsAb2.js} +1 -1
  117. package/dist/cjs/{links-CPNK7VZo.js → links-Ur1e9DOK.js} +2 -2
  118. package/dist/cjs/loader.cjs.js +3 -3
  119. package/dist/cjs/{multiple-B3ZpkzWu.js → multiple-CCxtzqez.js} +1 -1
  120. package/dist/cjs/{number-value-B2yoKlvx.js → number-value-DzAHCwlP.js} +1 -1
  121. package/dist/cjs/{open-CvoX_qxD.js → open-Gxr_K7HK.js} +1 -1
  122. package/dist/cjs/{options-B2pQC9w2.js → options-BT0m0gRT.js} +2 -2
  123. package/dist/cjs/{orientation-u2cvwgBc.js → orientation-CeHU4dT8.js} +1 -1
  124. package/dist/cjs/{placeholder-C9Ngp2tQ.js → placeholder-22xUUFff.js} +1 -1
  125. package/dist/cjs/{props-from-config-BQ2SOZlz.js → props-from-config-D1qhXS9j.js} +1 -1
  126. package/dist/cjs/{read-only-DfWF-Coi.js → read-only-iHApMQEg.js} +1 -1
  127. package/dist/cjs/{required-CdXn16dq.js → required-BYdSI25I.js} +1 -1
  128. package/dist/cjs/{resolve-props-BUSerQcI.js → resolve-props-B7klWjLx.js} +8 -8
  129. package/dist/cjs/{resolve-props-ClWlRbhz.js → resolve-props-c-uwDulF.js} +7 -7
  130. package/dist/cjs/{rows-Ca5ya9tG.js → rows-C9vBSQK1.js} +1 -1
  131. package/dist/cjs/{scroll-lock-CSW_wA0P.js → scroll-lock-daUQqmx_.js} +2 -2
  132. package/dist/cjs/{smart-button-CB8qIzgQ.js → smart-button-DRMmUyQ5.js} +2 -2
  133. package/dist/cjs/{spell-check-DKRC8xbW.js → spell-check-CxgvHcGA.js} +1 -1
  134. package/dist/cjs/{src-C3NG0rLO.js → src-Bmd7gQCS.js} +1 -1
  135. package/dist/cjs/{step-CZNyTb2h.js → step-CCqgsPCX.js} +1 -1
  136. package/dist/cjs/{suggestions-BRclldK2.js → suggestions-CoUp7HmN.js} +2 -2
  137. package/dist/cjs/{suggestions-CIGYxDps.js → suggestions-D3snLGL_.js} +3 -3
  138. package/dist/cjs/test-component.cjs.entry.js +4 -3
  139. package/dist/cjs/{toggle-handler-Cy5RcTS_.js → toggle-handler-B0xib7fH.js} +10 -10
  140. package/dist/cjs/{unique-nav-labels-CIAwid5V.js → unique-nav-labels-CgxOyb6V.js} +2 -2
  141. package/dist/cjs/{unit-bsoemclF.js → unit-_oDj-vIB.js} +1 -1
  142. package/dist/cjs/{validators-DuLdbf2D.js → validators-CpCJvM4r.js} +3 -1
  143. package/dist/cjs/{value-string-DZ_FFaUt.js → value-string-CKppMGVM.js} +1 -1
  144. package/dist/cjs/{width-BklaRCqt.js → width-e7f3wHF3.js} +1 -1
  145. package/dist/collection/collection-manifest.json +1 -1
  146. package/dist/collection/components/abbr/component.js +2 -2
  147. package/dist/collection/components/accordion/component.js +2 -2
  148. package/dist/collection/components/accordion/style.css +2 -2
  149. package/dist/collection/components/alert/component.js +4 -3
  150. package/dist/collection/components/alert/style.css +2 -2
  151. package/dist/collection/components/avatar/component.js +2 -2
  152. package/dist/collection/components/badge/component.js +2 -2
  153. package/dist/collection/components/badge/style.css +2 -2
  154. package/dist/collection/components/breadcrumb/component.js +2 -2
  155. package/dist/collection/components/breadcrumb/style.css +2 -2
  156. package/dist/collection/components/button/component.js +1 -1
  157. package/dist/collection/components/button/style.css +2 -2
  158. package/dist/collection/components/button-link/component.js +1 -1
  159. package/dist/collection/components/button-link/style.css +2 -2
  160. package/dist/collection/components/card/component.js +2 -2
  161. package/dist/collection/components/card/style.css +5 -2
  162. package/dist/collection/components/combobox/component.js +4 -4
  163. package/dist/collection/components/combobox/style.css +2 -2
  164. package/dist/collection/components/details/component.js +2 -2
  165. package/dist/collection/components/details/style.css +2 -2
  166. package/dist/collection/components/dialog/component.js +2 -2
  167. package/dist/collection/components/dialog/style.css +5 -2
  168. package/dist/collection/components/drawer/component.js +2 -2
  169. package/dist/collection/components/drawer/style.css +5 -2
  170. package/dist/collection/components/form/component.js +2 -2
  171. package/dist/collection/components/form/style.css +2 -2
  172. package/dist/collection/components/heading/component.js +2 -2
  173. package/dist/collection/components/icon/component.js +5 -5
  174. package/dist/collection/components/icon/style.css +2 -2
  175. package/dist/collection/components/image/component.js +2 -2
  176. package/dist/collection/components/input-checkbox/component.js +13 -11
  177. package/dist/collection/components/input-checkbox/style.css +2 -2
  178. package/dist/collection/components/input-color/component.js +6 -4
  179. package/dist/collection/components/input-color/style.css +2 -2
  180. package/dist/collection/components/input-date/component.js +5 -3
  181. package/dist/collection/components/input-date/style.css +2 -2
  182. package/dist/collection/components/input-email/component.js +4 -1
  183. package/dist/collection/components/input-email/style.css +2 -2
  184. package/dist/collection/components/input-file/component.js +6 -3
  185. package/dist/collection/components/input-file/style.css +2 -2
  186. package/dist/collection/components/input-number/component.js +6 -4
  187. package/dist/collection/components/input-number/style.css +2 -2
  188. package/dist/collection/components/input-password/component.js +5 -2
  189. package/dist/collection/components/input-password/style.css +2 -2
  190. package/dist/collection/components/input-radio/component.js +1 -1
  191. package/dist/collection/components/input-radio/style.css +2 -2
  192. package/dist/collection/components/input-range/component.js +2 -2
  193. package/dist/collection/components/input-range/style.css +2 -2
  194. package/dist/collection/components/input-text/component.js +4 -2
  195. package/dist/collection/components/input-text/style.css +2 -2
  196. package/dist/collection/components/kolibri/component.js +2 -2
  197. package/dist/collection/components/link/component.js +2 -2
  198. package/dist/collection/components/link/style.css +2 -2
  199. package/dist/collection/components/link-button/component.js +2 -2
  200. package/dist/collection/components/link-button/style.css +2 -2
  201. package/dist/collection/components/meter/component.js +2 -2
  202. package/dist/collection/components/modal/component.js +2 -2
  203. package/dist/collection/components/modal/style.css +5 -2
  204. package/dist/collection/components/nav/component.js +2 -2
  205. package/dist/collection/components/nav/style.css +2 -2
  206. package/dist/collection/components/pagination/component.js +2 -2
  207. package/dist/collection/components/pagination/style.css +2 -2
  208. package/dist/collection/components/popover-button/component.js +1 -1
  209. package/dist/collection/components/popover-button/style.css +2 -2
  210. package/dist/collection/components/progress/component.js +6 -3
  211. package/dist/collection/components/quote/component.js +2 -2
  212. package/dist/collection/components/select/component.js +1 -1
  213. package/dist/collection/components/select/style.css +2 -2
  214. package/dist/collection/components/single-select/component.js +10 -6
  215. package/dist/collection/components/single-select/style.css +2 -2
  216. package/dist/collection/components/skip-nav/component.js +2 -2
  217. package/dist/collection/components/skip-nav/style.css +2 -2
  218. package/dist/collection/components/spin/component.js +2 -2
  219. package/dist/collection/components/split-button/component.js +1 -1
  220. package/dist/collection/components/split-button/style.css +2 -2
  221. package/dist/collection/components/table-stateful/component.js +4 -6
  222. package/dist/collection/components/table-stateful/style.css +5 -2
  223. package/dist/collection/components/table-stateless/base.js +3 -0
  224. package/dist/collection/components/table-stateless/component.js +4 -6
  225. package/dist/collection/components/table-stateless/style.css +5 -2
  226. package/dist/collection/components/tabs/component.js +2 -11
  227. package/dist/collection/components/tabs/style.css +2 -2
  228. package/dist/collection/components/textarea/component.js +5 -3
  229. package/dist/collection/components/textarea/style.css +2 -2
  230. package/dist/collection/components/toaster/shadow.js +1 -1
  231. package/dist/collection/components/toaster/style.css +2 -2
  232. package/dist/collection/components/toolbar/component.js +2 -2
  233. package/dist/collection/components/toolbar/style.css +2 -2
  234. package/dist/collection/components/tooltip/component.js +1 -1
  235. package/dist/collection/components/tree/component.js +16 -5
  236. package/dist/collection/components/tree-item/component.js +6 -3
  237. package/dist/collection/components/tree-item/style.css +2 -2
  238. package/dist/collection/components/version/component.js +2 -2
  239. package/dist/collection/components/version/style.css +2 -2
  240. package/dist/collection/internal/functional-components/form-association/api.js +2 -2
  241. package/dist/collection/internal/functional-components/form-association/behavior.js +1 -5
  242. package/dist/collection/internal/functional-components/form-field/base-web-component.js +0 -1
  243. package/dist/collection/internal/functional-components/form-field/custom-suggestions.js +1 -1
  244. package/dist/collection/internal/functional-components/icon/api.js +2 -2
  245. package/dist/collection/internal/functional-components/link/component.js +1 -1
  246. package/dist/collection/internal/functional-components/meter/component.js +3 -6
  247. package/dist/collection/internal/functional-components/pagination/component.js +2 -3
  248. package/dist/collection/internal/functional-components/pagination/item.js +15 -0
  249. package/dist/collection/internal/functional-components/progress/component.js +1 -1
  250. package/dist/collection/internal/functional-components/single-select/component.js +2 -1
  251. package/dist/collection/internal/functional-components/tabs/component.js +7 -1
  252. package/dist/collection/internal/props/helpers/validators.js +1 -0
  253. package/dist/collection/internal/props/index.js +1 -0
  254. package/dist/collection/internal/props/label-decorative.js +10 -0
  255. package/dist/collection/locales/de.js +1 -0
  256. package/dist/collection/locales/en.js +1 -0
  257. package/dist/collection/schema/bem-registry.js +39 -0
  258. package/dist/collection/schema/i18n-keys.js +29 -28
  259. package/dist/collection/schema/props/aria-details.js +1 -22
  260. package/dist/collection/schema/props/aria-labelledby.js +3 -12
  261. package/dist/collection/utils/aria-labelledby.js +0 -12
  262. package/dist/components/aria-labelledby.js +1 -1
  263. package/dist/components/base-web-component2.js +1 -1
  264. package/dist/components/base4.js +1 -1
  265. package/dist/components/behavior3.js +1 -1
  266. package/dist/components/bem-registry.js +1 -1
  267. package/dist/components/component3.js +1 -1
  268. package/dist/components/component6.js +1 -1
  269. package/dist/components/group.js +1 -1
  270. package/dist/components/i18n2.js +1 -1
  271. package/dist/components/item4.js +1 -1
  272. package/dist/components/kol-abbr.js +1 -1
  273. package/dist/components/kol-accordion.js +1 -1
  274. package/dist/components/kol-alert.js +1 -1
  275. package/dist/components/kol-avatar.js +1 -1
  276. package/dist/components/kol-badge.js +1 -1
  277. package/dist/components/kol-breadcrumb.js +1 -1
  278. package/dist/components/kol-button-link.js +1 -1
  279. package/dist/components/kol-button.js +1 -1
  280. package/dist/components/kol-card.js +1 -1
  281. package/dist/components/kol-combobox.js +1 -1
  282. package/dist/components/kol-details.js +1 -1
  283. package/dist/components/kol-dialog.js +1 -1
  284. package/dist/components/kol-drawer.js +1 -1
  285. package/dist/components/kol-form.js +1 -1
  286. package/dist/components/kol-heading.js +1 -1
  287. package/dist/components/kol-icon.js +1 -1
  288. package/dist/components/kol-image.js +1 -1
  289. package/dist/components/kol-input-checkbox.js +1 -1
  290. package/dist/components/kol-input-color.js +1 -1
  291. package/dist/components/kol-input-date.js +1 -1
  292. package/dist/components/kol-input-email.js +1 -1
  293. package/dist/components/kol-input-file.js +1 -1
  294. package/dist/components/kol-input-number.js +1 -1
  295. package/dist/components/kol-input-password.js +1 -1
  296. package/dist/components/kol-input-radio.js +1 -1
  297. package/dist/components/kol-input-range.js +1 -1
  298. package/dist/components/kol-input-text.js +1 -1
  299. package/dist/components/kol-kolibri.js +1 -1
  300. package/dist/components/kol-link-button.js +1 -1
  301. package/dist/components/kol-link.js +1 -1
  302. package/dist/components/kol-meter.js +1 -1
  303. package/dist/components/kol-modal.js +1 -1
  304. package/dist/components/kol-nav.js +1 -1
  305. package/dist/components/kol-pagination.js +1 -1
  306. package/dist/components/kol-popover-button.js +1 -1
  307. package/dist/components/kol-progress.js +1 -1
  308. package/dist/components/kol-quote.js +1 -1
  309. package/dist/components/kol-select.js +1 -1
  310. package/dist/components/kol-single-select.js +1 -1
  311. package/dist/components/kol-skip-nav.js +1 -1
  312. package/dist/components/kol-spin.js +1 -1
  313. package/dist/components/kol-split-button.js +1 -1
  314. package/dist/components/kol-table-stateful.js +1 -1
  315. package/dist/components/kol-table-stateless.js +1 -1
  316. package/dist/components/kol-tabs.js +1 -1
  317. package/dist/components/kol-textarea.js +1 -1
  318. package/dist/components/kol-toast-container.js +1 -1
  319. package/dist/components/kol-toolbar.js +1 -1
  320. package/dist/components/kol-tooltip-wc.js +1 -1
  321. package/dist/components/kol-tree-item.js +1 -1
  322. package/dist/components/kol-tree.js +1 -1
  323. package/dist/components/kol-version.js +1 -1
  324. package/dist/components/label-with-expert-slot.js +1 -1
  325. package/dist/components/label.js +1 -1
  326. package/dist/components/validators.js +1 -1
  327. package/dist/esm/{Heading-wrhAEuG3.js → Heading-GZb1f2pZ.js} +1 -1
  328. package/dist/esm/{api-7B_iI89k.js → api-CBPlj155.js} +23 -22
  329. package/dist/esm/{app-globals-tRqgHq3P.js → app-globals-DRl9A82c.js} +3 -3
  330. package/dist/esm/{aria-labelledby-CLehu03h.js → aria-labelledby-DqJY_4G-.js} +1 -13
  331. package/dist/esm/{base-C32RNC8q.js → base-BByRnpRm.js} +12 -12
  332. package/dist/esm/{base-BVztEKgJ.js → base-C7BBsrYZ.js} +30 -36
  333. package/dist/esm/{base-D_-9Lzkd.js → base-DO0KvOv9.js} +11 -11
  334. package/dist/esm/{base-BDYPTFjC.js → base-Dtxcvto_.js} +10 -10
  335. package/dist/esm/{base-web-component-DdY5aIHN.js → base-web-component-BxXLva5d.js} +10 -10
  336. package/dist/esm/{base-web-component-XgI4wUyN.js → base-web-component-CC_gpyDb.js} +1 -1
  337. package/dist/esm/{base-web-component-BUu68byc.js → base-web-component-CfPyCJDJ.js} +15 -15
  338. package/dist/esm/{behavior-fGxZN96S.js → behavior-CKU2tmCj.js} +5 -5
  339. package/dist/esm/{behavior-DsTiTiJC.js → behavior-CsNDRS2z.js} +5 -5
  340. package/dist/esm/{behavior-DN-22cB1.js → behavior-ewHvUWVk.js} +7 -13
  341. package/dist/esm/{bem-registry-Crcs_65u.js → bem-registry-D1KgKnyz.js} +40 -1
  342. package/dist/esm/{block-bem-DehcAQZQ.js → block-bem-D3ixJyOY.js} +1 -1
  343. package/dist/esm/{bootstrap-DHXUvPBY.js → bootstrap-tgQ2nQQI.js} +2 -2
  344. package/dist/esm/{color-eAL9I7Wq.js → color-D1gM-F2l.js} +3 -3
  345. package/dist/esm/{common-OzsC_6kt.js → common-BdSzSIXg.js} +31 -30
  346. package/dist/esm/{component-4xXBb7K-.js → component-6l69Jvwl.js} +4 -4
  347. package/dist/esm/{component-Cxdi6on4.js → component-B3OziaRC.js} +11 -11
  348. package/dist/esm/{component-DHNcVTi0.js → component-By8ggItU.js} +8 -8
  349. package/dist/esm/{component-EK9BJR6z.js → component-CF8uFG0A.js} +15 -15
  350. package/dist/esm/{component-BJ4gGOph.js → component-Ccv2lqNq.js} +2 -2
  351. package/dist/esm/{component-0IO2wu9i.js → component-Cmi6iGfA.js} +10 -10
  352. package/dist/esm/{component-CPq3i3I_.js → component-D4-NVnsT.js} +5 -5
  353. package/dist/esm/{component-ChuoBFI-.js → component-D6_K50vT.js} +4 -4
  354. package/dist/esm/{component-CTOYF3q6.js → component-D6lo0LzE.js} +7 -7
  355. package/dist/esm/{component-NEw1tN3M.js → component-D9NreIlK.js} +5 -5
  356. package/dist/esm/{component-DWywPG_a.js → component-DAk3R8NN.js} +14 -14
  357. package/dist/esm/{component-et0GdBuf.js → component-EDDTMC-J.js} +2 -2
  358. package/dist/esm/{contrast-D78VGPFR.js → contrast-BNoQruBh.js} +2 -2
  359. package/dist/esm/{controller-Cb-96wE-.js → controller-CZcQ57AP.js} +1 -1
  360. package/dist/esm/{dev.utils-Bg7nZBMk.js → dev.utils-BwYCy1rP.js} +2 -2
  361. package/dist/esm/{devtools-nUT3JVTV.js → devtools-CGP3Nzsw.js} +3 -3
  362. package/dist/esm/{disabled-Cqhc40CU.js → disabled-BZXlWAgK.js} +1 -1
  363. package/dist/esm/{field-control-D2tOd14v.js → field-control-0TRmF7Ea.js} +8 -8
  364. package/dist/esm/{group-CxWsx0aJ.js → group-DapkT_Yh.js} +7 -7
  365. package/dist/esm/{has-closer-B9NQY7BK.js → has-closer-DUB0QcS9.js} +1 -1
  366. package/dist/esm/{href-JqLbNBsW.js → href-CxokGOJ2.js} +1 -1
  367. package/dist/esm/{i18n-Dl6Jjofb.js → i18n-4J6U3ZDc.js} +2 -0
  368. package/dist/esm/{i18n-DtLKn3Xt.js → i18n-ePBcLlCr.js} +2 -2
  369. package/dist/esm/{id-CIYvVaNr.js → id-BI0ZuK17.js} +1 -1
  370. package/dist/esm/{index-B_bJG8-2.js → index-DEcM8BEc.js} +23 -12
  371. package/dist/esm/index.js +6 -6
  372. package/dist/esm/{input-Ia9Z3AP7.js → input-CDUCo1S5.js} +5 -5
  373. package/dist/esm/{input-container-Y_8n5Sen.js → input-container-BipAkWn4.js} +8 -8
  374. package/dist/esm/{item-BjriQHQl.js → item-B0oQTeju.js} +6 -6
  375. package/dist/esm/{item-BuqBMSYI.js → item-Boe3t0Dm.js} +12 -12
  376. package/dist/esm/{item-BZtI88zF.js → item-BvnZc8uV.js} +5 -5
  377. package/dist/esm/{item-BKVeXzUO.js → item-UgJ2uikD.js} +30 -15
  378. package/dist/esm/kol-abbr.entry.js +13 -12
  379. package/dist/esm/kol-accordion.entry.js +21 -20
  380. package/dist/esm/kol-alert.entry.js +32 -30
  381. package/dist/esm/kol-avatar.entry.js +17 -16
  382. package/dist/esm/kol-badge.entry.js +30 -29
  383. package/dist/esm/kol-breadcrumb.entry.js +32 -31
  384. package/dist/esm/kol-button-link.entry.js +29 -28
  385. package/dist/esm/kol-button.entry.js +29 -28
  386. package/dist/esm/kol-card.entry.js +34 -33
  387. package/dist/esm/kol-combobox.entry.js +47 -46
  388. package/dist/esm/kol-details.entry.js +21 -20
  389. package/dist/esm/kol-dialog.entry.js +37 -36
  390. package/dist/esm/kol-drawer.entry.js +36 -35
  391. package/dist/esm/kol-form.entry.js +30 -29
  392. package/dist/esm/kol-heading.entry.js +15 -14
  393. package/dist/esm/kol-icon.entry.js +20 -16
  394. package/dist/esm/kol-image.entry.js +10 -9
  395. package/dist/esm/kol-input-checkbox.entry.js +54 -52
  396. package/dist/esm/kol-input-color.entry.js +47 -45
  397. package/dist/esm/kol-input-date.entry.js +49 -47
  398. package/dist/esm/kol-input-email.entry.js +51 -49
  399. package/dist/esm/kol-input-file.entry.js +46 -44
  400. package/dist/esm/kol-input-number.entry.js +52 -50
  401. package/dist/esm/kol-input-password.entry.js +50 -48
  402. package/dist/esm/kol-input-radio.entry.js +42 -41
  403. package/dist/esm/kol-input-range.entry.js +45 -44
  404. package/dist/esm/kol-input-text.entry.js +51 -49
  405. package/dist/esm/kol-kolibri.entry.js +13 -12
  406. package/dist/esm/kol-link-button.entry.js +30 -29
  407. package/dist/esm/kol-link.entry.js +30 -29
  408. package/dist/esm/kol-meter.entry.js +20 -22
  409. package/dist/esm/kol-modal.entry.js +37 -36
  410. package/dist/esm/kol-nav.entry.js +38 -37
  411. package/dist/esm/kol-pagination.entry.js +46 -45
  412. package/dist/esm/kol-popover-button.entry.js +30 -29
  413. package/dist/esm/kol-progress.entry.js +21 -17
  414. package/dist/esm/kol-quote.entry.js +12 -11
  415. package/dist/esm/kol-select.entry.js +42 -41
  416. package/dist/esm/kol-single-select.entry.js +54 -48
  417. package/dist/esm/kol-skip-nav.entry.js +32 -31
  418. package/dist/esm/kol-spin.entry.js +17 -16
  419. package/dist/esm/kol-split-button.entry.js +33 -32
  420. package/dist/esm/kol-table-stateful.entry.js +59 -59
  421. package/dist/esm/kol-table-stateless.entry.js +47 -47
  422. package/dist/esm/kol-tabs.entry.js +36 -38
  423. package/dist/esm/kol-textarea.entry.js +49 -46
  424. package/dist/esm/kol-toast-container.entry.js +25 -24
  425. package/dist/esm/kol-toolbar.entry.js +35 -34
  426. package/dist/esm/kol-tooltip-wc.entry.js +15 -14
  427. package/dist/esm/kol-tree-item.entry.js +32 -28
  428. package/dist/esm/kol-tree.entry.js +26 -14
  429. package/dist/esm/kol-version.entry.js +27 -26
  430. package/dist/esm/kolibri.js +5 -5
  431. package/dist/esm/{label-BRosRgdX.js → label-B-Dr7VaP.js} +3 -3
  432. package/dist/esm/{label-hints-Jn18RUT-.js → label-hints-CLMiVvfk.js} +2 -2
  433. package/dist/esm/{label-lang-segment-2_GnxjFp.js → label-lang-segment-iVD9hoM3.js} +2 -2
  434. package/dist/esm/{label-with-expert-slot-CicRes-W.js → label-with-expert-slot-BbZ9nx0l.js} +3 -3
  435. package/dist/esm/{level-CA1s1_Mf.js → level-DsQ_pcyD.js} +1 -1
  436. package/dist/esm/{link-target-FX94oqMo.js → link-target-D7lYILOV.js} +1 -1
  437. package/dist/esm/{links-DwucTqcR.js → links-IkK4zoXw.js} +2 -2
  438. package/dist/esm/loader.js +4 -4
  439. package/dist/esm/{multiple-DqrZxybx.js → multiple--ay1C1n3.js} +1 -1
  440. package/dist/esm/{number-value-B-SJ1dRo.js → number-value-Dl9-2O4r.js} +1 -1
  441. package/dist/esm/{open-DRRv1KFK.js → open-CNHJhHsy.js} +1 -1
  442. package/dist/esm/{options-DCaUcfAu.js → options-DwO32GBF.js} +2 -2
  443. package/dist/esm/{orientation-XNOCaPwy.js → orientation-ChJ0S24M.js} +1 -1
  444. package/dist/esm/{placeholder-BeLIzdJv.js → placeholder-UxmBJ4Vl.js} +1 -1
  445. package/dist/esm/{props-from-config-Ci0dILpz.js → props-from-config-ytxYrJUY.js} +1 -1
  446. package/dist/esm/{read-only-Bby9r6ZX.js → read-only-DytZ5HZJ.js} +1 -1
  447. package/dist/esm/{required-hoaT7UmZ.js → required-BriHhuO4.js} +1 -1
  448. package/dist/esm/{resolve-props-CHPFh7Tn.js → resolve-props-DTXKtzir.js} +7 -7
  449. package/dist/esm/{resolve-props-BkF1VBBB.js → resolve-props-kM9N-fzf.js} +8 -8
  450. package/dist/esm/{rows-B0x8CR7K.js → rows-I1jrTjzU.js} +1 -1
  451. package/dist/esm/{scroll-lock-D7Zo0QLt.js → scroll-lock-Bv-U2FHM.js} +2 -2
  452. package/dist/esm/{smart-button-CS_ZriPt.js → smart-button-DM5g48-g.js} +2 -2
  453. package/dist/esm/{spell-check-DzgftyqL.js → spell-check-BWCnJG5v.js} +1 -1
  454. package/dist/esm/{src-DaGhmCL1.js → src-ziOwSglN.js} +1 -1
  455. package/dist/esm/{step-Bdj89bGO.js → step-BcyhvRtu.js} +1 -1
  456. package/dist/esm/{suggestions-GEr-cvbz.js → suggestions-D0u80DtA.js} +3 -3
  457. package/dist/esm/{suggestions-Dy1X-Pc3.js → suggestions-LO267l8F.js} +2 -2
  458. package/dist/esm/test-component.entry.js +4 -3
  459. package/dist/esm/{toggle-handler-Bqoo8tCo.js → toggle-handler-mPlmvrq7.js} +10 -10
  460. package/dist/esm/{unique-nav-labels-h2KOu5Qy.js → unique-nav-labels-CxFUYSVY.js} +2 -2
  461. package/dist/esm/{unit-BUhhJbhT.js → unit-1ix-K9SD.js} +1 -1
  462. package/dist/esm/{validators-BVM40IEr.js → validators-CTjxOidB.js} +3 -2
  463. package/dist/esm/{value-string-e9pwLcS-.js → value-string-CxDz7dhD.js} +1 -1
  464. package/dist/esm/{width-CgYY17tL.js → width-C1_yZHyL.js} +1 -1
  465. package/dist/kolibri/Heading-GZb1f2pZ.js +4 -0
  466. package/dist/kolibri/api-CBPlj155.js +4 -0
  467. package/dist/kolibri/app-globals-DRl9A82c.js +4 -0
  468. package/dist/kolibri/aria-labelledby-DqJY_4G-.js +4 -0
  469. package/dist/kolibri/base-BByRnpRm.js +4 -0
  470. package/dist/kolibri/base-C7BBsrYZ.js +4 -0
  471. package/dist/kolibri/{base-D_-9Lzkd.js → base-DO0KvOv9.js} +1 -1
  472. package/dist/kolibri/{base-BDYPTFjC.js → base-Dtxcvto_.js} +1 -1
  473. package/dist/kolibri/{base-web-component-DdY5aIHN.js → base-web-component-BxXLva5d.js} +1 -1
  474. package/dist/kolibri/{base-web-component-XgI4wUyN.js → base-web-component-CC_gpyDb.js} +1 -1
  475. package/dist/kolibri/{base-web-component-BUu68byc.js → base-web-component-CfPyCJDJ.js} +1 -1
  476. package/dist/kolibri/{behavior-fGxZN96S.js → behavior-CKU2tmCj.js} +1 -1
  477. package/dist/kolibri/{behavior-DsTiTiJC.js → behavior-CsNDRS2z.js} +1 -1
  478. package/dist/kolibri/behavior-ewHvUWVk.js +4 -0
  479. package/dist/kolibri/{bem-registry-Crcs_65u.js → bem-registry-D1KgKnyz.js} +1 -1
  480. package/dist/kolibri/block-bem-D3ixJyOY.js +4 -0
  481. package/dist/kolibri/bootstrap-tgQ2nQQI.js +4 -0
  482. package/dist/kolibri/{color-eAL9I7Wq.js → color-D1gM-F2l.js} +1 -1
  483. package/dist/kolibri/common-BdSzSIXg.js +4 -0
  484. package/dist/kolibri/component-6l69Jvwl.js +4 -0
  485. package/dist/kolibri/component-B3OziaRC.js +4 -0
  486. package/dist/kolibri/{component-DHNcVTi0.js → component-By8ggItU.js} +1 -1
  487. package/dist/kolibri/component-CF8uFG0A.js +4 -0
  488. package/dist/kolibri/component-Ccv2lqNq.js +4 -0
  489. package/dist/kolibri/component-Cmi6iGfA.js +4 -0
  490. package/dist/kolibri/component-D4-NVnsT.js +4 -0
  491. package/dist/kolibri/component-D6_K50vT.js +4 -0
  492. package/dist/kolibri/component-D6lo0LzE.js +4 -0
  493. package/dist/kolibri/{component-NEw1tN3M.js → component-D9NreIlK.js} +1 -1
  494. package/dist/kolibri/component-DAk3R8NN.js +4 -0
  495. package/dist/kolibri/{component-et0GdBuf.js → component-EDDTMC-J.js} +1 -1
  496. package/dist/kolibri/contrast-BNoQruBh.js +4 -0
  497. package/dist/kolibri/{controller-Cb-96wE-.js → controller-CZcQ57AP.js} +1 -1
  498. package/dist/kolibri/dev.utils-BwYCy1rP.js +4 -0
  499. package/dist/kolibri/{devtools-nUT3JVTV.js → devtools-CGP3Nzsw.js} +1 -1
  500. package/dist/kolibri/disabled-BZXlWAgK.js +4 -0
  501. package/dist/kolibri/field-control-0TRmF7Ea.js +4 -0
  502. package/dist/kolibri/group-DapkT_Yh.js +4 -0
  503. package/dist/kolibri/has-closer-DUB0QcS9.js +4 -0
  504. package/dist/kolibri/href-CxokGOJ2.js +4 -0
  505. package/dist/kolibri/i18n-4J6U3ZDc.js +4 -0
  506. package/dist/kolibri/i18n-ePBcLlCr.js +4 -0
  507. package/dist/kolibri/id-BI0ZuK17.js +4 -0
  508. package/dist/kolibri/index-DEcM8BEc.js +6 -0
  509. package/dist/kolibri/index.esm.js +1 -1
  510. package/dist/kolibri/input-CDUCo1S5.js +4 -0
  511. package/dist/kolibri/input-container-BipAkWn4.js +4 -0
  512. package/dist/kolibri/item-B0oQTeju.js +4 -0
  513. package/dist/kolibri/item-Boe3t0Dm.js +4 -0
  514. package/dist/kolibri/item-BvnZc8uV.js +4 -0
  515. package/dist/kolibri/item-UgJ2uikD.js +4 -0
  516. package/dist/kolibri/kol-abbr.entry.js +1 -1
  517. package/dist/kolibri/kol-accordion.entry.js +1 -1
  518. package/dist/kolibri/kol-alert.entry.js +1 -1
  519. package/dist/kolibri/kol-avatar.entry.js +1 -1
  520. package/dist/kolibri/kol-badge.entry.js +1 -1
  521. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  522. package/dist/kolibri/kol-button-link.entry.js +1 -1
  523. package/dist/kolibri/kol-button.entry.js +1 -1
  524. package/dist/kolibri/kol-card.entry.js +1 -1
  525. package/dist/kolibri/kol-combobox.entry.js +1 -1
  526. package/dist/kolibri/kol-details.entry.js +1 -1
  527. package/dist/kolibri/kol-dialog.entry.js +1 -1
  528. package/dist/kolibri/kol-drawer.entry.js +1 -1
  529. package/dist/kolibri/kol-form.entry.js +1 -1
  530. package/dist/kolibri/kol-heading.entry.js +1 -1
  531. package/dist/kolibri/kol-icon.entry.js +1 -1
  532. package/dist/kolibri/kol-image.entry.js +1 -1
  533. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  534. package/dist/kolibri/kol-input-color.entry.js +1 -1
  535. package/dist/kolibri/kol-input-date.entry.js +1 -1
  536. package/dist/kolibri/kol-input-email.entry.js +1 -1
  537. package/dist/kolibri/kol-input-file.entry.js +1 -1
  538. package/dist/kolibri/kol-input-number.entry.js +1 -1
  539. package/dist/kolibri/kol-input-password.entry.js +1 -1
  540. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  541. package/dist/kolibri/kol-input-range.entry.js +1 -1
  542. package/dist/kolibri/kol-input-text.entry.js +1 -1
  543. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  544. package/dist/kolibri/kol-link-button.entry.js +1 -1
  545. package/dist/kolibri/kol-link.entry.js +1 -1
  546. package/dist/kolibri/kol-meter.entry.js +1 -1
  547. package/dist/kolibri/kol-modal.entry.js +1 -1
  548. package/dist/kolibri/kol-nav.entry.js +1 -1
  549. package/dist/kolibri/kol-pagination.entry.js +1 -1
  550. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  551. package/dist/kolibri/kol-progress.entry.js +1 -1
  552. package/dist/kolibri/kol-quote.entry.js +1 -1
  553. package/dist/kolibri/kol-select.entry.js +1 -1
  554. package/dist/kolibri/kol-single-select.entry.js +1 -1
  555. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  556. package/dist/kolibri/kol-spin.entry.js +1 -1
  557. package/dist/kolibri/kol-split-button.entry.js +1 -1
  558. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  559. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  560. package/dist/kolibri/kol-tabs.entry.js +1 -1
  561. package/dist/kolibri/kol-textarea.entry.js +1 -1
  562. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  563. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  564. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  565. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  566. package/dist/kolibri/kol-tree.entry.js +1 -1
  567. package/dist/kolibri/kol-version.entry.js +1 -1
  568. package/dist/kolibri/kolibri.esm.js +1 -1
  569. package/dist/kolibri/label-B-Dr7VaP.js +4 -0
  570. package/dist/kolibri/label-hints-CLMiVvfk.js +4 -0
  571. package/dist/kolibri/label-lang-segment-iVD9hoM3.js +4 -0
  572. package/dist/kolibri/label-with-expert-slot-BbZ9nx0l.js +4 -0
  573. package/dist/kolibri/level-DsQ_pcyD.js +4 -0
  574. package/dist/kolibri/link-target-D7lYILOV.js +4 -0
  575. package/dist/kolibri/links-IkK4zoXw.js +4 -0
  576. package/dist/kolibri/multiple--ay1C1n3.js +4 -0
  577. package/dist/kolibri/number-value-Dl9-2O4r.js +4 -0
  578. package/dist/kolibri/open-CNHJhHsy.js +4 -0
  579. package/dist/kolibri/options-DwO32GBF.js +4 -0
  580. package/dist/kolibri/orientation-ChJ0S24M.js +4 -0
  581. package/dist/kolibri/placeholder-UxmBJ4Vl.js +4 -0
  582. package/dist/kolibri/{props-from-config-Ci0dILpz.js → props-from-config-ytxYrJUY.js} +1 -1
  583. package/dist/kolibri/read-only-DytZ5HZJ.js +4 -0
  584. package/dist/kolibri/required-BriHhuO4.js +4 -0
  585. package/dist/kolibri/resolve-props-DTXKtzir.js +4 -0
  586. package/dist/kolibri/resolve-props-kM9N-fzf.js +4 -0
  587. package/dist/kolibri/rows-I1jrTjzU.js +4 -0
  588. package/dist/kolibri/{scroll-lock-D7Zo0QLt.js → scroll-lock-Bv-U2FHM.js} +1 -1
  589. package/dist/kolibri/{smart-button-CS_ZriPt.js → smart-button-DM5g48-g.js} +1 -1
  590. package/dist/kolibri/spell-check-BWCnJG5v.js +4 -0
  591. package/dist/kolibri/src-ziOwSglN.js +4 -0
  592. package/dist/kolibri/step-BcyhvRtu.js +4 -0
  593. package/dist/kolibri/suggestions-D0u80DtA.js +4 -0
  594. package/dist/kolibri/{suggestions-Dy1X-Pc3.js → suggestions-LO267l8F.js} +1 -1
  595. package/dist/kolibri/test-component.entry.js +1 -1
  596. package/dist/kolibri/toggle-handler-mPlmvrq7.js +4 -0
  597. package/dist/kolibri/unique-nav-labels-CxFUYSVY.js +4 -0
  598. package/dist/kolibri/unit-1ix-K9SD.js +4 -0
  599. package/dist/kolibri/validators-CTjxOidB.js +4 -0
  600. package/dist/kolibri/value-string-CxDz7dhD.js +4 -0
  601. package/dist/kolibri/{width-CgYY17tL.js → width-C1_yZHyL.js} +1 -1
  602. package/dist/types/components/progress/component.d.ts +1 -0
  603. package/dist/types/components/single-select/component.d.ts +1 -0
  604. package/dist/types/components/table-stateful/component.d.ts +0 -1
  605. package/dist/types/components/table-stateless/component.d.ts +0 -1
  606. package/dist/types/components/tabs/component.d.ts +0 -1
  607. package/dist/types/components/tree/component.d.ts +1 -0
  608. package/dist/types/components.d.ts +4 -4
  609. package/dist/types/internal/functional-components/form-association/api.d.ts +1 -1
  610. package/dist/types/internal/functional-components/form-association/behavior.d.ts +0 -1
  611. package/dist/types/internal/functional-components/form-field/custom-suggestions.d.ts +1 -0
  612. package/dist/types/internal/functional-components/icon/api.d.ts +1 -1
  613. package/dist/types/internal/functional-components/single-select/component.d.ts +3 -0
  614. package/dist/types/internal/props/helpers/validators.d.ts +2 -1
  615. package/dist/types/internal/props/index.d.ts +1 -0
  616. package/dist/types/internal/props/label-decorative.d.ts +4 -0
  617. package/dist/types/locales/de.d.ts +1 -0
  618. package/dist/types/locales/en.d.ts +1 -0
  619. package/dist/types/schema/bem-registry.d.ts +49 -0
  620. package/dist/types/schema/i18n-keys.d.ts +29 -28
  621. package/dist/types/schema/index.d.ts +1 -1
  622. package/dist/types/schema/props/aria-details.d.ts +0 -2
  623. package/dist/types/schema/props/aria-labelledby.d.ts +1 -2
  624. package/dist/types/schema/props/label.d.ts +1 -0
  625. package/dist/types/stencil-public-runtime.d.ts +1 -1
  626. package/dist/types/utils/aria-labelledby.d.ts +0 -6
  627. package/doc/table-stateful.md +16 -16
  628. package/doc/table-stateless.md +14 -14
  629. package/package.json +6 -6
  630. package/vscode-custom-data.json +2 -2
  631. package/dist/kolibri/Heading-wrhAEuG3.js +0 -4
  632. package/dist/kolibri/api-7B_iI89k.js +0 -4
  633. package/dist/kolibri/app-globals-tRqgHq3P.js +0 -4
  634. package/dist/kolibri/aria-labelledby-CLehu03h.js +0 -4
  635. package/dist/kolibri/base-BVztEKgJ.js +0 -4
  636. package/dist/kolibri/base-C32RNC8q.js +0 -4
  637. package/dist/kolibri/behavior-DN-22cB1.js +0 -4
  638. package/dist/kolibri/block-bem-DehcAQZQ.js +0 -4
  639. package/dist/kolibri/bootstrap-DHXUvPBY.js +0 -4
  640. package/dist/kolibri/common-OzsC_6kt.js +0 -4
  641. package/dist/kolibri/component-0IO2wu9i.js +0 -4
  642. package/dist/kolibri/component-4xXBb7K-.js +0 -4
  643. package/dist/kolibri/component-BJ4gGOph.js +0 -4
  644. package/dist/kolibri/component-CPq3i3I_.js +0 -4
  645. package/dist/kolibri/component-CTOYF3q6.js +0 -4
  646. package/dist/kolibri/component-ChuoBFI-.js +0 -4
  647. package/dist/kolibri/component-Cxdi6on4.js +0 -4
  648. package/dist/kolibri/component-DWywPG_a.js +0 -4
  649. package/dist/kolibri/component-EK9BJR6z.js +0 -4
  650. package/dist/kolibri/contrast-D78VGPFR.js +0 -4
  651. package/dist/kolibri/dev.utils-Bg7nZBMk.js +0 -4
  652. package/dist/kolibri/disabled-Cqhc40CU.js +0 -4
  653. package/dist/kolibri/field-control-D2tOd14v.js +0 -4
  654. package/dist/kolibri/group-CxWsx0aJ.js +0 -4
  655. package/dist/kolibri/has-closer-B9NQY7BK.js +0 -4
  656. package/dist/kolibri/href-JqLbNBsW.js +0 -4
  657. package/dist/kolibri/i18n-Dl6Jjofb.js +0 -4
  658. package/dist/kolibri/i18n-DtLKn3Xt.js +0 -4
  659. package/dist/kolibri/id-CIYvVaNr.js +0 -4
  660. package/dist/kolibri/index-B_bJG8-2.js +0 -6
  661. package/dist/kolibri/input-Ia9Z3AP7.js +0 -4
  662. package/dist/kolibri/input-container-Y_8n5Sen.js +0 -4
  663. package/dist/kolibri/item-BKVeXzUO.js +0 -4
  664. package/dist/kolibri/item-BZtI88zF.js +0 -4
  665. package/dist/kolibri/item-BjriQHQl.js +0 -4
  666. package/dist/kolibri/item-BuqBMSYI.js +0 -4
  667. package/dist/kolibri/label-BRosRgdX.js +0 -4
  668. package/dist/kolibri/label-hints-Jn18RUT-.js +0 -4
  669. package/dist/kolibri/label-lang-segment-2_GnxjFp.js +0 -4
  670. package/dist/kolibri/label-with-expert-slot-CicRes-W.js +0 -4
  671. package/dist/kolibri/level-CA1s1_Mf.js +0 -4
  672. package/dist/kolibri/link-target-FX94oqMo.js +0 -4
  673. package/dist/kolibri/links-DwucTqcR.js +0 -4
  674. package/dist/kolibri/multiple-DqrZxybx.js +0 -4
  675. package/dist/kolibri/number-value-B-SJ1dRo.js +0 -4
  676. package/dist/kolibri/open-DRRv1KFK.js +0 -4
  677. package/dist/kolibri/options-DCaUcfAu.js +0 -4
  678. package/dist/kolibri/orientation-XNOCaPwy.js +0 -4
  679. package/dist/kolibri/placeholder-BeLIzdJv.js +0 -4
  680. package/dist/kolibri/read-only-Bby9r6ZX.js +0 -4
  681. package/dist/kolibri/required-hoaT7UmZ.js +0 -4
  682. package/dist/kolibri/resolve-props-BkF1VBBB.js +0 -4
  683. package/dist/kolibri/resolve-props-CHPFh7Tn.js +0 -4
  684. package/dist/kolibri/rows-B0x8CR7K.js +0 -4
  685. package/dist/kolibri/spell-check-DzgftyqL.js +0 -4
  686. package/dist/kolibri/src-DaGhmCL1.js +0 -4
  687. package/dist/kolibri/step-Bdj89bGO.js +0 -4
  688. package/dist/kolibri/suggestions-GEr-cvbz.js +0 -4
  689. package/dist/kolibri/toggle-handler-Bqoo8tCo.js +0 -4
  690. package/dist/kolibri/unique-nav-labels-h2KOu5Qy.js +0 -4
  691. package/dist/kolibri/unit-BUhhJbhT.js +0 -4
  692. package/dist/kolibri/validators-BVM40IEr.js +0 -4
  693. package/dist/kolibri/value-string-e9pwLcS-.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h as e,proxyCustomElement as t,Host as o,transformTag as i}from"@stencil/core/internal/client";import{a as l,_ as n}from"./tslib.es6.js";import{v as a}from"./access-and-short-key.js";import{c as r}from"./clsx.js";import{i as c,g as s,f as h,B as d,F as k}from"./base-web-component2.js";import{b}from"./bem-registry.js";import{B as f}from"./component.js";import{I as u}from"./component5.js";import{I as m}from"./input.js";import{F as p}from"./field-control.js";import{a as _,d as g}from"./component3.js";import{c as y,n as w,b as v}from"./props-from-config.js";import{r as x}from"./required.js";import{c as z}from"./dev.utils.js";import{c as j,d as A,a as K}from"./element-interaction.js";import{s as T}from"./controller.js";const q=["button","default","switch"],I=y("value",!0,(e=>e)),L=y("checked",!1,w),B=["checked","indeterminate","unchecked"],V=y("icons",{checked:"kolicon-check",indeterminate:"kolicon-minus",unchecked:"kolicon-cross"},(e=>{if("object"==typeof e&&null!==e&&B.some((t=>(e=>"string"==typeof e&&e.length>0)(e[t]))))return e;throw Error("Expected an object with at least one icon class of checked, indeterminate or unchecked")})),P=y("indeterminate",!1,w),D=["left","right"],S=y("labelAlign","right",(e=>{const t=v(e);if(D.includes(t))return t;throw Error("Invalid label alignment: "+t)})),H=y("variant","default",(e=>{const t=v(e);if(q.includes(t))return t;throw Error("Invalid checkbox variant: "+t)})),M=b.forBlock("kol-checkbox"),O=t=>{var{class:o,variant:i="default",icon:n,inputProps:a}=t,h=l(t,["class","variant","icon","inputProps"]);const{class:d}=a,k=l(a,["class"]);return e(f,Object.assign({component:"label",block:"kol-checkbox",modifiers:Object.assign({"variant-button":"button"===i,"variant-default":"default"===i,"variant-switch":"switch"===i,checked:!!a.checked,indeterminate:!!a.indeterminate,disabled:!!a.disabled,required:!!a.required,touched:!!a.touched},c(a.msg,a.touched)?{[s(a.msg)]:!0}:{}),class:o},h),e(u,{label:"",icons:n,class:M("icon")}),e(m,Object.assign({class:r(M("input"),d)},k,{type:"checkbox"})))},E={required:[...h.required],optional:[...h.optional,_,I,L,V,P,S,x,g,H]},C=t(class extends d{constructor(e){super(!1),!1!==e&&this.__registerHost(),this.__attachShadow(),this.id=z("input-checkbox"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=j(),this.propsConfig=E,this._accessKey=void 0,this._checked=!1,this._hideMsg=!1,this._disabled=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._infoPopover=void 0,this._indeterminate=void 0,this._labelAlign="right",this._msg=void 0,this._name=void 0,this._on=void 0,this._required=!1,this._ariaDetails=void 0,this._shortKey=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=!0,this._variant="default",this.handleCheckboxInput=e=>{this._checked=!this._checked,this._indeterminate=!1,this.handleInput(e,this.getModelValue())},this.handleCheckboxChange=e=>{this.handleChange(e,this.getModelValue())},this.handleCheckboxKeyDown=e=>{this.handleKeyDown(e),T(e,{form:this.host,ref:this.ctaRef.el})},this.handleCheckboxBlur=e=>{this._disabled||this.handleBlur(e)},this.handleLabelMouseDown=e=>{this.inputHasFocus&&e.preventDefault()},this.handleCheckboxMouseDown=e=>{!this.inputHasFocus||e.target instanceof HTMLInputElement||e.preventDefault()},this.initFormAssociation("checkbox",this._name)}watchAccessKey(e){_.apply(e,(e=>this.setRenderProp("accessKey",e))),a(e,this._shortKey)}watchChecked(e){L.apply(e,(e=>this.setRenderProp("checked",e))),this.syncFormAssociatedValue()}watchHideMsg(e){this.applyHideMsg(e)}watchDisabled(e){this.applyDisabled(e)}watchHideLabel(e){this.applyHideLabel(e)}watchHint(e){this.applyHint(e)}watchIcons(e){V.apply(e,(e=>this.setRenderProp("icons",Object.assign(Object.assign({},this.getRenderProp("icons")),e))))}watchInfoPopover(e){this.applyInfoPopover(e)}watchIndeterminate(e){P.apply(e,(e=>this.setRenderProp("indeterminate",e)))}watchLabel(e){this.applyLabel(e)}watchLabelAlign(e){S.apply(e,(e=>this.setRenderProp("labelAlign",e)))}watchMsg(e){this.applyMsg(e)}watchName(e){this.applyName(e)}watchOn(e){this.applyOn(e)}watchRequired(e){x.apply(e,(e=>this.setRenderProp("required",e)))}watchAriaDetails(e){this.applyAriaDetails(e)}watchShortKey(e){g.apply(e,(e=>this.setRenderProp("shortKey",e))),a(this._accessKey,e)}watchSyncValueBySelector(e){this.applySyncValueBySelector(e)}watchTooltipAlign(e){this.applyTooltipAlign(e)}watchTouched(e){this.applyTouched(e)}watchValue(e){null==e?this.setRenderProp("value",e):I.apply(e,(e=>this.setRenderProp("value",e))),this.syncFormAssociatedValue()}watchVariant(e){H.apply(e,(e=>this.setRenderProp("variant",e)))}getValue(){return Promise.resolve(this.getModelValue())}focus(e){return Promise.resolve()}async click(){return Promise.resolve()}componentWillLoad(){this._touched=!0===this._touched,this.watchAriaDetails(this._ariaDetails),this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccessKey(this._accessKey),this.watchMsg(this._msg),this.watchDisabled(this._disabled),this.watchHideMsg(this._hideMsg),this.watchHideLabel(this._hideLabel),this.watchHint(this._hint),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchShortKey(this._shortKey),this.watchOn(this._on),this.watchTooltipAlign(this._tooltipAlign),this.watchRequired(this._required),this.watchChecked(this._checked),this.watchIcons(this._icons),this.watchIndeterminate(this._indeterminate),this.watchValue(this._value),this.watchVariant(this._variant),this.watchLabelAlign(this._labelAlign)}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField()}getModelValue(){return this._checked?this.getRenderProp("value"):null}syncFormAssociatedValue(){this.formAssociation.setFormAssociatedValue(this.getModelValue())}getIcon(){const e=this.getRenderProp("icons");return this.getRenderProp("indeterminate")?e.indeterminate:this.getRenderProp("checked")?e.checked:e.unchecked}getInputProps(){const e=this.getRenderProp("shortKey"),{ariaDescribedBy:t,hasError:o}=this.getAria();return Object.assign(Object.assign({id:this.id,hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),value:this.getRenderProp("value"),accessKey:this.getRenderProp("accessKey")||void 0,disabled:this.getRenderProp("disabled"),name:null==this._name?void 0:this.getRenderProp("name"),ariaDescribedBy:t,required:this.getRenderProp("required"),checked:this.getRenderProp("checked"),indeterminate:this.getRenderProp("indeterminate"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")},e?{"aria-keyshortcuts":e}:{}),{class:r({"visually-hidden":"button"===this.getRenderProp("variant")}),ref:this.ctaRef,onBlur:this.handleCheckboxBlur,onChange:this.handleCheckboxChange,onFocus:this.handleFocus,onInput:this.handleCheckboxInput,onKeyDown:this.handleCheckboxKeyDown,"aria-invalid":o?"true":void 0})}render(){const t=this.getRenderProp("checked"),i=this.getRenderProp("indeterminate"),l=this.getRenderProp("variant"),n=this.getRenderProp("accessKey")||void 0,a=this.getRenderProp("shortKey")||void 0,c=this.getRenderProp("required");return e(o,{key:"018a5fe5406540b4e779f2b2a7cf12fd9e522fcb"},e(k,Object.assign({key:"dac4b30724f6310b7e252f049dabfd4cf8b36b52"},this.getFormFieldProps({class:r("kol-input-checkbox",{"kol-input-checkbox--checked":t,"kol-input-checkbox--indeterminate":i,["kol-input-checkbox--variant-"+l]:!0,["kol-input-checkbox--label-align-"+this.getRenderProp("labelAlign")]:!0}),accessKey:n,shortKey:a,required:c,renderNoLabel:!0,renderNoTooltip:!0})),e(p,Object.assign({key:"f9a6a0877f82f4c846ac10363a2beb727fd95419",class:r("kol-input-checkbox__field-control",{"kol-input-checkbox__field-control--checked":t,"kol-input-checkbox__field-control--indeterminate":i,["kol-input-checkbox__field-control--variant-"+l]:!0}),id:this.id,label:this.getRenderProp("label"),hint:this.getRenderProp("hint"),hideLabel:this.getRenderProp("hideLabel"),labelAlign:this.getRenderProp("labelAlign"),infoPopover:this.getInfoPopover(),accessKey:n,shortKey:a,tooltipAlign:this.getRenderProp("tooltipAlign"),disabled:this.getRenderProp("disabled"),msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),required:c,renderNoHint:!0,labelProps:{onMouseDown:this.handleLabelMouseDown}},this.getLabelTooltipRefs()),e(O,{key:"8f16bf7bc53bfb44981d38d845acdfff9a4fd05d",variant:l,icon:this.getIcon(),onMouseDown:this.handleCheckboxMouseDown,inputProps:this.getInputProps()}))))}get host(){return this}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_checked:[{watchChecked:0}],_hideMsg:[{watchHideMsg:0}],_disabled:[{watchDisabled:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_indeterminate:[{watchIndeterminate:0}],_label:[{watchLabel:0}],_labelAlign:[{watchLabelAlign:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_required:[{watchRequired:0}],_ariaDetails:[{watchAriaDetails:0}],_shortKey:[{watchShortKey:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794493099910"); src: url("kolicons.eot?t=1794493099910#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794493099910") format("woff2"), url("kolicons.woff?t=1794493099910") format("woff"), url("kolicons.ttf?t=1794493099910") format("truetype"), url("kolicons.svg?t=1794493099910#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-field-control { display: grid; min-height: var(--a11y-min-size); align-items: center; justify-content: left; grid-template-areas: "input label"; grid-template-columns: auto 1fr; grid-template-rows: auto; } .kol-field-control:has(.kol-field-control__hint) { grid-template-areas: "input label" "hint hint"; grid-template-columns: auto 1fr; grid-template-rows: auto auto; } .kol-field-control--label-align-left:not(.kol-field-control--hide-label) { grid-template-areas: "label input"; grid-template-columns: 1fr auto; grid-template-rows: auto; } .kol-field-control--label-align-left:not(.kol-field-control--hide-label):has(.kol-field-control__hint) { grid-template-areas: "label input" "hint hint"; grid-template-columns: 1fr auto; grid-template-rows: auto auto; } .kol-field-control__input { display: flex; min-height: var(--a11y-min-size); align-items: center; grid-area: input; } .kol-field-control__label { display: flex; min-height: var(--a11y-min-size); flex-grow: 1; align-items: center; cursor: pointer; grid-area: label; } .kol-field-control__label--visually-hidden { display: none; height: 0; margin: 0; padding: 0; visibility: hidden; } .kol-field-control__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-field-control__hint { grid-area: hint; } .kol-field-control--disabled .kol-field-control__label { cursor: not-allowed; } .kol-field-control--required .kol-field-control__label-text:has(.kol-span__slot[hidden])::after, .kol-field-control--required .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-form-field { display: grid; } .kol-form-field__label-text { display: ruby; } .kol-checkbox { display: flex; position: relative; align-items: center; cursor: pointer; } .kol-checkbox--disabled { cursor: not-allowed; } .kol-checkbox .kol-input { background-color: white; border-style: solid; margin: 0; border-width: 2px; appearance: none; cursor: inherit; } .kol-checkbox .kol-input:before { content: ""; } .kol-checkbox--variant-default { position: relative; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); justify-content: center; } .kol-checkbox--variant-default .kol-icon { display: none; position: absolute; inset: auto; z-index: 1; pointer-events: none; } .kol-checkbox--variant-default .kol-input { width: calc(22 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(22 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-checkbox--variant-default.kol-checkbox--checked .kol-icon, .kol-checkbox--variant-default.kol-checkbox--indeterminate .kol-icon { display: block; } .kol-checkbox--variant-switch { position: relative; } .kol-checkbox--variant-switch .kol-input { display: inline-block; position: relative; width: 3.2em; min-width: 3.2em; height: 1.7em; } .kol-checkbox--variant-switch .kol-input::before { background-color: black; position: absolute; top: calc(0.25em - 2 * 1rem / var(--kolibri-root-font-size, 16)); left: calc(0.25em - 2 * 1rem / var(--kolibri-root-font-size, 16)); width: 1.2em; height: 1.2em; transition: 0.5s; } .kol-checkbox--variant-switch .kol-input:checked::before { transform: translateX(1.5em); } .kol-checkbox--variant-switch .kol-input:indeterminate::before { transform: translateX(0.75em); } .kol-checkbox--variant-switch .kol-icon { transform: translate(0, -50%); color: black; display: flex; position: absolute; top: 50%; left: calc(4 * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; width: 1.2em; height: 1.2em; align-items: center; justify-content: center; transition: 0.5s; } .kol-checkbox--variant-switch.kol-checkbox--checked .kol-icon { transform: translate(1.5em, -50%); } .kol-checkbox--variant-switch.kol-checkbox--indeterminate .kol-icon { transform: translate(0.75em, -50%); } .kol-checkbox--variant-button { min-width: var(--a11y-min-size); } .kol-checkbox--variant-button .kol-icon { display: flex; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; justify-content: center; } }'}}},[545,"kol-input-checkbox",{_accessKey:[1,"_access-key"],_checked:[1540],_hideMsg:[4,"_hide-msg"],_disabled:[4],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_infoPopover:[16],_indeterminate:[1540],_label:[1],_labelAlign:[1,"_label-align"],_msg:[1],_name:[1],_on:[16],_required:[4],_ariaDetails:[1,"_aria-details"],_shortKey:[1,"_short-key"],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[8],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],getValue:[64],focus:[64],click:[64]},void 0,{_accessKey:[{watchAccessKey:0}],_checked:[{watchChecked:0}],_hideMsg:[{watchHideMsg:0}],_disabled:[{watchDisabled:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_indeterminate:[{watchIndeterminate:0}],_label:[{watchLabel:0}],_labelAlign:[{watchLabelAlign:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_required:[{watchRequired:0}],_ariaDetails:[{watchAriaDetails:0}],_shortKey:[{watchShortKey:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]);n([A("ctaRef")],C.prototype,"focus",null),n([K("ctaRef")],C.prototype,"click",null);const F=C,G=function(){"undefined"!=typeof customElements&&["kol-input-checkbox"].forEach((e=>{"kol-input-checkbox"===e&&(customElements.get(i(e))||customElements.define(i(e),C))}))};export{F as KolInputCheckbox,G as defineCustomElement}
4
+ import{h as e,proxyCustomElement as t,Host as o,transformTag as i}from"@stencil/core/internal/client";import{a as l,_ as n}from"./tslib.es6.js";import{b as a}from"./bem-registry.js";import{v as r}from"./access-and-short-key.js";import{c as s}from"./clsx.js";import{i as c,g as h,f as d,B as k,F as b}from"./base-web-component2.js";import{B as f}from"./component.js";import{I as u}from"./component5.js";import{I as m}from"./input.js";import{F as p}from"./field-control.js";import{a as _,d as g}from"./component3.js";import{c as y,n as w,b as v}from"./props-from-config.js";import{r as x}from"./required.js";import{c as z}from"./dev.utils.js";import{c as j,d as A,a as K}from"./element-interaction.js";import{s as T}from"./controller.js";const q=["button","default","switch"],I=y("value",!0,(e=>e)),L=y("checked",!1,w),B=["checked","indeterminate","unchecked"],V=y("icons",{checked:"kolicon-check",indeterminate:"kolicon-minus",unchecked:"kolicon-cross"},(e=>{if("object"==typeof e&&null!==e&&B.some((t=>(e=>"string"==typeof e&&e.length>0)(e[t]))))return e;throw Error("Expected an object with at least one icon class of checked, indeterminate or unchecked")})),P=y("indeterminate",!1,w),D=["left","right"],S=y("labelAlign","right",(e=>{const t=v(e);if(D.includes(t))return t;throw Error("Invalid label alignment: "+t)})),H=y("variant","default",(e=>{const t=v(e);if(q.includes(t))return t;throw Error("Invalid checkbox variant: "+t)})),M=a.forBlock("kol-checkbox"),O=t=>{var{class:o,variant:i="default",icon:n,inputProps:a}=t,r=l(t,["class","variant","icon","inputProps"]);const{class:d}=a,k=l(a,["class"]);return e(f,Object.assign({component:"label",block:"kol-checkbox",modifiers:Object.assign({"variant-button":"button"===i,"variant-default":"default"===i,"variant-switch":"switch"===i,checked:!!a.checked,indeterminate:!!a.indeterminate,disabled:!!a.disabled,required:!!a.required,touched:!!a.touched},c(a.msg,a.touched)?{[h(a.msg)]:!0}:{}),class:o},r),e(u,{label:"",icons:n,class:M("icon")}),e(m,Object.assign({class:s(M("input"),d)},k,{type:"checkbox"})))},E={required:[...d.required],optional:[...d.optional,_,I,L,V,P,S,x,g,H]},C=a.forBlock("kol-input-checkbox"),F=t(class extends k{constructor(e){super(!1),!1!==e&&this.__registerHost(),this.__attachShadow(),this.id=z("input-checkbox"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=j(),this.propsConfig=E,this._accessKey=void 0,this._checked=!1,this._hideMsg=!1,this._disabled=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._infoPopover=void 0,this._indeterminate=void 0,this._labelAlign="right",this._msg=void 0,this._name=void 0,this._on=void 0,this._required=!1,this._ariaDetails=void 0,this._shortKey=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=!0,this._variant="default",this.handleCheckboxInput=e=>{this._checked=!this._checked,this._indeterminate=!1,this.handleInput(e,this.getModelValue())},this.handleCheckboxChange=e=>{this.handleChange(e,this.getModelValue())},this.handleCheckboxKeyDown=e=>{this.handleKeyDown(e),T(e,{form:this.host,ref:this.ctaRef.el})},this.handleCheckboxBlur=e=>{this._disabled||this.handleBlur(e)},this.handleLabelMouseDown=e=>{this.inputHasFocus&&e.preventDefault()},this.handleCheckboxMouseDown=e=>{!this.inputHasFocus||e.target instanceof HTMLInputElement||e.preventDefault()},this.initFormAssociation("checkbox",this._name)}watchAccessKey(e){_.apply(e,(e=>this.setRenderProp("accessKey",e))),r(e,this._shortKey)}watchChecked(e){L.apply(e,(e=>this.setRenderProp("checked",e))),this.syncFormAssociatedValue()}watchHideMsg(e){this.applyHideMsg(e)}watchDisabled(e){this.applyDisabled(e)}watchHideLabel(e){this.applyHideLabel(e)}watchHint(e){this.applyHint(e)}watchIcons(e){V.apply(e,(e=>this.setRenderProp("icons",Object.assign(Object.assign({},this.getRenderProp("icons")),e))))}watchInfoPopover(e){this.applyInfoPopover(e)}watchIndeterminate(e){P.apply(e,(e=>this.setRenderProp("indeterminate",e)))}watchLabel(e){this.applyLabel(e)}watchLabelAlign(e){S.apply(e,(e=>this.setRenderProp("labelAlign",e)))}watchMsg(e){this.applyMsg(e)}watchName(e){this.applyName(e)}watchOn(e){this.applyOn(e)}watchRequired(e){x.apply(e,(e=>this.setRenderProp("required",e)))}watchAriaDetails(e){this.applyAriaDetails(e)}watchShortKey(e){g.apply(e,(e=>this.setRenderProp("shortKey",e))),r(this._accessKey,e)}watchSyncValueBySelector(e){this.applySyncValueBySelector(e)}watchTooltipAlign(e){this.applyTooltipAlign(e)}watchTouched(e){this.applyTouched(e)}watchValue(e){null==e?this.setRenderProp("value",e):I.apply(e,(e=>this.setRenderProp("value",e))),this.syncFormAssociatedValue()}watchVariant(e){H.apply(e,(e=>this.setRenderProp("variant",e)))}getValue(){return Promise.resolve(this.getModelValue())}focus(e){return Promise.resolve()}async click(){return Promise.resolve()}componentWillLoad(){this._touched=!0===this._touched,this.watchAriaDetails(this._ariaDetails),this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccessKey(this._accessKey),this.watchMsg(this._msg),this.watchDisabled(this._disabled),this.watchHideMsg(this._hideMsg),this.watchHideLabel(this._hideLabel),this.watchHint(this._hint),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchShortKey(this._shortKey),this.watchOn(this._on),this.watchTooltipAlign(this._tooltipAlign),this.watchRequired(this._required),this.watchChecked(this._checked),this.watchIcons(this._icons),this.watchIndeterminate(this._indeterminate),this.watchValue(this._value),this.watchVariant(this._variant),this.watchLabelAlign(this._labelAlign)}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField()}getModelValue(){return this._checked?this.getRenderProp("value"):null}syncFormAssociatedValue(){this.formAssociation.setFormAssociatedValue(this.getModelValue())}getIcon(){const e=this.getRenderProp("icons");return this.getRenderProp("indeterminate")?e.indeterminate:this.getRenderProp("checked")?e.checked:e.unchecked}getInputProps(){const e=this.getRenderProp("shortKey"),{ariaDescribedBy:t,hasError:o}=this.getAria();return Object.assign(Object.assign({id:this.id,hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),value:this.getRenderProp("value"),accessKey:this.getRenderProp("accessKey")||void 0,disabled:this.getRenderProp("disabled"),name:null==this._name?void 0:this.getRenderProp("name"),ariaDescribedBy:t,required:this.getRenderProp("required"),checked:this.getRenderProp("checked"),indeterminate:this.getRenderProp("indeterminate"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")},e?{"aria-keyshortcuts":e}:{}),{class:s({"visually-hidden":"button"===this.getRenderProp("variant")}),ref:this.ctaRef,onBlur:this.handleCheckboxBlur,onChange:this.handleCheckboxChange,onFocus:this.handleFocus,onInput:this.handleCheckboxInput,onKeyDown:this.handleCheckboxKeyDown,"aria-invalid":o?"true":void 0})}render(){const t=this.getRenderProp("checked"),i=this.getRenderProp("indeterminate"),l=this.getRenderProp("variant"),n=this.getRenderProp("accessKey")||void 0,a=this.getRenderProp("shortKey")||void 0,r=this.getRenderProp("required");return e(o,{key:"9d8f9f1a76d6136279e2a16390c26d358de089cf"},e(b,Object.assign({key:"bc3e19723334f11f76b6f41881aae1eb1896e0a7"},this.getFormFieldProps({class:C({checked:t,indeterminate:i,["variant-"+l]:!0,["label-align-"+this.getRenderProp("labelAlign")]:!0}),accessKey:n,shortKey:a,required:r,renderNoLabel:!0,renderNoTooltip:!0})),e(p,Object.assign({key:"189767fc96708075bd579d260a4d1425fe243a28",class:C("field-control",{checked:t,indeterminate:i,["variant-"+l]:!0}),id:this.id,label:this.getRenderProp("label"),hint:this.getRenderProp("hint"),hideLabel:this.getRenderProp("hideLabel"),labelAlign:this.getRenderProp("labelAlign"),infoPopover:this.getInfoPopover(),accessKey:n,shortKey:a,tooltipAlign:this.getRenderProp("tooltipAlign"),disabled:this.getRenderProp("disabled"),msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),required:r,renderNoHint:!0,labelProps:{onMouseDown:this.handleLabelMouseDown}},this.getLabelTooltipRefs()),e(O,{key:"f15b1f35a6abd220c7af82c6e07378d4e88713ff",variant:l,icon:this.getIcon(),onMouseDown:this.handleCheckboxMouseDown,inputProps:this.getInputProps()}))))}get host(){return this}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_checked:[{watchChecked:0}],_hideMsg:[{watchHideMsg:0}],_disabled:[{watchDisabled:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_indeterminate:[{watchIndeterminate:0}],_label:[{watchLabel:0}],_labelAlign:[{watchLabelAlign:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_required:[{watchRequired:0}],_ariaDetails:[{watchAriaDetails:0}],_shortKey:[{watchShortKey:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794913000943"); src: url("kolicons.eot?t=1794913000943#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794913000943") format("woff2"), url("kolicons.woff?t=1794913000943") format("woff"), url("kolicons.ttf?t=1794913000943") format("truetype"), url("kolicons.svg?t=1794913000943#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-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-field-control { display: grid; min-height: var(--a11y-min-size); align-items: center; justify-content: left; grid-template-areas: "input label"; grid-template-columns: auto 1fr; grid-template-rows: auto; } .kol-field-control:has(.kol-field-control__hint) { grid-template-areas: "input label" "hint hint"; grid-template-columns: auto 1fr; grid-template-rows: auto auto; } .kol-field-control--label-align-left:not(.kol-field-control--hide-label) { grid-template-areas: "label input"; grid-template-columns: 1fr auto; grid-template-rows: auto; } .kol-field-control--label-align-left:not(.kol-field-control--hide-label):has(.kol-field-control__hint) { grid-template-areas: "label input" "hint hint"; grid-template-columns: 1fr auto; grid-template-rows: auto auto; } .kol-field-control__input { display: flex; min-height: var(--a11y-min-size); align-items: center; grid-area: input; } .kol-field-control__label { display: flex; min-height: var(--a11y-min-size); flex-grow: 1; align-items: center; cursor: pointer; grid-area: label; } .kol-field-control__label--visually-hidden { display: none; height: 0; margin: 0; padding: 0; visibility: hidden; } .kol-field-control__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-field-control__hint { grid-area: hint; } .kol-field-control--disabled .kol-field-control__label { cursor: not-allowed; } .kol-field-control--required .kol-field-control__label-text:has(.kol-span__slot[hidden])::after, .kol-field-control--required .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-form-field { display: grid; } .kol-form-field__label-text { display: ruby; } .kol-checkbox { display: flex; position: relative; align-items: center; cursor: pointer; } .kol-checkbox--disabled { cursor: not-allowed; } .kol-checkbox .kol-input { background-color: white; border-style: solid; margin: 0; border-width: 2px; appearance: none; cursor: inherit; } .kol-checkbox .kol-input:before { content: ""; } .kol-checkbox--variant-default { position: relative; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); justify-content: center; } .kol-checkbox--variant-default .kol-icon { display: none; position: absolute; inset: auto; z-index: 1; pointer-events: none; } .kol-checkbox--variant-default .kol-input { width: calc(22 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(22 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-checkbox--variant-default.kol-checkbox--checked .kol-icon, .kol-checkbox--variant-default.kol-checkbox--indeterminate .kol-icon { display: block; } .kol-checkbox--variant-switch { position: relative; } .kol-checkbox--variant-switch .kol-input { display: inline-block; position: relative; width: 3.2em; min-width: 3.2em; height: 1.7em; } .kol-checkbox--variant-switch .kol-input::before { background-color: black; position: absolute; top: calc(0.25em - 2 * 1rem / var(--kolibri-root-font-size, 16)); left: calc(0.25em - 2 * 1rem / var(--kolibri-root-font-size, 16)); width: 1.2em; height: 1.2em; transition: 0.5s; } .kol-checkbox--variant-switch .kol-input:checked::before { transform: translateX(1.5em); } .kol-checkbox--variant-switch .kol-input:indeterminate::before { transform: translateX(0.75em); } .kol-checkbox--variant-switch .kol-icon { transform: translate(0, -50%); color: black; display: flex; position: absolute; top: 50%; left: calc(4 * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; width: 1.2em; height: 1.2em; align-items: center; justify-content: center; transition: 0.5s; } .kol-checkbox--variant-switch.kol-checkbox--checked .kol-icon { transform: translate(1.5em, -50%); } .kol-checkbox--variant-switch.kol-checkbox--indeterminate .kol-icon { transform: translate(0.75em, -50%); } .kol-checkbox--variant-button { min-width: var(--a11y-min-size); } .kol-checkbox--variant-button .kol-icon { display: flex; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; justify-content: center; } }'}}},[545,"kol-input-checkbox",{_accessKey:[1,"_access-key"],_checked:[1540],_hideMsg:[4,"_hide-msg"],_disabled:[4],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_infoPopover:[16],_indeterminate:[1540],_label:[1],_labelAlign:[1,"_label-align"],_msg:[1],_name:[1],_on:[16],_required:[4],_ariaDetails:[1,"_aria-details"],_shortKey:[1,"_short-key"],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[8],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],getValue:[64],focus:[64],click:[64]},void 0,{_accessKey:[{watchAccessKey:0}],_checked:[{watchChecked:0}],_hideMsg:[{watchHideMsg:0}],_disabled:[{watchDisabled:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_indeterminate:[{watchIndeterminate:0}],_label:[{watchLabel:0}],_labelAlign:[{watchLabelAlign:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_required:[{watchRequired:0}],_ariaDetails:[{watchAriaDetails:0}],_shortKey:[{watchShortKey:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]);n([A("ctaRef")],F.prototype,"focus",null),n([K("ctaRef")],F.prototype,"click",null);const G=F,N=function(){"undefined"!=typeof customElements&&["kol-input-checkbox"].forEach((e=>{"kol-input-checkbox"===e&&(customElements.get(i(e))||customElements.define(i(e),F))}))};export{G as KolInputCheckbox,N as defineCustomElement}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{proxyCustomElement as t,h as o,Host as e,transformTag as i}from"@stencil/core/internal/client";import{_ as n}from"./tslib.es6.js";import{v as a}from"./access-and-short-key.js";import{h as l,g as r,I as s}from"./input-container.js";import{f as c,B as h,F as d}from"./base-web-component2.js";import{I as k}from"./input.js";import{a as u,S as p}from"./suggestions2.js";import"./bem-registry.js";import{a as m,d as f,v as b}from"./component3.js";import"./props-from-config.js";import{s as _}from"./smart-button.js";import{s as g}from"./suggestions.js";import{s as y}from"./value-string.js";import{c as w}from"./dev.utils.js";import{c as v,d as x,a as B}from"./element-interaction.js";const z={required:[...c.required],optional:[...c.optional,m,u,l,f,_,y,g,b]},j=t(class extends h{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=w("input-color"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=v(),this.propsConfig=z,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=t=>{const o=t.target.value;this.setRenderProp("value",o),this.ctaRef.el&&(this.ctaRef.el.value=o),this.handleInput(t)},this.initFormAssociation("color",this._name)}watchAccessKey(t){m.apply(t,(t=>this.setRenderProp("accessKey",t))),a(t,this._shortKey)}watchAriaDetails(t){this.applyAriaDetails(t)}watchAutoComplete(t){u.apply(t,(t=>this.setRenderProp("autoComplete",t)))}watchDisabled(t){this.applyDisabled(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchIcons(t){l.apply(t,(t=>this.setRenderProp("icons",t)))}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMsg(t){this.applyMsg(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchShortKey(t){f.apply(t,(t=>this.setRenderProp("shortKey",t))),a(this._accessKey,t)}watchSmartButton(t){null==t?this.unsetRenderProp("smartButton"):_.apply(t,(t=>this.setRenderProp("smartButton",t)))}watchSuggestions(t){g.apply(t,(t=>this.setRenderProp("suggestions",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchValue(t){y.apply(t,(t=>this.setRenderProp("value",t))),this.formAssociation.setFormAssociatedValue(this.getRenderProp("value"))}watchVariant(t){b.apply(t,(t=>this.setRenderProp("variant",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.watchSuggestions(this._suggestions),this.watchValue(this._value)}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField()}getInputProps(){const t=this.id,e=this.getRenderProp("name"),i=this.getRenderProp("accessKey"),n=this.getRenderProp("shortKey"),a=this.getRenderProp("suggestions"),{ariaDescribedBy:l,hasError:r}=this.getAria();return Object.assign(Object.assign(Object.assign(Object.assign({id:t,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:a.length>0?o(p,{id:t,suggestions:a}):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:l,"aria-invalid":r?"true":void 0})}render(){const t=this.getRenderProp("disabled"),{startAdornment:i,endAdornment:n}=r({icons:this.getRenderProp("icons"),smartButton:this.getSmartButtonFcProps(this.getRenderProp("smartButton"),t)});return o(e,{key:"1de493d1d4d0ab6f698561946edaee37594ea5f0"},o(d,Object.assign({key:"425c4128ccb67ea0f60fa31fe0d544ea30256867"},this.getFormFieldProps({class:"kol-input-color",accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,variant:this.getRenderProp("variant")})),o(s,{key:"4b1a16ec9a47de19ae04d2603dd8ccf6b34634d7",disabled:t,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:n},o(k,Object.assign({key:"1c0ebfcbf1506156c3d34042f8e5ed60c95dc997"},this.getInputProps())))))}get host(){return this}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_autoComplete:[{watchAutoComplete:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_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}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794493099910"); src: url("kolicons.eot?t=1794493099910#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794493099910") format("woff2"), url("kolicons.woff?t=1794493099910") format("woff"), url("kolicons.ttf?t=1794493099910") format("truetype"), url("kolicons.svg?t=1794493099910#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; } }'}}},[545,"kol-input-color",{_accessKey:[1,"_access-key"],_ariaDetails:[1,"_aria-details"],_autoComplete:[1,"_auto-complete"],_disabled:[4],_hideMsg:[4,"_hide-msg"],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_infoPopover:[16],_label:[1],_msg:[1],_name:[1],_on:[16],_shortKey:[1,"_short-key"],_smartButton:[1,"_smart-button"],_suggestions:[1],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[1],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],getValue:[64],focus:[64],click:[64]},void 0,{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_autoComplete:[{watchAutoComplete:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_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")],j.prototype,"focus",null),n([B("ctaRef")],j.prototype,"click",null);const K=j,S=function(){"undefined"!=typeof customElements&&["kol-input-color"].forEach((t=>{"kol-input-color"===t&&(customElements.get(i(t))||customElements.define(i(t),j))}))};export{K as KolInputColor,S as defineCustomElement}
4
+ import{proxyCustomElement as t,h as o,Host as e,transformTag as i}from"@stencil/core/internal/client";import{_ as n}from"./tslib.es6.js";import{b as a}from"./bem-registry.js";import{v as l}from"./access-and-short-key.js";import{h as r,g as s,I as c}from"./input-container.js";import{f as h,B as d,F as k}from"./base-web-component2.js";import{I as u}from"./input.js";import{a as m,S as p}from"./suggestions2.js";import{a as b,d as f,v as _}from"./component3.js";import"./props-from-config.js";import{s as g}from"./smart-button.js";import{s as y}from"./suggestions.js";import{s as w}from"./value-string.js";import{c as v}from"./dev.utils.js";import{c as x,d as B,a as z}from"./element-interaction.js";const j={required:[...h.required],optional:[...h.optional,b,m,r,f,g,w,y,_]},K=a.forBlock("kol-input-color"),S=t(class extends d{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=v("input-color"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=x(),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._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=t=>{const o=t.target.value;this.setRenderProp("value",o),this.ctaRef.el&&(this.ctaRef.el.value=o),this.handleInput(t)},this.initFormAssociation("color",this._name)}watchAccessKey(t){b.apply(t,(t=>this.setRenderProp("accessKey",t))),l(t,this._shortKey)}watchAriaDetails(t){this.applyAriaDetails(t)}watchAutoComplete(t){m.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)}watchMsg(t){this.applyMsg(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchShortKey(t){f.apply(t,(t=>this.setRenderProp("shortKey",t))),l(this._accessKey,t)}watchSmartButton(t){null==t?this.unsetRenderProp("smartButton"):g.apply(t,(t=>this.setRenderProp("smartButton",t)))}watchSuggestions(t){y.apply(t,(t=>this.setRenderProp("suggestions",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchValue(t){w.apply(t,(t=>this.setRenderProp("value",t))),this.formAssociation.setFormAssociatedValue(this.getRenderProp("value"))}watchVariant(t){_.apply(t,(t=>this.setRenderProp("variant",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.watchSuggestions(this._suggestions),this.watchValue(this._value)}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField()}getInputProps(){const t=this.id,e=this.getRenderProp("name"),i=this.getRenderProp("accessKey"),n=this.getRenderProp("shortKey"),a=this.getRenderProp("suggestions"),{ariaDescribedBy:l,hasError:r}=this.getAria();return Object.assign(Object.assign(Object.assign(Object.assign({id:t,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:a.length>0?o(p,{id:t,suggestions:a}):void 0,class:K("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:l,"aria-invalid":r?"true":void 0})}render(){const t=this.getRenderProp("disabled"),{startAdornment:i,endAdornment:n}=s({icons:this.getRenderProp("icons"),smartButton:this.getSmartButtonFcProps(this.getRenderProp("smartButton"),t)});return o(e,{key:"89e0f26553404c7836b933b0f36d8075b8bad263"},o(k,Object.assign({key:"b587f9fe1e55ef2708b4621c5b9e12abea47e0e9"},this.getFormFieldProps({class:K(),accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,variant:this.getRenderProp("variant")})),o(c,{key:"a6e45cf9a2e54391629b6ddd04b7e7b24b1c2dfe",disabled:t,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:n},o(u,Object.assign({key:"0b65d575f9f5938229289aaccc8c514171755c6a"},this.getInputProps())))))}get host(){return this}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_autoComplete:[{watchAutoComplete:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_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}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794913000943"); src: url("kolicons.eot?t=1794913000943#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794913000943") format("woff2"), url("kolicons.woff?t=1794913000943") format("woff"), url("kolicons.ttf?t=1794913000943") format("truetype"), url("kolicons.svg?t=1794913000943#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-button { background-color: transparent; display: inline-block; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); margin: 0; padding: 0; text-align: center; } .kol-button__interactive-element { border-style: none; display: block; border-width: medium; font-weight: inherit; font-style: inherit; text-align: inherit; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: "​"; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-form-field .kol-popover-button { display: inline; } .kol-form-field .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-form-field .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-form-field .kol-popover-button--inline { display: inline-block; } .kol-form-field .kol-popover-button--inline .kol-button, .kol-form-field .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-form-field .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-form-field .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-form-field { display: grid; } .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label { cursor: pointer; } .kol-form-field__label { display: flex; } .kol-form-field__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-form-field--required .kol-form-field__label-text:has(.kol-span__slot[hidden]) .kol-span__label::after, .kol-form-field--required:not(:has(.kol-form-field__label--legend)) .kol-form-field__input .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-input-container { background-color: transparent; display: grid; position: relative; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; grid-template-columns: 1fr; } .kol-input-container:has(> .kol-input-container__adornment--start) { grid-template-columns: auto 1fr auto; } .kol-input-container__container { position: relative; z-index: 1; } .kol-input-container__adornment { display: flex; align-items: center; } .kol-input-container__adornment .kol-icon { display: grid; place-items: center; } .kol-input { background-color: transparent; width: 100%; min-width: var(--a11y-min-size); } .kol-input { cursor: pointer; } .kol-input:disabled { cursor: not-allowed; } }'}}},[545,"kol-input-color",{_accessKey:[1,"_access-key"],_ariaDetails:[1,"_aria-details"],_autoComplete:[1,"_auto-complete"],_disabled:[4],_hideMsg:[4,"_hide-msg"],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_infoPopover:[16],_label:[1],_msg:[1],_name:[1],_on:[16],_shortKey:[1,"_short-key"],_smartButton:[1,"_smart-button"],_suggestions:[1],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[1],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],getValue:[64],focus:[64],click:[64]},void 0,{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_autoComplete:[{watchAutoComplete:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_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([B("ctaRef")],S.prototype,"focus",null),n([z("ctaRef")],S.prototype,"click",null);const T=S,A=function(){"undefined"!=typeof customElements&&["kol-input-color"].forEach((t=>{"kol-input-color"===t&&(customElements.get(i(t))||customElements.define(i(t),S))}))};export{T as KolInputColor,A as defineCustomElement}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{proxyCustomElement as t,forceUpdate as e,h as o,Host as i,transformTag as n}from"@stencil/core/internal/client";import{_ as a}from"./tslib.es6.js";import{e as l}from"./bem-registry.js";import{v as s}from"./access-and-short-key.js";import{h as r,g as c,I as h}from"./input-container.js";import{f as d,B as u,F as m}from"./base-web-component2.js";import{I as p}from"./input.js";import{a as k,S as f}from"./suggestions2.js";import{a as b,d as _,v as y}from"./component3.js";import{f as g,c as w,b as v,i as x}from"./props-from-config.js";import{r as j}from"./read-only.js";import{r as B}from"./required.js";import{s as S}from"./smart-button.js";import{s as z}from"./step.js";import{s as T}from"./suggestions.js";import{c as D}from"./clsx.js";import{c as K}from"./dev.utils.js";import{c as O,d as A,a as M}from"./element-interaction.js";import{s as V}from"./controller.js";const q=["date","datetime-local","month","time","week"],C=/^\d{4}-([0]\d|1[0-2])-([0-2]\d|3[01])/,I=/^\d{4}-([0]\d|1[0-2])-([0-2]\d|3[01])[T ][0-2]\d:[0-5]\d(:[0-5]\d(?:\.\d+)?)?/,L=/^\d{4}-([0]\d|1[0-2])/,P=/^[0-2]\d:[0-5]\d(:[0-5]\d(?:\.\d+)?)?/,H=/^\d{4}-W(?:[0-4]\d|5[0-3])$/;function $(t,{type:e,step:o}){return function(t,e,o){if("string"==typeof t||null===t)return t;if(t instanceof Date){const i=t.getFullYear(),n=(t.getMonth()+1+"").padStart(2,"0"),a=(t.getDate()+"").padStart(2,"0"),l=(t.getHours()+"").padStart(2,"0"),s=(t.getMinutes()+"").padStart(2,"0"),r=(t.getSeconds()+"").padStart(2,"0"),c=[i,n,a].join("-"),h=[l,s,r].join(":");switch(e){case"date":return c;case"datetime-local":return`${c}T${h}`;case"month":return`${i}-${n}`;case"time":return void 0===o||o+""=="60"?`${l}:${s}`:h;case"week":return`${i}-W${function(t){const e=new Date(t),o=(e.getDay()+6)%7;e.setDate(e.getDate()-o+3);const i=e.valueOf();return e.setMonth(0,1),4!==e.getDay()&&e.setMonth(0,1+(4-e.getDay()+7)%7),(""+(1+Math.ceil((i-e.valueOf())/6048e5))).padStart(2,"0")}(t)}`}}}(t,e,o)}function R(t,{type:e}){return null==t||""===t||function(t,e){switch(e){case"date":return C.test(t);case"datetime-local":return I.test(t);case"month":return L.test(t);case"time":return P.test(t);case"week":return H.test(t);default:return!1}}(t,e)}const G=g("max",void 0,$,R),N=g("min",void 0,$,R),E=w("type","date",(function(t){const e=v(t);if(x(e,q))return e;throw Error("Invalid input date type: "+e)})),F=g("value",void 0,$,R);function W(t){return t instanceof Date?"Date":"string"==typeof t?"String":null}function U(t,e){return""===t?null:"Date"!==e?t:function(t){const e=J.exec(t);return e?new Date(Number(e[1]),Number(e[2])-1,Number(e[3])):new Date(t)}(t)}const J=/^(\d{4})-(\d{2})-(\d{2})$/,Q={required:[...d.required],optional:[...d.optional,b,k,r,G,N,E,F,j,B,_,S,z,T,y]},X=t(class extends u{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=K("input-date"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=O(),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 e=this.readValue(t);this._value=e,this.handleInput(t,e)},this.handleDateChange=t=>{const e=this.readValue(t);this.handleChange(t,e),this.hasValue=!!e},this.handleDateBlur=t=>{this.handleBlur(t);const e=t.target.value;!!e!=!!this._value&&(this._value=e)},this.handleDateKeyDown=t=>{this.handleKeyDown(t),V(t,{form:this.host,ref:this.ctaRef.el}),this.getRenderProp("readOnly")&&"Space"===t.code&&t.preventDefault()},this.initFormAssociation("date",this._name)}watchAccessKey(t){b.apply(t,(t=>this.setRenderProp("accessKey",t))),s(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){r.apply(t,(t=>this.setRenderProp("icons",t)))}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMax(t){G.apply(t,(t=>this.setRenderProp("max",t)),this.dateDeps)}watchMin(t){N.apply(t,(t=>this.setRenderProp("min",t)),this.dateDeps)}watchMsg(t){this.applyMsg(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchReadOnly(t){j.apply(t,(t=>this.setRenderProp("readOnly",t)))}watchRequired(t){B.apply(t,(t=>this.setRenderProp("required",t)))}watchShortKey(t){_.apply(t,(t=>this.setRenderProp("shortKey",t))),s(this._accessKey,t)}watchSmartButton(t){null==t?this.unsetRenderProp("smartButton"):S.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){E.apply(t,(t=>this.setRenderProp("type",t)))}watchValue(t){var e;t instanceof Date&&l("Date type will be removed in v3. Use `Iso8601` instead."),F.apply(t,(t=>this.setRenderProp("value",t)),this.dateDeps),this.formAssociation.setFormAssociatedValue(null!==(e=this.getRenderProp("value"))&&void 0!==e?e:null),null!=t&&(this.valueType=W(t))}watchVariant(t){y.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){return Promise.resolve(this.ctaRef.el&&U(this.ctaRef.el.value,this.valueType))}focus(t){return Promise.resolve()}async click(){return Promise.resolve()}reset(){return this.setRenderProp("value",void 0),this.hasValue=!1,e(this),this.formAssociation.setFormAssociatedValue(""),this.ctaRef.el&&(this.ctaRef.el.value=""),Promise.resolve()}componentWillLoad(){this.unsetRenderProp("smartButton"),void 0!==this._value&&(this.valueType=W(this._value)),this._touched=!0===this._touched,this.watchAriaDetails(this._ariaDetails),this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccessKey(this._accessKey),this.watchMsg(this._msg),this.watchDisabled(this._disabled),this.watchHideMsg(this._hideMsg),this.watchHideLabel(this._hideLabel),this.watchHint(this._hint),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchShortKey(this._shortKey),this.watchSmartButton(this._smartButton),this.watchOn(this._on),this.watchTooltipAlign(this._tooltipAlign),this.watchVariant(this._variant),this.watchIcons(this._icons),this.watchAutoComplete(this._autoComplete),this.watchMax(this._max),this.watchMin(this._min),this.watchSuggestions(this._suggestions),this.watchReadOnly(this._readOnly),this.watchRequired(this._required),this.watchStep(this._step),this.watchType(this._type),this.watchValue(this._value),this.hasValue=!!this.getRenderProp("value")}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField()}get dateDeps(){return{type:this._type,step:this._step}}readValue(t){return U(t.target.value,this.valueType)}getInputProps(){var t,e,i,n;const a=this.id,l=this.getRenderProp("accessKey"),s=this.getRenderProp("shortKey"),r=this.getRenderProp("suggestions"),{ariaDescribedBy:c,hasError:h}=this.getAria();return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({id:a,hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),disabled:this.getRenderProp("disabled"),name:this.getRenderProp("name")||void 0},l?{accessKey:l}:{}),{type:this.getRenderProp("type"),value:null!==(t=this.getRenderProp("value"))&&void 0!==t?t:null===this._value?null:void 0,required:this.getRenderProp("required"),autoComplete:this.getRenderProp("autoComplete"),readonly:this.getRenderProp("readOnly"),min:null!==(e=this.getRenderProp("min"))&&void 0!==e?e:null===this._min?null:void 0,max:null!==(i=this.getRenderProp("max"))&&void 0!==i?i:null===this._max?null:void 0,step:null!==(n=this.getRenderProp("step"))&&void 0!==n?n:null,touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")}),s?{"aria-keyshortcuts":s}:{}),r.length>0?{suggestions:o(f,{id:a,suggestions:r})}:{}),{ref:this.ctaRef,onBlur:this.handleDateBlur,onChange:this.handleDateChange,onClick:this.handleClick,onFocus:this.handleFocus,onInput:this.handleDateInput,onKeyDown:this.handleDateKeyDown,ariaDescribedBy:c,"aria-invalid":h?"true":void 0})}render(){const t=this.getRenderProp("disabled"),{startAdornment:e,endAdornment:n}=c({icons:this.getRenderProp("icons"),smartButton:this.getSmartButtonFcProps(this.getRenderProp("smartButton"),t)});return o(i,{key:"7e184d9cd4515cb8754ac761fa69a5614d088fa2"},o(m,Object.assign({key:"4182ce8f226dcc7acb8401af6fea3a34bc59795b"},this.getFormFieldProps({class:D("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")})),o(h,{key:"01aba8904b261dd6afb6c6dc9ed36899741ca20e",disabled:t,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:e,endAdornment:n},o(p,Object.assign({key:"3be495abebfe3f3467945c7f31647a4c0951bd76"},this.getInputProps())))))}get host(){return this}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_autoComplete:[{watchAutoComplete:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_max:[{watchMax:0}],_min:[{watchMin:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_readOnly:[{watchReadOnly:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_suggestions:[{watchSuggestions:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_step:[{watchStep:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_type:[{watchType:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794493099910"); src: url("kolicons.eot?t=1794493099910#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794493099910") format("woff2"), url("kolicons.woff?t=1794493099910") format("woff"), url("kolicons.ttf?t=1794493099910") format("truetype"), url("kolicons.svg?t=1794493099910#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-button { background-color: transparent; display: inline-block; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); margin: 0; padding: 0; text-align: center; } .kol-button__interactive-element { border-style: none; display: block; border-width: medium; font-weight: inherit; font-style: inherit; text-align: inherit; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: "​"; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-form-field .kol-popover-button { display: inline; } .kol-form-field .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-form-field .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-form-field .kol-popover-button--inline { display: inline-block; } .kol-form-field .kol-popover-button--inline .kol-button, .kol-form-field .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-form-field .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-form-field .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-form-field { display: grid; } .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label { cursor: pointer; } .kol-form-field__label { display: flex; } .kol-form-field__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-form-field--required .kol-form-field__label-text:has(.kol-span__slot[hidden]) .kol-span__label::after, .kol-form-field--required:not(:has(.kol-form-field__label--legend)) .kol-form-field__input .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-input-container { background-color: transparent; display: grid; position: relative; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; grid-template-columns: 1fr; } .kol-input-container:has(> .kol-input-container__adornment--start) { grid-template-columns: auto 1fr auto; } .kol-input-container__container { position: relative; z-index: 1; } .kol-input-container__adornment { display: flex; align-items: center; } .kol-input-container__adornment .kol-icon { display: grid; place-items: center; } .kol-input { background-color: transparent; width: 100%; min-width: var(--a11y-min-size); } .kol-input { cursor: text; } .kol-input::-webkit-calendar-picker-indicator { cursor: pointer; } }'}}},[545,"kol-input-date",{_accessKey:[1,"_access-key"],_ariaDetails:[1,"_aria-details"],_autoComplete:[1,"_auto-complete"],_disabled:[4],_hideMsg:[4,"_hide-msg"],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_infoPopover:[16],_label:[1],_max:[1],_min:[1],_msg:[1],_name:[1],_on:[16],_readOnly:[4,"_read-only"],_required:[4],_shortKey:[1,"_short-key"],_smartButton:[1,"_smart-button"],_suggestions:[1],_syncValueBySelector:[1,"_sync-value-by-selector"],_step:[8],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_type:[1],_value:[1537],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],getValue:[64],focus:[64],click:[64],reset:[64]},void 0,{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_autoComplete:[{watchAutoComplete:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_max:[{watchMax:0}],_min:[{watchMin:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_readOnly:[{watchReadOnly:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_suggestions:[{watchSuggestions:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_step:[{watchStep:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_type:[{watchType:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]);a([A("ctaRef")],X.prototype,"focus",null),a([M("ctaRef")],X.prototype,"click",null);const Y=X,Z=function(){"undefined"!=typeof customElements&&["kol-input-date"].forEach((t=>{"kol-input-date"===t&&(customElements.get(n(t))||customElements.define(n(t),X))}))};export{Y as KolInputDate,Z as defineCustomElement}
4
+ import{proxyCustomElement as t,forceUpdate as e,h as o,Host as i,transformTag as n}from"@stencil/core/internal/client";import{_ as a}from"./tslib.es6.js";import{b as l,e as s}from"./bem-registry.js";import{v as r}from"./access-and-short-key.js";import{h as c,g as h,I as d}from"./input-container.js";import{f as u,B as m,F as p}from"./base-web-component2.js";import{I as k}from"./input.js";import{a as f,S as b}from"./suggestions2.js";import{a as _,d as y,v as g}from"./component3.js";import{f as w,c as v,b as x,i as j}from"./props-from-config.js";import{r as B}from"./read-only.js";import{r as S}from"./required.js";import{s as z}from"./smart-button.js";import{s as T}from"./step.js";import{s as D}from"./suggestions.js";import{c as K}from"./clsx.js";import{c as O}from"./dev.utils.js";import{c as A,d as M,a as V}from"./element-interaction.js";import{s as q}from"./controller.js";const C=["date","datetime-local","month","time","week"],I=/^\d{4}-([0]\d|1[0-2])-([0-2]\d|3[01])/,L=/^\d{4}-([0]\d|1[0-2])-([0-2]\d|3[01])[T ][0-2]\d:[0-5]\d(:[0-5]\d(?:\.\d+)?)?/,P=/^\d{4}-([0]\d|1[0-2])/,H=/^[0-2]\d:[0-5]\d(:[0-5]\d(?:\.\d+)?)?/,$=/^\d{4}-W(?:[0-4]\d|5[0-3])$/;function R(t,{type:e,step:o}){return function(t,e,o){if("string"==typeof t||null===t)return t;if(t instanceof Date){const i=t.getFullYear(),n=(t.getMonth()+1+"").padStart(2,"0"),a=(t.getDate()+"").padStart(2,"0"),l=(t.getHours()+"").padStart(2,"0"),s=(t.getMinutes()+"").padStart(2,"0"),r=(t.getSeconds()+"").padStart(2,"0"),c=[i,n,a].join("-"),h=[l,s,r].join(":");switch(e){case"date":return c;case"datetime-local":return`${c}T${h}`;case"month":return`${i}-${n}`;case"time":return void 0===o||o+""=="60"?`${l}:${s}`:h;case"week":return`${i}-W${function(t){const e=new Date(t),o=(e.getDay()+6)%7;e.setDate(e.getDate()-o+3);const i=e.valueOf();return e.setMonth(0,1),4!==e.getDay()&&e.setMonth(0,1+(4-e.getDay()+7)%7),(""+(1+Math.ceil((i-e.valueOf())/6048e5))).padStart(2,"0")}(t)}`}}}(t,e,o)}function G(t,{type:e}){return null==t||""===t||function(t,e){switch(e){case"date":return I.test(t);case"datetime-local":return L.test(t);case"month":return P.test(t);case"time":return H.test(t);case"week":return $.test(t);default:return!1}}(t,e)}const N=w("max",void 0,R,G),E=w("min",void 0,R,G),F=v("type","date",(function(t){const e=x(t);if(j(e,C))return e;throw Error("Invalid input date type: "+e)})),W=w("value",void 0,R,G);function U(t){return t instanceof Date?"Date":"string"==typeof t?"String":null}function J(t,e){return""===t?null:"Date"!==e?t:function(t){const e=Q.exec(t);return e?new Date(Number(e[1]),Number(e[2])-1,Number(e[3])):new Date(t)}(t)}const Q=/^(\d{4})-(\d{2})-(\d{2})$/,X={required:[...u.required],optional:[...u.optional,_,f,c,N,E,F,W,B,S,y,z,T,D,g]},Y=l.forBlock("kol-input-date"),Z=t(class extends m{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=O("input-date"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=A(),this.valueType=null,this.hasValue=!1,this.propsConfig=X,this._accessKey=void 0,this._ariaDetails=void 0,this._autoComplete="off",this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._infoPopover=void 0,this._max=void 0,this._min=void 0,this._msg=void 0,this._name=void 0,this._on=void 0,this._readOnly=!1,this._required=!1,this._shortKey=void 0,this._smartButton=void 0,this._suggestions=void 0,this._syncValueBySelector=void 0,this._step=void 0,this._tooltipAlign="top",this._touched=!1,this._type="date",this._value=void 0,this._variant=void 0,this.handleDateInput=t=>{const e=this.readValue(t);this._value=e,this.handleInput(t,e)},this.handleDateChange=t=>{const e=this.readValue(t);this.handleChange(t,e),this.hasValue=!!e},this.handleDateBlur=t=>{this.handleBlur(t);const e=t.target.value;!!e!=!!this._value&&(this._value=e)},this.handleDateKeyDown=t=>{this.handleKeyDown(t),q(t,{form:this.host,ref:this.ctaRef.el}),this.getRenderProp("readOnly")&&"Space"===t.code&&t.preventDefault()},this.initFormAssociation("date",this._name)}watchAccessKey(t){_.apply(t,(t=>this.setRenderProp("accessKey",t))),r(t,this._shortKey)}watchAriaDetails(t){this.applyAriaDetails(t)}watchAutoComplete(t){f.apply(t,(t=>this.setRenderProp("autoComplete",t)))}watchDisabled(t){this.applyDisabled(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchIcons(t){c.apply(t,(t=>this.setRenderProp("icons",t)))}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMax(t){N.apply(t,(t=>this.setRenderProp("max",t)),this.dateDeps)}watchMin(t){E.apply(t,(t=>this.setRenderProp("min",t)),this.dateDeps)}watchMsg(t){this.applyMsg(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchReadOnly(t){B.apply(t,(t=>this.setRenderProp("readOnly",t)))}watchRequired(t){S.apply(t,(t=>this.setRenderProp("required",t)))}watchShortKey(t){y.apply(t,(t=>this.setRenderProp("shortKey",t))),r(this._accessKey,t)}watchSmartButton(t){null==t?this.unsetRenderProp("smartButton"):z.apply(t,(t=>this.setRenderProp("smartButton",t)))}watchSuggestions(t){D.apply(t,(t=>this.setRenderProp("suggestions",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchStep(t){T.apply(t,(t=>this.setRenderProp("step",t)))}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchType(t){F.apply(t,(t=>this.setRenderProp("type",t)))}watchValue(t){var e;t instanceof Date&&s("Date type will be removed in v3. Use `Iso8601` instead."),W.apply(t,(t=>this.setRenderProp("value",t)),this.dateDeps),this.formAssociation.setFormAssociatedValue(null!==(e=this.getRenderProp("value"))&&void 0!==e?e:null),null!=t&&(this.valueType=U(t))}watchVariant(t){g.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){return Promise.resolve(this.ctaRef.el&&J(this.ctaRef.el.value,this.valueType))}focus(t){return Promise.resolve()}async click(){return Promise.resolve()}reset(){return this.setRenderProp("value",void 0),this.hasValue=!1,e(this),this.formAssociation.setFormAssociatedValue(""),this.ctaRef.el&&(this.ctaRef.el.value=""),Promise.resolve()}componentWillLoad(){this.unsetRenderProp("smartButton"),void 0!==this._value&&(this.valueType=U(this._value)),this._touched=!0===this._touched,this.watchAriaDetails(this._ariaDetails),this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccessKey(this._accessKey),this.watchMsg(this._msg),this.watchDisabled(this._disabled),this.watchHideMsg(this._hideMsg),this.watchHideLabel(this._hideLabel),this.watchHint(this._hint),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchShortKey(this._shortKey),this.watchSmartButton(this._smartButton),this.watchOn(this._on),this.watchTooltipAlign(this._tooltipAlign),this.watchVariant(this._variant),this.watchIcons(this._icons),this.watchAutoComplete(this._autoComplete),this.watchMax(this._max),this.watchMin(this._min),this.watchSuggestions(this._suggestions),this.watchReadOnly(this._readOnly),this.watchRequired(this._required),this.watchStep(this._step),this.watchType(this._type),this.watchValue(this._value),this.hasValue=!!this.getRenderProp("value")}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField()}get dateDeps(){return{type:this._type,step:this._step}}readValue(t){return J(t.target.value,this.valueType)}getInputProps(){var t,e,i,n;const a=this.id,l=this.getRenderProp("accessKey"),s=this.getRenderProp("shortKey"),r=this.getRenderProp("suggestions"),{ariaDescribedBy:c,hasError:h}=this.getAria();return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({id:a,hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),disabled:this.getRenderProp("disabled"),name:this.getRenderProp("name")||void 0},l?{accessKey:l}:{}),{type:this.getRenderProp("type"),value:null!==(t=this.getRenderProp("value"))&&void 0!==t?t:null===this._value?null:void 0,required:this.getRenderProp("required"),autoComplete:this.getRenderProp("autoComplete"),readonly:this.getRenderProp("readOnly"),min:null!==(e=this.getRenderProp("min"))&&void 0!==e?e:null===this._min?null:void 0,max:null!==(i=this.getRenderProp("max"))&&void 0!==i?i:null===this._max?null:void 0,step:null!==(n=this.getRenderProp("step"))&&void 0!==n?n:null,touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")}),s?{"aria-keyshortcuts":s}:{}),r.length>0?{suggestions:o(b,{id:a,suggestions:r})}:{}),{ref:this.ctaRef,onBlur:this.handleDateBlur,onChange:this.handleDateChange,onClick:this.handleClick,onFocus:this.handleFocus,onInput:this.handleDateInput,onKeyDown:this.handleDateKeyDown,ariaDescribedBy:c,"aria-invalid":h?"true":void 0})}render(){const t=this.getRenderProp("disabled"),{startAdornment:e,endAdornment:n}=h({icons:this.getRenderProp("icons"),smartButton:this.getSmartButtonFcProps(this.getRenderProp("smartButton"),t)});return o(i,{key:"23b44960be1170c4260569baf9ef16e5e47ee7b1"},o(p,Object.assign({key:"8e4651fa3225a8e0490f14cff261ea89d2e5625e"},this.getFormFieldProps({class:K(Y(),this.getRenderProp("type"),{"has-value":this.hasValue}),accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,variant:this.getRenderProp("variant"),required:this.getRenderProp("required"),readOnly:this.getRenderProp("readOnly")})),o(d,{key:"514f623d0ed2a1877965ae042c29dbf861462c5f",disabled:t,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:e,endAdornment:n},o(k,Object.assign({key:"4bba5733e85bd0e38acb669eca99417b077a132f"},this.getInputProps())))))}get host(){return this}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_autoComplete:[{watchAutoComplete:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_max:[{watchMax:0}],_min:[{watchMin:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_readOnly:[{watchReadOnly:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_suggestions:[{watchSuggestions:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_step:[{watchStep:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_type:[{watchType:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794913000943"); src: url("kolicons.eot?t=1794913000943#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794913000943") format("woff2"), url("kolicons.woff?t=1794913000943") format("woff"), url("kolicons.ttf?t=1794913000943") format("truetype"), url("kolicons.svg?t=1794913000943#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-button { background-color: transparent; display: inline-block; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); margin: 0; padding: 0; text-align: center; } .kol-button__interactive-element { border-style: none; display: block; border-width: medium; font-weight: inherit; font-style: inherit; text-align: inherit; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: "​"; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-form-field .kol-popover-button { display: inline; } .kol-form-field .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-form-field .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-form-field .kol-popover-button--inline { display: inline-block; } .kol-form-field .kol-popover-button--inline .kol-button, .kol-form-field .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-form-field .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-form-field .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-form-field { display: grid; } .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label { cursor: pointer; } .kol-form-field__label { display: flex; } .kol-form-field__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-form-field--required .kol-form-field__label-text:has(.kol-span__slot[hidden]) .kol-span__label::after, .kol-form-field--required:not(:has(.kol-form-field__label--legend)) .kol-form-field__input .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-input-container { background-color: transparent; display: grid; position: relative; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; grid-template-columns: 1fr; } .kol-input-container:has(> .kol-input-container__adornment--start) { grid-template-columns: auto 1fr auto; } .kol-input-container__container { position: relative; z-index: 1; } .kol-input-container__adornment { display: flex; align-items: center; } .kol-input-container__adornment .kol-icon { display: grid; place-items: center; } .kol-input { background-color: transparent; width: 100%; min-width: var(--a11y-min-size); } .kol-input { cursor: text; } .kol-input::-webkit-calendar-picker-indicator { cursor: pointer; } }'}}},[545,"kol-input-date",{_accessKey:[1,"_access-key"],_ariaDetails:[1,"_aria-details"],_autoComplete:[1,"_auto-complete"],_disabled:[4],_hideMsg:[4,"_hide-msg"],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_infoPopover:[16],_label:[1],_max:[1],_min:[1],_msg:[1],_name:[1],_on:[16],_readOnly:[4,"_read-only"],_required:[4],_shortKey:[1,"_short-key"],_smartButton:[1,"_smart-button"],_suggestions:[1],_syncValueBySelector:[1,"_sync-value-by-selector"],_step:[8],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_type:[1],_value:[1537],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],getValue:[64],focus:[64],click:[64],reset:[64]},void 0,{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_autoComplete:[{watchAutoComplete:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_max:[{watchMax:0}],_min:[{watchMin:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_readOnly:[{watchReadOnly:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_suggestions:[{watchSuggestions:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_step:[{watchStep:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_type:[{watchType:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]);a([M("ctaRef")],Z.prototype,"focus",null),a([V("ctaRef")],Z.prototype,"click",null);const tt=Z,et=function(){"undefined"!=typeof customElements&&["kol-input-date"].forEach((t=>{"kol-input-date"===t&&(customElements.get(n(t))||customElements.define(n(t),Z))}))};export{tt as KolInputDate,et as defineCustomElement}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{proxyCustomElement as t,h as o,Host as e,transformTag as i}from"@stencil/core/internal/client";import{_ as n}from"./tslib.es6.js";import{F as a}from"./base-web-component2.js";import{I as l}from"./input.js";import{I as r}from"./input-container.js";import"./bem-registry.js";import"./props-from-config.js";import{m as s}from"./multiple.js";import{s as c}from"./suggestions.js";import{t as h,B as d}from"./base-web-component3.js";import{c as k}from"./dev.utils.js";import{d as m,a as p}from"./element-interaction.js";const u={required:[...h.required],optional:[...h.optional,s,c]},f=t(class extends d{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=k("input-email"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.propsConfig=u,this._accessKey=void 0,this._ariaDetails=void 0,this._autoComplete="off",this._hasCounter=!1,this._maxLengthBehavior="hard",this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._infoPopover=void 0,this._maxLength=void 0,this._msg=void 0,this._multiple=!1,this._name=void 0,this._on=void 0,this._pattern=void 0,this._placeholder=void 0,this._readOnly=!1,this._required=!1,this._shortKey=void 0,this._smartButton=void 0,this._suggestions=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this._variant=void 0,this.initFormAssociation("email",this._name)}watchAccessKey(t){this.applyAccessKey(t)}watchAriaDetails(t){this.applyAriaDetails(t)}watchAutoComplete(t){this.applyAutoComplete(t)}watchHasCounter(t){this.applyHasCounter(t)}watchMaxLengthBehavior(t){this.applyMaxLengthBehavior(t)}watchDisabled(t){this.applyDisabled(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchIcons(t){this.applyIcons(t)}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMaxLength(t){this.applyMaxLength(t)}watchMsg(t){this.applyMsg(t)}watchMultiple(t){s.apply(t,(t=>this.setRenderProp("multiple",t)))}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchPattern(t){this.applyPattern(t)}watchPlaceholder(t){this.applyPlaceholder(t)}watchReadOnly(t){this.applyReadOnly(t)}watchRequired(t){this.applyRequired(t)}watchShortKey(t){this.applyShortKey(t)}watchSmartButton(t){this.applySmartButton(t)}watchSuggestions(t){c.apply(t,(t=>this.setRenderProp("suggestions",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchValue(t){this.applyValue(t)}watchVariant(t){this.applyVariant(t)}getValue(){var t;return Promise.resolve(null===(t=this.ctaRef.el)||void 0===t?void 0:t.value)}focus(t){return Promise.resolve()}async click(){return Promise.resolve()}componentWillLoad(){this.unsetRenderProp("smartButton"),this._touched=!0===this._touched,this.watchAriaDetails(this._ariaDetails),this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccessKey(this._accessKey),this.watchMsg(this._msg),this.watchDisabled(this._disabled),this.watchHideMsg(this._hideMsg),this.watchHideLabel(this._hideLabel),this.watchHint(this._hint),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchShortKey(this._shortKey),this.watchSmartButton(this._smartButton),this.watchOn(this._on),this.watchTooltipAlign(this._tooltipAlign),this.watchVariant(this._variant),this.watchIcons(this._icons),this.watchAutoComplete(this._autoComplete),this.watchHasCounter(this._hasCounter),this.watchMaxLengthBehavior(this._maxLengthBehavior),this.initMaxLength(this._maxLength),this.watchPattern(this._pattern),this.watchPlaceholder(this._placeholder),this.watchReadOnly(this._readOnly),this.watchRequired(this._required),this.watchSuggestions(this._suggestions),this.watchMultiple(this._multiple),this.initValue(this._value),this.initHasValue()}componentDidLoad(){this.didLoadTextInput()}componentDidUpdate(){this.didUpdateTextInput()}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyTextInput()}render(){const{startAdornment:t,endAdornment:i}=this.getTextInputAdornments();return o(e,{key:"7894af4f5a6919f2c959fbc5deb2a8abbb36e7d7"},o(a,Object.assign({key:"dcf92372653170ae84d64267c1cb9032672ca647"},this.getTextFormFieldProps("kol-input-email email")),o(r,{key:"ee3c170b17e21dc63ac2d93ab36975f47d159d2a",disabled:this.getRenderProp("disabled"),msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:t,endAdornment:i},o(l,Object.assign({key:"eefcc4dd3d28e2c23094cb83fc497886750e48da"},this.getTextInputProps({multiple:this.getRenderProp("multiple"),suggestions:this.getRenderProp("suggestions")},{type:"email"}))))))}get host(){return this}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_autoComplete:[{watchAutoComplete:0}],_hasCounter:[{watchHasCounter:0}],_maxLengthBehavior:[{watchMaxLengthBehavior:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_maxLength:[{watchMaxLength:0}],_msg:[{watchMsg:0}],_multiple:[{watchMultiple:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_pattern:[{watchPattern:0}],_placeholder:[{watchPlaceholder:0}],_readOnly:[{watchReadOnly:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_suggestions:[{watchSuggestions:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794493099910"); src: url("kolicons.eot?t=1794493099910#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794493099910") format("woff2"), url("kolicons.woff?t=1794493099910") format("woff"), url("kolicons.ttf?t=1794493099910") format("truetype"), url("kolicons.svg?t=1794493099910#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-button { background-color: transparent; display: inline-block; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); margin: 0; padding: 0; text-align: center; } .kol-button__interactive-element { border-style: none; display: block; border-width: medium; font-weight: inherit; font-style: inherit; text-align: inherit; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: "​"; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-form-field .kol-popover-button { display: inline; } .kol-form-field .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-form-field .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-form-field .kol-popover-button--inline { display: inline-block; } .kol-form-field .kol-popover-button--inline .kol-button, .kol-form-field .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-form-field .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-form-field .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-form-field { display: grid; } .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label { cursor: pointer; } .kol-form-field__label { display: flex; } .kol-form-field__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-form-field--required .kol-form-field__label-text:has(.kol-span__slot[hidden]) .kol-span__label::after, .kol-form-field--required:not(:has(.kol-form-field__label--legend)) .kol-form-field__input .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-input-container { background-color: transparent; display: grid; position: relative; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; grid-template-columns: 1fr; } .kol-input-container:has(> .kol-input-container__adornment--start) { grid-template-columns: auto 1fr auto; } .kol-input-container__container { position: relative; z-index: 1; } .kol-input-container__adornment { display: flex; align-items: center; } .kol-input-container__adornment .kol-icon { display: grid; place-items: center; } .kol-input { background-color: transparent; width: 100%; min-width: var(--a11y-min-size); } }'}}},[545,"kol-input-email",{_accessKey:[1,"_access-key"],_ariaDetails:[1,"_aria-details"],_autoComplete:[1,"_auto-complete"],_hasCounter:[4,"_has-counter"],_maxLengthBehavior:[1,"_max-length-behavior"],_disabled:[4],_hideMsg:[4,"_hide-msg"],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_infoPopover:[16],_label:[1],_maxLength:[2,"_max-length"],_msg:[1],_multiple:[4],_name:[1],_on:[16],_pattern:[1],_placeholder:[1],_readOnly:[4,"_read-only"],_required:[4],_shortKey:[1,"_short-key"],_smartButton:[1,"_smart-button"],_suggestions:[1],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[1537],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],getValue:[64],focus:[64],click:[64]},void 0,{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_autoComplete:[{watchAutoComplete:0}],_hasCounter:[{watchHasCounter:0}],_maxLengthBehavior:[{watchMaxLengthBehavior:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_maxLength:[{watchMaxLength:0}],_msg:[{watchMsg:0}],_multiple:[{watchMultiple:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_pattern:[{watchPattern:0}],_placeholder:[{watchPlaceholder:0}],_readOnly:[{watchReadOnly:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_suggestions:[{watchSuggestions:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]);n([m("ctaRef")],f.prototype,"focus",null),n([p("ctaRef")],f.prototype,"click",null);const _=f,b=function(){"undefined"!=typeof customElements&&["kol-input-email"].forEach((t=>{"kol-input-email"===t&&(customElements.get(i(t))||customElements.define(i(t),f))}))};export{_ as KolInputEmail,b as defineCustomElement}
4
+ import{proxyCustomElement as t,h as o,Host as e,transformTag as i}from"@stencil/core/internal/client";import{_ as n}from"./tslib.es6.js";import{F as a}from"./base-web-component2.js";import{I as l}from"./input.js";import{I as r}from"./input-container.js";import{b as s}from"./bem-registry.js";import"./props-from-config.js";import{m as c}from"./multiple.js";import{s as h}from"./suggestions.js";import{t as d,B as m}from"./base-web-component3.js";import{c as k}from"./clsx.js";import{c as p}from"./dev.utils.js";import{d as u,a as f}from"./element-interaction.js";const _={required:[...d.required],optional:[...d.optional,c,h]},b=s.forBlock("kol-input-email"),g=t(class extends m{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=p("input-email"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.propsConfig=_,this._accessKey=void 0,this._ariaDetails=void 0,this._autoComplete="off",this._hasCounter=!1,this._maxLengthBehavior="hard",this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._infoPopover=void 0,this._maxLength=void 0,this._msg=void 0,this._multiple=!1,this._name=void 0,this._on=void 0,this._pattern=void 0,this._placeholder=void 0,this._readOnly=!1,this._required=!1,this._shortKey=void 0,this._smartButton=void 0,this._suggestions=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this._variant=void 0,this.initFormAssociation("email",this._name)}watchAccessKey(t){this.applyAccessKey(t)}watchAriaDetails(t){this.applyAriaDetails(t)}watchAutoComplete(t){this.applyAutoComplete(t)}watchHasCounter(t){this.applyHasCounter(t)}watchMaxLengthBehavior(t){this.applyMaxLengthBehavior(t)}watchDisabled(t){this.applyDisabled(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchIcons(t){this.applyIcons(t)}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMaxLength(t){this.applyMaxLength(t)}watchMsg(t){this.applyMsg(t)}watchMultiple(t){c.apply(t,(t=>this.setRenderProp("multiple",t)))}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchPattern(t){this.applyPattern(t)}watchPlaceholder(t){this.applyPlaceholder(t)}watchReadOnly(t){this.applyReadOnly(t)}watchRequired(t){this.applyRequired(t)}watchShortKey(t){this.applyShortKey(t)}watchSmartButton(t){this.applySmartButton(t)}watchSuggestions(t){h.apply(t,(t=>this.setRenderProp("suggestions",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchValue(t){this.applyValue(t)}watchVariant(t){this.applyVariant(t)}getValue(){var t;return Promise.resolve(null===(t=this.ctaRef.el)||void 0===t?void 0:t.value)}focus(t){return Promise.resolve()}async click(){return Promise.resolve()}componentWillLoad(){this.unsetRenderProp("smartButton"),this._touched=!0===this._touched,this.watchAriaDetails(this._ariaDetails),this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccessKey(this._accessKey),this.watchMsg(this._msg),this.watchDisabled(this._disabled),this.watchHideMsg(this._hideMsg),this.watchHideLabel(this._hideLabel),this.watchHint(this._hint),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchShortKey(this._shortKey),this.watchSmartButton(this._smartButton),this.watchOn(this._on),this.watchTooltipAlign(this._tooltipAlign),this.watchVariant(this._variant),this.watchIcons(this._icons),this.watchAutoComplete(this._autoComplete),this.watchHasCounter(this._hasCounter),this.watchMaxLengthBehavior(this._maxLengthBehavior),this.initMaxLength(this._maxLength),this.watchPattern(this._pattern),this.watchPlaceholder(this._placeholder),this.watchReadOnly(this._readOnly),this.watchRequired(this._required),this.watchSuggestions(this._suggestions),this.watchMultiple(this._multiple),this.initValue(this._value),this.initHasValue()}componentDidLoad(){this.didLoadTextInput()}componentDidUpdate(){this.didUpdateTextInput()}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyTextInput()}render(){const{startAdornment:t,endAdornment:i}=this.getTextInputAdornments();return o(e,{key:"08ae831267744fd7c98322a547fbad1077d3b1f8"},o(a,Object.assign({key:"743984d398c11dba015d5b8c1427f0d90ae180ef"},this.getTextFormFieldProps(k(b(),"email"))),o(r,{key:"ad202484cc40752e0def2e081af9683d39556ef7",disabled:this.getRenderProp("disabled"),msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:t,endAdornment:i},o(l,Object.assign({key:"22bea72e7b9dc3a58a68a9a5e60806e1fa16c306"},this.getTextInputProps({multiple:this.getRenderProp("multiple"),suggestions:this.getRenderProp("suggestions")},{type:"email"}))))))}get host(){return this}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_autoComplete:[{watchAutoComplete:0}],_hasCounter:[{watchHasCounter:0}],_maxLengthBehavior:[{watchMaxLengthBehavior:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_maxLength:[{watchMaxLength:0}],_msg:[{watchMsg:0}],_multiple:[{watchMultiple:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_pattern:[{watchPattern:0}],_placeholder:[{watchPlaceholder:0}],_readOnly:[{watchReadOnly:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_suggestions:[{watchSuggestions:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794913000943"); src: url("kolicons.eot?t=1794913000943#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794913000943") format("woff2"), url("kolicons.woff?t=1794913000943") format("woff"), url("kolicons.ttf?t=1794913000943") format("truetype"), url("kolicons.svg?t=1794913000943#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-button { background-color: transparent; display: inline-block; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); margin: 0; padding: 0; text-align: center; } .kol-button__interactive-element { border-style: none; display: block; border-width: medium; font-weight: inherit; font-style: inherit; text-align: inherit; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: "​"; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-form-field .kol-popover-button { display: inline; } .kol-form-field .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-form-field .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-form-field .kol-popover-button--inline { display: inline-block; } .kol-form-field .kol-popover-button--inline .kol-button, .kol-form-field .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-form-field .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-form-field .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-form-field { display: grid; } .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label { cursor: pointer; } .kol-form-field__label { display: flex; } .kol-form-field__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-form-field--required .kol-form-field__label-text:has(.kol-span__slot[hidden]) .kol-span__label::after, .kol-form-field--required:not(:has(.kol-form-field__label--legend)) .kol-form-field__input .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-input-container { background-color: transparent; display: grid; position: relative; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; grid-template-columns: 1fr; } .kol-input-container:has(> .kol-input-container__adornment--start) { grid-template-columns: auto 1fr auto; } .kol-input-container__container { position: relative; z-index: 1; } .kol-input-container__adornment { display: flex; align-items: center; } .kol-input-container__adornment .kol-icon { display: grid; place-items: center; } .kol-input { background-color: transparent; width: 100%; min-width: var(--a11y-min-size); } }'}}},[545,"kol-input-email",{_accessKey:[1,"_access-key"],_ariaDetails:[1,"_aria-details"],_autoComplete:[1,"_auto-complete"],_hasCounter:[4,"_has-counter"],_maxLengthBehavior:[1,"_max-length-behavior"],_disabled:[4],_hideMsg:[4,"_hide-msg"],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_infoPopover:[16],_label:[1],_maxLength:[2,"_max-length"],_msg:[1],_multiple:[4],_name:[1],_on:[16],_pattern:[1],_placeholder:[1],_readOnly:[4,"_read-only"],_required:[4],_shortKey:[1,"_short-key"],_smartButton:[1,"_smart-button"],_suggestions:[1],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[1537],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],getValue:[64],focus:[64],click:[64]},void 0,{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_autoComplete:[{watchAutoComplete:0}],_hasCounter:[{watchHasCounter:0}],_maxLengthBehavior:[{watchMaxLengthBehavior:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_maxLength:[{watchMaxLength:0}],_msg:[{watchMsg:0}],_multiple:[{watchMultiple:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_pattern:[{watchPattern:0}],_placeholder:[{watchPlaceholder:0}],_readOnly:[{watchReadOnly:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_suggestions:[{watchSuggestions:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]);n([u("ctaRef")],g.prototype,"focus",null),n([f("ctaRef")],g.prototype,"click",null);const w=g,y=function(){"undefined"!=typeof customElements&&["kol-input-email"].forEach((t=>{"kol-input-email"===t&&(customElements.get(i(t))||customElements.define(i(t),g))}))};export{w as KolInputEmail,y as defineCustomElement}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h as t,proxyCustomElement as e,Host as o,transformTag as i}from"@stencil/core/internal/client";import{_ as n}from"./tslib.es6.js";import{v as l}from"./access-and-short-key.js";import{t as a}from"./i18n.js";import{B as r}from"./component9.js";import{c as s}from"./item.js";import{h as c,g as h,I as d}from"./input-container.js";import{f as k,B as f,F as p}from"./base-web-component2.js";import{I as u}from"./input.js";import{c as m,b}from"./props-from-config.js";import{a as _,d as g,v as y}from"./component3.js";import{b as w}from"./bem-registry.js";import{m as v}from"./multiple.js";import{r as x}from"./required.js";import{s as B}from"./smart-button.js";import{c as j}from"./dev.utils.js";import{c as z,d as K,a as T}from"./element-interaction.js";const A=m("accept",void 0,b);function S(t){if(null==t?void 0:t.length)return Array.from(t).map((t=>t.name)).join(", ")}const D={required:[...k.required],optional:[...k.optional,A,_,c,v,x,g,B,y]},q=w.forBlock("kol-input-container"),L=q("button"),I=({filename:e,hasFile:o})=>t("span",{class:q("filename",{"has-file":o})},e),M=e(class extends f{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=j("input-file"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.translateFilenameText=a("kol-filename-text"),this.filename=this.translateFilenameText,this.hasFileSelected=!1,this.isDragover=!1,this.ctaRef=z(),this.translateDataBrowseText=a("kol-data-browse-text"),this.browseButton=s((()=>this.host)),this.propsConfig=D,this._accept=void 0,this._accessKey=void 0,this._ariaDetails=void 0,this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._infoPopover=void 0,this._msg=void 0,this._multiple=!1,this._name=void 0,this._on=void 0,this._required=!1,this._shortKey=void 0,this._smartButton=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._variant=void 0,this.handleFileChange=t=>{var e;if(this.ctaRef.el instanceof HTMLInputElement&&"file"===this.ctaRef.el.type){const o=this.ctaRef.el.files;this.hasFileSelected=!!(null==o?void 0:o.length),this.filename=null!==(e=S(o))&&void 0!==e?e:this.translateFilenameText,this.handleChange(t,o),this.formAssociation.setFormAssociatedValue(o)}},this.handleFileInput=t=>{this.ctaRef.el instanceof HTMLInputElement&&"file"===this.ctaRef.el.type&&this.handleInput(t,this.ctaRef.el.files)},this.isDisabled=()=>!0===this._disabled,this.handleDragOver=t=>{this.isDisabled()||(t.preventDefault(),this.isDragover=!0)},this.handleDragLeave=()=>{this.isDragover=!1},this.handleDrop=t=>{var e,o;if(!this.isDisabled()&&(t.preventDefault(),this.ctaRef.el&&(this.isDragover=!1,null===(e=t.dataTransfer)||void 0===e?void 0:e.files.length))){const e=t.dataTransfer.files;this.ctaRef.el.files=e,this.filename=null!==(o=S(e))&&void 0!==o?o:this.translateFilenameText,this.formAssociation.setFormAssociatedValue(e),this.handleChange(t,e),this.handleInput(t,e)}},this.initFormAssociation("file",this._name)}watchAccept(t){A.apply(t,(t=>this.setRenderProp("accept",t)))}watchAccessKey(t){_.apply(t,(t=>this.setRenderProp("accessKey",t))),l(t,this._shortKey)}watchAriaDetails(t){this.applyAriaDetails(t)}watchDisabled(t){this.applyDisabled(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchIcons(t){c.apply(t,(t=>this.setRenderProp("icons",t)))}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMsg(t){this.applyMsg(t)}watchMultiple(t){v.apply(t,(t=>this.setRenderProp("multiple",t)))}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchRequired(t){x.apply(t,(t=>this.setRenderProp("required",t)))}watchShortKey(t){g.apply(t,(t=>this.setRenderProp("shortKey",t))),l(this._accessKey,t)}watchSmartButton(t){null==t?this.unsetRenderProp("smartButton"):B.apply(t,(t=>this.setRenderProp("smartButton",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchVariant(t){y.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){var t;return Promise.resolve(null===(t=this.ctaRef.el)||void 0===t?void 0:t.files)}focus(t){return Promise.resolve()}async click(){return Promise.resolve()}reset(){return this.formAssociation.setFormAssociatedValue(""),this.filename=this.translateFilenameText,this.hasFileSelected=!1,this.ctaRef.el&&(this.ctaRef.el.value=""),Promise.resolve()}componentWillLoad(){this.unsetRenderProp("smartButton"),this._touched=!0===this._touched,this.watchAriaDetails(this._ariaDetails),this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccept(this._accept),this.watchAccessKey(this._accessKey),this.watchMsg(this._msg),this.watchDisabled(this._disabled),this.watchHideMsg(this._hideMsg),this.watchHideLabel(this._hideLabel),this.watchHint(this._hint),this.watchIcons(this._icons),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchMultiple(this._multiple),this.watchOn(this._on),this.watchRequired(this._required),this.watchShortKey(this._shortKey),this.watchSmartButton(this._smartButton),this.watchTooltipAlign(this._tooltipAlign),this.watchVariant(this._variant)}componentDidRender(){this.browseButton.syncListeners(),this.syncFormField()}disconnectedCallback(){this.browseButton.destroy(),this.destroyFormField()}getInputProps(){const t=this.getRenderProp("accessKey"),e=this.getRenderProp("shortKey"),{ariaDescribedBy:o,hasError:i}=this.getAria();return Object.assign(Object.assign(Object.assign(Object.assign({id:this.id,hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),disabled:this.getRenderProp("disabled"),name:this.getRenderProp("name")||void 0},t?{accessKey:t}:{}),{required:this.getRenderProp("required"),multiple:this.getRenderProp("multiple"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")}),e?{"aria-keyshortcuts":e}:{}),{ref:this.ctaRef,type:"file",accept:this.getRenderProp("accept"),onBlur:this.handleBlur,onChange:this.handleFileChange,onClick:this.handleClick,onFocus:this.handleFocus,onInput:this.handleFileInput,onKeyDown:this.handleKeyDown,ariaDescribedBy:o,"aria-invalid":i?"true":void 0})}render(){const e=this.getRenderProp("disabled"),{startAdornment:i,endAdornment:n}=h({icons:this.getRenderProp("icons"),smartButton:this.getSmartButtonFcProps(this.getRenderProp("smartButton"),e)});return t(o,{key:"9e279d33c94361ab51f673ceffd9a7868c5fb09c"},t(p,Object.assign({key:"1fa3633eb163e9c9b32d0b0b8f46432d5f6cb397"},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:"7b6139ca5c1032b675b1b0a2e7741b43a422fefc",class:{"kol-input-container--is-dragover":this.isDragover},disabled:e,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:n,onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop},t(I,{key:"0001121ae88e406ebebc32f602aafd3b34db69dc",filename:this.filename,hasFile:this.hasFileSelected}),t(u,Object.assign({key:"5252ec66191d338d7630d2079e6f71a017a162c7"},this.getInputProps())),t(r,Object.assign({key:"81adc59896f030d5a79370671768fc395633fd33"},this.browseButton.getFcProps({_label:this.translateDataBrowseText,_variant:"primary",_disabled:e},{class:L}))))))}get host(){return this}static get watchers(){return{_accept:[{watchAccept:0}],_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_msg:[{watchMsg:0}],_multiple:[{watchMultiple:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794493099910"); src: url("kolicons.eot?t=1794493099910#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794493099910") format("woff2"), url("kolicons.woff?t=1794493099910") format("woff"), url("kolicons.ttf?t=1794493099910") format("truetype"), url("kolicons.svg?t=1794493099910#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: "​"; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-form-field .kol-popover-button { display: inline; } .kol-form-field .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-form-field .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-form-field .kol-popover-button--inline { display: inline-block; } .kol-form-field .kol-popover-button--inline .kol-button, .kol-form-field .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-form-field .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-form-field .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-form-field { display: grid; } .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label { cursor: pointer; } .kol-form-field__label { display: flex; } .kol-form-field__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-form-field--required .kol-form-field__label-text:has(.kol-span__slot[hidden]) .kol-span__label::after, .kol-form-field--required:not(:has(.kol-form-field__label--legend)) .kol-form-field__input .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-input-container { background-color: transparent; display: grid; position: relative; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; grid-template-columns: 1fr; } .kol-input-container:has(> .kol-input-container__adornment--start) { grid-template-columns: auto 1fr auto; } .kol-input-container__container { position: relative; z-index: 1; } .kol-input-container__adornment { display: flex; align-items: center; } .kol-input-container__adornment .kol-icon { display: grid; place-items: center; } .kol-input { background-color: transparent; width: 100%; min-width: var(--a11y-min-size); } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } :host { display: inline-block; } .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-button__interactive-element::before { content: "​"; } .kol-button__text { flex: 1 0 100%; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; } .kol-input::-webkit-file-upload-button, .kol-input::file-selector-button { cursor: pointer; } .kol-input:disabled, .kol-input:disabled::-webkit-file-upload-button, .kol-input:disabled::file-selector-button { cursor: not-allowed; pointer-events: none; } .kol-input-container__container { display: flex; overflow: hidden; align-items: center; } .kol-input-container__button { height: auto; } .kol-input-container__filename { overflow: hidden; flex-grow: 1; white-space: nowrap; text-overflow: ellipsis; } .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) { grid-template-columns: auto 1fr; } }'}}},[545,"kol-input-file",{_accept:[1],_accessKey:[1,"_access-key"],_ariaDetails:[1,"_aria-details"],_disabled:[4],_hideMsg:[4,"_hide-msg"],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_infoPopover:[16],_label:[1],_msg:[1],_multiple:[4],_name:[1],_on:[16],_required:[4],_shortKey:[1,"_short-key"],_smartButton:[1,"_smart-button"],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],filename:[32],hasFileSelected:[32],isDragover:[32],getValue:[64],focus:[64],click:[64],reset:[64]},void 0,{_accept:[{watchAccept:0}],_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_msg:[{watchMsg:0}],_multiple:[{watchMultiple:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_variant:[{watchVariant:0}]}]);n([K("ctaRef")],M.prototype,"focus",null),n([T("ctaRef")],M.prototype,"click",null);const H=M,O=function(){"undefined"!=typeof customElements&&["kol-input-file"].forEach((t=>{"kol-input-file"===t&&(customElements.get(i(t))||customElements.define(i(t),M))}))};export{H as KolInputFile,O as defineCustomElement}
4
+ import{h as t,proxyCustomElement as e,Host as o,transformTag as i}from"@stencil/core/internal/client";import{_ as n}from"./tslib.es6.js";import{b as l}from"./bem-registry.js";import{v as a}from"./access-and-short-key.js";import{t as r}from"./i18n.js";import{B as s}from"./component9.js";import{c}from"./item.js";import{h,g as d,I as k}from"./input-container.js";import{f as p,B as f,F as u}from"./base-web-component2.js";import{I as m}from"./input.js";import{c as b,b as _}from"./props-from-config.js";import{a as g,d as y,v as w}from"./component3.js";import{m as v}from"./multiple.js";import{r as x}from"./required.js";import{s as B}from"./smart-button.js";import{c as j}from"./clsx.js";import{c as z}from"./dev.utils.js";import{c as K,d as T,a as A}from"./element-interaction.js";const S=b("accept",void 0,_);function D(t){if(null==t?void 0:t.length)return Array.from(t).map((t=>t.name)).join(", ")}const q={required:[...p.required],optional:[...p.optional,S,g,h,v,x,y,B,w]},L=l.forBlock("kol-input-container"),I=L("button"),M=({filename:e,hasFile:o})=>t("span",{class:L("filename",{"has-file":o})},e),H=l.forBlock("kol-input-file"),O=e(class extends f{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=z("input-file"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.translateFilenameText=r("kol-filename-text"),this.filename=this.translateFilenameText,this.hasFileSelected=!1,this.isDragover=!1,this.ctaRef=K(),this.translateDataBrowseText=r("kol-data-browse-text"),this.browseButton=c((()=>this.host)),this.propsConfig=q,this._accept=void 0,this._accessKey=void 0,this._ariaDetails=void 0,this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._infoPopover=void 0,this._msg=void 0,this._multiple=!1,this._name=void 0,this._on=void 0,this._required=!1,this._shortKey=void 0,this._smartButton=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._variant=void 0,this.handleFileChange=t=>{var e;if(this.ctaRef.el instanceof HTMLInputElement&&"file"===this.ctaRef.el.type){const o=this.ctaRef.el.files;this.hasFileSelected=!!(null==o?void 0:o.length),this.filename=null!==(e=D(o))&&void 0!==e?e:this.translateFilenameText,this.handleChange(t,o),this.formAssociation.setFormAssociatedValue(o)}},this.handleFileInput=t=>{this.ctaRef.el instanceof HTMLInputElement&&"file"===this.ctaRef.el.type&&this.handleInput(t,this.ctaRef.el.files)},this.isDisabled=()=>!0===this._disabled,this.handleDragOver=t=>{this.isDisabled()||(t.preventDefault(),this.isDragover=!0)},this.handleDragLeave=()=>{this.isDragover=!1},this.handleDrop=t=>{var e,o;if(!this.isDisabled()&&(t.preventDefault(),this.ctaRef.el&&(this.isDragover=!1,null===(e=t.dataTransfer)||void 0===e?void 0:e.files.length))){const e=t.dataTransfer.files;this.ctaRef.el.files=e,this.filename=null!==(o=D(e))&&void 0!==o?o:this.translateFilenameText,this.formAssociation.setFormAssociatedValue(e),this.handleChange(t,e),this.handleInput(t,e)}},this.initFormAssociation("file",this._name)}watchAccept(t){S.apply(t,(t=>this.setRenderProp("accept",t)))}watchAccessKey(t){g.apply(t,(t=>this.setRenderProp("accessKey",t))),a(t,this._shortKey)}watchAriaDetails(t){this.applyAriaDetails(t)}watchDisabled(t){this.applyDisabled(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchIcons(t){h.apply(t,(t=>this.setRenderProp("icons",t)))}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMsg(t){this.applyMsg(t)}watchMultiple(t){v.apply(t,(t=>this.setRenderProp("multiple",t)))}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchRequired(t){x.apply(t,(t=>this.setRenderProp("required",t)))}watchShortKey(t){y.apply(t,(t=>this.setRenderProp("shortKey",t))),a(this._accessKey,t)}watchSmartButton(t){null==t?this.unsetRenderProp("smartButton"):B.apply(t,(t=>this.setRenderProp("smartButton",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchVariant(t){w.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){var t;return Promise.resolve(null===(t=this.ctaRef.el)||void 0===t?void 0:t.files)}focus(t){return Promise.resolve()}async click(){return Promise.resolve()}reset(){return this.formAssociation.setFormAssociatedValue(""),this.filename=this.translateFilenameText,this.hasFileSelected=!1,this.ctaRef.el&&(this.ctaRef.el.value=""),Promise.resolve()}componentWillLoad(){this.unsetRenderProp("smartButton"),this._touched=!0===this._touched,this.watchAriaDetails(this._ariaDetails),this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccept(this._accept),this.watchAccessKey(this._accessKey),this.watchMsg(this._msg),this.watchDisabled(this._disabled),this.watchHideMsg(this._hideMsg),this.watchHideLabel(this._hideLabel),this.watchHint(this._hint),this.watchIcons(this._icons),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchMultiple(this._multiple),this.watchOn(this._on),this.watchRequired(this._required),this.watchShortKey(this._shortKey),this.watchSmartButton(this._smartButton),this.watchTooltipAlign(this._tooltipAlign),this.watchVariant(this._variant)}componentDidRender(){this.browseButton.syncListeners(),this.syncFormField()}disconnectedCallback(){this.browseButton.destroy(),this.destroyFormField()}getInputProps(){const t=this.getRenderProp("accessKey"),e=this.getRenderProp("shortKey"),{ariaDescribedBy:o,hasError:i}=this.getAria();return Object.assign(Object.assign(Object.assign(Object.assign({id:this.id,hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),disabled:this.getRenderProp("disabled"),name:this.getRenderProp("name")||void 0},t?{accessKey:t}:{}),{required:this.getRenderProp("required"),multiple:this.getRenderProp("multiple"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")}),e?{"aria-keyshortcuts":e}:{}),{ref:this.ctaRef,type:"file",accept:this.getRenderProp("accept"),onBlur:this.handleBlur,onChange:this.handleFileChange,onClick:this.handleClick,onFocus:this.handleFocus,onInput:this.handleFileInput,onKeyDown:this.handleKeyDown,ariaDescribedBy:o,"aria-invalid":i?"true":void 0})}render(){const e=this.getRenderProp("disabled"),{startAdornment:i,endAdornment:n}=d({icons:this.getRenderProp("icons"),smartButton:this.getSmartButtonFcProps(this.getRenderProp("smartButton"),e)});return t(o,{key:"7cb436aa1aa1d44e3fc40a0260b9e5475007f1e4"},t(u,Object.assign({key:"ae061478a153821b070f274cc5c2cb508d290aa9"},this.getFormFieldProps({class:j(H(),"file"),accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,variant:this.getRenderProp("variant"),required:this.getRenderProp("required")})),t(k,{key:"3d636959f1b5dabb5d083774a5045834afa27678",class:{"kol-input-container--is-dragover":this.isDragover},disabled:e,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:n,onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop},t(M,{key:"37431aa753621fbe4fbc02b8f8aa11e04b8ffb8d",filename:this.filename,hasFile:this.hasFileSelected}),t(m,Object.assign({key:"e85b80d96ac69719f8539797958c61f286139d46"},this.getInputProps())),t(s,Object.assign({key:"ccf46b04f5c159a15e735d790e3e3c1d48eb75d7"},this.browseButton.getFcProps({_label:this.translateDataBrowseText,_variant:"primary",_disabled:e},{class:I}))))))}get host(){return this}static get watchers(){return{_accept:[{watchAccept:0}],_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_msg:[{watchMsg:0}],_multiple:[{watchMultiple:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794913000943"); src: url("kolicons.eot?t=1794913000943#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794913000943") format("woff2"), url("kolicons.woff?t=1794913000943") format("woff"), url("kolicons.ttf?t=1794913000943") format("truetype"), url("kolicons.svg?t=1794913000943#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: "​"; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-form-field .kol-popover-button { display: inline; } .kol-form-field .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-form-field .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-form-field .kol-popover-button--inline { display: inline-block; } .kol-form-field .kol-popover-button--inline .kol-button, .kol-form-field .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-form-field .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-form-field .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-form-field { display: grid; } .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label { cursor: pointer; } .kol-form-field__label { display: flex; } .kol-form-field__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-form-field--required .kol-form-field__label-text:has(.kol-span__slot[hidden]) .kol-span__label::after, .kol-form-field--required:not(:has(.kol-form-field__label--legend)) .kol-form-field__input .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-input-container { background-color: transparent; display: grid; position: relative; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; grid-template-columns: 1fr; } .kol-input-container:has(> .kol-input-container__adornment--start) { grid-template-columns: auto 1fr auto; } .kol-input-container__container { position: relative; z-index: 1; } .kol-input-container__adornment { display: flex; align-items: center; } .kol-input-container__adornment .kol-icon { display: grid; place-items: center; } .kol-input { background-color: transparent; width: 100%; min-width: var(--a11y-min-size); } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } :host { display: inline-block; } .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-button__interactive-element::before { content: "​"; } .kol-button__text { flex: 1 0 100%; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; } .kol-input::-webkit-file-upload-button, .kol-input::file-selector-button { cursor: pointer; } .kol-input:disabled, .kol-input:disabled::-webkit-file-upload-button, .kol-input:disabled::file-selector-button { cursor: not-allowed; pointer-events: none; } .kol-input-container__container { display: flex; overflow: hidden; align-items: center; } .kol-input-container__button { height: auto; } .kol-input-container__filename { overflow: hidden; flex-grow: 1; white-space: nowrap; text-overflow: ellipsis; } .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) { grid-template-columns: auto 1fr; } }'}}},[545,"kol-input-file",{_accept:[1],_accessKey:[1,"_access-key"],_ariaDetails:[1,"_aria-details"],_disabled:[4],_hideMsg:[4,"_hide-msg"],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_infoPopover:[16],_label:[1],_msg:[1],_multiple:[4],_name:[1],_on:[16],_required:[4],_shortKey:[1,"_short-key"],_smartButton:[1,"_smart-button"],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],filename:[32],hasFileSelected:[32],isDragover:[32],getValue:[64],focus:[64],click:[64],reset:[64]},void 0,{_accept:[{watchAccept:0}],_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_msg:[{watchMsg:0}],_multiple:[{watchMultiple:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_variant:[{watchVariant:0}]}]);n([T("ctaRef")],O.prototype,"focus",null),n([A("ctaRef")],O.prototype,"click",null);const P=O,V=function(){"undefined"!=typeof customElements&&["kol-input-file"].forEach((t=>{"kol-input-file"===t&&(customElements.get(i(t))||customElements.define(i(t),O))}))};export{P as KolInputFile,V as defineCustomElement}