@public-ui/sample-react 4.0.0-alpha.2 → 4.0.0-alpha.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 (286) hide show
  1. package/dist/assets/{Alert-COUNttIM-CvH_qEya.js → Alert-rDcGDFja-BMLJUD8L.js} +2 -2
  2. package/dist/assets/{Alert-COUNttIM-CvH_qEya.js.map → Alert-rDcGDFja-BMLJUD8L.js.map} +1 -1
  3. package/dist/assets/{Collapsible-DpzYZ1V--DUkDviGZ.js → Collapsible-CI6mUEEU-DBPCC-sP.js} +2 -2
  4. package/dist/assets/{Collapsible-DpzYZ1V--DUkDviGZ.js.map → Collapsible-CI6mUEEU-DBPCC-sP.js.map} +1 -1
  5. package/dist/assets/{CustomSuggestionsToggle-Br8FY2Ey-DGJrbkiX.js → CustomSuggestionsToggle-DlNdGFuo-O7qofScd.js} +2 -2
  6. package/dist/assets/{CustomSuggestionsToggle-Br8FY2Ey-DGJrbkiX.js.map → CustomSuggestionsToggle-DlNdGFuo-O7qofScd.js.map} +1 -1
  7. package/dist/assets/{FieldControlStateWrapper-BnZIyp9N-Dq4PP5U5.js → FieldControlStateWrapper-D4iy61Tv-DuleEKBW.js} +2 -2
  8. package/dist/assets/{FieldControlStateWrapper-BnZIyp9N-Dq4PP5U5.js.map → FieldControlStateWrapper-D4iy61Tv-DuleEKBW.js.map} +1 -1
  9. package/dist/assets/{FormFieldStateWrapper-DBc4KUdQ-CVkWtyyV.js → FormFieldStateWrapper-CCxckxyk-B4bHyylZ.js} +2 -2
  10. package/dist/assets/{FormFieldStateWrapper-DBc4KUdQ-CVkWtyyV.js.map → FormFieldStateWrapper-CCxckxyk-B4bHyylZ.js.map} +1 -1
  11. package/dist/assets/{Heading-DDR2LlZW-C6b5Q_9R.js → Heading-Of5WUIQt-CrisRUf_.js} +2 -2
  12. package/dist/assets/{Heading-DDR2LlZW-C6b5Q_9R.js.map → Heading-Of5WUIQt-CrisRUf_.js.map} +1 -1
  13. package/dist/assets/{Icon-DhhnLcqx-Duv7memP.js → Icon-DAAnSHZC-Dfyu_VE7.js} +2 -2
  14. package/dist/assets/{Icon-DhhnLcqx-Duv7memP.js.map → Icon-DAAnSHZC-Dfyu_VE7.js.map} +1 -1
  15. package/dist/assets/{Input-djZI0PHg-CvPBJ0GD.js → Input-DBiN9aFG-98jE4J2q.js} +2 -2
  16. package/dist/assets/{Input-djZI0PHg-CvPBJ0GD.js.map → Input-DBiN9aFG-98jE4J2q.js.map} +1 -1
  17. package/dist/assets/{InputStateWrapper-CJbBu-pG-CB4qoRih.js → InputStateWrapper-D-ZsGHSy-XxY4nRAw.js} +2 -2
  18. package/dist/assets/{InputStateWrapper-CJbBu-pG-CB4qoRih.js.map → InputStateWrapper-D-ZsGHSy-XxY4nRAw.js.map} +1 -1
  19. package/dist/assets/{InternalUnderlinedBadgeText-Bcop6gIY-DcZYTeCS.js → InternalUnderlinedBadgeText-i_4-zRGd-BtWo_Ewc.js} +2 -2
  20. package/dist/assets/{InternalUnderlinedBadgeText-Bcop6gIY-DcZYTeCS.js.map → InternalUnderlinedBadgeText-i_4-zRGd-BtWo_Ewc.js.map} +1 -1
  21. package/dist/assets/{Span-C_DCO1Lx-Di9E3nax.js → Span-CE81mFIR-B_UNjncc.js} +2 -2
  22. package/dist/assets/{Span-C_DCO1Lx-Di9E3nax.js.map → Span-CE81mFIR-B_UNjncc.js.map} +1 -1
  23. package/dist/assets/{access-and-short-key-bcID78Ha-L8u4_6ia.js → access-and-short-key-bcID78Ha-CK3F9UJc.js} +2 -2
  24. package/dist/assets/{access-and-short-key-bcID78Ha-L8u4_6ia.js.map → access-and-short-key-bcID78Ha-CK3F9UJc.js.map} +1 -1
  25. package/dist/assets/{align-CyK0wp7d-Bgi-SsTU.js → align-CyK0wp7d-Ds_zJkMi.js} +2 -2
  26. package/dist/assets/{align-CyK0wp7d-Bgi-SsTU.js.map → align-CyK0wp7d-Ds_zJkMi.js.map} +1 -1
  27. package/dist/assets/{align-floating-elements-Bx4ukVlr-DuEsiXJu.js → align-floating-elements-Bx4ukVlr-db7E833n.js} +2 -2
  28. package/dist/assets/{align-floating-elements-Bx4ukVlr-DuEsiXJu.js.map → align-floating-elements-Bx4ukVlr-db7E833n.js.map} +1 -1
  29. package/dist/assets/{associated.controller-BKIODHIT-DcF9U5JZ.js → associated.controller-BKIODHIT-DjKWct4T.js} +2 -2
  30. package/dist/assets/{associated.controller-BKIODHIT-DcF9U5JZ.js.map → associated.controller-BKIODHIT-DjKWct4T.js.map} +1 -1
  31. package/dist/assets/{auto-complete-BsG3RQJ3-Dqn5sZ6m.js → auto-complete-BsG3RQJ3-DjAvSQV5.js} +2 -2
  32. package/dist/assets/{auto-complete-BsG3RQJ3-Dqn5sZ6m.js.map → auto-complete-BsG3RQJ3-DjAvSQV5.js.map} +1 -1
  33. package/dist/assets/{color-C3pYZKV3-B7_qKBBn.js → color-C3pYZKV3-CoNBFngn.js} +2 -2
  34. package/dist/assets/{color-C3pYZKV3-B7_qKBBn.js.map → color-C3pYZKV3-CoNBFngn.js.map} +1 -1
  35. package/dist/assets/{controller-BXg7sypS-219wzrnG.js → controller-BTIv7gJq-9h6vdF-r.js} +2 -2
  36. package/dist/assets/{controller-BXg7sypS-219wzrnG.js.map → controller-BTIv7gJq-9h6vdF-r.js.map} +1 -1
  37. package/dist/assets/{controller-wpy6KyPo-BVtktigT.js → controller-CFj0r1ye-D0qtp4wr.js} +2 -2
  38. package/dist/assets/{controller-wpy6KyPo-BVtktigT.js.map → controller-CFj0r1ye-D0qtp4wr.js.map} +1 -1
  39. package/dist/assets/{controller-BLEhwHNn-CaYLdQV0.js → controller-CTR4HcO6-DYxcnCqT.js} +2 -2
  40. package/dist/assets/{controller-BLEhwHNn-CaYLdQV0.js.map → controller-CTR4HcO6-DYxcnCqT.js.map} +1 -1
  41. package/dist/assets/{controller-CV2y9Ae_-Dth4q1vC.js → controller-CV2y9Ae_-DuhIALLa.js} +2 -2
  42. package/dist/assets/{controller-CV2y9Ae_-Dth4q1vC.js.map → controller-CV2y9Ae_-DuhIALLa.js.map} +1 -1
  43. package/dist/assets/{controller-icon-C8-i4mlh-BGpCnuog.js → controller-icon-DufJu-M8-Dd9_utrw.js} +2 -2
  44. package/dist/assets/{controller-icon-C8-i4mlh-BGpCnuog.js.map → controller-icon-DufJu-M8-Dd9_utrw.js.map} +1 -1
  45. package/dist/assets/{custom-class-CA0KGtrM-Vf3xsEJE.js → custom-class-CA0KGtrM-DTbaTBLP.js} +2 -2
  46. package/dist/assets/{custom-class-CA0KGtrM-Vf3xsEJE.js.map → custom-class-CA0KGtrM-DTbaTBLP.js.map} +1 -1
  47. package/dist/assets/{dev.utils-BJDuEPOn-TJbx-Gcl.js → dev.utils-jFnvJk5c-D37nV2Pq.js} +2 -2
  48. package/dist/assets/{dev.utils-BJDuEPOn-TJbx-Gcl.js.map → dev.utils-jFnvJk5c-D37nV2Pq.js.map} +1 -1
  49. package/dist/assets/{devtools-BFqnNU87-Ctrrwf8L.js → devtools-BhEwJ2s4-DGukMoVb.js} +2 -2
  50. package/dist/assets/{devtools-BFqnNU87-Ctrrwf8L.js.map → devtools-BhEwJ2s4-DGukMoVb.js.map} +1 -1
  51. package/dist/assets/{disabled-BydergHu-B1DLdE7n.js → disabled-BydergHu-BPFXrbWx.js} +2 -2
  52. package/dist/assets/{disabled-BydergHu-B1DLdE7n.js.map → disabled-BydergHu-BPFXrbWx.js.map} +1 -1
  53. package/dist/assets/has-closer-BBMh8HY3-BkkDkyUT.js +4 -0
  54. package/dist/assets/{has-closer-BBMh8HY3-CfPlXRK_.js.map → has-closer-BBMh8HY3-BkkDkyUT.js.map} +1 -1
  55. package/dist/assets/{hide-label-DRunOux4-oo1N_oyu.js → hide-label-DRunOux4-DtTbz-0D.js} +2 -2
  56. package/dist/assets/{hide-label-DRunOux4-oo1N_oyu.js.map → hide-label-DRunOux4-DtTbz-0D.js.map} +1 -1
  57. package/dist/assets/{href-zZq6HYWf-D7pdlwA_.js → href-zZq6HYWf-B3rT45gz.js} +2 -2
  58. package/dist/assets/{href-zZq6HYWf-D7pdlwA_.js.map → href-zZq6HYWf-B3rT45gz.js.map} +1 -1
  59. package/dist/assets/{i18n-CdSCDnmA-D76H1NpQ.js → i18n-CdSCDnmA-BDPBg7Eu.js} +2 -2
  60. package/dist/assets/{i18n-CdSCDnmA-D76H1NpQ.js.map → i18n-CdSCDnmA-BDPBg7Eu.js.map} +1 -1
  61. package/dist/assets/{icons-72ER78AW-CdwN4BiP.js → icons-72ER78AW-V6GT6JtO.js} +2 -2
  62. package/dist/assets/{icons-72ER78AW-CdwN4BiP.js.map → icons-72ER78AW-V6GT6JtO.js.map} +1 -1
  63. package/dist/assets/image-source-RWPv7frZ-CkjdxZJx.js +4 -0
  64. package/dist/assets/{image-source-RWPv7frZ-BtG0kTfS.js.map → image-source-RWPv7frZ-CkjdxZJx.js.map} +1 -1
  65. package/dist/assets/{index-D7AUPAYP.js → index-CScqQH4b.js} +192 -184
  66. package/dist/assets/index-CScqQH4b.js.map +1 -0
  67. package/dist/assets/{kol-abbr.entry-B-o8yWqn.js → kol-abbr.entry-DSExcK7Y.js} +13 -5
  68. package/dist/assets/kol-abbr.entry-DSExcK7Y.js.map +1 -0
  69. package/dist/assets/{kol-accordion.entry-DBww4BDd.js → kol-accordion.entry-abzFpjvJ.js} +14 -6
  70. package/dist/assets/kol-accordion.entry-abzFpjvJ.js.map +1 -0
  71. package/dist/assets/{kol-alert-wc.entry-Dlu1g44h.js → kol-alert-wc.entry-DIHfazMO.js} +2 -2
  72. package/dist/assets/{kol-alert-wc.entry-Dlu1g44h.js.map → kol-alert-wc.entry-DIHfazMO.js.map} +1 -1
  73. package/dist/assets/{kol-alert.entry-D7LOoocp.js → kol-alert.entry-Bi7etxxW.js} +12 -4
  74. package/dist/assets/kol-alert.entry-Bi7etxxW.js.map +1 -0
  75. package/dist/assets/{kol-avatar-wc.entry-UB-8fbZ2.js → kol-avatar-wc.entry-DMCcaCpy.js} +2 -2
  76. package/dist/assets/{kol-avatar-wc.entry-UB-8fbZ2.js.map → kol-avatar-wc.entry-DMCcaCpy.js.map} +1 -1
  77. package/dist/assets/{kol-avatar.entry-B1Xw0m2R.js → kol-avatar.entry-CV9VMVmD.js} +12 -4
  78. package/dist/assets/kol-avatar.entry-CV9VMVmD.js.map +1 -0
  79. package/dist/assets/{kol-badge.entry-Bvp7i9vX.js → kol-badge.entry-Dua8Ck0Y.js} +12 -4
  80. package/dist/assets/kol-badge.entry-Dua8Ck0Y.js.map +1 -0
  81. package/dist/assets/{kol-breadcrumb.entry-CfiGZ_ty.js → kol-breadcrumb.entry-CmAWsf9n.js} +12 -4
  82. package/dist/assets/kol-breadcrumb.entry-CmAWsf9n.js.map +1 -0
  83. package/dist/assets/{kol-button-link.entry-DnMgT3Un.js → kol-button-link.entry-BpONzPg2.js} +12 -4
  84. package/dist/assets/kol-button-link.entry-BpONzPg2.js.map +1 -0
  85. package/dist/assets/{kol-button-wc.entry-_sd_SWlI.js → kol-button-wc.entry-CxQP3HLo.js} +2 -2
  86. package/dist/assets/{kol-button-wc.entry-_sd_SWlI.js.map → kol-button-wc.entry-CxQP3HLo.js.map} +1 -1
  87. package/dist/assets/{kol-button.entry-sW0EF7gO.js → kol-button.entry-BWAblq2h.js} +12 -4
  88. package/dist/assets/kol-button.entry-BWAblq2h.js.map +1 -0
  89. package/dist/assets/{kol-card-wc.entry-CUlHZX3-.js → kol-card-wc.entry-D1uzKYNH.js} +2 -2
  90. package/dist/assets/{kol-card-wc.entry-CUlHZX3-.js.map → kol-card-wc.entry-D1uzKYNH.js.map} +1 -1
  91. package/dist/assets/{kol-card.entry--T348_JD.js → kol-card.entry-DUat60hr.js} +13 -5
  92. package/dist/assets/kol-card.entry-DUat60hr.js.map +1 -0
  93. package/dist/assets/{kol-combobox.entry-BbALAumo.js → kol-combobox.entry-B2Xe5aAF.js} +12 -4
  94. package/dist/assets/kol-combobox.entry-B2Xe5aAF.js.map +1 -0
  95. package/dist/assets/{kol-details.entry-DkQT--2j.js → kol-details.entry-BdbKlKC_.js} +12 -4
  96. package/dist/assets/kol-details.entry-BdbKlKC_.js.map +1 -0
  97. package/dist/assets/{kol-drawer.entry-C4qSdW_o.js → kol-drawer.entry-CyZwxKbJ.js} +14 -6
  98. package/dist/assets/kol-drawer.entry-CyZwxKbJ.js.map +1 -0
  99. package/dist/assets/{kol-form.entry-DHdOAOFT.js → kol-form.entry-CE7kD4si.js} +12 -4
  100. package/dist/assets/kol-form.entry-CE7kD4si.js.map +1 -0
  101. package/dist/assets/{kol-heading.entry-ws-U7Jjl.js → kol-heading.entry-CYC5dUQt.js} +13 -5
  102. package/dist/assets/kol-heading.entry-CYC5dUQt.js.map +1 -0
  103. package/dist/assets/{kol-icon.entry-Jt4tePkw.js → kol-icon.entry-DDBzHxfS.js} +2 -2
  104. package/dist/assets/{kol-icon.entry-Jt4tePkw.js.map → kol-icon.entry-DDBzHxfS.js.map} +1 -1
  105. package/dist/assets/{kol-image.entry-D3Kv2o1-.js → kol-image.entry-CUMHkUjG.js} +12 -4
  106. package/dist/assets/kol-image.entry-CUMHkUjG.js.map +1 -0
  107. package/dist/assets/{kol-input-checkbox.entry-DMqn7JP4.js → kol-input-checkbox.entry-vv6vl59s.js} +14 -6
  108. package/dist/assets/kol-input-checkbox.entry-vv6vl59s.js.map +1 -0
  109. package/dist/assets/{kol-input-color.entry-DueTLAMj.js → kol-input-color.entry-BP7j43Eo.js} +12 -4
  110. package/dist/assets/kol-input-color.entry-BP7j43Eo.js.map +1 -0
  111. package/dist/assets/{kol-input-date.entry-BfxAmzSU.js → kol-input-date.entry-BvccwUBf.js} +34 -6
  112. package/dist/assets/kol-input-date.entry-BvccwUBf.js.map +1 -0
  113. package/dist/assets/{kol-input-email.entry-C3am9NH5.js → kol-input-email.entry-QS5TevHv.js} +12 -4
  114. package/dist/assets/kol-input-email.entry-QS5TevHv.js.map +1 -0
  115. package/dist/assets/{kol-input-file.entry-BqZwdEt2.js → kol-input-file.entry-DIgSc1fg.js} +12 -4
  116. package/dist/assets/kol-input-file.entry-DIgSc1fg.js.map +1 -0
  117. package/dist/assets/{kol-input-number.entry-DSKmAXTh.js → kol-input-number.entry-08jF_pXv.js} +14 -6
  118. package/dist/assets/kol-input-number.entry-08jF_pXv.js.map +1 -0
  119. package/dist/assets/{kol-input-password.entry-BYt0VPe3.js → kol-input-password.entry-KfZ0aP1e.js} +12 -4
  120. package/dist/assets/kol-input-password.entry-KfZ0aP1e.js.map +1 -0
  121. package/dist/assets/{kol-input-radio.entry-Dfxl4Iam.js → kol-input-radio.entry-BZXYtIWi.js} +13 -5
  122. package/dist/assets/kol-input-radio.entry-BZXYtIWi.js.map +1 -0
  123. package/dist/assets/{kol-input-range.entry-DPG7bR7u.js → kol-input-range.entry-DzxZZxwg.js} +13 -5
  124. package/dist/assets/kol-input-range.entry-DzxZZxwg.js.map +1 -0
  125. package/dist/assets/{kol-input-text.entry-CRDQg5qO.js → kol-input-text.entry-C_NDprxn.js} +12 -4
  126. package/dist/assets/kol-input-text.entry-C_NDprxn.js.map +1 -0
  127. package/dist/assets/{kol-kolibri.entry-_SUwexUV.js → kol-kolibri.entry-DsiCiBEw.js} +12 -4
  128. package/dist/assets/kol-kolibri.entry-DsiCiBEw.js.map +1 -0
  129. package/dist/assets/{kol-link-button.entry-6nI9U4yp.js → kol-link-button.entry-DV2JifLv.js} +12 -4
  130. package/dist/assets/kol-link-button.entry-DV2JifLv.js.map +1 -0
  131. package/dist/assets/{kol-link-wc.entry-0bHrvp3g.js → kol-link-wc.entry-DNF3mgsz.js} +2 -2
  132. package/dist/assets/{kol-link-wc.entry-0bHrvp3g.js.map → kol-link-wc.entry-DNF3mgsz.js.map} +1 -1
  133. package/dist/assets/{kol-link.entry-D3CQEp9E.js → kol-link.entry-BZ1ulo3D.js} +12 -4
  134. package/dist/assets/kol-link.entry-BZ1ulo3D.js.map +1 -0
  135. package/dist/assets/{kol-modal.entry-B5Kh3y8_.js → kol-modal.entry-DgiHCfGM.js} +14 -6
  136. package/dist/assets/kol-modal.entry-DgiHCfGM.js.map +1 -0
  137. package/dist/assets/{kol-nav.entry-B-HkaGQw.js → kol-nav.entry-f7tigMNP.js} +14 -6
  138. package/dist/assets/kol-nav.entry-f7tigMNP.js.map +1 -0
  139. package/dist/assets/{kol-pagination-wc.entry-B-pIMMmD.js → kol-pagination-wc.entry-CL-2QKe2.js} +2 -2
  140. package/dist/assets/{kol-pagination-wc.entry-B-pIMMmD.js.map → kol-pagination-wc.entry-CL-2QKe2.js.map} +1 -1
  141. package/dist/assets/{kol-pagination.entry-DMBoqaOF.js → kol-pagination.entry-BMiql5xn.js} +12 -4
  142. package/dist/assets/kol-pagination.entry-BMiql5xn.js.map +1 -0
  143. package/dist/assets/{kol-popover-button-wc.entry-DX2fzrbd.js → kol-popover-button-wc.entry-DITFi0pw.js} +2 -2
  144. package/dist/assets/{kol-popover-button-wc.entry-DX2fzrbd.js.map → kol-popover-button-wc.entry-DITFi0pw.js.map} +1 -1
  145. package/dist/assets/{kol-popover-button.entry-DtR8hhMx.js → kol-popover-button.entry-Cc5iej0K.js} +12 -4
  146. package/dist/assets/kol-popover-button.entry-Cc5iej0K.js.map +1 -0
  147. package/dist/assets/{kol-popover-wc.entry-Da-tZsJj.js → kol-popover-wc.entry-IG9IR9et.js} +2 -2
  148. package/dist/assets/{kol-popover-wc.entry-Da-tZsJj.js.map → kol-popover-wc.entry-IG9IR9et.js.map} +1 -1
  149. package/dist/assets/{kol-progress.entry-7Ob91VxX.js → kol-progress.entry-w2oLhbZO.js} +14 -6
  150. package/dist/assets/kol-progress.entry-w2oLhbZO.js.map +1 -0
  151. package/dist/assets/{kol-quote.entry-D4oMfVPo.js → kol-quote.entry-B75B_fuz.js} +12 -4
  152. package/dist/assets/kol-quote.entry-B75B_fuz.js.map +1 -0
  153. package/dist/assets/{kol-select.entry-BnrCVxIe.js → kol-select.entry-Bu0L0JED.js} +14 -6
  154. package/dist/assets/kol-select.entry-Bu0L0JED.js.map +1 -0
  155. package/dist/assets/{kol-single-select.entry-a-0Lzgdd.js → kol-single-select.entry-DNkArfeb.js} +12 -4
  156. package/dist/assets/kol-single-select.entry-DNkArfeb.js.map +1 -0
  157. package/dist/assets/{kol-skip-nav.entry-DDWhBaaQ.js → kol-skip-nav.entry-DsqvE3-q.js} +13 -5
  158. package/dist/assets/kol-skip-nav.entry-DsqvE3-q.js.map +1 -0
  159. package/dist/assets/{kol-spin.entry-DqMmeeQO.js → kol-spin.entry-Cfcl5qOO.js} +13 -5
  160. package/dist/assets/kol-spin.entry-Cfcl5qOO.js.map +1 -0
  161. package/dist/assets/{kol-split-button.entry-kYzTSjxZ.js → kol-split-button.entry-BpyH6rr0.js} +12 -4
  162. package/dist/assets/kol-split-button.entry-BpyH6rr0.js.map +1 -0
  163. package/dist/assets/{kol-table-settings-wc.entry-Blxjv3GQ.js → kol-table-settings-wc.entry-B8aYsiOI.js} +2 -2
  164. package/dist/assets/{kol-table-settings-wc.entry-Blxjv3GQ.js.map → kol-table-settings-wc.entry-B8aYsiOI.js.map} +1 -1
  165. package/dist/assets/{kol-table-stateful.entry-beMTuJC_.js → kol-table-stateful.entry-BobVufSK.js} +13 -5
  166. package/dist/assets/kol-table-stateful.entry-BobVufSK.js.map +1 -0
  167. package/dist/assets/{kol-table-stateless-wc.entry-gClmQ1k0.js → kol-table-stateless-wc.entry-D1JubOgd.js} +2 -2
  168. package/dist/assets/{kol-table-stateless-wc.entry-gClmQ1k0.js.map → kol-table-stateless-wc.entry-D1JubOgd.js.map} +1 -1
  169. package/dist/assets/{kol-table-stateless.entry-BL_YG2Wm.js → kol-table-stateless.entry-slG667hl.js} +12 -4
  170. package/dist/assets/kol-table-stateless.entry-slG667hl.js.map +1 -0
  171. package/dist/assets/{kol-tabs.entry-Bn9cK8cT.js → kol-tabs.entry-CNjJ5EQI.js} +14 -6
  172. package/dist/assets/kol-tabs.entry-CNjJ5EQI.js.map +1 -0
  173. package/dist/assets/{kol-textarea.entry-NdPFrl_g.js → kol-textarea.entry-CobQF5Y0.js} +12 -4
  174. package/dist/assets/kol-textarea.entry-CobQF5Y0.js.map +1 -0
  175. package/dist/assets/{kol-toast-container.entry-B0i59PZA.js → kol-toast-container.entry-CBED4DEQ.js} +14 -6
  176. package/dist/assets/kol-toast-container.entry-CBED4DEQ.js.map +1 -0
  177. package/dist/assets/{kol-toolbar.entry-ylfyVSfW.js → kol-toolbar.entry-B9qkv7rv.js} +13 -5
  178. package/dist/assets/kol-toolbar.entry-B9qkv7rv.js.map +1 -0
  179. package/dist/assets/{kol-tooltip-wc.entry-D9wBC57o.js → kol-tooltip-wc.entry-DhVvwNGR.js} +2 -2
  180. package/dist/assets/{kol-tooltip-wc.entry-D9wBC57o.js.map → kol-tooltip-wc.entry-DhVvwNGR.js.map} +1 -1
  181. package/dist/assets/{kol-tree-item-wc.entry-aQYTkTRv.js → kol-tree-item-wc.entry-Bt36le1_.js} +2 -2
  182. package/dist/assets/{kol-tree-item-wc.entry-aQYTkTRv.js.map → kol-tree-item-wc.entry-Bt36le1_.js.map} +1 -1
  183. package/dist/assets/{kol-tree-item.entry-Q-rcGlev.js → kol-tree-item.entry-CZ7-gsNS.js} +12 -4
  184. package/dist/assets/kol-tree-item.entry-CZ7-gsNS.js.map +1 -0
  185. package/dist/assets/{kol-tree-wc.entry-C54bgWpr.js → kol-tree-wc.entry-DYQK0SrT.js} +2 -2
  186. package/dist/assets/{kol-tree-wc.entry-C54bgWpr.js.map → kol-tree-wc.entry-DYQK0SrT.js.map} +1 -1
  187. package/dist/assets/{kol-tree.entry-CutNqp97.js → kol-tree.entry-DLSeVDUB.js} +12 -4
  188. package/dist/assets/kol-tree.entry-DLSeVDUB.js.map +1 -0
  189. package/dist/assets/{kol-version.entry-BeRYaL9l.js → kol-version.entry-DEjko3U5.js} +12 -4
  190. package/dist/assets/kol-version.entry-DEjko3U5.js.map +1 -0
  191. package/dist/assets/{label-CdtNxOKu-xHQWPYNA.js → label-CdtNxOKu-CLyKncMr.js} +2 -2
  192. package/dist/assets/{label-CdtNxOKu-xHQWPYNA.js.map → label-CdtNxOKu-CLyKncMr.js.map} +1 -1
  193. package/dist/assets/{link-variant-H9yefO89-hthX-w-w.js → link-variant-H9yefO89-DPQ3bWDz.js} +2 -2
  194. package/dist/assets/{link-variant-H9yefO89-hthX-w-w.js.map → link-variant-H9yefO89-DPQ3bWDz.js.map} +1 -1
  195. package/dist/assets/{markdown-DL-PkOqb-B25Jvl4K.js → markdown-DL-PkOqb-CCXm9EQF.js} +2 -2
  196. package/dist/assets/{markdown-DL-PkOqb-B25Jvl4K.js.map → markdown-DL-PkOqb-CCXm9EQF.js.map} +1 -1
  197. package/dist/assets/{max-length-behavior-BmNWss6T-DVacXf_-.js → max-length-behavior-BmNWss6T-a26YboAW.js} +2 -2
  198. package/dist/assets/{max-length-behavior-BmNWss6T-DVacXf_-.js.map → max-length-behavior-BmNWss6T-a26YboAW.js.map} +1 -1
  199. package/dist/assets/{multiple-bcm5IaCN-DE09YNIY.js → multiple-bcm5IaCN-CQvH408s.js} +2 -2
  200. package/dist/assets/{multiple-bcm5IaCN-DE09YNIY.js.map → multiple-bcm5IaCN-CQvH408s.js.map} +1 -1
  201. package/dist/assets/{open-D9q98v46-BBnCV46B.js → open-D9q98v46-Bi0cI_u1.js} +2 -2
  202. package/dist/assets/{open-D9q98v46-BBnCV46B.js.map → open-D9q98v46-Bi0cI_u1.js.map} +1 -1
  203. package/dist/assets/{orientation-5kQWqijN-CQ-p9zsa.js → orientation-5kQWqijN-D3x3Zt8G.js} +2 -2
  204. package/dist/assets/{orientation-5kQWqijN-CQ-p9zsa.js.map → orientation-5kQWqijN-D3x3Zt8G.js.map} +1 -1
  205. package/dist/assets/{placeholder-6URRds0_-DeOoTXqf.js → placeholder-6URRds0_-CnESfv0b.js} +2 -2
  206. package/dist/assets/{placeholder-6URRds0_-DeOoTXqf.js.map → placeholder-6URRds0_-CnESfv0b.js.map} +1 -1
  207. package/dist/assets/read-only-CcRldJ9w-B6Kca91U.js +4 -0
  208. package/dist/assets/{read-only-CcRldJ9w-CwNO7sH7.js.map → read-only-CcRldJ9w-B6Kca91U.js.map} +1 -1
  209. package/dist/assets/required-G86n77y0-BPjPpx0R.js +4 -0
  210. package/dist/assets/{required-G86n77y0-GePRNKdB.js.map → required-G86n77y0-BPjPpx0R.js.map} +1 -1
  211. package/dist/assets/{rows-P4l3PNiA-CGKfsbZZ.js → rows-P4l3PNiA-DsCUJBMf.js} +2 -2
  212. package/dist/assets/{rows-P4l3PNiA-CGKfsbZZ.js.map → rows-P4l3PNiA-DsCUJBMf.js.map} +1 -1
  213. package/dist/assets/{show-DsV_Vx8g-6pOPEhCv.js → show-DsV_Vx8g-D5WXnE_H.js} +2 -2
  214. package/dist/assets/{show-DsV_Vx8g-6pOPEhCv.js.map → show-DsV_Vx8g-D5WXnE_H.js.map} +1 -1
  215. package/dist/assets/{spell-check-DIsLAYgk-BuKzSCNU.js → spell-check-DIsLAYgk-D8L_UizA.js} +2 -2
  216. package/dist/assets/{spell-check-DIsLAYgk-BuKzSCNU.js.map → spell-check-DIsLAYgk-D8L_UizA.js.map} +1 -1
  217. package/dist/assets/{suggestions-DfF4lcNG-ChsxgVrC.js → suggestions-DfF4lcNG-BF46R73u.js} +2 -2
  218. package/dist/assets/{suggestions-DfF4lcNG-ChsxgVrC.js.map → suggestions-DfF4lcNG-BF46R73u.js.map} +1 -1
  219. package/dist/assets/{table-settings-DSZObo-2-CycU5xoO.js → table-settings-DSZObo-2-B5g_ueEq.js} +2 -2
  220. package/dist/assets/{table-settings-DSZObo-2-CycU5xoO.js.map → table-settings-DSZObo-2-B5g_ueEq.js.map} +1 -1
  221. package/dist/assets/{test-component.entry-CLv7ySm6.js → test-component.entry-3vmOnUnD.js} +2 -2
  222. package/dist/assets/{test-component.entry-CLv7ySm6.js.map → test-component.entry-3vmOnUnD.js.map} +1 -1
  223. package/dist/assets/tooltip-align-_VI7LehI-BA2gIX1h.js +4 -0
  224. package/dist/assets/{tooltip-align-_VI7LehI-B43QQEAJ.js.map → tooltip-align-_VI7LehI-BA2gIX1h.js.map} +1 -1
  225. package/dist/assets/{unique-nav-labels-C_NhdgGz-DssOKFqm.js → unique-nav-labels-C_NhdgGz-CqaqLCcO.js} +2 -2
  226. package/dist/assets/{unique-nav-labels-C_NhdgGz-DssOKFqm.js.map → unique-nav-labels-C_NhdgGz-CqaqLCcO.js.map} +1 -1
  227. package/dist/assets/{validation-CW_RXPSn-Jb51Q1-U.js → validation-CW_RXPSn-DvLHqxJ5.js} +2 -2
  228. package/dist/assets/{validation-CW_RXPSn-Jb51Q1-U.js.map → validation-CW_RXPSn-DvLHqxJ5.js.map} +1 -1
  229. package/dist/assets/{validation-DoIjmu3L-ng1AU3qg.js → validation-DoIjmu3L-NRd8OjzP.js} +2 -2
  230. package/dist/assets/{validation-DoIjmu3L-ng1AU3qg.js.map → validation-DoIjmu3L-NRd8OjzP.js.map} +1 -1
  231. package/dist/index.html +1 -1
  232. package/package.json +23 -23
  233. package/dist/assets/has-closer-BBMh8HY3-CfPlXRK_.js +0 -4
  234. package/dist/assets/image-source-RWPv7frZ-BtG0kTfS.js +0 -4
  235. package/dist/assets/index-D7AUPAYP.js.map +0 -1
  236. package/dist/assets/kol-abbr.entry-B-o8yWqn.js.map +0 -1
  237. package/dist/assets/kol-accordion.entry-DBww4BDd.js.map +0 -1
  238. package/dist/assets/kol-alert.entry-D7LOoocp.js.map +0 -1
  239. package/dist/assets/kol-avatar.entry-B1Xw0m2R.js.map +0 -1
  240. package/dist/assets/kol-badge.entry-Bvp7i9vX.js.map +0 -1
  241. package/dist/assets/kol-breadcrumb.entry-CfiGZ_ty.js.map +0 -1
  242. package/dist/assets/kol-button-link.entry-DnMgT3Un.js.map +0 -1
  243. package/dist/assets/kol-button.entry-sW0EF7gO.js.map +0 -1
  244. package/dist/assets/kol-card.entry--T348_JD.js.map +0 -1
  245. package/dist/assets/kol-combobox.entry-BbALAumo.js.map +0 -1
  246. package/dist/assets/kol-details.entry-DkQT--2j.js.map +0 -1
  247. package/dist/assets/kol-drawer.entry-C4qSdW_o.js.map +0 -1
  248. package/dist/assets/kol-form.entry-DHdOAOFT.js.map +0 -1
  249. package/dist/assets/kol-heading.entry-ws-U7Jjl.js.map +0 -1
  250. package/dist/assets/kol-image.entry-D3Kv2o1-.js.map +0 -1
  251. package/dist/assets/kol-input-checkbox.entry-DMqn7JP4.js.map +0 -1
  252. package/dist/assets/kol-input-color.entry-DueTLAMj.js.map +0 -1
  253. package/dist/assets/kol-input-date.entry-BfxAmzSU.js.map +0 -1
  254. package/dist/assets/kol-input-email.entry-C3am9NH5.js.map +0 -1
  255. package/dist/assets/kol-input-file.entry-BqZwdEt2.js.map +0 -1
  256. package/dist/assets/kol-input-number.entry-DSKmAXTh.js.map +0 -1
  257. package/dist/assets/kol-input-password.entry-BYt0VPe3.js.map +0 -1
  258. package/dist/assets/kol-input-radio.entry-Dfxl4Iam.js.map +0 -1
  259. package/dist/assets/kol-input-range.entry-DPG7bR7u.js.map +0 -1
  260. package/dist/assets/kol-input-text.entry-CRDQg5qO.js.map +0 -1
  261. package/dist/assets/kol-kolibri.entry-_SUwexUV.js.map +0 -1
  262. package/dist/assets/kol-link-button.entry-6nI9U4yp.js.map +0 -1
  263. package/dist/assets/kol-link.entry-D3CQEp9E.js.map +0 -1
  264. package/dist/assets/kol-modal.entry-B5Kh3y8_.js.map +0 -1
  265. package/dist/assets/kol-nav.entry-B-HkaGQw.js.map +0 -1
  266. package/dist/assets/kol-pagination.entry-DMBoqaOF.js.map +0 -1
  267. package/dist/assets/kol-popover-button.entry-DtR8hhMx.js.map +0 -1
  268. package/dist/assets/kol-progress.entry-7Ob91VxX.js.map +0 -1
  269. package/dist/assets/kol-quote.entry-D4oMfVPo.js.map +0 -1
  270. package/dist/assets/kol-select.entry-BnrCVxIe.js.map +0 -1
  271. package/dist/assets/kol-single-select.entry-a-0Lzgdd.js.map +0 -1
  272. package/dist/assets/kol-skip-nav.entry-DDWhBaaQ.js.map +0 -1
  273. package/dist/assets/kol-spin.entry-DqMmeeQO.js.map +0 -1
  274. package/dist/assets/kol-split-button.entry-kYzTSjxZ.js.map +0 -1
  275. package/dist/assets/kol-table-stateful.entry-beMTuJC_.js.map +0 -1
  276. package/dist/assets/kol-table-stateless.entry-BL_YG2Wm.js.map +0 -1
  277. package/dist/assets/kol-tabs.entry-Bn9cK8cT.js.map +0 -1
  278. package/dist/assets/kol-textarea.entry-NdPFrl_g.js.map +0 -1
  279. package/dist/assets/kol-toast-container.entry-B0i59PZA.js.map +0 -1
  280. package/dist/assets/kol-toolbar.entry-ylfyVSfW.js.map +0 -1
  281. package/dist/assets/kol-tree-item.entry-Q-rcGlev.js.map +0 -1
  282. package/dist/assets/kol-tree.entry-CutNqp97.js.map +0 -1
  283. package/dist/assets/kol-version.entry-BeRYaL9l.js.map +0 -1
  284. package/dist/assets/read-only-CcRldJ9w-CwNO7sH7.js +0 -4
  285. package/dist/assets/required-G86n77y0-GePRNKdB.js +0 -4
  286. package/dist/assets/tooltip-align-_VI7LehI-B43QQEAJ.js +0 -4
@@ -1,4 +1,4 @@
1
- import{h as o,r as l,g as s,n as r}from"./index-D7AUPAYP.js";import{_ as d}from"./tslib.es6-CxX45GIN-BAJoBDh7.js";import{F as c}from"./FormFieldStateWrapper-DBc4KUdQ-CVkWtyyV.js";import{I as h,a as u}from"./controller-icon-C8-i4mlh-BGpCnuog.js";import{I as i}from"./InputStateWrapper-CJbBu-pG-CB4qoRih.js";import{n as p}from"./dev.utils-BJDuEPOn-TJbx-Gcl.js";import{v as m}from"./auto-complete-BsG3RQJ3-Dqn5sZ6m.js";import{v as f}from"./suggestions-DfF4lcNG-ChsxgVrC.js";import"./isObject-DvSELytj-B0RigBxT.js";import"./Alert-COUNttIM-CvH_qEya.js";import"./i18n-CdSCDnmA-D76H1NpQ.js";import"./access-and-short-key-bcID78Ha-L8u4_6ia.js";import"./disabled-BydergHu-B1DLdE7n.js";import"./hide-label-DRunOux4-oo1N_oyu.js";import"./label-CdtNxOKu-xHQWPYNA.js";import"./tooltip-align-_VI7LehI-B43QQEAJ.js";import"./align-CyK0wp7d-Bgi-SsTU.js";import"./associated.controller-BKIODHIT-DcF9U5JZ.js";import"./clsx-eK3rPvPS-BT_IL7Fz.js";import"./InternalUnderlinedBadgeText-Bcop6gIY-DcZYTeCS.js";import"./reuse-CX4AQDkS-Cyh-fyjG.js";import"./Icon-DhhnLcqx-Duv7memP.js";import"./icons-72ER78AW-CdwN4BiP.js";import"./Input-djZI0PHg-CvPBJ0GD.js";import"./Heading-DDR2LlZW-C6b5Q_9R.js";/*!
1
+ import{h as o,r as l,g as s,n as r}from"./index-CScqQH4b.js";import{_ as d}from"./tslib.es6-CxX45GIN-BAJoBDh7.js";import{F as c}from"./FormFieldStateWrapper-CCxckxyk-B4bHyylZ.js";import{I as h,a as u}from"./controller-icon-DufJu-M8-Dd9_utrw.js";import{I as i}from"./InputStateWrapper-D-ZsGHSy-XxY4nRAw.js";import{n as p}from"./dev.utils-jFnvJk5c-D37nV2Pq.js";import{v as m}from"./auto-complete-BsG3RQJ3-DjAvSQV5.js";import{v as f}from"./suggestions-DfF4lcNG-BF46R73u.js";import"./isObject-DvSELytj-B0RigBxT.js";import"./Alert-rDcGDFja-BMLJUD8L.js";import"./i18n-CdSCDnmA-BDPBg7Eu.js";import"./access-and-short-key-bcID78Ha-CK3F9UJc.js";import"./disabled-BydergHu-BPFXrbWx.js";import"./hide-label-DRunOux4-DtTbz-0D.js";import"./label-CdtNxOKu-CLyKncMr.js";import"./tooltip-align-_VI7LehI-BA2gIX1h.js";import"./align-CyK0wp7d-Ds_zJkMi.js";import"./associated.controller-BKIODHIT-DjKWct4T.js";import"./clsx-eK3rPvPS-BT_IL7Fz.js";import"./InternalUnderlinedBadgeText-i_4-zRGd-BtWo_Ewc.js";import"./reuse-CX4AQDkS-Cyh-fyjG.js";import"./Icon-DAAnSHZC-Dfyu_VE7.js";import"./icons-72ER78AW-V6GT6JtO.js";import"./Input-DBiN9aFG-98jE4J2q.js";import"./Heading-Of5WUIQt-CrisRUf_.js";/*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */class g extends u{constructor(n,e,a){super(n,e,a),this.component=n}validateAutoComplete(n){m(this.component,n)}validateSuggestions(n){f(this.component,n)}validateValue(n){r(this.component,"_value",n),this.setFormAssociatedValue(this.component.state._value)}componentWillLoad(){super.componentWillLoad(),this.validateAutoComplete(this.component._autoComplete),this.validateSuggestions(this.component._suggestions),this.validateValue(this.component._value)}}const b=`/*
4
4
  * This file defines the layer order for all CSS layers used in KoliBri.
@@ -19,8 +19,8 @@ import{h as o,r as l,g as s,n as r}from"./index-D7AUPAYP.js";import{_ as d}from"
19
19
  @layer kol-a11y {
20
20
  :host {
21
21
  /*
22
- * Minimum size of interactive elements.
23
- */
22
+ * Minimum size of interactive elements.
23
+ */
24
24
  --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));
25
25
  /*
26
26
  * No element should be used without verifying the contrast ratio of its background and font colors.
@@ -41,6 +41,10 @@ import{h as o,r as l,g as s,n as r}from"./index-D7AUPAYP.js";import{_ as d}from"
41
41
  * Word spacing is required for all texts.
42
42
  */
43
43
  word-spacing: inherit;
44
+ /*
45
+ * Text should be aligned left by default to provide a predictable starting point.
46
+ */
47
+ text-align: left;
44
48
  }
45
49
  * {
46
50
  /*
@@ -79,6 +83,10 @@ import{h as o,r as l,g as s,n as r}from"./index-D7AUPAYP.js";import{_ as d}from"
79
83
  option,
80
84
  select,
81
85
  textarea {
86
+ /*
87
+ * All elements should inherit the text color from his parent element.
88
+ */
89
+ color: inherit;
82
90
  /*
83
91
  * All elements should inherit the font family from his parent element.
84
92
  */
@@ -328,4 +336,4 @@ import{h as o,r as l,g as s,n as r}from"./index-D7AUPAYP.js";import{_ as d}from"
328
336
  cursor: not-allowed;
329
337
  }
330
338
  }`,v=class{async getValue(){var t;return(t=this.refInputText)===null||t===void 0?void 0:t.value}async kolFocus(){var t;(t=this.refInputText)===null||t===void 0||t.focus()}get hasSuggestions(){return Array.isArray(this.state._suggestions)&&this.state._suggestions.length>0}getFormFieldProps(){return{state:this.state,class:"kol-input-color",tooltipAlign:this._tooltipAlign,onClick:()=>{var t;return(t=this.refInputText)===null||t===void 0?void 0:t.focus()},alert:this.showAsAlert()}}getInputColorProps(){return Object.assign(Object.assign({},this.getGenericInputProps()),{ref:this.catchColorRef,type:"color",name:this.state._name?`${this.state._name}-color`:void 0,list:this.hasSuggestions?`${this.state._id}-list`:void 0,id:void 0,"aria-hidden":"true",tabIndex:-1,onInput:this.onColorInput})}getInputTextProps(){return Object.assign(Object.assign({},this.getGenericInputProps()),{ref:this.catchRef,type:"text",name:this.state._name?`${this.state._name}-text`:void 0,list:this.hasSuggestions?`${this.state._id}-list`:void 0,onInput:this.onTextInput})}getGenericInputProps(){const t=this.state,n=d(t,["_suggestions"]);return Object.assign(Object.assign({state:Object.assign(Object.assign({},n),{_suggestions:[]})},this.controller.onFacade),{onBlur:this.onBlur,onFocus:this.onFocus})}render(){return o(c,Object.assign({key:"e8d6e6297b0317c152a70cbfe7cef1e5f68103ed"},this.getFormFieldProps()),o(h,{key:"d4ad08b365b7821948e5088d7091bd5362a77770",state:this.state,class:"kol-input-color__inputs-wrapper"},o("div",{key:"f4a2323aa46e415cb6a3917be66c9914fa4104f9",class:"kol-input-color__inputs-wrapper"},o(i,Object.assign({key:"f856cae4f626b54df545e3ce789e97f2e0aa730e",class:"kol-input-color__input kol-input-color__input--color"},this.getInputColorProps())),o(i,Object.assign({key:"df6689ec1e944d388ca4b837406f4563ce2e5618",class:"kol-input-color__input kol-input-color__input--text"},this.getInputTextProps())))))}constructor(t){l(this,t),this.catchRef=n=>{this.refInputText=n},this.catchColorRef=n=>{this.refInputColor=n},this.onBlur=n=>{this.controller.onFacade.onBlur(n),this.inputHasFocus=!1},this.onFocus=n=>{this.controller.onFacade.onFocus(n),this.inputHasFocus=!0},this.onColorInput=n=>{const e=n.target.value;this.state._value=e,this.refInputText&&(this.refInputText.value=e),this.controller.onFacade.onInput(n)},this.onTextInput=n=>{let e=n.target.value;e.startsWith("#")||(e=`#${e}`),this._value=e,this.refInputColor&&(this.refInputColor.value=e),this.controller.onFacade.onInput(n)},this._autoComplete="off",this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._tooltipAlign="top",this._touched=!1,this.state={_hideMsg:!1,_id:`id-${p()}`,_label:"",_suggestions:[]},this.inputHasFocus=!1,this.controller=new g(this,"color",this.host)}showAsAlert(){return!!this.state._touched&&!this.inputHasFocus}validateAccessKey(t){this.controller.validateAccessKey(t)}validateAutoComplete(t){this.controller.validateAutoComplete(t)}validateDisabled(t){this.controller.validateDisabled(t)}validateHideMsg(t){this.controller.validateHideMsg(t)}validateHideLabel(t){this.controller.validateHideLabel(t)}validateHint(t){this.controller.validateHint(t)}validateIcons(t){this.controller.validateIcons(t)}validateId(t){this.controller.validateId(t)}validateLabel(t){this.controller.validateLabel(t)}validateMsg(t){this.controller.validateMsg(t)}validateName(t){this.controller.validateName(t)}validateOn(t){this.controller.validateOn(t)}validateShortKey(t){this.controller.validateShortKey(t)}validateSmartButton(t){this.controller.validateSmartButton(t)}validateSuggestions(t){this.controller.validateSuggestions(t)}validateSyncValueBySelector(t){this.controller.validateSyncValueBySelector(t)}validateTouched(t){this.controller.validateTouched(t)}validateValue(t){this.controller.validateValue(t)}componentDidLoad(){!this._value&&this.refInputColor&&(this._value=this.refInputColor.value)}componentWillLoad(){this._touched=this._touched===!0,this.controller.componentWillLoad()}static get delegatesFocus(){return!0}get host(){return s(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_autoComplete:["validateAutoComplete"],_disabled:["validateDisabled"],_hideMsg:["validateHideMsg"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_msg:["validateMsg"],_name:["validateName"],_on:["validateOn"],_shortKey:["validateShortKey"],_smartButton:["validateSmartButton"],_suggestions:["validateSuggestions"],_syncValueBySelector:["validateSyncValueBySelector"],_touched:["validateTouched"],_value:["validateValue"]}}};v.style={default:b};export{v as kol_input_color};
331
- //# sourceMappingURL=kol-input-color.entry-DueTLAMj.js.map
339
+ //# sourceMappingURL=kol-input-color.entry-BP7j43Eo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kol-input-color.entry-BP7j43Eo.js","sources":["../../../../components/dist/esm/kol-input-color.entry.js"],"sourcesContent":["/*!\n * KoliBri - The accessible HTML-Standard\n */\nimport { h, r as registerInstance, g as getElement } from './index-Bzja1K-y.js';\nimport { _ as __rest } from './tslib.es6-CxX45GIN.js';\nimport { F as FormFieldStateWrapper } from './FormFieldStateWrapper-CCxckxyk.js';\nimport { I as InputIconController, a as InputContainerStateWrapperFc } from './controller-icon-DufJu-M8.js';\nimport { I as InputStateWrapper } from './InputStateWrapper-D-ZsGHSy.js';\nimport { n as nonce } from './dev.utils-jFnvJk5c.js';\nimport { e as watchString } from './common-8fBdMvJM.js';\nimport { v as validateAutoComplete } from './auto-complete-BsG3RQJ3.js';\nimport { v as validateSuggestions } from './suggestions-DfF4lcNG.js';\nimport './access-and-short-key-bcID78Ha.js';\nimport './disabled-BydergHu.js';\nimport './hide-label-DRunOux4.js';\nimport './label-CdtNxOKu.js';\nimport './tooltip-align-_VI7LehI.js';\nimport './align-CyK0wp7d.js';\nimport './events-CoPFQEiC.js';\nimport './associated.controller-BKIODHIT.js';\nimport './bootstrap-BiRnv4fV.js';\nimport './component-names-CkE54Ym7.js';\nimport './i18n-ZF6JbdVP.js';\nimport './isObject-DvSELytj.js';\nimport './clsx-eK3rPvPS.js';\nimport './Alert-rDcGDFja.js';\nimport './i18n-CdSCDnmA.js';\nimport './bem-CHTjklyp.js';\nimport './browser-Ba2Wl_kh.js';\nimport './Heading-Of5WUIQt.js';\nimport './InternalUnderlinedBadgeText-i_4-zRGd.js';\nimport './reuse-CX4AQDkS.js';\nimport './Icon-DAAnSHZC.js';\nimport './icons-72ER78AW.js';\nimport './Input-DBiN9aFG.js';\n\nclass InputColorController extends InputIconController {\n constructor(component, name, host) {\n super(component, name, host);\n this.component = component;\n }\n validateAutoComplete(value) {\n validateAutoComplete(this.component, value);\n }\n validateSuggestions(value) {\n validateSuggestions(this.component, value);\n }\n validateValue(value) {\n watchString(this.component, '_value', value);\n this.setFormAssociatedValue(this.component.state._value);\n }\n componentWillLoad() {\n super.componentWillLoad();\n this.validateAutoComplete(this.component._autoComplete);\n this.validateSuggestions(this.component._suggestions);\n this.validateValue(this.component._value);\n }\n}\n\nconst defaultStyleCss = \"/*\\n* This file defines the layer order for all CSS layers used in KoliBri.\\n* The order is important as it determines the cascade priority.\\n*\\n* Layer order (lowest to highest priority):\\n* 1. kol-a11y - Accessibility defaults and requirements\\n* 2. kol-global - Global component styles and resets\\n* 3. kol-component - Component-specific styles\\n* 4. kol-theme-global - Theme-specific global styles\\n* 5. kol-theme-component - Theme-specific component styles\\n*/\\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\\n/* forward the rem function */\\n/*\\n * This file contains all rules for accessibility.\\n */\\n@layer kol-a11y {\\n :host {\\n /*\\n * Minimum size of interactive elements.\\n */\\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\\n /*\\n * No element should be used without verifying the contrast ratio of its background and font colors.\\n * By initially setting the background color to white and the font color to black,\\n * the contrast ratio is ensured and explicit adjustment is forced.\\n */\\n color: black;\\n background-color: white;\\n /*\\n * Verdana is an accessible font that can be used without requiring additional loading time.\\n */\\n font-family: Verdana;\\n /*\\n * Letter spacing is required for all texts.\\n */\\n letter-spacing: inherit;\\n /*\\n * Word spacing is required for all texts.\\n */\\n word-spacing: inherit;\\n /*\\n * Text should be aligned left by default to provide a predictable starting point.\\n */\\n text-align: left;\\n }\\n * {\\n /*\\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\\n */\\n hyphens: auto;\\n /*\\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\\n */\\n word-break: break-word;\\n }\\n /*\\n * All interactive elements should have a minimum size of to-rem(44).\\n */\\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\\n /* option, */\\n /* select, */\\n /* textarea, */\\n button,\\n .kol-input .input {\\n min-width: var(--a11y-min-size);\\n min-height: var(--a11y-min-size);\\n }\\n /*\\n * Some interactive elements should not inherit the font-family and font-size.\\n */\\n a,\\n button,\\n h1,\\n h2,\\n h3,\\n h4,\\n h5,\\n h6,\\n input,\\n option,\\n select,\\n textarea {\\n /*\\n * All elements should inherit the text color from his parent element.\\n */\\n color: inherit;\\n /*\\n * All elements should inherit the font family from his parent element.\\n */\\n font-family: inherit;\\n /*\\n * All elements should inherit the font size from his parent element.\\n */\\n font-size: inherit;\\n /*\\n * Letter spacing is required for all texts.\\n */\\n letter-spacing: inherit;\\n /*\\n * Word spacing is required for all texts.\\n */\\n word-spacing: inherit;\\n }\\n /**\\n * Sometimes we need the semantic element for accessibility reasons,\\n * but we don't want to show it.\\n *\\n * - https://www.a11yproject.com/posts/how-to-hide-content/\\n */\\n .visually-hidden {\\n position: fixed;\\n top: 0;\\n left: 0;\\n width: 1px;\\n height: 1px;\\n overflow: hidden;\\n white-space: nowrap;\\n clip-path: inset(50%);\\n }\\n}\\n@layer kol-global {\\n /*\\n * Dieses CSS stellt sicher, dass der Standard-Style\\n * von A und Button resettet werden.\\n */\\n :is(a, button) {\\n background-color: transparent;\\n width: 100%;\\n margin: 0;\\n padding: 0;\\n border: none;\\n /* 100% needed for custom width from outside */\\n }\\n /*\\n * Ensure elements with hidden attribute to be actually not visible\\n * @see https://meowni.ca/hidden.is.a.lie.html\\n */\\n [hidden] {\\n display: none !important;\\n }\\n .badge-text-hint {\\n color: black;\\n background-color: lightgray;\\n }\\n}\\n@layer kol-global {\\n :host {\\n /*\\n * The max-width is needed to prevent the table from overflowing the\\n * parent node, if the table is wider than the parent node.\\n */\\n max-width: 100%;\\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\\n }\\n * {\\n /*\\n * We prefer to box-sizing: border-box for all elements.\\n */\\n box-sizing: border-box;\\n }\\n .kol-span {\\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\\n display: grid;\\n place-items: center;\\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\\n }\\n .kol-span__container {\\n display: flex;\\n place-items: center;\\n }\\n a,\\n button {\\n cursor: pointer;\\n }\\n .kol-span .kol-span__label--hide-label .kol-span__label {\\n display: none;\\n }\\n /* Reset browser agent style. */\\n button:disabled {\\n color: unset;\\n }\\n .disabled label,\\n .disabled:focus-within label,\\n [aria-disabled=true],\\n [aria-disabled=true]:focus,\\n [disabled],\\n [disabled]:focus {\\n opacity: 0.5;\\n outline: none;\\n cursor: not-allowed;\\n }\\n [aria-disabled=true]:focus .kol-span,\\n [disabled]:focus .kol-span {\\n outline: none !important;\\n }\\n}\\n@layer kol-component {\\n :host {\\n display: block;\\n }\\n}\\n@layer kol-component {\\n @keyframes fadeInOpacity {\\n 0% {\\n opacity: 0;\\n }\\n 100% {\\n opacity: 1;\\n }\\n }\\n .kol-tooltip {\\n display: contents;\\n }\\n .kol-tooltip__floating {\\n display: none;\\n position: fixed;\\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\\n top: 0;\\n left: 0;\\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\\n width: var(--kol-tooltip-width, max-content);\\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\\n max-width: 90vw;\\n max-height: 90vh;\\n visibility: hidden;\\n animation-duration: 0.25s;\\n animation-iteration-count: 1;\\n animation-name: fadeInOpacity;\\n animation-timing-function: ease-in;\\n }\\n .kol-tooltip__arrow {\\n transform: rotate(45deg);\\n color: #000;\\n background-color: #fff;\\n position: absolute;\\n z-index: 999;\\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\\n }\\n .kol-tooltip__content {\\n color: #000;\\n background-color: #fff;\\n position: relative;\\n z-index: 1000;\\n }\\n}\\n@layer kol-component {\\n .kol-alert {\\n display: grid;\\n }\\n .kol-alert__container {\\n display: flex;\\n place-items: center;\\n }\\n .kol-alert__container-content {\\n flex-grow: 1;\\n }\\n .kol-alert__closer {\\n /* Visible with forced colors */\\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\\n }\\n .kol-form-field {\\n display: grid;\\n }\\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\\n cursor: pointer;\\n }\\n .kol-form-field--disabled .kol-form-field__label {\\n opacity: 0.5;\\n }\\n .kol-form-field--required .kol-form-field__label-text::after {\\n content: \\\"*\\\";\\n }\\n .kol-form-field--disabled .kol-form-field__hint {\\n opacity: 0.5;\\n }\\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\\n content: \\\"*\\\";\\n }\\n .kol-input-container {\\n background-color: white;\\n display: grid;\\n width: 100%;\\n min-width: var(--a11y-min-size);\\n min-height: var(--a11y-min-size);\\n align-items: center;\\n grid-template-columns: 1fr;\\n }\\n .kol-input-container:has(> .kol-input-container__adornment--start) {\\n grid-template-columns: auto 1fr;\\n }\\n .kol-input-container:has(> .kol-input-container__adornment--end) {\\n grid-template-columns: 1fr auto;\\n }\\n .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) {\\n grid-template-columns: auto 1fr auto;\\n }\\n .kol-input-container__container {\\n position: relative;\\n }\\n .kol-input-container__adornment {\\n display: flex;\\n align-items: center;\\n }\\n .kol-input-container__adornment .kol-icon {\\n display: grid;\\n height: var(--a11y-min-size);\\n place-items: center;\\n }\\n .kol-input {\\n width: 100%;\\n min-width: var(--a11y-min-size);\\n }\\n .kol-input:focus {\\n outline: none;\\n }\\n .kol-input-color__input--color {\\n flex-grow: 1;\\n }\\n .kol-input-color__input--text {\\n width: calc(112 * 1rem / var(--kolibri-root-font-size, 16));\\n }\\n .kol-input-color__inputs-wrapper {\\n display: flex;\\n gap: calc(6 * 1rem / var(--kolibri-root-font-size, 16)) !important;\\n flex-direction: row;\\n align-items: center;\\n }\\n .kol-input {\\n cursor: pointer;\\n }\\n .kol-input:disabled {\\n cursor: not-allowed;\\n }\\n}\";\n\nconst KolInputColor = class {\n async getValue() {\n var _a;\n return (_a = this.refInputText) === null || _a === void 0 ? void 0 : _a.value;\n }\n async kolFocus() {\n var _a;\n (_a = this.refInputText) === null || _a === void 0 ? void 0 : _a.focus();\n }\n get hasSuggestions() {\n return Array.isArray(this.state._suggestions) && this.state._suggestions.length > 0;\n }\n getFormFieldProps() {\n return {\n state: this.state,\n class: 'kol-input-color',\n tooltipAlign: this._tooltipAlign,\n onClick: () => { var _a; return (_a = this.refInputText) === null || _a === void 0 ? void 0 : _a.focus(); },\n alert: this.showAsAlert(),\n };\n }\n getInputColorProps() {\n return Object.assign(Object.assign({}, this.getGenericInputProps()), { ref: this.catchColorRef, type: 'color', name: this.state._name ? `${this.state._name}-color` : undefined, list: this.hasSuggestions ? `${this.state._id}-list` : undefined, id: undefined, 'aria-hidden': 'true', tabIndex: -1, onInput: this.onColorInput });\n }\n getInputTextProps() {\n return Object.assign(Object.assign({}, this.getGenericInputProps()), { ref: this.catchRef, type: 'text', name: this.state._name ? `${this.state._name}-text` : undefined, list: this.hasSuggestions ? `${this.state._id}-list` : undefined, onInput: this.onTextInput });\n }\n getGenericInputProps() {\n const _a = this.state, other = __rest(_a, [\"_suggestions\"]);\n return Object.assign(Object.assign({ state: Object.assign(Object.assign({}, other), { _suggestions: [] }) }, this.controller.onFacade), { onBlur: this.onBlur, onFocus: this.onFocus });\n }\n render() {\n return (h(FormFieldStateWrapper, Object.assign({ key: 'e8d6e6297b0317c152a70cbfe7cef1e5f68103ed' }, this.getFormFieldProps()), h(InputContainerStateWrapperFc, { key: 'd4ad08b365b7821948e5088d7091bd5362a77770', state: this.state, class: \"kol-input-color__inputs-wrapper\" }, h(\"div\", { key: 'f4a2323aa46e415cb6a3917be66c9914fa4104f9', class: \"kol-input-color__inputs-wrapper\" }, h(InputStateWrapper, Object.assign({ key: 'f856cae4f626b54df545e3ce789e97f2e0aa730e', class: \"kol-input-color__input kol-input-color__input--color\" }, this.getInputColorProps())), h(InputStateWrapper, Object.assign({ key: 'df6689ec1e944d388ca4b837406f4563ce2e5618', class: \"kol-input-color__input kol-input-color__input--text\" }, this.getInputTextProps()))))));\n }\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.catchRef = (ref) => {\n this.refInputText = ref;\n };\n this.catchColorRef = (ref) => {\n this.refInputColor = ref;\n };\n this.onBlur = (event) => {\n this.controller.onFacade.onBlur(event);\n this.inputHasFocus = false;\n };\n this.onFocus = (event) => {\n this.controller.onFacade.onFocus(event);\n this.inputHasFocus = true;\n };\n this.onColorInput = (event) => {\n const value = event.target.value;\n this.state._value = value;\n if (this.refInputText) {\n this.refInputText.value = value;\n }\n this.controller.onFacade.onInput(event);\n };\n this.onTextInput = (event) => {\n let value = event.target.value;\n if (!value.startsWith('#')) {\n value = `#${value}`;\n }\n this._value = value;\n if (this.refInputColor) {\n this.refInputColor.value = value;\n }\n this.controller.onFacade.onInput(event);\n };\n this._autoComplete = 'off';\n this._disabled = false;\n this._hideMsg = false;\n this._hideLabel = false;\n this._hint = '';\n this._tooltipAlign = 'top';\n this._touched = false;\n this.state = {\n _hideMsg: false,\n _id: `id-${nonce()}`,\n _label: '',\n _suggestions: [],\n };\n this.inputHasFocus = false;\n this.controller = new InputColorController(this, 'color', this.host);\n }\n showAsAlert() {\n return Boolean(this.state._touched) && !this.inputHasFocus;\n }\n validateAccessKey(value) {\n this.controller.validateAccessKey(value);\n }\n validateAutoComplete(value) {\n this.controller.validateAutoComplete(value);\n }\n validateDisabled(value) {\n this.controller.validateDisabled(value);\n }\n validateHideMsg(value) {\n this.controller.validateHideMsg(value);\n }\n validateHideLabel(value) {\n this.controller.validateHideLabel(value);\n }\n validateHint(value) {\n this.controller.validateHint(value);\n }\n validateIcons(value) {\n this.controller.validateIcons(value);\n }\n validateId(value) {\n this.controller.validateId(value);\n }\n validateLabel(value) {\n this.controller.validateLabel(value);\n }\n validateMsg(value) {\n this.controller.validateMsg(value);\n }\n validateName(value) {\n this.controller.validateName(value);\n }\n validateOn(value) {\n this.controller.validateOn(value);\n }\n validateShortKey(value) {\n this.controller.validateShortKey(value);\n }\n validateSmartButton(value) {\n this.controller.validateSmartButton(value);\n }\n validateSuggestions(value) {\n this.controller.validateSuggestions(value);\n }\n validateSyncValueBySelector(value) {\n this.controller.validateSyncValueBySelector(value);\n }\n validateTouched(value) {\n this.controller.validateTouched(value);\n }\n validateValue(value) {\n this.controller.validateValue(value);\n }\n componentDidLoad() {\n if (!this._value && this.refInputColor) {\n this._value = this.refInputColor.value;\n }\n }\n componentWillLoad() {\n this._touched = this._touched === true;\n this.controller.componentWillLoad();\n }\n static get delegatesFocus() { return true; }\n get host() { return getElement(this); }\n static get watchers() { return {\n \"_accessKey\": [\"validateAccessKey\"],\n \"_autoComplete\": [\"validateAutoComplete\"],\n \"_disabled\": [\"validateDisabled\"],\n \"_hideMsg\": [\"validateHideMsg\"],\n \"_hideLabel\": [\"validateHideLabel\"],\n \"_hint\": [\"validateHint\"],\n \"_icons\": [\"validateIcons\"],\n \"_id\": [\"validateId\"],\n \"_label\": [\"validateLabel\"],\n \"_msg\": [\"validateMsg\"],\n \"_name\": [\"validateName\"],\n \"_on\": [\"validateOn\"],\n \"_shortKey\": [\"validateShortKey\"],\n \"_smartButton\": [\"validateSmartButton\"],\n \"_suggestions\": [\"validateSuggestions\"],\n \"_syncValueBySelector\": [\"validateSyncValueBySelector\"],\n \"_touched\": [\"validateTouched\"],\n \"_value\": [\"validateValue\"]\n }; }\n};\nKolInputColor.style = {\n default: defaultStyleCss\n};\n\nexport { KolInputColor as kol_input_color };\n//# sourceMappingURL=kol-input-color.entry.js.map\n"],"names":["InputColorController","InputIconController","component","name","host","value","validateAutoComplete","validateSuggestions","watchString","defaultStyleCss","KolInputColor","_a","other","__rest","h","FormFieldStateWrapper","InputContainerStateWrapperFc","InputStateWrapper","hostRef","registerInstance","ref","event","nonce","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u,s as _}from"./index-D7AUPAYP.js";import{c as b}from"./clsx-eK3rPvPS-BT_IL7Fz.js";import{F as k}from"./FormFieldStateWrapper-DBc4KUdQ-CVkWtyyV.js";import{I as w,a as S}from"./controller-icon-C8-i4mlh-BGpCnuog.js";import{I as x}from"./InputStateWrapper-CJbBu-pG-CB4qoRih.js";import{n as T}from"./dev.utils-BJDuEPOn-TJbx-Gcl.js";import{p as V}from"./controller-CV2y9Ae_-Dth4q1vC.js";import{v as D}from"./auto-complete-BsG3RQJ3-Dqn5sZ6m.js";import{v as O}from"./read-only-CcRldJ9w-CwNO7sH7.js";import{v as R}from"./required-G86n77y0-GePRNKdB.js";import{v as M}from"./suggestions-DfF4lcNG-ChsxgVrC.js";import"./isObject-DvSELytj-B0RigBxT.js";import"./tslib.es6-CxX45GIN-BAJoBDh7.js";import"./Alert-COUNttIM-CvH_qEya.js";import"./i18n-CdSCDnmA-D76H1NpQ.js";import"./access-and-short-key-bcID78Ha-L8u4_6ia.js";import"./disabled-BydergHu-B1DLdE7n.js";import"./hide-label-DRunOux4-oo1N_oyu.js";import"./label-CdtNxOKu-xHQWPYNA.js";import"./tooltip-align-_VI7LehI-B43QQEAJ.js";import"./align-CyK0wp7d-Bgi-SsTU.js";import"./associated.controller-BKIODHIT-DcF9U5JZ.js";import"./InternalUnderlinedBadgeText-Bcop6gIY-DcZYTeCS.js";import"./reuse-CX4AQDkS-Cyh-fyjG.js";import"./Icon-DhhnLcqx-Duv7memP.js";import"./icons-72ER78AW-CdwN4BiP.js";import"./Input-djZI0PHg-CvPBJ0GD.js";import"./Heading-DDR2LlZW-C6b5Q_9R.js";/*!
1
+ import{h as d,r as g,u as y,g as v,w as u,s as b}from"./index-CScqQH4b.js";import{c as _}from"./clsx-eK3rPvPS-BT_IL7Fz.js";import{F as k}from"./FormFieldStateWrapper-CCxckxyk-B4bHyylZ.js";import{I as w,a as S}from"./controller-icon-DufJu-M8-Dd9_utrw.js";import{I as x}from"./InputStateWrapper-D-ZsGHSy-XxY4nRAw.js";import{n as T}from"./dev.utils-jFnvJk5c-D37nV2Pq.js";import{p as V}from"./controller-CV2y9Ae_-DuhIALLa.js";import{v as D}from"./auto-complete-BsG3RQJ3-DjAvSQV5.js";import{v as R}from"./read-only-CcRldJ9w-B6Kca91U.js";import{v as O}from"./required-G86n77y0-BPjPpx0R.js";import{v as A}from"./suggestions-DfF4lcNG-BF46R73u.js";import"./isObject-DvSELytj-B0RigBxT.js";import"./tslib.es6-CxX45GIN-BAJoBDh7.js";import"./Alert-rDcGDFja-BMLJUD8L.js";import"./i18n-CdSCDnmA-BDPBg7Eu.js";import"./access-and-short-key-bcID78Ha-CK3F9UJc.js";import"./disabled-BydergHu-BPFXrbWx.js";import"./hide-label-DRunOux4-DtTbz-0D.js";import"./label-CdtNxOKu-CLyKncMr.js";import"./tooltip-align-_VI7LehI-BA2gIX1h.js";import"./align-CyK0wp7d-Ds_zJkMi.js";import"./associated.controller-BKIODHIT-DjKWct4T.js";import"./InternalUnderlinedBadgeText-i_4-zRGd-BtWo_Ewc.js";import"./reuse-CX4AQDkS-Cyh-fyjG.js";import"./Icon-DAAnSHZC-Dfyu_VE7.js";import"./icons-72ER78AW-V6GT6JtO.js";import"./Input-DBiN9aFG-98jE4J2q.js";import"./Heading-Of5WUIQt-CrisRUf_.js";/*!
2
2
  * KoliBri - The accessible HTML-Standard
3
- */const m=["date","datetime-local","month","time","week"],A=t=>typeof t=="string"&&m.includes(t),F=(t,e)=>{u(t,"_type",A,new Set(m),e)};class a extends S{constructor(e,n,i){super(e,n,i),this.validateIso8601=(s,l,r)=>u(this.component,s,o=>o==null||o===""||this.validateDateString(o),new Set(["Date","string{ISO-8601}"]),a.tryParseToString(l,this.component._type,this.component._step),{hooks:{afterPatch:o=>{typeof o=="string"&&r&&r(o)}}}),this.component=e}validateAutoComplete(e){D(this.component,e)}validateSuggestions(e){M(this.component,e)}static tryParseToString(e,n,i){if(typeof e=="string"||e===null)return e;if(typeof e=="object"&&e instanceof Date){const s=e.getFullYear(),l=String(e.getMonth()+1).padStart(2,"0"),r=String(e.getDate()).padStart(2,"0"),o=String(e.getHours()).padStart(2,"0"),c=String(e.getMinutes()).padStart(2,"0"),f=String(e.getSeconds()).padStart(2,"0"),h=[s,l,r].join("-"),p=[o,c,f].join(":");switch(n){case"date":return h;case"datetime-local":return`${h}T${p}`;case"month":return`${s}-${l}`;case"time":return i===void 0||String(i)==="60"?`${o}:${c}`:p;case"week":return`${s}-W${this.getWeekNumberOfDate(e)}`}}}static getWeekNumberOfDate(e){const n=new Date(e),i=(n.getDay()+6)%7;n.setDate(n.getDate()-i+3);const s=n.valueOf();return n.setMonth(0,1),n.getDay()!==4&&n.setMonth(0,1+(4-n.getDay()+7)%7),(1+Math.ceil((s-n.valueOf())/6048e5)).toString().padStart(2,"0")}validateDateString(e){switch(this.component._type){case"date":return a.isoDateRegex.test(e);case"datetime-local":return a.isoLocalDateTimeRegex.test(e);case"month":return a.isoMonthRegex.test(e);case"time":return a.isoTimeRegex.test(e);case"week":return a.isoWeekRegex.test(e);default:return!1}}onBlur(e){super.onBlur(e),!!e.target.value!=!!this.component._value&&(this.component._value=e.target.value)}validateMax(e){const n=e==null&&(this.component._type==="date"||this.component._type==="month"||this.component._type==="datetime-local")?a.DEFAULT_MAX_DATE:e;this.validateIso8601("_max",n)}validateMin(e){this.validateIso8601("_min",e)}validateOn(e){_(this.component,"_on",Object.assign(Object.assign({},e),{onChange:(n,i)=>{!!i!=!!this.component._value&&(this.component._value=i),e?.onChange&&e.onChange(n,i)}}))}validateReadOnly(e){O(this.component,e)}validateRequired(e){R(this.component,e)}validateStep(e){this.validateNumber("_step",e)}validateType(e){F(this.component,e)}validateValue(e){this.validateValueEx(e)}validateValueEx(e,n){this.validateIso8601("_value",e,n),this.setFormAssociatedValue(this.component.state._value)}componentWillLoad(){super.componentWillLoad(),this.validateAutoComplete(this.component._autoComplete),this.validateMax(this.component._max),this.validateMin(this.component._min),this.validateLabel(this.component._label),this.validateSuggestions(this.component._suggestions),this.validateOn(this.component._on),this.validateReadOnly(this.component._readOnly),this.validateRequired(this.component._required),this.validateStep(this.component._step),this.validateType(this.component._type),this.validateValue(this.component._value)}}a.isoDateRegex=/^\d{4}-([0]\d|1[0-2])-([0-2]\d|3[01])/;a.isoLocalDateTimeRegex=/^\d{4}-([0]\d|1[0-2])-([0-2]\d|3[01])[T ][0-2]\d:[0-5]\d(:[0-5]\d(?:\.\d+)?)?/;a.isoMonthRegex=/^\d{4}-([0]\d|1[0-2])/;a.isoTimeRegex=/^[0-2]\d:[0-5]\d(:[0-5]\d(?:\.\d+)?)?/;a.isoWeekRegex=/^\d{4}-W(?:[0-4]\d|5[0-3])$/;a.DEFAULT_MAX_DATE=new Date(9999,11,31,23,59,59);const I=`/*
3
+ */const m=["date","datetime-local","month","time","week"],F=t=>typeof t=="string"&&m.includes(t),M=(t,e)=>{u(t,"_type",F,new Set(m),e)};class o extends S{constructor(e,n,i){super(e,n,i),this.validateIso8601=(s,l,r)=>u(this.component,s,a=>a==null||a===""||this.validateDateString(a),new Set(["Date","string{ISO-8601}"]),o.tryParseToString(l,this.component._type,this.component._step),{hooks:{afterPatch:a=>{typeof a=="string"&&r&&r(a)}}}),this.component=e}validateAutoComplete(e){D(this.component,e)}validateSuggestions(e){A(this.component,e)}static tryParseToString(e,n,i){if(typeof e=="string"||e===null)return e;if(typeof e=="object"&&e instanceof Date){const s=e.getFullYear(),l=String(e.getMonth()+1).padStart(2,"0"),r=String(e.getDate()).padStart(2,"0"),a=String(e.getHours()).padStart(2,"0"),c=String(e.getMinutes()).padStart(2,"0"),f=String(e.getSeconds()).padStart(2,"0"),h=[s,l,r].join("-"),p=[a,c,f].join(":");switch(n){case"date":return h;case"datetime-local":return`${h}T${p}`;case"month":return`${s}-${l}`;case"time":return i===void 0||String(i)==="60"?`${a}:${c}`:p;case"week":return`${s}-W${this.getWeekNumberOfDate(e)}`}}}static getWeekNumberOfDate(e){const n=new Date(e),i=(n.getDay()+6)%7;n.setDate(n.getDate()-i+3);const s=n.valueOf();return n.setMonth(0,1),n.getDay()!==4&&n.setMonth(0,1+(4-n.getDay()+7)%7),(1+Math.ceil((s-n.valueOf())/6048e5)).toString().padStart(2,"0")}validateDateString(e){switch(this.component._type){case"date":return o.isoDateRegex.test(e);case"datetime-local":return o.isoLocalDateTimeRegex.test(e);case"month":return o.isoMonthRegex.test(e);case"time":return o.isoTimeRegex.test(e);case"week":return o.isoWeekRegex.test(e);default:return!1}}onBlur(e){super.onBlur(e),!!e.target.value!=!!this.component._value&&(this.component._value=e.target.value)}validateMax(e){const n=e==null&&(this.component._type==="date"||this.component._type==="month"||this.component._type==="datetime-local")?o.DEFAULT_MAX_DATE:e;this.validateIso8601("_max",n)}validateMin(e){this.validateIso8601("_min",e)}validateOn(e){b(this.component,"_on",Object.assign(Object.assign({},e),{onChange:(n,i)=>{!!i!=!!this.component._value&&(this.component._value=i),e?.onChange&&e.onChange(n,i)}}))}validateReadOnly(e){R(this.component,e)}validateRequired(e){O(this.component,e)}validateStep(e){this.validateNumber("_step",e)}validateType(e){M(this.component,e)}validateValue(e){this.validateValueEx(e)}validateValueEx(e,n){this.validateIso8601("_value",e,n),this.setFormAssociatedValue(this.component.state._value)}componentWillLoad(){super.componentWillLoad(),this.validateAutoComplete(this.component._autoComplete),this.validateMax(this.component._max),this.validateMin(this.component._min),this.validateLabel(this.component._label),this.validateSuggestions(this.component._suggestions),this.validateOn(this.component._on),this.validateReadOnly(this.component._readOnly),this.validateRequired(this.component._required),this.validateStep(this.component._step),this.validateType(this.component._type),this.validateValue(this.component._value)}}o.isoDateRegex=/^\d{4}-([0]\d|1[0-2])-([0-2]\d|3[01])/;o.isoLocalDateTimeRegex=/^\d{4}-([0]\d|1[0-2])-([0-2]\d|3[01])[T ][0-2]\d:[0-5]\d(:[0-5]\d(?:\.\d+)?)?/;o.isoMonthRegex=/^\d{4}-([0]\d|1[0-2])/;o.isoTimeRegex=/^[0-2]\d:[0-5]\d(:[0-5]\d(?:\.\d+)?)?/;o.isoWeekRegex=/^\d{4}-W(?:[0-4]\d|5[0-3])$/;o.DEFAULT_MAX_DATE=new Date(9999,11,31,23,59,59);const I=`/*
4
4
  * This file defines the layer order for all CSS layers used in KoliBri.
5
5
  * The order is important as it determines the cascade priority.
6
6
  *
@@ -19,8 +19,8 @@ import{h as d,r as g,u as y,g as v,w as u,s as _}from"./index-D7AUPAYP.js";impor
19
19
  @layer kol-a11y {
20
20
  :host {
21
21
  /*
22
- * Minimum size of interactive elements.
23
- */
22
+ * Minimum size of interactive elements.
23
+ */
24
24
  --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));
25
25
  /*
26
26
  * No element should be used without verifying the contrast ratio of its background and font colors.
@@ -41,6 +41,10 @@ import{h as d,r as g,u as y,g as v,w as u,s as _}from"./index-D7AUPAYP.js";impor
41
41
  * Word spacing is required for all texts.
42
42
  */
43
43
  word-spacing: inherit;
44
+ /*
45
+ * Text should be aligned left by default to provide a predictable starting point.
46
+ */
47
+ text-align: left;
44
48
  }
45
49
  * {
46
50
  /*
@@ -79,6 +83,10 @@ import{h as d,r as g,u as y,g as v,w as u,s as _}from"./index-D7AUPAYP.js";impor
79
83
  option,
80
84
  select,
81
85
  textarea {
86
+ /*
87
+ * All elements should inherit the text color from his parent element.
88
+ */
89
+ color: inherit;
82
90
  /*
83
91
  * All elements should inherit the font family from his parent element.
84
92
  */
@@ -309,5 +317,25 @@ import{h as d,r as g,u as y,g as v,w as u,s as _}from"./index-D7AUPAYP.js";impor
309
317
  .kol-input:focus {
310
318
  outline: none;
311
319
  }
312
- }`,z=class{async getValue(){var t;return this.inputRef&&this.remapValue((t=this.inputRef)===null||t===void 0?void 0:t.value)}async kolFocus(){var t;(t=this.inputRef)===null||t===void 0||t.focus()}async reset(){this.state=Object.assign(Object.assign({},this.state),{_value:null}),this.controller.setFormAssociatedValue(""),this.inputRef&&(this.inputRef.value="")}setInitialValueType(t){t instanceof Date?this._initialValueType="Date":typeof t=="string"?this._initialValueType="String":this._initialValueType=null}remapValue(t){return t===""?null:this._initialValueType==="Date"?new Date(t):t}getFormFieldProps(){return{state:this.state,class:b("kol-input-date",this.state._type,{"has-value":this.state._hasValue}),tooltipAlign:this._tooltipAlign,onClick:()=>{var t;return(t=this.inputRef)===null||t===void 0?void 0:t.focus()},alert:this.showAsAlert()}}getInputProps(){return Object.assign(Object.assign({ref:this.catchRef,state:this.state},this.controller.onFacade),{onBlur:this.onBlur,onFocus:this.onFocus,onKeyDown:this.onKeyDown,onChange:this.onChange,onInput:this.onInput})}render(){return d(k,Object.assign({key:"7d72e54985c31ecbd89e7a395e7d0a56f746e768"},this.getFormFieldProps()),d(w,{key:"44d6e0d4a5cd6f787654182459d6782d55ef4d5c",state:this.state},d(x,Object.assign({key:"bf6ac0de69717f5f2a820133154cc88d3d8a9c20"},this.getInputProps()))))}constructor(t){g(this,t),this._initialValueType=null,this.catchRef=e=>{this.inputRef=e},this.onBlur=e=>{this.controller.onFacade.onBlur(e),this.inputHasFocus=!1},this.onFocus=e=>{this.controller.onFacade.onFocus(e),this.inputHasFocus=!0},this.onChange=e=>{const n=e.target.value,i=this.remapValue(n);this.controller.onFacade.onChange(e,i)},this.onInput=e=>{const n=e.target.value,i=this.remapValue(n);this._value=i,this.controller.onFacade.onInput(e,!0,i)},this.onKeyDown=e=>{(e.code==="Enter"||e.code==="NumpadEnter")&&V({form:this.host})},this._autoComplete="off",this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._readOnly=!1,this._required=!1,this._tooltipAlign="top",this._touched=!1,this._type="date",this.state={_hasValue:!1,_hideMsg:!1,_id:`id-${T()}`,_label:"",_suggestions:[],_type:"datetime-local"},this.inputHasFocus=!1,this.controller=new a(this,"date",this.host)}showAsAlert(){return!!this.state._touched&&!this.inputHasFocus}validateAccessKey(t){this.controller.validateAccessKey(t)}validateAutoComplete(t){this.controller.validateAutoComplete(t)}validateDisabled(t){this.controller.validateDisabled(t)}validateHideMsg(t){this.controller.validateHideMsg(t)}validateHideLabel(t){this.controller.validateHideLabel(t)}validateHint(t){this.controller.validateHint(t)}validateIcons(t){this.controller.validateIcons(t)}validateId(t){this.controller.validateId(t)}validateLabel(t){this.controller.validateLabel(t)}validateMax(t){this.controller.validateMax(t)}validateMin(t){this.controller.validateMin(t)}validateMsg(t){this.controller.validateMsg(t)}validateName(t){this.controller.validateName(t)}validateOn(t){this.controller.validateOn(t)}validateReadOnly(t){this.controller.validateReadOnly(t)}validateRequired(t){this.controller.validateRequired(t)}validateShortKey(t){this.controller.validateShortKey(t)}validateSmartButton(t){this.controller.validateSmartButton(t)}validateSuggestions(t){this.controller.validateSuggestions(t)}validateStep(t){this.controller.validateStep(t)}validateSyncValueBySelector(t){this.controller.validateSyncValueBySelector(t)}validateTouched(t){this.controller.validateTouched(t)}validateType(t){this.controller.validateType(t)}validateValue(t){t instanceof Date&&y("Date type will be removed in v3. Use `Iso8601` instead."),this.controller.validateValueEx(t),t!=null&&this.setInitialValueType(t)}componentWillLoad(){this._value!==void 0&&this.setInitialValueType(this._value),this._touched=this._touched===!0,this.controller.componentWillLoad(),this.state._hasValue=!!this.state._value,this.controller.addValueChangeListener(t=>this.state._hasValue=!!t)}static get delegatesFocus(){return!0}get host(){return v(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_autoComplete:["validateAutoComplete"],_disabled:["validateDisabled"],_hideMsg:["validateHideMsg"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_max:["validateMax"],_min:["validateMin"],_msg:["validateMsg"],_name:["validateName"],_on:["validateOn"],_readOnly:["validateReadOnly"],_required:["validateRequired"],_shortKey:["validateShortKey"],_smartButton:["validateSmartButton"],_suggestions:["validateSuggestions"],_step:["validateStep"],_syncValueBySelector:["validateSyncValueBySelector"],_touched:["validateTouched"],_type:["validateType"],_value:["validateValue"]}}};z.style={default:I};export{z as kol_input_date};
313
- //# sourceMappingURL=kol-input-date.entry-BfxAmzSU.js.map
320
+ /**
321
+ * Workaround for detecting focus state of the native date input's calendar icon.
322
+ * The \`:focus-visible\` pseudo class does not work on the icon itself, but only on the input element.
323
+ * By using the \`content\` property we can detect whether the icon is focused by inspecting the computed style in JS.
324
+ * This should be replaced once native focus detection for the icon is available.
325
+ */
326
+ :host input[type=date],
327
+ :host input[type=datetime-local],
328
+ :host input[type=month],
329
+ :host input[type=time],
330
+ :host input[type=week] {
331
+ content: "native-icon-focused";
332
+ }
333
+ :host input[type=date]:focus-visible,
334
+ :host input[type=datetime-local]:focus-visible,
335
+ :host input[type=month]:focus-visible,
336
+ :host input[type=time]:focus-visible,
337
+ :host input[type=week]:focus-visible {
338
+ content: "native-icon-not-focused";
339
+ }
340
+ }`,z=class{async getValue(){var t;return this.inputRef&&this.remapValue((t=this.inputRef)===null||t===void 0?void 0:t.value)}async kolFocus(){var t;(t=this.inputRef)===null||t===void 0||t.focus()}async reset(){this.state=Object.assign(Object.assign({},this.state),{_value:null}),this.controller.setFormAssociatedValue(""),this.inputRef&&(this.inputRef.value="")}setInitialValueType(t){t instanceof Date?this._initialValueType="Date":typeof t=="string"?this._initialValueType="String":this._initialValueType=null}remapValue(t){return t===""?null:this._initialValueType==="Date"?new Date(t):t}getFormFieldProps(){return{state:this.state,class:_("kol-input-date",this.state._type,{"has-value":this.state._hasValue}),tooltipAlign:this._tooltipAlign,onClick:()=>{var t;return(t=this.inputRef)===null||t===void 0?void 0:t.focus()},alert:this.showAsAlert()}}getInputProps(){return Object.assign(Object.assign({ref:this.catchRef,state:this.state},this.controller.onFacade),{onBlur:this.onBlur,onFocus:this.onFocus,onKeyDown:this.onKeyDown,onChange:this.onChange,onInput:this.onInput})}render(){return d(k,Object.assign({key:"4b85c94a96d7f5e462ce14b827e9249e480c8b43"},this.getFormFieldProps()),d(w,{key:"3e8ebc5c06e533cc261c7eae4ed50a883c413551",state:this.state},d(x,Object.assign({key:"864528ac81fa62894f95d7d962db50ee4087412c"},this.getInputProps()))))}constructor(t){g(this,t),this._initialValueType=null,this.catchRef=e=>{this.inputRef=e},this.onBlur=e=>{this.controller.onFacade.onBlur(e),this.inputHasFocus=!1},this.onFocus=e=>{this.controller.onFacade.onFocus(e),this.inputHasFocus=!0},this.onChange=e=>{const n=e.target.value,i=this.remapValue(n);this.controller.onFacade.onChange(e,i)},this.onInput=e=>{const n=e.target.value,i=this.remapValue(n);this._value=i,this.controller.onFacade.onInput(e,!0,i)},this.isNativeCalendarIconFocused=()=>!this.inputRef||typeof window>"u"||typeof window.getComputedStyle!="function"?!1:window.getComputedStyle(this.inputRef,"focus-visible").getPropertyValue("content")==="native-icon-focused",this.onKeyDown=e=>{(e.code==="Enter"||e.code==="NumpadEnter")&&!this.isNativeCalendarIconFocused()&&V({form:this.host})},this._autoComplete="off",this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._readOnly=!1,this._required=!1,this._tooltipAlign="top",this._touched=!1,this._type="date",this.state={_hasValue:!1,_hideMsg:!1,_id:`id-${T()}`,_label:"",_suggestions:[],_type:"datetime-local"},this.inputHasFocus=!1,this.controller=new o(this,"date",this.host)}showAsAlert(){return!!this.state._touched&&!this.inputHasFocus}validateAccessKey(t){this.controller.validateAccessKey(t)}validateAutoComplete(t){this.controller.validateAutoComplete(t)}validateDisabled(t){this.controller.validateDisabled(t)}validateHideMsg(t){this.controller.validateHideMsg(t)}validateHideLabel(t){this.controller.validateHideLabel(t)}validateHint(t){this.controller.validateHint(t)}validateIcons(t){this.controller.validateIcons(t)}validateId(t){this.controller.validateId(t)}validateLabel(t){this.controller.validateLabel(t)}validateMax(t){this.controller.validateMax(t)}validateMin(t){this.controller.validateMin(t)}validateMsg(t){this.controller.validateMsg(t)}validateName(t){this.controller.validateName(t)}validateOn(t){this.controller.validateOn(t)}validateReadOnly(t){this.controller.validateReadOnly(t)}validateRequired(t){this.controller.validateRequired(t)}validateShortKey(t){this.controller.validateShortKey(t)}validateSmartButton(t){this.controller.validateSmartButton(t)}validateSuggestions(t){this.controller.validateSuggestions(t)}validateStep(t){this.controller.validateStep(t)}validateSyncValueBySelector(t){this.controller.validateSyncValueBySelector(t)}validateTouched(t){this.controller.validateTouched(t)}validateType(t){this.controller.validateType(t)}validateValue(t){t instanceof Date&&y("Date type will be removed in v3. Use `Iso8601` instead."),this.controller.validateValueEx(t),t!=null&&this.setInitialValueType(t)}componentWillLoad(){this._value!==void 0&&this.setInitialValueType(this._value),this._touched=this._touched===!0,this.controller.componentWillLoad(),this.state._hasValue=!!this.state._value,this.controller.addValueChangeListener(t=>this.state._hasValue=!!t)}static get delegatesFocus(){return!0}get host(){return v(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_autoComplete:["validateAutoComplete"],_disabled:["validateDisabled"],_hideMsg:["validateHideMsg"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_max:["validateMax"],_min:["validateMin"],_msg:["validateMsg"],_name:["validateName"],_on:["validateOn"],_readOnly:["validateReadOnly"],_required:["validateRequired"],_shortKey:["validateShortKey"],_smartButton:["validateSmartButton"],_suggestions:["validateSuggestions"],_step:["validateStep"],_syncValueBySelector:["validateSyncValueBySelector"],_touched:["validateTouched"],_type:["validateType"],_value:["validateValue"]}}};z.style={default:I};export{z as kol_input_date};
341
+ //# sourceMappingURL=kol-input-date.entry-BvccwUBf.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kol-input-date.entry-BvccwUBf.js","sources":["../../../../components/dist/esm/kol-input-date.entry.js"],"sourcesContent":["/*!\n * KoliBri - The accessible HTML-Standard\n */\nimport { h, r as registerInstance, g as getElement } from './index-Bzja1K-y.js';\nimport { c as clsx } from './clsx-eK3rPvPS.js';\nimport { w as watchValidator, s as setState, h as deprecatedHint } from './common-8fBdMvJM.js';\nimport { F as FormFieldStateWrapper } from './FormFieldStateWrapper-CCxckxyk.js';\nimport { I as InputIconController, a as InputContainerStateWrapperFc } from './controller-icon-DufJu-M8.js';\nimport { I as InputStateWrapper } from './InputStateWrapper-D-ZsGHSy.js';\nimport { n as nonce } from './dev.utils-jFnvJk5c.js';\nimport { p as propagateSubmitEventToForm } from './controller-CV2y9Ae_.js';\nimport { v as validateAutoComplete } from './auto-complete-BsG3RQJ3.js';\nimport { v as validateReadOnly } from './read-only-CcRldJ9w.js';\nimport { v as validateRequired } from './required-G86n77y0.js';\nimport { v as validateSuggestions } from './suggestions-DfF4lcNG.js';\nimport './access-and-short-key-bcID78Ha.js';\nimport './disabled-BydergHu.js';\nimport './hide-label-DRunOux4.js';\nimport './label-CdtNxOKu.js';\nimport './tooltip-align-_VI7LehI.js';\nimport './align-CyK0wp7d.js';\nimport './events-CoPFQEiC.js';\nimport './associated.controller-BKIODHIT.js';\nimport './bootstrap-BiRnv4fV.js';\nimport './component-names-CkE54Ym7.js';\nimport './i18n-ZF6JbdVP.js';\nimport './isObject-DvSELytj.js';\nimport './tslib.es6-CxX45GIN.js';\nimport './Alert-rDcGDFja.js';\nimport './i18n-CdSCDnmA.js';\nimport './bem-CHTjklyp.js';\nimport './browser-Ba2Wl_kh.js';\nimport './Heading-Of5WUIQt.js';\nimport './InternalUnderlinedBadgeText-i_4-zRGd.js';\nimport './reuse-CX4AQDkS.js';\nimport './Icon-DAAnSHZC.js';\nimport './icons-72ER78AW.js';\nimport './Input-DBiN9aFG.js';\n\nconst inputDateTypeOptions = ['date', 'datetime-local', 'month', 'time', 'week'];\nconst isInputDateTypePropType = (value) => {\n return typeof value === 'string' && inputDateTypeOptions.includes(value);\n};\nconst validateTypeInputDate = (component, value) => {\n watchValidator(component, '_type', isInputDateTypePropType, new Set(inputDateTypeOptions), value);\n};\n\nclass InputDateController extends InputIconController {\n constructor(component, name, host) {\n super(component, name, host);\n this.validateIso8601 = (propName, value, afterPatch) => {\n return watchValidator(this.component, propName, (value) => value === undefined || value === null || value === '' || this.validateDateString(value), new Set(['Date', 'string{ISO-8601}']), InputDateController.tryParseToString(value, this.component._type, this.component._step), {\n hooks: {\n afterPatch: (value) => {\n if (typeof value === 'string' && afterPatch) {\n afterPatch(value);\n }\n },\n },\n });\n };\n this.component = component;\n }\n validateAutoComplete(value) {\n validateAutoComplete(this.component, value);\n }\n validateSuggestions(value) {\n validateSuggestions(this.component, value);\n }\n static tryParseToString(value, type, step) {\n if (typeof value === 'string' || value === null) {\n return value;\n }\n if (typeof value === 'object' && value instanceof Date) {\n const formattedYear = value.getFullYear();\n const formattedMonth = String(value.getMonth() + 1).padStart(2, '0');\n const formattedDay = String(value.getDate()).padStart(2, '0');\n const formattedHours = String(value.getHours()).padStart(2, '0');\n const formattedMinutes = String(value.getMinutes()).padStart(2, '0');\n const formattedSeconds = String(value.getSeconds()).padStart(2, '0');\n const formattedDate = [formattedYear, formattedMonth, formattedDay].join('-');\n const formattedTimeWithSeconds = [formattedHours, formattedMinutes, formattedSeconds].join(':');\n switch (type) {\n case 'date':\n return formattedDate;\n case 'datetime-local':\n return `${formattedDate}T${formattedTimeWithSeconds}`;\n case 'month':\n return `${formattedYear}-${formattedMonth}`;\n case 'time':\n if (step === undefined || String(step) === '60') {\n return `${formattedHours}:${formattedMinutes}`;\n }\n else {\n return formattedTimeWithSeconds;\n }\n case 'week':\n return `${formattedYear}-W${this.getWeekNumberOfDate(value)}`;\n }\n }\n }\n static getWeekNumberOfDate(date) {\n const copiedDate = new Date(date);\n const nDay = (copiedDate.getDay() + 6) % 7;\n copiedDate.setDate(copiedDate.getDate() - nDay + 3);\n const n1stThursday = copiedDate.valueOf();\n copiedDate.setMonth(0, 1);\n if (copiedDate.getDay() !== 4) {\n copiedDate.setMonth(0, 1 + ((4 - copiedDate.getDay() + 7) % 7));\n }\n const dayOfYear = 1 + Math.ceil((n1stThursday - copiedDate.valueOf()) / 604800000);\n return dayOfYear.toString().padStart(2, '0');\n }\n validateDateString(value) {\n switch (this.component._type) {\n case 'date':\n return InputDateController.isoDateRegex.test(value);\n case 'datetime-local':\n return InputDateController.isoLocalDateTimeRegex.test(value);\n case 'month':\n return InputDateController.isoMonthRegex.test(value);\n case 'time':\n return InputDateController.isoTimeRegex.test(value);\n case 'week':\n return InputDateController.isoWeekRegex.test(value);\n default:\n return false;\n }\n }\n onBlur(event) {\n super.onBlur(event);\n if (!!event.target.value !== !!this.component._value) {\n this.component._value = event.target.value;\n }\n }\n validateMax(value) {\n const ensuredValue = (value === undefined || value === null) &&\n (this.component._type === 'date' || this.component._type === 'month' || this.component._type === 'datetime-local')\n ? InputDateController.DEFAULT_MAX_DATE\n : value;\n this.validateIso8601('_max', ensuredValue);\n }\n validateMin(value) {\n this.validateIso8601('_min', value);\n }\n validateOn(value) {\n setState(this.component, '_on', Object.assign(Object.assign({}, value), { onChange: (e, v) => {\n if (!!v !== !!this.component._value) {\n this.component._value = v;\n }\n if (value === null || value === void 0 ? void 0 : value.onChange) {\n value.onChange(e, v);\n }\n } }));\n }\n validateReadOnly(value) {\n validateReadOnly(this.component, value);\n }\n validateRequired(value) {\n validateRequired(this.component, value);\n }\n validateStep(value) {\n this.validateNumber('_step', value);\n }\n validateType(value) {\n validateTypeInputDate(this.component, value);\n }\n validateValue(value) {\n this.validateValueEx(value);\n }\n validateValueEx(value, afterPatch) {\n this.validateIso8601('_value', value, afterPatch);\n this.setFormAssociatedValue(this.component.state._value);\n }\n componentWillLoad() {\n super.componentWillLoad();\n this.validateAutoComplete(this.component._autoComplete);\n this.validateMax(this.component._max);\n this.validateMin(this.component._min);\n this.validateLabel(this.component._label);\n this.validateSuggestions(this.component._suggestions);\n this.validateOn(this.component._on);\n this.validateReadOnly(this.component._readOnly);\n this.validateRequired(this.component._required);\n this.validateStep(this.component._step);\n this.validateType(this.component._type);\n this.validateValue(this.component._value);\n }\n}\nInputDateController.isoDateRegex = /^\\d{4}-([0]\\d|1[0-2])-([0-2]\\d|3[01])/;\nInputDateController.isoLocalDateTimeRegex = /^\\d{4}-([0]\\d|1[0-2])-([0-2]\\d|3[01])[T ][0-2]\\d:[0-5]\\d(:[0-5]\\d(?:\\.\\d+)?)?/;\nInputDateController.isoMonthRegex = /^\\d{4}-([0]\\d|1[0-2])/;\nInputDateController.isoTimeRegex = /^[0-2]\\d:[0-5]\\d(:[0-5]\\d(?:\\.\\d+)?)?/;\nInputDateController.isoWeekRegex = /^\\d{4}-W(?:[0-4]\\d|5[0-3])$/;\nInputDateController.DEFAULT_MAX_DATE = new Date(9999, 11, 31, 23, 59, 59);\n\nconst defaultStyleCss = \"/*\\n* This file defines the layer order for all CSS layers used in KoliBri.\\n* The order is important as it determines the cascade priority.\\n*\\n* Layer order (lowest to highest priority):\\n* 1. kol-a11y - Accessibility defaults and requirements\\n* 2. kol-global - Global component styles and resets\\n* 3. kol-component - Component-specific styles\\n* 4. kol-theme-global - Theme-specific global styles\\n* 5. kol-theme-component - Theme-specific component styles\\n*/\\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\\n/* forward the rem function */\\n/*\\n * This file contains all rules for accessibility.\\n */\\n@layer kol-a11y {\\n :host {\\n /*\\n * Minimum size of interactive elements.\\n */\\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\\n /*\\n * No element should be used without verifying the contrast ratio of its background and font colors.\\n * By initially setting the background color to white and the font color to black,\\n * the contrast ratio is ensured and explicit adjustment is forced.\\n */\\n color: black;\\n background-color: white;\\n /*\\n * Verdana is an accessible font that can be used without requiring additional loading time.\\n */\\n font-family: Verdana;\\n /*\\n * Letter spacing is required for all texts.\\n */\\n letter-spacing: inherit;\\n /*\\n * Word spacing is required for all texts.\\n */\\n word-spacing: inherit;\\n /*\\n * Text should be aligned left by default to provide a predictable starting point.\\n */\\n text-align: left;\\n }\\n * {\\n /*\\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\\n */\\n hyphens: auto;\\n /*\\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\\n */\\n word-break: break-word;\\n }\\n /*\\n * All interactive elements should have a minimum size of to-rem(44).\\n */\\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\\n /* option, */\\n /* select, */\\n /* textarea, */\\n button,\\n .kol-input .input {\\n min-width: var(--a11y-min-size);\\n min-height: var(--a11y-min-size);\\n }\\n /*\\n * Some interactive elements should not inherit the font-family and font-size.\\n */\\n a,\\n button,\\n h1,\\n h2,\\n h3,\\n h4,\\n h5,\\n h6,\\n input,\\n option,\\n select,\\n textarea {\\n /*\\n * All elements should inherit the text color from his parent element.\\n */\\n color: inherit;\\n /*\\n * All elements should inherit the font family from his parent element.\\n */\\n font-family: inherit;\\n /*\\n * All elements should inherit the font size from his parent element.\\n */\\n font-size: inherit;\\n /*\\n * Letter spacing is required for all texts.\\n */\\n letter-spacing: inherit;\\n /*\\n * Word spacing is required for all texts.\\n */\\n word-spacing: inherit;\\n }\\n /**\\n * Sometimes we need the semantic element for accessibility reasons,\\n * but we don't want to show it.\\n *\\n * - https://www.a11yproject.com/posts/how-to-hide-content/\\n */\\n .visually-hidden {\\n position: fixed;\\n top: 0;\\n left: 0;\\n width: 1px;\\n height: 1px;\\n overflow: hidden;\\n white-space: nowrap;\\n clip-path: inset(50%);\\n }\\n}\\n@layer kol-global {\\n /*\\n * Dieses CSS stellt sicher, dass der Standard-Style\\n * von A und Button resettet werden.\\n */\\n :is(a, button) {\\n background-color: transparent;\\n width: 100%;\\n margin: 0;\\n padding: 0;\\n border: none;\\n /* 100% needed for custom width from outside */\\n }\\n /*\\n * Ensure elements with hidden attribute to be actually not visible\\n * @see https://meowni.ca/hidden.is.a.lie.html\\n */\\n [hidden] {\\n display: none !important;\\n }\\n .badge-text-hint {\\n color: black;\\n background-color: lightgray;\\n }\\n}\\n@layer kol-global {\\n :host {\\n /*\\n * The max-width is needed to prevent the table from overflowing the\\n * parent node, if the table is wider than the parent node.\\n */\\n max-width: 100%;\\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\\n }\\n * {\\n /*\\n * We prefer to box-sizing: border-box for all elements.\\n */\\n box-sizing: border-box;\\n }\\n .kol-span {\\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\\n display: grid;\\n place-items: center;\\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\\n }\\n .kol-span__container {\\n display: flex;\\n place-items: center;\\n }\\n a,\\n button {\\n cursor: pointer;\\n }\\n .kol-span .kol-span__label--hide-label .kol-span__label {\\n display: none;\\n }\\n /* Reset browser agent style. */\\n button:disabled {\\n color: unset;\\n }\\n .disabled label,\\n .disabled:focus-within label,\\n [aria-disabled=true],\\n [aria-disabled=true]:focus,\\n [disabled],\\n [disabled]:focus {\\n opacity: 0.5;\\n outline: none;\\n cursor: not-allowed;\\n }\\n [aria-disabled=true]:focus .kol-span,\\n [disabled]:focus .kol-span {\\n outline: none !important;\\n }\\n}\\n@layer kol-component {\\n :host {\\n display: block;\\n }\\n}\\n@layer kol-component {\\n @keyframes fadeInOpacity {\\n 0% {\\n opacity: 0;\\n }\\n 100% {\\n opacity: 1;\\n }\\n }\\n .kol-tooltip {\\n display: contents;\\n }\\n .kol-tooltip__floating {\\n display: none;\\n position: fixed;\\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\\n top: 0;\\n left: 0;\\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\\n width: var(--kol-tooltip-width, max-content);\\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\\n max-width: 90vw;\\n max-height: 90vh;\\n visibility: hidden;\\n animation-duration: 0.25s;\\n animation-iteration-count: 1;\\n animation-name: fadeInOpacity;\\n animation-timing-function: ease-in;\\n }\\n .kol-tooltip__arrow {\\n transform: rotate(45deg);\\n color: #000;\\n background-color: #fff;\\n position: absolute;\\n z-index: 999;\\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\\n }\\n .kol-tooltip__content {\\n color: #000;\\n background-color: #fff;\\n position: relative;\\n z-index: 1000;\\n }\\n}\\n@layer kol-component {\\n .kol-alert {\\n display: grid;\\n }\\n .kol-alert__container {\\n display: flex;\\n place-items: center;\\n }\\n .kol-alert__container-content {\\n flex-grow: 1;\\n }\\n .kol-alert__closer {\\n /* Visible with forced colors */\\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\\n }\\n .kol-form-field {\\n display: grid;\\n }\\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\\n cursor: pointer;\\n }\\n .kol-form-field--disabled .kol-form-field__label {\\n opacity: 0.5;\\n }\\n .kol-form-field--required .kol-form-field__label-text::after {\\n content: \\\"*\\\";\\n }\\n .kol-form-field--disabled .kol-form-field__hint {\\n opacity: 0.5;\\n }\\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\\n content: \\\"*\\\";\\n }\\n .kol-input-container {\\n background-color: white;\\n display: grid;\\n width: 100%;\\n min-width: var(--a11y-min-size);\\n min-height: var(--a11y-min-size);\\n align-items: center;\\n grid-template-columns: 1fr;\\n }\\n .kol-input-container:has(> .kol-input-container__adornment--start) {\\n grid-template-columns: auto 1fr;\\n }\\n .kol-input-container:has(> .kol-input-container__adornment--end) {\\n grid-template-columns: 1fr auto;\\n }\\n .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) {\\n grid-template-columns: auto 1fr auto;\\n }\\n .kol-input-container__container {\\n position: relative;\\n }\\n .kol-input-container__adornment {\\n display: flex;\\n align-items: center;\\n }\\n .kol-input-container__adornment .kol-icon {\\n display: grid;\\n height: var(--a11y-min-size);\\n place-items: center;\\n }\\n .kol-input {\\n width: 100%;\\n min-width: var(--a11y-min-size);\\n }\\n .kol-input:focus {\\n outline: none;\\n }\\n /**\\n * Workaround for detecting focus state of the native date input's calendar icon.\\n * The `:focus-visible` pseudo class does not work on the icon itself, but only on the input element.\\n * By using the `content` property we can detect whether the icon is focused by inspecting the computed style in JS.\\n * This should be replaced once native focus detection for the icon is available.\\n */\\n :host input[type=date],\\n :host input[type=datetime-local],\\n :host input[type=month],\\n :host input[type=time],\\n :host input[type=week] {\\n content: \\\"native-icon-focused\\\";\\n }\\n :host input[type=date]:focus-visible,\\n :host input[type=datetime-local]:focus-visible,\\n :host input[type=month]:focus-visible,\\n :host input[type=time]:focus-visible,\\n :host input[type=week]:focus-visible {\\n content: \\\"native-icon-not-focused\\\";\\n }\\n}\";\n\nconst KolInputDate = class {\n async getValue() {\n var _a;\n return this.inputRef && this.remapValue((_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.value);\n }\n async kolFocus() {\n var _a;\n (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();\n }\n async reset() {\n this.state = Object.assign(Object.assign({}, this.state), { _value: null });\n this.controller.setFormAssociatedValue('');\n if (this.inputRef) {\n this.inputRef.value = '';\n }\n }\n setInitialValueType(value) {\n if (value instanceof Date) {\n this._initialValueType = 'Date';\n }\n else if (typeof value === 'string') {\n this._initialValueType = 'String';\n }\n else {\n this._initialValueType = null;\n }\n }\n remapValue(newValue) {\n if (newValue === '') {\n return null;\n }\n return this._initialValueType === 'Date' ? new Date(newValue) : newValue;\n }\n getFormFieldProps() {\n return {\n state: this.state,\n class: clsx('kol-input-date', this.state._type, {\n 'has-value': this.state._hasValue,\n }),\n tooltipAlign: this._tooltipAlign,\n onClick: () => { var _a; return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus(); },\n alert: this.showAsAlert(),\n };\n }\n getInputProps() {\n return Object.assign(Object.assign({ ref: this.catchRef, state: this.state }, this.controller.onFacade), { onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.onKeyDown, onChange: this.onChange, onInput: this.onInput });\n }\n render() {\n return (h(FormFieldStateWrapper, Object.assign({ key: '4b85c94a96d7f5e462ce14b827e9249e480c8b43' }, this.getFormFieldProps()), h(InputContainerStateWrapperFc, { key: '3e8ebc5c06e533cc261c7eae4ed50a883c413551', state: this.state }, h(InputStateWrapper, Object.assign({ key: '864528ac81fa62894f95d7d962db50ee4087412c' }, this.getInputProps())))));\n }\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this._initialValueType = null;\n this.catchRef = (ref) => {\n this.inputRef = ref;\n };\n this.onBlur = (event) => {\n this.controller.onFacade.onBlur(event);\n this.inputHasFocus = false;\n };\n this.onFocus = (event) => {\n this.controller.onFacade.onFocus(event);\n this.inputHasFocus = true;\n };\n this.onChange = (event) => {\n const newValue = event.target.value;\n const remappedValue = this.remapValue(newValue);\n this.controller.onFacade.onChange(event, remappedValue);\n };\n this.onInput = (event) => {\n const newValue = event.target.value;\n const remappedValue = this.remapValue(newValue);\n this._value = remappedValue;\n this.controller.onFacade.onInput(event, true, remappedValue);\n };\n this.isNativeCalendarIconFocused = () => {\n if (!this.inputRef || typeof window === 'undefined' || typeof window.getComputedStyle !== 'function') {\n return false;\n }\n const computedStyle = window.getComputedStyle(this.inputRef, 'focus-visible');\n return computedStyle.getPropertyValue('content') === 'native-icon-focused';\n };\n this.onKeyDown = (event) => {\n if ((event.code === 'Enter' || event.code === 'NumpadEnter') && !this.isNativeCalendarIconFocused()) {\n propagateSubmitEventToForm({\n form: this.host});\n }\n };\n this._autoComplete = 'off';\n this._disabled = false;\n this._hideMsg = false;\n this._hideLabel = false;\n this._hint = '';\n this._readOnly = false;\n this._required = false;\n this._tooltipAlign = 'top';\n this._touched = false;\n this._type = 'date';\n this.state = {\n _hasValue: false,\n _hideMsg: false,\n _id: `id-${nonce()}`,\n _label: '',\n _suggestions: [],\n _type: 'datetime-local',\n };\n this.inputHasFocus = false;\n this.controller = new InputDateController(this, 'date', this.host);\n }\n showAsAlert() {\n return Boolean(this.state._touched) && !this.inputHasFocus;\n }\n validateAccessKey(value) {\n this.controller.validateAccessKey(value);\n }\n validateAutoComplete(value) {\n this.controller.validateAutoComplete(value);\n }\n validateDisabled(value) {\n this.controller.validateDisabled(value);\n }\n validateHideMsg(value) {\n this.controller.validateHideMsg(value);\n }\n validateHideLabel(value) {\n this.controller.validateHideLabel(value);\n }\n validateHint(value) {\n this.controller.validateHint(value);\n }\n validateIcons(value) {\n this.controller.validateIcons(value);\n }\n validateId(value) {\n this.controller.validateId(value);\n }\n validateLabel(value) {\n this.controller.validateLabel(value);\n }\n validateMax(value) {\n this.controller.validateMax(value);\n }\n validateMin(value) {\n this.controller.validateMin(value);\n }\n validateMsg(value) {\n this.controller.validateMsg(value);\n }\n validateName(value) {\n this.controller.validateName(value);\n }\n validateOn(value) {\n this.controller.validateOn(value);\n }\n validateReadOnly(value) {\n this.controller.validateReadOnly(value);\n }\n validateRequired(value) {\n this.controller.validateRequired(value);\n }\n validateShortKey(value) {\n this.controller.validateShortKey(value);\n }\n validateSmartButton(value) {\n this.controller.validateSmartButton(value);\n }\n validateSuggestions(value) {\n this.controller.validateSuggestions(value);\n }\n validateStep(value) {\n this.controller.validateStep(value);\n }\n validateSyncValueBySelector(value) {\n this.controller.validateSyncValueBySelector(value);\n }\n validateTouched(value) {\n this.controller.validateTouched(value);\n }\n validateType(value) {\n this.controller.validateType(value);\n }\n validateValue(value) {\n if (value instanceof Date) {\n deprecatedHint('Date type will be removed in v3. Use `Iso8601` instead.');\n }\n this.controller.validateValueEx(value);\n if (value !== undefined && value !== null) {\n this.setInitialValueType(value);\n }\n }\n componentWillLoad() {\n if (this._value !== undefined)\n this.setInitialValueType(this._value);\n this._touched = this._touched === true;\n this.controller.componentWillLoad();\n this.state._hasValue = !!this.state._value;\n this.controller.addValueChangeListener((v) => (this.state._hasValue = !!v));\n }\n static get delegatesFocus() { return true; }\n get host() { return getElement(this); }\n static get watchers() { return {\n \"_accessKey\": [\"validateAccessKey\"],\n \"_autoComplete\": [\"validateAutoComplete\"],\n \"_disabled\": [\"validateDisabled\"],\n \"_hideMsg\": [\"validateHideMsg\"],\n \"_hideLabel\": [\"validateHideLabel\"],\n \"_hint\": [\"validateHint\"],\n \"_icons\": [\"validateIcons\"],\n \"_id\": [\"validateId\"],\n \"_label\": [\"validateLabel\"],\n \"_max\": [\"validateMax\"],\n \"_min\": [\"validateMin\"],\n \"_msg\": [\"validateMsg\"],\n \"_name\": [\"validateName\"],\n \"_on\": [\"validateOn\"],\n \"_readOnly\": [\"validateReadOnly\"],\n \"_required\": [\"validateRequired\"],\n \"_shortKey\": [\"validateShortKey\"],\n \"_smartButton\": [\"validateSmartButton\"],\n \"_suggestions\": [\"validateSuggestions\"],\n \"_step\": [\"validateStep\"],\n \"_syncValueBySelector\": [\"validateSyncValueBySelector\"],\n \"_touched\": [\"validateTouched\"],\n \"_type\": [\"validateType\"],\n \"_value\": [\"validateValue\"]\n }; }\n};\nKolInputDate.style = {\n default: defaultStyleCss\n};\n\nexport { KolInputDate as kol_input_date };\n//# sourceMappingURL=kol-input-date.entry.js.map\n"],"names":["inputDateTypeOptions","isInputDateTypePropType","value","validateTypeInputDate","component","watchValidator","InputDateController","InputIconController","name","host","propName","afterPatch","validateAutoComplete","validateSuggestions","type","step","formattedYear","formattedMonth","formattedDay","formattedHours","formattedMinutes","formattedSeconds","formattedDate","formattedTimeWithSeconds","date","copiedDate","nDay","n1stThursday","event","ensuredValue","setState","e","v","validateReadOnly","validateRequired","defaultStyleCss","KolInputDate","_a","newValue","clsx","h","FormFieldStateWrapper","InputContainerStateWrapperFc","InputStateWrapper","hostRef","registerInstance","ref","remappedValue","propagateSubmitEventToForm","nonce","deprecatedHint","getElement"],"mappings":"g0CAAA;AAAA;AAAA,GAuCA,MAAMA,EAAuB,CAAC,OAAQ,iBAAkB,QAAS,OAAQ,MAAM,EACzEC,EAA2BC,GACtB,OAAOA,GAAU,UAAYF,EAAqB,SAASE,CAAK,EAErEC,EAAwB,CAACC,EAAWF,IAAU,CAChDG,EAAeD,EAAW,QAASH,EAAyB,IAAI,IAAID,CAAoB,EAAGE,CAAK,CACpG,EAEA,MAAMI,UAA4BC,CAAoB,CAClD,YAAYH,EAAWI,EAAMC,EAAM,CAC/B,MAAML,EAAWI,EAAMC,CAAI,EAC3B,KAAK,gBAAkB,CAACC,EAAUR,EAAOS,IAC9BN,EAAe,KAAK,UAAWK,EAAWR,GAAiCA,GAAU,MAAQA,IAAU,IAAM,KAAK,mBAAmBA,CAAK,EAAG,IAAI,IAAI,CAAC,OAAQ,kBAAkB,CAAC,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e,CAClC,CAAO,CACP,EACAf,EAAa,MAAQ,CACjB,QAASD,CACb"}
@@ -1,4 +1,4 @@
1
- import{h as n,r as a,g as l}from"./index-D7AUPAYP.js";import{c as r}from"./clsx-eK3rPvPS-BT_IL7Fz.js";import{F as s}from"./FormFieldStateWrapper-DBc4KUdQ-CVkWtyyV.js";import{I as d}from"./controller-icon-C8-i4mlh-BGpCnuog.js";import{I as h}from"./InputStateWrapper-CJbBu-pG-CB4qoRih.js";import{n as c}from"./dev.utils-BJDuEPOn-TJbx-Gcl.js";import{p}from"./controller-CV2y9Ae_-Dth4q1vC.js";import{v as u}from"./max-length-behavior-BmNWss6T-DVacXf_-.js";import{v as m}from"./multiple-bcm5IaCN-DE09YNIY.js";import{I as f}from"./controller-wpy6KyPo-BVtktigT.js";import"./isObject-DvSELytj-B0RigBxT.js";import"./tslib.es6-CxX45GIN-BAJoBDh7.js";import"./Alert-COUNttIM-CvH_qEya.js";import"./i18n-CdSCDnmA-D76H1NpQ.js";import"./access-and-short-key-bcID78Ha-L8u4_6ia.js";import"./disabled-BydergHu-B1DLdE7n.js";import"./hide-label-DRunOux4-oo1N_oyu.js";import"./label-CdtNxOKu-xHQWPYNA.js";import"./tooltip-align-_VI7LehI-B43QQEAJ.js";import"./align-CyK0wp7d-Bgi-SsTU.js";import"./associated.controller-BKIODHIT-DcF9U5JZ.js";import"./InternalUnderlinedBadgeText-Bcop6gIY-DcZYTeCS.js";import"./reuse-CX4AQDkS-Cyh-fyjG.js";import"./Icon-DhhnLcqx-Duv7memP.js";import"./icons-72ER78AW-CdwN4BiP.js";import"./Input-djZI0PHg-CvPBJ0GD.js";import"./spell-check-DIsLAYgk-BuKzSCNU.js";import"./suggestions-DfF4lcNG-ChsxgVrC.js";import"./controller-BXg7sypS-219wzrnG.js";import"./auto-complete-BsG3RQJ3-Dqn5sZ6m.js";import"./placeholder-6URRds0_-DeOoTXqf.js";import"./read-only-CcRldJ9w-CwNO7sH7.js";import"./required-G86n77y0-GePRNKdB.js";import"./Heading-DDR2LlZW-C6b5Q_9R.js";/*!
1
+ import{h as n,r as a,g as l}from"./index-CScqQH4b.js";import{c as r}from"./clsx-eK3rPvPS-BT_IL7Fz.js";import{F as s}from"./FormFieldStateWrapper-CCxckxyk-B4bHyylZ.js";import{I as d}from"./controller-icon-DufJu-M8-Dd9_utrw.js";import{I as h}from"./InputStateWrapper-D-ZsGHSy-XxY4nRAw.js";import{n as c}from"./dev.utils-jFnvJk5c-D37nV2Pq.js";import{p}from"./controller-CV2y9Ae_-DuhIALLa.js";import{v as u}from"./max-length-behavior-BmNWss6T-a26YboAW.js";import{v as m}from"./multiple-bcm5IaCN-CQvH408s.js";import{I as f}from"./controller-CFj0r1ye-D0qtp4wr.js";import"./isObject-DvSELytj-B0RigBxT.js";import"./tslib.es6-CxX45GIN-BAJoBDh7.js";import"./Alert-rDcGDFja-BMLJUD8L.js";import"./i18n-CdSCDnmA-BDPBg7Eu.js";import"./access-and-short-key-bcID78Ha-CK3F9UJc.js";import"./disabled-BydergHu-BPFXrbWx.js";import"./hide-label-DRunOux4-DtTbz-0D.js";import"./label-CdtNxOKu-CLyKncMr.js";import"./tooltip-align-_VI7LehI-BA2gIX1h.js";import"./align-CyK0wp7d-Ds_zJkMi.js";import"./associated.controller-BKIODHIT-DjKWct4T.js";import"./InternalUnderlinedBadgeText-i_4-zRGd-BtWo_Ewc.js";import"./reuse-CX4AQDkS-Cyh-fyjG.js";import"./Icon-DAAnSHZC-Dfyu_VE7.js";import"./icons-72ER78AW-V6GT6JtO.js";import"./Input-DBiN9aFG-98jE4J2q.js";import"./spell-check-DIsLAYgk-D8L_UizA.js";import"./suggestions-DfF4lcNG-BF46R73u.js";import"./controller-BTIv7gJq-9h6vdF-r.js";import"./auto-complete-BsG3RQJ3-DjAvSQV5.js";import"./placeholder-6URRds0_-CnESfv0b.js";import"./read-only-CcRldJ9w-B6Kca91U.js";import"./required-G86n77y0-BPjPpx0R.js";import"./Heading-Of5WUIQt-CrisRUf_.js";/*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */class v extends f{constructor(e,i,o){super(e,i,o),this.component=e}validateMultiple(e){m(this.component,e)}validateMaxLengthBehavior(e){u(this.component,e)}componentWillLoad(){super.componentWillLoad(),this.validateMaxLengthBehavior(this.component._maxLengthBehavior),this.validateMultiple(this.component._multiple)}}const g=`/*
4
4
  * This file defines the layer order for all CSS layers used in KoliBri.
@@ -19,8 +19,8 @@ import{h as n,r as a,g as l}from"./index-D7AUPAYP.js";import{c as r}from"./clsx-
19
19
  @layer kol-a11y {
20
20
  :host {
21
21
  /*
22
- * Minimum size of interactive elements.
23
- */
22
+ * Minimum size of interactive elements.
23
+ */
24
24
  --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));
25
25
  /*
26
26
  * No element should be used without verifying the contrast ratio of its background and font colors.
@@ -41,6 +41,10 @@ import{h as n,r as a,g as l}from"./index-D7AUPAYP.js";import{c as r}from"./clsx-
41
41
  * Word spacing is required for all texts.
42
42
  */
43
43
  word-spacing: inherit;
44
+ /*
45
+ * Text should be aligned left by default to provide a predictable starting point.
46
+ */
47
+ text-align: left;
44
48
  }
45
49
  * {
46
50
  /*
@@ -79,6 +83,10 @@ import{h as n,r as a,g as l}from"./index-D7AUPAYP.js";import{c as r}from"./clsx-
79
83
  option,
80
84
  select,
81
85
  textarea {
86
+ /*
87
+ * All elements should inherit the text color from his parent element.
88
+ */
89
+ color: inherit;
82
90
  /*
83
91
  * All elements should inherit the font family from his parent element.
84
92
  */
@@ -310,4 +318,4 @@ import{h as n,r as a,g as l}from"./index-D7AUPAYP.js";import{c as r}from"./clsx-
310
318
  outline: none;
311
319
  }
312
320
  }`,b=class{async getValue(){var t;return(t=this.inputRef)===null||t===void 0?void 0:t.value}async kolFocus(){var t;(t=this.inputRef)===null||t===void 0||t.focus()}getFormFieldProps(){return{state:this.state,class:r("kol-input-email","email",{"has-value":this.state._hasValue,"kol-form-field--has-counter":this.controller.hasSoftCharacterLimit()||this.controller.hasCounter()}),tooltipAlign:this._tooltipAlign,onClick:()=>{var t;return(t=this.inputRef)===null||t===void 0?void 0:t.focus()},alert:this.showAsAlert()}}getInputProps(){const t=typeof this.state._maxLength=="number"?[`${this.state._id}-character-limit-hint`]:void 0;return Object.assign(Object.assign({ref:this.catchRef,state:this.state,type:"email",ariaDescribedBy:t},this.controller.onFacade),{onInput:this.onInput,onKeyDown:this.onKeyDown,onFocus:e=>{this.controller.onFacade.onFocus(e),this.inputHasFocus=!0},onBlur:e=>{this.controller.onFacade.onBlur(e),this.inputHasFocus=!1}})}render(){return n(s,Object.assign({key:"baffe19d589e95460cfc7a667c8d37ec7f28b869"},this.getFormFieldProps()),n(d,{key:"f67d993a844ea5345b50ee73f8cfc67a05d37822",state:this.state},n(h,Object.assign({key:"368af02c7118f848925007bcc3ec298fdad708f0"},this.getInputProps()))))}constructor(t){a(this,t),this.catchRef=e=>{this.inputRef=e},this.onKeyDown=e=>{(e.code==="Enter"||e.code==="NumpadEnter")&&p({form:this.host})},this.onInput=e=>{this._value=e.target.value,this.controller.onFacade.onInput(e)},this._autoComplete="off",this._hasCounter=!1,this._maxLengthBehavior="hard",this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._multiple=!1,this._readOnly=!1,this._required=!1,this._tooltipAlign="top",this._touched=!1,this.state={_currentLength:0,_currentLengthDebounced:0,_hasValue:!1,_hideMsg:!1,_id:`id-${c()}`,_label:"",_suggestions:[]},this.inputHasFocus=!1,this.controller=new v(this,"email",this.host)}showAsAlert(){return!!this.state._touched&&!this.inputHasFocus}validateAccessKey(t){this.controller.validateAccessKey(t)}validateAutoComplete(t){this.controller.validateAutoComplete(t)}validateDisabled(t){this.controller.validateDisabled(t)}validateHideMsg(t){this.controller.validateHideMsg(t)}validateHideLabel(t){this.controller.validateHideLabel(t)}validateHasCounter(t){this.controller.validateHasCounter(t)}validateHint(t){this.controller.validateHint(t)}validateIcons(t){this.controller.validateIcons(t)}validateId(t){this.controller.validateId(t)}validateLabel(t){this.controller.validateLabel(t)}validateMaxLength(t){this.controller.validateMaxLength(t)}validateMsg(t){this.controller.validateMsg(t)}validateMultiple(t){this.controller.validateMultiple(t)}validateName(t){this.controller.validateName(t)}validateOn(t){this.controller.validateOn(t)}validatePattern(t){this.controller.validatePattern(t)}validatePlaceholder(t){this.controller.validatePlaceholder(t)}validateReadOnly(t){this.controller.validateReadOnly(t)}validateRequired(t){this.controller.validateRequired(t)}validateShortKey(t){this.controller.validateShortKey(t)}validateSuggestions(t){this.controller.validateSuggestions(t)}validateSmartButton(t){this.controller.validateSmartButton(t)}validateSyncValueBySelector(t){this.controller.validateSyncValueBySelector(t)}validateTouched(t){this.controller.validateTouched(t)}validateValue(t){this.controller.validateValue(t)}validateMaxLengthBehavior(t){this.controller.validateMaxLengthBehavior(t)}componentWillLoad(){this._touched=this._touched===!0,this.controller.componentWillLoad(),this.state._hasValue=!!this.state._value,this.controller.addValueChangeListener(t=>this.state._hasValue=!!t)}static get delegatesFocus(){return!0}get host(){return l(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_autoComplete:["validateAutoComplete"],_disabled:["validateDisabled"],_hideMsg:["validateHideMsg"],_hideLabel:["validateHideLabel"],_hasCounter:["validateHasCounter"],_hint:["validateHint"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_maxLength:["validateMaxLength"],_msg:["validateMsg"],_multiple:["validateMultiple"],_name:["validateName"],_on:["validateOn"],_pattern:["validatePattern"],_placeholder:["validatePlaceholder"],_readOnly:["validateReadOnly"],_required:["validateRequired"],_shortKey:["validateShortKey"],_suggestions:["validateSuggestions"],_smartButton:["validateSmartButton"],_syncValueBySelector:["validateSyncValueBySelector"],_touched:["validateTouched"],_value:["validateValue"],_maxLengthBehavior:["validateMaxLengthBehavior"]}}};b.style={default:g};export{b as kol_input_email};
313
- //# sourceMappingURL=kol-input-email.entry-C3am9NH5.js.map
321
+ //# sourceMappingURL=kol-input-email.entry-QS5TevHv.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kol-input-email.entry-QS5TevHv.js","sources":["../../../../components/dist/esm/kol-input-email.entry.js"],"sourcesContent":["/*!\n * KoliBri - The accessible HTML-Standard\n */\nimport { h, r as registerInstance, g as getElement } from './index-Bzja1K-y.js';\nimport { c as clsx } from './clsx-eK3rPvPS.js';\nimport { F as FormFieldStateWrapper } from './FormFieldStateWrapper-CCxckxyk.js';\nimport { a as InputContainerStateWrapperFc } from './controller-icon-DufJu-M8.js';\nimport { I as InputStateWrapper } from './InputStateWrapper-D-ZsGHSy.js';\nimport { n as nonce } from './dev.utils-jFnvJk5c.js';\nimport { p as propagateSubmitEventToForm } from './controller-CV2y9Ae_.js';\nimport './common-8fBdMvJM.js';\nimport { v as validateMaxLengthBehavior } from './max-length-behavior-BmNWss6T.js';\nimport { v as validateMultiple } from './multiple-bcm5IaCN.js';\nimport { I as InputTextEmailController } from './controller-CFj0r1ye.js';\nimport './access-and-short-key-bcID78Ha.js';\nimport './disabled-BydergHu.js';\nimport './hide-label-DRunOux4.js';\nimport './label-CdtNxOKu.js';\nimport './tooltip-align-_VI7LehI.js';\nimport './align-CyK0wp7d.js';\nimport './events-CoPFQEiC.js';\nimport './associated.controller-BKIODHIT.js';\nimport './bootstrap-BiRnv4fV.js';\nimport './component-names-CkE54Ym7.js';\nimport './i18n-ZF6JbdVP.js';\nimport './isObject-DvSELytj.js';\nimport './tslib.es6-CxX45GIN.js';\nimport './Alert-rDcGDFja.js';\nimport './i18n-CdSCDnmA.js';\nimport './bem-CHTjklyp.js';\nimport './browser-Ba2Wl_kh.js';\nimport './Heading-Of5WUIQt.js';\nimport './InternalUnderlinedBadgeText-i_4-zRGd.js';\nimport './reuse-CX4AQDkS.js';\nimport './Icon-DAAnSHZC.js';\nimport './icons-72ER78AW.js';\nimport './Input-DBiN9aFG.js';\nimport './spell-check-DIsLAYgk.js';\nimport './suggestions-DfF4lcNG.js';\nimport './controller-BTIv7gJq.js';\nimport './auto-complete-BsG3RQJ3.js';\nimport './placeholder-6URRds0_.js';\nimport './read-only-CcRldJ9w.js';\nimport './required-G86n77y0.js';\n\nclass InputEmailController extends InputTextEmailController {\n constructor(component, name, host) {\n super(component, name, host);\n this.component = component;\n }\n validateMultiple(value) {\n validateMultiple(this.component, value);\n }\n validateMaxLengthBehavior(value) {\n validateMaxLengthBehavior(this.component, value);\n }\n componentWillLoad() {\n super.componentWillLoad();\n this.validateMaxLengthBehavior(this.component._maxLengthBehavior);\n this.validateMultiple(this.component._multiple);\n }\n}\n\nconst defaultStyleCss = \"/*\\n* This file defines the layer order for all CSS layers used in KoliBri.\\n* The order is important as it determines the cascade priority.\\n*\\n* Layer order (lowest to highest priority):\\n* 1. kol-a11y - Accessibility defaults and requirements\\n* 2. kol-global - Global component styles and resets\\n* 3. kol-component - Component-specific styles\\n* 4. kol-theme-global - Theme-specific global styles\\n* 5. kol-theme-component - Theme-specific component styles\\n*/\\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\\n/* forward the rem function */\\n/*\\n * This file contains all rules for accessibility.\\n */\\n@layer kol-a11y {\\n :host {\\n /*\\n * Minimum size of interactive elements.\\n */\\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\\n /*\\n * No element should be used without verifying the contrast ratio of its background and font colors.\\n * By initially setting the background color to white and the font color to black,\\n * the contrast ratio is ensured and explicit adjustment is forced.\\n */\\n color: black;\\n background-color: white;\\n /*\\n * Verdana is an accessible font that can be used without requiring additional loading time.\\n */\\n font-family: Verdana;\\n /*\\n * Letter spacing is required for all texts.\\n */\\n letter-spacing: inherit;\\n /*\\n * Word spacing is required for all texts.\\n */\\n word-spacing: inherit;\\n /*\\n * Text should be aligned left by default to provide a predictable starting point.\\n */\\n text-align: left;\\n }\\n * {\\n /*\\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\\n */\\n hyphens: auto;\\n /*\\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\\n */\\n word-break: break-word;\\n }\\n /*\\n * All interactive elements should have a minimum size of to-rem(44).\\n */\\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\\n /* option, */\\n /* select, */\\n /* textarea, */\\n button,\\n .kol-input .input {\\n min-width: var(--a11y-min-size);\\n min-height: var(--a11y-min-size);\\n }\\n /*\\n * Some interactive elements should not inherit the font-family and font-size.\\n */\\n a,\\n button,\\n h1,\\n h2,\\n h3,\\n h4,\\n h5,\\n h6,\\n input,\\n option,\\n select,\\n textarea {\\n /*\\n * All elements should inherit the text color from his parent element.\\n */\\n color: inherit;\\n /*\\n * All elements should inherit the font family from his parent element.\\n */\\n font-family: inherit;\\n /*\\n * All elements should inherit the font size from his parent element.\\n */\\n font-size: inherit;\\n /*\\n * Letter spacing is required for all texts.\\n */\\n letter-spacing: inherit;\\n /*\\n * Word spacing is required for all texts.\\n */\\n word-spacing: inherit;\\n }\\n /**\\n * Sometimes we need the semantic element for accessibility reasons,\\n * but we don't want to show it.\\n *\\n * - https://www.a11yproject.com/posts/how-to-hide-content/\\n */\\n .visually-hidden {\\n position: fixed;\\n top: 0;\\n left: 0;\\n width: 1px;\\n height: 1px;\\n overflow: hidden;\\n white-space: nowrap;\\n clip-path: inset(50%);\\n }\\n}\\n@layer kol-global {\\n /*\\n * Dieses CSS stellt sicher, dass der Standard-Style\\n * von A und Button resettet werden.\\n */\\n :is(a, button) {\\n background-color: transparent;\\n width: 100%;\\n margin: 0;\\n padding: 0;\\n border: none;\\n /* 100% needed for custom width from outside */\\n }\\n /*\\n * Ensure elements with hidden attribute to be actually not visible\\n * @see https://meowni.ca/hidden.is.a.lie.html\\n */\\n [hidden] {\\n display: none !important;\\n }\\n .badge-text-hint {\\n color: black;\\n background-color: lightgray;\\n }\\n}\\n@layer kol-global {\\n :host {\\n /*\\n * The max-width is needed to prevent the table from overflowing the\\n * parent node, if the table is wider than the parent node.\\n */\\n max-width: 100%;\\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\\n }\\n * {\\n /*\\n * We prefer to box-sizing: border-box for all elements.\\n */\\n box-sizing: border-box;\\n }\\n .kol-span {\\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\\n display: grid;\\n place-items: center;\\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\\n }\\n .kol-span__container {\\n display: flex;\\n place-items: center;\\n }\\n a,\\n button {\\n cursor: pointer;\\n }\\n .kol-span .kol-span__label--hide-label .kol-span__label {\\n display: none;\\n }\\n /* Reset browser agent style. */\\n button:disabled {\\n color: unset;\\n }\\n .disabled label,\\n .disabled:focus-within label,\\n [aria-disabled=true],\\n [aria-disabled=true]:focus,\\n [disabled],\\n [disabled]:focus {\\n opacity: 0.5;\\n outline: none;\\n cursor: not-allowed;\\n }\\n [aria-disabled=true]:focus .kol-span,\\n [disabled]:focus .kol-span {\\n outline: none !important;\\n }\\n}\\n@layer kol-component {\\n :host {\\n display: block;\\n }\\n}\\n@layer kol-component {\\n @keyframes fadeInOpacity {\\n 0% {\\n opacity: 0;\\n }\\n 100% {\\n opacity: 1;\\n }\\n }\\n .kol-tooltip {\\n display: contents;\\n }\\n .kol-tooltip__floating {\\n display: none;\\n position: fixed;\\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\\n top: 0;\\n left: 0;\\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\\n width: var(--kol-tooltip-width, max-content);\\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\\n max-width: 90vw;\\n max-height: 90vh;\\n visibility: hidden;\\n animation-duration: 0.25s;\\n animation-iteration-count: 1;\\n animation-name: fadeInOpacity;\\n animation-timing-function: ease-in;\\n }\\n .kol-tooltip__arrow {\\n transform: rotate(45deg);\\n color: #000;\\n background-color: #fff;\\n position: absolute;\\n z-index: 999;\\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\\n }\\n .kol-tooltip__content {\\n color: #000;\\n background-color: #fff;\\n position: relative;\\n z-index: 1000;\\n }\\n}\\n@layer kol-component {\\n .kol-alert {\\n display: grid;\\n }\\n .kol-alert__container {\\n display: flex;\\n place-items: center;\\n }\\n .kol-alert__container-content {\\n flex-grow: 1;\\n }\\n .kol-alert__closer {\\n /* Visible with forced colors */\\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\\n }\\n .kol-form-field {\\n display: grid;\\n }\\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\\n cursor: pointer;\\n }\\n .kol-form-field--disabled .kol-form-field__label {\\n opacity: 0.5;\\n }\\n .kol-form-field--required .kol-form-field__label-text::after {\\n content: \\\"*\\\";\\n }\\n .kol-form-field--disabled .kol-form-field__hint {\\n opacity: 0.5;\\n }\\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\\n content: \\\"*\\\";\\n }\\n .kol-input-container {\\n background-color: white;\\n display: grid;\\n width: 100%;\\n min-width: var(--a11y-min-size);\\n min-height: var(--a11y-min-size);\\n align-items: center;\\n grid-template-columns: 1fr;\\n }\\n .kol-input-container:has(> .kol-input-container__adornment--start) {\\n grid-template-columns: auto 1fr;\\n }\\n .kol-input-container:has(> .kol-input-container__adornment--end) {\\n grid-template-columns: 1fr auto;\\n }\\n .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) {\\n grid-template-columns: auto 1fr auto;\\n }\\n .kol-input-container__container {\\n position: relative;\\n }\\n .kol-input-container__adornment {\\n display: flex;\\n align-items: center;\\n }\\n .kol-input-container__adornment .kol-icon {\\n display: grid;\\n height: var(--a11y-min-size);\\n place-items: center;\\n }\\n .kol-input {\\n width: 100%;\\n min-width: var(--a11y-min-size);\\n }\\n .kol-input:focus {\\n outline: none;\\n }\\n}\";\n\nconst KolInputEmail = class {\n async getValue() {\n var _a;\n return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.value;\n }\n async kolFocus() {\n var _a;\n (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();\n }\n getFormFieldProps() {\n return {\n state: this.state,\n class: clsx('kol-input-email', 'email', {\n 'has-value': this.state._hasValue,\n 'kol-form-field--has-counter': this.controller.hasSoftCharacterLimit() || this.controller.hasCounter(),\n }),\n tooltipAlign: this._tooltipAlign,\n onClick: () => { var _a; return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus(); },\n alert: this.showAsAlert(),\n };\n }\n getInputProps() {\n const ariaDescribedBy = typeof this.state._maxLength === 'number' ? [`${this.state._id}-character-limit-hint`] : undefined;\n return Object.assign(Object.assign({ ref: this.catchRef, state: this.state, type: 'email', ariaDescribedBy }, this.controller.onFacade), { onInput: this.onInput, onKeyDown: this.onKeyDown, onFocus: (event) => {\n this.controller.onFacade.onFocus(event);\n this.inputHasFocus = true;\n }, onBlur: (event) => {\n this.controller.onFacade.onBlur(event);\n this.inputHasFocus = false;\n } });\n }\n render() {\n return (h(FormFieldStateWrapper, Object.assign({ key: 'baffe19d589e95460cfc7a667c8d37ec7f28b869' }, this.getFormFieldProps()), h(InputContainerStateWrapperFc, { key: 'f67d993a844ea5345b50ee73f8cfc67a05d37822', state: this.state }, h(InputStateWrapper, Object.assign({ key: '368af02c7118f848925007bcc3ec298fdad708f0' }, this.getInputProps())))));\n }\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.catchRef = (ref) => {\n this.inputRef = ref;\n };\n this.onKeyDown = (event) => {\n if (event.code === 'Enter' || event.code === 'NumpadEnter') {\n propagateSubmitEventToForm({\n form: this.host});\n }\n };\n this.onInput = (event) => {\n this._value = event.target.value;\n this.controller.onFacade.onInput(event);\n };\n this._autoComplete = 'off';\n this._hasCounter = false;\n this._maxLengthBehavior = 'hard';\n this._disabled = false;\n this._hideMsg = false;\n this._hideLabel = false;\n this._hint = '';\n this._multiple = false;\n this._readOnly = false;\n this._required = false;\n this._tooltipAlign = 'top';\n this._touched = false;\n this.state = {\n _currentLength: 0,\n _currentLengthDebounced: 0,\n _hasValue: false,\n _hideMsg: false,\n _id: `id-${nonce()}`,\n _label: '',\n _suggestions: [],\n };\n this.inputHasFocus = false;\n this.controller = new InputEmailController(this, 'email', this.host);\n }\n showAsAlert() {\n return Boolean(this.state._touched) && !this.inputHasFocus;\n }\n validateAccessKey(value) {\n this.controller.validateAccessKey(value);\n }\n validateAutoComplete(value) {\n this.controller.validateAutoComplete(value);\n }\n validateDisabled(value) {\n this.controller.validateDisabled(value);\n }\n validateHideMsg(value) {\n this.controller.validateHideMsg(value);\n }\n validateHideLabel(value) {\n this.controller.validateHideLabel(value);\n }\n validateHasCounter(value) {\n this.controller.validateHasCounter(value);\n }\n validateHint(value) {\n this.controller.validateHint(value);\n }\n validateIcons(value) {\n this.controller.validateIcons(value);\n }\n validateId(value) {\n this.controller.validateId(value);\n }\n validateLabel(value) {\n this.controller.validateLabel(value);\n }\n validateMaxLength(value) {\n this.controller.validateMaxLength(value);\n }\n validateMsg(value) {\n this.controller.validateMsg(value);\n }\n validateMultiple(value) {\n this.controller.validateMultiple(value);\n }\n validateName(value) {\n this.controller.validateName(value);\n }\n validateOn(value) {\n this.controller.validateOn(value);\n }\n validatePattern(value) {\n this.controller.validatePattern(value);\n }\n validatePlaceholder(value) {\n this.controller.validatePlaceholder(value);\n }\n validateReadOnly(value) {\n this.controller.validateReadOnly(value);\n }\n validateRequired(value) {\n this.controller.validateRequired(value);\n }\n validateShortKey(value) {\n this.controller.validateShortKey(value);\n }\n validateSuggestions(value) {\n this.controller.validateSuggestions(value);\n }\n validateSmartButton(value) {\n this.controller.validateSmartButton(value);\n }\n validateSyncValueBySelector(value) {\n this.controller.validateSyncValueBySelector(value);\n }\n validateTouched(value) {\n this.controller.validateTouched(value);\n }\n validateValue(value) {\n this.controller.validateValue(value);\n }\n validateMaxLengthBehavior(value) {\n this.controller.validateMaxLengthBehavior(value);\n }\n componentWillLoad() {\n this._touched = this._touched === true;\n this.controller.componentWillLoad();\n this.state._hasValue = !!this.state._value;\n this.controller.addValueChangeListener((v) => (this.state._hasValue = !!v));\n }\n static get delegatesFocus() { return true; }\n get host() { return getElement(this); }\n static get watchers() { return {\n \"_accessKey\": [\"validateAccessKey\"],\n \"_autoComplete\": [\"validateAutoComplete\"],\n \"_disabled\": [\"validateDisabled\"],\n \"_hideMsg\": [\"validateHideMsg\"],\n \"_hideLabel\": [\"validateHideLabel\"],\n \"_hasCounter\": [\"validateHasCounter\"],\n \"_hint\": [\"validateHint\"],\n \"_icons\": [\"validateIcons\"],\n \"_id\": [\"validateId\"],\n \"_label\": [\"validateLabel\"],\n \"_maxLength\": [\"validateMaxLength\"],\n \"_msg\": [\"validateMsg\"],\n \"_multiple\": [\"validateMultiple\"],\n \"_name\": [\"validateName\"],\n \"_on\": [\"validateOn\"],\n \"_pattern\": [\"validatePattern\"],\n \"_placeholder\": [\"validatePlaceholder\"],\n \"_readOnly\": [\"validateReadOnly\"],\n \"_required\": [\"validateRequired\"],\n \"_shortKey\": [\"validateShortKey\"],\n \"_suggestions\": [\"validateSuggestions\"],\n \"_smartButton\": [\"validateSmartButton\"],\n \"_syncValueBySelector\": [\"validateSyncValueBySelector\"],\n \"_touched\": [\"validateTouched\"],\n \"_value\": [\"validateValue\"],\n \"_maxLengthBehavior\": [\"validateMaxLengthBehavior\"]\n }; }\n};\nKolInputEmail.style = {\n default: defaultStyleCss\n};\n\nexport { KolInputEmail as kol_input_email };\n//# sourceMappingURL=kol-input-email.entry.js.map\n"],"names":["InputEmailController","InputTextEmailController","component","name","host","value","validateMultiple","validateMaxLengthBehavior","defaultStyleCss","KolInputEmail","_a","clsx","ariaDescribedBy","event","h","FormFieldStateWrapper","InputContainerStateWrapperFc","InputStateWrapper","hostRef","registerInstance","ref","propagateSubmitEventToForm","nonce","v","getElement"],"mappings":"whDAAA;AAAA;AAAA,GA6CA,MAAMA,UAA6BC,CAAyB,CACxD,YAAYC,EAAWC,EAAMC,EAAM,CAC/B,MAAMF,EAAWC,EAAMC,CAAI,EAC3B,KAAK,UAAYF,CACrB,CACA,iBAAiBG,EAAO,CACpBC,EAAiB,KAAK,UAAWD,CAAK,CAC1C,CACA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,mBAAmB,EAClC,YAAe,CAAC,oBAAoB,EACpC,MAAS,CAAC,cAAc,EACxB,OAAU,CAAC,eAAe,EAC1B,IAAO,CAAC,YAAY,EACpB,OAAU,CAAC,eAAe,EAC1B,WAAc,CAAC,mBAAmB,EAClC,KAAQ,CAAC,aAAa,EACtB,UAAa,CAAC,kBAAkB,EAChC,MAAS,CAAC,cAAc,EACxB,IAAO,CAAC,YAAY,EACpB,SAAY,CAAC,iBAAiB,EAC9B,aAAgB,CAAC,qBAAqB,EACtC,UAAa,CAAC,kBAAkB,EAChC,UAAa,CAAC,kBAAkB,EAChC,UAAa,CAAC,kBAAkB,EAChC,aAAgB,CAAC,qBAAqB,EACtC,aAAgB,CAAC,qBAAqB,EACtC,qBAAwB,CAAC,6BAA6B,EACtD,SAAY,CAAC,iBAAiB,EAC9B,OAAU,CAAC,eAAe,EAC1B,mBAAsB,CAAC,2BAA2B,CAC1D,CAAO,CACP,EACAf,EAAc,MAAQ,CAClB,QAASD,CACb"}
@@ -1,4 +1,4 @@
1
- import{h as a,e as h,r as p,g as u,n as m}from"./index-D7AUPAYP.js";import{c as s}from"./clsx-eK3rPvPS-BT_IL7Fz.js";import{F as f}from"./FormFieldStateWrapper-DBc4KUdQ-CVkWtyyV.js";import{I as v,a as b}from"./controller-icon-C8-i4mlh-BGpCnuog.js";import{I as g}from"./InputStateWrapper-CJbBu-pG-CB4qoRih.js";import{t as d}from"./i18n-CdSCDnmA-D76H1NpQ.js";import{n as _}from"./dev.utils-BJDuEPOn-TJbx-Gcl.js";import{v as k}from"./multiple-bcm5IaCN-DE09YNIY.js";import{v as y}from"./required-G86n77y0-GePRNKdB.js";import"./isObject-DvSELytj-B0RigBxT.js";import"./tslib.es6-CxX45GIN-BAJoBDh7.js";import"./Alert-COUNttIM-CvH_qEya.js";import"./access-and-short-key-bcID78Ha-L8u4_6ia.js";import"./disabled-BydergHu-B1DLdE7n.js";import"./hide-label-DRunOux4-oo1N_oyu.js";import"./label-CdtNxOKu-xHQWPYNA.js";import"./tooltip-align-_VI7LehI-B43QQEAJ.js";import"./align-CyK0wp7d-Bgi-SsTU.js";import"./associated.controller-BKIODHIT-DcF9U5JZ.js";import"./InternalUnderlinedBadgeText-Bcop6gIY-DcZYTeCS.js";import"./reuse-CX4AQDkS-Cyh-fyjG.js";import"./Icon-DhhnLcqx-Duv7memP.js";import"./icons-72ER78AW-CdwN4BiP.js";import"./Input-djZI0PHg-CvPBJ0GD.js";import"./Heading-DDR2LlZW-C6b5Q_9R.js";/*!
1
+ import{h as a,e as h,r as p,g as u,n as m}from"./index-CScqQH4b.js";import{c as s}from"./clsx-eK3rPvPS-BT_IL7Fz.js";import{F as f}from"./FormFieldStateWrapper-CCxckxyk-B4bHyylZ.js";import{I as v,a as b}from"./controller-icon-DufJu-M8-Dd9_utrw.js";import{I as g}from"./InputStateWrapper-D-ZsGHSy-XxY4nRAw.js";import{t as d}from"./i18n-CdSCDnmA-BDPBg7Eu.js";import{n as _}from"./dev.utils-jFnvJk5c-D37nV2Pq.js";import{v as k}from"./multiple-bcm5IaCN-CQvH408s.js";import{v as y}from"./required-G86n77y0-BPjPpx0R.js";import"./isObject-DvSELytj-B0RigBxT.js";import"./tslib.es6-CxX45GIN-BAJoBDh7.js";import"./Alert-rDcGDFja-BMLJUD8L.js";import"./access-and-short-key-bcID78Ha-CK3F9UJc.js";import"./disabled-BydergHu-BPFXrbWx.js";import"./hide-label-DRunOux4-DtTbz-0D.js";import"./label-CdtNxOKu-CLyKncMr.js";import"./tooltip-align-_VI7LehI-BA2gIX1h.js";import"./align-CyK0wp7d-Ds_zJkMi.js";import"./associated.controller-BKIODHIT-DjKWct4T.js";import"./InternalUnderlinedBadgeText-i_4-zRGd-BtWo_Ewc.js";import"./reuse-CX4AQDkS-Cyh-fyjG.js";import"./Icon-DAAnSHZC-Dfyu_VE7.js";import"./icons-72ER78AW-V6GT6JtO.js";import"./Input-DBiN9aFG-98jE4J2q.js";import"./Heading-Of5WUIQt-CrisRUf_.js";/*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */const w=(e,t,n={})=>{m(e,"_accept",t,n)};class x extends b{constructor(t,n,i){super(t,n,i),this.component=t}validateAccept(t){w(this.component,t)}validateMultiple(t){k(this.component,t)}validateRequired(t){y(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateAccept(this.component._accept),this.validateMultiple(this.component._multiple),this.validateRequired(this.component._required)}}const F=`/*
4
4
  * This file defines the layer order for all CSS layers used in KoliBri.
@@ -19,8 +19,8 @@ import{h as a,e as h,r as p,g as u,n as m}from"./index-D7AUPAYP.js";import{c as
19
19
  @layer kol-a11y {
20
20
  :host {
21
21
  /*
22
- * Minimum size of interactive elements.
23
- */
22
+ * Minimum size of interactive elements.
23
+ */
24
24
  --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));
25
25
  /*
26
26
  * No element should be used without verifying the contrast ratio of its background and font colors.
@@ -41,6 +41,10 @@ import{h as a,e as h,r as p,g as u,n as m}from"./index-D7AUPAYP.js";import{c as
41
41
  * Word spacing is required for all texts.
42
42
  */
43
43
  word-spacing: inherit;
44
+ /*
45
+ * Text should be aligned left by default to provide a predictable starting point.
46
+ */
47
+ text-align: left;
44
48
  }
45
49
  * {
46
50
  /*
@@ -79,6 +83,10 @@ import{h as a,e as h,r as p,g as u,n as m}from"./index-D7AUPAYP.js";import{c as
79
83
  option,
80
84
  select,
81
85
  textarea {
86
+ /*
87
+ * All elements should inherit the text color from his parent element.
88
+ */
89
+ color: inherit;
82
90
  /*
83
91
  * All elements should inherit the font family from his parent element.
84
92
  */
@@ -342,4 +350,4 @@ import{h as a,e as h,r as p,g as u,n as m}from"./index-D7AUPAYP.js";import{c as
342
350
  grid-template-columns: auto 1fr;
343
351
  }
344
352
  }`,S=class{async getValue(){var e;return(e=this.inputRef)===null||e===void 0?void 0:e.files}async kolFocus(){var e;(e=this.inputRef)===null||e===void 0||e.focus()}async reset(){this.controller.setFormAssociatedValue(""),this.filename=this.translateFilenameText,this.hasFileSelected=!1,this.inputRef&&(this.inputRef.value="")}getFormFieldProps(){return{state:this.state,class:s("kol-input-file","file"),tooltipAlign:this._tooltipAlign,onClick:()=>{var e;return(e=this.inputRef)===null||e===void 0?void 0:e.focus()},alert:this.showAsAlert()}}getInputProps(){return Object.assign(Object.assign({ref:this.catchRef,state:this.state,type:"file",accept:this.state._accept,multiple:this.state._multiple},this.controller.onFacade),{onChange:this.onChange,onInput:this.onInput,onFocus:e=>{this.controller.onFacade.onFocus(e),this.inputHasFocus=!0},onBlur:e=>{this.controller.onFacade.onBlur(e),this.inputHasFocus=!1}})}render(){return a(f,Object.assign({key:"8738e92f0b999d05038113c7caa046fa90102c18"},this.getFormFieldProps()),a(v,{key:"1b064e2ef677917fde8cdebd955dfee4bd2f6158",state:this.state},a("span",{key:"fd08fd75d9247a2518306cb9cf8dc45554603e37",class:s("kol-input-container__filename",{"kol-input-container__filename--has-file":this.hasFileSelected})},this.filename),a(g,Object.assign({key:"ddc43b11433cd252103555d049841b2c1a8156d1"},this.getInputProps())),a(h,{key:"87a541cdc62877c4225dfdda7ad8d7b4c8648ff8",class:"kol-input-container__button",_label:this.translateDataBrowseText,_buttonVariant:"primary",_disabled:this._disabled})))}constructor(e){p(this,e),this.translateDataBrowseText=d("kol-data-browse-text"),this.translateFilenameText=d("kol-filename-text"),this.catchRef=t=>{this.inputRef=t},this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._multiple=!1,this._required=!1,this._tooltipAlign="top",this._touched=!1,this.filename=this.translateFilenameText,this.hasFileSelected=!1,this.state={_hideMsg:!1,_id:`id-${_()}`,_label:""},this.inputHasFocus=!1,this.onDragOver=t=>{var n,i,o;t.preventDefault(),(o=(i=(n=this.inputRef)===null||n===void 0?void 0:n.parentElement)===null||i===void 0?void 0:i.parentElement)===null||o===void 0||o.classList.add("kol-input-container--is-dragover")},this.onDragLeave=()=>{var t,n,i;(i=(n=(t=this.inputRef)===null||t===void 0?void 0:t.parentElement)===null||n===void 0?void 0:n.parentElement)===null||i===void 0||i.classList.remove("kol-input-container--is-dragover")},this.onDrop=t=>{var n,i,o,l;if(t.preventDefault(),(o=(i=(n=this.inputRef)===null||n===void 0?void 0:n.parentElement)===null||i===void 0?void 0:i.parentElement)===null||o===void 0||o.classList.remove("kol-input-container--is-dragover"),!((l=t.dataTransfer)===null||l===void 0)&&l.files.length){const r=t.dataTransfer.files;this.filename=Array.from(r).map(c=>c.name).join(", "),this.controller.setFormAssociatedValue(r)}},this.onChange=t=>{if(this.inputRef instanceof HTMLInputElement&&this.inputRef.type==="file"){const n=this.inputRef.files;this.hasFileSelected=!!n?.length,this.filename=n?.length?Array.from(n).map(i=>i.name).join(", "):this.translateFilenameText,this.controller.onFacade.onChange(t,n),this.controller.setFormAssociatedValue(n)}},this.onInput=t=>{if(this.inputRef instanceof HTMLInputElement&&this.inputRef.type==="file"){const n=this.inputRef.files;this.controller.onFacade.onInput(t,!1,n)}},this.controller=new x(this,"file",this.host)}showAsAlert(){return!!this.state._touched&&!this.inputHasFocus}validateAccept(e){this.controller.validateAccept(e)}validateAccessKey(e){this.controller.validateAccessKey(e)}validateDisabled(e){this.controller.validateDisabled(e)}validateHideMsg(e){this.controller.validateHideMsg(e)}validateHideLabel(e){this.controller.validateHideLabel(e)}validateHint(e){this.controller.validateHint(e)}validateIcons(e){this.controller.validateIcons(e)}validateId(e){this.controller.validateId(e)}validateLabel(e){this.controller.validateLabel(e)}validateMsg(e){this.controller.validateMsg(e)}validateMultiple(e){this.controller.validateMultiple(e)}validateName(e){this.controller.validateName(e)}validateOn(e){this.controller.validateOn(e)}validateRequired(e){this.controller.validateRequired(e)}validateShortKey(e){this.controller.validateShortKey(e)}validateSmartButton(e){this.controller.validateSmartButton(e)}validateSyncValueBySelector(e){this.controller.validateSyncValueBySelector(e)}validateTouched(e){this.controller.validateTouched(e)}componentWillLoad(){this._touched=this._touched===!0,this.controller.componentWillLoad()}componentDidLoad(){var e,t;const n=(t=(e=this.inputRef)===null||e===void 0?void 0:e.parentElement)===null||t===void 0?void 0:t.parentElement;n?.addEventListener("dragover",this.onDragOver),n?.addEventListener("dragleave",this.onDragLeave),n?.addEventListener("drop",this.onDrop)}static get delegatesFocus(){return!0}get host(){return u(this)}static get watchers(){return{_accept:["validateAccept"],_accessKey:["validateAccessKey"],_disabled:["validateDisabled"],_hideMsg:["validateHideMsg"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_msg:["validateMsg"],_multiple:["validateMultiple"],_name:["validateName"],_on:["validateOn"],_required:["validateRequired"],_shortKey:["validateShortKey"],_smartButton:["validateSmartButton"],_syncValueBySelector:["validateSyncValueBySelector"],_touched:["validateTouched"]}}};S.style={default:F};export{S as kol_input_file};
345
- //# sourceMappingURL=kol-input-file.entry-BqZwdEt2.js.map
353
+ //# sourceMappingURL=kol-input-file.entry-DIgSc1fg.js.map