@public-ui/components 4.6.0-rc.1 → 4.6.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/kolicons/kolicons.eot +0 -0
- package/assets/kolicons/kolicons.ttf +0 -0
- package/assets/kolicons/kolicons.woff +0 -0
- package/assets/kolicons/kolicons.woff2 +0 -0
- package/assets/kolicons/style.css +6 -6
- package/custom-elements.json +1 -1
- package/dist/cjs/{Heading-DpKpW9_U.js → Heading-CmnijhLd.js} +1 -1
- package/dist/cjs/{api-DSnFV5pX.js → api-Bg7hdIrJ.js} +20 -20
- package/dist/cjs/{app-globals-DWk29tH4.js → app-globals-BwYPSMbG.js} +3 -3
- package/dist/cjs/{base-Cdk10fDz.js → base-BVhV5HmV.js} +10 -10
- package/dist/cjs/{base-B1L6tTOu.js → base-CQB0r-ZQ.js} +11 -11
- package/dist/cjs/{base-uTtcb6OV.js → base-JFyPasp9.js} +27 -24
- package/dist/cjs/{base-DB-5MCfF.js → base-ob1X79UM.js} +12 -12
- package/dist/cjs/{base-web-component-CyF5QpIH.js → base-web-component-DBcJrpRb.js} +15 -15
- package/dist/cjs/{base-web-component-B6mwGD0m.js → base-web-component-DXCN-Sp3.js} +1 -1
- package/dist/cjs/{base-web-component-BdHm5Oq9.js → base-web-component-dI9FmFIm.js} +10 -10
- package/dist/cjs/{behavior-BnUihLzw.js → behavior-B5wr2A8R.js} +5 -5
- package/dist/cjs/{behavior-D5F_9gEC.js → behavior-CUmF8rJf.js} +5 -5
- package/dist/cjs/{behavior-C3w_8ifK.js → behavior-DujaVCwV.js} +5 -5
- package/dist/cjs/{bem-registry-ZJZujhCi.js → bem-registry-B6QoNC9E.js} +1 -1
- package/dist/cjs/{block-bem-CMvCkLkl.js → block-bem-ByCgFI2B.js} +1 -1
- package/dist/cjs/{bootstrap-C4lWLUW9.js → bootstrap-HU5YhM_w.js} +2 -2
- package/dist/cjs/{color-BW4t1Cif.js → color-C3xsA3Uk.js} +3 -3
- package/dist/cjs/{common-C-hcIfzh.js → common-CzGJx0nT.js} +31 -30
- package/dist/cjs/{component-_p4OHWcc.js → component-1J4G5HmZ.js} +14 -14
- package/dist/cjs/{component-C46QQbMS.js → component-BexD3069.js} +11 -11
- package/dist/cjs/{component-CrW05zUq.js → component-BilLJFfC.js} +5 -5
- package/dist/cjs/{component-DfChjUi8.js → component-Bza8hlo-.js} +10 -10
- package/dist/cjs/{component-BwrQID5A.js → component-Cbbx7Z6c.js} +4 -4
- package/dist/cjs/{component-eYoUHQ64.js → component-CjXcCX2V.js} +2 -2
- package/dist/cjs/{component-N-3XFtFS.js → component-Cqp00Tb9.js} +8 -8
- package/dist/cjs/{component-BXz1XtoE.js → component-DFhuXUqv.js} +15 -15
- package/dist/cjs/{component-B2l8N5t_.js → component-DGVc4bOy.js} +4 -4
- package/dist/cjs/{component-BE_gS80r.js → component-DkV9oPCL.js} +2 -2
- package/dist/cjs/{component-CWEYNtAH.js → component-Doln6Ltn.js} +5 -5
- package/dist/cjs/{component-DsWMXDya.js → component-DprHBKdZ.js} +7 -7
- package/dist/cjs/{contrast-4mAdSLs0.js → contrast-6Nku3lih.js} +2 -2
- package/dist/cjs/{controller-DcinOUmN.js → controller-D66Eq44x.js} +1 -1
- package/dist/cjs/{dev.utils-Bxq7b-n1.js → dev.utils-Bx4sgPsr.js} +2 -2
- package/dist/cjs/{devtools-BLvPSoCH.js → devtools-BXBKJice.js} +3 -3
- package/dist/cjs/{disabled-jYcvcwjv.js → disabled-CilmJ-p-.js} +1 -1
- package/dist/cjs/{field-control-D9t3USqP.js → field-control-B95uzQnW.js} +8 -8
- package/dist/cjs/{group-CFBPF3hG.js → group-DGS7K6Ja.js} +7 -7
- package/dist/cjs/{has-closer-CvNa5gqv.js → has-closer-iSIrv52u.js} +1 -1
- package/dist/cjs/{href-BBhiVyPb.js → href-xojo1zy_.js} +1 -1
- package/dist/cjs/{i18n-BnOWw1MQ.js → i18n-D7UmRsV8.js} +2 -2
- package/dist/cjs/{i18n-BSWM5nea.js → i18n-DgHI4-xa.js} +2 -0
- package/dist/cjs/{id-D1VZsLkg.js → id-DP-w6i4q.js} +1 -1
- package/dist/cjs/{index-CNhjOFBg.js → index-Ccvyz7Rq.js} +23 -12
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/{input-C3F73RZW.js → input-BKXEykG_.js} +5 -5
- package/dist/cjs/{input-container-B5-_NcRy.js → input-container-CWb_kRbs.js} +8 -8
- package/dist/cjs/{item-CfCrfeQL.js → item-C4Boh5Cz.js} +5 -5
- package/dist/cjs/{item-dlea1NHr.js → item-DgNTEUz3.js} +30 -15
- package/dist/cjs/{item-DvddzW3M.js → item-vDMQvV0t.js} +6 -6
- package/dist/cjs/{item-nAB1wPvv.js → item-wr5KfPYM.js} +12 -12
- package/dist/cjs/kol-abbr.cjs.entry.js +13 -12
- package/dist/cjs/kol-accordion.cjs.entry.js +21 -20
- package/dist/cjs/kol-alert.cjs.entry.js +32 -30
- package/dist/cjs/kol-avatar.cjs.entry.js +17 -16
- package/dist/cjs/kol-badge.cjs.entry.js +30 -29
- package/dist/cjs/kol-breadcrumb.cjs.entry.js +32 -31
- package/dist/cjs/kol-button-link.cjs.entry.js +29 -28
- package/dist/cjs/kol-button.cjs.entry.js +29 -28
- package/dist/cjs/kol-card.cjs.entry.js +34 -33
- package/dist/cjs/kol-combobox.cjs.entry.js +46 -45
- package/dist/cjs/kol-details.cjs.entry.js +21 -20
- package/dist/cjs/kol-dialog.cjs.entry.js +37 -36
- package/dist/cjs/kol-drawer.cjs.entry.js +36 -35
- package/dist/cjs/kol-form.cjs.entry.js +30 -29
- package/dist/cjs/kol-heading.cjs.entry.js +15 -14
- package/dist/cjs/kol-icon.cjs.entry.js +20 -16
- package/dist/cjs/kol-image.cjs.entry.js +10 -9
- package/dist/cjs/kol-input-checkbox.cjs.entry.js +41 -40
- package/dist/cjs/kol-input-color.cjs.entry.js +43 -42
- package/dist/cjs/kol-input-date.cjs.entry.js +45 -44
- package/dist/cjs/kol-input-email.cjs.entry.js +48 -47
- package/dist/cjs/kol-input-file.cjs.entry.js +42 -41
- package/dist/cjs/kol-input-number.cjs.entry.js +47 -46
- package/dist/cjs/kol-input-password.cjs.entry.js +46 -45
- package/dist/cjs/kol-input-radio.cjs.entry.js +41 -40
- package/dist/cjs/kol-input-range.cjs.entry.js +43 -42
- package/dist/cjs/kol-input-text.cjs.entry.js +48 -47
- package/dist/cjs/kol-kolibri.cjs.entry.js +13 -12
- package/dist/cjs/kol-link-button.cjs.entry.js +30 -29
- package/dist/cjs/kol-link.cjs.entry.js +30 -29
- package/dist/cjs/kol-meter.cjs.entry.js +20 -22
- package/dist/cjs/kol-modal.cjs.entry.js +37 -36
- package/dist/cjs/kol-nav.cjs.entry.js +38 -37
- package/dist/cjs/kol-pagination.cjs.entry.js +45 -44
- package/dist/cjs/kol-popover-button.cjs.entry.js +30 -29
- package/dist/cjs/kol-progress.cjs.entry.js +21 -17
- package/dist/cjs/kol-quote.cjs.entry.js +12 -11
- package/dist/cjs/kol-select.cjs.entry.js +41 -40
- package/dist/cjs/kol-single-select.cjs.entry.js +53 -47
- package/dist/cjs/kol-skip-nav.cjs.entry.js +32 -31
- package/dist/cjs/kol-spin.cjs.entry.js +17 -16
- package/dist/cjs/kol-split-button.cjs.entry.js +33 -32
- package/dist/cjs/kol-table-stateful.cjs.entry.js +57 -56
- package/dist/cjs/kol-table-stateless.cjs.entry.js +45 -44
- package/dist/cjs/kol-tabs.cjs.entry.js +36 -38
- package/dist/cjs/kol-textarea.cjs.entry.js +48 -45
- package/dist/cjs/kol-toast-container.cjs.entry.js +25 -24
- package/dist/cjs/kol-toolbar.cjs.entry.js +35 -34
- package/dist/cjs/kol-tooltip-wc.cjs.entry.js +15 -14
- package/dist/cjs/kol-tree-item.cjs.entry.js +28 -27
- package/dist/cjs/kol-tree.cjs.entry.js +12 -11
- package/dist/cjs/kol-version.cjs.entry.js +27 -26
- package/dist/cjs/kolibri.cjs.js +4 -4
- package/dist/cjs/{label-vVOiX4dC.js → label-D6c6jfqK.js} +3 -3
- package/dist/cjs/{label-hints-D6EBRW9T.js → label-hints-q3XenWLW.js} +2 -2
- package/dist/cjs/{label-lang-segment-CYlAqtUl.js → label-lang-segment-k4OY9qRY.js} +2 -2
- package/dist/cjs/{label-with-expert-slot-B9z4nqW1.js → label-with-expert-slot-CJoz7BLw.js} +3 -3
- package/dist/cjs/{level-BAiEYu4U.js → level-B6vFMm9s.js} +1 -1
- package/dist/cjs/{link-target-4AzB3I84.js → link-target-0qSVsAb2.js} +1 -1
- package/dist/cjs/{links-CPNK7VZo.js → links-Ur1e9DOK.js} +2 -2
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{multiple-B3ZpkzWu.js → multiple-CCxtzqez.js} +1 -1
- package/dist/cjs/{number-value-B2yoKlvx.js → number-value-DzAHCwlP.js} +1 -1
- package/dist/cjs/{open-CvoX_qxD.js → open-Gxr_K7HK.js} +1 -1
- package/dist/cjs/{options-B2pQC9w2.js → options-BT0m0gRT.js} +2 -2
- package/dist/cjs/{orientation-u2cvwgBc.js → orientation-CeHU4dT8.js} +1 -1
- package/dist/cjs/{placeholder-C9Ngp2tQ.js → placeholder-22xUUFff.js} +1 -1
- package/dist/cjs/{props-from-config-BQ2SOZlz.js → props-from-config-D1qhXS9j.js} +1 -1
- package/dist/cjs/{read-only-DfWF-Coi.js → read-only-iHApMQEg.js} +1 -1
- package/dist/cjs/{required-CdXn16dq.js → required-BYdSI25I.js} +1 -1
- package/dist/cjs/{resolve-props-ClWlRbhz.js → resolve-props-B_ytLWBO.js} +7 -7
- package/dist/cjs/{resolve-props-BUSerQcI.js → resolve-props-pZBj0tIz.js} +8 -8
- package/dist/cjs/{rows-Ca5ya9tG.js → rows-C9vBSQK1.js} +1 -1
- package/dist/cjs/{scroll-lock-CSW_wA0P.js → scroll-lock-DguXX-Em.js} +2 -2
- package/dist/cjs/{smart-button-CB8qIzgQ.js → smart-button-DRMmUyQ5.js} +2 -2
- package/dist/cjs/{spell-check-DKRC8xbW.js → spell-check-CxgvHcGA.js} +1 -1
- package/dist/cjs/{src-C3NG0rLO.js → src-Bmd7gQCS.js} +1 -1
- package/dist/cjs/{step-CZNyTb2h.js → step-CCqgsPCX.js} +1 -1
- package/dist/cjs/{suggestions-CIGYxDps.js → suggestions-C6Q3kj5J.js} +3 -3
- package/dist/cjs/{suggestions-BRclldK2.js → suggestions-CoUp7HmN.js} +2 -2
- package/dist/cjs/test-component.cjs.entry.js +4 -3
- package/dist/cjs/{toggle-handler-Cy5RcTS_.js → toggle-handler-BaOOa9I5.js} +10 -10
- package/dist/cjs/{unique-nav-labels-CIAwid5V.js → unique-nav-labels-CgxOyb6V.js} +2 -2
- package/dist/cjs/{unit-bsoemclF.js → unit-_oDj-vIB.js} +1 -1
- package/dist/cjs/{validators-DuLdbf2D.js → validators-CpCJvM4r.js} +3 -1
- package/dist/cjs/{value-string-DZ_FFaUt.js → value-string-CKppMGVM.js} +1 -1
- package/dist/cjs/{width-BklaRCqt.js → width-e7f3wHF3.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/abbr/component.js +2 -2
- package/dist/collection/components/accordion/component.js +2 -2
- package/dist/collection/components/accordion/style.css +2 -2
- package/dist/collection/components/alert/component.js +4 -3
- package/dist/collection/components/alert/style.css +2 -2
- package/dist/collection/components/avatar/component.js +2 -2
- package/dist/collection/components/badge/component.js +2 -2
- package/dist/collection/components/badge/style.css +2 -2
- package/dist/collection/components/breadcrumb/component.js +2 -2
- package/dist/collection/components/breadcrumb/style.css +2 -2
- package/dist/collection/components/button/component.js +1 -1
- package/dist/collection/components/button/style.css +2 -2
- package/dist/collection/components/button-link/component.js +1 -1
- package/dist/collection/components/button-link/style.css +2 -2
- package/dist/collection/components/card/component.js +2 -2
- package/dist/collection/components/card/style.css +2 -2
- package/dist/collection/components/combobox/component.js +4 -4
- package/dist/collection/components/combobox/style.css +2 -2
- package/dist/collection/components/details/component.js +2 -2
- package/dist/collection/components/details/style.css +2 -2
- package/dist/collection/components/dialog/component.js +2 -2
- package/dist/collection/components/dialog/style.css +2 -2
- package/dist/collection/components/drawer/component.js +2 -2
- package/dist/collection/components/drawer/style.css +2 -2
- package/dist/collection/components/form/component.js +2 -2
- package/dist/collection/components/form/style.css +2 -2
- package/dist/collection/components/heading/component.js +2 -2
- package/dist/collection/components/icon/component.js +5 -5
- package/dist/collection/components/icon/style.css +2 -2
- package/dist/collection/components/image/component.js +2 -2
- package/dist/collection/components/input-checkbox/component.js +3 -3
- package/dist/collection/components/input-checkbox/style.css +2 -2
- package/dist/collection/components/input-color/component.js +2 -2
- package/dist/collection/components/input-color/style.css +2 -2
- package/dist/collection/components/input-date/component.js +2 -2
- package/dist/collection/components/input-date/style.css +2 -2
- package/dist/collection/components/input-email/component.js +1 -1
- package/dist/collection/components/input-email/style.css +2 -2
- package/dist/collection/components/input-file/component.js +2 -2
- package/dist/collection/components/input-file/style.css +2 -2
- package/dist/collection/components/input-number/component.js +2 -2
- package/dist/collection/components/input-number/style.css +2 -2
- package/dist/collection/components/input-password/component.js +1 -1
- package/dist/collection/components/input-password/style.css +2 -2
- package/dist/collection/components/input-radio/component.js +1 -1
- package/dist/collection/components/input-radio/style.css +2 -2
- package/dist/collection/components/input-range/component.js +2 -2
- package/dist/collection/components/input-range/style.css +2 -2
- package/dist/collection/components/input-text/component.js +1 -1
- package/dist/collection/components/input-text/style.css +2 -2
- package/dist/collection/components/kolibri/component.js +2 -2
- package/dist/collection/components/link/component.js +2 -2
- package/dist/collection/components/link/style.css +2 -2
- package/dist/collection/components/link-button/component.js +2 -2
- package/dist/collection/components/link-button/style.css +2 -2
- package/dist/collection/components/meter/component.js +2 -2
- package/dist/collection/components/modal/component.js +2 -2
- package/dist/collection/components/modal/style.css +2 -2
- package/dist/collection/components/nav/component.js +2 -2
- package/dist/collection/components/nav/style.css +2 -2
- package/dist/collection/components/pagination/component.js +2 -2
- package/dist/collection/components/pagination/style.css +2 -2
- package/dist/collection/components/popover-button/component.js +1 -1
- package/dist/collection/components/popover-button/style.css +2 -2
- package/dist/collection/components/progress/component.js +6 -3
- package/dist/collection/components/quote/component.js +2 -2
- package/dist/collection/components/select/component.js +1 -1
- package/dist/collection/components/select/style.css +2 -2
- package/dist/collection/components/single-select/component.js +10 -6
- package/dist/collection/components/single-select/style.css +2 -2
- package/dist/collection/components/skip-nav/component.js +2 -2
- package/dist/collection/components/skip-nav/style.css +2 -2
- package/dist/collection/components/spin/component.js +2 -2
- package/dist/collection/components/split-button/component.js +1 -1
- package/dist/collection/components/split-button/style.css +2 -2
- package/dist/collection/components/table-stateful/component.js +2 -2
- package/dist/collection/components/table-stateful/style.css +2 -2
- package/dist/collection/components/table-stateless/base.js +3 -0
- package/dist/collection/components/table-stateless/component.js +2 -2
- package/dist/collection/components/table-stateless/style.css +2 -2
- package/dist/collection/components/tabs/component.js +2 -11
- package/dist/collection/components/tabs/style.css +2 -2
- package/dist/collection/components/textarea/component.js +5 -3
- package/dist/collection/components/textarea/style.css +2 -2
- package/dist/collection/components/toaster/shadow.js +1 -1
- package/dist/collection/components/toaster/style.css +2 -2
- package/dist/collection/components/toolbar/component.js +2 -2
- package/dist/collection/components/toolbar/style.css +2 -2
- package/dist/collection/components/tooltip/component.js +1 -1
- package/dist/collection/components/tree/component.js +2 -2
- package/dist/collection/components/tree-item/component.js +2 -2
- package/dist/collection/components/tree-item/style.css +2 -2
- package/dist/collection/components/version/component.js +2 -2
- package/dist/collection/components/version/style.css +2 -2
- package/dist/collection/internal/functional-components/form-field/custom-suggestions.js +1 -1
- package/dist/collection/internal/functional-components/icon/api.js +2 -2
- package/dist/collection/internal/functional-components/link/component.js +1 -1
- package/dist/collection/internal/functional-components/meter/component.js +3 -6
- package/dist/collection/internal/functional-components/pagination/component.js +2 -3
- package/dist/collection/internal/functional-components/pagination/item.js +15 -0
- package/dist/collection/internal/functional-components/progress/component.js +1 -1
- package/dist/collection/internal/functional-components/single-select/component.js +2 -1
- package/dist/collection/internal/functional-components/tabs/component.js +7 -1
- package/dist/collection/internal/props/helpers/validators.js +1 -0
- package/dist/collection/internal/props/index.js +1 -0
- package/dist/collection/internal/props/label-decorative.js +10 -0
- package/dist/collection/locales/de.js +1 -0
- package/dist/collection/locales/en.js +1 -0
- package/dist/collection/schema/i18n-keys.js +29 -28
- package/dist/components/base4.js +1 -1
- package/dist/components/bem-registry.js +1 -1
- package/dist/components/component3.js +1 -1
- package/dist/components/component6.js +1 -1
- package/dist/components/group.js +1 -1
- package/dist/components/i18n2.js +1 -1
- package/dist/components/item4.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-tooltip-wc.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-with-expert-slot.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/validators.js +1 -1
- package/dist/esm/{Heading-wrhAEuG3.js → Heading-C_CwXDMp.js} +1 -1
- package/dist/esm/{api-7B_iI89k.js → api-DGiFM9p0.js} +20 -20
- package/dist/esm/{app-globals-tRqgHq3P.js → app-globals-sZHZyXjD.js} +3 -3
- package/dist/esm/{base-C32RNC8q.js → base-B4sGK9cX.js} +12 -12
- package/dist/esm/{base-BDYPTFjC.js → base-CWrvN3Gt.js} +10 -10
- package/dist/esm/{base-BVztEKgJ.js → base-DTKJ1Z06.js} +27 -24
- package/dist/esm/{base-D_-9Lzkd.js → base-P1TaQ7Ba.js} +11 -11
- package/dist/esm/{base-web-component-BUu68byc.js → base-web-component-Bq_B9edx.js} +15 -15
- package/dist/esm/{base-web-component-XgI4wUyN.js → base-web-component-CC_gpyDb.js} +1 -1
- package/dist/esm/{base-web-component-DdY5aIHN.js → base-web-component-CKgIOZqi.js} +10 -10
- package/dist/esm/{behavior-fGxZN96S.js → behavior-Bb7JYoUn.js} +5 -5
- package/dist/esm/{behavior-DsTiTiJC.js → behavior-CFG1f4KQ.js} +5 -5
- package/dist/esm/{behavior-DN-22cB1.js → behavior-CkPQGfgo.js} +5 -5
- package/dist/esm/{bem-registry-Crcs_65u.js → bem-registry-DQUGxdIS.js} +1 -1
- package/dist/esm/{block-bem-DehcAQZQ.js → block-bem-BGIVcYJu.js} +1 -1
- package/dist/esm/{bootstrap-DHXUvPBY.js → bootstrap-tgQ2nQQI.js} +2 -2
- package/dist/esm/{color-eAL9I7Wq.js → color-D1gM-F2l.js} +3 -3
- package/dist/esm/{common-OzsC_6kt.js → common-BdSzSIXg.js} +31 -30
- package/dist/esm/{component-4xXBb7K-.js → component-5Uu-ahLC.js} +4 -4
- package/dist/esm/{component-BJ4gGOph.js → component-B05zRrM0.js} +2 -2
- package/dist/esm/{component-Cxdi6on4.js → component-B16Fbp3W.js} +11 -11
- package/dist/esm/{component-0IO2wu9i.js → component-BI8jDgBz.js} +10 -10
- package/dist/esm/{component-DHNcVTi0.js → component-Bc2pdOk1.js} +8 -8
- package/dist/esm/{component-CPq3i3I_.js → component-C79oAu7a.js} +5 -5
- package/dist/esm/{component-CTOYF3q6.js → component-CldKbBUh.js} +7 -7
- package/dist/esm/{component-et0GdBuf.js → component-Clz6b6ho.js} +2 -2
- package/dist/esm/{component-DWywPG_a.js → component-Ct11K0Gv.js} +14 -14
- package/dist/esm/{component-EK9BJR6z.js → component-DAQzDMY8.js} +15 -15
- package/dist/esm/{component-ChuoBFI-.js → component-W1KZI4h4.js} +4 -4
- package/dist/esm/{component-NEw1tN3M.js → component-oUQcgxDj.js} +5 -5
- package/dist/esm/{contrast-D78VGPFR.js → contrast-BNoQruBh.js} +2 -2
- package/dist/esm/{controller-Cb-96wE-.js → controller-CZcQ57AP.js} +1 -1
- package/dist/esm/{dev.utils-Bg7nZBMk.js → dev.utils-DDWOHUcg.js} +2 -2
- package/dist/esm/{devtools-nUT3JVTV.js → devtools-B0kEE_za.js} +3 -3
- package/dist/esm/{disabled-Cqhc40CU.js → disabled-BZXlWAgK.js} +1 -1
- package/dist/esm/{field-control-D2tOd14v.js → field-control-DsQHa0v9.js} +8 -8
- package/dist/esm/{group-CxWsx0aJ.js → group-DUVsgWxS.js} +7 -7
- package/dist/esm/{has-closer-B9NQY7BK.js → has-closer-DUB0QcS9.js} +1 -1
- package/dist/esm/{href-JqLbNBsW.js → href-CxokGOJ2.js} +1 -1
- package/dist/esm/{i18n-Dl6Jjofb.js → i18n-4J6U3ZDc.js} +2 -0
- package/dist/esm/{i18n-DtLKn3Xt.js → i18n-ePBcLlCr.js} +2 -2
- package/dist/esm/{id-CIYvVaNr.js → id-BI0ZuK17.js} +1 -1
- package/dist/esm/{index-B_bJG8-2.js → index-Dulj0jro.js} +23 -12
- package/dist/esm/index.js +6 -6
- package/dist/esm/{input-Ia9Z3AP7.js → input-C0Li7DsE.js} +5 -5
- package/dist/esm/{input-container-Y_8n5Sen.js → input-container-DmtMTcjB.js} +8 -8
- package/dist/esm/{item-BjriQHQl.js → item-8RKFpmbd.js} +6 -6
- package/dist/esm/{item-BZtI88zF.js → item-CnJMuEyl.js} +5 -5
- package/dist/esm/{item-BKVeXzUO.js → item-CxVe5INa.js} +30 -15
- package/dist/esm/{item-BuqBMSYI.js → item-DHZGDrAn.js} +12 -12
- package/dist/esm/kol-abbr.entry.js +13 -12
- package/dist/esm/kol-accordion.entry.js +21 -20
- package/dist/esm/kol-alert.entry.js +32 -30
- package/dist/esm/kol-avatar.entry.js +17 -16
- package/dist/esm/kol-badge.entry.js +30 -29
- package/dist/esm/kol-breadcrumb.entry.js +32 -31
- package/dist/esm/kol-button-link.entry.js +29 -28
- package/dist/esm/kol-button.entry.js +29 -28
- package/dist/esm/kol-card.entry.js +34 -33
- package/dist/esm/kol-combobox.entry.js +46 -45
- package/dist/esm/kol-details.entry.js +21 -20
- package/dist/esm/kol-dialog.entry.js +37 -36
- package/dist/esm/kol-drawer.entry.js +36 -35
- package/dist/esm/kol-form.entry.js +30 -29
- package/dist/esm/kol-heading.entry.js +15 -14
- package/dist/esm/kol-icon.entry.js +20 -16
- package/dist/esm/kol-image.entry.js +10 -9
- package/dist/esm/kol-input-checkbox.entry.js +41 -40
- package/dist/esm/kol-input-color.entry.js +43 -42
- package/dist/esm/kol-input-date.entry.js +45 -44
- package/dist/esm/kol-input-email.entry.js +48 -47
- package/dist/esm/kol-input-file.entry.js +42 -41
- package/dist/esm/kol-input-number.entry.js +47 -46
- package/dist/esm/kol-input-password.entry.js +46 -45
- package/dist/esm/kol-input-radio.entry.js +41 -40
- package/dist/esm/kol-input-range.entry.js +43 -42
- package/dist/esm/kol-input-text.entry.js +48 -47
- package/dist/esm/kol-kolibri.entry.js +13 -12
- package/dist/esm/kol-link-button.entry.js +30 -29
- package/dist/esm/kol-link.entry.js +30 -29
- package/dist/esm/kol-meter.entry.js +20 -22
- package/dist/esm/kol-modal.entry.js +37 -36
- package/dist/esm/kol-nav.entry.js +38 -37
- package/dist/esm/kol-pagination.entry.js +45 -44
- package/dist/esm/kol-popover-button.entry.js +30 -29
- package/dist/esm/kol-progress.entry.js +21 -17
- package/dist/esm/kol-quote.entry.js +12 -11
- package/dist/esm/kol-select.entry.js +41 -40
- package/dist/esm/kol-single-select.entry.js +53 -47
- package/dist/esm/kol-skip-nav.entry.js +32 -31
- package/dist/esm/kol-spin.entry.js +17 -16
- package/dist/esm/kol-split-button.entry.js +33 -32
- package/dist/esm/kol-table-stateful.entry.js +57 -56
- package/dist/esm/kol-table-stateless.entry.js +45 -44
- package/dist/esm/kol-tabs.entry.js +36 -38
- package/dist/esm/kol-textarea.entry.js +48 -45
- package/dist/esm/kol-toast-container.entry.js +25 -24
- package/dist/esm/kol-toolbar.entry.js +35 -34
- package/dist/esm/kol-tooltip-wc.entry.js +15 -14
- package/dist/esm/kol-tree-item.entry.js +28 -27
- package/dist/esm/kol-tree.entry.js +12 -11
- package/dist/esm/kol-version.entry.js +27 -26
- package/dist/esm/kolibri.js +5 -5
- package/dist/esm/{label-BRosRgdX.js → label-B-Dr7VaP.js} +3 -3
- package/dist/esm/{label-hints-Jn18RUT-.js → label-hints-CLMiVvfk.js} +2 -2
- package/dist/esm/{label-lang-segment-2_GnxjFp.js → label-lang-segment-iVD9hoM3.js} +2 -2
- package/dist/esm/{label-with-expert-slot-CicRes-W.js → label-with-expert-slot-BbZ9nx0l.js} +3 -3
- package/dist/esm/{level-CA1s1_Mf.js → level-DsQ_pcyD.js} +1 -1
- package/dist/esm/{link-target-FX94oqMo.js → link-target-D7lYILOV.js} +1 -1
- package/dist/esm/{links-DwucTqcR.js → links-IkK4zoXw.js} +2 -2
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{multiple-DqrZxybx.js → multiple--ay1C1n3.js} +1 -1
- package/dist/esm/{number-value-B-SJ1dRo.js → number-value-Dl9-2O4r.js} +1 -1
- package/dist/esm/{open-DRRv1KFK.js → open-CNHJhHsy.js} +1 -1
- package/dist/esm/{options-DCaUcfAu.js → options-DwO32GBF.js} +2 -2
- package/dist/esm/{orientation-XNOCaPwy.js → orientation-ChJ0S24M.js} +1 -1
- package/dist/esm/{placeholder-BeLIzdJv.js → placeholder-UxmBJ4Vl.js} +1 -1
- package/dist/esm/{props-from-config-Ci0dILpz.js → props-from-config-ytxYrJUY.js} +1 -1
- package/dist/esm/{read-only-Bby9r6ZX.js → read-only-DytZ5HZJ.js} +1 -1
- package/dist/esm/{required-hoaT7UmZ.js → required-BriHhuO4.js} +1 -1
- package/dist/esm/{resolve-props-BkF1VBBB.js → resolve-props-02J6OCRf.js} +8 -8
- package/dist/esm/{resolve-props-CHPFh7Tn.js → resolve-props-Bj6IaybL.js} +7 -7
- package/dist/esm/{rows-B0x8CR7K.js → rows-I1jrTjzU.js} +1 -1
- package/dist/esm/{scroll-lock-D7Zo0QLt.js → scroll-lock-B6hVv8A8.js} +2 -2
- package/dist/esm/{smart-button-CS_ZriPt.js → smart-button-DM5g48-g.js} +2 -2
- package/dist/esm/{spell-check-DzgftyqL.js → spell-check-BWCnJG5v.js} +1 -1
- package/dist/esm/{src-DaGhmCL1.js → src-ziOwSglN.js} +1 -1
- package/dist/esm/{step-Bdj89bGO.js → step-BcyhvRtu.js} +1 -1
- package/dist/esm/{suggestions-GEr-cvbz.js → suggestions-DaB3FVaz.js} +3 -3
- package/dist/esm/{suggestions-Dy1X-Pc3.js → suggestions-LO267l8F.js} +2 -2
- package/dist/esm/test-component.entry.js +4 -3
- package/dist/esm/{toggle-handler-Bqoo8tCo.js → toggle-handler-3qaN2kmt.js} +10 -10
- package/dist/esm/{unique-nav-labels-h2KOu5Qy.js → unique-nav-labels-CxFUYSVY.js} +2 -2
- package/dist/esm/{unit-BUhhJbhT.js → unit-1ix-K9SD.js} +1 -1
- package/dist/esm/{validators-BVM40IEr.js → validators-CTjxOidB.js} +3 -2
- package/dist/esm/{value-string-e9pwLcS-.js → value-string-CxDz7dhD.js} +1 -1
- package/dist/esm/{width-CgYY17tL.js → width-C1_yZHyL.js} +1 -1
- package/dist/kolibri/{Heading-wrhAEuG3.js → Heading-C_CwXDMp.js} +1 -1
- package/dist/kolibri/api-DGiFM9p0.js +4 -0
- package/dist/kolibri/app-globals-sZHZyXjD.js +4 -0
- package/dist/kolibri/{base-C32RNC8q.js → base-B4sGK9cX.js} +1 -1
- package/dist/kolibri/{base-BDYPTFjC.js → base-CWrvN3Gt.js} +1 -1
- package/dist/kolibri/base-DTKJ1Z06.js +4 -0
- package/dist/kolibri/{base-D_-9Lzkd.js → base-P1TaQ7Ba.js} +1 -1
- package/dist/kolibri/{base-web-component-BUu68byc.js → base-web-component-Bq_B9edx.js} +1 -1
- package/dist/kolibri/{base-web-component-XgI4wUyN.js → base-web-component-CC_gpyDb.js} +1 -1
- package/dist/kolibri/{base-web-component-DdY5aIHN.js → base-web-component-CKgIOZqi.js} +1 -1
- package/dist/kolibri/{behavior-fGxZN96S.js → behavior-Bb7JYoUn.js} +1 -1
- package/dist/kolibri/{behavior-DsTiTiJC.js → behavior-CFG1f4KQ.js} +1 -1
- package/dist/kolibri/{behavior-DN-22cB1.js → behavior-CkPQGfgo.js} +1 -1
- package/dist/kolibri/{bem-registry-Crcs_65u.js → bem-registry-DQUGxdIS.js} +1 -1
- package/dist/kolibri/block-bem-BGIVcYJu.js +4 -0
- package/dist/kolibri/bootstrap-tgQ2nQQI.js +4 -0
- package/dist/kolibri/{color-eAL9I7Wq.js → color-D1gM-F2l.js} +1 -1
- package/dist/kolibri/common-BdSzSIXg.js +4 -0
- package/dist/kolibri/component-5Uu-ahLC.js +4 -0
- package/dist/kolibri/component-B05zRrM0.js +4 -0
- package/dist/kolibri/component-B16Fbp3W.js +4 -0
- package/dist/kolibri/component-BI8jDgBz.js +4 -0
- package/dist/kolibri/{component-DHNcVTi0.js → component-Bc2pdOk1.js} +1 -1
- package/dist/kolibri/component-C79oAu7a.js +4 -0
- package/dist/kolibri/component-CldKbBUh.js +4 -0
- package/dist/kolibri/component-Clz6b6ho.js +4 -0
- package/dist/kolibri/component-Ct11K0Gv.js +4 -0
- package/dist/kolibri/component-DAQzDMY8.js +4 -0
- package/dist/kolibri/component-W1KZI4h4.js +4 -0
- package/dist/kolibri/{component-NEw1tN3M.js → component-oUQcgxDj.js} +1 -1
- package/dist/kolibri/contrast-BNoQruBh.js +4 -0
- package/dist/kolibri/{controller-Cb-96wE-.js → controller-CZcQ57AP.js} +1 -1
- package/dist/kolibri/dev.utils-DDWOHUcg.js +4 -0
- package/dist/kolibri/{devtools-nUT3JVTV.js → devtools-B0kEE_za.js} +1 -1
- package/dist/kolibri/disabled-BZXlWAgK.js +4 -0
- package/dist/kolibri/field-control-DsQHa0v9.js +4 -0
- package/dist/kolibri/group-DUVsgWxS.js +4 -0
- package/dist/kolibri/has-closer-DUB0QcS9.js +4 -0
- package/dist/kolibri/href-CxokGOJ2.js +4 -0
- package/dist/kolibri/i18n-4J6U3ZDc.js +4 -0
- package/dist/kolibri/i18n-ePBcLlCr.js +4 -0
- package/dist/kolibri/id-BI0ZuK17.js +4 -0
- package/dist/kolibri/index-Dulj0jro.js +6 -0
- package/dist/kolibri/index.esm.js +1 -1
- package/dist/kolibri/input-C0Li7DsE.js +4 -0
- package/dist/kolibri/{input-container-Y_8n5Sen.js → input-container-DmtMTcjB.js} +1 -1
- package/dist/kolibri/item-8RKFpmbd.js +4 -0
- package/dist/kolibri/item-CnJMuEyl.js +4 -0
- package/dist/kolibri/item-CxVe5INa.js +4 -0
- package/dist/kolibri/item-DHZGDrAn.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-tooltip-wc.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-B-Dr7VaP.js +4 -0
- package/dist/kolibri/label-hints-CLMiVvfk.js +4 -0
- package/dist/kolibri/label-lang-segment-iVD9hoM3.js +4 -0
- package/dist/kolibri/label-with-expert-slot-BbZ9nx0l.js +4 -0
- package/dist/kolibri/level-DsQ_pcyD.js +4 -0
- package/dist/kolibri/link-target-D7lYILOV.js +4 -0
- package/dist/kolibri/links-IkK4zoXw.js +4 -0
- package/dist/kolibri/multiple--ay1C1n3.js +4 -0
- package/dist/kolibri/number-value-Dl9-2O4r.js +4 -0
- package/dist/kolibri/open-CNHJhHsy.js +4 -0
- package/dist/kolibri/options-DwO32GBF.js +4 -0
- package/dist/kolibri/orientation-ChJ0S24M.js +4 -0
- package/dist/kolibri/placeholder-UxmBJ4Vl.js +4 -0
- package/dist/kolibri/{props-from-config-Ci0dILpz.js → props-from-config-ytxYrJUY.js} +1 -1
- package/dist/kolibri/read-only-DytZ5HZJ.js +4 -0
- package/dist/kolibri/required-BriHhuO4.js +4 -0
- package/dist/kolibri/resolve-props-02J6OCRf.js +4 -0
- package/dist/kolibri/resolve-props-Bj6IaybL.js +4 -0
- package/dist/kolibri/rows-I1jrTjzU.js +4 -0
- package/dist/kolibri/scroll-lock-B6hVv8A8.js +4 -0
- package/dist/kolibri/{smart-button-CS_ZriPt.js → smart-button-DM5g48-g.js} +1 -1
- package/dist/kolibri/spell-check-BWCnJG5v.js +4 -0
- package/dist/kolibri/src-ziOwSglN.js +4 -0
- package/dist/kolibri/step-BcyhvRtu.js +4 -0
- package/dist/kolibri/suggestions-DaB3FVaz.js +4 -0
- package/dist/kolibri/{suggestions-Dy1X-Pc3.js → suggestions-LO267l8F.js} +1 -1
- package/dist/kolibri/test-component.entry.js +1 -1
- package/dist/kolibri/toggle-handler-3qaN2kmt.js +4 -0
- package/dist/kolibri/unique-nav-labels-CxFUYSVY.js +4 -0
- package/dist/kolibri/unit-1ix-K9SD.js +4 -0
- package/dist/kolibri/validators-CTjxOidB.js +4 -0
- package/dist/kolibri/value-string-CxDz7dhD.js +4 -0
- package/dist/kolibri/{width-CgYY17tL.js → width-C1_yZHyL.js} +1 -1
- package/dist/types/components/progress/component.d.ts +1 -0
- package/dist/types/components/single-select/component.d.ts +1 -0
- package/dist/types/components/tabs/component.d.ts +0 -1
- package/dist/types/internal/functional-components/form-field/custom-suggestions.d.ts +1 -0
- package/dist/types/internal/functional-components/icon/api.d.ts +1 -1
- package/dist/types/internal/functional-components/single-select/component.d.ts +3 -0
- package/dist/types/internal/props/helpers/validators.d.ts +2 -1
- package/dist/types/internal/props/index.d.ts +1 -0
- package/dist/types/internal/props/label-decorative.d.ts +4 -0
- package/dist/types/locales/de.d.ts +1 -0
- package/dist/types/locales/en.d.ts +1 -0
- package/dist/types/schema/i18n-keys.d.ts +29 -28
- package/dist/types/schema/index.d.ts +1 -1
- package/dist/types/schema/props/label.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1 -1
- package/package.json +6 -6
- package/dist/kolibri/api-7B_iI89k.js +0 -4
- package/dist/kolibri/app-globals-tRqgHq3P.js +0 -4
- package/dist/kolibri/base-BVztEKgJ.js +0 -4
- package/dist/kolibri/block-bem-DehcAQZQ.js +0 -4
- package/dist/kolibri/bootstrap-DHXUvPBY.js +0 -4
- package/dist/kolibri/common-OzsC_6kt.js +0 -4
- package/dist/kolibri/component-0IO2wu9i.js +0 -4
- package/dist/kolibri/component-4xXBb7K-.js +0 -4
- package/dist/kolibri/component-BJ4gGOph.js +0 -4
- package/dist/kolibri/component-CPq3i3I_.js +0 -4
- package/dist/kolibri/component-CTOYF3q6.js +0 -4
- package/dist/kolibri/component-ChuoBFI-.js +0 -4
- package/dist/kolibri/component-Cxdi6on4.js +0 -4
- package/dist/kolibri/component-DWywPG_a.js +0 -4
- package/dist/kolibri/component-EK9BJR6z.js +0 -4
- package/dist/kolibri/component-et0GdBuf.js +0 -4
- package/dist/kolibri/contrast-D78VGPFR.js +0 -4
- package/dist/kolibri/dev.utils-Bg7nZBMk.js +0 -4
- package/dist/kolibri/disabled-Cqhc40CU.js +0 -4
- package/dist/kolibri/field-control-D2tOd14v.js +0 -4
- package/dist/kolibri/group-CxWsx0aJ.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-B_bJG8-2.js +0 -6
- package/dist/kolibri/input-Ia9Z3AP7.js +0 -4
- package/dist/kolibri/item-BKVeXzUO.js +0 -4
- package/dist/kolibri/item-BZtI88zF.js +0 -4
- package/dist/kolibri/item-BjriQHQl.js +0 -4
- package/dist/kolibri/item-BuqBMSYI.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/number-value-B-SJ1dRo.js +0 -4
- package/dist/kolibri/open-DRRv1KFK.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/read-only-Bby9r6ZX.js +0 -4
- package/dist/kolibri/required-hoaT7UmZ.js +0 -4
- package/dist/kolibri/resolve-props-BkF1VBBB.js +0 -4
- package/dist/kolibri/resolve-props-CHPFh7Tn.js +0 -4
- package/dist/kolibri/rows-B0x8CR7K.js +0 -4
- package/dist/kolibri/scroll-lock-D7Zo0QLt.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-GEr-cvbz.js +0 -4
- package/dist/kolibri/toggle-handler-Bqoo8tCo.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/components/base4.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{r as t}from"./aria-labelledby.js";import{I as e,L as o,p as l,b as i}from"./bem-registry.js";import{h as s,Fragment as n,forceUpdate as a}from"@stencil/core/internal/client";import{B as r}from"./base-web-component.js";import{c}from"./item.js";import{c as d}from"./item-pool.js";import{c as h}from"./item3.js";import{c as b,e as u,n as p,a as v,r as f,t as m,C as y}from"./props-from-config.js";import{l as g}from"./label-lang-segment.js";import{v as k,j}from"./component3.js";import{c as C,d as S,e as w}from"./component-names.js";import{t as _}from"./i18n.js";import{B as x}from"./component.js";import{B as O}from"./component9.js";import{I as $}from"./component5.js";import{L as F}from"./component6.js";import{r as L}from"./component7.js";import{S as I}from"./component11.js";import{T as D}from"./component10.js";import{a as T}from"./tslib.es6.js";import{n as z,c as A}from"./dev.utils.js";import{d as E,K as M}from"./events.js";import{A as B}from"./component2.js";import{l as H}from"./level.js";import{c as K}from"./element-interaction.js";import{u as N,l as P,d as W,D as R}from"./scroll-lock.js";import{h as q}from"./tooltip-open-tracking.js";import{d as U,w as V}from"./width.js";import{r as G,C as J}from"./component8.js";import{T as Q}from"./behavior.js";import{C as X}from"./keyboard.js";const Y=(l,i,s,n)=>{const a=t=>"string"==typeof t||void 0===t;if(e(l,"_ariaLabelledby",a,new Set(["string"]),n),!a(n))return[];const r=t(i,n);if(s){try{s.ariaLabelledByElements=r}catch(t){}o.debug(["WebComponent internals",s])}return r},Z=t=>"number"==typeof t&&Number.isInteger(t)&&t>=0,tt=b("fixedCols",[0,0],(t=>u(t)),(t=>2===t.length&&t.every(Z))),et=b("hasSettingsMenu",!1,p),ot=v();function lt(t){const e="string"==typeof t?l(t):t;if(Array.isArray(e))return e;throw new Error("Invalid table data: expected an array of row objects.")}function it(t){return t.every((t=>"object"==typeof t&&null!==t))}const st=b("data",[],lt,it),nt=b("dataFoot",[],lt,it),at=t=>Array.isArray(t)&&t.every((t=>Array.isArray(t))),rt=b("headers",{horizontal:[],vertical:[]},(function(t){const e="string"==typeof t?l(t):t;if("object"!=typeof e||null===e)throw new Error("Invalid table headers: expected an object.");const{horizontal:o=[],vertical:i=[]}=e;if(!at(o)||!at(i))throw new Error("Invalid table headers: horizontal and vertical must be arrays of header rows.");return{horizontal:o,vertical:i}}),(function({horizontal:t,vertical:e}){return[...t,...e].every((t=>t.every((t=>void 0===t.width||"number"==typeof t.width))))})),ct=b("loading",!1,p),dt=b("selection",!1,(function(t){const e="string"==typeof t?l(t):t;if("object"==typeof e&&null!==e)return e;throw new Error("Invalid table selection: expected an object.")}),(function(t){return!1===t||"function"==typeof t.label&&(!t.selectedKeys||Array.isArray(t.selectedKeys))})),ht={required:[g,st],optional:[tt,et,ot,nt,rt,ct,dt,k]},bt=t=>t.flatMap((t=>t.filter((t=>"string"==typeof t.key||"function"==typeof t.render)))),ut=t=>{const e=bt(t.horizontal);if(e.length>0)return{cells:e,horizontal:!0};const o=bt(t.vertical);return{cells:o,horizontal:0===o.length}},pt=(t,e)=>{let o=0;return Array.isArray(t)&&t.forEach((t=>{var l;o+=null!==(l=t[e])&&void 0!==l?l:1})),o},vt=(t,e)=>{const o=Math.max(0,...t.map((t=>pt(t,"colSpan"))));return 0===o?e.length:o},ft=t=>{var e;return null!==(e=null==t?void 0:t.reduce(((t,e)=>"visible"in e&&!1===e.visible?t:t+(e.colSpan||1)),0))&&void 0!==e?e:0},mt=(t,e,o,l)=>{if(void 0!==l&&!e)return l<t[0]?"left":t[1]>0&&l>=o-t[1]?"right":void 0},yt=(t,e,o,l)=>{var i,s,n,a,r,c;const d=[];for(let a=0;a<e;a++)"left"===mt(o,l,e,a)&&(d[a]=(null!==(i=d[a-1])&&void 0!==i?i:0)+(null!==(n=null===(s=t[a-1])||void 0===s?void 0:s.width)&&void 0!==n?n:0));for(let i=e-1;i>=0;i--)"right"===mt(o,l,e,i)&&(d[i]=(null!==(a=d[i+1])&&void 0!==a?a:0)+(null!==(c=null===(r=t[i+1])||void 0===r?void 0:r.width)&&void 0!==c?c:0));return d},gt=(t,e,o,l)=>{const i=void 0===e?void 0:t[e];return o&&l?`calc( var(--kol-table-selection-col-width) + ${i}px)`:`${i}px`},kt=(t,e,o,l)=>{if(0===(e.horizontal?t.horizontal:t.vertical).length)return;const i=e.cells[o];return(null==i?void 0:i.type)===l?i:void 0},jt=({data:t,dataFoot:e,headers:o,isFoot:l,noEntriesLabel:i,primaryHeaders:s})=>{const n=vt(o.horizontal,t),a=s.cells;let r=((t,e,o)=>{const l=Math.max(0,...t.map((t=>pt(t,"rowSpan"))));return 0===l?e.length:l-o})(o.vertical,t,e.length),c=0;l&&(c=r,r+=e.length);const d=[],h=[],b=[];o.vertical.forEach(((t,e)=>{h[e]=0,b[e]=[]}));for(let i=c;i<r;i++){const r=[];o.vertical.forEach(((t,e)=>{let o=0;if(b[e].forEach((t=>o+=t)),o<=i){const l=t[i-o+h[e]];if("object"==typeof l){r.push(Object.assign(Object.assign({},l),{headerCell:!0,data:{}}));let t=1;if("number"==typeof l.rowSpan&&l.rowSpan>1&&(t=l.rowSpan),b[e].push(t),"number"==typeof l.colSpan&&l.colSpan>1)for(let o=1;o<l.colSpan;o++)b[e+o].push(t);h[e]++}}}));for(let o=0;o<n;o++)if(s.horizontal){const s=l?e[i-c]:t[i],n=a[o];"object"==typeof n&&null!==n&&"object"==typeof s&&null!==s&&r.push(Object.assign(Object.assign({},n),{colIndex:o,colSpan:void 0,rowSpan:void 0,data:s,label:s[n.key]}))}else{const e=a[i];"object"==typeof e&&null!==e&&"object"==typeof t[o]&&null!==t[o]&&r.push(Object.assign(Object.assign({},e),{colIndex:o,colSpan:void 0,rowSpan:void 0,data:t[o],label:t[o][e.key]}))}d.push(r)}if(0===t.length){let t=ft(o.horizontal[0]),e=0;o.vertical.length>0&&(t-=o.vertical.length,o.vertical[0].forEach((t=>{e+=t.rowSpan||1})));const l={colSpan:t,label:i,render:void 0,rowSpan:Math.max(e,1)};0===d.length?d.push([l]):d[0].push(l)}return d},Ct=({horizontal:t,vertical:e})=>{const o=t.flatMap((t=>t.filter((t=>!1!==t.visible&&void 0!==t.width&&t.width>0)).map((t=>t.width)))),l=[...e.flatMap((t=>t.filter((t=>void 0!==t.width&&t.width>0)).map((t=>t.width)))),...o];return 0===l.length?"0px":1===l.length?`${l[0]}px`:`calc(${l.map((t=>`${t}px`)).join(" + ")})`},St=t=>void 0===t?[]:Array.isArray(t)?t:[t],wt=t=>{var e;return null!==(e=t?t.keyPropertyName:void 0)&&void 0!==e?e:"id"},_t=t=>{const e=t?St(t.selectedKeys):[];return{disabledKeys:new Set((t?St(t.disabledKeys):[]).map(String)),keyPropertyName:wt(t),selectedKeys:e,selectedKeysSet:new Set(e.map(String))}},xt=(t,e)=>t.filter((t=>!e.disabledKeys.has(String(t[e.keyPropertyName])))),Ot=i.forBlock("kol-table"),$t=Ot("body"),Ft=Ot("cell-actions"),Lt=Ot("cell-states"),It=Ot("footer"),Dt=Ot("head"),Tt=Ot("head-row"),zt=Ot("scroll-container"),At=Ot("selection-icon"),Et=Ot("selection-input-tooltip"),Mt=Ot("sort"),Bt=Ot("sort-button"),Ht=Ot("sort-order"),Kt=Ot("table"),Nt=`${Ot("focus-element")} ${Ot("caption")}`,Pt="caption",Wt=(t,e)=>mt(t.fixedCols,t.stickyColsDisabled,t.maxCols,e),Rt=(t,e,o)=>({left:"left"===e?gt(t.fixedOffsets,o,!0,!1!==t.selection):void 0,right:"right"===e?gt(t.fixedOffsets,o,!1,!1!==t.selection):void 0}),qt=(t,e,o)=>{var l,i;return null!==(i=t.primaryHeaders.horizontal&&(null===(l=e[0])||void 0===l?void 0:l.data)?t.rowKeys.get(e[0].data):void 0)&&void 0!==i?i:String(o)},Ut=t=>{const e=_("kol-sort");return"number"==typeof t&&t>0?`${e} – ${_("kol-table-sort-order").replace("{{order}}",`${t}`)}`:e},Vt=(t,e,o,l,i)=>{if(!1===e.visible)return"";const n=!1!==(null==e?void 0:e.sortable)&&"string"==typeof e.sortDirection;let a="none",r="kolicon-sort-neutral";if(n&&e.sortDirection)switch(e.sortDirection){case"ASC":r="kolicon-sort-asc",a="ascending";break;case"DESC":r="kolicon-sort-desc",a="descending";break;default:a="none"}const c=i?"row":"number"==typeof e.colSpan&&e.colSpan>1?"colgroup":"col",d="number"==typeof e.sortOrder&&e.sortOrder>0?e.sortOrder:void 0,h=void 0!==e.width?`${e.width}px`:void 0,b=Wt(t,l),{left:u,right:p}=Rt(t,b,l),v=e.textAlign,f=n?e.sortDirection:void 0;return s("th",{key:`${o}-${l}-${e.label}`,class:Ot("cell",{[a]:!0,"align-center":"center"===v,"align-justify":"justify"===v,"align-left":"left"===v,"align-right":"right"===v,header:!0,"sticky-left":"left"===b,"sticky-right":"right"===b}),scope:c,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{width:h,left:u,right:p},"aria-sort":a,"data-sort":f?`sort-${f}`:void 0},f?s("span",{class:Mt},s(O,Object.assign({},t.getButtonFcProps(`sort-${i?"vertical":"horizontal"}-${o}-${l}`,{_icons:{right:r},_label:e.label,_ariaDescription:Ut(d),_on:{onClick:o=>{t.handleSort(o,{key:e.key,currentSortDirection:f})}}},{class:Bt}))),d&&s("span",{"aria-hidden":"true",class:Ht},d)):e.label)},Gt=(t,e,o,l,i=!1)=>s("tr",{class:Ot("row",{body:!i,footer:i}),key:`row-${qt(t,e,o)}`},((t,e,o)=>{var l;const{handleSelectionChange:i,selection:n,selectionModel:a}=t;if(!n)return"";const r=null===(l=e[0])||void 0===l?void 0:l.data;if(!r)return"";const c=r[a.keyPropertyName],d=n.multiple||void 0===n.multiple,h=String(c),b=a.selectedKeysSet.has(h),u=a.disabledKeys.has(h),p=n.label(r),v={name:"selection",checked:b,disabled:u,id:String(c),"aria-label":p};return s("td",{key:`tbody-${o}-selection`,class:Ot("cell",{selection:!0})},s("div",{class:Ot("selection",{checked:b})},d?s("label",{class:Ot("selection-label",{disabled:u})},s($,{class:At,icons:"kolicon "+(b?"kolicon-check":""),label:""}),s("input",Object.assign({class:Ot("selection-input",{checkbox:!0})},v,{type:"checkbox",onInput:t=>{const e=b?a.selectedKeys.filter((t=>String(t)!==h)):[...a.selectedKeys,c];i(t,e)}}))):s("label",{class:Ot("selection-label")},s("input",Object.assign({class:Ot("selection-input",{radio:!0})},v,{type:"radio",onInput:t=>{i(t,[c])}}))),s("div",{class:Et},s(D,{label:p,badgeText:"",id:`${c}-label`,refFloating:()=>{}}))))})(t,e,o),e.map(((e,i)=>((t,e,o,l,i)=>{if(!1===e.visible)return"";let n=`${o}-${l}-${e.label}`;if(e.data){const i=t.rowKeys.get(e.data);n=i?`${i}-${t.primaryHeaders.horizontal?l:o}`:n}if(e.headerCell)return Vt(t,e,o,l,i);const a="function"!=typeof e.render&&e.label===t.translateNoEntries,r=kt(t.headers,t.primaryHeaders,l,"action"),c=Boolean(r&&e.data),d=kt(t.headers,t.primaryHeaders,l,"state"),h=Boolean(d&&e.data),b=Wt(t,l),{left:u,right:p}=Rt(t,b,e.colIndex),v="function"==typeof e.render,f=e.textAlign;return s("td",{key:`cell-${n}-${t.settingsChangedCounter}`,class:Ot("cell",{actions:c,"align-center":"center"===f,"align-justify":"justify"===f,"align-left":"left"===f,"align-right":"right"===f,body:!0,states:h,"sticky-left":"left"===b,"sticky-right":"right"===b}),"aria-atomic":a?"false":void 0,"aria-live":a?"polite":void 0,"aria-relevant":a?"text":void 0,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{textAlign:f,left:u,right:p},ref:v?o=>t.handleRenderCell(e,o):void 0},c&&r&&e.data?((t,e,o,l)=>s("div",{class:Ft},e.actions(o).map(((e,o)=>{const i=`action-${l}-${o}`;return"button"===e.type?s("span",{key:i},s(O,Object.assign({},t.getButtonFcProps(i,e)))):"link"===e.type?s("span",{key:i},s(F,Object.assign({},t.getLinkFcProps(i,e)))):null}))))(t,r,e.data,n):h&&d&&e.data?((t,e,o)=>{const l=t.key;if(!l)return"";const i=e[l];return i?s("div",{class:Lt},i.map(((t,e)=>"badge"===t.type?s(C,Object.assign({key:`state-${o}-${e}`},t)):null))):""})(d,e.data,n):v?"":e.label)})(t,e,o,i,l)))),Jt=(t,e,o)=>{const l=t.headers.vertical.length+ft(null==o?void 0:o[0])+(t.selection?1:0);return s("tr",{"aria-hidden":"true",class:Ot("spacer",{[e]:!0})},s("td",{class:Ot("spacer-line",{[e]:!0}),colSpan:l}))},Qt=t=>{const e=f(ht,t),{data:o,dataFoot:l,externalLabelElements:i,fixedCols:a,hasScrollbar:r,hasSettingsMenu:c,headers:d,label:h,loading:b,refScrollContainer:u,refTable:p,selection:v,stickyColsDisabled:y,variant:g}=e,k=_("kol-no-entries"),C=ut(d),S=vt(d.horizontal,o),w=Object.assign(Object.assign({},e),{fixedOffsets:yt(C.cells,S,a,y),maxCols:S,primaryHeaders:C,selectionModel:_t(v),translateNoEntries:k}),O=jt({data:o,dataFoot:l,headers:d,isFoot:!1,noEntriesLabel:k,primaryHeaders:C}),F=0===i.length;return s(x,{block:"kol-table",class:j(g,"table")},c&&t.renderSettings(d.horizontal),s("div",{ref:u,class:zt,tabindex:r?F?"-1":"0":void 0},s("table",{ref:p,"aria-labelledby":F?Pt:void 0,class:Kt,style:{minWidth:Ct(d)}},F&&s("caption",{class:Nt,id:Pt,ref:t=>{t&&(r?t.tabIndex=0:t.removeAttribute("tabindex"))}},L(h)),s("thead",{class:Dt},[d.horizontal.map(((t,e)=>s("tr",{class:Tt,key:`thead-${e}`},v&&(t=>{const{data:e,handleSelectionChange:o,selection:l,selectionModel:i}=t;if(!l)return s("td",{class:Ot("cell",{header:!0}),key:"thead-0"});if(!1===l.multiple)return s("th",{scope:"col",key:"thead-0-selection",class:Ot("cell",{header:!0,selection:!0})},s("span",{class:"visually-hidden"},_("kol-table-selection")));const n=i.selectedKeys.filter((t=>!i.disabledKeys.has(String(t)))).length,a=n===xt(e,i).length,r=0!==n&&!a;let c;return c=_(0===n?"kol-table-selection-all":a&&!r?"kol-table-selection-none":"kol-table-selection-indeterminate"),s("th",{scope:"col",key:"thead-0-selection",class:Ot("cell",{header:!0,selection:!0})},s("span",{class:"visually-hidden"},_("kol-table-selection")),s("div",{class:Ot("selection",{checked:a,indeterminate:r})},s("label",{class:Ot("selection-label")},s($,{class:At,icons:"kolicon "+(r?"kolicon-minus":a?"kolicon-check":""),label:""}),s("input",{class:Ot("selection-input",{checkbox:!0}),name:"selection",checked:a&&!r,indeterminate:r,"aria-label":c,type:"checkbox",onInput:t=>{o(t,((t,e,o)=>{const l=e.selectedKeys.filter((t=>e.disabledKeys.has(String(t))));return o&&l.push(...xt(t,e).map((t=>null==t?void 0:t[e.keyPropertyName]))),l})(e,i,!a))}})),s("div",{class:Et},s(D,{label:c,badgeText:"",refFloating:()=>{}}))))})(w),0===e&&(({headers:t})=>{const{horizontal:e,vertical:o}=t;if(0===e.length||0===o.length)return s(n,null);const l=o.reduce(((t,e)=>{var o,l;return t+(null!==(l=null===(o=null==e?void 0:e[0])||void 0===o?void 0:o.width)&&void 0!==l?l:0)}),0);return s("td",{"aria-hidden":"true",colSpan:o.length,rowSpan:e.length,style:l>0?{width:`${l}px`}:void 0})})(w),Array.isArray(t)&&t.map(((t,o)=>Vt(w,t,e,o,!1)))))),Jt(w,"head",d.horizontal)]),s("tbody",{class:$t},s("div",{class:Ot("loader",{shown:b})},s(I,{label:_(b?"kol-table-data-loading":"kol-table-data-loaded").replace("{{caption}}",m(h)),show:b,variant:"cycle"})),O.map(((t,e)=>Gt(w,t,e,!0)))),(t=>{const{dataFoot:e,headers:o,primaryHeaders:l,translateNoEntries:i}=t;if(0===e.length)return null;const n=jt({data:e,dataFoot:e,headers:o,isFoot:!0,noEntriesLabel:i,primaryHeaders:l}),a=vt(o.horizontal,e),r=Object.assign(Object.assign({},t),{fixedOffsets:yt(l.cells,a,t.fixedCols,t.stickyColsDisabled),maxCols:a});return s("tfoot",{class:It},[Jt(t,"foot",n),n.map(((t,e)=>Gt(r,t,e,!0,!0)))])})(w))))},Xt=({dialog:t,card:e},o)=>s(R,Object.assign({},t),e?s(J,Object.assign({},e),o):o),Yt=i.forBlock("kol-table")("settings"),Zt=t=>Number.isFinite(t)&&void 0!==t&&t>0?t:void 0,te=()=>{},ee=(t,e)=>{const o=_("kol-table-settings"),l=_("kol-table-settings-cancel"),i=_("kol-table-settings-apply"),n=_("kol-table-settings-error-all-invisible");let a,h=!1,b=!1;const u=()=>{h=!0,e()},p=d((()=>c(t)),(t=>t.syncListeners()),(t=>t.destroy())),v=((t,e)=>{const o=K(),l=K(),i=new Q(r.stateLess),s=z(),n=A("dialog-heading"),c={};let d,h=!0,b={};const u=t=>!a||E(a,t),p=()=>{var t,e;null===(e=null===(t=o.el)||void 0===t?void 0:t.close)||void 0===e||e.call(t)},v=t=>{var e;q(t),t.defaultPrevented||(null===(e=b.onCancel)||void 0===e||e.call(b,t),t.defaultPrevented||u(M.cancel)||t.preventDefault())},f=t=>{var e;t.target===o.el&&(N(c),null===(e=b.onClose)||void 0===e||e.call(b),u(M.close))},k=()=>{i.hideTooltip(),p(),u(M.close)};return{getFcProps:e=>{var a,r,c;let u="",p=0,j="blank",C="100%";g.apply(e.label,(t=>{u=t})),H.apply(null!==(a=e.level)&&void 0!==a?a:0,(t=>{p=t})),U.apply(e.on,(t=>{b=t})),y.apply(null!==(r=e.variant)&&void 0!==r?r:"blank",(t=>{j=t})),V.apply(null!==(c=e.width)&&void 0!==c?c:"100%",(t=>{C=t}));const S="card"===j;return S&&!d&&(d=G(t()),i.componentWillLoad({label:d.label,align:d.tooltipAlign})),{dialog:{blockClass:W(j),handleCancel:v,handleClose:f,label:m(u),labelledBy:S?n:void 0,modal:h,refDialog:o,width:C},card:S&&d?{ariaDescriptionId:s,closeButtonProps:d,handleClose:k,hasCloser:!0,headingId:n,label:u,level:p,refCloseButton:l,refTooltip:i.setTooltipElementRef}:void 0}},show:t=>{var l,i;const s=o.el;(null==s?void 0:s.open)||(h!==t&&(h=t,e()),t?(null===(l=null==s?void 0:s.showModal)||void 0===l||l.call(s),s&&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(),N(c),i.destroy()}}})(t,u),f=A("alert-heading"),k=z();let j,C=[],x=[],$=null;const F=()=>{var t;return null!==(t=x[x.length-1])&&void 0!==t?t:[]},L=t=>{x=x.map(((e,o,l)=>o===l.length-1?t:e)),u()},I=(t,e)=>{const o=[...F()],l=o.findIndex((e=>e.key===t));if(-1===l)return;let i;if("up"===e){if(0===l)return;i=l-1}else{if(l===o.length-1)return;i=l+1}const[s]=o.splice(l,1);o.splice(i,0,s),L(o)},D=t=>{if(t.preventDefault(),!F().some((t=>!1!==t.visible)))return $=n,void u();if(a){$=null,C=x.map((t=>t.map((t=>Object.assign({},t))))),u();const t=x.map((t=>t.map((t=>{const e=t,{hidable:o,resizable:l,sortable:i,visible:s,width:n}=e,a=T(e,["hidable","resizable","sortable","visible","width"]),r=Object.assign({},a);return void 0!==s&&(r.visible=s),void 0!==o&&(r.hidable=o),void 0!==i&&(r.sortable=i),void 0!==l&&(r.resizable=l),null!=n&&(r.width=n),r}))));E(a,M.changeHeaderCells,t),v.close()}},R=t=>{t&&(a=t)};return{beginRender:()=>{p.beginRender(),b=h,h=!1},render:t=>{var e;b||t===j||(j=t,C=(e=t).map((t=>[...t])),x=e.map((t=>t.map((t=>Object.assign({},t))))));const n=F();return s("div",{class:Yt,ref:R},s("div",{class:"kol-table-settings"},s(O,Object.assign({},p.get("toggle").getFcProps({_icons:"kolicon-settings",_label:o,_hideLabel:!0,_on:{onClick:()=>v.show(!0)}})))),s(Xt,Object.assign({},v.getFcProps({label:o,variant:"card",width:"fit-content"})),s("div",{class:"kol-table-settings__content"},$&&s("div",{class:"kol-table-settings__error-message"},s(B,{alert:!1,closerAriaDescriptionId:k,handleCloserClick:te,hasCloser:!1,headingId:f,label:$,level:0,refCloserButton:te,refCloserTooltip:te,type:"error",variant:"msg"})),s("form",{onSubmit:D},s("div",{class:"kol-table-settings__columns"},n.map(((t,e)=>((t,e,o)=>s("div",{key:t.key,class:"kol-table-settings__column"},s(S,{_checked:!1!==t.visible,_label:_(t.hidable?"kol-table-settings-column-hidable":"kol-table-settings-column-not-hidable",{placeholders:{column:t.label}}),_value:!0,_hideLabel:!0,_disabled:!1===t.hidable,_on:{onInput:(e,o)=>{var l;return((t,e)=>{const o=F().map((o=>o.key===t&&!1!==o.hidable?Object.assign(Object.assign({},o),{visible:Boolean(e)}):o));L(o)})(null!==(l=t.key)&&void 0!==l?l:"",o)}}}),s("span",{class:"kol-table-settings__column-label"},t.label),s(w,{_hideLabel:!0,_value:Zt(t.width),_label:_("kol-table-settings-column-width",{placeholders:{column:t.label}}),_min:1,_disabled:!1===t.resizable,_on:{onInput:(e,o)=>{var l;return((t,e)=>{const o=Zt(Number(e)),l=F().map((e=>e.key===t&&!1!==e.resizable?Object.assign(Object.assign({},e),{width:o}):e));L(l)})(null!==(l=t.key)&&void 0!==l?l:"",o)}}}),s(O,Object.assign({},p.get(`move-up-${t.key}`).getFcProps({_icons:"kolicon-chevron-up",_label:_(!1===t.sortable||0===e?"kol-table-settings-not-move":"kol-table-settings-move-up",{placeholders:{column:t.label}}),_hideLabel:!0,_variant:"ghost",_on:{onClick:()=>{var e;return I(null!==(e=t.key)&&void 0!==e?e:"","up")}},_disabled:!1===t.sortable||0===e}))),s(O,Object.assign({},p.get(`move-down-${t.key}`).getFcProps({_icons:"kolicon-chevron-down",_label:_(!1===t.sortable||e===o.length-1?"kol-table-settings-not-move":"kol-table-settings-move-down",{placeholders:{column:t.label}}),_hideLabel:!0,_variant:"ghost",_on:{onClick:()=>{var e;return I(null!==(e=t.key)&&void 0!==e?e:"","down")}},_disabled:!1===t.sortable||e===o.length-1})))))(t,e,n)))),s("div",{class:"kol-table-settings__actions"},s(O,Object.assign({},p.get("cancel").getFcProps({_label:l,_variant:"secondary",_on:{onClick:()=>(x=C.map((t=>[...t])),$=null,u(),void v.close())}}))),s(O,Object.assign({},p.get("apply").getFcProps({_label:i,_variant:"primary",_type:"submit"}))))))))},sync:()=>{p.endRender(),v.syncListeners()},destroy:()=>{p.destroy(),v.destroy()}}},oe=class extends r{constructor(){super(...arguments),this.hasExternalTableLabelRefs=!1,this.cellRenderTimeouts=new Map,this.buttonItems=d((()=>c((()=>this.host))),(t=>t.syncListeners()),(t=>t.destroy())),this.settings=ee((()=>this.host),(()=>a(this))),this.linkItems=d((()=>h((()=>a(this)))),(t=>t.syncListeners()),(t=>t.destroy())),this.propsConfig=ht,this.handleResize=()=>{this.updateScrollbarState(),clearTimeout(this.resizeDebounceTimeout),this.resizeDebounceTimeout=setTimeout((()=>{this.updateStickyColsDisabled()}),150)},this.handleSelectionChange=(t,e)=>{this.emitSelectionChange(t,e)},this.handleSort=(t,e)=>{this.emitSort(t,e)},this.handleRenderCell=(t,e)=>{e&&(clearTimeout(this.cellRenderTimeouts.get(e)),this.cellRenderTimeouts.set(e,setTimeout((()=>{if("function"==typeof t.render){const o=t.render(e,t,t.data,this.getRenderProp("data"));"string"==typeof o&&(e.textContent=o)}}))))},this.refScrollContainer=t=>{this.scrollContainerElement=t},this.refTable=t=>{this.tableElement=t,this.syncTableLabel(this.getState("externalLabelElements"))},this.getButtonFcProps=(t,e,o)=>this.buttonItems.get(t).getFcProps(e,o),this.renderSettings=t=>this.settings.render(t),this.getLinkFcProps=(t,e)=>this.linkItems.get(t).getFcProps(e)}observeScrollContainer(){this.scrollContainerElement&&ResizeObserver&&(this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.scrollContainerElement)),this.updateStickyColsDisabled()}teardownTable(){var t;null===(t=this.resizeObserver)||void 0===t||t.disconnect(),clearTimeout(this.resizeDebounceTimeout),this.buttonItems.destroy(),this.linkItems.destroy(),this.settings.destroy()}syncTableItems(){this.buttonItems.endRender(),this.linkItems.endRender(),this.settings.sync()}applyData(t){st.apply(t,(t=>{this.setRenderProp("data",t),this.setState("rowKeys",((t,e)=>new Map(t.map((t=>{var o;return[t,null!==(o=e.get(t))&&void 0!==o?o:z()]}))))(t,this.getState("rowKeys")))}))}applyDataFoot(t){nt.apply(t,(t=>this.setRenderProp("dataFoot",t)))}applyFixedCols(t){tt.apply(t,(t=>this.setRenderProp("fixedCols",t))),this.updateStickyColsDisabled()}applyHasSettingsMenu(t){et.apply(t,(t=>this.setRenderProp("hasSettingsMenu",t)))}applyHeaders(t){rt.apply(t,(t=>this.setRenderProp("headers",(t=>0===t.horizontal.length?t:Object.assign(Object.assign({},t),{horizontal:t.horizontal.map((t=>t.map((t=>Object.assign(Object.assign({},t),{visible:"boolean"!=typeof t.visible||t.visible,hidable:"boolean"!=typeof t.hidable||t.hidable})))))}))(t))))}applyLabel(t){g.apply(t,(t=>this.setRenderProp("label",t)),this.isRequired("label"))}applyLoading(t){ct.apply(t,(t=>this.setRenderProp("loading",t)))}applyOn(t){ot.apply(t,(t=>this.setRenderProp("on",t)))}applySelection(t){dt.apply(t,(t=>this.setRenderProp("selection",t))),this.updateStickyColsDisabled()}applyVariant(t){k.apply(t,(t=>this.setRenderProp("variant",t)))}syncTableLabel(t){this.tableElement&&"ariaLabelledByElements"in this.tableElement&&((null==t?void 0:t.length)?(this.tableElement.ariaLabelledByElements=t,this.hasExternalTableLabelRefs=!0,o.debug([this.tableElement,t,this.tableElement.ariaLabelledByElements])):this.hasExternalTableLabelRefs&&(this.hasExternalTableLabelRefs=!1,this.tableElement.ariaLabelledByElements=null,this.tableElement.setAttribute("aria-labelledby",Pt)))}moveCheckboxFocus(t){var e,o,l;if("ArrowUp"!==t.key&&"ArrowDown"!==t.key)return;const i=Array.from(null!==(o=null===(e=this.scrollContainerElement)||void 0===e?void 0:e.querySelectorAll(".kol-table__selection-input--checkbox"))&&void 0!==o?o:[]),s=null===(l=this.scrollContainerElement)||void 0===l?void 0:l.querySelector(":focus");let n=i.indexOf(s);n>-1&&(t.preventDefault(),n=(n+("ArrowDown"===t.key?1:i.length-1))%i.length,i[n].focus())}applyChangedHeaderCells(t){const e=Object.assign(Object.assign({},this.getRenderProp("headers")),{horizontal:t.detail});this.setRenderProp("headers",e),this.setState("settingsChangedCounter",this.getState("settingsChangedCounter")+1);const o=this.getRenderProp("on")[X.onChangeHeaderCells];"function"==typeof o&&o(t,e)}updateScrollbarState(){if(this.scrollContainerElement){const{clientHeight:t,clientWidth:e,scrollHeight:o,scrollWidth:l}=this.scrollContainerElement;this.setState("hasScrollbar",l>e||o>t&&["auto","scroll"].includes(getComputedStyle(this.scrollContainerElement).overflowY))}}calculateFixedColsWidth(){var t,e,o,l,i,s;const[n,a]=this.getRenderProp("fixedCols"),r=this.getRenderProp("headers"),c=ut(r).cells,d=vt(r.horizontal,this.getRenderProp("data"));let h=0;for(let o=0;o<n&&o<c.length;o++)h+=null!==(e=null===(t=c[o])||void 0===t?void 0:t.width)&&void 0!==e?e:0;for(let t=d-a;t<d&&t<c.length;t++)h+=null!==(l=null===(o=c[t])||void 0===o?void 0:o.width)&&void 0!==l?l:0;if(this.getRenderProp("selection")){const t=null===(i=this.scrollContainerElement)||void 0===i?void 0:i.querySelector(".kol-table__cell--selection");h+=null!==(s=null==t?void 0:t.offsetWidth)&&void 0!==s?s:0}return h}updateStickyColsDisabled(){if(!this.scrollContainerElement)return void this.setState("stickyColsDisabled",!1);const t=this.calculateFixedColsWidth();this.setState("stickyColsDisabled",t>0&&t>=this.scrollContainerElement.clientWidth)}emitSelectionChange(t,e){const o=this.getRenderProp("on")[X.onSelectionChange];"function"==typeof o&&o(t,e),this.host&&E(this.host,M.selectionChange,e)}emitSort(t,e){const o=this.getRenderProp("on")[X.onSort];"function"==typeof o&&e.key&&o(t,e),this.host&&E(this.host,M.sort,e)}renderTableStatelessFC(){return this.buttonItems.beginRender(),this.linkItems.beginRender(),this.settings.beginRender(),s(Qt,{data:this.getRenderProp("data"),dataFoot:this.getRenderProp("dataFoot"),externalLabelElements:this.getState("externalLabelElements"),fixedCols:this.getRenderProp("fixedCols"),getButtonFcProps:this.getButtonFcProps,getLinkFcProps:this.getLinkFcProps,renderSettings:this.renderSettings,handleRenderCell:this.handleRenderCell,handleSelectionChange:this.handleSelectionChange,handleSort:this.handleSort,hasScrollbar:this.getState("hasScrollbar"),hasSettingsMenu:this.getRenderProp("hasSettingsMenu"),headers:this.getRenderProp("headers"),label:this.getRenderProp("label"),loading:this.getRenderProp("loading"),on:this.getRenderProp("on"),refScrollContainer:this.refScrollContainer,refTable:this.refTable,rowKeys:this.getState("rowKeys"),selection:this.getRenderProp("selection"),settingsChangedCounter:this.getState("settingsChangedCounter"),stickyColsDisabled:this.getState("stickyColsDisabled"),variant:this.getRenderProp("variant")})}};export{oe as B,nt as a,st as t,Y as v}
|
|
4
|
+
import{r as t}from"./aria-labelledby.js";import{I as e,L as o,p as l,b as i}from"./bem-registry.js";import{h as s,Fragment as n,forceUpdate as a}from"@stencil/core/internal/client";import{B as r}from"./base-web-component.js";import{c}from"./item.js";import{c as d}from"./item-pool.js";import{c as h}from"./item3.js";import{c as b,e as u,n as p,a as v,r as f,t as m,C as y}from"./props-from-config.js";import{l as g}from"./label-lang-segment.js";import{v as k,j}from"./component3.js";import{c as C,d as S,e as w}from"./component-names.js";import{t as _}from"./i18n.js";import{B as x}from"./component.js";import{B as O}from"./component9.js";import{I as $}from"./component5.js";import{L as F}from"./component6.js";import{r as L}from"./component7.js";import{S as I}from"./component11.js";import{T}from"./component10.js";import{a as D}from"./tslib.es6.js";import{n as z,c as A}from"./dev.utils.js";import{d as E,K as M}from"./events.js";import{A as B}from"./component2.js";import{l as H}from"./level.js";import{c as K}from"./element-interaction.js";import{u as N,l as P,d as W,D as R}from"./scroll-lock.js";import{h as q}from"./tooltip-open-tracking.js";import{d as U,w as V}from"./width.js";import{r as G,C as J}from"./component8.js";import{T as Q}from"./behavior.js";import{C as X}from"./keyboard.js";const Y=(l,i,s,n)=>{const a=t=>"string"==typeof t||void 0===t;if(e(l,"_ariaLabelledby",a,new Set(["string"]),n),!a(n))return[];const r=t(i,n);if(s){try{s.ariaLabelledByElements=r}catch(t){}o.debug(["WebComponent internals",s])}return r},Z=t=>"number"==typeof t&&Number.isInteger(t)&&t>=0,tt=b("fixedCols",[0,0],(t=>u(t)),(t=>2===t.length&&t.every(Z))),et=b("hasSettingsMenu",!1,p),ot=v();function lt(t){const e="string"==typeof t?l(t):t;if(Array.isArray(e))return e;throw new Error("Invalid table data: expected an array of row objects.")}function it(t){return t.every((t=>"object"==typeof t&&null!==t))}const st=b("data",[],lt,it),nt=b("dataFoot",[],lt,it),at=t=>Array.isArray(t)&&t.every((t=>Array.isArray(t))),rt=b("headers",{horizontal:[],vertical:[]},(function(t){const e="string"==typeof t?l(t):t;if("object"!=typeof e||null===e)throw new Error("Invalid table headers: expected an object.");const{horizontal:o=[],vertical:i=[]}=e;if(!at(o)||!at(i))throw new Error("Invalid table headers: horizontal and vertical must be arrays of header rows.");return{horizontal:o,vertical:i}}),(function({horizontal:t,vertical:e}){return[...t,...e].every((t=>t.every((t=>void 0===t.width||"number"==typeof t.width))))})),ct=b("loading",!1,p),dt=b("selection",!1,(function(t){const e="string"==typeof t?l(t):t;if("object"==typeof e&&null!==e)return e;throw new Error("Invalid table selection: expected an object.")}),(function(t){return!1===t||"function"==typeof t.label&&(!t.selectedKeys||Array.isArray(t.selectedKeys))})),ht={required:[g,st],optional:[tt,et,ot,nt,rt,ct,dt,k]},bt=t=>t.flatMap((t=>t.filter((t=>"string"==typeof t.key||"function"==typeof t.render)))),ut=t=>{const e=bt(t.horizontal);if(e.length>0)return{cells:e,horizontal:!0};const o=bt(t.vertical);return{cells:o,horizontal:0===o.length}},pt=(t,e)=>{let o=0;return Array.isArray(t)&&t.forEach((t=>{var l;o+=null!==(l=t[e])&&void 0!==l?l:1})),o},vt=(t,e)=>{const o=Math.max(0,...t.map((t=>pt(t,"colSpan"))));return 0===o?e.length:o},ft=t=>{var e;return null!==(e=null==t?void 0:t.reduce(((t,e)=>"visible"in e&&!1===e.visible?t:t+(e.colSpan||1)),0))&&void 0!==e?e:0},mt=(t,e,o,l)=>{if(void 0!==l&&!e)return l<t[0]?"left":t[1]>0&&l>=o-t[1]?"right":void 0},yt=(t,e,o,l)=>{var i,s,n,a,r,c;const d=[];for(let a=0;a<e;a++)"left"===mt(o,l,e,a)&&(d[a]=(null!==(i=d[a-1])&&void 0!==i?i:0)+(null!==(n=null===(s=t[a-1])||void 0===s?void 0:s.width)&&void 0!==n?n:0));for(let i=e-1;i>=0;i--)"right"===mt(o,l,e,i)&&(d[i]=(null!==(a=d[i+1])&&void 0!==a?a:0)+(null!==(c=null===(r=t[i+1])||void 0===r?void 0:r.width)&&void 0!==c?c:0));return d},gt=(t,e,o,l)=>{const i=void 0===e?void 0:t[e];return o&&l?`calc( var(--kol-table-selection-col-width) + ${i}px)`:`${i}px`},kt=(t,e,o,l)=>{if(0===(e.horizontal?t.horizontal:t.vertical).length)return;const i=e.cells[o];return(null==i?void 0:i.type)===l?i:void 0},jt=({data:t,dataFoot:e,headers:o,isFoot:l,noEntriesLabel:i,primaryHeaders:s})=>{const n=vt(o.horizontal,t),a=s.cells;let r=((t,e,o)=>{const l=Math.max(0,...t.map((t=>pt(t,"rowSpan"))));return 0===l?e.length:l-o})(o.vertical,t,e.length),c=0;l&&(c=r,r+=e.length);const d=[],h=[],b=[];o.vertical.forEach(((t,e)=>{h[e]=0,b[e]=[]}));for(let i=c;i<r;i++){const r=[];o.vertical.forEach(((t,e)=>{let o=0;if(b[e].forEach((t=>o+=t)),o<=i){const l=t[i-o+h[e]];if("object"==typeof l){r.push(Object.assign(Object.assign({},l),{headerCell:!0,data:{}}));let t=1;if("number"==typeof l.rowSpan&&l.rowSpan>1&&(t=l.rowSpan),b[e].push(t),"number"==typeof l.colSpan&&l.colSpan>1)for(let o=1;o<l.colSpan;o++)b[e+o].push(t);h[e]++}}}));for(let o=0;o<n;o++)if(s.horizontal){const s=l?e[i-c]:t[i],n=a[o];"object"==typeof n&&null!==n&&"object"==typeof s&&null!==s&&r.push(Object.assign(Object.assign({},n),{colIndex:o,colSpan:void 0,rowSpan:void 0,data:s,label:s[n.key]}))}else{const e=a[i];"object"==typeof e&&null!==e&&"object"==typeof t[o]&&null!==t[o]&&r.push(Object.assign(Object.assign({},e),{colIndex:o,colSpan:void 0,rowSpan:void 0,data:t[o],label:t[o][e.key]}))}d.push(r)}if(0===t.length){let t=ft(o.horizontal[0]),e=0;o.vertical.length>0&&(t-=o.vertical.length,o.vertical[0].forEach((t=>{e+=t.rowSpan||1})));const l={colSpan:t,label:i,render:void 0,rowSpan:Math.max(e,1)};0===d.length?d.push([l]):d[0].push(l)}return d},Ct=({horizontal:t,vertical:e})=>{const o=t.flatMap((t=>t.filter((t=>!1!==t.visible&&void 0!==t.width&&t.width>0)).map((t=>t.width)))),l=[...e.flatMap((t=>t.filter((t=>void 0!==t.width&&t.width>0)).map((t=>t.width)))),...o];return 0===l.length?"0px":1===l.length?`${l[0]}px`:`calc(${l.map((t=>`${t}px`)).join(" + ")})`},St=t=>void 0===t?[]:Array.isArray(t)?t:[t],wt=t=>{var e;return null!==(e=t?t.keyPropertyName:void 0)&&void 0!==e?e:"id"},_t=t=>{const e=t?St(t.selectedKeys):[];return{disabledKeys:new Set((t?St(t.disabledKeys):[]).map(String)),keyPropertyName:wt(t),selectedKeys:e,selectedKeysSet:new Set(e.map(String))}},xt=(t,e)=>t.filter((t=>!e.disabledKeys.has(String(t[e.keyPropertyName])))),Ot=i.forBlock("kol-table"),$t=Ot("body"),Ft=Ot("cell-actions"),Lt=Ot("cell-states"),It=Ot("footer"),Tt=Ot("head"),Dt=Ot("head-row"),zt=Ot("scroll-container"),At=Ot("selection-icon"),Et=Ot("selection-input-tooltip"),Mt=Ot("sort"),Bt=Ot("sort-button"),Ht=Ot("sort-order"),Kt=Ot("table"),Nt=`${Ot("focus-element")} ${Ot("caption")}`,Pt="caption",Wt=(t,e)=>mt(t.fixedCols,t.stickyColsDisabled,t.maxCols,e),Rt=(t,e,o)=>({left:"left"===e?gt(t.fixedOffsets,o,!0,!1!==t.selection):void 0,right:"right"===e?gt(t.fixedOffsets,o,!1,!1!==t.selection):void 0}),qt=(t,e,o)=>{var l,i;return null!==(i=t.primaryHeaders.horizontal&&(null===(l=e[0])||void 0===l?void 0:l.data)?t.rowKeys.get(e[0].data):void 0)&&void 0!==i?i:String(o)},Ut=t=>{const e=_("kol-sort");return"number"==typeof t&&t>0?`${e} – ${_("kol-table-sort-order").replace("{{order}}",`${t}`)}`:e},Vt=(t,e,o,l,i)=>{if(!1===e.visible)return"";const n=!1!==(null==e?void 0:e.sortable)&&"string"==typeof e.sortDirection;let a="none",r="kolicon-sort-neutral";if(n&&e.sortDirection)switch(e.sortDirection){case"ASC":r="kolicon-sort-asc",a="ascending";break;case"DESC":r="kolicon-sort-desc",a="descending";break;default:a="none"}const c=i?"row":"number"==typeof e.colSpan&&e.colSpan>1?"colgroup":"col",d="number"==typeof e.sortOrder&&e.sortOrder>0?e.sortOrder:void 0,h=void 0!==e.width?`${e.width}px`:void 0,b=Wt(t,l),{left:u,right:p}=Rt(t,b,l),v=e.textAlign,f=n?e.sortDirection:void 0;return s("th",{key:`${o}-${l}-${e.label}`,class:Ot("cell",{[a]:!0,"align-center":"center"===v,"align-justify":"justify"===v,"align-left":"left"===v,"align-right":"right"===v,header:!0,"sticky-left":"left"===b,"sticky-right":"right"===b}),scope:c,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{width:h,left:u,right:p},"aria-sort":a,"data-sort":f?`sort-${f}`:void 0},f?s("span",{class:Mt},s(O,Object.assign({},t.getButtonFcProps(`sort-${i?"vertical":"horizontal"}-${o}-${l}`,{_icons:{right:r},_label:e.label,_ariaDescription:Ut(d),_on:{onClick:o=>{t.handleSort(o,{key:e.key,currentSortDirection:f})}}},{class:Bt}))),d&&s("span",{"aria-hidden":"true",class:Ht},d)):e.label)},Gt=(t,e,o,l,i=!1)=>s("tr",{class:Ot("row",{body:!i,footer:i}),key:`row-${qt(t,e,o)}`},((t,e,o)=>{var l;const{handleSelectionChange:i,selection:n,selectionModel:a}=t;if(!n)return"";const r=null===(l=e[0])||void 0===l?void 0:l.data;if(!r)return"";const c=r[a.keyPropertyName],d=n.multiple||void 0===n.multiple,h=String(c),b=a.selectedKeysSet.has(h),u=a.disabledKeys.has(h),p=n.label(r),v={name:"selection",checked:b,disabled:u,id:String(c),"aria-label":p};return s("td",{key:`tbody-${o}-selection`,class:Ot("cell",{selection:!0})},s("div",{class:Ot("selection",{checked:b})},d?s("label",{class:Ot("selection-label",{disabled:u})},s($,{class:At,icons:"kolicon "+(b?"kolicon-check":""),label:""}),s("input",Object.assign({class:Ot("selection-input",{checkbox:!0})},v,{type:"checkbox",onInput:t=>{const e=b?a.selectedKeys.filter((t=>String(t)!==h)):[...a.selectedKeys,c];i(t,e)}}))):s("label",{class:Ot("selection-label")},s("input",Object.assign({class:Ot("selection-input",{radio:!0})},v,{type:"radio",onInput:t=>{i(t,[c])}}))),s("div",{class:Et},s(T,{label:p,badgeText:"",id:`${c}-label`,refFloating:()=>{}}))))})(t,e,o),e.map(((e,i)=>((t,e,o,l,i)=>{if(!1===e.visible)return"";let n=`${o}-${l}-${e.label}`;if(e.data){const i=t.rowKeys.get(e.data);n=i?`${i}-${t.primaryHeaders.horizontal?l:o}`:n}if(e.headerCell)return Vt(t,e,o,l,i);const a="function"!=typeof e.render&&e.label===t.translateNoEntries,r=kt(t.headers,t.primaryHeaders,l,"action"),c=Boolean(r&&e.data),d=kt(t.headers,t.primaryHeaders,l,"state"),h=Boolean(d&&e.data),b=Wt(t,l),{left:u,right:p}=Rt(t,b,e.colIndex),v="function"==typeof e.render,f=e.textAlign;return s("td",{key:`cell-${n}-${t.settingsChangedCounter}`,class:Ot("cell",{actions:c,"align-center":"center"===f,"align-justify":"justify"===f,"align-left":"left"===f,"align-right":"right"===f,body:!0,states:h,"sticky-left":"left"===b,"sticky-right":"right"===b}),"aria-atomic":a?"false":void 0,"aria-live":a?"polite":void 0,"aria-relevant":a?"text":void 0,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{textAlign:f,left:u,right:p},ref:v?o=>t.handleRenderCell(e,o):void 0},c&&r&&e.data?((t,e,o,l)=>s("div",{class:Ft},e.actions(o).map(((e,o)=>{const i=`action-${l}-${o}`;return"button"===e.type?s("span",{key:i},s(O,Object.assign({},t.getButtonFcProps(i,e)))):"link"===e.type?s("span",{key:i},s(F,Object.assign({},t.getLinkFcProps(i,e)))):null}))))(t,r,e.data,n):h&&d&&e.data?((t,e,o)=>{const l=t.key;if(!l)return"";const i=e[l];return i?s("div",{class:Lt},i.map(((t,e)=>"badge"===t.type?s(C,Object.assign({key:`state-${o}-${e}`},t)):null))):""})(d,e.data,n):v?"":e.label)})(t,e,o,i,l)))),Jt=(t,e,o)=>{const l=t.headers.vertical.length+ft(null==o?void 0:o[0])+(t.selection?1:0);return s("tr",{"aria-hidden":"true",class:Ot("spacer",{[e]:!0})},s("td",{class:Ot("spacer-line",{[e]:!0}),colSpan:l}))},Qt=t=>{const e=f(ht,t),{data:o,dataFoot:l,externalLabelElements:i,fixedCols:a,hasScrollbar:r,hasSettingsMenu:c,headers:d,label:h,loading:b,refScrollContainer:u,refTable:p,selection:v,stickyColsDisabled:y,variant:g}=e,k=_("kol-no-entries"),C=ut(d),S=vt(d.horizontal,o),w=Object.assign(Object.assign({},e),{fixedOffsets:yt(C.cells,S,a,y),maxCols:S,primaryHeaders:C,selectionModel:_t(v),translateNoEntries:k}),O=jt({data:o,dataFoot:l,headers:d,isFoot:!1,noEntriesLabel:k,primaryHeaders:C}),F=0===i.length;return s(x,{block:"kol-table",class:j(g,"table")},c&&t.renderSettings(d.horizontal),s("div",{ref:u,class:zt,tabindex:r?F?"-1":"0":void 0},s("table",{ref:p,"aria-labelledby":F?Pt:void 0,class:Kt,style:{minWidth:Ct(d)}},F&&s("caption",{class:Nt,id:Pt,ref:t=>{t&&(r?t.tabIndex=0:t.removeAttribute("tabindex"))}},L(h)),s("thead",{class:Tt},[d.horizontal.map(((t,e)=>s("tr",{class:Dt,key:`thead-${e}`},v&&(t=>{const{data:e,handleSelectionChange:o,selection:l,selectionModel:i}=t;if(!l)return s("td",{class:Ot("cell",{header:!0}),key:"thead-0"});if(!1===l.multiple)return s("th",{scope:"col",key:"thead-0-selection",class:Ot("cell",{header:!0,selection:!0})},s("span",{class:"visually-hidden"},_("kol-table-selection")));const n=i.selectedKeys.filter((t=>!i.disabledKeys.has(String(t)))).length,a=n===xt(e,i).length,r=0!==n&&!a;let c;return c=_(0===n?"kol-table-selection-all":a&&!r?"kol-table-selection-none":"kol-table-selection-indeterminate"),s("th",{scope:"col",key:"thead-0-selection",class:Ot("cell",{header:!0,selection:!0})},s("span",{class:"visually-hidden"},_("kol-table-selection")),s("div",{class:Ot("selection",{checked:a,indeterminate:r})},s("label",{class:Ot("selection-label")},s($,{class:At,icons:"kolicon "+(r?"kolicon-minus":a?"kolicon-check":""),label:""}),s("input",{class:Ot("selection-input",{checkbox:!0}),name:"selection",checked:a&&!r,indeterminate:r,"aria-label":c,type:"checkbox",onInput:t=>{o(t,((t,e,o)=>{const l=e.selectedKeys.filter((t=>e.disabledKeys.has(String(t))));return o&&l.push(...xt(t,e).map((t=>null==t?void 0:t[e.keyPropertyName]))),l})(e,i,!a))}})),s("div",{class:Et},s(T,{label:c,badgeText:"",refFloating:()=>{}}))))})(w),0===e&&(({headers:t})=>{const{horizontal:e,vertical:o}=t;if(0===e.length||0===o.length)return s(n,null);const l=o.reduce(((t,e)=>{var o,l;return t+(null!==(l=null===(o=null==e?void 0:e[0])||void 0===o?void 0:o.width)&&void 0!==l?l:0)}),0);return s("td",{"aria-hidden":"true",colSpan:o.length,rowSpan:e.length,style:l>0?{width:`${l}px`}:void 0})})(w),Array.isArray(t)&&t.map(((t,o)=>Vt(w,t,e,o,!1)))))),Jt(w,"head",d.horizontal)]),s("tbody",{class:$t},s("div",{class:Ot("loader",{shown:b})},s(I,{label:_(b?"kol-table-data-loading":"kol-table-data-loaded").replace("{{caption}}",m(h)),show:b,variant:"cycle"})),O.map(((t,e)=>Gt(w,t,e,!0)))),(t=>{const{dataFoot:e,headers:o,primaryHeaders:l,translateNoEntries:i}=t;if(0===e.length)return null;const n=jt({data:e,dataFoot:e,headers:o,isFoot:!0,noEntriesLabel:i,primaryHeaders:l}),a=vt(o.horizontal,e),r=Object.assign(Object.assign({},t),{fixedOffsets:yt(l.cells,a,t.fixedCols,t.stickyColsDisabled),maxCols:a});return s("tfoot",{class:It},[Jt(t,"foot",n),n.map(((t,e)=>Gt(r,t,e,!0,!0)))])})(w))))},Xt=({dialog:t,card:e},o)=>s(R,Object.assign({},t),e?s(J,Object.assign({},e),o):o),Yt=i.forBlock("kol-table")("settings"),Zt=t=>Number.isFinite(t)&&void 0!==t&&t>0?t:void 0,te=()=>{},ee=(t,e)=>{const o=_("kol-table-settings"),l=_("kol-table-settings-cancel"),i=_("kol-table-settings-apply"),n=_("kol-table-settings-error-all-invisible");let a,h=!1,b=!1;const u=()=>{h=!0,e()},p=d((()=>c(t)),(t=>t.syncListeners()),(t=>t.destroy())),v=((t,e)=>{const o=K(),l=K(),i=new Q(r.stateLess),s=z(),n=A("dialog-heading"),c={};let d,h=!0,b={};const u=t=>!a||E(a,t),p=()=>{var t,e;null===(e=null===(t=o.el)||void 0===t?void 0:t.close)||void 0===e||e.call(t)},v=t=>{var e;q(t),t.defaultPrevented||(null===(e=b.onCancel)||void 0===e||e.call(b,t),t.defaultPrevented||u(M.cancel)||t.preventDefault())},f=t=>{var e;t.target===o.el&&(N(c),null===(e=b.onClose)||void 0===e||e.call(b),u(M.close))},k=()=>{i.hideTooltip(),p(),u(M.close)};return{getFcProps:e=>{var a,r,c;let u="",p=0,j="blank",C="100%";g.apply(e.label,(t=>{u=t})),H.apply(null!==(a=e.level)&&void 0!==a?a:0,(t=>{p=t})),U.apply(e.on,(t=>{b=t})),y.apply(null!==(r=e.variant)&&void 0!==r?r:"blank",(t=>{j=t})),V.apply(null!==(c=e.width)&&void 0!==c?c:"100%",(t=>{C=t}));const S="card"===j;return S&&!d&&(d=G(t()),i.componentWillLoad({label:d.label,align:d.tooltipAlign})),{dialog:{blockClass:W(j),handleCancel:v,handleClose:f,label:m(u),labelledBy:S?n:void 0,modal:h,refDialog:o,width:C},card:S&&d?{ariaDescriptionId:s,closeButtonProps:d,handleClose:k,hasCloser:!0,headingId:n,label:u,level:p,refCloseButton:l,refTooltip:i.setTooltipElementRef}:void 0}},show:t=>{var l,i;const s=o.el;(null==s?void 0:s.open)||(h!==t&&(h=t,e()),t?(null===(l=null==s?void 0:s.showModal)||void 0===l||l.call(s),s&&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(),N(c),i.destroy()}}})(t,u),f=A("alert-heading"),k=z();let j,C=[],x=[],$=null;const F=()=>{var t;return null!==(t=x[x.length-1])&&void 0!==t?t:[]},L=t=>{x=x.map(((e,o,l)=>o===l.length-1?t:e)),u()},I=(t,e)=>{const o=[...F()],l=o.findIndex((e=>e.key===t));if(-1===l)return;let i;if("up"===e){if(0===l)return;i=l-1}else{if(l===o.length-1)return;i=l+1}const[s]=o.splice(l,1);o.splice(i,0,s),L(o)},T=t=>{if(t.preventDefault(),!F().some((t=>!1!==t.visible)))return $=n,void u();if(a){$=null,C=x.map((t=>t.map((t=>Object.assign({},t))))),u();const t=x.map((t=>t.map((t=>{const e=t,{hidable:o,resizable:l,sortable:i,visible:s,width:n}=e,a=D(e,["hidable","resizable","sortable","visible","width"]),r=Object.assign({},a);return void 0!==s&&(r.visible=s),void 0!==o&&(r.hidable=o),void 0!==i&&(r.sortable=i),void 0!==l&&(r.resizable=l),null!=n&&(r.width=n),r}))));E(a,M.changeHeaderCells,t),v.close()}},R=t=>{t&&(a=t)};return{beginRender:()=>{p.beginRender(),b=h,h=!1},render:t=>{var e;b||t===j||(j=t,C=(e=t).map((t=>[...t])),x=e.map((t=>t.map((t=>Object.assign({},t))))));const n=F();return s("div",{class:Yt,ref:R},s("div",{class:"kol-table-settings"},s(O,Object.assign({},p.get("toggle").getFcProps({_icons:"kolicon-settings",_label:o,_hideLabel:!0,_on:{onClick:()=>v.show(!0)}})))),s(Xt,Object.assign({},v.getFcProps({label:o,variant:"card",width:"fit-content"})),s("div",{class:"kol-table-settings__content"},$&&s("div",{class:"kol-table-settings__error-message"},s(B,{alert:!1,closerAriaDescriptionId:k,handleCloserClick:te,hasCloser:!1,headingId:f,label:$,level:0,refCloserButton:te,refCloserTooltip:te,type:"error",variant:"msg"})),s("form",{onSubmit:T},s("div",{class:"kol-table-settings__columns"},n.map(((t,e)=>((t,e,o)=>s("div",{key:t.key,class:"kol-table-settings__column"},s(S,{_checked:!1!==t.visible,_label:_(t.hidable?"kol-table-settings-column-hidable":"kol-table-settings-column-not-hidable",{placeholders:{column:t.label}}),_value:!0,_hideLabel:!0,_disabled:!1===t.hidable,_on:{onInput:(e,o)=>{var l;return((t,e)=>{const o=F().map((o=>o.key===t&&!1!==o.hidable?Object.assign(Object.assign({},o),{visible:Boolean(e)}):o));L(o)})(null!==(l=t.key)&&void 0!==l?l:"",o)}}}),s("span",{class:"kol-table-settings__column-label"},t.label),s(w,{_hideLabel:!0,_value:Zt(t.width),_label:_("kol-table-settings-column-width",{placeholders:{column:t.label}}),_min:1,_disabled:!1===t.resizable,_on:{onInput:(e,o)=>{var l;return((t,e)=>{const o=Zt(Number(e)),l=F().map((e=>e.key===t&&!1!==e.resizable?Object.assign(Object.assign({},e),{width:o}):e));L(l)})(null!==(l=t.key)&&void 0!==l?l:"",o)}}}),s(O,Object.assign({},p.get(`move-up-${t.key}`).getFcProps({_icons:"kolicon-chevron-up",_label:_(!1===t.sortable||0===e?"kol-table-settings-not-move":"kol-table-settings-move-up",{placeholders:{column:t.label}}),_hideLabel:!0,_variant:"ghost",_on:{onClick:()=>{var e;return I(null!==(e=t.key)&&void 0!==e?e:"","up")}},_disabled:!1===t.sortable||0===e}))),s(O,Object.assign({},p.get(`move-down-${t.key}`).getFcProps({_icons:"kolicon-chevron-down",_label:_(!1===t.sortable||e===o.length-1?"kol-table-settings-not-move":"kol-table-settings-move-down",{placeholders:{column:t.label}}),_hideLabel:!0,_variant:"ghost",_on:{onClick:()=>{var e;return I(null!==(e=t.key)&&void 0!==e?e:"","down")}},_disabled:!1===t.sortable||e===o.length-1})))))(t,e,n)))),s("div",{class:"kol-table-settings__actions"},s(O,Object.assign({},p.get("cancel").getFcProps({_label:l,_variant:"secondary",_on:{onClick:()=>(x=C.map((t=>[...t])),$=null,u(),void v.close())}}))),s(O,Object.assign({},p.get("apply").getFcProps({_label:i,_variant:"primary",_type:"submit"}))))))))},sync:()=>{p.endRender(),v.syncListeners()},destroy:()=>{p.destroy(),v.destroy()}}},oe=class extends r{constructor(){super(...arguments),this.hasExternalTableLabelRefs=!1,this.cellRenderTimeouts=new Map,this.buttonItems=d((()=>c((()=>this.host))),(t=>t.syncListeners()),(t=>t.destroy())),this.settings=ee((()=>this.host),(()=>a(this))),this.linkItems=d((()=>h((()=>a(this)))),(t=>t.syncListeners()),(t=>t.destroy())),this.propsConfig=ht,this.handleResize=()=>{this.updateScrollbarState(),clearTimeout(this.resizeDebounceTimeout),this.resizeDebounceTimeout=setTimeout((()=>{this.updateStickyColsDisabled()}),150)},this.handleSelectionChange=(t,e)=>{this.emitSelectionChange(t,e)},this.handleSort=(t,e)=>{this.emitSort(t,e)},this.handleRenderCell=(t,e)=>{e&&(clearTimeout(this.cellRenderTimeouts.get(e)),this.cellRenderTimeouts.set(e,setTimeout((()=>{if(this.cellRenderTimeouts.delete(e),"function"==typeof t.render){const o=t.render(e,t,t.data,this.getRenderProp("data"));"string"==typeof o&&(e.textContent=o)}}))))},this.refScrollContainer=t=>{this.scrollContainerElement=t},this.refTable=t=>{this.tableElement=t,this.syncTableLabel(this.getState("externalLabelElements"))},this.getButtonFcProps=(t,e,o)=>this.buttonItems.get(t).getFcProps(e,o),this.renderSettings=t=>this.settings.render(t),this.getLinkFcProps=(t,e)=>this.linkItems.get(t).getFcProps(e)}observeScrollContainer(){this.scrollContainerElement&&ResizeObserver&&(this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.scrollContainerElement)),this.updateStickyColsDisabled()}teardownTable(){var t;null===(t=this.resizeObserver)||void 0===t||t.disconnect(),clearTimeout(this.resizeDebounceTimeout),this.cellRenderTimeouts.forEach((t=>clearTimeout(t))),this.cellRenderTimeouts.clear(),this.buttonItems.destroy(),this.linkItems.destroy(),this.settings.destroy()}syncTableItems(){this.buttonItems.endRender(),this.linkItems.endRender(),this.settings.sync()}applyData(t){st.apply(t,(t=>{this.setRenderProp("data",t),this.setState("rowKeys",((t,e)=>new Map(t.map((t=>{var o;return[t,null!==(o=e.get(t))&&void 0!==o?o:z()]}))))(t,this.getState("rowKeys")))}))}applyDataFoot(t){nt.apply(t,(t=>this.setRenderProp("dataFoot",t)))}applyFixedCols(t){tt.apply(t,(t=>this.setRenderProp("fixedCols",t))),this.updateStickyColsDisabled()}applyHasSettingsMenu(t){et.apply(t,(t=>this.setRenderProp("hasSettingsMenu",t)))}applyHeaders(t){rt.apply(t,(t=>this.setRenderProp("headers",(t=>0===t.horizontal.length?t:Object.assign(Object.assign({},t),{horizontal:t.horizontal.map((t=>t.map((t=>Object.assign(Object.assign({},t),{visible:"boolean"!=typeof t.visible||t.visible,hidable:"boolean"!=typeof t.hidable||t.hidable})))))}))(t))))}applyLabel(t){g.apply(t,(t=>this.setRenderProp("label",t)),this.isRequired("label"))}applyLoading(t){ct.apply(t,(t=>this.setRenderProp("loading",t)))}applyOn(t){ot.apply(t,(t=>this.setRenderProp("on",t)))}applySelection(t){dt.apply(t,(t=>this.setRenderProp("selection",t))),this.updateStickyColsDisabled()}applyVariant(t){k.apply(t,(t=>this.setRenderProp("variant",t)))}syncTableLabel(t){this.tableElement&&"ariaLabelledByElements"in this.tableElement&&((null==t?void 0:t.length)?(this.tableElement.ariaLabelledByElements=t,this.hasExternalTableLabelRefs=!0,o.debug([this.tableElement,t,this.tableElement.ariaLabelledByElements])):this.hasExternalTableLabelRefs&&(this.hasExternalTableLabelRefs=!1,this.tableElement.ariaLabelledByElements=null,this.tableElement.setAttribute("aria-labelledby",Pt)))}moveCheckboxFocus(t){var e,o,l;if("ArrowUp"!==t.key&&"ArrowDown"!==t.key)return;const i=Array.from(null!==(o=null===(e=this.scrollContainerElement)||void 0===e?void 0:e.querySelectorAll(".kol-table__selection-input--checkbox"))&&void 0!==o?o:[]),s=null===(l=this.scrollContainerElement)||void 0===l?void 0:l.querySelector(":focus");let n=i.indexOf(s);n>-1&&(t.preventDefault(),n=(n+("ArrowDown"===t.key?1:i.length-1))%i.length,i[n].focus())}applyChangedHeaderCells(t){const e=Object.assign(Object.assign({},this.getRenderProp("headers")),{horizontal:t.detail});this.setRenderProp("headers",e),this.setState("settingsChangedCounter",this.getState("settingsChangedCounter")+1);const o=this.getRenderProp("on")[X.onChangeHeaderCells];"function"==typeof o&&o(t,e)}updateScrollbarState(){if(this.scrollContainerElement){const{clientHeight:t,clientWidth:e,scrollHeight:o,scrollWidth:l}=this.scrollContainerElement;this.setState("hasScrollbar",l>e||o>t&&["auto","scroll"].includes(getComputedStyle(this.scrollContainerElement).overflowY))}}calculateFixedColsWidth(){var t,e,o,l,i,s;const[n,a]=this.getRenderProp("fixedCols"),r=this.getRenderProp("headers"),c=ut(r).cells,d=vt(r.horizontal,this.getRenderProp("data"));let h=0;for(let o=0;o<n&&o<c.length;o++)h+=null!==(e=null===(t=c[o])||void 0===t?void 0:t.width)&&void 0!==e?e:0;for(let t=d-a;t<d&&t<c.length;t++)h+=null!==(l=null===(o=c[t])||void 0===o?void 0:o.width)&&void 0!==l?l:0;if(this.getRenderProp("selection")){const t=null===(i=this.scrollContainerElement)||void 0===i?void 0:i.querySelector(".kol-table__cell--selection");h+=null!==(s=null==t?void 0:t.offsetWidth)&&void 0!==s?s:0}return h}updateStickyColsDisabled(){if(!this.scrollContainerElement)return void this.setState("stickyColsDisabled",!1);const t=this.calculateFixedColsWidth();this.setState("stickyColsDisabled",t>0&&t>=this.scrollContainerElement.clientWidth)}emitSelectionChange(t,e){const o=this.getRenderProp("on")[X.onSelectionChange];"function"==typeof o&&o(t,e),this.host&&E(this.host,M.selectionChange,e)}emitSort(t,e){const o=this.getRenderProp("on")[X.onSort];"function"==typeof o&&e.key&&o(t,e),this.host&&E(this.host,M.sort,e)}renderTableStatelessFC(){return this.buttonItems.beginRender(),this.linkItems.beginRender(),this.settings.beginRender(),s(Qt,{data:this.getRenderProp("data"),dataFoot:this.getRenderProp("dataFoot"),externalLabelElements:this.getState("externalLabelElements"),fixedCols:this.getRenderProp("fixedCols"),getButtonFcProps:this.getButtonFcProps,getLinkFcProps:this.getLinkFcProps,renderSettings:this.renderSettings,handleRenderCell:this.handleRenderCell,handleSelectionChange:this.handleSelectionChange,handleSort:this.handleSort,hasScrollbar:this.getState("hasScrollbar"),hasSettingsMenu:this.getRenderProp("hasSettingsMenu"),headers:this.getRenderProp("headers"),label:this.getRenderProp("label"),loading:this.getRenderProp("loading"),on:this.getRenderProp("on"),refScrollContainer:this.refScrollContainer,refTable:this.refTable,rowKeys:this.getState("rowKeys"),selection:this.getRenderProp("selection"),settingsChangedCounter:this.getState("settingsChangedCounter"),stickyColsDisabled:this.getState("stickyColsDisabled"),variant:this.getRenderProp("variant")})}};export{oe as B,nt as a,st as t,Y as v}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var t,n,i,o={exports:{}},r=(t||(t=1,n=o.exports,i=function(){var e=function(){},t="undefined",n=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),i=["trace","debug","info","warn","error"],o={},r=null;function l(e,t){var n=e[t];if("function"==typeof n.bind)return n.bind(e);try{return Function.prototype.bind.call(n,e)}catch(t){return function(){return Function.prototype.apply.apply(n,[e,arguments])}}}function s(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function a(){for(var n=this.getLevel(),o=0;o<i.length;o++){var r=i[o];this[r]=o<n?e:this.methodFactory(r,n,this.name)}if(this.log=this.debug,typeof console===t&&n<this.levels.SILENT)return"No console available for logging"}function u(e){return function(){typeof console!==t&&(a.call(this),this[e].apply(this,arguments))}}function d(i,o,r){return function(i){return"debug"===i&&(i="log"),typeof console!==t&&("trace"===i&&n?s:void 0!==console[i]?l(console,i):void 0!==console.log?l(console,"log"):e)}(i)||u.apply(this,arguments)}function c(e,n){var l,s,u,c=this,f="loglevel";function m(){var e;if(typeof window!==t&&f){try{e=window.localStorage[f]}catch(e){}if(typeof e===t)try{var n=window.document.cookie,i=encodeURIComponent(f),o=n.indexOf(i+"=");-1!==o&&(e=/^([^;]+)/.exec(n.slice(o+i.length+1))[1])}catch(e){}return void 0===c.levels[e]&&(e=void 0),e}}function p(e){var t=e;if("string"==typeof t&&void 0!==c.levels[t.toUpperCase()]&&(t=c.levels[t.toUpperCase()]),"number"==typeof t&&t>=0&&t<=c.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?f+=":"+e:"symbol"==typeof e&&(f=void 0),c.name=e,c.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},c.methodFactory=n||d,c.getLevel=function(){return null!=u?u:null!=s?s:l},c.setLevel=function(e,n){return u=p(e),!1!==n&&function(e){var n=(i[e]||"silent").toUpperCase();if(typeof window!==t&&f){try{return void(window.localStorage[f]=n)}catch(e){}try{window.document.cookie=encodeURIComponent(f)+"="+n+";"}catch(e){}}}(u),a.call(c)},c.setDefaultLevel=function(e){s=p(e),m()||c.setLevel(e,!1)},c.resetLevel=function(){u=null,function(){if(typeof window!==t&&f){try{window.localStorage.removeItem(f)}catch(e){}try{window.document.cookie=encodeURIComponent(f)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),a.call(c)},c.enableAll=function(e){c.setLevel(c.levels.TRACE,e)},c.disableAll=function(e){c.setLevel(c.levels.SILENT,e)},c.rebuild=function(){if(r!==c&&(l=p(r.getLevel())),a.call(c),r===c)for(var e in o)o[e].rebuild()},l=p(r?r.getLevel():"WARN");var g=m();null!=g&&(u=p(g)),a.call(c)}(r=new c).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=o[e];return t||(t=o[e]=new c(e,r.methodFactory)),t};var f=typeof window!==t?window.log:void 0;return r.noConflict=function(){return typeof window!==t&&window.log===r&&(window.log=f),r},r.getLoggers=function(){return o},r.default=r,r},o.exports?o.exports=i():n.log=i()),o.exports),l=e(r);const s={A11yUi:{CSS_STYLE_CACHE:new Map,FEATURES:{},IS_TEST_ENVIRONMENT:(()=>{const e=typeof process<"u"&&process.env?process.env:{},t="test"===e.NODE_ENV,n="VITEST"in e,i="JEST_WORKER_ID"in e,o="PLAYWRIGHT_TEST_BASE_URL"in e,r="true"===e.CI,l="true"===e.TEST||"true"===e.IS_TEST,s=typeof navigator<"u"&&!0===navigator.webdriver,a=typeof navigator<"u"&&/playwright|puppeteer|webdriver|selenium|testcafe/i.test(navigator.userAgent);return t||n||i||o||r||l||s||a})(),PERFORMANCE_MEASURES:new Map,STYLING_TASK_QUEUE:new Map,THEMES:new Map,THEME_FEATURES:{},showAverageTimes:()=>{const e={};for(const[t,n]of s.A11yUi.PERFORMANCE_MEASURES.entries())e[t]=[n.totalTime/n.count,n.count];const t=Object.entries(e).sort(((e,t)=>t[1][0]-e[1][0]));return console.table(Object.fromEntries(t.map((([e,[t,n]])=>[e,{"avg (ms)":parseFloat(t.toFixed(2)),count:n}])))),e}}};let a=!0,u=!1;const d=/^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/,c=e=>{if(!(e=>"string"==typeof e&&d.test(e))(e))throw new Error(`[Theming] The theme identifier "${"string"==typeof e?e:""}" (Type: ${typeof e}) is not valid. Please use only follow this pattern: /^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/`)},f=e=>e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s*([{},;])\s*/g,"$1").replace(/:\s+/g,":").replace(/\s+/g," ").replace(/;\}/g,"}").trim(),m=(e,t,n,i)=>{(i=i??{}).append=i.append??!1,c(e),a&&!u&&(u=!0,l.warn(`[Theming] The theme process is locked. This means that the theme "${e}" should not be patched.\n\n import { register } from 'adopted-style-sheets';\n import { defineCustomElements } from '...';\n import { THEME } from '...';\n\n register(THEME, defineCustomElements)\n .then(() => {\n // run your app or website\n })\n .catch(console.warn);`));let o=s.A11yUi.THEMES.get(e);if(o||(o=new Map,s.A11yUi.THEMES.set(e,o)),i.append&&o.has(t)){const e=o.get(t);o.set(t,f(`${e}${n}`))}else o.set(t,f(n))},p=(e,t,n,i)=>(c(e),"object"==typeof t&&null!==t&&Object.getOwnPropertyNames(t).forEach((o=>{const r=t[o],l=o.toLowerCase(),s="function"!=typeof i?.transformTagName||["GLOBAL","PROPERTIES"].includes(o)?o:i.transformTagName(l);"string"==typeof r&&r.length>0&&m(e,s.toUpperCase(),r,n)})),e),g=e=>{if(e instanceof HTMLElement){if("string"==typeof e.dataset.theme)return e;{let t=e.parentNode;for(;typeof ShadowRoot<"u"&&t instanceof ShadowRoot;)t=t.host;return g(t)}}return null},b=(e={})=>"false"!==e.themeEncroachCss&&"true"!==e.themeReset&&{mode:"after"===e.themeEncroachCssMode||"before"===e.themeEncroachCssMode?e.themeEncroachCssMode:"before"},h=()=>"object"==typeof s.A11yUi.Theme&&null!==s.A11yUi.Theme&&"boolean"==typeof s.A11yUi.Theme.cache&&"object"==typeof s.A11yUi.Theme.encroachCss&&null!==s.A11yUi.Theme.encroachCss&&"string"==typeof s.A11yUi.Theme.encroachCss.mode&&"string"==typeof s.A11yUi.Theme.name,w=e=>{if(h())return s.A11yUi.Theme;{const t={cache:!0,encroachCss:b(),loglevel:"silent",mode:"csr",name:null},n=g(e);return n instanceof HTMLElement&&(t.cache="false"!==n.dataset.themeCache,t.encroachCss=b(n.dataset),t.loglevel="debug"===n.dataset.themeLoglevel?n.dataset.themeLoglevel:"silent",t.mode="ssr"===n.dataset.themeMode?n.dataset.themeMode:"csr",t.name=n.dataset.theme||null),t}},y=()=>h()?s.A11yUi.Theme.name:null,v=(...e)=>{const t={};for(const n of e)n&&Object.assign(t,n);return t},k=(e,t)=>{const n=s.A11yUi.FEATURES[e];if(void 0!==n)return n;const i=(e=>w(e).name)(t??null)??y();if(null!==i){const t=s.A11yUi.THEME_FEATURES[i];if(t&&void 0!==t[e])return t[e]}};let S=!1;const E=(e,t,n={})=>{S||(S=!0,a=!1,typeof window<"u"&&(window.A11yUi=s.A11yUi)),"function"==typeof e?e=new Set([e]):Array.isArray(e)&&(e=new Set(e)),e instanceof Set&&e.forEach((e=>{"function"==typeof e&&1===e.length?((e,t)=>{!1===h()&&("object"!=typeof s.A11yUi.Theme||null===s.A11yUi.Theme||"default"!==s.A11yUi.Theme.name)&&"object"==typeof t&&null!==t&&(t=((e,t)=>({cache:!1!==t.cache,detect:"auto"===t.detect?"auto":"fixed",encroachCss:!1!==t.encroachCss&&("object"!=typeof t.encroachCss||null==t.encroachCss||"after"!==t.encroachCss.mode&&"before"!==t.encroachCss.mode?{mode:"before"}:t.encroachCss),loglevel:"debug"===t.loglevel?t.loglevel:"silent",mode:"ssr"===t.mode?t.mode:"csr",name:"string"==typeof t.name?t.name:e}))(e,t),"fixed"===t.detect?(null===t.name&&"string"==typeof e&&(t.name=e),e===t.name&&(s.A11yUi.Theme=t,l.info(`[Theming] Theme "${e}" was set as default theme.`))):u||(u=!0,l.warn("[Theming] The presetting of theme options is only relevant by using 'fixed' detection mode.")))})(e(((e,t,i,o)=>(o&&(s.A11yUi.THEME_FEATURES[e]=v(s.A11yUi.THEME_FEATURES[e],o)),p(e,t,i,n)))),{cache:n.theme?.cache,detect:n.theme?.detect,encroachCss:n.theme?.encroachCss,mode:n.theme?.mode,name:n.theme?.name}):l.error("[Theming] An attempt was made to load an incompatible theme.")})),a=!0,n.features&&(s.A11yUi.FEATURES=v(s.A11yUi.FEATURES,n.features)),"function"==typeof t?t=new Set([t]):Array.isArray(t)&&(t=new Set(t));const i=[];return t.forEach((e=>{const t=e();t instanceof Promise&&i.push(t)})),Promise.all(i)},T=new Set,M=new Map,A=/--[^;]+/g,x=/:/,N=typeof MutationObserver<"u";let O=25,L=()=>{O=Math.min(25+20*Math.log2(s.A11yUi.STYLING_TASK_QUEUE.size+1),250)};const j=(e,t)=>{const n=s.A11yUi.THEMES.get(e);if(n instanceof Map){const e=n.get(t);if(void 0!==e)return e}return""},C=(e,t,n,i)=>{const o="debug"===s.A11yUi.Theme?.loglevel,r=o?performance.now():0;if((e=>{const t=e.firstChild;if(t instanceof HTMLStyleElement&&void 0===t.dataset.themingFallback)for(const t of Array.from(e.childNodes)){if(!(t instanceof HTMLStyleElement&&"STYLE"===t.tagName&&void 0===t.dataset.themingFallback))break;e.removeChild(t)}})(t),((e,t)=>{try{if("ssr"===s.A11yUi.Theme?.mode)throw new Error("SSR");const n=t.filter((e=>"string"==typeof e&&e.length>0)).map((e=>{let t=M.get(e);return t||(t=new CSSStyleSheet,t.replaceSync(e),M.set(e,t)),t}));e.adoptedStyleSheets=n}catch{for(let n=t.length-1;n>=0;n--){const i=t[n];if("string"!=typeof i||0===i.length)continue;const o=t.length-1-n,r=document.createElement("style");switch(r.dataset.themingFallback="",o){case 4:r.dataset.themingBaseA11y="";break;case 3:r.dataset.themingBaseGlobal="";break;case 2:r.dataset.themingBaseComponent="";break;case 1:r.dataset.themingCustomGlobal="";break;case 0:r.dataset.themingCustomComponent="";break;default:r.dataset.themingUnknown=""}r.innerHTML=i,e.insertBefore(r,e.firstChild)}}})(t,n),U(e),requestAnimationFrame(i),o){const t=performance.now()-r,n=s.A11yUi.PERFORMANCE_MEASURES.get(e.tagName);n?(n.count+=1,n.totalTime+=t):s.A11yUi.PERFORMANCE_MEASURES.set(e.tagName,{count:1,totalTime:t})}},I=e=>{const t=s.A11yUi.STYLING_TASK_QUEUE.get(e);if(t){const{resetCss:n,themeDetails:i}=t;((e,t,n)=>{const i=t.name||"default";let o;try{if(null===e.shadowRoot)throw new Error("ShadowRoot is null");o=e.shadowRoot}catch{o=e}const r=s.A11yUi.CSS_STYLE_CACHE.get(i)?.get(e.tagName);if(r)C(e,o,r,n);else{const r=j(i,"PROPERTIES"),l=j(i,"GLOBAL"),a=j(i,e.tagName);!1===T.has(i)&&((e,t)=>{let n=t.match(A);if(Array.isArray(n)){n=n.filter((e=>x.test(e)));const t=document.createElement("style");t.innerHTML=`.${e} {${n.join(";")}}`,document.querySelector("head")?.appendChild(t)}T.add(e)})(i,l);const u=[r,l,a];if(((e,t,n)=>{if(!1===n||"before"!==n?.mode&&"after"!==n?.mode)return;const i=Array.from(e.childNodes).filter((e=>e instanceof HTMLStyleElement&&"STYLE"===e.tagName));let o;try{o=Array.from(e.adoptedStyleSheets)}catch{o=[]}if(0!==i.length||0!==o.length)if("before"===n.mode){const e=[...o.map((e=>Array.from(e.cssRules).map((e=>e.cssText)).join(""))),...i.map((e=>e.innerHTML))];t.unshift(...e)}else i.forEach((e=>t.push(e.innerHTML))),o.forEach((e=>t.push(Array.from(e.cssRules).map((e=>e.cssText)).join(""))))})(o,u,t.encroachCss),!0===t.cache){let t=s.A11yUi.CSS_STYLE_CACHE.get(i);t||(t=new Map,s.A11yUi.CSS_STYLE_CACHE.set(i,t)),t.set(e.tagName,u)}C(e,o,u,n)}})(e,i,n)}};let R=(e,t=0)=>{if(t>=100)return;const n=setTimeout((()=>{clearTimeout(n),e.classList.contains("hydrated")?I(e):R(e,t+1)}),O)};const $={attributes:!0,attributeFilter:["class"],childList:!1,subtree:!1},_={attributes:!0,attributeFilter:[],childList:!1,subtree:!1},q=N?new MutationObserver(((e,t)=>{const n=[];for(const t of e){const e=t.target;e.classList.contains("hydrated")&&s.A11yUi.STYLING_TASK_QUEUE.has(e)&&(I(e),n.push(e))}for(const e of n)t.observe(e,_)})):null;q&&(R=e=>q.observe(e,$),L=()=>{});const F=new Map;let z=(e,t)=>{if(t){const e=F.get(t);if(void 0!==e)return e}const n=getComputedStyle(e).getPropertyValue("--theme-visibility-delay").trim();let i;if(n.endsWith("ms"))i=parseFloat(n);else if(n.endsWith("s"))i=1e3*parseFloat(n);else{const e=parseFloat(n);i=isNaN(e)?0:e}return t&&F.set(t,i),i};s.A11yUi.IS_TEST_ENVIRONMENT&&(z=()=>0);const H=(e,t)=>{e.style.setProperty("visibility",t),e.dataset.themed=""},U=e=>{s.A11yUi.STYLING_TASK_QUEUE.delete(e),L()},P=(e,t)=>{((e,t)=>{const n=e.style.visibility||null,i=t.name||"default";s.A11yUi.STYLING_TASK_QUEUE.set(e,{resetCss:()=>{const t=z(e,i);t>0?setTimeout((()=>{H(e,n)}),t):H(e,n)},themeDetails:t}),e.style.setProperty("visibility","hidden","important"),R(e)})(e,{...s.A11yUi.Theme,...t})};class J{Prefix;Key;Tag;createTheme=(e,t,n)=>((e,t,n)=>i=>i(e,t,{append:!1},n))(e,t,n);createTranslation=(e,t)=>((e,t)=>n=>n(e,t))(e,t);constructor(e,t,n){this.Prefix=e,this.Key=Object.getOwnPropertyNames(t),this.Tag=Object.getOwnPropertyNames(n)}}var B,K;!function(e){e[e["action-done"]=0]="action-done",e[e["action-running"]=1]="action-running",e[e["avatar-alt"]=2]="avatar-alt",e[e["character-counter-current"]=3]="character-counter-current",e[e["character-counter-current-of-max"]=4]="character-counter-current-of-max",e[e["character-counter-current-of-max-aria"]=5]="character-counter-current-of-max-aria",e[e["character-counter-max-aria"]=6]="character-counter-max-aria",e[e["character-limit-exceeded"]=7]="character-limit-exceeded",e[e["character-limit-hint"]=8]="character-limit-hint",e[e["character-limit-remaining"]=9]="character-limit-remaining",e[e["clear-search"]=10]="clear-search",e[e.close=11]="close",e[e["close-alert"]=12]="close-alert",e[e["data-browse-text"]=13]="data-browse-text",e[e["delete-selection"]=14]="delete-selection",e[e["entries-per-site"]=15]="entries-per-site",e[e.error=16]="error",e[e["error-list"]=17]="error-list",e[e["error-list-message"]=18]="error-list-message",e[e["filename-text"]=19]="filename-text",e[e["form-description"]=20]="form-description",e[e["hide-password"]=21]="hide-password",e[e.info=22]="info",e[e["kolibri-logo"]=23]="kolibri-logo",e[e["live-value"]=24]="live-value",e[e["live-value-bounded"]=25]="live-value-bounded",e[e.message=26]="message",e[e["meter-state-critical"]=27]="meter-state-critical",e[e["meter-state-optimum"]=28]="meter-state-optimum",e[e["meter-state-suboptimal"]=29]="meter-state-suboptimal",e[e["nav-maximize"]=30]="nav-maximize",e[e["nav-minimize"]=31]="nav-minimize",e[e.new=32]="new",e[e["no-entries"]=33]="no-entries",e[e["no-results-message"]=34]="no-results-message",e[e["open-link-in-tab"]=35]="open-link-in-tab",e[e.page=36]="page",e[e["page-back"]=37]="page-back",e[e["page-first"]=38]="page-first",e[e["page-last"]=39]="page-last",e[e["page-next"]=40]="page-next",e[e.pagination=41]="pagination",e[e["pagination-position-bottom"]=42]="pagination-position-bottom",e[e["pagination-position-top"]=43]="pagination-position-top",e[e.readonly=44]="readonly",e[e["show-password"]=45]="show-password",e[e["show-suggestions"]=46]="show-suggestions",e[e.sort=47]="sort",e[e["split-button-dropdown-label-open"]=48]="split-button-dropdown-label-open",e[e.success=49]="success",e[e["table-data-loading"]=50]="table-data-loading",e[e["table-data-loaded"]=51]="table-data-loaded",e[e["table-pagination-label"]=52]="table-pagination-label",e[e["table-selection"]=53]="table-selection",e[e["table-selection-all"]=54]="table-selection-all",e[e["table-selection-indeterminate"]=55]="table-selection-indeterminate",e[e["table-selection-none"]=56]="table-selection-none",e[e["table-settings"]=57]="table-settings",e[e["table-settings-apply"]=58]="table-settings-apply",e[e["table-settings-cancel"]=59]="table-settings-cancel",e[e["table-settings-column-hidable"]=60]="table-settings-column-hidable",e[e["table-settings-column-not-hidable"]=61]="table-settings-column-not-hidable",e[e["table-settings-column-width"]=62]="table-settings-column-width",e[e["table-settings-error-all-invisible"]=63]="table-settings-error-all-invisible",e[e["table-settings-move-down"]=64]="table-settings-move-down",e[e["table-settings-move-up"]=65]="table-settings-move-up",e[e["table-settings-not-move"]=66]="table-settings-not-move",e[e["table-sort-order"]=67]="table-sort-order",e[e["table-visible-range"]=68]="table-visible-range",e[e["toast-close-all"]=69]="toast-close-all",e[e.version=70]="version",e[e.warning=71]="warning"}(B||(B={})),function(e){e[e.abbr=0]="abbr",e[e.accordion=1]="accordion",e[e.alert=2]="alert",e[e.avatar=3]="avatar",e[e.badge=4]="badge",e[e.breadcrumb=5]="breadcrumb",e[e.button=6]="button",e[e["button-link"]=7]="button-link",e[e.card=8]="card",e[e.combobox=9]="combobox",e[e.details=10]="details",e[e.dialog=11]="dialog",e[e.drawer=12]="drawer",e[e.form=13]="form",e[e.heading=14]="heading",e[e.icon=15]="icon",e[e.image=16]="image",e[e["input-checkbox"]=17]="input-checkbox",e[e["input-color"]=18]="input-color",e[e["input-date"]=19]="input-date",e[e["input-email"]=20]="input-email",e[e["input-file"]=21]="input-file",e[e["input-number"]=22]="input-number",e[e["input-password"]=23]="input-password",e[e["input-radio"]=24]="input-radio",e[e["input-range"]=25]="input-range",e[e["input-text"]=26]="input-text",e[e.kolibri=27]="kolibri",e[e.link=28]="link",e[e["link-button"]=29]="link-button",e[e.logo=30]="logo",e[e.meter=31]="meter",e[e.modal=32]="modal",e[e.nav=33]="nav",e[e.pagination=34]="pagination",e[e["popover-button"]=35]="popover-button",e[e.progress=36]="progress",e[e.quote=37]="quote",e[e.select=38]="select",e[e["single-select"]=39]="single-select",e[e["skip-nav"]=40]="skip-nav",e[e.spin=41]="spin",e[e["split-button"]=42]="split-button",e[e.symbol=43]="symbol",e[e.table=44]="table",e[e["table-stateful"]=45]="table-stateful",e[e["table-stateless"]=46]="table-stateless",e[e.tabs=47]="tabs",e[e.textarea=48]="textarea",e[e["toast-container"]=49]="toast-container",e[e.toolbar=50]="toolbar",e[e.tooltip=51]="tooltip",e[e.tree=52]="tree",e[e["tree-item"]=53]="tree-item",e[e.version=54]="version"}(K||(K={}));const W=()=>"undefined"!=typeof window?window:{},D=()=>{const e=W();return e&&void 0!==e.document?e.document:{}},G=["development","production","test"];let Y="production";const V=e=>{try{if(!G.includes(e))throw new Error(`Invalid NODE_ENV value: ${e}. Expected one of ${G.join(", ")}.`);Y=e}catch(e){Y="production"}},Q=()=>{try{return"undefined"!=typeof process&&process.env?process.env.NODE_ENV:void 0}catch(e){return}};V((()=>{const e=Q();return e&&G.includes(e)?e:"production"})());let X=!1,Z=!1;const ee=()=>"development"===Y,te=()=>"test"===Y,ne=()=>!0===X,ie=e=>{X=!0===e},oe=()=>!0===Z,re=e=>{Z=!0===e},le=e=>Array.isArray(e)?e:[e],se=e=>`%c${e}`,ae=(e,t)=>"string"==typeof t&&t.length>0?`${se(e)} | ${t}`:se(e),ue=(e,t)=>[ae(e,null==t?void 0:t.classifier),`color: white; background: #666; font-weight: bold; padding: .25em .5em; border-radius: 3px; border: 1px solid #000;${(null==t?void 0:t.overwriteStyle)||""}`],de=e=>ee()||!0===e,ce=new class{constructor(e){this.label=e}debug(e,t){de(null==t?void 0:t.forceLog)&&console.debug(...ue(this.label,t),...le(e))}info(e,t){de(null==t?void 0:t.forceLog)&&console.info(...ue(this.label,t),...le(e))}trace(e,t){de(null==t?void 0:t.forceLog)&&console.trace(...ue(this.label,t),...le(e))}warn(e,t){de(null==t?void 0:t.forceLog)&&console.warn(...ue(this.label,t),...le(e))}error(e,t){console.error(...ue(this.label,t),...le(e))}throw(e,t){if(de(null==t?void 0:t.forceLog))throw new Error(...ue(this.label,t),...le(e))}}("KoliBri"),fe=new Set,me=e=>{!1===fe.has(e)&&(fe.add(e),ce.debug([e].concat([]),{classifier:"✋ a11y",forceLog:!1,overwriteStyle:"; background-color: #09f"}))},pe=new Set,ge=e=>{!1===pe.has(e)&&(pe.add(e),ce.warn([e].concat([]),{classifier:"🔥 deprecated",forceLog:!1,overwriteStyle:"; background-color: #f00"}))},be=new Set,he=(e,t)=>{(!1===be.has(e)||(null==t?void 0:t.force))&&(be.add(e),ce.debug([e].concat((null==t?void 0:t.details)||[]),{classifier:"💻 dev",forceLog:!!(null==t?void 0:t.force),overwriteStyle:"; background-color: #f09"}))},we=e=>{!1===be.has(e)&&(be.add(e),ce.warn([e].concat([]),{classifier:"⚠️ dev",forceLog:!1,overwriteStyle:"; background-color: #f09"}))},ye=new Set,ve=(e,t=!1)=>{!1===ye.has(e)&&(ye.add(e),ce.debug([e+=!0===t?" ✅":""].concat([]),{classifier:"🌟 feature",forceLog:!1,overwriteStyle:"; background-color: #309"}))};he("We appreciate any feedback, comments, screenshots, or demo links of an application based on KoliBri (kolibri@itzbund.de). Thank you!");const ke=new Set,Se=e=>{!1===ke.has(e)&&(ke.add(e),ce.debug([e].concat([]),{classifier:"📑 ui/ux",forceLog:!1,overwriteStyle:"; background-color: #060;"}))},Ee=e=>{"string"==typeof e&&""!==e||me("Some structural elements, such as the nav tag, can be used multiple times on a webpage. To distinguish between similarly named structural elements, it is necessary to set an ARIA label.\n- https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Navigation_Role#accessibility_concerns")},Te=(e,t=8)=>{t>7&&Se(`[${e}] Within navigation structures, it is recommended to use no more than 7 menu items.\n\nLink:\n- https://en.wikipedia.org/wiki/The_Magical_Number_Seven,_Plus_or_Minus_Two`)};var Me,Ae,xe,Ne,Oe=1/12.92;function Le(e){return Math.pow((e+.055)/1.055,2.4)}function je(e){var t=e[0]/255,n=e[1]/255,i=e[2]/255;return.2126*(t<=.03928?t*Oe:Le(t))+.7152*(n<=.03928?n*Oe:Le(n))+.0722*(i<=.03928?i*Oe:Le(i))}function Ce(e){var t=255;8===(e=e.replace(/^#/,"")).length&&(t=parseInt(e.slice(6,8),16),e=e.substring(0,6)),4===e.length&&(t=parseInt(e.slice(3,4).repeat(2),16),e=e.substring(0,3)),3===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);var n=parseInt(e,16);return[n>>16,n>>8&255,255&n,t]}function Ie(e,t){return function(e,t){return function(e,t){return(Math.max(e,t)+.05)/(Math.min(e,t)+.05)}(je(e),je(t))}(Ce(e),Ce(t))}var Re=function(){if(Ne)return xe;Ne=1;var e=Ae?Me:(Ae=1,Me={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]});xe=function(n){var i,o,r=[],l=1;if("string"==typeof n)if(n=n.toLowerCase(),e[n])r=e[n].slice(),o="rgb";else if("transparent"===n)l=0,o="rgb",r=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(n)){var s=n.slice(1);l=1,(d=s.length)<=4?(r=[parseInt(s[0]+s[0],16),parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16)],4===d&&(l=parseInt(s[3]+s[3],16)/255)):(r=[parseInt(s[0]+s[1],16),parseInt(s[2]+s[3],16),parseInt(s[4]+s[5],16)],8===d&&(l=parseInt(s[6]+s[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),o="rgb"}else if(i=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(n)){var a=i[1],u="rgb"===a;o=s=a.replace(/a$/,"");var d="cmyk"===s?4:"gray"===s?1:3;r=i[2].trim().split(/\s*[,\/]\s*|\s+/).map((function(e,n){if(/%$/.test(e))return n===d?parseFloat(e)/100:"rgb"===s?255*parseFloat(e)/100:parseFloat(e);if("h"===s[n]){if(/deg$/.test(e))return parseFloat(e);if(void 0!==t[e])return t[e]}return parseFloat(e)})),a===s&&r.push(1),l=u||void 0===r[d]?1:r[d],r=r.slice(0,d)}else n.length>10&&/[0-9](?:\s|\/)/.test(n)&&(r=n.match(/([0-9]+)/g).map((function(e){return parseFloat(e)})),o=n.match(/([a-z])/gi).join("").toLowerCase());else isNaN(n)?Array.isArray(n)||n.length?(r=[n[0],n[1],n[2]],o="rgb",l=4===n.length?n[3]:1):n instanceof Object&&(null!=n.r||null!=n.red||null!=n.R?(o="rgb",r=[n.r||n.red||n.R||0,n.g||n.green||n.G||0,n.b||n.blue||n.B||0]):(o="hsl",r=[n.h||n.hue||n.H||0,n.s||n.saturation||n.S||0,n.l||n.lightness||n.L||n.b||n.brightness]),l=n.a||n.alpha||n.opacity||1,null!=n.opacity&&(l/=100)):(o="rgb",r=[n>>>16,(65280&n)>>>8,255&n]);return{space:o,values:r,alpha:l}};var t={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};return xe}(),$e=e(Re);const _e={min:[0,0,0],max:[255,255,255]};var qe={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t,n,i,o,r,l=e[0]/360,s=e[1]/100,a=e[2]/100,u=0;if(0===s)return[r=255*a,r,r];for(t=2*a-(n=a<.5?a*(1+s):a+s-a*s),o=[0,0,0];u<3;)(i=l+1/3*-(u-1))<0?i++:i>1&&i--,o[u++]=255*(r=6*i<1?t+6*(n-t)*i:2*i<1?n:3*i<2?t+(n-t)*(2/3-i)*6:t);return o}};_e.hsl=function(e){var t,n,i=e[0]/255,o=e[1]/255,r=e[2]/255,l=Math.min(i,o,r),s=Math.max(i,o,r),a=s-l;return s===l?t=0:i===s?t=(o-r)/a:o===s?t=2+(r-i)/a:r===s&&(t=4+(i-o)/a),(t=Math.min(60*t,360))<0&&(t+=360),n=(l+s)/2,[t,100*(s===l?0:n<=.5?a/(s+l):a/(2-s-l)),100*n]};var Fe,ze={exports:{}},He=function(){if(Fe)return ze.exports;function e(e){var n=t(e);return 3==n.length?n.concat(255):(n[3]=Math.round(n[3]),n)}function t(e){return"string"==typeof e?("red"==(t=e=e.toLowerCase())?[255,0,0]:"green"==t?[0,255,0]:"blue"==t?[0,0,255]:"black"==t?[0,0,0]:"white"==t?[255,255,255]:"cyan"==t?[0,255,255]:"gray"==t||"grey"==t?[128,128,128]:"magenta"==t||"pink"==t?[255,0,255]:"yellow"==t?[255,255,0]:void 0)||function(e){var t=e.replace(/^#/,""),n=t.length;if(3==n||4==n){var o=i(t[0]),r=i(t[1]),l=i(t[2]),s=3==n?255:i(t[3]);if(isNaN(o)||isNaN(r)||isNaN(l)||isNaN(s))return;return[o,r,l,s]}}(e)||function(e){var t=e.replace(/^#/,""),n=t.length;if(6==n||8==n){var o=i(t.slice(0,2)),r=i(t.slice(2,4)),l=i(t.slice(4,6)),s=6==n?255:i(t.slice(6,8));if(isNaN(o)||isNaN(r)||isNaN(l)||isNaN(s))return;return[o,r,l,s]}}(e)||function(e){if("rgb("==e.substr(0,4)){var t=(e=e.match(/^rgb\(([^)]+)\)/)[1]).split(/ *, */).map(Number),n=o(t[0],!0),i=o(t[1],!0),r=o(t[2],!0);if(-1!=n&&-1!=i&&-1!=r)return[n,i,r,255]}}(e)||function(e){if("rgba("==e.substr(0,5)){var t=(e=e.match(/^rgba\(([^)]+)\)/)[1]).split(/ *, */).map(Number),n=o(t[0],!0),i=o(t[1],!0),r=o(t[2],!0),l=o(255*t[3]);if(-1!=n&&-1!=i&&-1!=r&&-1!=l)return[n,i,r,l]}}(e)||[0,0,0,255]:function(e){if("[object Object]"===Object.prototype.toString.call(e)&&Object.getPrototypeOf(e)===Object.getPrototypeOf({})){var t=o(null!=e.r?e.r:null!=e.red?e.red:0,!0),n=o(null!=e.g?e.g:null!=e.green?e.green:0,!0),i=o(null!=e.b?e.b:null!=e.blue?e.blue:0,!0),r=o(null!=e.a?e.a:null!=e.alpha?e.alpha:255,!0);if(-1!=t&&-1!=n&&-1!=i&&-1!=r)return[t,n,i,r]}}(e)||function(e){if(Array.isArray(e)&&(3==e.length||4==e.length)){var t=o(e[0],!0),n=o(e[1],!0),i=o(e[2],!0),r=o(null!=e[3]?e[3]:255,!0);if(-1!=t&&-1!=n&&-1!=i&&-1!=r)return[t,n,i,r]}}(e)||function(e){if("number"==typeof e&&Math.floor(e)==e&&e<=4294967295&&e>=0)return[e>>16&255,e>>8&255,255&e,e>>24&255]}(e)||[0,0,0,255];var t}function n(e){var t=e.toString(16);return 1==t.length?"0"+t:t}function i(e){return 1==e.length?parseInt(e+e,16):parseInt(e,16)}function o(e,t){return"number"!=typeof e||!0===t&&Math.floor(e)!==e?-1:e>=0&&e<=255?e:-1}return Fe=1,ze.exports=e,ze.exports.arr=e,ze.exports.obj=function(e){var n=t(e);return{r:n[0],g:n[1],b:n[2],a:3==n.length?255:Math.round(n[3])}},ze.exports.css=function(e){var n=t(e);return 3==n.length&&n.push(255),255==n[3]?"rgb("+n[0]+", "+n[1]+", "+n[2]+")":0==n[3]?"rgba("+n[0]+", "+n[1]+", "+n[2]+", 0)":"rgba("+n[0]+", "+n[1]+", "+n[2]+", "+String(n[3]/255).substr(1)+")"},ze.exports.hex=function(e){var i=t(e);3==i.length&&i.push(255);var o=255==i[3],r=n(i[0]),l=n(i[1]),s=n(i[2]),a=function(e,t,n,i){var o=["ff","00","11","22","33","44","55","66","77","88","99","aa","bb","cc","dd","ee"];return-1!=o.indexOf(e)&&-1!=o.indexOf(t)&&-1!=o.indexOf(n)&&-1!=o.indexOf(i)}(r,l,s,i=n(Math.round(i[3])));return o?a?"#"+r.charAt(0)+l.charAt(0)+s.charAt(0):"#"+r+l+s:a?"#"+r.charAt(0)+l.charAt(0)+s.charAt(0)+i.charAt(0):"#"+r+l+s+i},ze.exports.num=function(e){var n=t(e);return 3==n.length?n.push(255):n[3]=Math.round(n[3]),(n[3]<<24>>>0|n[0]<<16|n[1]<<8|n[2])>>>0},ze.exports}(),Ue=e(He);const Pe=/\[object Object\]/,Je=(e,t)=>{"string"==typeof e&&Pe.test(e)||t()},Be=(e,t)=>{ne()&&(ce.debug([e,t]),ce.debug("↑ We propagate the (submit) event to this target.")),Object.defineProperty(e,"target",{value:t,writable:!1})},Ke=(e,t,n,i={})=>{var o,r;void 0===e.nextHooks&&(e.nextHooks=new Map),void 0===e.nextState&&(e.nextState=new Map),e.nextHooks.get(t)instanceof Map==0&&e.nextHooks.set(t,new Map),"function"==typeof i.afterPatch&&(null===(o=e.nextHooks.get(t))||void 0===o||o.set("afterPatch",i.afterPatch)),"function"==typeof i.beforePatch&&(null===(r=e.nextHooks.get(t))||void 0===r||r.set("beforePatch",i.beforePatch)),e.nextState.set(t,n),(e=>{var t,n,i;null===(t=e.nextHooks)||void 0===t||t.forEach(((t,n)=>{var i;const o=t.get("beforePatch");"function"==typeof o&&o(null===(i=e.nextState)||void 0===i?void 0:i.get(n),e.nextState,e,n)})),(null===(n=e.nextState)||void 0===n?void 0:n.size)>0&&(e.state=Object.assign(Object.assign({},e.state),Object.fromEntries(e.nextState)),delete e.nextState,null===(i=e.nextHooks)||void 0===i||i.forEach(((t,n)=>{const i=t.get("afterPatch");"function"==typeof i&&i(e.state[n],e.state,e,n)}))),delete e.nextHooks})(e)};function We(e,t,n,i,o,r={}){if("production"!==Y||"production"!==Q())if(n(o))Ke(e,t,o,r.hooks);else if(void 0===o&&!0!==r.required&&n(r.defaultValue))Ke(e,t,r.defaultValue,r.hooks);else{const n=new Set(i);r.required||n.add(null),((e,t,n,i)=>{he(`[${e.constructor.name}] The property value: (${n}) for '${t}' is not valid. Allowed values are: ${Array.from(i).join(", ")}`)})(e,t,o,n)}else void 0!==o?Ke(e,t,o,r.hooks):n(void 0)?Ke(e,t,void 0,r.hooks):!0!==r.required&&n(r.defaultValue)&&Ke(e,t,r.defaultValue,r.hooks)}const De=e=>{try{return JSON.stringify(e).replace(/"/g,"'")}catch(t){throw ce.warn(["stringifyJson",e]),ce.error("↑ The JSON could not be converted to a string. A stringifiable JSON is expected."),new Error}},Ge=/^[{[]/,Ye=e=>{if("string"==typeof e)try{return JSON.parse(e)}catch(t){if(Ge.test(e))try{return JSON.parse(e.replace(/'/g,'"'))}catch(t){ce.warn(["parseJson",e]),ce.error("↑ The JSON string could not be parsed. Make sure that single quotes in the text are escaped (‘).")}}throw new Error},Ve=(e,t)=>{if(!e)return;const n=new Set,i=[e];let o=0;for(;o<i.length;){const e=i[o++];if(n.has(e))continue;if(n.add(e),t(e))return;const r=Array.from(e.children||[]);for(let e=0;e<r.length;e++)i.push(r[e]);if(e instanceof HTMLElement&&e.shadowRoot&&i.push(e.shadowRoot),e instanceof HTMLSlotElement){const t=e.assignedNodes({flatten:!0});for(let e=0;e<t.length;e++)t[e]instanceof Element&&i.push(t[e])}}},Qe=(e,t)=>((e,t)=>{let n=null;return Ve(t,(t=>!!(t instanceof Element&&t.matches(e))&&(n=t,!0))),n})(e,t||D()),Xe=(e,t)=>((e,t)=>{const n=[];return Ve(t,(t=>(t instanceof Element&&t.matches(e)&&n.push(t),!1))),n})(e,t||D());let Ze=null;const et=()=>(Ze=Ze||{backgroundColor:"#00000000",color:"#00000000",domNode:D().body,level:"Fail",score:1},Ze),tt=/(\d+, ){3}0\)/,nt=(e,t=et())=>{const n=getComputedStyle(e),i=tt.test(n.backgroundColor)?t.backgroundColor:Ue.hex(n.backgroundColor),o=tt.test(n.color)?t.color:Ue.hex(n.color),r=Ie(i,o),l={backgroundColor:i,color:o,domNode:e,level:(s=r,s>=7?"AAA":s>=4.5?"AA":s>=3?"AA Large":"Fail"),score:r};var s;return r<4.5&&ce.error(["Color-Contrast-Error",{backgroundColor:l.backgroundColor,color:l.color,level:l.level,score:l.score},l.domNode]),l},it=(e,t=et())=>{t.domNode instanceof HTMLElement&&(t=nt(t.domNode,t));const n=t.domNode.querySelector(e);if(null===n){const n=t.domNode.querySelectorAll('[class="hydrated"]');for(let i=0;i<n.length&&(t.domNode=n[i],null===(t=it(e,t)).domNode);i++);return t}return nt(n,t)};class ot{static queryHtmlElementColors(e,t,n=!1,i=!0){let o=null;if(!0===n||!1===ot.executionLock)if(!1===n&&(ot.cache.clear(),ot.cache.set(t.domNode,t),ot.executionLock=!0,!0===i&&ce.debug("[KoliBriUtils] Color contrast analysis started...")),e===t.domNode)o=t;else{const n=new Set;if(t.domNode.shadowRoot){const e=t.domNode.shadowRoot.children;for(let t=0;t<e.length;t++)n.add(e[t])}const i=t.domNode;if("function"==typeof i.assignedNodes){const e=i.assignedNodes();for(let t=0;t<e.length;t++)e[t]instanceof HTMLElement&&n.add(e[t])}const r=t.domNode.children;for(let e=0;e<r.length;e++)n.add(r[e]);const l=Array.from(n);for(let n=0;n<l.length;n++){let i=ot.cache.get(l[n]);void 0===i&&(i=nt(l[n],t)),ot.cache.set(l[n],i);const r=ot.queryHtmlElementColors(e,i,!0,!1);if(null!==r){o=r;break}}}else ce.debug("[KoliBriUtils] Call aborted because a color contrast analysis is currently being executed.");return!1===n&&(!0===i&&ce.debug(`[KoliBriUtils] Color contrast analysis finished (${ot.cache.size} DOM elements are analysed).`),ot.executionLock=!1,ot.cache.clear()),o}}ot.executionLock=!1,ot.cache=new Map;class rt{}rt.getCssStyle=j,rt.patchTheme=(e,t,n,i)=>p(e,t,n,i),rt.patchThemeTag=(e,t,n,i)=>m(e,t,n,i),rt.querySelector=Qe,rt.querySelectorAll=Xe,rt.stringifyJson=De;const lt=e=>"object"==typeof e&&null!==e,st=(e,t=0)=>"string"==typeof e&&e.length>=t,at=e=>{if("object"!=typeof e||null===e)return st(e,1);for(const t in e)if(!1===st(t,1))return!1;return!0},ut=new Event("StateChange");var dt,ct,ft=e(ct?dt:(ct=1,dt=function(e){return function(t,n){if(!t)return e;var i;"string"==typeof t?i=t:n=t;var o=e;return i&&(o+="__"+i),o+(n?Object.keys(n).reduce((function(e,t){var i=n[t];return i&&(e+=" "+("boolean"==typeof i?o+"--"+t:o+"--"+t+"_"+i)),e}),""):"")}}));const mt=function(){const e=new Map,t=(t,n,i)=>{try{return e.get(t)(n,i)}catch{return e.set(t,ft(t)).get(t)(n,i)}};return t.forBlock=e=>{const n=(n,i)=>t(e,n,i);return n.forElement=n=>i=>t(e,n,i),n},t}(),pt={"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-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}},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-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-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-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{Ue as A,pt as B,Ie as C,Te as D,J as E,ne as F,at as G,st as H,We as I,Qe as J,B as K,ce as L,ee as M,nt as N,Xe as O,it as P,ot as Q,y as R,ut as S,K as T,De as U,oe as V,k as X,rt as a,mt as b,Ee as c,P as d,ge as e,ve as f,he as g,me as h,V as i,E as j,lt as k,we as l,$e as m,qe as n,Je as o,Ye as p,D as q,_e as r,Be as s,ie as t,Se as u,re as v,w,W as x,te as y,e as z}
|
|
4
|
+
function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var t,n,i,o={exports:{}},r=(t||(t=1,n=o.exports,i=function(){var e=function(){},t="undefined",n=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),i=["trace","debug","info","warn","error"],o={},r=null;function l(e,t){var n=e[t];if("function"==typeof n.bind)return n.bind(e);try{return Function.prototype.bind.call(n,e)}catch(t){return function(){return Function.prototype.apply.apply(n,[e,arguments])}}}function s(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function a(){for(var n=this.getLevel(),o=0;o<i.length;o++){var r=i[o];this[r]=o<n?e:this.methodFactory(r,n,this.name)}if(this.log=this.debug,typeof console===t&&n<this.levels.SILENT)return"No console available for logging"}function u(e){return function(){typeof console!==t&&(a.call(this),this[e].apply(this,arguments))}}function d(i,o,r){return function(i){return"debug"===i&&(i="log"),typeof console!==t&&("trace"===i&&n?s:void 0!==console[i]?l(console,i):void 0!==console.log?l(console,"log"):e)}(i)||u.apply(this,arguments)}function c(e,n){var l,s,u,c=this,f="loglevel";function m(){var e;if(typeof window!==t&&f){try{e=window.localStorage[f]}catch(e){}if(typeof e===t)try{var n=window.document.cookie,i=encodeURIComponent(f),o=n.indexOf(i+"=");-1!==o&&(e=/^([^;]+)/.exec(n.slice(o+i.length+1))[1])}catch(e){}return void 0===c.levels[e]&&(e=void 0),e}}function p(e){var t=e;if("string"==typeof t&&void 0!==c.levels[t.toUpperCase()]&&(t=c.levels[t.toUpperCase()]),"number"==typeof t&&t>=0&&t<=c.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?f+=":"+e:"symbol"==typeof e&&(f=void 0),c.name=e,c.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},c.methodFactory=n||d,c.getLevel=function(){return null!=u?u:null!=s?s:l},c.setLevel=function(e,n){return u=p(e),!1!==n&&function(e){var n=(i[e]||"silent").toUpperCase();if(typeof window!==t&&f){try{return void(window.localStorage[f]=n)}catch(e){}try{window.document.cookie=encodeURIComponent(f)+"="+n+";"}catch(e){}}}(u),a.call(c)},c.setDefaultLevel=function(e){s=p(e),m()||c.setLevel(e,!1)},c.resetLevel=function(){u=null,function(){if(typeof window!==t&&f){try{window.localStorage.removeItem(f)}catch(e){}try{window.document.cookie=encodeURIComponent(f)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),a.call(c)},c.enableAll=function(e){c.setLevel(c.levels.TRACE,e)},c.disableAll=function(e){c.setLevel(c.levels.SILENT,e)},c.rebuild=function(){if(r!==c&&(l=p(r.getLevel())),a.call(c),r===c)for(var e in o)o[e].rebuild()},l=p(r?r.getLevel():"WARN");var g=m();null!=g&&(u=p(g)),a.call(c)}(r=new c).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=o[e];return t||(t=o[e]=new c(e,r.methodFactory)),t};var f=typeof window!==t?window.log:void 0;return r.noConflict=function(){return typeof window!==t&&window.log===r&&(window.log=f),r},r.getLoggers=function(){return o},r.default=r,r},o.exports?o.exports=i():n.log=i()),o.exports),l=e(r);const s={A11yUi:{CSS_STYLE_CACHE:new Map,FEATURES:{},IS_TEST_ENVIRONMENT:(()=>{const e=typeof process<"u"&&process.env?process.env:{},t="test"===e.NODE_ENV,n="VITEST"in e,i="JEST_WORKER_ID"in e,o="PLAYWRIGHT_TEST_BASE_URL"in e,r="true"===e.CI,l="true"===e.TEST||"true"===e.IS_TEST,s=typeof navigator<"u"&&!0===navigator.webdriver,a=typeof navigator<"u"&&/playwright|puppeteer|webdriver|selenium|testcafe/i.test(navigator.userAgent);return t||n||i||o||r||l||s||a})(),PERFORMANCE_MEASURES:new Map,STYLING_TASK_QUEUE:new Map,THEMES:new Map,THEME_FEATURES:{},showAverageTimes:()=>{const e={};for(const[t,n]of s.A11yUi.PERFORMANCE_MEASURES.entries())e[t]=[n.totalTime/n.count,n.count];const t=Object.entries(e).sort(((e,t)=>t[1][0]-e[1][0]));return console.table(Object.fromEntries(t.map((([e,[t,n]])=>[e,{"avg (ms)":parseFloat(t.toFixed(2)),count:n}])))),e}}};let a=!0,u=!1;const d=/^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/,c=e=>{if(!(e=>"string"==typeof e&&d.test(e))(e))throw new Error(`[Theming] The theme identifier "${"string"==typeof e?e:""}" (Type: ${typeof e}) is not valid. Please use only follow this pattern: /^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/`)},f=e=>e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s*([{},;])\s*/g,"$1").replace(/:\s+/g,":").replace(/\s+/g," ").replace(/;\}/g,"}").trim(),m=(e,t,n,i)=>{(i=i??{}).append=i.append??!1,c(e),a&&!u&&(u=!0,l.warn(`[Theming] The theme process is locked. This means that the theme "${e}" should not be patched.\n\n import { register } from 'adopted-style-sheets';\n import { defineCustomElements } from '...';\n import { THEME } from '...';\n\n register(THEME, defineCustomElements)\n .then(() => {\n // run your app or website\n })\n .catch(console.warn);`));let o=s.A11yUi.THEMES.get(e);if(o||(o=new Map,s.A11yUi.THEMES.set(e,o)),i.append&&o.has(t)){const e=o.get(t);o.set(t,f(`${e}${n}`))}else o.set(t,f(n))},p=(e,t,n,i)=>(c(e),"object"==typeof t&&null!==t&&Object.getOwnPropertyNames(t).forEach((o=>{const r=t[o],l=o.toLowerCase(),s="function"!=typeof i?.transformTagName||["GLOBAL","PROPERTIES"].includes(o)?o:i.transformTagName(l);"string"==typeof r&&r.length>0&&m(e,s.toUpperCase(),r,n)})),e),g=e=>{if(e instanceof HTMLElement){if("string"==typeof e.dataset.theme)return e;{let t=e.parentNode;for(;typeof ShadowRoot<"u"&&t instanceof ShadowRoot;)t=t.host;return g(t)}}return null},b=(e={})=>"false"!==e.themeEncroachCss&&"true"!==e.themeReset&&{mode:"after"===e.themeEncroachCssMode||"before"===e.themeEncroachCssMode?e.themeEncroachCssMode:"before"},h=()=>"object"==typeof s.A11yUi.Theme&&null!==s.A11yUi.Theme&&"boolean"==typeof s.A11yUi.Theme.cache&&"object"==typeof s.A11yUi.Theme.encroachCss&&null!==s.A11yUi.Theme.encroachCss&&"string"==typeof s.A11yUi.Theme.encroachCss.mode&&"string"==typeof s.A11yUi.Theme.name,w=e=>{if(h())return s.A11yUi.Theme;{const t={cache:!0,encroachCss:b(),loglevel:"silent",mode:"csr",name:null},n=g(e);return n instanceof HTMLElement&&(t.cache="false"!==n.dataset.themeCache,t.encroachCss=b(n.dataset),t.loglevel="debug"===n.dataset.themeLoglevel?n.dataset.themeLoglevel:"silent",t.mode="ssr"===n.dataset.themeMode?n.dataset.themeMode:"csr",t.name=n.dataset.theme||null),t}},y=()=>h()?s.A11yUi.Theme.name:null,v=(...e)=>{const t={};for(const n of e)n&&Object.assign(t,n);return t},k=(e,t)=>{const n=s.A11yUi.FEATURES[e];if(void 0!==n)return n;const i=(e=>w(e).name)(t??null)??y();if(null!==i){const t=s.A11yUi.THEME_FEATURES[i];if(t&&void 0!==t[e])return t[e]}};let S=!1;const E=(e,t,n={})=>{S||(S=!0,a=!1,typeof window<"u"&&(window.A11yUi=s.A11yUi)),"function"==typeof e?e=new Set([e]):Array.isArray(e)&&(e=new Set(e)),e instanceof Set&&e.forEach((e=>{"function"==typeof e&&1===e.length?((e,t)=>{!1===h()&&("object"!=typeof s.A11yUi.Theme||null===s.A11yUi.Theme||"default"!==s.A11yUi.Theme.name)&&"object"==typeof t&&null!==t&&(t=((e,t)=>({cache:!1!==t.cache,detect:"auto"===t.detect?"auto":"fixed",encroachCss:!1!==t.encroachCss&&("object"!=typeof t.encroachCss||null==t.encroachCss||"after"!==t.encroachCss.mode&&"before"!==t.encroachCss.mode?{mode:"before"}:t.encroachCss),loglevel:"debug"===t.loglevel?t.loglevel:"silent",mode:"ssr"===t.mode?t.mode:"csr",name:"string"==typeof t.name?t.name:e}))(e,t),"fixed"===t.detect?(null===t.name&&"string"==typeof e&&(t.name=e),e===t.name&&(s.A11yUi.Theme=t,l.info(`[Theming] Theme "${e}" was set as default theme.`))):u||(u=!0,l.warn("[Theming] The presetting of theme options is only relevant by using 'fixed' detection mode.")))})(e(((e,t,i,o)=>(o&&(s.A11yUi.THEME_FEATURES[e]=v(s.A11yUi.THEME_FEATURES[e],o)),p(e,t,i,n)))),{cache:n.theme?.cache,detect:n.theme?.detect,encroachCss:n.theme?.encroachCss,mode:n.theme?.mode,name:n.theme?.name}):l.error("[Theming] An attempt was made to load an incompatible theme.")})),a=!0,n.features&&(s.A11yUi.FEATURES=v(s.A11yUi.FEATURES,n.features)),"function"==typeof t?t=new Set([t]):Array.isArray(t)&&(t=new Set(t));const i=[];return t.forEach((e=>{const t=e();t instanceof Promise&&i.push(t)})),Promise.all(i)},T=new Set,M=new Map,A=/--[^;]+/g,x=/:/,N=typeof MutationObserver<"u";let O=25,L=()=>{O=Math.min(25+20*Math.log2(s.A11yUi.STYLING_TASK_QUEUE.size+1),250)};const j=(e,t)=>{const n=s.A11yUi.THEMES.get(e);if(n instanceof Map){const e=n.get(t);if(void 0!==e)return e}return""},C=(e,t,n,i)=>{const o="debug"===s.A11yUi.Theme?.loglevel,r=o?performance.now():0;if((e=>{const t=e.firstChild;if(t instanceof HTMLStyleElement&&void 0===t.dataset.themingFallback)for(const t of Array.from(e.childNodes)){if(!(t instanceof HTMLStyleElement&&"STYLE"===t.tagName&&void 0===t.dataset.themingFallback))break;e.removeChild(t)}})(t),((e,t)=>{try{if("ssr"===s.A11yUi.Theme?.mode)throw new Error("SSR");const n=t.filter((e=>"string"==typeof e&&e.length>0)).map((e=>{let t=M.get(e);return t||(t=new CSSStyleSheet,t.replaceSync(e),M.set(e,t)),t}));e.adoptedStyleSheets=n}catch{for(let n=t.length-1;n>=0;n--){const i=t[n];if("string"!=typeof i||0===i.length)continue;const o=t.length-1-n,r=document.createElement("style");switch(r.dataset.themingFallback="",o){case 4:r.dataset.themingBaseA11y="";break;case 3:r.dataset.themingBaseGlobal="";break;case 2:r.dataset.themingBaseComponent="";break;case 1:r.dataset.themingCustomGlobal="";break;case 0:r.dataset.themingCustomComponent="";break;default:r.dataset.themingUnknown=""}r.innerHTML=i,e.insertBefore(r,e.firstChild)}}})(t,n),U(e),requestAnimationFrame(i),o){const t=performance.now()-r,n=s.A11yUi.PERFORMANCE_MEASURES.get(e.tagName);n?(n.count+=1,n.totalTime+=t):s.A11yUi.PERFORMANCE_MEASURES.set(e.tagName,{count:1,totalTime:t})}},I=e=>{const t=s.A11yUi.STYLING_TASK_QUEUE.get(e);if(t){const{resetCss:n,themeDetails:i}=t;((e,t,n)=>{const i=t.name||"default";let o;try{if(null===e.shadowRoot)throw new Error("ShadowRoot is null");o=e.shadowRoot}catch{o=e}const r=s.A11yUi.CSS_STYLE_CACHE.get(i)?.get(e.tagName);if(r)C(e,o,r,n);else{const r=j(i,"PROPERTIES"),l=j(i,"GLOBAL"),a=j(i,e.tagName);!1===T.has(i)&&((e,t)=>{let n=t.match(A);if(Array.isArray(n)){n=n.filter((e=>x.test(e)));const t=document.createElement("style");t.innerHTML=`.${e} {${n.join(";")}}`,document.querySelector("head")?.appendChild(t)}T.add(e)})(i,l);const u=[r,l,a];if(((e,t,n)=>{if(!1===n||"before"!==n?.mode&&"after"!==n?.mode)return;const i=Array.from(e.childNodes).filter((e=>e instanceof HTMLStyleElement&&"STYLE"===e.tagName));let o;try{o=Array.from(e.adoptedStyleSheets)}catch{o=[]}if(0!==i.length||0!==o.length)if("before"===n.mode){const e=[...o.map((e=>Array.from(e.cssRules).map((e=>e.cssText)).join(""))),...i.map((e=>e.innerHTML))];t.unshift(...e)}else i.forEach((e=>t.push(e.innerHTML))),o.forEach((e=>t.push(Array.from(e.cssRules).map((e=>e.cssText)).join(""))))})(o,u,t.encroachCss),!0===t.cache){let t=s.A11yUi.CSS_STYLE_CACHE.get(i);t||(t=new Map,s.A11yUi.CSS_STYLE_CACHE.set(i,t)),t.set(e.tagName,u)}C(e,o,u,n)}})(e,i,n)}};let R=(e,t=0)=>{if(t>=100)return;const n=setTimeout((()=>{clearTimeout(n),e.classList.contains("hydrated")?I(e):R(e,t+1)}),O)};const $={attributes:!0,attributeFilter:["class"],childList:!1,subtree:!1},_={attributes:!0,attributeFilter:[],childList:!1,subtree:!1},q=N?new MutationObserver(((e,t)=>{const n=[];for(const t of e){const e=t.target;e.classList.contains("hydrated")&&s.A11yUi.STYLING_TASK_QUEUE.has(e)&&(I(e),n.push(e))}for(const e of n)t.observe(e,_)})):null;q&&(R=e=>q.observe(e,$),L=()=>{});const F=new Map;let z=(e,t)=>{if(t){const e=F.get(t);if(void 0!==e)return e}const n=getComputedStyle(e).getPropertyValue("--theme-visibility-delay").trim();let i;if(n.endsWith("ms"))i=parseFloat(n);else if(n.endsWith("s"))i=1e3*parseFloat(n);else{const e=parseFloat(n);i=isNaN(e)?0:e}return t&&F.set(t,i),i};s.A11yUi.IS_TEST_ENVIRONMENT&&(z=()=>0);const H=(e,t)=>{e.style.setProperty("visibility",t),e.dataset.themed=""},U=e=>{s.A11yUi.STYLING_TASK_QUEUE.delete(e),L()},P=(e,t)=>{((e,t)=>{const n=e.style.visibility||null,i=t.name||"default";s.A11yUi.STYLING_TASK_QUEUE.set(e,{resetCss:()=>{const t=z(e,i);t>0?setTimeout((()=>{H(e,n)}),t):H(e,n)},themeDetails:t}),"ssr"!==t.mode&&e.style.setProperty("visibility","hidden","important"),R(e)})(e,{...s.A11yUi.Theme,...t})};class J{Prefix;Key;Tag;createTheme=(e,t,n)=>((e,t,n)=>i=>i(e,t,{append:!1},n))(e,t,n);createTranslation=(e,t)=>((e,t)=>n=>n(e,t))(e,t);constructor(e,t,n){this.Prefix=e,this.Key=Object.getOwnPropertyNames(t),this.Tag=Object.getOwnPropertyNames(n)}}var B,K;!function(e){e[e["action-done"]=0]="action-done",e[e["action-running"]=1]="action-running",e[e["avatar-alt"]=2]="avatar-alt",e[e["character-counter-current"]=3]="character-counter-current",e[e["character-counter-current-of-max"]=4]="character-counter-current-of-max",e[e["character-counter-current-of-max-aria"]=5]="character-counter-current-of-max-aria",e[e["character-counter-max-aria"]=6]="character-counter-max-aria",e[e["character-limit-exceeded"]=7]="character-limit-exceeded",e[e["character-limit-hint"]=8]="character-limit-hint",e[e["character-limit-remaining"]=9]="character-limit-remaining",e[e["clear-search"]=10]="clear-search",e[e.close=11]="close",e[e["close-alert"]=12]="close-alert",e[e["data-browse-text"]=13]="data-browse-text",e[e["delete-selection"]=14]="delete-selection",e[e["entries-per-site"]=15]="entries-per-site",e[e.error=16]="error",e[e["error-list"]=17]="error-list",e[e["error-list-message"]=18]="error-list-message",e[e["filename-text"]=19]="filename-text",e[e["form-description"]=20]="form-description",e[e["hide-password"]=21]="hide-password",e[e.info=22]="info",e[e["kolibri-logo"]=23]="kolibri-logo",e[e["live-value"]=24]="live-value",e[e["live-value-bounded"]=25]="live-value-bounded",e[e.message=26]="message",e[e["meter-state-critical"]=27]="meter-state-critical",e[e["meter-state-optimum"]=28]="meter-state-optimum",e[e["meter-state-suboptimal"]=29]="meter-state-suboptimal",e[e["nav-maximize"]=30]="nav-maximize",e[e["nav-minimize"]=31]="nav-minimize",e[e.new=32]="new",e[e["no-entries"]=33]="no-entries",e[e["no-results-message"]=34]="no-results-message",e[e["open-link-in-tab"]=35]="open-link-in-tab",e[e.page=36]="page",e[e["page-back"]=37]="page-back",e[e["page-first"]=38]="page-first",e[e["page-last"]=39]="page-last",e[e["page-next"]=40]="page-next",e[e.pagination=41]="pagination",e[e["pagination-position-bottom"]=42]="pagination-position-bottom",e[e["pagination-position-top"]=43]="pagination-position-top",e[e.progress=44]="progress",e[e.readonly=45]="readonly",e[e["show-password"]=46]="show-password",e[e["show-suggestions"]=47]="show-suggestions",e[e.sort=48]="sort",e[e["split-button-dropdown-label-open"]=49]="split-button-dropdown-label-open",e[e.success=50]="success",e[e["table-data-loading"]=51]="table-data-loading",e[e["table-data-loaded"]=52]="table-data-loaded",e[e["table-pagination-label"]=53]="table-pagination-label",e[e["table-selection"]=54]="table-selection",e[e["table-selection-all"]=55]="table-selection-all",e[e["table-selection-indeterminate"]=56]="table-selection-indeterminate",e[e["table-selection-none"]=57]="table-selection-none",e[e["table-settings"]=58]="table-settings",e[e["table-settings-apply"]=59]="table-settings-apply",e[e["table-settings-cancel"]=60]="table-settings-cancel",e[e["table-settings-column-hidable"]=61]="table-settings-column-hidable",e[e["table-settings-column-not-hidable"]=62]="table-settings-column-not-hidable",e[e["table-settings-column-width"]=63]="table-settings-column-width",e[e["table-settings-error-all-invisible"]=64]="table-settings-error-all-invisible",e[e["table-settings-move-down"]=65]="table-settings-move-down",e[e["table-settings-move-up"]=66]="table-settings-move-up",e[e["table-settings-not-move"]=67]="table-settings-not-move",e[e["table-sort-order"]=68]="table-sort-order",e[e["table-visible-range"]=69]="table-visible-range",e[e["toast-close-all"]=70]="toast-close-all",e[e.version=71]="version",e[e.warning=72]="warning"}(B||(B={})),function(e){e[e.abbr=0]="abbr",e[e.accordion=1]="accordion",e[e.alert=2]="alert",e[e.avatar=3]="avatar",e[e.badge=4]="badge",e[e.breadcrumb=5]="breadcrumb",e[e.button=6]="button",e[e["button-link"]=7]="button-link",e[e.card=8]="card",e[e.combobox=9]="combobox",e[e.details=10]="details",e[e.dialog=11]="dialog",e[e.drawer=12]="drawer",e[e.form=13]="form",e[e.heading=14]="heading",e[e.icon=15]="icon",e[e.image=16]="image",e[e["input-checkbox"]=17]="input-checkbox",e[e["input-color"]=18]="input-color",e[e["input-date"]=19]="input-date",e[e["input-email"]=20]="input-email",e[e["input-file"]=21]="input-file",e[e["input-number"]=22]="input-number",e[e["input-password"]=23]="input-password",e[e["input-radio"]=24]="input-radio",e[e["input-range"]=25]="input-range",e[e["input-text"]=26]="input-text",e[e.kolibri=27]="kolibri",e[e.link=28]="link",e[e["link-button"]=29]="link-button",e[e.logo=30]="logo",e[e.meter=31]="meter",e[e.modal=32]="modal",e[e.nav=33]="nav",e[e.pagination=34]="pagination",e[e["popover-button"]=35]="popover-button",e[e.progress=36]="progress",e[e.quote=37]="quote",e[e.select=38]="select",e[e["single-select"]=39]="single-select",e[e["skip-nav"]=40]="skip-nav",e[e.spin=41]="spin",e[e["split-button"]=42]="split-button",e[e.symbol=43]="symbol",e[e.table=44]="table",e[e["table-stateful"]=45]="table-stateful",e[e["table-stateless"]=46]="table-stateless",e[e.tabs=47]="tabs",e[e.textarea=48]="textarea",e[e["toast-container"]=49]="toast-container",e[e.toolbar=50]="toolbar",e[e.tooltip=51]="tooltip",e[e.tree=52]="tree",e[e["tree-item"]=53]="tree-item",e[e.version=54]="version"}(K||(K={}));const W=()=>"undefined"!=typeof window?window:{},D=()=>{const e=W();return e&&void 0!==e.document?e.document:{}},G=["development","production","test"];let Y="production";const V=e=>{try{if(!G.includes(e))throw new Error(`Invalid NODE_ENV value: ${e}. Expected one of ${G.join(", ")}.`);Y=e}catch(e){Y="production"}},Q=()=>{try{return"undefined"!=typeof process&&process.env?process.env.NODE_ENV:void 0}catch(e){return}};V((()=>{const e=Q();return e&&G.includes(e)?e:"production"})());let X=!1,Z=!1;const ee=()=>"development"===Y,te=()=>"test"===Y,ne=()=>!0===X,ie=e=>{X=!0===e},oe=()=>!0===Z,re=e=>{Z=!0===e},le=e=>Array.isArray(e)?e:[e],se=e=>`%c${e}`,ae=(e,t)=>"string"==typeof t&&t.length>0?`${se(e)} | ${t}`:se(e),ue=(e,t)=>[ae(e,null==t?void 0:t.classifier),`color: white; background: #666; font-weight: bold; padding: .25em .5em; border-radius: 3px; border: 1px solid #000;${(null==t?void 0:t.overwriteStyle)||""}`],de=e=>ee()||!0===e,ce=new class{constructor(e){this.label=e}debug(e,t){de(null==t?void 0:t.forceLog)&&console.debug(...ue(this.label,t),...le(e))}info(e,t){de(null==t?void 0:t.forceLog)&&console.info(...ue(this.label,t),...le(e))}trace(e,t){de(null==t?void 0:t.forceLog)&&console.trace(...ue(this.label,t),...le(e))}warn(e,t){de(null==t?void 0:t.forceLog)&&console.warn(...ue(this.label,t),...le(e))}error(e,t){console.error(...ue(this.label,t),...le(e))}throw(e,t){if(de(null==t?void 0:t.forceLog))throw new Error(...ue(this.label,t),...le(e))}}("KoliBri"),fe=new Set,me=e=>{!1===fe.has(e)&&(fe.add(e),ce.debug([e].concat([]),{classifier:"✋ a11y",forceLog:!1,overwriteStyle:"; background-color: #09f"}))},pe=new Set,ge=e=>{!1===pe.has(e)&&(pe.add(e),ce.warn([e].concat([]),{classifier:"🔥 deprecated",forceLog:!1,overwriteStyle:"; background-color: #f00"}))},be=new Set,he=(e,t)=>{(!1===be.has(e)||(null==t?void 0:t.force))&&(be.add(e),ce.debug([e].concat((null==t?void 0:t.details)||[]),{classifier:"💻 dev",forceLog:!!(null==t?void 0:t.force),overwriteStyle:"; background-color: #f09"}))},we=e=>{!1===be.has(e)&&(be.add(e),ce.warn([e].concat([]),{classifier:"⚠️ dev",forceLog:!1,overwriteStyle:"; background-color: #f09"}))},ye=new Set,ve=(e,t=!1)=>{!1===ye.has(e)&&(ye.add(e),ce.debug([e+=!0===t?" ✅":""].concat([]),{classifier:"🌟 feature",forceLog:!1,overwriteStyle:"; background-color: #309"}))};he("We appreciate any feedback, comments, screenshots, or demo links of an application based on KoliBri (kolibri@itzbund.de). Thank you!");const ke=new Set,Se=e=>{!1===ke.has(e)&&(ke.add(e),ce.debug([e].concat([]),{classifier:"📑 ui/ux",forceLog:!1,overwriteStyle:"; background-color: #060;"}))},Ee=e=>{"string"==typeof e&&""!==e||me("Some structural elements, such as the nav tag, can be used multiple times on a webpage. To distinguish between similarly named structural elements, it is necessary to set an ARIA label.\n- https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Navigation_Role#accessibility_concerns")},Te=(e,t=8)=>{t>7&&Se(`[${e}] Within navigation structures, it is recommended to use no more than 7 menu items.\n\nLink:\n- https://en.wikipedia.org/wiki/The_Magical_Number_Seven,_Plus_or_Minus_Two`)};var Me,Ae,xe,Ne,Oe=1/12.92;function Le(e){return Math.pow((e+.055)/1.055,2.4)}function je(e){var t=e[0]/255,n=e[1]/255,i=e[2]/255;return.2126*(t<=.03928?t*Oe:Le(t))+.7152*(n<=.03928?n*Oe:Le(n))+.0722*(i<=.03928?i*Oe:Le(i))}function Ce(e){var t=255;8===(e=e.replace(/^#/,"")).length&&(t=parseInt(e.slice(6,8),16),e=e.substring(0,6)),4===e.length&&(t=parseInt(e.slice(3,4).repeat(2),16),e=e.substring(0,3)),3===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);var n=parseInt(e,16);return[n>>16,n>>8&255,255&n,t]}function Ie(e,t){return function(e,t){return function(e,t){return(Math.max(e,t)+.05)/(Math.min(e,t)+.05)}(je(e),je(t))}(Ce(e),Ce(t))}var Re=function(){if(Ne)return xe;Ne=1;var e=Ae?Me:(Ae=1,Me={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]});xe=function(n){var i,o,r=[],l=1;if("string"==typeof n)if(n=n.toLowerCase(),e[n])r=e[n].slice(),o="rgb";else if("transparent"===n)l=0,o="rgb",r=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(n)){var s=n.slice(1);l=1,(d=s.length)<=4?(r=[parseInt(s[0]+s[0],16),parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16)],4===d&&(l=parseInt(s[3]+s[3],16)/255)):(r=[parseInt(s[0]+s[1],16),parseInt(s[2]+s[3],16),parseInt(s[4]+s[5],16)],8===d&&(l=parseInt(s[6]+s[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),o="rgb"}else if(i=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(n)){var a=i[1],u="rgb"===a;o=s=a.replace(/a$/,"");var d="cmyk"===s?4:"gray"===s?1:3;r=i[2].trim().split(/\s*[,\/]\s*|\s+/).map((function(e,n){if(/%$/.test(e))return n===d?parseFloat(e)/100:"rgb"===s?255*parseFloat(e)/100:parseFloat(e);if("h"===s[n]){if(/deg$/.test(e))return parseFloat(e);if(void 0!==t[e])return t[e]}return parseFloat(e)})),a===s&&r.push(1),l=u||void 0===r[d]?1:r[d],r=r.slice(0,d)}else n.length>10&&/[0-9](?:\s|\/)/.test(n)&&(r=n.match(/([0-9]+)/g).map((function(e){return parseFloat(e)})),o=n.match(/([a-z])/gi).join("").toLowerCase());else isNaN(n)?Array.isArray(n)||n.length?(r=[n[0],n[1],n[2]],o="rgb",l=4===n.length?n[3]:1):n instanceof Object&&(null!=n.r||null!=n.red||null!=n.R?(o="rgb",r=[n.r||n.red||n.R||0,n.g||n.green||n.G||0,n.b||n.blue||n.B||0]):(o="hsl",r=[n.h||n.hue||n.H||0,n.s||n.saturation||n.S||0,n.l||n.lightness||n.L||n.b||n.brightness]),l=n.a||n.alpha||n.opacity||1,null!=n.opacity&&(l/=100)):(o="rgb",r=[n>>>16,(65280&n)>>>8,255&n]);return{space:o,values:r,alpha:l}};var t={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};return xe}(),$e=e(Re);const _e={min:[0,0,0],max:[255,255,255]};var qe={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t,n,i,o,r,l=e[0]/360,s=e[1]/100,a=e[2]/100,u=0;if(0===s)return[r=255*a,r,r];for(t=2*a-(n=a<.5?a*(1+s):a+s-a*s),o=[0,0,0];u<3;)(i=l+1/3*-(u-1))<0?i++:i>1&&i--,o[u++]=255*(r=6*i<1?t+6*(n-t)*i:2*i<1?n:3*i<2?t+(n-t)*(2/3-i)*6:t);return o}};_e.hsl=function(e){var t,n,i=e[0]/255,o=e[1]/255,r=e[2]/255,l=Math.min(i,o,r),s=Math.max(i,o,r),a=s-l;return s===l?t=0:i===s?t=(o-r)/a:o===s?t=2+(r-i)/a:r===s&&(t=4+(i-o)/a),(t=Math.min(60*t,360))<0&&(t+=360),n=(l+s)/2,[t,100*(s===l?0:n<=.5?a/(s+l):a/(2-s-l)),100*n]};var Fe,ze={exports:{}},He=function(){if(Fe)return ze.exports;function e(e){var n=t(e);return 3==n.length?n.concat(255):(n[3]=Math.round(n[3]),n)}function t(e){return"string"==typeof e?("red"==(t=e=e.toLowerCase())?[255,0,0]:"green"==t?[0,255,0]:"blue"==t?[0,0,255]:"black"==t?[0,0,0]:"white"==t?[255,255,255]:"cyan"==t?[0,255,255]:"gray"==t||"grey"==t?[128,128,128]:"magenta"==t||"pink"==t?[255,0,255]:"yellow"==t?[255,255,0]:void 0)||function(e){var t=e.replace(/^#/,""),n=t.length;if(3==n||4==n){var o=i(t[0]),r=i(t[1]),l=i(t[2]),s=3==n?255:i(t[3]);if(isNaN(o)||isNaN(r)||isNaN(l)||isNaN(s))return;return[o,r,l,s]}}(e)||function(e){var t=e.replace(/^#/,""),n=t.length;if(6==n||8==n){var o=i(t.slice(0,2)),r=i(t.slice(2,4)),l=i(t.slice(4,6)),s=6==n?255:i(t.slice(6,8));if(isNaN(o)||isNaN(r)||isNaN(l)||isNaN(s))return;return[o,r,l,s]}}(e)||function(e){if("rgb("==e.substr(0,4)){var t=(e=e.match(/^rgb\(([^)]+)\)/)[1]).split(/ *, */).map(Number),n=o(t[0],!0),i=o(t[1],!0),r=o(t[2],!0);if(-1!=n&&-1!=i&&-1!=r)return[n,i,r,255]}}(e)||function(e){if("rgba("==e.substr(0,5)){var t=(e=e.match(/^rgba\(([^)]+)\)/)[1]).split(/ *, */).map(Number),n=o(t[0],!0),i=o(t[1],!0),r=o(t[2],!0),l=o(255*t[3]);if(-1!=n&&-1!=i&&-1!=r&&-1!=l)return[n,i,r,l]}}(e)||[0,0,0,255]:function(e){if("[object Object]"===Object.prototype.toString.call(e)&&Object.getPrototypeOf(e)===Object.getPrototypeOf({})){var t=o(null!=e.r?e.r:null!=e.red?e.red:0,!0),n=o(null!=e.g?e.g:null!=e.green?e.green:0,!0),i=o(null!=e.b?e.b:null!=e.blue?e.blue:0,!0),r=o(null!=e.a?e.a:null!=e.alpha?e.alpha:255,!0);if(-1!=t&&-1!=n&&-1!=i&&-1!=r)return[t,n,i,r]}}(e)||function(e){if(Array.isArray(e)&&(3==e.length||4==e.length)){var t=o(e[0],!0),n=o(e[1],!0),i=o(e[2],!0),r=o(null!=e[3]?e[3]:255,!0);if(-1!=t&&-1!=n&&-1!=i&&-1!=r)return[t,n,i,r]}}(e)||function(e){if("number"==typeof e&&Math.floor(e)==e&&e<=4294967295&&e>=0)return[e>>16&255,e>>8&255,255&e,e>>24&255]}(e)||[0,0,0,255];var t}function n(e){var t=e.toString(16);return 1==t.length?"0"+t:t}function i(e){return 1==e.length?parseInt(e+e,16):parseInt(e,16)}function o(e,t){return"number"!=typeof e||!0===t&&Math.floor(e)!==e?-1:e>=0&&e<=255?e:-1}return Fe=1,ze.exports=e,ze.exports.arr=e,ze.exports.obj=function(e){var n=t(e);return{r:n[0],g:n[1],b:n[2],a:3==n.length?255:Math.round(n[3])}},ze.exports.css=function(e){var n=t(e);return 3==n.length&&n.push(255),255==n[3]?"rgb("+n[0]+", "+n[1]+", "+n[2]+")":0==n[3]?"rgba("+n[0]+", "+n[1]+", "+n[2]+", 0)":"rgba("+n[0]+", "+n[1]+", "+n[2]+", "+String(n[3]/255).substr(1)+")"},ze.exports.hex=function(e){var i=t(e);3==i.length&&i.push(255);var o=255==i[3],r=n(i[0]),l=n(i[1]),s=n(i[2]),a=function(e,t,n,i){var o=["ff","00","11","22","33","44","55","66","77","88","99","aa","bb","cc","dd","ee"];return-1!=o.indexOf(e)&&-1!=o.indexOf(t)&&-1!=o.indexOf(n)&&-1!=o.indexOf(i)}(r,l,s,i=n(Math.round(i[3])));return o?a?"#"+r.charAt(0)+l.charAt(0)+s.charAt(0):"#"+r+l+s:a?"#"+r.charAt(0)+l.charAt(0)+s.charAt(0)+i.charAt(0):"#"+r+l+s+i},ze.exports.num=function(e){var n=t(e);return 3==n.length?n.push(255):n[3]=Math.round(n[3]),(n[3]<<24>>>0|n[0]<<16|n[1]<<8|n[2])>>>0},ze.exports}(),Ue=e(He);const Pe=/\[object Object\]/,Je=(e,t)=>{"string"==typeof e&&Pe.test(e)||t()},Be=(e,t)=>{ne()&&(ce.debug([e,t]),ce.debug("↑ We propagate the (submit) event to this target.")),Object.defineProperty(e,"target",{value:t,writable:!1})},Ke=(e,t,n,i={})=>{var o,r;void 0===e.nextHooks&&(e.nextHooks=new Map),void 0===e.nextState&&(e.nextState=new Map),e.nextHooks.get(t)instanceof Map==0&&e.nextHooks.set(t,new Map),"function"==typeof i.afterPatch&&(null===(o=e.nextHooks.get(t))||void 0===o||o.set("afterPatch",i.afterPatch)),"function"==typeof i.beforePatch&&(null===(r=e.nextHooks.get(t))||void 0===r||r.set("beforePatch",i.beforePatch)),e.nextState.set(t,n),(e=>{var t,n,i;null===(t=e.nextHooks)||void 0===t||t.forEach(((t,n)=>{var i;const o=t.get("beforePatch");"function"==typeof o&&o(null===(i=e.nextState)||void 0===i?void 0:i.get(n),e.nextState,e,n)})),(null===(n=e.nextState)||void 0===n?void 0:n.size)>0&&(e.state=Object.assign(Object.assign({},e.state),Object.fromEntries(e.nextState)),delete e.nextState,null===(i=e.nextHooks)||void 0===i||i.forEach(((t,n)=>{const i=t.get("afterPatch");"function"==typeof i&&i(e.state[n],e.state,e,n)}))),delete e.nextHooks})(e)};function We(e,t,n,i,o,r={}){if("production"!==Y||"production"!==Q())if(n(o))Ke(e,t,o,r.hooks);else if(void 0===o&&!0!==r.required&&n(r.defaultValue))Ke(e,t,r.defaultValue,r.hooks);else{const n=new Set(i);r.required||n.add(null),((e,t,n,i)=>{he(`[${e.constructor.name}] The property value: (${n}) for '${t}' is not valid. Allowed values are: ${Array.from(i).join(", ")}`)})(e,t,o,n)}else void 0!==o?Ke(e,t,o,r.hooks):n(void 0)?Ke(e,t,void 0,r.hooks):!0!==r.required&&n(r.defaultValue)&&Ke(e,t,r.defaultValue,r.hooks)}const De=e=>{try{return JSON.stringify(e).replace(/"/g,"'")}catch(t){throw ce.warn(["stringifyJson",e]),ce.error("↑ The JSON could not be converted to a string. A stringifiable JSON is expected."),new Error}},Ge=/^[{[]/,Ye=e=>{if("string"==typeof e)try{return JSON.parse(e)}catch(t){if(Ge.test(e))try{return JSON.parse(e.replace(/'/g,'"'))}catch(t){ce.warn(["parseJson",e]),ce.error("↑ The JSON string could not be parsed. Make sure that single quotes in the text are escaped (‘).")}}throw new Error},Ve=(e,t)=>{if(!e)return;const n=new Set,i=[e];let o=0;for(;o<i.length;){const e=i[o++];if(n.has(e))continue;if(n.add(e),t(e))return;const r=Array.from(e.children||[]);for(let e=0;e<r.length;e++)i.push(r[e]);if(e instanceof HTMLElement&&e.shadowRoot&&i.push(e.shadowRoot),e instanceof HTMLSlotElement){const t=e.assignedNodes({flatten:!0});for(let e=0;e<t.length;e++)t[e]instanceof Element&&i.push(t[e])}}},Qe=(e,t)=>((e,t)=>{let n=null;return Ve(t,(t=>!!(t instanceof Element&&t.matches(e))&&(n=t,!0))),n})(e,t||D()),Xe=(e,t)=>((e,t)=>{const n=[];return Ve(t,(t=>(t instanceof Element&&t.matches(e)&&n.push(t),!1))),n})(e,t||D());let Ze=null;const et=()=>(Ze=Ze||{backgroundColor:"#00000000",color:"#00000000",domNode:D().body,level:"Fail",score:1},Ze),tt=/(\d+, ){3}0\)/,nt=(e,t=et())=>{const n=getComputedStyle(e),i=tt.test(n.backgroundColor)?t.backgroundColor:Ue.hex(n.backgroundColor),o=tt.test(n.color)?t.color:Ue.hex(n.color),r=Ie(i,o),l={backgroundColor:i,color:o,domNode:e,level:(s=r,s>=7?"AAA":s>=4.5?"AA":s>=3?"AA Large":"Fail"),score:r};var s;return r<4.5&&ce.error(["Color-Contrast-Error",{backgroundColor:l.backgroundColor,color:l.color,level:l.level,score:l.score},l.domNode]),l},it=(e,t=et())=>{t.domNode instanceof HTMLElement&&(t=nt(t.domNode,t));const n=t.domNode.querySelector(e);if(null===n){const n=t.domNode.querySelectorAll('[class="hydrated"]');for(let i=0;i<n.length&&(t.domNode=n[i],null===(t=it(e,t)).domNode);i++);return t}return nt(n,t)};class ot{static queryHtmlElementColors(e,t,n=!1,i=!0){let o=null;if(!0===n||!1===ot.executionLock)if(!1===n&&(ot.cache.clear(),ot.cache.set(t.domNode,t),ot.executionLock=!0,!0===i&&ce.debug("[KoliBriUtils] Color contrast analysis started...")),e===t.domNode)o=t;else{const n=new Set;if(t.domNode.shadowRoot){const e=t.domNode.shadowRoot.children;for(let t=0;t<e.length;t++)n.add(e[t])}const i=t.domNode;if("function"==typeof i.assignedNodes){const e=i.assignedNodes();for(let t=0;t<e.length;t++)e[t]instanceof HTMLElement&&n.add(e[t])}const r=t.domNode.children;for(let e=0;e<r.length;e++)n.add(r[e]);const l=Array.from(n);for(let n=0;n<l.length;n++){let i=ot.cache.get(l[n]);void 0===i&&(i=nt(l[n],t)),ot.cache.set(l[n],i);const r=ot.queryHtmlElementColors(e,i,!0,!1);if(null!==r){o=r;break}}}else ce.debug("[KoliBriUtils] Call aborted because a color contrast analysis is currently being executed.");return!1===n&&(!0===i&&ce.debug(`[KoliBriUtils] Color contrast analysis finished (${ot.cache.size} DOM elements are analysed).`),ot.executionLock=!1,ot.cache.clear()),o}}ot.executionLock=!1,ot.cache=new Map;class rt{}rt.getCssStyle=j,rt.patchTheme=(e,t,n,i)=>p(e,t,n,i),rt.patchThemeTag=(e,t,n,i)=>m(e,t,n,i),rt.querySelector=Qe,rt.querySelectorAll=Xe,rt.stringifyJson=De;const lt=e=>"object"==typeof e&&null!==e,st=(e,t=0)=>"string"==typeof e&&e.length>=t,at=e=>{if("object"!=typeof e||null===e)return st(e,1);for(const t in e)if(!1===st(t,1))return!1;return!0},ut=new Event("StateChange");var dt,ct,ft=e(ct?dt:(ct=1,dt=function(e){return function(t,n){if(!t)return e;var i;"string"==typeof t?i=t:n=t;var o=e;return i&&(o+="__"+i),o+(n?Object.keys(n).reduce((function(e,t){var i=n[t];return i&&(e+=" "+("boolean"==typeof i?o+"--"+t:o+"--"+t+"_"+i)),e}),""):"")}}));const mt=function(){const e=new Map,t=(t,n,i)=>{try{return e.get(t)(n,i)}catch{return e.set(t,ft(t)).get(t)(n,i)}};return t.forBlock=e=>{const n=(n,i)=>t(e,n,i);return n.forElement=n=>i=>t(e,n,i),n},t}(),pt={"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-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}},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-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-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-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{Ue as A,pt as B,Ie as C,Te as D,J as E,ne as F,at as G,st as H,We as I,Qe as J,B as K,ce as L,ee as M,nt as N,Xe as O,it as P,ot as Q,y as R,ut as S,K as T,De as U,oe as V,k as X,rt as a,mt as b,Ee as c,P as d,ge as e,ve as f,he as g,me as h,V as i,E as j,lt as k,we as l,$e as m,qe as n,Je as o,Ye as p,D as q,_e as r,Be as s,ie as t,Se as u,re as v,w,W as x,te as y,e as z}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as r}from"./bem-registry.js";import{c as t,b as e,y as n,n as o,i,z as s,u as
|
|
4
|
+
import{h as r}from"./bem-registry.js";import{c as t,b as e,y as n,n as o,i as a,z as s,u as i}from"./props-from-config.js";import{a as f}from"./validators.js";import{c}from"./component10.js";import{h as l}from"@stencil/core/internal/client";const u=(r,t)=>{let e="";return Array.isArray(r)&&r.forEach((r=>{e+="kol-"+t+"--"+r+" "})),e},p=t("accessKey","",e),d=t("ariaControls","",e),m=t("ariaDescription","",e),y=t("ariaExpanded","",(function(r){return n(r,"aria-expanded")})),b=t("customClass","",e,(function(r){return""===r||f(r)})),g=t("hideLabel",!1,o),h=t("inline",!0,o),v=["tab","treeitem"],j=t("role","",(function(r){if(""===r)return"";if(a(r,v))return r;throw new Error(`Invalid role: expected one of ${v.join(", ")}, got ${JSON.stringify(r)}`)})),x=t("shortKey","",e),I=t("icons",{},(function(r){if(!r||"string"==typeof r&&""===r)return{};if("string"==typeof r&&/^[{[]/.test(r.trim()))return s(r);if("string"==typeof r)return e(r);if("object"==typeof r)return s(r);throw new Error("Invalid icons: "+typeof r)}),(function(r){return"string"==typeof r?r.length>0:"object"==typeof r&&null!==r})),w=t("tabIndex",0,i,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.`)}}),A=c("tooltipAlign","right"),E=t("variant",[],(function(r){return Array.isArray(r)?r:"string"==typeof r?r.split(" "):[]}),(function(r){return 0===r.length||r.every(f)})),$=({description:r,descriptionId:t})=>r?l("span",{class:"visually-hidden",id:t},r):null;export{$ as A,p as a,d as b,m as c,x as d,A as e,y as f,b as g,g as h,h as i,u as j,j as l,I as s,w as t,E as v}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as a}from"@stencil/core/internal/client";import{t as o}from"./i18n.js";import{b as e,g as i}from"./bem-registry.js";import{c as s,b as r,a as t,r as n,t as l}from"./props-from-config.js";import{a as d,b as c,c as p,f as m,g as f,h as b,s as k,i as v,l as g,d as h,t as j,e as u,v as x,j as y,A as w}from"./component3.js";import{c as _}from"./clsx.js";import{p as C}from"./element-interaction.js";import{B as I}from"./component.js";import{I as A}from"./component5.js";import{S as K}from"./component7.js";import{T as L}from"./component10.js";import{d as T}from"./disabled.js";import{h as D}from"./href.js";import{l as O}from"./label-with-expert-slot.js";import{l as $}from"./link-target.js";const S=["date","location","page","step","time","true","false"],q=s("ariaCurrentValue","page",(function(a){const o=r(a);return S.includes(o)?o:"page"})),B=s("ariaOwns","",r),E=s("download",void 0,r),F=t(),M={required:[D],optional:[d,c,q,p,m,B,f,T,E,b,k,v,O,F,g,$,h,j,u,x]},V=e.forBlock("kol-link"),z=(e,s)=>{const{accessKey:r,ariaControls:t,ariaCurrent:d,ariaDescription:c,ariaDescriptionId:p,ariaExpanded:m,ariaOwns:f,class:b,customClass:k,disabled:v,download:g,handleAnchorClick:h,hideLabel:j,href:u,icons:x,inline:T,label:D,on:O,ref:$,refAnchor:S,refTooltip:q,role:B,shortKey:E,tabIndex:F,target:z,variant:G,expertSlot:H}=n(M,e),J=o("kol-open-link-in-tab"),N="string"==typeof z&&z.length>0&&"_self"!==z,P={href:"string"==typeof u&&u.length>0?u:"javascript:void(0);",target:"string"==typeof z&&z.length>0?z:void 0,rel:N?"noopener":void 0,download:"string"==typeof g?g:void 0};!0===j&&""===l(D)&&i("[KolLink] An aria-label must be set when _hide-label is set.");const Q=null==c?void 0:c.trim(),R=B||void 0;return a(I,{block:"kol-link",ref:$,class:_(b,{[k]:G.includes("custom")&&k.length>0,[y(G,"link")]:G.length>0}),modifiers:{disabled:!0===v,"external-link":N,"hide-label":!0===j,inline:!0===T,standalone:!1===T}},a("a",Object.assign({ref:S},P,{href:P.href,accessKey:r||void 0,"aria-current":d||void 0,"aria-controls":t||void 0,"aria-describedby":Q?p:void 0,"aria-disabled":v?"true":void 0,"aria-expanded":""===m?void 0:m,"aria-owns":f||void 0,"aria-label":j&&""!==l(D)?`${l(D)}${N?` (${J})`:""}`:void 0,"aria-keyshortcuts":E||void 0,class:V("interactive-element")},O,{onClick:h,onMouseDown:v?C:void 0,role:R,tabIndex:v?-1:F}),a(K,{class:"kol-link__text",badgeText:r||E,icons:x,hideLabel:j,label:H?"":D||u},s.length>0?s:a("slot",{name:"expert",slot:"expert"})),N&&a(A,{class:"kol-link__icon",label:j?"":J,icons:"kolicon-link-external","aria-hidden":j})),!0===j&&!H&&a("div",{class:"kol-link__tooltip"},a(L,{badgeText:r||E||"",label:"
|
|
4
|
+
import{h as a}from"@stencil/core/internal/client";import{t as o}from"./i18n.js";import{b as e,g as i}from"./bem-registry.js";import{c as s,b as r,a as t,r as n,t as l}from"./props-from-config.js";import{a as d,b as c,c as p,f as m,g as f,h as b,s as k,i as v,l as g,d as h,t as j,e as u,v as x,j as y,A as w}from"./component3.js";import{c as _}from"./clsx.js";import{p as C}from"./element-interaction.js";import{B as I}from"./component.js";import{I as A}from"./component5.js";import{S as K}from"./component7.js";import{T as L}from"./component10.js";import{d as T}from"./disabled.js";import{h as D}from"./href.js";import{l as O}from"./label-with-expert-slot.js";import{l as $}from"./link-target.js";const S=["date","location","page","step","time","true","false"],q=s("ariaCurrentValue","page",(function(a){const o=r(a);return S.includes(o)?o:"page"})),B=s("ariaOwns","",r),E=s("download",void 0,r),F=t(),M={required:[D],optional:[d,c,q,p,m,B,f,T,E,b,k,v,O,F,g,$,h,j,u,x]},V=e.forBlock("kol-link"),z=(e,s)=>{const{accessKey:r,ariaControls:t,ariaCurrent:d,ariaDescription:c,ariaDescriptionId:p,ariaExpanded:m,ariaOwns:f,class:b,customClass:k,disabled:v,download:g,handleAnchorClick:h,hideLabel:j,href:u,icons:x,inline:T,label:D,on:O,ref:$,refAnchor:S,refTooltip:q,role:B,shortKey:E,tabIndex:F,target:z,variant:G,expertSlot:H}=n(M,e),J=o("kol-open-link-in-tab"),N="string"==typeof z&&z.length>0&&"_self"!==z,P={href:"string"==typeof u&&u.length>0?u:"javascript:void(0);",target:"string"==typeof z&&z.length>0?z:void 0,rel:N?"noopener":void 0,download:"string"==typeof g?g:void 0};!0===j&&""===l(D)&&i("[KolLink] An aria-label must be set when _hide-label is set.");const Q=null==c?void 0:c.trim(),R=B||void 0;return a(I,{block:"kol-link",ref:$,class:_(b,{[k]:G.includes("custom")&&k.length>0,[y(G,"link")]:G.length>0}),modifiers:{disabled:!0===v,"external-link":N,"hide-label":!0===j,inline:!0===T,standalone:!1===T}},a("a",Object.assign({ref:S},P,{href:P.href,accessKey:r||void 0,"aria-current":d||void 0,"aria-controls":t||void 0,"aria-describedby":Q?p:void 0,"aria-disabled":v?"true":void 0,"aria-expanded":""===m?void 0:m,"aria-owns":f||void 0,"aria-label":j&&""!==l(D)?`${l(D)}${N?` (${J})`:""}`:void 0,"aria-keyshortcuts":E||void 0,class:V("interactive-element")},O,{onClick:h,onMouseDown:v?C:void 0,role:R,tabIndex:v?-1:F}),a(K,{class:"kol-link__text",badgeText:r||E,icons:x,hideLabel:j,label:H?"":D||u},s.length>0?s:a("slot",{name:"expert",slot:"expert"})),N&&a(A,{class:"kol-link__icon",label:j?"":J,icons:"kolicon-link-external","aria-hidden":j})),!0===j&&!H&&a("div",{class:"kol-link__tooltip"},a(L,{badgeText:r||E||"",label:""!==l(D)?D:"string"==typeof u?u:"",refFloating:q})),Q&&a(w,{description:Q,descriptionId:p}))};export{z as L,q as a,F as b,B as c,E as d,M as l}
|
package/dist/components/group.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{c as s,n as i}from"./props-from-config.js";import{h as
|
|
4
|
+
import{c as s,n as i}from"./props-from-config.js";import{h as e}from"@stencil/core/internal/client";import{g as o}from"./block-bem.js";import{a as t}from"./dev.utils.js";import{B as n}from"./base-web-component2.js";import{b as a}from"./bem-registry.js";const r=s("hasClearButton",!0,i),l=o("kol-custom-suggestions-options-group"),h=o("kol-custom-suggestions-option"),c=({"aria-labelledby":s,blockSuggestionMouseOver:i,onKeyDown:o,style:t,hidden:n,id:a},r)=>e("ul",{"aria-labelledby":s,id:a,role:"listbox",style:t,class:l({"cursor-hidden":i,open:!n}),hidden:n,onKeyDown:o},r),d=({disabled:s,id:i,index:o,ref:t,selected:n,onClick:a,onMouseOver:r,onFocus:l,onKeyDown:c,option:d,searchTerm:u})=>e("li",{id:i,key:`-${o}`,ref:t,"data-index":o,tabIndex:-1,role:"option","aria-selected":n?"true":void 0,"aria-disabled":s?"true":void 0,onClick:a,onMouseOver:r,onFocus:l,class:h({disabled:Boolean(s)}),onKeyDown:c},e("span",null,((s,i)=>{if(!(null==i?void 0:i.trim()))return s;const o=new RegExp(`(${i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")})`,"gi");return s.split(o).map(((s,i)=>i%2==1?e("mark",null,s):s))})(String(d),u||""))),u=class extends n{constructor(){super(...arguments),this.focusedIndex=-1,this.clearButtonFocused=!1,this.optionRefs=[],this.handleClearButtonFocus=()=>{this.clearButtonFocused=!0},this.handleClearButtonBlur=()=>{this.clearButtonFocused=!1}}getOptionId(s){return t(this.id,`option-${s}`)}getActiveDescendant(){return this.isOpen&&this.focusedIndex>=0?this.getOptionId(this.focusedIndex):void 0}focusOption(s){var i;this.focusedIndex=s,null===(i=this.optionRefs[s])||void 0===i||i.focus()}moveFocusWrapping(s){let i=this.focusedIndex+s;const e=this.getOptionCount();i>=e&&(i=0),i<0&&(i=e-1),this.focusOption(i)}moveFocusSkippingDisabled(s,i,e){const o=this.getOptionCount();let t=this.focusedIndex+s;for(let s=0;s<o;s++){if(t>=o&&(t=0),t<0&&(t=o-1),!e(t))return void this.focusOption(t);t+=i}}handleListboxEvent(s,i,e){var o;s.preventDefault(),void 0!==i&&(this.isOpen=i,i||null===(o=this.ctaRef.el)||void 0===o||o.focus()),null==e||e()}handleListboxKeyDown(s){var i,e;switch(s.key){case"Down":case"ArrowDown":this.blockSuggestionMouseOver=!0,this.handleListboxEvent(s,!0,(()=>this.moveFocus(1)));break;case"Up":case"ArrowUp":{this.blockSuggestionMouseOver=!0;const i=this.isOpen;this.handleListboxEvent(s,!0,(()=>i?this.moveFocus(-1,-1):this.focusLastOption()));break}case"Tab":this.isOpen&&(this.isOpen=!1,null===(i=this.ctaRef.el)||void 0===i||i.focus());break;case"Esc":case"Escape":this.isOpen&&(s.preventDefault(),this.isOpen=!1,null===(e=this.ctaRef.el)||void 0===e||e.focus());break;case" ":case"Enter":case"NumpadEnter":this.handleConfirmKey(s);break;case"Home":this.isOpen&&(this.blockSuggestionMouseOver=!0,this.handleListboxEvent(s,void 0,(()=>this.focusFirstOption())));break;case"End":this.isOpen&&(this.blockSuggestionMouseOver=!0,this.handleListboxEvent(s,void 0,(()=>this.focusLastOption())));break;case"PageUp":this.blockSuggestionMouseOver=!0,this.handleListboxEvent(s,void 0,(()=>this.isOpen&&this.moveFocus(-10)));break;case"PageDown":this.blockSuggestionMouseOver=!0,this.handleListboxEvent(s,void 0,(()=>this.isOpen&&this.moveFocus(10,-1)))}}handleListboxMouseMove(){this.blockSuggestionMouseOver=!1}},b={"kol-combobox":a.forBlock("kol-combobox")("group"),"kol-single-select":a.forBlock("kol-single-select")("group")},p=({block:s},i)=>e("div",{class:b[s]},i);export{u as B,d as C,p as L,c as a,r as h}
|
package/dist/components/i18n2.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
var e={"action-done":"Aktion abgeschlossen","action-running":"Aktion wird ausgeführt...","avatar-alt":"Avatar von {{name}}","character-counter-current":"{{current}} Zeichen","character-counter-current-of-max":"{{current}}/{{max}} Zeichen","character-counter-current-of-max-aria":"{{current}} von {{max}} Zeichen","character-counter-max-aria":"Zeichenlimit erreicht!","character-limit-exceeded":"Es sind {{over}} Zeichen zu viel.","character-limit-hint":"Es können bis zu {{limit}} Zeichen eingegeben werden.","character-limit-remaining":"Es sind noch {{remaining}} Zeichen verfügbar.","clear-search":"Suche löschen",close:"Schließen","close-alert":"Benachrichtigung schließen","data-browse-text":"Datei auswählen","delete-selection":"Auswahl entfernen","entries-per-site":"Einträge pro Seite",error:"Fehler","error-list":"Fehlerliste","error-list-message":"Bitte korrigieren Sie folgende Fehler:","filename-text":"Datei auswählen oder hier ablegen...","form-description":"Formular-Felder, die mit einem Sternchen (*) gekennzeichnet sind, sind Pflichtangaben.","hide-password":"Passwort verbergen",info:"Hinweis","kolibri-logo":"Logo von KoliBri","live-value":"{{value}} {{unit}}","live-value-bounded":"{{value}} von {{max}} {{unit}}",message:"Nachricht","meter-state-critical":"Kritisch","meter-state-optimum":"Optimal","meter-state-suboptimal":"Suboptimal","nav-maximize":"Navigation maximieren","nav-minimize":"Navigation minimieren",new:"Neu","no-entries":"Es sind keine Einträge vorhanden.","no-results-message":"Keine Ergebnisse gefunden.","open-link-in-tab":"Öffnet in neuem Tab.",page:"Seite","page-back":"Eine Seite zurück","page-first":"Direkt zur ersten Seite","page-last":"Direkt zur letzten Seite","page-next":"Eine Seite weiter",pagination:"Paginierung","pagination-position-bottom":"unten","pagination-position-top":"oben",readonly:"schreibgeschützt","show-password":"Passwort einblenden","show-suggestions":"Vorschläge anzeigen",sort:"sortieren","split-button-dropdown-label-open":"Optionen anzeigen",success:"Erfolg","table-data-loading":"Daten für Tabelle {{caption}} werden geladen.","table-data-loaded":"Daten für Tabelle {{caption}} wurden geladen.","table-pagination-label":"Paginierung für die Tabelle {{label}}","table-selection":"Auswahl","table-selection-all":"Alle auswählen","table-selection-indeterminate":"Alle auswählen bei teilweiser Auswahl","table-selection-none":"Alle abwählen","table-settings":"Tabellenkonfiguration","table-settings-apply":"Übernehmen","table-settings-cancel":"Abbrechen","table-settings-column-hidable":'Spalte "{{column}}" ausblenden.',"table-settings-column-not-hidable":'Spalte "{{column}}" kann nicht ausgeblendet werden.',"table-settings-column-width":'Breite von Spalte "{{column}}" in Pixel.',"table-settings-error-all-invisible":"Mindestens eine Spalte muss sichtbar sein.","table-settings-move-down":'Spalte "{{column}}" nach unten verschieben.',"table-settings-move-up":'Spalte "{{column}}" nach oben verschieben.',"table-settings-not-move":'Spalte "{{column}}" kann nicht verschoben werden.',"table-sort-order":"Priorität {{order}}","table-visible-range":"Einträge {{start}} bis {{end}} von {{total}}","toast-close-all":"Alle Benachrichtigungen schließen",version:"Versionsnummer",warning:"Warnung"},t={"action-done":"Action done","action-running":"Action is running...","avatar-alt":"Avatar of {{name}}","character-counter-current":"{{current}} characters","character-counter-current-of-max":"{{current}}/{{max}} characters","character-counter-current-of-max-aria":"{{current}} of {{max}} characters","character-counter-max-aria":"Character limit reached!","character-limit-exceeded":"You have {{over}} characters too many.","character-limit-hint":"You can enter up to {{limit}} characters","character-limit-remaining":"You have {{remaining}} characters remaining.","clear-search":"Clear search",close:"Close","close-alert":"Close notification","data-browse-text":"Browse","delete-selection":"Delete selection","entries-per-site":"Entries per page",error:"Error","error-list":"Error list","error-list-message":"Please correct the following errors","filename-text":"Choose a file or drop it here...","form-description":"Form fields marked with an asterisk (*) are mandatory.","hide-password":"Hide password",info:"Note","kolibri-logo":"KoliBri logo","live-value":"{{value}} {{unit}}","live-value-bounded":"{{value}} of {{max}} {{unit}}",message:"Message","meter-state-critical":"Critical","meter-state-optimum":"Optimum","meter-state-suboptimal":"Suboptimal","nav-maximize":"Maximize navigation","nav-minimize":"Minimize navigation",new:"New","no-entries":"No entries available.","no-results-message":"No results found.","open-link-in-tab":"Opens in new tab.",page:"Page","page-back":"One page back","page-first":"Directly to the first page","page-last":"Directly to the last page","page-next":"One page further",pagination:"Pagination","pagination-position-bottom":"bottom","pagination-position-top":"top",readonly:"read-only","show-password":"Show password","show-suggestions":"Show suggestions",sort:"sort","split-button-dropdown-label-open":"Show options",success:"Success","table-data-loading":"Data in table {{caption}} is loading.","table-data-loaded":"Data in table {{caption}} got loaded.","table-pagination-label":"Pagination for table {{label}}","table-selection":"Selection","table-selection-all":"Select all","table-selection-indeterminate":"Select all with partial selection","table-selection-none":"Deselect all","table-settings":"Table configuration","table-settings-apply":"Apply","table-settings-cancel":"Cancel","table-settings-column-hidable":'Hide column "{{column}}".',"table-settings-column-not-hidable":'Column "{{column}}" cannot be hidden.',"table-settings-column-width":'Width of column "{{column}}" in pixel.',"table-settings-error-all-invisible":"At least one column must be visible.","table-settings-move-down":'Move column "{{column}}" down.',"table-settings-move-up":'Move column "{{column}}" up.',"table-settings-not-move":'Column "{{column}}" cannot be moved.',"table-sort-order":"Priority {{order}}","table-visible-range":"Entries {{start}} to {{end}} of {{total}}","toast-close-all":"Close all notifications",version:"Version number",warning:"Warning"};const n=e=>Object.keys(e).reduce(((t,n)=>(t[`kol-${n}`]=e[n],t)),{}),a=new Set([e=>e("en",n(t)),t=>t("de",n(e))]);class i{constructor(e){this.resourceMap=new Map,this.language=null!=e?e:"de"}addTranslations(e){Array.isArray(e)?e=new Set(e):"function"==typeof e&&(e=new Set([e])),void 0!==e&&e.forEach((e=>e(((e,t)=>{let n=this.resourceMap.get(e);return n||(n=new Map,this.resourceMap.set(e,n)),Object.entries(t).forEach((([e,t])=>{t&&n.set(e,t)})),e}))))}setLanguage(e){this.language=e}translate(e,t){var n;let a=null===(n=this.resourceMap.get(this.language))||void 0===n?void 0:n.get(e);return a?(null==t?void 0:t.placeholders)&&Object.entries(t.placeholders).forEach((([e,t])=>{var n;n=t,a=a.split(`{{${e}}}`).join(n)})):a=e,a}}let r;const o=()=>r,l=(e,t=a)=>(r=new i(e),r.addTranslations(t),r);export{o as g,l as i}
|
|
4
|
+
var e={"action-done":"Aktion abgeschlossen","action-running":"Aktion wird ausgeführt...","avatar-alt":"Avatar von {{name}}","character-counter-current":"{{current}} Zeichen","character-counter-current-of-max":"{{current}}/{{max}} Zeichen","character-counter-current-of-max-aria":"{{current}} von {{max}} Zeichen","character-counter-max-aria":"Zeichenlimit erreicht!","character-limit-exceeded":"Es sind {{over}} Zeichen zu viel.","character-limit-hint":"Es können bis zu {{limit}} Zeichen eingegeben werden.","character-limit-remaining":"Es sind noch {{remaining}} Zeichen verfügbar.","clear-search":"Suche löschen",close:"Schließen","close-alert":"Benachrichtigung schließen","data-browse-text":"Datei auswählen","delete-selection":"Auswahl entfernen","entries-per-site":"Einträge pro Seite",error:"Fehler","error-list":"Fehlerliste","error-list-message":"Bitte korrigieren Sie folgende Fehler:","filename-text":"Datei auswählen oder hier ablegen...","form-description":"Formular-Felder, die mit einem Sternchen (*) gekennzeichnet sind, sind Pflichtangaben.","hide-password":"Passwort verbergen",info:"Hinweis","kolibri-logo":"Logo von KoliBri","live-value":"{{value}} {{unit}}","live-value-bounded":"{{value}} von {{max}} {{unit}}",message:"Nachricht","meter-state-critical":"Kritisch","meter-state-optimum":"Optimal","meter-state-suboptimal":"Suboptimal","nav-maximize":"Navigation maximieren","nav-minimize":"Navigation minimieren",new:"Neu","no-entries":"Es sind keine Einträge vorhanden.","no-results-message":"Keine Ergebnisse gefunden.","open-link-in-tab":"Öffnet in neuem Tab.",page:"Seite","page-back":"Eine Seite zurück","page-first":"Direkt zur ersten Seite","page-last":"Direkt zur letzten Seite","page-next":"Eine Seite weiter",pagination:"Paginierung","pagination-position-bottom":"unten","pagination-position-top":"oben",progress:"Fortschritt",readonly:"schreibgeschützt","show-password":"Passwort einblenden","show-suggestions":"Vorschläge anzeigen",sort:"sortieren","split-button-dropdown-label-open":"Optionen anzeigen",success:"Erfolg","table-data-loading":"Daten für Tabelle {{caption}} werden geladen.","table-data-loaded":"Daten für Tabelle {{caption}} wurden geladen.","table-pagination-label":"Paginierung für die Tabelle {{label}}","table-selection":"Auswahl","table-selection-all":"Alle auswählen","table-selection-indeterminate":"Alle auswählen bei teilweiser Auswahl","table-selection-none":"Alle abwählen","table-settings":"Tabellenkonfiguration","table-settings-apply":"Übernehmen","table-settings-cancel":"Abbrechen","table-settings-column-hidable":'Spalte "{{column}}" ausblenden.',"table-settings-column-not-hidable":'Spalte "{{column}}" kann nicht ausgeblendet werden.',"table-settings-column-width":'Breite von Spalte "{{column}}" in Pixel.',"table-settings-error-all-invisible":"Mindestens eine Spalte muss sichtbar sein.","table-settings-move-down":'Spalte "{{column}}" nach unten verschieben.',"table-settings-move-up":'Spalte "{{column}}" nach oben verschieben.',"table-settings-not-move":'Spalte "{{column}}" kann nicht verschoben werden.',"table-sort-order":"Priorität {{order}}","table-visible-range":"Einträge {{start}} bis {{end}} von {{total}}","toast-close-all":"Alle Benachrichtigungen schließen",version:"Versionsnummer",warning:"Warnung"},t={"action-done":"Action done","action-running":"Action is running...","avatar-alt":"Avatar of {{name}}","character-counter-current":"{{current}} characters","character-counter-current-of-max":"{{current}}/{{max}} characters","character-counter-current-of-max-aria":"{{current}} of {{max}} characters","character-counter-max-aria":"Character limit reached!","character-limit-exceeded":"You have {{over}} characters too many.","character-limit-hint":"You can enter up to {{limit}} characters","character-limit-remaining":"You have {{remaining}} characters remaining.","clear-search":"Clear search",close:"Close","close-alert":"Close notification","data-browse-text":"Browse","delete-selection":"Delete selection","entries-per-site":"Entries per page",error:"Error","error-list":"Error list","error-list-message":"Please correct the following errors","filename-text":"Choose a file or drop it here...","form-description":"Form fields marked with an asterisk (*) are mandatory.","hide-password":"Hide password",info:"Note","kolibri-logo":"KoliBri logo","live-value":"{{value}} {{unit}}","live-value-bounded":"{{value}} of {{max}} {{unit}}",message:"Message","meter-state-critical":"Critical","meter-state-optimum":"Optimum","meter-state-suboptimal":"Suboptimal","nav-maximize":"Maximize navigation","nav-minimize":"Minimize navigation",new:"New","no-entries":"No entries available.","no-results-message":"No results found.","open-link-in-tab":"Opens in new tab.",page:"Page","page-back":"One page back","page-first":"Directly to the first page","page-last":"Directly to the last page","page-next":"One page further",pagination:"Pagination","pagination-position-bottom":"bottom","pagination-position-top":"top",progress:"Progress",readonly:"read-only","show-password":"Show password","show-suggestions":"Show suggestions",sort:"sort","split-button-dropdown-label-open":"Show options",success:"Success","table-data-loading":"Data in table {{caption}} is loading.","table-data-loaded":"Data in table {{caption}} got loaded.","table-pagination-label":"Pagination for table {{label}}","table-selection":"Selection","table-selection-all":"Select all","table-selection-indeterminate":"Select all with partial selection","table-selection-none":"Deselect all","table-settings":"Table configuration","table-settings-apply":"Apply","table-settings-cancel":"Cancel","table-settings-column-hidable":'Hide column "{{column}}".',"table-settings-column-not-hidable":'Column "{{column}}" cannot be hidden.',"table-settings-column-width":'Width of column "{{column}}" in pixel.',"table-settings-error-all-invisible":"At least one column must be visible.","table-settings-move-down":'Move column "{{column}}" down.',"table-settings-move-up":'Move column "{{column}}" up.',"table-settings-not-move":'Column "{{column}}" cannot be moved.',"table-sort-order":"Priority {{order}}","table-visible-range":"Entries {{start}} to {{end}} of {{total}}","toast-close-all":"Close all notifications",version:"Version number",warning:"Warning"};const n=e=>Object.keys(e).reduce(((t,n)=>(t[`kol-${n}`]=e[n],t)),{}),a=new Set([e=>e("en",n(t)),t=>t("de",n(e))]);class i{constructor(e){this.resourceMap=new Map,this.language=null!=e?e:"de"}addTranslations(e){Array.isArray(e)?e=new Set(e):"function"==typeof e&&(e=new Set([e])),void 0!==e&&e.forEach((e=>e(((e,t)=>{let n=this.resourceMap.get(e);return n||(n=new Map,this.resourceMap.set(e,n)),Object.entries(t).forEach((([e,t])=>{t&&n.set(e,t)})),e}))))}setLanguage(e){this.language=e}translate(e,t){var n;let a=null===(n=this.resourceMap.get(this.language))||void 0===n?void 0:n.get(e);return a?(null==t?void 0:t.placeholders)&&Object.entries(t.placeholders).forEach((([e,t])=>{var n;n=t,a=a.split(`{{${e}}}`).join(n)})):a=e,a}}let r;const o=()=>r,l=(e,t=a)=>(r=new i(e),r.addTranslations(t),r);export{o as g,l as i}
|