@public-ui/components 4.6.0-rc.0 → 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 +4 -42
- package/dist/cjs/{Heading-CSxHzc97.js → Heading-CmnijhLd.js} +1 -1
- package/dist/cjs/{api-CgWeKMMq.js → api-Bg7hdIrJ.js} +22 -22
- package/dist/cjs/{app-globals-pY-Cyxgv.js → app-globals-BwYPSMbG.js} +3 -3
- package/dist/cjs/{base-YsLg9vB1.js → base-BVhV5HmV.js} +10 -10
- package/dist/cjs/{base-qwdvh9pf.js → base-CQB0r-ZQ.js} +11 -11
- package/dist/cjs/{base-CYqcl2o4.js → base-JFyPasp9.js} +27 -24
- package/dist/cjs/{base-Bza2102z.js → base-ob1X79UM.js} +13 -14
- package/dist/cjs/{base-web-component-Cp4fQ2Mh.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-CkEUtzNr.js → base-web-component-dI9FmFIm.js} +10 -10
- package/dist/cjs/{behavior-DV-LMyJJ.js → behavior-B5wr2A8R.js} +7 -7
- package/dist/cjs/{behavior-DvLNQY2U.js → behavior-CUmF8rJf.js} +5 -5
- package/dist/cjs/{behavior-BqwUv55g.js → behavior-DujaVCwV.js} +5 -5
- package/dist/cjs/{bem-registry-CyxrH26c.js → bem-registry-B6QoNC9E.js} +1 -16
- package/dist/cjs/{block-bem-BI7yfoFU.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-CKMtvWhe.js → component-1J4G5HmZ.js} +14 -14
- package/dist/cjs/{component-D_9ZydZA.js → component-BexD3069.js} +15 -13
- package/dist/cjs/{component-CRDSSR7G.js → component-BilLJFfC.js} +5 -5
- package/dist/cjs/{component-BM0H6uUo.js → component-Bza8hlo-.js} +10 -10
- package/dist/cjs/{component-DXBzTkOY.js → component-Cbbx7Z6c.js} +4 -4
- package/dist/cjs/{component-D5PYQ9Ku.js → component-CjXcCX2V.js} +2 -2
- package/dist/cjs/{component-Br2jlQXL.js → component-Cqp00Tb9.js} +8 -8
- package/dist/cjs/{component-B9y7UnKg.js → component-DFhuXUqv.js} +15 -15
- package/dist/cjs/{component-DtmmNGjm.js → component-DGVc4bOy.js} +4 -4
- package/dist/cjs/{component-COEAaB_B.js → component-DkV9oPCL.js} +2 -2
- package/dist/cjs/{component-q87oQHev.js → component-Doln6Ltn.js} +5 -5
- package/dist/cjs/{component-CeT2UQLF.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-DOgQN_zk.js → dev.utils-Bx4sgPsr.js} +2 -2
- package/dist/cjs/{devtools-CG9Ov5FS.js → devtools-BXBKJice.js} +3 -3
- package/dist/cjs/{disabled-jYcvcwjv.js → disabled-CilmJ-p-.js} +1 -1
- package/dist/cjs/{field-control-BT1ZyKNR.js → field-control-B95uzQnW.js} +8 -8
- package/dist/cjs/{group-0C7hEZpp.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-14cLFAPd.js → index-Ccvyz7Rq.js} +24 -43
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/{input-DOHuLJaE.js → input-BKXEykG_.js} +5 -5
- package/dist/cjs/{input-container-Ddovz1-b.js → input-container-CWb_kRbs.js} +8 -8
- package/dist/cjs/{item--tny4oQM.js → item-C4Boh5Cz.js} +5 -5
- package/dist/cjs/{item-aV2WKcK3.js → item-DgNTEUz3.js} +35 -20
- package/dist/cjs/{item-CWoQfEPo.js → item-vDMQvV0t.js} +6 -6
- package/dist/cjs/{item-ZLQ1Yy47.js → item-wr5KfPYM.js} +13 -14
- 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 -31
- package/dist/cjs/kol-avatar.cjs.entry.js +17 -16
- package/dist/cjs/kol-badge.cjs.entry.js +30 -30
- package/dist/cjs/kol-breadcrumb.cjs.entry.js +32 -31
- package/dist/cjs/kol-button-link.cjs.entry.js +29 -29
- package/dist/cjs/kol-button.cjs.entry.js +29 -29
- package/dist/cjs/kol-card.cjs.entry.js +34 -34
- package/dist/cjs/kol-combobox.cjs.entry.js +46 -46
- package/dist/cjs/kol-details.cjs.entry.js +21 -20
- package/dist/cjs/kol-dialog.cjs.entry.js +37 -37
- package/dist/cjs/kol-drawer.cjs.entry.js +36 -36
- package/dist/cjs/kol-form.cjs.entry.js +30 -30
- 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 -41
- package/dist/cjs/kol-input-color.cjs.entry.js +43 -43
- package/dist/cjs/kol-input-date.cjs.entry.js +45 -45
- package/dist/cjs/kol-input-email.cjs.entry.js +48 -48
- package/dist/cjs/kol-input-file.cjs.entry.js +42 -42
- package/dist/cjs/kol-input-number.cjs.entry.js +47 -47
- package/dist/cjs/kol-input-password.cjs.entry.js +46 -46
- package/dist/cjs/kol-input-radio.cjs.entry.js +41 -41
- package/dist/cjs/kol-input-range.cjs.entry.js +43 -43
- package/dist/cjs/kol-input-text.cjs.entry.js +48 -48
- 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 -37
- package/dist/cjs/kol-nav.cjs.entry.js +38 -38
- package/dist/cjs/kol-pagination.cjs.entry.js +47 -48
- package/dist/cjs/kol-popover-button.cjs.entry.js +30 -30
- 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 -41
- package/dist/cjs/kol-single-select.cjs.entry.js +53 -48
- 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 -33
- package/dist/cjs/kol-table-stateful.cjs.entry.js +57 -57
- package/dist/cjs/kol-table-stateless.cjs.entry.js +45 -45
- package/dist/cjs/kol-tabs.cjs.entry.js +36 -39
- package/dist/cjs/kol-textarea.cjs.entry.js +48 -46
- package/dist/cjs/kol-toast-container.cjs.entry.js +25 -25
- package/dist/cjs/kol-toolbar.cjs.entry.js +35 -35
- 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 -27
- package/dist/cjs/kolibri.cjs.js +5 -5
- 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 +4 -4
- 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-BpLJmK75.js → resolve-props-B_ytLWBO.js} +8 -9
- package/dist/cjs/{resolve-props-DhLgYN4l.js → resolve-props-pZBj0tIz.js} +8 -8
- package/dist/cjs/{rows-Ca5ya9tG.js → rows-C9vBSQK1.js} +1 -1
- package/dist/cjs/{scroll-lock-C7PeigI_.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-CZjGY0Eu.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-rQkcX4QY.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 -8
- 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 +8 -10
- 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 +3 -3
- 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/api.js +2 -2
- package/dist/collection/internal/functional-components/pagination/component.js +2 -3
- package/dist/collection/internal/functional-components/pagination/item.js +18 -3
- 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/bem-registry.js +0 -15
- package/dist/collection/schema/i18n-keys.js +29 -28
- package/dist/components/base-web-component2.js +1 -1
- package/dist/components/base-web-component4.js +1 -1
- package/dist/components/base.js +1 -1
- package/dist/components/base2.js +1 -1
- package/dist/components/base4.js +1 -1
- package/dist/components/behavior.js +1 -1
- package/dist/components/behavior2.js +1 -1
- package/dist/components/behavior3.js +1 -1
- package/dist/components/behavior4.js +1 -1
- package/dist/components/bem-registry.js +1 -1
- package/dist/components/component10.js +1 -1
- package/dist/components/component11.js +1 -1
- package/dist/components/component2.js +1 -1
- package/dist/components/component3.js +1 -1
- package/dist/components/component4.js +1 -1
- package/dist/components/component6.js +1 -1
- package/dist/components/component7.js +1 -1
- package/dist/components/component8.js +1 -1
- package/dist/components/component9.js +1 -1
- package/dist/components/contrast.js +1 -1
- package/dist/components/field-control.js +1 -1
- package/dist/components/group.js +1 -1
- package/dist/components/i18n2.js +1 -1
- package/dist/components/input-container.js +1 -1
- package/dist/components/item2.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-hints.js +1 -1
- package/dist/components/label-lang-segment.js +1 -1
- package/dist/components/label-with-expert-slot.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/level.js +1 -1
- package/dist/components/props-from-config.js +1 -1
- package/dist/components/resolve-props.js +1 -1
- package/dist/components/rows.js +1 -1
- package/dist/components/unit.js +1 -1
- package/dist/components/validators.js +1 -1
- package/dist/esm/{Heading-Bj2Ma7Tr.js → Heading-C_CwXDMp.js} +1 -1
- package/dist/esm/{api-DhMNvXtN.js → api-DGiFM9p0.js} +20 -20
- package/dist/esm/{app-globals-Dpmwwlv-.js → app-globals-sZHZyXjD.js} +3 -3
- package/dist/esm/{base-DV_Pzm7z.js → base-B4sGK9cX.js} +12 -13
- package/dist/esm/{base-IzdO60L1.js → base-CWrvN3Gt.js} +10 -10
- package/dist/esm/{base-CJ5WCVaj.js → base-DTKJ1Z06.js} +27 -24
- package/dist/esm/{base-Ba-xzpOT.js → base-P1TaQ7Ba.js} +11 -11
- package/dist/esm/{base-web-component-BB3dHStd.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-ug9DZUOx.js → base-web-component-CKgIOZqi.js} +10 -10
- package/dist/esm/{behavior-B4IW5_Qt.js → behavior-Bb7JYoUn.js} +5 -5
- package/dist/esm/{behavior-BgmZcrK6.js → behavior-CFG1f4KQ.js} +5 -5
- package/dist/esm/{behavior-BMXrK4gj.js → behavior-CkPQGfgo.js} +5 -5
- package/dist/esm/{bem-registry-CWN7_O1L.js → bem-registry-DQUGxdIS.js} +1 -16
- package/dist/esm/{block-bem-BpQSY04L.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-DdIOGRgB.js → component-5Uu-ahLC.js} +4 -4
- package/dist/esm/{component-scm3PBuq.js → component-B05zRrM0.js} +2 -2
- package/dist/esm/{component-Dt6efHXY.js → component-B16Fbp3W.js} +14 -13
- package/dist/esm/{component-BiYFPpjn.js → component-BI8jDgBz.js} +10 -10
- package/dist/esm/{component-Drxdk3mb.js → component-Bc2pdOk1.js} +8 -8
- package/dist/esm/{component-BvvE8aim.js → component-C79oAu7a.js} +5 -5
- package/dist/esm/{component-ChtW1HQv.js → component-CldKbBUh.js} +7 -7
- package/dist/esm/{component-C5QCCLLa.js → component-Clz6b6ho.js} +2 -2
- package/dist/esm/{component-gj7TBL0i.js → component-Ct11K0Gv.js} +14 -14
- package/dist/esm/{component-Ua7-J4C-.js → component-DAQzDMY8.js} +15 -15
- package/dist/esm/{component-BKfXEtN0.js → component-W1KZI4h4.js} +4 -4
- package/dist/esm/{component-C0zMsvYl.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-CwXr_J8N.js → dev.utils-DDWOHUcg.js} +2 -2
- package/dist/esm/{devtools-QEDvmhav.js → devtools-B0kEE_za.js} +3 -3
- package/dist/esm/{disabled-Cqhc40CU.js → disabled-BZXlWAgK.js} +1 -1
- package/dist/esm/{field-control-BOsAM8BW.js → field-control-DsQHa0v9.js} +8 -8
- package/dist/esm/{group-D4WbZY27.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-D_P2XoAc.js → index-Dulj0jro.js} +25 -43
- package/dist/esm/index.js +6 -6
- package/dist/esm/{input-C0kj1MmP.js → input-C0Li7DsE.js} +5 -5
- package/dist/esm/{input-container-B4TgBfDz.js → input-container-DmtMTcjB.js} +8 -8
- package/dist/esm/{item-e4SzwxHe.js → item-8RKFpmbd.js} +6 -6
- package/dist/esm/{item-DRC1CmzC.js → item-CnJMuEyl.js} +5 -5
- package/dist/esm/{item-WrCdQw7F.js → item-CxVe5INa.js} +35 -20
- package/dist/esm/{item-BMniY_My.js → item-DHZGDrAn.js} +12 -13
- 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 -31
- package/dist/esm/kol-avatar.entry.js +17 -16
- package/dist/esm/kol-badge.entry.js +30 -30
- package/dist/esm/kol-breadcrumb.entry.js +32 -31
- package/dist/esm/kol-button-link.entry.js +29 -29
- package/dist/esm/kol-button.entry.js +29 -29
- package/dist/esm/kol-card.entry.js +34 -34
- package/dist/esm/kol-combobox.entry.js +46 -46
- package/dist/esm/kol-details.entry.js +21 -20
- package/dist/esm/kol-dialog.entry.js +37 -37
- package/dist/esm/kol-drawer.entry.js +36 -36
- package/dist/esm/kol-form.entry.js +30 -30
- 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 -41
- package/dist/esm/kol-input-color.entry.js +43 -43
- package/dist/esm/kol-input-date.entry.js +45 -45
- package/dist/esm/kol-input-email.entry.js +48 -48
- package/dist/esm/kol-input-file.entry.js +42 -42
- package/dist/esm/kol-input-number.entry.js +47 -47
- package/dist/esm/kol-input-password.entry.js +46 -46
- package/dist/esm/kol-input-radio.entry.js +41 -41
- package/dist/esm/kol-input-range.entry.js +43 -43
- package/dist/esm/kol-input-text.entry.js +48 -48
- 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 -37
- package/dist/esm/kol-nav.entry.js +38 -38
- package/dist/esm/kol-pagination.entry.js +47 -48
- package/dist/esm/kol-popover-button.entry.js +30 -30
- 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 -41
- package/dist/esm/kol-single-select.entry.js +53 -48
- 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 -33
- package/dist/esm/kol-table-stateful.entry.js +57 -57
- package/dist/esm/kol-table-stateless.entry.js +45 -45
- package/dist/esm/kol-tabs.entry.js +36 -39
- package/dist/esm/kol-textarea.entry.js +48 -46
- package/dist/esm/kol-toast-container.entry.js +25 -25
- package/dist/esm/kol-toolbar.entry.js +35 -35
- 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 -27
- package/dist/esm/kolibri.js +6 -6
- 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 +5 -5
- 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-CqTztQhV.js → resolve-props-02J6OCRf.js} +8 -8
- package/dist/esm/{resolve-props-B-67viId.js → resolve-props-Bj6IaybL.js} +7 -8
- package/dist/esm/{rows-B0x8CR7K.js → rows-I1jrTjzU.js} +1 -1
- package/dist/esm/{scroll-lock-CKnC0y0o.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-Be1_H9fA.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-Cjc991vd.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-C_CwXDMp.js +4 -0
- package/dist/kolibri/api-DGiFM9p0.js +4 -0
- package/dist/kolibri/app-globals-sZHZyXjD.js +4 -0
- package/dist/kolibri/base-B4sGK9cX.js +4 -0
- package/dist/kolibri/{base-IzdO60L1.js → base-CWrvN3Gt.js} +1 -1
- package/dist/kolibri/base-DTKJ1Z06.js +4 -0
- package/dist/kolibri/{base-Ba-xzpOT.js → base-P1TaQ7Ba.js} +1 -1
- package/dist/kolibri/{base-web-component-BB3dHStd.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-ug9DZUOx.js → base-web-component-CKgIOZqi.js} +1 -1
- package/dist/kolibri/{behavior-B4IW5_Qt.js → behavior-Bb7JYoUn.js} +1 -1
- package/dist/kolibri/{behavior-BgmZcrK6.js → behavior-CFG1f4KQ.js} +1 -1
- package/dist/kolibri/behavior-CkPQGfgo.js +4 -0
- package/dist/kolibri/bem-registry-DQUGxdIS.js +4 -0
- package/dist/kolibri/{block-bem-BpQSY04L.js → block-bem-BGIVcYJu.js} +1 -1
- 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-Drxdk3mb.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-C0zMsvYl.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-QEDvmhav.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-DmtMTcjB.js +4 -0
- 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-Be1_H9fA.js → suggestions-DaB3FVaz.js} +1 -1
- 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-Cjc991vd.js → toggle-handler-3qaN2kmt.js} +1 -1
- 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/pagination/component.d.ts +1 -1
- package/dist/types/components/progress/component.d.ts +1 -0
- package/dist/types/components/single-select/component.d.ts +1 -0
- package/dist/types/components/tabs/component.d.ts +0 -1
- package/dist/types/components.d.ts +3 -97
- package/dist/types/internal/functional-components/form-field/custom-suggestions.d.ts +1 -0
- package/dist/types/internal/functional-components/icon/api.d.ts +1 -1
- package/dist/types/internal/functional-components/pagination/api.d.ts +2 -2
- package/dist/types/internal/functional-components/pagination/item.d.ts +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/bem-registry.d.ts +0 -25
- package/dist/types/schema/components/pagination.d.ts +2 -2
- 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/doc/pagination.md +13 -13
- package/doc/table-stateful.md +1 -1
- package/package.json +8 -8
- package/vscode-custom-data.json +0 -13
- package/dist/cjs/component-r497oHWq.js +0 -14
- package/dist/cjs/kol-click-button.cjs.entry.js +0 -55
- package/dist/cjs/kol-skeleton.cjs.entry.js +0 -107
- package/dist/cjs/name-D4qpL1m-.js +0 -10
- package/dist/collection/components/click-button/component.js +0 -105
- package/dist/collection/components/skeleton/component.js +0 -215
- package/dist/collection/internal/functional-components/click-button/api.js +0 -7
- package/dist/collection/internal/functional-components/click-button/component.js +0 -9
- package/dist/collection/internal/functional-components/skeleton/api.js +0 -7
- package/dist/collection/internal/functional-components/skeleton/component.js +0 -20
- package/dist/components/component12.js +0 -4
- package/dist/components/kol-click-button.d.ts +0 -11
- package/dist/components/kol-click-button.js +0 -4
- package/dist/components/kol-skeleton.d.ts +0 -11
- package/dist/components/kol-skeleton.js +0 -4
- package/dist/components/name.js +0 -4
- package/dist/esm/component-Db9HadXA.js +0 -12
- package/dist/esm/kol-click-button.entry.js +0 -53
- package/dist/esm/kol-skeleton.entry.js +0 -105
- package/dist/esm/name-B2Yf3EpX.js +0 -8
- package/dist/kolibri/Heading-Bj2Ma7Tr.js +0 -4
- package/dist/kolibri/api-DhMNvXtN.js +0 -4
- package/dist/kolibri/app-globals-Dpmwwlv-.js +0 -4
- package/dist/kolibri/base-CJ5WCVaj.js +0 -4
- package/dist/kolibri/base-DV_Pzm7z.js +0 -4
- package/dist/kolibri/behavior-BMXrK4gj.js +0 -4
- package/dist/kolibri/bem-registry-CWN7_O1L.js +0 -4
- package/dist/kolibri/bootstrap-DHXUvPBY.js +0 -4
- package/dist/kolibri/common-OzsC_6kt.js +0 -4
- package/dist/kolibri/component-BKfXEtN0.js +0 -4
- package/dist/kolibri/component-BiYFPpjn.js +0 -4
- package/dist/kolibri/component-BvvE8aim.js +0 -4
- package/dist/kolibri/component-C5QCCLLa.js +0 -4
- package/dist/kolibri/component-ChtW1HQv.js +0 -4
- package/dist/kolibri/component-Db9HadXA.js +0 -4
- package/dist/kolibri/component-DdIOGRgB.js +0 -4
- package/dist/kolibri/component-Dt6efHXY.js +0 -4
- package/dist/kolibri/component-Ua7-J4C-.js +0 -4
- package/dist/kolibri/component-gj7TBL0i.js +0 -4
- package/dist/kolibri/component-scm3PBuq.js +0 -4
- package/dist/kolibri/contrast-D78VGPFR.js +0 -4
- package/dist/kolibri/dev.utils-CwXr_J8N.js +0 -4
- package/dist/kolibri/disabled-Cqhc40CU.js +0 -4
- package/dist/kolibri/field-control-BOsAM8BW.js +0 -4
- package/dist/kolibri/group-D4WbZY27.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-D_P2XoAc.js +0 -6
- package/dist/kolibri/input-C0kj1MmP.js +0 -4
- package/dist/kolibri/input-container-B4TgBfDz.js +0 -4
- package/dist/kolibri/item-BMniY_My.js +0 -4
- package/dist/kolibri/item-DRC1CmzC.js +0 -4
- package/dist/kolibri/item-WrCdQw7F.js +0 -4
- package/dist/kolibri/item-e4SzwxHe.js +0 -4
- package/dist/kolibri/kol-click-button.entry.js +0 -4
- package/dist/kolibri/kol-skeleton.entry.js +0 -4
- package/dist/kolibri/label-BRosRgdX.js +0 -4
- package/dist/kolibri/label-hints-Jn18RUT-.js +0 -4
- package/dist/kolibri/label-lang-segment-2_GnxjFp.js +0 -4
- package/dist/kolibri/label-with-expert-slot-CicRes-W.js +0 -4
- package/dist/kolibri/level-CA1s1_Mf.js +0 -4
- package/dist/kolibri/link-target-FX94oqMo.js +0 -4
- package/dist/kolibri/links-DwucTqcR.js +0 -4
- package/dist/kolibri/multiple-DqrZxybx.js +0 -4
- package/dist/kolibri/name-B2Yf3EpX.js +0 -4
- package/dist/kolibri/number-value-B-SJ1dRo.js +0 -4
- package/dist/kolibri/open-DRRv1KFK.js +0 -4
- package/dist/kolibri/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-B-67viId.js +0 -4
- package/dist/kolibri/resolve-props-CqTztQhV.js +0 -4
- package/dist/kolibri/rows-B0x8CR7K.js +0 -4
- package/dist/kolibri/scroll-lock-CKnC0y0o.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/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/types/components/click-button/component.d.ts +0 -15
- package/dist/types/components/skeleton/component.d.ts +0 -26
- package/dist/types/internal/functional-components/click-button/api.d.ts +0 -15
- package/dist/types/internal/functional-components/click-button/component.d.ts +0 -4
- package/dist/types/internal/functional-components/skeleton/api.d.ts +0 -29
- package/dist/types/internal/functional-components/skeleton/component.d.ts +0 -4
- package/doc/skeleton.md +0 -54
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import { h } from "@stencil/core";
|
|
5
|
-
import { bem } from "../../../schema/bem-registry";
|
|
6
|
-
const clickButtonBem = bem.forBlock('kol-click-button');
|
|
7
|
-
const BEM_CLASS_CLICK_BUTTON = clickButtonBem();
|
|
8
|
-
const BEM_CLASS_CLICK_BUTTON__LABEL = clickButtonBem('label');
|
|
9
|
-
export const ClickButtonFC = ({ label, handleClick, refButton }) => (h("button", { class: BEM_CLASS_CLICK_BUTTON, ref: refButton, onClick: handleClick }, h("span", { class: BEM_CLASS_CLICK_BUTTON__LABEL }, label)));
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import { h } from "@stencil/core";
|
|
5
|
-
import { bem } from "../../../schema/bem-registry";
|
|
6
|
-
import { ClickButtonFC } from "../click-button/component";
|
|
7
|
-
const skeletonBem = bem.forBlock('kol-skeleton');
|
|
8
|
-
const BEM_CLASS_SKELETON__ACTIONS = skeletonBem('actions');
|
|
9
|
-
const BEM_CLASS_SKELETON__CONTAINER = skeletonBem('container');
|
|
10
|
-
const BEM_CLASS_SKELETON__COUNTER = skeletonBem('counter');
|
|
11
|
-
const BEM_CLASS_SKELETON__NAME = skeletonBem('name');
|
|
12
|
-
export const SkeletonFC = (props) => {
|
|
13
|
-
const { count, label, name, show, handleClick, refButton } = props;
|
|
14
|
-
const hasName = !!(show && (name === null || name === void 0 ? void 0 : name.trim()));
|
|
15
|
-
const BEM_CLASS_ROOT = skeletonBem({
|
|
16
|
-
'has-name': hasName,
|
|
17
|
-
'is-hidden': !show,
|
|
18
|
-
});
|
|
19
|
-
return (h("div", { class: BEM_CLASS_ROOT }, h("div", { class: BEM_CLASS_SKELETON__CONTAINER }, hasName && h("span", { class: BEM_CLASS_SKELETON__NAME }, name), h("div", { class: BEM_CLASS_SKELETON__COUNTER }, "Count: ", count)), h("div", { class: BEM_CLASS_SKELETON__ACTIONS }, h(ClickButtonFC, { label: label, handleClick: handleClick, refButton: refButton }))));
|
|
20
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{h as s,Fragment as n}from"@stencil/core/internal/client";import{t as a}from"./i18n.js";import{b as r}from"./bem-registry.js";import{B as o}from"./component.js";import{c as e,n as t,b as l,r as i}from"./props-from-config.js";import{l as c}from"./label.js";const p=e("show",!1,t),m=["dot","cycle","none"],u=e("variant","dot",(s=>{const n=l(s);if(m.includes(n))return n;throw new Error(`Invalid spin variant: ${n}`)}),(()=>!0)),f={optional:[c,p,u]},d=r.forBlock("kol-spin"),b=d("loader"),v=["1","2","3","neutral"],y=r=>{const{show:e,label:t,variant:l}=i(f,r);return s(o,{block:"kol-spin"},e?s(n,null,s("span",{class:d("spinner",{[l]:!0})},function(n){switch(n){case"cycle":return s("span",{class:b});case"none":return s("slot",{name:"expert"});default:return v.map((n=>s("span",{class:d("spinner-element",{[n]:!0})})))}}(l)),s("span",{"aria-busy":"true",class:"visually-hidden",role:"alert"},t||a("kol-action-running"))):s("span",{"aria-busy":"false",class:"visually-hidden",role:"alert"},t||a("kol-action-done")))};export{y as S,p as a,f as s,u as v}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface KolClickButton extends Components.KolClickButton, HTMLElement {}
|
|
4
|
-
export const KolClickButton: {
|
|
5
|
-
prototype: KolClickButton;
|
|
6
|
-
new (): KolClickButton;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{proxyCustomElement as t,h as e,Host as s,transformTag as o}from"@stencil/core/internal/client";import{_ as l}from"./tslib.es6.js";import{B as i}from"./base-web-component.js";import"./bem-registry.js";import"./props-from-config.js";import{l as n}from"./label.js";import{C as r}from"./component9.js";import{c,d as a}from"./element-interaction.js";const m={required:[n]},b=t(class extends i{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.buttonRef=c(),this.propsConfig=m,this.handleClick=()=>{console.log(this,"button clicked")}}watchLabel(t){n.apply(t,(t=>this.setRenderProp("label",t)),this.isRequired("label"))}focus(t){return Promise.resolve()}componentWillLoad(){n.apply(this._label,(t=>this.setRenderProp("label",t)),this.isRequired("label"))}render(){return e(s,{key:"68662016b5d2179edaae6a9e66b3e72c5f2fd348"},e(r,{key:"57077649088fd0de8425ab61f4923d317a15a7f5",label:this.getRenderProp("label"),refButton:this.buttonRef,handleClick:this.handleClick}))}static get watchers(){return{_label:[{watchLabel:0}]}}},[513,"kol-click-button",{_label:[1],focus:[64]},void 0,{_label:[{watchLabel:0}]}]);l([a("buttonRef")],b.prototype,"focus",null);const f=b,u=function(){"undefined"!=typeof customElements&&["kol-click-button"].forEach((t=>{"kol-click-button"===t&&(customElements.get(o(t))||customElements.define(o(t),b))}))};export{f as KolClickButton,u as defineCustomElement}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface KolSkeleton extends Components.KolSkeleton, HTMLElement {}
|
|
4
|
-
export const KolSkeleton: {
|
|
5
|
-
prototype: KolSkeleton;
|
|
6
|
-
new (): KolSkeleton;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{h as e,proxyCustomElement as t,createEvent as s,Host as n,transformTag as o}from"@stencil/core/internal/client";import{_ as i}from"./tslib.es6.js";import{B as a}from"./base-web-component.js";import{b as l,L as r}from"./bem-registry.js";import"./props-from-config.js";import{n as c}from"./name.js";import{C as h}from"./component9.js";import{c as d,d as m}from"./element-interaction.js";const u={required:[c]},f=l.forBlock("kol-skeleton"),b=f("actions"),p=f("container"),k=f("counter"),w=f("name"),v=t=>{const{count:s,label:n,name:o,show:i,handleClick:a,refButton:l}=t,r=!(!i||!(null==o?void 0:o.trim())),c=f({"has-name":r,"is-hidden":!i});return e("div",{class:c},e("div",{class:p},r&&e("span",{class:w},o),e("div",{class:k},"Count: ",s)),e("div",{class:b},e(h,{label:n,handleClick:a,refButton:l})))},y=t(class extends a{constructor(e){super(!1),!1!==e&&this.__registerHost(),this.__attachShadow(),this.loaded=s(this,"loaded",7),this.rendered=s(this,"rendered",7),this.count=0,this.label="Label",this.show=!0,this.buttonRef=d(),this.propsConfig=u,this.handleClick=()=>{var e;r.debug("Button clicked, count should be increased"),this.setState("count",(null!==(e=this.getState("count"))&&void 0!==e?e:0)+1)}}watchName(e){c.apply(e,(e=>this.setRenderProp("name",e)))}focus(e){return Promise.resolve()}async toggle(){var e;return this.setState("show",!(null!==(e=this.getState("show"))&&void 0!==e&&e)),Promise.resolve()}componentWillLoad(){c.apply(this._name,(e=>this.setRenderProp("name",e))),this.intervalId=setInterval((()=>{var e;this.loaded.emit(null!==(e=this.getState("count"))&&void 0!==e?e:0)}),2e3)}componentDidLoad(){requestAnimationFrame((()=>{this.rendered.emit()}))}disconnectedCallback(){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=void 0)}handleKeyDown(e){"Enter"!==e.key&&" "!==e.key||(r.debug("button pressed"),this.handleClick())}onKeydown(e){"Escape"===e.key&&(r.debug("Show should be toggled"),this.toggle())}render(){return e(n,{key:"2271ed7e088c9b6a22a993bdc0b1404cd732b7e8"},e(v,{key:"011fa40defd6913b8156dd4eca6a65cf551d233a",count:this.count,label:this.label,name:this.getRenderProp("name"),handleClick:this.handleClick,onLoaded:this.loaded,onRendered:this.rendered,show:this.show,refButton:this.buttonRef}))}static get watchers(){return{_name:[{watchName:0}]}}},[513,"kol-skeleton",{_name:[1],count:[32],label:[32],show:[32],focus:[64],toggle:[64]},[[0,"keydown","handleKeyDown"],[8,"keydown","onKeydown"]],{_name:[{watchName:0}]}]);i([m("buttonRef")],y.prototype,"focus",null);const g=y,j=function(){"undefined"!=typeof customElements&&["kol-skeleton"].forEach((e=>{"kol-skeleton"===e&&(customElements.get(o(e))||customElements.define(o(e),y))}))};export{g as KolSkeleton,j as defineCustomElement}
|
package/dist/components/name.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import { h } from './index-D_P2XoAc.js';
|
|
5
|
-
import { b as bem } from './bem-registry-CWN7_O1L.js';
|
|
6
|
-
|
|
7
|
-
const clickButtonBem = bem.forBlock('kol-click-button');
|
|
8
|
-
const BEM_CLASS_CLICK_BUTTON = clickButtonBem();
|
|
9
|
-
const BEM_CLASS_CLICK_BUTTON__LABEL = clickButtonBem('label');
|
|
10
|
-
const ClickButtonFC = ({ label, handleClick, refButton }) => (h("button", { class: BEM_CLASS_CLICK_BUTTON, ref: refButton, onClick: handleClick }, h("span", { class: BEM_CLASS_CLICK_BUTTON__LABEL }, label)));
|
|
11
|
-
|
|
12
|
-
export { ClickButtonFC as C };
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-D_P2XoAc.js';
|
|
5
|
-
import { _ as __decorate } from './tslib.es6-QNbPBOk5.js';
|
|
6
|
-
import { B as BaseWebComponent } from './base-web-component-XgI4wUyN.js';
|
|
7
|
-
import './common-OzsC_6kt.js';
|
|
8
|
-
import './props-from-config-Ci0dILpz.js';
|
|
9
|
-
import { l as labelProp } from './label-BRosRgdX.js';
|
|
10
|
-
import { C as ClickButtonFC } from './component-Db9HadXA.js';
|
|
11
|
-
import { d as delegateFocus, c as createCtaRef } from './element-interaction-sGYdEpmv.js';
|
|
12
|
-
import './validators-BVM40IEr.js';
|
|
13
|
-
import './label-hints-Jn18RUT-.js';
|
|
14
|
-
import './bem-registry-CWN7_O1L.js';
|
|
15
|
-
import './element-focus-BIRmGg5W.js';
|
|
16
|
-
|
|
17
|
-
const clickButtonPropsConfig = {
|
|
18
|
-
required: [labelProp],
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
const KolClickButton = class extends BaseWebComponent {
|
|
22
|
-
constructor(hostRef) {
|
|
23
|
-
super();
|
|
24
|
-
registerInstance(this, hostRef);
|
|
25
|
-
this.buttonRef = createCtaRef();
|
|
26
|
-
this.propsConfig = clickButtonPropsConfig;
|
|
27
|
-
this.handleClick = () => {
|
|
28
|
-
console.log(this, 'button clicked');
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
watchLabel(value) {
|
|
32
|
-
labelProp.apply(value, (v) => this.setRenderProp('label', v), this.isRequired('label'));
|
|
33
|
-
}
|
|
34
|
-
focus(options) {
|
|
35
|
-
return Promise.resolve();
|
|
36
|
-
}
|
|
37
|
-
componentWillLoad() {
|
|
38
|
-
labelProp.apply(this._label, (v) => this.setRenderProp('label', v), this.isRequired('label'));
|
|
39
|
-
}
|
|
40
|
-
render() {
|
|
41
|
-
return (h(Host, { key: '68662016b5d2179edaae6a9e66b3e72c5f2fd348' }, h(ClickButtonFC, { key: '57077649088fd0de8425ab61f4923d317a15a7f5', label: this.getRenderProp('label'), refButton: this.buttonRef, handleClick: this.handleClick })));
|
|
42
|
-
}
|
|
43
|
-
static get watchers() { return {
|
|
44
|
-
"_label": [{
|
|
45
|
-
"watchLabel": 0
|
|
46
|
-
}]
|
|
47
|
-
}; }
|
|
48
|
-
};
|
|
49
|
-
__decorate([
|
|
50
|
-
delegateFocus('buttonRef')
|
|
51
|
-
], KolClickButton.prototype, "focus", null);
|
|
52
|
-
|
|
53
|
-
export { KolClickButton as kol_click_button };
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import { h, r as registerInstance, c as createEvent, H as Host } from './index-D_P2XoAc.js';
|
|
5
|
-
import { _ as __decorate } from './tslib.es6-QNbPBOk5.js';
|
|
6
|
-
import { B as BaseWebComponent } from './base-web-component-XgI4wUyN.js';
|
|
7
|
-
import { L as Log } from './common-OzsC_6kt.js';
|
|
8
|
-
import './props-from-config-Ci0dILpz.js';
|
|
9
|
-
import { n as nameProp } from './name-B2Yf3EpX.js';
|
|
10
|
-
import { b as bem } from './bem-registry-CWN7_O1L.js';
|
|
11
|
-
import { C as ClickButtonFC } from './component-Db9HadXA.js';
|
|
12
|
-
import { d as delegateFocus, c as createCtaRef } from './element-interaction-sGYdEpmv.js';
|
|
13
|
-
import './element-focus-BIRmGg5W.js';
|
|
14
|
-
|
|
15
|
-
const skeletonPropsConfig = {
|
|
16
|
-
required: [nameProp],
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
const skeletonBem = bem.forBlock('kol-skeleton');
|
|
20
|
-
const BEM_CLASS_SKELETON__ACTIONS = skeletonBem('actions');
|
|
21
|
-
const BEM_CLASS_SKELETON__CONTAINER = skeletonBem('container');
|
|
22
|
-
const BEM_CLASS_SKELETON__COUNTER = skeletonBem('counter');
|
|
23
|
-
const BEM_CLASS_SKELETON__NAME = skeletonBem('name');
|
|
24
|
-
const SkeletonFC = (props) => {
|
|
25
|
-
const { count, label, name, show, handleClick, refButton } = props;
|
|
26
|
-
const hasName = !!(show && (name === null || name === void 0 ? void 0 : name.trim()));
|
|
27
|
-
const BEM_CLASS_ROOT = skeletonBem({
|
|
28
|
-
'has-name': hasName,
|
|
29
|
-
'is-hidden': !show,
|
|
30
|
-
});
|
|
31
|
-
return (h("div", { class: BEM_CLASS_ROOT }, h("div", { class: BEM_CLASS_SKELETON__CONTAINER }, hasName && h("span", { class: BEM_CLASS_SKELETON__NAME }, name), h("div", { class: BEM_CLASS_SKELETON__COUNTER }, "Count: ", count)), h("div", { class: BEM_CLASS_SKELETON__ACTIONS }, h(ClickButtonFC, { label: label, handleClick: handleClick, refButton: refButton }))));
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
const KolSkeleton = class extends BaseWebComponent {
|
|
35
|
-
constructor(hostRef) {
|
|
36
|
-
super();
|
|
37
|
-
registerInstance(this, hostRef);
|
|
38
|
-
this.loaded = createEvent(this, "loaded");
|
|
39
|
-
this.rendered = createEvent(this, "rendered");
|
|
40
|
-
this.count = 0;
|
|
41
|
-
this.label = 'Label';
|
|
42
|
-
this.show = true;
|
|
43
|
-
this.buttonRef = createCtaRef();
|
|
44
|
-
this.propsConfig = skeletonPropsConfig;
|
|
45
|
-
this.handleClick = () => {
|
|
46
|
-
var _a;
|
|
47
|
-
Log.debug('Button clicked, count should be increased');
|
|
48
|
-
this.setState('count', ((_a = this.getState('count')) !== null && _a !== void 0 ? _a : 0) + 1);
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
watchName(value) {
|
|
52
|
-
nameProp.apply(value, (v) => this.setRenderProp('name', v));
|
|
53
|
-
}
|
|
54
|
-
focus(options) {
|
|
55
|
-
return Promise.resolve();
|
|
56
|
-
}
|
|
57
|
-
async toggle() {
|
|
58
|
-
var _a;
|
|
59
|
-
this.setState('show', !((_a = this.getState('show')) !== null && _a !== void 0 ? _a : false));
|
|
60
|
-
return Promise.resolve();
|
|
61
|
-
}
|
|
62
|
-
componentWillLoad() {
|
|
63
|
-
nameProp.apply(this._name, (v) => this.setRenderProp('name', v));
|
|
64
|
-
this.intervalId = setInterval(() => {
|
|
65
|
-
var _a;
|
|
66
|
-
this.loaded.emit((_a = this.getState('count')) !== null && _a !== void 0 ? _a : 0);
|
|
67
|
-
}, 2000);
|
|
68
|
-
}
|
|
69
|
-
componentDidLoad() {
|
|
70
|
-
requestAnimationFrame(() => {
|
|
71
|
-
this.rendered.emit();
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
disconnectedCallback() {
|
|
75
|
-
if (this.intervalId) {
|
|
76
|
-
clearInterval(this.intervalId);
|
|
77
|
-
this.intervalId = undefined;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
handleKeyDown(event) {
|
|
81
|
-
if (event.key === 'Enter' || event.key === ' ') {
|
|
82
|
-
Log.debug('button pressed');
|
|
83
|
-
this.handleClick();
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
onKeydown(event) {
|
|
87
|
-
if (event.key === 'Escape') {
|
|
88
|
-
Log.debug('Show should be toggled');
|
|
89
|
-
void this.toggle();
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
render() {
|
|
93
|
-
return (h(Host, { key: '2271ed7e088c9b6a22a993bdc0b1404cd732b7e8' }, h(SkeletonFC, { key: '011fa40defd6913b8156dd4eca6a65cf551d233a', count: this.count, label: this.label, name: this.getRenderProp('name'), handleClick: this.handleClick, onLoaded: this.loaded, onRendered: this.rendered, show: this.show, refButton: this.buttonRef })));
|
|
94
|
-
}
|
|
95
|
-
static get watchers() { return {
|
|
96
|
-
"_name": [{
|
|
97
|
-
"watchName": 0
|
|
98
|
-
}]
|
|
99
|
-
}; }
|
|
100
|
-
};
|
|
101
|
-
__decorate([
|
|
102
|
-
delegateFocus('buttonRef')
|
|
103
|
-
], KolSkeleton.prototype, "focus", null);
|
|
104
|
-
|
|
105
|
-
export { KolSkeleton as kol_skeleton };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{a as e}from"./tslib.es6-QNbPBOk5.js";import{h as s}from"./index-D_P2XoAc.js";import{c as l}from"./clsx-COFh-Vc8.js";const a=1;function o(e){return function(e){return e>=a&&e<=6}(e)?`h${e}`:"strong"}const r=(r,n)=>{var{class:c,level:t=a}=r,i=e(r,["class","level"]);const d=o(t);return s(d,Object.assign({class:l("kol-headline",`kol-headline--${d}`,c)},i),n)},n=(a,o)=>{var{class:r}=a,n=e(a,["class"]);return s("p",Object.assign({class:l("kol-headline kol-headline--group kol-headline--secondary",r)},n),o)},c=(o,c)=>{var{secondaryHeadline:t,level:i=a,class:d,HeadingGroupProps:p={},SecondaryHeadlineProps:u={}}=o,h=e(o,["secondaryHeadline","level","class","HeadingGroupProps","SecondaryHeadlineProps"]);const j=Object.assign({level:i},h);if(!t)return s(r,Object.assign({class:l(d,"kol-headline--single")},j),c);const{class:b}=p,g=e(p,["class"]),k=Object.assign({class:l("kol-heading-group",b)},g);return s("hgroup",Object.assign({},k),s(r,Object.assign({class:l(d,"kol-headline--group","kol-headline--primary")},j),c),s(n,Object.assign({},u),t))};export{c as K,o as g}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{a as e}from"./tslib.es6-QNbPBOk5.js";import{p as i,j as t,D as o}from"./common-OzsC_6kt.js";import{S as s,b as l,s as r}from"./component-C0zMsvYl.js";import{r as a}from"./aria-labelledby-CLehu03h.js";import{c as n,n as d,b as h,a as c,t as p}from"./props-from-config-Ci0dILpz.js";import{a as u,c as m,n as v}from"./dev.utils-CwXr_J8N.js";import{K as b,d as f}from"./events-CRHxtwup.js";import{F as g,a as y}from"./behavior-BMXrK4gj.js";import{d as j}from"./disabled-Cqhc40CU.js";import{j as B,h as _,e as L}from"./component-BvvE8aim.js";import{l as O}from"./label-with-expert-slot-CicRes-W.js";import{n as C}from"./name-B2Yf3EpX.js";import{B as N}from"./base-web-component-XgI4wUyN.js";import{c as x}from"./item-e4SzwxHe.js";import{c as F}from"./item-BMniY_My.js";import{T}from"./behavior-B4IW5_Qt.js";import{h as w}from"./index-D_P2XoAc.js";import{t as K}from"./i18n-DtLKn3Xt.js";import{b as P}from"./bem-registry-CWN7_O1L.js";import{c as k}from"./clsx-COFh-Vc8.js";import{B as A}from"./component-scm3PBuq.js";import{T as D}from"./component-BKfXEtN0.js";import{P as M}from"./component-Drxdk3mb.js";import{A as I}from"./component-BiYFPpjn.js";function H(e,i){return Boolean(e)&&!0===i}function S(e){var i;return"string"==typeof e?"error":null!==(i=null==e?void 0:e._type)&&void 0!==i?i:"error"}const E=n("hideMsg",!1,d),q=n("hint","",h),z=n("infoPopover",void 0,(function(e){if("object"==typeof e&&null!==e)return e;throw new Error("Invalid info popover: "+typeof e)})),X=c(),$=n("msg",void 0,(function(e){if("string"==typeof e)try{return i(e)}catch(i){return e}return e}),(function(e){return void 0===e||("string"==typeof e?e.length>0:t(e)&&o(e._description,1))})),Y=n("touched",!1,d),R=i=>{var{id:t,class:o,hint:s,baseClassName:l="kol-form-field"}=i,r=e(i,["id","class","hint","baseClassName"]);return s?w("span",Object.assign({class:k(`${l}__hint`,o),id:u(t||"","hint")},r),s):null},W=i=>{var{component:t="label",id:o,baseClassName:r="kol-form-field",class:a,accessKey:n,shortKey:d,label:h,hideLabel:c,hasExpertSlot:p,omitId:m,showBadge:v=!0,readOnly:b,infoPopover:f}=i,g=e(i,["component","id","baseClassName","class","accessKey","shortKey","label","hideLabel","hasExpertSlot","omitId","showBadge","readOnly","infoPopover"]);const y=!p&&c,j=!1===v?void 0:l(n,d);return w(t,Object.assign({},g,{class:k(`${r}__label`,a),id:y||m?void 0:u(o,"label"),hidden:y,htmlFor:"legend"===t?void 0:o}),w(s,{class:`${r}__label-text`,label:p?"":null!=h?h:"",badgeText:j},w("slot",{name:"expert"})),!p&&b&&w("span",{class:`${r}__label__read-only`,"aria-hidden":"true"},"(",K("kol-readonly"),")"),!p&&f&&w("span",null,w(M,Object.assign({},f.popoverButton),w("div",{class:"kol-popover-button__popover--styled"},f.content))))},Q=t=>{var o,s,{alert:l,hideMsg:r,msg:a,id:n,class:d}=t,h=e(t,["alert","hideMsg","msg","id","class"]);const c=function(e){if("string"==typeof e)try{return i(e)}catch(i){return{_description:e,_type:"error"}}return e&&"object"==typeof e&&!("_type"in e)?Object.assign(Object.assign({},e),{_type:"error"}):e}(a);return w(I,Object.assign({alert:!r&&(null!==(o=null==c?void 0:c._alert)&&void 0!==o?o:!0===l),class:k("kol-form-field__msg",r&&"visually-hidden",d),closerAriaDescriptionId:v(),handleCloserClick:()=>{},hasCloser:!1,headingId:m("alert-heading"),id:u(n,"msg"),label:"",level:0,refCloserButton:()=>{},refCloserTooltip:()=>{},type:null!==(s=null==c?void 0:c._type)&&void 0!==s?s:"error",variant:"msg"},h),(null==c?void 0:c._description)||void 0)},U=P.forBlock("kol-form-field"),V=({hideLabel:e,label:i,renderNoTooltip:t})=>!t&&!r(i)&&!0===e,J=e=>{const i=S(e);return{[i]:!0,[`msg-type-${i}`]:!0}},G=(i,t)=>{const{renderNoLabel:o,renderNoTooltip:s,renderNoHint:a,id:n,required:d,alert:h,disabled:c,class:p,msg:m,hideMsg:v,hideLabel:b,label:f,infoPopover:g,hint:y,accessKey:j,shortKey:_,counter:L,readOnly:O,touched:C,maxLength:N,ariaDescribedBy:x,showBadge:F,tooltipAlign:T,variant:P,component:M="div",orientation:I,refInput:S,refTooltip:E}=i,q=e(i,["renderNoLabel","renderNoTooltip","renderNoHint","id","required","alert","disabled","class","msg","hideMsg","hideLabel","label","infoPopover","hint","accessKey","shortKey","counter","readOnly","touched","maxLength","ariaDescribedBy","showBadge","tooltipAlign","variant","component","orientation","refInput","refTooltip"]),z=r(f),X=H(m,C),$=l(j,_),Y=V({hideLabel:b,label:f,renderNoTooltip:s}),G="fieldset"===M;return w(A,Object.assign({component:M,block:"kol-form-field",modifiers:Object.assign({disabled:Boolean(c),required:Boolean(d),touched:Boolean(C),"hide-label":Boolean(b),"read-only":Boolean(O),"hidden-msg":Boolean(v)},X?J(m):{}),class:k(P&&B(P,"form-field"),p),disabled:!(!G||!c)||void 0,"aria-describedby":x},q),!o&&w(W,{component:G?"legend":"label",class:G?"kol-form-field__label--legend":void 0,id:n,hasExpertSlot:z,hideLabel:b,label:f,accessKey:j,shortKey:_,readOnly:O,showBadge:F,infoPopover:g}),w("div",{class:U("input",{"orientation-horizontal":"horizontal"===I,"orientation-vertical":"vertical"===I}),ref:S},t,Y&&w("div",{class:U("tooltip")},w(D,{badgeText:$||"",label:f,align:T,id:u(n,"label"),refFloating:E}))),L&&!("soft"===L.maxLengthBehavior&&"number"!=typeof L.maxLength)&&w("div",{class:U("counter")},w("span",{"aria-hidden":"true",class:U("counter"),ref:L.visualRef}),w("span",{"aria-live":"polite",class:"visually-hidden",id:u(n,"counter"),ref:L.ariaRef})),X&&w(Q,{id:n,alert:h,hideMsg:v,msg:m}),!a&&w(R,{id:n,hint:y}),"number"==typeof N&&!L&&w("span",{id:u(n,"character-limit-hint"),class:"visually-hidden"},K("kol-character-limit-hint",{placeholders:{limit:String(N)}})))};class Z extends N{constructor(){super(...arguments),this.tooltipBehavior=new T(N.stateLess),this.smartButton=x((()=>this.host)),this.infoPopover=F({getFlagHost:()=>this.host,getOpen:()=>!0===this.infoPopoverOpen,setOpen:e=>{this.infoPopoverOpen=e}}),this.focusEventSent=!1,this.handleChange=(e,i)=>{var t,o;e.stopPropagation(),void 0===i&&(i=e.target.value),this.emit(b.change,i),null===(o=null===(t=this._on)||void 0===t?void 0:t.onChange)||void 0===o||o.call(t,e,i)},this.handleInput=(e,i)=>{var t,o;e.stopPropagation(),void 0===i&&(i=e.target.value),this.emit(b.input,i),this.formAssociation.setFormAssociatedValue(i),null===(o=null===(t=this._on)||void 0===t?void 0:t.onInput)||void 0===o||o.call(t,e,i)},this.handleClick=e=>{var i,t;this.emit(b.click),null===(t=null===(i=this._on)||void 0===i?void 0:i.onClick)||void 0===t||t.call(i,e)},this.handleFocus=e=>{var i,t;this.focusEventSent||(this.emit(b.focus),null===(t=null===(i=this._on)||void 0===i?void 0:i.onFocus)||void 0===t||t.call(i,e),this.focusEventSent=!0),this.shared.setState("inputHasFocus",!0)},this.handleBlur=e=>{this.handleFocusLeave(e),this.shared.setState("inputHasFocus",!1)},this.handleKeyDown=e=>{var i,t;this.emit(b.keydown),null===(t=null===(i=this._on)||void 0===i?void 0:i.onKeyDown)||void 0===t||t.call(i,e)},this.setInputRef=e=>{this.tooltipAnchor=e,e&&this.isTooltipShown()&&(this.tooltipBehavior.initContext(e),this.tooltipBehavior.syncListeners(void 0,e,!0))},this.setTooltipRef=e=>{this.tooltipBehavior.setTooltipElementRef(e)}}get shared(){return this}initFormAssociation(e,i){this.formAssociation=new g(N.stateLess,{host:this.host,type:e,name:i})}syncFormField(){this.smartButton.syncListeners(),this.infoPopover.syncListeners(),this.syncAriaDetails()}destroyFormField(){this.tooltipBehavior.destroy(),this.smartButton.destroy(),this.infoPopover.destroy()}connectedCallback(){this.syncFormField(),this.tooltipAnchor&&this.isTooltipShown()&&(this.tooltipBehavior.initContext(this.tooltipAnchor),this.tooltipBehavior.syncListeners(void 0,this.tooltipAnchor,!0))}getInfoPopover(){const i=this.shared.getRenderProp("infoPopover");if(!i)return;const{_content:t}=i,o=e(i,["_content"]);return{popoverButton:this.infoPopover.getFcProps(Object.assign(Object.assign({_variant:"ghost"},o),{_hideLabel:!0,_inline:!0})),content:t}}getSmartButtonFcProps(e,i){if("object"==typeof e&&null!==e)return this.smartButton.getFcProps(Object.assign({_hideLabel:!0,_disabled:i},e),{class:"kol-input-container__smart-button"})}applyAriaDetails(e){y.apply(e,(e=>this.shared.setRenderProp("ariaDetails",e))),this.formAssociation.watchAriaDetails(e),this.syncAriaDetails()}syncAriaDetails(){var e,i,t,o;const s=null===(i=null===(e=this.host)||void 0===e?void 0:e.shadowRoot)||void 0===i?void 0:i.querySelector("input, select, textarea");if(!s||!("ariaDetailsElements"in s))return;const l=a(this.host,this.shared.getRenderProp("ariaDetails")),r=this.pushedDetailsElements;(s!==this.ariaDetailsTarget||(null!==(t=null==r?void 0:r.length)&&void 0!==t?t:0)!==l.length||null!==(o=null==r?void 0:r.some(((e,i)=>e!==l[i])))&&void 0!==o&&o)&&(this.ariaDetailsTarget=s,this.pushedDetailsElements=l,s.ariaDetailsElements=l.length?l:null)}applyDisabled(e){j.apply(e,(e=>this.shared.setRenderProp("disabled",e)))}applyHideLabel(e){_.apply(e,(e=>this.shared.setRenderProp("hideLabel",e)))}applyHideMsg(e){E.apply(e,(e=>this.shared.setRenderProp("hideMsg",e)))}applyHint(e){q.apply(e,(e=>this.shared.setRenderProp("hint",e)))}applyInfoPopover(e){z.apply(e,(e=>this.shared.setRenderProp("infoPopover",e)))}applyLabel(e){O.apply(e,(e=>this.shared.setRenderProp("label",e)),this.isRequired("label"))}applyMsg(e){$.apply(e,(e=>this.shared.setRenderProp("msg",e)))}applyName(e){C.apply(e,(e=>this.shared.setRenderProp("name",e))),this.formAssociation.watchName(e)}applyOn(e){X.apply(e,(e=>this.shared.setRenderProp("on",e)))}applySyncValueBySelector(e){this.formAssociation.watchSyncValueBySelector(e)}applyTooltipAlign(e){L.apply(null!=e?e:"top",(e=>this.shared.setRenderProp("tooltipAlign",e)))}applyTouched(e){Y.apply(e,(e=>this.shared.setRenderProp("touched",e)))}get eventHost(){var e,i;return null!==(i=null===(e=this.formAssociation)||void 0===e?void 0:e.host)&&void 0!==i?i:this.host}emit(e,i){this.eventHost&&f(this.eventHost,e,i)}handleFocusLeave(e){var i,t;if(this._disabled)return;const o=this.eventHost,s=(null==o?void 0:o.shadowRoot)||o,l=(null==s?void 0:s.contains(e.relatedTarget))||o===e.relatedTarget;this.focusEventSent&&!l&&(this._touched=!0,this.emit(b.blur),null===(t=null===(i=this._on)||void 0===i?void 0:i.onBlur)||void 0===t||t.call(i,e),this.focusEventSent=!1)}getAria(){const e=this.shared;return(({id:e,msg:i,hint:t,touched:o})=>{const s="string"==typeof i?i:null==i?void 0:i._description,l=Boolean(s&&s.length>0),r="error"===S(i)&&l&&!0===o,a="string"==typeof t&&t.length>0,n=[];return l&&!0===o&&n.push(u(e,"msg")),a&&n.push(u(e,"hint")),{hasError:r,hasHint:a,ariaDescribedBy:n}})({id:e.getState("id"),msg:e.getRenderProp("msg"),hint:e.getRenderProp("hint"),touched:e.getRenderProp("touched")})}showAsAlert(){return Boolean(this.shared.getRenderProp("touched"))&&!this.shared.getState("inputHasFocus")}isTooltipShown(){const e=this.shared;return V({hideLabel:e.getRenderProp("hideLabel"),label:p(e.getRenderProp("label"))})}getLabelTooltipRefs(){return{refInput:this.setInputRef,refTooltip:this.setTooltipRef}}getFormFieldProps({class:e,accessKey:i,shortKey:t,variant:o,counter:s,maxLength:r,readOnly:a,renderNoLabel:n,renderNoTooltip:d,required:h}){const c=this.shared,p=c.getState("id"),m=c.getRenderProp("label"),v=c.getRenderProp("tooltipAlign");return this.isTooltipShown()?(this.tooltipBehavior.watchAlign(v),this.tooltipBehavior.watchBadgeText(l(i,t)||""),this.tooltipBehavior.watchId(u(p,"label")),this.tooltipBehavior.watchLabel(m)):this.tooltipBehavior.destroy(),{id:p,disabled:c.getRenderProp("disabled"),msg:c.getRenderProp("msg"),hint:c.getRenderProp("hint"),label:m,hideLabel:c.getRenderProp("hideLabel"),hideMsg:c.getRenderProp("hideMsg"),touched:c.getRenderProp("touched"),showBadge:Boolean(i)||Boolean(t),required:h,readOnly:a,accessKey:i,shortKey:t,maxLength:r,counter:s,variant:o,class:e,tooltipAlign:v,alert:this.showAsAlert(),infoPopover:this.getInfoPopover(),renderNoLabel:n,renderNoTooltip:d,refInput:d?void 0:this.setInputRef,refTooltip:this.setTooltipRef}}}function ee({ariaDescribedBy:e,hideLabel:i,label:t}){return{title:"",autoCapitalize:"off",autoCorrect:"off","aria-describedby":(null==e?void 0:e.length)?e.join(" "):void 0,"aria-label":i&&t?p(t):void 0}}const ie={required:[O],optional:[y,j,_,E,q,z,X,$,C,L,Y]};export{Z as B,G as F,R as a,W as b,ee as c,ie as f,S as g,H as i}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{L as o,d as t,w as s}from"./common-OzsC_6kt.js";import{a}from"./index-D_P2XoAc.js";const e=(()=>{a((o=>{try{o.shadowRoot instanceof ShadowRoot&&t(o,s(o))}catch(o){}return"default"})),import("./devtools-QEDvmhav.js").then((o=>{"object"==typeof o&&null!==o&&"function"==typeof o.initialize&&o.initialize()})).catch((t=>{o.error(t)}))})||(()=>{});export{e as g}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{r as t}from"./aria-labelledby-CLehu03h.js";import{G as e,L as o,p as l}from"./common-OzsC_6kt.js";import{h as i,F as s,f as n}from"./index-D_P2XoAc.js";import{B as a}from"./base-web-component-XgI4wUyN.js";import{c as r}from"./item-e4SzwxHe.js";import{c}from"./item-pool-BOxAYePG.js";import{c as d}from"./item-DRC1CmzC.js";import{c as h,e as b,n as u,a as p,r as v,t as f,v as m}from"./props-from-config-Ci0dILpz.js";import{l as y}from"./label-lang-segment-2_GnxjFp.js";import{v as g,j as k}from"./component-BvvE8aim.js";import{c as j,d as C,e as w}from"./component-names-Dhbtt0mX.js";import{t as _}from"./i18n-DtLKn3Xt.js";import{b as S}from"./bem-registry-CWN7_O1L.js";import{B as x}from"./component-scm3PBuq.js";import{B as O}from"./component-Dt6efHXY.js";import{I as $}from"./component-C5QCCLLa.js";import{L}from"./component-Ua7-J4C-.js";import{r as F}from"./component-C0zMsvYl.js";import{S as D}from"./component-ChtW1HQv.js";import{T as z}from"./component-BKfXEtN0.js";import{a as B}from"./tslib.es6-QNbPBOk5.js";import{n as I,c as A}from"./dev.utils-CwXr_J8N.js";import{d as E,K as T}from"./events-CRHxtwup.js";import{A as M}from"./component-BiYFPpjn.js";import{l as H}from"./level-CA1s1_Mf.js";import{c as N}from"./element-interaction-sGYdEpmv.js";import{u as K,l as P,d as W,D as X}from"./scroll-lock-CKnC0y0o.js";import{h as Y}from"./tooltip-open-tracking-D3tCiiGP.js";import{d as R,w as G}from"./width-CgYY17tL.js";import{r as Q,C as U}from"./component-gj7TBL0i.js";import{T as q}from"./behavior-B4IW5_Qt.js";import{C as J}from"./keyboard-DNd73LVa.js";const V=(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=h("fixedCols",[0,0],(t=>b(t)),(t=>2===t.length&&t.every(Z))),et=h("hasSettingsMenu",!1,u),ot=p();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=h("data",[],lt,it),nt=h("dataFoot",[],lt,it),at=t=>Array.isArray(t)&&t.every((t=>Array.isArray(t))),rt=h("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=h("loading",!1,u),dt=h("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:[y,st],optional:[tt,et,ot,nt,rt,ct,dt,g]},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(" + ")})`},wt=t=>void 0===t?[]:Array.isArray(t)?t:[t],_t=t=>{var e;return null!==(e=t?t.keyPropertyName:void 0)&&void 0!==e?e:"id"},St=t=>{const e=t?wt(t.selectedKeys):[];return{disabledKeys:new Set((t?wt(t.disabledKeys):[]).map(String)),keyPropertyName:_t(t),selectedKeys:e,selectedKeysSet:new Set(e.map(String))}},xt=(t,e)=>t.filter((t=>!e.disabledKeys.has(String(t[e.keyPropertyName])))),Ot=S.forBlock("kol-table"),$t=Ot("body"),Lt=Ot("cell-actions"),Ft=Ot("cell-states"),Dt=Ot("footer"),zt=Ot("head"),Bt=Ot("head-row"),It=Ot("scroll-container"),At=Ot("selection-icon"),Et=Ot("selection-input-tooltip"),Tt=Ot("sort"),Mt=Ot("sort-button"),Ht=Ot("sort-order"),Nt=Ot("table"),Kt=`${Ot("focus-element")} ${Ot("caption")}`,Pt="caption",Wt=(t,e)=>mt(t.fixedCols,t.stickyColsDisabled,t.maxCols,e),Xt=(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}),Yt=(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)},Rt=t=>{const e=_("kol-sort");return"number"==typeof t&&t>0?`${e} – ${_("kol-table-sort-order").replace("{{order}}",`${t}`)}`:e},Gt=(t,e,o,l,s)=>{if(!1===e.visible)return"";const n=!1!==(null==e?void 0:e.sortable)&&"string"==typeof e.sortDirection;let a="none",r="kolicon-sort-neutral";if(n&&e.sortDirection)switch(e.sortDirection){case"ASC":r="kolicon-sort-asc",a="ascending";break;case"DESC":r="kolicon-sort-desc",a="descending";break;default:a="none"}const c=s?"row":"number"==typeof e.colSpan&&e.colSpan>1?"colgroup":"col",d="number"==typeof e.sortOrder&&e.sortOrder>0?e.sortOrder:void 0,h=void 0!==e.width?`${e.width}px`:void 0,b=Wt(t,l),{left:u,right:p}=Xt(t,b,l),v=e.textAlign,f=n?e.sortDirection:void 0;return i("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?i("span",{class:Tt},i(O,Object.assign({},t.getButtonFcProps(`sort-${s?"vertical":"horizontal"}-${o}-${l}`,{_icons:{right:r},_label:e.label,_ariaDescription:Rt(d),_on:{onClick:o=>{t.handleSort(o,{key:e.key,currentSortDirection:f})}}},{class:Mt}))),d&&i("span",{"aria-hidden":"true",class:Ht},d)):e.label)},Qt=(t,e,o,l,s=!1)=>i("tr",{class:Ot("row",{body:!s,footer:s}),key:`row-${Yt(t,e,o)}`},((t,e,o)=>{var l;const{handleSelectionChange:s,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 i("td",{key:`tbody-${o}-selection`,class:Ot("cell",{selection:!0})},i("div",{class:Ot("selection",{checked:b})},d?i("label",{class:Ot("selection-label",{disabled:u})},i($,{class:At,icons:"kolicon "+(b?"kolicon-check":""),label:""}),i("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];s(t,e)}}))):i("label",{class:Ot("selection-label")},i("input",Object.assign({class:Ot("selection-input",{radio:!0})},v,{type:"radio",onInput:t=>{s(t,[c])}}))),i("div",{class:Et},i(z,{label:p,badgeText:"",id:`${c}-label`,refFloating:()=>{}}))))})(t,e,o),e.map(((e,s)=>((t,e,o,l,s)=>{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 Gt(t,e,o,l,s);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}=Xt(t,b,e.colIndex),v="function"==typeof e.render,f=e.textAlign;return i("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)=>i("div",{class:Lt},e.actions(o).map(((e,o)=>{const s=`action-${l}-${o}`;return"button"===e.type?i("span",{key:s},i(O,Object.assign({},t.getButtonFcProps(s,e)))):"link"===e.type?i("span",{key:s},i(L,Object.assign({},t.getLinkFcProps(s,e)))):null}))))(t,r,e.data,n):h&&d&&e.data?((t,e,o)=>{const l=t.key;if(!l)return"";const s=e[l];return s?i("div",{class:Ft},s.map(((t,e)=>"badge"===t.type?i(j,Object.assign({key:`state-${o}-${e}`},t)):null))):""})(d,e.data,n):v?"":e.label)})(t,e,o,s,l)))),Ut=(t,e,o)=>{const l=t.headers.vertical.length+ft(null==o?void 0:o[0])+(t.selection?1:0);return i("tr",{"aria-hidden":"true",class:Ot("spacer",{[e]:!0})},i("td",{class:Ot("spacer-line",{[e]:!0}),colSpan:l}))},qt=t=>{const e=v(ht,t),{data:o,dataFoot:l,externalLabelElements:n,fixedCols:a,hasScrollbar:r,hasSettingsMenu:c,headers:d,label:h,loading:b,refScrollContainer:u,refTable:p,selection:m,stickyColsDisabled:y,variant:g}=e,j=_("kol-no-entries"),C=ut(d),w=vt(d.horizontal,o),S=Object.assign(Object.assign({},e),{fixedOffsets:yt(C.cells,w,a,y),maxCols:w,primaryHeaders:C,selectionModel:St(m),translateNoEntries:j}),O=jt({data:o,dataFoot:l,headers:d,isFoot:!1,noEntriesLabel:j,primaryHeaders:C}),L=0===n.length;return i(x,{block:"kol-table",class:k(g,"table")},c&&t.renderSettings(d.horizontal),i("div",{ref:u,class:It,tabindex:r?L?"-1":"0":void 0},i("table",{ref:p,"aria-labelledby":L?Pt:void 0,class:Nt,style:{minWidth:Ct(d)}},L&&i("caption",{class:Kt,id:Pt,ref:t=>{t&&(r?t.tabIndex=0:t.removeAttribute("tabindex"))}},F(h)),i("thead",{class:zt},[d.horizontal.map(((t,e)=>i("tr",{class:Bt,key:`thead-${e}`},m&&(t=>{const{data:e,handleSelectionChange:o,selection:l,selectionModel:s}=t;if(!l)return i("td",{class:Ot("cell",{header:!0}),key:"thead-0"});if(!1===l.multiple)return i("th",{scope:"col",key:"thead-0-selection",class:Ot("cell",{header:!0,selection:!0})},i("span",{class:"visually-hidden"},_("kol-table-selection")));const n=s.selectedKeys.filter((t=>!s.disabledKeys.has(String(t)))).length,a=n===xt(e,s).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"),i("th",{scope:"col",key:"thead-0-selection",class:Ot("cell",{header:!0,selection:!0})},i("span",{class:"visually-hidden"},_("kol-table-selection")),i("div",{class:Ot("selection",{checked:a,indeterminate:r})},i("label",{class:Ot("selection-label")},i($,{class:At,icons:"kolicon "+(r?"kolicon-minus":a?"kolicon-check":""),label:""}),i("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,s,!a))}})),i("div",{class:Et},i(z,{label:c,badgeText:"",refFloating:()=>{}}))))})(S),0===e&&(({headers:t})=>{const{horizontal:e,vertical:o}=t;if(0===e.length||0===o.length)return i(s,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 i("td",{"aria-hidden":"true",colSpan:o.length,rowSpan:e.length,style:l>0?{width:`${l}px`}:void 0})})(S),Array.isArray(t)&&t.map(((t,o)=>Gt(S,t,e,o,!1)))))),Ut(S,"head",d.horizontal)]),i("tbody",{class:$t},i("div",{class:Ot("loader",{shown:b})},i(D,{label:_(b?"kol-table-data-loading":"kol-table-data-loaded").replace("{{caption}}",f(h)),show:b,variant:"cycle"})),O.map(((t,e)=>Qt(S,t,e,!0)))),(t=>{const{dataFoot:e,headers:o,primaryHeaders:l,translateNoEntries:s}=t;if(0===e.length)return null;const n=jt({data:e,dataFoot:e,headers:o,isFoot:!0,noEntriesLabel:s,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 i("tfoot",{class:Dt},[Ut(t,"foot",n),n.map(((t,e)=>Qt(r,t,e,!0,!0)))])})(S))))},Jt=({dialog:t,card:e},o)=>i(X,Object.assign({},t),e?i(U,Object.assign({},e),o):o),Vt=S.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"),s=_("kol-table-settings-apply"),n=_("kol-table-settings-error-all-invisible");let d,h=!1,b=!1;const u=()=>{h=!0,e()},p=c((()=>r(t)),(t=>t.syncListeners()),(t=>t.destroy())),v=((t,e)=>{const o=N(),l=N(),i=new q(a.stateLess),s=I(),n=A("dialog-heading"),r={};let c,h=!0,b={};const u=t=>!d||E(d,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;Y(t),t.defaultPrevented||(null===(e=b.onCancel)||void 0===e||e.call(b,t),t.defaultPrevented||u(T.cancel)||t.preventDefault())},g=t=>{var e;t.target===o.el&&(K(r),null===(e=b.onClose)||void 0===e||e.call(b),u(T.close))},k=()=>{i.hideTooltip(),p(),u(T.close)};return{getFcProps:e=>{var a,r,d;let u="",p=0,j="blank",C="100%";y.apply(e.label,(t=>{u=t})),H.apply(null!==(a=e.level)&&void 0!==a?a:0,(t=>{p=t})),R.apply(e.on,(t=>{b=t})),m.apply(null!==(r=e.variant)&&void 0!==r?r:"blank",(t=>{j=t})),G.apply(null!==(d=e.width)&&void 0!==d?d:"100%",(t=>{C=t}));const w="card"===j;return w&&!c&&(c=Q(t()),i.componentWillLoad({label:c.label,align:c.tooltipAlign})),{dialog:{blockClass:W(j),handleCancel:v,handleClose:g,label:f(u),labelledBy:w?n:void 0,modal:h,refDialog:o,width:C},card:w&&c?{ariaDescriptionId:s,closeButtonProps:c,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(r)):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(),K(r),i.destroy()}}})(t,u),g=A("alert-heading"),k=I();let j,S=[],x=[],$=null;const L=()=>{var t;return null!==(t=x[x.length-1])&&void 0!==t?t:[]},F=t=>{x=x.map(((e,o,l)=>o===l.length-1?t:e)),u()},D=(t,e)=>{const o=[...L()],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),F(o)},z=t=>{if(t.preventDefault(),!L().some((t=>!1!==t.visible)))return $=n,void u();if(d){$=null,S=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=B(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(d,T.changeHeaderCells,t),v.close()}},X=t=>{t&&(d=t)};return{beginRender:()=>{p.beginRender(),b=h,h=!1},render:t=>{var e;b||t===j||(j=t,S=(e=t).map((t=>[...t])),x=e.map((t=>t.map((t=>Object.assign({},t))))));const n=L();return i("div",{class:Vt,ref:X},i("div",{class:"kol-table-settings"},i(O,Object.assign({},p.get("toggle").getFcProps({_icons:"kolicon-settings",_label:o,_hideLabel:!0,_on:{onClick:()=>v.show(!0)}})))),i(Jt,Object.assign({},v.getFcProps({label:o,variant:"card",width:"fit-content"})),i("div",{class:"kol-table-settings__content"},$&&i("div",{class:"kol-table-settings__error-message"},i(M,{alert:!1,closerAriaDescriptionId:k,handleCloserClick:te,hasCloser:!1,headingId:g,label:$,level:0,refCloserButton:te,refCloserTooltip:te,type:"error",variant:"msg"})),i("form",{onSubmit:z},i("div",{class:"kol-table-settings__columns"},n.map(((t,e)=>((t,e,o)=>i("div",{key:t.key,class:"kol-table-settings__column"},i(w,{_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=L().map((o=>o.key===t&&!1!==o.hidable?Object.assign(Object.assign({},o),{visible:Boolean(e)}):o));F(o)})(null!==(l=t.key)&&void 0!==l?l:"",o)}}}),i("span",{class:"kol-table-settings__column-label"},t.label),i(C,{_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=L().map((e=>e.key===t&&!1!==e.resizable?Object.assign(Object.assign({},e),{width:o}):e));F(l)})(null!==(l=t.key)&&void 0!==l?l:"",o)}}}),i(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 D(null!==(e=t.key)&&void 0!==e?e:"","up")}},_disabled:!1===t.sortable||0===e}))),i(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 D(null!==(e=t.key)&&void 0!==e?e:"","down")}},_disabled:!1===t.sortable||e===o.length-1})))))(t,e,n)))),i("div",{class:"kol-table-settings__actions"},i(O,Object.assign({},p.get("cancel").getFcProps({_label:l,_variant:"secondary",_on:{onClick:()=>(x=S.map((t=>[...t])),$=null,u(),void v.close())}}))),i(O,Object.assign({},p.get("apply").getFcProps({_label:s,_variant:"primary",_type:"submit"}))))))))},sync:()=>{p.endRender(),v.syncListeners()},destroy:()=>{p.destroy(),v.destroy()}}};class oe extends a{constructor(){super(...arguments),this.hasExternalTableLabelRefs=!1,this.cellRenderTimeouts=new Map,this.buttonItems=c((()=>r((()=>this.host))),(t=>t.syncListeners()),(t=>t.destroy())),this.settings=ee((()=>this.host),(()=>n(this))),this.linkItems=c((()=>d((()=>n(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:I()]}))))(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){y.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){g.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")[J.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")[J.onSelectionChange];"function"==typeof o&&o(t,e),this.host&&E(this.host,T.selectionChange,e)}emitSort(t,e){const o=this.getRenderProp("on")[J.onSort];"function"==typeof o&&e.key&&o(t,e),this.host&&E(this.host,T.sort,e)}renderTableStatelessFC(){return this.buttonItems.beginRender(),this.linkItems.beginRender(),this.settings.beginRender(),i(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,V as v}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{h as s}from"./index-D_P2XoAc.js";import{s as i,X as t}from"./common-OzsC_6kt.js";import{B as a}from"./base-web-component-XgI4wUyN.js";import{b as o,e,a as h,c as r,d as l,B as p}from"./component-Dt6efHXY.js";import{F as n}from"./behavior-BMXrK4gj.js";import{T as d}from"./behavior-B4IW5_Qt.js";import{a as m,b as c,c as y,f as b,g as u,h as f,s as v,i as C,l as j,d as x,t as I,e as B,v as A}from"./component-BvvE8aim.js";import{d as g}from"./disabled-Cqhc40CU.js";import{i as D}from"./id-CIYvVaNr.js";import"./props-from-config-Ci0dILpz.js";import{l as K}from"./label-with-expert-slot-CicRes-W.js";import{n as T}from"./name-B2Yf3EpX.js";import{v as w}from"./access-and-short-key-ijzCZfHm.js";import{c as E}from"./element-interaction-sGYdEpmv.js";import{d as H,K as L}from"./events-CRHxtwup.js";import{p as S,a as P}from"./controller-Cb-96wE-.js";class F extends a{constructor(){super(...arguments),this.ctaRef=E(),this.propsConfig=o,this.tooltipBehavior=new d(this.stateAccess),this.handleClick=s=>{s.stopPropagation(),this.tooltipBehavior.hideTooltip();const t=this.getRenderProp("type");if("submit"===t)S({form:this.host});else if("reset"===t)P({form:this.host});else{this.formAssociation.setFormAssociatedValue(this.formValue);const t=this.getRenderProp("on").onClick;"function"==typeof t&&(i(s,this.ctaRef.el),t(s,this.formValue))}this.host&&H(this.host,L.click,this.formValue)},this.handleMouseDown=s=>{var i,t;null===(t=(i=this.getRenderProp("on")).onMouseDown)||void 0===t||t.call(i,s),this.host&&H(this.host,L.mousedown)},this.handleFocus=s=>{var i,t;null===(t=(i=this.getRenderProp("on")).onFocus)||void 0===t||t.call(i,s),this.host&&H(this.host,L.focus)},this.handleBlur=s=>{var i,t;null===(t=(i=this.getRenderProp("on")).onBlur)||void 0===t||t.call(i,s),this.host&&H(this.host,L.blur)}}initFormAssociation(){this.formAssociation=new n(a.stateLess,{host:this.host,type:"button"})}unsetButtonTabIndex(){this.unsetRenderProp("tabIndex")}initTooltipBehavior(){this.tooltipBehavior.componentWillLoad({label:this.getRenderProp("label"),align:this.getRenderProp("tooltipAlign")})}syncTooltipListeners(){this.ctaRef.el&&this.tooltipBehavior.syncListeners(void 0,this.ctaRef.el,!0)}destroyTooltipBehavior(){this.tooltipBehavior.destroy()}applyAccessKey(s,i){m.apply(s,(s=>this.setRenderProp("accessKey",s))),w(s,i)}applyAriaControls(s){c.apply(s,(s=>this.setRenderProp("ariaControls",s)))}applyAriaDescription(s){y.apply(s,(s=>this.setRenderProp("ariaDescription",s)))}applyAriaExpanded(s){b.apply(s,(s=>this.setRenderProp("ariaExpanded",s)))}applyAriaHasPopup(s){e.apply(s,(s=>this.setRenderProp("ariaHasPopup",s)))}applyAriaSelected(s){h.apply(s,(s=>this.setRenderProp("ariaSelected",s)))}applyCustomClass(s){u.apply(s,(s=>this.setRenderProp("customClass",s)))}applyDisabled(s){g.apply(s,(s=>this.setRenderProp("disabled",s)))}applyHideLabel(s){f.apply(s,(s=>this.setRenderProp("hideLabel",s)))}applyIcons(s){v.apply(s,(s=>this.setRenderProp("icons",s)))}applyId(s){D.apply(s,(s=>this.setRenderProp("id",s)))}applyInline(s){C.apply(s,(s=>this.setRenderProp("inline",s)))}applyLabel(s){K.apply(s,(s=>{this.setRenderProp("label",s),this.tooltipBehavior.watchLabel(s)}),this.isRequired("label"))}applyName(s){T.apply(s,(s=>this.setRenderProp("name",s))),this.formAssociation.watchName(s)}applyOn(s){r.apply(s,(s=>this.setRenderProp("on",s)))}applyRole(s){j.apply(s,(s=>this.setRenderProp("role",s)))}applyShortKey(s,i){x.apply(s,(s=>this.setRenderProp("shortKey",s))),w(i,s)}applySyncValueBySelector(s){this.formAssociation.watchSyncValueBySelector(s)}applyTabIndex(s){"number"==typeof s?I.apply(s,(s=>this.setRenderProp("tabIndex",s))):this.unsetRenderProp("tabIndex")}applyTooltipAlign(s){B.apply(null!=s?s:"top",(s=>{this.setRenderProp("tooltipAlign",s),this.tooltipBehavior.watchAlign(s)}))}applyType(s){l.apply(s,(s=>this.setRenderProp("type",s)))}applyValue(s){this.formValue=s,this.formAssociation.setFormAssociatedValue(s)}applyVariant(s){var i;A.apply(null!==(i=null!=s?s:t("buttonVariantDefault",this.host))&&void 0!==i?i:"normal",(s=>this.setRenderProp("variant",s)))}getButtonFCProps(){return{accessKey:this.getRenderProp("accessKey"),ariaControls:this.getRenderProp("ariaControls"),ariaDescription:this.getRenderProp("ariaDescription"),ariaDescriptionId:this.getState("ariaDescriptionId"),ariaExpanded:this.getRenderProp("ariaExpanded"),ariaHasPopup:this.getRenderProp("ariaHasPopup"),ariaSelected:this.getRenderProp("ariaSelected"),customClass:this.getRenderProp("customClass"),disabled:this.getRenderProp("disabled"),handleBlur:this.handleBlur,handleClick:this.handleClick,handleFocus:this.handleFocus,handleMouseDown:this.handleMouseDown,hideLabel:this.getRenderProp("hideLabel"),icons:this.getRenderProp("icons"),id:this.getRenderProp("id"),inline:this.getRenderProp("inline"),label:this.getRenderProp("label"),name:this.getRenderProp("name"),on:this.getRenderProp("on"),refButton:this.ctaRef,refTooltip:this.tooltipBehavior.setTooltipElementRef,role:this.getRenderProp("role"),shortKey:this.getRenderProp("shortKey"),tabIndex:this.getRenderProp("tabIndex"),tooltipAlign:this.getRenderProp("tooltipAlign"),type:this.getRenderProp("type"),variant:this.getRenderProp("variant")}}renderButtonFC(){return s(p,Object.assign({},this.getButtonFCProps()))}}export{F as B}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{g as t}from"./bootstrap-DHXUvPBY.js";import{C as e,e as i,k as s}from"./common-OzsC_6kt.js";import{c as o,b as a}from"./props-from-config-Ci0dILpz.js";import{n}from"./name-B2Yf3EpX.js";import{B as r}from"./behavior-B4IW5_Qt.js";const l=o("ariaDetails","",a),c=o("syncValueBySelector",void 0,a),u={optional:[l,n,c]},h=new Set(["KOL-COMBOBOX","KOL-INPUT-CHECKBOX","KOL-INPUT-COLOR","KOL-INPUT-DATE","KOL-INPUT-EMAIL","KOL-INPUT-FILE","KOL-INPUT-NUMBER","KOL-INPUT-PASSWORD","KOL-INPUT-RADIO","KOL-INPUT-RANGE","KOL-INPUT-TEXT","KOL-SELECT","KOL-SINGLE-SELECT","KOL-TEXTAREA"]);class d extends r{constructor(s,{host:o,type:a,name:n}){var r,l,c,d,f;super(s,u),this.experimentalMode=e(),this.setFormAssociatedValue=t=>{var e;const s=null===(e=this.formAssociated)||void 0===e?void 0:e.getAttribute("name");null!==s&&""!==s||i(` The form field (${this.type}) must have a name attribute to be form-associated. Please define the _name attribute.`);const o=this.tryToStringifyValue(t);this.syncValue(t,o,this.formAssociated),this.syncValue(t,o,this.syncToOwnInput)},this.host=this.findHostWithShadowRoot(o),this.type=a,(null===(r=t())||void 0===r?void 0:r.reflectInputValues)&&h.has(null!==(c=null===(l=this.host)||void 0===l?void 0:l.tagName)&&void 0!==c?c:"")&&n&&(null===(d=this.host)||void 0===d||d.querySelectorAll("input,select,textarea").forEach((t=>{var e;null===(e=this.host)||void 0===e||e.removeChild(t)})),this.formAssociated=this.createFormAssociatedElement(),this.formAssociated.setAttribute("data-form-associated",""),this.formAssociated.setAttribute("hidden",""),null===(f=this.host)||void 0===f||f.appendChild(this.formAssociated))}componentWillLoad(t){this.watchName(t.name),this.watchSyncValueBySelector(t.syncValueBySelector),this.watchAriaDetails(t.ariaDetails)}watchAriaDetails(t){l.apply(t,(t=>this.setRenderProp("ariaDetails",t)))}watchName(t){n.apply(t,(t=>{this.setRenderProp("name",t),this.setNameAttribute(t)})),void 0===t&&i("A name on input fields or switches is not strictly required, but it might be relevant for the autocomplete function and for the static submission of the input field.")}watchSyncValueBySelector(t){if(this.experimentalMode&&"string"==typeof t){this.setRenderProp("syncValueBySelector",t);const e=document.querySelector(t);e&&(this.syncToOwnInput=e)}}setNameAttribute(t){this.setAttribute("name",this.formAssociated,t)}createFormAssociatedElement(){switch(this.type){case"color":case"date":case"email":case"file":case"number":case"password":case"radio":case"range":case"text":{const t=document.createElement("input");return t.setAttribute("type",this.type),t}case"select":{const t=document.createElement("select");return t.setAttribute("multiple",""),t}case"textarea":return document.createElement("textarea");default:{const t=document.createElement("input");return t.setAttribute("type","hidden"),t}}}findHostWithShadowRoot(t){for(;null===(null==t?void 0:t.shadowRoot)&&t!==document.body;){const e=t.parentNode;t=11===(null==e?void 0:e.nodeType)&&"host"in e?e.host:1===(null==e?void 0:e.nodeType)?e:void 0}return t}setAttribute(t,e,i){if(this.experimentalMode)try{if("boolean"!=typeof(i="object"==typeof i&&null!==i?JSON.stringify(i):i)&&"number"!=typeof i&&"string"!=typeof i)throw new Error("Invalid value type: "+typeof i);null==e||e.setAttribute(t,`${i}`)}catch(i){null==e||e.removeAttribute(t)}}tryToStringifyValue(t){try{return"object"==typeof t&&null!==t?JSON.stringify(t).toString():null==t?null:t.toString()}catch(t){return s(`The form field raw value is not able to stringify! ${t}`),""}}syncValue(t,e,i){if(i)switch(this.type){case"file":"undefined"!=typeof FileList&&t instanceof FileList?i.files=t:i.value="";break;case"select":"SELECT"===i.tagName?this.syncSelectOptions(t,i):this.syncValueAttribute(e,i);break;case"radio":"string"==typeof e&&(i.setAttribute("value",e),i.setAttribute("checked",""),i.value=e);break;default:this.syncValueAttribute(e,i)}}syncSelectOptions(t,e){e.querySelectorAll("option").forEach((t=>{e.removeChild(t)})),(Array.isArray(t)?t:null==t?[]:[t]).forEach((t=>{const i=this.tryToStringifyValue(t);if("string"==typeof i){const t=document.createElement("option");t.setAttribute("value",i),t.setAttribute("selected",""),e.appendChild(t)}}))}syncValueAttribute(t,e){"string"==typeof t?(e.setAttribute("value",t),e.value=t):(e.removeAttribute("value"),e.value="")}}export{d as F,l as a}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{i as e}from"./common-OzsC_6kt.js";var i,l,n=e(l?i:(l=1,i=function(e){return function(i,l){if(!i)return e;var n;"string"==typeof i?n=i:l=i;var o=e;return n&&(o+="__"+n),o+(l?Object.keys(l).reduce((function(e,i){var n=l[i];return n&&(e+=" "+("boolean"==typeof n?o+"--"+i:o+"--"+i+"_"+n)),e}),""):"")}}));const o=function(){const e=new Map,i=(i,l,o)=>{try{return e.get(i)(l,o)}catch{return e.set(i,n(i)).get(i)(l,o)}};return i.forBlock=e=>{const l=(l,n)=>i(e,l,n);return l.forElement=l=>n=>i(e,l,n),l},i}(),r={"kol-abbr":{modifiers:null},"kol-alert":{elements:{closer:{modifiers:null},heading:{modifiers:new Set(["h0","h1","h2","h3","h4","h5","h6"])},icon:{modifiers:null},content:{modifiers:null},container:{modifiers:null}},modifiers:new Set(["hasCloser","type-default","type-error","type-info","type-success","type-warning","variant-card","variant-msg"])},"kol-badge":{elements:{label:{modifiers:null},"smart-button":{modifiers:null}},modifiers:new Set(["has-smart-button"])},"kol-version":{modifiers:null},"kol-accordion":{elements:{content:{modifiers:null},heading:{modifiers:null},wrapper:{modifiers:null},"wrapper-animation":{modifiers:null}},modifiers:new Set(["disabled","open"])},"kol-avatar":{elements:{image:{modifiers:null},initials:{modifiers:null}},modifiers:null},"kol-card":{elements:{"close-button":{modifiers:null},content:{modifiers:null},header:{modifiers:null},link:{modifiers:null}},modifiers:null},"kol-dialog":{elements:{blank:{modifiers:null},card:{modifiers:null}},modifiers:null},"kol-modal":{elements:{blank:{modifiers:null},card:{modifiers:null}},modifiers:null},"kol-button":{elements:{"interactive-element":{modifiers:null},text:{modifiers:null},tooltip:{modifiers:null}},modifiers:new Set(["disabled","hide-label","inline","standalone"])},"kol-breadcrumb":{elements:{icon:{modifiers:null},link:{modifiers:null},list:{modifiers:null},"list-element":{modifiers:null},"list-element-span":{modifiers:null},separator:{modifiers:null}},modifiers:null},"kol-nav":{elements:{compact:{modifiers:null},entry:{modifiers:new Set(["button","collapsible","link"])},"entry-wrapper":{modifiers:null},list:{modifiers:new Set(["nested","vertical"])},"list-item":{modifiers:new Set(["active","expanded","has-children"])},navigation:{modifiers:null},"toggle-button":{modifiers:null}},modifiers:new Set(["is-compact"])},"kol-kolibri":{elements:{text:{modifiers:null}},modifiers:null},"kol-popover-button":{elements:{popover:{modifiers:null}},modifiers:new Set(["inline","open"])},"kol-details":{elements:{content:{modifiers:null},heading:{modifiers:null},wrapper:{modifiers:null},"wrapper-animation":{modifiers:null}},modifiers:new Set(["disabled","open"])},"kol-drawer":{elements:{content:{modifiers:null},dialog:{modifiers:null},wrapper:{modifiers:new Set(["bottom","is-closing","left","open","right","top"])}},modifiers:null},"kol-heading":{modifiers:new Set(["group"])},"kol-headline":{modifiers:new Set(["group","h1","h2","h3","h4","h5","h6","primary","secondary","single","strong"])},"kol-icon":{elements:{icon:{modifiers:null}},modifiers:null},"kol-meter":{elements:{bar:{modifiers:null},"bar-background":{modifiers:null},"bar-border":{modifiers:null},"bar-fill":{modifiers:new Set(["critical","optimum","suboptimal"])},"bar-label":{modifiers:null},"bar-state":{modifiers:new Set(["critical","optimum","suboptimal"])},"bar-track":{modifiers:null},unit:{modifiers:null},value:{modifiers:null},"value-unit":{modifiers:null}},modifiers:new Set(["vertical"])},"kol-quote":{elements:{blockquote:{modifiers:null},cite:{modifiers:null},figcaption:{modifiers:null},quote:{modifiers:null}},modifiers:new Set(["block","inline"])},"kol-skip-nav":{elements:{list:{modifiers:null},"list-item":{modifiers:null}},modifiers:null},"kol-skeleton":{elements:{actions:{modifiers:null},container:{modifiers:null},counter:{modifiers:null},name:{modifiers:null}},modifiers:new Set(["has-name","is-hidden"])},"kol-click-button":{elements:{label:{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{r as B,o as b}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{g as o,h as n,L as s}from"./common-OzsC_6kt.js";import{s as i}from"./component-names-Dhbtt0mX.js";import{i as e}from"./i18n-Dl6Jjofb.js";let a,t=!1;const l=async(l,d,r)=>{var m,u;const v="undefined"!=typeof process&&process.env?"production":void 0;o((null==r?void 0:r.environment)||v||"production"),e(null!==(u=null===(m=null==r?void 0:r.translation)||void 0===m?void 0:m.name)&&void 0!==u?u:"de",null==r?void 0:r.translations),(null==r?void 0:r.transformTagName)&&i(null==r?void 0:r.transformTagName);const c=await n(l,d,r);return t=!0,a=r,s.info("Development mode active - Enhanced debugging features available"),c},d=l,r=()=>t,m=()=>a;export{l as b,m as g,r as i,d as r}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var t,n,o,r={exports:{}},a=(t||(t=1,n=r.exports,o=function(){var e=function(){},t="undefined",n=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),o=["trace","debug","info","warn","error"],r={},a=null;function i(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 l(){for(var n=this.getLevel(),r=0;r<o.length;r++){var a=o[r];this[a]=r<n?e:this.methodFactory(a,n,this.name)}if(this.log=this.debug,typeof console===t&&n<this.levels.SILENT)return"No console available for logging"}function c(e){return function(){typeof console!==t&&(l.call(this),this[e].apply(this,arguments))}}function u(o,r,a){return function(o){return"debug"===o&&(o="log"),typeof console!==t&&("trace"===o&&n?s:void 0!==console[o]?i(console,o):void 0!==console.log?i(console,"log"):e)}(o)||c.apply(this,arguments)}function f(e,n){var i,s,c,f=this,d="loglevel";function p(){var e;if(typeof window!==t&&d){try{e=window.localStorage[d]}catch(e){}if(typeof e===t)try{var n=window.document.cookie,o=encodeURIComponent(d),r=n.indexOf(o+"=");-1!==r&&(e=/^([^;]+)/.exec(n.slice(r+o.length+1))[1])}catch(e){}return void 0===f.levels[e]&&(e=void 0),e}}function g(e){var t=e;if("string"==typeof t&&void 0!==f.levels[t.toUpperCase()]&&(t=f.levels[t.toUpperCase()]),"number"==typeof t&&t>=0&&t<=f.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?d+=":"+e:"symbol"==typeof e&&(d=void 0),f.name=e,f.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},f.methodFactory=n||u,f.getLevel=function(){return null!=c?c:null!=s?s:i},f.setLevel=function(e,n){return c=g(e),!1!==n&&function(e){var n=(o[e]||"silent").toUpperCase();if(typeof window!==t&&d){try{return void(window.localStorage[d]=n)}catch(e){}try{window.document.cookie=encodeURIComponent(d)+"="+n+";"}catch(e){}}}(c),l.call(f)},f.setDefaultLevel=function(e){s=g(e),p()||f.setLevel(e,!1)},f.resetLevel=function(){c=null,function(){if(typeof window!==t&&d){try{window.localStorage.removeItem(d)}catch(e){}try{window.document.cookie=encodeURIComponent(d)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),l.call(f)},f.enableAll=function(e){f.setLevel(f.levels.TRACE,e)},f.disableAll=function(e){f.setLevel(f.levels.SILENT,e)},f.rebuild=function(){if(a!==f&&(i=g(a.getLevel())),l.call(f),a===f)for(var e in r)r[e].rebuild()},i=g(a?a.getLevel():"WARN");var b=p();null!=b&&(c=g(b)),l.call(f)}(a=new f).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=r[e];return t||(t=r[e]=new f(e,a.methodFactory)),t};var d=typeof window!==t?window.log:void 0;return a.noConflict=function(){return typeof window!==t&&window.log===a&&(window.log=d),a},a.getLoggers=function(){return r},a.default=a,a},r.exports?r.exports=o():n.log=o()),r.exports),i=e(a);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,o="JEST_WORKER_ID"in e,r="PLAYWRIGHT_TEST_BASE_URL"in e,a="true"===e.CI,i="true"===e.TEST||"true"===e.IS_TEST,s=typeof navigator<"u"&&!0===navigator.webdriver,l=typeof navigator<"u"&&/playwright|puppeteer|webdriver|selenium|testcafe/i.test(navigator.userAgent);return t||n||o||r||a||i||s||l})(),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 l=!0,c=!1;const u=/^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/,f=e=>{if(!(e=>"string"==typeof e&&u.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]+)?$/`)},d=e=>e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s*([{},;])\s*/g,"$1").replace(/:\s+/g,":").replace(/\s+/g," ").replace(/;\}/g,"}").trim(),p=(e,t,n,o)=>{(o=o??{}).append=o.append??!1,f(e),l&&!c&&(c=!0,i.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 r=s.A11yUi.THEMES.get(e);if(r||(r=new Map,s.A11yUi.THEMES.set(e,r)),o.append&&r.has(t)){const e=r.get(t);r.set(t,d(`${e}${n}`))}else r.set(t,d(n))},g=(e,t,n,o)=>(f(e),"object"==typeof t&&null!==t&&Object.getOwnPropertyNames(t).forEach((r=>{const a=t[r],i=r.toLowerCase(),s="function"!=typeof o?.transformTagName||["GLOBAL","PROPERTIES"].includes(r)?r:o.transformTagName(i);"string"==typeof a&&a.length>0&&p(e,s.toUpperCase(),a,n)})),e),b=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 b(t)}}return null},h=(e={})=>"false"!==e.themeEncroachCss&&"true"!==e.themeReset&&{mode:"after"===e.themeEncroachCssMode||"before"===e.themeEncroachCssMode?e.themeEncroachCssMode:"before"},m=()=>"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,y=e=>{if(m())return s.A11yUi.Theme;{const t={cache:!0,encroachCss:h(),loglevel:"silent",mode:"csr",name:null},n=b(e);return n instanceof HTMLElement&&(t.cache="false"!==n.dataset.themeCache,t.encroachCss=h(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}},v=()=>m()?s.A11yUi.Theme.name:null,w=(...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 o=(e=>y(e).name)(t??null)??v();if(null!==o){const t=s.A11yUi.THEME_FEATURES[o];if(t&&void 0!==t[e])return t[e]}};let S=!1;const E=(e,t,n={})=>{S||(S=!0,l=!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===m()&&("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,i.info(`[Theming] Theme "${e}" was set as default theme.`))):c||(c=!0,i.warn("[Theming] The presetting of theme options is only relevant by using 'fixed' detection mode.")))})(e(((e,t,o,r)=>(r&&(s.A11yUi.THEME_FEATURES[e]=w(s.A11yUi.THEME_FEATURES[e],r)),g(e,t,o,n)))),{cache:n.theme?.cache,detect:n.theme?.detect,encroachCss:n.theme?.encroachCss,mode:n.theme?.mode,name:n.theme?.name}):i.error("[Theming] An attempt was made to load an incompatible theme.")})),l=!0,n.features&&(s.A11yUi.FEATURES=w(s.A11yUi.FEATURES,n.features)),"function"==typeof t?t=new Set([t]):Array.isArray(t)&&(t=new Set(t));const o=[];return t.forEach((e=>{const t=e();t instanceof Promise&&o.push(t)})),Promise.all(o)},T=new Set,M=new Map,A=/--[^;]+/g,N=/:/,O=typeof MutationObserver<"u";let L=25,x=()=>{L=Math.min(25+20*Math.log2(s.A11yUi.STYLING_TASK_QUEUE.size+1),250)};const I=(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""},R=(e,t,n,o)=>{const r="debug"===s.A11yUi.Theme?.loglevel,a=r?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 o=t[n];if("string"!=typeof o||0===o.length)continue;const r=t.length-1-n,a=document.createElement("style");switch(a.dataset.themingFallback="",r){case 4:a.dataset.themingBaseA11y="";break;case 3:a.dataset.themingBaseGlobal="";break;case 2:a.dataset.themingBaseComponent="";break;case 1:a.dataset.themingCustomGlobal="";break;case 0:a.dataset.themingCustomComponent="";break;default:a.dataset.themingUnknown=""}a.innerHTML=o,e.insertBefore(a,e.firstChild)}}})(t,n),q(e),requestAnimationFrame(o),r){const t=performance.now()-a,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})}},C=e=>{const t=s.A11yUi.STYLING_TASK_QUEUE.get(e);if(t){const{resetCss:n,themeDetails:o}=t;((e,t,n)=>{const o=t.name||"default";let r;try{if(null===e.shadowRoot)throw new Error("ShadowRoot is null");r=e.shadowRoot}catch{r=e}const a=s.A11yUi.CSS_STYLE_CACHE.get(o)?.get(e.tagName);if(a)R(e,r,a,n);else{const a=I(o,"PROPERTIES"),i=I(o,"GLOBAL"),l=I(o,e.tagName);!1===T.has(o)&&((e,t)=>{let n=t.match(A);if(Array.isArray(n)){n=n.filter((e=>N.test(e)));const t=document.createElement("style");t.innerHTML=`.${e} {${n.join(";")}}`,document.querySelector("head")?.appendChild(t)}T.add(e)})(o,i);const c=[a,i,l];if(((e,t,n)=>{if(!1===n||"before"!==n?.mode&&"after"!==n?.mode)return;const o=Array.from(e.childNodes).filter((e=>e instanceof HTMLStyleElement&&"STYLE"===e.tagName));let r;try{r=Array.from(e.adoptedStyleSheets)}catch{r=[]}if(0!==o.length||0!==r.length)if("before"===n.mode){const e=[...r.map((e=>Array.from(e.cssRules).map((e=>e.cssText)).join(""))),...o.map((e=>e.innerHTML))];t.unshift(...e)}else o.forEach((e=>t.push(e.innerHTML))),r.forEach((e=>t.push(Array.from(e.cssRules).map((e=>e.cssText)).join(""))))})(r,c,t.encroachCss),!0===t.cache){let t=s.A11yUi.CSS_STYLE_CACHE.get(o);t||(t=new Map,s.A11yUi.CSS_STYLE_CACHE.set(o,t)),t.set(e.tagName,c)}R(e,r,c,n)}})(e,o,n)}};let j=(e,t=0)=>{if(t>=100)return;const n=setTimeout((()=>{clearTimeout(n),e.classList.contains("hydrated")?C(e):j(e,t+1)}),L)};const $={attributes:!0,attributeFilter:["class"],childList:!1,subtree:!1},F={attributes:!0,attributeFilter:[],childList:!1,subtree:!1},_=O?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)&&(C(e),n.push(e))}for(const e of n)t.observe(e,F)})):null;_&&(j=e=>_.observe(e,$),x=()=>{});const H=new Map;let P=(e,t)=>{if(t){const e=H.get(t);if(void 0!==e)return e}const n=getComputedStyle(e).getPropertyValue("--theme-visibility-delay").trim();let o;if(n.endsWith("ms"))o=parseFloat(n);else if(n.endsWith("s"))o=1e3*parseFloat(n);else{const e=parseFloat(n);o=isNaN(e)?0:e}return t&&H.set(t,o),o};s.A11yUi.IS_TEST_ENVIRONMENT&&(P=()=>0);const U=(e,t)=>{e.style.setProperty("visibility",t),e.dataset.themed=""},q=e=>{s.A11yUi.STYLING_TASK_QUEUE.delete(e),x()},z=(e,t)=>{((e,t)=>{const n=e.style.visibility||null,o=t.name||"default";s.A11yUi.STYLING_TASK_QUEUE.set(e,{resetCss:()=>{const t=P(e,o);t>0?setTimeout((()=>{U(e,n)}),t):U(e,n)},themeDetails:t}),e.style.setProperty("visibility","hidden","important"),j(e)})(e,{...s.A11yUi.Theme,...t})};class J{Prefix;Key;Tag;createTheme=(e,t,n)=>((e,t,n)=>o=>o(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,oe=e=>{X=!0===e},re=()=>!0===Z,ae=e=>{Z=!0===e},ie=e=>Array.isArray(e)?e:[e],se=e=>`%c${e}`,le=(e,t)=>"string"==typeof t&&t.length>0?`${se(e)} | ${t}`:se(e),ce=(e,t)=>[le(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)||""}`],ue=e=>ee()||!0===e,fe=new class{constructor(e){this.label=e}debug(e,t){ue(null==t?void 0:t.forceLog)&&console.debug(...ce(this.label,t),...ie(e))}info(e,t){ue(null==t?void 0:t.forceLog)&&console.info(...ce(this.label,t),...ie(e))}trace(e,t){ue(null==t?void 0:t.forceLog)&&console.trace(...ce(this.label,t),...ie(e))}warn(e,t){ue(null==t?void 0:t.forceLog)&&console.warn(...ce(this.label,t),...ie(e))}error(e,t){console.error(...ce(this.label,t),...ie(e))}throw(e,t){if(ue(null==t?void 0:t.forceLog))throw new Error(...ce(this.label,t),...ie(e))}}("KoliBri"),de=new Set,pe=e=>{!1===de.has(e)&&(de.add(e),fe.debug([e].concat([]),{classifier:"✋ a11y",forceLog:!1,overwriteStyle:"; background-color: #09f"}))},ge=new Set,be=e=>{!1===ge.has(e)&&(ge.add(e),fe.warn([e].concat([]),{classifier:"🔥 deprecated",forceLog:!1,overwriteStyle:"; background-color: #f00"}))},he=new Set,me=(e,t)=>{(!1===he.has(e)||(null==t?void 0:t.force))&&(he.add(e),fe.debug([e].concat((null==t?void 0:t.details)||[]),{classifier:"💻 dev",forceLog:!!(null==t?void 0:t.force),overwriteStyle:"; background-color: #f09"}))},ye=e=>{!1===he.has(e)&&(he.add(e),fe.warn([e].concat([]),{classifier:"⚠️ dev",forceLog:!1,overwriteStyle:"; background-color: #f09"}))},ve=new Set,we=(e,t=!1)=>{!1===ve.has(e)&&(ve.add(e),fe.debug([e+=!0===t?" ✅":""].concat([]),{classifier:"🌟 feature",forceLog:!1,overwriteStyle:"; background-color: #309"}))};me("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),fe.debug([e].concat([]),{classifier:"📑 ui/ux",forceLog:!1,overwriteStyle:"; background-color: #060;"}))},Ee=e=>{"string"==typeof e&&""!==e||pe("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,Ne,Oe,Le=1/12.92;function xe(e){return Math.pow((e+.055)/1.055,2.4)}function Ie(e){var t=e[0]/255,n=e[1]/255,o=e[2]/255;return.2126*(t<=.03928?t*Le:xe(t))+.7152*(n<=.03928?n*Le:xe(n))+.0722*(o<=.03928?o*Le:xe(o))}function Re(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 Ce(e,t){return function(e,t){return function(e,t){return(Math.max(e,t)+.05)/(Math.min(e,t)+.05)}(Ie(e),Ie(t))}(Re(e),Re(t))}var je=function(){if(Oe)return Ne;Oe=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]});Ne=function(n){var o,r,a=[],i=1;if("string"==typeof n)if(n=n.toLowerCase(),e[n])a=e[n].slice(),r="rgb";else if("transparent"===n)i=0,r="rgb",a=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(n)){var s=n.slice(1);i=1,(u=s.length)<=4?(a=[parseInt(s[0]+s[0],16),parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16)],4===u&&(i=parseInt(s[3]+s[3],16)/255)):(a=[parseInt(s[0]+s[1],16),parseInt(s[2]+s[3],16),parseInt(s[4]+s[5],16)],8===u&&(i=parseInt(s[6]+s[7],16)/255)),a[0]||(a[0]=0),a[1]||(a[1]=0),a[2]||(a[2]=0),r="rgb"}else if(o=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(n)){var l=o[1],c="rgb"===l;r=s=l.replace(/a$/,"");var u="cmyk"===s?4:"gray"===s?1:3;a=o[2].trim().split(/\s*[,\/]\s*|\s+/).map((function(e,n){if(/%$/.test(e))return n===u?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)})),l===s&&a.push(1),i=c||void 0===a[u]?1:a[u],a=a.slice(0,u)}else n.length>10&&/[0-9](?:\s|\/)/.test(n)&&(a=n.match(/([0-9]+)/g).map((function(e){return parseFloat(e)})),r=n.match(/([a-z])/gi).join("").toLowerCase());else isNaN(n)?Array.isArray(n)||n.length?(a=[n[0],n[1],n[2]],r="rgb",i=4===n.length?n[3]:1):n instanceof Object&&(null!=n.r||null!=n.red||null!=n.R?(r="rgb",a=[n.r||n.red||n.R||0,n.g||n.green||n.G||0,n.b||n.blue||n.B||0]):(r="hsl",a=[n.h||n.hue||n.H||0,n.s||n.saturation||n.S||0,n.l||n.lightness||n.L||n.b||n.brightness]),i=n.a||n.alpha||n.opacity||1,null!=n.opacity&&(i/=100)):(r="rgb",a=[n>>>16,(65280&n)>>>8,255&n]);return{space:r,values:a,alpha:i}};var t={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};return Ne}(),$e=e(je);const Fe={min:[0,0,0],max:[255,255,255]};var _e={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t,n,o,r,a,i=e[0]/360,s=e[1]/100,l=e[2]/100,c=0;if(0===s)return[a=255*l,a,a];for(t=2*l-(n=l<.5?l*(1+s):l+s-l*s),r=[0,0,0];c<3;)(o=i+1/3*-(c-1))<0?o++:o>1&&o--,r[c++]=255*(a=6*o<1?t+6*(n-t)*o:2*o<1?n:3*o<2?t+(n-t)*(2/3-o)*6:t);return r}};Fe.hsl=function(e){var t,n,o=e[0]/255,r=e[1]/255,a=e[2]/255,i=Math.min(o,r,a),s=Math.max(o,r,a),l=s-i;return s===i?t=0:o===s?t=(r-a)/l:r===s?t=2+(a-o)/l:a===s&&(t=4+(o-r)/l),(t=Math.min(60*t,360))<0&&(t+=360),n=(i+s)/2,[t,100*(s===i?0:n<=.5?l/(s+i):l/(2-s-i)),100*n]};var He,Pe={exports:{}},Ue=function(){if(He)return Pe.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 r=o(t[0]),a=o(t[1]),i=o(t[2]),s=3==n?255:o(t[3]);if(isNaN(r)||isNaN(a)||isNaN(i)||isNaN(s))return;return[r,a,i,s]}}(e)||function(e){var t=e.replace(/^#/,""),n=t.length;if(6==n||8==n){var r=o(t.slice(0,2)),a=o(t.slice(2,4)),i=o(t.slice(4,6)),s=6==n?255:o(t.slice(6,8));if(isNaN(r)||isNaN(a)||isNaN(i)||isNaN(s))return;return[r,a,i,s]}}(e)||function(e){if("rgb("==e.substr(0,4)){var t=(e=e.match(/^rgb\(([^)]+)\)/)[1]).split(/ *, */).map(Number),n=r(t[0],!0),o=r(t[1],!0),a=r(t[2],!0);if(-1!=n&&-1!=o&&-1!=a)return[n,o,a,255]}}(e)||function(e){if("rgba("==e.substr(0,5)){var t=(e=e.match(/^rgba\(([^)]+)\)/)[1]).split(/ *, */).map(Number),n=r(t[0],!0),o=r(t[1],!0),a=r(t[2],!0),i=r(255*t[3]);if(-1!=n&&-1!=o&&-1!=a&&-1!=i)return[n,o,a,i]}}(e)||[0,0,0,255]:function(e){if("[object Object]"===Object.prototype.toString.call(e)&&Object.getPrototypeOf(e)===Object.getPrototypeOf({})){var t=r(null!=e.r?e.r:null!=e.red?e.red:0,!0),n=r(null!=e.g?e.g:null!=e.green?e.green:0,!0),o=r(null!=e.b?e.b:null!=e.blue?e.blue:0,!0),a=r(null!=e.a?e.a:null!=e.alpha?e.alpha:255,!0);if(-1!=t&&-1!=n&&-1!=o&&-1!=a)return[t,n,o,a]}}(e)||function(e){if(Array.isArray(e)&&(3==e.length||4==e.length)){var t=r(e[0],!0),n=r(e[1],!0),o=r(e[2],!0),a=r(null!=e[3]?e[3]:255,!0);if(-1!=t&&-1!=n&&-1!=o&&-1!=a)return[t,n,o,a]}}(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 o(e){return 1==e.length?parseInt(e+e,16):parseInt(e,16)}function r(e,t){return"number"!=typeof e||!0===t&&Math.floor(e)!==e?-1:e>=0&&e<=255?e:-1}return He=1,Pe.exports=e,Pe.exports.arr=e,Pe.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])}},Pe.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)+")"},Pe.exports.hex=function(e){var o=t(e);3==o.length&&o.push(255);var r=255==o[3],a=n(o[0]),i=n(o[1]),s=n(o[2]),l=function(e,t,n,o){var r=["ff","00","11","22","33","44","55","66","77","88","99","aa","bb","cc","dd","ee"];return-1!=r.indexOf(e)&&-1!=r.indexOf(t)&&-1!=r.indexOf(n)&&-1!=r.indexOf(o)}(a,i,s,o=n(Math.round(o[3])));return r?l?"#"+a.charAt(0)+i.charAt(0)+s.charAt(0):"#"+a+i+s:l?"#"+a.charAt(0)+i.charAt(0)+s.charAt(0)+o.charAt(0):"#"+a+i+s+o},Pe.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},Pe.exports}(),qe=e(Ue);const ze=/\[object Object\]/,Je=(e,t)=>{"string"==typeof e&&ze.test(e)||t()},Be=(e,t)=>{ne()&&(fe.debug([e,t]),fe.debug("↑ We propagate the (submit) event to this target.")),Object.defineProperty(e,"target",{value:t,writable:!1})},Ke=(e,t,n,o={})=>{var r,a;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 o.afterPatch&&(null===(r=e.nextHooks.get(t))||void 0===r||r.set("afterPatch",o.afterPatch)),"function"==typeof o.beforePatch&&(null===(a=e.nextHooks.get(t))||void 0===a||a.set("beforePatch",o.beforePatch)),e.nextState.set(t,n),(e=>{var t,n,o;null===(t=e.nextHooks)||void 0===t||t.forEach(((t,n)=>{var o;const r=t.get("beforePatch");"function"==typeof r&&r(null===(o=e.nextState)||void 0===o?void 0:o.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===(o=e.nextHooks)||void 0===o||o.forEach(((t,n)=>{const o=t.get("afterPatch");"function"==typeof o&&o(e.state[n],e.state,e,n)}))),delete e.nextHooks})(e)};function We(e,t,n,o,r,a={}){if("production"!==Y||"production"!==Q())if(n(r))Ke(e,t,r,a.hooks);else if(void 0===r&&!0!==a.required&&n(a.defaultValue))Ke(e,t,a.defaultValue,a.hooks);else{const n=new Set(o);a.required||n.add(null),((e,t,n,o)=>{me(`[${e.constructor.name}] The property value: (${n}) for '${t}' is not valid. Allowed values are: ${Array.from(o).join(", ")}`)})(e,t,r,n)}else void 0!==r?Ke(e,t,r,a.hooks):n(void 0)?Ke(e,t,void 0,a.hooks):!0!==a.required&&n(a.defaultValue)&&Ke(e,t,a.defaultValue,a.hooks)}const De=e=>{try{return JSON.stringify(e).replace(/"/g,"'")}catch(t){throw fe.warn(["stringifyJson",e]),fe.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){fe.warn(["parseJson",e]),fe.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,o=[e];let r=0;for(;r<o.length;){const e=o[r++];if(n.has(e))continue;if(n.add(e),t(e))return;const a=Array.from(e.children||[]);for(let e=0;e<a.length;e++)o.push(a[e]);if(e instanceof HTMLElement&&e.shadowRoot&&o.push(e.shadowRoot),e instanceof HTMLSlotElement){const t=e.assignedNodes({flatten:!0});for(let e=0;e<t.length;e++)t[e]instanceof Element&&o.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),o=tt.test(n.backgroundColor)?t.backgroundColor:qe.hex(n.backgroundColor),r=tt.test(n.color)?t.color:qe.hex(n.color),a=Ce(o,r),i={backgroundColor:o,color:r,domNode:e,level:(s=a,s>=7?"AAA":s>=4.5?"AA":s>=3?"AA Large":"Fail"),score:a};var s;return a<4.5&&fe.error(["Color-Contrast-Error",{backgroundColor:i.backgroundColor,color:i.color,level:i.level,score:i.score},i.domNode]),i},ot=(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 o=0;o<n.length&&(t.domNode=n[o],null===(t=ot(e,t)).domNode);o++);return t}return nt(n,t)};class rt{static queryHtmlElementColors(e,t,n=!1,o=!0){let r=null;if(!0===n||!1===rt.executionLock)if(!1===n&&(rt.cache.clear(),rt.cache.set(t.domNode,t),rt.executionLock=!0,!0===o&&fe.debug("[KoliBriUtils] Color contrast analysis started...")),e===t.domNode)r=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 o=t.domNode;if("function"==typeof o.assignedNodes){const e=o.assignedNodes();for(let t=0;t<e.length;t++)e[t]instanceof HTMLElement&&n.add(e[t])}const a=t.domNode.children;for(let e=0;e<a.length;e++)n.add(a[e]);const i=Array.from(n);for(let n=0;n<i.length;n++){let o=rt.cache.get(i[n]);void 0===o&&(o=nt(i[n],t)),rt.cache.set(i[n],o);const a=rt.queryHtmlElementColors(e,o,!0,!1);if(null!==a){r=a;break}}}else fe.debug("[KoliBriUtils] Call aborted because a color contrast analysis is currently being executed.");return!1===n&&(!0===o&&fe.debug(`[KoliBriUtils] Color contrast analysis finished (${rt.cache.size} DOM elements are analysed).`),rt.executionLock=!1,rt.cache.clear()),r}}rt.executionLock=!1,rt.cache=new Map;class at{}at.getCssStyle=I,at.patchTheme=(e,t,n,o)=>g(e,t,n,o),at.patchThemeTag=(e,t,n,o)=>p(e,t,n,o),at.querySelector=Qe,at.querySelectorAll=Xe,at.stringifyJson=De;const it=e=>"object"==typeof e&&null!==e,st=(e,t=0)=>"string"==typeof e&&e.length>=t,lt=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},ct=new Event("StateChange");export{Ce as A,Te as B,ne as C,st as D,J as E,lt as F,We as G,Qe as H,ee as I,nt as J,B as K,fe as L,Xe as M,ot as N,rt as O,De as P,re as Q,v as R,ct as S,K as T,k as X,at as a,Ee as b,be as c,z as d,me as e,we as f,V as g,E as h,e as i,it as j,ye as k,$e as l,_e as m,pe as n,Je as o,Ye as p,D as q,Fe as r,Be as s,oe as t,Se as u,ae as v,y as w,W as x,te as y,qe as z}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{c as o,b as t,i as r}from"./props-from-config-Ci0dILpz.js";import{h as s}from"./index-D_P2XoAc.js";import{b as i}from"./bem-registry-CWN7_O1L.js";import{S as e}from"./component-C0zMsvYl.js";const a=["left","right","top","bottom"];function n(s,i){return o(s,i,(o=>{const i=t(o);if(r(i,a))return i;throw new Error(`Invalid ${s} value: ${i}`)}))}const l=i.forBlock("kol-tooltip"),c=({label:o,badgeText:t,id:r,refFloating:i})=>s("div",{class:l("floating"),hidden:!o,ref:i},s("div",{class:l("arrow")}),s(e,{class:l("content"),badgeText:t,id:r,label:o}));export{c as T,n as c}
|