@public-ui/components 3.1.5 → 3.1.6-rc.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/custom-elements.json +1 -1
- package/dist/cjs/{Alert-mCR64nxk.js → Alert-C0INEa4o.js} +1 -1
- package/dist/cjs/{Alert-mCR64nxk.js.map → Alert-C0INEa4o.js.map} +1 -1
- package/dist/cjs/{Collapsible-CPgNL5hu.js → Collapsible-Dqjd6gAP.js} +1 -1
- package/dist/cjs/{Collapsible-CPgNL5hu.js.map → Collapsible-Dqjd6gAP.js.map} +1 -1
- package/dist/cjs/{CustomSuggestionsOptionsGroup-D6HWIysf.js → CustomSuggestionsOptionsGroup-CE9nQSKc.js} +1 -1
- package/dist/cjs/{CustomSuggestionsOptionsGroup-D6HWIysf.js.map → CustomSuggestionsOptionsGroup-CE9nQSKc.js.map} +1 -1
- package/dist/cjs/{FieldControlStateWrapper-DGj1e-LD.js → FieldControlStateWrapper-D1C5zd6E.js} +1 -1
- package/dist/cjs/{FieldControlStateWrapper-DGj1e-LD.js.map → FieldControlStateWrapper-D1C5zd6E.js.map} +1 -1
- package/dist/cjs/{FormFieldStateWrapper-DUH0bZBI.js → FormFieldStateWrapper-DBlcaLMT.js} +1 -1
- package/dist/cjs/{FormFieldStateWrapper-DUH0bZBI.js.map → FormFieldStateWrapper-DBlcaLMT.js.map} +1 -1
- package/dist/cjs/{Heading-DBmws8fM.js → Heading-DuCqHTff.js} +1 -1
- package/dist/cjs/{Heading-DBmws8fM.js.map → Heading-DuCqHTff.js.map} +1 -1
- package/dist/cjs/Icon-Dg-2Cr_k.js +4 -0
- package/dist/cjs/{Icon-C-grDOCk.js.map → Icon-Dg-2Cr_k.js.map} +1 -1
- package/dist/cjs/Input-BPIYGm-G.js +4 -0
- package/dist/cjs/{Input-Cb9NHyj4.js.map → Input-BPIYGm-G.js.map} +1 -1
- package/dist/cjs/{InputStateWrapper-CkMktvMs.js → InputStateWrapper-L8rq4Ckd.js} +1 -1
- package/dist/cjs/{InputStateWrapper-CkMktvMs.js.map → InputStateWrapper-L8rq4Ckd.js.map} +1 -1
- package/dist/cjs/{InternalUnderlinedBadgeText-D3OkpxlU.js → InternalUnderlinedBadgeText-DaavMTkL.js} +1 -1
- package/dist/cjs/{InternalUnderlinedBadgeText-D3OkpxlU.js.map → InternalUnderlinedBadgeText-DaavMTkL.js.map} +1 -1
- package/dist/cjs/{Span-C3uiPMEU.js → Span-CbaxwA3R.js} +1 -1
- package/dist/cjs/{Span-C3uiPMEU.js.map → Span-CbaxwA3R.js.map} +1 -1
- package/dist/cjs/{access-and-short-key-EWdizi7S.js → access-and-short-key-cYJfDJ1j.js} +1 -1
- package/dist/cjs/{access-and-short-key-EWdizi7S.js.map → access-and-short-key-cYJfDJ1j.js.map} +1 -1
- package/dist/cjs/{align-BvnLznZ4.js → align-Dtut5Fiz.js} +1 -1
- package/dist/cjs/{align-BvnLznZ4.js.map → align-Dtut5Fiz.js.map} +1 -1
- package/dist/cjs/{align-floating-elements-D-G9RrEe.js → align-floating-elements-CMVTqHYz.js} +1 -1
- package/dist/cjs/{align-floating-elements-D-G9RrEe.js.map → align-floating-elements-CMVTqHYz.js.map} +1 -1
- package/dist/cjs/app-globals-Bz0pnjkk.js +4 -0
- package/dist/cjs/{app-globals-ljVTF0rO.js.map → app-globals-Bz0pnjkk.js.map} +1 -1
- package/dist/cjs/{associated.controller-Dp4SXbsC.js → associated.controller-BgusUXtn.js} +1 -1
- package/dist/cjs/{associated.controller-Dp4SXbsC.js.map → associated.controller-BgusUXtn.js.map} +1 -1
- package/dist/cjs/{auto-complete-DT37qX-N.js → auto-complete-BUJCkIjF.js} +1 -1
- package/dist/cjs/{auto-complete-DT37qX-N.js.map → auto-complete-BUJCkIjF.js.map} +1 -1
- package/dist/cjs/{bem-DE6jrc8Y.js → bem-Dt1__rWQ.js} +1 -1
- package/dist/cjs/{bem-DE6jrc8Y.js.map → bem-Dt1__rWQ.js.map} +1 -1
- package/dist/cjs/{bem-aB7Nev9p.js → bem-_PRDxils.js} +1 -1
- package/dist/cjs/{bem-aB7Nev9p.js.map → bem-_PRDxils.js.map} +1 -1
- package/dist/cjs/{bootstrap-Zten2MCl.js → bootstrap-DkYOTzL7.js} +1 -1
- package/dist/cjs/{bootstrap-Zten2MCl.js.map → bootstrap-DkYOTzL7.js.map} +1 -1
- package/dist/cjs/{browser-CvZ8WdIB.js → browser-gAw63jlJ.js} +1 -1
- package/dist/cjs/{browser-CvZ8WdIB.js.map → browser-gAw63jlJ.js.map} +1 -1
- package/dist/cjs/{button-variant-Cle3OZNC.js → button-variant--LVZfN2F.js} +1 -1
- package/dist/cjs/{button-variant-Cle3OZNC.js.map → button-variant--LVZfN2F.js.map} +1 -1
- package/dist/cjs/{color-owhPod99.js → color-BfEgkNv-.js} +1 -1
- package/dist/cjs/{color-owhPod99.js.map → color-BfEgkNv-.js.map} +1 -1
- package/dist/cjs/common-fbOREjnk.js +4 -0
- package/dist/cjs/common-fbOREjnk.js.map +1 -0
- package/dist/cjs/{controller-BTfkRiVA.js → controller-BMR-6Wn1.js} +1 -1
- package/dist/cjs/{controller-BTfkRiVA.js.map → controller-BMR-6Wn1.js.map} +1 -1
- package/dist/cjs/{controller-DCggKP3u.js → controller-Bhj8F__J.js} +1 -1
- package/dist/cjs/{controller-DCggKP3u.js.map → controller-Bhj8F__J.js.map} +1 -1
- package/dist/cjs/{controller-BHbTTR-F.js → controller-BpsQHWON.js} +1 -1
- package/dist/cjs/{controller-BHbTTR-F.js.map → controller-BpsQHWON.js.map} +1 -1
- package/dist/cjs/{controller-_FeII4_f.js → controller-ByPq8iFm.js} +1 -1
- package/dist/cjs/{controller-_FeII4_f.js.map → controller-ByPq8iFm.js.map} +1 -1
- package/dist/cjs/{controller-icon-CMguTaJV.js → controller-icon-C4WoVdI5.js} +1 -1
- package/dist/cjs/{controller-icon-CMguTaJV.js.map → controller-icon-C4WoVdI5.js.map} +1 -1
- package/dist/cjs/{custom-class-aOTfucNn.js → custom-class-Bc613E8d.js} +1 -1
- package/dist/cjs/{custom-class-aOTfucNn.js.map → custom-class-Bc613E8d.js.map} +1 -1
- package/dist/cjs/{dev.utils-Beuoz3qC.js → dev.utils-DIkGkgEv.js} +1 -1
- package/dist/cjs/{dev.utils-Beuoz3qC.js.map → dev.utils-DIkGkgEv.js.map} +1 -1
- package/dist/cjs/{devtools-D98Ry_Aa.js → devtools-DKnIEH8I.js} +1 -1
- package/dist/cjs/{devtools-D98Ry_Aa.js.map → devtools-DKnIEH8I.js.map} +1 -1
- package/dist/cjs/{disabled-Bc2Xtc8q.js → disabled-CjbU0XMf.js} +1 -1
- package/dist/cjs/{disabled-Bc2Xtc8q.js.map → disabled-CjbU0XMf.js.map} +1 -1
- package/dist/cjs/{has-closer-UpOeu585.js → has-closer-FyD6kAnH.js} +1 -1
- package/dist/cjs/{has-closer-UpOeu585.js.map → has-closer-FyD6kAnH.js.map} +1 -1
- package/dist/cjs/{hide-label-de2zFW_C.js → hide-label-CJEWDGld.js} +1 -1
- package/dist/cjs/{hide-label-de2zFW_C.js.map → hide-label-CJEWDGld.js.map} +1 -1
- package/dist/cjs/{href-DZkeu0a9.js → href-B0U9HdZ0.js} +1 -1
- package/dist/cjs/{href-DZkeu0a9.js.map → href-B0U9HdZ0.js.map} +1 -1
- package/dist/cjs/{i18n-BFSf3Am7.js → i18n-tZbVsXOP.js} +1 -1
- package/dist/cjs/{i18n-BFSf3Am7.js.map → i18n-tZbVsXOP.js.map} +1 -1
- package/dist/cjs/{icons-CRn0K9Kh.js → icons-BQtD9LHm.js} +1 -1
- package/dist/cjs/{icons-CRn0K9Kh.js.map → icons-BQtD9LHm.js.map} +1 -1
- package/dist/cjs/{image-source-indWBlV8.js → image-source-Bz6dpAht.js} +1 -1
- package/dist/cjs/{image-source-indWBlV8.js.map → image-source-Bz6dpAht.js.map} +1 -1
- package/dist/cjs/index-i9ujuPNz.js +4 -0
- package/dist/cjs/index-i9ujuPNz.js.map +1 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{inline-ZQxrr77I.js → inline-Cfsv1ZCs.js} +1 -1
- package/dist/cjs/{inline-ZQxrr77I.js.map → inline-Cfsv1ZCs.js.map} +1 -1
- package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
- package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
- package/dist/cjs/kol-alert-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-alert.cjs.entry.js +1 -1
- package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
- package/dist/cjs/kol-badge.cjs.entry.js +1 -1
- package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
- package/dist/cjs/kol-button-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-button.cjs.entry.js +1 -1
- package/dist/cjs/kol-card-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-card.cjs.entry.js +1 -1
- package/dist/cjs/kol-combobox.cjs.entry.js +1 -1
- package/dist/cjs/kol-details.cjs.entry.js +1 -1
- package/dist/cjs/kol-drawer.cjs.entry.js +1 -1
- package/dist/cjs/kol-form.cjs.entry.js +1 -1
- package/dist/cjs/kol-heading.cjs.entry.js +1 -1
- package/dist/cjs/kol-icon.cjs.entry.js +1 -1
- package/dist/cjs/kol-image.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
- package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
- package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
- package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-link.cjs.entry.js +1 -1
- package/dist/cjs/kol-modal.cjs.entry.js +1 -1
- package/dist/cjs/kol-nav.cjs.entry.js +1 -1
- package/dist/cjs/kol-pagination-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
- package/dist/cjs/kol-popover-button-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-popover-button.cjs.entry.js +1 -1
- package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-progress.cjs.entry.js +1 -1
- package/dist/cjs/kol-quote.cjs.entry.js +1 -1
- package/dist/cjs/kol-select-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-select.cjs.entry.js +1 -1
- package/dist/cjs/kol-single-select.cjs.entry.js +1 -1
- package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
- package/dist/cjs/kol-spin.cjs.entry.js +1 -1
- package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
- package/dist/cjs/kol-table-settings-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-table-stateful.cjs.entry.js +1 -1
- package/dist/cjs/kol-table-stateless-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-table-stateless.cjs.entry.js +1 -1
- package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
- package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
- package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
- package/dist/cjs/kol-toolbar.cjs.entry.js +1 -1
- package/dist/cjs/kol-tooltip-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-tree-item-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-tree-item.cjs.entry.js +1 -1
- package/dist/cjs/kol-tree-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-tree.cjs.entry.js +1 -1
- package/dist/cjs/kol-version.cjs.entry.js +1 -1
- package/dist/cjs/kolibri.cjs.js +1 -1
- package/dist/cjs/{label-CX406qjX.js → label-yQoat33v.js} +1 -1
- package/dist/cjs/{label-CX406qjX.js.map → label-yQoat33v.js.map} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{markdown-B72tSE0i.js → markdown-CwSfeJJT.js} +1 -1
- package/dist/cjs/{markdown-B72tSE0i.js.map → markdown-CwSfeJJT.js.map} +1 -1
- package/dist/cjs/{max-length-behavior-evsdYeN9.js → max-length-behavior-CeYxG-aM.js} +1 -1
- package/dist/cjs/{max-length-behavior-evsdYeN9.js.map → max-length-behavior-CeYxG-aM.js.map} +1 -1
- package/dist/cjs/{multiple-BuTKl3E9.js → multiple-VhEYxI91.js} +1 -1
- package/dist/cjs/{multiple-BuTKl3E9.js.map → multiple-VhEYxI91.js.map} +1 -1
- package/dist/cjs/open-DqPrLo6Q.js +4 -0
- package/dist/cjs/{open-C8VCGwTX.js.map → open-DqPrLo6Q.js.map} +1 -1
- package/dist/cjs/{orientation-DZjzsgbn.js → orientation-By_T1PnG.js} +1 -1
- package/dist/cjs/{orientation-DZjzsgbn.js.map → orientation-By_T1PnG.js.map} +1 -1
- package/dist/cjs/placeholder-DhBoOpyW.js +4 -0
- package/dist/cjs/{placeholder-DAXFP03v.js.map → placeholder-DhBoOpyW.js.map} +1 -1
- package/dist/cjs/{read-only-DSckZTkU.js → read-only-D_io4EtU.js} +1 -1
- package/dist/cjs/{read-only-DSckZTkU.js.map → read-only-D_io4EtU.js.map} +1 -1
- package/dist/cjs/{required-Cnc-dfBy.js → required-C8h2XXMn.js} +1 -1
- package/dist/cjs/{required-Cnc-dfBy.js.map → required-C8h2XXMn.js.map} +1 -1
- package/dist/cjs/{rows-Cl4IqdM6.js → rows-BrLT48RS.js} +1 -1
- package/dist/cjs/{rows-Cl4IqdM6.js.map → rows-BrLT48RS.js.map} +1 -1
- package/dist/cjs/{show-DaYX5cuZ.js → show-CZHSeBba.js} +1 -1
- package/dist/cjs/{show-DaYX5cuZ.js.map → show-CZHSeBba.js.map} +1 -1
- package/dist/cjs/{spell-check-Czgxu3Yh.js → spell-check-D-4NQhiD.js} +1 -1
- package/dist/cjs/{spell-check-Czgxu3Yh.js.map → spell-check-D-4NQhiD.js.map} +1 -1
- package/dist/cjs/{suggestions-8MHEkeE4.js → suggestions-C8k7-Kwt.js} +1 -1
- package/dist/cjs/{suggestions-8MHEkeE4.js.map → suggestions-C8k7-Kwt.js.map} +1 -1
- package/dist/cjs/{table-settings-2mytsVOI.js → table-settings-BCrLFMcl.js} +1 -1
- package/dist/cjs/{table-settings-2mytsVOI.js.map → table-settings-BCrLFMcl.js.map} +1 -1
- package/dist/cjs/test-component.cjs.entry.js +1 -1
- package/dist/cjs/tooltip-align-C4iwRI3k.js +4 -0
- package/dist/cjs/{tooltip-align-BwhIb1gz.js.map → tooltip-align-C4iwRI3k.js.map} +1 -1
- package/dist/cjs/{unique-nav-labels-CabrDu03.js → unique-nav-labels-CPRZSIdX.js} +1 -1
- package/dist/cjs/{unique-nav-labels-CabrDu03.js.map → unique-nav-labels-CPRZSIdX.js.map} +1 -1
- package/dist/cjs/{validation-ALHQv2sB.js → validation-D7BH0p-Z.js} +1 -1
- package/dist/cjs/{validation-ALHQv2sB.js.map → validation-D7BH0p-Z.js.map} +1 -1
- package/dist/cjs/{validation-DvDJrGdL.js → validation-giGoG0qc.js} +1 -1
- package/dist/cjs/{validation-DvDJrGdL.js.map → validation-giGoG0qc.js.map} +1 -1
- package/dist/components/access-and-short-key.js +1 -1
- package/dist/components/associated.controller.js +1 -1
- package/dist/components/bootstrap.js +1 -1
- package/dist/components/button-variant.js +1 -1
- package/dist/components/color.js +1 -1
- package/dist/components/common.js +1 -1
- package/dist/components/common.js.map +1 -1
- package/dist/components/controller.js +1 -1
- package/dist/components/controller2.js +1 -1
- package/dist/components/controller3.js +1 -1
- package/dist/components/controller5.js +1 -1
- package/dist/components/custom-class.js +1 -1
- package/dist/components/devtools.js +1 -1
- package/dist/components/disabled.js +1 -1
- package/dist/components/has-closer.js +1 -1
- package/dist/components/hide-label.js +1 -1
- package/dist/components/href.js +1 -1
- package/dist/components/icons.js +1 -1
- package/dist/components/image-source.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/inline.js +1 -1
- package/dist/components/kol-accordion.js +1 -1
- package/dist/components/kol-alert-wc.js +1 -1
- package/dist/components/kol-badge.js +1 -1
- package/dist/components/kol-button-wc.js +1 -1
- package/dist/components/kol-combobox.js +1 -1
- package/dist/components/kol-form.js +1 -1
- package/dist/components/kol-heading.js +1 -1
- package/dist/components/kol-icon.js +1 -1
- package/dist/components/kol-image.js +1 -1
- package/dist/components/kol-input-checkbox.js +1 -1
- package/dist/components/kol-input-color.js +1 -1
- package/dist/components/kol-input-date.js +1 -1
- package/dist/components/kol-input-file.js +1 -1
- package/dist/components/kol-input-password.js +1 -1
- package/dist/components/kol-kolibri.js +1 -1
- package/dist/components/kol-link-wc.js +1 -1
- package/dist/components/kol-modal.js +1 -1
- package/dist/components/kol-nav.js +1 -1
- package/dist/components/kol-pagination-wc.js +1 -1
- package/dist/components/kol-progress.js +1 -1
- package/dist/components/kol-quote.js +1 -1
- package/dist/components/kol-select-wc.js +1 -1
- package/dist/components/kol-single-select.js +1 -1
- package/dist/components/kol-table-stateful.js +1 -1
- package/dist/components/kol-table-stateless-wc.js +1 -1
- package/dist/components/kol-tabs.js +1 -1
- package/dist/components/kol-textarea.js +1 -1
- package/dist/components/kol-toolbar.js +1 -1
- package/dist/components/kol-tooltip-wc.js +1 -1
- package/dist/components/kol-tree-item-wc.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/max-length-behavior.js +1 -1
- package/dist/components/multiple.js +1 -1
- package/dist/components/open.js +1 -1
- package/dist/components/placeholder.js +1 -1
- package/dist/components/read-only.js +1 -1
- package/dist/components/required.js +1 -1
- package/dist/components/rows.js +1 -1
- package/dist/components/show.js +1 -1
- package/dist/components/spell-check.js +1 -1
- package/dist/components/suggestions.js +1 -1
- package/dist/components/table-settings.js +1 -1
- package/dist/components/validation2.js +1 -1
- package/dist/esm/{Alert-D9ud5e41.js → Alert-COGILjC8.js} +1 -1
- package/dist/esm/{Alert-D9ud5e41.js.map → Alert-COGILjC8.js.map} +1 -1
- package/dist/esm/{Collapsible-P3A4TxrI.js → Collapsible-B-p3_ksO.js} +1 -1
- package/dist/esm/{Collapsible-P3A4TxrI.js.map → Collapsible-B-p3_ksO.js.map} +1 -1
- package/dist/esm/{CustomSuggestionsOptionsGroup-C6v0QcDe.js → CustomSuggestionsOptionsGroup-B1gk9OT6.js} +1 -1
- package/dist/{kolibri/CustomSuggestionsOptionsGroup-C6v0QcDe.js.map → esm/CustomSuggestionsOptionsGroup-B1gk9OT6.js.map} +1 -1
- package/dist/esm/{FieldControlStateWrapper-CbhX9GTT.js → FieldControlStateWrapper-G7nwHRtD.js} +1 -1
- package/dist/esm/{FieldControlStateWrapper-CbhX9GTT.js.map → FieldControlStateWrapper-G7nwHRtD.js.map} +1 -1
- package/dist/esm/{FormFieldStateWrapper-Bygx9jNo.js → FormFieldStateWrapper-SDHFvx2M.js} +1 -1
- package/dist/{kolibri/FormFieldStateWrapper-Bygx9jNo.js.map → esm/FormFieldStateWrapper-SDHFvx2M.js.map} +1 -1
- package/dist/esm/{Heading-htOdgBmb.js → Heading-CbaQ3c4l.js} +1 -1
- package/dist/{kolibri/Heading-htOdgBmb.js.map → esm/Heading-CbaQ3c4l.js.map} +1 -1
- package/dist/esm/Icon-B6PFfLiZ.js +4 -0
- package/dist/esm/{Icon-CJlicMRJ.js.map → Icon-B6PFfLiZ.js.map} +1 -1
- package/dist/esm/Input-_p2nAjLZ.js +4 -0
- package/dist/esm/{Input-Be9LDid3.js.map → Input-_p2nAjLZ.js.map} +1 -1
- package/dist/esm/{InputStateWrapper-Dun4iiM9.js → InputStateWrapper-AUPkwsU6.js} +1 -1
- package/dist/esm/{InputStateWrapper-Dun4iiM9.js.map → InputStateWrapper-AUPkwsU6.js.map} +1 -1
- package/dist/esm/{InternalUnderlinedBadgeText-vl7_Qoxw.js → InternalUnderlinedBadgeText-FFadAVgH.js} +1 -1
- package/dist/esm/{InternalUnderlinedBadgeText-vl7_Qoxw.js.map → InternalUnderlinedBadgeText-FFadAVgH.js.map} +1 -1
- package/dist/esm/{Span-DpYoIlZw.js → Span-Cnkc85bt.js} +1 -1
- package/dist/{kolibri/Span-DpYoIlZw.js.map → esm/Span-Cnkc85bt.js.map} +1 -1
- package/dist/esm/{access-and-short-key-mAD3xXKp.js → access-and-short-key-ClYr0_Nk.js} +1 -1
- package/dist/{kolibri/access-and-short-key-mAD3xXKp.js.map → esm/access-and-short-key-ClYr0_Nk.js.map} +1 -1
- package/dist/esm/{align-zs9k2ruM.js → align-C5biD15Z.js} +1 -1
- package/dist/esm/{align-zs9k2ruM.js.map → align-C5biD15Z.js.map} +1 -1
- package/dist/esm/{align-floating-elements-6A9FkBi8.js → align-floating-elements-DrwbCaV9.js} +1 -1
- package/dist/esm/{align-floating-elements-6A9FkBi8.js.map → align-floating-elements-DrwbCaV9.js.map} +1 -1
- package/dist/esm/app-globals-hlZtASuM.js +4 -0
- package/dist/esm/{app-globals-BdYCoDRX.js.map → app-globals-hlZtASuM.js.map} +1 -1
- package/dist/esm/{associated.controller-DZY0qF8S.js → associated.controller-KlwDho9Q.js} +1 -1
- package/dist/{kolibri/associated.controller-DZY0qF8S.js.map → esm/associated.controller-KlwDho9Q.js.map} +1 -1
- package/dist/esm/{auto-complete-DeJJLXfx.js → auto-complete-x50_X25l.js} +1 -1
- package/dist/esm/{auto-complete-DeJJLXfx.js.map → auto-complete-x50_X25l.js.map} +1 -1
- package/dist/esm/{bem-uul3TyEr.js → bem-BDRvg6m5.js} +1 -1
- package/dist/esm/{bem-uul3TyEr.js.map → bem-BDRvg6m5.js.map} +1 -1
- package/dist/esm/{bem-BLtO30eN.js → bem-C3_oAApW.js} +1 -1
- package/dist/esm/{bem-BLtO30eN.js.map → bem-C3_oAApW.js.map} +1 -1
- package/dist/esm/{bootstrap-B_Z5ec6k.js → bootstrap-ltc5IClR.js} +1 -1
- package/dist/{kolibri/bootstrap-B_Z5ec6k.js.map → esm/bootstrap-ltc5IClR.js.map} +1 -1
- package/dist/esm/browser-CF10bTI4.js +4 -0
- package/dist/{kolibri/browser-HdwlrUeU.js.map → esm/browser-CF10bTI4.js.map} +1 -1
- package/dist/esm/{button-variant-neDtqOV-.js → button-variant-Cf__D0pN.js} +1 -1
- package/dist/{kolibri/button-variant-neDtqOV-.js.map → esm/button-variant-Cf__D0pN.js.map} +1 -1
- package/dist/esm/{color-Rjy4ux-w.js → color-DM0xsWqW.js} +1 -1
- package/dist/esm/{color-Rjy4ux-w.js.map → color-DM0xsWqW.js.map} +1 -1
- package/dist/esm/common-DSLyazmV.js +4 -0
- package/dist/esm/common-DSLyazmV.js.map +1 -0
- package/dist/esm/{controller-KFygbHB0.js → controller-BwvfCO_j.js} +1 -1
- package/dist/esm/{controller-KFygbHB0.js.map → controller-BwvfCO_j.js.map} +1 -1
- package/dist/esm/{controller-BsKjyZ3W.js → controller-CFKSdddK.js} +1 -1
- package/dist/esm/{controller-BsKjyZ3W.js.map → controller-CFKSdddK.js.map} +1 -1
- package/dist/esm/{controller-QlJVQTR7.js → controller-CnNH11SE.js} +1 -1
- package/dist/esm/{controller-QlJVQTR7.js.map → controller-CnNH11SE.js.map} +1 -1
- package/dist/esm/{controller-Btg9ItnB.js → controller-DLMCBk2C.js} +1 -1
- package/dist/esm/{controller-Btg9ItnB.js.map → controller-DLMCBk2C.js.map} +1 -1
- package/dist/esm/{controller-icon-D4Q7Hm_x.js → controller-icon-CXUus5Rz.js} +1 -1
- package/dist/esm/{controller-icon-D4Q7Hm_x.js.map → controller-icon-CXUus5Rz.js.map} +1 -1
- package/dist/esm/{custom-class-dk7tJlhh.js → custom-class-ylB8abjG.js} +1 -1
- package/dist/esm/{custom-class-dk7tJlhh.js.map → custom-class-ylB8abjG.js.map} +1 -1
- package/dist/esm/{dev.utils-DyWeFmrg.js → dev.utils-DpGOMUbE.js} +1 -1
- package/dist/{kolibri/dev.utils-DyWeFmrg.js.map → esm/dev.utils-DpGOMUbE.js.map} +1 -1
- package/dist/esm/{devtools-BkaBSMly.js → devtools-ywuokcCF.js} +1 -1
- package/dist/esm/{devtools-BkaBSMly.js.map → devtools-ywuokcCF.js.map} +1 -1
- package/dist/esm/disabled-DiMwn3DM.js +4 -0
- package/dist/esm/{disabled-BWCjJbVt.js.map → disabled-DiMwn3DM.js.map} +1 -1
- package/dist/esm/has-closer-CJ9rIvFk.js +4 -0
- package/dist/esm/{has-closer-CtKB8I6M.js.map → has-closer-CJ9rIvFk.js.map} +1 -1
- package/dist/esm/{hide-label-B7Pi0cle.js → hide-label-BgWBR_XN.js} +1 -1
- package/dist/esm/{hide-label-B7Pi0cle.js.map → hide-label-BgWBR_XN.js.map} +1 -1
- package/dist/esm/href-yc4UG01A.js +4 -0
- package/dist/esm/{href-C62X6aSC.js.map → href-yc4UG01A.js.map} +1 -1
- package/dist/esm/i18n-Cnf3OBCq.js +4 -0
- package/dist/esm/{i18n-DaJ9SqJN.js.map → i18n-Cnf3OBCq.js.map} +1 -1
- package/dist/esm/{icons-vgwIIwAr.js → icons-Aczndst4.js} +1 -1
- package/dist/esm/{icons-vgwIIwAr.js.map → icons-Aczndst4.js.map} +1 -1
- package/dist/esm/image-source-BDiMDqPa.js +4 -0
- package/dist/esm/{image-source-CvUc2vv-.js.map → image-source-BDiMDqPa.js.map} +1 -1
- package/dist/esm/index-CQECRzlf.js +4 -0
- package/dist/esm/index-CQECRzlf.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/inline-D9bA_js9.js +4 -0
- package/dist/esm/{inline-C2QF3Rdx.js.map → inline-D9bA_js9.js.map} +1 -1
- package/dist/esm/kol-abbr.entry.js +1 -1
- package/dist/esm/kol-accordion.entry.js +1 -1
- package/dist/esm/kol-alert-wc.entry.js +1 -1
- package/dist/esm/kol-alert.entry.js +1 -1
- package/dist/esm/kol-avatar-wc.entry.js +1 -1
- package/dist/esm/kol-avatar.entry.js +1 -1
- package/dist/esm/kol-badge.entry.js +1 -1
- package/dist/esm/kol-breadcrumb.entry.js +1 -1
- package/dist/esm/kol-button-link.entry.js +1 -1
- package/dist/esm/kol-button-wc.entry.js +1 -1
- package/dist/esm/kol-button.entry.js +1 -1
- package/dist/esm/kol-card-wc.entry.js +1 -1
- package/dist/esm/kol-card.entry.js +1 -1
- package/dist/esm/kol-combobox.entry.js +1 -1
- package/dist/esm/kol-details.entry.js +1 -1
- package/dist/esm/kol-drawer.entry.js +1 -1
- package/dist/esm/kol-form.entry.js +1 -1
- package/dist/esm/kol-heading.entry.js +1 -1
- package/dist/esm/kol-icon.entry.js +1 -1
- package/dist/esm/kol-image.entry.js +1 -1
- package/dist/esm/kol-input-checkbox.entry.js +1 -1
- package/dist/esm/kol-input-color.entry.js +1 -1
- package/dist/esm/kol-input-date.entry.js +1 -1
- package/dist/esm/kol-input-email.entry.js +1 -1
- package/dist/esm/kol-input-file.entry.js +1 -1
- package/dist/esm/kol-input-number.entry.js +1 -1
- package/dist/esm/kol-input-password.entry.js +1 -1
- package/dist/esm/kol-input-radio.entry.js +1 -1
- package/dist/esm/kol-input-range.entry.js +1 -1
- package/dist/esm/kol-input-text.entry.js +1 -1
- package/dist/esm/kol-kolibri.entry.js +1 -1
- package/dist/esm/kol-link-button.entry.js +1 -1
- package/dist/esm/kol-link-wc.entry.js +1 -1
- package/dist/esm/kol-link.entry.js +1 -1
- package/dist/esm/kol-modal.entry.js +1 -1
- package/dist/esm/kol-nav.entry.js +1 -1
- package/dist/esm/kol-pagination-wc.entry.js +1 -1
- package/dist/esm/kol-pagination.entry.js +1 -1
- package/dist/esm/kol-popover-button-wc.entry.js +1 -1
- package/dist/esm/kol-popover-button.entry.js +1 -1
- package/dist/esm/kol-popover-wc.entry.js +1 -1
- package/dist/esm/kol-progress.entry.js +1 -1
- package/dist/esm/kol-quote.entry.js +1 -1
- package/dist/esm/kol-select-wc.entry.js +1 -1
- package/dist/esm/kol-select.entry.js +1 -1
- package/dist/esm/kol-single-select.entry.js +1 -1
- package/dist/esm/kol-skip-nav.entry.js +1 -1
- package/dist/esm/kol-spin.entry.js +1 -1
- package/dist/esm/kol-split-button.entry.js +1 -1
- package/dist/esm/kol-table-settings-wc.entry.js +1 -1
- package/dist/esm/kol-table-stateful.entry.js +1 -1
- package/dist/esm/kol-table-stateless-wc.entry.js +1 -1
- package/dist/esm/kol-table-stateless.entry.js +1 -1
- package/dist/esm/kol-tabs.entry.js +1 -1
- package/dist/esm/kol-textarea.entry.js +1 -1
- package/dist/esm/kol-toast-container.entry.js +1 -1
- package/dist/esm/kol-toolbar.entry.js +1 -1
- package/dist/esm/kol-tooltip-wc.entry.js +1 -1
- package/dist/esm/kol-tree-item-wc.entry.js +1 -1
- package/dist/esm/kol-tree-item.entry.js +1 -1
- package/dist/esm/kol-tree-wc.entry.js +1 -1
- package/dist/esm/kol-tree.entry.js +1 -1
- package/dist/esm/kol-version.entry.js +1 -1
- package/dist/esm/kolibri.js +1 -1
- package/dist/esm/{label-pIlPsS_A.js → label-BXy03ji8.js} +1 -1
- package/dist/{kolibri/label-pIlPsS_A.js.map → esm/label-BXy03ji8.js.map} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{markdown-B2L4G_gq.js → markdown-Csw3qIlY.js} +1 -1
- package/dist/esm/{markdown-B2L4G_gq.js.map → markdown-Csw3qIlY.js.map} +1 -1
- package/dist/esm/{max-length-behavior-Brcdtags.js → max-length-behavior-vKeUDSvc.js} +1 -1
- package/dist/esm/{max-length-behavior-Brcdtags.js.map → max-length-behavior-vKeUDSvc.js.map} +1 -1
- package/dist/esm/multiple-DSZOJGO5.js +4 -0
- package/dist/esm/{multiple-D_Lhd_Ou.js.map → multiple-DSZOJGO5.js.map} +1 -1
- package/dist/esm/open-DktJ6ugq.js +4 -0
- package/dist/{kolibri/open-BKi_QyJH.js.map → esm/open-DktJ6ugq.js.map} +1 -1
- package/dist/esm/orientation-5lLN209t.js +4 -0
- package/dist/esm/{orientation-DgLUKPfF.js.map → orientation-5lLN209t.js.map} +1 -1
- package/dist/esm/placeholder-BhE590DY.js +4 -0
- package/dist/esm/{placeholder-DaUZigJ8.js.map → placeholder-BhE590DY.js.map} +1 -1
- package/dist/esm/{read-only-BJgT2VC5.js → read-only-DWlXye-O.js} +1 -1
- package/dist/esm/{read-only-BJgT2VC5.js.map → read-only-DWlXye-O.js.map} +1 -1
- package/dist/esm/required-IVUV4TqM.js +4 -0
- package/dist/esm/{required-U8Z2uWB-.js.map → required-IVUV4TqM.js.map} +1 -1
- package/dist/esm/rows-DOUr31b_.js +4 -0
- package/dist/esm/{rows-BxQMw7lW.js.map → rows-DOUr31b_.js.map} +1 -1
- package/dist/esm/{show-Bv---Je2.js → show-B_8OtHEt.js} +1 -1
- package/dist/{kolibri/show-Bv---Je2.js.map → esm/show-B_8OtHEt.js.map} +1 -1
- package/dist/esm/{spell-check-CNVzo7wd.js → spell-check-BI20QOAp.js} +1 -1
- package/dist/esm/{spell-check-CNVzo7wd.js.map → spell-check-BI20QOAp.js.map} +1 -1
- package/dist/esm/{suggestions-iUTn1W4N.js → suggestions-6JKAVLZ_.js} +1 -1
- package/dist/esm/{suggestions-iUTn1W4N.js.map → suggestions-6JKAVLZ_.js.map} +1 -1
- package/dist/esm/{table-settings-BRjvSgT8.js → table-settings-B35o6F7C.js} +1 -1
- package/dist/{kolibri/table-settings-BRjvSgT8.js.map → esm/table-settings-B35o6F7C.js.map} +1 -1
- package/dist/esm/test-component.entry.js +1 -1
- package/dist/esm/tooltip-align-BQ4p2Pen.js +4 -0
- package/dist/esm/{tooltip-align-CD1KA6X0.js.map → tooltip-align-BQ4p2Pen.js.map} +1 -1
- package/dist/esm/{unique-nav-labels-CZlIBq4i.js → unique-nav-labels-CCX5GcJ7.js} +1 -1
- package/dist/esm/{unique-nav-labels-CZlIBq4i.js.map → unique-nav-labels-CCX5GcJ7.js.map} +1 -1
- package/dist/esm/{validation-DiMQDBJs.js → validation-DmN1TsDQ.js} +1 -1
- package/dist/esm/{validation-DiMQDBJs.js.map → validation-DmN1TsDQ.js.map} +1 -1
- package/dist/esm/validation-ZveFT6Ev.js +4 -0
- package/dist/esm/{validation-1DoDEg2R.js.map → validation-ZveFT6Ev.js.map} +1 -1
- package/dist/kolibri/{Alert-D9ud5e41.js → Alert-COGILjC8.js} +1 -1
- package/dist/kolibri/{Alert-D9ud5e41.js.map → Alert-COGILjC8.js.map} +1 -1
- package/dist/kolibri/{Collapsible-P3A4TxrI.js → Collapsible-B-p3_ksO.js} +1 -1
- package/dist/kolibri/{Collapsible-P3A4TxrI.js.map → Collapsible-B-p3_ksO.js.map} +1 -1
- package/dist/kolibri/{CustomSuggestionsOptionsGroup-C6v0QcDe.js → CustomSuggestionsOptionsGroup-B1gk9OT6.js} +1 -1
- package/dist/{esm/CustomSuggestionsOptionsGroup-C6v0QcDe.js.map → kolibri/CustomSuggestionsOptionsGroup-B1gk9OT6.js.map} +1 -1
- package/dist/kolibri/FieldControlStateWrapper-G7nwHRtD.js +4 -0
- package/dist/kolibri/{FieldControlStateWrapper-CbhX9GTT.js.map → FieldControlStateWrapper-G7nwHRtD.js.map} +1 -1
- package/dist/kolibri/{FormFieldStateWrapper-Bygx9jNo.js → FormFieldStateWrapper-SDHFvx2M.js} +1 -1
- package/dist/{esm/FormFieldStateWrapper-Bygx9jNo.js.map → kolibri/FormFieldStateWrapper-SDHFvx2M.js.map} +1 -1
- package/dist/kolibri/{Heading-htOdgBmb.js → Heading-CbaQ3c4l.js} +1 -1
- package/dist/{esm/Heading-htOdgBmb.js.map → kolibri/Heading-CbaQ3c4l.js.map} +1 -1
- package/dist/kolibri/Icon-B6PFfLiZ.js +4 -0
- package/dist/kolibri/{Icon-CJlicMRJ.js.map → Icon-B6PFfLiZ.js.map} +1 -1
- package/dist/kolibri/Input-_p2nAjLZ.js +4 -0
- package/dist/kolibri/{Input-Be9LDid3.js.map → Input-_p2nAjLZ.js.map} +1 -1
- package/dist/kolibri/InputStateWrapper-AUPkwsU6.js +4 -0
- package/dist/kolibri/{InputStateWrapper-Dun4iiM9.js.map → InputStateWrapper-AUPkwsU6.js.map} +1 -1
- package/dist/kolibri/{InternalUnderlinedBadgeText-vl7_Qoxw.js → InternalUnderlinedBadgeText-FFadAVgH.js} +1 -1
- package/dist/kolibri/{InternalUnderlinedBadgeText-vl7_Qoxw.js.map → InternalUnderlinedBadgeText-FFadAVgH.js.map} +1 -1
- package/dist/kolibri/Span-Cnkc85bt.js +4 -0
- package/dist/{esm/Span-DpYoIlZw.js.map → kolibri/Span-Cnkc85bt.js.map} +1 -1
- package/dist/kolibri/{access-and-short-key-mAD3xXKp.js → access-and-short-key-ClYr0_Nk.js} +1 -1
- package/dist/{esm/access-and-short-key-mAD3xXKp.js.map → kolibri/access-and-short-key-ClYr0_Nk.js.map} +1 -1
- package/dist/kolibri/align-C5biD15Z.js +4 -0
- package/dist/kolibri/{align-zs9k2ruM.js.map → align-C5biD15Z.js.map} +1 -1
- package/dist/kolibri/{align-floating-elements-6A9FkBi8.js → align-floating-elements-DrwbCaV9.js} +1 -1
- package/dist/kolibri/{align-floating-elements-6A9FkBi8.js.map → align-floating-elements-DrwbCaV9.js.map} +1 -1
- package/dist/kolibri/app-globals-hlZtASuM.js +4 -0
- package/dist/kolibri/{app-globals-BdYCoDRX.js.map → app-globals-hlZtASuM.js.map} +1 -1
- package/dist/kolibri/{associated.controller-DZY0qF8S.js → associated.controller-KlwDho9Q.js} +1 -1
- package/dist/{esm/associated.controller-DZY0qF8S.js.map → kolibri/associated.controller-KlwDho9Q.js.map} +1 -1
- package/dist/kolibri/{auto-complete-DeJJLXfx.js → auto-complete-x50_X25l.js} +1 -1
- package/dist/kolibri/{auto-complete-DeJJLXfx.js.map → auto-complete-x50_X25l.js.map} +1 -1
- package/dist/kolibri/{bem-uul3TyEr.js → bem-BDRvg6m5.js} +1 -1
- package/dist/kolibri/{bem-uul3TyEr.js.map → bem-BDRvg6m5.js.map} +1 -1
- package/dist/kolibri/bem-C3_oAApW.js +4 -0
- package/dist/kolibri/{bem-BLtO30eN.js.map → bem-C3_oAApW.js.map} +1 -1
- package/dist/kolibri/{bootstrap-B_Z5ec6k.js → bootstrap-ltc5IClR.js} +1 -1
- package/dist/{esm/bootstrap-B_Z5ec6k.js.map → kolibri/bootstrap-ltc5IClR.js.map} +1 -1
- package/dist/kolibri/{browser-HdwlrUeU.js → browser-CF10bTI4.js} +1 -1
- package/dist/{esm/browser-HdwlrUeU.js.map → kolibri/browser-CF10bTI4.js.map} +1 -1
- package/dist/kolibri/button-variant-Cf__D0pN.js +4 -0
- package/dist/{esm/button-variant-neDtqOV-.js.map → kolibri/button-variant-Cf__D0pN.js.map} +1 -1
- package/dist/kolibri/color-DM0xsWqW.js +4 -0
- package/dist/kolibri/{color-Rjy4ux-w.js.map → color-DM0xsWqW.js.map} +1 -1
- package/dist/kolibri/{common-Czxuyxbo.js → common-DSLyazmV.js} +1 -1
- package/dist/kolibri/common-DSLyazmV.js.map +1 -0
- package/dist/kolibri/{controller-KFygbHB0.js → controller-BwvfCO_j.js} +1 -1
- package/dist/kolibri/{controller-KFygbHB0.js.map → controller-BwvfCO_j.js.map} +1 -1
- package/dist/kolibri/{controller-BsKjyZ3W.js → controller-CFKSdddK.js} +1 -1
- package/dist/kolibri/{controller-BsKjyZ3W.js.map → controller-CFKSdddK.js.map} +1 -1
- package/dist/kolibri/{controller-QlJVQTR7.js → controller-CnNH11SE.js} +1 -1
- package/dist/kolibri/{controller-QlJVQTR7.js.map → controller-CnNH11SE.js.map} +1 -1
- package/dist/kolibri/controller-DLMCBk2C.js +4 -0
- package/dist/kolibri/{controller-Btg9ItnB.js.map → controller-DLMCBk2C.js.map} +1 -1
- package/dist/kolibri/{controller-icon-D4Q7Hm_x.js → controller-icon-CXUus5Rz.js} +1 -1
- package/dist/kolibri/{controller-icon-D4Q7Hm_x.js.map → controller-icon-CXUus5Rz.js.map} +1 -1
- package/dist/kolibri/custom-class-ylB8abjG.js +4 -0
- package/dist/kolibri/{custom-class-dk7tJlhh.js.map → custom-class-ylB8abjG.js.map} +1 -1
- package/dist/kolibri/{dev.utils-DyWeFmrg.js → dev.utils-DpGOMUbE.js} +1 -1
- package/dist/{esm/dev.utils-DyWeFmrg.js.map → kolibri/dev.utils-DpGOMUbE.js.map} +1 -1
- package/dist/kolibri/devtools-ywuokcCF.js +4 -0
- package/dist/kolibri/{devtools-BkaBSMly.js.map → devtools-ywuokcCF.js.map} +1 -1
- package/dist/kolibri/disabled-DiMwn3DM.js +4 -0
- package/dist/kolibri/{disabled-BWCjJbVt.js.map → disabled-DiMwn3DM.js.map} +1 -1
- package/dist/kolibri/has-closer-CJ9rIvFk.js +4 -0
- package/dist/kolibri/{has-closer-CtKB8I6M.js.map → has-closer-CJ9rIvFk.js.map} +1 -1
- package/dist/kolibri/hide-label-BgWBR_XN.js +4 -0
- package/dist/kolibri/{hide-label-B7Pi0cle.js.map → hide-label-BgWBR_XN.js.map} +1 -1
- package/dist/kolibri/href-yc4UG01A.js +4 -0
- package/dist/kolibri/{href-C62X6aSC.js.map → href-yc4UG01A.js.map} +1 -1
- package/dist/kolibri/i18n-Cnf3OBCq.js +4 -0
- package/dist/kolibri/{i18n-DaJ9SqJN.js.map → i18n-Cnf3OBCq.js.map} +1 -1
- package/dist/kolibri/{icons-vgwIIwAr.js → icons-Aczndst4.js} +1 -1
- package/dist/kolibri/{icons-vgwIIwAr.js.map → icons-Aczndst4.js.map} +1 -1
- package/dist/kolibri/image-source-BDiMDqPa.js +4 -0
- package/dist/kolibri/{image-source-CvUc2vv-.js.map → image-source-BDiMDqPa.js.map} +1 -1
- package/dist/kolibri/{index-BtTPUe-1.js → index-CQECRzlf.js} +2 -2
- package/dist/kolibri/index-CQECRzlf.js.map +1 -0
- package/dist/kolibri/index.esm.js +1 -1
- package/dist/kolibri/inline-D9bA_js9.js +4 -0
- package/dist/kolibri/{inline-C2QF3Rdx.js.map → inline-D9bA_js9.js.map} +1 -1
- package/dist/kolibri/kol-abbr.entry.js +1 -1
- package/dist/kolibri/kol-accordion.entry.js +1 -1
- package/dist/kolibri/kol-alert-wc.entry.js +1 -1
- package/dist/kolibri/kol-alert.entry.js +1 -1
- package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
- package/dist/kolibri/kol-avatar.entry.js +1 -1
- package/dist/kolibri/kol-badge.entry.js +1 -1
- package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
- package/dist/kolibri/kol-button-link.entry.js +1 -1
- package/dist/kolibri/kol-button-wc.entry.js +1 -1
- package/dist/kolibri/kol-button-wc.entry.js.map +1 -1
- package/dist/kolibri/kol-button.entry.js +1 -1
- package/dist/kolibri/kol-card-wc.entry.js +1 -1
- package/dist/kolibri/kol-card.entry.js +1 -1
- package/dist/kolibri/kol-combobox.entry.js +1 -1
- package/dist/kolibri/kol-details.entry.js +1 -1
- package/dist/kolibri/kol-drawer.entry.js +1 -1
- package/dist/kolibri/kol-form.entry.js +1 -1
- package/dist/kolibri/kol-heading.entry.js +1 -1
- package/dist/kolibri/kol-icon.entry.js +1 -1
- package/dist/kolibri/kol-image.entry.js +1 -1
- package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
- package/dist/kolibri/kol-input-color.entry.js +1 -1
- package/dist/kolibri/kol-input-date.entry.js +1 -1
- package/dist/kolibri/kol-input-email.entry.js +1 -1
- package/dist/kolibri/kol-input-file.entry.js +1 -1
- package/dist/kolibri/kol-input-number.entry.js +1 -1
- package/dist/kolibri/kol-input-password.entry.js +1 -1
- package/dist/kolibri/kol-input-radio.entry.js +1 -1
- package/dist/kolibri/kol-input-range.entry.js +1 -1
- package/dist/kolibri/kol-input-text.entry.js +1 -1
- package/dist/kolibri/kol-kolibri.entry.js +1 -1
- package/dist/kolibri/kol-link-button.entry.js +1 -1
- package/dist/kolibri/kol-link-wc.entry.js +1 -1
- package/dist/kolibri/kol-link-wc.entry.js.map +1 -1
- package/dist/kolibri/kol-link.entry.js +1 -1
- package/dist/kolibri/kol-modal.entry.js +1 -1
- package/dist/kolibri/kol-nav.entry.js +1 -1
- package/dist/kolibri/kol-pagination-wc.entry.js +1 -1
- package/dist/kolibri/kol-pagination-wc.entry.js.map +1 -1
- package/dist/kolibri/kol-pagination.entry.js +1 -1
- package/dist/kolibri/kol-popover-button-wc.entry.js +1 -1
- package/dist/kolibri/kol-popover-button.entry.js +1 -1
- package/dist/kolibri/kol-popover-wc.entry.js +1 -1
- package/dist/kolibri/kol-progress.entry.js +1 -1
- package/dist/kolibri/kol-quote.entry.js +1 -1
- package/dist/kolibri/kol-select-wc.entry.js +1 -1
- package/dist/kolibri/kol-select-wc.entry.js.map +1 -1
- package/dist/kolibri/kol-select.entry.js +1 -1
- package/dist/kolibri/kol-single-select.entry.js +1 -1
- package/dist/kolibri/kol-skip-nav.entry.js +1 -1
- package/dist/kolibri/kol-spin.entry.js +1 -1
- package/dist/kolibri/kol-split-button.entry.js +1 -1
- package/dist/kolibri/kol-table-settings-wc.entry.js +1 -1
- package/dist/kolibri/kol-table-stateful.entry.js +1 -1
- package/dist/kolibri/kol-table-stateless-wc.entry.js +1 -1
- package/dist/kolibri/kol-table-stateless.entry.js +1 -1
- package/dist/kolibri/kol-tabs.entry.js +1 -1
- package/dist/kolibri/kol-textarea.entry.js +1 -1
- package/dist/kolibri/kol-toast-container.entry.js +1 -1
- package/dist/kolibri/kol-toolbar.entry.js +1 -1
- package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
- package/dist/kolibri/kol-tree-item-wc.entry.js +1 -1
- package/dist/kolibri/kol-tree-item.entry.js +1 -1
- package/dist/kolibri/kol-tree-wc.entry.js +1 -1
- package/dist/kolibri/kol-tree.entry.js +1 -1
- package/dist/kolibri/kol-version.entry.js +1 -1
- package/dist/kolibri/kolibri.esm.js +1 -1
- package/dist/kolibri/label-BXy03ji8.js +4 -0
- package/dist/{esm/label-pIlPsS_A.js.map → kolibri/label-BXy03ji8.js.map} +1 -1
- package/dist/kolibri/{markdown-B2L4G_gq.js → markdown-Csw3qIlY.js} +1 -1
- package/dist/kolibri/{markdown-B2L4G_gq.js.map → markdown-Csw3qIlY.js.map} +1 -1
- package/dist/kolibri/max-length-behavior-vKeUDSvc.js +4 -0
- package/dist/kolibri/{max-length-behavior-Brcdtags.js.map → max-length-behavior-vKeUDSvc.js.map} +1 -1
- package/dist/kolibri/multiple-DSZOJGO5.js +4 -0
- package/dist/kolibri/{multiple-D_Lhd_Ou.js.map → multiple-DSZOJGO5.js.map} +1 -1
- package/dist/kolibri/open-DktJ6ugq.js +4 -0
- package/dist/{esm/open-BKi_QyJH.js.map → kolibri/open-DktJ6ugq.js.map} +1 -1
- package/dist/kolibri/orientation-5lLN209t.js +4 -0
- package/dist/kolibri/{orientation-DgLUKPfF.js.map → orientation-5lLN209t.js.map} +1 -1
- package/dist/kolibri/placeholder-BhE590DY.js +4 -0
- package/dist/kolibri/{placeholder-DaUZigJ8.js.map → placeholder-BhE590DY.js.map} +1 -1
- package/dist/kolibri/read-only-DWlXye-O.js +4 -0
- package/dist/kolibri/{read-only-BJgT2VC5.js.map → read-only-DWlXye-O.js.map} +1 -1
- package/dist/kolibri/required-IVUV4TqM.js +4 -0
- package/dist/kolibri/{required-U8Z2uWB-.js.map → required-IVUV4TqM.js.map} +1 -1
- package/dist/kolibri/rows-DOUr31b_.js +4 -0
- package/dist/kolibri/{rows-BxQMw7lW.js.map → rows-DOUr31b_.js.map} +1 -1
- package/dist/kolibri/show-B_8OtHEt.js +4 -0
- package/dist/{esm/show-Bv---Je2.js.map → kolibri/show-B_8OtHEt.js.map} +1 -1
- package/dist/kolibri/spell-check-BI20QOAp.js +4 -0
- package/dist/kolibri/{spell-check-CNVzo7wd.js.map → spell-check-BI20QOAp.js.map} +1 -1
- package/dist/kolibri/suggestions-6JKAVLZ_.js +4 -0
- package/dist/kolibri/{suggestions-iUTn1W4N.js.map → suggestions-6JKAVLZ_.js.map} +1 -1
- package/dist/kolibri/{table-settings-BRjvSgT8.js → table-settings-B35o6F7C.js} +1 -1
- package/dist/{esm/table-settings-BRjvSgT8.js.map → kolibri/table-settings-B35o6F7C.js.map} +1 -1
- package/dist/kolibri/test-component.entry.js +1 -1
- package/dist/kolibri/tooltip-align-BQ4p2Pen.js +4 -0
- package/dist/kolibri/{tooltip-align-CD1KA6X0.js.map → tooltip-align-BQ4p2Pen.js.map} +1 -1
- package/dist/kolibri/unique-nav-labels-CCX5GcJ7.js +4 -0
- package/dist/kolibri/{unique-nav-labels-CZlIBq4i.js.map → unique-nav-labels-CCX5GcJ7.js.map} +1 -1
- package/dist/kolibri/validation-DmN1TsDQ.js +4 -0
- package/dist/kolibri/{validation-DiMQDBJs.js.map → validation-DmN1TsDQ.js.map} +1 -1
- package/dist/kolibri/{validation-1DoDEg2R.js → validation-ZveFT6Ev.js} +1 -1
- package/dist/kolibri/{validation-1DoDEg2R.js.map → validation-ZveFT6Ev.js.map} +1 -1
- package/package.json +3 -3
- package/dist/cjs/Icon-C-grDOCk.js +0 -4
- package/dist/cjs/Input-Cb9NHyj4.js +0 -4
- package/dist/cjs/app-globals-ljVTF0rO.js +0 -4
- package/dist/cjs/common-CWZNPyv9.js +0 -4
- package/dist/cjs/common-CWZNPyv9.js.map +0 -1
- package/dist/cjs/index-d7OcW-wH.js +0 -4
- package/dist/cjs/index-d7OcW-wH.js.map +0 -1
- package/dist/cjs/open-C8VCGwTX.js +0 -4
- package/dist/cjs/placeholder-DAXFP03v.js +0 -4
- package/dist/cjs/tooltip-align-BwhIb1gz.js +0 -4
- package/dist/esm/Icon-CJlicMRJ.js +0 -4
- package/dist/esm/Input-Be9LDid3.js +0 -4
- package/dist/esm/app-globals-BdYCoDRX.js +0 -4
- package/dist/esm/browser-HdwlrUeU.js +0 -4
- package/dist/esm/common-Czxuyxbo.js +0 -4
- package/dist/esm/common-Czxuyxbo.js.map +0 -1
- package/dist/esm/disabled-BWCjJbVt.js +0 -4
- package/dist/esm/has-closer-CtKB8I6M.js +0 -4
- package/dist/esm/href-C62X6aSC.js +0 -4
- package/dist/esm/i18n-DaJ9SqJN.js +0 -4
- package/dist/esm/image-source-CvUc2vv-.js +0 -4
- package/dist/esm/index-BtTPUe-1.js +0 -4
- package/dist/esm/index-BtTPUe-1.js.map +0 -1
- package/dist/esm/inline-C2QF3Rdx.js +0 -4
- package/dist/esm/multiple-D_Lhd_Ou.js +0 -4
- package/dist/esm/open-BKi_QyJH.js +0 -4
- package/dist/esm/orientation-DgLUKPfF.js +0 -4
- package/dist/esm/placeholder-DaUZigJ8.js +0 -4
- package/dist/esm/required-U8Z2uWB-.js +0 -4
- package/dist/esm/rows-BxQMw7lW.js +0 -4
- package/dist/esm/tooltip-align-CD1KA6X0.js +0 -4
- package/dist/esm/validation-1DoDEg2R.js +0 -4
- package/dist/kolibri/FieldControlStateWrapper-CbhX9GTT.js +0 -4
- package/dist/kolibri/Icon-CJlicMRJ.js +0 -4
- package/dist/kolibri/Input-Be9LDid3.js +0 -4
- package/dist/kolibri/InputStateWrapper-Dun4iiM9.js +0 -4
- package/dist/kolibri/Span-DpYoIlZw.js +0 -4
- package/dist/kolibri/align-zs9k2ruM.js +0 -4
- package/dist/kolibri/app-globals-BdYCoDRX.js +0 -4
- package/dist/kolibri/bem-BLtO30eN.js +0 -4
- package/dist/kolibri/button-variant-neDtqOV-.js +0 -4
- package/dist/kolibri/color-Rjy4ux-w.js +0 -4
- package/dist/kolibri/common-Czxuyxbo.js.map +0 -1
- package/dist/kolibri/controller-Btg9ItnB.js +0 -4
- package/dist/kolibri/custom-class-dk7tJlhh.js +0 -4
- package/dist/kolibri/devtools-BkaBSMly.js +0 -4
- package/dist/kolibri/disabled-BWCjJbVt.js +0 -4
- package/dist/kolibri/has-closer-CtKB8I6M.js +0 -4
- package/dist/kolibri/hide-label-B7Pi0cle.js +0 -4
- package/dist/kolibri/href-C62X6aSC.js +0 -4
- package/dist/kolibri/i18n-DaJ9SqJN.js +0 -4
- package/dist/kolibri/image-source-CvUc2vv-.js +0 -4
- package/dist/kolibri/index-BtTPUe-1.js.map +0 -1
- package/dist/kolibri/inline-C2QF3Rdx.js +0 -4
- package/dist/kolibri/label-pIlPsS_A.js +0 -4
- package/dist/kolibri/max-length-behavior-Brcdtags.js +0 -4
- package/dist/kolibri/multiple-D_Lhd_Ou.js +0 -4
- package/dist/kolibri/open-BKi_QyJH.js +0 -4
- package/dist/kolibri/orientation-DgLUKPfF.js +0 -4
- package/dist/kolibri/placeholder-DaUZigJ8.js +0 -4
- package/dist/kolibri/read-only-BJgT2VC5.js +0 -4
- package/dist/kolibri/required-U8Z2uWB-.js +0 -4
- package/dist/kolibri/rows-BxQMw7lW.js +0 -4
- package/dist/kolibri/show-Bv---Je2.js +0 -4
- package/dist/kolibri/spell-check-CNVzo7wd.js +0 -4
- package/dist/kolibri/suggestions-iUTn1W4N.js +0 -4
- package/dist/kolibri/tooltip-align-CD1KA6X0.js +0 -4
- package/dist/kolibri/unique-nav-labels-CZlIBq4i.js +0 -4
- package/dist/kolibri/validation-DiMQDBJs.js +0 -4
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{L as o,d as t,w as a}from"./common-DSLyazmV.js";import{a as f}from"./index-CQECRzlf.js";var r=()=>{f(o=>{try{o.shadowRoot instanceof ShadowRoot&&t(o,a(o))}catch(o){}return"default"}),import("./devtools-ywuokcCF.js").then(o=>{"object"==typeof o&&null!==o&&"function"==typeof o.initialize&&o.initialize()}).catch(t=>{o.error(t)})};const s=r;export{s as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-globals-
|
|
1
|
+
{"version":3,"file":"app-globals-hlZtASuM.js","sources":["src/global/script.ts","@stencil/core/internal/app-globals"],"sourcesContent":["import { getThemeDetails, setThemeStyle } from 'adopted-style-sheets';\n\nimport { setMode } from '@stencil/core';\nimport { Log } from '../schema';\n\nexport default () => {\n\tsetMode((elm) => {\n\t\ttry {\n\t\t\tif (elm.shadowRoot instanceof ShadowRoot) {\n\t\t\t\tsetThemeStyle(elm, getThemeDetails(elm));\n\t\t\t}\n\t\t} catch (error) {\n\t\t\t/**\n\t\t\t * Try is needed for SSR.\n\t\t\t * - no HTMLElement is available\n\t\t\t * - no ShadowRoot is available\n\t\t\t */\n\t\t}\n\t\treturn 'default';\n\t});\n\n\timport('./devtools')\n\t\t.then((devTools) => {\n\t\t\tif (typeof devTools === 'object' && devTools !== null && typeof devTools.initialize === 'function') {\n\t\t\t\tdevTools.initialize();\n\t\t\t}\n\t\t})\n\t\t.catch((error) => {\n\t\t\tLog.error(error);\n\t\t});\n};\n","import appGlobalScript from '/home/runner/work/kolibri/kolibri/packages/components/src/global/script.ts';\nexport const globalScripts = appGlobalScript;\nexport const globalStyles = \"\";\n"],"names":["setThemeStyle","getThemeDetails"],"mappings":";;;;;;AAKA,sBAAe,MAAK;AACnB,IAAA,OAAO,CAAC,CAAC,GAAG,KAAI;AACf,QAAA,IAAI;AACH,YAAA,IAAI,GAAG,CAAC,UAAU,YAAY,UAAU,EAAE;gBACzCA,EAAa,CAAC,GAAG,EAAEC,CAAe,CAAC,GAAG,CAAC,CAAC;;;QAExC,OAAO,KAAK,EAAE;;AAOhB,QAAA,OAAO,SAAS;AACjB,KAAC,CAAC;IAEF,OAAO,wBAAY;AACjB,SAAA,IAAI,CAAC,CAAC,QAAQ,KAAI;AAClB,QAAA,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,KAAK,IAAI,IAAI,OAAO,QAAQ,CAAC,UAAU,KAAK,UAAU,EAAE;YACnG,QAAQ,CAAC,UAAU,EAAE;;AAEvB,KAAC;AACA,SAAA,KAAK,CAAC,CAAC,KAAK,KAAI;AAChB,QAAA,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC;AACjB,KAAC,CAAC;AACJ,CAAC;;AC7BW,MAAC,aAAa,GAAG;;;;"}
|
package/dist/kolibri/{associated.controller-DZY0qF8S.js → associated.controller-KlwDho9Q.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{g as t,
|
|
4
|
+
import{g as t,J as e,j as i,k as s}from"./common-DSLyazmV.js";import{g as o}from"./bootstrap-ltc5IClR.js";const a=(e,s,i)=>{t(e,"_name",s,i)},n=t=>"KOL-BUTTON"===t||"KOL-COMBOBOX"===t||"KOL-INPUT-CHECKBOX"===t||"KOL-INPUT-COLOR"===t||"KOL-INPUT-DATE"===t||"KOL-INPUT-EMAIL"===t||"KOL-INPUT-FILE"===t||"KOL-INPUT-NUMBER"===t||"KOL-INPUT-PASSWORD"===t||"KOL-INPUT-RADIO"===t||"KOL-INPUT-RANGE"===t||"KOL-INPUT-TEXT"===t||"KOL-SELECT"===t||"KOL-SINGLE-SELECT"===t||"KOL-TEXTAREA"===t;class l{constructor(t,s,a){var r,l,c,u;if(this.experimentalMode=e(),this.setFormAssociatedValue=t=>{var e;const s=null===(e=this.formAssociated)||void 0===e?void 0:e.getAttribute("name");null!==s&&""!==s||i(` The form field (${this.type}) must have a name attribute to be form-associated. Please define the _name attribute.`);const o=this.tryToStringifyValue(t);this.syncValue(t,o,this.formAssociated),this.syncValue(t,o,this.syncToOwnInput)},this.component=t,this.host=this.findHostWithShadowRoot(a),this.type=s,(null===(r=o())||void 0===r?void 0:r.reflectInputValues)&&n(null===(l=this.host)||void 0===l?void 0:l.tagName)&&t._name){switch(null===(c=this.host)||void 0===c||c.querySelectorAll("input,select,textarea").forEach(t=>{var e;null===(e=this.host)||void 0===e||e.removeChild(t)}),this.type){case"button":case"color":case"date":case"email":case"file":case"number":case"password":case"radio":case"range":case"text":this.formAssociated=document.createElement("input"),this.formAssociated.setAttribute("type",this.type);break;case"select":this.formAssociated=document.createElement("select"),this.formAssociated.setAttribute("multiple","");break;case"textarea":this.formAssociated=document.createElement("textarea");break;default:this.formAssociated=document.createElement("input"),this.formAssociated.setAttribute("type","hidden")}this.formAssociated.setAttribute("data-form-associated",""),this.formAssociated.setAttribute("hidden",""),null===(u=this.host)||void 0===u||u.appendChild(this.formAssociated)}}findHostWithShadowRoot(t){for(;null===(null==t?void 0:t.shadowRoot)&&t!==document.body;)(t=null==t?void 0:t.parentNode).host&&(t=t.host);return t}setAttribute(t,e,s){if(this.experimentalMode)try{if("boolean"!=typeof(s="object"==typeof s&&null!==s?JSON.stringify(s):s)&&"number"!=typeof s&&"string"!=typeof s)throw new Error("Invalid value type: "+typeof s);null==e||e.setAttribute(t,`${s}`)}catch(s){null==e||e.removeAttribute(t)}}tryToStringifyValue(t){try{return"object"==typeof t&&null!==t?JSON.stringify(t).toString():null==t?null:t.toString()}catch(t){return s(`The form field raw value is not able to stringify! ${t}`),""}}syncValue(t,e,s){if(s)switch(this.type){case"file":s.files=t;break;case"select":s.querySelectorAll("option").forEach(t=>{s.removeChild(t)}),Array.isArray(t)&&t.forEach(t=>{const e=this.tryToStringifyValue(t);if("string"==typeof e){const t=document.createElement("option");t.setAttribute("value",e),t.setAttribute("selected",""),s.appendChild(t)}});break;case"radio":"string"==typeof e&&(s.setAttribute("value",e),s.setAttribute("checked",""),s.value=e);break;default:"string"==typeof e?(s.setAttribute("value",e),s.value=e):(s.removeAttribute("value"),s.value="")}}validateName(t){a(this.component,t,{hooks:{afterPatch:()=>{this.setAttribute("name",this.formAssociated,this.component.state._name)}}}),void 0===t&&i("A name on input fields or switches is not strictly required, but it might be relevant for the autocomplete function and for the static submission of the input field.")}validateSyncValueBySelector(t){if(this.experimentalMode&&"string"==typeof t){const e=document.querySelector(t);e&&(this.syncToOwnInput=e)}}componentWillLoad(){this.validateName(this.component._name),this.validateSyncValueBySelector(this.component._syncValueBySelector)}}export{l as A};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"associated.controller-DZY0qF8S.js","sources":["src/schema/props/name.ts","src/components/input-adapter-leanup/associated.controller.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport type { WatchStringOptions } from '../utils';\nimport { watchString } from '../utils';\n\n/* types */\nexport type NamePropType = string;\n\n/**\n * Defines the technical name of an input field.\n */\nexport type PropName = {\n\tname: NamePropType;\n};\n\n/* validator */\nexport const validateName = (component: Generic.Element.Component, value?: NamePropType, options?: WatchStringOptions): void => {\n\twatchString(component, '_name', value, options);\n};\n","import type { NamePropType, PropSyncValueBySelector, StencilUnknown, SyncValueBySelectorPropType } from '../../schema';\nimport { devHint, devWarning, getExperimentalMode, validateName } from '../../schema';\n\nimport type { Generic } from 'adopted-style-sheets';\nimport { getOptions } from '../../core/bootstrap';\n\ntype RequiredProps = NonNullable<unknown>;\ntype OptionalProps = {\n\tname: string;\n} & PropSyncValueBySelector;\ntype Props = Generic.Element.Members<RequiredProps, OptionalProps>;\ntype Watches = Generic.Element.Watchers<RequiredProps, OptionalProps>;\n\ntype HTMLInputFileElement = HTMLInputElement & {\n\tfiles: FileList;\n};\n\nconst isAssociatedTagName = (name?: string): boolean =>\n\tname === 'KOL-BUTTON' ||\n\tname === 'KOL-COMBOBOX' ||\n\tname === 'KOL-INPUT-CHECKBOX' ||\n\tname === 'KOL-INPUT-COLOR' ||\n\tname === 'KOL-INPUT-DATE' ||\n\tname === 'KOL-INPUT-EMAIL' ||\n\tname === 'KOL-INPUT-FILE' ||\n\tname === 'KOL-INPUT-NUMBER' ||\n\tname === 'KOL-INPUT-PASSWORD' ||\n\tname === 'KOL-INPUT-RADIO' ||\n\tname === 'KOL-INPUT-RANGE' ||\n\tname === 'KOL-INPUT-TEXT' ||\n\tname === 'KOL-SELECT' ||\n\tname === 'KOL-SINGLE-SELECT' ||\n\tname === 'KOL-TEXTAREA';\n\nexport class AssociatedInputController implements Watches {\n\tprivate readonly experimentalMode = getExperimentalMode();\n\n\tprotected readonly component: Generic.Element.Component & Props;\n\tprotected readonly type: string;\n\tprotected readonly host?: HTMLElement;\n\n\tpublic readonly formAssociated?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\tpublic syncToOwnInput?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\n\tpublic constructor(component: Generic.Element.Component & Props, type: string, host?: HTMLElement) {\n\t\tthis.component = component;\n\t\tthis.host = this.findHostWithShadowRoot(host);\n\t\tthis.type = type;\n\n\t\tif (getOptions()?.reflectInputValues && isAssociatedTagName(this.host?.tagName) && component._name) {\n\t\t\tthis.host?.querySelectorAll('input,select,textarea').forEach((el) => {\n\t\t\t\tthis.host?.removeChild(el);\n\t\t\t});\n\t\t\tswitch (this.type) {\n\t\t\t\tcase 'button':\n\t\t\t\tcase 'color':\n\t\t\t\tcase 'date':\n\t\t\t\tcase 'email':\n\t\t\t\tcase 'file':\n\t\t\t\tcase 'number':\n\t\t\t\tcase 'password':\n\t\t\t\tcase 'radio':\n\t\t\t\tcase 'range':\n\t\t\t\tcase 'text':\n\t\t\t\t\tthis.formAssociated = document.createElement('input');\n\t\t\t\t\tthis.formAssociated.setAttribute('type', this.type);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'select':\n\t\t\t\t\tthis.formAssociated = document.createElement('select');\n\t\t\t\t\tthis.formAssociated.setAttribute('multiple', '');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'textarea':\n\t\t\t\t\tthis.formAssociated = document.createElement('textarea');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'checkbox': // Checkbox uses default case\n\t\t\t\tcase 'single-select': // SingleSelect uses default case\n\t\t\t\tcase 'combobox': // Combobox uses default case\n\t\t\t\tdefault:\n\t\t\t\t\tthis.formAssociated = document.createElement('input');\n\t\t\t\t\tthis.formAssociated.setAttribute('type', 'hidden');\n\t\t\t}\n\t\t\tthis.formAssociated.setAttribute('data-form-associated', '');\n\t\t\tthis.formAssociated.setAttribute('hidden', '');\n\t\t\tthis.host?.appendChild(this.formAssociated);\n\t\t}\n\t}\n\n\t/**\n\t * The associated elements must not reside within the ShadowRoot and must\n\t * reside as children in the host to be recognized by native forms.\n\t */\n\tprivate findHostWithShadowRoot(host?: HTMLElement): HTMLElement | undefined {\n\t\twhile (host?.shadowRoot === null && host !== document.body) {\n\t\t\thost = host?.parentNode as HTMLElement;\n\t\t\tif ((host as unknown as ShadowRoot).host) {\n\t\t\t\thost = (host as unknown as ShadowRoot).host as HTMLElement;\n\t\t\t}\n\t\t}\n\t\treturn host;\n\t}\n\n\tprotected setAttribute(qualifiedName: string, element?: HTMLElement, value?: string | number | boolean) {\n\t\tif (this.experimentalMode) {\n\t\t\ttry {\n\t\t\t\tvalue = typeof value === 'object' && value !== null ? JSON.stringify(value) : value;\n\t\t\t\tif (typeof value === 'boolean' || typeof value === 'number' || typeof value === 'string') {\n\t\t\t\t\telement?.setAttribute(qualifiedName, `${value as string}`);\n\t\t\t\t} else {\n\t\t\t\t\tthrow new Error(`Invalid value type: ${typeof value}`);\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\telement?.removeAttribute(qualifiedName);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * We need to stringify the value, for the setAttribute method.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/setAttribute\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/attributes\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/attributes#value\n\t *\n\t * TODO: It is possible that the value are a cyclic object value. So we need a custom\n\t * JSON.stringify method from outside to convert it to string.\n\t */\n\tprivate tryToStringifyValue(value: StencilUnknown): string | null {\n\t\ttry {\n\t\t\treturn typeof value === 'object' && value !== null ? JSON.stringify(value).toString() : value === null || value === undefined ? null : value.toString();\n\t\t} catch (e) {\n\t\t\tdevWarning(`The form field raw value is not able to stringify! ${e as string}`);\n\t\t\treturn '';\n\t\t}\n\t}\n\n\t/**\n\t * We try to support native form-associated custom elements.\n\t *\n\t * @see https://github.com/public-ui/kolibri/discussions/2821\n\t */\n\tpublic readonly setFormAssociatedValue = (rawValue: StencilUnknown) => {\n\t\tconst name = this.formAssociated?.getAttribute('name');\n\t\tif (name === null || name === '') {\n\t\t\tdevHint(` The form field (${this.type}) must have a name attribute to be form-associated. Please define the _name attribute.`);\n\t\t}\n\t\tconst strValue = this.tryToStringifyValue(rawValue);\n\t\tthis.syncValue(rawValue, strValue, this.formAssociated);\n\t\tthis.syncValue(rawValue, strValue, this.syncToOwnInput);\n\t};\n\n\tprivate syncValue(\n\t\trawValue: StencilUnknown,\n\t\tstrValue: string | null,\n\t\tassociatedElement?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement,\n\t) {\n\t\tif (associatedElement) {\n\t\t\tswitch (this.type) {\n\t\t\t\tcase 'file':\n\t\t\t\t\t(associatedElement as HTMLInputFileElement).files = rawValue as FileList;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'select':\n\t\t\t\t\t(associatedElement as HTMLSelectElement).querySelectorAll('option').forEach((el) => {\n\t\t\t\t\t\t(associatedElement as HTMLSelectElement).removeChild(el);\n\t\t\t\t\t});\n\t\t\t\t\tif (Array.isArray(rawValue)) {\n\t\t\t\t\t\trawValue.forEach((rawValueItem) => {\n\t\t\t\t\t\t\tconst strValueItem = this.tryToStringifyValue(rawValueItem as string);\n\t\t\t\t\t\t\tif (typeof strValueItem === 'string') {\n\t\t\t\t\t\t\t\tconst option = document.createElement('option');\n\t\t\t\t\t\t\t\toption.setAttribute('value', strValueItem);\n\t\t\t\t\t\t\t\toption.setAttribute('selected', '');\n\t\t\t\t\t\t\t\t(associatedElement as HTMLSelectElement).appendChild(option);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'radio':\n\t\t\t\t\tif (typeof strValue === 'string') {\n\t\t\t\t\t\tassociatedElement.setAttribute('value', strValue);\n\t\t\t\t\t\tassociatedElement.setAttribute('checked', '');\n\t\t\t\t\t\tassociatedElement.value = strValue;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif (typeof strValue === 'string') {\n\t\t\t\t\t\tassociatedElement.setAttribute('value', strValue);\n\t\t\t\t\t\tassociatedElement.value = strValue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tassociatedElement.removeAttribute('value');\n\t\t\t\t\t\tassociatedElement.value = '';\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic validateName(value?: NamePropType): void {\n\t\tvalidateName(this.component, value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: () => {\n\t\t\t\t\tthis.setAttribute('name', this.formAssociated, this.component.state._name as string);\n\t\t\t\t},\n\t\t\t},\n\t\t});\n\t\tif (typeof value === 'undefined') {\n\t\t\tdevHint(\n\t\t\t\t`A name on input fields or switches is not strictly required, but it might be relevant for the autocomplete function and for the static submission of the input field.`,\n\t\t\t);\n\t\t}\n\t}\n\n\tpublic validateSyncValueBySelector(value?: SyncValueBySelectorPropType): void {\n\t\tif (this.experimentalMode && typeof value === 'string') {\n\t\t\tconst input = document.querySelector(value) as HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\t\t\tif (input /* SSR instanceof HTMLInputElement */) {\n\t\t\t\tthis.syncToOwnInput = input;\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateName(this.component._name);\n\t\tthis.validateSyncValueBySelector(this.component._syncValueBySelector);\n\t}\n}\n"],"names":[],"mappings":";;;;;;AAgBO,MAAM,YAAY,GAAG,CAAC,SAAoC,EAAE,KAAoB,EAAE,OAA4B,KAAU;IAC9H,WAAW,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC;AAChD,CAAC;;ACDD,MAAM,mBAAmB,GAAG,CAAC,IAAa,KACzC,IAAI,KAAK,YAAY;AACrB,IAAA,IAAI,KAAK,cAAc;AACvB,IAAA,IAAI,KAAK,oBAAoB;AAC7B,IAAA,IAA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AAC,cAAc,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,KAAe,CAAC;iBACpF;AACD,aAAA;AACD,SAAA,CAAC;AACF,QAAA,IAAI,OAAO,KAAK,KAAK,WAAW,EAAE;YACjC,OAAO,CACN,CAAuK,qKAAA,CAAA,CACvK;;;AAII,IAAA,2BAA2B,CAAC,KAAmC,EAAA;QACrE,IAAI,IAAI,CAAC,gBAAgB,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YACvD,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAA+D;YACzG,IAAI,KAAK,EAAwC;AAChD,gBAAA,IAAI,CAAC,cAAc,GAAG,KAAK;;;;IAKvB,iBAAiB,GAAA;QACvB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;QACvC,IAAI,CAAC,2BAA2B,CAAC,IAAI,CAAC,SAAS,CAAC,oBAAoB,CAAC;;AAEtE;;;;"}
|
|
1
|
+
{"version":3,"file":"associated.controller-KlwDho9Q.js","sources":["src/schema/props/name.ts","src/components/input-adapter-leanup/associated.controller.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport type { WatchStringOptions } from '../utils';\nimport { watchString } from '../utils';\n\n/* types */\nexport type NamePropType = string;\n\n/**\n * Defines the technical name of an input field.\n */\nexport type PropName = {\n\tname: NamePropType;\n};\n\n/* validator */\nexport const validateName = (component: Generic.Element.Component, value?: NamePropType, options?: WatchStringOptions): void => {\n\twatchString(component, '_name', value, options);\n};\n","import type { NamePropType, PropSyncValueBySelector, StencilUnknown, SyncValueBySelectorPropType } from '../../schema';\nimport { devHint, devWarning, getExperimentalMode, validateName } from '../../schema';\n\nimport type { Generic } from 'adopted-style-sheets';\nimport { getOptions } from '../../core/bootstrap';\n\ntype RequiredProps = NonNullable<unknown>;\ntype OptionalProps = {\n\tname: string;\n} & PropSyncValueBySelector;\ntype Props = Generic.Element.Members<RequiredProps, OptionalProps>;\ntype Watches = Generic.Element.Watchers<RequiredProps, OptionalProps>;\n\ntype HTMLInputFileElement = HTMLInputElement & {\n\tfiles: FileList;\n};\n\nconst isAssociatedTagName = (name?: string): boolean =>\n\tname === 'KOL-BUTTON' ||\n\tname === 'KOL-COMBOBOX' ||\n\tname === 'KOL-INPUT-CHECKBOX' ||\n\tname === 'KOL-INPUT-COLOR' ||\n\tname === 'KOL-INPUT-DATE' ||\n\tname === 'KOL-INPUT-EMAIL' ||\n\tname === 'KOL-INPUT-FILE' ||\n\tname === 'KOL-INPUT-NUMBER' ||\n\tname === 'KOL-INPUT-PASSWORD' ||\n\tname === 'KOL-INPUT-RADIO' ||\n\tname === 'KOL-INPUT-RANGE' ||\n\tname === 'KOL-INPUT-TEXT' ||\n\tname === 'KOL-SELECT' ||\n\tname === 'KOL-SINGLE-SELECT' ||\n\tname === 'KOL-TEXTAREA';\n\nexport class AssociatedInputController implements Watches {\n\tprivate readonly experimentalMode = getExperimentalMode();\n\n\tprotected readonly component: Generic.Element.Component & Props;\n\tprotected readonly type: string;\n\tprotected readonly host?: HTMLElement;\n\n\tpublic readonly formAssociated?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\tpublic syncToOwnInput?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\n\tpublic constructor(component: Generic.Element.Component & Props, type: string, host?: HTMLElement) {\n\t\tthis.component = component;\n\t\tthis.host = this.findHostWithShadowRoot(host);\n\t\tthis.type = type;\n\n\t\tif (getOptions()?.reflectInputValues && isAssociatedTagName(this.host?.tagName) && component._name) {\n\t\t\tthis.host?.querySelectorAll('input,select,textarea').forEach((el) => {\n\t\t\t\tthis.host?.removeChild(el);\n\t\t\t});\n\t\t\tswitch (this.type) {\n\t\t\t\tcase 'button':\n\t\t\t\tcase 'color':\n\t\t\t\tcase 'date':\n\t\t\t\tcase 'email':\n\t\t\t\tcase 'file':\n\t\t\t\tcase 'number':\n\t\t\t\tcase 'password':\n\t\t\t\tcase 'radio':\n\t\t\t\tcase 'range':\n\t\t\t\tcase 'text':\n\t\t\t\t\tthis.formAssociated = document.createElement('input');\n\t\t\t\t\tthis.formAssociated.setAttribute('type', this.type);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'select':\n\t\t\t\t\tthis.formAssociated = document.createElement('select');\n\t\t\t\t\tthis.formAssociated.setAttribute('multiple', '');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'textarea':\n\t\t\t\t\tthis.formAssociated = document.createElement('textarea');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'checkbox': // Checkbox uses default case\n\t\t\t\tcase 'single-select': // SingleSelect uses default case\n\t\t\t\tcase 'combobox': // Combobox uses default case\n\t\t\t\tdefault:\n\t\t\t\t\tthis.formAssociated = document.createElement('input');\n\t\t\t\t\tthis.formAssociated.setAttribute('type', 'hidden');\n\t\t\t}\n\t\t\tthis.formAssociated.setAttribute('data-form-associated', '');\n\t\t\tthis.formAssociated.setAttribute('hidden', '');\n\t\t\tthis.host?.appendChild(this.formAssociated);\n\t\t}\n\t}\n\n\t/**\n\t * The associated elements must not reside within the ShadowRoot and must\n\t * reside as children in the host to be recognized by native forms.\n\t */\n\tprivate findHostWithShadowRoot(host?: HTMLElement): HTMLElement | undefined {\n\t\twhile (host?.shadowRoot === null && host !== document.body) {\n\t\t\thost = host?.parentNode as HTMLElement;\n\t\t\tif ((host as unknown as ShadowRoot).host) {\n\t\t\t\thost = (host as unknown as ShadowRoot).host as HTMLElement;\n\t\t\t}\n\t\t}\n\t\treturn host;\n\t}\n\n\tprotected setAttribute(qualifiedName: string, element?: HTMLElement, value?: string | number | boolean) {\n\t\tif (this.experimentalMode) {\n\t\t\ttry {\n\t\t\t\tvalue = typeof value === 'object' && value !== null ? JSON.stringify(value) : value;\n\t\t\t\tif (typeof value === 'boolean' || typeof value === 'number' || typeof value === 'string') {\n\t\t\t\t\telement?.setAttribute(qualifiedName, `${value as string}`);\n\t\t\t\t} else {\n\t\t\t\t\tthrow new Error(`Invalid value type: ${typeof value}`);\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\telement?.removeAttribute(qualifiedName);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * We need to stringify the value, for the setAttribute method.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/setAttribute\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/attributes\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/attributes#value\n\t *\n\t * TODO: It is possible that the value are a cyclic object value. So we need a custom\n\t * JSON.stringify method from outside to convert it to string.\n\t */\n\tprivate tryToStringifyValue(value: StencilUnknown): string | null {\n\t\ttry {\n\t\t\treturn typeof value === 'object' && value !== null ? JSON.stringify(value).toString() : value === null || value === undefined ? null : value.toString();\n\t\t} catch (e) {\n\t\t\tdevWarning(`The form field raw value is not able to stringify! ${e as string}`);\n\t\t\treturn '';\n\t\t}\n\t}\n\n\t/**\n\t * We try to support native form-associated custom elements.\n\t *\n\t * @see https://github.com/public-ui/kolibri/discussions/2821\n\t */\n\tpublic readonly setFormAssociatedValue = (rawValue: StencilUnknown) => {\n\t\tconst name = this.formAssociated?.getAttribute('name');\n\t\tif (name === null || name === '') {\n\t\t\tdevHint(` The form field (${this.type}) must have a name attribute to be form-associated. Please define the _name attribute.`);\n\t\t}\n\t\tconst strValue = this.tryToStringifyValue(rawValue);\n\t\tthis.syncValue(rawValue, strValue, this.formAssociated);\n\t\tthis.syncValue(rawValue, strValue, this.syncToOwnInput);\n\t};\n\n\tprivate syncValue(\n\t\trawValue: StencilUnknown,\n\t\tstrValue: string | null,\n\t\tassociatedElement?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement,\n\t) {\n\t\tif (associatedElement) {\n\t\t\tswitch (this.type) {\n\t\t\t\tcase 'file':\n\t\t\t\t\t(associatedElement as HTMLInputFileElement).files = rawValue as FileList;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'select':\n\t\t\t\t\t(associatedElement as HTMLSelectElement).querySelectorAll('option').forEach((el) => {\n\t\t\t\t\t\t(associatedElement as HTMLSelectElement).removeChild(el);\n\t\t\t\t\t});\n\t\t\t\t\tif (Array.isArray(rawValue)) {\n\t\t\t\t\t\trawValue.forEach((rawValueItem) => {\n\t\t\t\t\t\t\tconst strValueItem = this.tryToStringifyValue(rawValueItem as string);\n\t\t\t\t\t\t\tif (typeof strValueItem === 'string') {\n\t\t\t\t\t\t\t\tconst option = document.createElement('option');\n\t\t\t\t\t\t\t\toption.setAttribute('value', strValueItem);\n\t\t\t\t\t\t\t\toption.setAttribute('selected', '');\n\t\t\t\t\t\t\t\t(associatedElement as HTMLSelectElement).appendChild(option);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'radio':\n\t\t\t\t\tif (typeof strValue === 'string') {\n\t\t\t\t\t\tassociatedElement.setAttribute('value', strValue);\n\t\t\t\t\t\tassociatedElement.setAttribute('checked', '');\n\t\t\t\t\t\tassociatedElement.value = strValue;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif (typeof strValue === 'string') {\n\t\t\t\t\t\tassociatedElement.setAttribute('value', strValue);\n\t\t\t\t\t\tassociatedElement.value = strValue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tassociatedElement.removeAttribute('value');\n\t\t\t\t\t\tassociatedElement.value = '';\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic validateName(value?: NamePropType): void {\n\t\tvalidateName(this.component, value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: () => {\n\t\t\t\t\tthis.setAttribute('name', this.formAssociated, this.component.state._name as string);\n\t\t\t\t},\n\t\t\t},\n\t\t});\n\t\tif (typeof value === 'undefined') {\n\t\t\tdevHint(\n\t\t\t\t`A name on input fields or switches is not strictly required, but it might be relevant for the autocomplete function and for the static submission of the input field.`,\n\t\t\t);\n\t\t}\n\t}\n\n\tpublic validateSyncValueBySelector(value?: SyncValueBySelectorPropType): void {\n\t\tif (this.experimentalMode && typeof value === 'string') {\n\t\t\tconst input = document.querySelector(value) as HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\t\t\tif (input /* SSR instanceof HTMLInputElement */) {\n\t\t\t\tthis.syncToOwnInput = input;\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateName(this.component._name);\n\t\tthis.validateSyncValueBySelector(this.component._syncValueBySelector);\n\t}\n}\n"],"names":[],"mappings":";;;;;;AAgBO,MAAM,YAAY,GAAG,CAAC,SAAoC,EAAE,KAAoB,EAAE,OAA4B,KAAU;IAC9H,WAAW,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC;AAChD,CAAC;;ACDD,MAAM,mBAAmB,GAAG,CAAC,IAAa,KACzC,IAAI,KAAK,YAAY;AACrB,IAAA,IAAI,KAAK,cAAc;AACvB,IAAA,IAAI,KAAK,oBAAoB;AAC7B,IAAA,IAAI,KAAK,iBAAiB;AAC1B,IAAA,IAAI,KAAK,gBAAgB;AACzB,IAAA,IAAI,KAAK,iBAAiB;AAC1B,IAAA,IAAI,KAAK,gBAAgB;AACzB,IAAA,IAAI,KAAK,kBAAkB;AAC3B,IAAA,IAAI,KAAK,oBAAoB;AAC7B,IAAA,IAAI,KAAK,iBAAiB;AAC1B,IAAA,IAAI,KAAK,iBAAiB;AAC1B,IAAA,IAAI,KAAK,gBAAgB;AACzB,IAAA,IAAI,KAAK,YAAY;AACrB,IAAA,IAAI,KAAK,mBAAmB;IAC5B,IAAI,KAAK,cAAc;MAEX,yBAAyB,CAAA;AAUrC,IAAA,WAAA,CAAmB,SAA4C,EAAE,IAAY,EAAE,IAAkB,EAAA;;AAThF,QAAA,IAAgB,CAAA,gBAAA,GAAG,mBAAmB,EAAE;AAwGzC,QAAA,IAAA,CAAA,sBAAsB,GAAG,CA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,IAAI,CAAC,SAAS,CAAC,oBAAoB,CAAC;;AAEtE;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{b as o}from"./common-
|
|
4
|
+
import{b as o}from"./common-DSLyazmV.js";const t=["on","off"],e=(e,f)=>{o(e,"_autoComplete",o=>t.includes(o)||"string"==typeof o&&o.length>0,new Set(t),f,{defaultValue:"off"})};export{e as v};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auto-complete-
|
|
1
|
+
{"version":3,"file":"auto-complete-x50_X25l.js","sources":["src/schema/props/auto-complete.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { watchValidator } from '../utils';\n\n/* types */\nexport const autoCompleteOptions = ['on', 'off'] as const;\nexport type AutoCompletePropType = (typeof autoCompleteOptions)[number] | string;\n\n/**\n * Defines the auto-complete behavior for an element.\n */\nexport type PropAutoComplete = {\n\tautoComplete: AutoCompletePropType;\n};\n\n/* validator */\nexport const validateAutoComplete = (component: Generic.Element.Component, value?: AutoCompletePropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t'_autoComplete',\n\t\t(value): boolean => autoCompleteOptions.includes(value as (typeof autoCompleteOptions)[number]) || (typeof value === 'string' && value.length > 0),\n\t\tnew Set(autoCompleteOptions),\n\t\tvalue,\n\t\t{\n\t\t\tdefaultValue: 'off',\n\t\t},\n\t);\n};\n"],"names":[],"mappings":";;;;;AAKO,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE,KAAK,CAAU;MAW5C,oBAAoB,GAAG,CAAC,SAAoC,EAAE,KAA4B,KAAU;AAChH,IAAA,cAAc,CACb,SAAS,EACT,eAAe,EACf,CAAC,KAAK,KAAc,mBAAmB,CAAC,QAAQ,CAAC,KAA6C,CAAC,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,EAClJ,IAAI,GAAG,CAAC,mBAAmB,CAAC,EAC5B,KAAK,EACL;AACC,QAAA,YAAY,EAAE,KAAK;AACnB,KAAA,CACD;AACF;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{c as e}from"./browser-
|
|
4
|
+
import{c as e}from"./browser-CF10bTI4.js";const o=e(),t={"kol-alert":{elements:{closer:{modifiers:null},heading:{modifiers:new Set(["h0","h1","h2","h3","h4","h5","h6"])},icon:{modifiers:null},content:{modifiers:null},container:{modifiers:null}},modifiers:new Set(["hasCloser","type-default","type-error","type-info","type-success","type-warning","variant-card","variant-msg"])}},s=o("kol-alert","closer")+" kol-close-button",n=o("kol-alert","content"),r=o("kol-alert","icon");export{t as B,r as a,o as b,n as c,s as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bem-
|
|
1
|
+
{"version":3,"file":"bem-BDRvg6m5.js","sources":["src/functional-components/Alert/bem.ts"],"sourcesContent":["import { generateBemClassNames } from 'typed-bem';\n\n/**\n * This file defines the BEM schema for the kol-alert component.\n */\n\n/**\n * The schema defines the structure of the BEM class names\n */\ntype SCHEMA = {\n\t'kol-alert': {\n\t\t/**\n\t\t * Here we define the elements we needed\n\t\t * to realize a minimal full featured alert\n\t\t * component (DOM).\n\t\t */\n\t\telements: {\n\t\t\tcontainer: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\ticon: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\theading: {\n\t\t\t\t/**\n\t\t\t\t * Some elements needs modifiers to\n\t\t\t\t * style them properly.\n\t\t\t\t */\n\t\t\t\tmodifiers: Set<'h0' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'>;\n\t\t\t};\n\t\t\tcontent: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\tcloser: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t};\n\t\t/**\n\t\t * Here we define the modifiers related to the\n\t\t * kol-alert component properties.\n\t\t */\n\t\tmodifiers: Set<'hasCloser' | 'type-default' | 'type-error' | 'type-info' | 'type-success' | 'type-warning' | 'variant-card' | 'variant-msg'>;\n\t};\n};\n\n/**\n * Define the generator function for the BEM class names.\n */\nconst bem = generateBemClassNames<SCHEMA>();\n\n/**\n * Define a constants object that contains the BEM schema for\n * reuse to generate SCSS files in themes.\n */\nconst BEM: SCHEMA = {\n\t'kol-alert': {\n\t\telements: {\n\t\t\tcloser: { modifiers: null },\n\t\t\theading: { modifiers: new Set(['h0', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6']) },\n\t\t\ticon: { modifiers: null },\n\t\t\tcontent: { modifiers: null },\n\t\t\tcontainer: { modifiers: null },\n\t\t},\n\t\tmodifiers: new Set(['hasCloser', 'type-default', 'type-error', 'type-info', 'type-success', 'type-warning', 'variant-card', 'variant-msg']),\n\t},\n};\n\n/**\n * Define the static BEM class names for the alert component.\n */\nconst BEM_CLASS_ALERT__CLOSER = bem('kol-alert', 'closer') + ' kol-close-button';\nconst BEM_CLASS_ALERT__CONTENT = bem('kol-alert', 'content');\nconst BEM_CLASS_ALERT__ICON = bem('kol-alert', 'icon');\n\nexport { BEM as BEM_ALERT, BEM_CLASS_ALERT__CLOSER, BEM_CLASS_ALERT__CONTENT, BEM_CLASS_ALERT__ICON, bem as genBemAlert };\n"],"names":["generateBemClassNames"],"mappings":";;;;;AAgDA,MAAM,GAAG,GAAGA,CAAqB;AAMjC,MAAM,GAAG,GAAW;AACnB,IAAA,WAAW,EAAE;AACZ,QAAA,QAAQ,EAAE;AACT,YAAA,MAAM,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;YAC3B,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,EAAE;AAC3E,YAAA,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;AACzB,YAAA,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;AAC5B,YAAA,SAAS,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;AAC9B,SAAA;QACD,SAAS,EAAE,IAAI,GAAG,CAAC,CAAC,WAAW,EAAE,cAAc,EAAE,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,CAAC,CAAC;AAC3I,KAAA;;AAMI,MAAA,uBAAuB,GAAG,GAAG,CAAC,WAAW,EAAE,QAAQ,CAAC,GAAG;AACvD,MAAA,wBAAwB,GAAG,GAAG,CAAC,WAAW,EAAE,SAAS;AACrD,MAAA,qBAAqB,GAAG,GAAG,CAAC,WAAW,EAAE,MAAM;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bem-
|
|
1
|
+
{"version":3,"file":"bem-C3_oAApW.js","sources":["src/components/icon/bem.ts"],"sourcesContent":["import { generateBemClassNames } from 'typed-bem';\n\ntype SCHEMA = {\n\t'kol-icon': {\n\t\telements: {\n\t\t\ticon: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t};\n\t\tmodifiers: null;\n\t};\n};\n\nconst bem = generateBemClassNames<SCHEMA>();\n\nconst BEM: SCHEMA = {\n\t'kol-icon': {\n\t\telements: {\n\t\t\ticon: { modifiers: null },\n\t\t},\n\t\tmodifiers: null,\n\t},\n};\n\n/**\n * Define the static BEM class names for the alert component.\n */\nconst BEM_CLASS_ICON = bem('kol-icon');\nconst BEM_CLASS_ICON__ICON = bem('kol-icon', 'icon');\n\nexport { BEM_CLASS_ICON, BEM_CLASS_ICON__ICON, BEM as BEM_ICON, bem as genBemAlert };\n"],"names":["generateBemClassNames"],"mappings":";;;;;AAaA,MAAM,GAAG,GAAGA,CAAqB,EAAU;AAE3C,MAAM,GAAG,GAAW;AACnB,IAAA,UAAU,EAAE;AACX,QAAA,QAAQ,EAAE;AACT,YAAA,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;AACzB,SAAA;AACD,QAAA,SAAS,EAAE,IAAI;AACf,KAAA;;AAMF,MAAM,cAAc,GAAG,GAAG,CAAC,UAAU;AAC/B,MAAA,oBAAoB,GAAG,GAAG,CAAC,UAAU,EAAE,MAAM;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{
|
|
4
|
+
import{l as o,Z as n,L as i}from"./common-DSLyazmV.js";import{s as e}from"./component-names-C3fyby67.js";import{i as s}from"./i18n-CfLoIZ8T.js";let t,d=!1;const a=async(a,r,l)=>{var m,v;const u="undefined"!=typeof process&&process.env?"production":void 0;o((null==l?void 0:l.environment)||u||"production"),s(null!==(v=null===(m=null==l?void 0:l.translation)||void 0===m?void 0:m.name)&&void 0!==v?v:"de",null==l?void 0:l.translations),(null==l?void 0:l.transformTagName)&&e(null==l?void 0:l.transformTagName);const c=await n(a,r,l);return d=!0,t=l,i.info("Development mode active - Enhanced debugging features available"),c},l=a,r=()=>d,v=()=>t;export{a as b,v as g,r as i,l as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap-
|
|
1
|
+
{"version":3,"file":"bootstrap-ltc5IClR.js","sources":["src/core/bootstrap.ts"],"sourcesContent":["import type { Generic, LoaderCallback, RegisterOptions } from 'adopted-style-sheets';\nimport { register as coreRegister } from 'adopted-style-sheets';\nimport type { Mode } from '../schema';\nimport { Log, setRuntimeMode } from '../schema';\nimport { setCustomTagNames } from './component-names';\nimport { initializeI18n } from './i18n';\n\ntype KoliBriOptions = RegisterOptions & {\n\t/**\n\t * The environment in which the application is running.\n\t */\n\tenvironment?: Mode;\n\t/**\n\t * This option allows you to transform the component tag names.\n\t */\n\ttransformTagName?: (tagName: string) => string;\n\n\t/**\n\t * When enabled, all input fields will reflect their current value to the host element, making it accessible outside the shadow DOM.\n\t */\n\treflectInputValues?: boolean;\n};\n\nlet initialized = false;\nlet options: KoliBriOptions | undefined;\n\nexport const bootstrap = async (\n\tthemes:\n\t\t| Generic.Theming.RegisterPatch<string, string, string>\n\t\t| Generic.Theming.RegisterPatch<string, string, string>[]\n\t\t| Set<Generic.Theming.RegisterPatch<string, string, string>>,\n\tloaders: LoaderCallback | LoaderCallback[] | Set<LoaderCallback>,\n\tkoliBriOptions?: KoliBriOptions,\n): Promise<void[]> => {\n\tconst nodeEnv = typeof process !== 'undefined' && process.env ? (process.env.NODE_ENV as Mode) : undefined;\n\tsetRuntimeMode(koliBriOptions?.environment || nodeEnv || 'production');\n\n\tinitializeI18n(koliBriOptions?.translation?.name ?? 'de', koliBriOptions?.translations);\n\tif (koliBriOptions?.transformTagName) {\n\t\tsetCustomTagNames(koliBriOptions?.transformTagName);\n\t}\n\tconst coreRegisterReturnValue = await coreRegister(themes, loaders, koliBriOptions);\n\tinitialized = true;\n\toptions = koliBriOptions;\n\n\t// Only log development message when actually in development mode\n\tLog.info('Development mode active - Enhanced debugging features available');\n\n\treturn coreRegisterReturnValue;\n};\n\nexport const register = bootstrap;\nexport const isInitialized = () => initialized;\nexport const getOptions = () => options;\n"],"names":["coreRegister"],"mappings":";;;;;;;AAuBA,IAAI,WAAW,GAAG,KAAK;AACvB,IAAI,OAAmC;AAEhC,MAAM,SAAS,GAAG,OACxB,MAG6D,EAC7D,OAAgE,EAChE,cAA+B,KACX;;IACpB,MAAM,OAAO,GAAG,OAAO,OAAO,KAAK,WAAW,IAAI,OAAO,CAAC,GAAG,GAAI,YAA6B,GAAG,SAAS;IAC1G,cAAc,CAAC,CAAA,cAAc,KAAA,IAAA,IAAd,cAAc,KAAd,MAAA,GAAA,MAAA,GAAA,cAAc,CAAE,WAAW,KAAI,OAAO,IAAI,YAAY,CAAC;AAEtE,IAAA,cAAc,CAAC,MAAA,CAAA,EAAA,GAAA,cAAc,aAAd,cAAc,KAAA,MAAA,GAAA,MAAA,GAAd,cAAc,CAAE,WAAW,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAE,IAAI,MAAI,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,EAAA,GAAA,IAAI,EAAE,cAAc,KAAd,IAAA,IAAA,cAAc,uBAAd,cAAc,CAAE,YAAY,CAAC;IACvF,IAAI,cAAc,aAAd,cAAc,KAAA,MAAA,GAAA,MAAA,GAAd,cAAc,CAAE,gBAAgB,EAAE;QACrC,iBAAiB,CAAC,cAAc,KAAd,IAAA,IAAA,cAAc,uBAAd,cAAc,CAAE,gBAAgB,CAAC;;IAEpD,MAAM,uBAAuB,GAAG,MAAMA,CAAY,CAAC,MAAM,EAAE,OAAO,EAAE,cAAc,CAAC;IACnF,WAAW,GAAG,IAAI;IAClB,OAAO,GAAG,cAAc;AAGxB,IAAA,GAAG,CAAC,IAAI,CAAC,iEAAiE,CAAC;AAE3E,IAAA,OAAO,uBAAuB;AAC/B;AAEO,MAAM,QAAQ,GAAG;MACX,aAAa,GAAG,MAAM;MACtB,UAAU,GAAG,MAAM;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{
|
|
4
|
+
import{m as r}from"./common-DSLyazmV.js";var n,t;function e(){return t||(t=1,n=function(r){return function(t,n){if(!t)return r;var e;"string"==typeof t?e=t:n=t;var o=r;return e&&(o+="__"+e),o+(n?Object.keys(n).reduce(function(r,t){var e=n[t];return e&&(r+=" "+("boolean"==typeof e?o+"--"+t:o+"--"+t+"_"+e)),r},""):"")}}),n}var o=e(),u=r(o);function f(){const r=new Map,t=(t,n,e)=>{try{return r.get(t)(n,e)}catch{return r.set(t,u(t)).get(t)(n,e)}};return t.forBlock=r=>{const n=(n,e)=>t(r,n,e);return n.forElement=n=>e=>t(r,n,e),n},t}export{f as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser-
|
|
1
|
+
{"version":3,"file":"browser-CF10bTI4.js","sources":["../../node_modules/.pnpm/easy-bem@1.1.1/node_modules/easy-bem/index.js","../../node_modules/.pnpm/typed-bem@1.0.2/node_modules/typed-bem/dist/browser.mjs"],"sourcesContent":["'use strict';\r\n\r\n/**\r\n * BEM class name factory.\r\n *\r\n * @typedef {Function} Bem\r\n * @param {String|Object} [elementOrMods] Element name or hash object with mods\r\n * @param {Object} [mods] Hash object with mods\r\n * @returns {String}\r\n */\r\n\r\n/**\r\n * Returns BEM class name factory.\r\n *\r\n * @param {String} componentName Block name\r\n * @returns {Bem}\r\n */\r\nmodule.exports = function bem(componentName) {\r\n return function (elementOrMods, mods) {\r\n if (!elementOrMods) {\r\n return componentName;\r\n }\r\n\r\n var element;\r\n\r\n if (typeof elementOrMods === 'string') {\r\n element = elementOrMods;\r\n } else {\r\n mods = elementOrMods;\r\n }\r\n\r\n var base = componentName;\r\n if (element) {\r\n base += '__' + element;\r\n }\r\n\r\n return base + (\r\n mods\r\n ? Object.keys(mods).reduce(function (result, name) {\r\n var value = mods[name];\r\n\r\n if (value) {\r\n result += ' ' + (\r\n typeof value === 'boolean'\r\n ? (base + '--' + name)\r\n : (base + '--' + name + '_' + value)\r\n );\r\n }\r\n\r\n return result;\r\n }, '')\r\n : ''\r\n );\r\n };\r\n}\r\n","import a from\"easy-bem\";function c(){const e=new Map,n=(t,o,r)=>{try{return e.get(t)(o,r)}catch{return e.set(t,a(t)).get(t)(o,r)}};return n.forBlock=t=>{const o=(r,s)=>n(t,r,s);return o.forElement=r=>s=>n(t,r,s),o},n}function f(...e){const n=new Set;for(const t of e)if(t)for(const o of t.split(/\\s+/))n.add(o);return[...n].join(\" \")}export{c as generateBemClassNames,f as uniqueClassNames};\n//# sourceMappingURL=browser.mjs.map\n"],"names":[],"mappings":";;;;;;;;;;;AACA;AACA;AACA;AACA;AACA;AACA;AACA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C,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;;;;","x_google_ignoreList":[0,1]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{b as t,g as a,e as o}from"./common-DSLyazmV.js";const n=["tab","treeitem"],r=(a,o)=>{t(a,"_role",a=>"string"==typeof a&&n.includes(a),new Set([`KoliBriAlternativeButtonLinkRole {${n.join(", ")}`]),o)},s=(t,n)=>{a(t,"_ariaControls",n)},e=(t,n)=>{a(t,"_ariaDescription",n)},i=(a,t)=>{o(a,"_ariaExpanded",t)},c=["primary","secondary","normal","tertiary","danger","ghost","custom"],l=(a,n)=>{t(a,"_buttonVariant",a=>"string"==typeof a&&c.includes(a),new Set([`KoliBriButtonVariant {${c.join(", ")}`]),n,{defaultValue:"normal"})};export{e as a,i as b,r as c,l as d,s as v};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-variant-
|
|
1
|
+
{"version":3,"file":"button-variant-Cf__D0pN.js","sources":["src/schema/props/alternative-button-link-role.ts","src/schema/props/aria-controls.ts","src/schema/props/aria-description.ts","src/schema/props/aria-expanded.ts","src/schema/props/button-variant.ts"],"sourcesContent":["/* types */\nimport type { Generic } from 'adopted-style-sheets';\nimport { watchValidator } from '../utils';\n\nconst alternativeButtonLinkRolePropTypeOptions = ['tab', 'treeitem'] as const;\nexport type AlternativeButtonLinkRolePropType = (typeof alternativeButtonLinkRolePropTypeOptions)[number];\n\n/**\n * Defines the role of the components primary element.\n */\nexport type PropAlternativeButtonLinkRole = {\n\trole: AlternativeButtonLinkRolePropType;\n};\n\n/* validator */\nexport const validateAlternativeButtonLinkRole = (component: Generic.Element.Component, value?: AlternativeButtonLinkRolePropType) => {\n\twatchValidator(\n\t\tcomponent,\n\t\t`_role`,\n\t\t(value) => typeof value === 'string' && alternativeButtonLinkRolePropTypeOptions.includes(value),\n\t\tnew Set([`KoliBriAlternativeButtonLinkRole {${alternativeButtonLinkRolePropTypeOptions.join(', ')}`]),\n\t\tvalue,\n\t);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { watchString } from '../utils';\n\n/* types */\n/**\n * Defines which elements are being controlled. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls)\n */\ntype AriaControlsPropType = string;\n\nexport type PropAriaControls = {\n\tariaControls: AriaControlsPropType;\n};\n\n/* validator */\nexport const validateAriaControls = (component: Generic.Element.Component, value?: AriaControlsPropType): void => {\n\twatchString(component, '_ariaControls', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\nimport { watchString } from '../utils';\n\n/* types */\nexport type AriaDescriptionPropType = string;\n\n/**\n * Defines the value for the aria-description attribute.\n */\nexport type PropAriaDescription = {\n\tariaDescription: AriaDescriptionPropType;\n};\n\n/* validator */\nexport const validateAriaDescription = (component: Generic.Element.Component, value?: AriaDescriptionPropType): void => {\n\twatchString(component, '_ariaDescription', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { watchBoolean } from '../utils';\n\n/* types */\nexport type AriaExpandedPropType = boolean;\n\n/**\n * Marks this element as open/expanded, or that the connected element (aria-controls/aria-owns) is open/expanded.\n * (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded)\n */\nexport type PropAriaExpanded = {\n\tariaExpanded: AriaExpandedPropType;\n};\n\n/* validator */\nexport const validateAriaExpanded = (component: Generic.Element.Component, value?: AriaExpandedPropType): void => {\n\twatchBoolean(component, '_ariaExpanded', value);\n};\n","/* types */\nimport type { Generic } from 'adopted-style-sheets';\nimport { watchValidator } from '../utils';\n\nconst buttonVariantPropTypeOptions = ['primary', 'secondary', 'normal', 'tertiary', 'danger', 'ghost', 'custom'] as const;\nexport type ButtonVariantPropType = (typeof buttonVariantPropTypeOptions)[number];\n\n/**\n * Defines which variant should be used for presentation.\n */\nexport type PropButtonVariant = {\n\tvariant: ButtonVariantPropType;\n};\n\n/* validator */\nexport const validateButtonVariant = (component: Generic.Element.Component, value?: ButtonVariantPropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t`_buttonVariant`,\n\t\t(value) => typeof value === 'string' && buttonVariantPropTypeOptions.includes(value),\n\t\tnew Set([`KoliBriButtonVariant {${buttonVariantPropTypeOptions.join(', ')}`]),\n\t\tvalue,\n\t\t{\n\t\t\tdefaultValue: 'normal',\n\t\t},\n\t);\n};\n"],"names":[],"mappings":";;;;;AAIA,MAAM,wCAAwC,GAAG,CAAC,KAAK,EAAE,UAAU,CAAU;MAWhE,iCAAiC,GAAG,CAAC,SAAoC,EAAE,KAAyC,KAAI;AACpI,IAAA,cAAc,CACb,SAAS,EACT,CAAO,KAAA,CAAA,EACP,CAAC,KAAK,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,wCAAwC,CAAC,QAAQ,CAAC,KAAK,CAAC,EAChG,IAAI,GAAG,CAAC,CAAC,CAAA,kCAAA,EAAqC,wCAAwC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAE,CAAA,CAAC,CAAC,EACrG,KAAK,CACL;AACF;;MCRa,oBAAoB,GAAG,CAAC,SAAoC,EAAE,KAA4B,KAAU;AAChH,IAAA,WAAW,CAAC,SAAS,EAAE,eAAe,EAAE,KAAK,CAAC;AAC/C;;MCHa,uBAAuB,GAAG,CAAC,SAAoC,EAAE,KAA+B,KAAU;AACtH,IAAA,WAAW,CAAC,SAAS,EAAE,kBAAkB,EAAE,KAAK,CAAC;AAClD;;MCAa,oBAAoB,GAAG,CAAC,SAAoC,EAAE,KAA4B,KAAU;AAChH,IAAA,YAAY,CAAC,SAAS,EAAE,eAAe,EAAE,KAAK,CAAC;AAChD;;ACdA,MAAM,4BAA4B,GAAG,CAAC,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAU;MAW5G,qBAAqB,GAAG,CAAC,SAAoC,EAAE,KAA6B,KAAU;AAClH,IAAA,cAAc,CACb,SAAS,EACT,CAAgB,cAAA,CAAA,EAChB,CAAC,KAAK,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,4BAA4B,CAAC,QAAQ,CAAC,KAAK,CAAC,EACpF,IAAI,GAAG,CAAC,CAAC,yBAAyB,4BAA4B,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA,CAAE,CAAC,CAAC,EAC7E,KAAK,EACL;AACC,QAAA,YAAY,EAAE,QAAQ;AACtB,KAAA,CACD;AACF;;;;"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{A as t,B as r,C as n,D as e,E as o,L as a,n as s,b as i}from"./common-DSLyazmV.js";function u(o){var a;Array.isArray(o)&&o.raw&&(o=String.raw(...arguments));var e=t(o);if(!e.space)return[];const u="h"===e.space[0]?r.min:n.min,s="h"===e.space[0]?r.max:n.max;return(a=Array(3))[0]=Math.min(Math.max(e.values[0],u[0]),s[0]),a[1]=Math.min(Math.max(e.values[1],u[1]),s[1]),a[2]=Math.min(Math.max(e.values[2],u[2]),s[2]),"h"===e.space[0]&&(a=r.rgb(a)),a.push(Math.min(Math.max(e.alpha,0),1)),a}const f=(r,o,n)=>(299*r+587*o+114*n)/1e3>=128?-1:1,l=(r,n,t,a=1)=>{const u=[Math.max(Math.min(Math.round(n[0]+a*Math.max(1,n[0]/100)),255),0),Math.max(Math.min(Math.round(n[1]+a*Math.max(1,n[1]/100)),255),0),Math.max(Math.min(Math.round(n[2]+a*Math.max(1,n[2]/100)),255),0)],s=o(e.hex(`rgba(${r.join(",")},1)`),e.hex(`rgba(${u.join(",")},1)`)),i=u[0]+u[1]+u[2];return 0===i||765===i||s>t?{background:r,foreground:u,contrast:s}:l(r,u,t,a)},c=new Map,g=(r,o,n,t=1)=>{if(c.has(r))return c.get(r);const a=l(r,o,n,t);return c.set(r,a),a},h=(r,o=7)=>{let n=[0,0,0,1],t=[255,255,255,1];"string"==typeof r?(n=u(r),t=n):"object"==typeof r&&null!==r&&"string"==typeof r.background&&"string"==typeof r.foreground&&(n=u(r.background),t="string"==typeof r.foreground?u(r.foreground):n);const a=f(n[0],n[1],n[2]),s=g([n[0],n[1],n[2]],[t[0],t[1],t[2]],o,a);return t=[...s.foreground,1],{background:e.hex(`rgba(${n.join(",")})`),foreground:e.hex(`rgba(${t.join(",")})`),contrast:s.contrast}},p=/^#((\d|[a-f]){8}|(\d|[a-f]){6}|(\d|[a-f]){3,4})$/i;function y(r){return p.test(r)}function d(r){if(r.startsWith("{"))try{const o=JSON.parse(r);if(v(o))return{type:"ColorPair",value:o}}catch(r){return{type:null,value:null}}return{type:null,value:null}}function M(r){if(r)if("string"==typeof r){if(y(r))return{type:"string",valid:!0,value:r};{const o=d(r);if(o.value)return{type:o.type,valid:!0,value:o.value}}}else{const o=r;if(v(o))return{type:"ColorPair",valid:!0,value:o}}return{type:null,valid:!1,value:""}}function v(r){return!("object"!=typeof r||!r||"string"!=typeof r.backgroundColor||!("string"==typeof r.foregroundColor||r.foregroundColor&&"string"==typeof r.foregroundColor.primary&&"string"==typeof r.foregroundColor.secondary&&"string"==typeof r.foregroundColor.neutral))}function b(r){const o=M(r);switch(o.type){case null:return!1;case"string":case"ColorPair":return o.valid}}const $=(r,o,n)=>{i(r,"_color",b,new Set(["rgb in hex","ColorPair"]),o,n)},C=r=>{var o;let n;const t=M(r);switch(t.type){case"string":n=h(t.value);break;case"ColorPair":{const r=t.value;let a="";"string"==typeof r.foregroundColor?a=r.foregroundColor:(null===(o=r.foregroundColor)||void 0===o?void 0:o.primary)&&(a=r.foregroundColor.primary),a&&"string"==typeof a||(a="#fff"),n=h({background:r.backgroundColor,foreground:a});break}case null:a.warn(`_color was empty or invalid (${JSON.stringify(r)})`),n=h({background:"#000",foreground:"#000"})}return n.contrast<7&&s(`[KolBadge] The contrast of ${n.contrast} (≥7, AAA) is to low, between the color pair ${n.background} and ${n.foreground}.`),{backgroundColor:n.background,foregroundColor:n.foreground}};export{C as h,u as r,$ as v};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color-Rjy4ux-w.js","sources":["../../node_modules/.pnpm/color-rgba@2.4.0/node_modules/color-rgba/index.mjs","src/schema/utils/contrast.ts","src/schema/props/color.ts"],"sourcesContent":["/** @module color-rgba */\r\nimport parse from 'color-parse'\r\nimport rgb from 'color-space/rgb.js'\r\nimport hsl from 'color-space/hsl.js'\r\n\r\nexport default function rgba (color) {\r\n\t// template literals\r\n\tif (Array.isArray(color) && color.raw) color = String.raw(...arguments)\r\n\r\n\tvar values, i, l\r\n\r\n\t//attempt to parse non-array arguments\r\n\tvar parsed = parse(color)\r\n\r\n\tif (!parsed.space) return []\r\n\r\n\tconst min = parsed.space[0] === 'h' ? hsl.min : rgb.min\r\n\tconst max = parsed.space[0] === 'h' ? hsl.max : rgb.max\r\n\r\n\tvalues = Array(3)\r\n\tvalues[0] = Math.min(Math.max(parsed.values[0], min[0]), max[0])\r\n\tvalues[1] = Math.min(Math.max(parsed.values[1], min[1]), max[1])\r\n\tvalues[2] = Math.min(Math.max(parsed.values[2], min[2]), max[2])\r\n\r\n\tif (parsed.space[0] === 'h') {\r\n\t\tvalues = hsl.rgb(values)\r\n\t}\r\n\r\n\tvalues.push(Math.min(Math.max(parsed.alpha, 0), 1))\r\n\r\n\treturn values\r\n}\r\n","import type { RGB } from 'color-convert/conversions';\nimport { hex } from 'wcag-contrast';\n\nimport rgba from 'color-rgba';\nimport rgbaConvert from 'rgba-convert';\n\ntype RGBA = [number, number, number, number];\n\n// const calcColor = (color: RGBA, diff: number): RGBA => [\n// Math.max(Math.min(Math.round(color[0] + (color[0] / 100 + 1) * diff), 255), 0),\n// Math.max(Math.min(Math.round(color[1] + (color[1] / 100 + 1) * diff), 255), 0),\n// Math.max(Math.min(Math.round(color[2] + (color[2] / 100 + 1) * diff), 255), 0),\n// color[3],\n// ];\n\n// const relativeLuminanceFormel = (c: number): number => {\n// if (c <= 0.03928) {\n// return c / 12.92;\n// } else {\n// return ((c + 0.055) / 1.055) ** 2.4;\n// }\n// };\n// // https://www.w3.org/TR/WCAG20/#contrast-ratiodef\n// const relativeLuminance = (r: number, g: number, b: number): number => {\n// return (\n// 0.2126 * relativeLuminanceFormel(r) + 0.7152 * relativeLuminanceFormel(g) + 0.0722 * relativeLuminanceFormel(b)\n// );\n// };\n\n// https://css-tricks.com/snippets/javascript/random-hex-color/\n// const randomColor = () => Math.floor(Math.random() * 16777215).toString(16);\n\n// https://24ways.org/2010/calculating-color-contrast/\nexport const getContrastYIQ = (r: number, g: number, b: number): number => {\n\tconst yiq = (r * 299 + g * 587 + b * 114) / 1000;\n\treturn yiq >= 128 ? -1 : 1;\n};\n\ntype ColorPair<T> = {\n\tbackground: T;\n\tforeground: T;\n};\n\nexport type ColorContrast<T> = ColorPair<T> & {\n\tcontrast: number;\n};\n\nexport const calcColorContrast = (baseColor: RGB, contrastColor: RGB, ratio: number, dir = 1): ColorContrast<RGB> => {\n\tconst color: RGB = [\n\t\tMath.max(Math.min(Math.round(contrastColor[0] + dir * Math.max(1, contrastColor[0] / 100)), 255), 0),\n\t\tMath.max(Math.min(Math.round(contrastColor[1] + dir * Math.max(1, contrastColor[1] / 100)), 255), 0),\n\t\tMath.max(Math.min(Math.round(contrastColor[2] + dir * Math.max(1, contrastColor[2] / 100)), 255), 0),\n\t];\n\tconst contrast = hex(rgbaConvert.hex(`rgba(${baseColor.join(',')},1)`), rgbaConvert.hex(`rgba(${color.join(',')},1)`));\n\tconst summe = color[0] + color[1] + color[2];\n\tif (summe === 0 || summe === 765 || contrast > ratio) {\n\t\treturn {\n\t\t\tbackground: baseColor,\n\t\t\tforeground: color,\n\t\t\tcontrast,\n\t\t};\n\t} else {\n\t\treturn calcColorContrast(baseColor, color, ratio, dir);\n\t}\n};\n\nconst cache: Map<unknown, ColorContrast<RGB>> = new Map();\n\nexport const getColorContrast = (baseColor: RGB, contrastColor: RGB, ratio: number, dir = 1): ColorContrast<RGB> => {\n\tif (cache.has(baseColor)) {\n\t\treturn cache.get(baseColor) as ColorContrast<RGB>;\n\t}\n\tconst color = calcColorContrast(baseColor, contrastColor, ratio, dir);\n\tcache.set(baseColor, color);\n\treturn color;\n};\n\nexport const createContrastColorPair = (color: string | ColorPair<string>, contrastRatio = 7): ColorContrast<string> => {\n\tlet baseColor: RGBA = [0, 0, 0, 1];\n\tlet contrastColor: RGBA = [255, 255, 255, 1];\n\tif (typeof color === 'string') {\n\t\tbaseColor = rgba(color);\n\t\tcontrastColor = baseColor;\n\t} else if (typeof color === 'object' && color !== null && typeof color.background === 'string' && typeof color.foreground === 'string') {\n\t\tbaseColor = rgba(color.background);\n\t\tif (typeof color.foreground === 'string') {\n\t\t\tcontrastColor = rgba(color.foreground);\n\t\t} else {\n\t\t\tcontrastColor = baseColor;\n\t\t}\n\t}\n\tconst yiq = getContrastYIQ(baseColor[0], baseColor[1], baseColor[2]);\n\tconst colorContrast = getColorContrast(\n\t\t[baseColor[0], baseColor[1], baseColor[2]],\n\t\t[contrastColor[0], contrastColor[1], contrastColor[2]],\n\t\tcontrastRatio,\n\t\tyiq,\n\t);\n\tcontrastColor = [...colorContrast.foreground, 1];\n\n\treturn {\n\t\tbackground: rgbaConvert.hex(`rgba(${baseColor.join(',')})`),\n\t\tforeground: rgbaConvert.hex(`rgba(${contrastColor.join(',')})`),\n\t\tcontrast: colorContrast.contrast,\n\t};\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { Stringified } from '../types';\nimport type { ColorContrast, WatchOptions } from '../utils';\nimport { a11yHint, createContrastColorPair, Log, watchValidator } from '../utils';\n\n/**\n * Defines the colors for primary, secondary and neutral.\n */\ntype CharacteristicColors = {\n\tprimary: string;\n\tsecondary: string;\n\tneutral: string;\n};\n\n/**\n * Defines the backgroundColor and foregroundColor.\n */\nexport type ColorPair = {\n\tbackgroundColor: string;\n\tforegroundColor: Stringified<CharacteristicColors>;\n};\n\nexport type PropColor = ColorPair;\n\ntype typeOfColorType = 'string' | 'ColorPair' | null;\n\nconst HEX_REGEX = /^#((\\d|[a-f]){8}|(\\d|[a-f]){6}|(\\d|[a-f]){3,4})$/i;\nfunction isHexString(value: string): boolean {\n\treturn HEX_REGEX.test(value);\n}\n/* checks if the string is valid JSON and if the resulting object is a valid ColorPair and returns it, or null if invalid. */\nfunction isColorObjectString(value: string): { type: typeOfColorType; value: PropColor | null } {\n\tif (value.startsWith('{')) {\n\t\ttry {\n\t\t\tconst parsed = JSON.parse(value) as unknown;\n\t\t\tif (isValidColorPair(parsed as ColorPair)) return { type: 'ColorPair', value: parsed as ColorPair };\n\t\t} catch (error) {\n\t\t\treturn { type: null, value: null };\n\t\t}\n\t}\n\treturn { type: null, value: null };\n}\n\nfunction typeOfColor(value?: unknown): { type: typeOfColorType; valid: boolean; value: PropColor | string } {\n\tif (value) {\n\t\tif (typeof value === 'string') {\n\t\t\tif (isHexString(value)) return { type: 'string', valid: true, value: value };\n\t\t\telse {\n\t\t\t\tconst colorObject = isColorObjectString(value);\n\t\t\t\tif (colorObject.value) return { type: colorObject.type, valid: true, value: colorObject.value };\n\t\t\t}\n\t\t} else {\n\t\t\tconst asColorPair = value as ColorPair;\n\t\t\tif (isValidColorPair(asColorPair)) return { type: 'ColorPair', valid: true, value: asColorPair };\n\t\t}\n\t}\n\treturn { type: null, valid: false, value: '' };\n}\n\n/* validate different color options */\nfunction isValidColorPair(value: ColorPair): boolean {\n\treturn !!(\n\t\ttypeof value === 'object' &&\n\t\tvalue &&\n\t\ttypeof value.backgroundColor === 'string' &&\n\t\t(typeof value.foregroundColor === 'string' ||\n\t\t\t(value.foregroundColor &&\n\t\t\t\ttypeof value.foregroundColor.primary === 'string' &&\n\t\t\t\ttypeof value.foregroundColor.secondary === 'string' &&\n\t\t\t\ttypeof value.foregroundColor.neutral === 'string'))\n\t);\n}\n\nfunction validatorFunction(value?: Stringified<PropColor>): boolean {\n\tconst valueType = typeOfColor(value);\n\tswitch (valueType.type) {\n\t\tcase null:\n\t\t\treturn false;\n\t\tcase 'string':\n\t\tcase 'ColorPair':\n\t\t\treturn valueType.valid;\n\t}\n}\n\nexport const validateColor = (component: Generic.Element.Component, value?: Stringified<PropColor>, options?: WatchOptions): void => {\n\twatchValidator(component, '_color', validatorFunction, new Set(['rgb in hex', 'ColorPair']), value, options);\n};\n\nexport const handleColorChange = (value: unknown): ColorPair => {\n\tlet colorContrast: ColorContrast<string>;\n\tconst valueType = typeOfColor(value);\n\tswitch (valueType.type) {\n\t\tcase 'string':\n\t\t\tcolorContrast = createContrastColorPair(valueType.value as string);\n\t\t\tbreak;\n\t\tcase 'ColorPair': {\n\t\t\tconst asColorPair = valueType.value as ColorPair;\n\t\t\tlet foreground = '';\n\t\t\tif (typeof asColorPair.foregroundColor === 'string') foreground = asColorPair.foregroundColor;\n\t\t\telse if (asColorPair.foregroundColor?.primary) foreground = asColorPair.foregroundColor.primary;\n\t\t\tif (!foreground || typeof foreground !== 'string') foreground = '#fff';\n\t\t\tcolorContrast = createContrastColorPair({\n\t\t\t\tbackground: asColorPair.backgroundColor,\n\t\t\t\tforeground,\n\t\t\t});\n\t\t\tbreak;\n\t\t}\n\t\tcase null:\n\t\t\tLog.warn(`_color was empty or invalid (${JSON.stringify(value)})`);\n\t\t\tcolorContrast = createContrastColorPair({\n\t\t\t\tbackground: '#000',\n\t\t\t\tforeground: '#000',\n\t\t\t});\n\t}\n\n\tif (colorContrast.contrast < 7) {\n\t\ta11yHint(\n\t\t\t`[KolBadge] The contrast of ${colorContrast.contrast} (≥7, AAA) is to low, between the color pair ${colorContrast.background} and ${colorContrast.foreground}.`,\n\t\t);\n\t}\n\treturn {\n\t\tbackgroundColor: colorContrast.background,\n\t\tforegroundColor: colorContrast.foreground,\n\t};\n};\n"],"names":["hex","rgbaConvert"],"mappings":";;;;;AAAA;AAIA;AACe,SAAS,IAAI,EAAE,KAAK,EAAE;AACrC;AACA,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,GAAG,EAAE,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,GAAG,SAAS,EAAC;AACxE;AACA,CAAI,IAAC,MAAM,CAAM;AACjB;AACA;AACA,CAAC,IAAI,MAAM,GAAG,KAAK,CAAC,KAAK,EAAC;AAC1B;AACA,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE;AAC7B;AACA,CAAC,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,GAAG,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,IAAG;AACxD,CAAC,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,GAAG,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,IAAG;AACxD;AACA,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC,EAAC;AAClB,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAC;AACjE,CAAC,MAAM,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e;gBACvC,UAAU;AACV,aAAA,CAAC;YACF;;AAED,QAAA,KAAK,IAAI;AACR,YAAA,GAAG,CAAC,IAAI,CAAC,CAAA,6BAAA,EAAgC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAG,CAAA,CAAA,CAAC;YAClE,aAAa,GAAG,uBAAuB,CAAC;AACvC,gBAAA,UAAU,EAAE,MAAM;AAClB,gBAAA,UAAU,EAAE,MAAM;AAClB,aAAA,CAAC;;AAGJ,IAAA,IAAI,aAAa,CAAC,QAAQ,GAAG,CAAC,EAAE;AAC/B,QAAA,QAAQ,CACP,CAAA,2BAAA,EAA8B,aAAa,CAAC,QAAQ,CAAgD,6CAAA,EAAA,aAAa,CAAC,UAAU,QAAQ,aAAa,CAAC,UAAU,CAAA,CAAA,CAAG,CAC/J;;IAEF,OAAO;QACN,eAAe,EAAE,aAAa,CAAC,UAAU;QACzC,eAAe,EAAE,aAAa,CAAC,UAAU;KACzC;AACF;;;;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"color-DM0xsWqW.js","sources":["../../node_modules/.pnpm/color-rgba@2.4.0/node_modules/color-rgba/index.mjs","src/schema/utils/contrast.ts","src/schema/props/color.ts"],"sourcesContent":["/** @module color-rgba */\r\nimport parse from 'color-parse'\r\nimport rgb from 'color-space/rgb.js'\r\nimport hsl from 'color-space/hsl.js'\r\n\r\nexport default function rgba (color) {\r\n\t// template literals\r\n\tif (Array.isArray(color) && color.raw) color = String.raw(...arguments)\r\n\r\n\tvar values, i, l\r\n\r\n\t//attempt to parse non-array arguments\r\n\tvar parsed = parse(color)\r\n\r\n\tif (!parsed.space) return []\r\n\r\n\tconst min = parsed.space[0] === 'h' ? hsl.min : rgb.min\r\n\tconst max = parsed.space[0] === 'h' ? hsl.max : rgb.max\r\n\r\n\tvalues = Array(3)\r\n\tvalues[0] = Math.min(Math.max(parsed.values[0], min[0]), max[0])\r\n\tvalues[1] = Math.min(Math.max(parsed.values[1], min[1]), max[1])\r\n\tvalues[2] = Math.min(Math.max(parsed.values[2], min[2]), max[2])\r\n\r\n\tif (parsed.space[0] === 'h') {\r\n\t\tvalues = hsl.rgb(values)\r\n\t}\r\n\r\n\tvalues.push(Math.min(Math.max(parsed.alpha, 0), 1))\r\n\r\n\treturn values\r\n}\r\n","import type { RGB } from 'color-convert/conversions';\nimport { hex } from 'wcag-contrast';\n\nimport rgba from 'color-rgba';\nimport rgbaConvert from 'rgba-convert';\n\ntype RGBA = [number, number, number, number];\n\n// const calcColor = (color: RGBA, diff: number): RGBA => [\n// Math.max(Math.min(Math.round(color[0] + (color[0] / 100 + 1) * diff), 255), 0),\n// Math.max(Math.min(Math.round(color[1] + (color[1] / 100 + 1) * diff), 255), 0),\n// Math.max(Math.min(Math.round(color[2] + (color[2] / 100 + 1) * diff), 255), 0),\n// color[3],\n// ];\n\n// const relativeLuminanceFormel = (c: number): number => {\n// if (c <= 0.03928) {\n// return c / 12.92;\n// } else {\n// return ((c + 0.055) / 1.055) ** 2.4;\n// }\n// };\n// // https://www.w3.org/TR/WCAG20/#contrast-ratiodef\n// const relativeLuminance = (r: number, g: number, b: number): number => {\n// return (\n// 0.2126 * relativeLuminanceFormel(r) + 0.7152 * relativeLuminanceFormel(g) + 0.0722 * relativeLuminanceFormel(b)\n// );\n// };\n\n// https://css-tricks.com/snippets/javascript/random-hex-color/\n// const randomColor = () => Math.floor(Math.random() * 16777215).toString(16);\n\n// https://24ways.org/2010/calculating-color-contrast/\nexport const getContrastYIQ = (r: number, g: number, b: number): number => {\n\tconst yiq = (r * 299 + g * 587 + b * 114) / 1000;\n\treturn yiq >= 128 ? -1 : 1;\n};\n\ntype ColorPair<T> = {\n\tbackground: T;\n\tforeground: T;\n};\n\nexport type ColorContrast<T> = ColorPair<T> & {\n\tcontrast: number;\n};\n\nexport const calcColorContrast = (baseColor: RGB, contrastColor: RGB, ratio: number, dir = 1): ColorContrast<RGB> => {\n\tconst color: RGB = [\n\t\tMath.max(Math.min(Math.round(contrastColor[0] + dir * Math.max(1, contrastColor[0] / 100)), 255), 0),\n\t\tMath.max(Math.min(Math.round(contrastColor[1] + dir * Math.max(1, contrastColor[1] / 100)), 255), 0),\n\t\tMath.max(Math.min(Math.round(contrastColor[2] + dir * Math.max(1, contrastColor[2] / 100)), 255), 0),\n\t];\n\tconst contrast = hex(rgbaConvert.hex(`rgba(${baseColor.join(',')},1)`), rgbaConvert.hex(`rgba(${color.join(',')},1)`));\n\tconst summe = color[0] + color[1] + color[2];\n\tif (summe === 0 || summe === 765 || contrast > ratio) {\n\t\treturn {\n\t\t\tbackground: baseColor,\n\t\t\tforeground: color,\n\t\t\tcontrast,\n\t\t};\n\t} else {\n\t\treturn calcColorContrast(baseColor, color, ratio, dir);\n\t}\n};\n\nconst cache: Map<unknown, ColorContrast<RGB>> = new Map();\n\nexport const getColorContrast = (baseColor: RGB, contrastColor: RGB, ratio: number, dir = 1): ColorContrast<RGB> => {\n\tif (cache.has(baseColor)) {\n\t\treturn cache.get(baseColor) as ColorContrast<RGB>;\n\t}\n\tconst color = calcColorContrast(baseColor, contrastColor, ratio, dir);\n\tcache.set(baseColor, color);\n\treturn color;\n};\n\nexport const createContrastColorPair = (color: string | ColorPair<string>, contrastRatio = 7): ColorContrast<string> => {\n\tlet baseColor: RGBA = [0, 0, 0, 1];\n\tlet contrastColor: RGBA = [255, 255, 255, 1];\n\tif (typeof color === 'string') {\n\t\tbaseColor = rgba(color);\n\t\tcontrastColor = baseColor;\n\t} else if (typeof color === 'object' && color !== null && typeof color.background === 'string' && typeof color.foreground === 'string') {\n\t\tbaseColor = rgba(color.background);\n\t\tif (typeof color.foreground === 'string') {\n\t\t\tcontrastColor = rgba(color.foreground);\n\t\t} else {\n\t\t\tcontrastColor = baseColor;\n\t\t}\n\t}\n\tconst yiq = getContrastYIQ(baseColor[0], baseColor[1], baseColor[2]);\n\tconst colorContrast = getColorContrast(\n\t\t[baseColor[0], baseColor[1], baseColor[2]],\n\t\t[contrastColor[0], contrastColor[1], contrastColor[2]],\n\t\tcontrastRatio,\n\t\tyiq,\n\t);\n\tcontrastColor = [...colorContrast.foreground, 1];\n\n\treturn {\n\t\tbackground: rgbaConvert.hex(`rgba(${baseColor.join(',')})`),\n\t\tforeground: rgbaConvert.hex(`rgba(${contrastColor.join(',')})`),\n\t\tcontrast: colorContrast.contrast,\n\t};\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { Stringified } from '../types';\nimport type { ColorContrast, WatchOptions } from '../utils';\nimport { a11yHint, createContrastColorPair, Log, watchValidator } from '../utils';\n\n/**\n * Defines the colors for primary, secondary and neutral.\n */\ntype CharacteristicColors = {\n\tprimary: string;\n\tsecondary: string;\n\tneutral: string;\n};\n\n/**\n * Defines the backgroundColor and foregroundColor.\n */\nexport type ColorPair = {\n\tbackgroundColor: string;\n\tforegroundColor: Stringified<CharacteristicColors>;\n};\n\nexport type PropColor = ColorPair;\n\ntype typeOfColorType = 'string' | 'ColorPair' | null;\n\nconst HEX_REGEX = /^#((\\d|[a-f]){8}|(\\d|[a-f]){6}|(\\d|[a-f]){3,4})$/i;\nfunction isHexString(value: string): boolean {\n\treturn HEX_REGEX.test(value);\n}\n/* checks if the string is valid JSON and if the resulting object is a valid ColorPair and returns it, or null if invalid. */\nfunction isColorObjectString(value: string): { type: typeOfColorType; value: PropColor | null } {\n\tif (value.startsWith('{')) {\n\t\ttry {\n\t\t\tconst parsed = JSON.parse(value) as unknown;\n\t\t\tif (isValidColorPair(parsed as ColorPair)) return { type: 'ColorPair', value: parsed as ColorPair };\n\t\t} catch (error) {\n\t\t\treturn { type: null, value: null };\n\t\t}\n\t}\n\treturn { type: null, value: null };\n}\n\nfunction typeOfColor(value?: unknown): { type: typeOfColorType; valid: boolean; value: PropColor | string } {\n\tif (value) {\n\t\tif (typeof value === 'string') {\n\t\t\tif (isHexString(value)) return { type: 'string', valid: true, value: value };\n\t\t\telse {\n\t\t\t\tconst colorObject = isColorObjectString(value);\n\t\t\t\tif (colorObject.value) return { type: colorObject.type, valid: true, value: colorObject.value };\n\t\t\t}\n\t\t} else {\n\t\t\tconst asColorPair = value as ColorPair;\n\t\t\tif (isValidColorPair(asColorPair)) return { type: 'ColorPair', valid: true, value: asColorPair };\n\t\t}\n\t}\n\treturn { type: null, valid: false, value: '' };\n}\n\n/* validate different color options */\nfunction isValidColorPair(value: ColorPair): boolean {\n\treturn !!(\n\t\ttypeof value === 'object' &&\n\t\tvalue &&\n\t\ttypeof value.backgroundColor === 'string' &&\n\t\t(typeof value.foregroundColor === 'string' ||\n\t\t\t(value.foregroundColor &&\n\t\t\t\ttypeof value.foregroundColor.primary === 'string' &&\n\t\t\t\ttypeof value.foregroundColor.secondary === 'string' &&\n\t\t\t\ttypeof value.foregroundColor.neutral === 'string'))\n\t);\n}\n\nfunction validatorFunction(value?: Stringified<PropColor>): boolean {\n\tconst valueType = typeOfColor(value);\n\tswitch (valueType.type) {\n\t\tcase null:\n\t\t\treturn false;\n\t\tcase 'string':\n\t\tcase 'ColorPair':\n\t\t\treturn valueType.valid;\n\t}\n}\n\nexport const validateColor = (component: Generic.Element.Component, value?: Stringified<PropColor>, options?: WatchOptions): void => {\n\twatchValidator(component, '_color', validatorFunction, new Set(['rgb in hex', 'ColorPair']), value, options);\n};\n\nexport const handleColorChange = (value: unknown): ColorPair => {\n\tlet colorContrast: ColorContrast<string>;\n\tconst valueType = typeOfColor(value);\n\tswitch (valueType.type) {\n\t\tcase 'string':\n\t\t\tcolorContrast = createContrastColorPair(valueType.value as string);\n\t\t\tbreak;\n\t\tcase 'ColorPair': {\n\t\t\tconst asColorPair = valueType.value as ColorPair;\n\t\t\tlet foreground = '';\n\t\t\tif (typeof asColorPair.foregroundColor === 'string') foreground = asColorPair.foregroundColor;\n\t\t\telse if (asColorPair.foregroundColor?.primary) foreground = asColorPair.foregroundColor.primary;\n\t\t\tif (!foreground || typeof foreground !== 'string') foreground = '#fff';\n\t\t\tcolorContrast = createContrastColorPair({\n\t\t\t\tbackground: asColorPair.backgroundColor,\n\t\t\t\tforeground,\n\t\t\t});\n\t\t\tbreak;\n\t\t}\n\t\tcase null:\n\t\t\tLog.warn(`_color was empty or invalid (${JSON.stringify(value)})`);\n\t\t\tcolorContrast = createContrastColorPair({\n\t\t\t\tbackground: '#000',\n\t\t\t\tforeground: '#000',\n\t\t\t});\n\t}\n\n\tif (colorContrast.contrast < 7) {\n\t\ta11yHint(\n\t\t\t`[KolBadge] The contrast of ${colorContrast.contrast} (≥7, AAA) is to low, between the color pair ${colorContrast.background} and ${colorContrast.foreground}.`,\n\t\t);\n\t}\n\treturn {\n\t\tbackgroundColor: colorContrast.background,\n\t\tforegroundColor: colorContrast.foreground,\n\t};\n};\n"],"names":["hex","rgbaConvert"],"mappings":";;;;;AAAA;AAIA;AACe,SAAS,IAAI,EAAE,KAAK,EAAE;AACrC;AACA,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,GAAG,EAAE,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,GAAG,SAAS,EAAC;AACxE;AACA,CAAI,IAAC,MAAM,CAAM;AACjB;AACA;AACA,CAAC,IAAI,MAAM,GAAG,KAAK,CAAC,KAAK,EAAC;AAC1B;AACA,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE;AAC7B;AACA,CAAC,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,GAAG,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,IAAG;AACxD,CAAC,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,GAAG,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,IAAG;AACxD;AACA,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC,EAAC;AAClB,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CA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