@public-ui/components 4.6.0-rc.2 → 4.6.0
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 -4
- package/dist/cjs/{Heading-CmnijhLd.js → Heading-CnnBHLhu.js} +7 -7
- package/dist/cjs/{api-Bg7hdIrJ.js → api-C-uDDxcA.js} +29 -30
- package/dist/cjs/{app-globals-BwYPSMbG.js → app-globals-BfpVa0Lg.js} +2 -2
- package/dist/cjs/{aria-labelledby-BRMgWRVp.js → aria-labelledby-By2dgbCn.js} +0 -13
- package/dist/cjs/{base-JFyPasp9.js → base-BIbzHEVE.js} +50 -52
- package/dist/cjs/{base-ob1X79UM.js → base-BZ3x1Yaj.js} +10 -10
- package/dist/cjs/{base-CQB0r-ZQ.js → base-Cc2tyQoy.js} +10 -10
- package/dist/cjs/{base-BVhV5HmV.js → base-CeaAJa72.js} +10 -10
- package/dist/cjs/{base-web-component-DXCN-Sp3.js → base-web-component-B_zszxEg.js} +1 -1
- package/dist/cjs/{base-web-component-DBcJrpRb.js → base-web-component-CpqYvVDi.js} +14 -15
- package/dist/cjs/{base-web-component-dI9FmFIm.js → base-web-component-Dk-So1FD.js} +12 -14
- package/dist/cjs/{behavior-B5wr2A8R.js → behavior--ZjzmIB4.js} +5 -12
- package/dist/cjs/{behavior-DujaVCwV.js → behavior-CYg7XOXd.js} +4 -4
- package/dist/cjs/{behavior-CUmF8rJf.js → behavior-cEIf2evT.js} +4 -4
- package/dist/cjs/{bem-registry-B6QoNC9E.js → bem-registry-CtnO3zCW.js} +61 -0
- package/dist/cjs/{bootstrap-HU5YhM_w.js → bootstrap-DOzWgRGX.js} +1 -1
- package/dist/cjs/{color-C3xsA3Uk.js → color-BJ776mPh.js} +2 -2
- package/dist/cjs/{component-DprHBKdZ.js → component-5ABjFE_U.js} +6 -7
- package/dist/cjs/{component-BexD3069.js → component-BSx0ZVSD.js} +10 -12
- package/dist/cjs/component-BTfaB8W5.js +19 -0
- package/dist/cjs/{component-Cbbx7Z6c.js → component-BacsMsF-.js} +4 -4
- package/dist/cjs/component-C_9WksgV.js +53 -0
- package/dist/cjs/{component-Cqp00Tb9.js → component-D65WOH6c.js} +8 -10
- package/dist/cjs/{component-Doln6Ltn.js → component-DE4OHvyu.js} +7 -8
- package/dist/cjs/{component-DGVc4bOy.js → component-DVf7tz1e.js} +6 -5
- package/dist/cjs/{component-Bza8hlo-.js → component-Ddp-Luc6.js} +11 -12
- package/dist/cjs/{component-DFhuXUqv.js → component-DuknrIKz.js} +14 -16
- package/dist/cjs/{component-BilLJFfC.js → component-DwuAKOV_.js} +4 -4
- package/dist/cjs/{contrast-6Nku3lih.js → contrast-DrGTr5zd.js} +1 -1
- package/dist/cjs/{dev.utils-Bx4sgPsr.js → dev.utils-EwVibOKw.js} +1 -1
- package/dist/cjs/{devtools-BXBKJice.js → devtools-CEqUJI9f.js} +2 -2
- package/dist/cjs/{disabled-CilmJ-p-.js → disabled-DBnI2OR4.js} +1 -1
- package/dist/cjs/{field-control-B95uzQnW.js → field-control-Jhzreo_j.js} +12 -12
- package/dist/cjs/{group-DGS7K6Ja.js → group-DDmENjNB.js} +7 -8
- package/dist/cjs/{has-closer-iSIrv52u.js → has-closer-DIk_toj-.js} +1 -1
- package/dist/cjs/{href-xojo1zy_.js → href-_UE7179j.js} +1 -1
- package/dist/cjs/{i18n-D7UmRsV8.js → i18n-4lKONPdP.js} +1 -1
- package/dist/cjs/{i18n-DgHI4-xa.js → i18n-CuXZ7SEi.js} +2 -1
- package/dist/cjs/{id-DP-w6i4q.js → id-JbinnWCW.js} +1 -1
- package/dist/cjs/{index-Ccvyz7Rq.js → index-P8gY4ccL.js} +1 -1
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/input-BYfPasa5.js +19 -0
- package/dist/cjs/{input-container-CWb_kRbs.js → input-container-BQlNjdk3.js} +8 -10
- package/dist/cjs/{item-vDMQvV0t.js → item-C6gnuMjx.js} +4 -4
- package/dist/cjs/{item-wr5KfPYM.js → item-CvvVUcQZ.js} +11 -11
- package/dist/cjs/{item-C4Boh5Cz.js → item-DSSJt2YS.js} +4 -4
- package/dist/cjs/{item-DgNTEUz3.js → item-Dgikq96R.js} +20 -21
- package/dist/cjs/kol-abbr.cjs.entry.js +8 -12
- package/dist/cjs/kol-accordion.cjs.entry.js +15 -17
- package/dist/cjs/kol-alert.cjs.entry.js +27 -30
- package/dist/cjs/kol-avatar.cjs.entry.js +14 -15
- package/dist/cjs/kol-badge.cjs.entry.js +23 -26
- package/dist/cjs/kol-breadcrumb.cjs.entry.js +26 -30
- package/dist/cjs/kol-button-link.cjs.entry.js +22 -25
- package/dist/cjs/kol-button.cjs.entry.js +22 -25
- package/dist/cjs/kol-card.cjs.entry.js +27 -30
- package/dist/cjs/kol-combobox.cjs.entry.js +38 -41
- package/dist/cjs/kol-details.cjs.entry.js +15 -17
- package/dist/cjs/kol-dialog.cjs.entry.js +30 -33
- package/dist/cjs/kol-drawer.cjs.entry.js +30 -33
- package/dist/cjs/kol-form.cjs.entry.js +24 -27
- package/dist/cjs/kol-heading.cjs.entry.js +13 -15
- package/dist/cjs/kol-icon.cjs.entry.js +8 -9
- package/dist/cjs/kol-image.cjs.entry.js +7 -9
- package/dist/cjs/kol-input-checkbox.cjs.entry.js +53 -55
- package/dist/cjs/kol-input-color.cjs.entry.js +42 -44
- package/dist/cjs/kol-input-date.cjs.entry.js +44 -47
- package/dist/cjs/kol-input-email.cjs.entry.js +45 -47
- package/dist/cjs/kol-input-file.cjs.entry.js +39 -41
- package/dist/cjs/kol-input-number.cjs.entry.js +46 -48
- package/dist/cjs/kol-input-password.cjs.entry.js +43 -45
- package/dist/cjs/kol-input-radio.cjs.entry.js +38 -41
- package/dist/cjs/kol-input-range.cjs.entry.js +37 -40
- package/dist/cjs/kol-input-text.cjs.entry.js +45 -47
- package/dist/cjs/kol-kolibri.cjs.entry.js +8 -12
- package/dist/cjs/kol-link-button.cjs.entry.js +23 -26
- package/dist/cjs/kol-link.cjs.entry.js +23 -26
- package/dist/cjs/kol-meter.cjs.entry.js +14 -15
- package/dist/cjs/kol-modal.cjs.entry.js +30 -33
- package/dist/cjs/kol-nav.cjs.entry.js +35 -38
- package/dist/cjs/kol-pagination.cjs.entry.js +42 -45
- package/dist/cjs/kol-popover-button.cjs.entry.js +23 -26
- package/dist/cjs/kol-progress.cjs.entry.js +13 -14
- package/dist/cjs/kol-quote.cjs.entry.js +9 -10
- package/dist/cjs/kol-select.cjs.entry.js +36 -39
- package/dist/cjs/kol-single-select.cjs.entry.js +38 -41
- package/dist/cjs/kol-skip-nav.cjs.entry.js +26 -30
- package/dist/cjs/kol-spin.cjs.entry.js +11 -15
- package/dist/cjs/kol-split-button.cjs.entry.js +28 -31
- package/dist/cjs/kol-table-stateful.cjs.entry.js +55 -57
- package/dist/cjs/kol-table-stateless.cjs.entry.js +40 -44
- package/dist/cjs/kol-tabs.cjs.entry.js +23 -26
- package/dist/cjs/kol-textarea.cjs.entry.js +41 -44
- package/dist/cjs/kol-toast-container.cjs.entry.js +20 -23
- package/dist/cjs/kol-toolbar.cjs.entry.js +29 -32
- package/dist/cjs/kol-tooltip-wc.cjs.entry.js +11 -12
- package/dist/cjs/kol-tree-item.cjs.entry.js +27 -28
- package/dist/cjs/kol-tree.cjs.entry.js +24 -14
- package/dist/cjs/kol-version.cjs.entry.js +21 -24
- package/dist/cjs/kolibri.cjs.js +3 -3
- package/dist/cjs/{label-D6c6jfqK.js → label-BAULqhwq.js} +3 -3
- package/dist/cjs/{label-hints-q3XenWLW.js → label-hints-BHw-UcMt.js} +1 -1
- package/dist/cjs/{label-lang-segment-k4OY9qRY.js → label-lang-segment-D_UYFhgr.js} +2 -2
- package/dist/cjs/{label-with-expert-slot-CJoz7BLw.js → label-with-expert-slot-XZTOiRp-.js} +3 -3
- package/dist/cjs/{level-B6vFMm9s.js → level-CaJUuMiH.js} +1 -1
- package/dist/cjs/{link-target-0qSVsAb2.js → link-target-EZq24qVX.js} +1 -1
- package/dist/cjs/{links-Ur1e9DOK.js → links-CNPivOpm.js} +1 -1
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{multiple-CCxtzqez.js → multiple-D4ktp4Q2.js} +1 -1
- package/dist/cjs/{number-value-DzAHCwlP.js → number-value-BzIR1UvL.js} +1 -1
- package/dist/cjs/{open-Gxr_K7HK.js → open-BYh5VAA1.js} +1 -1
- package/dist/cjs/{options-BT0m0gRT.js → options-DkF38kx_.js} +1 -1
- package/dist/cjs/{orientation-CeHU4dT8.js → orientation-D4yopkvP.js} +1 -1
- package/dist/cjs/{placeholder-22xUUFff.js → placeholder-CZOGOuLS.js} +1 -1
- package/dist/cjs/{props-from-config-D1qhXS9j.js → props-from-config-CiU21EHb.js} +86 -5
- package/dist/cjs/{read-only-iHApMQEg.js → read-only-PNG5jHgh.js} +1 -1
- package/dist/cjs/{required-BYdSI25I.js → required-mj54_vO_.js} +1 -1
- package/dist/cjs/{resolve-props-pZBj0tIz.js → resolve-props-CH6OL2es.js} +7 -7
- package/dist/cjs/{resolve-props-B_ytLWBO.js → resolve-props-DOnocHFi.js} +6 -6
- package/dist/cjs/{rows-C9vBSQK1.js → rows-YaAnXjAm.js} +1 -1
- package/dist/cjs/{scroll-lock-DguXX-Em.js → scroll-lock-D3pgiG8q.js} +8 -7
- package/dist/cjs/{smart-button-DRMmUyQ5.js → smart-button-BU7mWP5H.js} +1 -1
- package/dist/cjs/{spell-check-CxgvHcGA.js → spell-check-CZWiLkQE.js} +1 -1
- package/dist/cjs/{src-Bmd7gQCS.js → src-rB2yGTSn.js} +1 -1
- package/dist/cjs/{step-CCqgsPCX.js → step-Bo6ILIqa.js} +1 -1
- package/dist/cjs/{suggestions-CoUp7HmN.js → suggestions-BO4EvOXc.js} +1 -1
- package/dist/cjs/{suggestions-C6Q3kj5J.js → suggestions-Ca575hi-.js} +3 -3
- package/dist/cjs/test-component.cjs.entry.js +1 -1
- package/dist/cjs/{toggle-handler-BaOOa9I5.js → toggle-handler-ByJYSOdb.js} +11 -13
- package/dist/cjs/{unique-nav-labels-CgxOyb6V.js → unique-nav-labels-_EHPpYUR.js} +1 -1
- package/dist/cjs/{unit-_oDj-vIB.js → unit-Bl0Lyk08.js} +1 -1
- package/dist/cjs/{validators-CpCJvM4r.js → validators-rLs6tEWo.js} +1 -1
- package/dist/cjs/{value-string-CKppMGVM.js → value-string-BKsvZy1q.js} +1 -1
- package/dist/cjs/{width-e7f3wHF3.js → width-DegQFxQB.js} +1 -1
- package/dist/collection/components/abbr/style.css +21 -0
- package/dist/collection/components/accordion/style.css +23 -2
- package/dist/collection/components/alert/component.js +6 -5
- package/dist/collection/components/alert/style.css +23 -2
- package/dist/collection/components/avatar/style.css +21 -0
- package/dist/collection/components/badge/style.css +23 -2
- package/dist/collection/components/breadcrumb/style.css +23 -2
- package/dist/collection/components/button/style.css +23 -2
- package/dist/collection/components/button-link/style.css +23 -2
- package/dist/collection/components/card/style.css +26 -2
- package/dist/collection/components/combobox/style.css +23 -2
- package/dist/collection/components/details/style.css +23 -2
- package/dist/collection/components/dialog/base.js +2 -2
- package/dist/collection/components/dialog/style.css +26 -2
- package/dist/collection/components/drawer/style.css +26 -2
- package/dist/collection/components/form/style.css +23 -2
- package/dist/collection/components/heading/style.css +21 -0
- package/dist/collection/components/icon/style.css +2 -2
- package/dist/collection/components/image/style.css +21 -0
- package/dist/collection/components/input-checkbox/component.js +13 -11
- package/dist/collection/components/input-checkbox/style.css +23 -2
- package/dist/collection/components/input-color/component.js +6 -4
- package/dist/collection/components/input-color/style.css +23 -2
- package/dist/collection/components/input-date/component.js +9 -7
- package/dist/collection/components/input-date/style.css +23 -2
- package/dist/collection/components/input-email/component.js +4 -1
- package/dist/collection/components/input-email/style.css +23 -2
- package/dist/collection/components/input-file/component.js +6 -3
- package/dist/collection/components/input-file/style.css +23 -2
- package/dist/collection/components/input-number/component.js +6 -4
- package/dist/collection/components/input-number/style.css +23 -2
- package/dist/collection/components/input-password/component.js +5 -2
- package/dist/collection/components/input-password/style.css +23 -2
- package/dist/collection/components/input-radio/style.css +23 -2
- package/dist/collection/components/input-range/style.css +23 -2
- package/dist/collection/components/input-text/component.js +4 -2
- package/dist/collection/components/input-text/style.css +23 -2
- package/dist/collection/components/kolibri/style.css +21 -0
- package/dist/collection/components/link/style.css +23 -2
- package/dist/collection/components/link-button/style.css +23 -2
- package/dist/collection/components/meter/style.css +21 -0
- package/dist/collection/components/modal/style.css +26 -2
- package/dist/collection/components/nav/style.css +23 -2
- package/dist/collection/components/pagination/component.js +5 -5
- package/dist/collection/components/pagination/style.css +23 -2
- package/dist/collection/components/popover-button/style.css +23 -2
- package/dist/collection/components/progress/style.css +21 -0
- package/dist/collection/components/quote/style.css +21 -0
- package/dist/collection/components/select/style.css +23 -2
- package/dist/collection/components/single-select/style.css +23 -2
- package/dist/collection/components/skip-nav/style.css +23 -2
- package/dist/collection/components/spin/style.css +21 -0
- package/dist/collection/components/split-button/style.css +23 -2
- package/dist/collection/components/table-stateful/component.js +7 -6
- package/dist/collection/components/table-stateful/style.css +26 -2
- package/dist/collection/components/table-stateless/component.js +3 -5
- package/dist/collection/components/table-stateless/style.css +26 -2
- package/dist/collection/components/tabs/style.css +23 -2
- package/dist/collection/components/textarea/style.css +23 -2
- package/dist/collection/components/toaster/style.css +23 -2
- package/dist/collection/components/toolbar/style.css +23 -2
- package/dist/collection/components/tree/component.js +15 -4
- package/dist/collection/components/tree/style.css +21 -0
- package/dist/collection/components/tree-item/component.js +5 -2
- package/dist/collection/components/tree-item/style.css +23 -2
- package/dist/collection/components/version/style.css +23 -2
- package/dist/collection/core/i18n.js +2 -1
- package/dist/collection/internal/functional-components/alert/component.js +2 -1
- package/dist/collection/internal/functional-components/avatar/component.js +2 -2
- package/dist/collection/internal/functional-components/badge/component.js +2 -1
- package/dist/collection/internal/functional-components/bem-root-node/component.js +16 -6
- package/dist/collection/internal/functional-components/breadcrumb/component.js +2 -2
- package/dist/collection/internal/functional-components/card/component.js +3 -1
- package/dist/collection/internal/functional-components/collapsible/component.js +3 -2
- package/dist/collection/internal/functional-components/dialog/component.js +6 -3
- package/dist/collection/internal/functional-components/dialog/item.js +2 -2
- package/dist/collection/internal/functional-components/drawer/component.js +1 -1
- package/dist/collection/internal/functional-components/form-association/api.js +2 -2
- package/dist/collection/internal/functional-components/form-association/behavior.js +1 -5
- package/dist/collection/internal/functional-components/form-field/base-web-component.js +0 -1
- package/dist/collection/internal/functional-components/heading/component.js +3 -4
- package/dist/collection/internal/functional-components/icon/component.js +2 -2
- package/dist/collection/internal/functional-components/image/component.js +2 -4
- package/dist/collection/internal/functional-components/link/component.js +1 -1
- package/dist/collection/internal/functional-components/meter/component.js +2 -1
- package/dist/collection/internal/functional-components/pagination/item.js +6 -6
- package/dist/collection/internal/functional-components/progress/component.js +2 -1
- package/dist/collection/internal/functional-components/quote/component.js +2 -2
- package/dist/collection/internal/functional-components/skip-nav/component.js +2 -2
- package/dist/collection/internal/functional-components/span/component.js +3 -2
- package/dist/collection/internal/functional-components/table-stateless/settings.js +12 -4
- package/dist/collection/internal/functional-components/tree/component.js +2 -2
- package/dist/collection/internal/functional-components/tree-item/component.js +2 -2
- package/dist/collection/schema/bem-registry.js +61 -0
- package/dist/collection/schema/props/aria-details.js +1 -22
- package/dist/collection/schema/props/aria-labelledby.js +3 -12
- package/dist/collection/utils/aria-labelledby.js +0 -12
- package/dist/components/Heading.js +1 -1
- package/dist/components/aria-labelledby.js +1 -1
- package/dist/components/base-web-component2.js +1 -1
- package/dist/components/base-web-component3.js +1 -1
- package/dist/components/base-web-component4.js +1 -1
- package/dist/components/base.js +1 -1
- package/dist/components/base2.js +1 -1
- package/dist/components/base3.js +1 -1
- package/dist/components/base4.js +1 -1
- package/dist/components/behavior.js +1 -1
- package/dist/components/behavior2.js +1 -1
- package/dist/components/behavior3.js +1 -1
- package/dist/components/behavior4.js +1 -1
- package/dist/components/bem-registry.js +1 -1
- package/dist/components/component.js +1 -1
- package/dist/components/component10.js +1 -1
- package/dist/components/component2.js +1 -1
- package/dist/components/component3.js +1 -1
- package/dist/components/component4.js +1 -1
- package/dist/components/component5.js +1 -1
- package/dist/components/component6.js +1 -1
- package/dist/components/component7.js +1 -1
- package/dist/components/component8.js +1 -1
- package/dist/components/component9.js +1 -1
- package/dist/components/contrast.js +1 -1
- package/dist/components/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/input.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/level.js +1 -1
- package/dist/components/links.js +1 -1
- package/dist/components/number-value.js +1 -1
- package/dist/components/props-from-config.js +1 -1
- package/dist/components/resolve-props.js +1 -1
- package/dist/components/resolve-props2.js +1 -1
- package/dist/components/rows.js +1 -1
- package/dist/components/scroll-lock.js +1 -1
- package/dist/components/step.js +1 -1
- package/dist/components/toggle-handler.js +1 -1
- package/dist/components/unit.js +1 -1
- package/dist/components/validators.js +1 -1
- package/dist/esm/{Heading-C_CwXDMp.js → Heading-BubZbykM.js} +2 -2
- package/dist/esm/{api-DGiFM9p0.js → api-D0RNr-zh.js} +21 -22
- package/dist/esm/{app-globals-sZHZyXjD.js → app-globals-DYRte_jr.js} +2 -2
- package/dist/esm/{aria-labelledby-CLehu03h.js → aria-labelledby-DqJY_4G-.js} +1 -13
- package/dist/esm/{base-DTKJ1Z06.js → base-BP5SdLvQ.js} +39 -41
- package/dist/esm/{base-B4sGK9cX.js → base-BbGt9eYx.js} +10 -10
- package/dist/esm/{base-CWrvN3Gt.js → base-CLsKm3-e.js} +10 -10
- package/dist/esm/{base-P1TaQ7Ba.js → base-Cz00snD6.js} +10 -10
- package/dist/esm/{base-web-component-CC_gpyDb.js → base-web-component-CYPdDdRn.js} +1 -1
- package/dist/esm/{base-web-component-CKgIOZqi.js → base-web-component-CdSFFCst.js} +8 -10
- package/dist/esm/{base-web-component-Bq_B9edx.js → base-web-component-DP9_OPgV.js} +13 -14
- package/dist/esm/{behavior-Bb7JYoUn.js → behavior-B6y5Gofe.js} +4 -4
- package/dist/esm/{behavior-CFG1f4KQ.js → behavior-BJR8CKBx.js} +4 -4
- package/dist/esm/{behavior-CkPQGfgo.js → behavior-DlH8byIw.js} +6 -12
- package/dist/esm/{bem-registry-DQUGxdIS.js → bem-registry-SKACeCny.js} +61 -0
- package/dist/esm/{bootstrap-tgQ2nQQI.js → bootstrap-Bp7i4RJQ.js} +1 -1
- package/dist/esm/{color-D1gM-F2l.js → color-BbljGuAW.js} +2 -2
- package/dist/esm/component-6_YiKr2Z.js +48 -0
- package/dist/esm/{component-W1KZI4h4.js → component-B8UMedaK.js} +4 -4
- package/dist/esm/{component-5Uu-ahLC.js → component-CMHB3reH.js} +6 -5
- package/dist/esm/{component-B16Fbp3W.js → component-CNgECeRi.js} +9 -11
- package/dist/esm/{component-Bc2pdOk1.js → component-CSsUaL_h.js} +6 -8
- package/dist/esm/{component-DAQzDMY8.js → component-CiJGQTU0.js} +13 -15
- package/dist/esm/{component-C79oAu7a.js → component-DEwcJKDA.js} +4 -4
- package/dist/esm/{component-CldKbBUh.js → component-NOe28NXD.js} +5 -6
- package/dist/esm/{component-BI8jDgBz.js → component-ZdHnXLLI.js} +10 -11
- package/dist/esm/component-bIIx1x7q.js +17 -0
- package/dist/esm/{component-oUQcgxDj.js → component-hiabKVP3.js} +6 -7
- package/dist/esm/{contrast-BNoQruBh.js → contrast-DtK0a6X2.js} +1 -1
- package/dist/esm/{dev.utils-DDWOHUcg.js → dev.utils-B0t4rcBV.js} +1 -1
- package/dist/esm/{devtools-B0kEE_za.js → devtools-DuJRc6wJ.js} +2 -2
- package/dist/esm/{disabled-BZXlWAgK.js → disabled-B2o4Ctgy.js} +1 -1
- package/dist/esm/{field-control-DsQHa0v9.js → field-control-C9dIXnES.js} +7 -7
- package/dist/esm/{group-DUVsgWxS.js → group-DydT1Z92.js} +5 -6
- package/dist/esm/{has-closer-DUB0QcS9.js → has-closer-BrG00xL7.js} +1 -1
- package/dist/esm/{href-CxokGOJ2.js → href-CfNF4pHX.js} +1 -1
- package/dist/esm/{i18n-ePBcLlCr.js → i18n-BLkzMf6D.js} +1 -1
- package/dist/esm/{i18n-4J6U3ZDc.js → i18n-BRgvVqCf.js} +2 -1
- package/dist/esm/{id-BI0ZuK17.js → id-Bh4FF8c0.js} +1 -1
- package/dist/esm/{index-Dulj0jro.js → index-Bbr6Os1b.js} +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/{input-C0Li7DsE.js → input-C1YsxnDL.js} +4 -5
- package/dist/esm/{input-container-DmtMTcjB.js → input-container-zXl_6y52.js} +6 -8
- package/dist/esm/{item-CnJMuEyl.js → item-DXDEHrEg.js} +4 -4
- package/dist/esm/{item-DHZGDrAn.js → item-Dms_59sU.js} +11 -11
- package/dist/esm/{item-8RKFpmbd.js → item-hsQoejqZ.js} +4 -4
- package/dist/esm/{item-CxVe5INa.js → item-zXunNZh5.js} +17 -18
- package/dist/esm/kol-abbr.entry.js +7 -11
- package/dist/esm/kol-accordion.entry.js +15 -17
- package/dist/esm/kol-alert.entry.js +27 -30
- package/dist/esm/kol-avatar.entry.js +14 -15
- package/dist/esm/kol-badge.entry.js +23 -26
- package/dist/esm/kol-breadcrumb.entry.js +26 -30
- package/dist/esm/kol-button-link.entry.js +22 -25
- package/dist/esm/kol-button.entry.js +22 -25
- package/dist/esm/kol-card.entry.js +27 -30
- package/dist/esm/kol-combobox.entry.js +37 -40
- package/dist/esm/kol-details.entry.js +15 -17
- package/dist/esm/kol-dialog.entry.js +30 -33
- package/dist/esm/kol-drawer.entry.js +30 -33
- package/dist/esm/kol-form.entry.js +23 -26
- package/dist/esm/kol-heading.entry.js +13 -15
- package/dist/esm/kol-icon.entry.js +8 -9
- package/dist/esm/kol-image.entry.js +7 -9
- package/dist/esm/kol-input-checkbox.entry.js +48 -50
- package/dist/esm/kol-input-color.entry.js +42 -44
- package/dist/esm/kol-input-date.entry.js +44 -47
- package/dist/esm/kol-input-email.entry.js +45 -47
- package/dist/esm/kol-input-file.entry.js +39 -41
- package/dist/esm/kol-input-number.entry.js +46 -48
- package/dist/esm/kol-input-password.entry.js +43 -45
- package/dist/esm/kol-input-radio.entry.js +35 -38
- package/dist/esm/kol-input-range.entry.js +37 -40
- package/dist/esm/kol-input-text.entry.js +45 -47
- package/dist/esm/kol-kolibri.entry.js +7 -11
- package/dist/esm/kol-link-button.entry.js +23 -26
- package/dist/esm/kol-link.entry.js +23 -26
- package/dist/esm/kol-meter.entry.js +14 -15
- package/dist/esm/kol-modal.entry.js +30 -33
- package/dist/esm/kol-nav.entry.js +30 -33
- package/dist/esm/kol-pagination.entry.js +42 -45
- package/dist/esm/kol-popover-button.entry.js +23 -26
- package/dist/esm/kol-progress.entry.js +13 -14
- package/dist/esm/kol-quote.entry.js +9 -10
- package/dist/esm/kol-select.entry.js +36 -39
- package/dist/esm/kol-single-select.entry.js +37 -40
- package/dist/esm/kol-skip-nav.entry.js +26 -30
- package/dist/esm/kol-spin.entry.js +11 -15
- package/dist/esm/kol-split-button.entry.js +26 -29
- package/dist/esm/kol-table-stateful.entry.js +55 -57
- package/dist/esm/kol-table-stateless.entry.js +40 -44
- package/dist/esm/kol-tabs.entry.js +22 -25
- package/dist/esm/kol-textarea.entry.js +39 -42
- package/dist/esm/kol-toast-container.entry.js +19 -22
- package/dist/esm/kol-toolbar.entry.js +27 -30
- package/dist/esm/kol-tooltip-wc.entry.js +11 -12
- package/dist/esm/kol-tree-item.entry.js +27 -28
- package/dist/esm/kol-tree.entry.js +24 -14
- package/dist/esm/kol-version.entry.js +20 -23
- package/dist/esm/kolibri.js +4 -4
- package/dist/esm/{label-B-Dr7VaP.js → label-BQVd3bkc.js} +3 -3
- package/dist/esm/{label-hints-CLMiVvfk.js → label-hints-CZGo9ZD5.js} +1 -1
- package/dist/esm/{label-lang-segment-iVD9hoM3.js → label-lang-segment-C5LYGOHt.js} +2 -2
- package/dist/esm/label-with-expert-slot-D1tpX9DI.js +12 -0
- package/dist/esm/{level-DsQ_pcyD.js → level-BVXGgbSM.js} +1 -1
- package/dist/esm/{link-target-D7lYILOV.js → link-target-BWPSEd9a.js} +1 -1
- package/dist/esm/{links-IkK4zoXw.js → links-BbsnNXfa.js} +1 -1
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{multiple--ay1C1n3.js → multiple-S3Ol1G6Z.js} +1 -1
- package/dist/esm/{number-value-Dl9-2O4r.js → number-value-DmOl1z7z.js} +1 -1
- package/dist/esm/{open-CNHJhHsy.js → open-DPP79Urq.js} +1 -1
- package/dist/esm/{options-DwO32GBF.js → options-aA3M-QV2.js} +1 -1
- package/dist/esm/{orientation-ChJ0S24M.js → orientation-DlsgaY1v.js} +1 -1
- package/dist/esm/{placeholder-UxmBJ4Vl.js → placeholder-DlHbiVjz.js} +1 -1
- package/dist/esm/{props-from-config-ytxYrJUY.js → props-from-config-BOUcpF7e.js} +84 -6
- package/dist/esm/{read-only-DytZ5HZJ.js → read-only-DSBWEPED.js} +1 -1
- package/dist/esm/{required-BriHhuO4.js → required-xw5BBPvV.js} +1 -1
- package/dist/esm/{resolve-props-02J6OCRf.js → resolve-props-CL8wxjtP.js} +7 -7
- package/dist/esm/{resolve-props-Bj6IaybL.js → resolve-props-DAVb5BM3.js} +6 -6
- package/dist/esm/{rows-I1jrTjzU.js → rows-DRV8YlQv.js} +1 -1
- package/dist/esm/{scroll-lock-B6hVv8A8.js → scroll-lock-BxAe0gL5.js} +9 -7
- package/dist/esm/{smart-button-DM5g48-g.js → smart-button-CQps8AlL.js} +1 -1
- package/dist/esm/{spell-check-BWCnJG5v.js → spell-check-hy6xFhmT.js} +1 -1
- package/dist/esm/{src-ziOwSglN.js → src-AwoM1pRe.js} +1 -1
- package/dist/esm/{step-BcyhvRtu.js → step-CopA0_m7.js} +1 -1
- package/dist/esm/{suggestions-DaB3FVaz.js → suggestions-BsiiaAxK.js} +3 -3
- package/dist/esm/{suggestions-LO267l8F.js → suggestions-CY8BJMOa.js} +1 -1
- package/dist/esm/test-component.entry.js +1 -1
- package/dist/esm/{toggle-handler-3qaN2kmt.js → toggle-handler-ZMs2rBXc.js} +10 -12
- package/dist/esm/{unique-nav-labels-CxFUYSVY.js → unique-nav-labels-BV-M3fPR.js} +1 -1
- package/dist/esm/{unit-1ix-K9SD.js → unit-hmMwqE9a.js} +1 -1
- package/dist/esm/{validators-CTjxOidB.js → validators-BgDmq-Qt.js} +1 -1
- package/dist/esm/{value-string-CxDz7dhD.js → value-string-Dy8zJxlP.js} +1 -1
- package/dist/esm/{width-C1_yZHyL.js → width-BHn7XHj_.js} +1 -1
- package/dist/kolibri/Heading-BubZbykM.js +4 -0
- package/dist/kolibri/api-D0RNr-zh.js +4 -0
- package/dist/kolibri/app-globals-DYRte_jr.js +4 -0
- package/dist/kolibri/aria-labelledby-DqJY_4G-.js +4 -0
- package/dist/kolibri/base-BP5SdLvQ.js +4 -0
- package/dist/kolibri/base-BbGt9eYx.js +4 -0
- package/dist/kolibri/base-CLsKm3-e.js +4 -0
- package/dist/kolibri/base-Cz00snD6.js +4 -0
- package/dist/kolibri/{base-web-component-CC_gpyDb.js → base-web-component-CYPdDdRn.js} +1 -1
- package/dist/kolibri/base-web-component-CdSFFCst.js +4 -0
- package/dist/kolibri/base-web-component-DP9_OPgV.js +4 -0
- package/dist/kolibri/{behavior-Bb7JYoUn.js → behavior-B6y5Gofe.js} +1 -1
- package/dist/kolibri/{behavior-CFG1f4KQ.js → behavior-BJR8CKBx.js} +1 -1
- package/dist/kolibri/behavior-DlH8byIw.js +4 -0
- package/dist/kolibri/bem-registry-SKACeCny.js +4 -0
- package/dist/kolibri/{bootstrap-tgQ2nQQI.js → bootstrap-Bp7i4RJQ.js} +1 -1
- package/dist/kolibri/{color-D1gM-F2l.js → color-BbljGuAW.js} +1 -1
- package/dist/kolibri/component-6_YiKr2Z.js +4 -0
- package/dist/kolibri/{component-W1KZI4h4.js → component-B8UMedaK.js} +1 -1
- package/dist/kolibri/component-CMHB3reH.js +4 -0
- package/dist/kolibri/component-CNgECeRi.js +4 -0
- package/dist/kolibri/{component-Bc2pdOk1.js → component-CSsUaL_h.js} +1 -1
- package/dist/kolibri/component-CiJGQTU0.js +4 -0
- package/dist/kolibri/component-DEwcJKDA.js +4 -0
- package/dist/kolibri/component-NOe28NXD.js +4 -0
- package/dist/kolibri/component-ZdHnXLLI.js +4 -0
- package/dist/kolibri/component-bIIx1x7q.js +4 -0
- package/dist/kolibri/component-hiabKVP3.js +4 -0
- package/dist/kolibri/contrast-DtK0a6X2.js +4 -0
- package/dist/kolibri/{dev.utils-DDWOHUcg.js → dev.utils-B0t4rcBV.js} +1 -1
- package/dist/kolibri/{devtools-B0kEE_za.js → devtools-DuJRc6wJ.js} +1 -1
- package/dist/kolibri/disabled-B2o4Ctgy.js +4 -0
- package/dist/kolibri/field-control-C9dIXnES.js +4 -0
- package/dist/kolibri/group-DydT1Z92.js +4 -0
- package/dist/kolibri/has-closer-BrG00xL7.js +4 -0
- package/dist/kolibri/href-CfNF4pHX.js +4 -0
- package/dist/kolibri/{i18n-ePBcLlCr.js → i18n-BLkzMf6D.js} +1 -1
- package/dist/kolibri/{i18n-4J6U3ZDc.js → i18n-BRgvVqCf.js} +1 -1
- package/dist/kolibri/id-Bh4FF8c0.js +4 -0
- package/dist/kolibri/index-Bbr6Os1b.js +6 -0
- package/dist/kolibri/index.esm.js +1 -1
- package/dist/kolibri/input-C1YsxnDL.js +4 -0
- package/dist/kolibri/{input-container-DmtMTcjB.js → input-container-zXl_6y52.js} +1 -1
- package/dist/kolibri/item-DXDEHrEg.js +4 -0
- package/dist/kolibri/item-Dms_59sU.js +4 -0
- package/dist/kolibri/item-hsQoejqZ.js +4 -0
- package/dist/kolibri/item-zXunNZh5.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-BQVd3bkc.js +4 -0
- package/dist/kolibri/label-hints-CZGo9ZD5.js +4 -0
- package/dist/kolibri/label-lang-segment-C5LYGOHt.js +4 -0
- package/dist/kolibri/label-with-expert-slot-D1tpX9DI.js +4 -0
- package/dist/kolibri/level-BVXGgbSM.js +4 -0
- package/dist/kolibri/link-target-BWPSEd9a.js +4 -0
- package/dist/kolibri/{links-IkK4zoXw.js → links-BbsnNXfa.js} +1 -1
- package/dist/kolibri/multiple-S3Ol1G6Z.js +4 -0
- package/dist/kolibri/number-value-DmOl1z7z.js +4 -0
- package/dist/kolibri/open-DPP79Urq.js +4 -0
- package/dist/kolibri/{options-DwO32GBF.js → options-aA3M-QV2.js} +1 -1
- package/dist/kolibri/orientation-DlsgaY1v.js +4 -0
- package/dist/kolibri/placeholder-DlHbiVjz.js +4 -0
- package/dist/kolibri/props-from-config-BOUcpF7e.js +4 -0
- package/dist/kolibri/read-only-DSBWEPED.js +4 -0
- package/dist/kolibri/required-xw5BBPvV.js +4 -0
- package/dist/kolibri/resolve-props-CL8wxjtP.js +4 -0
- package/dist/kolibri/resolve-props-DAVb5BM3.js +4 -0
- package/dist/kolibri/rows-DRV8YlQv.js +4 -0
- package/dist/kolibri/scroll-lock-BxAe0gL5.js +4 -0
- package/dist/kolibri/{smart-button-DM5g48-g.js → smart-button-CQps8AlL.js} +1 -1
- package/dist/kolibri/spell-check-hy6xFhmT.js +4 -0
- package/dist/kolibri/src-AwoM1pRe.js +4 -0
- package/dist/kolibri/step-CopA0_m7.js +4 -0
- package/dist/kolibri/{suggestions-DaB3FVaz.js → suggestions-BsiiaAxK.js} +1 -1
- package/dist/kolibri/{suggestions-LO267l8F.js → suggestions-CY8BJMOa.js} +1 -1
- package/dist/kolibri/test-component.entry.js +1 -1
- package/dist/kolibri/toggle-handler-ZMs2rBXc.js +4 -0
- package/dist/kolibri/unique-nav-labels-BV-M3fPR.js +4 -0
- package/dist/kolibri/unit-hmMwqE9a.js +4 -0
- package/dist/kolibri/validators-BgDmq-Qt.js +4 -0
- package/dist/kolibri/value-string-Dy8zJxlP.js +4 -0
- package/dist/kolibri/{width-C1_yZHyL.js → width-BHn7XHj_.js} +1 -1
- package/dist/types/components/alert/component.d.ts +1 -0
- package/dist/types/components/input-date/component.d.ts +1 -1
- package/dist/types/components/table-stateful/component.d.ts +0 -1
- package/dist/types/components/table-stateless/component.d.ts +0 -1
- package/dist/types/components/tree/component.d.ts +1 -0
- package/dist/types/components.d.ts +6 -6
- package/dist/types/internal/functional-components/bem-root-node/component.d.ts +8 -4
- package/dist/types/internal/functional-components/button/item.d.ts +1 -1
- package/dist/types/internal/functional-components/dialog/component.d.ts +7 -3
- package/dist/types/internal/functional-components/form-association/api.d.ts +1 -1
- package/dist/types/internal/functional-components/form-association/behavior.d.ts +0 -1
- package/dist/types/internal/functional-components/pagination/item.d.ts +4 -2
- package/dist/types/schema/bem-registry.d.ts +89 -0
- package/dist/types/schema/props/aria-details.d.ts +0 -2
- package/dist/types/schema/props/aria-labelledby.d.ts +1 -2
- package/dist/types/utils/aria-labelledby.d.ts +0 -6
- package/doc/pagination.md +13 -13
- package/doc/table-stateful.md +16 -16
- package/doc/table-stateless.md +14 -14
- package/package.json +10 -5
- package/vscode-custom-data.json +3 -3
- package/dist/cjs/block-bem-ByCgFI2B.js +0 -18
- package/dist/cjs/clsx-Bm_HQUnh.js +0 -54
- package/dist/cjs/component-1J4G5HmZ.js +0 -53
- package/dist/cjs/component-CjXcCX2V.js +0 -20
- package/dist/cjs/component-DkV9oPCL.js +0 -18
- package/dist/cjs/input-BKXEykG_.js +0 -20
- package/dist/components/block-bem.js +0 -4
- package/dist/components/clsx.js +0 -4
- package/dist/components/component11.js +0 -4
- package/dist/esm/block-bem-BGIVcYJu.js +0 -16
- package/dist/esm/clsx-COFh-Vc8.js +0 -52
- package/dist/esm/component-B05zRrM0.js +0 -16
- package/dist/esm/component-Clz6b6ho.js +0 -18
- package/dist/esm/component-Ct11K0Gv.js +0 -48
- package/dist/esm/label-with-expert-slot-BbZ9nx0l.js +0 -12
- package/dist/kolibri/Heading-C_CwXDMp.js +0 -4
- package/dist/kolibri/api-DGiFM9p0.js +0 -4
- package/dist/kolibri/app-globals-sZHZyXjD.js +0 -4
- package/dist/kolibri/aria-labelledby-CLehu03h.js +0 -4
- package/dist/kolibri/base-B4sGK9cX.js +0 -4
- package/dist/kolibri/base-CWrvN3Gt.js +0 -4
- package/dist/kolibri/base-DTKJ1Z06.js +0 -4
- package/dist/kolibri/base-P1TaQ7Ba.js +0 -4
- package/dist/kolibri/base-web-component-Bq_B9edx.js +0 -4
- package/dist/kolibri/base-web-component-CKgIOZqi.js +0 -4
- package/dist/kolibri/behavior-CkPQGfgo.js +0 -4
- package/dist/kolibri/bem-registry-DQUGxdIS.js +0 -4
- package/dist/kolibri/block-bem-BGIVcYJu.js +0 -4
- package/dist/kolibri/clsx-COFh-Vc8.js +0 -4
- package/dist/kolibri/component-5Uu-ahLC.js +0 -4
- package/dist/kolibri/component-B05zRrM0.js +0 -4
- package/dist/kolibri/component-B16Fbp3W.js +0 -4
- package/dist/kolibri/component-BI8jDgBz.js +0 -4
- package/dist/kolibri/component-C79oAu7a.js +0 -4
- package/dist/kolibri/component-CldKbBUh.js +0 -4
- package/dist/kolibri/component-Clz6b6ho.js +0 -4
- package/dist/kolibri/component-Ct11K0Gv.js +0 -4
- package/dist/kolibri/component-DAQzDMY8.js +0 -4
- package/dist/kolibri/component-oUQcgxDj.js +0 -4
- package/dist/kolibri/contrast-BNoQruBh.js +0 -4
- package/dist/kolibri/disabled-BZXlWAgK.js +0 -4
- package/dist/kolibri/field-control-DsQHa0v9.js +0 -4
- package/dist/kolibri/group-DUVsgWxS.js +0 -4
- package/dist/kolibri/has-closer-DUB0QcS9.js +0 -4
- package/dist/kolibri/href-CxokGOJ2.js +0 -4
- package/dist/kolibri/id-BI0ZuK17.js +0 -4
- package/dist/kolibri/index-Dulj0jro.js +0 -6
- package/dist/kolibri/input-C0Li7DsE.js +0 -4
- package/dist/kolibri/item-8RKFpmbd.js +0 -4
- package/dist/kolibri/item-CnJMuEyl.js +0 -4
- package/dist/kolibri/item-CxVe5INa.js +0 -4
- package/dist/kolibri/item-DHZGDrAn.js +0 -4
- package/dist/kolibri/label-B-Dr7VaP.js +0 -4
- package/dist/kolibri/label-hints-CLMiVvfk.js +0 -4
- package/dist/kolibri/label-lang-segment-iVD9hoM3.js +0 -4
- package/dist/kolibri/label-with-expert-slot-BbZ9nx0l.js +0 -4
- package/dist/kolibri/level-DsQ_pcyD.js +0 -4
- package/dist/kolibri/link-target-D7lYILOV.js +0 -4
- package/dist/kolibri/multiple--ay1C1n3.js +0 -4
- package/dist/kolibri/number-value-Dl9-2O4r.js +0 -4
- package/dist/kolibri/open-CNHJhHsy.js +0 -4
- package/dist/kolibri/orientation-ChJ0S24M.js +0 -4
- package/dist/kolibri/placeholder-UxmBJ4Vl.js +0 -4
- package/dist/kolibri/props-from-config-ytxYrJUY.js +0 -4
- package/dist/kolibri/read-only-DytZ5HZJ.js +0 -4
- package/dist/kolibri/required-BriHhuO4.js +0 -4
- package/dist/kolibri/resolve-props-02J6OCRf.js +0 -4
- package/dist/kolibri/resolve-props-Bj6IaybL.js +0 -4
- package/dist/kolibri/rows-I1jrTjzU.js +0 -4
- package/dist/kolibri/scroll-lock-B6hVv8A8.js +0 -4
- package/dist/kolibri/spell-check-BWCnJG5v.js +0 -4
- package/dist/kolibri/src-ziOwSglN.js +0 -4
- package/dist/kolibri/step-BcyhvRtu.js +0 -4
- package/dist/kolibri/toggle-handler-3qaN2kmt.js +0 -4
- package/dist/kolibri/unique-nav-labels-CxFUYSVY.js +0 -4
- package/dist/kolibri/unit-1ix-K9SD.js +0 -4
- package/dist/kolibri/validators-CTjxOidB.js +0 -4
- package/dist/kolibri/value-string-CxDz7dhD.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{r as t,h as o,H as e,g as i}from"./index-Dulj0jro.js";import{t as n}from"./i18n-ePBcLlCr.js";import{c as l,P as a}from"./item-CxVe5INa.js";import{p as r,e as s}from"./common-BdSzSIXg.js";import{a as c}from"./aria-labelledby-CLehu03h.js";import{B as d,t as p,a as k,v as h}from"./base-DTKJ1Z06.js";import{c as b,n as m,b as _,a as f,t as u}from"./props-from-config-ytxYrJUY.js";import{C as g}from"./keyboard-DNd73LVa.js";import{d as v,K as y}from"./events-CRHxtwup.js";import"./i18n-4J6U3ZDc.js";import"./bem-registry-DQUGxdIS.js";import"./component-B05zRrM0.js";import"./tslib.es6-QNbPBOk5.js";import"./clsx-COFh-Vc8.js";import"./block-bem-BGIVcYJu.js";import"./component-B16Fbp3W.js";import"./component-C79oAu7a.js";import"./validators-CTjxOidB.js";import"./component-W1KZI4h4.js";import"./component-oUQcgxDj.js";import"./component-Clz6b6ho.js";import"./disabled-BZXlWAgK.js";import"./id-BI0ZuK17.js";import"./label-with-expert-slot-BbZ9nx0l.js";import"./label-hints-CLMiVvfk.js";import"./unique-nav-labels-CxFUYSVY.js";import"./label-B-Dr7VaP.js";import"./item-8RKFpmbd.js";import"./controller-CZcQ57AP.js";import"./component-names-Dhbtt0mX.js";import"./dev.utils-DDWOHUcg.js";import"./element-interaction-sGYdEpmv.js";import"./element-focus-BIRmGg5W.js";import"./base-web-component-CC_gpyDb.js";import"./behavior-Bb7JYoUn.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./label-lang-segment-iVD9hoM3.js";import"./resolve-props-Bj6IaybL.js";import"./item-pool-BOxAYePG.js";import"./base-web-component-CKgIOZqi.js";import"./input-container-DmtMTcjB.js";import"./api-DGiFM9p0.js";import"./behavior-CkPQGfgo.js";import"./bootstrap-tgQ2nQQI.js";import"./item-DHZGDrAn.js";import"./component-Bc2pdOk1.js";import"./component-BI8jDgBz.js";import"./Heading-C_CwXDMp.js";import"./multiple--ay1C1n3.js";import"./required-BriHhuO4.js";import"./rows-I1jrTjzU.js";import"./access-and-short-key-ijzCZfHm.js";import"./options-B0rBHetL.js";import"./item-CnJMuEyl.js";import"./ariaCurrentService-YoLNpD5S.js";import"./resolve-props-02J6OCRf.js";import"./component-DAQzDMY8.js";import"./href-CxokGOJ2.js";import"./link-target-D7lYILOV.js";import"./component-CldKbBUh.js";import"./level-DsQ_pcyD.js";import"./scroll-lock-B6hVv8A8.js";import"./width-C1_yZHyL.js";import"./component-Ct11K0Gv.js";import"./has-closer-DUB0QcS9.js";const x=b("allowMultiSort",!1,m),w=["both","bottom","top"],z=b("paginationPosition","bottom",(t=>{const o=_(t);if(w.includes(o))return o;throw new Error(`Invalid pagination position: ${o}`)})),j=t=>{try{return r(t)}catch(o){return t}},C=b("pagination",{_page:1,_pageSize:10,_max:0},(t=>{const o=j(t);if(!0===o||""===o)return{};if("object"==typeof o&&null!==o)return o;throw new Error("Invalid table pagination: expected true, an empty string or a pagination object.")})),S=f(),D=b("headers",{horizontal:[],vertical:[]},(t=>{const o="string"==typeof t?r(t):t;if("object"==typeof o&&null!==o)return o;throw new Error("Invalid table headers: expected an object.")})),B=t=>void 0===t.type||"default"===t.type;function O(t,o,e){if(B(t)&&!e&&"function"==typeof t.compareFn){if(t.key){const e=o.find((o=>o.key===t.key));if(null==e?void 0:e.direction)return e.direction}return"NOS"}}function T(t,o,e,i){if(B(t)&&!e&&i&&"function"==typeof t.compareFn&&t.key){const e=o.findIndex((o=>o.key===t.key));if(e>=0)return e+1}}const P=[10,20,50,100],I=class extends d{constructor(o){super(...arguments),new.target===I&&t(this,o),this.pagination={_page:1,_pageSize:10,_max:0},this.renderCount=0,this.externalLabelElements=[],this.hasScrollbar=!1,this.settingsChangedCounter=0,this.sortedData=[],this.stickyColsDisabled=!1,this.data=[],this.headers={horizontal:[],vertical:[]},this.allowMultiSort=!1,this.paginationPosition="bottom",this.statefulOn={},this.sortData=[],this.disableSort=!1,this.showPagination=!1,this.pageEndSlice=10,this.paginationItems={},this.rowKeys=new Map,this.statelessOn={onSort:(t,{key:o})=>{const e=function(t,o){var e,i;const n=[];for(const o of[...null!==(e=t.horizontal)&&void 0!==e?e:[],...null!==(i=t.vertical)&&void 0!==i?i:[]])Array.isArray(o)&&n.push(...o);return n.find((t=>t.key===o))}(this.headers,o);if(e){const t=function(t,o,e){var i;if(!B(o)||"function"!=typeof o.compareFn)return;let n=e||o.key===(null===(i=t[0])||void 0===i?void 0:i.key)?t.map((t=>Object.assign({},t))):[];const l=n.findIndex((t=>t.key===o.key));if(l>=0){const t=n[l];switch(t.direction){case"ASC":t.direction="DESC";break;case"DESC":n=n.filter(((t,o)=>o!==l));break;default:t.direction="ASC"}}else o.key&&n.push({label:o.label,key:o.key,compareFn:o.compareFn,direction:"ASC"});return n}(this.sortData,e,this.allowMultiSort);t&&(this.sortData=t,this.updateSortedData())}}},this.handlePagination={onClick:(t,o)=>{var e;"function"==typeof(null===(e=this.pagination._on)||void 0===e?void 0:e.onClick)&&this.pagination._on.onClick(t,o),this.pagination=Object.assign(Object.assign({},this.pagination),{_page:o})},onChangePage:(t,o)=>{var e;"function"==typeof(null===(e=this.pagination._on)||void 0===e?void 0:e.onChangePage)&&this.pagination._on.onChangePage(t,o),this.pagination=Object.assign(Object.assign({},this.pagination),{_page:o})},onChangePageSize:(t,o)=>{var e;"function"==typeof(null===(e=this.pagination._on)||void 0===e?void 0:e.onChangePageSize)&&this.pagination._on.onChangePageSize(t,o),this.pagination=Object.assign(Object.assign({},this.pagination),{_pageSize:o})}},this._ariaLabelledby=void 0,this._allowMultiSort=void 0,this._dataFoot=void 0,this._fixedCols=void 0,this._loading=void 0,this._pagination=void 0,this._paginationPosition="bottom",this._selection=void 0,this._on=void 0,this._hasSettingsMenu=void 0,this._variant=void 0,this.updateSortedData=()=>{this.sortedData=function(t,o,e){if(e)return t;const i=[...t];return o.length>0&&i.sort(((t,e)=>{for(const i of o){const o=i.compareFn(t,e,i.direction);if(0!==o)return"ASC"===i.direction?o:-o}return 0})),i}(this.data,this.sortData,this.disableSort)},this.handleChangeHeaderCells=t=>{this.adjustedHeaderCells=t}}watchAriaLabelledby(t){this.resolveExternalLabel(t)}watchAllowMultiSort(t){x.apply(t,(t=>{this.allowMultiSort=t}))}watchData(t){p.apply(t,(t=>{this.data=t,setTimeout(this.updateSortedData)}))}watchDataFoot(t){k.apply(t,(t=>{this.setRenderProp("dataFoot",t),setTimeout(this.updateSortedData)}))}watchFixedCols(t){this.applyFixedCols(t)}watchHeaders(t){D.apply(t,(t=>{(function(t,o){const e=t=>{var o,e,i,n;return[...null!==(e=null===(o=t.horizontal)||void 0===o?void 0:o.flatMap((t=>t.map((t=>null==t?void 0:t.key)).filter((t=>Boolean(t))))))&&void 0!==e?e:[],...null!==(n=null===(i=t.vertical)||void 0===i?void 0:i.flatMap((t=>t.map((t=>null==t?void 0:t.key)).filter((t=>Boolean(t))))))&&void 0!==n?n:[]]},i=e(t),n=e(o);return i.length!==n.length||i.some(((t,o)=>t!==n[o]))})(this.headers,t)&&(this.adjustedHeaderCells=void 0),this.initializeSort(t)&&setTimeout((()=>this.updateSortedData())),function(t){return Boolean(t.horizontal&&t.vertical&&t.horizontal.length>0&&t.vertical.length>0)}(t)&&(this.disableSort=!0,s("Table: You can not sort the table data, if horizontal and vertical headers are defined at the same time. (https://github.com/public-ui/kolibri/issues/2372)")),this.headers=t}))}watchLabel(t){this.applyLabel(t)}watchLoading(t){this.applyLoading(t)}watchPagination(t){this.showPagination=(t=>{const o=j(t);return!0===o||""===o||"object"==typeof o&&null!==o})(t),C.apply(t,(t=>{this.pagination=t}))}watchPaginationPosition(t){z.apply(t,(t=>{this.paginationPosition=t}))}watchSelection(t){this.applySelection(t)}watchOn(t){S.apply(t,(t=>{this.statefulOn=t}))}watchHasSettingsMenu(t){this.applyHasSettingsMenu(t)}watchVariant(t){this.applyVariant(t)}getSelection(){var t;return Promise.resolve(this.getSelectedData((null===(t=this.getRenderProp("selection")||void 0)||void 0===t?void 0:t.selectedKeys)||[]))}resetSort(){return this.initializeSort(this.headers),this.updateSortedData(),Promise.resolve()}componentWillLoad(){this.applyOn(this.statelessOn),this.internals=c(this.host),this.resolveExternalLabel(this._ariaLabelledby),this.watchAllowMultiSort(this._allowMultiSort),this.watchData(this._data),this.watchDataFoot(this._dataFoot),this.watchFixedCols(this._fixedCols),this.watchHeaders(this._headers),this.watchLabel(this._label),this.watchLoading(this._loading),this.watchOn(this._on),this.watchPagination(this._pagination),this.watchPaginationPosition(this._paginationPosition),this.watchSelection(this._selection),this.watchHasSettingsMenu(this._hasSettingsMenu),this.watchVariant(this._variant)}componentDidLoad(){this.externalLabelElements.length||this.resolveExternalLabel(this._ariaLabelledby),this.observeScrollContainer()}componentWillRender(){var t;const{rows:o,end:e}=function(t,o,e){if("number"==typeof o&&o>0&&"number"==typeof e&&e>0){const i=o*e>t.length?t.length:o*e;return{rows:t.slice(o*(e-1),i),end:i}}return{rows:t,end:t.length}}(this.sortedData,this.showPagination?null!==(t=this.pagination._pageSize)&&void 0!==t?t:10:this.sortedData.length,this.pagination._page||1);this.pageEndSlice=e,this.applyData(o),this.applyHeaders(this.buildHeaderCells()),this.syncPagination("top","top"===this._paginationPosition||"both"===this._paginationPosition),this.syncPagination("bottom","bottom"===this._paginationPosition||"both"===this._paginationPosition)}componentDidRender(){var t,o;this.updateScrollbarState(),this.syncTableItems(),null===(t=this.paginationItems.top)||void 0===t||t.sync(),null===(o=this.paginationItems.bottom)||void 0===o||o.sync()}disconnectedCallback(){var t,o;this.teardownTable(),null===(t=this.paginationItems.top)||void 0===t||t.destroy(),null===(o=this.paginationItems.bottom)||void 0===o||o.destroy()}onChangeHeaderCells(t){this.handleChangeHeaderCells(Object.assign(Object.assign({},this.getRenderProp("headers")),{horizontal:t.detail})),this.applyChangedHeaderCells(t)}onKeydown(t){this.moveCheckboxFocus(t)}initializeSort(t){const{sortData:o,hasSortedCells:e,missingKey:i}=function(t,o){var e,i;let n=[],l=!1,a=!1;const r=t=>{n=[],t.forEach((t=>{if(!B(t))return;if("function"==typeof t.compareFn&&!t.key)return void(a=!0);const e=t.key;if(!e)return;const i=t.sortDirection;"ASC"!==i&&"DESC"!==i||"function"!=typeof t.compareFn||((o||0===n.length)&&n.push({label:t.label,key:e,compareFn:t.compareFn,direction:i}),l=!0)}))};return null===(e=t.horizontal)||void 0===e||e.forEach(r),null===(i=t.vertical)||void 0===i||i.forEach(r),{sortData:n,hasSortedCells:l,missingKey:a}}(t,this.allowMultiSort);return i&&s("[KolTableStateful] A sortable column requires the 'key' property."),this.sortData=o,e}buildHeaderCells(){return function(t,o,e,i,n){var l,a,r;const s=t=>t?Object.assign(Object.assign({},t),{sortDirection:O(t,e,i),sortOrder:T(t,e,i,n)}):t,c=(null==o?void 0:o.horizontal)?function(t,o){var e;const i=new Map;return null===(e=t.horizontal)||void 0===e||e.forEach((t=>t.forEach((t=>{(null==t?void 0:t.key)&&i.set(t.key,t)})))),o.map((t=>t.map((t=>{const o=(null==t?void 0:t.key)?i.get(t.key):void 0;if(!o)return t;const e=Object.assign({},o);return void 0!==t.visible&&(e.visible=t.visible),void 0!==t.width&&(e.width=t.width),void 0!==t.hidable&&(e.hidable=t.hidable),void 0!==t.sortable&&(e.sortable=t.sortable),void 0!==t.resizable&&(e.resizable=t.resizable),e}))))}(t,o.horizontal):t.horizontal;return{horizontal:null!==(l=null==c?void 0:c.map((t=>t.map(s))))&&void 0!==l?l:[],vertical:null!==(r=null===(a=t.vertical)||void 0===a?void 0:a.map((t=>t.map(s))))&&void 0!==r?r:[]}}(this.headers,this.adjustedHeaderCells,this.sortData,this.disableSort,this.allowMultiSort)}getSelectedData(t){return function(t,o,e){var i;if(t){const n=null!==(i=t.keyPropertyName)&&void 0!==i?i:"id",l=new Set(e.map(String)),a=o.filter((t=>l.has(String(t[n]))));if(n)return a}return null}(this.getRenderProp("selection")||void 0,this.sortedData,t)}emitSelectionChange(t,o){const e=o,i=this.getRenderProp("selection");i&&(this.applySelection(Object.assign(Object.assign({},i),{selectedKeys:e})),this.renderCount++);const n=this.getSelectedData(e),l=this.statefulOn[g.onSelectionChange];"function"==typeof l&&l(t,n),this.host&&v(this.host,y.selectionChange,n)}getPaginationInput(t){const o=n("top"===t?"kol-pagination-position-top":"kol-pagination-position-bottom");return{boundaryCount:this.pagination._boundaryCount,customClass:this.pagination._customClass,hasButtons:this.pagination._hasButtons,on:this.handlePagination,page:this.pagination._page,pageSize:this.pagination._pageSize,pageSizeOptions:this.pagination._pageSizeOptions||P,siblingCount:this.pagination._siblingCount,tooltipAlign:"bottom",max:this.pagination._max||this.data.length,label:n("kol-table-pagination-label",{placeholders:{label:`${u(this.getRenderProp("label"))} (${o})`}})}}syncPagination(t,o){const e=this.paginationItems[t];if(this.pageEndSlice>0&&this.showPagination&&o){const o=this.getPaginationInput(t);if(e)e.update(o);else{const e=l({getEventTarget:()=>this.host,requestRender:()=>{this.renderCount++}});e.load(o),this.paginationItems[t]=e}}else e&&(e.destroy(),delete this.paginationItems[t])}resolveExternalLabel(t){this.externalLabelElements=h(this,this.host,this.internals,t),this.syncTableLabel(this.externalLabelElements)}renderPagination(t){const e=this.paginationItems[t];return e&&o("div",{class:`kol-table-stateful__pagination kol-table-stateful__pagination--${this.paginationPosition}`},o("div",{class:"kol-table-stateful__pagination-wrapper"},o(a,Object.assign({},e.getFcProps()))))}render(){return o(e,{key:"ef4f178d1bbabc8352c9909f21eb9fc8338eb918",class:"kol-table-stateful"},this.renderPagination("top"),this.renderTableStatelessFC(),this.renderPagination("bottom"))}get host(){return i(this)}static get watchers(){return{_ariaLabelledby:[{watchAriaLabelledby:0}],_allowMultiSort:[{watchAllowMultiSort:0}],_data:[{watchData:0}],_dataFoot:[{watchDataFoot:0}],_fixedCols:[{watchFixedCols:0}],_headers:[{watchHeaders:0}],_label:[{watchLabel:0}],_loading:[{watchLoading:0}],_pagination:[{watchPagination:0}],_paginationPosition:[{watchPaginationPosition:0}],_selection:[{watchSelection:0}],_on:[{watchOn:0}],_hasSettingsMenu:[{watchHasSettingsMenu:0}],_variant:[{watchVariant:0}]}}};I.style={default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794582088003"); src: url("kolicons.eot?t=1794582088003#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794582088003") format("woff2"), url("kolicons.woff?t=1794582088003") format("woff"), url("kolicons.ttf?t=1794582088003") format("truetype"), url("kolicons.svg?t=1794582088003#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { @keyframes rotate { to { transform: rotate(1turn); } } @keyframes growingCircle { 0% { opacity: 0.5; border-color: white; clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0); } 25% { opacity: 0.75; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, #000)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0); } 50% { opacity: 1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%); } 75% { opacity: 1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%); } 100% { opacity: 0.1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0); } } .kol-spin__spinner--cycle { width: calc(var(--kol-spin-size, 48) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(var(--kol-spin-size, 48) * 1rem / var(--kolibri-root-font-size, 16)); } .kol-spin__spinner--cycle .kol-spin__loader { border-radius: 50%; display: block; position: relative; width: 100%; height: 100%; animation: 2s linear infinite rotate; } @media (prefers-reduced-motion) { .kol-spin__spinner--cycle .kol-spin__loader { animation-duration: 4s !important; } } .kol-spin__spinner--cycle .kol-spin__loader::before { border-radius: 50%; position: absolute; inset: 0; content: ""; animation: 3s linear infinite growingCircle; border: 5px solid var(--kol-spin-color, var(--kol-theme-spin-color, #333)); } @media (prefers-reduced-motion) { .kol-spin__spinner--cycle .kol-spin__loader::before { animation-duration: 6s !important; } } } @layer kol-component { @keyframes spin1 { 0% { transform: scale(0); } 100% { transform: scale(1); } } @keyframes spin2 { 0% { transform: translate(0, 0); } 100% { transform: translate(calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)), 0); } } @keyframes spin3 { 0% { transform: scale(1); } 100% { transform: scale(0); } } @media (prefers-reduced-motion) { .kol-spin__spinner-element { animation-duration: 2s !important; } } .kol-spin__spinner--dot { --kol-spin-border-width: calc(var(--kol-spin-size, 13) / 10); width: calc(calc(var(--kol-spin-size, 13) * 3 + 2) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(calc(var(--kol-spin-size, 13) + var(--kol-spin-border-width) * 2) * 1rem / var(--kolibri-root-font-size, 16)); } .kol-spin__spinner--dot .kol-spin__spinner-element { background-color: var(--kol-spin-color, var(--kol-theme-spin-color, #000)); border-radius: 50%; position: absolute; top: 1px; width: calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)); animation-timing-function: cubic-bezier(0, 1, 1, 0); border: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)) solid white; } .kol-spin__spinner--dot .kol-spin__spinner-element--1 { left: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 0; animation: 1s infinite spin1; } .kol-spin__spinner--dot .kol-spin__spinner-element--2 { left: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; animation: 1s infinite spin2; } .kol-spin__spinner--dot .kol-spin__spinner-element--3 { left: calc(calc(var(--kol-spin-size, 13) + var(--kol-spin-border-width)) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; animation: 1s infinite spin2; } .kol-spin__spinner--dot .kol-spin__spinner-element--neutral { opacity: 0.6; left: calc(calc(var(--kol-spin-size, 13) * 2 + var(--kol-spin-border-width)) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 0; animation: 1s infinite spin3; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-card .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-card :host { display: inline-block; } .kol-card .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-card .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-card .kol-button__interactive-element::before { content: ""; } .kol-card .kol-button__text { flex: 1 0 100%; } .kol-card .kol-button { } .kol-card .kol-button__tooltip { height: 0; } .kol-card .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-card .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-card { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); display: grid; height: 100%; overflow: visible; grid-template-areas: "header close" "content content"; grid-template-columns: 1fr min-content; grid-template-rows: min-content 1fr; } .kol-card__header { align-self: start; grid-area: header; } .kol-card__content { align-self: stretch; grid-area: content; } .kol-card__close-button { grid-area: close; } .kol-card:has(.kol-card__link) { position: relative; } .kol-card__link::after { position: absolute; inset: 0; content: ""; cursor: pointer; } .kol-dialog, .kol-modal { min-height: var(--a11y-min-size); padding: 0; border: 0; overscroll-behavior: contain; } .kol-dialog__close-button, .kol-modal__close-button { position: absolute; top: calc(1 * 1rem / var(--kolibri-root-font-size, 16)); right: calc(1 * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; } .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: ""; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } :host { display: inline-block; } .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-button__interactive-element::before { content: ""; } .kol-button__text { flex: 1 0 100%; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-popover-button { display: inline; } .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-popover-button--inline { display: inline-block; } .kol-popover-button--inline .kol-button, .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-table-settings { position: absolute; top: 0; right: 0; z-index: 1; } .kol-table-settings .kol-popover-button__popover { background: white; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); border-radius: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); border: 1px solid black; } .kol-table-settings__columns { display: grid; max-height: calc(200 * 1rem / var(--kolibri-root-font-size, 16)); overflow: auto; grid-auto-rows: min-content; grid-template-columns: min-content minmax(max-content, 1fr) calc(140 * 1rem / var(--kolibri-root-font-size, 16)) auto auto; } .kol-table-settings__column { display: grid; align-items: center; grid-template-columns: subgrid; grid-column: 1/6; } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-table { --kol-table-selection-col-width: var(--a11y-min-size); display: block; position: relative; max-width: 100%; } .kol-table:has(.kol-table__focus-element:focus) .kol-table__scroll-container { outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color; outline-offset: 2px; } .kol-table__scroll-container { overflow-x: auto; overflow-y: hidden; } .kol-table__table { table-layout: fixed; } .kol-table__caption { min-height: var(--a11y-min-size); text-align: start; } .kol-table__settings:not(:has(~ .kol-table__scroll-container .kol-table__caption)) { min-height: var(--a11y-min-size); } .kol-table__sort-button.kol-button { color: inherit; } .kol-table__sort { display: inline-flex; align-items: center; } .kol-table__sort-order { display: inline-flex; align-items: center; justify-content: center; } .kol-table__body { text-align: left; } .kol-table__body .kol-button__text { justify-items: start; } .kol-table__body:has(.kol-table__loader--shown) { position: relative; min-height: calc(var(--a11y-min-size) * 3); } .kol-table__cell--align-left { text-align: left; } .kol-table__cell--align-left .kol-table__sort-button .kol-button__text { align-items: start; text-align: start; } .kol-table__cell--align-left .kol-table__cell-actions { justify-content: flex-start; } .kol-table__cell--align-center { text-align: center; } .kol-table__cell--align-center .kol-table__sort-button .kol-button__text { align-items: center; } .kol-table__cell--align-right { text-align: right; } .kol-table__cell--align-right .kol-table__sort-button .kol-button__text { align-items: end; text-align: end; } .kol-table__cell--align-right .kol-table__cell-actions { justify-content: flex-end; } .kol-table__cell--selection { background-color: white; position: sticky !important; left: 0; z-index: 2; width: var(--kol-table-selection-col-width, auto); min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); white-space: nowrap; } .kol-table__cell--actions { white-space: nowrap; } .kol-table__cell--actions .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-table__cell--actions :host { display: inline-block; } .kol-table__cell--actions .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-table__cell--actions .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-table__cell--actions .kol-button__interactive-element::before { content: ""; } .kol-table__cell--actions .kol-button__text { flex: 1 0 100%; } .kol-table__cell--actions .kol-button { } .kol-table__cell--actions .kol-button__tooltip { height: 0; } .kol-table__cell--actions .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-table__cell--actions .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-table__cell--actions .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-table__cell--actions :host { display: inline-block; } .kol-table__cell--actions .kol-link { display: inline-flex; max-width: fit-content; } .kol-table__cell--actions .kol-link--standalone { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: stretch; } .kol-table__cell--actions .kol-link--standalone .kol-link__interactive-element { align-items: stretch; } .kol-table__cell--actions .kol-link--standalone .kol-link__text { display: inline-flex; flex: 1 1 100%; place-items: center; } .kol-table__cell--actions .kol-link__interactive-element { display: inline-flex; flex: 1; align-items: baseline; place-items: center; text-align: left; text-decoration-line: none; } .kol-table__cell--actions .kol-link__interactive-element:focus:not([aria-disabled], [disabled]) .kol-span__label, .kol-table__cell--actions .kol-link__interactive-element:hover:not([aria-disabled], [disabled]) .kol-span__label { text-decoration-thickness: 0.2em; } .kol-table__cell--actions .kol-link .kol-span__label { text-decoration-line: underline; } .kol-table__cell--actions .kol-link__icon { display: inline-flex; } .kol-table__cell--sticky-left, .kol-table__cell--sticky-right { background-color: white; position: sticky !important; z-index: 1; } .kol-table__cell--sticky-left:nth-last-child(1 of .kol-table__cell--sticky-left) { border-right: 2px solid black; } .kol-table__cell--sticky-right:nth-child(1 of .kol-table__cell--sticky-left) { border-left: 2px solid black; } .kol-table__cell-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; } .kol-table__cell-states { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; } .kol-table__spacer { display: none; } .kol-table__selection { position: relative; } .kol-table__selection-label { display: flex; position: relative; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; justify-content: center; } .kol-table__selection-label:not(.kol-table__selection-label--disabled) { cursor: pointer; } .kol-table__selection-label--disabled { cursor: not-allowed; } .kol-table__selection-icon { display: block; position: absolute; inset: auto; z-index: 1; } .kol-table__selection-input { border-style: solid; margin: 0; appearance: none; cursor: pointer; } .kol-table__selection-input:disabled { cursor: not-allowed; } .kol-table__selection-input:before { content: ""; } .kol-table__selection-input--checkbox { background-color: white; display: flex; position: relative; min-width: calc(var(--a11y-min-size) / 2); min-height: calc(var(--a11y-min-size) / 2); border-width: 2px; align-items: center; justify-content: center; line-height: 1.5; } .kol-table__selection-input--radio { border-radius: 100%; display: flex; width: 1.5em; min-width: 1.5em; height: 1.5em; min-height: 1.5em; padding: 0; border-width: 2px; } .kol-table__selection-input--radio:before { border-radius: 100%; width: 0.75em; height: 0.75em; margin: auto; } .kol-table__selection-input--radio:checked:before { background-color: black; } @media (forced-colors: active) { .kol-table__selection-input--radio:checked:before { background-color: selectedItem !important; } } .kol-table__loader--shown { background: white; display: flex; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; align-items: center; justify-content: center; } .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: ""; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-form-field .kol-popover-button { display: inline; } .kol-form-field .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-form-field .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-form-field .kol-popover-button--inline { display: inline-block; } .kol-form-field .kol-popover-button--inline .kol-button, .kol-form-field .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-form-field .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-form-field .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-form-field { display: grid; } .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label { cursor: pointer; } .kol-form-field__label { display: flex; } .kol-form-field__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-form-field--required .kol-form-field__label-text:has(.kol-span__slot[hidden]) .kol-span__label::after, .kol-form-field--required:not(:has(.kol-form-field__label--legend)) .kol-form-field__input .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-input-container { background-color: transparent; display: grid; position: relative; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; grid-template-columns: 1fr; } .kol-input-container:has(> .kol-input-container__adornment--start) { grid-template-columns: auto 1fr auto; } .kol-input-container__container { position: relative; z-index: 1; } .kol-input-container__adornment { display: flex; align-items: center; } .kol-input-container__adornment .kol-icon { display: grid; place-items: center; } .kol-select { background-color: transparent; width: 100%; padding: 0; } .kol-select:not(:disabled) { cursor: pointer; } .kol-select:not([multiple], [size]) { height: 2.75em; } .kol-select[multiple][size="1"] { height: 2.75em; } .kol-select__option:checked::before { content: "✓ "; } .kol-select[multiple] option { display: flex; min-height: var(--a11y-min-size); align-items: center; } .kol-select[multiple][size="1"] option::checkmark { height: 100%; } .kol-select[multiple][size="1"] option:checked::before { display: none; } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; container: paging/inline-size; } .kol-pagination__navigation-list { display: inline-flex; margin: 0; padding: 0; flex-wrap: wrap; align-items: center; list-style: none; } .kol-pagination__separator:before { content: "•••"; } .kol-pagination__page-size-select .kol-form-field-select { align-items: center; grid-template-columns: 1fr max-content; } @container paging (width < 600px) { .kol-pagination:has(.kol-pagination__button--first) li:has(.kol-pagination__button--numbers), .kol-pagination:has(.kol-pagination__button--first) li:has(.kol-pagination__separator) { display: none; } } .kol-spin { display: contents; } .kol-spin__spinner { display: block; position: relative; } }'};export{I as kol_table_stateful}
|
|
4
|
+
import{r as t,h as o,H as e,g as i}from"./index-Bbr6Os1b.js";import{t as n}from"./i18n-BLkzMf6D.js";import{c as l,P as a}from"./item-zXunNZh5.js";import{p as r,e as s}from"./common-BdSzSIXg.js";import{B as c,t as d,a as k,v as p}from"./base-BP5SdLvQ.js";import{c as h,n as b,b as m,a as _,t as f}from"./props-from-config-BOUcpF7e.js";import{b as u}from"./bem-registry-SKACeCny.js";import{C as g}from"./keyboard-DNd73LVa.js";import{d as v,K as y}from"./events-CRHxtwup.js";import"./i18n-BRgvVqCf.js";import"./component-CNgECeRi.js";import"./tslib.es6-QNbPBOk5.js";import"./component-DEwcJKDA.js";import"./validators-BgDmq-Qt.js";import"./component-B8UMedaK.js";import"./component-hiabKVP3.js";import"./component-bIIx1x7q.js";import"./disabled-B2o4Ctgy.js";import"./id-Bh4FF8c0.js";import"./label-with-expert-slot-D1tpX9DI.js";import"./label-hints-CZGo9ZD5.js";import"./unique-nav-labels-BV-M3fPR.js";import"./label-BQVd3bkc.js";import"./item-hsQoejqZ.js";import"./controller-CZcQ57AP.js";import"./component-names-Dhbtt0mX.js";import"./dev.utils-B0t4rcBV.js";import"./element-interaction-sGYdEpmv.js";import"./element-focus-BIRmGg5W.js";import"./base-web-component-CYPdDdRn.js";import"./behavior-B6y5Gofe.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./label-lang-segment-C5LYGOHt.js";import"./resolve-props-DAVb5BM3.js";import"./item-pool-BOxAYePG.js";import"./base-web-component-CdSFFCst.js";import"./input-container-zXl_6y52.js";import"./api-D0RNr-zh.js";import"./aria-labelledby-DqJY_4G-.js";import"./behavior-DlH8byIw.js";import"./bootstrap-Bp7i4RJQ.js";import"./item-Dms_59sU.js";import"./component-CSsUaL_h.js";import"./component-ZdHnXLLI.js";import"./Heading-BubZbykM.js";import"./multiple-S3Ol1G6Z.js";import"./required-xw5BBPvV.js";import"./rows-DRV8YlQv.js";import"./access-and-short-key-ijzCZfHm.js";import"./options-B0rBHetL.js";import"./item-DXDEHrEg.js";import"./ariaCurrentService-YoLNpD5S.js";import"./resolve-props-CL8wxjtP.js";import"./component-CiJGQTU0.js";import"./href-CfNF4pHX.js";import"./link-target-BWPSEd9a.js";import"./component-NOe28NXD.js";import"./level-BVXGgbSM.js";import"./scroll-lock-BxAe0gL5.js";import"./width-BHn7XHj_.js";import"./component-6_YiKr2Z.js";import"./has-closer-BrG00xL7.js";const x=h("allowMultiSort",!1,b),w=["both","bottom","top"],z=h("paginationPosition","bottom",(t=>{const o=m(t);if(w.includes(o))return o;throw new Error(`Invalid pagination position: ${o}`)})),j=t=>{try{return r(t)}catch(o){return t}},C=h("pagination",{_page:1,_pageSize:10,_max:0},(t=>{const o=j(t);if(!0===o||""===o)return{};if("object"==typeof o&&null!==o)return o;throw new Error("Invalid table pagination: expected true, an empty string or a pagination object.")})),S=_(),B=h("headers",{horizontal:[],vertical:[]},(t=>{const o="string"==typeof t?r(t):t;if("object"==typeof o&&null!==o)return o;throw new Error("Invalid table headers: expected an object.")})),D=t=>void 0===t.type||"default"===t.type;function O(t,o,e){if(D(t)&&!e&&"function"==typeof t.compareFn){if(t.key){const e=o.find((o=>o.key===t.key));if(null==e?void 0:e.direction)return e.direction}return"NOS"}}function P(t,o,e,i){if(D(t)&&!e&&i&&"function"==typeof t.compareFn&&t.key){const e=o.findIndex((o=>o.key===t.key));if(e>=0)return e+1}}const T=u.forBlock("kol-table-stateful"),L=T("pagination-wrapper"),H=[10,20,50,100],A=class extends c{constructor(o){super(...arguments),new.target===A&&t(this,o),this.pagination={_page:1,_pageSize:10,_max:0},this.renderCount=0,this.externalLabelElements=[],this.hasScrollbar=!1,this.settingsChangedCounter=0,this.sortedData=[],this.stickyColsDisabled=!1,this.data=[],this.headers={horizontal:[],vertical:[]},this.allowMultiSort=!1,this.paginationPosition="bottom",this.statefulOn={},this.sortData=[],this.disableSort=!1,this.showPagination=!1,this.pageEndSlice=10,this.paginationItems={},this.rowKeys=new Map,this.statelessOn={onSort:(t,{key:o})=>{const e=function(t,o){var e,i;const n=[];for(const o of[...null!==(e=t.horizontal)&&void 0!==e?e:[],...null!==(i=t.vertical)&&void 0!==i?i:[]])Array.isArray(o)&&n.push(...o);return n.find((t=>t.key===o))}(this.headers,o);if(e){const t=function(t,o,e){var i;if(!D(o)||"function"!=typeof o.compareFn)return;let n=e||o.key===(null===(i=t[0])||void 0===i?void 0:i.key)?t.map((t=>Object.assign({},t))):[];const l=n.findIndex((t=>t.key===o.key));if(l>=0){const t=n[l];switch(t.direction){case"ASC":t.direction="DESC";break;case"DESC":n=n.filter(((t,o)=>o!==l));break;default:t.direction="ASC"}}else o.key&&n.push({label:o.label,key:o.key,compareFn:o.compareFn,direction:"ASC"});return n}(this.sortData,e,this.allowMultiSort);t&&(this.sortData=t,this.updateSortedData())}}},this.handlePagination={onClick:(t,o)=>{var e;"function"==typeof(null===(e=this.pagination._on)||void 0===e?void 0:e.onClick)&&this.pagination._on.onClick(t,o),this.pagination=Object.assign(Object.assign({},this.pagination),{_page:o})},onChangePage:(t,o)=>{var e;"function"==typeof(null===(e=this.pagination._on)||void 0===e?void 0:e.onChangePage)&&this.pagination._on.onChangePage(t,o),this.pagination=Object.assign(Object.assign({},this.pagination),{_page:o})},onChangePageSize:(t,o)=>{var e;"function"==typeof(null===(e=this.pagination._on)||void 0===e?void 0:e.onChangePageSize)&&this.pagination._on.onChangePageSize(t,o),this.pagination=Object.assign(Object.assign({},this.pagination),{_pageSize:o})}},this._ariaLabelledby=void 0,this._allowMultiSort=void 0,this._dataFoot=void 0,this._fixedCols=void 0,this._loading=void 0,this._pagination=void 0,this._paginationPosition="bottom",this._selection=void 0,this._on=void 0,this._hasSettingsMenu=void 0,this._variant=void 0,this.updateSortedData=()=>{this.sortedData=function(t,o,e){if(e)return t;const i=[...t];return o.length>0&&i.sort(((t,e)=>{for(const i of o){const o=i.compareFn(t,e,i.direction);if(0!==o)return"ASC"===i.direction?o:-o}return 0})),i}(this.data,this.sortData,this.disableSort)},this.handleChangeHeaderCells=t=>{this.adjustedHeaderCells=t}}watchAriaLabelledby(t){this.resolveExternalLabel(t)}watchAllowMultiSort(t){x.apply(t,(t=>{this.allowMultiSort=t}))}watchData(t){d.apply(t,(t=>{this.data=t,setTimeout(this.updateSortedData)}))}watchDataFoot(t){k.apply(t,(t=>{this.setRenderProp("dataFoot",t),setTimeout(this.updateSortedData)}))}watchFixedCols(t){this.applyFixedCols(t)}watchHeaders(t){B.apply(t,(t=>{(function(t,o){const e=t=>{var o,e,i,n;return[...null!==(e=null===(o=t.horizontal)||void 0===o?void 0:o.flatMap((t=>t.map((t=>null==t?void 0:t.key)).filter((t=>Boolean(t))))))&&void 0!==e?e:[],...null!==(n=null===(i=t.vertical)||void 0===i?void 0:i.flatMap((t=>t.map((t=>null==t?void 0:t.key)).filter((t=>Boolean(t))))))&&void 0!==n?n:[]]},i=e(t),n=e(o);return i.length!==n.length||i.some(((t,o)=>t!==n[o]))})(this.headers,t)&&(this.adjustedHeaderCells=void 0),this.initializeSort(t)&&setTimeout((()=>this.updateSortedData())),function(t){return Boolean(t.horizontal&&t.vertical&&t.horizontal.length>0&&t.vertical.length>0)}(t)&&(this.disableSort=!0,s("Table: You can not sort the table data, if horizontal and vertical headers are defined at the same time. (https://github.com/public-ui/kolibri/issues/2372)")),this.headers=t}))}watchLabel(t){this.applyLabel(t)}watchLoading(t){this.applyLoading(t)}watchPagination(t){this.showPagination=(t=>{const o=j(t);return!0===o||""===o||"object"==typeof o&&null!==o})(t),C.apply(t,(t=>{this.pagination=t}))}watchPaginationPosition(t){z.apply(t,(t=>{this.paginationPosition=t}))}watchSelection(t){this.applySelection(t)}watchOn(t){S.apply(t,(t=>{this.statefulOn=t}))}watchHasSettingsMenu(t){this.applyHasSettingsMenu(t)}watchVariant(t){this.applyVariant(t)}getSelection(){var t;return Promise.resolve(this.getSelectedData((null===(t=this.getRenderProp("selection")||void 0)||void 0===t?void 0:t.selectedKeys)||[]))}resetSort(){return this.initializeSort(this.headers),this.updateSortedData(),Promise.resolve()}componentWillLoad(){this.applyOn(this.statelessOn),this.resolveExternalLabel(this._ariaLabelledby),this.watchAllowMultiSort(this._allowMultiSort),this.watchData(this._data),this.watchDataFoot(this._dataFoot),this.watchFixedCols(this._fixedCols),this.watchHeaders(this._headers),this.watchLabel(this._label),this.watchLoading(this._loading),this.watchOn(this._on),this.watchPagination(this._pagination),this.watchPaginationPosition(this._paginationPosition),this.watchSelection(this._selection),this.watchHasSettingsMenu(this._hasSettingsMenu),this.watchVariant(this._variant)}componentDidLoad(){this.externalLabelElements.length||this.resolveExternalLabel(this._ariaLabelledby),this.observeScrollContainer()}componentWillRender(){var t;const{rows:o,end:e}=function(t,o,e){if("number"==typeof o&&o>0&&"number"==typeof e&&e>0){const i=o*e>t.length?t.length:o*e;return{rows:t.slice(o*(e-1),i),end:i}}return{rows:t,end:t.length}}(this.sortedData,this.showPagination?null!==(t=this.pagination._pageSize)&&void 0!==t?t:10:this.sortedData.length,this.pagination._page||1);this.pageEndSlice=e,this.applyData(o),this.applyHeaders(this.buildHeaderCells()),this.syncPagination("top","top"===this._paginationPosition||"both"===this._paginationPosition),this.syncPagination("bottom","bottom"===this._paginationPosition||"both"===this._paginationPosition)}componentDidRender(){var t,o;this.updateScrollbarState(),this.syncTableItems(),null===(t=this.paginationItems.top)||void 0===t||t.sync(),null===(o=this.paginationItems.bottom)||void 0===o||o.sync()}disconnectedCallback(){var t,o;this.teardownTable(),null===(t=this.paginationItems.top)||void 0===t||t.destroy(),null===(o=this.paginationItems.bottom)||void 0===o||o.destroy()}onChangeHeaderCells(t){this.handleChangeHeaderCells(Object.assign(Object.assign({},this.getRenderProp("headers")),{horizontal:t.detail})),this.applyChangedHeaderCells(t)}onKeydown(t){this.moveCheckboxFocus(t)}initializeSort(t){const{sortData:o,hasSortedCells:e,missingKey:i}=function(t,o){var e,i;let n=[],l=!1,a=!1;const r=t=>{n=[],t.forEach((t=>{if(!D(t))return;if("function"==typeof t.compareFn&&!t.key)return void(a=!0);const e=t.key;if(!e)return;const i=t.sortDirection;"ASC"!==i&&"DESC"!==i||"function"!=typeof t.compareFn||((o||0===n.length)&&n.push({label:t.label,key:e,compareFn:t.compareFn,direction:i}),l=!0)}))};return null===(e=t.horizontal)||void 0===e||e.forEach(r),null===(i=t.vertical)||void 0===i||i.forEach(r),{sortData:n,hasSortedCells:l,missingKey:a}}(t,this.allowMultiSort);return i&&s("[KolTableStateful] A sortable column requires the 'key' property."),this.sortData=o,e}buildHeaderCells(){return function(t,o,e,i,n){var l,a,r;const s=t=>t?Object.assign(Object.assign({},t),{sortDirection:O(t,e,i),sortOrder:P(t,e,i,n)}):t,c=(null==o?void 0:o.horizontal)?function(t,o){var e;const i=new Map;return null===(e=t.horizontal)||void 0===e||e.forEach((t=>t.forEach((t=>{(null==t?void 0:t.key)&&i.set(t.key,t)})))),o.map((t=>t.map((t=>{const o=(null==t?void 0:t.key)?i.get(t.key):void 0;if(!o)return t;const e=Object.assign({},o);return void 0!==t.visible&&(e.visible=t.visible),void 0!==t.width&&(e.width=t.width),void 0!==t.hidable&&(e.hidable=t.hidable),void 0!==t.sortable&&(e.sortable=t.sortable),void 0!==t.resizable&&(e.resizable=t.resizable),e}))))}(t,o.horizontal):t.horizontal;return{horizontal:null!==(l=null==c?void 0:c.map((t=>t.map(s))))&&void 0!==l?l:[],vertical:null!==(r=null===(a=t.vertical)||void 0===a?void 0:a.map((t=>t.map(s))))&&void 0!==r?r:[]}}(this.headers,this.adjustedHeaderCells,this.sortData,this.disableSort,this.allowMultiSort)}getSelectedData(t){return function(t,o,e){var i;if(t){const n=null!==(i=t.keyPropertyName)&&void 0!==i?i:"id",l=new Set(e.map(String)),a=o.filter((t=>l.has(String(t[n]))));if(n)return a}return null}(this.getRenderProp("selection")||void 0,this.sortedData,t)}emitSelectionChange(t,o){const e=o,i=this.getRenderProp("selection");i&&(this.applySelection(Object.assign(Object.assign({},i),{selectedKeys:e})),this.renderCount++);const n=this.getSelectedData(e),l=this.statefulOn[g.onSelectionChange];"function"==typeof l&&l(t,n),this.host&&v(this.host,y.selectionChange,n)}getPaginationInput(t){const o=n("top"===t?"kol-pagination-position-top":"kol-pagination-position-bottom");return{boundaryCount:this.pagination._boundaryCount,customClass:this.pagination._customClass,hasButtons:this.pagination._hasButtons,on:this.handlePagination,page:this.pagination._page,pageSize:this.pagination._pageSize,pageSizeOptions:this.pagination._pageSizeOptions||H,siblingCount:this.pagination._siblingCount,tooltipAlign:"bottom",max:this.pagination._max||this.data.length,label:n("kol-table-pagination-label",{placeholders:{label:`${f(this.getRenderProp("label"))} (${o})`}})}}syncPagination(t,o){const e=this.paginationItems[t];if(this.pageEndSlice>0&&this.showPagination&&o){const o=this.getPaginationInput(t);if(e)e.update(o);else{const e=l({getEventTarget:()=>this.host,requestRender:()=>{this.renderCount++}});e.load(o),this.paginationItems[t]=e}}else e&&(e.destroy(),delete this.paginationItems[t])}resolveExternalLabel(t){this.externalLabelElements=p(this,this.host,t),this.syncTableLabel(this.externalLabelElements)}renderPagination(t){const e=this.paginationItems[t];return e&&o("div",{class:T("pagination",{[this.paginationPosition]:!0})},o("div",{class:L},o(a,Object.assign({},e.getFcProps()))))}render(){return o(e,{key:"0bd29f01e9299380eff33e26d02fa1ca105e37a3",class:"kol-table-stateful"},this.renderPagination("top"),this.renderTableStatelessFC(),this.renderPagination("bottom"))}get host(){return i(this)}static get watchers(){return{_ariaLabelledby:[{watchAriaLabelledby:0}],_allowMultiSort:[{watchAllowMultiSort:0}],_data:[{watchData:0}],_dataFoot:[{watchDataFoot:0}],_fixedCols:[{watchFixedCols:0}],_headers:[{watchHeaders:0}],_label:[{watchLabel:0}],_loading:[{watchLoading:0}],_pagination:[{watchPagination:0}],_paginationPosition:[{watchPaginationPosition:0}],_selection:[{watchSelection:0}],_on:[{watchOn:0}],_hasSettingsMenu:[{watchHasSettingsMenu:0}],_variant:[{watchVariant:0}]}}};A.style={default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-meter meter { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-bar { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-optimum-value, .kol-meter meter::-webkit-meter-suboptimum-value, .kol-meter meter::-webkit-meter-even-less-good-value { background-color: CanvasText; } .kol-meter meter::-moz-meter-bar { background-color: CanvasText; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794998877659"); src: url("kolicons.eot?t=1794998877659#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794998877659") format("woff2"), url("kolicons.woff?t=1794998877659") format("woff"), url("kolicons.ttf?t=1794998877659") format("truetype"), url("kolicons.svg?t=1794998877659#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { @keyframes rotate { to { transform: rotate(1turn); } } @keyframes growingCircle { 0% { opacity: 0.5; border-color: white; clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0); } 25% { opacity: 0.75; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, #000)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0); } 50% { opacity: 1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%); } 75% { opacity: 1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%); } 100% { opacity: 0.1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0); } } .kol-spin__spinner--cycle { width: calc(var(--kol-spin-size, 48) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(var(--kol-spin-size, 48) * 1rem / var(--kolibri-root-font-size, 16)); } .kol-spin__spinner--cycle .kol-spin__loader { border-radius: 50%; display: block; position: relative; width: 100%; height: 100%; animation: 2s linear infinite rotate; } @media (prefers-reduced-motion) { .kol-spin__spinner--cycle .kol-spin__loader { animation-duration: 4s !important; } } .kol-spin__spinner--cycle .kol-spin__loader::before { border-radius: 50%; position: absolute; inset: 0; content: ""; animation: 3s linear infinite growingCircle; border: 5px solid var(--kol-spin-color, var(--kol-theme-spin-color, #333)); } @media (prefers-reduced-motion) { .kol-spin__spinner--cycle .kol-spin__loader::before { animation-duration: 6s !important; } } } @layer kol-component { @keyframes spin1 { 0% { transform: scale(0); } 100% { transform: scale(1); } } @keyframes spin2 { 0% { transform: translate(0, 0); } 100% { transform: translate(calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)), 0); } } @keyframes spin3 { 0% { transform: scale(1); } 100% { transform: scale(0); } } @media (prefers-reduced-motion) { .kol-spin__spinner-element { animation-duration: 2s !important; } } .kol-spin__spinner--dot { --kol-spin-border-width: calc(var(--kol-spin-size, 13) / 10); width: calc(calc(var(--kol-spin-size, 13) * 3 + 2) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(calc(var(--kol-spin-size, 13) + var(--kol-spin-border-width) * 2) * 1rem / var(--kolibri-root-font-size, 16)); } .kol-spin__spinner--dot .kol-spin__spinner-element { background-color: var(--kol-spin-color, var(--kol-theme-spin-color, #000)); border-radius: 50%; position: absolute; top: 1px; width: calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)); animation-timing-function: cubic-bezier(0, 1, 1, 0); border: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)) solid white; } .kol-spin__spinner--dot .kol-spin__spinner-element--1 { left: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 0; animation: 1s infinite spin1; } .kol-spin__spinner--dot .kol-spin__spinner-element--2 { left: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; animation: 1s infinite spin2; } .kol-spin__spinner--dot .kol-spin__spinner-element--3 { left: calc(calc(var(--kol-spin-size, 13) + var(--kol-spin-border-width)) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; animation: 1s infinite spin2; } .kol-spin__spinner--dot .kol-spin__spinner-element--neutral { opacity: 0.6; left: calc(calc(var(--kol-spin-size, 13) * 2 + var(--kol-spin-border-width)) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 0; animation: 1s infinite spin3; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-card .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-card :host { display: inline-block; } .kol-card .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-card .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-card .kol-button__interactive-element::before { content: ""; } .kol-card .kol-button__text { flex: 1 0 100%; } .kol-card .kol-button { } .kol-card .kol-button__tooltip { height: 0; } .kol-card .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-card .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-card { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); display: grid; height: 100%; overflow: visible; grid-template-areas: "header close" "content content"; grid-template-columns: 1fr min-content; grid-template-rows: min-content 1fr; } .kol-card__header { align-self: start; grid-area: header; } .kol-card__content { align-self: stretch; grid-area: content; } .kol-card__close-button { position: relative; z-index: 1; grid-area: close; } .kol-card:has(.kol-card__link) { position: relative; } .kol-card__link::after { position: absolute; inset: 0; content: ""; cursor: pointer; } .kol-dialog, .kol-modal { min-height: var(--a11y-min-size); padding: 0; border: 0; overscroll-behavior: contain; } .kol-dialog__close-button, .kol-modal__close-button { position: absolute; top: calc(1 * 1rem / var(--kolibri-root-font-size, 16)); right: calc(1 * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; } .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: ""; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } :host { display: inline-block; } .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-button__interactive-element::before { content: ""; } .kol-button__text { flex: 1 0 100%; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-popover-button { display: inline; } .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-popover-button--inline { display: inline-block; } .kol-popover-button--inline .kol-button, .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-table-settings { position: absolute; top: 0; right: 0; z-index: 1; } .kol-table-settings .kol-popover-button__popover { background: white; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); border-radius: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); border: 1px solid black; } .kol-table-settings__columns { display: grid; max-height: calc(200 * 1rem / var(--kolibri-root-font-size, 16)); overflow: auto; grid-auto-rows: min-content; grid-template-columns: min-content minmax(max-content, 1fr) calc(140 * 1rem / var(--kolibri-root-font-size, 16)) auto auto; } .kol-table-settings__column { display: grid; align-items: center; grid-template-columns: subgrid; grid-column: 1/6; } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-table { --kol-table-selection-col-width: var(--a11y-min-size); display: block; position: relative; max-width: 100%; } .kol-table:has(.kol-table__focus-element:focus) .kol-table__scroll-container { outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color; outline-offset: 2px; } .kol-table__scroll-container { overflow-x: auto; overflow-y: hidden; } .kol-table__table { table-layout: fixed; } .kol-table__caption { min-height: var(--a11y-min-size); text-align: start; } .kol-table__settings:not(:has(~ .kol-table__scroll-container .kol-table__caption)) { min-height: var(--a11y-min-size); } .kol-table__sort-button.kol-button { color: inherit; } .kol-table__sort { display: inline-flex; align-items: center; } .kol-table__sort-order { display: inline-flex; align-items: center; justify-content: center; } .kol-table__body { text-align: left; } .kol-table__body .kol-button__text { justify-items: start; } .kol-table__body:has(.kol-table__loader--shown) { position: relative; min-height: calc(var(--a11y-min-size) * 3); } .kol-table__cell--align-left { text-align: left; } .kol-table__cell--align-left .kol-table__sort-button .kol-button__text { align-items: start; text-align: start; } .kol-table__cell--align-left .kol-table__cell-actions { justify-content: flex-start; } .kol-table__cell--align-center { text-align: center; } .kol-table__cell--align-center .kol-table__sort-button .kol-button__text { align-items: center; } .kol-table__cell--align-right { text-align: right; } .kol-table__cell--align-right .kol-table__sort-button .kol-button__text { align-items: end; text-align: end; } .kol-table__cell--align-right .kol-table__cell-actions { justify-content: flex-end; } .kol-table__cell--selection { background-color: white; position: sticky !important; left: 0; z-index: 2; width: var(--kol-table-selection-col-width, auto); min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); white-space: nowrap; } .kol-table__cell--actions { white-space: nowrap; } .kol-table__cell--actions .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-table__cell--actions :host { display: inline-block; } .kol-table__cell--actions .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-table__cell--actions .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-table__cell--actions .kol-button__interactive-element::before { content: ""; } .kol-table__cell--actions .kol-button__text { flex: 1 0 100%; } .kol-table__cell--actions .kol-button { } .kol-table__cell--actions .kol-button__tooltip { height: 0; } .kol-table__cell--actions .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-table__cell--actions .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-table__cell--actions .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-table__cell--actions :host { display: inline-block; } .kol-table__cell--actions .kol-link { display: inline-flex; max-width: fit-content; } .kol-table__cell--actions .kol-link--standalone { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: stretch; } .kol-table__cell--actions .kol-link--standalone .kol-link__interactive-element { align-items: stretch; } .kol-table__cell--actions .kol-link--standalone .kol-link__text { display: inline-flex; flex: 1 1 100%; place-items: center; } .kol-table__cell--actions .kol-link__interactive-element { display: inline-flex; flex: 1; align-items: baseline; place-items: center; text-align: left; text-decoration-line: none; } .kol-table__cell--actions .kol-link__interactive-element:focus:not([aria-disabled], [disabled]) .kol-span__label, .kol-table__cell--actions .kol-link__interactive-element:hover:not([aria-disabled], [disabled]) .kol-span__label { text-decoration-thickness: 0.2em; } .kol-table__cell--actions .kol-link .kol-span__label { text-decoration-line: underline; } .kol-table__cell--actions .kol-link__icon { display: inline-flex; } .kol-table__cell--sticky-left, .kol-table__cell--sticky-right { background-color: white; position: sticky !important; z-index: 1; } .kol-table__cell--sticky-left:nth-last-child(1 of .kol-table__cell--sticky-left) { border-right: 2px solid black; } .kol-table__cell--sticky-right:nth-child(1 of .kol-table__cell--sticky-left) { border-left: 2px solid black; } .kol-table__cell-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; } .kol-table__cell-states { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; } .kol-table__spacer { display: none; } .kol-table__selection { position: relative; } .kol-table__selection-label { display: flex; position: relative; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; justify-content: center; } .kol-table__selection-label:not(.kol-table__selection-label--disabled) { cursor: pointer; } .kol-table__selection-label--disabled { cursor: not-allowed; } .kol-table__selection-icon { display: block; position: absolute; inset: auto; z-index: 1; } .kol-table__selection-input { border-style: solid; margin: 0; appearance: none; cursor: pointer; } .kol-table__selection-input:disabled { cursor: not-allowed; } .kol-table__selection-input:before { content: ""; } .kol-table__selection-input--checkbox { background-color: white; display: flex; position: relative; min-width: calc(var(--a11y-min-size) / 2); min-height: calc(var(--a11y-min-size) / 2); border-width: 2px; align-items: center; justify-content: center; line-height: 1.5; } .kol-table__selection-input--radio { border-radius: 100%; display: flex; width: 1.5em; min-width: 1.5em; height: 1.5em; min-height: 1.5em; padding: 0; border-width: 2px; } .kol-table__selection-input--radio:before { border-radius: 100%; width: 0.75em; height: 0.75em; margin: auto; } .kol-table__selection-input--radio:checked:before { background-color: black; } @media (forced-colors: active) { .kol-table__selection-input--radio:checked:before { background-color: selectedItem !important; } } .kol-table__loader--shown { background: white; display: flex; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; align-items: center; justify-content: center; } .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: ""; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-form-field .kol-popover-button { display: inline; } .kol-form-field .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-form-field .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-form-field .kol-popover-button--inline { display: inline-block; } .kol-form-field .kol-popover-button--inline .kol-button, .kol-form-field .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-form-field .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-form-field .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-form-field { display: grid; } .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label { cursor: pointer; } .kol-form-field__label { display: flex; } .kol-form-field__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-form-field--required .kol-form-field__label-text:has(.kol-span__slot[hidden]) .kol-span__label::after, .kol-form-field--required:not(:has(.kol-form-field__label--legend)) .kol-form-field__input .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-input-container { background-color: transparent; display: grid; position: relative; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; grid-template-columns: 1fr; } .kol-input-container:has(> .kol-input-container__adornment--start) { grid-template-columns: auto 1fr auto; } .kol-input-container__container { position: relative; z-index: 1; } .kol-input-container__adornment { display: flex; align-items: center; } .kol-input-container__adornment .kol-icon { display: grid; place-items: center; } .kol-select { background-color: transparent; width: 100%; padding: 0; } .kol-select:not(:disabled) { cursor: pointer; } .kol-select:not([multiple], [size]) { height: 2.75em; } .kol-select[multiple][size="1"] { height: 2.75em; } .kol-select__option:checked::before { content: "✓ "; } .kol-select[multiple] option { display: flex; min-height: var(--a11y-min-size); align-items: center; } .kol-select[multiple][size="1"] option::checkmark { height: 100%; } .kol-select[multiple][size="1"] option:checked::before { display: none; } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; container: paging/inline-size; } .kol-pagination__navigation-list { display: inline-flex; margin: 0; padding: 0; flex-wrap: wrap; align-items: center; list-style: none; } .kol-pagination__separator:before { content: "•••"; } .kol-pagination__page-size-select .kol-form-field-select { align-items: center; grid-template-columns: 1fr max-content; } @container paging (width < 600px) { .kol-pagination:has(.kol-pagination__button--first) li:has(.kol-pagination__button--numbers), .kol-pagination:has(.kol-pagination__button--first) li:has(.kol-pagination__separator) { display: none; } } .kol-spin { display: contents; } .kol-spin__spinner { display: block; position: relative; } }'};export{A as kol_table_stateful}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{r as o,h as e,H as t,g as i}from"./index-Dulj0jro.js";import{B as l,v as n}from"./base-DTKJ1Z06.js";import{a}from"./aria-labelledby-CLehu03h.js";import"./common-BdSzSIXg.js";import"./base-web-component-CC_gpyDb.js";import"./props-from-config-ytxYrJUY.js";import"./item-8RKFpmbd.js";import"./controller-CZcQ57AP.js";import"./component-names-Dhbtt0mX.js";import"./dev.utils-DDWOHUcg.js";import"./element-interaction-sGYdEpmv.js";import"./element-focus-BIRmGg5W.js";import"./tslib.es6-QNbPBOk5.js";import"./events-CRHxtwup.js";import"./behavior-Bb7JYoUn.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./component-W1KZI4h4.js";import"./bem-registry-DQUGxdIS.js";import"./component-oUQcgxDj.js";import"./clsx-COFh-Vc8.js";import"./component-Clz6b6ho.js";import"./id-BI0ZuK17.js";import"./label-lang-segment-iVD9hoM3.js";import"./label-hints-CLMiVvfk.js";import"./resolve-props-Bj6IaybL.js";import"./component-C79oAu7a.js";import"./validators-CTjxOidB.js";import"./component-B16Fbp3W.js";import"./component-B05zRrM0.js";import"./block-bem-BGIVcYJu.js";import"./disabled-BZXlWAgK.js";import"./label-with-expert-slot-BbZ9nx0l.js";import"./item-pool-BOxAYePG.js";import"./item-CnJMuEyl.js";import"./ariaCurrentService-YoLNpD5S.js";import"./resolve-props-02J6OCRf.js";import"./access-and-short-key-ijzCZfHm.js";import"./component-DAQzDMY8.js";import"./i18n-ePBcLlCr.js";import"./i18n-4J6U3ZDc.js";import"./href-CxokGOJ2.js";import"./link-target-D7lYILOV.js";import"./component-CldKbBUh.js";import"./label-B-Dr7VaP.js";import"./component-BI8jDgBz.js";import"./Heading-C_CwXDMp.js";import"./level-DsQ_pcyD.js";import"./scroll-lock-B6hVv8A8.js";import"./width-C1_yZHyL.js";import"./component-Ct11K0Gv.js";import"./has-closer-DUB0QcS9.js";import"./keyboard-DNd73LVa.js";const r=class extends l{constructor(e){super(...arguments),new.target===r&&o(this,e),this.externalLabelElements=[],this.hasScrollbar=!1,this.rowKeys=new Map,this.settingsChangedCounter=0,this.stickyColsDisabled=!1,this._ariaLabelledby=void 0,this._dataFoot=void 0,this._fixedCols=void 0,this._headers=void 0,this._headerCells=void 0,this._loading=void 0,this._on=void 0,this._selection=void 0,this._hasSettingsMenu=void 0,this._variant=void 0}watchAriaLabelledby(o){this.resolveExternalLabel(o)}watchData(o){this.applyData(o)}watchDataFoot(o){this.applyDataFoot(o)}watchFixedCols(o){this.applyFixedCols(o)}watchHeaders(o){this.applyHeaders(o||this._headerCells)}watchHeaderCells(o){this.applyHeaders(this._headers?this._headers:o)}watchLabel(o){this.applyLabel(o)}watchLoading(o){this.applyLoading(o)}watchOn(o){this.applyOn(o)}watchSelection(o){this.applySelection(o)}watchHasSettingsMenu(o){this.applyHasSettingsMenu(o)}watchVariant(o){this.applyVariant(o)}componentWillLoad(){this.watchData(this._data),this.watchDataFoot(this._dataFoot),this.watchFixedCols(this._fixedCols),this.watchHasSettingsMenu(this._hasSettingsMenu),this.watchHeaders(this._headers),this.watchLabel(this._label),this.watchLoading(this._loading),this.watchOn(this._on),this.watchSelection(this._selection),this.watchVariant(this._variant),this.internals=a(this.host),this.resolveExternalLabel(this._ariaLabelledby)}componentDidLoad(){this.externalLabelElements.length||this.resolveExternalLabel(this._ariaLabelledby),this.observeScrollContainer()}componentDidRender(){this.updateScrollbarState(),this.syncTableItems()}disconnectedCallback(){this.teardownTable()}onChangeHeaderCells(o){this.applyChangedHeaderCells(o)}onKeydown(o){this.moveCheckboxFocus(o)}resolveExternalLabel(o){this.externalLabelElements=n(this,this.host,this.internals,o),this.syncTableLabel(this.externalLabelElements)}render(){return e(t,{key:"ae15aed17db36dedc317573d91f2e9c6f49c6c54"},this.renderTableStatelessFC())}get host(){return i(this)}static get watchers(){return{_ariaLabelledby:[{watchAriaLabelledby:0}],_data:[{watchData:0}],_dataFoot:[{watchDataFoot:0}],_fixedCols:[{watchFixedCols:0}],_headers:[{watchHeaders:0}],_headerCells:[{watchHeaderCells:0}],_label:[{watchLabel:0}],_loading:[{watchLoading:0}],_on:[{watchOn:0}],_selection:[{watchSelection:0}],_hasSettingsMenu:[{watchHasSettingsMenu:0}],_variant:[{watchVariant:0}]}}};r.style={default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794582088003"); src: url("kolicons.eot?t=1794582088003#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794582088003") format("woff2"), url("kolicons.woff?t=1794582088003") format("woff"), url("kolicons.ttf?t=1794582088003") format("truetype"), url("kolicons.svg?t=1794582088003#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { @keyframes rotate { to { transform: rotate(1turn); } } @keyframes growingCircle { 0% { opacity: 0.5; border-color: white; clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0); } 25% { opacity: 0.75; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, #000)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0); } 50% { opacity: 1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%); } 75% { opacity: 1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%); } 100% { opacity: 0.1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0); } } .kol-spin__spinner--cycle { width: calc(var(--kol-spin-size, 48) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(var(--kol-spin-size, 48) * 1rem / var(--kolibri-root-font-size, 16)); } .kol-spin__spinner--cycle .kol-spin__loader { border-radius: 50%; display: block; position: relative; width: 100%; height: 100%; animation: 2s linear infinite rotate; } @media (prefers-reduced-motion) { .kol-spin__spinner--cycle .kol-spin__loader { animation-duration: 4s !important; } } .kol-spin__spinner--cycle .kol-spin__loader::before { border-radius: 50%; position: absolute; inset: 0; content: ""; animation: 3s linear infinite growingCircle; border: 5px solid var(--kol-spin-color, var(--kol-theme-spin-color, #333)); } @media (prefers-reduced-motion) { .kol-spin__spinner--cycle .kol-spin__loader::before { animation-duration: 6s !important; } } } @layer kol-component { @keyframes spin1 { 0% { transform: scale(0); } 100% { transform: scale(1); } } @keyframes spin2 { 0% { transform: translate(0, 0); } 100% { transform: translate(calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)), 0); } } @keyframes spin3 { 0% { transform: scale(1); } 100% { transform: scale(0); } } @media (prefers-reduced-motion) { .kol-spin__spinner-element { animation-duration: 2s !important; } } .kol-spin__spinner--dot { --kol-spin-border-width: calc(var(--kol-spin-size, 13) / 10); width: calc(calc(var(--kol-spin-size, 13) * 3 + 2) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(calc(var(--kol-spin-size, 13) + var(--kol-spin-border-width) * 2) * 1rem / var(--kolibri-root-font-size, 16)); } .kol-spin__spinner--dot .kol-spin__spinner-element { background-color: var(--kol-spin-color, var(--kol-theme-spin-color, #000)); border-radius: 50%; position: absolute; top: 1px; width: calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)); animation-timing-function: cubic-bezier(0, 1, 1, 0); border: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)) solid white; } .kol-spin__spinner--dot .kol-spin__spinner-element--1 { left: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 0; animation: 1s infinite spin1; } .kol-spin__spinner--dot .kol-spin__spinner-element--2 { left: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; animation: 1s infinite spin2; } .kol-spin__spinner--dot .kol-spin__spinner-element--3 { left: calc(calc(var(--kol-spin-size, 13) + var(--kol-spin-border-width)) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; animation: 1s infinite spin2; } .kol-spin__spinner--dot .kol-spin__spinner-element--neutral { opacity: 0.6; left: calc(calc(var(--kol-spin-size, 13) * 2 + var(--kol-spin-border-width)) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 0; animation: 1s infinite spin3; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-card .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-card :host { display: inline-block; } .kol-card .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-card .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-card .kol-button__interactive-element::before { content: ""; } .kol-card .kol-button__text { flex: 1 0 100%; } .kol-card .kol-button { } .kol-card .kol-button__tooltip { height: 0; } .kol-card .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-card .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-card { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); display: grid; height: 100%; overflow: visible; grid-template-areas: "header close" "content content"; grid-template-columns: 1fr min-content; grid-template-rows: min-content 1fr; } .kol-card__header { align-self: start; grid-area: header; } .kol-card__content { align-self: stretch; grid-area: content; } .kol-card__close-button { grid-area: close; } .kol-card:has(.kol-card__link) { position: relative; } .kol-card__link::after { position: absolute; inset: 0; content: ""; cursor: pointer; } .kol-dialog, .kol-modal { min-height: var(--a11y-min-size); padding: 0; border: 0; overscroll-behavior: contain; } .kol-dialog__close-button, .kol-modal__close-button { position: absolute; top: calc(1 * 1rem / var(--kolibri-root-font-size, 16)); right: calc(1 * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; } .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: ""; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } :host { display: inline-block; } .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-button__interactive-element::before { content: ""; } .kol-button__text { flex: 1 0 100%; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-popover-button { display: inline; } .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-popover-button--inline { display: inline-block; } .kol-popover-button--inline .kol-button, .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-table-settings { position: absolute; top: 0; right: 0; z-index: 1; } .kol-table-settings .kol-popover-button__popover { background: white; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); border-radius: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); border: 1px solid black; } .kol-table-settings__columns { display: grid; max-height: calc(200 * 1rem / var(--kolibri-root-font-size, 16)); overflow: auto; grid-auto-rows: min-content; grid-template-columns: min-content minmax(max-content, 1fr) calc(140 * 1rem / var(--kolibri-root-font-size, 16)) auto auto; } .kol-table-settings__column { display: grid; align-items: center; grid-template-columns: subgrid; grid-column: 1/6; } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-table { --kol-table-selection-col-width: var(--a11y-min-size); display: block; position: relative; max-width: 100%; } .kol-table:has(.kol-table__focus-element:focus) .kol-table__scroll-container { outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color; outline-offset: 2px; } .kol-table__scroll-container { overflow-x: auto; overflow-y: hidden; } .kol-table__table { table-layout: fixed; } .kol-table__caption { min-height: var(--a11y-min-size); text-align: start; } .kol-table__settings:not(:has(~ .kol-table__scroll-container .kol-table__caption)) { min-height: var(--a11y-min-size); } .kol-table__sort-button.kol-button { color: inherit; } .kol-table__sort { display: inline-flex; align-items: center; } .kol-table__sort-order { display: inline-flex; align-items: center; justify-content: center; } .kol-table__body { text-align: left; } .kol-table__body .kol-button__text { justify-items: start; } .kol-table__body:has(.kol-table__loader--shown) { position: relative; min-height: calc(var(--a11y-min-size) * 3); } .kol-table__cell--align-left { text-align: left; } .kol-table__cell--align-left .kol-table__sort-button .kol-button__text { align-items: start; text-align: start; } .kol-table__cell--align-left .kol-table__cell-actions { justify-content: flex-start; } .kol-table__cell--align-center { text-align: center; } .kol-table__cell--align-center .kol-table__sort-button .kol-button__text { align-items: center; } .kol-table__cell--align-right { text-align: right; } .kol-table__cell--align-right .kol-table__sort-button .kol-button__text { align-items: end; text-align: end; } .kol-table__cell--align-right .kol-table__cell-actions { justify-content: flex-end; } .kol-table__cell--selection { background-color: white; position: sticky !important; left: 0; z-index: 2; width: var(--kol-table-selection-col-width, auto); min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); white-space: nowrap; } .kol-table__cell--actions { white-space: nowrap; } .kol-table__cell--actions .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-table__cell--actions :host { display: inline-block; } .kol-table__cell--actions .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-table__cell--actions .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-table__cell--actions .kol-button__interactive-element::before { content: ""; } .kol-table__cell--actions .kol-button__text { flex: 1 0 100%; } .kol-table__cell--actions .kol-button { } .kol-table__cell--actions .kol-button__tooltip { height: 0; } .kol-table__cell--actions .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-table__cell--actions .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-table__cell--actions .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-table__cell--actions :host { display: inline-block; } .kol-table__cell--actions .kol-link { display: inline-flex; max-width: fit-content; } .kol-table__cell--actions .kol-link--standalone { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: stretch; } .kol-table__cell--actions .kol-link--standalone .kol-link__interactive-element { align-items: stretch; } .kol-table__cell--actions .kol-link--standalone .kol-link__text { display: inline-flex; flex: 1 1 100%; place-items: center; } .kol-table__cell--actions .kol-link__interactive-element { display: inline-flex; flex: 1; align-items: baseline; place-items: center; text-align: left; text-decoration-line: none; } .kol-table__cell--actions .kol-link__interactive-element:focus:not([aria-disabled], [disabled]) .kol-span__label, .kol-table__cell--actions .kol-link__interactive-element:hover:not([aria-disabled], [disabled]) .kol-span__label { text-decoration-thickness: 0.2em; } .kol-table__cell--actions .kol-link .kol-span__label { text-decoration-line: underline; } .kol-table__cell--actions .kol-link__icon { display: inline-flex; } .kol-table__cell--sticky-left, .kol-table__cell--sticky-right { background-color: white; position: sticky !important; z-index: 1; } .kol-table__cell--sticky-left:nth-last-child(1 of .kol-table__cell--sticky-left) { border-right: 2px solid black; } .kol-table__cell--sticky-right:nth-child(1 of .kol-table__cell--sticky-left) { border-left: 2px solid black; } .kol-table__cell-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; } .kol-table__cell-states { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; } .kol-table__spacer { display: none; } .kol-table__selection { position: relative; } .kol-table__selection-label { display: flex; position: relative; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; justify-content: center; } .kol-table__selection-label:not(.kol-table__selection-label--disabled) { cursor: pointer; } .kol-table__selection-label--disabled { cursor: not-allowed; } .kol-table__selection-icon { display: block; position: absolute; inset: auto; z-index: 1; } .kol-table__selection-input { border-style: solid; margin: 0; appearance: none; cursor: pointer; } .kol-table__selection-input:disabled { cursor: not-allowed; } .kol-table__selection-input:before { content: ""; } .kol-table__selection-input--checkbox { background-color: white; display: flex; position: relative; min-width: calc(var(--a11y-min-size) / 2); min-height: calc(var(--a11y-min-size) / 2); border-width: 2px; align-items: center; justify-content: center; line-height: 1.5; } .kol-table__selection-input--radio { border-radius: 100%; display: flex; width: 1.5em; min-width: 1.5em; height: 1.5em; min-height: 1.5em; padding: 0; border-width: 2px; } .kol-table__selection-input--radio:before { border-radius: 100%; width: 0.75em; height: 0.75em; margin: auto; } .kol-table__selection-input--radio:checked:before { background-color: black; } @media (forced-colors: active) { .kol-table__selection-input--radio:checked:before { background-color: selectedItem !important; } } .kol-table__loader--shown { background: white; display: flex; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; align-items: center; justify-content: center; } .kol-spin { display: contents; } .kol-spin__spinner { display: block; position: relative; } }'};export{r as kol_table_stateless}
|
|
4
|
+
import{r as e,h as o,H as t,g as i}from"./index-Bbr6Os1b.js";import{B as l,v as n}from"./base-BP5SdLvQ.js";import"./common-BdSzSIXg.js";import"./aria-labelledby-DqJY_4G-.js";import"./base-web-component-CYPdDdRn.js";import"./props-from-config-BOUcpF7e.js";import"./bem-registry-SKACeCny.js";import"./item-hsQoejqZ.js";import"./controller-CZcQ57AP.js";import"./component-names-Dhbtt0mX.js";import"./dev.utils-B0t4rcBV.js";import"./element-interaction-sGYdEpmv.js";import"./element-focus-BIRmGg5W.js";import"./tslib.es6-QNbPBOk5.js";import"./events-CRHxtwup.js";import"./behavior-B6y5Gofe.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./component-B8UMedaK.js";import"./component-hiabKVP3.js";import"./component-bIIx1x7q.js";import"./id-Bh4FF8c0.js";import"./label-lang-segment-C5LYGOHt.js";import"./label-hints-CZGo9ZD5.js";import"./resolve-props-DAVb5BM3.js";import"./component-DEwcJKDA.js";import"./validators-BgDmq-Qt.js";import"./component-CNgECeRi.js";import"./disabled-B2o4Ctgy.js";import"./label-with-expert-slot-D1tpX9DI.js";import"./item-pool-BOxAYePG.js";import"./item-DXDEHrEg.js";import"./ariaCurrentService-YoLNpD5S.js";import"./resolve-props-CL8wxjtP.js";import"./access-and-short-key-ijzCZfHm.js";import"./component-CiJGQTU0.js";import"./i18n-BLkzMf6D.js";import"./i18n-BRgvVqCf.js";import"./href-CfNF4pHX.js";import"./link-target-BWPSEd9a.js";import"./component-NOe28NXD.js";import"./label-BQVd3bkc.js";import"./component-ZdHnXLLI.js";import"./Heading-BubZbykM.js";import"./level-BVXGgbSM.js";import"./scroll-lock-BxAe0gL5.js";import"./width-BHn7XHj_.js";import"./component-6_YiKr2Z.js";import"./has-closer-BrG00xL7.js";import"./keyboard-DNd73LVa.js";const a=class extends l{constructor(o){super(...arguments),new.target===a&&e(this,o),this.externalLabelElements=[],this.hasScrollbar=!1,this.rowKeys=new Map,this.settingsChangedCounter=0,this.stickyColsDisabled=!1,this._ariaLabelledby=void 0,this._dataFoot=void 0,this._fixedCols=void 0,this._headers=void 0,this._headerCells=void 0,this._loading=void 0,this._on=void 0,this._selection=void 0,this._hasSettingsMenu=void 0,this._variant=void 0}watchAriaLabelledby(e){this.resolveExternalLabel(e)}watchData(e){this.applyData(e)}watchDataFoot(e){this.applyDataFoot(e)}watchFixedCols(e){this.applyFixedCols(e)}watchHeaders(e){this.applyHeaders(e||this._headerCells)}watchHeaderCells(e){this.applyHeaders(this._headers?this._headers:e)}watchLabel(e){this.applyLabel(e)}watchLoading(e){this.applyLoading(e)}watchOn(e){this.applyOn(e)}watchSelection(e){this.applySelection(e)}watchHasSettingsMenu(e){this.applyHasSettingsMenu(e)}watchVariant(e){this.applyVariant(e)}componentWillLoad(){this.watchData(this._data),this.watchDataFoot(this._dataFoot),this.watchFixedCols(this._fixedCols),this.watchHasSettingsMenu(this._hasSettingsMenu),this.watchHeaders(this._headers),this.watchLabel(this._label),this.watchLoading(this._loading),this.watchOn(this._on),this.watchSelection(this._selection),this.watchVariant(this._variant),this.resolveExternalLabel(this._ariaLabelledby)}componentDidLoad(){this.externalLabelElements.length||this.resolveExternalLabel(this._ariaLabelledby),this.observeScrollContainer()}componentDidRender(){this.updateScrollbarState(),this.syncTableItems()}disconnectedCallback(){this.teardownTable()}onChangeHeaderCells(e){this.applyChangedHeaderCells(e)}onKeydown(e){this.moveCheckboxFocus(e)}resolveExternalLabel(e){this.externalLabelElements=n(this,this.host,e),this.syncTableLabel(this.externalLabelElements)}render(){return o(t,{key:"bb1a7795ada8bb245d843907db73202203f2e170"},this.renderTableStatelessFC())}get host(){return i(this)}static get watchers(){return{_ariaLabelledby:[{watchAriaLabelledby:0}],_data:[{watchData:0}],_dataFoot:[{watchDataFoot:0}],_fixedCols:[{watchFixedCols:0}],_headers:[{watchHeaders:0}],_headerCells:[{watchHeaderCells:0}],_label:[{watchLabel:0}],_loading:[{watchLoading:0}],_on:[{watchOn:0}],_selection:[{watchSelection:0}],_hasSettingsMenu:[{watchHasSettingsMenu:0}],_variant:[{watchVariant:0}]}}};a.style={default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-meter meter { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-bar { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-optimum-value, .kol-meter meter::-webkit-meter-suboptimum-value, .kol-meter meter::-webkit-meter-even-less-good-value { background-color: CanvasText; } .kol-meter meter::-moz-meter-bar { background-color: CanvasText; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794998877659"); src: url("kolicons.eot?t=1794998877659#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794998877659") format("woff2"), url("kolicons.woff?t=1794998877659") format("woff"), url("kolicons.ttf?t=1794998877659") format("truetype"), url("kolicons.svg?t=1794998877659#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { @keyframes rotate { to { transform: rotate(1turn); } } @keyframes growingCircle { 0% { opacity: 0.5; border-color: white; clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0); } 25% { opacity: 0.75; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, #000)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0); } 50% { opacity: 1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%); } 75% { opacity: 1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%); } 100% { opacity: 0.1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0); } } .kol-spin__spinner--cycle { width: calc(var(--kol-spin-size, 48) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(var(--kol-spin-size, 48) * 1rem / var(--kolibri-root-font-size, 16)); } .kol-spin__spinner--cycle .kol-spin__loader { border-radius: 50%; display: block; position: relative; width: 100%; height: 100%; animation: 2s linear infinite rotate; } @media (prefers-reduced-motion) { .kol-spin__spinner--cycle .kol-spin__loader { animation-duration: 4s !important; } } .kol-spin__spinner--cycle .kol-spin__loader::before { border-radius: 50%; position: absolute; inset: 0; content: ""; animation: 3s linear infinite growingCircle; border: 5px solid var(--kol-spin-color, var(--kol-theme-spin-color, #333)); } @media (prefers-reduced-motion) { .kol-spin__spinner--cycle .kol-spin__loader::before { animation-duration: 6s !important; } } } @layer kol-component { @keyframes spin1 { 0% { transform: scale(0); } 100% { transform: scale(1); } } @keyframes spin2 { 0% { transform: translate(0, 0); } 100% { transform: translate(calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)), 0); } } @keyframes spin3 { 0% { transform: scale(1); } 100% { transform: scale(0); } } @media (prefers-reduced-motion) { .kol-spin__spinner-element { animation-duration: 2s !important; } } .kol-spin__spinner--dot { --kol-spin-border-width: calc(var(--kol-spin-size, 13) / 10); width: calc(calc(var(--kol-spin-size, 13) * 3 + 2) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(calc(var(--kol-spin-size, 13) + var(--kol-spin-border-width) * 2) * 1rem / var(--kolibri-root-font-size, 16)); } .kol-spin__spinner--dot .kol-spin__spinner-element { background-color: var(--kol-spin-color, var(--kol-theme-spin-color, #000)); border-radius: 50%; position: absolute; top: 1px; width: calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)); animation-timing-function: cubic-bezier(0, 1, 1, 0); border: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)) solid white; } .kol-spin__spinner--dot .kol-spin__spinner-element--1 { left: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 0; animation: 1s infinite spin1; } .kol-spin__spinner--dot .kol-spin__spinner-element--2 { left: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; animation: 1s infinite spin2; } .kol-spin__spinner--dot .kol-spin__spinner-element--3 { left: calc(calc(var(--kol-spin-size, 13) + var(--kol-spin-border-width)) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; animation: 1s infinite spin2; } .kol-spin__spinner--dot .kol-spin__spinner-element--neutral { opacity: 0.6; left: calc(calc(var(--kol-spin-size, 13) * 2 + var(--kol-spin-border-width)) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 0; animation: 1s infinite spin3; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-card .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-card :host { display: inline-block; } .kol-card .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-card .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-card .kol-button__interactive-element::before { content: ""; } .kol-card .kol-button__text { flex: 1 0 100%; } .kol-card .kol-button { } .kol-card .kol-button__tooltip { height: 0; } .kol-card .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-card .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-card { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); display: grid; height: 100%; overflow: visible; grid-template-areas: "header close" "content content"; grid-template-columns: 1fr min-content; grid-template-rows: min-content 1fr; } .kol-card__header { align-self: start; grid-area: header; } .kol-card__content { align-self: stretch; grid-area: content; } .kol-card__close-button { position: relative; z-index: 1; grid-area: close; } .kol-card:has(.kol-card__link) { position: relative; } .kol-card__link::after { position: absolute; inset: 0; content: ""; cursor: pointer; } .kol-dialog, .kol-modal { min-height: var(--a11y-min-size); padding: 0; border: 0; overscroll-behavior: contain; } .kol-dialog__close-button, .kol-modal__close-button { position: absolute; top: calc(1 * 1rem / var(--kolibri-root-font-size, 16)); right: calc(1 * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; } .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: ""; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } :host { display: inline-block; } .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-button__interactive-element::before { content: ""; } .kol-button__text { flex: 1 0 100%; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-popover-button { display: inline; } .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-popover-button--inline { display: inline-block; } .kol-popover-button--inline .kol-button, .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-table-settings { position: absolute; top: 0; right: 0; z-index: 1; } .kol-table-settings .kol-popover-button__popover { background: white; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); border-radius: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); border: 1px solid black; } .kol-table-settings__columns { display: grid; max-height: calc(200 * 1rem / var(--kolibri-root-font-size, 16)); overflow: auto; grid-auto-rows: min-content; grid-template-columns: min-content minmax(max-content, 1fr) calc(140 * 1rem / var(--kolibri-root-font-size, 16)) auto auto; } .kol-table-settings__column { display: grid; align-items: center; grid-template-columns: subgrid; grid-column: 1/6; } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-table { --kol-table-selection-col-width: var(--a11y-min-size); display: block; position: relative; max-width: 100%; } .kol-table:has(.kol-table__focus-element:focus) .kol-table__scroll-container { outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color; outline-offset: 2px; } .kol-table__scroll-container { overflow-x: auto; overflow-y: hidden; } .kol-table__table { table-layout: fixed; } .kol-table__caption { min-height: var(--a11y-min-size); text-align: start; } .kol-table__settings:not(:has(~ .kol-table__scroll-container .kol-table__caption)) { min-height: var(--a11y-min-size); } .kol-table__sort-button.kol-button { color: inherit; } .kol-table__sort { display: inline-flex; align-items: center; } .kol-table__sort-order { display: inline-flex; align-items: center; justify-content: center; } .kol-table__body { text-align: left; } .kol-table__body .kol-button__text { justify-items: start; } .kol-table__body:has(.kol-table__loader--shown) { position: relative; min-height: calc(var(--a11y-min-size) * 3); } .kol-table__cell--align-left { text-align: left; } .kol-table__cell--align-left .kol-table__sort-button .kol-button__text { align-items: start; text-align: start; } .kol-table__cell--align-left .kol-table__cell-actions { justify-content: flex-start; } .kol-table__cell--align-center { text-align: center; } .kol-table__cell--align-center .kol-table__sort-button .kol-button__text { align-items: center; } .kol-table__cell--align-right { text-align: right; } .kol-table__cell--align-right .kol-table__sort-button .kol-button__text { align-items: end; text-align: end; } .kol-table__cell--align-right .kol-table__cell-actions { justify-content: flex-end; } .kol-table__cell--selection { background-color: white; position: sticky !important; left: 0; z-index: 2; width: var(--kol-table-selection-col-width, auto); min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); white-space: nowrap; } .kol-table__cell--actions { white-space: nowrap; } .kol-table__cell--actions .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-table__cell--actions :host { display: inline-block; } .kol-table__cell--actions .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-table__cell--actions .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-table__cell--actions .kol-button__interactive-element::before { content: ""; } .kol-table__cell--actions .kol-button__text { flex: 1 0 100%; } .kol-table__cell--actions .kol-button { } .kol-table__cell--actions .kol-button__tooltip { height: 0; } .kol-table__cell--actions .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-table__cell--actions .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-table__cell--actions .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-table__cell--actions :host { display: inline-block; } .kol-table__cell--actions .kol-link { display: inline-flex; max-width: fit-content; } .kol-table__cell--actions .kol-link--standalone { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: stretch; } .kol-table__cell--actions .kol-link--standalone .kol-link__interactive-element { align-items: stretch; } .kol-table__cell--actions .kol-link--standalone .kol-link__text { display: inline-flex; flex: 1 1 100%; place-items: center; } .kol-table__cell--actions .kol-link__interactive-element { display: inline-flex; flex: 1; align-items: baseline; place-items: center; text-align: left; text-decoration-line: none; } .kol-table__cell--actions .kol-link__interactive-element:focus:not([aria-disabled], [disabled]) .kol-span__label, .kol-table__cell--actions .kol-link__interactive-element:hover:not([aria-disabled], [disabled]) .kol-span__label { text-decoration-thickness: 0.2em; } .kol-table__cell--actions .kol-link .kol-span__label { text-decoration-line: underline; } .kol-table__cell--actions .kol-link__icon { display: inline-flex; } .kol-table__cell--sticky-left, .kol-table__cell--sticky-right { background-color: white; position: sticky !important; z-index: 1; } .kol-table__cell--sticky-left:nth-last-child(1 of .kol-table__cell--sticky-left) { border-right: 2px solid black; } .kol-table__cell--sticky-right:nth-child(1 of .kol-table__cell--sticky-left) { border-left: 2px solid black; } .kol-table__cell-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; } .kol-table__cell-states { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; } .kol-table__spacer { display: none; } .kol-table__selection { position: relative; } .kol-table__selection-label { display: flex; position: relative; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; justify-content: center; } .kol-table__selection-label:not(.kol-table__selection-label--disabled) { cursor: pointer; } .kol-table__selection-label--disabled { cursor: not-allowed; } .kol-table__selection-icon { display: block; position: absolute; inset: auto; z-index: 1; } .kol-table__selection-input { border-style: solid; margin: 0; appearance: none; cursor: pointer; } .kol-table__selection-input:disabled { cursor: not-allowed; } .kol-table__selection-input:before { content: ""; } .kol-table__selection-input--checkbox { background-color: white; display: flex; position: relative; min-width: calc(var(--a11y-min-size) / 2); min-height: calc(var(--a11y-min-size) / 2); border-width: 2px; align-items: center; justify-content: center; line-height: 1.5; } .kol-table__selection-input--radio { border-radius: 100%; display: flex; width: 1.5em; min-width: 1.5em; height: 1.5em; min-height: 1.5em; padding: 0; border-width: 2px; } .kol-table__selection-input--radio:before { border-radius: 100%; width: 0.75em; height: 0.75em; margin: auto; } .kol-table__selection-input--radio:checked:before { background-color: black; } @media (forced-colors: active) { .kol-table__selection-input--radio:checked:before { background-color: selectedItem !important; } } .kol-table__loader--shown { background: white; display: flex; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; align-items: center; justify-content: center; } .kol-spin { display: contents; } .kol-spin__spinner { display: block; position: relative; } }'};export{a as kol_table_stateless}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as t,r as o,H as e,g as i}from"./index-Dulj0jro.js";import{_ as n}from"./tslib.es6-QNbPBOk5.js";import{B as a}from"./base-web-component-CC_gpyDb.js";import{B as l,s,e as r,H as c}from"./common-BdSzSIXg.js";import{a as d,T as h}from"./behavior-Bb7JYoUn.js";import{c as b,n as u,A as p,i as f,b as m,e as k,F as g}from"./props-from-config-ytxYrJUY.js";import{l as v}from"./label-B-Dr7VaP.js";import{n as y,c as _}from"./dev.utils-DDWOHUcg.js";import{d as w,K as x}from"./events-CRHxtwup.js";import{r as B}from"./resolve-props-Bj6IaybL.js";import{b as j}from"./bem-registry-DQUGxdIS.js";import{B as C}from"./component-B05zRrM0.js";import{B as T}from"./component-B16Fbp3W.js";import{t as z}from"./i18n-ePBcLlCr.js";import{K as D}from"./keyboard-DNd73LVa.js";import{d as I,a as $,c as G}from"./element-interaction-sGYdEpmv.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./component-W1KZI4h4.js";import"./component-oUQcgxDj.js";import"./clsx-COFh-Vc8.js";import"./component-Clz6b6ho.js";import"./id-BI0ZuK17.js";import"./label-lang-segment-iVD9hoM3.js";import"./label-hints-CLMiVvfk.js";import"./validators-CTjxOidB.js";import"./component-C79oAu7a.js";import"./disabled-BZXlWAgK.js";import"./label-with-expert-slot-BbZ9nx0l.js";import"./block-bem-BGIVcYJu.js";import"./i18n-4J6U3ZDc.js";import"./element-focus-BIRmGg5W.js";const K=b("hasCreateButton",!1,u),L=b("selected",0,p),O=["select-automatic","select-manual"],P=b("behavior","select-automatic",(t=>m(t)),(t=>f(t,O))),S=b("tabs",[],(t=>k(t)),(t=>t.every((t=>"object"==typeof t&&null!==t&&(Array.isArray(t._label)||"string"==typeof t._label&&t._label.length>0)))),{hints:(t,o)=>l("KolTabs",o.length)}),A=b("on",{},(t=>{const o=g(t),e={};return"function"==typeof o.onCreate&&(e.onCreate=o.onCreate),"function"==typeof o.onSelect&&(e.onSelect=o.onSelect),e})),H={required:[v,S],optional:[d,K,L,P,A]},F=()=>{const t=new h(a.stateLess),o=y();let e,i,n,l;const r=(t,o)=>{n&&w(n,t,o)},c=o=>{o.stopPropagation(),t.hideTooltip();const n=null==e?void 0:e.on.onClick;"function"==typeof n&&(s(o,l),n(o,i)),r(x.click,i)},d=t=>{var o,i;null===(i=null==e?void 0:(o=e.on).onMouseDown)||void 0===i||i.call(o,t),r(x.mousedown)},b=t=>{var o,i;null===(i=null==e?void 0:(o=e.on).onFocus)||void 0===i||i.call(o,t),r(x.focus)},u=t=>{var o,i;null===(i=null==e?void 0:(o=e.on).onBlur)||void 0===i||i.call(o,t),r(x.blur)},p=t=>{n=t},f=t=>{l=t};return{getButton:(n,a)=>(e=B(n,a),i=n._value,t.componentWillLoad({label:e.label,align:e.tooltipAlign}),{buttonProps:Object.assign(Object.assign({},e),{ariaDescriptionId:o,handleBlur:u,handleClick:c,handleFocus:b,handleMouseDown:d,refButton:f,refTooltip:t.setTooltipElementRef}),refBox:p}),getButtonElement:()=>l,syncListeners:()=>{l&&t.syncListeners(void 0,l,!0)},destroy:()=>{t.destroy()}}},R=j.forBlock("kol-tabs"),M=R("button-create"),V=R("button-group"),U=R("content"),W=R("tab"),N=R("tablist"),Y=o=>{const{align:e,class:i,createButton:n,handleBlur:a,handleKeyDown:l,hasCreateButton:s,label:r,refContent:c,refRoot:d,tabButtons:h}=o;return t(C,{block:"kol-tabs",modifiers:{[`align-${e}`]:!0},class:i,ref:d},t("div",{class:V},t("div",{"aria-label":r,class:N,role:"tablist",tabIndex:-1,onKeyDown:l,onFocusout:t=>{t.relatedTarget instanceof Node&&t.currentTarget.contains(t.relatedTarget)||a()}},h.map((({buttonProps:o,refBox:e})=>t("div",{class:W,ref:e},t(T,Object.assign({},o)))))),s&&t("div",{class:M,ref:n.refBox},t(T,Object.assign({},n.buttonProps)))),t("div",{class:U,ref:c}))},Z=class extends a{constructor(t){super(...arguments),new.target===Z&&o(this,t),this.onCreateLabel=`${z("kol-new")} …`,this.ctaRef=G(),this.id=_("tabs"),this.tabButtonItems=[],this.createButtonItem=F(),this.onClickSelect=(t,o)=>{this.selectNextTabEvent(t,o)},this.onMouseDown=t=>{t.preventDefault()},this.tabButtonCallbacks={onClick:this.onClickSelect,onMouseDown:this.onMouseDown},this.tabButtons=[],this.propsConfig=H,this._align="top",this._behavior=void 0,this._hasCreateButton=!1,this._on=void 0,this._selected=0,this.nextPossibleTabIndex=(t,o,e=1)=>this.selectNextNotDisabledTab(o+e,t,!0),this.prevPossibleTabIndex=(t,o,e=1)=>this.selectNextNotDisabledTab(o-e,t,!1),this.selectNextNotDisabledTab=(t,o,e=!0,i)=>{if(t>o.length-1&&(t=0),t<0&&(t=o.length-1),Array.isArray(o)&&o[t]&&o[t]._disabled){if(!0===e){if(t<o.length-1)return this.selectNextNotDisabledTab(t+1,o,!0,i||t);t=i||t,e=!1}if(!1===e){if(t>0)return this.selectNextNotDisabledTab(t-1,o,!1,i||t);r("[KolTabs] All tabs are disabled, and therefore no tab can be displayed.")}}return t},this.handleKeyDown=t=>{switch(t.key){case D.ArrowRight:this.goToNextTab(t);break;case D.ArrowLeft:this.goToPreviousTab(t)}},this.handleBlur=()=>{this.currentFocusIndex=void 0},this.onCreate=t=>{var o,e;t.preventDefault(),null===(e=(o=this.getRenderProp("on")).onCreate)||void 0===e||e.call(o,t),this.host&&w(this.host,x.create)},this.setRootRef=t=>{this.rootElement=t},this.setContentRef=t=>{this.tabPanelHost=t}}watchAlign(t){d.apply(t,(t=>this.setRenderProp("align",t)))}watchBehavior(t){P.apply(t,(t=>this.setRenderProp("behavior",t)))}watchHasCreateButton(t){K.apply(t,(t=>this.setRenderProp("hasCreateButton",t)))}watchLabel(t){v.apply(t,(t=>this.setRenderProp("label",t)),this.isRequired("label"))}watchOn(t){A.apply(t,(t=>this.setRenderProp("on",t)))}watchSelected(t){this.applySelected(t)}watchTabs(t){this.applyTabs(t)}focus(t){return Promise.resolve()}click(){return Promise.resolve()}componentWillLoad(){d.apply(this._align,(t=>this.setRenderProp("align",t))),P.apply(this._behavior,(t=>this.setRenderProp("behavior",t))),K.apply(this._hasCreateButton,(t=>this.setRenderProp("hasCreateButton",t))),v.apply(this._label,(t=>this.setRenderProp("label",t)),this.isRequired("label")),A.apply(this._on,(t=>this.setRenderProp("on",t))),this.applySelected(this._selected),this.applyTabs(this._tabs)}componentWillRender(){this.resolveButtons()}componentDidRender(){var t;this.ctaRef(null===(t=this.tabButtonItems[this.getRenderProp("selected")])||void 0===t?void 0:t.getButtonElement()),this.tabButtonItems.forEach((t=>t.syncListeners())),this.createButtonItem.syncListeners(),this.refreshTabPanels()}disconnectedCallback(){this.tabButtonItems.forEach((t=>t.destroy())),this.createButtonItem.destroy()}syncSelected(){const t=this.getRenderProp("tabs");t.length>0&&this.setRenderProp("selected",this.selectNextNotDisabledTab(this.getRenderProp("selected"),t))}getCurrentFocusIndex(){return"number"==typeof this.currentFocusIndex?this.currentFocusIndex:this.getRenderProp("selected")}getKeyboardTabChangeMode(){return"select-manual"===this.getRenderProp("behavior")?"selectFocusOnly":"activateCompletely"}goToNextTab(t){const o=this.nextPossibleTabIndex(this.getRenderProp("tabs"),this.getCurrentFocusIndex());this.selectNextTabEvent(t,o,this.getKeyboardTabChangeMode())}goToPreviousTab(t){const o=this.prevPossibleTabIndex(this.getRenderProp("tabs"),this.getCurrentFocusIndex());this.selectNextTabEvent(t,o,this.getKeyboardTabChangeMode())}selectNextTabEvent(t,o,e="activateCompletely"){var i,n;this.currentFocusIndex=o,this.focusTabById(o),"activateCompletely"===e&&(this._selected=o,null===(n=null===(i=this.getRenderProp("tabs")[o]._on)||void 0===i?void 0:i.onSelect)||void 0===n||n.call(i,t,o),this.onSelect(t,o))}focusTabById(t){if(this.rootElement){const o=c(`button#${this.id}-tab-${t}`,this.rootElement);null==o||o.focus()}}onSelect(t,o){var e,i;null===(i=(e=this.getRenderProp("on")).onSelect)||void 0===i||i.call(e,t,o),this.host&&w(this.host,x.select,o),this.focusTabById(o)}refreshTabPanels(){var t,o;if(!this.tabPanelHost)return;for(;this.tabPanelHost.firstChild;)this.tabPanelHost.removeChild(this.tabPanelHost.firstChild);const e=this.getRenderProp("tabs");for(let i=0;i<e.length;i++){const e=document.createElement("div");e.setAttribute("aria-labelledby",`${this.id}-tab-${i}`),e.setAttribute("id",`${this.id}-panel-${i}`),e.setAttribute("role","tabpanel"),e.setAttribute("hidden","");const n=document.createElement("slot");n.setAttribute("name",`tabpanel-slot-${i}`),e.appendChild(n),this.tabPanelHost.appendChild(e),"undefined"!=typeof HTMLCollection&&(null===(t=this.host)||void 0===t?void 0:t.children)instanceof HTMLCollection&&(null===(o=this.host)||void 0===o?void 0:o.children[i])&&this.host.children[i].setAttribute("slot",`tabpanel-slot-${i}`)}this.updateVisiblePanel()}updateVisiblePanel(){if(!this.tabPanelHost)return;const t=this.getRenderProp("selected");Array.from(this.tabPanelHost.children).forEach(((o,e)=>{e===t?o.removeAttribute("hidden"):o.setAttribute("hidden","")}))}resolveButtons(){const t=this.getRenderProp("selected"),o=this.getRenderProp("tabs");this.tabButtons=this.tabButtonItems.map(((e,i)=>{const n=o[i],a=t===i;return e.getButton({_ariaControls:`${this.id}-panel-${i}`,_ariaSelected:a,_customClass:a?"selected":"",_disabled:n._disabled,_hideLabel:n._hideLabel,_icons:n._icons,_id:`${this.id}-tab-${i}`,_label:n._label,_on:this.tabButtonCallbacks,_role:"tab",_tabIndex:a?0:-1,_tooltipAlign:n._tooltipAlign,_value:i,_variant:a?"custom":void 0},this.host)})),this.createButton=this.createButtonItem.getButton({_icons:"kolicon-plus",_label:this.onCreateLabel,_on:{onClick:this.onCreate}},this.host)}applySelected(t){L.apply(t,(t=>{this.setRenderProp("selected",t),this.syncSelected()}))}applyTabs(t){S.apply(t,(t=>{this.setRenderProp("tabs",t),this.tabButtonItems.forEach((t=>t.destroy())),this.tabButtonItems=t.map((()=>F())),this.syncSelected()}))}render(){return t(e,{key:"f42c56ba7918ef6a33a6a354e2f9c4de5ca8fcb4"},t(Y,{key:"9691fd92c0782719c4c343e663cde270c907449c",align:this.getRenderProp("align"),behavior:this.getRenderProp("behavior"),createButton:this.createButton,handleBlur:this.handleBlur,handleKeyDown:this.handleKeyDown,hasCreateButton:this.getRenderProp("hasCreateButton"),label:this.getRenderProp("label"),on:this.getRenderProp("on"),refContent:this.setContentRef,refRoot:this.setRootRef,selected:this.getRenderProp("selected"),tabButtons:this.tabButtons,tabs:this.getRenderProp("tabs")}))}get host(){return i(this)}static get watchers(){return{_align:[{watchAlign:0}],_behavior:[{watchBehavior:0}],_hasCreateButton:[{watchHasCreateButton:0}],_label:[{watchLabel:0}],_on:[{watchOn:0}],_selected:[{watchSelected:0}],_tabs:[{watchTabs:0}]}}};n([I("ctaRef")],Z.prototype,"focus",null),n([$("ctaRef")],Z.prototype,"click",null),Z.style={default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794582088003"); src: url("kolicons.eot?t=1794582088003#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794582088003") format("woff2"), url("kolicons.woff?t=1794582088003") format("woff"), url("kolicons.ttf?t=1794582088003") format("truetype"), url("kolicons.svg?t=1794582088003#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-button { background-color: transparent; display: inline-block; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); margin: 0; padding: 0; text-align: center; } .kol-button__interactive-element { border-style: none; display: block; border-width: medium; font-weight: inherit; font-style: inherit; text-align: inherit; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-tabs { display: var(--display); grid-template-columns: var(--grid-template-columns); grid-template-rows: var(--grid-template-rows); } .kol-tabs--align-right { --display: grid; --grid-template-columns: 1fr auto; --button-group-flex-direction: column; --button-group-order: 2; } .kol-tabs--align-left { --display: grid; --grid-template-columns: auto 1fr; --button-group-flex-direction: column; --button-group-order: 0; } .kol-tabs--align-bottom { --display: grid; --grid-template-rows: 1fr auto; --button-group-order: 2; } .kol-tabs__tabs-align-top { --display: grid; --grid-template-rows: auto 1fr; --button-group-order: 0; } .kol-tabs__button-group { display: flex; order: var(--button-group-order); flex-direction: var(--button-group-flex-direction); flex-wrap: wrap; } .kol-tabs__button-group .kol-button { display: block; } .kol-tabs__button-group .kol-button .kol-button__interactive-element { border-bottom-color: transparent; border-bottom-style: solid; } @media (forced-colors: active) { .kol-tabs__button-group .kol-button.selected { outline: 3px solid Highlight; outline-offset: -3px; } .kol-tabs__button-group .kol-button.selected:has(.kol-button__interactive-element:focus-visible) { outline-style: dashed; } } .kol-tabs__tablist { display: flex; flex-direction: var(--button-group-flex-direction); flex-wrap: wrap; } .kol-tabs__panel { height: 100%; } }'};export{Z as kol_tabs}
|
|
4
|
+
import{h as t,r as o,H as e,g as i}from"./index-Bbr6Os1b.js";import{_ as n}from"./tslib.es6-QNbPBOk5.js";import{B as a}from"./base-web-component-CYPdDdRn.js";import{B as l,s as r,e as s,H as c}from"./common-BdSzSIXg.js";import{a as d,T as h}from"./behavior-B6y5Gofe.js";import{c as b,n as u,D as p,i as m,b as f,f as k,I as g,B as v}from"./props-from-config-BOUcpF7e.js";import{l as y}from"./label-BQVd3bkc.js";import{n as _,c as w}from"./dev.utils-B0t4rcBV.js";import{d as x,K as B}from"./events-CRHxtwup.js";import{r as C}from"./resolve-props-DAVb5BM3.js";import{b as T}from"./bem-registry-SKACeCny.js";import{B as j}from"./component-CNgECeRi.js";import{t as z}from"./i18n-BLkzMf6D.js";import{K as D}from"./keyboard-DNd73LVa.js";import{d as $,a as I,c as G}from"./element-interaction-sGYdEpmv.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./component-B8UMedaK.js";import"./component-hiabKVP3.js";import"./component-bIIx1x7q.js";import"./id-Bh4FF8c0.js";import"./label-lang-segment-C5LYGOHt.js";import"./label-hints-CZGo9ZD5.js";import"./validators-BgDmq-Qt.js";import"./component-DEwcJKDA.js";import"./disabled-B2o4Ctgy.js";import"./label-with-expert-slot-D1tpX9DI.js";import"./i18n-BRgvVqCf.js";import"./element-focus-BIRmGg5W.js";const K=b("hasCreateButton",!1,u),O=b("selected",0,p),P=["select-automatic","select-manual"],R=b("behavior","select-automatic",(t=>f(t)),(t=>m(t,P))),S=b("tabs",[],(t=>k(t)),(t=>t.every((t=>"object"==typeof t&&null!==t&&(Array.isArray(t._label)||"string"==typeof t._label&&t._label.length>0)))),{hints:(t,o)=>l("KolTabs",o.length)}),A=b("on",{},(t=>{const o=g(t),e={};return"function"==typeof o.onCreate&&(e.onCreate=o.onCreate),"function"==typeof o.onSelect&&(e.onSelect=o.onSelect),e})),H={required:[y,S],optional:[d,K,O,R,A]},L=()=>{const t=new h(a.stateLess),o=_();let e,i,n,l;const s=(t,o)=>{n&&x(n,t,o)},c=o=>{o.stopPropagation(),t.hideTooltip();const n=null==e?void 0:e.on.onClick;"function"==typeof n&&(r(o,l),n(o,i)),s(B.click,i)},d=t=>{var o,i;null===(i=null==e?void 0:(o=e.on).onMouseDown)||void 0===i||i.call(o,t),s(B.mousedown)},b=t=>{var o,i;null===(i=null==e?void 0:(o=e.on).onFocus)||void 0===i||i.call(o,t),s(B.focus)},u=t=>{var o,i;null===(i=null==e?void 0:(o=e.on).onBlur)||void 0===i||i.call(o,t),s(B.blur)},p=t=>{n=t},m=t=>{l=t};return{getButton:(n,a)=>(e=C(n,a),i=n._value,t.componentWillLoad({label:e.label,align:e.tooltipAlign}),{buttonProps:Object.assign(Object.assign({},e),{ariaDescriptionId:o,handleBlur:u,handleClick:c,handleFocus:b,handleMouseDown:d,refButton:m,refTooltip:t.setTooltipElementRef}),refBox:p}),getButtonElement:()=>l,syncListeners:()=>{l&&t.syncListeners(void 0,l,!0)},destroy:()=>{t.destroy()}}},F=T.forBlock("kol-tabs"),M=F("button-create"),V=F("button-group"),N=F("content"),E=F("tab"),q=F("tablist"),Q=o=>{const{align:e,class:i,createButton:n,handleBlur:a,handleKeyDown:l,hasCreateButton:r,label:s,refContent:c,refRoot:d,tabButtons:h}=o;return t(v,{block:"kol-tabs",modifiers:{[`align-${e}`]:!0},class:i,ref:d},t("div",{class:V},t("div",{"aria-label":s,class:q,role:"tablist",tabIndex:-1,onKeyDown:l,onFocusout:t=>{t.relatedTarget instanceof Node&&t.currentTarget.contains(t.relatedTarget)||a()}},h.map((({buttonProps:o,refBox:e})=>t("div",{class:E,ref:e},t(j,Object.assign({},o)))))),r&&t("div",{class:M,ref:n.refBox},t(j,Object.assign({},n.buttonProps)))),t("div",{class:N,ref:c}))},U=class extends a{constructor(t){super(...arguments),new.target===U&&o(this,t),this.onCreateLabel=`${z("kol-new")} …`,this.ctaRef=G(),this.id=w("tabs"),this.tabButtonItems=[],this.createButtonItem=L(),this.onClickSelect=(t,o)=>{this.selectNextTabEvent(t,o)},this.onMouseDown=t=>{t.preventDefault()},this.tabButtonCallbacks={onClick:this.onClickSelect,onMouseDown:this.onMouseDown},this.tabButtons=[],this.propsConfig=H,this._align="top",this._behavior=void 0,this._hasCreateButton=!1,this._on=void 0,this._selected=0,this.nextPossibleTabIndex=(t,o,e=1)=>this.selectNextNotDisabledTab(o+e,t,!0),this.prevPossibleTabIndex=(t,o,e=1)=>this.selectNextNotDisabledTab(o-e,t,!1),this.selectNextNotDisabledTab=(t,o,e=!0,i)=>{if(t>o.length-1&&(t=0),t<0&&(t=o.length-1),Array.isArray(o)&&o[t]&&o[t]._disabled){if(!0===e){if(t<o.length-1)return this.selectNextNotDisabledTab(t+1,o,!0,i||t);t=i||t,e=!1}if(!1===e){if(t>0)return this.selectNextNotDisabledTab(t-1,o,!1,i||t);s("[KolTabs] All tabs are disabled, and therefore no tab can be displayed.")}}return t},this.handleKeyDown=t=>{switch(t.key){case D.ArrowRight:this.goToNextTab(t);break;case D.ArrowLeft:this.goToPreviousTab(t)}},this.handleBlur=()=>{this.currentFocusIndex=void 0},this.onCreate=t=>{var o,e;t.preventDefault(),null===(e=(o=this.getRenderProp("on")).onCreate)||void 0===e||e.call(o,t),this.host&&x(this.host,B.create)},this.setRootRef=t=>{this.rootElement=t},this.setContentRef=t=>{this.tabPanelHost=t}}watchAlign(t){d.apply(t,(t=>this.setRenderProp("align",t)))}watchBehavior(t){R.apply(t,(t=>this.setRenderProp("behavior",t)))}watchHasCreateButton(t){K.apply(t,(t=>this.setRenderProp("hasCreateButton",t)))}watchLabel(t){y.apply(t,(t=>this.setRenderProp("label",t)),this.isRequired("label"))}watchOn(t){A.apply(t,(t=>this.setRenderProp("on",t)))}watchSelected(t){this.applySelected(t)}watchTabs(t){this.applyTabs(t)}focus(t){return Promise.resolve()}click(){return Promise.resolve()}componentWillLoad(){d.apply(this._align,(t=>this.setRenderProp("align",t))),R.apply(this._behavior,(t=>this.setRenderProp("behavior",t))),K.apply(this._hasCreateButton,(t=>this.setRenderProp("hasCreateButton",t))),y.apply(this._label,(t=>this.setRenderProp("label",t)),this.isRequired("label")),A.apply(this._on,(t=>this.setRenderProp("on",t))),this.applySelected(this._selected),this.applyTabs(this._tabs)}componentWillRender(){this.resolveButtons()}componentDidRender(){var t;this.ctaRef(null===(t=this.tabButtonItems[this.getRenderProp("selected")])||void 0===t?void 0:t.getButtonElement()),this.tabButtonItems.forEach((t=>t.syncListeners())),this.createButtonItem.syncListeners(),this.refreshTabPanels()}disconnectedCallback(){this.tabButtonItems.forEach((t=>t.destroy())),this.createButtonItem.destroy()}syncSelected(){const t=this.getRenderProp("tabs");t.length>0&&this.setRenderProp("selected",this.selectNextNotDisabledTab(this.getRenderProp("selected"),t))}getCurrentFocusIndex(){return"number"==typeof this.currentFocusIndex?this.currentFocusIndex:this.getRenderProp("selected")}getKeyboardTabChangeMode(){return"select-manual"===this.getRenderProp("behavior")?"selectFocusOnly":"activateCompletely"}goToNextTab(t){const o=this.nextPossibleTabIndex(this.getRenderProp("tabs"),this.getCurrentFocusIndex());this.selectNextTabEvent(t,o,this.getKeyboardTabChangeMode())}goToPreviousTab(t){const o=this.prevPossibleTabIndex(this.getRenderProp("tabs"),this.getCurrentFocusIndex());this.selectNextTabEvent(t,o,this.getKeyboardTabChangeMode())}selectNextTabEvent(t,o,e="activateCompletely"){var i,n;this.currentFocusIndex=o,this.focusTabById(o),"activateCompletely"===e&&(this._selected=o,null===(n=null===(i=this.getRenderProp("tabs")[o]._on)||void 0===i?void 0:i.onSelect)||void 0===n||n.call(i,t,o),this.onSelect(t,o))}focusTabById(t){if(this.rootElement){const o=c(`button#${this.id}-tab-${t}`,this.rootElement);null==o||o.focus()}}onSelect(t,o){var e,i;null===(i=(e=this.getRenderProp("on")).onSelect)||void 0===i||i.call(e,t,o),this.host&&x(this.host,B.select,o),this.focusTabById(o)}refreshTabPanels(){var t,o;if(!this.tabPanelHost)return;for(;this.tabPanelHost.firstChild;)this.tabPanelHost.removeChild(this.tabPanelHost.firstChild);const e=this.getRenderProp("tabs");for(let i=0;i<e.length;i++){const e=document.createElement("div");e.setAttribute("aria-labelledby",`${this.id}-tab-${i}`),e.setAttribute("id",`${this.id}-panel-${i}`),e.setAttribute("role","tabpanel"),e.setAttribute("hidden","");const n=document.createElement("slot");n.setAttribute("name",`tabpanel-slot-${i}`),e.appendChild(n),this.tabPanelHost.appendChild(e),"undefined"!=typeof HTMLCollection&&(null===(t=this.host)||void 0===t?void 0:t.children)instanceof HTMLCollection&&(null===(o=this.host)||void 0===o?void 0:o.children[i])&&this.host.children[i].setAttribute("slot",`tabpanel-slot-${i}`)}this.updateVisiblePanel()}updateVisiblePanel(){if(!this.tabPanelHost)return;const t=this.getRenderProp("selected");Array.from(this.tabPanelHost.children).forEach(((o,e)=>{e===t?o.removeAttribute("hidden"):o.setAttribute("hidden","")}))}resolveButtons(){const t=this.getRenderProp("selected"),o=this.getRenderProp("tabs");this.tabButtons=this.tabButtonItems.map(((e,i)=>{const n=o[i],a=t===i;return e.getButton({_ariaControls:`${this.id}-panel-${i}`,_ariaSelected:a,_customClass:a?"selected":"",_disabled:n._disabled,_hideLabel:n._hideLabel,_icons:n._icons,_id:`${this.id}-tab-${i}`,_label:n._label,_on:this.tabButtonCallbacks,_role:"tab",_tabIndex:a?0:-1,_tooltipAlign:n._tooltipAlign,_value:i,_variant:a?"custom":void 0},this.host)})),this.createButton=this.createButtonItem.getButton({_icons:"kolicon-plus",_label:this.onCreateLabel,_on:{onClick:this.onCreate}},this.host)}applySelected(t){O.apply(t,(t=>{this.setRenderProp("selected",t),this.syncSelected()}))}applyTabs(t){S.apply(t,(t=>{this.setRenderProp("tabs",t),this.tabButtonItems.forEach((t=>t.destroy())),this.tabButtonItems=t.map((()=>L())),this.syncSelected()}))}render(){return t(e,{key:"f42c56ba7918ef6a33a6a354e2f9c4de5ca8fcb4"},t(Q,{key:"9691fd92c0782719c4c343e663cde270c907449c",align:this.getRenderProp("align"),behavior:this.getRenderProp("behavior"),createButton:this.createButton,handleBlur:this.handleBlur,handleKeyDown:this.handleKeyDown,hasCreateButton:this.getRenderProp("hasCreateButton"),label:this.getRenderProp("label"),on:this.getRenderProp("on"),refContent:this.setContentRef,refRoot:this.setRootRef,selected:this.getRenderProp("selected"),tabButtons:this.tabButtons,tabs:this.getRenderProp("tabs")}))}get host(){return i(this)}static get watchers(){return{_align:[{watchAlign:0}],_behavior:[{watchBehavior:0}],_hasCreateButton:[{watchHasCreateButton:0}],_label:[{watchLabel:0}],_on:[{watchOn:0}],_selected:[{watchSelected:0}],_tabs:[{watchTabs:0}]}}};n([$("ctaRef")],U.prototype,"focus",null),n([I("ctaRef")],U.prototype,"click",null),U.style={default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-meter meter { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-bar { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-optimum-value, .kol-meter meter::-webkit-meter-suboptimum-value, .kol-meter meter::-webkit-meter-even-less-good-value { background-color: CanvasText; } .kol-meter meter::-moz-meter-bar { background-color: CanvasText; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794998877659"); src: url("kolicons.eot?t=1794998877659#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794998877659") format("woff2"), url("kolicons.woff?t=1794998877659") format("woff"), url("kolicons.ttf?t=1794998877659") format("truetype"), url("kolicons.svg?t=1794998877659#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-button { background-color: transparent; display: inline-block; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); margin: 0; padding: 0; text-align: center; } .kol-button__interactive-element { border-style: none; display: block; border-width: medium; font-weight: inherit; font-style: inherit; text-align: inherit; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-tabs { display: var(--display); grid-template-columns: var(--grid-template-columns); grid-template-rows: var(--grid-template-rows); } .kol-tabs--align-right { --display: grid; --grid-template-columns: 1fr auto; --button-group-flex-direction: column; --button-group-order: 2; } .kol-tabs--align-left { --display: grid; --grid-template-columns: auto 1fr; --button-group-flex-direction: column; --button-group-order: 0; } .kol-tabs--align-bottom { --display: grid; --grid-template-rows: 1fr auto; --button-group-order: 2; } .kol-tabs__tabs-align-top { --display: grid; --grid-template-rows: auto 1fr; --button-group-order: 0; } .kol-tabs__button-group { display: flex; order: var(--button-group-order); flex-direction: var(--button-group-flex-direction); flex-wrap: wrap; } .kol-tabs__button-group .kol-button { display: block; } .kol-tabs__button-group .kol-button .kol-button__interactive-element { border-bottom-color: transparent; border-bottom-style: solid; } @media (forced-colors: active) { .kol-tabs__button-group .kol-button.selected { outline: 3px solid Highlight; outline-offset: -3px; } .kol-tabs__button-group .kol-button.selected:has(.kol-button__interactive-element:focus-visible) { outline-style: dashed; } } .kol-tabs__tablist { display: flex; flex-direction: var(--button-group-flex-direction); flex-wrap: wrap; } .kol-tabs__panel { height: 100%; } }'};export{U as kol_tabs}
|