@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{h as t,r as o,H as e,g as i}from"./index-Dulj0jro.js";import{a as n,_ as a}from"./tslib.es6-QNbPBOk5.js";import{v as l}from"./access-and-short-key-ijzCZfHm.js";import{B as r}from"./base-web-component-CC_gpyDb.js";import{C as s}from"./behavior-CFG1f4KQ.js";import{h,g as c,I as d}from"./input-container-DmtMTcjB.js";import{i as m,g as p,c as k,f as b,B as f,F as u}from"./api-DGiFM9p0.js";import"./common-BdSzSIXg.js";import{c as g}from"./clsx-COFh-Vc8.js";import{g as v}from"./block-bem-BGIVcYJu.js";import{a as _,d as y,v as w}from"./component-C79oAu7a.js";import{c as x,n as j,b as B,i as z}from"./props-from-config-ytxYrJUY.js";import{p as C}from"./placeholder-UxmBJ4Vl.js";import{r as D}from"./read-only-DytZ5HZJ.js";import{r as L}from"./required-BriHhuO4.js";import{r as T}from"./rows-I1jrTjzU.js";import{s as H}from"./spell-check-BWCnJG5v.js";import{s as O}from"./value-string-CxDz7dhD.js";import{c as K}from"./dev.utils-DDWOHUcg.js";import{d as I,a as A,c as M}from"./element-interaction-sGYdEpmv.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"./component-Clz6b6ho.js";import"./id-BI0ZuK17.js";import"./label-lang-segment-iVD9hoM3.js";import"./label-hints-CLMiVvfk.js";import"./i18n-ePBcLlCr.js";import"./i18n-4J6U3ZDc.js";import"./component-B16Fbp3W.js";import"./component-B05zRrM0.js";import"./disabled-BZXlWAgK.js";import"./label-with-expert-slot-BbZ9nx0l.js";import"./validators-CTjxOidB.js";import"./aria-labelledby-CLehu03h.js";import"./events-CRHxtwup.js";import"./behavior-CkPQGfgo.js";import"./bootstrap-tgQ2nQQI.js";import"./component-names-Dhbtt0mX.js";import"./item-8RKFpmbd.js";import"./controller-CZcQ57AP.js";import"./resolve-props-Bj6IaybL.js";import"./item-DHZGDrAn.js";import"./component-Bc2pdOk1.js";import"./component-BI8jDgBz.js";import"./Heading-C_CwXDMp.js";import"./element-focus-BIRmGg5W.js";const R=["vertical","none"],q=x("adjustHeight",!1,j),G=x("resize","vertical",(function(t){const o=B(t);if(z(o,R))return o;throw new Error(`Invalid resize option: ${o}`)})),V=o=>{const{class:e,msg:i,touched:a,readonly:l,disabled:r,required:s,ariaDescribedBy:h,hideLabel:c,label:d}=o,b=n(o,["class","msg","touched","readonly","disabled","required","ariaDescribedBy","hideLabel","label"]),f=Object.assign(Object.assign({class:g(v("kol-textarea")(Object.assign({disabled:Boolean(r),required:Boolean(s),touched:Boolean(a),readonly:Boolean(l)},m(i,a)?{[p(i)]:!0}:{})),e),required:s,disabled:r,readonly:l},k({ariaDescribedBy:h,hideLabel:c,label:d})),b);return t("textarea",Object.assign({},f))},P={required:[...b.required],optional:[...b.optional,_,q,h,C,D,L,G,T,y,H,O,w]},S=class extends f{constructor(t){super(),new.target===S&&o(this,t),this.id=K("textarea"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=M(),this.counter=new s(r.stateLess),this.needsImmediateCounterUpdate=!1,this.hasValue=!1,this.isWritingRows=!1,this.propsConfig=P,this._accessKey=void 0,this._adjustHeight=!1,this._ariaDetails=void 0,this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._infoPopover=void 0,this._maxLength=void 0,this._hasCounter=!1,this._maxLengthBehavior="hard",this._msg=void 0,this._name=void 0,this._on=void 0,this._placeholder=void 0,this._readOnly=!1,this._resize="vertical",this._required=!1,this._rows=void 0,this._shortKey=void 0,this._spellCheck=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this._variant=void 0,this.handleTextareaInput=t=>{this.ctaRef.el instanceof HTMLTextAreaElement&&(this._value=this.ctaRef.el.value,this.getRenderProp("adjustHeight")&&this.writeRows(this.measureTextareaRows(this.ctaRef.el)),this.handleInput(t))},this.handleTextareaChange=t=>{this.handleChange(t)},this.handleTextareaFocus=t=>{var o,e;this.handleFocus(t),this.counter.retriggerAria(null!==(e=null===(o=this._value)||void 0===o?void 0:o.length)&&void 0!==e?e:0)},this.handleTextareaKeyDown=t=>{var o,e;this.handleKeyDown(t),this.counter.handleKeyDown(t,null!==(e=null===(o=this.ctaRef.el)||void 0===o?void 0:o.value.length)&&void 0!==e?e:0)},this.initFormAssociation("textarea",this._name)}watchAccessKey(t){_.apply(t,(t=>this.setRenderProp("accessKey",t))),l(t,this._shortKey)}watchAdjustHeight(t){q.apply(t,(t=>this.setRenderProp("adjustHeight",t)))}watchAriaDetails(t){this.applyAriaDetails(t)}watchDisabled(t){this.applyDisabled(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchIcons(t){h.apply(t,(t=>this.setRenderProp("icons",t)))}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMaxLength(t){var o,e;this.counter.watchMaxLength(t),this.counter.updateImmediate(null!==(e=null===(o=this._value)||void 0===o?void 0:o.length)&&void 0!==e?e:0)}watchHasCounter(t){this.counter.watchHasCounter(t),this.needsImmediateCounterUpdate=!0}watchMaxLengthBehavior(t){this.counter.watchMaxLengthBehavior(t),this.needsImmediateCounterUpdate=!0}watchMsg(t){this.applyMsg(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchPlaceholder(t){C.apply(t,(t=>this.setRenderProp("placeholder",t)))}watchReadOnly(t){D.apply(t,(t=>this.setRenderProp("readOnly",t)))}watchResize(t){G.apply(t,(t=>this.setRenderProp("resize",t)))}watchRequired(t){L.apply(t,(t=>this.setRenderProp("required",t)))}watchRows(t){T.apply(t,(t=>{this.setRenderProp("rows",t),this.isWritingRows||(this.minRows=t)}))}watchShortKey(t){y.apply(t,(t=>this.setRenderProp("shortKey",t))),l(this._accessKey,t)}watchSpellCheck(t){H.apply(t,(t=>this.setRenderProp("spellCheck",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchValue(t){var o;this.applyValue(t),this.counter.update(null!==(o=null==t?void 0:t.length)&&void 0!==o?o:0)}watchVariant(t){w.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){var t;return Promise.resolve(null===(t=this.ctaRef.el)||void 0===t?void 0:t.value)}focus(t){return Promise.resolve()}async click(){return Promise.resolve()}componentWillLoad(){this.watchAriaDetails(this._ariaDetails),this._touched=!0===this._touched,this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccessKey(this._accessKey),this.watchAdjustHeight(this._adjustHeight),this.watchMsg(this._msg),this.watchDisabled(this._disabled),this.watchHideMsg(this._hideMsg),this.watchHideLabel(this._hideLabel),this.watchHint(this._hint),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchShortKey(this._shortKey),this.watchOn(this._on),this.watchTooltipAlign(this._tooltipAlign),this.watchVariant(this._variant),this.watchIcons(this._icons),this.watchHasCounter(this._hasCounter),this.watchMaxLengthBehavior(this._maxLengthBehavior),this.counter.watchMaxLength(this._maxLength),this.watchPlaceholder(this._placeholder),this.watchReadOnly(this._readOnly),this.watchRequired(this._required),this.watchResize(this._resize),this.watchRows(this._rows),this.watchSpellCheck(this._spellCheck),this.applyValue(this._value)}componentDidLoad(){var t,o;this.needsImmediateCounterUpdate=!1,(this.counter.hasCounter()||this.counter.hasSoftLimit())&&this.counter.updateImmediate(null!==(o=null===(t=this._value)||void 0===t?void 0:t.length)&&void 0!==o?o:0),setTimeout((()=>{!0===this._adjustHeight&&this.ctaRef.el?this.writeRows(this.measureTextareaRows(this.ctaRef.el)):this._rows||this.writeRows(1)}))}componentDidUpdate(){var t,o;this.needsImmediateCounterUpdate&&(this.needsImmediateCounterUpdate=!1,(this.counter.hasCounter()||this.counter.hasSoftLimit())&&this.counter.updateImmediate(null!==(o=null===(t=this._value)||void 0===t?void 0:t.length)&&void 0!==o?o:0))}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField(),this.counter.destroy()}writeRows(t){this.isWritingRows=!0,this._rows=t,this.isWritingRows=!1}measureTextareaRows(t){const{overflow:o,padding:e}=t.style;t.style.overflow="hidden",t.style.padding="0";const i=t.rows,n=t.clientHeight/i;t.rows=1;const a=Math.round(t.scrollHeight/n);t.rows=i,t.style.overflow=o,t.style.padding=e;const l=this.minRows;return l&&l>a?l:a}getTextareaProps(){const t=this.id,o=this.getRenderProp("shortKey"),e=this.counter.getMaxLengthAttribute(),i=this.counter.getCharacterLimitHintId(t),{ariaDescribedBy:n,hasError:a}=this.getAria();return Object.assign(Object.assign({id:t,hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),value:this.getRenderProp("value"),accessKey:this.getRenderProp("accessKey")||void 0,disabled:this.getRenderProp("disabled"),name:this.getRenderProp("name")||void 0,rows:this.getRenderProp("rows"),readonly:this.getRenderProp("readOnly"),required:this.getRenderProp("required"),placeholder:this.getRenderProp("placeholder"),spellcheck:this.getRenderProp("spellCheck"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg"),ref:this.ctaRef,style:{resize:this.getRenderProp("resize")},onBlur:this.handleBlur,onChange:this.handleTextareaChange,onClick:this.handleClick,onFocus:this.handleTextareaFocus,onInput:this.handleTextareaInput,onKeyDown:this.handleTextareaKeyDown,ariaDescribedBy:i?[...n,i]:n,"aria-invalid":a?"true":void 0},void 0!==e?{maxLength:e}:{}),o?{"aria-keyshortcuts":o}:{})}applyValue(t){O.apply(t,(t=>this.setRenderProp("value",t))),this.hasValue=Boolean(this.getRenderProp("value")),this.formAssociation.setFormAssociatedValue(this.getRenderProp("value"))}render(){const o=this.getRenderProp("disabled"),{startAdornment:i,endAdornment:n}=c({icons:this.getRenderProp("icons")});return t(e,{key:"f213a17cb37e5957ab505f30bb9a16f4d540277a"},t(u,Object.assign({key:"f30d7ffa05b8f88949b05967af1270a26de84dff"},this.getFormFieldProps({class:g("kol-form-field-textarea",{"kol-form-field--has-value":this.hasValue,"kol-form-field--has-counter":this.counter.hasSoftLimit()||this.counter.hasCounter()}),accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,variant:this.getRenderProp("variant"),required:this.getRenderProp("required"),readOnly:this.getRenderProp("readOnly"),maxLength:this.counter.getRenderProp("maxLength"),counter:this.counter.getCounterProps()})),t(d,{key:"0d9be56a253943f934a0e0c00f4c879ce50459e5",disabled:o,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:n},t(V,Object.assign({key:"2151d1aa605a6fd3c3899b106270fc16c432d0dc"},this.getTextareaProps())))))}get host(){return i(this)}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_adjustHeight:[{watchAdjustHeight:0}],_ariaDetails:[{watchAriaDetails:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_maxLength:[{watchMaxLength:0}],_hasCounter:[{watchHasCounter:0}],_maxLengthBehavior:[{watchMaxLengthBehavior:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_placeholder:[{watchPlaceholder:0}],_readOnly:[{watchReadOnly:0}],_resize:[{watchResize:0}],_required:[{watchRequired:0}],_rows:[{watchRows:0}],_shortKey:[{watchShortKey:0}],_spellCheck:[{watchSpellCheck:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}};a([I("ctaRef")],S.prototype,"focus",null),a([A("ctaRef")],S.prototype,"click",null),S.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-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-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-textarea { width: 100%; } }'};export{S as kol_textarea}
|
|
4
|
+
import{h as t,r as e,H as o,g as i}from"./index-Bbr6Os1b.js";import{a,_ as n}from"./tslib.es6-QNbPBOk5.js";import{v as l}from"./access-and-short-key-ijzCZfHm.js";import{B as r}from"./base-web-component-CYPdDdRn.js";import{C as s}from"./behavior-BJR8CKBx.js";import{h,g as c,I as d}from"./input-container-zXl_6y52.js";import{i as m,g as p,c as k,f as b,B as f,F as u}from"./api-D0RNr-zh.js";import"./common-BdSzSIXg.js";import{c as g,n as v,b as y,i as _,e as w,g as x}from"./props-from-config-BOUcpF7e.js";import{a as j,d as B,v as z}from"./component-DEwcJKDA.js";import{p as C}from"./placeholder-DlHbiVjz.js";import{r as D}from"./read-only-DSBWEPED.js";import{r as T}from"./required-xw5BBPvV.js";import{r as L}from"./rows-DRV8YlQv.js";import{s as H}from"./spell-check-hy6xFhmT.js";import{s as R}from"./value-string-Dy8zJxlP.js";import{c as q}from"./dev.utils-B0t4rcBV.js";import{d as K,a as O,c as A}from"./element-interaction-sGYdEpmv.js";import"./behavior-B6y5Gofe.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./component-B8UMedaK.js";import"./bem-registry-SKACeCny.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"./i18n-BLkzMf6D.js";import"./i18n-BRgvVqCf.js";import"./component-CNgECeRi.js";import"./disabled-B2o4Ctgy.js";import"./label-with-expert-slot-D1tpX9DI.js";import"./validators-BgDmq-Qt.js";import"./aria-labelledby-DqJY_4G-.js";import"./events-CRHxtwup.js";import"./item-hsQoejqZ.js";import"./controller-CZcQ57AP.js";import"./component-names-Dhbtt0mX.js";import"./resolve-props-DAVb5BM3.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"./element-focus-BIRmGg5W.js";const P=["vertical","none"],V=g("adjustHeight",!1,v),I=g("resize","vertical",(function(t){const e=y(t);if(_(e,P))return e;throw new Error(`Invalid resize option: ${e}`)})),S=e=>{const{class:o,msg:i,touched:n,readonly:l,disabled:r,required:s,ariaDescribedBy:h,hideLabel:c,label:d}=e,b=a(e,["class","msg","touched","readonly","disabled","required","ariaDescribedBy","hideLabel","label"]),f=Object.assign(Object.assign({class:w(x("kol-textarea")(Object.assign({disabled:Boolean(r),required:Boolean(s),touched:Boolean(n),readonly:Boolean(l)},m(i,n)?{[p(i)]:!0}:{})),o),required:s,disabled:r,readonly:l},k({ariaDescribedBy:h,hideLabel:c,label:d})),b);return t("textarea",Object.assign({},f))},M={required:[...b.required],optional:[...b.optional,j,V,h,C,D,T,I,L,B,H,R,z]},G=class extends f{constructor(t){super(),new.target===G&&e(this,t),this.id=q("textarea"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=A(),this.counter=new s(r.stateLess),this.needsImmediateCounterUpdate=!1,this.hasValue=!1,this.isWritingRows=!1,this.propsConfig=M,this._accessKey=void 0,this._adjustHeight=!1,this._ariaDetails=void 0,this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._infoPopover=void 0,this._maxLength=void 0,this._hasCounter=!1,this._maxLengthBehavior="hard",this._msg=void 0,this._name=void 0,this._on=void 0,this._placeholder=void 0,this._readOnly=!1,this._resize="vertical",this._required=!1,this._rows=void 0,this._shortKey=void 0,this._spellCheck=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this._variant=void 0,this.handleTextareaInput=t=>{this.ctaRef.el instanceof HTMLTextAreaElement&&(this._value=this.ctaRef.el.value,this.getRenderProp("adjustHeight")&&this.writeRows(this.measureTextareaRows(this.ctaRef.el)),this.handleInput(t))},this.handleTextareaChange=t=>{this.handleChange(t)},this.handleTextareaFocus=t=>{var e,o;this.handleFocus(t),this.counter.retriggerAria(null!==(o=null===(e=this._value)||void 0===e?void 0:e.length)&&void 0!==o?o:0)},this.handleTextareaKeyDown=t=>{var e,o;this.handleKeyDown(t),this.counter.handleKeyDown(t,null!==(o=null===(e=this.ctaRef.el)||void 0===e?void 0:e.value.length)&&void 0!==o?o:0)},this.initFormAssociation("textarea",this._name)}watchAccessKey(t){j.apply(t,(t=>this.setRenderProp("accessKey",t))),l(t,this._shortKey)}watchAdjustHeight(t){V.apply(t,(t=>this.setRenderProp("adjustHeight",t)))}watchAriaDetails(t){this.applyAriaDetails(t)}watchDisabled(t){this.applyDisabled(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchIcons(t){h.apply(t,(t=>this.setRenderProp("icons",t)))}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMaxLength(t){var e,o;this.counter.watchMaxLength(t),this.counter.updateImmediate(null!==(o=null===(e=this._value)||void 0===e?void 0:e.length)&&void 0!==o?o:0)}watchHasCounter(t){this.counter.watchHasCounter(t),this.needsImmediateCounterUpdate=!0}watchMaxLengthBehavior(t){this.counter.watchMaxLengthBehavior(t),this.needsImmediateCounterUpdate=!0}watchMsg(t){this.applyMsg(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchPlaceholder(t){C.apply(t,(t=>this.setRenderProp("placeholder",t)))}watchReadOnly(t){D.apply(t,(t=>this.setRenderProp("readOnly",t)))}watchResize(t){I.apply(t,(t=>this.setRenderProp("resize",t)))}watchRequired(t){T.apply(t,(t=>this.setRenderProp("required",t)))}watchRows(t){L.apply(t,(t=>{this.setRenderProp("rows",t),this.isWritingRows||(this.minRows=t)}))}watchShortKey(t){B.apply(t,(t=>this.setRenderProp("shortKey",t))),l(this._accessKey,t)}watchSpellCheck(t){H.apply(t,(t=>this.setRenderProp("spellCheck",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchValue(t){var e;this.applyValue(t),this.counter.update(null!==(e=null==t?void 0:t.length)&&void 0!==e?e:0)}watchVariant(t){z.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){var t;return Promise.resolve(null===(t=this.ctaRef.el)||void 0===t?void 0:t.value)}focus(t){return Promise.resolve()}async click(){return Promise.resolve()}componentWillLoad(){this.watchAriaDetails(this._ariaDetails),this._touched=!0===this._touched,this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccessKey(this._accessKey),this.watchAdjustHeight(this._adjustHeight),this.watchMsg(this._msg),this.watchDisabled(this._disabled),this.watchHideMsg(this._hideMsg),this.watchHideLabel(this._hideLabel),this.watchHint(this._hint),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchShortKey(this._shortKey),this.watchOn(this._on),this.watchTooltipAlign(this._tooltipAlign),this.watchVariant(this._variant),this.watchIcons(this._icons),this.watchHasCounter(this._hasCounter),this.watchMaxLengthBehavior(this._maxLengthBehavior),this.counter.watchMaxLength(this._maxLength),this.watchPlaceholder(this._placeholder),this.watchReadOnly(this._readOnly),this.watchRequired(this._required),this.watchResize(this._resize),this.watchRows(this._rows),this.watchSpellCheck(this._spellCheck),this.applyValue(this._value)}componentDidLoad(){var t,e;this.needsImmediateCounterUpdate=!1,(this.counter.hasCounter()||this.counter.hasSoftLimit())&&this.counter.updateImmediate(null!==(e=null===(t=this._value)||void 0===t?void 0:t.length)&&void 0!==e?e:0),setTimeout((()=>{!0===this._adjustHeight&&this.ctaRef.el?this.writeRows(this.measureTextareaRows(this.ctaRef.el)):this._rows||this.writeRows(1)}))}componentDidUpdate(){var t,e;this.needsImmediateCounterUpdate&&(this.needsImmediateCounterUpdate=!1,(this.counter.hasCounter()||this.counter.hasSoftLimit())&&this.counter.updateImmediate(null!==(e=null===(t=this._value)||void 0===t?void 0:t.length)&&void 0!==e?e:0))}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField(),this.counter.destroy()}writeRows(t){this.isWritingRows=!0,this._rows=t,this.isWritingRows=!1}measureTextareaRows(t){const{overflow:e,padding:o}=t.style;t.style.overflow="hidden",t.style.padding="0";const i=t.rows,a=t.clientHeight/i;t.rows=1;const n=Math.round(t.scrollHeight/a);t.rows=i,t.style.overflow=e,t.style.padding=o;const l=this.minRows;return l&&l>n?l:n}getTextareaProps(){const t=this.id,e=this.getRenderProp("shortKey"),o=this.counter.getMaxLengthAttribute(),i=this.counter.getCharacterLimitHintId(t),{ariaDescribedBy:a,hasError:n}=this.getAria();return Object.assign(Object.assign({id:t,hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),value:this.getRenderProp("value"),accessKey:this.getRenderProp("accessKey")||void 0,disabled:this.getRenderProp("disabled"),name:this.getRenderProp("name")||void 0,rows:this.getRenderProp("rows"),readonly:this.getRenderProp("readOnly"),required:this.getRenderProp("required"),placeholder:this.getRenderProp("placeholder"),spellcheck:this.getRenderProp("spellCheck"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg"),ref:this.ctaRef,style:{resize:this.getRenderProp("resize")},onBlur:this.handleBlur,onChange:this.handleTextareaChange,onClick:this.handleClick,onFocus:this.handleTextareaFocus,onInput:this.handleTextareaInput,onKeyDown:this.handleTextareaKeyDown,ariaDescribedBy:i?[...a,i]:a,"aria-invalid":n?"true":void 0},void 0!==o?{maxLength:o}:{}),e?{"aria-keyshortcuts":e}:{})}applyValue(t){R.apply(t,(t=>this.setRenderProp("value",t))),this.hasValue=Boolean(this.getRenderProp("value")),this.formAssociation.setFormAssociatedValue(this.getRenderProp("value"))}render(){const e=this.getRenderProp("disabled"),{startAdornment:i,endAdornment:a}=c({icons:this.getRenderProp("icons")});return t(o,{key:"f213a17cb37e5957ab505f30bb9a16f4d540277a"},t(u,Object.assign({key:"f30d7ffa05b8f88949b05967af1270a26de84dff"},this.getFormFieldProps({class:w("kol-form-field-textarea",{"kol-form-field--has-value":this.hasValue,"kol-form-field--has-counter":this.counter.hasSoftLimit()||this.counter.hasCounter()}),accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,variant:this.getRenderProp("variant"),required:this.getRenderProp("required"),readOnly:this.getRenderProp("readOnly"),maxLength:this.counter.getRenderProp("maxLength"),counter:this.counter.getCounterProps()})),t(d,{key:"0d9be56a253943f934a0e0c00f4c879ce50459e5",disabled:e,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:a},t(S,Object.assign({key:"2151d1aa605a6fd3c3899b106270fc16c432d0dc"},this.getTextareaProps())))))}get host(){return i(this)}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_adjustHeight:[{watchAdjustHeight:0}],_ariaDetails:[{watchAriaDetails:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_maxLength:[{watchMaxLength:0}],_hasCounter:[{watchHasCounter:0}],_maxLengthBehavior:[{watchMaxLengthBehavior:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_placeholder:[{watchPlaceholder:0}],_readOnly:[{watchReadOnly:0}],_resize:[{watchResize:0}],_required:[{watchRequired:0}],_rows:[{watchRows:0}],_shortKey:[{watchShortKey:0}],_spellCheck:[{watchSpellCheck:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}};n([K("ctaRef")],G.prototype,"focus",null),n([O("ctaRef")],G.prototype,"click",null),G.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-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-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-textarea { width: 100%; } }'};export{G as kol_textarea}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as o,r as t,H as e}from"./index-Dulj0jro.js";import{t as i}from"./i18n-ePBcLlCr.js";import{c as n,n as l}from"./dev.utils-DDWOHUcg.js";import{f as a}from"./component-names-Dhbtt0mX.js";import{a as r}from"./tslib.es6-QNbPBOk5.js";import{A as s}from"./component-BI8jDgBz.js";import{c}from"./clsx-COFh-Vc8.js";import{L as d}from"./common-BdSzSIXg.js";import"./i18n-4J6U3ZDc.js";import"./Heading-C_CwXDMp.js";import"./props-from-config-ytxYrJUY.js";import"./bem-registry-DQUGxdIS.js";import"./component-B05zRrM0.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";const k=t=>{var{status:e,toast:i,onClose:a}=t,d=r(t,["status","toast","onClose"]);const{type:k,label:b,description:h,variant:m}=i;return o("div",{class:c("kol-toast-item",`kol-toast-item--${e}`)},o(s,{alert:!0,class:"kol-toast-item__alert",closerAriaDescriptionId:l(),handleCloserClick:a,hasCloser:!0,headingId:n("alert-heading"),label:b,level:0,refCloserButton:()=>{},refCloserTooltip:()=>{},type:k,variant:m||"card"},o("div",Object.assign({},d),h)))},b=class{constructor(o){new.target===b&&t(this,o),this.state={_toastStates:[]},this.translateToastCloseAll=i("kol-toast-close-all"),this.knownRenderFunctions=new Set}enqueue(o){const t={toast:Object.assign(Object.assign({},o),{variant:"card"}),status:"adding",id:n("toast")};return this.state=Object.assign(Object.assign({},this.state),{_toastStates:[t,...this.state._toastStates]}),setTimeout((()=>{this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.map((o=>o.id===t.id&&"removing"!==o.status?Object.assign(Object.assign({},o),{status:"settled"}):o))})}),300),Promise.resolve((()=>{this.handleClose(t)}))}closeAll(o=!1){if(o)this.state=Object.assign(Object.assign({},this.state),{_toastStates:[]}),this.knownRenderFunctions.clear();else{const o=[...this.state._toastStates];this.state=Object.assign(Object.assign({},this.state),{_toastStates:o.map((o=>Object.assign(Object.assign({},o),{status:"removing"})))}),setTimeout((()=>{this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.filter((t=>o.every((o=>o.id!==t.id))))}),o.forEach((o=>{var t,e;"function"==typeof o.toast.render&&this.knownRenderFunctions.delete(o.toast.render),null===(e=(t=o.toast).onClose)||void 0===e||e.call(t)}))}),300)}return Promise.resolve()}componentWillLoad(){d.warn("kol-toast-container is deprecated and will be removed in the next major version. Use kol-alert for inline notifications or kol-dialog for interactive messages instead. See https://github.com/public-ui/kolibri/issues/8372")}handleClose(o){const t=this.state._toastStates.find((t=>t.id===o.id));t&&"removing"!==t.status&&(this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.map((t=>t.id===o.id?Object.assign(Object.assign({},t),{status:"removing"}):t))}),setTimeout((()=>{var t,e;this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.filter((t=>t.id!==o.id))}),"function"==typeof o.toast.render&&this.knownRenderFunctions.delete(o.toast.render),null===(e=(t=o.toast).onClose)||void 0===e||e.call(t)}),300))}handleToastRef(o,t){t&&"function"==typeof o.toast.render&&!this.knownRenderFunctions.has(o.toast.render)&&(this.knownRenderFunctions.add(o.toast.render),o.toast.render(t,{close:()=>this.handleClose(o)}))}render(){return o(e,{key:"7c3623651b8bb10e3b8b7670a53605890d04b9be",class:"kol-toast-container"},this.state._toastStates.length>1&&o(a,{key:"3bfb7ef93ead485aa7a2588ab92b4a49371fe80b",_label:this.translateToastCloseAll,class:"kol-toast-container__button-close-all",_on:{onClick:()=>{this.closeAll()}}}),this.state._toastStates.map((t=>o(k,{key:t.id,onClose:()=>this.handleClose(t),ref:o=>this.handleToastRef(t,o),toast:t.toast,status:t.status}))))}};b.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-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; } :host { display: flex; position: fixed; z-index: 200; max-width: 90vw; flex-direction: column; } .kol-toast-container__close-all { align-self: flex-end; } }'};export{b as kol_toast_container}
|
|
4
|
+
import{h as o,r as e,H as t}from"./index-Bbr6Os1b.js";import{t as i}from"./i18n-BLkzMf6D.js";import{c as n,n as l}from"./dev.utils-B0t4rcBV.js";import{f as a}from"./component-names-Dhbtt0mX.js";import{a as r}from"./tslib.es6-QNbPBOk5.js";import{A as s}from"./component-ZdHnXLLI.js";import{e as c}from"./props-from-config-BOUcpF7e.js";import{L as d}from"./common-BdSzSIXg.js";import"./i18n-BRgvVqCf.js";import"./Heading-BubZbykM.js";import"./bem-registry-SKACeCny.js";import"./component-CNgECeRi.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";const k=e=>{var{status:t,toast:i,onClose:a}=e,d=r(e,["status","toast","onClose"]);const{type:k,label:b,description:m,variant:h}=i;return o("div",{class:c("kol-toast-item",`kol-toast-item--${t}`)},o(s,{alert:!0,class:"kol-toast-item__alert",closerAriaDescriptionId:l(),handleCloserClick:a,hasCloser:!0,headingId:n("alert-heading"),label:b,level:0,refCloserButton:()=>{},refCloserTooltip:()=>{},type:k,variant:h||"card"},o("div",Object.assign({},d),m)))},b=class{constructor(o){new.target===b&&e(this,o),this.state={_toastStates:[]},this.translateToastCloseAll=i("kol-toast-close-all"),this.knownRenderFunctions=new Set}enqueue(o){const e={toast:Object.assign(Object.assign({},o),{variant:"card"}),status:"adding",id:n("toast")};return this.state=Object.assign(Object.assign({},this.state),{_toastStates:[e,...this.state._toastStates]}),setTimeout((()=>{this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.map((o=>o.id===e.id&&"removing"!==o.status?Object.assign(Object.assign({},o),{status:"settled"}):o))})}),300),Promise.resolve((()=>{this.handleClose(e)}))}closeAll(o=!1){if(o)this.state=Object.assign(Object.assign({},this.state),{_toastStates:[]}),this.knownRenderFunctions.clear();else{const o=[...this.state._toastStates];this.state=Object.assign(Object.assign({},this.state),{_toastStates:o.map((o=>Object.assign(Object.assign({},o),{status:"removing"})))}),setTimeout((()=>{this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.filter((e=>o.every((o=>o.id!==e.id))))}),o.forEach((o=>{var e,t;"function"==typeof o.toast.render&&this.knownRenderFunctions.delete(o.toast.render),null===(t=(e=o.toast).onClose)||void 0===t||t.call(e)}))}),300)}return Promise.resolve()}componentWillLoad(){d.warn("kol-toast-container is deprecated and will be removed in the next major version. Use kol-alert for inline notifications or kol-dialog for interactive messages instead. See https://github.com/public-ui/kolibri/issues/8372")}handleClose(o){const e=this.state._toastStates.find((e=>e.id===o.id));e&&"removing"!==e.status&&(this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.map((e=>e.id===o.id?Object.assign(Object.assign({},e),{status:"removing"}):e))}),setTimeout((()=>{var e,t;this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.filter((e=>e.id!==o.id))}),"function"==typeof o.toast.render&&this.knownRenderFunctions.delete(o.toast.render),null===(t=(e=o.toast).onClose)||void 0===t||t.call(e)}),300))}handleToastRef(o,e){e&&"function"==typeof o.toast.render&&!this.knownRenderFunctions.has(o.toast.render)&&(this.knownRenderFunctions.add(o.toast.render),o.toast.render(e,{close:()=>this.handleClose(o)}))}render(){return o(t,{key:"7c3623651b8bb10e3b8b7670a53605890d04b9be",class:"kol-toast-container"},this.state._toastStates.length>1&&o(a,{key:"3bfb7ef93ead485aa7a2588ab92b4a49371fe80b",_label:this.translateToastCloseAll,class:"kol-toast-container__button-close-all",_on:{onClick:()=>{this.closeAll()}}}),this.state._toastStates.map((e=>o(k,{key:e.id,onClose:()=>this.handleClose(e),ref:o=>this.handleToastRef(e,o),toast:e.toast,status:e.status}))))}};b.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-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; } :host { display: flex; position: fixed; z-index: 200; max-width: 90vw; flex-direction: column; } .kol-toast-container__close-all { align-self: flex-end; } }'};export{b as kol_toast_container}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as o,r as t,H as e,g as i}from"./index-Dulj0jro.js";import{B as n}from"./base-web-component-CC_gpyDb.js";import{X as l,s as r}from"./common-BdSzSIXg.js";import{c as a,e as s}from"./props-from-config-ytxYrJUY.js";import{l as c}from"./label-B-Dr7VaP.js";import{o as d}from"./orientation-ChJ0S24M.js";import{b}from"./bem-registry-DQUGxdIS.js";import{B as h}from"./component-B05zRrM0.js";import{B as k}from"./component-B16Fbp3W.js";import{L as m}from"./component-DAQzDMY8.js";import{p as f,a as p}from"./controller-CZcQ57AP.js";import{n as u}from"./dev.utils-DDWOHUcg.js";import{c as g,b as y,s as x}from"./element-interaction-sGYdEpmv.js";import{d as _,K as v}from"./events-CRHxtwup.js";import{r as w}from"./resolve-props-Bj6IaybL.js";import{r as j}from"./resolve-props-02J6OCRf.js";import{T as z}from"./behavior-Bb7JYoUn.js";import{K as B}from"./keyboard-DNd73LVa.js";import{d as C,s as I}from"./element-focus-BIRmGg5W.js";import{o as D}from"./ariaCurrentService-YoLNpD5S.js";import"./validators-CTjxOidB.js";import"./label-hints-CLMiVvfk.js";import"./tslib.es6-QNbPBOk5.js";import"./clsx-COFh-Vc8.js";import"./block-bem-BGIVcYJu.js";import"./component-C79oAu7a.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"./i18n-ePBcLlCr.js";import"./i18n-4J6U3ZDc.js";import"./href-CxokGOJ2.js";import"./link-target-D7lYILOV.js";import"./component-names-Dhbtt0mX.js";import"./access-and-short-key-ijzCZfHm.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./label-lang-segment-iVD9hoM3.js";const T=a("items",[],(o=>s(o)),(o=>o.every((o=>"object"==typeof o&&null!==o)))),O={required:[c,T],optional:[d]},L=b.forBlock("kol-toolbar")("item"),G=({class:t,currentIndex:e,itemRecords:i,label:n,location:l,orientation:r})=>o(h,{block:"kol-toolbar",class:t,modifiers:{"orientation-horizontal":"horizontal"===r,"orientation-vertical":"vertical"===r},role:"toolbar","aria-label":n},i.map(((t,i)=>((t,e,i,n)=>{const l=e!==i||t.disabled?-1:0;return o("div",{class:L,key:e,ref:t.refWrapper},"link"===t.type?o(m,Object.assign({},t.getFcProps(l,n))):"button"===t.type?o(k,Object.assign({},t.getFcProps(l))):o("hr",null))})(t,i,e,l)))),F=[B.ArrowUp,B.ArrowDown,B.ArrowRight,B.ArrowLeft],S=class extends n{constructor(o){super(...arguments),new.target===S&&t(this,o),this.currentIndex=0,this.itemRecords=[],this.location="",this.propsConfig=O,this._orientation=void 0}watchLabel(o){c.apply(o,(o=>this.setRenderProp("label",o)),this.isRequired("label"))}watchItems(o){T.apply(o,(o=>{this.setRenderProp("items",o),this.itemRecords.forEach((o=>o.destroy())),this.itemRecords=o.map((o=>((o,t)=>"link"===o.type?((o,t)=>{var e,i,a;const s=new z(n.stateLess),c=g(),d=u();let b;const h=o,k=j(Object.assign(Object.assign({},h),{_inline:null!==(e=h._inline)&&void 0!==e&&e,_variant:null!==(a=null!==(i=h._variant)&&void 0!==i?i:l("buttonVariantDefault",t()))&&void 0!==a?a:"normal"}));s.componentWillLoad({label:k.label.length>0?k.label:k.href,align:k.tooltipAlign});const m=o=>{s.hideTooltip(),k.disabled?o.preventDefault():("function"==typeof k.on.onClick&&(r(o,c.el),k.on.onClick(o,k.href)),b&&_(b,v.click,k.href))};return{type:"link",disabled:k.disabled,getElement:()=>c.el,getFcProps:(t,e)=>Object.assign(Object.assign({},k),{ariaCurrent:""!==e&&e===k.href?k.ariaCurrentValue:"",ariaDescriptionId:d,expertSlot:""===o._label,handleAnchorClick:m,refAnchor:c,refTooltip:s.setTooltipElementRef,tabIndex:"number"==typeof o._tabIndex?k.tabIndex:t}),refWrapper:o=>{b=o},syncListeners:()=>{c.el&&s.syncListeners(void 0,c.el,!0)},destroy:()=>s.destroy()}})(o,t):"button"===o.type?((o,t)=>{const e=new z(n.stateLess),i=g(),l=u();let a;const s=w(o,t()),c=o._value;e.componentWillLoad({label:s.label,align:s.tooltipAlign});const d=(o,t)=>{a&&_(a,o,t)},b=o=>{o.stopPropagation(),e.hideTooltip(),"submit"===s.type?f({form:a}):"reset"===s.type?p({form:a}):"function"==typeof s.on.onClick&&(r(o,i.el),s.on.onClick(o,c)),d(v.click,c)},h=o=>{var t,e;null===(e=(t=s.on).onMouseDown)||void 0===e||e.call(t,o),d(v.mousedown)},k=o=>{var t,e;null===(e=(t=s.on).onFocus)||void 0===e||e.call(t,o),d(v.focus)},m=o=>{var t,e;null===(e=(t=s.on).onBlur)||void 0===e||e.call(t,o),d(v.blur)};return{type:"button",disabled:s.disabled,getElement:()=>i.el,getFcProps:t=>Object.assign(Object.assign({},s),{ariaDescriptionId:l,handleBlur:m,handleClick:b,handleFocus:k,handleMouseDown:h,refButton:i,refTooltip:e.setTooltipElementRef,tabIndex:"number"==typeof o._tabIndex?s.tabIndex:t}),refWrapper:o=>{a=o},syncListeners:()=>{i.el&&e.syncListeners(void 0,i.el,!0)},destroy:()=>e.destroy()}})(o,t):(()=>{const o=g();return{type:"hr",disabled:!0,getElement:()=>o.el,refWrapper:()=>{},syncListeners:()=>{},destroy:()=>{}}})())(o,(()=>this.host)))),this.setFirstEnabledItemIndex()}))}watchOrientation(o){d.apply(o,(o=>this.setRenderProp("orientation",o)))}async focus(o){const t=this.getCurrentItemElement();if(t)return C(this.host,(()=>I(t,o)))}async click(){const o=this.getCurrentItemElement();if(o)return y(this.host,(async()=>x(o)))}componentWillLoad(){this.watchLabel(this._label),this.watchItems(this._items),this.watchOrientation(this._orientation),this.unsubscribeOnLocationChange=D((o=>{this.location=o}))}componentDidRender(){this.itemRecords.forEach((o=>o.syncListeners()))}disconnectedCallback(){this.unsubscribeOnLocationChange&&(this.unsubscribeOnLocationChange(),this.unsubscribeOnLocationChange=void 0),this.itemRecords.forEach((o=>o.destroy()))}handleKeyDown(o){var t;const e=o.code;if(!F.includes(e))return;if(o.preventDefault(),0===this.itemRecords.length)return;const i=this.findNextEnabledItemIndex(this.currentIndex,e===B.ArrowUp||e===B.ArrowLeft?-1:1);void 0!==i&&i!==this.currentIndex&&(this.currentIndex=i,null===(t=this.itemRecords[i].getElement())||void 0===t||t.focus())}handleFocusout(o){o.target===this.host&&this.setFirstEnabledItemIndex()}getCurrentItemElement(){const o=this.itemRecords[this.currentIndex];return o&&!o.disabled?o.getElement():void 0}setFirstEnabledItemIndex(){this.currentIndex=this.itemRecords.findIndex((o=>!o.disabled))}findNextEnabledItemIndex(o,t){const e=this.itemRecords.length;for(let i=1;i<=e;i++){const n=((o+t*i)%e+e)%e;if(!this.itemRecords[n].disabled)return n}}render(){return o(e,{key:"10c807156e0a9f91b26ffb26ac01768029106dab"},o(G,{key:"7ebbb8a2e88664afddf0c66e046003b21ba0e3d5",currentIndex:this.currentIndex,itemRecords:this.itemRecords,label:this.getRenderProp("label"),location:this.location,orientation:this.getRenderProp("orientation")}))}get host(){return i(this)}static get watchers(){return{_label:[{watchLabel:0}],_items:[{watchItems:0}],_orientation:[{watchOrientation:0}]}}};S.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; } } @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; } :host { display: inline-block; } .kol-link { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-link__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-link__interactive-element::before { content: ""; } .kol-link__text { flex: 1 0 100%; } .kol-link { } .kol-link__tooltip { height: 0; } .kol-link--external-link > .kolicon-link-external::before { content: none; } .kol-link--external-link .kol-link__interactive-element > .kolicon-link-external::before { content: none; } .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-toolbar { display: flex; flex-wrap: wrap; align-items: stretch; } .kol-toolbar--orientation-horizontal .kol-toolbar__item hr { height: 100%; } .kol-toolbar--orientation-vertical { flex-direction: column; align-items: stretch; } .kol-toolbar--orientation-vertical .kol-span { align-items: flex-start; } .kol-toolbar__item hr { margin: 0; } .kol-toolbar:focus-within { outline: 1px solid; outline-offset: 2px; } }'};export{S as kol_toolbar}
|
|
4
|
+
import{h as o,r as e,H as t,g as i}from"./index-Bbr6Os1b.js";import{B as n}from"./base-web-component-CYPdDdRn.js";import{X as l,s as r}from"./common-BdSzSIXg.js";import{c as a,f as s,B as c}from"./props-from-config-BOUcpF7e.js";import{l as d}from"./label-BQVd3bkc.js";import{o as b}from"./orientation-DlsgaY1v.js";import{b as k}from"./bem-registry-SKACeCny.js";import{B as m}from"./component-CNgECeRi.js";import{L as h}from"./component-CiJGQTU0.js";import{p as f,a as p}from"./controller-CZcQ57AP.js";import{n as u}from"./dev.utils-B0t4rcBV.js";import{c as g,b as y,s as x}from"./element-interaction-sGYdEpmv.js";import{d as v,K as _}from"./events-CRHxtwup.js";import{r as w}from"./resolve-props-DAVb5BM3.js";import{r as j}from"./resolve-props-CL8wxjtP.js";import{T as C}from"./behavior-B6y5Gofe.js";import{K as B}from"./keyboard-DNd73LVa.js";import{d as z,s as T}from"./element-focus-BIRmGg5W.js";import{o as D}from"./ariaCurrentService-YoLNpD5S.js";import"./validators-BgDmq-Qt.js";import"./label-hints-CZGo9ZD5.js";import"./tslib.es6-QNbPBOk5.js";import"./component-DEwcJKDA.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"./i18n-BLkzMf6D.js";import"./i18n-BRgvVqCf.js";import"./href-CfNF4pHX.js";import"./link-target-BWPSEd9a.js";import"./component-names-Dhbtt0mX.js";import"./access-and-short-key-ijzCZfHm.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./label-lang-segment-C5LYGOHt.js";const I=a("items",[],(o=>s(o)),(o=>o.every((o=>"object"==typeof o&&null!==o)))),O={required:[d,I],optional:[b]},G=k.forBlock("kol-toolbar")("item"),L=({class:e,currentIndex:t,itemRecords:i,label:n,location:l,orientation:r})=>o(c,{block:"kol-toolbar",class:e,modifiers:{"orientation-horizontal":"horizontal"===r,"orientation-vertical":"vertical"===r},role:"toolbar","aria-label":n},i.map(((e,i)=>((e,t,i,n)=>{const l=t!==i||e.disabled?-1:0;return o("div",{class:G,key:t,ref:e.refWrapper},"link"===e.type?o(h,Object.assign({},e.getFcProps(l,n))):"button"===e.type?o(m,Object.assign({},e.getFcProps(l))):o("hr",null))})(e,i,t,l)))),F=[B.ArrowUp,B.ArrowDown,B.ArrowRight,B.ArrowLeft],E=class extends n{constructor(o){super(...arguments),new.target===E&&e(this,o),this.currentIndex=0,this.itemRecords=[],this.location="",this.propsConfig=O,this._orientation=void 0}watchLabel(o){d.apply(o,(o=>this.setRenderProp("label",o)),this.isRequired("label"))}watchItems(o){I.apply(o,(o=>{this.setRenderProp("items",o),this.itemRecords.forEach((o=>o.destroy())),this.itemRecords=o.map((o=>((o,e)=>"link"===o.type?((o,e)=>{var t,i,a;const s=new C(n.stateLess),c=g(),d=u();let b;const k=o,m=j(Object.assign(Object.assign({},k),{_inline:null!==(t=k._inline)&&void 0!==t&&t,_variant:null!==(a=null!==(i=k._variant)&&void 0!==i?i:l("buttonVariantDefault",e()))&&void 0!==a?a:"normal"}));s.componentWillLoad({label:m.label.length>0?m.label:m.href,align:m.tooltipAlign});const h=o=>{s.hideTooltip(),m.disabled?o.preventDefault():("function"==typeof m.on.onClick&&(r(o,c.el),m.on.onClick(o,m.href)),b&&v(b,_.click,m.href))};return{type:"link",disabled:m.disabled,getElement:()=>c.el,getFcProps:(e,t)=>Object.assign(Object.assign({},m),{ariaCurrent:""!==t&&t===m.href?m.ariaCurrentValue:"",ariaDescriptionId:d,expertSlot:""===o._label,handleAnchorClick:h,refAnchor:c,refTooltip:s.setTooltipElementRef,tabIndex:"number"==typeof o._tabIndex?m.tabIndex:e}),refWrapper:o=>{b=o},syncListeners:()=>{c.el&&s.syncListeners(void 0,c.el,!0)},destroy:()=>s.destroy()}})(o,e):"button"===o.type?((o,e)=>{const t=new C(n.stateLess),i=g(),l=u();let a;const s=w(o,e()),c=o._value;t.componentWillLoad({label:s.label,align:s.tooltipAlign});const d=(o,e)=>{a&&v(a,o,e)},b=o=>{o.stopPropagation(),t.hideTooltip(),"submit"===s.type?f({form:a}):"reset"===s.type?p({form:a}):"function"==typeof s.on.onClick&&(r(o,i.el),s.on.onClick(o,c)),d(_.click,c)},k=o=>{var e,t;null===(t=(e=s.on).onMouseDown)||void 0===t||t.call(e,o),d(_.mousedown)},m=o=>{var e,t;null===(t=(e=s.on).onFocus)||void 0===t||t.call(e,o),d(_.focus)},h=o=>{var e,t;null===(t=(e=s.on).onBlur)||void 0===t||t.call(e,o),d(_.blur)};return{type:"button",disabled:s.disabled,getElement:()=>i.el,getFcProps:e=>Object.assign(Object.assign({},s),{ariaDescriptionId:l,handleBlur:h,handleClick:b,handleFocus:m,handleMouseDown:k,refButton:i,refTooltip:t.setTooltipElementRef,tabIndex:"number"==typeof o._tabIndex?s.tabIndex:e}),refWrapper:o=>{a=o},syncListeners:()=>{i.el&&t.syncListeners(void 0,i.el,!0)},destroy:()=>t.destroy()}})(o,e):(()=>{const o=g();return{type:"hr",disabled:!0,getElement:()=>o.el,refWrapper:()=>{},syncListeners:()=>{},destroy:()=>{}}})())(o,(()=>this.host)))),this.setFirstEnabledItemIndex()}))}watchOrientation(o){b.apply(o,(o=>this.setRenderProp("orientation",o)))}async focus(o){const e=this.getCurrentItemElement();if(e)return z(this.host,(()=>T(e,o)))}async click(){const o=this.getCurrentItemElement();if(o)return y(this.host,(async()=>x(o)))}componentWillLoad(){this.watchLabel(this._label),this.watchItems(this._items),this.watchOrientation(this._orientation),this.unsubscribeOnLocationChange=D((o=>{this.location=o}))}componentDidRender(){this.itemRecords.forEach((o=>o.syncListeners()))}disconnectedCallback(){this.unsubscribeOnLocationChange&&(this.unsubscribeOnLocationChange(),this.unsubscribeOnLocationChange=void 0),this.itemRecords.forEach((o=>o.destroy()))}handleKeyDown(o){var e;const t=o.code;if(!F.includes(t))return;if(o.preventDefault(),0===this.itemRecords.length)return;const i=this.findNextEnabledItemIndex(this.currentIndex,t===B.ArrowUp||t===B.ArrowLeft?-1:1);void 0!==i&&i!==this.currentIndex&&(this.currentIndex=i,null===(e=this.itemRecords[i].getElement())||void 0===e||e.focus())}handleFocusout(o){o.target===this.host&&this.setFirstEnabledItemIndex()}getCurrentItemElement(){const o=this.itemRecords[this.currentIndex];return o&&!o.disabled?o.getElement():void 0}setFirstEnabledItemIndex(){this.currentIndex=this.itemRecords.findIndex((o=>!o.disabled))}findNextEnabledItemIndex(o,e){const t=this.itemRecords.length;for(let i=1;i<=t;i++){const n=((o+e*i)%t+t)%t;if(!this.itemRecords[n].disabled)return n}}render(){return o(t,{key:"10c807156e0a9f91b26ffb26ac01768029106dab"},o(L,{key:"7ebbb8a2e88664afddf0c66e046003b21ba0e3d5",currentIndex:this.currentIndex,itemRecords:this.itemRecords,label:this.getRenderProp("label"),location:this.location,orientation:this.getRenderProp("orientation")}))}get host(){return i(this)}static get watchers(){return{_label:[{watchLabel:0}],_items:[{watchItems:0}],_orientation:[{watchOrientation:0}]}}};E.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; } } @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; } :host { display: inline-block; } .kol-link { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-link__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-link__interactive-element::before { content: ""; } .kol-link__text { flex: 1 0 100%; } .kol-link { } .kol-link__tooltip { height: 0; } .kol-link--external-link > .kolicon-link-external::before { content: none; } .kol-link--external-link .kol-link__interactive-element > .kolicon-link-external::before { content: none; } .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-toolbar { display: flex; flex-wrap: wrap; align-items: stretch; } .kol-toolbar--orientation-horizontal .kol-toolbar__item hr { height: 100%; } .kol-toolbar--orientation-vertical { flex-direction: column; align-items: stretch; } .kol-toolbar--orientation-vertical .kol-span { align-items: flex-start; } .kol-toolbar__item hr { margin: 0; } .kol-toolbar:focus-within { outline: 1px solid; outline-offset: 2px; } }'};export{E as kol_toolbar}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{r as i,h as t,H as o,g as
|
|
4
|
+
import{r as i,h as t,H as o,g as e}from"./index-Bbr6Os1b.js";import{B as s}from"./base-web-component-CYPdDdRn.js";import{T as a}from"./behavior-B6y5Gofe.js";import{T as l}from"./component-B8UMedaK.js";import"./common-BdSzSIXg.js";import"./props-from-config-BOUcpF7e.js";import"./bem-registry-SKACeCny.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./id-Bh4FF8c0.js";import"./label-lang-segment-C5LYGOHt.js";import"./label-hints-CZGo9ZD5.js";import"./component-hiabKVP3.js";import"./tslib.es6-QNbPBOk5.js";import"./component-bIIx1x7q.js";const r=class{constructor(t){new.target===r&&i(this,t),this.tooltipBehavior=new a(s.stateLess),this._badgeText=void 0,this._align="top",this._id=void 0}validateAlign(i){var t;null===(t=this.tooltipBehavior)||void 0===t||t.watchAlign(i)}validateId(i){var t;null===(t=this.tooltipBehavior)||void 0===t||t.watchId(i)}validateLabel(i){var t;null===(t=this.tooltipBehavior)||void 0===t||t.watchLabel(i)}hideTooltip(){var i;return Promise.resolve(null===(i=this.tooltipBehavior)||void 0===i?void 0:i.hideTooltip())}connectedCallback(){var i,t,o;null===(i=this.tooltipBehavior)||void 0===i||i.initContext(null!==(o=null===(t=this.host)||void 0===t?void 0:t.previousElementSibling)&&void 0!==o?o:void 0)}componentWillLoad(){this.tooltipBehavior.componentWillLoad({label:this._label,align:this._align,badgeText:this._badgeText,id:this._id})}componentDidRender(){var i;this.host&&(null===(i=this.tooltipBehavior)||void 0===i||i.handleEventListeners(this.host))}disconnectedCallback(){var i;null===(i=this.tooltipBehavior)||void 0===i||i.destroy()}render(){return t(o,{key:"a0f2a8ea9f13c720320d69166664f24875b6a92e",class:"kol-tooltip"},t(l,{key:"b0459c0faf4862e66e4704503a47bd9499e5181e",label:this.tooltipBehavior.getRenderProp("label"),badgeText:this._badgeText,id:this.tooltipBehavior.getRenderProp("id"),refFloating:i=>{var t;return null===(t=this.tooltipBehavior)||void 0===t?void 0:t.setTooltipElementRef(i)}}))}get host(){return e(this)}static get watchers(){return{_align:[{validateAlign:0}],_id:[{validateId:0}],_label:[{validateLabel:0}]}}};export{r as kol_tooltip_wc}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as e,r as o,H as t,g as i}from"./index-Dulj0jro.js";import{_ as n}from"./tslib.es6-QNbPBOk5.js";import{h as l}from"./component-names-Dhbtt0mX.js";import{B as r}from"./base-web-component-CC_gpyDb.js";import"./common-BdSzSIXg.js";import{c as a,n as s,d as c}from"./props-from-config-ytxYrJUY.js";import{h}from"./href-CxokGOJ2.js";import{l as d}from"./label-lang-segment-iVD9hoM3.js";import{b as m}from"./bem-registry-DQUGxdIS.js";import{I as f}from"./component-Clz6b6ho.js";import{l as k,L as b,a as p}from"./component-DAQzDMY8.js";import{r as u}from"./component-oUQcgxDj.js";import{o as g}from"./open-CNHJhHsy.js";import{c as v}from"./dev.utils-DDWOHUcg.js";import{e as _,c as x}from"./element-interaction-sGYdEpmv.js";import{d as y,K as w}from"./events-CRHxtwup.js";import{o as j}from"./ariaCurrentService-YoLNpD5S.js";import{i as C}from"./open-items-cache-D-kml1h6.js";import"./label-hints-CLMiVvfk.js";import"./clsx-COFh-Vc8.js";import"./i18n-ePBcLlCr.js";import"./i18n-4J6U3ZDc.js";import"./component-C79oAu7a.js";import"./validators-CTjxOidB.js";import"./component-W1KZI4h4.js";import"./component-B05zRrM0.js";import"./block-bem-BGIVcYJu.js";import"./disabled-BZXlWAgK.js";import"./label-with-expert-slot-BbZ9nx0l.js";import"./link-target-D7lYILOV.js";import"./element-focus-BIRmGg5W.js";const z=a("active",!1,s),B={required:[h,d],optional:[z]},D=m.forBlock("kol-tree-item"),T=D(),I=D("children"),O=D("link-inner"),A=D("text"),G=D("toggle-button"),S=D("toggle-button-icon"),H=D("toggle-button-placeholder"),L=Object.freeze(c(k)),Y=()=>{},P=({active:o,ariaCurrent:t,groupId:i,handleAnchorClick:n,handleSlotchange:l,handleToggleClick:r,hasChildren:a,href:s,label:c,level:h,open:d,refAnchor:m})=>e("li",{class:T,role:"none",style:{"--level":`${h}`}},e("span",{class:D("link",{active:o,"first-level":0===h})},e(b,Object.assign({},L,{ariaCurrent:t,ariaDescriptionId:"",ariaExpanded:a?d?"true":"false":"",ariaOwns:a?i:"",expertSlot:!0,handleAnchorClick:n,href:s,label:"",refAnchor:m,refTooltip:Y,role:"treeitem",tabIndex:o?0:-1}),e("span",{class:O},a?e("span",{class:G,onClick:r},e(f,{class:S,icons:"kolicon kolicon-"+(d?"chevron-down":"chevron-right"),label:""})):e("span",{class:H}),e("span",{class:A},u(c))))),e("ul",{class:I,hidden:!a||!d,role:"group",id:i},e("slot",{onSlotchange:l}))),U=class extends r{constructor(e){super(...arguments),new.target===U&&o(this,e),this.ariaCurrent="",this.groupId=v("tree-group"),this.hasChildren=!1,this.level=0,this.open=!1,this.anchorRef=x(),this.propsConfig=B,this._active=void 0,this._open=void 0,this.handleAnchorClick=()=>{this.host&&y(this.host,w.click,this.getRenderProp("href"))},this.handleSlotchange=()=>{this.checkForChildren()},this.handleToggleClick=e=>{e.preventDefault();const o=this.open;this.focus().then((()=>this.setOpen(!o)))}}watchActive(e){z.apply(e,(e=>this.setRenderProp("active",e)))}watchLabel(e){d.apply(e,(e=>this.setRenderProp("label",e)),this.isRequired("label"))}watchOpen(e){g.apply(e,(e=>this.open=e))}watchHref(e){h.apply(e,(e=>this.setRenderProp("href",e)),this.isRequired("href"))}focus(e){return Promise.resolve()}expand(){return this.setOpen(!0),Promise.resolve()}collapse(){return this.setOpen(!1),Promise.resolve()}isOpen(){return Promise.resolve(this.open)}componentWillLoad(){this.watchActive(this._active),this.watchHref(this._href),this.watchLabel(this._label),this.watchOpen(this._open),this.checkForChildren(),this.determineTreeItemDepth(),this.unsubscribeOnLocationChange=j((e=>{const o=e===this.getRenderProp("href")?p.getDefaultValue():"";this.ariaCurrent!==o&&(this.ariaCurrent=o)}))}disconnectedCallback(){this.unsubscribeOnLocationChange&&(this.unsubscribeOnLocationChange(),this.unsubscribeOnLocationChange=void 0)}determineTreeItemDepth(){var e,o;let t=0,i=null!==(o=null===(e=this.host)||void 0===e?void 0:e.parentElement)&&void 0!==o?o:null;for(;null!==i&&i.tagName.toLowerCase()!==l&&i!==document.body;)i=i.parentElement,t+=1;this.level=t}checkForChildren(){var e,o;this.hasChildren=Array.from(null!==(o=null===(e=this.host)||void 0===e?void 0:e.children)&&void 0!==o?o:[]).some((e=>!e.slot))}getTree(){var e;let o=this.host;for(;o;){const t=o.closest(l);if(t)return t;const i=null===(e=o.getRootNode())||void 0===e?void 0:e.host;if(!i||i===document.body)break;o=i}}setOpen(e){this.hasChildren&&(this.open=e,C(this.getTree()))}render(){return e(t,{key:"52b3ee0d7b7d593abeaf27e782a5e3ed384d710f"},e(P,{key:"8acfdb55c45f3245ca7df0839c734188dcaea5bd",active:this.getRenderProp("active"),ariaCurrent:this.ariaCurrent,groupId:this.groupId,handleAnchorClick:this.handleAnchorClick,handleSlotchange:this.handleSlotchange,handleToggleClick:this.handleToggleClick,hasChildren:this.hasChildren,href:this.getRenderProp("href"),label:this.getRenderProp("label"),level:this.level,open:this.open,refAnchor:this.anchorRef}))}get host(){return i(this)}static get watchers(){return{_active:[{watchActive:0}],_label:[{watchLabel:0}],_open:[{watchOpen:0}],_href:[{watchHref:0}]}}};n([_("anchorRef")],U.prototype,"focus",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-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; } } @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-tree-item__link .kol-link { display: inline-flex; width: 100%; min-height: var(--a11y-min-size); align-items: center; text-decoration: none; } .kol-tree-item__link .kol-link__interactive-element { flex: 1 1 auto; text-decoration: none; } .kol-tree-item__link-inner { display: flex; align-items: center; } .kol-tree-item__children { margin: 0; padding: 0; list-style: none; } .kol-tree-item .kol-span { place-items: unset; } .kol-tree-item__toggle-button, .kol-tree-item__toggle-button-placeholder { display: inline-flex; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; justify-content: center; } .kol-tree-item__text { text-decoration: underline; } }'};export{U as kol_tree_item}
|
|
4
|
+
import{h as e,r as o,H as t,g as i}from"./index-Bbr6Os1b.js";import{_ as n}from"./tslib.es6-QNbPBOk5.js";import{h as r}from"./component-names-Dhbtt0mX.js";import{B as l}from"./base-web-component-CYPdDdRn.js";import"./common-BdSzSIXg.js";import{c as a,n as s,d as c,B as d}from"./props-from-config-BOUcpF7e.js";import{h}from"./href-CfNF4pHX.js";import{l as m}from"./label-lang-segment-C5LYGOHt.js";import{b as k}from"./bem-registry-SKACeCny.js";import{I as b}from"./component-bIIx1x7q.js";import{l as f,L as p,a as u}from"./component-CiJGQTU0.js";import{r as g}from"./component-hiabKVP3.js";import{o as v}from"./open-DPP79Urq.js";import{c as _}from"./dev.utils-B0t4rcBV.js";import{e as x,c as y}from"./element-interaction-sGYdEpmv.js";import{d as w,K as j}from"./events-CRHxtwup.js";import{o as C}from"./ariaCurrentService-YoLNpD5S.js";import{i as B}from"./open-items-cache-D-kml1h6.js";import"./label-hints-CZGo9ZD5.js";import"./i18n-BLkzMf6D.js";import"./i18n-BRgvVqCf.js";import"./component-DEwcJKDA.js";import"./validators-BgDmq-Qt.js";import"./component-B8UMedaK.js";import"./disabled-B2o4Ctgy.js";import"./label-with-expert-slot-D1tpX9DI.js";import"./link-target-BWPSEd9a.js";import"./element-focus-BIRmGg5W.js";const T=a("active",!1,s),z={required:[h,m],optional:[T]},D=k.forBlock("kol-tree-item"),I=D("children"),S=D("link-inner"),A=D("text"),G=D("toggle-button"),O=D("toggle-button-icon"),P=D("toggle-button-placeholder"),H=Object.freeze(c(f)),L=()=>{},q=({active:o,ariaCurrent:t,groupId:i,handleAnchorClick:n,handleSlotchange:r,handleToggleClick:l,hasChildren:a,href:s,label:c,level:h,open:m,refAnchor:k})=>e(d,{component:"li",block:"kol-tree-item",role:"none",style:{"--level":`${h}`}},e("span",{class:D("link",{active:o,"first-level":0===h})},e(p,Object.assign({},H,{ariaCurrent:t,ariaDescriptionId:"",ariaExpanded:a?m?"true":"false":"",ariaOwns:a?i:"",expertSlot:!0,handleAnchorClick:n,href:s,label:"",refAnchor:k,refTooltip:L,role:"treeitem",tabIndex:o?0:-1}),e("span",{class:S},a?e("span",{class:G,onClick:l},e(b,{class:O,icons:"kolicon kolicon-"+(m?"chevron-down":"chevron-right"),label:""})):e("span",{class:P}),e("span",{class:A},g(c))))),e("ul",{class:I,hidden:!a||!m,role:"group",id:i},e("slot",{onSlotchange:r}))),F=class extends l{constructor(e){super(...arguments),new.target===F&&o(this,e),this.ariaCurrent="",this.groupId=_("tree-group"),this.hasChildren=!1,this.level=0,this.open=!1,this.anchorRef=y(),this.propsConfig=z,this._active=void 0,this._open=void 0,this.handleAnchorClick=()=>{this.host&&w(this.host,j.click,this.getRenderProp("href"))},this.handleSlotchange=()=>{this.checkForChildren()},this.handleToggleClick=e=>{e.preventDefault();const o=this.open;this.focus().then((()=>this.setOpen(!o)))}}watchActive(e){T.apply(e,(e=>this.setRenderProp("active",e)))}watchLabel(e){m.apply(e,(e=>this.setRenderProp("label",e)),this.isRequired("label"))}watchOpen(e){v.apply(e,(e=>{this.open=e,B(this.getTree())}))}watchHref(e){h.apply(e,(e=>this.setRenderProp("href",e)),this.isRequired("href"))}focus(e){return Promise.resolve()}expand(){return this.setOpen(!0),Promise.resolve()}collapse(){return this.setOpen(!1),Promise.resolve()}isOpen(){return Promise.resolve(this.open)}componentWillLoad(){this.watchActive(this._active),this.watchHref(this._href),this.watchLabel(this._label),this.watchOpen(this._open),this.checkForChildren(),this.determineTreeItemDepth(),this.unsubscribeOnLocationChange=C((e=>{const o=e===this.getRenderProp("href")?u.getDefaultValue():"";this.ariaCurrent!==o&&(this.ariaCurrent=o)}))}disconnectedCallback(){this.unsubscribeOnLocationChange&&(this.unsubscribeOnLocationChange(),this.unsubscribeOnLocationChange=void 0)}determineTreeItemDepth(){var e,o;let t=0,i=null!==(o=null===(e=this.host)||void 0===e?void 0:e.parentElement)&&void 0!==o?o:null;for(;null!==i&&i.tagName.toLowerCase()!==r&&i!==document.body;)i=i.parentElement,t+=1;this.level=t}checkForChildren(){var e,o;this.hasChildren=Array.from(null!==(o=null===(e=this.host)||void 0===e?void 0:e.children)&&void 0!==o?o:[]).some((e=>!e.slot))}getTree(){var e;let o=this.host;for(;o;){const t=o.closest(r);if(t)return t;const i=null===(e=o.getRootNode())||void 0===e?void 0:e.host;if(!i||i===document.body)break;o=i}}setOpen(e){this.hasChildren&&(this.open=e,B(this.getTree()))}render(){return e(t,{key:"ef8d3be5e78ab5bf78a56cfb3a7a598dff63b129"},e(q,{key:"e180a324da3af9afd90821a831aa3b394b009f0e",active:this.getRenderProp("active"),ariaCurrent:this.ariaCurrent,groupId:this.groupId,handleAnchorClick:this.handleAnchorClick,handleSlotchange:this.handleSlotchange,handleToggleClick:this.handleToggleClick,hasChildren:this.hasChildren,href:this.getRenderProp("href"),label:this.getRenderProp("label"),level:this.level,open:this.open,refAnchor:this.anchorRef}))}get host(){return i(this)}static get watchers(){return{_active:[{watchActive:0}],_label:[{watchLabel:0}],_open:[{watchOpen:0}],_href:[{watchHref:0}]}}};n([x("anchorRef")],F.prototype,"focus",null),F.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; } } @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-tree-item__link .kol-link { display: inline-flex; width: 100%; min-height: var(--a11y-min-size); align-items: center; text-decoration: none; } .kol-tree-item__link .kol-link__interactive-element { flex: 1 1 auto; text-decoration: none; } .kol-tree-item__link-inner { display: flex; align-items: center; } .kol-tree-item__children { margin: 0; padding: 0; list-style: none; } .kol-tree-item .kol-span { place-items: unset; } .kol-tree-item__toggle-button, .kol-tree-item__toggle-button-placeholder { display: inline-flex; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; justify-content: center; } .kol-tree-item__text { text-decoration: underline; } }'};export{F as kol_tree_item}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as e,r as t,H as o,g as i}from"./index-Dulj0jro.js";import{g as a,h as l}from"./component-names-Dhbtt0mX.js";import{B as r}from"./base-web-component-CC_gpyDb.js";import"./common-BdSzSIXg.js";import"./props-from-config-ytxYrJUY.js";import{l as n}from"./label-B-Dr7VaP.js";import{b as s}from"./bem-registry-DQUGxdIS.js";import{d}from"./element-focus-BIRmGg5W.js";import{r as c,u as h}from"./open-items-cache-D-kml1h6.js";import"./validators-CTjxOidB.js";import"./label-hints-CLMiVvfk.js";import"./tslib.es6-QNbPBOk5.js";const u={required:[n]},b=s.forBlock("kol-tree"),m=b(),k=b("treeview-navigation"),p=({handleSlotchange:t,label:o})=>e("nav",{class:m,"aria-label":o},e("ul",{class:k,role:"tree","aria-label":o},e("slot",{onSlotchange:t}))),v=e=>(null==e?void 0:e.tagName)===a.toUpperCase(),f=class extends r{constructor(e){super(...arguments),new.target===f&&t(this,e),this.cacheValid=!1,this.propsConfig=u,this.invalidateOpenItemsCache=()=>{this.cacheValid=!1},this.handleSlotchange=()=>{this.observeTopLevelItems(),this.scheduleTreeChange()}}watchLabel(e){n.apply(e,(e=>this.setRenderProp("label",e)),this.isRequired("label"))}async focus(e){this.host&&await d(this.host,(async()=>{var t;const o=await this.getOpenTreeItemElements();await(null===(t=null==o?void 0:o[0])||void 0===t?void 0:t.focus(e))}))}connectedCallback(){this.host&&c(this.host,this.invalidateOpenItemsCache)}componentWillLoad(){this.watchLabel(this._label),this.handleTreeChange(),this.observeChildListMutations()}disconnectedCallback(){var e;this.host&&h(this.host),null===(e=this.observer)||void 0===e||e.disconnect(),void 0!==this.rafHandle&&(cancelAnimationFrame(this.rafHandle),this.rafHandle=void 0)}async handleKeyDown(e){var t,o,i,l,r,n,s,d,c,h;const u=await this.getOpenTreeItemElements(),b=null===(t=document.activeElement)||void 0===t?void 0:t.closest(a),m=e.metaKey||e.altKey||e.ctrlKey||e.shiftKey;if(!u||!b)return;const k=u.findIndex((e=>e===b));switch(e.key){case"ArrowDown":await(null===(o=u[k+1])||void 0===o?void 0:o.focus()),e.preventDefault();break;case"ArrowUp":await(null===(i=u[k-1])||void 0===i?void 0:i.focus()),e.preventDefault();break;case"Right":case"ArrowRight":e.preventDefault(),await b.isOpen()?await(null===(l=u[k+1])||void 0===l?void 0:l.focus()):await b.expand();break;case"Left":case"ArrowLeft":if(e.preventDefault(),await b.isOpen())await b.collapse();else{const e=b.parentElement,t=e?u.indexOf(e):-1;-1!==t&&await(null===(r=u[t])||void 0===r?void 0:r.focus())}break;case"Home":await(null===(n=u[0])||void 0===n?void 0:n.focus()),e.preventDefault();break;case"End":await(null===(s=u[u.length-1])||void 0===s?void 0:s.focus()),e.preventDefault();break;case null===(d=e.key.match(/^[a-zA-Z0-9]$/))||void 0===d?void 0:d.input:if(!m){const t=e.key.toLowerCase(),o=k+1,i=e=>{var o,i;return null!==(i=null===(o=e.getAttribute("_label"))||void 0===o?void 0:o.trim().toLowerCase().startsWith(t))&&void 0!==i&&i};let a=u.slice(o).findIndex(i);-1===a?a=u.slice(0,o).findIndex(i):a+=o,-1!==a&&(await(null===(c=u[a])||void 0===c?void 0:c.focus()),e.preventDefault())}break;case"*":{const e=null===(h=b.parentElement)||void 0===h?void 0:h.querySelectorAll(a);null==e||e.forEach((e=>{e.expand()}));break}}}handleFocusIn(e){var t;e.target!==this.host||(null===(t=document.activeElement)||void 0===t?void 0:t.closest(a))||requestAnimationFrame((()=>{this.focus()}))}handleFocusOut(e){e.relatedTarget&&!e.relatedTarget.closest(l)&&this.ensureActiveItemVisibility()}observeChildListMutations(){this.observer=new MutationObserver((()=>this.scheduleTreeChange())),this.observeTopLevelItems()}observeTopLevelItems(){this.getTopLevelTreeItems().forEach((e=>{var t;null===(t=this.observer)||void 0===t||t.observe(e,{childList:!0,subtree:!0})}))}scheduleTreeChange(){this.rafHandle&&cancelAnimationFrame(this.rafHandle),this.rafHandle=requestAnimationFrame((()=>{this.handleTreeChange()}))}getTopLevelTreeItems(){var e,t;return Array.from(null!==(t=null===(e=this.host)||void 0===e?void 0:e.children)&&void 0!==t?t:[]).filter((e=>v(e)&&!e.slot))}handleTreeChange(){this.treeItemElements=this.getTreeItemElements(),this.cacheValid=!1,this.ensureActiveItemVisibility()}getTreeItemElements(){return this.getTopLevelTreeItems().reduce(((e,t)=>{const o=t.querySelectorAll(a);return[...e,t,...o]}),[])}async getOpenTreeItemElements(){if(!this.treeItemElements)return;if(this.cacheValid&&this.cachedOpenItems)return this.cachedOpenItems;const e=async e=>{let t=e.parentElement;for(;v(t);){if(!await t.isOpen())return!1;t=t.parentElement}return!0};return this.cachedOpenItems=await Promise.all(this.treeItemElements.map((async t=>({item:t,isOpen:await e(t)})))).then((e=>e.filter((({isOpen:e})=>e)).map((({item:e})=>e)))),this.cacheValid=!0,this.cachedOpenItems}ensureActiveItemVisibility(){const e=t=>{v(t.parentElement)&&(t.parentElement.expand(),e(t.parentElement))},t=(()=>{for(const e of this.getTopLevelTreeItems()){if(e._active)return e;const t=e.querySelector(`${a}[_active="true"]`);if(null==t?void 0:t._active)return t}})();t&&e(t)}render(){return e(o,{key:"46407a67efb548149a62e371713e0da8ec352863",tabindex:"0"},e(p,{key:"2725ae9400123f266b59b8c45b82eac3b83cf5f3",handleSlotchange:this.handleSlotchange,label:this.getRenderProp("label")}))}get host(){return i(this)}static get watchers(){return{_label:[{watchLabel:0}]}}};f.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 { .kol-tree__treeview-navigation { margin: 0; padding: 0; list-style: none; } .kol-tree:focus-within { outline: 1px solid; outline-offset: 2px; } }'};export{f as kol_tree}
|
|
4
|
+
import{h as e,r as t,H as o,g as i}from"./index-Bbr6Os1b.js";import{g as a,h as l}from"./component-names-Dhbtt0mX.js";import{B as r}from"./base-web-component-CYPdDdRn.js";import"./common-BdSzSIXg.js";import{B as n}from"./props-from-config-BOUcpF7e.js";import{l as s}from"./label-BQVd3bkc.js";import{b as d}from"./bem-registry-SKACeCny.js";import{d as c}from"./element-focus-BIRmGg5W.js";import{r as h,u as b}from"./open-items-cache-D-kml1h6.js";import"./validators-BgDmq-Qt.js";import"./label-hints-CZGo9ZD5.js";import"./tslib.es6-QNbPBOk5.js";const u={required:[s]},m=d.forBlock("kol-tree")("treeview-navigation"),k=({handleSlotchange:t,label:o})=>e(n,{component:"nav",block:"kol-tree","aria-label":o},e("ul",{class:m,role:"tree","aria-label":o},e("slot",{onSlotchange:t}))),v=e=>(null==e?void 0:e.tagName)===a.toUpperCase(),p=class extends r{constructor(e){super(...arguments),new.target===p&&t(this,e),this.cacheValid=!1,this.propsConfig=u,this.invalidateOpenItemsCache=()=>{this.cacheValid=!1},this.handleSlotchange=()=>{this.observeTopLevelItems(),this.scheduleTreeChange()}}watchLabel(e){s.apply(e,(e=>this.setRenderProp("label",e)),this.isRequired("label"))}async focus(e){this.host&&await c(this.host,(async()=>{var t;const o=await this.getOpenTreeItemElements();await(null===(t=null==o?void 0:o[0])||void 0===t?void 0:t.focus(e))}))}connectedCallback(){this.host&&h(this.host,this.invalidateOpenItemsCache)}componentWillLoad(){this.watchLabel(this._label),this.handleTreeChange(),this.observeChildListMutations()}disconnectedCallback(){var e;this.host&&b(this.host),null===(e=this.observer)||void 0===e||e.disconnect(),void 0!==this.rafHandle&&(cancelAnimationFrame(this.rafHandle),this.rafHandle=void 0)}async handleKeyDown(e){var t,o,i,l,r,n,s,d,c,h;if("Tab"===e.key&&e.shiftKey&&e.target!==this.host)return void(null===(t=this.host)||void 0===t||t.setAttribute("tabindex","-1"));const b=e.composedPath().find(v),u=await this.getOpenTreeItemElements(),m=e.metaKey||e.altKey||e.ctrlKey||e.shiftKey;if(!u||!b)return;const k=u.findIndex((e=>e===b));switch(e.key){case"ArrowDown":await(null===(o=u[k+1])||void 0===o?void 0:o.focus()),e.preventDefault();break;case"ArrowUp":await(null===(i=u[k-1])||void 0===i?void 0:i.focus()),e.preventDefault();break;case"Right":case"ArrowRight":e.preventDefault(),await b.isOpen()?await(null===(l=u[k+1])||void 0===l?void 0:l.focus()):await b.expand();break;case"Left":case"ArrowLeft":if(e.preventDefault(),await b.isOpen())await b.collapse();else{const e=b.parentElement,t=e?u.indexOf(e):-1;-1!==t&&await(null===(r=u[t])||void 0===r?void 0:r.focus())}break;case"Home":await(null===(n=u[0])||void 0===n?void 0:n.focus()),e.preventDefault();break;case"End":await(null===(s=u[u.length-1])||void 0===s?void 0:s.focus()),e.preventDefault();break;case null===(d=e.key.match(/^[a-zA-Z0-9]$/))||void 0===d?void 0:d.input:if(!m){const t=e.key.toLowerCase(),o=k+1,i=e=>{var o,i;return null!==(i=null===(o=e.getAttribute("_label"))||void 0===o?void 0:o.trim().toLowerCase().startsWith(t))&&void 0!==i&&i};let a=u.slice(o).findIndex(i);-1===a?a=u.slice(0,o).findIndex(i):a+=o,-1!==a&&(await(null===(c=u[a])||void 0===c?void 0:c.focus()),e.preventDefault())}break;case"*":{const e=null===(h=b.parentElement)||void 0===h?void 0:h.querySelectorAll(a);null==e||e.forEach((e=>{e.expand()}));break}}}handleFocusIn(e){e.target!==this.host||this.isWithinTree(e.relatedTarget)||requestAnimationFrame((()=>{this.focus()}))}handleFocusOut(e){var t;this.isWithinTree(e.relatedTarget)||null===(t=this.host)||void 0===t||t.setAttribute("tabindex","0"),e.relatedTarget&&!e.relatedTarget.closest(l)&&this.ensureActiveItemVisibility()}isWithinTree(e){var t,o;return e instanceof Node&&e!==this.host&&null!==(o=null===(t=this.host)||void 0===t?void 0:t.contains(e))&&void 0!==o&&o}observeChildListMutations(){this.observer=new MutationObserver((()=>this.scheduleTreeChange())),this.observeTopLevelItems()}observeTopLevelItems(){this.getTopLevelTreeItems().forEach((e=>{var t;null===(t=this.observer)||void 0===t||t.observe(e,{childList:!0,subtree:!0})}))}scheduleTreeChange(){this.rafHandle&&cancelAnimationFrame(this.rafHandle),this.rafHandle=requestAnimationFrame((()=>{this.handleTreeChange()}))}getTopLevelTreeItems(){var e,t;return Array.from(null!==(t=null===(e=this.host)||void 0===e?void 0:e.children)&&void 0!==t?t:[]).filter((e=>v(e)&&!e.slot))}handleTreeChange(){this.treeItemElements=this.getTreeItemElements(),this.cacheValid=!1,this.ensureActiveItemVisibility()}getTreeItemElements(){return this.getTopLevelTreeItems().reduce(((e,t)=>{const o=t.querySelectorAll(a);return[...e,t,...o]}),[])}async getOpenTreeItemElements(){if(!this.treeItemElements)return;if(this.cacheValid&&this.cachedOpenItems)return this.cachedOpenItems;const e=async e=>{let t=e.parentElement;for(;v(t);){if(!await t.isOpen())return!1;t=t.parentElement}return!0};return this.cachedOpenItems=await Promise.all(this.treeItemElements.map((async t=>({item:t,isOpen:await e(t)})))).then((e=>e.filter((({isOpen:e})=>e)).map((({item:e})=>e)))),this.cacheValid=!0,this.cachedOpenItems}ensureActiveItemVisibility(){const e=t=>{v(t.parentElement)&&(t.parentElement.expand(),e(t.parentElement))},t=(()=>{for(const e of this.getTopLevelTreeItems()){if(e._active)return e;const t=e.querySelector(`${a}[_active="true"]`);if(null==t?void 0:t._active)return t}})();t&&e(t)}render(){return e(o,{key:"df55eb6b968ef985ef6c738815e66aa9cd88b9e1",tabindex:"0"},e(k,{key:"e874b2de9b9e9e7e4f757bb418b698e9e06c239f",handleSlotchange:this.handleSlotchange,label:this.getRenderProp("label")}))}get host(){return i(this)}static get watchers(){return{_label:[{watchLabel:0}]}}};p.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 { .kol-tree__treeview-navigation { margin: 0; padding: 0; list-style: none; } .kol-tree:focus-within { outline: 1px solid; outline-offset: 2px; } }'};export{p as kol_tree}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as o,r as e,H as t}from"./index-
|
|
4
|
+
import{h as o,r as e,H as t}from"./index-Bbr6Os1b.js";import{t as n}from"./i18n-BLkzMf6D.js";import{B as l}from"./base-web-component-CYPdDdRn.js";import"./common-BdSzSIXg.js";import{B as r}from"./props-from-config-BOUcpF7e.js";import{l as i}from"./label-BQVd3bkc.js";import{B as a}from"./component-CMHB3reH.js";import{c}from"./contrast-DtK0a6X2.js";import"./i18n-BRgvVqCf.js";import"./bem-registry-SKACeCny.js";import"./validators-BgDmq-Qt.js";import"./label-hints-CZGo9ZD5.js";import"./component-CNgECeRi.js";import"./tslib.es6-QNbPBOk5.js";import"./component-DEwcJKDA.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";const s={required:[i]},d=({class:e,color:t,icons:n,label:l})=>o(r,{block:"kol-version",class:e},o(a,{color:t,icons:n,label:l})),b=c("#bec5c9"),k={backgroundColor:b.background,foregroundColor:b.foreground},f={left:{icon:"kolicon-version",label:n("kol-version")}},m=class extends l{constructor(o){super(...arguments),new.target===m&&e(this,o),this.propsConfig=s}watchLabel(o){i.apply(o,(o=>this.setRenderProp("label",o)),this.isRequired("label"))}componentWillLoad(){i.apply(this._label,(o=>this.setRenderProp("label",o)),this.isRequired("label"))}render(){return o(t,{key:"41f3fe21b34ed55fe622cc212cec754c5110292e"},o(d,{key:"3239e582b5e207e28c4a2cf92d730278f21afd0b",color:k,icons:f,label:this.getRenderProp("label")}))}static get watchers(){return{_label:[{watchLabel:0}]}}};m.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; } } @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-badge { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); display: flex; align-items: center; justify-content: space-between; } .kol-badge > br { user-select: none; } }'};export{m as kol_version}
|