@public-ui/components 4.6.0 → 4.7.0-rc.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 +1 -1
- package/dist/cjs/{Heading-CnnBHLhu.js → Heading-BiIgkzH8.js} +2 -2
- package/dist/cjs/{api-C-uDDxcA.js → api-CYf8xdSs.js} +16 -16
- package/dist/cjs/{app-globals-BfpVa0Lg.js → app-globals-BYAPmvIk.js} +2 -2
- package/dist/cjs/{base-Cc2tyQoy.js → base--a0QJmk3.js} +10 -10
- package/dist/cjs/{base-CeaAJa72.js → base-BmhaEyug.js} +9 -9
- package/dist/cjs/{base-BIbzHEVE.js → base-BpyecmRJ.js} +20 -20
- package/dist/cjs/{base-BZ3x1Yaj.js → base-CUUvWtsB.js} +10 -10
- package/dist/cjs/{base-web-component-B_zszxEg.js → base-web-component-BompEaD1.js} +1 -1
- package/dist/cjs/{base-web-component-CpqYvVDi.js → base-web-component-CWIPg0xv.js} +13 -13
- package/dist/cjs/{base-web-component-Dk-So1FD.js → base-web-component-ZnP9FmYh.js} +8 -8
- package/dist/cjs/{behavior-cEIf2evT.js → behavior-CFLTEANn.js} +4 -4
- package/dist/cjs/{behavior-CYg7XOXd.js → behavior-DSFpiPZZ.js} +3 -3
- package/dist/cjs/{behavior--ZjzmIB4.js → behavior-O4U6x6z7.js} +3 -3
- package/dist/cjs/{color-BJ776mPh.js → color-BAx-7-VH.js} +2 -2
- package/dist/cjs/{component-BacsMsF-.js → component-7ByD-KGA.js} +3 -3
- package/dist/cjs/{component-BTfaB8W5.js → component-B2tj_1JK.js} +2 -2
- package/dist/cjs/{component-D65WOH6c.js → component-BOtCtyyw.js} +5 -5
- package/dist/cjs/{component-5ABjFE_U.js → component-BhAlZY9F.js} +3 -3
- package/dist/cjs/{component-BSx0ZVSD.js → component-BsX1-89D.js} +8 -8
- package/dist/cjs/{component-DVf7tz1e.js → component-C4QeEJ1-.js} +4 -4
- package/dist/cjs/{component-DwuAKOV_.js → component-DUJYVdRR.js} +4 -4
- package/dist/cjs/{component-Ddp-Luc6.js → component-DWb8RKVo.js} +6 -6
- package/dist/cjs/component-Dd3qxReW.js +178 -0
- package/dist/cjs/{component-DuknrIKz.js → component-STJidyBV.js} +10 -10
- package/dist/cjs/{component-C_9WksgV.js → component-TQvy83J2.js} +11 -11
- package/dist/cjs/{contrast-DrGTr5zd.js → contrast-DOAdZqCp.js} +1 -1
- package/dist/cjs/{dev.utils-EwVibOKw.js → dev.utils-DlmiDtkx.js} +1 -1
- package/dist/cjs/{devtools-CEqUJI9f.js → devtools-C41YtdU_.js} +2 -2
- package/dist/cjs/{disabled-DBnI2OR4.js → disabled-BdFhTB-H.js} +1 -1
- package/dist/cjs/{field-control-Jhzreo_j.js → field-control-S9RwdD26.js} +6 -6
- package/dist/cjs/{group-DDmENjNB.js → group-C00FoXnX.js} +4 -4
- package/dist/cjs/{has-closer-DIk_toj-.js → has-closer--ijHuPZy.js} +1 -1
- package/dist/cjs/{href-_UE7179j.js → href-BD4uBwDL.js} +1 -1
- package/dist/cjs/{id-JbinnWCW.js → id-BM9KgE0w.js} +1 -1
- package/dist/cjs/{index-P8gY4ccL.js → index-DRjg_lHL.js} +1 -1
- package/dist/cjs/{input-BYfPasa5.js → input-0s6YjmaC.js} +4 -4
- package/dist/cjs/{input-container-BQlNjdk3.js → input-container-DYp04csT.js} +5 -5
- package/dist/cjs/{item-Dgikq96R.js → item-BKyAM3Uo.js} +9 -9
- package/dist/cjs/{item-C6gnuMjx.js → item-CRgD35fr.js} +4 -4
- package/dist/cjs/{item-CvvVUcQZ.js → item-DWAwMGWB.js} +11 -11
- package/dist/cjs/{item-DSSJt2YS.js → item-xUIdEroQ.js} +4 -4
- package/dist/cjs/kol-abbr.cjs.entry.js +5 -5
- package/dist/cjs/kol-accordion.cjs.entry.js +14 -14
- package/dist/cjs/kol-alert.cjs.entry.js +21 -21
- package/dist/cjs/kol-avatar.cjs.entry.js +9 -9
- package/dist/cjs/kol-badge.cjs.entry.js +22 -22
- package/dist/cjs/kol-breadcrumb.cjs.entry.js +22 -22
- package/dist/cjs/kol-button-link.cjs.entry.js +19 -19
- package/dist/cjs/kol-button.cjs.entry.js +19 -19
- package/dist/cjs/kol-card.cjs.entry.js +24 -24
- package/dist/cjs/kol-combobox.cjs.entry.js +32 -32
- package/dist/cjs/kol-details.cjs.entry.js +14 -14
- package/dist/cjs/kol-dialog.cjs.entry.js +27 -27
- package/dist/cjs/kol-drawer.cjs.entry.js +26 -26
- package/dist/cjs/kol-form.cjs.entry.js +20 -20
- package/dist/cjs/kol-heading.cjs.entry.js +9 -9
- package/dist/cjs/kol-icon.cjs.entry.js +7 -7
- package/dist/cjs/kol-image.cjs.entry.js +4 -4
- package/dist/cjs/kol-input-checkbox.cjs.entry.js +28 -28
- package/dist/cjs/kol-input-color.cjs.entry.js +31 -31
- package/dist/cjs/kol-input-date.cjs.entry.js +33 -33
- package/dist/cjs/kol-input-email.cjs.entry.js +37 -37
- package/dist/cjs/kol-input-file.cjs.entry.js +30 -30
- package/dist/cjs/kol-input-number.cjs.entry.js +35 -35
- package/dist/cjs/kol-input-password.cjs.entry.js +35 -35
- package/dist/cjs/kol-input-radio.cjs.entry.js +30 -30
- package/dist/cjs/kol-input-range.cjs.entry.js +31 -31
- package/dist/cjs/kol-input-text.cjs.entry.js +37 -37
- package/dist/cjs/kol-kolibri.cjs.entry.js +3 -3
- package/dist/cjs/kol-link-button.cjs.entry.js +20 -20
- package/dist/cjs/kol-link.cjs.entry.js +20 -20
- package/dist/cjs/kol-meter.cjs.entry.js +9 -9
- package/dist/cjs/kol-modal.cjs.entry.js +27 -27
- package/dist/cjs/kol-nav.cjs.entry.js +27 -27
- package/dist/cjs/kol-pagination.cjs.entry.js +33 -33
- package/dist/cjs/kol-popover-button.cjs.entry.js +20 -20
- package/dist/cjs/kol-progress.cjs.entry.js +8 -8
- package/dist/cjs/kol-quote.cjs.entry.js +6 -6
- package/dist/cjs/kol-select.cjs.entry.js +30 -30
- package/dist/cjs/kol-single-select.cjs.entry.js +32 -32
- package/dist/cjs/kol-skip-nav.cjs.entry.js +22 -22
- package/dist/cjs/kol-spin.cjs.entry.js +7 -7
- package/dist/cjs/kol-split-button.cjs.entry.js +22 -22
- package/dist/cjs/kol-table-stateful.cjs.entry.js +45 -45
- package/dist/cjs/kol-table-stateless.cjs.entry.js +34 -34
- package/dist/cjs/kol-tabs.cjs.entry.js +19 -19
- package/dist/cjs/kol-textarea.cjs.entry.js +33 -33
- package/dist/cjs/kol-toast-container.cjs.entry.js +16 -16
- package/dist/cjs/kol-toolbar.cjs.entry.js +24 -24
- package/dist/cjs/kol-tooltip-wc.cjs.entry.js +10 -10
- package/dist/cjs/kol-tree-item.cjs.entry.js +18 -18
- package/dist/cjs/kol-tree.cjs.entry.js +6 -6
- package/dist/cjs/kol-version.cjs.entry.js +17 -17
- package/dist/cjs/kolibri.cjs.js +2 -2
- package/dist/cjs/{label-BAULqhwq.js → label-BA98eiFj.js} +3 -3
- package/dist/cjs/{label-hints-BHw-UcMt.js → label-hints-BE4LQ_Av.js} +1 -1
- package/dist/cjs/{label-lang-segment-D_UYFhgr.js → label-lang-segment-C5U5gEca.js} +2 -2
- package/dist/cjs/{label-with-expert-slot-XZTOiRp-.js → label-with-expert-slot-x1D8V34g.js} +3 -3
- package/dist/cjs/{level-CaJUuMiH.js → level-CX2p0n7U.js} +1 -1
- package/dist/cjs/{link-target-EZq24qVX.js → link-target-B1N4Je6O.js} +1 -1
- package/dist/cjs/{links-CNPivOpm.js → links-SN0jipdB.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{multiple-D4ktp4Q2.js → multiple-Dl_RoQ-P.js} +1 -1
- package/dist/cjs/{number-value-BzIR1UvL.js → number-value-DO-0brWb.js} +1 -1
- package/dist/cjs/{open-BYh5VAA1.js → open-BQ2n_Z5t.js} +1 -1
- package/dist/cjs/{options-DkF38kx_.js → options-B49Y2jkm.js} +1 -1
- package/dist/cjs/{orientation-D4yopkvP.js → orientation-DKdQrdXN.js} +1 -1
- package/dist/cjs/{placeholder-CZOGOuLS.js → placeholder-E5zS-kqO.js} +1 -1
- package/dist/cjs/{props-from-config-CiU21EHb.js → props-from-config-8bawgofo.js} +1 -1
- package/dist/cjs/{read-only-PNG5jHgh.js → read-only-YsES5bfT.js} +1 -1
- package/dist/cjs/{required-mj54_vO_.js → required-BvWmptNq.js} +1 -1
- package/dist/cjs/{resolve-props-DOnocHFi.js → resolve-props-CHqmeYxD.js} +6 -6
- package/dist/cjs/{resolve-props-CH6OL2es.js → resolve-props-DUeggpV2.js} +7 -7
- package/dist/cjs/{rows-YaAnXjAm.js → rows-BBmwZt2C.js} +1 -1
- package/dist/cjs/{scroll-lock-D3pgiG8q.js → scroll-lock-3znuNdTX.js} +2 -2
- package/dist/cjs/{smart-button-BU7mWP5H.js → smart-button-B3OCsLLZ.js} +1 -1
- package/dist/cjs/{spell-check-CZWiLkQE.js → spell-check-DuFxddUB.js} +1 -1
- package/dist/cjs/{src-rB2yGTSn.js → src-Cl2qHbxL.js} +1 -1
- package/dist/cjs/{step-Bo6ILIqa.js → step-Bf3TCVBv.js} +1 -1
- package/dist/cjs/{suggestions-BO4EvOXc.js → suggestions-BjKRoku9.js} +1 -1
- package/dist/cjs/{suggestions-Ca575hi-.js → suggestions-C4B_eROV.js} +3 -3
- package/dist/cjs/test-component.cjs.entry.js +1 -1
- package/dist/cjs/{toggle-handler-ByJYSOdb.js → toggle-handler-DEpykyv_.js} +8 -8
- package/dist/cjs/{unique-nav-labels-_EHPpYUR.js → unique-nav-labels-CNpNvloU.js} +1 -1
- package/dist/cjs/{unit-Bl0Lyk08.js → unit-gLQjiSkI.js} +1 -1
- package/dist/cjs/{validators-rLs6tEWo.js → validators-DNveqLx4.js} +1 -1
- package/dist/cjs/{value-string-BKsvZy1q.js → value-string-JMz269Bn.js} +1 -1
- package/dist/cjs/{width-DegQFxQB.js → width-_6rleKWl.js} +1 -1
- package/dist/collection/components/accordion/style.css +2 -2
- package/dist/collection/components/alert/style.css +2 -2
- package/dist/collection/components/badge/style.css +2 -2
- package/dist/collection/components/breadcrumb/style.css +2 -2
- package/dist/collection/components/button/style.css +2 -2
- package/dist/collection/components/button-link/style.css +2 -2
- package/dist/collection/components/card/style.css +2 -2
- package/dist/collection/components/combobox/style.css +2 -2
- package/dist/collection/components/details/style.css +2 -2
- package/dist/collection/components/dialog/style.css +2 -2
- package/dist/collection/components/drawer/style.css +2 -2
- package/dist/collection/components/form/style.css +2 -2
- package/dist/collection/components/icon/style.css +2 -2
- package/dist/collection/components/input-checkbox/style.css +2 -2
- package/dist/collection/components/input-color/style.css +2 -2
- package/dist/collection/components/input-date/style.css +2 -2
- package/dist/collection/components/input-email/style.css +2 -2
- package/dist/collection/components/input-file/style.css +2 -2
- package/dist/collection/components/input-number/style.css +2 -2
- package/dist/collection/components/input-password/style.css +2 -2
- package/dist/collection/components/input-radio/style.css +2 -2
- package/dist/collection/components/input-range/style.css +2 -2
- package/dist/collection/components/input-text/style.css +2 -2
- package/dist/collection/components/link/style.css +2 -2
- package/dist/collection/components/link-button/style.css +2 -2
- package/dist/collection/components/modal/style.css +2 -2
- package/dist/collection/components/nav/style.css +2 -2
- package/dist/collection/components/pagination/style.css +2 -2
- package/dist/collection/components/popover-button/style.css +2 -2
- package/dist/collection/components/select/style.css +2 -2
- package/dist/collection/components/single-select/style.css +2 -2
- package/dist/collection/components/skip-nav/style.css +2 -2
- package/dist/collection/components/split-button/style.css +2 -2
- package/dist/collection/components/table-stateful/style.css +2 -2
- package/dist/collection/components/table-stateless/style.css +2 -2
- package/dist/collection/components/tabs/style.css +2 -2
- package/dist/collection/components/textarea/style.css +2 -2
- package/dist/collection/components/toaster/style.css +2 -2
- package/dist/collection/components/toolbar/style.css +2 -2
- package/dist/collection/components/tree-item/style.css +2 -2
- package/dist/collection/components/version/style.css +2 -2
- package/dist/collection/utils/markdown.js +49 -3
- package/dist/components/base-web-component2.js +1 -1
- package/dist/components/base4.js +1 -1
- package/dist/components/behavior3.js +1 -1
- package/dist/components/bem-registry.js +1 -1
- package/dist/components/component6.js +1 -1
- package/dist/components/contrast.js +1 -1
- package/dist/components/controller.js +1 -1
- package/dist/components/devtools.js +1 -1
- package/dist/components/input-container.js +1 -1
- package/dist/components/kol-accordion.js +1 -1
- package/dist/components/kol-alert.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-icon.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-link-button.js +1 -1
- package/dist/components/kol-link.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-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-split-button.js +1 -1
- package/dist/components/kol-table-stateful.js +1 -1
- package/dist/components/kol-table-stateless.js +1 -1
- package/dist/components/kol-tabs.js +1 -1
- package/dist/components/kol-textarea.js +1 -1
- package/dist/components/kol-toast-container.js +1 -1
- package/dist/components/kol-toolbar.js +1 -1
- package/dist/components/kol-tree-item.js +1 -1
- package/dist/components/kol-version.js +1 -1
- package/dist/components/links.js +1 -1
- package/dist/esm/{Heading-BubZbykM.js → Heading-DDS-lyOB.js} +2 -2
- package/dist/esm/{api-D0RNr-zh.js → api-MBSY9afi.js} +16 -16
- package/dist/esm/{app-globals-DYRte_jr.js → app-globals-DytcyM_s.js} +2 -2
- package/dist/esm/{base-BbGt9eYx.js → base-D-me6QDT.js} +10 -10
- package/dist/esm/{base-BP5SdLvQ.js → base-D7-iAVBu.js} +20 -20
- package/dist/esm/{base-Cz00snD6.js → base-DP9yHJOV.js} +10 -10
- package/dist/esm/{base-CLsKm3-e.js → base-DZBnXHZh.js} +9 -9
- package/dist/esm/{base-web-component-CdSFFCst.js → base-web-component-BLA2cpyz.js} +8 -8
- package/dist/esm/{base-web-component-CYPdDdRn.js → base-web-component-Bh2NCN7p.js} +1 -1
- package/dist/esm/{base-web-component-DP9_OPgV.js → base-web-component-DwY54ppZ.js} +13 -13
- package/dist/esm/{behavior-BJR8CKBx.js → behavior-Cw8QfOcm.js} +3 -3
- package/dist/esm/{behavior-DlH8byIw.js → behavior-DUy0X7U1.js} +3 -3
- package/dist/esm/{behavior-B6y5Gofe.js → behavior-DmR4WVXd.js} +4 -4
- package/dist/esm/{color-BbljGuAW.js → color-CnRQPMm_.js} +2 -2
- package/dist/esm/{component-CSsUaL_h.js → component-B4CDonzN.js} +5 -5
- package/dist/esm/{component-CNgECeRi.js → component-BC1TpQVD.js} +8 -8
- package/dist/esm/{component-6_YiKr2Z.js → component-BUzgs8fh.js} +11 -11
- package/dist/esm/{component-DEwcJKDA.js → component-Bldy_ShO.js} +4 -4
- package/dist/esm/component-Cj3P_f35.js +173 -0
- package/dist/esm/{component-B8UMedaK.js → component-D5yKRPCZ.js} +3 -3
- package/dist/esm/{component-NOe28NXD.js → component-DisuGN16.js} +3 -3
- package/dist/esm/{component-CMHB3reH.js → component-DxnezN7K.js} +4 -4
- package/dist/esm/{component-bIIx1x7q.js → component-LadkF9an.js} +2 -2
- package/dist/esm/{component-CiJGQTU0.js → component-ZJiUl6kZ.js} +10 -10
- package/dist/esm/{component-ZdHnXLLI.js → component-vxdandl4.js} +6 -6
- package/dist/esm/{contrast-DtK0a6X2.js → contrast-pfwNxK_L.js} +1 -1
- package/dist/esm/{dev.utils-B0t4rcBV.js → dev.utils-DM7Qhcet.js} +1 -1
- package/dist/esm/{devtools-DuJRc6wJ.js → devtools-CxUqjh1N.js} +2 -2
- package/dist/esm/{disabled-B2o4Ctgy.js → disabled-C2DzYwwy.js} +1 -1
- package/dist/esm/{field-control-C9dIXnES.js → field-control-CQJgDAKK.js} +6 -6
- package/dist/esm/{group-DydT1Z92.js → group-DCoICCiG.js} +4 -4
- package/dist/esm/{has-closer-BrG00xL7.js → has-closer-x20C4xl3.js} +1 -1
- package/dist/esm/{href-CfNF4pHX.js → href-vIF4eC7d.js} +1 -1
- package/dist/esm/{id-Bh4FF8c0.js → id-lCAtMmMx.js} +1 -1
- package/dist/esm/{index-Bbr6Os1b.js → index-8-BSSKQL.js} +1 -1
- package/dist/esm/{input-C1YsxnDL.js → input-C4yo-d7N.js} +4 -4
- package/dist/esm/{input-container-zXl_6y52.js → input-container-Cb2xJUCl.js} +5 -5
- package/dist/esm/{item-zXunNZh5.js → item-BANfM_Mo.js} +9 -9
- package/dist/esm/{item-DXDEHrEg.js → item-C2HHBTvm.js} +4 -4
- package/dist/esm/{item-hsQoejqZ.js → item-H09kNXn9.js} +4 -4
- package/dist/esm/{item-Dms_59sU.js → item-gvmzMXYb.js} +11 -11
- package/dist/esm/kol-abbr.entry.js +5 -5
- package/dist/esm/kol-accordion.entry.js +14 -14
- package/dist/esm/kol-alert.entry.js +21 -21
- package/dist/esm/kol-avatar.entry.js +9 -9
- package/dist/esm/kol-badge.entry.js +22 -22
- package/dist/esm/kol-breadcrumb.entry.js +22 -22
- package/dist/esm/kol-button-link.entry.js +19 -19
- package/dist/esm/kol-button.entry.js +19 -19
- package/dist/esm/kol-card.entry.js +24 -24
- package/dist/esm/kol-combobox.entry.js +32 -32
- package/dist/esm/kol-details.entry.js +14 -14
- package/dist/esm/kol-dialog.entry.js +27 -27
- package/dist/esm/kol-drawer.entry.js +26 -26
- package/dist/esm/kol-form.entry.js +20 -20
- package/dist/esm/kol-heading.entry.js +9 -9
- package/dist/esm/kol-icon.entry.js +7 -7
- package/dist/esm/kol-image.entry.js +4 -4
- package/dist/esm/kol-input-checkbox.entry.js +28 -28
- package/dist/esm/kol-input-color.entry.js +31 -31
- package/dist/esm/kol-input-date.entry.js +33 -33
- package/dist/esm/kol-input-email.entry.js +37 -37
- package/dist/esm/kol-input-file.entry.js +30 -30
- package/dist/esm/kol-input-number.entry.js +35 -35
- package/dist/esm/kol-input-password.entry.js +35 -35
- package/dist/esm/kol-input-radio.entry.js +30 -30
- package/dist/esm/kol-input-range.entry.js +31 -31
- package/dist/esm/kol-input-text.entry.js +37 -37
- package/dist/esm/kol-kolibri.entry.js +3 -3
- package/dist/esm/kol-link-button.entry.js +20 -20
- package/dist/esm/kol-link.entry.js +20 -20
- package/dist/esm/kol-meter.entry.js +9 -9
- package/dist/esm/kol-modal.entry.js +27 -27
- package/dist/esm/kol-nav.entry.js +27 -27
- package/dist/esm/kol-pagination.entry.js +33 -33
- package/dist/esm/kol-popover-button.entry.js +20 -20
- package/dist/esm/kol-progress.entry.js +8 -8
- package/dist/esm/kol-quote.entry.js +6 -6
- package/dist/esm/kol-select.entry.js +30 -30
- package/dist/esm/kol-single-select.entry.js +32 -32
- package/dist/esm/kol-skip-nav.entry.js +22 -22
- package/dist/esm/kol-spin.entry.js +7 -7
- package/dist/esm/kol-split-button.entry.js +22 -22
- package/dist/esm/kol-table-stateful.entry.js +45 -45
- package/dist/esm/kol-table-stateless.entry.js +34 -34
- package/dist/esm/kol-tabs.entry.js +19 -19
- package/dist/esm/kol-textarea.entry.js +33 -33
- package/dist/esm/kol-toast-container.entry.js +16 -16
- package/dist/esm/kol-toolbar.entry.js +24 -24
- package/dist/esm/kol-tooltip-wc.entry.js +10 -10
- package/dist/esm/kol-tree-item.entry.js +18 -18
- package/dist/esm/kol-tree.entry.js +6 -6
- package/dist/esm/kol-version.entry.js +17 -17
- package/dist/esm/kolibri.js +3 -3
- package/dist/esm/{label-hints-CZGo9ZD5.js → label-hints-BUADjqKF.js} +1 -1
- package/dist/esm/{label-lang-segment-C5LYGOHt.js → label-lang-segment-B13iL7iy.js} +2 -2
- package/dist/esm/{label-BQVd3bkc.js → label-mr5joqaQ.js} +3 -3
- package/dist/esm/{label-with-expert-slot-D1tpX9DI.js → label-with-expert-slot-BVqi0_Fb.js} +3 -3
- package/dist/esm/{level-BVXGgbSM.js → level-eGeMFn0b.js} +1 -1
- package/dist/esm/{link-target-BWPSEd9a.js → link-target-DEH-wAmf.js} +1 -1
- package/dist/esm/{links-BbsnNXfa.js → links-Dy9WkOJ-.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{multiple-S3Ol1G6Z.js → multiple-F8uOX8RD.js} +1 -1
- package/dist/esm/{number-value-DmOl1z7z.js → number-value-DncK2_pC.js} +1 -1
- package/dist/esm/{open-DPP79Urq.js → open-DoPXNruj.js} +1 -1
- package/dist/esm/{options-aA3M-QV2.js → options-DcIQ-KB2.js} +1 -1
- package/dist/esm/{orientation-DlsgaY1v.js → orientation-tX0FldEu.js} +1 -1
- package/dist/esm/{placeholder-DlHbiVjz.js → placeholder-BPZ2sQEB.js} +1 -1
- package/dist/esm/{props-from-config-BOUcpF7e.js → props-from-config-LBgEHmcL.js} +1 -1
- package/dist/esm/{read-only-DSBWEPED.js → read-only-9BPUG7r4.js} +1 -1
- package/dist/esm/{required-xw5BBPvV.js → required-DBJ4iW2e.js} +1 -1
- package/dist/esm/{resolve-props-DAVb5BM3.js → resolve-props-0xfjG6h5.js} +6 -6
- package/dist/esm/{resolve-props-CL8wxjtP.js → resolve-props-BQa6SjZU.js} +7 -7
- package/dist/esm/{rows-DRV8YlQv.js → rows-DuYJeJT7.js} +1 -1
- package/dist/esm/{scroll-lock-BxAe0gL5.js → scroll-lock-CIv7iOPB.js} +2 -2
- package/dist/esm/{smart-button-CQps8AlL.js → smart-button-p4avK7MS.js} +1 -1
- package/dist/esm/{spell-check-hy6xFhmT.js → spell-check-Bvc-Peew.js} +1 -1
- package/dist/esm/{src-AwoM1pRe.js → src-CVwlo_cY.js} +1 -1
- package/dist/esm/{step-CopA0_m7.js → step-oCposIuI.js} +1 -1
- package/dist/esm/{suggestions-CY8BJMOa.js → suggestions-BsWy2U2z.js} +1 -1
- package/dist/esm/{suggestions-BsiiaAxK.js → suggestions-fWMdnACm.js} +3 -3
- package/dist/esm/test-component.entry.js +1 -1
- package/dist/esm/{toggle-handler-ZMs2rBXc.js → toggle-handler-CtJ2Z7Us.js} +8 -8
- package/dist/esm/{unique-nav-labels-BV-M3fPR.js → unique-nav-labels-CZIyOzqJ.js} +1 -1
- package/dist/esm/{unit-hmMwqE9a.js → unit-YqluIXsF.js} +1 -1
- package/dist/esm/{validators-BgDmq-Qt.js → validators-ByUMEUYD.js} +1 -1
- package/dist/esm/{value-string-Dy8zJxlP.js → value-string-Baqhc_TX.js} +1 -1
- package/dist/esm/{width-BHn7XHj_.js → width-BJNhiv_8.js} +1 -1
- package/dist/kolibri/Heading-DDS-lyOB.js +4 -0
- package/dist/kolibri/{api-D0RNr-zh.js → api-MBSY9afi.js} +1 -1
- package/dist/kolibri/app-globals-DytcyM_s.js +4 -0
- package/dist/kolibri/base-D-me6QDT.js +4 -0
- package/dist/kolibri/base-D7-iAVBu.js +4 -0
- package/dist/kolibri/base-DP9yHJOV.js +4 -0
- package/dist/kolibri/{base-CLsKm3-e.js → base-DZBnXHZh.js} +1 -1
- package/dist/kolibri/{base-web-component-CdSFFCst.js → base-web-component-BLA2cpyz.js} +1 -1
- package/dist/kolibri/{base-web-component-CYPdDdRn.js → base-web-component-Bh2NCN7p.js} +1 -1
- package/dist/kolibri/{base-web-component-DP9_OPgV.js → base-web-component-DwY54ppZ.js} +1 -1
- package/dist/kolibri/{behavior-BJR8CKBx.js → behavior-Cw8QfOcm.js} +1 -1
- package/dist/kolibri/{behavior-DlH8byIw.js → behavior-DUy0X7U1.js} +1 -1
- package/dist/kolibri/{behavior-B6y5Gofe.js → behavior-DmR4WVXd.js} +1 -1
- package/dist/kolibri/{color-BbljGuAW.js → color-CnRQPMm_.js} +1 -1
- package/dist/kolibri/{component-CSsUaL_h.js → component-B4CDonzN.js} +1 -1
- package/dist/kolibri/component-BC1TpQVD.js +4 -0
- package/dist/kolibri/component-BUzgs8fh.js +4 -0
- package/dist/kolibri/component-Bldy_ShO.js +4 -0
- package/dist/kolibri/component-Cj3P_f35.js +4 -0
- package/dist/kolibri/component-D5yKRPCZ.js +4 -0
- package/dist/kolibri/{component-NOe28NXD.js → component-DisuGN16.js} +1 -1
- package/dist/kolibri/component-DxnezN7K.js +4 -0
- package/dist/kolibri/component-LadkF9an.js +4 -0
- package/dist/kolibri/component-ZJiUl6kZ.js +4 -0
- package/dist/kolibri/component-vxdandl4.js +4 -0
- package/dist/kolibri/{contrast-DtK0a6X2.js → contrast-pfwNxK_L.js} +1 -1
- package/dist/kolibri/{dev.utils-B0t4rcBV.js → dev.utils-DM7Qhcet.js} +1 -1
- package/dist/kolibri/{devtools-DuJRc6wJ.js → devtools-CxUqjh1N.js} +1 -1
- package/dist/kolibri/disabled-C2DzYwwy.js +4 -0
- package/dist/kolibri/field-control-CQJgDAKK.js +4 -0
- package/dist/kolibri/{group-DydT1Z92.js → group-DCoICCiG.js} +1 -1
- package/dist/kolibri/has-closer-x20C4xl3.js +4 -0
- package/dist/kolibri/href-vIF4eC7d.js +4 -0
- package/dist/kolibri/id-lCAtMmMx.js +4 -0
- package/dist/kolibri/index-8-BSSKQL.js +6 -0
- package/dist/kolibri/input-C4yo-d7N.js +4 -0
- package/dist/kolibri/{input-container-zXl_6y52.js → input-container-Cb2xJUCl.js} +1 -1
- package/dist/kolibri/{item-zXunNZh5.js → item-BANfM_Mo.js} +1 -1
- package/dist/kolibri/item-C2HHBTvm.js +4 -0
- package/dist/kolibri/item-H09kNXn9.js +4 -0
- package/dist/kolibri/item-gvmzMXYb.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-hints-CZGo9ZD5.js → label-hints-BUADjqKF.js} +1 -1
- package/dist/kolibri/label-lang-segment-B13iL7iy.js +4 -0
- package/dist/kolibri/label-mr5joqaQ.js +4 -0
- package/dist/kolibri/label-with-expert-slot-BVqi0_Fb.js +4 -0
- package/dist/kolibri/level-eGeMFn0b.js +4 -0
- package/dist/kolibri/link-target-DEH-wAmf.js +4 -0
- package/dist/kolibri/{links-BbsnNXfa.js → links-Dy9WkOJ-.js} +1 -1
- package/dist/kolibri/multiple-F8uOX8RD.js +4 -0
- package/dist/kolibri/{number-value-DmOl1z7z.js → number-value-DncK2_pC.js} +1 -1
- package/dist/kolibri/open-DoPXNruj.js +4 -0
- package/dist/kolibri/{options-aA3M-QV2.js → options-DcIQ-KB2.js} +1 -1
- package/dist/kolibri/{orientation-DlsgaY1v.js → orientation-tX0FldEu.js} +1 -1
- package/dist/kolibri/placeholder-BPZ2sQEB.js +4 -0
- package/dist/kolibri/{props-from-config-BOUcpF7e.js → props-from-config-LBgEHmcL.js} +1 -1
- package/dist/kolibri/read-only-9BPUG7r4.js +4 -0
- package/dist/kolibri/required-DBJ4iW2e.js +4 -0
- package/dist/kolibri/resolve-props-0xfjG6h5.js +4 -0
- package/dist/kolibri/resolve-props-BQa6SjZU.js +4 -0
- package/dist/kolibri/rows-DuYJeJT7.js +4 -0
- package/dist/kolibri/{scroll-lock-BxAe0gL5.js → scroll-lock-CIv7iOPB.js} +1 -1
- package/dist/kolibri/{smart-button-CQps8AlL.js → smart-button-p4avK7MS.js} +1 -1
- package/dist/kolibri/spell-check-Bvc-Peew.js +4 -0
- package/dist/kolibri/src-CVwlo_cY.js +4 -0
- package/dist/kolibri/step-oCposIuI.js +4 -0
- package/dist/kolibri/{suggestions-CY8BJMOa.js → suggestions-BsWy2U2z.js} +1 -1
- package/dist/kolibri/suggestions-fWMdnACm.js +4 -0
- package/dist/kolibri/test-component.entry.js +1 -1
- package/dist/kolibri/toggle-handler-CtJ2Z7Us.js +4 -0
- package/dist/kolibri/unique-nav-labels-CZIyOzqJ.js +4 -0
- package/dist/kolibri/unit-YqluIXsF.js +4 -0
- package/dist/kolibri/validators-ByUMEUYD.js +4 -0
- package/dist/kolibri/value-string-Baqhc_TX.js +4 -0
- package/dist/kolibri/{width-BHn7XHj_.js → width-BJNhiv_8.js} +1 -1
- package/package.json +3 -5
- package/dist/cjs/component-DE4OHvyu.js +0 -9299
- package/dist/esm/component-hiabKVP3.js +0 -9294
- package/dist/kolibri/Heading-BubZbykM.js +0 -4
- package/dist/kolibri/app-globals-DYRte_jr.js +0 -4
- package/dist/kolibri/base-BP5SdLvQ.js +0 -4
- package/dist/kolibri/base-BbGt9eYx.js +0 -4
- package/dist/kolibri/base-Cz00snD6.js +0 -4
- package/dist/kolibri/component-6_YiKr2Z.js +0 -4
- package/dist/kolibri/component-B8UMedaK.js +0 -4
- package/dist/kolibri/component-CMHB3reH.js +0 -4
- package/dist/kolibri/component-CNgECeRi.js +0 -4
- package/dist/kolibri/component-CiJGQTU0.js +0 -4
- package/dist/kolibri/component-DEwcJKDA.js +0 -4
- package/dist/kolibri/component-ZdHnXLLI.js +0 -4
- package/dist/kolibri/component-bIIx1x7q.js +0 -4
- package/dist/kolibri/component-hiabKVP3.js +0 -4
- package/dist/kolibri/disabled-B2o4Ctgy.js +0 -4
- package/dist/kolibri/field-control-C9dIXnES.js +0 -4
- package/dist/kolibri/has-closer-BrG00xL7.js +0 -4
- package/dist/kolibri/href-CfNF4pHX.js +0 -4
- package/dist/kolibri/id-Bh4FF8c0.js +0 -4
- package/dist/kolibri/index-Bbr6Os1b.js +0 -6
- package/dist/kolibri/input-C1YsxnDL.js +0 -4
- package/dist/kolibri/item-DXDEHrEg.js +0 -4
- package/dist/kolibri/item-Dms_59sU.js +0 -4
- package/dist/kolibri/item-hsQoejqZ.js +0 -4
- package/dist/kolibri/label-BQVd3bkc.js +0 -4
- package/dist/kolibri/label-lang-segment-C5LYGOHt.js +0 -4
- package/dist/kolibri/label-with-expert-slot-D1tpX9DI.js +0 -4
- package/dist/kolibri/level-BVXGgbSM.js +0 -4
- package/dist/kolibri/link-target-BWPSEd9a.js +0 -4
- package/dist/kolibri/multiple-S3Ol1G6Z.js +0 -4
- package/dist/kolibri/open-DPP79Urq.js +0 -4
- package/dist/kolibri/placeholder-DlHbiVjz.js +0 -4
- package/dist/kolibri/read-only-DSBWEPED.js +0 -4
- package/dist/kolibri/required-xw5BBPvV.js +0 -4
- package/dist/kolibri/resolve-props-CL8wxjtP.js +0 -4
- package/dist/kolibri/resolve-props-DAVb5BM3.js +0 -4
- package/dist/kolibri/rows-DRV8YlQv.js +0 -4
- package/dist/kolibri/spell-check-hy6xFhmT.js +0 -4
- package/dist/kolibri/src-AwoM1pRe.js +0 -4
- package/dist/kolibri/step-CopA0_m7.js +0 -4
- package/dist/kolibri/suggestions-BsiiaAxK.js +0 -4
- package/dist/kolibri/toggle-handler-ZMs2rBXc.js +0 -4
- package/dist/kolibri/unique-nav-labels-BV-M3fPR.js +0 -4
- package/dist/kolibri/unit-hmMwqE9a.js +0 -4
- package/dist/kolibri/validators-BgDmq-Qt.js +0 -4
- package/dist/kolibri/value-string-Dy8zJxlP.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{r as o,h as t,H as e,g as i}from"./index-Bbr6Os1b.js";import{_ as n}from"./tslib.es6-QNbPBOk5.js";import{f as r,s as a,o as l}from"./common-BdSzSIXg.js";import{c as s}from"./color-BbljGuAW.js";import"./props-from-config-BOUcpF7e.js";import{l as c}from"./label-with-expert-slot-D1tpX9DI.js";import{s as d}from"./smart-button-CQps8AlL.js";import{s as h}from"./component-DEwcJKDA.js";import{B as b}from"./component-CMHB3reH.js";import{B as m}from"./base-web-component-CYPdDdRn.js";import{r as k}from"./resolve-props-DAVb5BM3.js";import{T as p}from"./behavior-B6y5Gofe.js";import{c as f,n as u}from"./dev.utils-B0t4rcBV.js";import{d as g,c as v}from"./element-interaction-sGYdEpmv.js";import{d as y,K as w}from"./events-CRHxtwup.js";import"./contrast-DtK0a6X2.js";import"./bem-registry-SKACeCny.js";import"./validators-BgDmq-Qt.js";import"./label-hints-CZGo9ZD5.js";import"./component-B8UMedaK.js";import"./component-hiabKVP3.js";import"./component-bIIx1x7q.js";import"./component-CNgECeRi.js";import"./disabled-B2o4Ctgy.js";import"./id-Bh4FF8c0.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./label-lang-segment-C5LYGOHt.js";import"./element-focus-BIRmGg5W.js";const _={required:[c],optional:[s,d,h]};r("[KolBadge] Optimierung des _color-Properties (rgba, rgb, hex usw.).");const x=class extends m{constructor(t){super(...arguments),new.target===x&&o(this,t),this.labelId=f("badge-label"),this.ariaDescriptionId=u(),this.ctaRef=v(),this.tooltipBehavior=new p(this.stateAccess),this.propsConfig=_,this._color="#000",this._icons=void 0,this._smartButton=void 0,this.handleClick=o=>{var t;o.stopPropagation(),this.tooltipBehavior.hideTooltip();const e=null===(t=this.smartButtonProps)||void 0===t?void 0:t.on.onClick;"function"==typeof e&&(a(o,this.ctaRef.el),e(o,void 0)),this.host&&y(this.host,w.click)},this.handleMouseDown=o=>{var t,e,i;null===(i=null===(t=this.smartButtonProps)||void 0===t?void 0:(e=t.on).onMouseDown)||void 0===i||i.call(e,o),this.host&&y(this.host,w.mousedown)},this.handleFocus=o=>{var t,e,i;null===(i=null===(t=this.smartButtonProps)||void 0===t?void 0:(e=t.on).onFocus)||void 0===i||i.call(e,o),this.host&&y(this.host,w.focus)},this.handleBlur=o=>{var t,e,i;null===(i=null===(t=this.smartButtonProps)||void 0===t?void 0:(e=t.on).onBlur)||void 0===i||i.call(e,o),this.host&&y(this.host,w.blur)}}watchColor(o){s.apply(o,(o=>this.setRenderProp("color",o)))}watchIcons(o){h.apply(o,(o=>this.setRenderProp("icons",o)))}watchLabel(o){c.apply(o,(o=>this.setRenderProp("label",o)),this.isRequired("label"))}watchSmartButton(o){this.applySmartButton(o)}focus(o){return Promise.resolve()}componentWillLoad(){this.unsetRenderProp("smartButton"),this.watchColor(this._color),this.watchIcons(this._icons),this.watchLabel(this._label),this.watchSmartButton(this._smartButton)}componentDidRender(){this.ctaRef.el&&this.tooltipBehavior.syncListeners(void 0,this.ctaRef.el,!0)}disconnectedCallback(){this.tooltipBehavior.destroy()}applySmartButton(o){l(o,(()=>{this.unsetRenderProp("smartButton"),this.smartButtonProps=void 0,null!=o&&d.apply(o,(o=>{this.setRenderProp("smartButton",o),this.smartButtonProps=k(Object.assign(Object.assign({},o),{_hideLabel:!0,_ariaControls:this.labelId}),this.host),this.tooltipBehavior.componentWillLoad({label:this.smartButtonProps.label,align:this.smartButtonProps.tooltipAlign})}))}))}render(){const o=this.getRenderProp("smartButton"),i=this.smartButtonProps;return t(e,{key:"92a82608b8424d8b91480b7dd132afc12fec8717"},t(b,{key:"3a0ec94ab587dc7b6e49f2530ad61d7fb590b501",color:this.getRenderProp("color"),icons:this.getRenderProp("icons"),label:this.getRenderProp("label"),smartButton:"object"==typeof o&&null!==o&&void 0!==i?{ariaDescriptionId:this.ariaDescriptionId,handleBlur:this.handleBlur,handleClick:this.handleClick,handleFocus:this.handleFocus,handleMouseDown:this.handleMouseDown,labelId:this.labelId,refSmartButton:this.ctaRef,refTooltip:this.tooltipBehavior.setTooltipElementRef,resolvedButton:i}:void 0}))}get host(){return i(this)}static get watchers(){return{_color:[{watchColor:0}],_icons:[{watchIcons:0}],_label:[{watchLabel:0}],_smartButton:[{watchSmartButton:0}]}}};n([g("ctaRef")],x.prototype,"focus",null),x.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; } .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; } .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-badge .kol-badge__smart-button { width: auto; order: 3; } }'};export{x as kol_badge}
|
|
4
|
+
import{r as o,h as t,H as e,g as i}from"./index-8-BSSKQL.js";import{_ as n}from"./tslib.es6-QNbPBOk5.js";import{f as a,s as l,o as r}from"./common-BdSzSIXg.js";import{c as s}from"./color-CnRQPMm_.js";import"./props-from-config-LBgEHmcL.js";import{l as c}from"./label-with-expert-slot-BVqi0_Fb.js";import{s as d}from"./smart-button-p4avK7MS.js";import{s as h}from"./component-Bldy_ShO.js";import{B as m}from"./component-DxnezN7K.js";import{B as b}from"./base-web-component-Bh2NCN7p.js";import{r as k}from"./resolve-props-0xfjG6h5.js";import{T as p}from"./behavior-DmR4WVXd.js";import{c as f,n as u}from"./dev.utils-DM7Qhcet.js";import{d as g,c as v}from"./element-interaction-sGYdEpmv.js";import{d as y,K as w}from"./events-CRHxtwup.js";import"./contrast-pfwNxK_L.js";import"./bem-registry-SKACeCny.js";import"./validators-ByUMEUYD.js";import"./label-hints-BUADjqKF.js";import"./component-D5yKRPCZ.js";import"./component-Cj3P_f35.js";import"./component-LadkF9an.js";import"./component-BC1TpQVD.js";import"./disabled-C2DzYwwy.js";import"./id-lCAtMmMx.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./label-lang-segment-B13iL7iy.js";import"./element-focus-BIRmGg5W.js";const _={required:[c],optional:[s,d,h]};a("[KolBadge] Optimierung des _color-Properties (rgba, rgb, hex usw.).");const x=class extends b{constructor(t){super(...arguments),new.target===x&&o(this,t),this.labelId=f("badge-label"),this.ariaDescriptionId=u(),this.ctaRef=v(),this.tooltipBehavior=new p(this.stateAccess),this.propsConfig=_,this._color="#000",this._icons=void 0,this._smartButton=void 0,this.handleClick=o=>{var t;o.stopPropagation(),this.tooltipBehavior.hideTooltip();const e=null===(t=this.smartButtonProps)||void 0===t?void 0:t.on.onClick;"function"==typeof e&&(l(o,this.ctaRef.el),e(o,void 0)),this.host&&y(this.host,w.click)},this.handleMouseDown=o=>{var t,e,i;null===(i=null===(t=this.smartButtonProps)||void 0===t?void 0:(e=t.on).onMouseDown)||void 0===i||i.call(e,o),this.host&&y(this.host,w.mousedown)},this.handleFocus=o=>{var t,e,i;null===(i=null===(t=this.smartButtonProps)||void 0===t?void 0:(e=t.on).onFocus)||void 0===i||i.call(e,o),this.host&&y(this.host,w.focus)},this.handleBlur=o=>{var t,e,i;null===(i=null===(t=this.smartButtonProps)||void 0===t?void 0:(e=t.on).onBlur)||void 0===i||i.call(e,o),this.host&&y(this.host,w.blur)}}watchColor(o){s.apply(o,(o=>this.setRenderProp("color",o)))}watchIcons(o){h.apply(o,(o=>this.setRenderProp("icons",o)))}watchLabel(o){c.apply(o,(o=>this.setRenderProp("label",o)),this.isRequired("label"))}watchSmartButton(o){this.applySmartButton(o)}focus(o){return Promise.resolve()}componentWillLoad(){this.unsetRenderProp("smartButton"),this.watchColor(this._color),this.watchIcons(this._icons),this.watchLabel(this._label),this.watchSmartButton(this._smartButton)}componentDidRender(){this.ctaRef.el&&this.tooltipBehavior.syncListeners(void 0,this.ctaRef.el,!0)}disconnectedCallback(){this.tooltipBehavior.destroy()}applySmartButton(o){r(o,(()=>{this.unsetRenderProp("smartButton"),this.smartButtonProps=void 0,null!=o&&d.apply(o,(o=>{this.setRenderProp("smartButton",o),this.smartButtonProps=k(Object.assign(Object.assign({},o),{_hideLabel:!0,_ariaControls:this.labelId}),this.host),this.tooltipBehavior.componentWillLoad({label:this.smartButtonProps.label,align:this.smartButtonProps.tooltipAlign})}))}))}render(){const o=this.getRenderProp("smartButton"),i=this.smartButtonProps;return t(e,{key:"92a82608b8424d8b91480b7dd132afc12fec8717"},t(m,{key:"3a0ec94ab587dc7b6e49f2530ad61d7fb590b501",color:this.getRenderProp("color"),icons:this.getRenderProp("icons"),label:this.getRenderProp("label"),smartButton:"object"==typeof o&&null!==o&&void 0!==i?{ariaDescriptionId:this.ariaDescriptionId,handleBlur:this.handleBlur,handleClick:this.handleClick,handleFocus:this.handleFocus,handleMouseDown:this.handleMouseDown,labelId:this.labelId,refSmartButton:this.ctaRef,refTooltip:this.tooltipBehavior.setTooltipElementRef,resolvedButton:i}:void 0}))}get host(){return i(this)}static get watchers(){return{_color:[{watchColor:0}],_icons:[{watchIcons:0}],_label:[{watchLabel:0}],_smartButton:[{watchSmartButton:0}]}}};n([g("ctaRef")],x.prototype,"focus",null),x.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=1795160658049"); src: url("kolicons.eot?t=1795160658049#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1795160658049") format("woff2"), url("kolicons.woff?t=1795160658049") format("woff"), url("kolicons.ttf?t=1795160658049") format("truetype"), url("kolicons.svg?t=1795160658049#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-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; } .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-badge .kol-badge__smart-button { width: auto; order: 3; } }'};export{x as kol_badge}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as o,F as e,r as t,H as i,g as n}from"./index-Bbr6Os1b.js";import{s as l,b as a,X as r}from"./common-BdSzSIXg.js";import{B as s}from"./base-web-component-CYPdDdRn.js";import{c}from"./links-BbsnNXfa.js";import{B as d,t as k,d as m}from"./props-from-config-BOUcpF7e.js";import{l as b}from"./label-BQVd3bkc.js";import{b as p}from"./bem-registry-SKACeCny.js";import{I as f}from"./component-bIIx1x7q.js";import{L as h,l as u,a as g,d as y,b as _}from"./component-CiJGQTU0.js";import{r as v}from"./component-hiabKVP3.js";import{v as x}from"./access-and-short-key-ijzCZfHm.js";import{n as w}from"./dev.utils-B0t4rcBV.js";import{c as j}from"./element-interaction-sGYdEpmv.js";import{d as B,K as C}from"./events-CRHxtwup.js";import{a as z,b as T,c as G,h as L,s as D,i as P,d as I,t as O,e as S}from"./component-DEwcJKDA.js";import{d as F}from"./disabled-B2o4Ctgy.js";import{h as H}from"./href-CfNF4pHX.js";import{l as K}from"./label-with-expert-slot-D1tpX9DI.js";import{l as R}from"./link-target-BWPSEd9a.js";import{T as V}from"./behavior-B6y5Gofe.js";import{r as q,a as N}from"./unique-nav-labels-BV-M3fPR.js";import{o as Q}from"./ariaCurrentService-YoLNpD5S.js";import"./validators-BgDmq-Qt.js";import"./label-hints-CZGo9ZD5.js";import"./tslib.es6-QNbPBOk5.js";import"./i18n-BLkzMf6D.js";import"./i18n-BRgvVqCf.js";import"./component-B8UMedaK.js";import"./element-focus-BIRmGg5W.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./id-Bh4FF8c0.js";import"./label-lang-segment-C5LYGOHt.js";const U=c("KolBreadcrumb"),X={required:[U,b]},Y=p.forBlock("kol-breadcrumb"),E=Y("icon"),M=Y("link"),W=Y("list"),Z=Y("list-element"),A=Y("list-element-span"),J=Y("separator"),$=({label:t,linkItems:i,showCurrentPage:n})=>{const l=i.length-1;return o(d,{component:"nav",block:"kol-breadcrumb","aria-label":t},o("ul",{class:W},0===i.length&&o("li",null,o(f,{class:"kol-breadcrumb_icon",icons:"kolicon-house",label:""}),"…"),i.map(((t,i)=>((t,i,n,l)=>{const a=l?i!==n:i<n-1;if(i===n&&!l)return o(e,null);const{link:r}=t;return o("li",{class:Z,key:i},i===n?o("span",{class:A,"aria-current":"page"},r._hideLabel?o(f,{class:E,icons:"string"==typeof r._icons?r._icons:"kolicon-link",label:r._label?k(r._label):r._href}):o(e,null,v(r._label))):o("div",{class:M},o(h,Object.assign({},t.fcProps))),a&&o(f,{class:J,icons:"kolicon-chevron-right",label:""}))})(t,i,l,n)))))},oo=class extends s{constructor(o){super(...arguments),new.target===oo&&t(this,o),this.linkItems=[],this.showCurrentPage=!0,this.propsConfig=X}watchLabel(o){this.applyLabel(o)}watchLinks(o){this.applyLinks(o)}componentWillLoad(){this.applyLabel(this._label,!0),this.applyLinks(this._links),this.unsubscribeOnLocationChange=Q((o=>{this.linkItems=this.linkItems.map((e=>{var t;const i=o===e.fcProps.href&&null!==(t=e.fcProps.ariaCurrentValue)&&void 0!==t?t:"";return e.fcProps.ariaCurrent===i?e:Object.assign(Object.assign({},e),{fcProps:Object.assign(Object.assign({},e.fcProps),{ariaCurrent:i})})}))}))}componentDidRender(){this.linkItems.forEach((o=>o.syncTooltipListeners()))}disconnectedCallback(){this.unsubscribeOnLocationChange&&(this.unsubscribeOnLocationChange(),this.unsubscribeOnLocationChange=void 0),this.linkItems.forEach((o=>o.destroy())),q(this.getRenderProp("label"))}applyLabel(o,e=!1){e||q(this.getRenderProp("label")),b.apply(o,(o=>this.setRenderProp("label",o)),this.isRequired("label")),a(o),N(this.getRenderProp("label"))}applyLinks(o){U.apply(o,(o=>{this.setRenderProp("links",o),this.linkItems.forEach((o=>o.destroy())),this.linkItems=o.map((o=>((o,e)=>{var t;const i=new V(s.stateLess),n=j(),a=m(u);a.tabIndex=void 0;const r=(o,e)=>o.apply(e,(e=>{a[o.propName]=e}));return r(z,o._accessKey),r(T,o._ariaControls),r(g,o._ariaCurrentValue),r(G,o._ariaDescription),r(F,o._disabled),r(y,o._download),r(L,o._hideLabel),r(H,o._href),r(D,o._icons),r(P,null!==(t=o._inline)&&void 0!==t&&t),r(K,o._label),r(_,o._on),r(I,o._shortKey),"number"==typeof o._tabIndex&&r(O,o._tabIndex),r(R,o._target),r(S,o._tooltipAlign),x(o._accessKey,o._shortKey),i.componentWillLoad({label:(()=>{const o=a.label;if("string"==typeof o&&o.length>0)return o;const e=a.href;return"string"==typeof e?e:""})(),align:a.tooltipAlign}),a.ariaCurrent="",a.ariaDescriptionId=w(),a.expertSlot=""===o._label,a.handleAnchorClick=o=>{if(i.hideTooltip(),!0===a.disabled)return void o.preventDefault();const t="string"==typeof a.href?a.href:"",r=a.on;"function"==typeof(null==r?void 0:r.onClick)&&(l(o,n.el),r.onClick(o,t));const s=e();s&&B(s,C.click,t)},a.refAnchor=o=>{n(o)},a.refTooltip=i.setTooltipElementRef,{link:o,fcProps:a,syncTooltipListeners:()=>{n.el&&i.syncListeners(void 0,n.el,!0)},destroy:()=>{i.destroy()}}})(o,(()=>this.host))))}))}render(){return this.showCurrentPage="hide"!==r("breadcrumbCurrentPage",this.host),o(i,{key:"8a8c9137c0491103f54d65dfe8db53c0c7d629b6"},o($,{key:"ab994f68a8b57e4dae385927a592db76907537cc",label:this.getRenderProp("label"),links:this.getRenderProp("links"),linkItems:this.linkItems,showCurrentPage:this.showCurrentPage}))}get host(){return n(this)}static get watchers(){return{_label:[{watchLabel:0}],_links:[{watchLinks:0}]}}};oo.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: inline-flex; max-width: fit-content; } .kol-link--standalone { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: stretch; } .kol-link--standalone .kol-link__interactive-element { align-items: stretch; } .kol-link--standalone .kol-link__text { display: inline-flex; flex: 1 1 100%; place-items: center; } .kol-link__interactive-element { display: inline-flex; flex: 1; align-items: baseline; place-items: center; text-align: left; text-decoration-line: none; } .kol-link__interactive-element:focus:not([aria-disabled], [disabled]) .kol-span__label, .kol-link__interactive-element:hover:not([aria-disabled], [disabled]) .kol-span__label { text-decoration-thickness: 0.2em; } .kol-link .kol-span__label { text-decoration-line: underline; } .kol-link__icon { display: inline-flex; } .kol-breadcrumb__list, .kol-breadcrumb__list-element { display: flex; margin: 0; padding: 0; flex-wrap: wrap; place-items: center; list-style: none; } .kol-breadcrumb__list-element:first-child:last-child { min-height: var(--a11y-min-size); } }'};export{oo as kol_breadcrumb}
|
|
4
|
+
import{h as o,F as e,r as t,H as i,g as n}from"./index-8-BSSKQL.js";import{s as l,b as a,X as r}from"./common-BdSzSIXg.js";import{B as s}from"./base-web-component-Bh2NCN7p.js";import{c}from"./links-Dy9WkOJ-.js";import{B as d,t as k,d as m}from"./props-from-config-LBgEHmcL.js";import{l as b}from"./label-mr5joqaQ.js";import{b as p}from"./bem-registry-SKACeCny.js";import{I as f}from"./component-LadkF9an.js";import{L as h,l as u,a as g,d as y,b as _}from"./component-ZJiUl6kZ.js";import{r as v}from"./component-Cj3P_f35.js";import{v as w}from"./access-and-short-key-ijzCZfHm.js";import{n as x}from"./dev.utils-DM7Qhcet.js";import{c as j}from"./element-interaction-sGYdEpmv.js";import{d as C,K as z}from"./events-CRHxtwup.js";import{a as B,b as T,c as L,h as D,s as S,i as G,d as I,t as O,e as P}from"./component-Bldy_ShO.js";import{d as q}from"./disabled-C2DzYwwy.js";import{h as F}from"./href-vIF4eC7d.js";import{l as H}from"./label-with-expert-slot-BVqi0_Fb.js";import{l as K}from"./link-target-DEH-wAmf.js";import{T as R}from"./behavior-DmR4WVXd.js";import{r as M,a as U}from"./unique-nav-labels-CZIyOzqJ.js";import{o as Z}from"./ariaCurrentService-YoLNpD5S.js";import"./validators-ByUMEUYD.js";import"./label-hints-BUADjqKF.js";import"./tslib.es6-QNbPBOk5.js";import"./i18n-BLkzMf6D.js";import"./i18n-BRgvVqCf.js";import"./component-D5yKRPCZ.js";import"./element-focus-BIRmGg5W.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./id-lCAtMmMx.js";import"./label-lang-segment-B13iL7iy.js";const A=c("KolBreadcrumb"),E={required:[A,b]},N=p.forBlock("kol-breadcrumb"),Q=N("icon"),V=N("link"),W=N("list"),Y=N("list-element"),J=N("list-element-span"),X=N("separator"),$=({label:t,linkItems:i,showCurrentPage:n})=>{const l=i.length-1;return o(d,{component:"nav",block:"kol-breadcrumb","aria-label":t},o("ul",{class:W},0===i.length&&o("li",null,o(f,{class:"kol-breadcrumb_icon",icons:"kolicon-house",label:""}),"…"),i.map(((t,i)=>((t,i,n,l)=>{const a=l?i!==n:i<n-1;if(i===n&&!l)return o(e,null);const{link:r}=t;return o("li",{class:Y,key:i},i===n?o("span",{class:J,"aria-current":"page"},r._hideLabel?o(f,{class:Q,icons:"string"==typeof r._icons?r._icons:"kolicon-link",label:r._label?k(r._label):r._href}):o(e,null,v(r._label))):o("div",{class:V},o(h,Object.assign({},t.fcProps))),a&&o(f,{class:X,icons:"kolicon-chevron-right",label:""}))})(t,i,l,n)))))},oo=class extends s{constructor(o){super(...arguments),new.target===oo&&t(this,o),this.linkItems=[],this.showCurrentPage=!0,this.propsConfig=E}watchLabel(o){this.applyLabel(o)}watchLinks(o){this.applyLinks(o)}componentWillLoad(){this.applyLabel(this._label,!0),this.applyLinks(this._links),this.unsubscribeOnLocationChange=Z((o=>{this.linkItems=this.linkItems.map((e=>{var t;const i=o===e.fcProps.href&&null!==(t=e.fcProps.ariaCurrentValue)&&void 0!==t?t:"";return e.fcProps.ariaCurrent===i?e:Object.assign(Object.assign({},e),{fcProps:Object.assign(Object.assign({},e.fcProps),{ariaCurrent:i})})}))}))}componentDidRender(){this.linkItems.forEach((o=>o.syncTooltipListeners()))}disconnectedCallback(){this.unsubscribeOnLocationChange&&(this.unsubscribeOnLocationChange(),this.unsubscribeOnLocationChange=void 0),this.linkItems.forEach((o=>o.destroy())),M(this.getRenderProp("label"))}applyLabel(o,e=!1){e||M(this.getRenderProp("label")),b.apply(o,(o=>this.setRenderProp("label",o)),this.isRequired("label")),a(o),U(this.getRenderProp("label"))}applyLinks(o){A.apply(o,(o=>{this.setRenderProp("links",o),this.linkItems.forEach((o=>o.destroy())),this.linkItems=o.map((o=>((o,e)=>{var t;const i=new R(s.stateLess),n=j(),a=m(u);a.tabIndex=void 0;const r=(o,e)=>o.apply(e,(e=>{a[o.propName]=e}));return r(B,o._accessKey),r(T,o._ariaControls),r(g,o._ariaCurrentValue),r(L,o._ariaDescription),r(q,o._disabled),r(y,o._download),r(D,o._hideLabel),r(F,o._href),r(S,o._icons),r(G,null!==(t=o._inline)&&void 0!==t&&t),r(H,o._label),r(_,o._on),r(I,o._shortKey),"number"==typeof o._tabIndex&&r(O,o._tabIndex),r(K,o._target),r(P,o._tooltipAlign),w(o._accessKey,o._shortKey),i.componentWillLoad({label:(()=>{const o=a.label;if("string"==typeof o&&o.length>0)return o;const e=a.href;return"string"==typeof e?e:""})(),align:a.tooltipAlign}),a.ariaCurrent="",a.ariaDescriptionId=x(),a.expertSlot=""===o._label,a.handleAnchorClick=o=>{if(i.hideTooltip(),!0===a.disabled)return void o.preventDefault();const t="string"==typeof a.href?a.href:"",r=a.on;"function"==typeof(null==r?void 0:r.onClick)&&(l(o,n.el),r.onClick(o,t));const s=e();s&&C(s,z.click,t)},a.refAnchor=o=>{n(o)},a.refTooltip=i.setTooltipElementRef,{link:o,fcProps:a,syncTooltipListeners:()=>{n.el&&i.syncListeners(void 0,n.el,!0)},destroy:()=>{i.destroy()}}})(o,(()=>this.host))))}))}render(){return this.showCurrentPage="hide"!==r("breadcrumbCurrentPage",this.host),o(i,{key:"8a8c9137c0491103f54d65dfe8db53c0c7d629b6"},o($,{key:"ab994f68a8b57e4dae385927a592db76907537cc",label:this.getRenderProp("label"),links:this.getRenderProp("links"),linkItems:this.linkItems,showCurrentPage:this.showCurrentPage}))}get host(){return n(this)}static get watchers(){return{_label:[{watchLabel:0}],_links:[{watchLinks:0}]}}};oo.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=1795160658049"); src: url("kolicons.eot?t=1795160658049#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1795160658049") format("woff2"), url("kolicons.woff?t=1795160658049") format("woff"), url("kolicons.ttf?t=1795160658049") format("truetype"), url("kolicons.svg?t=1795160658049#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: inline-flex; max-width: fit-content; } .kol-link--standalone { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: stretch; } .kol-link--standalone .kol-link__interactive-element { align-items: stretch; } .kol-link--standalone .kol-link__text { display: inline-flex; flex: 1 1 100%; place-items: center; } .kol-link__interactive-element { display: inline-flex; flex: 1; align-items: baseline; place-items: center; text-align: left; text-decoration-line: none; } .kol-link__interactive-element:focus:not([aria-disabled], [disabled]) .kol-span__label, .kol-link__interactive-element:hover:not([aria-disabled], [disabled]) .kol-span__label { text-decoration-thickness: 0.2em; } .kol-link .kol-span__label { text-decoration-line: underline; } .kol-link__icon { display: inline-flex; } .kol-breadcrumb__list, .kol-breadcrumb__list-element { display: flex; margin: 0; padding: 0; flex-wrap: wrap; place-items: center; list-style: none; } .kol-breadcrumb__list-element:first-child:last-child { min-height: var(--a11y-min-size); } }'};export{oo as kol_breadcrumb}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{r as t,h as o,H as e,g as i}from"./index-Bbr6Os1b.js";import{_ as n}from"./tslib.es6-QNbPBOk5.js";import{n as a}from"./dev.utils-B0t4rcBV.js";import{d as l,a as r}from"./element-interaction-sGYdEpmv.js";import{B as s}from"./base-BbGt9eYx.js";import"./common-BdSzSIXg.js";import"./element-focus-BIRmGg5W.js";import"./base-web-component-CYPdDdRn.js";import"./props-from-config-BOUcpF7e.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";import"./behavior-DlH8byIw.js";import"./bootstrap-Bp7i4RJQ.js";import"./component-names-Dhbtt0mX.js";import"./i18n-BRgvVqCf.js";import"./behavior-B6y5Gofe.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./label-lang-segment-C5LYGOHt.js";import"./access-and-short-key-ijzCZfHm.js";import"./events-CRHxtwup.js";import"./controller-CZcQ57AP.js";const c=class extends s{constructor(o){super(),new.target===c&&t(this,o),this.ariaDescriptionId=a(),this._accessKey=void 0,this._ariaControls=void 0,this._ariaDescription=void 0,this._ariaExpanded=void 0,this._ariaSelected=void 0,this._disabled=!1,this._hideLabel=!1,this._icons=void 0,this._inline=!0,this._name=void 0,this._on=void 0,this._role=void 0,this._shortKey=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._type="button",this._value=void 0,this._variant=void 0,this.initFormAssociation()}watchAccessKey(t){this.applyAccessKey(t,this._shortKey)}watchAriaControls(t){this.applyAriaControls(t)}watchAriaDescription(t){this.applyAriaDescription(t)}watchAriaExpanded(t){this.applyAriaExpanded(t)}watchAriaSelected(t){this.applyAriaSelected(t)}watchDisabled(t){this.applyDisabled(t)}watchHideLabel(t){this.applyHideLabel(t)}watchIcons(t){this.applyIcons(t)}watchInline(t){this.applyInline(t)}watchLabel(t){this.applyLabel(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchRole(){}watchShortKey(t){this.applyShortKey(t,this._accessKey)}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchType(t){this.applyType(t)}watchValue(t){this.applyValue(t)}watchVariant(t){this.applyVariant(t)}getValue(){return Promise.resolve(this._value)}focus(t){return Promise.resolve()}async click(){return Promise.resolve()}componentWillLoad(){this.unsetButtonTabIndex(),this.watchAccessKey(this._accessKey),this.watchAriaControls(this._ariaControls),this.watchAriaDescription(this._ariaDescription),this.watchAriaExpanded(this._ariaExpanded),this.watchAriaSelected(this._ariaSelected),this.watchDisabled(this._disabled),this.watchHideLabel(this._hideLabel),this.watchIcons(this._icons),this.watchInline(this._inline),this.watchLabel(this._label),this.watchName(this._name),this.watchOn(this._on),this.watchShortKey(this._shortKey),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTooltipAlign(this._tooltipAlign),this.watchType(this._type),this.watchValue(this._value),this.watchVariant(this._variant),this.initTooltipBehavior()}componentDidRender(){this.syncTooltipListeners()}disconnectedCallback(){this.destroyTooltipBehavior()}render(){return o(e,{key:"30df0e7cb4eaf8c950f1ea6cd87719b954e8a311"},this.renderButtonFC())}get host(){return i(this)}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_ariaControls:[{watchAriaControls:0}],_ariaDescription:[{watchAriaDescription:0}],_ariaExpanded:[{watchAriaExpanded:0}],_ariaSelected:[{watchAriaSelected:0}],_disabled:[{watchDisabled:0}],_hideLabel:[{watchHideLabel:0}],_icons:[{watchIcons:0}],_inline:[{watchInline:0}],_label:[{watchLabel:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_role:[{watchRole:0}],_shortKey:[{watchShortKey:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_type:[{watchType:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}};n([l("ctaRef")],c.prototype,"focus",null),n([r("ctaRef")],c.prototype,"click",null),c.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-button { display: inline-flex; max-width: fit-content; } .kol-button--standalone { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: stretch; } .kol-button--standalone .kol-button__interactive-element { align-items: stretch; } .kol-button--standalone .kol-button__text { display: inline-flex; flex: 1 1 100%; place-items: center; } .kol-button__interactive-element { display: inline-flex; flex: 1; align-items: baseline; place-items: center; text-align: left; text-decoration-line: none; } .kol-button__interactive-element:focus:not([aria-disabled], [disabled]) .kol-span__label, .kol-button__interactive-element:hover:not([aria-disabled], [disabled]) .kol-span__label { text-decoration-thickness: 0.2em; } .kol-button .kol-span__label { text-decoration-line: underline; } .kol-button__icon { display: inline-flex; } .kol-button--inline { min-width: unset; min-height: unset; } .kol-button--inline .kol-button__interactive-element { min-width: unset; min-height: unset; } }'};export{c as kol_button_link}
|
|
4
|
+
import{r as o,h as t,H as e,g as i}from"./index-8-BSSKQL.js";import{_ as n}from"./tslib.es6-QNbPBOk5.js";import{n as a}from"./dev.utils-DM7Qhcet.js";import{d as l,a as r}from"./element-interaction-sGYdEpmv.js";import{B as s}from"./base-D-me6QDT.js";import"./common-BdSzSIXg.js";import"./element-focus-BIRmGg5W.js";import"./base-web-component-Bh2NCN7p.js";import"./props-from-config-LBgEHmcL.js";import"./bem-registry-SKACeCny.js";import"./component-BC1TpQVD.js";import"./component-Bldy_ShO.js";import"./validators-ByUMEUYD.js";import"./component-D5yKRPCZ.js";import"./component-Cj3P_f35.js";import"./component-LadkF9an.js";import"./disabled-C2DzYwwy.js";import"./id-lCAtMmMx.js";import"./label-with-expert-slot-BVqi0_Fb.js";import"./label-hints-BUADjqKF.js";import"./behavior-DUy0X7U1.js";import"./bootstrap-Bp7i4RJQ.js";import"./component-names-Dhbtt0mX.js";import"./i18n-BRgvVqCf.js";import"./behavior-DmR4WVXd.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./label-lang-segment-B13iL7iy.js";import"./access-and-short-key-ijzCZfHm.js";import"./events-CRHxtwup.js";import"./controller-CZcQ57AP.js";const c=class extends s{constructor(t){super(),new.target===c&&o(this,t),this.ariaDescriptionId=a(),this._accessKey=void 0,this._ariaControls=void 0,this._ariaDescription=void 0,this._ariaExpanded=void 0,this._ariaSelected=void 0,this._disabled=!1,this._hideLabel=!1,this._icons=void 0,this._inline=!0,this._name=void 0,this._on=void 0,this._role=void 0,this._shortKey=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._type="button",this._value=void 0,this._variant=void 0,this.initFormAssociation()}watchAccessKey(o){this.applyAccessKey(o,this._shortKey)}watchAriaControls(o){this.applyAriaControls(o)}watchAriaDescription(o){this.applyAriaDescription(o)}watchAriaExpanded(o){this.applyAriaExpanded(o)}watchAriaSelected(o){this.applyAriaSelected(o)}watchDisabled(o){this.applyDisabled(o)}watchHideLabel(o){this.applyHideLabel(o)}watchIcons(o){this.applyIcons(o)}watchInline(o){this.applyInline(o)}watchLabel(o){this.applyLabel(o)}watchName(o){this.applyName(o)}watchOn(o){this.applyOn(o)}watchRole(){}watchShortKey(o){this.applyShortKey(o,this._accessKey)}watchSyncValueBySelector(o){this.applySyncValueBySelector(o)}watchTooltipAlign(o){this.applyTooltipAlign(o)}watchType(o){this.applyType(o)}watchValue(o){this.applyValue(o)}watchVariant(o){this.applyVariant(o)}getValue(){return Promise.resolve(this._value)}focus(o){return Promise.resolve()}async click(){return Promise.resolve()}componentWillLoad(){this.unsetButtonTabIndex(),this.watchAccessKey(this._accessKey),this.watchAriaControls(this._ariaControls),this.watchAriaDescription(this._ariaDescription),this.watchAriaExpanded(this._ariaExpanded),this.watchAriaSelected(this._ariaSelected),this.watchDisabled(this._disabled),this.watchHideLabel(this._hideLabel),this.watchIcons(this._icons),this.watchInline(this._inline),this.watchLabel(this._label),this.watchName(this._name),this.watchOn(this._on),this.watchShortKey(this._shortKey),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTooltipAlign(this._tooltipAlign),this.watchType(this._type),this.watchValue(this._value),this.watchVariant(this._variant),this.initTooltipBehavior()}componentDidRender(){this.syncTooltipListeners()}disconnectedCallback(){this.destroyTooltipBehavior()}render(){return t(e,{key:"30df0e7cb4eaf8c950f1ea6cd87719b954e8a311"},this.renderButtonFC())}get host(){return i(this)}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_ariaControls:[{watchAriaControls:0}],_ariaDescription:[{watchAriaDescription:0}],_ariaExpanded:[{watchAriaExpanded:0}],_ariaSelected:[{watchAriaSelected:0}],_disabled:[{watchDisabled:0}],_hideLabel:[{watchHideLabel:0}],_icons:[{watchIcons:0}],_inline:[{watchInline:0}],_label:[{watchLabel:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_role:[{watchRole:0}],_shortKey:[{watchShortKey:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_type:[{watchType:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}};n([l("ctaRef")],c.prototype,"focus",null),n([r("ctaRef")],c.prototype,"click",null),c.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=1795160658049"); src: url("kolicons.eot?t=1795160658049#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1795160658049") format("woff2"), url("kolicons.woff?t=1795160658049") format("woff"), url("kolicons.ttf?t=1795160658049") format("truetype"), url("kolicons.svg?t=1795160658049#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-button { display: inline-flex; max-width: fit-content; } .kol-button--standalone { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: stretch; } .kol-button--standalone .kol-button__interactive-element { align-items: stretch; } .kol-button--standalone .kol-button__text { display: inline-flex; flex: 1 1 100%; place-items: center; } .kol-button__interactive-element { display: inline-flex; flex: 1; align-items: baseline; place-items: center; text-align: left; text-decoration-line: none; } .kol-button__interactive-element:focus:not([aria-disabled], [disabled]) .kol-span__label, .kol-button__interactive-element:hover:not([aria-disabled], [disabled]) .kol-span__label { text-decoration-thickness: 0.2em; } .kol-button .kol-span__label { text-decoration-line: underline; } .kol-button__icon { display: inline-flex; } .kol-button--inline { min-width: unset; min-height: unset; } .kol-button--inline .kol-button__interactive-element { min-width: unset; min-height: unset; } }'};export{c as kol_button_link}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{r as o,h as t,H as e,g as i}from"./index-Bbr6Os1b.js";import{_ as n}from"./tslib.es6-QNbPBOk5.js";import{n as a}from"./dev.utils-B0t4rcBV.js";import{d as l,a as r}from"./element-interaction-sGYdEpmv.js";import{B as s}from"./base-BbGt9eYx.js";import"./common-BdSzSIXg.js";import"./element-focus-BIRmGg5W.js";import"./base-web-component-CYPdDdRn.js";import"./props-from-config-BOUcpF7e.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";import"./behavior-DlH8byIw.js";import"./bootstrap-Bp7i4RJQ.js";import"./component-names-Dhbtt0mX.js";import"./i18n-BRgvVqCf.js";import"./behavior-B6y5Gofe.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./label-lang-segment-C5LYGOHt.js";import"./access-and-short-key-ijzCZfHm.js";import"./events-CRHxtwup.js";import"./controller-CZcQ57AP.js";const c=class extends s{constructor(t){super(),new.target===c&&o(this,t),this.ariaDescriptionId=a(),this._accessKey=void 0,this._ariaControls=void 0,this._ariaDescription=void 0,this._ariaExpanded=void 0,this._ariaSelected=void 0,this._customClass=void 0,this._disabled=!1,this._hideLabel=!1,this._icons=void 0,this._inline=!1,this._name=void 0,this._on=void 0,this._role=void 0,this._shortKey=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._type="button",this._value=void 0,this._variant=void 0,this.initFormAssociation()}watchAccessKey(o){this.applyAccessKey(o,this._shortKey)}watchAriaControls(o){this.applyAriaControls(o)}watchAriaDescription(o){this.applyAriaDescription(o)}watchAriaExpanded(o){this.applyAriaExpanded(o)}watchAriaSelected(o){this.applyAriaSelected(o)}watchCustomClass(o){this.applyCustomClass(o)}watchDisabled(o){this.applyDisabled(o)}watchHideLabel(o){this.applyHideLabel(o)}watchIcons(o){this.applyIcons(o)}watchInline(o){this.applyInline(o)}watchLabel(o){this.applyLabel(o)}watchName(o){this.applyName(o)}watchOn(o){this.applyOn(o)}watchRole(o){this.applyRole(o)}watchShortKey(o){this.applyShortKey(o,this._accessKey)}watchSyncValueBySelector(o){this.applySyncValueBySelector(o)}watchTooltipAlign(o){this.applyTooltipAlign(o)}watchType(o){this.applyType(o)}watchValue(o){this.applyValue(o)}watchVariant(o){this.applyVariant(o)}getValue(){return Promise.resolve(this._value)}focus(o){return Promise.resolve()}async click(){return Promise.resolve()}componentWillLoad(){this.unsetButtonTabIndex(),this.watchAccessKey(this._accessKey),this.watchAriaControls(this._ariaControls),this.watchAriaDescription(this._ariaDescription),this.watchAriaExpanded(this._ariaExpanded),this.watchAriaSelected(this._ariaSelected),this.watchCustomClass(this._customClass),this.watchDisabled(this._disabled),this.watchHideLabel(this._hideLabel),this.watchIcons(this._icons),this.watchInline(this._inline),this.watchLabel(this._label),this.watchName(this._name),this.watchOn(this._on),this.watchRole(this._role),this.watchShortKey(this._shortKey),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTooltipAlign(this._tooltipAlign),this.watchType(this._type),this.watchValue(this._value),this.watchVariant(this._variant),this.initTooltipBehavior()}componentDidRender(){this.syncTooltipListeners()}disconnectedCallback(){this.destroyTooltipBehavior()}render(){return t(e,{key:"9ed43938721a6b3e26e7024c1b0498f585f10158"},this.renderButtonFC())}get host(){return i(this)}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_ariaControls:[{watchAriaControls:0}],_ariaDescription:[{watchAriaDescription:0}],_ariaExpanded:[{watchAriaExpanded:0}],_ariaSelected:[{watchAriaSelected:0}],_customClass:[{watchCustomClass:0}],_disabled:[{watchDisabled:0}],_hideLabel:[{watchHideLabel:0}],_icons:[{watchIcons:0}],_inline:[{watchInline:0}],_label:[{watchLabel:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_role:[{watchRole:0}],_shortKey:[{watchShortKey:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_type:[{watchType:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}};n([l("ctaRef")],c.prototype,"focus",null),n([r("ctaRef")],c.prototype,"click",null),c.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-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; } }'};export{c as kol_button}
|
|
4
|
+
import{r as o,h as t,H as e,g as i}from"./index-8-BSSKQL.js";import{_ as n}from"./tslib.es6-QNbPBOk5.js";import{n as a}from"./dev.utils-DM7Qhcet.js";import{d as l,a as r}from"./element-interaction-sGYdEpmv.js";import{B as s}from"./base-D-me6QDT.js";import"./common-BdSzSIXg.js";import"./element-focus-BIRmGg5W.js";import"./base-web-component-Bh2NCN7p.js";import"./props-from-config-LBgEHmcL.js";import"./bem-registry-SKACeCny.js";import"./component-BC1TpQVD.js";import"./component-Bldy_ShO.js";import"./validators-ByUMEUYD.js";import"./component-D5yKRPCZ.js";import"./component-Cj3P_f35.js";import"./component-LadkF9an.js";import"./disabled-C2DzYwwy.js";import"./id-lCAtMmMx.js";import"./label-with-expert-slot-BVqi0_Fb.js";import"./label-hints-BUADjqKF.js";import"./behavior-DUy0X7U1.js";import"./bootstrap-Bp7i4RJQ.js";import"./component-names-Dhbtt0mX.js";import"./i18n-BRgvVqCf.js";import"./behavior-DmR4WVXd.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./label-lang-segment-B13iL7iy.js";import"./access-and-short-key-ijzCZfHm.js";import"./events-CRHxtwup.js";import"./controller-CZcQ57AP.js";const c=class extends s{constructor(t){super(),new.target===c&&o(this,t),this.ariaDescriptionId=a(),this._accessKey=void 0,this._ariaControls=void 0,this._ariaDescription=void 0,this._ariaExpanded=void 0,this._ariaSelected=void 0,this._customClass=void 0,this._disabled=!1,this._hideLabel=!1,this._icons=void 0,this._inline=!1,this._name=void 0,this._on=void 0,this._role=void 0,this._shortKey=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._type="button",this._value=void 0,this._variant=void 0,this.initFormAssociation()}watchAccessKey(o){this.applyAccessKey(o,this._shortKey)}watchAriaControls(o){this.applyAriaControls(o)}watchAriaDescription(o){this.applyAriaDescription(o)}watchAriaExpanded(o){this.applyAriaExpanded(o)}watchAriaSelected(o){this.applyAriaSelected(o)}watchCustomClass(o){this.applyCustomClass(o)}watchDisabled(o){this.applyDisabled(o)}watchHideLabel(o){this.applyHideLabel(o)}watchIcons(o){this.applyIcons(o)}watchInline(o){this.applyInline(o)}watchLabel(o){this.applyLabel(o)}watchName(o){this.applyName(o)}watchOn(o){this.applyOn(o)}watchRole(o){this.applyRole(o)}watchShortKey(o){this.applyShortKey(o,this._accessKey)}watchSyncValueBySelector(o){this.applySyncValueBySelector(o)}watchTooltipAlign(o){this.applyTooltipAlign(o)}watchType(o){this.applyType(o)}watchValue(o){this.applyValue(o)}watchVariant(o){this.applyVariant(o)}getValue(){return Promise.resolve(this._value)}focus(o){return Promise.resolve()}async click(){return Promise.resolve()}componentWillLoad(){this.unsetButtonTabIndex(),this.watchAccessKey(this._accessKey),this.watchAriaControls(this._ariaControls),this.watchAriaDescription(this._ariaDescription),this.watchAriaExpanded(this._ariaExpanded),this.watchAriaSelected(this._ariaSelected),this.watchCustomClass(this._customClass),this.watchDisabled(this._disabled),this.watchHideLabel(this._hideLabel),this.watchIcons(this._icons),this.watchInline(this._inline),this.watchLabel(this._label),this.watchName(this._name),this.watchOn(this._on),this.watchRole(this._role),this.watchShortKey(this._shortKey),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTooltipAlign(this._tooltipAlign),this.watchType(this._type),this.watchValue(this._value),this.watchVariant(this._variant),this.initTooltipBehavior()}componentDidRender(){this.syncTooltipListeners()}disconnectedCallback(){this.destroyTooltipBehavior()}render(){return t(e,{key:"9ed43938721a6b3e26e7024c1b0498f585f10158"},this.renderButtonFC())}get host(){return i(this)}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_ariaControls:[{watchAriaControls:0}],_ariaDescription:[{watchAriaDescription:0}],_ariaExpanded:[{watchAriaExpanded:0}],_ariaSelected:[{watchAriaSelected:0}],_customClass:[{watchCustomClass:0}],_disabled:[{watchDisabled:0}],_hideLabel:[{watchHideLabel:0}],_icons:[{watchIcons:0}],_inline:[{watchInline:0}],_label:[{watchLabel:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_role:[{watchRole:0}],_shortKey:[{watchShortKey:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_type:[{watchType:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}};n([l("ctaRef")],c.prototype,"focus",null),n([r("ctaRef")],c.prototype,"click",null),c.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=1795160658049"); src: url("kolicons.eot?t=1795160658049#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1795160658049") format("woff2"), url("kolicons.woff?t=1795160658049") format("woff"), url("kolicons.ttf?t=1795160658049") format("truetype"), url("kolicons.svg?t=1795160658049#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-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; } }'};export{c as kol_button}
|
|
@@ -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,g as i}from"./index-Bbr6Os1b.js";import{_ as n}from"./tslib.es6-QNbPBOk5.js";import{n as l,c as r}from"./dev.utils-B0t4rcBV.js";import{c as a,d as s,a as c}from"./element-interaction-sGYdEpmv.js";import{B as d}from"./base-web-component-CYPdDdRn.js";import{c as h,r as k,a as m,C as p}from"./component-6_YiKr2Z.js";import{T as b}from"./behavior-B6y5Gofe.js";import"./common-BdSzSIXg.js";import{l as f}from"./level-BVXGgbSM.js";import{h as u}from"./has-closer-BrG00xL7.js";import{h as g}from"./href-CfNF4pHX.js";import"./props-from-config-BOUcpF7e.js";import{l as v}from"./label-lang-segment-C5LYGOHt.js";import{l as _}from"./link-target-BWPSEd9a.js";import{d as y,K as w}from"./events-CRHxtwup.js";import"./element-focus-BIRmGg5W.js";import"./i18n-BLkzMf6D.js";import"./i18n-BRgvVqCf.js";import"./resolve-props-DAVb5BM3.js";import"./component-DEwcJKDA.js";import"./validators-BgDmq-Qt.js";import"./component-B8UMedaK.js";import"./bem-registry-SKACeCny.js";import"./component-hiabKVP3.js";import"./component-bIIx1x7q.js";import"./component-CNgECeRi.js";import"./disabled-B2o4Ctgy.js";import"./id-Bh4FF8c0.js";import"./label-with-expert-slot-D1tpX9DI.js";import"./label-hints-CZGo9ZD5.js";import"./Heading-BubZbykM.js";import"./tooltip-open-tracking-D3tCiiGP.js";class x extends d{constructor(){super(...arguments),this.ctaRef=a(),this.closeButtonRef=a(),this.tooltipBehavior=new b(this.stateAccess),this.propsConfig=h,this.handleClose=()=>{var o,e;this.tooltipBehavior.hideTooltip(),null===(e=(o=this.getRenderProp("on")).onClose)||void 0===e||e.call(o,new Event("Close")),this.host&&y(this.host,w.close)},this.handleFocus=o=>{var e,t;null===(t=(e=this.getRenderProp("on")).onFocus)||void 0===t||t.call(e,o),this.host&&y(this.host,w.focus)},this.handleBlur=o=>{var e,t;null===(t=(e=this.getRenderProp("on")).onBlur)||void 0===t||t.call(e,o),this.host&&y(this.host,w.blur)}}initCardCloseButton(){this.closeButtonProps=k(this.host),this.tooltipBehavior.componentWillLoad({label:this.closeButtonProps.label,align:this.closeButtonProps.tooltipAlign})}syncTooltipListeners(){this.closeButtonRef.el&&this.tooltipBehavior.syncListeners(void 0,this.closeButtonRef.el,!0)}destroyTooltipBehavior(){this.tooltipBehavior.destroy()}applyHasCloser(o){u.apply(o,(o=>this.setRenderProp("hasCloser",o)))}applyHref(o){g.apply(o,(o=>this.setRenderProp("href",o)),this.isRequired("href"))}applyLabel(o){v.apply(o,(o=>this.setRenderProp("label",o)),this.isRequired("label"))}applyLevel(o){f.apply(o,(o=>this.setRenderProp("level",o)))}applyOn(o){m.apply(o,(o=>this.setRenderProp("on",o)))}applyTarget(o){_.apply(o,(o=>this.setRenderProp("target",o)))}renderCardFC(){return o(p,{ariaDescriptionId:this.getState("ariaDescriptionId"),closeButtonProps:this.closeButtonProps,handleBlur:this.handleBlur,handleClose:this.handleClose,handleFocus:this.handleFocus,hasCloser:this.getRenderProp("hasCloser"),headingId:this.getState("headingId"),href:this.getRenderProp("href"),label:this.getRenderProp("label"),level:this.getRenderProp("level"),on:this.getRenderProp("on"),refCloseButton:this.closeButtonRef,refCta:this.ctaRef,refTooltip:this.tooltipBehavior.setTooltipElementRef,target:this.getRenderProp("target")},this.renderSlot())}}const C=class extends x{constructor(o){super(...arguments),new.target===C&&e(this,o),this.ariaDescriptionId=l(),this.headingId=r("card-heading"),this._hasCloser=!1,this._href=void 0,this._level=0,this._on=void 0,this._target=void 0}watchHasCloser(o){this.applyHasCloser(o)}watchHref(o){this.applyHref(o)}watchLabel(o){this.applyLabel(o)}watchLevel(o){this.applyLevel(o)}watchOn(o){this.applyOn(o)}watchTarget(o){this.applyTarget(o)}focus(o){return Promise.resolve()}click(){return Promise.resolve()}componentWillLoad(){this.initCardCloseButton(),this.watchHasCloser(this._hasCloser),this.watchHref(this._href),this.watchLabel(this._label),this.watchLevel(this._level),this.watchOn(this._on),this.watchTarget(this._target)}componentDidRender(){this.syncTooltipListeners()}disconnectedCallback(){this.destroyTooltipBehavior()}renderSlot(){return o("slot",null)}render(){return o(t,{key:"916261d714a813041360e0b82ffa1d3fc26d56e8"},this.renderCardFC())}get host(){return i(this)}static get watchers(){return{_hasCloser:[{watchHasCloser:0}],_href:[{watchHref:0}],_label:[{watchLabel:0}],_level:[{watchLevel:0}],_on:[{watchOn:0}],_target:[{watchTarget:0}]}}};n([s("ctaRef")],C.prototype,"focus",null),n([c("ctaRef")],C.prototype,"click",null),C.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; } .kol-card .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-card :host { display: inline-block; } .kol-card .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-card .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-card .kol-button__interactive-element::before { content: ""; } .kol-card .kol-button__text { flex: 1 0 100%; } .kol-card .kol-button { } .kol-card .kol-button__tooltip { height: 0; } .kol-card .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-card .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-card { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); display: grid; height: 100%; overflow: visible; grid-template-areas: "header close" "content content"; grid-template-columns: 1fr min-content; grid-template-rows: min-content 1fr; } .kol-card__header { align-self: start; grid-area: header; } .kol-card__content { align-self: stretch; grid-area: content; } .kol-card__close-button { position: relative; z-index: 1; grid-area: close; } .kol-card:has(.kol-card__link) { position: relative; } .kol-card__link::after { position: absolute; inset: 0; content: ""; cursor: pointer; } }'};export{C as kol_card}
|
|
4
|
+
import{h as o,r as e,H as t,g as i}from"./index-8-BSSKQL.js";import{_ as n}from"./tslib.es6-QNbPBOk5.js";import{n as l,c as r}from"./dev.utils-DM7Qhcet.js";import{c as a,d as s,a as c}from"./element-interaction-sGYdEpmv.js";import{B as d}from"./base-web-component-Bh2NCN7p.js";import{c as h,r as k,a as m,C as p}from"./component-BUzgs8fh.js";import{T as f}from"./behavior-DmR4WVXd.js";import"./common-BdSzSIXg.js";import{l as b}from"./level-eGeMFn0b.js";import{h as u}from"./has-closer-x20C4xl3.js";import{h as g}from"./href-vIF4eC7d.js";import"./props-from-config-LBgEHmcL.js";import{l as v}from"./label-lang-segment-B13iL7iy.js";import{l as _}from"./link-target-DEH-wAmf.js";import{d as y,K as w}from"./events-CRHxtwup.js";import"./element-focus-BIRmGg5W.js";import"./i18n-BLkzMf6D.js";import"./i18n-BRgvVqCf.js";import"./resolve-props-0xfjG6h5.js";import"./component-Bldy_ShO.js";import"./validators-ByUMEUYD.js";import"./component-D5yKRPCZ.js";import"./bem-registry-SKACeCny.js";import"./component-Cj3P_f35.js";import"./component-LadkF9an.js";import"./component-BC1TpQVD.js";import"./disabled-C2DzYwwy.js";import"./id-lCAtMmMx.js";import"./label-with-expert-slot-BVqi0_Fb.js";import"./label-hints-BUADjqKF.js";import"./Heading-DDS-lyOB.js";import"./tooltip-open-tracking-D3tCiiGP.js";class x extends d{constructor(){super(...arguments),this.ctaRef=a(),this.closeButtonRef=a(),this.tooltipBehavior=new f(this.stateAccess),this.propsConfig=h,this.handleClose=()=>{var o,e;this.tooltipBehavior.hideTooltip(),null===(e=(o=this.getRenderProp("on")).onClose)||void 0===e||e.call(o,new Event("Close")),this.host&&y(this.host,w.close)},this.handleFocus=o=>{var e,t;null===(t=(e=this.getRenderProp("on")).onFocus)||void 0===t||t.call(e,o),this.host&&y(this.host,w.focus)},this.handleBlur=o=>{var e,t;null===(t=(e=this.getRenderProp("on")).onBlur)||void 0===t||t.call(e,o),this.host&&y(this.host,w.blur)}}initCardCloseButton(){this.closeButtonProps=k(this.host),this.tooltipBehavior.componentWillLoad({label:this.closeButtonProps.label,align:this.closeButtonProps.tooltipAlign})}syncTooltipListeners(){this.closeButtonRef.el&&this.tooltipBehavior.syncListeners(void 0,this.closeButtonRef.el,!0)}destroyTooltipBehavior(){this.tooltipBehavior.destroy()}applyHasCloser(o){u.apply(o,(o=>this.setRenderProp("hasCloser",o)))}applyHref(o){g.apply(o,(o=>this.setRenderProp("href",o)),this.isRequired("href"))}applyLabel(o){v.apply(o,(o=>this.setRenderProp("label",o)),this.isRequired("label"))}applyLevel(o){b.apply(o,(o=>this.setRenderProp("level",o)))}applyOn(o){m.apply(o,(o=>this.setRenderProp("on",o)))}applyTarget(o){_.apply(o,(o=>this.setRenderProp("target",o)))}renderCardFC(){return o(p,{ariaDescriptionId:this.getState("ariaDescriptionId"),closeButtonProps:this.closeButtonProps,handleBlur:this.handleBlur,handleClose:this.handleClose,handleFocus:this.handleFocus,hasCloser:this.getRenderProp("hasCloser"),headingId:this.getState("headingId"),href:this.getRenderProp("href"),label:this.getRenderProp("label"),level:this.getRenderProp("level"),on:this.getRenderProp("on"),refCloseButton:this.closeButtonRef,refCta:this.ctaRef,refTooltip:this.tooltipBehavior.setTooltipElementRef,target:this.getRenderProp("target")},this.renderSlot())}}const C=class extends x{constructor(o){super(...arguments),new.target===C&&e(this,o),this.ariaDescriptionId=l(),this.headingId=r("card-heading"),this._hasCloser=!1,this._href=void 0,this._level=0,this._on=void 0,this._target=void 0}watchHasCloser(o){this.applyHasCloser(o)}watchHref(o){this.applyHref(o)}watchLabel(o){this.applyLabel(o)}watchLevel(o){this.applyLevel(o)}watchOn(o){this.applyOn(o)}watchTarget(o){this.applyTarget(o)}focus(o){return Promise.resolve()}click(){return Promise.resolve()}componentWillLoad(){this.initCardCloseButton(),this.watchHasCloser(this._hasCloser),this.watchHref(this._href),this.watchLabel(this._label),this.watchLevel(this._level),this.watchOn(this._on),this.watchTarget(this._target)}componentDidRender(){this.syncTooltipListeners()}disconnectedCallback(){this.destroyTooltipBehavior()}renderSlot(){return o("slot",null)}render(){return o(t,{key:"916261d714a813041360e0b82ffa1d3fc26d56e8"},this.renderCardFC())}get host(){return i(this)}static get watchers(){return{_hasCloser:[{watchHasCloser:0}],_href:[{watchHref:0}],_label:[{watchLabel:0}],_level:[{watchLevel:0}],_on:[{watchOn:0}],_target:[{watchTarget:0}]}}};n([s("ctaRef")],C.prototype,"focus",null),n([c("ctaRef")],C.prototype,"click",null),C.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=1795160658049"); src: url("kolicons.eot?t=1795160658049#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1795160658049") format("woff2"), url("kolicons.woff?t=1795160658049") format("woff"), url("kolicons.ttf?t=1795160658049") format("truetype"), url("kolicons.svg?t=1795160658049#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-card .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-card :host { display: inline-block; } .kol-card .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-card .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-card .kol-button__interactive-element::before { content: ""; } .kol-card .kol-button__text { flex: 1 0 100%; } .kol-card .kol-button { } .kol-card .kol-button__tooltip { height: 0; } .kol-card .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-card .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-card { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); display: grid; height: 100%; overflow: visible; grid-template-areas: "header close" "content content"; grid-template-columns: 1fr min-content; grid-template-rows: min-content 1fr; } .kol-card__header { align-self: start; grid-area: header; } .kol-card__content { align-self: stretch; grid-area: content; } .kol-card__close-button { position: relative; z-index: 1; grid-area: close; } .kol-card:has(.kol-card__link) { position: relative; } .kol-card__link::after { position: absolute; inset: 0; content: ""; cursor: pointer; } }'};export{C as kol_card}
|
|
@@ -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-Bbr6Os1b.js";import{_ as n}from"./tslib.es6-QNbPBOk5.js";import{t as s}from"./i18n-BLkzMf6D.js";import{v as l}from"./access-and-short-key-ijzCZfHm.js";import{e as a}from"./props-from-config-BOUcpF7e.js";import{c as r,a as c}from"./dev.utils-B0t4rcBV.js";import{c as h}from"./element-focus-BIRmGg5W.js";import{d,a as b,c as m}from"./element-interaction-sGYdEpmv.js";import{c as u,K as k}from"./events-CRHxtwup.js";import{B as p}from"./component-CNgECeRi.js";import{c as f}from"./item-hsQoejqZ.js";import"./common-BdSzSIXg.js";import{a as g,d as _,v}from"./component-DEwcJKDA.js";import{h as y,B as x,C as w,L as j,a as z}from"./group-DydT1Z92.js";import{h as B,g as C,I as D}from"./input-container-zXl_6y52.js";import{p as O}from"./placeholder-DlHbiVjz.js";import{r as K}from"./required-xw5BBPvV.js";import{s as T}from"./suggestions-CY8BJMOa.js";import{s as I}from"./value-string-Dy8zJxlP.js";import{f as S,F as A}from"./api-D0RNr-zh.js";import{b as H}from"./bem-registry-SKACeCny.js";import{I as q}from"./component-bIIx1x7q.js";import{I as L}from"./input-C1YsxnDL.js";import"./i18n-BRgvVqCf.js";import"./component-hiabKVP3.js";import"./component-B8UMedaK.js";import"./disabled-B2o4Ctgy.js";import"./id-Bh4FF8c0.js";import"./label-with-expert-slot-D1tpX9DI.js";import"./validators-BgDmq-Qt.js";import"./label-hints-CZGo9ZD5.js";import"./controller-CZcQ57AP.js";import"./component-names-Dhbtt0mX.js";import"./base-web-component-CYPdDdRn.js";import"./behavior-B6y5Gofe.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./label-lang-segment-C5LYGOHt.js";import"./resolve-props-DAVb5BM3.js";import"./aria-labelledby-DqJY_4G-.js";import"./behavior-DlH8byIw.js";import"./bootstrap-Bp7i4RJQ.js";import"./item-Dms_59sU.js";import"./component-CSsUaL_h.js";import"./component-ZdHnXLLI.js";import"./Heading-BubZbykM.js";const P={required:[...S.required,T],optional:[...S.optional,g,y,B,O,K,_,I,v]},V=H.forBlock("kol-combobox")("delete"),F=H.forBlock("kol-combobox-toggle")(),G=({disabled:t,expanded:e,handleClick:i,label:n,listboxId:s})=>o("button",{type:"button",tabIndex:-1,class:F,"aria-controls":s,"aria-expanded":e?"true":"false","aria-label":n,onClick:i,disabled:t,hidden:t},o(q,{icons:"kolicon-chevron-down",label:""})),M=class extends x{constructor(o){super(),new.target===M&&t(this,o),this.id=r("combobox"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.isOpen=!1,this.blockSuggestionMouseOver=!1,this.ctaRef=m(),this.clearButton=f((()=>this.host)),this.translateDeleteSelection=s("kol-delete-selection"),this.translateShowSuggestions=s("kol-show-suggestions"),this.hasValue=!1,this.propsConfig=P,this._accessKey=void 0,this._ariaDetails=void 0,this._placeholder=void 0,this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._infoPopover=void 0,this._msg=void 0,this._name=void 0,this._on=void 0,this._hasClearButton=!0,this._required=!1,this._shortKey=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this._variant=void 0,this.toggleListbox=()=>{var o;if(!0===this.getRenderProp("disabled"))this.isOpen=!1;else if(null===(o=this.ctaRef.el)||void 0===o||o.focus(),this.isOpen)this.isOpen=!1;else if(Array.isArray(this.filteredSuggestions)&&this.filteredSuggestions.length>0){this.isOpen=!0;const o=this.filteredSuggestions.findIndex((o=>o===this.getRenderProp("value")));this.focusedIndex=o>=0?o:-1,this.focusOption(this.focusedIndex)}},this.handleComboboxInput=o=>{const t=o.target.value;this.setRenderProp("value",t),this._value=t,this.handleInput(o,t),this.setFilteredSuggestionsByQuery(t),this.focusedIndex=-1,o.stopImmediatePropagation()},this.handleComboboxChange=o=>{o.stopPropagation();const t=this.getRenderProp("value");this.handleChange(o,t),this.hasValue=!!t,this.formAssociation.setFormAssociatedValue(t)},this.handleInputBlur=o=>{this.handleFocusLeave(o)},this.stopClearButtonFocusEvent=o=>{o.stopPropagation()},this.handleDropdownKeyDown=o=>{1===o.key.length&&/[a-z0-9]/i.test(o.key)&&(this.isOpen=!0,this.focusSuggestionStartingWith(o.key))},this.initFormAssociation("combobox",this._name)}watchAccessKey(o){g.apply(o,(o=>this.setRenderProp("accessKey",o))),l(o,this._shortKey)}watchAriaDetails(o){this.applyAriaDetails(o)}watchPlaceholder(o){O.apply(o,(o=>this.setRenderProp("placeholder",o)))}watchDisabled(o){this.applyDisabled(o)}watchHideMsg(o){this.applyHideMsg(o)}watchHideLabel(o){this.applyHideLabel(o)}watchHint(o){this.applyHint(o)}watchIcons(o){B.apply(o,(o=>this.setRenderProp("icons",o)))}watchInfoPopover(o){this.applyInfoPopover(o)}watchLabel(o){this.applyLabel(o)}watchMsg(o){this.applyMsg(o)}watchName(o){this.applyName(o)}watchOn(o){this.applyOn(o)}watchHasClearButton(o){y.apply(o,(o=>this.setRenderProp("hasClearButton",o)))}watchSuggestions(o){var t;this.applySuggestions(o),this.setFilteredSuggestionsByQuery(null!==(t=this._value)&&void 0!==t?t:"")}watchRequired(o){K.apply(o,(o=>this.setRenderProp("required",o)))}watchShortKey(o){_.apply(o,(o=>this.setRenderProp("shortKey",o))),l(this._accessKey,o)}watchSyncValueBySelector(o){this.applySyncValueBySelector(o)}watchTooltipAlign(o){this.applyTooltipAlign(o)}watchTouched(o){this.applyTouched(o)}watchValue(o){this.applyValue(o),this.formAssociation.setFormAssociatedValue(o)}watchVariant(o){v.apply(o,(o=>this.setRenderProp("variant",o)))}getValue(){return Promise.resolve(this.getRenderProp("value"))}focus(o){return Promise.resolve()}async click(){return Promise.resolve()}componentWillLoad(){this.setRenderProp("value",""),this.optionRefs=[],this._touched=!0===this._touched,this.watchAriaDetails(this._ariaDetails),this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccessKey(this._accessKey),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.watchHasClearButton(this._hasClearButton),this.watchPlaceholder(this._placeholder),this.watchRequired(this._required),this.applySuggestions(this._suggestions),this.applyValue(this._value),this.hasValue=!!this.getRenderProp("value"),this.filteredSuggestions=this.getRenderProp("suggestions")}componentDidRender(){this.syncFormField(),this.clearButton.syncListeners()}disconnectedCallback(){this.clearButton.destroy(),this.destroyFormField()}handleHostKeyDown(o){this.handleListboxKeyDown(o)}handleMouseEvent(){this.handleListboxMouseMove()}handleFocusIn(o){h(this.host)&&!this.inputHasFocus&&this.handleFocus(o)}handleFocusOut(o){var t;const e=o.relatedTarget,i=e&&(e===this.host||(null===(t=this.host)||void 0===t?void 0:t.contains(e)));this.inputHasFocus&&!i&&(this.handleBlur(o),this.isOpen&&(this.isOpen=!1))}getOptionCount(){return Array.isArray(this.filteredSuggestions)?this.filteredSuggestions.length:0}moveFocus(o){this.filteredSuggestions&&this.moveFocusWrapping(o)}focusFirstOption(){this.focusOption(0)}focusLastOption(){this.focusOption(this.filteredSuggestions?this.filteredSuggestions.length-1:0)}handleConfirmKey(o){const t=this.clearButton.getRootElement();t&&o.composedPath().includes(t)||(" "!==o.key?(this.isOpen&&this.selectFocusedOption()?this.isOpen=!1:this.toggleListbox(),o.preventDefault()):this.isOpen&&this.selectFocusedOption()&&(this.isOpen=!1,o.preventDefault()))}selectFocusedOption(){return!!(this.filteredSuggestions&&this.focusedIndex>=0&&this.focusedIndex<this.filteredSuggestions.length)&&(this.selectOption(this.filteredSuggestions[this.focusedIndex]),!0)}focusSuggestionStartingWith(o){const t=o.toLowerCase(),e=Array.isArray(this.filteredSuggestions)&&this.filteredSuggestions.length>0&&this.filteredSuggestions.findIndex((o=>o.toLowerCase().startsWith(t)));"number"==typeof e&&this.focusOption(e)}setFilteredSuggestionsByQuery(o){var t;if(void 0===o)return;const e=this.getRenderProp("suggestions");""===o.trim()?this.filteredSuggestions=[...e]:(this.filteredSuggestions=Array.isArray(e)?e.filter((t=>t.toLowerCase().includes(o.trim().toLowerCase()))):this.filteredSuggestions,this.isOpen=(1!==(null===(t=this.filteredSuggestions)||void 0===t?void 0:t.length)||this.filteredSuggestions[0]!==o)&&!!(this.filteredSuggestions&&this.filteredSuggestions.length>0))}selectOption(o){var t;const e=this.getRenderProp("name");this._value=o,this.handleInput(u(k.input,{name:e,value:o},this.ctaRef.el),o),this.handleChange(u(k.change,{name:e,value:o},this.ctaRef.el),o),this.hasValue=!!o,this.formAssociation.setFormAssociatedValue(o),this.filteredSuggestions=[...this.getRenderProp("suggestions")],this.setRenderProp("value",o),null===(t=this.ctaRef.el)||void 0===t||t.focus()}clearSelection(){var o;if(!0===this.getRenderProp("disabled"))return;null===(o=this.ctaRef.el)||void 0===o||o.focus();const t="";this.focusedIndex=-1,this._value=t,this.setRenderProp("value",t),this.filteredSuggestions=[...this.getRenderProp("suggestions")],this.isOpen=!1;const e={name:this.getRenderProp("name"),value:t};this.handleInput(u(k.input,e,this.ctaRef.el),t),this.handleChange(u(k.change,e,this.ctaRef.el),t),this.hasValue=!1,this.formAssociation.setFormAssociatedValue(t)}getInputProps(){const{ariaDescribedBy:o,hasError:t}=this.getAria(),e=this.id,i=!0===this.getRenderProp("disabled"),n=this.getRenderProp("accessKey")||void 0,s=this.getRenderProp("placeholder"),l=this.getRenderProp("shortKey")||void 0,a=this.getRenderProp("hideLabel"),r=this.getRenderProp("label");return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({id:e,hideLabel:a,label:r,disabled:i,name:this.getRenderProp("name")||void 0},n?{accessKey:n}:{}),{value:this.getRenderProp("value"),required:this.getRenderProp("required")}),s?{placeholder:s}:{}),{touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")}),l?{"aria-keyshortcuts":l}:{}),{ref:this.ctaRef,class:"kol-combobox__input",type:"text",role:"combobox","aria-activedescendant":this.getActiveDescendant(),"aria-autocomplete":"list","aria-controls":c(e,"listbox"),"aria-describedby":o.length>0?o.join(" "):void 0,"aria-expanded":this.isOpen?"true":"false","aria-label":a&&"string"==typeof r?r:void 0,"aria-labelledby":c(e,"label"),autocapitalize:"off",autocorrect:"off",autocomplete:"off",onBlur:this.handleInputBlur,onChange:this.handleComboboxChange,onClick:this.handleClick,onFocus:this.handleFocus,onInput:this.handleComboboxInput,onKeyDown:this.handleKeyDown,ariaDescribedBy:o,"aria-invalid":t?"true":void 0})}renderOptions(){const t=this.getRenderProp("value");return Array.isArray(this.filteredSuggestions)&&this.filteredSuggestions.length>0&&this.filteredSuggestions.map(((e,i)=>o(w,{id:this.getOptionId(i),disabled:!1,index:i,option:e,searchTerm:t,ref:o=>{o&&(this.optionRefs[i]=o)},selected:t===e,onClick:()=>{this.selectOption(e),this.toggleListbox(),this.isOpen=!1},onMouseOver:()=>{this.blockSuggestionMouseOver||this.focusOption(i)},onFocus:()=>{this.focusOption(i)}})))}applySuggestions(o){T.apply(o,(o=>this.setRenderProp("suggestions",o)))}applyValue(o){null!=o&&I.apply(o,(o=>this.setRenderProp("value",o)))}render(){const t=!0===this.getRenderProp("disabled"),{startAdornment:i,endAdornment:n}=C({icons:this.getRenderProp("icons")});return o(e,{key:"0c05822b15984bdc3532b9a79fb5c059de9bff57"},o(A,Object.assign({key:"145a6885cf2091df4928d7b814a7a323913ab8a2"},this.getFormFieldProps({class:a("kol-combobox",{"has-value":this.hasValue,"kol-combobox--open":this.isOpen}),accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,required:this.getRenderProp("required"),variant:this.getRenderProp("variant")})),o(D,{key:"4f401e2b893d91ddbb1b0a46405445182c1c77ce",disabled:t,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:n},o(j,{key:"8f6c478ef7575f0048b29a0c3c0b2d7d6f0bc955",block:"kol-combobox"},o(L,Object.assign({key:"fd611d1eac02a9506f3ae771722fabae0fdd3d80"},this.getInputProps())),this.getRenderProp("value")&&this.getRenderProp("hasClearButton")&&o(p,Object.assign({key:"4f2a719306f763c44fa0db9a41eea881a8ef6c7a"},this.clearButton.getFcProps({_icons:"kolicon-cross",_label:this.translateDeleteSelection,_hideLabel:!0,_variant:"ghost",_disabled:t,_on:{onClick:()=>{this.clearSelection()}}},{class:V,hidden:t,onBlur:this.stopClearButtonFocusEvent,onFocus:this.stopClearButtonFocusEvent}))),o(G,{key:"606aa1a136ee653ccdc5d08f0bc7c63345956f7c",disabled:t,expanded:this.isOpen,handleClick:this.toggleListbox,label:this.translateShowSuggestions,listboxId:c(this.id,"listbox")})),o(z,{key:"fdd860c7e3fe2f58931054edb1d6399c18ff7a39",blockSuggestionMouseOver:this.blockSuggestionMouseOver,onKeyDown:this.handleDropdownKeyDown,hidden:!this.isOpen||t,id:c(this.id,"listbox"),"aria-labelledby":c(this.id,"label")},this.renderOptions()))))}get host(){return i(this)}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_placeholder:[{watchPlaceholder:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_hasClearButton:[{watchHasClearButton:0}],_suggestions:[{watchSuggestions:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}};n([d("ctaRef")],M.prototype,"focus",null),n([b("ctaRef")],M.prototype,"click",null),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; } } @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; } .kol-custom-suggestions-option { line-height: 1.5; white-space: normal; overflow-wrap: break-word; } .kol-custom-suggestions-option:not(.kol-custom-suggestions-option--disabled) { cursor: pointer; } .kol-custom-suggestions-options-group--cursor-hidden .kol-custom-suggestions-option { cursor: none !important; } .kol-custom-suggestions-option--disabled, .kol-custom-suggestions-option--disabled * { cursor: not-allowed; } .kol-custom-suggestions-options-group { background-color: white; display: block; position: absolute; z-index: 2; max-height: calc(250 * 1rem / var(--kolibri-root-font-size, 16)); margin: 0; padding: 0; overflow-x: hidden; overflow-y: auto; list-style-type: none; } .kol-input-container:has(.kol-custom-suggestions-options-group--open) { z-index: 10; } .kol-custom-suggestions-toggle { display: flex; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; justify-content: center; cursor: default; } .kol-custom-suggestions-toggle.kol-custom-suggestions-toggle--disabled { cursor: not-allowed; } .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-input { background-color: transparent; width: 100%; min-width: var(--a11y-min-size); } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-combobox { } .kol-combobox__group .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-combobox__group :host { display: inline-block; } .kol-combobox__group .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-combobox__group .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-combobox__group .kol-button__interactive-element::before { content: ""; } .kol-combobox__group .kol-button__text { flex: 1 0 100%; } .kol-combobox__group .kol-button { } .kol-combobox__group .kol-button__tooltip { height: 0; } .kol-combobox__group .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-combobox__group .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-combobox-toggle { min-height: 0; flex: 0; align-self: stretch; } .kol-combobox--open .kol-combobox-toggle { transform: rotate(180deg); } }'};export{M as kol_combobox}
|
|
4
|
+
import{h as o,r as t,H as e,g as i}from"./index-8-BSSKQL.js";import{_ as n}from"./tslib.es6-QNbPBOk5.js";import{t as s}from"./i18n-BLkzMf6D.js";import{v as l}from"./access-and-short-key-ijzCZfHm.js";import{e as a}from"./props-from-config-LBgEHmcL.js";import{c as r,a as c}from"./dev.utils-DM7Qhcet.js";import{c as h}from"./element-focus-BIRmGg5W.js";import{d,a as b,c as m}from"./element-interaction-sGYdEpmv.js";import{c as k,K as u}from"./events-CRHxtwup.js";import{B as p}from"./component-BC1TpQVD.js";import{c as f}from"./item-H09kNXn9.js";import"./common-BdSzSIXg.js";import{a as g,d as _,v}from"./component-Bldy_ShO.js";import{h as y,B as x,C as w,L as j,a as B}from"./group-DCoICCiG.js";import{h as C,g as z,I as D}from"./input-container-Cb2xJUCl.js";import{p as S}from"./placeholder-BPZ2sQEB.js";import{r as T}from"./required-DBJ4iW2e.js";import{s as K}from"./suggestions-BsWy2U2z.js";import{s as O}from"./value-string-Baqhc_TX.js";import{f as A,F as I}from"./api-MBSY9afi.js";import{b as q}from"./bem-registry-SKACeCny.js";import{I as L}from"./component-LadkF9an.js";import{I as H}from"./input-C4yo-d7N.js";import"./i18n-BRgvVqCf.js";import"./component-Cj3P_f35.js";import"./component-D5yKRPCZ.js";import"./disabled-C2DzYwwy.js";import"./id-lCAtMmMx.js";import"./label-with-expert-slot-BVqi0_Fb.js";import"./validators-ByUMEUYD.js";import"./label-hints-BUADjqKF.js";import"./controller-CZcQ57AP.js";import"./component-names-Dhbtt0mX.js";import"./base-web-component-Bh2NCN7p.js";import"./behavior-DmR4WVXd.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./label-lang-segment-B13iL7iy.js";import"./resolve-props-0xfjG6h5.js";import"./aria-labelledby-DqJY_4G-.js";import"./behavior-DUy0X7U1.js";import"./bootstrap-Bp7i4RJQ.js";import"./item-gvmzMXYb.js";import"./component-B4CDonzN.js";import"./component-vxdandl4.js";import"./Heading-DDS-lyOB.js";const F={required:[...A.required,K],optional:[...A.optional,g,y,C,S,T,_,O,v]},M=q.forBlock("kol-combobox")("delete"),P=q.forBlock("kol-combobox-toggle")(),V=({disabled:t,expanded:e,handleClick:i,label:n,listboxId:s})=>o("button",{type:"button",tabIndex:-1,class:P,"aria-controls":s,"aria-expanded":e?"true":"false","aria-label":n,onClick:i,disabled:t,hidden:t},o(L,{icons:"kolicon-chevron-down",label:""})),G=class extends x{constructor(o){super(),new.target===G&&t(this,o),this.id=r("combobox"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.isOpen=!1,this.blockSuggestionMouseOver=!1,this.ctaRef=m(),this.clearButton=f((()=>this.host)),this.translateDeleteSelection=s("kol-delete-selection"),this.translateShowSuggestions=s("kol-show-suggestions"),this.hasValue=!1,this.propsConfig=F,this._accessKey=void 0,this._ariaDetails=void 0,this._placeholder=void 0,this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._infoPopover=void 0,this._msg=void 0,this._name=void 0,this._on=void 0,this._hasClearButton=!0,this._required=!1,this._shortKey=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this._variant=void 0,this.toggleListbox=()=>{var o;if(!0===this.getRenderProp("disabled"))this.isOpen=!1;else if(null===(o=this.ctaRef.el)||void 0===o||o.focus(),this.isOpen)this.isOpen=!1;else if(Array.isArray(this.filteredSuggestions)&&this.filteredSuggestions.length>0){this.isOpen=!0;const o=this.filteredSuggestions.findIndex((o=>o===this.getRenderProp("value")));this.focusedIndex=o>=0?o:-1,this.focusOption(this.focusedIndex)}},this.handleComboboxInput=o=>{const t=o.target.value;this.setRenderProp("value",t),this._value=t,this.handleInput(o,t),this.setFilteredSuggestionsByQuery(t),this.focusedIndex=-1,o.stopImmediatePropagation()},this.handleComboboxChange=o=>{o.stopPropagation();const t=this.getRenderProp("value");this.handleChange(o,t),this.hasValue=!!t,this.formAssociation.setFormAssociatedValue(t)},this.handleInputBlur=o=>{this.handleFocusLeave(o)},this.stopClearButtonFocusEvent=o=>{o.stopPropagation()},this.handleDropdownKeyDown=o=>{1===o.key.length&&/[a-z0-9]/i.test(o.key)&&(this.isOpen=!0,this.focusSuggestionStartingWith(o.key))},this.initFormAssociation("combobox",this._name)}watchAccessKey(o){g.apply(o,(o=>this.setRenderProp("accessKey",o))),l(o,this._shortKey)}watchAriaDetails(o){this.applyAriaDetails(o)}watchPlaceholder(o){S.apply(o,(o=>this.setRenderProp("placeholder",o)))}watchDisabled(o){this.applyDisabled(o)}watchHideMsg(o){this.applyHideMsg(o)}watchHideLabel(o){this.applyHideLabel(o)}watchHint(o){this.applyHint(o)}watchIcons(o){C.apply(o,(o=>this.setRenderProp("icons",o)))}watchInfoPopover(o){this.applyInfoPopover(o)}watchLabel(o){this.applyLabel(o)}watchMsg(o){this.applyMsg(o)}watchName(o){this.applyName(o)}watchOn(o){this.applyOn(o)}watchHasClearButton(o){y.apply(o,(o=>this.setRenderProp("hasClearButton",o)))}watchSuggestions(o){var t;this.applySuggestions(o),this.setFilteredSuggestionsByQuery(null!==(t=this._value)&&void 0!==t?t:"")}watchRequired(o){T.apply(o,(o=>this.setRenderProp("required",o)))}watchShortKey(o){_.apply(o,(o=>this.setRenderProp("shortKey",o))),l(this._accessKey,o)}watchSyncValueBySelector(o){this.applySyncValueBySelector(o)}watchTooltipAlign(o){this.applyTooltipAlign(o)}watchTouched(o){this.applyTouched(o)}watchValue(o){this.applyValue(o),this.formAssociation.setFormAssociatedValue(o)}watchVariant(o){v.apply(o,(o=>this.setRenderProp("variant",o)))}getValue(){return Promise.resolve(this.getRenderProp("value"))}focus(o){return Promise.resolve()}async click(){return Promise.resolve()}componentWillLoad(){this.setRenderProp("value",""),this.optionRefs=[],this._touched=!0===this._touched,this.watchAriaDetails(this._ariaDetails),this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccessKey(this._accessKey),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.watchHasClearButton(this._hasClearButton),this.watchPlaceholder(this._placeholder),this.watchRequired(this._required),this.applySuggestions(this._suggestions),this.applyValue(this._value),this.hasValue=!!this.getRenderProp("value"),this.filteredSuggestions=this.getRenderProp("suggestions")}componentDidRender(){this.syncFormField(),this.clearButton.syncListeners()}disconnectedCallback(){this.clearButton.destroy(),this.destroyFormField()}handleHostKeyDown(o){this.handleListboxKeyDown(o)}handleMouseEvent(){this.handleListboxMouseMove()}handleFocusIn(o){h(this.host)&&!this.inputHasFocus&&this.handleFocus(o)}handleFocusOut(o){var t;const e=o.relatedTarget,i=e&&(e===this.host||(null===(t=this.host)||void 0===t?void 0:t.contains(e)));this.inputHasFocus&&!i&&(this.handleBlur(o),this.isOpen&&(this.isOpen=!1))}getOptionCount(){return Array.isArray(this.filteredSuggestions)?this.filteredSuggestions.length:0}moveFocus(o){this.filteredSuggestions&&this.moveFocusWrapping(o)}focusFirstOption(){this.focusOption(0)}focusLastOption(){this.focusOption(this.filteredSuggestions?this.filteredSuggestions.length-1:0)}handleConfirmKey(o){const t=this.clearButton.getRootElement();t&&o.composedPath().includes(t)||(" "!==o.key?(this.isOpen&&this.selectFocusedOption()?this.isOpen=!1:this.toggleListbox(),o.preventDefault()):this.isOpen&&this.selectFocusedOption()&&(this.isOpen=!1,o.preventDefault()))}selectFocusedOption(){return!!(this.filteredSuggestions&&this.focusedIndex>=0&&this.focusedIndex<this.filteredSuggestions.length)&&(this.selectOption(this.filteredSuggestions[this.focusedIndex]),!0)}focusSuggestionStartingWith(o){const t=o.toLowerCase(),e=Array.isArray(this.filteredSuggestions)&&this.filteredSuggestions.length>0&&this.filteredSuggestions.findIndex((o=>o.toLowerCase().startsWith(t)));"number"==typeof e&&this.focusOption(e)}setFilteredSuggestionsByQuery(o){var t;if(void 0===o)return;const e=this.getRenderProp("suggestions");""===o.trim()?this.filteredSuggestions=[...e]:(this.filteredSuggestions=Array.isArray(e)?e.filter((t=>t.toLowerCase().includes(o.trim().toLowerCase()))):this.filteredSuggestions,this.isOpen=(1!==(null===(t=this.filteredSuggestions)||void 0===t?void 0:t.length)||this.filteredSuggestions[0]!==o)&&!!(this.filteredSuggestions&&this.filteredSuggestions.length>0))}selectOption(o){var t;const e=this.getRenderProp("name");this._value=o,this.handleInput(k(u.input,{name:e,value:o},this.ctaRef.el),o),this.handleChange(k(u.change,{name:e,value:o},this.ctaRef.el),o),this.hasValue=!!o,this.formAssociation.setFormAssociatedValue(o),this.filteredSuggestions=[...this.getRenderProp("suggestions")],this.setRenderProp("value",o),null===(t=this.ctaRef.el)||void 0===t||t.focus()}clearSelection(){var o;if(!0===this.getRenderProp("disabled"))return;null===(o=this.ctaRef.el)||void 0===o||o.focus();const t="";this.focusedIndex=-1,this._value=t,this.setRenderProp("value",t),this.filteredSuggestions=[...this.getRenderProp("suggestions")],this.isOpen=!1;const e={name:this.getRenderProp("name"),value:t};this.handleInput(k(u.input,e,this.ctaRef.el),t),this.handleChange(k(u.change,e,this.ctaRef.el),t),this.hasValue=!1,this.formAssociation.setFormAssociatedValue(t)}getInputProps(){const{ariaDescribedBy:o,hasError:t}=this.getAria(),e=this.id,i=!0===this.getRenderProp("disabled"),n=this.getRenderProp("accessKey")||void 0,s=this.getRenderProp("placeholder"),l=this.getRenderProp("shortKey")||void 0,a=this.getRenderProp("hideLabel"),r=this.getRenderProp("label");return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({id:e,hideLabel:a,label:r,disabled:i,name:this.getRenderProp("name")||void 0},n?{accessKey:n}:{}),{value:this.getRenderProp("value"),required:this.getRenderProp("required")}),s?{placeholder:s}:{}),{touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")}),l?{"aria-keyshortcuts":l}:{}),{ref:this.ctaRef,class:"kol-combobox__input",type:"text",role:"combobox","aria-activedescendant":this.getActiveDescendant(),"aria-autocomplete":"list","aria-controls":c(e,"listbox"),"aria-describedby":o.length>0?o.join(" "):void 0,"aria-expanded":this.isOpen?"true":"false","aria-label":a&&"string"==typeof r?r:void 0,"aria-labelledby":c(e,"label"),autocapitalize:"off",autocorrect:"off",autocomplete:"off",onBlur:this.handleInputBlur,onChange:this.handleComboboxChange,onClick:this.handleClick,onFocus:this.handleFocus,onInput:this.handleComboboxInput,onKeyDown:this.handleKeyDown,ariaDescribedBy:o,"aria-invalid":t?"true":void 0})}renderOptions(){const t=this.getRenderProp("value");return Array.isArray(this.filteredSuggestions)&&this.filteredSuggestions.length>0&&this.filteredSuggestions.map(((e,i)=>o(w,{id:this.getOptionId(i),disabled:!1,index:i,option:e,searchTerm:t,ref:o=>{o&&(this.optionRefs[i]=o)},selected:t===e,onClick:()=>{this.selectOption(e),this.toggleListbox(),this.isOpen=!1},onMouseOver:()=>{this.blockSuggestionMouseOver||this.focusOption(i)},onFocus:()=>{this.focusOption(i)}})))}applySuggestions(o){K.apply(o,(o=>this.setRenderProp("suggestions",o)))}applyValue(o){null!=o&&O.apply(o,(o=>this.setRenderProp("value",o)))}render(){const t=!0===this.getRenderProp("disabled"),{startAdornment:i,endAdornment:n}=z({icons:this.getRenderProp("icons")});return o(e,{key:"0c05822b15984bdc3532b9a79fb5c059de9bff57"},o(I,Object.assign({key:"145a6885cf2091df4928d7b814a7a323913ab8a2"},this.getFormFieldProps({class:a("kol-combobox",{"has-value":this.hasValue,"kol-combobox--open":this.isOpen}),accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,required:this.getRenderProp("required"),variant:this.getRenderProp("variant")})),o(D,{key:"4f401e2b893d91ddbb1b0a46405445182c1c77ce",disabled:t,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:n},o(j,{key:"8f6c478ef7575f0048b29a0c3c0b2d7d6f0bc955",block:"kol-combobox"},o(H,Object.assign({key:"fd611d1eac02a9506f3ae771722fabae0fdd3d80"},this.getInputProps())),this.getRenderProp("value")&&this.getRenderProp("hasClearButton")&&o(p,Object.assign({key:"4f2a719306f763c44fa0db9a41eea881a8ef6c7a"},this.clearButton.getFcProps({_icons:"kolicon-cross",_label:this.translateDeleteSelection,_hideLabel:!0,_variant:"ghost",_disabled:t,_on:{onClick:()=>{this.clearSelection()}}},{class:M,hidden:t,onBlur:this.stopClearButtonFocusEvent,onFocus:this.stopClearButtonFocusEvent}))),o(V,{key:"606aa1a136ee653ccdc5d08f0bc7c63345956f7c",disabled:t,expanded:this.isOpen,handleClick:this.toggleListbox,label:this.translateShowSuggestions,listboxId:c(this.id,"listbox")})),o(B,{key:"fdd860c7e3fe2f58931054edb1d6399c18ff7a39",blockSuggestionMouseOver:this.blockSuggestionMouseOver,onKeyDown:this.handleDropdownKeyDown,hidden:!this.isOpen||t,id:c(this.id,"listbox"),"aria-labelledby":c(this.id,"label")},this.renderOptions()))))}get host(){return i(this)}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_placeholder:[{watchPlaceholder:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_hasClearButton:[{watchHasClearButton:0}],_suggestions:[{watchSuggestions:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}};n([d("ctaRef")],G.prototype,"focus",null),n([b("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=1795160658049"); src: url("kolicons.eot?t=1795160658049#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1795160658049") format("woff2"), url("kolicons.woff?t=1795160658049") format("woff"), url("kolicons.ttf?t=1795160658049") format("truetype"), url("kolicons.svg?t=1795160658049#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; } .kol-custom-suggestions-option { line-height: 1.5; white-space: normal; overflow-wrap: break-word; } .kol-custom-suggestions-option:not(.kol-custom-suggestions-option--disabled) { cursor: pointer; } .kol-custom-suggestions-options-group--cursor-hidden .kol-custom-suggestions-option { cursor: none !important; } .kol-custom-suggestions-option--disabled, .kol-custom-suggestions-option--disabled * { cursor: not-allowed; } .kol-custom-suggestions-options-group { background-color: white; display: block; position: absolute; z-index: 2; max-height: calc(250 * 1rem / var(--kolibri-root-font-size, 16)); margin: 0; padding: 0; overflow-x: hidden; overflow-y: auto; list-style-type: none; } .kol-input-container:has(.kol-custom-suggestions-options-group--open) { z-index: 10; } .kol-custom-suggestions-toggle { display: flex; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; justify-content: center; cursor: default; } .kol-custom-suggestions-toggle.kol-custom-suggestions-toggle--disabled { cursor: not-allowed; } .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-input { background-color: transparent; width: 100%; min-width: var(--a11y-min-size); } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-combobox { } .kol-combobox__group .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-combobox__group :host { display: inline-block; } .kol-combobox__group .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-combobox__group .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-combobox__group .kol-button__interactive-element::before { content: ""; } .kol-combobox__group .kol-button__text { flex: 1 0 100%; } .kol-combobox__group .kol-button { } .kol-combobox__group .kol-button__tooltip { height: 0; } .kol-combobox__group .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-combobox__group .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-combobox-toggle { min-height: 0; flex: 0; align-self: stretch; } .kol-combobox--open .kol-combobox-toggle { transform: rotate(180deg); } }'};export{G as kol_combobox}
|