@public-ui/components 4.6.0-rc.1 → 4.6.0-rc.3
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 +3 -3
- package/dist/cjs/{Heading-DpKpW9_U.js → Heading-DqZXie2T.js} +1 -1
- package/dist/cjs/{api-DSnFV5pX.js → api-Cc1hT-oO.js} +25 -24
- package/dist/cjs/{app-globals-DWk29tH4.js → app-globals-DtXiFJRj.js} +3 -3
- package/dist/cjs/{aria-labelledby-BRMgWRVp.js → aria-labelledby-By2dgbCn.js} +0 -13
- package/dist/cjs/{base-uTtcb6OV.js → base-B-wbGF-X.js} +30 -36
- package/dist/cjs/{base-DB-5MCfF.js → base-BKsPSdXS.js} +12 -12
- package/dist/cjs/{base-Cdk10fDz.js → base-BjiXfuju.js} +10 -10
- package/dist/cjs/{base-B1L6tTOu.js → base-CoMrpiHg.js} +11 -11
- package/dist/cjs/{base-web-component-BdHm5Oq9.js → base-web-component-BXtl3Nmq.js} +10 -10
- package/dist/cjs/{base-web-component-CyF5QpIH.js → base-web-component-DApRK7Vs.js} +15 -15
- package/dist/cjs/{base-web-component-B6mwGD0m.js → base-web-component-DXCN-Sp3.js} +1 -1
- package/dist/cjs/{behavior-D5F_9gEC.js → behavior-DIv2ciyM.js} +5 -5
- package/dist/cjs/{behavior-C3w_8ifK.js → behavior-DtHCmCCv.js} +5 -5
- package/dist/cjs/{behavior-BnUihLzw.js → behavior-GG5TOrTV.js} +6 -13
- package/dist/cjs/{bem-registry-ZJZujhCi.js → bem-registry-h_moyLBn.js} +40 -1
- package/dist/cjs/{block-bem-CMvCkLkl.js → block-bem-BVBM34Tu.js} +1 -1
- package/dist/cjs/{bootstrap-C4lWLUW9.js → bootstrap-HU5YhM_w.js} +2 -2
- package/dist/cjs/{color-BW4t1Cif.js → color-C3xsA3Uk.js} +3 -3
- package/dist/cjs/{common-C-hcIfzh.js → common-CzGJx0nT.js} +31 -30
- package/dist/cjs/{component-BXz1XtoE.js → component-BE_fK-Xu.js} +15 -15
- package/dist/cjs/{component-DsWMXDya.js → component-BOI4FdZE.js} +7 -7
- package/dist/cjs/{component-CWEYNtAH.js → component-C9B-yJ93.js} +5 -5
- package/dist/cjs/{component-C46QQbMS.js → component-CNNGo5gU.js} +11 -11
- package/dist/cjs/{component-_p4OHWcc.js → component-CVLJJvvd.js} +14 -14
- package/dist/cjs/{component-CrW05zUq.js → component-Cnc2NyzE.js} +5 -5
- package/dist/cjs/{component-N-3XFtFS.js → component-CsnTf_45.js} +8 -8
- package/dist/cjs/{component-DfChjUi8.js → component-CxwSVBBv.js} +10 -10
- package/dist/cjs/{component-B2l8N5t_.js → component-D0uxhuF3.js} +4 -4
- package/dist/cjs/{component-BE_gS80r.js → component-DNQW0lG8.js} +2 -2
- package/dist/cjs/{component-eYoUHQ64.js → component-DfGgpwuP.js} +2 -2
- package/dist/cjs/{component-BwrQID5A.js → component-DlyhBQIa.js} +4 -4
- package/dist/cjs/{contrast-4mAdSLs0.js → contrast-6Nku3lih.js} +2 -2
- package/dist/cjs/{controller-DcinOUmN.js → controller-D66Eq44x.js} +1 -1
- package/dist/cjs/{dev.utils-Bxq7b-n1.js → dev.utils-DTQy7QrG.js} +2 -2
- package/dist/cjs/{devtools-BLvPSoCH.js → devtools-BAChPN0l.js} +3 -3
- package/dist/cjs/{disabled-jYcvcwjv.js → disabled-CilmJ-p-.js} +1 -1
- package/dist/cjs/{field-control-D9t3USqP.js → field-control-Bxj6Xuu8.js} +8 -8
- package/dist/cjs/{group-CFBPF3hG.js → group-BUdQbdkp.js} +7 -7
- package/dist/cjs/{has-closer-CvNa5gqv.js → has-closer-iSIrv52u.js} +1 -1
- package/dist/cjs/{href-BBhiVyPb.js → href-xojo1zy_.js} +1 -1
- package/dist/cjs/{i18n-BnOWw1MQ.js → i18n-D7UmRsV8.js} +2 -2
- package/dist/cjs/{i18n-BSWM5nea.js → i18n-DgHI4-xa.js} +2 -0
- package/dist/cjs/{id-D1VZsLkg.js → id-DP-w6i4q.js} +1 -1
- package/dist/cjs/{index-CNhjOFBg.js → index-BaB_2Z5W.js} +23 -12
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/{input-C3F73RZW.js → input-CtqTozTO.js} +5 -5
- package/dist/cjs/{input-container-B5-_NcRy.js → input-container-BcwbGU2R.js} +8 -8
- package/dist/cjs/{item-nAB1wPvv.js → item-BLrLbhAD.js} +12 -12
- package/dist/cjs/{item-dlea1NHr.js → item-BXt0-A5j.js} +30 -15
- package/dist/cjs/{item-CfCrfeQL.js → item-BYKMN41a.js} +5 -5
- package/dist/cjs/{item-DvddzW3M.js → item-DJ-XUS77.js} +6 -6
- package/dist/cjs/kol-abbr.cjs.entry.js +13 -12
- package/dist/cjs/kol-accordion.cjs.entry.js +21 -20
- package/dist/cjs/kol-alert.cjs.entry.js +32 -30
- package/dist/cjs/kol-avatar.cjs.entry.js +17 -16
- package/dist/cjs/kol-badge.cjs.entry.js +30 -29
- package/dist/cjs/kol-breadcrumb.cjs.entry.js +32 -31
- package/dist/cjs/kol-button-link.cjs.entry.js +29 -28
- package/dist/cjs/kol-button.cjs.entry.js +29 -28
- package/dist/cjs/kol-card.cjs.entry.js +34 -33
- package/dist/cjs/kol-combobox.cjs.entry.js +47 -46
- package/dist/cjs/kol-details.cjs.entry.js +21 -20
- package/dist/cjs/kol-dialog.cjs.entry.js +37 -36
- package/dist/cjs/kol-drawer.cjs.entry.js +36 -35
- package/dist/cjs/kol-form.cjs.entry.js +30 -29
- package/dist/cjs/kol-heading.cjs.entry.js +15 -14
- package/dist/cjs/kol-icon.cjs.entry.js +20 -16
- package/dist/cjs/kol-image.cjs.entry.js +10 -9
- package/dist/cjs/kol-input-checkbox.cjs.entry.js +54 -52
- package/dist/cjs/kol-input-color.cjs.entry.js +47 -45
- package/dist/cjs/kol-input-date.cjs.entry.js +49 -47
- package/dist/cjs/kol-input-email.cjs.entry.js +51 -49
- package/dist/cjs/kol-input-file.cjs.entry.js +46 -44
- package/dist/cjs/kol-input-number.cjs.entry.js +52 -50
- package/dist/cjs/kol-input-password.cjs.entry.js +50 -48
- package/dist/cjs/kol-input-radio.cjs.entry.js +42 -41
- package/dist/cjs/kol-input-range.cjs.entry.js +45 -44
- package/dist/cjs/kol-input-text.cjs.entry.js +51 -49
- package/dist/cjs/kol-kolibri.cjs.entry.js +13 -12
- package/dist/cjs/kol-link-button.cjs.entry.js +30 -29
- package/dist/cjs/kol-link.cjs.entry.js +30 -29
- package/dist/cjs/kol-meter.cjs.entry.js +20 -22
- package/dist/cjs/kol-modal.cjs.entry.js +37 -36
- package/dist/cjs/kol-nav.cjs.entry.js +38 -37
- package/dist/cjs/kol-pagination.cjs.entry.js +46 -45
- package/dist/cjs/kol-popover-button.cjs.entry.js +30 -29
- package/dist/cjs/kol-progress.cjs.entry.js +21 -17
- package/dist/cjs/kol-quote.cjs.entry.js +12 -11
- package/dist/cjs/kol-select.cjs.entry.js +42 -41
- package/dist/cjs/kol-single-select.cjs.entry.js +54 -48
- package/dist/cjs/kol-skip-nav.cjs.entry.js +32 -31
- package/dist/cjs/kol-spin.cjs.entry.js +17 -16
- package/dist/cjs/kol-split-button.cjs.entry.js +33 -32
- package/dist/cjs/kol-table-stateful.cjs.entry.js +59 -59
- package/dist/cjs/kol-table-stateless.cjs.entry.js +47 -47
- package/dist/cjs/kol-tabs.cjs.entry.js +36 -38
- package/dist/cjs/kol-textarea.cjs.entry.js +49 -46
- package/dist/cjs/kol-toast-container.cjs.entry.js +25 -24
- package/dist/cjs/kol-toolbar.cjs.entry.js +35 -34
- package/dist/cjs/kol-tooltip-wc.cjs.entry.js +15 -14
- package/dist/cjs/kol-tree-item.cjs.entry.js +32 -28
- package/dist/cjs/kol-tree.cjs.entry.js +26 -14
- package/dist/cjs/kol-version.cjs.entry.js +27 -26
- package/dist/cjs/kolibri.cjs.js +4 -4
- package/dist/cjs/{label-vVOiX4dC.js → label-D6c6jfqK.js} +3 -3
- package/dist/cjs/{label-hints-D6EBRW9T.js → label-hints-q3XenWLW.js} +2 -2
- package/dist/cjs/{label-lang-segment-CYlAqtUl.js → label-lang-segment-k4OY9qRY.js} +2 -2
- package/dist/cjs/{label-with-expert-slot-B9z4nqW1.js → label-with-expert-slot-CJoz7BLw.js} +3 -3
- package/dist/cjs/{level-BAiEYu4U.js → level-B6vFMm9s.js} +1 -1
- package/dist/cjs/{link-target-4AzB3I84.js → link-target-0qSVsAb2.js} +1 -1
- package/dist/cjs/{links-CPNK7VZo.js → links-Ur1e9DOK.js} +2 -2
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{multiple-B3ZpkzWu.js → multiple-CCxtzqez.js} +1 -1
- package/dist/cjs/{number-value-B2yoKlvx.js → number-value-DzAHCwlP.js} +1 -1
- package/dist/cjs/{open-CvoX_qxD.js → open-Gxr_K7HK.js} +1 -1
- package/dist/cjs/{options-B2pQC9w2.js → options-BT0m0gRT.js} +2 -2
- package/dist/cjs/{orientation-u2cvwgBc.js → orientation-CeHU4dT8.js} +1 -1
- package/dist/cjs/{placeholder-C9Ngp2tQ.js → placeholder-22xUUFff.js} +1 -1
- package/dist/cjs/{props-from-config-BQ2SOZlz.js → props-from-config-D1qhXS9j.js} +1 -1
- package/dist/cjs/{read-only-DfWF-Coi.js → read-only-iHApMQEg.js} +1 -1
- package/dist/cjs/{required-CdXn16dq.js → required-BYdSI25I.js} +1 -1
- package/dist/cjs/{resolve-props-BUSerQcI.js → resolve-props-B7klWjLx.js} +8 -8
- package/dist/cjs/{resolve-props-ClWlRbhz.js → resolve-props-c-uwDulF.js} +7 -7
- package/dist/cjs/{rows-Ca5ya9tG.js → rows-C9vBSQK1.js} +1 -1
- package/dist/cjs/{scroll-lock-CSW_wA0P.js → scroll-lock-daUQqmx_.js} +2 -2
- package/dist/cjs/{smart-button-CB8qIzgQ.js → smart-button-DRMmUyQ5.js} +2 -2
- package/dist/cjs/{spell-check-DKRC8xbW.js → spell-check-CxgvHcGA.js} +1 -1
- package/dist/cjs/{src-C3NG0rLO.js → src-Bmd7gQCS.js} +1 -1
- package/dist/cjs/{step-CZNyTb2h.js → step-CCqgsPCX.js} +1 -1
- package/dist/cjs/{suggestions-BRclldK2.js → suggestions-CoUp7HmN.js} +2 -2
- package/dist/cjs/{suggestions-CIGYxDps.js → suggestions-D3snLGL_.js} +3 -3
- package/dist/cjs/test-component.cjs.entry.js +4 -3
- package/dist/cjs/{toggle-handler-Cy5RcTS_.js → toggle-handler-B0xib7fH.js} +10 -10
- package/dist/cjs/{unique-nav-labels-CIAwid5V.js → unique-nav-labels-CgxOyb6V.js} +2 -2
- package/dist/cjs/{unit-bsoemclF.js → unit-_oDj-vIB.js} +1 -1
- package/dist/cjs/{validators-DuLdbf2D.js → validators-CpCJvM4r.js} +3 -1
- package/dist/cjs/{value-string-DZ_FFaUt.js → value-string-CKppMGVM.js} +1 -1
- package/dist/cjs/{width-BklaRCqt.js → width-e7f3wHF3.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/abbr/component.js +2 -2
- package/dist/collection/components/accordion/component.js +2 -2
- package/dist/collection/components/accordion/style.css +2 -2
- package/dist/collection/components/alert/component.js +4 -3
- package/dist/collection/components/alert/style.css +2 -2
- package/dist/collection/components/avatar/component.js +2 -2
- package/dist/collection/components/badge/component.js +2 -2
- package/dist/collection/components/badge/style.css +2 -2
- package/dist/collection/components/breadcrumb/component.js +2 -2
- package/dist/collection/components/breadcrumb/style.css +2 -2
- package/dist/collection/components/button/component.js +1 -1
- package/dist/collection/components/button/style.css +2 -2
- package/dist/collection/components/button-link/component.js +1 -1
- package/dist/collection/components/button-link/style.css +2 -2
- package/dist/collection/components/card/component.js +2 -2
- package/dist/collection/components/card/style.css +5 -2
- package/dist/collection/components/combobox/component.js +4 -4
- package/dist/collection/components/combobox/style.css +2 -2
- package/dist/collection/components/details/component.js +2 -2
- package/dist/collection/components/details/style.css +2 -2
- package/dist/collection/components/dialog/component.js +2 -2
- package/dist/collection/components/dialog/style.css +5 -2
- package/dist/collection/components/drawer/component.js +2 -2
- package/dist/collection/components/drawer/style.css +5 -2
- package/dist/collection/components/form/component.js +2 -2
- package/dist/collection/components/form/style.css +2 -2
- package/dist/collection/components/heading/component.js +2 -2
- package/dist/collection/components/icon/component.js +5 -5
- package/dist/collection/components/icon/style.css +2 -2
- package/dist/collection/components/image/component.js +2 -2
- package/dist/collection/components/input-checkbox/component.js +13 -11
- package/dist/collection/components/input-checkbox/style.css +2 -2
- package/dist/collection/components/input-color/component.js +6 -4
- package/dist/collection/components/input-color/style.css +2 -2
- package/dist/collection/components/input-date/component.js +5 -3
- package/dist/collection/components/input-date/style.css +2 -2
- package/dist/collection/components/input-email/component.js +4 -1
- package/dist/collection/components/input-email/style.css +2 -2
- package/dist/collection/components/input-file/component.js +6 -3
- package/dist/collection/components/input-file/style.css +2 -2
- package/dist/collection/components/input-number/component.js +6 -4
- package/dist/collection/components/input-number/style.css +2 -2
- package/dist/collection/components/input-password/component.js +5 -2
- package/dist/collection/components/input-password/style.css +2 -2
- package/dist/collection/components/input-radio/component.js +1 -1
- package/dist/collection/components/input-radio/style.css +2 -2
- package/dist/collection/components/input-range/component.js +2 -2
- package/dist/collection/components/input-range/style.css +2 -2
- package/dist/collection/components/input-text/component.js +4 -2
- package/dist/collection/components/input-text/style.css +2 -2
- package/dist/collection/components/kolibri/component.js +2 -2
- package/dist/collection/components/link/component.js +2 -2
- package/dist/collection/components/link/style.css +2 -2
- package/dist/collection/components/link-button/component.js +2 -2
- package/dist/collection/components/link-button/style.css +2 -2
- package/dist/collection/components/meter/component.js +2 -2
- package/dist/collection/components/modal/component.js +2 -2
- package/dist/collection/components/modal/style.css +5 -2
- package/dist/collection/components/nav/component.js +2 -2
- package/dist/collection/components/nav/style.css +2 -2
- package/dist/collection/components/pagination/component.js +2 -2
- package/dist/collection/components/pagination/style.css +2 -2
- package/dist/collection/components/popover-button/component.js +1 -1
- package/dist/collection/components/popover-button/style.css +2 -2
- package/dist/collection/components/progress/component.js +6 -3
- package/dist/collection/components/quote/component.js +2 -2
- package/dist/collection/components/select/component.js +1 -1
- package/dist/collection/components/select/style.css +2 -2
- package/dist/collection/components/single-select/component.js +10 -6
- package/dist/collection/components/single-select/style.css +2 -2
- package/dist/collection/components/skip-nav/component.js +2 -2
- package/dist/collection/components/skip-nav/style.css +2 -2
- package/dist/collection/components/spin/component.js +2 -2
- package/dist/collection/components/split-button/component.js +1 -1
- package/dist/collection/components/split-button/style.css +2 -2
- package/dist/collection/components/table-stateful/component.js +4 -6
- package/dist/collection/components/table-stateful/style.css +5 -2
- package/dist/collection/components/table-stateless/base.js +3 -0
- package/dist/collection/components/table-stateless/component.js +4 -6
- package/dist/collection/components/table-stateless/style.css +5 -2
- package/dist/collection/components/tabs/component.js +2 -11
- package/dist/collection/components/tabs/style.css +2 -2
- package/dist/collection/components/textarea/component.js +5 -3
- package/dist/collection/components/textarea/style.css +2 -2
- package/dist/collection/components/toaster/shadow.js +1 -1
- package/dist/collection/components/toaster/style.css +2 -2
- package/dist/collection/components/toolbar/component.js +2 -2
- package/dist/collection/components/toolbar/style.css +2 -2
- package/dist/collection/components/tooltip/component.js +1 -1
- package/dist/collection/components/tree/component.js +16 -5
- package/dist/collection/components/tree-item/component.js +6 -3
- package/dist/collection/components/tree-item/style.css +2 -2
- package/dist/collection/components/version/component.js +2 -2
- package/dist/collection/components/version/style.css +2 -2
- package/dist/collection/internal/functional-components/form-association/api.js +2 -2
- package/dist/collection/internal/functional-components/form-association/behavior.js +1 -5
- package/dist/collection/internal/functional-components/form-field/base-web-component.js +0 -1
- package/dist/collection/internal/functional-components/form-field/custom-suggestions.js +1 -1
- package/dist/collection/internal/functional-components/icon/api.js +2 -2
- package/dist/collection/internal/functional-components/link/component.js +1 -1
- package/dist/collection/internal/functional-components/meter/component.js +3 -6
- package/dist/collection/internal/functional-components/pagination/component.js +2 -3
- package/dist/collection/internal/functional-components/pagination/item.js +15 -0
- package/dist/collection/internal/functional-components/progress/component.js +1 -1
- package/dist/collection/internal/functional-components/single-select/component.js +2 -1
- package/dist/collection/internal/functional-components/tabs/component.js +7 -1
- package/dist/collection/internal/props/helpers/validators.js +1 -0
- package/dist/collection/internal/props/index.js +1 -0
- package/dist/collection/internal/props/label-decorative.js +10 -0
- package/dist/collection/locales/de.js +1 -0
- package/dist/collection/locales/en.js +1 -0
- package/dist/collection/schema/bem-registry.js +39 -0
- package/dist/collection/schema/i18n-keys.js +29 -28
- package/dist/collection/schema/props/aria-details.js +1 -22
- package/dist/collection/schema/props/aria-labelledby.js +3 -12
- package/dist/collection/utils/aria-labelledby.js +0 -12
- package/dist/components/aria-labelledby.js +1 -1
- 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/component3.js +1 -1
- package/dist/components/component6.js +1 -1
- package/dist/components/group.js +1 -1
- package/dist/components/i18n2.js +1 -1
- package/dist/components/item4.js +1 -1
- package/dist/components/kol-abbr.js +1 -1
- package/dist/components/kol-accordion.js +1 -1
- package/dist/components/kol-alert.js +1 -1
- package/dist/components/kol-avatar.js +1 -1
- package/dist/components/kol-badge.js +1 -1
- package/dist/components/kol-breadcrumb.js +1 -1
- package/dist/components/kol-button-link.js +1 -1
- package/dist/components/kol-button.js +1 -1
- package/dist/components/kol-card.js +1 -1
- package/dist/components/kol-combobox.js +1 -1
- package/dist/components/kol-details.js +1 -1
- package/dist/components/kol-dialog.js +1 -1
- package/dist/components/kol-drawer.js +1 -1
- package/dist/components/kol-form.js +1 -1
- package/dist/components/kol-heading.js +1 -1
- package/dist/components/kol-icon.js +1 -1
- package/dist/components/kol-image.js +1 -1
- package/dist/components/kol-input-checkbox.js +1 -1
- package/dist/components/kol-input-color.js +1 -1
- package/dist/components/kol-input-date.js +1 -1
- package/dist/components/kol-input-email.js +1 -1
- package/dist/components/kol-input-file.js +1 -1
- package/dist/components/kol-input-number.js +1 -1
- package/dist/components/kol-input-password.js +1 -1
- package/dist/components/kol-input-radio.js +1 -1
- package/dist/components/kol-input-range.js +1 -1
- package/dist/components/kol-input-text.js +1 -1
- package/dist/components/kol-kolibri.js +1 -1
- package/dist/components/kol-link-button.js +1 -1
- package/dist/components/kol-link.js +1 -1
- package/dist/components/kol-meter.js +1 -1
- package/dist/components/kol-modal.js +1 -1
- package/dist/components/kol-nav.js +1 -1
- package/dist/components/kol-pagination.js +1 -1
- package/dist/components/kol-popover-button.js +1 -1
- package/dist/components/kol-progress.js +1 -1
- package/dist/components/kol-quote.js +1 -1
- package/dist/components/kol-select.js +1 -1
- package/dist/components/kol-single-select.js +1 -1
- package/dist/components/kol-skip-nav.js +1 -1
- package/dist/components/kol-spin.js +1 -1
- package/dist/components/kol-split-button.js +1 -1
- package/dist/components/kol-table-stateful.js +1 -1
- package/dist/components/kol-table-stateless.js +1 -1
- package/dist/components/kol-tabs.js +1 -1
- package/dist/components/kol-textarea.js +1 -1
- package/dist/components/kol-toast-container.js +1 -1
- package/dist/components/kol-toolbar.js +1 -1
- package/dist/components/kol-tooltip-wc.js +1 -1
- package/dist/components/kol-tree-item.js +1 -1
- package/dist/components/kol-tree.js +1 -1
- package/dist/components/kol-version.js +1 -1
- package/dist/components/label-with-expert-slot.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/validators.js +1 -1
- package/dist/esm/{Heading-wrhAEuG3.js → Heading-GZb1f2pZ.js} +1 -1
- package/dist/esm/{api-7B_iI89k.js → api-CBPlj155.js} +23 -22
- package/dist/esm/{app-globals-tRqgHq3P.js → app-globals-DRl9A82c.js} +3 -3
- package/dist/esm/{aria-labelledby-CLehu03h.js → aria-labelledby-DqJY_4G-.js} +1 -13
- package/dist/esm/{base-C32RNC8q.js → base-BByRnpRm.js} +12 -12
- package/dist/esm/{base-BVztEKgJ.js → base-C7BBsrYZ.js} +30 -36
- package/dist/esm/{base-D_-9Lzkd.js → base-DO0KvOv9.js} +11 -11
- package/dist/esm/{base-BDYPTFjC.js → base-Dtxcvto_.js} +10 -10
- package/dist/esm/{base-web-component-DdY5aIHN.js → base-web-component-BxXLva5d.js} +10 -10
- package/dist/esm/{base-web-component-XgI4wUyN.js → base-web-component-CC_gpyDb.js} +1 -1
- package/dist/esm/{base-web-component-BUu68byc.js → base-web-component-CfPyCJDJ.js} +15 -15
- package/dist/esm/{behavior-fGxZN96S.js → behavior-CKU2tmCj.js} +5 -5
- package/dist/esm/{behavior-DsTiTiJC.js → behavior-CsNDRS2z.js} +5 -5
- package/dist/esm/{behavior-DN-22cB1.js → behavior-ewHvUWVk.js} +7 -13
- package/dist/esm/{bem-registry-Crcs_65u.js → bem-registry-D1KgKnyz.js} +40 -1
- package/dist/esm/{block-bem-DehcAQZQ.js → block-bem-D3ixJyOY.js} +1 -1
- package/dist/esm/{bootstrap-DHXUvPBY.js → bootstrap-tgQ2nQQI.js} +2 -2
- package/dist/esm/{color-eAL9I7Wq.js → color-D1gM-F2l.js} +3 -3
- package/dist/esm/{common-OzsC_6kt.js → common-BdSzSIXg.js} +31 -30
- package/dist/esm/{component-4xXBb7K-.js → component-6l69Jvwl.js} +4 -4
- package/dist/esm/{component-Cxdi6on4.js → component-B3OziaRC.js} +11 -11
- package/dist/esm/{component-DHNcVTi0.js → component-By8ggItU.js} +8 -8
- package/dist/esm/{component-EK9BJR6z.js → component-CF8uFG0A.js} +15 -15
- package/dist/esm/{component-BJ4gGOph.js → component-Ccv2lqNq.js} +2 -2
- package/dist/esm/{component-0IO2wu9i.js → component-Cmi6iGfA.js} +10 -10
- package/dist/esm/{component-CPq3i3I_.js → component-D4-NVnsT.js} +5 -5
- package/dist/esm/{component-ChuoBFI-.js → component-D6_K50vT.js} +4 -4
- package/dist/esm/{component-CTOYF3q6.js → component-D6lo0LzE.js} +7 -7
- package/dist/esm/{component-NEw1tN3M.js → component-D9NreIlK.js} +5 -5
- package/dist/esm/{component-DWywPG_a.js → component-DAk3R8NN.js} +14 -14
- package/dist/esm/{component-et0GdBuf.js → component-EDDTMC-J.js} +2 -2
- package/dist/esm/{contrast-D78VGPFR.js → contrast-BNoQruBh.js} +2 -2
- package/dist/esm/{controller-Cb-96wE-.js → controller-CZcQ57AP.js} +1 -1
- package/dist/esm/{dev.utils-Bg7nZBMk.js → dev.utils-BwYCy1rP.js} +2 -2
- package/dist/esm/{devtools-nUT3JVTV.js → devtools-CGP3Nzsw.js} +3 -3
- package/dist/esm/{disabled-Cqhc40CU.js → disabled-BZXlWAgK.js} +1 -1
- package/dist/esm/{field-control-D2tOd14v.js → field-control-0TRmF7Ea.js} +8 -8
- package/dist/esm/{group-CxWsx0aJ.js → group-DapkT_Yh.js} +7 -7
- package/dist/esm/{has-closer-B9NQY7BK.js → has-closer-DUB0QcS9.js} +1 -1
- package/dist/esm/{href-JqLbNBsW.js → href-CxokGOJ2.js} +1 -1
- package/dist/esm/{i18n-Dl6Jjofb.js → i18n-4J6U3ZDc.js} +2 -0
- package/dist/esm/{i18n-DtLKn3Xt.js → i18n-ePBcLlCr.js} +2 -2
- package/dist/esm/{id-CIYvVaNr.js → id-BI0ZuK17.js} +1 -1
- package/dist/esm/{index-B_bJG8-2.js → index-DEcM8BEc.js} +23 -12
- package/dist/esm/index.js +6 -6
- package/dist/esm/{input-Ia9Z3AP7.js → input-CDUCo1S5.js} +5 -5
- package/dist/esm/{input-container-Y_8n5Sen.js → input-container-BipAkWn4.js} +8 -8
- package/dist/esm/{item-BjriQHQl.js → item-B0oQTeju.js} +6 -6
- package/dist/esm/{item-BuqBMSYI.js → item-Boe3t0Dm.js} +12 -12
- package/dist/esm/{item-BZtI88zF.js → item-BvnZc8uV.js} +5 -5
- package/dist/esm/{item-BKVeXzUO.js → item-UgJ2uikD.js} +30 -15
- package/dist/esm/kol-abbr.entry.js +13 -12
- package/dist/esm/kol-accordion.entry.js +21 -20
- package/dist/esm/kol-alert.entry.js +32 -30
- package/dist/esm/kol-avatar.entry.js +17 -16
- package/dist/esm/kol-badge.entry.js +30 -29
- package/dist/esm/kol-breadcrumb.entry.js +32 -31
- package/dist/esm/kol-button-link.entry.js +29 -28
- package/dist/esm/kol-button.entry.js +29 -28
- package/dist/esm/kol-card.entry.js +34 -33
- package/dist/esm/kol-combobox.entry.js +47 -46
- package/dist/esm/kol-details.entry.js +21 -20
- package/dist/esm/kol-dialog.entry.js +37 -36
- package/dist/esm/kol-drawer.entry.js +36 -35
- package/dist/esm/kol-form.entry.js +30 -29
- package/dist/esm/kol-heading.entry.js +15 -14
- package/dist/esm/kol-icon.entry.js +20 -16
- package/dist/esm/kol-image.entry.js +10 -9
- package/dist/esm/kol-input-checkbox.entry.js +54 -52
- package/dist/esm/kol-input-color.entry.js +47 -45
- package/dist/esm/kol-input-date.entry.js +49 -47
- package/dist/esm/kol-input-email.entry.js +51 -49
- package/dist/esm/kol-input-file.entry.js +46 -44
- package/dist/esm/kol-input-number.entry.js +52 -50
- package/dist/esm/kol-input-password.entry.js +50 -48
- package/dist/esm/kol-input-radio.entry.js +42 -41
- package/dist/esm/kol-input-range.entry.js +45 -44
- package/dist/esm/kol-input-text.entry.js +51 -49
- package/dist/esm/kol-kolibri.entry.js +13 -12
- package/dist/esm/kol-link-button.entry.js +30 -29
- package/dist/esm/kol-link.entry.js +30 -29
- package/dist/esm/kol-meter.entry.js +20 -22
- package/dist/esm/kol-modal.entry.js +37 -36
- package/dist/esm/kol-nav.entry.js +38 -37
- package/dist/esm/kol-pagination.entry.js +46 -45
- package/dist/esm/kol-popover-button.entry.js +30 -29
- package/dist/esm/kol-progress.entry.js +21 -17
- package/dist/esm/kol-quote.entry.js +12 -11
- package/dist/esm/kol-select.entry.js +42 -41
- package/dist/esm/kol-single-select.entry.js +54 -48
- package/dist/esm/kol-skip-nav.entry.js +32 -31
- package/dist/esm/kol-spin.entry.js +17 -16
- package/dist/esm/kol-split-button.entry.js +33 -32
- package/dist/esm/kol-table-stateful.entry.js +59 -59
- package/dist/esm/kol-table-stateless.entry.js +47 -47
- package/dist/esm/kol-tabs.entry.js +36 -38
- package/dist/esm/kol-textarea.entry.js +49 -46
- package/dist/esm/kol-toast-container.entry.js +25 -24
- package/dist/esm/kol-toolbar.entry.js +35 -34
- package/dist/esm/kol-tooltip-wc.entry.js +15 -14
- package/dist/esm/kol-tree-item.entry.js +32 -28
- package/dist/esm/kol-tree.entry.js +26 -14
- package/dist/esm/kol-version.entry.js +27 -26
- package/dist/esm/kolibri.js +5 -5
- package/dist/esm/{label-BRosRgdX.js → label-B-Dr7VaP.js} +3 -3
- package/dist/esm/{label-hints-Jn18RUT-.js → label-hints-CLMiVvfk.js} +2 -2
- package/dist/esm/{label-lang-segment-2_GnxjFp.js → label-lang-segment-iVD9hoM3.js} +2 -2
- package/dist/esm/{label-with-expert-slot-CicRes-W.js → label-with-expert-slot-BbZ9nx0l.js} +3 -3
- package/dist/esm/{level-CA1s1_Mf.js → level-DsQ_pcyD.js} +1 -1
- package/dist/esm/{link-target-FX94oqMo.js → link-target-D7lYILOV.js} +1 -1
- package/dist/esm/{links-DwucTqcR.js → links-IkK4zoXw.js} +2 -2
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{multiple-DqrZxybx.js → multiple--ay1C1n3.js} +1 -1
- package/dist/esm/{number-value-B-SJ1dRo.js → number-value-Dl9-2O4r.js} +1 -1
- package/dist/esm/{open-DRRv1KFK.js → open-CNHJhHsy.js} +1 -1
- package/dist/esm/{options-DCaUcfAu.js → options-DwO32GBF.js} +2 -2
- package/dist/esm/{orientation-XNOCaPwy.js → orientation-ChJ0S24M.js} +1 -1
- package/dist/esm/{placeholder-BeLIzdJv.js → placeholder-UxmBJ4Vl.js} +1 -1
- package/dist/esm/{props-from-config-Ci0dILpz.js → props-from-config-ytxYrJUY.js} +1 -1
- package/dist/esm/{read-only-Bby9r6ZX.js → read-only-DytZ5HZJ.js} +1 -1
- package/dist/esm/{required-hoaT7UmZ.js → required-BriHhuO4.js} +1 -1
- package/dist/esm/{resolve-props-CHPFh7Tn.js → resolve-props-DTXKtzir.js} +7 -7
- package/dist/esm/{resolve-props-BkF1VBBB.js → resolve-props-kM9N-fzf.js} +8 -8
- package/dist/esm/{rows-B0x8CR7K.js → rows-I1jrTjzU.js} +1 -1
- package/dist/esm/{scroll-lock-D7Zo0QLt.js → scroll-lock-Bv-U2FHM.js} +2 -2
- package/dist/esm/{smart-button-CS_ZriPt.js → smart-button-DM5g48-g.js} +2 -2
- package/dist/esm/{spell-check-DzgftyqL.js → spell-check-BWCnJG5v.js} +1 -1
- package/dist/esm/{src-DaGhmCL1.js → src-ziOwSglN.js} +1 -1
- package/dist/esm/{step-Bdj89bGO.js → step-BcyhvRtu.js} +1 -1
- package/dist/esm/{suggestions-GEr-cvbz.js → suggestions-D0u80DtA.js} +3 -3
- package/dist/esm/{suggestions-Dy1X-Pc3.js → suggestions-LO267l8F.js} +2 -2
- package/dist/esm/test-component.entry.js +4 -3
- package/dist/esm/{toggle-handler-Bqoo8tCo.js → toggle-handler-mPlmvrq7.js} +10 -10
- package/dist/esm/{unique-nav-labels-h2KOu5Qy.js → unique-nav-labels-CxFUYSVY.js} +2 -2
- package/dist/esm/{unit-BUhhJbhT.js → unit-1ix-K9SD.js} +1 -1
- package/dist/esm/{validators-BVM40IEr.js → validators-CTjxOidB.js} +3 -2
- package/dist/esm/{value-string-e9pwLcS-.js → value-string-CxDz7dhD.js} +1 -1
- package/dist/esm/{width-CgYY17tL.js → width-C1_yZHyL.js} +1 -1
- package/dist/kolibri/Heading-GZb1f2pZ.js +4 -0
- package/dist/kolibri/api-CBPlj155.js +4 -0
- package/dist/kolibri/app-globals-DRl9A82c.js +4 -0
- package/dist/kolibri/aria-labelledby-DqJY_4G-.js +4 -0
- package/dist/kolibri/base-BByRnpRm.js +4 -0
- package/dist/kolibri/base-C7BBsrYZ.js +4 -0
- package/dist/kolibri/{base-D_-9Lzkd.js → base-DO0KvOv9.js} +1 -1
- package/dist/kolibri/{base-BDYPTFjC.js → base-Dtxcvto_.js} +1 -1
- package/dist/kolibri/{base-web-component-DdY5aIHN.js → base-web-component-BxXLva5d.js} +1 -1
- package/dist/kolibri/{base-web-component-XgI4wUyN.js → base-web-component-CC_gpyDb.js} +1 -1
- package/dist/kolibri/{base-web-component-BUu68byc.js → base-web-component-CfPyCJDJ.js} +1 -1
- package/dist/kolibri/{behavior-fGxZN96S.js → behavior-CKU2tmCj.js} +1 -1
- package/dist/kolibri/{behavior-DsTiTiJC.js → behavior-CsNDRS2z.js} +1 -1
- package/dist/kolibri/behavior-ewHvUWVk.js +4 -0
- package/dist/kolibri/{bem-registry-Crcs_65u.js → bem-registry-D1KgKnyz.js} +1 -1
- package/dist/kolibri/block-bem-D3ixJyOY.js +4 -0
- package/dist/kolibri/bootstrap-tgQ2nQQI.js +4 -0
- package/dist/kolibri/{color-eAL9I7Wq.js → color-D1gM-F2l.js} +1 -1
- package/dist/kolibri/common-BdSzSIXg.js +4 -0
- package/dist/kolibri/component-6l69Jvwl.js +4 -0
- package/dist/kolibri/component-B3OziaRC.js +4 -0
- package/dist/kolibri/{component-DHNcVTi0.js → component-By8ggItU.js} +1 -1
- package/dist/kolibri/component-CF8uFG0A.js +4 -0
- package/dist/kolibri/component-Ccv2lqNq.js +4 -0
- package/dist/kolibri/component-Cmi6iGfA.js +4 -0
- package/dist/kolibri/component-D4-NVnsT.js +4 -0
- package/dist/kolibri/component-D6_K50vT.js +4 -0
- package/dist/kolibri/component-D6lo0LzE.js +4 -0
- package/dist/kolibri/{component-NEw1tN3M.js → component-D9NreIlK.js} +1 -1
- package/dist/kolibri/component-DAk3R8NN.js +4 -0
- package/dist/kolibri/{component-et0GdBuf.js → component-EDDTMC-J.js} +1 -1
- package/dist/kolibri/contrast-BNoQruBh.js +4 -0
- package/dist/kolibri/{controller-Cb-96wE-.js → controller-CZcQ57AP.js} +1 -1
- package/dist/kolibri/dev.utils-BwYCy1rP.js +4 -0
- package/dist/kolibri/{devtools-nUT3JVTV.js → devtools-CGP3Nzsw.js} +1 -1
- package/dist/kolibri/disabled-BZXlWAgK.js +4 -0
- package/dist/kolibri/field-control-0TRmF7Ea.js +4 -0
- package/dist/kolibri/group-DapkT_Yh.js +4 -0
- package/dist/kolibri/has-closer-DUB0QcS9.js +4 -0
- package/dist/kolibri/href-CxokGOJ2.js +4 -0
- package/dist/kolibri/i18n-4J6U3ZDc.js +4 -0
- package/dist/kolibri/i18n-ePBcLlCr.js +4 -0
- package/dist/kolibri/id-BI0ZuK17.js +4 -0
- package/dist/kolibri/index-DEcM8BEc.js +6 -0
- package/dist/kolibri/index.esm.js +1 -1
- package/dist/kolibri/input-CDUCo1S5.js +4 -0
- package/dist/kolibri/input-container-BipAkWn4.js +4 -0
- package/dist/kolibri/item-B0oQTeju.js +4 -0
- package/dist/kolibri/item-Boe3t0Dm.js +4 -0
- package/dist/kolibri/item-BvnZc8uV.js +4 -0
- package/dist/kolibri/item-UgJ2uikD.js +4 -0
- package/dist/kolibri/kol-abbr.entry.js +1 -1
- package/dist/kolibri/kol-accordion.entry.js +1 -1
- package/dist/kolibri/kol-alert.entry.js +1 -1
- package/dist/kolibri/kol-avatar.entry.js +1 -1
- package/dist/kolibri/kol-badge.entry.js +1 -1
- package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
- package/dist/kolibri/kol-button-link.entry.js +1 -1
- package/dist/kolibri/kol-button.entry.js +1 -1
- package/dist/kolibri/kol-card.entry.js +1 -1
- package/dist/kolibri/kol-combobox.entry.js +1 -1
- package/dist/kolibri/kol-details.entry.js +1 -1
- package/dist/kolibri/kol-dialog.entry.js +1 -1
- package/dist/kolibri/kol-drawer.entry.js +1 -1
- package/dist/kolibri/kol-form.entry.js +1 -1
- package/dist/kolibri/kol-heading.entry.js +1 -1
- package/dist/kolibri/kol-icon.entry.js +1 -1
- package/dist/kolibri/kol-image.entry.js +1 -1
- package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
- package/dist/kolibri/kol-input-color.entry.js +1 -1
- package/dist/kolibri/kol-input-date.entry.js +1 -1
- package/dist/kolibri/kol-input-email.entry.js +1 -1
- package/dist/kolibri/kol-input-file.entry.js +1 -1
- package/dist/kolibri/kol-input-number.entry.js +1 -1
- package/dist/kolibri/kol-input-password.entry.js +1 -1
- package/dist/kolibri/kol-input-radio.entry.js +1 -1
- package/dist/kolibri/kol-input-range.entry.js +1 -1
- package/dist/kolibri/kol-input-text.entry.js +1 -1
- package/dist/kolibri/kol-kolibri.entry.js +1 -1
- package/dist/kolibri/kol-link-button.entry.js +1 -1
- package/dist/kolibri/kol-link.entry.js +1 -1
- package/dist/kolibri/kol-meter.entry.js +1 -1
- package/dist/kolibri/kol-modal.entry.js +1 -1
- package/dist/kolibri/kol-nav.entry.js +1 -1
- package/dist/kolibri/kol-pagination.entry.js +1 -1
- package/dist/kolibri/kol-popover-button.entry.js +1 -1
- package/dist/kolibri/kol-progress.entry.js +1 -1
- package/dist/kolibri/kol-quote.entry.js +1 -1
- package/dist/kolibri/kol-select.entry.js +1 -1
- package/dist/kolibri/kol-single-select.entry.js +1 -1
- package/dist/kolibri/kol-skip-nav.entry.js +1 -1
- package/dist/kolibri/kol-spin.entry.js +1 -1
- package/dist/kolibri/kol-split-button.entry.js +1 -1
- package/dist/kolibri/kol-table-stateful.entry.js +1 -1
- package/dist/kolibri/kol-table-stateless.entry.js +1 -1
- package/dist/kolibri/kol-tabs.entry.js +1 -1
- package/dist/kolibri/kol-textarea.entry.js +1 -1
- package/dist/kolibri/kol-toast-container.entry.js +1 -1
- package/dist/kolibri/kol-toolbar.entry.js +1 -1
- package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
- package/dist/kolibri/kol-tree-item.entry.js +1 -1
- package/dist/kolibri/kol-tree.entry.js +1 -1
- package/dist/kolibri/kol-version.entry.js +1 -1
- package/dist/kolibri/kolibri.esm.js +1 -1
- package/dist/kolibri/label-B-Dr7VaP.js +4 -0
- package/dist/kolibri/label-hints-CLMiVvfk.js +4 -0
- package/dist/kolibri/label-lang-segment-iVD9hoM3.js +4 -0
- package/dist/kolibri/label-with-expert-slot-BbZ9nx0l.js +4 -0
- package/dist/kolibri/level-DsQ_pcyD.js +4 -0
- package/dist/kolibri/link-target-D7lYILOV.js +4 -0
- package/dist/kolibri/links-IkK4zoXw.js +4 -0
- package/dist/kolibri/multiple--ay1C1n3.js +4 -0
- package/dist/kolibri/number-value-Dl9-2O4r.js +4 -0
- package/dist/kolibri/open-CNHJhHsy.js +4 -0
- package/dist/kolibri/options-DwO32GBF.js +4 -0
- package/dist/kolibri/orientation-ChJ0S24M.js +4 -0
- package/dist/kolibri/placeholder-UxmBJ4Vl.js +4 -0
- package/dist/kolibri/{props-from-config-Ci0dILpz.js → props-from-config-ytxYrJUY.js} +1 -1
- package/dist/kolibri/read-only-DytZ5HZJ.js +4 -0
- package/dist/kolibri/required-BriHhuO4.js +4 -0
- package/dist/kolibri/resolve-props-DTXKtzir.js +4 -0
- package/dist/kolibri/resolve-props-kM9N-fzf.js +4 -0
- package/dist/kolibri/rows-I1jrTjzU.js +4 -0
- package/dist/kolibri/{scroll-lock-D7Zo0QLt.js → scroll-lock-Bv-U2FHM.js} +1 -1
- package/dist/kolibri/{smart-button-CS_ZriPt.js → smart-button-DM5g48-g.js} +1 -1
- package/dist/kolibri/spell-check-BWCnJG5v.js +4 -0
- package/dist/kolibri/src-ziOwSglN.js +4 -0
- package/dist/kolibri/step-BcyhvRtu.js +4 -0
- package/dist/kolibri/suggestions-D0u80DtA.js +4 -0
- package/dist/kolibri/{suggestions-Dy1X-Pc3.js → suggestions-LO267l8F.js} +1 -1
- package/dist/kolibri/test-component.entry.js +1 -1
- package/dist/kolibri/toggle-handler-mPlmvrq7.js +4 -0
- package/dist/kolibri/unique-nav-labels-CxFUYSVY.js +4 -0
- package/dist/kolibri/unit-1ix-K9SD.js +4 -0
- package/dist/kolibri/validators-CTjxOidB.js +4 -0
- package/dist/kolibri/value-string-CxDz7dhD.js +4 -0
- package/dist/kolibri/{width-CgYY17tL.js → width-C1_yZHyL.js} +1 -1
- package/dist/types/components/progress/component.d.ts +1 -0
- package/dist/types/components/single-select/component.d.ts +1 -0
- package/dist/types/components/table-stateful/component.d.ts +0 -1
- package/dist/types/components/table-stateless/component.d.ts +0 -1
- package/dist/types/components/tabs/component.d.ts +0 -1
- package/dist/types/components/tree/component.d.ts +1 -0
- package/dist/types/components.d.ts +4 -4
- package/dist/types/internal/functional-components/form-association/api.d.ts +1 -1
- package/dist/types/internal/functional-components/form-association/behavior.d.ts +0 -1
- package/dist/types/internal/functional-components/form-field/custom-suggestions.d.ts +1 -0
- package/dist/types/internal/functional-components/icon/api.d.ts +1 -1
- package/dist/types/internal/functional-components/single-select/component.d.ts +3 -0
- package/dist/types/internal/props/helpers/validators.d.ts +2 -1
- package/dist/types/internal/props/index.d.ts +1 -0
- package/dist/types/internal/props/label-decorative.d.ts +4 -0
- package/dist/types/locales/de.d.ts +1 -0
- package/dist/types/locales/en.d.ts +1 -0
- package/dist/types/schema/bem-registry.d.ts +49 -0
- package/dist/types/schema/i18n-keys.d.ts +29 -28
- package/dist/types/schema/index.d.ts +1 -1
- package/dist/types/schema/props/aria-details.d.ts +0 -2
- package/dist/types/schema/props/aria-labelledby.d.ts +1 -2
- package/dist/types/schema/props/label.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1 -1
- package/dist/types/utils/aria-labelledby.d.ts +0 -6
- package/doc/table-stateful.md +16 -16
- package/doc/table-stateless.md +14 -14
- package/package.json +6 -6
- package/vscode-custom-data.json +2 -2
- package/dist/kolibri/Heading-wrhAEuG3.js +0 -4
- package/dist/kolibri/api-7B_iI89k.js +0 -4
- package/dist/kolibri/app-globals-tRqgHq3P.js +0 -4
- package/dist/kolibri/aria-labelledby-CLehu03h.js +0 -4
- package/dist/kolibri/base-BVztEKgJ.js +0 -4
- package/dist/kolibri/base-C32RNC8q.js +0 -4
- package/dist/kolibri/behavior-DN-22cB1.js +0 -4
- package/dist/kolibri/block-bem-DehcAQZQ.js +0 -4
- package/dist/kolibri/bootstrap-DHXUvPBY.js +0 -4
- package/dist/kolibri/common-OzsC_6kt.js +0 -4
- package/dist/kolibri/component-0IO2wu9i.js +0 -4
- package/dist/kolibri/component-4xXBb7K-.js +0 -4
- package/dist/kolibri/component-BJ4gGOph.js +0 -4
- package/dist/kolibri/component-CPq3i3I_.js +0 -4
- package/dist/kolibri/component-CTOYF3q6.js +0 -4
- package/dist/kolibri/component-ChuoBFI-.js +0 -4
- package/dist/kolibri/component-Cxdi6on4.js +0 -4
- package/dist/kolibri/component-DWywPG_a.js +0 -4
- package/dist/kolibri/component-EK9BJR6z.js +0 -4
- package/dist/kolibri/contrast-D78VGPFR.js +0 -4
- package/dist/kolibri/dev.utils-Bg7nZBMk.js +0 -4
- package/dist/kolibri/disabled-Cqhc40CU.js +0 -4
- package/dist/kolibri/field-control-D2tOd14v.js +0 -4
- package/dist/kolibri/group-CxWsx0aJ.js +0 -4
- package/dist/kolibri/has-closer-B9NQY7BK.js +0 -4
- package/dist/kolibri/href-JqLbNBsW.js +0 -4
- package/dist/kolibri/i18n-Dl6Jjofb.js +0 -4
- package/dist/kolibri/i18n-DtLKn3Xt.js +0 -4
- package/dist/kolibri/id-CIYvVaNr.js +0 -4
- package/dist/kolibri/index-B_bJG8-2.js +0 -6
- package/dist/kolibri/input-Ia9Z3AP7.js +0 -4
- package/dist/kolibri/input-container-Y_8n5Sen.js +0 -4
- package/dist/kolibri/item-BKVeXzUO.js +0 -4
- package/dist/kolibri/item-BZtI88zF.js +0 -4
- package/dist/kolibri/item-BjriQHQl.js +0 -4
- package/dist/kolibri/item-BuqBMSYI.js +0 -4
- package/dist/kolibri/label-BRosRgdX.js +0 -4
- package/dist/kolibri/label-hints-Jn18RUT-.js +0 -4
- package/dist/kolibri/label-lang-segment-2_GnxjFp.js +0 -4
- package/dist/kolibri/label-with-expert-slot-CicRes-W.js +0 -4
- package/dist/kolibri/level-CA1s1_Mf.js +0 -4
- package/dist/kolibri/link-target-FX94oqMo.js +0 -4
- package/dist/kolibri/links-DwucTqcR.js +0 -4
- package/dist/kolibri/multiple-DqrZxybx.js +0 -4
- package/dist/kolibri/number-value-B-SJ1dRo.js +0 -4
- package/dist/kolibri/open-DRRv1KFK.js +0 -4
- package/dist/kolibri/options-DCaUcfAu.js +0 -4
- package/dist/kolibri/orientation-XNOCaPwy.js +0 -4
- package/dist/kolibri/placeholder-BeLIzdJv.js +0 -4
- package/dist/kolibri/read-only-Bby9r6ZX.js +0 -4
- package/dist/kolibri/required-hoaT7UmZ.js +0 -4
- package/dist/kolibri/resolve-props-BkF1VBBB.js +0 -4
- package/dist/kolibri/resolve-props-CHPFh7Tn.js +0 -4
- package/dist/kolibri/rows-B0x8CR7K.js +0 -4
- package/dist/kolibri/spell-check-DzgftyqL.js +0 -4
- package/dist/kolibri/src-DaGhmCL1.js +0 -4
- package/dist/kolibri/step-Bdj89bGO.js +0 -4
- package/dist/kolibri/suggestions-GEr-cvbz.js +0 -4
- package/dist/kolibri/toggle-handler-Bqoo8tCo.js +0 -4
- package/dist/kolibri/unique-nav-labels-h2KOu5Qy.js +0 -4
- package/dist/kolibri/unit-BUhhJbhT.js +0 -4
- package/dist/kolibri/validators-BVM40IEr.js +0 -4
- package/dist/kolibri/value-string-e9pwLcS-.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as e,proxyCustomElement as r,Host as t,transformTag as a}from"@stencil/core/internal/client";import{B as o}from"./base-web-component.js";import{b as l}from"./bem-registry.js";import{c as i,b as s,m as n,r as c,t as d}from"./props-from-config.js";import{l as u}from"./label-lang-segment.js";import{m as h,u as b}from"./unit.js";import{t as k}from"./i18n.js";import{r as p}from"./component7.js";const g=["bar","cycle"],m=i("variant","bar",(e=>{const r=s(e);if(g.includes(r))return r;throw Error("Invalid progress variant: "+r)}),(()=>!0)),v={optional:[u,b,m],required:[h,n]},f=l.forBlock("kol-progress"),_=({max:r,value:t})=>e("svg",{width:"100",viewBox:"0 0 120 120",xmlns:"http://www.w3.org/2000/svg"},e("circle",{class:f("cycle-background"),cx:"60",cy:"60",r:"54.5",fill:"currentColor",stroke:"currentColor","stroke-width":"8"}),e("circle",{class:f("cycle-whitespace"),cx:"60",cy:"60",r:"59",fill:"currentColor",stroke:"currentColor","stroke-width":"3"}),e("circle",{class:f("cycle-border"),cx:"60",cy:"60",r:"59",fill:"currentColor",stroke:"currentColor","stroke-width":"1"}),e("circle",{class:f("cycle-whitespace"),cx:"60",cy:"60",r:"51",fill:"currentColor",stroke:"currentColor","stroke-width":"1"}),e("circle",{class:f("cycle-border"),cx:"60",cy:"60",r:"50",fill:"currentColor",stroke:"currentColor","stroke-width":"1"}),e("circle",{class:f("cycle-progress"),fill:"currentColor",stroke:"currentColor","stroke-linecap":"round","stroke-dasharray":Math.round(t/r*342)+"px 342px","stroke-width":"6",cx:"60",cy:"60",r:"54.5"})),y=({max:r,value:t})=>{const a=t/r*100;return e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"12",overflow:"visible"},e("rect",{class:f("bar-background"),x:"1",y:"1",height:"11",rx:"5",fill:"currentColor",stroke:"currentColor","stroke-width":"3",width:"100%"}),e("rect",{class:f("bar-border"),x:"1",y:"1",height:"11",rx:"5",fill:"currentColor",stroke:"currentColor","stroke-width":"1",width:"100%"}),e("rect",{class:f("bar-progress"),x:"3",y:"3",height:"7",rx:"3.5",fill:"currentColor",stroke:"currentColor","stroke-width":"3",style:{width:`calc(${a}% - 4px)`}}))},x=r=>{const{label:t,max:a,unit:o,value:l,variant:i,liveValue:s}=c(v,r),n="%"===o,u=n?""+Math.round(s/a*100):s,h=n?Math.round(l/a*100):l,b=(""+((n?100:a)+1)).length+"ch",g=n?k("kol-live-value",{placeholders:{value:u+"",unit:o}}):k("kol-live-value-bounded",{placeholders:{value:u+"",max:a+"",unit:o}});return e("div",{class:f()},e("div",{"aria-hidden":"true",class:f("cycle"===i?"cycle":"bar")},"bar"===i&&t&&e("div",{class:f("bar-label")},p(t)),((r,t,a)=>{switch(r){case"cycle":return e(_,{max:t,value:a});case"bar":return e(y,{max:t,value:a});default:throw Error(`Progress variant ${r} not implemented.`)}})(i,a,l),"cycle"===i&&e("div",{class:f("cycle-text")},t&&e("div",{class:f("cycle-label")},p(t)),e("div",{class:f("cycle-value")},`${h} ${o}`)),"bar"===i&&e("div",{class:f("bar-value"),style:{width:b}},h),"bar"===i&&e("div",{class:f("bar-unit")},o)),e("progress",{"aria-busy":l<a?"true":"false","aria-label":d(t),class:"visually-hidden",max:a,value:l}),e("span",{"aria-live":"polite","aria-relevant":"removals text",class:"visually-hidden"},g))},w=r(class extends o{constructor(e){super(!1),!1!==e&&this.__registerHost(),this.__attachShadow(),this.liveValue=0,this.propsConfig=v,this._label=void 0,this._unit=void 0,this._variant=void 0}watchLabel(e){u.apply(e,(e=>this.setRenderProp("label",e)),this.isRequired("label"))}watchMax(e){h.apply(e,(e=>{this.setRenderProp("max",e),this.watchValue(this.getRawProp("value"))}))}watchUnit(e){b.apply(e,(e=>this.setRenderProp("unit",e)))}watchValue(e){this.setRawProp("value",e),n.apply(e,(e=>{this.setRenderProp("value",e)}),{min:0,max:this.getRenderProp("max")})}watchVariant(e){m.apply(e,(e=>this.setRenderProp("variant",e)))}componentWillLoad(){u.apply(this._label,(e=>this.setRenderProp("label",e)),this.isRequired("label")),h.apply(this._max,(e=>{this.setRenderProp("max",e),this.watchValue(this.getRawProp("value"))})),b.apply(this._unit,(e=>this.setRenderProp("unit",e))),this.watchValue(this._value),m.apply(this._variant,(e=>this.setRenderProp("variant",e))),this.setState("liveValue",this.getRenderProp("value")),this.startLiveValueInterval()}disconnectedCallback(){this.interval&&(clearInterval(this.interval),this.interval=void 0)}startLiveValueInterval(){this.interval=setInterval((()=>{const e=this.getRenderProp("value");this.setState("liveValue",e)}),5e3)}render(){return e(t,{key:"7b3b9f0c5b2e3fbd2a2818a167ee559e87c7c864"},e(x,{key:"b27c426c8118051db38af57fc3706189ea2bdfc2",label:this.getRenderProp("label"),max:this.getRenderProp("max"),unit:this.getRenderProp("unit"),value:this.getRenderProp("value"),variant:this.getRenderProp("variant"),liveValue:this.liveValue}))}static get watchers(){return{_label:[{watchLabel:0}],_max:[{watchMax:0}],_unit:[{watchUnit:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { .kol-progress { --color-bar: var(--kol-progress-color-bar, #0075ff); } .kol-progress__bar { display: grid; align-items: center; grid-template-areas: "LABEL LABEL LABEL" "BAR VALUE UNIT"; grid-template-columns: 1fr auto; } .kol-progress__bar-label { grid-column-end: 2; grid-area: LABEL; } .kol-progress__bar svg { grid-area: BAR; } .kol-progress__bar-value { grid-area: VALUE; text-align: right; } .kol-progress__bar-unit { grid-area: UNIT; } .kol-progress__bar-border { fill: transparent; stroke: black; } .kol-progress__bar-background { fill: white; stroke: white; } .kol-progress__bar-progress { fill: var(--color-bar); stroke: transparent; } @media (prefers-reduced-motion: no-preference) { .kol-progress__bar-progress { transition: 250ms ease-in-out 50ms; } } .kol-progress__cycle { display: grid; align-content: center; justify-items: center; grid-template-areas: "ALL"; grid-template-columns: auto; } .kol-progress__cycle > * { grid-area: ALL; } .kol-progress__cycle-text { display: flex; flex-direction: column; justify-content: center; font-size: x-small; text-align: center; } .kol-progress__cycle-text * { background-color: white; } .kol-progress__cycle-background { fill: transparent; stroke: white; } .kol-progress__cycle-border { fill: transparent; stroke: black; } .kol-progress__cycle-whitespace { fill: transparent; stroke: white; } .kol-progress__cycle-progress { transform: rotate(-90deg); transform-origin: 50% 50%; fill: transparent; stroke: var(--color-bar); } @media (prefers-reduced-motion: no-preference) { .kol-progress__cycle-progress { transition: 250ms ease-in-out 50ms; } } }'}}},[545,"kol-progress",{_label:[1],_max:[2],_unit:[1],_value:[2],_variant:[1],liveValue:[32]},void 0,{_label:[{watchLabel:0}],_max:[{watchMax:0}],_unit:[{watchUnit:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]),C=w,L=function(){"undefined"!=typeof customElements&&["kol-progress"].forEach((e=>{"kol-progress"===e&&(customElements.get(a(e))||customElements.define(a(e),w))}))};export{C as KolProgress,L as defineCustomElement}
|
|
4
|
+
import{h as e,proxyCustomElement as r,Host as t,transformTag as a}from"@stencil/core/internal/client";import{B as o}from"./base-web-component.js";import{b as l}from"./bem-registry.js";import{c as i,b as s,m as n,r as c,t as d}from"./props-from-config.js";import{l as u}from"./label-lang-segment.js";import{m as h,u as b}from"./unit.js";import{t as k}from"./i18n.js";import{r as p}from"./component7.js";const g=["bar","cycle"],m=i("variant","bar",(e=>{const r=s(e);if(g.includes(r))return r;throw Error("Invalid progress variant: "+r)}),(()=>!0)),v={optional:[u,b,m],required:[h,n]},_=l.forBlock("kol-progress"),f=({max:r,value:t})=>e("svg",{width:"100",viewBox:"0 0 120 120",xmlns:"http://www.w3.org/2000/svg"},e("circle",{class:_("cycle-background"),cx:"60",cy:"60",r:"54.5",fill:"currentColor",stroke:"currentColor","stroke-width":"8"}),e("circle",{class:_("cycle-whitespace"),cx:"60",cy:"60",r:"59",fill:"currentColor",stroke:"currentColor","stroke-width":"3"}),e("circle",{class:_("cycle-border"),cx:"60",cy:"60",r:"59",fill:"currentColor",stroke:"currentColor","stroke-width":"1"}),e("circle",{class:_("cycle-whitespace"),cx:"60",cy:"60",r:"51",fill:"currentColor",stroke:"currentColor","stroke-width":"1"}),e("circle",{class:_("cycle-border"),cx:"60",cy:"60",r:"50",fill:"currentColor",stroke:"currentColor","stroke-width":"1"}),e("circle",{class:_("cycle-progress"),fill:"currentColor",stroke:"currentColor","stroke-linecap":"round","stroke-dasharray":Math.round(t/r*342)+"px 342px","stroke-width":"6",cx:"60",cy:"60",r:"54.5"})),y=({max:r,value:t})=>{const a=t/r*100;return e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"12",overflow:"visible"},e("rect",{class:_("bar-background"),x:"1",y:"1",height:"11",rx:"5",fill:"currentColor",stroke:"currentColor","stroke-width":"3",width:"100%"}),e("rect",{class:_("bar-border"),x:"1",y:"1",height:"11",rx:"5",fill:"currentColor",stroke:"currentColor","stroke-width":"1",width:"100%"}),e("rect",{class:_("bar-progress"),x:"3",y:"3",height:"7",rx:"3.5",fill:"currentColor",stroke:"currentColor","stroke-width":"3",style:{width:`calc(${a}% - 4px)`}}))},x=r=>{const{label:t,max:a,unit:o,value:l,variant:i,liveValue:s}=c(v,r),n="%"===o,u=n?""+Math.round(s/a*100):s,h=n?Math.round(l/a*100):l,b=(""+((n?100:a)+1)).length+"ch",g=n?k("kol-live-value",{placeholders:{value:u+"",unit:o}}):k("kol-live-value-bounded",{placeholders:{value:u+"",max:a+"",unit:o}});return e("div",{class:_()},e("div",{"aria-hidden":"true",class:_("cycle"===i?"cycle":"bar")},"bar"===i&&t&&e("div",{class:_("bar-label")},p(t)),((r,t,a)=>{switch(r){case"cycle":return e(f,{max:t,value:a});case"bar":return e(y,{max:t,value:a});default:throw Error(`Progress variant ${r} not implemented.`)}})(i,a,l),"cycle"===i&&e("div",{class:_("cycle-text")},t&&e("div",{class:_("cycle-label")},p(t)),e("div",{class:_("cycle-value")},`${h} ${o}`)),"bar"===i&&e("div",{class:_("bar-value"),style:{width:b}},h),"bar"===i&&e("div",{class:_("bar-unit")},o)),e("progress",{"aria-busy":l<a?"true":"false","aria-label":d(t)||k("kol-progress"),class:"visually-hidden",max:a,value:l}),e("span",{"aria-live":"polite","aria-relevant":"removals text",class:"visually-hidden"},g))},w=r(class extends o{constructor(e){super(!1),!1!==e&&this.__registerHost(),this.__attachShadow(),this.liveValue=0,this.propsConfig=v,this._label=void 0,this._unit=void 0,this._variant=void 0}watchLabel(e){u.apply(e,(e=>this.setRenderProp("label",e)),this.isRequired("label"))}watchMax(e){h.apply(e,(e=>{this.setRenderProp("max",e),this.watchValue(this.getRawProp("value"))}))}watchUnit(e){b.apply(e,(e=>this.setRenderProp("unit",e)))}watchValue(e){this.setRawProp("value",e),n.apply(e,(e=>{this.setRenderProp("value",e)}),{min:0,max:this.getRenderProp("max")})}watchVariant(e){m.apply(e,(e=>this.setRenderProp("variant",e)))}connectedCallback(){this.startLiveValueInterval()}componentWillLoad(){u.apply(this._label,(e=>this.setRenderProp("label",e)),this.isRequired("label")),h.apply(this._max,(e=>{this.setRenderProp("max",e),this.watchValue(this.getRawProp("value"))})),b.apply(this._unit,(e=>this.setRenderProp("unit",e))),this.watchValue(this._value),m.apply(this._variant,(e=>this.setRenderProp("variant",e))),this.setState("liveValue",this.getRenderProp("value"))}disconnectedCallback(){this.interval&&(clearInterval(this.interval),this.interval=void 0)}startLiveValueInterval(){clearInterval(this.interval),this.interval=setInterval((()=>{const e=this.getRenderProp("value");this.setState("liveValue",e)}),5e3)}render(){return e(t,{key:"28feb371878c4752f632384d8ae056924bcee1a6"},e(x,{key:"3371391ceac0c5940d67445c8cf5ce2a057a7fee",label:this.getRenderProp("label"),max:this.getRenderProp("max"),unit:this.getRenderProp("unit"),value:this.getRenderProp("value"),variant:this.getRenderProp("variant"),liveValue:this.liveValue}))}static get watchers(){return{_label:[{watchLabel:0}],_max:[{watchMax:0}],_unit:[{watchUnit:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { .kol-progress { --color-bar: var(--kol-progress-color-bar, #0075ff); } .kol-progress__bar { display: grid; align-items: center; grid-template-areas: "LABEL LABEL LABEL" "BAR VALUE UNIT"; grid-template-columns: 1fr auto; } .kol-progress__bar-label { grid-column-end: 2; grid-area: LABEL; } .kol-progress__bar svg { grid-area: BAR; } .kol-progress__bar-value { grid-area: VALUE; text-align: right; } .kol-progress__bar-unit { grid-area: UNIT; } .kol-progress__bar-border { fill: transparent; stroke: black; } .kol-progress__bar-background { fill: white; stroke: white; } .kol-progress__bar-progress { fill: var(--color-bar); stroke: transparent; } @media (prefers-reduced-motion: no-preference) { .kol-progress__bar-progress { transition: 250ms ease-in-out 50ms; } } .kol-progress__cycle { display: grid; align-content: center; justify-items: center; grid-template-areas: "ALL"; grid-template-columns: auto; } .kol-progress__cycle > * { grid-area: ALL; } .kol-progress__cycle-text { display: flex; flex-direction: column; justify-content: center; font-size: x-small; text-align: center; } .kol-progress__cycle-text * { background-color: white; } .kol-progress__cycle-background { fill: transparent; stroke: white; } .kol-progress__cycle-border { fill: transparent; stroke: black; } .kol-progress__cycle-whitespace { fill: transparent; stroke: white; } .kol-progress__cycle-progress { transform: rotate(-90deg); transform-origin: 50% 50%; fill: transparent; stroke: var(--color-bar); } @media (prefers-reduced-motion: no-preference) { .kol-progress__cycle-progress { transition: 250ms ease-in-out 50ms; } } }'}}},[545,"kol-progress",{_label:[1],_max:[2],_unit:[1],_value:[2],_variant:[1],liveValue:[32]},void 0,{_label:[{watchLabel:0}],_max:[{watchMax:0}],_unit:[{watchUnit:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]),C=w,L=function(){"undefined"!=typeof customElements&&["kol-progress"].forEach((e=>{"kol-progress"===e&&(customElements.get(a(e))||customElements.define(a(e),w))}))};export{C as KolProgress,L as defineCustomElement}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as e,proxyCustomElement as o,Host as t,transformTag as a}from"@stencil/core/internal/client";import{B as i}from"./base-web-component.js";import{b as l}from"./bem-registry.js";import{h as r}from"./href.js";import{c as n,b as s,E as c,r as d}from"./props-from-config.js";import{l as
|
|
4
|
+
import{h as e,proxyCustomElement as o,Host as t,transformTag as a}from"@stencil/core/internal/client";import{B as i}from"./base-web-component.js";import{b as l}from"./bem-registry.js";import{h as r}from"./href.js";import{c as n,b as s,E as c,r as d}from"./props-from-config.js";import{l as h}from"./label-lang-segment.js";import{b as u}from"./component-names.js";const b=n("quote","",s),k={optional:[h,c],required:[r,b]},p=l.forBlock("kol-quote"),f=p("blockquote"),m=p("cite"),_=p("figcaption"),g=p("quote"),y=o=>{const{href:t,label:a,quote:i,variant:l}=d(k,o),r=""===i,n=p({[l]:!0});return e("figure",{class:n},"block"===l?e("blockquote",{class:f,cite:t},i,e("span",{"aria-hidden":r?void 0:"true",hidden:!r},e("slot",{name:"expert"}))):e("q",{class:g,cite:t},i,e("span",{"aria-hidden":r?void 0:"true",hidden:!r},e("slot",{name:"expert"}))),!!a&&e("figcaption",{class:_},e("cite",{class:m},e(u,{_href:t,_label:a,_target:"_blank"}))))},x=o(class extends i{constructor(e){super(!1),!1!==e&&this.__registerHost(),this.__attachShadow(),this.propsConfig=k,this._label=void 0,this._variant="inline"}watchHref(e){r.apply(e,(e=>this.setRenderProp("href",e)),this.isRequired("href"))}watchLabel(e){h.apply(e,(e=>this.setRenderProp("label",e)),this.isRequired("label"))}watchQuote(e){b.apply(e,(e=>this.setRenderProp("quote",e)))}watchVariant(e){c.apply(e,(e=>this.setRenderProp("variant",e)))}componentWillLoad(){r.apply(this._href,(e=>this.setRenderProp("href",e)),this.isRequired("href")),h.apply(this._label,(e=>this.setRenderProp("label",e)),this.isRequired("label")),b.apply(this._quote,(e=>this.setRenderProp("quote",e))),c.apply(this._variant,(e=>this.setRenderProp("variant",e)))}render(){return e(t,{key:"52c8ca2c634034fa8ad7347a66d04e731f2c661c"},e(y,{key:"f1068378b769a5b4645ca5e97d0e641442d7f6b4",href:this.getRenderProp("href"),label:this.getRenderProp("label"),quote:this.getRenderProp("quote"),variant:this.getRenderProp("variant")}))}static get watchers(){return{_href:[{watchHref:0}],_label:[{watchLabel:0}],_quote:[{watchQuote:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { .kol-quote { display: inline; margin: 0; padding: 0; } .kol-quote__cite::before { content: "—"; } .kol-quote--block .kol-quote__figcaption { display: inline; margin: 0; padding: 0; } .kol-quote__blockquote::before { content: open-quote; } .kol-quote__blockquote::after { content: close-quote; } }'}}},[545,"kol-quote",{_href:[1],_label:[1],_quote:[1],_variant:[1]},void 0,{_href:[{watchHref:0}],_label:[{watchLabel:0}],_quote:[{watchQuote:0}],_variant:[{watchVariant:0}]}]),w=x,v=function(){"undefined"!=typeof customElements&&["kol-quote"].forEach((e=>{"kol-quote"===e&&(customElements.get(a(e))||customElements.define(a(e),x))}))};export{w as KolQuote,v as defineCustomElement}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{proxyCustomElement as t,h as o,Host as e,transformTag as i}from"@stencil/core/internal/client";import{_ as n}from"./tslib.es6.js";import{B as l,s as a}from"./base-web-component4.js";import{c as r}from"./dev.utils.js";import{c as s,d as c}from"./element-interaction.js";const h=t(class extends l{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=r("select"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=s(),this.propsConfig=a,this._accessKey=void 0,this._ariaDetails=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._multiple=!1,this._name=void 0,this._on=void 0,this._required=!1,this._shortKey=void 0,this._rows=void 0,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this._variant=void 0,this.initFormAssociation("select",this._name)}watchAccessKey(t){this.applyAccessKey(t)}watchAriaDetails(t){this.applyAriaDetails(t)}watchDisabled(t){this.applyDisabled(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchIcons(t){this.applyIcons(t)}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMsg(t){this.applyMsg(t)}watchMultiple(t){this.applyMultiple(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchOptions(t){this.applyOptions(t)}watchRequired(t){this.applyRequired(t)}watchShortKey(t){this.applyShortKey(t)}watchRows(t){this.applyRows(t)}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTabIndex(t){this.applyTabIndex(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchValue(t){this.applyValue(t)}watchVariant(t){this.applyVariant(t)}getValue(){return Promise.resolve(this.getModelValue())}focus(t){return Promise.resolve()}componentWillLoad(){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.watchTabIndex(this._tabIndex),this.watchIcons(this._icons),this.watchOptions(this._options),this.watchMultiple(this._multiple),this.watchRequired(this._required),this.watchRows(this._rows),this.watchValue(this._value)}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField()}getAccessKeyProp(){return this._accessKey}getShortKeyProp(){return this._shortKey}render(){return o(e,{key:"14221ec03629ae9fe4c6836378569f5ff24f2784",class:"kol-select"},this.renderSelectField())}get host(){return this}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_msg:[{watchMsg:0}],_multiple:[{watchMultiple:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_options:[{watchOptions:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_rows:[{watchRows:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tabIndex:[{watchTabIndex:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794493099910"); src: url("kolicons.eot?t=1794493099910#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794493099910") format("woff2"), url("kolicons.woff?t=1794493099910") format("woff"), url("kolicons.ttf?t=1794493099910") format("truetype"), url("kolicons.svg?t=1794493099910#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-button { background-color: transparent; display: inline-block; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); margin: 0; padding: 0; text-align: center; } .kol-button__interactive-element { border-style: none; display: block; border-width: medium; font-weight: inherit; font-style: inherit; text-align: inherit; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: ""; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-form-field .kol-popover-button { display: inline; } .kol-form-field .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-form-field .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-form-field .kol-popover-button--inline { display: inline-block; } .kol-form-field .kol-popover-button--inline .kol-button, .kol-form-field .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-form-field .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-form-field .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-form-field { display: grid; } .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label { cursor: pointer; } .kol-form-field__label { display: flex; } .kol-form-field__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-form-field--required .kol-form-field__label-text:has(.kol-span__slot[hidden]) .kol-span__label::after, .kol-form-field--required:not(:has(.kol-form-field__label--legend)) .kol-form-field__input .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-input-container { background-color: transparent; display: grid; position: relative; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; grid-template-columns: 1fr; } .kol-input-container:has(> .kol-input-container__adornment--start) { grid-template-columns: auto 1fr auto; } .kol-input-container__container { position: relative; z-index: 1; } .kol-input-container__adornment { display: flex; align-items: center; } .kol-input-container__adornment .kol-icon { display: grid; place-items: center; } .kol-select { background-color: transparent; width: 100%; padding: 0; } .kol-select:not(:disabled) { cursor: pointer; } .kol-select:not([multiple], [size]) { height: 2.75em; } .kol-select[multiple][size="1"] { height: 2.75em; } .kol-select__option:checked::before { content: "✓ "; } .kol-select[multiple] option { display: flex; min-height: var(--a11y-min-size); align-items: center; } .kol-select[multiple][size="1"] option::checkmark { height: 100%; } .kol-select[multiple][size="1"] option:checked::before { display: none; } }'}}},[545,"kol-select",{_accessKey:[1,"_access-key"],_ariaDetails:[1,"_aria-details"],_disabled:[4],_hideMsg:[4,"_hide-msg"],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_infoPopover:[16],_label:[1],_msg:[1],_multiple:[4],_name:[1],_on:[16],_options:[1],_required:[4],_shortKey:[1,"_short-key"],_rows:[2],_syncValueBySelector:[1,"_sync-value-by-selector"],_tabIndex:[2,"_tab-index"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[1544],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],getValue:[64],focus:[64]},void 0,{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_msg:[{watchMsg:0}],_multiple:[{watchMultiple:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_options:[{watchOptions:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_rows:[{watchRows:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tabIndex:[{watchTabIndex:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]);n([c("ctaRef")],h.prototype,"focus",null);const d=h,k=function(){"undefined"!=typeof customElements&&["kol-select"].forEach((t=>{"kol-select"===t&&(customElements.get(i(t))||customElements.define(i(t),h))}))};export{d as KolSelect,k as defineCustomElement}
|
|
4
|
+
import{proxyCustomElement as t,h as o,Host as e,transformTag as i}from"@stencil/core/internal/client";import{_ as n}from"./tslib.es6.js";import{B as l,s as a}from"./base-web-component4.js";import{c as r}from"./dev.utils.js";import{c as s,d as c}from"./element-interaction.js";const h=t(class extends l{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=r("select"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=s(),this.propsConfig=a,this._accessKey=void 0,this._ariaDetails=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._multiple=!1,this._name=void 0,this._on=void 0,this._required=!1,this._shortKey=void 0,this._rows=void 0,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this._variant=void 0,this.initFormAssociation("select",this._name)}watchAccessKey(t){this.applyAccessKey(t)}watchAriaDetails(t){this.applyAriaDetails(t)}watchDisabled(t){this.applyDisabled(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchIcons(t){this.applyIcons(t)}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMsg(t){this.applyMsg(t)}watchMultiple(t){this.applyMultiple(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchOptions(t){this.applyOptions(t)}watchRequired(t){this.applyRequired(t)}watchShortKey(t){this.applyShortKey(t)}watchRows(t){this.applyRows(t)}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTabIndex(t){this.applyTabIndex(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchValue(t){this.applyValue(t)}watchVariant(t){this.applyVariant(t)}getValue(){return Promise.resolve(this.getModelValue())}focus(t){return Promise.resolve()}componentWillLoad(){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.watchTabIndex(this._tabIndex),this.watchIcons(this._icons),this.watchOptions(this._options),this.watchMultiple(this._multiple),this.watchRequired(this._required),this.watchRows(this._rows),this.watchValue(this._value)}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField()}getAccessKeyProp(){return this._accessKey}getShortKeyProp(){return this._shortKey}render(){return o(e,{key:"9c197a18d87d1514983d873fd2912ffc2fc48385",class:"kol-select"},this.renderSelectField())}get host(){return this}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_msg:[{watchMsg:0}],_multiple:[{watchMultiple:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_options:[{watchOptions:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_rows:[{watchRows:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tabIndex:[{watchTabIndex:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794913000943"); src: url("kolicons.eot?t=1794913000943#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794913000943") format("woff2"), url("kolicons.woff?t=1794913000943") format("woff"), url("kolicons.ttf?t=1794913000943") format("truetype"), url("kolicons.svg?t=1794913000943#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-button { background-color: transparent; display: inline-block; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); margin: 0; padding: 0; text-align: center; } .kol-button__interactive-element { border-style: none; display: block; border-width: medium; font-weight: inherit; font-style: inherit; text-align: inherit; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: ""; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-form-field .kol-popover-button { display: inline; } .kol-form-field .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-form-field .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-form-field .kol-popover-button--inline { display: inline-block; } .kol-form-field .kol-popover-button--inline .kol-button, .kol-form-field .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-form-field .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-form-field .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-form-field { display: grid; } .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label { cursor: pointer; } .kol-form-field__label { display: flex; } .kol-form-field__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-form-field--required .kol-form-field__label-text:has(.kol-span__slot[hidden]) .kol-span__label::after, .kol-form-field--required:not(:has(.kol-form-field__label--legend)) .kol-form-field__input .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-input-container { background-color: transparent; display: grid; position: relative; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; grid-template-columns: 1fr; } .kol-input-container:has(> .kol-input-container__adornment--start) { grid-template-columns: auto 1fr auto; } .kol-input-container__container { position: relative; z-index: 1; } .kol-input-container__adornment { display: flex; align-items: center; } .kol-input-container__adornment .kol-icon { display: grid; place-items: center; } .kol-select { background-color: transparent; width: 100%; padding: 0; } .kol-select:not(:disabled) { cursor: pointer; } .kol-select:not([multiple], [size]) { height: 2.75em; } .kol-select[multiple][size="1"] { height: 2.75em; } .kol-select__option:checked::before { content: "✓ "; } .kol-select[multiple] option { display: flex; min-height: var(--a11y-min-size); align-items: center; } .kol-select[multiple][size="1"] option::checkmark { height: 100%; } .kol-select[multiple][size="1"] option:checked::before { display: none; } }'}}},[545,"kol-select",{_accessKey:[1,"_access-key"],_ariaDetails:[1,"_aria-details"],_disabled:[4],_hideMsg:[4,"_hide-msg"],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_infoPopover:[16],_label:[1],_msg:[1],_multiple:[4],_name:[1],_on:[16],_options:[1],_required:[4],_shortKey:[1,"_short-key"],_rows:[2],_syncValueBySelector:[1,"_sync-value-by-selector"],_tabIndex:[2,"_tab-index"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[1544],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],getValue:[64],focus:[64]},void 0,{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_msg:[{watchMsg:0}],_multiple:[{watchMultiple:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_options:[{watchOptions:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_rows:[{watchRows:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tabIndex:[{watchTabIndex:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]);n([c("ctaRef")],h.prototype,"focus",null);const d=h,k=function(){"undefined"!=typeof customElements&&["kol-select"].forEach((t=>{"kol-select"===t&&(customElements.get(i(t))||customElements.define(i(t),h))}))};export{d as KolSelect,k as defineCustomElement}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as t,proxyCustomElement as o,Host as e,transformTag as i}from"@stencil/core/internal/client";import{_ as n}from"./tslib.es6.js";import{t as s}from"./i18n.js";import{v as l}from"./access-and-short-key.js";import{c as a}from"./clsx.js";import{c as r,a as c}from"./dev.utils.js";import{c as h}from"./element-focus.js";import{c as d,d as u}from"./element-interaction.js";import{c as p,K as k}from"./events.js";import{B as f}from"./component9.js";import{c as m}from"./item.js";import{h as b,g,I as _}from"./input-container.js";import{f as y,F as v}from"./base-web-component2.js";import{h as w,B as x,C as z,L as j,a as O}from"./group.js";import{I as B}from"./input.js";import{b as K}from"./bem-registry.js";import{a as T,d as A,v as C}from"./component3.js";import"./props-from-config.js";import{p as S}from"./placeholder.js";import{r as V}from"./required.js";import{r as I}from"./rows.js";import{c as D}from"./options2.js";import{I as H}from"./component5.js";const q=D(),F={required:[...y.required,q],optional:[...y.optional,T,w,b,S,V,I,A,C]},L=K.forBlock("kol-single-select"),M=K.forBlock("kol-custom-suggestions-toggle"),P=L("delete"),R=L("no-results-message"),E=({disabled:o,handleClick:e})=>t(H,{icons:"kolicon-chevron-down",label:"",class:M({disabled:o}),onClick:e}),G=({message:o})=>t("li",{class:R,role:"alert"},o," "),N=o(class extends x{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=r("single-select"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.isOpen=!1,this.blockSuggestionMouseOver=!1,this.filteredOptions=[],this.inputValue="",this.clearButton=m((()=>this.host)),this.ctaRef=d(),this.translateDeleteSelection=s("kol-delete-selection"),this.translateNoResultsMessage=s("kol-no-results-message"),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._required=!1,this._shortKey=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=null,this._hasClearButton=!0,this._rows=void 0,this._variant=void 0,this.toggleListbox=t=>{var o;if(null==t||t.preventDefault(),!0!==this.getRenderProp("disabled"))if(null===(o=this.ctaRef.el)||void 0===o||o.focus(),this.isOpen)this.isOpen=!1;else{this.isOpen=!0;const t=Array.isArray(this.filteredOptions)?this.filteredOptions.findIndex((t=>t.label===this.inputValue)):-1;this.focusOption(t>=0?t:-1)}},this.handleSingleSelectInput=t=>{const o=t.target.value;this.inputValue=o,this.isOpen=!0,this.setFilteredOptionsByQuery(o),this.focusedIndex=-1},this.handleSingleSelectChange=t=>{this.isOpen||this.handleChange(t,this._value)},this.handleSingleSelectClick=t=>{var o;this.toggleListbox(t),null===(o=this.ctaRef.el)||void 0===o||o.focus(),this.handleClick(t)},this.handleInputBlur=t=>{this.handleFocusLeave(t)},this.handleDropdownKeyDown=t=>{1===t.key.length&&/[a-z0-9]/i.test(t.key)&&(t.preventDefault(),this.isOpen=!0,this.focusOptionStartingWith(t.key))},this.handleClearButtonClick=()=>{var t;this.clearSelection(),null===(t=this.ctaRef.el)||void 0===t||t.focus(),this.clearButtonFocused=!1},this.initFormAssociation("single-select",this._name)}watchAccessKey(t){T.apply(t,(t=>this.setRenderProp("accessKey",t))),l(t,this._shortKey)}watchAriaDetails(t){this.applyAriaDetails(t)}watchPlaceholder(t){S.apply(t,(t=>this.setRenderProp("placeholder",t)))}watchDisabled(t){this.applyDisabled(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchIcons(t){b.apply(t,(t=>this.setRenderProp("icons",t)))}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMsg(t){this.applyMsg(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchOptions(t){var o;this.applyOptions(t),this.filteredOptions=[...null!==(o=this.getRenderProp("options"))&&void 0!==o?o:[]],this.isOpen?this.setFilteredOptionsByQuery(this.inputValue):this.updateInputValue(this._value)}watchRequired(t){V.apply(t,(t=>this.setRenderProp("required",t)))}watchShortKey(t){A.apply(t,(t=>this.setRenderProp("shortKey",t))),l(this._accessKey,t)}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchValue(t){this.updateInputValue(t)}watchHasClearButton(t){w.apply(t,(t=>this.setRenderProp("hasClearButton",t)))}watchRows(t){I.apply(t,(t=>this.setRenderProp("rows",t)))}watchVariant(t){C.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){return Promise.resolve(this._value)}focus(t){return Promise.resolve()}componentWillLoad(){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.applyOptions(this._options),this.watchRequired(this._required),this.watchPlaceholder(this._placeholder),this.watchHasClearButton(this._hasClearButton),this.watchRows(this._rows),this.filteredOptions=this.getRenderProp("options"),this.updateInputValue(this._value)}componentDidRender(){this.syncFormField(),this.clearButton.syncListeners()}disconnectedCallback(){this.clearButton.destroy(),this.destroyFormField()}handleHostKeyDown(t){this.handleListboxKeyDown(t)}handleMouseEvent(){this.handleListboxMouseMove()}handleFocusIn(t){setTimeout((()=>{h(this.host)&&!this.inputHasFocus&&this.handleFocus(t)}))}handleFocusOut(t){this.selectOptionByInputValue(),setTimeout((()=>{this.inputHasFocus&&!h(this.host)&&(this.handleBlur(t),this.isOpen=!1)}))}getOptionCount(){return Array.isArray(this.filteredOptions)?this.filteredOptions.length:0}moveFocus(t,o=1){this.filteredOptions&&this.moveFocusSkippingDisabled(t,o,(t=>!!this.filteredOptions[t].disabled))}focusFirstOption(){this.moveFocus(-1*this.focusedIndex)}focusLastOption(){this.moveFocus(this.filteredOptions?this.filteredOptions.length-1-this.focusedIndex:0,-1)}handleConfirmKey(t){var o;this.clearButtonFocused?(this.clearSelection(),t.preventDefault()):this.isOpen?this.selectFocusedOption()&&(null===(o=this.ctaRef.el)||void 0===o||o.focus(),this.handleListboxEvent(t,!1)):this.toggleListbox(t)}selectFocusedOption(){if(Array.isArray(this.filteredOptions)&&this.filteredOptions.length>0&&this.focusedIndex>=0){const t=this.filteredOptions[this.focusedIndex];return!(null==t?void 0:t.disabled)&&(this.selectOption(t),!0)}return!1}focusOptionStartingWith(t){const o=t.toLowerCase(),e=Array.isArray(this.filteredOptions)&&this.filteredOptions.findIndex((t=>t.label.toLowerCase().startsWith(o)&&!t.disabled));"number"==typeof e&&e>=0&&this.focusOption(e)}setFilteredOptionsByQuery(t){if(void 0===t)return;const o=this.getRenderProp("options");""===t.trim()?this.filteredOptions=[...o]:Array.isArray(o)&&o.length>0&&t.length>0&&(this.filteredOptions=o.filter((o=>{var e,i;return null===(i=null===(e=o.label)||void 0===e?void 0:e.toLowerCase())||void 0===i?void 0:i.includes(t.toLowerCase())})))}updateInputValue(t){var o;const e=null===(o=this.getRenderProp("options"))||void 0===o?void 0:o.find((o=>o.value===t));this.inputValue=e?e.label+"":""}selectOption(t){var o;if(t.value===this._value)return this.inputValue=t.label,void(this.filteredOptions=[...this.getRenderProp("options")]);this._value=t.value,this.inputValue=t.label;const e={name:null!==(o=this.getRenderProp("name"))&&void 0!==o?o:"",value:t.value};this.handleInput(p(k.input,e,this.ctaRef.el),t.value),this.handleChange(p(k.change,e,this.ctaRef.el),t.value),this.filteredOptions=[...this.getRenderProp("options")],this.formAssociation.setFormAssociatedValue(this._value)}clearSelection(){var t;if(!0===this.getRenderProp("disabled"))return;const o=null;this.focusedIndex=-1,this._value=o,this.inputValue="",this.filteredOptions=[...this.getRenderProp("options")];const e={name:this.getRenderProp("name"),value:o};this.handleInput(p(k.input,e,this.ctaRef.el),o),this.handleChange(p(k.change,e,this.ctaRef.el),o),null===(t=this.ctaRef.el)||void 0===t||t.focus(),this.isOpen=!0}selectOptionByInputValue(){const t=this.getRenderProp("options"),o=null==t?void 0:t.find((t=>{var o,e;return(null===(o=t.label)||void 0===o?void 0:o.toLowerCase())===(null===(e=this.inputValue)||void 0===e?void 0:e.toLowerCase())}));o?this.selectOption(o):null!=this._value&&(this.filteredOptions=[...null!=t?t:[]])}getInputProps(){const{ariaDescribedBy:t,hasError:o}=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.inputValue,required:this.getRenderProp("required")}),s?{placeholder:s}:{}),{touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")}),l?{"aria-keyshortcuts":l}:{}),{"aria-activedescendant":this.getActiveDescendant(),"aria-autocomplete":"both","aria-controls":c(e,"listbox"),"aria-describedby":t.length>0?t.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",class:"kol-single-select__input",ref:this.ctaRef,role:"combobox",type:"text",onBlur:this.handleInputBlur,onChange:this.handleSingleSelectChange,onClick:this.handleSingleSelectClick,onFocus:this.handleFocus,onInput:this.handleSingleSelectInput,onKeyDown:this.handleKeyDown,ariaDescribedBy:t,"aria-invalid":o?"true":void 0})}renderOptions(){return Array.isArray(this.filteredOptions)&&0!==this.filteredOptions.length?this.filteredOptions.map(((o,e)=>t(z,{id:this.getOptionId(e),index:e,option:o.label,searchTerm:this.inputValue,ref:t=>{t&&(this.optionRefs[e]=t)},selected:this._value===o.value,disabled:!!o.disabled,onClick:t=>{var e;o.disabled||(t.preventDefault(),this.selectOption(o),this.isOpen=!1,null===(e=this.ctaRef.el)||void 0===e||e.focus())},onMouseOver:()=>{this.blockSuggestionMouseOver||o.disabled||this.focusOption(e)},onFocus:()=>{o.disabled||this.focusOption(e)}}))):t(G,{message:this.translateNoResultsMessage})}applyOptions(t){q.apply(t,(t=>this.setRenderProp("options",t)))}render(){var o;const i=!0===this.getRenderProp("disabled"),{startAdornment:n,endAdornment:s}=g({icons:this.getRenderProp("icons")});return t(e,{key:"645006ffc83631deee4f2a68947ca6447837410c"},t(v,Object.assign({key:"a6549d4fff92421533f5069fd2c6e64900511b7c"},this.getFormFieldProps({class:a("kol-single-select",{"kol-single-select--open":this.isOpen}),accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,required:this.getRenderProp("required"),variant:this.getRenderProp("variant")})),t(_,{key:"987c9fd1edc16d071f1c025ec95b8518c2fa8b2d",disabled:i,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:n,endAdornment:s},t(j,{key:"556a2ab1d33b2ca7aa16f3c8b6c3948aa16ed537",block:"kol-single-select"},t(B,Object.assign({key:"9ca5738a8710ddd2b7473acef99a2d50e39defe3"},this.getInputProps())),this.inputValue&&this.getRenderProp("hasClearButton")&&t(f,Object.assign({key:"dcce9a968acb349499744f94dabdc4269cffffae"},this.clearButton.getFcProps({_icons:"kolicon-cross",_label:this.translateDeleteSelection,_hideLabel:!0,_variant:"ghost",_disabled:i,_on:{onClick:this.handleClearButtonClick,onFocus:this.handleClearButtonFocus,onBlur:this.handleClearButtonBlur}},{class:P,hidden:i}))),t(E,{key:"e9c94510205904c3155572828d4782940bcaca24",disabled:i,handleClick:this.toggleListbox})),t(O,{key:"5e4dc1c747d0d7c85a77edb794b9042ac993e4c4",blockSuggestionMouseOver:this.blockSuggestionMouseOver,onKeyDown:this.handleDropdownKeyDown,style:{"--visible-options":""+(null!==(o=this.getRenderProp("rows"))&&void 0!==o?o:5)},hidden:!this.isOpen||i,id:c(this.id,"listbox")},this.renderOptions()))))}get host(){return 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}],_options:[{watchOptions:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_hasClearButton:[{watchHasClearButton:0}],_rows:[{watchRows:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794493099910"); src: url("kolicons.eot?t=1794493099910#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794493099910") format("woff2"), url("kolicons.woff?t=1794493099910") format("woff"), url("kolicons.ttf?t=1794493099910") format("truetype"), url("kolicons.svg?t=1794493099910#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-single-select { } .kol-single-select__group .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-single-select__group :host { display: inline-block; } .kol-single-select__group .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-single-select__group .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-single-select__group .kol-button__interactive-element::before { content: ""; } .kol-single-select__group .kol-button__text { flex: 1 0 100%; } .kol-single-select__group .kol-button { } .kol-single-select__group .kol-button__tooltip { height: 0; } .kol-single-select__group .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-single-select__group .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-single-select__no-results-message { display: flex; min-height: calc(50 * 1rem / var(--kolibri-root-font-size, 16)); align-items: center; justify-content: center; cursor: default; } .kol-single-select .kol-custom-suggestions-options-group { max-height: calc(40 * 1rem / var(--kolibri-root-font-size, 16) * var(--visible-options, 5) + 2 * 1rem / var(--kolibri-root-font-size, 16)) !important; } .kol-single-select--open .kol-custom-suggestions-toggle { transform: rotate(180deg); } .kol-custom-suggestions-toggle:not(.kol-custom-suggestions-toggle--disabled) { cursor: pointer; } }'}}},[545,"kol-single-select",{_accessKey:[1,"_access-key"],_ariaDetails:[1,"_aria-details"],_placeholder:[1],_disabled:[4],_hideMsg:[4,"_hide-msg"],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_infoPopover:[16],_label:[1],_msg:[1],_name:[1],_on:[16],_options:[1],_required:[4],_shortKey:[1,"_short-key"],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[1032],_hasClearButton:[4,"_has-clear-button"],_rows:[2],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],isOpen:[32],blockSuggestionMouseOver:[32],filteredOptions:[32],inputValue:[32],getValue:[64],focus:[64]},[[0,"keydown","handleHostKeyDown"],[1,"mousemove","handleMouseEvent"],[0,"focusin","handleFocusIn"],[0,"focusout","handleFocusOut"]],{_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}],_options:[{watchOptions:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_hasClearButton:[{watchHasClearButton:0}],_rows:[{watchRows:0}],_variant:[{watchVariant:0}]}]);n([u("ctaRef")],N.prototype,"focus",null);const W=N,Q=function(){"undefined"!=typeof customElements&&["kol-single-select"].forEach((t=>{"kol-single-select"===t&&(customElements.get(i(t))||customElements.define(i(t),N))}))};export{W as KolSingleSelect,Q as defineCustomElement}
|
|
4
|
+
import{h as t,proxyCustomElement as o,Host as e,transformTag as i}from"@stencil/core/internal/client";import{_ as s}from"./tslib.es6.js";import{t as n}from"./i18n.js";import{v as l}from"./access-and-short-key.js";import{c as a}from"./clsx.js";import{c as r,a as c}from"./dev.utils.js";import{c as h}from"./element-focus.js";import{c as d,d as u}from"./element-interaction.js";import{c as p,K as k}from"./events.js";import{B as b}from"./component9.js";import{c as f}from"./item.js";import{h as m,g,I as _}from"./input-container.js";import{f as y,F as v}from"./base-web-component2.js";import{h as w,B as x,C as z,L as j,a as O}from"./group.js";import{I as B}from"./input.js";import{b as K}from"./bem-registry.js";import{a as T,d as A,v as C}from"./component3.js";import"./props-from-config.js";import{p as S}from"./placeholder.js";import{r as V}from"./required.js";import{r as I}from"./rows.js";import{c as D}from"./options2.js";import{I as H}from"./component5.js";const q=D(),F={required:[...y.required,q],optional:[...y.optional,T,w,m,S,V,I,A,C]},L=K.forBlock("kol-single-select"),M=K.forBlock("kol-custom-suggestions-toggle"),P=L("delete"),R=L("no-results-message"),E=({disabled:o,handleClick:e})=>t(H,{icons:"kolicon-chevron-down",label:"",class:M({disabled:o}),onClick:e}),G=({message:o})=>t("div",{class:R},o," "),N=({message:o})=>t("span",{class:"visually-hidden",role:"status"},o),W=o(class extends x{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=r("single-select"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.isOpen=!1,this.blockSuggestionMouseOver=!1,this.filteredOptions=[],this.inputValue="",this.clearButton=f((()=>this.host)),this.ctaRef=d(),this.translateDeleteSelection=n("kol-delete-selection"),this.translateNoResultsMessage=n("kol-no-results-message"),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._required=!1,this._shortKey=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=null,this._hasClearButton=!0,this._rows=void 0,this._variant=void 0,this.toggleListbox=t=>{var o;if(null==t||t.preventDefault(),!0!==this.getRenderProp("disabled"))if(null===(o=this.ctaRef.el)||void 0===o||o.focus(),this.isOpen)this.isOpen=!1;else{this.isOpen=!0;const t=Array.isArray(this.filteredOptions)?this.filteredOptions.findIndex((t=>t.label===this.inputValue)):-1;this.focusOption(t>=0?t:-1)}},this.handleSingleSelectInput=t=>{const o=t.target.value;this.inputValue=o,this.isOpen=!0,this.setFilteredOptionsByQuery(o),this.focusedIndex=-1},this.handleSingleSelectChange=t=>{this.isOpen||this.handleChange(t,this._value)},this.handleSingleSelectClick=t=>{var o;this.toggleListbox(t),null===(o=this.ctaRef.el)||void 0===o||o.focus(),this.handleClick(t)},this.handleInputBlur=t=>{this.handleFocusLeave(t)},this.handleDropdownKeyDown=t=>{1===t.key.length&&/[a-z0-9]/i.test(t.key)&&(t.preventDefault(),this.isOpen=!0,this.focusOptionStartingWith(t.key))},this.handleClearButtonClick=()=>{var t;this.clearSelection(),null===(t=this.ctaRef.el)||void 0===t||t.focus(),this.clearButtonFocused=!1},this.initFormAssociation("single-select",this._name)}watchAccessKey(t){T.apply(t,(t=>this.setRenderProp("accessKey",t))),l(t,this._shortKey)}watchAriaDetails(t){this.applyAriaDetails(t)}watchPlaceholder(t){S.apply(t,(t=>this.setRenderProp("placeholder",t)))}watchDisabled(t){this.applyDisabled(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchIcons(t){m.apply(t,(t=>this.setRenderProp("icons",t)))}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMsg(t){this.applyMsg(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchOptions(t){var o;this.applyOptions(t),this.filteredOptions=[...null!==(o=this.getRenderProp("options"))&&void 0!==o?o:[]],this.isOpen?this.setFilteredOptionsByQuery(this.inputValue):this.updateInputValue(this._value)}watchRequired(t){V.apply(t,(t=>this.setRenderProp("required",t)))}watchShortKey(t){A.apply(t,(t=>this.setRenderProp("shortKey",t))),l(this._accessKey,t)}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchValue(t){this.updateInputValue(t)}watchHasClearButton(t){w.apply(t,(t=>this.setRenderProp("hasClearButton",t)))}watchRows(t){I.apply(t,(t=>this.setRenderProp("rows",t)))}watchVariant(t){C.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){return Promise.resolve(this._value)}focus(t){return Promise.resolve()}componentWillLoad(){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.applyOptions(this._options),this.watchRequired(this._required),this.watchPlaceholder(this._placeholder),this.watchHasClearButton(this._hasClearButton),this.watchRows(this._rows),this.filteredOptions=this.getRenderProp("options"),this.updateInputValue(this._value)}componentDidRender(){this.syncFormField(),this.clearButton.syncListeners()}disconnectedCallback(){this.clearButton.destroy(),this.destroyFormField()}handleHostKeyDown(t){this.handleListboxKeyDown(t)}handleMouseEvent(){this.handleListboxMouseMove()}handleFocusIn(t){setTimeout((()=>{h(this.host)&&!this.inputHasFocus&&this.handleFocus(t)}))}handleFocusOut(t){this.selectOptionByInputValue(),setTimeout((()=>{this.inputHasFocus&&!h(this.host)&&(this.handleBlur(t),this.isOpen=!1)}))}getOptionCount(){return Array.isArray(this.filteredOptions)?this.filteredOptions.length:0}moveFocus(t,o=1){this.filteredOptions&&this.moveFocusSkippingDisabled(t,o,(t=>!!this.filteredOptions[t].disabled))}focusFirstOption(){this.moveFocus(-1*this.focusedIndex)}focusLastOption(){this.moveFocus(this.filteredOptions?this.filteredOptions.length-1-this.focusedIndex:0,-1)}handleConfirmKey(t){var o;this.clearButtonFocused?(this.clearSelection(),t.preventDefault()):this.isOpen?this.selectFocusedOption()&&(null===(o=this.ctaRef.el)||void 0===o||o.focus(),this.handleListboxEvent(t,!1)):this.toggleListbox(t)}selectFocusedOption(){if(Array.isArray(this.filteredOptions)&&this.filteredOptions.length>0&&this.focusedIndex>=0){const t=this.filteredOptions[this.focusedIndex];return!(null==t?void 0:t.disabled)&&(this.selectOption(t),!0)}return!1}focusOptionStartingWith(t){const o=t.toLowerCase(),e=Array.isArray(this.filteredOptions)&&this.filteredOptions.findIndex((t=>t.label.toLowerCase().startsWith(o)&&!t.disabled));"number"==typeof e&&e>=0&&this.focusOption(e)}setFilteredOptionsByQuery(t){if(void 0===t)return;const o=this.getRenderProp("options");""===t.trim()?this.filteredOptions=[...o]:Array.isArray(o)&&o.length>0&&t.length>0&&(this.filteredOptions=o.filter((o=>{var e,i;return null===(i=null===(e=o.label)||void 0===e?void 0:e.toLowerCase())||void 0===i?void 0:i.includes(t.toLowerCase())})))}updateInputValue(t){var o;const e=null===(o=this.getRenderProp("options"))||void 0===o?void 0:o.find((o=>o.value===t));this.inputValue=e?e.label+"":""}selectOption(t){var o;if(t.value===this._value)return this.inputValue=t.label,void(this.filteredOptions=[...this.getRenderProp("options")]);this._value=t.value,this.inputValue=t.label;const e={name:null!==(o=this.getRenderProp("name"))&&void 0!==o?o:"",value:t.value};this.handleInput(p(k.input,e,this.ctaRef.el),t.value),this.handleChange(p(k.change,e,this.ctaRef.el),t.value),this.filteredOptions=[...this.getRenderProp("options")],this.formAssociation.setFormAssociatedValue(this._value)}clearSelection(){var t;if(!0===this.getRenderProp("disabled"))return;const o=null;this.focusedIndex=-1,this._value=o,this.inputValue="",this.filteredOptions=[...this.getRenderProp("options")];const e={name:this.getRenderProp("name"),value:o};this.handleInput(p(k.input,e,this.ctaRef.el),o),this.handleChange(p(k.change,e,this.ctaRef.el),o),null===(t=this.ctaRef.el)||void 0===t||t.focus(),this.isOpen=!0}selectOptionByInputValue(){const t=this.getRenderProp("options"),o=null==t?void 0:t.find((t=>{var o,e;return(null===(o=t.label)||void 0===o?void 0:o.toLowerCase())===(null===(e=this.inputValue)||void 0===e?void 0:e.toLowerCase())}));o?this.selectOption(o):null!=this._value&&(this.filteredOptions=[...null!=t?t:[]])}getInputProps(){const{ariaDescribedBy:t,hasError:o}=this.getAria(),e=this.id,i=!0===this.getRenderProp("disabled"),s=this.getRenderProp("accessKey")||void 0,n=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},s?{accessKey:s}:{}),{value:this.inputValue,required:this.getRenderProp("required")}),n?{placeholder:n}:{}),{touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")}),l?{"aria-keyshortcuts":l}:{}),{"aria-activedescendant":this.getActiveDescendant(),"aria-autocomplete":"both","aria-controls":c(e,"listbox"),"aria-describedby":t.length>0?t.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",class:"kol-single-select__input",ref:this.ctaRef,role:"combobox",type:"text",onBlur:this.handleInputBlur,onChange:this.handleSingleSelectChange,onClick:this.handleSingleSelectClick,onFocus:this.handleFocus,onInput:this.handleSingleSelectInput,onKeyDown:this.handleKeyDown,ariaDescribedBy:t,"aria-invalid":o?"true":void 0})}hasNoResults(){return!Array.isArray(this.filteredOptions)||0===this.filteredOptions.length}renderOptions(){return this.hasNoResults()?[]:this.filteredOptions.map(((o,e)=>t(z,{id:this.getOptionId(e),index:e,option:o.label,searchTerm:this.inputValue,ref:t=>{t&&(this.optionRefs[e]=t)},selected:this._value===o.value,disabled:!!o.disabled,onClick:t=>{var e;o.disabled||(t.preventDefault(),this.selectOption(o),this.isOpen=!1,null===(e=this.ctaRef.el)||void 0===e||e.focus())},onMouseOver:()=>{this.blockSuggestionMouseOver||o.disabled||this.focusOption(e)},onFocus:()=>{o.disabled||this.focusOption(e)}})))}applyOptions(t){q.apply(t,(t=>this.setRenderProp("options",t)))}render(){var o;const i=!0===this.getRenderProp("disabled"),s=this.isOpen&&!i&&this.hasNoResults(),{startAdornment:n,endAdornment:l}=g({icons:this.getRenderProp("icons")});return t(e,{key:"e97d74740ca2641fc9e91808f9823a434f329ebe"},t(v,Object.assign({key:"427af456c8f187427acac404fec841b03e32fea4"},this.getFormFieldProps({class:a("kol-single-select",{"kol-single-select--open":this.isOpen}),accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,required:this.getRenderProp("required"),variant:this.getRenderProp("variant")})),t(_,{key:"0f292e23326941a0aab511890178b149dc9c4d44",disabled:i,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:n,endAdornment:l},t(j,{key:"86094880cdb9246187fca259826e3a8d7772c7e9",block:"kol-single-select"},t(B,Object.assign({key:"66de3c681eccffe2a7bad31fcf62b9af5a3be5ee"},this.getInputProps())),this.inputValue&&this.getRenderProp("hasClearButton")&&t(b,Object.assign({key:"8c45914b4492116e1c3065b552a2bc03a5ae905f"},this.clearButton.getFcProps({_icons:"kolicon-cross",_label:this.translateDeleteSelection,_hideLabel:!0,_variant:"ghost",_disabled:i,_on:{onClick:this.handleClearButtonClick,onFocus:this.handleClearButtonFocus,onBlur:this.handleClearButtonBlur}},{class:P,hidden:i}))),t(E,{key:"149196f27fb6d7b239ec867c90665ac4d9f811e3",disabled:i,handleClick:this.toggleListbox})),t(O,{key:"927d007b04a6e25651dd25abb2d2baba3b1b4375",blockSuggestionMouseOver:this.blockSuggestionMouseOver,onKeyDown:this.handleDropdownKeyDown,style:{"--visible-options":""+(null!==(o=this.getRenderProp("rows"))&&void 0!==o?o:5)},hidden:!this.isOpen||i,id:c(this.id,"listbox"),"aria-labelledby":c(this.id,"label")},this.renderOptions()),s&&t(G,{key:"98763dadb3abece49ebfcf4a0c07b73302cddd2f",message:this.translateNoResultsMessage}),t(N,{key:"b8783feb1b6693c0ddab9add1e1123624f30a578",message:s?this.translateNoResultsMessage:""}))))}get host(){return 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}],_options:[{watchOptions:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_hasClearButton:[{watchHasClearButton:0}],_rows:[{watchRows:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794913000943"); src: url("kolicons.eot?t=1794913000943#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794913000943") format("woff2"), url("kolicons.woff?t=1794913000943") format("woff"), url("kolicons.ttf?t=1794913000943") format("truetype"), url("kolicons.svg?t=1794913000943#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-single-select { } .kol-single-select__group .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-single-select__group :host { display: inline-block; } .kol-single-select__group .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-single-select__group .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-single-select__group .kol-button__interactive-element::before { content: ""; } .kol-single-select__group .kol-button__text { flex: 1 0 100%; } .kol-single-select__group .kol-button { } .kol-single-select__group .kol-button__tooltip { height: 0; } .kol-single-select__group .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-single-select__group .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-single-select__no-results-message { display: flex; min-height: calc(50 * 1rem / var(--kolibri-root-font-size, 16)); align-items: center; justify-content: center; cursor: default; } .kol-single-select .kol-custom-suggestions-options-group { max-height: calc(40 * 1rem / var(--kolibri-root-font-size, 16) * var(--visible-options, 5) + 2 * 1rem / var(--kolibri-root-font-size, 16)) !important; } .kol-single-select--open .kol-custom-suggestions-toggle { transform: rotate(180deg); } .kol-custom-suggestions-toggle:not(.kol-custom-suggestions-toggle--disabled) { cursor: pointer; } }'}}},[545,"kol-single-select",{_accessKey:[1,"_access-key"],_ariaDetails:[1,"_aria-details"],_placeholder:[1],_disabled:[4],_hideMsg:[4,"_hide-msg"],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_infoPopover:[16],_label:[1],_msg:[1],_name:[1],_on:[16],_options:[1],_required:[4],_shortKey:[1,"_short-key"],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[1032],_hasClearButton:[4,"_has-clear-button"],_rows:[2],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],isOpen:[32],blockSuggestionMouseOver:[32],filteredOptions:[32],inputValue:[32],getValue:[64],focus:[64]},[[0,"keydown","handleHostKeyDown"],[1,"mousemove","handleMouseEvent"],[0,"focusin","handleFocusIn"],[0,"focusout","handleFocusOut"]],{_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}],_options:[{watchOptions:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_hasClearButton:[{watchHasClearButton:0}],_rows:[{watchRows:0}],_variant:[{watchVariant:0}]}]);s([u("ctaRef")],W.prototype,"focus",null);const Q=W,U=function(){"undefined"!=typeof customElements&&["kol-single-select"].forEach((t=>{"kol-single-select"===t&&(customElements.get(i(t))||customElements.define(i(t),W))}))};export{Q as KolSingleSelect,U as defineCustomElement}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as o,proxyCustomElement as e,Host as t,transformTag as i}from"@stencil/core/internal/client";import{_ as n}from"./tslib.es6.js";import{B as l}from"./base-web-component.js";import{b as a,s as r,c as s}from"./bem-registry.js";import{d as c}from"./props-from-config.js";import{l as d}from"./label.js";import{c as k}from"./links.js";import{L as f,l as b,a as m,d as h,b as p}from"./component6.js";import{v as u}from"./access-and-short-key.js";import{n as g}from"./dev.utils.js";import{c as y,d as _}from"./element-interaction.js";import{d as v,K as x}from"./events.js";import{a as w,b as z,c as j,h as T,s as L,i as B,d as G,t as I,e as C}from"./component3.js";import{d as E}from"./disabled.js";import{h as S}from"./href.js";import{l as q}from"./label-with-expert-slot.js";import{l as F}from"./link-target.js";import{T as K}from"./behavior.js";import{r as P,a as R}from"./unique-nav-labels.js";const A=k("KolSkipNav"),D={required:[A,d]},H=a.forBlock("kol-skip-nav"),N=H(),O=H("list"),U=H("list-item"),V=({label:e,linkItems:t})=>o("nav",{class:N,"aria-label":e},o("ul",{class:O},t.map(((e,t)=>o("li",{class:U,key:t},o(f,Object.assign({},e.fcProps))))))),W=e(class extends l{constructor(o){super(!1),!1!==o&&this.__registerHost(),this.__attachShadow(),this.linkItems=[],this.ctaRef=y(),this.propsConfig=D}watchLabel(o){this.applyLabel(o)}watchLinks(o){this.applyLinks(o)}focus(o){return Promise.resolve()}componentWillLoad(){this.applyLabel(this._label,!0),this.applyLinks(this._links)}componentDidRender(){var o;this.ctaRef(null===(o=this.linkItems[0])||void 0===o?void 0:o.getAnchor()),this.linkItems.forEach((o=>o.syncTooltipListeners()))}disconnectedCallback(){this.linkItems.forEach((o=>o.destroy())),P(this.getRenderProp("label"))}applyLabel(o,e=!1){e||P(this.getRenderProp("label")),d.apply(o,(o=>this.setRenderProp("label",o)),this.isRequired("label")),s(o),R(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 K(l.stateLess),n=y(),a=c(b);a.tabIndex=void 0;const s=(o,e)=>o.apply(e,(e=>{a[o.propName]=e}));return s(w,o._accessKey),s(z,o._ariaControls),s(m,o._ariaCurrentValue),s(j,o._ariaDescription),s(E,o._disabled),s(h,o._download),s(T,o._hideLabel),s(S,o._href),s(L,o._icons),s(B,null===(t=o._inline)||void 0===t||t),s(q,o._label),s(p,o._on),s(G,o._shortKey),"number"==typeof o._tabIndex&&s(I,o._tabIndex),s(F,o._target),s(C,o._tooltipAlign),u(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=g(),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:"",l=a.on;"function"==typeof(null==l?void 0:l.onClick)&&(r(o,n.el),l.onClick(o,t));const s=e();s&&v(s,x.click,t)},a.refAnchor=o=>{n(o)},a.refTooltip=i.setTooltipElementRef,{fcProps:a,getAnchor:()=>n.el,syncTooltipListeners:()=>{n.el&&i.syncListeners(void 0,n.el,!0)},destroy:()=>{i.destroy()}}})(o,(()=>this.host))))}))}render(){return o(t,{key:"81c50159146a88818b237979f2e647383acf48f7"},o(V,{key:"ea85028df0ec35c48b381217dfc802172c5e7b86",label:this.getRenderProp("label"),links:this.getRenderProp("links"),linkItems:this.linkItems}))}get host(){return this}static get watchers(){return{_label:[{watchLabel:0}],_links:[{watchLinks:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794493099910"); src: url("kolicons.eot?t=1794493099910#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794493099910") format("woff2"), url("kolicons.woff?t=1794493099910") format("woff"), url("kolicons.ttf?t=1794493099910") format("truetype"), url("kolicons.svg?t=1794493099910#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-skip-nav__list { display: grid; place-items: center; list-style: none; } .kol-skip-nav__list-item { height: 0; } .kol-skip-nav .kol-link { position: absolute; left: calc(-99999 * 1rem / var(--kolibri-root-font-size, 16)); z-index: 9999999; line-height: 1; } .kol-skip-nav .kol-link:focus-within { position: unset; left: unset; } .kol-skip-nav .kol-link__interactive-element:focus { background-color: white; } }'}}},[545,"kol-skip-nav",{_label:[1],_links:[1],linkItems:[32],focus:[64]},void 0,{_label:[{watchLabel:0}],_links:[{watchLinks:0}]}]);n([_("ctaRef")],W.prototype,"focus",null);const J=W,M=function(){"undefined"!=typeof customElements&&["kol-skip-nav"].forEach((o=>{"kol-skip-nav"===o&&(customElements.get(i(o))||customElements.define(i(o),W))}))};export{J as KolSkipNav,M as defineCustomElement}
|
|
4
|
+
import{h as o,proxyCustomElement as e,Host as t,transformTag as i}from"@stencil/core/internal/client";import{_ as n}from"./tslib.es6.js";import{B as l}from"./base-web-component.js";import{b as a,s as r,c as s}from"./bem-registry.js";import{d as c}from"./props-from-config.js";import{l as d}from"./label.js";import{c as k}from"./links.js";import{L as f,l as b,a as m,d as h,b as p}from"./component6.js";import{v as u}from"./access-and-short-key.js";import{n as g}from"./dev.utils.js";import{c as y,d as _}from"./element-interaction.js";import{d as v,K as x}from"./events.js";import{a as w,b as z,c as j,h as T,s as L,i as B,d as G,t as I,e as C}from"./component3.js";import{d as E}from"./disabled.js";import{h as S}from"./href.js";import{l as q}from"./label-with-expert-slot.js";import{l as F}from"./link-target.js";import{T as K}from"./behavior.js";import{r as P,a as R}from"./unique-nav-labels.js";const A=k("KolSkipNav"),D={required:[A,d]},H=a.forBlock("kol-skip-nav"),N=H(),O=H("list"),U=H("list-item"),V=({label:e,linkItems:t})=>o("nav",{class:N,"aria-label":e},o("ul",{class:O},t.map(((e,t)=>o("li",{class:U,key:t},o(f,Object.assign({},e.fcProps))))))),W=e(class extends l{constructor(o){super(!1),!1!==o&&this.__registerHost(),this.__attachShadow(),this.linkItems=[],this.ctaRef=y(),this.propsConfig=D}watchLabel(o){this.applyLabel(o)}watchLinks(o){this.applyLinks(o)}focus(o){return Promise.resolve()}componentWillLoad(){this.applyLabel(this._label,!0),this.applyLinks(this._links)}componentDidRender(){var o;this.ctaRef(null===(o=this.linkItems[0])||void 0===o?void 0:o.getAnchor()),this.linkItems.forEach((o=>o.syncTooltipListeners()))}disconnectedCallback(){this.linkItems.forEach((o=>o.destroy())),P(this.getRenderProp("label"))}applyLabel(o,e=!1){e||P(this.getRenderProp("label")),d.apply(o,(o=>this.setRenderProp("label",o)),this.isRequired("label")),s(o),R(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 K(l.stateLess),n=y(),a=c(b);a.tabIndex=void 0;const s=(o,e)=>o.apply(e,(e=>{a[o.propName]=e}));return s(w,o._accessKey),s(z,o._ariaControls),s(m,o._ariaCurrentValue),s(j,o._ariaDescription),s(E,o._disabled),s(h,o._download),s(T,o._hideLabel),s(S,o._href),s(L,o._icons),s(B,null===(t=o._inline)||void 0===t||t),s(q,o._label),s(p,o._on),s(G,o._shortKey),"number"==typeof o._tabIndex&&s(I,o._tabIndex),s(F,o._target),s(C,o._tooltipAlign),u(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=g(),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:"",l=a.on;"function"==typeof(null==l?void 0:l.onClick)&&(r(o,n.el),l.onClick(o,t));const s=e();s&&v(s,x.click,t)},a.refAnchor=o=>{n(o)},a.refTooltip=i.setTooltipElementRef,{fcProps:a,getAnchor:()=>n.el,syncTooltipListeners:()=>{n.el&&i.syncListeners(void 0,n.el,!0)},destroy:()=>{i.destroy()}}})(o,(()=>this.host))))}))}render(){return o(t,{key:"8aa2d416755d0d5b85469b5b5c194ff21a1b8098"},o(V,{key:"55846a133762dcd8855fc6684801ad4afefbde7e",label:this.getRenderProp("label"),links:this.getRenderProp("links"),linkItems:this.linkItems}))}get host(){return this}static get watchers(){return{_label:[{watchLabel:0}],_links:[{watchLinks:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794913000943"); src: url("kolicons.eot?t=1794913000943#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794913000943") format("woff2"), url("kolicons.woff?t=1794913000943") format("woff"), url("kolicons.ttf?t=1794913000943") format("truetype"), url("kolicons.svg?t=1794913000943#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-skip-nav__list { display: grid; place-items: center; list-style: none; } .kol-skip-nav__list-item { height: 0; } .kol-skip-nav .kol-link { position: absolute; left: calc(-99999 * 1rem / var(--kolibri-root-font-size, 16)); z-index: 9999999; line-height: 1; } .kol-skip-nav .kol-link:focus-within { position: unset; left: unset; } .kol-skip-nav .kol-link__interactive-element:focus { background-color: white; } }'}}},[545,"kol-skip-nav",{_label:[1],_links:[1],linkItems:[32],focus:[64]},void 0,{_label:[{watchLabel:0}],_links:[{watchLinks:0}]}]);n([_("ctaRef")],W.prototype,"focus",null);const J=W,M=function(){"undefined"!=typeof customElements&&["kol-skip-nav"].forEach((o=>{"kol-skip-nav"===o&&(customElements.get(i(o))||customElements.define(i(o),W))}))};export{J as KolSkipNav,M as defineCustomElement}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{proxyCustomElement as o,h as i,Host as e,transformTag as t}from"@stencil/core/internal/client";import{B as r}from"./base-web-component.js";import{s as a,a as n,v as l,S as s}from"./component11.js";import"./bem-registry.js";import"./props-from-config.js";import{l as c}from"./label.js";const d=o(class extends r{constructor(o){super(!1),!1!==o&&this.__registerHost(),this.__attachShadow(),this.propsConfig=a,this._show=void 0,this._label=void 0,this._variant=void 0}watchShow(o){n.apply(o,(o=>this.setRenderProp("show",o)))}watchLabel(o){c.apply(o,(o=>this.setRenderProp("label",o)),this.isRequired("label"))}watchVariant(o){l.apply(o,(o=>this.setRenderProp("variant",o)))}componentWillLoad(){n.apply(this._show,(o=>this.setRenderProp("show",o))),c.apply(this._label,(o=>this.setRenderProp("label",o)),this.isRequired("label")),l.apply(this._variant,(o=>this.setRenderProp("variant",o)))}render(){return i(e,{key:"9f29db38e4e2c5944122ed7dc2614af5233004a6"},i(s,{key:"cf404908e4033da323782e5479b830937f7da936",show:this.getRenderProp("show"),label:this.getRenderProp("label"),variant:this.getRenderProp("variant")}))}static get watchers(){return{_show:[{watchShow:0}],_label:[{watchLabel:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { @keyframes rotate { to { transform: rotate(1turn); } } @keyframes growingCircle { 0% { opacity: 0.5; border-color: white; clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0); } 25% { opacity: 0.75; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, #000)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0); } 50% { opacity: 1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%); } 75% { opacity: 1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%); } 100% { opacity: 0.1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0); } } .kol-spin__spinner--cycle { width: calc(var(--kol-spin-size, 48) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(var(--kol-spin-size, 48) * 1rem / var(--kolibri-root-font-size, 16)); } .kol-spin__spinner--cycle .kol-spin__loader { border-radius: 50%; display: block; position: relative; width: 100%; height: 100%; animation: 2s linear infinite rotate; } @media (prefers-reduced-motion) { .kol-spin__spinner--cycle .kol-spin__loader { animation-duration: 4s !important; } } .kol-spin__spinner--cycle .kol-spin__loader::before { border-radius: 50%; position: absolute; inset: 0; content: ""; animation: 3s linear infinite growingCircle; border: 5px solid var(--kol-spin-color, var(--kol-theme-spin-color, #333)); } @media (prefers-reduced-motion) { .kol-spin__spinner--cycle .kol-spin__loader::before { animation-duration: 6s !important; } } } @layer kol-component { @keyframes spin1 { 0% { transform: scale(0); } 100% { transform: scale(1); } } @keyframes spin2 { 0% { transform: translate(0, 0); } 100% { transform: translate(calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)), 0); } } @keyframes spin3 { 0% { transform: scale(1); } 100% { transform: scale(0); } } @media (prefers-reduced-motion) { .kol-spin__spinner-element { animation-duration: 2s !important; } } .kol-spin__spinner--dot { --kol-spin-border-width: calc(var(--kol-spin-size, 13) / 10); width: calc(calc(var(--kol-spin-size, 13) * 3 + 2) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(calc(var(--kol-spin-size, 13) + var(--kol-spin-border-width) * 2) * 1rem / var(--kolibri-root-font-size, 16)); } .kol-spin__spinner--dot .kol-spin__spinner-element { background-color: var(--kol-spin-color, var(--kol-theme-spin-color, #000)); border-radius: 50%; position: absolute; top: 1px; width: calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)); animation-timing-function: cubic-bezier(0, 1, 1, 0); border: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)) solid white; } .kol-spin__spinner--dot .kol-spin__spinner-element--1 { left: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 0; animation: 1s infinite spin1; } .kol-spin__spinner--dot .kol-spin__spinner-element--2 { left: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; animation: 1s infinite spin2; } .kol-spin__spinner--dot .kol-spin__spinner-element--3 { left: calc(calc(var(--kol-spin-size, 13) + var(--kol-spin-border-width)) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; animation: 1s infinite spin2; } .kol-spin__spinner--dot .kol-spin__spinner-element--neutral { opacity: 0.6; left: calc(calc(var(--kol-spin-size, 13) * 2 + var(--kol-spin-border-width)) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 0; animation: 1s infinite spin3; } } @layer kol-component { .kol-spin { display: contents; } .kol-spin__spinner { display: block; position: relative; } }'}}},[545,"kol-spin",{_show:[4],_label:[1],_variant:[1]},void 0,{_show:[{watchShow:0}],_label:[{watchLabel:0}],_variant:[{watchVariant:0}]}]),p=d,k=function(){"undefined"!=typeof customElements&&["kol-spin"].forEach((o=>{"kol-spin"===o&&(customElements.get(t(o))||customElements.define(t(o),d))}))};export{p as KolSpin,k as defineCustomElement}
|
|
4
|
+
import{proxyCustomElement as o,h as i,Host as e,transformTag as t}from"@stencil/core/internal/client";import{B as r}from"./base-web-component.js";import{s as a,a as n,v as l,S as s}from"./component11.js";import"./bem-registry.js";import"./props-from-config.js";import{l as c}from"./label.js";const d=o(class extends r{constructor(o){super(!1),!1!==o&&this.__registerHost(),this.__attachShadow(),this.propsConfig=a,this._show=void 0,this._label=void 0,this._variant=void 0}watchShow(o){n.apply(o,(o=>this.setRenderProp("show",o)))}watchLabel(o){c.apply(o,(o=>this.setRenderProp("label",o)),this.isRequired("label"))}watchVariant(o){l.apply(o,(o=>this.setRenderProp("variant",o)))}componentWillLoad(){n.apply(this._show,(o=>this.setRenderProp("show",o))),c.apply(this._label,(o=>this.setRenderProp("label",o)),this.isRequired("label")),l.apply(this._variant,(o=>this.setRenderProp("variant",o)))}render(){return i(e,{key:"d301a0a20e36b30c8ad1cc52835514071cf7363b"},i(s,{key:"5d77cbe0d1f9de8148e1a848799cdf2a7bf42d95",show:this.getRenderProp("show"),label:this.getRenderProp("label"),variant:this.getRenderProp("variant")}))}static get watchers(){return{_show:[{watchShow:0}],_label:[{watchLabel:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { @keyframes rotate { to { transform: rotate(1turn); } } @keyframes growingCircle { 0% { opacity: 0.5; border-color: white; clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0); } 25% { opacity: 0.75; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, #000)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0); } 50% { opacity: 1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%); } 75% { opacity: 1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%); } 100% { opacity: 0.1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0); } } .kol-spin__spinner--cycle { width: calc(var(--kol-spin-size, 48) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(var(--kol-spin-size, 48) * 1rem / var(--kolibri-root-font-size, 16)); } .kol-spin__spinner--cycle .kol-spin__loader { border-radius: 50%; display: block; position: relative; width: 100%; height: 100%; animation: 2s linear infinite rotate; } @media (prefers-reduced-motion) { .kol-spin__spinner--cycle .kol-spin__loader { animation-duration: 4s !important; } } .kol-spin__spinner--cycle .kol-spin__loader::before { border-radius: 50%; position: absolute; inset: 0; content: ""; animation: 3s linear infinite growingCircle; border: 5px solid var(--kol-spin-color, var(--kol-theme-spin-color, #333)); } @media (prefers-reduced-motion) { .kol-spin__spinner--cycle .kol-spin__loader::before { animation-duration: 6s !important; } } } @layer kol-component { @keyframes spin1 { 0% { transform: scale(0); } 100% { transform: scale(1); } } @keyframes spin2 { 0% { transform: translate(0, 0); } 100% { transform: translate(calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)), 0); } } @keyframes spin3 { 0% { transform: scale(1); } 100% { transform: scale(0); } } @media (prefers-reduced-motion) { .kol-spin__spinner-element { animation-duration: 2s !important; } } .kol-spin__spinner--dot { --kol-spin-border-width: calc(var(--kol-spin-size, 13) / 10); width: calc(calc(var(--kol-spin-size, 13) * 3 + 2) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(calc(var(--kol-spin-size, 13) + var(--kol-spin-border-width) * 2) * 1rem / var(--kolibri-root-font-size, 16)); } .kol-spin__spinner--dot .kol-spin__spinner-element { background-color: var(--kol-spin-color, var(--kol-theme-spin-color, #000)); border-radius: 50%; position: absolute; top: 1px; width: calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)); animation-timing-function: cubic-bezier(0, 1, 1, 0); border: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)) solid white; } .kol-spin__spinner--dot .kol-spin__spinner-element--1 { left: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 0; animation: 1s infinite spin1; } .kol-spin__spinner--dot .kol-spin__spinner-element--2 { left: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; animation: 1s infinite spin2; } .kol-spin__spinner--dot .kol-spin__spinner-element--3 { left: calc(calc(var(--kol-spin-size, 13) + var(--kol-spin-border-width)) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; animation: 1s infinite spin2; } .kol-spin__spinner--dot .kol-spin__spinner-element--neutral { opacity: 0.6; left: calc(calc(var(--kol-spin-size, 13) * 2 + var(--kol-spin-border-width)) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 0; animation: 1s infinite spin3; } } @layer kol-component { .kol-spin { display: contents; } .kol-spin__spinner { display: block; position: relative; } }'}}},[545,"kol-spin",{_show:[4],_label:[1],_variant:[1]},void 0,{_show:[{watchShow:0}],_label:[{watchLabel:0}],_variant:[{watchVariant:0}]}]),p=d,k=function(){"undefined"!=typeof customElements&&["kol-spin"].forEach((o=>{"kol-spin"===o&&(customElements.get(t(o))||customElements.define(t(o),d))}))};export{p as KolSpin,k as defineCustomElement}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as o,proxyCustomElement as t,transformTag as e}from"@stencil/core/internal/client";import{_ as i}from"./tslib.es6.js";import{c as n}from"./item2.js";import{b as a}from"./bem-registry.js";import{c as l}from"./clsx.js";import{B as r}from"./component.js";import{B as s}from"./component9.js";import{P as c}from"./behavior4.js";import{t as h}from"./i18n.js";import{n as d}from"./dev.utils.js";import{d as p,a as b}from"./element-interaction.js";import{B as k}from"./base.js";const u=a.forBlock("kol-split-button"),m=u("button"),f=u("horizontal-line"),_=u("root"),w=u("secondary-button"),y=t=>{const{buttonProps:e,buttonWrapperClass:i,class:n,dropdownProps:a,refDropdown:h}=t;return o(r,{block:"kol-split-button",class:n},o("div",{class:_},o("div",{class:l(m,i)},o(s,Object.assign({},e))),o("div",{class:f}),o("div",{class:w,ref:h},o(c,Object.assign({},a)))))},g=t(class extends k{constructor(o){super(!1),!1!==o&&this.__registerHost(),this.__attachShadow(),this.ariaDescriptionId=d(),this.dropdownOpen=!1,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._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="normal",this.setDropdownRef=o=>{this.dropdownElement=o},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){var t;this.applyDisabled(o),null===(t=this.dropdownItem)||void 0===t||t.setDisabled(o)}watchHideLabel(o){this.applyHideLabel(o)}watchIcons(o){this.applyIcons(o)}watchLabel(o){this.applyLabel(o)}watchName(o){this.applyName(o)}watchOn(o){this.applyOn({onClick:null==o?void 0:o.onClick})}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()}closePopup(){return this.dropdownItem.hide(),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.applyInline(!1),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(),this.dropdownItem=n({disabled:this._disabled,getEventTarget:()=>this.dropdownElement,getFlagHost:()=>this.host,getOpen:()=>this.dropdownOpen,hideLabel:!0,icons:"kolicon-chevron-down",label:h("kol-split-button-dropdown-label-open"),popoverAlign:"bottom",setOpen:o=>{this.dropdownOpen=o}})}componentDidRender(){this.syncTooltipListeners(),this.dropdownItem.syncListeners()}disconnectedCallback(){this.destroyTooltipBehavior(),this.dropdownItem.destroy()}getButtonWrapperClass(){return l({[this._variant]:"custom"!==this._variant,[this._customClass]:"custom"===this._variant&&"string"==typeof this._customClass&&this._customClass.length>0})}render(){return o(y,{key:"2296cf3338e670d37620c935573711c7cef43c83",buttonProps:this.getButtonFCProps(),buttonWrapperClass:this.getButtonWrapperClass(),dropdownProps:this.dropdownItem.getFcProps(),refDropdown:this.setDropdownRef})}get host(){return 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}],_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}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794493099910"); src: url("kolicons.eot?t=1794493099910#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794493099910") format("woff2"), url("kolicons.woff?t=1794493099910") format("woff"), url("kolicons.ttf?t=1794493099910") format("truetype"), url("kolicons.svg?t=1794493099910#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-button { background-color: transparent; display: inline-block; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); margin: 0; padding: 0; text-align: center; } .kol-button__interactive-element { border-style: none; display: block; border-width: medium; font-weight: inherit; font-style: inherit; text-align: inherit; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-popover-button { display: inline; } .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-popover-button--inline { display: inline-block; } .kol-popover-button--inline .kol-button, .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-split-button { display: flex; position: relative; width: 100%; } .kol-split-button__root { display: flex; position: relative; width: 100%; align-items: stretch; } .kol-split-button__button { min-width: 0; flex: 1 1 auto; text-align: left; } }'}}},[545,"kol-split-button",{_accessKey:[1,"_access-key"],_ariaControls:[1,"_aria-controls"],_ariaDescription:[1,"_aria-description"],_ariaExpanded:[4,"_aria-expanded"],_ariaSelected:[4,"_aria-selected"],_customClass:[1,"_custom-class"],_disabled:[4],_hideLabel:[4,"_hide-label"],_icons:[1],_label:[1],_name:[1],_on:[16],_role:[1],_shortKey:[1,"_short-key"],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_type:[1],_value:[8],_variant:[1],ariaDescriptionId:[32],dropdownOpen:[32],getValue:[64],focus:[64],click:[64],closePopup:[64]},void 0,{_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}],_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}]}]);i([p("ctaRef")],g.prototype,"focus",null),i([b("ctaRef")],g.prototype,"click",null);const v=g,x=function(){"undefined"!=typeof customElements&&["kol-split-button"].forEach((o=>{"kol-split-button"===o&&(customElements.get(e(o))||customElements.define(e(o),g))}))};export{v as KolSplitButton,x as defineCustomElement}
|
|
4
|
+
import{h as o,proxyCustomElement as t,transformTag as e}from"@stencil/core/internal/client";import{_ as i}from"./tslib.es6.js";import{c as n}from"./item2.js";import{b as a}from"./bem-registry.js";import{c as l}from"./clsx.js";import{B as r}from"./component.js";import{B as s}from"./component9.js";import{P as c}from"./behavior4.js";import{t as h}from"./i18n.js";import{n as d}from"./dev.utils.js";import{d as p,a as b}from"./element-interaction.js";import{B as k}from"./base.js";const u=a.forBlock("kol-split-button"),m=u("button"),f=u("horizontal-line"),_=u("root"),w=u("secondary-button"),y=t=>{const{buttonProps:e,buttonWrapperClass:i,class:n,dropdownProps:a,refDropdown:h}=t;return o(r,{block:"kol-split-button",class:n},o("div",{class:_},o("div",{class:l(m,i)},o(s,Object.assign({},e))),o("div",{class:f}),o("div",{class:w,ref:h},o(c,Object.assign({},a)))))},g=t(class extends k{constructor(o){super(!1),!1!==o&&this.__registerHost(),this.__attachShadow(),this.ariaDescriptionId=d(),this.dropdownOpen=!1,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._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="normal",this.setDropdownRef=o=>{this.dropdownElement=o},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){var t;this.applyDisabled(o),null===(t=this.dropdownItem)||void 0===t||t.setDisabled(o)}watchHideLabel(o){this.applyHideLabel(o)}watchIcons(o){this.applyIcons(o)}watchLabel(o){this.applyLabel(o)}watchName(o){this.applyName(o)}watchOn(o){this.applyOn({onClick:null==o?void 0:o.onClick})}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()}closePopup(){return this.dropdownItem.hide(),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.applyInline(!1),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(),this.dropdownItem=n({disabled:this._disabled,getEventTarget:()=>this.dropdownElement,getFlagHost:()=>this.host,getOpen:()=>this.dropdownOpen,hideLabel:!0,icons:"kolicon-chevron-down",label:h("kol-split-button-dropdown-label-open"),popoverAlign:"bottom",setOpen:o=>{this.dropdownOpen=o}})}componentDidRender(){this.syncTooltipListeners(),this.dropdownItem.syncListeners()}disconnectedCallback(){this.destroyTooltipBehavior(),this.dropdownItem.destroy()}getButtonWrapperClass(){return l({[this._variant]:"custom"!==this._variant,[this._customClass]:"custom"===this._variant&&"string"==typeof this._customClass&&this._customClass.length>0})}render(){return o(y,{key:"21bc7a574f5c58d2959a4f653514c9156211b4b4",buttonProps:this.getButtonFCProps(),buttonWrapperClass:this.getButtonWrapperClass(),dropdownProps:this.dropdownItem.getFcProps(),refDropdown:this.setDropdownRef})}get host(){return 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}],_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}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794913000943"); src: url("kolicons.eot?t=1794913000943#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794913000943") format("woff2"), url("kolicons.woff?t=1794913000943") format("woff"), url("kolicons.ttf?t=1794913000943") format("truetype"), url("kolicons.svg?t=1794913000943#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-button { background-color: transparent; display: inline-block; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); margin: 0; padding: 0; text-align: center; } .kol-button__interactive-element { border-style: none; display: block; border-width: medium; font-weight: inherit; font-style: inherit; text-align: inherit; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-popover-button { display: inline; } .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-popover-button--inline { display: inline-block; } .kol-popover-button--inline .kol-button, .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-split-button { display: flex; position: relative; width: 100%; } .kol-split-button__root { display: flex; position: relative; width: 100%; align-items: stretch; } .kol-split-button__button { min-width: 0; flex: 1 1 auto; text-align: left; } }'}}},[545,"kol-split-button",{_accessKey:[1,"_access-key"],_ariaControls:[1,"_aria-controls"],_ariaDescription:[1,"_aria-description"],_ariaExpanded:[4,"_aria-expanded"],_ariaSelected:[4,"_aria-selected"],_customClass:[1,"_custom-class"],_disabled:[4],_hideLabel:[4,"_hide-label"],_icons:[1],_label:[1],_name:[1],_on:[16],_role:[1],_shortKey:[1,"_short-key"],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_type:[1],_value:[8],_variant:[1],ariaDescriptionId:[32],dropdownOpen:[32],getValue:[64],focus:[64],click:[64],closePopup:[64]},void 0,{_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}],_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}]}]);i([p("ctaRef")],g.prototype,"focus",null),i([b("ctaRef")],g.prototype,"click",null);const v=g,x=function(){"undefined"!=typeof customElements&&["kol-split-button"].forEach((o=>{"kol-split-button"===o&&(customElements.get(e(o))||customElements.define(e(o),g))}))};export{v as KolSplitButton,x as defineCustomElement}
|