@public-ui/components 5.0.0-beta.1 → 5.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/kolicons/kolicons.eot +0 -0
- package/assets/kolicons/kolicons.ttf +0 -0
- package/assets/kolicons/kolicons.woff +0 -0
- package/assets/kolicons/kolicons.woff2 +0 -0
- package/assets/kolicons/style.css +6 -6
- package/custom-elements.json +31 -77
- package/dist/cjs/{Heading-C9osvqjY.js → Heading-D1EJem-Q.js} +7 -7
- package/dist/cjs/{access-and-short-key-D40HWCJe.js → access-and-short-key-BCyKbrgd.js} +2 -0
- package/dist/cjs/{api-U7I3XBPI.js → api-DU50b7pU.js} +39 -41
- package/dist/cjs/{app-globals-DsADKGEe.js → app-globals-Cshxaw1i.js} +6 -5
- package/dist/cjs/aria-current-service-XKodxE3I.js +30 -0
- package/dist/cjs/{aria-labelledby-BRMgWRVp.js → aria-labelledby-Du7FNBK5.js} +2 -13
- package/dist/cjs/{base-CyqDmoZZ.js → base-2k8L5Z0t.js} +14 -15
- package/dist/cjs/{base-l99dGLYo.js → base-CrH3N2Zu.js} +108 -80
- package/dist/cjs/{base-DcN_YC72.js → base-DXysZJF0.js} +13 -14
- package/dist/cjs/{base-DCxbMk0f.js → base-lY3OV-WH.js} +17 -19
- package/dist/cjs/{base-web-component-DxJ0hQ9u.js → base-web-component-CB32nH5g.js} +17 -19
- package/dist/cjs/{base-web-component-BnaxS2Z3.js → base-web-component-CnTCSVmC.js} +16 -19
- package/dist/cjs/{base-web-component-B6mwGD0m.js → base-web-component-vlBTFoc9.js} +2 -1
- package/dist/cjs/{behavior-CTaw4dj3.js → behavior-BonfWPFJ.js} +6 -6
- package/dist/cjs/{behavior-BNyFQ_B5.js → behavior-DdUDpqCO.js} +10 -10
- package/dist/cjs/{behavior-DrFJy0QC.js → behavior-Dznxy-IT.js} +33 -33
- package/dist/cjs/{bem-registry-CyxrH26c.js → bem-registry-CGf0w2u7.js} +61 -15
- package/dist/cjs/bootstrap-W0pDCbwR.js +59 -0
- package/dist/cjs/{color-BW4t1Cif.js → color-gGnOnvt7.js} +4 -4
- package/dist/cjs/component-B6wRTFBN.js +19 -0
- package/dist/cjs/component-B7ixbeft.js +52 -0
- package/dist/cjs/{component-4OErV1Bg.js → component-BaHA5GQ0.js} +11 -13
- package/dist/cjs/{component-Cty_HlJR.js → component-BeAWp-m9.js} +6 -5
- package/dist/cjs/component-Bnj9veMz.js +177 -0
- package/dist/cjs/{component-Cvjqbxf4.js → component-C9dVa2_4.js} +16 -19
- package/dist/cjs/{component-DF5q9ssd.js → component-D680TPaU.js} +13 -14
- package/dist/cjs/{component-DtxKrISb.js → component-DNRlsQ2M.js} +6 -7
- package/dist/cjs/{component-lmJOXuD6.js → component-WkG3-M2X.js} +8 -11
- package/dist/cjs/component-names-B-xDXf8U.js +121 -0
- package/dist/cjs/{component-DAQ1XSNA.js → component-vjLswij7.js} +6 -8
- package/dist/cjs/{contrast-4mAdSLs0.js → contrast-B6L84xFP.js} +5 -5
- package/dist/cjs/{controller-tEyAFJN9.js → controller-BcC7oIkq.js} +20 -20
- package/dist/cjs/{dev.utils-D5qh-RLT.js → dev.utils-Bk_hA4qQ.js} +9 -10
- package/dist/cjs/{devtools-Dtv-Apvj.js → devtools-CJixr1wI.js} +24 -25
- package/dist/cjs/{disabled-jYcvcwjv.js → disabled-BoM7lglH.js} +2 -1
- package/dist/cjs/{element-focus-CzkKMwtn.js → element-focus-BL2fXDD1.js} +1 -0
- package/dist/cjs/{element-interaction-BtYQAbhu.js → element-interaction-CKiHuPu0.js} +2 -1
- package/dist/cjs/{events-BJC5JJcU.js → events-Ce8f_epW.js} +2 -0
- package/dist/cjs/{field-control-Btb5zapE.js → field-control-Bn_hd-6N.js} +12 -13
- package/dist/cjs/{group-Dg2gJze5.js → group-TVkuA3Dx.js} +8 -9
- package/dist/cjs/{has-closer-CvNa5gqv.js → has-closer-CKT_frM5.js} +2 -1
- package/dist/cjs/{href-BBhiVyPb.js → href-yo_BPSR1.js} +2 -1
- package/dist/cjs/{i18n-BSWM5nea.js → i18n-DOGd0sdR.js} +15 -10
- package/dist/cjs/{i18n-BnOWw1MQ.js → i18n-DdWdytnt.js} +3 -3
- package/dist/cjs/{id-D1VZsLkg.js → id-C7_ak25l.js} +2 -1
- package/dist/cjs/{index-BacpU-d0.js → index-DLwNpyJ5.js} +1740 -61
- package/dist/cjs/index.cjs.js +21 -15
- package/dist/cjs/{input-container-PaL4ZNf3.js → input-container-CvDde8uk.js} +17 -20
- package/dist/cjs/input-uZRNVUsq.js +18 -0
- package/dist/cjs/{item-CLnIJY4J.js → item-D23h7gmK.js} +10 -10
- package/dist/cjs/{item-CPxmIcoq.js → item-D5hmTqf_.js} +17 -18
- package/dist/cjs/{item-Cckqxc6T.js → item-DimqWDZ7.js} +65 -44
- package/dist/cjs/{item-CErU-EPA.js → item-FYvfrXLj.js} +10 -10
- package/dist/cjs/{item-pool-CY0WyGOL.js → item-pool-BJcplkbh.js} +2 -0
- package/dist/cjs/{keyboard-Ca1I5RM2.js → keyboard-21hAUDzL.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 +35 -37
- package/dist/cjs/kol-avatar.cjs.entry.js +22 -25
- package/dist/cjs/kol-badge.cjs.entry.js +35 -38
- package/dist/cjs/kol-breadcrumb.cjs.entry.js +41 -44
- package/dist/cjs/kol-button-link.cjs.entry.js +34 -36
- package/dist/cjs/kol-button.cjs.entry.js +34 -36
- package/dist/cjs/kol-card.cjs.entry.js +59 -101
- package/dist/cjs/kol-combobox.cjs.entry.js +88 -90
- package/dist/cjs/kol-details.cjs.entry.js +23 -25
- package/dist/cjs/kol-dialog.cjs.entry.js +39 -42
- package/dist/cjs/kol-drawer.cjs.entry.js +39 -42
- package/dist/cjs/kol-form.cjs.entry.js +34 -37
- package/dist/cjs/kol-heading.cjs.entry.js +20 -22
- package/dist/cjs/kol-icon.cjs.entry.js +20 -18
- package/dist/cjs/kol-image.cjs.entry.js +25 -27
- package/dist/cjs/kol-input-checkbox.cjs.entry.js +95 -96
- package/dist/cjs/kol-input-color.cjs.entry.js +69 -70
- package/dist/cjs/kol-input-date.cjs.entry.js +82 -84
- package/dist/cjs/kol-input-email.cjs.entry.js +85 -86
- package/dist/cjs/kol-input-file.cjs.entry.js +62 -63
- package/dist/cjs/kol-input-number.cjs.entry.js +84 -85
- package/dist/cjs/kol-input-password.cjs.entry.js +84 -85
- package/dist/cjs/kol-input-radio.cjs.entry.js +66 -69
- package/dist/cjs/kol-input-range.cjs.entry.js +67 -69
- package/dist/cjs/kol-input-text.cjs.entry.js +98 -99
- package/dist/cjs/kol-kolibri.cjs.entry.js +13 -16
- package/dist/cjs/kol-link-button.cjs.entry.js +43 -45
- package/dist/cjs/kol-link.cjs.entry.js +41 -43
- package/dist/cjs/kol-meter.cjs.entry.js +27 -36
- package/dist/cjs/kol-modal.cjs.entry.js +39 -42
- package/dist/cjs/kol-nav.cjs.entry.js +51 -54
- package/dist/cjs/kol-pagination.cjs.entry.js +70 -73
- package/dist/cjs/kol-popover-button.cjs.entry.js +67 -104
- package/dist/cjs/kol-progress.cjs.entry.js +27 -27
- package/dist/cjs/kol-quote.cjs.entry.js +17 -19
- package/dist/cjs/kol-select.cjs.entry.js +73 -75
- package/dist/cjs/kol-single-select.cjs.entry.js +96 -93
- package/dist/cjs/kol-skip-nav.cjs.entry.js +40 -43
- package/dist/cjs/kol-spin.cjs.entry.js +26 -29
- package/dist/cjs/kol-split-button.cjs.entry.js +40 -42
- package/dist/cjs/kol-table-stateful.cjs.entry.js +140 -113
- package/dist/cjs/kol-table-stateless.cjs.entry.js +62 -74
- package/dist/cjs/kol-tabs.cjs.entry.js +58 -64
- package/dist/cjs/kol-textarea.cjs.entry.js +84 -84
- package/dist/cjs/kol-toast-container.cjs.entry.js +24 -28
- package/dist/cjs/kol-toolbar.cjs.entry.js +68 -67
- package/dist/cjs/kol-tree-item.cjs.entry.js +44 -44
- package/dist/cjs/kol-tree.cjs.entry.js +35 -25
- package/dist/cjs/kol-version.cjs.entry.js +26 -29
- package/dist/cjs/kolibri.cjs.js +6 -5
- package/dist/cjs/{label-vVOiX4dC.js → label-CCqNq5tW.js} +4 -3
- package/dist/cjs/{label-hints-D6EBRW9T.js → label-hints-qecpxRCt.js} +4 -4
- package/dist/cjs/{label-lang-segment-CYlAqtUl.js → label-lang-segment-BGLGUvz3.js} +3 -2
- package/dist/cjs/{label-with-expert-slot-B9z4nqW1.js → label-with-expert-slot-VcIxokIa.js} +4 -3
- package/dist/cjs/{level-BAiEYu4U.js → level-CVJUatGG.js} +2 -1
- package/dist/cjs/{link-target-4AzB3I84.js → link-target-BchnvpO8.js} +2 -1
- package/dist/cjs/{links-CPNK7VZo.js → links-B1TspXWw.js} +3 -3
- package/dist/cjs/loader.cjs.js +5 -4
- package/dist/cjs/{multiple-B3ZpkzWu.js → multiple-DO-7DpoM.js} +2 -1
- package/dist/cjs/{number-value-B2yoKlvx.js → number-value-C4kXarZR.js} +3 -2
- package/dist/cjs/{open-CvoX_qxD.js → open-Cmz8IDwx.js} +2 -1
- package/dist/cjs/{open-items-cache-B6hP2Aqy.js → open-items-cache-C162W-_D.js} +2 -0
- package/dist/cjs/{options-z7FKffHh.js → options-B5TaPd9X.js} +2 -0
- package/dist/cjs/{options-B2pQC9w2.js → options-CYbRA9bk.js} +3 -3
- package/dist/cjs/{orientation-u2cvwgBc.js → orientation-qw5D2TnY.js} +2 -1
- package/dist/cjs/{placeholder-C9Ngp2tQ.js → placeholder-BKqOq75d.js} +2 -1
- package/dist/cjs/{props-from-config-BQ2SOZlz.js → props-from-config-utp9cExR.js} +149 -74
- package/dist/cjs/{read-only-DfWF-Coi.js → read-only-BA_w8-u1.js} +2 -1
- package/dist/cjs/{required-CdXn16dq.js → required-CxAjKjbz.js} +2 -1
- package/dist/cjs/{resolve-props-B8kPPEMw.js → resolve-props--Nci0LhR.js} +9 -9
- package/dist/cjs/{resolve-props-B5MED90T.js → resolve-props-Dj6sEqG7.js} +9 -10
- package/dist/cjs/{rows-Ca5ya9tG.js → rows-DIswNtTH.js} +2 -1
- package/dist/cjs/{scroll-lock-jojYHBR3.js → scroll-lock-DCG-yvr9.js} +8 -7
- package/dist/cjs/shared-state-DgRutURI.js +16 -0
- package/dist/cjs/{smart-button-CB8qIzgQ.js → smart-button-DseYlks-.js} +3 -3
- package/dist/cjs/{spell-check-DKRC8xbW.js → spell-check-dk8U8oOc.js} +2 -1
- package/dist/cjs/{src-C3NG0rLO.js → src-CtFQUaCM.js} +2 -1
- package/dist/cjs/{step-CZNyTb2h.js → step-CvPxSo00.js} +2 -1
- package/dist/cjs/{suggestions-BRclldK2.js → suggestions-DUxsRVmB.js} +4 -4
- package/dist/cjs/{suggestions-CRyB_YCX.js → suggestions-DgLZZdei.js} +3 -3
- package/dist/cjs/test-component.cjs.entry.js +3 -3
- package/dist/cjs/theme-store-CLf_JZmz.js +13 -0
- package/dist/cjs/{toggle-handler-DRPltZqQ.js → toggle-handler-B-_ojZ0I.js} +13 -16
- package/dist/cjs/{tooltip-open-tracking-Ba0udJRU.js → tooltip-open-tracking-CewIRZOe.js} +8 -5
- package/dist/cjs/{unique-nav-labels-CIAwid5V.js → unique-nav-labels-CFCBdBmd.js} +3 -3
- package/dist/cjs/{unit-bsoemclF.js → unit-DexLlB8H.js} +2 -1
- package/dist/cjs/{validators-DuLdbf2D.js → validators-CxXwm4f6.js} +4 -1
- package/dist/cjs/{value-string-DZ_FFaUt.js → value-string-Ct7kzFWf.js} +2 -1
- package/dist/cjs/{width-BklaRCqt.js → width-BXrduM1f.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 +8 -6
- package/dist/collection/components/alert/style.css +23 -2
- package/dist/collection/components/avatar/component.js +5 -8
- package/dist/collection/components/avatar/style.css +21 -0
- package/dist/collection/components/badge/component.js +5 -5
- package/dist/collection/components/badge/style.css +23 -2
- package/dist/collection/components/breadcrumb/component.js +4 -4
- package/dist/collection/components/breadcrumb/style.css +23 -2
- package/dist/collection/components/button/component.js +3 -3
- package/dist/collection/components/button/style.css +23 -2
- package/dist/collection/components/button-link/component.js +3 -3
- package/dist/collection/components/button-link/style.css +23 -2
- package/dist/collection/components/card/component.js +54 -19
- package/dist/collection/components/card/style.css +26 -2
- package/dist/collection/components/combobox/component.js +116 -116
- 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 +6 -6
- package/dist/collection/components/dialog/style.css +26 -2
- package/dist/collection/components/drawer/component.js +4 -4
- package/dist/collection/components/drawer/style.css +26 -2
- package/dist/collection/components/form/component.js +4 -4
- 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 +5 -5
- package/dist/collection/components/heading/style.css +21 -0
- package/dist/collection/components/icon/component.js +6 -6
- package/dist/collection/components/icon/style.css +2 -2
- package/dist/collection/components/image/component.js +40 -40
- package/dist/collection/components/image/style.css +21 -0
- package/dist/collection/components/input-checkbox/component.js +119 -117
- package/dist/collection/components/input-checkbox/style.css +23 -2
- package/dist/collection/components/input-color/component.js +42 -40
- package/dist/collection/components/input-color/style.css +23 -2
- package/dist/collection/components/input-date/component.js +83 -81
- package/dist/collection/components/input-date/style.css +23 -2
- package/dist/collection/components/input-email/component.js +89 -86
- package/dist/collection/components/input-email/style.css +23 -2
- package/dist/collection/components/input-file/component.js +37 -34
- package/dist/collection/components/input-file/style.css +23 -2
- package/dist/collection/components/input-number/component.js +70 -68
- package/dist/collection/components/input-number/style.css +23 -2
- package/dist/collection/components/input-password/component.js +90 -87
- package/dist/collection/components/input-password/style.css +23 -2
- package/dist/collection/components/input-radio/component.js +36 -37
- package/dist/collection/components/input-radio/style.css +23 -2
- package/dist/collection/components/input-range/component.js +38 -38
- package/dist/collection/components/input-range/style.css +23 -2
- package/dist/collection/components/input-text/component.js +148 -146
- 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/base.js +1 -1
- package/dist/collection/components/link/component.js +27 -27
- package/dist/collection/components/link/style.css +23 -2
- package/dist/collection/components/link-button/component.js +28 -28
- package/dist/collection/components/link-button/style.css +23 -2
- package/dist/collection/components/meter/component.js +7 -13
- package/dist/collection/components/meter/style.css +21 -0
- package/dist/collection/components/modal/component.js +6 -6
- package/dist/collection/components/modal/style.css +26 -2
- package/dist/collection/components/nav/component.js +3 -3
- package/dist/collection/components/nav/style.css +23 -2
- package/dist/collection/components/pagination/component.js +92 -94
- package/dist/collection/components/pagination/style.css +23 -2
- package/dist/collection/components/popover-button/component.js +40 -11
- package/dist/collection/components/popover-button/style.css +23 -2
- package/dist/collection/components/progress/component.js +10 -10
- package/dist/collection/components/progress/style.css +21 -0
- package/dist/collection/components/public-api/contract.js +46 -6
- package/dist/collection/components/quote/component.js +6 -6
- package/dist/collection/components/quote/style.css +21 -0
- package/dist/collection/components/select/component.js +61 -61
- package/dist/collection/components/select/style.css +23 -2
- package/dist/collection/components/single-select/component.js +141 -137
- package/dist/collection/components/single-select/style.css +23 -2
- package/dist/collection/components/skip-nav/component.js +3 -3
- package/dist/collection/components/skip-nav/style.css +23 -2
- package/dist/collection/components/spin/component.js +30 -30
- package/dist/collection/components/spin/style.css +29 -1
- package/dist/collection/components/split-button/component.js +5 -5
- package/dist/collection/components/split-button/style.css +23 -2
- package/dist/collection/components/table-stateful/component.js +118 -122
- package/dist/collection/components/table-stateful/style.css +35 -4
- package/dist/collection/components/table-stateless/base.js +11 -2
- package/dist/collection/components/table-stateless/component.js +34 -75
- package/dist/collection/components/table-stateless/style.css +35 -4
- package/dist/collection/components/tabs/component.js +19 -28
- package/dist/collection/components/tabs/style.css +24 -3
- package/dist/collection/components/textarea/component.js +91 -89
- package/dist/collection/components/textarea/style.css +23 -2
- package/dist/collection/components/toaster/shadow.js +3 -4
- 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 +46 -42
- package/dist/collection/components/toolbar/style.css +23 -2
- package/dist/collection/components/tree/component.js +23 -12
- package/dist/collection/components/tree/style.css +21 -0
- package/dist/collection/components/tree-item/component.js +43 -40
- package/dist/collection/components/tree-item/style.css +23 -2
- package/dist/collection/components/version/component.js +3 -3
- 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 +3 -1
- package/dist/collection/index.js +3 -1
- 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/breadcrumb/link-item.js +2 -2
- package/dist/collection/internal/functional-components/button/item.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/counter/api.js +1 -1
- package/dist/collection/internal/functional-components/dialog/component.js +6 -3
- package/dist/collection/internal/functional-components/dialog/item.js +4 -4
- package/dist/collection/internal/functional-components/drawer/component.js +1 -1
- package/dist/collection/internal/functional-components/form/error-link-item.js +2 -2
- 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 +7 -8
- package/dist/collection/internal/functional-components/form-field/custom-suggestions.js +1 -1
- package/dist/collection/internal/functional-components/form-field/msg.js +2 -2
- package/dist/collection/internal/functional-components/form-field/number-value.js +1 -1
- package/dist/collection/internal/functional-components/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/api.js +1 -1
- package/dist/collection/internal/functional-components/link/aria-current-service.js +23 -0
- package/dist/collection/internal/functional-components/link/component.js +2 -2
- package/dist/collection/internal/functional-components/link/item.js +3 -3
- 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 +17 -9
- package/dist/collection/internal/functional-components/popover-button/item.js +2 -2
- package/dist/collection/internal/functional-components/progress/api.js +1 -1
- package/dist/collection/internal/functional-components/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/api.js +1 -1
- package/dist/collection/internal/functional-components/skip-nav/component.js +2 -2
- package/dist/collection/internal/functional-components/skip-nav/link-item.js +2 -2
- package/dist/collection/internal/functional-components/span/component.js +3 -2
- package/dist/collection/internal/functional-components/table-stateful/component.js +17 -0
- package/dist/collection/internal/functional-components/table-stateful/model.js +21 -7
- package/dist/collection/internal/functional-components/table-stateless/api.js +2 -2
- package/dist/collection/internal/functional-components/table-stateless/component.js +11 -8
- package/dist/collection/internal/functional-components/table-stateless/selection-tooltip-item.js +29 -0
- package/dist/collection/internal/functional-components/table-stateless/settings.js +12 -7
- package/dist/collection/internal/functional-components/table-stateless/table-model.js +2 -6
- package/dist/collection/internal/functional-components/tabs/button-item.js +2 -2
- package/dist/collection/internal/functional-components/tabs/component.js +7 -1
- package/dist/collection/internal/functional-components/toolbar/{item.js → entry-item.js} +4 -4
- 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/factory.js +1 -1
- package/dist/collection/internal/props/helpers/normalizers.js +2 -5
- package/dist/collection/internal/props/helpers/validators.js +1 -0
- package/dist/collection/internal/props/index.js +1 -1
- package/dist/collection/internal/props/label-decorative.js +10 -0
- package/dist/collection/locales/de.js +3 -2
- package/dist/collection/locales/en.js +3 -2
- package/dist/collection/schema/bem-registry.js +59 -13
- package/dist/collection/schema/components/index.js +0 -29
- package/dist/collection/schema/i18n-keys.js +29 -28
- package/dist/collection/schema/props/accept.js +1 -7
- package/dist/collection/schema/props/access-key.js +1 -7
- package/dist/collection/schema/props/active.js +1 -7
- package/dist/collection/schema/props/adjust-height.js +1 -7
- package/dist/collection/schema/props/alert-type.js +0 -7
- package/dist/collection/schema/props/align.js +0 -4
- package/dist/collection/schema/props/allow-multi-sort.js +1 -7
- package/dist/collection/schema/props/alt.js +1 -7
- package/dist/collection/schema/props/alternative-button-link-role.js +1 -8
- package/dist/collection/schema/props/aria-controls.js +1 -7
- package/dist/collection/schema/props/aria-current-value.js +1 -10
- package/dist/collection/schema/props/aria-description.js +1 -7
- package/dist/collection/schema/props/aria-details.js +1 -22
- package/dist/collection/schema/props/aria-expanded.js +1 -7
- package/dist/collection/schema/props/aria-labelledby.js +8 -15
- package/dist/collection/schema/props/aria-owns.js +1 -9
- package/dist/collection/schema/props/aria-selected.js +1 -7
- package/dist/collection/schema/props/auto-complete.js +0 -6
- package/dist/collection/schema/props/badge-text.js +1 -7
- package/dist/collection/schema/props/button-callbacks.js +1 -7
- package/dist/collection/schema/props/button-type.js +1 -8
- package/dist/collection/schema/props/button-variant.js +1 -10
- package/dist/collection/schema/props/checked.js +1 -7
- package/dist/collection/schema/props/collapsible.js +1 -7
- package/dist/collection/schema/props/color.js +1 -14
- package/dist/collection/schema/props/current-length.js +1 -7
- package/dist/collection/schema/props/custom-class.js +1 -9
- package/dist/collection/schema/props/disabled.js +1 -15
- package/dist/collection/schema/props/download.js +1 -7
- package/dist/collection/schema/props/error-list.js +1 -14
- package/dist/collection/schema/props/has-closer.js +1 -7
- package/dist/collection/schema/props/has-compact-button.js +1 -7
- package/dist/collection/schema/props/has-counter.js +1 -7
- package/dist/collection/schema/props/has-create-button.js +1 -7
- package/dist/collection/schema/props/has-icons-when-expanded.js +1 -7
- package/dist/collection/schema/props/has-settings-menu.js +1 -7
- package/dist/collection/schema/props/has-value.js +1 -7
- package/dist/collection/schema/props/hide-label.js +1 -7
- package/dist/collection/schema/props/hide-msg.js +1 -7
- package/dist/collection/schema/props/hint.js +1 -7
- package/dist/collection/schema/props/href.js +1 -7
- package/dist/collection/schema/props/icons-input-checkbox.js +1 -18
- package/dist/collection/schema/props/icons.js +0 -43
- package/dist/collection/schema/props/id.js +1 -7
- package/dist/collection/schema/props/image-sizes.js +1 -7
- package/dist/collection/schema/props/image-source.js +1 -7
- package/dist/collection/schema/props/image-srcset.js +1 -7
- package/dist/collection/schema/props/indeterminate.js +1 -7
- package/dist/collection/schema/props/index.js +5 -1
- package/dist/collection/schema/props/inline.js +1 -7
- package/dist/collection/schema/props/label-align.js +1 -8
- package/dist/collection/schema/props/label.js +0 -35
- package/dist/collection/schema/props/link-on-callbacks.js +1 -8
- package/dist/collection/schema/props/link-target.js +1 -7
- package/dist/collection/schema/props/loading.js +1 -8
- package/dist/collection/schema/props/max-length-behavior.js +1 -8
- package/dist/collection/schema/props/max-length.js +1 -7
- package/dist/collection/schema/props/max.js +1 -7
- package/dist/collection/schema/props/modal.js +1 -7
- package/dist/collection/schema/props/msg.js +1 -24
- package/dist/collection/schema/props/multiple.js +1 -7
- package/dist/collection/schema/props/name.js +1 -7
- package/dist/collection/schema/props/open.js +1 -7
- package/dist/collection/schema/props/options.js +1 -11
- package/dist/collection/schema/props/orientation.js +1 -10
- package/dist/collection/schema/props/pagination-position.js +1 -10
- package/dist/collection/schema/props/pattern.js +1 -7
- package/dist/collection/schema/props/placeholder.js +1 -7
- package/dist/collection/schema/props/popover-align.js +1 -7
- package/dist/collection/schema/props/read-only.js +1 -7
- package/dist/collection/schema/props/required.js +1 -7
- package/dist/collection/schema/props/resize-textarea.js +0 -9
- package/dist/collection/schema/props/rows.js +1 -7
- package/dist/collection/schema/props/short-key.js +1 -7
- package/dist/collection/schema/props/show.js +1 -7
- package/dist/collection/schema/props/spell-check.js +1 -9
- package/dist/collection/schema/props/suggestions.js +1 -16
- package/dist/collection/schema/props/tab-behavior.js +1 -8
- package/dist/collection/schema/props/tab-index.js +1 -16
- package/dist/collection/schema/props/table-data-foot.js +1 -21
- package/dist/collection/schema/props/table-data.js +1 -21
- package/dist/collection/schema/props/table-fixed-cols.js +1 -14
- package/dist/collection/schema/props/table-selection.js +1 -22
- package/dist/collection/schema/props/toolbar-items.js +1 -21
- package/dist/collection/schema/props/tooltip-align.js +1 -7
- package/dist/collection/schema/props/touched.js +1 -7
- package/dist/collection/schema/props/type-input-date.js +0 -7
- package/dist/collection/schema/props/type-input-text.js +0 -7
- package/dist/collection/schema/props/unit.js +1 -7
- package/dist/collection/schema/props/variant/dialog.js +1 -8
- package/dist/collection/schema/props/variant/modal.js +1 -4
- package/dist/collection/schema/props/variant/password-variant.js +1 -8
- package/dist/collection/schema/props/variant-alert.js +0 -7
- package/dist/collection/schema/props/variant-class-name.js +0 -33
- package/dist/collection/schema/props/variant-input-checkbox.js +0 -7
- package/dist/collection/schema/props/variant-progress.js +0 -7
- package/dist/collection/schema/props/visibility-toggle.js +1 -7
- package/dist/collection/schema/props/width.js +1 -7
- package/dist/collection/schema/utils/contrast.js +1 -1
- package/dist/collection/schema/utils/prop.validators.js +1 -1
- package/dist/collection/schema/validators/common.js +4 -0
- package/dist/collection/schema/validators/index.js +0 -1
- package/dist/collection/utils/aria-labelledby.js +0 -12
- package/dist/collection/utils/dev.utils.js +1 -2
- package/dist/collection/utils/markdown.js +49 -3
- package/dist/collection/utils/testing/logged-messages.js +4 -0
- package/dist/collection/utils/testing/snapshot-input-testing.js +1 -1
- package/dist/collection/utils/testing/snapshot-testing.js +2 -1
- package/dist/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/aria-current-service.js +4 -0
- package/dist/components/base-web-component.js +1 -1
- package/dist/components/base-web-component2.js +1 -1
- package/dist/components/base-web-component3.js +1 -1
- package/dist/components/base-web-component4.js +1 -1
- package/dist/components/base.js +1 -1
- package/dist/components/base2.js +1 -1
- package/dist/components/base3.js +1 -1
- package/dist/components/base4.js +1 -1
- package/dist/components/behavior.js +1 -1
- package/dist/components/behavior2.js +1 -1
- package/dist/components/behavior3.js +1 -1
- package/dist/components/behavior4.js +1 -1
- package/dist/components/bem-registry.js +1 -1
- package/dist/components/bootstrap.js +1 -1
- package/dist/components/color.js +1 -1
- package/dist/components/component-names.js +1 -1
- package/dist/components/component.js +1 -1
- package/dist/components/component10.js +1 -1
- package/dist/components/component11.js +1 -1
- package/dist/components/component12.js +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/prop.validators.js +4 -0
- 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-foerLIu9.js} +2 -2
- package/dist/esm/{access-and-short-key-ijzCZfHm.js → access-and-short-key-BTEwnScd.js} +2 -0
- package/dist/esm/{api-D92_O-0H.js → api-Ba9FNPRn.js} +29 -31
- package/dist/esm/{app-globals-CBGjgNge.js → app-globals-CqYpXngl.js} +4 -3
- package/dist/esm/aria-current-service-4eUMzpeO.js +27 -0
- package/dist/esm/{aria-labelledby-CLehu03h.js → aria-labelledby-C4wUnR-v.js} +3 -13
- package/dist/esm/{base-BLBSJu_1.js → base-AKIr0rpk.js} +13 -14
- package/dist/esm/{base-qvPPg-dn.js → base-C7nTPc7u.js} +95 -67
- package/dist/esm/{base-DIcqHqMz.js → base-CpUNedp9.js} +13 -14
- package/dist/esm/{base-CHmdLgoO.js → base-D7qItqyf.js} +14 -16
- package/dist/esm/{base-web-component-XgI4wUyN.js → base-web-component-B3wi5eWH.js} +2 -1
- package/dist/esm/{base-web-component-CaAexWy_.js → base-web-component-BpL_hXcg.js} +16 -18
- package/dist/esm/{base-web-component-DbagnM7m.js → base-web-component-DorOeD_U.js} +10 -13
- package/dist/esm/{behavior-B08CXmI4.js → behavior-D9BHiFnH.js} +29 -28
- package/dist/esm/{behavior-CwUUkdaP.js → behavior-DDo87iUM.js} +6 -6
- package/dist/esm/{behavior-DW7_5Wxp.js → behavior-XAV9GSxI.js} +6 -6
- package/dist/esm/{bem-registry-CWN7_O1L.js → bem-registry-CrZZQahR.js} +60 -14
- package/dist/esm/bootstrap-Cz7Iq2I2.js +52 -0
- package/dist/esm/{color-eAL9I7Wq.js → color-CnVBqZd5.js} +3 -3
- package/dist/esm/{component-8ALsFV4i.js → component-0npqUhj2.js} +5 -6
- package/dist/esm/{component-nR5Bf9G5.js → component-BCKsZOoB.js} +6 -5
- package/dist/esm/component-BZjDp_Lf.js +17 -0
- package/dist/esm/component-CjdTbGlP.js +172 -0
- package/dist/esm/component-Cn693XeT.js +47 -0
- package/dist/esm/{component-D0mBOGjS.js → component-Cvd5HXbX.js} +10 -12
- package/dist/esm/{component-DCw1ZAE5.js → component-CvdxCpjC.js} +5 -7
- package/dist/esm/{component-CdKSiR5P.js → component-DFhRTaqb.js} +6 -9
- package/dist/esm/{component-BTMWoACz.js → component-DP_p5few.js} +11 -13
- package/dist/esm/{component-DBAicJ2u.js → component-DlROeCCe.js} +14 -17
- package/dist/esm/component-names-DzmdvSkQ.js +115 -0
- package/dist/esm/{contrast-D78VGPFR.js → contrast-BHjNzQvB.js} +2 -2
- package/dist/esm/{controller-C3O9ohSP.js → controller-DYkXzFqc.js} +5 -5
- package/dist/esm/{dev.utils-wYkYn08d.js → dev.utils-BgFDROtc.js} +1 -2
- package/dist/esm/{devtools-DrBkkLdP.js → devtools-B6h2bVMJ.js} +4 -5
- package/dist/esm/{disabled-Cqhc40CU.js → disabled-BZIZZ6wy.js} +2 -1
- package/dist/esm/{element-focus-BIRmGg5W.js → element-focus-C0L8NWU8.js} +1 -0
- package/dist/esm/{element-interaction-sGYdEpmv.js → element-interaction-B3GEli6r.js} +2 -1
- package/dist/esm/{events-BIT-JUP2.js → events-DdfMb1U7.js} +2 -0
- package/dist/esm/{field-control-Cs5VvsYo.js → field-control-QF0yTcyb.js} +7 -8
- package/dist/esm/{group-uNo1CfbK.js → group-8Me6YSO8.js} +6 -7
- package/dist/esm/{has-closer-B9NQY7BK.js → has-closer-B-uYNNCw.js} +2 -1
- package/dist/esm/{href-JqLbNBsW.js → href-DKPJq0Rh.js} +2 -1
- package/dist/esm/{i18n-Dl6Jjofb.js → i18n-TlIXBsgS.js} +15 -10
- package/dist/esm/{i18n-DtLKn3Xt.js → i18n-Uze_l4Ts.js} +2 -2
- package/dist/esm/{id-CIYvVaNr.js → id-CkUYl2hO.js} +2 -1
- package/dist/esm/{index-BKEJuyFi.js → index-D1fZ9xFt.js} +1677 -46
- package/dist/esm/index.js +14 -12
- package/dist/esm/{input-Dja5Qioc.js → input-DwlolkOG.js} +4 -6
- package/dist/esm/{input-container-C2Am7LEP.js → input-container-DC3x4oGg.js} +6 -9
- package/dist/esm/{item-DIAFIFSy.js → item-DThxrTZc.js} +60 -39
- package/dist/esm/{item-C4AmpdVD.js → item-cArH2C6l.js} +9 -9
- package/dist/esm/{item-pool-BOxAYePG.js → item-pool-D4qvvY-S.js} +2 -0
- package/dist/esm/{item-D627ShRd.js → item-uC3h4pj3.js} +15 -16
- package/dist/esm/{item-ConW1c81.js → item-zPmzbSvE.js} +9 -9
- package/dist/esm/{keyboard-Cnv7zP3N.js → keyboard-DzlBdECG.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 +35 -37
- package/dist/esm/kol-avatar.entry.js +22 -25
- package/dist/esm/kol-badge.entry.js +32 -35
- package/dist/esm/kol-breadcrumb.entry.js +38 -41
- package/dist/esm/kol-button-link.entry.js +34 -36
- package/dist/esm/kol-button.entry.js +34 -36
- package/dist/esm/kol-card.entry.js +59 -101
- package/dist/esm/kol-combobox.entry.js +87 -89
- package/dist/esm/kol-details.entry.js +22 -24
- package/dist/esm/kol-dialog.entry.js +39 -42
- package/dist/esm/kol-drawer.entry.js +39 -42
- package/dist/esm/kol-form.entry.js +32 -35
- package/dist/esm/kol-heading.entry.js +20 -22
- package/dist/esm/kol-icon.entry.js +20 -18
- package/dist/esm/kol-image.entry.js +25 -27
- package/dist/esm/kol-input-checkbox.entry.js +90 -91
- package/dist/esm/kol-input-color.entry.js +69 -70
- package/dist/esm/kol-input-date.entry.js +81 -83
- package/dist/esm/kol-input-email.entry.js +85 -86
- package/dist/esm/kol-input-file.entry.js +62 -63
- package/dist/esm/kol-input-number.entry.js +83 -84
- package/dist/esm/kol-input-password.entry.js +83 -84
- package/dist/esm/kol-input-radio.entry.js +63 -66
- package/dist/esm/kol-input-range.entry.js +67 -69
- package/dist/esm/kol-input-text.entry.js +98 -99
- package/dist/esm/kol-kolibri.entry.js +12 -15
- package/dist/esm/kol-link-button.entry.js +42 -44
- package/dist/esm/kol-link.entry.js +41 -43
- package/dist/esm/kol-meter.entry.js +27 -36
- package/dist/esm/kol-modal.entry.js +39 -42
- package/dist/esm/kol-nav.entry.js +44 -47
- package/dist/esm/kol-pagination.entry.js +70 -73
- package/dist/esm/kol-popover-button.entry.js +67 -104
- package/dist/esm/kol-progress.entry.js +27 -27
- package/dist/esm/kol-quote.entry.js +17 -19
- package/dist/esm/kol-select.entry.js +73 -75
- package/dist/esm/kol-single-select.entry.js +95 -92
- package/dist/esm/kol-skip-nav.entry.js +38 -41
- package/dist/esm/kol-spin.entry.js +26 -29
- package/dist/esm/kol-split-button.entry.js +38 -40
- package/dist/esm/kol-table-stateful.entry.js +136 -109
- package/dist/esm/kol-table-stateless.entry.js +62 -74
- package/dist/esm/kol-tabs.entry.js +54 -60
- package/dist/esm/kol-textarea.entry.js +82 -82
- package/dist/esm/kol-toast-container.entry.js +22 -26
- package/dist/esm/kol-toolbar.entry.js +63 -62
- package/dist/esm/kol-tree-item.entry.js +44 -44
- package/dist/esm/kol-tree.entry.js +35 -25
- package/dist/esm/kol-version.entry.js +25 -28
- package/dist/esm/kolibri.js +7 -6
- package/dist/esm/{label-BRosRgdX.js → label-G82W4YoW.js} +4 -3
- package/dist/esm/{label-hints-Jn18RUT-.js → label-hints-DiRb_zIZ.js} +2 -2
- package/dist/esm/{label-lang-segment-2_GnxjFp.js → label-lang-segment-BSVexfSR.js} +3 -2
- package/dist/esm/label-with-expert-slot-C1i0atAL.js +13 -0
- package/dist/esm/{level-CA1s1_Mf.js → level-CWkPM-CS.js} +2 -1
- package/dist/esm/{link-target-FX94oqMo.js → link-target-B2OC2sZU.js} +2 -1
- package/dist/esm/{links-DwucTqcR.js → links-CiNHSAYH.js} +2 -2
- package/dist/esm/loader.js +6 -5
- package/dist/esm/{multiple-DqrZxybx.js → multiple-CuU2AuEM.js} +2 -1
- package/dist/esm/{number-value-B-SJ1dRo.js → number-value-adUq1zr1.js} +2 -1
- package/dist/esm/{open-DRRv1KFK.js → open-DR8Z7RtS.js} +2 -1
- package/dist/esm/{open-items-cache-D-kml1h6.js → open-items-cache-CS2mDRNB.js} +2 -0
- package/dist/esm/{options-B0rBHetL.js → options-BDTJtk6H.js} +2 -0
- package/dist/esm/{options-DCaUcfAu.js → options-BPwcDIDO.js} +2 -2
- package/dist/esm/{orientation-XNOCaPwy.js → orientation-BUPO9LJU.js} +2 -1
- package/dist/esm/{placeholder-BeLIzdJv.js → placeholder-BTFnryTd.js} +2 -1
- package/dist/esm/{props-from-config-Ci0dILpz.js → props-from-config-DqFgiUwD.js} +136 -63
- package/dist/esm/{read-only-Bby9r6ZX.js → read-only-DRmmHb2G.js} +2 -1
- package/dist/esm/{required-hoaT7UmZ.js → required-D4CdAA4s.js} +2 -1
- package/dist/esm/{resolve-props-D2KiItuv.js → resolve-props-BAambGug.js} +9 -9
- package/dist/esm/{resolve-props-BLZxWC3j.js → resolve-props-Dpl38Wpe.js} +7 -8
- package/dist/esm/{rows-B0x8CR7K.js → rows-DRKSoawJ.js} +2 -1
- package/dist/esm/{scroll-lock-Y2hf47KW.js → scroll-lock-C66lpb8L.js} +9 -7
- package/dist/esm/shared-state-Dn94ivRg.js +14 -0
- package/dist/esm/{smart-button-CS_ZriPt.js → smart-button-BYEk3DzS.js} +2 -2
- package/dist/esm/{spell-check-DzgftyqL.js → spell-check-DlQ_d2GL.js} +2 -1
- package/dist/esm/{src-DaGhmCL1.js → src-Cikg9qhP.js} +2 -1
- package/dist/esm/{step-Bdj89bGO.js → step-C7WPZrUp.js} +2 -1
- package/dist/esm/{suggestions-Dy1X-Pc3.js → suggestions-CotfxJG1.js} +2 -2
- package/dist/esm/{suggestions-DuqzGDve.js → suggestions-qW9OdwO3.js} +3 -3
- package/dist/esm/test-component.entry.js +3 -3
- package/dist/esm/theme-store-DroJsU6S.js +11 -0
- package/dist/esm/{toggle-handler-BRLmxe1J.js → toggle-handler-BB_SIgS1.js} +12 -15
- package/dist/esm/tooltip-open-tracking-CxHWKk8f.js +21 -0
- package/dist/esm/{unique-nav-labels-h2KOu5Qy.js → unique-nav-labels-CQgKoOXd.js} +2 -2
- package/dist/esm/{unit-BUhhJbhT.js → unit-D2lG-lEM.js} +2 -1
- package/dist/esm/{validators-BVM40IEr.js → validators-yh10eyXe.js} +4 -2
- package/dist/esm/{value-string-e9pwLcS-.js → value-string-DwEIOG1f.js} +2 -1
- package/dist/esm/{width-CgYY17tL.js → width-xawzWTVW.js} +2 -1
- package/dist/kolibri/Heading-foerLIu9.js +4 -0
- package/dist/kolibri/access-and-short-key-BTEwnScd.js +4 -0
- package/dist/kolibri/api-Ba9FNPRn.js +4 -0
- package/dist/kolibri/app-globals-CqYpXngl.js +4 -0
- package/dist/kolibri/aria-current-service-4eUMzpeO.js +4 -0
- package/dist/kolibri/aria-labelledby-C4wUnR-v.js +4 -0
- package/dist/kolibri/base-AKIr0rpk.js +4 -0
- package/dist/kolibri/base-C7nTPc7u.js +4 -0
- package/dist/kolibri/base-CpUNedp9.js +4 -0
- package/dist/kolibri/base-D7qItqyf.js +4 -0
- package/dist/kolibri/base-web-component-B3wi5eWH.js +4 -0
- package/dist/kolibri/base-web-component-BpL_hXcg.js +4 -0
- package/dist/kolibri/base-web-component-DorOeD_U.js +4 -0
- package/dist/kolibri/behavior-D9BHiFnH.js +4 -0
- package/dist/kolibri/behavior-DDo87iUM.js +4 -0
- package/dist/kolibri/behavior-XAV9GSxI.js +4 -0
- package/dist/kolibri/bem-registry-CrZZQahR.js +4 -0
- package/dist/kolibri/bootstrap-Cz7Iq2I2.js +4 -0
- package/dist/kolibri/color-CnVBqZd5.js +4 -0
- package/dist/kolibri/component-0npqUhj2.js +4 -0
- package/dist/kolibri/component-BCKsZOoB.js +4 -0
- package/dist/kolibri/component-BZjDp_Lf.js +4 -0
- package/dist/kolibri/component-CjdTbGlP.js +4 -0
- package/dist/kolibri/component-Cn693XeT.js +4 -0
- package/dist/kolibri/component-Cvd5HXbX.js +4 -0
- package/dist/kolibri/component-CvdxCpjC.js +4 -0
- package/dist/kolibri/component-DFhRTaqb.js +4 -0
- package/dist/kolibri/component-DP_p5few.js +4 -0
- package/dist/kolibri/component-DlROeCCe.js +4 -0
- package/dist/kolibri/component-names-DzmdvSkQ.js +4 -0
- package/dist/kolibri/contrast-BHjNzQvB.js +4 -0
- package/dist/kolibri/controller-DYkXzFqc.js +4 -0
- package/dist/kolibri/dev.utils-BgFDROtc.js +4 -0
- package/dist/kolibri/devtools-B6h2bVMJ.js +4 -0
- package/dist/kolibri/disabled-BZIZZ6wy.js +4 -0
- package/dist/kolibri/element-focus-C0L8NWU8.js +4 -0
- package/dist/kolibri/element-interaction-B3GEli6r.js +4 -0
- package/dist/kolibri/events-DdfMb1U7.js +4 -0
- package/dist/kolibri/field-control-QF0yTcyb.js +4 -0
- package/dist/kolibri/group-8Me6YSO8.js +4 -0
- package/dist/kolibri/has-closer-B-uYNNCw.js +4 -0
- package/dist/kolibri/href-DKPJq0Rh.js +4 -0
- package/dist/kolibri/i18n-TlIXBsgS.js +4 -0
- package/dist/kolibri/i18n-Uze_l4Ts.js +4 -0
- package/dist/kolibri/id-CkUYl2hO.js +4 -0
- package/dist/kolibri/index-D1fZ9xFt.js +6 -0
- package/dist/kolibri/index.esm.js +1 -1
- package/dist/kolibri/input-DwlolkOG.js +4 -0
- package/dist/kolibri/input-container-DC3x4oGg.js +4 -0
- package/dist/kolibri/item-DThxrTZc.js +4 -0
- package/dist/kolibri/item-cArH2C6l.js +4 -0
- package/dist/kolibri/item-pool-D4qvvY-S.js +4 -0
- package/dist/kolibri/item-uC3h4pj3.js +4 -0
- package/dist/kolibri/item-zPmzbSvE.js +4 -0
- package/dist/kolibri/keyboard-DzlBdECG.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-G82W4YoW.js +4 -0
- package/dist/kolibri/label-hints-DiRb_zIZ.js +4 -0
- package/dist/kolibri/label-lang-segment-BSVexfSR.js +4 -0
- package/dist/kolibri/label-with-expert-slot-C1i0atAL.js +4 -0
- package/dist/kolibri/level-CWkPM-CS.js +4 -0
- package/dist/kolibri/link-target-B2OC2sZU.js +4 -0
- package/dist/kolibri/links-CiNHSAYH.js +4 -0
- package/dist/kolibri/multiple-CuU2AuEM.js +4 -0
- package/dist/kolibri/number-value-adUq1zr1.js +4 -0
- package/dist/kolibri/open-DR8Z7RtS.js +4 -0
- package/dist/kolibri/open-items-cache-CS2mDRNB.js +4 -0
- package/dist/kolibri/options-BDTJtk6H.js +4 -0
- package/dist/kolibri/options-BPwcDIDO.js +4 -0
- package/dist/kolibri/orientation-BUPO9LJU.js +4 -0
- package/dist/kolibri/placeholder-BTFnryTd.js +4 -0
- package/dist/kolibri/props-from-config-DqFgiUwD.js +4 -0
- package/dist/kolibri/read-only-DRmmHb2G.js +4 -0
- package/dist/kolibri/required-D4CdAA4s.js +4 -0
- package/dist/kolibri/resolve-props-BAambGug.js +4 -0
- package/dist/kolibri/resolve-props-Dpl38Wpe.js +4 -0
- package/dist/kolibri/rows-DRKSoawJ.js +4 -0
- package/dist/kolibri/scroll-lock-C66lpb8L.js +4 -0
- package/dist/kolibri/shared-state-Dn94ivRg.js +4 -0
- package/dist/kolibri/smart-button-BYEk3DzS.js +4 -0
- package/dist/kolibri/spell-check-DlQ_d2GL.js +4 -0
- package/dist/kolibri/src-Cikg9qhP.js +4 -0
- package/dist/kolibri/step-C7WPZrUp.js +4 -0
- package/dist/kolibri/suggestions-CotfxJG1.js +4 -0
- package/dist/kolibri/suggestions-qW9OdwO3.js +4 -0
- package/dist/kolibri/test-component.entry.js +1 -1
- package/dist/kolibri/theme-store-DroJsU6S.js +4 -0
- package/dist/kolibri/toggle-handler-BB_SIgS1.js +4 -0
- package/dist/kolibri/tooltip-open-tracking-CxHWKk8f.js +4 -0
- package/dist/kolibri/unique-nav-labels-CQgKoOXd.js +4 -0
- package/dist/kolibri/unit-D2lG-lEM.js +4 -0
- package/dist/kolibri/validators-yh10eyXe.js +4 -0
- package/dist/kolibri/value-string-DwEIOG1f.js +4 -0
- package/dist/kolibri/width-xawzWTVW.js +4 -0
- package/dist/types/components/accordion/component.d.ts +2 -2
- package/dist/types/components/alert/component.d.ts +3 -2
- package/dist/types/components/badge/component.d.ts +2 -2
- package/dist/types/components/breadcrumb/component.d.ts +2 -2
- package/dist/types/components/button/base.d.ts +1 -1
- package/dist/types/components/button/component.d.ts +2 -2
- package/dist/types/components/button-link/component.d.ts +2 -2
- package/dist/types/components/card/component.d.ts +12 -5
- package/dist/types/components/combobox/component.d.ts +10 -10
- package/dist/types/components/details/component.d.ts +2 -2
- package/dist/types/components/dialog/base.d.ts +1 -1
- package/dist/types/components/dialog/component.d.ts +3 -3
- package/dist/types/components/drawer/component.d.ts +2 -2
- package/dist/types/components/form/component.d.ts +2 -2
- package/dist/types/components/heading/component.d.ts +2 -2
- package/dist/types/components/image/component.d.ts +2 -2
- package/dist/types/components/input-checkbox/component.d.ts +9 -9
- package/dist/types/components/input-color/component.d.ts +4 -4
- package/dist/types/components/input-date/component.d.ts +7 -7
- package/dist/types/components/input-email/component.d.ts +8 -8
- package/dist/types/components/input-file/component.d.ts +4 -4
- package/dist/types/components/input-number/component.d.ts +6 -6
- package/dist/types/components/input-password/component.d.ts +8 -8
- package/dist/types/components/input-radio/component.d.ts +5 -5
- package/dist/types/components/input-range/component.d.ts +4 -4
- package/dist/types/components/input-text/component.d.ts +12 -12
- package/dist/types/components/kolibri/component.d.ts +2 -2
- package/dist/types/components/link/component.d.ts +4 -4
- package/dist/types/components/link-button/component.d.ts +4 -4
- package/dist/types/components/modal/component.d.ts +3 -3
- package/dist/types/components/nav/component.d.ts +2 -2
- package/dist/types/components/pagination/component.d.ts +8 -8
- package/dist/types/components/popover-button/component.d.ts +10 -3
- package/dist/types/components/progress/component.d.ts +1 -0
- package/dist/types/components/public-api/contract.d.ts +7 -2
- package/dist/types/components/select/component.d.ts +6 -6
- package/dist/types/components/single-select/component.d.ts +11 -10
- package/dist/types/components/skip-nav/component.d.ts +2 -2
- package/dist/types/components/spin/component.d.ts +2 -2
- package/dist/types/components/split-button/component.d.ts +2 -2
- package/dist/types/components/table-stateful/component.d.ts +10 -11
- package/dist/types/components/table-stateless/base.d.ts +4 -2
- package/dist/types/components/table-stateless/component.d.ts +5 -8
- package/dist/types/components/tabs/component.d.ts +4 -5
- package/dist/types/components/textarea/component.d.ts +8 -8
- package/dist/types/components/toolbar/component.d.ts +6 -6
- package/dist/types/components/tree/component.d.ts +3 -2
- package/dist/types/components/tree-item/component.d.ts +4 -4
- package/dist/types/components/version/component.d.ts +2 -2
- package/dist/types/components.d.ts +64 -177
- 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 +4 -2
- package/dist/types/internal/functional-components/abbr/api.d.ts +1 -1
- package/dist/types/internal/functional-components/alert/api.d.ts +1 -1
- package/dist/types/internal/functional-components/avatar/api.d.ts +2 -2
- package/dist/types/internal/functional-components/badge/api.d.ts +2 -26
- package/dist/types/internal/functional-components/base-web-component.d.ts +1 -1
- package/dist/types/internal/functional-components/bem-root-node/component.d.ts +8 -4
- package/dist/types/internal/functional-components/breadcrumb/api.d.ts +1 -1
- package/dist/types/internal/functional-components/button/api.d.ts +2 -2
- package/dist/types/internal/functional-components/button/item.d.ts +1 -1
- package/dist/types/internal/functional-components/card/api.d.ts +2 -2
- package/dist/types/internal/functional-components/collapsible/api.d.ts +2 -2
- package/dist/types/internal/functional-components/combobox/api.d.ts +4 -4
- package/dist/types/internal/functional-components/counter/api.d.ts +1 -1
- package/dist/types/internal/functional-components/dialog/api.d.ts +2 -2
- package/dist/types/internal/functional-components/dialog/component.d.ts +8 -4
- package/dist/types/internal/functional-components/dialog/item.d.ts +1 -1
- package/dist/types/internal/functional-components/drawer/api.d.ts +2 -2
- package/dist/types/internal/functional-components/form/api.d.ts +1 -1
- package/dist/types/internal/functional-components/form-association/api.d.ts +1 -1
- package/dist/types/internal/functional-components/form-association/behavior.d.ts +2 -2
- package/dist/types/internal/functional-components/form-field/api.d.ts +3 -3
- package/dist/types/internal/functional-components/form-field/base-web-component.d.ts +2 -2
- package/dist/types/internal/functional-components/form-field/custom-suggestions.d.ts +1 -0
- package/dist/types/internal/functional-components/form-field/number-value.d.ts +1 -1
- package/dist/types/internal/functional-components/form-field/select-value.d.ts +1 -1
- package/dist/types/internal/functional-components/generic-types.d.ts +2 -2
- package/dist/types/internal/functional-components/heading/api.d.ts +2 -2
- package/dist/types/internal/functional-components/icon/api.d.ts +1 -1
- package/dist/types/internal/functional-components/image/api.d.ts +2 -2
- package/dist/types/internal/functional-components/input-checkbox/api.d.ts +3 -3
- package/dist/types/internal/functional-components/input-color/api.d.ts +4 -28
- package/dist/types/internal/functional-components/input-date/api.d.ts +4 -28
- package/dist/types/internal/functional-components/input-email/api.d.ts +4 -28
- package/dist/types/internal/functional-components/input-file/api.d.ts +4 -28
- package/dist/types/internal/functional-components/input-number/api.d.ts +4 -28
- package/dist/types/internal/functional-components/input-password/api.d.ts +4 -28
- package/dist/types/internal/functional-components/input-radio/api.d.ts +3 -3
- package/dist/types/internal/functional-components/input-range/api.d.ts +4 -4
- package/dist/types/internal/functional-components/input-text/api.d.ts +4 -28
- package/dist/types/internal/functional-components/kolibri/api.d.ts +1 -1
- package/dist/types/internal/functional-components/link/api.d.ts +2 -2
- package/dist/types/internal/functional-components/meter/api.d.ts +3 -3
- package/dist/types/internal/functional-components/nav/api.d.ts +2 -2
- package/dist/types/internal/functional-components/pagination/api.d.ts +2 -2
- package/dist/types/internal/functional-components/pagination/item.d.ts +5 -3
- package/dist/types/internal/functional-components/pagination/page-size-select.d.ts +2 -1
- package/dist/types/internal/functional-components/popover/api.d.ts +1 -1
- package/dist/types/internal/functional-components/popover-button/api.d.ts +2 -2
- package/dist/types/internal/functional-components/progress/api.d.ts +3 -3
- package/dist/types/internal/functional-components/quote/api.d.ts +2 -2
- package/dist/types/internal/functional-components/select/api.d.ts +4 -4
- package/dist/types/internal/functional-components/single-select/api.d.ts +4 -4
- package/dist/types/internal/functional-components/single-select/component.d.ts +3 -0
- package/dist/types/internal/functional-components/skip-nav/api.d.ts +1 -1
- package/dist/types/internal/functional-components/spin/api.d.ts +1 -1
- package/dist/types/internal/functional-components/split-button/api.d.ts +1 -1
- package/dist/types/internal/functional-components/table-stateful/api.d.ts +2 -2
- package/dist/types/internal/functional-components/table-stateful/component.d.ts +10 -0
- package/dist/types/internal/functional-components/table-stateful/model.d.ts +4 -2
- package/dist/types/internal/functional-components/table-stateless/api.d.ts +2 -2
- package/dist/types/internal/functional-components/table-stateless/component.d.ts +2 -0
- package/dist/types/internal/functional-components/table-stateless/selection-tooltip-item.d.ts +10 -0
- package/dist/types/internal/functional-components/table-stateless/table-model.d.ts +5 -5
- package/dist/types/internal/functional-components/tabs/api.d.ts +2 -2
- package/dist/types/internal/functional-components/text-input/api.d.ts +4 -28
- package/dist/types/internal/functional-components/textarea/api.d.ts +4 -4
- package/dist/types/internal/functional-components/toolbar/api.d.ts +3 -3
- package/dist/types/internal/functional-components/toolbar/{item.d.ts → entry-item.d.ts} +1 -1
- package/dist/types/internal/functional-components/tooltip/api.d.ts +2 -2
- package/dist/types/internal/functional-components/tree/api.d.ts +1 -1
- package/dist/types/internal/functional-components/tree-item/api.d.ts +2 -2
- package/dist/types/internal/functional-components/version/api.d.ts +1 -1
- package/dist/types/internal/props/breadcrumb-links.d.ts +1 -1
- package/dist/types/internal/props/helpers/iso-date.d.ts +1 -5
- package/dist/types/internal/props/helpers/normalizers.d.ts +1 -2
- package/dist/types/internal/props/helpers/validators.d.ts +2 -1
- package/dist/types/internal/props/index.d.ts +2 -1
- package/dist/types/internal/props/info-popover.d.ts +1 -1
- package/dist/types/internal/props/input-date-max.d.ts +1 -1
- package/dist/types/internal/props/input-date-min.d.ts +1 -1
- package/dist/types/internal/props/label-decorative.d.ts +4 -0
- package/dist/types/internal/props/nav-links.d.ts +1 -1
- package/dist/types/internal/props/skip-nav-links.d.ts +1 -1
- package/dist/types/internal/props/smart-button.d.ts +1 -25
- package/dist/types/internal/props/table-headers.d.ts +2 -2
- package/dist/types/internal/props/table-stateful-headers.d.ts +2 -2
- package/dist/types/internal/props/value-input-date.d.ts +1 -1
- 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/alert.d.ts +2 -8
- package/dist/types/schema/components/badge.d.ts +3 -16
- package/dist/types/schema/components/breadcrumb.d.ts +0 -15
- package/dist/types/schema/components/button.d.ts +3 -3
- package/dist/types/schema/components/card.d.ts +0 -9
- package/dist/types/schema/components/form.d.ts +0 -13
- package/dist/types/schema/components/index.d.ts +0 -29
- package/dist/types/schema/components/link.d.ts +2 -2
- package/dist/types/schema/components/pagination.d.ts +3 -17
- package/dist/types/schema/components/popover-button.d.ts +3 -6
- package/dist/types/schema/components/table.d.ts +2 -3
- package/dist/types/schema/components/tableStateless.d.ts +5 -4
- package/dist/types/schema/components/tabs.d.ts +3 -21
- package/dist/types/schema/components/textarea.d.ts +0 -28
- package/dist/types/schema/i18n-keys.d.ts +29 -28
- package/dist/types/schema/index.d.ts +1 -1
- package/dist/types/schema/props/accept.d.ts +0 -3
- package/dist/types/schema/props/access-key.d.ts +0 -2
- package/dist/types/schema/props/active.d.ts +0 -3
- package/dist/types/schema/props/adjust-height.d.ts +0 -2
- package/dist/types/schema/props/alert-type.d.ts +0 -2
- package/dist/types/schema/props/align.d.ts +0 -2
- package/dist/types/schema/props/allow-multi-sort.d.ts +0 -3
- package/dist/types/schema/props/alt.d.ts +0 -3
- package/dist/types/schema/props/alternative-button-link-role.d.ts +1 -5
- package/dist/types/schema/props/aria-controls.d.ts +0 -2
- package/dist/types/schema/props/aria-current-value.d.ts +1 -5
- package/dist/types/schema/props/aria-description.d.ts +0 -2
- package/dist/types/schema/props/aria-details.d.ts +0 -2
- package/dist/types/schema/props/aria-expanded.d.ts +0 -2
- package/dist/types/schema/props/aria-labelledby.d.ts +1 -2
- package/dist/types/schema/props/aria-owns.d.ts +0 -2
- package/dist/types/schema/props/aria-selected.d.ts +0 -2
- package/dist/types/schema/props/auto-complete.d.ts +0 -2
- package/dist/types/schema/props/badge-text.d.ts +0 -2
- package/dist/types/schema/props/button-callbacks.d.ts +0 -3
- package/dist/types/schema/props/button-type.d.ts +1 -5
- package/dist/types/schema/props/button-variant.d.ts +1 -5
- package/dist/types/schema/props/checked.d.ts +0 -2
- package/dist/types/schema/props/collapsible.d.ts +0 -2
- package/dist/types/schema/props/color.d.ts +0 -4
- package/dist/types/schema/props/current-length.d.ts +0 -3
- package/dist/types/schema/props/custom-class.d.ts +0 -2
- package/dist/types/schema/props/disabled.d.ts +0 -2
- package/dist/types/schema/props/download.d.ts +0 -2
- package/dist/types/schema/props/error-list.d.ts +0 -2
- package/dist/types/schema/props/has-closer.d.ts +0 -2
- package/dist/types/schema/props/has-compact-button.d.ts +0 -2
- package/dist/types/schema/props/has-counter.d.ts +0 -3
- package/dist/types/schema/props/has-create-button.d.ts +0 -2
- package/dist/types/schema/props/has-icons-when-expanded.d.ts +0 -2
- package/dist/types/schema/props/has-settings-menu.d.ts +0 -2
- package/dist/types/schema/props/has-value.d.ts +0 -3
- package/dist/types/schema/props/hide-label.d.ts +0 -3
- package/dist/types/schema/props/hide-msg.d.ts +0 -3
- package/dist/types/schema/props/hint.d.ts +0 -2
- package/dist/types/schema/props/href.d.ts +2 -4
- package/dist/types/schema/props/icons-input-checkbox.d.ts +0 -2
- package/dist/types/schema/props/icons.d.ts +0 -3
- package/dist/types/schema/props/id.d.ts +0 -2
- package/dist/types/schema/props/image-sizes.d.ts +0 -3
- package/dist/types/schema/props/image-source.d.ts +0 -3
- package/dist/types/schema/props/image-srcset.d.ts +0 -3
- package/dist/types/schema/props/indeterminate.d.ts +0 -2
- package/dist/types/schema/props/index.d.ts +5 -1
- package/dist/types/schema/props/inline.d.ts +0 -3
- package/dist/types/schema/props/label-align.d.ts +1 -5
- package/dist/types/schema/props/label.d.ts +4 -7
- package/dist/types/schema/props/link-on-callbacks.d.ts +0 -2
- package/dist/types/schema/props/link-target.d.ts +0 -2
- package/dist/types/schema/props/loading.d.ts +1 -5
- package/dist/types/schema/props/max-length-behavior.d.ts +1 -5
- package/dist/types/schema/props/max-length.d.ts +0 -3
- package/dist/types/schema/props/max.d.ts +0 -4
- package/dist/types/schema/props/modal.d.ts +0 -2
- package/dist/types/schema/props/msg.d.ts +0 -2
- package/dist/types/schema/props/multiple.d.ts +0 -3
- package/dist/types/schema/props/name.d.ts +0 -3
- package/dist/types/schema/props/open.d.ts +0 -3
- package/dist/types/schema/props/options.d.ts +0 -4
- package/dist/types/schema/props/orientation.d.ts +1 -5
- package/dist/types/schema/props/pagination-position.d.ts +1 -5
- package/dist/types/schema/props/pattern.d.ts +0 -3
- package/dist/types/schema/props/placeholder.d.ts +0 -3
- package/dist/types/schema/props/popover-align.d.ts +0 -2
- package/dist/types/schema/props/read-only.d.ts +0 -2
- package/dist/types/schema/props/required.d.ts +0 -2
- package/dist/types/schema/props/resize-textarea.d.ts +0 -2
- package/dist/types/schema/props/rows.d.ts +0 -2
- package/dist/types/schema/props/short-key.d.ts +0 -2
- package/dist/types/schema/props/show.d.ts +0 -3
- package/dist/types/schema/props/spell-check.d.ts +0 -2
- package/dist/types/schema/props/suggestions.d.ts +0 -2
- package/dist/types/schema/props/tab-behavior.d.ts +1 -5
- package/dist/types/schema/props/tab-index.d.ts +0 -2
- package/dist/types/schema/props/table-callbacks.d.ts +5 -5
- package/dist/types/schema/props/table-data-foot.d.ts +0 -3
- package/dist/types/schema/props/table-data.d.ts +0 -3
- package/dist/types/schema/props/table-fixed-cols.d.ts +0 -2
- package/dist/types/schema/props/table-headers.d.ts +3 -0
- package/dist/types/schema/props/table-selection.d.ts +0 -2
- package/dist/types/schema/props/toolbar-items.d.ts +0 -2
- package/dist/types/schema/props/tooltip-align.d.ts +0 -2
- package/dist/types/schema/props/touched.d.ts +0 -2
- package/dist/types/schema/props/type-input-date.d.ts +4 -2
- package/dist/types/schema/props/type-input-text.d.ts +0 -2
- package/dist/types/schema/props/unit.d.ts +0 -2
- package/dist/types/schema/props/variant/dialog.d.ts +1 -5
- package/dist/types/schema/props/variant/modal.d.ts +0 -1
- package/dist/types/schema/props/variant/password-variant.d.ts +1 -5
- package/dist/types/schema/props/variant-alert.d.ts +0 -2
- package/dist/types/schema/props/variant-class-name.d.ts +0 -3
- package/dist/types/schema/props/variant-input-checkbox.d.ts +0 -2
- package/dist/types/schema/props/variant-progress.d.ts +0 -2
- package/dist/types/schema/props/visibility-toggle.d.ts +0 -3
- package/dist/types/schema/props/width.d.ts +0 -3
- package/dist/types/schema/types/button-link-text.d.ts +4 -4
- package/dist/types/schema/validators/common.d.ts +2 -0
- package/dist/types/schema/validators/index.d.ts +0 -1
- package/dist/types/stencil-public-runtime.d.ts +1 -1
- package/dist/types/utils/aria-labelledby.d.ts +0 -6
- package/dist/types/utils/testing/logged-messages.d.ts +1 -0
- package/dist/types/utils/testing/snapshot-input-testing.d.ts +2 -1
- package/dist/types/utils/testing/snapshot-testing.d.ts +4 -1
- package/doc/badge.md +21 -6
- package/doc/button.md +13 -0
- package/doc/combobox.md +23 -23
- package/doc/input-checkbox.md +17 -2
- package/doc/input-color.md +22 -22
- package/doc/input-date.md +28 -28
- package/doc/input-email.md +30 -30
- package/doc/input-file.md +22 -22
- package/doc/input-number.md +43 -28
- package/doc/input-password.md +29 -29
- package/doc/input-radio.md +19 -19
- package/doc/input-range.md +24 -24
- package/doc/input-text.md +31 -31
- package/doc/link.md +13 -0
- package/doc/pagination.md +13 -13
- package/doc/quote.md +13 -0
- package/doc/select.md +24 -24
- package/doc/single-select.md +24 -24
- package/doc/table-stateful.md +33 -16
- package/doc/table-stateless.md +31 -15
- package/doc/tabs.md +1 -1
- package/doc/textarea.md +29 -29
- package/package.json +25 -17
- package/vscode-custom-data.json +53 -158
- 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/card/base.js +0 -79
- package/dist/collection/components/click-button/component.js +0 -105
- package/dist/collection/components/link/ariaCurrentService.js +0 -23
- package/dist/collection/components/popover-button/base.js +0 -69
- 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/components/button-link.js +0 -1
- package/dist/collection/schema/components/collapsible.js +0 -1
- package/dist/collection/schema/components/combobox.js +0 -1
- package/dist/collection/schema/components/details.js +0 -1
- package/dist/collection/schema/components/dialog.js +0 -1
- package/dist/collection/schema/components/drawer.js +0 -1
- package/dist/collection/schema/components/heading.js +0 -1
- package/dist/collection/schema/components/input-checkbox.js +0 -1
- package/dist/collection/schema/components/input-color.js +0 -1
- package/dist/collection/schema/components/input-date.js +0 -1
- package/dist/collection/schema/components/input-email.js +0 -1
- package/dist/collection/schema/components/input-file.js +0 -1
- package/dist/collection/schema/components/input-number.js +0 -1
- package/dist/collection/schema/components/input-password.js +0 -1
- package/dist/collection/schema/components/input-radio.js +0 -1
- package/dist/collection/schema/components/input-range.js +0 -1
- package/dist/collection/schema/components/input-text.js +0 -1
- package/dist/collection/schema/components/kolibri.js +0 -1
- package/dist/collection/schema/components/link-button.js +0 -1
- package/dist/collection/schema/components/modal.js +0 -1
- package/dist/collection/schema/components/nav.js +0 -1
- package/dist/collection/schema/components/select.js +0 -1
- package/dist/collection/schema/components/single-select.js +0 -1
- package/dist/collection/schema/components/skip-nav.js +0 -1
- package/dist/collection/schema/components/split-button.js +0 -1
- package/dist/collection/schema/components/toolbar.js +0 -1
- package/dist/collection/schema/components/tree-item.js +0 -1
- package/dist/collection/schema/components/tree.js +0 -1
- package/dist/collection/schema/components/version.js +0 -1
- package/dist/collection/schema/props/table-header-cells.js +0 -36
- package/dist/collection/schema/validators/alignment.js +0 -10
- package/dist/collection/utils/testing/legacy-component.js +0 -16
- package/dist/components/aria-labelledby.js +0 -4
- package/dist/components/ariaCurrentService.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/card/base.d.ts +0 -27
- package/dist/types/components/click-button/component.d.ts +0 -15
- package/dist/types/components/popover-button/base.d.ts +0 -21
- 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/components/accordion.d.ts +0 -11
- package/dist/types/schema/components/button-link.d.ts +0 -7
- package/dist/types/schema/components/collapsible.d.ts +0 -7
- package/dist/types/schema/components/combobox.d.ts +0 -26
- package/dist/types/schema/components/details.d.ts +0 -11
- package/dist/types/schema/components/dialog.d.ts +0 -21
- package/dist/types/schema/components/drawer.d.ts +0 -17
- package/dist/types/schema/components/heading.d.ts +0 -17
- package/dist/types/schema/components/input-checkbox.d.ts +0 -25
- package/dist/types/schema/components/input-color.d.ts +0 -25
- package/dist/types/schema/components/input-date.d.ts +0 -34
- package/dist/types/schema/components/input-email.d.ts +0 -31
- package/dist/types/schema/components/input-file.d.ts +0 -22
- package/dist/types/schema/components/input-number.d.ts +0 -33
- package/dist/types/schema/components/input-password.d.ts +0 -31
- package/dist/types/schema/components/input-radio.d.ts +0 -22
- package/dist/types/schema/components/input-range.d.ts +0 -27
- package/dist/types/schema/components/input-text.d.ts +0 -33
- package/dist/types/schema/components/kolibri.d.ts +0 -21
- package/dist/types/schema/components/link-button.d.ts +0 -7
- package/dist/types/schema/components/modal.d.ts +0 -4
- package/dist/types/schema/components/nav.d.ts +0 -16
- package/dist/types/schema/components/select.d.ts +0 -24
- package/dist/types/schema/components/single-select.d.ts +0 -24
- package/dist/types/schema/components/skip-nav.d.ts +0 -16
- package/dist/types/schema/components/split-button.d.ts +0 -9
- package/dist/types/schema/components/toolbar.d.ts +0 -11
- package/dist/types/schema/components/tree-item.d.ts +0 -12
- package/dist/types/schema/components/tree.d.ts +0 -10
- package/dist/types/schema/components/version.d.ts +0 -10
- package/dist/types/schema/props/table-header-cells.d.ts +0 -11
- package/dist/types/schema/validators/alignment.d.ts +0 -3
- package/dist/types/utils/testing/legacy-component.d.ts +0 -4
- package/doc/skeleton.md +0 -54
- /package/dist/collection/{components → internal/functional-components}/tree/open-items-cache.js +0 -0
- /package/dist/collection/schema/{components/accordion.js → props/table-headers.js} +0 -0
- /package/dist/types/{components/link/ariaCurrentService.d.ts → internal/functional-components/link/aria-current-service.d.ts} +0 -0
- /package/dist/types/{components → internal/functional-components}/tree/open-items-cache.d.ts +0 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{j as e,x as i,W as t,h as o}from"./index-D1fZ9xFt.js";import{c as s,b as l,n as r,a,e as n,B as d,t as h}from"./props-from-config-DqFgiUwD.js";import{r as c}from"./aria-labelledby-C4wUnR-v.js";import{S as p,b as u,s as b}from"./component-CjdTbGlP.js";import{a as m}from"./tslib.es6-QNbPBOk5.js";import{a as v}from"./dev.utils-BgFDROtc.js";import{K as f,d as g}from"./events-DdfMb1U7.js";import{d as y}from"./disabled-BZIZZ6wy.js";import{T as j,k as B,h as _,e as L}from"./component-0npqUhj2.js";import{l as O}from"./label-with-expert-slot-C1i0atAL.js";import{n as D}from"./component-DP_p5few.js";import{B as F}from"./base-web-component-B3wi5eWH.js";import{c as T}from"./item-cArH2C6l.js";import{F as w}from"./behavior-D9BHiFnH.js";import{c as C}from"./item-uC3h4pj3.js";import{T as x}from"./behavior-DDo87iUM.js";import{t as N}from"./i18n-Uze_l4Ts.js";import{b as P}from"./bem-registry-CrZZQahR.js";import{P as A}from"./component-DFhRTaqb.js";import{A as H}from"./component-Cvd5HXbX.js";function k(e,i){return Boolean(e)&&!0===i}function K(e){var i;return"string"==typeof e?"error":null!==(i=null==e?void 0:e._type)&&void 0!==i?i:"error"}const M=s("ariaDetails","",l),I=s("hideMsg",!1,r),q=s("hint","",l),S=s("infoPopover",void 0,(function(e){if("object"==typeof e&&null!==e)return e;throw new Error("Invalid info popover: "+typeof e)})),E=a(),U=s("msg",void 0,(function(i){if("string"==typeof i)try{return e(i)}catch(e){return i}return i}),(function(e){return void 0===e||("string"==typeof e?e.length>0:i(e)&&t(e._description,1))})),Z=s("touched",!1,r),R=e=>{var{id:i,class:t,hint:s,baseClassName:l="kol-form-field"}=e,r=m(e,["id","class","hint","baseClassName"]);return s?o("span",Object.assign({class:n(`${l}__hint`,t),id:v(i||"","hint")},r),s):null},$=e=>{var{component:i="label",id:t,baseClassName:s="kol-form-field",class:l,accessKey:r,shortKey:a,label:d,hideLabel:h,hasExpertSlot:c,omitId:b,showBadge:f=!0,readOnly:g,infoPopover:y}=e,j=m(e,["component","id","baseClassName","class","accessKey","shortKey","label","hideLabel","hasExpertSlot","omitId","showBadge","readOnly","infoPopover"]);const B=!c&&h,_=!1===f?void 0:u(r,a);return o(i,Object.assign({},j,{class:n(`${s}__label`,l),id:B||b?void 0:v(t,"label"),hidden:B,htmlFor:"legend"===i?void 0:t}),o(p,{class:`${s}__label-text`,label:c?"":null!=d?d:"",badgeText:_},o("slot",{name:"expert"})),!c&&g&&o("span",{class:`${s}__label__read-only`,"aria-hidden":"true"},"(",N("kol-readonly"),")"),!c&&y&&o("span",null,o(A,Object.assign({},y.popoverButton),o("div",{class:"kol-popover-button__popover--styled"},y.content))))},z=i=>{var t,s,{alert:l,hideMsg:r,msg:a,id:d,class:h}=i,c=m(i,["alert","hideMsg","msg","id","class"]);const p=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}(a);return o(H,Object.assign({alert:!r&&(null!==(t=null==p?void 0:p._alert)&&void 0!==t?t:!0===l),class:n("kol-form-field__msg",r&&"visually-hidden",h),closerAriaDescriptionId:v(d,"msg-closer-description"),handleCloserClick:()=>{},hasCloser:!1,headingId:v(d,"msg-heading"),id:v(d,"msg"),label:"",level:0,refCloserButton:()=>{},refCloserTooltip:()=>{},type:null!==(s=null==p?void 0:p._type)&&void 0!==s?s:"error",variant:"msg"},c),(null==p?void 0:p._description)||void 0)},Q=P.forBlock("kol-form-field"),W=({hideLabel:e,label:i,renderNoTooltip:t})=>!t&&!b(i)&&!0===e,X=e=>{const i=K(e);return{[i]:!0,[`msg-type-${i}`]:!0}},G=(e,i)=>{const{renderNoLabel:t,renderNoTooltip:s,renderNoHint:l,id:r,required:a,alert:h,disabled:c,class:p,msg:f,hideMsg:g,hideLabel:y,label:_,infoPopover:L,hint:O,accessKey:D,shortKey:F,counter:T,readOnly:w,touched:C,maxLength:x,ariaDescribedBy:P,showBadge:A,tooltipAlign:H,variant:K,component:M="div",orientation:I,refInput:q,refTooltip:S}=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"]),U=b(_),Z=k(f,C),G=u(D,F),V=W({hideLabel:y,label:_,renderNoTooltip:s}),J="fieldset"===M;return o(d,Object.assign({component:M,block:"kol-form-field",modifiers:Object.assign({disabled:Boolean(c),required:Boolean(a),touched:Boolean(C),"hide-label":Boolean(y),"read-only":Boolean(w),"hidden-msg":Boolean(g)},Z?X(f):{}),class:n(K&&B(K,"form-field"),p),disabled:!(!J||!c)||void 0,"aria-describedby":P},E),!t&&o($,{component:J?"legend":"label",class:J?"kol-form-field__label--legend":void 0,id:r,hasExpertSlot:U,hideLabel:y,label:_,accessKey:D,shortKey:F,readOnly:w,showBadge:A,infoPopover:L}),o("div",{class:Q("input",{"orientation-horizontal":"horizontal"===I,"orientation-vertical":"vertical"===I}),ref:q},i,V&&o("div",{class:Q("tooltip")},o(j,{badgeText:G||"",label:_,align:H,id:v(r,"label"),refFloating:S}))),T&&!("soft"===T.maxLengthBehavior&&"number"!=typeof T.maxLength)&&o("div",{class:Q("counter")},o("span",{"aria-hidden":"true",class:Q("counter"),ref:T.visualRef}),o("span",{"aria-live":"polite",class:"visually-hidden",id:v(r,"counter"),ref:T.ariaRef})),Z&&o(z,{id:r,alert:h,hideMsg:g,msg:f}),!l&&o(R,{id:r,hint:O}),"number"==typeof x&&!T&&o("span",{id:v(r,"character-limit-hint"),class:"visually-hidden"},N("kol-character-limit-hint",{placeholders:{limit:String(x)}})))};class V extends F{constructor(){super(...arguments),this.tooltipBehavior=new x(F.stateLess),this.smartButton=T((()=>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(f.change,i),null===(o=null===(t=this._on)||void 0===t?void 0:t.onChange)||void 0===o||o.call(t,e,i)},this.handleInput=(e,i)=>{var t,o;e.stopPropagation(),void 0===i&&(i=e.target.value),this.emit(f.input,i),this.formAssociation.setFormAssociatedValue(i),null===(o=null===(t=this._on)||void 0===t?void 0:t.onInput)||void 0===o||o.call(t,e,i)},this.handleClick=e=>{var i,t;this.emit(f.click),null===(t=null===(i=this._on)||void 0===i?void 0:i.onClick)||void 0===t||t.call(i,e)},this.handleFocus=e=>{var i,t;this.focusEventSent||(this.emit(f.focus),null===(t=null===(i=this._on)||void 0===i?void 0:i.onFocus)||void 0===t||t.call(i,e),this.focusEventSent=!0),this.shared.setState("inputHasFocus",!0)},this.handleBlur=e=>{this.handleFocusLeave(e),this.shared.setState("inputHasFocus",!1)},this.handleKeyDown=e=>{var i,t;this.emit(f.keydown),null===(t=null===(i=this._on)||void 0===i?void 0:i.onKeyDown)||void 0===t||t.call(i,e)},this.setInputRef=e=>{this.tooltipAnchor=e,e&&this.isTooltipShown()&&(this.tooltipBehavior.initContext(e),this.tooltipBehavior.syncListeners(void 0,e,!0))},this.setTooltipRef=e=>{this.tooltipBehavior.setTooltipElementRef(e)}}connectedCallback(){this.syncFormField(),this.tooltipAnchor&&this.isTooltipShown()&&(this.tooltipBehavior.initContext(this.tooltipAnchor),this.tooltipBehavior.syncListeners(void 0,this.tooltipAnchor,!0))}get shared(){return this}initFormAssociation(e,i){this.formAssociation=new w(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()}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){M.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=c(this.host,this.shared.getRenderProp("ariaDetails")),r=this.pushedDetailsElements;(s!==this.ariaDetailsTarget||(null!==(t=null==r?void 0:r.length)&&void 0!==t?t:0)!==l.length||null!==(o=null==r?void 0:r.some(((e,i)=>e!==l[i])))&&void 0!==o&&o)&&(this.ariaDetailsTarget=s,this.pushedDetailsElements=l,s.ariaDetailsElements=l.length?l:null)}applyDisabled(e){y.apply(e,(e=>this.shared.setRenderProp("disabled",e)))}applyHideLabel(e){_.apply(e,(e=>this.shared.setRenderProp("hideLabel",e)))}applyHideMsg(e){I.apply(e,(e=>this.shared.setRenderProp("hideMsg",e)))}applyHint(e){q.apply(e,(e=>this.shared.setRenderProp("hint",e)))}applyInfoPopover(e){S.apply(e,(e=>this.shared.setRenderProp("infoPopover",e)))}applyLabel(e){O.apply(e,(e=>this.shared.setRenderProp("label",e)),this.isRequired("label"))}applyMsg(e){U.apply(e,(e=>this.shared.setRenderProp("msg",e)))}applyName(e){D.apply(e,(e=>this.shared.setRenderProp("name",e))),this.formAssociation.watchName(e)}applyOn(e){E.apply(e,(e=>this.shared.setRenderProp("on",e)))}applySyncValueBySelector(e){this.formAssociation.watchSyncValueBySelector(e)}applyTooltipAlign(e){L.apply(null!=e?e:"top",(e=>this.shared.setRenderProp("tooltipAlign",e)))}applyTouched(e){Z.apply(e,(e=>this.shared.setRenderProp("touched",e)))}get eventHost(){var e,i;return null!==(i=null===(e=this.formAssociation)||void 0===e?void 0:e.host)&&void 0!==i?i:this.host}emit(e,i){this.eventHost&&g(this.eventHost,e,i)}handleFocusLeave(e){var i,t;if(this._disabled)return;const o=this.eventHost,s=(null==o?void 0:o.shadowRoot)||o,l=(null==s?void 0:s.contains(e.relatedTarget))||o===e.relatedTarget;this.focusEventSent&&!l&&(this._touched=!0,this.emit(f.blur),null===(t=null===(i=this._on)||void 0===i?void 0:i.onBlur)||void 0===t||t.call(i,e),this.focusEventSent=!1)}getAria(){const e=this.shared;return(({id:e,msg:i,hint:t,touched:o})=>{const s="string"==typeof i?i:null==i?void 0:i._description,l=Boolean(s&&s.length>0),r="error"===K(i)&&l&&!0===o,a="string"==typeof t&&t.length>0,n=[];return l&&!0===o&&n.push(v(e,"msg")),a&&n.push(v(e,"hint")),{hasError:r,hasHint:a,ariaDescribedBy:n}})({id:e.getState("id"),msg:e.getRenderProp("msg"),hint:e.getRenderProp("hint"),touched:e.getRenderProp("touched")})}showAsAlert(){return Boolean(this.shared.getRenderProp("touched"))&&!this.shared.getState("inputHasFocus")}isTooltipShown(){const e=this.shared;return W({hideLabel:e.getRenderProp("hideLabel"),label:h(e.getRenderProp("label"))})}getLabelTooltipRefs(){return{refInput:this.setInputRef,refTooltip:this.setTooltipRef}}getFormFieldProps({class:e,accessKey:i,shortKey:t,variant:o,counter:s,maxLength:l,readOnly:r,renderNoLabel:a,renderNoTooltip:n,required:d}){const h=this.shared,c=h.getState("id"),p=h.getRenderProp("label"),b=h.getRenderProp("tooltipAlign");return this.isTooltipShown()?(this.tooltipBehavior.watchAlign(b),this.tooltipBehavior.watchBadgeText(u(i,t)||""),this.tooltipBehavior.watchId(v(c,"label")),this.tooltipBehavior.watchLabel(p)):this.tooltipBehavior.destroy(),{id:c,disabled:h.getRenderProp("disabled"),msg:h.getRenderProp("msg"),hint:h.getRenderProp("hint"),label:p,hideLabel:h.getRenderProp("hideLabel"),hideMsg:h.getRenderProp("hideMsg"),touched:h.getRenderProp("touched"),showBadge:Boolean(i)||Boolean(t),required:d,readOnly:r,accessKey:i,shortKey:t,maxLength:l,counter:s,variant:o,class:e,tooltipAlign:b,alert:this.showAsAlert(),infoPopover:this.getInfoPopover(),renderNoLabel:a,renderNoTooltip:n,refInput:n?void 0:this.setInputRef,refTooltip:this.setTooltipRef}}}function J({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?h(t):void 0}}const Y={required:[O],optional:[M,y,_,I,q,S,E,U,D,L,Z]};export{V as B,G as F,R as a,$ as b,J as c,Y as f,K as g,k 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-D1fZ9xFt.js";import{s as r}from"./theme-store-DroJsU6S.js";const a=(()=>{r(),t((o=>{try{o.shadowRoot instanceof ShadowRoot&&s(o,e(o))}catch(o){}return"default"})),import("./devtools-B6h2bVMJ.js").then((o=>{"object"==typeof o&&null!==o&&"function"==typeof o.initialize&&o.initialize()})).catch((t=>{o.error(t)}))})||(()=>{});export{a as g}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{g as s}from"./shared-state-Dn94ivRg.js";import"./index-D1fZ9xFt.js";const t=s("location",(()=>({subscribers:[]}))),o=s=>{t.current=s,t.subscribers.forEach((t=>{t(s)}))},r=(s,o=!0)=>(o&&"string"==typeof t.current&&s(t.current),t.subscribers.push(s),()=>{const o=t.subscribers.indexOf(s);o>=0&&t.subscribers.splice(o,1)});export{r as o,o as s}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import"./index-D1fZ9xFt.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{h as i}from"./index-D1fZ9xFt.js";import{B as s}from"./base-web-component-B3wi5eWH.js";import{r as t,C as o}from"./component-Cn693XeT.js";import{l}from"./level-CWkPM-CS.js";import{d as h,w as a}from"./width-xawzWTVW.js";import{v as e,t as r}from"./props-from-config-DqFgiUwD.js";import{l as n}from"./label-lang-segment-BSVexfSR.js";import{u as d,l as p,D as m}from"./scroll-lock-C66lpb8L.js";import{T as v}from"./behavior-DDo87iUM.js";import{c}from"./element-interaction-B3GEli6r.js";import{d as f,K as u}from"./events-DdfMb1U7.js";import{h as b}from"./tooltip-open-tracking-CxHWKk8f.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&&!f(this.host,u.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&&(f(this.host,u.close),f(this.host,u.toggle)))},this.handleCardClose=()=>{this.cardCloseTooltipBehavior.hideTooltip(),this.closeDialog(),this.host&&f(this.host,u.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&&f(this.host,u.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 e,m as t,j as o,h as l,F as i,L as s,Z as n}from"./index-D1fZ9xFt.js";import{r as a}from"./aria-labelledby-C4wUnR-v.js";import{B as r}from"./base-web-component-B3wi5eWH.js";import{c}from"./item-cArH2C6l.js";import{c as d}from"./item-pool-D4qvvY-S.js";import{c as h}from"./item-zPmzbSvE.js";import{c as u,f as b,n as p,a as v,r as f,t as m,B as y,v as g}from"./props-from-config-DqFgiUwD.js";import{l as k}from"./label-lang-segment-BSVexfSR.js";import{v as j,k as C,T as w}from"./component-0npqUhj2.js";import{t as S}from"./i18n-Uze_l4Ts.js";import{b as _}from"./bem-registry-CrZZQahR.js";import{B as x}from"./component-DP_p5few.js";import{I as O}from"./component-BZjDp_Lf.js";import{L as $}from"./component-DlROeCCe.js";import{r as D}from"./component-CjdTbGlP.js";import{S as T}from"./component-CvdxCpjC.js";import{T as F}from"./behavior-DDo87iUM.js";import{a as L}from"./tslib.es6-QNbPBOk5.js";import{c as z,n as B}from"./dev.utils-BgFDROtc.js";import{d as I,K as E}from"./events-DdfMb1U7.js";import{A}from"./component-Cvd5HXbX.js";import{l as M}from"./level-CWkPM-CS.js";import{c as H}from"./element-interaction-B3GEli6r.js";import{u as R,l as P,D as K}from"./scroll-lock-C66lpb8L.js";import{h as W}from"./tooltip-open-tracking-CxHWKk8f.js";import{d as N,w as U}from"./width-xawzWTVW.js";import{r as Z,C as q}from"./component-Cn693XeT.js";import{C as G}from"./keyboard-DzlBdECG.js";const V=(o,l,i)=>"string"!=typeof i&&void 0!==i?(e()&&t(`[${o.constructor.name}] The property value: (${i}) for '_ariaLabelledby' is not valid. Allowed values are: string, null`),[]):a(l,i),X=e=>"number"==typeof e&&Number.isInteger(e)&&e>=0,Q=u("fixedCols",[0,0],(e=>b(e)),(e=>2===e.length&&e.every(X))),Y=u("hasSettingsMenu",!1,p),J=v();function ee(e){const t="string"==typeof e?o(e):e;if(Array.isArray(t))return t;throw new Error("Invalid table data: expected an array of row objects.")}function te(e){return e.every((e=>"object"==typeof e&&null!==e))}const oe=u("data",[],ee,te),le=u("dataFoot",[],ee,te),ie=e=>Array.isArray(e)&&e.every((e=>Array.isArray(e))),se=u("headers",{horizontal:[],vertical:[]},(function(e){const t="string"==typeof e?o(e):e;if("object"!=typeof t||null===t)throw new Error("Invalid table headers: expected an object.");const{horizontal:l=[],vertical:i=[]}=t;if(!ie(l)||!ie(i))throw new Error("Invalid table headers: horizontal and vertical must be arrays of header rows.");return{horizontal:l,vertical:i}}),(function({horizontal:e,vertical:t}){return[...e,...t].every((e=>e.every((e=>void 0===e.width||"number"==typeof e.width))))})),ne=u("loading",!1,p),ae=u("selection",!1,(function(e){const t="string"==typeof e?o(e):e;if("object"==typeof t&&null!==t)return t;throw new Error("Invalid table selection: expected an object.")}),(function(e){return!1===e||"function"==typeof e.label&&(!e.selectedKeys||Array.isArray(e.selectedKeys))})),re={required:[k,oe,se],optional:[Q,Y,J,le,ne,ae,j]},ce=e=>e.flatMap((e=>e.filter((e=>"string"==typeof e.key||"function"==typeof e.render)))),de=e=>{const t=ce(e.horizontal);if(t.length>0)return{cells:t,horizontal:!0};const o=ce(e.vertical);return{cells:o,horizontal:0===o.length}},he=(e,t)=>{let o=0;return Array.isArray(e)&&e.forEach((e=>{var l;o+=null!==(l=e[t])&&void 0!==l?l:1})),o},ue=(e,t)=>{const o=Math.max(0,...e.map((e=>he(e,"colSpan"))));return 0===o?t.length:o},be=e=>{var t;return null!==(t=null==e?void 0:e.reduce(((e,t)=>"visible"in t&&!1===t.visible?e:e+(t.colSpan||1)),0))&&void 0!==t?t:0},pe=(e,t,o,l)=>{if(void 0!==l&&!t)return l<e[0]?"left":e[1]>0&&l>=o-e[1]?"right":void 0},ve=(e,t,o,l)=>{var i,s,n,a,r,c;const d=[];for(let a=0;a<t;a++)"left"===pe(o,l,t,a)&&(d[a]=(null!==(i=d[a-1])&&void 0!==i?i:0)+(null!==(n=null===(s=e[a-1])||void 0===s?void 0:s.width)&&void 0!==n?n:0));for(let i=t-1;i>=0;i--)"right"===pe(o,l,t,i)&&(d[i]=(null!==(a=d[i+1])&&void 0!==a?a:0)+(null!==(c=null===(r=e[i+1])||void 0===r?void 0:r.width)&&void 0!==c?c:0));return d},fe=(e,t,o,l)=>{const i=void 0===t?void 0:e[t];return o&&l?`calc( var(--kol-table-selection-col-width) + ${i}px)`:`${i}px`},me=({data:e,dataFoot:t,headers:o,isFoot:l,noEntriesLabel:i,primaryHeaders:s})=>{const n=ue(o.horizontal,e),a=s.cells;let r=((e,t,o)=>{const l=Math.max(0,...e.map((e=>he(e,"rowSpan"))));return 0===l?t.length:l-o})(o.vertical,e,t.length),c=0;l&&(c=r,r+=t.length);const d=[],h=[],u=[];o.vertical.forEach(((e,t)=>{h[t]=0,u[t]=[]}));for(let i=c;i<r;i++){const r=[];o.vertical.forEach(((e,t)=>{let o=0;if(u[t].forEach((e=>o+=e)),o<=i){const l=e[i-o+h[t]];if("object"==typeof l){r.push(Object.assign(Object.assign({},l),{headerCell:!0,data:{}}));let e=1;if("number"==typeof l.rowSpan&&l.rowSpan>1&&(e=l.rowSpan),u[t].push(e),"number"==typeof l.colSpan&&l.colSpan>1)for(let o=1;o<l.colSpan;o++)u[t+o].push(e);h[t]++}}}));for(let o=0;o<n;o++)if(s.horizontal){const s=l?t[i-c]:e[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 t=a[i];"object"==typeof t&&null!==t&&"object"==typeof e[o]&&null!==e[o]&&r.push(Object.assign(Object.assign({},t),{colIndex:o,colSpan:void 0,rowSpan:void 0,data:e[o],label:e[o][t.key]}))}d.push(r)}if(0===e.length){let e=be(o.horizontal[0]),t=0;o.vertical.length>0&&(e-=o.vertical.length,o.vertical[0].forEach((e=>{t+=e.rowSpan||1})));const l={colSpan:e,label:i,render:void 0,rowSpan:Math.max(t,1)};0===d.length?d.push([l]):d[0].push(l)}return d},ye=({horizontal:e,vertical:t})=>{const o=e.flatMap((e=>e.filter((e=>!1!==e.visible&&void 0!==e.width&&e.width>0)).map((e=>e.width)))),l=[...t.flatMap((e=>e.filter((e=>void 0!==e.width&&e.width>0)).map((e=>e.width)))),...o];return 0===l.length?"0px":1===l.length?`${l[0]}px`:`calc(${l.map((e=>`${e}px`)).join(" + ")})`},ge=e=>void 0===e?[]:Array.isArray(e)?e:[e],ke=e=>{var t;return null!==(t=e?e.keyPropertyName:void 0)&&void 0!==t?t:"id"},je=e=>{const t=e?ge(e.selectedKeys):[];return{disabledKeys:new Set((e?ge(e.disabledKeys):[]).map(String)),keyPropertyName:ke(e),selectedKeys:t,selectedKeysSet:new Set(t.map(String))}},Ce=(e,t)=>e.filter((e=>!t.disabledKeys.has(String(e[t.keyPropertyName])))),we=_.forBlock("kol-table"),Se=we("body"),_e=we("cell-actions"),xe=we("cell-states"),Oe=we("footer"),$e=we("head"),De=we("head-row"),Te=we("scroll-container"),Fe=we("selection-icon"),Le=we("selection-input-tooltip"),ze=we("sort"),Be=we("sort-button"),Ie=we("sort-order"),Ee=we("table"),Ae=`${we("focus-element")} ${we("caption")}`,Me="caption",He=(e,t)=>pe(e.fixedCols,e.stickyColsDisabled,e.maxCols,t),Re=(e,t,o)=>({left:"left"===t?fe(e.fixedOffsets,o,!0,!1!==e.selection):void 0,right:"right"===t?fe(e.fixedOffsets,o,!1,!1!==e.selection):void 0}),Pe=(e,t,o)=>{var l,i;return null!==(i=e.primaryHeaders.horizontal&&(null===(l=t[0])||void 0===l?void 0:l.data)?e.rowKeys.get(t[0].data):void 0)&&void 0!==i?i:String(o)},Ke=e=>{const t=S("kol-sort");return"number"==typeof e&&e>0?`${t} – ${S("kol-table-sort-order").replace("{{order}}",`${e}`)}`:t},We=(e,t,o,i,s)=>{if(!1===t.visible)return"";const n=!1!==(null==t?void 0:t.sortable)&&"string"==typeof t.sortDirection;let a="none",r="kolicon-sort-neutral";if(n&&t.sortDirection)switch(t.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 t.colSpan&&t.colSpan>1?"colgroup":"col",d="number"==typeof t.sortOrder&&t.sortOrder>0?t.sortOrder:void 0,h=void 0!==t.width?`${t.width}px`:void 0,u=He(e,i),{left:b,right:p}=Re(e,u,i),v=t.textAlign,f=n?t.sortDirection:void 0;return l("th",{key:`${o}-${i}-${t.label}`,class:we("cell",{[a]:!0,"align-center":"center"===v,"align-justify":"justify"===v,"align-left":"left"===v,"align-right":"right"===v,header:!0,"sticky-left":"left"===u,"sticky-right":"right"===u}),scope:c,colSpan:t.colSpan,rowSpan:t.rowSpan,style:{width:h,left:b,right:p},"aria-sort":a,"data-sort":f?`sort-${f}`:void 0},f?l("span",{class:ze},l(x,Object.assign({},e.getButtonFcProps(`sort-${s?"vertical":"horizontal"}-${o}-${i}`,{_icons:{right:r},_label:t.label,_ariaDescription:Ke(d),_on:{onClick:o=>{e.handleSort(o,{key:t.key,currentSortDirection:f})}}},{class:Be}))),d&&l("span",{"aria-hidden":"true",class:Ie},d)):t.label)},Ne=(e,t,o,i,s=!1)=>l("tr",{class:we("row",{body:!s,footer:s}),key:`row-${Pe(e,t,o)}`},((e,t,o)=>{var i;const{handleSelectionChange:s,selection:n,selectionModel:a}=e;if(!n)return"";const r=null===(i=t[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),p=n.label(r),{refInput:v,refTooltip:f}=e.getSelectionTooltipRefs(`selection-${h}`,p),m={name:"selection",checked:u,disabled:b,id:String(c),ref:v,"aria-label":p};return l("td",{key:`tbody-${o}-selection`,class:we("cell",{selection:!0})},l("div",{class:we("selection",{checked:u})},d?l("label",{class:we("selection-label",{disabled:b})},l(O,{class:Fe,icons:"kolicon "+(u?"kolicon-check":""),label:""}),l("input",Object.assign({class:we("selection-input",{checkbox:!0})},m,{type:"checkbox",onInput:e=>{const t=u?a.selectedKeys.filter((e=>String(e)!==h)):[...a.selectedKeys,c];s(e,t)}}))):l("label",{class:we("selection-label")},l("input",Object.assign({class:we("selection-input",{radio:!0})},m,{type:"radio",onInput:e=>{s(e,[c])}}))),l("div",{class:Le},l(w,{label:p,badgeText:"",id:`${c}-label`,refFloating:f}))))})(e,t,o),t.map(((t,s)=>((e,t,o,i,s)=>{if(!1===t.visible)return"";let n=`${o}-${i}-${t.label}`;if(t.data){const l=e.rowKeys.get(t.data);n=l?`${l}-${e.primaryHeaders.horizontal?i:o}`:n}if(t.headerCell)return We(e,t,o,i,s);const a="function"!=typeof t.render&&t.label===e.translateNoEntries,r=((e,t,o)=>{if(0!==(t.horizontal?e.horizontal:e.vertical).length)return t.cells[o]})(e.headers,e.primaryHeaders,i),c="action"===(null==r?void 0:r.type)?r:void 0,d=Boolean(c&&t.data),h="state"===(null==r?void 0:r.type)?r:void 0,u=Boolean(h&&t.data),b=He(e,i),{left:p,right:v}=Re(e,b,t.colIndex),f="function"==typeof t.render,m=t.textAlign;return l("td",{key:`cell-${n}-${e.settingsChangedCounter}`,class:we("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:t.colSpan,rowSpan:t.rowSpan,style:{textAlign:m,left:p,right:v},ref:f?o=>e.handleRenderCell(t,o):void 0},d&&c&&t.data?((e,t,o,i)=>l("div",{class:_e},t.actions(o).map(((t,o)=>{const s=`action-${i}-${o}`;return"button"===t.type?l("span",{key:s},l(x,Object.assign({},e.getButtonFcProps(s,t)))):"link"===t.type?l("span",{key:s},l($,Object.assign({},e.getLinkFcProps(s,t)))):null}))))(e,c,t.data,n):u&&h&&t.data?((e,t,o)=>{const i=e.key;if(!i)return"";const s=t[i];return s?l("div",{class:xe},s.map(((e,t)=>"badge"===e.type?l("kol-badge",Object.assign({key:`state-${o}-${t}`},e)):null))):""})(h,t.data,n):f?"":t.label)})(e,t,o,s,i)))),Ue=(e,t,o)=>{const i=e.headers.vertical.length+be(null==o?void 0:o[0])+(e.selection?1:0);return l("tr",{"aria-hidden":"true",class:we("spacer",{[t]:!0})},l("td",{class:we("spacer-line",{[t]:!0}),colSpan:i}))},Ze=e=>{const t=f(re,e),{data:o,dataFoot:s,externalLabelElements:n,fixedCols:a,hasScrollbar:r,hasSettingsMenu:c,headers:d,label:h,loading:u,refScrollContainer:b,refTable:p,selection:v,stickyColsDisabled:g,variant:k}=t,j=S("kol-no-entries"),_=de(d),x=ue(d.horizontal,o),$=Object.assign(Object.assign({},t),{fixedOffsets:ve(_.cells,x,a,g),maxCols:x,primaryHeaders:_,selectionModel:je(v),translateNoEntries:j}),F=me({data:o,dataFoot:s,headers:d,isFoot:!1,noEntriesLabel:j,primaryHeaders:_}),L=0===n.length;return l(y,{block:"kol-table",class:C(k,"table")},c&&e.renderSettings(d.horizontal),l("div",{ref:b,class:Te,tabindex:r?L?"-1":"0":void 0},l("table",{ref:p,"aria-labelledby":L?Me:void 0,class:Ee,style:{minWidth:ye(d)}},L&&l("caption",{class:Ae,id:Me,ref:e=>{e&&(r?e.tabIndex=0:e.removeAttribute("tabindex"))}},D(h)),l("thead",{class:$e},[d.horizontal.map(((e,t)=>l("tr",{class:De,key:`thead-${t}`},v&&(e=>{const{data:t,handleSelectionChange:o,selection:i,selectionModel:s}=e;if(!i)return l("td",{class:we("cell",{header:!0}),key:"thead-0"});if(!1===i.multiple)return l("th",{scope:"col",key:"thead-0-selection",class:we("cell",{header:!0,selection:!0})},l("span",{class:"visually-hidden"},S("kol-table-selection")));const n=s.selectedKeys.filter((e=>!s.disabledKeys.has(String(e)))).length,a=n===Ce(t,s).length,r=0!==n&&!a;let c;c=S(0===n?"kol-table-selection-all":a&&!r?"kol-table-selection-none":"kol-table-selection-indeterminate");const{refInput:d,refTooltip:h}=e.getSelectionTooltipRefs("selection-all",c);return l("th",{scope:"col",key:"thead-0-selection",class:we("cell",{header:!0,selection:!0})},l("span",{class:"visually-hidden"},S("kol-table-selection")),l("div",{class:we("selection",{checked:a,indeterminate:r})},l("label",{class:we("selection-label")},l(O,{class:Fe,icons:"kolicon "+(r?"kolicon-minus":a?"kolicon-check":""),label:""}),l("input",{class:we("selection-input",{checkbox:!0}),ref:d,name:"selection",checked:a&&!r,indeterminate:r,"aria-label":c,type:"checkbox",onInput:e=>{o(e,((e,t,o)=>{const l=t.selectedKeys.filter((e=>t.disabledKeys.has(String(e))));return o&&l.push(...Ce(e,t).map((e=>null==e?void 0:e[t.keyPropertyName]))),l})(t,s,!a))}})),l("div",{class:Le},l(w,{label:c,badgeText:"",refFloating:h}))))})($),0===t&&(({headers:e})=>{const{horizontal:t,vertical:o}=e;if(0===t.length||0===o.length)return l(i,null);const s=o.reduce(((e,t)=>{var o,l;return e+(null!==(l=null===(o=null==t?void 0:t[0])||void 0===o?void 0:o.width)&&void 0!==l?l:0)}),0);return l("td",{"aria-hidden":"true",colSpan:o.length,rowSpan:t.length,style:s>0?{width:`${s}px`}:void 0})})($),Array.isArray(e)&&e.map(((e,o)=>We($,e,t,o,!1)))))),Ue($,"head",d.horizontal)]),l("tbody",{class:Se},l("div",{class:we("loader",{shown:u})},l(T,{label:S(u?"kol-table-data-loading":"kol-table-data-loaded").replace("{{caption}}",m(h)),show:u,variant:"cycle"})),F.map(((e,t)=>Ne($,e,t,!0)))),(e=>{const{dataFoot:t,headers:o,primaryHeaders:i,translateNoEntries:s}=e;if(0===t.length)return null;const n=me({data:t,dataFoot:t,headers:o,isFoot:!0,noEntriesLabel:s,primaryHeaders:i}),a=ue(o.horizontal,t),r=Object.assign(Object.assign({},e),{fixedOffsets:ve(i.cells,a,e.fixedCols,e.stickyColsDisabled),maxCols:a});return l("tfoot",{class:Oe},[Ue(e,"foot",n),n.map(((e,t)=>Ne(r,e,t,!0,!0)))])})($))))},qe=({dialog:e,card:t},o)=>l(K,Object.assign({},e),t?l(q,Object.assign({},t),o):o),Ge=_.forBlock("kol-table")("settings"),Ve=_.forBlock("kol-table-settings"),Xe=Ve(),Qe=Ve("actions"),Ye=Ve("columns"),Je=Ve("content"),et=Ve("error-message"),tt=e=>Number.isFinite(e)&&void 0!==e&&e>0?e:void 0,ot=()=>{},lt=(e,t)=>{const o=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 a,h=!1,u=!1;const b=()=>{h=!0,t()},p=d((()=>c(e)),(e=>e.syncListeners()),(e=>e.destroy())),v=((e,t)=>{const o=H(),l=H(),i=new F(r.stateLess),s=z("aria-description"),n=z("dialog-heading"),c={};let d,h=!0,u={};const b=e=>!a||I(a,e),p=()=>{var e,t;null===(t=null===(e=o.el)||void 0===e?void 0:e.close)||void 0===t||t.call(e)},v=e=>{var t;W(e),e.defaultPrevented||(null===(t=u.onCancel)||void 0===t||t.call(u,e),e.defaultPrevented||b(E.cancel)||e.preventDefault())},f=e=>{var t;e.target===o.el&&(R(c),null===(t=u.onClose)||void 0===t||t.call(u),b(E.close))},y=()=>{i.hideTooltip(),p(),b(E.close)};return{getFcProps:t=>{var a,r,c;let b="",p=0,j="blank",C="100%";k.apply(t.label,(e=>{b=e})),M.apply(null!==(a=t.level)&&void 0!==a?a:0,(e=>{p=e})),N.apply(t.on,(e=>{u=e})),g.apply(null!==(r=t.variant)&&void 0!==r?r:"blank",(e=>{j=e})),U.apply(null!==(c=t.width)&&void 0!==c?c:"100%",(e=>{C=e}));const w="card"===j;return w&&!d&&(d=Z(e()),i.componentWillLoad({label:d.label,align:d.tooltipAlign})),{dialog:{handleCancel:v,handleClose:f,label:m(b),labelledBy:w?n:void 0,modal:h,refDialog:o,variant:j,width:C},card:w&&d?{ariaDescriptionId:s,closeButtonProps:d,handleClose:y,hasCloser:!0,headingId:n,label:b,level:p,refCloseButton:l,refTooltip:i.setTooltipElementRef}:void 0}},show:e=>{var l,i;const s=o.el;(null==s?void 0:s.open)||(h!==e&&(h=e,t()),e?(null===(l=null==s?void 0:s.showModal)||void 0===l||l.call(s),s&&P(c)):null===(i=null==s?void 0:s.show)||void 0===i||i.call(s))},close:p,syncListeners:()=>{l.el&&i.syncListeners(void 0,l.el,!0)},destroy:()=>{p(),R(c),i.destroy()}}})(e,b),f=z("alert-heading"),y=z("closer-description");let j,C=[],w=[],_=null;const O=()=>{var e;return null!==(e=w[w.length-1])&&void 0!==e?e:[]},$=e=>{w=w.map(((t,o,l)=>o===l.length-1?e:t)),b()},D=(e,t)=>{const o=[...O()],l=o.findIndex((t=>t.key===e));if(-1===l)return;let i;if("up"===t){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)},T=e=>{if(e.preventDefault(),!O().some((e=>!1!==e.visible)))return _=n,void b();if(a){_=null,C=w.map((e=>e.map((e=>Object.assign({},e))))),b();const e=w.map((e=>e.map((e=>{const t=e,{hidable:o,resizable:l,sortable:i,visible:s,width:n}=t,a=L(t,["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}))));I(a,E.changeHeaderCells,e),v.close()}},B=e=>{e&&(a=e)};return{beginRender:()=>{p.beginRender(),u=h,h=!1},render:e=>{var t;u||e===j||(j=e,C=(t=e).map((e=>[...e])),w=t.map((e=>e.map((e=>Object.assign({},e))))));const n=O();return l("div",{class:Ge,ref:B},l("div",{class:Xe},l(x,Object.assign({},p.get("toggle").getFcProps({_icons:"kolicon-settings",_label:o,_hideLabel:!0,_on:{onClick:()=>v.show(!0)}})))),l(qe,Object.assign({},v.getFcProps({label:o,variant:"card",width:"fit-content"})),l("div",{class:Je},_&&l("div",{class:et},l(A,{alert:!1,closerAriaDescriptionId:y,handleCloserClick:ot,hasCloser:!1,headingId:f,label:_,level:0,refCloserButton:ot,refCloserTooltip:ot,type:"error",variant:"msg"})),l("form",{onSubmit:T},l("div",{class:Ye},n.map(((e,t)=>((e,t,o)=>l("div",{key:e.key,class:"kol-table-settings__column"},l("kol-input-checkbox",{_checked:!1!==e.visible,_label:S(e.hidable?"kol-table-settings-column-hidable":"kol-table-settings-column-not-hidable",{placeholders:{column:e.label}}),_value:!0,_hideLabel:!0,_disabled:!1===e.hidable,_on:{onInput:(t,o)=>{var l;return((e,t)=>{const o=O().map((o=>o.key===e&&!1!==o.hidable?Object.assign(Object.assign({},o),{visible:Boolean(t)}):o));$(o)})(null!==(l=e.key)&&void 0!==l?l:"",o)}}}),l("span",{class:"kol-table-settings__column-label"},e.label),l("kol-input-number",{_hideLabel:!0,_value:tt(e.width),_label:S("kol-table-settings-column-width",{placeholders:{column:e.label}}),_min:1,_disabled:!1===e.resizable,_on:{onInput:(t,o)=>{var l;return((e,t)=>{const o=tt(Number(t)),l=O().map((t=>t.key===e&&!1!==t.resizable?Object.assign(Object.assign({},t),{width:o}):t));$(l)})(null!==(l=e.key)&&void 0!==l?l:"",o)}}}),l(x,Object.assign({},p.get(`move-up-${e.key}`).getFcProps({_icons:"kolicon-chevron-up",_label:S(!1===e.sortable||0===t?"kol-table-settings-not-move":"kol-table-settings-move-up",{placeholders:{column:e.label}}),_hideLabel:!0,_variant:"ghost",_on:{onClick:()=>{var t;return D(null!==(t=e.key)&&void 0!==t?t:"","up")}},_disabled:!1===e.sortable||0===t}))),l(x,Object.assign({},p.get(`move-down-${e.key}`).getFcProps({_icons:"kolicon-chevron-down",_label:S(!1===e.sortable||t===o.length-1?"kol-table-settings-not-move":"kol-table-settings-move-down",{placeholders:{column:e.label}}),_hideLabel:!0,_variant:"ghost",_on:{onClick:()=>{var t;return D(null!==(t=e.key)&&void 0!==t?t:"","down")}},_disabled:!1===e.sortable||t===o.length-1})))))(e,t,n)))),l("div",{class:Qe},l(x,Object.assign({},p.get("cancel").getFcProps({_label:i,_variant:"secondary",_on:{onClick:()=>(w=C.map((e=>[...e])),_=null,b(),void v.close())}}))),l(x,Object.assign({},p.get("apply").getFcProps({_label:s,_variant:"primary",_type:"submit"}))))))))},sync:()=>{p.endRender(),v.syncListeners()},destroy:()=>{p.destroy(),v.destroy()}}};class it extends r{constructor(){super(...arguments),this.hasExternalTableLabelRefs=!1,this.cellRenderTimeouts=new Map,this.buttonItems=d((()=>c((()=>this.host))),(e=>e.syncListeners()),(e=>e.destroy())),this.settings=lt((()=>this.host),(()=>n(this))),this.linkItems=d((()=>h((()=>n(this)))),(e=>e.syncListeners()),(e=>e.destroy())),this.selectionTooltipItems=d((()=>(()=>{const e=new F(r.stateLess);let t;const o={refInput:e=>{t=e},refTooltip:e.setTooltipElementRef};return{getRefs:t=>(e.componentWillLoad({label:t}),o),syncListeners:()=>{t&&e.syncListeners(void 0,t,!0)},destroy:()=>{e.destroy()}}})()),(e=>e.syncListeners()),(e=>e.destroy())),this.propsConfig=re,this.handleResize=()=>{this.updateScrollbarState(),clearTimeout(this.resizeDebounceTimeout),this.resizeDebounceTimeout=setTimeout((()=>{this.updateStickyColsDisabled()}),150)},this.handleSelectionChange=(e,t)=>{this.emitSelectionChange(e,t)},this.handleSort=(e,t)=>{this.emitSort(e,t)},this.handleRenderCell=(e,t)=>{t&&(clearTimeout(this.cellRenderTimeouts.get(t)),this.cellRenderTimeouts.set(t,setTimeout((()=>{if(this.cellRenderTimeouts.delete(t),"function"==typeof e.render){const o=e.render(t,e,e.data,this.getRenderProp("data"));"string"==typeof o&&(t.textContent=o)}}))))},this.refScrollContainer=e=>{this.scrollContainerElement=e},this.refTable=e=>{this.tableElement=e,this.syncTableLabel(this.getState("externalLabelElements"))},this.getButtonFcProps=(e,t,o)=>this.buttonItems.get(e).getFcProps(t,o),this.renderSettings=e=>this.settings.render(e),this.getLinkFcProps=(e,t)=>this.linkItems.get(e).getFcProps(t),this.getSelectionTooltipRefs=(e,t)=>this.selectionTooltipItems.get(e).getRefs(t)}observeScrollContainer(){this.scrollContainerElement&&ResizeObserver&&(this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.scrollContainerElement)),this.updateStickyColsDisabled()}teardownTable(){var e;null===(e=this.resizeObserver)||void 0===e||e.disconnect(),clearTimeout(this.resizeDebounceTimeout),this.cellRenderTimeouts.forEach((e=>clearTimeout(e))),this.cellRenderTimeouts.clear(),this.buttonItems.destroy(),this.linkItems.destroy(),this.selectionTooltipItems.destroy(),this.settings.destroy()}syncTableItems(){this.buttonItems.endRender(),this.linkItems.endRender(),this.selectionTooltipItems.endRender(),this.settings.sync()}applyData(e){oe.apply(e,(e=>{this.setRenderProp("data",e),this.setState("rowKeys",((e,t)=>new Map(e.map((e=>{var o;return[e,null!==(o=t.get(e))&&void 0!==o?o:B()]}))))(e,this.getState("rowKeys")))}))}applyDataFoot(e){le.apply(e,(e=>this.setRenderProp("dataFoot",e)))}applyFixedCols(e){Q.apply(e,(e=>this.setRenderProp("fixedCols",e))),this.updateStickyColsDisabled()}applyHasSettingsMenu(e){Y.apply(e,(e=>this.setRenderProp("hasSettingsMenu",e)))}applyHeaders(e){se.apply(e,(e=>this.setRenderProp("headers",(e=>0===e.horizontal.length?e:Object.assign(Object.assign({},e),{horizontal:e.horizontal.map((e=>e.map((e=>Object.assign(Object.assign({},e),{visible:"boolean"!=typeof e.visible||e.visible,hidable:"boolean"!=typeof e.hidable||e.hidable})))))}))(e))),this.isRequired("headers"))}applyLabel(e){k.apply(e,(e=>this.setRenderProp("label",e)),this.isRequired("label"))}applyLoading(e){ne.apply(e,(e=>this.setRenderProp("loading",e)))}applyOn(e){J.apply(e,(e=>this.setRenderProp("on",e)))}applySelection(e){ae.apply(e,(e=>this.setRenderProp("selection",e))),this.updateStickyColsDisabled()}applyVariant(e){j.apply(e,(e=>this.setRenderProp("variant",e)))}syncTableLabel(e){this.tableElement&&"ariaLabelledByElements"in this.tableElement&&((null==e?void 0:e.length)?(this.tableElement.ariaLabelledByElements=e,this.hasExternalTableLabelRefs=!0,s.debug([this.tableElement,e,this.tableElement.ariaLabelledByElements])):this.hasExternalTableLabelRefs&&(this.hasExternalTableLabelRefs=!1,this.tableElement.ariaLabelledByElements=null,this.tableElement.setAttribute("aria-labelledby",Me)))}moveCheckboxFocus(e){var t,o,l;if("ArrowUp"!==e.key&&"ArrowDown"!==e.key)return;const i=Array.from(null!==(o=null===(t=this.scrollContainerElement)||void 0===t?void 0:t.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&&(e.preventDefault(),n=(n+("ArrowDown"===e.key?1:i.length-1))%i.length,i[n].focus())}applyChangedHeaderCells(e){const t=Object.assign(Object.assign({},this.getRenderProp("headers")),{horizontal:e.detail});this.setRenderProp("headers",t),this.setState("settingsChangedCounter",this.getState("settingsChangedCounter")+1);const o=this.getRenderProp("on")[G.onChangeHeaderCells];"function"==typeof o&&o(e,t)}updateScrollbarState(){if(this.scrollContainerElement){const{clientHeight:e,clientWidth:t,scrollHeight:o,scrollWidth:l}=this.scrollContainerElement;this.setState("hasScrollbar",l>t||o>e&&["auto","scroll"].includes(getComputedStyle(this.scrollContainerElement).overflowY))}}calculateFixedColsWidth(){var e,t,o,l,i,s;const[n,a]=this.getRenderProp("fixedCols"),r=this.getRenderProp("headers"),c=de(r).cells,d=ue(r.horizontal,this.getRenderProp("data"));let h=0;for(let o=0;o<n&&o<c.length;o++)h+=null!==(t=null===(e=c[o])||void 0===e?void 0:e.width)&&void 0!==t?t:0;for(let e=d-a;e<d&&e<c.length;e++)h+=null!==(l=null===(o=c[e])||void 0===o?void 0:o.width)&&void 0!==l?l:0;if(this.getRenderProp("selection")){const e=null===(i=this.scrollContainerElement)||void 0===i?void 0:i.querySelector(".kol-table__cell--selection");h+=null!==(s=null==e?void 0:e.offsetWidth)&&void 0!==s?s:0}return h}updateStickyColsDisabled(){if(!this.scrollContainerElement)return void this.setState("stickyColsDisabled",!1);const e=this.calculateFixedColsWidth();this.setState("stickyColsDisabled",e>0&&e>=this.scrollContainerElement.clientWidth)}emitSelectionChange(e,t){const o=this.getRenderProp("on")[G.onSelectionChange];"function"==typeof o&&o(e,t),this.host&&I(this.host,E.selectionChange,t)}emitSort(e,t){const o=this.getRenderProp("on")[G.onSort];"function"==typeof o&&t.key&&o(e,t),this.host&&I(this.host,E.sort,t)}renderTableStatelessFC(){return this.buttonItems.beginRender(),this.linkItems.beginRender(),this.selectionTooltipItems.beginRender(),this.settings.beginRender(),l(Ze,{data:this.getRenderProp("data"),dataFoot:this.getRenderProp("dataFoot"),externalLabelElements:this.getState("externalLabelElements"),fixedCols:this.getRenderProp("fixedCols"),getButtonFcProps:this.getButtonFcProps,getLinkFcProps:this.getLinkFcProps,getSelectionTooltipRefs:this.getSelectionTooltipRefs,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{it as B,le as a,oe as t,V as v}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{i,h as s}from"./index-D1fZ9xFt.js";import{B as t}from"./base-web-component-B3wi5eWH.js";import{l as a,a as e,c as r,d as o,b as h,L as n}from"./component-DlROeCCe.js";import{o as l}from"./aria-current-service-4eUMzpeO.js";import{T as p}from"./behavior-DDo87iUM.js";import{a as d,b as c,c as y,f,g as m,h as b,s as u,i as C,l as x,d as g,t as D,e as j,v as w}from"./component-0npqUhj2.js";import{d as A}from"./disabled-BZIZZ6wy.js";import{h as v}from"./href-DKPJq0Rh.js";import"./props-from-config-DqFgiUwD.js";import{l as L}from"./label-with-expert-slot-C1i0atAL.js";import{l as I}from"./link-target-B2OC2sZU.js";import{c as K}from"./element-interaction-B3GEli6r.js";import{d as B,K as O}from"./events-DdfMb1U7.js";class T extends t{constructor(){super(...arguments),this.ctaRef=K((()=>!0===this.getRenderProp("disabled"))),this.tooltipBehavior=new p(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&&B(this.host,O.click,t)},this.setAnchorRef=i=>{this.ctaRef(i)}}unsetLinkTabIndex(){this.unsetRenderProp("tabIndex")}initLinkBehaviors(){this.unsubscribeOnLocationChange=l((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){d.apply(i,(i=>this.setRenderProp("accessKey",i)))}applyAriaControls(i){c.apply(i,(i=>this.setRenderProp("ariaControls",i)))}applyAriaCurrentValue(i){e.apply(i,(i=>this.setRenderProp("ariaCurrentValue",i)))}applyAriaDescription(i){y.apply(i,(i=>this.setRenderProp("ariaDescription",i)))}applyAriaExpanded(i){f.apply(i,(i=>this.setRenderProp("ariaExpanded",i)))}applyAriaOwns(i){r.apply(i,(i=>this.setRenderProp("ariaOwns",i)))}applyCustomClass(i){m.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){b.apply(i,(i=>this.setRenderProp("hideLabel",i)))}applyHref(i){v.apply(i,(i=>this.setRenderProp("href",i)),this.isRequired("href"))}applyIcons(i){u.apply(i,(i=>this.setRenderProp("icons",i)))}applyInline(i){C.apply(i,(i=>this.setRenderProp("inline",i)))}applyLabel(i){L.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){x.apply(i,(i=>this.setRenderProp("role",i)))}applyShortKey(i){g.apply(i,(i=>this.setRenderProp("shortKey",i)))}applyTabIndex(i){"number"==typeof i?D.apply(i,(i=>this.setRenderProp("tabIndex",i))):this.unsetRenderProp("tabIndex")}applyTarget(i){I.apply(i,(i=>this.setRenderProp("target",i)))}applyTooltipAlign(i){j.apply(i,(i=>{this.setRenderProp("tooltipAlign",i),this.tooltipBehavior.watchAlign(i)}))}applyVariant(i){w.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{T as B}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{i,X as s,h as t}from"./index-D1fZ9xFt.js";import{B as a}from"./base-web-component-B3wi5eWH.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-DP_p5few.js";import{F as d}from"./behavior-D9BHiFnH.js";import{T as c}from"./behavior-DDo87iUM.js";import{a as m,b as y,c as b,f as u,g as f,h as v,s as D,i as j,l as x,d as B,t as C,e as A,v as I}from"./component-0npqUhj2.js";import{d as g}from"./disabled-BZIZZ6wy.js";import{i as w}from"./id-CkUYl2hO.js";import"./props-from-config-DqFgiUwD.js";import{l as T}from"./label-with-expert-slot-C1i0atAL.js";import{v as F}from"./access-and-short-key-BTEwnScd.js";import{c as K}from"./element-interaction-B3GEli6r.js";import{d as H,K as S}from"./events-DdfMb1U7.js";import{p as L,a as E}from"./controller-DYkXzFqc.js";class P extends a{constructor(){super(...arguments),this.ctaRef=K(),this.propsConfig=e,this.tooltipBehavior=new c(this.stateAccess),this.handleClick=s=>{s.stopPropagation(),this.tooltipBehavior.hideTooltip();const t=this.getRenderProp("type");if("submit"===t)L({form:this.host});else if("reset"===t)E({form:this.host});else{this.formAssociation.setFormAssociatedValue(this.formValue);const t=this.getRenderProp("on").onClick;"function"==typeof t&&(i(s,this.ctaRef.el),t(s,this.formValue))}this.host&&H(this.host,S.click,this.formValue)},this.handleMouseDown=i=>{var s,t;null===(t=(s=this.getRenderProp("on")).onMouseDown)||void 0===t||t.call(s,i),this.host&&H(this.host,S.mousedown)},this.handleFocus=i=>{var s,t;null===(t=(s=this.getRenderProp("on")).onFocus)||void 0===t||t.call(s,i),this.host&&H(this.host,S.focus)},this.handleBlur=i=>{var s,t;null===(t=(s=this.getRenderProp("on")).onBlur)||void 0===t||t.call(s,i),this.host&&H(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(i,s){m.apply(i,(i=>this.setRenderProp("accessKey",i))),F(i,s)}applyAriaControls(i){y.apply(i,(i=>this.setRenderProp("ariaControls",i)))}applyAriaDescription(i){b.apply(i,(i=>this.setRenderProp("ariaDescription",i)))}applyAriaExpanded(i){u.apply(i,(i=>this.setRenderProp("ariaExpanded",i)))}applyAriaHasPopup(i){o.apply(i,(i=>this.setRenderProp("ariaHasPopup",i)))}applyAriaSelected(i){h.apply(i,(i=>this.setRenderProp("ariaSelected",i)))}applyCustomClass(i){f.apply(i,(i=>this.setRenderProp("customClass",i)))}applyDisabled(i){g.apply(i,(i=>this.setRenderProp("disabled",i)))}applyHideLabel(i){v.apply(i,(i=>this.setRenderProp("hideLabel",i)))}applyIcons(i){D.apply(i,(i=>this.setRenderProp("icons",i)))}applyId(i){w.apply(i,(i=>this.setRenderProp("id",i)))}applyInline(i){j.apply(i,(i=>this.setRenderProp("inline",i)))}applyLabel(i){T.apply(i,(i=>{this.setRenderProp("label",i),this.tooltipBehavior.watchLabel(i)}),this.isRequired("label"))}applyName(i){l.apply(i,(i=>this.setRenderProp("name",i))),this.formAssociation.watchName(i)}applyOn(i){n.apply(i,(i=>this.setRenderProp("on",i)))}applyRole(i){x.apply(i,(i=>this.setRenderProp("role",i)))}applyShortKey(i,s){B.apply(i,(i=>this.setRenderProp("shortKey",i))),F(s,i)}applySyncValueBySelector(i){this.formAssociation.watchSyncValueBySelector(i)}applyTabIndex(i){"number"==typeof i?C.apply(i,(i=>this.setRenderProp("tabIndex",i))):this.unsetRenderProp("tabIndex")}applyTooltipAlign(i){A.apply(null!=i?i:"top",(i=>{this.setRenderProp("tooltipAlign",i),this.tooltipBehavior.watchAlign(i)}))}applyType(i){r.apply(i,(i=>this.setRenderProp("type",i)))}applyValue(i){this.formValue=i,this.formAssociation.setFormAssociatedValue(i)}applyVariant(i){var t;I.apply(null!==(t=null!=i?i:s("buttonVariantDefault",this.host))&&void 0!==t?t:"normal",(i=>this.setRenderProp("variant",i)))}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{P as B}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import"./index-D1fZ9xFt.js";import{d as t}from"./props-from-config-DqFgiUwD.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-D1fZ9xFt.js";import{a as s,d as i,v as e}from"./component-0npqUhj2.js";import{a as o,S as a}from"./suggestions-qW9OdwO3.js";import{h as r,g as h}from"./input-container-DC3x4oGg.js";import{c as n,b as l,e as d}from"./props-from-config-DqFgiUwD.js";import{p}from"./placeholder-BTFnryTd.js";import{r as u}from"./read-only-DRmmHb2G.js";import{r as c}from"./required-D4CdAA4s.js";import{s as m}from"./smart-button-BYEk3DzS.js";import{s as v}from"./value-string-DwEIOG1f.js";import{f as y,B as j}from"./api-Ba9FNPRn.js";import{s as b}from"./controller-DYkXzFqc.js";import{v as f}from"./access-and-short-key-BTEwnScd.js";import{c as g}from"./element-interaction-B3GEli6r.js";import{B as O}from"./base-web-component-B3wi5eWH.js";import{C as B}from"./behavior-XAV9GSxI.js";const x=n("pattern",void 0,l),q={required:[...y.required],optional:[...y.optional,s,o,r,x,p,u,c,i,m,v,e]};class D extends j{constructor(){super(...arguments),this.ctaRef=g(),this.counter=new B(O.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))),f(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){p.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))),f(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:d(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"),d=h.getRenderProp("shortKey"),p=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!==p?{placeholder:p}:{}),{autoComplete:h.getRenderProp("autoComplete")}),void 0!==i?{spellcheck:i}:{}),void 0!==u?{pattern:u}:{}),{readonly:h.getRenderProp("readOnly")}),void 0!==e?{multiple:e}:{}),{touched:h.getRenderProp("touched"),msg:h.getRenderProp("msg")}),d?{"aria-keyshortcuts":d}:{}),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{D as B,q as t}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{D as e,j as s,h as t,F as i}from"./index-D1fZ9xFt.js";import{a as o,d as r,t as a,v as l}from"./component-0npqUhj2.js";import{h as n,g as d,I as h}from"./input-container-DC3x4oGg.js";import{o as c,p,c as u,g as b,e as v}from"./props-from-config-DqFgiUwD.js";import{m}from"./multiple-CuU2AuEM.js";import{r as y}from"./required-D4CdAA4s.js";import{r as f}from"./rows-DRKSoawJ.js";import{f as j,i as O,g,c as B,B as A,F as w}from"./api-Ba9FNPRn.js";import{v as K}from"./access-and-short-key-BTEwnScd.js";import{f as q}from"./options-BDTJtk6H.js";import{a as D}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},x=u("options",[],(function(e){const t="string"==typeof e?s(e):e;if(Array.isArray(t)&&t.every((e=>P(e))))return t;throw new Error("Invalid select options")})),k=u("value",[],(e=>Array.isArray(e)?e:[e])),E={required:[...j.required],optional:[...j.optional,o,n,m,x,y,f,k,r,a,l]},F=b("kol-select"),L=e=>{var{class:s,index:i,selectedValue:o,selected:r,value:a,label:l,disabled:n}=e,d=D(e,["class","index","selectedValue","selected","value","label","disabled"]);const h=void 0===o?[]:Array.isArray(o)?o:[o],c=r||h.includes(a);return t("option",Object.assign({class:v(F("option",{selected:Boolean(c),disabled:Boolean(n)}),s),selected:c,disabled:n,value:i},d),l)},S=({preKey:e,options:s,disabled:o,value:r,OptionProps:a={},OptionGroupProps:l={}})=>(null==s?void 0:s.length)?t(i,null,s.map(((s,i)=>{const n=[e,`-${i}`].join("");if("options"in s){const e=Boolean(o||s.disabled),{label:i}=s,d=D(s,["label"]);return t("optgroup",Object.assign({class:F("optgroup",{disabled:e}),key:n},l,{label:null==i?void 0:i.toString(),disabled:e}),t(S,Object.assign({OptionGroupProps:l,OptionProps:a,value:r,preKey:n},d,{disabled:e})))}return"value"in s?t(L,Object.assign({key:n},a,{index:n,selectedValue:r},s,{disabled:Boolean(o||s.disabled)})):null}))):null,T=e=>{const{class:s,msg:i,touched:o,disabled:r,required:a,options:l,value:n,OptionProps:d,OptionGroupProps:h,ariaDescribedBy:c,hideLabel:p,label:u}=e,b=D(e,["class","msg","touched","disabled","required","options","value","OptionProps","OptionGroupProps","ariaDescribedBy","hideLabel","label"]),m=Object.assign(Object.assign({class:v(F(Object.assign({disabled:Boolean(r),required:Boolean(a),touched:Boolean(o)},O(i,o)?{[g(i)]:!0}:{})),s),required:a,disabled:r},B({ariaDescribedBy:c,hideLabel:p,label:u})),b);return t("select",Object.assign({},m),t(S,{OptionGroupProps:h,OptionProps:d,disabled:r,options:l,value:n}))},$=(e,s,t)=>{const i=Array.isArray(e);if(s){if(void 0!==e&&!i)throw new Error(`↑ The schema for the property (_value) is not valid for multiple mode. Expected an array. The value will not be changed. (${t} = ${JSON.stringify(e)})`)}else if(i)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. (${t} = ${JSON.stringify(e)})`)},C=(e,s=!1)=>e.flatMap((e=>"options"in e&&Array.isArray(e.options)?C(e.options,Boolean(s||e.disabled)):[Object.assign(Object.assign({},e),{disabled:Boolean(s||e.disabled)})])),G=(e,s,t)=>{if(0===s.length)return e;const i=C(s),o=i.map((e=>e.value)),r=e.every((e=>o.includes(e)))?e:e.filter((e=>o.includes(e)));if(!1===t&&0===r.length){const e=i.find((e=>!0!==e.disabled));return e?[e.value]:r}return r};class I extends A{constructor(){super(...arguments),this.keyOptionMap=new Map,this.hasValue=!0,this.handleSelectInput=e=>{var s;const t=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=t,this.handleInput(e,t);else{const s=t.length>0?t[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))),K(e,this.getShortKeyProp())}applyShortKey(e){r.apply(e,(e=>this.setRenderProp("shortKey",e))),K(this.getAccessKeyProp(),e)}applyIcons(e){n.apply(e,(e=>this.setRenderProp("icons",e)))}applyMultiple(e){$(this._value,!0===e,"current"),m.apply(e,(e=>{this.setRenderProp("multiple",e),this.setRenderProp("value",G(this.getRenderProp("value"),this.getRenderProp("options"),this._multiple))}))}applyOptions(e){x.apply(e,(e=>{this.setRenderProp("options",e),e.length>0&&(this.keyOptionMap.clear(),q(this.keyOptionMap,e),this.setRenderProp("value",G(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,!0===this._multiple,"received");const s=e=>{const s=G(e,this.getRenderProp("options"),this._multiple);this.setRenderProp("value",s),this.formAssociation.setFormAssociatedValue(this.getModelValue())};null===e?s([null]):k.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(),t=this.getRenderProp("multiple"),i=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:t?this.getRenderProp("rows"):void 0,multiple:t,required:this.getRenderProp("required"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")},i?{"aria-keyshortcuts":i}:{}),{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:i}=d({icons:this.getRenderProp("icons")});return t(w,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()}}),t(h,{disabled:e,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:s,endAdornment:i},t(T,Object.assign({},this.getSelectProps()))))}}export{I as B,E as s}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{V as t,m as e,t as s,z as i}from"./index-D1fZ9xFt.js";import{c as o}from"./bootstrap-Cz7Iq2I2.js";import{c as n,b as a}from"./props-from-config-DqFgiUwD.js";import{n as r}from"./component-DP_p5few.js";import{B as l}from"./behavior-DDo87iUM.js";const c=n("syncValueBySelector",void 0,a),u={optional:[r,c]},h=new Set(["KOL-COMBOBOX","KOL-INPUT-CHECKBOX","KOL-INPUT-COLOR","KOL-INPUT-DATE","KOL-INPUT-EMAIL","KOL-INPUT-FILE","KOL-INPUT-NUMBER","KOL-INPUT-PASSWORD","KOL-INPUT-RADIO","KOL-INPUT-RANGE","KOL-INPUT-TEXT","KOL-SELECT","KOL-SINGLE-SELECT","KOL-TEXTAREA"]);class d extends l{constructor(s,{host:i,type:o,name:n}){super(s,u),this.experimentalMode=t(),this.setFormAssociatedValue=t=>{var s;const i=null===(s=this.formAssociated)||void 0===s?void 0:s.getAttribute("name");null!==i&&""!==i||e(` The form field (${this.type}) must have a name attribute to be form-associated. Please define the _name attribute.`);const o=this.tryToStringifyValue(t);this.syncValue(t,o,this.formAssociated),this.syncValue(t,o,this.syncToOwnInput)},this.host=this.findHostWithShadowRoot(i),this.type=o,this.ensureFormAssociatedElement(n)}ensureFormAssociatedElement(t){var e,s,i,n,a;!this.formAssociated&&(null===(e=o())||void 0===e?void 0:e.reflectInputValues)&&h.has(null!==(i=null===(s=this.host)||void 0===s?void 0:s.tagName)&&void 0!==i?i:"")&&t&&(null===(n=this.host)||void 0===n||n.querySelectorAll("input,select,textarea").forEach((t=>{var e;null===(e=this.host)||void 0===e||e.removeChild(t)})),this.formAssociated=this.createFormAssociatedElement(),this.formAssociated.setAttribute("data-form-associated",""),this.formAssociated.setAttribute("hidden",""),this.setNameAttribute(t),null===(a=this.host)||void 0===a||a.appendChild(this.formAssociated))}componentWillLoad(t){this.watchName(t.name),this.watchSyncValueBySelector(t.syncValueBySelector)}watchName(t){r.apply(t,(t=>{this.setRenderProp("name",t),this.setNameAttribute(t)})),void 0!==t?this.ensureFormAssociatedElement(t):e("A name on input fields or switches is not strictly required, but it might be relevant for the autocomplete function and for the static submission of the input field.")}watchSyncValueBySelector(t){if(this.experimentalMode&&"string"==typeof t){this.setRenderProp("syncValueBySelector",t);const e=document.querySelector(t);e&&(this.syncToOwnInput=e)}}setNameAttribute(t){this.setAttribute("name",this.formAssociated,t)}createFormAssociatedElement(){switch(this.type){case"color":case"date":case"email":case"file":case"number":case"password":case"radio":case"range":case"text":{const t=document.createElement(s("input"));return t.setAttribute("type",this.type),t}case"select":{const t=document.createElement(s("select"));return t.setAttribute("multiple",""),t}case"textarea":return document.createElement(s("textarea"));default:{const t=document.createElement(s("input"));return t.setAttribute("type","hidden"),t}}}findHostWithShadowRoot(t){for(;null===(null==t?void 0:t.shadowRoot)&&t!==document.body;){const e=t.parentNode;t=11===(null==e?void 0:e.nodeType)&&"host"in e?e.host:1===(null==e?void 0:e.nodeType)?e:void 0}return t}setAttribute(t,e,s){if(this.experimentalMode)try{if("boolean"!=typeof(s="object"==typeof s&&null!==s?JSON.stringify(s):s)&&"number"!=typeof s&&"string"!=typeof s)throw new Error("Invalid value type: "+typeof s);null==e||e.setAttribute(t,`${s}`)}catch(s){null==e||e.removeAttribute(t)}}tryToStringifyValue(t){try{return"object"==typeof t&&null!==t?JSON.stringify(t).toString():null==t?null:t.toString()}catch(t){return i(`The form field raw value is not able to stringify! ${t}`),""}}syncValue(t,e,s){if(s)switch(this.type){case"file":"undefined"!=typeof FileList&&t instanceof FileList?s.files=t:s.value="";break;case"select":"SELECT"===s.tagName?this.syncSelectOptions(t,s):this.syncValueAttribute(e,s);break;case"radio":"string"==typeof e&&(s.setAttribute("value",e),s.setAttribute("checked",""),s.value=e);break;default:this.syncValueAttribute(e,s)}}syncSelectOptions(t,e){e.querySelectorAll("option").forEach((t=>{e.removeChild(t)})),(Array.isArray(t)?t:null==t?[]:[t]).forEach((t=>{const i=this.tryToStringifyValue(t);if("string"==typeof i){const t=document.createElement(s("option"));t.setAttribute("value",i),t.setAttribute("selected",""),e.appendChild(t)}}))}syncValueAttribute(t,e){"string"==typeof t?(e.setAttribute("value",t),e.value=t):(e.removeAttribute("value"),e.value="")}}export{d as F}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{P as t,J as e}from"./index-D1fZ9xFt.js";import{t as n,a as i}from"./tooltip-open-tracking-CxHWKk8f.js";import{j as o}from"./component-0npqUhj2.js";import{c as r,b as s,d as l}from"./props-from-config-DqFgiUwD.js";import{i as a}from"./id-CkUYl2hO.js";import{l as c}from"./label-lang-segment-BSVexfSR.js";const u=o("align","top"),f=r("badgeText","",s),h=Math.min,d=Math.max,m=Math.round,p=Math.floor,y=t=>({x:t,y:t}),w={left:"right",right:"left",bottom:"top",top:"bottom"};function g(t,e,n){return d(t,h(e,n))}function x(t,e){return"function"==typeof t?t(e):t}function v(t){return t.split("-")[0]}function b(t){return t.split("-")[1]}function A(t){return"x"===t?"y":"x"}function S(t){return"y"===t?"height":"width"}function T(t){const e=t[0];return"t"===e||"b"===e?"y":"x"}function k(t){return A(T(t))}function R(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const F=["left","right"],O=["right","left"],j=["top","bottom"],C=["bottom","top"];function E(t){const e=v(t);return w[e]+t.slice(e.length)}function D(t){return"number"!=typeof t?function(t){var e,n,i,o;return{top:null!=(e=t.top)?e:0,right:null!=(n=t.right)?n:0,bottom:null!=(i=t.bottom)?i:0,left:null!=(o=t.left)?o:0}}(t):{top:t,right:t,bottom:t,left:t}}function L(t){const{x:e,y:n,width:i,height:o}=t;return{width:i,height:o,top:n,left:e,right:e+i,bottom:n+o,x:e,y:n}}function z(t,e,n){let{reference:i,floating:o}=t;const r=T(e),s=k(e),l=S(s),a=v(e),c="y"===r,u=i.x+i.width/2-o.width/2,f=i.y+i.height/2-o.height/2,h=i[l]/2-o[l]/2;let d;switch(a){case"top":d={x:u,y:i.y-o.height};break;case"bottom":d={x:u,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:f};break;case"left":d={x:i.x-o.width,y:f};break;default:d={x:i.x,y:i.y}}const m=b(e);return m&&(d[s]+=h*("end"===m?1:-1)*(n&&c?-1:1)),d}async function P(t,e){var n;void 0===e&&(e={});const{x:i,y:o,platform:r,rects:s,elements:l,strategy:a}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:h=!1,padding:d=0}=x(e,t),m=D(d),p=l[h?"floating"===f?"reference":"floating":f],y=L(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(p)))||n?p:p.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:a})),w="floating"===f?{x:i,y:o,width:s.floating.width,height:s.floating.height}:s.reference,g=await(null==r.getOffsetParent?void 0:r.getOffsetParent(l.floating)),v=await(null==r.isElement?void 0:r.isElement(g))&&await(null==r.getScale?void 0:r.getScale(g))||{x:1,y:1},b=L(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:g,strategy:a}):w);return{top:(y.top-b.top+m.top)/v.y,bottom:(b.bottom-y.bottom+m.bottom)/v.y,left:(y.left-b.left+m.left)/v.x,right:(b.right-y.right+m.right)/v.x}}const M=new Set(["left","top"]);function $(){return"undefined"!=typeof window}function B(t){return V(t)?(t.nodeName||"").toLowerCase():"#document"}function q(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function H(t){var e;return null==(e=(V(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function V(t){return!!$()&&(t instanceof Node||t instanceof q(t).Node)}function I(t){return!!$()&&(t instanceof Element||t instanceof q(t).Element)}function N(t){return!!$()&&(t instanceof HTMLElement||t instanceof q(t).HTMLElement)}function U(t){return!(!$()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof q(t).ShadowRoot)}function W(t){const{overflow:e,overflowX:n,overflowY:i,display:o}=et(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&"inline"!==o&&"contents"!==o}function _(t){return/^(table|td|th)$/.test(B(t))}function Y(t){try{if(t.matches(":popover-open"))return!0}catch(t){}try{return t.matches(":modal")}catch(t){return!1}}const J=/transform|translate|scale|rotate|perspective|filter/,K=/paint|layout|strict|content/,X=t=>!!t&&"none"!==t;let Z;function G(t){const e=I(t)?et(t):t;return X(e.transform)||X(e.translate)||X(e.scale)||X(e.rotate)||X(e.perspective)||!Q()&&(X(e.backdropFilter)||X(e.filter))||J.test(e.willChange||"")||K.test(e.contain||"")}function Q(){return null==Z&&(Z="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Z}function tt(t){return/^(html|body|#document)$/.test(B(t))}function et(t){return q(t).getComputedStyle(t)}function nt(t){return I(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function it(t){if("html"===B(t))return t;const e=t.assignedSlot||t.parentNode||U(t)&&t.host||H(t);return U(e)?e.host:e}function ot(t){const e=it(t);return tt(e)?(t.ownerDocument||t).body:N(e)&&W(e)?e:ot(e)}function rt(t,e,n){var i;void 0===e&&(e=[]),void 0===n&&(n=!0);const o=ot(t),r=o===(null==(i=t.ownerDocument)?void 0:i.body),s=q(o);if(r){const t=st(s);return e.concat(s,s.visualViewport||[],W(o)?o:[],t&&n?rt(t):[])}return e.concat(o,rt(o,[],n))}function st(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function lt(t){const e=et(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const o=N(t),r=o?t.offsetWidth:n,s=o?t.offsetHeight:i,l=m(n)!==r||m(i)!==s;return l&&(n=r,i=s),{width:n,height:i,$:l}}function at(t){return I(t)?t:t.contextElement}function ct(t){const e=at(t);if(!N(e))return y(1);const n=e.getBoundingClientRect(),{width:i,height:o,$:r}=lt(e);let s=(r?m(n.width):n.width)/i,l=(r?m(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}const ut=y(0);function ft(t){const e=q(t);return Q()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:ut}function ht(t,e,n,i){void 0===e&&(e=!1),void 0===n&&(n=!1);const o=t.getBoundingClientRect(),r=at(t);let s=y(1);e&&(i?I(i)&&(s=ct(i)):s=ct(t));const l=function(t,e,n){return void 0===e&&(e=!1),!!n&&e&&n===q(t)}(r,n,i)?ft(r):y(0);let a=(o.left+l.x)/s.x,c=(o.top+l.y)/s.y,u=o.width/s.x,f=o.height/s.y;if(r&&i){const t=q(r),e=I(i)?q(i):i;let n=t,o=st(n);for(;o&&e!==n;){const t=ct(o),e=o.getBoundingClientRect(),i=et(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,s=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;a*=t.x,c*=t.y,u*=t.x,f*=t.y,a+=r,c+=s,n=q(o),o=st(n)}}return L({width:u,height:f,x:a,y:c})}function dt(t,e){const n=nt(t).scrollLeft;return e?e.left+n:ht(H(t)).left+n}function mt(t,e){const n=t.getBoundingClientRect();return{x:n.left+e.scrollLeft-dt(t,n),y:n.top+e.scrollTop}}function pt(t,e,n){let i;if("viewport"===e||"layoutViewport"===e)i=function(t,e,n){void 0===n&&(n="viewport");const i="layoutViewport"===n,o=q(t),r=H(t),s=o.visualViewport;let l=r.clientWidth,a=r.clientHeight,c=0,u=0;if(s){const t=!Q()||"fixed"===e;i?t||(c=-s.offsetLeft,u=-s.offsetTop):(l=s.width,a=s.height,t&&(c=s.offsetLeft,u=s.offsetTop))}if(dt(r)<=0){const t=r.ownerDocument,e=t.body,n=getComputedStyle(e),i="CSS1Compat"===t.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-e.clientWidth-i),s="stable both-edges"===getComputedStyle(r).scrollbarGutter?o/2:o;s<=25&&(l-=s)}return{width:l,height:a,x:c,y:u}}(t,n,e);else if("document"===e)i=function(t){const e=nt(t),n=t.ownerDocument.body,i=d(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=d(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let r=-e.scrollLeft+dt(t);const s=-e.scrollTop;return"rtl"===et(n).direction&&(r+=d(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:r,y:s}}(H(t));else if(I(e))i=function(t,e){const n=ht(t,!0,"fixed"===e),i=n.top+t.clientTop,o=n.left+t.clientLeft,r=ct(t);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:o*r.x,y:i*r.y}}(e,n);else{const n=ft(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return L(i)}function yt(t,e,n){const i=N(e),o=H(e),r="fixed"===n,s=ht(t,!0,r,e);let l={scrollLeft:0,scrollTop:0};const a=y(0);if((i||!r)&&(("body"!==B(e)||W(o))&&(l=nt(e)),i)){const t=ht(e,!0,r,e);a.x=t.x+e.clientLeft,a.y=t.y+e.clientTop}!i&&o&&(a.x=dt(o));const c=!o||i||r?y(0):mt(o,l);return{x:s.left+l.scrollLeft-a.x-c.x,y:s.top+l.scrollTop-a.y-c.y,width:s.width,height:s.height}}function wt(t){return"static"===et(t).position}function gt(t,e){if(!N(t)||"fixed"===et(t).position)return null;if(e)return e(t);let n=t.offsetParent;return H(t)===n&&(n=n.ownerDocument.body),n}function xt(t,e){const n=q(t);if(Y(t))return n;if(!N(t)){let e=it(t);for(;e&&!tt(e);){if(I(e)&&!wt(e))return e;e=it(e)}return n}let i=gt(t,e);for(;i&&_(i)&&wt(i);)i=gt(i,e);return i&&tt(i)&&wt(i)&&!G(i)?n:i||function(t){let e=it(t);for(;N(e)&&!tt(e);){if(G(e))return e;if(Y(e))return null;e=it(e)}return null}(t)||n}const vt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:i,strategy:o}=t;const r="fixed"===o,s=H(i),l=!!e&&Y(e.floating);if(i===s||l&&r)return n;let a={scrollLeft:0,scrollTop:0},c=y(1);const u=y(0),f=N(i);if((f||!r)&&(("body"!==B(i)||W(s))&&(a=nt(i)),f)){const t=ht(i);c=ct(i),u.x=t.x+i.clientLeft,u.y=t.y+i.clientTop}const h=!s||f||r?y(0):mt(s,a);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-a.scrollTop*c.y+u.y+h.y}},getDocumentElement:H,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t;const r=[..."clippingAncestors"===n?Y(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let i=rt(t,[],!1).filter((t=>I(t)&&"body"!==B(t))),o=null;const r="fixed"===et(t).position;let s=r?it(t):t;for(;I(s)&&!tt(s);){const t=et(s),e=G(s),n=o?o.position:r?"fixed":"";e||"fixed"!==n&&("absolute"!==n||"static"!==t.position)?o=t:i=i.filter((t=>t!==s)),s=it(s)}return e.set(t,i),i}(e,this._c):[].concat(n),i],s=pt(e,r[0],o);let l=s.top,a=s.right,c=s.bottom,u=s.left;for(let t=1;t<r.length;t++){const n=pt(e,r[t],o);l=d(n.top,l),a=h(n.right,a),c=h(n.bottom,c),u=d(n.left,u)}return{width:a-u,height:c-l,x:u,y:l}},getOffsetParent:xt,getElementRects:async function(t){const e=this.getOffsetParent||xt,n=this.getDimensions,i=await n(t.floating);return{reference:yt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},getClientRects:function(t){return t.getClientRects?Array.from(t.getClientRects()):[]},getDimensions:function(t){const{width:e,height:n}=lt(t);return{width:e,height:n}},getScale:ct,isElement:I,isRTL:function(t){return"rtl"===et(t).direction}};function bt(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function At(t,e,n,i){void 0===i&&(i={});const{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:a=!1}=i,c=at(t),u=o||r?[...c?rt(c):[],...e?rt(e):[]]:[];u.forEach((t=>{o&&t.addEventListener("scroll",n),r&&t.addEventListener("resize",n)}));const f=c&&l?function(t,e,n){let i,o=null;const r=H(t);function s(){var t;clearTimeout(i),null==(t=o)||t.disconnect(),o=null}function l(n,a){void 0===n&&(n=!1),void 0===a&&(a=1),s();const c=t.getBoundingClientRect(),{left:u,top:f,width:m,height:y}=c;if(n||e(),!m||!y)return;const w={rootMargin:-p(f)+"px "+-p(r.clientWidth-(u+m))+"px "+-p(r.clientHeight-(f+y))+"px "+-p(u)+"px",threshold:d(0,h(1,a))||1};let g=!0;function x(e){const n=e[0].intersectionRatio;if(!bt(c,t.getBoundingClientRect()))return l();if(n!==a){if(!g)return l();n?l(!1,n):i=setTimeout((()=>{l(!1,1e-7)}),1e3)}g=!1}try{o=new IntersectionObserver(x,{...w,root:r.ownerDocument})}catch(t){o=new IntersectionObserver(x,w)}o.observe(t)}const a=q(t),c=()=>l(n);return a.addEventListener("resize",c),l(!0),()=>{a.removeEventListener("resize",c),s()}}(c,n,r):null;let m,y=-1,w=null;s&&(w=new ResizeObserver((t=>{let[i]=t;i&&i.target===c&&w&&e&&(w.unobserve(e),cancelAnimationFrame(y),y=requestAnimationFrame((()=>{var t;null==(t=w)||t.observe(e)}))),n()})),c&&!a&&w.observe(c),e&&w.observe(e));let g=a?ht(t):null;return a&&function e(){const i=ht(t);g&&!bt(g,i)&&n(),g=i,m=requestAnimationFrame(e)}(),n(),()=>{var t;u.forEach((t=>{o&&t.removeEventListener("scroll",n),r&&t.removeEventListener("resize",n)})),null==f||f(),null==(t=w)||t.disconnect(),w=null,a&&cancelAnimationFrame(m)}}const St=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:i,placement:o,platform:r}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:a={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...c}=x(t,e),u={x:n,y:i},f=await r.detectOverflow(e,c),h=T(o),d=A(h);let m=u[d],p=u[h];const y=(t,e)=>g(e+f["y"===t?"top":"left"],e,e-f["y"===t?"bottom":"right"]);s&&(m=y(d,m)),l&&(p=y(h,p));const w=a.fn({...e,[d]:m,[h]:p});return{...w,data:{x:w.x-n,y:w.y-i,enabled:{[d]:s,[h]:l}}}}}},Tt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,i;const{placement:o,middlewareData:r,rects:s,initialPlacement:l,platform:a,elements:c}=e,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:p=!0,...y}=x(t,e);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const w=v(o),g=T(l),A=v(l)===l,D=await(null==a.isRTL?void 0:a.isRTL(c.floating)),L=h||(A||!p?[E(l)]:function(t){const e=E(t);return[R(t),e,R(e)]}(l)),z="none"!==m;!h&&z&&L.push(...function(t,e,n,i){const o=b(t);let r=function(t,e,n){switch(t){case"top":case"bottom":return n?e?O:F:e?F:O;case"left":case"right":return e?j:C;default:return[]}}(v(t),"start"===n,i);return o&&(r=r.map((t=>t+"-"+o)),e&&(r=r.concat(r.map(R)))),r}(l,p,m,D));const P=[l,...L],M=await a.detectOverflow(e,y),$=[];let B=(null==(i=r.flip)?void 0:i.overflows)||[];if(u&&$.push(M[w]),f){const t=function(t,e,n){void 0===n&&(n=!1);const i=b(t),o=k(t),r=S(o);let s="x"===o?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=E(s)),[s,E(s)]}(o,s,D);$.push(M[t[0]],M[t[1]])}if(B=[...B,{placement:o,overflows:$}],!$.every((t=>t<=0))){var q,H;const t=((null==(q=r.flip)?void 0:q.index)||0)+1,e=P[t];if(e&&("alignment"!==f||g===T(e)||B.every((t=>T(t.placement)!==g||t.overflows[0]>0))))return{data:{index:t,overflows:B},reset:{placement:e}};let n=null==(H=B.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:H.placement;if(!n)switch(d){case"bestFit":{var V;const t=null==(V=B.filter((t=>{if(z){const e=T(t.placement);return e===g||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:V[0];t&&(n=t);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}},kt=async({floatingElement:e,referenceElement:n,arrowElement:i,align:o="top"})=>{var r,s,l;if(!t()){const t=[(l=(null==i?void 0:i.offsetHeight)||10,void 0===l&&(l=0),{name:"offset",options:l,async fn(t){var e,n;const{x:i,y:o,placement:r,middlewareData:s}=t,a=await async function(t,e){const{placement:n,platform:i,elements:o}=t,r=await(null==i.isRTL?void 0:i.isRTL(o.floating)),s=v(n),l=b(n),a="y"===T(n),c=M.has(s)?-1:1,u=r&&a?-1:1,f=x(e,t);let{mainAxis:h,crossAxis:d,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&"number"==typeof m&&(d="end"===l?-1*m:m),a?{x:d*u,y:h*c}:{x:h*c,y:d*u}}(t,l);return r===(null==(e=s.offset)?void 0:e.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:i+a.x,y:o+a.y,data:{...a,placement:r}}}}),Tt(),St()];i&&t.push((t=>({name:"arrow",options:t,async fn(e){const{x:n,y:i,placement:o,rects:r,platform:s,elements:l,middlewareData:a}=e,{element:c,padding:u=0}=x(t,e)||{};if(null==c)return{};const f=D(u),d={x:n,y:i},m=k(o),p=S(m),y=await s.getDimensions(c),w="y"===m,v=w?"top":"left",A=w?"bottom":"right",T=w?"clientHeight":"clientWidth",R=r.reference[p]+r.reference[m]-d[m]-r.floating[p],F=d[m]-r.reference[m],O=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let j=O?O[T]:0;j&&await(null==s.isElement?void 0:s.isElement(O))||(j=l.floating[T]||r.floating[p]);const C=R/2-F/2,E=j/2-y[p]/2-1,L=h(f[v],E),z=h(f[A],E),P=j-y[p]-z,M=j/2-y[p]/2+C,$=g(L,M,P),B=!a.arrow&&null!=b(o)&&M!==$&&r.reference[p]/2-(M<L?L:z)-y[p]/2<0,q=B?M<L?M-L:M-P:0;return{[m]:d[m]+q,data:{[m]:$,centerOffset:M-$-q,...B&&{alignmentOffset:q}},reset:B}}}))({element:i}));const{x:a,y:c,middlewareData:u,placement:f}=await((t,e,n)=>{const i=new Map,o=null!=n?n:{},r={...vt,...o.platform,_c:i};return(async(t,e,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:s}=n,l=s.detectOverflow?s:{...s,detectOverflow:P},a=await(null==s.isRTL?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:u,y:f}=z(c,i,a),h=i,d=0;const m={};for(let n=0;n<r.length;n++){const p=r[n];if(!p)continue;const{name:y,fn:w}=p,{x:g,y:x,data:v,reset:b}=await w({x:u,y:f,initialPlacement:i,placement:h,strategy:o,middlewareData:m,rects:c,platform:l,elements:{reference:t,floating:e}});u=null!=g?g:u,f=null!=x?x:f,m[y]={...m[y],...v},b&&d<50&&(d++,"object"==typeof b&&(b.placement&&(h=b.placement),b.rects&&(c=!0===b.rects?await s.getElementRects({reference:t,floating:e,strategy:o}):b.rects),({x:u,y:f}=z(c,h,a))),n=-1)}return{x:u,y:f,placement:h,strategy:o,middlewareData:m}})(t,e,{...o,platform:r})})(n,e,{placement:o,middleware:t,strategy:"fixed"});Object.assign(e.style,{left:`${a}px`,top:`${c}px`,visibility:"visible"}),i&&((null===(r=u.arrow)||void 0===r?void 0:r.x)?Object.assign(i.style,{left:`${u.arrow.x}px`,top:"bottom"===f?-i.offsetHeight/2+"px":"",bottom:"top"===f?-i.offsetHeight/2+"px":""}):(null===(s=u.arrow)||void 0===s?void 0:s.y)&&Object.assign(i.style,{left:"right"===f?-i.offsetWidth/2+"px":"",right:"left"===f?-i.offsetWidth/2+"px":"",top:`${u.arrow.y}px`}))}},Rt=new Set;let Ft=null;class Ot{constructor(t,e){this.setState=t.setState,this.getState=t.getState,this.renderProps=l(e)}setRenderProp(t,e){this.renderProps[t]=e}getRenderProp(t){return this.renderProps[t]}}const jt={required:[c],optional:[u,f,a]};class Ct extends Ot{constructor(t){super(t,jt),this.hasFocusIn=!1,this.hasMouseIn=!1,this.isHiddenForCurrentVisit=!1,this.setTooltipElementRef=t=>{this.tooltipElement=t,this.tooltipElement&&this.addListeners(this.tooltipElement)},this.hideTooltipByEscape=t=>{"Escape"===t.key&&(t.stopPropagation(),t.preventDefault(),this.hideTooltip())},this.handleMouseEnter=()=>{const t=this.isNewVisit();this.hasMouseIn=!0,t&&(this.isHiddenForCurrentVisit=!1),this.showOrHideTooltip()},this.handleMouseLeave=()=>{this.hasMouseIn=!1,this.resetHideFlag(),this.showOrHideTooltip()},this.handleFocusIn=()=>{const t=this.isNewVisit();this.hasFocusIn=!0,t&&(this.isHiddenForCurrentVisit=!1),this.showOrHideTooltip()},this.handleFocusOut=()=>{this.hasFocusIn=!1,this.resetHideFlag(),this.showOrHideTooltip()}}componentWillLoad(t){this.watchLabel(t.label),this.watchAlign(t.align),this.watchBadgeText(t.badgeText),this.watchId(t.id)}watchLabel(t){c.apply(t||void 0,(t=>{this.setRenderProp("label",t)}))}watchAlign(t){u.apply(t,(t=>{this.setRenderProp("align",t)}))}watchBadgeText(t){f.apply(t,(t=>{this.setRenderProp("badgeText",t)}))}watchId(t){a.apply(t,(t=>{this.setRenderProp("id",t)}))}initContext(t){this.previousSibling=t}syncListeners(t,e,n=!1){t&&this.removeListeners(t),e&&(n&&(this.previousSibling=e),this.removeListeners(e),this.addListeners(e))}handleEventListeners(t){this.syncListeners(this.previousSibling,t.previousElementSibling,!0)}hideTooltip(){this.isHiddenForCurrentVisit=!0,this.tooltipElement&&(function(t){if(Rt.delete(t)&&Ft===t){Ft=null;for(const t of Rt)Ft=t;Ft&&Ft.style.setProperty("z-index","1000")}}(this.tooltipElement),n(),this.tooltipElement.classList.remove("show"),this.tooltipElement.classList.add("hide"),this.tooltipElement.addEventListener("animationend",(()=>{var t;(null===(t=this.tooltipElement)||void 0===t?void 0:t.classList.contains("hide"))&&this.tooltipElement.style.removeProperty("display")}),{once:!0}),this.cleanupAutoPositioning&&(this.cleanupAutoPositioning(),this.cleanupAutoPositioning=void 0)),e().removeEventListener("keydown",this.hideTooltipByEscape)}destroy(){clearTimeout(this.overFocusTimeout),this.previousSibling&&(this.removeListeners(this.previousSibling),this.previousSibling=void 0),this.tooltipElement&&this.removeListeners(this.tooltipElement),this.cleanupAutoPositioning&&(this.cleanupAutoPositioning(),this.cleanupAutoPositioning=void 0),e().removeEventListener("keydown",this.hideTooltipByEscape)}isNewVisit(){return!this.hasMouseIn&&!this.hasFocusIn}resetHideFlag(){this.isNewVisit()&&(this.isHiddenForCurrentVisit=!1)}async alignTooltip(){this.tooltipElement&&this.previousSibling&&await kt({align:this.getRenderProp("align"),arrowElement:this.tooltipElement.querySelector(".kol-tooltip__arrow"),floatingElement:this.tooltipElement,referenceElement:this.previousSibling})}showTooltip(){var t;!this.isHiddenForCurrentVisit&&this.previousSibling&&this.tooltipElement&&(Ft!==(t=this.tooltipElement)&&(Ft&&Ft.style.setProperty("z-index","999"),Rt.delete(t),Rt.add(t),t.style.setProperty("z-index","1000"),Ft=t),i(),this.tooltipElement.classList.remove("hide"),this.tooltipElement.classList.add("show"),this.tooltipElement.style.setProperty("display","block"),e().addEventListener("keydown",this.hideTooltipByEscape),this.cleanupAutoPositioning=At(this.previousSibling,this.tooltipElement,(()=>{this.alignTooltip()})))}showOrHideTooltip(){clearTimeout(this.overFocusTimeout),this.overFocusTimeout=setTimeout((()=>{this.hasMouseIn||this.hasFocusIn?this.showTooltip():this.hideTooltip()}),300)}addListeners(t){t.addEventListener("mouseover",this.handleMouseEnter),t.addEventListener("mouseout",this.handleMouseLeave),t.addEventListener("focusin",this.handleFocusIn),t.addEventListener("focusout",this.handleFocusOut)}removeListeners(t){t.removeEventListener("mouseover",this.handleMouseEnter),t.removeEventListener("mouseout",this.handleMouseLeave),t.removeEventListener("focusin",this.handleFocusIn),t.removeEventListener("focusout",this.handleFocusOut)}}export{Ot as B,Ct as T,u as a,kt as b,At as c}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import"./index-D1fZ9xFt.js";import{a as t}from"./dev.utils-BgFDROtc.js";import{c as e,n as r,D as i,b as a,i as h}from"./props-from-config-DqFgiUwD.js";import{B as n}from"./behavior-DDo87iUM.js";import{t as o}from"./i18n-Uze_l4Ts.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,u,c]},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 d 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{d as C}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{v as e}from"./index-D1fZ9xFt.js";var i,l,n=e(l?i:(l=1,i=function(e){return function(i,l){if(!i)return e;var n;"string"==typeof i?n=i:l=i;var o=e;return n&&(o+="__"+n),o+(l?Object.keys(l).reduce((function(e,i){var n=l[i];return n&&(e+=" "+("boolean"==typeof n?o+"--"+i:o+"--"+i+"_"+n)),e}),""):"")}}));const o=function(){const e=new Map,i=(i,l,o)=>{try{return e.get(i)(l,o)}catch{return e.set(i,n(i)).get(i)(l,o)}};return i.forBlock=e=>{const l=(l,n)=>i(e,l,n);return l.forElement=l=>n=>i(e,l,n),l},i}(),r={"kol-abbr":{modifiers:null},"kol-alert":{elements:{closer:{modifiers:null},heading:{modifiers:new Set(["h0","h1","h2","h3","h4","h5","h6"])},icon:{modifiers:null},content:{modifiers:null},container:{modifiers:null}},modifiers:new Set(["hasCloser","type-default","type-error","type-info","type-success","type-warning","variant-card","variant-msg"])},"kol-badge":{elements:{label:{modifiers:null},"smart-button":{modifiers:null}},modifiers:new Set(["has-smart-button"])},"kol-version":{modifiers:null},"kol-accordion":{elements:{content:{modifiers:null},heading:{modifiers:null},wrapper:{modifiers:null},"wrapper-animation":{modifiers:null}},modifiers:new Set(["disabled","open"])},"kol-avatar":{elements:{image:{modifiers:null},initials:{modifiers:null}},modifiers:null},"kol-card":{elements:{"close-button":{modifiers:null},content:{modifiers:null},header:{modifiers:null},link:{modifiers:null}},modifiers:null},"kol-dialog":{elements:{blank:{modifiers:null},card:{modifiers:null}},modifiers:null},"kol-modal":{elements:{blank:{modifiers:null},card:{modifiers:null}},modifiers:null},"kol-button":{elements:{"interactive-element":{modifiers:null},text:{modifiers:null},tooltip:{modifiers:null}},modifiers:new Set(["disabled","hide-label","inline","standalone"])},"kol-breadcrumb":{elements:{icon:{modifiers:null},link:{modifiers:null},list:{modifiers:null},"list-element":{modifiers:null},"list-element-span":{modifiers:null},separator:{modifiers:null}},modifiers:null},"kol-nav":{elements:{compact:{modifiers:null},entry:{modifiers:new Set(["button","collapsible","link"])},"entry-wrapper":{modifiers:null},list:{modifiers:new Set(["nested","vertical"])},"list-item":{modifiers:new Set(["active","expanded","has-children"])},navigation:{modifiers:null},"toggle-button":{modifiers:null}},modifiers:new Set(["is-compact"])},"kol-kolibri":{elements:{text:{modifiers:null}},modifiers:null},"kol-popover-button":{elements:{popover:{modifiers:null}},modifiers:new Set(["inline","open"])},"kol-details":{elements:{content:{modifiers:null},heading:{modifiers:null},wrapper:{modifiers:null},"wrapper-animation":{modifiers:null}},modifiers:new Set(["disabled","open"])},"kol-drawer":{elements:{content:{modifiers:null},dialog:{modifiers:null},wrapper:{modifiers:new Set(["bottom","is-closing","left","open","right","top"])}},modifiers:null},"kol-heading":{modifiers:new Set(["group"])},"kol-headline":{modifiers:new Set(["group","h1","h2","h3","h4","h5","h6","primary","secondary","single","strong"])},"kol-icon":{elements:{icon:{modifiers:null}},modifiers:null},"kol-meter":{elements:{bar:{modifiers:null},"bar-background":{modifiers:null},"bar-border":{modifiers:null},"bar-fill":{modifiers:new Set(["critical","optimum","suboptimal"])},"bar-label":{modifiers:null},"bar-state":{modifiers:new Set(["critical","optimum","suboptimal"])},"bar-track":{modifiers:null},unit:{modifiers:null},value:{modifiers:null},"value-unit":{modifiers:null}},modifiers:new Set(["vertical"])},"kol-quote":{elements:{blockquote:{modifiers:null},cite:{modifiers:null},figcaption:{modifiers:null},quote:{modifiers:null}},modifiers:new Set(["block","inline"])},"kol-skip-nav":{elements:{list:{modifiers:null},"list-item":{modifiers:null}},modifiers:null},"kol-close-button":{modifiers:null},"kol-span":{elements:{container:{modifiers:null},icon:{modifiers:new Set(["bottom","left","right","top"])},label:{modifiers:null},slot:{modifiers:null}},modifiers:new Set(["has-badge","hide-label"])},"kol-link":{elements:{"interactive-element":{modifiers:null},icon:{modifiers:null},text:{modifiers:null},tooltip:{modifiers:null}},modifiers:new Set(["disabled","external-link","hide-label","inline","standalone"])},"kol-form":{elements:{alert:{modifiers:null},form:{modifiers:null},link:{modifiers:null},"mandatory-fields-hint":{modifiers:null}},modifiers:null},"kol-form-field":{elements:{counter:{modifiers:null},hint:{modifiers:null},input:{modifiers:new Set(["orientation-horizontal","orientation-vertical"])},label:{modifiers:new Set(["legend"])},"label-text":{modifiers:null},msg:{modifiers:null},tooltip:{modifiers:null}},modifiers:new Set(["default","disabled","error","hidden-msg","hide-label","info","msg-type-default","msg-type-error","msg-type-info","msg-type-success","msg-type-warning","radio","read-only","required","success","touched","warning"])},"kol-input":{modifiers:new Set(["default","disabled","error","info","readonly","required","success","touched","warning"])},"kol-input-container":{elements:{adornment:{modifiers:new Set(["end","start"])},button:{modifiers:null},container:{modifiers:null},filename:{modifiers:new Set(["has-file"])},icon:{modifiers:null},"smart-button":{modifiers:null}},modifiers:new Set(["default","disabled","error","info","is-dragover","success","warning"])},"kol-field-control":{elements:{hint:{modifiers:null},input:{modifiers:null},label:{modifiers:new Set(["visually-hidden"])},"label-text":{modifiers:null}},modifiers:new Set(["default","disabled","error","hide-label","info","label-align-left","label-align-right","read-only","required","success","touched","warning"])},"kol-checkbox":{elements:{icon:{modifiers:null},input:{modifiers:null}},modifiers:new Set(["checked","default","disabled","error","indeterminate","info","required","success","touched","variant-button","variant-default","variant-switch","warning"])},"kol-input-checkbox":{elements:{"field-control":{modifiers:new Set(["checked","indeterminate","variant-button","variant-default","variant-switch"])}},modifiers:new Set(["checked","indeterminate","label-align-left","label-align-right","variant-button","variant-default","variant-switch"])},"kol-input-color":{elements:{input:{modifiers:new Set(["color"])}},modifiers:null},"kol-input-date":{modifiers:null},"kol-input-email":{modifiers:null},"kol-input-file":{modifiers:null},"kol-input-number":{elements:{"step-button":{modifiers:null}},modifiers:null},"kol-input-password":{elements:{"password-toggle-button":{modifiers:null}},modifiers:null},"kol-input-radio":{elements:{input:{modifiers:null}},modifiers:new Set(["checked","default","disabled","error","info","required","success","touched","warning"])},"kol-select":{elements:{optgroup:{modifiers:new Set(["disabled"])},option:{modifiers:new Set(["disabled","selected"])}},modifiers:new Set(["default","disabled","error","info","required","success","touched","warning"])},"kol-pagination":{elements:{button:{modifiers:new Set(["first","last","next","numbers","previous","selected"])},entries:{modifiers:null},navigation:{modifiers:null},"navigation-list":{modifiers:null},"page-size-select":{modifiers:null},separator:{modifiers:null}},modifiers:null},"kol-custom-suggestions-option":{modifiers:new Set(["disabled"])},"kol-custom-suggestions-options-group":{modifiers:new Set(["cursor-hidden","open"])},"kol-custom-suggestions-toggle":{modifiers:new Set(["disabled"])},"kol-combobox":{elements:{delete:{modifiers:null},group:{modifiers:null}},modifiers:new Set(["open"])},"kol-combobox-toggle":{modifiers:null},"kol-single-select":{elements:{delete:{modifiers:null},group:{modifiers:null},"no-results-message":{modifiers:null}},modifiers:new Set(["open"])},"kol-input-range":{elements:{input:{modifiers:new Set(["number","range"])},"inputs-wrapper":{modifiers:null}},modifiers:null},"kol-input-text":{elements:{"clear-button":{modifiers:new Set(["hidden"])}},modifiers:null},"kol-split-button":{elements:{button:{modifiers:null},"horizontal-line":{modifiers:null},root:{modifiers:null},"secondary-button":{modifiers:null}},modifiers:null},"kol-spin":{elements:{loader:{modifiers:null},spinner:{modifiers:new Set(["cycle","dot","none"])},"spinner-element":{modifiers:new Set(["1","2","3","neutral"])}},modifiers:null},"kol-table":{elements:{body:{modifiers:null},caption:{modifiers:null},cell:{modifiers:new Set(["actions","align-center","align-justify","align-left","align-right","ascending","body","descending","header","none","other","selection","states","sticky-left","sticky-right"])},"cell-actions":{modifiers:null},"cell-states":{modifiers:null},"focus-element":{modifiers:null},footer:{modifiers:null},head:{modifiers:null},"head-row":{modifiers:null},loader:{modifiers:new Set(["shown"])},row:{modifiers:new Set(["body","footer"])},"scroll-container":{modifiers:null},selection:{modifiers:new Set(["checked","indeterminate"])},"selection-icon":{modifiers:null},"selection-input":{modifiers:new Set(["checkbox","radio"])},"selection-input-tooltip":{modifiers:null},"selection-label":{modifiers:new Set(["disabled"])},settings:{modifiers:null},sort:{modifiers:null},"sort-button":{modifiers:null},"sort-order":{modifiers:null},spacer:{modifiers:new Set(["foot","head"])},"spacer-line":{modifiers:new Set(["foot","head"])},table:{modifiers:null}},modifiers:null},"kol-table-settings":{elements:{actions:{modifiers:null},column:{modifiers:null},"column-label":{modifiers:null},columns:{modifiers:null},content:{modifiers:null},"error-message":{modifiers:null}},modifiers:null},"kol-table-stateful":{elements:{pagination:{modifiers:new Set(["both","bottom","top"])},"pagination-wrapper":{modifiers:null}},modifiers:null},"kol-tabs":{elements:{"button-create":{modifiers:null},"button-group":{modifiers:null},content:{modifiers:null},tab:{modifiers:null},tablist:{modifiers:null}},modifiers:new Set(["align-bottom","align-left","align-right","align-top"])},"kol-textarea":{modifiers:new Set(["default","disabled","error","info","readonly","required","success","touched","warning"])},"kol-toolbar":{elements:{item:{modifiers:null}},modifiers:new Set(["orientation-horizontal","orientation-vertical"])},"kol-tree":{elements:{"treeview-navigation":{modifiers:null}},modifiers:null},"kol-tree-item":{elements:{children:{modifiers:null},link:{modifiers:new Set(["active","first-level"])},"link-inner":{modifiers:null},text:{modifiers:null},"toggle-button":{modifiers:null},"toggle-button-icon":{modifiers:null},"toggle-button-placeholder":{modifiers:null}},modifiers:null},"kol-image":{modifiers:null},"kol-popover":{elements:{arrow:{modifiers:new Set(["top","right","bottom","left"])}},modifiers:null},"kol-progress":{elements:{bar:{modifiers:null},"bar-background":{modifiers:null},"bar-border":{modifiers:null},"bar-label":{modifiers:null},"bar-progress":{modifiers:null},"bar-unit":{modifiers:null},"bar-value":{modifiers:null},cycle:{modifiers:null},"cycle-background":{modifiers:null},"cycle-border":{modifiers:null},"cycle-label":{modifiers:null},"cycle-progress":{modifiers:null},"cycle-text":{modifiers:null},"cycle-value":{modifiers:null},"cycle-whitespace":{modifiers:null}},modifiers:null},"kol-tooltip":{elements:{arrow:{modifiers:null},content:{modifiers:null},floating:{modifiers:null}},modifiers:null}};export{r as B,o as b}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{L as e,c as o,t,q as r,u as n}from"./index-D1fZ9xFt.js";import{s}from"./theme-store-DroJsU6S.js";import{i as a}from"./i18n-TlIXBsgS.js";import{g as i}from"./shared-state-Dn94ivRg.js";import{a as d}from"./component-names-DzmdvSkQ.js";const l=i("tag-transformer",(()=>({}))),m=e=>"undefined"!=typeof customElements&&void 0!==customElements.get(t(e)),c=t=>{l.transformer&&e.warn("The tag name transformer was already registered. Components already defined keep their current tag and will not resolve under the new one.",{forceLog:!0}),Object.values(d).some((e=>m(e)||m(t(e))))&&e.warn("Components are already defined while the tag name transformer is registered. They keep their current tag and will not resolve under the transformed one.",{forceLog:!0});const r=e=>e.startsWith("kol-")?t(e):e;return o(r),l.transformer=r,r},u=()=>l.transformer,f=i("bootstrap",(()=>({})));let p=!1;s();const v=async(o,t,s)=>{var i,d;const l="undefined"!=typeof process&&process.env?"production":void 0;r((null==s?void 0:s.environment)||l||"production"),a(null!==(d=null===(i=null==s?void 0:s.translation)||void 0===i?void 0:i.name)&&void 0!==d?d:"de",null==s?void 0:s.translations),(null==s?void 0:s.transformTagName)&&c(s.transformTagName);const m=await n(o,t,s);return p=!0,f.options=s,e.info("Development mode active - Enhanced debugging features available"),m},g=v,h=()=>p,y=()=>f.options;export{c as a,v as b,y as c,u as g,h as i,g as r}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{j as o}from"./index-D1fZ9xFt.js";import{c as r}from"./props-from-config-DqFgiUwD.js";import{c as n}from"./contrast-BHjNzQvB.js";const t=/^#((\d|[a-f]){8}|(\d|[a-f]){6}|(\d|[a-f]){3,4})$/i;function f(o){return t.test(o)}const c=r("color",{backgroundColor:"#d3d3d3",foregroundColor:"#3f3f3f"},(function(r){if("string"==typeof r&&f(r)){const o=n(r);return{backgroundColor:o.background,foregroundColor:o.foreground}}const t="string"==typeof r?o(r):r;if(Array.isArray(t)){const[o,r]=t;if("string"==typeof o&&"string"==typeof r&&f(o)&&f(r)){const t=n({background:o,foreground:r});return{backgroundColor:t.background,foregroundColor:t.foreground}}}if("object"==typeof t&&t){const o=t;if("string"==typeof o.backgroundColor&&"string"==typeof o.foregroundColor&&f(o.backgroundColor)&&f(o.foregroundColor)){const r=n({background:o.backgroundColor,foreground:o.foregroundColor});return{backgroundColor:r.background,foregroundColor:r.foreground}}}throw new Error(`Invalid color ${r}`)}),(function(o){return f(o.foregroundColor)&&f(o.backgroundColor)}));export{c}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{D as r,h as t}from"./index-D1fZ9xFt.js";import{c as e,b as n,i as o,x as a,n as s,y as i,q as l}from"./props-from-config-DqFgiUwD.js";import{a as f}from"./validators-yh10eyXe.js";import{b as d}from"./bem-registry-CrZZQahR.js";import{S as c}from"./component-CjdTbGlP.js";const u=["left","right","top","bottom"],p=(r,t)=>{let e="";return Array.isArray(r)&&r.forEach((r=>{e+="kol-"+t+"--"+r+" "})),e},b=e("accessKey","",n);function y(r,t){return e(r,t,(t=>{const e=n(t);if(o(e,u))return e;throw new Error(`Invalid ${r} value: ${e}`)}))}const m=e("ariaControls","",n),g=e("ariaDescription","",n),h=e("ariaExpanded","",(function(r){return a(r,"aria-expanded")})),v=e("customClass","",n,(function(r){return""===r||f(r)})),x=e("hideLabel",!1,s),j=e("inline",!0,s),w=["tab","treeitem"],D=e("role","",(function(r){if(""===r)return"";if(o(r,w))return r;throw new Error(`Invalid role: expected one of ${w.join(", ")}, got ${JSON.stringify(r)}`)})),I=e("shortKey","",n),$=e("icons",{},(function(r){if(!r||"string"==typeof r&&""===r)return{};if("string"==typeof r&&/^[{[]/.test(r.trim()))return i(r);if("string"==typeof r)return n(r);if("object"==typeof r)return i(r);throw new Error("Invalid icons: "+typeof r)}),(function(r){return"string"==typeof r?r.length>0:"object"==typeof r&&null!==r})),A=e("tabIndex",0,l,void 0,{hints:(t,e)=>{"number"==typeof e&&e>0&&r(`Positive tabIndex values ("${e}") can disrupt the natural tab order. Use 0 for tabbable elements or rely on DOM order.`)}}),C=y("tooltipAlign","right"),E=e("variant",[],(function(r){return Array.isArray(r)?r:"string"==typeof r?r.split(" "):[]}),(function(r){return 0===r.length||r.every(f)})),T=({description:r,descriptionId:e})=>r?t("span",{class:"visually-hidden",id:e},r):null,k=d.forBlock("kol-tooltip"),F=({label:r,badgeText:e,id:n,refFloating:o})=>t("div",{class:k("floating"),hidden:!r,ref:o},t("div",{class:k("arrow")}),t(c,{class:k("content"),badgeText:e,id:n,label:r}));export{T as A,F as T,b as a,m as b,g as c,I as d,C as e,h as f,v as g,x as h,j as i,y as j,p as k,D as l,$ as s,A as t,E as v}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{h as o}from"./index-D1fZ9xFt.js";import{b as r}from"./bem-registry-CrZZQahR.js";import{B as l}from"./props-from-config-DqFgiUwD.js";import{B as s}from"./component-DP_p5few.js";import{S as a}from"./component-CjdTbGlP.js";const t=r.forBlock("kol-badge"),e=t("label"),n=t("smart-button"),i=({color:r,icons:t,label:i,smartButton:m})=>o(l,{block:"kol-badge",modifiers:{"has-smart-button":void 0!==m},style:{backgroundColor:r.backgroundColor,color:r.foregroundColor}},o(a,{class:e,id:null==m?void 0:m.labelId,allowMarkdown:!0,icons:t,label:i}),m&&o(s,Object.assign({},m.resolvedButton,{class:n,ariaDescriptionId:m.ariaDescriptionId,handleBlur:m.handleBlur,handleClick:m.handleClick,handleFocus:m.handleFocus,handleMouseDown:m.handleMouseDown,refButton:m.refSmartButton,refTooltip:m.refTooltip})),o("br",null));export{i as B}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{h as o}from"./index-D1fZ9xFt.js";import{a as s}from"./tslib.es6-QNbPBOk5.js";import{b as i}from"./bem-registry-CrZZQahR.js";import{e as r,B as a}from"./props-from-config-DqFgiUwD.js";const e=i.forBlock("kol-icon")("icon"),l=i=>{var{class:l,icons:n,label:t}=i,c=s(i,["class","icons","label"]);const m=(null==t?void 0:t.length)>0;return o(a,Object.assign({component:"i"},c,{"aria-hidden":m?void 0:"true","aria-label":m?t:void 0,block:"kol-icon",class:r(e,n,l),role:m?"img":"presentation"}))};export{l as I}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{h as n,F as e}from"./index-D1fZ9xFt.js";import{a as r}from"./tslib.es6-QNbPBOk5.js";import{b as s}from"./bem-registry-CrZZQahR.js";import{s as l,u as t,w as o,B as a,e as i}from"./props-from-config-DqFgiUwD.js";import{I as g}from"./component-BZjDp_Lf.js";function u(n){return"string"==typeof n||!t(n)&&l(n)&&"[object String]"==o(n)}const c=n=>""===n,p=(n,e)=>n||e||"",b=new RegExp(String.fromCharCode(0),"g"),m=String.fromCharCode(65533),d={amp:"&",apos:"'",gt:">",lt:"<",nbsp:String.fromCharCode(160),quot:'"'},$=n=>Number.isInteger(n)&&n>=32&&n<=1114111&&!(n>=55296&&n<=57343)?String.fromCodePoint(n):void 0,f="\\s!-/:-@\\[-^`{-~",_=`(^|[${f}])`,x=`(?=$|[${f}])`,w="\\S(?:[\\s\\S]*\\S)?",v=/[ \t]{2,}\n/g,h=new RegExp(`~~(${w})~~`,"g"),j=new RegExp(`\\*\\*(${w})\\*\\*`,"g"),S=/\*([^\s*](?:[^*]*[^\s*])?)\*/g,y=new RegExp(`\\*\\*\\*(${w})\\*\\*\\*`,"g"),R=new RegExp(`${_}__(${w})__${x}`,"g"),k=new RegExp(`${_}_([^\\s_](?:[^_]*[^\\s_])?)_${x}`,"g"),E=new RegExp(`${_}___(${w})___${x}`,"g"),N=n=>{const e=[];return(n=>n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))((n=>n.replace(/&#(\d+);/g,((n,e)=>{var r;return null!==(r=$(Number.parseInt(e,10)))&&void 0!==r?r:n})).replace(/&#x([0-9a-f]+);/gi,((n,e)=>{var r;return null!==(r=$(Number.parseInt(e,16)))&&void 0!==r?r:n})).replace(/&([a-z]+);/gi,((n,e)=>{var r;return null!==(r=d[e.toLowerCase()])&&void 0!==r?r:n})))(n.replace(/\r\n?/g,"\n").replace(b,m))).replace(/\\([\\`*_~[\]()#+\-.!>{}])/g,((n,r)=>(e.push(r),`<${e.length-1}>`))).split(/(`[^`]+`)/).map(((n,e)=>e%2==0?(n=>n.replace(v,"<br>\n").replace(y,"<em><strong>$1</strong></em>").replace(E,"$1<em><strong>$2</strong></em>").replace(h,"<s>$1</s>").replace(j,"<strong>$1</strong>").replace(R,"$1<strong>$2</strong>").replace(S,"<em>$1</em>").replace(k,"$1<em>$2</em>"))(n):`<code>${n.slice(1,-1)}</code>`)).join("").replace(/<(\d+)>/g,((n,r)=>{var s;return null!==(s=e[Number.parseInt(r,10)])&&void 0!==s?s:""}))},D=s.forBlock("kol-span");function L(n){return null!=n&&function(n){return"object"==typeof n&&null!==n&&"icon"in n}(n)?n:u(n)&&n.length>0?{icon:n}:null}function Z(r){return Array.isArray(r)?n("span",null,r.map((e=>n("span",{lang:e.lang},e.text)))):n(e,null,r)}const q=(s,l)=>{const{allowMarkdown:t,badgeText:o,class:p,hideLabel:b=!1,icons:m,label:d}=s,$=r(s,["allowMarkdown","badgeText","class","hideLabel","icons","label"]);let f=null,_=null,x=null,w=null;!function(n){return"object"==typeof n&&null!==n&&!Array.isArray(n)}(m)?u(m)&&m.length>0&&(_={icon:m}):(f=L(m.top),_=L(m.left),x=L(m.right),w=L(m.bottom));const v=(e,r)=>{var s;return e?n(g,{class:D("icon",{[r]:!0}),icons:e.icon,label:null!==(s=e.label)&&void 0!==s?s:"",style:e.style}):null},h=!c(d);return n(a,Object.assign({component:"span"},$,{block:"kol-span",modifiers:{"has-badge":!!o,"hide-label":!!b},class:p}),v(f,"top"),n("span",{class:D("container")},v(_,"left"),h&&function(r,s,l,t){return s?null:Array.isArray(r)?n("span",{class:D("label")},r.map((e=>n("span",{lang:e.lang},e.text)))):l?n("span",{class:i(D("label"),"md"),innerHTML:N(r)}):n("span",{class:D("label")},t?function(r,s){let l=s,[t,...o]=r.split(l);return 0===o.length&&(l=s.toUpperCase(),[t,...o]=r.split(l)),0===o.length&&(l=s.toLowerCase(),[t,...o]=r.split(l)),n(e,null,t,o.length?n(e,null,n("u",null,l),o.join(l)):null)}(r,t):r)}(d,b,t,o),n("span",{"aria-hidden":h?"true":void 0,class:D("slot"),hidden:h},l),u(o)&&o.length>0&&n("kbd",{"aria-hidden":"true",class:"badge-text-hint"},o),v(x,"right")),v(w,"bottom"))};export{q as S,p as b,Z as r,c as s}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{h as o}from"./index-D1fZ9xFt.js";import{t as e}from"./i18n-Uze_l4Ts.js";import{r as l}from"./resolve-props-Dpl38Wpe.js";import{K as s}from"./Heading-foerLIu9.js";import{b as r}from"./bem-registry-CrZZQahR.js";import{a,r as t,e as i,B as n}from"./props-from-config-DqFgiUwD.js";import{B as c}from"./component-DP_p5few.js";import{r as m}from"./component-CjdTbGlP.js";import{l as p}from"./level-CWkPM-CS.js";import{h as d}from"./has-closer-B-uYNNCw.js";import{h as f}from"./href-DKPJq0Rh.js";import{l as h}from"./label-lang-segment-BSVexfSR.js";import{l as u}from"./link-target-B2OC2sZU.js";const b=a(),j={required:[h],optional:[b,d,f,p,u]};function g(o){return l({_hideLabel:!0,_icons:{left:{icon:"kolicon-cross"}},_label:e("kol-close"),_tooltipAlign:"top"},o)}const C=r.forBlock("kol-card"),B=C("close-button"),k=C("content"),v=C("header"),D=C("link"),I=r.forBlock("kol-close-button")(),_=()=>{},F=({headingId:e,label:l,level:r})=>o(s,{class:v,id:e,level:r},m(l)),P=(e,l)=>{const{ariaDescriptionId:s,class:r,closeButtonProps:a,handleBlur:m,handleClose:p,handleFocus:d,hasCloser:f,headingId:h,href:u,label:b,level:g,refCloseButton:C,refCta:v,refTooltip:P,target:w}=t(j,e);return o(n,{component:"article","aria-labelledby":h,block:"kol-card",class:r},u.length>0?o("a",{class:D,href:u,target:w||void 0,onBlur:m,onFocus:d,ref:v},o(F,{headingId:h,label:b,level:g})):o(F,{headingId:h,label:b,level:g}),o("div",{class:k},l),f&&o("div",{class:i(B,I)},o(c,Object.assign({},a,{ariaDescriptionId:s,handleBlur:_,handleClick:p,handleFocus:_,handleMouseDown:_,refButton:C,refTooltip:P}))))};export{P as C,b as a,j as c,g as r}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{h as o,F as l}from"./index-D1fZ9xFt.js";import{a as e}from"./tslib.es6-QNbPBOk5.js";import{g as a}from"./Heading-foerLIu9.js";import{t as r}from"./i18n-Uze_l4Ts.js";import{e as s,t as i,B as n}from"./props-from-config-DqFgiUwD.js";import{b as t}from"./bem-registry-CrZZQahR.js";import{B as c}from"./component-DP_p5few.js";import{r as d}from"./component-CjdTbGlP.js";import{I as p}from"./component-BZjDp_Lf.js";const f=t.forBlock("kol-alert")("icon"),m={error:{label:r("kol-error"),icon:"kolicon-alert-error"},info:{label:r("kol-info"),icon:"kolicon-alert-info"},warning:{label:r("kol-warning"),icon:"kolicon-alert-warning"},success:{label:r("kol-success"),icon:"kolicon-alert-success"},default:{label:r("kol-message"),icon:"kolicon-alert-info"}},k=({type:e="default"})=>{const a=m[e||"default"];return o(l,null,o("span",{class:"visually-hidden"},a.label),o(p,{class:f,label:"",icons:a.icon}))},u=t.forBlock("kol-alert"),b=u("closer"),h=u("content"),C=t.forBlock("kol-close-button")(),g=void 0,v=(l,t)=>{const{alert:p,class:f,closerAriaDescriptionId:m,handleCloserClick:v,hasCloser:j,headingId:y,label:D,level:B,refCloserButton:I,refCloserTooltip:w,type:x,variant:T}=l,A=e(l,["alert","class","closerAriaDescriptionId","handleCloserClick","hasCloser","headingId","label","level","refCloserButton","refCloserTooltip","type","variant"]),F=r("kol-close-alert"),P=a(null!=B?B:0);return o(n,Object.assign({block:"kol-alert",class:f,modifiers:{hasCloser:!0===j,[`type-${x}`]:!0,[`variant-${T}`]:!0},role:p?"alert":void 0},A),o(k,{type:x}),!!(null==D?void 0:D.length)&&o(P,{class:s("kol-headline",`kol-headline--${P}`,u("heading",{[`h${B}`]:!0}),"kol-headline--single"),id:y},d(D)),j&&o(c,{accessKey:"",ariaControls:"",ariaDescription:i(D),ariaDescriptionId:m,ariaExpanded:g,ariaHasPopup:"",ariaSelected:g,class:s(b,C),customClass:"",disabled:!1,handleBlur:()=>{},handleClick:v,handleFocus:()=>{},handleMouseDown:()=>{},hideLabel:!0,icons:{left:{icon:"kolicon-cross"}},id:"",inline:!1,label:F,name:"",on:{},refButton:I,refTooltip:w,role:g,shortKey:"",tabIndex:g,tooltipAlign:"top",type:"button",variant:["normal"]}),o("div",{"aria-describedby":(null==D?void 0:D.length)?y:void 0,class:h},t))};export{v as A}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{h as s,F as a}from"./index-D1fZ9xFt.js";import{t as n}from"./i18n-Uze_l4Ts.js";import{b as r}from"./bem-registry-CrZZQahR.js";import{c as o,n as e,b as l,r as t,B as i}from"./props-from-config-DqFgiUwD.js";import{l as c}from"./label-G82W4YoW.js";const p=o("show",!1,e),u=["dot","cycle","none"],m=o("variant","dot",(s=>{const a=l(s);if(u.includes(a))return a;throw new Error(`Invalid spin variant: ${a}`)}),(()=>!0)),f={optional:[c,p,m]},d=r.forBlock("kol-spin"),b=d("loader"),h=["1","2","3","neutral"],v=r=>{const{show:o,label:e,variant:l}=t(f,r);return s(i,{block:"kol-spin"},o?s(a,null,s("span",{class:d("spinner",{[l]:!0})},function(a){switch(a){case"cycle":return s("span",{class:b});case"none":return s("slot",{name:"expert"});default:return h.map((a=>s("span",{class:d("spinner-element",{[a]:!0})})))}}(l)),s("span",{"aria-busy":"true",class:"visually-hidden",role:"alert"},e||n("kol-action-running"))):s("span",{"aria-busy":"false",class:"visually-hidden",role:"alert"},e||n("kol-action-done")))};export{v as S,p as a,f as s,m as v}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{h as i}from"./index-D1fZ9xFt.js";import{j as o}from"./component-0npqUhj2.js";import{a as s,B as t,b as e,c as a}from"./behavior-DDo87iUM.js";import{e as r,B as n}from"./props-from-config-DqFgiUwD.js";import{B as l}from"./component-DP_p5few.js";import{a as p}from"./tslib.es6-QNbPBOk5.js";import{b as h}from"./bem-registry-CrZZQahR.js";const c=o("popoverAlign","bottom"),d={optional:[s]};class f extends t{constructor(i){super(i,d),this.show=!1,this.setPopoverElementRef=i=>{this.popoverElement=i,this.arrowElement=null==i?void 0:i.querySelector(".kol-popover__arrow")},this.setTriggerElement=i=>{this.triggerElement=i},this.alignPopover=async()=>{this.popoverElement&&this.triggerElement&&await e({align:this.getRenderProp("align"),referenceElement:this.triggerElement,arrowElement:this.arrowElement,floatingElement:this.popoverElement})},this.setupAutoUpdate=()=>{this.popoverElement&&this.triggerElement&&!this.cleanupAutoUpdate&&(this.cleanupAutoUpdate=a(this.triggerElement,this.popoverElement,(()=>{this.alignPopover()})))}}componentWillLoad(i){this.watchAlign(i.align)}watchAlign(i){s.apply(i,(i=>{this.setRenderProp("align",i)}))}setShow(i){this.show=i,this.popoverElement&&(this.popoverElement.isConnected?this.toggleVisibility():requestAnimationFrame((()=>{this.toggleVisibility()})))}destroy(){var i;null===(i=this.cleanupAutoUpdate)||void 0===i||i.call(this),this.cleanupAutoUpdate=void 0,this.popoverElement=void 0,this.arrowElement=void 0,this.triggerElement=void 0}toggleVisibility(){var i;if(!this.popoverElement)return;const o=this.popoverElement.matches(":popover-open");if(this.show){if(!o)try{this.popoverElement.showPopover(),this.setupAutoUpdate(),this.alignPopover()}catch(i){}}else if(o)try{this.popoverElement.hidePopover(),null===(i=this.cleanupAutoUpdate)||void 0===i||i.call(this),this.cleanupAutoUpdate=void 0}catch(i){}}}const m=h.forBlock("kol-popover"),v=(o,s)=>{const{align:t="bottom",popoverRef:e,arrowRef:a,class:n}=o,l=p(o,["align","popoverRef","arrowRef","class"]);return i("div",Object.assign({},l,{class:r(m(),n),ref:e,popover:"auto"}),i("div",{class:r(m("arrow"),m("arrow",{[t]:!0})),ref:a}),s.length>0?s:i("slot",null))},u=(o,s)=>{const{accessKey:t,ariaDescription:e,ariaDescriptionId:a,ariaHasPopup:r,ariaSelected:p,customClass:h,disabled:c,handleBlur:d,handleClick:f,handleFocus:m,handleMouseDown:u,hideLabel:b,icons:g,id:w,inline:y,label:D,name:j,on:k,popoverAlign:B,popoverOpen:x,popoverId:A,ref:C,refButton:P,refPopover:R,refTooltip:F,role:I,shortKey:_,tabIndex:E,tooltipAlign:K,type:q,variant:L}=o;return i(n,{block:"kol-popover-button",class:o.class,ref:C,modifiers:{open:x,inline:!0===y}},i(l,{accessKey:t,ariaControls:A,ariaDescription:e,ariaDescriptionId:a,ariaExpanded:x?"true":"false",ariaHasPopup:r,ariaSelected:p,customClass:h,disabled:c,handleBlur:d,handleClick:f,handleFocus:m,handleMouseDown:u,hideLabel:b,icons:g,id:w,inline:y,label:D,name:j,on:k,refButton:P,refTooltip:F,role:I,shortKey:_,tabIndex:E,tooltipAlign:K,type:q,variant:L}),i(v,{align:B,class:"kol-popover-button__popover",id:A,popoverRef:R},s))};export{u as P,f as a,c as p}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{h as a}from"./index-D1fZ9xFt.js";import{a as e}from"./tslib.es6-QNbPBOk5.js";import{c as s,i as o,x as i,a as t,b as r,r as n,t as l,e as d,B as c}from"./props-from-config-DqFgiUwD.js";import{a as p,b,c as u,f as m,g as f,h,i as v,l as x,d as y,s as j,t as g,e as C,v as k,A as w,T as D,k as B}from"./component-0npqUhj2.js";import{b as I}from"./bem-registry-CrZZQahR.js";import{S as F}from"./component-CjdTbGlP.js";import{d as T}from"./disabled-BZIZZ6wy.js";import{i as Z}from"./id-CkUYl2hO.js";import{l as K}from"./label-with-expert-slot-C1i0atAL.js";const P=["dialog","false","grid","listbox","menu","tree","true"],S=s("ariaHasPopup","",(function(a){if(""===a)return"";if(o(a,P))return a;throw new Error(`Invalid aria-haspopup value: expected one of ${P.join(", ")}, got ${JSON.stringify(a)}`)})),E=s("ariaSelected","",(function(a){return i(a,"aria-selected")})),L=t(),O=["button","reset","submit"],q=s("type","button",(function(a){const e=r(a);if(o(e,O))return e;throw new Error(`Invalid button type: ${e}`)}),(a=>O.includes(a))),A=s("name","",r),H={required:[K],optional:[p,b,u,m,S,E,L,q,f,T,h,Z,v,x,A,y,j,g,C,k]},M=I.forBlock("kol-button"),U=M("interactive-element"),$=M("text"),N=M("tooltip"),Q=s=>{const o=n(H,s),{accessKey:i,ariaControls:t,ariaDescription:r,ariaDescriptionId:p,ariaExpanded:b,ariaHasPopup:u,ariaSelected:m,class:f,customClass:h,disabled:v,handleBlur:x,handleClick:y,handleFocus:j,handleMouseDown:g,hideLabel:C,icons:k,id:I,inline:T,label:Z,name:K,refButton:P,refTooltip:S,role:E,shortKey:L,tabIndex:O,type:q,variant:A}=o,M=e(o,["accessKey","ariaControls","ariaDescription","ariaDescriptionId","ariaExpanded","ariaHasPopup","ariaSelected","class","customClass","disabled","handleBlur","handleClick","handleFocus","handleMouseDown","hideLabel","icons","id","inline","label","name","refButton","refTooltip","role","shortKey","tabIndex","type","variant","on","tooltipAlign"]),Q=i||L,G=l(Z).length>0,J=r.trim().length>0;return a(c,Object.assign({block:"kol-button",class:d(f,{[B(A,"button")]:A.length>0,[h]:h.length>0}),modifiers:{disabled:v,"hide-label":C,inline:!0===T,standalone:!1===T}},M),a("button",{ref:P,accessKey:i||void 0,"aria-controls":t||void 0,"aria-describedby":J?p:void 0,"aria-expanded":b||void 0,"aria-haspopup":u||void 0,"aria-keyshortcuts":L||void 0,"aria-label":C&&G?l(Z):void 0,"aria-selected":m||void 0,class:U,disabled:v,id:I||void 0,name:K||void 0,onBlur:x,onClick:y,onFocus:j,onMouseDown:g,role:E||void 0,tabIndex:O,type:q},a(F,{class:$,badgeText:Q,icons:k,hideLabel:C,label:Z},a("slot",{name:"expert",slot:"expert"}))),C&&G&&a("div",{class:N},a(D,{badgeText:Q,label:Z,refFloating:S})),J&&a(w,{description:r,descriptionId:p}))};export{Q as B,E as a,H as b,L as c,q as d,S as e,A as n}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{m as a,h as e}from"./index-D1fZ9xFt.js";import{t as o}from"./i18n-Uze_l4Ts.js";import{c as i,b as s,a as r,r as t,t as n,e as l,B as d}from"./props-from-config-DqFgiUwD.js";import{a as c,b as p,c as m,f,g as b,h as v,i as h,l as k,d as g,s as j,t as u,e as x,v as y,A as w,T as C,k as D}from"./component-0npqUhj2.js";import{b as Z}from"./bem-registry-CrZZQahR.js";import{p as _}from"./element-interaction-B3GEli6r.js";import{I}from"./component-BZjDp_Lf.js";import{S as L}from"./component-CjdTbGlP.js";import{d as T}from"./disabled-BZIZZ6wy.js";import{h as A}from"./href-DKPJq0Rh.js";import{l as B}from"./label-with-expert-slot-C1i0atAL.js";import{l as K}from"./link-target-B2OC2sZU.js";const q=["date","location","page","step","time","true","false"],O=i("ariaCurrentValue","page",(function(a){const e=s(a);return q.includes(e)?e:"page"})),U=i("ariaOwns","",s),F=i("download",void 0,s),$=r(),E={required:[A],optional:[c,p,O,m,f,U,b,T,F,v,h,B,$,k,K,g,j,u,x,y]},G=Z.forBlock("kol-link"),P=(i,s)=>{const{accessKey:r,ariaControls:c,ariaCurrent:p,ariaDescription:m,ariaDescriptionId:f,ariaExpanded:b,ariaOwns:v,class:h,customClass:k,disabled:g,download:j,handleAnchorClick:u,hideLabel:x,href:y,icons:Z,inline:T,label:A,on:B,ref:K,refAnchor:q,refTooltip:O,role:U,shortKey:F,tabIndex:$,target:P,variant:R,expertSlot:S}=t(E,i),z=o("kol-open-link-in-tab"),J="string"==typeof P&&P.length>0&&"_self"!==P,M={href:"string"==typeof y&&y.length>0?y:"javascript:void(0);",target:"string"==typeof P&&P.length>0?P:void 0,rel:J?"noopener":void 0,download:"string"==typeof j?j:void 0};!0===x&&""===n(A)&&a("[KolLink] An aria-label must be set when _hide-label is set.");const Q=null==m?void 0:m.trim(),V=U||void 0;return e(d,{block:"kol-link",ref:K,class:l(h,{[k]:R.includes("custom")&&k.length>0,[D(R,"link")]:R.length>0}),modifiers:{disabled:!0===g,"external-link":J,"hide-label":!0===x,inline:!0===T,standalone:!1===T}},e("a",Object.assign({ref:q},M,{href:M.href,accessKey:r||void 0,"aria-current":p||void 0,"aria-controls":c||void 0,"aria-describedby":Q?f:void 0,"aria-disabled":g?"true":void 0,"aria-expanded":""===b?void 0:b,"aria-owns":v||void 0,"aria-label":x&&""!==n(A)?`${n(A)}${J?` (${z})`:""}`:void 0,"aria-keyshortcuts":F||void 0,class:G("interactive-element")},B,{onClick:u,onMouseDown:g?_:void 0,role:V,tabIndex:g?-1:$}),e(L,{class:"kol-link__text",badgeText:r||F,icons:Z,hideLabel:x,label:S?"":A||y},s.length>0?s:e("slot",{name:"expert",slot:"expert"})),J&&e(I,{class:"kol-link__icon",label:x?"":z,icons:"kolicon-link-external","aria-hidden":x})),!0===x&&!S&&e("div",{class:G("tooltip")},e(C,{badgeText:r||F||"",label:""!==n(A)?A:"string"==typeof y?y:"",refFloating:O})),Q&&e(w,{description:Q,descriptionId:f}))};export{P as L,O as a,$ as b,U as c,F as d,E as l}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import"./index-D1fZ9xFt.js";const o="kol-form",l="kol-toast-container",a="kol-tree-item",t="kol-tree";var e=Object.freeze({__proto__:null,KolAbbrTag:"kol-abbr",KolAccordionTag:"kol-accordion",KolAlertTag:"kol-alert",KolAvatarTag:"kol-avatar",KolBadgeTag:"kol-badge",KolBreadcrumbTag:"kol-breadcrumb",KolButtonLinkTag:"kol-button-link",KolButtonTag:"kol-button",KolCardTag:"kol-card",KolComboboxTag:"kol-combobox",KolDetailsTag:"kol-details",KolDialogTag:"kol-dialog",KolDrawerTag:"kol-drawer",KolFormTag:o,KolHeadingTag:"kol-heading",KolIconTag:"kol-icon",KolImageTag:"kol-image",KolInputCheckboxTag:"kol-input-checkbox",KolInputColorTag:"kol-input-color",KolInputDateTag:"kol-input-date",KolInputEmailTag:"kol-input-email",KolInputFileTag:"kol-input-file",KolInputNumberTag:"kol-input-number",KolInputPasswordTag:"kol-input-password",KolInputRadioTag:"kol-input-radio",KolInputRangeTag:"kol-input-range",KolInputTag:"kol-input",KolInputTextTag:"kol-input-text",KolKolibriTag:"kol-kolibri",KolLinkButtonTag:"kol-link-button",KolLinkTag:"kol-link",KolMeterTag:"kol-meter",KolModalTag:"kol-modal",KolNavTag:"kol-nav",KolPaginationTag:"kol-pagination",KolPopoverButtonTag:"kol-popover-button",KolProgressTag:"kol-progress",KolQuoteTag:"kol-quote",KolSelectTag:"kol-select",KolSingleSelectTag:"kol-single-select",KolSkipNavTag:"kol-skip-nav",KolSpinTag:"kol-spin",KolSplitButtonTag:"kol-split-button",KolTableStatefulTag:"kol-table-stateful",KolTableStatelessTag:"kol-table-stateless",KolTabsTag:"kol-tabs",KolTextareaTag:"kol-textarea",KolToastContainerTag:l,KolToolbarTag:"kol-toolbar",KolTreeItemTag:a,KolTreeTag:t,KolVersionTag:"kol-version"});export{l as K,e as a,o as b,a as c,t as d}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{Q as t,S as r}from"./index-D1fZ9xFt.js";import{A as o}from"./props-from-config-DqFgiUwD.js";const a=(o,n,s,e=1)=>{const g=[Math.max(Math.min(Math.round(n[0]+e*Math.max(1,n[0]/100)),255),0),Math.max(Math.min(Math.round(n[1]+e*Math.max(1,n[1]/100)),255),0),Math.max(Math.min(Math.round(n[2]+e*Math.max(1,n[2]/100)),255),0)],f=r(t.hex(`rgba(${o.join(",")},1)`),t.hex(`rgba(${g.join(",")},1)`)),c=g[0]+g[1]+g[2];return 0===c||765===c||f>s?{background:o,foreground:g,contrast:f}:a(o,g,s,e)},n=(r,n=7)=>{let s=[0,0,0,1],e=[255,255,255,1];"string"==typeof r?(s=o(r),e=s):"object"==typeof r&&null!==r&&"string"==typeof r.background&&"string"==typeof r.foreground&&(s=o(r.background),e="string"==typeof r.foreground?o(r.foreground):s);const g=((t,r,o)=>{const n=(299*t[0]+587*t[1]+114*t[2])/1e3>=128?-1:1,s=a(t,r,o,n);if(s.contrast>=o)return s;const e=a(t,r,o,-n);return e.contrast>s.contrast?e:s})([s[0],s[1],s[2]],[e[0],e[1],e[2]],n);return e=[...g.foreground,1],{background:t.hex(`rgba(${s.join(",")})`),foreground:t.hex(`rgba(${e.join(",")})`),contrast:g.contrast}};export{n as c}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{V as e,m as t,i as n,t as o,e as s,L as a}from"./index-D1fZ9xFt.js";import{b as r}from"./component-names-DzmdvSkQ.js";const i=n=>{for(e()&&(t("↓ Search form element start."),a.debug(n));n instanceof HTMLElement&&"FORM"!==n.tagName&&n.tagName!==o(r).toUpperCase();){try{n=n.parentElement instanceof HTMLElement?n.parentElement:n.parentNode instanceof ShadowRoot?n.parentNode.host:null}catch(e){}e()&&a.debug(n)}return e()&&t("↑ Search form element finished."),n},f=(e={})=>{const t=i(e.form);if(t instanceof HTMLElement){const e=new Event("reset",{bubbles:!0,cancelable:!0});if("FORM"===t.tagName)n(e,t),t.dispatchEvent(e);else if(t.tagName===o(r).toUpperCase()){const o=s.querySelector("form",t);o&&(n(e,o),o.dispatchEvent(e))}}},c=(a={})=>{var f;const c=null!==(f=a.shouldSubmit)&&void 0!==f?f:()=>!0,l=i(a.form);if(l instanceof HTMLElement){const a=new SubmitEvent("submit",{bubbles:!0,cancelable:!0,submitter:l});if("FORM"===l.tagName)e()&&!1===l.noValidate&&t("If you have not focusable or hidden form fields in your form, you should enable noValidate for your form.",{force:!0}),setTimeout((()=>{c()&&("function"==typeof l.requestSubmit?l.requestSubmit():(n(a,l),l.dispatchEvent(a)))}));else if(l.tagName===o(r).toUpperCase()){const e=s.querySelector("form",l);e&&(n(a,e),setTimeout((()=>{c()&&e.dispatchEvent(a)})))}}},l=(e,t)=>{"Enter"!==e.code&&"NumpadEnter"!==e.code||e.isComposing||c(Object.assign(Object.assign({},t),{shouldSubmit:()=>!e.defaultPrevented&&!(e=>{var t;try{return null!==(t=null==e?void 0:e.matches(":open"))&&void 0!==t&&t}catch(e){return!1}})(t.ref)}))};export{f as a,c as p,l as s}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{L as n,I as t,J as e,M as o,N as i,O as s,P as a}from"./index-D1fZ9xFt.js";const r=()=>{let n=s().KoliBri;return void 0===n&&(n={},Object.defineProperty(s(),"KoliBri",{value:n,writable:!1})),n},c="\n,--. ,--. ,--. ,--. ,-----. ,--.\n| .' / ,---. | | `--' | |) /_ ,--.--. `--'\n| . ' | .-. | | | ,--. | .-. \\ | .--' ,--.\n| |\\ \\ | '-' | | | | | | '--' / | | | |\n`--' `--´ `---´ `--' `--' `------´ `--' `--'".replace(/ /g," "),u=()=>{(()=>{try{const n=e();if(!n||"function"!=typeof n.querySelector)return;const t=n.querySelector('meta[name="kolibri"]');if(t&&t.hasAttribute("content")){const n=t.getAttribute("content");"string"==typeof n&&(o(n.includes("experimental-mode=true")),i(n.includes("color-contrast-analysis=true")))}}catch(n){}})(),n.debug(`${c}\n🚹 The accessible HTML-Standard | 👉 https://public-ui.github.io | ${t.kolibriVersion}\n\t`,{forceLog:!0})},l=()=>{!0!==r().adviceShown&&(Object.defineProperty(r(),"adviceShown",{get:function(){return!0}}),n.debug("\nYou are using the KoliBri component library. If you have any suggestions for improvement or find a problem, please contact us:\n\nTicket: https://github.com/public-ui/kolibri/issues/new/choose (for privacy reasons, please use email)\nEmail: kolibri@itzbund.de\n"))};let f=()=>Math.floor(16777215*Math.random()).toString(16);a()&&(f=()=>"nonce");const p=n=>`${n}-${f()}`,b=(n,t)=>{const e=n.lastIndexOf("-");if(-1===e)return`${n}-${t}`;const o=n.slice(e+1);return"nonce"===o||/^[0-9a-f]+$/.test(o)?`${n.slice(0,e)}-${t}-${o}`:`${n}-${t}`};export{b as a,p as c,u as i,f as n,l as r}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{a1 as t,L as o,J as i,t as e,O as a,a2 as n,a0 as l,a3 as s,a4 as r,a5 as c,j as d,a6 as f,V as u,a7 as p}from"./index-D1fZ9xFt.js";import{i as L,r as v}from"./dev.utils-BgFDROtc.js";function m(t,i){try{Object.defineProperty((()=>{let t=a().KoliBri;return void 0===t&&(t={},Object.defineProperty(a(),"KoliBri",{value:t,writable:!1})),t})(),t,{get:function(){return i}})}catch(i){o.debug(`KoliBri property ${t} is already bind.`)}}const y=(t,i)=>o.debug(`${t} ${i?"":"not "}activated`),h=()=>{if(L(),t()&&(v(),m("a11yColorContrast",n),m("querySelector",l),m("querySelectorAll",s),m("querySelectorColors",r),m("utils",(function(){return c})),m("parseJson",d),m("stringifyJson",f),y("Development mode",t()),y("Experimental mode",u()),y("Color contrast analysis",p()),setTimeout((()=>{try{const t=i(),o=null==t?void 0:t.body;if(t&&o&&"function"==typeof t.createElement){const i=t.createElement(e("svg"));i.setAttribute("aria-label","KoliBri-DevTools"),i.setAttribute("xmlns","http://www.w3.org/2000/svg"),i.setAttribute("role","toolbar"),i.setAttribute("style","position: fixed;color: black;font-size: 200%;bottom: 0.25rem;right: 0.25rem;"),i.innerHTML='<svg\n xmlns="http://www.w3.org/2000/svg"\n width="50"\n height="50"\n viewBox="0 0 600 600"\n>\n <path d="M353 322L213 304V434L353 322Z" fill="#047" />\n <path d="M209 564V304L149 434L209 564Z" fill="#047" />\n <path d="M357 316L417 250L361 210L275 244L357 316Z" fill="#047" />\n <path d="M353 318L35 36L213 300L353 318Z" fill="#047" />\n <path d="M329 218L237 92L250 222L272 241L329 218Z" fill="#047" />\n <path d="M391 286L565 272L421 252L391 286Z" fill="#047" />\n</svg>',o.appendChild(i)}}catch(t){o.debug(["Could not initialize DevTools UI (likely in SSR/test environment):",t])}}),100),p())){const t=setTimeout((()=>{clearTimeout(t);try{const t=i(),o=null==t?void 0:t.body;t&&o&&"function"==typeof t.createElement&&setInterval((()=>{c.queryHtmlElementColors(t.createElement(e("div")),n(o),!1,!1)}),1e4)}catch(t){o.debug(["Could not initialize color contrast analysis:",t])}}),2500)}};export{h as initialize}
|