@public-ui/components 2.0.0-rc.1 → 2.0.0-rc.2
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 +34 -27
- package/dist/cjs/{a11y.tipps-7bc295a0.js → a11y.tipps-286e2184.js} +1 -1
- package/dist/cjs/{a11y.tipps-7bc295a0.js.map → a11y.tipps-286e2184.js.map} +1 -1
- package/dist/cjs/{align-5cb0bd50.js → align-38fe7d4a.js} +1 -1
- package/dist/cjs/{align-5cb0bd50.js.map → align-38fe7d4a.js.map} +1 -1
- package/dist/cjs/{alignment-160829a3.js → alignment-05ab4f60.js} +1 -1
- package/dist/cjs/{alignment-160829a3.js.map → alignment-05ab4f60.js.map} +1 -1
- package/dist/cjs/alternative-button-link-role-e29e79ed.js +4 -0
- package/dist/cjs/{alternative-button-link-role-9e647514.js.map → alternative-button-link-role-e29e79ed.js.map} +1 -1
- package/dist/cjs/{app-globals-f651a39e.js → app-globals-70ba97cd.js} +1 -1
- package/dist/cjs/{app-globals-f651a39e.js.map → app-globals-70ba97cd.js.map} +1 -1
- package/dist/cjs/{associated.controller-8913f766.js → associated.controller-1273e17d.js} +1 -1
- package/dist/cjs/{associated.controller-8913f766.js.map → associated.controller-1273e17d.js.map} +1 -1
- package/dist/cjs/{color-7556424a.js → color-885864c9.js} +1 -1
- package/dist/cjs/{color-7556424a.js.map → color-885864c9.js.map} +1 -1
- package/dist/cjs/{controller-98eb942a.js → controller-6607a35d.js} +1 -1
- package/dist/cjs/{controller-98eb942a.js.map → controller-6607a35d.js.map} +1 -1
- package/dist/cjs/{controller-e89fd046.js → controller-7156433c.js} +1 -1
- package/dist/cjs/{controller-e89fd046.js.map → controller-7156433c.js.map} +1 -1
- package/dist/cjs/{controller-5e9f8d56.js → controller-95e49b07.js} +1 -1
- package/dist/cjs/{controller-5e9f8d56.js.map → controller-95e49b07.js.map} +1 -1
- package/dist/cjs/{controller-2bc3135f.js → controller-f472b120.js} +1 -1
- package/dist/cjs/{controller-2bc3135f.js.map → controller-f472b120.js.map} +1 -1
- package/dist/cjs/{controller-722157ec.js → controller-ff3d2189.js} +1 -1
- package/dist/cjs/{controller-722157ec.js.map → controller-ff3d2189.js.map} +1 -1
- package/dist/cjs/{controller-icon-e7aae6e1.js → controller-icon-1add536b.js} +1 -1
- package/dist/cjs/{controller-icon-e7aae6e1.js.map → controller-icon-1add536b.js.map} +1 -1
- package/dist/cjs/{custom-class-c6c03255.js → custom-class-d0dc1465.js} +1 -1
- package/dist/cjs/{custom-class-c6c03255.js.map → custom-class-d0dc1465.js.map} +1 -1
- package/dist/cjs/{dev.utils-8c7f47e6.js → dev.utils-6caf7368.js} +1 -1
- package/dist/cjs/{dev.utils-8c7f47e6.js.map → dev.utils-6caf7368.js.map} +1 -1
- package/dist/cjs/{devtools-646843d0.js → devtools-dd717900.js} +1 -1
- package/dist/cjs/{devtools-646843d0.js.map → devtools-dd717900.js.map} +1 -1
- package/dist/cjs/has-closer-309ad54b.js +4 -0
- package/dist/cjs/{has-closer-941dcb50.js.map → has-closer-309ad54b.js.map} +1 -1
- package/dist/cjs/hide-label-37731a74.js +4 -0
- package/dist/cjs/{hide-label-e6f15383.js.map → hide-label-37731a74.js.map} +1 -1
- package/dist/cjs/i18n-d033fd25.js +4 -0
- package/dist/cjs/i18n-d033fd25.js.map +1 -0
- package/dist/cjs/{icons-a50a5cb6.js → icons-8afa4b8a.js} +1 -1
- package/dist/cjs/{icons-a50a5cb6.js.map → icons-8afa4b8a.js.map} +1 -1
- package/dist/cjs/image-source-299d8eab.js +4 -0
- package/dist/cjs/{image-source-be51f603.js.map → image-source-299d8eab.js.map} +1 -1
- package/dist/cjs/{index-65ced40c.js → index-8f2f5b90.js} +1 -1
- package/dist/cjs/{index-65ced40c.js.map → index-8f2f5b90.js.map} +1 -1
- package/dist/cjs/index.cjs.js +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_3.cjs.entry.js +1 -1
- package/dist/cjs/kol-avatar-wc.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-text-switch.cjs.entry.js +1 -1
- package/dist/cjs/kol-button-link-text-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-card.cjs.entry.js +1 -1
- package/dist/cjs/kol-details.cjs.entry.js +1 -1
- package/dist/cjs/kol-details.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-form.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-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-color.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-date.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-email.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-file.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-number.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-password.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-range.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-text.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-input.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-group.cjs.entry.js +1 -1
- package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-link-wc.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-link.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-logo.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-nav.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
- package/dist/cjs/kol-popover.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.cjs.entry.js +1 -1
- package/dist/cjs/kol-select.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
- package/dist/cjs/kol-span-wc_2.cjs.entry.js +1 -1
- package/dist/cjs/kol-spin.cjs.entry.js +1 -1
- package/dist/cjs/kol-symbol.cjs.entry.js +1 -1
- package/dist/cjs/kol-table.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-textarea.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
- package/dist/cjs/kol-toast.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-1aedd7c9.js → label-6a66b6c1.js} +1 -1
- package/dist/cjs/{label-1aedd7c9.js.map → label-6a66b6c1.js.map} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/open-c63a5e3f.js +4 -0
- package/dist/cjs/{open-fb457a4f.js.map → open-c63a5e3f.js.map} +1 -1
- package/dist/cjs/{prop.validators-d9e8f5a9.js → prop.validators-074b54c5.js} +1 -1
- package/dist/cjs/{prop.validators-d9e8f5a9.js.map → prop.validators-074b54c5.js.map} +1 -1
- package/dist/cjs/rows-1e373b35.js +4 -0
- package/dist/cjs/{rows-9e57680f.js.map → rows-1e373b35.js.map} +1 -1
- package/dist/cjs/show-98976820.js +4 -0
- package/dist/cjs/{show-9060efee.js.map → show-98976820.js.map} +1 -1
- package/dist/cjs/{suggestions-97bfee0c.js → suggestions-6959d65d.js} +1 -1
- package/dist/cjs/{suggestions-97bfee0c.js.map → suggestions-6959d65d.js.map} +1 -1
- package/dist/cjs/{tab-index-70de06c1.js → tab-index-ad2bed16.js} +1 -1
- package/dist/cjs/{tab-index-70de06c1.js.map → tab-index-ad2bed16.js.map} +1 -1
- package/dist/cjs/{tooltip-align-5d4d8eef.js → tooltip-align-4f53863a.js} +1 -1
- package/dist/cjs/{tooltip-align-5d4d8eef.js.map → tooltip-align-4f53863a.js.map} +1 -1
- package/dist/cjs/{validation-aa68e6ae.js → validation-90762185.js} +1 -1
- package/dist/cjs/{validation-aa68e6ae.js.map → validation-90762185.js.map} +1 -1
- package/dist/cjs/validation-bd015251.js +4 -0
- package/dist/cjs/{validation-8f74bfb8.js.map → validation-bd015251.js.map} +1 -1
- package/dist/components/component11.js +1 -1
- package/dist/components/component11.js.map +1 -1
- package/dist/components/component15.js.map +1 -1
- package/dist/components/component9.js.map +1 -1
- package/dist/components/i18n.js +1 -1
- package/dist/components/i18n.js.map +1 -1
- package/dist/components/kol-details.js +1 -1
- package/dist/components/kol-details.js.map +1 -1
- package/dist/components/kol-input-checkbox.js.map +1 -1
- package/dist/components/kol-input-color.js.map +1 -1
- package/dist/components/kol-input-date.js.map +1 -1
- package/dist/components/kol-input-email.js.map +1 -1
- package/dist/components/kol-input-file.js.map +1 -1
- package/dist/components/kol-input-number.js.map +1 -1
- package/dist/components/kol-input-password.js.map +1 -1
- package/dist/components/kol-input-radio.js.map +1 -1
- package/dist/components/kol-input-range.js.map +1 -1
- package/dist/components/kol-input-text.js.map +1 -1
- package/dist/components/kol-nav.js +1 -1
- package/dist/components/kol-nav.js.map +1 -1
- package/dist/components/kol-textarea.js.map +1 -1
- package/dist/components/prop.validators.js +1 -1
- package/dist/components/prop.validators.js.map +1 -1
- package/dist/components/shadow2.js.map +1 -1
- package/dist/esm/{a11y.tipps-583a2096.js → a11y.tipps-348ca42a.js} +1 -1
- package/dist/esm/{a11y.tipps-583a2096.js.map → a11y.tipps-348ca42a.js.map} +1 -1
- package/dist/esm/{align-0c96facf.js → align-11b69892.js} +1 -1
- package/dist/esm/{align-0c96facf.js.map → align-11b69892.js.map} +1 -1
- package/dist/esm/{alignment-84fc6207.js → alignment-1bffdb6e.js} +1 -1
- package/dist/esm/{alignment-84fc6207.js.map → alignment-1bffdb6e.js.map} +1 -1
- package/dist/esm/alternative-button-link-role-1ace1f6f.js +4 -0
- package/dist/esm/{alternative-button-link-role-1b39949c.js.map → alternative-button-link-role-1ace1f6f.js.map} +1 -1
- package/dist/esm/{app-globals-fa8bbebf.js → app-globals-d408fcae.js} +1 -1
- package/dist/esm/{app-globals-fa8bbebf.js.map → app-globals-d408fcae.js.map} +1 -1
- package/dist/esm/{associated.controller-103e6fb9.js → associated.controller-a395cef5.js} +1 -1
- package/dist/esm/{associated.controller-103e6fb9.js.map → associated.controller-a395cef5.js.map} +1 -1
- package/dist/esm/{color-3932ac07.js → color-a3271610.js} +1 -1
- package/dist/esm/{color-3932ac07.js.map → color-a3271610.js.map} +1 -1
- package/dist/esm/{controller-75d286de.js → controller-2743a0d8.js} +1 -1
- package/dist/esm/{controller-75d286de.js.map → controller-2743a0d8.js.map} +1 -1
- package/dist/esm/{controller-eb162f21.js → controller-417ec2ab.js} +1 -1
- package/dist/esm/{controller-eb162f21.js.map → controller-417ec2ab.js.map} +1 -1
- package/dist/esm/{controller-cdba1088.js → controller-46e6bd0b.js} +1 -1
- package/dist/esm/{controller-cdba1088.js.map → controller-46e6bd0b.js.map} +1 -1
- package/dist/esm/{controller-b19ee0de.js → controller-64f30149.js} +1 -1
- package/dist/esm/{controller-b19ee0de.js.map → controller-64f30149.js.map} +1 -1
- package/dist/esm/{controller-a13b8955.js → controller-a1e48719.js} +1 -1
- package/dist/esm/{controller-a13b8955.js.map → controller-a1e48719.js.map} +1 -1
- package/dist/esm/{controller-icon-fb1feb61.js → controller-icon-c621ff81.js} +1 -1
- package/dist/esm/{controller-icon-fb1feb61.js.map → controller-icon-c621ff81.js.map} +1 -1
- package/dist/esm/{custom-class-44d7cc63.js → custom-class-87071d99.js} +1 -1
- package/dist/esm/{custom-class-44d7cc63.js.map → custom-class-87071d99.js.map} +1 -1
- package/dist/esm/{dev.utils-2a853234.js → dev.utils-9b878520.js} +1 -1
- package/dist/esm/{dev.utils-2a853234.js.map → dev.utils-9b878520.js.map} +1 -1
- package/dist/esm/{devtools-496ae358.js → devtools-fa2d0662.js} +1 -1
- package/dist/esm/{devtools-496ae358.js.map → devtools-fa2d0662.js.map} +1 -1
- package/dist/esm/{has-closer-fd2d8642.js → has-closer-f3547f42.js} +1 -1
- package/dist/esm/{has-closer-fd2d8642.js.map → has-closer-f3547f42.js.map} +1 -1
- package/dist/esm/{hide-label-2c0bf25c.js → hide-label-ff12ad0b.js} +1 -1
- package/dist/esm/{hide-label-2c0bf25c.js.map → hide-label-ff12ad0b.js.map} +1 -1
- package/dist/esm/i18n-9c7e636f.js +4 -0
- package/dist/esm/i18n-9c7e636f.js.map +1 -0
- package/dist/esm/{icons-ad8a28c6.js → icons-da3b61ae.js} +1 -1
- package/dist/esm/{icons-ad8a28c6.js.map → icons-da3b61ae.js.map} +1 -1
- package/dist/esm/{image-source-58a1cae6.js → image-source-5494399d.js} +1 -1
- package/dist/esm/{image-source-58a1cae6.js.map → image-source-5494399d.js.map} +1 -1
- package/dist/esm/{index-947d3173.js → index-5d267931.js} +1 -1
- package/dist/esm/{index-947d3173.js.map → index-5d267931.js.map} +1 -1
- package/dist/esm/index.js +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_3.entry.js +1 -1
- package/dist/esm/kol-avatar-wc.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-text-switch.entry.js +1 -1
- package/dist/esm/kol-button-link-text-switch.entry.js.map +1 -1
- package/dist/esm/kol-card.entry.js +1 -1
- package/dist/esm/kol-details.entry.js +1 -1
- package/dist/esm/kol-details.entry.js.map +1 -1
- package/dist/esm/kol-form.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-checkbox.entry.js.map +1 -1
- package/dist/esm/kol-input-color.entry.js +1 -1
- package/dist/esm/kol-input-color.entry.js.map +1 -1
- package/dist/esm/kol-input-date.entry.js +1 -1
- package/dist/esm/kol-input-date.entry.js.map +1 -1
- package/dist/esm/kol-input-email.entry.js +1 -1
- package/dist/esm/kol-input-email.entry.js.map +1 -1
- package/dist/esm/kol-input-file.entry.js +1 -1
- package/dist/esm/kol-input-file.entry.js.map +1 -1
- package/dist/esm/kol-input-number.entry.js +1 -1
- package/dist/esm/kol-input-number.entry.js.map +1 -1
- package/dist/esm/kol-input-password.entry.js +1 -1
- package/dist/esm/kol-input-password.entry.js.map +1 -1
- package/dist/esm/kol-input-radio.entry.js +1 -1
- package/dist/esm/kol-input-radio.entry.js.map +1 -1
- package/dist/esm/kol-input-range.entry.js +1 -1
- package/dist/esm/kol-input-range.entry.js.map +1 -1
- package/dist/esm/kol-input-text.entry.js +1 -1
- package/dist/esm/kol-input-text.entry.js.map +1 -1
- package/dist/esm/kol-input.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-group.entry.js +1 -1
- package/dist/esm/kol-link-wc.entry.js +1 -1
- package/dist/esm/kol-link-wc.entry.js.map +1 -1
- package/dist/esm/kol-link.entry.js.map +1 -1
- package/dist/esm/kol-logo.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-nav.entry.js.map +1 -1
- package/dist/esm/kol-pagination.entry.js +1 -1
- package/dist/esm/kol-popover.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.entry.js +1 -1
- package/dist/esm/kol-select.entry.js.map +1 -1
- package/dist/esm/kol-skip-nav.entry.js +1 -1
- package/dist/esm/kol-span-wc_2.entry.js +1 -1
- package/dist/esm/kol-spin.entry.js +1 -1
- package/dist/esm/kol-symbol.entry.js +1 -1
- package/dist/esm/kol-table.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-textarea.entry.js.map +1 -1
- package/dist/esm/kol-toast-container.entry.js +1 -1
- package/dist/esm/kol-toast.entry.js +1 -1
- package/dist/esm/kol-version.entry.js +1 -1
- package/dist/esm/kolibri.js +1 -1
- package/dist/esm/{label-0d258cd5.js → label-c130b72e.js} +1 -1
- package/dist/esm/{label-0d258cd5.js.map → label-c130b72e.js.map} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{open-713ddcdc.js → open-fac63e17.js} +1 -1
- package/dist/esm/{open-713ddcdc.js.map → open-fac63e17.js.map} +1 -1
- package/dist/esm/{prop.validators-125a3282.js → prop.validators-e40c3380.js} +1 -1
- package/dist/esm/{prop.validators-125a3282.js.map → prop.validators-e40c3380.js.map} +1 -1
- package/dist/esm/{rows-d5112a2e.js → rows-f8671a72.js} +1 -1
- package/dist/esm/{rows-d5112a2e.js.map → rows-f8671a72.js.map} +1 -1
- package/dist/esm/{show-9951ecef.js → show-40a56e1f.js} +1 -1
- package/dist/esm/{show-9951ecef.js.map → show-40a56e1f.js.map} +1 -1
- package/dist/esm/{suggestions-50a767be.js → suggestions-871adfaf.js} +1 -1
- package/dist/esm/{suggestions-50a767be.js.map → suggestions-871adfaf.js.map} +1 -1
- package/dist/esm/{tab-index-5e7494f0.js → tab-index-9c6b6a46.js} +1 -1
- package/dist/esm/{tab-index-5e7494f0.js.map → tab-index-9c6b6a46.js.map} +1 -1
- package/dist/esm/{tooltip-align-fe8fbb60.js → tooltip-align-88b82267.js} +1 -1
- package/dist/esm/{tooltip-align-fe8fbb60.js.map → tooltip-align-88b82267.js.map} +1 -1
- package/dist/esm/{validation-33f3aa23.js → validation-36d55135.js} +1 -1
- package/dist/esm/{validation-33f3aa23.js.map → validation-36d55135.js.map} +1 -1
- package/dist/esm/validation-3a52d0f0.js +4 -0
- package/dist/esm/{validation-61e035d7.js.map → validation-3a52d0f0.js.map} +1 -1
- package/dist/kolibri/{a11y.tipps-583a2096.js → a11y.tipps-348ca42a.js} +1 -1
- package/dist/kolibri/align-11b69892.js +4 -0
- package/dist/kolibri/alignment-1bffdb6e.js +4 -0
- package/dist/kolibri/alternative-button-link-role-1ace1f6f.js +4 -0
- package/dist/kolibri/{app-globals-fa8bbebf.js → app-globals-d408fcae.js} +1 -1
- package/dist/kolibri/{associated.controller-103e6fb9.js → associated.controller-a395cef5.js} +1 -1
- package/dist/kolibri/{color-3932ac07.js → color-a3271610.js} +1 -1
- package/dist/kolibri/{controller-75d286de.js → controller-2743a0d8.js} +1 -1
- package/dist/kolibri/{controller-eb162f21.js → controller-417ec2ab.js} +1 -1
- package/dist/kolibri/{controller-cdba1088.js → controller-46e6bd0b.js} +1 -1
- package/dist/kolibri/{controller-b19ee0de.js → controller-64f30149.js} +1 -1
- package/dist/kolibri/{controller-a13b8955.js → controller-a1e48719.js} +1 -1
- package/dist/kolibri/controller-icon-c621ff81.js +4 -0
- package/dist/kolibri/{custom-class-44d7cc63.js → custom-class-87071d99.js} +1 -1
- package/dist/kolibri/{dev.utils-2a853234.js → dev.utils-9b878520.js} +1 -1
- package/dist/kolibri/{dev.utils-2a853234.js.map → dev.utils-9b878520.js.map} +1 -1
- package/dist/kolibri/devtools-fa2d0662.js +4 -0
- package/dist/kolibri/{devtools-496ae358.js.map → devtools-fa2d0662.js.map} +1 -1
- package/dist/kolibri/has-closer-f3547f42.js +4 -0
- package/dist/kolibri/{has-closer-fd2d8642.js.map → has-closer-f3547f42.js.map} +1 -1
- package/dist/kolibri/hide-label-ff12ad0b.js +4 -0
- package/dist/kolibri/i18n-9c7e636f.js +4 -0
- package/dist/kolibri/i18n-9c7e636f.js.map +1 -0
- package/dist/kolibri/icons-da3b61ae.js +4 -0
- package/dist/kolibri/{icons-ad8a28c6.js.map → icons-da3b61ae.js.map} +1 -1
- package/dist/kolibri/image-source-5494399d.js +4 -0
- package/dist/kolibri/{index-947d3173.js → index-5d267931.js} +1 -1
- package/dist/kolibri/index.esm.js +1 -1
- package/dist/kolibri/kol-abbr.entry.js +1 -1
- package/dist/kolibri/kol-abbr.entry.js.map +1 -1
- package/dist/kolibri/kol-accordion.entry.js +1 -1
- package/dist/kolibri/kol-alert-wc_3.entry.js +1 -1
- package/dist/kolibri/kol-avatar-wc.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-text-switch.entry.js +1 -1
- package/dist/kolibri/kol-button-link-text-switch.entry.js.map +1 -1
- package/dist/kolibri/kol-card.entry.js +1 -1
- package/dist/kolibri/kol-details.entry.js +1 -1
- package/dist/kolibri/kol-details.entry.js.map +1 -1
- package/dist/kolibri/kol-form.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-checkbox.entry.js.map +1 -1
- package/dist/kolibri/kol-input-color.entry.js +1 -1
- package/dist/kolibri/kol-input-color.entry.js.map +1 -1
- package/dist/kolibri/kol-input-date.entry.js +1 -1
- package/dist/kolibri/kol-input-date.entry.js.map +1 -1
- package/dist/kolibri/kol-input-email.entry.js +1 -1
- package/dist/kolibri/kol-input-email.entry.js.map +1 -1
- package/dist/kolibri/kol-input-file.entry.js +1 -1
- package/dist/kolibri/kol-input-file.entry.js.map +1 -1
- package/dist/kolibri/kol-input-number.entry.js +1 -1
- package/dist/kolibri/kol-input-number.entry.js.map +1 -1
- package/dist/kolibri/kol-input-password.entry.js +1 -1
- package/dist/kolibri/kol-input-password.entry.js.map +1 -1
- package/dist/kolibri/kol-input-radio.entry.js +1 -1
- package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
- package/dist/kolibri/kol-input-range.entry.js +1 -1
- package/dist/kolibri/kol-input-range.entry.js.map +1 -1
- package/dist/kolibri/kol-input-text.entry.js +1 -1
- package/dist/kolibri/kol-input-text.entry.js.map +1 -1
- package/dist/kolibri/kol-input.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-group.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.map +1 -1
- package/dist/kolibri/kol-logo.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-nav.entry.js.map +1 -1
- package/dist/kolibri/kol-pagination.entry.js +1 -1
- package/dist/kolibri/kol-popover.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.entry.js +1 -1
- package/dist/kolibri/kol-select.entry.js.map +1 -1
- package/dist/kolibri/kol-skip-nav.entry.js +1 -1
- package/dist/kolibri/kol-span-wc_2.entry.js +1 -1
- package/dist/kolibri/kol-spin.entry.js +1 -1
- package/dist/kolibri/kol-symbol.entry.js +1 -1
- package/dist/kolibri/kol-symbol.entry.js.map +1 -1
- package/dist/kolibri/kol-table.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-textarea.entry.js.map +1 -1
- package/dist/kolibri/kol-toast-container.entry.js +1 -1
- package/dist/kolibri/kol-toast.entry.js +1 -1
- package/dist/kolibri/kol-version.entry.js +1 -1
- package/dist/kolibri/kolibri.esm.js +1 -1
- package/dist/kolibri/kolibri.esm.js.map +1 -1
- package/dist/kolibri/{label-0d258cd5.js → label-c130b72e.js} +1 -1
- package/dist/kolibri/open-fac63e17.js +4 -0
- package/dist/kolibri/{prop.validators-125a3282.js → prop.validators-e40c3380.js} +1 -1
- package/dist/kolibri/rows-f8671a72.js +4 -0
- package/dist/kolibri/show-40a56e1f.js +4 -0
- package/dist/kolibri/{suggestions-50a767be.js → suggestions-871adfaf.js} +1 -1
- package/dist/kolibri/tab-index-9c6b6a46.js +4 -0
- package/dist/kolibri/tooltip-align-88b82267.js +4 -0
- package/dist/kolibri/validation-36d55135.js +4 -0
- package/dist/kolibri/validation-3a52d0f0.js +4 -0
- package/dist/types/components/input-checkbox/component.d.ts +1 -1
- package/dist/types/components/input-color/component.d.ts +1 -1
- package/dist/types/components/input-date/component.d.ts +1 -1
- package/dist/types/components/input-email/component.d.ts +1 -1
- package/dist/types/components/input-file/component.d.ts +1 -1
- package/dist/types/components/input-number/component.d.ts +1 -1
- package/dist/types/components/input-password/component.d.ts +1 -1
- package/dist/types/components/input-radio/component.d.ts +1 -1
- package/dist/types/components/input-range/component.d.ts +1 -1
- package/dist/types/components/input-text/component.d.ts +1 -1
- package/dist/types/components/link/component.d.ts +1 -1
- package/dist/types/components/link/shadow.d.ts +1 -1
- package/dist/types/components/link/types.d.ts +2 -2
- package/dist/types/components/nav/component.d.ts +2 -0
- package/dist/types/components/nav/types.d.ts +3 -2
- package/dist/types/components/select/component.d.ts +1 -1
- package/dist/types/components/textarea/component.d.ts +1 -1
- package/dist/types/components.d.ts +36 -28
- package/dist/types/i18n.d.ts +1 -1
- package/dist/types/locales/de.d.ts +2 -0
- package/dist/types/locales/en.d.ts +2 -0
- package/dist/types/types/props/has-compact-button.d.ts +7 -0
- package/doc/button.md +2 -0
- package/doc/input-checkbox.md +22 -22
- package/doc/input-color.md +21 -21
- package/doc/input-date.md +27 -27
- package/doc/input-email.md +29 -29
- package/doc/input-file.md +22 -22
- package/doc/input-number.md +27 -27
- package/doc/input-password.md +26 -26
- package/doc/input-radio.md +20 -20
- package/doc/input-range.md +23 -23
- package/doc/input-text.md +28 -28
- package/doc/link.md +14 -14
- package/doc/nav.md +4 -0
- package/doc/select.md +22 -22
- package/doc/textarea.md +25 -25
- package/package.json +1 -1
- package/vscode-custom-data.json +4 -0
- package/dist/cjs/alternative-button-link-role-9e647514.js +0 -4
- package/dist/cjs/has-closer-941dcb50.js +0 -4
- package/dist/cjs/hide-label-e6f15383.js +0 -4
- package/dist/cjs/i18n-6dea3266.js +0 -4
- package/dist/cjs/i18n-6dea3266.js.map +0 -1
- package/dist/cjs/image-source-be51f603.js +0 -4
- package/dist/cjs/open-fb457a4f.js +0 -4
- package/dist/cjs/rows-9e57680f.js +0 -4
- package/dist/cjs/show-9060efee.js +0 -4
- package/dist/cjs/validation-8f74bfb8.js +0 -4
- package/dist/esm/alternative-button-link-role-1b39949c.js +0 -4
- package/dist/esm/i18n-d0bb1d99.js +0 -4
- package/dist/esm/i18n-d0bb1d99.js.map +0 -1
- package/dist/esm/validation-61e035d7.js +0 -4
- package/dist/kolibri/align-0c96facf.js +0 -4
- package/dist/kolibri/alignment-84fc6207.js +0 -4
- package/dist/kolibri/alternative-button-link-role-1b39949c.js +0 -4
- package/dist/kolibri/controller-icon-fb1feb61.js +0 -4
- package/dist/kolibri/devtools-496ae358.js +0 -4
- package/dist/kolibri/has-closer-fd2d8642.js +0 -4
- package/dist/kolibri/hide-label-2c0bf25c.js +0 -4
- package/dist/kolibri/i18n-d0bb1d99.js +0 -4
- package/dist/kolibri/i18n-d0bb1d99.js.map +0 -1
- package/dist/kolibri/icons-ad8a28c6.js +0 -4
- package/dist/kolibri/image-source-58a1cae6.js +0 -4
- package/dist/kolibri/open-713ddcdc.js +0 -4
- package/dist/kolibri/rows-d5112a2e.js +0 -4
- package/dist/kolibri/show-9951ecef.js +0 -4
- package/dist/kolibri/tab-index-5e7494f0.js +0 -4
- package/dist/kolibri/tooltip-align-fe8fbb60.js +0 -4
- package/dist/kolibri/validation-33f3aa23.js +0 -4
- package/dist/kolibri/validation-61e035d7.js +0 -4
- /package/dist/kolibri/{a11y.tipps-583a2096.js.map → a11y.tipps-348ca42a.js.map} +0 -0
- /package/dist/kolibri/{align-0c96facf.js.map → align-11b69892.js.map} +0 -0
- /package/dist/kolibri/{alignment-84fc6207.js.map → alignment-1bffdb6e.js.map} +0 -0
- /package/dist/kolibri/{alternative-button-link-role-1b39949c.js.map → alternative-button-link-role-1ace1f6f.js.map} +0 -0
- /package/dist/kolibri/{app-globals-fa8bbebf.js.map → app-globals-d408fcae.js.map} +0 -0
- /package/dist/kolibri/{associated.controller-103e6fb9.js.map → associated.controller-a395cef5.js.map} +0 -0
- /package/dist/kolibri/{color-3932ac07.js.map → color-a3271610.js.map} +0 -0
- /package/dist/kolibri/{controller-75d286de.js.map → controller-2743a0d8.js.map} +0 -0
- /package/dist/kolibri/{controller-eb162f21.js.map → controller-417ec2ab.js.map} +0 -0
- /package/dist/kolibri/{controller-cdba1088.js.map → controller-46e6bd0b.js.map} +0 -0
- /package/dist/kolibri/{controller-b19ee0de.js.map → controller-64f30149.js.map} +0 -0
- /package/dist/kolibri/{controller-a13b8955.js.map → controller-a1e48719.js.map} +0 -0
- /package/dist/kolibri/{controller-icon-fb1feb61.js.map → controller-icon-c621ff81.js.map} +0 -0
- /package/dist/kolibri/{custom-class-44d7cc63.js.map → custom-class-87071d99.js.map} +0 -0
- /package/dist/kolibri/{hide-label-2c0bf25c.js.map → hide-label-ff12ad0b.js.map} +0 -0
- /package/dist/kolibri/{image-source-58a1cae6.js.map → image-source-5494399d.js.map} +0 -0
- /package/dist/kolibri/{index-947d3173.js.map → index-5d267931.js.map} +0 -0
- /package/dist/kolibri/{label-0d258cd5.js.map → label-c130b72e.js.map} +0 -0
- /package/dist/kolibri/{open-713ddcdc.js.map → open-fac63e17.js.map} +0 -0
- /package/dist/kolibri/{prop.validators-125a3282.js.map → prop.validators-e40c3380.js.map} +0 -0
- /package/dist/kolibri/{rows-d5112a2e.js.map → rows-f8671a72.js.map} +0 -0
- /package/dist/kolibri/{show-9951ecef.js.map → show-40a56e1f.js.map} +0 -0
- /package/dist/kolibri/{suggestions-50a767be.js.map → suggestions-871adfaf.js.map} +0 -0
- /package/dist/kolibri/{tab-index-5e7494f0.js.map → tab-index-9c6b6a46.js.map} +0 -0
- /package/dist/kolibri/{tooltip-align-fe8fbb60.js.map → tooltip-align-88b82267.js.map} +0 -0
- /package/dist/kolibri/{validation-33f3aa23.js.map → validation-36d55135.js.map} +0 -0
- /package/dist/kolibri/{validation-61e035d7.js.map → validation-3a52d0f0.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{e as watchNumber}from"./prop.validators-
|
|
4
|
+
import{e as watchNumber}from"./prop.validators-e40c3380.js";const validateRows=(a,o)=>{watchNumber(a,"_rows",o,{min:1})};export{validateRows as v};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"rows-
|
|
1
|
+
{"file":"rows-f8671a72.js","mappings":";;;;;MAea,YAAY,GAAG,CAAC,SAAoC,EAAE,KAAoB;EACtF,WAAW,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;AACpD;;;;","names":[],"sources":["src/types/props/rows.ts"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { watchNumber } from '../../utils/prop.validators';\n\n/* types */\nexport type RowsPropType = number;\n\n/**\n * Number of rows of the input element that should be visible at the same time.\n */\nexport type PropRows = {\n\trows: RowsPropType;\n};\n\n/* validator */\nexport const validateRows = (component: Generic.Element.Component, value?: RowsPropType): void => {\n\twatchNumber(component, `_rows`, value, { min: 1 });\n};\n"],"version":3}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{a as watchBoolean}from"./prop.validators-
|
|
4
|
+
import{a as watchBoolean}from"./prop.validators-e40c3380.js";const validateShow=(a,o,t)=>{watchBoolean(a,"_show",o,t)};export{validateShow as v};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"show-
|
|
1
|
+
{"file":"show-40a56e1f.js","mappings":";;;;;MAea,YAAY,GAAG,CAAC,SAAoC,EAAE,KAAoB,EAAE,KAA2B;EACnH,YAAY,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;AAChD;;;;","names":[],"sources":["src/types/props/show.ts"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { watchBoolean, WatchBooleanOptions } from '../../utils/prop.validators';\n\n/* types */\nexport type ShowPropType = boolean;\n\n/**\n * Makes the element show up.\n */\nexport type PropShow = {\n\tshow: ShowPropType;\n};\n\n/* validator */\nexport const validateShow = (component: Generic.Element.Component, value?: ShowPropType, hooks?: WatchBooleanOptions): void => {\n\twatchBoolean(component, '_show', value, hooks);\n};\n"],"version":3}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{c as watchJsonArrayString}from"./prop.validators-
|
|
4
|
+
import{c as watchJsonArrayString}from"./prop.validators-e40c3380.js";import{a as a11yHint}from"./a11y.tipps-348ca42a.js";const validateSuggestions=(s,t)=>{watchJsonArrayString(s,"_suggestions",(s=>"string"==typeof s||"number"==typeof s),t,void 0,{hooks:{afterPatch:s=>{Array.isArray(s)&&s.length&&a11yHint("Property suggestions: Options have accessibility issues in how browsers implemented them and should not be used for now.")}}})};export{validateSuggestions as v};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"suggestions-
|
|
1
|
+
{"file":"suggestions-871adfaf.js","mappings":";;;;;;MAkBa,mBAAmB,GAAG,CAAC,SAAoC,EAAE,KAA2B;EACpG,oBAAoB,CAAC,SAAS,EAAE,cAAc,EAAE,CAAC,IAAmB,KAAK,OAAO,IAAI,KAAK,QAAQ,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE;IAChJ,KAAK,EAAE;MACN,UAAU,EAAE,CAAC,KAAc;QAC1B,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,EAAE;UACzC,QAAQ,CAAC,0HAA0H,CAAC,CAAC;SACrI;OACD;KACD;GACD,CAAC,CAAC;AACJ;;;;","names":[],"sources":["src/types/props/suggestions.ts"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { watchJsonArrayString } from '../../utils/prop.validators';\nimport { Stringified } from '../common';\nimport { W3CInputValue } from '../w3c';\nimport { a11yHint } from '../../utils/a11y.tipps';\n\n/* types */\nexport type SuggestionsPropType = Stringified<W3CInputValue[]>;\n\n/**\n * Suggestions to provide for an input.\n */\nexport type PropSuggestions = {\n\tsuggestions: SuggestionsPropType;\n};\n\n/* validator */\nexport const validateSuggestions = (component: Generic.Element.Component, value?: SuggestionsPropType): void => {\n\twatchJsonArrayString(component, '_suggestions', (item: W3CInputValue) => typeof item === 'string' || typeof item === 'number', value, undefined, {\n\t\thooks: {\n\t\t\tafterPatch: (value: unknown) => {\n\t\t\t\tif (Array.isArray(value) && value.length) {\n\t\t\t\t\ta11yHint('Property suggestions: Options have accessibility issues in how browsers implemented them and should not be used for now.');\n\t\t\t\t}\n\t\t\t},\n\t\t},\n\t});\n};\n"],"version":3}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{a as a11yHint}from"./a11y.tipps-
|
|
4
|
+
import{a as a11yHint}from"./a11y.tipps-348ca42a.js";import{e as watchNumber}from"./prop.validators-e40c3380.js";const options={hooks:{afterPatch:a=>{-1!==a&&0!==a&&a11yHint("Don’t Use Tabindex Greater than 0: https://adrianroselli.com/2014/11/dont-use-tabindex-greater-than-0.html")}}},validateTabIndex=(a,t)=>{watchNumber(a,"_tabIndex",t,options)};export{validateTabIndex as v};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"tab-index-
|
|
1
|
+
{"file":"tab-index-9c6b6a46.js","mappings":";;;;;;AAUA,MAAM,OAAO,GAAuB;EACnC,KAAK,EAAE;IACN,UAAU,EAAE,CAAC,KAAK;MACjB,IAAI,KAAK,KAAK,CAAC,CAAC,IAAI,KAAK,KAAK,CAAC,EAAE;QAChC,QAAQ,CAAC,4GAA4G,CAAC,CAAC;OACvH;KACD;GACD;CACD,CAAC;MAKW,gBAAgB,GAAG,CAAC,SAAoC,EAAE,KAAc;EACpF,WAAW,CAAC,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;AACrD;;;;","names":[],"sources":["src/utils/validators/tab-index.ts"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { a11yHint } from '../a11y.tipps';\nimport { watchNumber, WatchNumberOptions } from '../prop.validators';\n\n/**\n * Accessibility hints\n * - https://adrianroselli.com/2014/11/dont-use-tabindex-greater-than-0.html\n */\n\nconst options: WatchNumberOptions = {\n\thooks: {\n\t\tafterPatch: (value) => {\n\t\t\tif (value !== -1 && value !== 0) {\n\t\t\t\ta11yHint(`Don’t Use Tabindex Greater than 0: https://adrianroselli.com/2014/11/dont-use-tabindex-greater-than-0.html`);\n\t\t\t}\n\t\t},\n\t},\n};\n\n/**\n * Diese Methode validiert das Property und setzt den State, wenn es valide ist.\n */\nexport const validateTabIndex = (component: Generic.Element.Component, value?: number): void => {\n\twatchNumber(component, '_tabIndex', value, options);\n};\n"],"version":3}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{v as validateAlignment}from"./alignment-
|
|
4
|
+
import{v as validateAlignment}from"./alignment-1bffdb6e.js";const validateTooltipAlign=(i,t)=>{validateAlignment(i,"_tooltipAlign",t)};export{validateTooltipAlign as v};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"tooltip-align-
|
|
1
|
+
{"file":"tooltip-align-88b82267.js","mappings":";;;;;MAgBa,oBAAoB,GAAG,CAAC,SAAoC,EAAE,KAA4B;EACtG,iBAAiB,CAAC,SAAS,EAAE,eAAe,EAAE,KAAK,CAAC,CAAC;AACtD;;;;","names":[],"sources":["src/types/props/tooltip-align.ts"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { validateAlignment } from '../../utils/validators/alignment';\nimport { AlignPropType } from './align';\n\n/* types */\nexport type TooltipAlignPropType = AlignPropType;\n\n/**\n * Defines where to show the Tooltip preferably: top, right, bottom or left.\n */\nexport type PropTooltipAlign = {\n\ttooltipAlign: TooltipAlignPropType;\n};\n\n/* validator */\nexport const validateTooltipAlign = (component: Generic.Element.Component, value?: TooltipAlignPropType): void => {\n\tvalidateAlignment(component, '_tooltipAlign', value);\n};\n"],"version":3}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{w as watchValidator}from"./prop.validators-
|
|
4
|
+
import{w as watchValidator}from"./prop.validators-e40c3380.js";const watchHeadingLevel=(e,a)=>{watchValidator(e,"_level",(e=>"number"==typeof e&&0<=e&&e<=6),new Set(["Number {0, 1, 2, 3, 4, 5, 6}"]),a,{defaultValue:1,required:!0})};export{watchHeadingLevel as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"validation-
|
|
1
|
+
{"file":"validation-36d55135.js","mappings":";;;;;MAIa,iBAAiB,GAAG,CAAC,SAAoC,EAAE,KAAc;EACrF,cAAc,CACb,SAAS,EACT,QAAQ,EACR,CAAC,KAAK;IACL,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,IAAI,KAAK,IAAI,KAAK,IAAI,CAAC,CAAC;GAC7D,EACD,IAAI,GAAG,CAAC,CAAC,8BAA8B,CAAC,CAAC,EACzC,KAAK,EACL;IAEC,YAAY,EAAE,CAAC;IACf,QAAQ,EAAE,IAAI;GACd,CACD,CAAC;AACH;;;;","names":[],"sources":["src/components/heading/validation.ts"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { watchValidator } from '../../utils/prop.validators';\n\nexport const watchHeadingLevel = (component: Generic.Element.Component, value?: number): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t'_level',\n\t\t(value): boolean => {\n\t\t\treturn typeof value === 'number' && 0 <= value && value <= 6;\n\t\t},\n\t\tnew Set(['Number {0, 1, 2, 3, 4, 5, 6}']),\n\t\tvalue,\n\t\t{\n\t\t\t// TODO: options not in the validator\n\t\t\tdefaultValue: 1,\n\t\t\trequired: true,\n\t\t}\n\t);\n};\n"],"version":3}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{c as uiUxHintMillerscheZahl}from"./a11y.tipps-348ca42a.js";import{c as watchJsonArrayString}from"./prop.validators-e40c3380.js";const watchNavLinks=(t,a,s)=>{watchJsonArrayString(a,"_links",(t=>"object"==typeof t&&("string"==typeof t._href||"string"==typeof t._label)),s),uiUxHintMillerscheZahl(t,a.state._links.length)};export{watchNavLinks as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"validation-
|
|
1
|
+
{"file":"validation-3a52d0f0.js","mappings":";;;;;;MAUa,aAAa,GAAG,CAC5B,SAAiB,EACjB,SAIC,EACD,KAAsC;EAEtC,oBAAoB,CACnB,SAAS,EACT,QAAQ,EACR,CAAC,IAAI,KAAK,OAAO,IAAI,KAAK,QAAQ,KAAK,OAAQ,IAAiB,CAAC,KAAK,KAAK,QAAQ,IAAI,OAAQ,IAAkB,CAAC,MAAM,KAAK,QAAQ,CAAC,EACtI,KAAK,CACL,CAAC;EACF,sBAAsB,CAAC,SAAS,EAAE,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AAClE;;;;","names":[],"sources":["src/components/nav/validation.ts"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { Stringified } from '../../types/common';\nimport { HrefProp } from '../../types/props/href';\nimport { LabelProp } from '../../types/props/label';\nimport { uiUxHintMillerscheZahl } from '../../utils/a11y.tipps';\nimport { watchJsonArrayString } from '../../utils/prop.validators';\n\ntype HrefOrLabelProp = HrefProp | LabelProp;\n\nexport const watchNavLinks = (\n\tclassName: string,\n\tcomponent: Generic.Element.Component & {\n\t\tstate: {\n\t\t\t_links: HrefOrLabelProp[];\n\t\t};\n\t},\n\tvalue?: Stringified<HrefOrLabelProp[]>\n): void => {\n\twatchJsonArrayString(\n\t\tcomponent,\n\t\t'_links',\n\t\t(link) => typeof link === 'object' && (typeof (link as HrefProp)._href === 'string' || typeof (link as LabelProp)._label === 'string'),\n\t\tvalue\n\t);\n\tuiUxHintMillerscheZahl(className, component.state._links.length);\n};\n"],"version":3}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{L as e}from"./dev.utils-
|
|
4
|
+
import{L as e}from"./dev.utils-9b878520.js";const i=new Set,n=(n,r)=>{(!1===i.has(n)||(null==r?void 0:r.force))&&(i.add(n),e.debug([n].concat((null==r?void 0:r.details)||[]),{classifier:"✋ a11y",overwriteStyle:"; background-color: #09f"}))},o=new Set,r=(n,i)=>{(!1===o.has(n)||(null==i?void 0:i.force))&&(o.add(n),e.debug([n].concat((null==i?void 0:i.details)||[]),{classifier:"💻 dev",overwriteStyle:"; background-color: #f09"}))},t=(n,i)=>{(!1===o.has(n)||(null==i?void 0:i.force))&&(o.add(n),e.warn([n].concat((null==i?void 0:i.details)||[]),{classifier:"💻 dev",overwriteStyle:"; background-color: #f09"}))},s=new Set,l=(n,i=!1,r)=>{(!1===s.has(n)||(null==r?void 0:r.force))&&(s.add(n),n+=!0===i?" ✅":"",e.debug([n].concat((null==r?void 0:r.details)||[]),{classifier:"🌟 feature",overwriteStyle:"; background-color: #309"}))};r("Wir freuen uns über jedes Feedback, Kommentare, Screenshots oder Demo-Links von einer auf KoliBri-basierenden Anwendung (kolibri@itzbund.de). Vielen Dank!");const a=new Set,d=(n,i)=>{(!1===a.has(n)||(null==i?void 0:i.force))&&(a.add(n),e.debug([n].concat((null==i?void 0:i.details)||[]),{classifier:"📑 ui/ux",overwriteStyle:"; background-color: #060;"}))},c=()=>{n('"Disabled" schränkt die Zugänglichkeit und Sichtbarkeit ein. Wir empfehlen aus Sicht der Barrierefreiheit readonly- statt disabled-Attribut zu verwenden.\n- https://uxdesign.cc/is-it-ok-to-grey-out-disabled-buttons-8afa74a0fae')},u=e=>{"string"==typeof e&&""!==e||n("Manche Strukturelemente, wie bspw. der nav-Tag, können mehrfach in einer Webseite verwendet werden. Damit die gleichnamigen Strukturelemente voneinander unterschieden werden können, ist es erforderlich ein Aria-Label zu setzen.\n- https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Navigation_Role#accessibility_concerns")},v=(e,n=8)=>{n>7&&d(`[${e}] Innerhalb von Navigationsstrukturen wird empfohlen nicht mehr als 7 Menüpunkte zu verwenden.\n\nLinks:\n- https://de.ryte.com/wiki/Millersche_Zahl\n- https://de.wikipedia.org/wiki/Millersche_Zahl`)};export{n as a,u as b,v as c,r as d,c as e,l as f,t as g,d as u};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{w as t}from"./prop.validators-e40c3380.js";const o=new Set(['"left", "right"']),e=new Set(['"bottom", "top"']),s=new Set([...o,...e]),n=(o,e,p)=>{t(o,e,(t=>"bottom"===t||"left"===t||"right"===t||"top"===t),s,p,{defaultValue:"top"})};export{n as v};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{a as o}from"./index-d0c806ea.js";import{r as s}from"./index-
|
|
4
|
+
import{a as o}from"./index-d0c806ea.js";import{r as s}from"./index-5d267931.js";import{L as t,s as e,g as a}from"./dev.utils-9b878520.js";import{p as i}from"./reuse-b3566e4c.js";const r=async()=>{o((o=>(o.shadowRoot instanceof ShadowRoot&&e(o,a(o)),"default"))),await s([],[]),import("./devtools-fa2d0662.js").then((o=>{"object"==typeof o&&null!==o&&"function"==typeof o.initialize&&o.initialize()})).catch((o=>{t.error(o)})),i&&import("./index-e51de689.js")},f=r;export{f as g};
|
package/dist/kolibri/{associated.controller-103e6fb9.js → associated.controller-a395cef5.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{d as t}from"./prop.validators-
|
|
4
|
+
import{d as t}from"./prop.validators-e40c3380.js";import{d as e,g as i}from"./a11y.tipps-348ca42a.js";import{b as s}from"./dev.utils-9b878520.js";const o=(e,o,i)=>{t(e,"_name",o,i)},a=s();class n{constructor(t,o,i){var s,r;if(this.setFormAssociatedValue=t=>{var o;const i=null===(o=this.formAssociated)||void 0===o?void 0:o.getAttribute("name");null!==i&&""!==i||e(` The form field (${this.name}) must have a name attribute to be form-associated. Please define the _name attribute.`);const s=this.tryToStringifyValue(t);this.syncValue(t,s,this.formAssociated),this.syncValue(t,s,this.syncToOwnInput)},this.component=t,this.host=this.findHostWithShadowRoot(i),this.name=o,a){switch(null===(s=this.host)||void 0===s||s.querySelectorAll("input,select,textarea").forEach((t=>{var e;null===(e=this.host)||void 0===e||e.removeChild(t)})),this.name){case"button":this.formAssociated=document.createElement("button");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("aria-hidden","true"),this.formAssociated.setAttribute("data-form-associated",""),this.formAssociated.setAttribute("hidden",""),null===(r=this.host)||void 0===r||r.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,o){if(a)try{if("boolean"!=typeof(o="object"==typeof o&&null!==o?JSON.stringify(o):o)&&"number"!=typeof o&&"string"!=typeof o)throw new Error("Invalid value type: "+typeof o);null==e||e.setAttribute(t,`${o}`)}catch(o){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 i(`The form field raw value is not able to stringify! ${t}`),""}}syncValue(t,e,o){if(o)if("select"===this.name)o.querySelectorAll("option").forEach((t=>{o.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",""),o.appendChild(t)}}));else"string"==typeof e?(o.setAttribute("value",e),o.value=e):(o.removeAttribute("value"),o.value="")}validateName(t){o(this.component,t,{hooks:{afterPatch:()=>{this.setAttribute("name",this.formAssociated,this.component.state._name)}}}),void 0===t&&e("Ein Name am Eingabefeldern oder Schalter ist nicht zwingend erforderlich, kann aber für die Autocomplete-Funktion und für das statische Versenden des Eingabefeldes relevant sein.")}validateSyncValueBySelector(t){if(a&&"string"==typeof t){const e=document.querySelector(t);e&&(this.syncToOwnInput=e)}}componentWillLoad(){this.validateName(this.component._name),this.validateSyncValueBySelector(this.component._syncValueBySelector)}}export{n as A};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{r as e,b as r,w as a}from"./prop.validators-
|
|
4
|
+
import{r as e,b as r,w as a}from"./prop.validators-e40c3380.js";import{a as t}from"./a11y.tipps-348ca42a.js";var n={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},l=i,o={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function i(e){var r,a,t=[],l=1;if("string"==typeof e)if(e=e.toLowerCase(),n[e])t=n[e].slice(),a="rgb";else if("transparent"===e)l=0,a="rgb",t=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var i=e.slice(1);l=1,(g=i.length)<=4?(t=[parseInt(i[0]+i[0],16),parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16)],4===g&&(l=parseInt(i[3]+i[3],16)/255)):(t=[parseInt(i[0]+i[1],16),parseInt(i[2]+i[3],16),parseInt(i[4]+i[5],16)],8===g&&(l=parseInt(i[6]+i[7],16)/255)),t[0]||(t[0]=0),t[1]||(t[1]=0),t[2]||(t[2]=0),a="rgb"}else if(r=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var s=r[1],u="rgb"===s;a=i=s.replace(/a$/,"");var g="cmyk"===i?4:"gray"===i?1:3;t=r[2].trim().split(/\s*[,\/]\s*|\s+/).map((function(e,r){if(/%$/.test(e))return r===g?parseFloat(e)/100:"rgb"===i?255*parseFloat(e)/100:parseFloat(e);if("h"===i[r]){if(/deg$/.test(e))return parseFloat(e);if(void 0!==o[e])return o[e]}return parseFloat(e)})),s===i&&t.push(1),l=u||void 0===t[g]?1:t[g],t=t.slice(0,g)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(t=e.match(/([0-9]+)/g).map((function(e){return parseFloat(e)})),a=e.match(/([a-z])/gi).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(t=[e[0],e[1],e[2]],a="rgb",l=4===e.length?e[3]:1):e instanceof Object&&(null!=e.r||null!=e.red||null!=e.R?(a="rgb",t=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(a="hsl",t=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),l=e.a||e.alpha||e.opacity||1,null!=e.opacity&&(l/=100)):(a="rgb",t=[e>>>16,(65280&e)>>>8,255&e]);return{space:a,values:t,alpha:l}}var s=function(e){var r;Array.isArray(e)&&e.raw&&(e=String.raw.apply(null,arguments));var a=l(e);if(!a.space)return[];var o=[0,0,0],t="h"===a.space[0]?[360,100,100]:[255,255,255];return(r=Array(3))[0]=Math.min(Math.max(a.values[0],o[0]),t[0]),r[1]=Math.min(Math.max(a.values[1],o[1]),t[1]),r[2]=Math.min(Math.max(a.values[2],o[2]),t[2]),"h"===a.space[0]&&(r=u(r)),r.push(Math.min(Math.max(a.alpha,0),1)),r};function u(e){var r,a,o,t,n,l=e[0]/360,i=e[1]/100,s=e[2]/100,u=0;if(0===i)return[n=255*s,n,n];for(r=2*s-(a=s<.5?s*(1+i):s+i-s*i),t=[0,0,0];u<3;)(o=l+1/3*-(u-1))<0?o++:o>1&&o--,n=6*o<1?r+6*(a-r)*o:2*o<1?a:3*o<2?r+(a-r)*(2/3-o)*6:r,t[u++]=255*n;return t}const g=(e,r,a)=>(299*e+587*r+114*a)/1e3>=128?-1:1,f=(a,o,t,n=1)=>{const l=[Math.max(Math.min(Math.round(o[0]+n*Math.max(1,o[0]/100)),255),0),Math.max(Math.min(Math.round(o[1]+n*Math.max(1,o[1]/100)),255),0),Math.max(Math.min(Math.round(o[2]+n*Math.max(1,o[2]/100)),255),0)],i=r(e.hex(`rgba(${a.join(",")},1)`),e.hex(`rgba(${l.join(",")},1)`)),s=l[0]+l[1]+l[2];return 0===s||765===s||i>t?{background:a,foreground:l,contrast:i}:f(a,l,t,n)},d=new Map,c=(e,r,a,o=1)=>{if(d.has(e))return d.get(e);const t=f(e,r,a,o);return d.set(e,t),t},p=(r,a=7)=>{let o=[0,0,0,1],t=[255,255,255,1];"string"==typeof r?(o=s(r),t=o):"object"==typeof r&&null!==r&&"string"==typeof r.background&&"string"==typeof r.foreground&&(o=s(r.background),t="string"==typeof r.foreground?s(r.foreground):o);const n=g(o[0],o[1],o[2]),l=c([o[0],o[1],o[2]],[t[0],t[1],t[2]],a,n);return t=[...l.foreground,1],{background:e.hex(`rgba(${o.join(",")})`),foreground:e.hex(`rgba(${t.join(",")})`),contrast:l.contrast}},h=/^#((\d|[a-f]){8}|(\d|[a-f]){6}|(\d|[a-f]){3,4})$/i;function y(e){return h.test(e)}function b(e){if(e.startsWith("{"))try{const r=JSON.parse(e);if(m(r))return{type:"ColorPair",value:r}}catch(e){return{type:null,value:null}}return{type:null,value:null}}function v(e){if(e)if("string"==typeof e){if(y(e))return{type:"string",valid:!0,value:e};{const r=b(e);if(r.value)return{type:r.type,valid:!0,value:r.value}}}else{const r=e;if(m(r))return{type:"ColorPair",valid:!0,value:r}}return{type:null,valid:!1,value:""}}function m(e){return!("object"!=typeof e||!e||"string"!=typeof e.backgroundColor||!("string"==typeof e.foregroundColor||e.foregroundColor&&"string"==typeof e.foregroundColor.primary&&"string"==typeof e.foregroundColor.secondary&&"string"==typeof e.foregroundColor.neutral))}function k(e){const r=v(e);switch(r.type){case null:return!1;case"string":case"ColorPair":return r.valid}}const w=(e,r,o)=>{a(e,"_color",k,new Set(["rgb in hex","ColorPair"]),r,o)},M=e=>{var r;let a;const o=v(e);switch(o.type){case"string":a=p(o.value);break;case"ColorPair":{const e=o.value;let t="";"string"==typeof e.foregroundColor?t=e.foregroundColor:(null===(r=e.foregroundColor)||void 0===r?void 0:r.primary)&&(t=e.foregroundColor.primary),t&&"string"==typeof t||(t="#fff"),a=p({background:e.backgroundColor,foreground:t});break}case null:console.warn(`_color was empty or invalid (${JSON.stringify(e)})`),a=p({background:"#000",foreground:"#000"})}return a.contrast<7&&t(`[KolBadge] The contrast of ${a.contrast} (≥7, AAA) is to low, between the color pair ${a.background} and ${a.foreground}.`),{backgroundColor:a.background,foregroundColor:a.foreground}};export{s as c,M as h,w as v};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{a as t,d as i,s,o as e,p as
|
|
4
|
+
import{a as t,d as i,s,o as e,p as a}from"./prop.validators-e40c3380.js";import{v as h}from"./hide-label-ff12ad0b.js";import{a as o}from"./label-c130b72e.js";import{e as r,a as n,d}from"./a11y.tipps-348ca42a.js";import{s as l,t as c}from"./events-2bb1065b.js";import{v as f}from"./tab-index-9c6b6a46.js";import{A as u}from"./associated.controller-a395cef5.js";const v=t=>{const o="string"==typeof t._error&&t._error.length>0&&!0===t._touched,e="string"==typeof t._hint&&t._hint.length>0,n=[];return!0===o&&n.push(`${t._id}-error`),!0===e&&n.push(`${t._id}-hint`),{hasError:o,hasHint:e,ariaDescribedBy:n}},p=(o,e,n)=>{t(o,"_hideError",e,n)},b=(o,e)=>{t(o,"_adjustHeight",e)},m=(o,e)=>{t(o,"_touched",e)};class y extends u{constructor(t,o,e){super(t,o,e),this.component=t}validateAlert(o){t(this.component,"_alert",o)}validateTouched(t){m(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateAlert(this.component._alert),this.validateTouched(this.component._touched)}}class g extends y{constructor(t,o,e){super(t,o,e),this.valueChangeListeners=[],this.onFacade={onBlur:this.onBlur.bind(this),onChange:this.onChange.bind(this),onClick:this.onClick.bind(this),onFocus:this.onFocus.bind(this)},this.component=t}validateAccessKey(t){i(this.component,"_accessKey",t)}validateAdjustHeight(t){b(this.component,t)}validateDisabled(o){t(this.component,"_disabled",o),!0===o&&r()}validateError(t){i(this.component,"_error",t)}validateHideLabel(t){h(this.component,t,{hooks:{afterPatch:()=>{this.component.state._hideLabel&&n("Property hide-label for inputs: Only use for exceptions like search inputs that are clearly identifiable by their context.")}}})}validateHint(t){i(this.component,"_hint",t)}validateId(t){i(this.component,"_id",t,{hooks:{afterPatch:()=>{this.setAttribute("id",this.formAssociated,this.component.state._id)}},minLength:1}),""!==t&&void 0!==t||d("Eine eindeutige ID an den Eingabefeldern ist nicht zwingend erforderlich, könnte aber für die E2E-Tests relevant sein.")}validateLabel(t){o(this.component,t)}validateOn(t){"object"==typeof t&&s(this.component,"_on",t)}validateSmartButton(t){e(t,(()=>{try{t=a(t)}catch(t){}s(this.component,"_smartButton",t)}))}validateTabIndex(t){f(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateAccessKey(this.component._accessKey),this.validateAdjustHeight(this.component._adjustHeight),this.validateError(this.component._error),this.validateDisabled(this.component._disabled),this.validateHideLabel(this.component._hideLabel),this.validateHint(this.component._hint),this.validateId(this.component._id),this.validateLabel(this.component._label),this.validateSmartButton(this.component._smartButton),this.validateOn(this.component._on),this.validateTabIndex(this.component._tabIndex)}onBlur(t){var o;this.component._alert=!0,this.component._touched=!0,l(t),c("blur",this.host),"function"==typeof(null===(o=this.component._on)||void 0===o?void 0:o.onBlur)&&this.component._on.onBlur(t)}onChange(t){var o;const e=t.target.value;l(t),c("change",this.host,e),this.setFormAssociatedValue(e),"function"==typeof(null===(o=this.component._on)||void 0===o?void 0:o.onChange)&&this.component._on.onChange(t,e),this.valueChangeListeners.forEach((t=>t(e)))}onClick(t){var o;l(t),c("click",this.host),"function"==typeof(null===(o=this.component._on)||void 0===o?void 0:o.onClick)&&this.component._on.onClick(t)}onFocus(t){var o;this.component._alert=!0,l(t),c("focus",this.host),"function"==typeof(null===(o=this.component._on)||void 0===o?void 0:o.onFocus)&&this.component._on.onFocus(t)}setValue(t,o){var e;this.setFormAssociatedValue(o),"function"==typeof(null===(e=this.component._on)||void 0===e?void 0:e.onChange)&&this.component._on.onChange(t,o)}addValueChangeListener(t){this.valueChangeListeners.push(t)}}export{g as I,v as g,p as v};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{d as e}from"./a11y.tipps-
|
|
4
|
+
import{d as e}from"./a11y.tipps-348ca42a.js";import{b as o}from"./dev.utils-9b878520.js";import{f as t,K as n}from"./prop.validators-e40c3380.js";const i=t=>{for(o()&&(e("↓ Search form element start."),console.log(t));t instanceof HTMLElement&&"FORM"!==t.tagName&&"KOL-FORM"!==t.tagName;)t=t.parentElement instanceof HTMLElement?t.parentElement:t.parentNode instanceof ShadowRoot?t.parentNode.host:null,o()&&console.log(t);return o()&&e("↑ Search form element finished."),t},s=(e={})=>{var o,a;const s=i(e.form);if(s instanceof HTMLElement){const e=new Event("reset",{bubbles:!0,cancelable:!0});if("FORM"===s.tagName)t(e,s),s.dispatchEvent(e);else if("KOL-FORM"===s.tagName){t(e,n.querySelector("form",s));const i=s;"function"==typeof(null===(o=i._on)||void 0===o?void 0:o.onReset)&&(null===(a=i._on)||void 0===a||a.onReset(e))}}},f=(e={})=>{var o,a;const s=i(e.form);if(s instanceof HTMLElement){const e=new SubmitEvent("submit",{bubbles:!0,cancelable:!0,submitter:s});if("FORM"===s.tagName)t(e,s),s.dispatchEvent(e);else if("KOL-FORM"===s.tagName){t(e,n.querySelector("form",s));const i=s;"function"==typeof(null===(o=i._on)||void 0===o?void 0:o.onSubmit)&&(null===(a=i._on)||void 0===a||a.onSubmit(e))}}};export{s as a,f as p};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{a as t,w as s,e,d as i}from"./prop.validators-
|
|
4
|
+
import{a as t,w as s,e,d as i}from"./prop.validators-e40c3380.js";import{v as a}from"./controller-2743a0d8.js";import{a as h}from"./a11y.tipps-348ca42a.js";import{I as o}from"./controller-icon-c621ff81.js";const r=(e,o)=>{t(e,"_hasCounter",o)};class n extends o{constructor(t,e,o){super(t,e,o),this.component=t}validateAutoComplete(t){s(this.component,"_autoComplete",(t=>"string"==typeof t&&("on"===t||"off"===t)),new Set(["on | off"]),t)}validateHasCounter(t){r(this.component,t)}validateHideError(t){a(this.component,t,{hooks:{afterPatch:()=>{this.component.state._hideError&&h("Property hide-error for inputs: Only use when the error message is shown outside of the input component.")}}})}validateMaxLength(t){e(this.component,"_maxLength",t,{min:0})}validatePattern(t){i(this.component,"_pattern",t)}validatePlaceholder(t){i(this.component,"_placeholder",t)}validateReadOnly(e){t(this.component,"_readOnly",e)}validateRequired(e){t(this.component,"_required",e)}validateValue(t){i(this.component,"_value",t),this.setFormAssociatedValue(this.component.state._value)}componentWillLoad(){super.componentWillLoad(),this.validateAutoComplete(this.component._autoComplete),this.validateHasCounter(this.component._hasCounter),this.validateHideError(this.component._hideError),this.validateMaxLength(this.component._maxLength),this.validatePattern(this.component._pattern),this.validatePlaceholder(this.component._placeholder),this.validateReadOnly(this.component._readOnly),this.validateRequired(this.component._required),this.validateValue(this.component._value)}onBlur(t){this.component.state=Object.assign(Object.assign({},this.component.state),{_placeholder:this.placeholderCache}),this.placeholderCache=void 0,super.onBlur(t)}onFocus(t){this.placeholderCache=this.component.state._placeholder,this.component.state=Object.assign(Object.assign({},this.component.state),{_placeholder:void 0}),super.onFocus(t)}}export{n as I,r as v};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{I as t,v as e}from"./controller-
|
|
4
|
+
import{I as t,v as e}from"./controller-2743a0d8.js";import{c as s,a as i,w as o,m as r,s as a}from"./prop.validators-e40c3380.js";import{h as n,c as h}from"./label-c130b72e.js";import{a as l}from"./a11y.tipps-348ca42a.js";import{S as f}from"./reuse-b3566e4c.js";const c=e=>{if("object"==typeof e&&null!==e){if("string"==typeof e.label&&e.label.length>0)return e.disabled=!0===e.disabled,e.label=`${e.label}`.trim(),!1===n(e.label,3)&&!1===h(e.label)&&l(`Ein abweichendes Aria-Label (${e.label}) ist nicht barrierefrei. Ein abweichendes Aria-Label sollte aus mindestens drei lesbaren Zeichen bestehen.`),!Array.isArray(e.options)||void 0===e.options.find((e=>!1===c(e)));if("number"==typeof e.label)return!0}return!1},u=(e,t,o={})=>{s(e,"_options",(e=>"object"==typeof e&&null!==e&&"string"==typeof e.label&&e.label.length>0),t,void 0,o)},p=(e,t,o={})=>{s(e,"_options",c,t,void 0,o)},d=(e,t)=>{i(e,"_required",t)},m=(e,t,o="")=>{t.forEach(((t,i)=>{const a=`${o}-${i}`;"object"==typeof t&&null!==t&&"string"==typeof t.label&&t.label.length>0&&(Array.isArray(t.options)?m(e,t.options,a):e.set(a,t))}))};class b extends t{constructor(e,t,o){super(e,t,o),this.component=e}validateHideError(t){e(this.component,t,{hooks:{afterPatch:()=>{this.component.state._hideError&&l("Property hide-error for inputs: Only use when the error message is shown outside of the input component.")}}})}validateRequired(e){d(this.component,e)}componentWillLoad(){super.componentWillLoad(),this.validateRequired(this.component._required)}}class v extends b{constructor(e,t,o){super(e,t,o),this.keyOptionMap=new Map,this.getOptionByKey=e=>this.keyOptionMap.get(e),this.isValueInOptions=(e,t)=>void 0!==t.find((t=>t.value===e)),this.beforePatchOptions=(e,t)=>{const o=t.has("_options")?t.get("_options"):this.component.state._options;if(Array.isArray(o)&&o.length>0){this.keyOptionMap.clear(),m(this.keyOptionMap,o);const e=t.has("_value")?t.get("_value"):this.component.state._value;if(!1===this.isValueInOptions(e,o)){const e=o[0].value;t.set("_value",e),this.onStateChange()}}},this.component=e}validateOrientation(e){o(this.component,"_orientation",(e=>"horizontal"===e||"vertical"===e),new Set(["Orientation {horizontal, vertical}"]),e,{defaultValue:"vertical"})}validateOptions(e){u(this.component,e,{hooks:{beforePatch:this.beforePatchOptions}})}validateValue(e){e=r(e),e=Array.isArray(e)?e[0]:e,a(this.component,"_value",e,{beforePatch:this.beforePatchOptions}),this.setFormAssociatedValue(this.component._value)}componentWillLoad(e){super.componentWillLoad(),this.onStateChange=()=>{if("function"==typeof e){const t=setTimeout((()=>{clearTimeout(t),e(f)}))}},this.validateOrientation(this.component._orientation),this.validateOptions(this.component._options),this.validateHideError(this.component._hideError),this.validateValue(this.component._value)}}export{b as I,v as a,m as f,p as v};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{v as s,I as t}from"./controller-
|
|
4
|
+
import{v as s,I as t}from"./controller-46e6bd0b.js";import{v as e}from"./controller-2743a0d8.js";import{v as r}from"./suggestions-871adfaf.js";import{a as o}from"./a11y.tipps-348ca42a.js";import{w as i}from"./prop.validators-e40c3380.js";class a extends t{constructor(t,o,e){super(t,o,e),this.component=t}validateHideError(t){e(this.component,t,{hooks:{afterPatch:()=>{this.component.state._hideError&&o("Property hide-error for inputs: Only use when the error message is shown outside of the input component.")}}})}validateSuggestions(t){r(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateSuggestions(this.component._suggestions)}}class h extends a{constructor(t,o,e){super(t,o,e),this.hasError=!1,this.component=t}validateType(t){i(this.component,"_type",(t=>"string"==typeof t&&("text"===t||"search"===t||"url"===t||"tel"===t)),new Set(["String {text, search, url, tel}"]),t)}validateHasCounter(t){s(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateHideError(this.component._hideError),this.validateType(this.component._type),this.validateHasCounter(this.component._hasCounter)}}export{a as I,h as a};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{i as o}from"./icons-da3b61ae.js";import{o as s,p as t,w as i}from"./prop.validators-e40c3380.js";import{i as e}from"./reuse-b3566e4c.js";import{I as r}from"./controller-2743a0d8.js";const c=(o,t)=>{const s=o;"object"==typeof s&&null!==s&&(e(s.right,1)&&(s.right={icon:s.right}),e(s.left,1)&&(s.left={icon:s.left}),t.set("_icons",s))};class a extends r{constructor(o,t,e){super(o,t,e),this.component=o}validateIcon(o){this.validateIcons(o)}validateIcons(n){s(n,(()=>{try{n=t(n)}catch(o){}i(this.component,"_icons",(t=>"object"==typeof t&&null!==t&&(e(t.left,1)||o(t.left)||e(t.right,1)||o(t.right))),new Set(["KoliBriHorizontalIcon"]),n,{hooks:{beforePatch:c},required:!0})}))}componentWillLoad(){super.componentWillLoad(),this.validateIcons(this.component._icons||this.component._icon)}}export{a as I};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{w as a,d as o}from"./prop.validators-
|
|
4
|
+
import{w as a,d as o}from"./prop.validators-e40c3380.js";const r=(o,r)=>{a(o,"_variant",(a=>"primary"===a||"secondary"===a||"normal"===a||"danger"===a||"ghost"===a||"custom"===a),new Set(["KoliBriButtonVariant {primary, secondary, normal, danger, ghost, custom}"]),r,{defaultValue:"normal"})},s=(a,r)=>{o(a,"_customClass",r,{defaultValue:void 0})};export{r as a,s as v};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{p as e}from"./reuse-b3566e4c.js";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return o()}},n.exports),n.exports}function o(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var i=n((function(e){!function(t,o){e.exports?e.exports=o():t.log=o()}(t,(function(){var e=function(){},t="undefined",o=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"];function l(e,t){var o=e[t];if("function"==typeof o.bind)return o.bind(e);try{return Function.prototype.bind.call(o,e)}catch(t){return function(){return Function.prototype.apply.apply(o,[e,arguments])}}}function i(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function s(n){return"debug"===n&&(n="log"),typeof console!==t&&("trace"===n&&o?i:void 0!==console[n]?l(console,n):void 0!==console.log?l(console,"log"):e)}function r(t,o){for(var l=0;l<n.length;l++){var i=n[l];this[i]=l<t?e:this.methodFactory(i,t,o)}this.log=this.debug}function a(e,o,n){return function(){typeof console!==t&&(r.call(this,o,n),this[e].apply(this,arguments))}}function c(e,t,o){return s(e)||a.apply(this,arguments)}function d(e,o,l){var i,s=this;o=null==o?"WARN":o;var a="loglevel";function d(e){var o=(n[e]||"silent").toUpperCase();if(typeof window!==t&&a){try{return void(window.localStorage[a]=o)}catch(e){}try{window.document.cookie=encodeURIComponent(a)+"="+o+";"}catch(e){}}}function h(){var e;if(typeof window!==t&&a){try{e=window.localStorage[a]}catch(e){}if(typeof e===t)try{var o=window.document.cookie,n=o.indexOf(encodeURIComponent(a)+"=");-1!==n&&(e=/^([^;]+)/.exec(o.slice(n))[1])}catch(e){}return void 0===s.levels[e]&&(e=void 0),e}}"string"==typeof e?a+=":"+e:"symbol"==typeof e&&(a=void 0),s.name=e,s.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},s.methodFactory=l||c,s.getLevel=function(){return i},s.setLevel=function(o,n){if("string"==typeof o&&void 0!==s.levels[o.toUpperCase()]&&(o=s.levels[o.toUpperCase()]),!("number"==typeof o&&o>=0&&o<=s.levels.SILENT))throw"log.setLevel() called with invalid level: "+o;if(i=o,!1!==n&&d(o),r.call(s,o,e),typeof console===t&&o<s.levels.SILENT)return"No console available for logging"},s.setDefaultLevel=function(e){o=e,h()||s.setLevel(e,!1)},s.resetLevel=function(){s.setLevel(o,!1),function(){if(typeof window!==t&&a){try{return void window.localStorage.removeItem(a)}catch(e){}try{window.document.cookie=encodeURIComponent(a)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}()},s.enableAll=function(e){s.setLevel(s.levels.TRACE,e)},s.disableAll=function(e){s.setLevel(s.levels.SILENT,e)};var f=h();null==f&&(f=o),s.setLevel(f,!1)}var h=new d,f={};h.getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=f[e];return t||(t=f[e]=new d(e,h.getLevel(),h.methodFactory)),t};var u=typeof window!==t?window.log:void 0;return h.noConflict=function(){return typeof window!==t&&window.log===h&&(window.log=u),h},h.getLoggers=function(){return f},h.default=h,h}))}));const l="object"==typeof window?window:"object"==typeof global?global:"object"==typeof self?self:{};let s=!0,r=!1;const c=/^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/,f=e=>"string"==typeof e&&c.test(e),a=e=>{if(!1===f(e))throw new Error(`[Theming] The theme identifier "${"string"==typeof e?e:""}" (Type: ${typeof e}) is not valid. Please use only follow this pattern: /^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/`)},u=(e,t,o)=>{a(e),!0===s&&!1===r&&(r=!0,i.warn(`[Theming] The theme process is locked. This means that the theme "${e}" should not be patched.\n\nimport { register } from '@a11y-ui/core';\nimport { defineCustomElements } from '...';\nimport { THEME } from '...';\n\nregister(THEME, defineCustomElements)\n\t.then(() => {\n\t\tconst htmlDivElement: HTMLElement | null = document.querySelector<HTMLElement>('#my-app');\n if (htmlDivElement instanceof HTMLElement) {\n const root = createRoot(htmlDivElement);\n root.render(<App />);\n }\n })\n .catch(console.warn);`)),"object"==typeof l.A11yUi&&null!==l.A11yUi||(l.A11yUi={}),"object"!=typeof l.A11yUi||null===l.A11yUi||"object"==typeof l.A11yUi.Themes&&null!==l.A11yUi.Themes||(l.A11yUi.Themes={}),"object"!=typeof l.A11yUi||null===l.A11yUi||"object"!=typeof l.A11yUi.Themes||null===l.A11yUi.Themes||"object"==typeof l.A11yUi.Themes[e]&&null!==l.A11yUi.Themes[e]||(l.A11yUi.Themes[e]={}),"object"==typeof l.A11yUi&&null!==l.A11yUi&&"object"==typeof l.A11yUi.Themes&&null!==l.A11yUi.Themes&&"object"==typeof l.A11yUi.Themes[e]&&null!==l.A11yUi.Themes[e]&&(l.A11yUi.Themes[e][t]=o)},d=(e,t)=>(a(e),"object"==typeof t&&null!==t&&Object.getOwnPropertyNames(t).forEach((o=>{const n=t[o];"string"==typeof n&&n.length>0&&u(e,o,n)})),e),h=e=>{if(e instanceof HTMLElement){if("string"==typeof e.dataset.theme)return e;{let t=e.parentNode;for(;t instanceof ShadowRoot;)t=t.host;return h(t)}}return null},p=(e={})=>"false"!==e.themeEncroachCss&&"true"!==e.themeReset&&{mode:"after"===e.themeEncroachCssMode||"before"===e.themeEncroachCssMode?e.themeEncroachCssMode:"before"},y=()=>"object"==typeof l.A11yUi&&null!==l.A11yUi&&"object"==typeof l.A11yUi.Theme&&null!==l.A11yUi.Theme&&"boolean"==typeof l.A11yUi.Theme.cache&&"object"==typeof l.A11yUi.Theme.encroachCss&&null!==typeof l.A11yUi.Theme.encroachCss&&"string"==typeof l.A11yUi.Theme.encroachCss.mode&&"string"==typeof l.A11yUi.Theme.name,m=e=>{if(y())return l.A11yUi.Theme;{const t={cache:!0,encroachCss:p(),loglevel:"silent",name:null},o=h(e);return o instanceof HTMLElement&&(t.cache="false"!==o.dataset.themeCache,t.encroachCss=p(o.dataset),t.loglevel="debug"===o.dataset.themeLoglevel?o.dataset.themeLoglevel:"silent",t.name=o.dataset.theme||null),t}},w=(e,t)=>({cache:!1!==t.cache,detect:"auto"===t.detect?"auto":"fixed",encroachCss:!1!==t.encroachCss&&("object"!=typeof t.encroachCss||null==t.encroachCss||"after"!==t.encroachCss.mode&&"before"!==t.encroachCss.mode?{mode:"before"}:t.encroachCss),loglevel:"debug"===t.loglevel?t.loglevel:"silent",name:"string"==typeof t.name?t.name:e}),b=(e,t)=>{!1!==y()||0!=("object"==typeof l.A11yUi&&null!==l.A11yUi)&&0!=("object"==typeof l.A11yUi.Theme&&null!==l.A11yUi.Theme)&&"default"===l.A11yUi.Theme.name||"object"==typeof t&&null!==t&&("fixed"===(t=w(e,t)).detect?(null===t.name&&"string"==typeof e&&(t.name=e),e===t.name&&("object"==typeof l.A11yUi&&null!==l.A11yUi||(l.A11yUi={}),l.A11yUi.Theme=t,i.info(`[Theming] Theme "${e}" was set as default theme.`))):i.warn("[Theming] The presetting of theme options is only relevant by using 'fixed' detection mode."))};let g=!1;const v=(e,t,o={})=>{!1===g&&(g=!0,s=!1),"function"==typeof e?e=new Set([e]):Array.isArray(e)&&(e=new Set(e)),e instanceof Set&&e.forEach((e=>{"function"==typeof e&&1===e.length?b(e(d),{cache:o.theme?.cache,detect:o.theme?.detect,encroachCss:o.theme?.encroachCss,name:o.theme?.name}):i.error("[Theming] Es wurde versucht eine nicht kompatibles Theme zu laden.")})),s=!0,"function"==typeof t?t=new Set([t]):Array.isArray(t)&&(t=new Set(t));const n=[];return t.forEach((e=>n.push(e()))),Promise.all(n)},T=new Map,E=[],M=new Set,S=new Map,j=/--[^;]+/g,L=/:/;"object"==typeof l.A11yUi&&null!==l.A11yUi||(l.A11yUi={CSS_STYLE_CACHE:S,HYDRATED_HISTORY:E,STYLING_TASK_QUEUE:T});const A=(e,t)=>{let o=t.match(j);if(Array.isArray(o)){o=o.filter((e=>L.test(e)));const t=document.createElement("style");t.innerHTML=`.${e} {${o.join(";")}}`,document.querySelector("head")?.appendChild(t)}M.add(e)},H=(e,t)=>"object"==typeof l.A11yUi&&null!==l.A11yUi&&"object"==typeof l.A11yUi.Themes&&null!==l.A11yUi.Themes&&"object"==typeof l.A11yUi.Themes[e]&&null!==l.A11yUi.Themes[e]&&"string"==typeof l.A11yUi.Themes[e][t]?l.A11yUi.Themes[e][t].replace(/\r?\n/g,""):"",D=e=>{for(const t of Array.from(e.childNodes)){if(!(t instanceof HTMLStyleElement&&"STYLE"===t.tagName))break;e.removeChild(t)}},R=(e,t)=>{try{const o=[];t.forEach((e=>{const t=new CSSStyleSheet;t.replaceSync(e),o.push(t)})),e.adoptedStyleSheets=o}catch(o){t.reverse().forEach((t=>{const o=document.createElement("style");o.innerHTML=t,e.insertBefore(o,e.firstChild)}))}},C=(e,t,o)=>{if(!1!==o){const n=[...Array.from(e.childNodes).filter((e=>e instanceof HTMLStyleElement&&"STYLE"===e.tagName))];let l;try{l=[...Array.from(e.adoptedStyleSheets)]}catch(e){l=[]}"before"===o?.mode?(n.reverse().forEach((e=>t.unshift(e.innerHTML))),l.reverse().forEach((e=>t.unshift(Array.from(e.cssRules).map((e=>e.cssText)).join(""))))):"after"===o?.mode&&(n.forEach((e=>t.push(e.innerHTML))),l.forEach((e=>t.push(Array.from(e.cssRules).map((e=>e.cssText)).join("")))))}},O=(e,t,o)=>{const n=t.name||"default";let l;try{if(null===e.shadowRoot)throw new Error("ShadowRoot is null");l=e.shadowRoot}catch(t){l=e}if(S.get(n)?.has(e.tagName))x(e,l,S.get(n)?.get(e.tagName),o);else{const i=H(n,"PROPERTIES"),s=H(n,"GLOBAL"),r=H(n,e.tagName);!1===M.has(n)&&A(n,s);const a=[i,s,r];C(l,a,t.encroachCss),"debug"===t.loglevel&&console.log(e.tagName,a),!0===t.cache&&(!1===S.has(n)&&S.set(n,new Map),S.get(n)?.set(e.tagName,a)),x(e,l,a,o)}},x=(e,t,o,n)=>{D(t),R(t,o),e.style.display=n},k=e=>{"debug"===e.loglevel&&E.push({timestamp:Date.now(),numberOfTasks:T.size})},I=(e,t)=>{T.set(e,{styleDisplay:e.style.display?`${e.style.display}`:null,themeDetails:t})},$=(e,t)=>{I(e,t),k(t)},z=e=>{T.delete(e)},Y=(e,t)=>{z(e),k(t)},_=e=>{const t=setTimeout((()=>{if(clearTimeout(t),T.has(e)&&e.classList.contains("hydrated")){const{styleDisplay:t,themeDetails:o}=T.get(e);O(e,o,t),Y(e,o)}else _(e)}),25)},K=e=>{for(const t of e)if(T.has(t.target)&&t.target.classList.contains("hydrated")){const{styleDisplay:e,themeDetails:o}=T.get(t.target);O(t.target,o,e),Y(t.target,o)}},N={attributes:!0,attributeFilter:["class"],childList:!1,subtree:!1};let B;try{B=new MutationObserver(K)}catch(e){B=null}const U=(e,t)=>{$(e,t),B?B.observe(e,N):_(e),e.style.display="none"};class F{constructor(){this.lockedElements=new Map,this.modalStack=new Map}lockElement(e){const t=e.getAttribute("tabindex");(e instanceof HTMLAnchorElement||e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||"string"==typeof t||void 0!==e.dataset.kolModal)&&("string"==typeof t?this.lockedElements.set(e,{tabIndex:t}):this.lockedElements.set(e,{}),e.setAttribute("tabindex","-1"),e.setAttribute("aria-hidden","true"),e.style.userSelect="none")}unlockElement(e,t){"string"==typeof e.tabIndex?t.setAttribute("tabindex",e.tabIndex):t.removeAttribute("tabindex"),t.removeAttribute("aria-hidden"),t.style.userSelect="unset",this.lockedElements.delete(t)}unlockLockedElements(e){e.forEach(this.unlockElement.bind(this))}lockFocus(e,t){if(e!==t&&(e instanceof HTMLElement||e instanceof ShadowRoot)){e instanceof HTMLElement&&(this.lockElement(e),this.lockFocus(e.shadowRoot,t));for(let o=0;o<e.children.length;o++)this.lockFocus(e.children[o],t)}}renderModalIfExists(e){if(e instanceof HTMLElement){this.lockedElements.has(e)&&this.unlockElement(this.lockedElements.get(e),e);const t=setTimeout((()=>{clearTimeout(t),e.focus()}),500)}if(this.unlockLockedElements(this.lockedElements),this.modalStack.size>0){const e=Array.from(this.modalStack.keys()),t=e[e.length-1];this.modalStack.forEach(((e,o)=>{o.style.display=t===o?"inline":"none"})),J().body.style.maxHeight="100vh",J().body.style.overflow="hidden",this.lockFocus(J().body,t)}else J().body.style.maxHeight="unset",J().body.style.overflow="unset"}openModal(e,t){e instanceof HTMLElement==!1?oe.warn("[KolModalService] Die DOM-Referenz des Modals ist nicht valide."):(this.modalStack.set(e,{activeElement:t}),this.renderModalIfExists())}closeModal(e){var t;if(e instanceof HTMLElement==!1)oe.warn("[KolModalService] Die DOM-Referenz des Modals ist nicht valide.");else{const o=null===(t=this.modalStack.get(e))||void 0===t?void 0:t.activeElement;this.modalStack.delete(e),this.renderModalIfExists(o)}}}let W=null,P=null;const q=e=>{e instanceof Window?(W=e,W.document instanceof Document?P=e.document:console.warn("The given Window has no valid Document.")):console.warn("The given Window is not valid.")},G=()=>W||"undefined"==typeof window?null:window,J=()=>P||void 0===G().document?null:G().document;let Q=null,V=null,X=null,Z=null;const ee=()=>!0===V,te=()=>!0===X,ne=()=>!0===Z;class oe{static mapToArray(e){return Array.isArray(e)?e:[e]}static handleClassifier(e){return"string"==typeof e&&e.length>0?`${oe.shield.label} | ${e}`:oe.shield.label}static getShield(e){return[oe.handleClassifier(null==e?void 0:e.classifier),`${oe.shield.style};${(null==e?void 0:e.overwriteStyle)||""}`]}static debug(e,t){(V||!0===(null==t?void 0:t.forceLog))&&console.debug(...oe.getShield(t),...oe.mapToArray(e))}static info(e,t){(V||!0===(null==t?void 0:t.forceLog))&&console.info(...oe.getShield(t),...oe.mapToArray(e))}static trace(e,t){(V||!0===(null==t?void 0:t.forceLog))&&console.trace(...oe.getShield(t),...oe.mapToArray(e))}static warn(e,t){(V||!0===(null==t?void 0:t.forceLog))&&console.warn(...oe.getShield(t),...oe.mapToArray(e))}static error(e,t){(V||!0===(null==t?void 0:t.forceLog))&&console.error(...oe.getShield(t),...oe.mapToArray(e))}static throw(e,t){if(V||!0===(null==t?void 0:t.forceLog))throw new Error(...oe.getShield(t),...oe.mapToArray(e))}}oe.shield={label:"%cKoliBri",style:"color: white; background: #666; font-weight: bold; padding: .25em .5em; border-radius: 3px; border: 1px solid #000"};const ie=()=>{if(null===V&&null===X&&null===Z){const e=J().querySelector('meta[name="kolibri"]');e&&e.hasAttribute("content")&&(Q=e.getAttribute("content"),"string"==typeof Q&&(V=Q.includes("dev-mode=true"),X=Q.includes("experimental-mode=true"),Z=Q.includes("color-contrast-analysis=true")))}else console.warn("You can only initialize DEV_MODE and COLOR_CONTRAST_ANALYSIS once.")};let le=null;const se=()=>le||{},re=()=>{if(null===le){le=G().KoliBri||{};const e=new F;Object.defineProperty(le,"Modal",{get:function(){return e}}),ie(),oe.debug("\n\t,--. ,--. ,--. ,--. ,-----. ,--.\n\t| .' / ,---. | | `--' | |) /_ ,--.--. `--'\n\t| . ' | .-. | | | ,--. | .-. \\ | .--' ,--.\n\t| |\\ \\ | '-' | | | | | | '--' / | | | |\n\t`--' `--´ `---´ `--' `--' `------´ `--' `--'\n\t🚹 The accessible HTML-Standard | 👉 https://public-ui.github.io | 2.0.0-rc.1\n\t\t",{forceLog:!0})}else console.warn("You can only initialize KoliBri once.")},ce=()=>{void 0===G().KoliBri&&Object.defineProperty(window,"KoliBri",{get:function(){return le}}),!0!==se().adviceShown&&(Object.defineProperty(le,"adviceShown",{get:function(){return!0}}),oe.debug("\nYou are using the KoliBri component library. If you have any suggestions for improvement or find a problem, please contact us:\n\nTicket: https://github.com/public-ui/kolibri/issues/new/choose (for privacy reasons, please use email)\nEmail: kolibri@itzbund.de\n"))};let fe=()=>Math.floor(16777215*Math.random()).toString(16);"test"===e&&(fe=()=>"nonce");export{le as K,oe as L,l as S,J as a,te as b,q as c,se as d,n as e,ee as f,m as g,ce as h,re as i,ne as j,fe as n,d as p,v as r,U as s};
|
|
4
|
+
import{p as e}from"./reuse-b3566e4c.js";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return o()}},n.exports),n.exports}function o(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var i=n((function(e){!function(t,o){e.exports?e.exports=o():t.log=o()}(t,(function(){var e=function(){},t="undefined",o=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"];function l(e,t){var o=e[t];if("function"==typeof o.bind)return o.bind(e);try{return Function.prototype.bind.call(o,e)}catch(t){return function(){return Function.prototype.apply.apply(o,[e,arguments])}}}function i(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function s(n){return"debug"===n&&(n="log"),typeof console!==t&&("trace"===n&&o?i:void 0!==console[n]?l(console,n):void 0!==console.log?l(console,"log"):e)}function r(t,o){for(var l=0;l<n.length;l++){var i=n[l];this[i]=l<t?e:this.methodFactory(i,t,o)}this.log=this.debug}function a(e,o,n){return function(){typeof console!==t&&(r.call(this,o,n),this[e].apply(this,arguments))}}function c(e,t,o){return s(e)||a.apply(this,arguments)}function d(e,o,l){var i,s=this;o=null==o?"WARN":o;var a="loglevel";function d(e){var o=(n[e]||"silent").toUpperCase();if(typeof window!==t&&a){try{return void(window.localStorage[a]=o)}catch(e){}try{window.document.cookie=encodeURIComponent(a)+"="+o+";"}catch(e){}}}function h(){var e;if(typeof window!==t&&a){try{e=window.localStorage[a]}catch(e){}if(typeof e===t)try{var o=window.document.cookie,n=o.indexOf(encodeURIComponent(a)+"=");-1!==n&&(e=/^([^;]+)/.exec(o.slice(n))[1])}catch(e){}return void 0===s.levels[e]&&(e=void 0),e}}"string"==typeof e?a+=":"+e:"symbol"==typeof e&&(a=void 0),s.name=e,s.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},s.methodFactory=l||c,s.getLevel=function(){return i},s.setLevel=function(o,n){if("string"==typeof o&&void 0!==s.levels[o.toUpperCase()]&&(o=s.levels[o.toUpperCase()]),!("number"==typeof o&&o>=0&&o<=s.levels.SILENT))throw"log.setLevel() called with invalid level: "+o;if(i=o,!1!==n&&d(o),r.call(s,o,e),typeof console===t&&o<s.levels.SILENT)return"No console available for logging"},s.setDefaultLevel=function(e){o=e,h()||s.setLevel(e,!1)},s.resetLevel=function(){s.setLevel(o,!1),function(){if(typeof window!==t&&a){try{return void window.localStorage.removeItem(a)}catch(e){}try{window.document.cookie=encodeURIComponent(a)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}()},s.enableAll=function(e){s.setLevel(s.levels.TRACE,e)},s.disableAll=function(e){s.setLevel(s.levels.SILENT,e)};var f=h();null==f&&(f=o),s.setLevel(f,!1)}var h=new d,f={};h.getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=f[e];return t||(t=f[e]=new d(e,h.getLevel(),h.methodFactory)),t};var u=typeof window!==t?window.log:void 0;return h.noConflict=function(){return typeof window!==t&&window.log===h&&(window.log=u),h},h.getLoggers=function(){return f},h.default=h,h}))}));const l="object"==typeof window?window:"object"==typeof global?global:"object"==typeof self?self:{};let s=!0,r=!1;const c=/^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/,f=e=>"string"==typeof e&&c.test(e),a=e=>{if(!1===f(e))throw new Error(`[Theming] The theme identifier "${"string"==typeof e?e:""}" (Type: ${typeof e}) is not valid. Please use only follow this pattern: /^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/`)},u=(e,t,o)=>{a(e),!0===s&&!1===r&&(r=!0,i.warn(`[Theming] The theme process is locked. This means that the theme "${e}" should not be patched.\n\nimport { register } from '@a11y-ui/core';\nimport { defineCustomElements } from '...';\nimport { THEME } from '...';\n\nregister(THEME, defineCustomElements)\n\t.then(() => {\n\t\tconst htmlDivElement: HTMLElement | null = document.querySelector<HTMLElement>('#my-app');\n if (htmlDivElement instanceof HTMLElement) {\n const root = createRoot(htmlDivElement);\n root.render(<App />);\n }\n })\n .catch(console.warn);`)),"object"==typeof l.A11yUi&&null!==l.A11yUi||(l.A11yUi={}),"object"!=typeof l.A11yUi||null===l.A11yUi||"object"==typeof l.A11yUi.Themes&&null!==l.A11yUi.Themes||(l.A11yUi.Themes={}),"object"!=typeof l.A11yUi||null===l.A11yUi||"object"!=typeof l.A11yUi.Themes||null===l.A11yUi.Themes||"object"==typeof l.A11yUi.Themes[e]&&null!==l.A11yUi.Themes[e]||(l.A11yUi.Themes[e]={}),"object"==typeof l.A11yUi&&null!==l.A11yUi&&"object"==typeof l.A11yUi.Themes&&null!==l.A11yUi.Themes&&"object"==typeof l.A11yUi.Themes[e]&&null!==l.A11yUi.Themes[e]&&(l.A11yUi.Themes[e][t]=o)},d=(e,t)=>(a(e),"object"==typeof t&&null!==t&&Object.getOwnPropertyNames(t).forEach((o=>{const n=t[o];"string"==typeof n&&n.length>0&&u(e,o,n)})),e),h=e=>{if(e instanceof HTMLElement){if("string"==typeof e.dataset.theme)return e;{let t=e.parentNode;for(;t instanceof ShadowRoot;)t=t.host;return h(t)}}return null},p=(e={})=>"false"!==e.themeEncroachCss&&"true"!==e.themeReset&&{mode:"after"===e.themeEncroachCssMode||"before"===e.themeEncroachCssMode?e.themeEncroachCssMode:"before"},y=()=>"object"==typeof l.A11yUi&&null!==l.A11yUi&&"object"==typeof l.A11yUi.Theme&&null!==l.A11yUi.Theme&&"boolean"==typeof l.A11yUi.Theme.cache&&"object"==typeof l.A11yUi.Theme.encroachCss&&null!==typeof l.A11yUi.Theme.encroachCss&&"string"==typeof l.A11yUi.Theme.encroachCss.mode&&"string"==typeof l.A11yUi.Theme.name,m=e=>{if(y())return l.A11yUi.Theme;{const t={cache:!0,encroachCss:p(),loglevel:"silent",name:null},o=h(e);return o instanceof HTMLElement&&(t.cache="false"!==o.dataset.themeCache,t.encroachCss=p(o.dataset),t.loglevel="debug"===o.dataset.themeLoglevel?o.dataset.themeLoglevel:"silent",t.name=o.dataset.theme||null),t}},w=(e,t)=>({cache:!1!==t.cache,detect:"auto"===t.detect?"auto":"fixed",encroachCss:!1!==t.encroachCss&&("object"!=typeof t.encroachCss||null==t.encroachCss||"after"!==t.encroachCss.mode&&"before"!==t.encroachCss.mode?{mode:"before"}:t.encroachCss),loglevel:"debug"===t.loglevel?t.loglevel:"silent",name:"string"==typeof t.name?t.name:e}),b=(e,t)=>{!1!==y()||0!=("object"==typeof l.A11yUi&&null!==l.A11yUi)&&0!=("object"==typeof l.A11yUi.Theme&&null!==l.A11yUi.Theme)&&"default"===l.A11yUi.Theme.name||"object"==typeof t&&null!==t&&("fixed"===(t=w(e,t)).detect?(null===t.name&&"string"==typeof e&&(t.name=e),e===t.name&&("object"==typeof l.A11yUi&&null!==l.A11yUi||(l.A11yUi={}),l.A11yUi.Theme=t,i.info(`[Theming] Theme "${e}" was set as default theme.`))):i.warn("[Theming] The presetting of theme options is only relevant by using 'fixed' detection mode."))};let g=!1;const v=(e,t,o={})=>{!1===g&&(g=!0,s=!1),"function"==typeof e?e=new Set([e]):Array.isArray(e)&&(e=new Set(e)),e instanceof Set&&e.forEach((e=>{"function"==typeof e&&1===e.length?b(e(d),{cache:o.theme?.cache,detect:o.theme?.detect,encroachCss:o.theme?.encroachCss,name:o.theme?.name}):i.error("[Theming] Es wurde versucht eine nicht kompatibles Theme zu laden.")})),s=!0,"function"==typeof t?t=new Set([t]):Array.isArray(t)&&(t=new Set(t));const n=[];return t.forEach((e=>n.push(e()))),Promise.all(n)},T=new Map,E=[],M=new Set,S=new Map,j=/--[^;]+/g,L=/:/;"object"==typeof l.A11yUi&&null!==l.A11yUi||(l.A11yUi={CSS_STYLE_CACHE:S,HYDRATED_HISTORY:E,STYLING_TASK_QUEUE:T});const A=(e,t)=>{let o=t.match(j);if(Array.isArray(o)){o=o.filter((e=>L.test(e)));const t=document.createElement("style");t.innerHTML=`.${e} {${o.join(";")}}`,document.querySelector("head")?.appendChild(t)}M.add(e)},H=(e,t)=>"object"==typeof l.A11yUi&&null!==l.A11yUi&&"object"==typeof l.A11yUi.Themes&&null!==l.A11yUi.Themes&&"object"==typeof l.A11yUi.Themes[e]&&null!==l.A11yUi.Themes[e]&&"string"==typeof l.A11yUi.Themes[e][t]?l.A11yUi.Themes[e][t].replace(/\r?\n/g,""):"",D=e=>{for(const t of Array.from(e.childNodes)){if(!(t instanceof HTMLStyleElement&&"STYLE"===t.tagName))break;e.removeChild(t)}},R=(e,t)=>{try{const o=[];t.forEach((e=>{const t=new CSSStyleSheet;t.replaceSync(e),o.push(t)})),e.adoptedStyleSheets=o}catch(o){t.reverse().forEach((t=>{const o=document.createElement("style");o.innerHTML=t,e.insertBefore(o,e.firstChild)}))}},C=(e,t,o)=>{if(!1!==o){const n=[...Array.from(e.childNodes).filter((e=>e instanceof HTMLStyleElement&&"STYLE"===e.tagName))];let l;try{l=[...Array.from(e.adoptedStyleSheets)]}catch(e){l=[]}"before"===o?.mode?(n.reverse().forEach((e=>t.unshift(e.innerHTML))),l.reverse().forEach((e=>t.unshift(Array.from(e.cssRules).map((e=>e.cssText)).join(""))))):"after"===o?.mode&&(n.forEach((e=>t.push(e.innerHTML))),l.forEach((e=>t.push(Array.from(e.cssRules).map((e=>e.cssText)).join("")))))}},O=(e,t,o)=>{const n=t.name||"default";let l;try{if(null===e.shadowRoot)throw new Error("ShadowRoot is null");l=e.shadowRoot}catch(t){l=e}if(S.get(n)?.has(e.tagName))x(e,l,S.get(n)?.get(e.tagName),o);else{const i=H(n,"PROPERTIES"),s=H(n,"GLOBAL"),r=H(n,e.tagName);!1===M.has(n)&&A(n,s);const a=[i,s,r];C(l,a,t.encroachCss),"debug"===t.loglevel&&console.log(e.tagName,a),!0===t.cache&&(!1===S.has(n)&&S.set(n,new Map),S.get(n)?.set(e.tagName,a)),x(e,l,a,o)}},x=(e,t,o,n)=>{D(t),R(t,o),e.style.display=n},k=e=>{"debug"===e.loglevel&&E.push({timestamp:Date.now(),numberOfTasks:T.size})},I=(e,t)=>{T.set(e,{styleDisplay:e.style.display?`${e.style.display}`:null,themeDetails:t})},$=(e,t)=>{I(e,t),k(t)},z=e=>{T.delete(e)},Y=(e,t)=>{z(e),k(t)},_=e=>{const t=setTimeout((()=>{if(clearTimeout(t),T.has(e)&&e.classList.contains("hydrated")){const{styleDisplay:t,themeDetails:o}=T.get(e);O(e,o,t),Y(e,o)}else _(e)}),25)},K=e=>{for(const t of e)if(T.has(t.target)&&t.target.classList.contains("hydrated")){const{styleDisplay:e,themeDetails:o}=T.get(t.target);O(t.target,o,e),Y(t.target,o)}},N={attributes:!0,attributeFilter:["class"],childList:!1,subtree:!1};let B;try{B=new MutationObserver(K)}catch(e){B=null}const U=(e,t)=>{$(e,t),B?B.observe(e,N):_(e),e.style.display="none"};class F{constructor(){this.lockedElements=new Map,this.modalStack=new Map}lockElement(e){const t=e.getAttribute("tabindex");(e instanceof HTMLAnchorElement||e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||"string"==typeof t||void 0!==e.dataset.kolModal)&&("string"==typeof t?this.lockedElements.set(e,{tabIndex:t}):this.lockedElements.set(e,{}),e.setAttribute("tabindex","-1"),e.setAttribute("aria-hidden","true"),e.style.userSelect="none")}unlockElement(e,t){"string"==typeof e.tabIndex?t.setAttribute("tabindex",e.tabIndex):t.removeAttribute("tabindex"),t.removeAttribute("aria-hidden"),t.style.userSelect="unset",this.lockedElements.delete(t)}unlockLockedElements(e){e.forEach(this.unlockElement.bind(this))}lockFocus(e,t){if(e!==t&&(e instanceof HTMLElement||e instanceof ShadowRoot)){e instanceof HTMLElement&&(this.lockElement(e),this.lockFocus(e.shadowRoot,t));for(let o=0;o<e.children.length;o++)this.lockFocus(e.children[o],t)}}renderModalIfExists(e){if(e instanceof HTMLElement){this.lockedElements.has(e)&&this.unlockElement(this.lockedElements.get(e),e);const t=setTimeout((()=>{clearTimeout(t),e.focus()}),500)}if(this.unlockLockedElements(this.lockedElements),this.modalStack.size>0){const e=Array.from(this.modalStack.keys()),t=e[e.length-1];this.modalStack.forEach(((e,o)=>{o.style.display=t===o?"inline":"none"})),J().body.style.maxHeight="100vh",J().body.style.overflow="hidden",this.lockFocus(J().body,t)}else J().body.style.maxHeight="unset",J().body.style.overflow="unset"}openModal(e,t){e instanceof HTMLElement==!1?oe.warn("[KolModalService] Die DOM-Referenz des Modals ist nicht valide."):(this.modalStack.set(e,{activeElement:t}),this.renderModalIfExists())}closeModal(e){var t;if(e instanceof HTMLElement==!1)oe.warn("[KolModalService] Die DOM-Referenz des Modals ist nicht valide.");else{const o=null===(t=this.modalStack.get(e))||void 0===t?void 0:t.activeElement;this.modalStack.delete(e),this.renderModalIfExists(o)}}}let W=null,P=null;const q=e=>{e instanceof Window?(W=e,W.document instanceof Document?P=e.document:console.warn("The given Window has no valid Document.")):console.warn("The given Window is not valid.")},G=()=>W||"undefined"==typeof window?null:window,J=()=>P||void 0===G().document?null:G().document;let Q=null,V=null,X=null,Z=null;const ee=()=>!0===V,te=()=>!0===X,ne=()=>!0===Z;class oe{static mapToArray(e){return Array.isArray(e)?e:[e]}static handleClassifier(e){return"string"==typeof e&&e.length>0?`${oe.shield.label} | ${e}`:oe.shield.label}static getShield(e){return[oe.handleClassifier(null==e?void 0:e.classifier),`${oe.shield.style};${(null==e?void 0:e.overwriteStyle)||""}`]}static debug(e,t){(V||!0===(null==t?void 0:t.forceLog))&&console.debug(...oe.getShield(t),...oe.mapToArray(e))}static info(e,t){(V||!0===(null==t?void 0:t.forceLog))&&console.info(...oe.getShield(t),...oe.mapToArray(e))}static trace(e,t){(V||!0===(null==t?void 0:t.forceLog))&&console.trace(...oe.getShield(t),...oe.mapToArray(e))}static warn(e,t){(V||!0===(null==t?void 0:t.forceLog))&&console.warn(...oe.getShield(t),...oe.mapToArray(e))}static error(e,t){(V||!0===(null==t?void 0:t.forceLog))&&console.error(...oe.getShield(t),...oe.mapToArray(e))}static throw(e,t){if(V||!0===(null==t?void 0:t.forceLog))throw new Error(...oe.getShield(t),...oe.mapToArray(e))}}oe.shield={label:"%cKoliBri",style:"color: white; background: #666; font-weight: bold; padding: .25em .5em; border-radius: 3px; border: 1px solid #000"};const ie=()=>{if(null===V&&null===X&&null===Z){const e=J().querySelector('meta[name="kolibri"]');e&&e.hasAttribute("content")&&(Q=e.getAttribute("content"),"string"==typeof Q&&(V=Q.includes("dev-mode=true"),X=Q.includes("experimental-mode=true"),Z=Q.includes("color-contrast-analysis=true")))}else console.warn("You can only initialize DEV_MODE and COLOR_CONTRAST_ANALYSIS once.")};let le=null;const se=()=>le||{},re=()=>{if(null===le){le=G().KoliBri||{};const e=new F;Object.defineProperty(le,"Modal",{get:function(){return e}}),ie(),oe.debug("\n\t,--. ,--. ,--. ,--. ,-----. ,--.\n\t| .' / ,---. | | `--' | |) /_ ,--.--. `--'\n\t| . ' | .-. | | | ,--. | .-. \\ | .--' ,--.\n\t| |\\ \\ | '-' | | | | | | '--' / | | | |\n\t`--' `--´ `---´ `--' `--' `------´ `--' `--'\n\t🚹 The accessible HTML-Standard | 👉 https://public-ui.github.io | 2.0.0-rc.2\n\t\t",{forceLog:!0})}else console.warn("You can only initialize KoliBri once.")},ce=()=>{void 0===G().KoliBri&&Object.defineProperty(window,"KoliBri",{get:function(){return le}}),!0!==se().adviceShown&&(Object.defineProperty(le,"adviceShown",{get:function(){return!0}}),oe.debug("\nYou are using the KoliBri component library. If you have any suggestions for improvement or find a problem, please contact us:\n\nTicket: https://github.com/public-ui/kolibri/issues/new/choose (for privacy reasons, please use email)\nEmail: kolibri@itzbund.de\n"))};let fe=()=>Math.floor(16777215*Math.random()).toString(16);"test"===e&&(fe=()=>"nonce");export{le as K,oe as L,l as S,J as a,te as b,q as c,se as d,n as e,ee as f,m as g,ce as h,re as i,ne as j,fe as n,d as p,v as r,U as s};
|