@public-ui/components 5.0.0-beta.2 → 5.0.0-beta.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/assets/kolicons/kolicons.eot +0 -0
- package/assets/kolicons/kolicons.ttf +0 -0
- package/assets/kolicons/kolicons.woff +0 -0
- package/assets/kolicons/kolicons.woff2 +0 -0
- package/assets/kolicons/style.css +6 -6
- package/custom-elements.json +23 -23
- package/dist/cjs/{Heading-o_m1bQbh.js → Heading-D1EJem-Q.js} +2 -2
- package/dist/cjs/{access-and-short-key-BrLP4fF_.js → access-and-short-key-BCyKbrgd.js} +1 -1
- package/dist/cjs/{api-SFTkHR9W.js → api-DU50b7pU.js} +27 -27
- package/dist/cjs/{app-globals-BVGzsN2O.js → app-globals-Cshxaw1i.js} +3 -3
- package/dist/cjs/{ariaCurrentService-aysGX58T.js → aria-current-service-XKodxE3I.js} +2 -2
- package/dist/cjs/{aria-labelledby-CgJJS0K5.js → aria-labelledby-Du7FNBK5.js} +1 -1
- package/dist/cjs/{base-DoujJ-Xz.js → base-2k8L5Z0t.js} +13 -13
- package/dist/cjs/{base-DGpJZOXm.js → base-CrH3N2Zu.js} +70 -36
- package/dist/cjs/{base-DJhwvwdo.js → base-DXysZJF0.js} +12 -12
- package/dist/cjs/{base-4xLnw9ep.js → base-lY3OV-WH.js} +14 -14
- package/dist/cjs/{base-web-component-nGb9E-GX.js → base-web-component-CB32nH5g.js} +16 -16
- package/dist/cjs/{base-web-component-BgX5i_fc.js → base-web-component-CnTCSVmC.js} +10 -10
- package/dist/cjs/{base-web-component-DSCg1arP.js → base-web-component-vlBTFoc9.js} +2 -2
- package/dist/cjs/{behavior-DhfuU2HF.js → behavior-BonfWPFJ.js} +6 -6
- package/dist/cjs/{behavior-CBwUdaXu.js → behavior-DdUDpqCO.js} +6 -6
- package/dist/cjs/{behavior-S2U8skNd.js → behavior-Dznxy-IT.js} +5 -5
- package/dist/cjs/{bem-registry-CMf1T2kb.js → bem-registry-CGf0w2u7.js} +1 -1
- package/dist/cjs/{bootstrap-C4GRmpTI.js → bootstrap-W0pDCbwR.js} +5 -5
- package/dist/cjs/{color-BWamMCyw.js → color-gGnOnvt7.js} +3 -3
- package/dist/cjs/{component-SeQac11p.js → component-B6wRTFBN.js} +3 -3
- package/dist/cjs/{component-DTC3WbHR.js → component-B7ixbeft.js} +13 -13
- package/dist/cjs/{component-DPCpVWBj.js → component-BaHA5GQ0.js} +8 -8
- package/dist/cjs/{component-CweSM_ze.js → component-BeAWp-m9.js} +5 -5
- package/dist/cjs/{component-BM6eWMuC.js → component-Bnj9veMz.js} +4 -4
- package/dist/cjs/{component-CKc_-O64.js → component-C9dVa2_4.js} +13 -13
- package/dist/cjs/{component-DUvRV4FE.js → component-D680TPaU.js} +8 -8
- package/dist/cjs/{component-t6Upgw7f.js → component-DNRlsQ2M.js} +5 -5
- package/dist/cjs/{component-BGIFlgKu.js → component-WkG3-M2X.js} +6 -6
- package/dist/cjs/{component-names-CyEXMjv9.js → component-names-B-xDXf8U.js} +1 -1
- package/dist/cjs/{component-DSlW2KVw.js → component-vjLswij7.js} +5 -5
- package/dist/cjs/{contrast-CXinV5ii.js → contrast-B6L84xFP.js} +2 -2
- package/dist/cjs/{controller-D4usgPg-.js → controller-BcC7oIkq.js} +2 -2
- package/dist/cjs/{dev.utils-glOxiW4E.js → dev.utils-Bk_hA4qQ.js} +1 -1
- package/dist/cjs/{devtools-VDx5moKY.js → devtools-CJixr1wI.js} +2 -2
- package/dist/cjs/{disabled-CZJO6fbW.js → disabled-BoM7lglH.js} +2 -2
- package/dist/cjs/{element-focus-IBv4yiNw.js → element-focus-BL2fXDD1.js} +1 -1
- package/dist/cjs/{element-interaction-CvCJFwUh.js → element-interaction-CKiHuPu0.js} +2 -2
- package/dist/cjs/{events-fafEzzml.js → events-Ce8f_epW.js} +1 -1
- package/dist/cjs/{field-control-xEw1WZFL.js → field-control-Bn_hd-6N.js} +7 -7
- package/dist/cjs/{group-CMns8Vns.js → group-TVkuA3Dx.js} +5 -5
- package/dist/cjs/{has-closer-Cs7BCj4r.js → has-closer-CKT_frM5.js} +2 -2
- package/dist/cjs/{href-C93ktLo4.js → href-yo_BPSR1.js} +2 -2
- package/dist/cjs/{i18n-DXYL9rIn.js → i18n-DOGd0sdR.js} +6 -6
- package/dist/cjs/{i18n-YdI7_XKo.js → i18n-DdWdytnt.js} +2 -2
- package/dist/cjs/{id-CtES_I0D.js → id-C7_ak25l.js} +2 -2
- package/dist/cjs/{index-B65pR1Ir.js → index-DLwNpyJ5.js} +25 -92
- package/dist/cjs/index.cjs.js +11 -11
- package/dist/cjs/{input-container-BErSDYvG.js → input-container-CvDde8uk.js} +6 -6
- package/dist/cjs/{input-Bi8Zo8Bv.js → input-uZRNVUsq.js} +4 -4
- package/dist/cjs/{item-BHQRF4Sp.js → item-D23h7gmK.js} +9 -9
- package/dist/cjs/{item-N9AmF46D.js → item-D5hmTqf_.js} +15 -15
- package/dist/cjs/{item-BVHbqXo2.js → item-DimqWDZ7.js} +23 -23
- package/dist/cjs/{item-BLhkAIub.js → item-FYvfrXLj.js} +9 -9
- package/dist/cjs/{item-pool-ecjkEvCG.js → item-pool-BJcplkbh.js} +1 -1
- package/dist/cjs/{keyboard-DHPlsLs0.js → keyboard-21hAUDzL.js} +1 -1
- package/dist/cjs/kol-abbr.cjs.entry.js +7 -7
- package/dist/cjs/kol-accordion.cjs.entry.js +19 -19
- package/dist/cjs/kol-alert.cjs.entry.js +30 -30
- package/dist/cjs/kol-avatar.cjs.entry.js +17 -20
- package/dist/cjs/kol-badge.cjs.entry.js +29 -29
- package/dist/cjs/kol-breadcrumb.cjs.entry.js +34 -34
- package/dist/cjs/kol-button-link.cjs.entry.js +32 -32
- package/dist/cjs/kol-button.cjs.entry.js +32 -32
- package/dist/cjs/kol-card.cjs.entry.js +59 -98
- package/dist/cjs/kol-combobox.cjs.entry.js +84 -84
- package/dist/cjs/kol-details.cjs.entry.js +19 -19
- package/dist/cjs/kol-dialog.cjs.entry.js +36 -36
- package/dist/cjs/kol-drawer.cjs.entry.js +35 -35
- package/dist/cjs/kol-form.cjs.entry.js +29 -29
- package/dist/cjs/kol-heading.cjs.entry.js +14 -14
- package/dist/cjs/kol-icon.cjs.entry.js +11 -11
- package/dist/cjs/kol-image.cjs.entry.js +20 -20
- package/dist/cjs/kol-input-checkbox.cjs.entry.js +77 -77
- package/dist/cjs/kol-input-color.cjs.entry.js +64 -64
- package/dist/cjs/kol-input-date.cjs.entry.js +76 -76
- package/dist/cjs/kol-input-email.cjs.entry.js +82 -82
- package/dist/cjs/kol-input-file.cjs.entry.js +58 -58
- package/dist/cjs/kol-input-number.cjs.entry.js +78 -78
- package/dist/cjs/kol-input-password.cjs.entry.js +79 -79
- package/dist/cjs/kol-input-radio.cjs.entry.js +60 -60
- package/dist/cjs/kol-input-range.cjs.entry.js +65 -65
- package/dist/cjs/kol-input-text.cjs.entry.js +94 -94
- package/dist/cjs/kol-kolibri.cjs.entry.js +8 -8
- package/dist/cjs/kol-link-button.cjs.entry.js +39 -39
- package/dist/cjs/kol-link.cjs.entry.js +38 -38
- package/dist/cjs/kol-meter.cjs.entry.js +19 -25
- package/dist/cjs/kol-modal.cjs.entry.js +36 -36
- package/dist/cjs/kol-nav.cjs.entry.js +41 -41
- package/dist/cjs/kol-pagination.cjs.entry.js +65 -65
- package/dist/cjs/kol-popover-button.cjs.entry.js +65 -100
- package/dist/cjs/kol-progress.cjs.entry.js +18 -21
- package/dist/cjs/kol-quote.cjs.entry.js +12 -12
- package/dist/cjs/kol-select.cjs.entry.js +71 -71
- package/dist/cjs/kol-single-select.cjs.entry.js +85 -85
- package/dist/cjs/kol-skip-nav.cjs.entry.js +34 -34
- package/dist/cjs/kol-spin.cjs.entry.js +23 -23
- package/dist/cjs/kol-split-button.cjs.entry.js +36 -36
- package/dist/cjs/kol-table-stateful.cjs.entry.js +132 -104
- package/dist/cjs/kol-table-stateless.cjs.entry.js +57 -57
- package/dist/cjs/kol-tabs.cjs.entry.js +36 -36
- package/dist/cjs/kol-textarea.cjs.entry.js +77 -77
- package/dist/cjs/kol-toast-container.cjs.entry.js +20 -20
- package/dist/cjs/kol-toolbar.cjs.entry.js +48 -48
- package/dist/cjs/kol-tree-item.cjs.entry.js +34 -34
- package/dist/cjs/kol-tree.cjs.entry.js +11 -11
- package/dist/cjs/kol-version.cjs.entry.js +22 -22
- package/dist/cjs/kolibri.cjs.js +5 -5
- package/dist/cjs/{label-0j3-2J3C.js → label-CCqNq5tW.js} +4 -4
- package/dist/cjs/{label-hints-DEiM49uy.js → label-hints-qecpxRCt.js} +2 -2
- package/dist/cjs/{label-lang-segment-BBCLeyBy.js → label-lang-segment-BGLGUvz3.js} +3 -3
- package/dist/cjs/{label-with-expert-slot-D0wokf7-.js → label-with-expert-slot-VcIxokIa.js} +4 -4
- package/dist/cjs/{level-xVivGv7t.js → level-CVJUatGG.js} +2 -2
- package/dist/cjs/{link-target-D9qpCovV.js → link-target-BchnvpO8.js} +2 -2
- package/dist/cjs/{links-DlW9up_d.js → links-B1TspXWw.js} +2 -2
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{multiple-DO-asa_4.js → multiple-DO-7DpoM.js} +2 -2
- package/dist/cjs/{number-value-BUKMKQvN.js → number-value-C4kXarZR.js} +3 -3
- package/dist/cjs/{open-BVqlpoxd.js → open-Cmz8IDwx.js} +2 -2
- package/dist/cjs/{open-items-cache-DuXVixiW.js → open-items-cache-C162W-_D.js} +1 -1
- package/dist/cjs/{options-Dg3zz7Wo.js → options-B5TaPd9X.js} +1 -1
- package/dist/cjs/{options-vneqbPL0.js → options-CYbRA9bk.js} +2 -2
- package/dist/cjs/{orientation-DL6G4K4r.js → orientation-qw5D2TnY.js} +2 -2
- package/dist/cjs/{placeholder-C-ecB96f.js → placeholder-BKqOq75d.js} +2 -2
- package/dist/cjs/{props-from-config-Bm6Pf2tK.js → props-from-config-utp9cExR.js} +55 -60
- package/dist/cjs/{read-only-D__auxXg.js → read-only-BA_w8-u1.js} +2 -2
- package/dist/cjs/{required-DqW-WueJ.js → required-CxAjKjbz.js} +2 -2
- package/dist/cjs/{resolve-props-CjhxUwj-.js → resolve-props--Nci0LhR.js} +9 -9
- package/dist/cjs/{resolve-props-DKYD6i56.js → resolve-props-Dj6sEqG7.js} +7 -7
- package/dist/cjs/{rows-Z8UDqY9u.js → rows-DIswNtTH.js} +2 -2
- package/dist/cjs/{scroll-lock-DgqKifg3.js → scroll-lock-DCG-yvr9.js} +3 -3
- package/dist/cjs/{shared-state-C2e8sL5f.js → shared-state-DgRutURI.js} +1 -1
- package/dist/cjs/{smart-button-C_S63qaB.js → smart-button-DseYlks-.js} +2 -2
- package/dist/cjs/{spell-check-CT0WE9tq.js → spell-check-dk8U8oOc.js} +2 -2
- package/dist/cjs/{src-Bwu1rJi2.js → src-CtFQUaCM.js} +2 -2
- package/dist/cjs/{step-W8T4AA1l.js → step-CvPxSo00.js} +2 -2
- package/dist/cjs/{suggestions-C-tM7INY.js → suggestions-DUxsRVmB.js} +2 -2
- package/dist/cjs/{suggestions-DvPhi4lP.js → suggestions-DgLZZdei.js} +3 -3
- package/dist/cjs/test-component.cjs.entry.js +1 -1
- package/dist/cjs/{theme-store-CHGfvYB-.js → theme-store-CLf_JZmz.js} +2 -2
- package/dist/cjs/{toggle-handler-DHEfrMM0.js → toggle-handler-B-_ojZ0I.js} +10 -10
- package/dist/cjs/{tooltip-open-tracking-DaQFzT-b.js → tooltip-open-tracking-CewIRZOe.js} +2 -2
- package/dist/cjs/{unique-nav-labels-CpJcPNBO.js → unique-nav-labels-CFCBdBmd.js} +2 -2
- package/dist/cjs/{unit-CNVBdvOH.js → unit-DexLlB8H.js} +2 -2
- package/dist/cjs/{validators-BM9XrnzJ.js → validators-CxXwm4f6.js} +2 -2
- package/dist/cjs/{value-string-DXRes-dR.js → value-string-Ct7kzFWf.js} +2 -2
- package/dist/cjs/{width-BAwXHART.js → width-BXrduM1f.js} +2 -2
- package/dist/collection/components/abbr/component.js +1 -1
- package/dist/collection/components/accordion/component.js +1 -1
- package/dist/collection/components/accordion/style.css +2 -2
- package/dist/collection/components/alert/component.js +3 -3
- package/dist/collection/components/alert/style.css +2 -2
- package/dist/collection/components/avatar/component.js +4 -7
- package/dist/collection/components/badge/component.js +4 -4
- package/dist/collection/components/badge/style.css +2 -2
- package/dist/collection/components/breadcrumb/component.js +3 -3
- package/dist/collection/components/breadcrumb/style.css +2 -2
- package/dist/collection/components/button/component.js +3 -3
- package/dist/collection/components/button/style.css +2 -2
- package/dist/collection/components/button-link/component.js +3 -3
- package/dist/collection/components/button-link/style.css +2 -2
- package/dist/collection/components/card/component.js +53 -18
- package/dist/collection/components/card/style.css +2 -2
- package/dist/collection/components/combobox/component.js +115 -115
- package/dist/collection/components/combobox/style.css +2 -2
- package/dist/collection/components/details/component.js +1 -1
- package/dist/collection/components/details/style.css +2 -2
- package/dist/collection/components/dialog/component.js +5 -5
- package/dist/collection/components/dialog/style.css +2 -2
- package/dist/collection/components/drawer/component.js +3 -3
- package/dist/collection/components/drawer/style.css +2 -2
- package/dist/collection/components/form/component.js +3 -3
- package/dist/collection/components/form/style.css +2 -2
- package/dist/collection/components/heading/component.js +4 -4
- package/dist/collection/components/icon/component.js +3 -3
- package/dist/collection/components/icon/style.css +2 -2
- package/dist/collection/components/image/component.js +39 -39
- package/dist/collection/components/input-checkbox/component.js +110 -110
- package/dist/collection/components/input-checkbox/style.css +2 -2
- package/dist/collection/components/input-color/component.js +39 -39
- package/dist/collection/components/input-color/style.css +2 -2
- package/dist/collection/components/input-date/component.js +77 -77
- package/dist/collection/components/input-date/style.css +2 -2
- package/dist/collection/components/input-email/component.js +86 -86
- package/dist/collection/components/input-email/style.css +2 -2
- package/dist/collection/components/input-file/component.js +34 -34
- package/dist/collection/components/input-file/style.css +2 -2
- package/dist/collection/components/input-number/component.js +67 -67
- package/dist/collection/components/input-number/style.css +2 -2
- package/dist/collection/components/input-password/component.js +87 -87
- package/dist/collection/components/input-password/style.css +2 -2
- package/dist/collection/components/input-radio/component.js +35 -35
- package/dist/collection/components/input-radio/style.css +2 -2
- package/dist/collection/components/input-range/component.js +38 -38
- package/dist/collection/components/input-range/style.css +2 -2
- package/dist/collection/components/input-text/component.js +145 -145
- package/dist/collection/components/input-text/style.css +2 -2
- package/dist/collection/components/kolibri/component.js +1 -1
- package/dist/collection/components/link/base.js +1 -1
- package/dist/collection/components/link/component.js +26 -26
- package/dist/collection/components/link/style.css +2 -2
- package/dist/collection/components/link-button/component.js +27 -27
- package/dist/collection/components/link-button/style.css +2 -2
- package/dist/collection/components/meter/component.js +6 -12
- package/dist/collection/components/modal/component.js +5 -5
- package/dist/collection/components/modal/style.css +2 -2
- package/dist/collection/components/nav/component.js +2 -2
- package/dist/collection/components/nav/style.css +2 -2
- package/dist/collection/components/pagination/component.js +85 -85
- package/dist/collection/components/pagination/style.css +2 -2
- package/dist/collection/components/popover-button/component.js +40 -11
- package/dist/collection/components/popover-button/style.css +2 -2
- package/dist/collection/components/progress/component.js +5 -8
- package/dist/collection/components/public-api/contract.js +46 -6
- package/dist/collection/components/quote/component.js +5 -5
- package/dist/collection/components/select/component.js +61 -61
- package/dist/collection/components/select/style.css +2 -2
- package/dist/collection/components/single-select/component.js +134 -134
- package/dist/collection/components/single-select/style.css +2 -2
- package/dist/collection/components/skip-nav/component.js +2 -2
- package/dist/collection/components/skip-nav/style.css +2 -2
- package/dist/collection/components/spin/component.js +29 -29
- package/dist/collection/components/spin/style.css +8 -1
- package/dist/collection/components/split-button/component.js +5 -5
- package/dist/collection/components/split-button/style.css +2 -2
- package/dist/collection/components/table-stateful/component.js +111 -110
- package/dist/collection/components/table-stateful/style.css +11 -4
- package/dist/collection/components/table-stateless/base.js +7 -1
- package/dist/collection/components/table-stateless/component.js +36 -36
- package/dist/collection/components/table-stateless/style.css +11 -4
- package/dist/collection/components/tabs/component.js +12 -12
- package/dist/collection/components/tabs/style.css +3 -3
- package/dist/collection/components/textarea/component.js +88 -88
- package/dist/collection/components/textarea/style.css +2 -2
- package/dist/collection/components/toaster/shadow.js +3 -3
- package/dist/collection/components/toaster/style.css +2 -2
- package/dist/collection/components/toolbar/component.js +33 -33
- package/dist/collection/components/toolbar/style.css +2 -2
- package/dist/collection/components/tree/component.js +2 -2
- package/dist/collection/components/tree-item/component.js +35 -35
- package/dist/collection/components/tree-item/style.css +2 -2
- package/dist/collection/components/version/component.js +2 -2
- package/dist/collection/components/version/style.css +2 -2
- package/dist/collection/global/script.js +1 -1
- package/dist/collection/index.js +1 -1
- package/dist/collection/internal/functional-components/breadcrumb/link-item.js +2 -2
- package/dist/collection/internal/functional-components/button/item.js +2 -2
- package/dist/collection/internal/functional-components/counter/api.js +1 -1
- package/dist/collection/internal/functional-components/dialog/item.js +2 -2
- package/dist/collection/internal/functional-components/form/error-link-item.js +2 -2
- package/dist/collection/internal/functional-components/form-field/base-web-component.js +7 -7
- package/dist/collection/internal/functional-components/form-field/msg.js +2 -2
- package/dist/collection/internal/functional-components/form-field/number-value.js +1 -1
- package/dist/collection/internal/functional-components/link/api.js +1 -1
- package/dist/collection/{components/link/ariaCurrentService.js → internal/functional-components/link/aria-current-service.js} +1 -1
- package/dist/collection/internal/functional-components/link/component.js +1 -1
- package/dist/collection/internal/functional-components/link/item.js +3 -3
- package/dist/collection/internal/functional-components/pagination/page-size-select.js +9 -9
- package/dist/collection/internal/functional-components/popover-button/item.js +2 -2
- package/dist/collection/internal/functional-components/progress/api.js +1 -1
- package/dist/collection/internal/functional-components/skip-nav/api.js +1 -1
- package/dist/collection/internal/functional-components/skip-nav/link-item.js +2 -2
- package/dist/collection/internal/functional-components/table-stateful/component.js +17 -0
- package/dist/collection/internal/functional-components/table-stateful/model.js +21 -7
- package/dist/collection/internal/functional-components/table-stateless/component.js +6 -3
- package/dist/collection/internal/functional-components/table-stateless/selection-tooltip-item.js +29 -0
- package/dist/collection/internal/functional-components/table-stateless/settings.js +2 -2
- package/dist/collection/internal/functional-components/tabs/button-item.js +2 -2
- package/dist/collection/internal/functional-components/toolbar/{item.js → entry-item.js} +4 -4
- package/dist/collection/internal/props/helpers/factory.js +1 -1
- package/dist/collection/internal/props/helpers/normalizers.js +2 -5
- package/dist/collection/internal/props/index.js +0 -1
- package/dist/collection/locales/de.js +2 -2
- package/dist/collection/locales/en.js +2 -2
- package/dist/collection/schema/components/index.js +0 -29
- package/dist/collection/schema/props/accept.js +1 -7
- package/dist/collection/schema/props/access-key.js +1 -7
- package/dist/collection/schema/props/active.js +1 -7
- package/dist/collection/schema/props/adjust-height.js +1 -7
- package/dist/collection/schema/props/alert-type.js +0 -7
- package/dist/collection/schema/props/align.js +0 -4
- package/dist/collection/schema/props/allow-multi-sort.js +1 -7
- package/dist/collection/schema/props/alt.js +1 -7
- package/dist/collection/schema/props/alternative-button-link-role.js +1 -8
- package/dist/collection/schema/props/aria-controls.js +1 -7
- package/dist/collection/schema/props/aria-current-value.js +1 -10
- package/dist/collection/schema/props/aria-description.js +1 -7
- package/dist/collection/schema/props/aria-expanded.js +1 -7
- package/dist/collection/schema/props/aria-labelledby.js +6 -4
- package/dist/collection/schema/props/aria-owns.js +1 -9
- package/dist/collection/schema/props/aria-selected.js +1 -7
- package/dist/collection/schema/props/auto-complete.js +0 -6
- package/dist/collection/schema/props/badge-text.js +1 -7
- package/dist/collection/schema/props/button-callbacks.js +1 -7
- package/dist/collection/schema/props/button-type.js +1 -8
- package/dist/collection/schema/props/button-variant.js +1 -10
- package/dist/collection/schema/props/checked.js +1 -7
- package/dist/collection/schema/props/collapsible.js +1 -7
- package/dist/collection/schema/props/color.js +1 -14
- package/dist/collection/schema/props/current-length.js +1 -7
- package/dist/collection/schema/props/custom-class.js +1 -9
- package/dist/collection/schema/props/disabled.js +1 -15
- package/dist/collection/schema/props/download.js +1 -7
- package/dist/collection/schema/props/error-list.js +1 -14
- package/dist/collection/schema/props/has-closer.js +1 -7
- package/dist/collection/schema/props/has-compact-button.js +1 -7
- package/dist/collection/schema/props/has-counter.js +1 -7
- package/dist/collection/schema/props/has-create-button.js +1 -7
- package/dist/collection/schema/props/has-icons-when-expanded.js +1 -7
- package/dist/collection/schema/props/has-settings-menu.js +1 -7
- package/dist/collection/schema/props/has-value.js +1 -7
- package/dist/collection/schema/props/hide-label.js +1 -7
- package/dist/collection/schema/props/hide-msg.js +1 -7
- package/dist/collection/schema/props/hint.js +1 -7
- package/dist/collection/schema/props/href.js +1 -7
- package/dist/collection/schema/props/icons-input-checkbox.js +1 -18
- package/dist/collection/schema/props/icons.js +0 -43
- package/dist/collection/schema/props/id.js +1 -7
- package/dist/collection/schema/props/image-sizes.js +1 -7
- package/dist/collection/schema/props/image-source.js +1 -7
- package/dist/collection/schema/props/image-srcset.js +1 -7
- package/dist/collection/schema/props/indeterminate.js +1 -7
- package/dist/collection/schema/props/index.js +4 -0
- package/dist/collection/schema/props/inline.js +1 -7
- package/dist/collection/schema/props/label-align.js +1 -8
- package/dist/collection/schema/props/label.js +0 -35
- package/dist/collection/schema/props/link-on-callbacks.js +1 -8
- package/dist/collection/schema/props/link-target.js +1 -7
- package/dist/collection/schema/props/loading.js +1 -8
- package/dist/collection/schema/props/max-length-behavior.js +1 -8
- package/dist/collection/schema/props/max-length.js +1 -7
- package/dist/collection/schema/props/max.js +1 -7
- package/dist/collection/schema/props/modal.js +1 -7
- package/dist/collection/schema/props/msg.js +1 -24
- package/dist/collection/schema/props/multiple.js +1 -7
- package/dist/collection/schema/props/name.js +1 -7
- package/dist/collection/schema/props/open.js +1 -7
- package/dist/collection/schema/props/options.js +1 -11
- package/dist/collection/schema/props/orientation.js +1 -10
- package/dist/collection/schema/props/pagination-position.js +1 -10
- package/dist/collection/schema/props/pattern.js +1 -7
- package/dist/collection/schema/props/placeholder.js +1 -7
- package/dist/collection/schema/props/popover-align.js +1 -7
- package/dist/collection/schema/props/read-only.js +1 -7
- package/dist/collection/schema/props/required.js +1 -7
- package/dist/collection/schema/props/resize-textarea.js +0 -9
- package/dist/collection/schema/props/rows.js +1 -7
- package/dist/collection/schema/props/short-key.js +1 -7
- package/dist/collection/schema/props/show.js +1 -7
- package/dist/collection/schema/props/spell-check.js +1 -9
- package/dist/collection/schema/props/suggestions.js +1 -16
- package/dist/collection/schema/props/tab-behavior.js +1 -8
- package/dist/collection/schema/props/tab-index.js +1 -16
- package/dist/collection/schema/props/table-data-foot.js +1 -21
- package/dist/collection/schema/props/table-data.js +1 -21
- package/dist/collection/schema/props/table-fixed-cols.js +1 -14
- package/dist/collection/schema/props/table-selection.js +1 -22
- package/dist/collection/schema/props/toolbar-items.js +1 -21
- package/dist/collection/schema/props/tooltip-align.js +1 -7
- package/dist/collection/schema/props/touched.js +1 -7
- package/dist/collection/schema/props/type-input-date.js +0 -7
- package/dist/collection/schema/props/type-input-text.js +0 -7
- package/dist/collection/schema/props/unit.js +1 -7
- package/dist/collection/schema/props/variant/dialog.js +1 -8
- package/dist/collection/schema/props/variant/modal.js +1 -4
- package/dist/collection/schema/props/variant/password-variant.js +1 -8
- package/dist/collection/schema/props/variant-alert.js +0 -7
- package/dist/collection/schema/props/variant-class-name.js +0 -33
- package/dist/collection/schema/props/variant-input-checkbox.js +0 -7
- package/dist/collection/schema/props/variant-progress.js +0 -7
- package/dist/collection/schema/props/visibility-toggle.js +1 -7
- package/dist/collection/schema/props/width.js +1 -7
- package/dist/collection/schema/utils/contrast.js +1 -1
- package/dist/collection/schema/utils/prop.validators.js +1 -1
- package/dist/collection/schema/validators/common.js +4 -0
- package/dist/collection/schema/validators/index.js +0 -1
- package/dist/collection/utils/dev.utils.js +1 -2
- package/dist/collection/utils/testing/logged-messages.js +4 -0
- package/dist/collection/utils/testing/snapshot-input-testing.js +1 -1
- package/dist/collection/utils/testing/snapshot-testing.js +2 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/access-and-short-key.js +1 -1
- package/dist/components/aria-current-service.js +4 -0
- package/dist/components/base-web-component.js +1 -1
- package/dist/components/base-web-component2.js +1 -1
- package/dist/components/base-web-component3.js +1 -1
- package/dist/components/base-web-component4.js +1 -1
- package/dist/components/base.js +1 -1
- package/dist/components/base2.js +1 -1
- package/dist/components/base3.js +1 -1
- package/dist/components/base4.js +1 -1
- package/dist/components/behavior.js +1 -1
- package/dist/components/behavior2.js +1 -1
- package/dist/components/behavior3.js +1 -1
- package/dist/components/behavior4.js +1 -1
- package/dist/components/bem-registry.js +1 -1
- package/dist/components/bootstrap.js +1 -1
- package/dist/components/color.js +1 -1
- package/dist/components/component-names.js +1 -1
- package/dist/components/component.js +1 -1
- package/dist/components/component10.js +1 -1
- package/dist/components/component11.js +1 -1
- package/dist/components/component12.js +1 -1
- package/dist/components/component13.js +1 -1
- package/dist/components/component14.js +1 -1
- package/dist/components/component2.js +1 -1
- package/dist/components/component3.js +1 -1
- package/dist/components/component4.js +1 -1
- package/dist/components/component5.js +1 -1
- package/dist/components/component6.js +1 -1
- package/dist/components/component7.js +1 -1
- package/dist/components/component8.js +1 -1
- package/dist/components/component9.js +1 -1
- package/dist/components/contrast.js +1 -1
- package/dist/components/controller.js +1 -1
- package/dist/components/dev.utils.js +1 -1
- package/dist/components/devtools.js +1 -1
- package/dist/components/disabled.js +1 -1
- package/dist/components/element-focus.js +1 -1
- package/dist/components/element-interaction.js +1 -1
- package/dist/components/events.js +1 -1
- package/dist/components/field-control.js +1 -1
- package/dist/components/group.js +1 -1
- package/dist/components/has-closer.js +1 -1
- package/dist/components/i18n.js +1 -1
- package/dist/components/i18n2.js +1 -1
- package/dist/components/id.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/input-container.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/item-pool.js +1 -1
- package/dist/components/item.js +1 -1
- package/dist/components/item2.js +1 -1
- package/dist/components/item3.js +1 -1
- package/dist/components/item4.js +1 -1
- package/dist/components/keyboard.js +1 -1
- package/dist/components/kol-abbr.js +1 -1
- package/dist/components/kol-accordion.js +1 -1
- package/dist/components/kol-alert.js +1 -1
- package/dist/components/kol-avatar.js +1 -1
- package/dist/components/kol-breadcrumb.js +1 -1
- package/dist/components/kol-button-link.js +1 -1
- package/dist/components/kol-card.js +1 -1
- package/dist/components/kol-combobox.js +1 -1
- package/dist/components/kol-details.js +1 -1
- package/dist/components/kol-dialog.js +1 -1
- package/dist/components/kol-drawer.js +1 -1
- package/dist/components/kol-form.js +1 -1
- package/dist/components/kol-heading.js +1 -1
- package/dist/components/kol-icon.js +1 -1
- package/dist/components/kol-image.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.js +1 -1
- package/dist/components/kol-input-range.js +1 -1
- package/dist/components/kol-input-text.js +1 -1
- package/dist/components/kol-kolibri.js +1 -1
- package/dist/components/kol-link-button.js +1 -1
- package/dist/components/kol-meter.js +1 -1
- package/dist/components/kol-modal.js +1 -1
- package/dist/components/kol-nav.js +1 -1
- package/dist/components/kol-pagination.js +1 -1
- package/dist/components/kol-popover-button.js +1 -1
- package/dist/components/kol-progress.js +1 -1
- package/dist/components/kol-quote.js +1 -1
- package/dist/components/kol-select.js +1 -1
- package/dist/components/kol-single-select.js +1 -1
- package/dist/components/kol-skip-nav.js +1 -1
- package/dist/components/kol-spin.js +1 -1
- package/dist/components/kol-split-button.js +1 -1
- package/dist/components/kol-table-stateful.js +1 -1
- package/dist/components/kol-table-stateless.js +1 -1
- package/dist/components/kol-tabs.js +1 -1
- package/dist/components/kol-textarea.js +1 -1
- package/dist/components/kol-toast-container.js +1 -1
- package/dist/components/kol-toolbar.js +1 -1
- package/dist/components/kol-tree-item.js +1 -1
- package/dist/components/kol-tree.js +1 -1
- package/dist/components/kol-version.js +1 -1
- package/dist/components/label-hints.js +1 -1
- package/dist/components/label-lang-segment.js +1 -1
- package/dist/components/label-with-expert-slot.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/level.js +1 -1
- package/dist/components/link-target.js +1 -1
- package/dist/components/links.js +1 -1
- package/dist/components/multiple.js +1 -1
- package/dist/components/number-value.js +1 -1
- package/dist/components/open-items-cache.js +1 -1
- package/dist/components/open.js +1 -1
- package/dist/components/options.js +1 -1
- package/dist/components/options2.js +1 -1
- package/dist/components/orientation.js +1 -1
- package/dist/components/placeholder.js +1 -1
- package/dist/components/{common.js → prop.validators.js} +1 -1
- package/dist/components/read-only.js +1 -1
- package/dist/components/required.js +1 -1
- package/dist/components/resolve-props.js +1 -1
- package/dist/components/resolve-props2.js +1 -1
- package/dist/components/rows.js +1 -1
- package/dist/components/scroll-lock.js +1 -1
- package/dist/components/shared-state.js +1 -1
- package/dist/components/smart-button.js +1 -1
- package/dist/components/spell-check.js +1 -1
- package/dist/components/src.js +1 -1
- package/dist/components/step.js +1 -1
- package/dist/components/suggestions.js +1 -1
- package/dist/components/suggestions2.js +1 -1
- package/dist/components/test-component.js +1 -1
- package/dist/components/toggle-handler.js +1 -1
- package/dist/components/tooltip-open-tracking.js +1 -1
- package/dist/components/unique-nav-labels.js +1 -1
- package/dist/components/unit.js +1 -1
- package/dist/components/validators.js +1 -1
- package/dist/components/value-string.js +1 -1
- package/dist/components/width.js +1 -1
- package/dist/esm/{Heading-Cynkalqu.js → Heading-foerLIu9.js} +2 -2
- package/dist/esm/{access-and-short-key-CW0oxi_q.js → access-and-short-key-BTEwnScd.js} +1 -1
- package/dist/esm/{api-B76-Osk1.js → api-Ba9FNPRn.js} +27 -27
- package/dist/esm/{app-globals-Dtu1AIr1.js → app-globals-CqYpXngl.js} +3 -3
- package/dist/esm/{ariaCurrentService-B9TgWLEw.js → aria-current-service-4eUMzpeO.js} +2 -2
- package/dist/esm/{aria-labelledby-DQov9uSv.js → aria-labelledby-C4wUnR-v.js} +1 -1
- package/dist/esm/{base-BpgzOuy3.js → base-AKIr0rpk.js} +12 -12
- package/dist/esm/{base-CAiOx0qs.js → base-C7nTPc7u.js} +70 -36
- package/dist/esm/{base-BZCFxul4.js → base-CpUNedp9.js} +13 -13
- package/dist/esm/{base-DJ3lTPYp.js → base-D7qItqyf.js} +14 -14
- package/dist/esm/{base-web-component-D16FuHFf.js → base-web-component-B3wi5eWH.js} +2 -2
- package/dist/esm/{base-web-component-E9cH8tf8.js → base-web-component-BpL_hXcg.js} +16 -16
- package/dist/esm/{base-web-component-aOhHFXxF.js → base-web-component-DorOeD_U.js} +10 -10
- package/dist/esm/{behavior-DnTJtQBK.js → behavior-D9BHiFnH.js} +5 -5
- package/dist/esm/{behavior-DJQFXyfi.js → behavior-DDo87iUM.js} +6 -6
- package/dist/esm/{behavior-ByyBa-o8.js → behavior-XAV9GSxI.js} +6 -6
- package/dist/esm/{bem-registry-CK2s_XZ4.js → bem-registry-CrZZQahR.js} +1 -1
- package/dist/esm/{bootstrap-DUmk0ILT.js → bootstrap-Cz7Iq2I2.js} +5 -5
- package/dist/esm/{color-CEoIhjJR.js → color-CnVBqZd5.js} +3 -3
- package/dist/esm/{component-BPL1Mikq.js → component-0npqUhj2.js} +5 -5
- package/dist/esm/{component-CAEpgoSo.js → component-BCKsZOoB.js} +5 -5
- package/dist/esm/{component-CDyoNoJe.js → component-BZjDp_Lf.js} +3 -3
- package/dist/esm/{component-DTV1Kuf1.js → component-CjdTbGlP.js} +4 -4
- package/dist/esm/{component-C58IwTEf.js → component-Cn693XeT.js} +13 -13
- package/dist/esm/{component-C0ijstyp.js → component-Cvd5HXbX.js} +8 -8
- package/dist/esm/{component-DeFANBua.js → component-CvdxCpjC.js} +5 -5
- package/dist/esm/{component-CiTw4ODP.js → component-DFhRTaqb.js} +6 -6
- package/dist/esm/{component-XbTjo2nm.js → component-DP_p5few.js} +8 -8
- package/dist/esm/{component-S6ib3O8N.js → component-DlROeCCe.js} +13 -13
- package/dist/esm/{component-names-Ur_UbEzI.js → component-names-DzmdvSkQ.js} +1 -1
- package/dist/esm/{contrast-Ujnfz49m.js → contrast-BHjNzQvB.js} +2 -2
- package/dist/esm/{controller-BdPVgWDs.js → controller-DYkXzFqc.js} +2 -2
- package/dist/esm/{dev.utils--eVyQ4zr.js → dev.utils-BgFDROtc.js} +1 -1
- package/dist/esm/{devtools-CosbyboJ.js → devtools-B6h2bVMJ.js} +2 -2
- package/dist/esm/{disabled-Cu0e92-b.js → disabled-BZIZZ6wy.js} +2 -2
- package/dist/esm/{element-focus-BYLFG-oz.js → element-focus-C0L8NWU8.js} +1 -1
- package/dist/esm/{element-interaction-C2pgnQ6t.js → element-interaction-B3GEli6r.js} +2 -2
- package/dist/esm/{events-B2UzbUT7.js → events-DdfMb1U7.js} +1 -1
- package/dist/esm/{field-control-DbmtKHc1.js → field-control-QF0yTcyb.js} +7 -7
- package/dist/esm/{group-CqAFhkgE.js → group-8Me6YSO8.js} +5 -5
- package/dist/esm/{has-closer-DOs1CXhp.js → has-closer-B-uYNNCw.js} +2 -2
- package/dist/esm/{href-DQbHtp6T.js → href-DKPJq0Rh.js} +2 -2
- package/dist/esm/{i18n-Bcb0tuyF.js → i18n-TlIXBsgS.js} +6 -6
- package/dist/esm/{i18n-Cf0DhAke.js → i18n-Uze_l4Ts.js} +2 -2
- package/dist/esm/{id-BXwy9iRy.js → id-CkUYl2hO.js} +2 -2
- package/dist/esm/{index-Bsx5X6jK.js → index-D1fZ9xFt.js} +24 -92
- package/dist/esm/index.js +12 -12
- package/dist/esm/{input-RvLnUp6C.js → input-DwlolkOG.js} +4 -4
- package/dist/esm/{input-container-BpG3WHug.js → input-container-DC3x4oGg.js} +6 -6
- package/dist/esm/{item-DMttg5uX.js → item-DThxrTZc.js} +23 -23
- package/dist/esm/{item-KqTsA-5a.js → item-cArH2C6l.js} +9 -9
- package/dist/esm/{item-pool-C_4Isquh.js → item-pool-D4qvvY-S.js} +1 -1
- package/dist/esm/{item-Cw_jdgc6.js → item-uC3h4pj3.js} +15 -15
- package/dist/esm/{item-DibV9jD7.js → item-zPmzbSvE.js} +9 -9
- package/dist/esm/{keyboard-Cc1-_wSt.js → keyboard-DzlBdECG.js} +1 -1
- package/dist/esm/kol-abbr.entry.js +7 -7
- package/dist/esm/kol-accordion.entry.js +19 -19
- package/dist/esm/kol-alert.entry.js +30 -30
- package/dist/esm/kol-avatar.entry.js +17 -20
- package/dist/esm/kol-badge.entry.js +29 -29
- package/dist/esm/kol-breadcrumb.entry.js +34 -34
- package/dist/esm/kol-button-link.entry.js +32 -32
- package/dist/esm/kol-button.entry.js +32 -32
- package/dist/esm/kol-card.entry.js +59 -98
- package/dist/esm/kol-combobox.entry.js +84 -84
- package/dist/esm/kol-details.entry.js +19 -19
- package/dist/esm/kol-dialog.entry.js +36 -36
- package/dist/esm/kol-drawer.entry.js +35 -35
- package/dist/esm/kol-form.entry.js +29 -29
- package/dist/esm/kol-heading.entry.js +14 -14
- package/dist/esm/kol-icon.entry.js +11 -11
- package/dist/esm/kol-image.entry.js +20 -20
- package/dist/esm/kol-input-checkbox.entry.js +77 -77
- package/dist/esm/kol-input-color.entry.js +64 -64
- package/dist/esm/kol-input-date.entry.js +76 -76
- package/dist/esm/kol-input-email.entry.js +82 -82
- package/dist/esm/kol-input-file.entry.js +58 -58
- package/dist/esm/kol-input-number.entry.js +78 -78
- package/dist/esm/kol-input-password.entry.js +79 -79
- package/dist/esm/kol-input-radio.entry.js +60 -60
- package/dist/esm/kol-input-range.entry.js +65 -65
- package/dist/esm/kol-input-text.entry.js +94 -94
- package/dist/esm/kol-kolibri.entry.js +8 -8
- package/dist/esm/kol-link-button.entry.js +39 -39
- package/dist/esm/kol-link.entry.js +38 -38
- package/dist/esm/kol-meter.entry.js +19 -25
- package/dist/esm/kol-modal.entry.js +36 -36
- package/dist/esm/kol-nav.entry.js +41 -41
- package/dist/esm/kol-pagination.entry.js +65 -65
- package/dist/esm/kol-popover-button.entry.js +65 -100
- package/dist/esm/kol-progress.entry.js +18 -21
- package/dist/esm/kol-quote.entry.js +12 -12
- package/dist/esm/kol-select.entry.js +71 -71
- package/dist/esm/kol-single-select.entry.js +85 -85
- package/dist/esm/kol-skip-nav.entry.js +34 -34
- package/dist/esm/kol-spin.entry.js +23 -23
- package/dist/esm/kol-split-button.entry.js +36 -36
- package/dist/esm/kol-table-stateful.entry.js +132 -104
- package/dist/esm/kol-table-stateless.entry.js +57 -57
- package/dist/esm/kol-tabs.entry.js +36 -36
- package/dist/esm/kol-textarea.entry.js +77 -77
- package/dist/esm/kol-toast-container.entry.js +20 -20
- package/dist/esm/kol-toolbar.entry.js +48 -48
- package/dist/esm/kol-tree-item.entry.js +34 -34
- package/dist/esm/kol-tree.entry.js +11 -11
- package/dist/esm/kol-version.entry.js +22 -22
- package/dist/esm/kolibri.js +6 -6
- package/dist/esm/{label-DEZIsnKw.js → label-G82W4YoW.js} +4 -4
- package/dist/esm/{label-hints-C--ftrg_.js → label-hints-DiRb_zIZ.js} +2 -2
- package/dist/esm/{label-lang-segment-B8ayoizG.js → label-lang-segment-BSVexfSR.js} +3 -3
- package/dist/esm/{label-with-expert-slot-DXi27J4o.js → label-with-expert-slot-C1i0atAL.js} +4 -4
- package/dist/esm/{level-BV6M_zmM.js → level-CWkPM-CS.js} +2 -2
- package/dist/esm/{link-target-C9qzQAQg.js → link-target-B2OC2sZU.js} +2 -2
- package/dist/esm/{links-Dt0OhMXb.js → links-CiNHSAYH.js} +2 -2
- package/dist/esm/loader.js +6 -6
- package/dist/esm/{multiple-DQdOCIyW.js → multiple-CuU2AuEM.js} +2 -2
- package/dist/esm/{number-value-DtZloH4P.js → number-value-adUq1zr1.js} +2 -2
- package/dist/esm/{open-DaO7wXMr.js → open-DR8Z7RtS.js} +2 -2
- package/dist/esm/{open-items-cache-C98FzYQ9.js → open-items-cache-CS2mDRNB.js} +1 -1
- package/dist/esm/{options-CKAHQbcF.js → options-BDTJtk6H.js} +1 -1
- package/dist/esm/{options-C8BsBGBl.js → options-BPwcDIDO.js} +2 -2
- package/dist/esm/{orientation-VvJMCd9m.js → orientation-BUPO9LJU.js} +2 -2
- package/dist/esm/{placeholder-7pbjAn-x.js → placeholder-BTFnryTd.js} +2 -2
- package/dist/esm/{props-from-config-DVxNB2Lx.js → props-from-config-DqFgiUwD.js} +55 -59
- package/dist/esm/{read-only-3XuQIAB8.js → read-only-DRmmHb2G.js} +2 -2
- package/dist/esm/{required-CNgdXJ8H.js → required-D4CdAA4s.js} +2 -2
- package/dist/esm/{resolve-props-DOaJCd7Y.js → resolve-props-BAambGug.js} +9 -9
- package/dist/esm/{resolve-props-B1DQKjTD.js → resolve-props-Dpl38Wpe.js} +7 -7
- package/dist/esm/{rows-DL1whQNh.js → rows-DRKSoawJ.js} +2 -2
- package/dist/esm/{scroll-lock-CF_Z7MzO.js → scroll-lock-C66lpb8L.js} +3 -3
- package/dist/esm/{shared-state-sWI1upS8.js → shared-state-Dn94ivRg.js} +1 -1
- package/dist/esm/{smart-button-BdA5-cUG.js → smart-button-BYEk3DzS.js} +2 -2
- package/dist/esm/{spell-check-B7J-eU5K.js → spell-check-DlQ_d2GL.js} +2 -2
- package/dist/esm/{src-C2baLPDp.js → src-Cikg9qhP.js} +2 -2
- package/dist/esm/{step-DmzcVFZB.js → step-C7WPZrUp.js} +2 -2
- package/dist/esm/{suggestions-BJxNFtkL.js → suggestions-CotfxJG1.js} +2 -2
- package/dist/esm/{suggestions-BXp8OhOi.js → suggestions-qW9OdwO3.js} +3 -3
- package/dist/esm/test-component.entry.js +1 -1
- package/dist/esm/{theme-store-CEu5d_EK.js → theme-store-DroJsU6S.js} +2 -2
- package/dist/esm/{toggle-handler-D7oFDKvq.js → toggle-handler-BB_SIgS1.js} +10 -10
- package/dist/esm/{tooltip-open-tracking-DXhnfmA2.js → tooltip-open-tracking-CxHWKk8f.js} +2 -2
- package/dist/esm/{unique-nav-labels-BOqpcYk4.js → unique-nav-labels-CQgKoOXd.js} +2 -2
- package/dist/esm/{unit-BFYz7QfA.js → unit-D2lG-lEM.js} +2 -2
- package/dist/esm/{validators-DPSQyOeQ.js → validators-yh10eyXe.js} +2 -2
- package/dist/esm/{value-string-Cmozozek.js → value-string-DwEIOG1f.js} +2 -2
- package/dist/esm/{width-D5-Licpp.js → width-xawzWTVW.js} +2 -2
- package/dist/kolibri/Heading-foerLIu9.js +4 -0
- package/dist/kolibri/{access-and-short-key-CW0oxi_q.js → access-and-short-key-BTEwnScd.js} +1 -1
- package/dist/kolibri/api-Ba9FNPRn.js +4 -0
- package/dist/kolibri/app-globals-CqYpXngl.js +4 -0
- package/dist/kolibri/aria-current-service-4eUMzpeO.js +4 -0
- package/dist/kolibri/{aria-labelledby-DQov9uSv.js → aria-labelledby-C4wUnR-v.js} +1 -1
- package/dist/kolibri/{base-BpgzOuy3.js → base-AKIr0rpk.js} +1 -1
- package/dist/kolibri/base-C7nTPc7u.js +4 -0
- package/dist/kolibri/base-CpUNedp9.js +4 -0
- package/dist/kolibri/base-D7qItqyf.js +4 -0
- package/dist/kolibri/{base-web-component-D16FuHFf.js → base-web-component-B3wi5eWH.js} +1 -1
- package/dist/kolibri/{base-web-component-E9cH8tf8.js → base-web-component-BpL_hXcg.js} +1 -1
- package/dist/kolibri/base-web-component-DorOeD_U.js +4 -0
- package/dist/kolibri/{behavior-DnTJtQBK.js → behavior-D9BHiFnH.js} +1 -1
- package/dist/kolibri/behavior-DDo87iUM.js +4 -0
- package/dist/kolibri/{behavior-ByyBa-o8.js → behavior-XAV9GSxI.js} +1 -1
- package/dist/kolibri/{bem-registry-CK2s_XZ4.js → bem-registry-CrZZQahR.js} +1 -1
- package/dist/kolibri/bootstrap-Cz7Iq2I2.js +4 -0
- package/dist/kolibri/{color-CEoIhjJR.js → color-CnVBqZd5.js} +1 -1
- package/dist/kolibri/component-0npqUhj2.js +4 -0
- package/dist/kolibri/component-BCKsZOoB.js +4 -0
- package/dist/kolibri/{component-CDyoNoJe.js → component-BZjDp_Lf.js} +1 -1
- package/dist/kolibri/component-CjdTbGlP.js +4 -0
- package/dist/kolibri/component-Cn693XeT.js +4 -0
- package/dist/kolibri/component-Cvd5HXbX.js +4 -0
- package/dist/kolibri/{component-DeFANBua.js → component-CvdxCpjC.js} +1 -1
- package/dist/kolibri/{component-CiTw4ODP.js → component-DFhRTaqb.js} +1 -1
- package/dist/kolibri/component-DP_p5few.js +4 -0
- package/dist/kolibri/component-DlROeCCe.js +4 -0
- package/dist/kolibri/{component-names-Ur_UbEzI.js → component-names-DzmdvSkQ.js} +1 -1
- package/dist/kolibri/{contrast-Ujnfz49m.js → contrast-BHjNzQvB.js} +1 -1
- package/dist/kolibri/{controller-BdPVgWDs.js → controller-DYkXzFqc.js} +1 -1
- package/dist/kolibri/{dev.utils--eVyQ4zr.js → dev.utils-BgFDROtc.js} +1 -1
- package/dist/kolibri/devtools-B6h2bVMJ.js +4 -0
- package/dist/kolibri/disabled-BZIZZ6wy.js +4 -0
- package/dist/kolibri/{element-focus-BYLFG-oz.js → element-focus-C0L8NWU8.js} +1 -1
- package/dist/kolibri/{element-interaction-C2pgnQ6t.js → element-interaction-B3GEli6r.js} +1 -1
- package/dist/kolibri/{events-B2UzbUT7.js → events-DdfMb1U7.js} +1 -1
- package/dist/kolibri/field-control-QF0yTcyb.js +4 -0
- package/dist/kolibri/{group-CqAFhkgE.js → group-8Me6YSO8.js} +1 -1
- package/dist/kolibri/has-closer-B-uYNNCw.js +4 -0
- package/dist/kolibri/href-DKPJq0Rh.js +4 -0
- package/dist/kolibri/i18n-TlIXBsgS.js +4 -0
- package/dist/kolibri/i18n-Uze_l4Ts.js +4 -0
- package/dist/kolibri/id-CkUYl2hO.js +4 -0
- package/dist/kolibri/index-D1fZ9xFt.js +6 -0
- package/dist/kolibri/index.esm.js +1 -1
- package/dist/kolibri/input-DwlolkOG.js +4 -0
- package/dist/kolibri/input-container-DC3x4oGg.js +4 -0
- package/dist/kolibri/item-DThxrTZc.js +4 -0
- package/dist/kolibri/item-cArH2C6l.js +4 -0
- package/dist/kolibri/item-pool-D4qvvY-S.js +4 -0
- package/dist/kolibri/item-uC3h4pj3.js +4 -0
- package/dist/kolibri/item-zPmzbSvE.js +4 -0
- package/dist/kolibri/{keyboard-Cc1-_wSt.js → keyboard-DzlBdECG.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-avatar.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.entry.js +1 -1
- package/dist/kolibri/kol-card.entry.js +1 -1
- package/dist/kolibri/kol-combobox.entry.js +1 -1
- package/dist/kolibri/kol-details.entry.js +1 -1
- package/dist/kolibri/kol-dialog.entry.js +1 -1
- package/dist/kolibri/kol-drawer.entry.js +1 -1
- package/dist/kolibri/kol-form.entry.js +1 -1
- package/dist/kolibri/kol-heading.entry.js +1 -1
- package/dist/kolibri/kol-icon.entry.js +1 -1
- package/dist/kolibri/kol-image.entry.js +1 -1
- package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
- package/dist/kolibri/kol-input-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.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.entry.js +1 -1
- package/dist/kolibri/kol-meter.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-popover-button.entry.js +1 -1
- package/dist/kolibri/kol-progress.entry.js +1 -1
- package/dist/kolibri/kol-quote.entry.js +1 -1
- package/dist/kolibri/kol-select.entry.js +1 -1
- package/dist/kolibri/kol-single-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-split-button.entry.js +1 -1
- package/dist/kolibri/kol-table-stateful.entry.js +1 -1
- package/dist/kolibri/kol-table-stateless.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-container.entry.js +1 -1
- package/dist/kolibri/kol-toolbar.entry.js +1 -1
- package/dist/kolibri/kol-tree-item.entry.js +1 -1
- package/dist/kolibri/kol-tree.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-G82W4YoW.js +4 -0
- package/dist/kolibri/label-hints-DiRb_zIZ.js +4 -0
- package/dist/kolibri/label-lang-segment-BSVexfSR.js +4 -0
- package/dist/kolibri/label-with-expert-slot-C1i0atAL.js +4 -0
- package/dist/kolibri/level-CWkPM-CS.js +4 -0
- package/dist/kolibri/link-target-B2OC2sZU.js +4 -0
- package/dist/kolibri/links-CiNHSAYH.js +4 -0
- package/dist/kolibri/multiple-CuU2AuEM.js +4 -0
- package/dist/kolibri/number-value-adUq1zr1.js +4 -0
- package/dist/kolibri/open-DR8Z7RtS.js +4 -0
- package/dist/kolibri/{open-items-cache-C98FzYQ9.js → open-items-cache-CS2mDRNB.js} +1 -1
- package/dist/kolibri/{options-CKAHQbcF.js → options-BDTJtk6H.js} +1 -1
- package/dist/kolibri/options-BPwcDIDO.js +4 -0
- package/dist/kolibri/{orientation-VvJMCd9m.js → orientation-BUPO9LJU.js} +1 -1
- package/dist/kolibri/placeholder-BTFnryTd.js +4 -0
- package/dist/kolibri/props-from-config-DqFgiUwD.js +4 -0
- package/dist/kolibri/read-only-DRmmHb2G.js +4 -0
- package/dist/kolibri/required-D4CdAA4s.js +4 -0
- package/dist/kolibri/resolve-props-BAambGug.js +4 -0
- package/dist/kolibri/resolve-props-Dpl38Wpe.js +4 -0
- package/dist/kolibri/rows-DRKSoawJ.js +4 -0
- package/dist/kolibri/{scroll-lock-CF_Z7MzO.js → scroll-lock-C66lpb8L.js} +1 -1
- package/dist/kolibri/shared-state-Dn94ivRg.js +4 -0
- package/dist/kolibri/smart-button-BYEk3DzS.js +4 -0
- package/dist/kolibri/spell-check-DlQ_d2GL.js +4 -0
- package/dist/kolibri/src-Cikg9qhP.js +4 -0
- package/dist/kolibri/step-C7WPZrUp.js +4 -0
- package/dist/kolibri/{suggestions-BJxNFtkL.js → suggestions-CotfxJG1.js} +1 -1
- package/dist/kolibri/suggestions-qW9OdwO3.js +4 -0
- package/dist/kolibri/test-component.entry.js +1 -1
- package/dist/kolibri/theme-store-DroJsU6S.js +4 -0
- package/dist/kolibri/toggle-handler-BB_SIgS1.js +4 -0
- package/dist/kolibri/tooltip-open-tracking-CxHWKk8f.js +4 -0
- package/dist/kolibri/unique-nav-labels-CQgKoOXd.js +4 -0
- package/dist/kolibri/unit-D2lG-lEM.js +4 -0
- package/dist/kolibri/validators-yh10eyXe.js +4 -0
- package/dist/kolibri/value-string-DwEIOG1f.js +4 -0
- package/dist/kolibri/{width-D5-Licpp.js → width-xawzWTVW.js} +1 -1
- package/dist/types/components/accordion/component.d.ts +2 -2
- package/dist/types/components/alert/component.d.ts +2 -2
- package/dist/types/components/badge/component.d.ts +2 -2
- package/dist/types/components/breadcrumb/component.d.ts +2 -2
- package/dist/types/components/button/base.d.ts +1 -1
- package/dist/types/components/button/component.d.ts +2 -2
- package/dist/types/components/button-link/component.d.ts +2 -2
- package/dist/types/components/card/component.d.ts +12 -5
- package/dist/types/components/combobox/component.d.ts +10 -10
- package/dist/types/components/details/component.d.ts +2 -2
- package/dist/types/components/dialog/base.d.ts +1 -1
- package/dist/types/components/dialog/component.d.ts +3 -3
- package/dist/types/components/drawer/component.d.ts +2 -2
- package/dist/types/components/form/component.d.ts +2 -2
- package/dist/types/components/heading/component.d.ts +2 -2
- package/dist/types/components/image/component.d.ts +2 -2
- package/dist/types/components/input-checkbox/component.d.ts +9 -9
- package/dist/types/components/input-color/component.d.ts +4 -4
- package/dist/types/components/input-date/component.d.ts +6 -6
- package/dist/types/components/input-email/component.d.ts +8 -8
- package/dist/types/components/input-file/component.d.ts +4 -4
- package/dist/types/components/input-number/component.d.ts +6 -6
- package/dist/types/components/input-password/component.d.ts +8 -8
- package/dist/types/components/input-radio/component.d.ts +5 -5
- package/dist/types/components/input-range/component.d.ts +4 -4
- package/dist/types/components/input-text/component.d.ts +12 -12
- package/dist/types/components/kolibri/component.d.ts +2 -2
- package/dist/types/components/link/component.d.ts +4 -4
- package/dist/types/components/link-button/component.d.ts +4 -4
- package/dist/types/components/modal/component.d.ts +3 -3
- package/dist/types/components/nav/component.d.ts +2 -2
- package/dist/types/components/pagination/component.d.ts +8 -8
- package/dist/types/components/popover-button/component.d.ts +10 -3
- package/dist/types/components/public-api/contract.d.ts +7 -2
- package/dist/types/components/select/component.d.ts +6 -6
- package/dist/types/components/single-select/component.d.ts +10 -10
- package/dist/types/components/skip-nav/component.d.ts +2 -2
- package/dist/types/components/spin/component.d.ts +2 -2
- package/dist/types/components/split-button/component.d.ts +2 -2
- package/dist/types/components/table-stateful/component.d.ts +7 -7
- package/dist/types/components/table-stateless/base.d.ts +2 -0
- package/dist/types/components/table-stateless/component.d.ts +2 -2
- package/dist/types/components/tabs/component.d.ts +3 -3
- package/dist/types/components/textarea/component.d.ts +8 -8
- package/dist/types/components/toolbar/component.d.ts +6 -6
- package/dist/types/components/tree/component.d.ts +2 -2
- package/dist/types/components/tree-item/component.d.ts +4 -4
- package/dist/types/components/version/component.d.ts +2 -2
- package/dist/types/components.d.ts +47 -53
- package/dist/types/index.d.ts +1 -1
- package/dist/types/internal/functional-components/abbr/api.d.ts +1 -1
- package/dist/types/internal/functional-components/alert/api.d.ts +1 -1
- package/dist/types/internal/functional-components/avatar/api.d.ts +2 -2
- package/dist/types/internal/functional-components/badge/api.d.ts +2 -26
- package/dist/types/internal/functional-components/base-web-component.d.ts +1 -1
- package/dist/types/internal/functional-components/breadcrumb/api.d.ts +1 -1
- package/dist/types/internal/functional-components/button/api.d.ts +2 -2
- package/dist/types/internal/functional-components/card/api.d.ts +2 -2
- package/dist/types/internal/functional-components/collapsible/api.d.ts +2 -2
- package/dist/types/internal/functional-components/combobox/api.d.ts +4 -4
- package/dist/types/internal/functional-components/counter/api.d.ts +1 -1
- package/dist/types/internal/functional-components/dialog/api.d.ts +2 -2
- package/dist/types/internal/functional-components/dialog/component.d.ts +1 -1
- package/dist/types/internal/functional-components/dialog/item.d.ts +1 -1
- package/dist/types/internal/functional-components/drawer/api.d.ts +2 -2
- package/dist/types/internal/functional-components/form/api.d.ts +1 -1
- package/dist/types/internal/functional-components/form-association/api.d.ts +1 -1
- package/dist/types/internal/functional-components/form-field/api.d.ts +3 -3
- package/dist/types/internal/functional-components/form-field/base-web-component.d.ts +2 -2
- package/dist/types/internal/functional-components/form-field/number-value.d.ts +1 -1
- package/dist/types/internal/functional-components/form-field/select-value.d.ts +1 -1
- package/dist/types/internal/functional-components/generic-types.d.ts +2 -2
- package/dist/types/internal/functional-components/heading/api.d.ts +2 -2
- package/dist/types/internal/functional-components/icon/api.d.ts +1 -1
- package/dist/types/internal/functional-components/image/api.d.ts +2 -2
- package/dist/types/internal/functional-components/input-checkbox/api.d.ts +3 -3
- package/dist/types/internal/functional-components/input-color/api.d.ts +4 -28
- package/dist/types/internal/functional-components/input-date/api.d.ts +4 -28
- package/dist/types/internal/functional-components/input-email/api.d.ts +4 -28
- package/dist/types/internal/functional-components/input-file/api.d.ts +4 -28
- package/dist/types/internal/functional-components/input-number/api.d.ts +4 -28
- package/dist/types/internal/functional-components/input-password/api.d.ts +4 -28
- package/dist/types/internal/functional-components/input-radio/api.d.ts +3 -3
- package/dist/types/internal/functional-components/input-range/api.d.ts +4 -4
- package/dist/types/internal/functional-components/input-text/api.d.ts +4 -28
- package/dist/types/internal/functional-components/kolibri/api.d.ts +1 -1
- package/dist/types/internal/functional-components/link/api.d.ts +2 -2
- package/dist/types/internal/functional-components/meter/api.d.ts +3 -3
- package/dist/types/internal/functional-components/nav/api.d.ts +2 -2
- package/dist/types/internal/functional-components/pagination/api.d.ts +2 -2
- package/dist/types/internal/functional-components/pagination/page-size-select.d.ts +1 -1
- package/dist/types/internal/functional-components/popover/api.d.ts +1 -1
- package/dist/types/internal/functional-components/popover-button/api.d.ts +2 -2
- package/dist/types/internal/functional-components/progress/api.d.ts +3 -3
- package/dist/types/internal/functional-components/quote/api.d.ts +2 -2
- package/dist/types/internal/functional-components/select/api.d.ts +4 -4
- package/dist/types/internal/functional-components/single-select/api.d.ts +4 -4
- package/dist/types/internal/functional-components/skip-nav/api.d.ts +1 -1
- package/dist/types/internal/functional-components/spin/api.d.ts +1 -1
- package/dist/types/internal/functional-components/split-button/api.d.ts +1 -1
- package/dist/types/internal/functional-components/table-stateful/api.d.ts +2 -2
- package/dist/types/internal/functional-components/table-stateful/component.d.ts +10 -0
- package/dist/types/internal/functional-components/table-stateful/model.d.ts +2 -0
- package/dist/types/internal/functional-components/table-stateless/api.d.ts +2 -2
- package/dist/types/internal/functional-components/table-stateless/component.d.ts +2 -0
- package/dist/types/internal/functional-components/table-stateless/selection-tooltip-item.d.ts +10 -0
- package/dist/types/internal/functional-components/table-stateless/table-model.d.ts +1 -1
- package/dist/types/internal/functional-components/tabs/api.d.ts +2 -2
- package/dist/types/internal/functional-components/text-input/api.d.ts +4 -28
- package/dist/types/internal/functional-components/textarea/api.d.ts +4 -4
- package/dist/types/internal/functional-components/toolbar/api.d.ts +3 -3
- package/dist/types/internal/functional-components/toolbar/{item.d.ts → entry-item.d.ts} +1 -1
- package/dist/types/internal/functional-components/tooltip/api.d.ts +2 -2
- package/dist/types/internal/functional-components/tree/api.d.ts +1 -1
- package/dist/types/internal/functional-components/tree-item/api.d.ts +2 -2
- package/dist/types/internal/functional-components/version/api.d.ts +1 -1
- package/dist/types/internal/props/breadcrumb-links.d.ts +1 -1
- package/dist/types/internal/props/helpers/iso-date.d.ts +1 -5
- package/dist/types/internal/props/helpers/normalizers.d.ts +1 -2
- package/dist/types/internal/props/index.d.ts +1 -1
- package/dist/types/internal/props/info-popover.d.ts +1 -1
- package/dist/types/internal/props/input-date-max.d.ts +1 -1
- package/dist/types/internal/props/input-date-min.d.ts +1 -1
- package/dist/types/internal/props/nav-links.d.ts +1 -1
- package/dist/types/internal/props/skip-nav-links.d.ts +1 -1
- package/dist/types/internal/props/smart-button.d.ts +1 -25
- package/dist/types/internal/props/value-input-date.d.ts +1 -1
- package/dist/types/schema/components/alert.d.ts +2 -8
- package/dist/types/schema/components/badge.d.ts +3 -16
- package/dist/types/schema/components/breadcrumb.d.ts +0 -15
- package/dist/types/schema/components/button.d.ts +3 -3
- package/dist/types/schema/components/card.d.ts +0 -9
- package/dist/types/schema/components/form.d.ts +0 -13
- package/dist/types/schema/components/index.d.ts +0 -29
- package/dist/types/schema/components/link.d.ts +2 -2
- package/dist/types/schema/components/pagination.d.ts +1 -15
- package/dist/types/schema/components/popover-button.d.ts +3 -6
- package/dist/types/schema/components/tabs.d.ts +3 -21
- package/dist/types/schema/components/textarea.d.ts +0 -28
- package/dist/types/schema/index.d.ts +1 -1
- package/dist/types/schema/props/accept.d.ts +0 -3
- package/dist/types/schema/props/access-key.d.ts +0 -2
- package/dist/types/schema/props/active.d.ts +0 -3
- package/dist/types/schema/props/adjust-height.d.ts +0 -2
- package/dist/types/schema/props/alert-type.d.ts +0 -2
- package/dist/types/schema/props/align.d.ts +0 -2
- package/dist/types/schema/props/allow-multi-sort.d.ts +0 -3
- package/dist/types/schema/props/alt.d.ts +0 -3
- package/dist/types/schema/props/alternative-button-link-role.d.ts +1 -5
- package/dist/types/schema/props/aria-controls.d.ts +0 -2
- package/dist/types/schema/props/aria-current-value.d.ts +1 -5
- package/dist/types/schema/props/aria-description.d.ts +0 -2
- package/dist/types/schema/props/aria-expanded.d.ts +0 -2
- package/dist/types/schema/props/aria-owns.d.ts +0 -2
- package/dist/types/schema/props/aria-selected.d.ts +0 -2
- package/dist/types/schema/props/auto-complete.d.ts +0 -2
- package/dist/types/schema/props/badge-text.d.ts +0 -2
- package/dist/types/schema/props/button-callbacks.d.ts +0 -3
- package/dist/types/schema/props/button-type.d.ts +1 -5
- package/dist/types/schema/props/button-variant.d.ts +1 -5
- package/dist/types/schema/props/checked.d.ts +0 -2
- package/dist/types/schema/props/collapsible.d.ts +0 -2
- package/dist/types/schema/props/color.d.ts +0 -4
- package/dist/types/schema/props/current-length.d.ts +0 -3
- package/dist/types/schema/props/custom-class.d.ts +0 -2
- package/dist/types/schema/props/disabled.d.ts +0 -2
- package/dist/types/schema/props/download.d.ts +0 -2
- package/dist/types/schema/props/error-list.d.ts +0 -2
- package/dist/types/schema/props/has-closer.d.ts +0 -2
- package/dist/types/schema/props/has-compact-button.d.ts +0 -2
- package/dist/types/schema/props/has-counter.d.ts +0 -3
- package/dist/types/schema/props/has-create-button.d.ts +0 -2
- package/dist/types/schema/props/has-icons-when-expanded.d.ts +0 -2
- package/dist/types/schema/props/has-settings-menu.d.ts +0 -2
- package/dist/types/schema/props/has-value.d.ts +0 -3
- package/dist/types/schema/props/hide-label.d.ts +0 -3
- package/dist/types/schema/props/hide-msg.d.ts +0 -3
- package/dist/types/schema/props/hint.d.ts +0 -2
- package/dist/types/schema/props/href.d.ts +2 -4
- package/dist/types/schema/props/icons-input-checkbox.d.ts +0 -2
- package/dist/types/schema/props/icons.d.ts +0 -3
- package/dist/types/schema/props/id.d.ts +0 -2
- package/dist/types/schema/props/image-sizes.d.ts +0 -3
- package/dist/types/schema/props/image-source.d.ts +0 -3
- package/dist/types/schema/props/image-srcset.d.ts +0 -3
- package/dist/types/schema/props/indeterminate.d.ts +0 -2
- package/dist/types/schema/props/index.d.ts +4 -0
- package/dist/types/schema/props/inline.d.ts +0 -3
- package/dist/types/schema/props/label-align.d.ts +1 -5
- package/dist/types/schema/props/label.d.ts +3 -7
- package/dist/types/schema/props/link-on-callbacks.d.ts +0 -2
- package/dist/types/schema/props/link-target.d.ts +0 -2
- package/dist/types/schema/props/loading.d.ts +1 -5
- package/dist/types/schema/props/max-length-behavior.d.ts +1 -5
- package/dist/types/schema/props/max-length.d.ts +0 -3
- package/dist/types/schema/props/max.d.ts +0 -4
- package/dist/types/schema/props/modal.d.ts +0 -2
- package/dist/types/schema/props/msg.d.ts +0 -2
- package/dist/types/schema/props/multiple.d.ts +0 -3
- package/dist/types/schema/props/name.d.ts +0 -3
- package/dist/types/schema/props/open.d.ts +0 -3
- package/dist/types/schema/props/options.d.ts +0 -4
- package/dist/types/schema/props/orientation.d.ts +1 -5
- package/dist/types/schema/props/pagination-position.d.ts +1 -5
- package/dist/types/schema/props/pattern.d.ts +0 -3
- package/dist/types/schema/props/placeholder.d.ts +0 -3
- package/dist/types/schema/props/popover-align.d.ts +0 -2
- package/dist/types/schema/props/read-only.d.ts +0 -2
- package/dist/types/schema/props/required.d.ts +0 -2
- package/dist/types/schema/props/resize-textarea.d.ts +0 -2
- package/dist/types/schema/props/rows.d.ts +0 -2
- package/dist/types/schema/props/short-key.d.ts +0 -2
- package/dist/types/schema/props/show.d.ts +0 -3
- package/dist/types/schema/props/spell-check.d.ts +0 -2
- package/dist/types/schema/props/suggestions.d.ts +0 -2
- package/dist/types/schema/props/tab-behavior.d.ts +1 -5
- package/dist/types/schema/props/tab-index.d.ts +0 -2
- package/dist/types/schema/props/table-callbacks.d.ts +2 -2
- package/dist/types/schema/props/table-data-foot.d.ts +0 -3
- package/dist/types/schema/props/table-data.d.ts +0 -3
- package/dist/types/schema/props/table-fixed-cols.d.ts +0 -2
- package/dist/types/schema/props/table-selection.d.ts +0 -2
- package/dist/types/schema/props/toolbar-items.d.ts +0 -2
- package/dist/types/schema/props/tooltip-align.d.ts +0 -2
- package/dist/types/schema/props/touched.d.ts +0 -2
- package/dist/types/schema/props/type-input-date.d.ts +4 -2
- package/dist/types/schema/props/type-input-text.d.ts +0 -2
- package/dist/types/schema/props/unit.d.ts +0 -2
- package/dist/types/schema/props/variant/dialog.d.ts +1 -5
- package/dist/types/schema/props/variant/modal.d.ts +0 -1
- package/dist/types/schema/props/variant/password-variant.d.ts +1 -5
- package/dist/types/schema/props/variant-alert.d.ts +0 -2
- package/dist/types/schema/props/variant-class-name.d.ts +0 -3
- package/dist/types/schema/props/variant-input-checkbox.d.ts +0 -2
- package/dist/types/schema/props/variant-progress.d.ts +0 -2
- package/dist/types/schema/props/visibility-toggle.d.ts +0 -3
- package/dist/types/schema/props/width.d.ts +0 -3
- package/dist/types/schema/types/button-link-text.d.ts +4 -4
- package/dist/types/schema/validators/common.d.ts +2 -0
- package/dist/types/schema/validators/index.d.ts +0 -1
- package/dist/types/utils/testing/logged-messages.d.ts +1 -0
- package/dist/types/utils/testing/snapshot-input-testing.d.ts +2 -1
- package/dist/types/utils/testing/snapshot-testing.d.ts +4 -1
- package/doc/badge.md +6 -6
- package/doc/combobox.md +23 -23
- package/doc/input-checkbox.md +2 -2
- package/doc/input-color.md +22 -22
- package/doc/input-date.md +28 -28
- package/doc/input-email.md +30 -30
- package/doc/input-file.md +22 -22
- package/doc/input-number.md +28 -28
- package/doc/input-password.md +29 -29
- package/doc/input-radio.md +19 -19
- package/doc/input-range.md +24 -24
- package/doc/input-text.md +31 -31
- package/doc/select.md +24 -24
- package/doc/single-select.md +24 -24
- package/doc/tabs.md +1 -1
- package/doc/textarea.md +29 -29
- package/package.json +3 -3
- package/vscode-custom-data.json +50 -138
- package/dist/collection/components/card/base.js +0 -79
- package/dist/collection/components/popover-button/base.js +0 -69
- package/dist/collection/schema/components/accordion.js +0 -1
- package/dist/collection/schema/components/button-link.js +0 -1
- package/dist/collection/schema/components/collapsible.js +0 -1
- package/dist/collection/schema/components/combobox.js +0 -1
- package/dist/collection/schema/components/details.js +0 -1
- package/dist/collection/schema/components/dialog.js +0 -1
- package/dist/collection/schema/components/drawer.js +0 -1
- package/dist/collection/schema/components/heading.js +0 -1
- package/dist/collection/schema/components/input-checkbox.js +0 -1
- package/dist/collection/schema/components/input-color.js +0 -1
- package/dist/collection/schema/components/input-date.js +0 -1
- package/dist/collection/schema/components/input-email.js +0 -1
- package/dist/collection/schema/components/input-file.js +0 -1
- package/dist/collection/schema/components/input-number.js +0 -1
- package/dist/collection/schema/components/input-password.js +0 -1
- package/dist/collection/schema/components/input-radio.js +0 -1
- package/dist/collection/schema/components/input-range.js +0 -1
- package/dist/collection/schema/components/input-text.js +0 -1
- package/dist/collection/schema/components/kolibri.js +0 -1
- package/dist/collection/schema/components/link-button.js +0 -1
- package/dist/collection/schema/components/modal.js +0 -1
- package/dist/collection/schema/components/nav.js +0 -1
- package/dist/collection/schema/components/select.js +0 -1
- package/dist/collection/schema/components/single-select.js +0 -1
- package/dist/collection/schema/components/skip-nav.js +0 -1
- package/dist/collection/schema/components/split-button.js +0 -1
- package/dist/collection/schema/components/toolbar.js +0 -1
- package/dist/collection/schema/components/tree-item.js +0 -1
- package/dist/collection/schema/components/tree.js +0 -1
- package/dist/collection/schema/components/version.js +0 -1
- package/dist/collection/schema/validators/alignment.js +0 -10
- package/dist/collection/utils/testing/legacy-component.js +0 -16
- package/dist/components/ariaCurrentService.js +0 -4
- package/dist/kolibri/Heading-Cynkalqu.js +0 -4
- package/dist/kolibri/api-B76-Osk1.js +0 -4
- package/dist/kolibri/app-globals-Dtu1AIr1.js +0 -4
- package/dist/kolibri/ariaCurrentService-B9TgWLEw.js +0 -4
- package/dist/kolibri/base-BZCFxul4.js +0 -4
- package/dist/kolibri/base-CAiOx0qs.js +0 -4
- package/dist/kolibri/base-DJ3lTPYp.js +0 -4
- package/dist/kolibri/base-web-component-aOhHFXxF.js +0 -4
- package/dist/kolibri/behavior-DJQFXyfi.js +0 -4
- package/dist/kolibri/bootstrap-DUmk0ILT.js +0 -4
- package/dist/kolibri/component-BPL1Mikq.js +0 -4
- package/dist/kolibri/component-C0ijstyp.js +0 -4
- package/dist/kolibri/component-C58IwTEf.js +0 -4
- package/dist/kolibri/component-CAEpgoSo.js +0 -4
- package/dist/kolibri/component-DTV1Kuf1.js +0 -4
- package/dist/kolibri/component-S6ib3O8N.js +0 -4
- package/dist/kolibri/component-XbTjo2nm.js +0 -4
- package/dist/kolibri/devtools-CosbyboJ.js +0 -4
- package/dist/kolibri/disabled-Cu0e92-b.js +0 -4
- package/dist/kolibri/field-control-DbmtKHc1.js +0 -4
- package/dist/kolibri/has-closer-DOs1CXhp.js +0 -4
- package/dist/kolibri/href-DQbHtp6T.js +0 -4
- package/dist/kolibri/i18n-Bcb0tuyF.js +0 -4
- package/dist/kolibri/i18n-Cf0DhAke.js +0 -4
- package/dist/kolibri/id-BXwy9iRy.js +0 -4
- package/dist/kolibri/index-Bsx5X6jK.js +0 -6
- package/dist/kolibri/input-RvLnUp6C.js +0 -4
- package/dist/kolibri/input-container-BpG3WHug.js +0 -4
- package/dist/kolibri/item-Cw_jdgc6.js +0 -4
- package/dist/kolibri/item-DMttg5uX.js +0 -4
- package/dist/kolibri/item-DibV9jD7.js +0 -4
- package/dist/kolibri/item-KqTsA-5a.js +0 -4
- package/dist/kolibri/item-pool-C_4Isquh.js +0 -4
- package/dist/kolibri/label-DEZIsnKw.js +0 -4
- package/dist/kolibri/label-hints-C--ftrg_.js +0 -4
- package/dist/kolibri/label-lang-segment-B8ayoizG.js +0 -4
- package/dist/kolibri/label-with-expert-slot-DXi27J4o.js +0 -4
- package/dist/kolibri/level-BV6M_zmM.js +0 -4
- package/dist/kolibri/link-target-C9qzQAQg.js +0 -4
- package/dist/kolibri/links-Dt0OhMXb.js +0 -4
- package/dist/kolibri/multiple-DQdOCIyW.js +0 -4
- package/dist/kolibri/number-value-DtZloH4P.js +0 -4
- package/dist/kolibri/open-DaO7wXMr.js +0 -4
- package/dist/kolibri/options-C8BsBGBl.js +0 -4
- package/dist/kolibri/placeholder-7pbjAn-x.js +0 -4
- package/dist/kolibri/props-from-config-DVxNB2Lx.js +0 -4
- package/dist/kolibri/read-only-3XuQIAB8.js +0 -4
- package/dist/kolibri/required-CNgdXJ8H.js +0 -4
- package/dist/kolibri/resolve-props-B1DQKjTD.js +0 -4
- package/dist/kolibri/resolve-props-DOaJCd7Y.js +0 -4
- package/dist/kolibri/rows-DL1whQNh.js +0 -4
- package/dist/kolibri/shared-state-sWI1upS8.js +0 -4
- package/dist/kolibri/smart-button-BdA5-cUG.js +0 -4
- package/dist/kolibri/spell-check-B7J-eU5K.js +0 -4
- package/dist/kolibri/src-C2baLPDp.js +0 -4
- package/dist/kolibri/step-DmzcVFZB.js +0 -4
- package/dist/kolibri/suggestions-BXp8OhOi.js +0 -4
- package/dist/kolibri/theme-store-CEu5d_EK.js +0 -4
- package/dist/kolibri/toggle-handler-D7oFDKvq.js +0 -4
- package/dist/kolibri/tooltip-open-tracking-DXhnfmA2.js +0 -4
- package/dist/kolibri/unique-nav-labels-BOqpcYk4.js +0 -4
- package/dist/kolibri/unit-BFYz7QfA.js +0 -4
- package/dist/kolibri/validators-DPSQyOeQ.js +0 -4
- package/dist/kolibri/value-string-Cmozozek.js +0 -4
- package/dist/types/components/card/base.d.ts +0 -27
- package/dist/types/components/popover-button/base.d.ts +0 -21
- package/dist/types/schema/components/accordion.d.ts +0 -11
- package/dist/types/schema/components/button-link.d.ts +0 -7
- package/dist/types/schema/components/collapsible.d.ts +0 -7
- package/dist/types/schema/components/combobox.d.ts +0 -26
- package/dist/types/schema/components/details.d.ts +0 -11
- package/dist/types/schema/components/dialog.d.ts +0 -21
- package/dist/types/schema/components/drawer.d.ts +0 -17
- package/dist/types/schema/components/heading.d.ts +0 -17
- package/dist/types/schema/components/input-checkbox.d.ts +0 -25
- package/dist/types/schema/components/input-color.d.ts +0 -25
- package/dist/types/schema/components/input-date.d.ts +0 -34
- package/dist/types/schema/components/input-email.d.ts +0 -31
- package/dist/types/schema/components/input-file.d.ts +0 -22
- package/dist/types/schema/components/input-number.d.ts +0 -33
- package/dist/types/schema/components/input-password.d.ts +0 -31
- package/dist/types/schema/components/input-radio.d.ts +0 -22
- package/dist/types/schema/components/input-range.d.ts +0 -27
- package/dist/types/schema/components/input-text.d.ts +0 -33
- package/dist/types/schema/components/kolibri.d.ts +0 -21
- package/dist/types/schema/components/link-button.d.ts +0 -7
- package/dist/types/schema/components/modal.d.ts +0 -4
- package/dist/types/schema/components/nav.d.ts +0 -16
- package/dist/types/schema/components/select.d.ts +0 -24
- package/dist/types/schema/components/single-select.d.ts +0 -24
- package/dist/types/schema/components/skip-nav.d.ts +0 -16
- package/dist/types/schema/components/split-button.d.ts +0 -9
- package/dist/types/schema/components/toolbar.d.ts +0 -11
- package/dist/types/schema/components/tree-item.d.ts +0 -12
- package/dist/types/schema/components/tree.d.ts +0 -10
- package/dist/types/schema/components/version.d.ts +0 -10
- package/dist/types/schema/validators/alignment.d.ts +0 -3
- package/dist/types/utils/testing/legacy-component.d.ts +0 -4
- /package/dist/collection/{components → internal/functional-components}/tree/open-items-cache.js +0 -0
- /package/dist/types/{components/link/ariaCurrentService.d.ts → internal/functional-components/link/aria-current-service.d.ts} +0 -0
- /package/dist/types/{components → internal/functional-components}/tree/open-items-cache.d.ts +0 -0
|
@@ -1,14 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import { watchValidator } from "../utils";
|
|
5
|
-
export const validateFixedCols = (component, value) => {
|
|
6
|
-
watchValidator(component, '_fixedCols', (value) => Array.isArray(value) &&
|
|
7
|
-
value.length === 2 &&
|
|
8
|
-
typeof value[0] === 'number' &&
|
|
9
|
-
typeof value[1] === 'number' &&
|
|
10
|
-
Number.isInteger(value[0]) &&
|
|
11
|
-
Number.isInteger(value[1]) &&
|
|
12
|
-
value[0] >= 0 &&
|
|
13
|
-
value[1] >= 0, new Set(['FixedColsPropType [leftFixed: number, rightFixed: number]']), value);
|
|
14
|
-
};
|
|
1
|
+
export {};
|
|
@@ -1,22 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import { parseJson, setState } from "../utils";
|
|
5
|
-
import { isObject } from "../validators";
|
|
6
|
-
export const validateTableSelection = (component, value) => {
|
|
7
|
-
const parseSerializedValue = () => {
|
|
8
|
-
try {
|
|
9
|
-
return parseJson(value);
|
|
10
|
-
}
|
|
11
|
-
catch (_a) {
|
|
12
|
-
return undefined;
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
const validateObject = (value) => {
|
|
16
|
-
return value && isObject(value) && typeof value.label === 'function' && (!value.selectedKeys || Array.isArray(value.selectedKeys));
|
|
17
|
-
};
|
|
18
|
-
const objectValue = typeof value === 'string' ? parseSerializedValue() : value;
|
|
19
|
-
if (validateObject(objectValue)) {
|
|
20
|
-
setState(component, '_selection', value);
|
|
21
|
-
}
|
|
22
|
-
};
|
|
1
|
+
export {};
|
|
@@ -1,21 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import { emptyStringByArrayHandler, objectObjectHandler, parseJson, setState } from "../utils";
|
|
5
|
-
export const validateToolbarItems = (component, value) => {
|
|
6
|
-
emptyStringByArrayHandler(value, () => {
|
|
7
|
-
objectObjectHandler(value, () => {
|
|
8
|
-
if (typeof value === 'undefined') {
|
|
9
|
-
value = [];
|
|
10
|
-
}
|
|
11
|
-
try {
|
|
12
|
-
value = parseJson(value);
|
|
13
|
-
}
|
|
14
|
-
catch (_a) {
|
|
15
|
-
}
|
|
16
|
-
if (Array.isArray(value) && value.every((items) => typeof items === 'object' && items !== null)) {
|
|
17
|
-
setState(component, '_items', value);
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
});
|
|
21
|
-
};
|
|
1
|
+
export {};
|
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import { watchValidator } from "../utils";
|
|
5
4
|
export const inputDateTypeOptions = ['date', 'datetime-local', 'month', 'time', 'week'];
|
|
6
|
-
const isInputDateTypePropType = (value) => {
|
|
7
|
-
return typeof value === 'string' && inputDateTypeOptions.includes(value);
|
|
8
|
-
};
|
|
9
|
-
export const validateTypeInputDate = (component, value) => {
|
|
10
|
-
watchValidator(component, '_type', isInputDateTypePropType, new Set(inputDateTypeOptions), value);
|
|
11
|
-
};
|
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import { watchValidator } from "../utils";
|
|
5
4
|
export const inputTextTypeOptions = ['text', 'search', 'url', 'tel'];
|
|
6
|
-
const isInputTextTypePropType = (value) => {
|
|
7
|
-
return typeof value === 'string' && inputTextTypeOptions.includes(value);
|
|
8
|
-
};
|
|
9
|
-
export const validateTypeInputText = (component, value) => {
|
|
10
|
-
watchValidator(component, '_type', isInputTextTypePropType, new Set(inputTextTypeOptions), value);
|
|
11
|
-
};
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import { watchValidator } from "../../utils/prop.validators";
|
|
5
|
-
const DialogVariantPropTypeOptions = ['blank', 'card'];
|
|
6
|
-
export const validateDialogVariant = (component, value) => {
|
|
7
|
-
watchValidator(component, '_variant', (value) => typeof value === 'string' && DialogVariantPropTypeOptions.includes(value), new Set(DialogVariantPropTypeOptions), value);
|
|
8
|
-
};
|
|
1
|
+
export {};
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import { watchValidator } from "../../utils/prop.validators";
|
|
5
|
-
const PasswordVariantPropTypeOptions = ['default', 'visibility-toggle'];
|
|
6
|
-
export const validatePasswordVariant = (component, value) => {
|
|
7
|
-
watchValidator(component, '_variant', (value) => typeof value === 'string' && PasswordVariantPropTypeOptions.includes(value), new Set(PasswordVariantPropTypeOptions), value);
|
|
8
|
-
};
|
|
1
|
+
export {};
|
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import { watchValidator } from "../utils";
|
|
5
4
|
export const alertVariantOptions = ['card', 'msg'];
|
|
6
|
-
const isAlertVariantPropType = (value) => {
|
|
7
|
-
return typeof value === 'string' && alertVariantOptions.includes(value);
|
|
8
|
-
};
|
|
9
|
-
export const validateAlertVariant = (component, value) => {
|
|
10
|
-
watchValidator(component, '_variant', isAlertVariantPropType, new Set(alertVariantOptions), value);
|
|
11
|
-
};
|
|
@@ -1,39 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import { watchValidator } from "../utils";
|
|
5
|
-
import { isString } from "../validators";
|
|
6
|
-
const SAFE_CLASS_NAME_RE = /^[a-zA-Z][a-zA-Z0-9_-]{3,60}$/;
|
|
7
|
-
const isValidArrayOrString = (value) => (Array.isArray(value) && value.every(isSafeClassName)) || (isString(value, 1) && value.split(' ').every(isSafeClassName));
|
|
8
|
-
const isSafeClassName = (value) => typeof value === 'string' && SAFE_CLASS_NAME_RE.test(value);
|
|
9
|
-
const SAFE_CLASS_NAME_ALLOWED = new Set([SAFE_CLASS_NAME_RE.source]);
|
|
10
|
-
const beforePatchString = (component) => {
|
|
11
|
-
var _a, _b, _c;
|
|
12
|
-
if ((_a = component.nextState) === null || _a === void 0 ? void 0 : _a.has('_variant')) {
|
|
13
|
-
const variants = (_b = component.nextState) === null || _b === void 0 ? void 0 : _b.get('_variant');
|
|
14
|
-
let nextStateVariants = [];
|
|
15
|
-
if (isString(variants, 1)) {
|
|
16
|
-
nextStateVariants = variants.split(' ');
|
|
17
|
-
}
|
|
18
|
-
else if (Array.isArray(variants)) {
|
|
19
|
-
nextStateVariants = variants;
|
|
20
|
-
}
|
|
21
|
-
(_c = component.nextState) === null || _c === void 0 ? void 0 : _c.set('_variant', nextStateVariants);
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
export const validateVariantClassName = (component, value, options = {}) => {
|
|
25
|
-
var _a;
|
|
26
|
-
watchValidator(component, '_variant', isValidArrayOrString, SAFE_CLASS_NAME_ALLOWED, value, Object.assign(Object.assign({}, options), { defaultValue: [], hooks: {
|
|
27
|
-
afterPatch: (_a = options.hooks) === null || _a === void 0 ? void 0 : _a.afterPatch,
|
|
28
|
-
beforePatch: (nextValue, nextState, component, key) => {
|
|
29
|
-
var _a, _b;
|
|
30
|
-
if (typeof ((_a = options.hooks) === null || _a === void 0 ? void 0 : _a.beforePatch) === 'function') {
|
|
31
|
-
(_b = options.hooks) === null || _b === void 0 ? void 0 : _b.beforePatch(nextValue, nextState, component, key);
|
|
32
|
-
}
|
|
33
|
-
beforePatchString(component);
|
|
34
|
-
},
|
|
35
|
-
} }));
|
|
36
|
-
};
|
|
37
4
|
export const classNameFromVariant = (variants, componentName) => {
|
|
38
5
|
let className = '';
|
|
39
6
|
if (Array.isArray(variants)) {
|
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import { watchValidator } from "../utils";
|
|
5
4
|
export const inputCheckboxVariantOptions = ['button', 'default', 'switch'];
|
|
6
|
-
const isInputCheckboxVariantPropType = (value) => {
|
|
7
|
-
return typeof value === 'string' && inputCheckboxVariantOptions.includes(value);
|
|
8
|
-
};
|
|
9
|
-
export const validateVariantInputCheckbox = (component, value) => {
|
|
10
|
-
watchValidator(component, '_variant', isInputCheckboxVariantPropType, new Set(inputCheckboxVariantOptions), value);
|
|
11
|
-
};
|
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import { watchValidator } from "../utils";
|
|
5
4
|
export const progressVariantOptions = ['bar', 'cycle'];
|
|
6
|
-
const isProgressVariantPropType = (value) => {
|
|
7
|
-
return typeof value === 'string' && progressVariantOptions.includes(value);
|
|
8
|
-
};
|
|
9
|
-
export const validateVariantProgress = (component, value) => {
|
|
10
|
-
watchValidator(component, '_variant', isProgressVariantPropType, new Set(progressVariantOptions), value);
|
|
11
|
-
};
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import { watchString } from "../utils";
|
|
5
|
-
export const validateWidth = (component, value, options) => {
|
|
6
|
-
watchString(component, '_width', value, Object.assign({ defaultValue: '100%' }, options));
|
|
7
|
-
};
|
|
1
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import { hex } from "wcag-contrast";
|
|
5
4
|
import rgba from "color-rgba";
|
|
6
5
|
import rgbaConvert from "rgba-convert";
|
|
6
|
+
import { hex } from "wcag-contrast";
|
|
7
7
|
export const getContrastYIQ = (r, g, b) => {
|
|
8
8
|
const yiq = (r * 299 + g * 587 + b * 114) / 1000;
|
|
9
9
|
return yiq >= 128 ? -1 : 1;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
import { getCssStyle, patchTheme, patchThemeTag } from "adopted-style-sheets";
|
|
5
5
|
import rgba from "rgba-convert";
|
|
6
6
|
import { hex, score } from "wcag-contrast";
|
|
7
|
-
import { getDocument, getExperimentalMode, isValidationEnabled, Log } from "./dev.utils";
|
|
8
7
|
import { devHint } from "./a11y.tipps";
|
|
8
|
+
import { getDocument, getExperimentalMode, isValidationEnabled, Log } from "./dev.utils";
|
|
9
9
|
const OBJECT_OBJECT = /\[object Object\]/;
|
|
10
10
|
export const objectObjectHandler = (value, cb) => {
|
|
11
11
|
if (typeof value === 'string' && OBJECT_OBJECT.test(value)) {
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
+
const NUMBER_STRING_PATTERN = /^[-+]?(\d+(\.\d*)?|\.\d+)([eE][-+]?\d+)?$/;
|
|
5
|
+
export function isNumberString(value) {
|
|
6
|
+
return typeof value === 'string' && NUMBER_STRING_PATTERN.test(value) && Number.isFinite(Number(value));
|
|
7
|
+
}
|
|
4
8
|
export const isObject = (value) => typeof value === 'object' && value !== null;
|
|
5
9
|
export const isString = (value, minLength = 0) => typeof value === 'string' && value.length >= minLength;
|
|
6
10
|
export const isStyle = (style) => {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import { Log, getDocument, isTestMode, setColorContrastAnalysis, setExperimentalMode } from "../schema";
|
|
5
4
|
import { Env } from "@stencil/core";
|
|
6
|
-
import { getWindow } from "../schema";
|
|
5
|
+
import { Log, getDocument, getWindow, isTestMode, setColorContrastAnalysis, setExperimentalMode } from "../schema";
|
|
7
6
|
const initMeta = () => {
|
|
8
7
|
try {
|
|
9
8
|
const document = getDocument();
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { executeSnapshotTests } from "./snapshot-testing";
|
|
5
5
|
export function executeInputSnapshotTests(ComponentName, components, extendedProps, options = {}) {
|
|
6
|
-
const baseObj = Object.assign({ _label: 'Label', _name: 'field', _placeholder: 'Hier steht ein Platzhaltertext' },
|
|
6
|
+
const baseObj = Object.assign({ _label: 'Label', _name: 'field', _placeholder: 'Hier steht ein Platzhaltertext' }, extendedProps);
|
|
7
7
|
const propVariants = [
|
|
8
8
|
Object.assign({}, baseObj),
|
|
9
9
|
Object.assign(Object.assign({}, baseObj), { _accessKey: 'V' }),
|
|
@@ -9,12 +9,13 @@ const propsToLabel = (props) => {
|
|
|
9
9
|
.join(' ');
|
|
10
10
|
};
|
|
11
11
|
export const executeSnapshotTests = (ComponentName, components, propVariants) => {
|
|
12
|
+
const TagName = ComponentName;
|
|
12
13
|
describe(ComponentName, () => {
|
|
13
14
|
const testTable = propVariants.map((props) => [propsToLabel(props), props]);
|
|
14
15
|
it.each(testTable)('should render with %s', async (_, props) => {
|
|
15
16
|
const page = await newSpecPage({
|
|
16
17
|
components,
|
|
17
|
-
template: () => h(
|
|
18
|
+
template: () => h(TagName, Object.assign({}, props)),
|
|
18
19
|
});
|
|
19
20
|
await page.waitForChanges();
|
|
20
21
|
expect(page.root).toMatchSnapshot();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as e}from"./
|
|
4
|
+
import{h as e}from"./prop.validators.js";import{a as s}from"./tslib.es6.js";import{f as l}from"./base-web-component.js";const a=1;function o(e){return function(e){return e>=a&&e<=6}(e)?`h${e}`:"strong"}const r=(r,n)=>{var{class:c,level:t=a}=r,i=s(r,["class","level"]);const d=o(t);return e(d,Object.assign({class:l("kol-headline",`kol-headline--${d}`,c)},i),n)},n=(a,o)=>{var{class:r}=a,n=s(a,["class"]);return e("p",Object.assign({class:l("kol-headline kol-headline--group kol-headline--secondary",r)},n),o)},c=(o,c)=>{var{secondaryHeadline:t,level:i=a,class:d,HeadingGroupProps:p={},SecondaryHeadlineProps:u={}}=o,b=s(o,["secondaryHeadline","level","class","HeadingGroupProps","SecondaryHeadlineProps"]);const h=Object.assign({level:i},b);if(!t)return e(r,Object.assign({class:l(d,"kol-headline--single")},h),c);const{class:j}=p,g=s(p,["class"]),k=Object.assign({class:l("kol-heading-group",j)},g);return e("hgroup",Object.assign({},k),e(r,Object.assign({class:l(d,"kol-headline--group","kol-headline--primary")},h),c),e(n,Object.assign({},u),t))};export{c as K,o as g}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import"./
|
|
4
|
+
import"./prop.validators.js";const o=(o,r)=>{if(o&&r)throw new Error("AccessKey and ShortKey are used. Only one is allowed.")};export{o as v}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{g as s}from"./shared-state.js";import"./prop.validators.js";const o=s("location",(()=>({subscribers:[]}))),t=s=>{o.current=s,o.subscribers.forEach((o=>{o(s)}))},r=(s,t=!0)=>(t&&"string"==typeof o.current&&s(o.current),o.subscribers.push(s),()=>{const t=o.subscribers.indexOf(s);t>=0&&o.subscribers.splice(t,1)});export{r as o,t as s}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{u as t,v as r,x as n,y as e,z as o,h as i,A as u}from"./common.js";import{b as a}from"./bem-registry.js";var c="object"==typeof global&&global&&global.Object===Object&&global,s="object"==typeof self&&self&&self.Object===Object&&self,f=c||s||Function("return this")(),l=f.Symbol,v=Object.prototype,h=v.hasOwnProperty,b=v.toString,p=l?l.toStringTag:void 0,d=Object.prototype.toString,y=l?l.toStringTag:void 0;function j(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":y&&y in Object(t)?function(t){var r=h.call(t,p),n=t[p];try{t[p]=void 0;var e=!0}catch(t){}var o=b.call(t);return e&&(r?t[p]=n:delete t[p]),o}(t):function(t){return d.call(t)}(t)}function w(t){return null!=t&&"object"==typeof t}var g=Array.isArray;function m(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}function O(t){if(!m(t))return!1;var r=j(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}var $,A=f["__core-js_shared__"],S=($=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||""))?"Symbol(src)_1."+$:"",x=Function.prototype.toString;function N(t){if(null!=t){try{return x.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var _=/^\[object .+?Constructor\]$/,E=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function M(t,r){var n=function(t,r){return null==t?void 0:t[r]}(t,r);return function(t){return!(!m(t)||(r=t,S&&S in r))&&(O(t)?E:_).test(N(t));var r}(n)?n:void 0}var I=M(f,"WeakMap"),F=Object.create,P=function(){function t(){}return function(r){if(!m(r))return{};if(F)return F(r);t.prototype=r;var n=new t;return t.prototype=void 0,n}}(),D=function(){try{var t=M(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),R=/^(?:0|[1-9]\d*)$/;function k(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&R.test(t))&&t>-1&&t%1==0&&t<r}function z(t,r){return t===r||t!=t&&r!=r}var T=Object.prototype.hasOwnProperty;function B(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}var J=Object.prototype;function C(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||J)}function U(t){return w(t)&&"[object Arguments]"==j(t)}var V=Object.prototype,q=V.hasOwnProperty,G=V.propertyIsEnumerable,K=U(function(){return arguments}())?U:function(t){return w(t)&&q.call(t,"callee")&&!G.call(t,"callee")},W="object"==typeof exports&&exports&&!exports.nodeType&&exports,H=W&&"object"==typeof module&&module&&!module.nodeType&&module,L=H&&H.exports===W?f.Buffer:void 0,Z=(L?L.isBuffer:void 0)||function(){return!1},Q={};function X(t){return function(r){return t(r)}}Q["[object Float32Array]"]=Q["[object Float64Array]"]=Q["[object Int8Array]"]=Q["[object Int16Array]"]=Q["[object Int32Array]"]=Q["[object Uint8Array]"]=Q["[object Uint8ClampedArray]"]=Q["[object Uint16Array]"]=Q["[object Uint32Array]"]=!0,Q["[object Arguments]"]=Q["[object Array]"]=Q["[object ArrayBuffer]"]=Q["[object Boolean]"]=Q["[object DataView]"]=Q["[object Date]"]=Q["[object Error]"]=Q["[object Function]"]=Q["[object Map]"]=Q["[object Number]"]=Q["[object Object]"]=Q["[object RegExp]"]=Q["[object Set]"]=Q["[object String]"]=Q["[object WeakMap]"]=!1;var Y="object"==typeof exports&&exports&&!exports.nodeType&&exports,tt=Y&&"object"==typeof module&&module&&!module.nodeType&&module,rt=tt&&tt.exports===Y&&c.process,nt=function(){try{return tt&&tt.require&&tt.require("util").types||rt&&rt.binding&&rt.binding("util")}catch(t){}}(),et=nt&&nt.isTypedArray,ot=et?X(et):function(t){return w(t)&&B(t.length)&&!!Q[j(t)]},it=Object.prototype.hasOwnProperty;function ut(t,r){return function(n){return t(r(n))}}var at=ut(Object.keys,Object),ct=Object.prototype.hasOwnProperty;function st(t){return null!=(r=t)&&B(r.length)&&!O(r)?function(t){var r=g(t),n=!r&&K(t),e=!r&&!n&&Z(t),o=!r&&!n&&!e&&ot(t),i=r||n||e||o,u=i?function(t,r){for(var n=-1,e=Array(t);++n<t;)e[n]=r(n);return e}(t.length,String):[],a=u.length;for(var c in t)!it.call(t,c)||i&&("length"==c||e&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||k(c,a))||u.push(c);return u}(t):function(t){if(!C(t))return at(t);var r=[];for(var n in Object(t))ct.call(t,n)&&"constructor"!=n&&r.push(n);return r}(t);var r}var ft=M(Object,"create"),lt=Object.prototype.hasOwnProperty,vt=Object.prototype.hasOwnProperty;function ht(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}function bt(t,r){for(var n=t.length;n--;)if(z(t[n][0],r))return n;return-1}ht.prototype.clear=function(){this.__data__=ft?ft(null):{},this.size=0},ht.prototype.delete=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r},ht.prototype.get=function(t){var r=this.__data__;if(ft){var n=r[t];return"__lodash_hash_undefined__"===n?void 0:n}return lt.call(r,t)?r[t]:void 0},ht.prototype.has=function(t){var r=this.__data__;return ft?void 0!==r[t]:vt.call(r,t)},ht.prototype.set=function(t,r){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=ft&&void 0===r?"__lodash_hash_undefined__":r,this};var pt=Array.prototype.splice;function dt(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}dt.prototype.clear=function(){this.__data__=[],this.size=0},dt.prototype.delete=function(t){var r=this.__data__,n=bt(r,t);return!(n<0||(n==r.length-1?r.pop():pt.call(r,n,1),--this.size,0))},dt.prototype.get=function(t){var r=this.__data__,n=bt(r,t);return n<0?void 0:r[n][1]},dt.prototype.has=function(t){return bt(this.__data__,t)>-1},dt.prototype.set=function(t,r){var n=this.__data__,e=bt(n,t);return e<0?(++this.size,n.push([t,r])):n[e][1]=r,this};var yt=M(f,"Map");function jt(t,r){var n,e,o=t.__data__;return("string"==(e=typeof(n=r))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==n:null===n)?o["string"==typeof r?"string":"hash"]:o.map}function wt(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}wt.prototype.clear=function(){this.size=0,this.__data__={hash:new ht,map:new(yt||dt),string:new ht}},wt.prototype.delete=function(t){var r=jt(this,t).delete(t);return this.size-=r?1:0,r},wt.prototype.get=function(t){return jt(this,t).get(t)},wt.prototype.has=function(t){return jt(this,t).has(t)},wt.prototype.set=function(t,r){var n=jt(this,t),e=n.size;return n.set(t,r),this.size+=n.size==e?0:1,this};var gt=ut(Object.getPrototypeOf,Object);function mt(t){var r=this.__data__=new dt(t);this.size=r.size}mt.prototype.clear=function(){this.__data__=new dt,this.size=0},mt.prototype.delete=function(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n},mt.prototype.get=function(t){return this.__data__.get(t)},mt.prototype.has=function(t){return this.__data__.has(t)},mt.prototype.set=function(t,r){var n=this.__data__;if(n instanceof dt){var e=n.__data__;if(!yt||e.length<199)return e.push([t,r]),this.size=++n.size,this;n=this.__data__=new wt(e)}return n.set(t,r),this.size=n.size,this},"object"==typeof exports&&exports&&!exports.nodeType&&exports&&"object"==typeof module&&module&&!module.nodeType&&module;var Ot=Object.prototype.propertyIsEnumerable,$t=Object.getOwnPropertySymbols,At=$t?function(t){return null==t?[]:(t=Object(t),function(r){for(var n=-1,e=null==r?0:r.length,o=0,i=[];++n<e;){var u=r[n];Ot.call(t,u)&&(i[o++]=u)}return i}($t(t)))}:function(){return[]};var St=M(f,"DataView"),xt=M(f,"Promise"),Nt=M(f,"Set"),_t="[object Map]",Et="[object Promise]",Mt="[object Set]",It="[object WeakMap]",Ft="[object DataView]",Pt=N(St),Dt=N(yt),Rt=N(xt),kt=N(Nt),zt=N(I),Tt=j;(St&&Tt(new St(new ArrayBuffer(1)))!=Ft||yt&&Tt(new yt)!=_t||xt&&Tt(xt.resolve())!=Et||Nt&&Tt(new Nt)!=Mt||I&&Tt(new I)!=It)&&(Tt=function(t){var r=j(t),n="[object Object]"==r?t.constructor:void 0,e=n?N(n):"";if(e)switch(e){case Pt:return Ft;case Dt:return _t;case Rt:return Et;case kt:return Mt;case zt:return It}return r});var Bt=Object.prototype.hasOwnProperty,Jt=f.Uint8Array;function Ct(t){var r=new t.constructor(t.byteLength);return new Jt(r).set(new Jt(t)),r}var Ut=/\w*$/,Vt=l?l.prototype:void 0,qt=Vt?Vt.valueOf:void 0;var Gt=nt&&nt.isMap,Kt=Gt?X(Gt):function(t){return w(t)&&"[object Map]"==Tt(t)},Wt=nt&&nt.isSet,Ht=Wt?X(Wt):function(t){return w(t)&&"[object Set]"==Tt(t)},Lt="[object Arguments]",Zt="[object Function]",Qt="[object Object]",Xt={};function Yt(t,r,n,e,o,i){var u;if(void 0!==u)return u;if(!m(t))return t;var a=g(t);if(a)u=function(t){var r=t.length,n=new t.constructor(r);return r&&"string"==typeof t[0]&&Bt.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t);else{var c=Tt(t),s=c==Zt||"[object GeneratorFunction]"==c;if(Z(t))return t.slice();if(c==Qt||c==Lt||s&&!o)u=s?{}:function(t){return"function"!=typeof t.constructor||C(t)?{}:P(gt(t))}(t);else{if(!Xt[c])return o?t:{};u=function(t,r){var n,e,o,i,u=t.constructor;switch(r){case"[object ArrayBuffer]":return Ct(t);case"[object Boolean]":case"[object Date]":return new u(+t);case"[object DataView]":return i=Ct((o=t).buffer),new o.constructor(i,o.byteOffset,o.byteLength);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(t){var r=Ct(t.buffer);return new t.constructor(r,t.byteOffset,t.length)}(t);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(t);case"[object RegExp]":return(e=new(n=t).constructor(n.source,Ut.exec(n))).lastIndex=n.lastIndex,e;case"[object Symbol]":return qt?Object(qt.call(t)):{}}}(t,c)}}i||(i=new mt);var f=i.get(t);if(f)return f;i.set(t,u),Ht(t)?t.forEach((function(e){u.add(Yt(e,r,n,0,t,i))})):Kt(t)&&t.forEach((function(e,o){u.set(o,Yt(e,r,n,0,t,i))}));var l=a?void 0:function(t){return function(t,r,n){var e=st(t);return g(t)?e:function(t,r){for(var n=-1,e=r.length,o=t.length;++n<e;)t[o+n]=r[n];return t}(e,n(t))}(t,0,At)}(t);return function(t,r){for(var n=-1,e=null==t?0:t.length;++n<e&&!1!==r(t[n],n););}(l||t,(function(e,o){l&&(e=t[o=e]),function(t,r,n){var e=t[r];T.call(t,r)&&z(e,n)&&(void 0!==n||r in t)||function(t,r,n){"__proto__"==r&&D?D(t,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[r]=n}(t,r,n)}(u,o,Yt(e,r,n,0,t,i))})),u}function tr(t){return Yt(t,5)}function rr(t){if("string"==typeof t)return t;if("number"==typeof t||"boolean"==typeof t||"bigint"==typeof t)return String(t);throw new TypeError(`Cannot convert ${typeof t} to string`)}function nr(t){if("string"==typeof t)return t;if("number"==typeof t||"boolean"==typeof t||"bigint"==typeof t)return String(t);if(Array.isArray(t)&&t.every(xr))return t;throw new TypeError(`Cannot convert ${typeof t} to a label`)}function er(t){let r;try{r=or(t)}catch(r){throw new Error(`Invalid integer: ${String(t)}`)}return Number.isInteger(r)?r:Math.round(r)}function or(t){if("number"==typeof t&&!isNaN(t))return t;if("string"==typeof t&&""!==t.trim()){const r=Number(t);if(!isNaN(r))return r}throw new Error(`Invalid number: ${String(t)}`)}function ir(t){if("number"==typeof t&&!isNaN(t))return t;throw new Error(`Invalid number: ${String(t)}`)}Xt[Lt]=Xt["[object Array]"]=Xt["[object ArrayBuffer]"]=Xt["[object DataView]"]=Xt["[object Boolean]"]=Xt["[object Date]"]=Xt["[object Float32Array]"]=Xt["[object Float64Array]"]=Xt["[object Int8Array]"]=Xt["[object Int16Array]"]=Xt["[object Int32Array]"]=Xt["[object Map]"]=Xt["[object Number]"]=Xt[Qt]=Xt["[object RegExp]"]=Xt["[object Set]"]=Xt["[object String]"]=Xt["[object Symbol]"]=Xt["[object Uint8Array]"]=Xt["[object Uint8ClampedArray]"]=Xt["[object Uint16Array]"]=Xt["[object Uint32Array]"]=!0,Xt["[object Error]"]=Xt[Zt]=Xt["[object WeakMap]"]=!1;const ur=/^[-+]?(\d+(\.\d*)?|\.\d+)([eE][-+]?\d+)?$/;function ar(t){return"string"==typeof t&&ur.test(t)&&Number.isFinite(Number(t))}function cr(t){if("number"==typeof t)return isNaN(t)?void 0:t;if(ar(t))return parseFloat(t);throw new Error(`Invalid number: ${t}`)}function sr(t){if("boolean"==typeof t)return t;if("string"==typeof t){const r=t.toLowerCase();if("true"===r||"false"===r)return"true"===r}throw new Error(`Invalid boolean: ${String(t)}`)}function fr(t,r){if(!0===t||"true"===t)return"true";if(!1===t||"false"===t)return"false";if(""===t)return"";throw new Error(`Invalid ${r} value: expected a boolean, got ${JSON.stringify(t)}`)}function lr(t,r){return"string"==typeof t&&r.includes(t)}function vr(r){if(t(r))return r;if("string"==typeof r){const n=JSON.parse(r);if(t(n))return n}throw new Error(`Invalid object: ${r}`)}function hr(r){if(t(r)&&Array.isArray(r))return r;if("string"==typeof r){const n=JSON.parse(r);if(t(n)&&Array.isArray(n))return n}throw new Error(`Invalid array: ${r}`)}function br(t){if("object"==typeof t&&null!==t)return t;throw new Error("Invalid on callbacks: expected object, got "+typeof t)}function pr(t){try{return JSON.stringify(t)}catch(t){return"[unserializable]"}}function dr(t,n,e){const o=e instanceof Error?` (${e.message})`:"";r(`The property value ${pr(n)} for '${t}' is not valid${o}. The value is ignored.`)}function yr(t,n,e,o=()=>!0,i){return{propName:t,getDefaultValue:m(n)?()=>tr(n):()=>n,normalize:e,validate:o,apply(e,o,u){var a;if(null!=e)try{const r=this.normalize(e);this.validate(r)?(null===(a=null==i?void 0:i.hints)||void 0===a||a.call(i,this.propName,r),o(r)):dr(t,e)}catch(r){dr(t,e,r)}else{if(u&&r(`The required property '_${t}' did not receive a value. ${void 0===n?"The property stays unset.":"The default value is used instead."}`),void 0===n)return void o(void 0);const e=this.getDefaultValue();if(!this.validate(e))throw new Error(`Default value ${pr(n)} is invalid for prop definition '${t}'.`);o(e)}}}}function jr(t,r,n,e=()=>!0){return{propName:t,getDefaultValue:m(r)?()=>tr(r):()=>r,normalize:n,validate:e,apply(n,e,o){if(null!=n)try{const r=this.normalize(n,o);this.validate(r,o)?e(r):dr(t,n)}catch(r){dr(t,n,r)}else{if(void 0===r)return void e(void 0);const n=this.getDefaultValue();if(!this.validate(n,o))throw new Error(`Default value ${pr(r)} is invalid for prop definition '${t}' with dependencies ${pr(o)}.`);e(n)}}}}function wr(){return yr("on",{},(t=>br(t)))}function gr(t){var r;Array.isArray(t)&&t.raw&&(t=String.raw(...arguments));var i=n(t);if(!i.space)return[];const u="h"===i.space[0]?e.min:o.min,a="h"===i.space[0]?e.max:o.max;return(r=Array(3))[0]=Math.min(Math.max(i.values[0],u[0]),a[0]),r[1]=Math.min(Math.max(i.values[1],u[1]),a[1]),r[2]=Math.min(Math.max(i.values[2],u[2]),a[2]),"h"===i.space[0]&&(r=e.rgb(r)),r.push(Math.min(Math.max(i.alpha,0),1)),r}const mr=/[a-zA-Z0-9äöüÄÖÜß]/g,Or=/^\d+$/;function $r(t,r=1){return function(t){var r;return"string"==typeof t&&(null===(r=t.match(mr))||void 0===r?void 0:r.length)||0}(t)>=r}function Ar(t){return Or.test(t)}function Sr(t){return"string"==typeof t?t.trim():Array.isArray(t)?t.map((t=>t.text)).join("").trim():""}function xr(t){if("object"!=typeof t||null===t)return!1;const r=t;return!!Object.keys(r).every((t=>"text"===t||"lang"===t))&&"string"==typeof r.text&&(void 0===r.lang||"string"==typeof r.lang)}const Nr=t=>t.length>=2||Ar(t);function _r(t){return"string"==typeof t?Nr(t):!!Array.isArray(t)&&t.length>0&&t.every(xr)&&Nr(Sr(t))}const Er=/^#((\d|[a-f]){8}|(\d|[a-f]){6}|(\d|[a-f]){3,4})$/i,Mr=t=>"object"==typeof t&&null!==t&&"string"==typeof t.backgroundColor&&"string"==typeof t.foregroundColor,Ir=t=>{const r=gr(t);if(!Array.isArray(r)||r.length<3)throw new Error(`Invalid KoliBri color: ${t}`);const[n,e,o]=r;return{red:n,green:e,blue:o}},Fr=yr("color",Ir("#003c78"),(t=>{if("string"==typeof t&&Er.test(t))return Ir(t);const r=Mr(t)?t:"string"==typeof t?(t=>{if(t.startsWith("{"))try{const r=JSON.parse(t);return Mr(r)?r:void 0}catch(t){return}})(t):void 0;if(r)return Ir(r.foregroundColor);throw new Error("Invalid KoliBri color: expected a hex string or a color pair.")})),Pr=new Set(["eager","lazy"]),Dr=yr("loading","lazy",(t=>rr(t)),(t=>Pr.has(t)));function Rr(t,r){return t<r.min?r.min:t>r.max?r.max:t}const kr=jr("value",0,((t,r)=>Rr(or(t),r)),(t=>"number"==typeof t&&!isNaN(t))),zr=Object.assign(Object.assign({},kr),{apply(t,r,n){kr.apply(t,(t=>r(Rr(t,n))),n)}}),Tr=new Set(["blank","card"]),Br=yr("variant","blank",(t=>rr(t)),(t=>Tr.has(t))),Jr=new Set(["block","inline"]),Cr=yr("variant","inline",(t=>rr(t)),(t=>Jr.has(t))),Ur=t=>{let r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t&&null!==t)if(Array.isArray(t)){for(const n of t)if(n){const t=Ur(n);t&&(r&&(r+=" "),r+=t)}}else for(const n in t)t[n]&&(r&&(r+=" "),r+=n);return r},Vr=(...t)=>{let r="";for(const n of t)if(n){const t=Ur(n);t&&(r&&(r+=" "),r+=t)}return r},qr=new Map;function Gr(t){let r=qr.get(t);return r||(r=a.forBlock(t),qr.set(t,r)),r}const Kr=(t,r)=>{var n;const e=Gr(t.block),o=Vr(e(t.modifiers),t.class),u={};for(const[r,n]of Object.entries(t))"block"===r?u.class=o:"class"!==r&&"component"!==r&&"modifiers"!==r&&(u[r]=n);const a=null!==(n=t.component)&&void 0!==n?n:"div";return i(a,Object.assign({},u),r)};function Wr(t){var r,n;const e={};for(const o of[...null!==(r=t.required)&&void 0!==r?r:[],...null!==(n=t.optional)&&void 0!==n?n:[]])e[o.propName]=o.getDefaultValue();return e}function Hr(t,r){return Object.assign(Object.assign({},Wr(t)),r)}function Lr(){throw new Error("This behavior does not use component state.")}const Zr=class extends u{constructor(){super(!1),this.rawProps={},this.renderProps={},this.requiredPropNames=new Set,this.renderPropsSeeded=!1,this.setState=(t,r)=>{this[t]=r},this.getState=t=>this[t],this.stateAccess={setState:this.setState,getState:this.getState}}seedRenderProps(){var t;this.renderPropsSeeded||(this.renderPropsSeeded=!0,this.renderProps=Wr(this.propsConfig),this.requiredPropNames=new Set((null!==(t=this.propsConfig.required)&&void 0!==t?t:[]).map((t=>t.propName))))}isRequired(t){return this.seedRenderProps(),this.requiredPropNames.has(t)}setRawProp(t,r){this.rawProps[t]=r}getRawProp(t){return this.rawProps[t]}setRenderProp(t,r){this.seedRenderProps(),this.renderProps[t]=r}unsetRenderProp(t){this.seedRenderProps(),this.renderProps[t]=void 0}getRenderProp(t){return this.seedRenderProps(),this.renderProps[t]}};Zr.stateLess=Object.freeze({setState:Lr,getState:Lr});export{vr as A,Kr as B,Nr as C,gr as D,Br as E,cr as F,ar as G,ir as H,Cr as I,br as J,Zr as a,wr as b,yr as c,rr as d,Wr as e,Vr as f,Gr as g,hr as h,jr as i,lr as j,Fr as k,Dr as l,or as m,sr as n,zr as o,_r as p,nr as q,Hr as r,$r as s,Sr as t,Ar as u,er as v,w,g as x,j as y,fr as z}
|
|
4
|
+
import{u as t,v as r,x as n,y as e,z as o,A as i,h as u,B as a}from"./prop.validators.js";import{b as c}from"./bem-registry.js";var s="object"==typeof global&&global&&global.Object===Object&&global,f="object"==typeof self&&self&&self.Object===Object&&self,l=s||f||Function("return this")(),v=l.Symbol,h=Object.prototype,b=h.hasOwnProperty,p=h.toString,d=v?v.toStringTag:void 0,y=Object.prototype.toString,j=v?v.toStringTag:void 0;function w(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":j&&j in Object(t)?function(t){var r=b.call(t,d),n=t[d];try{t[d]=void 0;var e=!0}catch(t){}var o=p.call(t);return e&&(r?t[d]=n:delete t[d]),o}(t):function(t){return y.call(t)}(t)}function g(t){return null!=t&&"object"==typeof t}var m=Array.isArray;function O(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}function $(t){if(!O(t))return!1;var r=w(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}var A,S=l["__core-js_shared__"],x=(A=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||""))?"Symbol(src)_1."+A:"",_=Function.prototype.toString;function N(t){if(null!=t){try{return _.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var E=/^\[object .+?Constructor\]$/,M=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function I(t,r){var n=function(t,r){return null==t?void 0:t[r]}(t,r);return function(t){return!(!O(t)||(r=t,x&&x in r))&&($(t)?M:E).test(N(t));var r}(n)?n:void 0}var F=I(l,"WeakMap"),P=Object.create,D=function(){function t(){}return function(r){if(!O(r))return{};if(P)return P(r);t.prototype=r;var n=new t;return t.prototype=void 0,n}}(),R=function(){try{var t=I(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),k=/^(?:0|[1-9]\d*)$/;function z(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&k.test(t))&&t>-1&&t%1==0&&t<r}function T(t,r){return t===r||t!=t&&r!=r}var B=Object.prototype.hasOwnProperty;function C(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}var J=Object.prototype;function U(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||J)}function V(t){return g(t)&&"[object Arguments]"==w(t)}var q=Object.prototype,G=q.hasOwnProperty,K=q.propertyIsEnumerable,W=V(function(){return arguments}())?V:function(t){return g(t)&&G.call(t,"callee")&&!K.call(t,"callee")},H="object"==typeof exports&&exports&&!exports.nodeType&&exports,L=H&&"object"==typeof module&&module&&!module.nodeType&&module,Z=L&&L.exports===H?l.Buffer:void 0,Q=(Z?Z.isBuffer:void 0)||function(){return!1},X={};function Y(t){return function(r){return t(r)}}X["[object Float32Array]"]=X["[object Float64Array]"]=X["[object Int8Array]"]=X["[object Int16Array]"]=X["[object Int32Array]"]=X["[object Uint8Array]"]=X["[object Uint8ClampedArray]"]=X["[object Uint16Array]"]=X["[object Uint32Array]"]=!0,X["[object Arguments]"]=X["[object Array]"]=X["[object ArrayBuffer]"]=X["[object Boolean]"]=X["[object DataView]"]=X["[object Date]"]=X["[object Error]"]=X["[object Function]"]=X["[object Map]"]=X["[object Number]"]=X["[object Object]"]=X["[object RegExp]"]=X["[object Set]"]=X["[object String]"]=X["[object WeakMap]"]=!1;var tt="object"==typeof exports&&exports&&!exports.nodeType&&exports,rt=tt&&"object"==typeof module&&module&&!module.nodeType&&module,nt=rt&&rt.exports===tt&&s.process,et=function(){try{return rt&&rt.require&&rt.require("util").types||nt&&nt.binding&&nt.binding("util")}catch(t){}}(),ot=et&&et.isTypedArray,it=ot?Y(ot):function(t){return g(t)&&C(t.length)&&!!X[w(t)]},ut=Object.prototype.hasOwnProperty;function at(t,r){return function(n){return t(r(n))}}var ct=at(Object.keys,Object),st=Object.prototype.hasOwnProperty;function ft(t){return null!=(r=t)&&C(r.length)&&!$(r)?function(t){var r=m(t),n=!r&&W(t),e=!r&&!n&&Q(t),o=!r&&!n&&!e&&it(t),i=r||n||e||o,u=i?function(t,r){for(var n=-1,e=Array(t);++n<t;)e[n]=r(n);return e}(t.length,String):[],a=u.length;for(var c in t)!ut.call(t,c)||i&&("length"==c||e&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||z(c,a))||u.push(c);return u}(t):function(t){if(!U(t))return ct(t);var r=[];for(var n in Object(t))st.call(t,n)&&"constructor"!=n&&r.push(n);return r}(t);var r}var lt=I(Object,"create"),vt=Object.prototype.hasOwnProperty,ht=Object.prototype.hasOwnProperty;function bt(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}function pt(t,r){for(var n=t.length;n--;)if(T(t[n][0],r))return n;return-1}bt.prototype.clear=function(){this.__data__=lt?lt(null):{},this.size=0},bt.prototype.delete=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r},bt.prototype.get=function(t){var r=this.__data__;if(lt){var n=r[t];return"__lodash_hash_undefined__"===n?void 0:n}return vt.call(r,t)?r[t]:void 0},bt.prototype.has=function(t){var r=this.__data__;return lt?void 0!==r[t]:ht.call(r,t)},bt.prototype.set=function(t,r){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=lt&&void 0===r?"__lodash_hash_undefined__":r,this};var dt=Array.prototype.splice;function yt(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}yt.prototype.clear=function(){this.__data__=[],this.size=0},yt.prototype.delete=function(t){var r=this.__data__,n=pt(r,t);return!(n<0||(n==r.length-1?r.pop():dt.call(r,n,1),--this.size,0))},yt.prototype.get=function(t){var r=this.__data__,n=pt(r,t);return n<0?void 0:r[n][1]},yt.prototype.has=function(t){return pt(this.__data__,t)>-1},yt.prototype.set=function(t,r){var n=this.__data__,e=pt(n,t);return e<0?(++this.size,n.push([t,r])):n[e][1]=r,this};var jt=I(l,"Map");function wt(t,r){var n,e,o=t.__data__;return("string"==(e=typeof(n=r))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==n:null===n)?o["string"==typeof r?"string":"hash"]:o.map}function gt(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}gt.prototype.clear=function(){this.size=0,this.__data__={hash:new bt,map:new(jt||yt),string:new bt}},gt.prototype.delete=function(t){var r=wt(this,t).delete(t);return this.size-=r?1:0,r},gt.prototype.get=function(t){return wt(this,t).get(t)},gt.prototype.has=function(t){return wt(this,t).has(t)},gt.prototype.set=function(t,r){var n=wt(this,t),e=n.size;return n.set(t,r),this.size+=n.size==e?0:1,this};var mt=at(Object.getPrototypeOf,Object);function Ot(t){var r=this.__data__=new yt(t);this.size=r.size}Ot.prototype.clear=function(){this.__data__=new yt,this.size=0},Ot.prototype.delete=function(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n},Ot.prototype.get=function(t){return this.__data__.get(t)},Ot.prototype.has=function(t){return this.__data__.has(t)},Ot.prototype.set=function(t,r){var n=this.__data__;if(n instanceof yt){var e=n.__data__;if(!jt||e.length<199)return e.push([t,r]),this.size=++n.size,this;n=this.__data__=new gt(e)}return n.set(t,r),this.size=n.size,this},"object"==typeof exports&&exports&&!exports.nodeType&&exports&&"object"==typeof module&&module&&!module.nodeType&&module;var $t=Object.prototype.propertyIsEnumerable,At=Object.getOwnPropertySymbols,St=At?function(t){return null==t?[]:(t=Object(t),function(r){for(var n=-1,e=null==r?0:r.length,o=0,i=[];++n<e;){var u=r[n];$t.call(t,u)&&(i[o++]=u)}return i}(At(t)))}:function(){return[]};var xt=I(l,"DataView"),_t=I(l,"Promise"),Nt=I(l,"Set"),Et="[object Map]",Mt="[object Promise]",It="[object Set]",Ft="[object WeakMap]",Pt="[object DataView]",Dt=N(xt),Rt=N(jt),kt=N(_t),zt=N(Nt),Tt=N(F),Bt=w;(xt&&Bt(new xt(new ArrayBuffer(1)))!=Pt||jt&&Bt(new jt)!=Et||_t&&Bt(_t.resolve())!=Mt||Nt&&Bt(new Nt)!=It||F&&Bt(new F)!=Ft)&&(Bt=function(t){var r=w(t),n="[object Object]"==r?t.constructor:void 0,e=n?N(n):"";if(e)switch(e){case Dt:return Pt;case Rt:return Et;case kt:return Mt;case zt:return It;case Tt:return Ft}return r});var Ct=Object.prototype.hasOwnProperty,Jt=l.Uint8Array;function Ut(t){var r=new t.constructor(t.byteLength);return new Jt(r).set(new Jt(t)),r}var Vt=/\w*$/,qt=v?v.prototype:void 0,Gt=qt?qt.valueOf:void 0;var Kt=et&&et.isMap,Wt=Kt?Y(Kt):function(t){return g(t)&&"[object Map]"==Bt(t)},Ht=et&&et.isSet,Lt=Ht?Y(Ht):function(t){return g(t)&&"[object Set]"==Bt(t)},Zt="[object Arguments]",Qt="[object Function]",Xt="[object Object]",Yt={};function tr(t,r,n,e,o,i){var u;if(void 0!==u)return u;if(!O(t))return t;var a=m(t);if(a)u=function(t){var r=t.length,n=new t.constructor(r);return r&&"string"==typeof t[0]&&Ct.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t);else{var c=Bt(t),s=c==Qt||"[object GeneratorFunction]"==c;if(Q(t))return t.slice();if(c==Xt||c==Zt||s&&!o)u=s?{}:function(t){return"function"!=typeof t.constructor||U(t)?{}:D(mt(t))}(t);else{if(!Yt[c])return o?t:{};u=function(t,r){var n,e,o,i,u=t.constructor;switch(r){case"[object ArrayBuffer]":return Ut(t);case"[object Boolean]":case"[object Date]":return new u(+t);case"[object DataView]":return i=Ut((o=t).buffer),new o.constructor(i,o.byteOffset,o.byteLength);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(t){var r=Ut(t.buffer);return new t.constructor(r,t.byteOffset,t.length)}(t);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(t);case"[object RegExp]":return(e=new(n=t).constructor(n.source,Vt.exec(n))).lastIndex=n.lastIndex,e;case"[object Symbol]":return Gt?Object(Gt.call(t)):{}}}(t,c)}}i||(i=new Ot);var f=i.get(t);if(f)return f;i.set(t,u),Lt(t)?t.forEach((function(e){u.add(tr(e,r,n,0,t,i))})):Wt(t)&&t.forEach((function(e,o){u.set(o,tr(e,r,n,0,t,i))}));var l=a?void 0:function(t){return function(t,r,n){var e=ft(t);return m(t)?e:function(t,r){for(var n=-1,e=r.length,o=t.length;++n<e;)t[o+n]=r[n];return t}(e,n(t))}(t,0,St)}(t);return function(t,r){for(var n=-1,e=null==t?0:t.length;++n<e&&!1!==r(t[n],n););}(l||t,(function(e,o){l&&(e=t[o=e]),function(t,r,n){var e=t[r];B.call(t,r)&&T(e,n)&&(void 0!==n||r in t)||function(t,r,n){"__proto__"==r&&R?R(t,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[r]=n}(t,r,n)}(u,o,tr(e,r,n,0,t,i))})),u}function rr(t){return tr(t,5)}Yt[Zt]=Yt["[object Array]"]=Yt["[object ArrayBuffer]"]=Yt["[object DataView]"]=Yt["[object Boolean]"]=Yt["[object Date]"]=Yt["[object Float32Array]"]=Yt["[object Float64Array]"]=Yt["[object Int8Array]"]=Yt["[object Int16Array]"]=Yt["[object Int32Array]"]=Yt["[object Map]"]=Yt["[object Number]"]=Yt[Xt]=Yt["[object RegExp]"]=Yt["[object Set]"]=Yt["[object String]"]=Yt["[object Symbol]"]=Yt["[object Uint8Array]"]=Yt["[object Uint8ClampedArray]"]=Yt["[object Uint16Array]"]=Yt["[object Uint32Array]"]=!0,Yt["[object Error]"]=Yt[Qt]=Yt["[object WeakMap]"]=!1;const nr=/[a-zA-Z0-9äöüÄÖÜß]/g,er=/^\d+$/;function or(t,r=1){return function(t){var r;return"string"==typeof t&&(null===(r=t.match(nr))||void 0===r?void 0:r.length)||0}(t)>=r}function ir(t){return er.test(t)}function ur(t){return"string"==typeof t?t.trim():Array.isArray(t)?t.map((t=>t.text)).join("").trim():""}function ar(t){if("object"!=typeof t||null===t)return!1;const r=t;return!!Object.keys(r).every((t=>"text"===t||"lang"===t))&&"string"==typeof r.text&&(void 0===r.lang||"string"==typeof r.lang)}const cr=t=>t.length>=2||ir(t);function sr(t){return"string"==typeof t?cr(t):!!Array.isArray(t)&&t.length>0&&t.every(ar)&&cr(ur(t))}function fr(t){if("string"==typeof t)return t;if("number"==typeof t||"boolean"==typeof t||"bigint"==typeof t)return String(t);throw new TypeError(`Cannot convert ${typeof t} to string`)}function lr(t){if("string"==typeof t)return t;if("number"==typeof t||"boolean"==typeof t||"bigint"==typeof t)return String(t);if(Array.isArray(t)&&t.every(ar))return t;throw new TypeError(`Cannot convert ${typeof t} to a label`)}function vr(t){let r;try{r=hr(t)}catch(r){throw new Error(`Invalid integer: ${String(t)}`)}return Number.isInteger(r)?r:Math.round(r)}function hr(t){if("number"==typeof t&&!isNaN(t))return t;if("string"==typeof t&&""!==t.trim()){const r=Number(t);if(!isNaN(r))return r}throw new Error(`Invalid number: ${String(t)}`)}function br(t){if("number"==typeof t&&!isNaN(t))return t;throw new Error(`Invalid number: ${String(t)}`)}function pr(t){if("number"==typeof t)return isNaN(t)?void 0:t;if(r(t))return parseFloat(t);throw new Error(`Invalid number: ${t}`)}function dr(t){if("boolean"==typeof t)return t;if("string"==typeof t){const r=t.toLowerCase();if("true"===r||"false"===r)return"true"===r}throw new Error(`Invalid boolean: ${String(t)}`)}function yr(t,r){if(!0===t||"true"===t)return"true";if(!1===t||"false"===t)return"false";if(""===t)return"";throw new Error(`Invalid ${r} value: expected a boolean, got ${JSON.stringify(t)}`)}function jr(t,r){return"string"==typeof t&&r.includes(t)}function wr(r){if(t(r))return r;if("string"==typeof r){const n=JSON.parse(r);if(t(n))return n}throw new Error(`Invalid object: ${r}`)}function gr(r){if(t(r)&&Array.isArray(r))return r;if("string"==typeof r){const n=JSON.parse(r);if(t(n)&&Array.isArray(n))return n}throw new Error(`Invalid array: ${r}`)}function mr(t){if("object"==typeof t&&null!==t)return t;throw new Error("Invalid on callbacks: expected object, got "+typeof t)}function Or(t){try{return JSON.stringify(t)}catch(t){return"[unserializable]"}}function $r(t,r,e){const o=e instanceof Error?` (${e.message})`:"";n(`The property value ${Or(r)} for '${t}' is not valid${o}. The value is ignored.`)}function Ar(t,r,e,o=()=>!0,i){return{propName:t,getDefaultValue:O(r)?()=>rr(r):()=>r,normalize:e,validate:o,apply(e,o,u){var a;if(null!=e)try{const r=this.normalize(e);this.validate(r)?(null===(a=null==i?void 0:i.hints)||void 0===a||a.call(i,this.propName,r),o(r)):$r(t,e)}catch(r){$r(t,e,r)}else{if(u&&n(`The required property '_${t}' did not receive a value. ${void 0===r?"The property stays unset.":"The default value is used instead."}`),void 0===r)return void o(void 0);const e=this.getDefaultValue();if(!this.validate(e))throw new Error(`Default value ${Or(r)} is invalid for prop definition '${t}'.`);o(e)}}}}function Sr(t,r,n,e=()=>!0){return{propName:t,getDefaultValue:O(r)?()=>rr(r):()=>r,normalize:n,validate:e,apply(n,e,o){if(null!=n)try{const r=this.normalize(n,o);this.validate(r,o)?e(r):$r(t,n)}catch(r){$r(t,n,r)}else{if(void 0===r)return void e(void 0);const n=this.getDefaultValue();if(!this.validate(n,o))throw new Error(`Default value ${Or(r)} is invalid for prop definition '${t}' with dependencies ${Or(o)}.`);e(n)}}}}function xr(){return Ar("on",{},(t=>mr(t)))}function _r(t){var r;Array.isArray(t)&&t.raw&&(t=String.raw(...arguments));var n=e(t);if(!n.space)return[];const u="h"===n.space[0]?o.min:i.min,a="h"===n.space[0]?o.max:i.max;return(r=Array(3))[0]=Math.min(Math.max(n.values[0],u[0]),a[0]),r[1]=Math.min(Math.max(n.values[1],u[1]),a[1]),r[2]=Math.min(Math.max(n.values[2],u[2]),a[2]),"h"===n.space[0]&&(r=o.rgb(r)),r.push(Math.min(Math.max(n.alpha,0),1)),r}const Nr=/^#((\d|[a-f]){8}|(\d|[a-f]){6}|(\d|[a-f]){3,4})$/i,Er=t=>"object"==typeof t&&null!==t&&"string"==typeof t.backgroundColor&&"string"==typeof t.foregroundColor,Mr=t=>{const r=_r(t);if(!Array.isArray(r)||r.length<3)throw new Error(`Invalid KoliBri color: ${t}`);const[n,e,o]=r;return{red:n,green:e,blue:o}},Ir=Ar("color",Mr("#003c78"),(t=>{if("string"==typeof t&&Nr.test(t))return Mr(t);const r=Er(t)?t:"string"==typeof t?(t=>{if(t.startsWith("{"))try{const r=JSON.parse(t);return Er(r)?r:void 0}catch(t){return}})(t):void 0;if(r)return Mr(r.foregroundColor);throw new Error("Invalid KoliBri color: expected a hex string or a color pair.")})),Fr=new Set(["eager","lazy"]),Pr=Ar("loading","lazy",(t=>fr(t)),(t=>Fr.has(t)));function Dr(t,r){return t<r.min?r.min:t>r.max?r.max:t}const Rr=Sr("value",0,((t,r)=>Dr(hr(t),r)),(t=>"number"==typeof t&&!isNaN(t))),kr=Object.assign(Object.assign({},Rr),{apply(t,r,n){Rr.apply(t,(t=>r(Dr(t,n))),n)}}),zr=new Set(["blank","card"]),Tr=Ar("variant","blank",(t=>fr(t)),(t=>zr.has(t))),Br=new Set(["block","inline"]),Cr=Ar("variant","inline",(t=>fr(t)),(t=>Br.has(t))),Jr=t=>{let r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t&&null!==t)if(Array.isArray(t)){for(const n of t)if(n){const t=Jr(n);t&&(r&&(r+=" "),r+=t)}}else for(const n in t)t[n]&&(r&&(r+=" "),r+=n);return r},Ur=(...t)=>{let r="";for(const n of t)if(n){const t=Jr(n);t&&(r&&(r+=" "),r+=t)}return r},Vr=new Map;function qr(t){let r=Vr.get(t);return r||(r=c.forBlock(t),Vr.set(t,r)),r}const Gr=(t,r)=>{var n;const e=qr(t.block),o=Ur(e(t.modifiers),t.class),i={};for(const[r,n]of Object.entries(t))"block"===r?i.class=o:"class"!==r&&"component"!==r&&"modifiers"!==r&&(i[r]=n);const a=null!==(n=t.component)&&void 0!==n?n:"div";return u(a,Object.assign({},i),r)};function Kr(t){var r,n;const e={};for(const o of[...null!==(r=t.required)&&void 0!==r?r:[],...null!==(n=t.optional)&&void 0!==n?n:[]])e[o.propName]=o.getDefaultValue();return e}function Wr(t,r){return Object.assign(Object.assign({},Kr(t)),r)}function Hr(){throw new Error("This behavior does not use component state.")}const Lr=class extends a{constructor(){super(!1),this.rawProps={},this.renderProps={},this.requiredPropNames=new Set,this.renderPropsSeeded=!1,this.setState=(t,r)=>{this[t]=r},this.getState=t=>this[t],this.stateAccess={setState:this.setState,getState:this.getState}}seedRenderProps(){var t;this.renderPropsSeeded||(this.renderPropsSeeded=!0,this.renderProps=Kr(this.propsConfig),this.requiredPropNames=new Set((null!==(t=this.propsConfig.required)&&void 0!==t?t:[]).map((t=>t.propName))))}isRequired(t){return this.seedRenderProps(),this.requiredPropNames.has(t)}setRawProp(t,r){this.rawProps[t]=r}getRawProp(t){return this.rawProps[t]}setRenderProp(t,r){this.seedRenderProps(),this.renderProps[t]=r}unsetRenderProp(t){this.seedRenderProps(),this.renderProps[t]=void 0}getRenderProp(t){return this.seedRenderProps(),this.renderProps[t]}};Lr.stateLess=Object.freeze({setState:Hr,getState:Hr});export{wr as A,Gr as B,cr as C,_r as D,Tr as E,pr as F,br as G,Cr as H,mr as I,Lr as a,xr as b,Ar as c,fr as d,Kr as e,Ur as f,qr as g,gr as h,Sr as i,jr as j,Ir as k,Pr as l,hr as m,dr as n,kr as o,sr as p,lr as q,Wr as r,or as s,ur as t,ir as u,vr as v,g as w,m as x,w as y,yr as z}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{O as e,u as i,Z as t,h as o}from"./common.js";import{d as s}from"./disabled.js";import{h as l,e as a,T as r,k as n}from"./component6.js";import{c as d,d as h,n as c,b as p,f as u,B as v,t as m,a as b}from"./base-web-component.js";import{l as f}from"./label-with-expert-slot.js";import{n as g}from"./component9.js";import{S as y,b as j,s as _}from"./component5.js";import{a as B}from"./tslib.es6.js";import{a as L,c as O,n as T}from"./dev.utils.js";import{K as F,d as N}from"./events.js";import{c as w}from"./item.js";import{F as x}from"./behavior3.js";import{c as A}from"./item2.js";import{T as K}from"./behavior.js";import{t as k}from"./i18n.js";import{b as D}from"./bem-registry.js";import{P}from"./behavior4.js";import{A as C}from"./component.js";const H=(e,i)=>{const t=(null!=i?i:"").trim().split(/\s+/).filter(Boolean);if(!t.length)return[];const o=null==e?void 0:e.getRootNode();return t.map((e=>"undefined"!=typeof Document&&o instanceof Document?o.getElementById(e):"undefined"!=typeof ShadowRoot&&o instanceof ShadowRoot?o.querySelector(`#${(e=>{var i;return(null===(i=globalThis.CSS)||void 0===i?void 0:i.escape)?globalThis.CSS.escape(e):e.replace(/[^a-zA-Z0-9_-]/g,"\\$&")})(e)}`):"undefined"!=typeof document?document.getElementById(e):null)).filter((e=>!!e))};function I(e,i){return Boolean(e)&&!0===i}function M(e){var i;return"string"==typeof e?"error":null!==(i=null==e?void 0:e._type)&&void 0!==i?i:"error"}const S=d("ariaDetails","",h),$=d("hideMsg",!1,c),q=d("hint","",h),E=d("infoPopover",void 0,(function(e){if("object"==typeof e&&null!==e)return e;throw new Error("Invalid info popover: "+typeof e)})),z=p(),R=d("msg",void 0,(function(i){if("string"==typeof i)try{return e(i)}catch(e){return i}return i}),(function(e){return void 0===e||("string"==typeof e?e.length>0:i(e)&&t(e._description,1))})),Z=d("touched",!1,c),V={required:[f],optional:[S,s,l,$,q,E,z,R,g,a,Z]},G=e=>{var{id:i,class:t,hint:s,baseClassName:l="kol-form-field"}=e,a=B(e,["id","class","hint","baseClassName"]);return s?o("span",Object.assign({class:u(`${l}__hint`,t),id:L(i||"","hint")},a),s):null},J=e=>{var{component:i="label",id:t,baseClassName:s="kol-form-field",class:l,accessKey:a,shortKey:r,label:n,hideLabel:d,hasExpertSlot:h,omitId:c,showBadge:p=!0,readOnly:v,infoPopover:m}=e,b=B(e,["component","id","baseClassName","class","accessKey","shortKey","label","hideLabel","hasExpertSlot","omitId","showBadge","readOnly","infoPopover"]);const f=!h&&d,g=!1===p?void 0:j(a,r);return o(i,Object.assign({},b,{class:u(`${s}__label`,l),id:f||c?void 0:L(t,"label"),hidden:f,htmlFor:"legend"===i?void 0:t}),o(y,{class:`${s}__label-text`,label:h?"":null!=n?n:"",badgeText:g},o("slot",{name:"expert"})),!h&&v&&o("span",{class:`${s}__label__read-only`,"aria-hidden":"true"},"(",k("kol-readonly"),")"),!h&&m&&o("span",null,o(P,Object.assign({},m.popoverButton),o("div",{class:"kol-popover-button__popover--styled"},m.content))))},Q=i=>{var t,s,{alert:l,hideMsg:a,msg:r,id:n,class:d}=i,h=B(i,["alert","hideMsg","msg","id","class"]);const c=function(i){if("string"==typeof i)try{return e(i)}catch(e){return{_description:i,_type:"error"}}return i&&"object"==typeof i&&!("_type"in i)?Object.assign(Object.assign({},i),{_type:"error"}):i}(r);return o(C,Object.assign({alert:!a&&(null!==(t=null==c?void 0:c._alert)&&void 0!==t?t:!0===l),class:u("kol-form-field__msg",a&&"visually-hidden",d),closerAriaDescriptionId:T(),handleCloserClick:()=>{},hasCloser:!1,headingId:O("alert-heading"),id:L(n,"msg"),label:"",level:0,refCloserButton:()=>{},refCloserTooltip:()=>{},type:null!==(s=null==c?void 0:c._type)&&void 0!==s?s:"error",variant:"msg"},h),(null==c?void 0:c._description)||void 0)},U=D.forBlock("kol-form-field"),W=({hideLabel:e,label:i,renderNoTooltip:t})=>!t&&!_(i)&&!0===e,X=e=>{const i=M(e);return{[i]:!0,[`msg-type-${i}`]:!0}},Y=(e,i)=>{const{renderNoLabel:t,renderNoTooltip:s,renderNoHint:l,id:a,required:d,alert:h,disabled:c,class:p,msg:m,hideMsg:b,hideLabel:f,label:g,infoPopover:y,hint:O,accessKey:T,shortKey:F,counter:N,readOnly:w,touched:x,maxLength:A,ariaDescribedBy:K,showBadge:D,tooltipAlign:P,variant:C,component:H="div",orientation:M,refInput:S,refTooltip:$}=e,q=B(e,["renderNoLabel","renderNoTooltip","renderNoHint","id","required","alert","disabled","class","msg","hideMsg","hideLabel","label","infoPopover","hint","accessKey","shortKey","counter","readOnly","touched","maxLength","ariaDescribedBy","showBadge","tooltipAlign","variant","component","orientation","refInput","refTooltip"]),E=_(g),z=I(m,x),R=j(T,F),Z=W({hideLabel:f,label:g,renderNoTooltip:s}),V="fieldset"===H;return o(v,Object.assign({component:H,block:"kol-form-field",modifiers:Object.assign({disabled:Boolean(c),required:Boolean(d),touched:Boolean(x),"hide-label":Boolean(f),"read-only":Boolean(w),"hidden-msg":Boolean(b)},z?X(m):{}),class:u(C&&n(C,"form-field"),p),disabled:!(!V||!c)||void 0,"aria-describedby":K},q),!t&&o(J,{component:V?"legend":"label",class:V?"kol-form-field__label--legend":void 0,id:a,hasExpertSlot:E,hideLabel:f,label:g,accessKey:T,shortKey:F,readOnly:w,showBadge:D,infoPopover:y}),o("div",{class:U("input",{"orientation-horizontal":"horizontal"===M,"orientation-vertical":"vertical"===M}),ref:S},i,Z&&o("div",{class:U("tooltip")},o(r,{badgeText:R||"",label:g,align:P,id:L(a,"label"),refFloating:$}))),N&&!("soft"===N.maxLengthBehavior&&"number"!=typeof N.maxLength)&&o("div",{class:U("counter")},o("span",{"aria-hidden":"true",class:U("counter"),ref:N.visualRef}),o("span",{"aria-live":"polite",class:"visually-hidden",id:L(a,"counter"),ref:N.ariaRef})),z&&o(Q,{id:a,alert:h,hideMsg:b,msg:m}),!l&&o(G,{id:a,hint:O}),"number"==typeof A&&!N&&o("span",{id:L(a,"character-limit-hint"),class:"visually-hidden"},k("kol-character-limit-hint",{placeholders:{limit:String(A)}})))};function ee({ariaDescribedBy:e,hideLabel:i,label:t}){return{title:"",autoCapitalize:"off",autoCorrect:"off","aria-describedby":(null==e?void 0:e.length)?e.join(" "):void 0,"aria-label":i&&t?m(t):void 0}}const ie=class extends b{constructor(){super(...arguments),this.tooltipBehavior=new K(b.stateLess),this.smartButton=w((()=>this.host)),this.infoPopover=A({getFlagHost:()=>this.host,getOpen:()=>!0===this.infoPopoverOpen,setOpen:e=>{this.infoPopoverOpen=e}}),this.focusEventSent=!1,this.handleChange=(e,i)=>{var t,o;e.stopPropagation(),void 0===i&&(i=e.target.value),this.emit(F.change,i),null===(o=null===(t=this._on)||void 0===t?void 0:t.onChange)||void 0===o||o.call(t,e,i)},this.handleInput=(e,i)=>{var t,o;e.stopPropagation(),void 0===i&&(i=e.target.value),this.emit(F.input,i),this.formAssociation.setFormAssociatedValue(i),null===(o=null===(t=this._on)||void 0===t?void 0:t.onInput)||void 0===o||o.call(t,e,i)},this.handleClick=e=>{var i,t;this.emit(F.click),null===(t=null===(i=this._on)||void 0===i?void 0:i.onClick)||void 0===t||t.call(i,e)},this.handleFocus=e=>{var i,t;this.focusEventSent||(this.emit(F.focus),null===(t=null===(i=this._on)||void 0===i?void 0:i.onFocus)||void 0===t||t.call(i,e),this.focusEventSent=!0),this.shared.setState("inputHasFocus",!0)},this.handleBlur=e=>{this.handleFocusLeave(e),this.shared.setState("inputHasFocus",!1)},this.handleKeyDown=e=>{var i,t;this.emit(F.keydown),null===(t=null===(i=this._on)||void 0===i?void 0:i.onKeyDown)||void 0===t||t.call(i,e)},this.setInputRef=e=>{this.tooltipAnchor=e,e&&this.isTooltipShown()&&(this.tooltipBehavior.initContext(e),this.tooltipBehavior.syncListeners(void 0,e,!0))},this.setTooltipRef=e=>{this.tooltipBehavior.setTooltipElementRef(e)}}get shared(){return this}initFormAssociation(e,i){this.formAssociation=new x(b.stateLess,{host:this.host,type:e,name:i})}syncFormField(){this.smartButton.syncListeners(),this.infoPopover.syncListeners(),this.syncAriaDetails()}destroyFormField(){this.tooltipBehavior.destroy(),this.smartButton.destroy(),this.infoPopover.destroy()}connectedCallback(){this.syncFormField(),this.tooltipAnchor&&this.isTooltipShown()&&(this.tooltipBehavior.initContext(this.tooltipAnchor),this.tooltipBehavior.syncListeners(void 0,this.tooltipAnchor,!0))}getInfoPopover(){const e=this.shared.getRenderProp("infoPopover");if(!e)return;const{_content:i}=e,t=B(e,["_content"]);return{popoverButton:this.infoPopover.getFcProps(Object.assign(Object.assign({_variant:"ghost"},t),{_hideLabel:!0,_inline:!0})),content:i}}getSmartButtonFcProps(e,i){if("object"==typeof e&&null!==e)return this.smartButton.getFcProps(Object.assign({_hideLabel:!0,_disabled:i},e),{class:"kol-input-container__smart-button"})}applyAriaDetails(e){S.apply(e,(e=>this.shared.setRenderProp("ariaDetails",e))),this.syncAriaDetails()}syncAriaDetails(){var e,i,t,o;const s=null===(i=null===(e=this.host)||void 0===e?void 0:e.shadowRoot)||void 0===i?void 0:i.querySelector("input, select, textarea");if(!s||!("ariaDetailsElements"in s))return;const l=H(this.host,this.shared.getRenderProp("ariaDetails")),a=this.pushedDetailsElements;(s!==this.ariaDetailsTarget||(null!==(t=null==a?void 0:a.length)&&void 0!==t?t:0)!==l.length||null!==(o=null==a?void 0:a.some(((e,i)=>e!==l[i])))&&void 0!==o&&o)&&(this.ariaDetailsTarget=s,this.pushedDetailsElements=l,s.ariaDetailsElements=l.length?l:null)}applyDisabled(e){s.apply(e,(e=>this.shared.setRenderProp("disabled",e)))}applyHideLabel(e){l.apply(e,(e=>this.shared.setRenderProp("hideLabel",e)))}applyHideMsg(e){$.apply(e,(e=>this.shared.setRenderProp("hideMsg",e)))}applyHint(e){q.apply(e,(e=>this.shared.setRenderProp("hint",e)))}applyInfoPopover(e){E.apply(e,(e=>this.shared.setRenderProp("infoPopover",e)))}applyLabel(e){f.apply(e,(e=>this.shared.setRenderProp("label",e)),this.isRequired("label"))}applyMsg(e){R.apply(e,(e=>this.shared.setRenderProp("msg",e)))}applyName(e){g.apply(e,(e=>this.shared.setRenderProp("name",e))),this.formAssociation.watchName(e)}applyOn(e){z.apply(e,(e=>this.shared.setRenderProp("on",e)))}applySyncValueBySelector(e){this.formAssociation.watchSyncValueBySelector(e)}applyTooltipAlign(e){a.apply(null!=e?e:"top",(e=>this.shared.setRenderProp("tooltipAlign",e)))}applyTouched(e){Z.apply(e,(e=>this.shared.setRenderProp("touched",e)))}get eventHost(){var e,i;return null!==(i=null===(e=this.formAssociation)||void 0===e?void 0:e.host)&&void 0!==i?i:this.host}emit(e,i){this.eventHost&&N(this.eventHost,e,i)}handleFocusLeave(e){var i,t;if(this._disabled)return;const o=this.eventHost,s=(null==o?void 0:o.shadowRoot)||o,l=(null==s?void 0:s.contains(e.relatedTarget))||o===e.relatedTarget;this.focusEventSent&&!l&&(this._touched=!0,this.emit(F.blur),null===(t=null===(i=this._on)||void 0===i?void 0:i.onBlur)||void 0===t||t.call(i,e),this.focusEventSent=!1)}getAria(){const e=this.shared;return(({id:e,msg:i,hint:t,touched:o})=>{const s="string"==typeof i?i:null==i?void 0:i._description,l=Boolean(s&&s.length>0),a="error"===M(i)&&l&&!0===o,r="string"==typeof t&&t.length>0,n=[];return l&&!0===o&&n.push(L(e,"msg")),r&&n.push(L(e,"hint")),{hasError:a,hasHint:r,ariaDescribedBy:n}})({id:e.getState("id"),msg:e.getRenderProp("msg"),hint:e.getRenderProp("hint"),touched:e.getRenderProp("touched")})}showAsAlert(){return Boolean(this.shared.getRenderProp("touched"))&&!this.shared.getState("inputHasFocus")}isTooltipShown(){const e=this.shared;return W({hideLabel:e.getRenderProp("hideLabel"),label:m(e.getRenderProp("label"))})}getLabelTooltipRefs(){return{refInput:this.setInputRef,refTooltip:this.setTooltipRef}}getFormFieldProps({class:e,accessKey:i,shortKey:t,variant:o,counter:s,maxLength:l,readOnly:a,renderNoLabel:r,renderNoTooltip:n,required:d}){const h=this.shared,c=h.getState("id"),p=h.getRenderProp("label"),u=h.getRenderProp("tooltipAlign");return this.isTooltipShown()?(this.tooltipBehavior.watchAlign(u),this.tooltipBehavior.watchBadgeText(j(i,t)||""),this.tooltipBehavior.watchId(L(c,"label")),this.tooltipBehavior.watchLabel(p)):this.tooltipBehavior.destroy(),{id:c,disabled:h.getRenderProp("disabled"),msg:h.getRenderProp("msg"),hint:h.getRenderProp("hint"),label:p,hideLabel:h.getRenderProp("hideLabel"),hideMsg:h.getRenderProp("hideMsg"),touched:h.getRenderProp("touched"),showBadge:Boolean(i)||Boolean(t),required:d,readOnly:a,accessKey:i,shortKey:t,maxLength:l,counter:s,variant:o,class:e,tooltipAlign:u,alert:this.showAsAlert(),infoPopover:this.getInfoPopover(),renderNoLabel:r,renderNoTooltip:n,refInput:n?void 0:this.setInputRef,refTooltip:this.setTooltipRef}}};export{ie as B,Y as F,ee as a,G as b,J as c,V as f,M as g,I as i,H as r}
|
|
4
|
+
import{P as e,u as i,_ as t,h as o}from"./prop.validators.js";import{d as s}from"./disabled.js";import{h as l,e as a,T as r,k as n}from"./component6.js";import{c as d,d as h,n as c,b as p,f as u,B as v,t as m,a as b}from"./base-web-component.js";import{l as f}from"./label-with-expert-slot.js";import{n as g}from"./component9.js";import{S as y,b as j,s as _}from"./component5.js";import{a as B}from"./tslib.es6.js";import{a as L}from"./dev.utils.js";import{K as O,d as T}from"./events.js";import{c as F}from"./item.js";import{F as N}from"./behavior3.js";import{c as w}from"./item2.js";import{T as x}from"./behavior.js";import{t as A}from"./i18n.js";import{b as K}from"./bem-registry.js";import{P}from"./behavior4.js";import{A as k}from"./component.js";const D=(e,i)=>{const t=(null!=i?i:"").trim().split(/\s+/).filter(Boolean);if(!t.length)return[];const o=null==e?void 0:e.getRootNode();return t.map((e=>"undefined"!=typeof Document&&o instanceof Document?o.getElementById(e):"undefined"!=typeof ShadowRoot&&o instanceof ShadowRoot?o.querySelector(`#${(e=>{var i;return(null===(i=globalThis.CSS)||void 0===i?void 0:i.escape)?globalThis.CSS.escape(e):e.replace(/[^a-zA-Z0-9_-]/g,"\\$&")})(e)}`):"undefined"!=typeof document?document.getElementById(e):null)).filter((e=>!!e))};function C(e,i){return Boolean(e)&&!0===i}function H(e){var i;return"string"==typeof e?"error":null!==(i=null==e?void 0:e._type)&&void 0!==i?i:"error"}const I=d("ariaDetails","",h),M=d("hideMsg",!1,c),S=d("hint","",h),$=d("infoPopover",void 0,(function(e){if("object"==typeof e&&null!==e)return e;throw new Error("Invalid info popover: "+typeof e)})),q=p(),E=d("msg",void 0,(function(i){if("string"==typeof i)try{return e(i)}catch(e){return i}return i}),(function(e){return void 0===e||("string"==typeof e?e.length>0:i(e)&&t(e._description,1))})),z=d("touched",!1,c),R={required:[f],optional:[I,s,l,M,S,$,q,E,g,a,z]},V=e=>{var{id:i,class:t,hint:s,baseClassName:l="kol-form-field"}=e,a=B(e,["id","class","hint","baseClassName"]);return s?o("span",Object.assign({class:u(`${l}__hint`,t),id:L(i||"","hint")},a),s):null},Z=e=>{var{component:i="label",id:t,baseClassName:s="kol-form-field",class:l,accessKey:a,shortKey:r,label:n,hideLabel:d,hasExpertSlot:h,omitId:c,showBadge:p=!0,readOnly:v,infoPopover:m}=e,b=B(e,["component","id","baseClassName","class","accessKey","shortKey","label","hideLabel","hasExpertSlot","omitId","showBadge","readOnly","infoPopover"]);const f=!h&&d,g=!1===p?void 0:j(a,r);return o(i,Object.assign({},b,{class:u(`${s}__label`,l),id:f||c?void 0:L(t,"label"),hidden:f,htmlFor:"legend"===i?void 0:t}),o(y,{class:`${s}__label-text`,label:h?"":null!=n?n:"",badgeText:g},o("slot",{name:"expert"})),!h&&v&&o("span",{class:`${s}__label__read-only`,"aria-hidden":"true"},"(",A("kol-readonly"),")"),!h&&m&&o("span",null,o(P,Object.assign({},m.popoverButton),o("div",{class:"kol-popover-button__popover--styled"},m.content))))},G=i=>{var t,s,{alert:l,hideMsg:a,msg:r,id:n,class:d}=i,h=B(i,["alert","hideMsg","msg","id","class"]);const c=function(i){if("string"==typeof i)try{return e(i)}catch(e){return{_description:i,_type:"error"}}return i&&"object"==typeof i&&!("_type"in i)?Object.assign(Object.assign({},i),{_type:"error"}):i}(r);return o(k,Object.assign({alert:!a&&(null!==(t=null==c?void 0:c._alert)&&void 0!==t?t:!0===l),class:u("kol-form-field__msg",a&&"visually-hidden",d),closerAriaDescriptionId:L(n,"msg-closer-description"),handleCloserClick:()=>{},hasCloser:!1,headingId:L(n,"msg-heading"),id:L(n,"msg"),label:"",level:0,refCloserButton:()=>{},refCloserTooltip:()=>{},type:null!==(s=null==c?void 0:c._type)&&void 0!==s?s:"error",variant:"msg"},h),(null==c?void 0:c._description)||void 0)},J=K.forBlock("kol-form-field"),Q=({hideLabel:e,label:i,renderNoTooltip:t})=>!t&&!_(i)&&!0===e,U=e=>{const i=H(e);return{[i]:!0,[`msg-type-${i}`]:!0}},W=(e,i)=>{const{renderNoLabel:t,renderNoTooltip:s,renderNoHint:l,id:a,required:d,alert:h,disabled:c,class:p,msg:m,hideMsg:b,hideLabel:f,label:g,infoPopover:y,hint:O,accessKey:T,shortKey:F,counter:N,readOnly:w,touched:x,maxLength:K,ariaDescribedBy:P,showBadge:k,tooltipAlign:D,variant:H,component:I="div",orientation:M,refInput:S,refTooltip:$}=e,q=B(e,["renderNoLabel","renderNoTooltip","renderNoHint","id","required","alert","disabled","class","msg","hideMsg","hideLabel","label","infoPopover","hint","accessKey","shortKey","counter","readOnly","touched","maxLength","ariaDescribedBy","showBadge","tooltipAlign","variant","component","orientation","refInput","refTooltip"]),E=_(g),z=C(m,x),R=j(T,F),W=Q({hideLabel:f,label:g,renderNoTooltip:s}),X="fieldset"===I;return o(v,Object.assign({component:I,block:"kol-form-field",modifiers:Object.assign({disabled:Boolean(c),required:Boolean(d),touched:Boolean(x),"hide-label":Boolean(f),"read-only":Boolean(w),"hidden-msg":Boolean(b)},z?U(m):{}),class:u(H&&n(H,"form-field"),p),disabled:!(!X||!c)||void 0,"aria-describedby":P},q),!t&&o(Z,{component:X?"legend":"label",class:X?"kol-form-field__label--legend":void 0,id:a,hasExpertSlot:E,hideLabel:f,label:g,accessKey:T,shortKey:F,readOnly:w,showBadge:k,infoPopover:y}),o("div",{class:J("input",{"orientation-horizontal":"horizontal"===M,"orientation-vertical":"vertical"===M}),ref:S},i,W&&o("div",{class:J("tooltip")},o(r,{badgeText:R||"",label:g,align:D,id:L(a,"label"),refFloating:$}))),N&&!("soft"===N.maxLengthBehavior&&"number"!=typeof N.maxLength)&&o("div",{class:J("counter")},o("span",{"aria-hidden":"true",class:J("counter"),ref:N.visualRef}),o("span",{"aria-live":"polite",class:"visually-hidden",id:L(a,"counter"),ref:N.ariaRef})),z&&o(G,{id:a,alert:h,hideMsg:b,msg:m}),!l&&o(V,{id:a,hint:O}),"number"==typeof K&&!N&&o("span",{id:L(a,"character-limit-hint"),class:"visually-hidden"},A("kol-character-limit-hint",{placeholders:{limit:String(K)}})))};function X({ariaDescribedBy:e,hideLabel:i,label:t}){return{title:"",autoCapitalize:"off",autoCorrect:"off","aria-describedby":(null==e?void 0:e.length)?e.join(" "):void 0,"aria-label":i&&t?m(t):void 0}}const Y=class extends b{constructor(){super(...arguments),this.tooltipBehavior=new x(b.stateLess),this.smartButton=F((()=>this.host)),this.infoPopover=w({getFlagHost:()=>this.host,getOpen:()=>!0===this.infoPopoverOpen,setOpen:e=>{this.infoPopoverOpen=e}}),this.focusEventSent=!1,this.handleChange=(e,i)=>{var t,o;e.stopPropagation(),void 0===i&&(i=e.target.value),this.emit(O.change,i),null===(o=null===(t=this._on)||void 0===t?void 0:t.onChange)||void 0===o||o.call(t,e,i)},this.handleInput=(e,i)=>{var t,o;e.stopPropagation(),void 0===i&&(i=e.target.value),this.emit(O.input,i),this.formAssociation.setFormAssociatedValue(i),null===(o=null===(t=this._on)||void 0===t?void 0:t.onInput)||void 0===o||o.call(t,e,i)},this.handleClick=e=>{var i,t;this.emit(O.click),null===(t=null===(i=this._on)||void 0===i?void 0:i.onClick)||void 0===t||t.call(i,e)},this.handleFocus=e=>{var i,t;this.focusEventSent||(this.emit(O.focus),null===(t=null===(i=this._on)||void 0===i?void 0:i.onFocus)||void 0===t||t.call(i,e),this.focusEventSent=!0),this.shared.setState("inputHasFocus",!0)},this.handleBlur=e=>{this.handleFocusLeave(e),this.shared.setState("inputHasFocus",!1)},this.handleKeyDown=e=>{var i,t;this.emit(O.keydown),null===(t=null===(i=this._on)||void 0===i?void 0:i.onKeyDown)||void 0===t||t.call(i,e)},this.setInputRef=e=>{this.tooltipAnchor=e,e&&this.isTooltipShown()&&(this.tooltipBehavior.initContext(e),this.tooltipBehavior.syncListeners(void 0,e,!0))},this.setTooltipRef=e=>{this.tooltipBehavior.setTooltipElementRef(e)}}connectedCallback(){this.syncFormField(),this.tooltipAnchor&&this.isTooltipShown()&&(this.tooltipBehavior.initContext(this.tooltipAnchor),this.tooltipBehavior.syncListeners(void 0,this.tooltipAnchor,!0))}get shared(){return this}initFormAssociation(e,i){this.formAssociation=new N(b.stateLess,{host:this.host,type:e,name:i})}syncFormField(){this.smartButton.syncListeners(),this.infoPopover.syncListeners(),this.syncAriaDetails()}destroyFormField(){this.tooltipBehavior.destroy(),this.smartButton.destroy(),this.infoPopover.destroy()}getInfoPopover(){const e=this.shared.getRenderProp("infoPopover");if(!e)return;const{_content:i}=e,t=B(e,["_content"]);return{popoverButton:this.infoPopover.getFcProps(Object.assign(Object.assign({_variant:"ghost"},t),{_hideLabel:!0,_inline:!0})),content:i}}getSmartButtonFcProps(e,i){if("object"==typeof e&&null!==e)return this.smartButton.getFcProps(Object.assign({_hideLabel:!0,_disabled:i},e),{class:"kol-input-container__smart-button"})}applyAriaDetails(e){I.apply(e,(e=>this.shared.setRenderProp("ariaDetails",e))),this.syncAriaDetails()}syncAriaDetails(){var e,i,t,o;const s=null===(i=null===(e=this.host)||void 0===e?void 0:e.shadowRoot)||void 0===i?void 0:i.querySelector("input, select, textarea");if(!s||!("ariaDetailsElements"in s))return;const l=D(this.host,this.shared.getRenderProp("ariaDetails")),a=this.pushedDetailsElements;(s!==this.ariaDetailsTarget||(null!==(t=null==a?void 0:a.length)&&void 0!==t?t:0)!==l.length||null!==(o=null==a?void 0:a.some(((e,i)=>e!==l[i])))&&void 0!==o&&o)&&(this.ariaDetailsTarget=s,this.pushedDetailsElements=l,s.ariaDetailsElements=l.length?l:null)}applyDisabled(e){s.apply(e,(e=>this.shared.setRenderProp("disabled",e)))}applyHideLabel(e){l.apply(e,(e=>this.shared.setRenderProp("hideLabel",e)))}applyHideMsg(e){M.apply(e,(e=>this.shared.setRenderProp("hideMsg",e)))}applyHint(e){S.apply(e,(e=>this.shared.setRenderProp("hint",e)))}applyInfoPopover(e){$.apply(e,(e=>this.shared.setRenderProp("infoPopover",e)))}applyLabel(e){f.apply(e,(e=>this.shared.setRenderProp("label",e)),this.isRequired("label"))}applyMsg(e){E.apply(e,(e=>this.shared.setRenderProp("msg",e)))}applyName(e){g.apply(e,(e=>this.shared.setRenderProp("name",e))),this.formAssociation.watchName(e)}applyOn(e){q.apply(e,(e=>this.shared.setRenderProp("on",e)))}applySyncValueBySelector(e){this.formAssociation.watchSyncValueBySelector(e)}applyTooltipAlign(e){a.apply(null!=e?e:"top",(e=>this.shared.setRenderProp("tooltipAlign",e)))}applyTouched(e){z.apply(e,(e=>this.shared.setRenderProp("touched",e)))}get eventHost(){var e,i;return null!==(i=null===(e=this.formAssociation)||void 0===e?void 0:e.host)&&void 0!==i?i:this.host}emit(e,i){this.eventHost&&T(this.eventHost,e,i)}handleFocusLeave(e){var i,t;if(this._disabled)return;const o=this.eventHost,s=(null==o?void 0:o.shadowRoot)||o,l=(null==s?void 0:s.contains(e.relatedTarget))||o===e.relatedTarget;this.focusEventSent&&!l&&(this._touched=!0,this.emit(O.blur),null===(t=null===(i=this._on)||void 0===i?void 0:i.onBlur)||void 0===t||t.call(i,e),this.focusEventSent=!1)}getAria(){const e=this.shared;return(({id:e,msg:i,hint:t,touched:o})=>{const s="string"==typeof i?i:null==i?void 0:i._description,l=Boolean(s&&s.length>0),a="error"===H(i)&&l&&!0===o,r="string"==typeof t&&t.length>0,n=[];return l&&!0===o&&n.push(L(e,"msg")),r&&n.push(L(e,"hint")),{hasError:a,hasHint:r,ariaDescribedBy:n}})({id:e.getState("id"),msg:e.getRenderProp("msg"),hint:e.getRenderProp("hint"),touched:e.getRenderProp("touched")})}showAsAlert(){return Boolean(this.shared.getRenderProp("touched"))&&!this.shared.getState("inputHasFocus")}isTooltipShown(){const e=this.shared;return Q({hideLabel:e.getRenderProp("hideLabel"),label:m(e.getRenderProp("label"))})}getLabelTooltipRefs(){return{refInput:this.setInputRef,refTooltip:this.setTooltipRef}}getFormFieldProps({class:e,accessKey:i,shortKey:t,variant:o,counter:s,maxLength:l,readOnly:a,renderNoLabel:r,renderNoTooltip:n,required:d}){const h=this.shared,c=h.getState("id"),p=h.getRenderProp("label"),u=h.getRenderProp("tooltipAlign");return this.isTooltipShown()?(this.tooltipBehavior.watchAlign(u),this.tooltipBehavior.watchBadgeText(j(i,t)||""),this.tooltipBehavior.watchId(L(c,"label")),this.tooltipBehavior.watchLabel(p)):this.tooltipBehavior.destroy(),{id:c,disabled:h.getRenderProp("disabled"),msg:h.getRenderProp("msg"),hint:h.getRenderProp("hint"),label:p,hideLabel:h.getRenderProp("hideLabel"),hideMsg:h.getRenderProp("hideMsg"),touched:h.getRenderProp("touched"),showBadge:Boolean(i)||Boolean(t),required:d,readOnly:a,accessKey:i,shortKey:t,maxLength:l,counter:s,variant:o,class:e,tooltipAlign:u,alert:this.showAsAlert(),infoPopover:this.getInfoPopover(),renderNoLabel:r,renderNoTooltip:n,refInput:n?void 0:this.setInputRef,refTooltip:this.setTooltipRef}}};export{Y as B,W as F,X as a,V as b,Z as c,R as f,H as g,C as i,D as r}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as t}from"./
|
|
4
|
+
import{h as t}from"./prop.validators.js";import{a as s,d as i,v as e}from"./component6.js";import{a,S as o}from"./suggestions2.js";import{h as r,g as h}from"./input-container.js";import{c as l,d as n,a as d,f as p}from"./base-web-component.js";import{p as u}from"./placeholder.js";import{r as c}from"./read-only.js";import{r as m}from"./required.js";import{s as v}from"./smart-button.js";import{s as y}from"./value-string.js";import{f as b,B as j}from"./base-web-component2.js";import{s as g}from"./controller.js";import{v as f}from"./access-and-short-key.js";import{c as O}from"./element-interaction.js";import{C as x}from"./behavior2.js";const B=l("pattern",void 0,n),K={required:[...b.required],optional:[...b.optional,s,a,r,B,u,c,m,i,v,y,e]},q=class extends j{constructor(){super(...arguments),this.ctaRef=O(),this.counter=new x(d.stateLess),this.needsImmediateCounterUpdate=!1,this.hasValue=!1,this.handleTextInput=t=>{this._value=t.target.value,this.handleInput(t)},this.handleTextChange=(t,s)=>{this.handleChange(t,s)},this.handleTextFocus=t=>{var s,i;this.handleFocus(t),this.counter.retriggerAria(null!==(i=null===(s=this._value)||void 0===s?void 0:s.length)&&void 0!==i?i:0)},this.handleTextKeyDown=t=>{var s,i;this.handleKeyDown(t),this.counter.handleKeyDown(t,null!==(i=null===(s=this.ctaRef.el)||void 0===s?void 0:s.value.length)&&void 0!==i?i:0),g(t,{form:this.host,ref:this.ctaRef.el})}}get textShared(){return this}initHasValue(){this.hasValue=Boolean(this.textShared.getRenderProp("value"))}didLoadTextInput(){var t,s;this.needsImmediateCounterUpdate=!1,(this.counter.hasCounter()||this.counter.hasSoftLimit())&&this.counter.updateImmediate(null!==(s=null===(t=this._value)||void 0===t?void 0:t.length)&&void 0!==s?s:0)}didUpdateTextInput(){var t,s;this.needsImmediateCounterUpdate&&(this.needsImmediateCounterUpdate=!1,(this.counter.hasCounter()||this.counter.hasSoftLimit())&&this.counter.updateImmediate(null!==(s=null===(t=this._value)||void 0===t?void 0:t.length)&&void 0!==s?s:0))}destroyTextInput(){this.destroyFormField(),this.counter.destroy()}applyAccessKey(t){s.apply(t,(t=>this.textShared.setRenderProp("accessKey",t))),f(t,this._shortKey)}applyAutoComplete(t){a.apply(t,(t=>this.textShared.setRenderProp("autoComplete",t)))}applyIcons(t){r.apply(t,(t=>this.textShared.setRenderProp("icons",t)))}applyPattern(t){B.apply(t,(t=>this.textShared.setRenderProp("pattern",t)))}applyPlaceholder(t){u.apply(t,(t=>this.textShared.setRenderProp("placeholder",t)))}applyReadOnly(t){c.apply(t,(t=>this.textShared.setRenderProp("readOnly",t)))}applyRequired(t){m.apply(t,(t=>this.textShared.setRenderProp("required",t)))}applyShortKey(t){i.apply(t,(t=>this.textShared.setRenderProp("shortKey",t))),f(this._accessKey,t)}applySmartButton(t){null==t?this.textShared.unsetRenderProp("smartButton"):v.apply(t,(t=>this.textShared.setRenderProp("smartButton",t)))}applyValue(t){var s;this.initValue(t),this.hasValue=Boolean(this.textShared.getRenderProp("value")),this.counter.update(null!==(s=null==t?void 0:t.length)&&void 0!==s?s:0)}initValue(t){y.apply(t,(t=>this.textShared.setRenderProp("value",t))),this.formAssociation.setFormAssociatedValue(this.textShared.getRenderProp("value"))}initMaxLength(t){this.counter.watchMaxLength(t)}applyVariant(t){e.apply(t,(t=>this.textShared.setRenderProp("variant",t)))}applyHasCounter(t){this.counter.watchHasCounter(t),this.needsImmediateCounterUpdate=!0}applyMaxLength(t){var s,i;this.counter.watchMaxLength(t),this.counter.updateImmediate(null!==(i=null===(s=this._value)||void 0===s?void 0:s.length)&&void 0!==i?i:0)}applyMaxLengthBehavior(t){this.counter.watchMaxLengthBehavior(t),this.needsImmediateCounterUpdate=!0}getTextFormFieldProps(t){const s=this.textShared;return this.getFormFieldProps({class:p(t,{"has-value":this.hasValue,"kol-form-field--has-counter":this.counter.hasSoftLimit()||this.counter.hasCounter()}),accessKey:s.getRenderProp("accessKey")||void 0,shortKey:s.getRenderProp("shortKey")||void 0,variant:s.getRenderProp("variant"),required:s.getRenderProp("required"),readOnly:s.getRenderProp("readOnly"),maxLength:this.counter.getRenderProp("maxLength"),counter:this.counter.getCounterProps()})}getTextInputAdornments(t){return h({icons:this.textShared.getRenderProp("icons"),smartButton:this.getSmartButtonFcProps(this.textShared.getRenderProp("smartButton"),this.textShared.getRenderProp("disabled")),endAdornment:t})}getTextInputProps({type:s,spellcheck:i,multiple:e,suggestions:a},r={}){const h=this.textShared,l=h.getState("id"),n=h.getRenderProp("accessKey"),d=h.getRenderProp("shortKey"),p=h.getRenderProp("placeholder"),u=h.getRenderProp("pattern"),c=this.counter.getMaxLengthAttribute(),m=this.counter.getCharacterLimitHintId(l),{ariaDescribedBy:v,hasError:y}=this.getAria();return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({id:l,hideLabel:h.getRenderProp("hideLabel"),label:h.getRenderProp("label"),disabled:h.getRenderProp("disabled"),name:h.getRenderProp("name")||void 0},n?{accessKey:n}:{}),void 0!==s?{type:s}:{}),{value:h.getRenderProp("value"),required:h.getRenderProp("required")}),void 0!==c?{maxlength:c}:{}),void 0!==p?{placeholder:p}:{}),{autoComplete:h.getRenderProp("autoComplete")}),void 0!==i?{spellcheck:i}:{}),void 0!==u?{pattern:u}:{}),{readonly:h.getRenderProp("readOnly")}),void 0!==e?{multiple:e}:{}),{touched:h.getRenderProp("touched"),msg:h.getRenderProp("msg")}),d?{"aria-keyshortcuts":d}:{}),a&&a.length>0?{suggestions:t(o,{id:l,suggestions:a})}:{}),{ref:this.ctaRef,onBlur:this.handleBlur,onChange:this.handleTextChange,onClick:this.handleClick,onFocus:this.handleTextFocus,onInput:this.handleTextInput,onKeyDown:this.handleTextKeyDown}),r),{ariaDescribedBy:m?[...v,m]:v,"aria-invalid":y?"true":void 0})}};export{q as B,K as t}
|