@public-ui/components 1.1.7 → 1.1.9-rc.1
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 +3 -3
- package/dist/cjs/{a11y.tipps-54ec8bae.js → a11y.tipps-c34c01ad.js} +1 -1
- package/dist/cjs/app-globals-709b90be.js +4 -0
- package/dist/cjs/{button-link-4380f157.js → button-link-72083682.js} +1 -1
- package/dist/cjs/{controller-f4eac510.js → controller-4d78d21d.js} +1 -1
- package/dist/cjs/controller-74427691.js +4 -0
- package/dist/cjs/{controller-df507ca2.js → controller-74b7c74a.js} +1 -1
- package/dist/cjs/{controller-2a7b57a1.js → controller-a6ee36d7.js} +1 -1
- package/dist/cjs/{controller-7c2e68bd.js → controller-e524ee59.js} +1 -1
- package/dist/cjs/{controller-2e60fafc.js → controller-fa955daf.js} +1 -1
- package/dist/cjs/dev.utils-d0a4bbec.js +4 -0
- package/dist/cjs/devtools-dd744fee.js +4 -0
- package/dist/cjs/{icon-d3e06146.js → icon-0741e060.js} +1 -1
- package/dist/cjs/index-009cdc55.js +4 -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-wc_3.cjs.entry.js +1 -1
- package/dist/cjs/kol-card.cjs.entry.js +1 -1
- package/dist/cjs/kol-details.cjs.entry.js +1 -1
- package/dist/cjs/kol-form.cjs.entry.js +1 -1
- package/dist/cjs/kol-icon.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-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-78c2b613.js +4 -0
- package/dist/cjs/{validation-846b8c03.js → validation-b8c30c47.js} +1 -1
- package/dist/cjs/{validation-5005bdab.js → validation-d475c7d2.js} +1 -1
- package/dist/components/component.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/component4.js +1 -1
- package/dist/components/component5.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/index.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-details.js +1 -1
- package/dist/components/kol-form.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-radio-group.js +1 -1
- package/dist/components/kol-input-range.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/prop.validators.js +1 -1
- package/dist/components/validation.js +1 -1
- package/dist/custom-elements/index.js +1 -1
- package/dist/esm/{a11y.tipps-14d41e3b.js → a11y.tipps-79d0562a.js} +1 -1
- package/dist/esm/app-globals-87803a5f.js +4 -0
- package/dist/esm/{button-link-6715264c.js → button-link-9e9d1eb2.js} +1 -1
- package/dist/esm/{controller-e556da76.js → controller-02308add.js} +1 -1
- package/dist/esm/{controller-c59f4b61.js → controller-427b05f1.js} +1 -1
- package/dist/esm/{controller-111c85f2.js → controller-6a2353f1.js} +1 -1
- package/dist/esm/{controller-c9cc6084.js → controller-e3787ba1.js} +1 -1
- package/dist/esm/{controller-bd2e73a0.js → controller-e3d285c6.js} +1 -1
- package/dist/esm/{controller-de29b073.js → controller-e694a3a2.js} +1 -1
- package/dist/esm/dev.utils-bbaf8793.js +4 -0
- package/dist/esm/devtools-f324fb75.js +4 -0
- package/dist/esm/{icon-1caba0f3.js → icon-925a4868.js} +1 -1
- package/dist/esm/index-315c6aa5.js +4 -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-wc_3.entry.js +1 -1
- package/dist/esm/kol-card.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-icon.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-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/prop.validators-6a82cc72.js +4 -0
- package/dist/esm/validation-6f111a8b.js +4 -0
- package/dist/esm/validation-8bc3a91b.js +4 -0
- package/dist/kolibri/{a11y.tipps-14d41e3b.js → a11y.tipps-79d0562a.js} +1 -1
- package/dist/kolibri/app-globals-87803a5f.js +4 -0
- package/dist/kolibri/button-link-9e9d1eb2.js +4 -0
- package/dist/kolibri/{controller-e556da76.js → controller-02308add.js} +1 -1
- package/dist/kolibri/controller-427b05f1.js +4 -0
- package/{www/build/controller-111c85f2.js → dist/kolibri/controller-6a2353f1.js} +1 -1
- package/dist/kolibri/{controller-c9cc6084.js → controller-e3787ba1.js} +1 -1
- package/dist/kolibri/{controller-bd2e73a0.js → controller-e3d285c6.js} +1 -1
- package/dist/kolibri/{controller-de29b073.js → controller-e694a3a2.js} +1 -1
- package/dist/kolibri/dev.utils-bbaf8793.js +4 -0
- package/dist/kolibri/devtools-f324fb75.js +4 -0
- package/dist/kolibri/{icon-1caba0f3.js → icon-925a4868.js} +1 -1
- package/dist/kolibri/index-315c6aa5.js +4 -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-wc_3.entry.js +1 -1
- package/dist/kolibri/kol-card.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-icon.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-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-6a82cc72.js +4 -0
- package/dist/kolibri/validation-6f111a8b.js +4 -0
- package/{www/build/validation-6a53b8ae.js → dist/kolibri/validation-8bc3a91b.js} +1 -1
- package/dist/types/utils/prop.validators.d.ts +0 -7
- package/jest-test-results.json +1 -1
- package/package.json +1 -1
- package/vscode-custom-data.json +78 -78
- package/www/build/{a11y.tipps-14d41e3b.js → a11y.tipps-79d0562a.js} +1 -1
- package/www/build/app-globals-87803a5f.js +4 -0
- package/www/build/button-link-9e9d1eb2.js +4 -0
- package/www/build/{controller-e556da76.js → controller-02308add.js} +1 -1
- package/www/build/controller-427b05f1.js +4 -0
- package/{dist/kolibri/controller-111c85f2.js → www/build/controller-6a2353f1.js} +1 -1
- package/www/build/{controller-c9cc6084.js → controller-e3787ba1.js} +1 -1
- package/www/build/{controller-bd2e73a0.js → controller-e3d285c6.js} +1 -1
- package/www/build/{controller-de29b073.js → controller-e694a3a2.js} +1 -1
- package/www/build/dev.utils-bbaf8793.js +4 -0
- package/www/build/devtools-f324fb75.js +4 -0
- package/www/build/{icon-1caba0f3.js → icon-925a4868.js} +1 -1
- package/www/build/index-315c6aa5.js +4 -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-wc_3.entry.js +1 -1
- package/www/build/kol-card.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-icon.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-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-6a82cc72.js +4 -0
- package/www/build/validation-6f111a8b.js +4 -0
- package/{dist/kolibri/validation-6a53b8ae.js → www/build/validation-8bc3a91b.js} +1 -1
- package/www/index.html +1 -1
- package/dist/cjs/app-globals-bc902400.js +0 -4
- package/dist/cjs/controller-31aca951.js +0 -4
- package/dist/cjs/dev.utils-3c37c3f3.js +0 -4
- package/dist/cjs/devtools-b7556d66.js +0 -4
- package/dist/cjs/prop.validators-490c913d.js +0 -4
- package/dist/cjs/register-2a6fd996.js +0 -4
- package/dist/esm/app-globals-6a53c357.js +0 -4
- package/dist/esm/dev.utils-c9cfb9a5.js +0 -4
- package/dist/esm/devtools-21f99213.js +0 -4
- package/dist/esm/prop.validators-5f63352c.js +0 -4
- package/dist/esm/register-c6216033.js +0 -4
- package/dist/esm/validation-6a53b8ae.js +0 -4
- package/dist/esm/validation-bc7df42a.js +0 -4
- package/dist/kolibri/app-globals-6a53c357.js +0 -4
- package/dist/kolibri/button-link-6715264c.js +0 -4
- package/dist/kolibri/controller-c59f4b61.js +0 -4
- package/dist/kolibri/dev.utils-c9cfb9a5.js +0 -4
- package/dist/kolibri/devtools-21f99213.js +0 -4
- package/dist/kolibri/prop.validators-5f63352c.js +0 -4
- package/dist/kolibri/register-c6216033.js +0 -4
- package/dist/kolibri/validation-bc7df42a.js +0 -4
- package/www/build/app-globals-6a53c357.js +0 -4
- package/www/build/button-link-6715264c.js +0 -4
- package/www/build/controller-c59f4b61.js +0 -4
- package/www/build/dev.utils-c9cfb9a5.js +0 -4
- package/www/build/devtools-21f99213.js +0 -4
- package/www/build/prop.validators-5f63352c.js +0 -4
- package/www/build/register-c6216033.js +0 -4
- package/www/build/validation-bc7df42a.js +0 -4
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - the accessible web component library
|
|
3
|
-
*/
|
|
4
|
-
import{g as e,a as t,I as n,L as r}from"./dev.utils-c9cfb9a5.js";import{s as o,f as i}from"./index.m-df5ce03f.js";import{d as l}from"./a11y.tipps-14d41e3b.js";import{p as a,a as s}from"./register-c6216033.js";const c=(e,t)=>{t.forEach((t=>{!1===e.has(t)&&e.add(t)}))},u=(e,t=document)=>{if(t instanceof Document||t instanceof HTMLElement||t instanceof ShadowRoot){const o=new Set;c(o,t.querySelectorAll(e));const r=t.querySelectorAll('[class*="hydrated"]');for(let t=0;t<r.length;t++){const n=r[t].shadowRoot;c(o,u(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.")},f=(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=f(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 d=m;function m(e){var t=v(e);return 3==t.length?t.concat(255):(t[3]=Math.round(t[3]),t)}function v(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=y(t[0]),n=y(t[1]),l=y(t[2]),a=3==o?255:y(t[3]);if(isNaN(r)||isNaN(n)||isNaN(l)||isNaN(a))return;return[r,n,l,a]}}(e)||function(e){var t=e.replace(/^#/,""),o=t.length;if(6==o||8==o){var r=y(t.slice(0,2)),n=y(t.slice(2,4)),l=y(t.slice(4,6)),a=6==o?255:y(t.slice(6,8));if(isNaN(r)||isNaN(n)||isNaN(l)||isNaN(a))return;return[r,n,l,a]}}(e)||function(e){if("rgb("==e.substr(0,4)){var t=(e=e.match(/^rgb\(([^)]+)\)/)[1]).split(/ *, */).map(Number),o=p(t[0],!0),r=p(t[1],!0),n=p(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=p(t[0],!0),r=p(t[1],!0),n=p(t[2],!0),l=p(255*t[3]);if(-1!=o&&-1!=r&&-1!=n&&-1!=l)return[o,r,n,l]}}(e)||[0,0,0,255]:function(e){if("[object Object]"===Object.prototype.toString.call(e)&&Object.getPrototypeOf(e)===Object.getPrototypeOf({})){var t=p(null!=e.r?e.r:null!=e.red?e.red:0,!0),o=p(null!=e.g?e.g:null!=e.green?e.green:0,!0),r=p(null!=e.b?e.b:null!=e.blue?e.blue:0,!0),n=p(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=p(e[0],!0),o=p(e[1],!0),r=p(e[2],!0),n=p(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 h(e){var t=e.toString(16);return 1==t.length?"0"+t:t}function y(e){return 1==e.length?parseInt(e+e,16):parseInt(e,16)}function p(e,t){return"number"!=typeof e||!0===t&&Math.floor(e)!==e?-1:e>=0&&e<=255?e:-1}d.arr=m,d.obj=function(e){var t=v(e);return{r:t[0],g:t[1],b:t[2],a:3==t.length?255:Math.round(t[3])}},d.css=function(e){var t=v(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)+")"},d.hex=function(e){3==(l=v(e)).length&&l.push(255);var t=255==l[3],o=h(l[0]),r=h(l[1]),n=h(l[2]),l=h(Math.round(l[3])),a=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,l);return t?a?"#"+o.charAt(0)+r.charAt(0)+n.charAt(0):"#"+o+r+n:a?"#"+o.charAt(0)+r.charAt(0)+n.charAt(0)+l.charAt(0):"#"+o+r+n+l},d.num=function(e){var t=v(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 b=/\[object Object\]/,g=(e,t)=>{"string"==typeof e&&b.test(e)||t()},w=(e,t)=>{"string"==typeof e&&""===e||t()},S=(e,t)=>{Object.defineProperty(e,"target",{value:t,writable:!1}),null==e||e.stopPropagation()},N=(e,t,o,r={})=>{var n,l;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===(l=e.nextHooks.get(t))||void 0===l||l.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))},M=(e,t,o,r,n,a={})=>{!o(n)||void 0!==(null==a?void 0:a.allowNull)&&!1!==(null==a?void 0:a.allowNull)&&null!==n?void 0!==(null==a?void 0:a.defaultValue)||void 0===(null==a?void 0:a.required)||!1===(null==a?void 0:a.required)?N(e,t,null==a?void 0:a.defaultValue,null==a?void 0:a.hooks):(!0===a.allowNull&&r.add(null),!0!==a.required&&r.add(void 0),((e,t,o,r)=>{l(`[${e.constructor.name}] Der Property-Wert (${o}) für '${t}' ist nicht valide. Folgende Werte sind erlaubt: ${Array.from(r).join(", ")}`)})(e,t,n,r)):N(e,t,n,null==a?void 0:a.hooks)},E=(e,t,o,r)=>{M(e,t,(e=>"boolean"==typeof e),new Set(["Boolean {true, false}"]),o,r)},j=(e,t,o,r)=>{M(e,t,(e=>"string"==typeof e&&e.length>=("number"==typeof(null==r?void 0:r.minLength)?null==r?void 0:r.minLength:1)),new Set(["String (nicht leer)"]),o,r)},k=(e,t,o,r)=>{M(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,n=(e=>e==e),a={})=>{w(r,(()=>{g(r,(()=>{void 0===r&&(r=[]);try{if("string"==typeof r&&(r=T(r)),Array.isArray(r)){const l=r.find((e=>!o(e)));void 0===l&&n(r)?N(e,t,r,a.hooks):g(l,(()=>{throw console.log(l),new Error("↑ Das Schema für das Property (_options) ist nicht valide. Der Wert wird nicht geändert.")}))}else g(r,(()=>{throw new Error("↑ Das Schema für das Property (_options) ist nicht valide. Der Wert wird nicht geändert.")}))}catch(e){l("Known bug: Zeichenkettenliste (string[])")}}))}))},D=e=>{try{return JSON.stringify(e).replace(/"/g,"'")}catch(e){throw new Error("↑ Das JSON konnte nicht in einen String umgewandelt werden. Es wird ein stringifizierbares JSON erwartet.")}},T=e=>{try{return JSON.parse(e)}catch(t){try{return JSON.parse(e.replace(/'/g,'"'))}catch(e){throw new Error("↑ Der JSON-String konnte nicht geparsed werden. Achten Sie darauf, dass einfache Anführungszeichen im Text maskiert werden (‘).")}}},H=e=>"boolean"==typeof e?!0===e?"true":"false":void 0,L=e=>"string"==typeof e?e:H(e),C=(t,o)=>f(t,o||e()),P=(t,o)=>u(t,o||e());let A=null;const $=()=>(A=A||{backgroundColor:"#00000000",color:"#00000000",domNode:e().body,level:"Fail",score:1},A),B=/(\d+, ){3}0\)/,J=(e,t=$())=>{const n=getComputedStyle(e),l=B.test(n.backgroundColor)?t.backgroundColor:d.hex(n.backgroundColor),a=B.test(n.color)?t.color:d.hex(n.color),s=o(l,a),c={backgroundColor:l,color:a,domNode:e,level:i(s),score:s};return s<4.5&&r.error(["Color-Contrast-Error",{backgroundColor:c.backgroundColor,color:c.color,level:c.level,score:c.score},c.domNode]),c},K=(e,t=$())=>{t.domNode instanceof HTMLElement&&(t=J(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=K(e,t)).domNode);r++);return t}return J(o,t)},q=(e,o=window)=>{e instanceof HTMLElement?(o.scrollTo({behavior:"smooth",top:e.getBoundingClientRect().top+t().pageYOffset-50}),e.focus()):l("Das HTMLElement ist nicht valide, zu dem gescrollt werden soll.")},x=(e,t)=>{if((e instanceof Document||e instanceof HTMLElement||e instanceof ShadowRoot)&&"string"==typeof t){l("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=C(e,t);o instanceof HTMLElement?q(o):l(`Es konnte kein HTMLElement mit dem Selector (${e}) gefunden werden, zu dem gescrollt werden soll.`)}else l("Der Selector ist nicht valide, zu dem gescrollt werden soll.")};class z{static queryHtmlElementColors(e,t,o=!1,n=!0){let l=null;if(!0===o||!1===z.executionLock)if(!1===o&&(z.cache.clear(),z.cache.set(t.domNode,t),z.executionLock=!0,!0===n&&r.debug("[KoliBriUtils] Color contrast analysis started...")),e===t.domNode)l=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 a=Array.from(o);for(let o=0;o<a.length;o++){let r=z.cache.get(a[o]);void 0===r&&(r=J(a[o],t)),z.cache.set(a[o],r);const n=z.queryHtmlElementColors(e,r,!0,!1);if(null!==n){l=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 (${z.cache.size} DOM elements are analysed).`),z.executionLock=!1,z.cache.clear()),l}}z.executionLock=!1,z.cache=new Map;class R{}R.keyStore=new class extends n{constructor(){super(...arguments),this.store=new Map}register(e,t){return this.store.set(e,t),this}get(e){if(this.store.has(e))return this.store.get(e);throw new Error(`No value for key '${e}' in KoliBri-Store found.`)}},R.patchTheme=a,R.patchThemeTag=s,R.querySelector=C,R.querySelectorAll=P,R.scrollByHTMLElement=q,R.scrollBySelector=x,R.stringifyJson=D;export{R as K,M as a,E as b,O as c,k as d,S as e,w as f,H as g,x as h,z as i,J as j,C as k,P as l,L as m,K as n,g as o,T as p,D as q,d as r,N as s,j as w};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - the accessible web component library
|
|
3
|
-
*/
|
|
4
|
-
import{l as e}from"./dev.utils-c9cfb9a5.js";const t=[];class o{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===o.instances.has(e)&&o.instances.set(e,new o(e)),o.instances.get(e);throw new Error("The identifier of the Logger must be a string with a min length of 1.")}log(r,n){switch("object"==typeof n.refObject&&null!==n.refObject&&"function"==typeof n.refObject.constructor&&"string"==typeof n.refObject.constructor.name&&(n.className=`[${n.refObject.constructor.name}]:`),t.push({date:(new Date).toUTCString(),level:r,message:n}),r){case"trace":e.trace(...this.shield,n);break;case"debug":e.debug(...this.shield,n);break;case"info":e.info(...this.shield,n);break;case"warn":e.warn(...this.shield,n);break;default:e.error(...this.shield,n)}}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(t)}}o.instances=new Map,e.setDefaultLevel("error");const n=o.getInstance("leanup"),r="object"==typeof window?window:"object"==typeof global?global:"object"==typeof self?self:{};let s=!1;const l=(e,t,o)=>{!1===s&&(s=!0,n.warn(`[Theming] The theme process is locked. This means that the theme "${e}" should not be patched.\n\nimport { register } from '@a11y-ui/core';\nimport { defineCustomElements } from '...';\nimport { THEME } from '...';\n\nregister(THEME, defineCustomElements)\n\t.then(() => {\n\t\tconst htmlDivElement: HTMLDivElement | null = document.querySelector<HTMLDivElement>('div#app');\n if (htmlDivElement instanceof HTMLDivElement) {\n const root = createRoot(htmlDivElement);\n root.render(<AppComponent />);\n }\n })\n .catch(console.warn);`,{forceLog:!0})),"object"==typeof r.A11yUi&&null!==r.A11yUi||(r.A11yUi={}),"object"!=typeof r.A11yUi||null===r.A11yUi||"object"==typeof r.A11yUi.Themes&&null!==r.A11yUi.Themes||(r.A11yUi.Themes={}),"object"!=typeof r.A11yUi||null===r.A11yUi||"object"!=typeof r.A11yUi.Themes||null===r.A11yUi.Themes||"object"==typeof r.A11yUi.Themes[e]&&null!==r.A11yUi.Themes[e]||(r.A11yUi.Themes[e]={}),"object"==typeof r.A11yUi&&null!==r.A11yUi&&"object"==typeof r.A11yUi.Themes&&null!==r.A11yUi.Themes&&"object"==typeof r.A11yUi.Themes[e]&&null!==r.A11yUi.Themes[e]&&(r.A11yUi.Themes[e][t]=o)},i=(e,t)=>("object"==typeof t&&null!==t&&Object.getOwnPropertyNames(t).forEach((r=>{const n=t[r];"string"==typeof n&&n.length>0&&l(e,r,n)})),e),c=e=>{if(e instanceof HTMLElement){if("string"==typeof e.dataset.theme)return e;{let t=e.parentNode;for(;t instanceof ShadowRoot;)t=t.host;return c(t)}}return null},a=e=>{if("object"==typeof r.A11yUi&&null!==r.A11yUi&&"object"==typeof r.A11yUi.Theme&&null!==r.A11yUi.Theme&&"boolean"==typeof r.A11yUi.Theme.cache&&"string"==typeof r.A11yUi.Theme.name&&"boolean"==typeof r.A11yUi.Theme.reset)return r.A11yUi.Theme;{const t=c(e);return t instanceof HTMLElement?{cache:"false"!==t.dataset.themeCache,name:t.dataset.theme||null,reset:"false"!==t.dataset.themeReset}:{cache:!0,name:null,reset:!0}}};export{r as G,l as a,a as g,i as p};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - the accessible web component library
|
|
3
|
-
*/
|
|
4
|
-
import{u as o}from"./a11y.tipps-14d41e3b.js";import{c as s}from"./prop.validators-5f63352c.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{s as e}from"./index-bc1a7f22.js";import{L as t}from"./dev.utils-c9cfb9a5.js";import{G as n,g as o}from"./register-c6216033.js";const i=new Set,l=new Map,s=new Map,c=(e,t,o)=>{var a,c,r,h,d,f;if(!0===e&&l.has(t)&&(null===(a=l.get(t))||void 0===a?void 0:a.has(o)))return null===(c=l.get(t))||void 0===c?void 0:c.get(o);if(!0===e&&s.has(t)&&(null===(r=s.get(t))||void 0===r?void 0:r.has(o)))return null===(h=s.get(t))||void 0===h?void 0:h.get(o);if("object"==typeof n.A11yUi&&null!==n.A11yUi&&"object"==typeof n.A11yUi.Themes&&null!==n.A11yUi.Themes&&"object"==typeof n.A11yUi.Themes[t]&&null!==n.A11yUi.Themes[t]&&"string"==typeof n.A11yUi.Themes[t][o]){if(("GLOBAL"===o||"PROPERTIES"===o)&&!1===i.has(t)){let e=n.A11yUi.Themes[t][o].match(/--[^;]+/g);if(Array.isArray(e)){e=e.filter((e=>/:/.test(e)));const n=document.createElement("style");n.innerHTML=`.${t} {${e.join(";")}}`,null===(d=document.querySelector("head"))||void 0===d||d.appendChild(n)}i.add(t)}let s;try{s=new CSSStyleSheet,"function"==typeof s.replaceSync&&s.replaceSync(n.A11yUi.Themes[t][o]),!0===e&&(!1===l.has(t)&&l.set(t,new Map),null===(f=l.get(t))||void 0===f||f.set(o,s))}catch(e){s=document.createElement("style"),s.innerHTML=n.A11yUi.Themes[t][o]}return s}return null},r=e=>{for(const t of Array.from(e.childNodes)){if(!(t instanceof HTMLElement&&"STYLE"===t.tagName))break;e.removeChild(t)}},f="* {\n font-size: inherit;\n hyphens: auto;\n letter-spacing: inherit;\n word-break: break-word;\n word-spacing: inherit;\n}",a=(e,t,n,s)=>{const i=setTimeout((()=>{if(clearTimeout(i),e.classList.contains("hydrated")){r(t);const i=new CSSStyleSheet;"function"==typeof i.replaceSync&&i.replaceSync(f),n.unshift(i),t.adoptedStyleSheets=n,e.style.display=s}else a(e,t,n,s)}),25)},u=(e,t,n,s)=>{const i=setTimeout((()=>{if(clearTimeout(i),e.classList.contains("hydrated")){r(t);const i=document.createElement("style");i.innerHTML=f,n.unshift(i);const l=t.firstChild;n.forEach((e=>{l instanceof HTMLElement?t.insertBefore(e,l):t.appendChild(e)})),e.style.display=s}else u(e,t,n,s)}),25)},d=()=>{t.info("\n,--. ,--. ,--. ,--. ,-----. ,--.\n| .' / ,---. | | `--' | |) /_ ,--.--. `--'\n| . ' | .-. | | | ,--. | .-. \\ | .--' ,--.\n| |\\ \\ | '-' | | | | | | '--' / | | | |\n`--' `--´ `---´ `--' `--' `------´ `--' `--'\n - the accessible web component library -\n"),e((e=>(e.shadowRoot instanceof ShadowRoot&&((e,t)=>{var n;const s=t.name||"default",i=t.cache,l=t.reset,o=c(i,s,"GLOBAL"),r=c(i,s,e.tagName),h=e.shadowRoot;if(r instanceof CSSStyleSheet&&r.cssRules.length>0){const t=[];!1===l&&(null===(n=h.adoptedStyleSheets)||void 0===n||n.forEach((e=>{t.push(e)}))),o instanceof CSSStyleSheet&&o.cssRules.length>0&&!1===t.includes(o)&&t.push(o),r instanceof CSSStyleSheet&&r.cssRules.length>0&&!1===t.includes(r)&&t.push(r);const s=e.style.display;e.style.display="none",a(e,h,t,s)}else if(r instanceof HTMLStyleElement&&r.innerHTML.length>0){const t=[];if(!1===l)for(const e of Array.from(h.childNodes)){if(!(e instanceof HTMLStyleElement))break;t.push(e)}o instanceof HTMLStyleElement&&o.innerHTML.length>0&&!1===t.includes(o)&&t.push(o),r instanceof HTMLStyleElement&&r.innerHTML.length>0&&!1===t.includes(r)&&t.push(r);const n=e.style.display;e.style.display="none",u(e,h,t,n)}})(e,o(e)),"default"))),import("./devtools-21f99213.js").then((e=>{"object"==typeof e&&null!==e&&"function"==typeof e.initialize&&e.initialize()})).catch((e=>{t.error(e)}))};export{d as g};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - the accessible web component library
|
|
3
|
-
*/
|
|
4
|
-
import{a as t}from"./prop.validators-5f63352c.js";const o=(o,e)=>{t(o,"_showAs",(t=>"button"===t||"link"===t),new Set(["String {button, link}"]),e)},e=(o,e,n)=>{t(o,e,(t=>"top"===t||"right"===t||"bottom"===t||"left"===t),new Set(["TooltipAlignment {top, right, buttom, left}"]),n,{defaultValue:"top"})};export{o as a,e as w};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - the accessible web component library
|
|
3
|
-
*/
|
|
4
|
-
import{e}from"./a11y.tipps-14d41e3b.js";import{a}from"./prop.validators-5f63352c.js";const r=(a,t,r,i)=>{const s=t.has("_ariaLabel")?t.get("_ariaLabel"):r.state._ariaLabel;if("string"==typeof s&&s.length>0){const a=t.has("_label")?t.get("_label"):r.state._label;!1===new RegExp(`^${a}`).test(s)&&("_ariaLabel"===i?(t.set("_label",s),r._label=s):(t.set("_ariaLabel",a),r._ariaLabel=a),e("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=(e,t,r)=>{a(e,t,(e=>"button"===e||"reset"===e||"submit"===e),new Set(["KoliBriButtonType {button, reset, submit}"]),r)},i=(e,t,r)=>{a(e,t,(e=>"primary"===e||"secondary"===e||"normal"===e||"danger"===e||"ghost"===e||"custom"===e),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"),r.getInstance("leanup");class l{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"})),f().body.style.maxHeight="100vh",f().body.style.overflow="hidden",this.lockFocus(f().body,t)}else f().body.style.maxHeight="unset",f().body.style.overflow="unset"}openModal(e,t){e instanceof HTMLElement==0?b.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)b.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 c{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 a=null,u=null;const h=e=>{e instanceof Window?(a=e,a.document instanceof Document?u=e.document:console.warn("The given Window has no valid Document.")):console.warn("The given Window is not valid.")},d=()=>a||"undefined"==typeof window?null:window,f=()=>u||void 0===d().document?null:d().document;let w=null,g=null,p=null;const v=()=>!0===g,y=()=>!0===p;class b{static mapToArray(e){return Array.isArray(e)?e:[e]}static handleClassifier(e){return"string"==typeof e&&e.length>0?`${b.shield.label} | ${e}`:b.shield.label}static getShield(e){return[b.handleClassifier(null==e?void 0:e.classifier),`${b.shield.style};${(null==e?void 0:e.overwriteStyle)||""}`]}static debug(e,t){(g||!0===(null==t?void 0:t.forceLog))&&console.log(...b.getShield(t),...b.mapToArray(e))}static info(e,t){(g||!0===(null==t?void 0:t.forceLog))&&console.info(...b.getShield(t),...b.mapToArray(e))}static trace(e,t){(g||!0===(null==t?void 0:t.forceLog))&&console.trace(...b.getShield(t),...b.mapToArray(e))}static warn(e,t){(g||!0===(null==t?void 0:t.forceLog))&&console.warn(...b.getShield(t),...b.mapToArray(e))}static error(e,t){(g||!0===(null==t?void 0:t.forceLog))&&console.error(...b.getShield(t),...b.mapToArray(e))}static throw(e,t){if(g||!0===(null==t?void 0:t.forceLog))throw new Error(...b.getShield(t),...b.mapToArray(e))}}b.shield={label:"%cKoliBri",style:"color: white; background: #666; font-weight: bold; padding: .25em .5em; border-radius: 3px; border: 1px solid #000"};let m=null;const T=()=>m||{},E=()=>{null===m?(m=d().KoliBri||{},i.register("Modal",new l),i.register("Toaster",new c(f())),Object.defineProperty(m,"DI",{get:function(){return i}}),Object.defineProperty(m,"Modal",{get:function(){return i.get("Modal")}}),Object.defineProperty(m,"Toaster",{get:function(){return i.get("Toaster")}}),(()=>{if(null===g&&null===p){const e=f().querySelector('meta[name="kolibri"]');e&&e.hasAttribute("content")&&(w=e.getAttribute("content"),"string"==typeof w&&(g=w.includes("dev-mode=true"),p=w.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.")},M=()=>{void 0===d().KoliBri&&Object.defineProperty(window,"KoliBri",{get:function(){return m}}),!0!==T().adviceShown&&(Object.defineProperty(m,"adviceShown",{get:function(){return!0}}),b.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 x=()=>Math.floor(16777215*Math.random()).toString(16);export{o as I,m as K,b as L,c as T,d as a,T as b,h as c,v as d,y as e,f as g,E as i,n as l,x as n,M as r};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - the accessible web component library
|
|
3
|
-
*/
|
|
4
|
-
import{i as e,d as t,r as i,g as n,L as o,e as s,K as r}from"./dev.utils-c9cfb9a5.js";import{i as a,j as l,k as d,l as c,n as p,p as f,q as g}from"./prop.validators-5f63352c.js";import"./index.m-df5ce03f.js";import"./a11y.tipps-14d41e3b.js";import"./register-c6216033.js";function u(e,t){try{Object.defineProperty(r,e,{get:function(){return t}})}catch(t){o.debug(`KoliBri property ${e} is already bind.`)}}const L=()=>{if(e(),t()){i(),u("a11yColorContrast",l),u("querySelector",d),u("querySelectorAll",c),u("querySelectorColors",p),u("utils",(function(){return a})),u("parseJson",f),u("stringifyJson",g);const e=n().body,t=n().createElement("svg");if(t.setAttribute("aria-label","KoliBri-DevTools"),t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t.setAttribute("role","toolbar"),t.setAttribute("style","position: fixed;color: black;font-size: 200%;bottom: 0.25rem;right: 0.25rem;"),t.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>',n().body.appendChild(t),o.debug("Wer weiß, wie Intelligence im VS Code auch bei peerDependencies funktioniert?\n\nAutovervollständigung funktioniert bei uns nur mit Paketen, die auch in der package.json eingetragen sind unabhängig davon das sie in den node_modules liegen."),s()){o.debug("Color-Contrast-Analysis activated");const t=setTimeout((()=>{clearTimeout(t),setInterval((()=>{a.queryHtmlElementColors(n().createElement("div"),l(e),!1,!1)}),1e4)}),2500)}else o.debug("Color-Contrast-Analysis not activated")}};export{L as initialize};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - the accessible web component library
|
|
3
|
-
*/
|
|
4
|
-
import{g as e,a as t,I as n,L as r}from"./dev.utils-c9cfb9a5.js";import{s as o,f as i}from"./index.m-df5ce03f.js";import{d as l}from"./a11y.tipps-14d41e3b.js";import{p as a,a as s}from"./register-c6216033.js";const c=(e,t)=>{t.forEach((t=>{!1===e.has(t)&&e.add(t)}))},u=(e,t=document)=>{if(t instanceof Document||t instanceof HTMLElement||t instanceof ShadowRoot){const o=new Set;c(o,t.querySelectorAll(e));const r=t.querySelectorAll('[class*="hydrated"]');for(let t=0;t<r.length;t++){const n=r[t].shadowRoot;c(o,u(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.")},f=(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=f(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 d=m;function m(e){var t=v(e);return 3==t.length?t.concat(255):(t[3]=Math.round(t[3]),t)}function v(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=y(t[0]),n=y(t[1]),l=y(t[2]),a=3==o?255:y(t[3]);if(isNaN(r)||isNaN(n)||isNaN(l)||isNaN(a))return;return[r,n,l,a]}}(e)||function(e){var t=e.replace(/^#/,""),o=t.length;if(6==o||8==o){var r=y(t.slice(0,2)),n=y(t.slice(2,4)),l=y(t.slice(4,6)),a=6==o?255:y(t.slice(6,8));if(isNaN(r)||isNaN(n)||isNaN(l)||isNaN(a))return;return[r,n,l,a]}}(e)||function(e){if("rgb("==e.substr(0,4)){var t=(e=e.match(/^rgb\(([^)]+)\)/)[1]).split(/ *, */).map(Number),o=p(t[0],!0),r=p(t[1],!0),n=p(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=p(t[0],!0),r=p(t[1],!0),n=p(t[2],!0),l=p(255*t[3]);if(-1!=o&&-1!=r&&-1!=n&&-1!=l)return[o,r,n,l]}}(e)||[0,0,0,255]:function(e){if("[object Object]"===Object.prototype.toString.call(e)&&Object.getPrototypeOf(e)===Object.getPrototypeOf({})){var t=p(null!=e.r?e.r:null!=e.red?e.red:0,!0),o=p(null!=e.g?e.g:null!=e.green?e.green:0,!0),r=p(null!=e.b?e.b:null!=e.blue?e.blue:0,!0),n=p(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=p(e[0],!0),o=p(e[1],!0),r=p(e[2],!0),n=p(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 h(e){var t=e.toString(16);return 1==t.length?"0"+t:t}function y(e){return 1==e.length?parseInt(e+e,16):parseInt(e,16)}function p(e,t){return"number"!=typeof e||!0===t&&Math.floor(e)!==e?-1:e>=0&&e<=255?e:-1}d.arr=m,d.obj=function(e){var t=v(e);return{r:t[0],g:t[1],b:t[2],a:3==t.length?255:Math.round(t[3])}},d.css=function(e){var t=v(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)+")"},d.hex=function(e){3==(l=v(e)).length&&l.push(255);var t=255==l[3],o=h(l[0]),r=h(l[1]),n=h(l[2]),l=h(Math.round(l[3])),a=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,l);return t?a?"#"+o.charAt(0)+r.charAt(0)+n.charAt(0):"#"+o+r+n:a?"#"+o.charAt(0)+r.charAt(0)+n.charAt(0)+l.charAt(0):"#"+o+r+n+l},d.num=function(e){var t=v(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 b=/\[object Object\]/,g=(e,t)=>{"string"==typeof e&&b.test(e)||t()},w=(e,t)=>{"string"==typeof e&&""===e||t()},S=(e,t)=>{Object.defineProperty(e,"target",{value:t,writable:!1}),null==e||e.stopPropagation()},N=(e,t,o,r={})=>{var n,l;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===(l=e.nextHooks.get(t))||void 0===l||l.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))},M=(e,t,o,r,n,a={})=>{!o(n)||void 0!==(null==a?void 0:a.allowNull)&&!1!==(null==a?void 0:a.allowNull)&&null!==n?void 0!==(null==a?void 0:a.defaultValue)||void 0===(null==a?void 0:a.required)||!1===(null==a?void 0:a.required)?N(e,t,null==a?void 0:a.defaultValue,null==a?void 0:a.hooks):(!0===a.allowNull&&r.add(null),!0!==a.required&&r.add(void 0),((e,t,o,r)=>{l(`[${e.constructor.name}] Der Property-Wert (${o}) für '${t}' ist nicht valide. Folgende Werte sind erlaubt: ${Array.from(r).join(", ")}`)})(e,t,n,r)):N(e,t,n,null==a?void 0:a.hooks)},E=(e,t,o,r)=>{M(e,t,(e=>"boolean"==typeof e),new Set(["Boolean {true, false}"]),o,r)},j=(e,t,o,r)=>{M(e,t,(e=>"string"==typeof e&&e.length>=("number"==typeof(null==r?void 0:r.minLength)?null==r?void 0:r.minLength:1)),new Set(["String (nicht leer)"]),o,r)},k=(e,t,o,r)=>{M(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,n=(e=>e==e),a={})=>{w(r,(()=>{g(r,(()=>{void 0===r&&(r=[]);try{if("string"==typeof r&&(r=T(r)),Array.isArray(r)){const l=r.find((e=>!o(e)));void 0===l&&n(r)?N(e,t,r,a.hooks):g(l,(()=>{throw console.log(l),new Error("↑ Das Schema für das Property (_options) ist nicht valide. Der Wert wird nicht geändert.")}))}else g(r,(()=>{throw new Error("↑ Das Schema für das Property (_options) ist nicht valide. Der Wert wird nicht geändert.")}))}catch(e){l("Known bug: Zeichenkettenliste (string[])")}}))}))},D=e=>{try{return JSON.stringify(e).replace(/"/g,"'")}catch(e){throw new Error("↑ Das JSON konnte nicht in einen String umgewandelt werden. Es wird ein stringifizierbares JSON erwartet.")}},T=e=>{try{return JSON.parse(e)}catch(t){try{return JSON.parse(e.replace(/'/g,'"'))}catch(e){throw new Error("↑ Der JSON-String konnte nicht geparsed werden. Achten Sie darauf, dass einfache Anführungszeichen im Text maskiert werden (‘).")}}},H=e=>"boolean"==typeof e?!0===e?"true":"false":void 0,L=e=>"string"==typeof e?e:H(e),C=(t,o)=>f(t,o||e()),P=(t,o)=>u(t,o||e());let A=null;const $=()=>(A=A||{backgroundColor:"#00000000",color:"#00000000",domNode:e().body,level:"Fail",score:1},A),B=/(\d+, ){3}0\)/,J=(e,t=$())=>{const n=getComputedStyle(e),l=B.test(n.backgroundColor)?t.backgroundColor:d.hex(n.backgroundColor),a=B.test(n.color)?t.color:d.hex(n.color),s=o(l,a),c={backgroundColor:l,color:a,domNode:e,level:i(s),score:s};return s<4.5&&r.error(["Color-Contrast-Error",{backgroundColor:c.backgroundColor,color:c.color,level:c.level,score:c.score},c.domNode]),c},K=(e,t=$())=>{t.domNode instanceof HTMLElement&&(t=J(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=K(e,t)).domNode);r++);return t}return J(o,t)},q=(e,o=window)=>{e instanceof HTMLElement?(o.scrollTo({behavior:"smooth",top:e.getBoundingClientRect().top+t().pageYOffset-50}),e.focus()):l("Das HTMLElement ist nicht valide, zu dem gescrollt werden soll.")},x=(e,t)=>{if((e instanceof Document||e instanceof HTMLElement||e instanceof ShadowRoot)&&"string"==typeof t){l("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=C(e,t);o instanceof HTMLElement?q(o):l(`Es konnte kein HTMLElement mit dem Selector (${e}) gefunden werden, zu dem gescrollt werden soll.`)}else l("Der Selector ist nicht valide, zu dem gescrollt werden soll.")};class z{static queryHtmlElementColors(e,t,o=!1,n=!0){let l=null;if(!0===o||!1===z.executionLock)if(!1===o&&(z.cache.clear(),z.cache.set(t.domNode,t),z.executionLock=!0,!0===n&&r.debug("[KoliBriUtils] Color contrast analysis started...")),e===t.domNode)l=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 a=Array.from(o);for(let o=0;o<a.length;o++){let r=z.cache.get(a[o]);void 0===r&&(r=J(a[o],t)),z.cache.set(a[o],r);const n=z.queryHtmlElementColors(e,r,!0,!1);if(null!==n){l=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 (${z.cache.size} DOM elements are analysed).`),z.executionLock=!1,z.cache.clear()),l}}z.executionLock=!1,z.cache=new Map;class R{}R.keyStore=new class extends n{constructor(){super(...arguments),this.store=new Map}register(e,t){return this.store.set(e,t),this}get(e){if(this.store.has(e))return this.store.get(e);throw new Error(`No value for key '${e}' in KoliBri-Store found.`)}},R.patchTheme=a,R.patchThemeTag=s,R.querySelector=C,R.querySelectorAll=P,R.scrollByHTMLElement=q,R.scrollBySelector=x,R.stringifyJson=D;export{R as K,M as a,E as b,O as c,k as d,S as e,w as f,H as g,x as h,z as i,J as j,C as k,P as l,L as m,K as n,g as o,T as p,D as q,d as r,N as s,j as w};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - the accessible web component library
|
|
3
|
-
*/
|
|
4
|
-
import{l as e}from"./dev.utils-c9cfb9a5.js";const t=[];class o{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===o.instances.has(e)&&o.instances.set(e,new o(e)),o.instances.get(e);throw new Error("The identifier of the Logger must be a string with a min length of 1.")}log(r,n){switch("object"==typeof n.refObject&&null!==n.refObject&&"function"==typeof n.refObject.constructor&&"string"==typeof n.refObject.constructor.name&&(n.className=`[${n.refObject.constructor.name}]:`),t.push({date:(new Date).toUTCString(),level:r,message:n}),r){case"trace":e.trace(...this.shield,n);break;case"debug":e.debug(...this.shield,n);break;case"info":e.info(...this.shield,n);break;case"warn":e.warn(...this.shield,n);break;default:e.error(...this.shield,n)}}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(t)}}o.instances=new Map,e.setDefaultLevel("error");const n=o.getInstance("leanup"),r="object"==typeof window?window:"object"==typeof global?global:"object"==typeof self?self:{};let s=!1;const l=(e,t,o)=>{!1===s&&(s=!0,n.warn(`[Theming] The theme process is locked. This means that the theme "${e}" should not be patched.\n\nimport { register } from '@a11y-ui/core';\nimport { defineCustomElements } from '...';\nimport { THEME } from '...';\n\nregister(THEME, defineCustomElements)\n\t.then(() => {\n\t\tconst htmlDivElement: HTMLDivElement | null = document.querySelector<HTMLDivElement>('div#app');\n if (htmlDivElement instanceof HTMLDivElement) {\n const root = createRoot(htmlDivElement);\n root.render(<AppComponent />);\n }\n })\n .catch(console.warn);`,{forceLog:!0})),"object"==typeof r.A11yUi&&null!==r.A11yUi||(r.A11yUi={}),"object"!=typeof r.A11yUi||null===r.A11yUi||"object"==typeof r.A11yUi.Themes&&null!==r.A11yUi.Themes||(r.A11yUi.Themes={}),"object"!=typeof r.A11yUi||null===r.A11yUi||"object"!=typeof r.A11yUi.Themes||null===r.A11yUi.Themes||"object"==typeof r.A11yUi.Themes[e]&&null!==r.A11yUi.Themes[e]||(r.A11yUi.Themes[e]={}),"object"==typeof r.A11yUi&&null!==r.A11yUi&&"object"==typeof r.A11yUi.Themes&&null!==r.A11yUi.Themes&&"object"==typeof r.A11yUi.Themes[e]&&null!==r.A11yUi.Themes[e]&&(r.A11yUi.Themes[e][t]=o)},i=(e,t)=>("object"==typeof t&&null!==t&&Object.getOwnPropertyNames(t).forEach((r=>{const n=t[r];"string"==typeof n&&n.length>0&&l(e,r,n)})),e),c=e=>{if(e instanceof HTMLElement){if("string"==typeof e.dataset.theme)return e;{let t=e.parentNode;for(;t instanceof ShadowRoot;)t=t.host;return c(t)}}return null},a=e=>{if("object"==typeof r.A11yUi&&null!==r.A11yUi&&"object"==typeof r.A11yUi.Theme&&null!==r.A11yUi.Theme&&"boolean"==typeof r.A11yUi.Theme.cache&&"string"==typeof r.A11yUi.Theme.name&&"boolean"==typeof r.A11yUi.Theme.reset)return r.A11yUi.Theme;{const t=c(e);return t instanceof HTMLElement?{cache:"false"!==t.dataset.themeCache,name:t.dataset.theme||null,reset:"false"!==t.dataset.themeReset}:{cache:!0,name:null,reset:!0}}};export{r as G,l as a,a as g,i as p};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - the accessible web component library
|
|
3
|
-
*/
|
|
4
|
-
import{u as o}from"./a11y.tipps-14d41e3b.js";import{c as s}from"./prop.validators-5f63352c.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};
|