@public-ui/components 5.0.0-beta.0 → 5.0.0-beta.1
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/README.md +1 -1
- 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 +344 -86
- package/dist/cjs/{Heading-gKYGJ1tV.js → Heading-C9osvqjY.js} +1 -1
- package/dist/cjs/{api-DyRC0E3C.js → api-U7I3XBPI.js} +64 -37
- package/dist/cjs/{app-globals-C-QndvUR.js → app-globals-DsADKGEe.js} +3 -3
- package/dist/cjs/{aria-labelledby-ny809Vdx.js → aria-labelledby-BRMgWRVp.js} +2 -2
- package/dist/cjs/{base-Cau7nZZw.js → base-CyqDmoZZ.js} +34 -33
- package/dist/cjs/{base-C9jeVqnN.js → base-DCxbMk0f.js} +35 -34
- package/dist/cjs/{base-zeK_arau.js → base-DcN_YC72.js} +26 -26
- package/dist/cjs/{base-DjGWfEqB.js → base-l99dGLYo.js} +79 -73
- package/dist/cjs/base-web-component-B6mwGD0m.js +65 -0
- package/dist/cjs/{base-web-component-r0Jr01kf.js → base-web-component-BnaxS2Z3.js} +21 -26
- package/dist/cjs/{base-web-component-BOQatEb9.js → base-web-component-DxJ0hQ9u.js} +23 -22
- package/dist/cjs/{behavior-Djs9V7Si.js → behavior-BNyFQ_B5.js} +13 -14
- package/dist/cjs/{behavior-P_MOoqmo.js → behavior-CTaw4dj3.js} +10 -10
- package/dist/cjs/{behavior-APmbiQTR.js → behavior-DrFJy0QC.js} +7 -17
- package/dist/cjs/{bem-registry-Q82FjrSD.js → bem-registry-CyxrH26c.js} +40 -1
- package/dist/cjs/{block-bem-CNP2_qFi.js → block-bem-BI7yfoFU.js} +1 -1
- package/dist/cjs/{bootstrap-BbvuwOW2.js → bootstrap-DkgMbRSL.js} +2 -2
- package/dist/cjs/{color-CbCW4wyr.js → color-BW4t1Cif.js} +14 -4
- package/dist/cjs/{common-DRvysX2o.js → common-C-hcIfzh.js} +20 -6
- package/dist/cjs/{component-hiip9BeX.js → component-4OErV1Bg.js} +14 -11
- package/dist/cjs/{component-CyFwKqlx.js → component-BEzksV1U.js} +25 -12
- package/dist/cjs/{component-C-jt8Zgv.js → component-BQUKg-qY.js} +26 -9
- package/dist/cjs/{component-Byx8Sl1k.js → component-BlAPlTfV.js} +2 -2
- package/dist/cjs/{component-DTToXqth.js → component-Cty_HlJR.js} +4 -4
- package/dist/cjs/component-Cvjqbxf4.js +94 -0
- package/dist/cjs/{component-DK-qYG29.js → component-DAQ1XSNA.js} +26 -5
- package/dist/cjs/component-DF5q9ssd.js +100 -0
- package/dist/cjs/{component-DMaPKMLG.js → component-DMfcX1br.js} +3 -3
- package/dist/cjs/{component-x3LvOAC0.js → component-Dkx5Zyhq.js} +2 -2
- package/dist/cjs/component-DtxKrISb.js +141 -0
- package/dist/cjs/{component-w4DHKGRj.js → component-lmJOXuD6.js} +13 -11
- package/dist/cjs/{component-names-EMVnNhTP.js → component-names-BMpML1sX.js} +0 -2
- package/dist/cjs/{contrast-BTU5ne8E.js → contrast-4mAdSLs0.js} +5 -5
- package/dist/cjs/{controller-ncy0x4Nz.js → controller-tEyAFJN9.js} +15 -15
- package/dist/cjs/{dev.utils-r-OFnYmI.js → dev.utils-D5qh-RLT.js} +2 -2
- package/dist/cjs/{devtools-BjCHvsaO.js → devtools-Dtv-Apvj.js} +3 -3
- package/dist/cjs/disabled-jYcvcwjv.js +10 -0
- package/dist/cjs/{element-focus-D5g3xQN4.js → element-focus-CzkKMwtn.js} +24 -0
- package/dist/cjs/{element-interaction-7FI_z19L.js → element-interaction-BtYQAbhu.js} +1 -1
- package/dist/cjs/{field-control-B2MocM-9.js → field-control-Btb5zapE.js} +8 -8
- package/dist/cjs/{group-DUgI6ORW.js → group-Dg2gJze5.js} +7 -7
- package/dist/cjs/has-closer-CvNa5gqv.js +10 -0
- package/dist/cjs/href-BBhiVyPb.js +10 -0
- package/dist/cjs/{i18n-BPfGxCna.js → i18n-BnOWw1MQ.js} +1 -1
- package/dist/cjs/id-D1VZsLkg.js +10 -0
- package/dist/cjs/{index-1NUYc4bH.js → index-BacpU-d0.js} +2 -6
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/{input-tgqPNmdz.js → input-CgTL2oH6.js} +5 -5
- package/dist/cjs/{input-container-Ce6tEgzv.js → input-container-PaL4ZNf3.js} +9 -9
- package/dist/cjs/{item-BDJC0QKy.js → item-CErU-EPA.js} +6 -6
- package/dist/cjs/{item-CU9y10V3.js → item-CLnIJY4J.js} +7 -7
- package/dist/cjs/{item-do7gGebG.js → item-CPxmIcoq.js} +42 -40
- package/dist/cjs/{item-CdalyKjL.js → item-Cckqxc6T.js} +35 -44
- package/dist/cjs/kol-abbr.cjs.entry.js +15 -13
- package/dist/cjs/kol-accordion.cjs.entry.js +29 -23
- package/dist/cjs/kol-alert.cjs.entry.js +41 -35
- package/dist/cjs/kol-avatar.cjs.entry.js +28 -22
- package/dist/cjs/kol-badge.cjs.entry.js +38 -35
- package/dist/cjs/kol-breadcrumb.cjs.entry.js +49 -47
- package/dist/cjs/kol-button-link.cjs.entry.js +52 -37
- package/dist/cjs/kol-button.cjs.entry.js +53 -37
- package/dist/cjs/kol-card.cjs.entry.js +47 -48
- package/dist/cjs/kol-click-button.cjs.entry.js +18 -14
- package/dist/cjs/kol-combobox.cjs.entry.js +77 -64
- package/dist/cjs/kol-details.cjs.entry.js +29 -23
- package/dist/cjs/kol-dialog.cjs.entry.js +43 -37
- package/dist/cjs/kol-drawer.cjs.entry.js +47 -48
- package/dist/cjs/kol-form.cjs.entry.js +40 -36
- package/dist/cjs/kol-heading.cjs.entry.js +22 -16
- package/dist/cjs/kol-icon.cjs.entry.js +15 -13
- package/dist/cjs/kol-image.cjs.entry.js +23 -16
- package/dist/cjs/kol-input-checkbox.cjs.entry.js +73 -60
- package/dist/cjs/kol-input-color.cjs.entry.js +72 -62
- package/dist/cjs/kol-input-date.cjs.entry.js +98 -66
- package/dist/cjs/kol-input-email.cjs.entry.js +74 -55
- package/dist/cjs/kol-input-file.cjs.entry.js +73 -57
- package/dist/cjs/kol-input-number.cjs.entry.js +81 -61
- package/dist/cjs/kol-input-password.cjs.entry.js +79 -58
- package/dist/cjs/kol-input-radio.cjs.entry.js +57 -50
- package/dist/cjs/kol-input-range.cjs.entry.js +73 -56
- package/dist/cjs/kol-input-text.cjs.entry.js +91 -65
- package/dist/cjs/kol-kolibri.cjs.entry.js +16 -15
- package/dist/cjs/kol-link-button.cjs.entry.js +46 -30
- package/dist/cjs/kol-link.cjs.entry.js +43 -29
- package/dist/cjs/kol-meter.cjs.entry.js +38 -25
- package/dist/cjs/kol-modal.cjs.entry.js +42 -37
- package/dist/cjs/kol-nav.cjs.entry.js +59 -56
- package/dist/cjs/kol-pagination.cjs.entry.js +48 -46
- package/dist/cjs/kol-popover-button.cjs.entry.js +54 -40
- package/dist/cjs/kol-progress.cjs.entry.js +31 -24
- package/dist/cjs/kol-quote.cjs.entry.js +23 -21
- package/dist/cjs/kol-select.cjs.entry.js +61 -47
- package/dist/cjs/kol-single-select.cjs.entry.js +73 -62
- package/dist/cjs/kol-skeleton.cjs.entry.js +15 -13
- package/dist/cjs/kol-skip-nav.cjs.entry.js +50 -47
- package/dist/cjs/kol-spin.cjs.entry.js +24 -34
- package/dist/cjs/kol-split-button.cjs.entry.js +57 -41
- package/dist/cjs/kol-table-stateful.cjs.entry.js +78 -67
- package/dist/cjs/kol-table-stateless.cjs.entry.js +56 -46
- package/dist/cjs/kol-tabs.cjs.entry.js +46 -40
- package/dist/cjs/kol-textarea.cjs.entry.js +80 -62
- package/dist/cjs/kol-toast-container.cjs.entry.js +28 -22
- package/dist/cjs/kol-toolbar.cjs.entry.js +40 -39
- package/dist/cjs/kol-tree-item.cjs.entry.js +45 -39
- package/dist/cjs/kol-tree.cjs.entry.js +15 -13
- package/dist/cjs/kol-version.cjs.entry.js +26 -21
- package/dist/cjs/kolibri.cjs.js +4 -4
- package/dist/cjs/label-hints-D6EBRW9T.js +22 -0
- package/dist/cjs/label-lang-segment-CYlAqtUl.js +13 -0
- package/dist/cjs/label-vVOiX4dC.js +14 -0
- package/dist/cjs/label-with-expert-slot-B9z4nqW1.js +14 -0
- package/dist/cjs/level-BAiEYu4U.js +11 -0
- package/dist/cjs/link-target-4AzB3I84.js +10 -0
- package/dist/cjs/links-CPNK7VZo.js +15 -0
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/multiple-B3ZpkzWu.js +10 -0
- package/dist/cjs/name-D4qpL1m-.js +10 -0
- package/dist/cjs/{number-value-aLzn0dDO.js → number-value-B2yoKlvx.js} +5 -5
- package/dist/cjs/open-CvoX_qxD.js +10 -0
- package/dist/cjs/{options-BRwmqi8M.js → options-B2pQC9w2.js} +3 -3
- package/dist/cjs/{orientation-BcqEqZ3D.js → orientation-u2cvwgBc.js} +3 -3
- package/dist/cjs/placeholder-C9Ngp2tQ.js +10 -0
- package/dist/cjs/{base-web-component-DPBaBA5x.js → props-from-config-BQ2SOZlz.js} +262 -72
- package/dist/cjs/read-only-DfWF-Coi.js +10 -0
- package/dist/cjs/required-CdXn16dq.js +10 -0
- package/dist/cjs/resolve-props-B5MED90T.js +58 -0
- package/dist/cjs/resolve-props-B8kPPEMw.js +60 -0
- package/dist/cjs/rows-Ca5ya9tG.js +10 -0
- package/dist/cjs/{scroll-lock-Bs5vb-ss.js → scroll-lock-jojYHBR3.js} +2 -2
- package/dist/cjs/{smart-button-DQryZ9gX.js → smart-button-CB8qIzgQ.js} +3 -3
- package/dist/cjs/spell-check-DKRC8xbW.js +10 -0
- package/dist/cjs/src-C3NG0rLO.js +10 -0
- package/dist/cjs/step-CZNyTb2h.js +10 -0
- package/dist/cjs/{suggestions-b21ak6-A.js → suggestions-BRclldK2.js} +3 -3
- package/dist/cjs/{suggestions-B4X9HMr-.js → suggestions-CRyB_YCX.js} +4 -4
- package/dist/cjs/test-component.cjs.entry.js +2 -2
- package/dist/cjs/{toggle-handler-AgDdplvI.js → toggle-handler-DRPltZqQ.js} +13 -13
- package/dist/cjs/unique-nav-labels-CIAwid5V.js +25 -0
- package/dist/cjs/unit-bsoemclF.js +13 -0
- package/dist/cjs/validators-DuLdbf2D.js +15 -0
- package/dist/cjs/value-string-DZ_FFaUt.js +10 -0
- package/dist/cjs/{width-DF6eLXIz.js → width-BklaRCqt.js} +7 -4
- package/dist/collection/collection-manifest.json +13 -17
- package/dist/collection/components/abbr/component.js +12 -10
- package/dist/collection/components/abbr/style.css +0 -3
- package/dist/collection/components/accordion/component.js +38 -20
- package/dist/collection/components/accordion/style.css +2 -5
- package/dist/collection/components/alert/component.js +35 -20
- package/dist/collection/components/alert/style.css +2 -5
- package/dist/collection/components/avatar/component.js +32 -12
- package/dist/collection/components/avatar/style.css +0 -3
- package/dist/collection/components/badge/component.js +19 -12
- package/dist/collection/components/badge/style.css +2 -5
- package/dist/collection/components/breadcrumb/component.js +7 -6
- package/dist/collection/components/breadcrumb/style.css +2 -5
- package/dist/collection/components/button/base.js +4 -4
- package/dist/collection/components/button/component.js +110 -38
- package/dist/collection/components/button/style.css +2 -5
- package/dist/collection/components/button-link/component.js +101 -47
- package/dist/collection/components/button-link/style.css +2 -5
- package/dist/collection/components/card/base.js +5 -5
- package/dist/collection/components/card/component.js +34 -19
- package/dist/collection/components/card/style.css +2 -5
- package/dist/collection/components/{_skeleton/web-components/click-button → click-button}/component.js +23 -13
- package/dist/collection/components/combobox/component.js +151 -65
- package/dist/collection/components/combobox/style.css +3 -7
- package/dist/collection/components/details/component.js +38 -20
- package/dist/collection/components/details/style.css +2 -5
- package/dist/collection/components/dialog/base.js +14 -14
- package/dist/collection/components/dialog/component.js +24 -12
- package/dist/collection/components/dialog/style.css +2 -5
- package/dist/collection/components/drawer/component.js +33 -28
- package/dist/collection/components/drawer/style.css +2 -5
- package/dist/collection/components/form/component.js +10 -5
- package/dist/collection/components/form/controller.js +13 -13
- package/dist/collection/components/form/style.css +2 -5
- package/dist/collection/components/heading/component.js +18 -9
- package/dist/collection/components/heading/style.css +0 -3
- package/dist/collection/components/icon/component.js +13 -6
- package/dist/collection/components/icon/style.css +2 -2
- package/dist/collection/components/image/component.js +50 -14
- package/dist/collection/components/image/style.css +0 -3
- package/dist/collection/components/input-checkbox/component.js +135 -68
- package/dist/collection/components/input-checkbox/style.css +4 -8
- package/dist/collection/components/input-color/component.js +123 -61
- package/dist/collection/components/input-color/style.css +3 -7
- package/dist/collection/components/input-date/component.js +146 -69
- package/dist/collection/components/input-date/style.css +3 -7
- package/dist/collection/components/input-email/component.js +197 -83
- package/dist/collection/components/input-email/style.css +3 -7
- package/dist/collection/components/input-file/component.js +142 -67
- package/dist/collection/components/input-file/style.css +3 -7
- package/dist/collection/components/input-number/component.js +156 -72
- package/dist/collection/components/input-number/style.css +3 -7
- package/dist/collection/components/input-password/component.js +189 -78
- package/dist/collection/components/input-password/style.css +3 -7
- package/dist/collection/components/input-radio/component.js +91 -48
- package/dist/collection/components/input-radio/style.css +4 -8
- package/dist/collection/components/input-range/component.js +114 -52
- package/dist/collection/components/input-range/style.css +3 -7
- package/dist/collection/components/input-text/component.js +191 -80
- package/dist/collection/components/input-text/style.css +3 -7
- package/dist/collection/components/kolibri/component.js +11 -4
- package/dist/collection/components/kolibri/style.css +0 -3
- package/dist/collection/components/link/base.js +4 -4
- package/dist/collection/components/link/component.js +88 -41
- package/dist/collection/components/link/style.css +2 -5
- package/dist/collection/components/link-button/component.js +80 -35
- package/dist/collection/components/link-button/style.css +2 -5
- package/dist/collection/components/meter/component.js +87 -25
- package/dist/collection/components/meter/style.css +0 -3
- package/dist/collection/components/modal/component.js +23 -12
- package/dist/collection/components/modal/style.css +2 -5
- package/dist/collection/components/nav/component.js +42 -20
- package/dist/collection/components/nav/style.css +2 -5
- package/dist/collection/components/pagination/component.js +35 -10
- package/dist/collection/components/pagination/style.css +3 -7
- package/dist/collection/components/popover-button/base.js +2 -2
- package/dist/collection/components/popover-button/component.js +82 -30
- package/dist/collection/components/popover-button/style.css +2 -5
- package/dist/collection/components/progress/component.js +51 -17
- package/dist/collection/components/progress/style.css +0 -3
- package/dist/collection/components/{_skeleton/public-api → public-api}/contract.js +8 -8
- package/dist/collection/components/quote/component.js +39 -16
- package/dist/collection/components/quote/style.css +0 -3
- package/dist/collection/components/select/component.js +138 -64
- package/dist/collection/components/select/style.css +3 -7
- package/dist/collection/components/single-select/component.js +138 -61
- package/dist/collection/components/single-select/style.css +3 -7
- package/dist/collection/components/{_skeleton/web-components/skeleton → skeleton}/component.js +23 -13
- package/dist/collection/components/skip-nav/component.js +8 -5
- package/dist/collection/components/skip-nav/style.css +2 -5
- package/dist/collection/components/spin/component.js +31 -11
- package/dist/collection/components/spin/style.css +0 -3
- package/dist/collection/components/split-button/component.js +108 -37
- package/dist/collection/components/split-button/style.css +2 -5
- package/dist/collection/components/table-stateful/component.js +74 -46
- package/dist/collection/components/table-stateful/style.css +3 -7
- package/dist/collection/components/table-stateless/base.js +12 -7
- package/dist/collection/components/table-stateless/component.js +50 -17
- package/dist/collection/components/table-stateless/style.css +2 -5
- package/dist/collection/components/tabs/component.js +27 -11
- package/dist/collection/components/tabs/style.css +2 -5
- package/dist/collection/components/textarea/component.js +184 -76
- package/dist/collection/components/textarea/style.css +3 -7
- package/dist/collection/components/toaster/shadow.js +6 -5
- package/dist/collection/components/toaster/style.css +2 -5
- package/dist/collection/components/toolbar/component.js +16 -7
- package/dist/collection/components/toolbar/style.css +2 -5
- package/dist/collection/components/tree/component.js +4 -4
- package/dist/collection/components/tree/style.css +0 -3
- package/dist/collection/components/tree-item/component.js +26 -17
- package/dist/collection/components/tree-item/style.css +2 -5
- package/dist/collection/components/version/component.js +4 -4
- package/dist/collection/components/version/style.css +2 -5
- package/dist/collection/core/component-names.js +0 -2
- package/dist/collection/core/i18n.js +1 -1
- package/dist/collection/e2e/aria-details.js +9 -0
- package/dist/collection/e2e/input-character-limit.js +18 -18
- package/dist/collection/functional-components/index.js +0 -1
- package/dist/collection/internal/functional-components/abbr/api.js +2 -2
- package/dist/collection/internal/functional-components/alert/api.js +2 -2
- package/dist/collection/internal/functional-components/alert/component.js +5 -3
- package/dist/collection/internal/functional-components/avatar/component.js +9 -5
- package/dist/collection/internal/functional-components/base-web-component.js +20 -8
- package/dist/collection/internal/functional-components/breadcrumb/api.js +2 -2
- package/dist/collection/internal/functional-components/breadcrumb/component.js +3 -1
- package/dist/collection/internal/functional-components/breadcrumb/link-item.js +1 -1
- package/dist/collection/internal/functional-components/button/component.js +6 -4
- package/dist/collection/internal/functional-components/card/api.js +3 -3
- package/dist/collection/internal/functional-components/card/close-button.js +1 -1
- package/dist/collection/internal/functional-components/card/component.js +5 -2
- package/dist/collection/internal/functional-components/click-button/component.js +1 -1
- package/dist/collection/internal/functional-components/collapsible/api.js +2 -2
- package/dist/collection/internal/functional-components/dialog/api.js +2 -2
- package/dist/collection/internal/functional-components/dialog/item.js +4 -10
- package/dist/collection/internal/functional-components/drawer/api.js +2 -2
- package/dist/collection/internal/functional-components/drawer/component.js +3 -1
- package/dist/collection/internal/functional-components/form-association/behavior.js +1 -11
- package/dist/collection/internal/functional-components/form-field/base-web-component.js +32 -4
- package/dist/collection/internal/functional-components/form-field/component.js +1 -1
- package/dist/collection/internal/functional-components/form-field/date-value.js +12 -1
- package/dist/collection/internal/functional-components/form-field/default-input-props.js +3 -2
- package/dist/collection/internal/functional-components/form-field/select.js +0 -4
- package/dist/collection/internal/functional-components/heading/component.js +6 -3
- package/dist/collection/internal/functional-components/image/component.js +4 -1
- package/dist/collection/internal/functional-components/kolibri/component.js +4 -1
- package/dist/collection/internal/functional-components/link/component.js +6 -4
- package/dist/collection/internal/functional-components/meter/api.js +2 -2
- package/dist/collection/internal/functional-components/meter/component.js +13 -6
- package/dist/collection/internal/functional-components/nav/api.js +2 -2
- package/dist/collection/internal/functional-components/nav/component.js +14 -9
- package/dist/collection/internal/functional-components/pagination/api.js +2 -11
- package/dist/collection/internal/functional-components/pagination/component.js +6 -2
- package/dist/collection/internal/functional-components/pagination/item.js +2 -2
- package/dist/collection/internal/functional-components/pagination/page-size-select.js +1 -1
- package/dist/collection/internal/functional-components/popover/component.js +3 -1
- package/dist/collection/internal/functional-components/progress/api.js +2 -2
- package/dist/collection/internal/functional-components/progress/component.js +10 -7
- package/dist/collection/internal/functional-components/props-from-config.js +3 -0
- package/dist/collection/internal/functional-components/quote/api.js +2 -2
- package/dist/collection/internal/functional-components/quote/component.js +4 -2
- package/dist/collection/internal/functional-components/skip-nav/api.js +2 -2
- package/dist/collection/internal/functional-components/skip-nav/link-item.js +1 -1
- package/dist/collection/internal/functional-components/span/api.js +2 -4
- package/dist/collection/internal/functional-components/span/component.js +18 -6
- package/dist/collection/internal/functional-components/spin/component.js +3 -1
- package/dist/collection/internal/functional-components/table-stateful/api.js +2 -2
- package/dist/collection/internal/functional-components/table-stateless/api.js +2 -2
- package/dist/collection/internal/functional-components/table-stateless/component.js +19 -5
- package/dist/collection/internal/functional-components/table-stateless/settings.js +3 -5
- package/dist/collection/internal/functional-components/table-stateless/table-model.js +3 -3
- package/dist/collection/internal/functional-components/tabs/api.js +2 -2
- package/dist/collection/internal/functional-components/tabs/component.js +1 -1
- package/dist/collection/internal/functional-components/toolbar/api.js +2 -2
- package/dist/collection/internal/functional-components/tooltip/api.js +2 -2
- package/dist/collection/internal/functional-components/tooltip/behavior.js +3 -2
- package/dist/collection/internal/functional-components/tooltip/component.js +3 -1
- package/dist/collection/internal/functional-components/tree/api.js +2 -2
- package/dist/collection/internal/functional-components/tree-item/api.js +2 -2
- package/dist/collection/internal/functional-components/tree-item/component.js +2 -1
- package/dist/collection/internal/props/color.js +10 -0
- package/dist/collection/internal/props/dialog-callbacks.js +4 -1
- package/dist/collection/internal/props/helpers/factory.js +11 -3
- package/dist/collection/internal/props/helpers/normalizers.js +13 -1
- package/dist/collection/internal/props/helpers/validators.js +4 -0
- package/dist/collection/internal/props/hints/label-hints.js +10 -8
- package/dist/collection/internal/props/href.js +1 -2
- package/dist/collection/internal/props/index.js +1 -1
- package/dist/collection/internal/props/label-lang-segment.js +10 -0
- package/dist/collection/internal/props/label-with-expert-slot.js +6 -2
- package/dist/collection/internal/props/label.js +2 -1
- package/dist/collection/internal/props/max-length.js +1 -1
- package/dist/collection/internal/props/rows.js +1 -1
- package/dist/collection/internal/props/tabs.js +1 -1
- package/dist/collection/schema/bem-registry.js +39 -0
- package/dist/collection/schema/props/index.js +19 -2
- package/dist/collection/schema/props/label.js +54 -5
- package/dist/collection/schema/props/page-size.js +1 -0
- package/dist/collection/schema/props/page.js +1 -0
- package/dist/collection/schema/props/quote.js +1 -9
- package/dist/collection/schema/props/secondary-headline.js +1 -0
- package/dist/collection/schema/props/selected.js +1 -0
- package/dist/collection/schema/props/sibling-count.js +1 -0
- package/dist/collection/schema/props/sizes.js +1 -0
- package/dist/collection/schema/props/src.js +1 -0
- package/dist/collection/schema/props/srcset.js +1 -0
- package/dist/collection/schema/props/table-loading.js +1 -0
- package/dist/collection/schema/props/value-number-clamped.js +1 -0
- package/dist/collection/schema/props/value-string.js +1 -0
- package/dist/collection/schema/utils/dev.utils.js +8 -6
- package/dist/collection/schema/utils/prop.validators.js +16 -3
- package/dist/collection/utils/aria-labelledby.js +2 -2
- package/dist/collection/utils/dev.utils.js +0 -1
- package/dist/collection/utils/element-focus.js +23 -0
- package/dist/collection/utils/element-interaction.js +0 -7
- package/dist/collection/utils/element-themed.js +1 -1
- package/dist/collection/utils/testing/snapshot-input-testing.js +1 -0
- package/dist/collection/utils/testing/snapshot-testing.js +17 -0
- package/dist/collection/utils/unique-nav-labels.js +7 -5
- package/dist/components/aria-labelledby.js +1 -1
- package/dist/components/base-web-component.js +1 -1
- package/dist/components/base-web-component2.js +1 -1
- package/dist/components/base-web-component3.js +1 -1
- package/dist/components/base-web-component4.js +1 -1
- package/dist/components/base.js +1 -1
- package/dist/components/base2.js +1 -1
- package/dist/components/base3.js +1 -1
- package/dist/components/base4.js +1 -1
- package/dist/components/behavior.js +1 -1
- package/dist/components/behavior2.js +1 -1
- package/dist/components/behavior3.js +1 -1
- package/dist/components/behavior4.js +1 -1
- package/dist/components/bem-registry.js +1 -1
- package/dist/components/bootstrap.js +1 -1
- package/dist/components/color.js +1 -1
- package/dist/components/component-names.js +1 -1
- package/dist/components/component10.js +1 -1
- package/dist/components/component11.js +1 -1
- package/dist/components/component2.js +1 -1
- package/dist/components/component3.js +1 -1
- package/dist/components/component4.js +1 -1
- package/dist/components/component5.js +1 -1
- package/dist/components/component6.js +1 -1
- package/dist/components/component7.js +1 -1
- package/dist/components/component8.js +1 -1
- package/dist/components/component9.js +1 -1
- package/dist/components/contrast.js +1 -1
- package/dist/components/controller.js +1 -1
- package/dist/components/dev.utils.js +1 -1
- package/dist/components/devtools.js +1 -1
- package/dist/components/disabled.js +1 -1
- package/dist/components/element-focus.js +1 -1
- package/dist/components/field-control.js +1 -1
- package/dist/components/group.js +1 -1
- package/dist/components/has-closer.js +1 -1
- package/dist/components/href.js +1 -1
- package/dist/components/i18n.js +1 -1
- package/dist/components/id.js +4 -0
- package/dist/components/index.js +1 -1
- package/dist/components/input-container.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/item.js +1 -1
- package/dist/components/item2.js +1 -1
- package/dist/components/item3.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-click-button.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-skeleton.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-tree-item.js +1 -1
- package/dist/components/kol-tree.js +1 -1
- package/dist/components/kol-version.js +1 -1
- package/dist/components/label-hints.js +4 -0
- package/dist/components/label-lang-segment.js +4 -0
- package/dist/components/label-with-expert-slot.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/level.js +1 -1
- package/dist/components/link-target.js +1 -1
- package/dist/components/links.js +1 -1
- package/dist/components/multiple.js +1 -1
- package/dist/components/name.js +1 -1
- package/dist/components/number-value.js +1 -1
- package/dist/components/open.js +1 -1
- package/dist/components/options2.js +1 -1
- package/dist/components/orientation.js +1 -1
- package/dist/components/placeholder.js +1 -1
- package/dist/components/props-from-config.js +4 -0
- package/dist/components/read-only.js +1 -1
- package/dist/components/required.js +1 -1
- package/dist/components/resolve-props.js +1 -1
- package/dist/components/resolve-props2.js +1 -1
- package/dist/components/rows.js +1 -1
- package/dist/components/smart-button.js +1 -1
- package/dist/components/spell-check.js +1 -1
- package/dist/components/src.js +1 -1
- package/dist/components/step.js +1 -1
- package/dist/components/suggestions.js +1 -1
- package/dist/components/suggestions2.js +1 -1
- package/dist/components/toggle-handler.js +1 -1
- package/dist/components/unique-nav-labels.js +1 -1
- package/dist/components/unit.js +1 -1
- package/dist/components/validators.js +4 -0
- package/dist/components/value-string.js +1 -1
- package/dist/components/width.js +1 -1
- package/dist/esm/{Heading-0teSdkFq.js → Heading-BVhjT9av.js} +1 -1
- package/dist/esm/{api-hAvZrw9X.js → api-D92_O-0H.js} +53 -26
- package/dist/esm/{app-globals-Dff_iJYF.js → app-globals-CBGjgNge.js} +3 -3
- package/dist/esm/{aria-labelledby-BRToXqsQ.js → aria-labelledby-CLehu03h.js} +2 -2
- package/dist/esm/{base-Df1bwC8d.js → base-BLBSJu_1.js} +24 -24
- package/dist/esm/{base-7FEvBJ3L.js → base-CHmdLgoO.js} +18 -17
- package/dist/esm/{base-COT79ELt.js → base-DIcqHqMz.js} +16 -15
- package/dist/esm/{base-CsJWjTJl.js → base-qvPPg-dn.js} +57 -51
- package/dist/esm/{base-web-component-cTyj95G-.js → base-web-component-CaAexWy_.js} +16 -15
- package/dist/esm/{base-web-component-C1XSz7ML.js → base-web-component-DbagnM7m.js} +10 -15
- package/dist/esm/base-web-component-XgI4wUyN.js +63 -0
- package/dist/esm/{behavior-Zr6qAX7F.js → behavior-B08CXmI4.js} +5 -15
- package/dist/esm/{behavior-BlS6DO8T.js → behavior-CwUUkdaP.js} +9 -9
- package/dist/esm/{behavior-BMW-_4Oy.js → behavior-DW7_5Wxp.js} +6 -6
- package/dist/esm/{bem-registry-BlJAUViA.js → bem-registry-CWN7_O1L.js} +40 -1
- package/dist/esm/{block-bem-DXqmf3Te.js → block-bem-BpQSY04L.js} +1 -1
- package/dist/esm/{bootstrap-DTVsVq0w.js → bootstrap-B9DtStuh.js} +2 -2
- package/dist/esm/{color-9CMp_pOq.js → color-eAL9I7Wq.js} +13 -3
- package/dist/esm/{common-D03JQJgy.js → common-OzsC_6kt.js} +20 -6
- package/dist/esm/{variant-PJN56KWi.js → component-8ALsFV4i.js} +38 -7
- package/dist/esm/component-BTMWoACz.js +93 -0
- package/dist/esm/{component-DzVHCXnG.js → component-Bc1n82Y8.js} +2 -2
- package/dist/esm/{component-Ik_-HAMT.js → component-CZZNha2e.js} +24 -12
- package/dist/esm/{component-DHl33p9J.js → component-CdKSiR5P.js} +10 -8
- package/dist/esm/{component-C9mkZ63L.js → component-Cdnq5GYF.js} +2 -2
- package/dist/esm/{component-BmJGOcby.js → component-D0mBOGjS.js} +13 -10
- package/dist/esm/{api-B9mpTRGa.js → component-DBAicJ2u.js} +42 -44
- package/dist/esm/component-DCw1ZAE5.js +45 -0
- package/dist/esm/{component-DeWynlzi.js → component-DLSlbWg8.js} +3 -3
- package/dist/esm/{component-BkjWlzLc.js → component-DeMf195P.js} +25 -10
- package/dist/esm/{component-C_Te18y_.js → component-nR5Bf9G5.js} +4 -4
- package/dist/esm/{component-names-Dhbtt0mX.js → component-names-CrfBV37S.js} +0 -2
- package/dist/esm/{contrast-BK5uVXeb.js → contrast-D78VGPFR.js} +2 -2
- package/dist/esm/{controller-Bf-CAo4Q.js → controller-C3O9ohSP.js} +15 -15
- package/dist/esm/{dev.utils-BgjegQC8.js → dev.utils-wYkYn08d.js} +2 -2
- package/dist/esm/{devtools-4nOArEGl.js → devtools-DrBkkLdP.js} +3 -3
- package/dist/esm/{disabled-BaPgTuFO.js → disabled-Cqhc40CU.js} +1 -1
- package/dist/esm/{element-focus-Cp994Rrk.js → element-focus-BIRmGg5W.js} +24 -1
- package/dist/esm/{element-interaction-Cy9tx3Sx.js → element-interaction-sGYdEpmv.js} +1 -1
- package/dist/esm/{field-control-Brx62dJV.js → field-control-Cs5VvsYo.js} +8 -8
- package/dist/esm/{group-Ce5pMiZJ.js → group-uNo1CfbK.js} +6 -6
- package/dist/esm/{has-closer-C9L79ect.js → has-closer-B9NQY7BK.js} +1 -1
- package/dist/esm/href-JqLbNBsW.js +8 -0
- package/dist/esm/{i18n-DRQl0u--.js → i18n-DtLKn3Xt.js} +1 -1
- package/dist/esm/id-CIYvVaNr.js +8 -0
- package/dist/esm/{index-D5UV99lE.js → index-BKEJuyFi.js} +2 -6
- package/dist/esm/index.js +6 -6
- package/dist/esm/{input-DjQorwQ5.js → input-Dja5Qioc.js} +5 -5
- package/dist/esm/{input-container-RSmfcRgK.js → input-container-C2Am7LEP.js} +8 -8
- package/dist/esm/{item-2cprk9ut.js → item-C4AmpdVD.js} +7 -7
- package/dist/esm/{item-DMWn_IlJ.js → item-ConW1c81.js} +6 -6
- package/dist/esm/{item-Bfk2xd-D.js → item-D627ShRd.js} +14 -12
- package/dist/esm/{item-D9_O5WAR.js → item-DIAFIFSy.js} +20 -29
- package/dist/esm/kol-abbr.entry.js +15 -13
- package/dist/esm/kol-accordion.entry.js +29 -23
- package/dist/esm/kol-alert.entry.js +35 -29
- package/dist/esm/kol-avatar.entry.js +28 -22
- package/dist/esm/kol-badge.entry.js +36 -33
- package/dist/esm/kol-breadcrumb.entry.js +36 -34
- package/dist/esm/kol-button-link.entry.js +52 -37
- package/dist/esm/kol-button.entry.js +53 -37
- package/dist/esm/kol-card.entry.js +46 -47
- package/dist/esm/kol-click-button.entry.js +18 -14
- package/dist/esm/kol-combobox.entry.js +70 -57
- package/dist/esm/kol-details.entry.js +29 -23
- package/dist/esm/kol-dialog.entry.js +43 -37
- package/dist/esm/kol-drawer.entry.js +46 -47
- package/dist/esm/kol-form.entry.js +33 -29
- package/dist/esm/kol-heading.entry.js +21 -15
- package/dist/esm/kol-icon.entry.js +14 -12
- package/dist/esm/kol-image.entry.js +16 -9
- package/dist/esm/kol-input-checkbox.entry.js +61 -48
- package/dist/esm/kol-input-color.entry.js +66 -56
- package/dist/esm/kol-input-date.entry.js +86 -54
- package/dist/esm/kol-input-email.entry.js +74 -55
- package/dist/esm/kol-input-file.entry.js +66 -50
- package/dist/esm/kol-input-number.entry.js +75 -55
- package/dist/esm/kol-input-password.entry.js +75 -54
- package/dist/esm/kol-input-radio.entry.js +53 -46
- package/dist/esm/kol-input-range.entry.js +67 -50
- package/dist/esm/kol-input-text.entry.js +85 -59
- package/dist/esm/kol-kolibri.entry.js +13 -12
- package/dist/esm/kol-link-button.entry.js +46 -30
- package/dist/esm/kol-link.entry.js +43 -29
- package/dist/esm/kol-meter.entry.js +33 -20
- package/dist/esm/kol-modal.entry.js +42 -37
- package/dist/esm/kol-nav.entry.js +52 -49
- package/dist/esm/kol-pagination.entry.js +48 -46
- package/dist/esm/kol-popover-button.entry.js +54 -40
- package/dist/esm/kol-progress.entry.js +27 -20
- package/dist/esm/kol-quote.entry.js +20 -18
- package/dist/esm/kol-select.entry.js +61 -47
- package/dist/esm/kol-single-select.entry.js +66 -55
- package/dist/esm/kol-skeleton.entry.js +15 -13
- package/dist/esm/kol-skip-nav.entry.js +36 -33
- package/dist/esm/kol-spin.entry.js +20 -30
- package/dist/esm/kol-split-button.entry.js +57 -41
- package/dist/esm/kol-table-stateful.entry.js +72 -61
- package/dist/esm/kol-table-stateless.entry.js +56 -46
- package/dist/esm/kol-tabs.entry.js +41 -35
- package/dist/esm/kol-textarea.entry.js +70 -52
- package/dist/esm/kol-toast-container.entry.js +28 -22
- package/dist/esm/kol-toolbar.entry.js +38 -37
- package/dist/esm/kol-tree-item.entry.js +42 -36
- package/dist/esm/kol-tree.entry.js +15 -13
- package/dist/esm/kol-version.entry.js +26 -21
- package/dist/esm/kolibri.js +5 -5
- package/dist/esm/label-BRosRgdX.js +12 -0
- package/dist/esm/label-hints-Jn18RUT-.js +20 -0
- package/dist/esm/label-lang-segment-2_GnxjFp.js +11 -0
- package/dist/esm/label-with-expert-slot-CicRes-W.js +12 -0
- package/dist/esm/{level-Df663c7y.js → level-CA1s1_Mf.js} +1 -1
- package/dist/esm/{link-target-C7_smSbV.js → link-target-FX94oqMo.js} +1 -1
- package/dist/esm/{links-B0xbzBwU.js → links-DwucTqcR.js} +2 -2
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{multiple-CYHm7rd3.js → multiple-DqrZxybx.js} +1 -1
- package/dist/esm/{name-m3owaZxH.js → name-B2Yf3EpX.js} +1 -1
- package/dist/esm/{number-value-CMedWR58.js → number-value-B-SJ1dRo.js} +1 -1
- package/dist/esm/{open-DCGNTmvC.js → open-DRRv1KFK.js} +1 -1
- package/dist/esm/{options-CR431ims.js → options-DCaUcfAu.js} +2 -2
- package/dist/esm/{orientation-C9FRNmPD.js → orientation-XNOCaPwy.js} +1 -1
- package/dist/esm/{placeholder-Bwzvbwhh.js → placeholder-BeLIzdJv.js} +1 -1
- package/dist/esm/{base-web-component-Bcoukts3.js → props-from-config-Ci0dILpz.js} +231 -50
- package/dist/esm/{read-only-C5fDsZVK.js → read-only-Bby9r6ZX.js} +1 -1
- package/dist/esm/{required-CC0212MQ.js → required-hoaT7UmZ.js} +1 -1
- package/dist/esm/{resolve-props-47S-r31C.js → resolve-props-BLZxWC3j.js} +8 -8
- package/dist/esm/{resolve-props-CnHCiXuG.js → resolve-props-D2KiItuv.js} +8 -8
- package/dist/esm/rows-B0x8CR7K.js +8 -0
- package/dist/esm/{scroll-lock-DQGTnLvW.js → scroll-lock-Y2hf47KW.js} +2 -2
- package/dist/esm/{smart-button-BHM06d-t.js → smart-button-CS_ZriPt.js} +2 -2
- package/dist/esm/{spell-check-DiSedaOR.js → spell-check-DzgftyqL.js} +1 -1
- package/dist/esm/{src-CsLEg--w.js → src-DaGhmCL1.js} +1 -1
- package/dist/esm/{step-BxSThOke.js → step-Bdj89bGO.js} +1 -1
- package/dist/esm/{suggestions-C38q-5JU.js → suggestions-DuqzGDve.js} +3 -3
- package/dist/esm/{suggestions-B79TOsF_.js → suggestions-Dy1X-Pc3.js} +2 -2
- package/dist/esm/test-component.entry.js +2 -2
- package/dist/esm/{toggle-handler-CQ0FhBmD.js → toggle-handler-BRLmxe1J.js} +13 -13
- package/dist/esm/unique-nav-labels-h2KOu5Qy.js +22 -0
- package/dist/esm/{unit-BgjPEae-.js → unit-BUhhJbhT.js} +1 -1
- package/dist/esm/validators-BVM40IEr.js +11 -0
- package/dist/esm/{value-string-BDfywbme.js → value-string-e9pwLcS-.js} +1 -1
- package/dist/esm/{width-CAS8lhOU.js → width-CgYY17tL.js} +5 -2
- package/dist/kolibri/{Heading-0teSdkFq.js → Heading-BVhjT9av.js} +1 -1
- package/dist/kolibri/api-D92_O-0H.js +4 -0
- package/dist/kolibri/app-globals-CBGjgNge.js +4 -0
- package/dist/kolibri/aria-labelledby-CLehu03h.js +4 -0
- package/dist/kolibri/base-BLBSJu_1.js +4 -0
- package/dist/kolibri/base-CHmdLgoO.js +4 -0
- package/dist/kolibri/base-DIcqHqMz.js +4 -0
- package/dist/kolibri/base-qvPPg-dn.js +4 -0
- package/dist/kolibri/base-web-component-CaAexWy_.js +4 -0
- package/dist/kolibri/base-web-component-DbagnM7m.js +4 -0
- package/dist/kolibri/base-web-component-XgI4wUyN.js +4 -0
- package/dist/kolibri/behavior-B08CXmI4.js +4 -0
- package/dist/kolibri/behavior-CwUUkdaP.js +4 -0
- package/dist/kolibri/behavior-DW7_5Wxp.js +4 -0
- package/dist/kolibri/{bem-registry-BlJAUViA.js → bem-registry-CWN7_O1L.js} +1 -1
- package/dist/kolibri/{block-bem-DXqmf3Te.js → block-bem-BpQSY04L.js} +1 -1
- package/dist/kolibri/bootstrap-B9DtStuh.js +4 -0
- package/dist/kolibri/color-eAL9I7Wq.js +4 -0
- package/dist/kolibri/common-OzsC_6kt.js +4 -0
- package/dist/kolibri/component-8ALsFV4i.js +4 -0
- package/dist/kolibri/component-BTMWoACz.js +4 -0
- package/dist/kolibri/component-Bc1n82Y8.js +4 -0
- package/dist/kolibri/component-CZZNha2e.js +4 -0
- package/dist/kolibri/component-CdKSiR5P.js +4 -0
- package/dist/kolibri/{component-C9mkZ63L.js → component-Cdnq5GYF.js} +1 -1
- package/dist/kolibri/component-D0mBOGjS.js +4 -0
- package/dist/kolibri/component-DBAicJ2u.js +4 -0
- package/dist/kolibri/component-DCw1ZAE5.js +4 -0
- package/dist/kolibri/component-DLSlbWg8.js +4 -0
- package/dist/kolibri/component-DeMf195P.js +4 -0
- package/dist/kolibri/component-nR5Bf9G5.js +4 -0
- package/dist/kolibri/{component-names-Dhbtt0mX.js → component-names-CrfBV37S.js} +1 -1
- package/dist/kolibri/contrast-D78VGPFR.js +4 -0
- package/dist/kolibri/controller-C3O9ohSP.js +4 -0
- package/dist/kolibri/dev.utils-wYkYn08d.js +4 -0
- package/dist/kolibri/{devtools-4nOArEGl.js → devtools-DrBkkLdP.js} +1 -1
- package/dist/kolibri/disabled-Cqhc40CU.js +4 -0
- package/dist/kolibri/element-focus-BIRmGg5W.js +4 -0
- package/dist/kolibri/{element-interaction-Cy9tx3Sx.js → element-interaction-sGYdEpmv.js} +1 -1
- package/dist/kolibri/field-control-Cs5VvsYo.js +4 -0
- package/dist/kolibri/group-uNo1CfbK.js +4 -0
- package/dist/kolibri/has-closer-B9NQY7BK.js +4 -0
- package/dist/kolibri/href-JqLbNBsW.js +4 -0
- package/dist/kolibri/i18n-DtLKn3Xt.js +4 -0
- package/dist/kolibri/id-CIYvVaNr.js +4 -0
- package/dist/kolibri/{index-D5UV99lE.js → index-BKEJuyFi.js} +2 -2
- package/dist/kolibri/index.esm.js +1 -1
- package/dist/kolibri/input-Dja5Qioc.js +4 -0
- package/dist/kolibri/input-container-C2Am7LEP.js +4 -0
- package/dist/kolibri/item-C4AmpdVD.js +4 -0
- package/dist/kolibri/item-ConW1c81.js +4 -0
- package/dist/kolibri/item-D627ShRd.js +4 -0
- package/dist/kolibri/item-DIAFIFSy.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-click-button.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-skeleton.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-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-BRosRgdX.js +4 -0
- package/dist/kolibri/label-hints-Jn18RUT-.js +4 -0
- package/dist/kolibri/label-lang-segment-2_GnxjFp.js +4 -0
- package/dist/kolibri/label-with-expert-slot-CicRes-W.js +4 -0
- package/dist/kolibri/level-CA1s1_Mf.js +4 -0
- package/dist/kolibri/link-target-FX94oqMo.js +4 -0
- package/dist/kolibri/links-DwucTqcR.js +4 -0
- package/dist/kolibri/multiple-DqrZxybx.js +4 -0
- package/dist/kolibri/name-B2Yf3EpX.js +4 -0
- package/dist/kolibri/number-value-B-SJ1dRo.js +4 -0
- package/dist/kolibri/open-DRRv1KFK.js +4 -0
- package/dist/kolibri/options-DCaUcfAu.js +4 -0
- package/dist/kolibri/orientation-XNOCaPwy.js +4 -0
- package/dist/kolibri/placeholder-BeLIzdJv.js +4 -0
- package/dist/kolibri/props-from-config-Ci0dILpz.js +4 -0
- package/dist/kolibri/read-only-Bby9r6ZX.js +4 -0
- package/dist/kolibri/required-hoaT7UmZ.js +4 -0
- package/dist/kolibri/resolve-props-BLZxWC3j.js +4 -0
- package/dist/kolibri/resolve-props-D2KiItuv.js +4 -0
- package/dist/kolibri/rows-B0x8CR7K.js +4 -0
- package/dist/kolibri/{scroll-lock-DQGTnLvW.js → scroll-lock-Y2hf47KW.js} +1 -1
- package/dist/kolibri/smart-button-CS_ZriPt.js +4 -0
- package/dist/kolibri/spell-check-DzgftyqL.js +4 -0
- package/dist/kolibri/src-DaGhmCL1.js +4 -0
- package/dist/kolibri/step-Bdj89bGO.js +4 -0
- package/dist/kolibri/suggestions-DuqzGDve.js +4 -0
- package/dist/kolibri/suggestions-Dy1X-Pc3.js +4 -0
- package/dist/kolibri/test-component.entry.js +1 -1
- package/dist/kolibri/toggle-handler-BRLmxe1J.js +4 -0
- package/dist/kolibri/unique-nav-labels-h2KOu5Qy.js +4 -0
- package/dist/kolibri/unit-BUhhJbhT.js +4 -0
- package/dist/kolibri/validators-BVM40IEr.js +4 -0
- package/dist/kolibri/value-string-e9pwLcS-.js +4 -0
- package/dist/kolibri/width-CgYY17tL.js +4 -0
- package/dist/types/components/abbr/component.d.ts +5 -4
- package/dist/types/components/accordion/component.d.ts +9 -8
- package/dist/types/components/alert/component.d.ts +9 -8
- package/dist/types/components/avatar/component.d.ts +7 -6
- package/dist/types/components/badge/component.d.ts +5 -4
- package/dist/types/components/breadcrumb/component.d.ts +2 -1
- package/dist/types/components/button/base.d.ts +9 -8
- package/dist/types/components/button/component.d.ts +13 -13
- package/dist/types/components/button-link/component.d.ts +11 -11
- package/dist/types/components/card/base.d.ts +6 -4
- package/dist/types/components/card/component.d.ts +5 -5
- package/dist/types/components/click-button/component.d.ts +15 -0
- package/dist/types/components/combobox/component.d.ts +23 -22
- package/dist/types/components/details/component.d.ts +9 -8
- package/dist/types/components/dialog/base.d.ts +6 -4
- package/dist/types/components/dialog/component.d.ts +5 -5
- package/dist/types/components/drawer/component.d.ts +7 -6
- package/dist/types/components/form/component.d.ts +2 -1
- package/dist/types/components/heading/component.d.ts +5 -4
- package/dist/types/components/icon/component.d.ts +5 -3
- package/dist/types/components/image/component.d.ts +11 -9
- package/dist/types/components/input-checkbox/component.d.ts +21 -20
- package/dist/types/components/input-color/component.d.ts +17 -17
- package/dist/types/components/input-date/component.d.ts +19 -18
- package/dist/types/components/input-email/component.d.ts +31 -30
- package/dist/types/components/input-file/component.d.ts +18 -17
- package/dist/types/components/input-number/component.d.ts +21 -20
- package/dist/types/components/input-password/component.d.ts +30 -28
- package/dist/types/components/input-radio/component.d.ts +15 -14
- package/dist/types/components/input-range/component.d.ts +15 -14
- package/dist/types/components/input-text/component.d.ts +28 -26
- package/dist/types/components/kolibri/component.d.ts +5 -4
- package/dist/types/components/link/base.d.ts +8 -6
- package/dist/types/components/link/component.d.ts +11 -13
- package/dist/types/components/link-button/component.d.ts +9 -11
- package/dist/types/components/meter/component.d.ts +19 -17
- package/dist/types/components/modal/component.d.ts +5 -5
- package/dist/types/components/nav/component.d.ts +9 -8
- package/dist/types/components/pagination/component.d.ts +10 -9
- package/dist/types/components/popover-button/base.d.ts +1 -1
- package/dist/types/components/popover-button/component.d.ts +9 -9
- package/dist/types/components/progress/component.d.ts +11 -9
- package/dist/types/components/{_skeleton/public-api → public-api}/contract.d.ts +1 -6
- package/dist/types/components/quote/component.d.ts +9 -7
- package/dist/types/components/select/component.d.ts +21 -20
- package/dist/types/components/single-select/component.d.ts +21 -20
- package/dist/types/components/{_skeleton/web-components/skeleton → skeleton}/component.d.ts +8 -7
- package/dist/types/components/skip-nav/component.d.ts +2 -1
- package/dist/types/components/spin/component.d.ts +7 -5
- package/dist/types/components/split-button/component.d.ts +13 -13
- package/dist/types/components/table-stateful/component.d.ts +9 -9
- package/dist/types/components/table-stateless/base.d.ts +6 -4
- package/dist/types/components/table-stateless/component.d.ts +5 -5
- package/dist/types/components/tabs/component.d.ts +5 -4
- package/dist/types/components/textarea/component.d.ts +29 -28
- package/dist/types/components/toolbar/component.d.ts +5 -4
- package/dist/types/components/tree/component.d.ts +2 -1
- package/dist/types/components/tree-item/component.d.ts +5 -4
- package/dist/types/components/version/component.d.ts +2 -1
- package/dist/types/components.d.ts +1420 -1043
- package/dist/types/core/component-names.d.ts +0 -1
- package/dist/types/core/i18n.d.ts +1 -1
- package/dist/types/e2e/aria-details.d.ts +2 -0
- package/dist/types/e2e/input-behavior-contract.d.ts +0 -1
- package/dist/types/functional-components/index.d.ts +0 -1
- package/dist/types/internal/functional-components/abbr/api.d.ts +1 -1
- package/dist/types/internal/functional-components/alert/api.d.ts +1 -1
- package/dist/types/internal/functional-components/avatar/api.d.ts +1 -1
- package/dist/types/internal/functional-components/avatar/component.d.ts +1 -1
- package/dist/types/internal/functional-components/badge/api.d.ts +4 -4
- package/dist/types/internal/functional-components/badge/component.d.ts +3 -2
- package/dist/types/internal/functional-components/base-web-component.d.ts +5 -1
- package/dist/types/internal/functional-components/breadcrumb/api.d.ts +1 -1
- package/dist/types/internal/functional-components/button/api.d.ts +2 -2
- package/dist/types/internal/functional-components/button/component.d.ts +1 -1
- package/dist/types/internal/functional-components/button/item.d.ts +1 -3
- package/dist/types/internal/functional-components/card/api.d.ts +2 -2
- package/dist/types/internal/functional-components/card/component.d.ts +5 -2
- package/dist/types/internal/functional-components/collapsible/api.d.ts +2 -2
- package/dist/types/internal/functional-components/combobox/api.d.ts +4 -4
- package/dist/types/internal/functional-components/counter/api.d.ts +1 -1
- package/dist/types/internal/functional-components/dialog/api.d.ts +2 -2
- package/dist/types/internal/functional-components/dialog/item.d.ts +2 -2
- package/dist/types/internal/functional-components/drawer/api.d.ts +2 -2
- package/dist/types/internal/functional-components/drawer/component.d.ts +1 -1
- package/dist/types/internal/functional-components/form/api.d.ts +1 -1
- 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 -3
- package/dist/types/internal/functional-components/form-field/api.d.ts +3 -3
- package/dist/types/internal/functional-components/form-field/base-web-component.d.ts +5 -0
- package/dist/types/internal/functional-components/form-field/component.d.ts +2 -2
- package/dist/types/internal/functional-components/form-field/default-input-props.d.ts +4 -3
- package/dist/types/internal/functional-components/form-field/field-control.d.ts +2 -2
- package/dist/types/internal/functional-components/form-field/label.d.ts +2 -1
- package/dist/types/internal/functional-components/generic-types.d.ts +6 -5
- package/dist/types/internal/functional-components/heading/api.d.ts +2 -2
- package/dist/types/internal/functional-components/heading/component.d.ts +1 -1
- package/dist/types/internal/functional-components/icon/api.d.ts +1 -1
- package/dist/types/internal/functional-components/image/api.d.ts +2 -2
- package/dist/types/internal/functional-components/input-checkbox/api.d.ts +3 -3
- package/dist/types/internal/functional-components/input-color/api.d.ts +6 -6
- package/dist/types/internal/functional-components/input-date/api.d.ts +6 -6
- package/dist/types/internal/functional-components/input-email/api.d.ts +6 -6
- package/dist/types/internal/functional-components/input-file/api.d.ts +6 -6
- package/dist/types/internal/functional-components/input-number/api.d.ts +6 -6
- package/dist/types/internal/functional-components/input-password/api.d.ts +6 -6
- package/dist/types/internal/functional-components/input-radio/api.d.ts +3 -3
- package/dist/types/internal/functional-components/input-range/api.d.ts +4 -4
- package/dist/types/internal/functional-components/input-text/api.d.ts +6 -6
- package/dist/types/internal/functional-components/kolibri/api.d.ts +1 -1
- package/dist/types/internal/functional-components/kolibri/component.d.ts +1 -1
- package/dist/types/internal/functional-components/link/api.d.ts +2 -2
- package/dist/types/internal/functional-components/link/component.d.ts +1 -1
- package/dist/types/internal/functional-components/link/item.d.ts +2 -1
- package/dist/types/internal/functional-components/meter/api.d.ts +11 -2
- package/dist/types/internal/functional-components/meter/component.d.ts +4 -1
- package/dist/types/internal/functional-components/nav/api.d.ts +2 -2
- package/dist/types/internal/functional-components/nav/component.d.ts +1 -1
- package/dist/types/internal/functional-components/pagination/api.d.ts +2 -2
- package/dist/types/internal/functional-components/pagination/component.d.ts +2 -2
- package/dist/types/internal/functional-components/pagination/item.d.ts +6 -4
- package/dist/types/internal/functional-components/pagination/page-size-select.d.ts +2 -0
- package/dist/types/internal/functional-components/popover-button/api.d.ts +2 -2
- package/dist/types/internal/functional-components/progress/api.d.ts +11 -2
- package/dist/types/internal/functional-components/progress/component.d.ts +1 -1
- package/dist/types/internal/functional-components/props-from-config.d.ts +4 -1
- package/dist/types/internal/functional-components/quote/api.d.ts +2 -2
- package/dist/types/internal/functional-components/quote/component.d.ts +1 -1
- package/dist/types/internal/functional-components/select/api.d.ts +4 -4
- package/dist/types/internal/functional-components/single-select/api.d.ts +4 -4
- package/dist/types/internal/functional-components/skeleton/api.d.ts +1 -1
- package/dist/types/internal/functional-components/skip-nav/api.d.ts +1 -1
- package/dist/types/internal/functional-components/span/api.d.ts +2 -2
- package/dist/types/internal/functional-components/span/component.d.ts +2 -1
- package/dist/types/internal/functional-components/spin/api.d.ts +1 -1
- package/dist/types/internal/functional-components/spin/component.d.ts +1 -1
- package/dist/types/internal/functional-components/table-stateful/api.d.ts +2 -2
- package/dist/types/internal/functional-components/table-stateless/api.d.ts +2 -2
- package/dist/types/internal/functional-components/table-stateless/component.d.ts +2 -1
- package/dist/types/internal/functional-components/table-stateless/table-model.d.ts +0 -3
- package/dist/types/internal/functional-components/tabs/api.d.ts +2 -2
- package/dist/types/internal/functional-components/text-input/api.d.ts +6 -6
- package/dist/types/internal/functional-components/textarea/api.d.ts +4 -4
- package/dist/types/internal/functional-components/toolbar/api.d.ts +2 -2
- package/dist/types/internal/functional-components/tooltip/api.d.ts +2 -2
- package/dist/types/internal/functional-components/tooltip/behavior.d.ts +2 -1
- package/dist/types/internal/functional-components/tree/api.d.ts +1 -1
- package/dist/types/internal/functional-components/tree-item/api.d.ts +2 -2
- package/dist/types/internal/props/accept.d.ts +2 -1
- package/dist/types/internal/props/access-key.d.ts +3 -2
- package/dist/types/internal/props/active.d.ts +3 -2
- package/dist/types/internal/props/adjust-height.d.ts +3 -2
- package/dist/types/internal/props/alert-callbacks.d.ts +1 -3
- package/dist/types/internal/props/alert-type.d.ts +1 -1
- package/dist/types/internal/props/alert-variant.d.ts +1 -1
- package/dist/types/internal/props/alert.d.ts +3 -2
- package/dist/types/internal/props/allow-markdown.d.ts +3 -2
- package/dist/types/internal/props/allow-multi-sort.d.ts +3 -2
- package/dist/types/internal/props/alt.d.ts +3 -2
- package/dist/types/internal/props/aria-controls.d.ts +3 -2
- package/dist/types/internal/props/aria-current-value.d.ts +1 -1
- package/dist/types/internal/props/aria-description.d.ts +3 -2
- package/dist/types/internal/props/aria-details.d.ts +3 -2
- package/dist/types/internal/props/aria-expanded.d.ts +1 -1
- package/dist/types/internal/props/aria-has-popup.d.ts +1 -1
- package/dist/types/internal/props/aria-owns.d.ts +3 -2
- package/dist/types/internal/props/aria-selected.d.ts +1 -1
- package/dist/types/internal/props/auto-complete.d.ts +1 -1
- package/dist/types/internal/props/badge-text.d.ts +3 -2
- package/dist/types/internal/props/boundary-count.d.ts +3 -2
- package/dist/types/internal/props/breadcrumb-links.d.ts +1 -4
- package/dist/types/internal/props/button-callbacks.d.ts +1 -3
- package/dist/types/internal/props/button-type.d.ts +1 -1
- package/dist/types/internal/props/card-callbacks.d.ts +1 -3
- package/dist/types/internal/props/checkbox-value.d.ts +1 -1
- package/dist/types/internal/props/checked.d.ts +3 -2
- package/dist/types/internal/props/collapsible-callbacks.d.ts +1 -3
- package/dist/types/internal/props/collapsible.d.ts +3 -2
- package/dist/types/internal/props/color.d.ts +1 -1
- package/dist/types/internal/props/custom-class.d.ts +3 -2
- package/dist/types/internal/props/dialog-callbacks.d.ts +1 -1
- package/dist/types/internal/props/disabled.d.ts +3 -2
- package/dist/types/internal/props/download.d.ts +2 -1
- package/dist/types/internal/props/drawer-callbacks.d.ts +1 -1
- package/dist/types/internal/props/error-list.d.ts +1 -1
- package/dist/types/internal/props/fixed-cols.d.ts +1 -1
- package/dist/types/internal/props/form-callbacks.d.ts +1 -3
- package/dist/types/internal/props/has-clear-button.d.ts +3 -2
- package/dist/types/internal/props/has-closer.d.ts +3 -2
- package/dist/types/internal/props/has-compact-button.d.ts +3 -2
- package/dist/types/internal/props/has-counter.d.ts +3 -2
- package/dist/types/internal/props/has-create-button.d.ts +3 -2
- package/dist/types/internal/props/has-icons-when-expanded.d.ts +3 -2
- package/dist/types/internal/props/has-settings-menu.d.ts +3 -2
- package/dist/types/internal/props/helpers/factory.d.ts +13 -6
- package/dist/types/internal/props/helpers/normalizers.d.ts +2 -1
- package/dist/types/internal/props/helpers/validators.d.ts +4 -0
- package/dist/types/internal/props/hide-label.d.ts +3 -2
- package/dist/types/internal/props/hide-msg.d.ts +3 -2
- package/dist/types/internal/props/high.d.ts +3 -2
- package/dist/types/internal/props/hint.d.ts +3 -2
- package/dist/types/internal/props/hints/label-hints.d.ts +2 -1
- package/dist/types/internal/props/horizontal-icons.d.ts +1 -1
- package/dist/types/internal/props/href.d.ts +3 -3
- package/dist/types/internal/props/icons-input-checkbox.d.ts +1 -1
- package/dist/types/internal/props/icons.d.ts +1 -1
- package/dist/types/internal/props/id.d.ts +3 -2
- package/dist/types/internal/props/image-callbacks.d.ts +1 -3
- package/dist/types/internal/props/indeterminate.d.ts +3 -2
- package/dist/types/internal/props/index.d.ts +1 -1
- package/dist/types/internal/props/inline.d.ts +3 -2
- package/dist/types/internal/props/input-date-type.d.ts +1 -1
- package/dist/types/internal/props/input-text-type.d.ts +1 -1
- package/dist/types/internal/props/kolibri-color.d.ts +1 -1
- package/dist/types/internal/props/label-align.d.ts +1 -1
- package/dist/types/internal/props/label-lang-segment.d.ts +4 -0
- package/dist/types/internal/props/label-with-expert-slot.d.ts +3 -2
- package/dist/types/internal/props/label.d.ts +2 -1
- package/dist/types/internal/props/labeled.d.ts +3 -2
- package/dist/types/internal/props/level.d.ts +1 -1
- package/dist/types/internal/props/link-callbacks.d.ts +1 -3
- package/dist/types/internal/props/link-role.d.ts +1 -1
- package/dist/types/internal/props/link-target.d.ts +3 -2
- package/dist/types/internal/props/loading.d.ts +1 -1
- package/dist/types/internal/props/low.d.ts +3 -2
- package/dist/types/internal/props/max-length-behavior.d.ts +1 -1
- package/dist/types/internal/props/max-length.d.ts +2 -1
- package/dist/types/internal/props/max.d.ts +3 -2
- package/dist/types/internal/props/min.d.ts +3 -2
- package/dist/types/internal/props/multiple.d.ts +3 -2
- package/dist/types/internal/props/name.d.ts +3 -2
- package/dist/types/internal/props/nav-links.d.ts +1 -3
- package/dist/types/internal/props/open.d.ts +3 -2
- package/dist/types/internal/props/optimum.d.ts +3 -2
- package/dist/types/internal/props/options-with-optgroup.d.ts +1 -1
- package/dist/types/internal/props/orientation.d.ts +1 -1
- package/dist/types/internal/props/page-size-options.d.ts +1 -1
- package/dist/types/internal/props/page-size.d.ts +3 -2
- package/dist/types/internal/props/page.d.ts +3 -2
- package/dist/types/internal/props/pagination-callbacks.d.ts +1 -3
- package/dist/types/internal/props/pagination-has-buttons.d.ts +1 -1
- package/dist/types/internal/props/pagination-max.d.ts +3 -2
- package/dist/types/internal/props/pagination-position.d.ts +1 -1
- package/dist/types/internal/props/pattern.d.ts +2 -1
- package/dist/types/internal/props/placeholder.d.ts +2 -1
- package/dist/types/internal/props/quote.d.ts +3 -2
- package/dist/types/internal/props/radio-orientation.d.ts +1 -1
- package/dist/types/internal/props/radio-value.d.ts +1 -1
- package/dist/types/internal/props/read-only.d.ts +3 -2
- package/dist/types/internal/props/required-text.d.ts +1 -1
- package/dist/types/internal/props/required.d.ts +3 -2
- package/dist/types/internal/props/resize.d.ts +1 -1
- package/dist/types/internal/props/rows.d.ts +2 -1
- package/dist/types/internal/props/secondary-headline.d.ts +3 -2
- package/dist/types/internal/props/select-value.d.ts +1 -1
- package/dist/types/internal/props/selected.d.ts +3 -2
- package/dist/types/internal/props/short-key.d.ts +3 -2
- package/dist/types/internal/props/show.d.ts +3 -2
- package/dist/types/internal/props/sibling-count.d.ts +3 -2
- package/dist/types/internal/props/sizes.d.ts +3 -2
- package/dist/types/internal/props/skip-nav-links.d.ts +1 -3
- package/dist/types/internal/props/smart-button.d.ts +2 -2
- package/dist/types/internal/props/span-icons.d.ts +1 -1
- package/dist/types/internal/props/spell-check.d.ts +2 -1
- package/dist/types/internal/props/src.d.ts +3 -2
- package/dist/types/internal/props/srcset.d.ts +3 -2
- package/dist/types/internal/props/suggestions.d.ts +1 -1
- package/dist/types/internal/props/sync-value-by-selector.d.ts +2 -1
- package/dist/types/internal/props/tab-behavior.d.ts +1 -1
- package/dist/types/internal/props/tab-index.d.ts +3 -2
- package/dist/types/internal/props/table-data-foot.d.ts +1 -1
- package/dist/types/internal/props/table-data.d.ts +1 -1
- package/dist/types/internal/props/table-headers.d.ts +1 -1
- package/dist/types/internal/props/table-loading.d.ts +3 -2
- package/dist/types/internal/props/table-pagination.d.ts +1 -1
- package/dist/types/internal/props/table-selection.d.ts +1 -1
- package/dist/types/internal/props/table-stateful-headers.d.ts +1 -1
- package/dist/types/internal/props/tabs-callbacks.d.ts +1 -1
- package/dist/types/internal/props/tabs.d.ts +1 -1
- package/dist/types/internal/props/toolbar-items.d.ts +1 -1
- package/dist/types/internal/props/touched.d.ts +3 -2
- package/dist/types/internal/props/unit.d.ts +3 -2
- package/dist/types/internal/props/value-number-clamped.d.ts +4 -3
- package/dist/types/internal/props/value-string.d.ts +2 -1
- package/dist/types/internal/props/variant-dialog.d.ts +1 -1
- package/dist/types/internal/props/variant-input-checkbox.d.ts +1 -1
- package/dist/types/internal/props/variant-progress.d.ts +1 -1
- package/dist/types/internal/props/variant-quote.d.ts +1 -1
- package/dist/types/internal/props/variant-spin.d.ts +1 -1
- package/dist/types/internal/props/variant.d.ts +1 -1
- package/dist/types/internal/props/visibility-toggle.d.ts +3 -2
- package/dist/types/internal/props/width.d.ts +3 -2
- package/dist/types/schema/bem-registry.d.ts +75 -0
- package/dist/types/schema/components/alert.d.ts +2 -2
- package/dist/types/schema/components/badge.d.ts +2 -2
- package/dist/types/schema/components/breadcrumb.d.ts +2 -2
- package/dist/types/schema/components/card.d.ts +2 -2
- package/dist/types/schema/components/collapsible.d.ts +3 -3
- package/dist/types/schema/components/dialog.d.ts +3 -3
- package/dist/types/schema/components/drawer.d.ts +3 -3
- package/dist/types/schema/components/split-button.d.ts +2 -2
- package/dist/types/schema/components/table.d.ts +3 -3
- package/dist/types/schema/components/tableStateless.d.ts +3 -3
- package/dist/types/schema/components/tabs.d.ts +2 -2
- package/dist/types/schema/components/tree-item.d.ts +2 -2
- package/dist/types/schema/props/allow-markdown.d.ts +1 -0
- package/dist/types/schema/props/aria-controls.d.ts +1 -2
- package/dist/types/schema/props/boundary-count.d.ts +1 -0
- package/dist/types/schema/props/has-clear-button.d.ts +1 -0
- package/dist/types/schema/props/has-compact-button.d.ts +1 -2
- package/dist/types/schema/props/high.d.ts +1 -0
- package/dist/types/schema/props/index.d.ts +19 -2
- package/dist/types/schema/props/label.d.ts +16 -2
- package/dist/types/schema/props/labeled.d.ts +1 -0
- package/dist/types/schema/props/low.d.ts +1 -0
- package/dist/types/schema/props/min.d.ts +1 -0
- package/dist/types/schema/props/optimum.d.ts +1 -0
- package/dist/types/schema/props/page-size.d.ts +1 -0
- package/dist/types/schema/props/page.d.ts +1 -0
- package/dist/types/schema/props/quote.d.ts +0 -5
- package/dist/types/schema/props/secondary-headline.d.ts +1 -0
- package/dist/types/schema/props/selected.d.ts +1 -0
- package/dist/types/schema/props/sibling-count.d.ts +1 -0
- package/dist/types/schema/props/sizes.d.ts +1 -0
- package/dist/types/schema/props/src.d.ts +1 -0
- package/dist/types/schema/props/srcset.d.ts +1 -0
- package/dist/types/schema/props/table-loading.d.ts +1 -0
- package/dist/types/schema/props/value-number-clamped.d.ts +1 -0
- package/dist/types/schema/props/value-string.d.ts +1 -0
- package/dist/types/schema/types/button-link-text.d.ts +4 -4
- package/dist/types/schema/utils/dev.utils.d.ts +1 -0
- package/dist/types/utils/dev.utils.d.ts +0 -2
- package/dist/types/utils/element-focus.d.ts +1 -0
- package/dist/types/utils/element-interaction.d.ts +0 -1
- package/dist/types/utils/element-themed.d.ts +1 -2
- package/dist/types/utils/unique-nav-labels.d.ts +3 -2
- package/doc/abbr.md +3 -3
- package/doc/accordion.md +1 -1
- package/doc/alert.md +1 -1
- package/doc/badge.md +6 -6
- package/doc/breadcrumb.md +4 -4
- package/doc/button-link.md +2 -2
- package/doc/button.md +1 -1
- package/doc/card.md +2 -2
- package/doc/combobox.md +23 -23
- package/doc/details.md +1 -1
- package/doc/dialog.md +1 -1
- package/doc/drawer.md +1 -1
- package/doc/heading.md +5 -5
- package/doc/input-checkbox.md +23 -23
- package/doc/input-color.md +22 -22
- package/doc/input-date.md +28 -28
- package/doc/input-email.md +30 -30
- package/doc/input-file.md +22 -22
- package/doc/input-number.md +28 -28
- package/doc/input-password.md +29 -29
- package/doc/input-radio.md +19 -19
- package/doc/input-range.md +24 -24
- package/doc/input-text.md +31 -31
- package/doc/link-button.md +5 -5
- package/doc/link.md +6 -6
- package/doc/meter.md +1 -1
- package/doc/modal.md +1 -1
- package/doc/popover-button.md +18 -18
- package/doc/progress.md +7 -7
- package/doc/quote.md +6 -6
- package/doc/select.md +24 -24
- package/doc/single-select.md +24 -24
- package/doc/split-button.md +1 -1
- package/doc/table-stateful.md +1 -1
- package/doc/table-stateless.md +1 -1
- package/doc/textarea.md +3 -3
- package/doc/tree-item.md +6 -6
- package/package.json +3 -10
- package/vscode-custom-data.json +38 -38
- package/dist/cjs/align-NV74hwT0.js +0 -22
- package/dist/cjs/api-BBdhCCKv.js +0 -73
- package/dist/cjs/api-BlwpFlt1.js +0 -96
- package/dist/cjs/component-B_EvGSM0.js +0 -22
- package/dist/cjs/component-kxdSa2S4.js +0 -36
- package/dist/cjs/component-plNY-StC.js +0 -13
- package/dist/cjs/disabled-wIEbt0Gz.js +0 -10
- package/dist/cjs/has-closer-4Czygcsx.js +0 -10
- package/dist/cjs/href-B2aqb6-P.js +0 -12
- package/dist/cjs/isArray-BOIOdEQh.js +0 -163
- package/dist/cjs/kol-tooltip-wc.cjs.entry.js +0 -82
- package/dist/cjs/label-DeUoiK6M.js +0 -39
- package/dist/cjs/label-with-expert-slot-B1k6ppMF.js +0 -10
- package/dist/cjs/level-DGDM1aXl.js +0 -11
- package/dist/cjs/link-target-PjKWXgno.js +0 -10
- package/dist/cjs/links-0QyGYlHz.js +0 -15
- package/dist/cjs/multiple-BoCGiGxR.js +0 -10
- package/dist/cjs/name-BZcwC1Zd.js +0 -10
- package/dist/cjs/open-ui_yY8GH.js +0 -10
- package/dist/cjs/placeholder-CCYSgsip.js +0 -10
- package/dist/cjs/read-only-KKKbZyk5.js +0 -10
- package/dist/cjs/required-CeiUcxrv.js +0 -10
- package/dist/cjs/resolve-props-BcGzqFFR.js +0 -58
- package/dist/cjs/resolve-props-Cv67cUZA.js +0 -60
- package/dist/cjs/rows-BWBG8nDk.js +0 -10
- package/dist/cjs/spell-check-DHRle7ui.js +0 -10
- package/dist/cjs/src-B6CU1zD0.js +0 -10
- package/dist/cjs/step-kuREYDVE.js +0 -10
- package/dist/cjs/unique-nav-labels-CuHbVHx9.js +0 -22
- package/dist/cjs/unit-DHpzrXY7.js +0 -13
- package/dist/cjs/value-string-BtfdnGIb.js +0 -10
- package/dist/cjs/variant-CxQO5qFu.js +0 -106
- package/dist/collection/components/@else/all/component.js +0 -17
- package/dist/collection/components/@else/counter/component.js +0 -29
- package/dist/collection/components/component-list.js +0 -105
- package/dist/collection/components/heading/validation.js +0 -11
- package/dist/collection/components/tooltip/component.js +0 -204
- package/dist/collection/functional-components/Heading/index.js +0 -5
- package/dist/collection/internal/functional-components/form-field/custom-suggestions.test.js +0 -55
- package/dist/collection/internal/functional-components/form-field/field-control.test.js +0 -57
- package/dist/collection/internal/functional-components/form-field/input-shell.test.js +0 -43
- package/dist/collection/internal/functional-components/form-field/select.test.js +0 -140
- package/dist/collection/internal/functional-components/form-field/snapshot.test.js +0 -43
- package/dist/collection/internal/functional-components/form-field/textarea.test.js +0 -18
- package/dist/collection/internal/functional-components/popover/snapshot.test.js +0 -15
- package/dist/collection/internal/functional-components/span/snapshot.test.js +0 -70
- package/dist/collection/internal/props/hints/index.js +0 -4
- package/dist/collection/internal/props/pagination-label.js +0 -6
- package/dist/collection/schema/components/input.js +0 -4
- package/dist/collection/schema/props/variant/spin.js +0 -8
- package/dist/collection/schema/props/variant-quote.js +0 -11
- package/dist/collection/schema/validators/window.js +0 -4
- package/dist/components/align.js +0 -4
- package/dist/components/api.js +0 -4
- package/dist/components/api2.js +0 -4
- package/dist/components/common.js +0 -4
- package/dist/components/isArray.js +0 -4
- package/dist/components/kol-tooltip-wc.d.ts +0 -11
- package/dist/components/kol-tooltip-wc.js +0 -4
- package/dist/components/variant.js +0 -4
- package/dist/esm/align-DsFuqEf5.js +0 -20
- package/dist/esm/api-CvPkoAAG.js +0 -67
- package/dist/esm/component-CySyXSru.js +0 -19
- package/dist/esm/component-DqHI-AwD.js +0 -27
- package/dist/esm/component-DxddScWx.js +0 -34
- package/dist/esm/component-YhEwg1LK.js +0 -11
- package/dist/esm/href-OaK1sDT5.js +0 -9
- package/dist/esm/isArray-CcrBs4JM.js +0 -156
- package/dist/esm/kol-tooltip-wc.entry.js +0 -80
- package/dist/esm/label-BNtqGdMQ.js +0 -35
- package/dist/esm/label-with-expert-slot-aAOUzLo3.js +0 -8
- package/dist/esm/rows-CUHDEUm9.js +0 -8
- package/dist/esm/unique-nav-labels-Bh3w7dCH.js +0 -19
- package/dist/kolibri/align-DsFuqEf5.js +0 -4
- package/dist/kolibri/api-B9mpTRGa.js +0 -4
- package/dist/kolibri/api-CvPkoAAG.js +0 -4
- package/dist/kolibri/api-hAvZrw9X.js +0 -4
- package/dist/kolibri/app-globals-Dff_iJYF.js +0 -4
- package/dist/kolibri/aria-labelledby-BRToXqsQ.js +0 -4
- package/dist/kolibri/base-7FEvBJ3L.js +0 -4
- package/dist/kolibri/base-COT79ELt.js +0 -4
- package/dist/kolibri/base-CsJWjTJl.js +0 -4
- package/dist/kolibri/base-Df1bwC8d.js +0 -4
- package/dist/kolibri/base-web-component-Bcoukts3.js +0 -4
- package/dist/kolibri/base-web-component-C1XSz7ML.js +0 -4
- package/dist/kolibri/base-web-component-cTyj95G-.js +0 -4
- package/dist/kolibri/behavior-BMW-_4Oy.js +0 -4
- package/dist/kolibri/behavior-BlS6DO8T.js +0 -4
- package/dist/kolibri/behavior-Zr6qAX7F.js +0 -4
- package/dist/kolibri/bootstrap-DTVsVq0w.js +0 -4
- package/dist/kolibri/color-9CMp_pOq.js +0 -4
- package/dist/kolibri/common-D03JQJgy.js +0 -4
- package/dist/kolibri/component-BkjWlzLc.js +0 -4
- package/dist/kolibri/component-BmJGOcby.js +0 -4
- package/dist/kolibri/component-C_Te18y_.js +0 -4
- package/dist/kolibri/component-CySyXSru.js +0 -4
- package/dist/kolibri/component-DHl33p9J.js +0 -4
- package/dist/kolibri/component-DeWynlzi.js +0 -4
- package/dist/kolibri/component-DqHI-AwD.js +0 -4
- package/dist/kolibri/component-DxddScWx.js +0 -4
- package/dist/kolibri/component-DzVHCXnG.js +0 -4
- package/dist/kolibri/component-Ik_-HAMT.js +0 -4
- package/dist/kolibri/component-YhEwg1LK.js +0 -4
- package/dist/kolibri/contrast-BK5uVXeb.js +0 -4
- package/dist/kolibri/controller-Bf-CAo4Q.js +0 -4
- package/dist/kolibri/dev.utils-BgjegQC8.js +0 -4
- package/dist/kolibri/disabled-BaPgTuFO.js +0 -4
- package/dist/kolibri/element-focus-Cp994Rrk.js +0 -4
- package/dist/kolibri/field-control-Brx62dJV.js +0 -4
- package/dist/kolibri/group-Ce5pMiZJ.js +0 -4
- package/dist/kolibri/has-closer-C9L79ect.js +0 -4
- package/dist/kolibri/href-OaK1sDT5.js +0 -4
- package/dist/kolibri/i18n-DRQl0u--.js +0 -4
- package/dist/kolibri/input-DjQorwQ5.js +0 -4
- package/dist/kolibri/input-container-RSmfcRgK.js +0 -4
- package/dist/kolibri/isArray-CcrBs4JM.js +0 -4
- package/dist/kolibri/item-2cprk9ut.js +0 -4
- package/dist/kolibri/item-Bfk2xd-D.js +0 -4
- package/dist/kolibri/item-D9_O5WAR.js +0 -4
- package/dist/kolibri/item-DMWn_IlJ.js +0 -4
- package/dist/kolibri/kol-tooltip-wc.entry.js +0 -4
- package/dist/kolibri/label-BNtqGdMQ.js +0 -4
- package/dist/kolibri/label-with-expert-slot-aAOUzLo3.js +0 -4
- package/dist/kolibri/level-Df663c7y.js +0 -4
- package/dist/kolibri/link-target-C7_smSbV.js +0 -4
- package/dist/kolibri/links-B0xbzBwU.js +0 -4
- package/dist/kolibri/multiple-CYHm7rd3.js +0 -4
- package/dist/kolibri/name-m3owaZxH.js +0 -4
- package/dist/kolibri/number-value-CMedWR58.js +0 -4
- package/dist/kolibri/open-DCGNTmvC.js +0 -4
- package/dist/kolibri/options-CR431ims.js +0 -4
- package/dist/kolibri/orientation-C9FRNmPD.js +0 -4
- package/dist/kolibri/placeholder-Bwzvbwhh.js +0 -4
- package/dist/kolibri/read-only-C5fDsZVK.js +0 -4
- package/dist/kolibri/required-CC0212MQ.js +0 -4
- package/dist/kolibri/resolve-props-47S-r31C.js +0 -4
- package/dist/kolibri/resolve-props-CnHCiXuG.js +0 -4
- package/dist/kolibri/rows-CUHDEUm9.js +0 -4
- package/dist/kolibri/smart-button-BHM06d-t.js +0 -4
- package/dist/kolibri/spell-check-DiSedaOR.js +0 -4
- package/dist/kolibri/src-CsLEg--w.js +0 -4
- package/dist/kolibri/step-BxSThOke.js +0 -4
- package/dist/kolibri/suggestions-B79TOsF_.js +0 -4
- package/dist/kolibri/suggestions-C38q-5JU.js +0 -4
- package/dist/kolibri/toggle-handler-CQ0FhBmD.js +0 -4
- package/dist/kolibri/unique-nav-labels-Bh3w7dCH.js +0 -4
- package/dist/kolibri/unit-BgjPEae-.js +0 -4
- package/dist/kolibri/value-string-BDfywbme.js +0 -4
- package/dist/kolibri/variant-PJN56KWi.js +0 -4
- package/dist/kolibri/width-CAS8lhOU.js +0 -4
- package/dist/types/components/@else/all/component.d.ts +0 -12
- package/dist/types/components/@else/counter/component.d.ts +0 -9
- package/dist/types/components/_skeleton/web-components/click-button/component.d.ts +0 -14
- package/dist/types/components/component-list.d.ts +0 -7
- package/dist/types/components/heading/validation.d.ts +0 -3
- package/dist/types/components/tooltip/component.d.ts +0 -19
- package/dist/types/functional-components/Heading/index.d.ts +0 -2
- package/dist/types/internal/props/hints/index.d.ts +0 -1
- package/dist/types/internal/props/pagination-label.d.ts +0 -3
- package/dist/types/schema/components/input.d.ts +0 -0
- package/dist/types/schema/props/variant/spin.d.ts +0 -8
- package/dist/types/schema/props/variant-quote.d.ts +0 -7
- package/dist/types/schema/validators/window.d.ts +0 -0
- package/doc/_skeleton.md +0 -79
- /package/dist/{types/internal/functional-components/form-field/custom-suggestions.test.d.ts → collection/schema/props/allow-markdown.js} +0 -0
- /package/dist/{types/internal/functional-components/form-field/field-control.test.d.ts → collection/schema/props/boundary-count.js} +0 -0
- /package/dist/{types/internal/functional-components/form-field/input-shell.test.d.ts → collection/schema/props/has-clear-button.js} +0 -0
- /package/dist/{types/internal/functional-components/form-field/select.test.d.ts → collection/schema/props/high.js} +0 -0
- /package/dist/{types/internal/functional-components/form-field/snapshot.test.d.ts → collection/schema/props/labeled.js} +0 -0
- /package/dist/{types/internal/functional-components/form-field/textarea.test.d.ts → collection/schema/props/low.js} +0 -0
- /package/dist/{types/internal/functional-components/popover/snapshot.test.d.ts → collection/schema/props/min.js} +0 -0
- /package/dist/{types/internal/functional-components/span/snapshot.test.d.ts → collection/schema/props/optimum.js} +0 -0
|
@@ -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{c as n,B as l}from"./base-web-component.js";import{C as a,r}from"./component5.js";import"./common.js";import{l as s}from"./level.js";import{a as c,T as d}from"./behavior.js";import{h}from"./has-closer.js";import{l as k}from"./label.js";import{b as p}from"./bem-registry.js";import{B as f}from"./component.js";import{D as b,u as m,l as u}from"./scroll-lock.js";import{o as _}from"./open.js";import{n as w,c as g}from"./dev.utils.js";import{c as v}from"./element-interaction.js";import{d as y,K as x}from"./events.js";import{h as C}from"./tooltip-open-tracking.js";const z=n("on",{},(function(o){if("object"!=typeof o||null===o)throw Error("Invalid on callbacks: expected object, got "+typeof o);const{onCancel:e,onClose:t,onToggle:i}=o,n={};return"function"==typeof e&&(n.onCancel=e),"function"==typeof t&&(n.onClose=t),"function"==typeof i&&(n.onToggle=i),n})),j={required:[k],optional:[c,z,h,s]},T=p.forBlock("kol-drawer"),I=T("content"),B=T("dialog"),D=(e,t)=>{const{align:i,cardProps:n,expanded:l,handleAnimationEnd:r,handleCancel:s,handleClose:c,headingId:d,label:h,modal:k,refDialog:p,refWrapper:m}=e;return o(f,{block:"kol-drawer"},o(b,{blockClass:B,handleCancel:s,handleClose:c,label:h,labelledBy:d,modal:k,refDialog:p},o("div",{class:T("wrapper",{[i]:!0,"is-closing":!l,open:l}),onAnimationEnd:r,ref:m},o(a,Object.assign({},n),o("div",{class:I},t)))))},O=()=>{},L=e(class extends l{constructor(o){super(!1),!1!==o&&this.__registerHost(),this.__attachShadow(),this.ariaDescriptionId=w(),this.expanded=!1,this.headingId=g("drawer-heading"),this.modal=!0,this.dialogRef=v(),this.wrapperRef=v(),this.cardCloseButtonRef=v(),this.cardCloseTooltipBehavior=new d(this.stateAccess),this._hasCloser=!1,this._level=0,this.handleAnimationEnd=o=>{var e,t;o.animationName.includes("slideOut")&&(null===(t=null===(e=this.dialogRef.el)||void 0===e?void 0:e.close)||void 0===t||t.call(e))},this.handleCancel=o=>{var e,t;C(o),o.defaultPrevented||(null===(t=(e=this.getRenderProp("on")).onCancel)||void 0===t||t.call(e,o),o.defaultPrevented||this.host&&!y(this.host,x.cancel)&&o.preventDefault())},this.handleClose=o=>{var e,t;if(o.target!==this.dialogRef.el)return;m(this),this.closeDrawer();const i=this.getRenderProp("on");null===(e=i.onClose)||void 0===e||e.call(i),null===(t=i.onToggle)||void 0===t||t.call(i,!1),this.host&&(y(this.host,x.close),y(this.host,x.toggle))},this.handleCardClose=()=>{this.cardCloseTooltipBehavior.hideTooltip(),this.closeDrawer()}}watchAlign(o){c.apply(o,(o=>this.setRenderProp("align",o)))}watchHasCloser(o){h.apply(o,(o=>this.setRenderProp("hasCloser",o)))}watchLabel(o){k.apply(o,(o=>this.setRenderProp("label",o)))}watchLevel(o){s.apply(o,(o=>this.setRenderProp("level",o)))}watchOn(o){z.apply(o,(o=>this.setRenderProp("on",o)))}watchOpen(o){_.apply(o,(o=>{this.setState("expanded",o),this.dialogRef.el&&this.openOrCloseBasedOnState()}))}async show(o=!1){this.showDrawer(o)}async showModal(){await this.show(!0)}async open(){await this.show(!1)}async close(){this.closeDrawer()}componentWillLoad(){this.initRenderProps(j),this.cardCloseButtonProps=r(this.host),this.cardCloseTooltipBehavior.componentWillLoad({label:this.cardCloseButtonProps.label,align:this.cardCloseButtonProps.tooltipAlign}),this.watchAlign(this._align),this.watchHasCloser(this._hasCloser),this.watchLabel(this._label),this.watchLevel(this._level),this.watchOn(this._on),this.watchOpen(this._open)}componentDidLoad(){this.openOrCloseBasedOnState()}componentDidRender(){this.cardCloseButtonRef.el&&this.cardCloseTooltipBehavior.syncListeners(void 0,this.cardCloseButtonRef.el,!0)}disconnectedCallback(){m(this),this.cardCloseTooltipBehavior.destroy()}showDrawer(o){var e,t,i,n;const l=this.dialogRef.el;(null==l?void 0:l.open)||(this.setState("modal",o),this.setState("expanded",!0),o?(null===(e=null==l?void 0:l.showModal)||void 0===e||e.call(l),l&&u(this)):null===(t=null==l?void 0:l.show)||void 0===t||t.call(l),null===(n=(i=this.getRenderProp("on")).onToggle)||void 0===n||n.call(i,!0),this.host&&y(this.host,x.toggle))}closeDrawer(){var o,e;this.setState("expanded",!1);const t=this.wrapperRef.el;t&&"none"===window.getComputedStyle(t).animationName&&(null===(e=null===(o=this.dialogRef.el)||void 0===o?void 0:o.close)||void 0===e||e.call(o))}openOrCloseBasedOnState(){this.getState("expanded")?this.showDrawer(this.getState("modal")):this.closeDrawer()}buildCardProps(){return{ariaDescriptionId:this.getState("ariaDescriptionId"),closeButtonProps:this.cardCloseButtonProps,handleBlur:O,handleClose:this.handleCardClose,handleFocus:O,hasCloser:this.getRenderProp("hasCloser"),headingId:this.getState("headingId"),href:"",label:this.getRenderProp("label"),level:this.getRenderProp("level"),on:{},refCloseButton:this.cardCloseButtonRef,refCta:O,refTooltip:this.cardCloseTooltipBehavior.setTooltipElementRef,target:""}}render(){return o(t,{key:"07d13dbcc9120fc12a5042a590819d8830df2767"},o(D,{key:"1c90e25e99496b6f30a35ec8bb9c4a87cd2c3254",align:this.getRenderProp("align"),ariaDescriptionId:this.getState("ariaDescriptionId"),cardProps:this.buildCardProps(),expanded:this.getState("expanded"),handleAnimationEnd:this.handleAnimationEnd,handleCancel:this.handleCancel,handleClose:this.handleClose,hasCloser:this.getRenderProp("hasCloser"),headingId:this.getState("headingId"),label:this.getRenderProp("label"),level:this.getRenderProp("level"),modal:this.getState("modal"),on:this.getRenderProp("on"),refDialog:this.dialogRef,refWrapper:this.wrapperRef},o("slot",{key:"b19de620e992491f65de6681cdab5ca1f4e4ac0e"})))}get host(){return this}static get watchers(){return{_align:[{watchAlign:0}],_hasCloser:[{watchHasCloser:0}],_label:[{watchLabel:0}],_level:[{watchLevel:0}],_on:[{watchOn:0}],_open:[{watchOpen: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; } .kol-span .kol-span__label--hide-label .kol-span__label { display: none; } 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=1793002577585"); src: url("kolicons.eot?t=1793002577585#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1793002577585") format("woff2"), url("kolicons.woff?t=1793002577585") format("woff"), url("kolicons.ttf?t=1793002577585") format("truetype"), url("kolicons.svg?t=1793002577585#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-card .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-card :host { display: inline-block; } .kol-card .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-card .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-card .kol-button__interactive-element::before { content: ""; } .kol-card .kol-button__text { flex: 1 0 100%; } .kol-card .kol-button { } .kol-card .kol-button__tooltip { height: 0; } .kol-card .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-card .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-card { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); display: grid; height: 100%; overflow: visible; grid-template-areas: "header close" "content content"; grid-template-columns: 1fr min-content; grid-template-rows: min-content 1fr; } .kol-card__header { align-self: start; grid-area: header; } .kol-card__content { align-self: stretch; grid-area: content; } .kol-card__close-button { grid-area: close; } .kol-card:has(.kol-card__link) { position: relative; } .kol-card__link::after { position: absolute; inset: 0; content: ""; cursor: pointer; } .kol-drawer__dialog { padding: 0; border: none; overscroll-behavior: contain; } .kol-drawer__wrapper { position: fixed; overflow: auto; overscroll-behavior: contain; } .kol-drawer__wrapper--left, .kol-drawer__wrapper--right { top: 0; max-width: 100vw; height: 100vh; } .kol-drawer__wrapper--left .kol-drawer__content, .kol-drawer__wrapper--right .kol-drawer__content { height: 100%; } .kol-drawer__wrapper--left { left: 0; } .kol-drawer__wrapper--right { right: 0; } .kol-drawer__wrapper--bottom, .kol-drawer__wrapper--top { left: 0; width: 100vw; max-height: 100vh; } .kol-drawer__wrapper--bottom .kol-drawer__content, .kol-drawer__wrapper--top .kol-drawer__content { width: 100%; } .kol-drawer__wrapper--bottom { bottom: 0; } .kol-drawer__wrapper--top { top: 0; } .kol-drawer__content { position: relative; } .kol-drawer__dialog .kol-card__content { overflow-y: auto; overscroll-behavior: contain; } }'}}},[801,"kol-drawer",{_align:[1],_hasCloser:[4,"_has-closer"],_label:[1],_level:[2],_on:[16],_open:[4],ariaDescriptionId:[32],expanded:[32],headingId:[32],modal:[32],show:[64],showModal:[64],open:[64],close:[64]},void 0,{_align:[{watchAlign:0}],_hasCloser:[{watchHasCloser:0}],_label:[{watchLabel:0}],_level:[{watchLevel:0}],_on:[{watchOn:0}],_open:[{watchOpen:0}]}]),E=L,A=function(){"undefined"!=typeof customElements&&["kol-drawer"].forEach((o=>{"kol-drawer"===o&&(customElements.get(i(o))||customElements.define(i(o),L))}))};export{E as KolDrawer,A as defineCustomElement}
|
|
4
|
+
import{h as o,proxyCustomElement as e,Host as t,transformTag as i}from"@stencil/core/internal/client";import{B as n}from"./base-web-component.js";import{C as l,r as a}from"./component8.js";import{b as r}from"./bem-registry.js";import{l as s}from"./level.js";import{a as c,T as d}from"./behavior.js";import{c as h,r as k}from"./props-from-config.js";import{h as p}from"./has-closer.js";import{l as f}from"./label-lang-segment.js";import{B as b}from"./component.js";import{D as m,u,l as _}from"./scroll-lock.js";import{o as w}from"./open.js";import{n as g,c as v}from"./dev.utils.js";import{c as y}from"./element-interaction.js";import{d as x,K as C}from"./events.js";import{h as z}from"./tooltip-open-tracking.js";const j=h("on",{},(function(o){if("object"!=typeof o||null===o)throw Error("Invalid on callbacks: expected object, got "+typeof o);const{onCancel:e,onClose:t,onToggle:i}=o,n={};return"function"==typeof e&&(n.onCancel=e),"function"==typeof t&&(n.onClose=t),"function"==typeof i&&(n.onToggle=i),n})),T={required:[f],optional:[c,j,p,s]},I=r.forBlock("kol-drawer"),D=I("content"),B=I("dialog"),O=(e,t)=>{const{align:i,cardProps:n,expanded:a,handleAnimationEnd:r,handleCancel:s,handleClose:c,headingId:d,label:h,modal:p,refDialog:f,refWrapper:u}=k(T,e);return o(b,{block:"kol-drawer"},o(m,{blockClass:B,handleCancel:s,handleClose:c,label:h,labelledBy:d,modal:p,refDialog:f},o("div",{class:I("wrapper",{[i]:!0,"is-closing":!a,open:a}),onAnimationEnd:r,ref:u},o(l,Object.assign({},n),o("div",{class:D},t)))))},L=e(class extends n{constructor(o){super(!1),!1!==o&&this.__registerHost(),this.__attachShadow(),this.ariaDescriptionId=g(),this.expanded=!1,this.headingId=v("drawer-heading"),this.modal=!0,this.dialogRef=y(),this.wrapperRef=y(),this.cardCloseButtonRef=y(),this.cardCloseTooltipBehavior=new d(this.stateAccess),this.propsConfig=T,this._align=void 0,this._hasCloser=!1,this._level=0,this._on=void 0,this._open=void 0,this.handleAnimationEnd=o=>{var e,t;o.animationName.includes("slideOut")&&(null===(t=null===(e=this.dialogRef.el)||void 0===e?void 0:e.close)||void 0===t||t.call(e))},this.handleCancel=o=>{var e,t;z(o),o.defaultPrevented||(null===(t=(e=this.getRenderProp("on")).onCancel)||void 0===t||t.call(e,o),o.defaultPrevented||this.host&&!x(this.host,C.cancel)&&o.preventDefault())},this.handleClose=o=>{var e,t;if(o.target!==this.dialogRef.el)return;u(this),this.closeDrawer();const i=this.getRenderProp("on");null===(e=i.onClose)||void 0===e||e.call(i),null===(t=i.onToggle)||void 0===t||t.call(i,!1),this.host&&(x(this.host,C.close),x(this.host,C.toggle))},this.handleCardClose=()=>{this.cardCloseTooltipBehavior.hideTooltip(),this.closeDrawer()}}watchAlign(o){c.apply(o,(o=>this.setRenderProp("align",o)))}watchHasCloser(o){p.apply(o,(o=>this.setRenderProp("hasCloser",o)))}watchLabel(o){f.apply(o,(o=>this.setRenderProp("label",o)),this.isRequired("label"))}watchLevel(o){s.apply(o,(o=>this.setRenderProp("level",o)))}watchOn(o){j.apply(o,(o=>this.setRenderProp("on",o)))}watchOpen(o){w.apply(o,(o=>{this.setState("expanded",o),this.dialogRef.el&&this.openOrCloseBasedOnState()}))}show(o=!1){return this.showDrawer(o),Promise.resolve()}async showModal(){await this.show(!0)}async open(){await this.show(!1)}close(){return this.closeDrawer(),Promise.resolve()}componentWillLoad(){this.cardCloseButtonProps=a(this.host),this.cardCloseTooltipBehavior.componentWillLoad({label:this.cardCloseButtonProps.label,align:"left"}),this.watchAlign(this._align),this.watchHasCloser(this._hasCloser),this.watchLabel(this._label),this.watchLevel(this._level),this.watchOn(this._on),this.watchOpen(this._open)}componentDidLoad(){this.openOrCloseBasedOnState()}componentDidRender(){this.cardCloseButtonRef.el&&this.cardCloseTooltipBehavior.syncListeners(void 0,this.cardCloseButtonRef.el,!0)}disconnectedCallback(){u(this),this.cardCloseTooltipBehavior.destroy()}showDrawer(o){var e,t,i,n;const l=this.dialogRef.el;(null==l?void 0:l.open)||(this.setState("modal",o),this.setState("expanded",!0),o?(null===(e=null==l?void 0:l.showModal)||void 0===e||e.call(l),l&&_(this)):null===(t=null==l?void 0:l.show)||void 0===t||t.call(l),null===(n=(i=this.getRenderProp("on")).onToggle)||void 0===n||n.call(i,!0),this.host&&x(this.host,C.toggle))}closeDrawer(){var o,e;this.setState("expanded",!1);const t=this.wrapperRef.el;t&&"none"===window.getComputedStyle(t).animationName&&(null===(e=null===(o=this.dialogRef.el)||void 0===o?void 0:o.close)||void 0===e||e.call(o))}openOrCloseBasedOnState(){this.getState("expanded")?this.showDrawer(this.getState("modal")):this.closeDrawer()}buildCardProps(){return{ariaDescriptionId:this.getState("ariaDescriptionId"),closeButtonProps:this.cardCloseButtonProps,handleClose:this.handleCardClose,hasCloser:this.getRenderProp("hasCloser"),headingId:this.getState("headingId"),label:this.getRenderProp("label"),level:this.getRenderProp("level"),refCloseButton:this.cardCloseButtonRef,refTooltip:this.cardCloseTooltipBehavior.setTooltipElementRef}}render(){return o(t,{key:"b03a0eac0ec255106420c0e63cbfb3d0bdfc93f1"},o(O,{key:"8666e9b1351925f6bf64a3e93838046533da4965",align:this.getRenderProp("align"),ariaDescriptionId:this.getState("ariaDescriptionId"),cardProps:this.buildCardProps(),expanded:this.getState("expanded"),handleAnimationEnd:this.handleAnimationEnd,handleCancel:this.handleCancel,handleClose:this.handleClose,hasCloser:this.getRenderProp("hasCloser"),headingId:this.getState("headingId"),label:this.getRenderProp("label"),level:this.getRenderProp("level"),modal:this.getState("modal"),on:this.getRenderProp("on"),refDialog:this.dialogRef,refWrapper:this.wrapperRef},o("slot",{key:"38962dd91691df35f9c75fde259d03344bea512b"})))}get host(){return this}static get watchers(){return{_align:[{watchAlign:0}],_hasCloser:[{watchHasCloser:0}],_label:[{watchLabel:0}],_level:[{watchLevel:0}],_on:[{watchOn:0}],_open:[{watchOpen: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=1794497133718"); src: url("kolicons.eot?t=1794497133718#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794497133718") format("woff2"), url("kolicons.woff?t=1794497133718") format("woff"), url("kolicons.ttf?t=1794497133718") format("truetype"), url("kolicons.svg?t=1794497133718#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-card .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-card :host { display: inline-block; } .kol-card .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-card .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-card .kol-button__interactive-element::before { content: ""; } .kol-card .kol-button__text { flex: 1 0 100%; } .kol-card .kol-button { } .kol-card .kol-button__tooltip { height: 0; } .kol-card .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-card .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-card { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); display: grid; height: 100%; overflow: visible; grid-template-areas: "header close" "content content"; grid-template-columns: 1fr min-content; grid-template-rows: min-content 1fr; } .kol-card__header { align-self: start; grid-area: header; } .kol-card__content { align-self: stretch; grid-area: content; } .kol-card__close-button { grid-area: close; } .kol-card:has(.kol-card__link) { position: relative; } .kol-card__link::after { position: absolute; inset: 0; content: ""; cursor: pointer; } .kol-drawer__dialog { padding: 0; border: none; overscroll-behavior: contain; } .kol-drawer__wrapper { position: fixed; overflow: auto; overscroll-behavior: contain; } .kol-drawer__wrapper--left, .kol-drawer__wrapper--right { top: 0; max-width: 100vw; height: 100vh; } .kol-drawer__wrapper--left .kol-drawer__content, .kol-drawer__wrapper--right .kol-drawer__content { height: 100%; } .kol-drawer__wrapper--left { left: 0; } .kol-drawer__wrapper--right { right: 0; } .kol-drawer__wrapper--bottom, .kol-drawer__wrapper--top { left: 0; width: 100vw; max-height: 100vh; } .kol-drawer__wrapper--bottom .kol-drawer__content, .kol-drawer__wrapper--top .kol-drawer__content { width: 100%; } .kol-drawer__wrapper--bottom { bottom: 0; } .kol-drawer__wrapper--top { top: 0; } .kol-drawer__content { position: relative; } .kol-drawer__dialog .kol-card__content { overflow-y: auto; overscroll-behavior: contain; } }'}}},[801,"kol-drawer",{_align:[1],_hasCloser:[4,"_has-closer"],_label:[1],_level:[2],_on:[16],_open:[4],ariaDescriptionId:[32],expanded:[32],headingId:[32],modal:[32],show:[64],showModal:[64],open:[64],close:[64]},void 0,{_align:[{watchAlign:0}],_hasCloser:[{watchHasCloser:0}],_label:[{watchLabel:0}],_level:[{watchLevel:0}],_on:[{watchOn:0}],_open:[{watchOpen:0}]}]),E=L,A=function(){"undefined"!=typeof customElements&&["kol-drawer"].forEach((o=>{"kol-drawer"===o&&(customElements.get(i(o))||customElements.define(i(o),L))}))};export{E as KolDrawer,A 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{c as n,e as l,a as r,d as a,B as s}from"./base-web-component.js";import{s as c}from"./common.js";import{t as d}from"./i18n.js";import{b as k}from"./bem-registry.js";import{B as f}from"./component.js";import{A as h}from"./component2.js";import{L as m,l as b,b as p}from"./api.js";import{n as u,c as g}from"./dev.utils.js";import{h as _}from"./href.js";import{l as y}from"./label-with-expert-slot.js";import{d as x,K as v}from"./events.js";function w(o){if("object"!=typeof o||null===o)return!1;const{message:e,selector:t}=o;return"string"==typeof e&&("string"==typeof t||"function"==typeof t)}const T=n("errorList",[],(o=>l(o)),(o=>o.every(w))),z=r(),L=n("requiredText",!0,(function(o){if("boolean"==typeof o||"string"==typeof o)return o;throw Error("Invalid requiredText: expected boolean or string, got "+typeof o)})),I={optional:[T,z,L]},j=k.forBlock("kol-form"),q=j("alert"),B=j("link"),E=({alertHeadingId:e,closerAriaDescriptionId:t,errorLinkItems:i})=>o(h,{alert:!1,class:q,closerAriaDescriptionId:t,handleCloserClick:()=>{},hasCloser:!1,headingId:e,label:d("kol-error-list-message"),level:0,refCloserButton:()=>{},refCloserTooltip:()=>{},type:"error",variant:"card"},o("nav",{"aria-label":d("kol-error-list")},o("ul",null,i.map(((e,t)=>o("li",{key:t},o("span",{class:B},o(m,Object.assign({},e.fcProps))))))))),C=k.forBlock("kol-form"),A=C("form"),G=C("mandatory-fields-hint"),R=({alertHeadingId:e,closerAriaDescriptionId:t,errorLinkItems:i,handleReset:n,handleSubmit:l,requiredText:r})=>{const a=!0===r?d("kol-form-description"):"string"==typeof r&&r.length>0?r:"";return o(f,{block:"kol-form"},i.length>0&&o(E,{alertHeadingId:e,closerAriaDescriptionId:t,errorLinkItems:i}),o("form",{class:A,method:"post",onSubmit:l,onReset:n,noValidate:!0},a.length>0&&o("p",{class:G},a),o("slot",null)))},D={behavior:"smooth",block:"nearest"},H=e(class extends s{constructor(o){super(!1),!1!==o&&this.__registerHost(),this.__attachShadow(),this.errorLinkItems=[],this.alertHeadingId=g("alert-heading"),this.closerAriaDescriptionId=u(),this._requiredText=!0,this.handleSubmit=o=>{o.preventDefault();const e=this.getRenderProp("on").onSubmit;"function"==typeof e&&e(o),this.host&&x(this.host,v.submit)},this.handleReset=o=>{o.preventDefault();const e=this.getRenderProp("on").onReset;"function"==typeof e&&e(o),this.host&&x(this.host,v.reset)},this.focusErrorTarget=(o,e)=>{const t=document.querySelector(o);t&&"function"==typeof t.focus&&t.focus(null!=e?e:D)}}watchErrorList(o){T.apply(o,(o=>{this.setRenderProp("errorList",o),this.errorLinkItems=o.map((o=>((o,e)=>{const t=a(b);let i;return t.tabIndex=void 0,_.apply("",(o=>t.href=o)),y.apply(o.message,(o=>t.label=o)),p.apply({onClick:"string"==typeof o.selector?()=>e(o.selector+"",o.options):o.selector},(o=>t.on=o)),t.ariaCurrent="",t.ariaDescriptionId=u(),t.expertSlot=""===o.message,t.handleAnchorClick=o=>{var e;const n=null===(e=t.on)||void 0===e?void 0:e.onClick;"function"==typeof n&&(c(o,i),n(o,t.href))},t.refAnchor=o=>{i=o},t.refTooltip=()=>{},{fcProps:t,focus:o=>null==i?void 0:i.focus(o)}})(o,this.focusErrorTarget)))}))}watchOn(o){z.apply(o,(o=>this.setRenderProp("on",o)))}watchRequiredText(o){L.apply(o,(o=>this.setRenderProp("requiredText",o)))}async focusErrorList(o){setTimeout((()=>{var e;null===(e=this.errorLinkItems[0])||void 0===e||e.focus(null!=o?o:D)}),250)}componentWillLoad(){this.initRenderProps(I),this.watchErrorList(this._errorList),this.watchOn(this._on),this.watchRequiredText(this._requiredText)}render(){return o(t,{key:"3caf5b430e7c2a733e30a9a23205dd32c098b2cf"},o(R,{key:"70f5cdf9d1c03cd20b2e130cf589c74486daed16",alertHeadingId:this.alertHeadingId,closerAriaDescriptionId:this.closerAriaDescriptionId,errorList:this.getRenderProp("errorList"),errorLinkItems:this.errorLinkItems,handleReset:this.handleReset,handleSubmit:this.handleSubmit,on:this.getRenderProp("on"),requiredText:this.getRenderProp("requiredText")}))}get host(){return this}static get watchers(){return{_errorList:[{watchErrorList:0}],_on:[{watchOn:0}],_requiredText:[{watchRequiredText: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; } .kol-span .kol-span__label--hide-label .kol-span__label { display: none; } 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=1793002577585"); src: url("kolicons.eot?t=1793002577585#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1793002577585") format("woff2"), url("kolicons.woff?t=1793002577585") format("woff"), url("kolicons.ttf?t=1793002577585") format("truetype"), url("kolicons.svg?t=1793002577585#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-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; } }'}}},[545,"kol-form",{_errorList:[16],_on:[16],_requiredText:[8,"_required-text"],errorLinkItems:[32],focusErrorList:[64]},void 0,{_errorList:[{watchErrorList:0}],_on:[{watchOn:0}],_requiredText:[{watchRequiredText:0}]}]),S=H,O=function(){"undefined"!=typeof customElements&&["kol-form"].forEach((o=>{"kol-form"===o&&(customElements.get(i(o))||customElements.define(i(o),H))}))};export{S as KolForm,O as defineCustomElement}
|
|
4
|
+
import{h as o,proxyCustomElement as e,Host as t,transformTag as i}from"@stencil/core/internal/client";import{B as n}from"./base-web-component.js";import{b as l,s as r}from"./bem-registry.js";import{c as a,e as s,a as c,d}from"./props-from-config.js";import{t as k}from"./i18n.js";import{B as f}from"./component.js";import{A as h}from"./component2.js";import{L as m,l as b,b as p}from"./component6.js";import{n as u,c as g}from"./dev.utils.js";import{h as _}from"./href.js";import{l as y}from"./label-with-expert-slot.js";import{d as x,K as v}from"./events.js";function w(o){if("object"!=typeof o||null===o)return!1;const{message:e,selector:t}=o;return"string"==typeof e&&("string"==typeof t||"function"==typeof t)}const T=a("errorList",[],(o=>s(o)),(o=>o.every(w))),z=c(),L=a("requiredText",!0,(function(o){if("boolean"==typeof o||"string"==typeof o)return o;throw Error("Invalid requiredText: expected boolean or string, got "+typeof o)})),I={optional:[T,z,L]},j=l.forBlock("kol-form"),q=j("alert"),B=j("link"),E=({alertHeadingId:e,closerAriaDescriptionId:t,errorLinkItems:i})=>o(h,{alert:!1,class:q,closerAriaDescriptionId:t,handleCloserClick:()=>{},hasCloser:!1,headingId:e,label:k("kol-error-list-message"),level:0,refCloserButton:()=>{},refCloserTooltip:()=>{},type:"error",variant:"card"},o("nav",{"aria-label":k("kol-error-list")},o("ul",null,i.map(((e,t)=>o("li",{key:t},o("span",{class:B},o(m,Object.assign({},e.fcProps))))))))),C=l.forBlock("kol-form"),A=C("form"),G=C("mandatory-fields-hint"),R=({alertHeadingId:e,closerAriaDescriptionId:t,errorLinkItems:i,handleReset:n,handleSubmit:l,requiredText:r})=>{const a=!0===r?k("kol-form-description"):"string"==typeof r&&r.length>0?r:"";return o(f,{block:"kol-form"},i.length>0&&o(E,{alertHeadingId:e,closerAriaDescriptionId:t,errorLinkItems:i}),o("form",{class:A,method:"post",onSubmit:l,onReset:n,noValidate:!0},a.length>0&&o("p",{class:G},a),o("slot",null)))},D={behavior:"smooth",block:"nearest"},H=e(class extends n{constructor(o){super(!1),!1!==o&&this.__registerHost(),this.__attachShadow(),this.errorLinkItems=[],this.alertHeadingId=g("alert-heading"),this.closerAriaDescriptionId=u(),this.propsConfig=I,this._errorList=void 0,this._on=void 0,this._requiredText=!0,this.handleSubmit=o=>{o.preventDefault();const e=this.getRenderProp("on").onSubmit;"function"==typeof e&&e(o),this.host&&x(this.host,v.submit)},this.handleReset=o=>{o.preventDefault();const e=this.getRenderProp("on").onReset;"function"==typeof e&&e(o),this.host&&x(this.host,v.reset)},this.focusErrorTarget=(o,e)=>{const t=document.querySelector(o);t&&"function"==typeof t.focus&&t.focus(null!=e?e:D)}}watchErrorList(o){T.apply(o,(o=>{this.setRenderProp("errorList",o),this.errorLinkItems=o.map((o=>((o,e)=>{const t=d(b);let i;return t.tabIndex=void 0,_.apply("",(o=>t.href=o)),y.apply(o.message,(o=>t.label=o)),p.apply({onClick:"string"==typeof o.selector?()=>e(o.selector+"",o.options):o.selector},(o=>t.on=o)),t.ariaCurrent="",t.ariaDescriptionId=u(),t.expertSlot=""===o.message,t.handleAnchorClick=o=>{var e;const n=null===(e=t.on)||void 0===e?void 0:e.onClick;"function"==typeof n&&(r(o,i),n(o,t.href))},t.refAnchor=o=>{i=o},t.refTooltip=()=>{},{fcProps:t,focus:o=>null==i?void 0:i.focus(o)}})(o,this.focusErrorTarget)))}))}watchOn(o){z.apply(o,(o=>this.setRenderProp("on",o)))}watchRequiredText(o){L.apply(o,(o=>this.setRenderProp("requiredText",o)))}focusErrorList(o){return setTimeout((()=>{var e;null===(e=this.errorLinkItems[0])||void 0===e||e.focus(null!=o?o:D)}),250),Promise.resolve()}componentWillLoad(){this.watchErrorList(this._errorList),this.watchOn(this._on),this.watchRequiredText(this._requiredText)}render(){return o(t,{key:"113bbd651c41feac5a90bec2d129a69ef9fc970b"},o(R,{key:"c6b480525cc593ff6dc9aa6116228774023b3bcd",alertHeadingId:this.alertHeadingId,closerAriaDescriptionId:this.closerAriaDescriptionId,errorList:this.getRenderProp("errorList"),errorLinkItems:this.errorLinkItems,handleReset:this.handleReset,handleSubmit:this.handleSubmit,on:this.getRenderProp("on"),requiredText:this.getRenderProp("requiredText")}))}get host(){return this}static get watchers(){return{_errorList:[{watchErrorList:0}],_on:[{watchOn:0}],_requiredText:[{watchRequiredText: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=1794497133718"); src: url("kolicons.eot?t=1794497133718#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794497133718") format("woff2"), url("kolicons.woff?t=1794497133718") format("woff"), url("kolicons.ttf?t=1794497133718") format("truetype"), url("kolicons.svg?t=1794497133718#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-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; } }'}}},[545,"kol-form",{_errorList:[16],_on:[16],_requiredText:[8,"_required-text"],errorLinkItems:[32],focusErrorList:[64]},void 0,{_errorList:[{watchErrorList:0}],_on:[{watchOn:0}],_requiredText:[{watchRequiredText:0}]}]),S=H,O=function(){"undefined"!=typeof customElements&&["kol-form"].forEach((o=>{"kol-form"===o&&(customElements.get(i(o))||customElements.define(i(o),H))}))};export{S as KolForm,O 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 l,transformTag as a}from"@stencil/core/internal/client";import{
|
|
4
|
+
import{h as e,proxyCustomElement as o,Host as l,transformTag as a}from"@stencil/core/internal/client";import{B as t}from"./base-web-component.js";import{b as i}from"./bem-registry.js";import{l as r}from"./level.js";import{c as n,b as s,r as d}from"./props-from-config.js";import{l as c}from"./label-with-expert-slot.js";import{c as b}from"./clsx.js";import{r as h}from"./component7.js";const p=n("secondaryHeadline","",s),u={optional:[r,p],required:[c]},k=i.forBlock("kol-heading"),m=i.forBlock("kol-headline"),f=o=>{const{label:l,level:a,secondaryHeadline:t}=d(u,o),i=function(e){return e>=1&&e<=6?"h"+e:"strong"}(a);return t?e("hgroup",{class:k({group:!0})},e(i,{class:m({[i]:!0,group:!0,primary:!0})},h(l),e("slot",{name:"expert",slot:"expert"})),e("p",{class:m({group:!0,secondary:!0})},t)):e(i,{class:b(k(),m({[i]:!0,single:!0}))},h(l),e("slot",{name:"expert",slot:"expert"}))},y=o(class extends t{constructor(e){super(!1),!1!==e&&this.__registerHost(),this.__attachShadow(),this.propsConfig=u,this._level=0,this._secondaryHeadline=void 0}watchLabel(e){c.apply(e,(e=>this.setRenderProp("label",e)),this.isRequired("label"))}watchLevel(e){r.apply(e,(e=>this.setRenderProp("level",e)))}watchSecondaryHeadline(e){p.apply(e,(e=>this.setRenderProp("secondaryHeadline",e)))}componentWillLoad(){c.apply(this._label,(e=>this.setRenderProp("label",e)),this.isRequired("label")),r.apply(this._level,(e=>this.setRenderProp("level",e))),p.apply(this._secondaryHeadline,(e=>this.setRenderProp("secondaryHeadline",e)))}render(){return e(l,{key:"6cebe2e9fee74d55286b78c0ca1a7e60334dc630"},e(f,{key:"8aaffa3961fc270b3ac0eebfa42c28ccbae87e3a",label:this.getRenderProp("label"),level:this.getRenderProp("level"),secondaryHeadline:this.getRenderProp("secondaryHeadline")}))}static get watchers(){return{_label:[{watchLabel:0}],_level:[{watchLevel:0}],_secondaryHeadline:[{watchSecondaryHeadline: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-headline--secondary { margin: 0; } }'}}},[545,"kol-heading",{_label:[1],_level:[2],_secondaryHeadline:[1,"_secondary-headline"]},void 0,{_label:[{watchLabel:0}],_level:[{watchLevel:0}],_secondaryHeadline:[{watchSecondaryHeadline:0}]}]),g=y,_=function(){"undefined"!=typeof customElements&&["kol-heading"].forEach((e=>{"kol-heading"===e&&(customElements.get(a(e))||customElements.define(a(e),y))}))};export{g as KolHeading,_ as defineCustomElement}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{proxyCustomElement as o,h as e,Host as n,transformTag as t}from"@stencil/core/internal/client";import{
|
|
4
|
+
import{proxyCustomElement as o,h as e,Host as n,transformTag as t}from"@stencil/core/internal/client";import{B as c}from"./base-web-component.js";import"./bem-registry.js";import{c as i,b as l}from"./props-from-config.js";import{l as r}from"./label.js";import{I as s}from"./component5.js";const a=i("icons","kolicon-logo",l),f={required:[a,r]},b=o(class extends c{constructor(o){super(!1),!1!==o&&this.__registerHost(),this.__attachShadow(),this.propsConfig=f}watchIcons(o){a.apply(o,(o=>this.setRenderProp("icons",o)))}watchLabel(o){r.apply(o,(o=>this.setRenderProp("label",o)),this.isRequired("label"))}componentWillLoad(){a.apply(this._icons,(o=>this.setRenderProp("icons",o))),r.apply(this._label,(o=>this.setRenderProp("label",o)),this.isRequired("label"))}render(){return e(n,{key:"3ee1ef136b46ddbcc2dbb1097f0625edccb641bc"},e(s,{key:"7a82b2f3ca9bb754a78f8eade2f0828b58886d12",icons:this.getRenderProp("icons"),label:this.getRenderProp("label")}))}static get watchers(){return{_icons:[{watchIcons:0}],_label:[{watchLabel:0}]}}static get style(){return{default:'@font-face{font-family:"kolicons";src:url("kolicons.eot?t=1794497133718");src:url("kolicons.eot?t=1794497133718#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794497133718") format("woff2"), url("kolicons.woff?t=1794497133718") format("woff"), url("kolicons.ttf?t=1794497133718") format("truetype"), url("kolicons.svg?t=1794497133718#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}}'}}},[545,"kol-icon",{_icons:[1],_label:[1]},void 0,{_icons:[{watchIcons:0}],_label:[{watchLabel:0}]}]),k=b,h=function(){"undefined"!=typeof customElements&&["kol-icon"].forEach((o=>{"kol-icon"===o&&(customElements.get(t(o))||customElements.define(t(o),b))}))};export{k as KolIcon,h 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{
|
|
4
|
+
import{h as t,proxyCustomElement as o,Host as e,transformTag as i}from"@stencil/core/internal/client";import{B as a}from"./base-web-component.js";import{b as l}from"./bem-registry.js";import{c as r,b as s,a as n,l as c}from"./props-from-config.js";import{s as d}from"./src.js";import{d as h,K as b}from"./events.js";const k=r("alt","",s,(t=>"string"==typeof t)),u=n(),m=r("sizes","",s),p=r("srcset","",s),g={optional:[u,c,m,p],required:[k,d]},_=l.forBlock("kol-image")(),f=o=>{const{alt:e,loading:i,sizes:a,src:l,srcset:r,handleError:s,handleLoad:n}=o;return t("img",{class:_,alt:e,loading:i,sizes:a||void 0,src:l,srcset:r||void 0,onError:t=>s(t),onLoad:t=>n(t)})},y=o(class extends a{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.propsConfig=g,this._loading=void 0,this._sizes=void 0,this._srcset=void 0,this._on=void 0,this.handleError=t=>{var o,e;null===(e=(o=this.getRenderProp("on")).onError)||void 0===e||e.call(o,t),this.host&&h(this.host,b.error,t)},this.handleLoad=t=>{var o,e;null===(e=(o=this.getRenderProp("on")).onLoad)||void 0===e||e.call(o,t),this.host&&h(this.host,b.load,t)}}watchAlt(t){k.apply(t,(t=>this.setRenderProp("alt",t)))}watchLoading(t){c.apply(t,(t=>this.setRenderProp("loading",t)))}watchSizes(t){m.apply(t,(t=>this.setRenderProp("sizes",t)))}watchSrc(t){d.apply(t,(t=>this.setRenderProp("src",t)))}watchSrcset(t){p.apply(t,(t=>this.setRenderProp("srcset",t)))}watchOn(t){u.apply(t,(t=>this.setRenderProp("on",t)))}componentWillLoad(){k.apply(this._alt,(t=>this.setRenderProp("alt",t))),c.apply(this._loading,(t=>this.setRenderProp("loading",t))),u.apply(this._on,(t=>this.setRenderProp("on",t))),m.apply(this._sizes,(t=>this.setRenderProp("sizes",t))),d.apply(this._src,(t=>this.setRenderProp("src",t))),p.apply(this._srcset,(t=>this.setRenderProp("srcset",t)))}render(){return t(e,{key:"b2966bc76760f20d78f1eead98ef9c5fb4970769"},t(f,{key:"a750811353a0428487cb7cc5f7361c629981ccb7",alt:this.getRenderProp("alt"),loading:this.getRenderProp("loading"),sizes:this.getRenderProp("sizes"),src:this.getRenderProp("src"),srcset:this.getRenderProp("srcset"),handleError:this.handleError,handleLoad:this.handleLoad}))}get host(){return this}static get watchers(){return{_alt:[{watchAlt:0}],_loading:[{watchLoading:0}],_sizes:[{watchSizes:0}],_src:[{watchSrc:0}],_srcset:[{watchSrcset:0}],_on:[{watchOn: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-image { display: inline-block; max-width: 100%; max-height: 100%; } }'}}},[545,"kol-image",{_alt:[1],_loading:[1],_sizes:[1],_src:[1],_srcset:[1],_on:[16]},void 0,{_alt:[{watchAlt:0}],_loading:[{watchLoading:0}],_sizes:[{watchSizes:0}],_src:[{watchSrc:0}],_srcset:[{watchSrcset:0}],_on:[{watchOn:0}]}]),w=y,x=function(){"undefined"!=typeof customElements&&["kol-image"].forEach((t=>{"kol-image"===t&&(customElements.get(i(t))||customElements.define(i(t),y))}))};export{w as KolImage,x as defineCustomElement}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as e,proxyCustomElement as t,Host as o,transformTag as i}from"@stencil/core/internal/client";import{a as l,_ as n}from"./tslib.es6.js";import{v as a}from"./access-and-short-key.js";import{c as r}from"./clsx.js";import{i as c,g as s,f as h,B as d,F as k}from"./base-web-component2.js";import"./common.js";import{b}from"./bem-registry.js";import{B as f}from"./component.js";import{I as u}from"./component4.js";import{I as m}from"./input.js";import{F as p}from"./field-control.js";import{a as _,d as g}from"./variant.js";import{c as y,n as w,b as v}from"./base-web-component.js";import{r as x}from"./required.js";import{c as z}from"./dev.utils.js";import{c as j,d as A,a as K}from"./element-interaction.js";import{s as T}from"./controller.js";const q=["button","default","switch"],I=y("value",!0,(e=>e)),L=y("checked",!1,w),B=["checked","indeterminate","unchecked"],V=y("icons",{checked:"kolicon-check",indeterminate:"kolicon-minus",unchecked:"kolicon-cross"},(e=>{if("object"==typeof e&&null!==e&&B.some((t=>(e=>"string"==typeof e&&e.length>0)(e[t]))))return e;throw Error("Expected an object with at least one icon class of checked, indeterminate or unchecked")})),D=y("indeterminate",!1,w),S=["left","right"],H=y("labelAlign","right",(e=>{const t=v(e);if(S.includes(t))return t;throw Error("Invalid label alignment: "+t)})),M=y("variant","default",(e=>{const t=v(e);if(q.includes(t))return t;throw Error("Invalid checkbox variant: "+t)})),O=b.forBlock("kol-checkbox"),P=t=>{var{class:o,variant:i="default",icon:n,inputProps:a}=t,h=l(t,["class","variant","icon","inputProps"]);const{class:d}=a,k=l(a,["class"]);return e(f,Object.assign({component:"label",block:"kol-checkbox",modifiers:Object.assign({"variant-button":"button"===i,"variant-default":"default"===i,"variant-switch":"switch"===i,checked:!!a.checked,indeterminate:!!a.indeterminate,disabled:!!a.disabled,required:!!a.required,touched:!!a.touched},c(a.msg,a.touched)?{[s(a.msg)]:!0}:{}),class:o},h),e(u,{label:"",icons:n,class:O("icon")}),e(m,Object.assign({class:r(O("input"),d)},k,{type:"checkbox"})))},E={required:[...h.required],optional:[...h.optional,_,I,L,V,D,H,x,g,M]},C=t(class extends d{constructor(e){super(!1),!1!==e&&this.__registerHost(),this.__attachShadow(),this.id=z("input-checkbox"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=j(),this._checked=!1,this._hideMsg=!1,this._disabled=!1,this._hideLabel=!1,this._hint="",this._labelAlign="right",this._required=!1,this._tooltipAlign="top",this._touched=!1,this._value=!0,this._variant="default",this.handleCheckboxInput=e=>{this._checked=!this._checked,this._indeterminate=!1,this.handleInput(e,this.getModelValue())},this.handleCheckboxChange=e=>{this.handleChange(e,this.getModelValue())},this.handleCheckboxKeyDown=e=>{this.handleKeyDown(e),T(e,{form:this.host,ref:this.ctaRef.el})},this.handleCheckboxBlur=e=>{this._disabled||this.handleBlur(e)},this.handleLabelMouseDown=e=>{this.inputHasFocus&&e.preventDefault()},this.handleCheckboxMouseDown=e=>{!this.inputHasFocus||e.target instanceof HTMLInputElement||e.preventDefault()},this.initFormAssociation("checkbox",this._name)}watchAccessKey(e){_.apply(e,(e=>this.setRenderProp("accessKey",e))),a(e,this._shortKey)}watchChecked(e){L.apply(e,(e=>this.setRenderProp("checked",e))),this.syncFormAssociatedValue()}watchHideMsg(e){this.applyHideMsg(e)}watchDisabled(e){this.applyDisabled(e)}watchHideLabel(e){this.applyHideLabel(e)}watchHint(e){this.applyHint(e)}watchIcons(e){V.apply(e,(e=>this.setRenderProp("icons",Object.assign(Object.assign({},this.getRenderProp("icons")),e))))}watchInfoPopover(e){this.applyInfoPopover(e)}watchIndeterminate(e){D.apply(e,(e=>this.setRenderProp("indeterminate",e)))}watchLabel(e){this.applyLabel(e)}watchLabelAlign(e){H.apply(e,(e=>this.setRenderProp("labelAlign",e)))}watchMsg(e){this.applyMsg(e)}watchName(e){this.applyName(e)}watchOn(e){this.applyOn(e)}watchRequired(e){x.apply(e,(e=>this.setRenderProp("required",e)))}watchAriaDetails(e){this.applyAriaDetails(e)}watchShortKey(e){g.apply(e,(e=>this.setRenderProp("shortKey",e))),a(this._accessKey,e)}watchSyncValueBySelector(e){this.applySyncValueBySelector(e)}watchTooltipAlign(e){this.applyTooltipAlign(e)}watchTouched(e){this.applyTouched(e)}watchValue(e){null==e?this.setRenderProp("value",e):I.apply(e,(e=>this.setRenderProp("value",e))),this.syncFormAssociatedValue()}watchVariant(e){M.apply(e,(e=>this.setRenderProp("variant",e)))}async getValue(){return this.getModelValue()}async focus(e){}async click(){}componentWillLoad(){this.initRenderProps(E),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.watchRequired(this._required),this.watchChecked(this._checked),this.watchIcons(this._icons),this.watchIndeterminate(this._indeterminate),this.watchValue(this._value),this.watchVariant(this._variant),this.watchLabelAlign(this._labelAlign)}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField()}getModelValue(){return this._checked?this.getRenderProp("value"):null}syncFormAssociatedValue(){this.formAssociation.setFormAssociatedValue(this.getModelValue())}getIcon(){const e=this.getRenderProp("icons");return this.getRenderProp("indeterminate")?e.indeterminate:this.getRenderProp("checked")?e.checked:e.unchecked}getInputProps(){const e=this.getRenderProp("shortKey"),{ariaDescribedBy:t,hasError:o}=this.getAria();return Object.assign(Object.assign({id:this.id,hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),value:this.getRenderProp("value"),accessKey:this.getRenderProp("accessKey")||void 0,disabled:this.getRenderProp("disabled"),name:null==this._name?void 0:this.getRenderProp("name"),ariaDescribedBy:t,required:this.getRenderProp("required"),checked:this.getRenderProp("checked"),indeterminate:this.getRenderProp("indeterminate"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")},e?{"aria-keyshortcuts":e}:{}),{class:r({"visually-hidden":"button"===this.getRenderProp("variant")}),ref:this.ctaRef,onBlur:this.handleCheckboxBlur,onChange:this.handleCheckboxChange,onFocus:this.handleFocus,onInput:this.handleCheckboxInput,onKeyDown:this.handleCheckboxKeyDown,"aria-invalid":o?"true":void 0})}render(){const t=this.getRenderProp("checked"),i=this.getRenderProp("indeterminate"),l=this.getRenderProp("variant"),n=this.getRenderProp("accessKey")||void 0,a=this.getRenderProp("shortKey")||void 0,c=this.getRenderProp("required");return e(o,{key:"3b17e5494e0bcc1d45f032475bc9ac3de294b8ae"},e(k,Object.assign({key:"2e27ff5b66be54b6a521621a91ab51fa0105d416"},this.getFormFieldProps({class:r("kol-input-checkbox",{"kol-input-checkbox--checked":t,"kol-input-checkbox--indeterminate":i,["kol-input-checkbox--variant-"+l]:!0,["kol-input-checkbox--label-align-"+this.getRenderProp("labelAlign")]:!0}),accessKey:n,shortKey:a,required:c,renderNoLabel:!0,renderNoTooltip:!0})),e(p,Object.assign({key:"0dff26ed7465ded8aef7e0d4c50f2d6c2481f61a",class:r("kol-input-checkbox__field-control",{"kol-input-checkbox__field-control--checked":t,"kol-input-checkbox__field-control--indeterminate":i,["kol-input-checkbox__field-control--variant-"+l]:!0}),id:this.id,label:this.getRenderProp("label"),hint:this.getRenderProp("hint"),hideLabel:this.getRenderProp("hideLabel"),labelAlign:this.getRenderProp("labelAlign"),infoPopover:this.getInfoPopover(),accessKey:n,shortKey:a,tooltipAlign:this.getRenderProp("tooltipAlign"),disabled:this.getRenderProp("disabled"),msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),required:c,renderNoHint:!0,labelProps:{onMouseDown:this.handleLabelMouseDown}},this.getLabelTooltipRefs()),e(P,{key:"c9dc5e0119c5d63c102d5462b21b4f4904032f6a",variant:l,icon:this.getIcon(),onMouseDown:this.handleCheckboxMouseDown,inputProps:this.getInputProps()}))))}get host(){return this}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_checked:[{watchChecked:0}],_hideMsg:[{watchHideMsg:0}],_disabled:[{watchDisabled:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_indeterminate:[{watchIndeterminate:0}],_label:[{watchLabel:0}],_labelAlign:[{watchLabelAlign:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_required:[{watchRequired:0}],_ariaDetails:[{watchAriaDetails:0}],_shortKey:[{watchShortKey:0}],_syncValueBySelector:[{watchSyncValueBySelector: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; } .kol-span .kol-span__label--hide-label .kol-span__label { display: none; } 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=1793002577585"); src: url("kolicons.eot?t=1793002577585#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1793002577585") format("woff2"), url("kolicons.woff?t=1793002577585") format("woff"), url("kolicons.ttf?t=1793002577585") format("truetype"), url("kolicons.svg?t=1793002577585#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-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 .kol-form-field .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-field-control { display: grid; min-height: var(--a11y-min-size); align-items: center; justify-content: left; grid-template-areas: "input label"; grid-template-columns: auto 1fr; grid-template-rows: auto; } .kol-field-control:has(.kol-field-control__hint) { grid-template-areas: "input label" "hint hint"; grid-template-columns: auto 1fr; grid-template-rows: auto auto; } .kol-field-control--label-align-left:not(.kol-field-control--hide-label) { grid-template-areas: "label input"; grid-template-columns: 1fr auto; grid-template-rows: auto; } .kol-field-control--label-align-left:not(.kol-field-control--hide-label):has(.kol-field-control__hint) { grid-template-areas: "label input" "hint hint"; grid-template-columns: 1fr auto; grid-template-rows: auto auto; } .kol-field-control__input { display: flex; min-height: var(--a11y-min-size); align-items: center; grid-area: input; } .kol-field-control__label { display: flex; min-height: var(--a11y-min-size); flex-grow: 1; align-items: center; cursor: pointer; grid-area: label; } .kol-field-control__label--visually-hidden { display: none; height: 0; margin: 0; padding: 0; visibility: hidden; } .kol-field-control__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-field-control__hint { grid-area: hint; } .kol-field-control--disabled .kol-field-control__label { cursor: not-allowed; } .kol-field-control--required .kol-field-control__label-text:has(.kol-span__slot[hidden])::after, .kol-field-control--required .kol-field-control .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-form-field { display: grid; } .kol-form-field__label-text { display: ruby; } .kol-checkbox { display: flex; position: relative; align-items: center; cursor: pointer; } .kol-checkbox--disabled { cursor: not-allowed; } .kol-checkbox .kol-input { background-color: white; border-style: solid; margin: 0; border-width: 2px; appearance: none; cursor: inherit; } .kol-checkbox .kol-input:before { content: ""; } .kol-checkbox--variant-default { position: relative; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); justify-content: center; } .kol-checkbox--variant-default .kol-icon { display: none; position: absolute; inset: auto; z-index: 1; pointer-events: none; } .kol-checkbox--variant-default .kol-input { width: calc(22 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(22 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-checkbox--variant-default.kol-checkbox--checked .kol-icon, .kol-checkbox--variant-default.kol-checkbox--indeterminate .kol-icon { display: block; } .kol-checkbox--variant-switch { position: relative; } .kol-checkbox--variant-switch .kol-input { display: inline-block; position: relative; width: 3.2em; min-width: 3.2em; height: 1.7em; } .kol-checkbox--variant-switch .kol-input::before { background-color: black; position: absolute; top: calc(0.25em - 2 * 1rem / var(--kolibri-root-font-size, 16)); left: calc(0.25em - 2 * 1rem / var(--kolibri-root-font-size, 16)); width: 1.2em; height: 1.2em; transition: 0.5s; } .kol-checkbox--variant-switch .kol-input:checked::before { transform: translateX(1.5em); } .kol-checkbox--variant-switch .kol-input:indeterminate::before { transform: translateX(0.75em); } .kol-checkbox--variant-switch .kol-icon { transform: translate(0, -50%); color: black; display: flex; position: absolute; top: 50%; left: calc(4 * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; width: 1.2em; height: 1.2em; align-items: center; justify-content: center; transition: 0.5s; } .kol-checkbox--variant-switch.kol-checkbox--checked .kol-icon { transform: translate(1.5em, -50%); } .kol-checkbox--variant-switch.kol-checkbox--indeterminate .kol-icon { transform: translate(0.75em, -50%); } .kol-checkbox--variant-button { min-width: var(--a11y-min-size); } .kol-checkbox--variant-button .kol-icon { display: flex; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; justify-content: center; } }'}}},[545,"kol-input-checkbox",{_accessKey:[1,"_access-key"],_checked:[1540],_hideMsg:[4,"_hide-msg"],_disabled:[4],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_infoPopover:[16],_indeterminate:[1540],_label:[1],_labelAlign:[1,"_label-align"],_msg:[1],_name:[1],_on:[16],_required:[4],_ariaDetails:[1,"_aria-details"],_shortKey:[1,"_short-key"],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[8],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],getValue:[64],focus:[64],click:[64]},void 0,{_accessKey:[{watchAccessKey:0}],_checked:[{watchChecked:0}],_hideMsg:[{watchHideMsg:0}],_disabled:[{watchDisabled:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_indeterminate:[{watchIndeterminate:0}],_label:[{watchLabel:0}],_labelAlign:[{watchLabelAlign:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_required:[{watchRequired:0}],_ariaDetails:[{watchAriaDetails:0}],_shortKey:[{watchShortKey:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]);n([A("ctaRef")],C.prototype,"focus",null),n([K("ctaRef")],C.prototype,"click",null);const F=C,G=function(){"undefined"!=typeof customElements&&["kol-input-checkbox"].forEach((e=>{"kol-input-checkbox"===e&&(customElements.get(i(e))||customElements.define(i(e),C))}))};export{F as KolInputCheckbox,G as defineCustomElement}
|
|
4
|
+
import{h as e,proxyCustomElement as t,Host as o,transformTag as i}from"@stencil/core/internal/client";import{a as l,_ as n}from"./tslib.es6.js";import{v as a}from"./access-and-short-key.js";import{c as r}from"./clsx.js";import{i as c,g as s,f as h,B as d,F as k}from"./base-web-component2.js";import{b}from"./bem-registry.js";import{B as f}from"./component.js";import{I as u}from"./component5.js";import{I as m}from"./input.js";import{F as p}from"./field-control.js";import{a as _,d as g}from"./component3.js";import{c as y,n as w,b as v}from"./props-from-config.js";import{r as x}from"./required.js";import{c as z}from"./dev.utils.js";import{c as j,d as A,a as K}from"./element-interaction.js";import{s as T}from"./controller.js";const q=["button","default","switch"],I=y("value",!0,(e=>e)),L=y("checked",!1,w),B=["checked","indeterminate","unchecked"],V=y("icons",{checked:"kolicon-check",indeterminate:"kolicon-minus",unchecked:"kolicon-cross"},(e=>{if("object"==typeof e&&null!==e&&B.some((t=>(e=>"string"==typeof e&&e.length>0)(e[t]))))return e;throw Error("Expected an object with at least one icon class of checked, indeterminate or unchecked")})),P=y("indeterminate",!1,w),D=["left","right"],S=y("labelAlign","right",(e=>{const t=v(e);if(D.includes(t))return t;throw Error("Invalid label alignment: "+t)})),H=y("variant","default",(e=>{const t=v(e);if(q.includes(t))return t;throw Error("Invalid checkbox variant: "+t)})),M=b.forBlock("kol-checkbox"),O=t=>{var{class:o,variant:i="default",icon:n,inputProps:a}=t,h=l(t,["class","variant","icon","inputProps"]);const{class:d}=a,k=l(a,["class"]);return e(f,Object.assign({component:"label",block:"kol-checkbox",modifiers:Object.assign({"variant-button":"button"===i,"variant-default":"default"===i,"variant-switch":"switch"===i,checked:!!a.checked,indeterminate:!!a.indeterminate,disabled:!!a.disabled,required:!!a.required,touched:!!a.touched},c(a.msg,a.touched)?{[s(a.msg)]:!0}:{}),class:o},h),e(u,{label:"",icons:n,class:M("icon")}),e(m,Object.assign({class:r(M("input"),d)},k,{type:"checkbox"})))},E={required:[...h.required],optional:[...h.optional,_,I,L,V,P,S,x,g,H]},C=t(class extends d{constructor(e){super(!1),!1!==e&&this.__registerHost(),this.__attachShadow(),this.id=z("input-checkbox"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=j(),this.propsConfig=E,this._accessKey=void 0,this._checked=!1,this._hideMsg=!1,this._disabled=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._infoPopover=void 0,this._indeterminate=void 0,this._labelAlign="right",this._msg=void 0,this._name=void 0,this._on=void 0,this._required=!1,this._ariaDetails=void 0,this._shortKey=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=!0,this._variant="default",this.handleCheckboxInput=e=>{this._checked=!this._checked,this._indeterminate=!1,this.handleInput(e,this.getModelValue())},this.handleCheckboxChange=e=>{this.handleChange(e,this.getModelValue())},this.handleCheckboxKeyDown=e=>{this.handleKeyDown(e),T(e,{form:this.host,ref:this.ctaRef.el})},this.handleCheckboxBlur=e=>{this._disabled||this.handleBlur(e)},this.handleLabelMouseDown=e=>{this.inputHasFocus&&e.preventDefault()},this.handleCheckboxMouseDown=e=>{!this.inputHasFocus||e.target instanceof HTMLInputElement||e.preventDefault()},this.initFormAssociation("checkbox",this._name)}watchAccessKey(e){_.apply(e,(e=>this.setRenderProp("accessKey",e))),a(e,this._shortKey)}watchChecked(e){L.apply(e,(e=>this.setRenderProp("checked",e))),this.syncFormAssociatedValue()}watchHideMsg(e){this.applyHideMsg(e)}watchDisabled(e){this.applyDisabled(e)}watchHideLabel(e){this.applyHideLabel(e)}watchHint(e){this.applyHint(e)}watchIcons(e){V.apply(e,(e=>this.setRenderProp("icons",Object.assign(Object.assign({},this.getRenderProp("icons")),e))))}watchInfoPopover(e){this.applyInfoPopover(e)}watchIndeterminate(e){P.apply(e,(e=>this.setRenderProp("indeterminate",e)))}watchLabel(e){this.applyLabel(e)}watchLabelAlign(e){S.apply(e,(e=>this.setRenderProp("labelAlign",e)))}watchMsg(e){this.applyMsg(e)}watchName(e){this.applyName(e)}watchOn(e){this.applyOn(e)}watchRequired(e){x.apply(e,(e=>this.setRenderProp("required",e)))}watchAriaDetails(e){this.applyAriaDetails(e)}watchShortKey(e){g.apply(e,(e=>this.setRenderProp("shortKey",e))),a(this._accessKey,e)}watchSyncValueBySelector(e){this.applySyncValueBySelector(e)}watchTooltipAlign(e){this.applyTooltipAlign(e)}watchTouched(e){this.applyTouched(e)}watchValue(e){null==e?this.setRenderProp("value",e):I.apply(e,(e=>this.setRenderProp("value",e))),this.syncFormAssociatedValue()}watchVariant(e){H.apply(e,(e=>this.setRenderProp("variant",e)))}getValue(){return Promise.resolve(this.getModelValue())}focus(e){return Promise.resolve()}async click(){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.watchRequired(this._required),this.watchChecked(this._checked),this.watchIcons(this._icons),this.watchIndeterminate(this._indeterminate),this.watchValue(this._value),this.watchVariant(this._variant),this.watchLabelAlign(this._labelAlign)}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField()}getModelValue(){return this._checked?this.getRenderProp("value"):null}syncFormAssociatedValue(){this.formAssociation.setFormAssociatedValue(this.getModelValue())}getIcon(){const e=this.getRenderProp("icons");return this.getRenderProp("indeterminate")?e.indeterminate:this.getRenderProp("checked")?e.checked:e.unchecked}getInputProps(){const e=this.getRenderProp("shortKey"),{ariaDescribedBy:t,hasError:o}=this.getAria();return Object.assign(Object.assign({id:this.id,hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),value:this.getRenderProp("value"),accessKey:this.getRenderProp("accessKey")||void 0,disabled:this.getRenderProp("disabled"),name:null==this._name?void 0:this.getRenderProp("name"),ariaDescribedBy:t,required:this.getRenderProp("required"),checked:this.getRenderProp("checked"),indeterminate:this.getRenderProp("indeterminate"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")},e?{"aria-keyshortcuts":e}:{}),{class:r({"visually-hidden":"button"===this.getRenderProp("variant")}),ref:this.ctaRef,onBlur:this.handleCheckboxBlur,onChange:this.handleCheckboxChange,onFocus:this.handleFocus,onInput:this.handleCheckboxInput,onKeyDown:this.handleCheckboxKeyDown,"aria-invalid":o?"true":void 0})}render(){const t=this.getRenderProp("checked"),i=this.getRenderProp("indeterminate"),l=this.getRenderProp("variant"),n=this.getRenderProp("accessKey")||void 0,a=this.getRenderProp("shortKey")||void 0,c=this.getRenderProp("required");return e(o,{key:"dc8520bdd50f33eaafcf63d12c59b233d59781df"},e(k,Object.assign({key:"4a9c9fb70f555c268063cffc90222ea5eb3f30ef"},this.getFormFieldProps({class:r("kol-input-checkbox",{"kol-input-checkbox--checked":t,"kol-input-checkbox--indeterminate":i,["kol-input-checkbox--variant-"+l]:!0,["kol-input-checkbox--label-align-"+this.getRenderProp("labelAlign")]:!0}),accessKey:n,shortKey:a,required:c,renderNoLabel:!0,renderNoTooltip:!0})),e(p,Object.assign({key:"15d9df3d959762cc16382e225f263fefbcca19ce",class:r("kol-input-checkbox__field-control",{"kol-input-checkbox__field-control--checked":t,"kol-input-checkbox__field-control--indeterminate":i,["kol-input-checkbox__field-control--variant-"+l]:!0}),id:this.id,label:this.getRenderProp("label"),hint:this.getRenderProp("hint"),hideLabel:this.getRenderProp("hideLabel"),labelAlign:this.getRenderProp("labelAlign"),infoPopover:this.getInfoPopover(),accessKey:n,shortKey:a,tooltipAlign:this.getRenderProp("tooltipAlign"),disabled:this.getRenderProp("disabled"),msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),required:c,renderNoHint:!0,labelProps:{onMouseDown:this.handleLabelMouseDown}},this.getLabelTooltipRefs()),e(O,{key:"65969c9c0a39559c6da3a4f9e911881a73a326f3",variant:l,icon:this.getIcon(),onMouseDown:this.handleCheckboxMouseDown,inputProps:this.getInputProps()}))))}get host(){return this}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_checked:[{watchChecked:0}],_hideMsg:[{watchHideMsg:0}],_disabled:[{watchDisabled:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_indeterminate:[{watchIndeterminate:0}],_label:[{watchLabel:0}],_labelAlign:[{watchLabelAlign:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_required:[{watchRequired:0}],_ariaDetails:[{watchAriaDetails:0}],_shortKey:[{watchShortKey:0}],_syncValueBySelector:[{watchSyncValueBySelector: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=1794497133718"); src: url("kolicons.eot?t=1794497133718#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794497133718") format("woff2"), url("kolicons.woff?t=1794497133718") format("woff"), url("kolicons.ttf?t=1794497133718") format("truetype"), url("kolicons.svg?t=1794497133718#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-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-field-control { display: grid; min-height: var(--a11y-min-size); align-items: center; justify-content: left; grid-template-areas: "input label"; grid-template-columns: auto 1fr; grid-template-rows: auto; } .kol-field-control:has(.kol-field-control__hint) { grid-template-areas: "input label" "hint hint"; grid-template-columns: auto 1fr; grid-template-rows: auto auto; } .kol-field-control--label-align-left:not(.kol-field-control--hide-label) { grid-template-areas: "label input"; grid-template-columns: 1fr auto; grid-template-rows: auto; } .kol-field-control--label-align-left:not(.kol-field-control--hide-label):has(.kol-field-control__hint) { grid-template-areas: "label input" "hint hint"; grid-template-columns: 1fr auto; grid-template-rows: auto auto; } .kol-field-control__input { display: flex; min-height: var(--a11y-min-size); align-items: center; grid-area: input; } .kol-field-control__label { display: flex; min-height: var(--a11y-min-size); flex-grow: 1; align-items: center; cursor: pointer; grid-area: label; } .kol-field-control__label--visually-hidden { display: none; height: 0; margin: 0; padding: 0; visibility: hidden; } .kol-field-control__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-field-control__hint { grid-area: hint; } .kol-field-control--disabled .kol-field-control__label { cursor: not-allowed; } .kol-field-control--required .kol-field-control__label-text:has(.kol-span__slot[hidden])::after, .kol-field-control--required .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-form-field { display: grid; } .kol-form-field__label-text { display: ruby; } .kol-checkbox { display: flex; position: relative; align-items: center; cursor: pointer; } .kol-checkbox--disabled { cursor: not-allowed; } .kol-checkbox .kol-input { background-color: white; border-style: solid; margin: 0; border-width: 2px; appearance: none; cursor: inherit; } .kol-checkbox .kol-input:before { content: ""; } .kol-checkbox--variant-default { position: relative; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); justify-content: center; } .kol-checkbox--variant-default .kol-icon { display: none; position: absolute; inset: auto; z-index: 1; pointer-events: none; } .kol-checkbox--variant-default .kol-input { width: calc(22 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(22 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-checkbox--variant-default.kol-checkbox--checked .kol-icon, .kol-checkbox--variant-default.kol-checkbox--indeterminate .kol-icon { display: block; } .kol-checkbox--variant-switch { position: relative; } .kol-checkbox--variant-switch .kol-input { display: inline-block; position: relative; width: 3.2em; min-width: 3.2em; height: 1.7em; } .kol-checkbox--variant-switch .kol-input::before { background-color: black; position: absolute; top: calc(0.25em - 2 * 1rem / var(--kolibri-root-font-size, 16)); left: calc(0.25em - 2 * 1rem / var(--kolibri-root-font-size, 16)); width: 1.2em; height: 1.2em; transition: 0.5s; } .kol-checkbox--variant-switch .kol-input:checked::before { transform: translateX(1.5em); } .kol-checkbox--variant-switch .kol-input:indeterminate::before { transform: translateX(0.75em); } .kol-checkbox--variant-switch .kol-icon { transform: translate(0, -50%); color: black; display: flex; position: absolute; top: 50%; left: calc(4 * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; width: 1.2em; height: 1.2em; align-items: center; justify-content: center; transition: 0.5s; } .kol-checkbox--variant-switch.kol-checkbox--checked .kol-icon { transform: translate(1.5em, -50%); } .kol-checkbox--variant-switch.kol-checkbox--indeterminate .kol-icon { transform: translate(0.75em, -50%); } .kol-checkbox--variant-button { min-width: var(--a11y-min-size); } .kol-checkbox--variant-button .kol-icon { display: flex; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; justify-content: center; } }'}}},[545,"kol-input-checkbox",{_accessKey:[1,"_access-key"],_checked:[1540],_hideMsg:[4,"_hide-msg"],_disabled:[4],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_infoPopover:[16],_indeterminate:[1540],_label:[1],_labelAlign:[1,"_label-align"],_msg:[1],_name:[1],_on:[16],_required:[4],_ariaDetails:[1,"_aria-details"],_shortKey:[1,"_short-key"],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[8],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],getValue:[64],focus:[64],click:[64]},void 0,{_accessKey:[{watchAccessKey:0}],_checked:[{watchChecked:0}],_hideMsg:[{watchHideMsg:0}],_disabled:[{watchDisabled:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_indeterminate:[{watchIndeterminate:0}],_label:[{watchLabel:0}],_labelAlign:[{watchLabelAlign:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_required:[{watchRequired:0}],_ariaDetails:[{watchAriaDetails:0}],_shortKey:[{watchShortKey:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]);n([A("ctaRef")],C.prototype,"focus",null),n([K("ctaRef")],C.prototype,"click",null);const F=C,G=function(){"undefined"!=typeof customElements&&["kol-input-checkbox"].forEach((e=>{"kol-input-checkbox"===e&&(customElements.get(i(e))||customElements.define(i(e),C))}))};export{F as KolInputCheckbox,G 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{v as a}from"./access-and-short-key.js";import{h as l,g as r,I as s}from"./input-container.js";import{f as c,B as h,F as d}from"./base-web-component2.js";import{I as k}from"./input.js";import{a as u,S as p}from"./suggestions2.js";import"./common.js";import{a as m,d as b,v as f}from"./variant.js";import"./base-web-component.js";import{s as _}from"./smart-button.js";import{s as g}from"./suggestions.js";import{s as y}from"./value-string.js";import{c as w}from"./dev.utils.js";import{c as v,d as x,a as B}from"./element-interaction.js";const z={required:[...c.required],optional:[...c.optional,m,u,l,b,_,y,g,f]},j=t(class extends h{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=w("input-color"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=v(),this._autoComplete="off",this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._tooltipAlign="top",this._touched=!1,this.handleColorInput=t=>{const o=t.target.value;this.setRenderProp("value",o),this.ctaRef.el&&(this.ctaRef.el.value=o),this.handleInput(t)},this.initFormAssociation("color",this._name)}watchAccessKey(t){m.apply(t,(t=>this.setRenderProp("accessKey",t))),a(t,this._shortKey)}watchAriaDetails(t){this.applyAriaDetails(t)}watchAutoComplete(t){u.apply(t,(t=>this.setRenderProp("autoComplete",t)))}watchDisabled(t){this.applyDisabled(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchIcons(t){l.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)}watchShortKey(t){b.apply(t,(t=>this.setRenderProp("shortKey",t))),a(this._accessKey,t)}watchSmartButton(t){null==t?this.unsetRenderProp("smartButton"):_.apply(t,(t=>this.setRenderProp("smartButton",t)))}watchSuggestions(t){g.apply(t,(t=>this.setRenderProp("suggestions",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchValue(t){y.apply(t,(t=>this.setRenderProp("value",t))),this.formAssociation.setFormAssociatedValue(this.getRenderProp("value"))}watchVariant(t){f.apply(t,(t=>this.setRenderProp("variant",t)))}async getValue(){var t;return null===(t=this.ctaRef.el)||void 0===t?void 0:t.value}async focus(t){}async click(){}componentWillLoad(){this.initRenderProps(z),this.unsetRenderProp("smartButton"),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.watchSmartButton(this._smartButton),this.watchOn(this._on),this.watchTooltipAlign(this._tooltipAlign),this.watchVariant(this._variant),this.watchIcons(this._icons),this.watchAutoComplete(this._autoComplete),this.watchSuggestions(this._suggestions),this.watchValue(this._value)}componentDidLoad(){var t;!this._value&&this.ctaRef&&(this._value=null===(t=this.ctaRef.el)||void 0===t?void 0:t.value)}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField()}getInputProps(){const t=this.id,e=this.getRenderProp("name"),i=this.getRenderProp("accessKey"),n=this.getRenderProp("shortKey"),a=this.getRenderProp("suggestions"),{ariaDescribedBy:l,hasError:r}=this.getAria();return Object.assign(Object.assign(Object.assign(Object.assign({id:t,hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),disabled:this.getRenderProp("disabled"),name:e?e+"-color":void 0},i?{accessKey:i}:{}),{value:this.getRenderProp("value"),autoComplete:this.getRenderProp("autoComplete"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")}),n?{"aria-keyshortcuts":n}:{}),{suggestions:a.length>0?o(p,{id:t,suggestions:a}):void 0,class:"kol-input-color__input kol-input-color__input--color",onBlur:this.handleBlur,onChange:this.handleChange,onClick:this.handleClick,onFocus:this.handleFocus,onInput:this.handleColorInput,onKeyDown:this.handleKeyDown,ref:this.ctaRef,type:"color",ariaDescribedBy:l,"aria-invalid":r?"true":void 0})}render(){const t=this.getRenderProp("disabled"),{startAdornment:i,endAdornment:n}=r({icons:this.getRenderProp("icons"),smartButton:this.getSmartButtonFcProps(this.getRenderProp("smartButton"),t)});return o(e,{key:"af3004852c63b1b64ea8049970bb968d33fd9487"},o(d,Object.assign({key:"fdd50cec7d90659ffeb588c730562cfefe863125"},this.getFormFieldProps({class:"kol-input-color",accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,variant:this.getRenderProp("variant")})),o(s,{key:"e7d42b101cbb6d522122a901db87a0d9ee81c11b",disabled:t,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:n},o(k,Object.assign({key:"c380aafead16efac4daeb7ab1964800fb693c911"},this.getInputProps())))))}get host(){return this}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_autoComplete:[{watchAutoComplete: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}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_suggestions:[{watchSuggestions:0}],_syncValueBySelector:[{watchSyncValueBySelector: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; } .kol-span .kol-span__label--hide-label .kol-span__label { display: none; } 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=1793002577585"); src: url("kolicons.eot?t=1793002577585#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1793002577585") format("woff2"), url("kolicons.woff?t=1793002577585") format("woff"), url("kolicons.ttf?t=1793002577585") format("truetype"), url("kolicons.svg?t=1793002577585#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 .kol-form-field .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-input { cursor: pointer; } .kol-input:disabled { cursor: not-allowed; } }'}}},[545,"kol-input-color",{_accessKey:[1,"_access-key"],_ariaDetails:[1,"_aria-details"],_autoComplete:[1,"_auto-complete"],_disabled:[4],_hideMsg:[4,"_hide-msg"],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_infoPopover:[16],_label:[1],_msg:[1],_name:[1],_on:[16],_shortKey:[1,"_short-key"],_smartButton:[1,"_smart-button"],_suggestions:[1],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[1],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],getValue:[64],focus:[64],click:[64]},void 0,{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_autoComplete:[{watchAutoComplete: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}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_suggestions:[{watchSuggestions:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]);n([x("ctaRef")],j.prototype,"focus",null),n([B("ctaRef")],j.prototype,"click",null);const K=j,S=function(){"undefined"!=typeof customElements&&["kol-input-color"].forEach((t=>{"kol-input-color"===t&&(customElements.get(i(t))||customElements.define(i(t),j))}))};export{K as KolInputColor,S 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{v as a}from"./access-and-short-key.js";import{h as l,g as r,I as s}from"./input-container.js";import{f as c,B as h,F as d}from"./base-web-component2.js";import{I as k}from"./input.js";import{a as u,S as p}from"./suggestions2.js";import"./bem-registry.js";import{a as m,d as f,v as b}from"./component3.js";import"./props-from-config.js";import{s as _}from"./smart-button.js";import{s as g}from"./suggestions.js";import{s as y}from"./value-string.js";import{c as w}from"./dev.utils.js";import{c as v,d as x,a as B}from"./element-interaction.js";const z={required:[...c.required],optional:[...c.optional,m,u,l,f,_,y,g,b]},j=t(class extends h{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=w("input-color"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=v(),this.propsConfig=z,this._accessKey=void 0,this._ariaDetails=void 0,this._autoComplete="off",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._shortKey=void 0,this._smartButton=void 0,this._suggestions=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this._variant=void 0,this.handleColorInput=t=>{const o=t.target.value;this.setRenderProp("value",o),this.ctaRef.el&&(this.ctaRef.el.value=o),this.handleInput(t)},this.initFormAssociation("color",this._name)}watchAccessKey(t){m.apply(t,(t=>this.setRenderProp("accessKey",t))),a(t,this._shortKey)}watchAriaDetails(t){this.applyAriaDetails(t)}watchAutoComplete(t){u.apply(t,(t=>this.setRenderProp("autoComplete",t)))}watchDisabled(t){this.applyDisabled(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchIcons(t){l.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)}watchShortKey(t){f.apply(t,(t=>this.setRenderProp("shortKey",t))),a(this._accessKey,t)}watchSmartButton(t){null==t?this.unsetRenderProp("smartButton"):_.apply(t,(t=>this.setRenderProp("smartButton",t)))}watchSuggestions(t){g.apply(t,(t=>this.setRenderProp("suggestions",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchValue(t){y.apply(t,(t=>this.setRenderProp("value",t))),this.formAssociation.setFormAssociatedValue(this.getRenderProp("value"))}watchVariant(t){b.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){var t;return Promise.resolve(null===(t=this.ctaRef.el)||void 0===t?void 0:t.value)}focus(t){return Promise.resolve()}async click(){return Promise.resolve()}componentWillLoad(){this.unsetRenderProp("smartButton"),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.watchSmartButton(this._smartButton),this.watchOn(this._on),this.watchTooltipAlign(this._tooltipAlign),this.watchVariant(this._variant),this.watchIcons(this._icons),this.watchAutoComplete(this._autoComplete),this.watchSuggestions(this._suggestions),this.watchValue(this._value)}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField()}getInputProps(){const t=this.id,e=this.getRenderProp("name"),i=this.getRenderProp("accessKey"),n=this.getRenderProp("shortKey"),a=this.getRenderProp("suggestions"),{ariaDescribedBy:l,hasError:r}=this.getAria();return Object.assign(Object.assign(Object.assign(Object.assign({id:t,hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),disabled:this.getRenderProp("disabled"),name:e?e+"-color":void 0},i?{accessKey:i}:{}),{value:this.getRenderProp("value"),autoComplete:this.getRenderProp("autoComplete"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")}),n?{"aria-keyshortcuts":n}:{}),{suggestions:a.length>0?o(p,{id:t,suggestions:a}):void 0,class:"kol-input-color__input kol-input-color__input--color",onBlur:this.handleBlur,onChange:this.handleChange,onClick:this.handleClick,onFocus:this.handleFocus,onInput:this.handleColorInput,onKeyDown:this.handleKeyDown,ref:this.ctaRef,type:"color",ariaDescribedBy:l,"aria-invalid":r?"true":void 0})}render(){const t=this.getRenderProp("disabled"),{startAdornment:i,endAdornment:n}=r({icons:this.getRenderProp("icons"),smartButton:this.getSmartButtonFcProps(this.getRenderProp("smartButton"),t)});return o(e,{key:"16fa6ab52f85e2392c40842e28abf75bdba0583c"},o(d,Object.assign({key:"a69d19116ee2ff2f52d6080383f366d3e23b5e14"},this.getFormFieldProps({class:"kol-input-color",accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,variant:this.getRenderProp("variant")})),o(s,{key:"40c7a7894437b971791a44bffa449ba33d67160e",disabled:t,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:n},o(k,Object.assign({key:"b4ff6dc0850c96ca06c92f8c177e7766d93c38df"},this.getInputProps())))))}get host(){return this}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_autoComplete:[{watchAutoComplete: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}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_suggestions:[{watchSuggestions:0}],_syncValueBySelector:[{watchSyncValueBySelector: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=1794497133718"); src: url("kolicons.eot?t=1794497133718#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794497133718") format("woff2"), url("kolicons.woff?t=1794497133718") format("woff"), url("kolicons.ttf?t=1794497133718") format("truetype"), url("kolicons.svg?t=1794497133718#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-input { background-color: transparent; width: 100%; min-width: var(--a11y-min-size); } .kol-input { cursor: pointer; } .kol-input:disabled { cursor: not-allowed; } }'}}},[545,"kol-input-color",{_accessKey:[1,"_access-key"],_ariaDetails:[1,"_aria-details"],_autoComplete:[1,"_auto-complete"],_disabled:[4],_hideMsg:[4,"_hide-msg"],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_infoPopover:[16],_label:[1],_msg:[1],_name:[1],_on:[16],_shortKey:[1,"_short-key"],_smartButton:[1,"_smart-button"],_suggestions:[1],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[1],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],getValue:[64],focus:[64],click:[64]},void 0,{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_autoComplete:[{watchAutoComplete: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}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_suggestions:[{watchSuggestions:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]);n([x("ctaRef")],j.prototype,"focus",null),n([B("ctaRef")],j.prototype,"click",null);const K=j,S=function(){"undefined"!=typeof customElements&&["kol-input-color"].forEach((t=>{"kol-input-color"===t&&(customElements.get(i(t))||customElements.define(i(t),j))}))};export{K as KolInputColor,S as defineCustomElement}
|