@public-ui/components 1.1.7-rc.8 → 1.1.7
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 +10 -11
- package/dist/cjs/{a11y.tipps-8c4b8396.js → a11y.tipps-54ec8bae.js} +1 -1
- package/dist/cjs/{app-globals-dc236441.js → app-globals-bc902400.js} +1 -1
- package/dist/cjs/{button-link-f7e897ac.js → button-link-4380f157.js} +1 -1
- package/dist/cjs/{controller-530a9768.js → controller-2a7b57a1.js} +1 -1
- package/dist/cjs/{controller-d158e5b6.js → controller-2e60fafc.js} +1 -1
- package/dist/cjs/controller-31aca951.js +4 -0
- package/dist/cjs/{controller-65415582.js → controller-7c2e68bd.js} +1 -1
- package/dist/cjs/{controller-88d53629.js → controller-df507ca2.js} +1 -1
- package/dist/cjs/{controller-7900f89f.js → controller-f4eac510.js} +1 -1
- package/dist/cjs/dev.utils-3c37c3f3.js +4 -0
- package/dist/cjs/{devtools-e891d7f7.js → devtools-b7556d66.js} +1 -1
- package/dist/cjs/{icon-83e7d4d2.js → icon-d3e06146.js} +1 -1
- package/dist/cjs/index-6301c622.js +4 -0
- package/dist/cjs/index-e6ae017d.js +5 -0
- 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.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-group.cjs.entry.js +1 -1
- package/dist/cjs/kol-button-wc_3.cjs.entry.js +1 -1
- package/dist/cjs/kol-button.cjs.entry.js +1 -1
- package/dist/cjs/kol-card.cjs.entry.js +1 -1
- package/dist/cjs/kol-color.cjs.entry.js +1 -1
- package/dist/cjs/kol-counter.cjs.entry.js +1 -1
- package/dist/cjs/kol-details.cjs.entry.js +1 -1
- package/dist/cjs/kol-form.cjs.entry.js +1 -1
- package/dist/cjs/kol-heading.cjs.entry.js +1 -1
- package/dist/cjs/kol-icon-font-awesome.cjs.entry.js +1 -1
- package/dist/cjs/kol-icon-icofont.cjs.entry.js +1 -1
- package/dist/cjs/kol-icon.cjs.entry.js +1 -1
- package/dist/cjs/kol-indented-text.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-adapter-leanup.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
- package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
- package/dist/cjs/kol-link-group.cjs.entry.js +1 -1
- package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-link.cjs.entry.js +1 -1
- package/dist/cjs/kol-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-pagination.cjs.entry.js +1 -1
- package/dist/cjs/kol-progress.cjs.entry.js +1 -1
- package/dist/cjs/kol-select.cjs.entry.js +1 -1
- package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
- package/dist/cjs/kol-spin.cjs.entry.js +1 -1
- package/dist/cjs/kol-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-toast.cjs.entry.js +1 -1
- package/dist/cjs/kol-tooltip.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/loader.cjs.js +1 -1
- package/dist/cjs/{prop.validators-cef94f6b.js → prop.validators-490c913d.js} +1 -1
- package/dist/cjs/{register-4992ac98.js → register-2a6fd996.js} +1 -1
- package/dist/cjs/{validation-454c682e.js → validation-5005bdab.js} +1 -1
- package/dist/cjs/validation-846b8c03.js +4 -0
- package/dist/components/color.js +1 -1
- package/dist/components/component.js +1 -1
- package/dist/components/component10.js +1 -1
- package/dist/components/component11.js +1 -1
- package/dist/components/component12.js +1 -1
- package/dist/components/component13.js +1 -1
- package/dist/components/component14.js +1 -1
- package/dist/components/component2.js +1 -1
- package/dist/components/component3.js +1 -1
- package/dist/components/component4.js +1 -1
- package/dist/components/component5.js +1 -1
- package/dist/components/component8.js +1 -1
- package/dist/components/controller.js +1 -1
- package/dist/components/controller2.js +1 -1
- package/dist/components/controller3.js +1 -1
- package/dist/components/controller4.js +1 -1
- package/dist/components/devtools.js +1 -1
- package/dist/components/icon.js +1 -1
- package/dist/components/index2.js +4 -0
- package/dist/components/index3.js +4 -0
- package/dist/components/kol-abbr.js +1 -1
- package/dist/components/kol-accordion.js +1 -1
- package/dist/components/kol-breadcrumb.js +1 -1
- package/dist/components/kol-card.js +1 -1
- package/dist/components/kol-color.js +1 -1
- package/dist/components/kol-details.js +1 -1
- package/dist/components/kol-heading.js +1 -1
- package/dist/components/kol-input-adapter-leanup.js +1 -1
- package/dist/components/kol-input-checkbox.js +1 -1
- package/dist/components/kol-input-color.js +1 -1
- package/dist/components/kol-input-email.js +1 -1
- package/dist/components/kol-input-file.js +1 -1
- package/dist/components/kol-input-number.js +1 -1
- package/dist/components/kol-input-password.js +1 -1
- package/dist/components/kol-input-radio-group.js +1 -1
- package/dist/components/kol-input-range.js +1 -1
- package/dist/components/kol-input-text.js +1 -1
- package/dist/components/kol-kolibri.js +1 -1
- package/dist/components/kol-link-group.js +1 -1
- package/dist/components/kol-logo.js +1 -1
- package/dist/components/kol-modal.js +1 -1
- package/dist/components/kol-nav.js +1 -1
- package/dist/components/kol-progress.js +1 -1
- package/dist/components/kol-skip-nav.js +1 -1
- package/dist/components/kol-spin.js +1 -1
- package/dist/components/kol-table.js +1 -1
- package/dist/components/kol-tabs.js +1 -1
- package/dist/components/kol-textarea.js +1 -1
- package/dist/components/kol-toast.js +1 -1
- package/dist/components/kol-version.js +1 -1
- package/dist/components/prop.validators.js +1 -1
- package/dist/components/shadow.js +1 -1
- package/dist/components/shadow2.js +1 -1
- package/dist/components/validation.js +1 -1
- package/dist/custom-elements/devtools.js +4 -0
- package/dist/custom-elements/index.d.ts +339 -0
- package/dist/custom-elements/index.js +4 -0
- package/dist/esm/{a11y.tipps-1f6fb00f.js → a11y.tipps-14d41e3b.js} +1 -1
- package/dist/esm/{app-globals-15029fab.js → app-globals-6a53c357.js} +1 -1
- package/dist/esm/{button-link-9a4451fc.js → button-link-6715264c.js} +1 -1
- package/dist/esm/{controller-d5b8093a.js → controller-111c85f2.js} +1 -1
- package/dist/esm/{controller-6133aebe.js → controller-bd2e73a0.js} +1 -1
- package/dist/esm/controller-c59f4b61.js +4 -0
- package/dist/esm/{controller-3862c4ac.js → controller-c9cc6084.js} +1 -1
- package/dist/esm/{controller-5bc677e6.js → controller-de29b073.js} +1 -1
- package/dist/esm/{controller-641f400d.js → controller-e556da76.js} +1 -1
- package/dist/esm/dev.utils-c9cfb9a5.js +4 -0
- package/dist/esm/{devtools-df5e5c3e.js → devtools-21f99213.js} +1 -1
- package/dist/esm/{icon-f76e0ed7.js → icon-1caba0f3.js} +1 -1
- package/dist/esm/index-a604e45a.js +4 -0
- package/dist/esm/index-bc1a7f22.js +5 -0
- 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.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-group.entry.js +1 -1
- package/dist/esm/kol-button-wc_3.entry.js +1 -1
- package/dist/esm/kol-button.entry.js +1 -1
- package/dist/esm/kol-card.entry.js +1 -1
- package/dist/esm/kol-color.entry.js +1 -1
- package/dist/esm/kol-counter.entry.js +1 -1
- package/dist/esm/kol-details.entry.js +1 -1
- package/dist/esm/kol-form.entry.js +1 -1
- package/dist/esm/kol-heading.entry.js +1 -1
- package/dist/esm/kol-icon-font-awesome.entry.js +1 -1
- package/dist/esm/kol-icon-icofont.entry.js +1 -1
- package/dist/esm/kol-icon.entry.js +1 -1
- package/dist/esm/kol-indented-text.entry.js +1 -1
- package/dist/esm/kol-input-adapter-leanup.entry.js +1 -1
- package/dist/esm/kol-input-checkbox.entry.js +1 -1
- package/dist/esm/kol-input-color.entry.js +1 -1
- package/dist/esm/kol-input-email.entry.js +1 -1
- package/dist/esm/kol-input-file.entry.js +1 -1
- package/dist/esm/kol-input-number.entry.js +1 -1
- package/dist/esm/kol-input-password.entry.js +1 -1
- package/dist/esm/kol-input-radio-group.entry.js +1 -1
- package/dist/esm/kol-input-radio.entry.js +1 -1
- package/dist/esm/kol-input-range.entry.js +1 -1
- package/dist/esm/kol-input-text.entry.js +1 -1
- package/dist/esm/kol-kolibri.entry.js +1 -1
- package/dist/esm/kol-link-group.entry.js +1 -1
- package/dist/esm/kol-link-wc.entry.js +1 -1
- package/dist/esm/kol-link.entry.js +1 -1
- package/dist/esm/kol-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-pagination.entry.js +1 -1
- package/dist/esm/kol-progress.entry.js +1 -1
- package/dist/esm/kol-select.entry.js +1 -1
- package/dist/esm/kol-skip-nav.entry.js +1 -1
- package/dist/esm/kol-spin.entry.js +1 -1
- package/dist/esm/kol-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-toast.entry.js +1 -1
- package/dist/esm/kol-tooltip.entry.js +1 -1
- package/dist/esm/kol-version.entry.js +1 -1
- package/dist/esm/kolibri.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/{prop.validators-6dd43868.js → prop.validators-5f63352c.js} +1 -1
- package/dist/esm/{register-9f63b6c5.js → register-c6216033.js} +1 -1
- package/dist/esm/{validation-a4a68e52.js → validation-6a53b8ae.js} +1 -1
- package/dist/esm/validation-bc7df42a.js +4 -0
- package/dist/kolibri/{a11y.tipps-1f6fb00f.js → a11y.tipps-14d41e3b.js} +1 -1
- package/dist/kolibri/{app-globals-15029fab.js → app-globals-6a53c357.js} +1 -1
- package/{www/build/button-link-9a4451fc.js → dist/kolibri/button-link-6715264c.js} +1 -1
- package/dist/kolibri/{controller-d5b8093a.js → controller-111c85f2.js} +1 -1
- package/dist/kolibri/{controller-6133aebe.js → controller-bd2e73a0.js} +1 -1
- package/dist/kolibri/controller-c59f4b61.js +4 -0
- package/dist/kolibri/{controller-3862c4ac.js → controller-c9cc6084.js} +1 -1
- package/dist/kolibri/{controller-5bc677e6.js → controller-de29b073.js} +1 -1
- package/dist/kolibri/{controller-641f400d.js → controller-e556da76.js} +1 -1
- package/dist/kolibri/dev.utils-c9cfb9a5.js +4 -0
- package/dist/kolibri/{devtools-df5e5c3e.js → devtools-21f99213.js} +1 -1
- package/dist/kolibri/{icon-f76e0ed7.js → icon-1caba0f3.js} +1 -1
- package/dist/kolibri/index-a604e45a.js +4 -0
- package/dist/kolibri/index-bc1a7f22.js +5 -0
- package/dist/kolibri/index.esm.js +1 -1
- package/dist/kolibri/kol-abbr.entry.js +1 -1
- package/dist/kolibri/kol-accordion.entry.js +1 -1
- package/dist/kolibri/kol-alert.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-group.entry.js +1 -1
- package/dist/kolibri/kol-button-wc_3.entry.js +1 -1
- package/dist/kolibri/kol-button.entry.js +1 -1
- package/dist/kolibri/kol-card.entry.js +1 -1
- package/dist/kolibri/kol-color.entry.js +1 -1
- package/dist/kolibri/kol-counter.entry.js +1 -1
- package/dist/kolibri/kol-details.entry.js +1 -1
- package/dist/kolibri/kol-form.entry.js +1 -1
- package/dist/kolibri/kol-heading.entry.js +1 -1
- package/dist/kolibri/kol-icon-font-awesome.entry.js +1 -1
- package/dist/kolibri/kol-icon-icofont.entry.js +1 -1
- package/dist/kolibri/kol-icon.entry.js +1 -1
- package/dist/kolibri/kol-indented-text.entry.js +1 -1
- package/dist/kolibri/kol-input-adapter-leanup.entry.js +1 -1
- package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
- package/dist/kolibri/kol-input-color.entry.js +1 -1
- package/dist/kolibri/kol-input-email.entry.js +1 -1
- package/dist/kolibri/kol-input-file.entry.js +1 -1
- package/dist/kolibri/kol-input-number.entry.js +1 -1
- package/dist/kolibri/kol-input-password.entry.js +1 -1
- package/dist/kolibri/kol-input-radio-group.entry.js +1 -1
- package/dist/kolibri/kol-input-radio.entry.js +1 -1
- package/dist/kolibri/kol-input-range.entry.js +1 -1
- package/dist/kolibri/kol-input-text.entry.js +1 -1
- package/dist/kolibri/kol-kolibri.entry.js +1 -1
- package/dist/kolibri/kol-link-group.entry.js +1 -1
- package/dist/kolibri/kol-link-wc.entry.js +1 -1
- package/dist/kolibri/kol-link.entry.js +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-pagination.entry.js +1 -1
- package/dist/kolibri/kol-progress.entry.js +1 -1
- package/dist/kolibri/kol-select.entry.js +1 -1
- package/dist/kolibri/kol-skip-nav.entry.js +1 -1
- package/dist/kolibri/kol-spin.entry.js +1 -1
- package/dist/kolibri/kol-symbol.entry.js +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-toast.entry.js +1 -1
- package/dist/kolibri/kol-tooltip.entry.js +1 -1
- package/dist/kolibri/kol-version.entry.js +1 -1
- package/dist/kolibri/kolibri.esm.js +1 -1
- package/dist/kolibri/{prop.validators-6dd43868.js → prop.validators-5f63352c.js} +1 -1
- package/dist/kolibri/{register-9f63b6c5.js → register-c6216033.js} +1 -1
- package/dist/kolibri/{validation-a4a68e52.js → validation-6a53b8ae.js} +1 -1
- package/dist/kolibri/validation-bc7df42a.js +4 -0
- package/dist/types/components/component-list.d.ts +2 -1
- package/dist/types/components/input-adapter-leanup/component.d.ts +1 -33
- package/dist/types/components/kolibri/component.d.ts +8 -2
- package/dist/types/components.d.ts +8 -25
- package/dist/types/stencil-public-runtime.d.ts +15 -4
- package/jest-test-results.json +1 -1
- package/package.json +1 -2
- package/vscode-custom-data.json +6 -7
- package/www/build/{a11y.tipps-1f6fb00f.js → a11y.tipps-14d41e3b.js} +1 -1
- package/www/build/{app-globals-15029fab.js → app-globals-6a53c357.js} +1 -1
- package/{dist/kolibri/button-link-9a4451fc.js → www/build/button-link-6715264c.js} +1 -1
- package/www/build/{controller-d5b8093a.js → controller-111c85f2.js} +1 -1
- package/www/build/{controller-6133aebe.js → controller-bd2e73a0.js} +1 -1
- package/www/build/controller-c59f4b61.js +4 -0
- package/www/build/{controller-3862c4ac.js → controller-c9cc6084.js} +1 -1
- package/www/build/{controller-5bc677e6.js → controller-de29b073.js} +1 -1
- package/www/build/{controller-641f400d.js → controller-e556da76.js} +1 -1
- package/www/build/dev.utils-c9cfb9a5.js +4 -0
- package/www/build/{devtools-df5e5c3e.js → devtools-21f99213.js} +1 -1
- package/www/build/{icon-f76e0ed7.js → icon-1caba0f3.js} +1 -1
- package/www/build/index-a604e45a.js +4 -0
- package/www/build/index-bc1a7f22.js +5 -0
- package/www/build/index.esm.js +1 -1
- package/www/build/kol-abbr.entry.js +1 -1
- package/www/build/kol-accordion.entry.js +1 -1
- package/www/build/kol-alert.entry.js +1 -1
- package/www/build/kol-badge.entry.js +1 -1
- package/www/build/kol-breadcrumb.entry.js +1 -1
- package/www/build/kol-button-group.entry.js +1 -1
- package/www/build/kol-button-wc_3.entry.js +1 -1
- package/www/build/kol-button.entry.js +1 -1
- package/www/build/kol-card.entry.js +1 -1
- package/www/build/kol-color.entry.js +1 -1
- package/www/build/kol-counter.entry.js +1 -1
- package/www/build/kol-details.entry.js +1 -1
- package/www/build/kol-form.entry.js +1 -1
- package/www/build/kol-heading.entry.js +1 -1
- package/www/build/kol-icon-font-awesome.entry.js +1 -1
- package/www/build/kol-icon-icofont.entry.js +1 -1
- package/www/build/kol-icon.entry.js +1 -1
- package/www/build/kol-indented-text.entry.js +1 -1
- package/www/build/kol-input-adapter-leanup.entry.js +1 -1
- package/www/build/kol-input-checkbox.entry.js +1 -1
- package/www/build/kol-input-color.entry.js +1 -1
- package/www/build/kol-input-email.entry.js +1 -1
- package/www/build/kol-input-file.entry.js +1 -1
- package/www/build/kol-input-number.entry.js +1 -1
- package/www/build/kol-input-password.entry.js +1 -1
- package/www/build/kol-input-radio-group.entry.js +1 -1
- package/www/build/kol-input-radio.entry.js +1 -1
- package/www/build/kol-input-range.entry.js +1 -1
- package/www/build/kol-input-text.entry.js +1 -1
- package/www/build/kol-kolibri.entry.js +1 -1
- package/www/build/kol-link-group.entry.js +1 -1
- package/www/build/kol-link-wc.entry.js +1 -1
- package/www/build/kol-link.entry.js +1 -1
- package/www/build/kol-logo.entry.js +1 -1
- package/www/build/kol-modal.entry.js +1 -1
- package/www/build/kol-nav.entry.js +1 -1
- package/www/build/kol-pagination.entry.js +1 -1
- package/www/build/kol-progress.entry.js +1 -1
- package/www/build/kol-select.entry.js +1 -1
- package/www/build/kol-skip-nav.entry.js +1 -1
- package/www/build/kol-spin.entry.js +1 -1
- package/www/build/kol-symbol.entry.js +1 -1
- package/www/build/kol-table.entry.js +1 -1
- package/www/build/kol-tabs.entry.js +1 -1
- package/www/build/kol-textarea.entry.js +1 -1
- package/www/build/kol-toast.entry.js +1 -1
- package/www/build/kol-tooltip.entry.js +1 -1
- package/www/build/kol-version.entry.js +1 -1
- package/www/build/kolibri.esm.js +1 -1
- package/www/build/{prop.validators-6dd43868.js → prop.validators-5f63352c.js} +1 -1
- package/www/build/{register-9f63b6c5.js → register-c6216033.js} +1 -1
- package/www/build/{validation-a4a68e52.js → validation-6a53b8ae.js} +1 -1
- package/www/build/validation-bc7df42a.js +4 -0
- package/www/index.html +2 -2
- package/dist/cjs/controller-dd031b7e.js +0 -4
- package/dist/cjs/dev.utils-f4f2b4e4.js +0 -4
- package/dist/cjs/index-43a6234c.js +0 -5
- package/dist/cjs/validation-52fd23f0.js +0 -4
- package/dist/esm/controller-9dd48e3b.js +0 -4
- package/dist/esm/dev.utils-4f23c289.js +0 -4
- package/dist/esm/index-56929ada.js +0 -5
- package/dist/esm/validation-79b31209.js +0 -4
- package/dist/kolibri/controller-9dd48e3b.js +0 -4
- package/dist/kolibri/dev.utils-4f23c289.js +0 -4
- package/dist/kolibri/index-56929ada.js +0 -5
- package/dist/kolibri/validation-79b31209.js +0 -4
- package/www/build/controller-9dd48e3b.js +0 -4
- package/www/build/dev.utils-4f23c289.js +0 -4
- package/www/build/index-56929ada.js +0 -5
- package/www/build/validation-79b31209.js +0 -4
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - the accessible web component library
|
|
3
|
-
*/
|
|
4
|
-
"use strict";function _interopNamespace(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(s){if("default"!==s){var o=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,o.get?o:{enumerable:!0,get:function(){return e[s]}})}})),t.default=e,Object.freeze(t)}const NAMESPACE="kolibri";let scopeId,contentRef,hostTagName,useNativeShadowDom=!1,checkSlotFallbackVisibility=!1,checkSlotRelocate=!1,isSvgMode=!1;const win="undefined"!=typeof window?window:{},doc=win.document||{head:{}},plt={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,s,o)=>e.addEventListener(t,s,o),rel:(e,t,s,o)=>e.removeEventListener(t,s,o),ce:(e,t)=>new CustomEvent(e,t)},promiseResolve=e=>Promise.resolve(e),supportsConstructableStylesheets=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),HYDRATED_CSS="{visibility:hidden}.hydrated{visibility:inherit}",XLINK_NS="http://www.w3.org/1999/xlink",createTime=(e,t="")=>()=>{},uniqueTime=(e,t)=>()=>{},rootAppliedStyles=new WeakMap,registerStyle=(e,t,s)=>{let o=styles.get(e);supportsConstructableStylesheets&&s?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,styles.set(e,o)},addStyle=(e,t,s,o)=>{let n=getScopeId(t,s);const l=styles.get(n);if(e=11===e.nodeType?e:doc,l)if("string"==typeof l){e=e.head||e;let t,s=rootAppliedStyles.get(e);s||rootAppliedStyles.set(e,s=new Set),s.has(n)||(t=doc.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),s&&s.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n},attachStyles=e=>{const t=e.$cmpMeta$,s=e.$hostElement$,o=t.$flags$,n=(t.$tagName$,()=>{}),l=addStyle(s.shadowRoot?s.shadowRoot:s.getRootNode(),t,e.$modeName$);10&o&&(s["s-sc"]=l,s.classList.add(l+"-h")),n()},getScopeId=(e,t)=>"sc-"+(t&&32&e.$flags$?e.$tagName$+"-"+t:e.$tagName$),computeMode=e=>modeResolutionChain.map((t=>t(e))).find((e=>!!e)),setMode=e=>modeResolutionChain.push(e),EMPTY_OBJ={},SVG_NS="http://www.w3.org/2000/svg",HTML_NS="http://www.w3.org/1999/xhtml",isDef=e=>null!=e,isComplexType=e=>"object"===(e=typeof e)||"function"===e,h=(e,t,...s)=>{let o=null,n=null,l=null,a=!1,r=!1;const $=[],c=t=>{for(let s=0;s<t.length;s++)o=t[s],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((a="function"!=typeof e&&!isComplexType(o))&&(o=String(o)),a&&r?$[$.length-1].$text$+=o:$.push(a?newVNode(null,o):o),r=a)};if(c(s),t){t.key&&(n=t.key),t.name&&(l=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,$,vdomFnUtils);const i=newVNode(e,null);return i.$attrs$=t,$.length>0&&(i.$children$=$),i.$key$=n,i.$name$=l,i},newVNode=(e,t)=>{const s={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null};return s},Host={},isHost=e=>e&&e.$tag$===Host,vdomFnUtils={forEach:(e,t)=>e.map(convertToPublic).forEach(t),map:(e,t)=>e.map(convertToPublic).map(t).map(convertToPrivate)},convertToPublic=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),convertToPrivate=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),h(e.vtag,t,...e.vchildren||[])}const t=newVNode(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},setAccessor=(e,t,s,o,n,l)=>{if(s!==o){let a=isMemberInElement(e,t),r=t.toLowerCase();if("class"===t){const t=e.classList,n=parseClassList(s),l=parseClassList(o);t.remove(...n.filter((e=>e&&!l.includes(e)))),t.add(...l.filter((e=>e&&!n.includes(e))))}else if("style"===t){for(const t in s)o&&null!=o[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in o)s&&o[t]===s[t]||(t.includes("-")?e.style.setProperty(t,o[t]):e.style[t]=o[t])}else if("key"===t);else if("ref"===t)o&&o(e);else if(a||"o"!==t[0]||"n"!==t[1]){const $=isComplexType(o);if((a||$&&null!==o)&&!n)try{if(e.tagName.includes("-"))e[t]=o;else{const n=null==o?"":o;"list"===t?a=!1:null!=s&&e[t]==n||(e[t]=n)}}catch(e){}let c=!1;r!==(r=r.replace(/^xlink\:?/,""))&&(t=r,c=!0),null==o||!1===o?!1===o&&""!==e.getAttribute(t)||(c?e.removeAttributeNS(XLINK_NS,t):e.removeAttribute(t)):(!a||4&l||n)&&!$&&(o=!0===o?"":o,c?e.setAttributeNS(XLINK_NS,t,o):e.setAttribute(t,o))}else t="-"===t[2]?t.slice(3):isMemberInElement(win,r)?r.slice(2):r[2]+t.slice(3),s&&plt.rel(e,t,s,!1),o&&plt.ael(e,t,o,!1)}},parseClassListRegex=/\s/,parseClassList=e=>e?e.split(parseClassListRegex):[],updateElement=(e,t,s,o)=>{const n=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,l=e&&e.$attrs$||EMPTY_OBJ,a=t.$attrs$||EMPTY_OBJ;for(o in l)o in a||setAccessor(n,o,l[o],void 0,s,t.$flags$);for(o in a)setAccessor(n,o,l[o],a[o],s,t.$flags$)},createElm=(e,t,s,o)=>{const n=t.$children$[s];let l,a,r,$=0;if(useNativeShadowDom||(checkSlotRelocate=!0,"slot"===n.$tag$&&(scopeId&&o.classList.add(scopeId+"-s"),n.$flags$|=n.$children$?2:1)),null!==n.$text$)l=n.$elm$=doc.createTextNode(n.$text$);else if(1&n.$flags$)l=n.$elm$=doc.createTextNode("");else{if(isSvgMode||(isSvgMode="svg"===n.$tag$),l=n.$elm$=doc.createElementNS(isSvgMode?SVG_NS:HTML_NS,2&n.$flags$?"slot-fb":n.$tag$),isSvgMode&&"foreignObject"===n.$tag$&&(isSvgMode=!1),updateElement(null,n,isSvgMode),null!=scopeId&&l["s-si"]!==scopeId&&l.classList.add(l["s-si"]=scopeId),n.$children$)for($=0;$<n.$children$.length;++$)a=createElm(e,n,$,l),a&&l.appendChild(a);"svg"===n.$tag$?isSvgMode=!1:"foreignObject"===l.tagName&&(isSvgMode=!0)}return l["s-hn"]=hostTagName,3&n.$flags$&&(l["s-sr"]=!0,l["s-cr"]=contentRef,l["s-sn"]=n.$name$||"",r=e&&e.$children$&&e.$children$[s],r&&r.$tag$===n.$tag$&&e.$elm$&&putBackInOriginalLocation(e.$elm$,!1)),l},putBackInOriginalLocation=(e,t)=>{plt.$flags$|=1;const s=e.childNodes;for(let e=s.length-1;e>=0;e--){const o=s[e];o["s-hn"]!==hostTagName&&o["s-ol"]&&(parentReferenceNode(o).insertBefore(o,referenceNode(o)),o["s-ol"].remove(),o["s-ol"]=void 0,checkSlotRelocate=!0),t&&putBackInOriginalLocation(o,t)}plt.$flags$&=-2},addVnodes=(e,t,s,o,n,l)=>{let a,r=e["s-cr"]&&e["s-cr"].parentNode||e;for(r.shadowRoot&&r.tagName===hostTagName&&(r=r.shadowRoot);n<=l;++n)o[n]&&(a=createElm(null,s,n,e),a&&(o[n].$elm$=a,r.insertBefore(a,referenceNode(t))))},removeVnodes=(e,t,s,o,n)=>{for(;t<=s;++t)(o=e[t])&&(n=o.$elm$,callNodeRefs(o),checkSlotFallbackVisibility=!0,n["s-ol"]?n["s-ol"].remove():putBackInOriginalLocation(n,!0),n.remove())},updateChildren=(e,t,s,o)=>{let n,l,a=0,r=0,$=0,c=0,i=t.length-1,d=t[0],p=t[i],m=o.length-1,f=o[0],h=o[m];for(;a<=i&&r<=m;)if(null==d)d=t[++a];else if(null==p)p=t[--i];else if(null==f)f=o[++r];else if(null==h)h=o[--m];else if(isSameVnode(d,f))patch(d,f),d=t[++a],f=o[++r];else if(isSameVnode(p,h))patch(p,h),p=t[--i],h=o[--m];else if(isSameVnode(d,h))"slot"!==d.$tag$&&"slot"!==h.$tag$||putBackInOriginalLocation(d.$elm$.parentNode,!1),patch(d,h),e.insertBefore(d.$elm$,p.$elm$.nextSibling),d=t[++a],h=o[--m];else if(isSameVnode(p,f))"slot"!==d.$tag$&&"slot"!==h.$tag$||putBackInOriginalLocation(p.$elm$.parentNode,!1),patch(p,f),e.insertBefore(p.$elm$,d.$elm$),p=t[--i],f=o[++r];else{for($=-1,c=a;c<=i;++c)if(t[c]&&null!==t[c].$key$&&t[c].$key$===f.$key$){$=c;break}$>=0?(l=t[$],l.$tag$!==f.$tag$?n=createElm(t&&t[r],s,$,e):(patch(l,f),t[$]=void 0,n=l.$elm$),f=o[++r]):(n=createElm(t&&t[r],s,r,e),f=o[++r]),n&&parentReferenceNode(d.$elm$).insertBefore(n,referenceNode(d.$elm$))}a>i?addVnodes(e,null==o[m+1]?null:o[m+1].$elm$,s,o,r,m):r>m&&removeVnodes(t,a,i)},isSameVnode=(e,t)=>e.$tag$===t.$tag$&&("slot"===e.$tag$?e.$name$===t.$name$:e.$key$===t.$key$),referenceNode=e=>e&&e["s-ol"]||e,parentReferenceNode=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,patch=(e,t)=>{const s=t.$elm$=e.$elm$,o=e.$children$,n=t.$children$,l=t.$tag$,a=t.$text$;let r;null===a?(isSvgMode="svg"===l||"foreignObject"!==l&&isSvgMode,"slot"===l||updateElement(e,t,isSvgMode),null!==o&&null!==n?updateChildren(s,o,t,n):null!==n?(null!==e.$text$&&(s.textContent=""),addVnodes(s,null,t,n,0,n.length-1)):null!==o&&removeVnodes(o,0,o.length-1),isSvgMode&&"svg"===l&&(isSvgMode=!1)):(r=s["s-cr"])?r.parentNode.textContent=a:e.$text$!==a&&(s.data=a)},updateFallbackSlotVisibility=e=>{const t=e.childNodes;let s,o,n,l,a,r;for(o=0,n=t.length;o<n;o++)if(s=t[o],1===s.nodeType){if(s["s-sr"])for(a=s["s-sn"],s.hidden=!1,l=0;l<n;l++)if(r=t[l].nodeType,t[l]["s-hn"]!==s["s-hn"]||""!==a){if(1===r&&a===t[l].getAttribute("slot")){s.hidden=!0;break}}else if(1===r||3===r&&""!==t[l].textContent.trim()){s.hidden=!0;break}updateFallbackSlotVisibility(s)}},relocateNodes=[],relocateSlotContent=e=>{let t,s,o,n,l,a,r=0;const $=e.childNodes,c=$.length;for(;r<c;r++){if(t=$[r],t["s-sr"]&&(s=t["s-cr"])&&s.parentNode)for(o=s.parentNode.childNodes,n=t["s-sn"],a=o.length-1;a>=0;a--)s=o[a],s["s-cn"]||s["s-nr"]||s["s-hn"]===t["s-hn"]||(isNodeLocatedInSlot(s,n)?(l=relocateNodes.find((e=>e.$nodeToRelocate$===s)),checkSlotFallbackVisibility=!0,s["s-sn"]=s["s-sn"]||n,l?l.$slotRefNode$=t:relocateNodes.push({$slotRefNode$:t,$nodeToRelocate$:s}),s["s-sr"]&&relocateNodes.map((e=>{isNodeLocatedInSlot(e.$nodeToRelocate$,s["s-sn"])&&(l=relocateNodes.find((e=>e.$nodeToRelocate$===s)),l&&!e.$slotRefNode$&&(e.$slotRefNode$=l.$slotRefNode$))}))):relocateNodes.some((e=>e.$nodeToRelocate$===s))||relocateNodes.push({$nodeToRelocate$:s}));1===t.nodeType&&relocateSlotContent(t)}},isNodeLocatedInSlot=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,callNodeRefs=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(callNodeRefs)},renderVdom=(e,t)=>{const s=e.$hostElement$,o=e.$cmpMeta$,n=e.$vnode$||newVNode(null,null),l=(a=t)&&a.$tag$===Host?t:h(null,null,t);var a;if(hostTagName=s.tagName,o.$attrsToReflect$&&(l.$attrs$=l.$attrs$||{},o.$attrsToReflect$.map((([e,t])=>l.$attrs$[t]=s[e]))),l.$tag$=null,l.$flags$|=4,e.$vnode$=l,l.$elm$=n.$elm$=s.shadowRoot||s,scopeId=s["s-sc"],contentRef=s["s-cr"],useNativeShadowDom=0!=(1&o.$flags$),checkSlotFallbackVisibility=!1,patch(n,l),plt.$flags$|=1,checkSlotRelocate){let e,t,s,o,n,a;relocateSlotContent(l.$elm$);let r=0;for(;r<relocateNodes.length;r++)e=relocateNodes[r],t=e.$nodeToRelocate$,t["s-ol"]||(s=doc.createTextNode(""),s["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=s,t));for(r=0;r<relocateNodes.length;r++)if(e=relocateNodes[r],t=e.$nodeToRelocate$,e.$slotRefNode$){for(o=e.$slotRefNode$.parentNode,n=e.$slotRefNode$.nextSibling,s=t["s-ol"];s=s.previousSibling;)if(a=s["s-nr"],a&&a["s-sn"]===t["s-sn"]&&o===a.parentNode&&(a=a.nextSibling,!a||!a["s-nr"])){n=a;break}(!n&&o!==t.parentNode||t.nextSibling!==n)&&t!==n&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),o.insertBefore(t,n))}else 1===t.nodeType&&(t.hidden=!0)}checkSlotFallbackVisibility&&updateFallbackSlotVisibility(l.$elm$),plt.$flags$&=-2,relocateNodes.length=0},emitEvent=(e,t,s)=>{const o=plt.ce(t,s);return e.dispatchEvent(o),o},attachToAncestor=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.$onRenderResolve$=t)))},scheduleUpdate=(e,t)=>{if(4&e.$flags$)return void(e.$flags$|=512);attachToAncestor(e,e.$ancestorComponent$);return dispatchHooks(e,t)},dispatchHooks=(e,t)=>{const s=(e.$cmpMeta$.$tagName$,()=>{}),o=e.$lazyInstance$;let n;return t&&(n=safeCall(o,"componentWillLoad")),s(),then(n,(()=>updateComponent(e,o,t)))},updateComponent=async(e,t,s)=>{const o=e.$hostElement$,n=(e.$cmpMeta$.$tagName$,()=>{}),l=o["s-rc"];s&&attachStyles(e);const a=(e.$cmpMeta$.$tagName$,()=>{});callRender(e,t),l&&(l.map((e=>e())),o["s-rc"]=void 0),a(),n();{const t=o["s-p"],s=()=>postUpdateComponent(e);0===t.length?s():(Promise.all(t).then(s),e.$flags$|=4,t.length=0)}},callRender=(e,t,s)=>{try{t=t.render(),e.$flags$|=2,renderVdom(e,t)}catch(t){consoleError(t,e.$hostElement$)}return null},postUpdateComponent=e=>{e.$cmpMeta$.$tagName$;const t=e.$hostElement$,s=()=>{},o=e.$lazyInstance$,n=e.$ancestorComponent$;safeCall(o,"componentDidRender"),64&e.$flags$?s():(e.$flags$|=64,addHydratedFlag(t),s(),e.$onReadyResolve$(t),n||appDidLoad()),e.$onInstanceResolve$(t),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&nextTick((()=>scheduleUpdate(e,!1))),e.$flags$&=-517},appDidLoad=e=>{addHydratedFlag(doc.documentElement),nextTick((()=>emitEvent(win,"appload",{detail:{namespace:"kolibri"}})))},safeCall=(e,t,s)=>{if(e&&e[t])try{return e[t](s)}catch(e){consoleError(e)}},then=(e,t)=>e&&e.then?e.then(t):t(),addHydratedFlag=e=>e.classList.add("hydrated"),parsePropertyValue=(e,t)=>null==e||isComplexType(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?String(e):e,getValue=(e,t)=>getHostRef(e).$instanceValues$.get(t),setValue=(e,t,s,o)=>{const n=getHostRef(e),l=n.$hostElement$,a=n.$instanceValues$.get(t),r=n.$flags$,$=n.$lazyInstance$;var c,i;c=s,i=o.$members$[t][0],s=null==c||isComplexType(c)?c:4&i?"false"!==c&&(""===c||!!c):2&i?parseFloat(c):1&i?String(c):c;const d=Number.isNaN(a)&&Number.isNaN(s);if((!(8&r)||void 0===a)&&(s!==a&&!d)&&(n.$instanceValues$.set(t,s),$)){if(o.$watchers$&&128&r){const e=o.$watchers$[t];e&&e.map((e=>{try{$[e](s,a,t)}catch(e){consoleError(e,l)}}))}2==(18&r)&&scheduleUpdate(n,!1)}},proxyComponent=(e,t,s)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const o=Object.entries(t.$members$),n=e.prototype;if(o.map((([e,[o]])=>{31&o||2&s&&32&o?Object.defineProperty(n,e,{get(){return t=e,getHostRef(this).$instanceValues$.get(t);var t},set(s){setValue(this,e,s,t)},configurable:!0,enumerable:!0}):1&s&&64&o&&Object.defineProperty(n,e,{value(...t){const s=getHostRef(this);return s.$onInstancePromise$.then((()=>s.$lazyInstance$[e](...t)))}})})),1&s){const s=new Map;n.attributeChangedCallback=function(e,t,o){plt.jmp((()=>{const t=s.get(e);if(this.hasOwnProperty(t))o=this[t],delete this[t];else if(n.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==o)return;this[t]=(null!==o||"boolean"!=typeof this[t])&&o}))},e.observedAttributes=o.filter((([e,t])=>15&t[0])).map((([e,o])=>{const n=o[1]||e;return s.set(n,e),512&o[0]&&t.$attrsToReflect$.push([e,n]),n}))}}return e},initializeComponent=async(e,t,s,o,n)=>{if(0==(32&t.$flags$)){{if(t.$flags$|=32,(n=loadModule(s)).then){const e=()=>{};n=await n,e()}n.isProxied||(s.$watchers$=n.watchers,proxyComponent(n,s,2),n.isProxied=!0);const e=(s.$tagName$,()=>{});t.$flags$|=8;try{new n(t)}catch(e){consoleError(e)}t.$flags$&=-9,t.$flags$|=128,e()}if(n.style){let o=n.style;"string"!=typeof o&&(o=o[t.$modeName$=computeMode(e)]);const l=getScopeId(s,t.$modeName$);if(!styles.has(l)){const e=(s.$tagName$,()=>{});registerStyle(l,o,!!(1&s.$flags$)),e()}}}const l=t.$ancestorComponent$,a=()=>scheduleUpdate(t,!0);l&&l["s-rc"]?l["s-rc"].push(a):a()},connectedCallback=e=>{if(0==(1&plt.$flags$)){const t=getHostRef(e),s=t.$cmpMeta$,o=(s.$tagName$,()=>{});if(!(1&t.$flags$)){t.$flags$|=1,12&s.$flags$&&setContentReference(e);{let s=e;for(;s=s.parentNode||s.host;)if(s["s-p"]){attachToAncestor(t,t.$ancestorComponent$=s);break}}s.$members$&&Object.entries(s.$members$).map((([t,[s]])=>{if(31&s&&e.hasOwnProperty(t)){const s=e[t];delete e[t],e[t]=s}})),initializeComponent(e,t,s)}o()}},setContentReference=e=>{const t=e["s-cr"]=doc.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},disconnectedCallback=e=>{if(0==(1&plt.$flags$)){const t=getHostRef(e).$lazyInstance$;safeCall(t,"disconnectedCallback")}},bootstrapLazy=(e,t={})=>{const s=()=>{},o=[],n=t.exclude||[],l=win.customElements,a=doc.head,r=a.querySelector("meta[charset]"),$=doc.createElement("style"),c=[];let i,d=!0;Object.assign(plt,t),plt.$resourcesUrl$=new URL(t.resourcesUrl||"./",doc.baseURI).href,e.map((e=>{e[1].map((t=>{const s={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};s.$members$=t[2],s.$attrsToReflect$=[],s.$watchers$={};const a=s.$tagName$,r=class extends HTMLElement{constructor(e){super(e),registerHost(e=this,s),1&s.$flags$&&e.attachShadow({mode:"open"})}connectedCallback(){i&&(clearTimeout(i),i=null),d?c.push(this):plt.jmp((()=>connectedCallback(this)))}disconnectedCallback(){plt.jmp((()=>disconnectedCallback(this)))}componentOnReady(){return getHostRef(this).$onReadyPromise$}};s.$lazyBundleId$=e[0],n.includes(a)||l.get(a)||(o.push(a),l.define(a,proxyComponent(r,s,1)))}))})),$.innerHTML=o+HYDRATED_CSS,$.setAttribute("data-styles",""),a.insertBefore($,r?r.nextSibling:a.firstChild),d=!1,c.length?c.map((e=>e.connectedCallback())):plt.jmp((()=>i=setTimeout(appDidLoad,30))),s()},Fragment=(e,t)=>t,hostRefs=new WeakMap,getHostRef=e=>hostRefs.get(e),registerInstance=(e,t)=>hostRefs.set(t.$lazyInstance$=e,t),registerHost=(e,t)=>{const s={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return s.$onInstancePromise$=new Promise((e=>s.$onInstanceResolve$=e)),s.$onReadyPromise$=new Promise((e=>s.$onReadyResolve$=e)),e["s-p"]=[],e["s-rc"]=[],hostRefs.set(e,s)},isMemberInElement=(e,t)=>t in e,consoleError=(e,t)=>(0,console.error)(e,t),cmpModules=new Map,loadModule=(e,t,s)=>{const o=e.$tagName$.replace(/-/g,"_"),n=e.$lazyBundleId$,l=cmpModules.get(n);return l?l[o]:Promise.resolve().then((function(){return _interopNamespace(require(`./${n}.entry.js`))})).then((e=>(cmpModules.set(n,e),e[o])),consoleError)
|
|
5
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},styles=new Map,modeResolutionChain=[],nextTick=e=>promiseResolve().then(e);exports.Fragment=Fragment,exports.Host=Host,exports.bootstrapLazy=bootstrapLazy,exports.h=h,exports.promiseResolve=promiseResolve,exports.registerInstance=registerInstance,exports.setMode=setMode;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - the accessible web component library
|
|
3
|
-
*/
|
|
4
|
-
"use strict";const a11y_tipps=require("./a11y.tipps-8c4b8396.js"),prop_validators=require("./prop.validators-cef94f6b.js"),watchNavLinks=(t,s,a)=>{prop_validators.watchJsonArrayString(s,"_links",(t=>"object"==typeof t&&"string"==typeof t._label),a),a11y_tipps.uiUxHintMillerscheZahl(t,s.state._links.length)};exports.watchNavLinks=watchNavLinks;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - the accessible web component library
|
|
3
|
-
*/
|
|
4
|
-
import{c as a11yHint}from"./a11y.tipps-1f6fb00f.js";import{a as watchValidator}from"./prop.validators-6dd43868.js";const syncAriaLabelBeforePatch=(a,t,e,r)=>{const i=t.has("_ariaLabel")?t.get("_ariaLabel"):e.state._ariaLabel;if("string"==typeof i&&i.length>0){const a=t.has("_label")?t.get("_label"):e.state._label;!1===new RegExp(`^${a}`).test(i)&&("_ariaLabel"===r?(t.set("_label",i),e._label=i):(t.set("_ariaLabel",a),e._ariaLabel=a),a11yHint("Das abweichende Aria-Label am Schalter ist nicht barrierefrei. Ein abweichendes Aria-Label muss aus Barrierefreiheitsgründen für die Sprachsteuerung mit dem Label-Text beginnen."))}},watchButtonType=(a,t,e)=>{watchValidator(a,t,(a=>"button"===a||"reset"===a||"submit"===a),new Set(["KoliBriButtonType {button, reset, submit}"]),e)},watchButtonVariant=(a,t,e)=>{watchValidator(a,t,(a=>"primary"===a||"secondary"===a||"normal"===a||"danger"===a||"ghost"===a||"custom"===a),new Set(["KoliBriButtonVariant {primary, secondary, normal, danger, ghost, custom}"]),e,{defaultValue:"normal"})};export{watchButtonType as a,syncAriaLabelBeforePatch as s,watchButtonVariant as w};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - the accessible web component library
|
|
3
|
-
*/
|
|
4
|
-
var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(e,t,o){return e(o={path:t,exports:{},require:function(e,t){return commonjsRequire()}},o.exports),o.exports}function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var loglevel=createCommonjsModule((function(e){var t,o;t=commonjsGlobal,o=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 i(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 s(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function l(n){return"debug"===n&&(n="log"),typeof console!==t&&("trace"===n&&o?s:void 0!==console[n]?i(console,n):void 0!==console.log?i(console,"log"):e)}function r(t,o){for(var i=0;i<n.length;i++){var s=n[i];this[s]=i<t?e:this.methodFactory(s,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 l(e)||a.apply(this,arguments)}function d(e,o,i){var s,l=this;o=null==o?"WARN":o;var a="loglevel";function d(){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===l.levels[e]&&(e=void 0),e}}"string"==typeof e?a+=":"+e:"symbol"==typeof e&&(a=void 0),l.name=e,l.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},l.methodFactory=i||c,l.getLevel=function(){return s},l.setLevel=function(o,i){if("string"==typeof o&&void 0!==l.levels[o.toUpperCase()]&&(o=l.levels[o.toUpperCase()]),!("number"==typeof o&&o>=0&&o<=l.levels.SILENT))throw"log.setLevel() called with invalid level: "+o;if(s=o,!1!==i&&function(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){}}}(o),r.call(l,o,e),typeof console===t&&o<l.levels.SILENT)return"No console available for logging"},l.setDefaultLevel=function(e){o=e,d()||l.setLevel(e,!1)},l.resetLevel=function(){l.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){}}}()},l.enableAll=function(e){l.setLevel(l.levels.TRACE,e)},l.disableAll=function(e){l.setLevel(l.levels.SILENT,e)};var u=d();null==u&&(u=o),l.setLevel(u,!1)}var u=new d,g={};u.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=g[e];return t||(t=g[e]=new d(e,u.getLevel(),u.methodFactory)),t};var h=typeof window!==t?window.log:void 0;return u.noConflict=function(){return typeof window!==t&&window.log===u&&(window.log=h),u},u.getLoggers=function(){return g},u.default=u,u},e.exports?e.exports=o():t.log=o()}));class Injector{constructor(){this.services=new Map,this.lazyLoaders=new Set}register(e,t,o={lazy:!1}){if("string"==typeof e&&!1===this.services.has(e))return this.services.set(e,t),!0===(null==o?void 0:o.lazy)&&this.lazyLoaders.add(e),this;throw new Error(`The service '${e}' is allready registered!`)}get(e){if(this.lazyLoaders.has(e)&&(this.services.set(e,this.services.get(e)()),this.lazyLoaders.delete(e)),"string"==typeof e&&!0===this.services.has(e))return this.services.get(e);throw new Error(`The service '${e}' is not registered!`)}}const DI=new Injector,LOG_CACHE=[];function getEnvironment(){return"production"}class Logger{constructor(e,t={}){this.shield=[`%c${e}`,"string"==typeof t.shieldStyle&&t.shieldStyle.length>0?t.shieldStyle:"color: white; background: #666; font-weight: bold; font-size: 10px; padding: 2px 6px; border-radius: 3px; border: 1px solid #000"]}static getInstance(e,t={}){if("string"==typeof e&&e.length>0)return!1===Logger.instances.has(e)&&Logger.instances.set(e,new Logger(e)),Logger.instances.get(e);throw new Error("The identifier of the Logger must be a string with a min length of 1.")}log(e,t){switch("object"==typeof t.refObject&&null!==t.refObject&&"function"==typeof t.refObject.constructor&&"string"==typeof t.refObject.constructor.name&&(t.className=`[${t.refObject.constructor.name}]:`),LOG_CACHE.push({date:(new Date).toUTCString(),level:e,message:t}),e){case"trace":loglevel.trace(...this.shield,t);break;case"debug":loglevel.debug(...this.shield,t);break;case"info":loglevel.info(...this.shield,t);break;case"warn":loglevel.warn(...this.shield,t);break;default:loglevel.error(...this.shield,t)}}trace(e,t){return this.log("trace",{messageText:e,refObject:t}),this}debug(e,t){return this.log("debug",{messageText:e,refObject:t}),this}info(e,t){return this.log("info",{messageText:e,refObject:t}),this}warn(e,t){return this.log("warn",{messageText:e,refObject:t}),this}error(e,t){return this.log("error",{messageText:e,refObject:t}),this}static get cache(){return[].concat(LOG_CACHE)}}switch(Logger.instances=new Map,getEnvironment()){case"development":loglevel.setDefaultLevel("trace");break;case"test":loglevel.setDefaultLevel("warn");break;default:loglevel.setDefaultLevel("error")}const Log$1=Logger.getInstance("leanup");class ModalService{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"})),getDocument().body.style.maxHeight="100vh",getDocument().body.style.overflow="hidden",this.lockFocus(getDocument().body,t)}else getDocument().body.style.maxHeight="unset",getDocument().body.style.overflow="unset"}openModal(e,t){e instanceof HTMLElement==!1?Log.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)Log.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)}}}class ToasterService{constructor(e){this.document=e,this.queue=new Set,this.isOpen=!1,this.toastElement=this.document.createElement("kol-toast"),this.toastElement.setAttribute("_level","3"),this.toastElement.setAttribute("_show","false"),this.toastElement.setAttribute("_show-duration","-1"),this.toastElement.setAttribute("_has-closer","true"),this.toastElement._on={onClose:()=>{const e=this.queue.values().next();e.value?(this.queue.delete(e.value),setTimeout((()=>{this.showToast(e.value)}),200)):this.isOpen=!1}},this.document.body.insertBefore(this.toastElement,this.document.body.firstChild)}enqueue(e){this.isOpen?this.queue.add(e):this.showToast(e)}showToast(e){this.toastElement.setAttribute("_heading",e.heading),this.toastElement.setAttribute("_show","true"),this.toastElement.setAttribute("_type",e.type),this.toastElement.innerText=e.description,this.isOpen=!0}}let WINDOW=null,DOCUMENT=null;const configKoliBri=e=>{e instanceof Window?(WINDOW=e,WINDOW.document instanceof Document?DOCUMENT=e.document:console.warn("The given Window has no valid Document.")):console.warn("The given Window is not valid.")},getWindow=()=>WINDOW||"undefined"==typeof window?null:window,getDocument=()=>DOCUMENT||void 0===getWindow().document?null:getWindow().document;let META_CONFIG=null,DEV_MODE=null,COLOR_CONTRAST_ANALYSIS=null;const getDevMode=()=>!0===DEV_MODE,getColorContrastAnalysis=()=>!0===COLOR_CONTRAST_ANALYSIS;class Log{static mapToArray(e){return Array.isArray(e)?e:[e]}static handleClassifier(e){return"string"==typeof e&&e.length>0?`${Log.shield.label} | ${e}`:Log.shield.label}static getShield(e){return[Log.handleClassifier(null==e?void 0:e.classifier),`${Log.shield.style};${(null==e?void 0:e.overwriteStyle)||""}`]}static debug(e,t){(DEV_MODE||!0===(null==t?void 0:t.forceLog))&&console.log(...Log.getShield(t),...Log.mapToArray(e))}static info(e,t){(DEV_MODE||!0===(null==t?void 0:t.forceLog))&&console.info(...Log.getShield(t),...Log.mapToArray(e))}static trace(e,t){(DEV_MODE||!0===(null==t?void 0:t.forceLog))&&console.trace(...Log.getShield(t),...Log.mapToArray(e))}static warn(e,t){(DEV_MODE||!0===(null==t?void 0:t.forceLog))&&console.warn(...Log.getShield(t),...Log.mapToArray(e))}static error(e,t){(DEV_MODE||!0===(null==t?void 0:t.forceLog))&&console.error(...Log.getShield(t),...Log.mapToArray(e))}static throw(e,t){if(DEV_MODE||!0===(null==t?void 0:t.forceLog))throw new Error(...Log.getShield(t),...Log.mapToArray(e))}}Log.shield={label:"%cKoliBri",style:"color: white; background: #666; font-weight: bold; padding: .25em .5em; border-radius: 3px; border: 1px solid #000"};const initMeta=()=>{if(null===DEV_MODE&&null===COLOR_CONTRAST_ANALYSIS){const e=getDocument().querySelector('meta[name="kolibri"]');e&&e.hasAttribute("content")&&(META_CONFIG=e.getAttribute("content"),"string"==typeof META_CONFIG&&(DEV_MODE=META_CONFIG.includes("dev-mode=true"),COLOR_CONTRAST_ANALYSIS=META_CONFIG.includes("color-contrast-analysis=true")))}else console.warn("You can only initialize DEV_MODE and COLOR_CONTRAST_ANALYSIS once.")};let KoliBri=null;const getKoliBri=()=>KoliBri||{},initKoliBri=()=>{null===KoliBri?(KoliBri=getWindow().KoliBri||{},DI.register("Modal",new ModalService),DI.register("Toaster",new ToasterService(getDocument())),Object.defineProperty(KoliBri,"DI",{get:function(){return DI}}),Object.defineProperty(KoliBri,"Modal",{get:function(){return DI.get("Modal")}}),Object.defineProperty(KoliBri,"Toaster",{get:function(){return DI.get("Toaster")}}),initMeta()):console.warn("You can only initialize KoliBri once.")},renderDevAdvice=()=>{void 0===getWindow().KoliBri&&Object.defineProperty(window,"KoliBri",{get:function(){return KoliBri}}),!0!==getKoliBri().adviceShown&&(Object.defineProperty(KoliBri,"adviceShown",{get:function(){return!0}}),Log.debug("\n\nSie verwenden die KoliBri-Komponenten-Bibliothek. Sollten Sie Verbesserungsvorschläge haben oder ein Problem feststellen, dann wenden Sie sich gerne an kolibri@itzbund.de.\n\nHinweise:\n- WAI Web Accessibility Tutorials (https://www.w3.org/WAI/tutorials/)\n- The first rule of ARIA is “Don't use ARIA” (https://cccaccessibility.org/web-1/web-developer-tutorials/how-not-to-use-aria)\n- BIK BITV-Test (https://www.bitvtest.de/bitv_test.html)\n- A11y-Checkliste (https://www.a11yproject.com/checklist/)\n- BSI CON.10: Entwicklung von Webanwendungen (Edition 2021)\n\n"))};let nonce=()=>Math.floor(16777215*Math.random()).toString(16);export{Injector as I,KoliBri as K,Log as L,ToasterService as T,getWindow as a,Log$1 as b,configKoliBri as c,getKoliBri as d,getDevMode as e,getColorContrastAnalysis as f,getDocument as g,initKoliBri as i,loglevel as l,nonce as n,renderDevAdvice as r};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - the accessible web component library
|
|
3
|
-
*/
|
|
4
|
-
const NAMESPACE="kolibri";let scopeId,contentRef,hostTagName,useNativeShadowDom=!1,checkSlotFallbackVisibility=!1,checkSlotRelocate=!1,isSvgMode=!1;const win="undefined"!=typeof window?window:{},doc=win.document||{head:{}},plt={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,s,o)=>e.addEventListener(t,s,o),rel:(e,t,s,o)=>e.removeEventListener(t,s,o),ce:(e,t)=>new CustomEvent(e,t)},promiseResolve=e=>Promise.resolve(e),supportsConstructableStylesheets=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),HYDRATED_CSS="{visibility:hidden}.hydrated{visibility:inherit}",XLINK_NS="http://www.w3.org/1999/xlink",createTime=(e,t="")=>()=>{},uniqueTime=(e,t)=>()=>{},rootAppliedStyles=new WeakMap,registerStyle=(e,t,s)=>{let o=styles.get(e);supportsConstructableStylesheets&&s?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,styles.set(e,o)},addStyle=(e,t,s,o)=>{let l=getScopeId(t,s);const n=styles.get(l);if(e=11===e.nodeType?e:doc,n)if("string"==typeof n){e=e.head||e;let t,s=rootAppliedStyles.get(e);s||rootAppliedStyles.set(e,s=new Set),s.has(l)||(t=doc.createElement("style"),t.innerHTML=n,e.insertBefore(t,e.querySelector("link")),s&&s.add(l))}else e.adoptedStyleSheets.includes(n)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,n]);return l},attachStyles=e=>{const t=e.$cmpMeta$,s=e.$hostElement$,o=t.$flags$,l=(t.$tagName$,()=>{}),n=addStyle(s.shadowRoot?s.shadowRoot:s.getRootNode(),t,e.$modeName$);10&o&&(s["s-sc"]=n,s.classList.add(n+"-h")),l()},getScopeId=(e,t)=>"sc-"+(t&&32&e.$flags$?e.$tagName$+"-"+t:e.$tagName$),computeMode=e=>modeResolutionChain.map((t=>t(e))).find((e=>!!e)),setMode=e=>modeResolutionChain.push(e),EMPTY_OBJ={},SVG_NS="http://www.w3.org/2000/svg",HTML_NS="http://www.w3.org/1999/xhtml",isDef=e=>null!=e,isComplexType=e=>"object"===(e=typeof e)||"function"===e,h=(e,t,...s)=>{let o=null,l=null,n=null,a=!1,$=!1;const r=[],c=t=>{for(let s=0;s<t.length;s++)o=t[s],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((a="function"!=typeof e&&!isComplexType(o))&&(o=String(o)),a&&$?r[r.length-1].$text$+=o:r.push(a?newVNode(null,o):o),$=a)};if(c(s),t){t.key&&(l=t.key),t.name&&(n=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,r,vdomFnUtils);const i=newVNode(e,null);return i.$attrs$=t,r.length>0&&(i.$children$=r),i.$key$=l,i.$name$=n,i},newVNode=(e,t)=>{const s={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null};return s},Host={},isHost=e=>e&&e.$tag$===Host,vdomFnUtils={forEach:(e,t)=>e.map(convertToPublic).forEach(t),map:(e,t)=>e.map(convertToPublic).map(t).map(convertToPrivate)},convertToPublic=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),convertToPrivate=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),h(e.vtag,t,...e.vchildren||[])}const t=newVNode(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},setAccessor=(e,t,s,o,l,n)=>{if(s!==o){let a=isMemberInElement(e,t),$=t.toLowerCase();if("class"===t){const t=e.classList,l=parseClassList(s),n=parseClassList(o);t.remove(...l.filter((e=>e&&!n.includes(e)))),t.add(...n.filter((e=>e&&!l.includes(e))))}else if("style"===t){for(const t in s)o&&null!=o[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in o)s&&o[t]===s[t]||(t.includes("-")?e.style.setProperty(t,o[t]):e.style[t]=o[t])}else if("key"===t);else if("ref"===t)o&&o(e);else if(a||"o"!==t[0]||"n"!==t[1]){const r=isComplexType(o);if((a||r&&null!==o)&&!l)try{if(e.tagName.includes("-"))e[t]=o;else{const l=null==o?"":o;"list"===t?a=!1:null!=s&&e[t]==l||(e[t]=l)}}catch(e){}let c=!1;$!==($=$.replace(/^xlink\:?/,""))&&(t=$,c=!0),null==o||!1===o?!1===o&&""!==e.getAttribute(t)||(c?e.removeAttributeNS(XLINK_NS,t):e.removeAttribute(t)):(!a||4&n||l)&&!r&&(o=!0===o?"":o,c?e.setAttributeNS(XLINK_NS,t,o):e.setAttribute(t,o))}else t="-"===t[2]?t.slice(3):isMemberInElement(win,$)?$.slice(2):$[2]+t.slice(3),s&&plt.rel(e,t,s,!1),o&&plt.ael(e,t,o,!1)}},parseClassListRegex=/\s/,parseClassList=e=>e?e.split(parseClassListRegex):[],updateElement=(e,t,s,o)=>{const l=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,n=e&&e.$attrs$||EMPTY_OBJ,a=t.$attrs$||EMPTY_OBJ;for(o in n)o in a||setAccessor(l,o,n[o],void 0,s,t.$flags$);for(o in a)setAccessor(l,o,n[o],a[o],s,t.$flags$)},createElm=(e,t,s,o)=>{const l=t.$children$[s];let n,a,$,r=0;if(useNativeShadowDom||(checkSlotRelocate=!0,"slot"===l.$tag$&&(scopeId&&o.classList.add(scopeId+"-s"),l.$flags$|=l.$children$?2:1)),null!==l.$text$)n=l.$elm$=doc.createTextNode(l.$text$);else if(1&l.$flags$)n=l.$elm$=doc.createTextNode("");else{if(isSvgMode||(isSvgMode="svg"===l.$tag$),n=l.$elm$=doc.createElementNS(isSvgMode?SVG_NS:HTML_NS,2&l.$flags$?"slot-fb":l.$tag$),isSvgMode&&"foreignObject"===l.$tag$&&(isSvgMode=!1),updateElement(null,l,isSvgMode),null!=scopeId&&n["s-si"]!==scopeId&&n.classList.add(n["s-si"]=scopeId),l.$children$)for(r=0;r<l.$children$.length;++r)a=createElm(e,l,r,n),a&&n.appendChild(a);"svg"===l.$tag$?isSvgMode=!1:"foreignObject"===n.tagName&&(isSvgMode=!0)}return n["s-hn"]=hostTagName,3&l.$flags$&&(n["s-sr"]=!0,n["s-cr"]=contentRef,n["s-sn"]=l.$name$||"",$=e&&e.$children$&&e.$children$[s],$&&$.$tag$===l.$tag$&&e.$elm$&&putBackInOriginalLocation(e.$elm$,!1)),n},putBackInOriginalLocation=(e,t)=>{plt.$flags$|=1;const s=e.childNodes;for(let e=s.length-1;e>=0;e--){const o=s[e];o["s-hn"]!==hostTagName&&o["s-ol"]&&(parentReferenceNode(o).insertBefore(o,referenceNode(o)),o["s-ol"].remove(),o["s-ol"]=void 0,checkSlotRelocate=!0),t&&putBackInOriginalLocation(o,t)}plt.$flags$&=-2},addVnodes=(e,t,s,o,l,n)=>{let a,$=e["s-cr"]&&e["s-cr"].parentNode||e;for($.shadowRoot&&$.tagName===hostTagName&&($=$.shadowRoot);l<=n;++l)o[l]&&(a=createElm(null,s,l,e),a&&(o[l].$elm$=a,$.insertBefore(a,referenceNode(t))))},removeVnodes=(e,t,s,o,l)=>{for(;t<=s;++t)(o=e[t])&&(l=o.$elm$,callNodeRefs(o),checkSlotFallbackVisibility=!0,l["s-ol"]?l["s-ol"].remove():putBackInOriginalLocation(l,!0),l.remove())},updateChildren=(e,t,s,o)=>{let l,n,a=0,$=0,r=0,c=0,i=t.length-1,d=t[0],p=t[i],m=o.length-1,f=o[0],h=o[m];for(;a<=i&&$<=m;)if(null==d)d=t[++a];else if(null==p)p=t[--i];else if(null==f)f=o[++$];else if(null==h)h=o[--m];else if(isSameVnode(d,f))patch(d,f),d=t[++a],f=o[++$];else if(isSameVnode(p,h))patch(p,h),p=t[--i],h=o[--m];else if(isSameVnode(d,h))"slot"!==d.$tag$&&"slot"!==h.$tag$||putBackInOriginalLocation(d.$elm$.parentNode,!1),patch(d,h),e.insertBefore(d.$elm$,p.$elm$.nextSibling),d=t[++a],h=o[--m];else if(isSameVnode(p,f))"slot"!==d.$tag$&&"slot"!==h.$tag$||putBackInOriginalLocation(p.$elm$.parentNode,!1),patch(p,f),e.insertBefore(p.$elm$,d.$elm$),p=t[--i],f=o[++$];else{for(r=-1,c=a;c<=i;++c)if(t[c]&&null!==t[c].$key$&&t[c].$key$===f.$key$){r=c;break}r>=0?(n=t[r],n.$tag$!==f.$tag$?l=createElm(t&&t[$],s,r,e):(patch(n,f),t[r]=void 0,l=n.$elm$),f=o[++$]):(l=createElm(t&&t[$],s,$,e),f=o[++$]),l&&parentReferenceNode(d.$elm$).insertBefore(l,referenceNode(d.$elm$))}a>i?addVnodes(e,null==o[m+1]?null:o[m+1].$elm$,s,o,$,m):$>m&&removeVnodes(t,a,i)},isSameVnode=(e,t)=>e.$tag$===t.$tag$&&("slot"===e.$tag$?e.$name$===t.$name$:e.$key$===t.$key$),referenceNode=e=>e&&e["s-ol"]||e,parentReferenceNode=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,patch=(e,t)=>{const s=t.$elm$=e.$elm$,o=e.$children$,l=t.$children$,n=t.$tag$,a=t.$text$;let $;null===a?(isSvgMode="svg"===n||"foreignObject"!==n&&isSvgMode,"slot"===n||updateElement(e,t,isSvgMode),null!==o&&null!==l?updateChildren(s,o,t,l):null!==l?(null!==e.$text$&&(s.textContent=""),addVnodes(s,null,t,l,0,l.length-1)):null!==o&&removeVnodes(o,0,o.length-1),isSvgMode&&"svg"===n&&(isSvgMode=!1)):($=s["s-cr"])?$.parentNode.textContent=a:e.$text$!==a&&(s.data=a)},updateFallbackSlotVisibility=e=>{const t=e.childNodes;let s,o,l,n,a,$;for(o=0,l=t.length;o<l;o++)if(s=t[o],1===s.nodeType){if(s["s-sr"])for(a=s["s-sn"],s.hidden=!1,n=0;n<l;n++)if($=t[n].nodeType,t[n]["s-hn"]!==s["s-hn"]||""!==a){if(1===$&&a===t[n].getAttribute("slot")){s.hidden=!0;break}}else if(1===$||3===$&&""!==t[n].textContent.trim()){s.hidden=!0;break}updateFallbackSlotVisibility(s)}},relocateNodes=[],relocateSlotContent=e=>{let t,s,o,l,n,a,$=0;const r=e.childNodes,c=r.length;for(;$<c;$++){if(t=r[$],t["s-sr"]&&(s=t["s-cr"])&&s.parentNode)for(o=s.parentNode.childNodes,l=t["s-sn"],a=o.length-1;a>=0;a--)s=o[a],s["s-cn"]||s["s-nr"]||s["s-hn"]===t["s-hn"]||(isNodeLocatedInSlot(s,l)?(n=relocateNodes.find((e=>e.$nodeToRelocate$===s)),checkSlotFallbackVisibility=!0,s["s-sn"]=s["s-sn"]||l,n?n.$slotRefNode$=t:relocateNodes.push({$slotRefNode$:t,$nodeToRelocate$:s}),s["s-sr"]&&relocateNodes.map((e=>{isNodeLocatedInSlot(e.$nodeToRelocate$,s["s-sn"])&&(n=relocateNodes.find((e=>e.$nodeToRelocate$===s)),n&&!e.$slotRefNode$&&(e.$slotRefNode$=n.$slotRefNode$))}))):relocateNodes.some((e=>e.$nodeToRelocate$===s))||relocateNodes.push({$nodeToRelocate$:s}));1===t.nodeType&&relocateSlotContent(t)}},isNodeLocatedInSlot=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,callNodeRefs=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(callNodeRefs)},renderVdom=(e,t)=>{const s=e.$hostElement$,o=e.$cmpMeta$,l=e.$vnode$||newVNode(null,null),n=(a=t)&&a.$tag$===Host?t:h(null,null,t);var a;if(hostTagName=s.tagName,o.$attrsToReflect$&&(n.$attrs$=n.$attrs$||{},o.$attrsToReflect$.map((([e,t])=>n.$attrs$[t]=s[e]))),n.$tag$=null,n.$flags$|=4,e.$vnode$=n,n.$elm$=l.$elm$=s.shadowRoot||s,scopeId=s["s-sc"],contentRef=s["s-cr"],useNativeShadowDom=0!=(1&o.$flags$),checkSlotFallbackVisibility=!1,patch(l,n),plt.$flags$|=1,checkSlotRelocate){let e,t,s,o,l,a;relocateSlotContent(n.$elm$);let $=0;for(;$<relocateNodes.length;$++)e=relocateNodes[$],t=e.$nodeToRelocate$,t["s-ol"]||(s=doc.createTextNode(""),s["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=s,t));for($=0;$<relocateNodes.length;$++)if(e=relocateNodes[$],t=e.$nodeToRelocate$,e.$slotRefNode$){for(o=e.$slotRefNode$.parentNode,l=e.$slotRefNode$.nextSibling,s=t["s-ol"];s=s.previousSibling;)if(a=s["s-nr"],a&&a["s-sn"]===t["s-sn"]&&o===a.parentNode&&(a=a.nextSibling,!a||!a["s-nr"])){l=a;break}(!l&&o!==t.parentNode||t.nextSibling!==l)&&t!==l&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),o.insertBefore(t,l))}else 1===t.nodeType&&(t.hidden=!0)}checkSlotFallbackVisibility&&updateFallbackSlotVisibility(n.$elm$),plt.$flags$&=-2,relocateNodes.length=0},emitEvent=(e,t,s)=>{const o=plt.ce(t,s);return e.dispatchEvent(o),o},attachToAncestor=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.$onRenderResolve$=t)))},scheduleUpdate=(e,t)=>{if(4&e.$flags$)return void(e.$flags$|=512);attachToAncestor(e,e.$ancestorComponent$);return dispatchHooks(e,t)},dispatchHooks=(e,t)=>{const s=(e.$cmpMeta$.$tagName$,()=>{}),o=e.$lazyInstance$;let l;return t&&(l=safeCall(o,"componentWillLoad")),s(),then(l,(()=>updateComponent(e,o,t)))},updateComponent=async(e,t,s)=>{const o=e.$hostElement$,l=(e.$cmpMeta$.$tagName$,()=>{}),n=o["s-rc"];s&&attachStyles(e);const a=(e.$cmpMeta$.$tagName$,()=>{});callRender(e,t),n&&(n.map((e=>e())),o["s-rc"]=void 0),a(),l();{const t=o["s-p"],s=()=>postUpdateComponent(e);0===t.length?s():(Promise.all(t).then(s),e.$flags$|=4,t.length=0)}},callRender=(e,t,s)=>{try{t=t.render(),e.$flags$|=2,renderVdom(e,t)}catch(t){consoleError(t,e.$hostElement$)}return null},postUpdateComponent=e=>{e.$cmpMeta$.$tagName$;const t=e.$hostElement$,s=()=>{},o=e.$lazyInstance$,l=e.$ancestorComponent$;safeCall(o,"componentDidRender"),64&e.$flags$?s():(e.$flags$|=64,addHydratedFlag(t),s(),e.$onReadyResolve$(t),l||appDidLoad()),e.$onInstanceResolve$(t),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&nextTick((()=>scheduleUpdate(e,!1))),e.$flags$&=-517},appDidLoad=e=>{addHydratedFlag(doc.documentElement),nextTick((()=>emitEvent(win,"appload",{detail:{namespace:"kolibri"}})))},safeCall=(e,t,s)=>{if(e&&e[t])try{return e[t](s)}catch(e){consoleError(e)}},then=(e,t)=>e&&e.then?e.then(t):t(),addHydratedFlag=e=>e.classList.add("hydrated"),parsePropertyValue=(e,t)=>null==e||isComplexType(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?String(e):e,getValue=(e,t)=>getHostRef(e).$instanceValues$.get(t),setValue=(e,t,s,o)=>{const l=getHostRef(e),n=l.$hostElement$,a=l.$instanceValues$.get(t),$=l.$flags$,r=l.$lazyInstance$;var c,i;c=s,i=o.$members$[t][0],s=null==c||isComplexType(c)?c:4&i?"false"!==c&&(""===c||!!c):2&i?parseFloat(c):1&i?String(c):c;const d=Number.isNaN(a)&&Number.isNaN(s);if((!(8&$)||void 0===a)&&(s!==a&&!d)&&(l.$instanceValues$.set(t,s),r)){if(o.$watchers$&&128&$){const e=o.$watchers$[t];e&&e.map((e=>{try{r[e](s,a,t)}catch(e){consoleError(e,n)}}))}2==(18&$)&&scheduleUpdate(l,!1)}},proxyComponent=(e,t,s)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const o=Object.entries(t.$members$),l=e.prototype;if(o.map((([e,[o]])=>{31&o||2&s&&32&o?Object.defineProperty(l,e,{get(){return t=e,getHostRef(this).$instanceValues$.get(t);var t},set(s){setValue(this,e,s,t)},configurable:!0,enumerable:!0}):1&s&&64&o&&Object.defineProperty(l,e,{value(...t){const s=getHostRef(this);return s.$onInstancePromise$.then((()=>s.$lazyInstance$[e](...t)))}})})),1&s){const s=new Map;l.attributeChangedCallback=function(e,t,o){plt.jmp((()=>{const t=s.get(e);if(this.hasOwnProperty(t))o=this[t],delete this[t];else if(l.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==o)return;this[t]=(null!==o||"boolean"!=typeof this[t])&&o}))},e.observedAttributes=o.filter((([e,t])=>15&t[0])).map((([e,o])=>{const l=o[1]||e;return s.set(l,e),512&o[0]&&t.$attrsToReflect$.push([e,l]),l}))}}return e},initializeComponent=async(e,t,s,o,l)=>{if(0==(32&t.$flags$)){{if(t.$flags$|=32,(l=loadModule(s)).then){const e=()=>{};l=await l,e()}l.isProxied||(s.$watchers$=l.watchers,proxyComponent(l,s,2),l.isProxied=!0);const e=(s.$tagName$,()=>{});t.$flags$|=8;try{new l(t)}catch(e){consoleError(e)}t.$flags$&=-9,t.$flags$|=128,e()}if(l.style){let o=l.style;"string"!=typeof o&&(o=o[t.$modeName$=computeMode(e)]);const n=getScopeId(s,t.$modeName$);if(!styles.has(n)){const e=(s.$tagName$,()=>{});registerStyle(n,o,!!(1&s.$flags$)),e()}}}const n=t.$ancestorComponent$,a=()=>scheduleUpdate(t,!0);n&&n["s-rc"]?n["s-rc"].push(a):a()},connectedCallback=e=>{if(0==(1&plt.$flags$)){const t=getHostRef(e),s=t.$cmpMeta$,o=(s.$tagName$,()=>{});if(!(1&t.$flags$)){t.$flags$|=1,12&s.$flags$&&setContentReference(e);{let s=e;for(;s=s.parentNode||s.host;)if(s["s-p"]){attachToAncestor(t,t.$ancestorComponent$=s);break}}s.$members$&&Object.entries(s.$members$).map((([t,[s]])=>{if(31&s&&e.hasOwnProperty(t)){const s=e[t];delete e[t],e[t]=s}})),initializeComponent(e,t,s)}o()}},setContentReference=e=>{const t=e["s-cr"]=doc.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},disconnectedCallback=e=>{if(0==(1&plt.$flags$)){const t=getHostRef(e).$lazyInstance$;safeCall(t,"disconnectedCallback")}},bootstrapLazy=(e,t={})=>{const s=()=>{},o=[],l=t.exclude||[],n=win.customElements,a=doc.head,$=a.querySelector("meta[charset]"),r=doc.createElement("style"),c=[];let i,d=!0;Object.assign(plt,t),plt.$resourcesUrl$=new URL(t.resourcesUrl||"./",doc.baseURI).href,e.map((e=>{e[1].map((t=>{const s={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};s.$members$=t[2],s.$attrsToReflect$=[],s.$watchers$={};const a=s.$tagName$,$=class extends HTMLElement{constructor(e){super(e),registerHost(e=this,s),1&s.$flags$&&e.attachShadow({mode:"open"})}connectedCallback(){i&&(clearTimeout(i),i=null),d?c.push(this):plt.jmp((()=>connectedCallback(this)))}disconnectedCallback(){plt.jmp((()=>disconnectedCallback(this)))}componentOnReady(){return getHostRef(this).$onReadyPromise$}};s.$lazyBundleId$=e[0],l.includes(a)||n.get(a)||(o.push(a),n.define(a,proxyComponent($,s,1)))}))})),r.innerHTML=o+HYDRATED_CSS,r.setAttribute("data-styles",""),a.insertBefore(r,$?$.nextSibling:a.firstChild),d=!1,c.length?c.map((e=>e.connectedCallback())):plt.jmp((()=>i=setTimeout(appDidLoad,30))),s()},Fragment=(e,t)=>t,hostRefs=new WeakMap,getHostRef=e=>hostRefs.get(e),registerInstance=(e,t)=>hostRefs.set(t.$lazyInstance$=e,t),registerHost=(e,t)=>{const s={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return s.$onInstancePromise$=new Promise((e=>s.$onInstanceResolve$=e)),s.$onReadyPromise$=new Promise((e=>s.$onReadyResolve$=e)),e["s-p"]=[],e["s-rc"]=[],hostRefs.set(e,s)},isMemberInElement=(e,t)=>t in e,consoleError=(e,t)=>(0,console.error)(e,t),cmpModules=new Map,loadModule=(e,t,s)=>{const o=e.$tagName$.replace(/-/g,"_"),l=e.$lazyBundleId$,n=cmpModules.get(l);return n?n[o]:import(`./${l}.entry.js`).then((e=>(cmpModules.set(l,e),e[o])),consoleError)
|
|
5
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},styles=new Map,modeResolutionChain=[],nextTick=e=>promiseResolve().then(e);export{Fragment as F,Host as H,bootstrapLazy as b,h,promiseResolve as p,registerInstance as r,setMode as s};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - the accessible web component library
|
|
3
|
-
*/
|
|
4
|
-
import{u as uiUxHintMillerscheZahl}from"./a11y.tipps-1f6fb00f.js";import{c as watchJsonArrayString}from"./prop.validators-6dd43868.js";const watchNavLinks=(t,a,s)=>{watchJsonArrayString(a,"_links",(t=>"object"==typeof t&&"string"==typeof t._label),s),uiUxHintMillerscheZahl(t,a.state._links.length)};export{watchNavLinks as w};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - the accessible web component library
|
|
3
|
-
*/
|
|
4
|
-
import{c as a}from"./a11y.tipps-1f6fb00f.js";import{a as e}from"./prop.validators-6dd43868.js";const r=(e,t,r,s)=>{const i=t.has("_ariaLabel")?t.get("_ariaLabel"):r.state._ariaLabel;if("string"==typeof i&&i.length>0){const e=t.has("_label")?t.get("_label"):r.state._label;!1===new RegExp(`^${e}`).test(i)&&("_ariaLabel"===s?(t.set("_label",i),r._label=i):(t.set("_ariaLabel",e),r._ariaLabel=e),a("Das abweichende Aria-Label am Schalter ist nicht barrierefrei. Ein abweichendes Aria-Label muss aus Barrierefreiheitsgründen für die Sprachsteuerung mit dem Label-Text beginnen."))}},t=(a,t,r)=>{e(a,t,(a=>"button"===a||"reset"===a||"submit"===a),new Set(["KoliBriButtonType {button, reset, submit}"]),r)},i=(a,t,r)=>{e(a,t,(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"})};export{t as a,r as s,i as w};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - the accessible web component library
|
|
3
|
-
*/
|
|
4
|
-
var e,t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(function(e){var o,n;o=t,n=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 i(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 s(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function r(n){return"debug"===n&&(n="log"),typeof console!==t&&("trace"===n&&o?s:void 0!==console[n]?i(console,n):void 0!==console.log?i(console,"log"):e)}function l(t,o){for(var i=0;i<n.length;i++){var s=n[i];this[s]=i<t?e:this.methodFactory(s,t,o)}this.log=this.debug}function a(e,o,n){return function(){typeof console!==t&&(l.call(this,o,n),this[e].apply(this,arguments))}}function c(e,t,o){return r(e)||a.apply(this,arguments)}function d(e,o,i){var s,r=this;o=null==o?"WARN":o;var a="loglevel";function d(){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===r.levels[e]&&(e=void 0),e}}"string"==typeof e?a+=":"+e:"symbol"==typeof e&&(a=void 0),r.name=e,r.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},r.methodFactory=i||c,r.getLevel=function(){return s},r.setLevel=function(o,i){if("string"==typeof o&&void 0!==r.levels[o.toUpperCase()]&&(o=r.levels[o.toUpperCase()]),!("number"==typeof o&&o>=0&&o<=r.levels.SILENT))throw"log.setLevel() called with invalid level: "+o;if(s=o,!1!==i&&function(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){}}}(o),l.call(r,o,e),typeof console===t&&o<r.levels.SILENT)return"No console available for logging"},r.setDefaultLevel=function(e){o=e,d()||r.setLevel(e,!1)},r.resetLevel=function(){r.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){}}}()},r.enableAll=function(e){r.setLevel(r.levels.TRACE,e)},r.disableAll=function(e){r.setLevel(r.levels.SILENT,e)};var u=d();null==u&&(u=o),r.setLevel(u,!1)}var u=new d,h={};u.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=h[e];return t||(t=h[e]=new d(e,u.getLevel(),u.methodFactory)),t};var f=typeof window!==t?window.log:void 0;return u.noConflict=function(){return typeof window!==t&&window.log===u&&(window.log=f),u},u.getLoggers=function(){return h},u.default=u,u},e.exports?e.exports=n():o.log=n()}(e={path:void 0,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}}),e.exports);class o{constructor(){this.services=new Map,this.lazyLoaders=new Set}register(e,t,o={lazy:!1}){if("string"==typeof e&&!1===this.services.has(e))return this.services.set(e,t),!0===(null==o?void 0:o.lazy)&&this.lazyLoaders.add(e),this;throw new Error(`The service '${e}' is allready registered!`)}get(e){if(this.lazyLoaders.has(e)&&(this.services.set(e,this.services.get(e)()),this.lazyLoaders.delete(e)),"string"==typeof e&&!0===this.services.has(e))return this.services.get(e);throw new Error(`The service '${e}' is not registered!`)}}const i=new o,s=[];class r{constructor(e,t={}){this.shield=[`%c${e}`,"string"==typeof t.shieldStyle&&t.shieldStyle.length>0?t.shieldStyle:"color: white; background: #666; font-weight: bold; font-size: 10px; padding: 2px 6px; border-radius: 3px; border: 1px solid #000"]}static getInstance(e,t={}){if("string"==typeof e&&e.length>0)return!1===r.instances.has(e)&&r.instances.set(e,new r(e)),r.instances.get(e);throw new Error("The identifier of the Logger must be a string with a min length of 1.")}log(e,t){switch("object"==typeof t.refObject&&null!==t.refObject&&"function"==typeof t.refObject.constructor&&"string"==typeof t.refObject.constructor.name&&(t.className=`[${t.refObject.constructor.name}]:`),s.push({date:(new Date).toUTCString(),level:e,message:t}),e){case"trace":n.trace(...this.shield,t);break;case"debug":n.debug(...this.shield,t);break;case"info":n.info(...this.shield,t);break;case"warn":n.warn(...this.shield,t);break;default:n.error(...this.shield,t)}}trace(e,t){return this.log("trace",{messageText:e,refObject:t}),this}debug(e,t){return this.log("debug",{messageText:e,refObject:t}),this}info(e,t){return this.log("info",{messageText:e,refObject:t}),this}warn(e,t){return this.log("warn",{messageText:e,refObject:t}),this}error(e,t){return this.log("error",{messageText:e,refObject:t}),this}static get cache(){return[].concat(s)}}r.instances=new Map,n.setDefaultLevel("error");const l=r.getInstance("leanup");class c{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)&&(this.lockedElements.set(e,"string"==typeof t?{tabIndex:t}:{}),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"})),w().body.style.maxHeight="100vh",w().body.style.overflow="hidden",this.lockFocus(w().body,t)}else w().body.style.maxHeight="unset",w().body.style.overflow="unset"}openModal(e,t){e instanceof HTMLElement==0?m.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==0)m.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)}}}class a{constructor(e){this.document=e,this.queue=new Set,this.isOpen=!1,this.toastElement=this.document.createElement("kol-toast"),this.toastElement.setAttribute("_level","3"),this.toastElement.setAttribute("_show","false"),this.toastElement.setAttribute("_show-duration","-1"),this.toastElement.setAttribute("_has-closer","true"),this.toastElement._on={onClose:()=>{const e=this.queue.values().next();e.value?(this.queue.delete(e.value),setTimeout((()=>{this.showToast(e.value)}),200)):this.isOpen=!1}},this.document.body.insertBefore(this.toastElement,this.document.body.firstChild)}enqueue(e){this.isOpen?this.queue.add(e):this.showToast(e)}showToast(e){this.toastElement.setAttribute("_heading",e.heading),this.toastElement.setAttribute("_show","true"),this.toastElement.setAttribute("_type",e.type),this.toastElement.innerText=e.description,this.isOpen=!0}}let u=null,h=null;const d=e=>{e instanceof Window?(u=e,u.document instanceof Document?h=e.document:console.warn("The given Window has no valid Document.")):console.warn("The given Window is not valid.")},f=()=>u||"undefined"==typeof window?null:window,w=()=>h||void 0===f().document?null:f().document;let g=null,p=null,v=null;const y=()=>!0===p,b=()=>!0===v;class m{static mapToArray(e){return Array.isArray(e)?e:[e]}static handleClassifier(e){return"string"==typeof e&&e.length>0?`${m.shield.label} | ${e}`:m.shield.label}static getShield(e){return[m.handleClassifier(null==e?void 0:e.classifier),`${m.shield.style};${(null==e?void 0:e.overwriteStyle)||""}`]}static debug(e,t){(p||!0===(null==t?void 0:t.forceLog))&&console.log(...m.getShield(t),...m.mapToArray(e))}static info(e,t){(p||!0===(null==t?void 0:t.forceLog))&&console.info(...m.getShield(t),...m.mapToArray(e))}static trace(e,t){(p||!0===(null==t?void 0:t.forceLog))&&console.trace(...m.getShield(t),...m.mapToArray(e))}static warn(e,t){(p||!0===(null==t?void 0:t.forceLog))&&console.warn(...m.getShield(t),...m.mapToArray(e))}static error(e,t){(p||!0===(null==t?void 0:t.forceLog))&&console.error(...m.getShield(t),...m.mapToArray(e))}static throw(e,t){if(p||!0===(null==t?void 0:t.forceLog))throw new Error(...m.getShield(t),...m.mapToArray(e))}}m.shield={label:"%cKoliBri",style:"color: white; background: #666; font-weight: bold; padding: .25em .5em; border-radius: 3px; border: 1px solid #000"};let T=null;const E=()=>T||{},M=()=>{null===T?(T=f().KoliBri||{},i.register("Modal",new c),i.register("Toaster",new a(w())),Object.defineProperty(T,"DI",{get:function(){return i}}),Object.defineProperty(T,"Modal",{get:function(){return i.get("Modal")}}),Object.defineProperty(T,"Toaster",{get:function(){return i.get("Toaster")}}),(()=>{if(null===p&&null===v){const e=w().querySelector('meta[name="kolibri"]');e&&e.hasAttribute("content")&&(g=e.getAttribute("content"),"string"==typeof g&&(p=g.includes("dev-mode=true"),v=g.includes("color-contrast-analysis=true")))}else console.warn("You can only initialize DEV_MODE and COLOR_CONTRAST_ANALYSIS once.")})()):console.warn("You can only initialize KoliBri once.")},x=()=>{void 0===f().KoliBri&&Object.defineProperty(window,"KoliBri",{get:function(){return T}}),!0!==E().adviceShown&&(Object.defineProperty(T,"adviceShown",{get:function(){return!0}}),m.debug("\n\nSie verwenden die KoliBri-Komponenten-Bibliothek. Sollten Sie Verbesserungsvorschläge haben oder ein Problem feststellen, dann wenden Sie sich gerne an kolibri@itzbund.de.\n\nHinweise:\n- WAI Web Accessibility Tutorials (https://www.w3.org/WAI/tutorials/)\n- The first rule of ARIA is “Don't use ARIA” (https://cccaccessibility.org/web-1/web-developer-tutorials/how-not-to-use-aria)\n- BIK BITV-Test (https://www.bitvtest.de/bitv_test.html)\n- A11y-Checkliste (https://www.a11yproject.com/checklist/)\n- BSI CON.10: Entwicklung von Webanwendungen (Edition 2021)\n\n"))};let I=()=>Math.floor(16777215*Math.random()).toString(16);export{o as I,T as K,m as L,a as T,f as a,l as b,d as c,E as d,y as e,b as f,w as g,M as i,n as l,I as n,x as r};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - the accessible web component library
|
|
3
|
-
*/
|
|
4
|
-
let e,t,n,l=!1,s=!1,o=!1,i=!1;const r="undefined"!=typeof window?window:{},c=r.document||{head:{}},f={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,s)=>e.addEventListener(t,n,s),rel:(e,t,n,s)=>e.removeEventListener(t,n,s),ce:(e,t)=>new CustomEvent(e,t)},u=e=>Promise.resolve(e),a=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),$="http://www.w3.org/1999/xlink",h=new WeakMap,d=(e,t)=>"sc-"+(t&&32&e.t?e.o+"-"+t:e.o),y=e=>fe.push(e),p={},b=e=>"object"==(e=typeof e)||"function"===e,m=(e,t,...n)=>{let s=null,l=null,o=null,r=!1,i=!1;const c=[],a=t=>{for(let n=0;n<t.length;n++)s=t[n],Array.isArray(s)?a(s):null!=s&&"boolean"!=typeof s&&((r="function"!=typeof e&&!b(s))&&(s+=""),r&&i?c[c.length-1].i+=s:c.push(r?w(null,s):s),i=r)};if(a(n),t){t.key&&(l=t.key),t.name&&(o=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,c,v);const f=w(e,null);return f.u=t,c.length>0&&(f.$=c),f.h=l,f.p=o,f},w=(e,t)=>({t:0,m:e,i:t,g:null,$:null,u:null,h:null,p:null}),g={},v={forEach:(e,t)=>e.map(k).forEach(t),map:(e,t)=>e.map(k).map(t).map(j)},k=e=>({vattrs:e.u,vchildren:e.$,vkey:e.h,vname:e.p,vtag:e.m,vtext:e.i}),j=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),m(e.vtag,t,...e.vchildren||[])}const t=w(e.vtag,e.vtext);return t.u=e.vattrs,t.$=e.vchildren,t.h=e.vkey,t.p=e.vname,t},S=(e,t,n,s,l,o)=>{if(n!==s){let i=se(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,l=M(n),o=M(s);t.remove(...l.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!l.includes(e))))}else if("style"===t){for(const t in n)s&&null!=s[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in s)n&&s[t]===n[t]||(t.includes("-")?e.style.setProperty(t,s[t]):e.style[t]=s[t])}else if("key"===t);else if("ref"===t)s&&s(e);else if(i||"o"!==t[0]||"n"!==t[1]){const r=b(s);if((i||r&&null!==s)&&!l)try{if(e.tagName.includes("-"))e[t]=s;else{const l=null==s?"":s;"list"===t?i=!1:null!=n&&e[t]==l||(e[t]=l)}}catch(e){}let a=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(t=c,a=!0),null==s||!1===s?!1===s&&""!==e.getAttribute(t)||(a?e.removeAttributeNS($,t):e.removeAttribute(t)):(!i||4&o||l)&&!r&&(s=!0===s?"":s,a?e.setAttributeNS($,t,s):e.setAttribute(t,s))}else t="-"===t[2]?t.slice(3):se(r,c)?c.slice(2):c[2]+t.slice(3),n&&f.rel(e,t,n,!1),s&&f.ael(e,t,s,!1)}},O=/\s/,M=e=>e?e.split(O):[],x=(e,t,n,s)=>{const l=11===t.g.nodeType&&t.g.host?t.g.host:t.g,o=e&&e.u||p,r=t.u||p;for(s in o)s in r||S(l,s,o[s],void 0,n,t.t);for(s in r)S(l,s,o[s],r[s],n,t.t)},C=(s,r,a,f)=>{const u=r.$[a];let d,h,p,m=0;if(l||(o=!0,"slot"===u.m&&(e&&f.classList.add(e+"-s"),u.t|=u.$?2:1)),null!==u.i)d=u.g=c.createTextNode(u.i);else if(1&u.t)d=u.g=c.createTextNode("");else{if(i||(i="svg"===u.m),d=u.g=c.createElementNS(i?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&u.t?"slot-fb":u.m),i&&"foreignObject"===u.m&&(i=!1),x(null,u,i),null!=e&&d["s-si"]!==e&&d.classList.add(d["s-si"]=e),u.$)for(m=0;m<u.$.length;++m)h=C(s,u,m,d),h&&d.appendChild(h);"svg"===u.m?i=!1:"foreignObject"===d.tagName&&(i=!0)}return d["s-hn"]=n,3&u.t&&(d["s-sr"]=!0,d["s-cr"]=t,d["s-sn"]=u.p||"",p=s&&s.$&&s.$[a],p&&p.m===u.m&&s.g&&R(s.g,!1)),d},R=(e,t)=>{f.t|=1;const s=e.childNodes;for(let e=s.length-1;e>=0;e--){const l=s[e];l["s-hn"]!==n&&l["s-ol"]&&(F(l).insertBefore(l,N(l)),l["s-ol"].remove(),l["s-ol"]=void 0,o=!0),t&&R(l,t)}f.t&=-2},P=(e,t,s,l,o,r)=>{let i,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===n&&(c=c.shadowRoot);o<=r;++o)l[o]&&(i=C(null,s,o,e),i&&(l[o].g=i,c.insertBefore(i,N(t))))},T=(e,t,n,l,o)=>{for(;t<=n;++t)(l=e[t])&&(o=l.g,q(l),s=!0,o["s-ol"]?o["s-ol"].remove():R(o,!0),o.remove())},E=(e,t)=>e.m===t.m&&("slot"===e.m?e.p===t.p:e.h===t.h),N=e=>e&&e["s-ol"]||e,F=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,L=(e,t)=>{const n=t.g=e.g,s=e.$,l=t.$,o=t.m,r=t.i;let c;null===r?(i="svg"===o||"foreignObject"!==o&&i,"slot"===o||x(e,t,i),null!==s&&null!==l?((e,t,n,s)=>{let l,o,r=0,i=0,c=0,a=0,f=t.length-1,u=t[0],d=t[f],h=s.length-1,p=s[0],m=s[h];for(;r<=f&&i<=h;)if(null==u)u=t[++r];else if(null==d)d=t[--f];else if(null==p)p=s[++i];else if(null==m)m=s[--h];else if(E(u,p))L(u,p),u=t[++r],p=s[++i];else if(E(d,m))L(d,m),d=t[--f],m=s[--h];else if(E(u,m))"slot"!==u.m&&"slot"!==m.m||R(u.g.parentNode,!1),L(u,m),e.insertBefore(u.g,d.g.nextSibling),u=t[++r],m=s[--h];else if(E(d,p))"slot"!==u.m&&"slot"!==m.m||R(d.g.parentNode,!1),L(d,p),e.insertBefore(d.g,u.g),d=t[--f],p=s[++i];else{for(c=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].h&&t[a].h===p.h){c=a;break}c>=0?(o=t[c],o.m!==p.m?l=C(t&&t[i],n,c,e):(L(o,p),t[c]=void 0,l=o.g),p=s[++i]):(l=C(t&&t[i],n,i,e),p=s[++i]),l&&F(u.g).insertBefore(l,N(u.g))}r>f?P(e,null==s[h+1]?null:s[h+1].g,n,s,i,h):i>h&&T(t,r,f)})(n,s,t,l):null!==l?(null!==e.i&&(n.textContent=""),P(n,null,t,l,0,l.length-1)):null!==s&&T(s,0,s.length-1),i&&"svg"===o&&(i=!1)):(c=n["s-cr"])?c.parentNode.textContent=r:e.i!==r&&(n.data=r)},W=e=>{const t=e.childNodes;let n,s,l,o,r,i;for(s=0,l=t.length;s<l;s++)if(n=t[s],1===n.nodeType){if(n["s-sr"])for(r=n["s-sn"],n.hidden=!1,o=0;o<l;o++)if(i=t[o].nodeType,t[o]["s-hn"]!==n["s-hn"]||""!==r){if(1===i&&r===t[o].getAttribute("slot")){n.hidden=!0;break}}else if(1===i||3===i&&""!==t[o].textContent.trim()){n.hidden=!0;break}W(n)}},A=[],H=e=>{let t,n,l,o,r,i,c=0;const a=e.childNodes,f=a.length;for(;c<f;c++){if(t=a[c],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(l=n.parentNode.childNodes,o=t["s-sn"],i=l.length-1;i>=0;i--)n=l[i],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(U(n,o)?(r=A.find((e=>e.v===n)),s=!0,n["s-sn"]=n["s-sn"]||o,r?r.k=t:A.push({k:t,v:n}),n["s-sr"]&&A.map((e=>{U(e.v,n["s-sn"])&&(r=A.find((e=>e.v===n)),r&&!e.k&&(e.k=r.k))}))):A.some((e=>e.v===n))||A.push({v:n}));1===t.nodeType&&H(t)}},U=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,q=e=>{e.u&&e.u.ref&&e.u.ref(null),e.$&&e.$.map(q)},D=(e,t)=>{t&&!e.j&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.j=t)))},V=(e,t)=>{if(!(4&e.t))return D(e,e.S),_(e,t);e.t|=512},_=(e,t)=>{const n=e.O;let s;return t&&(s=J(n,"componentWillLoad")),K(s,(()=>z(e,n,t)))},z=async(e,t,n)=>{const s=e.M,l=s["s-rc"];n&&(e=>{const t=e.C,n=e.M,s=t.t,l=((e,t,n)=>{let s=d(t,n);const l=ce.get(s);if(e=11===e.nodeType?e:c,l)if("string"==typeof l){let t,n=h.get(e=e.head||e);n||h.set(e,n=new Set),n.has(s)||(t=c.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),n&&n.add(s))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return s})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.R);10&s&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e),B(e,t),l&&(l.map((e=>e())),s["s-rc"]=void 0);{const t=s["s-p"],n=()=>G(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},B=(r,i)=>{try{i=i.render(),r.t|=2,((r,i)=>{const a=r.M,u=r.C,d=r.P||w(null,null),h=(e=>e&&e.m===g)(i)?i:m(null,null,i);if(n=a.tagName,u.T&&(h.u=h.u||{},u.T.map((([e,t])=>h.u[t]=a[e]))),h.m=null,h.t|=4,r.P=h,h.g=d.g=a.shadowRoot||a,e=a["s-sc"],t=a["s-cr"],l=0!=(1&u.t),s=!1,L(d,h),f.t|=1,o){let e,t,n,s,l,o;H(h.g);let r=0;for(;r<A.length;r++)e=A[r],t=e.v,t["s-ol"]||(n=c.createTextNode(""),n["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t));for(r=0;r<A.length;r++)if(e=A[r],t=e.v,e.k){for(s=e.k.parentNode,l=e.k.nextSibling,n=t["s-ol"];n=n.previousSibling;)if(o=n["s-nr"],o&&o["s-sn"]===t["s-sn"]&&s===o.parentNode&&(o=o.nextSibling,!o||!o["s-nr"])){l=o;break}(!l&&s!==t.parentNode||t.nextSibling!==l)&&t!==l&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),s.insertBefore(t,l))}else 1===t.nodeType&&(t.hidden=!0)}s&&W(h.g),f.t&=-2,A.length=0})(r,i)}catch(e){oe(e,r.M)}return null},G=e=>{const t=e.M,n=e.S;J(e.O,"componentDidRender"),64&e.t||(e.t|=64,Q(t),e.N(t),n||I()),e.F(t),e.j&&(e.j(),e.j=void 0),512&e.t&&ue((()=>V(e,!1))),e.t&=-517},I=()=>{Q(c.documentElement),ue((()=>(e=>{const t=f.ce("appload",{detail:{namespace:"kolibri"}});return e.dispatchEvent(t),t})(r)))},J=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){oe(e)}},K=(e,t)=>e&&e.then?e.then(t):t(),Q=e=>e.classList.add("hydrated"),X=(e,t,n)=>{if(t.L){e.watchers&&(t.W=e.watchers);const s=Object.entries(t.L),l=e.prototype;if(s.map((([e,[s]])=>{31&s||2&n&&32&s?Object.defineProperty(l,e,{get(){return((e,t)=>te(this).A.get(t))(0,e)},set(n){((e,t,n,s)=>{const l=te(this),o=l.M,r=l.A.get(t),i=l.t,c=l.O;if(n=((e,t)=>null==e||b(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,s.L[t][0]),(!(8&i)||void 0===r)&&n!==r&&(!Number.isNaN(r)||!Number.isNaN(n))&&(l.A.set(t,n),c)){if(s.W&&128&i){const e=s.W[t];e&&e.map((e=>{try{c[e](n,r,t)}catch(e){oe(e,o)}}))}2==(18&i)&&V(l,!1)}})(0,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&s&&Object.defineProperty(l,e,{value(...t){const n=te(this);return n.H.then((()=>n.O[e](...t)))}})})),1&n){const n=new Map;l.attributeChangedCallback=function(e,t,s){f.jmp((()=>{const t=n.get(e);if(this.hasOwnProperty(t))s=this[t],delete this[t];else if(l.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==s)return;this[t]=(null!==s||"boolean"!=typeof this[t])&&s}))},e.observedAttributes=s.filter((([e,t])=>15&t[0])).map((([e,s])=>{const l=s[1]||e;return n.set(l,e),512&s[0]&&t.T.push([e,l]),l}))}}return e},Y=(e,t={})=>{const n=[],s=t.exclude||[],l=r.customElements,o=c.head,i=o.querySelector("meta[charset]"),u=c.createElement("style"),h=[];let p,m=!0;Object.assign(f,t),f.l=new URL(t.resourcesUrl||"./",c.baseURI).href,e.map((e=>{e[1].map((t=>{const o={t:t[0],o:t[1],L:t[2],U:t[3]};o.L=t[2],o.T=[],o.W={};const r=o.o,i=class extends HTMLElement{constructor(e){super(e),le(e=this,o),1&o.t&&e.attachShadow({mode:"open"})}connectedCallback(){p&&(clearTimeout(p),p=null),m?h.push(this):f.jmp((()=>(e=>{if(0==(1&f.t)){const t=te(e),n=t.C,s=()=>{};if(!(1&t.t)){t.t|=1,12&n.t&&(e=>{const t=e["s-cr"]=c.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){D(t,t.S=n);break}}n.L&&Object.entries(n.L).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,s,l)=>{if(0==(32&t.t)){{if(t.t|=32,(l=re(n)).then){const e=()=>{};l=await l,e()}l.isProxied||(n.W=l.watchers,X(l,n,2),l.isProxied=!0);const s=()=>{};t.t|=8;try{new l(t)}catch(e){oe(e)}t.t&=-9,t.t|=128,s()}if(l.style){let s=l.style;"string"!=typeof s&&(s=s[t.R=(e=>fe.map((t=>t(e))).find((e=>!!e)))(e)]);const o=d(n,t.R);if(!ce.has(o)){const e=()=>{};((e,t,n)=>{let s=ce.get(e);a&&n?(s=s||new CSSStyleSheet,"string"==typeof s?s=t:s.replaceSync(t)):s=t,ce.set(e,s)})(o,s,!!(1&n.t)),e()}}}const o=t.S,r=()=>V(t,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(e,t,n)}s()}})(this)))}disconnectedCallback(){f.jmp((()=>(()=>{0==(1&f.t)&&J(te(this).O,"disconnectedCallback")})()))}componentOnReady(){return te(this).q}};o.D=e[0],s.includes(r)||l.get(r)||(n.push(r),l.define(r,X(i,o,1)))}))})),u.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles",""),o.insertBefore(u,i?i.nextSibling:o.firstChild),m=!1,h.length?h.map((e=>e.connectedCallback())):f.jmp((()=>p=setTimeout(I,30)))},Z=(e,t)=>t,ee=new WeakMap,te=e=>ee.get(e),ne=(e,t)=>ee.set(t.O=e,t),le=(e,t)=>{const n={t:0,M:e,C:t,A:new Map};return n.H=new Promise((e=>n.F=e)),n.q=new Promise((e=>n.N=e)),e["s-p"]=[],e["s-rc"]=[],ee.set(e,n)},se=(e,t)=>t in e,oe=(e,t)=>(0,console.error)(e,t),ie=new Map,re=e=>{const t=e.o.replace(/-/g,"_"),n=e.D,s=ie.get(n);return s?s[t]:import(`./${n}.entry.js`).then((e=>(ie.set(n,e),e[t])),oe)
|
|
5
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},ce=new Map,fe=[],ue=e=>u().then(e);export{Z as F,g as H,Y as b,m as h,u as p,ne as r,y as s};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - the accessible web component library
|
|
3
|
-
*/
|
|
4
|
-
import{u as o}from"./a11y.tipps-1f6fb00f.js";import{c as s}from"./prop.validators-6dd43868.js";const t=(t,p,a)=>{s(p,"_links",(t=>"object"==typeof t&&"string"==typeof t._label),a),o(t,p.state._links.length)};export{t as w};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - the accessible web component library
|
|
3
|
-
*/
|
|
4
|
-
import{c as a}from"./a11y.tipps-1f6fb00f.js";import{a as e}from"./prop.validators-6dd43868.js";const r=(e,t,r,s)=>{const i=t.has("_ariaLabel")?t.get("_ariaLabel"):r.state._ariaLabel;if("string"==typeof i&&i.length>0){const e=t.has("_label")?t.get("_label"):r.state._label;!1===new RegExp(`^${e}`).test(i)&&("_ariaLabel"===s?(t.set("_label",i),r._label=i):(t.set("_ariaLabel",e),r._ariaLabel=e),a("Das abweichende Aria-Label am Schalter ist nicht barrierefrei. Ein abweichendes Aria-Label muss aus Barrierefreiheitsgründen für die Sprachsteuerung mit dem Label-Text beginnen."))}},t=(a,t,r)=>{e(a,t,(a=>"button"===a||"reset"===a||"submit"===a),new Set(["KoliBriButtonType {button, reset, submit}"]),r)},i=(a,t,r)=>{e(a,t,(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"})};export{t as a,r as s,i as w};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - the accessible web component library
|
|
3
|
-
*/
|
|
4
|
-
var e,t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(function(e){var o,n;o=t,n=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 i(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 s(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function r(n){return"debug"===n&&(n="log"),typeof console!==t&&("trace"===n&&o?s:void 0!==console[n]?i(console,n):void 0!==console.log?i(console,"log"):e)}function l(t,o){for(var i=0;i<n.length;i++){var s=n[i];this[s]=i<t?e:this.methodFactory(s,t,o)}this.log=this.debug}function a(e,o,n){return function(){typeof console!==t&&(l.call(this,o,n),this[e].apply(this,arguments))}}function c(e,t,o){return r(e)||a.apply(this,arguments)}function d(e,o,i){var s,r=this;o=null==o?"WARN":o;var a="loglevel";function d(){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===r.levels[e]&&(e=void 0),e}}"string"==typeof e?a+=":"+e:"symbol"==typeof e&&(a=void 0),r.name=e,r.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},r.methodFactory=i||c,r.getLevel=function(){return s},r.setLevel=function(o,i){if("string"==typeof o&&void 0!==r.levels[o.toUpperCase()]&&(o=r.levels[o.toUpperCase()]),!("number"==typeof o&&o>=0&&o<=r.levels.SILENT))throw"log.setLevel() called with invalid level: "+o;if(s=o,!1!==i&&function(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){}}}(o),l.call(r,o,e),typeof console===t&&o<r.levels.SILENT)return"No console available for logging"},r.setDefaultLevel=function(e){o=e,d()||r.setLevel(e,!1)},r.resetLevel=function(){r.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){}}}()},r.enableAll=function(e){r.setLevel(r.levels.TRACE,e)},r.disableAll=function(e){r.setLevel(r.levels.SILENT,e)};var u=d();null==u&&(u=o),r.setLevel(u,!1)}var u=new d,h={};u.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=h[e];return t||(t=h[e]=new d(e,u.getLevel(),u.methodFactory)),t};var f=typeof window!==t?window.log:void 0;return u.noConflict=function(){return typeof window!==t&&window.log===u&&(window.log=f),u},u.getLoggers=function(){return h},u.default=u,u},e.exports?e.exports=n():o.log=n()}(e={path:void 0,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}}),e.exports);class o{constructor(){this.services=new Map,this.lazyLoaders=new Set}register(e,t,o={lazy:!1}){if("string"==typeof e&&!1===this.services.has(e))return this.services.set(e,t),!0===(null==o?void 0:o.lazy)&&this.lazyLoaders.add(e),this;throw new Error(`The service '${e}' is allready registered!`)}get(e){if(this.lazyLoaders.has(e)&&(this.services.set(e,this.services.get(e)()),this.lazyLoaders.delete(e)),"string"==typeof e&&!0===this.services.has(e))return this.services.get(e);throw new Error(`The service '${e}' is not registered!`)}}const i=new o,s=[];class r{constructor(e,t={}){this.shield=[`%c${e}`,"string"==typeof t.shieldStyle&&t.shieldStyle.length>0?t.shieldStyle:"color: white; background: #666; font-weight: bold; font-size: 10px; padding: 2px 6px; border-radius: 3px; border: 1px solid #000"]}static getInstance(e,t={}){if("string"==typeof e&&e.length>0)return!1===r.instances.has(e)&&r.instances.set(e,new r(e)),r.instances.get(e);throw new Error("The identifier of the Logger must be a string with a min length of 1.")}log(e,t){switch("object"==typeof t.refObject&&null!==t.refObject&&"function"==typeof t.refObject.constructor&&"string"==typeof t.refObject.constructor.name&&(t.className=`[${t.refObject.constructor.name}]:`),s.push({date:(new Date).toUTCString(),level:e,message:t}),e){case"trace":n.trace(...this.shield,t);break;case"debug":n.debug(...this.shield,t);break;case"info":n.info(...this.shield,t);break;case"warn":n.warn(...this.shield,t);break;default:n.error(...this.shield,t)}}trace(e,t){return this.log("trace",{messageText:e,refObject:t}),this}debug(e,t){return this.log("debug",{messageText:e,refObject:t}),this}info(e,t){return this.log("info",{messageText:e,refObject:t}),this}warn(e,t){return this.log("warn",{messageText:e,refObject:t}),this}error(e,t){return this.log("error",{messageText:e,refObject:t}),this}static get cache(){return[].concat(s)}}r.instances=new Map,n.setDefaultLevel("error");const l=r.getInstance("leanup");class c{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)&&(this.lockedElements.set(e,"string"==typeof t?{tabIndex:t}:{}),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"})),w().body.style.maxHeight="100vh",w().body.style.overflow="hidden",this.lockFocus(w().body,t)}else w().body.style.maxHeight="unset",w().body.style.overflow="unset"}openModal(e,t){e instanceof HTMLElement==0?m.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==0)m.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)}}}class a{constructor(e){this.document=e,this.queue=new Set,this.isOpen=!1,this.toastElement=this.document.createElement("kol-toast"),this.toastElement.setAttribute("_level","3"),this.toastElement.setAttribute("_show","false"),this.toastElement.setAttribute("_show-duration","-1"),this.toastElement.setAttribute("_has-closer","true"),this.toastElement._on={onClose:()=>{const e=this.queue.values().next();e.value?(this.queue.delete(e.value),setTimeout((()=>{this.showToast(e.value)}),200)):this.isOpen=!1}},this.document.body.insertBefore(this.toastElement,this.document.body.firstChild)}enqueue(e){this.isOpen?this.queue.add(e):this.showToast(e)}showToast(e){this.toastElement.setAttribute("_heading",e.heading),this.toastElement.setAttribute("_show","true"),this.toastElement.setAttribute("_type",e.type),this.toastElement.innerText=e.description,this.isOpen=!0}}let u=null,h=null;const d=e=>{e instanceof Window?(u=e,u.document instanceof Document?h=e.document:console.warn("The given Window has no valid Document.")):console.warn("The given Window is not valid.")},f=()=>u||"undefined"==typeof window?null:window,w=()=>h||void 0===f().document?null:f().document;let g=null,p=null,v=null;const y=()=>!0===p,b=()=>!0===v;class m{static mapToArray(e){return Array.isArray(e)?e:[e]}static handleClassifier(e){return"string"==typeof e&&e.length>0?`${m.shield.label} | ${e}`:m.shield.label}static getShield(e){return[m.handleClassifier(null==e?void 0:e.classifier),`${m.shield.style};${(null==e?void 0:e.overwriteStyle)||""}`]}static debug(e,t){(p||!0===(null==t?void 0:t.forceLog))&&console.log(...m.getShield(t),...m.mapToArray(e))}static info(e,t){(p||!0===(null==t?void 0:t.forceLog))&&console.info(...m.getShield(t),...m.mapToArray(e))}static trace(e,t){(p||!0===(null==t?void 0:t.forceLog))&&console.trace(...m.getShield(t),...m.mapToArray(e))}static warn(e,t){(p||!0===(null==t?void 0:t.forceLog))&&console.warn(...m.getShield(t),...m.mapToArray(e))}static error(e,t){(p||!0===(null==t?void 0:t.forceLog))&&console.error(...m.getShield(t),...m.mapToArray(e))}static throw(e,t){if(p||!0===(null==t?void 0:t.forceLog))throw new Error(...m.getShield(t),...m.mapToArray(e))}}m.shield={label:"%cKoliBri",style:"color: white; background: #666; font-weight: bold; padding: .25em .5em; border-radius: 3px; border: 1px solid #000"};let T=null;const E=()=>T||{},M=()=>{null===T?(T=f().KoliBri||{},i.register("Modal",new c),i.register("Toaster",new a(w())),Object.defineProperty(T,"DI",{get:function(){return i}}),Object.defineProperty(T,"Modal",{get:function(){return i.get("Modal")}}),Object.defineProperty(T,"Toaster",{get:function(){return i.get("Toaster")}}),(()=>{if(null===p&&null===v){const e=w().querySelector('meta[name="kolibri"]');e&&e.hasAttribute("content")&&(g=e.getAttribute("content"),"string"==typeof g&&(p=g.includes("dev-mode=true"),v=g.includes("color-contrast-analysis=true")))}else console.warn("You can only initialize DEV_MODE and COLOR_CONTRAST_ANALYSIS once.")})()):console.warn("You can only initialize KoliBri once.")},x=()=>{void 0===f().KoliBri&&Object.defineProperty(window,"KoliBri",{get:function(){return T}}),!0!==E().adviceShown&&(Object.defineProperty(T,"adviceShown",{get:function(){return!0}}),m.debug("\n\nSie verwenden die KoliBri-Komponenten-Bibliothek. Sollten Sie Verbesserungsvorschläge haben oder ein Problem feststellen, dann wenden Sie sich gerne an kolibri@itzbund.de.\n\nHinweise:\n- WAI Web Accessibility Tutorials (https://www.w3.org/WAI/tutorials/)\n- The first rule of ARIA is “Don't use ARIA” (https://cccaccessibility.org/web-1/web-developer-tutorials/how-not-to-use-aria)\n- BIK BITV-Test (https://www.bitvtest.de/bitv_test.html)\n- A11y-Checkliste (https://www.a11yproject.com/checklist/)\n- BSI CON.10: Entwicklung von Webanwendungen (Edition 2021)\n\n"))};let I=()=>Math.floor(16777215*Math.random()).toString(16);export{o as I,T as K,m as L,a as T,f as a,l as b,d as c,E as d,y as e,b as f,w as g,M as i,n as l,I as n,x as r};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - the accessible web component library
|
|
3
|
-
*/
|
|
4
|
-
let e,t,n,l=!1,s=!1,o=!1,i=!1;const r="undefined"!=typeof window?window:{},c=r.document||{head:{}},f={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,s)=>e.addEventListener(t,n,s),rel:(e,t,n,s)=>e.removeEventListener(t,n,s),ce:(e,t)=>new CustomEvent(e,t)},u=e=>Promise.resolve(e),a=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),$="http://www.w3.org/1999/xlink",h=new WeakMap,d=(e,t)=>"sc-"+(t&&32&e.t?e.o+"-"+t:e.o),y=e=>fe.push(e),p={},b=e=>"object"==(e=typeof e)||"function"===e,m=(e,t,...n)=>{let s=null,l=null,o=null,r=!1,i=!1;const c=[],a=t=>{for(let n=0;n<t.length;n++)s=t[n],Array.isArray(s)?a(s):null!=s&&"boolean"!=typeof s&&((r="function"!=typeof e&&!b(s))&&(s+=""),r&&i?c[c.length-1].i+=s:c.push(r?w(null,s):s),i=r)};if(a(n),t){t.key&&(l=t.key),t.name&&(o=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,c,v);const f=w(e,null);return f.u=t,c.length>0&&(f.$=c),f.h=l,f.p=o,f},w=(e,t)=>({t:0,m:e,i:t,g:null,$:null,u:null,h:null,p:null}),g={},v={forEach:(e,t)=>e.map(k).forEach(t),map:(e,t)=>e.map(k).map(t).map(j)},k=e=>({vattrs:e.u,vchildren:e.$,vkey:e.h,vname:e.p,vtag:e.m,vtext:e.i}),j=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),m(e.vtag,t,...e.vchildren||[])}const t=w(e.vtag,e.vtext);return t.u=e.vattrs,t.$=e.vchildren,t.h=e.vkey,t.p=e.vname,t},S=(e,t,n,s,l,o)=>{if(n!==s){let i=se(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,l=M(n),o=M(s);t.remove(...l.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!l.includes(e))))}else if("style"===t){for(const t in n)s&&null!=s[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in s)n&&s[t]===n[t]||(t.includes("-")?e.style.setProperty(t,s[t]):e.style[t]=s[t])}else if("key"===t);else if("ref"===t)s&&s(e);else if(i||"o"!==t[0]||"n"!==t[1]){const r=b(s);if((i||r&&null!==s)&&!l)try{if(e.tagName.includes("-"))e[t]=s;else{const l=null==s?"":s;"list"===t?i=!1:null!=n&&e[t]==l||(e[t]=l)}}catch(e){}let a=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(t=c,a=!0),null==s||!1===s?!1===s&&""!==e.getAttribute(t)||(a?e.removeAttributeNS($,t):e.removeAttribute(t)):(!i||4&o||l)&&!r&&(s=!0===s?"":s,a?e.setAttributeNS($,t,s):e.setAttribute(t,s))}else t="-"===t[2]?t.slice(3):se(r,c)?c.slice(2):c[2]+t.slice(3),n&&f.rel(e,t,n,!1),s&&f.ael(e,t,s,!1)}},O=/\s/,M=e=>e?e.split(O):[],x=(e,t,n,s)=>{const l=11===t.g.nodeType&&t.g.host?t.g.host:t.g,o=e&&e.u||p,r=t.u||p;for(s in o)s in r||S(l,s,o[s],void 0,n,t.t);for(s in r)S(l,s,o[s],r[s],n,t.t)},C=(s,r,a,f)=>{const u=r.$[a];let d,h,p,m=0;if(l||(o=!0,"slot"===u.m&&(e&&f.classList.add(e+"-s"),u.t|=u.$?2:1)),null!==u.i)d=u.g=c.createTextNode(u.i);else if(1&u.t)d=u.g=c.createTextNode("");else{if(i||(i="svg"===u.m),d=u.g=c.createElementNS(i?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&u.t?"slot-fb":u.m),i&&"foreignObject"===u.m&&(i=!1),x(null,u,i),null!=e&&d["s-si"]!==e&&d.classList.add(d["s-si"]=e),u.$)for(m=0;m<u.$.length;++m)h=C(s,u,m,d),h&&d.appendChild(h);"svg"===u.m?i=!1:"foreignObject"===d.tagName&&(i=!0)}return d["s-hn"]=n,3&u.t&&(d["s-sr"]=!0,d["s-cr"]=t,d["s-sn"]=u.p||"",p=s&&s.$&&s.$[a],p&&p.m===u.m&&s.g&&R(s.g,!1)),d},R=(e,t)=>{f.t|=1;const s=e.childNodes;for(let e=s.length-1;e>=0;e--){const l=s[e];l["s-hn"]!==n&&l["s-ol"]&&(F(l).insertBefore(l,N(l)),l["s-ol"].remove(),l["s-ol"]=void 0,o=!0),t&&R(l,t)}f.t&=-2},P=(e,t,s,l,o,r)=>{let i,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===n&&(c=c.shadowRoot);o<=r;++o)l[o]&&(i=C(null,s,o,e),i&&(l[o].g=i,c.insertBefore(i,N(t))))},T=(e,t,n,l,o)=>{for(;t<=n;++t)(l=e[t])&&(o=l.g,q(l),s=!0,o["s-ol"]?o["s-ol"].remove():R(o,!0),o.remove())},E=(e,t)=>e.m===t.m&&("slot"===e.m?e.p===t.p:e.h===t.h),N=e=>e&&e["s-ol"]||e,F=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,L=(e,t)=>{const n=t.g=e.g,s=e.$,l=t.$,o=t.m,r=t.i;let c;null===r?(i="svg"===o||"foreignObject"!==o&&i,"slot"===o||x(e,t,i),null!==s&&null!==l?((e,t,n,s)=>{let l,o,r=0,i=0,c=0,a=0,f=t.length-1,u=t[0],d=t[f],h=s.length-1,p=s[0],m=s[h];for(;r<=f&&i<=h;)if(null==u)u=t[++r];else if(null==d)d=t[--f];else if(null==p)p=s[++i];else if(null==m)m=s[--h];else if(E(u,p))L(u,p),u=t[++r],p=s[++i];else if(E(d,m))L(d,m),d=t[--f],m=s[--h];else if(E(u,m))"slot"!==u.m&&"slot"!==m.m||R(u.g.parentNode,!1),L(u,m),e.insertBefore(u.g,d.g.nextSibling),u=t[++r],m=s[--h];else if(E(d,p))"slot"!==u.m&&"slot"!==m.m||R(d.g.parentNode,!1),L(d,p),e.insertBefore(d.g,u.g),d=t[--f],p=s[++i];else{for(c=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].h&&t[a].h===p.h){c=a;break}c>=0?(o=t[c],o.m!==p.m?l=C(t&&t[i],n,c,e):(L(o,p),t[c]=void 0,l=o.g),p=s[++i]):(l=C(t&&t[i],n,i,e),p=s[++i]),l&&F(u.g).insertBefore(l,N(u.g))}r>f?P(e,null==s[h+1]?null:s[h+1].g,n,s,i,h):i>h&&T(t,r,f)})(n,s,t,l):null!==l?(null!==e.i&&(n.textContent=""),P(n,null,t,l,0,l.length-1)):null!==s&&T(s,0,s.length-1),i&&"svg"===o&&(i=!1)):(c=n["s-cr"])?c.parentNode.textContent=r:e.i!==r&&(n.data=r)},W=e=>{const t=e.childNodes;let n,s,l,o,r,i;for(s=0,l=t.length;s<l;s++)if(n=t[s],1===n.nodeType){if(n["s-sr"])for(r=n["s-sn"],n.hidden=!1,o=0;o<l;o++)if(i=t[o].nodeType,t[o]["s-hn"]!==n["s-hn"]||""!==r){if(1===i&&r===t[o].getAttribute("slot")){n.hidden=!0;break}}else if(1===i||3===i&&""!==t[o].textContent.trim()){n.hidden=!0;break}W(n)}},A=[],H=e=>{let t,n,l,o,r,i,c=0;const a=e.childNodes,f=a.length;for(;c<f;c++){if(t=a[c],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(l=n.parentNode.childNodes,o=t["s-sn"],i=l.length-1;i>=0;i--)n=l[i],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(U(n,o)?(r=A.find((e=>e.v===n)),s=!0,n["s-sn"]=n["s-sn"]||o,r?r.k=t:A.push({k:t,v:n}),n["s-sr"]&&A.map((e=>{U(e.v,n["s-sn"])&&(r=A.find((e=>e.v===n)),r&&!e.k&&(e.k=r.k))}))):A.some((e=>e.v===n))||A.push({v:n}));1===t.nodeType&&H(t)}},U=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,q=e=>{e.u&&e.u.ref&&e.u.ref(null),e.$&&e.$.map(q)},D=(e,t)=>{t&&!e.j&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.j=t)))},V=(e,t)=>{if(!(4&e.t))return D(e,e.S),_(e,t);e.t|=512},_=(e,t)=>{const n=e.O;let s;return t&&(s=J(n,"componentWillLoad")),K(s,(()=>z(e,n,t)))},z=async(e,t,n)=>{const s=e.M,l=s["s-rc"];n&&(e=>{const t=e.C,n=e.M,s=t.t,l=((e,t,n)=>{let s=d(t,n);const l=ce.get(s);if(e=11===e.nodeType?e:c,l)if("string"==typeof l){let t,n=h.get(e=e.head||e);n||h.set(e,n=new Set),n.has(s)||(t=c.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),n&&n.add(s))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return s})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.R);10&s&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e),B(e,t),l&&(l.map((e=>e())),s["s-rc"]=void 0);{const t=s["s-p"],n=()=>G(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},B=(r,i)=>{try{i=i.render(),r.t|=2,((r,i)=>{const a=r.M,u=r.C,d=r.P||w(null,null),h=(e=>e&&e.m===g)(i)?i:m(null,null,i);if(n=a.tagName,u.T&&(h.u=h.u||{},u.T.map((([e,t])=>h.u[t]=a[e]))),h.m=null,h.t|=4,r.P=h,h.g=d.g=a.shadowRoot||a,e=a["s-sc"],t=a["s-cr"],l=0!=(1&u.t),s=!1,L(d,h),f.t|=1,o){let e,t,n,s,l,o;H(h.g);let r=0;for(;r<A.length;r++)e=A[r],t=e.v,t["s-ol"]||(n=c.createTextNode(""),n["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t));for(r=0;r<A.length;r++)if(e=A[r],t=e.v,e.k){for(s=e.k.parentNode,l=e.k.nextSibling,n=t["s-ol"];n=n.previousSibling;)if(o=n["s-nr"],o&&o["s-sn"]===t["s-sn"]&&s===o.parentNode&&(o=o.nextSibling,!o||!o["s-nr"])){l=o;break}(!l&&s!==t.parentNode||t.nextSibling!==l)&&t!==l&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),s.insertBefore(t,l))}else 1===t.nodeType&&(t.hidden=!0)}s&&W(h.g),f.t&=-2,A.length=0})(r,i)}catch(e){oe(e,r.M)}return null},G=e=>{const t=e.M,n=e.S;J(e.O,"componentDidRender"),64&e.t||(e.t|=64,Q(t),e.N(t),n||I()),e.F(t),e.j&&(e.j(),e.j=void 0),512&e.t&&ue((()=>V(e,!1))),e.t&=-517},I=()=>{Q(c.documentElement),ue((()=>(e=>{const t=f.ce("appload",{detail:{namespace:"kolibri"}});return e.dispatchEvent(t),t})(r)))},J=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){oe(e)}},K=(e,t)=>e&&e.then?e.then(t):t(),Q=e=>e.classList.add("hydrated"),X=(e,t,n)=>{if(t.L){e.watchers&&(t.W=e.watchers);const s=Object.entries(t.L),l=e.prototype;if(s.map((([e,[s]])=>{31&s||2&n&&32&s?Object.defineProperty(l,e,{get(){return((e,t)=>te(this).A.get(t))(0,e)},set(n){((e,t,n,s)=>{const l=te(this),o=l.M,r=l.A.get(t),i=l.t,c=l.O;if(n=((e,t)=>null==e||b(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,s.L[t][0]),(!(8&i)||void 0===r)&&n!==r&&(!Number.isNaN(r)||!Number.isNaN(n))&&(l.A.set(t,n),c)){if(s.W&&128&i){const e=s.W[t];e&&e.map((e=>{try{c[e](n,r,t)}catch(e){oe(e,o)}}))}2==(18&i)&&V(l,!1)}})(0,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&s&&Object.defineProperty(l,e,{value(...t){const n=te(this);return n.H.then((()=>n.O[e](...t)))}})})),1&n){const n=new Map;l.attributeChangedCallback=function(e,t,s){f.jmp((()=>{const t=n.get(e);if(this.hasOwnProperty(t))s=this[t],delete this[t];else if(l.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==s)return;this[t]=(null!==s||"boolean"!=typeof this[t])&&s}))},e.observedAttributes=s.filter((([e,t])=>15&t[0])).map((([e,s])=>{const l=s[1]||e;return n.set(l,e),512&s[0]&&t.T.push([e,l]),l}))}}return e},Y=(e,t={})=>{const n=[],s=t.exclude||[],l=r.customElements,o=c.head,i=o.querySelector("meta[charset]"),u=c.createElement("style"),h=[];let p,m=!0;Object.assign(f,t),f.l=new URL(t.resourcesUrl||"./",c.baseURI).href,e.map((e=>{e[1].map((t=>{const o={t:t[0],o:t[1],L:t[2],U:t[3]};o.L=t[2],o.T=[],o.W={};const r=o.o,i=class extends HTMLElement{constructor(e){super(e),le(e=this,o),1&o.t&&e.attachShadow({mode:"open"})}connectedCallback(){p&&(clearTimeout(p),p=null),m?h.push(this):f.jmp((()=>(e=>{if(0==(1&f.t)){const t=te(e),n=t.C,s=()=>{};if(!(1&t.t)){t.t|=1,12&n.t&&(e=>{const t=e["s-cr"]=c.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){D(t,t.S=n);break}}n.L&&Object.entries(n.L).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,s,l)=>{if(0==(32&t.t)){{if(t.t|=32,(l=re(n)).then){const e=()=>{};l=await l,e()}l.isProxied||(n.W=l.watchers,X(l,n,2),l.isProxied=!0);const s=()=>{};t.t|=8;try{new l(t)}catch(e){oe(e)}t.t&=-9,t.t|=128,s()}if(l.style){let s=l.style;"string"!=typeof s&&(s=s[t.R=(e=>fe.map((t=>t(e))).find((e=>!!e)))(e)]);const o=d(n,t.R);if(!ce.has(o)){const e=()=>{};((e,t,n)=>{let s=ce.get(e);a&&n?(s=s||new CSSStyleSheet,"string"==typeof s?s=t:s.replaceSync(t)):s=t,ce.set(e,s)})(o,s,!!(1&n.t)),e()}}}const o=t.S,r=()=>V(t,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(e,t,n)}s()}})(this)))}disconnectedCallback(){f.jmp((()=>(()=>{0==(1&f.t)&&J(te(this).O,"disconnectedCallback")})()))}componentOnReady(){return te(this).q}};o.D=e[0],s.includes(r)||l.get(r)||(n.push(r),l.define(r,X(i,o,1)))}))})),u.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles",""),o.insertBefore(u,i?i.nextSibling:o.firstChild),m=!1,h.length?h.map((e=>e.connectedCallback())):f.jmp((()=>p=setTimeout(I,30)))},Z=(e,t)=>t,ee=new WeakMap,te=e=>ee.get(e),ne=(e,t)=>ee.set(t.O=e,t),le=(e,t)=>{const n={t:0,M:e,C:t,A:new Map};return n.H=new Promise((e=>n.F=e)),n.q=new Promise((e=>n.N=e)),e["s-p"]=[],e["s-rc"]=[],ee.set(e,n)},se=(e,t)=>t in e,oe=(e,t)=>(0,console.error)(e,t),ie=new Map,re=e=>{const t=e.o.replace(/-/g,"_"),n=e.D,s=ie.get(n);return s?s[t]:import(`./${n}.entry.js`).then((e=>(ie.set(n,e),e[t])),oe)
|
|
5
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},ce=new Map,fe=[],ue=e=>u().then(e);export{Z as F,g as H,Y as b,m as h,u as p,ne as r,y as s};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - the accessible web component library
|
|
3
|
-
*/
|
|
4
|
-
import{u as o}from"./a11y.tipps-1f6fb00f.js";import{c as s}from"./prop.validators-6dd43868.js";const t=(t,p,a)=>{s(p,"_links",(t=>"object"==typeof t&&"string"==typeof t._label),a),o(t,p.state._links.length)};export{t as w};
|