@public-ui/components 5.0.0-beta.1 → 5.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/kolicons/kolicons.eot +0 -0
- package/assets/kolicons/kolicons.ttf +0 -0
- package/assets/kolicons/kolicons.woff +0 -0
- package/assets/kolicons/kolicons.woff2 +0 -0
- package/assets/kolicons/style.css +6 -6
- package/custom-elements.json +31 -77
- package/dist/cjs/{Heading-C9osvqjY.js → Heading-D1EJem-Q.js} +7 -7
- package/dist/cjs/{access-and-short-key-D40HWCJe.js → access-and-short-key-BCyKbrgd.js} +2 -0
- package/dist/cjs/{api-U7I3XBPI.js → api-DU50b7pU.js} +39 -41
- package/dist/cjs/{app-globals-DsADKGEe.js → app-globals-Cshxaw1i.js} +6 -5
- package/dist/cjs/aria-current-service-XKodxE3I.js +30 -0
- package/dist/cjs/{aria-labelledby-BRMgWRVp.js → aria-labelledby-Du7FNBK5.js} +2 -13
- package/dist/cjs/{base-CyqDmoZZ.js → base-2k8L5Z0t.js} +14 -15
- package/dist/cjs/{base-l99dGLYo.js → base-CrH3N2Zu.js} +108 -80
- package/dist/cjs/{base-DcN_YC72.js → base-DXysZJF0.js} +13 -14
- package/dist/cjs/{base-DCxbMk0f.js → base-lY3OV-WH.js} +17 -19
- package/dist/cjs/{base-web-component-DxJ0hQ9u.js → base-web-component-CB32nH5g.js} +17 -19
- package/dist/cjs/{base-web-component-BnaxS2Z3.js → base-web-component-CnTCSVmC.js} +16 -19
- package/dist/cjs/{base-web-component-B6mwGD0m.js → base-web-component-vlBTFoc9.js} +2 -1
- package/dist/cjs/{behavior-CTaw4dj3.js → behavior-BonfWPFJ.js} +6 -6
- package/dist/cjs/{behavior-BNyFQ_B5.js → behavior-DdUDpqCO.js} +10 -10
- package/dist/cjs/{behavior-DrFJy0QC.js → behavior-Dznxy-IT.js} +33 -33
- package/dist/cjs/{bem-registry-CyxrH26c.js → bem-registry-CGf0w2u7.js} +61 -15
- package/dist/cjs/bootstrap-W0pDCbwR.js +59 -0
- package/dist/cjs/{color-BW4t1Cif.js → color-gGnOnvt7.js} +4 -4
- package/dist/cjs/component-B6wRTFBN.js +19 -0
- package/dist/cjs/component-B7ixbeft.js +52 -0
- package/dist/cjs/{component-4OErV1Bg.js → component-BaHA5GQ0.js} +11 -13
- package/dist/cjs/{component-Cty_HlJR.js → component-BeAWp-m9.js} +6 -5
- package/dist/cjs/component-Bnj9veMz.js +177 -0
- package/dist/cjs/{component-Cvjqbxf4.js → component-C9dVa2_4.js} +16 -19
- package/dist/cjs/{component-DF5q9ssd.js → component-D680TPaU.js} +13 -14
- package/dist/cjs/{component-DtxKrISb.js → component-DNRlsQ2M.js} +6 -7
- package/dist/cjs/{component-lmJOXuD6.js → component-WkG3-M2X.js} +8 -11
- package/dist/cjs/component-names-B-xDXf8U.js +121 -0
- package/dist/cjs/{component-DAQ1XSNA.js → component-vjLswij7.js} +6 -8
- package/dist/cjs/{contrast-4mAdSLs0.js → contrast-B6L84xFP.js} +5 -5
- package/dist/cjs/{controller-tEyAFJN9.js → controller-BcC7oIkq.js} +20 -20
- package/dist/cjs/{dev.utils-D5qh-RLT.js → dev.utils-Bk_hA4qQ.js} +9 -10
- package/dist/cjs/{devtools-Dtv-Apvj.js → devtools-CJixr1wI.js} +24 -25
- package/dist/cjs/{disabled-jYcvcwjv.js → disabled-BoM7lglH.js} +2 -1
- package/dist/cjs/{element-focus-CzkKMwtn.js → element-focus-BL2fXDD1.js} +1 -0
- package/dist/cjs/{element-interaction-BtYQAbhu.js → element-interaction-CKiHuPu0.js} +2 -1
- package/dist/cjs/{events-BJC5JJcU.js → events-Ce8f_epW.js} +2 -0
- package/dist/cjs/{field-control-Btb5zapE.js → field-control-Bn_hd-6N.js} +12 -13
- package/dist/cjs/{group-Dg2gJze5.js → group-TVkuA3Dx.js} +8 -9
- package/dist/cjs/{has-closer-CvNa5gqv.js → has-closer-CKT_frM5.js} +2 -1
- package/dist/cjs/{href-BBhiVyPb.js → href-yo_BPSR1.js} +2 -1
- package/dist/cjs/{i18n-BSWM5nea.js → i18n-DOGd0sdR.js} +15 -10
- package/dist/cjs/{i18n-BnOWw1MQ.js → i18n-DdWdytnt.js} +3 -3
- package/dist/cjs/{id-D1VZsLkg.js → id-C7_ak25l.js} +2 -1
- package/dist/cjs/{index-BacpU-d0.js → index-DLwNpyJ5.js} +1740 -61
- package/dist/cjs/index.cjs.js +21 -15
- package/dist/cjs/{input-container-PaL4ZNf3.js → input-container-CvDde8uk.js} +17 -20
- package/dist/cjs/input-uZRNVUsq.js +18 -0
- package/dist/cjs/{item-CLnIJY4J.js → item-D23h7gmK.js} +10 -10
- package/dist/cjs/{item-CPxmIcoq.js → item-D5hmTqf_.js} +17 -18
- package/dist/cjs/{item-Cckqxc6T.js → item-DimqWDZ7.js} +65 -44
- package/dist/cjs/{item-CErU-EPA.js → item-FYvfrXLj.js} +10 -10
- package/dist/cjs/{item-pool-CY0WyGOL.js → item-pool-BJcplkbh.js} +2 -0
- package/dist/cjs/{keyboard-Ca1I5RM2.js → keyboard-21hAUDzL.js} +2 -0
- package/dist/cjs/kol-abbr.cjs.entry.js +12 -16
- package/dist/cjs/kol-accordion.cjs.entry.js +23 -25
- package/dist/cjs/kol-alert.cjs.entry.js +35 -37
- package/dist/cjs/kol-avatar.cjs.entry.js +22 -25
- package/dist/cjs/kol-badge.cjs.entry.js +35 -38
- package/dist/cjs/kol-breadcrumb.cjs.entry.js +41 -44
- package/dist/cjs/kol-button-link.cjs.entry.js +34 -36
- package/dist/cjs/kol-button.cjs.entry.js +34 -36
- package/dist/cjs/kol-card.cjs.entry.js +59 -101
- package/dist/cjs/kol-combobox.cjs.entry.js +88 -90
- package/dist/cjs/kol-details.cjs.entry.js +23 -25
- package/dist/cjs/kol-dialog.cjs.entry.js +39 -42
- package/dist/cjs/kol-drawer.cjs.entry.js +39 -42
- package/dist/cjs/kol-form.cjs.entry.js +34 -37
- package/dist/cjs/kol-heading.cjs.entry.js +20 -22
- package/dist/cjs/kol-icon.cjs.entry.js +20 -18
- package/dist/cjs/kol-image.cjs.entry.js +25 -27
- package/dist/cjs/kol-input-checkbox.cjs.entry.js +95 -96
- package/dist/cjs/kol-input-color.cjs.entry.js +69 -70
- package/dist/cjs/kol-input-date.cjs.entry.js +82 -84
- package/dist/cjs/kol-input-email.cjs.entry.js +85 -86
- package/dist/cjs/kol-input-file.cjs.entry.js +62 -63
- package/dist/cjs/kol-input-number.cjs.entry.js +84 -85
- package/dist/cjs/kol-input-password.cjs.entry.js +84 -85
- package/dist/cjs/kol-input-radio.cjs.entry.js +66 -69
- package/dist/cjs/kol-input-range.cjs.entry.js +67 -69
- package/dist/cjs/kol-input-text.cjs.entry.js +98 -99
- package/dist/cjs/kol-kolibri.cjs.entry.js +13 -16
- package/dist/cjs/kol-link-button.cjs.entry.js +43 -45
- package/dist/cjs/kol-link.cjs.entry.js +41 -43
- package/dist/cjs/kol-meter.cjs.entry.js +27 -36
- package/dist/cjs/kol-modal.cjs.entry.js +39 -42
- package/dist/cjs/kol-nav.cjs.entry.js +51 -54
- package/dist/cjs/kol-pagination.cjs.entry.js +70 -73
- package/dist/cjs/kol-popover-button.cjs.entry.js +67 -104
- package/dist/cjs/kol-progress.cjs.entry.js +27 -27
- package/dist/cjs/kol-quote.cjs.entry.js +17 -19
- package/dist/cjs/kol-select.cjs.entry.js +73 -75
- package/dist/cjs/kol-single-select.cjs.entry.js +96 -93
- package/dist/cjs/kol-skip-nav.cjs.entry.js +40 -43
- package/dist/cjs/kol-spin.cjs.entry.js +26 -29
- package/dist/cjs/kol-split-button.cjs.entry.js +40 -42
- package/dist/cjs/kol-table-stateful.cjs.entry.js +140 -113
- package/dist/cjs/kol-table-stateless.cjs.entry.js +62 -74
- package/dist/cjs/kol-tabs.cjs.entry.js +58 -64
- package/dist/cjs/kol-textarea.cjs.entry.js +84 -84
- package/dist/cjs/kol-toast-container.cjs.entry.js +24 -28
- package/dist/cjs/kol-toolbar.cjs.entry.js +68 -67
- package/dist/cjs/kol-tree-item.cjs.entry.js +44 -44
- package/dist/cjs/kol-tree.cjs.entry.js +35 -25
- package/dist/cjs/kol-version.cjs.entry.js +26 -29
- package/dist/cjs/kolibri.cjs.js +6 -5
- package/dist/cjs/{label-vVOiX4dC.js → label-CCqNq5tW.js} +4 -3
- package/dist/cjs/{label-hints-D6EBRW9T.js → label-hints-qecpxRCt.js} +4 -4
- package/dist/cjs/{label-lang-segment-CYlAqtUl.js → label-lang-segment-BGLGUvz3.js} +3 -2
- package/dist/cjs/{label-with-expert-slot-B9z4nqW1.js → label-with-expert-slot-VcIxokIa.js} +4 -3
- package/dist/cjs/{level-BAiEYu4U.js → level-CVJUatGG.js} +2 -1
- package/dist/cjs/{link-target-4AzB3I84.js → link-target-BchnvpO8.js} +2 -1
- package/dist/cjs/{links-CPNK7VZo.js → links-B1TspXWw.js} +3 -3
- package/dist/cjs/loader.cjs.js +5 -4
- package/dist/cjs/{multiple-B3ZpkzWu.js → multiple-DO-7DpoM.js} +2 -1
- package/dist/cjs/{number-value-B2yoKlvx.js → number-value-C4kXarZR.js} +3 -2
- package/dist/cjs/{open-CvoX_qxD.js → open-Cmz8IDwx.js} +2 -1
- package/dist/cjs/{open-items-cache-B6hP2Aqy.js → open-items-cache-C162W-_D.js} +2 -0
- package/dist/cjs/{options-z7FKffHh.js → options-B5TaPd9X.js} +2 -0
- package/dist/cjs/{options-B2pQC9w2.js → options-CYbRA9bk.js} +3 -3
- package/dist/cjs/{orientation-u2cvwgBc.js → orientation-qw5D2TnY.js} +2 -1
- package/dist/cjs/{placeholder-C9Ngp2tQ.js → placeholder-BKqOq75d.js} +2 -1
- package/dist/cjs/{props-from-config-BQ2SOZlz.js → props-from-config-utp9cExR.js} +149 -74
- package/dist/cjs/{read-only-DfWF-Coi.js → read-only-BA_w8-u1.js} +2 -1
- package/dist/cjs/{required-CdXn16dq.js → required-CxAjKjbz.js} +2 -1
- package/dist/cjs/{resolve-props-B8kPPEMw.js → resolve-props--Nci0LhR.js} +9 -9
- package/dist/cjs/{resolve-props-B5MED90T.js → resolve-props-Dj6sEqG7.js} +9 -10
- package/dist/cjs/{rows-Ca5ya9tG.js → rows-DIswNtTH.js} +2 -1
- package/dist/cjs/{scroll-lock-jojYHBR3.js → scroll-lock-DCG-yvr9.js} +8 -7
- package/dist/cjs/shared-state-DgRutURI.js +16 -0
- package/dist/cjs/{smart-button-CB8qIzgQ.js → smart-button-DseYlks-.js} +3 -3
- package/dist/cjs/{spell-check-DKRC8xbW.js → spell-check-dk8U8oOc.js} +2 -1
- package/dist/cjs/{src-C3NG0rLO.js → src-CtFQUaCM.js} +2 -1
- package/dist/cjs/{step-CZNyTb2h.js → step-CvPxSo00.js} +2 -1
- package/dist/cjs/{suggestions-BRclldK2.js → suggestions-DUxsRVmB.js} +4 -4
- package/dist/cjs/{suggestions-CRyB_YCX.js → suggestions-DgLZZdei.js} +3 -3
- package/dist/cjs/test-component.cjs.entry.js +3 -3
- package/dist/cjs/theme-store-CLf_JZmz.js +13 -0
- package/dist/cjs/{toggle-handler-DRPltZqQ.js → toggle-handler-B-_ojZ0I.js} +13 -16
- package/dist/cjs/{tooltip-open-tracking-Ba0udJRU.js → tooltip-open-tracking-CewIRZOe.js} +8 -5
- package/dist/cjs/{unique-nav-labels-CIAwid5V.js → unique-nav-labels-CFCBdBmd.js} +3 -3
- package/dist/cjs/{unit-bsoemclF.js → unit-DexLlB8H.js} +2 -1
- package/dist/cjs/{validators-DuLdbf2D.js → validators-CxXwm4f6.js} +4 -1
- package/dist/cjs/{value-string-DZ_FFaUt.js → value-string-Ct7kzFWf.js} +2 -1
- package/dist/cjs/{width-BklaRCqt.js → width-BXrduM1f.js} +2 -1
- package/dist/collection/collection-manifest.json +1 -8
- package/dist/collection/components/abbr/component.js +2 -2
- package/dist/collection/components/abbr/style.css +21 -0
- package/dist/collection/components/accordion/component.js +2 -2
- package/dist/collection/components/accordion/style.css +23 -2
- package/dist/collection/components/alert/component.js +8 -6
- package/dist/collection/components/alert/style.css +23 -2
- package/dist/collection/components/avatar/component.js +5 -8
- package/dist/collection/components/avatar/style.css +21 -0
- package/dist/collection/components/badge/component.js +5 -5
- package/dist/collection/components/badge/style.css +23 -2
- package/dist/collection/components/breadcrumb/component.js +4 -4
- package/dist/collection/components/breadcrumb/style.css +23 -2
- package/dist/collection/components/button/component.js +3 -3
- package/dist/collection/components/button/style.css +23 -2
- package/dist/collection/components/button-link/component.js +3 -3
- package/dist/collection/components/button-link/style.css +23 -2
- package/dist/collection/components/card/component.js +54 -19
- package/dist/collection/components/card/style.css +26 -2
- package/dist/collection/components/combobox/component.js +116 -116
- package/dist/collection/components/combobox/style.css +23 -2
- package/dist/collection/components/details/component.js +2 -2
- package/dist/collection/components/details/style.css +23 -2
- package/dist/collection/components/dialog/base.js +2 -2
- package/dist/collection/components/dialog/component.js +6 -6
- package/dist/collection/components/dialog/style.css +26 -2
- package/dist/collection/components/drawer/component.js +4 -4
- package/dist/collection/components/drawer/style.css +26 -2
- package/dist/collection/components/form/component.js +4 -4
- package/dist/collection/components/form/controller.js +4 -3
- package/dist/collection/components/form/style.css +23 -2
- package/dist/collection/components/heading/component.js +5 -5
- package/dist/collection/components/heading/style.css +21 -0
- package/dist/collection/components/icon/component.js +6 -6
- package/dist/collection/components/icon/style.css +2 -2
- package/dist/collection/components/image/component.js +40 -40
- package/dist/collection/components/image/style.css +21 -0
- package/dist/collection/components/input-checkbox/component.js +119 -117
- package/dist/collection/components/input-checkbox/style.css +23 -2
- package/dist/collection/components/input-color/component.js +42 -40
- package/dist/collection/components/input-color/style.css +23 -2
- package/dist/collection/components/input-date/component.js +83 -81
- package/dist/collection/components/input-date/style.css +23 -2
- package/dist/collection/components/input-email/component.js +89 -86
- package/dist/collection/components/input-email/style.css +23 -2
- package/dist/collection/components/input-file/component.js +37 -34
- package/dist/collection/components/input-file/style.css +23 -2
- package/dist/collection/components/input-number/component.js +70 -68
- package/dist/collection/components/input-number/style.css +23 -2
- package/dist/collection/components/input-password/component.js +90 -87
- package/dist/collection/components/input-password/style.css +23 -2
- package/dist/collection/components/input-radio/component.js +36 -37
- package/dist/collection/components/input-radio/style.css +23 -2
- package/dist/collection/components/input-range/component.js +38 -38
- package/dist/collection/components/input-range/style.css +23 -2
- package/dist/collection/components/input-text/component.js +148 -146
- package/dist/collection/components/input-text/style.css +23 -2
- package/dist/collection/components/kolibri/component.js +2 -2
- package/dist/collection/components/kolibri/style.css +21 -0
- package/dist/collection/components/link/base.js +1 -1
- package/dist/collection/components/link/component.js +27 -27
- package/dist/collection/components/link/style.css +23 -2
- package/dist/collection/components/link-button/component.js +28 -28
- package/dist/collection/components/link-button/style.css +23 -2
- package/dist/collection/components/meter/component.js +7 -13
- package/dist/collection/components/meter/style.css +21 -0
- package/dist/collection/components/modal/component.js +6 -6
- package/dist/collection/components/modal/style.css +26 -2
- package/dist/collection/components/nav/component.js +3 -3
- package/dist/collection/components/nav/style.css +23 -2
- package/dist/collection/components/pagination/component.js +92 -94
- package/dist/collection/components/pagination/style.css +23 -2
- package/dist/collection/components/popover-button/component.js +40 -11
- package/dist/collection/components/popover-button/style.css +23 -2
- package/dist/collection/components/progress/component.js +10 -10
- package/dist/collection/components/progress/style.css +21 -0
- package/dist/collection/components/public-api/contract.js +46 -6
- package/dist/collection/components/quote/component.js +6 -6
- package/dist/collection/components/quote/style.css +21 -0
- package/dist/collection/components/select/component.js +61 -61
- package/dist/collection/components/select/style.css +23 -2
- package/dist/collection/components/single-select/component.js +141 -137
- package/dist/collection/components/single-select/style.css +23 -2
- package/dist/collection/components/skip-nav/component.js +3 -3
- package/dist/collection/components/skip-nav/style.css +23 -2
- package/dist/collection/components/spin/component.js +30 -30
- package/dist/collection/components/spin/style.css +29 -1
- package/dist/collection/components/split-button/component.js +5 -5
- package/dist/collection/components/split-button/style.css +23 -2
- package/dist/collection/components/table-stateful/component.js +118 -122
- package/dist/collection/components/table-stateful/style.css +35 -4
- package/dist/collection/components/table-stateless/base.js +11 -2
- package/dist/collection/components/table-stateless/component.js +34 -75
- package/dist/collection/components/table-stateless/style.css +35 -4
- package/dist/collection/components/tabs/component.js +19 -28
- package/dist/collection/components/tabs/style.css +24 -3
- package/dist/collection/components/textarea/component.js +91 -89
- package/dist/collection/components/textarea/style.css +23 -2
- package/dist/collection/components/toaster/shadow.js +3 -4
- package/dist/collection/components/toaster/style.css +23 -2
- package/dist/collection/components/toaster/toaster.js +2 -1
- package/dist/collection/components/toolbar/component.js +46 -42
- package/dist/collection/components/toolbar/style.css +23 -2
- package/dist/collection/components/tree/component.js +23 -12
- package/dist/collection/components/tree/style.css +21 -0
- package/dist/collection/components/tree-item/component.js +43 -40
- package/dist/collection/components/tree-item/style.css +23 -2
- package/dist/collection/components/version/component.js +3 -3
- package/dist/collection/components/version/style.css +23 -2
- package/dist/collection/core/bootstrap.js +8 -5
- package/dist/collection/core/component-names.js +52 -106
- package/dist/collection/core/i18n.js +7 -6
- package/dist/collection/core/shared-state.js +10 -0
- package/dist/collection/core/tag-transformer.js +27 -0
- package/dist/collection/core/theme-store.js +8 -0
- package/dist/collection/global/script.js +3 -1
- package/dist/collection/index.js +3 -1
- package/dist/collection/internal/functional-components/alert/component.js +2 -1
- package/dist/collection/internal/functional-components/avatar/component.js +2 -2
- package/dist/collection/internal/functional-components/badge/component.js +2 -1
- package/dist/collection/internal/functional-components/bem-root-node/component.js +16 -6
- package/dist/collection/internal/functional-components/breadcrumb/component.js +2 -2
- package/dist/collection/internal/functional-components/breadcrumb/link-item.js +2 -2
- package/dist/collection/internal/functional-components/button/item.js +2 -2
- package/dist/collection/internal/functional-components/card/component.js +3 -1
- package/dist/collection/internal/functional-components/collapsible/component.js +3 -2
- package/dist/collection/internal/functional-components/counter/api.js +1 -1
- package/dist/collection/internal/functional-components/dialog/component.js +6 -3
- package/dist/collection/internal/functional-components/dialog/item.js +4 -4
- package/dist/collection/internal/functional-components/drawer/component.js +1 -1
- package/dist/collection/internal/functional-components/form/error-link-item.js +2 -2
- package/dist/collection/internal/functional-components/form-association/api.js +2 -2
- package/dist/collection/internal/functional-components/form-association/behavior.js +18 -15
- package/dist/collection/internal/functional-components/form-field/base-web-component.js +7 -8
- package/dist/collection/internal/functional-components/form-field/custom-suggestions.js +1 -1
- package/dist/collection/internal/functional-components/form-field/msg.js +2 -2
- package/dist/collection/internal/functional-components/form-field/number-value.js +1 -1
- package/dist/collection/internal/functional-components/heading/component.js +3 -4
- package/dist/collection/internal/functional-components/icon/api.js +2 -2
- package/dist/collection/internal/functional-components/icon/component.js +2 -2
- package/dist/collection/internal/functional-components/image/component.js +2 -4
- package/dist/collection/internal/functional-components/link/api.js +1 -1
- package/dist/collection/internal/functional-components/link/aria-current-service.js +23 -0
- package/dist/collection/internal/functional-components/link/component.js +2 -2
- package/dist/collection/internal/functional-components/link/item.js +3 -3
- package/dist/collection/internal/functional-components/meter/component.js +5 -7
- package/dist/collection/internal/functional-components/pagination/api.js +2 -2
- package/dist/collection/internal/functional-components/pagination/component.js +2 -3
- package/dist/collection/internal/functional-components/pagination/item.js +26 -11
- package/dist/collection/internal/functional-components/pagination/page-size-select.js +17 -9
- package/dist/collection/internal/functional-components/popover-button/item.js +2 -2
- package/dist/collection/internal/functional-components/progress/api.js +1 -1
- package/dist/collection/internal/functional-components/progress/component.js +2 -1
- package/dist/collection/internal/functional-components/quote/component.js +2 -3
- package/dist/collection/internal/functional-components/single-select/component.js +2 -1
- package/dist/collection/internal/functional-components/skip-nav/api.js +1 -1
- package/dist/collection/internal/functional-components/skip-nav/component.js +2 -2
- package/dist/collection/internal/functional-components/skip-nav/link-item.js +2 -2
- package/dist/collection/internal/functional-components/span/component.js +3 -2
- package/dist/collection/internal/functional-components/table-stateful/component.js +17 -0
- package/dist/collection/internal/functional-components/table-stateful/model.js +21 -7
- package/dist/collection/internal/functional-components/table-stateless/api.js +2 -2
- package/dist/collection/internal/functional-components/table-stateless/component.js +11 -8
- package/dist/collection/internal/functional-components/table-stateless/selection-tooltip-item.js +29 -0
- package/dist/collection/internal/functional-components/table-stateless/settings.js +12 -7
- package/dist/collection/internal/functional-components/table-stateless/table-model.js +2 -6
- package/dist/collection/internal/functional-components/tabs/button-item.js +2 -2
- package/dist/collection/internal/functional-components/tabs/component.js +7 -1
- package/dist/collection/internal/functional-components/toolbar/{item.js → entry-item.js} +4 -4
- package/dist/collection/internal/functional-components/tree/component.js +2 -2
- package/dist/collection/internal/functional-components/tree-item/component.js +2 -2
- package/dist/collection/internal/props/helpers/factory.js +1 -1
- package/dist/collection/internal/props/helpers/normalizers.js +2 -5
- package/dist/collection/internal/props/helpers/validators.js +1 -0
- package/dist/collection/internal/props/index.js +1 -1
- package/dist/collection/internal/props/label-decorative.js +10 -0
- package/dist/collection/locales/de.js +3 -2
- package/dist/collection/locales/en.js +3 -2
- package/dist/collection/schema/bem-registry.js +59 -13
- package/dist/collection/schema/components/index.js +0 -29
- package/dist/collection/schema/i18n-keys.js +29 -28
- package/dist/collection/schema/props/accept.js +1 -7
- package/dist/collection/schema/props/access-key.js +1 -7
- package/dist/collection/schema/props/active.js +1 -7
- package/dist/collection/schema/props/adjust-height.js +1 -7
- package/dist/collection/schema/props/alert-type.js +0 -7
- package/dist/collection/schema/props/align.js +0 -4
- package/dist/collection/schema/props/allow-multi-sort.js +1 -7
- package/dist/collection/schema/props/alt.js +1 -7
- package/dist/collection/schema/props/alternative-button-link-role.js +1 -8
- package/dist/collection/schema/props/aria-controls.js +1 -7
- package/dist/collection/schema/props/aria-current-value.js +1 -10
- package/dist/collection/schema/props/aria-description.js +1 -7
- package/dist/collection/schema/props/aria-details.js +1 -22
- package/dist/collection/schema/props/aria-expanded.js +1 -7
- package/dist/collection/schema/props/aria-labelledby.js +8 -15
- package/dist/collection/schema/props/aria-owns.js +1 -9
- package/dist/collection/schema/props/aria-selected.js +1 -7
- package/dist/collection/schema/props/auto-complete.js +0 -6
- package/dist/collection/schema/props/badge-text.js +1 -7
- package/dist/collection/schema/props/button-callbacks.js +1 -7
- package/dist/collection/schema/props/button-type.js +1 -8
- package/dist/collection/schema/props/button-variant.js +1 -10
- package/dist/collection/schema/props/checked.js +1 -7
- package/dist/collection/schema/props/collapsible.js +1 -7
- package/dist/collection/schema/props/color.js +1 -14
- package/dist/collection/schema/props/current-length.js +1 -7
- package/dist/collection/schema/props/custom-class.js +1 -9
- package/dist/collection/schema/props/disabled.js +1 -15
- package/dist/collection/schema/props/download.js +1 -7
- package/dist/collection/schema/props/error-list.js +1 -14
- package/dist/collection/schema/props/has-closer.js +1 -7
- package/dist/collection/schema/props/has-compact-button.js +1 -7
- package/dist/collection/schema/props/has-counter.js +1 -7
- package/dist/collection/schema/props/has-create-button.js +1 -7
- package/dist/collection/schema/props/has-icons-when-expanded.js +1 -7
- package/dist/collection/schema/props/has-settings-menu.js +1 -7
- package/dist/collection/schema/props/has-value.js +1 -7
- package/dist/collection/schema/props/hide-label.js +1 -7
- package/dist/collection/schema/props/hide-msg.js +1 -7
- package/dist/collection/schema/props/hint.js +1 -7
- package/dist/collection/schema/props/href.js +1 -7
- package/dist/collection/schema/props/icons-input-checkbox.js +1 -18
- package/dist/collection/schema/props/icons.js +0 -43
- package/dist/collection/schema/props/id.js +1 -7
- package/dist/collection/schema/props/image-sizes.js +1 -7
- package/dist/collection/schema/props/image-source.js +1 -7
- package/dist/collection/schema/props/image-srcset.js +1 -7
- package/dist/collection/schema/props/indeterminate.js +1 -7
- package/dist/collection/schema/props/index.js +5 -1
- package/dist/collection/schema/props/inline.js +1 -7
- package/dist/collection/schema/props/label-align.js +1 -8
- package/dist/collection/schema/props/label.js +0 -35
- package/dist/collection/schema/props/link-on-callbacks.js +1 -8
- package/dist/collection/schema/props/link-target.js +1 -7
- package/dist/collection/schema/props/loading.js +1 -8
- package/dist/collection/schema/props/max-length-behavior.js +1 -8
- package/dist/collection/schema/props/max-length.js +1 -7
- package/dist/collection/schema/props/max.js +1 -7
- package/dist/collection/schema/props/modal.js +1 -7
- package/dist/collection/schema/props/msg.js +1 -24
- package/dist/collection/schema/props/multiple.js +1 -7
- package/dist/collection/schema/props/name.js +1 -7
- package/dist/collection/schema/props/open.js +1 -7
- package/dist/collection/schema/props/options.js +1 -11
- package/dist/collection/schema/props/orientation.js +1 -10
- package/dist/collection/schema/props/pagination-position.js +1 -10
- package/dist/collection/schema/props/pattern.js +1 -7
- package/dist/collection/schema/props/placeholder.js +1 -7
- package/dist/collection/schema/props/popover-align.js +1 -7
- package/dist/collection/schema/props/read-only.js +1 -7
- package/dist/collection/schema/props/required.js +1 -7
- package/dist/collection/schema/props/resize-textarea.js +0 -9
- package/dist/collection/schema/props/rows.js +1 -7
- package/dist/collection/schema/props/short-key.js +1 -7
- package/dist/collection/schema/props/show.js +1 -7
- package/dist/collection/schema/props/spell-check.js +1 -9
- package/dist/collection/schema/props/suggestions.js +1 -16
- package/dist/collection/schema/props/tab-behavior.js +1 -8
- package/dist/collection/schema/props/tab-index.js +1 -16
- package/dist/collection/schema/props/table-data-foot.js +1 -21
- package/dist/collection/schema/props/table-data.js +1 -21
- package/dist/collection/schema/props/table-fixed-cols.js +1 -14
- package/dist/collection/schema/props/table-selection.js +1 -22
- package/dist/collection/schema/props/toolbar-items.js +1 -21
- package/dist/collection/schema/props/tooltip-align.js +1 -7
- package/dist/collection/schema/props/touched.js +1 -7
- package/dist/collection/schema/props/type-input-date.js +0 -7
- package/dist/collection/schema/props/type-input-text.js +0 -7
- package/dist/collection/schema/props/unit.js +1 -7
- package/dist/collection/schema/props/variant/dialog.js +1 -8
- package/dist/collection/schema/props/variant/modal.js +1 -4
- package/dist/collection/schema/props/variant/password-variant.js +1 -8
- package/dist/collection/schema/props/variant-alert.js +0 -7
- package/dist/collection/schema/props/variant-class-name.js +0 -33
- package/dist/collection/schema/props/variant-input-checkbox.js +0 -7
- package/dist/collection/schema/props/variant-progress.js +0 -7
- package/dist/collection/schema/props/visibility-toggle.js +1 -7
- package/dist/collection/schema/props/width.js +1 -7
- package/dist/collection/schema/utils/contrast.js +1 -1
- package/dist/collection/schema/utils/prop.validators.js +1 -1
- package/dist/collection/schema/validators/common.js +4 -0
- package/dist/collection/schema/validators/index.js +0 -1
- package/dist/collection/utils/aria-labelledby.js +0 -12
- package/dist/collection/utils/dev.utils.js +1 -2
- package/dist/collection/utils/markdown.js +49 -3
- package/dist/collection/utils/testing/logged-messages.js +4 -0
- package/dist/collection/utils/testing/snapshot-input-testing.js +1 -1
- package/dist/collection/utils/testing/snapshot-testing.js +2 -1
- package/dist/collection/utils/tooltip-open-tracking.js +6 -5
- package/dist/components/Heading.js +1 -1
- package/dist/components/access-and-short-key.js +1 -1
- package/dist/components/aria-current-service.js +4 -0
- 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/component.js +1 -1
- package/dist/components/component10.js +1 -1
- package/dist/components/component11.js +1 -1
- package/dist/components/component12.js +4 -0
- package/dist/components/component13.js +4 -0
- package/dist/components/component14.js +4 -0
- 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/element-interaction.js +1 -1
- package/dist/components/events.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/i18n.js +1 -1
- package/dist/components/i18n2.js +1 -1
- package/dist/components/id.js +1 -1
- 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-pool.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/keyboard.js +1 -1
- package/dist/components/kol-abbr.js +1 -1
- package/dist/components/kol-accordion.js +1 -1
- package/dist/components/kol-alert.js +1 -1
- package/dist/components/kol-avatar.js +1 -1
- package/dist/components/kol-badge.js +1 -1
- package/dist/components/kol-breadcrumb.js +1 -1
- package/dist/components/kol-button-link.js +1 -1
- package/dist/components/kol-button.js +1 -1
- package/dist/components/kol-card.js +1 -1
- package/dist/components/kol-combobox.js +1 -1
- package/dist/components/kol-details.js +1 -1
- package/dist/components/kol-dialog.js +1 -1
- package/dist/components/kol-drawer.js +1 -1
- package/dist/components/kol-form.js +1 -1
- package/dist/components/kol-heading.js +1 -1
- package/dist/components/kol-icon.js +1 -1
- package/dist/components/kol-image.js +1 -1
- package/dist/components/kol-input-checkbox.js +1 -1
- package/dist/components/kol-input-color.js +1 -1
- package/dist/components/kol-input-date.js +1 -1
- package/dist/components/kol-input-email.js +1 -1
- package/dist/components/kol-input-file.js +1 -1
- package/dist/components/kol-input-number.js +1 -1
- package/dist/components/kol-input-password.js +1 -1
- package/dist/components/kol-input-radio.js +1 -1
- package/dist/components/kol-input-range.js +1 -1
- package/dist/components/kol-input-text.js +1 -1
- package/dist/components/kol-kolibri.js +1 -1
- package/dist/components/kol-link-button.js +1 -1
- package/dist/components/kol-link.js +1 -1
- package/dist/components/kol-meter.js +1 -1
- package/dist/components/kol-modal.js +1 -1
- package/dist/components/kol-nav.js +1 -1
- package/dist/components/kol-pagination.js +1 -1
- package/dist/components/kol-popover-button.js +1 -1
- package/dist/components/kol-progress.js +1 -1
- package/dist/components/kol-quote.js +1 -1
- package/dist/components/kol-select.js +1 -1
- package/dist/components/kol-single-select.js +1 -1
- package/dist/components/kol-skip-nav.js +1 -1
- package/dist/components/kol-spin.js +1 -1
- package/dist/components/kol-split-button.js +1 -1
- package/dist/components/kol-table-stateful.js +1 -1
- package/dist/components/kol-table-stateless.js +1 -1
- package/dist/components/kol-tabs.js +1 -1
- package/dist/components/kol-textarea.js +1 -1
- package/dist/components/kol-toast-container.js +1 -1
- package/dist/components/kol-toolbar.js +1 -1
- package/dist/components/kol-tree-item.js +1 -1
- package/dist/components/kol-tree.js +1 -1
- package/dist/components/kol-version.js +1 -1
- package/dist/components/label-hints.js +1 -1
- package/dist/components/label-lang-segment.js +1 -1
- package/dist/components/label-with-expert-slot.js +1 -1
- package/dist/components/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/number-value.js +1 -1
- package/dist/components/open-items-cache.js +1 -1
- package/dist/components/open.js +1 -1
- package/dist/components/options.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/prop.validators.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/scroll-lock.js +1 -1
- package/dist/components/shared-state.js +4 -0
- 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/test-component.js +1 -1
- package/dist/components/toggle-handler.js +1 -1
- package/dist/components/tooltip-open-tracking.js +1 -1
- package/dist/components/unique-nav-labels.js +1 -1
- package/dist/components/unit.js +1 -1
- package/dist/components/validators.js +1 -1
- package/dist/components/value-string.js +1 -1
- package/dist/components/width.js +1 -1
- package/dist/esm/{Heading-BVhjT9av.js → Heading-foerLIu9.js} +2 -2
- package/dist/esm/{access-and-short-key-ijzCZfHm.js → access-and-short-key-BTEwnScd.js} +2 -0
- package/dist/esm/{api-D92_O-0H.js → api-Ba9FNPRn.js} +29 -31
- package/dist/esm/{app-globals-CBGjgNge.js → app-globals-CqYpXngl.js} +4 -3
- package/dist/esm/aria-current-service-4eUMzpeO.js +27 -0
- package/dist/esm/{aria-labelledby-CLehu03h.js → aria-labelledby-C4wUnR-v.js} +3 -13
- package/dist/esm/{base-BLBSJu_1.js → base-AKIr0rpk.js} +13 -14
- package/dist/esm/{base-qvPPg-dn.js → base-C7nTPc7u.js} +95 -67
- package/dist/esm/{base-DIcqHqMz.js → base-CpUNedp9.js} +13 -14
- package/dist/esm/{base-CHmdLgoO.js → base-D7qItqyf.js} +14 -16
- package/dist/esm/{base-web-component-XgI4wUyN.js → base-web-component-B3wi5eWH.js} +2 -1
- package/dist/esm/{base-web-component-CaAexWy_.js → base-web-component-BpL_hXcg.js} +16 -18
- package/dist/esm/{base-web-component-DbagnM7m.js → base-web-component-DorOeD_U.js} +10 -13
- package/dist/esm/{behavior-B08CXmI4.js → behavior-D9BHiFnH.js} +29 -28
- package/dist/esm/{behavior-CwUUkdaP.js → behavior-DDo87iUM.js} +6 -6
- package/dist/esm/{behavior-DW7_5Wxp.js → behavior-XAV9GSxI.js} +6 -6
- package/dist/esm/{bem-registry-CWN7_O1L.js → bem-registry-CrZZQahR.js} +60 -14
- package/dist/esm/bootstrap-Cz7Iq2I2.js +52 -0
- package/dist/esm/{color-eAL9I7Wq.js → color-CnVBqZd5.js} +3 -3
- package/dist/esm/{component-8ALsFV4i.js → component-0npqUhj2.js} +5 -6
- package/dist/esm/{component-nR5Bf9G5.js → component-BCKsZOoB.js} +6 -5
- package/dist/esm/component-BZjDp_Lf.js +17 -0
- package/dist/esm/component-CjdTbGlP.js +172 -0
- package/dist/esm/component-Cn693XeT.js +47 -0
- package/dist/esm/{component-D0mBOGjS.js → component-Cvd5HXbX.js} +10 -12
- package/dist/esm/{component-DCw1ZAE5.js → component-CvdxCpjC.js} +5 -7
- package/dist/esm/{component-CdKSiR5P.js → component-DFhRTaqb.js} +6 -9
- package/dist/esm/{component-BTMWoACz.js → component-DP_p5few.js} +11 -13
- package/dist/esm/{component-DBAicJ2u.js → component-DlROeCCe.js} +14 -17
- package/dist/esm/component-names-DzmdvSkQ.js +115 -0
- package/dist/esm/{contrast-D78VGPFR.js → contrast-BHjNzQvB.js} +2 -2
- package/dist/esm/{controller-C3O9ohSP.js → controller-DYkXzFqc.js} +5 -5
- package/dist/esm/{dev.utils-wYkYn08d.js → dev.utils-BgFDROtc.js} +1 -2
- package/dist/esm/{devtools-DrBkkLdP.js → devtools-B6h2bVMJ.js} +4 -5
- package/dist/esm/{disabled-Cqhc40CU.js → disabled-BZIZZ6wy.js} +2 -1
- package/dist/esm/{element-focus-BIRmGg5W.js → element-focus-C0L8NWU8.js} +1 -0
- package/dist/esm/{element-interaction-sGYdEpmv.js → element-interaction-B3GEli6r.js} +2 -1
- package/dist/esm/{events-BIT-JUP2.js → events-DdfMb1U7.js} +2 -0
- package/dist/esm/{field-control-Cs5VvsYo.js → field-control-QF0yTcyb.js} +7 -8
- package/dist/esm/{group-uNo1CfbK.js → group-8Me6YSO8.js} +6 -7
- package/dist/esm/{has-closer-B9NQY7BK.js → has-closer-B-uYNNCw.js} +2 -1
- package/dist/esm/{href-JqLbNBsW.js → href-DKPJq0Rh.js} +2 -1
- package/dist/esm/{i18n-Dl6Jjofb.js → i18n-TlIXBsgS.js} +15 -10
- package/dist/esm/{i18n-DtLKn3Xt.js → i18n-Uze_l4Ts.js} +2 -2
- package/dist/esm/{id-CIYvVaNr.js → id-CkUYl2hO.js} +2 -1
- package/dist/esm/{index-BKEJuyFi.js → index-D1fZ9xFt.js} +1677 -46
- package/dist/esm/index.js +14 -12
- package/dist/esm/{input-Dja5Qioc.js → input-DwlolkOG.js} +4 -6
- package/dist/esm/{input-container-C2Am7LEP.js → input-container-DC3x4oGg.js} +6 -9
- package/dist/esm/{item-DIAFIFSy.js → item-DThxrTZc.js} +60 -39
- package/dist/esm/{item-C4AmpdVD.js → item-cArH2C6l.js} +9 -9
- package/dist/esm/{item-pool-BOxAYePG.js → item-pool-D4qvvY-S.js} +2 -0
- package/dist/esm/{item-D627ShRd.js → item-uC3h4pj3.js} +15 -16
- package/dist/esm/{item-ConW1c81.js → item-zPmzbSvE.js} +9 -9
- package/dist/esm/{keyboard-Cnv7zP3N.js → keyboard-DzlBdECG.js} +2 -0
- package/dist/esm/kol-abbr.entry.js +11 -15
- package/dist/esm/kol-accordion.entry.js +22 -24
- package/dist/esm/kol-alert.entry.js +35 -37
- package/dist/esm/kol-avatar.entry.js +22 -25
- package/dist/esm/kol-badge.entry.js +32 -35
- package/dist/esm/kol-breadcrumb.entry.js +38 -41
- package/dist/esm/kol-button-link.entry.js +34 -36
- package/dist/esm/kol-button.entry.js +34 -36
- package/dist/esm/kol-card.entry.js +59 -101
- package/dist/esm/kol-combobox.entry.js +87 -89
- package/dist/esm/kol-details.entry.js +22 -24
- package/dist/esm/kol-dialog.entry.js +39 -42
- package/dist/esm/kol-drawer.entry.js +39 -42
- package/dist/esm/kol-form.entry.js +32 -35
- package/dist/esm/kol-heading.entry.js +20 -22
- package/dist/esm/kol-icon.entry.js +20 -18
- package/dist/esm/kol-image.entry.js +25 -27
- package/dist/esm/kol-input-checkbox.entry.js +90 -91
- package/dist/esm/kol-input-color.entry.js +69 -70
- package/dist/esm/kol-input-date.entry.js +81 -83
- package/dist/esm/kol-input-email.entry.js +85 -86
- package/dist/esm/kol-input-file.entry.js +62 -63
- package/dist/esm/kol-input-number.entry.js +83 -84
- package/dist/esm/kol-input-password.entry.js +83 -84
- package/dist/esm/kol-input-radio.entry.js +63 -66
- package/dist/esm/kol-input-range.entry.js +67 -69
- package/dist/esm/kol-input-text.entry.js +98 -99
- package/dist/esm/kol-kolibri.entry.js +12 -15
- package/dist/esm/kol-link-button.entry.js +42 -44
- package/dist/esm/kol-link.entry.js +41 -43
- package/dist/esm/kol-meter.entry.js +27 -36
- package/dist/esm/kol-modal.entry.js +39 -42
- package/dist/esm/kol-nav.entry.js +44 -47
- package/dist/esm/kol-pagination.entry.js +70 -73
- package/dist/esm/kol-popover-button.entry.js +67 -104
- package/dist/esm/kol-progress.entry.js +27 -27
- package/dist/esm/kol-quote.entry.js +17 -19
- package/dist/esm/kol-select.entry.js +73 -75
- package/dist/esm/kol-single-select.entry.js +95 -92
- package/dist/esm/kol-skip-nav.entry.js +38 -41
- package/dist/esm/kol-spin.entry.js +26 -29
- package/dist/esm/kol-split-button.entry.js +38 -40
- package/dist/esm/kol-table-stateful.entry.js +136 -109
- package/dist/esm/kol-table-stateless.entry.js +62 -74
- package/dist/esm/kol-tabs.entry.js +54 -60
- package/dist/esm/kol-textarea.entry.js +82 -82
- package/dist/esm/kol-toast-container.entry.js +22 -26
- package/dist/esm/kol-toolbar.entry.js +63 -62
- package/dist/esm/kol-tree-item.entry.js +44 -44
- package/dist/esm/kol-tree.entry.js +35 -25
- package/dist/esm/kol-version.entry.js +25 -28
- package/dist/esm/kolibri.js +7 -6
- package/dist/esm/{label-BRosRgdX.js → label-G82W4YoW.js} +4 -3
- package/dist/esm/{label-hints-Jn18RUT-.js → label-hints-DiRb_zIZ.js} +2 -2
- package/dist/esm/{label-lang-segment-2_GnxjFp.js → label-lang-segment-BSVexfSR.js} +3 -2
- package/dist/esm/label-with-expert-slot-C1i0atAL.js +13 -0
- package/dist/esm/{level-CA1s1_Mf.js → level-CWkPM-CS.js} +2 -1
- package/dist/esm/{link-target-FX94oqMo.js → link-target-B2OC2sZU.js} +2 -1
- package/dist/esm/{links-DwucTqcR.js → links-CiNHSAYH.js} +2 -2
- package/dist/esm/loader.js +6 -5
- package/dist/esm/{multiple-DqrZxybx.js → multiple-CuU2AuEM.js} +2 -1
- package/dist/esm/{number-value-B-SJ1dRo.js → number-value-adUq1zr1.js} +2 -1
- package/dist/esm/{open-DRRv1KFK.js → open-DR8Z7RtS.js} +2 -1
- package/dist/esm/{open-items-cache-D-kml1h6.js → open-items-cache-CS2mDRNB.js} +2 -0
- package/dist/esm/{options-B0rBHetL.js → options-BDTJtk6H.js} +2 -0
- package/dist/esm/{options-DCaUcfAu.js → options-BPwcDIDO.js} +2 -2
- package/dist/esm/{orientation-XNOCaPwy.js → orientation-BUPO9LJU.js} +2 -1
- package/dist/esm/{placeholder-BeLIzdJv.js → placeholder-BTFnryTd.js} +2 -1
- package/dist/esm/{props-from-config-Ci0dILpz.js → props-from-config-DqFgiUwD.js} +136 -63
- package/dist/esm/{read-only-Bby9r6ZX.js → read-only-DRmmHb2G.js} +2 -1
- package/dist/esm/{required-hoaT7UmZ.js → required-D4CdAA4s.js} +2 -1
- package/dist/esm/{resolve-props-D2KiItuv.js → resolve-props-BAambGug.js} +9 -9
- package/dist/esm/{resolve-props-BLZxWC3j.js → resolve-props-Dpl38Wpe.js} +7 -8
- package/dist/esm/{rows-B0x8CR7K.js → rows-DRKSoawJ.js} +2 -1
- package/dist/esm/{scroll-lock-Y2hf47KW.js → scroll-lock-C66lpb8L.js} +9 -7
- package/dist/esm/shared-state-Dn94ivRg.js +14 -0
- package/dist/esm/{smart-button-CS_ZriPt.js → smart-button-BYEk3DzS.js} +2 -2
- package/dist/esm/{spell-check-DzgftyqL.js → spell-check-DlQ_d2GL.js} +2 -1
- package/dist/esm/{src-DaGhmCL1.js → src-Cikg9qhP.js} +2 -1
- package/dist/esm/{step-Bdj89bGO.js → step-C7WPZrUp.js} +2 -1
- package/dist/esm/{suggestions-Dy1X-Pc3.js → suggestions-CotfxJG1.js} +2 -2
- package/dist/esm/{suggestions-DuqzGDve.js → suggestions-qW9OdwO3.js} +3 -3
- package/dist/esm/test-component.entry.js +3 -3
- package/dist/esm/theme-store-DroJsU6S.js +11 -0
- package/dist/esm/{toggle-handler-BRLmxe1J.js → toggle-handler-BB_SIgS1.js} +12 -15
- package/dist/esm/tooltip-open-tracking-CxHWKk8f.js +21 -0
- package/dist/esm/{unique-nav-labels-h2KOu5Qy.js → unique-nav-labels-CQgKoOXd.js} +2 -2
- package/dist/esm/{unit-BUhhJbhT.js → unit-D2lG-lEM.js} +2 -1
- package/dist/esm/{validators-BVM40IEr.js → validators-yh10eyXe.js} +4 -2
- package/dist/esm/{value-string-e9pwLcS-.js → value-string-DwEIOG1f.js} +2 -1
- package/dist/esm/{width-CgYY17tL.js → width-xawzWTVW.js} +2 -1
- package/dist/kolibri/Heading-foerLIu9.js +4 -0
- package/dist/kolibri/access-and-short-key-BTEwnScd.js +4 -0
- package/dist/kolibri/api-Ba9FNPRn.js +4 -0
- package/dist/kolibri/app-globals-CqYpXngl.js +4 -0
- package/dist/kolibri/aria-current-service-4eUMzpeO.js +4 -0
- package/dist/kolibri/aria-labelledby-C4wUnR-v.js +4 -0
- package/dist/kolibri/base-AKIr0rpk.js +4 -0
- package/dist/kolibri/base-C7nTPc7u.js +4 -0
- package/dist/kolibri/base-CpUNedp9.js +4 -0
- package/dist/kolibri/base-D7qItqyf.js +4 -0
- package/dist/kolibri/base-web-component-B3wi5eWH.js +4 -0
- package/dist/kolibri/base-web-component-BpL_hXcg.js +4 -0
- package/dist/kolibri/base-web-component-DorOeD_U.js +4 -0
- package/dist/kolibri/behavior-D9BHiFnH.js +4 -0
- package/dist/kolibri/behavior-DDo87iUM.js +4 -0
- package/dist/kolibri/behavior-XAV9GSxI.js +4 -0
- package/dist/kolibri/bem-registry-CrZZQahR.js +4 -0
- package/dist/kolibri/bootstrap-Cz7Iq2I2.js +4 -0
- package/dist/kolibri/color-CnVBqZd5.js +4 -0
- package/dist/kolibri/component-0npqUhj2.js +4 -0
- package/dist/kolibri/component-BCKsZOoB.js +4 -0
- package/dist/kolibri/component-BZjDp_Lf.js +4 -0
- package/dist/kolibri/component-CjdTbGlP.js +4 -0
- package/dist/kolibri/component-Cn693XeT.js +4 -0
- package/dist/kolibri/component-Cvd5HXbX.js +4 -0
- package/dist/kolibri/component-CvdxCpjC.js +4 -0
- package/dist/kolibri/component-DFhRTaqb.js +4 -0
- package/dist/kolibri/component-DP_p5few.js +4 -0
- package/dist/kolibri/component-DlROeCCe.js +4 -0
- package/dist/kolibri/component-names-DzmdvSkQ.js +4 -0
- package/dist/kolibri/contrast-BHjNzQvB.js +4 -0
- package/dist/kolibri/controller-DYkXzFqc.js +4 -0
- package/dist/kolibri/dev.utils-BgFDROtc.js +4 -0
- package/dist/kolibri/devtools-B6h2bVMJ.js +4 -0
- package/dist/kolibri/disabled-BZIZZ6wy.js +4 -0
- package/dist/kolibri/element-focus-C0L8NWU8.js +4 -0
- package/dist/kolibri/element-interaction-B3GEli6r.js +4 -0
- package/dist/kolibri/events-DdfMb1U7.js +4 -0
- package/dist/kolibri/field-control-QF0yTcyb.js +4 -0
- package/dist/kolibri/group-8Me6YSO8.js +4 -0
- package/dist/kolibri/has-closer-B-uYNNCw.js +4 -0
- package/dist/kolibri/href-DKPJq0Rh.js +4 -0
- package/dist/kolibri/i18n-TlIXBsgS.js +4 -0
- package/dist/kolibri/i18n-Uze_l4Ts.js +4 -0
- package/dist/kolibri/id-CkUYl2hO.js +4 -0
- package/dist/kolibri/index-D1fZ9xFt.js +6 -0
- package/dist/kolibri/index.esm.js +1 -1
- package/dist/kolibri/input-DwlolkOG.js +4 -0
- package/dist/kolibri/input-container-DC3x4oGg.js +4 -0
- package/dist/kolibri/item-DThxrTZc.js +4 -0
- package/dist/kolibri/item-cArH2C6l.js +4 -0
- package/dist/kolibri/item-pool-D4qvvY-S.js +4 -0
- package/dist/kolibri/item-uC3h4pj3.js +4 -0
- package/dist/kolibri/item-zPmzbSvE.js +4 -0
- package/dist/kolibri/keyboard-DzlBdECG.js +4 -0
- package/dist/kolibri/kol-abbr.entry.js +1 -1
- package/dist/kolibri/kol-accordion.entry.js +1 -1
- package/dist/kolibri/kol-alert.entry.js +1 -1
- package/dist/kolibri/kol-avatar.entry.js +1 -1
- package/dist/kolibri/kol-badge.entry.js +1 -1
- package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
- package/dist/kolibri/kol-button-link.entry.js +1 -1
- package/dist/kolibri/kol-button.entry.js +1 -1
- package/dist/kolibri/kol-card.entry.js +1 -1
- package/dist/kolibri/kol-combobox.entry.js +1 -1
- package/dist/kolibri/kol-details.entry.js +1 -1
- package/dist/kolibri/kol-dialog.entry.js +1 -1
- package/dist/kolibri/kol-drawer.entry.js +1 -1
- package/dist/kolibri/kol-form.entry.js +1 -1
- package/dist/kolibri/kol-heading.entry.js +1 -1
- package/dist/kolibri/kol-icon.entry.js +1 -1
- package/dist/kolibri/kol-image.entry.js +1 -1
- package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
- package/dist/kolibri/kol-input-color.entry.js +1 -1
- package/dist/kolibri/kol-input-date.entry.js +1 -1
- package/dist/kolibri/kol-input-email.entry.js +1 -1
- package/dist/kolibri/kol-input-file.entry.js +1 -1
- package/dist/kolibri/kol-input-number.entry.js +1 -1
- package/dist/kolibri/kol-input-password.entry.js +1 -1
- package/dist/kolibri/kol-input-radio.entry.js +1 -1
- package/dist/kolibri/kol-input-range.entry.js +1 -1
- package/dist/kolibri/kol-input-text.entry.js +1 -1
- package/dist/kolibri/kol-kolibri.entry.js +1 -1
- package/dist/kolibri/kol-link-button.entry.js +1 -1
- package/dist/kolibri/kol-link.entry.js +1 -1
- package/dist/kolibri/kol-meter.entry.js +1 -1
- package/dist/kolibri/kol-modal.entry.js +1 -1
- package/dist/kolibri/kol-nav.entry.js +1 -1
- package/dist/kolibri/kol-pagination.entry.js +1 -1
- package/dist/kolibri/kol-popover-button.entry.js +1 -1
- package/dist/kolibri/kol-progress.entry.js +1 -1
- package/dist/kolibri/kol-quote.entry.js +1 -1
- package/dist/kolibri/kol-select.entry.js +1 -1
- package/dist/kolibri/kol-single-select.entry.js +1 -1
- package/dist/kolibri/kol-skip-nav.entry.js +1 -1
- package/dist/kolibri/kol-spin.entry.js +1 -1
- package/dist/kolibri/kol-split-button.entry.js +1 -1
- package/dist/kolibri/kol-table-stateful.entry.js +1 -1
- package/dist/kolibri/kol-table-stateless.entry.js +1 -1
- package/dist/kolibri/kol-tabs.entry.js +1 -1
- package/dist/kolibri/kol-textarea.entry.js +1 -1
- package/dist/kolibri/kol-toast-container.entry.js +1 -1
- package/dist/kolibri/kol-toolbar.entry.js +1 -1
- package/dist/kolibri/kol-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-G82W4YoW.js +4 -0
- package/dist/kolibri/label-hints-DiRb_zIZ.js +4 -0
- package/dist/kolibri/label-lang-segment-BSVexfSR.js +4 -0
- package/dist/kolibri/label-with-expert-slot-C1i0atAL.js +4 -0
- package/dist/kolibri/level-CWkPM-CS.js +4 -0
- package/dist/kolibri/link-target-B2OC2sZU.js +4 -0
- package/dist/kolibri/links-CiNHSAYH.js +4 -0
- package/dist/kolibri/multiple-CuU2AuEM.js +4 -0
- package/dist/kolibri/number-value-adUq1zr1.js +4 -0
- package/dist/kolibri/open-DR8Z7RtS.js +4 -0
- package/dist/kolibri/open-items-cache-CS2mDRNB.js +4 -0
- package/dist/kolibri/options-BDTJtk6H.js +4 -0
- package/dist/kolibri/options-BPwcDIDO.js +4 -0
- package/dist/kolibri/orientation-BUPO9LJU.js +4 -0
- package/dist/kolibri/placeholder-BTFnryTd.js +4 -0
- package/dist/kolibri/props-from-config-DqFgiUwD.js +4 -0
- package/dist/kolibri/read-only-DRmmHb2G.js +4 -0
- package/dist/kolibri/required-D4CdAA4s.js +4 -0
- package/dist/kolibri/resolve-props-BAambGug.js +4 -0
- package/dist/kolibri/resolve-props-Dpl38Wpe.js +4 -0
- package/dist/kolibri/rows-DRKSoawJ.js +4 -0
- package/dist/kolibri/scroll-lock-C66lpb8L.js +4 -0
- package/dist/kolibri/shared-state-Dn94ivRg.js +4 -0
- package/dist/kolibri/smart-button-BYEk3DzS.js +4 -0
- package/dist/kolibri/spell-check-DlQ_d2GL.js +4 -0
- package/dist/kolibri/src-Cikg9qhP.js +4 -0
- package/dist/kolibri/step-C7WPZrUp.js +4 -0
- package/dist/kolibri/suggestions-CotfxJG1.js +4 -0
- package/dist/kolibri/suggestions-qW9OdwO3.js +4 -0
- package/dist/kolibri/test-component.entry.js +1 -1
- package/dist/kolibri/theme-store-DroJsU6S.js +4 -0
- package/dist/kolibri/toggle-handler-BB_SIgS1.js +4 -0
- package/dist/kolibri/tooltip-open-tracking-CxHWKk8f.js +4 -0
- package/dist/kolibri/unique-nav-labels-CQgKoOXd.js +4 -0
- package/dist/kolibri/unit-D2lG-lEM.js +4 -0
- package/dist/kolibri/validators-yh10eyXe.js +4 -0
- package/dist/kolibri/value-string-DwEIOG1f.js +4 -0
- package/dist/kolibri/width-xawzWTVW.js +4 -0
- package/dist/types/components/accordion/component.d.ts +2 -2
- package/dist/types/components/alert/component.d.ts +3 -2
- package/dist/types/components/badge/component.d.ts +2 -2
- package/dist/types/components/breadcrumb/component.d.ts +2 -2
- package/dist/types/components/button/base.d.ts +1 -1
- package/dist/types/components/button/component.d.ts +2 -2
- package/dist/types/components/button-link/component.d.ts +2 -2
- package/dist/types/components/card/component.d.ts +12 -5
- package/dist/types/components/combobox/component.d.ts +10 -10
- package/dist/types/components/details/component.d.ts +2 -2
- package/dist/types/components/dialog/base.d.ts +1 -1
- package/dist/types/components/dialog/component.d.ts +3 -3
- package/dist/types/components/drawer/component.d.ts +2 -2
- package/dist/types/components/form/component.d.ts +2 -2
- package/dist/types/components/heading/component.d.ts +2 -2
- package/dist/types/components/image/component.d.ts +2 -2
- package/dist/types/components/input-checkbox/component.d.ts +9 -9
- package/dist/types/components/input-color/component.d.ts +4 -4
- package/dist/types/components/input-date/component.d.ts +7 -7
- package/dist/types/components/input-email/component.d.ts +8 -8
- package/dist/types/components/input-file/component.d.ts +4 -4
- package/dist/types/components/input-number/component.d.ts +6 -6
- package/dist/types/components/input-password/component.d.ts +8 -8
- package/dist/types/components/input-radio/component.d.ts +5 -5
- package/dist/types/components/input-range/component.d.ts +4 -4
- package/dist/types/components/input-text/component.d.ts +12 -12
- package/dist/types/components/kolibri/component.d.ts +2 -2
- package/dist/types/components/link/component.d.ts +4 -4
- package/dist/types/components/link-button/component.d.ts +4 -4
- package/dist/types/components/modal/component.d.ts +3 -3
- package/dist/types/components/nav/component.d.ts +2 -2
- package/dist/types/components/pagination/component.d.ts +8 -8
- package/dist/types/components/popover-button/component.d.ts +10 -3
- package/dist/types/components/progress/component.d.ts +1 -0
- package/dist/types/components/public-api/contract.d.ts +7 -2
- package/dist/types/components/select/component.d.ts +6 -6
- package/dist/types/components/single-select/component.d.ts +11 -10
- package/dist/types/components/skip-nav/component.d.ts +2 -2
- package/dist/types/components/spin/component.d.ts +2 -2
- package/dist/types/components/split-button/component.d.ts +2 -2
- package/dist/types/components/table-stateful/component.d.ts +10 -11
- package/dist/types/components/table-stateless/base.d.ts +4 -2
- package/dist/types/components/table-stateless/component.d.ts +5 -8
- package/dist/types/components/tabs/component.d.ts +4 -5
- package/dist/types/components/textarea/component.d.ts +8 -8
- package/dist/types/components/toolbar/component.d.ts +6 -6
- package/dist/types/components/tree/component.d.ts +3 -2
- package/dist/types/components/tree-item/component.d.ts +4 -4
- package/dist/types/components/version/component.d.ts +2 -2
- package/dist/types/components.d.ts +64 -177
- package/dist/types/core/component-names.d.ts +52 -53
- package/dist/types/core/i18n.d.ts +1 -1
- package/dist/types/core/shared-state.d.ts +1 -0
- package/dist/types/core/tag-transformer.d.ts +4 -0
- package/dist/types/core/theme-store.d.ts +1 -0
- package/dist/types/index.d.ts +4 -2
- 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 +2 -2
- package/dist/types/internal/functional-components/badge/api.d.ts +2 -26
- package/dist/types/internal/functional-components/base-web-component.d.ts +1 -1
- package/dist/types/internal/functional-components/bem-root-node/component.d.ts +8 -4
- 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/item.d.ts +1 -1
- package/dist/types/internal/functional-components/card/api.d.ts +2 -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/component.d.ts +8 -4
- package/dist/types/internal/functional-components/dialog/item.d.ts +1 -1
- package/dist/types/internal/functional-components/drawer/api.d.ts +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/types/internal/functional-components/form-field/custom-suggestions.d.ts +1 -0
- package/dist/types/internal/functional-components/form-field/number-value.d.ts +1 -1
- package/dist/types/internal/functional-components/form-field/select-value.d.ts +1 -1
- package/dist/types/internal/functional-components/generic-types.d.ts +2 -2
- package/dist/types/internal/functional-components/heading/api.d.ts +2 -2
- 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 +4 -28
- package/dist/types/internal/functional-components/input-date/api.d.ts +4 -28
- package/dist/types/internal/functional-components/input-email/api.d.ts +4 -28
- package/dist/types/internal/functional-components/input-file/api.d.ts +4 -28
- package/dist/types/internal/functional-components/input-number/api.d.ts +4 -28
- package/dist/types/internal/functional-components/input-password/api.d.ts +4 -28
- 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 +4 -28
- package/dist/types/internal/functional-components/kolibri/api.d.ts +1 -1
- package/dist/types/internal/functional-components/link/api.d.ts +2 -2
- package/dist/types/internal/functional-components/meter/api.d.ts +3 -3
- package/dist/types/internal/functional-components/nav/api.d.ts +2 -2
- package/dist/types/internal/functional-components/pagination/api.d.ts +2 -2
- package/dist/types/internal/functional-components/pagination/item.d.ts +5 -3
- package/dist/types/internal/functional-components/pagination/page-size-select.d.ts +2 -1
- package/dist/types/internal/functional-components/popover/api.d.ts +1 -1
- package/dist/types/internal/functional-components/popover-button/api.d.ts +2 -2
- package/dist/types/internal/functional-components/progress/api.d.ts +3 -3
- package/dist/types/internal/functional-components/quote/api.d.ts +2 -2
- 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/single-select/component.d.ts +3 -0
- package/dist/types/internal/functional-components/skip-nav/api.d.ts +1 -1
- package/dist/types/internal/functional-components/spin/api.d.ts +1 -1
- package/dist/types/internal/functional-components/split-button/api.d.ts +1 -1
- package/dist/types/internal/functional-components/table-stateful/api.d.ts +2 -2
- package/dist/types/internal/functional-components/table-stateful/component.d.ts +10 -0
- package/dist/types/internal/functional-components/table-stateful/model.d.ts +4 -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 -0
- package/dist/types/internal/functional-components/table-stateless/selection-tooltip-item.d.ts +10 -0
- package/dist/types/internal/functional-components/table-stateless/table-model.d.ts +5 -5
- package/dist/types/internal/functional-components/tabs/api.d.ts +2 -2
- package/dist/types/internal/functional-components/text-input/api.d.ts +4 -28
- package/dist/types/internal/functional-components/textarea/api.d.ts +4 -4
- package/dist/types/internal/functional-components/toolbar/api.d.ts +3 -3
- package/dist/types/internal/functional-components/toolbar/{item.d.ts → entry-item.d.ts} +1 -1
- package/dist/types/internal/functional-components/tooltip/api.d.ts +2 -2
- 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/functional-components/version/api.d.ts +1 -1
- package/dist/types/internal/props/breadcrumb-links.d.ts +1 -1
- package/dist/types/internal/props/helpers/iso-date.d.ts +1 -5
- package/dist/types/internal/props/helpers/normalizers.d.ts +1 -2
- package/dist/types/internal/props/helpers/validators.d.ts +2 -1
- package/dist/types/internal/props/index.d.ts +2 -1
- package/dist/types/internal/props/info-popover.d.ts +1 -1
- package/dist/types/internal/props/input-date-max.d.ts +1 -1
- package/dist/types/internal/props/input-date-min.d.ts +1 -1
- package/dist/types/internal/props/label-decorative.d.ts +4 -0
- package/dist/types/internal/props/nav-links.d.ts +1 -1
- package/dist/types/internal/props/skip-nav-links.d.ts +1 -1
- package/dist/types/internal/props/smart-button.d.ts +1 -25
- package/dist/types/internal/props/table-headers.d.ts +2 -2
- package/dist/types/internal/props/table-stateful-headers.d.ts +2 -2
- package/dist/types/internal/props/value-input-date.d.ts +1 -1
- package/dist/types/locales/de.d.ts +1 -0
- package/dist/types/locales/en.d.ts +1 -0
- package/dist/types/schema/bem-registry.d.ts +87 -23
- package/dist/types/schema/components/alert.d.ts +2 -8
- package/dist/types/schema/components/badge.d.ts +3 -16
- package/dist/types/schema/components/breadcrumb.d.ts +0 -15
- package/dist/types/schema/components/button.d.ts +3 -3
- package/dist/types/schema/components/card.d.ts +0 -9
- package/dist/types/schema/components/form.d.ts +0 -13
- package/dist/types/schema/components/index.d.ts +0 -29
- package/dist/types/schema/components/link.d.ts +2 -2
- package/dist/types/schema/components/pagination.d.ts +3 -17
- package/dist/types/schema/components/popover-button.d.ts +3 -6
- package/dist/types/schema/components/table.d.ts +2 -3
- package/dist/types/schema/components/tableStateless.d.ts +5 -4
- package/dist/types/schema/components/tabs.d.ts +3 -21
- package/dist/types/schema/components/textarea.d.ts +0 -28
- package/dist/types/schema/i18n-keys.d.ts +29 -28
- package/dist/types/schema/index.d.ts +1 -1
- package/dist/types/schema/props/accept.d.ts +0 -3
- package/dist/types/schema/props/access-key.d.ts +0 -2
- package/dist/types/schema/props/active.d.ts +0 -3
- package/dist/types/schema/props/adjust-height.d.ts +0 -2
- package/dist/types/schema/props/alert-type.d.ts +0 -2
- package/dist/types/schema/props/align.d.ts +0 -2
- package/dist/types/schema/props/allow-multi-sort.d.ts +0 -3
- package/dist/types/schema/props/alt.d.ts +0 -3
- package/dist/types/schema/props/alternative-button-link-role.d.ts +1 -5
- package/dist/types/schema/props/aria-controls.d.ts +0 -2
- package/dist/types/schema/props/aria-current-value.d.ts +1 -5
- package/dist/types/schema/props/aria-description.d.ts +0 -2
- package/dist/types/schema/props/aria-details.d.ts +0 -2
- package/dist/types/schema/props/aria-expanded.d.ts +0 -2
- package/dist/types/schema/props/aria-labelledby.d.ts +1 -2
- package/dist/types/schema/props/aria-owns.d.ts +0 -2
- package/dist/types/schema/props/aria-selected.d.ts +0 -2
- package/dist/types/schema/props/auto-complete.d.ts +0 -2
- package/dist/types/schema/props/badge-text.d.ts +0 -2
- package/dist/types/schema/props/button-callbacks.d.ts +0 -3
- package/dist/types/schema/props/button-type.d.ts +1 -5
- package/dist/types/schema/props/button-variant.d.ts +1 -5
- package/dist/types/schema/props/checked.d.ts +0 -2
- package/dist/types/schema/props/collapsible.d.ts +0 -2
- package/dist/types/schema/props/color.d.ts +0 -4
- package/dist/types/schema/props/current-length.d.ts +0 -3
- package/dist/types/schema/props/custom-class.d.ts +0 -2
- package/dist/types/schema/props/disabled.d.ts +0 -2
- package/dist/types/schema/props/download.d.ts +0 -2
- package/dist/types/schema/props/error-list.d.ts +0 -2
- package/dist/types/schema/props/has-closer.d.ts +0 -2
- package/dist/types/schema/props/has-compact-button.d.ts +0 -2
- package/dist/types/schema/props/has-counter.d.ts +0 -3
- package/dist/types/schema/props/has-create-button.d.ts +0 -2
- package/dist/types/schema/props/has-icons-when-expanded.d.ts +0 -2
- package/dist/types/schema/props/has-settings-menu.d.ts +0 -2
- package/dist/types/schema/props/has-value.d.ts +0 -3
- package/dist/types/schema/props/hide-label.d.ts +0 -3
- package/dist/types/schema/props/hide-msg.d.ts +0 -3
- package/dist/types/schema/props/hint.d.ts +0 -2
- package/dist/types/schema/props/href.d.ts +2 -4
- package/dist/types/schema/props/icons-input-checkbox.d.ts +0 -2
- package/dist/types/schema/props/icons.d.ts +0 -3
- package/dist/types/schema/props/id.d.ts +0 -2
- package/dist/types/schema/props/image-sizes.d.ts +0 -3
- package/dist/types/schema/props/image-source.d.ts +0 -3
- package/dist/types/schema/props/image-srcset.d.ts +0 -3
- package/dist/types/schema/props/indeterminate.d.ts +0 -2
- package/dist/types/schema/props/index.d.ts +5 -1
- package/dist/types/schema/props/inline.d.ts +0 -3
- package/dist/types/schema/props/label-align.d.ts +1 -5
- package/dist/types/schema/props/label.d.ts +4 -7
- package/dist/types/schema/props/link-on-callbacks.d.ts +0 -2
- package/dist/types/schema/props/link-target.d.ts +0 -2
- package/dist/types/schema/props/loading.d.ts +1 -5
- package/dist/types/schema/props/max-length-behavior.d.ts +1 -5
- package/dist/types/schema/props/max-length.d.ts +0 -3
- package/dist/types/schema/props/max.d.ts +0 -4
- package/dist/types/schema/props/modal.d.ts +0 -2
- package/dist/types/schema/props/msg.d.ts +0 -2
- package/dist/types/schema/props/multiple.d.ts +0 -3
- package/dist/types/schema/props/name.d.ts +0 -3
- package/dist/types/schema/props/open.d.ts +0 -3
- package/dist/types/schema/props/options.d.ts +0 -4
- package/dist/types/schema/props/orientation.d.ts +1 -5
- package/dist/types/schema/props/pagination-position.d.ts +1 -5
- package/dist/types/schema/props/pattern.d.ts +0 -3
- package/dist/types/schema/props/placeholder.d.ts +0 -3
- package/dist/types/schema/props/popover-align.d.ts +0 -2
- package/dist/types/schema/props/read-only.d.ts +0 -2
- package/dist/types/schema/props/required.d.ts +0 -2
- package/dist/types/schema/props/resize-textarea.d.ts +0 -2
- package/dist/types/schema/props/rows.d.ts +0 -2
- package/dist/types/schema/props/short-key.d.ts +0 -2
- package/dist/types/schema/props/show.d.ts +0 -3
- package/dist/types/schema/props/spell-check.d.ts +0 -2
- package/dist/types/schema/props/suggestions.d.ts +0 -2
- package/dist/types/schema/props/tab-behavior.d.ts +1 -5
- package/dist/types/schema/props/tab-index.d.ts +0 -2
- package/dist/types/schema/props/table-callbacks.d.ts +5 -5
- package/dist/types/schema/props/table-data-foot.d.ts +0 -3
- package/dist/types/schema/props/table-data.d.ts +0 -3
- package/dist/types/schema/props/table-fixed-cols.d.ts +0 -2
- package/dist/types/schema/props/table-headers.d.ts +3 -0
- package/dist/types/schema/props/table-selection.d.ts +0 -2
- package/dist/types/schema/props/toolbar-items.d.ts +0 -2
- package/dist/types/schema/props/tooltip-align.d.ts +0 -2
- package/dist/types/schema/props/touched.d.ts +0 -2
- package/dist/types/schema/props/type-input-date.d.ts +4 -2
- package/dist/types/schema/props/type-input-text.d.ts +0 -2
- package/dist/types/schema/props/unit.d.ts +0 -2
- package/dist/types/schema/props/variant/dialog.d.ts +1 -5
- package/dist/types/schema/props/variant/modal.d.ts +0 -1
- package/dist/types/schema/props/variant/password-variant.d.ts +1 -5
- package/dist/types/schema/props/variant-alert.d.ts +0 -2
- package/dist/types/schema/props/variant-class-name.d.ts +0 -3
- package/dist/types/schema/props/variant-input-checkbox.d.ts +0 -2
- package/dist/types/schema/props/variant-progress.d.ts +0 -2
- package/dist/types/schema/props/visibility-toggle.d.ts +0 -3
- package/dist/types/schema/props/width.d.ts +0 -3
- package/dist/types/schema/types/button-link-text.d.ts +4 -4
- package/dist/types/schema/validators/common.d.ts +2 -0
- package/dist/types/schema/validators/index.d.ts +0 -1
- package/dist/types/stencil-public-runtime.d.ts +1 -1
- package/dist/types/utils/aria-labelledby.d.ts +0 -6
- package/dist/types/utils/testing/logged-messages.d.ts +1 -0
- package/dist/types/utils/testing/snapshot-input-testing.d.ts +2 -1
- package/dist/types/utils/testing/snapshot-testing.d.ts +4 -1
- package/doc/badge.md +21 -6
- package/doc/button.md +13 -0
- package/doc/combobox.md +23 -23
- package/doc/input-checkbox.md +17 -2
- 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 +43 -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.md +13 -0
- package/doc/pagination.md +13 -13
- package/doc/quote.md +13 -0
- package/doc/select.md +24 -24
- package/doc/single-select.md +24 -24
- package/doc/table-stateful.md +33 -16
- package/doc/table-stateless.md +31 -15
- package/doc/tabs.md +1 -1
- package/doc/textarea.md +29 -29
- package/package.json +25 -17
- package/vscode-custom-data.json +53 -158
- package/dist/cjs/ariaCurrentService-3051l6MI.js +0 -28
- package/dist/cjs/block-bem-BI7yfoFU.js +0 -18
- package/dist/cjs/bootstrap-DkgMbRSL.js +0 -33
- package/dist/cjs/clsx-Bm_HQUnh.js +0 -54
- package/dist/cjs/common-C-hcIfzh.js +0 -1755
- package/dist/cjs/component-BEzksV1U.js +0 -9300
- package/dist/cjs/component-BQUKg-qY.js +0 -53
- package/dist/cjs/component-BlAPlTfV.js +0 -20
- package/dist/cjs/component-DMfcX1br.js +0 -14
- package/dist/cjs/component-Dkx5Zyhq.js +0 -18
- package/dist/cjs/component-names-BMpML1sX.js +0 -113
- package/dist/cjs/input-CgTL2oH6.js +0 -20
- package/dist/cjs/kol-click-button.cjs.entry.js +0 -55
- package/dist/cjs/kol-skeleton.cjs.entry.js +0 -107
- package/dist/cjs/name-D4qpL1m-.js +0 -10
- package/dist/collection/components/card/base.js +0 -79
- package/dist/collection/components/click-button/component.js +0 -105
- package/dist/collection/components/link/ariaCurrentService.js +0 -23
- package/dist/collection/components/popover-button/base.js +0 -69
- package/dist/collection/components/skeleton/component.js +0 -215
- package/dist/collection/internal/functional-components/click-button/api.js +0 -7
- package/dist/collection/internal/functional-components/click-button/component.js +0 -9
- package/dist/collection/internal/functional-components/skeleton/api.js +0 -7
- package/dist/collection/internal/functional-components/skeleton/component.js +0 -20
- package/dist/collection/schema/components/button-link.js +0 -1
- package/dist/collection/schema/components/collapsible.js +0 -1
- package/dist/collection/schema/components/combobox.js +0 -1
- package/dist/collection/schema/components/details.js +0 -1
- package/dist/collection/schema/components/dialog.js +0 -1
- package/dist/collection/schema/components/drawer.js +0 -1
- package/dist/collection/schema/components/heading.js +0 -1
- package/dist/collection/schema/components/input-checkbox.js +0 -1
- package/dist/collection/schema/components/input-color.js +0 -1
- package/dist/collection/schema/components/input-date.js +0 -1
- package/dist/collection/schema/components/input-email.js +0 -1
- package/dist/collection/schema/components/input-file.js +0 -1
- package/dist/collection/schema/components/input-number.js +0 -1
- package/dist/collection/schema/components/input-password.js +0 -1
- package/dist/collection/schema/components/input-radio.js +0 -1
- package/dist/collection/schema/components/input-range.js +0 -1
- package/dist/collection/schema/components/input-text.js +0 -1
- package/dist/collection/schema/components/kolibri.js +0 -1
- package/dist/collection/schema/components/link-button.js +0 -1
- package/dist/collection/schema/components/modal.js +0 -1
- package/dist/collection/schema/components/nav.js +0 -1
- package/dist/collection/schema/components/select.js +0 -1
- package/dist/collection/schema/components/single-select.js +0 -1
- package/dist/collection/schema/components/skip-nav.js +0 -1
- package/dist/collection/schema/components/split-button.js +0 -1
- package/dist/collection/schema/components/toolbar.js +0 -1
- package/dist/collection/schema/components/tree-item.js +0 -1
- package/dist/collection/schema/components/tree.js +0 -1
- package/dist/collection/schema/components/version.js +0 -1
- package/dist/collection/schema/props/table-header-cells.js +0 -36
- package/dist/collection/schema/validators/alignment.js +0 -10
- package/dist/collection/utils/testing/legacy-component.js +0 -16
- package/dist/components/aria-labelledby.js +0 -4
- package/dist/components/ariaCurrentService.js +0 -4
- package/dist/components/block-bem.js +0 -4
- package/dist/components/clsx.js +0 -4
- package/dist/components/href.js +0 -4
- package/dist/components/kol-click-button.d.ts +0 -11
- package/dist/components/kol-click-button.js +0 -4
- package/dist/components/kol-skeleton.d.ts +0 -11
- package/dist/components/kol-skeleton.js +0 -4
- package/dist/components/name.js +0 -4
- package/dist/components/props-from-config.js +0 -4
- package/dist/esm/ariaCurrentService-YoLNpD5S.js +0 -25
- package/dist/esm/block-bem-BpQSY04L.js +0 -16
- package/dist/esm/bootstrap-B9DtStuh.js +0 -28
- package/dist/esm/clsx-COFh-Vc8.js +0 -52
- package/dist/esm/common-OzsC_6kt.js +0 -1709
- package/dist/esm/component-Bc1n82Y8.js +0 -16
- package/dist/esm/component-CZZNha2e.js +0 -9295
- package/dist/esm/component-Cdnq5GYF.js +0 -18
- package/dist/esm/component-DLSlbWg8.js +0 -12
- package/dist/esm/component-DeMf195P.js +0 -48
- package/dist/esm/component-names-CrfBV37S.js +0 -111
- package/dist/esm/kol-click-button.entry.js +0 -53
- package/dist/esm/kol-skeleton.entry.js +0 -105
- package/dist/esm/label-with-expert-slot-CicRes-W.js +0 -12
- package/dist/esm/name-B2Yf3EpX.js +0 -8
- package/dist/esm/tooltip-open-tracking-D3tCiiGP.js +0 -18
- package/dist/kolibri/Heading-BVhjT9av.js +0 -4
- package/dist/kolibri/access-and-short-key-ijzCZfHm.js +0 -4
- package/dist/kolibri/api-D92_O-0H.js +0 -4
- package/dist/kolibri/app-globals-CBGjgNge.js +0 -4
- package/dist/kolibri/aria-labelledby-CLehu03h.js +0 -4
- package/dist/kolibri/ariaCurrentService-YoLNpD5S.js +0 -4
- package/dist/kolibri/base-BLBSJu_1.js +0 -4
- package/dist/kolibri/base-CHmdLgoO.js +0 -4
- package/dist/kolibri/base-DIcqHqMz.js +0 -4
- package/dist/kolibri/base-qvPPg-dn.js +0 -4
- package/dist/kolibri/base-web-component-CaAexWy_.js +0 -4
- package/dist/kolibri/base-web-component-DbagnM7m.js +0 -4
- package/dist/kolibri/base-web-component-XgI4wUyN.js +0 -4
- package/dist/kolibri/behavior-B08CXmI4.js +0 -4
- package/dist/kolibri/behavior-CwUUkdaP.js +0 -4
- package/dist/kolibri/behavior-DW7_5Wxp.js +0 -4
- package/dist/kolibri/bem-registry-CWN7_O1L.js +0 -4
- package/dist/kolibri/block-bem-BpQSY04L.js +0 -4
- package/dist/kolibri/bootstrap-B9DtStuh.js +0 -4
- package/dist/kolibri/clsx-COFh-Vc8.js +0 -4
- package/dist/kolibri/color-eAL9I7Wq.js +0 -4
- package/dist/kolibri/common-OzsC_6kt.js +0 -4
- package/dist/kolibri/component-8ALsFV4i.js +0 -4
- package/dist/kolibri/component-BTMWoACz.js +0 -4
- package/dist/kolibri/component-Bc1n82Y8.js +0 -4
- package/dist/kolibri/component-CZZNha2e.js +0 -4
- package/dist/kolibri/component-CdKSiR5P.js +0 -4
- package/dist/kolibri/component-Cdnq5GYF.js +0 -4
- package/dist/kolibri/component-D0mBOGjS.js +0 -4
- package/dist/kolibri/component-DBAicJ2u.js +0 -4
- package/dist/kolibri/component-DCw1ZAE5.js +0 -4
- package/dist/kolibri/component-DLSlbWg8.js +0 -4
- package/dist/kolibri/component-DeMf195P.js +0 -4
- package/dist/kolibri/component-nR5Bf9G5.js +0 -4
- package/dist/kolibri/component-names-CrfBV37S.js +0 -4
- package/dist/kolibri/contrast-D78VGPFR.js +0 -4
- package/dist/kolibri/controller-C3O9ohSP.js +0 -4
- package/dist/kolibri/dev.utils-wYkYn08d.js +0 -4
- package/dist/kolibri/devtools-DrBkkLdP.js +0 -4
- package/dist/kolibri/disabled-Cqhc40CU.js +0 -4
- package/dist/kolibri/element-focus-BIRmGg5W.js +0 -4
- package/dist/kolibri/element-interaction-sGYdEpmv.js +0 -4
- package/dist/kolibri/events-BIT-JUP2.js +0 -4
- package/dist/kolibri/field-control-Cs5VvsYo.js +0 -4
- package/dist/kolibri/group-uNo1CfbK.js +0 -4
- package/dist/kolibri/has-closer-B9NQY7BK.js +0 -4
- package/dist/kolibri/href-JqLbNBsW.js +0 -4
- package/dist/kolibri/i18n-Dl6Jjofb.js +0 -4
- package/dist/kolibri/i18n-DtLKn3Xt.js +0 -4
- package/dist/kolibri/id-CIYvVaNr.js +0 -4
- package/dist/kolibri/index-BKEJuyFi.js +0 -6
- package/dist/kolibri/input-Dja5Qioc.js +0 -4
- package/dist/kolibri/input-container-C2Am7LEP.js +0 -4
- package/dist/kolibri/item-C4AmpdVD.js +0 -4
- package/dist/kolibri/item-ConW1c81.js +0 -4
- package/dist/kolibri/item-D627ShRd.js +0 -4
- package/dist/kolibri/item-DIAFIFSy.js +0 -4
- package/dist/kolibri/item-pool-BOxAYePG.js +0 -4
- package/dist/kolibri/keyboard-Cnv7zP3N.js +0 -4
- package/dist/kolibri/kol-click-button.entry.js +0 -4
- package/dist/kolibri/kol-skeleton.entry.js +0 -4
- package/dist/kolibri/label-BRosRgdX.js +0 -4
- package/dist/kolibri/label-hints-Jn18RUT-.js +0 -4
- package/dist/kolibri/label-lang-segment-2_GnxjFp.js +0 -4
- package/dist/kolibri/label-with-expert-slot-CicRes-W.js +0 -4
- package/dist/kolibri/level-CA1s1_Mf.js +0 -4
- package/dist/kolibri/link-target-FX94oqMo.js +0 -4
- package/dist/kolibri/links-DwucTqcR.js +0 -4
- package/dist/kolibri/multiple-DqrZxybx.js +0 -4
- package/dist/kolibri/name-B2Yf3EpX.js +0 -4
- package/dist/kolibri/number-value-B-SJ1dRo.js +0 -4
- package/dist/kolibri/open-DRRv1KFK.js +0 -4
- package/dist/kolibri/open-items-cache-D-kml1h6.js +0 -4
- package/dist/kolibri/options-B0rBHetL.js +0 -4
- package/dist/kolibri/options-DCaUcfAu.js +0 -4
- package/dist/kolibri/orientation-XNOCaPwy.js +0 -4
- package/dist/kolibri/placeholder-BeLIzdJv.js +0 -4
- package/dist/kolibri/props-from-config-Ci0dILpz.js +0 -4
- package/dist/kolibri/read-only-Bby9r6ZX.js +0 -4
- package/dist/kolibri/required-hoaT7UmZ.js +0 -4
- package/dist/kolibri/resolve-props-BLZxWC3j.js +0 -4
- package/dist/kolibri/resolve-props-D2KiItuv.js +0 -4
- package/dist/kolibri/rows-B0x8CR7K.js +0 -4
- package/dist/kolibri/scroll-lock-Y2hf47KW.js +0 -4
- package/dist/kolibri/smart-button-CS_ZriPt.js +0 -4
- package/dist/kolibri/spell-check-DzgftyqL.js +0 -4
- package/dist/kolibri/src-DaGhmCL1.js +0 -4
- package/dist/kolibri/step-Bdj89bGO.js +0 -4
- package/dist/kolibri/suggestions-DuqzGDve.js +0 -4
- package/dist/kolibri/suggestions-Dy1X-Pc3.js +0 -4
- package/dist/kolibri/toggle-handler-BRLmxe1J.js +0 -4
- package/dist/kolibri/tooltip-open-tracking-D3tCiiGP.js +0 -4
- package/dist/kolibri/unique-nav-labels-h2KOu5Qy.js +0 -4
- package/dist/kolibri/unit-BUhhJbhT.js +0 -4
- package/dist/kolibri/validators-BVM40IEr.js +0 -4
- package/dist/kolibri/value-string-e9pwLcS-.js +0 -4
- package/dist/kolibri/width-CgYY17tL.js +0 -4
- package/dist/types/components/card/base.d.ts +0 -27
- package/dist/types/components/click-button/component.d.ts +0 -15
- package/dist/types/components/popover-button/base.d.ts +0 -21
- package/dist/types/components/skeleton/component.d.ts +0 -26
- package/dist/types/internal/functional-components/click-button/api.d.ts +0 -15
- package/dist/types/internal/functional-components/click-button/component.d.ts +0 -4
- package/dist/types/internal/functional-components/skeleton/api.d.ts +0 -29
- package/dist/types/internal/functional-components/skeleton/component.d.ts +0 -4
- package/dist/types/schema/components/accordion.d.ts +0 -11
- package/dist/types/schema/components/button-link.d.ts +0 -7
- package/dist/types/schema/components/collapsible.d.ts +0 -7
- package/dist/types/schema/components/combobox.d.ts +0 -26
- package/dist/types/schema/components/details.d.ts +0 -11
- package/dist/types/schema/components/dialog.d.ts +0 -21
- package/dist/types/schema/components/drawer.d.ts +0 -17
- package/dist/types/schema/components/heading.d.ts +0 -17
- package/dist/types/schema/components/input-checkbox.d.ts +0 -25
- package/dist/types/schema/components/input-color.d.ts +0 -25
- package/dist/types/schema/components/input-date.d.ts +0 -34
- package/dist/types/schema/components/input-email.d.ts +0 -31
- package/dist/types/schema/components/input-file.d.ts +0 -22
- package/dist/types/schema/components/input-number.d.ts +0 -33
- package/dist/types/schema/components/input-password.d.ts +0 -31
- package/dist/types/schema/components/input-radio.d.ts +0 -22
- package/dist/types/schema/components/input-range.d.ts +0 -27
- package/dist/types/schema/components/input-text.d.ts +0 -33
- package/dist/types/schema/components/kolibri.d.ts +0 -21
- package/dist/types/schema/components/link-button.d.ts +0 -7
- package/dist/types/schema/components/modal.d.ts +0 -4
- package/dist/types/schema/components/nav.d.ts +0 -16
- package/dist/types/schema/components/select.d.ts +0 -24
- package/dist/types/schema/components/single-select.d.ts +0 -24
- package/dist/types/schema/components/skip-nav.d.ts +0 -16
- package/dist/types/schema/components/split-button.d.ts +0 -9
- package/dist/types/schema/components/toolbar.d.ts +0 -11
- package/dist/types/schema/components/tree-item.d.ts +0 -12
- package/dist/types/schema/components/tree.d.ts +0 -10
- package/dist/types/schema/components/version.d.ts +0 -10
- package/dist/types/schema/props/table-header-cells.d.ts +0 -11
- package/dist/types/schema/validators/alignment.d.ts +0 -3
- package/dist/types/utils/testing/legacy-component.d.ts +0 -4
- package/doc/skeleton.md +0 -54
- /package/dist/collection/{components → internal/functional-components}/tree/open-items-cache.js +0 -0
- /package/dist/collection/schema/{components/accordion.js → props/table-headers.js} +0 -0
- /package/dist/types/{components/link/ariaCurrentService.d.ts → internal/functional-components/link/aria-current-service.d.ts} +0 -0
- /package/dist/types/{components → internal/functional-components}/tree/open-items-cache.d.ts +0 -0
|
@@ -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-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}
|
|
4
|
+
import{r as t,X as o,h as e,H as i,g as n}from"./index-D1fZ9xFt.js";import{_ as a}from"./tslib.es6-QNbPBOk5.js";import{h as l,g as r,I as s}from"./input-container-DC3x4oGg.js";import{f as c,B as h,F as d}from"./api-Ba9FNPRn.js";import{I as m}from"./input-DwlolkOG.js";import{i as p,a as u,b as k,g as b,r as f,p as g}from"./number-value-adUq1zr1.js";import{a as _,S as v}from"./suggestions-qW9OdwO3.js";import{I as y}from"./component-BZjDp_Lf.js";import{a as w,d as x,v as j}from"./component-0npqUhj2.js";import{e as B}from"./props-from-config-DqFgiUwD.js";import{p as z}from"./placeholder-BTFnryTd.js";import{r as C}from"./read-only-DRmmHb2G.js";import{r as D}from"./required-D4CdAA4s.js";import{s as T}from"./smart-button-BYEk3DzS.js";import{s as O}from"./step-C7WPZrUp.js";import{s as S}from"./suggestions-CotfxJG1.js";import{b as q}from"./bem-registry-CrZZQahR.js";import{v as A}from"./access-and-short-key-BTEwnScd.js";import{c as I}from"./dev.utils-BgFDROtc.js";import{d as K,a as H,c as R}from"./element-interaction-B3GEli6r.js";import{s as P}from"./controller-DYkXzFqc.js";import"./component-DP_p5few.js";import"./component-CjdTbGlP.js";import"./disabled-BZIZZ6wy.js";import"./id-CkUYl2hO.js";import"./label-with-expert-slot-C1i0atAL.js";import"./validators-yh10eyXe.js";import"./label-hints-DiRb_zIZ.js";import"./aria-labelledby-C4wUnR-v.js";import"./events-DdfMb1U7.js";import"./base-web-component-B3wi5eWH.js";import"./item-cArH2C6l.js";import"./behavior-DDo87iUM.js";import"./tooltip-open-tracking-CxHWKk8f.js";import"./shared-state-Dn94ivRg.js";import"./label-lang-segment-BSVexfSR.js";import"./resolve-props-Dpl38Wpe.js";import"./behavior-D9BHiFnH.js";import"./bootstrap-Cz7Iq2I2.js";import"./theme-store-DroJsU6S.js";import"./i18n-TlIXBsgS.js";import"./component-names-DzmdvSkQ.js";import"./item-uC3h4pj3.js";import"./component-DFhRTaqb.js";import"./i18n-Uze_l4Ts.js";import"./component-Cvd5HXbX.js";import"./Heading-foerLIu9.js";import"./element-focus-C0L8NWU8.js";const F={required:[...c.required],optional:[...c.optional,w,_,l,p,u,k,z,C,D,x,T,O,S,j]},G=q.forBlock("kol-input-number"),L=G("step-button"),U=t=>{var o;return!0===(null===(o=null==t?void 0:t.classList)||void 0===o?void 0:o.contains(L))},V=class extends h{constructor(o){super(),new.target===V&&t(this,o),this.id=I("input-number"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=R(),this.valueType="null",this.hasValue=!1,this.propsConfig=F,this._accessKey=void 0,this._ariaDetails=void 0,this._autoComplete="off",this._disabled=!1,this._hideLabel=!1,this._hideMsg=!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._step=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.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=>{U(t.relatedTarget)||this.handleFocus(t)},this.handleNumberBlur=t=>{U(t.relatedTarget)||this.handleBlur(t)},this.handleNumberKeyDown=t=>{this.handleKeyDown(t),P(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){w.apply(t,(t=>this.setRenderProp("accessKey",t))),A(t,this._shortKey)}watchAriaDetails(t){this.applyAriaDetails(t)}watchAutoComplete(t){_.apply(t,(t=>this.setRenderProp("autoComplete",t)))}watchDisabled(t){this.applyDisabled(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHint(t){this.applyHint(t)}watchIcons(t){l.apply(t,(t=>this.setRenderProp("icons",t)))}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMax(t){p.apply(t,(t=>this.setRenderProp("max",t)))}watchMin(t){u.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){D.apply(t,(t=>this.setRenderProp("required",t)))}watchShortKey(t){x.apply(t,(t=>this.setRenderProp("shortKey",t))),A(this._accessKey,t)}watchSmartButton(t){null==t?this.unsetRenderProp("smartButton"):T.apply(t,(t=>this.setRenderProp("smartButton",t)))}watchStep(t){O.apply(t,(t=>this.setRenderProp("step",t)))}watchSuggestions(t){S.apply(t,(t=>this.setRenderProp("suggestions",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchValue(t){var o;k.apply(t,(t=>this.setRenderProp("value",t))),this.formAssociation.setFormAssociatedValue(null!==(o=this.getRenderProp("value"))&&void 0!==o?o:null),null!=t&&(this.valueType=b(t))}watchVariant(t){j.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.watchAccessKey(this._accessKey),this.watchAriaDetails(this._ariaDetails),this.watchAutoComplete(this._autoComplete),this.watchDisabled(this._disabled),this.watchHideLabel(this._hideLabel),this.watchHideMsg(this._hideMsg),this.watchHint(this._hint),this.watchIcons(this._icons),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchMax(this._max),this.watchMin(this._min),this.watchMsg(this._msg),this.watchName(this._name),this.watchOn(this._on),this.watchPlaceholder(this._placeholder),this.watchReadOnly(this._readOnly),this.watchRequired(this._required),this.watchShortKey(this._shortKey),this.watchSmartButton(this._smartButton),this.watchStep(this._step),this.watchSuggestions(this._suggestions),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTooltipAlign(this._tooltipAlign),this.watchTouched(this._touched),this.watchValue(this._value),this.watchVariant(this._variant),this.hasValue=Boolean(this.getRenderProp("value"))}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField()}remapValue(t){return f(t,this.valueType)}readInputValue(){var t;return this.remapValue(g(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"===o("inputNumberButtons",this.host)?null:e("button",{type:"button","aria-hidden":"true",tabIndex:-1,class:`${L} ${L}-${t} kol-input-container__smart-button`,onClick:"up"===t?this.handleStepUp:this.handleStepDown,disabled:this._disabled||this._readOnly},e(y,{icons:"up"===t?"kolicon-plus":"kolicon-minus",label:""}))}getInputProps(){var t,o,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!==(o=this.getRenderProp("min"))&&void 0!==o?o: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:e(v,{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:o,endAdornment:n}=r({icons:this.getRenderProp("icons"),smartButton:this.getSmartButtonFcProps(this.getRenderProp("smartButton"),t),startAdornment:this.renderStepButton("down"),endAdornment:this.renderStepButton("up")});return e(i,{key:"689dc63dc93d7b56ada8e0ee46b73486b6f9eef7"},e(d,Object.assign({key:"459f33bba406670ce669e344bcc841d24f6dc44d"},this.getFormFieldProps({class:B(G(),"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")})),e(s,{key:"505059c2ebf483115497b1b304a58669be470b84",disabled:t,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:o,endAdornment:n},e(m,Object.assign({key:"ac7a39324e3f05b62800f236c58f222ed0cac1c1"},this.getInputProps())))))}get host(){return n(this)}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_autoComplete:[{watchAutoComplete:0}],_disabled:[{watchDisabled:0}],_hideLabel:[{watchHideLabel:0}],_hideMsg:[{watchHideMsg: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}],_step:[{watchStep:0}],_suggestions:[{watchSuggestions:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}};a([K("ctaRef")],V.prototype,"focus",null),a([H("ctaRef")],V.prototype,"click",null),V.style={default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-meter meter { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-bar { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-optimum-value, .kol-meter meter::-webkit-meter-suboptimum-value, .kol-meter meter::-webkit-meter-even-less-good-value { background-color: CanvasText; } .kol-meter meter::-moz-meter-bar { background-color: CanvasText; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1795564435804"); src: url("kolicons.eot?t=1795564435804#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1795564435804") format("woff2"), url("kolicons.woff?t=1795564435804") format("woff"), url("kolicons.ttf?t=1795564435804") format("truetype"), url("kolicons.svg?t=1795564435804#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{V as kol_input_number}
|
|
@@ -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-BKEJuyFi.js";import{_ as n}from"./tslib.es6-QNbPBOk5.js";import{e as l}from"./common-OzsC_6kt.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{F as c}from"./api-D92_O-0H.js";import{I as h}from"./input-Dja5Qioc.js";import{I as d}from"./input-container-C2Am7LEP.js";import{c as p,n as m}from"./props-from-config-Ci0dILpz.js";import{t as k,B as b}from"./base-web-component-CaAexWy_.js";import{c as f}from"./dev.utils-wYkYn08d.js";import{d as u,a as _}from"./element-interaction-sGYdEpmv.js";import"./i18n-Dl6Jjofb.js";import"./component-8ALsFV4i.js";import"./validators-BVM40IEr.js";import"./bem-registry-CWN7_O1L.js";import"./component-CZZNha2e.js";import"./clsx-COFh-Vc8.js";import"./component-Cdnq5GYF.js";import"./component-Bc1n82Y8.js";import"./block-bem-BpQSY04L.js";import"./disabled-Cqhc40CU.js";import"./id-CIYvVaNr.js";import"./label-with-expert-slot-CicRes-W.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"./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 g=p("visibilityToggle",!1,m),w={required:[...k.required],optional:[...k.optional,g]},y=class extends b{constructor(o){super(),t(this,o),this.id=f("input-password"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.passwordVisible=!1,this.visibilityToggle=s((()=>this.host)),this.translateHidePassword=a("kol-hide-password"),this.translateShowPassword=a("kol-show-password"),this.propsConfig=w,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._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._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this._variant=void 0,this._visibilityToggle=!1,this.handleVisibilityToggle=()=>{var t;this.passwordVisible=!this.passwordVisible,null===(t=this.ctaRef.el)||void 0===t||t.focus()},this.initFormAssociation("password",this._name)}watchAccessKey(t){this.applyAccessKey(t)}watchAriaDetails(t){this.applyAriaDetails(t)}watchAutoComplete(t){this.applyAutoComplete(t),"on"===t&&l("[KolInputPassword] The 'autocomplete' option should not be set to \"on\" for a password input field")}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)}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)}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)}watchVisibilityToggle(t){g.apply(t,(t=>this.setRenderProp("visibilityToggle",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()}connectedCallback(){super.connectedCallback(),this.visibilityToggle.syncListeners()}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.watchVisibilityToggle(this._visibilityToggle),this.initValue(this._value),this.initHasValue()}componentDidLoad(){this.didLoadTextInput()}componentDidUpdate(){this.didUpdateTextInput()}componentDidRender(){this.syncFormField(),this.visibilityToggle.syncListeners()}disconnectedCallback(){this.visibilityToggle.destroy(),this.destroyTextInput()}getVisibilityToggle(){return this.getRenderProp("visibilityToggle")?o(r,Object.assign({},this.visibilityToggle.getFcProps({_label:this.passwordVisible?this.translateHidePassword:this.translateShowPassword,_icons:this.passwordVisible?"kolicon-eye-closed":"kolicon-eye",_hideLabel:!0,_disabled:this._disabled,_on:{onClick:this.handleVisibilityToggle}},{class:"kol-input-password__password-toggle-button kol-input-container__smart-button"}))):null}render(){const{startAdornment:t,endAdornment:i}=this.getTextInputAdornments(this.getVisibilityToggle());return o(e,{key:"5816f43f2a71c962882c4f67ffa580ac7eb1822e"},o(c,Object.assign({key:"32dacc9466c01138d1631e45b47f93d65f014530"},this.getTextFormFieldProps("kol-input-password password")),o(d,{key:"59bfeb6f579d1d4e33dfaa40011143b09b59d558",disabled:this.getRenderProp("disabled"),msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:t,endAdornment:i},o(h,Object.assign({key:"275bea4c68dcf80a02edb07fcc97ae03a6c1e051"},this.getTextInputProps({},{type:this.getRenderProp("visibilityToggle")&&this.passwordVisible?"text":"password"}))))))}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}],_name:[{watchName:0}],_on:[{watchOn:0}],_pattern:[{watchPattern:0}],_placeholder:[{watchPlaceholder:0}],_readOnly:[{watchReadOnly:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}],_visibilityToggle:[{watchVisibilityToggle:0}]}}};n([u("ctaRef")],y.prototype,"focus",null),n([_("ctaRef")],y.prototype,"click",null),y.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-password { --kol-tooltip-width: calc(160 * 1rem / var(--kolibri-root-font-size, 16)); } }'};export{y as kol_input_password}
|
|
4
|
+
import{r as t,m as o,h as e,H as i,g as n}from"./index-D1fZ9xFt.js";import{_ as l}from"./tslib.es6-QNbPBOk5.js";import{t as a}from"./i18n-Uze_l4Ts.js";import{B as r}from"./component-DP_p5few.js";import{c as s}from"./item-cArH2C6l.js";import{F as c}from"./api-Ba9FNPRn.js";import{I as h}from"./input-DwlolkOG.js";import{I as d}from"./input-container-DC3x4oGg.js";import{c as p,n as m,e as k}from"./props-from-config-DqFgiUwD.js";import{t as b,B as f}from"./base-web-component-BpL_hXcg.js";import{b as u}from"./bem-registry-CrZZQahR.js";import{c as g}from"./dev.utils-BgFDROtc.js";import{d as _,a as w}from"./element-interaction-B3GEli6r.js";import"./i18n-TlIXBsgS.js";import"./shared-state-Dn94ivRg.js";import"./component-0npqUhj2.js";import"./validators-yh10eyXe.js";import"./component-CjdTbGlP.js";import"./component-BZjDp_Lf.js";import"./disabled-BZIZZ6wy.js";import"./id-CkUYl2hO.js";import"./label-with-expert-slot-C1i0atAL.js";import"./label-hints-DiRb_zIZ.js";import"./controller-DYkXzFqc.js";import"./component-names-DzmdvSkQ.js";import"./events-DdfMb1U7.js";import"./base-web-component-B3wi5eWH.js";import"./behavior-DDo87iUM.js";import"./tooltip-open-tracking-CxHWKk8f.js";import"./label-lang-segment-BSVexfSR.js";import"./resolve-props-Dpl38Wpe.js";import"./aria-labelledby-C4wUnR-v.js";import"./behavior-D9BHiFnH.js";import"./bootstrap-Cz7Iq2I2.js";import"./theme-store-DroJsU6S.js";import"./item-uC3h4pj3.js";import"./component-DFhRTaqb.js";import"./component-Cvd5HXbX.js";import"./Heading-foerLIu9.js";import"./suggestions-qW9OdwO3.js";import"./placeholder-BTFnryTd.js";import"./read-only-DRmmHb2G.js";import"./required-D4CdAA4s.js";import"./smart-button-BYEk3DzS.js";import"./value-string-DwEIOG1f.js";import"./access-and-short-key-BTEwnScd.js";import"./behavior-XAV9GSxI.js";import"./element-focus-C0L8NWU8.js";const y=p("visibilityToggle",!1,m),v={required:[...b.required],optional:[...b.optional,y]},x=u.forBlock("kol-input-password"),j=class extends f{constructor(o){super(),new.target===j&&t(this,o),this.id=g("input-password"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.passwordVisible=!1,this.visibilityToggle=s((()=>this.host)),this.translateHidePassword=a("kol-hide-password"),this.translateShowPassword=a("kol-show-password"),this.propsConfig=v,this._accessKey=void 0,this._ariaDetails=void 0,this._autoComplete="off",this._disabled=!1,this._hasCounter=!1,this._hideLabel=!1,this._hideMsg=!1,this._hint="",this._icons=void 0,this._infoPopover=void 0,this._maxLength=void 0,this._maxLengthBehavior="hard",this._msg=void 0,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._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this._variant=void 0,this._visibilityToggle=!1,this.handleVisibilityToggle=()=>{var t;this.passwordVisible=!this.passwordVisible,null===(t=this.ctaRef.el)||void 0===t||t.focus()},this.initFormAssociation("password",this._name)}watchAccessKey(t){this.applyAccessKey(t)}watchAriaDetails(t){this.applyAriaDetails(t)}watchAutoComplete(t){this.applyAutoComplete(t),"on"===t&&o("[KolInputPassword] The 'autocomplete' option should not be set to \"on\" for a password input field")}watchDisabled(t){this.applyDisabled(t)}watchHasCounter(t){this.applyHasCounter(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHideMsg(t){this.applyHideMsg(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)}watchMaxLengthBehavior(t){this.applyMaxLengthBehavior(t)}watchMsg(t){this.applyMsg(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)}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)}watchVisibilityToggle(t){y.apply(t,(t=>this.setRenderProp("visibilityToggle",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()}connectedCallback(){super.connectedCallback(),this.visibilityToggle.syncListeners()}componentWillLoad(){this.unsetRenderProp("smartButton"),this._touched=!0===this._touched,this.watchAccessKey(this._accessKey),this.watchAriaDetails(this._ariaDetails),this.watchAutoComplete(this._autoComplete),this.watchDisabled(this._disabled),this.watchHasCounter(this._hasCounter),this.watchHideLabel(this._hideLabel),this.watchHideMsg(this._hideMsg),this.watchHint(this._hint),this.watchIcons(this._icons),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchMaxLengthBehavior(this._maxLengthBehavior),this.watchMsg(this._msg),this.watchName(this._name),this.watchOn(this._on),this.watchShortKey(this._shortKey),this.watchSmartButton(this._smartButton),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTooltipAlign(this._tooltipAlign),this.watchTouched(this._touched),this.watchVariant(this._variant),this.initMaxLength(this._maxLength),this.watchPattern(this._pattern),this.watchPlaceholder(this._placeholder),this.watchReadOnly(this._readOnly),this.watchRequired(this._required),this.watchVisibilityToggle(this._visibilityToggle),this.initValue(this._value),this.initHasValue()}componentDidLoad(){this.didLoadTextInput()}componentDidUpdate(){this.didUpdateTextInput()}componentDidRender(){this.syncFormField(),this.visibilityToggle.syncListeners()}disconnectedCallback(){this.visibilityToggle.destroy(),this.destroyTextInput()}getVisibilityToggle(){return this.getRenderProp("visibilityToggle")?e(r,Object.assign({},this.visibilityToggle.getFcProps({_label:this.passwordVisible?this.translateHidePassword:this.translateShowPassword,_icons:this.passwordVisible?"kolicon-eye-closed":"kolicon-eye",_hideLabel:!0,_disabled:this._disabled,_on:{onClick:this.handleVisibilityToggle}},{class:k(x("password-toggle-button"),"kol-input-container__smart-button")}))):null}render(){const{startAdornment:t,endAdornment:o}=this.getTextInputAdornments(this.getVisibilityToggle());return e(i,{key:"ffbeeaa6e3a3a723e51878b1bf337e3345c8b4d9"},e(c,Object.assign({key:"96cc67c402c93e427bad7a4840c0ba1384b45457"},this.getTextFormFieldProps(k(x(),"password"))),e(d,{key:"5a7c4c93aa2984b9dd8bd104c5d90cccb15b6d92",disabled:this.getRenderProp("disabled"),msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:t,endAdornment:o},e(h,Object.assign({key:"4cc992f654c1132cd38acbf09695bc690c135930"},this.getTextInputProps({},{type:this.getRenderProp("visibilityToggle")&&this.passwordVisible?"text":"password"}))))))}get host(){return n(this)}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_autoComplete:[{watchAutoComplete:0}],_disabled:[{watchDisabled:0}],_hasCounter:[{watchHasCounter:0}],_hideLabel:[{watchHideLabel:0}],_hideMsg:[{watchHideMsg:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_maxLength:[{watchMaxLength:0}],_maxLengthBehavior:[{watchMaxLengthBehavior:0}],_msg:[{watchMsg: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}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}],_visibilityToggle:[{watchVisibilityToggle:0}]}}};l([_("ctaRef")],j.prototype,"focus",null),l([w("ctaRef")],j.prototype,"click",null),j.style={default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-meter meter { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-bar { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-optimum-value, .kol-meter meter::-webkit-meter-suboptimum-value, .kol-meter meter::-webkit-meter-even-less-good-value { background-color: CanvasText; } .kol-meter meter::-moz-meter-bar { background-color: CanvasText; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1795564435804"); src: url("kolicons.eot?t=1795564435804#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1795564435804") format("woff2"), url("kolicons.woff?t=1795564435804") format("woff"), url("kolicons.ttf?t=1795564435804") format("truetype"), url("kolicons.svg?t=1795564435804#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-password { --kol-tooltip-width: calc(160 * 1rem / var(--kolibri-root-font-size, 16)); } }'};export{j as kol_input_password}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as o,r as t,H as e,g as i}from"./index-BKEJuyFi.js";import{B as n}from"./base-web-component-XgI4wUyN.js";import{i as l,g as a,f as r,B as s,F as c}from"./api-D92_O-0H.js";import{i as d,F as h}from"./field-control-Cs5VvsYo.js";import{f as p,n as m}from"./options-B0rBHetL.js";import{a as f}from"./tslib.es6-QNbPBOk5.js";import"./common-OzsC_6kt.js";import{b as k}from"./bem-registry-CWN7_O1L.js";import{c as u}from"./clsx-COFh-Vc8.js";import{B as b}from"./component-Bc1n82Y8.js";import{I as _}from"./input-Dja5Qioc.js";import{c as g}from"./props-from-config-Ci0dILpz.js";import{c as y}from"./options-DCaUcfAu.js";import{n as v}from"./orientation-XNOCaPwy.js";import{r as w}from"./required-hoaT7UmZ.js";import{v as x}from"./component-8ALsFV4i.js";import{T as j}from"./behavior-CwUUkdaP.js";import{c as B,a as z}from"./dev.utils-wYkYn08d.js";import{b as T,s as C}from"./element-interaction-sGYdEpmv.js";import{d as O,s as L}from"./element-focus-BIRmGg5W.js";import{s as D}from"./controller-C3O9ohSP.js";import"./component-CZZNha2e.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"./disabled-Cqhc40CU.js";import"./label-with-expert-slot-CicRes-W.js";import"./validators-BVM40IEr.js";import"./label-hints-Jn18RUT-.js";import"./item-C4AmpdVD.js";import"./resolve-props-BLZxWC3j.js";import"./component-BTMWoACz.js";import"./id-CIYvVaNr.js";import"./item-D627ShRd.js";import"./component-CdKSiR5P.js";import"./i18n-DtLKn3Xt.js";import"./component-D0mBOGjS.js";import"./Heading-BVhjT9av.js";import"./block-bem-BpQSY04L.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./label-lang-segment-2_GnxjFp.js";const q=y(),I=g("orientation","vertical",v),V=g("value",null,(o=>Array.isArray(o)?o[0]:o)),P=k.forBlock("kol-input-radio"),S=t=>{var{class:e,inputProps:i}=t,n=f(t,["class","inputProps"]);const{class:r}=i,s=f(i,["class"]);return o(b,Object.assign({component:"label",block:"kol-input-radio",modifiers:Object.assign({checked:Boolean(i.checked),disabled:Boolean(i.disabled),required:Boolean(i.required),touched:Boolean(i.touched)},l(i.msg,i.touched)?{[a(i.msg)]:!0}:{}),class:e},n),o(_,Object.assign({class:u(P("input"),r)},s,{type:"radio"})))},A={required:[...r.required],optional:[...r.optional,q,I,V,w,x]},G=class extends s{constructor(o){super(),t(this,o),this.id=B("input-radio"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.inputRefs=new Map,this.keyOptionMap=new Map,this.optionTooltips=new Map,this.propsConfig=A,this._ariaDetails=void 0,this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._infoPopover=void 0,this._msg=void 0,this._name=void 0,this._on=void 0,this._options=void 0,this._orientation="vertical",this._required=!1,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=null,this._variant=void 0,this.setSelectedInputRef=o=>{this.inputRef=o},this.setOptionInputRef=o=>t=>{t?this.inputRefs.set(o,t):this.inputRefs.delete(o)},this.handleRadioInput=o=>{const t=this.getOptionOfEvent(o);void 0!==t&&this.handleInput(o,t.value)},this.handleRadioChange=o=>{const t=this.getOptionOfEvent(o);void 0!==t&&(this.handleChange(o,t.value),this._value=t.value)},this.handleRadioKeyDown=o=>{this.handleKeyDown(o),D(o,{form:this.host,ref:this.inputRef})},this.initFormAssociation("radio",this._name)}watchAriaDetails(o){this.applyAriaDetails(o)}watchDisabled(o){this.applyDisabled(o)}watchHideMsg(o){this.applyHideMsg(o)}watchHideLabel(o){this.applyHideLabel(o)}watchHint(o){this.applyHint(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)}watchOptions(o){q.apply(o,(o=>{this.setRenderProp("options",o),o.length>0&&(this.keyOptionMap.clear(),p(this.keyOptionMap,m(o)))}))}watchOrientation(o){I.apply(o,(o=>this.setRenderProp("orientation",o)))}watchRequired(o){w.apply(o,(o=>this.setRenderProp("required",o)))}watchSyncValueBySelector(o){this.applySyncValueBySelector(o)}watchTooltipAlign(o){this.applyTooltipAlign(o)}watchTouched(o){this.applyTouched(o)}watchValue(o){null==o?this.setRenderProp("value",o):V.apply(o,(o=>this.setRenderProp("value",o))),this.formAssociation.setFormAssociatedValue(this.getRenderProp("value"))}watchVariant(o){x.apply(o,(o=>this.setRenderProp("variant",o)))}getValue(){return Promise.resolve(this._value)}async focus(o){const t=this.getFocusableInput();return O(this.host,(()=>L(t,o)))}async click(){return T(this.host,(async()=>C(this.getFocusableInput())))}componentWillLoad(){this._touched=!0===this._touched,this.watchAriaDetails(this._ariaDetails),this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),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.watchOn(this._on),this.watchTooltipAlign(this._tooltipAlign),this.watchVariant(this._variant),this.watchRequired(this._required),this.watchOrientation(this._orientation),this.watchOptions(this._options),this.watchValue(this._value)}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField(),this.optionTooltips.forEach((o=>o.destroy())),this.optionTooltips.clear()}isOptionSelected(o){var t;return this.getRenderProp("value")===(null!==(t=o.value)&&void 0!==t?t:o.label)}getFocusableInput(){const o=this.getRenderProp("options"),t=Boolean(this.getRenderProp("disabled")),e=o.findIndex((o=>this.isOptionSelected(o)&&!t&&!o.disabled));if(-1!==e){const o=this.inputRefs.get(e);if(o)return o}const i=o.findIndex((o=>!t&&!o.disabled));if(-1!==i)return this.inputRefs.get(i)}getOptionOfEvent(o){return o.target instanceof HTMLInputElement?this.keyOptionMap.get(o.target.value):void 0}getOptionTooltipRefs(o,t){let e=this.optionTooltips.get(o);d({hideLabel:this.getRenderProp("hideLabel"),label:t})?(e||(e=new j(n.stateLess),e.componentWillLoad({label:""}),this.optionTooltips.set(o,e)),e.watchAlign(this.getRenderProp("tooltipAlign")),e.watchBadgeText(""),e.watchId(z(o,"label")),e.watchLabel(t)):e&&(e.destroy(),this.optionTooltips.delete(o),e=void 0);const i=e;return{refInput:o=>{i&&o&&(i.initContext(o),i.syncListeners(void 0,o,!0))},refTooltip:o=>{null==i||i.setTooltipElementRef(o)}}}isOptionDisabled(o){return Boolean(this.getRenderProp("disabled"))||Boolean(o.disabled)}getInputProps(o,t,e,i){const{hasError:n}=this.getAria(),l=this.getRenderProp("hideLabel");return{id:t,hideLabel:l,label:this.getRenderProp("label"),value:`-${e}`,disabled:this.isOptionDisabled(o),name:this.getRenderProp("name")||this.id,required:this.getRenderProp("required"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg"),ref:o=>{this.setOptionInputRef(e)(o),i&&this.setSelectedInputRef(o)},"aria-label":l&&"string"==typeof o.label?o.label:void 0,type:"radio",checked:i,onBlur:this.handleBlur,onChange:this.handleRadioChange,onFocus:this.handleFocus,onInput:this.handleRadioInput,onKeyDown:this.handleRadioKeyDown,"aria-invalid":n?"true":void 0}}renderOption(t,e){const i=z(this.id,String(e)),n=this.isOptionSelected(t),l=t.label;return o(h,Object.assign({key:i,id:i,label:l,hint:t.hint,hideLabel:this.getRenderProp("hideLabel"),tooltipAlign:this.getRenderProp("tooltipAlign"),disabled:this.isOptionDisabled(t),msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),required:!1,labelProps:{showBadge:!1}},this.getOptionTooltipRefs(i,l)),o(S,{inputProps:this.getInputProps(t,i,e,n)}))}render(){const{ariaDescribedBy:t}=this.getAria();return o(e,{key:"5742f3de38fb7d91196e591fa0a253d8b06b49da"},o(c,Object.assign({key:"039352572e9b706785a98dcd7390b3e0c27b8168"},this.getFormFieldProps({class:"kol-form-field--radio",required:this.getRenderProp("required"),variant:this.getRenderProp("variant"),renderNoTooltip:!0}),{component:"fieldset",orientation:this.getRenderProp("orientation"),hideLabel:!1,ariaDescribedBy:t.length>0?t.join(" "):void 0}),this.getRenderProp("options").map(((o,t)=>this.renderOption(o,t)))))}get host(){return i(this)}static get watchers(){return{_ariaDetails:[{watchAriaDetails:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_options:[{watchOptions:0}],_orientation:[{watchOrientation:0}],_required:[{watchRequired:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}};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; } 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-field-control { display: grid; min-height: var(--a11y-min-size); align-items: center; justify-content: left; grid-template-areas: "input label"; grid-template-columns: auto 1fr; grid-template-rows: auto; } .kol-field-control:has(.kol-field-control__hint) { grid-template-areas: "input label" "hint hint"; grid-template-columns: auto 1fr; grid-template-rows: auto auto; } .kol-field-control--label-align-left:not(.kol-field-control--hide-label) { grid-template-areas: "label input"; grid-template-columns: 1fr auto; grid-template-rows: auto; } .kol-field-control--label-align-left:not(.kol-field-control--hide-label):has(.kol-field-control__hint) { grid-template-areas: "label input" "hint hint"; grid-template-columns: 1fr auto; grid-template-rows: auto auto; } .kol-field-control__input { display: flex; min-height: var(--a11y-min-size); align-items: center; grid-area: input; } .kol-field-control__label { display: flex; min-height: var(--a11y-min-size); flex-grow: 1; align-items: center; cursor: pointer; grid-area: label; } .kol-field-control__label--visually-hidden { display: none; height: 0; margin: 0; padding: 0; visibility: hidden; } .kol-field-control__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-field-control__hint { grid-area: hint; } .kol-field-control--disabled .kol-field-control__label { cursor: not-allowed; } .kol-field-control--required .kol-field-control__label-text:has(.kol-span__slot[hidden])::after, .kol-field-control--required .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-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-form-field { --border-width: 2px; --input-size: 1.5em; } .kol-form-field__label { display: contents; } .kol-form-field__label-text { display: ruby; } .kol-form-field__input { display: flex; flex-direction: column; } .kol-form-field__input--orientation-horizontal { flex-direction: row; flex-wrap: wrap; align-items: flex-start; } .kol-form-field--disabled { opacity: unset; } .kol-input-radio { display: flex; position: relative; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; justify-content: center; cursor: pointer; } .kol-input-radio__input { border-style: solid; border-radius: 100%; display: flex; width: var(--input-size); min-width: var(--input-size); height: var(--input-size); min-height: var(--input-size); margin: 0; padding: 0; border-width: var(--border-width); appearance: none; cursor: pointer; } .kol-input-radio__input:before { border-radius: 100%; width: calc(var(--input-size) / 2); height: calc(var(--input-size) / 2); margin: auto; content: ""; } .kol-input-radio__input:checked:before { background-color: black; } @media (forced-colors: active) { .kol-input-radio__input:checked:before { background-color: selectedItem !important; } } .kol-input-radio__input:disabled { cursor: not-allowed; } .kol-input-radio--disabled { cursor: not-allowed; } }'};export{G as kol_input_radio}
|
|
4
|
+
import{h as o,r as t,H as e,g as i}from"./index-D1fZ9xFt.js";import{B as l}from"./base-web-component-B3wi5eWH.js";import{i as n,g as a,f as r,B as s,F as c}from"./api-Ba9FNPRn.js";import{i as d,F as h}from"./field-control-QF0yTcyb.js";import{f as p,n as m}from"./options-BDTJtk6H.js";import{a as f}from"./tslib.es6-QNbPBOk5.js";import{b as k}from"./bem-registry-CrZZQahR.js";import{c as u,e as b,B as g}from"./props-from-config-DqFgiUwD.js";import{I as _}from"./input-DwlolkOG.js";import{c as v}from"./options-BPwcDIDO.js";import{n as w}from"./orientation-BUPO9LJU.js";import{r as y}from"./required-D4CdAA4s.js";import{v as x}from"./component-0npqUhj2.js";import{T as j}from"./behavior-DDo87iUM.js";import{c as z,a as B}from"./dev.utils-BgFDROtc.js";import{b as T,s as D}from"./element-interaction-B3GEli6r.js";import{d as O,s as C}from"./element-focus-C0L8NWU8.js";import{s as q}from"./controller-DYkXzFqc.js";import"./aria-labelledby-C4wUnR-v.js";import"./component-CjdTbGlP.js";import"./component-BZjDp_Lf.js";import"./events-DdfMb1U7.js";import"./disabled-BZIZZ6wy.js";import"./label-with-expert-slot-C1i0atAL.js";import"./validators-yh10eyXe.js";import"./label-hints-DiRb_zIZ.js";import"./component-DP_p5few.js";import"./id-CkUYl2hO.js";import"./item-cArH2C6l.js";import"./resolve-props-Dpl38Wpe.js";import"./behavior-D9BHiFnH.js";import"./bootstrap-Cz7Iq2I2.js";import"./theme-store-DroJsU6S.js";import"./shared-state-Dn94ivRg.js";import"./i18n-TlIXBsgS.js";import"./component-names-DzmdvSkQ.js";import"./item-uC3h4pj3.js";import"./component-DFhRTaqb.js";import"./i18n-Uze_l4Ts.js";import"./component-Cvd5HXbX.js";import"./Heading-foerLIu9.js";import"./tooltip-open-tracking-CxHWKk8f.js";import"./label-lang-segment-BSVexfSR.js";const L=v(),I=u("orientation","vertical",w),H=u("value",null,(o=>Array.isArray(o)?o[0]:o)),P=k.forBlock("kol-input-radio"),F=t=>{var{class:e,inputProps:i}=t,l=f(t,["class","inputProps"]);const{class:r}=i,s=f(i,["class"]);return o(g,Object.assign({component:"label",block:"kol-input-radio",modifiers:Object.assign({checked:Boolean(i.checked),disabled:Boolean(i.disabled),required:Boolean(i.required),touched:Boolean(i.touched)},n(i.msg,i.touched)?{[a(i.msg)]:!0}:{}),class:e},l),o(_,Object.assign({class:b(P("input"),r)},s,{type:"radio"})))},S={required:[...r.required],optional:[...r.optional,L,I,H,y,x]},A=class extends s{constructor(o){super(),new.target===A&&t(this,o),this.id=z("input-radio"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.inputRefs=new Map,this.keyOptionMap=new Map,this.optionTooltips=new Map,this.propsConfig=S,this._ariaDetails=void 0,this._disabled=!1,this._hideLabel=!1,this._hideMsg=!1,this._hint="",this._infoPopover=void 0,this._msg=void 0,this._name=void 0,this._on=void 0,this._options=void 0,this._orientation="vertical",this._required=!1,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=null,this._variant=void 0,this.setSelectedInputRef=o=>{this.inputRef=o},this.setOptionInputRef=o=>t=>{t?this.inputRefs.set(o,t):this.inputRefs.delete(o)},this.handleRadioInput=o=>{const t=this.getOptionOfEvent(o);void 0!==t&&this.handleInput(o,t.value)},this.handleRadioChange=o=>{const t=this.getOptionOfEvent(o);void 0!==t&&(this.handleChange(o,t.value),this._value=t.value)},this.handleRadioKeyDown=o=>{this.handleKeyDown(o),q(o,{form:this.host,ref:this.inputRef})},this.initFormAssociation("radio",this._name)}watchAriaDetails(o){this.applyAriaDetails(o)}watchDisabled(o){this.applyDisabled(o)}watchHideLabel(o){this.applyHideLabel(o)}watchHideMsg(o){this.applyHideMsg(o)}watchHint(o){this.applyHint(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)}watchOptions(o){L.apply(o,(o=>{this.setRenderProp("options",o),o.length>0&&(this.keyOptionMap.clear(),p(this.keyOptionMap,m(o)))}))}watchOrientation(o){I.apply(o,(o=>this.setRenderProp("orientation",o)))}watchRequired(o){y.apply(o,(o=>this.setRenderProp("required",o)))}watchSyncValueBySelector(o){this.applySyncValueBySelector(o)}watchTooltipAlign(o){this.applyTooltipAlign(o)}watchTouched(o){this.applyTouched(o)}watchValue(o){null==o?this.setRenderProp("value",o):H.apply(o,(o=>this.setRenderProp("value",o))),this.formAssociation.setFormAssociatedValue(this.getRenderProp("value"))}watchVariant(o){x.apply(o,(o=>this.setRenderProp("variant",o)))}getValue(){return Promise.resolve(this._value)}async focus(o){return O(this.host,(()=>C(this.getFocusableInput(),o)))}async click(){return T(this.host,(async()=>D(this.getFocusableInput())))}componentWillLoad(){this._touched=!0===this._touched,this.watchAriaDetails(this._ariaDetails),this.watchDisabled(this._disabled),this.watchHideLabel(this._hideLabel),this.watchHideMsg(this._hideMsg),this.watchHint(this._hint),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchMsg(this._msg),this.watchName(this._name),this.watchOn(this._on),this.watchOptions(this._options),this.watchOrientation(this._orientation),this.watchRequired(this._required),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTooltipAlign(this._tooltipAlign),this.watchTouched(this._touched),this.watchValue(this._value),this.watchVariant(this._variant)}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField(),this.optionTooltips.forEach((o=>o.destroy())),this.optionTooltips.clear()}isOptionSelected(o){var t;return this.getRenderProp("value")===(null!==(t=o.value)&&void 0!==t?t:o.label)}getFocusableInput(){const o=this.getRenderProp("options"),t=Boolean(this.getRenderProp("disabled")),e=o.findIndex((o=>this.isOptionSelected(o)&&!t&&!o.disabled));if(-1!==e){const o=this.inputRefs.get(e);if(o)return o}const i=o.findIndex((o=>!t&&!o.disabled));if(-1!==i)return this.inputRefs.get(i)}getOptionOfEvent(o){return o.target instanceof HTMLInputElement?this.keyOptionMap.get(o.target.value):void 0}getOptionTooltipRefs(o,t){let e=this.optionTooltips.get(o);d({hideLabel:this.getRenderProp("hideLabel"),label:t})?(e||(e=new j(l.stateLess),e.componentWillLoad({label:""}),this.optionTooltips.set(o,e)),e.watchAlign(this.getRenderProp("tooltipAlign")),e.watchBadgeText(""),e.watchId(B(o,"label")),e.watchLabel(t)):e&&(e.destroy(),this.optionTooltips.delete(o),e=void 0);const i=e;return{refInput:o=>{i&&o&&(i.initContext(o),i.syncListeners(void 0,o,!0))},refTooltip:o=>{null==i||i.setTooltipElementRef(o)}}}isOptionDisabled(o){return Boolean(this.getRenderProp("disabled"))||Boolean(o.disabled)}getInputProps(o,t,e,i){const{hasError:l}=this.getAria(),n=this.getRenderProp("hideLabel");return{id:t,hideLabel:n,label:this.getRenderProp("label"),value:`-${e}`,disabled:this.isOptionDisabled(o),name:this.getRenderProp("name")||this.id,required:this.getRenderProp("required"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg"),ref:o=>{this.setOptionInputRef(e)(o),i&&this.setSelectedInputRef(o)},"aria-label":n&&"string"==typeof o.label?o.label:void 0,type:"radio",checked:i,onBlur:this.handleBlur,onChange:this.handleRadioChange,onFocus:this.handleFocus,onInput:this.handleRadioInput,onKeyDown:this.handleRadioKeyDown,"aria-invalid":l?"true":void 0}}renderOption(t,e){const i=B(this.id,String(e)),l=this.isOptionSelected(t),n=t.label;return o(h,Object.assign({key:i,id:i,label:n,hint:t.hint,hideLabel:this.getRenderProp("hideLabel"),tooltipAlign:this.getRenderProp("tooltipAlign"),disabled:this.isOptionDisabled(t),msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),required:!1,labelProps:{showBadge:!1}},this.getOptionTooltipRefs(i,n)),o(F,{inputProps:this.getInputProps(t,i,e,l)}))}render(){const{ariaDescribedBy:t}=this.getAria();return o(e,{key:"b27e96d4e2dab442816b49f2358a105489a18a85"},o(c,Object.assign({key:"c4cfe589ee07361f62f2ea87fbfbe08c6eef794c"},this.getFormFieldProps({class:"kol-form-field--radio",required:this.getRenderProp("required"),variant:this.getRenderProp("variant"),renderNoTooltip:!0}),{component:"fieldset",orientation:this.getRenderProp("orientation"),hideLabel:!1,ariaDescribedBy:t.length>0?t.join(" "):void 0}),this.getRenderProp("options").map(((o,t)=>this.renderOption(o,t)))))}get host(){return i(this)}static get watchers(){return{_ariaDetails:[{watchAriaDetails:0}],_disabled:[{watchDisabled:0}],_hideLabel:[{watchHideLabel:0}],_hideMsg:[{watchHideMsg:0}],_hint:[{watchHint:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_options:[{watchOptions:0}],_orientation:[{watchOrientation:0}],_required:[{watchRequired:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}};A.style={default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-meter meter { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-bar { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-optimum-value, .kol-meter meter::-webkit-meter-suboptimum-value, .kol-meter meter::-webkit-meter-even-less-good-value { background-color: CanvasText; } .kol-meter meter::-moz-meter-bar { background-color: CanvasText; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1795564435804"); src: url("kolicons.eot?t=1795564435804#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1795564435804") format("woff2"), url("kolicons.woff?t=1795564435804") format("woff"), url("kolicons.ttf?t=1795564435804") format("truetype"), url("kolicons.svg?t=1795564435804#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-field-control { display: grid; min-height: var(--a11y-min-size); align-items: center; justify-content: left; grid-template-areas: "input label"; grid-template-columns: auto 1fr; grid-template-rows: auto; } .kol-field-control:has(.kol-field-control__hint) { grid-template-areas: "input label" "hint hint"; grid-template-columns: auto 1fr; grid-template-rows: auto auto; } .kol-field-control--label-align-left:not(.kol-field-control--hide-label) { grid-template-areas: "label input"; grid-template-columns: 1fr auto; grid-template-rows: auto; } .kol-field-control--label-align-left:not(.kol-field-control--hide-label):has(.kol-field-control__hint) { grid-template-areas: "label input" "hint hint"; grid-template-columns: 1fr auto; grid-template-rows: auto auto; } .kol-field-control__input { display: flex; min-height: var(--a11y-min-size); align-items: center; grid-area: input; } .kol-field-control__label { display: flex; min-height: var(--a11y-min-size); flex-grow: 1; align-items: center; cursor: pointer; grid-area: label; } .kol-field-control__label--visually-hidden { display: none; height: 0; margin: 0; padding: 0; visibility: hidden; } .kol-field-control__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-field-control__hint { grid-area: hint; } .kol-field-control--disabled .kol-field-control__label { cursor: not-allowed; } .kol-field-control--required .kol-field-control__label-text:has(.kol-span__slot[hidden])::after, .kol-field-control--required .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-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-form-field { --border-width: 2px; --input-size: 1.5em; } .kol-form-field__label { display: contents; } .kol-form-field__label-text { display: ruby; } .kol-form-field__input { display: flex; flex-direction: column; } .kol-form-field__input--orientation-horizontal { flex-direction: row; flex-wrap: wrap; align-items: flex-start; } .kol-form-field--disabled { opacity: unset; } .kol-input-radio { display: flex; position: relative; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; justify-content: center; cursor: pointer; } .kol-input-radio__input { border-style: solid; border-radius: 100%; display: flex; width: var(--input-size); min-width: var(--input-size); height: var(--input-size); min-height: var(--input-size); margin: 0; padding: 0; border-width: var(--border-width); appearance: none; cursor: pointer; } .kol-input-radio__input:before { border-radius: 100%; width: calc(var(--input-size) / 2); height: calc(var(--input-size) / 2); margin: auto; content: ""; } .kol-input-radio__input:checked:before { background-color: black; } @media (forced-colors: active) { .kol-input-radio__input:checked:before { background-color: selectedItem !important; } } .kol-input-radio__input:disabled { cursor: not-allowed; } .kol-input-radio--disabled { cursor: not-allowed; } }'};export{A as kol_input_radio}
|
|
@@ -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-BKEJuyFi.js";import{_ as n}from"./tslib.es6-QNbPBOk5.js";import{v as a}from"./access-and-short-key-ijzCZfHm.js";import{h as l,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{i as m,a as k,b,g as u,c as f,r as g}from"./number-value-B-SJ1dRo.js";import{a as _,S as v}from"./suggestions-DuqzGDve.js";import"./common-OzsC_6kt.js";import{a as y,d as w,v as x}from"./component-8ALsFV4i.js";import"./props-from-config-Ci0dILpz.js";import{s as j}from"./step-Bdj89bGO.js";import{s as z}from"./suggestions-Dy1X-Pc3.js";import{b as C}from"./bem-registry-CWN7_O1L.js";import{c as B,a as S}from"./dev.utils-wYkYn08d.js";import{d as D,a as T,c as K}from"./element-interaction-sGYdEpmv.js";import{s as I}from"./controller-C3O9ohSP.js";import"./component-BTMWoACz.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"./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 A={required:[...c.required],optional:[...c.optional,y,_,l,m,k,b,w,j,z,x]},L=C.forBlock("kol-input-range"),O=L("input",{number:!0}),V=L("input",{range:!0}),P=L("inputs-wrapper"),G=({max:o,min:e},i)=>t("div",{class:P,style:{"--kolibri-input-range--input-number--width":`calc(${Math.max(String(null!=o?o:100).length,String(null!=e?e:0).length,4)}ch + 2em)`}},i),M=class extends h{constructor(t){super(),o(this,t),this.id=B("input-range"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=K(),this.valueIsNumberString=!1,this.propsConfig=A,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=100,this._min=0,this._msg=void 0,this._name=void 0,this._on=void 0,this._shortKey=void 0,this._step=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.handleRangeInput=t=>{const o=t.target,e=this.readValue(o.value);o===this.rangeRef?this._value=e:this.rangeRef&&Number.isFinite(Number(e))&&(this.rangeRef.value=String(e)),this.handleInput(t,e)},this.handleRangeChange=t=>{const o=this.readValue(t.target.value);this._value=o,this.handleChange(t,o)},this.handleNumberKeyDown=t=>{this.handleKeyDown(t),I(t,{form:this.host,ref:this.ctaRef.el})},this.setRangeRef=t=>{t&&(this.rangeRef=t)},this.initFormAssociation("range",this._name)}watchAccessKey(t){y.apply(t,(t=>this.setRenderProp("accessKey",t))),a(t,this._shortKey)}watchAriaDetails(t){this.applyAriaDetails(t)}watchAutoComplete(t){_.apply(t,(t=>this.setRenderProp("autoComplete",t)))}watchDisabled(t){this.applyDisabled(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchIcons(t){l.apply(t,(t=>this.setRenderProp("icons",t)))}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMax(t){m.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)}watchShortKey(t){w.apply(t,(t=>this.setRenderProp("shortKey",t))),a(this._accessKey,t)}watchStep(t){j.apply(t,(t=>this.setRenderProp("step",t)))}watchSuggestions(t){z.apply(t,(t=>this.setRenderProp("suggestions",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),void 0!==t&&(this.valueIsNumberString="NumberString"===u(t))}watchVariant(t){x.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){return Promise.resolve(void 0!==this.ctaRef.el?this.readValue(this.ctaRef.el.value):void 0)}focus(t){return Promise.resolve()}click(){return Promise.resolve()}componentWillLoad(){this.setRenderProp("min",0),this.setRenderProp("max",100),this._touched=!0===this._touched,this.watchAriaDetails(this._ariaDetails),this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccessKey(this._accessKey),this.watchMsg(this._msg),this.watchDisabled(this._disabled),this.watchHideMsg(this._hideMsg),this.watchHideLabel(this._hideLabel),this.watchHint(this._hint),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchShortKey(this._shortKey),this.watchOn(this._on),this.watchTooltipAlign(this._tooltipAlign),this.watchVariant(this._variant),this.watchIcons(this._icons),this.watchAutoComplete(this._autoComplete),this.watchMax(this._max),this.watchMin(this._min),this.watchStep(this._step),this.watchSuggestions(this._suggestions),this.watchValue(this._value)}componentDidLoad(){var t;!this._value&&(null===(t=this.rangeRef)||void 0===t?void 0:t.value)&&(this._value=parseFloat(this.rangeRef.value))}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField()}readValue(t){var o;const e=f(t,this.getRenderProp("min"),this.getRenderProp("max"));return null!==(o=g(e,this.valueIsNumberString?"NumberString":"number"))&&void 0!==o?o:e}getSharedInputProps(){var t,o,e,i;const n=this.getRenderProp("accessKey"),a=this.getRenderProp("shortKey");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:void 0},n?{accessKey:n}:{}),{value:null!==(t=this.getRenderProp("value"))&&void 0!==t?t:null,autoComplete:this.getRenderProp("autoComplete"),min:null!==(o=this.getRenderProp("min"))&&void 0!==o?o:null,max:null!==(e=this.getRenderProp("max"))&&void 0!==e?e:null,step:null!==(i=this.getRenderProp("step"))&&void 0!==i?i:null,touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")}),a?{"aria-keyshortcuts":a}:{}),{onBlur:this.handleBlur,onChange:this.handleRangeChange,onClick:this.handleClick,onFocus:this.handleFocus,onInput:this.handleRangeInput,onKeyDown:this.handleKeyDown})}render(){const o=this.getRenderProp("disabled"),i=this.getRenderProp("name"),n=this.getRenderProp("min"),a=this.getRenderProp("max"),l=this.getRenderProp("suggestions"),c=l.length>0,h=c?S(this.id,"list"):void 0,m=this.getSharedInputProps(),{ariaDescribedBy:k,hasError:b}=this.getAria(),u=b?"true":void 0,{startAdornment:f,endAdornment:g}=r({icons:this.getRenderProp("icons")});return t(e,{key:"4ab4ad967d53110ce6487dcd263f9745e6a02b15"},t(d,Object.assign({key:"c37e9683aa00f8d3eedb4ee72683bc20d1b9711c"},this.getFormFieldProps({class:"kol-input-range range",accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,variant:this.getRenderProp("variant")})),t(s,{key:"f56ec0f79f8f846a577982d035d5217b14d360be",disabled:o,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:f,endAdornment:g},t(G,{key:"cba2e0426592607ab4afd33099a5c624ff387a8d",max:a,min:n},t(p,Object.assign({key:"8cfd5dafe3c8560a8c84e7c2a752dc5007e6a3b2"},m,{class:V,name:i?`${i}-range`:void 0,list:h,type:"range",tabIndex:-1,id:void 0,accessKey:void 0,"aria-hidden":"true",ref:this.setRangeRef,ariaDescribedBy:k,"aria-invalid":u})),t(p,Object.assign({key:"105d0e56f624be4243d456fb59877755c75510fb"},m,{class:O,name:i?`${i}-number`:void 0,list:h,type:"number",ref:this.ctaRef,onKeyDown:this.handleNumberKeyDown,ariaDescribedBy:k,"aria-invalid":u}))),c&&t(v,{key:"61f595d88f283ce38396b3eb9ecc9ff2ca22eb85",id:this.id,suggestions:l}))))}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}],_shortKey:[{watchShortKey:0}],_step:[{watchStep:0}],_suggestions:[{watchSuggestions:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}};n([D("ctaRef")],M.prototype,"focus",null),n([T("ctaRef")],M.prototype,"click",null),M.style={default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-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-range__inputs-wrapper { display: flex; flex-grow: 1; flex-direction: row; flex-wrap: wrap; align-items: center; } .kol-input-range__input--number { width: var(--kolibri-input-range--input-number--width); text-align: right; } .kol-input-range__input--range { background-color: white; display: inline-block; width: 0; min-width: calc(128 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); margin: 0; padding: 0; flex-grow: 1; line-height: 1.5; appearance: none; border: 1px solid black; } .kol-input-range__input:not(:disabled).kol-input-range__input--range::-webkit-slider-thumb { cursor: pointer; } .kol-input-range__input--range::-webkit-slider-thumb { background-color: black; border-radius: 20px; width: calc(20 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(20 * 1rem / var(--kolibri-root-font-size, 16)); -webkit-appearance: none; } @media (prefers-contrast: more) or (forced-colors: active) { .kol-input-range__input--range::-webkit-slider-thumb { outline: 1px solid currentColor; } } .kol-input-range__input:not(:disabled).kol-input-range__input--range::-moz-range-thumb { cursor: pointer; } .kol-input-range__input--range::-moz-range-thumb { background-color: black; border-radius: 20px; width: calc(20 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(20 * 1rem / var(--kolibri-root-font-size, 16)); -moz-appearance: none; } }'};export{M as kol_input_range}
|
|
4
|
+
import{h as t,r as o,H as e,g as i}from"./index-D1fZ9xFt.js";import{_ as n}from"./tslib.es6-QNbPBOk5.js";import{h as a,g as r,I as l}from"./input-container-DC3x4oGg.js";import{f as s,B as c,F as h}from"./api-Ba9FNPRn.js";import{I as d}from"./input-DwlolkOG.js";import{i as m,a as p,b,g as k,c as u,r as f}from"./number-value-adUq1zr1.js";import{a as g,S as _}from"./suggestions-qW9OdwO3.js";import{a as v,d as w,v as y}from"./component-0npqUhj2.js";import"./props-from-config-DqFgiUwD.js";import{s as x}from"./step-C7WPZrUp.js";import{s as j}from"./suggestions-CotfxJG1.js";import{b as z}from"./bem-registry-CrZZQahR.js";import{v as C}from"./access-and-short-key-BTEwnScd.js";import{c as D,a as T}from"./dev.utils-BgFDROtc.js";import{d as S,a as B,c as K}from"./element-interaction-B3GEli6r.js";import{s as I}from"./controller-DYkXzFqc.js";import"./component-DP_p5few.js";import"./component-CjdTbGlP.js";import"./component-BZjDp_Lf.js";import"./disabled-BZIZZ6wy.js";import"./id-CkUYl2hO.js";import"./label-with-expert-slot-C1i0atAL.js";import"./validators-yh10eyXe.js";import"./label-hints-DiRb_zIZ.js";import"./aria-labelledby-C4wUnR-v.js";import"./events-DdfMb1U7.js";import"./base-web-component-B3wi5eWH.js";import"./item-cArH2C6l.js";import"./behavior-DDo87iUM.js";import"./tooltip-open-tracking-CxHWKk8f.js";import"./shared-state-Dn94ivRg.js";import"./label-lang-segment-BSVexfSR.js";import"./resolve-props-Dpl38Wpe.js";import"./behavior-D9BHiFnH.js";import"./bootstrap-Cz7Iq2I2.js";import"./theme-store-DroJsU6S.js";import"./i18n-TlIXBsgS.js";import"./component-names-DzmdvSkQ.js";import"./item-uC3h4pj3.js";import"./component-DFhRTaqb.js";import"./i18n-Uze_l4Ts.js";import"./component-Cvd5HXbX.js";import"./Heading-foerLIu9.js";import"./element-focus-C0L8NWU8.js";const A={required:[...s.required],optional:[...s.optional,v,g,a,m,p,b,w,x,j,y]},H=z.forBlock("kol-input-range"),O=H("input",{number:!0}),L=H("input",{range:!0}),F=H("inputs-wrapper"),M=({max:o,min:e},i)=>t("div",{class:F,style:{"--kolibri-input-range--input-number--width":`calc(${Math.max(String(null!=o?o:100).length,String(null!=e?e:0).length,4)}ch + 2em)`}},i),P=class extends c{constructor(t){super(),new.target===P&&o(this,t),this.id=D("input-range"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=K(),this.valueIsNumberString=!1,this.propsConfig=A,this._accessKey=void 0,this._ariaDetails=void 0,this._autoComplete="off",this._disabled=!1,this._hideLabel=!1,this._hideMsg=!1,this._hint="",this._icons=void 0,this._infoPopover=void 0,this._max=100,this._min=0,this._msg=void 0,this._name=void 0,this._on=void 0,this._shortKey=void 0,this._step=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.handleRangeInput=t=>{const o=t.target,e=this.readValue(o.value);o===this.rangeRef?this._value=e:this.rangeRef&&Number.isFinite(Number(e))&&(this.rangeRef.value=String(e)),this.handleInput(t,e)},this.handleRangeChange=t=>{const o=this.readValue(t.target.value);this._value=o,this.handleChange(t,o)},this.handleNumberKeyDown=t=>{this.handleKeyDown(t),I(t,{form:this.host,ref:this.ctaRef.el})},this.setRangeRef=t=>{t&&(this.rangeRef=t)},this.initFormAssociation("range",this._name)}watchAccessKey(t){v.apply(t,(t=>this.setRenderProp("accessKey",t))),C(t,this._shortKey)}watchAriaDetails(t){this.applyAriaDetails(t)}watchAutoComplete(t){g.apply(t,(t=>this.setRenderProp("autoComplete",t)))}watchDisabled(t){this.applyDisabled(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHint(t){this.applyHint(t)}watchIcons(t){a.apply(t,(t=>this.setRenderProp("icons",t)))}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMax(t){m.apply(t,(t=>this.setRenderProp("max",t)))}watchMin(t){p.apply(t,(t=>this.setRenderProp("min",t)))}watchMsg(t){this.applyMsg(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchShortKey(t){w.apply(t,(t=>this.setRenderProp("shortKey",t))),C(this._accessKey,t)}watchStep(t){x.apply(t,(t=>this.setRenderProp("step",t)))}watchSuggestions(t){j.apply(t,(t=>this.setRenderProp("suggestions",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),void 0!==t&&(this.valueIsNumberString="NumberString"===k(t))}watchVariant(t){y.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){return Promise.resolve(void 0!==this.ctaRef.el?this.readValue(this.ctaRef.el.value):void 0)}focus(t){return Promise.resolve()}click(){return Promise.resolve()}componentWillLoad(){this.setRenderProp("min",0),this.setRenderProp("max",100),this._touched=!0===this._touched,this.watchAccessKey(this._accessKey),this.watchAriaDetails(this._ariaDetails),this.watchAutoComplete(this._autoComplete),this.watchDisabled(this._disabled),this.watchHideLabel(this._hideLabel),this.watchHideMsg(this._hideMsg),this.watchHint(this._hint),this.watchIcons(this._icons),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchMax(this._max),this.watchMin(this._min),this.watchMsg(this._msg),this.watchName(this._name),this.watchOn(this._on),this.watchShortKey(this._shortKey),this.watchStep(this._step),this.watchSuggestions(this._suggestions),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTooltipAlign(this._tooltipAlign),this.watchTouched(this._touched),this.watchValue(this._value),this.watchVariant(this._variant)}componentDidLoad(){var t;!this._value&&(null===(t=this.rangeRef)||void 0===t?void 0:t.value)&&(this._value=parseFloat(this.rangeRef.value))}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField()}readValue(t){var o;const e=u(t,this.getRenderProp("min"),this.getRenderProp("max"));return null!==(o=f(e,this.valueIsNumberString?"NumberString":"number"))&&void 0!==o?o:e}getSharedInputProps(){var t,o,e,i;const n=this.getRenderProp("accessKey"),a=this.getRenderProp("shortKey");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:void 0},n?{accessKey:n}:{}),{value:null!==(t=this.getRenderProp("value"))&&void 0!==t?t:null,autoComplete:this.getRenderProp("autoComplete"),min:null!==(o=this.getRenderProp("min"))&&void 0!==o?o:null,max:null!==(e=this.getRenderProp("max"))&&void 0!==e?e:null,step:null!==(i=this.getRenderProp("step"))&&void 0!==i?i:null,touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")}),a?{"aria-keyshortcuts":a}:{}),{onBlur:this.handleBlur,onChange:this.handleRangeChange,onClick:this.handleClick,onFocus:this.handleFocus,onInput:this.handleRangeInput,onKeyDown:this.handleKeyDown})}render(){const o=this.getRenderProp("disabled"),i=this.getRenderProp("name"),n=this.getRenderProp("min"),a=this.getRenderProp("max"),s=this.getRenderProp("suggestions"),c=s.length>0,m=c?T(this.id,"list"):void 0,p=this.getSharedInputProps(),{ariaDescribedBy:b,hasError:k}=this.getAria(),u=k?"true":void 0,{startAdornment:f,endAdornment:g}=r({icons:this.getRenderProp("icons")});return t(e,{key:"134f4ba3c40938bc9683d8b96ba1ab0484e79fd9"},t(h,Object.assign({key:"f940f84a29821350f7d4409b9be35c018df4a347"},this.getFormFieldProps({class:"kol-input-range range",accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,variant:this.getRenderProp("variant")})),t(l,{key:"b2f6dbb49026d12497833276f5cdc4fe14c66e90",disabled:o,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:f,endAdornment:g},t(M,{key:"c3c8a14856503681db22ecbc69d48b2cad104520",max:a,min:n},t(d,Object.assign({key:"363cbf9789fb78eb10ebb34edef59533b26ea301"},p,{class:L,name:i?`${i}-range`:void 0,list:m,type:"range",tabIndex:-1,id:void 0,accessKey:void 0,"aria-hidden":"true",ref:this.setRangeRef,ariaDescribedBy:b,"aria-invalid":u})),t(d,Object.assign({key:"f96c5c20fa4f8d58e0ed6770ea8daabf30dd23ba"},p,{class:O,name:i?`${i}-number`:void 0,list:m,type:"number",ref:this.ctaRef,onKeyDown:this.handleNumberKeyDown,ariaDescribedBy:b,"aria-invalid":u}))),c&&t(_,{key:"b675c2f2af84f29ab933f8e874422db42c083e99",id:this.id,suggestions:s}))))}get host(){return i(this)}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_autoComplete:[{watchAutoComplete:0}],_disabled:[{watchDisabled:0}],_hideLabel:[{watchHideLabel:0}],_hideMsg:[{watchHideMsg: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}],_shortKey:[{watchShortKey:0}],_step:[{watchStep:0}],_suggestions:[{watchSuggestions:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}};n([S("ctaRef")],P.prototype,"focus",null),n([B("ctaRef")],P.prototype,"click",null),P.style={default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-meter meter { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-bar { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-optimum-value, .kol-meter meter::-webkit-meter-suboptimum-value, .kol-meter meter::-webkit-meter-even-less-good-value { background-color: CanvasText; } .kol-meter meter::-moz-meter-bar { background-color: CanvasText; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1795564435804"); src: url("kolicons.eot?t=1795564435804#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1795564435804") format("woff2"), url("kolicons.woff?t=1795564435804") format("woff"), url("kolicons.ttf?t=1795564435804") format("truetype"), url("kolicons.svg?t=1795564435804#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-range__inputs-wrapper { display: flex; flex-grow: 1; flex-direction: row; flex-wrap: wrap; align-items: center; } .kol-input-range__input--number { width: var(--kolibri-input-range--input-number--width); text-align: right; } .kol-input-range__input--range { background-color: white; display: inline-block; width: 0; min-width: calc(128 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); margin: 0; padding: 0; flex-grow: 1; line-height: 1.5; appearance: none; border: 1px solid black; } .kol-input-range__input:not(:disabled).kol-input-range__input--range::-webkit-slider-thumb { cursor: pointer; } .kol-input-range__input--range::-webkit-slider-thumb { background-color: black; border-radius: 20px; width: calc(20 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(20 * 1rem / var(--kolibri-root-font-size, 16)); -webkit-appearance: none; } @media (prefers-contrast: more) or (forced-colors: active) { .kol-input-range__input--range::-webkit-slider-thumb { outline: 1px solid currentColor; } } .kol-input-range__input:not(:disabled).kol-input-range__input--range::-moz-range-thumb { cursor: pointer; } .kol-input-range__input--range::-moz-range-thumb { background-color: black; border-radius: 20px; width: calc(20 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(20 * 1rem / var(--kolibri-root-font-size, 16)); -moz-appearance: none; } }'};export{P as kol_input_range}
|
|
@@ -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-BKEJuyFi.js";import{_ as n}from"./tslib.es6-QNbPBOk5.js";import{t as a}from"./i18n-DtLKn3Xt.js";import{B as l}from"./component-BTMWoACz.js";import{c as r}from"./item-C4AmpdVD.js";import{F as s}from"./api-D92_O-0H.js";import{I as c}from"./input-Dja5Qioc.js";import{I as h}from"./input-container-C2Am7LEP.js";import"./common-OzsC_6kt.js";import{c as d,b as p,i as m}from"./props-from-config-Ci0dILpz.js";import{s as k}from"./spell-check-DzgftyqL.js";import{s as f}from"./suggestions-Dy1X-Pc3.js";import{t as u,B as b}from"./base-web-component-CaAexWy_.js";import{c as _}from"./clsx-COFh-Vc8.js";import{c as g}from"./dev.utils-wYkYn08d.js";import{d as y,a as w}from"./element-interaction-sGYdEpmv.js";import{c as v,K as x}from"./events-BIT-JUP2.js";import"./i18n-Dl6Jjofb.js";import"./component-8ALsFV4i.js";import"./validators-BVM40IEr.js";import"./bem-registry-CWN7_O1L.js";import"./component-CZZNha2e.js";import"./component-Cdnq5GYF.js";import"./component-Bc1n82Y8.js";import"./block-bem-BpQSY04L.js";import"./disabled-Cqhc40CU.js";import"./id-CIYvVaNr.js";import"./label-with-expert-slot-CicRes-W.js";import"./label-hints-Jn18RUT-.js";import"./name-B2Yf3EpX.js";import"./controller-C3O9ohSP.js";import"./component-names-CrfBV37S.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"./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 j=["text","search","url","tel"],C=d("type","text",(function(t){const o=p(t);if(m(o,j))return o;throw new Error(`Invalid input text type: ${o}`)})),B={required:[...u.required],optional:[...u.optional,C,k,f]},z=class extends b{constructor(o){super(),t(this,o),this.id=g("input-text"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.clearButton=r((()=>this.host)),this.translateClearSearch=a("kol-clear-search"),this.propsConfig=B,this._accessKey=void 0,this._autoComplete="off",this._ariaDetails=void 0,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._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._spellCheck=void 0,this._suggestions=void 0,this._smartButton=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._type="text",this._value=void 0,this._variant=void 0,this.handleClearButtonClick=()=>{var t;if(this._disabled||this._readOnly||!this.hasValue)return;const o={name:this.getRenderProp("name"),value:""};this._value="",this.ctaRef.el&&(this.ctaRef.el.value=""),this.handleInput(v(x.input,o,this.ctaRef.el),""),this.handleTextChange(v(x.change,o,this.ctaRef.el),""),null===(t=this.ctaRef.el)||void 0===t||t.focus()},this.initFormAssociation("text",this._name)}watchAccessKey(t){this.applyAccessKey(t)}watchAutoComplete(t){this.applyAutoComplete(t)}watchAriaDetails(t){this.applyAriaDetails(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)}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)}watchSpellCheck(t){k.apply(t,(t=>this.setRenderProp("spellCheck",t)))}watchSuggestions(t){f.apply(t,(t=>this.setRenderProp("suggestions",t)))}watchSmartButton(t){this.applySmartButton(t)}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchType(t){C.apply(t,(t=>this.setRenderProp("type",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()}async selectionStart(){var t;return Promise.resolve(null===(t=this.ctaRef.el)||void 0===t?void 0:t.selectionStart)}async selectionEnd(){var t;return Promise.resolve(null===(t=this.ctaRef.el)||void 0===t?void 0:t.selectionEnd)}setSelectionRange(t,o,e){var i;return null===(i=this.ctaRef.el)||void 0===i||i.setSelectionRange(t,o,e),Promise.resolve()}setSelectionStart(t){var o;return null===(o=this.ctaRef.el)||void 0===o||o.setSelectionRange(t,t),Promise.resolve()}setRangeText(t,o,e,i){var n,a;return void 0!==o&&void 0!==e?null===(n=this.ctaRef.el)||void 0===n||n.setRangeText(t,o,e,i):null===(a=this.ctaRef.el)||void 0===a||a.setRangeText(t),Promise.resolve()}connectedCallback(){super.connectedCallback(),this.clearButton.syncListeners()}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.watchSpellCheck(this._spellCheck),this.watchType(this._type),this.initValue(this._value),this.initHasValue()}componentDidLoad(){this.didLoadTextInput()}componentDidUpdate(){this.didUpdateTextInput()}componentDidRender(){this.syncFormField(),this.clearButton.syncListeners()}disconnectedCallback(){this.clearButton.destroy(),this.destroyTextInput()}getClearButton(){if(this._disabled||this.getRenderProp("readOnly")||"search"!==this.getRenderProp("type"))return null;const t=this.hasValue;return o(l,Object.assign({},this.clearButton.getFcProps({_label:this.translateClearSearch,_icons:"kolicon-cross",_hideLabel:!0,_disabled:!t,_on:{onClick:this.handleClearButtonClick}},{class:_("kol-input-text__clear-button","kol-input-container__smart-button",{"kol-input-text__clear-button--hidden":!t})})))}render(){const t=this.getRenderProp("type"),{startAdornment:i,endAdornment:n}=this.getTextInputAdornments(this.getClearButton());return o(e,{key:"2f0cf3c8a2cb328df79e3fc7c8a3f91a18bed086"},o(s,Object.assign({key:"1343e2f091b5a020979bea794db49a48e02581a6"},this.getTextFormFieldProps(`kol-input-text ${t}`)),o(h,{key:"f95bedf779b2115fa4609df51b5b52e4a8e1b8f5",disabled:this.getRenderProp("disabled"),msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:n},o(c,Object.assign({key:"93e7bec2927035216c5ff7c7f1e6c885f0846c01"},this.getTextInputProps({type:t,spellcheck:this.getRenderProp("spellCheck"),suggestions:this.getRenderProp("suggestions")}))))))}get host(){return i(this)}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_autoComplete:[{watchAutoComplete:0}],_ariaDetails:[{watchAriaDetails: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}],_name:[{watchName:0}],_on:[{watchOn:0}],_pattern:[{watchPattern:0}],_placeholder:[{watchPlaceholder:0}],_readOnly:[{watchReadOnly:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_spellCheck:[{watchSpellCheck:0}],_suggestions:[{watchSuggestions:0}],_smartButton:[{watchSmartButton:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_type:[{watchType:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}};n([y("ctaRef")],z.prototype,"focus",null),n([w("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; } 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); } input[type=search]::-webkit-search-cancel-button { display: none; } .kol-input-text__clear-button--hidden { display: none; } }'};export{z as kol_input_text}
|
|
4
|
+
import{r as t,h as o,H as e,g as i}from"./index-D1fZ9xFt.js";import{_ as n}from"./tslib.es6-QNbPBOk5.js";import{t as a}from"./i18n-Uze_l4Ts.js";import{B as l}from"./component-DP_p5few.js";import{c as r}from"./item-cArH2C6l.js";import{F as s}from"./api-Ba9FNPRn.js";import{I as c}from"./input-DwlolkOG.js";import{I as h}from"./input-container-DC3x4oGg.js";import{c as d,b as p,i as m,e as k}from"./props-from-config-DqFgiUwD.js";import{s as b}from"./spell-check-DlQ_d2GL.js";import{s as u}from"./suggestions-CotfxJG1.js";import{t as f,B as g}from"./base-web-component-BpL_hXcg.js";import{b as _}from"./bem-registry-CrZZQahR.js";import{c as w}from"./dev.utils-BgFDROtc.js";import{d as v,a as y}from"./element-interaction-B3GEli6r.js";import{c as x,K as j}from"./events-DdfMb1U7.js";import"./i18n-TlIXBsgS.js";import"./shared-state-Dn94ivRg.js";import"./component-0npqUhj2.js";import"./validators-yh10eyXe.js";import"./component-CjdTbGlP.js";import"./component-BZjDp_Lf.js";import"./disabled-BZIZZ6wy.js";import"./id-CkUYl2hO.js";import"./label-with-expert-slot-C1i0atAL.js";import"./label-hints-DiRb_zIZ.js";import"./controller-DYkXzFqc.js";import"./component-names-DzmdvSkQ.js";import"./base-web-component-B3wi5eWH.js";import"./behavior-DDo87iUM.js";import"./tooltip-open-tracking-CxHWKk8f.js";import"./label-lang-segment-BSVexfSR.js";import"./resolve-props-Dpl38Wpe.js";import"./aria-labelledby-C4wUnR-v.js";import"./behavior-D9BHiFnH.js";import"./bootstrap-Cz7Iq2I2.js";import"./theme-store-DroJsU6S.js";import"./item-uC3h4pj3.js";import"./component-DFhRTaqb.js";import"./component-Cvd5HXbX.js";import"./Heading-foerLIu9.js";import"./suggestions-qW9OdwO3.js";import"./placeholder-BTFnryTd.js";import"./read-only-DRmmHb2G.js";import"./required-D4CdAA4s.js";import"./smart-button-BYEk3DzS.js";import"./value-string-DwEIOG1f.js";import"./access-and-short-key-BTEwnScd.js";import"./behavior-XAV9GSxI.js";import"./element-focus-C0L8NWU8.js";const C=["text","search","url","tel"],B=d("type","text",(function(t){const o=p(t);if(m(o,C))return o;throw new Error(`Invalid input text type: ${o}`)})),z={required:[...f.required],optional:[...f.optional,B,b,u]},D=_.forBlock("kol-input-text"),T=class extends g{constructor(o){super(),new.target===T&&t(this,o),this.id=w("input-text"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.clearButton=r((()=>this.host)),this.translateClearSearch=a("kol-clear-search"),this.propsConfig=z,this._accessKey=void 0,this._ariaDetails=void 0,this._autoComplete="off",this._disabled=!1,this._hasCounter=!1,this._hideLabel=!1,this._hideMsg=!1,this._hint="",this._icons=void 0,this._infoPopover=void 0,this._maxLength=void 0,this._maxLengthBehavior="hard",this._msg=void 0,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._spellCheck=void 0,this._suggestions=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._type="text",this._value=void 0,this._variant=void 0,this.handleClearButtonClick=()=>{var t;if(this._disabled||this._readOnly||!this.hasValue)return;const o={name:this.getRenderProp("name"),value:""};this._value="",this.ctaRef.el&&(this.ctaRef.el.value=""),this.handleInput(x(j.input,o,this.ctaRef.el),""),this.handleTextChange(x(j.change,o,this.ctaRef.el),""),null===(t=this.ctaRef.el)||void 0===t||t.focus()},this.initFormAssociation("text",this._name)}watchAccessKey(t){this.applyAccessKey(t)}watchAriaDetails(t){this.applyAriaDetails(t)}watchAutoComplete(t){this.applyAutoComplete(t)}watchDisabled(t){this.applyDisabled(t)}watchHasCounter(t){this.applyHasCounter(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHideMsg(t){this.applyHideMsg(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)}watchMaxLengthBehavior(t){this.applyMaxLengthBehavior(t)}watchMsg(t){this.applyMsg(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)}watchSpellCheck(t){b.apply(t,(t=>this.setRenderProp("spellCheck",t)))}watchSuggestions(t){u.apply(t,(t=>this.setRenderProp("suggestions",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchType(t){B.apply(t,(t=>this.setRenderProp("type",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()}async selectionStart(){var t;return Promise.resolve(null===(t=this.ctaRef.el)||void 0===t?void 0:t.selectionStart)}async selectionEnd(){var t;return Promise.resolve(null===(t=this.ctaRef.el)||void 0===t?void 0:t.selectionEnd)}setSelectionRange(t,o,e){var i;return null===(i=this.ctaRef.el)||void 0===i||i.setSelectionRange(t,o,e),Promise.resolve()}setSelectionStart(t){var o;return null===(o=this.ctaRef.el)||void 0===o||o.setSelectionRange(t,t),Promise.resolve()}setRangeText(t,o,e,i){var n,a;return void 0!==o&&void 0!==e?null===(n=this.ctaRef.el)||void 0===n||n.setRangeText(t,o,e,i):null===(a=this.ctaRef.el)||void 0===a||a.setRangeText(t),Promise.resolve()}connectedCallback(){super.connectedCallback(),this.clearButton.syncListeners()}componentWillLoad(){this.unsetRenderProp("smartButton"),this._touched=!0===this._touched,this.watchAccessKey(this._accessKey),this.watchAriaDetails(this._ariaDetails),this.watchAutoComplete(this._autoComplete),this.watchDisabled(this._disabled),this.watchHasCounter(this._hasCounter),this.watchHideLabel(this._hideLabel),this.watchHideMsg(this._hideMsg),this.watchHint(this._hint),this.watchIcons(this._icons),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchMaxLengthBehavior(this._maxLengthBehavior),this.watchMsg(this._msg),this.watchName(this._name),this.watchOn(this._on),this.watchShortKey(this._shortKey),this.watchSmartButton(this._smartButton),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTooltipAlign(this._tooltipAlign),this.watchTouched(this._touched),this.watchVariant(this._variant),this.initMaxLength(this._maxLength),this.watchPattern(this._pattern),this.watchPlaceholder(this._placeholder),this.watchReadOnly(this._readOnly),this.watchRequired(this._required),this.watchSpellCheck(this._spellCheck),this.watchSuggestions(this._suggestions),this.watchType(this._type),this.initValue(this._value),this.initHasValue()}componentDidLoad(){this.didLoadTextInput()}componentDidUpdate(){this.didUpdateTextInput()}componentDidRender(){this.syncFormField(),this.clearButton.syncListeners()}disconnectedCallback(){this.clearButton.destroy(),this.destroyTextInput()}getClearButton(){if(this._disabled||this.getRenderProp("readOnly")||"search"!==this.getRenderProp("type"))return null;const t=this.hasValue;return o(l,Object.assign({},this.clearButton.getFcProps({_label:this.translateClearSearch,_icons:"kolicon-cross",_hideLabel:!0,_disabled:!t,_on:{onClick:this.handleClearButtonClick}},{class:k(D("clear-button"),"kol-input-container__smart-button",{"kol-input-text__clear-button--hidden":!t})})))}render(){const t=this.getRenderProp("type"),{startAdornment:i,endAdornment:n}=this.getTextInputAdornments(this.getClearButton());return o(e,{key:"f48ef57af51fc15a47ba3482ecc09156b2b24a4c"},o(s,Object.assign({key:"9fad960ba3da3a36c50794a8bc93b3064ec63957"},this.getTextFormFieldProps(k(D(),t))),o(h,{key:"0c57be165937e1b79d87d221d9b3edc12b48957e",disabled:this.getRenderProp("disabled"),msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:n},o(c,Object.assign({key:"122d130f5ba9867a9364b5fdda5b1c81f194d464"},this.getTextInputProps({type:t,spellcheck:this.getRenderProp("spellCheck"),suggestions:this.getRenderProp("suggestions")}))))))}get host(){return i(this)}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_autoComplete:[{watchAutoComplete:0}],_disabled:[{watchDisabled:0}],_hasCounter:[{watchHasCounter:0}],_hideLabel:[{watchHideLabel:0}],_hideMsg:[{watchHideMsg:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_maxLength:[{watchMaxLength:0}],_maxLengthBehavior:[{watchMaxLengthBehavior:0}],_msg:[{watchMsg: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}],_spellCheck:[{watchSpellCheck:0}],_suggestions:[{watchSuggestions:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_type:[{watchType:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}};n([v("ctaRef")],T.prototype,"focus",null),n([y("ctaRef")],T.prototype,"click",null),T.style={default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-meter meter { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-bar { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-optimum-value, .kol-meter meter::-webkit-meter-suboptimum-value, .kol-meter meter::-webkit-meter-even-less-good-value { background-color: CanvasText; } .kol-meter meter::-moz-meter-bar { background-color: CanvasText; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1795564435804"); src: url("kolicons.eot?t=1795564435804#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1795564435804") format("woff2"), url("kolicons.woff?t=1795564435804") format("woff"), url("kolicons.ttf?t=1795564435804") format("truetype"), url("kolicons.svg?t=1795564435804#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); } input[type=search]::-webkit-search-cancel-button { display: none; } .kol-input-text__clear-button--hidden { display: none; } }'};export{T as kol_input_text}
|