@public-ui/components 1.1.15-rc.3 → 1.1.15-rc.5
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/cheat-sheet.html +35 -18
- package/custom-elements.json +1 -1
- package/dist/cjs/{a11y.tipps-df3024df.js → a11y.tipps-e1770acf.js} +1 -1
- package/dist/cjs/{app-globals-2f5ad72e.js → app-globals-9aac4250.js} +1 -1
- package/dist/cjs/{button-link-a5704422.js → button-link-4ca98f7b.js} +1 -1
- package/dist/cjs/controller-027ab1d6.js +4 -0
- package/dist/cjs/{controller-2055b473.js → controller-879689e3.js} +1 -1
- package/dist/cjs/controller-92b6d53e.js +4 -0
- package/dist/cjs/controller-a505f829.js +4 -0
- package/dist/cjs/controller-abbbf1ab.js +4 -0
- package/dist/cjs/controller-b9bb6fb4.js +4 -0
- package/dist/cjs/dev.utils-2353100d.js +4 -0
- package/dist/cjs/devtools-54a1e233.js +4 -0
- package/dist/cjs/index-59a3234b.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-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-button-group.cjs.entry.js +1 -1
- package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
- package/dist/cjs/kol-button-wc_2.cjs.entry.js +4 -0
- 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-wc_2.cjs.entry.js +4 -0
- 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-date.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-radio-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-button.cjs.entry.js +1 -1
- package/dist/cjs/kol-link-group.cjs.entry.js +1 -1
- package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-link.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-span.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/{label-4175574d.js → label-83eaae1a.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/prop.validators-dd1b78c2.js +4 -0
- package/dist/cjs/{icon-b3c58fc8.js → tab-index-268ecadc.js} +1 -1
- package/dist/cjs/validation-3dc5e5fc.js +4 -0
- package/dist/cjs/{validation-a9dd4aa1.js → validation-9783b057.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/component2.js +1 -1
- package/dist/components/component4.js +1 -1
- package/dist/components/component5.js +1 -1
- package/dist/components/component6.js +1 -1
- package/dist/components/component7.js +1 -1
- package/dist/components/component8.js +1 -1
- package/dist/components/component9.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/kol-abbr.js +1 -1
- package/dist/components/kol-accordion.js +1 -1
- package/dist/components/kol-badge.js +1 -1
- package/dist/components/kol-breadcrumb.js +1 -1
- package/dist/components/kol-button-link.js +1 -1
- package/dist/components/kol-button-wc.js +1 -1
- package/dist/components/kol-card.js +1 -1
- package/dist/components/kol-details.js +1 -1
- package/dist/components/kol-form.js +1 -1
- package/dist/components/kol-heading-wc.js +1 -1
- package/dist/components/kol-heading.js +1 -1
- package/dist/components/kol-icon-font-awesome.js +1 -1
- package/dist/components/kol-icon-icofont.js +1 -1
- package/dist/components/kol-icon.js +1 -1
- package/dist/components/kol-indented-text.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-date.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-radio.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-input.js +1 -1
- package/dist/components/kol-link-button.js +1 -1
- package/dist/components/kol-link-group.js +1 -1
- package/dist/components/kol-link-wc.js +1 -1
- package/dist/components/kol-nav.js +1 -1
- package/dist/components/kol-pagination.js +1 -1
- package/dist/components/kol-select.js +1 -1
- package/dist/components/kol-skip-nav.js +1 -1
- package/dist/components/kol-span-wc.js +1 -1
- package/dist/components/kol-span.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-tooltip.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/esm/{a11y.tipps-7e981511.js → a11y.tipps-d591ee77.js} +1 -1
- package/dist/esm/{app-globals-a1a08446.js → app-globals-297c26f2.js} +1 -1
- package/dist/esm/{button-link-b8b2a2cf.js → button-link-bf343c76.js} +1 -1
- package/dist/esm/controller-3529fb08.js +4 -0
- package/dist/esm/{controller-ce8de601.js → controller-6d82eda5.js} +1 -1
- package/dist/esm/controller-815734bb.js +4 -0
- package/dist/esm/controller-9115270a.js +4 -0
- package/dist/esm/controller-ad99c416.js +4 -0
- package/dist/esm/controller-efa0a120.js +4 -0
- package/dist/esm/dev.utils-daaf2f39.js +4 -0
- package/dist/esm/devtools-15facbbc.js +4 -0
- package/dist/esm/index-a9774259.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-wc.entry.js +1 -1
- package/dist/esm/kol-button-group.entry.js +1 -1
- package/dist/esm/kol-button-link.entry.js +1 -1
- package/dist/esm/kol-button-wc_2.entry.js +4 -0
- 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-wc_2.entry.js +4 -0
- 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-date.entry.js +1 -1
- package/dist/esm/kol-input-email.entry.js +1 -1
- package/dist/esm/kol-input-file.entry.js +1 -1
- package/dist/esm/kol-input-number.entry.js +1 -1
- package/dist/esm/kol-input-password.entry.js +1 -1
- package/dist/esm/kol-input-radio-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-button.entry.js +1 -1
- package/dist/esm/kol-link-group.entry.js +1 -1
- package/dist/esm/kol-link-wc.entry.js +1 -1
- package/dist/esm/kol-link.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-span.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/{label-48702aa0.js → label-bc602bf5.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/prop.validators-4d9cba3b.js +4 -0
- package/dist/esm/tab-index-46edc6be.js +4 -0
- package/dist/esm/validation-0ddfb250.js +4 -0
- package/dist/esm/validation-3124f600.js +4 -0
- package/dist/kolibri/{a11y.tipps-7e981511.js → a11y.tipps-d591ee77.js} +1 -1
- package/dist/kolibri/{app-globals-a1a08446.js → app-globals-297c26f2.js} +1 -1
- package/dist/kolibri/button-link-bf343c76.js +4 -0
- package/dist/kolibri/controller-3529fb08.js +4 -0
- package/dist/kolibri/controller-6d82eda5.js +4 -0
- package/dist/kolibri/controller-815734bb.js +4 -0
- package/dist/kolibri/controller-9115270a.js +4 -0
- package/dist/kolibri/controller-ad99c416.js +4 -0
- package/dist/kolibri/controller-efa0a120.js +4 -0
- package/dist/kolibri/{dev.utils-d28700ca.js → dev.utils-daaf2f39.js} +1 -1
- package/dist/kolibri/devtools-15facbbc.js +4 -0
- package/dist/kolibri/index-a9774259.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-wc.entry.js +1 -1
- package/dist/kolibri/kol-button-group.entry.js +1 -1
- package/dist/kolibri/kol-button-link.entry.js +1 -1
- package/dist/kolibri/kol-button-wc_2.entry.js +4 -0
- 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-wc_2.entry.js +4 -0
- 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-date.entry.js +1 -1
- package/dist/kolibri/kol-input-email.entry.js +1 -1
- package/dist/kolibri/kol-input-file.entry.js +1 -1
- package/dist/kolibri/kol-input-number.entry.js +1 -1
- package/dist/kolibri/kol-input-password.entry.js +1 -1
- package/dist/kolibri/kol-input-radio-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-button.entry.js +1 -1
- package/dist/kolibri/kol-link-group.entry.js +1 -1
- package/dist/kolibri/kol-link-wc.entry.js +1 -1
- package/dist/kolibri/kol-link.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-span.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/{label-48702aa0.js → label-bc602bf5.js} +1 -1
- package/dist/kolibri/prop.validators-4d9cba3b.js +4 -0
- package/dist/kolibri/tab-index-46edc6be.js +4 -0
- package/dist/kolibri/validation-0ddfb250.js +4 -0
- package/dist/kolibri/{validation-ca65ff34.js → validation-3124f600.js} +1 -1
- package/dist/types/components/@deprecated/input/controller.d.ts +1 -1
- package/dist/types/components/badge/component.d.ts +9 -3
- package/dist/types/components/button/component.d.ts +1 -2
- package/dist/types/components/button-link/component.d.ts +1 -2
- package/dist/types/components/input-adapter-leanup/controller.d.ts +5 -1
- package/dist/types/components/input-checkbox/component.d.ts +1 -0
- package/dist/types/components/input-checkbox/controller.d.ts +1 -1
- package/dist/types/components/input-checkbox/types.d.ts +1 -1
- package/dist/types/components/input-color/component.d.ts +1 -0
- package/dist/types/components/input-color/controller.d.ts +1 -1
- package/dist/types/components/input-color/types.d.ts +1 -1
- package/dist/types/components/input-email/component.d.ts +1 -2
- package/dist/types/components/input-email/controller.d.ts +1 -1
- package/dist/types/components/input-email/types.d.ts +1 -1
- package/dist/types/components/input-file/component.d.ts +1 -0
- package/dist/types/components/input-file/controller.d.ts +1 -1
- package/dist/types/components/input-file/types.d.ts +1 -1
- package/dist/types/components/input-number/component.d.ts +1 -2
- package/dist/types/components/input-number/controller.d.ts +1 -1
- package/dist/types/components/input-number/types.d.ts +1 -1
- package/dist/types/components/input-password/component.d.ts +1 -2
- package/dist/types/components/input-password/controller.d.ts +1 -1
- package/dist/types/components/input-password/types.d.ts +1 -1
- package/dist/types/components/input-radio/component.d.ts +1 -0
- package/dist/types/components/input-radio/controller.d.ts +2 -2
- package/dist/types/components/input-radio/types.d.ts +1 -1
- package/dist/types/components/input-range/component.d.ts +1 -0
- package/dist/types/components/input-range/controller.d.ts +1 -1
- package/dist/types/components/input-range/types.d.ts +1 -1
- package/dist/types/components/input-text/component.d.ts +1 -2
- package/dist/types/components/input-text/controller.d.ts +2 -2
- package/dist/types/components/select/component.d.ts +1 -0
- package/dist/types/components/select/controller.d.ts +1 -1
- package/dist/types/components/select/types.d.ts +0 -1
- package/dist/types/components/textarea/component.d.ts +1 -0
- package/dist/types/components/textarea/controller.d.ts +1 -1
- package/dist/types/components/textarea/types.d.ts +1 -1
- package/dist/types/components.d.ts +9 -1
- package/dist/types/utils/dev.utils.d.ts +1 -0
- package/jest-test-results.json +1 -1
- package/package.json +1 -1
- package/dist/cjs/controller-7a669fcf.js +0 -4
- package/dist/cjs/controller-957d7155.js +0 -4
- package/dist/cjs/controller-a39c4cc4.js +0 -4
- package/dist/cjs/controller-a5f27620.js +0 -4
- package/dist/cjs/controller-d456639a.js +0 -4
- package/dist/cjs/dev.utils-a119191e.js +0 -4
- package/dist/cjs/devtools-3ac979bd.js +0 -4
- package/dist/cjs/index-06f1dad8.js +0 -5
- package/dist/cjs/kol-button-wc_3.cjs.entry.js +0 -4
- package/dist/cjs/kol-span-wc.cjs.entry.js +0 -4
- package/dist/cjs/prop.validators-87697c25.js +0 -4
- package/dist/cjs/tab-index-1a067f70.js +0 -4
- package/dist/cjs/validation-0c402ff8.js +0 -4
- package/dist/components/component14.js +0 -4
- package/dist/components/component15.js +0 -4
- package/dist/components/controller5.js +0 -4
- package/dist/components/controller6.js +0 -4
- package/dist/components/tab-index.js +0 -4
- package/dist/esm/controller-07e4ad7a.js +0 -4
- package/dist/esm/controller-2a131d12.js +0 -4
- package/dist/esm/controller-5baf841b.js +0 -4
- package/dist/esm/controller-d1697e9e.js +0 -4
- package/dist/esm/controller-df155f62.js +0 -4
- package/dist/esm/dev.utils-d28700ca.js +0 -4
- package/dist/esm/devtools-267e429f.js +0 -4
- package/dist/esm/icon-1e6842f0.js +0 -4
- package/dist/esm/index-5878bd01.js +0 -5
- package/dist/esm/kol-button-wc_3.entry.js +0 -4
- package/dist/esm/kol-span-wc.entry.js +0 -4
- package/dist/esm/prop.validators-6128c2dd.js +0 -4
- package/dist/esm/tab-index-e911109b.js +0 -4
- package/dist/esm/validation-6efef46a.js +0 -4
- package/dist/esm/validation-ca65ff34.js +0 -4
- package/dist/kolibri/button-link-b8b2a2cf.js +0 -4
- package/dist/kolibri/controller-07e4ad7a.js +0 -4
- package/dist/kolibri/controller-2a131d12.js +0 -4
- package/dist/kolibri/controller-5baf841b.js +0 -4
- package/dist/kolibri/controller-ce8de601.js +0 -4
- package/dist/kolibri/controller-d1697e9e.js +0 -4
- package/dist/kolibri/controller-df155f62.js +0 -4
- package/dist/kolibri/devtools-267e429f.js +0 -4
- package/dist/kolibri/icon-1e6842f0.js +0 -4
- package/dist/kolibri/index-5878bd01.js +0 -5
- package/dist/kolibri/kol-button-wc_3.entry.js +0 -4
- package/dist/kolibri/kol-span-wc.entry.js +0 -4
- package/dist/kolibri/prop.validators-6128c2dd.js +0 -4
- package/dist/kolibri/tab-index-e911109b.js +0 -4
- package/dist/kolibri/validation-6efef46a.js +0 -4
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{d as t}from"./a11y.tipps-7e981511.js";import{a as e,b as i,f as s,w as a}from"./prop.validators-6128c2dd.js";import{I as h}from"./controller-df155f62.js";class o extends h{constructor(e,a){super(e,a),this.handleHiddenLabelAndRequired=()=>{!0===this.component.state._hideLabel&&!0===this.component.state._required?(t("[KolInput*] Wenn man das Label ausblendet, dann kann der sehende Nutzer:in nicht mehr erkennen, ob die Eingabe erforderlich ist."),this.hideLabel=!1):this.hideLabel=!0===this.component.state._hideLabel},this.component=e}validateAutoComplete(t){e(this.component,"_autoComplete",(e=>"string"==typeof e&&("on"===e||"off"===e)),new Set(["on | off"]),t)}validateHideLabel(e){i(this.component,"_hideLabel",e,{hooks:{afterPatch:this.handleHiddenLabelAndRequired}})}validateMaxLength(e){s(this.component,"_maxLength",e,{min:0})}validatePattern(e){a(this.component,"_pattern",e)}validatePlaceholder(e){a(this.component,"_placeholder",e)}validateReadOnly(e){i(this.component,"_readOnly",e)}validateRequired(e){i(this.component,"_required",e,{hooks:{afterPatch:this.handleHiddenLabelAndRequired}})}validateSize(e){s(this.component,"_size",e,{min:1})}validateValue(e){a(this.component,"_value",e)}componentWillLoad(){super.componentWillLoad(),this.validateAutoComplete(this.component._autoComplete),this.validateMaxLength(this.component._maxLength),this.validatePattern(this.component._pattern),this.validatePlaceholder(this.component._placeholder),this.validateReadOnly(this.component._readOnly),this.validateRequired(this.component._required),this.validateSize(this.component._size),this.validateValue(this.component._value)}onBlur(e){this.component.state=Object.assign(Object.assign({},this.component.state),{_placeholder:this.placeholderCache}),this.placeholderCache=void 0,super.onBlur(e)}onFocus(e){this.placeholderCache=this.component.state._placeholder,this.component.state=Object.assign(Object.assign({},this.component.state),{_placeholder:void 0}),super.onFocus(e)}}export{o as I};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{d as e,K as n}from"./prop.validators-6128c2dd.js";const t=(o={})=>{for(;o.form instanceof HTMLElement&&"FORM"!==o.form.tagName&&"KOL-FORM"!==o.form.tagName;)o.form=o.form.parentElement instanceof HTMLElement?o.form.parentElement:o.form.parentNode instanceof ShadowRoot?o.form.parentNode.host:null;if(o.form instanceof HTMLElement){const t=new Event("reset",{bubbles:!0,cancelable:!0});if("FORM"===o.form.tagName)e(t,o.form),o.form.dispatchEvent(t);else if("KOL-FORM"===o.form.tagName){e(t,n.querySelector("form",o.form));const f=o.form;"object"==typeof f._on&&null!==typeof f._on&&"function"==typeof f._on.onReset&&f._on.onReset(t)}}},o=(o={})=>{for(;o.form instanceof HTMLElement&&"FORM"!==o.form.tagName&&"KOL-FORM"!==o.form.tagName;)o.form=o.form.parentElement instanceof HTMLElement?o.form.parentElement:o.form.parentNode instanceof ShadowRoot?o.form.parentNode.host:null;if(o.form instanceof HTMLElement){const t=new SubmitEvent("submit",{bubbles:!0,cancelable:!0,submitter:o.form});if("FORM"===o.form.tagName)e(t,o.form),o.form.dispatchEvent(t);else if("KOL-FORM"===o.form.tagName){e(t,n.querySelector("form",o.form));const f=o.form;"object"==typeof f._on&&null!==typeof f._on&&"function"==typeof f._on.onSubmit&&f._on.onSubmit(t)}}};export{t as a,o as p};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{a as t}from"./prop.validators-6128c2dd.js";const o=(o,r,a)=>{t(o,r,(t=>"button"===t||"reset"===t||"submit"===t),new Set(["KoliBriButtonType {button, reset, submit}"]),a)},r=(o,r,a)=>{t(o,r,(t=>"primary"===t||"secondary"===t||"normal"===t||"danger"===t||"ghost"===t||"custom"===t),new Set(["KoliBriButtonVariant {primary, secondary, normal, danger, ghost, custom}"]),a,{defaultValue:"normal"})};export{r as a,o as w};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{a as t,c as s}from"./prop.validators-6128c2dd.js";import{I as e}from"./controller-2a131d12.js";class r extends e{constructor(t,s){super(t,s),this.component=t}validateList(t){s(this.component,"_list",(t=>"string"==typeof t),t)}componentWillLoad(){super.componentWillLoad(),this.validateList(this.component._list)}}class i extends r{constructor(t,s){super(t,s),this.hasError=!1,this.hasList=!1,this.component=t}validateType(s){t(this.component,"_type",(t=>"string"==typeof t&&("text"===t||"search"===t||"url"===t||"tel"===t)),new Set(["String {text, search, url, tel}"]),s)}componentWillLoad(){super.componentWillLoad(),this.validateType(this.component._type)}}export{r as I,i as a};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{b as t,d as i}from"./a11y.tipps-7e981511.js";import{b as s,w as e,o,p as a,a as n,s as h}from"./prop.validators-6128c2dd.js";import{i as r}from"./validator-fe8c60ef.js";import{i as d}from"./icon-1e6842f0.js";import{v as l}from"./tab-index-e911109b.js";const c=t=>{const n="string"==typeof t._error&&t._error.length>0&&!0===t._touched,o="string"==typeof t._hint&&t._hint.length>0,e=[];return!0===n&&e.push(`${t._id}-error`),!0===o&&e.push(`${t._id}-hint`),{hasError:n,hasHint:o,ariaDiscribedBy:e}},v=(t,n)=>{const o=t;"object"==typeof o&&null!==o&&(r(o.right,1)&&(o.right={icon:o.right}),r(o.left,1)&&(o.left={icon:o.left}),n.set("_icon",o))};class u extends class{constructor(t,n){this.component=t,this.name=n}validateAlert(t){s(this.component,"_alert",t)}validateTouched(t){s(this.component,"_touched",t)}componentWillLoad(){this.validateAlert(this.component._alert),this.validateTouched(this.component._touched)}}{constructor(t,n){super(t,n),this.hideLabel=!1,this.onFacade={onBlur:this.onBlur.bind(this),onChange:this.onChange.bind(this),onClick:this.onClick.bind(this),onFocus:this.onFocus.bind(this)},this.component=t}validateAccessKey(t){e(this.component,"_accessKey",t)}validateAdjustHeight(t){s(this.component,"_adjustHeight",t)}validateDisabled(n){s(this.component,"_disabled",n),!0===n&&t()}validateError(t){e(this.component,"_error",t)}validateHideLabel(t){s(this.component,"_hideLabel",t)}validateHint(t){e(this.component,"_hint",t)}validateIcon(t){o(t,(()=>{try{t=a(t)}catch(t){}n(this.component,"_icon",(t=>"object"==typeof t&&null!==t&&(r(t.left,1)||d(t.left)||r(t.right,1)||d(t.right))),new Set(["KoliBriInputIcon"]),t,{hooks:{beforePatch:v},required:!0})}))}validateId(t){e(this.component,"_id",t),void 0===t&&i("Eine eindeutige ID an den Eingabefeldern ist nicht zwingend erforderlich, könnte aber für die E2E-Tests relevant sein.")}validateName(t){e(this.component,"_name",t),void 0===t&&i("Ein Name an den Eingabefeldern ist nicht zwingend erforderlich, könnte aber für die Autocomplete-Funktion des Eingabefeldes relevant sein.")}validateOn(t){"object"==typeof t&&h(this.component,"_on",t)}validateSmartButton(t){o(t,(()=>{try{t=a(t)}catch(t){}h(this.component,"_smartButton",t)}))}validateTabIndex(t){l(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateAccessKey(this.component._accessKey),this.validateAdjustHeight(this.component._adjustHeight),this.validateError(this.component._error),this.validateDisabled(this.component._disabled),this.validateHideLabel(this.component._hideLabel),this.validateHint(this.component._hint),this.validateIcon(this.component._icon),this.validateId(this.component._id),this.validateName(this.component._name),this.validateSmartButton(this.component._smartButton),this.validateOn(this.component._on),this.validateTabIndex(this.component._tabIndex)}onBlur(t){var n;this.component._alert=!0,this.component._touched=!0,"function"==typeof(null===(n=this.component._on)||void 0===n?void 0:n.onBlur)&&this.component._on.onBlur(t)}onChange(t){var n;"function"==typeof(null===(n=this.component._on)||void 0===n?void 0:n.onChange)&&this.component._on.onChange(t,t.target.value)}onClick(t){var n;"function"==typeof(null===(n=this.component._on)||void 0===n?void 0:n.onClick)&&this.component._on.onClick(t)}onFocus(t){var n;this.component._alert=!0,"function"==typeof(null===(n=this.component._on)||void 0===n?void 0:n.onFocus)&&this.component._on.onFocus(t)}setValue(t,n){var o;"function"==typeof(null===(o=this.component._on)||void 0===o?void 0:o.onChange)&&this.component._on.onChange(t,n)}}export{u as I,c as g};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{i as t,d as o,r as s,g as i,e as r,L as a,K as e}from"./dev.utils-d28700ca.js";import{j as l,l as n,k as d,n as p,q as c,p as L,t as f}from"./prop.validators-6128c2dd.js";import"./index.m-86dc8c44.js";import"./a11y.tipps-7e981511.js";import"./index-d870d3e1.js";function m(t,i){try{Object.defineProperty(e,t,{get:function(){return i}})}catch(i){a.debug(`KoliBri property ${t} is already bind.`)}}const h=()=>{if(t(),o()){s(),m("a11yColorContrast",n),m("querySelector",d),m("querySelectorAll",p),m("querySelectorColors",c),m("utils",(function(){return l})),m("parseJson",L),m("stringifyJson",f);const t=i().body,e=i().createElement("svg");if(e.setAttribute("aria-label","KoliBri-DevTools"),e.setAttribute("xmlns","http://www.w3.org/2000/svg"),e.setAttribute("role","toolbar"),e.setAttribute("style","position: fixed;color: black;font-size: 200%;bottom: 0.25rem;right: 0.25rem;"),e.innerHTML='<svg\n xmlns="http://www.w3.org/2000/svg"\n width="50"\n height="50"\n viewBox="0 0 600 600"\n>\n <path d="M353 322L213 304V434L353 322Z" fill="#047" />\n <path d="M209 564V304L149 434L209 564Z" fill="#047" />\n <path d="M357 316L417 250L361 210L275 244L357 316Z" fill="#047" />\n <path d="M353 318L35 36L213 300L353 318Z" fill="#047" />\n <path d="M329 218L237 92L250 222L272 241L329 218Z" fill="#047" />\n <path d="M391 286L565 272L421 252L391 286Z" fill="#047" />\n</svg>',i().body.appendChild(e),r()){a.debug("Color-Contrast-Analysis activated");const e=setTimeout((()=>{clearTimeout(e),setInterval((()=>{l.queryHtmlElementColors(i().createElement("div"),n(t),!1,!1)}),1e4)}),2500)}else a.debug("Color-Contrast-Analysis not activated")}};export{h as initialize};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{c as o}from"./a11y.tipps-7e981511.js";import{o as i,a as t,p as n}from"./prop.validators-6128c2dd.js";import{i as e,a as l,b as c}from"./validator-fe8c60ef.js";const r=(t,o,i)=>{c(i)?t[o]=i:e(i,1)&&(t[o]={icon:i})},a=t=>{var o,i,n,l,s,a,c;if(null===(o=t.nextState)||void 0===o?void 0:o.has("_icon")){const o=null===(i=t.nextState)||void 0===i?void 0:i.get("_icon"),s=(null===(n=t.nextState)||void 0===n?void 0:n.get("_iconAlign"))||t.state._iconAlign;null===(l=t.nextState)||void 0===l||l.set("_icon",((t,o)=>{let i={};if(e(t,1))if("right"===o)i={right:{icon:t}};else i={left:{icon:t}};else"object"==typeof t&&null!==t&&(r(i,"top",t.top),r(i,"right",t.right),r(i,"bottom",t.bottom),r(i,"left",t.left));return i})(o,s))}else if(null===(s=t.nextState)||void 0===s?void 0:s.has("_iconAlign")){const o=t.state._iconAlign;null===(a=t.nextState)||void 0===a||a.set("_icon",{[o]:void 0,[null===(c=t.nextState)||void 0===c?void 0:c.get("_iconAlign")]:t.state._icon[o]})}},s=t=>"object"==typeof t&&null!==t&&(void 0===t.style||l(t.style))&&e(t.icon,1),d=(o,l)=>{i(l,(()=>{try{l=n(l)}catch(t){}t(o,"_icon",(t=>null===t||e(t,1)||"object"==typeof t&&null!==t&&(e(t.left,1)||s(t.left)||e(t.right,1)||s(t.right)||e(t.top,1)||s(t.top)||e(t.bottom,1)||s(t.bottom))),new Set(["KoliBriIcon"]),l,{hooks:{beforePatch:(t,e)=>{null===t&&e.set("_icon",{}),a(o)}},required:!0})}))},u=(e,i)=>{o("Das Property _icon-align bzw. _iconAlign ist veraltet. Die Ausrichtung der Icon's kann jetzt direkt über das _icon-Property vorgenommen werden. (v1.1.10: https://public-ui.github.io/?path=/story/backlog-und-changelog--page)"),t(e,"_iconAlign",(t=>"left"===t||"right"===t),new Set(["Alignment {left, right, top, bottom}"]),i,{hooks:{beforePatch:()=>{a(e)}}})};export{s as i,d as v,u as w};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
let e,t,n,l=!1,s=!1,o=!1,i=!1;const r="http://www.w3.org/1999/xlink",c={},f=e=>"object"==(e=typeof e)||"function"===e,u=(e,t,...n)=>{let s=null,l=null,o=null,r=!1,i=!1;const c=[],p=t=>{for(let n=0;n<t.length;n++)s=t[n],Array.isArray(s)?p(s):null!=s&&"boolean"!=typeof s&&((r="function"!=typeof e&&!f(s))&&(s+=""),r&&i?c[c.length-1].t+=s:c.push(r?a(null,s):s),i=r)};if(p(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,h);const d=a(e,null);return d.l=t,c.length>0&&(d.o=c),d.i=l,d.u=o,d},a=(e,t)=>({$:0,h:e,t:t,p:null,o:null,l:null,i:null,u:null}),$={},h={forEach:(e,t)=>e.map(d).forEach(t),map:(e,t)=>e.map(d).map(t).map(y)},d=e=>({vattrs:e.l,vchildren:e.o,vkey:e.i,vname:e.u,vtag:e.h,vtext:e.t}),y=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),u(e.vtag,t,...e.vchildren||[])}const t=a(e.vtag,e.vtext);return t.l=e.vattrs,t.o=e.vchildren,t.i=e.vkey,t.u=e.vname,t},p=e=>se.push(e),b=new WeakMap,m=(e,t)=>"sc-"+(t&&32&e.$?e.m+"-"+t:e.m),w=(e,t,n,s,l,o)=>{if(n!==s){let i=Z(e,t),a=t.toLowerCase();if("class"===t){const t=e.classList,l=v(n),o=v(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 c=f(s);if((i||c&&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 h=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,h=!0),null==s||!1===s?!1===s&&""!==e.getAttribute(t)||(h?e.removeAttributeNS(r,t):e.removeAttribute(t)):(!i||4&o||l)&&!c&&(s=!0===s?"":s,h?e.setAttributeNS(r,t,s):e.setAttribute(t,s))}else t="-"===t[2]?t.slice(3):Z(oe,a)?a.slice(2):a[2]+t.slice(3),n&&re.rel(e,t,n,!1),s&&re.ael(e,t,s,!1)}},g=/\s/,v=e=>e?e.split(g):[],k=(e,t,n,s)=>{const l=11===t.p.nodeType&&t.p.host?t.p.host:t.p,o=e&&e.l||c,r=t.l||c;for(s in o)s in r||w(l,s,o[s],void 0,n,t.$);for(s in r)w(l,s,o[s],r[s],n,t.$)},j=(s,r,a,c)=>{const h=r.o[a];let p,d,u,f=0;if(l||(o=!0,"slot"===h.h&&(e&&c.classList.add(e+"-s"),h.$|=h.o?2:1)),null!==h.t)p=h.p=ie.createTextNode(h.t);else if(1&h.$)p=h.p=ie.createTextNode("");else{if(i||(i="svg"===h.h),p=h.p=ie.createElementNS(i?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&h.$?"slot-fb":h.h),i&&"foreignObject"===h.h&&(i=!1),k(null,h,i),null!=e&&p["s-si"]!==e&&p.classList.add(p["s-si"]=e),h.o)for(f=0;f<h.o.length;++f)d=j(s,h,f,p),d&&p.appendChild(d);"svg"===h.h?i=!1:"foreignObject"===p.tagName&&(i=!0)}return p["s-hn"]=n,3&h.$&&(p["s-sr"]=!0,p["s-cr"]=t,p["s-sn"]=h.u||"",u=s&&s.o&&s.o[a],u&&u.h===h.h&&s.p&&S(s.p,!1)),p},S=(e,t)=>{re.$|=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"]&&(R(l).insertBefore(l,C(l)),l["s-ol"].remove(),l["s-ol"]=void 0,o=!0),t&&S(l,t)}re.$&=-2},O=(e,t,s,l,o,r)=>{let i,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===n&&(a=a.shadowRoot);o<=r;++o)l[o]&&(i=j(null,s,o,e),i&&(l[o].p=i,a.insertBefore(i,C(t))))},M=(e,t,n,l,o)=>{for(;t<=n;++t)(l=e[t])&&(o=l.p,L(l),s=!0,o["s-ol"]?o["s-ol"].remove():S(o,!0),o.remove())},x=(e,t)=>e.h===t.h&&("slot"===e.h?e.u===t.u:e.i===t.i),C=e=>e&&e["s-ol"]||e,R=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,P=(e,t)=>{const n=t.p=e.p,s=e.o,l=t.o,o=t.h,r=t.t;let a;null===r?(i="svg"===o||"foreignObject"!==o&&i,"slot"===o||k(e,t,i),null!==s&&null!==l?((e,t,n,s)=>{let l,o,r=0,i=0,a=0,c=0,h=t.length-1,p=t[0],d=t[h],u=s.length-1,f=s[0],m=s[u];for(;r<=h&&i<=u;)if(null==p)p=t[++r];else if(null==d)d=t[--h];else if(null==f)f=s[++i];else if(null==m)m=s[--u];else if(x(p,f))P(p,f),p=t[++r],f=s[++i];else if(x(d,m))P(d,m),d=t[--h],m=s[--u];else if(x(p,m))"slot"!==p.h&&"slot"!==m.h||S(p.p.parentNode,!1),P(p,m),e.insertBefore(p.p,d.p.nextSibling),p=t[++r],m=s[--u];else if(x(d,f))"slot"!==p.h&&"slot"!==m.h||S(d.p.parentNode,!1),P(d,f),e.insertBefore(d.p,p.p),d=t[--h],f=s[++i];else{for(a=-1,c=r;c<=h;++c)if(t[c]&&null!==t[c].i&&t[c].i===f.i){a=c;break}a>=0?(o=t[a],o.h!==f.h?l=j(t&&t[i],n,a,e):(P(o,f),t[a]=void 0,l=o.p),f=s[++i]):(l=j(t&&t[i],n,i,e),f=s[++i]),l&&R(p.p).insertBefore(l,C(p.p))}r>h?O(e,null==s[u+1]?null:s[u+1].p,n,s,i,u):i>u&&M(t,r,h)})(n,s,t,l):null!==l?(null!==e.t&&(n.textContent=""),O(n,null,t,l,0,l.length-1)):null!==s&&M(s,0,s.length-1),i&&"svg"===o&&(i=!1)):(a=n["s-cr"])?a.parentNode.textContent=r:e.t!==r&&(n.data=r)},T=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}T(n)}},E=[],N=e=>{let t,n,l,o,r,i,a=0;const c=e.childNodes,h=c.length;for(;a<h;a++){if(t=c[a],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"]||(F(n,o)?(r=E.find((e=>e.g===n)),s=!0,n["s-sn"]=n["s-sn"]||o,r?r.v=t:E.push({v:t,g:n}),n["s-sr"]&&E.map((e=>{F(e.g,n["s-sn"])&&(r=E.find((e=>e.g===n)),r&&!e.v&&(e.v=r.v))}))):E.some((e=>e.g===n))||E.push({g:n}));1===t.nodeType&&N(t)}},F=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,L=e=>{e.l&&e.l.ref&&e.l.ref(null),e.o&&e.o.map(L)},W=(e,t)=>{t&&!e.k&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.k=t)))},A=(e,t)=>{if(!(4&e.$))return W(e,e.j),H(e,t);e.$|=512},H=(e,t)=>{const n=e.S;let s;return t&&(s=_(n,"componentWillLoad")),z(s,(()=>U(e,n,t)))},U=async(e,t,n)=>{const s=e.O,l=s["s-rc"];n&&(e=>{const t=e.M,n=e.O,s=t.$,l=((e,t,n)=>{let s=m(t,n);const l=le.get(s);if(e=11===e.nodeType?e:ie,l)if("string"==typeof l){let t,n=b.get(e=e.head||e);n||b.set(e,n=new Set),n.has(s)||(t=ie.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.C);10&s&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e),q(e,t),l&&(l.map((e=>e())),s["s-rc"]=void 0);{const t=s["s-p"],n=()=>D(e);0===t.length?n():(Promise.all(t).then(n),e.$|=4,t.length=0)}},q=(r,i)=>{try{i=i.render(),r.$|=2,((r,i)=>{const c=r.O,h=r.M,p=r.R||a(null,null),d=(e=>e&&e.h===$)(i)?i:u(null,null,i);if(n=c.tagName,h.P&&(d.l=d.l||{},h.P.map((([e,t])=>d.l[t]=c[e]))),d.h=null,d.$|=4,r.R=d,d.p=p.p=c.shadowRoot||c,e=c["s-sc"],t=c["s-cr"],l=0!=(1&h.$),s=!1,P(p,d),re.$|=1,o){let e,t,n,s,l,o;N(d.p);let r=0;for(;r<E.length;r++)e=E[r],t=e.g,t["s-ol"]||(n=ie.createTextNode(""),n["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t));for(r=0;r<E.length;r++)if(e=E[r],t=e.g,e.v){for(s=e.v.parentNode,l=e.v.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&&T(d.p),re.$&=-2,E.length=0})(r,i)}catch(e){ee(e,r.O)}return null},D=e=>{const t=e.O,n=e.j;_(e.S,"componentDidRender"),64&e.$||(e.$|=64,B(t),e.T(t),n||V()),e.N(t),e.k&&(e.k(),e.k=void 0),512&e.$&&ue((()=>A(e,!1))),e.$&=-517},V=()=>{B(ie.documentElement),ue((()=>(e=>{const t=re.ce("appload",{detail:{namespace:"kolibri"}});return e.dispatchEvent(t),t})(oe)))},_=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){ee(e)}},z=(e,t)=>e&&e.then?e.then(t):t(),B=e=>e.classList.add("hydrated"),G=(e,t,n)=>{if(t.F){e.watchers&&(t.L=e.watchers);const s=Object.entries(t.F),l=e.prototype;if(s.map((([e,[s]])=>{31&s||2&n&&32&s?Object.defineProperty(l,e,{get(){return((e,t)=>Q(this).W.get(t))(0,e)},set(n){((e,t,n,s)=>{const l=Q(this),o=l.O,r=l.W.get(t),i=l.$,a=l.S;if(n=((e,t)=>null==e||f(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,s.F[t][0]),(!(8&i)||void 0===r)&&n!==r&&(!Number.isNaN(r)||!Number.isNaN(n))&&(l.W.set(t,n),a)){if(s.L&&128&i){const e=s.L[t];e&&e.map((e=>{try{a[e](n,r,t)}catch(e){ee(e,o)}}))}2==(18&i)&&A(l,!1)}})(0,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&s&&Object.defineProperty(l,e,{value(...t){const n=Q(this);return n.A.then((()=>n.S[e](...t)))}})})),1&n){const n=new Map;l.attributeChangedCallback=function(e,t,s){re.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.P.push([e,l]),l}))}}return e},I=(e,t={})=>{const n=[],s=t.exclude||[],l=oe.customElements,o=ie.head,r=o.querySelector("meta[charset]"),i=ie.createElement("style"),a=[];let c,h=!0;Object.assign(re,t),re.H=new URL(t.resourcesUrl||"./",ie.baseURI).href,e.map((e=>{e[1].map((t=>{const o={$:t[0],m:t[1],F:t[2],U:t[3]};o.F=t[2],o.P=[],o.L={};const r=o.m,i=class extends HTMLElement{constructor(e){super(e),Y(e=this,o),1&o.$&&e.attachShadow({mode:"open"})}connectedCallback(){c&&(clearTimeout(c),c=null),h?a.push(this):re.jmp((()=>(e=>{if(0==(1&re.$)){const t=Q(e),n=t.M,s=()=>{};if(!(1&t.$)){t.$|=1,12&n.$&&(e=>{const t=e["s-cr"]=ie.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){W(t,t.j=n);break}}n.F&&Object.entries(n.F).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.$)){{if(t.$|=32,(l=ne(n)).then){const e=()=>{};l=await l,e()}l.isProxied||(n.L=l.watchers,G(l,n,2),l.isProxied=!0);const s=()=>{};t.$|=8;try{new l(t)}catch(e){ee(e)}t.$&=-9,t.$|=128,s()}if(l.style){let s=l.style;"string"!=typeof s&&(s=s[t.C=(e=>se.map((t=>t(e))).find((e=>!!e)))(e)]);const o=m(n,t.C);if(!le.has(o)){const e=()=>{};((e,t,n)=>{let s=le.get(e);fe&&n?(s=s||new CSSStyleSheet,"string"==typeof s?s=t:s.replaceSync(t)):s=t,le.set(e,s)})(o,s,!!(1&n.$)),e()}}}const o=t.j,r=()=>A(t,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(e,t,n)}s()}})(this)))}disconnectedCallback(){re.jmp((()=>(()=>{0==(1&re.$)&&_(Q(this).S,"disconnectedCallback")})()))}componentOnReady(){return Q(this).q}};o.D=e[0],s.includes(r)||l.get(r)||(n.push(r),l.define(r,G(i,o,1)))}))})),i.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",i.setAttribute("data-styles",""),o.insertBefore(i,r?r.nextSibling:o.firstChild),h=!1,a.length?a.map((e=>e.connectedCallback())):re.jmp((()=>c=setTimeout(V,30)))},J=(e,t)=>t,K=new WeakMap,Q=e=>K.get(e),X=(e,t)=>K.set(t.S=e,t),Y=(e,t)=>{const n={$:0,O:e,M:t,W:new Map};return n.A=new Promise((e=>n.N=e)),n.q=new Promise((e=>n.T=e)),e["s-p"]=[],e["s-rc"]=[],K.set(e,n)},Z=(e,t)=>t in e,ee=(e,t)=>(0,console.error)(e,t),te=new Map,ne=e=>{const t=e.m.replace(/-/g,"_"),n=e.D,s=te.get(n);return s?s[t]:import(`./${n}.entry.js`).then((e=>(te.set(n,e),e[t])),ee)
|
|
5
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},le=new Map,se=[],oe="undefined"!=typeof window?window:{},ie=oe.document||{head:{}},re={$:0,H:"",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)},ce=e=>Promise.resolve(e),fe=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),ue=e=>ce().then(e);export{J as F,$ as H,I as b,u as h,ce as p,X as r,p as s};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{r as i,h as t,H as s}from"./index-5878bd01.js";import{w as a}from"./button-link-b8b2a2cf.js";import{d as l,b as e}from"./a11y.tipps-7e981511.js";import{n as o}from"./dev.utils-d28700ca.js";import{d as h,m as n,e as r,w as d,a as c,b as v}from"./prop.validators-6128c2dd.js";import{v as u,w as _}from"./icon-1e6842f0.js";import{v as p,a as b}from"./label-48702aa0.js";import{v as m}from"./tab-index-e911109b.js";import{p as f,a as y}from"./controller-5baf841b.js";import{w as g,a as j}from"./controller-ce8de601.js";import{w as A}from"./validation-ca65ff34.js";import"./index.m-86dc8c44.js";import"./index-d870d3e1.js";import"./validator-fe8c60ef.js";const x=class{constructor(t){i(this,t),this.nonce=o(),this.catchHost=t=>{this.host=t},this.catchRef=t=>{this.forwardedRef=t,this.ref=t},this.onClick=t=>{var i,a;"submit"===this.state._type?f({form:this.host,ref:this.ref}):"reset"===this.state._type?y({form:this.host,ref:this.ref}):"function"==typeof(null===(i=this.state._on)||void 0===i?void 0:i.onClick)?(h(t,this.ref),null===(a=this.state._on)||void 0===a||a.onClick(t)):l("It is no button click callback configured!")},this._accessKey=void 0,this._ariaControls=void 0,this._ariaCurrent=void 0,this._ariaExpanded=void 0,this._ariaLabel="",this._customClass=void 0,this._disabled=!1,this._icon=void 0,this._iconAlign="left",this._iconOnly=!1,this._id=void 0,this._label=void 0,this._on=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._type="button",this._variant="normal",this.state={_ariaLabel:"",_icon:{},_iconAlign:"left",_label:"",_on:{},_type:"button"}}render(){return t(s,{ref:this.catchHost},t("button",Object.assign({ref:this.catchRef,accessKey:this.state._accessKey,"aria-controls":this.state._ariaControls,"aria-current":n(this.state._ariaCurrent),"aria-expanded":r(this.state._ariaExpanded),"aria-label":!1===this.state._iconOnly?this.state._ariaLabel||this.state._label:void 0,"aria-labelledby":!0===this.state._iconOnly?this.nonce:void 0,class:{[this.state._variant]:"custom"!==this.state._variant,[this.state._customClass]:"custom"===this.state._variant&&"string"==typeof this.state._customClass&&this.state._customClass.length>0,"icon-only":!0===this.state._iconOnly},disabled:this.state._disabled,id:this.state._id},this.state._on,{onClick:this.onClick,style:{width:"inherit"},tabIndex:this.state._tabIndex,type:this.state._type}),t("kol-span-wc",{_icon:this._icon,_iconOnly:this._iconOnly,_label:this.state._ariaLabel||this.state._label},t("slot",{name:"expert",slot:"expert"}))),!0===this.state._iconOnly&&t("kol-tooltip",{_align:this.state._tooltipAlign,_id:this.nonce,_label:this.state._ariaLabel||this.state._label}))}async getInteractiveElementRef(){return Promise.resolve(this.ref)}validateAccessKey(t){d(this,"_accessKey",t)}validateAriaControls(t){d(this,"_ariaControls",t)}validateAriaCurrent(t){c(this,"_ariaControls",(t=>!0===t||"date"===t||"location"===t||"page"===t||"step"===t||"time"===t),new Set(["boolean","String {data, location, page, step, time}"]),t)}validateAriaExpanded(t){v(this,"_ariaExpanded",t)}validateAriaLabel(t){p(this,t)}validateCustomClass(t){d(this,"_customClass",t,{defaultValue:void 0})}validateDisabled(t){v(this,"_disabled",t),!0===t&&e()}validateIcon(t){u(this,t)}validateIconAlign(t){_(this,t)}validateIconOnly(t){v(this,"_iconOnly",t,{defaultValue:!1})}validateId(t){d(this,"_id",t)}validateLabel(t){b(this,t)}validateOn(t){"object"==typeof t&&null!==t&&(this.state=Object.assign(Object.assign({},this.state),{_on:t}))}validateTabIndex(t){m(this,t)}validateTooltipAlign(t){a(this,"_tooltipAlign",t)}validateType(t){g(this,"_type",t)}validateVariant(t){j(this,"_variant",t)}componentWillLoad(){this.validateAccessKey(this._accessKey),this.validateAriaControls(this._ariaControls),this.validateAriaCurrent(this._ariaCurrent),this.validateAriaExpanded(this._ariaExpanded),this.validateAriaLabel(this._ariaLabel),this.validateCustomClass(this._customClass),this.validateDisabled(this._disabled),this.validateIcon(this._icon),this.validateIconOnly(this._iconOnly),this.validateId(this._id),this.validateLabel(this._label),this.validateOn(this._on),this.validateTabIndex(this._tabIndex),this.validateTooltipAlign(this._tooltipAlign),this.validateType(this._type),this.validateVariant(this._variant),0===Date.now()&&console.log(this.forwardedRef,this.ref)}static get watchers(){return{_accessKey:["validateAccessKey"],_ariaControls:["validateAriaControls"],_ariaCurrent:["validateAriaCurrent"],_ariaExpanded:["validateAriaExpanded"],_ariaLabel:["validateAriaLabel"],_customClass:["validateCustomClass"],_disabled:["validateDisabled"],_icon:["validateIcon"],_iconAlign:["validateIconAlign"],_iconOnly:["validateIconOnly"],_id:["validateId"],_label:["validateLabel"],_on:["validateOn"],_tabIndex:["validateTabIndex"],_tooltipAlign:["validateTooltipAlign"],_type:["validateType"],_variant:["validateVariant"]}}},C=class{constructor(t){i(this,t),this._level=1,this.state={}}validateLevel(t){A(this,t)}componentWillLoad(){this.validateLevel(this._level)}render(){switch(this.state._level){case 2:return t("h2",null,t("slot",null));case 3:return t("h3",null,t("slot",null));case 4:return t("h4",null,t("slot",null));case 5:return t("h5",null,t("slot",null));case 6:return t("h6",null,t("slot",null));default:return t("h1",null,t("slot",null))}}static get watchers(){return{_level:["validateLevel"]}}},w=class{constructor(t){i(this,t),this._alert=!0,this._disabled=!1,this._error="",this._hideLabel=!1,this._hint="",this._icon=void 0,this._id=void 0,this._list=void 0,this._readOnly=!1,this._renderNoLabel=!1,this._required=!1,this._smartButton=void 0,this._touched=!1}render(){var i,a,e,l;const o="string"==typeof this._error&&this._error.length>0&&!0===this._touched,n="string"==typeof this._hint&&this._hint.length>0,r=!0===this._hideLabel&&!0!==this._required;return t(s,{class:{disabled:!0===this._disabled,error:!0===o,"read-only":!0===this._readOnly,required:!0===this._required,touched:!0===this._touched}},!1===this._renderNoLabel&&t("label",{htmlFor:this._id,id:`${this._id}-label`,style:{height:r?"0":void 0,margin:r?"0":void 0,padding:r?"0":void 0,visibility:r?"hidden":void 0}},t("span",null,t("slot",{name:"label"}))),n&&t("span",{class:"hint",id:`${this._id}-hint`},this._hint),t("div",{class:{input:!0,"icon-left":"object"==typeof(null===(i=this._icon)||void 0===i?void 0:i.left),"icon-right":"object"==typeof(null===(a=this._icon)||void 0===a?void 0:a.right)}},t("div",{class:"icons"},(null===(e=this._icon)||void 0===e?void 0:e.left)?t("kol-icon",{_ariaLabel:"",_icon:this._icon.left.icon}):t("i",null),(null===(l=this._icon)||void 0===l?void 0:l.right)?t("kol-icon",{_ariaLabel:"",_icon:this._icon.right.icon}):t("i",null)),t("slot",{name:"input"}),"object"==typeof this._smartButton&&null!==this._smartButton&&t("kol-button-wc",{_ariaLabel:this._smartButton._ariaLabel,_customClass:this._smartButton._customClass,_disabled:this._smartButton._disabled,_icon:this._smartButton._icon,_iconOnly:!0,_id:this._smartButton._id,_label:this._smartButton._label,_on:this._smartButton._on,_tooltipAlign:this._smartButton._tooltipAlign,_variant:this._smartButton._variant})),o&&t("kol-alert",{class:"error",id:`${this._id}-error`,_alert:this._alert,_type:"error",_variant:"msg"},this._error),Array.isArray(this._list)&&this._list.length>0&&t("datalist",{id:`${this._id}-list`},this._list.map((i=>t("option",{value:i})))))}};export{x as kol_button_wc,C as kol_heading_wc,w as kol_input};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{r as i,h as s,H as t}from"./index-5878bd01.js";import{b as o}from"./prop.validators-6128c2dd.js";import{v as a}from"./icon-1e6842f0.js";import{a as l}from"./label-48702aa0.js";import"./index.m-86dc8c44.js";import"./a11y.tipps-7e981511.js";import"./dev.utils-d28700ca.js";import"./index-d870d3e1.js";import"./validator-fe8c60ef.js";const n=t=>{t instanceof Node&&setTimeout((()=>{var i,s;null===(i=t.parentElement)||void 0===i||i.removeChild(t),null===(s=t.parentNode)||void 0===s||s.removeChild(t)}))},e=class{constructor(t){i(this,t),this._icon=void 0,this._iconOnly=!1,this._label=void 0,this.state={_icon:{},_iconOnly:!1,_label:""}}render(){return s(t,{class:{"icon-only":this.state._iconOnly}},this.state._icon.top&&s("kol-icon",{class:{"icon top":!0},style:this.state._icon.top.style,_ariaLabel:"",_icon:this.state._icon.top.icon}),s("span",{class:"flex items-center"},this.state._icon.left&&s("kol-icon",{class:{"icon left":!0,"mr-2":this.state._iconOnly},style:this.state._icon.left.style,_ariaLabel:"",_icon:this.state._icon.left.icon}),s("span",null,!0!==this.state._iconOnly&&this.state._label.length>0?this.state._label:""),s("span",{ref:this.state._label.length>0?n:void 0},s("slot",{name:"expert"})),this.state._icon.right&&s("kol-icon",{class:{"icon right":!0,"ml-2":this.state._iconOnly},style:this.state._icon.right.style,_ariaLabel:"",_icon:this.state._icon.right.icon})),this.state._icon.bottom&&s("kol-icon",{class:{"icon bottom":!0},style:this.state._icon.bottom.style,_ariaLabel:"",_icon:this.state._icon.bottom.icon}))}validateIcon(t){a(this,t)}validateIconOnly(t){o(this,"_iconOnly",t)}validateLabel(t){l(this,t)}componentWillLoad(){this.validateIcon(this._icon),this.validateIconOnly(this._iconOnly),this.validateLabel(this._label)}static get watchers(){return{_icon:["validateIcon"],_iconOnly:["validateIconOnly"],_label:["validateLabel"]}}};export{e as kol_span_wc};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{s as e,f as t}from"./index.m-86dc8c44.js";import{d as n}from"./a11y.tipps-7e981511.js";import{L as r,g as o,a}from"./dev.utils-d28700ca.js";import{p as i,a as l}from"./index-d870d3e1.js";const s=(e,t)=>{t.forEach((t=>{!1===e.has(t)&&e.add(t)}))},c=(e,t=document)=>{if(t instanceof Document||t instanceof HTMLElement||t instanceof ShadowRoot){const o=new Set;s(o,t.querySelectorAll(e));const r=t.querySelectorAll('[class*="hydrated"]');for(let t=0;t<r.length;t++){const n=r[t].shadowRoot;s(o,c(e,"object"==typeof n&&null!==n?n:r[t]))}return Array.from(o)}throw new Error("The parameter document for the method querySelectorAll is not type of Document, HTMLElement or ShadowRoot.")},u=(e,t=document)=>{if(t instanceof Document||t instanceof HTMLElement||t instanceof ShadowRoot){let o=t.querySelector(e);if(null===o){const r=t.querySelectorAll('[class*="hydrated"]');for(let t=0;t<r.length;t++){const n=r[t].shadowRoot;if(o=u(e,"object"==typeof n&&null!==n?n:r[t]),null!==o)break}}return o}throw new Error("The parameter document for the method querySelector is not type of Document, HTMLElement or ShadowRoot.")};var f=d;function d(e){var t=m(e);return 3==t.length?t.concat(255):(t[3]=Math.round(t[3]),t)}function m(e){return"string"==typeof e?("red"==(t=e=e.toLowerCase())?[255,0,0]:"green"==t?[0,255,0]:"blue"==t?[0,0,255]:"black"==t?[0,0,0]:"white"==t?[255,255,255]:"cyan"==t?[0,255,255]:"gray"==t||"grey"==t?[128,128,128]:"magenta"==t||"pink"==t?[255,0,255]:"yellow"==t?[255,255,0]:void 0)||function(e){var t=e.replace(/^#/,""),o=t.length;if(3==o||4==o){var r=h(t[0]),n=h(t[1]),a=h(t[2]),l=3==o?255:h(t[3]);if(isNaN(r)||isNaN(n)||isNaN(a)||isNaN(l))return;return[r,n,a,l]}}(e)||function(e){var t=e.replace(/^#/,""),o=t.length;if(6==o||8==o){var r=h(t.slice(0,2)),n=h(t.slice(2,4)),a=h(t.slice(4,6)),l=6==o?255:h(t.slice(6,8));if(isNaN(r)||isNaN(n)||isNaN(a)||isNaN(l))return;return[r,n,a,l]}}(e)||function(e){if("rgb("==e.substr(0,4)){var t=(e=e.match(/^rgb\(([^)]+)\)/)[1]).split(/ *, */).map(Number),o=y(t[0],!0),r=y(t[1],!0),n=y(t[2],!0);if(-1!=o&&-1!=r&&-1!=n)return[o,r,n,255]}}(e)||function(e){if("rgba("==e.substr(0,5)){var t=(e=e.match(/^rgba\(([^)]+)\)/)[1]).split(/ *, */).map(Number),o=y(t[0],!0),r=y(t[1],!0),n=y(t[2],!0),a=y(255*t[3]);if(-1!=o&&-1!=r&&-1!=n&&-1!=a)return[o,r,n,a]}}(e)||[0,0,0,255]:function(e){if("[object Object]"===Object.prototype.toString.call(e)&&Object.getPrototypeOf(e)===Object.getPrototypeOf({})){var t=y(null!=e.r?e.r:null!=e.red?e.red:0,!0),o=y(null!=e.g?e.g:null!=e.green?e.green:0,!0),r=y(null!=e.b?e.b:null!=e.blue?e.blue:0,!0),n=y(null!=e.a?e.a:null!=e.alpha?e.alpha:255,!0);if(-1!=t&&-1!=o&&-1!=r&&-1!=n)return[t,o,r,n]}}(e)||function(e){if(Array.isArray(e)&&(3==e.length||4==e.length)){var t=y(e[0],!0),o=y(e[1],!0),r=y(e[2],!0),n=y(null!=e[3]?e[3]:255,!0);if(-1!=t&&-1!=o&&-1!=r&&-1!=n)return[t,o,r,n]}}(e)||function(e){if("number"==typeof e&&Math.floor(e)==e&&e<=4294967295&&e>=0)return[e>>16&255,e>>8&255,255&e,e>>24&255]}(e)||[0,0,0,255];var t}function v(e){var t=e.toString(16);return 1==t.length?"0"+t:t}function h(e){return 1==e.length?parseInt(e+e,16):parseInt(e,16)}function y(e,t){return"number"!=typeof e||!0===t&&Math.floor(e)!==e?-1:e>=0&&e<=255?e:-1}f.arr=d,f.obj=function(e){var t=m(e);return{r:t[0],g:t[1],b:t[2],a:3==t.length?255:Math.round(t[3])}},f.css=function(e){var t=m(e);return 3==t.length&&t.push(255),255==t[3]?"rgb("+t[0]+", "+t[1]+", "+t[2]+")":0==t[3]?"rgba("+t[0]+", "+t[1]+", "+t[2]+", 0)":"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+String(t[3]/255).substr(1)+")"},f.hex=function(e){3==(a=m(e)).length&&a.push(255);var t=255==a[3],o=v(a[0]),r=v(a[1]),n=v(a[2]),a=v(Math.round(a[3])),l=function(e,t,o,r){var n=["ff","00","11","22","33","44","55","66","77","88","99","aa","bb","cc","dd","ee"];return-1!=n.indexOf(e)&&-1!=n.indexOf(t)&&-1!=n.indexOf(o)&&-1!=n.indexOf(r)}(o,r,n,a);return t?l?"#"+o.charAt(0)+r.charAt(0)+n.charAt(0):"#"+o+r+n:l?"#"+o.charAt(0)+r.charAt(0)+n.charAt(0)+a.charAt(0):"#"+o+r+n+a},f.num=function(e){var t=m(e);return 3==t.length?t.push(255):t[3]=Math.round(t[3]),(t[3]<<24>>>0|t[0]<<16|t[1]<<8|t[2])>>>0};const p=/\[object Object\]/,b=(e,t)=>{"string"==typeof e&&p.test(e)||t()},g=(e,t)=>{"string"==typeof e&&""===e||t()},w=(e,t)=>{Object.defineProperty(e,"target",{value:t,writable:!1})},S=(e,t,o,r={})=>{var n,a;void 0===e.nextHooks&&(e.nextHooks=new Map),void 0===e.nextState&&(e.nextState=new Map),e.nextState.get(t)!==o&&(e.nextHooks.get(t)instanceof Map==0&&e.nextHooks.set(t,new Map),"function"==typeof r.afterPatch&&(null===(n=e.nextHooks.get(t))||void 0===n||n.set("afterPatch",r.afterPatch)),"function"==typeof r.beforePatch&&(null===(a=e.nextHooks.get(t))||void 0===a||a.set("beforePatch",r.beforePatch)),e.nextState.set(t,o),(e=>{var t,o,r;null===(t=e.nextHooks)||void 0===t||t.forEach(((t,o)=>{var r;const n=t.get("beforePatch");"function"==typeof n&&n(null===(r=e.nextState)||void 0===r?void 0:r.get(o),e.nextState,e,o)})),(null===(o=e.nextState)||void 0===o?void 0:o.size)>0&&(e.state=Object.assign(Object.assign({},e.state),Object.fromEntries(e.nextState)),delete e.nextState,null===(r=e.nextHooks)||void 0===r||r.forEach(((t,o)=>{const r=t.get("afterPatch");"function"==typeof r&&r(e.state[o],e.state,e,o)}))),delete e.nextHooks})(e))},N=(e,t,o,r,a,l={})=>{o(a)?S(e,t,a,null==l?void 0:l.hooks):void 0===a||null===a&&(void 0===(null==l?void 0:l.required)||!1===(null==l?void 0:l.required))?S(e,t,null==l?void 0:l.defaultValue,null==l?void 0:l.hooks):(void 0!==(null==l?void 0:l.required)&&!1!==(null==l?void 0:l.required)||r.add(null),((e,t,o,r)=>{n(`[${e.constructor.name}] Der Property-Wert (${o}) für '${t}' ist nicht valide. Folgende Werte sind erlaubt: ${Array.from(r).join(", ")}`)})(e,t,a,r))},M=(e,t,o,r)=>{N(e,t,(e=>"boolean"==typeof e),new Set(["Boolean {true, false}"]),o,r)},E=(e,t,o,r={})=>{const n="number"==typeof r.minLength?null==r?void 0:r.minLength:0;N(e,t,(e=>"string"==typeof e&&e.length>=n),new Set([`String (Mindestlänge ${n})`]),o,r)},j=(e,t,o,r)=>{N(e,t,(e=>"number"==typeof e&&(void 0===(null==r?void 0:r.min)||"number"==typeof(null==r?void 0:r.min)&&e>=r.min)&&(void 0===(null==r?void 0:r.max)||"number"==typeof(null==r?void 0:r.max)&&e<=r.max)),new Set(["Number"]),o,r)},O=(e,t,o,r,a=(e=>e==e),l={})=>{g(r,(()=>{b(r,(()=>{void 0===r&&(r=[]);try{try{r=C(r)}catch(e){}if(Array.isArray(r)){const n=r.find((e=>!o(e)));void 0===n&&a(r)?S(e,t,r,l.hooks):b(n,(()=>{throw console.log(n),new Error("↑ Das Schema für das Property (_options) ist nicht valide. Der Wert wird nicht geändert.")}))}else b(r,(()=>{throw console.log(r),new Error("↑ Das Schema für das Property (_options) ist nicht valide. Der Wert wird nicht geändert.")}))}catch(e){n("Known bug: Zeichenkettenliste (string[])")}}))}))},k=/^(true|false)$/,D=/^-?\d+$/,T=/^-?\d+(.\d+)$/,H=e=>{if("string"==typeof e)if(k.test(e))e="true"===e;else if(D.test(e))e=parseInt(e);else if(T.test(e))e=parseFloat(e);else try{e=C(e)}catch(e){}return e},L=e=>{try{return JSON.stringify(e).replace(/"/g,"'")}catch(t){throw r.warn(["stringifyJson",e]),r.error("↑ Das JSON konnte nicht in einen String umgewandelt werden. Es wird ein stringifizierbares JSON erwartet."),new Error}},$=/^[{[]/,C=e=>{if("string"==typeof e)try{return JSON.parse(e)}catch(t){if($.test(e))try{return JSON.parse(e.replace(/'/g,'"'))}catch(t){r.warn(["parseJson",e]),r.error("↑ Der JSON-String konnte nicht geparsed werden. Achten Sie darauf, dass einfache Anführungszeichen im Text maskiert werden (‘).")}}throw new Error},P=e=>"boolean"==typeof e?!0===e?"true":"false":void 0,A=e=>"string"==typeof e?e:P(e),J=(e,t)=>u(e,t||o()),q=(e,t)=>c(e,t||o());let x=null;const z=()=>(x=x||{backgroundColor:"#00000000",color:"#00000000",domNode:o().body,level:"Fail",score:1},x),B=/(\d+, ){3}0\)/,K=(o,n=z())=>{const a=getComputedStyle(o),l=B.test(a.backgroundColor)?n.backgroundColor:f.hex(a.backgroundColor),s=B.test(a.color)?n.color:f.hex(a.color),i=e(l,s),c={backgroundColor:l,color:s,domNode:o,level:t(i),score:i};return i<4.5&&r.error(["Color-Contrast-Error",{backgroundColor:c.backgroundColor,color:c.color,level:c.level,score:c.score},c.domNode]),c},R=(e,t=z())=>{t.domNode instanceof HTMLElement&&(t=K(t.domNode,t));const o=t.domNode.querySelector(e);if(null===o){const o=t.domNode.querySelectorAll('[class="hydrated"]');for(let r=0;r<o.length&&(t.domNode=o[r],null===(t=R(e,t)).domNode);r++);return t}return K(o,t)},W=(e,t=window)=>{e instanceof HTMLElement?(t.scrollTo({behavior:"smooth",top:e.getBoundingClientRect().top+a().pageYOffset-50}),e.focus()):n("Das HTMLElement ist nicht valide, zu dem gescrollt werden soll.")},F=(e,t)=>{if((e instanceof Document||e instanceof HTMLElement||e instanceof ShadowRoot)&&"string"==typeof t){n("Bei der Methode querySelectorAll wurden die Parameter document, selector in selector, document getauscht, da der Parameter selector nicht, allerdings der Parameter document optional sein kann.");const o=`${t}`;t=e,e=o}if("string"==typeof e){const o=J(e,t);o instanceof HTMLElement?W(o):n(`Es konnte kein HTMLElement mit dem Selector (${e}) gefunden werden, zu dem gescrollt werden soll.`)}else n("Der Selector ist nicht valide, zu dem gescrollt werden soll.")};class I{static queryHtmlElementColors(e,t,o=!1,n=!0){let a=null;if(!0===o||!1===I.executionLock)if(!1===o&&(I.cache.clear(),I.cache.set(t.domNode,t),I.executionLock=!0,!0===n&&r.debug("[KoliBriUtils] Color contrast analysis started...")),e===t.domNode)a=t;else{const o=new Set;if(t.domNode.shadowRoot){const e=t.domNode.shadowRoot.children;for(let t=0;t<e.length;t++)o.add(e[t])}const r=t.domNode;if("function"==typeof r.assignedNodes){const e=r.assignedNodes();for(let t=0;t<e.length;t++)e[t]instanceof HTMLElement&&o.add(e[t])}const n=t.domNode.children;for(let e=0;e<n.length;e++)o.add(n[e]);const l=Array.from(o);for(let o=0;o<l.length;o++){let r=I.cache.get(l[o]);void 0===r&&(r=K(l[o],t)),I.cache.set(l[o],r);const n=I.queryHtmlElementColors(e,r,!0,!1);if(null!==n){a=n;break}}}else r.debug("[KoliBriUtils] Call aborted because a color contrast analysis is currently being executed.");return!1===o&&(!0===n&&r.debug(`[KoliBriUtils] Color contrast analysis finished (${I.cache.size} DOM elements are analysed).`),I.executionLock=!1,I.cache.clear()),a}}I.executionLock=!1,I.cache=new Map;class U{}U.patchTheme=i,U.patchThemeTag=l,U.querySelector=J,U.querySelectorAll=q,U.scrollByHTMLElement=W,U.scrollBySelector=F,U.stringifyJson=L;export{U as K,N as a,M as b,O as c,w as d,P as e,j as f,H as g,F as h,g as i,I as j,J as k,K as l,A as m,q as n,b as o,C as p,R as q,f as r,S as s,L as t,E as w};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{e as t}from"./a11y.tipps-7e981511.js";import{f as a}from"./prop.validators-6128c2dd.js";const e={hooks:{afterPatch:a=>{-1!==a&&0!==a&&t("Don’t Use Tabindex Greater than 0: https://adrianroselli.com/2014/11/dont-use-tabindex-greater-than-0.html")}}},o=(t,o)=>{a(t,"_tabIndex",o,e)};export{o as v};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{u as o}from"./a11y.tipps-7e981511.js";import{c as s}from"./prop.validators-6128c2dd.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};
|