@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{r as o,h as t,H as e,g as i}from"./index-D5UV99lE.js";import{_ as n}from"./tslib.es6-QNbPBOk5.js";import{v as l}from"./access-and-short-key-ijzCZfHm.js";import{h as a,g as r,I as s}from"./input-container-RSmfcRgK.js";import{f as c,B as h,F as d}from"./api-hAvZrw9X.js";import{I as p}from"./input-DjQorwQ5.js";import{a as m,S as k}from"./suggestions-C38q-5JU.js";import"./common-D03JQJgy.js";import{a as b,d as f,v as u}from"./variant-PJN56KWi.js";import"./base-web-component-Bcoukts3.js";import{s as g}from"./smart-button-BHM06d-t.js";import{s as _}from"./suggestions-B79TOsF_.js";import{s as y}from"./value-string-BDfywbme.js";import{c as w}from"./dev.utils-BgjegQC8.js";import{d as v,a as x,c as j}from"./element-interaction-Cy9tx3Sx.js";import"./component-DxddScWx.js";import"./component-CySyXSru.js";import"./bem-registry-BlJAUViA.js";import"./clsx-COFh-Vc8.js";import"./component-DzVHCXnG.js";import"./block-bem-DXqmf3Te.js";import"./component-Ik_-HAMT.js";import"./component-C9mkZ63L.js";import"./isArray-CcrBs4JM.js";import"./component-YhEwg1LK.js";import"./events-BIT-JUP2.js";import"./behavior-Zr6qAX7F.js";import"./bootstrap-DTVsVq0w.js";import"./component-names-Dhbtt0mX.js";import"./i18n-Dl6Jjofb.js";import"./aria-labelledby-BRToXqsQ.js";import"./name-m3owaZxH.js";import"./behavior-BlS6DO8T.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./align-DsFuqEf5.js";import"./label-BNtqGdMQ.js";import"./disabled-BaPgTuFO.js";import"./label-with-expert-slot-aAOUzLo3.js";import"./item-2cprk9ut.js";import"./controller-Bf-CAo4Q.js";import"./resolve-props-47S-r31C.js";import"./api-CvPkoAAG.js";import"./item-Bfk2xd-D.js";import"./component-DHl33p9J.js";import"./i18n-DRQl0u--.js";import"./component-BmJGOcby.js";import"./Heading-0teSdkFq.js";import"./element-focus-Cp994Rrk.js";const B={required:[...c.required],optional:[...c.optional,b,m,a,f,g,y,_,u]},z=class extends h{constructor(t){super(),o(this,t),this.id=w("input-color"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=j(),this._autoComplete="off",this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._tooltipAlign="top",this._touched=!1,this.handleColorInput=o=>{const t=o.target.value;this.setRenderProp("value",t),this.ctaRef.el&&(this.ctaRef.el.value=t),this.handleInput(o)},this.initFormAssociation("color",this._name)}watchAccessKey(o){b.apply(o,(o=>this.setRenderProp("accessKey",o))),l(o,this._shortKey)}watchAriaDetails(o){this.applyAriaDetails(o)}watchAutoComplete(o){m.apply(o,(o=>this.setRenderProp("autoComplete",o)))}watchDisabled(o){this.applyDisabled(o)}watchHideMsg(o){this.applyHideMsg(o)}watchHideLabel(o){this.applyHideLabel(o)}watchHint(o){this.applyHint(o)}watchIcons(o){a.apply(o,(o=>this.setRenderProp("icons",o)))}watchInfoPopover(o){this.applyInfoPopover(o)}watchLabel(o){this.applyLabel(o)}watchMsg(o){this.applyMsg(o)}watchName(o){this.applyName(o)}watchOn(o){this.applyOn(o)}watchShortKey(o){f.apply(o,(o=>this.setRenderProp("shortKey",o))),l(this._accessKey,o)}watchSmartButton(o){null==o?this.unsetRenderProp("smartButton"):g.apply(o,(o=>this.setRenderProp("smartButton",o)))}watchSuggestions(o){_.apply(o,(o=>this.setRenderProp("suggestions",o)))}watchSyncValueBySelector(o){this.applySyncValueBySelector(o)}watchTooltipAlign(o){this.applyTooltipAlign(o)}watchTouched(o){this.applyTouched(o)}watchValue(o){y.apply(o,(o=>this.setRenderProp("value",o))),this.formAssociation.setFormAssociatedValue(this.getRenderProp("value"))}watchVariant(o){u.apply(o,(o=>this.setRenderProp("variant",o)))}async getValue(){var o;return null===(o=this.ctaRef.el)||void 0===o?void 0:o.value}async focus(o){}async click(){}componentWillLoad(){this.initRenderProps(B),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 o;!this._value&&this.ctaRef&&(this._value=null===(o=this.ctaRef.el)||void 0===o?void 0:o.value)}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField()}getInputProps(){const o=this.id,e=this.getRenderProp("name"),i=this.getRenderProp("accessKey"),n=this.getRenderProp("shortKey"),l=this.getRenderProp("suggestions"),{ariaDescribedBy:a,hasError:r}=this.getAria();return Object.assign(Object.assign(Object.assign(Object.assign({id:o,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:l.length>0?t(k,{id:o,suggestions:l}):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:a,"aria-invalid":r?"true":void 0})}render(){const o=this.getRenderProp("disabled"),{startAdornment:i,endAdornment:n}=r({icons:this.getRenderProp("icons"),smartButton:this.getSmartButtonFcProps(this.getRenderProp("smartButton"),o)});return t(e,{key:"af3004852c63b1b64ea8049970bb968d33fd9487"},t(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")})),t(s,{key:"e7d42b101cbb6d522122a901db87a0d9ee81c11b",disabled:o,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:n},t(p,Object.assign({key:"c380aafead16efac4daeb7ab1964800fb693c911"},this.getInputProps())))))}get host(){return i(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}]}}};n([v("ctaRef")],z.prototype,"focus",null),n([x("ctaRef")],z.prototype,"click",null),z.style={default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } .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; } }'};export{z as kol_input_color}
|
|
4
|
+
import{r as o,h as t,H as e,g as i}from"./index-BKEJuyFi.js";import{_ as n}from"./tslib.es6-QNbPBOk5.js";import{v as l}from"./access-and-short-key-ijzCZfHm.js";import{h as a,g as r,I as s}from"./input-container-C2Am7LEP.js";import{f as c,B as h,F as d}from"./api-D92_O-0H.js";import{I as p}from"./input-Dja5Qioc.js";import{a as m,S as k}from"./suggestions-DuqzGDve.js";import"./common-OzsC_6kt.js";import{a as f,d as b,v as u}from"./component-8ALsFV4i.js";import"./props-from-config-Ci0dILpz.js";import{s as g}from"./smart-button-CS_ZriPt.js";import{s as _}from"./suggestions-Dy1X-Pc3.js";import{s as y}from"./value-string-e9pwLcS-.js";import{c as v}from"./dev.utils-wYkYn08d.js";import{d as w,a as x,c as j}from"./element-interaction-sGYdEpmv.js";import"./component-BTMWoACz.js";import"./bem-registry-CWN7_O1L.js";import"./clsx-COFh-Vc8.js";import"./component-Bc1n82Y8.js";import"./block-bem-BpQSY04L.js";import"./component-CZZNha2e.js";import"./component-Cdnq5GYF.js";import"./disabled-Cqhc40CU.js";import"./id-CIYvVaNr.js";import"./label-with-expert-slot-CicRes-W.js";import"./validators-BVM40IEr.js";import"./label-hints-Jn18RUT-.js";import"./name-B2Yf3EpX.js";import"./aria-labelledby-CLehu03h.js";import"./events-BIT-JUP2.js";import"./behavior-B08CXmI4.js";import"./bootstrap-B9DtStuh.js";import"./component-names-CrfBV37S.js";import"./i18n-Dl6Jjofb.js";import"./behavior-CwUUkdaP.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./label-lang-segment-2_GnxjFp.js";import"./base-web-component-XgI4wUyN.js";import"./item-C4AmpdVD.js";import"./controller-C3O9ohSP.js";import"./resolve-props-BLZxWC3j.js";import"./item-D627ShRd.js";import"./component-CdKSiR5P.js";import"./i18n-DtLKn3Xt.js";import"./component-D0mBOGjS.js";import"./Heading-BVhjT9av.js";import"./element-focus-BIRmGg5W.js";const B={required:[...c.required],optional:[...c.optional,f,m,a,b,g,y,_,u]},C=class extends h{constructor(t){super(),o(this,t),this.id=v("input-color"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=j(),this.propsConfig=B,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=o=>{const t=o.target.value;this.setRenderProp("value",t),this.ctaRef.el&&(this.ctaRef.el.value=t),this.handleInput(o)},this.initFormAssociation("color",this._name)}watchAccessKey(o){f.apply(o,(o=>this.setRenderProp("accessKey",o))),l(o,this._shortKey)}watchAriaDetails(o){this.applyAriaDetails(o)}watchAutoComplete(o){m.apply(o,(o=>this.setRenderProp("autoComplete",o)))}watchDisabled(o){this.applyDisabled(o)}watchHideMsg(o){this.applyHideMsg(o)}watchHideLabel(o){this.applyHideLabel(o)}watchHint(o){this.applyHint(o)}watchIcons(o){a.apply(o,(o=>this.setRenderProp("icons",o)))}watchInfoPopover(o){this.applyInfoPopover(o)}watchLabel(o){this.applyLabel(o)}watchMsg(o){this.applyMsg(o)}watchName(o){this.applyName(o)}watchOn(o){this.applyOn(o)}watchShortKey(o){b.apply(o,(o=>this.setRenderProp("shortKey",o))),l(this._accessKey,o)}watchSmartButton(o){null==o?this.unsetRenderProp("smartButton"):g.apply(o,(o=>this.setRenderProp("smartButton",o)))}watchSuggestions(o){_.apply(o,(o=>this.setRenderProp("suggestions",o)))}watchSyncValueBySelector(o){this.applySyncValueBySelector(o)}watchTooltipAlign(o){this.applyTooltipAlign(o)}watchTouched(o){this.applyTouched(o)}watchValue(o){y.apply(o,(o=>this.setRenderProp("value",o))),this.formAssociation.setFormAssociatedValue(this.getRenderProp("value"))}watchVariant(o){u.apply(o,(o=>this.setRenderProp("variant",o)))}getValue(){var o;return Promise.resolve(null===(o=this.ctaRef.el)||void 0===o?void 0:o.value)}focus(o){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 o=this.id,e=this.getRenderProp("name"),i=this.getRenderProp("accessKey"),n=this.getRenderProp("shortKey"),l=this.getRenderProp("suggestions"),{ariaDescribedBy:a,hasError:r}=this.getAria();return Object.assign(Object.assign(Object.assign(Object.assign({id:o,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:l.length>0?t(k,{id:o,suggestions:l}):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:a,"aria-invalid":r?"true":void 0})}render(){const o=this.getRenderProp("disabled"),{startAdornment:i,endAdornment:n}=r({icons:this.getRenderProp("icons"),smartButton:this.getSmartButtonFcProps(this.getRenderProp("smartButton"),o)});return t(e,{key:"16fa6ab52f85e2392c40842e28abf75bdba0583c"},t(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")})),t(s,{key:"40c7a7894437b971791a44bffa449ba33d67160e",disabled:o,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:n},t(p,Object.assign({key:"b4ff6dc0850c96ca06c92f8c177e7766d93c38df"},this.getInputProps())))))}get host(){return i(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}]}}};n([w("ctaRef")],C.prototype,"focus",null),n([x("ctaRef")],C.prototype,"click",null),C.style={default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-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; } }'};export{C as kol_input_color}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{r as t,f as o,h as e,H as i,g as n}from"./index-D5UV99lE.js";import{_ as a}from"./tslib.es6-QNbPBOk5.js";import{c as l}from"./common-D03JQJgy.js";import{v as r}from"./access-and-short-key-ijzCZfHm.js";import{h as s,g as c,I as h}from"./input-container-RSmfcRgK.js";import{f as d,B as p,F as m}from"./api-hAvZrw9X.js";import{I as u}from"./input-DjQorwQ5.js";import{a as k,S as f}from"./suggestions-C38q-5JU.js";import{a as b,d as g,v as y}from"./variant-PJN56KWi.js";import{f as _,c as w,b as v,i as x}from"./base-web-component-Bcoukts3.js";import{r as j}from"./read-only-C5fDsZVK.js";import{r as B}from"./required-CC0212MQ.js";import{s as D}from"./smart-button-BHM06d-t.js";import{s as S}from"./step-BxSThOke.js";import{s as T}from"./suggestions-B79TOsF_.js";import{c as z}from"./clsx-COFh-Vc8.js";import{c as C}from"./dev.utils-BgjegQC8.js";import{d as O,a as A,c as q}from"./element-interaction-Cy9tx3Sx.js";import{s as K}from"./controller-Bf-CAo4Q.js";import"./component-DxddScWx.js";import"./component-CySyXSru.js";import"./bem-registry-BlJAUViA.js";import"./component-DzVHCXnG.js";import"./block-bem-DXqmf3Te.js";import"./component-Ik_-HAMT.js";import"./component-C9mkZ63L.js";import"./isArray-CcrBs4JM.js";import"./component-YhEwg1LK.js";import"./events-BIT-JUP2.js";import"./behavior-Zr6qAX7F.js";import"./bootstrap-DTVsVq0w.js";import"./component-names-Dhbtt0mX.js";import"./i18n-Dl6Jjofb.js";import"./aria-labelledby-BRToXqsQ.js";import"./name-m3owaZxH.js";import"./behavior-BlS6DO8T.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./align-DsFuqEf5.js";import"./label-BNtqGdMQ.js";import"./disabled-BaPgTuFO.js";import"./label-with-expert-slot-aAOUzLo3.js";import"./item-2cprk9ut.js";import"./resolve-props-47S-r31C.js";import"./api-CvPkoAAG.js";import"./item-Bfk2xd-D.js";import"./component-DHl33p9J.js";import"./i18n-DRQl0u--.js";import"./component-BmJGOcby.js";import"./Heading-0teSdkFq.js";import"./element-focus-Cp994Rrk.js";const V=["date","datetime-local","month","time","week"],H=/^\d{4}-([0]\d|1[0-2])-([0-2]\d|3[01])/,M=/^\d{4}-([0]\d|1[0-2])-([0-2]\d|3[01])[T ][0-2]\d:[0-5]\d(:[0-5]\d(?:\.\d+)?)?/,I=/^\d{4}-([0]\d|1[0-2])/,R=/^[0-2]\d:[0-5]\d(:[0-5]\d(?:\.\d+)?)?/,G=/^\d{4}-W(?:[0-4]\d|5[0-3])$/;function L(t,{type:o,step:e}){return function(t,o,e){if("string"==typeof t||null===t)return t;if(t instanceof Date){const i=t.getFullYear(),n=String(t.getMonth()+1).padStart(2,"0"),a=String(t.getDate()).padStart(2,"0"),l=String(t.getHours()).padStart(2,"0"),r=String(t.getMinutes()).padStart(2,"0"),s=String(t.getSeconds()).padStart(2,"0"),c=[i,n,a].join("-"),h=[l,r,s].join(":");switch(o){case"date":return c;case"datetime-local":return`${c}T${h}`;case"month":return`${i}-${n}`;case"time":return void 0===e||"60"===String(e)?`${l}:${r}`:h;case"week":return`${i}-W${function(t){const o=new Date(t),e=(o.getDay()+6)%7;o.setDate(o.getDate()-e+3);const i=o.valueOf();return o.setMonth(0,1),4!==o.getDay()&&o.setMonth(0,1+(4-o.getDay()+7)%7),(1+Math.ceil((i-o.valueOf())/6048e5)).toString().padStart(2,"0")}(t)}`}}}(t,o,e)}function F(t,{type:o}){return null==t||""===t||function(t,o){switch(o){case"date":return H.test(t);case"datetime-local":return M.test(t);case"month":return I.test(t);case"time":return R.test(t);case"week":return G.test(t);default:return!1}}(t,o)}const J=_("max",void 0,L,F),P=_("min",void 0,L,F),Q=w("type","date",(function(t){const o=v(t);if(x(o,V))return o;throw new Error(`Invalid input date type: ${o}`)})),$=_("value",void 0,L,F);function U(t){return t instanceof Date?"Date":"string"==typeof t?"String":null}function X(t,o){return""===t?null:"Date"===o?new Date(t):t}const Z={required:[...d.required],optional:[...d.optional,b,k,s,J,P,Q,$,j,B,g,D,S,T,y]},E=class extends p{constructor(o){super(),t(this,o),this.id=C("input-date"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=q(),this.valueType=null,this.hasValue=!1,this._autoComplete="off",this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._readOnly=!1,this._required=!1,this._tooltipAlign="top",this._touched=!1,this._type="date",this.handleDateInput=t=>{const o=this.readValue(t);this._value=o,this.handleInput(t,o)},this.handleDateChange=t=>{const o=this.readValue(t);this.handleChange(t,o),this.hasValue=Boolean(o)},this.handleDateBlur=t=>{this.handleBlur(t);const o=t.target.value;Boolean(o)!==Boolean(this._value)&&(this._value=o)},this.handleDateKeyDown=t=>{this.handleKeyDown(t),K(t,{form:this.host,ref:this.ctaRef.el}),this.getRenderProp("readOnly")&&"Space"===t.code&&t.preventDefault()},this.initFormAssociation("date",this._name)}watchAccessKey(t){b.apply(t,(t=>this.setRenderProp("accessKey",t))),r(t,this._shortKey)}watchAriaDetails(t){this.applyAriaDetails(t)}watchAutoComplete(t){k.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){s.apply(t,(t=>this.setRenderProp("icons",t)))}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMax(t){J.apply(t,(t=>this.setRenderProp("max",t)),this.dateDeps)}watchMin(t){P.apply(t,(t=>this.setRenderProp("min",t)),this.dateDeps)}watchMsg(t){this.applyMsg(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchReadOnly(t){j.apply(t,(t=>this.setRenderProp("readOnly",t)))}watchRequired(t){B.apply(t,(t=>this.setRenderProp("required",t)))}watchShortKey(t){g.apply(t,(t=>this.setRenderProp("shortKey",t))),r(this._accessKey,t)}watchSmartButton(t){null==t?this.unsetRenderProp("smartButton"):D.apply(t,(t=>this.setRenderProp("smartButton",t)))}watchSuggestions(t){T.apply(t,(t=>this.setRenderProp("suggestions",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchStep(t){S.apply(t,(t=>this.setRenderProp("step",t)))}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchType(t){Q.apply(t,(t=>this.setRenderProp("type",t)))}watchValue(t){var o;t instanceof Date&&l("Date type will be removed in v3. Use `Iso8601` instead."),$.apply(t,(t=>this.setRenderProp("value",t)),this.dateDeps),this.formAssociation.setFormAssociatedValue(null!==(o=this.getRenderProp("value"))&&void 0!==o?o:null),null!=t&&(this.valueType=U(t))}watchVariant(t){y.apply(t,(t=>this.setRenderProp("variant",t)))}async getValue(){return this.ctaRef.el&&X(this.ctaRef.el.value,this.valueType)}async focus(t){}async click(){}async reset(){this.setRenderProp("value",void 0),o(this),this.formAssociation.setFormAssociatedValue(""),this.ctaRef.el&&(this.ctaRef.el.value="")}componentWillLoad(){this.initRenderProps(Z),this.unsetRenderProp("smartButton"),void 0!==this._value&&(this.valueType=U(this._value)),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.watchMax(this._max),this.watchMin(this._min),this.watchSuggestions(this._suggestions),this.watchReadOnly(this._readOnly),this.watchRequired(this._required),this.watchStep(this._step),this.watchType(this._type),this.watchValue(this._value),this.hasValue=Boolean(this.getRenderProp("value"))}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField()}get dateDeps(){return{type:this._type,step:this._step}}readValue(t){return X(t.target.value,this.valueType)}getInputProps(){var t,o,i,n;const a=this.id,l=this.getRenderProp("accessKey"),r=this.getRenderProp("shortKey"),s=this.getRenderProp("suggestions"),{ariaDescribedBy:c,hasError:h}=this.getAria();return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({id:a,hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),disabled:this.getRenderProp("disabled"),name:this.getRenderProp("name")||void 0},l?{accessKey:l}:{}),{type:this.getRenderProp("type"),value:null!==(t=this.getRenderProp("value"))&&void 0!==t?t:null===this._value?null:void 0,required:this.getRenderProp("required"),autoComplete:this.getRenderProp("autoComplete"),readonly:this.getRenderProp("readOnly"),min:null!==(o=this.getRenderProp("min"))&&void 0!==o?o:null===this._min?null:void 0,max:null!==(i=this.getRenderProp("max"))&&void 0!==i?i:null===this._max?null:void 0,step:null!==(n=this.getRenderProp("step"))&&void 0!==n?n:null,touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")}),r?{"aria-keyshortcuts":r}:{}),s.length>0?{suggestions:e(f,{id:a,suggestions:s})}:{}),{ref:this.ctaRef,onBlur:this.handleDateBlur,onChange:this.handleDateChange,onClick:this.handleClick,onFocus:this.handleFocus,onInput:this.handleDateInput,onKeyDown:this.handleDateKeyDown,ariaDescribedBy:c,"aria-invalid":h?"true":void 0})}render(){const t=this.getRenderProp("disabled"),{startAdornment:o,endAdornment:n}=c({icons:this.getRenderProp("icons"),smartButton:this.getSmartButtonFcProps(this.getRenderProp("smartButton"),t)});return e(i,{key:"e393faa9de542ec4a31c861887bdd9f8c79b4788"},e(m,Object.assign({key:"54e09a0bc0982889addca2b3261724cb241c6b04"},this.getFormFieldProps({class:z("kol-input-date",this.getRenderProp("type"),{"has-value":this.hasValue}),accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,variant:this.getRenderProp("variant"),required:this.getRenderProp("required"),readOnly:this.getRenderProp("readOnly")})),e(h,{key:"4a053c45addd8824cd65f1292004c8d11237d59b",disabled:t,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:o,endAdornment:n},e(u,Object.assign({key:"92b4a3fe66dab172a85b54e347471f236bb9151b"},this.getInputProps())))))}get host(){return n(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}],_max:[{watchMax:0}],_min:[{watchMin:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_readOnly:[{watchReadOnly:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_suggestions:[{watchSuggestions:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_step:[{watchStep:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_type:[{watchType:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}};a([O("ctaRef")],E.prototype,"focus",null),a([A("ctaRef")],E.prototype,"click",null),E.style={default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-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: text; } .kol-input::-webkit-calendar-picker-indicator { cursor: pointer; } }'};export{E as kol_input_date}
|
|
4
|
+
import{r as t,f as o,h as e,H as i,g as n}from"./index-BKEJuyFi.js";import{_ as a}from"./tslib.es6-QNbPBOk5.js";import{c as l}from"./common-OzsC_6kt.js";import{v as r}from"./access-and-short-key-ijzCZfHm.js";import{h as s,g as c,I as h}from"./input-container-C2Am7LEP.js";import{f as d,B as m,F as p}from"./api-D92_O-0H.js";import{I as u}from"./input-Dja5Qioc.js";import{a as k,S as f}from"./suggestions-DuqzGDve.js";import{a as b,d as g,v as y}from"./component-8ALsFV4i.js";import{f as _,c as v,b as w,i as x}from"./props-from-config-Ci0dILpz.js";import{r as j}from"./read-only-Bby9r6ZX.js";import{r as B}from"./required-hoaT7UmZ.js";import{s as C}from"./smart-button-CS_ZriPt.js";import{s as S}from"./step-Bdj89bGO.js";import{s as D}from"./suggestions-Dy1X-Pc3.js";import{c as z}from"./clsx-COFh-Vc8.js";import{c as T}from"./dev.utils-wYkYn08d.js";import{d as O,a as I,c as K}from"./element-interaction-sGYdEpmv.js";import{s as A}from"./controller-C3O9ohSP.js";import"./component-BTMWoACz.js";import"./bem-registry-CWN7_O1L.js";import"./component-Bc1n82Y8.js";import"./block-bem-BpQSY04L.js";import"./component-CZZNha2e.js";import"./component-Cdnq5GYF.js";import"./disabled-Cqhc40CU.js";import"./id-CIYvVaNr.js";import"./label-with-expert-slot-CicRes-W.js";import"./validators-BVM40IEr.js";import"./label-hints-Jn18RUT-.js";import"./name-B2Yf3EpX.js";import"./aria-labelledby-CLehu03h.js";import"./events-BIT-JUP2.js";import"./behavior-B08CXmI4.js";import"./bootstrap-B9DtStuh.js";import"./component-names-CrfBV37S.js";import"./i18n-Dl6Jjofb.js";import"./behavior-CwUUkdaP.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./label-lang-segment-2_GnxjFp.js";import"./base-web-component-XgI4wUyN.js";import"./item-C4AmpdVD.js";import"./resolve-props-BLZxWC3j.js";import"./item-D627ShRd.js";import"./component-CdKSiR5P.js";import"./i18n-DtLKn3Xt.js";import"./component-D0mBOGjS.js";import"./Heading-BVhjT9av.js";import"./element-focus-BIRmGg5W.js";const P=["date","datetime-local","month","time","week"],V=/^\d{4}-([0]\d|1[0-2])-([0-2]\d|3[01])/,L=/^\d{4}-([0]\d|1[0-2])-([0-2]\d|3[01])[T ][0-2]\d:[0-5]\d(:[0-5]\d(?:\.\d+)?)?/,q=/^\d{4}-([0]\d|1[0-2])/,G=/^[0-2]\d:[0-5]\d(:[0-5]\d(?:\.\d+)?)?/,M=/^\d{4}-W(?:[0-4]\d|5[0-3])$/;function R(t,{type:o,step:e}){return function(t,o,e){if("string"==typeof t||null===t)return t;if(t instanceof Date){const i=t.getFullYear(),n=String(t.getMonth()+1).padStart(2,"0"),a=String(t.getDate()).padStart(2,"0"),l=String(t.getHours()).padStart(2,"0"),r=String(t.getMinutes()).padStart(2,"0"),s=String(t.getSeconds()).padStart(2,"0"),c=[i,n,a].join("-"),h=[l,r,s].join(":");switch(o){case"date":return c;case"datetime-local":return`${c}T${h}`;case"month":return`${i}-${n}`;case"time":return void 0===e||"60"===String(e)?`${l}:${r}`:h;case"week":return`${i}-W${function(t){const o=new Date(t),e=(o.getDay()+6)%7;o.setDate(o.getDate()-e+3);const i=o.valueOf();return o.setMonth(0,1),4!==o.getDay()&&o.setMonth(0,1+(4-o.getDay()+7)%7),(1+Math.ceil((i-o.valueOf())/6048e5)).toString().padStart(2,"0")}(t)}`}}}(t,o,e)}function H(t,{type:o}){return null==t||""===t||function(t,o){switch(o){case"date":return V.test(t);case"datetime-local":return L.test(t);case"month":return q.test(t);case"time":return G.test(t);case"week":return M.test(t);default:return!1}}(t,o)}const $=_("max",void 0,R,H),N=_("min",void 0,R,H),F=v("type","date",(function(t){const o=w(t);if(x(o,P))return o;throw new Error(`Invalid input date type: ${o}`)})),U=_("value",void 0,R,H);function W(t){return t instanceof Date?"Date":"string"==typeof t?"String":null}function Y(t,o){return""===t?null:"Date"!==o?t:function(t){const o=E.exec(t);return o?new Date(Number(o[1]),Number(o[2])-1,Number(o[3])):new Date(t)}(t)}const E=/^(\d{4})-(\d{2})-(\d{2})$/,Z={required:[...d.required],optional:[...d.optional,b,k,s,$,N,F,U,j,B,g,C,S,D,y]},X=class extends m{constructor(o){super(),t(this,o),this.id=T("input-date"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=K(),this.valueType=null,this.hasValue=!1,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._max=void 0,this._min=void 0,this._msg=void 0,this._name=void 0,this._on=void 0,this._readOnly=!1,this._required=!1,this._shortKey=void 0,this._smartButton=void 0,this._suggestions=void 0,this._syncValueBySelector=void 0,this._step=void 0,this._tooltipAlign="top",this._touched=!1,this._type="date",this._value=void 0,this._variant=void 0,this.handleDateInput=t=>{const o=this.readValue(t);this._value=o,this.handleInput(t,o)},this.handleDateChange=t=>{const o=this.readValue(t);this.handleChange(t,o),this.hasValue=Boolean(o)},this.handleDateBlur=t=>{this.handleBlur(t);const o=t.target.value;Boolean(o)!==Boolean(this._value)&&(this._value=o)},this.handleDateKeyDown=t=>{this.handleKeyDown(t),A(t,{form:this.host,ref:this.ctaRef.el}),this.getRenderProp("readOnly")&&"Space"===t.code&&t.preventDefault()},this.initFormAssociation("date",this._name)}watchAccessKey(t){b.apply(t,(t=>this.setRenderProp("accessKey",t))),r(t,this._shortKey)}watchAriaDetails(t){this.applyAriaDetails(t)}watchAutoComplete(t){k.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){s.apply(t,(t=>this.setRenderProp("icons",t)))}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMax(t){$.apply(t,(t=>this.setRenderProp("max",t)),this.dateDeps)}watchMin(t){N.apply(t,(t=>this.setRenderProp("min",t)),this.dateDeps)}watchMsg(t){this.applyMsg(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchReadOnly(t){j.apply(t,(t=>this.setRenderProp("readOnly",t)))}watchRequired(t){B.apply(t,(t=>this.setRenderProp("required",t)))}watchShortKey(t){g.apply(t,(t=>this.setRenderProp("shortKey",t))),r(this._accessKey,t)}watchSmartButton(t){null==t?this.unsetRenderProp("smartButton"):C.apply(t,(t=>this.setRenderProp("smartButton",t)))}watchSuggestions(t){D.apply(t,(t=>this.setRenderProp("suggestions",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchStep(t){S.apply(t,(t=>this.setRenderProp("step",t)))}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchType(t){F.apply(t,(t=>this.setRenderProp("type",t)))}watchValue(t){var o;t instanceof Date&&l("Date type will be removed in v3. Use `Iso8601` instead."),U.apply(t,(t=>this.setRenderProp("value",t)),this.dateDeps),this.formAssociation.setFormAssociatedValue(null!==(o=this.getRenderProp("value"))&&void 0!==o?o:null),null!=t&&(this.valueType=W(t))}watchVariant(t){y.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){return Promise.resolve(this.ctaRef.el&&Y(this.ctaRef.el.value,this.valueType))}focus(t){return Promise.resolve()}async click(){return Promise.resolve()}reset(){return this.setRenderProp("value",void 0),this.hasValue=!1,o(this),this.formAssociation.setFormAssociatedValue(""),this.ctaRef.el&&(this.ctaRef.el.value=""),Promise.resolve()}componentWillLoad(){this.unsetRenderProp("smartButton"),void 0!==this._value&&(this.valueType=W(this._value)),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.watchMax(this._max),this.watchMin(this._min),this.watchSuggestions(this._suggestions),this.watchReadOnly(this._readOnly),this.watchRequired(this._required),this.watchStep(this._step),this.watchType(this._type),this.watchValue(this._value),this.hasValue=Boolean(this.getRenderProp("value"))}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField()}get dateDeps(){return{type:this._type,step:this._step}}readValue(t){return Y(t.target.value,this.valueType)}getInputProps(){var t,o,i,n;const a=this.id,l=this.getRenderProp("accessKey"),r=this.getRenderProp("shortKey"),s=this.getRenderProp("suggestions"),{ariaDescribedBy:c,hasError:h}=this.getAria();return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({id:a,hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),disabled:this.getRenderProp("disabled"),name:this.getRenderProp("name")||void 0},l?{accessKey:l}:{}),{type:this.getRenderProp("type"),value:null!==(t=this.getRenderProp("value"))&&void 0!==t?t:null===this._value?null:void 0,required:this.getRenderProp("required"),autoComplete:this.getRenderProp("autoComplete"),readonly:this.getRenderProp("readOnly"),min:null!==(o=this.getRenderProp("min"))&&void 0!==o?o:null===this._min?null:void 0,max:null!==(i=this.getRenderProp("max"))&&void 0!==i?i:null===this._max?null:void 0,step:null!==(n=this.getRenderProp("step"))&&void 0!==n?n:null,touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")}),r?{"aria-keyshortcuts":r}:{}),s.length>0?{suggestions:e(f,{id:a,suggestions:s})}:{}),{ref:this.ctaRef,onBlur:this.handleDateBlur,onChange:this.handleDateChange,onClick:this.handleClick,onFocus:this.handleFocus,onInput:this.handleDateInput,onKeyDown:this.handleDateKeyDown,ariaDescribedBy:c,"aria-invalid":h?"true":void 0})}render(){const t=this.getRenderProp("disabled"),{startAdornment:o,endAdornment:n}=c({icons:this.getRenderProp("icons"),smartButton:this.getSmartButtonFcProps(this.getRenderProp("smartButton"),t)});return e(i,{key:"d93f04d5c275b0ee3bd62e8e29ceae3c1a10ec3d"},e(p,Object.assign({key:"9cd2b2fb4fdbc22e644a8be7c0f94a928f0d6852"},this.getFormFieldProps({class:z("kol-input-date",this.getRenderProp("type"),{"has-value":this.hasValue}),accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,variant:this.getRenderProp("variant"),required:this.getRenderProp("required"),readOnly:this.getRenderProp("readOnly")})),e(h,{key:"ec098b2fce3052e7c6dfbe2962e4d36284766453",disabled:t,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:o,endAdornment:n},e(u,Object.assign({key:"a0793a0f1bc8ecf86f7a997396657f13c4af04e3"},this.getInputProps())))))}get host(){return n(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}],_max:[{watchMax:0}],_min:[{watchMin:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_readOnly:[{watchReadOnly:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_suggestions:[{watchSuggestions:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_step:[{watchStep:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_type:[{watchType:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}};a([O("ctaRef")],X.prototype,"focus",null),a([I("ctaRef")],X.prototype,"click",null),X.style={default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-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: text; } .kol-input::-webkit-calendar-picker-indicator { cursor: pointer; } }'};export{X as kol_input_date}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{r as t,h as o,H as e,g as i}from"./index-D5UV99lE.js";import{_ as n}from"./tslib.es6-QNbPBOk5.js";import{F as l}from"./api-hAvZrw9X.js";import{I as a}from"./input-DjQorwQ5.js";import{I as r}from"./input-container-RSmfcRgK.js";import"./common-D03JQJgy.js";import"./base-web-component-Bcoukts3.js";import{m as s}from"./multiple-CYHm7rd3.js";import{s as c}from"./suggestions-B79TOsF_.js";import{t as h,B as d}from"./base-web-component-cTyj95G-.js";import{c as p}from"./dev.utils-BgjegQC8.js";import{d as m,a as k}from"./element-interaction-Cy9tx3Sx.js";import"./component-Ik_-HAMT.js";import"./bem-registry-BlJAUViA.js";import"./clsx-COFh-Vc8.js";import"./component-C9mkZ63L.js";import"./isArray-CcrBs4JM.js";import"./events-BIT-JUP2.js";import"./behavior-Zr6qAX7F.js";import"./bootstrap-DTVsVq0w.js";import"./component-names-Dhbtt0mX.js";import"./i18n-Dl6Jjofb.js";import"./aria-labelledby-BRToXqsQ.js";import"./name-m3owaZxH.js";import"./behavior-BlS6DO8T.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./align-DsFuqEf5.js";import"./label-BNtqGdMQ.js";import"./disabled-BaPgTuFO.js";import"./variant-PJN56KWi.js";import"./label-with-expert-slot-aAOUzLo3.js";import"./item-2cprk9ut.js";import"./controller-Bf-CAo4Q.js";import"./resolve-props-47S-r31C.js";import"./api-CvPkoAAG.js";import"./item-Bfk2xd-D.js";import"./component-DHl33p9J.js";import"./component-DzVHCXnG.js";import"./block-bem-DXqmf3Te.js";import"./component-DxddScWx.js";import"./component-CySyXSru.js";import"./component-YhEwg1LK.js";import"./i18n-DRQl0u--.js";import"./component-BmJGOcby.js";import"./Heading-0teSdkFq.js";import"./suggestions-C38q-5JU.js";import"./placeholder-Bwzvbwhh.js";import"./read-only-C5fDsZVK.js";import"./required-CC0212MQ.js";import"./smart-button-BHM06d-t.js";import"./value-string-BDfywbme.js";import"./access-and-short-key-ijzCZfHm.js";import"./behavior-BMW-_4Oy.js";import"./element-focus-Cp994Rrk.js";const f={required:[...h.required],optional:[...h.optional,s,c]},b=class extends d{constructor(o){super(),t(this,o),this.id=p("input-email"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this._autoComplete="off",this._hasCounter=!1,this._maxLengthBehavior="hard",this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._multiple=!1,this._readOnly=!1,this._required=!1,this._tooltipAlign="top",this._touched=!1,this.initFormAssociation("email",this._name)}watchAccessKey(t){this.applyAccessKey(t)}watchAriaDetails(t){this.applyAriaDetails(t)}watchAutoComplete(t){this.applyAutoComplete(t)}watchHasCounter(t){this.applyHasCounter(t)}watchMaxLengthBehavior(t){this.applyMaxLengthBehavior(t)}watchDisabled(t){this.applyDisabled(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchIcons(t){this.applyIcons(t)}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMaxLength(t){this.applyMaxLength(t)}watchMsg(t){this.applyMsg(t)}watchMultiple(t){s.apply(t,(t=>this.setRenderProp("multiple",t)))}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchPattern(t){this.applyPattern(t)}watchPlaceholder(t){this.applyPlaceholder(t)}watchReadOnly(t){this.applyReadOnly(t)}watchRequired(t){this.applyRequired(t)}watchShortKey(t){this.applyShortKey(t)}watchSmartButton(t){this.applySmartButton(t)}watchSuggestions(t){c.apply(t,(t=>this.setRenderProp("suggestions",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchValue(t){this.applyValue(t)}watchVariant(t){this.applyVariant(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(f),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.watchHasCounter(this._hasCounter),this.watchMaxLengthBehavior(this._maxLengthBehavior),this.initMaxLength(this._maxLength),this.watchPattern(this._pattern),this.watchPlaceholder(this._placeholder),this.watchReadOnly(this._readOnly),this.watchRequired(this._required),this.watchSuggestions(this._suggestions),this.watchMultiple(this._multiple),this.initValue(this._value),this.initHasValue()}componentDidLoad(){this.didLoadTextInput()}componentDidUpdate(){this.didUpdateTextInput()}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyTextInput()}render(){const{startAdornment:t,endAdornment:i}=this.getTextInputAdornments();return o(e,{key:"93981ac40fdfc5b38d6ccfc779f6f98a1ebc9697"},o(l,Object.assign({key:"fd6302fd00141548fc6ba109060e5020027445f3"},this.getTextFormFieldProps("kol-input-email email")),o(r,{key:"d09de8a45c4a8453966fdc95c4cf498b0f744f54",disabled:this.getRenderProp("disabled"),msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:t,endAdornment:i},o(a,Object.assign({key:"570033ee8286d388c1ed3da518c1a619b71580da"},this.getTextInputProps({multiple:this.getRenderProp("multiple"),suggestions:this.getRenderProp("suggestions")},{type:"email"}))))))}get host(){return i(this)}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_autoComplete:[{watchAutoComplete:0}],_hasCounter:[{watchHasCounter:0}],_maxLengthBehavior:[{watchMaxLengthBehavior:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_maxLength:[{watchMaxLength:0}],_msg:[{watchMsg:0}],_multiple:[{watchMultiple:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_pattern:[{watchPattern:0}],_placeholder:[{watchPlaceholder:0}],_readOnly:[{watchReadOnly:0}],_required:[{watchRequired: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([m("ctaRef")],b.prototype,"focus",null),n([k("ctaRef")],b.prototype,"click",null),b.style={default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } .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); } }'};export{b as kol_input_email}
|
|
4
|
+
import{r as t,h as o,H as e,g as i}from"./index-BKEJuyFi.js";import{_ as n}from"./tslib.es6-QNbPBOk5.js";import{F as a}from"./api-D92_O-0H.js";import{I as l}from"./input-Dja5Qioc.js";import{I as r}from"./input-container-C2Am7LEP.js";import"./common-OzsC_6kt.js";import"./props-from-config-Ci0dILpz.js";import{m as s}from"./multiple-DqrZxybx.js";import{s as c}from"./suggestions-Dy1X-Pc3.js";import{t as h,B as d}from"./base-web-component-CaAexWy_.js";import{c as m}from"./dev.utils-wYkYn08d.js";import{d as p,a as k}from"./element-interaction-sGYdEpmv.js";import"./component-CZZNha2e.js";import"./bem-registry-CWN7_O1L.js";import"./clsx-COFh-Vc8.js";import"./component-Cdnq5GYF.js";import"./aria-labelledby-CLehu03h.js";import"./events-BIT-JUP2.js";import"./behavior-B08CXmI4.js";import"./bootstrap-B9DtStuh.js";import"./component-names-CrfBV37S.js";import"./i18n-Dl6Jjofb.js";import"./name-B2Yf3EpX.js";import"./behavior-CwUUkdaP.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./component-8ALsFV4i.js";import"./validators-BVM40IEr.js";import"./id-CIYvVaNr.js";import"./label-lang-segment-2_GnxjFp.js";import"./label-hints-Jn18RUT-.js";import"./disabled-Cqhc40CU.js";import"./label-with-expert-slot-CicRes-W.js";import"./base-web-component-XgI4wUyN.js";import"./item-C4AmpdVD.js";import"./controller-C3O9ohSP.js";import"./resolve-props-BLZxWC3j.js";import"./component-BTMWoACz.js";import"./component-Bc1n82Y8.js";import"./block-bem-BpQSY04L.js";import"./item-D627ShRd.js";import"./component-CdKSiR5P.js";import"./i18n-DtLKn3Xt.js";import"./component-D0mBOGjS.js";import"./Heading-BVhjT9av.js";import"./suggestions-DuqzGDve.js";import"./placeholder-BeLIzdJv.js";import"./read-only-Bby9r6ZX.js";import"./required-hoaT7UmZ.js";import"./smart-button-CS_ZriPt.js";import"./value-string-e9pwLcS-.js";import"./access-and-short-key-ijzCZfHm.js";import"./behavior-DW7_5Wxp.js";import"./element-focus-BIRmGg5W.js";const f={required:[...h.required],optional:[...h.optional,s,c]},b=class extends d{constructor(o){super(),t(this,o),this.id=m("input-email"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.propsConfig=f,this._accessKey=void 0,this._ariaDetails=void 0,this._autoComplete="off",this._hasCounter=!1,this._maxLengthBehavior="hard",this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._infoPopover=void 0,this._maxLength=void 0,this._msg=void 0,this._multiple=!1,this._name=void 0,this._on=void 0,this._pattern=void 0,this._placeholder=void 0,this._readOnly=!1,this._required=!1,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.initFormAssociation("email",this._name)}watchAccessKey(t){this.applyAccessKey(t)}watchAriaDetails(t){this.applyAriaDetails(t)}watchAutoComplete(t){this.applyAutoComplete(t)}watchHasCounter(t){this.applyHasCounter(t)}watchMaxLengthBehavior(t){this.applyMaxLengthBehavior(t)}watchDisabled(t){this.applyDisabled(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchIcons(t){this.applyIcons(t)}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMaxLength(t){this.applyMaxLength(t)}watchMsg(t){this.applyMsg(t)}watchMultiple(t){s.apply(t,(t=>this.setRenderProp("multiple",t)))}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchPattern(t){this.applyPattern(t)}watchPlaceholder(t){this.applyPlaceholder(t)}watchReadOnly(t){this.applyReadOnly(t)}watchRequired(t){this.applyRequired(t)}watchShortKey(t){this.applyShortKey(t)}watchSmartButton(t){this.applySmartButton(t)}watchSuggestions(t){c.apply(t,(t=>this.setRenderProp("suggestions",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchValue(t){this.applyValue(t)}watchVariant(t){this.applyVariant(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.watchHasCounter(this._hasCounter),this.watchMaxLengthBehavior(this._maxLengthBehavior),this.initMaxLength(this._maxLength),this.watchPattern(this._pattern),this.watchPlaceholder(this._placeholder),this.watchReadOnly(this._readOnly),this.watchRequired(this._required),this.watchSuggestions(this._suggestions),this.watchMultiple(this._multiple),this.initValue(this._value),this.initHasValue()}componentDidLoad(){this.didLoadTextInput()}componentDidUpdate(){this.didUpdateTextInput()}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyTextInput()}render(){const{startAdornment:t,endAdornment:i}=this.getTextInputAdornments();return o(e,{key:"795196d75871ca9d3131b2c56538dabbf4d952ca"},o(a,Object.assign({key:"9be9477c72ffd224e81d79842d62ddeb02f94928"},this.getTextFormFieldProps("kol-input-email email")),o(r,{key:"4c25d9ac124b96f6f47511d3e93d656a2d9a3717",disabled:this.getRenderProp("disabled"),msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:t,endAdornment:i},o(l,Object.assign({key:"ca42d2b5f36d18faae4ad1e6964da2b586d76f92"},this.getTextInputProps({multiple:this.getRenderProp("multiple"),suggestions:this.getRenderProp("suggestions")},{type:"email"}))))))}get host(){return i(this)}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_autoComplete:[{watchAutoComplete:0}],_hasCounter:[{watchHasCounter:0}],_maxLengthBehavior:[{watchMaxLengthBehavior:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_maxLength:[{watchMaxLength:0}],_msg:[{watchMsg:0}],_multiple:[{watchMultiple:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_pattern:[{watchPattern:0}],_placeholder:[{watchPlaceholder:0}],_readOnly:[{watchReadOnly:0}],_required:[{watchRequired: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([p("ctaRef")],b.prototype,"focus",null),n([k("ctaRef")],b.prototype,"click",null),b.style={default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=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); } }'};export{b as kol_input_email}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as t,r as o,H as e,g as i}from"./index-D5UV99lE.js";import{_ as n}from"./tslib.es6-QNbPBOk5.js";import{v as l}from"./access-and-short-key-ijzCZfHm.js";import{t as a}from"./i18n-DRQl0u--.js";import{B as r}from"./component-DxddScWx.js";import{c as s}from"./item-2cprk9ut.js";import{h as c,g as h,I as d}from"./input-container-RSmfcRgK.js";import{f as p,B as k,F as m}from"./api-hAvZrw9X.js";import{I as f}from"./input-DjQorwQ5.js";import{c as b,b as u}from"./base-web-component-Bcoukts3.js";import{a as _,d as g,v as y}from"./variant-PJN56KWi.js";import"./common-D03JQJgy.js";import{m as w}from"./multiple-CYHm7rd3.js";import{r as v}from"./required-CC0212MQ.js";import{s as x}from"./smart-button-BHM06d-t.js";import{b as j}from"./bem-registry-BlJAUViA.js";import{c as B}from"./dev.utils-BgjegQC8.js";import{d as z,a as D,c as T}from"./element-interaction-Cy9tx3Sx.js";import"./i18n-Dl6Jjofb.js";import"./component-CySyXSru.js";import"./clsx-COFh-Vc8.js";import"./component-DzVHCXnG.js";import"./block-bem-DXqmf3Te.js";import"./component-Ik_-HAMT.js";import"./component-C9mkZ63L.js";import"./isArray-CcrBs4JM.js";import"./component-YhEwg1LK.js";import"./controller-Bf-CAo4Q.js";import"./component-names-Dhbtt0mX.js";import"./events-BIT-JUP2.js";import"./behavior-BlS6DO8T.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./align-DsFuqEf5.js";import"./label-BNtqGdMQ.js";import"./resolve-props-47S-r31C.js";import"./api-CvPkoAAG.js";import"./disabled-BaPgTuFO.js";import"./label-with-expert-slot-aAOUzLo3.js";import"./name-m3owaZxH.js";import"./behavior-Zr6qAX7F.js";import"./bootstrap-DTVsVq0w.js";import"./aria-labelledby-BRToXqsQ.js";import"./item-Bfk2xd-D.js";import"./component-DHl33p9J.js";import"./component-BmJGOcby.js";import"./Heading-0teSdkFq.js";import"./element-focus-Cp994Rrk.js";const A=b("accept",void 0,u);function C(t){if(null==t?void 0:t.length)return Array.from(t).map((t=>t.name)).join(", ")}const q={required:[...p.required],optional:[...p.optional,A,_,c,w,v,g,x,y]},K=j.forBlock("kol-input-container"),S=K("button"),H=({filename:o,hasFile:e})=>t("span",{class:K("filename",{"has-file":e})},o),O=class extends k{constructor(t){super(),o(this,t),this.id=B("input-file"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.translateFilenameText=a("kol-filename-text"),this.filename=this.translateFilenameText,this.hasFileSelected=!1,this.isDragover=!1,this.ctaRef=T(),this.translateDataBrowseText=a("kol-data-browse-text"),this.browseButton=s((()=>this.host)),this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._multiple=!1,this._required=!1,this._tooltipAlign="top",this._touched=!1,this.handleFileChange=t=>{var o;if(this.ctaRef.el instanceof HTMLInputElement&&"file"===this.ctaRef.el.type){const e=this.ctaRef.el.files;this.hasFileSelected=!!(null==e?void 0:e.length),this.filename=null!==(o=C(e))&&void 0!==o?o:this.translateFilenameText,this.handleChange(t,e),this.formAssociation.setFormAssociatedValue(e)}},this.handleFileInput=t=>{this.ctaRef.el instanceof HTMLInputElement&&"file"===this.ctaRef.el.type&&this.handleInput(t,this.ctaRef.el.files)},this.isDisabled=()=>!0===this._disabled,this.handleDragOver=t=>{this.isDisabled()||(t.preventDefault(),this.isDragover=!0)},this.handleDragLeave=()=>{this.isDragover=!1},this.handleDrop=t=>{var o,e;if(!this.isDisabled()&&(t.preventDefault(),this.ctaRef.el&&(this.isDragover=!1,null===(o=t.dataTransfer)||void 0===o?void 0:o.files.length))){const o=t.dataTransfer.files;this.ctaRef.el.files=o,this.filename=null!==(e=C(o))&&void 0!==e?e:this.translateFilenameText,this.formAssociation.setFormAssociatedValue(o),this.handleChange(t,o),this.handleInput(t,o)}},this.initFormAssociation("file",this._name)}watchAccept(t){A.apply(t,(t=>this.setRenderProp("accept",t)))}watchAccessKey(t){_.apply(t,(t=>this.setRenderProp("accessKey",t))),l(t,this._shortKey)}watchAriaDetails(t){this.applyAriaDetails(t)}watchDisabled(t){this.applyDisabled(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchIcons(t){c.apply(t,(t=>this.setRenderProp("icons",t)))}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMsg(t){this.applyMsg(t)}watchMultiple(t){w.apply(t,(t=>this.setRenderProp("multiple",t)))}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchRequired(t){v.apply(t,(t=>this.setRenderProp("required",t)))}watchShortKey(t){g.apply(t,(t=>this.setRenderProp("shortKey",t))),l(this._accessKey,t)}watchSmartButton(t){null==t?this.unsetRenderProp("smartButton"):x.apply(t,(t=>this.setRenderProp("smartButton",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchVariant(t){y.apply(t,(t=>this.setRenderProp("variant",t)))}async getValue(){var t;return null===(t=this.ctaRef.el)||void 0===t?void 0:t.files}async focus(t){}async click(){}async reset(){this.formAssociation.setFormAssociatedValue(""),this.filename=this.translateFilenameText,this.hasFileSelected=!1,this.ctaRef.el&&(this.ctaRef.el.value="")}componentWillLoad(){this.initRenderProps(q),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.watchAccept(this._accept),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.watchIcons(this._icons),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchMultiple(this._multiple),this.watchOn(this._on),this.watchRequired(this._required),this.watchShortKey(this._shortKey),this.watchSmartButton(this._smartButton),this.watchTooltipAlign(this._tooltipAlign),this.watchVariant(this._variant)}componentDidRender(){this.browseButton.syncListeners(),this.syncFormField()}disconnectedCallback(){this.browseButton.destroy(),this.destroyFormField()}getInputProps(){const t=this.getRenderProp("accessKey"),o=this.getRenderProp("shortKey"),{ariaDescribedBy:e,hasError:i}=this.getAria();return Object.assign(Object.assign(Object.assign(Object.assign({id:this.id,hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),disabled:this.getRenderProp("disabled"),name:this.getRenderProp("name")||void 0},t?{accessKey:t}:{}),{required:this.getRenderProp("required"),multiple:this.getRenderProp("multiple"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")}),o?{"aria-keyshortcuts":o}:{}),{ref:this.ctaRef,type:"file",accept:this.getRenderProp("accept"),onBlur:this.handleBlur,onChange:this.handleFileChange,onClick:this.handleClick,onFocus:this.handleFocus,onInput:this.handleFileInput,onKeyDown:this.handleKeyDown,ariaDescribedBy:e,"aria-invalid":i?"true":void 0})}render(){const o=this.getRenderProp("disabled"),{startAdornment:i,endAdornment:n}=h({icons:this.getRenderProp("icons"),smartButton:this.getSmartButtonFcProps(this.getRenderProp("smartButton"),o)});return t(e,{key:"4f8f460b51907cb5db0fadfdea99f24d685e2e9d"},t(m,Object.assign({key:"fbdf47b0c75180d93f579a867ed29b7701429b8f"},this.getFormFieldProps({class:"kol-input-file file",accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,variant:this.getRenderProp("variant"),required:this.getRenderProp("required")})),t(d,{key:"32c13d37e149a442e30c1699765ab1f51946b5e8",class:{"kol-input-container--is-dragover":this.isDragover},disabled:o,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:n,onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop},t(H,{key:"a984fcf51e85efc75b516f2ab677c4c3531e4168",filename:this.filename,hasFile:this.hasFileSelected}),t(f,Object.assign({key:"71182afeb95f4b0fbae91e53725f6b7d7d5e59af"},this.getInputProps())),t(r,Object.assign({key:"97191c07295a887c2fc975bea836e8dc2d512ac0"},this.browseButton.getFcProps({_label:this.translateDataBrowseText,_variant:"primary",_disabled:o},{class:S}))))))}get host(){return i(this)}static get watchers(){return{_accept:[{watchAccept:0}],_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_msg:[{watchMsg:0}],_multiple:[{watchMultiple:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_variant:[{watchVariant:0}]}}};n([z("ctaRef")],O.prototype,"focus",null),n([D("ctaRef")],O.prototype,"click",null),O.style={default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } .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-input-container { background-color: transparent; display: grid; position: relative; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; grid-template-columns: 1fr; } .kol-input-container:has(> .kol-input-container__adornment--start) { grid-template-columns: auto 1fr auto; } .kol-input-container__container { position: relative; z-index: 1; } .kol-input-container__adornment { display: flex; align-items: center; } .kol-input-container__adornment .kol-icon { display: grid; place-items: center; } .kol-input { background-color: transparent; width: 100%; min-width: var(--a11y-min-size); } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } :host { display: inline-block; } .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-button__interactive-element::before { content: ""; } .kol-button__text { flex: 1 0 100%; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; } .kol-input::-webkit-file-upload-button, .kol-input::file-selector-button { cursor: pointer; } .kol-input:disabled, .kol-input:disabled::-webkit-file-upload-button, .kol-input:disabled::file-selector-button { cursor: not-allowed; pointer-events: none; } .kol-input-container__container { display: flex; overflow: hidden; align-items: center; } .kol-input-container__button { height: auto; } .kol-input-container__filename { overflow: hidden; flex-grow: 1; white-space: nowrap; text-overflow: ellipsis; } .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) { grid-template-columns: auto 1fr; } }'};export{O as kol_input_file}
|
|
4
|
+
import{h as t,r as o,H as e,g as i}from"./index-BKEJuyFi.js";import{_ as n}from"./tslib.es6-QNbPBOk5.js";import{v as l}from"./access-and-short-key-ijzCZfHm.js";import{t as a}from"./i18n-DtLKn3Xt.js";import{B as r}from"./component-BTMWoACz.js";import{c as s}from"./item-C4AmpdVD.js";import{h as c,g as h,I as d}from"./input-container-C2Am7LEP.js";import{f as p,B as m,F as k}from"./api-D92_O-0H.js";import{I as f}from"./input-Dja5Qioc.js";import{c as b,b as u}from"./props-from-config-Ci0dILpz.js";import{a as _,d as g,v as y}from"./component-8ALsFV4i.js";import"./common-OzsC_6kt.js";import{m as v}from"./multiple-DqrZxybx.js";import{r as w}from"./required-hoaT7UmZ.js";import{s as x}from"./smart-button-CS_ZriPt.js";import{b as j}from"./bem-registry-CWN7_O1L.js";import{c as B}from"./dev.utils-wYkYn08d.js";import{d as z,a as C,c as T}from"./element-interaction-sGYdEpmv.js";import"./i18n-Dl6Jjofb.js";import"./clsx-COFh-Vc8.js";import"./component-Bc1n82Y8.js";import"./block-bem-BpQSY04L.js";import"./component-CZZNha2e.js";import"./component-Cdnq5GYF.js";import"./disabled-Cqhc40CU.js";import"./id-CIYvVaNr.js";import"./label-with-expert-slot-CicRes-W.js";import"./validators-BVM40IEr.js";import"./label-hints-Jn18RUT-.js";import"./name-B2Yf3EpX.js";import"./controller-C3O9ohSP.js";import"./component-names-CrfBV37S.js";import"./events-BIT-JUP2.js";import"./base-web-component-XgI4wUyN.js";import"./behavior-CwUUkdaP.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./label-lang-segment-2_GnxjFp.js";import"./resolve-props-BLZxWC3j.js";import"./aria-labelledby-CLehu03h.js";import"./behavior-B08CXmI4.js";import"./bootstrap-B9DtStuh.js";import"./item-D627ShRd.js";import"./component-CdKSiR5P.js";import"./component-D0mBOGjS.js";import"./Heading-BVhjT9av.js";import"./element-focus-BIRmGg5W.js";const D=b("accept",void 0,u);function I(t){if(null==t?void 0:t.length)return Array.from(t).map((t=>t.name)).join(", ")}const K={required:[...p.required],optional:[...p.optional,D,_,c,v,w,g,x,y]},L=j.forBlock("kol-input-container"),S=L("button"),A=({filename:o,hasFile:e})=>t("span",{class:L("filename",{"has-file":e})},o),O=class extends m{constructor(t){super(),o(this,t),this.id=B("input-file"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.translateFilenameText=a("kol-filename-text"),this.filename=this.translateFilenameText,this.hasFileSelected=!1,this.isDragover=!1,this.ctaRef=T(),this.translateDataBrowseText=a("kol-data-browse-text"),this.browseButton=s((()=>this.host)),this.propsConfig=K,this._accept=void 0,this._accessKey=void 0,this._ariaDetails=void 0,this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._infoPopover=void 0,this._msg=void 0,this._multiple=!1,this._name=void 0,this._on=void 0,this._required=!1,this._shortKey=void 0,this._smartButton=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._variant=void 0,this.handleFileChange=t=>{var o;if(this.ctaRef.el instanceof HTMLInputElement&&"file"===this.ctaRef.el.type){const e=this.ctaRef.el.files;this.hasFileSelected=!!(null==e?void 0:e.length),this.filename=null!==(o=I(e))&&void 0!==o?o:this.translateFilenameText,this.handleChange(t,e),this.formAssociation.setFormAssociatedValue(e)}},this.handleFileInput=t=>{this.ctaRef.el instanceof HTMLInputElement&&"file"===this.ctaRef.el.type&&this.handleInput(t,this.ctaRef.el.files)},this.isDisabled=()=>!0===this._disabled,this.handleDragOver=t=>{this.isDisabled()||(t.preventDefault(),this.isDragover=!0)},this.handleDragLeave=()=>{this.isDragover=!1},this.handleDrop=t=>{var o,e;if(!this.isDisabled()&&(t.preventDefault(),this.ctaRef.el&&(this.isDragover=!1,null===(o=t.dataTransfer)||void 0===o?void 0:o.files.length))){const o=t.dataTransfer.files;this.ctaRef.el.files=o,this.filename=null!==(e=I(o))&&void 0!==e?e:this.translateFilenameText,this.formAssociation.setFormAssociatedValue(o),this.handleChange(t,o),this.handleInput(t,o)}},this.initFormAssociation("file",this._name)}watchAccept(t){D.apply(t,(t=>this.setRenderProp("accept",t)))}watchAccessKey(t){_.apply(t,(t=>this.setRenderProp("accessKey",t))),l(t,this._shortKey)}watchAriaDetails(t){this.applyAriaDetails(t)}watchDisabled(t){this.applyDisabled(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchIcons(t){c.apply(t,(t=>this.setRenderProp("icons",t)))}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMsg(t){this.applyMsg(t)}watchMultiple(t){v.apply(t,(t=>this.setRenderProp("multiple",t)))}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchRequired(t){w.apply(t,(t=>this.setRenderProp("required",t)))}watchShortKey(t){g.apply(t,(t=>this.setRenderProp("shortKey",t))),l(this._accessKey,t)}watchSmartButton(t){null==t?this.unsetRenderProp("smartButton"):x.apply(t,(t=>this.setRenderProp("smartButton",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchVariant(t){y.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){var t;return Promise.resolve(null===(t=this.ctaRef.el)||void 0===t?void 0:t.files)}focus(t){return Promise.resolve()}async click(){return Promise.resolve()}reset(){return this.formAssociation.setFormAssociatedValue(""),this.filename=this.translateFilenameText,this.hasFileSelected=!1,this.ctaRef.el&&(this.ctaRef.el.value=""),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.watchAccept(this._accept),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.watchIcons(this._icons),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchMultiple(this._multiple),this.watchOn(this._on),this.watchRequired(this._required),this.watchShortKey(this._shortKey),this.watchSmartButton(this._smartButton),this.watchTooltipAlign(this._tooltipAlign),this.watchVariant(this._variant)}componentDidRender(){this.browseButton.syncListeners(),this.syncFormField()}disconnectedCallback(){this.browseButton.destroy(),this.destroyFormField()}getInputProps(){const t=this.getRenderProp("accessKey"),o=this.getRenderProp("shortKey"),{ariaDescribedBy:e,hasError:i}=this.getAria();return Object.assign(Object.assign(Object.assign(Object.assign({id:this.id,hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),disabled:this.getRenderProp("disabled"),name:this.getRenderProp("name")||void 0},t?{accessKey:t}:{}),{required:this.getRenderProp("required"),multiple:this.getRenderProp("multiple"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")}),o?{"aria-keyshortcuts":o}:{}),{ref:this.ctaRef,type:"file",accept:this.getRenderProp("accept"),onBlur:this.handleBlur,onChange:this.handleFileChange,onClick:this.handleClick,onFocus:this.handleFocus,onInput:this.handleFileInput,onKeyDown:this.handleKeyDown,ariaDescribedBy:e,"aria-invalid":i?"true":void 0})}render(){const o=this.getRenderProp("disabled"),{startAdornment:i,endAdornment:n}=h({icons:this.getRenderProp("icons"),smartButton:this.getSmartButtonFcProps(this.getRenderProp("smartButton"),o)});return t(e,{key:"54be31014825f2d2d97f39d24127f886967fff40"},t(k,Object.assign({key:"e0f197e4780f25aeb15f2c0a18cd8892ca855846"},this.getFormFieldProps({class:"kol-input-file file",accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,variant:this.getRenderProp("variant"),required:this.getRenderProp("required")})),t(d,{key:"e6649ec54ab4978c11a5c453a5cf3768c2b92270",class:{"kol-input-container--is-dragover":this.isDragover},disabled:o,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:n,onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop},t(A,{key:"c9ae7fe1625913423f8e8cf1bb811b9e212cd9c1",filename:this.filename,hasFile:this.hasFileSelected}),t(f,Object.assign({key:"677e3f8264929fe47efa1575a9354c52390b060c"},this.getInputProps())),t(r,Object.assign({key:"ae542e4cd2348b336f14f1780ed60159493d6007"},this.browseButton.getFcProps({_label:this.translateDataBrowseText,_variant:"primary",_disabled:o},{class:S}))))))}get host(){return i(this)}static get watchers(){return{_accept:[{watchAccept:0}],_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_msg:[{watchMsg:0}],_multiple:[{watchMultiple:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_variant:[{watchVariant:0}]}}};n([z("ctaRef")],O.prototype,"focus",null),n([C("ctaRef")],O.prototype,"click",null),O.style={default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=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-input-container { background-color: transparent; display: grid; position: relative; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; grid-template-columns: 1fr; } .kol-input-container:has(> .kol-input-container__adornment--start) { grid-template-columns: auto 1fr auto; } .kol-input-container__container { position: relative; z-index: 1; } .kol-input-container__adornment { display: flex; align-items: center; } .kol-input-container__adornment .kol-icon { display: grid; place-items: center; } .kol-input { background-color: transparent; width: 100%; min-width: var(--a11y-min-size); } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } :host { display: inline-block; } .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-button__interactive-element::before { content: ""; } .kol-button__text { flex: 1 0 100%; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; } .kol-input::-webkit-file-upload-button, .kol-input::file-selector-button { cursor: pointer; } .kol-input:disabled, .kol-input:disabled::-webkit-file-upload-button, .kol-input:disabled::file-selector-button { cursor: not-allowed; pointer-events: none; } .kol-input-container__container { display: flex; overflow: hidden; align-items: center; } .kol-input-container__button { height: auto; } .kol-input-container__filename { overflow: hidden; flex-grow: 1; white-space: nowrap; text-overflow: ellipsis; } .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) { grid-template-columns: auto 1fr; } }'};export{O as kol_input_file}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{r as t,h as o,H as e,g as i}from"./index-D5UV99lE.js";import{_ as n}from"./tslib.es6-QNbPBOk5.js";import{X as a}from"./common-D03JQJgy.js";import{v as l}from"./access-and-short-key-ijzCZfHm.js";import{h as r,g as s,I as c}from"./input-container-RSmfcRgK.js";import{f as h,B as d,F as p}from"./api-hAvZrw9X.js";import{I as m}from"./input-DjQorwQ5.js";import{i as u,a as k,b,g as f,r as g,p as _}from"./number-value-CMedWR58.js";import{a as y,S as w}from"./suggestions-C38q-5JU.js";import{I as v}from"./component-C9mkZ63L.js";import{a as x,d as j,v as B}from"./variant-PJN56KWi.js";import"./base-web-component-Bcoukts3.js";import{p as z}from"./placeholder-Bwzvbwhh.js";import{r as C}from"./read-only-C5fDsZVK.js";import{r as T}from"./required-CC0212MQ.js";import{s as O}from"./smart-button-BHM06d-t.js";import{s as S}from"./step-BxSThOke.js";import{s as A}from"./suggestions-B79TOsF_.js";import{c as D}from"./clsx-COFh-Vc8.js";import{c as q}from"./dev.utils-BgjegQC8.js";import{d as K,a as V,c as H}from"./element-interaction-Cy9tx3Sx.js";import{s as I}from"./controller-Bf-CAo4Q.js";import"./component-DxddScWx.js";import"./component-CySyXSru.js";import"./bem-registry-BlJAUViA.js";import"./component-DzVHCXnG.js";import"./block-bem-DXqmf3Te.js";import"./component-Ik_-HAMT.js";import"./isArray-CcrBs4JM.js";import"./component-YhEwg1LK.js";import"./events-BIT-JUP2.js";import"./behavior-Zr6qAX7F.js";import"./bootstrap-DTVsVq0w.js";import"./component-names-Dhbtt0mX.js";import"./i18n-Dl6Jjofb.js";import"./aria-labelledby-BRToXqsQ.js";import"./name-m3owaZxH.js";import"./behavior-BlS6DO8T.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./align-DsFuqEf5.js";import"./label-BNtqGdMQ.js";import"./disabled-BaPgTuFO.js";import"./label-with-expert-slot-aAOUzLo3.js";import"./item-2cprk9ut.js";import"./resolve-props-47S-r31C.js";import"./api-CvPkoAAG.js";import"./item-Bfk2xd-D.js";import"./component-DHl33p9J.js";import"./i18n-DRQl0u--.js";import"./component-BmJGOcby.js";import"./Heading-0teSdkFq.js";import"./element-focus-Cp994Rrk.js";const M={required:[...h.required],optional:[...h.optional,x,y,r,u,k,b,z,C,T,j,O,S,A,B]},R="kol-input-number__step-button",P=t=>{var o;return!0===(null===(o=null==t?void 0:t.classList)||void 0===o?void 0:o.contains(R))},G=class extends d{constructor(o){super(),t(this,o),this.id=q("input-number"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=H(),this.valueType="null",this.hasValue=!1,this._autoComplete="off",this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._readOnly=!1,this._required=!1,this._tooltipAlign="top",this._touched=!1,this.handleNumberInput=t=>{this._value=this.readInputValue(),this.handleInput(t,this._value)},this.handleNumberChange=t=>{const o=this.readInputValue();this.handleChange(t,o),this.hasValue=Boolean(o)},this.handleNumberFocus=t=>{P(t.relatedTarget)||this.handleFocus(t)},this.handleNumberBlur=t=>{P(t.relatedTarget)||this.handleBlur(t)},this.handleNumberKeyDown=t=>{this.handleKeyDown(t),I(t,{form:this.host,ref:this.ctaRef.el})},this.handleStepDown=t=>{this.step(t,"down")},this.handleStepUp=t=>{this.step(t,"up")},this.initFormAssociation("number",this._name)}watchAccessKey(t){x.apply(t,(t=>this.setRenderProp("accessKey",t))),l(t,this._shortKey)}watchAriaDetails(t){this.applyAriaDetails(t)}watchAutoComplete(t){y.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){r.apply(t,(t=>this.setRenderProp("icons",t)))}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMax(t){u.apply(t,(t=>this.setRenderProp("max",t)))}watchMin(t){k.apply(t,(t=>this.setRenderProp("min",t)))}watchMsg(t){this.applyMsg(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchPlaceholder(t){z.apply(t,(t=>this.setRenderProp("placeholder",t)))}watchReadOnly(t){C.apply(t,(t=>this.setRenderProp("readOnly",t)))}watchRequired(t){T.apply(t,(t=>this.setRenderProp("required",t)))}watchShortKey(t){j.apply(t,(t=>this.setRenderProp("shortKey",t))),l(this._accessKey,t)}watchSmartButton(t){null==t?this.unsetRenderProp("smartButton"):O.apply(t,(t=>this.setRenderProp("smartButton",t)))}watchSuggestions(t){A.apply(t,(t=>this.setRenderProp("suggestions",t)))}watchStep(t){S.apply(t,(t=>this.setRenderProp("step",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchValue(t){var o;b.apply(t,(t=>this.setRenderProp("value",t))),this.formAssociation.setFormAssociatedValue(null!==(o=this.getRenderProp("value"))&&void 0!==o?o:null),null!=t&&(this.valueType=f(t))}watchVariant(t){B.apply(t,(t=>this.setRenderProp("variant",t)))}async getValue(){return this.remapValue(this.getRenderProp("value"))}async focus(t){}async click(){}componentWillLoad(){this.initRenderProps(M),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.watchMax(this._max),this.watchMin(this._min),this.watchSuggestions(this._suggestions),this.watchPlaceholder(this._placeholder),this.watchReadOnly(this._readOnly),this.watchRequired(this._required),this.watchStep(this._step),this.watchValue(this._value),this.hasValue=Boolean(this.getRenderProp("value"))}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField()}remapValue(t){return g(t,this.valueType)}readInputValue(){var t;return this.remapValue(_(null===(t=this.ctaRef.el)||void 0===t?void 0:t.value))}step(t,o){var e,i,n;"up"===o?null===(e=this.ctaRef.el)||void 0===e||e.stepUp():null===(i=this.ctaRef.el)||void 0===i||i.stepDown(),this._value=this.readInputValue(),this.handleInput(t,this._value),this.handleChange(t,this._value),this.hasValue=Boolean(this._value),null===(n=this.ctaRef.el)||void 0===n||n.focus()}renderStepButton(t){return this._disabled||this._readOnly||"hide"===a("inputNumberButtons",this.host)?null:o("button",{type:"button","aria-hidden":"true",tabIndex:-1,class:`${R} ${R}-${t} kol-input-container__smart-button`,"data-testid":`kol-input-number-step-${t}`,onClick:"up"===t?this.handleStepUp:this.handleStepDown,disabled:this._disabled||this._readOnly},o(v,{icons:"up"===t?"kolicon-plus":"kolicon-minus",label:""}))}getInputProps(){var t,e,i,n;const a=this.id,l=this.getRenderProp("accessKey"),r=this.getRenderProp("placeholder"),s=this.getRenderProp("shortKey"),c=this.getRenderProp("suggestions"),{ariaDescribedBy:h,hasError:d}=this.getAria();return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({id:a,hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),disabled:this.getRenderProp("disabled"),name:this.getRenderProp("name")||void 0},l?{accessKey:l}:{}),{value:null!==(t=this.getRenderProp("value"))&&void 0!==t?t:null,required:this.getRenderProp("required")}),void 0!==r?{placeholder:r}:{}),{autoComplete:this.getRenderProp("autoComplete"),readonly:this.getRenderProp("readOnly"),min:null!==(e=this.getRenderProp("min"))&&void 0!==e?e:null,max:null!==(i=this.getRenderProp("max"))&&void 0!==i?i:null,step:null!==(n=this.getRenderProp("step"))&&void 0!==n?n:null,touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")}),s?{"aria-keyshortcuts":s}:{}),c.length>0?{suggestions:o(w,{id:a,suggestions:c})}:{}),{ref:this.ctaRef,type:"number",onBlur:this.handleNumberBlur,onChange:this.handleNumberChange,onClick:this.handleClick,onFocus:this.handleNumberFocus,onInput:this.handleNumberInput,onKeyDown:this.handleNumberKeyDown,ariaDescribedBy:h,"aria-invalid":d?"true":void 0})}render(){const t=this.getRenderProp("disabled"),{startAdornment:i,endAdornment:n}=s({icons:this.getRenderProp("icons"),smartButton:this.getSmartButtonFcProps(this.getRenderProp("smartButton"),t),startAdornment:this.renderStepButton("down"),endAdornment:this.renderStepButton("up")});return o(e,{key:"fe94ef26ac088b6c70282cce9f8316f60b8619a1"},o(p,Object.assign({key:"d3b7d3799320848da331bfca5a9cf5d3985019a6"},this.getFormFieldProps({class:D("kol-input-number","number",{"has-value":this.hasValue}),accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,variant:this.getRenderProp("variant"),required:this.getRenderProp("required"),readOnly:this.getRenderProp("readOnly")})),o(c,{key:"5e31fb7ecc013d3ebe7719d4f1313c62667f6caa",disabled:t,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:n},o(m,Object.assign({key:"51098e60535ac96fe6c14ceb828436ae967a2539"},this.getInputProps())))))}get host(){return i(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}],_max:[{watchMax:0}],_min:[{watchMin:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_placeholder:[{watchPlaceholder:0}],_readOnly:[{watchReadOnly:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_suggestions:[{watchSuggestions:0}],_step:[{watchStep:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}};n([K("ctaRef")],G.prototype,"focus",null),n([V("ctaRef")],G.prototype,"click",null),G.style={default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-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-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-input-number input { appearance: textfield; text-align: right; } .kol-input-number input::-webkit-inner-spin-button { display: none; } }'};export{G as kol_input_number}
|
|
4
|
+
import{r as t,h as o,H as e,g as i}from"./index-BKEJuyFi.js";import{_ as n}from"./tslib.es6-QNbPBOk5.js";import{X as l}from"./common-OzsC_6kt.js";import{v as a}from"./access-and-short-key-ijzCZfHm.js";import{h as s,g as r,I as c}from"./input-container-C2Am7LEP.js";import{f as h,B as d,F as m}from"./api-D92_O-0H.js";import{I as p}from"./input-Dja5Qioc.js";import{i as u,a as k,b,g as f,r as g,p as _}from"./number-value-B-SJ1dRo.js";import{a as y,S as v}from"./suggestions-DuqzGDve.js";import{I as w}from"./component-Cdnq5GYF.js";import{a as x,d as j,v as B}from"./component-8ALsFV4i.js";import"./props-from-config-Ci0dILpz.js";import{p as C}from"./placeholder-BeLIzdJv.js";import{r as z}from"./read-only-Bby9r6ZX.js";import{r as O}from"./required-hoaT7UmZ.js";import{s as S}from"./smart-button-CS_ZriPt.js";import{s as T}from"./step-Bdj89bGO.js";import{s as D}from"./suggestions-Dy1X-Pc3.js";import{c as I}from"./clsx-COFh-Vc8.js";import{c as A}from"./dev.utils-wYkYn08d.js";import{d as K,a as P,c as V}from"./element-interaction-sGYdEpmv.js";import{s as L}from"./controller-C3O9ohSP.js";import"./component-BTMWoACz.js";import"./bem-registry-CWN7_O1L.js";import"./component-Bc1n82Y8.js";import"./block-bem-BpQSY04L.js";import"./component-CZZNha2e.js";import"./disabled-Cqhc40CU.js";import"./id-CIYvVaNr.js";import"./label-with-expert-slot-CicRes-W.js";import"./validators-BVM40IEr.js";import"./label-hints-Jn18RUT-.js";import"./name-B2Yf3EpX.js";import"./aria-labelledby-CLehu03h.js";import"./events-BIT-JUP2.js";import"./behavior-B08CXmI4.js";import"./bootstrap-B9DtStuh.js";import"./component-names-CrfBV37S.js";import"./i18n-Dl6Jjofb.js";import"./behavior-CwUUkdaP.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./label-lang-segment-2_GnxjFp.js";import"./base-web-component-XgI4wUyN.js";import"./item-C4AmpdVD.js";import"./resolve-props-BLZxWC3j.js";import"./item-D627ShRd.js";import"./component-CdKSiR5P.js";import"./i18n-DtLKn3Xt.js";import"./component-D0mBOGjS.js";import"./Heading-BVhjT9av.js";import"./element-focus-BIRmGg5W.js";const q={required:[...h.required],optional:[...h.optional,x,y,s,u,k,b,C,z,O,j,S,T,D,B]},G="kol-input-number__step-button",R=t=>{var o;return!0===(null===(o=null==t?void 0:t.classList)||void 0===o?void 0:o.contains(G))},H=class extends d{constructor(o){super(),t(this,o),this.id=A("input-number"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=V(),this.valueType="null",this.hasValue=!1,this.propsConfig=q,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._max=void 0,this._min=void 0,this._msg=void 0,this._name=void 0,this._on=void 0,this._placeholder=void 0,this._readOnly=!1,this._required=!1,this._shortKey=void 0,this._smartButton=void 0,this._suggestions=void 0,this._step=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this._variant=void 0,this.handleNumberInput=t=>{this._value=this.readInputValue(),this.handleInput(t,this._value)},this.handleNumberChange=t=>{const o=this.readInputValue();this.handleChange(t,o),this.hasValue=Boolean(o)},this.handleNumberFocus=t=>{R(t.relatedTarget)||this.handleFocus(t)},this.handleNumberBlur=t=>{R(t.relatedTarget)||this.handleBlur(t)},this.handleNumberKeyDown=t=>{this.handleKeyDown(t),L(t,{form:this.host,ref:this.ctaRef.el})},this.handleStepDown=t=>{this.step(t,"down")},this.handleStepUp=t=>{this.step(t,"up")},this.initFormAssociation("number",this._name)}watchAccessKey(t){x.apply(t,(t=>this.setRenderProp("accessKey",t))),a(t,this._shortKey)}watchAriaDetails(t){this.applyAriaDetails(t)}watchAutoComplete(t){y.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){s.apply(t,(t=>this.setRenderProp("icons",t)))}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMax(t){u.apply(t,(t=>this.setRenderProp("max",t)))}watchMin(t){k.apply(t,(t=>this.setRenderProp("min",t)))}watchMsg(t){this.applyMsg(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchPlaceholder(t){C.apply(t,(t=>this.setRenderProp("placeholder",t)))}watchReadOnly(t){z.apply(t,(t=>this.setRenderProp("readOnly",t)))}watchRequired(t){O.apply(t,(t=>this.setRenderProp("required",t)))}watchShortKey(t){j.apply(t,(t=>this.setRenderProp("shortKey",t))),a(this._accessKey,t)}watchSmartButton(t){null==t?this.unsetRenderProp("smartButton"):S.apply(t,(t=>this.setRenderProp("smartButton",t)))}watchSuggestions(t){D.apply(t,(t=>this.setRenderProp("suggestions",t)))}watchStep(t){T.apply(t,(t=>this.setRenderProp("step",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchValue(t){var o;b.apply(t,(t=>this.setRenderProp("value",t))),this.formAssociation.setFormAssociatedValue(null!==(o=this.getRenderProp("value"))&&void 0!==o?o:null),null!=t&&(this.valueType=f(t))}watchVariant(t){B.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){return Promise.resolve(this.remapValue(this.getRenderProp("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.watchMax(this._max),this.watchMin(this._min),this.watchSuggestions(this._suggestions),this.watchPlaceholder(this._placeholder),this.watchReadOnly(this._readOnly),this.watchRequired(this._required),this.watchStep(this._step),this.watchValue(this._value),this.hasValue=Boolean(this.getRenderProp("value"))}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField()}remapValue(t){return g(t,this.valueType)}readInputValue(){var t;return this.remapValue(_(null===(t=this.ctaRef.el)||void 0===t?void 0:t.value))}step(t,o){var e,i,n;"up"===o?null===(e=this.ctaRef.el)||void 0===e||e.stepUp():null===(i=this.ctaRef.el)||void 0===i||i.stepDown(),this._value=this.readInputValue(),this.handleInput(t,this._value),this.handleChange(t,this._value),this.hasValue=Boolean(this._value),null===(n=this.ctaRef.el)||void 0===n||n.focus()}renderStepButton(t){return this._disabled||this._readOnly||"hide"===l("inputNumberButtons",this.host)?null:o("button",{type:"button","aria-hidden":"true",tabIndex:-1,class:`${G} ${G}-${t} kol-input-container__smart-button`,onClick:"up"===t?this.handleStepUp:this.handleStepDown,disabled:this._disabled||this._readOnly},o(w,{icons:"up"===t?"kolicon-plus":"kolicon-minus",label:""}))}getInputProps(){var t,e,i,n;const l=this.id,a=this.getRenderProp("accessKey"),s=this.getRenderProp("placeholder"),r=this.getRenderProp("shortKey"),c=this.getRenderProp("suggestions"),{ariaDescribedBy:h,hasError:d}=this.getAria();return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({id:l,hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),disabled:this.getRenderProp("disabled"),name:this.getRenderProp("name")||void 0},a?{accessKey:a}:{}),{value:null!==(t=this.getRenderProp("value"))&&void 0!==t?t:null,required:this.getRenderProp("required")}),void 0!==s?{placeholder:s}:{}),{autoComplete:this.getRenderProp("autoComplete"),readonly:this.getRenderProp("readOnly"),min:null!==(e=this.getRenderProp("min"))&&void 0!==e?e:null,max:null!==(i=this.getRenderProp("max"))&&void 0!==i?i:null,step:null!==(n=this.getRenderProp("step"))&&void 0!==n?n:null,touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")}),r?{"aria-keyshortcuts":r}:{}),c.length>0?{suggestions:o(v,{id:l,suggestions:c})}:{}),{ref:this.ctaRef,type:"number",onBlur:this.handleNumberBlur,onChange:this.handleNumberChange,onClick:this.handleClick,onFocus:this.handleNumberFocus,onInput:this.handleNumberInput,onKeyDown:this.handleNumberKeyDown,ariaDescribedBy:h,"aria-invalid":d?"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),startAdornment:this.renderStepButton("down"),endAdornment:this.renderStepButton("up")});return o(e,{key:"86cd435b1509468a5134de21e60196d051b0dc16"},o(m,Object.assign({key:"138340449743f0ddcec05999c9a1504425c2ef0e"},this.getFormFieldProps({class:I("kol-input-number","number",{"has-value":this.hasValue}),accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,variant:this.getRenderProp("variant"),required:this.getRenderProp("required"),readOnly:this.getRenderProp("readOnly")})),o(c,{key:"f3ed84ef020d2480a7d75cc18cae19bd40b4be0d",disabled:t,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:n},o(p,Object.assign({key:"b8125e4a0dcc330a4b40ec8ad45e195550b67ff4"},this.getInputProps())))))}get host(){return i(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}],_max:[{watchMax:0}],_min:[{watchMin:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_placeholder:[{watchPlaceholder:0}],_readOnly:[{watchReadOnly:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_suggestions:[{watchSuggestions:0}],_step:[{watchStep:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}};n([K("ctaRef")],H.prototype,"focus",null),n([P("ctaRef")],H.prototype,"click",null),H.style={default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=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-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-input-number input { appearance: textfield; text-align: right; } .kol-input-number input::-webkit-inner-spin-button { display: none; } }'};export{H as kol_input_number}
|