@public-ui/sample-react 3.0.1 → 3.0.2-6ae0104cda0b7b19a5b0d6bbc5f990b9fe544fa0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -2
- package/dist/assets/Alert-c6ac1427-DOfUkHaF.js +4 -0
- package/dist/assets/Alert-c6ac1427-DOfUkHaF.js.map +1 -0
- package/dist/assets/{Collapsible-af548d40-C9OC7Imx.js → Collapsible-7be44a00-Vua4x5sY.js} +2 -2
- package/dist/assets/{Collapsible-af548d40-C9OC7Imx.js.map → Collapsible-7be44a00-Vua4x5sY.js.map} +1 -1
- package/dist/assets/{CustomSuggestionsOptionsGroup-dcff90e4-DCHmbMW6.js → CustomSuggestionsOptionsGroup-cdea277e-DtoT6Jun.js} +2 -2
- package/dist/assets/{CustomSuggestionsOptionsGroup-dcff90e4-DCHmbMW6.js.map → CustomSuggestionsOptionsGroup-cdea277e-DtoT6Jun.js.map} +1 -1
- package/dist/assets/{FieldControlStateWrapper-7dba1400-6gWpkqcY.js → FieldControlStateWrapper-6c17f96e-BZsAZmNU.js} +2 -2
- package/dist/assets/{FieldControlStateWrapper-7dba1400-6gWpkqcY.js.map → FieldControlStateWrapper-6c17f96e-BZsAZmNU.js.map} +1 -1
- package/dist/assets/{Heading-733c8dda-CDt2HwZG.js → Heading-31a470a8-xZ2htjK-.js} +2 -2
- package/dist/assets/{Heading-733c8dda-CDt2HwZG.js.map → Heading-31a470a8-xZ2htjK-.js.map} +1 -1
- package/dist/assets/{Icon-446dff9e-BcrAHzKE.js → Icon-e36657fc--rOM4tlI.js} +2 -2
- package/dist/assets/{Icon-446dff9e-BcrAHzKE.js.map → Icon-e36657fc--rOM4tlI.js.map} +1 -1
- package/dist/assets/{Input-8502a991-B5vCSnGc.js → Input-b352cf7a-BVqPCCYM.js} +2 -2
- package/dist/assets/{Input-8502a991-B5vCSnGc.js.map → Input-b352cf7a-BVqPCCYM.js.map} +1 -1
- package/dist/assets/{InputStateWrapper-9b8419a8-BkOGpKVZ.js → InputStateWrapper-38536b7a-BrxwLyBV.js} +2 -2
- package/dist/assets/{InputStateWrapper-9b8419a8-BkOGpKVZ.js.map → InputStateWrapper-38536b7a-BrxwLyBV.js.map} +1 -1
- package/dist/assets/{InternalUnderlinedBadgeText-781ef373-z8Yk16ZJ.js → InternalUnderlinedBadgeText-b1330190-CrZl4qii.js} +2 -2
- package/dist/assets/{InternalUnderlinedBadgeText-781ef373-z8Yk16ZJ.js.map → InternalUnderlinedBadgeText-b1330190-CrZl4qii.js.map} +1 -1
- package/dist/assets/{Span-d15a3ea1-DAmDMPtp.js → Span-88b22574-D3JlD8if.js} +3 -3
- package/dist/assets/{Span-d15a3ea1-DAmDMPtp.js.map → Span-88b22574-D3JlD8if.js.map} +1 -1
- package/dist/assets/{access-and-short-key-f743a5c4-PaKpXIXk.js → access-and-short-key-f743a5c4-iouwab3k.js} +2 -2
- package/dist/assets/{access-and-short-key-f743a5c4-PaKpXIXk.js.map → access-and-short-key-f743a5c4-iouwab3k.js.map} +1 -1
- package/dist/assets/{align-d2572387-dyUBsp20.js → align-d2572387-DI9nOt4Y.js} +2 -2
- package/dist/assets/{align-d2572387-dyUBsp20.js.map → align-d2572387-DI9nOt4Y.js.map} +1 -1
- package/dist/assets/{align-floating-elements-526ce555-CeyYoDBg.js → align-floating-elements-526ce555-C-ErQpJj.js} +3 -3
- package/dist/assets/{align-floating-elements-526ce555-CeyYoDBg.js.map → align-floating-elements-526ce555-C-ErQpJj.js.map} +1 -1
- package/dist/assets/{associated.controller-92af2554-ySRR11sA.js → associated.controller-22684481-jJ8t48t4.js} +2 -2
- package/dist/assets/{associated.controller-92af2554-ySRR11sA.js.map → associated.controller-22684481-jJ8t48t4.js.map} +1 -1
- package/dist/assets/{color-1228dab7-PQXYTAgi.js → color-1228dab7-DVtaQVOY.js} +3 -3
- package/dist/assets/{color-1228dab7-PQXYTAgi.js.map → color-1228dab7-DVtaQVOY.js.map} +1 -1
- package/dist/assets/{controller-f5a335ce-1uGmRrWg.js → controller-7a002c8f-DFOQfk1N.js} +2 -2
- package/dist/assets/{controller-f5a335ce-1uGmRrWg.js.map → controller-7a002c8f-DFOQfk1N.js.map} +1 -1
- package/dist/assets/{controller-ce246aad-CctCtSGY.js → controller-8b5dbe81-M5KQSfGS.js} +3 -3
- package/dist/assets/{controller-ce246aad-CctCtSGY.js.map → controller-8b5dbe81-M5KQSfGS.js.map} +1 -1
- package/dist/assets/{controller-912bda08-ChkXnEpJ.js → controller-ac40e13c-DBZm65Tm.js} +2 -2
- package/dist/assets/{controller-912bda08-ChkXnEpJ.js.map → controller-ac40e13c-DBZm65Tm.js.map} +1 -1
- package/dist/assets/{controller-91a4c3ba-DXJ7IHeG.js → controller-cf01f031-D7lkfdMH.js} +3 -3
- package/dist/assets/{controller-91a4c3ba-DXJ7IHeG.js.map → controller-cf01f031-D7lkfdMH.js.map} +1 -1
- package/dist/assets/{controller-icon-de12de48-XggCpPzn.js → controller-icon-0d71a8a2-CJHcZTLy.js} +2 -2
- package/dist/assets/{controller-icon-de12de48-XggCpPzn.js.map → controller-icon-0d71a8a2-CJHcZTLy.js.map} +1 -1
- package/dist/assets/{custom-class-d73b81b1-BxjDifJi.js → custom-class-d73b81b1-BmhegLj3.js} +2 -2
- package/dist/assets/{custom-class-d73b81b1-BxjDifJi.js.map → custom-class-d73b81b1-BmhegLj3.js.map} +1 -1
- package/dist/assets/{dev.utils-cb61837d-CUfu0P_a.js → dev.utils-ffecab2f-B6ua6rhn.js} +2 -2
- package/dist/assets/{dev.utils-cb61837d-CUfu0P_a.js.map → dev.utils-ffecab2f-B6ua6rhn.js.map} +1 -1
- package/dist/assets/{devtools-90d0e710-BnLwwmJc.js → devtools-a4e8658c-CJfmGy3d.js} +2 -2
- package/dist/assets/{devtools-90d0e710-BnLwwmJc.js.map → devtools-a4e8658c-CJfmGy3d.js.map} +1 -1
- package/dist/assets/disabled-e1038f54-4wrcSfjB.js +4 -0
- package/dist/assets/{disabled-e1038f54-DFH671nm.js.map → disabled-e1038f54-4wrcSfjB.js.map} +1 -1
- package/dist/assets/{getRenderStates-c4b5c6cb-C2f3fQmN.js → getRenderStates-c4bde254-CYVR9JvL.js} +3 -3
- package/dist/assets/{getRenderStates-c4b5c6cb-C2f3fQmN.js.map → getRenderStates-c4bde254-CYVR9JvL.js.map} +1 -1
- package/dist/assets/has-closer-798e8f4d-Bye-nyIY.js +4 -0
- package/dist/assets/{has-closer-798e8f4d-DXaUJkZu.js.map → has-closer-798e8f4d-Bye-nyIY.js.map} +1 -1
- package/dist/assets/{has-counter-3fc44829-2rR8k2qO.js → has-counter-3fc44829-CCRydB93.js} +2 -2
- package/dist/assets/{has-counter-3fc44829-2rR8k2qO.js.map → has-counter-3fc44829-CCRydB93.js.map} +1 -1
- package/dist/assets/hide-label-8b3a8709-nXBnK-Oy.js +4 -0
- package/dist/assets/{hide-label-8b3a8709-CWVFtS7m.js.map → hide-label-8b3a8709-nXBnK-Oy.js.map} +1 -1
- package/dist/assets/{href-d9ccbbdf-_4F0phpz.js → href-d9ccbbdf-CcijbtoR.js} +2 -2
- package/dist/assets/{href-d9ccbbdf-_4F0phpz.js.map → href-d9ccbbdf-CcijbtoR.js.map} +1 -1
- package/dist/assets/{i18n-260f0fe9-Dp1L11gL.js → i18n-260f0fe9-CwpuaVcz.js} +2 -2
- package/dist/assets/{i18n-260f0fe9-Dp1L11gL.js.map → i18n-260f0fe9-CwpuaVcz.js.map} +1 -1
- package/dist/assets/{icons-a9c52ed8-BRrVRDjm.js → icons-a9c52ed8-D9SonY16.js} +2 -2
- package/dist/assets/{icons-a9c52ed8-BRrVRDjm.js.map → icons-a9c52ed8-D9SonY16.js.map} +1 -1
- package/dist/assets/image-source-8079f8a5-BZ3KT3RY.js +4 -0
- package/dist/assets/{image-source-8079f8a5-DK3CfrwO.js.map → image-source-8079f8a5-BZ3KT3RY.js.map} +1 -1
- package/dist/assets/{index-DTvHetS0.css → index-B9gfbckw.css} +1 -1
- package/dist/assets/{index-DfN2w0z5.js → index-BxGEzp9g.js} +187 -165
- package/dist/assets/index-BxGEzp9g.js.map +1 -0
- package/dist/assets/{kol-abbr.entry-ChYkdqaF.js → kol-abbr.entry-Bolm0NSt.js} +2 -2
- package/dist/assets/{kol-abbr.entry-ChYkdqaF.js.map → kol-abbr.entry-Bolm0NSt.js.map} +1 -1
- package/dist/assets/{kol-accordion.entry-C0bcfGjt.js → kol-accordion.entry-NoLwBLXC.js} +2 -2
- package/dist/assets/{kol-accordion.entry-C0bcfGjt.js.map → kol-accordion.entry-NoLwBLXC.js.map} +1 -1
- package/dist/assets/{kol-alert-wc.entry-CytWkxse.js → kol-alert-wc.entry-CbxVql6I.js} +3 -3
- package/dist/assets/{kol-alert-wc.entry-CytWkxse.js.map → kol-alert-wc.entry-CbxVql6I.js.map} +1 -1
- package/dist/assets/{kol-alert.entry-DxFbkzK6.js → kol-alert.entry-oMLt3M6A.js} +2 -2
- package/dist/assets/{kol-alert.entry-DxFbkzK6.js.map → kol-alert.entry-oMLt3M6A.js.map} +1 -1
- package/dist/assets/{kol-avatar-wc.entry-i5Uo3skg.js → kol-avatar-wc.entry-D0nQClaJ.js} +2 -2
- package/dist/assets/{kol-avatar-wc.entry-i5Uo3skg.js.map → kol-avatar-wc.entry-D0nQClaJ.js.map} +1 -1
- package/dist/assets/{kol-avatar.entry-BX9Qo7mT.js → kol-avatar.entry-CgmrnpAn.js} +2 -2
- package/dist/assets/{kol-avatar.entry-BX9Qo7mT.js.map → kol-avatar.entry-CgmrnpAn.js.map} +1 -1
- package/dist/assets/{kol-badge.entry-DAVYOAd9.js → kol-badge.entry-Car2yz6I.js} +2 -2
- package/dist/assets/{kol-badge.entry-DAVYOAd9.js.map → kol-badge.entry-Car2yz6I.js.map} +1 -1
- package/dist/assets/{kol-breadcrumb.entry-CrY1sudS.js → kol-breadcrumb.entry-BbdxiKPe.js} +2 -2
- package/dist/assets/{kol-breadcrumb.entry-CrY1sudS.js.map → kol-breadcrumb.entry-BbdxiKPe.js.map} +1 -1
- package/dist/assets/{kol-button-link.entry-Cn4H515g.js → kol-button-link.entry-BKKTNDbj.js} +2 -2
- package/dist/assets/{kol-button-link.entry-Cn4H515g.js.map → kol-button-link.entry-BKKTNDbj.js.map} +1 -1
- package/dist/assets/kol-button-wc.entry-DH--JlTs.js +4 -0
- package/dist/assets/kol-button-wc.entry-DH--JlTs.js.map +1 -0
- package/dist/assets/{kol-button.entry-Ctf2BosK.js → kol-button.entry-CKqITeIp.js} +2 -2
- package/dist/assets/{kol-button.entry-Ctf2BosK.js.map → kol-button.entry-CKqITeIp.js.map} +1 -1
- package/dist/assets/kol-card-wc.entry-DWClffrm.js +4 -0
- package/dist/assets/kol-card-wc.entry-DWClffrm.js.map +1 -0
- package/dist/assets/kol-card.entry-DPlr_u2l.js +229 -0
- package/dist/assets/kol-card.entry-DPlr_u2l.js.map +1 -0
- package/dist/assets/{kol-combobox.entry-D9ztS1kW.js → kol-combobox.entry-DR0CYgcm.js} +4 -4
- package/dist/assets/{kol-combobox.entry-D9ztS1kW.js.map → kol-combobox.entry-DR0CYgcm.js.map} +1 -1
- package/dist/assets/{kol-details.entry-DNHnfNrr.js → kol-details.entry-GW2BQsHQ.js} +3 -3
- package/dist/assets/{kol-details.entry-DNHnfNrr.js.map → kol-details.entry-GW2BQsHQ.js.map} +1 -1
- package/dist/assets/{kol-card.entry-D7aAy41H.js → kol-drawer.entry-DCNITre-.js} +54 -4
- package/dist/assets/kol-drawer.entry-DCNITre-.js.map +1 -0
- package/dist/assets/{kol-form.entry-Dv8YnTBJ.js → kol-form.entry-B6wQPmvT.js} +3 -3
- package/dist/assets/{kol-form.entry-Dv8YnTBJ.js.map → kol-form.entry-B6wQPmvT.js.map} +1 -1
- package/dist/assets/{kol-heading.entry-CbCDq4fj.js → kol-heading.entry-Bh0LVZ8r.js} +3 -3
- package/dist/assets/{kol-heading.entry-CbCDq4fj.js.map → kol-heading.entry-Bh0LVZ8r.js.map} +1 -1
- package/dist/assets/{kol-icon.entry-BuogXxn0.js → kol-icon.entry-DDUeLFov.js} +8 -3
- package/dist/assets/{kol-icon.entry-BuogXxn0.js.map → kol-icon.entry-DDUeLFov.js.map} +1 -1
- package/dist/assets/{kol-image.entry-Di5B_H-G.js → kol-image.entry-D139KTNt.js} +4 -4
- package/dist/assets/kol-image.entry-D139KTNt.js.map +1 -0
- package/dist/assets/{kol-input-checkbox.entry-B6mwBKB-.js → kol-input-checkbox.entry-BTHRrX3e.js} +4 -4
- package/dist/assets/{kol-input-checkbox.entry-B6mwBKB-.js.map → kol-input-checkbox.entry-BTHRrX3e.js.map} +1 -1
- package/dist/assets/{kol-input-color.entry-CArvnkBF.js → kol-input-color.entry-CBuWOuNt.js} +3 -3
- package/dist/assets/{kol-input-color.entry-CArvnkBF.js.map → kol-input-color.entry-CBuWOuNt.js.map} +1 -1
- package/dist/assets/{kol-input-date.entry-8JPfheeh.js → kol-input-date.entry-B-P73Y2F.js} +3 -3
- package/dist/assets/{kol-input-date.entry-8JPfheeh.js.map → kol-input-date.entry-B-P73Y2F.js.map} +1 -1
- package/dist/assets/{kol-input-email.entry-BZRfVewN.js → kol-input-email.entry-BJq-PnKX.js} +4 -4
- package/dist/assets/{kol-input-email.entry-BZRfVewN.js.map → kol-input-email.entry-BJq-PnKX.js.map} +1 -1
- package/dist/assets/{kol-input-file.entry-wuMlsRRt.js → kol-input-file.entry-BEopF7uk.js} +3 -3
- package/dist/assets/{kol-input-file.entry-wuMlsRRt.js.map → kol-input-file.entry-BEopF7uk.js.map} +1 -1
- package/dist/assets/{kol-input-number.entry-CFfwf4kP.js → kol-input-number.entry-CLKym-3l.js} +3 -3
- package/dist/assets/{kol-input-number.entry-CFfwf4kP.js.map → kol-input-number.entry-CLKym-3l.js.map} +1 -1
- package/dist/assets/{kol-input-password.entry-CkQ2LgrT.js → kol-input-password.entry-1qJ7jmfb.js} +4 -4
- package/dist/assets/{kol-input-password.entry-CkQ2LgrT.js.map → kol-input-password.entry-1qJ7jmfb.js.map} +1 -1
- package/dist/assets/{kol-input-radio.entry-BwkfFugH.js → kol-input-radio.entry-DrwI6ZMB.js} +3 -3
- package/dist/assets/{kol-input-radio.entry-BwkfFugH.js.map → kol-input-radio.entry-DrwI6ZMB.js.map} +1 -1
- package/dist/assets/{kol-input-range.entry-C5t9Fhg5.js → kol-input-range.entry-CJXC3J9H.js} +4 -4
- package/dist/assets/{kol-input-range.entry-C5t9Fhg5.js.map → kol-input-range.entry-CJXC3J9H.js.map} +1 -1
- package/dist/assets/{kol-input-text.entry-1GpYaPrp.js → kol-input-text.entry-CY8L9IPH.js} +3 -3
- package/dist/assets/{kol-input-text.entry-1GpYaPrp.js.map → kol-input-text.entry-CY8L9IPH.js.map} +1 -1
- package/dist/assets/{kol-kolibri.entry-IwXdDJ2p.js → kol-kolibri.entry-BcwV7PIb.js} +3 -3
- package/dist/assets/{kol-kolibri.entry-IwXdDJ2p.js.map → kol-kolibri.entry-BcwV7PIb.js.map} +1 -1
- package/dist/assets/{kol-link-button.entry-DhMIjUhi.js → kol-link-button.entry-e6trlanR.js} +3 -3
- package/dist/assets/{kol-link-button.entry-DhMIjUhi.js.map → kol-link-button.entry-e6trlanR.js.map} +1 -1
- package/dist/assets/{kol-link-wc.entry-JahFjCst.js → kol-link-wc.entry-BPBco_9m.js} +3 -3
- package/dist/assets/{kol-link-wc.entry-JahFjCst.js.map → kol-link-wc.entry-BPBco_9m.js.map} +1 -1
- package/dist/assets/{kol-link.entry-DlyvSn-y.js → kol-link.entry-BUFKoQMT.js} +3 -3
- package/dist/assets/{kol-link.entry-DlyvSn-y.js.map → kol-link.entry-BUFKoQMT.js.map} +1 -1
- package/dist/assets/{kol-modal.entry-CNt61bc4.js → kol-modal.entry-Cyr5DKeA.js} +3 -3
- package/dist/assets/{kol-modal.entry-CNt61bc4.js.map → kol-modal.entry-Cyr5DKeA.js.map} +1 -1
- package/dist/assets/{kol-nav.entry-DBFPRhxg.js → kol-nav.entry-JD2qWkrz.js} +3 -3
- package/dist/assets/{kol-nav.entry-DBFPRhxg.js.map → kol-nav.entry-JD2qWkrz.js.map} +1 -1
- package/dist/assets/{kol-pagination.entry-rq7ubN_B.js → kol-pagination.entry-BI_mjf3q.js} +3 -3
- package/dist/assets/{kol-pagination.entry-rq7ubN_B.js.map → kol-pagination.entry-BI_mjf3q.js.map} +1 -1
- package/dist/assets/kol-popover-button-wc.entry-DIGauqmI.js +4 -0
- package/dist/assets/kol-popover-button-wc.entry-DIGauqmI.js.map +1 -0
- package/dist/assets/{kol-popover-button.entry-B20DN09O.js → kol-popover-button.entry-DCP1GoCg.js} +3 -3
- package/dist/assets/{kol-popover-button.entry-B20DN09O.js.map → kol-popover-button.entry-DCP1GoCg.js.map} +1 -1
- package/dist/assets/{kol-popover-wc.entry-4oEgJ6Qz.js → kol-popover-wc.entry-CXkKVW2d.js} +3 -3
- package/dist/assets/{kol-popover-wc.entry-4oEgJ6Qz.js.map → kol-popover-wc.entry-CXkKVW2d.js.map} +1 -1
- package/dist/assets/{kol-progress.entry-CpHERqWf.js → kol-progress.entry-CkhxJKsa.js} +3 -3
- package/dist/assets/{kol-progress.entry-CpHERqWf.js.map → kol-progress.entry-CkhxJKsa.js.map} +1 -1
- package/dist/assets/{kol-quote.entry-CrA8yiSU.js → kol-quote.entry-BIoA91Tr.js} +3 -3
- package/dist/assets/{kol-quote.entry-CrA8yiSU.js.map → kol-quote.entry-BIoA91Tr.js.map} +1 -1
- package/dist/assets/{kol-select.entry-jJve5uXx.js → kol-select.entry-DASgh1Xe.js} +4 -4
- package/dist/assets/{kol-select.entry-jJve5uXx.js.map → kol-select.entry-DASgh1Xe.js.map} +1 -1
- package/dist/assets/{kol-single-select.entry-DGYvKwRU.js → kol-single-select.entry-DegCl63J.js} +3 -3
- package/dist/assets/{kol-single-select.entry-DGYvKwRU.js.map → kol-single-select.entry-DegCl63J.js.map} +1 -1
- package/dist/assets/{kol-skip-nav.entry-CCrwQkwL.js → kol-skip-nav.entry-DwyWcCR4.js} +3 -3
- package/dist/assets/{kol-skip-nav.entry-CCrwQkwL.js.map → kol-skip-nav.entry-DwyWcCR4.js.map} +1 -1
- package/dist/assets/{kol-spin.entry-CMA-UdpG.js → kol-spin.entry-_1OKxYRN.js} +3 -3
- package/dist/assets/{kol-spin.entry-CMA-UdpG.js.map → kol-spin.entry-_1OKxYRN.js.map} +1 -1
- package/dist/assets/{kol-split-button.entry-C1QuFb6E.js → kol-split-button.entry-Bkfuv_xP.js} +3 -3
- package/dist/assets/{kol-split-button.entry-C1QuFb6E.js.map → kol-split-button.entry-Bkfuv_xP.js.map} +1 -1
- package/dist/assets/{kol-table-settings-wc.entry-C8ZlfiUm.js → kol-table-settings-wc.entry-CFUgvICA.js} +3 -3
- package/dist/assets/{kol-table-settings-wc.entry-C8ZlfiUm.js.map → kol-table-settings-wc.entry-CFUgvICA.js.map} +1 -1
- package/dist/assets/{kol-table-stateful.entry-CG5JRr9G.js → kol-table-stateful.entry-DmV6R2D_.js} +3 -3
- package/dist/assets/{kol-table-stateful.entry-CG5JRr9G.js.map → kol-table-stateful.entry-DmV6R2D_.js.map} +1 -1
- package/dist/assets/{kol-table-stateless-wc.entry-dsSZgwSc.js → kol-table-stateless-wc.entry-szSirmOC.js} +3 -3
- package/dist/assets/{kol-table-stateless-wc.entry-dsSZgwSc.js.map → kol-table-stateless-wc.entry-szSirmOC.js.map} +1 -1
- package/dist/assets/{kol-table-stateless.entry-CX_xh8Pg.js → kol-table-stateless.entry-V9E0aeig.js} +3 -3
- package/dist/assets/{kol-table-stateless.entry-CX_xh8Pg.js.map → kol-table-stateless.entry-V9E0aeig.js.map} +1 -1
- package/dist/assets/{kol-tabs.entry-CoNXsSBD.js → kol-tabs.entry-v7AG7Od0.js} +3 -3
- package/dist/assets/{kol-tabs.entry-CoNXsSBD.js.map → kol-tabs.entry-v7AG7Od0.js.map} +1 -1
- package/dist/assets/{kol-textarea.entry-DEi6gHS5.js → kol-textarea.entry-DFI96nB0.js} +3 -3
- package/dist/assets/{kol-textarea.entry-DEi6gHS5.js.map → kol-textarea.entry-DFI96nB0.js.map} +1 -1
- package/dist/assets/{kol-toast-container.entry-C4stYHqt.js → kol-toast-container.entry-D26dl9Na.js} +3 -3
- package/dist/assets/{kol-toast-container.entry-C4stYHqt.js.map → kol-toast-container.entry-D26dl9Na.js.map} +1 -1
- package/dist/assets/{kol-toolbar.entry-BwPrZVjg.js → kol-toolbar.entry--cPwOelv.js} +3 -3
- package/dist/assets/{kol-toolbar.entry-BwPrZVjg.js.map → kol-toolbar.entry--cPwOelv.js.map} +1 -1
- package/dist/assets/kol-tooltip-wc.entry-mX2sItm1.js +4 -0
- package/dist/assets/kol-tooltip-wc.entry-mX2sItm1.js.map +1 -0
- package/dist/assets/{kol-tree-item-wc.entry-7epozElt.js → kol-tree-item-wc.entry-BnsDO5G4.js} +3 -3
- package/dist/assets/{kol-tree-item-wc.entry-7epozElt.js.map → kol-tree-item-wc.entry-BnsDO5G4.js.map} +1 -1
- package/dist/assets/{kol-tree-item.entry-CatzZyv_.js → kol-tree-item.entry-BiO_MDuu.js} +4 -4
- package/dist/assets/{kol-tree-item.entry-CatzZyv_.js.map → kol-tree-item.entry-BiO_MDuu.js.map} +1 -1
- package/dist/assets/{kol-tree-wc.entry-Dzf8HdGF.js → kol-tree-wc.entry-BqTSZkHX.js} +3 -3
- package/dist/assets/{kol-tree-wc.entry-Dzf8HdGF.js.map → kol-tree-wc.entry-BqTSZkHX.js.map} +1 -1
- package/dist/assets/{kol-tree.entry-udXW6P8P.js → kol-tree.entry-ByHZJvRG.js} +3 -3
- package/dist/assets/{kol-tree.entry-udXW6P8P.js.map → kol-tree.entry-ByHZJvRG.js.map} +1 -1
- package/dist/assets/{kol-version.entry-DGKX2QPW.js → kol-version.entry-DetW64yz.js} +3 -3
- package/dist/assets/{kol-version.entry-DGKX2QPW.js.map → kol-version.entry-DetW64yz.js.map} +1 -1
- package/dist/assets/{label-bf9966d0-DwwEzCUj.js → label-bf9966d0-pCJpRuFg.js} +2 -2
- package/dist/assets/{label-bf9966d0-DwwEzCUj.js.map → label-bf9966d0-pCJpRuFg.js.map} +1 -1
- package/dist/assets/{link-variant-47605ebe-BSEZzVL2.js → link-variant-47605ebe-0e_wRIHE.js} +2 -2
- package/dist/assets/{link-variant-47605ebe-BSEZzVL2.js.map → link-variant-47605ebe-0e_wRIHE.js.map} +1 -1
- package/dist/assets/{open-385de2c9-B0Tz5-Ak.js → open-385de2c9-DTNDalEs.js} +2 -2
- package/dist/assets/{open-385de2c9-B0Tz5-Ak.js.map → open-385de2c9-DTNDalEs.js.map} +1 -1
- package/dist/assets/{orientation-409d844a-DE62Y6A5.js → orientation-409d844a-BuWPBQG6.js} +2 -2
- package/dist/assets/{orientation-409d844a-DE62Y6A5.js.map → orientation-409d844a-BuWPBQG6.js.map} +1 -1
- package/dist/assets/{rows-225b4f43-BDZo0oBX.js → rows-225b4f43-B09e0zQR.js} +2 -2
- package/dist/assets/{rows-225b4f43-BDZo0oBX.js.map → rows-225b4f43-B09e0zQR.js.map} +1 -1
- package/dist/assets/{show-fabfe6d7-BicnClu4.js → show-fabfe6d7-rZfDjDAg.js} +2 -2
- package/dist/assets/{show-fabfe6d7-BicnClu4.js.map → show-fabfe6d7-rZfDjDAg.js.map} +1 -1
- package/dist/assets/spell-check-5559a801-CEPGzlkS.js +4 -0
- package/dist/assets/{spell-check-5559a801-DxgUHaIH.js.map → spell-check-5559a801-CEPGzlkS.js.map} +1 -1
- package/dist/assets/{suggestions-198125b7-Hpe1IgIz.js → suggestions-198125b7-wniQEHUf.js} +2 -2
- package/dist/assets/{suggestions-198125b7-Hpe1IgIz.js.map → suggestions-198125b7-wniQEHUf.js.map} +1 -1
- package/dist/assets/{table-settings-c12356ed-BXDUmIkp.js → table-settings-c12356ed-D4V9jYmE.js} +3 -3
- package/dist/assets/{table-settings-c12356ed-BXDUmIkp.js.map → table-settings-c12356ed-D4V9jYmE.js.map} +1 -1
- package/dist/assets/{test-component.entry-82zlBLwW.js → test-component.entry-DKKgP7qk.js} +2 -2
- package/dist/assets/{test-component.entry-82zlBLwW.js.map → test-component.entry-DKKgP7qk.js.map} +1 -1
- package/dist/assets/tooltip-align-465a8590-Ci7UXASQ.js +4 -0
- package/dist/assets/{tooltip-align-465a8590-IESrC2qu.js.map → tooltip-align-465a8590-Ci7UXASQ.js.map} +1 -1
- package/dist/assets/{unique-nav-labels-e20db0b7-X1HP_pWC.js → unique-nav-labels-e20db0b7-RV5vUSWs.js} +2 -2
- package/dist/assets/{unique-nav-labels-e20db0b7-X1HP_pWC.js.map → unique-nav-labels-e20db0b7-RV5vUSWs.js.map} +1 -1
- package/dist/assets/{validation-152ea092-CiVygBjK.js → validation-152ea092-CgEo5ZRb.js} +2 -2
- package/dist/assets/{validation-152ea092-CiVygBjK.js.map → validation-152ea092-CgEo5ZRb.js.map} +1 -1
- package/dist/assets/{validation-9d549145-DSDUxF4W.js → validation-9d549145-Bc-7ITR2.js} +2 -2
- package/dist/assets/{validation-9d549145-DSDUxF4W.js.map → validation-9d549145-Bc-7ITR2.js.map} +1 -1
- package/dist/index.html +3 -3
- package/index.html +29 -0
- package/package.json +10 -16
- package/src/components/drawer/basic.tsx +25 -4
- package/src/react.main.tsx +1 -1
- package/tsconfig.json +2 -1
- package/{vite.config.js → vite.config.ts} +1 -2
- package/.eslintignore +0 -2
- package/.eslintrc.js +0 -34
- package/.gitignore +0 -41
- package/.prettierignore +0 -4
- package/build.mjs +0 -32
- package/dist/assets/Alert-112aec59-B-1TO_mK.js +0 -4
- package/dist/assets/Alert-112aec59-B-1TO_mK.js.map +0 -1
- package/dist/assets/disabled-e1038f54-DFH671nm.js +0 -4
- package/dist/assets/has-closer-798e8f4d-DXaUJkZu.js +0 -4
- package/dist/assets/hide-label-8b3a8709-CWVFtS7m.js +0 -4
- package/dist/assets/image-source-8079f8a5-DK3CfrwO.js +0 -4
- package/dist/assets/index-DfN2w0z5.js.map +0 -1
- package/dist/assets/kol-button-wc.entry-2zTnhpEg.js +0 -4
- package/dist/assets/kol-button-wc.entry-2zTnhpEg.js.map +0 -1
- package/dist/assets/kol-card.entry-D7aAy41H.js.map +0 -1
- package/dist/assets/kol-drawer.entry-BF2evHeq.js +0 -224
- package/dist/assets/kol-drawer.entry-BF2evHeq.js.map +0 -1
- package/dist/assets/kol-image.entry-Di5B_H-G.js.map +0 -1
- package/dist/assets/kol-popover-button-wc.entry-ClCIKCUi.js +0 -4
- package/dist/assets/kol-popover-button-wc.entry-ClCIKCUi.js.map +0 -1
- package/dist/assets/kol-tooltip-wc.entry-DAjjc1uf.js +0 -4
- package/dist/assets/kol-tooltip-wc.entry-DAjjc1uf.js.map +0 -1
- package/dist/assets/spell-check-5559a801-DxgUHaIH.js +0 -4
- package/dist/assets/tooltip-align-465a8590-IESrC2qu.js +0 -4
- package/prettier.config.js +0 -5
package/dist/assets/{kol-combobox.entry-D9ztS1kW.js.map → kol-combobox.entry-DR0CYgcm.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kol-combobox.entry-D9ztS1kW.js","sources":["../../../../components/dist/esm/kol-combobox.entry.js"],"sourcesContent":["/*!\n * KoliBri - The accessible HTML-Standard\n */\nimport { h, r as registerInstance, g as getElement } from './index-1ed13705.js';\nimport { c as clsx } from './clsx-09a06a12.js';\nimport { n as nonce } from './dev.utils-cb61837d.js';\nimport { F as FormFieldStateWrapper } from './getRenderStates-c4b5c6cb.js';\nimport { B as watchString, i as watchBoolean } from './index-ebe5a881.js';\nimport { I as InputIconController, a as InputContainerStateWrapperFc } from './controller-icon-de12de48.js';\nimport { v as validateSuggestions } from './suggestions-198125b7.js';\nimport { C as CustomSuggestionsToggleFc, a as CustomSuggestionsOptionsGroupFc, b as CustomSuggestionsOptionFc, g as getRenderStates } from './CustomSuggestionsOptionsGroup-dcff90e4.js';\nimport { I as InputStateWrapper } from './InputStateWrapper-9b8419a8.js';\nimport './events-bad0a075.js';\nimport './associated.controller-92af2554.js';\nimport './bootstrap-93c7a706.js';\nimport './component-names-7924d82a.js';\nimport './i18n-45224cc3.js';\nimport './access-and-short-key-f743a5c4.js';\nimport './tooltip-align-465a8590.js';\nimport './align-d2572387.js';\nimport './hide-label-8b3a8709.js';\nimport './label-bf9966d0.js';\nimport './tslib.es6-1173d062.js';\nimport './Alert-112aec59.js';\nimport './i18n-260f0fe9.js';\nimport './bem-e4c3a2e6.js';\nimport './browser-f629a56a.js';\nimport './Heading-733c8dda.js';\nimport './InternalUnderlinedBadgeText-781ef373.js';\nimport './isArray-7a60fa7f.js';\nimport './Icon-446dff9e.js';\nimport './isObject-ffcbbb76.js';\nimport './icons-a9c52ed8.js';\nimport './Input-8502a991.js';\n\nclass ComboboxController extends InputIconController {\n constructor(component, name, host) {\n super(component, name, host);\n this.component = component;\n }\n validatePlaceholder(value) {\n watchString(this.component, '_placeholder', value);\n }\n validateRequired(value) {\n watchBoolean(this.component, '_required', value);\n }\n validateSuggestions(value) {\n validateSuggestions(this.component, value);\n }\n validateValue(value) {\n watchString(this.component, '_value', value);\n }\n componentWillLoad() {\n super.componentWillLoad();\n this.validatePlaceholder(this.component._placeholder);\n this.validateRequired(this.component._required);\n this.validateSuggestions(this.component._suggestions);\n this.validateValue(this.component._value);\n }\n}\n\nconst defaultStyleCss = \"/*\\n * This file contains all rules for accessibility.\\n */\\n@layer kol-global {\\n :host {\\n /*\\n * Minimum size of interactive elements.\\n */\\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\\n /*\\n * No element should be used without a background and font color whose contrast ratio has\\n * not been checked. By initially setting the background color to white and the font color\\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\\n */\\n background-color: white;\\n color: black;\\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 * 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 * This rule enables the word dividing for all texts. That is important for high zoom levels.\\n */\\n word-break: break-word;\\n /*\\n * Word spacing is required for all texts.\\n */\\n word-spacing: inherit;\\n }\\n /*\\n * All interactive elements should have a minimum size of rem(44).\\n */\\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\\n /* option, */\\n /* select, */\\n /* textarea, */\\n [role=button],\\n button:not([role=link]),\\n .kol-input .input {\\n min-height: var(--a11y-min-size);\\n min-width: 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 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}\\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 clip: rect(0 0 0 0);\\n clip-path: inset(50%);\\n height: 1px;\\n overflow: hidden;\\n position: absolute;\\n white-space: nowrap;\\n width: 1px;\\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 border: none;\\n margin: 0;\\n padding: 0;\\n width: 100%;\\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 background-color: lightgray;\\n color: black;\\n }\\n}\\n@layer kol-global {\\n :host {\\n font-size: rem(16);\\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 }\\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 cursor: not-allowed;\\n opacity: 0.5;\\n outline: none;\\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 .kol-tooltip {\\n display: contents;\\n }\\n .kol-tooltip__floating {\\n animation-duration: 0.25s;\\n animation-iteration-count: 1;\\n animation-name: fadeInOpacity;\\n animation-timing-function: ease-in;\\n display: none;\\n position: fixed;\\n visibility: hidden;\\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\\n top: 0;\\n left: 0;\\n max-width: 90vw;\\n max-height: 90vh;\\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\\n width: var(--kol-tooltip-width);\\n }\\n .kol-tooltip__arrow {\\n background-color: #fff;\\n color: #000;\\n height: calc(10rem / var(--kolibri-root-font-size, 16));\\n position: absolute;\\n transform: rotate(45deg);\\n width: calc(10rem / var(--kolibri-root-font-size, 16));\\n z-index: 999;\\n }\\n .kol-tooltip__content {\\n background-color: #fff;\\n color: #000;\\n position: relative;\\n z-index: 1000;\\n }\\n @keyframes fadeInOpacity {\\n 0% {\\n opacity: 0;\\n }\\n 100% {\\n opacity: 1;\\n }\\n }\\n}\\n@layer kol-component {\\n .kol-alert {\\n display: grid;\\n }\\n .kol-alert__container {\\n place-items: center;\\n display: flex;\\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(1rem / var(--kolibri-root-font-size, 16));\\n }\\n}\\n@layer kol-component {\\n .kol-custom-suggestions-option {\\n cursor: pointer;\\n white-space: normal;\\n overflow-wrap: break-word;\\n word-wrap: break-word;\\n line-height: 1.5;\\n }\\n .kol-custom-suggestions-options-group--cursor-hidden .kol-custom-suggestions-option {\\n cursor: none !important;\\n }\\n}\\n@layer kol-component {\\n .kol-custom-suggestions-options-group {\\n display: block;\\n position: absolute;\\n list-style-type: none;\\n margin: 0;\\n padding: 0;\\n overflow-y: auto;\\n overflow-x: hidden;\\n z-index: 2;\\n background-color: white;\\n max-height: calc(250rem / var(--kolibri-root-font-size, 16));\\n }\\n}\\n@layer kol-component {\\n .kol-custom-suggestions-toggle {\\n align-items: center;\\n display: flex;\\n height: var(--a11y-min-size);\\n width: var(--a11y-min-size);\\n }\\n .kol-custom-suggestions-toggle:not(:disabled) {\\n cursor: pointer;\\n }\\n}\\n@layer kol-component {\\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}\\n@layer kol-component {\\n .kol-input-container {\\n align-items: center;\\n background-color: white;\\n display: grid;\\n grid-template-columns: 1fr;\\n min-height: var(--a11y-min-size);\\n min-width: var(--a11y-min-size);\\n width: 100%;\\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}\\n@layer kol-component {\\n .kol-input {\\n min-width: var(--a11y-min-size);\\n width: 100%;\\n }\\n .kol-input:focus {\\n outline: none;\\n }\\n}\";\nconst KolComboboxDefaultStyle0 = defaultStyleCss;\n\nconst KolCombobox = class {\n async getValue() {\n return this.state._value;\n }\n async kolFocus() {\n var _a;\n (_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();\n }\n selectOption(option) {\n var _a;\n this.controller.onFacade.onInput(new CustomEvent('input', { bubbles: true, detail: { name: this.state._name, value: option } }), true, option);\n this.controller.onFacade.onChange(new CustomEvent('change', { bubbles: true, detail: { name: this.state._name, value: option } }), option);\n this.controller.setFormAssociatedValue(option);\n this.state._value = option;\n (_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();\n }\n onInput(event) {\n const target = event.target;\n this.state._value = target.value;\n this._value = target.value;\n this.controller.onFacade.onInput(event);\n this.setFilteredSuggestionsByQuery(target.value);\n this._focusedOptionIndex = -1;\n }\n handleKeyDownDropdown(event) {\n if (event.key.length === 1 && /[a-z0-9]/i.test(event.key)) {\n this._isOpen = true;\n this.focusSuggestionStartingWith(event.key);\n }\n }\n setFilteredSuggestionsByQuery(query) {\n if (query.trim() === '') {\n this._filteredSuggestions = [...this._suggestions];\n }\n else {\n this._filteredSuggestions = Array.isArray(this._suggestions)\n ? this._suggestions.filter((option) => {\n return option.toLowerCase().includes(query.toLowerCase());\n })\n : this._filteredSuggestions;\n this._isOpen = this._filteredSuggestions && this._filteredSuggestions.length > 0 ? true : false;\n }\n }\n moveFocus(delta) {\n if (!this._filteredSuggestions) {\n return;\n }\n let newIndex = this._focusedOptionIndex + delta;\n if (newIndex >= this._filteredSuggestions.length) {\n newIndex = 0;\n }\n if (newIndex < 0) {\n newIndex = this._filteredSuggestions.length - 1;\n }\n this.focusOption(newIndex);\n }\n focusOption(index) {\n this._focusedOptionIndex = index;\n if (this.refSuggestions) {\n const optionElement = this.refSuggestions[index];\n optionElement === null || optionElement === void 0 ? void 0 : optionElement.focus();\n }\n }\n focusSuggestionStartingWith(char) {\n const charLowerCase = char.toLowerCase();\n const index = Array.isArray(this._filteredSuggestions) &&\n this._filteredSuggestions.length > 0 &&\n this._filteredSuggestions.findIndex((option) => option.toLowerCase().startsWith(charLowerCase));\n if (typeof index === 'number') {\n this.focusOption(index);\n }\n }\n getFormFieldProps() {\n return {\n state: this.state,\n class: clsx('kol-combobox', {\n 'has-value': this.state._hasValue,\n }),\n tooltipAlign: this._tooltipAlign,\n onClick: () => { var _a; return (_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus(); },\n alert: this.showAsAlert(),\n };\n }\n getInputProps() {\n const { ariaDescribedBy } = getRenderStates(this.state);\n return Object.assign(Object.assign({ ref: this.catchRef, state: this.state, class: 'kol-combobox__input', type: 'text', role: 'combobox', 'aria-autocomplete': 'both', 'aria-expanded': this._isOpen ? 'true' : 'false', 'aria-controls': 'listbox', 'aria-describedby': ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined, 'aria-label': this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, 'aria-labelledby': this.state._id, 'aria-activedescendant': this._isOpen && this._focusedOptionIndex >= 0 ? `option-${this._focusedOptionIndex}` : undefined, value: this.state._value, accessKey: this.state._accessKey, autocapitalize: 'off', autocorrect: 'off', disabled: this.state._disabled, customSuggestions: true, id: this.state._id, name: this.state._name, required: this.state._required }, this.controller.onFacade), { 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 }, onChange: this.onChange.bind(this), onInput: this.onInput.bind(this), placeholder: this.state._placeholder });\n }\n render() {\n return (h(FormFieldStateWrapper, Object.assign({ key: '7518c6b1ba75658aa9b3101ebfb371ed8ad3409e' }, this.getFormFieldProps()), h(InputContainerStateWrapperFc, { key: 'b8cf517f39abdac1f97a497e7dab07beb6b146c7', state: this.state }, h(\"div\", { key: '3ec383f5f9c883b6bb555811ec8901ff98709a05', class: \"kol-combobox__group\" }, h(InputStateWrapper, Object.assign({ key: '58838796460e841e2ae6d2a322c9c2409f18653e' }, this.getInputProps())), h(CustomSuggestionsToggleFc, { key: 'b585a1dcb6a8a23b31e2a639f6dfaa8f3286be73', onClick: this.toggleListbox.bind(this), disabled: this.state._disabled })), this._isOpen && !(this.state._disabled === true) && (h(CustomSuggestionsOptionsGroupFc, { key: 'e2e27ed383625650c0349b091d7e766829e3cd4b', blockSuggestionMouseOver: this.blockSuggestionMouseOver, onKeyDown: this.handleKeyDownDropdown.bind(this) }, Array.isArray(this._filteredSuggestions) &&\n this._filteredSuggestions.length > 0 &&\n this._filteredSuggestions.map((option, index) => (h(CustomSuggestionsOptionFc, { index: index, option: option, ref: (el) => {\n if (el)\n this.refSuggestions[index] = el;\n }, selected: this.state._value === option, onClick: () => {\n this.selectOption(option);\n this.toggleListbox();\n this._isOpen = false;\n this._hasOpened = false;\n }, onMouseOver: () => {\n if (!this.blockSuggestionMouseOver) {\n this.focusOption(index);\n }\n }, onFocus: () => {\n this.focusOption(index);\n }, onKeyDown: (e) => {\n if (e.key === 'Enter' || e.key === 'NumpadEnter') {\n this.selectOption(option);\n this.toggleListbox();\n e.preventDefault();\n }\n } }))))))));\n }\n handleKeyDown(event) {\n var _a, _b;\n const handleEvent = (isOpen, callback) => {\n var _a;\n event.preventDefault();\n if (isOpen !== undefined) {\n this._isOpen = isOpen;\n if (!isOpen) {\n (_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();\n }\n }\n callback === null || callback === void 0 ? void 0 : callback();\n };\n switch (event.key) {\n case 'Down':\n case 'ArrowDown': {\n this.blockSuggestionMouseOver = true;\n handleEvent(true, () => this.moveFocus(1));\n break;\n }\n case 'Up':\n case 'ArrowUp': {\n this.blockSuggestionMouseOver = true;\n handleEvent(true, () => this.moveFocus(-1));\n break;\n }\n case 'Tab':\n if (this._isOpen) {\n this._isOpen = false;\n (_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();\n }\n break;\n case 'Esc':\n case 'Escape': {\n this._hasOpened = false;\n this._isOpen = false;\n event.preventDefault();\n (_b = this.refInput) === null || _b === void 0 ? void 0 : _b.focus();\n break;\n }\n case 'NumpadEnter':\n case 'Enter': {\n if (this._isOpen && this._focusedOptionIndex >= 0) {\n this._filteredSuggestions && this.selectOption(this._filteredSuggestions[this._focusedOptionIndex]);\n this._isOpen = false;\n this._hasOpened = false;\n }\n else {\n this.toggleListbox();\n }\n event.preventDefault();\n break;\n }\n case 'Home': {\n this.blockSuggestionMouseOver = true;\n handleEvent(undefined, () => {\n if (this._isOpen) {\n this.focusOption(0);\n }\n });\n break;\n }\n case 'End': {\n this.blockSuggestionMouseOver = true;\n handleEvent(undefined, () => {\n if (this._isOpen) {\n this.focusOption(this._filteredSuggestions ? this._filteredSuggestions.length - 1 : 0);\n }\n });\n break;\n }\n case 'PageUp': {\n this.blockSuggestionMouseOver = true;\n handleEvent(undefined, () => this._isOpen && this.moveFocus(-10));\n break;\n }\n case 'PageDown': {\n this.blockSuggestionMouseOver = true;\n handleEvent(undefined, () => this._isOpen && this.moveFocus(10));\n break;\n }\n }\n }\n handleWindowClick(event) {\n if (this.host !== undefined && !this.host.contains(event.target)) {\n this._isOpen = false;\n }\n }\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.refSuggestions = [];\n this._focusedOptionIndex = -1;\n this.toggleListbox = () => {\n var _a;\n if (this.state._disabled === true) {\n this._isOpen = false;\n }\n else {\n (_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();\n if (!this._hasOpened && Array.isArray(this._filteredSuggestions) && this._filteredSuggestions.length > 0) {\n this._isOpen = true;\n this._hasOpened = true;\n const selectedIndex = this._filteredSuggestions.findIndex((option) => option === this.state._value);\n this._focusedOptionIndex = selectedIndex >= 0 ? selectedIndex : -1;\n this.focusOption(this._focusedOptionIndex);\n }\n }\n };\n this.catchRef = (ref) => {\n this.refInput = ref;\n };\n this.blockSuggestionMouseOver = false;\n this._isOpen = false;\n this._filteredSuggestions = undefined;\n this._hasOpened = false;\n this._accessKey = undefined;\n this._placeholder = undefined;\n this._disabled = false;\n this._hideMsg = false;\n this._hideLabel = false;\n this._hint = '';\n this._icons = undefined;\n this._id = undefined;\n this._label = undefined;\n this._msg = undefined;\n this._name = undefined;\n this._on = undefined;\n this._suggestions = undefined;\n this._required = false;\n this._shortKey = undefined;\n this._syncValueBySelector = undefined;\n this._tooltipAlign = 'top';\n this._touched = false;\n this._value = undefined;\n this.state = {\n _hasValue: false,\n _hideMsg: false,\n _id: `id-${nonce()}`,\n _label: '',\n _suggestions: [],\n _value: '',\n };\n this.inputHasFocus = false;\n this.controller = new ComboboxController(this, 'combobox', this.host);\n this.onInput = this.onInput.bind(this);\n }\n showAsAlert() {\n return Boolean(this.state._touched) && !this.inputHasFocus;\n }\n validatePlaceholder(value) {\n this.controller.validatePlaceholder(value);\n }\n validateAccessKey(value) {\n this.controller.validateAccessKey(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 validateSuggestions(value) {\n this.controller.validateSuggestions(value);\n this._filteredSuggestions = value;\n }\n validateRequired(value) {\n this.controller.validateRequired(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 this.controller.setFormAssociatedValue(value);\n }\n componentWillLoad() {\n this.refSuggestions = [];\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 this._filteredSuggestions = this.state._suggestions;\n }\n handleMouseEvent() {\n this.blockSuggestionMouseOver = false;\n }\n handleFocusOut() {\n setTimeout(() => {\n var _a;\n if (!((_a = this.host) === null || _a === void 0 ? void 0 : _a.contains(document.activeElement))) {\n this.onBlur();\n }\n }, 0);\n }\n handleWindowBlur() {\n this.onBlur();\n }\n onBlur() {\n var _a;\n this._hasOpened = false;\n if (this._isOpen) {\n this._isOpen = !this._isOpen;\n (_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();\n }\n }\n onChange(event) {\n this.controller.onFacade.onChange(event);\n this.controller.setFormAssociatedValue(this.state._value);\n }\n static get delegatesFocus() { return true; }\n get host() { return getElement(this); }\n static get watchers() { return {\n \"_placeholder\": [\"validatePlaceholder\"],\n \"_accessKey\": [\"validateAccessKey\"],\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 \"_suggestions\": [\"validateSuggestions\"],\n \"_required\": [\"validateRequired\"],\n \"_syncValueBySelector\": [\"validateSyncValueBySelector\"],\n \"_touched\": [\"validateTouched\"],\n \"_value\": [\"validateValue\"]\n }; }\n};\nKolCombobox.style = {\n default: KolComboboxDefaultStyle0\n};\n\nexport { KolCombobox as kol_combobox };\n\n//# sourceMappingURL=kol-combobox.entry.js.map"],"names":["ComboboxController","InputIconController","component","name","host","value","watchString","watchBoolean","validateSuggestions","defaultStyleCss","KolComboboxDefaultStyle0","KolCombobox","_a","option","event","target","query","delta","newIndex","index","optionElement","char","charLowerCase","clsx","ariaDescribedBy","getRenderStates","h","FormFieldStateWrapper","InputContainerStateWrapperFc","InputStateWrapper","CustomSuggestionsToggleFc","CustomSuggestionsOptionsGroupFc","CustomSuggestionsOptionFc","el","e","_b","handleEvent","isOpen","callback","hostRef","registerInstance","selectedIndex","ref","nonce","v","getElement"],"mappings":"8oCAAA;AAAA;AAAA,GAmCA,MAAMA,UAA2BC,CAAoB,CACjD,YAAYC,EAAWC,EAAMC,EAAM,CAC/B,MAAMF,EAAWC,EAAMC,CAAI,EAC3B,KAAK,UAAYF,CACzB,CACI,oBAAoBG,EAAO,CACvBC,EAAY,KAAK,UAAW,eAAgBD,CAAK,CACzD,CACI,iBAAiBA,EAAO,CACpBE,EAAa,KAAK,UAAW,YAAaF,CAAK,CACvD,CACI,oBAAoBA,EAAO,CACvBG,EAAoB,KAAK,UAAWH,CAAK,CACjD,CACI,cAAcA,EAAO,CACjBC,EAAY,KAAK,UAAW,SAAUD,CAAK,CACnD,CACI,mBAAoB,CAChB,MAAM,kBAAmB,EACzB,KAAK,oBAAoB,KAAK,UAAU,YAAY,EACpD,KAAK,iBAAiB,KAAK,UAAU,SAAS,EAC9C,KAAK,oBAAoB,KAAK,UAAU,YAAY,EACpD,KAAK,cAAc,KAAK,UAAU,MAAM,CAChD,CACA,CAEA,MAAMI,EAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;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Ac,EACxB,OAAU,CAAC,eAAe,EAC1B,IAAO,CAAC,YAAY,EACpB,OAAU,CAAC,eAAe,EAC1B,KAAQ,CAAC,aAAa,EACtB,MAAS,CAAC,cAAc,EACxB,IAAO,CAAC,YAAY,EACpB,UAAa,CAAC,kBAAkB,EAChC,aAAgB,CAAC,qBAAqB,EACtC,UAAa,CAAC,kBAAkB,EAChC,qBAAwB,CAAC,6BAA6B,EACtD,SAAY,CAAC,iBAAiB,EAC9B,OAAU,CAAC,eAAe,CAClC,CAAM,CACN,EACAlC,EAAY,MAAQ,CAChB,QAASD,CACb"}
|
|
1
|
+
{"version":3,"file":"kol-combobox.entry-DR0CYgcm.js","sources":["../../../../components/dist/esm/kol-combobox.entry.js"],"sourcesContent":["/*!\n * KoliBri - The accessible HTML-Standard\n */\nimport { h, r as registerInstance, g as getElement } from './index-02bdb302.js';\nimport { c as clsx } from './clsx-09a06a12.js';\nimport { n as nonce } from './dev.utils-ffecab2f.js';\nimport { F as FormFieldStateWrapper } from './getRenderStates-c4bde254.js';\nimport { B as watchString, i as watchBoolean } from './index-ebe5a881.js';\nimport { I as InputIconController, a as InputContainerStateWrapperFc } from './controller-icon-0d71a8a2.js';\nimport { v as validateSuggestions } from './suggestions-198125b7.js';\nimport { C as CustomSuggestionsToggleFc, a as CustomSuggestionsOptionsGroupFc, b as CustomSuggestionsOptionFc, g as getRenderStates } from './CustomSuggestionsOptionsGroup-cdea277e.js';\nimport { I as InputStateWrapper } from './InputStateWrapper-38536b7a.js';\nimport './events-bad0a075.js';\nimport './associated.controller-22684481.js';\nimport './bootstrap-dcdb1765.js';\nimport './component-names-553d8bfa.js';\nimport './i18n-45224cc3.js';\nimport './access-and-short-key-f743a5c4.js';\nimport './tooltip-align-465a8590.js';\nimport './align-d2572387.js';\nimport './hide-label-8b3a8709.js';\nimport './label-bf9966d0.js';\nimport './tslib.es6-1173d062.js';\nimport './Alert-c6ac1427.js';\nimport './i18n-260f0fe9.js';\nimport './bem-e4c3a2e6.js';\nimport './browser-f629a56a.js';\nimport './Heading-31a470a8.js';\nimport './InternalUnderlinedBadgeText-b1330190.js';\nimport './isArray-7a60fa7f.js';\nimport './Icon-e36657fc.js';\nimport './isObject-ffcbbb76.js';\nimport './icons-a9c52ed8.js';\nimport './Input-b352cf7a.js';\n\nclass ComboboxController extends InputIconController {\n constructor(component, name, host) {\n super(component, name, host);\n this.component = component;\n }\n validatePlaceholder(value) {\n watchString(this.component, '_placeholder', value);\n }\n validateRequired(value) {\n watchBoolean(this.component, '_required', value);\n }\n validateSuggestions(value) {\n validateSuggestions(this.component, value);\n }\n validateValue(value) {\n watchString(this.component, '_value', value);\n }\n componentWillLoad() {\n super.componentWillLoad();\n this.validatePlaceholder(this.component._placeholder);\n this.validateRequired(this.component._required);\n this.validateSuggestions(this.component._suggestions);\n this.validateValue(this.component._value);\n }\n}\n\nconst defaultStyleCss = \"/*\\n * This file contains all rules for accessibility.\\n */\\n@layer kol-global {\\n :host {\\n /*\\n * Minimum size of interactive elements.\\n */\\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\\n /*\\n * No element should be used without a background and font color whose contrast ratio has\\n * not been checked. By initially setting the background color to white and the font color\\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\\n */\\n background-color: white;\\n color: black;\\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 * 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 * This rule enables the word dividing for all texts. That is important for high zoom levels.\\n */\\n word-break: break-word;\\n /*\\n * Word spacing is required for all texts.\\n */\\n word-spacing: inherit;\\n }\\n /*\\n * All interactive elements should have a minimum size of rem(44).\\n */\\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\\n /* option, */\\n /* select, */\\n /* textarea, */\\n [role=button],\\n button:not([role=link]),\\n .kol-input .input {\\n min-height: var(--a11y-min-size);\\n min-width: 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 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}\\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 clip: rect(0 0 0 0);\\n clip-path: inset(50%);\\n height: 1px;\\n overflow: hidden;\\n position: absolute;\\n white-space: nowrap;\\n width: 1px;\\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 border: none;\\n margin: 0;\\n padding: 0;\\n width: 100%;\\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 background-color: lightgray;\\n color: black;\\n }\\n}\\n@layer kol-global {\\n :host {\\n font-size: rem(16);\\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 }\\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 cursor: not-allowed;\\n opacity: 0.5;\\n outline: none;\\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 .kol-tooltip {\\n display: contents;\\n }\\n .kol-tooltip__floating {\\n animation-duration: 0.25s;\\n animation-iteration-count: 1;\\n animation-name: fadeInOpacity;\\n animation-timing-function: ease-in;\\n display: none;\\n position: fixed;\\n visibility: hidden;\\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\\n top: 0;\\n left: 0;\\n max-width: 90vw;\\n max-height: 90vh;\\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\\n width: var(--kol-tooltip-width);\\n }\\n .kol-tooltip__arrow {\\n background-color: #fff;\\n color: #000;\\n height: calc(10rem / var(--kolibri-root-font-size, 16));\\n position: absolute;\\n transform: rotate(45deg);\\n width: calc(10rem / var(--kolibri-root-font-size, 16));\\n z-index: 999;\\n }\\n .kol-tooltip__content {\\n background-color: #fff;\\n color: #000;\\n position: relative;\\n z-index: 1000;\\n }\\n @keyframes fadeInOpacity {\\n 0% {\\n opacity: 0;\\n }\\n 100% {\\n opacity: 1;\\n }\\n }\\n}\\n@layer kol-component {\\n .kol-alert {\\n display: grid;\\n }\\n .kol-alert__container {\\n place-items: center;\\n display: flex;\\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(1rem / var(--kolibri-root-font-size, 16));\\n }\\n}\\n@layer kol-component {\\n .kol-custom-suggestions-option {\\n cursor: pointer;\\n white-space: normal;\\n overflow-wrap: break-word;\\n word-wrap: break-word;\\n line-height: 1.5;\\n }\\n .kol-custom-suggestions-options-group--cursor-hidden .kol-custom-suggestions-option {\\n cursor: none !important;\\n }\\n}\\n@layer kol-component {\\n .kol-custom-suggestions-options-group {\\n display: block;\\n position: absolute;\\n list-style-type: none;\\n margin: 0;\\n padding: 0;\\n overflow-y: auto;\\n overflow-x: hidden;\\n z-index: 2;\\n background-color: white;\\n max-height: calc(250rem / var(--kolibri-root-font-size, 16));\\n }\\n}\\n@layer kol-component {\\n .kol-custom-suggestions-toggle {\\n align-items: center;\\n display: flex;\\n height: var(--a11y-min-size);\\n width: var(--a11y-min-size);\\n }\\n .kol-custom-suggestions-toggle:not(:disabled) {\\n cursor: pointer;\\n }\\n}\\n@layer kol-component {\\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}\\n@layer kol-component {\\n .kol-input-container {\\n align-items: center;\\n background-color: white;\\n display: grid;\\n grid-template-columns: 1fr;\\n min-height: var(--a11y-min-size);\\n min-width: var(--a11y-min-size);\\n width: 100%;\\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}\\n@layer kol-component {\\n .kol-input {\\n min-width: var(--a11y-min-size);\\n width: 100%;\\n }\\n .kol-input:focus {\\n outline: none;\\n }\\n}\";\nconst KolComboboxDefaultStyle0 = defaultStyleCss;\n\nconst KolCombobox = class {\n async getValue() {\n return this.state._value;\n }\n async kolFocus() {\n var _a;\n (_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();\n }\n selectOption(option) {\n var _a;\n this.controller.onFacade.onInput(new CustomEvent('input', { bubbles: true, detail: { name: this.state._name, value: option } }), true, option);\n this.controller.onFacade.onChange(new CustomEvent('change', { bubbles: true, detail: { name: this.state._name, value: option } }), option);\n this.controller.setFormAssociatedValue(option);\n this.state._value = option;\n (_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();\n }\n onInput(event) {\n const target = event.target;\n this.state._value = target.value;\n this._value = target.value;\n this.controller.onFacade.onInput(event);\n this.setFilteredSuggestionsByQuery(target.value);\n this._focusedOptionIndex = -1;\n }\n handleKeyDownDropdown(event) {\n if (event.key.length === 1 && /[a-z0-9]/i.test(event.key)) {\n this._isOpen = true;\n this.focusSuggestionStartingWith(event.key);\n }\n }\n setFilteredSuggestionsByQuery(query) {\n if (query.trim() === '') {\n this._filteredSuggestions = [...this._suggestions];\n }\n else {\n this._filteredSuggestions = Array.isArray(this._suggestions)\n ? this._suggestions.filter((option) => {\n return option.toLowerCase().includes(query.toLowerCase());\n })\n : this._filteredSuggestions;\n this._isOpen = this._filteredSuggestions && this._filteredSuggestions.length > 0 ? true : false;\n }\n }\n moveFocus(delta) {\n if (!this._filteredSuggestions) {\n return;\n }\n let newIndex = this._focusedOptionIndex + delta;\n if (newIndex >= this._filteredSuggestions.length) {\n newIndex = 0;\n }\n if (newIndex < 0) {\n newIndex = this._filteredSuggestions.length - 1;\n }\n this.focusOption(newIndex);\n }\n focusOption(index) {\n this._focusedOptionIndex = index;\n if (this.refSuggestions) {\n const optionElement = this.refSuggestions[index];\n optionElement === null || optionElement === void 0 ? void 0 : optionElement.focus();\n }\n }\n focusSuggestionStartingWith(char) {\n const charLowerCase = char.toLowerCase();\n const index = Array.isArray(this._filteredSuggestions) &&\n this._filteredSuggestions.length > 0 &&\n this._filteredSuggestions.findIndex((option) => option.toLowerCase().startsWith(charLowerCase));\n if (typeof index === 'number') {\n this.focusOption(index);\n }\n }\n getFormFieldProps() {\n return {\n state: this.state,\n class: clsx('kol-combobox', {\n 'has-value': this.state._hasValue,\n }),\n tooltipAlign: this._tooltipAlign,\n onClick: () => { var _a; return (_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus(); },\n alert: this.showAsAlert(),\n };\n }\n getInputProps() {\n const { ariaDescribedBy } = getRenderStates(this.state);\n return Object.assign(Object.assign({ ref: this.catchRef, state: this.state, class: 'kol-combobox__input', type: 'text', role: 'combobox', 'aria-autocomplete': 'both', 'aria-expanded': this._isOpen ? 'true' : 'false', 'aria-controls': 'listbox', 'aria-describedby': ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined, 'aria-label': this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, 'aria-labelledby': this.state._id, 'aria-activedescendant': this._isOpen && this._focusedOptionIndex >= 0 ? `option-${this._focusedOptionIndex}` : undefined, value: this.state._value, accessKey: this.state._accessKey, autocapitalize: 'off', autocorrect: 'off', disabled: this.state._disabled, customSuggestions: true, id: this.state._id, name: this.state._name, required: this.state._required }, this.controller.onFacade), { 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 }, onChange: this.onChange.bind(this), onInput: this.onInput.bind(this), placeholder: this.state._placeholder });\n }\n render() {\n return (h(FormFieldStateWrapper, Object.assign({ key: '44bc85c62caa382896b635dbc743f16d24863644' }, this.getFormFieldProps()), h(InputContainerStateWrapperFc, { key: 'fd4b270034c88219b2f7f7eae2591334906ece02', state: this.state }, h(\"div\", { key: 'd4510edc466749cef9b6291afd9c282c77b88f8f', class: \"kol-combobox__group\" }, h(InputStateWrapper, Object.assign({ key: 'ddc7d75b247724e081da3b8360238e271110cdca' }, this.getInputProps())), h(CustomSuggestionsToggleFc, { key: '4531ca610c2f04d45072823222cac12c49c3ab74', onClick: this.toggleListbox.bind(this), disabled: this.state._disabled })), this._isOpen && !(this.state._disabled === true) && (h(CustomSuggestionsOptionsGroupFc, { key: 'd995a87095216c4f1cf32b8e6c789dffffcf2572', blockSuggestionMouseOver: this.blockSuggestionMouseOver, onKeyDown: this.handleKeyDownDropdown.bind(this) }, Array.isArray(this._filteredSuggestions) &&\n this._filteredSuggestions.length > 0 &&\n this._filteredSuggestions.map((option, index) => (h(CustomSuggestionsOptionFc, { index: index, option: option, ref: (el) => {\n if (el)\n this.refSuggestions[index] = el;\n }, selected: this.state._value === option, onClick: () => {\n this.selectOption(option);\n this.toggleListbox();\n this._isOpen = false;\n this._hasOpened = false;\n }, onMouseOver: () => {\n if (!this.blockSuggestionMouseOver) {\n this.focusOption(index);\n }\n }, onFocus: () => {\n this.focusOption(index);\n }, onKeyDown: (e) => {\n if (e.key === 'Enter' || e.key === 'NumpadEnter') {\n this.selectOption(option);\n this.toggleListbox();\n e.preventDefault();\n }\n } }))))))));\n }\n handleKeyDown(event) {\n var _a, _b;\n const handleEvent = (isOpen, callback) => {\n var _a;\n event.preventDefault();\n if (isOpen !== undefined) {\n this._isOpen = isOpen;\n if (!isOpen) {\n (_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();\n }\n }\n callback === null || callback === void 0 ? void 0 : callback();\n };\n switch (event.key) {\n case 'Down':\n case 'ArrowDown': {\n this.blockSuggestionMouseOver = true;\n handleEvent(true, () => this.moveFocus(1));\n break;\n }\n case 'Up':\n case 'ArrowUp': {\n this.blockSuggestionMouseOver = true;\n handleEvent(true, () => this.moveFocus(-1));\n break;\n }\n case 'Tab':\n if (this._isOpen) {\n this._isOpen = false;\n (_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();\n }\n break;\n case 'Esc':\n case 'Escape': {\n this._hasOpened = false;\n this._isOpen = false;\n event.preventDefault();\n (_b = this.refInput) === null || _b === void 0 ? void 0 : _b.focus();\n break;\n }\n case 'NumpadEnter':\n case 'Enter': {\n if (this._isOpen && this._focusedOptionIndex >= 0) {\n this._filteredSuggestions && this.selectOption(this._filteredSuggestions[this._focusedOptionIndex]);\n this._isOpen = false;\n this._hasOpened = false;\n }\n else {\n this.toggleListbox();\n }\n event.preventDefault();\n break;\n }\n case 'Home': {\n this.blockSuggestionMouseOver = true;\n handleEvent(undefined, () => {\n if (this._isOpen) {\n this.focusOption(0);\n }\n });\n break;\n }\n case 'End': {\n this.blockSuggestionMouseOver = true;\n handleEvent(undefined, () => {\n if (this._isOpen) {\n this.focusOption(this._filteredSuggestions ? this._filteredSuggestions.length - 1 : 0);\n }\n });\n break;\n }\n case 'PageUp': {\n this.blockSuggestionMouseOver = true;\n handleEvent(undefined, () => this._isOpen && this.moveFocus(-10));\n break;\n }\n case 'PageDown': {\n this.blockSuggestionMouseOver = true;\n handleEvent(undefined, () => this._isOpen && this.moveFocus(10));\n break;\n }\n }\n }\n handleWindowClick(event) {\n if (this.host !== undefined && !this.host.contains(event.target)) {\n this._isOpen = false;\n }\n }\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.refSuggestions = [];\n this._focusedOptionIndex = -1;\n this.toggleListbox = () => {\n var _a;\n if (this.state._disabled === true) {\n this._isOpen = false;\n }\n else {\n (_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();\n if (!this._hasOpened && Array.isArray(this._filteredSuggestions) && this._filteredSuggestions.length > 0) {\n this._isOpen = true;\n this._hasOpened = true;\n const selectedIndex = this._filteredSuggestions.findIndex((option) => option === this.state._value);\n this._focusedOptionIndex = selectedIndex >= 0 ? selectedIndex : -1;\n this.focusOption(this._focusedOptionIndex);\n }\n }\n };\n this.catchRef = (ref) => {\n this.refInput = ref;\n };\n this.blockSuggestionMouseOver = false;\n this._isOpen = false;\n this._filteredSuggestions = undefined;\n this._hasOpened = false;\n this._accessKey = undefined;\n this._placeholder = undefined;\n this._disabled = false;\n this._hideMsg = false;\n this._hideLabel = false;\n this._hint = '';\n this._icons = undefined;\n this._id = undefined;\n this._label = undefined;\n this._msg = undefined;\n this._name = undefined;\n this._on = undefined;\n this._suggestions = undefined;\n this._required = false;\n this._shortKey = undefined;\n this._syncValueBySelector = undefined;\n this._tooltipAlign = 'top';\n this._touched = false;\n this._value = undefined;\n this.state = {\n _hasValue: false,\n _hideMsg: false,\n _id: `id-${nonce()}`,\n _label: '',\n _suggestions: [],\n _value: '',\n };\n this.inputHasFocus = false;\n this.controller = new ComboboxController(this, 'combobox', this.host);\n this.onInput = this.onInput.bind(this);\n }\n showAsAlert() {\n return Boolean(this.state._touched) && !this.inputHasFocus;\n }\n validatePlaceholder(value) {\n this.controller.validatePlaceholder(value);\n }\n validateAccessKey(value) {\n this.controller.validateAccessKey(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 validateSuggestions(value) {\n this.controller.validateSuggestions(value);\n this._filteredSuggestions = value;\n }\n validateRequired(value) {\n this.controller.validateRequired(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 this.controller.setFormAssociatedValue(value);\n }\n componentWillLoad() {\n this.refSuggestions = [];\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 this._filteredSuggestions = this.state._suggestions;\n }\n handleMouseEvent() {\n this.blockSuggestionMouseOver = false;\n }\n handleFocusOut() {\n setTimeout(() => {\n var _a;\n if (!((_a = this.host) === null || _a === void 0 ? void 0 : _a.contains(document.activeElement))) {\n this.onBlur();\n }\n }, 0);\n }\n handleWindowBlur() {\n this.onBlur();\n }\n onBlur() {\n var _a;\n this._hasOpened = false;\n if (this._isOpen) {\n this._isOpen = !this._isOpen;\n (_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();\n }\n }\n onChange(event) {\n this.controller.onFacade.onChange(event);\n this.controller.setFormAssociatedValue(this.state._value);\n }\n static get delegatesFocus() { return true; }\n get host() { return getElement(this); }\n static get watchers() { return {\n \"_placeholder\": [\"validatePlaceholder\"],\n \"_accessKey\": [\"validateAccessKey\"],\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 \"_suggestions\": [\"validateSuggestions\"],\n \"_required\": [\"validateRequired\"],\n \"_syncValueBySelector\": [\"validateSyncValueBySelector\"],\n \"_touched\": [\"validateTouched\"],\n \"_value\": [\"validateValue\"]\n }; }\n};\nKolCombobox.style = {\n default: KolComboboxDefaultStyle0\n};\n\nexport { KolCombobox as kol_combobox };\n\n//# sourceMappingURL=kol-combobox.entry.js.map"],"names":["ComboboxController","InputIconController","component","name","host","value","watchString","watchBoolean","validateSuggestions","defaultStyleCss","KolComboboxDefaultStyle0","KolCombobox","_a","option","event","target","query","delta","newIndex","index","optionElement","char","charLowerCase","clsx","ariaDescribedBy","getRenderStates","h","FormFieldStateWrapper","InputContainerStateWrapperFc","InputStateWrapper","CustomSuggestionsToggleFc","CustomSuggestionsOptionsGroupFc","CustomSuggestionsOptionFc","el","e","_b","handleEvent","isOpen","callback","hostRef","registerInstance","selectedIndex","ref","nonce","v","getElement"],"mappings":"mpCAAA;AAAA;AAAA,GAmCA,MAAMA,UAA2BC,CAAoB,CACjD,YAAYC,EAAWC,EAAMC,EAAM,CAC/B,MAAMF,EAAWC,EAAMC,CAAI,EAC3B,KAAK,UAAYF,CACzB,CACI,oBAAoBG,EAAO,CACvBC,EAAY,KAAK,UAAW,eAAgBD,CAAK,CACzD,CACI,iBAAiBA,EAAO,CACpBE,EAAa,KAAK,UAAW,YAAaF,CAAK,CACvD,CACI,oBAAoBA,EAAO,CACvBG,EAAoB,KAAK,UAAWH,CAAK,CACjD,CACI,cAAcA,EAAO,CACjBC,EAAY,KAAK,UAAW,SAAUD,CAAK,CACnD,CACI,mBAAoB,CAChB,MAAM,kBAAmB,EACzB,KAAK,oBAAoB,KAAK,UAAU,YAAY,EACpD,KAAK,iBAAiB,KAAK,UAAU,SAAS,EAC9C,KAAK,oBAAoB,KAAK,UAAU,YAAY,EACpD,KAAK,cAAc,KAAK,UAAU,MAAM,CAChD,CACA,CAEA,MAAMI,EAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA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C,6BAA6B,EACtD,SAAY,CAAC,iBAAiB,EAC9B,OAAU,CAAC,eAAe,CAClC,CAAM,CACN,EACAlC,EAAY,MAAQ,CAChB,QAASD,CACb"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as s,d as r,a as d,h as a,g as h,w as c}from"./index-
|
|
1
|
+
import{r as s,d as r,a as d,h as a,g as h,w as c}from"./index-BxGEzp9g.js";import{K as p}from"./Collapsible-7be44a00-Vua4x5sY.js";import{n as b}from"./dev.utils-ffecab2f-B6ua6rhn.js";import{w as m}from"./validation-152ea092-CgEo5ZRb.js";import{v as u}from"./disabled-e1038f54-4wrcSfjB.js";import{v as f}from"./label-bf9966d0-pCJpRuFg.js";import{v as g}from"./open-385de2c9-DTNDalEs.js";import"./tslib.es6-1173d062-BAJoBDh7.js";import"./clsx-09a06a12-BT_IL7Fz.js";import"./Heading-31a470a8-xZ2htjK-.js";/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/const _=(n,t)=>{c(n,"_on",e=>typeof e=="object"&&e!==null,new Set(["DetailsCallbacksPropType {Events.onToggle}"]),t)},v=`/*
|
|
4
4
|
* This file contains all rules for accessibility.
|
|
@@ -231,5 +231,5 @@ import{r as s,d as r,a as d,h as a,g as h,w as c}from"./index-DfN2w0z5.js";impor
|
|
|
231
231
|
.collapsible--open .kol-details__heading-button .kol-icon::part(icon) {
|
|
232
232
|
transform: rotate(90deg);
|
|
233
233
|
}
|
|
234
|
-
}`,w=v,y=class{constructor(n){s(this,n),this.nonce=b(),this.catchRef=t=>{this.buttonWcRef=t},this.handleOnClick=t=>{this._open=!this._open,clearTimeout(this.toggleTimeout),this.toggleTimeout=setTimeout(()=>{var e,o;this.host&&r(this.host,d.toggle,!!this._open),(o=(e=this.state._on)===null||e===void 0?void 0:e.onToggle)===null||o===void 0||o.call(e,t,!!this._open)},25)},this._disabled=!1,this._label=void 0,this._level=0,this._on=void 0,this._open=!1,this.state={_label:"",_level:0,_on:{}}}async kolFocus(){var n;await((n=this.buttonWcRef)===null||n===void 0?void 0:n.kolFocus())}render(){const{_open:n,_label:t,_disabled:e,_level:o}=this.state,i="kol-details",l={id:this.nonce,label:t,open:n,disabled:e,level:o,onClick:this.handleOnClick,class:i,HeadingProps:{class:`${i}__heading`},HeadingButtonProps:{ref:this.catchRef,class:`${i}__heading-button`,_icons:"codicon codicon-chevron-right"},ContentProps:{class:`${i}__content indented-text`,wrapperClass:`${i}__wrapper`,animationClass:`${i}__wrapper-animation`}};return a(p,Object.assign({key:"
|
|
235
|
-
//# sourceMappingURL=kol-details.entry-
|
|
234
|
+
}`,w=v,y=class{constructor(n){s(this,n),this.nonce=b(),this.catchRef=t=>{this.buttonWcRef=t},this.handleOnClick=t=>{this._open=!this._open,clearTimeout(this.toggleTimeout),this.toggleTimeout=setTimeout(()=>{var e,o;this.host&&r(this.host,d.toggle,!!this._open),(o=(e=this.state._on)===null||e===void 0?void 0:e.onToggle)===null||o===void 0||o.call(e,t,!!this._open)},25)},this._disabled=!1,this._label=void 0,this._level=0,this._on=void 0,this._open=!1,this.state={_label:"",_level:0,_on:{}}}async kolFocus(){var n;await((n=this.buttonWcRef)===null||n===void 0?void 0:n.kolFocus())}render(){const{_open:n,_label:t,_disabled:e,_level:o}=this.state,i="kol-details",l={id:this.nonce,label:t,open:n,disabled:e,level:o,onClick:this.handleOnClick,class:i,HeadingProps:{class:`${i}__heading`},HeadingButtonProps:{ref:this.catchRef,class:`${i}__heading-button`,_icons:"codicon codicon-chevron-right"},ContentProps:{class:`${i}__content indented-text`,wrapperClass:`${i}__wrapper`,animationClass:`${i}__wrapper-animation`}};return a(p,Object.assign({key:"66ab4c4a61c0ac220f184174cc77bf5038e0b65c"},l),a("slot",{key:"121a4d8fd086db1177eccc25b5b6a860741b1917"}))}validateDisabled(n){u(this,n)}validateLabel(n){f(this,n,{required:!0})}validateLevel(n){m(this,n)}validateOn(n){_(this,n)}validateOpen(n){g(this,n)}componentWillLoad(){this.validateDisabled(this._disabled),this.validateLabel(this._label),this.validateLevel(this._level),this.validateOn(this._on),this.validateOpen(this._open)}get host(){return h(this)}static get watchers(){return{_disabled:["validateDisabled"],_label:["validateLabel"],_level:["validateLevel"],_on:["validateOn"],_open:["validateOpen"]}}};y.style={default:w};export{y as kol_details};
|
|
235
|
+
//# sourceMappingURL=kol-details.entry-GW2BQsHQ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kol-details.entry-DNHnfNrr.js","sources":["../../../../components/dist/esm/kol-details.entry.js"],"sourcesContent":["/*!\n * KoliBri - The accessible HTML-Standard\n */\nimport { r as registerInstance, h, g as getElement } from './index-1ed13705.js';\nimport { w as watchValidator } from './index-ebe5a881.js';\nimport { K as KolCollapsibleFc } from './Collapsible-af548d40.js';\nimport { n as nonce } from './dev.utils-cb61837d.js';\nimport { w as watchHeadingLevel } from './validation-152ea092.js';\nimport { d as dispatchDomEvent, K as KolEvent } from './events-bad0a075.js';\nimport { v as validateDisabled } from './disabled-e1038f54.js';\nimport { v as validateLabel } from './label-bf9966d0.js';\nimport { v as validateOpen } from './open-385de2c9.js';\nimport './tslib.es6-1173d062.js';\nimport './clsx-09a06a12.js';\nimport './component-names-7924d82a.js';\nimport './Heading-733c8dda.js';\n\nconst validateDetailsCallbacks = (component, value) => {\n watchValidator(component, `_on`, (value) => typeof value === 'object' && value !== null, new Set(['DetailsCallbacksPropType {Events.onToggle}']), value);\n};\n\nconst defaultStyleCss = \"/*\\n * This file contains all rules for accessibility.\\n */\\n@layer kol-global {\\n :host {\\n /*\\n * Minimum size of interactive elements.\\n */\\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\\n /*\\n * No element should be used without a background and font color whose contrast ratio has\\n * not been checked. By initially setting the background color to white and the font color\\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\\n */\\n background-color: white;\\n color: black;\\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 * 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 * This rule enables the word dividing for all texts. That is important for high zoom levels.\\n */\\n word-break: break-word;\\n /*\\n * Word spacing is required for all texts.\\n */\\n word-spacing: inherit;\\n }\\n /*\\n * All interactive elements should have a minimum size of rem(44).\\n */\\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\\n /* option, */\\n /* select, */\\n /* textarea, */\\n [role=button],\\n button:not([role=link]),\\n .kol-input .input {\\n min-height: var(--a11y-min-size);\\n min-width: 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 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}\\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 clip: rect(0 0 0 0);\\n clip-path: inset(50%);\\n height: 1px;\\n overflow: hidden;\\n position: absolute;\\n white-space: nowrap;\\n width: 1px;\\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 border: none;\\n margin: 0;\\n padding: 0;\\n width: 100%;\\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 background-color: lightgray;\\n color: black;\\n }\\n}\\n@layer kol-global {\\n :host {\\n font-size: rem(16);\\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 }\\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 cursor: not-allowed;\\n opacity: 0.5;\\n outline: none;\\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/* For animation technique see https://css-tricks.com/css-grid-can-do-auto-height-transitions/ */\\n@layer kol-component {\\n .collapsible {\\n /* @see https://github.com/public-ui/kolibri/issues/5952 */\\n /*\\n * Inside a button, the caption text is always centered.\\n * So we have to align the text to the left.\\n */\\n }\\n .collapsible__wrapper {\\n display: grid;\\n grid-template-rows: 0fr;\\n overflow: hidden;\\n transition: grid-template-rows 0.3s;\\n /* Forces the element into its own GPU compositing layer (via 3D transform). Helps prevent rendering/layout bugs (e.g. #7511) and may improve animation performance. */\\n transform: translateZ(0);\\n }\\n .collapsible__wrapper-animation {\\n min-height: 0;\\n transition: visibility 0.3s;\\n /* This property is important to keep in sync with the visual transition (template-rows). Without it interactive elements within the accordion would stay focusable. */\\n visibility: hidden;\\n }\\n .collapsible--open .collapsible__wrapper {\\n grid-template-rows: 1fr;\\n }\\n .collapsible--open .collapsible__wrapper-animation {\\n visibility: visible;\\n }\\n @media (prefers-reduced-motion) {\\n .collapsible__wrapper-animation, .collapsible__wrapper {\\n transition-duration: 0s;\\n }\\n }\\n @media print {\\n :not(.collapsible--open) .collapsible__wrapper-animation {\\n display: none;\\n }\\n }\\n .collapsible__heading-button button .kol-span {\\n justify-items: start;\\n }\\n}\\n@layer kol-component {\\n .kol-details__heading-button {\\n display: flex;\\n }\\n .kol-details__heading-button .kol-button {\\n min-height: auto;\\n }\\n .kol-details__heading-button .kol-button .kol-span__label {\\n border-bottom-color: grey;\\n border-bottom-style: solid;\\n }\\n .collapsible--open .kol-details__heading-button .kol-icon::part(icon) {\\n transform: rotate(90deg);\\n }\\n}\";\nconst KolDetailsDefaultStyle0 = defaultStyleCss;\n\nconst KolDetails = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.nonce = nonce();\n this.catchRef = (ref) => {\n this.buttonWcRef = ref;\n };\n this.handleOnClick = (event) => {\n this._open = !this._open;\n clearTimeout(this.toggleTimeout);\n this.toggleTimeout = setTimeout(() => {\n var _a, _b;\n if (this.host) {\n dispatchDomEvent(this.host, KolEvent.toggle, Boolean(this._open));\n }\n (_b = (_a = this.state._on) === null || _a === void 0 ? void 0 : _a.onToggle) === null || _b === void 0 ? void 0 : _b.call(_a, event, Boolean(this._open));\n }, 25);\n };\n this._disabled = false;\n this._label = undefined;\n this._level = 0;\n this._on = undefined;\n this._open = false;\n this.state = {\n _label: '',\n _level: 0,\n _on: {},\n };\n }\n async kolFocus() {\n var _a;\n await ((_a = this.buttonWcRef) === null || _a === void 0 ? void 0 : _a.kolFocus());\n }\n render() {\n const { _open, _label, _disabled, _level } = this.state;\n const rootClass = 'kol-details';\n const props = {\n id: this.nonce,\n label: _label,\n open: _open,\n disabled: _disabled,\n level: _level,\n onClick: this.handleOnClick,\n class: rootClass,\n HeadingProps: { class: `${rootClass}__heading` },\n HeadingButtonProps: {\n ref: this.catchRef,\n class: `${rootClass}__heading-button`,\n _icons: 'codicon codicon-chevron-right',\n },\n ContentProps: {\n class: `${rootClass}__content indented-text`,\n wrapperClass: `${rootClass}__wrapper`,\n animationClass: `${rootClass}__wrapper-animation`,\n },\n };\n return (h(KolCollapsibleFc, Object.assign({ key: 'bda32e79cfd2848ae618845ab2a20ae8b65ad0a3' }, props), h(\"slot\", { key: '846096375015a456c275333f701a44343a9e167c' })));\n }\n validateDisabled(value) {\n validateDisabled(this, value);\n }\n validateLabel(value) {\n validateLabel(this, value, {\n required: true,\n });\n }\n validateLevel(value) {\n watchHeadingLevel(this, value);\n }\n validateOn(on) {\n validateDetailsCallbacks(this, on);\n }\n validateOpen(value) {\n validateOpen(this, value);\n }\n componentWillLoad() {\n this.validateDisabled(this._disabled);\n this.validateLabel(this._label);\n this.validateLevel(this._level);\n this.validateOn(this._on);\n this.validateOpen(this._open);\n }\n get host() { return getElement(this); }\n static get watchers() { return {\n \"_disabled\": [\"validateDisabled\"],\n \"_label\": [\"validateLabel\"],\n \"_level\": [\"validateLevel\"],\n \"_on\": [\"validateOn\"],\n \"_open\": [\"validateOpen\"]\n }; }\n};\nKolDetails.style = {\n default: KolDetailsDefaultStyle0\n};\n\nexport { KolDetails as kol_details };\n\n//# sourceMappingURL=kol-details.entry.js.map"],"names":["validateDetailsCallbacks","component","value","watchValidator","defaultStyleCss","KolDetailsDefaultStyle0","KolDetails","hostRef","registerInstance","nonce","ref","event","_a","_b","dispatchDomEvent","KolEvent","_open","_label","_disabled","_level","rootClass","props","h","KolCollapsibleFc","validateDisabled","validateLabel","watchHeadingLevel","on","validateOpen","getElement"],"mappings":"sfAAA;AAAA;AAAA,GAiBA,MAAMA,EAA2B,CAACC,EAAWC,IAAU,CACnDC,EAAeF,EAAW,MAAQC,GAAU,OAAOA,GAAU,UAAYA,IAAU,KAAM,IAAI,IAAI,CAAC,4CAA4C,CAAC,EAAGA,CAAK,CAC3J,EAEME,EAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA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,GAAGA,CAAS,qBAC/B,CACJ,EACD,OAAQE,EAAEC,EAAkB,OAAO,OAAO,CAAE,IAAK,0CAA0C,EAAIF,CAAK,EAAGC,EAAE,OAAQ,CAAE,IAAK,0CAA4C,CAAA,CAAC,CAC7K,CACI,iBAAiBpB,EAAO,CACpBsB,EAAiB,KAAMtB,CAAK,CACpC,CACI,cAAcA,EAAO,CACjBuB,EAAc,KAAMvB,EAAO,CACvB,SAAU,EACtB,CAAS,CACT,CACI,cAAcA,EAAO,CACjBwB,EAAkB,KAAMxB,CAAK,CACrC,CACI,WAAWyB,EAAI,CACX3B,EAAyB,KAAM2B,CAAE,CACzC,CACI,aAAazB,EAAO,CAChB0B,EAAa,KAAM1B,CAAK,CAChC,CACI,mBAAoB,CAChB,KAAK,iBAAiB,KAAK,SAAS,EACpC,KAAK,cAAc,KAAK,MAAM,EAC9B,KAAK,cAAc,KAAK,MAAM,EAC9B,KAAK,WAAW,KAAK,GAAG,EACxB,KAAK,aAAa,KAAK,KAAK,CACpC,CACI,IAAI,MAAO,CAAE,OAAO2B,EAAW,IAAI,CAAE,CACrC,WAAW,UAAW,CAAE,MAAO,CAC3B,UAAa,CAAC,kBAAkB,EAChC,OAAU,CAAC,eAAe,EAC1B,OAAU,CAAC,eAAe,EAC1B,IAAO,CAAC,YAAY,EACpB,MAAS,CAAC,cAAc,CAChC,CAAM,CACN,EACAvB,EAAW,MAAQ,CACf,QAASD,CACb"}
|
|
1
|
+
{"version":3,"file":"kol-details.entry-GW2BQsHQ.js","sources":["../../../../components/dist/esm/kol-details.entry.js"],"sourcesContent":["/*!\n * KoliBri - The accessible HTML-Standard\n */\nimport { r as registerInstance, h, g as getElement } from './index-02bdb302.js';\nimport { w as watchValidator } from './index-ebe5a881.js';\nimport { K as KolCollapsibleFc } from './Collapsible-7be44a00.js';\nimport { n as nonce } from './dev.utils-ffecab2f.js';\nimport { w as watchHeadingLevel } from './validation-152ea092.js';\nimport { d as dispatchDomEvent, K as KolEvent } from './events-bad0a075.js';\nimport { v as validateDisabled } from './disabled-e1038f54.js';\nimport { v as validateLabel } from './label-bf9966d0.js';\nimport { v as validateOpen } from './open-385de2c9.js';\nimport './tslib.es6-1173d062.js';\nimport './clsx-09a06a12.js';\nimport './component-names-553d8bfa.js';\nimport './Heading-31a470a8.js';\n\nconst validateDetailsCallbacks = (component, value) => {\n watchValidator(component, `_on`, (value) => typeof value === 'object' && value !== null, new Set(['DetailsCallbacksPropType {Events.onToggle}']), value);\n};\n\nconst defaultStyleCss = \"/*\\n * This file contains all rules for accessibility.\\n */\\n@layer kol-global {\\n :host {\\n /*\\n * Minimum size of interactive elements.\\n */\\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\\n /*\\n * No element should be used without a background and font color whose contrast ratio has\\n * not been checked. By initially setting the background color to white and the font color\\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\\n */\\n background-color: white;\\n color: black;\\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 * 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 * This rule enables the word dividing for all texts. That is important for high zoom levels.\\n */\\n word-break: break-word;\\n /*\\n * Word spacing is required for all texts.\\n */\\n word-spacing: inherit;\\n }\\n /*\\n * All interactive elements should have a minimum size of rem(44).\\n */\\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\\n /* option, */\\n /* select, */\\n /* textarea, */\\n [role=button],\\n button:not([role=link]),\\n .kol-input .input {\\n min-height: var(--a11y-min-size);\\n min-width: 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 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}\\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 clip: rect(0 0 0 0);\\n clip-path: inset(50%);\\n height: 1px;\\n overflow: hidden;\\n position: absolute;\\n white-space: nowrap;\\n width: 1px;\\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 border: none;\\n margin: 0;\\n padding: 0;\\n width: 100%;\\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 background-color: lightgray;\\n color: black;\\n }\\n}\\n@layer kol-global {\\n :host {\\n font-size: rem(16);\\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 }\\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 cursor: not-allowed;\\n opacity: 0.5;\\n outline: none;\\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/* For animation technique see https://css-tricks.com/css-grid-can-do-auto-height-transitions/ */\\n@layer kol-component {\\n .collapsible {\\n /* @see https://github.com/public-ui/kolibri/issues/5952 */\\n /*\\n * Inside a button, the caption text is always centered.\\n * So we have to align the text to the left.\\n */\\n }\\n .collapsible__wrapper {\\n display: grid;\\n grid-template-rows: 0fr;\\n overflow: hidden;\\n transition: grid-template-rows 0.3s;\\n /* Forces the element into its own GPU compositing layer (via 3D transform). Helps prevent rendering/layout bugs (e.g. #7511) and may improve animation performance. */\\n transform: translateZ(0);\\n }\\n .collapsible__wrapper-animation {\\n min-height: 0;\\n transition: visibility 0.3s;\\n /* This property is important to keep in sync with the visual transition (template-rows). Without it interactive elements within the accordion would stay focusable. */\\n visibility: hidden;\\n }\\n .collapsible--open .collapsible__wrapper {\\n grid-template-rows: 1fr;\\n }\\n .collapsible--open .collapsible__wrapper-animation {\\n visibility: visible;\\n }\\n @media (prefers-reduced-motion) {\\n .collapsible__wrapper-animation, .collapsible__wrapper {\\n transition-duration: 0s;\\n }\\n }\\n @media print {\\n :not(.collapsible--open) .collapsible__wrapper-animation {\\n display: none;\\n }\\n }\\n .collapsible__heading-button button .kol-span {\\n justify-items: start;\\n }\\n}\\n@layer kol-component {\\n .kol-details__heading-button {\\n display: flex;\\n }\\n .kol-details__heading-button .kol-button {\\n min-height: auto;\\n }\\n .kol-details__heading-button .kol-button .kol-span__label {\\n border-bottom-color: grey;\\n border-bottom-style: solid;\\n }\\n .collapsible--open .kol-details__heading-button .kol-icon::part(icon) {\\n transform: rotate(90deg);\\n }\\n}\";\nconst KolDetailsDefaultStyle0 = defaultStyleCss;\n\nconst KolDetails = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.nonce = nonce();\n this.catchRef = (ref) => {\n this.buttonWcRef = ref;\n };\n this.handleOnClick = (event) => {\n this._open = !this._open;\n clearTimeout(this.toggleTimeout);\n this.toggleTimeout = setTimeout(() => {\n var _a, _b;\n if (this.host) {\n dispatchDomEvent(this.host, KolEvent.toggle, Boolean(this._open));\n }\n (_b = (_a = this.state._on) === null || _a === void 0 ? void 0 : _a.onToggle) === null || _b === void 0 ? void 0 : _b.call(_a, event, Boolean(this._open));\n }, 25);\n };\n this._disabled = false;\n this._label = undefined;\n this._level = 0;\n this._on = undefined;\n this._open = false;\n this.state = {\n _label: '',\n _level: 0,\n _on: {},\n };\n }\n async kolFocus() {\n var _a;\n await ((_a = this.buttonWcRef) === null || _a === void 0 ? void 0 : _a.kolFocus());\n }\n render() {\n const { _open, _label, _disabled, _level } = this.state;\n const rootClass = 'kol-details';\n const props = {\n id: this.nonce,\n label: _label,\n open: _open,\n disabled: _disabled,\n level: _level,\n onClick: this.handleOnClick,\n class: rootClass,\n HeadingProps: { class: `${rootClass}__heading` },\n HeadingButtonProps: {\n ref: this.catchRef,\n class: `${rootClass}__heading-button`,\n _icons: 'codicon codicon-chevron-right',\n },\n ContentProps: {\n class: `${rootClass}__content indented-text`,\n wrapperClass: `${rootClass}__wrapper`,\n animationClass: `${rootClass}__wrapper-animation`,\n },\n };\n return (h(KolCollapsibleFc, Object.assign({ key: '66ab4c4a61c0ac220f184174cc77bf5038e0b65c' }, props), h(\"slot\", { key: '121a4d8fd086db1177eccc25b5b6a860741b1917' })));\n }\n validateDisabled(value) {\n validateDisabled(this, value);\n }\n validateLabel(value) {\n validateLabel(this, value, {\n required: true,\n });\n }\n validateLevel(value) {\n watchHeadingLevel(this, value);\n }\n validateOn(on) {\n validateDetailsCallbacks(this, on);\n }\n validateOpen(value) {\n validateOpen(this, value);\n }\n componentWillLoad() {\n this.validateDisabled(this._disabled);\n this.validateLabel(this._label);\n this.validateLevel(this._level);\n this.validateOn(this._on);\n this.validateOpen(this._open);\n }\n get host() { return getElement(this); }\n static get watchers() { return {\n \"_disabled\": [\"validateDisabled\"],\n \"_label\": [\"validateLabel\"],\n \"_level\": [\"validateLevel\"],\n \"_on\": [\"validateOn\"],\n \"_open\": [\"validateOpen\"]\n }; }\n};\nKolDetails.style = {\n default: KolDetailsDefaultStyle0\n};\n\nexport { KolDetails as kol_details };\n\n//# sourceMappingURL=kol-details.entry.js.map"],"names":["validateDetailsCallbacks","component","value","watchValidator","defaultStyleCss","KolDetailsDefaultStyle0","KolDetails","hostRef","registerInstance","nonce","ref","event","_a","_b","dispatchDomEvent","KolEvent","_open","_label","_disabled","_level","rootClass","props","h","KolCollapsibleFc","validateDisabled","validateLabel","watchHeadingLevel","on","validateOpen","getElement"],"mappings":"sfAAA;AAAA;AAAA,GAiBA,MAAMA,EAA2B,CAACC,EAAWC,IAAU,CACnDC,EAAeF,EAAW,MAAQC,GAAU,OAAOA,GAAU,UAAYA,IAAU,KAAM,IAAI,IAAI,CAAC,4CAA4C,CAAC,EAAGA,CAAK,CAC3J,EAEME,EAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA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,GAAG,EACxB,KAAK,aAAa,KAAK,KAAK,CACpC,CACI,IAAI,MAAO,CAAE,OAAO2B,EAAW,IAAI,CAAE,CACrC,WAAW,UAAW,CAAE,MAAO,CAC3B,UAAa,CAAC,kBAAkB,EAChC,OAAU,CAAC,eAAe,EAC1B,OAAU,CAAC,eAAe,EAC1B,IAAO,CAAC,YAAY,EACpB,MAAS,CAAC,cAAc,CAChC,CAAM,CACN,EACAvB,EAAW,MAAQ,CACf,QAASD,CACb"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{r as o,
|
|
1
|
+
import{r as o,h as t,l as a,H as l,s,d as r,a as d,g as h}from"./index-BxGEzp9g.js";import{c}from"./clsx-09a06a12-BT_IL7Fz.js";import{v as p}from"./align-d2572387-DI9nOt4Y.js";import{v as m}from"./has-closer-798e8f4d-Bye-nyIY.js";import{v as f}from"./label-bf9966d0-pCJpRuFg.js";import{v as b}from"./open-385de2c9-DTNDalEs.js";/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/const
|
|
3
|
+
*/const u=`/*
|
|
4
4
|
* This file contains all rules for accessibility.
|
|
5
5
|
*/
|
|
6
6
|
@layer kol-global {
|
|
@@ -225,5 +225,55 @@ import{r as o,d as i,a,h as t,e as l,s,g as r}from"./index-DfN2w0z5.js";import{t
|
|
|
225
225
|
top: 0;
|
|
226
226
|
right: 0;
|
|
227
227
|
}
|
|
228
|
-
}
|
|
229
|
-
|
|
228
|
+
}
|
|
229
|
+
@layer kol-component {
|
|
230
|
+
.kol-drawer__dialog {
|
|
231
|
+
padding: 0;
|
|
232
|
+
border: none;
|
|
233
|
+
}
|
|
234
|
+
.kol-drawer__wrapper {
|
|
235
|
+
position: fixed;
|
|
236
|
+
width: auto;
|
|
237
|
+
overflow: auto;
|
|
238
|
+
}
|
|
239
|
+
.kol-drawer__wrapper--left {
|
|
240
|
+
top: 0;
|
|
241
|
+
left: 0;
|
|
242
|
+
height: 100vh;
|
|
243
|
+
max-height: 100%;
|
|
244
|
+
}
|
|
245
|
+
.kol-drawer__wrapper--left .kol-drawer__content {
|
|
246
|
+
height: 100%;
|
|
247
|
+
}
|
|
248
|
+
.kol-drawer__wrapper--right {
|
|
249
|
+
top: 0;
|
|
250
|
+
right: 0;
|
|
251
|
+
height: 100vh;
|
|
252
|
+
max-height: 100%;
|
|
253
|
+
}
|
|
254
|
+
.kol-drawer__wrapper--right .kol-drawer__content {
|
|
255
|
+
height: 100%;
|
|
256
|
+
}
|
|
257
|
+
.kol-drawer__wrapper--top {
|
|
258
|
+
left: 0;
|
|
259
|
+
top: 0;
|
|
260
|
+
width: 100vw;
|
|
261
|
+
max-width: 100%;
|
|
262
|
+
}
|
|
263
|
+
.kol-drawer__wrapper--top .kol-drawer__content {
|
|
264
|
+
width: 100%;
|
|
265
|
+
}
|
|
266
|
+
.kol-drawer__wrapper--bottom {
|
|
267
|
+
left: 0;
|
|
268
|
+
bottom: 0;
|
|
269
|
+
width: 100vw;
|
|
270
|
+
max-width: 100%;
|
|
271
|
+
}
|
|
272
|
+
.kol-drawer__wrapper--bottom .kol-drawer__content {
|
|
273
|
+
width: 100%;
|
|
274
|
+
}
|
|
275
|
+
.kol-drawer__content {
|
|
276
|
+
position: relative;
|
|
277
|
+
}
|
|
278
|
+
}`,w=u,g=class{constructor(n){o(this,n),this.getWrapperRef=e=>this.dialogWrapperElement=e,this.getRef=e=>{this.dialogElement=e,setTimeout(()=>{this.openOrCloseBasedOnState()})},this._open=void 0,this._align=void 0,this._hasCloser=!1,this._label=void 0,this._on=void 0,this.state={_label:"",_open:!1,_align:"left"}}async open(){var n;this.state=Object.assign(Object.assign({},this.state),{_open:!0}),(n=this.dialogElement)===null||n===void 0||n.showModal()}async close(){this.state=Object.assign(Object.assign({},this.state),{_open:!1});const n=this.dialogWrapperElement;if(!n)return;window.getComputedStyle(n).animationName==="none"&&this.handleCloseDialog()}renderDialogContent(){const n=this.state._align;return t(a,{ref:this.getWrapperRef,class:c("kol-drawer__wrapper",`kol-drawer__wrapper--${n}`,{"kol-drawer__wrapper--open":this.state._open,"kol-drawer__wrapper--is-closing":this.state._open===!1}),_label:this.state._label,_hasCloser:this.state._hasCloser,_on:{onClose:()=>{this.close()}}},t("div",{class:"kol-drawer__content"},t("slot",null)))}render(){return t(l,{key:"6a688ecbd6f17156a13d429abdfbbbd26aa45878",class:"kol-drawer"},t("dialog",{key:"cfbfa7d3eaf54db3915d4941b154c6ac21f99fc8","aria-label":this.state._label,class:"kol-drawer__dialog",ref:this.getRef},this.renderDialogContent()))}validateLabel(n){f(this,n,{required:!0})}validateAlign(n){p(this,n)}validateHasCloser(n){m(this,n)}validateOpen(n){typeof n=="boolean"&&(b(this,n),this.dialogElement&&this.openOrCloseBasedOnState())}async openOrCloseBasedOnState(){this.state._open?await this.open():await this.close()}validateOn(n){if(typeof n=="object"&&n!==null){const e={};typeof n.onClose=="function"&&(e.onClose=n.onClose),s(this,"_on",e)}}handleCloseDialog(){var n,e,i;(n=this.dialogElement)===null||n===void 0||n.close(),(i=(e=this._on)===null||e===void 0?void 0:e.onClose)===null||i===void 0||i.call(e),this.host&&r(this.host,d.close)}handleClose(){(async()=>(await this.close(),this.handleCloseDialog()))()}handleAnimationEnd(n){n.animationName.includes("slideOut")&&this.handleCloseDialog()}componentDidLoad(){var n,e;(n=this.dialogElement)===null||n===void 0||n.addEventListener("animationend",this.handleAnimationEnd.bind(this)),(e=this.dialogElement)===null||e===void 0||e.addEventListener("close",this.handleClose.bind(this))}disconnectedCallback(){var n,e;(n=this.dialogElement)===null||n===void 0||n.removeEventListener("animationend",this.handleAnimationEnd.bind(this)),(e=this.dialogElement)===null||e===void 0||e.removeEventListener("close",this.handleClose.bind(this))}componentWillLoad(){this.validateLabel(this._label),this.validateOpen(this._open),this.validateAlign(this._align),this.validateHasCloser(this._hasCloser),this.validateOn(this._on)}get host(){return h(this)}static get watchers(){return{_label:["validateLabel"],_align:["validateAlign"],_hasCloser:["validateHasCloser"],_open:["validateOpen"],_on:["validateOn"]}}};g.style={default:w};export{g as kol_drawer};
|
|
279
|
+
//# sourceMappingURL=kol-drawer.entry-DCNITre-.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kol-drawer.entry-DCNITre-.js","sources":["../../../../components/dist/esm/kol-drawer.entry.js"],"sourcesContent":["/*!\n * KoliBri - The accessible HTML-Standard\n */\nimport { r as registerInstance, h, H as Host, g as getElement } from './index-02bdb302.js';\nimport { l as setState } from './index-ebe5a881.js';\nimport { d as dispatchDomEvent, K as KolEvent } from './events-bad0a075.js';\nimport { c as clsx } from './clsx-09a06a12.js';\nimport { g as KolCardWcTag } from './component-names-553d8bfa.js';\nimport { v as validateAlign } from './align-d2572387.js';\nimport { v as validateHasCloser } from './has-closer-798e8f4d.js';\nimport { v as validateLabel } from './label-bf9966d0.js';\nimport { v as validateOpen } from './open-385de2c9.js';\n\nconst defaultStyleCss = \"/*\\n * This file contains all rules for accessibility.\\n */\\n@layer kol-global {\\n :host {\\n /*\\n * Minimum size of interactive elements.\\n */\\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\\n /*\\n * No element should be used without a background and font color whose contrast ratio has\\n * not been checked. By initially setting the background color to white and the font color\\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\\n */\\n background-color: white;\\n color: black;\\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 * 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 * This rule enables the word dividing for all texts. That is important for high zoom levels.\\n */\\n word-break: break-word;\\n /*\\n * Word spacing is required for all texts.\\n */\\n word-spacing: inherit;\\n }\\n /*\\n * All interactive elements should have a minimum size of rem(44).\\n */\\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\\n /* option, */\\n /* select, */\\n /* textarea, */\\n [role=button],\\n button:not([role=link]),\\n .kol-input .input {\\n min-height: var(--a11y-min-size);\\n min-width: 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 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}\\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 clip: rect(0 0 0 0);\\n clip-path: inset(50%);\\n height: 1px;\\n overflow: hidden;\\n position: absolute;\\n white-space: nowrap;\\n width: 1px;\\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 border: none;\\n margin: 0;\\n padding: 0;\\n width: 100%;\\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 background-color: lightgray;\\n color: black;\\n }\\n}\\n@layer kol-global {\\n :host {\\n font-size: rem(16);\\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 }\\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 cursor: not-allowed;\\n opacity: 0.5;\\n outline: none;\\n }\\n [aria-disabled=true]:focus .kol-span,\\n [disabled]:focus .kol-span {\\n outline: none !important;\\n }\\n}\\n@layer kol-component {\\n .kol-tooltip {\\n display: contents;\\n }\\n .kol-tooltip__floating {\\n animation-duration: 0.25s;\\n animation-iteration-count: 1;\\n animation-name: fadeInOpacity;\\n animation-timing-function: ease-in;\\n display: none;\\n position: fixed;\\n visibility: hidden;\\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\\n top: 0;\\n left: 0;\\n max-width: 90vw;\\n max-height: 90vh;\\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\\n width: var(--kol-tooltip-width);\\n }\\n .kol-tooltip__arrow {\\n background-color: #fff;\\n color: #000;\\n height: calc(10rem / var(--kolibri-root-font-size, 16));\\n position: absolute;\\n transform: rotate(45deg);\\n width: calc(10rem / var(--kolibri-root-font-size, 16));\\n z-index: 999;\\n }\\n .kol-tooltip__content {\\n background-color: #fff;\\n color: #000;\\n position: relative;\\n z-index: 1000;\\n }\\n @keyframes fadeInOpacity {\\n 0% {\\n opacity: 0;\\n }\\n 100% {\\n opacity: 1;\\n }\\n }\\n}\\n@layer kol-component {\\n .kol-card {\\n height: 100%;\\n position: relative;\\n /* Visible with forced colors */\\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\\n }\\n .kol-card__close-button {\\n position: absolute;\\n top: 0;\\n right: 0;\\n }\\n}\\n@layer kol-component {\\n .kol-drawer__dialog {\\n padding: 0;\\n border: none;\\n }\\n .kol-drawer__wrapper {\\n position: fixed;\\n width: auto;\\n overflow: auto;\\n }\\n .kol-drawer__wrapper--left {\\n top: 0;\\n left: 0;\\n height: 100vh;\\n max-height: 100%;\\n }\\n .kol-drawer__wrapper--left .kol-drawer__content {\\n height: 100%;\\n }\\n .kol-drawer__wrapper--right {\\n top: 0;\\n right: 0;\\n height: 100vh;\\n max-height: 100%;\\n }\\n .kol-drawer__wrapper--right .kol-drawer__content {\\n height: 100%;\\n }\\n .kol-drawer__wrapper--top {\\n left: 0;\\n top: 0;\\n width: 100vw;\\n max-width: 100%;\\n }\\n .kol-drawer__wrapper--top .kol-drawer__content {\\n width: 100%;\\n }\\n .kol-drawer__wrapper--bottom {\\n left: 0;\\n bottom: 0;\\n width: 100vw;\\n max-width: 100%;\\n }\\n .kol-drawer__wrapper--bottom .kol-drawer__content {\\n width: 100%;\\n }\\n .kol-drawer__content {\\n position: relative;\\n }\\n}\";\nconst KolDrawerDefaultStyle0 = defaultStyleCss;\n\nconst KolDrawer = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.getWrapperRef = (el) => (this.dialogWrapperElement = el);\n this.getRef = (el) => {\n this.dialogElement = el;\n setTimeout(() => {\n void this.openOrCloseBasedOnState();\n });\n };\n this._open = undefined;\n this._align = undefined;\n this._hasCloser = false;\n this._label = undefined;\n this._on = undefined;\n this.state = {\n _label: '',\n _open: false,\n _align: 'left',\n };\n }\n async open() {\n var _a;\n this.state = Object.assign(Object.assign({}, this.state), { _open: true });\n (_a = this.dialogElement) === null || _a === void 0 ? void 0 : _a.showModal();\n }\n async close() {\n this.state = Object.assign(Object.assign({}, this.state), { _open: false });\n const wrapper = this.dialogWrapperElement;\n if (!wrapper)\n return;\n const computedStyle = window.getComputedStyle(wrapper);\n if (computedStyle.animationName === 'none') {\n this.handleCloseDialog();\n }\n }\n renderDialogContent() {\n const align = this.state._align;\n return (h(KolCardWcTag, { ref: this.getWrapperRef, class: clsx(`kol-drawer__wrapper`, `kol-drawer__wrapper--${align}`, {\n 'kol-drawer__wrapper--open': this.state._open,\n 'kol-drawer__wrapper--is-closing': this.state._open === false,\n }), _label: this.state._label, _hasCloser: this.state._hasCloser, _on: {\n onClose: () => {\n void this.close();\n },\n } }, h(\"div\", { class: \"kol-drawer__content\" }, h(\"slot\", null))));\n }\n render() {\n return (h(Host, { key: '6a688ecbd6f17156a13d429abdfbbbd26aa45878', class: \"kol-drawer\" }, h(\"dialog\", { key: 'cfbfa7d3eaf54db3915d4941b154c6ac21f99fc8', \"aria-label\": this.state._label, class: \"kol-drawer__dialog\", ref: this.getRef }, this.renderDialogContent())));\n }\n validateLabel(value) {\n validateLabel(this, value, {\n required: true,\n });\n }\n validateAlign(value) {\n validateAlign(this, value);\n }\n validateHasCloser(value) {\n validateHasCloser(this, value);\n }\n validateOpen(value) {\n if (typeof value === 'boolean') {\n validateOpen(this, value);\n if (this.dialogElement) {\n void this.openOrCloseBasedOnState();\n }\n }\n }\n async openOrCloseBasedOnState() {\n if (this.state._open) {\n await this.open();\n }\n else {\n await this.close();\n }\n }\n validateOn(value) {\n if (typeof value === 'object' && value !== null) {\n const callbacks = {};\n if (typeof value.onClose === 'function') {\n callbacks.onClose = value.onClose;\n }\n setState(this, '_on', callbacks);\n }\n }\n handleCloseDialog() {\n var _a, _b, _c;\n (_a = this.dialogElement) === null || _a === void 0 ? void 0 : _a.close();\n (_c = (_b = this._on) === null || _b === void 0 ? void 0 : _b.onClose) === null || _c === void 0 ? void 0 : _c.call(_b);\n if (this.host) {\n dispatchDomEvent(this.host, KolEvent.close);\n }\n }\n handleClose() {\n void (async () => {\n await this.close();\n this.handleCloseDialog();\n })();\n }\n handleAnimationEnd(e) {\n const animationEvent = e;\n if (animationEvent.animationName.includes('slideOut')) {\n this.handleCloseDialog();\n }\n }\n componentDidLoad() {\n var _a, _b;\n (_a = this.dialogElement) === null || _a === void 0 ? void 0 : _a.addEventListener('animationend', this.handleAnimationEnd.bind(this));\n (_b = this.dialogElement) === null || _b === void 0 ? void 0 : _b.addEventListener('close', this.handleClose.bind(this));\n }\n disconnectedCallback() {\n var _a, _b;\n (_a = this.dialogElement) === null || _a === void 0 ? void 0 : _a.removeEventListener('animationend', this.handleAnimationEnd.bind(this));\n (_b = this.dialogElement) === null || _b === void 0 ? void 0 : _b.removeEventListener('close', this.handleClose.bind(this));\n }\n componentWillLoad() {\n this.validateLabel(this._label);\n this.validateOpen(this._open);\n this.validateAlign(this._align);\n this.validateHasCloser(this._hasCloser);\n this.validateOn(this._on);\n }\n get host() { return getElement(this); }\n static get watchers() { return {\n \"_label\": [\"validateLabel\"],\n \"_align\": [\"validateAlign\"],\n \"_hasCloser\": [\"validateHasCloser\"],\n \"_open\": [\"validateOpen\"],\n \"_on\": [\"validateOn\"]\n }; }\n};\nKolDrawer.style = {\n default: KolDrawerDefaultStyle0\n};\n\nexport { KolDrawer as kol_drawer };\n\n//# sourceMappingURL=kol-drawer.entry.js.map"],"names":["defaultStyleCss","KolDrawerDefaultStyle0","KolDrawer","hostRef","registerInstance","el","_a","wrapper","align","h","KolCardWcTag","clsx","Host","value","validateLabel","validateAlign","validateHasCloser","validateOpen","callbacks","setState","_b","_c","dispatchDomEvent","KolEvent","e","getElement"],"mappings":"uUAAA;AAAA;AAAA,GAaA,MAAMA,EAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;A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C,CAC/H,CACI,sBAAuB,CACnB,IAAId,EAAIc,GACPd,EAAK,KAAK,iBAAmB,MAAQA,IAAO,QAAkBA,EAAG,oBAAoB,eAAgB,KAAK,mBAAmB,KAAK,IAAI,CAAC,GACvIc,EAAK,KAAK,iBAAmB,MAAQA,IAAO,QAAkBA,EAAG,oBAAoB,QAAS,KAAK,YAAY,KAAK,IAAI,CAAC,CAClI,CACI,mBAAoB,CAChB,KAAK,cAAc,KAAK,MAAM,EAC9B,KAAK,aAAa,KAAK,KAAK,EAC5B,KAAK,cAAc,KAAK,MAAM,EAC9B,KAAK,kBAAkB,KAAK,UAAU,EACtC,KAAK,WAAW,KAAK,GAAG,CAChC,CACI,IAAI,MAAO,CAAE,OAAOK,EAAW,IAAI,CAAE,CACrC,WAAW,UAAW,CAAE,MAAO,CAC3B,OAAU,CAAC,eAAe,EAC1B,OAAU,CAAC,eAAe,EAC1B,WAAc,CAAC,mBAAmB,EAClC,MAAS,CAAC,cAAc,EACxB,IAAO,CAAC,YAAY,CAC5B,CAAM,CACN,EACAvB,EAAU,MAAQ,CACd,QAASD,CACb"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as a,d as l,a as s,h as i,j as d,H as h,
|
|
1
|
+
import{r as a,d as l,a as s,h as i,j as d,H as h,m as c,n as m,g as u,w as f}from"./index-BxGEzp9g.js";import{t as r}from"./i18n-260f0fe9-CwpuaVcz.js";import{K as p}from"./Alert-c6ac1427-DOfUkHaF.js";import"./tslib.es6-1173d062-BAJoBDh7.js";import"./clsx-09a06a12-BT_IL7Fz.js";import"./Heading-31a470a8-xZ2htjK-.js";/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/const b=(n,t)=>{f(n,"errorList",e=>Array.isArray(e)&&e.find(o=>!(typeof o=="string"||typeof o=="function"))===void 0,new Set(["string","function"]),t)},k=`/*
|
|
4
4
|
* This file contains all rules for accessibility.
|
|
@@ -261,5 +261,5 @@ import{r as a,d as l,a as s,h as i,j as d,H as h,l as c,m,g as u,w as f}from"./i
|
|
|
261
261
|
outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
|
-
}`,y=k,_=class{constructor(n){a(this,n),this.onSubmit=t=>{var e,o;t.preventDefault(),typeof((e=this.state._on)===null||e===void 0?void 0:e.onSubmit)=="function"&&((o=this.state._on)===null||o===void 0||o.onSubmit(t)),this.host&&l(this.host,s.submit)},this.onReset=t=>{var e,o;t.preventDefault(),typeof((e=this.state._on)===null||e===void 0?void 0:e.onReset)=="function"&&((o=this.state._on)===null||o===void 0||o.onReset(t)),this.host&&l(this.host,s.reset)},this.handleLinkClick=t=>{const e=document.querySelector(t);e&&typeof e.focus=="function"&&(e.scrollIntoView({behavior:"smooth"}),e.focus())},this.setBlockElement=t=>this.errorListBlock=t,this.setFirstLinkElement=t=>this.errorListFirstLink=t,this._on=void 0,this._requiredText=!0,this._errorList=void 0,this.state={}}renderErrorList(n){return i(p,{class:"kol-form__alert",ref:this.setBlockElement,type:"error",variant:"card",label:r("kol-error-list-message")},i("nav",{"aria-label":r("kol-error-list")},i("ul",null,n==null?void 0:n.map((t,e)=>i("li",{key:e},i(d,{class:"kol-form__link",_href:"",_label:t.message,_on:{onClick:typeof t.selector=="string"?()=>this.handleLinkClick(String(t.selector)):t.selector},ref:e===0?this.setFirstLinkElement:void 0}))))))}renderFormElement(){return i("form",{class:"kol-form",method:"post",onSubmit:this.onSubmit,onReset:this.onReset,autoComplete:"off",noValidate:!0},this.state._requiredText===!0?i("p",null,i("div",{class:"kol-form__mandatory-fields-hint"},r("kol-form-description"))):typeof this.state._requiredText=="string"&&this.state._requiredText.length>0?i("p",null,i("div",{class:"kol-form__mandatory-fields-hint"},this.state._requiredText)):null,i("slot",null))}render(){const n=Array.isArray(this._errorList)&&this._errorList.length>0;return i(h,{key:"
|
|
265
|
-
//# sourceMappingURL=kol-form.entry-
|
|
264
|
+
}`,y=k,_=class{constructor(n){a(this,n),this.onSubmit=t=>{var e,o;t.preventDefault(),typeof((e=this.state._on)===null||e===void 0?void 0:e.onSubmit)=="function"&&((o=this.state._on)===null||o===void 0||o.onSubmit(t)),this.host&&l(this.host,s.submit)},this.onReset=t=>{var e,o;t.preventDefault(),typeof((e=this.state._on)===null||e===void 0?void 0:e.onReset)=="function"&&((o=this.state._on)===null||o===void 0||o.onReset(t)),this.host&&l(this.host,s.reset)},this.handleLinkClick=t=>{const e=document.querySelector(t);e&&typeof e.focus=="function"&&(e.scrollIntoView({behavior:"smooth"}),e.focus())},this.setBlockElement=t=>this.errorListBlock=t,this.setFirstLinkElement=t=>this.errorListFirstLink=t,this._on=void 0,this._requiredText=!0,this._errorList=void 0,this.state={}}renderErrorList(n){return i(p,{class:"kol-form__alert",ref:this.setBlockElement,type:"error",variant:"card",label:r("kol-error-list-message")},i("nav",{"aria-label":r("kol-error-list")},i("ul",null,n==null?void 0:n.map((t,e)=>i("li",{key:e},i(d,{class:"kol-form__link",_href:"",_label:t.message,_on:{onClick:typeof t.selector=="string"?()=>this.handleLinkClick(String(t.selector)):t.selector},ref:e===0?this.setFirstLinkElement:void 0}))))))}renderFormElement(){return i("form",{class:"kol-form",method:"post",onSubmit:this.onSubmit,onReset:this.onReset,autoComplete:"off",noValidate:!0},this.state._requiredText===!0?i("p",null,i("div",{class:"kol-form__mandatory-fields-hint"},r("kol-form-description"))):typeof this.state._requiredText=="string"&&this.state._requiredText.length>0?i("p",null,i("div",{class:"kol-form__mandatory-fields-hint"},this.state._requiredText)):null,i("slot",null))}render(){const n=Array.isArray(this._errorList)&&this._errorList.length>0;return i(h,{key:"48650c4c31e4e6f05a85ee46557e8007357c52b6"},n&&this.renderErrorList(this._errorList),this.renderFormElement())}scrollToErrorList(){var n;(n=this.errorListBlock)===null||n===void 0||n.scrollIntoView({behavior:"smooth",block:"start"}),setTimeout(()=>{var t,e;(e=(t=this.errorListFirstLink)===null||t===void 0?void 0:t.querySelector("a"))===null||e===void 0||e.focus()},250)}async focusErrorList(){return this.scrollToErrorList(),Promise.resolve()}validateOn(n){typeof n=="object"&&n!==null&&(this.state=Object.assign(Object.assign({},this.state),{_on:n}))}validateRequiredText(n){typeof n=="boolean"?c(this,"_requiredText",n):m(this,"_requiredText",n)}validateErrorList(n){b(this,n)}componentWillLoad(){this.validateOn(this._on),this.validateRequiredText(this._requiredText),this.validateErrorList(this._errorList)}get host(){return u(this)}static get watchers(){return{_on:["validateOn"],_requiredText:["validateRequiredText"],_errorList:["validateErrorList"]}}};_.style={default:y};export{_ as kol_form};
|
|
265
|
+
//# sourceMappingURL=kol-form.entry-B6wQPmvT.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kol-form.entry-Dv8YnTBJ.js","sources":["../../../../components/dist/esm/kol-form.entry.js"],"sourcesContent":["/*!\n * KoliBri - The accessible HTML-Standard\n */\nimport { r as registerInstance, h, H as Host, g as getElement } from './index-1ed13705.js';\nimport { w as watchValidator, i as watchBoolean, B as watchString } from './index-ebe5a881.js';\nimport { t as translate } from './i18n-260f0fe9.js';\nimport { f as KolLinkWcTag } from './component-names-7924d82a.js';\nimport { K as KolAlertFc } from './Alert-112aec59.js';\nimport { d as dispatchDomEvent, K as KolEvent } from './events-bad0a075.js';\nimport './i18n-45224cc3.js';\nimport './tslib.es6-1173d062.js';\nimport './clsx-09a06a12.js';\nimport './bem-e4c3a2e6.js';\nimport './browser-f629a56a.js';\nimport './Heading-733c8dda.js';\n\nconst validateErrorList = (component, value) => {\n watchValidator(component, 'errorList', (value) => Array.isArray(value) && value.find((v) => !(typeof v === 'string' || typeof v === 'function')) === undefined, new Set(['string', 'function']), value);\n};\n\nconst defaultStyleCss = \"/*\\n * This file contains all rules for accessibility.\\n */\\n@layer kol-global {\\n :host {\\n /*\\n * Minimum size of interactive elements.\\n */\\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\\n /*\\n * No element should be used without a background and font color whose contrast ratio has\\n * not been checked. By initially setting the background color to white and the font color\\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\\n */\\n background-color: white;\\n color: black;\\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 * 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 * This rule enables the word dividing for all texts. That is important for high zoom levels.\\n */\\n word-break: break-word;\\n /*\\n * Word spacing is required for all texts.\\n */\\n word-spacing: inherit;\\n }\\n /*\\n * All interactive elements should have a minimum size of rem(44).\\n */\\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\\n /* option, */\\n /* select, */\\n /* textarea, */\\n [role=button],\\n button:not([role=link]),\\n .kol-input .input {\\n min-height: var(--a11y-min-size);\\n min-width: 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 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}\\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 clip: rect(0 0 0 0);\\n clip-path: inset(50%);\\n height: 1px;\\n overflow: hidden;\\n position: absolute;\\n white-space: nowrap;\\n width: 1px;\\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 border: none;\\n margin: 0;\\n padding: 0;\\n width: 100%;\\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 background-color: lightgray;\\n color: black;\\n }\\n}\\n@layer kol-global {\\n :host {\\n font-size: rem(16);\\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 }\\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 cursor: not-allowed;\\n opacity: 0.5;\\n outline: none;\\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 .kol-tooltip {\\n display: contents;\\n }\\n .kol-tooltip__floating {\\n animation-duration: 0.25s;\\n animation-iteration-count: 1;\\n animation-name: fadeInOpacity;\\n animation-timing-function: ease-in;\\n display: none;\\n position: fixed;\\n visibility: hidden;\\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\\n top: 0;\\n left: 0;\\n max-width: 90vw;\\n max-height: 90vh;\\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\\n width: var(--kol-tooltip-width);\\n }\\n .kol-tooltip__arrow {\\n background-color: #fff;\\n color: #000;\\n height: calc(10rem / var(--kolibri-root-font-size, 16));\\n position: absolute;\\n transform: rotate(45deg);\\n width: calc(10rem / var(--kolibri-root-font-size, 16));\\n z-index: 999;\\n }\\n .kol-tooltip__content {\\n background-color: #fff;\\n color: #000;\\n position: relative;\\n z-index: 1000;\\n }\\n @keyframes fadeInOpacity {\\n 0% {\\n opacity: 0;\\n }\\n 100% {\\n opacity: 1;\\n }\\n }\\n}\\n@layer kol-component {\\n @layer kol-component {\\n :host {\\n display: inline-block;\\n }\\n .kol-link {\\n align-items: baseline;\\n display: inline-flex;\\n place-items: center;\\n text-align: left;\\n text-decoration-line: none;\\n }\\n .kol-link--standalone {\\n min-height: var(--a11y-min-size);\\n min-width: var(--a11y-min-size);\\n }\\n .kol-link__text .kol-span__label {\\n text-decoration-line: underline;\\n }\\n .kol-link:is(:focus, :hover):not([aria-disabled], [disabled]) .kol-link__text .kol-span__label {\\n text-decoration-thickness: 0.2em;\\n }\\n .kol-link__icon {\\n display: inline-flex;\\n margin-left: calc(8rem / var(--kolibri-root-font-size, 16));\\n }\\n }\\n @layer kol-component {\\n .kol-alert {\\n display: grid;\\n }\\n .kol-alert__container {\\n place-items: center;\\n display: flex;\\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(1rem / var(--kolibri-root-font-size, 16));\\n }\\n }\\n}\";\nconst KolFormDefaultStyle0 = defaultStyleCss;\n\nconst KolForm = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.onSubmit = (event) => {\n var _a, _b;\n event.preventDefault();\n if (typeof ((_a = this.state._on) === null || _a === void 0 ? void 0 : _a.onSubmit) === 'function') {\n (_b = this.state._on) === null || _b === void 0 ? void 0 : _b.onSubmit(event);\n }\n if (this.host) {\n dispatchDomEvent(this.host, KolEvent.submit);\n }\n };\n this.onReset = (event) => {\n var _a, _b;\n event.preventDefault();\n if (typeof ((_a = this.state._on) === null || _a === void 0 ? void 0 : _a.onReset) === 'function') {\n (_b = this.state._on) === null || _b === void 0 ? void 0 : _b.onReset(event);\n }\n if (this.host) {\n dispatchDomEvent(this.host, KolEvent.reset);\n }\n };\n this.handleLinkClick = (selector) => {\n const targetElement = document.querySelector(selector);\n if (targetElement && typeof targetElement.focus === 'function') {\n targetElement.scrollIntoView({ behavior: 'smooth' });\n targetElement.focus();\n }\n };\n this.setBlockElement = (el) => (this.errorListBlock = el);\n this.setFirstLinkElement = (el) => (this.errorListFirstLink = el);\n this._on = undefined;\n this._requiredText = true;\n this._errorList = undefined;\n this.state = {};\n }\n renderErrorList(errorList) {\n return (h(KolAlertFc, { class: \"kol-form__alert\", ref: this.setBlockElement, type: \"error\", variant: \"card\", label: translate('kol-error-list-message') }, h(\"nav\", { \"aria-label\": translate('kol-error-list') }, h(\"ul\", null, errorList === null || errorList === void 0 ? void 0 : errorList.map((error, index) => (h(\"li\", { key: index }, h(KolLinkWcTag, { class: \"kol-form__link\", _href: \"\", _label: error.message, _on: { onClick: typeof error.selector === 'string' ? () => this.handleLinkClick(String(error.selector)) : error.selector }, ref: index === 0 ? this.setFirstLinkElement : undefined }))))))));\n }\n renderFormElement() {\n return (h(\"form\", { class: \"kol-form\", method: \"post\", onSubmit: this.onSubmit, onReset: this.onReset, autoComplete: \"off\", noValidate: true }, this.state._requiredText === true ? (h(\"p\", null, h(\"div\", { class: \"kol-form__mandatory-fields-hint\" }, translate('kol-form-description')))) : typeof this.state._requiredText === 'string' && this.state._requiredText.length > 0 ? (h(\"p\", null, h(\"div\", { class: \"kol-form__mandatory-fields-hint\" }, this.state._requiredText))) : null, h(\"slot\", null)));\n }\n render() {\n const hasErrorList = Array.isArray(this._errorList) && this._errorList.length > 0;\n return (h(Host, { key: '3cfeeb7596783c154fadf43a4646dcd74070a920' }, hasErrorList && this.renderErrorList(this._errorList), this.renderFormElement()));\n }\n scrollToErrorList() {\n var _a;\n (_a = this.errorListBlock) === null || _a === void 0 ? void 0 : _a.scrollIntoView({\n behavior: 'smooth',\n block: 'start',\n });\n setTimeout(() => {\n var _a, _b;\n (_b = (_a = this.errorListFirstLink) === null || _a === void 0 ? void 0 : _a.querySelector('a')) === null || _b === void 0 ? void 0 : _b.focus();\n }, 250);\n }\n async focusErrorList() {\n this.scrollToErrorList();\n return Promise.resolve();\n }\n validateOn(value) {\n if (typeof value === 'object' && value !== null) {\n this.state = Object.assign(Object.assign({}, this.state), { _on: value });\n }\n }\n validateRequiredText(value) {\n if (typeof value === 'boolean') {\n watchBoolean(this, '_requiredText', value);\n }\n else {\n watchString(this, '_requiredText', value);\n }\n }\n validateErrorList(value) {\n validateErrorList(this, value);\n }\n componentWillLoad() {\n this.validateOn(this._on);\n this.validateRequiredText(this._requiredText);\n this.validateErrorList(this._errorList);\n }\n get host() { return getElement(this); }\n static get watchers() { return {\n \"_on\": [\"validateOn\"],\n \"_requiredText\": [\"validateRequiredText\"],\n \"_errorList\": [\"validateErrorList\"]\n }; }\n};\nKolForm.style = {\n default: KolFormDefaultStyle0\n};\n\nexport { KolForm as kol_form };\n\n//# sourceMappingURL=kol-form.entry.js.map"],"names":["validateErrorList","component","value","watchValidator","v","defaultStyleCss","KolFormDefaultStyle0","KolForm","hostRef","registerInstance","event","_a","_b","dispatchDomEvent","KolEvent","selector","targetElement","el","errorList","h","KolAlertFc","translate","error","index","KolLinkWcTag","hasErrorList","Host","watchBoolean","watchString","getElement"],"mappings":"uTAAA;AAAA;AAAA,GAgBA,MAAMA,EAAoB,CAACC,EAAWC,IAAU,CAC5CC,EAAeF,EAAW,YAAcC,GAAU,MAAM,QAAQA,CAAK,GAAKA,EAAM,KAAME,GAAM,EAAE,OAAOA,GAAM,UAAY,OAAOA,GAAM,WAAW,IAAM,OAAW,IAAI,IAAI,CAAC,SAAU,UAAU,CAAC,EAAGF,CAAK,CAC1M,EAEMG,EAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;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,IAAIA,EAAIC,GACPA,GAAMD,EAAK,KAAK,sBAAwB,MAAQA,IAAO,OAAS,OAASA,EAAG,cAAc,GAAG,KAAO,MAAQC,IAAO,QAAkBA,EAAG,MAAO,CACnJ,EAAE,GAAG,CACd,CACI,MAAM,gBAAiB,CACnB,YAAK,kBAAmB,EACjB,QAAQ,QAAS,CAChC,CACI,WAAWV,EAAO,CACV,OAAOA,GAAU,UAAYA,IAAU,OACvC,KAAK,MAAQ,OAAO,OAAO,OAAO,OAAO,GAAI,KAAK,KAAK,EAAG,CAAE,IAAKA,CAAK,CAAE,EAEpF,CACI,qBAAqBA,EAAO,CACpB,OAAOA,GAAU,UACjByB,EAAa,KAAM,gBAAiBzB,CAAK,EAGzC0B,EAAY,KAAM,gBAAiB1B,CAAK,CAEpD,CACI,kBAAkBA,EAAO,CACrBF,EAAkB,KAAME,CAAK,CACrC,CACI,mBAAoB,CAChB,KAAK,WAAW,KAAK,GAAG,EACxB,KAAK,qBAAqB,KAAK,aAAa,EAC5C,KAAK,kBAAkB,KAAK,UAAU,CAC9C,CACI,IAAI,MAAO,CAAE,OAAO2B,EAAW,IAAI,CAAE,CACrC,WAAW,UAAW,CAAE,MAAO,CAC3B,IAAO,CAAC,YAAY,EACpB,cAAiB,CAAC,sBAAsB,EACxC,WAAc,CAAC,mBAAmB,CAC1C,CAAM,CACN,EACAtB,EAAQ,MAAQ,CACZ,QAASD,CACb"}
|
|
1
|
+
{"version":3,"file":"kol-form.entry-B6wQPmvT.js","sources":["../../../../components/dist/esm/kol-form.entry.js"],"sourcesContent":["/*!\n * KoliBri - The accessible HTML-Standard\n */\nimport { r as registerInstance, h, H as Host, g as getElement } from './index-02bdb302.js';\nimport { w as watchValidator, i as watchBoolean, B as watchString } from './index-ebe5a881.js';\nimport { t as translate } from './i18n-260f0fe9.js';\nimport { f as KolLinkWcTag } from './component-names-553d8bfa.js';\nimport { K as KolAlertFc } from './Alert-c6ac1427.js';\nimport { d as dispatchDomEvent, K as KolEvent } from './events-bad0a075.js';\nimport './i18n-45224cc3.js';\nimport './tslib.es6-1173d062.js';\nimport './clsx-09a06a12.js';\nimport './bem-e4c3a2e6.js';\nimport './browser-f629a56a.js';\nimport './Heading-31a470a8.js';\n\nconst validateErrorList = (component, value) => {\n watchValidator(component, 'errorList', (value) => Array.isArray(value) && value.find((v) => !(typeof v === 'string' || typeof v === 'function')) === undefined, new Set(['string', 'function']), value);\n};\n\nconst defaultStyleCss = \"/*\\n * This file contains all rules for accessibility.\\n */\\n@layer kol-global {\\n :host {\\n /*\\n * Minimum size of interactive elements.\\n */\\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\\n /*\\n * No element should be used without a background and font color whose contrast ratio has\\n * not been checked. By initially setting the background color to white and the font color\\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\\n */\\n background-color: white;\\n color: black;\\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 * 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 * This rule enables the word dividing for all texts. That is important for high zoom levels.\\n */\\n word-break: break-word;\\n /*\\n * Word spacing is required for all texts.\\n */\\n word-spacing: inherit;\\n }\\n /*\\n * All interactive elements should have a minimum size of rem(44).\\n */\\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\\n /* option, */\\n /* select, */\\n /* textarea, */\\n [role=button],\\n button:not([role=link]),\\n .kol-input .input {\\n min-height: var(--a11y-min-size);\\n min-width: 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 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}\\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 clip: rect(0 0 0 0);\\n clip-path: inset(50%);\\n height: 1px;\\n overflow: hidden;\\n position: absolute;\\n white-space: nowrap;\\n width: 1px;\\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 border: none;\\n margin: 0;\\n padding: 0;\\n width: 100%;\\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 background-color: lightgray;\\n color: black;\\n }\\n}\\n@layer kol-global {\\n :host {\\n font-size: rem(16);\\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 }\\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 cursor: not-allowed;\\n opacity: 0.5;\\n outline: none;\\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 .kol-tooltip {\\n display: contents;\\n }\\n .kol-tooltip__floating {\\n animation-duration: 0.25s;\\n animation-iteration-count: 1;\\n animation-name: fadeInOpacity;\\n animation-timing-function: ease-in;\\n display: none;\\n position: fixed;\\n visibility: hidden;\\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\\n top: 0;\\n left: 0;\\n max-width: 90vw;\\n max-height: 90vh;\\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\\n width: var(--kol-tooltip-width);\\n }\\n .kol-tooltip__arrow {\\n background-color: #fff;\\n color: #000;\\n height: calc(10rem / var(--kolibri-root-font-size, 16));\\n position: absolute;\\n transform: rotate(45deg);\\n width: calc(10rem / var(--kolibri-root-font-size, 16));\\n z-index: 999;\\n }\\n .kol-tooltip__content {\\n background-color: #fff;\\n color: #000;\\n position: relative;\\n z-index: 1000;\\n }\\n @keyframes fadeInOpacity {\\n 0% {\\n opacity: 0;\\n }\\n 100% {\\n opacity: 1;\\n }\\n }\\n}\\n@layer kol-component {\\n @layer kol-component {\\n :host {\\n display: inline-block;\\n }\\n .kol-link {\\n align-items: baseline;\\n display: inline-flex;\\n place-items: center;\\n text-align: left;\\n text-decoration-line: none;\\n }\\n .kol-link--standalone {\\n min-height: var(--a11y-min-size);\\n min-width: var(--a11y-min-size);\\n }\\n .kol-link__text .kol-span__label {\\n text-decoration-line: underline;\\n }\\n .kol-link:is(:focus, :hover):not([aria-disabled], [disabled]) .kol-link__text .kol-span__label {\\n text-decoration-thickness: 0.2em;\\n }\\n .kol-link__icon {\\n display: inline-flex;\\n margin-left: calc(8rem / var(--kolibri-root-font-size, 16));\\n }\\n }\\n @layer kol-component {\\n .kol-alert {\\n display: grid;\\n }\\n .kol-alert__container {\\n place-items: center;\\n display: flex;\\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(1rem / var(--kolibri-root-font-size, 16));\\n }\\n }\\n}\";\nconst KolFormDefaultStyle0 = defaultStyleCss;\n\nconst KolForm = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.onSubmit = (event) => {\n var _a, _b;\n event.preventDefault();\n if (typeof ((_a = this.state._on) === null || _a === void 0 ? void 0 : _a.onSubmit) === 'function') {\n (_b = this.state._on) === null || _b === void 0 ? void 0 : _b.onSubmit(event);\n }\n if (this.host) {\n dispatchDomEvent(this.host, KolEvent.submit);\n }\n };\n this.onReset = (event) => {\n var _a, _b;\n event.preventDefault();\n if (typeof ((_a = this.state._on) === null || _a === void 0 ? void 0 : _a.onReset) === 'function') {\n (_b = this.state._on) === null || _b === void 0 ? void 0 : _b.onReset(event);\n }\n if (this.host) {\n dispatchDomEvent(this.host, KolEvent.reset);\n }\n };\n this.handleLinkClick = (selector) => {\n const targetElement = document.querySelector(selector);\n if (targetElement && typeof targetElement.focus === 'function') {\n targetElement.scrollIntoView({ behavior: 'smooth' });\n targetElement.focus();\n }\n };\n this.setBlockElement = (el) => (this.errorListBlock = el);\n this.setFirstLinkElement = (el) => (this.errorListFirstLink = el);\n this._on = undefined;\n this._requiredText = true;\n this._errorList = undefined;\n this.state = {};\n }\n renderErrorList(errorList) {\n return (h(KolAlertFc, { class: \"kol-form__alert\", ref: this.setBlockElement, type: \"error\", variant: \"card\", label: translate('kol-error-list-message') }, h(\"nav\", { \"aria-label\": translate('kol-error-list') }, h(\"ul\", null, errorList === null || errorList === void 0 ? void 0 : errorList.map((error, index) => (h(\"li\", { key: index }, h(KolLinkWcTag, { class: \"kol-form__link\", _href: \"\", _label: error.message, _on: { onClick: typeof error.selector === 'string' ? () => this.handleLinkClick(String(error.selector)) : error.selector }, ref: index === 0 ? this.setFirstLinkElement : undefined }))))))));\n }\n renderFormElement() {\n return (h(\"form\", { class: \"kol-form\", method: \"post\", onSubmit: this.onSubmit, onReset: this.onReset, autoComplete: \"off\", noValidate: true }, this.state._requiredText === true ? (h(\"p\", null, h(\"div\", { class: \"kol-form__mandatory-fields-hint\" }, translate('kol-form-description')))) : typeof this.state._requiredText === 'string' && this.state._requiredText.length > 0 ? (h(\"p\", null, h(\"div\", { class: \"kol-form__mandatory-fields-hint\" }, this.state._requiredText))) : null, h(\"slot\", null)));\n }\n render() {\n const hasErrorList = Array.isArray(this._errorList) && this._errorList.length > 0;\n return (h(Host, { key: '48650c4c31e4e6f05a85ee46557e8007357c52b6' }, hasErrorList && this.renderErrorList(this._errorList), this.renderFormElement()));\n }\n scrollToErrorList() {\n var _a;\n (_a = this.errorListBlock) === null || _a === void 0 ? void 0 : _a.scrollIntoView({\n behavior: 'smooth',\n block: 'start',\n });\n setTimeout(() => {\n var _a, _b;\n (_b = (_a = this.errorListFirstLink) === null || _a === void 0 ? void 0 : _a.querySelector('a')) === null || _b === void 0 ? void 0 : _b.focus();\n }, 250);\n }\n async focusErrorList() {\n this.scrollToErrorList();\n return Promise.resolve();\n }\n validateOn(value) {\n if (typeof value === 'object' && value !== null) {\n this.state = Object.assign(Object.assign({}, this.state), { _on: value });\n }\n }\n validateRequiredText(value) {\n if (typeof value === 'boolean') {\n watchBoolean(this, '_requiredText', value);\n }\n else {\n watchString(this, '_requiredText', value);\n }\n }\n validateErrorList(value) {\n validateErrorList(this, value);\n }\n componentWillLoad() {\n this.validateOn(this._on);\n this.validateRequiredText(this._requiredText);\n this.validateErrorList(this._errorList);\n }\n get host() { return getElement(this); }\n static get watchers() { return {\n \"_on\": [\"validateOn\"],\n \"_requiredText\": [\"validateRequiredText\"],\n \"_errorList\": [\"validateErrorList\"]\n }; }\n};\nKolForm.style = {\n default: KolFormDefaultStyle0\n};\n\nexport { KolForm as kol_form };\n\n//# sourceMappingURL=kol-form.entry.js.map"],"names":["validateErrorList","component","value","watchValidator","v","defaultStyleCss","KolFormDefaultStyle0","KolForm","hostRef","registerInstance","event","_a","_b","dispatchDomEvent","KolEvent","selector","targetElement","el","errorList","h","KolAlertFc","translate","error","index","KolLinkWcTag","hasErrorList","Host","watchBoolean","watchString","getElement"],"mappings":"4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ACpB,cAAiB,CAAC,sBAAsB,EACxC,WAAc,CAAC,mBAAmB,CAC1C,CAAM,CACN,EACAtB,EAAQ,MAAQ,CACZ,QAASD,CACb"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as a,
|
|
1
|
+
import{r as a,n as o,h as e}from"./index-BxGEzp9g.js";import"./i18n-260f0fe9-CwpuaVcz.js";import{K as l}from"./Heading-31a470a8-xZ2htjK-.js";import"./markdown-f827f2ac-Bx43QwDK.js";import{w as s}from"./validation-152ea092-CgEo5ZRb.js";import{a as r}from"./label-bf9966d0-pCJpRuFg.js";import"./tslib.es6-1173d062-BAJoBDh7.js";import"./clsx-09a06a12-BT_IL7Fz.js";/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/const d=`/*
|
|
4
4
|
* This file contains all rules for accessibility.
|
|
@@ -168,5 +168,5 @@ import{r as a,m as o,h as e}from"./index-DfN2w0z5.js";import"./i18n-260f0fe9-Dp1
|
|
|
168
168
|
[disabled]:focus .kol-span {
|
|
169
169
|
outline: none !important;
|
|
170
170
|
}
|
|
171
|
-
}`,h=d,c=class{constructor(n){a(this,n),this._label=void 0,this._level=0,this._secondaryHeadline=void 0,this.state={_label:"",_level:0}}validateLabel(n){r(this,n)}validateLevel(n){s(this,n)}validateSecondaryHeadline(n){o(this,"_secondaryHeadline",n)}componentWillLoad(){this.validateLabel(this._label),this.validateLevel(this._level),this.validateSecondaryHeadline(this._secondaryHeadline)}render(){const{_secondaryHeadline:n,_label:t,_level:i}=this.state;return e(l,{key:"
|
|
172
|
-
//# sourceMappingURL=kol-heading.entry-
|
|
171
|
+
}`,h=d,c=class{constructor(n){a(this,n),this._label=void 0,this._level=0,this._secondaryHeadline=void 0,this.state={_label:"",_level:0}}validateLabel(n){r(this,n)}validateLevel(n){s(this,n)}validateSecondaryHeadline(n){o(this,"_secondaryHeadline",n)}componentWillLoad(){this.validateLabel(this._label),this.validateLevel(this._level),this.validateSecondaryHeadline(this._secondaryHeadline)}render(){const{_secondaryHeadline:n,_label:t,_level:i}=this.state;return e(l,{key:"bca6f091d8c15ebbd3cd448deb11b8c21253369c",secondaryHeadline:n,level:i},t,e("slot",{key:"16c1177a2937b4a31efd828e26fb316f365049a7",name:"expert",slot:"expert"}))}static get watchers(){return{_label:["validateLabel"],_level:["validateLevel"],_secondaryHeadline:["validateSecondaryHeadline"]}}};c.style={default:h};export{c as kol_heading};
|
|
172
|
+
//# sourceMappingURL=kol-heading.entry-Bh0LVZ8r.js.map
|