@public-ui/components 1.1.11-rc.2 → 1.1.11-rc.3
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 +19 -13
- package/dist/cjs/{app-globals-6e05ba86.js → app-globals-39153418.js} +1 -1
- package/dist/cjs/{button-link-a7bfc254.js → button-link-a24c38b6.js} +1 -1
- package/dist/cjs/{controller-58df7e65.js → controller-1dd601ef.js} +1 -1
- package/dist/cjs/{controller-3b68cee3.js → controller-3fd0fec3.js} +1 -1
- package/dist/cjs/{controller-59bb5443.js → controller-8bd02c44.js} +1 -1
- package/dist/cjs/{controller-8416b39d.js → controller-9538707c.js} +1 -1
- package/dist/cjs/{controller-73726e4f.js → controller-b9521d6f.js} +1 -1
- package/dist/cjs/{controller-530e7698.js → controller-e19ffc02.js} +1 -1
- package/dist/cjs/{devtools-63761608.js → devtools-3e7cd094.js} +1 -1
- package/dist/cjs/{icon-158213cb.js → icon-5d44ff69.js} +1 -1
- package/dist/cjs/index-07448828.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-link.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-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-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-wc.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-5a6c471b.js → label-67aac40e.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{prop.validators-e6996125.js → prop.validators-743a74b9.js} +1 -1
- package/dist/cjs/{tab-index-66b118c0.js → tab-index-2f583ace.js} +1 -1
- package/dist/cjs/{validation-641f4c30.js → validation-8c349304.js} +1 -1
- package/dist/cjs/{validation-6d7b9aa0.js → validation-dc181808.js} +1 -1
- package/dist/components/component10.js +1 -1
- package/dist/components/component11.js +1 -1
- package/dist/components/component14.js +1 -1
- package/dist/components/controller4.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-password.js +1 -1
- package/dist/components/kol-input-radio-group.js +1 -1
- package/dist/components/kol-input-range.js +1 -1
- package/dist/components/kol-input-text.js +1 -1
- package/dist/components/prop.validators.js +1 -1
- package/dist/custom-elements/index.js +1 -1
- package/dist/esm/{app-globals-daf921ad.js → app-globals-2dbd424b.js} +1 -1
- package/dist/esm/{button-link-ef5135dc.js → button-link-fc772c87.js} +1 -1
- package/dist/esm/{controller-9cbb0153.js → controller-21762644.js} +1 -1
- package/dist/esm/{controller-e0c08aa1.js → controller-391de345.js} +1 -1
- package/dist/esm/{controller-2d55595b.js → controller-7a1f6859.js} +1 -1
- package/dist/esm/{controller-2c05cdae.js → controller-8e65fa9e.js} +1 -1
- package/dist/esm/{controller-62976bd8.js → controller-b7e433e2.js} +1 -1
- package/dist/esm/{controller-a7535a35.js → controller-fcb20ac8.js} +1 -1
- package/dist/esm/{devtools-d3feb71e.js → devtools-6749c812.js} +1 -1
- package/dist/esm/{icon-0bfea48a.js → icon-0f70ef67.js} +1 -1
- package/dist/esm/index-09eee154.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-link.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-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-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-wc.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-919a73c8.js → label-d640a1cc.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{prop.validators-0a1ccf64.js → prop.validators-52f20cba.js} +1 -1
- package/dist/esm/{tab-index-c61711b2.js → tab-index-0ac1b547.js} +1 -1
- package/dist/esm/{validation-4664ad06.js → validation-985202be.js} +1 -1
- package/dist/esm/{validation-6e5422b5.js → validation-e333ddb0.js} +1 -1
- package/dist/kolibri/{app-globals-daf921ad.js → app-globals-2dbd424b.js} +1 -1
- package/dist/kolibri/{button-link-ef5135dc.js → button-link-fc772c87.js} +1 -1
- package/dist/kolibri/{controller-9cbb0153.js → controller-21762644.js} +1 -1
- package/dist/kolibri/{controller-e0c08aa1.js → controller-391de345.js} +1 -1
- package/dist/kolibri/{controller-2d55595b.js → controller-7a1f6859.js} +1 -1
- package/dist/kolibri/controller-8e65fa9e.js +4 -0
- package/dist/kolibri/{controller-62976bd8.js → controller-b7e433e2.js} +1 -1
- package/dist/kolibri/{controller-a7535a35.js → controller-fcb20ac8.js} +1 -1
- package/dist/kolibri/{devtools-d3feb71e.js → devtools-6749c812.js} +1 -1
- package/dist/kolibri/{icon-0bfea48a.js → icon-0f70ef67.js} +1 -1
- package/dist/kolibri/index-09eee154.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-link.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-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-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-wc.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-919a73c8.js → label-d640a1cc.js} +1 -1
- package/dist/kolibri/{prop.validators-0a1ccf64.js → prop.validators-52f20cba.js} +1 -1
- package/dist/kolibri/{tab-index-c61711b2.js → tab-index-0ac1b547.js} +1 -1
- package/dist/kolibri/{validation-4664ad06.js → validation-985202be.js} +1 -1
- package/dist/kolibri/{validation-6e5422b5.js → validation-e333ddb0.js} +1 -1
- package/dist/types/components/input-checkbox/component.d.ts +5 -3
- package/dist/types/components/input-checkbox/controller.d.ts +3 -2
- package/dist/types/components/input-checkbox/types.d.ts +4 -3
- package/dist/types/components/input-color/controller.d.ts +1 -1
- package/dist/types/components/input-file/controller.d.ts +1 -1
- package/dist/types/components/input-number/controller.d.ts +5 -4
- package/dist/types/components/input-password/controller.d.ts +1 -1
- package/dist/types/components/input-range/controller.d.ts +1 -1
- package/dist/types/components.d.ts +13 -3
- package/jest-test-results.json +1 -1
- package/package.json +1 -1
- package/vscode-custom-data.json +12 -0
- package/dist/cjs/index-009cdc55.js +0 -4
- package/dist/esm/index-315c6aa5.js +0 -4
- package/dist/kolibri/controller-2c05cdae.js +0 -4
- package/dist/kolibri/index-315c6aa5.js +0 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@public-ui/components",
|
|
3
|
-
"version": "1.1.11-rc.
|
|
3
|
+
"version": "1.1.11-rc.3",
|
|
4
4
|
"description": "Das Components-Modul beinhaltet alle zur Komponenten-Bibliothek gehörenden Web Components.",
|
|
5
5
|
"license": "EUPL-1.2",
|
|
6
6
|
"homepage": "https://public-ui.github.io",
|
package/vscode-custom-data.json
CHANGED
|
@@ -11356,6 +11356,18 @@
|
|
|
11356
11356
|
{
|
|
11357
11357
|
"name": "_value",
|
|
11358
11358
|
"description": "Gibt den Wert der Checkbox an."
|
|
11359
|
+
},
|
|
11360
|
+
{
|
|
11361
|
+
"name": "_variant",
|
|
11362
|
+
"description": "Gibt an, welchen Type das Input haben soll.",
|
|
11363
|
+
"values": [
|
|
11364
|
+
{
|
|
11365
|
+
"name": "checkbox"
|
|
11366
|
+
},
|
|
11367
|
+
{
|
|
11368
|
+
"name": "switch"
|
|
11369
|
+
}
|
|
11370
|
+
]
|
|
11359
11371
|
}
|
|
11360
11372
|
]
|
|
11361
11373
|
},
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - the accessible web component library
|
|
3
|
-
*/
|
|
4
|
-
"use strict";const GLOBAL="object"==typeof window?window:"object"==typeof global?global:"object"==typeof self?self:{};let warrentyWarning=!1;const patchThemeTag=(e,t,n)=>{!1===warrentyWarning&&(warrentyWarning=!0,console.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);`)),"object"==typeof GLOBAL.A11yUi&&null!==GLOBAL.A11yUi||(GLOBAL.A11yUi={}),"object"!=typeof GLOBAL.A11yUi||null===GLOBAL.A11yUi||"object"==typeof GLOBAL.A11yUi.Themes&&null!==GLOBAL.A11yUi.Themes||(GLOBAL.A11yUi.Themes={}),"object"!=typeof GLOBAL.A11yUi||null===GLOBAL.A11yUi||"object"!=typeof GLOBAL.A11yUi.Themes||null===GLOBAL.A11yUi.Themes||"object"==typeof GLOBAL.A11yUi.Themes[e]&&null!==GLOBAL.A11yUi.Themes[e]||(GLOBAL.A11yUi.Themes[e]={}),"object"==typeof GLOBAL.A11yUi&&null!==GLOBAL.A11yUi&&"object"==typeof GLOBAL.A11yUi.Themes&&null!==GLOBAL.A11yUi.Themes&&"object"==typeof GLOBAL.A11yUi.Themes[e]&&null!==GLOBAL.A11yUi.Themes[e]&&(GLOBAL.A11yUi.Themes[e][t]=n)},patchTheme=(e,t)=>{if("object"==typeof t&&null!==t){Object.getOwnPropertyNames(t).forEach((n=>{const s=t[n];"string"==typeof s&&s.length>0&&patchThemeTag(e,n,s)}))}return e},getThemeNode=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 getThemeNode(t)}}return null},getThemeDetails=e=>{if("object"==typeof GLOBAL.A11yUi&&null!==GLOBAL.A11yUi&&"object"==typeof GLOBAL.A11yUi.Theme&&null!==GLOBAL.A11yUi.Theme&&"boolean"==typeof GLOBAL.A11yUi.Theme.cache&&"string"==typeof GLOBAL.A11yUi.Theme.name&&"boolean"==typeof GLOBAL.A11yUi.Theme.reset)return GLOBAL.A11yUi.Theme;{const t=getThemeNode(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}}},CSS_PROPERTIES_REGISTERED=new Set,CSS_STYLE_SHEETS=new Map,HTML_STYLE_ELEMENTS=new Map,getCssStyleSheet=(e,t,n)=>{if(!0===e&&CSS_STYLE_SHEETS.has(t)&&CSS_STYLE_SHEETS.get(t)?.has(n))return CSS_STYLE_SHEETS.get(t)?.get(n);if(!0===e&&HTML_STYLE_ELEMENTS.has(t)&&HTML_STYLE_ELEMENTS.get(t)?.has(n))return HTML_STYLE_ELEMENTS.get(t)?.get(n);if("object"==typeof GLOBAL.A11yUi&&null!==GLOBAL.A11yUi&&"object"==typeof GLOBAL.A11yUi.Themes&&null!==GLOBAL.A11yUi.Themes&&"object"==typeof GLOBAL.A11yUi.Themes[t]&&null!==GLOBAL.A11yUi.Themes[t]&&"string"==typeof GLOBAL.A11yUi.Themes[t][n]){if(("GLOBAL"===n||"PROPERTIES"===n)&&!1===CSS_PROPERTIES_REGISTERED.has(t)){let e=GLOBAL.A11yUi.Themes[t][n].match(/--[^;]+/g);if(Array.isArray(e)){e=e.filter((e=>/:/.test(e)));const n=document.createElement("style");n.innerHTML=`.${t} {${e.join(";")}}`,document.querySelector("head")?.appendChild(n)}CSS_PROPERTIES_REGISTERED.add(t)}let s;try{s=new CSSStyleSheet,"function"==typeof s.replaceSync&&s.replaceSync(GLOBAL.A11yUi.Themes[t][n]),!0===e&&(!1===CSS_STYLE_SHEETS.has(t)&&CSS_STYLE_SHEETS.set(t,new Map),CSS_STYLE_SHEETS.get(t)?.set(n,s))}catch(e){s=document.createElement("style"),s.innerHTML=GLOBAL.A11yUi.Themes[t][n]}return s}return null},removeStyle=e=>{for(const t of Array.from(e.childNodes)){if(!(t instanceof HTMLElement&&"STYLE"===t.tagName))break;e.removeChild(t)}},GLOBAL_A11Y_STYLE="* {\n font-size: inherit;\n hyphens: auto;\n letter-spacing: inherit;\n word-break: break-word;\n word-spacing: inherit;\n}",patchAdopted=(e,t,n,s)=>{const o=setTimeout((()=>{if(clearTimeout(o),e.classList.contains("hydrated")){removeStyle(t);const o=new CSSStyleSheet;"function"==typeof o.replaceSync&&o.replaceSync(GLOBAL_A11Y_STYLE),n.unshift(o),t.adoptedStyleSheets=n,e.style.display=s}else patchAdopted(e,t,n,s)}),25)},patchStyle=(e,t,n,s)=>{const o=setTimeout((()=>{if(clearTimeout(o),e.classList.contains("hydrated")){removeStyle(t);const o=document.createElement("style");o.innerHTML=GLOBAL_A11Y_STYLE,n.unshift(o);const l=t.firstChild;n.forEach((e=>{l instanceof HTMLElement?t.insertBefore(e,l):t.appendChild(e)})),e.style.display=s}else patchStyle(e,t,n,s)}),25)},setThemeStyle=(e,t)=>{const n=t.name||"default",s=t.cache,o=t.reset,l=t.solid||!1,i=getCssStyleSheet(s,n,"GLOBAL"),h=getCssStyleSheet(s,n,e.tagName),L=e.shadowRoot;if(h instanceof CSSStyleSheet&&h.cssRules.length>0){const t=[];!1===o&&!1===l&&pushExistingAdoptedStyleSheets(L,t),i instanceof CSSStyleSheet&&i.cssRules.length>0&&!1===t.includes(i)&&t.push(i),h instanceof CSSStyleSheet&&h.cssRules.length>0&&!1===t.includes(h)&&t.push(h),!0===l&&pushExistingAdoptedStyleSheets(L,t);const n=e.style.display;e.style.display="none",patchAdopted(e,L,t,n)}else if(h instanceof HTMLStyleElement&&h.innerHTML.length>0){const t=[];!1===o&&!1===l&&pushExistingStyleNodes(L,t),i instanceof HTMLStyleElement&&i.innerHTML.length>0&&!1===t.includes(i)&&t.push(i),h instanceof HTMLStyleElement&&h.innerHTML.length>0&&!1===t.includes(h)&&t.push(h),!0===l&&pushExistingStyleNodes(L,t);const n=e.style.display;e.style.display="none",patchStyle(e,L,t,n)}};function pushExistingStyleNodes(e,t){for(const n of Array.from(e.childNodes)){if(!(n instanceof HTMLStyleElement))break;t.push(n)}}function pushExistingAdoptedStyleSheets(e,t){e.adoptedStyleSheets?.forEach((e=>{t.push(e)}))}exports.getThemeDetails=getThemeDetails,exports.patchTheme=patchTheme,exports.patchThemeTag=patchThemeTag,exports.setThemeStyle=setThemeStyle;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - the accessible web component library
|
|
3
|
-
*/
|
|
4
|
-
const GLOBAL="object"==typeof window?window:"object"==typeof global?global:"object"==typeof self?self:{};let warrentyWarning=!1;const patchThemeTag=(e,t,n)=>{!1===warrentyWarning&&(warrentyWarning=!0,console.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);`)),"object"==typeof GLOBAL.A11yUi&&null!==GLOBAL.A11yUi||(GLOBAL.A11yUi={}),"object"!=typeof GLOBAL.A11yUi||null===GLOBAL.A11yUi||"object"==typeof GLOBAL.A11yUi.Themes&&null!==GLOBAL.A11yUi.Themes||(GLOBAL.A11yUi.Themes={}),"object"!=typeof GLOBAL.A11yUi||null===GLOBAL.A11yUi||"object"!=typeof GLOBAL.A11yUi.Themes||null===GLOBAL.A11yUi.Themes||"object"==typeof GLOBAL.A11yUi.Themes[e]&&null!==GLOBAL.A11yUi.Themes[e]||(GLOBAL.A11yUi.Themes[e]={}),"object"==typeof GLOBAL.A11yUi&&null!==GLOBAL.A11yUi&&"object"==typeof GLOBAL.A11yUi.Themes&&null!==GLOBAL.A11yUi.Themes&&"object"==typeof GLOBAL.A11yUi.Themes[e]&&null!==GLOBAL.A11yUi.Themes[e]&&(GLOBAL.A11yUi.Themes[e][t]=n)},patchTheme=(e,t)=>{if("object"==typeof t&&null!==t){Object.getOwnPropertyNames(t).forEach((n=>{const s=t[n];"string"==typeof s&&s.length>0&&patchThemeTag(e,n,s)}))}return e},getThemeNode=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 getThemeNode(t)}}return null},getThemeDetails=e=>{if("object"==typeof GLOBAL.A11yUi&&null!==GLOBAL.A11yUi&&"object"==typeof GLOBAL.A11yUi.Theme&&null!==GLOBAL.A11yUi.Theme&&"boolean"==typeof GLOBAL.A11yUi.Theme.cache&&"string"==typeof GLOBAL.A11yUi.Theme.name&&"boolean"==typeof GLOBAL.A11yUi.Theme.reset)return GLOBAL.A11yUi.Theme;{const t=getThemeNode(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}}},CSS_PROPERTIES_REGISTERED=new Set,CSS_STYLE_SHEETS=new Map,HTML_STYLE_ELEMENTS=new Map,getCssStyleSheet=(e,t,n)=>{if(!0===e&&CSS_STYLE_SHEETS.has(t)&&CSS_STYLE_SHEETS.get(t)?.has(n))return CSS_STYLE_SHEETS.get(t)?.get(n);if(!0===e&&HTML_STYLE_ELEMENTS.has(t)&&HTML_STYLE_ELEMENTS.get(t)?.has(n))return HTML_STYLE_ELEMENTS.get(t)?.get(n);if("object"==typeof GLOBAL.A11yUi&&null!==GLOBAL.A11yUi&&"object"==typeof GLOBAL.A11yUi.Themes&&null!==GLOBAL.A11yUi.Themes&&"object"==typeof GLOBAL.A11yUi.Themes[t]&&null!==GLOBAL.A11yUi.Themes[t]&&"string"==typeof GLOBAL.A11yUi.Themes[t][n]){if(("GLOBAL"===n||"PROPERTIES"===n)&&!1===CSS_PROPERTIES_REGISTERED.has(t)){let e=GLOBAL.A11yUi.Themes[t][n].match(/--[^;]+/g);if(Array.isArray(e)){e=e.filter((e=>/:/.test(e)));const n=document.createElement("style");n.innerHTML=`.${t} {${e.join(";")}}`,document.querySelector("head")?.appendChild(n)}CSS_PROPERTIES_REGISTERED.add(t)}let s;try{s=new CSSStyleSheet,"function"==typeof s.replaceSync&&s.replaceSync(GLOBAL.A11yUi.Themes[t][n]),!0===e&&(!1===CSS_STYLE_SHEETS.has(t)&&CSS_STYLE_SHEETS.set(t,new Map),CSS_STYLE_SHEETS.get(t)?.set(n,s))}catch(e){s=document.createElement("style"),s.innerHTML=GLOBAL.A11yUi.Themes[t][n]}return s}return null},removeStyle=e=>{for(const t of Array.from(e.childNodes)){if(!(t instanceof HTMLElement&&"STYLE"===t.tagName))break;e.removeChild(t)}},GLOBAL_A11Y_STYLE="* {\n font-size: inherit;\n hyphens: auto;\n letter-spacing: inherit;\n word-break: break-word;\n word-spacing: inherit;\n}",patchAdopted=(e,t,n,s)=>{const o=setTimeout((()=>{if(clearTimeout(o),e.classList.contains("hydrated")){removeStyle(t);const o=new CSSStyleSheet;"function"==typeof o.replaceSync&&o.replaceSync(GLOBAL_A11Y_STYLE),n.unshift(o),t.adoptedStyleSheets=n,e.style.display=s}else patchAdopted(e,t,n,s)}),25)},patchStyle=(e,t,n,s)=>{const o=setTimeout((()=>{if(clearTimeout(o),e.classList.contains("hydrated")){removeStyle(t);const o=document.createElement("style");o.innerHTML=GLOBAL_A11Y_STYLE,n.unshift(o);const l=t.firstChild;n.forEach((e=>{l instanceof HTMLElement?t.insertBefore(e,l):t.appendChild(e)})),e.style.display=s}else patchStyle(e,t,n,s)}),25)},setThemeStyle=(e,t)=>{const n=t.name||"default",s=t.cache,o=t.reset,l=t.solid||!1,i=getCssStyleSheet(s,n,"GLOBAL"),h=getCssStyleSheet(s,n,e.tagName),L=e.shadowRoot;if(h instanceof CSSStyleSheet&&h.cssRules.length>0){const t=[];!1===o&&!1===l&&pushExistingAdoptedStyleSheets(L,t),i instanceof CSSStyleSheet&&i.cssRules.length>0&&!1===t.includes(i)&&t.push(i),h instanceof CSSStyleSheet&&h.cssRules.length>0&&!1===t.includes(h)&&t.push(h),!0===l&&pushExistingAdoptedStyleSheets(L,t);const n=e.style.display;e.style.display="none",patchAdopted(e,L,t,n)}else if(h instanceof HTMLStyleElement&&h.innerHTML.length>0){const t=[];!1===o&&!1===l&&pushExistingStyleNodes(L,t),i instanceof HTMLStyleElement&&i.innerHTML.length>0&&!1===t.includes(i)&&t.push(i),h instanceof HTMLStyleElement&&h.innerHTML.length>0&&!1===t.includes(h)&&t.push(h),!0===l&&pushExistingStyleNodes(L,t);const n=e.style.display;e.style.display="none",patchStyle(e,L,t,n)}};function pushExistingStyleNodes(e,t){for(const n of Array.from(e.childNodes)){if(!(n instanceof HTMLStyleElement))break;t.push(n)}}function pushExistingAdoptedStyleSheets(e,t){e.adoptedStyleSheets?.forEach((e=>{t.push(e)}))}export{patchThemeTag as a,getThemeDetails as g,patchTheme as p,setThemeStyle as s};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - the accessible web component library
|
|
3
|
-
*/
|
|
4
|
-
import{b as t,d as i}from"./a11y.tipps-bb9add07.js";import{b as s,w as e,o as a,p as o,a as n,s as h}from"./prop.validators-0a1ccf64.js";import{i as r}from"./validator-05e130c7.js";import{i as d}from"./icon-0bfea48a.js";import{v as l}from"./tab-index-c61711b2.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){a(t,(()=>{try{t=o(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){a(t,(()=>{try{t=o(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 web component library
|
|
3
|
-
*/
|
|
4
|
-
const e="object"==typeof window?window:"object"==typeof global?global:"object"==typeof self?self:{};let t=!1;const n=(n,s,o)=>{!1===t&&(t=!0,console.warn(`[Theming] The theme process is locked. This means that the theme "${n}" 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);`)),"object"==typeof e.A11yUi&&null!==e.A11yUi||(e.A11yUi={}),"object"!=typeof e.A11yUi||null===e.A11yUi||"object"==typeof e.A11yUi.Themes&&null!==e.A11yUi.Themes||(e.A11yUi.Themes={}),"object"!=typeof e.A11yUi||null===e.A11yUi||"object"!=typeof e.A11yUi.Themes||null===e.A11yUi.Themes||"object"==typeof e.A11yUi.Themes[n]&&null!==e.A11yUi.Themes[n]||(e.A11yUi.Themes[n]={}),"object"==typeof e.A11yUi&&null!==e.A11yUi&&"object"==typeof e.A11yUi.Themes&&null!==e.A11yUi.Themes&&"object"==typeof e.A11yUi.Themes[n]&&null!==e.A11yUi.Themes[n]&&(e.A11yUi.Themes[n][s]=o)},o=(e,t)=>("object"==typeof t&&null!==t&&Object.getOwnPropertyNames(t).forEach((s=>{const o=t[s];"string"==typeof o&&o.length>0&&n(e,s,o)})),e),l=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 l(t)}}return null},c=t=>{if("object"==typeof e.A11yUi&&null!==e.A11yUi&&"object"==typeof e.A11yUi.Theme&&null!==e.A11yUi.Theme&&"boolean"==typeof e.A11yUi.Theme.cache&&"string"==typeof e.A11yUi.Theme.name&&"boolean"==typeof e.A11yUi.Theme.reset)return e.A11yUi.Theme;{const e=l(t);return e instanceof HTMLElement?{cache:"false"!==e.dataset.themeCache,name:e.dataset.theme||null,reset:"false"!==e.dataset.themeReset}:{cache:!0,name:null,reset:!0}}},f=new Set,s=new Map,r=new Map,i=(t,n,o)=>{if(!0===t&&s.has(n)&&s.get(n)?.has(o))return s.get(n)?.get(o);if(!0===t&&r.has(n)&&r.get(n)?.has(o))return r.get(n)?.get(o);if("object"==typeof e.A11yUi&&null!==e.A11yUi&&"object"==typeof e.A11yUi.Themes&&null!==e.A11yUi.Themes&&"object"==typeof e.A11yUi.Themes[n]&&null!==e.A11yUi.Themes[n]&&"string"==typeof e.A11yUi.Themes[n][o]){if(("GLOBAL"===o||"PROPERTIES"===o)&&!1===f.has(n)){let t=e.A11yUi.Themes[n][o].match(/--[^;]+/g);if(Array.isArray(t)){t=t.filter((e=>/:/.test(e)));const e=document.createElement("style");e.innerHTML=`.${n} {${t.join(";")}}`,document.querySelector("head")?.appendChild(e)}f.add(n)}let i;try{i=new CSSStyleSheet,"function"==typeof i.replaceSync&&i.replaceSync(e.A11yUi.Themes[n][o]),!0===t&&(!1===s.has(n)&&s.set(n,new Map),s.get(n)?.set(o,i))}catch(t){i=document.createElement("style"),i.innerHTML=e.A11yUi.Themes[n][o]}return i}return null},a=e=>{for(const t of Array.from(e.childNodes)){if(!(t instanceof HTMLElement&&"STYLE"===t.tagName))break;e.removeChild(t)}},u="* {\n font-size: inherit;\n hyphens: auto;\n letter-spacing: inherit;\n word-break: break-word;\n word-spacing: inherit;\n}",y=(e,t,n,s)=>{const o=setTimeout((()=>{if(clearTimeout(o),e.classList.contains("hydrated")){a(t);const o=new CSSStyleSheet;"function"==typeof o.replaceSync&&o.replaceSync(u),n.unshift(o),t.adoptedStyleSheets=n,e.style.display=s}else y(e,t,n,s)}),25)},p=(e,t,n,s)=>{const o=setTimeout((()=>{if(clearTimeout(o),e.classList.contains("hydrated")){a(t);const o=document.createElement("style");o.innerHTML=u,n.unshift(o);const i=t.firstChild;n.forEach((e=>{i instanceof HTMLElement?t.insertBefore(e,i):t.appendChild(e)})),e.style.display=s}else p(e,t,n,s)}),25)},m=(e,t)=>{const n=t.name||"default",s=t.cache,o=t.reset,l=t.solid||!1,c=i(s,n,"GLOBAL"),a=i(s,n,e.tagName),r=e.shadowRoot;if(a instanceof CSSStyleSheet&&a.cssRules.length>0){const t=[];!1===o&&!1===l&&S(r,t),c instanceof CSSStyleSheet&&c.cssRules.length>0&&!1===t.includes(c)&&t.push(c),a instanceof CSSStyleSheet&&a.cssRules.length>0&&!1===t.includes(a)&&t.push(a),!0===l&&S(r,t);const n=e.style.display;e.style.display="none",y(e,r,t,n)}else if(a instanceof HTMLStyleElement&&a.innerHTML.length>0){const t=[];!1===o&&!1===l&&h(r,t),c instanceof HTMLStyleElement&&c.innerHTML.length>0&&!1===t.includes(c)&&t.push(c),a instanceof HTMLStyleElement&&a.innerHTML.length>0&&!1===t.includes(a)&&t.push(a),!0===l&&h(r,t);const n=e.style.display;e.style.display="none",p(e,r,t,n)}};function h(e,t){for(const n of Array.from(e.childNodes)){if(!(n instanceof HTMLStyleElement))break;t.push(n)}}function S(e,t){e.adoptedStyleSheets?.forEach((e=>{t.push(e)}))}export{n as a,c as g,o as p,m as s};
|