@public-ui/sample-react 4.0.0-alpha.1 → 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.
- package/dist/assets/{Alert-yh8R3coC-BCYFPt1y.js → Alert-rDcGDFja-BMLJUD8L.js} +2 -2
- package/dist/assets/{Alert-yh8R3coC-BCYFPt1y.js.map → Alert-rDcGDFja-BMLJUD8L.js.map} +1 -1
- package/dist/assets/{Collapsible-DMNJjdc3-DYmZzd2C.js → Collapsible-CI6mUEEU-DBPCC-sP.js} +2 -2
- package/dist/assets/{Collapsible-DMNJjdc3-DYmZzd2C.js.map → Collapsible-CI6mUEEU-DBPCC-sP.js.map} +1 -1
- package/dist/assets/{CustomSuggestionsToggle-_i-9Z6oo-Cwy2A9IT.js → CustomSuggestionsToggle-DlNdGFuo-O7qofScd.js} +2 -2
- package/dist/assets/{CustomSuggestionsToggle-_i-9Z6oo-Cwy2A9IT.js.map → CustomSuggestionsToggle-DlNdGFuo-O7qofScd.js.map} +1 -1
- package/dist/assets/{FieldControlStateWrapper-DxTxYvO0-B7LDSNuz.js → FieldControlStateWrapper-D4iy61Tv-DuleEKBW.js} +2 -2
- package/dist/assets/{FieldControlStateWrapper-DxTxYvO0-B7LDSNuz.js.map → FieldControlStateWrapper-D4iy61Tv-DuleEKBW.js.map} +1 -1
- package/dist/assets/{FormFieldStateWrapper-DRcnPo2o-DHMFNAbV.js → FormFieldStateWrapper-CCxckxyk-B4bHyylZ.js} +2 -2
- package/dist/assets/{FormFieldStateWrapper-DRcnPo2o-DHMFNAbV.js.map → FormFieldStateWrapper-CCxckxyk-B4bHyylZ.js.map} +1 -1
- package/dist/assets/{Heading-KhwFHPZb-CVH-FD5x.js → Heading-Of5WUIQt-CrisRUf_.js} +2 -2
- package/dist/assets/{Heading-KhwFHPZb-CVH-FD5x.js.map → Heading-Of5WUIQt-CrisRUf_.js.map} +1 -1
- package/dist/assets/{Icon-BsRmEtCa-1x6tgY8w.js → Icon-DAAnSHZC-Dfyu_VE7.js} +2 -2
- package/dist/assets/{Icon-BsRmEtCa-1x6tgY8w.js.map → Icon-DAAnSHZC-Dfyu_VE7.js.map} +1 -1
- package/dist/assets/{Input-BxElrU0N-BanwIU4Z.js → Input-DBiN9aFG-98jE4J2q.js} +2 -2
- package/dist/assets/{Input-BxElrU0N-BanwIU4Z.js.map → Input-DBiN9aFG-98jE4J2q.js.map} +1 -1
- package/dist/assets/{InputStateWrapper-GJbSTDc8-BJWKHgt0.js → InputStateWrapper-D-ZsGHSy-XxY4nRAw.js} +2 -2
- package/dist/assets/{InputStateWrapper-GJbSTDc8-BJWKHgt0.js.map → InputStateWrapper-D-ZsGHSy-XxY4nRAw.js.map} +1 -1
- package/dist/assets/{InternalUnderlinedBadgeText-BnPUgbKl-BvtrJtYz.js → InternalUnderlinedBadgeText-i_4-zRGd-BtWo_Ewc.js} +2 -2
- package/dist/assets/{InternalUnderlinedBadgeText-BnPUgbKl-BvtrJtYz.js.map → InternalUnderlinedBadgeText-i_4-zRGd-BtWo_Ewc.js.map} +1 -1
- package/dist/assets/{Span-5ZR0JDnP-DY-b2WcQ.js → Span-CE81mFIR-B_UNjncc.js} +2 -2
- package/dist/assets/{Span-5ZR0JDnP-DY-b2WcQ.js.map → Span-CE81mFIR-B_UNjncc.js.map} +1 -1
- package/dist/assets/{access-and-short-key-bcID78Ha-CxLL22Gm.js → access-and-short-key-bcID78Ha-CK3F9UJc.js} +2 -2
- package/dist/assets/{access-and-short-key-bcID78Ha-CxLL22Gm.js.map → access-and-short-key-bcID78Ha-CK3F9UJc.js.map} +1 -1
- package/dist/assets/{align-CyK0wp7d-B1c2PRsI.js → align-CyK0wp7d-Ds_zJkMi.js} +2 -2
- package/dist/assets/{align-CyK0wp7d-B1c2PRsI.js.map → align-CyK0wp7d-Ds_zJkMi.js.map} +1 -1
- package/dist/assets/{align-floating-elements-Bx4ukVlr-BjpcfWth.js → align-floating-elements-Bx4ukVlr-db7E833n.js} +2 -2
- package/dist/assets/{align-floating-elements-Bx4ukVlr-BjpcfWth.js.map → align-floating-elements-Bx4ukVlr-db7E833n.js.map} +1 -1
- package/dist/assets/{associated.controller-BKIODHIT-AfwHQGyb.js → associated.controller-BKIODHIT-DjKWct4T.js} +2 -2
- package/dist/assets/{associated.controller-BKIODHIT-AfwHQGyb.js.map → associated.controller-BKIODHIT-DjKWct4T.js.map} +1 -1
- package/dist/assets/{auto-complete-BsG3RQJ3-DBhjeNry.js → auto-complete-BsG3RQJ3-DjAvSQV5.js} +2 -2
- package/dist/assets/{auto-complete-BsG3RQJ3-DBhjeNry.js.map → auto-complete-BsG3RQJ3-DjAvSQV5.js.map} +1 -1
- package/dist/assets/{color-C3pYZKV3-0ShHSUZ4.js → color-C3pYZKV3-CoNBFngn.js} +2 -2
- package/dist/assets/{color-C3pYZKV3-0ShHSUZ4.js.map → color-C3pYZKV3-CoNBFngn.js.map} +1 -1
- package/dist/assets/{controller-CeGWU1Au-DNFef5aJ.js → controller-BTIv7gJq-9h6vdF-r.js} +2 -2
- package/dist/assets/{controller-CeGWU1Au-DNFef5aJ.js.map → controller-BTIv7gJq-9h6vdF-r.js.map} +1 -1
- package/dist/assets/{controller-HR9pimff-BXgDC-Yz.js → controller-CFj0r1ye-D0qtp4wr.js} +2 -2
- package/dist/assets/{controller-HR9pimff-BXgDC-Yz.js.map → controller-CFj0r1ye-D0qtp4wr.js.map} +1 -1
- package/dist/assets/{controller-BiC2tpL8-CL0UehwS.js → controller-CTR4HcO6-DYxcnCqT.js} +2 -2
- package/dist/assets/{controller-BiC2tpL8-CL0UehwS.js.map → controller-CTR4HcO6-DYxcnCqT.js.map} +1 -1
- package/dist/assets/{controller-CV2y9Ae_-Dd2dI0KH.js → controller-CV2y9Ae_-DuhIALLa.js} +2 -2
- package/dist/assets/{controller-CV2y9Ae_-Dd2dI0KH.js.map → controller-CV2y9Ae_-DuhIALLa.js.map} +1 -1
- package/dist/assets/{controller-icon-DN63N3Rm-TTy6vTmy.js → controller-icon-DufJu-M8-Dd9_utrw.js} +2 -2
- package/dist/assets/{controller-icon-DN63N3Rm-TTy6vTmy.js.map → controller-icon-DufJu-M8-Dd9_utrw.js.map} +1 -1
- package/dist/assets/{custom-class-CA0KGtrM-DzTdhWE9.js → custom-class-CA0KGtrM-DTbaTBLP.js} +2 -2
- package/dist/assets/{custom-class-CA0KGtrM-DzTdhWE9.js.map → custom-class-CA0KGtrM-DTbaTBLP.js.map} +1 -1
- package/dist/assets/{dev.utils-0SH3ep_K-BGa3ho47.js → dev.utils-jFnvJk5c-D37nV2Pq.js} +2 -2
- package/dist/assets/{dev.utils-0SH3ep_K-BGa3ho47.js.map → dev.utils-jFnvJk5c-D37nV2Pq.js.map} +1 -1
- package/dist/assets/{devtools-Cg1RmbyV-CCRxoqwI.js → devtools-BhEwJ2s4-DGukMoVb.js} +2 -2
- package/dist/assets/{devtools-Cg1RmbyV-CCRxoqwI.js.map → devtools-BhEwJ2s4-DGukMoVb.js.map} +1 -1
- package/dist/assets/{disabled-BydergHu-Cv1b_0HG.js → disabled-BydergHu-BPFXrbWx.js} +2 -2
- package/dist/assets/{disabled-BydergHu-Cv1b_0HG.js.map → disabled-BydergHu-BPFXrbWx.js.map} +1 -1
- package/dist/assets/has-closer-BBMh8HY3-BkkDkyUT.js +4 -0
- package/dist/assets/{has-closer-BBMh8HY3-D6JHMwHg.js.map → has-closer-BBMh8HY3-BkkDkyUT.js.map} +1 -1
- package/dist/assets/{hide-label-DRunOux4-B76jV3WP.js → hide-label-DRunOux4-DtTbz-0D.js} +2 -2
- package/dist/assets/{hide-label-DRunOux4-B76jV3WP.js.map → hide-label-DRunOux4-DtTbz-0D.js.map} +1 -1
- package/dist/assets/{href-zZq6HYWf-BvA5AGtT.js → href-zZq6HYWf-B3rT45gz.js} +2 -2
- package/dist/assets/{href-zZq6HYWf-BvA5AGtT.js.map → href-zZq6HYWf-B3rT45gz.js.map} +1 -1
- package/dist/assets/{i18n-CdSCDnmA-CsM0aySV.js → i18n-CdSCDnmA-BDPBg7Eu.js} +2 -2
- package/dist/assets/{i18n-CdSCDnmA-CsM0aySV.js.map → i18n-CdSCDnmA-BDPBg7Eu.js.map} +1 -1
- package/dist/assets/{icons-72ER78AW-Cuv_9lnW.js → icons-72ER78AW-V6GT6JtO.js} +2 -2
- package/dist/assets/{icons-72ER78AW-Cuv_9lnW.js.map → icons-72ER78AW-V6GT6JtO.js.map} +1 -1
- package/dist/assets/image-source-RWPv7frZ-CkjdxZJx.js +4 -0
- package/dist/assets/{image-source-RWPv7frZ-D5Uo7XSp.js.map → image-source-RWPv7frZ-CkjdxZJx.js.map} +1 -1
- package/dist/assets/index-CScqQH4b.js +14103 -0
- package/dist/assets/index-CScqQH4b.js.map +1 -0
- package/dist/assets/{kol-abbr.entry-BOQUk9ml.js → kol-abbr.entry-DSExcK7Y.js} +13 -5
- package/dist/assets/kol-abbr.entry-DSExcK7Y.js.map +1 -0
- package/dist/assets/{kol-accordion.entry-BPBr-GDl.js → kol-accordion.entry-abzFpjvJ.js} +14 -6
- package/dist/assets/kol-accordion.entry-abzFpjvJ.js.map +1 -0
- package/dist/assets/{kol-alert-wc.entry-BUR34lkT.js → kol-alert-wc.entry-DIHfazMO.js} +2 -2
- package/dist/assets/{kol-alert-wc.entry-BUR34lkT.js.map → kol-alert-wc.entry-DIHfazMO.js.map} +1 -1
- package/dist/assets/{kol-alert.entry-CCHuxOJN.js → kol-alert.entry-Bi7etxxW.js} +12 -4
- package/dist/assets/kol-alert.entry-Bi7etxxW.js.map +1 -0
- package/dist/assets/{kol-avatar-wc.entry-QnUrl-59.js → kol-avatar-wc.entry-DMCcaCpy.js} +2 -2
- package/dist/assets/{kol-avatar-wc.entry-QnUrl-59.js.map → kol-avatar-wc.entry-DMCcaCpy.js.map} +1 -1
- package/dist/assets/{kol-avatar.entry-CX6KcZID.js → kol-avatar.entry-CV9VMVmD.js} +12 -4
- package/dist/assets/kol-avatar.entry-CV9VMVmD.js.map +1 -0
- package/dist/assets/{kol-badge.entry-DELXn1iU.js → kol-badge.entry-Dua8Ck0Y.js} +12 -4
- package/dist/assets/kol-badge.entry-Dua8Ck0Y.js.map +1 -0
- package/dist/assets/{kol-breadcrumb.entry-yPla1KmT.js → kol-breadcrumb.entry-CmAWsf9n.js} +12 -4
- package/dist/assets/kol-breadcrumb.entry-CmAWsf9n.js.map +1 -0
- package/dist/assets/{kol-button-link.entry-BZTjr2mF.js → kol-button-link.entry-BpONzPg2.js} +12 -4
- package/dist/assets/kol-button-link.entry-BpONzPg2.js.map +1 -0
- package/dist/assets/{kol-button-wc.entry-CHSWlqdI.js → kol-button-wc.entry-CxQP3HLo.js} +2 -2
- package/dist/assets/{kol-button-wc.entry-CHSWlqdI.js.map → kol-button-wc.entry-CxQP3HLo.js.map} +1 -1
- package/dist/assets/{kol-button.entry-Dy9cy-af.js → kol-button.entry-BWAblq2h.js} +12 -4
- package/dist/assets/kol-button.entry-BWAblq2h.js.map +1 -0
- package/dist/assets/{kol-card-wc.entry-Jt_m7RwH.js → kol-card-wc.entry-D1uzKYNH.js} +2 -2
- package/dist/assets/{kol-card-wc.entry-Jt_m7RwH.js.map → kol-card-wc.entry-D1uzKYNH.js.map} +1 -1
- package/dist/assets/{kol-card.entry-CXmAn44D.js → kol-card.entry-DUat60hr.js} +13 -5
- package/dist/assets/kol-card.entry-DUat60hr.js.map +1 -0
- package/dist/assets/{kol-combobox.entry-BJ4a1FfW.js → kol-combobox.entry-B2Xe5aAF.js} +12 -4
- package/dist/assets/kol-combobox.entry-B2Xe5aAF.js.map +1 -0
- package/dist/assets/{kol-details.entry-CO73BBWu.js → kol-details.entry-BdbKlKC_.js} +12 -4
- package/dist/assets/kol-details.entry-BdbKlKC_.js.map +1 -0
- package/dist/assets/{kol-drawer.entry-DYgBQX7H.js → kol-drawer.entry-CyZwxKbJ.js} +14 -6
- package/dist/assets/kol-drawer.entry-CyZwxKbJ.js.map +1 -0
- package/dist/assets/{kol-form.entry-PDiVjuXV.js → kol-form.entry-CE7kD4si.js} +12 -4
- package/dist/assets/kol-form.entry-CE7kD4si.js.map +1 -0
- package/dist/assets/{kol-heading.entry-B8k5gIIn.js → kol-heading.entry-CYC5dUQt.js} +13 -5
- package/dist/assets/kol-heading.entry-CYC5dUQt.js.map +1 -0
- package/dist/assets/{kol-icon.entry-BCbP-89z.js → kol-icon.entry-DDBzHxfS.js} +2 -2
- package/dist/assets/{kol-icon.entry-BCbP-89z.js.map → kol-icon.entry-DDBzHxfS.js.map} +1 -1
- package/dist/assets/{kol-image.entry-BeDw1Y5m.js → kol-image.entry-CUMHkUjG.js} +12 -4
- package/dist/assets/kol-image.entry-CUMHkUjG.js.map +1 -0
- package/dist/assets/{kol-input-checkbox.entry-jYzRlCJQ.js → kol-input-checkbox.entry-vv6vl59s.js} +14 -6
- package/dist/assets/kol-input-checkbox.entry-vv6vl59s.js.map +1 -0
- package/dist/assets/{kol-input-color.entry-DkzzlWN2.js → kol-input-color.entry-BP7j43Eo.js} +12 -4
- package/dist/assets/kol-input-color.entry-BP7j43Eo.js.map +1 -0
- package/dist/assets/{kol-input-date.entry-D9P0C3QF.js → kol-input-date.entry-BvccwUBf.js} +34 -6
- package/dist/assets/kol-input-date.entry-BvccwUBf.js.map +1 -0
- package/dist/assets/{kol-input-email.entry-TO6O_yoQ.js → kol-input-email.entry-QS5TevHv.js} +12 -4
- package/dist/assets/kol-input-email.entry-QS5TevHv.js.map +1 -0
- package/dist/assets/{kol-input-file.entry-6q0RvDtB.js → kol-input-file.entry-DIgSc1fg.js} +12 -4
- package/dist/assets/kol-input-file.entry-DIgSc1fg.js.map +1 -0
- package/dist/assets/{kol-input-number.entry-ChBm2jsE.js → kol-input-number.entry-08jF_pXv.js} +14 -6
- package/dist/assets/kol-input-number.entry-08jF_pXv.js.map +1 -0
- package/dist/assets/{kol-input-password.entry-BKBZNnTD.js → kol-input-password.entry-KfZ0aP1e.js} +12 -4
- package/dist/assets/kol-input-password.entry-KfZ0aP1e.js.map +1 -0
- package/dist/assets/{kol-input-radio.entry-XZKN8skm.js → kol-input-radio.entry-BZXYtIWi.js} +13 -5
- package/dist/assets/kol-input-radio.entry-BZXYtIWi.js.map +1 -0
- package/dist/assets/{kol-input-range.entry-D9W7tUnK.js → kol-input-range.entry-DzxZZxwg.js} +13 -5
- package/dist/assets/kol-input-range.entry-DzxZZxwg.js.map +1 -0
- package/dist/assets/{kol-input-text.entry-DSUdIfVX.js → kol-input-text.entry-C_NDprxn.js} +12 -4
- package/dist/assets/kol-input-text.entry-C_NDprxn.js.map +1 -0
- package/dist/assets/{kol-kolibri.entry-I9nHpD6z.js → kol-kolibri.entry-DsiCiBEw.js} +12 -4
- package/dist/assets/kol-kolibri.entry-DsiCiBEw.js.map +1 -0
- package/dist/assets/{kol-link-button.entry-CsihdhEy.js → kol-link-button.entry-DV2JifLv.js} +12 -4
- package/dist/assets/kol-link-button.entry-DV2JifLv.js.map +1 -0
- package/dist/assets/{kol-link-wc.entry-DSZVglP8.js → kol-link-wc.entry-DNF3mgsz.js} +2 -2
- package/dist/assets/{kol-link-wc.entry-DSZVglP8.js.map → kol-link-wc.entry-DNF3mgsz.js.map} +1 -1
- package/dist/assets/{kol-link.entry-B9Ihan-K.js → kol-link.entry-BZ1ulo3D.js} +12 -4
- package/dist/assets/kol-link.entry-BZ1ulo3D.js.map +1 -0
- package/dist/assets/{kol-modal.entry-Dnmj60T9.js → kol-modal.entry-DgiHCfGM.js} +14 -6
- package/dist/assets/kol-modal.entry-DgiHCfGM.js.map +1 -0
- package/dist/assets/{kol-nav.entry-CNIensHT.js → kol-nav.entry-f7tigMNP.js} +14 -6
- package/dist/assets/kol-nav.entry-f7tigMNP.js.map +1 -0
- package/dist/assets/{kol-pagination-wc.entry-BOksFeUP.js → kol-pagination-wc.entry-CL-2QKe2.js} +2 -2
- package/dist/assets/{kol-pagination-wc.entry-BOksFeUP.js.map → kol-pagination-wc.entry-CL-2QKe2.js.map} +1 -1
- package/dist/assets/{kol-pagination.entry-Cmov7NSr.js → kol-pagination.entry-BMiql5xn.js} +12 -4
- package/dist/assets/kol-pagination.entry-BMiql5xn.js.map +1 -0
- package/dist/assets/{kol-popover-button-wc.entry-BGvUBUFb.js → kol-popover-button-wc.entry-DITFi0pw.js} +2 -2
- package/dist/assets/{kol-popover-button-wc.entry-BGvUBUFb.js.map → kol-popover-button-wc.entry-DITFi0pw.js.map} +1 -1
- package/dist/assets/{kol-popover-button.entry-UytQgKbD.js → kol-popover-button.entry-Cc5iej0K.js} +12 -4
- package/dist/assets/kol-popover-button.entry-Cc5iej0K.js.map +1 -0
- package/dist/assets/{kol-popover-wc.entry-C9R7YZS-.js → kol-popover-wc.entry-IG9IR9et.js} +2 -2
- package/dist/assets/{kol-popover-wc.entry-C9R7YZS-.js.map → kol-popover-wc.entry-IG9IR9et.js.map} +1 -1
- package/dist/assets/{kol-progress.entry-CaMrVgf9.js → kol-progress.entry-w2oLhbZO.js} +14 -6
- package/dist/assets/kol-progress.entry-w2oLhbZO.js.map +1 -0
- package/dist/assets/{kol-quote.entry-CXQugIgm.js → kol-quote.entry-B75B_fuz.js} +12 -4
- package/dist/assets/kol-quote.entry-B75B_fuz.js.map +1 -0
- package/dist/assets/{kol-select.entry-BuG0OMQF.js → kol-select.entry-Bu0L0JED.js} +14 -6
- package/dist/assets/kol-select.entry-Bu0L0JED.js.map +1 -0
- package/dist/assets/{kol-single-select.entry-CufkmSnc.js → kol-single-select.entry-DNkArfeb.js} +12 -4
- package/dist/assets/kol-single-select.entry-DNkArfeb.js.map +1 -0
- package/dist/assets/{kol-skip-nav.entry-BC_RqrlA.js → kol-skip-nav.entry-DsqvE3-q.js} +13 -5
- package/dist/assets/kol-skip-nav.entry-DsqvE3-q.js.map +1 -0
- package/dist/assets/{kol-spin.entry-D_n0RjJ1.js → kol-spin.entry-Cfcl5qOO.js} +13 -5
- package/dist/assets/kol-spin.entry-Cfcl5qOO.js.map +1 -0
- package/dist/assets/{kol-split-button.entry-BzL2PZ5L.js → kol-split-button.entry-BpyH6rr0.js} +12 -4
- package/dist/assets/kol-split-button.entry-BpyH6rr0.js.map +1 -0
- package/dist/assets/{kol-table-settings-wc.entry-cgevfcWL.js → kol-table-settings-wc.entry-B8aYsiOI.js} +2 -2
- package/dist/assets/{kol-table-settings-wc.entry-cgevfcWL.js.map → kol-table-settings-wc.entry-B8aYsiOI.js.map} +1 -1
- package/dist/assets/{kol-table-stateful.entry-qcog1Esv.js → kol-table-stateful.entry-BobVufSK.js} +14 -6
- package/dist/assets/kol-table-stateful.entry-BobVufSK.js.map +1 -0
- package/dist/assets/kol-table-stateless-wc.entry-D1JubOgd.js +4 -0
- package/dist/assets/{kol-table-stateless-wc.entry-Czd5yOZc.js.map → kol-table-stateless-wc.entry-D1JubOgd.js.map} +1 -1
- package/dist/assets/{kol-table-stateless.entry-BEhPeAso.js → kol-table-stateless.entry-slG667hl.js} +12 -4
- package/dist/assets/kol-table-stateless.entry-slG667hl.js.map +1 -0
- package/dist/assets/{kol-tabs.entry-4stJU6kl.js → kol-tabs.entry-CNjJ5EQI.js} +14 -6
- package/dist/assets/kol-tabs.entry-CNjJ5EQI.js.map +1 -0
- package/dist/assets/{kol-textarea.entry-CXw-lCeh.js → kol-textarea.entry-CobQF5Y0.js} +12 -4
- package/dist/assets/kol-textarea.entry-CobQF5Y0.js.map +1 -0
- package/dist/assets/{kol-toast-container.entry-5c_itYcK.js → kol-toast-container.entry-CBED4DEQ.js} +14 -6
- package/dist/assets/kol-toast-container.entry-CBED4DEQ.js.map +1 -0
- package/dist/assets/{kol-toolbar.entry-mXZLT4Ll.js → kol-toolbar.entry-B9qkv7rv.js} +13 -5
- package/dist/assets/kol-toolbar.entry-B9qkv7rv.js.map +1 -0
- package/dist/assets/{kol-tooltip-wc.entry-DEDz5_8G.js → kol-tooltip-wc.entry-DhVvwNGR.js} +2 -2
- package/dist/assets/{kol-tooltip-wc.entry-DEDz5_8G.js.map → kol-tooltip-wc.entry-DhVvwNGR.js.map} +1 -1
- package/dist/assets/{kol-tree-item-wc.entry-D3MtzjrC.js → kol-tree-item-wc.entry-Bt36le1_.js} +2 -2
- package/dist/assets/{kol-tree-item-wc.entry-D3MtzjrC.js.map → kol-tree-item-wc.entry-Bt36le1_.js.map} +1 -1
- package/dist/assets/{kol-tree-item.entry-CRjk62QV.js → kol-tree-item.entry-CZ7-gsNS.js} +12 -4
- package/dist/assets/kol-tree-item.entry-CZ7-gsNS.js.map +1 -0
- package/dist/assets/{kol-tree-wc.entry-CR8_TaVA.js → kol-tree-wc.entry-DYQK0SrT.js} +2 -2
- package/dist/assets/{kol-tree-wc.entry-CR8_TaVA.js.map → kol-tree-wc.entry-DYQK0SrT.js.map} +1 -1
- package/dist/assets/{kol-tree.entry-s_SCM6fF.js → kol-tree.entry-DLSeVDUB.js} +12 -4
- package/dist/assets/kol-tree.entry-DLSeVDUB.js.map +1 -0
- package/dist/assets/{kol-version.entry-C8CaHDjL.js → kol-version.entry-DEjko3U5.js} +12 -4
- package/dist/assets/kol-version.entry-DEjko3U5.js.map +1 -0
- package/dist/assets/{label-CdtNxOKu-BgP05vXh.js → label-CdtNxOKu-CLyKncMr.js} +2 -2
- package/dist/assets/{label-CdtNxOKu-BgP05vXh.js.map → label-CdtNxOKu-CLyKncMr.js.map} +1 -1
- package/dist/assets/{link-variant-H9yefO89-z_KqubcM.js → link-variant-H9yefO89-DPQ3bWDz.js} +2 -2
- package/dist/assets/{link-variant-H9yefO89-z_KqubcM.js.map → link-variant-H9yefO89-DPQ3bWDz.js.map} +1 -1
- package/dist/assets/{markdown-DL-PkOqb-CqqGVzr6.js → markdown-DL-PkOqb-CCXm9EQF.js} +2 -2
- package/dist/assets/{markdown-DL-PkOqb-CqqGVzr6.js.map → markdown-DL-PkOqb-CCXm9EQF.js.map} +1 -1
- package/dist/assets/{max-length-behavior-BmNWss6T-CVMdbfRd.js → max-length-behavior-BmNWss6T-a26YboAW.js} +2 -2
- package/dist/assets/{max-length-behavior-BmNWss6T-CVMdbfRd.js.map → max-length-behavior-BmNWss6T-a26YboAW.js.map} +1 -1
- package/dist/assets/{multiple-bcm5IaCN-BpUmLrqW.js → multiple-bcm5IaCN-CQvH408s.js} +2 -2
- package/dist/assets/{multiple-bcm5IaCN-BpUmLrqW.js.map → multiple-bcm5IaCN-CQvH408s.js.map} +1 -1
- package/dist/assets/{open-D9q98v46-B8F38PrN.js → open-D9q98v46-Bi0cI_u1.js} +2 -2
- package/dist/assets/{open-D9q98v46-B8F38PrN.js.map → open-D9q98v46-Bi0cI_u1.js.map} +1 -1
- package/dist/assets/{orientation-5kQWqijN-C_m_sqJh.js → orientation-5kQWqijN-D3x3Zt8G.js} +2 -2
- package/dist/assets/{orientation-5kQWqijN-C_m_sqJh.js.map → orientation-5kQWqijN-D3x3Zt8G.js.map} +1 -1
- package/dist/assets/{placeholder-6URRds0_-DWDJBUlt.js → placeholder-6URRds0_-CnESfv0b.js} +2 -2
- package/dist/assets/{placeholder-6URRds0_-DWDJBUlt.js.map → placeholder-6URRds0_-CnESfv0b.js.map} +1 -1
- package/dist/assets/read-only-CcRldJ9w-B6Kca91U.js +4 -0
- package/dist/assets/{read-only-CcRldJ9w-C2Qe6n6h.js.map → read-only-CcRldJ9w-B6Kca91U.js.map} +1 -1
- package/dist/assets/required-G86n77y0-BPjPpx0R.js +4 -0
- package/dist/assets/{required-G86n77y0-D5tQZzju.js.map → required-G86n77y0-BPjPpx0R.js.map} +1 -1
- package/dist/assets/{rows-P4l3PNiA-C50r7KDN.js → rows-P4l3PNiA-DsCUJBMf.js} +2 -2
- package/dist/assets/{rows-P4l3PNiA-C50r7KDN.js.map → rows-P4l3PNiA-DsCUJBMf.js.map} +1 -1
- package/dist/assets/{show-DsV_Vx8g-CV2f-OPT.js → show-DsV_Vx8g-D5WXnE_H.js} +2 -2
- package/dist/assets/{show-DsV_Vx8g-CV2f-OPT.js.map → show-DsV_Vx8g-D5WXnE_H.js.map} +1 -1
- package/dist/assets/{spell-check-DIsLAYgk-BDhBYHyY.js → spell-check-DIsLAYgk-D8L_UizA.js} +2 -2
- package/dist/assets/{spell-check-DIsLAYgk-BDhBYHyY.js.map → spell-check-DIsLAYgk-D8L_UizA.js.map} +1 -1
- package/dist/assets/{suggestions-DfF4lcNG-BHCZ4xO3.js → suggestions-DfF4lcNG-BF46R73u.js} +2 -2
- package/dist/assets/{suggestions-DfF4lcNG-BHCZ4xO3.js.map → suggestions-DfF4lcNG-BF46R73u.js.map} +1 -1
- package/dist/assets/{table-settings-DSZObo-2-DH-Dknfr.js → table-settings-DSZObo-2-B5g_ueEq.js} +2 -2
- package/dist/assets/{table-settings-DSZObo-2-DH-Dknfr.js.map → table-settings-DSZObo-2-B5g_ueEq.js.map} +1 -1
- package/dist/assets/{test-component.entry-y5EJip5J.js → test-component.entry-3vmOnUnD.js} +2 -2
- package/dist/assets/{test-component.entry-y5EJip5J.js.map → test-component.entry-3vmOnUnD.js.map} +1 -1
- package/dist/assets/tooltip-align-_VI7LehI-BA2gIX1h.js +4 -0
- package/dist/assets/{tooltip-align-_VI7LehI-twrDw5DR.js.map → tooltip-align-_VI7LehI-BA2gIX1h.js.map} +1 -1
- package/dist/assets/{unique-nav-labels-C_NhdgGz-CJ_GKjBg.js → unique-nav-labels-C_NhdgGz-CqaqLCcO.js} +2 -2
- package/dist/assets/{unique-nav-labels-C_NhdgGz-CJ_GKjBg.js.map → unique-nav-labels-C_NhdgGz-CqaqLCcO.js.map} +1 -1
- package/dist/assets/{validation-CW_RXPSn-Dm95zcnn.js → validation-CW_RXPSn-DvLHqxJ5.js} +2 -2
- package/dist/assets/{validation-CW_RXPSn-Dm95zcnn.js.map → validation-CW_RXPSn-DvLHqxJ5.js.map} +1 -1
- package/dist/assets/{validation-DoIjmu3L-BY8kKKvI.js → validation-DoIjmu3L-NRd8OjzP.js} +2 -2
- package/dist/assets/{validation-DoIjmu3L-BY8kKKvI.js.map → validation-DoIjmu3L-NRd8OjzP.js.map} +1 -1
- package/dist/index.html +1 -1
- package/package.json +23 -23
- package/src/components/button-link/icons.tsx +2 -1
- package/src/components/link/basic.tsx +3 -6
- package/src/components/table/stateless-with-selection.tsx +10 -8
- package/src/components/table/stateless-with-single-selection.tsx +10 -8
- package/dist/assets/has-closer-BBMh8HY3-D6JHMwHg.js +0 -4
- package/dist/assets/image-source-RWPv7frZ-D5Uo7XSp.js +0 -4
- package/dist/assets/index-BvWOSbaR.js +0 -14095
- package/dist/assets/index-BvWOSbaR.js.map +0 -1
- package/dist/assets/kol-abbr.entry-BOQUk9ml.js.map +0 -1
- package/dist/assets/kol-accordion.entry-BPBr-GDl.js.map +0 -1
- package/dist/assets/kol-alert.entry-CCHuxOJN.js.map +0 -1
- package/dist/assets/kol-avatar.entry-CX6KcZID.js.map +0 -1
- package/dist/assets/kol-badge.entry-DELXn1iU.js.map +0 -1
- package/dist/assets/kol-breadcrumb.entry-yPla1KmT.js.map +0 -1
- package/dist/assets/kol-button-link.entry-BZTjr2mF.js.map +0 -1
- package/dist/assets/kol-button.entry-Dy9cy-af.js.map +0 -1
- package/dist/assets/kol-card.entry-CXmAn44D.js.map +0 -1
- package/dist/assets/kol-combobox.entry-BJ4a1FfW.js.map +0 -1
- package/dist/assets/kol-details.entry-CO73BBWu.js.map +0 -1
- package/dist/assets/kol-drawer.entry-DYgBQX7H.js.map +0 -1
- package/dist/assets/kol-form.entry-PDiVjuXV.js.map +0 -1
- package/dist/assets/kol-heading.entry-B8k5gIIn.js.map +0 -1
- package/dist/assets/kol-image.entry-BeDw1Y5m.js.map +0 -1
- package/dist/assets/kol-input-checkbox.entry-jYzRlCJQ.js.map +0 -1
- package/dist/assets/kol-input-color.entry-DkzzlWN2.js.map +0 -1
- package/dist/assets/kol-input-date.entry-D9P0C3QF.js.map +0 -1
- package/dist/assets/kol-input-email.entry-TO6O_yoQ.js.map +0 -1
- package/dist/assets/kol-input-file.entry-6q0RvDtB.js.map +0 -1
- package/dist/assets/kol-input-number.entry-ChBm2jsE.js.map +0 -1
- package/dist/assets/kol-input-password.entry-BKBZNnTD.js.map +0 -1
- package/dist/assets/kol-input-radio.entry-XZKN8skm.js.map +0 -1
- package/dist/assets/kol-input-range.entry-D9W7tUnK.js.map +0 -1
- package/dist/assets/kol-input-text.entry-DSUdIfVX.js.map +0 -1
- package/dist/assets/kol-kolibri.entry-I9nHpD6z.js.map +0 -1
- package/dist/assets/kol-link-button.entry-CsihdhEy.js.map +0 -1
- package/dist/assets/kol-link.entry-B9Ihan-K.js.map +0 -1
- package/dist/assets/kol-modal.entry-Dnmj60T9.js.map +0 -1
- package/dist/assets/kol-nav.entry-CNIensHT.js.map +0 -1
- package/dist/assets/kol-pagination.entry-Cmov7NSr.js.map +0 -1
- package/dist/assets/kol-popover-button.entry-UytQgKbD.js.map +0 -1
- package/dist/assets/kol-progress.entry-CaMrVgf9.js.map +0 -1
- package/dist/assets/kol-quote.entry-CXQugIgm.js.map +0 -1
- package/dist/assets/kol-select.entry-BuG0OMQF.js.map +0 -1
- package/dist/assets/kol-single-select.entry-CufkmSnc.js.map +0 -1
- package/dist/assets/kol-skip-nav.entry-BC_RqrlA.js.map +0 -1
- package/dist/assets/kol-spin.entry-D_n0RjJ1.js.map +0 -1
- package/dist/assets/kol-split-button.entry-BzL2PZ5L.js.map +0 -1
- package/dist/assets/kol-table-stateful.entry-qcog1Esv.js.map +0 -1
- package/dist/assets/kol-table-stateless-wc.entry-Czd5yOZc.js +0 -4
- package/dist/assets/kol-table-stateless.entry-BEhPeAso.js.map +0 -1
- package/dist/assets/kol-tabs.entry-4stJU6kl.js.map +0 -1
- package/dist/assets/kol-textarea.entry-CXw-lCeh.js.map +0 -1
- package/dist/assets/kol-toast-container.entry-5c_itYcK.js.map +0 -1
- package/dist/assets/kol-toolbar.entry-mXZLT4Ll.js.map +0 -1
- package/dist/assets/kol-tree-item.entry-CRjk62QV.js.map +0 -1
- package/dist/assets/kol-tree.entry-s_SCM6fF.js.map +0 -1
- package/dist/assets/kol-version.entry-C8CaHDjL.js.map +0 -1
- package/dist/assets/read-only-CcRldJ9w-C2Qe6n6h.js +0 -4
- package/dist/assets/required-G86n77y0-D5tQZzju.js +0 -4
- package/dist/assets/tooltip-align-_VI7LehI-twrDw5DR.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{h as o,r as l,g as s,n as r}from"./index-
|
|
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-BvWOSbaR.js";import{_ as d}from"
|
|
|
19
19
|
@layer kol-a11y {
|
|
20
20
|
:host {
|
|
21
21
|
/*
|
|
22
|
-
|
|
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-BvWOSbaR.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-BvWOSbaR.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-BvWOSbaR.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-
|
|
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","FormF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B,QAASD,CACb"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{h as d,r as g,u as y,g as v,w as u,s as
|
|
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"],
|
|
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-BvWOSbaR.js";impor
|
|
|
19
19
|
@layer kol-a11y {
|
|
20
20
|
:host {
|
|
21
21
|
/*
|
|
22
|
-
|
|
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-BvWOSbaR.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-BvWOSbaR.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-BvWOSbaR.js";impor
|
|
|
309
317
|
.kol-input:focus {
|
|
310
318
|
outline: none;
|
|
311
319
|
}
|
|
312
|
-
|
|
313
|
-
|
|
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,EAAGI,EAAoB,iBAAiBJ,EAAO,KAAK,UAAU,MAAO,KAAK,UAAU,KAAK,EAAG,CAChR,MAAO,CACH,WAAaA,GAAU,CACf,OAAOA,GAAU,UAAYS,GAC7BA,EAAWT,CAAK,CAExB,CACpB,CACA,CAAa,EAEL,KAAK,UAAYE,CACrB,CACA,qBAAqBF,EAAO,CACxBU,EAAqB,KAAK,UAAWV,CAAK,CAC9C,CACA,oBAAoBA,EAAO,CACvBW,EAAoB,KAAK,UAA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MAAM,EACxC,KAAK,SAAW,KAAK,WAAa,GAClC,KAAK,WAAW,kBAAiB,EACjC,KAAK,MAAM,UAAY,CAAC,CAAC,KAAK,MAAM,OACpC,KAAK,WAAW,uBAAwB8B,GAAO,KAAK,MAAM,UAAY,CAAC,CAACA,CAAE,CAC9E,CACA,WAAW,gBAAiB,CAAE,MAAO,EAAM,CAC3C,IAAI,MAAO,CAAE,OAAOmB,EAAW,IAAI,CAAG,CACtC,WAAW,UAAW,CAAE,MAAO,CAC3B,WAAc,CAAC,mBAAmB,EAClC,cAAiB,CAAC,sBAAsB,EACxC,UAAa,CAAC,kBAAkB,EAChC,SAAY,CAAC,iBAAiB,EAC9B,WAAc,CAAC,mBAAmB,EAClC,MAAS,CAAC,cAAc,EACxB,OAAU,CAAC,eAAe,EAC1B,IAAO,CAAC,YAAY,EACpB,OAAU,CAAC,eAAe,EAC1B,KAAQ,CAAC,aAAa,EACtB,KAAQ,CAAC,aAAa,EACtB,KAAQ,CAAC,aAAa,EACtB,MAAS,CAAC,cAAc,EACxB,IAAO,CAAC,YAAY,EACpB,UAAa,CAAC,kBAAkB,EAChC,UAAa,CAAC,kBAAkB,EAChC,UAAa,CAAC,kBAAkB,EAChC,aAAgB,CAAC,qBAAqB,EACtC,aAAgB,CAAC,qBAAqB,EACtC,MAAS,CAAC,cAAc,EACxB,qBAAwB,CAAC,6BAA6B,EACtD,SAAY,CAAC,iBAAiB,EAC9B,MAAS,CAAC,cAAc,EACxB,OAAU,CAAC,eAAe,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-
|
|
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-BvWOSbaR.js";import{c as r}from"./clsx-
|
|
|
19
19
|
@layer kol-a11y {
|
|
20
20
|
:host {
|
|
21
21
|
/*
|
|
22
|
-
|
|
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-BvWOSbaR.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-BvWOSbaR.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-BvWOSbaR.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-
|
|
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,EAA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B,EAChC,SAAY,CAAC,iBAAiB,EAC9B,WAAc,CAAC,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-
|
|
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-BvWOSbaR.js";import{c as
|
|
|
19
19
|
@layer kol-a11y {
|
|
20
20
|
:host {
|
|
21
21
|
/*
|
|
22
|
-
|
|
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-BvWOSbaR.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-BvWOSbaR.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-BvWOSbaR.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-
|
|
353
|
+
//# sourceMappingURL=kol-input-file.entry-DIgSc1fg.js.map
|