@public-ui/components 5.0.0-beta.1 → 5.0.0-beta.2
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 +9 -55
- package/dist/cjs/{Heading-C9osvqjY.js → Heading-o_m1bQbh.js} +7 -7
- package/dist/cjs/{access-and-short-key-D40HWCJe.js → access-and-short-key-BrLP4fF_.js} +2 -0
- package/dist/cjs/{api-U7I3XBPI.js → api-SFTkHR9W.js} +32 -34
- package/dist/cjs/{app-globals-DsADKGEe.js → app-globals-BVGzsN2O.js} +6 -5
- package/dist/cjs/{aria-labelledby-BRMgWRVp.js → aria-labelledby-CgJJS0K5.js} +2 -13
- package/dist/cjs/ariaCurrentService-aysGX58T.js +30 -0
- package/dist/cjs/{base-DCxbMk0f.js → base-4xLnw9ep.js} +17 -19
- package/dist/cjs/{base-l99dGLYo.js → base-DGpJZOXm.js} +67 -73
- package/dist/cjs/{base-DcN_YC72.js → base-DJhwvwdo.js} +13 -14
- package/dist/cjs/{base-CyqDmoZZ.js → base-DoujJ-Xz.js} +14 -15
- package/dist/cjs/{base-web-component-BnaxS2Z3.js → base-web-component-BgX5i_fc.js} +16 -19
- package/dist/cjs/{base-web-component-B6mwGD0m.js → base-web-component-DSCg1arP.js} +2 -1
- package/dist/cjs/{base-web-component-DxJ0hQ9u.js → base-web-component-nGb9E-GX.js} +17 -19
- package/dist/cjs/{behavior-BNyFQ_B5.js → behavior-CBwUdaXu.js} +10 -10
- package/dist/cjs/{behavior-CTaw4dj3.js → behavior-DhfuU2HF.js} +5 -5
- package/dist/cjs/{behavior-DrFJy0QC.js → behavior-S2U8skNd.js} +33 -33
- package/dist/cjs/{bem-registry-CyxrH26c.js → bem-registry-CMf1T2kb.js} +61 -15
- package/dist/cjs/bootstrap-C4GRmpTI.js +59 -0
- package/dist/cjs/{color-BW4t1Cif.js → color-BWamMCyw.js} +4 -4
- package/dist/cjs/{component-lmJOXuD6.js → component-BGIFlgKu.js} +8 -11
- package/dist/cjs/component-BM6eWMuC.js +177 -0
- package/dist/cjs/{component-Cvjqbxf4.js → component-CKc_-O64.js} +15 -18
- package/dist/cjs/{component-Cty_HlJR.js → component-CweSM_ze.js} +6 -5
- package/dist/cjs/{component-4OErV1Bg.js → component-DPCpVWBj.js} +11 -13
- package/dist/cjs/{component-DAQ1XSNA.js → component-DSlW2KVw.js} +6 -8
- package/dist/cjs/component-DTC3WbHR.js +52 -0
- package/dist/cjs/{component-DF5q9ssd.js → component-DUvRV4FE.js} +13 -14
- package/dist/cjs/component-SeQac11p.js +19 -0
- package/dist/cjs/component-names-CyEXMjv9.js +121 -0
- package/dist/cjs/{component-DtxKrISb.js → component-t6Upgw7f.js} +6 -7
- package/dist/cjs/{contrast-4mAdSLs0.js → contrast-CXinV5ii.js} +5 -5
- package/dist/cjs/{controller-tEyAFJN9.js → controller-D4usgPg-.js} +20 -20
- package/dist/cjs/{dev.utils-D5qh-RLT.js → dev.utils-glOxiW4E.js} +9 -10
- package/dist/cjs/{devtools-Dtv-Apvj.js → devtools-VDx5moKY.js} +24 -25
- package/dist/cjs/{disabled-jYcvcwjv.js → disabled-CZJO6fbW.js} +2 -1
- package/dist/cjs/{element-focus-CzkKMwtn.js → element-focus-IBv4yiNw.js} +1 -0
- package/dist/cjs/{element-interaction-BtYQAbhu.js → element-interaction-CvCJFwUh.js} +2 -1
- package/dist/cjs/{events-BJC5JJcU.js → events-fafEzzml.js} +2 -0
- package/dist/cjs/{field-control-Btb5zapE.js → field-control-xEw1WZFL.js} +12 -13
- package/dist/cjs/{group-Dg2gJze5.js → group-CMns8Vns.js} +8 -9
- package/dist/cjs/{has-closer-CvNa5gqv.js → has-closer-Cs7BCj4r.js} +2 -1
- package/dist/cjs/{href-BBhiVyPb.js → href-C93ktLo4.js} +2 -1
- package/dist/cjs/{i18n-BSWM5nea.js → i18n-DXYL9rIn.js} +11 -6
- package/dist/cjs/{i18n-BnOWw1MQ.js → i18n-YdI7_XKo.js} +3 -3
- package/dist/cjs/{id-D1VZsLkg.js → id-CtES_I0D.js} +2 -1
- package/dist/cjs/{index-BacpU-d0.js → index-B65pR1Ir.js} +1807 -61
- package/dist/cjs/index.cjs.js +20 -14
- package/dist/cjs/input-Bi8Zo8Bv.js +18 -0
- package/dist/cjs/{input-container-PaL4ZNf3.js → input-container-BErSDYvG.js} +17 -20
- package/dist/cjs/{item-CLnIJY4J.js → item-BHQRF4Sp.js} +9 -9
- package/dist/cjs/{item-CErU-EPA.js → item-BLhkAIub.js} +9 -9
- package/dist/cjs/{item-Cckqxc6T.js → item-BVHbqXo2.js} +56 -35
- package/dist/cjs/{item-CPxmIcoq.js → item-N9AmF46D.js} +16 -17
- package/dist/cjs/{item-pool-CY0WyGOL.js → item-pool-ecjkEvCG.js} +2 -0
- package/dist/cjs/{keyboard-Ca1I5RM2.js → keyboard-DHPlsLs0.js} +2 -0
- package/dist/cjs/kol-abbr.cjs.entry.js +12 -16
- package/dist/cjs/kol-accordion.cjs.entry.js +23 -25
- package/dist/cjs/kol-alert.cjs.entry.js +34 -36
- package/dist/cjs/kol-avatar.cjs.entry.js +19 -19
- package/dist/cjs/kol-badge.cjs.entry.js +34 -37
- package/dist/cjs/kol-breadcrumb.cjs.entry.js +39 -42
- package/dist/cjs/kol-button-link.cjs.entry.js +33 -35
- package/dist/cjs/kol-button.cjs.entry.js +33 -35
- package/dist/cjs/kol-card.cjs.entry.js +35 -38
- package/dist/cjs/kol-combobox.cjs.entry.js +52 -54
- package/dist/cjs/kol-details.cjs.entry.js +23 -25
- package/dist/cjs/kol-dialog.cjs.entry.js +38 -41
- package/dist/cjs/kol-drawer.cjs.entry.js +38 -41
- package/dist/cjs/kol-form.cjs.entry.js +32 -35
- package/dist/cjs/kol-heading.cjs.entry.js +17 -19
- package/dist/cjs/kol-icon.cjs.entry.js +19 -17
- package/dist/cjs/kol-image.cjs.entry.js +12 -14
- package/dist/cjs/kol-input-checkbox.cjs.entry.js +62 -63
- package/dist/cjs/kol-input-color.cjs.entry.js +51 -52
- package/dist/cjs/kol-input-date.cjs.entry.js +54 -56
- package/dist/cjs/kol-input-email.cjs.entry.js +54 -55
- package/dist/cjs/kol-input-file.cjs.entry.js +49 -50
- package/dist/cjs/kol-input-number.cjs.entry.js +56 -57
- package/dist/cjs/kol-input-password.cjs.entry.js +54 -55
- package/dist/cjs/kol-input-radio.cjs.entry.js +50 -53
- package/dist/cjs/kol-input-range.cjs.entry.js +48 -50
- package/dist/cjs/kol-input-text.cjs.entry.js +55 -56
- package/dist/cjs/kol-kolibri.cjs.entry.js +13 -16
- package/dist/cjs/kol-link-button.cjs.entry.js +34 -36
- package/dist/cjs/kol-link.cjs.entry.js +33 -35
- package/dist/cjs/kol-meter.cjs.entry.js +22 -25
- package/dist/cjs/kol-modal.cjs.entry.js +38 -41
- package/dist/cjs/kol-nav.cjs.entry.js +50 -53
- package/dist/cjs/kol-pagination.cjs.entry.js +55 -58
- package/dist/cjs/kol-popover-button.cjs.entry.js +34 -36
- package/dist/cjs/kol-progress.cjs.entry.js +22 -19
- package/dist/cjs/kol-quote.cjs.entry.js +13 -15
- package/dist/cjs/kol-select.cjs.entry.js +47 -49
- package/dist/cjs/kol-single-select.cjs.entry.js +59 -56
- package/dist/cjs/kol-skip-nav.cjs.entry.js +37 -40
- package/dist/cjs/kol-spin.cjs.entry.js +16 -19
- package/dist/cjs/kol-split-button.cjs.entry.js +39 -41
- package/dist/cjs/kol-table-stateful.cjs.entry.js +74 -75
- package/dist/cjs/kol-table-stateless.cjs.entry.js +54 -66
- package/dist/cjs/kol-tabs.cjs.entry.js +50 -56
- package/dist/cjs/kol-textarea.cjs.entry.js +55 -55
- package/dist/cjs/kol-toast-container.cjs.entry.js +24 -28
- package/dist/cjs/kol-toolbar.cjs.entry.js +57 -56
- package/dist/cjs/kol-tree-item.cjs.entry.js +38 -38
- package/dist/cjs/kol-tree.cjs.entry.js +35 -25
- package/dist/cjs/kol-version.cjs.entry.js +25 -28
- package/dist/cjs/kolibri.cjs.js +6 -5
- package/dist/cjs/{label-vVOiX4dC.js → label-0j3-2J3C.js} +4 -3
- package/dist/cjs/{label-hints-D6EBRW9T.js → label-hints-DEiM49uy.js} +4 -4
- package/dist/cjs/{label-lang-segment-CYlAqtUl.js → label-lang-segment-BBCLeyBy.js} +3 -2
- package/dist/cjs/{label-with-expert-slot-B9z4nqW1.js → label-with-expert-slot-D0wokf7-.js} +4 -3
- package/dist/cjs/{level-BAiEYu4U.js → level-xVivGv7t.js} +2 -1
- package/dist/cjs/{link-target-4AzB3I84.js → link-target-D9qpCovV.js} +2 -1
- package/dist/cjs/{links-CPNK7VZo.js → links-DlW9up_d.js} +3 -3
- package/dist/cjs/loader.cjs.js +5 -4
- package/dist/cjs/{multiple-B3ZpkzWu.js → multiple-DO-asa_4.js} +2 -1
- package/dist/cjs/{number-value-B2yoKlvx.js → number-value-BUKMKQvN.js} +2 -1
- package/dist/cjs/{open-CvoX_qxD.js → open-BVqlpoxd.js} +2 -1
- package/dist/cjs/{open-items-cache-B6hP2Aqy.js → open-items-cache-DuXVixiW.js} +2 -0
- package/dist/cjs/{options-z7FKffHh.js → options-Dg3zz7Wo.js} +2 -0
- package/dist/cjs/{options-B2pQC9w2.js → options-vneqbPL0.js} +3 -3
- package/dist/cjs/{orientation-u2cvwgBc.js → orientation-DL6G4K4r.js} +2 -1
- package/dist/cjs/{placeholder-C9Ngp2tQ.js → placeholder-C-ecB96f.js} +2 -1
- package/dist/cjs/{props-from-config-BQ2SOZlz.js → props-from-config-Bm6Pf2tK.js} +96 -16
- package/dist/cjs/{read-only-DfWF-Coi.js → read-only-D__auxXg.js} +2 -1
- package/dist/cjs/{required-CdXn16dq.js → required-DqW-WueJ.js} +2 -1
- package/dist/cjs/{resolve-props-B8kPPEMw.js → resolve-props-CjhxUwj-.js} +9 -9
- package/dist/cjs/{resolve-props-B5MED90T.js → resolve-props-DKYD6i56.js} +9 -10
- package/dist/cjs/{rows-Ca5ya9tG.js → rows-Z8UDqY9u.js} +2 -1
- package/dist/cjs/{scroll-lock-jojYHBR3.js → scroll-lock-DgqKifg3.js} +8 -7
- package/dist/cjs/shared-state-C2e8sL5f.js +16 -0
- package/dist/cjs/{smart-button-CB8qIzgQ.js → smart-button-C_S63qaB.js} +3 -3
- package/dist/cjs/{spell-check-DKRC8xbW.js → spell-check-CT0WE9tq.js} +2 -1
- package/dist/cjs/{src-C3NG0rLO.js → src-Bwu1rJi2.js} +2 -1
- package/dist/cjs/{step-CZNyTb2h.js → step-W8T4AA1l.js} +2 -1
- package/dist/cjs/{suggestions-BRclldK2.js → suggestions-C-tM7INY.js} +4 -4
- package/dist/cjs/{suggestions-CRyB_YCX.js → suggestions-DvPhi4lP.js} +3 -3
- package/dist/cjs/test-component.cjs.entry.js +3 -3
- package/dist/cjs/theme-store-CHGfvYB-.js +13 -0
- package/dist/cjs/{toggle-handler-DRPltZqQ.js → toggle-handler-DHEfrMM0.js} +13 -16
- package/dist/cjs/{tooltip-open-tracking-Ba0udJRU.js → tooltip-open-tracking-DaQFzT-b.js} +8 -5
- package/dist/cjs/{unique-nav-labels-CIAwid5V.js → unique-nav-labels-CpJcPNBO.js} +3 -3
- package/dist/cjs/{unit-bsoemclF.js → unit-CNVBdvOH.js} +2 -1
- package/dist/cjs/{validators-DuLdbf2D.js → validators-BM9XrnzJ.js} +4 -1
- package/dist/cjs/{value-string-DZ_FFaUt.js → value-string-DXRes-dR.js} +2 -1
- package/dist/cjs/{width-BklaRCqt.js → width-BAwXHART.js} +2 -1
- package/dist/collection/collection-manifest.json +1 -8
- package/dist/collection/components/abbr/component.js +2 -2
- package/dist/collection/components/abbr/style.css +21 -0
- package/dist/collection/components/accordion/component.js +2 -2
- package/dist/collection/components/accordion/style.css +23 -2
- package/dist/collection/components/alert/component.js +6 -4
- package/dist/collection/components/alert/style.css +23 -2
- package/dist/collection/components/avatar/component.js +2 -2
- package/dist/collection/components/avatar/style.css +21 -0
- package/dist/collection/components/badge/component.js +2 -2
- package/dist/collection/components/badge/style.css +23 -2
- package/dist/collection/components/breadcrumb/component.js +2 -2
- package/dist/collection/components/breadcrumb/style.css +23 -2
- package/dist/collection/components/button/component.js +1 -1
- package/dist/collection/components/button/style.css +23 -2
- package/dist/collection/components/button-link/component.js +1 -1
- package/dist/collection/components/button-link/style.css +23 -2
- package/dist/collection/components/card/component.js +2 -2
- package/dist/collection/components/card/style.css +26 -2
- package/dist/collection/components/combobox/component.js +4 -4
- package/dist/collection/components/combobox/style.css +23 -2
- package/dist/collection/components/details/component.js +2 -2
- package/dist/collection/components/details/style.css +23 -2
- package/dist/collection/components/dialog/base.js +2 -2
- package/dist/collection/components/dialog/component.js +2 -2
- package/dist/collection/components/dialog/style.css +26 -2
- package/dist/collection/components/drawer/component.js +2 -2
- package/dist/collection/components/drawer/style.css +26 -2
- package/dist/collection/components/form/component.js +2 -2
- package/dist/collection/components/form/controller.js +4 -3
- package/dist/collection/components/form/style.css +23 -2
- package/dist/collection/components/heading/component.js +2 -2
- package/dist/collection/components/heading/style.css +21 -0
- package/dist/collection/components/icon/component.js +5 -5
- package/dist/collection/components/icon/style.css +2 -2
- package/dist/collection/components/image/component.js +2 -2
- package/dist/collection/components/image/style.css +21 -0
- package/dist/collection/components/input-checkbox/component.js +13 -11
- package/dist/collection/components/input-checkbox/style.css +23 -2
- package/dist/collection/components/input-color/component.js +6 -4
- package/dist/collection/components/input-color/style.css +23 -2
- package/dist/collection/components/input-date/component.js +9 -7
- package/dist/collection/components/input-date/style.css +23 -2
- package/dist/collection/components/input-email/component.js +4 -1
- package/dist/collection/components/input-email/style.css +23 -2
- package/dist/collection/components/input-file/component.js +6 -3
- package/dist/collection/components/input-file/style.css +23 -2
- package/dist/collection/components/input-number/component.js +6 -4
- package/dist/collection/components/input-number/style.css +23 -2
- package/dist/collection/components/input-password/component.js +5 -2
- package/dist/collection/components/input-password/style.css +23 -2
- package/dist/collection/components/input-radio/component.js +2 -3
- package/dist/collection/components/input-radio/style.css +23 -2
- package/dist/collection/components/input-range/component.js +2 -2
- package/dist/collection/components/input-range/style.css +23 -2
- package/dist/collection/components/input-text/component.js +4 -2
- package/dist/collection/components/input-text/style.css +23 -2
- package/dist/collection/components/kolibri/component.js +2 -2
- package/dist/collection/components/kolibri/style.css +21 -0
- package/dist/collection/components/link/ariaCurrentService.js +9 -9
- package/dist/collection/components/link/component.js +2 -2
- package/dist/collection/components/link/style.css +23 -2
- package/dist/collection/components/link-button/component.js +2 -2
- package/dist/collection/components/link-button/style.css +23 -2
- package/dist/collection/components/meter/component.js +2 -2
- package/dist/collection/components/meter/style.css +21 -0
- package/dist/collection/components/modal/component.js +2 -2
- package/dist/collection/components/modal/style.css +26 -2
- package/dist/collection/components/nav/component.js +2 -2
- package/dist/collection/components/nav/style.css +23 -2
- package/dist/collection/components/pagination/component.js +10 -12
- package/dist/collection/components/pagination/style.css +23 -2
- package/dist/collection/components/popover-button/component.js +1 -1
- package/dist/collection/components/popover-button/style.css +23 -2
- package/dist/collection/components/progress/component.js +6 -3
- package/dist/collection/components/progress/style.css +21 -0
- package/dist/collection/components/quote/component.js +2 -2
- package/dist/collection/components/quote/style.css +21 -0
- package/dist/collection/components/select/component.js +1 -1
- package/dist/collection/components/select/style.css +23 -2
- package/dist/collection/components/single-select/component.js +10 -6
- package/dist/collection/components/single-select/style.css +23 -2
- package/dist/collection/components/skip-nav/component.js +2 -2
- package/dist/collection/components/skip-nav/style.css +23 -2
- package/dist/collection/components/spin/component.js +2 -2
- package/dist/collection/components/spin/style.css +21 -0
- package/dist/collection/components/split-button/component.js +1 -1
- package/dist/collection/components/split-button/style.css +23 -2
- package/dist/collection/components/table-stateful/component.js +13 -18
- package/dist/collection/components/table-stateful/style.css +26 -2
- package/dist/collection/components/table-stateless/base.js +4 -1
- package/dist/collection/components/table-stateless/component.js +14 -55
- package/dist/collection/components/table-stateless/style.css +26 -2
- package/dist/collection/components/tabs/component.js +8 -17
- package/dist/collection/components/tabs/style.css +23 -2
- package/dist/collection/components/textarea/component.js +5 -3
- package/dist/collection/components/textarea/style.css +23 -2
- package/dist/collection/components/toaster/shadow.js +1 -2
- package/dist/collection/components/toaster/style.css +23 -2
- package/dist/collection/components/toaster/toaster.js +2 -1
- package/dist/collection/components/toolbar/component.js +14 -10
- package/dist/collection/components/toolbar/style.css +23 -2
- package/dist/collection/components/tree/component.js +22 -11
- package/dist/collection/components/tree/style.css +21 -0
- package/dist/collection/components/tree-item/component.js +9 -6
- package/dist/collection/components/tree-item/style.css +23 -2
- package/dist/collection/components/version/component.js +2 -2
- package/dist/collection/components/version/style.css +23 -2
- package/dist/collection/core/bootstrap.js +8 -5
- package/dist/collection/core/component-names.js +52 -106
- package/dist/collection/core/i18n.js +7 -6
- package/dist/collection/core/shared-state.js +10 -0
- package/dist/collection/core/tag-transformer.js +27 -0
- package/dist/collection/core/theme-store.js +8 -0
- package/dist/collection/global/script.js +2 -0
- package/dist/collection/index.js +2 -0
- package/dist/collection/internal/functional-components/alert/component.js +2 -1
- package/dist/collection/internal/functional-components/avatar/component.js +2 -2
- package/dist/collection/internal/functional-components/badge/component.js +2 -1
- package/dist/collection/internal/functional-components/bem-root-node/component.js +16 -6
- package/dist/collection/internal/functional-components/breadcrumb/component.js +2 -2
- package/dist/collection/internal/functional-components/card/component.js +3 -1
- package/dist/collection/internal/functional-components/collapsible/component.js +3 -2
- package/dist/collection/internal/functional-components/dialog/component.js +6 -3
- package/dist/collection/internal/functional-components/dialog/item.js +2 -2
- package/dist/collection/internal/functional-components/drawer/component.js +1 -1
- package/dist/collection/internal/functional-components/form-association/api.js +2 -2
- package/dist/collection/internal/functional-components/form-association/behavior.js +18 -15
- package/dist/collection/internal/functional-components/form-field/base-web-component.js +0 -1
- package/dist/collection/internal/functional-components/form-field/custom-suggestions.js +1 -1
- package/dist/collection/internal/functional-components/heading/component.js +3 -4
- package/dist/collection/internal/functional-components/icon/api.js +2 -2
- package/dist/collection/internal/functional-components/icon/component.js +2 -2
- package/dist/collection/internal/functional-components/image/component.js +2 -4
- package/dist/collection/internal/functional-components/link/component.js +1 -1
- package/dist/collection/internal/functional-components/meter/component.js +5 -7
- package/dist/collection/internal/functional-components/pagination/api.js +2 -2
- package/dist/collection/internal/functional-components/pagination/component.js +2 -3
- package/dist/collection/internal/functional-components/pagination/item.js +26 -11
- package/dist/collection/internal/functional-components/pagination/page-size-select.js +8 -0
- package/dist/collection/internal/functional-components/progress/component.js +2 -1
- package/dist/collection/internal/functional-components/quote/component.js +2 -3
- package/dist/collection/internal/functional-components/single-select/component.js +2 -1
- package/dist/collection/internal/functional-components/skip-nav/component.js +2 -2
- package/dist/collection/internal/functional-components/span/component.js +3 -2
- package/dist/collection/internal/functional-components/table-stateless/api.js +2 -2
- package/dist/collection/internal/functional-components/table-stateless/component.js +5 -5
- package/dist/collection/internal/functional-components/table-stateless/settings.js +10 -5
- package/dist/collection/internal/functional-components/table-stateless/table-model.js +2 -6
- package/dist/collection/internal/functional-components/tabs/component.js +7 -1
- package/dist/collection/internal/functional-components/tree/component.js +2 -2
- package/dist/collection/internal/functional-components/tree-item/component.js +2 -2
- package/dist/collection/internal/props/helpers/validators.js +1 -0
- package/dist/collection/internal/props/index.js +1 -0
- package/dist/collection/internal/props/label-decorative.js +10 -0
- package/dist/collection/locales/de.js +1 -0
- package/dist/collection/locales/en.js +1 -0
- package/dist/collection/schema/bem-registry.js +59 -13
- package/dist/collection/schema/i18n-keys.js +29 -28
- package/dist/collection/schema/props/aria-details.js +1 -22
- package/dist/collection/schema/props/aria-labelledby.js +3 -12
- package/dist/collection/schema/props/index.js +1 -1
- package/dist/collection/schema/props/table-headers.js +1 -0
- package/dist/collection/utils/aria-labelledby.js +0 -12
- package/dist/collection/utils/markdown.js +49 -3
- package/dist/collection/utils/tooltip-open-tracking.js +6 -5
- package/dist/components/Heading.js +1 -1
- package/dist/components/access-and-short-key.js +1 -1
- package/dist/components/ariaCurrentService.js +1 -1
- 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/common.js +4 -0
- 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 +4 -0
- package/dist/components/component13.js +4 -0
- package/dist/components/component14.js +4 -0
- 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-badge.js +1 -1
- package/dist/components/kol-breadcrumb.js +1 -1
- package/dist/components/kol-button-link.js +1 -1
- package/dist/components/kol-button.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-checkbox.js +1 -1
- package/dist/components/kol-input-color.js +1 -1
- package/dist/components/kol-input-date.js +1 -1
- package/dist/components/kol-input-email.js +1 -1
- package/dist/components/kol-input-file.js +1 -1
- package/dist/components/kol-input-number.js +1 -1
- package/dist/components/kol-input-password.js +1 -1
- package/dist/components/kol-input-radio.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-link.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/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 +4 -0
- 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-BVhjT9av.js → Heading-Cynkalqu.js} +2 -2
- package/dist/esm/{access-and-short-key-ijzCZfHm.js → access-and-short-key-CW0oxi_q.js} +2 -0
- package/dist/esm/{api-D92_O-0H.js → api-B76-Osk1.js} +21 -23
- package/dist/esm/{app-globals-CBGjgNge.js → app-globals-Dtu1AIr1.js} +4 -3
- package/dist/esm/{aria-labelledby-CLehu03h.js → aria-labelledby-DQov9uSv.js} +3 -13
- package/dist/esm/ariaCurrentService-B9TgWLEw.js +27 -0
- package/dist/esm/{base-DIcqHqMz.js → base-BZCFxul4.js} +13 -14
- package/dist/esm/{base-BLBSJu_1.js → base-BpgzOuy3.js} +13 -14
- package/dist/esm/{base-qvPPg-dn.js → base-CAiOx0qs.js} +52 -58
- package/dist/esm/{base-CHmdLgoO.js → base-DJ3lTPYp.js} +14 -16
- package/dist/esm/{base-web-component-XgI4wUyN.js → base-web-component-D16FuHFf.js} +2 -1
- package/dist/esm/{base-web-component-CaAexWy_.js → base-web-component-E9cH8tf8.js} +16 -18
- package/dist/esm/{base-web-component-DbagnM7m.js → base-web-component-aOhHFXxF.js} +10 -13
- package/dist/esm/{behavior-DW7_5Wxp.js → behavior-ByyBa-o8.js} +5 -5
- package/dist/esm/{behavior-CwUUkdaP.js → behavior-DJQFXyfi.js} +6 -6
- package/dist/esm/{behavior-B08CXmI4.js → behavior-DnTJtQBK.js} +29 -28
- package/dist/esm/{bem-registry-CWN7_O1L.js → bem-registry-CK2s_XZ4.js} +60 -14
- package/dist/esm/bootstrap-DUmk0ILT.js +52 -0
- package/dist/esm/{color-eAL9I7Wq.js → color-CEoIhjJR.js} +3 -3
- package/dist/esm/{component-8ALsFV4i.js → component-BPL1Mikq.js} +5 -6
- package/dist/esm/{component-D0mBOGjS.js → component-C0ijstyp.js} +10 -12
- package/dist/esm/component-C58IwTEf.js +47 -0
- package/dist/esm/{component-nR5Bf9G5.js → component-CAEpgoSo.js} +6 -5
- package/dist/esm/component-CDyoNoJe.js +17 -0
- package/dist/esm/{component-CdKSiR5P.js → component-CiTw4ODP.js} +6 -9
- package/dist/esm/component-DTV1Kuf1.js +172 -0
- package/dist/esm/{component-DCw1ZAE5.js → component-DeFANBua.js} +5 -7
- package/dist/esm/{component-DBAicJ2u.js → component-S6ib3O8N.js} +13 -16
- package/dist/esm/{component-BTMWoACz.js → component-XbTjo2nm.js} +11 -13
- package/dist/esm/component-names-Ur_UbEzI.js +115 -0
- package/dist/esm/{contrast-D78VGPFR.js → contrast-Ujnfz49m.js} +2 -2
- package/dist/esm/{controller-C3O9ohSP.js → controller-BdPVgWDs.js} +5 -5
- package/dist/esm/{dev.utils-wYkYn08d.js → dev.utils--eVyQ4zr.js} +1 -2
- package/dist/esm/{devtools-DrBkkLdP.js → devtools-CosbyboJ.js} +4 -5
- package/dist/esm/{disabled-Cqhc40CU.js → disabled-Cu0e92-b.js} +2 -1
- package/dist/esm/{element-focus-BIRmGg5W.js → element-focus-BYLFG-oz.js} +1 -0
- package/dist/esm/{element-interaction-sGYdEpmv.js → element-interaction-C2pgnQ6t.js} +2 -1
- package/dist/esm/{events-BIT-JUP2.js → events-B2UzbUT7.js} +2 -0
- package/dist/esm/{field-control-Cs5VvsYo.js → field-control-DbmtKHc1.js} +7 -8
- package/dist/esm/{group-uNo1CfbK.js → group-CqAFhkgE.js} +6 -7
- package/dist/esm/{has-closer-B9NQY7BK.js → has-closer-DOs1CXhp.js} +2 -1
- package/dist/esm/{href-JqLbNBsW.js → href-DQbHtp6T.js} +2 -1
- package/dist/esm/{i18n-Dl6Jjofb.js → i18n-Bcb0tuyF.js} +11 -6
- package/dist/esm/{i18n-DtLKn3Xt.js → i18n-Cf0DhAke.js} +2 -2
- package/dist/esm/{id-CIYvVaNr.js → id-BXwy9iRy.js} +2 -1
- package/dist/esm/{index-BKEJuyFi.js → index-Bsx5X6jK.js} +1745 -46
- package/dist/esm/index.js +14 -12
- package/dist/esm/{input-Dja5Qioc.js → input-RvLnUp6C.js} +4 -6
- package/dist/esm/{input-container-C2Am7LEP.js → input-container-BpG3WHug.js} +6 -9
- package/dist/esm/{item-D627ShRd.js → item-Cw_jdgc6.js} +14 -15
- package/dist/esm/{item-DIAFIFSy.js → item-DMttg5uX.js} +51 -30
- package/dist/esm/{item-ConW1c81.js → item-DibV9jD7.js} +8 -8
- package/dist/esm/{item-C4AmpdVD.js → item-KqTsA-5a.js} +8 -8
- package/dist/esm/{item-pool-BOxAYePG.js → item-pool-C_4Isquh.js} +2 -0
- package/dist/esm/{keyboard-Cnv7zP3N.js → keyboard-Cc1-_wSt.js} +2 -0
- package/dist/esm/kol-abbr.entry.js +11 -15
- package/dist/esm/kol-accordion.entry.js +22 -24
- package/dist/esm/kol-alert.entry.js +34 -36
- package/dist/esm/kol-avatar.entry.js +19 -19
- package/dist/esm/kol-badge.entry.js +31 -34
- package/dist/esm/kol-breadcrumb.entry.js +36 -39
- package/dist/esm/kol-button-link.entry.js +33 -35
- package/dist/esm/kol-button.entry.js +33 -35
- package/dist/esm/kol-card.entry.js +35 -38
- package/dist/esm/kol-combobox.entry.js +51 -53
- package/dist/esm/kol-details.entry.js +22 -24
- package/dist/esm/kol-dialog.entry.js +38 -41
- package/dist/esm/kol-drawer.entry.js +38 -41
- package/dist/esm/kol-form.entry.js +30 -33
- package/dist/esm/kol-heading.entry.js +17 -19
- package/dist/esm/kol-icon.entry.js +19 -17
- package/dist/esm/kol-image.entry.js +12 -14
- package/dist/esm/kol-input-checkbox.entry.js +57 -58
- package/dist/esm/kol-input-color.entry.js +51 -52
- package/dist/esm/kol-input-date.entry.js +53 -55
- package/dist/esm/kol-input-email.entry.js +54 -55
- package/dist/esm/kol-input-file.entry.js +49 -50
- package/dist/esm/kol-input-number.entry.js +55 -56
- package/dist/esm/kol-input-password.entry.js +53 -54
- package/dist/esm/kol-input-radio.entry.js +47 -50
- package/dist/esm/kol-input-range.entry.js +48 -50
- package/dist/esm/kol-input-text.entry.js +55 -56
- package/dist/esm/kol-kolibri.entry.js +12 -15
- package/dist/esm/kol-link-button.entry.js +33 -35
- package/dist/esm/kol-link.entry.js +33 -35
- package/dist/esm/kol-meter.entry.js +22 -25
- package/dist/esm/kol-modal.entry.js +38 -41
- package/dist/esm/kol-nav.entry.js +43 -46
- package/dist/esm/kol-pagination.entry.js +55 -58
- package/dist/esm/kol-popover-button.entry.js +34 -36
- package/dist/esm/kol-progress.entry.js +22 -19
- package/dist/esm/kol-quote.entry.js +13 -15
- package/dist/esm/kol-select.entry.js +47 -49
- package/dist/esm/kol-single-select.entry.js +58 -55
- package/dist/esm/kol-skip-nav.entry.js +35 -38
- package/dist/esm/kol-spin.entry.js +16 -19
- package/dist/esm/kol-split-button.entry.js +37 -39
- package/dist/esm/kol-table-stateful.entry.js +70 -71
- package/dist/esm/kol-table-stateless.entry.js +54 -66
- package/dist/esm/kol-tabs.entry.js +46 -52
- package/dist/esm/kol-textarea.entry.js +53 -53
- package/dist/esm/kol-toast-container.entry.js +22 -26
- package/dist/esm/kol-toolbar.entry.js +52 -51
- package/dist/esm/kol-tree-item.entry.js +38 -38
- package/dist/esm/kol-tree.entry.js +35 -25
- package/dist/esm/kol-version.entry.js +24 -27
- package/dist/esm/kolibri.js +7 -6
- package/dist/esm/{label-BRosRgdX.js → label-DEZIsnKw.js} +4 -3
- package/dist/esm/{label-hints-Jn18RUT-.js → label-hints-C--ftrg_.js} +2 -2
- package/dist/esm/{label-lang-segment-2_GnxjFp.js → label-lang-segment-B8ayoizG.js} +3 -2
- package/dist/esm/label-with-expert-slot-DXi27J4o.js +13 -0
- package/dist/esm/{level-CA1s1_Mf.js → level-BV6M_zmM.js} +2 -1
- package/dist/esm/{link-target-FX94oqMo.js → link-target-C9qzQAQg.js} +2 -1
- package/dist/esm/{links-DwucTqcR.js → links-Dt0OhMXb.js} +2 -2
- package/dist/esm/loader.js +6 -5
- package/dist/esm/{multiple-DqrZxybx.js → multiple-DQdOCIyW.js} +2 -1
- package/dist/esm/{number-value-B-SJ1dRo.js → number-value-DtZloH4P.js} +2 -1
- package/dist/esm/{open-DRRv1KFK.js → open-DaO7wXMr.js} +2 -1
- package/dist/esm/{open-items-cache-D-kml1h6.js → open-items-cache-C98FzYQ9.js} +2 -0
- package/dist/esm/{options-DCaUcfAu.js → options-C8BsBGBl.js} +2 -2
- package/dist/esm/{options-B0rBHetL.js → options-CKAHQbcF.js} +2 -0
- package/dist/esm/{orientation-XNOCaPwy.js → orientation-VvJMCd9m.js} +2 -1
- package/dist/esm/{placeholder-BeLIzdJv.js → placeholder-7pbjAn-x.js} +2 -1
- package/dist/esm/{props-from-config-Ci0dILpz.js → props-from-config-DVxNB2Lx.js} +84 -7
- package/dist/esm/{read-only-Bby9r6ZX.js → read-only-3XuQIAB8.js} +2 -1
- package/dist/esm/{required-hoaT7UmZ.js → required-CNgdXJ8H.js} +2 -1
- package/dist/esm/{resolve-props-BLZxWC3j.js → resolve-props-B1DQKjTD.js} +7 -8
- package/dist/esm/{resolve-props-D2KiItuv.js → resolve-props-DOaJCd7Y.js} +9 -9
- package/dist/esm/{rows-B0x8CR7K.js → rows-DL1whQNh.js} +2 -1
- package/dist/esm/{scroll-lock-Y2hf47KW.js → scroll-lock-CF_Z7MzO.js} +9 -7
- package/dist/esm/shared-state-sWI1upS8.js +14 -0
- package/dist/esm/{smart-button-CS_ZriPt.js → smart-button-BdA5-cUG.js} +2 -2
- package/dist/esm/{spell-check-DzgftyqL.js → spell-check-B7J-eU5K.js} +2 -1
- package/dist/esm/{src-DaGhmCL1.js → src-C2baLPDp.js} +2 -1
- package/dist/esm/{step-Bdj89bGO.js → step-DmzcVFZB.js} +2 -1
- package/dist/esm/{suggestions-Dy1X-Pc3.js → suggestions-BJxNFtkL.js} +2 -2
- package/dist/esm/{suggestions-DuqzGDve.js → suggestions-BXp8OhOi.js} +3 -3
- package/dist/esm/test-component.entry.js +3 -3
- package/dist/esm/theme-store-CEu5d_EK.js +11 -0
- package/dist/esm/{toggle-handler-BRLmxe1J.js → toggle-handler-D7oFDKvq.js} +12 -15
- package/dist/esm/tooltip-open-tracking-DXhnfmA2.js +21 -0
- package/dist/esm/{unique-nav-labels-h2KOu5Qy.js → unique-nav-labels-BOqpcYk4.js} +2 -2
- package/dist/esm/{unit-BUhhJbhT.js → unit-BFYz7QfA.js} +2 -1
- package/dist/esm/{validators-BVM40IEr.js → validators-DPSQyOeQ.js} +4 -2
- package/dist/esm/{value-string-e9pwLcS-.js → value-string-Cmozozek.js} +2 -1
- package/dist/esm/{width-CgYY17tL.js → width-D5-Licpp.js} +2 -1
- package/dist/kolibri/Heading-Cynkalqu.js +4 -0
- package/dist/kolibri/access-and-short-key-CW0oxi_q.js +4 -0
- package/dist/kolibri/api-B76-Osk1.js +4 -0
- package/dist/kolibri/app-globals-Dtu1AIr1.js +4 -0
- package/dist/kolibri/aria-labelledby-DQov9uSv.js +4 -0
- package/dist/kolibri/ariaCurrentService-B9TgWLEw.js +4 -0
- package/dist/kolibri/base-BZCFxul4.js +4 -0
- package/dist/kolibri/base-BpgzOuy3.js +4 -0
- package/dist/kolibri/base-CAiOx0qs.js +4 -0
- package/dist/kolibri/base-DJ3lTPYp.js +4 -0
- package/dist/kolibri/base-web-component-D16FuHFf.js +4 -0
- package/dist/kolibri/base-web-component-E9cH8tf8.js +4 -0
- package/dist/kolibri/base-web-component-aOhHFXxF.js +4 -0
- package/dist/kolibri/behavior-ByyBa-o8.js +4 -0
- package/dist/kolibri/behavior-DJQFXyfi.js +4 -0
- package/dist/kolibri/behavior-DnTJtQBK.js +4 -0
- package/dist/kolibri/bem-registry-CK2s_XZ4.js +4 -0
- package/dist/kolibri/bootstrap-DUmk0ILT.js +4 -0
- package/dist/kolibri/color-CEoIhjJR.js +4 -0
- package/dist/kolibri/component-BPL1Mikq.js +4 -0
- package/dist/kolibri/component-C0ijstyp.js +4 -0
- package/dist/kolibri/component-C58IwTEf.js +4 -0
- package/dist/kolibri/component-CAEpgoSo.js +4 -0
- package/dist/kolibri/component-CDyoNoJe.js +4 -0
- package/dist/kolibri/component-CiTw4ODP.js +4 -0
- package/dist/kolibri/component-DTV1Kuf1.js +4 -0
- package/dist/kolibri/component-DeFANBua.js +4 -0
- package/dist/kolibri/component-S6ib3O8N.js +4 -0
- package/dist/kolibri/component-XbTjo2nm.js +4 -0
- package/dist/kolibri/component-names-Ur_UbEzI.js +4 -0
- package/dist/kolibri/contrast-Ujnfz49m.js +4 -0
- package/dist/kolibri/controller-BdPVgWDs.js +4 -0
- package/dist/kolibri/dev.utils--eVyQ4zr.js +4 -0
- package/dist/kolibri/devtools-CosbyboJ.js +4 -0
- package/dist/kolibri/disabled-Cu0e92-b.js +4 -0
- package/dist/kolibri/element-focus-BYLFG-oz.js +4 -0
- package/dist/kolibri/element-interaction-C2pgnQ6t.js +4 -0
- package/dist/kolibri/events-B2UzbUT7.js +4 -0
- package/dist/kolibri/field-control-DbmtKHc1.js +4 -0
- package/dist/kolibri/group-CqAFhkgE.js +4 -0
- package/dist/kolibri/has-closer-DOs1CXhp.js +4 -0
- package/dist/kolibri/href-DQbHtp6T.js +4 -0
- package/dist/kolibri/i18n-Bcb0tuyF.js +4 -0
- package/dist/kolibri/i18n-Cf0DhAke.js +4 -0
- package/dist/kolibri/id-BXwy9iRy.js +4 -0
- package/dist/kolibri/index-Bsx5X6jK.js +6 -0
- package/dist/kolibri/index.esm.js +1 -1
- package/dist/kolibri/input-RvLnUp6C.js +4 -0
- package/dist/kolibri/input-container-BpG3WHug.js +4 -0
- package/dist/kolibri/item-Cw_jdgc6.js +4 -0
- package/dist/kolibri/item-DMttg5uX.js +4 -0
- package/dist/kolibri/item-DibV9jD7.js +4 -0
- package/dist/kolibri/item-KqTsA-5a.js +4 -0
- package/dist/kolibri/item-pool-C_4Isquh.js +4 -0
- package/dist/kolibri/keyboard-Cc1-_wSt.js +4 -0
- 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-DEZIsnKw.js +4 -0
- package/dist/kolibri/label-hints-C--ftrg_.js +4 -0
- package/dist/kolibri/label-lang-segment-B8ayoizG.js +4 -0
- package/dist/kolibri/label-with-expert-slot-DXi27J4o.js +4 -0
- package/dist/kolibri/level-BV6M_zmM.js +4 -0
- package/dist/kolibri/link-target-C9qzQAQg.js +4 -0
- package/dist/kolibri/links-Dt0OhMXb.js +4 -0
- package/dist/kolibri/multiple-DQdOCIyW.js +4 -0
- package/dist/kolibri/number-value-DtZloH4P.js +4 -0
- package/dist/kolibri/open-DaO7wXMr.js +4 -0
- package/dist/kolibri/open-items-cache-C98FzYQ9.js +4 -0
- package/dist/kolibri/options-C8BsBGBl.js +4 -0
- package/dist/kolibri/options-CKAHQbcF.js +4 -0
- package/dist/kolibri/orientation-VvJMCd9m.js +4 -0
- package/dist/kolibri/placeholder-7pbjAn-x.js +4 -0
- package/dist/kolibri/props-from-config-DVxNB2Lx.js +4 -0
- package/dist/kolibri/read-only-3XuQIAB8.js +4 -0
- package/dist/kolibri/required-CNgdXJ8H.js +4 -0
- package/dist/kolibri/resolve-props-B1DQKjTD.js +4 -0
- package/dist/kolibri/resolve-props-DOaJCd7Y.js +4 -0
- package/dist/kolibri/rows-DL1whQNh.js +4 -0
- package/dist/kolibri/scroll-lock-CF_Z7MzO.js +4 -0
- package/dist/kolibri/shared-state-sWI1upS8.js +4 -0
- package/dist/kolibri/smart-button-BdA5-cUG.js +4 -0
- package/dist/kolibri/spell-check-B7J-eU5K.js +4 -0
- package/dist/kolibri/src-C2baLPDp.js +4 -0
- package/dist/kolibri/step-DmzcVFZB.js +4 -0
- package/dist/kolibri/suggestions-BJxNFtkL.js +4 -0
- package/dist/kolibri/suggestions-BXp8OhOi.js +4 -0
- package/dist/kolibri/test-component.entry.js +1 -1
- package/dist/kolibri/theme-store-CEu5d_EK.js +4 -0
- package/dist/kolibri/toggle-handler-D7oFDKvq.js +4 -0
- package/dist/kolibri/tooltip-open-tracking-DXhnfmA2.js +4 -0
- package/dist/kolibri/unique-nav-labels-BOqpcYk4.js +4 -0
- package/dist/kolibri/unit-BFYz7QfA.js +4 -0
- package/dist/kolibri/validators-DPSQyOeQ.js +4 -0
- package/dist/kolibri/value-string-Cmozozek.js +4 -0
- package/dist/kolibri/width-D5-Licpp.js +4 -0
- package/dist/types/components/alert/component.d.ts +1 -0
- package/dist/types/components/input-date/component.d.ts +1 -1
- package/dist/types/components/pagination/component.d.ts +1 -1
- package/dist/types/components/progress/component.d.ts +1 -0
- package/dist/types/components/single-select/component.d.ts +1 -0
- package/dist/types/components/table-stateful/component.d.ts +3 -4
- package/dist/types/components/table-stateless/base.d.ts +2 -2
- package/dist/types/components/table-stateless/component.d.ts +3 -6
- package/dist/types/components/tabs/component.d.ts +1 -2
- package/dist/types/components/tree/component.d.ts +1 -0
- package/dist/types/components.d.ts +18 -125
- package/dist/types/core/component-names.d.ts +52 -53
- package/dist/types/core/i18n.d.ts +1 -1
- package/dist/types/core/shared-state.d.ts +1 -0
- package/dist/types/core/tag-transformer.d.ts +4 -0
- package/dist/types/core/theme-store.d.ts +1 -0
- package/dist/types/index.d.ts +3 -1
- package/dist/types/internal/functional-components/bem-root-node/component.d.ts +8 -4
- package/dist/types/internal/functional-components/button/item.d.ts +1 -1
- package/dist/types/internal/functional-components/dialog/component.d.ts +7 -3
- package/dist/types/internal/functional-components/form-association/api.d.ts +1 -1
- package/dist/types/internal/functional-components/form-association/behavior.d.ts +2 -2
- package/dist/types/internal/functional-components/form-field/custom-suggestions.d.ts +1 -0
- package/dist/types/internal/functional-components/icon/api.d.ts +1 -1
- package/dist/types/internal/functional-components/pagination/api.d.ts +2 -2
- package/dist/types/internal/functional-components/pagination/item.d.ts +5 -3
- package/dist/types/internal/functional-components/pagination/page-size-select.d.ts +1 -0
- package/dist/types/internal/functional-components/single-select/component.d.ts +3 -0
- package/dist/types/internal/functional-components/table-stateful/model.d.ts +2 -2
- package/dist/types/internal/functional-components/table-stateless/api.d.ts +2 -2
- package/dist/types/internal/functional-components/table-stateless/table-model.d.ts +4 -4
- package/dist/types/internal/props/helpers/validators.d.ts +2 -1
- package/dist/types/internal/props/index.d.ts +1 -0
- package/dist/types/internal/props/label-decorative.d.ts +4 -0
- package/dist/types/internal/props/table-headers.d.ts +2 -2
- package/dist/types/internal/props/table-stateful-headers.d.ts +2 -2
- package/dist/types/locales/de.d.ts +1 -0
- package/dist/types/locales/en.d.ts +1 -0
- package/dist/types/schema/bem-registry.d.ts +87 -23
- package/dist/types/schema/components/pagination.d.ts +2 -2
- package/dist/types/schema/components/table.d.ts +2 -3
- package/dist/types/schema/components/tableStateless.d.ts +5 -4
- package/dist/types/schema/i18n-keys.d.ts +29 -28
- package/dist/types/schema/index.d.ts +1 -1
- package/dist/types/schema/props/aria-details.d.ts +0 -2
- package/dist/types/schema/props/aria-labelledby.d.ts +1 -2
- package/dist/types/schema/props/index.d.ts +1 -1
- package/dist/types/schema/props/label.d.ts +1 -0
- package/dist/types/schema/props/table-callbacks.d.ts +3 -3
- package/dist/types/schema/props/table-headers.d.ts +3 -0
- package/dist/types/stencil-public-runtime.d.ts +1 -1
- package/dist/types/utils/aria-labelledby.d.ts +0 -6
- package/doc/badge.md +15 -0
- package/doc/button.md +13 -0
- package/doc/input-checkbox.md +15 -0
- package/doc/input-number.md +15 -0
- package/doc/link.md +13 -0
- package/doc/pagination.md +13 -13
- package/doc/quote.md +13 -0
- package/doc/table-stateful.md +33 -16
- package/doc/table-stateless.md +31 -15
- package/package.json +23 -15
- package/vscode-custom-data.json +3 -20
- package/dist/cjs/ariaCurrentService-3051l6MI.js +0 -28
- package/dist/cjs/block-bem-BI7yfoFU.js +0 -18
- package/dist/cjs/bootstrap-DkgMbRSL.js +0 -33
- package/dist/cjs/clsx-Bm_HQUnh.js +0 -54
- package/dist/cjs/common-C-hcIfzh.js +0 -1755
- package/dist/cjs/component-BEzksV1U.js +0 -9300
- package/dist/cjs/component-BQUKg-qY.js +0 -53
- package/dist/cjs/component-BlAPlTfV.js +0 -20
- package/dist/cjs/component-DMfcX1br.js +0 -14
- package/dist/cjs/component-Dkx5Zyhq.js +0 -18
- package/dist/cjs/component-names-BMpML1sX.js +0 -113
- package/dist/cjs/input-CgTL2oH6.js +0 -20
- package/dist/cjs/kol-click-button.cjs.entry.js +0 -55
- package/dist/cjs/kol-skeleton.cjs.entry.js +0 -107
- package/dist/cjs/name-D4qpL1m-.js +0 -10
- package/dist/collection/components/click-button/component.js +0 -105
- package/dist/collection/components/skeleton/component.js +0 -215
- package/dist/collection/internal/functional-components/click-button/api.js +0 -7
- package/dist/collection/internal/functional-components/click-button/component.js +0 -9
- package/dist/collection/internal/functional-components/skeleton/api.js +0 -7
- package/dist/collection/internal/functional-components/skeleton/component.js +0 -20
- package/dist/collection/schema/props/table-header-cells.js +0 -36
- package/dist/components/aria-labelledby.js +0 -4
- package/dist/components/block-bem.js +0 -4
- package/dist/components/clsx.js +0 -4
- package/dist/components/href.js +0 -4
- package/dist/components/kol-click-button.d.ts +0 -11
- package/dist/components/kol-click-button.js +0 -4
- package/dist/components/kol-skeleton.d.ts +0 -11
- package/dist/components/kol-skeleton.js +0 -4
- package/dist/components/name.js +0 -4
- package/dist/components/props-from-config.js +0 -4
- package/dist/esm/ariaCurrentService-YoLNpD5S.js +0 -25
- package/dist/esm/block-bem-BpQSY04L.js +0 -16
- package/dist/esm/bootstrap-B9DtStuh.js +0 -28
- package/dist/esm/clsx-COFh-Vc8.js +0 -52
- package/dist/esm/common-OzsC_6kt.js +0 -1709
- package/dist/esm/component-Bc1n82Y8.js +0 -16
- package/dist/esm/component-CZZNha2e.js +0 -9295
- package/dist/esm/component-Cdnq5GYF.js +0 -18
- package/dist/esm/component-DLSlbWg8.js +0 -12
- package/dist/esm/component-DeMf195P.js +0 -48
- package/dist/esm/component-names-CrfBV37S.js +0 -111
- package/dist/esm/kol-click-button.entry.js +0 -53
- package/dist/esm/kol-skeleton.entry.js +0 -105
- package/dist/esm/label-with-expert-slot-CicRes-W.js +0 -12
- package/dist/esm/name-B2Yf3EpX.js +0 -8
- package/dist/esm/tooltip-open-tracking-D3tCiiGP.js +0 -18
- package/dist/kolibri/Heading-BVhjT9av.js +0 -4
- package/dist/kolibri/access-and-short-key-ijzCZfHm.js +0 -4
- package/dist/kolibri/api-D92_O-0H.js +0 -4
- package/dist/kolibri/app-globals-CBGjgNge.js +0 -4
- package/dist/kolibri/aria-labelledby-CLehu03h.js +0 -4
- package/dist/kolibri/ariaCurrentService-YoLNpD5S.js +0 -4
- package/dist/kolibri/base-BLBSJu_1.js +0 -4
- package/dist/kolibri/base-CHmdLgoO.js +0 -4
- package/dist/kolibri/base-DIcqHqMz.js +0 -4
- package/dist/kolibri/base-qvPPg-dn.js +0 -4
- package/dist/kolibri/base-web-component-CaAexWy_.js +0 -4
- package/dist/kolibri/base-web-component-DbagnM7m.js +0 -4
- package/dist/kolibri/base-web-component-XgI4wUyN.js +0 -4
- package/dist/kolibri/behavior-B08CXmI4.js +0 -4
- package/dist/kolibri/behavior-CwUUkdaP.js +0 -4
- package/dist/kolibri/behavior-DW7_5Wxp.js +0 -4
- package/dist/kolibri/bem-registry-CWN7_O1L.js +0 -4
- package/dist/kolibri/block-bem-BpQSY04L.js +0 -4
- package/dist/kolibri/bootstrap-B9DtStuh.js +0 -4
- package/dist/kolibri/clsx-COFh-Vc8.js +0 -4
- package/dist/kolibri/color-eAL9I7Wq.js +0 -4
- package/dist/kolibri/common-OzsC_6kt.js +0 -4
- package/dist/kolibri/component-8ALsFV4i.js +0 -4
- package/dist/kolibri/component-BTMWoACz.js +0 -4
- package/dist/kolibri/component-Bc1n82Y8.js +0 -4
- package/dist/kolibri/component-CZZNha2e.js +0 -4
- package/dist/kolibri/component-CdKSiR5P.js +0 -4
- package/dist/kolibri/component-Cdnq5GYF.js +0 -4
- package/dist/kolibri/component-D0mBOGjS.js +0 -4
- package/dist/kolibri/component-DBAicJ2u.js +0 -4
- package/dist/kolibri/component-DCw1ZAE5.js +0 -4
- package/dist/kolibri/component-DLSlbWg8.js +0 -4
- package/dist/kolibri/component-DeMf195P.js +0 -4
- package/dist/kolibri/component-nR5Bf9G5.js +0 -4
- package/dist/kolibri/component-names-CrfBV37S.js +0 -4
- package/dist/kolibri/contrast-D78VGPFR.js +0 -4
- package/dist/kolibri/controller-C3O9ohSP.js +0 -4
- package/dist/kolibri/dev.utils-wYkYn08d.js +0 -4
- package/dist/kolibri/devtools-DrBkkLdP.js +0 -4
- package/dist/kolibri/disabled-Cqhc40CU.js +0 -4
- package/dist/kolibri/element-focus-BIRmGg5W.js +0 -4
- package/dist/kolibri/element-interaction-sGYdEpmv.js +0 -4
- package/dist/kolibri/events-BIT-JUP2.js +0 -4
- package/dist/kolibri/field-control-Cs5VvsYo.js +0 -4
- package/dist/kolibri/group-uNo1CfbK.js +0 -4
- package/dist/kolibri/has-closer-B9NQY7BK.js +0 -4
- package/dist/kolibri/href-JqLbNBsW.js +0 -4
- package/dist/kolibri/i18n-Dl6Jjofb.js +0 -4
- package/dist/kolibri/i18n-DtLKn3Xt.js +0 -4
- package/dist/kolibri/id-CIYvVaNr.js +0 -4
- package/dist/kolibri/index-BKEJuyFi.js +0 -6
- package/dist/kolibri/input-Dja5Qioc.js +0 -4
- package/dist/kolibri/input-container-C2Am7LEP.js +0 -4
- package/dist/kolibri/item-C4AmpdVD.js +0 -4
- package/dist/kolibri/item-ConW1c81.js +0 -4
- package/dist/kolibri/item-D627ShRd.js +0 -4
- package/dist/kolibri/item-DIAFIFSy.js +0 -4
- package/dist/kolibri/item-pool-BOxAYePG.js +0 -4
- package/dist/kolibri/keyboard-Cnv7zP3N.js +0 -4
- package/dist/kolibri/kol-click-button.entry.js +0 -4
- package/dist/kolibri/kol-skeleton.entry.js +0 -4
- package/dist/kolibri/label-BRosRgdX.js +0 -4
- package/dist/kolibri/label-hints-Jn18RUT-.js +0 -4
- package/dist/kolibri/label-lang-segment-2_GnxjFp.js +0 -4
- package/dist/kolibri/label-with-expert-slot-CicRes-W.js +0 -4
- package/dist/kolibri/level-CA1s1_Mf.js +0 -4
- package/dist/kolibri/link-target-FX94oqMo.js +0 -4
- package/dist/kolibri/links-DwucTqcR.js +0 -4
- package/dist/kolibri/multiple-DqrZxybx.js +0 -4
- package/dist/kolibri/name-B2Yf3EpX.js +0 -4
- package/dist/kolibri/number-value-B-SJ1dRo.js +0 -4
- package/dist/kolibri/open-DRRv1KFK.js +0 -4
- package/dist/kolibri/open-items-cache-D-kml1h6.js +0 -4
- package/dist/kolibri/options-B0rBHetL.js +0 -4
- package/dist/kolibri/options-DCaUcfAu.js +0 -4
- package/dist/kolibri/orientation-XNOCaPwy.js +0 -4
- package/dist/kolibri/placeholder-BeLIzdJv.js +0 -4
- package/dist/kolibri/props-from-config-Ci0dILpz.js +0 -4
- package/dist/kolibri/read-only-Bby9r6ZX.js +0 -4
- package/dist/kolibri/required-hoaT7UmZ.js +0 -4
- package/dist/kolibri/resolve-props-BLZxWC3j.js +0 -4
- package/dist/kolibri/resolve-props-D2KiItuv.js +0 -4
- package/dist/kolibri/rows-B0x8CR7K.js +0 -4
- package/dist/kolibri/scroll-lock-Y2hf47KW.js +0 -4
- package/dist/kolibri/smart-button-CS_ZriPt.js +0 -4
- package/dist/kolibri/spell-check-DzgftyqL.js +0 -4
- package/dist/kolibri/src-DaGhmCL1.js +0 -4
- package/dist/kolibri/step-Bdj89bGO.js +0 -4
- package/dist/kolibri/suggestions-DuqzGDve.js +0 -4
- package/dist/kolibri/suggestions-Dy1X-Pc3.js +0 -4
- package/dist/kolibri/toggle-handler-BRLmxe1J.js +0 -4
- package/dist/kolibri/tooltip-open-tracking-D3tCiiGP.js +0 -4
- package/dist/kolibri/unique-nav-labels-h2KOu5Qy.js +0 -4
- package/dist/kolibri/unit-BUhhJbhT.js +0 -4
- package/dist/kolibri/validators-BVM40IEr.js +0 -4
- package/dist/kolibri/value-string-e9pwLcS-.js +0 -4
- package/dist/kolibri/width-CgYY17tL.js +0 -4
- package/dist/types/components/click-button/component.d.ts +0 -15
- package/dist/types/components/skeleton/component.d.ts +0 -26
- package/dist/types/internal/functional-components/click-button/api.d.ts +0 -15
- package/dist/types/internal/functional-components/click-button/component.d.ts +0 -4
- package/dist/types/internal/functional-components/skeleton/api.d.ts +0 -29
- package/dist/types/internal/functional-components/skeleton/component.d.ts +0 -4
- package/dist/types/schema/props/table-header-cells.d.ts +0 -11
- package/doc/skeleton.md +0 -54
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
5
|
-
import './
|
|
6
|
-
import { a as accessKeyProp, b as ariaControlsProp, c as ariaDescriptionProp, f as ariaExpandedProp, g as customClassProp, h as hideLabelProp, s as spanIconsProp, i as inlineProp, l as linkRoleProp, d as shortKeyProp, e as tooltipAlignProp, v as variantProp, t as tabIndexProp } from './component-
|
|
7
|
-
import { l as linkPropsConfig, a as ariaCurrentValueProp, c as ariaOwnsProp, d as downloadProp, b as linkCallbacksProp } from './component-
|
|
8
|
-
import { d as disabledProp } from './disabled-
|
|
9
|
-
import { h as hrefProp } from './href-
|
|
10
|
-
import { d as buildDefaultPropsFromConfig } from './props-from-config-
|
|
11
|
-
import { l as labelWithExpertSlotProp } from './label-with-expert-slot-
|
|
12
|
-
import { l as linkTargetProp } from './link-target-
|
|
4
|
+
import './index-Bsx5X6jK.js';
|
|
5
|
+
import { v as validateAccessAndShortKey } from './access-and-short-key-CW0oxi_q.js';
|
|
6
|
+
import { a as accessKeyProp, b as ariaControlsProp, c as ariaDescriptionProp, f as ariaExpandedProp, g as customClassProp, h as hideLabelProp, s as spanIconsProp, i as inlineProp, l as linkRoleProp, d as shortKeyProp, e as tooltipAlignProp, v as variantProp, t as tabIndexProp } from './component-BPL1Mikq.js';
|
|
7
|
+
import { l as linkPropsConfig, a as ariaCurrentValueProp, c as ariaOwnsProp, d as downloadProp, b as linkCallbacksProp } from './component-S6ib3O8N.js';
|
|
8
|
+
import { d as disabledProp } from './disabled-Cu0e92-b.js';
|
|
9
|
+
import { h as hrefProp } from './href-DQbHtp6T.js';
|
|
10
|
+
import { d as buildDefaultPropsFromConfig } from './props-from-config-DVxNB2Lx.js';
|
|
11
|
+
import { l as labelWithExpertSlotProp } from './label-with-expert-slot-DXi27J4o.js';
|
|
12
|
+
import { l as linkTargetProp } from './link-target-C9qzQAQg.js';
|
|
13
13
|
|
|
14
14
|
const LINK_ELEMENT_DEFAULTS = {
|
|
15
15
|
disabled: false,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
4
|
+
import './index-Bsx5X6jK.js';
|
|
5
|
+
import { c as createPropDefinition, D as normalizeNumber } from './props-from-config-DVxNB2Lx.js';
|
|
5
6
|
|
|
6
7
|
const rowsProp = createPropDefinition('rows', undefined, normalizeNumber, (value) => value >= 1);
|
|
7
8
|
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import { h } from './index-
|
|
5
|
-
import { b as bem } from './bem-registry-
|
|
6
|
-
import {
|
|
4
|
+
import { h } from './index-Bsx5X6jK.js';
|
|
5
|
+
import { b as bem } from './bem-registry-CK2s_XZ4.js';
|
|
6
|
+
import { e as clsx, B as BemRootNodeFC } from './props-from-config-DVxNB2Lx.js';
|
|
7
7
|
|
|
8
8
|
const dialogBem = bem.forBlock('kol-dialog');
|
|
9
9
|
const modalBem = bem.forBlock('kol-modal');
|
|
10
|
-
const dialogBlockClass = (variant) => clsx(dialogBem(), modalBem(), dialogBem(variant), modalBem(variant));
|
|
11
10
|
const DialogFC = (props, children) => {
|
|
12
|
-
const {
|
|
13
|
-
|
|
11
|
+
const { class: hostClass, elementClass, handleCancel, handleClose, label, labelledBy, modal, refDialog, variant, width } = props;
|
|
12
|
+
if (variant !== undefined) {
|
|
13
|
+
return (h(BemRootNodeFC, { component: "dialog", "aria-label": labelledBy ? undefined : label, "aria-labelledby": labelledBy, "aria-modal": modal ? 'true' : 'false', block: "kol-dialog", class: clsx(modalBem(), dialogBem(variant), modalBem(variant), hostClass), onCancel: handleCancel, onClose: handleClose, ref: refDialog, style: width ? { width } : undefined }, children));
|
|
14
|
+
}
|
|
15
|
+
return (h("dialog", { "aria-label": labelledBy ? undefined : label, "aria-labelledby": labelledBy, "aria-modal": modal ? 'true' : 'false', class: clsx(elementClass, hostClass), onCancel: handleCancel, onClose: handleClose, ref: refDialog, style: width ? { width } : undefined }, children));
|
|
14
16
|
};
|
|
15
17
|
|
|
16
18
|
const SCROLL_LOCK_OWNERS = new Set();
|
|
@@ -62,4 +64,4 @@ function unlockScroll(owner) {
|
|
|
62
64
|
}
|
|
63
65
|
}
|
|
64
66
|
|
|
65
|
-
export { DialogFC as D,
|
|
67
|
+
export { DialogFC as D, lockScroll as l, unlockScroll as u };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import './index-Bsx5X6jK.js';
|
|
5
|
+
|
|
6
|
+
const getSharedState = (key, create) => {
|
|
7
|
+
var _a, _b;
|
|
8
|
+
var _c;
|
|
9
|
+
const globals = ((_a = (_c = globalThis).KoliBriGlobals) !== null && _a !== void 0 ? _a : (_c.KoliBriGlobals = {}));
|
|
10
|
+
(_b = globals[key]) !== null && _b !== void 0 ? _b : (globals[key] = create());
|
|
11
|
+
return globals[key];
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { getSharedState as g };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
5
|
-
import { c as createPropDefinition } from './props-from-config-
|
|
4
|
+
import { j as parseJson } from './index-Bsx5X6jK.js';
|
|
5
|
+
import { c as createPropDefinition } from './props-from-config-DVxNB2Lx.js';
|
|
6
6
|
|
|
7
7
|
function normalizeSmartButton(value) {
|
|
8
8
|
const parsed = typeof value === 'string' ? parseJson(value) : value;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
4
|
+
import './index-Bsx5X6jK.js';
|
|
5
|
+
import { c as createPropDefinition, n as normalizeBoolean } from './props-from-config-DVxNB2Lx.js';
|
|
5
6
|
|
|
6
7
|
const spellCheckProp = createPropDefinition('spellCheck', undefined, normalizeBoolean);
|
|
7
8
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
4
|
+
import './index-Bsx5X6jK.js';
|
|
5
|
+
import { c as createPropDefinition, b as normalizeString } from './props-from-config-DVxNB2Lx.js';
|
|
5
6
|
|
|
6
7
|
const srcProp = createPropDefinition('src', '', normalizeString);
|
|
7
8
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
4
|
+
import './index-Bsx5X6jK.js';
|
|
5
|
+
import { c as createPropDefinition, C as normalizeInputNumber } from './props-from-config-DVxNB2Lx.js';
|
|
5
6
|
|
|
6
7
|
const stepProp = createPropDefinition('step', undefined, normalizeInputNumber);
|
|
7
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
5
|
-
import { c as createPropDefinition } from './props-from-config-
|
|
4
|
+
import { C as a11yHint, j as parseJson } from './index-Bsx5X6jK.js';
|
|
5
|
+
import { c as createPropDefinition } from './props-from-config-DVxNB2Lx.js';
|
|
6
6
|
|
|
7
7
|
function normalizeSuggestions(value) {
|
|
8
8
|
const parsed = typeof value === 'string' ? parseJson(value) : value;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
4
|
+
import { h } from './index-Bsx5X6jK.js';
|
|
5
|
+
import { c as createPropDefinition, b as normalizeString } from './props-from-config-DVxNB2Lx.js';
|
|
5
6
|
import { a as __rest } from './tslib.es6-QNbPBOk5.js';
|
|
6
|
-
import {
|
|
7
|
-
import { a as createRelatedUniqueId } from './dev.utils-wYkYn08d.js';
|
|
7
|
+
import { a as createRelatedUniqueId } from './dev.utils--eVyQ4zr.js';
|
|
8
8
|
|
|
9
9
|
const autoCompleteProp = createPropDefinition('autoComplete', 'off', normalizeString, (value) => value.length > 0);
|
|
10
10
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance } from './index-
|
|
5
|
-
import './common-OzsC_6kt.js';
|
|
4
|
+
import { r as registerInstance } from './index-Bsx5X6jK.js';
|
|
6
5
|
|
|
7
6
|
const TestComponent = class {
|
|
8
7
|
constructor(hostRef) {
|
|
9
|
-
|
|
8
|
+
if (new.target === TestComponent)
|
|
9
|
+
registerInstance(this, hostRef);
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import { n } from './index-Bsx5X6jK.js';
|
|
5
|
+
import { g as getSharedState } from './shared-state-sWI1upS8.js';
|
|
6
|
+
|
|
7
|
+
const shareThemeStore = () => {
|
|
8
|
+
n.A11yUi = getSharedState('themes', () => n.A11yUi);
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { shareThemeStore as s };
|
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import './
|
|
5
|
-
import { l as levelProp } from './level-
|
|
6
|
-
import { a as createCallbacksPropDefinition } from './props-from-config-
|
|
7
|
-
import { d as disabledProp } from './disabled-
|
|
8
|
-
import { l as labelLangSegmentsProp } from './label-lang-segment-
|
|
9
|
-
import { o as openProp } from './open-
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { g as getBlockBem } from './block-bem-BpQSY04L.js';
|
|
15
|
-
import { S as SpanFC } from './component-CZZNha2e.js';
|
|
16
|
-
import { d as dispatchDomEvent, K as KolEvent } from './events-BIT-JUP2.js';
|
|
4
|
+
import { h } from './index-Bsx5X6jK.js';
|
|
5
|
+
import { l as levelProp } from './level-BV6M_zmM.js';
|
|
6
|
+
import { a as createCallbacksPropDefinition, g as getBlockBem, e as clsx, B as BemRootNodeFC } from './props-from-config-DVxNB2Lx.js';
|
|
7
|
+
import { d as disabledProp } from './disabled-Cu0e92-b.js';
|
|
8
|
+
import { l as labelLangSegmentsProp } from './label-lang-segment-B8ayoizG.js';
|
|
9
|
+
import { o as openProp } from './open-DaO7wXMr.js';
|
|
10
|
+
import { K as KolHeadingFc } from './Heading-Cynkalqu.js';
|
|
11
|
+
import { p as preventFocus } from './element-interaction-C2pgnQ6t.js';
|
|
12
|
+
import { S as SpanFC } from './component-DTV1Kuf1.js';
|
|
13
|
+
import { d as dispatchDomEvent, K as KolEvent } from './events-B2UzbUT7.js';
|
|
17
14
|
|
|
18
15
|
const collapsibleCallbacksProp = createCallbacksPropDefinition();
|
|
19
16
|
|
|
@@ -24,10 +21,10 @@ const collapsiblePropsConfig = {
|
|
|
24
21
|
|
|
25
22
|
const CollapsibleFC = ({ block, contentClass, controlId, detailsOpen, disabled, expanded, handleToggle, headingId, icons, label, level, refHeadingButton, transitionMs }, children) => {
|
|
26
23
|
const blockBem = getBlockBem(block);
|
|
27
|
-
return (h("details",
|
|
24
|
+
return (h(BemRootNodeFC, { component: "details", block: block, modifiers: {
|
|
28
25
|
disabled: disabled === true,
|
|
29
26
|
open: expanded === true,
|
|
30
|
-
}
|
|
27
|
+
}, open: detailsOpen === true, style: { '--collapsible-transition-duration': `${transitionMs}ms` } }, h("summary", { "aria-controls": controlId, "aria-disabled": disabled === true ? 'true' : undefined, class: blockBem('heading'), id: headingId, onClick: handleToggle, onMouseDown: disabled === true ? preventFocus : undefined, ref: refHeadingButton, tabIndex: disabled === true ? -1 : undefined }, h(KolHeadingFc, { level: level !== null && level !== void 0 ? level : 0 }, h(SpanFC, { icons: icons, label: label }))), h("div", { class: blockBem('wrapper') }, h("div", { class: blockBem('wrapper-animation') }, h("div", { "aria-hidden": expanded === false ? 'true' : undefined, "aria-labelledby": headingId, class: clsx(blockBem('content'), contentClass), id: controlId, role: "region" }, children)))));
|
|
31
28
|
};
|
|
32
29
|
|
|
33
30
|
const DEFAULT_COLLAPSIBLE_TRANSITION_MS = 300;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import { g as getSharedState } from './shared-state-sWI1upS8.js';
|
|
5
|
+
import './index-Bsx5X6jK.js';
|
|
6
|
+
|
|
7
|
+
const shared = getSharedState('tooltips', () => ({ open: 0 }));
|
|
8
|
+
const tooltipOpened = () => {
|
|
9
|
+
shared.open++;
|
|
10
|
+
};
|
|
11
|
+
const tooltipClosed = () => {
|
|
12
|
+
shared.open = Math.max(0, shared.open - 1);
|
|
13
|
+
};
|
|
14
|
+
const handleCancelOverlay = (event) => {
|
|
15
|
+
if (shared.open > 0) {
|
|
16
|
+
event.preventDefault();
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
const isTooltipOpen = () => shared.open > 0;
|
|
20
|
+
|
|
21
|
+
export { tooltipOpened as a, handleCancelOverlay as h, isTooltipOpen as i, tooltipClosed as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import { L as Log } from './
|
|
5
|
-
import { t as trimLabel } from './props-from-config-
|
|
4
|
+
import { L as Log } from './index-Bsx5X6jK.js';
|
|
5
|
+
import { t as trimLabel } from './props-from-config-DVxNB2Lx.js';
|
|
6
6
|
|
|
7
7
|
const UNIQUE_LABELS = new Set();
|
|
8
8
|
function addNavLabel(ariaLabel) {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
4
|
+
import './index-Bsx5X6jK.js';
|
|
5
|
+
import { c as createPropDefinition, D as normalizeNumber, b as normalizeString } from './props-from-config-DVxNB2Lx.js';
|
|
5
6
|
|
|
6
7
|
const maxProp = createPropDefinition('max', 100, normalizeNumber, (v) => v > 0);
|
|
7
8
|
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
4
|
+
import './index-Bsx5X6jK.js';
|
|
5
|
+
import { j as isValidLabelSegments, z as isValidLabelString } from './props-from-config-DVxNB2Lx.js';
|
|
5
6
|
|
|
6
7
|
const SAFE_CLASS_NAME_RE = /^[a-zA-Z][a-zA-Z0-9_-]{0,60}$/;
|
|
7
8
|
const isSafeClassName = (value) => typeof value === 'string' && SAFE_CLASS_NAME_RE.test(value);
|
|
8
9
|
const isValidLabel = isValidLabelString;
|
|
9
10
|
const isValidLabelWithExpertSlot = (value) => value === '' || isValidLabelSegments(value);
|
|
11
|
+
const isValidLabelDecorative = (value) => value === '' || isValidLabel(value);
|
|
10
12
|
|
|
11
|
-
export {
|
|
13
|
+
export { isSafeClassName as a, isValidLabelWithExpertSlot as b, isValidLabel as c, isValidLabelDecorative as i };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
4
|
+
import './index-Bsx5X6jK.js';
|
|
5
|
+
import { c as createPropDefinition, b as normalizeString } from './props-from-config-DVxNB2Lx.js';
|
|
5
6
|
|
|
6
7
|
const stringValueProp = createPropDefinition('value', undefined, normalizeString);
|
|
7
8
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
4
|
+
import './index-Bsx5X6jK.js';
|
|
5
|
+
import { c as createPropDefinition, b as normalizeString } from './props-from-config-DVxNB2Lx.js';
|
|
5
6
|
|
|
6
7
|
function normalizeDialogCallbacks(value) {
|
|
7
8
|
if (typeof value !== 'object' || value === null) {
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{h as e}from"./index-Bsx5X6jK.js";import{a as s}from"./tslib.es6-QNbPBOk5.js";import{e as l}from"./props-from-config-DVxNB2Lx.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,j=s(o,["secondaryHeadline","level","class","HeadingGroupProps","SecondaryHeadlineProps"]);const g=Object.assign({level:i},j);if(!t)return e(r,Object.assign({class:l(d,"kol-headline--single")},g),c);const{class:h}=p,b=s(p,["class"]),k=Object.assign({class:l("kol-heading-group",h)},b);return e("hgroup",Object.assign({},k),e(r,Object.assign({class:l(d,"kol-headline--group","kol-headline--primary")},g),c),e(n,Object.assign({},u),t))};export{c as K,o as g}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{j as e,x as i,V as t,h as o}from"./index-Bsx5X6jK.js";import{S as s,b as l,s as a}from"./component-DTV1Kuf1.js";import{r}from"./aria-labelledby-DQov9uSv.js";import{c as n,b as d,n as h,a as c,e as p,B as u,t as b}from"./props-from-config-DVxNB2Lx.js";import{a as m}from"./tslib.es6-QNbPBOk5.js";import{a as v,c as f,n as y}from"./dev.utils--eVyQ4zr.js";import{K as g,d as j}from"./events-B2UzbUT7.js";import{d as B}from"./disabled-Cu0e92-b.js";import{T as _,k as L,h as T,e as O}from"./component-BPL1Mikq.js";import{l as D}from"./label-with-expert-slot-DXi27J4o.js";import{n as x}from"./component-XbTjo2nm.js";import{B as F}from"./base-web-component-D16FuHFf.js";import{c as K}from"./item-KqTsA-5a.js";import{F as N}from"./behavior-DnTJtQBK.js";import{c as C}from"./item-Cw_jdgc6.js";import{T as k}from"./behavior-DJQFXyfi.js";import{t as P}from"./i18n-Cf0DhAke.js";import{b as w}from"./bem-registry-CK2s_XZ4.js";import{P as A}from"./component-CiTw4ODP.js";import{A as H}from"./component-C0ijstyp.js";function M(e,i){return Boolean(e)&&!0===i}function I(e){var i;return"string"==typeof e?"error":null!==(i=null==e?void 0:e._type)&&void 0!==i?i:"error"}const S=n("ariaDetails","",d),q=n("hideMsg",!1,h),E=n("hint","",d),z=n("infoPopover",void 0,(function(e){if("object"==typeof e&&null!==e)return e;throw new Error("Invalid info popover: "+typeof e)})),Q=c(),V=n("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))})),X=n("touched",!1,h),$=e=>{var{id:i,class:t,hint:s,baseClassName:l="kol-form-field"}=e,a=m(e,["id","class","hint","baseClassName"]);return s?o("span",Object.assign({class:p(`${l}__hint`,t),id:v(i||"","hint")},a),s):null},J=e=>{var{component:i="label",id:t,baseClassName:a="kol-form-field",class:r,accessKey:n,shortKey:d,label:h,hideLabel:c,hasExpertSlot:u,omitId:b,showBadge:f=!0,readOnly:y,infoPopover:g}=e,j=m(e,["component","id","baseClassName","class","accessKey","shortKey","label","hideLabel","hasExpertSlot","omitId","showBadge","readOnly","infoPopover"]);const B=!u&&c,_=!1===f?void 0:l(n,d);return o(i,Object.assign({},j,{class:p(`${a}__label`,r),id:B||b?void 0:v(t,"label"),hidden:B,htmlFor:"legend"===i?void 0:t}),o(s,{class:`${a}__label-text`,label:u?"":null!=h?h:"",badgeText:_},o("slot",{name:"expert"})),!u&&y&&o("span",{class:`${a}__label__read-only`,"aria-hidden":"true"},"(",P("kol-readonly"),")"),!u&&g&&o("span",null,o(A,Object.assign({},g.popoverButton),o("div",{class:"kol-popover-button__popover--styled"},g.content))))},U=i=>{var t,s,{alert:l,hideMsg:a,msg:r,id:n,class:d}=i,h=m(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(H,Object.assign({alert:!a&&(null!==(t=null==c?void 0:c._alert)&&void 0!==t?t:!0===l),class:p("kol-form-field__msg",a&&"visually-hidden",d),closerAriaDescriptionId:y(),handleCloserClick:()=>{},hasCloser:!1,headingId:f("alert-heading"),id:v(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)},R=w.forBlock("kol-form-field"),Z=({hideLabel:e,label:i,renderNoTooltip:t})=>!t&&!a(i)&&!0===e,G=e=>{const i=I(e);return{[i]:!0,[`msg-type-${i}`]:!0}},W=(e,i)=>{const{renderNoLabel:t,renderNoTooltip:s,renderNoHint:r,id:n,required:d,alert:h,disabled:c,class:b,msg:f,hideMsg:y,hideLabel:g,label:j,infoPopover:B,hint:T,accessKey:O,shortKey:D,counter:x,readOnly:F,touched:K,maxLength:N,ariaDescribedBy:C,showBadge:k,tooltipAlign:w,variant:A,component:H="div",orientation:I,refInput:S,refTooltip:q}=e,E=m(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"]),z=a(j),Q=M(f,K),V=l(O,D),X=Z({hideLabel:g,label:j,renderNoTooltip:s}),W="fieldset"===H;return o(u,Object.assign({component:H,block:"kol-form-field",modifiers:Object.assign({disabled:Boolean(c),required:Boolean(d),touched:Boolean(K),"hide-label":Boolean(g),"read-only":Boolean(F),"hidden-msg":Boolean(y)},Q?G(f):{}),class:p(A&&L(A,"form-field"),b),disabled:!(!W||!c)||void 0,"aria-describedby":C},E),!t&&o(J,{component:W?"legend":"label",class:W?"kol-form-field__label--legend":void 0,id:n,hasExpertSlot:z,hideLabel:g,label:j,accessKey:O,shortKey:D,readOnly:F,showBadge:k,infoPopover:B}),o("div",{class:R("input",{"orientation-horizontal":"horizontal"===I,"orientation-vertical":"vertical"===I}),ref:S},i,X&&o("div",{class:R("tooltip")},o(_,{badgeText:V||"",label:j,align:w,id:v(n,"label"),refFloating:q}))),x&&!("soft"===x.maxLengthBehavior&&"number"!=typeof x.maxLength)&&o("div",{class:R("counter")},o("span",{"aria-hidden":"true",class:R("counter"),ref:x.visualRef}),o("span",{"aria-live":"polite",class:"visually-hidden",id:v(n,"counter"),ref:x.ariaRef})),Q&&o(U,{id:n,alert:h,hideMsg:y,msg:f}),!r&&o($,{id:n,hint:T}),"number"==typeof N&&!x&&o("span",{id:v(n,"character-limit-hint"),class:"visually-hidden"},P("kol-character-limit-hint",{placeholders:{limit:String(N)}})))};class Y extends F{constructor(){super(...arguments),this.tooltipBehavior=new k(F.stateLess),this.smartButton=K((()=>this.host)),this.infoPopover=C({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(g.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(g.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(g.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(g.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(g.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 N(F.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=m(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=r(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){B.apply(e,(e=>this.shared.setRenderProp("disabled",e)))}applyHideLabel(e){T.apply(e,(e=>this.shared.setRenderProp("hideLabel",e)))}applyHideMsg(e){q.apply(e,(e=>this.shared.setRenderProp("hideMsg",e)))}applyHint(e){E.apply(e,(e=>this.shared.setRenderProp("hint",e)))}applyInfoPopover(e){z.apply(e,(e=>this.shared.setRenderProp("infoPopover",e)))}applyLabel(e){D.apply(e,(e=>this.shared.setRenderProp("label",e)),this.isRequired("label"))}applyMsg(e){V.apply(e,(e=>this.shared.setRenderProp("msg",e)))}applyName(e){x.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){O.apply(null!=e?e:"top",(e=>this.shared.setRenderProp("tooltipAlign",e)))}applyTouched(e){X.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&&j(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(g.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"===I(i)&&l&&!0===o,r="string"==typeof t&&t.length>0,n=[];return l&&!0===o&&n.push(v(e,"msg")),r&&n.push(v(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 Z({hideLabel:e.getRenderProp("hideLabel"),label:b(e.getRenderProp("label"))})}getLabelTooltipRefs(){return{refInput:this.setInputRef,refTooltip:this.setTooltipRef}}getFormFieldProps({class:e,accessKey:i,shortKey:t,variant:o,counter:s,maxLength:a,readOnly:r,renderNoLabel:n,renderNoTooltip:d,required:h}){const c=this.shared,p=c.getState("id"),u=c.getRenderProp("label"),b=c.getRenderProp("tooltipAlign");return this.isTooltipShown()?(this.tooltipBehavior.watchAlign(b),this.tooltipBehavior.watchBadgeText(l(i,t)||""),this.tooltipBehavior.watchId(v(p,"label")),this.tooltipBehavior.watchLabel(u)):this.tooltipBehavior.destroy(),{id:p,disabled:c.getRenderProp("disabled"),msg:c.getRenderProp("msg"),hint:c.getRenderProp("hint"),label:u,hideLabel:c.getRenderProp("hideLabel"),hideMsg:c.getRenderProp("hideMsg"),touched:c.getRenderProp("touched"),showBadge:Boolean(i)||Boolean(t),required:h,readOnly:r,accessKey:i,shortKey:t,maxLength:a,counter:s,variant:o,class:e,tooltipAlign:b,alert:this.showAsAlert(),infoPopover:this.getInfoPopover(),renderNoLabel:n,renderNoTooltip:d,refInput:d?void 0:this.setInputRef,refTooltip:this.setTooltipRef}}}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?b(t):void 0}}const ie={required:[D],optional:[S,B,T,q,E,z,Q,V,x,O,X]};export{Y as B,W as F,$ as a,J as b,ee as c,ie as f,I as g,M as i}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{L as o,a as t,d as s,w as e}from"./index-Bsx5X6jK.js";import{s as a}from"./theme-store-CEu5d_EK.js";const r=(()=>{a(),t((o=>{try{o.shadowRoot instanceof ShadowRoot&&s(o,e(o))}catch(o){}return"default"})),import("./devtools-CosbyboJ.js").then((o=>{"object"==typeof o&&null!==o&&"function"==typeof o.initialize&&o.initialize()})).catch((t=>{o.error(t)}))})||(()=>{});export{r as g}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import"./index-Bsx5X6jK.js";const o=(o,n)=>{const e=(null!=n?n:"").trim().split(/\s+/).filter(Boolean);if(!e.length)return[];const t=null==o?void 0:o.getRootNode();return e.map((o=>"undefined"!=typeof Document&&t instanceof Document?t.getElementById(o):"undefined"!=typeof ShadowRoot&&t instanceof ShadowRoot?t.querySelector(`#${(o=>{var n;return(null===(n=globalThis.CSS)||void 0===n?void 0:n.escape)?globalThis.CSS.escape(o):o.replace(/[^a-zA-Z0-9_-]/g,"\\$&")})(o)}`):"undefined"!=typeof document?document.getElementById(o):null)).filter((o=>!!o))};export{o as r}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{g as s}from"./shared-state-sWI1upS8.js";import"./index-Bsx5X6jK.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}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{i,h as s}from"./index-Bsx5X6jK.js";import{B as t}from"./base-web-component-D16FuHFf.js";import{l as a,a as r,c as e,d as o,b as h,L as n}from"./component-S6ib3O8N.js";import{T as l}from"./behavior-DJQFXyfi.js";import{a as p,b as d,c,f as b,g as y,h as f,s as m,i as u,l as C,d as x,t as g,e as L,v as j}from"./component-BPL1Mikq.js";import{d as A}from"./disabled-Cu0e92-b.js";import{h as v}from"./href-DQbHtp6T.js";import"./props-from-config-DVxNB2Lx.js";import{l as D}from"./label-with-expert-slot-DXi27J4o.js";import{l as w}from"./link-target-C9qzQAQg.js";import{c as I}from"./element-interaction-C2pgnQ6t.js";import{d as T,K}from"./events-B2UzbUT7.js";import{o as B}from"./ariaCurrentService-B9TgWLEw.js";class k extends t{constructor(){super(...arguments),this.ctaRef=I((()=>!0===this.getRenderProp("disabled"))),this.tooltipBehavior=new l(this.stateAccess),this.propsConfig=a,this.handleAnchorClick=s=>{if(this.tooltipBehavior.hideTooltip(),!0===this.getRenderProp("disabled"))return void s.preventDefault();const t=this.getRenderProp("href"),a=this.getRenderProp("on");"function"==typeof(null==a?void 0:a.onClick)&&(i(s,this.ctaRef.el),a.onClick(s,t)),this.host&&T(this.host,K.click,t)},this.setAnchorRef=i=>{this.ctaRef(i)}}unsetLinkTabIndex(){this.unsetRenderProp("tabIndex")}initLinkBehaviors(){this.unsubscribeOnLocationChange=B((i=>{const s=this.getRenderProp("href"),t=this.getRenderProp("ariaCurrentValue"),a=i===s?t:"";this.getState("ariaCurrent")!==a&&this.setState("ariaCurrent",a)})),this.tooltipBehavior.componentWillLoad({label:this.getTooltipLabel(),align:this.getRenderProp("tooltipAlign")})}syncTooltipListeners(){this.ctaRef.el&&this.tooltipBehavior.syncListeners(void 0,this.ctaRef.el,!0)}destroyLinkBehaviors(){this.unsubscribeOnLocationChange&&(this.unsubscribeOnLocationChange(),this.unsubscribeOnLocationChange=void 0),this.tooltipBehavior.destroy()}getTooltipLabel(){const i=this.getRenderProp("label");if("string"==typeof i&&i.length>0)return i;const s=this.getRenderProp("href");return"string"==typeof s?s:""}applyAccessKey(i){p.apply(i,(i=>this.setRenderProp("accessKey",i)))}applyAriaControls(i){d.apply(i,(i=>this.setRenderProp("ariaControls",i)))}applyAriaCurrentValue(i){r.apply(i,(i=>this.setRenderProp("ariaCurrentValue",i)))}applyAriaDescription(i){c.apply(i,(i=>this.setRenderProp("ariaDescription",i)))}applyAriaExpanded(i){b.apply(i,(i=>this.setRenderProp("ariaExpanded",i)))}applyAriaOwns(i){e.apply(i,(i=>this.setRenderProp("ariaOwns",i)))}applyCustomClass(i){y.apply(i,(i=>this.setRenderProp("customClass",i)))}applyDisabled(i){A.apply(i,(i=>this.setRenderProp("disabled",i)))}applyDownload(i){o.apply(i,(i=>this.setRenderProp("download",i)))}applyHideLabel(i){f.apply(i,(i=>this.setRenderProp("hideLabel",i)))}applyHref(i){v.apply(i,(i=>this.setRenderProp("href",i)),this.isRequired("href"))}applyIcons(i){m.apply(i,(i=>this.setRenderProp("icons",i)))}applyInline(i){u.apply(i,(i=>this.setRenderProp("inline",i)))}applyLabel(i){D.apply(i,(s=>{this.setRenderProp("label",s),this.setState("expertSlot",""===i),this.tooltipBehavior.watchLabel(this.getTooltipLabel())}),this.isRequired("label"))}applyOn(i){h.apply(i,(i=>this.setRenderProp("on",i)))}applyRole(i){C.apply(i,(i=>this.setRenderProp("role",i)))}applyShortKey(i){x.apply(i,(i=>this.setRenderProp("shortKey",i)))}applyTabIndex(i){"number"==typeof i?g.apply(i,(i=>this.setRenderProp("tabIndex",i))):this.unsetRenderProp("tabIndex")}applyTarget(i){w.apply(i,(i=>this.setRenderProp("target",i)))}applyTooltipAlign(i){L.apply(i,(i=>{this.setRenderProp("tooltipAlign",i),this.tooltipBehavior.watchAlign(i)}))}applyVariant(i){j.apply(i,(i=>this.setRenderProp("variant",i)))}renderLinkFC(){return s(n,{accessKey:this.getRenderProp("accessKey"),ariaControls:this.getRenderProp("ariaControls"),ariaCurrent:this.getState("ariaCurrent"),ariaCurrentValue:this.getRenderProp("ariaCurrentValue"),ariaDescription:this.getRenderProp("ariaDescription"),ariaDescriptionId:this.getState("ariaDescriptionId"),ariaExpanded:this.getRenderProp("ariaExpanded"),ariaOwns:this.getRenderProp("ariaOwns"),customClass:this.getRenderProp("customClass"),disabled:this.getRenderProp("disabled"),download:this.getRenderProp("download"),handleAnchorClick:this.handleAnchorClick,hideLabel:this.getRenderProp("hideLabel"),href:this.getRenderProp("href"),icons:this.getRenderProp("icons"),inline:this.getRenderProp("inline"),label:this.getRenderProp("label"),on:this.getRenderProp("on"),refAnchor:this.setAnchorRef,refTooltip:this.tooltipBehavior.setTooltipElementRef,role:this.getRenderProp("role"),shortKey:this.getRenderProp("shortKey"),tabIndex:this.getRenderProp("tabIndex"),target:this.getRenderProp("target"),tooltipAlign:this.getRenderProp("tooltipAlign"),variant:this.getRenderProp("variant"),expertSlot:this.getState("expertSlot")})}}export{k as B}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{h as i}from"./index-Bsx5X6jK.js";import{B as s}from"./base-web-component-D16FuHFf.js";import{r as t,C as o}from"./component-C58IwTEf.js";import{l}from"./level-BV6M_zmM.js";import{d as h,w as a}from"./width-D5-Licpp.js";import{v as e,t as r}from"./props-from-config-DVxNB2Lx.js";import{l as n}from"./label-lang-segment-B8ayoizG.js";import{u as d,l as p,D as m}from"./scroll-lock-CF_Z7MzO.js";import{T as v}from"./behavior-DJQFXyfi.js";import{c}from"./element-interaction-C2pgnQ6t.js";import{d as u,K as f}from"./events-B2UzbUT7.js";import{h as b}from"./tooltip-open-tracking-DXhnfmA2.js";const C={required:[n],optional:[h,l,e,a]};class g extends s{constructor(){super(...arguments),this.dialogRef=c(),this.cardCloseButtonRef=c(),this.cardCloseTooltipBehavior=new v(this.stateAccess),this.propsConfig=C,this.handleCancel=i=>{var s,t;b(i),i.defaultPrevented||(null===(t=(s=this.getRenderProp("on")).onCancel)||void 0===t||t.call(s,i),i.defaultPrevented||this.host&&!u(this.host,f.cancel)&&i.preventDefault())},this.handleClose=i=>{var s,t,o,l;i.target===this.dialogRef.el&&(d(this),null===(t=(s=this.getRenderProp("on")).onClose)||void 0===t||t.call(s),null===(l=(o=this.getRenderProp("on")).onToggle)||void 0===l||l.call(o,!1),this.host&&(u(this.host,f.close),u(this.host,f.toggle)))},this.handleCardClose=()=>{this.cardCloseTooltipBehavior.hideTooltip(),this.closeDialog(),this.host&&u(this.host,f.close)}}initCardCloseButton(){this.cardCloseButtonProps=t(this.host),this.cardCloseTooltipBehavior.componentWillLoad({label:this.cardCloseButtonProps.label,align:this.cardCloseButtonProps.tooltipAlign})}syncCardCloseTooltipListeners(){this.cardCloseButtonRef.el&&this.cardCloseTooltipBehavior.syncListeners(void 0,this.cardCloseButtonRef.el,!0)}teardownDialog(){this.closeDialog(),d(this),this.cardCloseTooltipBehavior.destroy()}applyLabel(i){n.apply(i,(i=>this.setRenderProp("label",i)),this.isRequired("label"))}applyLevel(i){l.apply(i,(i=>this.setRenderProp("level",i)))}applyOn(i){h.apply(i,(i=>this.setRenderProp("on",i)))}applyVariant(i){e.apply(i,(i=>this.setRenderProp("variant",i)))}applyWidth(i){a.apply(i,(i=>this.setRenderProp("width",i)))}showDialog(i){var s,t,o,l;const h=this.dialogRef.el;(null==h?void 0:h.open)||(this.setState("modal",i),i?(null===(s=null==h?void 0:h.showModal)||void 0===s||s.call(h),h&&p(this)):null===(t=null==h?void 0:h.show)||void 0===t||t.call(h),null===(l=(o=this.getRenderProp("on")).onToggle)||void 0===l||l.call(o,!0),this.host&&u(this.host,f.toggle))}closeDialog(){var i,s;null===(s=null===(i=this.dialogRef.el)||void 0===i?void 0:i.close)||void 0===s||s.call(i)}buildCardProps(){return{ariaDescriptionId:this.getState("ariaDescriptionId"),closeButtonProps:this.cardCloseButtonProps,handleClose:this.handleCardClose,hasCloser:!0,headingId:this.getState("headingId"),label:this.getRenderProp("label"),level:this.getRenderProp("level"),refCloseButton:this.cardCloseButtonRef,refTooltip:this.cardCloseTooltipBehavior.setTooltipElementRef}}renderDialogFC(){const s=this.getRenderProp("variant"),t="card"===s;return i(m,{handleCancel:this.handleCancel,handleClose:this.handleClose,label:r(this.getRenderProp("label")),labelledBy:t?this.getState("headingId"):void 0,modal:this.getState("modal"),refDialog:this.dialogRef,variant:s,width:this.getRenderProp("width")},t?i(o,Object.assign({},this.buildCardProps()),this.renderSlot()):this.renderSlot())}}export{g as B}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{_ as t,j as e,h as o,F as l,L as i,Y as s}from"./index-Bsx5X6jK.js";import{r as n}from"./aria-labelledby-DQov9uSv.js";import{B as a}from"./base-web-component-D16FuHFf.js";import{c as r}from"./item-KqTsA-5a.js";import{c}from"./item-pool-C_4Isquh.js";import{c as d}from"./item-DibV9jD7.js";import{c as h,f as u,n as b,a as v,r as p,t as f,B as m,v as y}from"./props-from-config-DVxNB2Lx.js";import{l as g}from"./label-lang-segment-B8ayoizG.js";import{v as k,k as j,T as C}from"./component-BPL1Mikq.js";import{t as S}from"./i18n-Cf0DhAke.js";import{b as w}from"./bem-registry-CK2s_XZ4.js";import{B as _}from"./component-XbTjo2nm.js";import{I as x}from"./component-CDyoNoJe.js";import{L as O}from"./component-S6ib3O8N.js";import{r as $}from"./component-DTV1Kuf1.js";import{S as D}from"./component-DeFANBua.js";import{a as F}from"./tslib.es6-QNbPBOk5.js";import{n as L,c as T}from"./dev.utils--eVyQ4zr.js";import{d as z,K as B}from"./events-B2UzbUT7.js";import{A}from"./component-C0ijstyp.js";import{l as I}from"./level-BV6M_zmM.js";import{c as M}from"./element-interaction-C2pgnQ6t.js";import{u as E,l as K,D as H}from"./scroll-lock-CF_Z7MzO.js";import{h as N}from"./tooltip-open-tracking-DXhnfmA2.js";import{d as P,w as V}from"./width-D5-Licpp.js";import{r as Q,C as X}from"./component-C58IwTEf.js";import{T as q}from"./behavior-DJQFXyfi.js";import{C as R}from"./keyboard-Cc1-_wSt.js";const W=(e,o,l)=>{const i=t=>"string"==typeof t||void 0===t;return t(e,"_ariaLabelledby",i,new Set(["string"]),l),i(l)?n(o,l):[]},U=t=>"number"==typeof t&&Number.isInteger(t)&&t>=0,J=h("fixedCols",[0,0],(t=>u(t)),(t=>2===t.length&&t.every(U))),Z=h("hasSettingsMenu",!1,b),G=v();function Y(t){const o="string"==typeof t?e(t):t;if(Array.isArray(o))return o;throw new Error("Invalid table data: expected an array of row objects.")}function tt(t){return t.every((t=>"object"==typeof t&&null!==t))}const et=h("data",[],Y,tt),ot=h("dataFoot",[],Y,tt),lt=t=>Array.isArray(t)&&t.every((t=>Array.isArray(t))),it=h("headers",{horizontal:[],vertical:[]},(function(t){const o="string"==typeof t?e(t):t;if("object"!=typeof o||null===o)throw new Error("Invalid table headers: expected an object.");const{horizontal:l=[],vertical:i=[]}=o;if(!lt(l)||!lt(i))throw new Error("Invalid table headers: horizontal and vertical must be arrays of header rows.");return{horizontal:l,vertical:i}}),(function({horizontal:t,vertical:e}){return[...t,...e].every((t=>t.every((t=>void 0===t.width||"number"==typeof t.width))))})),st=h("loading",!1,b),nt=h("selection",!1,(function(t){const o="string"==typeof t?e(t):t;if("object"==typeof o&&null!==o)return o;throw new Error("Invalid table selection: expected an object.")}),(function(t){return!1===t||"function"==typeof t.label&&(!t.selectedKeys||Array.isArray(t.selectedKeys))})),at={required:[g,et,it],optional:[J,Z,G,ot,st,nt,k]},rt=t=>t.flatMap((t=>t.filter((t=>"string"==typeof t.key||"function"==typeof t.render)))),ct=t=>{const e=rt(t.horizontal);if(e.length>0)return{cells:e,horizontal:!0};const o=rt(t.vertical);return{cells:o,horizontal:0===o.length}},dt=(t,e)=>{let o=0;return Array.isArray(t)&&t.forEach((t=>{var l;o+=null!==(l=t[e])&&void 0!==l?l:1})),o},ht=(t,e)=>{const o=Math.max(0,...t.map((t=>dt(t,"colSpan"))));return 0===o?e.length:o},ut=t=>{var e;return null!==(e=null==t?void 0:t.reduce(((t,e)=>"visible"in e&&!1===e.visible?t:t+(e.colSpan||1)),0))&&void 0!==e?e:0},bt=(t,e,o,l)=>{if(void 0!==l&&!e)return l<t[0]?"left":t[1]>0&&l>=o-t[1]?"right":void 0},vt=(t,e,o,l)=>{var i,s,n,a,r,c;const d=[];for(let a=0;a<e;a++)"left"===bt(o,l,e,a)&&(d[a]=(null!==(i=d[a-1])&&void 0!==i?i:0)+(null!==(n=null===(s=t[a-1])||void 0===s?void 0:s.width)&&void 0!==n?n:0));for(let i=e-1;i>=0;i--)"right"===bt(o,l,e,i)&&(d[i]=(null!==(a=d[i+1])&&void 0!==a?a:0)+(null!==(c=null===(r=t[i+1])||void 0===r?void 0:r.width)&&void 0!==c?c:0));return d},pt=(t,e,o,l)=>{const i=void 0===e?void 0:t[e];return o&&l?`calc( var(--kol-table-selection-col-width) + ${i}px)`:`${i}px`},ft=({data:t,dataFoot:e,headers:o,isFoot:l,noEntriesLabel:i,primaryHeaders:s})=>{const n=ht(o.horizontal,t),a=s.cells;let r=((t,e,o)=>{const l=Math.max(0,...t.map((t=>dt(t,"rowSpan"))));return 0===l?e.length:l-o})(o.vertical,t,e.length),c=0;l&&(c=r,r+=e.length);const d=[],h=[],u=[];o.vertical.forEach(((t,e)=>{h[e]=0,u[e]=[]}));for(let i=c;i<r;i++){const r=[];o.vertical.forEach(((t,e)=>{let o=0;if(u[e].forEach((t=>o+=t)),o<=i){const l=t[i-o+h[e]];if("object"==typeof l){r.push(Object.assign(Object.assign({},l),{headerCell:!0,data:{}}));let t=1;if("number"==typeof l.rowSpan&&l.rowSpan>1&&(t=l.rowSpan),u[e].push(t),"number"==typeof l.colSpan&&l.colSpan>1)for(let o=1;o<l.colSpan;o++)u[e+o].push(t);h[e]++}}}));for(let o=0;o<n;o++)if(s.horizontal){const s=l?e[i-c]:t[i],n=a[o];"object"==typeof n&&null!==n&&"object"==typeof s&&null!==s&&r.push(Object.assign(Object.assign({},n),{colIndex:o,colSpan:void 0,rowSpan:void 0,data:s,label:s[n.key]}))}else{const e=a[i];"object"==typeof e&&null!==e&&"object"==typeof t[o]&&null!==t[o]&&r.push(Object.assign(Object.assign({},e),{colIndex:o,colSpan:void 0,rowSpan:void 0,data:t[o],label:t[o][e.key]}))}d.push(r)}if(0===t.length){let t=ut(o.horizontal[0]),e=0;o.vertical.length>0&&(t-=o.vertical.length,o.vertical[0].forEach((t=>{e+=t.rowSpan||1})));const l={colSpan:t,label:i,render:void 0,rowSpan:Math.max(e,1)};0===d.length?d.push([l]):d[0].push(l)}return d},mt=({horizontal:t,vertical:e})=>{const o=t.flatMap((t=>t.filter((t=>!1!==t.visible&&void 0!==t.width&&t.width>0)).map((t=>t.width)))),l=[...e.flatMap((t=>t.filter((t=>void 0!==t.width&&t.width>0)).map((t=>t.width)))),...o];return 0===l.length?"0px":1===l.length?`${l[0]}px`:`calc(${l.map((t=>`${t}px`)).join(" + ")})`},yt=t=>void 0===t?[]:Array.isArray(t)?t:[t],gt=t=>{var e;return null!==(e=t?t.keyPropertyName:void 0)&&void 0!==e?e:"id"},kt=t=>{const e=t?yt(t.selectedKeys):[];return{disabledKeys:new Set((t?yt(t.disabledKeys):[]).map(String)),keyPropertyName:gt(t),selectedKeys:e,selectedKeysSet:new Set(e.map(String))}},jt=(t,e)=>t.filter((t=>!e.disabledKeys.has(String(t[e.keyPropertyName])))),Ct=w.forBlock("kol-table"),St=Ct("body"),wt=Ct("cell-actions"),_t=Ct("cell-states"),xt=Ct("footer"),Ot=Ct("head"),$t=Ct("head-row"),Dt=Ct("scroll-container"),Ft=Ct("selection-icon"),Lt=Ct("selection-input-tooltip"),Tt=Ct("sort"),zt=Ct("sort-button"),Bt=Ct("sort-order"),At=Ct("table"),It=`${Ct("focus-element")} ${Ct("caption")}`,Mt="caption",Et=(t,e)=>bt(t.fixedCols,t.stickyColsDisabled,t.maxCols,e),Kt=(t,e,o)=>({left:"left"===e?pt(t.fixedOffsets,o,!0,!1!==t.selection):void 0,right:"right"===e?pt(t.fixedOffsets,o,!1,!1!==t.selection):void 0}),Ht=(t,e,o)=>{var l,i;return null!==(i=t.primaryHeaders.horizontal&&(null===(l=e[0])||void 0===l?void 0:l.data)?t.rowKeys.get(e[0].data):void 0)&&void 0!==i?i:String(o)},Nt=t=>{const e=S("kol-sort");return"number"==typeof t&&t>0?`${e} – ${S("kol-table-sort-order").replace("{{order}}",`${t}`)}`:e},Pt=(t,e,l,i,s)=>{if(!1===e.visible)return"";const n=!1!==(null==e?void 0:e.sortable)&&"string"==typeof e.sortDirection;let a="none",r="kolicon-sort-neutral";if(n&&e.sortDirection)switch(e.sortDirection){case"ASC":r="kolicon-sort-asc",a="ascending";break;case"DESC":r="kolicon-sort-desc",a="descending";break;default:a="none"}const c=s?"row":"number"==typeof e.colSpan&&e.colSpan>1?"colgroup":"col",d="number"==typeof e.sortOrder&&e.sortOrder>0?e.sortOrder:void 0,h=void 0!==e.width?`${e.width}px`:void 0,u=Et(t,i),{left:b,right:v}=Kt(t,u,i),p=e.textAlign,f=n?e.sortDirection:void 0;return o("th",{key:`${l}-${i}-${e.label}`,class:Ct("cell",{[a]:!0,"align-center":"center"===p,"align-justify":"justify"===p,"align-left":"left"===p,"align-right":"right"===p,header:!0,"sticky-left":"left"===u,"sticky-right":"right"===u}),scope:c,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{width:h,left:b,right:v},"aria-sort":a,"data-sort":f?`sort-${f}`:void 0},f?o("span",{class:Tt},o(_,Object.assign({},t.getButtonFcProps(`sort-${s?"vertical":"horizontal"}-${l}-${i}`,{_icons:{right:r},_label:e.label,_ariaDescription:Nt(d),_on:{onClick:o=>{t.handleSort(o,{key:e.key,currentSortDirection:f})}}},{class:zt}))),d&&o("span",{"aria-hidden":"true",class:Bt},d)):e.label)},Vt=(t,e,l,i,s=!1)=>o("tr",{class:Ct("row",{body:!s,footer:s}),key:`row-${Ht(t,e,l)}`},((t,e,l)=>{var i;const{handleSelectionChange:s,selection:n,selectionModel:a}=t;if(!n)return"";const r=null===(i=e[0])||void 0===i?void 0:i.data;if(!r)return"";const c=r[a.keyPropertyName],d=n.multiple||void 0===n.multiple,h=String(c),u=a.selectedKeysSet.has(h),b=a.disabledKeys.has(h),v=n.label(r),p={name:"selection",checked:u,disabled:b,id:String(c),"aria-label":v};return o("td",{key:`tbody-${l}-selection`,class:Ct("cell",{selection:!0})},o("div",{class:Ct("selection",{checked:u})},d?o("label",{class:Ct("selection-label",{disabled:b})},o(x,{class:Ft,icons:"kolicon "+(u?"kolicon-check":""),label:""}),o("input",Object.assign({class:Ct("selection-input",{checkbox:!0})},p,{type:"checkbox",onInput:t=>{const e=u?a.selectedKeys.filter((t=>String(t)!==h)):[...a.selectedKeys,c];s(t,e)}}))):o("label",{class:Ct("selection-label")},o("input",Object.assign({class:Ct("selection-input",{radio:!0})},p,{type:"radio",onInput:t=>{s(t,[c])}}))),o("div",{class:Lt},o(C,{label:v,badgeText:"",id:`${c}-label`,refFloating:()=>{}}))))})(t,e,l),e.map(((e,s)=>((t,e,l,i,s)=>{if(!1===e.visible)return"";let n=`${l}-${i}-${e.label}`;if(e.data){const o=t.rowKeys.get(e.data);n=o?`${o}-${t.primaryHeaders.horizontal?i:l}`:n}if(e.headerCell)return Pt(t,e,l,i,s);const a="function"!=typeof e.render&&e.label===t.translateNoEntries,r=((t,e,o)=>{if(0!==(e.horizontal?t.horizontal:t.vertical).length)return e.cells[o]})(t.headers,t.primaryHeaders,i),c="action"===(null==r?void 0:r.type)?r:void 0,d=Boolean(c&&e.data),h="state"===(null==r?void 0:r.type)?r:void 0,u=Boolean(h&&e.data),b=Et(t,i),{left:v,right:p}=Kt(t,b,e.colIndex),f="function"==typeof e.render,m=e.textAlign;return o("td",{key:`cell-${n}-${t.settingsChangedCounter}`,class:Ct("cell",{actions:d,"align-center":"center"===m,"align-justify":"justify"===m,"align-left":"left"===m,"align-right":"right"===m,body:!0,states:u,"sticky-left":"left"===b,"sticky-right":"right"===b}),"aria-atomic":a?"false":void 0,"aria-live":a?"polite":void 0,"aria-relevant":a?"text":void 0,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{textAlign:m,left:v,right:p},ref:f?o=>t.handleRenderCell(e,o):void 0},d&&c&&e.data?((t,e,l,i)=>o("div",{class:wt},e.actions(l).map(((e,l)=>{const s=`action-${i}-${l}`;return"button"===e.type?o("span",{key:s},o(_,Object.assign({},t.getButtonFcProps(s,e)))):"link"===e.type?o("span",{key:s},o(O,Object.assign({},t.getLinkFcProps(s,e)))):null}))))(t,c,e.data,n):u&&h&&e.data?((t,e,l)=>{const i=t.key;if(!i)return"";const s=e[i];return s?o("div",{class:_t},s.map(((t,e)=>"badge"===t.type?o("kol-badge",Object.assign({key:`state-${l}-${e}`},t)):null))):""})(h,e.data,n):f?"":e.label)})(t,e,l,s,i)))),Qt=(t,e,l)=>{const i=t.headers.vertical.length+ut(null==l?void 0:l[0])+(t.selection?1:0);return o("tr",{"aria-hidden":"true",class:Ct("spacer",{[e]:!0})},o("td",{class:Ct("spacer-line",{[e]:!0}),colSpan:i}))},Xt=t=>{const e=p(at,t),{data:i,dataFoot:s,externalLabelElements:n,fixedCols:a,hasScrollbar:r,hasSettingsMenu:c,headers:d,label:h,loading:u,refScrollContainer:b,refTable:v,selection:y,stickyColsDisabled:g,variant:k}=e,w=S("kol-no-entries"),_=ct(d),O=ht(d.horizontal,i),F=Object.assign(Object.assign({},e),{fixedOffsets:vt(_.cells,O,a,g),maxCols:O,primaryHeaders:_,selectionModel:kt(y),translateNoEntries:w}),L=ft({data:i,dataFoot:s,headers:d,isFoot:!1,noEntriesLabel:w,primaryHeaders:_}),T=0===n.length;return o(m,{block:"kol-table",class:j(k,"table")},c&&t.renderSettings(d.horizontal),o("div",{ref:b,class:Dt,tabindex:r?T?"-1":"0":void 0},o("table",{ref:v,"aria-labelledby":T?Mt:void 0,class:At,style:{minWidth:mt(d)}},T&&o("caption",{class:It,id:Mt,ref:t=>{t&&(r?t.tabIndex=0:t.removeAttribute("tabindex"))}},$(h)),o("thead",{class:Ot},[d.horizontal.map(((t,e)=>o("tr",{class:$t,key:`thead-${e}`},y&&(t=>{const{data:e,handleSelectionChange:l,selection:i,selectionModel:s}=t;if(!i)return o("td",{class:Ct("cell",{header:!0}),key:"thead-0"});if(!1===i.multiple)return o("th",{scope:"col",key:"thead-0-selection",class:Ct("cell",{header:!0,selection:!0})},o("span",{class:"visually-hidden"},S("kol-table-selection")));const n=s.selectedKeys.filter((t=>!s.disabledKeys.has(String(t)))).length,a=n===jt(e,s).length,r=0!==n&&!a;let c;return c=S(0===n?"kol-table-selection-all":a&&!r?"kol-table-selection-none":"kol-table-selection-indeterminate"),o("th",{scope:"col",key:"thead-0-selection",class:Ct("cell",{header:!0,selection:!0})},o("span",{class:"visually-hidden"},S("kol-table-selection")),o("div",{class:Ct("selection",{checked:a,indeterminate:r})},o("label",{class:Ct("selection-label")},o(x,{class:Ft,icons:"kolicon "+(r?"kolicon-minus":a?"kolicon-check":""),label:""}),o("input",{class:Ct("selection-input",{checkbox:!0}),name:"selection",checked:a&&!r,indeterminate:r,"aria-label":c,type:"checkbox",onInput:t=>{l(t,((t,e,o)=>{const l=e.selectedKeys.filter((t=>e.disabledKeys.has(String(t))));return o&&l.push(...jt(t,e).map((t=>null==t?void 0:t[e.keyPropertyName]))),l})(e,s,!a))}})),o("div",{class:Lt},o(C,{label:c,badgeText:"",refFloating:()=>{}}))))})(F),0===e&&(({headers:t})=>{const{horizontal:e,vertical:i}=t;if(0===e.length||0===i.length)return o(l,null);const s=i.reduce(((t,e)=>{var o,l;return t+(null!==(l=null===(o=null==e?void 0:e[0])||void 0===o?void 0:o.width)&&void 0!==l?l:0)}),0);return o("td",{"aria-hidden":"true",colSpan:i.length,rowSpan:e.length,style:s>0?{width:`${s}px`}:void 0})})(F),Array.isArray(t)&&t.map(((t,o)=>Pt(F,t,e,o,!1)))))),Qt(F,"head",d.horizontal)]),o("tbody",{class:St},o("div",{class:Ct("loader",{shown:u})},o(D,{label:S(u?"kol-table-data-loading":"kol-table-data-loaded").replace("{{caption}}",f(h)),show:u,variant:"cycle"})),L.map(((t,e)=>Vt(F,t,e,!0)))),(t=>{const{dataFoot:e,headers:l,primaryHeaders:i,translateNoEntries:s}=t;if(0===e.length)return null;const n=ft({data:e,dataFoot:e,headers:l,isFoot:!0,noEntriesLabel:s,primaryHeaders:i}),a=ht(l.horizontal,e),r=Object.assign(Object.assign({},t),{fixedOffsets:vt(i.cells,a,t.fixedCols,t.stickyColsDisabled),maxCols:a});return o("tfoot",{class:xt},[Qt(t,"foot",n),n.map(((t,e)=>Vt(r,t,e,!0,!0)))])})(F))))},qt=({dialog:t,card:e},l)=>o(H,Object.assign({},t),e?o(X,Object.assign({},e),l):l),Rt=w.forBlock("kol-table")("settings"),Wt=w.forBlock("kol-table-settings"),Ut=Wt(),Jt=Wt("actions"),Zt=Wt("columns"),Gt=Wt("content"),Yt=Wt("error-message"),te=t=>Number.isFinite(t)&&void 0!==t&&t>0?t:void 0,ee=()=>{},oe=(t,e)=>{const l=S("kol-table-settings"),i=S("kol-table-settings-cancel"),s=S("kol-table-settings-apply"),n=S("kol-table-settings-error-all-invisible");let d,h=!1,u=!1;const b=()=>{h=!0,e()},v=c((()=>r(t)),(t=>t.syncListeners()),(t=>t.destroy())),p=((t,e)=>{const o=M(),l=M(),i=new q(a.stateLess),s=L(),n=T("dialog-heading"),r={};let c,h=!0,u={};const b=t=>!d||z(d,t),v=()=>{var t,e;null===(e=null===(t=o.el)||void 0===t?void 0:t.close)||void 0===e||e.call(t)},p=t=>{var e;N(t),t.defaultPrevented||(null===(e=u.onCancel)||void 0===e||e.call(u,t),t.defaultPrevented||b(B.cancel)||t.preventDefault())},m=t=>{var e;t.target===o.el&&(E(r),null===(e=u.onClose)||void 0===e||e.call(u),b(B.close))},k=()=>{i.hideTooltip(),v(),b(B.close)};return{getFcProps:e=>{var a,r,d;let b="",v=0,j="blank",C="100%";g.apply(e.label,(t=>{b=t})),I.apply(null!==(a=e.level)&&void 0!==a?a:0,(t=>{v=t})),P.apply(e.on,(t=>{u=t})),y.apply(null!==(r=e.variant)&&void 0!==r?r:"blank",(t=>{j=t})),V.apply(null!==(d=e.width)&&void 0!==d?d:"100%",(t=>{C=t}));const S="card"===j;return S&&!c&&(c=Q(t()),i.componentWillLoad({label:c.label,align:c.tooltipAlign})),{dialog:{handleCancel:p,handleClose:m,label:f(b),labelledBy:S?n:void 0,modal:h,refDialog:o,variant:j,width:C},card:S&&c?{ariaDescriptionId:s,closeButtonProps:c,handleClose:k,hasCloser:!0,headingId:n,label:b,level:v,refCloseButton:l,refTooltip:i.setTooltipElementRef}:void 0}},show:t=>{var l,i;const s=o.el;(null==s?void 0:s.open)||(h!==t&&(h=t,e()),t?(null===(l=null==s?void 0:s.showModal)||void 0===l||l.call(s),s&&K(r)):null===(i=null==s?void 0:s.show)||void 0===i||i.call(s))},close:v,syncListeners:()=>{l.el&&i.syncListeners(void 0,l.el,!0)},destroy:()=>{v(),E(r),i.destroy()}}})(t,b),m=T("alert-heading"),k=L();let j,C=[],w=[],x=null;const O=()=>{var t;return null!==(t=w[w.length-1])&&void 0!==t?t:[]},$=t=>{w=w.map(((e,o,l)=>o===l.length-1?t:e)),b()},D=(t,e)=>{const o=[...O()],l=o.findIndex((e=>e.key===t));if(-1===l)return;let i;if("up"===e){if(0===l)return;i=l-1}else{if(l===o.length-1)return;i=l+1}const[s]=o.splice(l,1);o.splice(i,0,s),$(o)},H=t=>{if(t.preventDefault(),!O().some((t=>!1!==t.visible)))return x=n,void b();if(d){x=null,C=w.map((t=>t.map((t=>Object.assign({},t))))),b();const t=w.map((t=>t.map((t=>{const e=t,{hidable:o,resizable:l,sortable:i,visible:s,width:n}=e,a=F(e,["hidable","resizable","sortable","visible","width"]),r=Object.assign({},a);return void 0!==s&&(r.visible=s),void 0!==o&&(r.hidable=o),void 0!==i&&(r.sortable=i),void 0!==l&&(r.resizable=l),null!=n&&(r.width=n),r}))));z(d,B.changeHeaderCells,t),p.close()}},X=t=>{t&&(d=t)};return{beginRender:()=>{v.beginRender(),u=h,h=!1},render:t=>{var e;u||t===j||(j=t,C=(e=t).map((t=>[...t])),w=e.map((t=>t.map((t=>Object.assign({},t))))));const n=O();return o("div",{class:Rt,ref:X},o("div",{class:Ut},o(_,Object.assign({},v.get("toggle").getFcProps({_icons:"kolicon-settings",_label:l,_hideLabel:!0,_on:{onClick:()=>p.show(!0)}})))),o(qt,Object.assign({},p.getFcProps({label:l,variant:"card",width:"fit-content"})),o("div",{class:Gt},x&&o("div",{class:Yt},o(A,{alert:!1,closerAriaDescriptionId:k,handleCloserClick:ee,hasCloser:!1,headingId:m,label:x,level:0,refCloserButton:ee,refCloserTooltip:ee,type:"error",variant:"msg"})),o("form",{onSubmit:H},o("div",{class:Zt},n.map(((t,e)=>((t,e,l)=>o("div",{key:t.key,class:"kol-table-settings__column"},o("kol-input-checkbox",{_checked:!1!==t.visible,_label:S(t.hidable?"kol-table-settings-column-hidable":"kol-table-settings-column-not-hidable",{placeholders:{column:t.label}}),_value:!0,_hideLabel:!0,_disabled:!1===t.hidable,_on:{onInput:(e,o)=>{var l;return((t,e)=>{const o=O().map((o=>o.key===t&&!1!==o.hidable?Object.assign(Object.assign({},o),{visible:Boolean(e)}):o));$(o)})(null!==(l=t.key)&&void 0!==l?l:"",o)}}}),o("span",{class:"kol-table-settings__column-label"},t.label),o("kol-input-number",{_hideLabel:!0,_value:te(t.width),_label:S("kol-table-settings-column-width",{placeholders:{column:t.label}}),_min:1,_disabled:!1===t.resizable,_on:{onInput:(e,o)=>{var l;return((t,e)=>{const o=te(Number(e)),l=O().map((e=>e.key===t&&!1!==e.resizable?Object.assign(Object.assign({},e),{width:o}):e));$(l)})(null!==(l=t.key)&&void 0!==l?l:"",o)}}}),o(_,Object.assign({},v.get(`move-up-${t.key}`).getFcProps({_icons:"kolicon-chevron-up",_label:S(!1===t.sortable||0===e?"kol-table-settings-not-move":"kol-table-settings-move-up",{placeholders:{column:t.label}}),_hideLabel:!0,_variant:"ghost",_on:{onClick:()=>{var e;return D(null!==(e=t.key)&&void 0!==e?e:"","up")}},_disabled:!1===t.sortable||0===e}))),o(_,Object.assign({},v.get(`move-down-${t.key}`).getFcProps({_icons:"kolicon-chevron-down",_label:S(!1===t.sortable||e===l.length-1?"kol-table-settings-not-move":"kol-table-settings-move-down",{placeholders:{column:t.label}}),_hideLabel:!0,_variant:"ghost",_on:{onClick:()=>{var e;return D(null!==(e=t.key)&&void 0!==e?e:"","down")}},_disabled:!1===t.sortable||e===l.length-1})))))(t,e,n)))),o("div",{class:Jt},o(_,Object.assign({},v.get("cancel").getFcProps({_label:i,_variant:"secondary",_on:{onClick:()=>(w=C.map((t=>[...t])),x=null,b(),void p.close())}}))),o(_,Object.assign({},v.get("apply").getFcProps({_label:s,_variant:"primary",_type:"submit"}))))))))},sync:()=>{v.endRender(),p.syncListeners()},destroy:()=>{v.destroy(),p.destroy()}}};class le extends a{constructor(){super(...arguments),this.hasExternalTableLabelRefs=!1,this.cellRenderTimeouts=new Map,this.buttonItems=c((()=>r((()=>this.host))),(t=>t.syncListeners()),(t=>t.destroy())),this.settings=oe((()=>this.host),(()=>s(this))),this.linkItems=c((()=>d((()=>s(this)))),(t=>t.syncListeners()),(t=>t.destroy())),this.propsConfig=at,this.handleResize=()=>{this.updateScrollbarState(),clearTimeout(this.resizeDebounceTimeout),this.resizeDebounceTimeout=setTimeout((()=>{this.updateStickyColsDisabled()}),150)},this.handleSelectionChange=(t,e)=>{this.emitSelectionChange(t,e)},this.handleSort=(t,e)=>{this.emitSort(t,e)},this.handleRenderCell=(t,e)=>{e&&(clearTimeout(this.cellRenderTimeouts.get(e)),this.cellRenderTimeouts.set(e,setTimeout((()=>{if(this.cellRenderTimeouts.delete(e),"function"==typeof t.render){const o=t.render(e,t,t.data,this.getRenderProp("data"));"string"==typeof o&&(e.textContent=o)}}))))},this.refScrollContainer=t=>{this.scrollContainerElement=t},this.refTable=t=>{this.tableElement=t,this.syncTableLabel(this.getState("externalLabelElements"))},this.getButtonFcProps=(t,e,o)=>this.buttonItems.get(t).getFcProps(e,o),this.renderSettings=t=>this.settings.render(t),this.getLinkFcProps=(t,e)=>this.linkItems.get(t).getFcProps(e)}observeScrollContainer(){this.scrollContainerElement&&ResizeObserver&&(this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.scrollContainerElement)),this.updateStickyColsDisabled()}teardownTable(){var t;null===(t=this.resizeObserver)||void 0===t||t.disconnect(),clearTimeout(this.resizeDebounceTimeout),this.cellRenderTimeouts.forEach((t=>clearTimeout(t))),this.cellRenderTimeouts.clear(),this.buttonItems.destroy(),this.linkItems.destroy(),this.settings.destroy()}syncTableItems(){this.buttonItems.endRender(),this.linkItems.endRender(),this.settings.sync()}applyData(t){et.apply(t,(t=>{this.setRenderProp("data",t),this.setState("rowKeys",((t,e)=>new Map(t.map((t=>{var o;return[t,null!==(o=e.get(t))&&void 0!==o?o:L()]}))))(t,this.getState("rowKeys")))}))}applyDataFoot(t){ot.apply(t,(t=>this.setRenderProp("dataFoot",t)))}applyFixedCols(t){J.apply(t,(t=>this.setRenderProp("fixedCols",t))),this.updateStickyColsDisabled()}applyHasSettingsMenu(t){Z.apply(t,(t=>this.setRenderProp("hasSettingsMenu",t)))}applyHeaders(t){it.apply(t,(t=>this.setRenderProp("headers",(t=>0===t.horizontal.length?t:Object.assign(Object.assign({},t),{horizontal:t.horizontal.map((t=>t.map((t=>Object.assign(Object.assign({},t),{visible:"boolean"!=typeof t.visible||t.visible,hidable:"boolean"!=typeof t.hidable||t.hidable})))))}))(t))),this.isRequired("headers"))}applyLabel(t){g.apply(t,(t=>this.setRenderProp("label",t)),this.isRequired("label"))}applyLoading(t){st.apply(t,(t=>this.setRenderProp("loading",t)))}applyOn(t){G.apply(t,(t=>this.setRenderProp("on",t)))}applySelection(t){nt.apply(t,(t=>this.setRenderProp("selection",t))),this.updateStickyColsDisabled()}applyVariant(t){k.apply(t,(t=>this.setRenderProp("variant",t)))}syncTableLabel(t){this.tableElement&&"ariaLabelledByElements"in this.tableElement&&((null==t?void 0:t.length)?(this.tableElement.ariaLabelledByElements=t,this.hasExternalTableLabelRefs=!0,i.debug([this.tableElement,t,this.tableElement.ariaLabelledByElements])):this.hasExternalTableLabelRefs&&(this.hasExternalTableLabelRefs=!1,this.tableElement.ariaLabelledByElements=null,this.tableElement.setAttribute("aria-labelledby",Mt)))}moveCheckboxFocus(t){var e,o,l;if("ArrowUp"!==t.key&&"ArrowDown"!==t.key)return;const i=Array.from(null!==(o=null===(e=this.scrollContainerElement)||void 0===e?void 0:e.querySelectorAll(".kol-table__selection-input--checkbox"))&&void 0!==o?o:[]),s=null===(l=this.scrollContainerElement)||void 0===l?void 0:l.querySelector(":focus");let n=i.indexOf(s);n>-1&&(t.preventDefault(),n=(n+("ArrowDown"===t.key?1:i.length-1))%i.length,i[n].focus())}applyChangedHeaderCells(t){const e=Object.assign(Object.assign({},this.getRenderProp("headers")),{horizontal:t.detail});this.setRenderProp("headers",e),this.setState("settingsChangedCounter",this.getState("settingsChangedCounter")+1);const o=this.getRenderProp("on")[R.onChangeHeaderCells];"function"==typeof o&&o(t,e)}updateScrollbarState(){if(this.scrollContainerElement){const{clientHeight:t,clientWidth:e,scrollHeight:o,scrollWidth:l}=this.scrollContainerElement;this.setState("hasScrollbar",l>e||o>t&&["auto","scroll"].includes(getComputedStyle(this.scrollContainerElement).overflowY))}}calculateFixedColsWidth(){var t,e,o,l,i,s;const[n,a]=this.getRenderProp("fixedCols"),r=this.getRenderProp("headers"),c=ct(r).cells,d=ht(r.horizontal,this.getRenderProp("data"));let h=0;for(let o=0;o<n&&o<c.length;o++)h+=null!==(e=null===(t=c[o])||void 0===t?void 0:t.width)&&void 0!==e?e:0;for(let t=d-a;t<d&&t<c.length;t++)h+=null!==(l=null===(o=c[t])||void 0===o?void 0:o.width)&&void 0!==l?l:0;if(this.getRenderProp("selection")){const t=null===(i=this.scrollContainerElement)||void 0===i?void 0:i.querySelector(".kol-table__cell--selection");h+=null!==(s=null==t?void 0:t.offsetWidth)&&void 0!==s?s:0}return h}updateStickyColsDisabled(){if(!this.scrollContainerElement)return void this.setState("stickyColsDisabled",!1);const t=this.calculateFixedColsWidth();this.setState("stickyColsDisabled",t>0&&t>=this.scrollContainerElement.clientWidth)}emitSelectionChange(t,e){const o=this.getRenderProp("on")[R.onSelectionChange];"function"==typeof o&&o(t,e),this.host&&z(this.host,B.selectionChange,e)}emitSort(t,e){const o=this.getRenderProp("on")[R.onSort];"function"==typeof o&&e.key&&o(t,e),this.host&&z(this.host,B.sort,e)}renderTableStatelessFC(){return this.buttonItems.beginRender(),this.linkItems.beginRender(),this.settings.beginRender(),o(Xt,{data:this.getRenderProp("data"),dataFoot:this.getRenderProp("dataFoot"),externalLabelElements:this.getState("externalLabelElements"),fixedCols:this.getRenderProp("fixedCols"),getButtonFcProps:this.getButtonFcProps,getLinkFcProps:this.getLinkFcProps,renderSettings:this.renderSettings,handleRenderCell:this.handleRenderCell,handleSelectionChange:this.handleSelectionChange,handleSort:this.handleSort,hasScrollbar:this.getState("hasScrollbar"),hasSettingsMenu:this.getRenderProp("hasSettingsMenu"),headers:this.getRenderProp("headers"),label:this.getRenderProp("label"),loading:this.getRenderProp("loading"),on:this.getRenderProp("on"),refScrollContainer:this.refScrollContainer,refTable:this.refTable,rowKeys:this.getState("rowKeys"),selection:this.getRenderProp("selection"),settingsChangedCounter:this.getState("settingsChangedCounter"),stickyColsDisabled:this.getState("stickyColsDisabled"),variant:this.getRenderProp("variant")})}}export{le as B,ot as a,et as t,W as v}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{i as s,X as i,h as t}from"./index-Bsx5X6jK.js";import{B as a}from"./base-web-component-D16FuHFf.js";import{b as e,e as o,a as h,n as l,c as n,d as r,B as p}from"./component-XbTjo2nm.js";import{F as d}from"./behavior-DnTJtQBK.js";import{T as c}from"./behavior-DJQFXyfi.js";import{a as m,b as y,c as b,f as u,g as f,h as v,s as x,i as B,l as j,d as C,t as D,e as A,v as I}from"./component-BPL1Mikq.js";import{d as T}from"./disabled-Cu0e92-b.js";import{i as g}from"./id-BXwy9iRy.js";import"./props-from-config-DVxNB2Lx.js";import{l as K}from"./label-with-expert-slot-DXi27J4o.js";import{v as F}from"./access-and-short-key-CW0oxi_q.js";import{c as L}from"./element-interaction-C2pgnQ6t.js";import{d as P,K as S}from"./events-B2UzbUT7.js";import{p as w,a as H}from"./controller-BdPVgWDs.js";class V extends a{constructor(){super(...arguments),this.ctaRef=L(),this.propsConfig=e,this.tooltipBehavior=new c(this.stateAccess),this.handleClick=i=>{i.stopPropagation(),this.tooltipBehavior.hideTooltip();const t=this.getRenderProp("type");if("submit"===t)w({form:this.host});else if("reset"===t)H({form:this.host});else{this.formAssociation.setFormAssociatedValue(this.formValue);const t=this.getRenderProp("on").onClick;"function"==typeof t&&(s(i,this.ctaRef.el),t(i,this.formValue))}this.host&&P(this.host,S.click,this.formValue)},this.handleMouseDown=s=>{var i,t;null===(t=(i=this.getRenderProp("on")).onMouseDown)||void 0===t||t.call(i,s),this.host&&P(this.host,S.mousedown)},this.handleFocus=s=>{var i,t;null===(t=(i=this.getRenderProp("on")).onFocus)||void 0===t||t.call(i,s),this.host&&P(this.host,S.focus)},this.handleBlur=s=>{var i,t;null===(t=(i=this.getRenderProp("on")).onBlur)||void 0===t||t.call(i,s),this.host&&P(this.host,S.blur)}}initFormAssociation(){this.formAssociation=new d(a.stateLess,{host:this.host,type:"button"})}unsetButtonTabIndex(){this.unsetRenderProp("tabIndex")}initTooltipBehavior(){this.tooltipBehavior.componentWillLoad({label:this.getRenderProp("label"),align:this.getRenderProp("tooltipAlign")})}syncTooltipListeners(){this.ctaRef.el&&this.tooltipBehavior.syncListeners(void 0,this.ctaRef.el,!0)}destroyTooltipBehavior(){this.tooltipBehavior.destroy()}applyAccessKey(s,i){m.apply(s,(s=>this.setRenderProp("accessKey",s))),F(s,i)}applyAriaControls(s){y.apply(s,(s=>this.setRenderProp("ariaControls",s)))}applyAriaDescription(s){b.apply(s,(s=>this.setRenderProp("ariaDescription",s)))}applyAriaExpanded(s){u.apply(s,(s=>this.setRenderProp("ariaExpanded",s)))}applyAriaHasPopup(s){o.apply(s,(s=>this.setRenderProp("ariaHasPopup",s)))}applyAriaSelected(s){h.apply(s,(s=>this.setRenderProp("ariaSelected",s)))}applyCustomClass(s){f.apply(s,(s=>this.setRenderProp("customClass",s)))}applyDisabled(s){T.apply(s,(s=>this.setRenderProp("disabled",s)))}applyHideLabel(s){v.apply(s,(s=>this.setRenderProp("hideLabel",s)))}applyIcons(s){x.apply(s,(s=>this.setRenderProp("icons",s)))}applyId(s){g.apply(s,(s=>this.setRenderProp("id",s)))}applyInline(s){B.apply(s,(s=>this.setRenderProp("inline",s)))}applyLabel(s){K.apply(s,(s=>{this.setRenderProp("label",s),this.tooltipBehavior.watchLabel(s)}),this.isRequired("label"))}applyName(s){l.apply(s,(s=>this.setRenderProp("name",s))),this.formAssociation.watchName(s)}applyOn(s){n.apply(s,(s=>this.setRenderProp("on",s)))}applyRole(s){j.apply(s,(s=>this.setRenderProp("role",s)))}applyShortKey(s,i){C.apply(s,(s=>this.setRenderProp("shortKey",s))),F(i,s)}applySyncValueBySelector(s){this.formAssociation.watchSyncValueBySelector(s)}applyTabIndex(s){"number"==typeof s?D.apply(s,(s=>this.setRenderProp("tabIndex",s))):this.unsetRenderProp("tabIndex")}applyTooltipAlign(s){A.apply(null!=s?s:"top",(s=>{this.setRenderProp("tooltipAlign",s),this.tooltipBehavior.watchAlign(s)}))}applyType(s){r.apply(s,(s=>this.setRenderProp("type",s)))}applyValue(s){this.formValue=s,this.formAssociation.setFormAssociatedValue(s)}applyVariant(s){var t;I.apply(null!==(t=null!=s?s:i("buttonVariantDefault",this.host))&&void 0!==t?t:"normal",(s=>this.setRenderProp("variant",s)))}getButtonFCProps(){return{accessKey:this.getRenderProp("accessKey"),ariaControls:this.getRenderProp("ariaControls"),ariaDescription:this.getRenderProp("ariaDescription"),ariaDescriptionId:this.getState("ariaDescriptionId"),ariaExpanded:this.getRenderProp("ariaExpanded"),ariaHasPopup:this.getRenderProp("ariaHasPopup"),ariaSelected:this.getRenderProp("ariaSelected"),customClass:this.getRenderProp("customClass"),disabled:this.getRenderProp("disabled"),handleBlur:this.handleBlur,handleClick:this.handleClick,handleFocus:this.handleFocus,handleMouseDown:this.handleMouseDown,hideLabel:this.getRenderProp("hideLabel"),icons:this.getRenderProp("icons"),id:this.getRenderProp("id"),inline:this.getRenderProp("inline"),label:this.getRenderProp("label"),name:this.getRenderProp("name"),on:this.getRenderProp("on"),refButton:this.ctaRef,refTooltip:this.tooltipBehavior.setTooltipElementRef,role:this.getRenderProp("role"),shortKey:this.getRenderProp("shortKey"),tabIndex:this.getRenderProp("tabIndex"),tooltipAlign:this.getRenderProp("tooltipAlign"),type:this.getRenderProp("type"),variant:this.getRenderProp("variant")}}renderButtonFC(){return t(p,Object.assign({},this.getButtonFCProps()))}}export{V as B}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import"./index-Bsx5X6jK.js";import{d as t}from"./props-from-config-DVxNB2Lx.js";function s(){throw new Error("This behavior does not use component state.")}class e{constructor(){this.rawProps={},this.renderProps={},this.requiredPropNames=new Set,this.renderPropsSeeded=!1,this.setState=(t,s)=>{this[t]=s},this.getState=t=>this[t],this.stateAccess={setState:this.setState,getState:this.getState}}seedRenderProps(){var s;this.renderPropsSeeded||(this.renderPropsSeeded=!0,this.renderProps=t(this.propsConfig),this.requiredPropNames=new Set((null!==(s=this.propsConfig.required)&&void 0!==s?s:[]).map((t=>t.propName))))}isRequired(t){return this.seedRenderProps(),this.requiredPropNames.has(t)}setRawProp(t,s){this.rawProps[t]=s}getRawProp(t){return this.rawProps[t]}setRenderProp(t,s){this.seedRenderProps(),this.renderProps[t]=s}unsetRenderProp(t){this.seedRenderProps(),this.renderProps[t]=void 0}getRenderProp(t){return this.seedRenderProps(),this.renderProps[t]}}e.stateLess=Object.freeze({setState:s,getState:s});export{e as B}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{h as t}from"./index-Bsx5X6jK.js";import{a as s,d as i,v as e}from"./component-BPL1Mikq.js";import{a as o,S as a}from"./suggestions-BXp8OhOi.js";import{h as r,g as h}from"./input-container-BpG3WHug.js";import{c as n,b as l,e as p}from"./props-from-config-DVxNB2Lx.js";import{p as d}from"./placeholder-7pbjAn-x.js";import{r as u}from"./read-only-3XuQIAB8.js";import{r as c}from"./required-CNgdXJ8H.js";import{s as m}from"./smart-button-BdA5-cUG.js";import{s as v}from"./value-string-Cmozozek.js";import{f as y,B as j}from"./api-B76-Osk1.js";import{s as b}from"./controller-BdPVgWDs.js";import{v as g}from"./access-and-short-key-CW0oxi_q.js";import{c as f}from"./element-interaction-C2pgnQ6t.js";import{B}from"./base-web-component-D16FuHFf.js";import{C as O}from"./behavior-ByyBa-o8.js";const x=n("pattern",void 0,l),K={required:[...y.required],optional:[...y.optional,s,o,r,x,d,u,c,i,m,v,e]};class C extends j{constructor(){super(...arguments),this.ctaRef=f(),this.counter=new O(B.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),b(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))),g(t,this._shortKey)}applyAutoComplete(t){o.apply(t,(t=>this.textShared.setRenderProp("autoComplete",t)))}applyIcons(t){r.apply(t,(t=>this.textShared.setRenderProp("icons",t)))}applyPattern(t){x.apply(t,(t=>this.textShared.setRenderProp("pattern",t)))}applyPlaceholder(t){d.apply(t,(t=>this.textShared.setRenderProp("placeholder",t)))}applyReadOnly(t){u.apply(t,(t=>this.textShared.setRenderProp("readOnly",t)))}applyRequired(t){c.apply(t,(t=>this.textShared.setRenderProp("required",t)))}applyShortKey(t){i.apply(t,(t=>this.textShared.setRenderProp("shortKey",t))),g(this._accessKey,t)}applySmartButton(t){null==t?this.textShared.unsetRenderProp("smartButton"):m.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){v.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:o},r={}){const h=this.textShared,n=h.getState("id"),l=h.getRenderProp("accessKey"),p=h.getRenderProp("shortKey"),d=h.getRenderProp("placeholder"),u=h.getRenderProp("pattern"),c=this.counter.getMaxLengthAttribute(),m=this.counter.getCharacterLimitHintId(n),{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:n,hideLabel:h.getRenderProp("hideLabel"),label:h.getRenderProp("label"),disabled:h.getRenderProp("disabled"),name:h.getRenderProp("name")||void 0},l?{accessKey:l}:{}),void 0!==s?{type:s}:{}),{value:h.getRenderProp("value"),required:h.getRenderProp("required")}),void 0!==c?{maxlength:c}:{}),void 0!==d?{placeholder:d}:{}),{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")}),p?{"aria-keyshortcuts":p}:{}),o&&o.length>0?{suggestions:t(a,{id:n,suggestions:o})}:{}),{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{C as B,K as t}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{C as e,j as s,h as i,F as t}from"./index-Bsx5X6jK.js";import{a as o,d as r,t as a,v as l}from"./component-BPL1Mikq.js";import{h as n,g as d,I as h}from"./input-container-BpG3WHug.js";import{o as c,p,c as u,g as b,e as v}from"./props-from-config-DVxNB2Lx.js";import{m}from"./multiple-DQdOCIyW.js";import{r as y}from"./required-CNgdXJ8H.js";import{r as f}from"./rows-DL1whQNh.js";import{f as O,i as j,g,c as B,B as A,F as K}from"./api-B76-Osk1.js";import{v as w}from"./access-and-short-key-CW0oxi_q.js";import{f as q}from"./options-CKAHQbcF.js";import{a as x}from"./tslib.es6-QNbPBOk5.js";const P=s=>{if("object"==typeof s&&null!==s){if("string"==typeof s.label&&s.label.length>0)return s.disabled=!0===s.disabled,s.label=`${s.label}`.trim(),!1===c(s.label,3)&&!1===p(s.label)&&e(`A differing Aria-Label (${s.label}) is inaccessible. A differing Aria-Label should consist of at least three readable characters.`),!Array.isArray(s.options)||void 0===s.options.find((e=>!1===P(e)));if("number"==typeof s.label)return!0}return!1},k=u("options",[],(function(e){const i="string"==typeof e?s(e):e;if(Array.isArray(i)&&i.every((e=>P(e))))return i;throw new Error("Invalid select options")})),L=u("value",[],(e=>Array.isArray(e)?e:[e])),D={required:[...O.required],optional:[...O.optional,o,n,m,k,y,f,L,r,a,l]},C=b("kol-select"),I=e=>{var{class:s,index:t,selectedValue:o,selected:r,value:a,label:l,disabled:n}=e,d=x(e,["class","index","selectedValue","selected","value","label","disabled"]);const h=void 0===o?[]:Array.isArray(o)?o:[o],c=r||h.includes(a);return i("option",Object.assign({class:v(C("option",{selected:Boolean(c),disabled:Boolean(n)}),s),selected:c,disabled:n,value:t},d),l)},V=({preKey:e,options:s,disabled:o,value:r,OptionProps:a={},OptionGroupProps:l={}})=>(null==s?void 0:s.length)?i(t,null,s.map(((s,t)=>{const n=[e,`-${t}`].join("");if("options"in s){const e=Boolean(o||s.disabled),{label:t}=s,d=x(s,["label"]);return i("optgroup",Object.assign({class:C("optgroup",{disabled:e}),key:n},l,{label:null==t?void 0:t.toString(),disabled:e}),i(V,Object.assign({OptionGroupProps:l,OptionProps:a,value:r,preKey:n},d,{disabled:e})))}return"value"in s?i(I,Object.assign({key:n},a,{index:n,selectedValue:r},s,{disabled:Boolean(o||s.disabled)})):null}))):null,$=e=>{const{class:s,msg:t,touched:o,disabled:r,required:a,options:l,value:n,OptionProps:d,OptionGroupProps:h,ariaDescribedBy:c,hideLabel:p,label:u}=e,b=x(e,["class","msg","touched","disabled","required","options","value","OptionProps","OptionGroupProps","ariaDescribedBy","hideLabel","label"]),m=Object.assign(Object.assign({class:v(C(Object.assign({disabled:Boolean(r),required:Boolean(a),touched:Boolean(o)},j(t,o)?{[g(t)]:!0}:{})),s),required:a,disabled:r},B({ariaDescribedBy:c,hideLabel:p,label:u})),b);return i("select",Object.assign({},m),i(V,{OptionGroupProps:h,OptionProps:d,disabled:r,options:l,value:n}))},E=(e,s,i)=>{const t=Array.isArray(e);if(s){if(void 0!==e&&!t)throw new Error(`↑ The schema for the property (_value) is not valid for multiple mode. Expected an array. The value will not be changed. (${i} = ${JSON.stringify(e)})`)}else if(t)throw new Error(`↑ The schema for the property (_value) is not valid for single mode. Expected a single value. The value will not be changed. (${i} = ${JSON.stringify(e)})`)},G=(e,s=!1)=>e.flatMap((e=>"options"in e&&Array.isArray(e.options)?G(e.options,Boolean(s||e.disabled)):[Object.assign(Object.assign({},e),{disabled:Boolean(s||e.disabled)})])),N=(e,s,i)=>{if(0===s.length)return e;const t=G(s),o=t.map((e=>e.value)),r=e.every((e=>o.includes(e)))?e:e.filter((e=>o.includes(e)));if(!1===i&&0===r.length){const e=t.find((e=>!0!==e.disabled));return e?[e.value]:r}return r};class F extends A{constructor(){super(...arguments),this.keyOptionMap=new Map,this.hasValue=!0,this.handleSelectInput=e=>{var s;const i=Array.from((null===(s=this.ctaRef.el)||void 0===s?void 0:s.options)||[]).filter((e=>e.selected)).map((e=>{var s;return null===(s=this.keyOptionMap.get(e.value))||void 0===s?void 0:s.value}));if(this._multiple)this._value=i,this.handleInput(e,i);else{const s=i.length>0?i[0]:void 0;this._value=s,this.handleInput(e,s)}},this.handleSelectChange=e=>{const s=this._value;this.handleChange(e,s),this.hasValue=!!s}}applyAccessKey(e){o.apply(e,(e=>this.setRenderProp("accessKey",e))),w(e,this.getShortKeyProp())}applyShortKey(e){r.apply(e,(e=>this.setRenderProp("shortKey",e))),w(this.getAccessKeyProp(),e)}applyIcons(e){n.apply(e,(e=>this.setRenderProp("icons",e)))}applyMultiple(e){E(this._value,!0===e,"current"),m.apply(e,(e=>{this.setRenderProp("multiple",e),this.setRenderProp("value",N(this.getRenderProp("value"),this.getRenderProp("options"),this._multiple))}))}applyOptions(e){k.apply(e,(e=>{this.setRenderProp("options",e),e.length>0&&(this.keyOptionMap.clear(),q(this.keyOptionMap,e),this.setRenderProp("value",N(this.getRenderProp("value"),e,this._multiple)))}))}applyRequired(e){y.apply(e,(e=>this.setRenderProp("required",e)))}applyRows(e){f.apply(e,(e=>this.setRenderProp("rows",e)))}applyTabIndex(e){a.apply(e,(e=>this.setRenderProp("tabIndex",e)))}applyValue(e){E(e,!0===this._multiple,"received");const s=e=>{const s=N(e,this.getRenderProp("options"),this._multiple);this.setRenderProp("value",s),this.formAssociation.setFormAssociatedValue(this.getModelValue())};null===e?s([null]):L.apply(e,s)}applyVariant(e){l.apply(e,(e=>this.setRenderProp("variant",e)))}getModelValue(){const e=this.getRenderProp("value");return this._multiple?e:Array.isArray(e)&&e.length>0?e[0]:e}getSelectProps(){const{ariaDescribedBy:e,hasError:s}=this.getAria(),i=this.getRenderProp("multiple"),t=this.getRenderProp("shortKey");return Object.assign(Object.assign({id:this.getState("id"),hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),value:this.getRenderProp("value"),options:this.getRenderProp("options"),accessKey:this.getRenderProp("accessKey")||void 0,disabled:this.getRenderProp("disabled"),name:this.getRenderProp("name")||void 0,"aria-invalid":s?"true":void 0,ariaDescribedBy:e,size:i?this.getRenderProp("rows"):void 0,multiple:i,required:this.getRenderProp("required"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")},t?{"aria-keyshortcuts":t}:{}),{ref:this.ctaRef,onBlur:this.handleBlur,onChange:this.handleSelectChange,onClick:this.handleClick,onFocus:this.handleFocus,onInput:this.handleSelectInput,onKeyDown:this.handleKeyDown})}renderSelectField(){const e=this.getRenderProp("disabled"),{startAdornment:s,endAdornment:t}=d({icons:this.getRenderProp("icons")});return i(K,Object.assign({},this.getFormFieldProps({class:v("kol-form-field-select",{"kol-form-field--has-value":this.hasValue}),accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,required:this.getRenderProp("required"),variant:this.getRenderProp("variant")}),{onClick:()=>{var e;return null===(e=this.ctaRef.el)||void 0===e?void 0:e.focus()}}),i(h,{disabled:e,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:s,endAdornment:t},i($,Object.assign({},this.getSelectProps()))))}}export{F as B,D as s}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import"./index-Bsx5X6jK.js";import{a as t}from"./dev.utils--eVyQ4zr.js";import{c as e,n as r,D as i,b as a,i as h}from"./props-from-config-DVxNB2Lx.js";import{B as n}from"./behavior-DJQFXyfi.js";import{t as o}from"./i18n-Cf0DhAke.js";const s=e("hasCounter",!1,r),c=e("maxLength",void 0,i,(t=>t>=0)),m=["hard","soft"],u=e("maxLengthBehavior","hard",(function(t){const e=a(t);if(h(e,m))return e;throw new Error(`Invalid max length behavior: ${e}`)})),g={optional:[s,c,u]},l=(t,e,r)=>{if("number"!=typeof e)return o("kol-character-counter-current",{placeholders:{current:String(r)}});if("soft"===t){const t=e-r;return t<0?o("kol-character-limit-exceeded",{placeholders:{over:String(Math.abs(t))}}):o("kol-character-limit-remaining",{placeholders:{remaining:String(t)}})}return o("kol-character-counter-current-of-max-aria",{placeholders:{current:String(r),max:String(e)}})},x=(t,e,r)=>"hard"===t&&"number"==typeof e&&r>=e?o("kol-character-counter-max-aria"):"";class f extends n{constructor(t){super(t,g),this.reannounceToggle=!1,this.setVisualRef=t=>{this.visualSpan=t},this.setAriaRef=t=>{this.ariaSpan=t},this.handleKeyDown=(t,e)=>{const{maxLength:r,maxLengthBehavior:i}=this.getLimit();"hard"!==i||"number"!=typeof r||e<r||(t=>1===t.key.length&&!t.ctrlKey&&!t.metaKey&&!t.altKey)(t)&&this.retriggerAria(e)}}componentWillLoad(t){this.watchHasCounter(t.hasCounter),this.watchMaxLength(t.maxLength),this.watchMaxLengthBehavior(t.maxLengthBehavior)}watchHasCounter(t){s.apply(t,(t=>this.setRenderProp("hasCounter",t)))}watchMaxLength(t){c.apply(t,(t=>this.setRenderProp("maxLength",t)))}watchMaxLengthBehavior(t){u.apply(t,(t=>this.setRenderProp("maxLengthBehavior",t)))}hasCounter(){return!0===this.getRenderProp("hasCounter")}hasSoftLimit(){const{maxLength:t,maxLengthBehavior:e}=this.getLimit();return"number"==typeof t&&"soft"===e}getMaxLengthAttribute(){const{maxLength:t,maxLengthBehavior:e}=this.getLimit();return"hard"===e?t:void 0}getCounterProps(){if(!this.hasCounter())return;const{maxLength:t,maxLengthBehavior:e}=this.getLimit();return{maxLength:t,maxLengthBehavior:e,visualRef:this.setVisualRef,ariaRef:this.setAriaRef}}getCharacterLimitHintId(e){return"number"!=typeof this.getRenderProp("maxLength")||this.hasCounter()?void 0:t(e,"character-limit-hint")}update(t){const e=this.getLimit();this.updateVisual(t,e),clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout((()=>this.updateAria(t,e)),1e3)}updateImmediate(t){const e=this.getLimit();this.updateVisual(t,e),clearTimeout(this.debounceTimer),this.updateAria(t,e)}retriggerAria(t){if(!this.ariaSpan)return;const e=this.getLimit();clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout((()=>this.updateAria(t,e,!0)),1e3)}destroy(){clearTimeout(this.debounceTimer)}getLimit(){return{maxLength:this.getRenderProp("maxLength"),maxLengthBehavior:this.getRenderProp("maxLengthBehavior")}}updateVisual(t,{maxLength:e,maxLengthBehavior:r}){this.visualSpan&&(this.visualSpan.innerText=((t,e,r)=>{if("number"!=typeof e)return o("kol-character-counter-current",{placeholders:{current:String(r)}});if("soft"===t){const t=e-r;return t<0?o("kol-character-limit-exceeded",{placeholders:{over:String(Math.abs(t))}}):o("kol-character-limit-remaining",{placeholders:{remaining:String(t)}})}return o("kol-character-counter-current-of-max",{placeholders:{current:String(r),max:String(e)}})})(r,e,t),this.visualSpan.classList.toggle("kol-form-field__counter--exceeded","soft"===r&&"number"==typeof e&&t>e))}updateAria(t,{maxLength:e,maxLengthBehavior:r},i=!1){if(!this.ariaSpan)return;let a=[l(r,e,t),x(r,e,t)].filter(Boolean).join(" ");i&&(this.reannounceToggle=!this.reannounceToggle,this.reannounceToggle&&(a+=" ")),this.ariaSpan.innerText=a}}export{f as C}
|