@public-ui/components 4.6.0-rc.3 → 4.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/kolicons/kolicons.eot +0 -0
- package/assets/kolicons/kolicons.ttf +0 -0
- package/assets/kolicons/kolicons.woff +0 -0
- package/assets/kolicons/kolicons.woff2 +0 -0
- package/assets/kolicons/style.css +6 -6
- package/custom-elements.json +2 -2
- package/dist/cjs/{Heading-DqZXie2T.js → Heading-CnnBHLhu.js} +7 -7
- package/dist/cjs/{api-Cc1hT-oO.js → api-C-uDDxcA.js} +24 -26
- package/dist/cjs/{app-globals-DtXiFJRj.js → app-globals-BfpVa0Lg.js} +2 -2
- package/dist/cjs/{base-B-wbGF-X.js → base-BIbzHEVE.js} +47 -40
- package/dist/cjs/{base-BKsPSdXS.js → base-BZ3x1Yaj.js} +10 -10
- package/dist/cjs/{base-CoMrpiHg.js → base-Cc2tyQoy.js} +10 -10
- package/dist/cjs/{base-BjiXfuju.js → base-CeaAJa72.js} +10 -10
- package/dist/cjs/{base-web-component-DXCN-Sp3.js → base-web-component-B_zszxEg.js} +1 -1
- package/dist/cjs/{base-web-component-DApRK7Vs.js → base-web-component-CpqYvVDi.js} +14 -15
- package/dist/cjs/{base-web-component-BXtl3Nmq.js → base-web-component-Dk-So1FD.js} +12 -14
- package/dist/cjs/{behavior-GG5TOrTV.js → behavior--ZjzmIB4.js} +4 -4
- package/dist/cjs/{behavior-DtHCmCCv.js → behavior-CYg7XOXd.js} +4 -4
- package/dist/cjs/{behavior-DIv2ciyM.js → behavior-cEIf2evT.js} +4 -4
- package/dist/cjs/{bem-registry-h_moyLBn.js → bem-registry-CtnO3zCW.js} +22 -0
- package/dist/cjs/{bootstrap-HU5YhM_w.js → bootstrap-DOzWgRGX.js} +1 -1
- package/dist/cjs/{color-C3xsA3Uk.js → color-BJ776mPh.js} +2 -2
- package/dist/cjs/{component-BOI4FdZE.js → component-5ABjFE_U.js} +6 -7
- package/dist/cjs/{component-CNNGo5gU.js → component-BSx0ZVSD.js} +10 -12
- package/dist/cjs/component-BTfaB8W5.js +19 -0
- package/dist/cjs/{component-DlyhBQIa.js → component-BacsMsF-.js} +4 -4
- package/dist/cjs/component-C_9WksgV.js +53 -0
- package/dist/cjs/{component-CsnTf_45.js → component-D65WOH6c.js} +8 -10
- package/dist/cjs/{component-C9B-yJ93.js → component-DE4OHvyu.js} +7 -8
- package/dist/cjs/{component-D0uxhuF3.js → component-DVf7tz1e.js} +6 -5
- package/dist/cjs/{component-CxwSVBBv.js → component-Ddp-Luc6.js} +11 -12
- package/dist/cjs/{component-BE_fK-Xu.js → component-DuknrIKz.js} +14 -16
- package/dist/cjs/{component-Cnc2NyzE.js → component-DwuAKOV_.js} +4 -4
- package/dist/cjs/{contrast-6Nku3lih.js → contrast-DrGTr5zd.js} +1 -1
- package/dist/cjs/{dev.utils-DTQy7QrG.js → dev.utils-EwVibOKw.js} +1 -1
- package/dist/cjs/{devtools-BAChPN0l.js → devtools-CEqUJI9f.js} +2 -2
- package/dist/cjs/{disabled-CilmJ-p-.js → disabled-DBnI2OR4.js} +1 -1
- package/dist/cjs/{field-control-Bxj6Xuu8.js → field-control-Jhzreo_j.js} +12 -12
- package/dist/cjs/{group-BUdQbdkp.js → group-DDmENjNB.js} +7 -8
- package/dist/cjs/{has-closer-iSIrv52u.js → has-closer-DIk_toj-.js} +1 -1
- package/dist/cjs/{href-xojo1zy_.js → href-_UE7179j.js} +1 -1
- package/dist/cjs/{i18n-D7UmRsV8.js → i18n-4lKONPdP.js} +1 -1
- package/dist/cjs/{i18n-DgHI4-xa.js → i18n-CuXZ7SEi.js} +2 -1
- package/dist/cjs/{id-DP-w6i4q.js → id-JbinnWCW.js} +1 -1
- package/dist/cjs/{index-BaB_2Z5W.js → index-P8gY4ccL.js} +1 -1
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/input-BYfPasa5.js +19 -0
- package/dist/cjs/{input-container-BcwbGU2R.js → input-container-BQlNjdk3.js} +8 -10
- package/dist/cjs/{item-DJ-XUS77.js → item-C6gnuMjx.js} +4 -4
- package/dist/cjs/{item-BLrLbhAD.js → item-CvvVUcQZ.js} +11 -11
- package/dist/cjs/{item-BYKMN41a.js → item-DSSJt2YS.js} +4 -4
- package/dist/cjs/{item-BXt0-A5j.js → item-Dgikq96R.js} +20 -21
- package/dist/cjs/kol-abbr.cjs.entry.js +8 -12
- package/dist/cjs/kol-accordion.cjs.entry.js +15 -17
- package/dist/cjs/kol-alert.cjs.entry.js +27 -30
- package/dist/cjs/kol-avatar.cjs.entry.js +14 -15
- package/dist/cjs/kol-badge.cjs.entry.js +23 -26
- package/dist/cjs/kol-breadcrumb.cjs.entry.js +26 -30
- package/dist/cjs/kol-button-link.cjs.entry.js +22 -25
- package/dist/cjs/kol-button.cjs.entry.js +22 -25
- package/dist/cjs/kol-card.cjs.entry.js +27 -30
- package/dist/cjs/kol-combobox.cjs.entry.js +37 -40
- package/dist/cjs/kol-details.cjs.entry.js +15 -17
- package/dist/cjs/kol-dialog.cjs.entry.js +30 -33
- package/dist/cjs/kol-drawer.cjs.entry.js +30 -33
- package/dist/cjs/kol-form.cjs.entry.js +24 -27
- package/dist/cjs/kol-heading.cjs.entry.js +13 -15
- package/dist/cjs/kol-icon.cjs.entry.js +8 -9
- package/dist/cjs/kol-image.cjs.entry.js +7 -9
- package/dist/cjs/kol-input-checkbox.cjs.entry.js +38 -41
- package/dist/cjs/kol-input-color.cjs.entry.js +35 -38
- package/dist/cjs/kol-input-date.cjs.entry.js +41 -45
- package/dist/cjs/kol-input-email.cjs.entry.js +42 -45
- package/dist/cjs/kol-input-file.cjs.entry.js +36 -39
- package/dist/cjs/kol-input-number.cjs.entry.js +40 -43
- package/dist/cjs/kol-input-password.cjs.entry.js +41 -44
- package/dist/cjs/kol-input-radio.cjs.entry.js +37 -40
- package/dist/cjs/kol-input-range.cjs.entry.js +35 -38
- package/dist/cjs/kol-input-text.cjs.entry.js +43 -46
- package/dist/cjs/kol-kolibri.cjs.entry.js +8 -12
- package/dist/cjs/kol-link-button.cjs.entry.js +23 -26
- package/dist/cjs/kol-link.cjs.entry.js +23 -26
- package/dist/cjs/kol-meter.cjs.entry.js +14 -15
- package/dist/cjs/kol-modal.cjs.entry.js +30 -33
- package/dist/cjs/kol-nav.cjs.entry.js +35 -38
- package/dist/cjs/kol-pagination.cjs.entry.js +41 -44
- package/dist/cjs/kol-popover-button.cjs.entry.js +23 -26
- package/dist/cjs/kol-progress.cjs.entry.js +13 -14
- package/dist/cjs/kol-quote.cjs.entry.js +9 -10
- package/dist/cjs/kol-select.cjs.entry.js +34 -37
- package/dist/cjs/kol-single-select.cjs.entry.js +37 -40
- package/dist/cjs/kol-skip-nav.cjs.entry.js +26 -30
- package/dist/cjs/kol-spin.cjs.entry.js +11 -15
- package/dist/cjs/kol-split-button.cjs.entry.js +28 -31
- package/dist/cjs/kol-table-stateful.cjs.entry.js +53 -54
- package/dist/cjs/kol-table-stateless.cjs.entry.js +37 -40
- package/dist/cjs/kol-tabs.cjs.entry.js +23 -26
- package/dist/cjs/kol-textarea.cjs.entry.js +39 -42
- package/dist/cjs/kol-toast-container.cjs.entry.js +20 -23
- package/dist/cjs/kol-toolbar.cjs.entry.js +29 -32
- package/dist/cjs/kol-tooltip-wc.cjs.entry.js +11 -12
- package/dist/cjs/kol-tree-item.cjs.entry.js +22 -26
- package/dist/cjs/kol-tree.cjs.entry.js +9 -10
- package/dist/cjs/kol-version.cjs.entry.js +21 -24
- package/dist/cjs/kolibri.cjs.js +3 -3
- package/dist/cjs/{label-D6c6jfqK.js → label-BAULqhwq.js} +3 -3
- package/dist/cjs/{label-hints-q3XenWLW.js → label-hints-BHw-UcMt.js} +1 -1
- package/dist/cjs/{label-lang-segment-k4OY9qRY.js → label-lang-segment-D_UYFhgr.js} +2 -2
- package/dist/cjs/{label-with-expert-slot-CJoz7BLw.js → label-with-expert-slot-XZTOiRp-.js} +3 -3
- package/dist/cjs/{level-B6vFMm9s.js → level-CaJUuMiH.js} +1 -1
- package/dist/cjs/{link-target-0qSVsAb2.js → link-target-EZq24qVX.js} +1 -1
- package/dist/cjs/{links-Ur1e9DOK.js → links-CNPivOpm.js} +1 -1
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{multiple-CCxtzqez.js → multiple-D4ktp4Q2.js} +1 -1
- package/dist/cjs/{number-value-DzAHCwlP.js → number-value-BzIR1UvL.js} +1 -1
- package/dist/cjs/{open-Gxr_K7HK.js → open-BYh5VAA1.js} +1 -1
- package/dist/cjs/{options-BT0m0gRT.js → options-DkF38kx_.js} +1 -1
- package/dist/cjs/{orientation-CeHU4dT8.js → orientation-D4yopkvP.js} +1 -1
- package/dist/cjs/{placeholder-22xUUFff.js → placeholder-CZOGOuLS.js} +1 -1
- package/dist/cjs/{props-from-config-D1qhXS9j.js → props-from-config-CiU21EHb.js} +86 -5
- package/dist/cjs/{read-only-iHApMQEg.js → read-only-PNG5jHgh.js} +1 -1
- package/dist/cjs/{required-BYdSI25I.js → required-mj54_vO_.js} +1 -1
- package/dist/cjs/{resolve-props-B7klWjLx.js → resolve-props-CH6OL2es.js} +7 -7
- package/dist/cjs/{resolve-props-c-uwDulF.js → resolve-props-DOnocHFi.js} +6 -6
- package/dist/cjs/{rows-C9vBSQK1.js → rows-YaAnXjAm.js} +1 -1
- package/dist/cjs/{scroll-lock-daUQqmx_.js → scroll-lock-D3pgiG8q.js} +8 -7
- package/dist/cjs/{smart-button-DRMmUyQ5.js → smart-button-BU7mWP5H.js} +1 -1
- package/dist/cjs/{spell-check-CxgvHcGA.js → spell-check-CZWiLkQE.js} +1 -1
- package/dist/cjs/{src-Bmd7gQCS.js → src-rB2yGTSn.js} +1 -1
- package/dist/cjs/{step-CCqgsPCX.js → step-Bo6ILIqa.js} +1 -1
- package/dist/cjs/{suggestions-CoUp7HmN.js → suggestions-BO4EvOXc.js} +1 -1
- package/dist/cjs/{suggestions-D3snLGL_.js → suggestions-Ca575hi-.js} +3 -3
- package/dist/cjs/test-component.cjs.entry.js +1 -1
- package/dist/cjs/{toggle-handler-B0xib7fH.js → toggle-handler-ByJYSOdb.js} +11 -13
- package/dist/cjs/{unique-nav-labels-CgxOyb6V.js → unique-nav-labels-_EHPpYUR.js} +1 -1
- package/dist/cjs/{unit-_oDj-vIB.js → unit-Bl0Lyk08.js} +1 -1
- package/dist/cjs/{validators-CpCJvM4r.js → validators-rLs6tEWo.js} +1 -1
- package/dist/cjs/{value-string-CKppMGVM.js → value-string-BKsvZy1q.js} +1 -1
- package/dist/cjs/{width-e7f3wHF3.js → width-DegQFxQB.js} +1 -1
- package/dist/collection/components/abbr/style.css +21 -0
- package/dist/collection/components/accordion/style.css +23 -2
- package/dist/collection/components/alert/component.js +6 -5
- package/dist/collection/components/alert/style.css +23 -2
- package/dist/collection/components/avatar/style.css +21 -0
- package/dist/collection/components/badge/style.css +23 -2
- package/dist/collection/components/breadcrumb/style.css +23 -2
- package/dist/collection/components/button/style.css +23 -2
- package/dist/collection/components/button-link/style.css +23 -2
- package/dist/collection/components/card/style.css +23 -2
- package/dist/collection/components/combobox/style.css +23 -2
- package/dist/collection/components/details/style.css +23 -2
- package/dist/collection/components/dialog/base.js +2 -2
- package/dist/collection/components/dialog/style.css +23 -2
- package/dist/collection/components/drawer/style.css +23 -2
- package/dist/collection/components/form/style.css +23 -2
- package/dist/collection/components/heading/style.css +21 -0
- package/dist/collection/components/icon/style.css +2 -2
- package/dist/collection/components/image/style.css +21 -0
- package/dist/collection/components/input-checkbox/style.css +23 -2
- package/dist/collection/components/input-color/style.css +23 -2
- package/dist/collection/components/input-date/component.js +6 -6
- package/dist/collection/components/input-date/style.css +23 -2
- package/dist/collection/components/input-email/style.css +23 -2
- package/dist/collection/components/input-file/component.js +1 -1
- package/dist/collection/components/input-file/style.css +23 -2
- package/dist/collection/components/input-number/style.css +23 -2
- package/dist/collection/components/input-password/style.css +23 -2
- package/dist/collection/components/input-radio/style.css +23 -2
- package/dist/collection/components/input-range/style.css +23 -2
- package/dist/collection/components/input-text/style.css +23 -2
- package/dist/collection/components/kolibri/style.css +21 -0
- package/dist/collection/components/link/style.css +23 -2
- package/dist/collection/components/link-button/style.css +23 -2
- package/dist/collection/components/meter/style.css +21 -0
- package/dist/collection/components/modal/style.css +23 -2
- package/dist/collection/components/nav/style.css +23 -2
- package/dist/collection/components/pagination/component.js +5 -5
- package/dist/collection/components/pagination/style.css +23 -2
- package/dist/collection/components/popover-button/style.css +23 -2
- package/dist/collection/components/progress/style.css +21 -0
- package/dist/collection/components/quote/style.css +21 -0
- package/dist/collection/components/select/style.css +23 -2
- package/dist/collection/components/single-select/style.css +23 -2
- package/dist/collection/components/skip-nav/style.css +23 -2
- package/dist/collection/components/spin/style.css +21 -0
- package/dist/collection/components/split-button/style.css +23 -2
- package/dist/collection/components/table-stateful/component.js +5 -2
- package/dist/collection/components/table-stateful/style.css +23 -2
- package/dist/collection/components/table-stateless/style.css +23 -2
- package/dist/collection/components/tabs/style.css +23 -2
- package/dist/collection/components/textarea/style.css +23 -2
- package/dist/collection/components/toaster/style.css +23 -2
- package/dist/collection/components/toolbar/style.css +23 -2
- package/dist/collection/components/tree/style.css +21 -0
- package/dist/collection/components/tree-item/style.css +23 -2
- package/dist/collection/components/version/style.css +23 -2
- package/dist/collection/core/i18n.js +2 -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/card/component.js +3 -1
- package/dist/collection/internal/functional-components/collapsible/component.js +3 -2
- package/dist/collection/internal/functional-components/dialog/component.js +6 -3
- package/dist/collection/internal/functional-components/dialog/item.js +2 -2
- package/dist/collection/internal/functional-components/drawer/component.js +1 -1
- package/dist/collection/internal/functional-components/heading/component.js +3 -4
- 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/component.js +1 -1
- package/dist/collection/internal/functional-components/meter/component.js +2 -1
- package/dist/collection/internal/functional-components/pagination/item.js +6 -6
- package/dist/collection/internal/functional-components/progress/component.js +2 -1
- package/dist/collection/internal/functional-components/quote/component.js +2 -2
- package/dist/collection/internal/functional-components/skip-nav/component.js +2 -2
- package/dist/collection/internal/functional-components/span/component.js +3 -2
- package/dist/collection/internal/functional-components/table-stateless/settings.js +12 -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/schema/bem-registry.js +22 -0
- package/dist/components/Heading.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/component.js +1 -1
- package/dist/components/component10.js +1 -1
- package/dist/components/component2.js +1 -1
- package/dist/components/component3.js +1 -1
- package/dist/components/component4.js +1 -1
- package/dist/components/component5.js +1 -1
- package/dist/components/component6.js +1 -1
- package/dist/components/component7.js +1 -1
- package/dist/components/component8.js +1 -1
- package/dist/components/component9.js +1 -1
- package/dist/components/contrast.js +1 -1
- package/dist/components/field-control.js +1 -1
- package/dist/components/group.js +1 -1
- package/dist/components/i18n2.js +1 -1
- package/dist/components/input-container.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/item2.js +1 -1
- package/dist/components/item4.js +1 -1
- package/dist/components/kol-abbr.js +1 -1
- package/dist/components/kol-accordion.js +1 -1
- package/dist/components/kol-alert.js +1 -1
- package/dist/components/kol-avatar.js +1 -1
- package/dist/components/kol-badge.js +1 -1
- package/dist/components/kol-breadcrumb.js +1 -1
- package/dist/components/kol-button-link.js +1 -1
- package/dist/components/kol-button.js +1 -1
- package/dist/components/kol-card.js +1 -1
- package/dist/components/kol-combobox.js +1 -1
- package/dist/components/kol-details.js +1 -1
- package/dist/components/kol-dialog.js +1 -1
- package/dist/components/kol-drawer.js +1 -1
- package/dist/components/kol-form.js +1 -1
- package/dist/components/kol-heading.js +1 -1
- package/dist/components/kol-icon.js +1 -1
- package/dist/components/kol-image.js +1 -1
- package/dist/components/kol-input-checkbox.js +1 -1
- package/dist/components/kol-input-color.js +1 -1
- package/dist/components/kol-input-date.js +1 -1
- package/dist/components/kol-input-email.js +1 -1
- package/dist/components/kol-input-file.js +1 -1
- package/dist/components/kol-input-number.js +1 -1
- package/dist/components/kol-input-password.js +1 -1
- package/dist/components/kol-input-radio.js +1 -1
- package/dist/components/kol-input-range.js +1 -1
- package/dist/components/kol-input-text.js +1 -1
- package/dist/components/kol-kolibri.js +1 -1
- package/dist/components/kol-link-button.js +1 -1
- package/dist/components/kol-link.js +1 -1
- package/dist/components/kol-meter.js +1 -1
- package/dist/components/kol-modal.js +1 -1
- package/dist/components/kol-nav.js +1 -1
- package/dist/components/kol-pagination.js +1 -1
- package/dist/components/kol-popover-button.js +1 -1
- package/dist/components/kol-progress.js +1 -1
- package/dist/components/kol-quote.js +1 -1
- package/dist/components/kol-select.js +1 -1
- package/dist/components/kol-single-select.js +1 -1
- package/dist/components/kol-skip-nav.js +1 -1
- package/dist/components/kol-spin.js +1 -1
- package/dist/components/kol-split-button.js +1 -1
- package/dist/components/kol-table-stateful.js +1 -1
- package/dist/components/kol-table-stateless.js +1 -1
- package/dist/components/kol-tabs.js +1 -1
- package/dist/components/kol-textarea.js +1 -1
- package/dist/components/kol-toast-container.js +1 -1
- package/dist/components/kol-toolbar.js +1 -1
- package/dist/components/kol-tooltip-wc.js +1 -1
- package/dist/components/kol-tree-item.js +1 -1
- package/dist/components/kol-tree.js +1 -1
- package/dist/components/kol-version.js +1 -1
- package/dist/components/label-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/level.js +1 -1
- package/dist/components/links.js +1 -1
- package/dist/components/number-value.js +1 -1
- package/dist/components/props-from-config.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/step.js +1 -1
- package/dist/components/toggle-handler.js +1 -1
- package/dist/components/unit.js +1 -1
- package/dist/components/validators.js +1 -1
- package/dist/esm/{Heading-GZb1f2pZ.js → Heading-BubZbykM.js} +2 -2
- package/dist/esm/{api-CBPlj155.js → api-D0RNr-zh.js} +18 -20
- package/dist/esm/{app-globals-DRl9A82c.js → app-globals-DYRte_jr.js} +2 -2
- package/dist/esm/{base-C7BBsrYZ.js → base-BP5SdLvQ.js} +35 -28
- package/dist/esm/{base-BByRnpRm.js → base-BbGt9eYx.js} +10 -10
- package/dist/esm/{base-Dtxcvto_.js → base-CLsKm3-e.js} +10 -10
- package/dist/esm/{base-DO0KvOv9.js → base-Cz00snD6.js} +10 -10
- package/dist/esm/{base-web-component-CC_gpyDb.js → base-web-component-CYPdDdRn.js} +1 -1
- package/dist/esm/{base-web-component-BxXLva5d.js → base-web-component-CdSFFCst.js} +8 -10
- package/dist/esm/{base-web-component-CfPyCJDJ.js → base-web-component-DP9_OPgV.js} +13 -14
- package/dist/esm/{behavior-CKU2tmCj.js → behavior-B6y5Gofe.js} +4 -4
- package/dist/esm/{behavior-CsNDRS2z.js → behavior-BJR8CKBx.js} +4 -4
- package/dist/esm/{behavior-ewHvUWVk.js → behavior-DlH8byIw.js} +4 -4
- package/dist/esm/{bem-registry-D1KgKnyz.js → bem-registry-SKACeCny.js} +22 -0
- package/dist/esm/{bootstrap-tgQ2nQQI.js → bootstrap-Bp7i4RJQ.js} +1 -1
- package/dist/esm/{color-D1gM-F2l.js → color-BbljGuAW.js} +2 -2
- package/dist/esm/component-6_YiKr2Z.js +48 -0
- package/dist/esm/{component-D6_K50vT.js → component-B8UMedaK.js} +4 -4
- package/dist/esm/{component-6l69Jvwl.js → component-CMHB3reH.js} +6 -5
- package/dist/esm/{component-B3OziaRC.js → component-CNgECeRi.js} +9 -11
- package/dist/esm/{component-By8ggItU.js → component-CSsUaL_h.js} +6 -8
- package/dist/esm/{component-CF8uFG0A.js → component-CiJGQTU0.js} +13 -15
- package/dist/esm/{component-D4-NVnsT.js → component-DEwcJKDA.js} +4 -4
- package/dist/esm/{component-D6lo0LzE.js → component-NOe28NXD.js} +5 -6
- package/dist/esm/{component-Cmi6iGfA.js → component-ZdHnXLLI.js} +10 -11
- package/dist/esm/component-bIIx1x7q.js +17 -0
- package/dist/esm/{component-D9NreIlK.js → component-hiabKVP3.js} +6 -7
- package/dist/esm/{contrast-BNoQruBh.js → contrast-DtK0a6X2.js} +1 -1
- package/dist/esm/{dev.utils-BwYCy1rP.js → dev.utils-B0t4rcBV.js} +1 -1
- package/dist/esm/{devtools-CGP3Nzsw.js → devtools-DuJRc6wJ.js} +2 -2
- package/dist/esm/{disabled-BZXlWAgK.js → disabled-B2o4Ctgy.js} +1 -1
- package/dist/esm/{field-control-0TRmF7Ea.js → field-control-C9dIXnES.js} +7 -7
- package/dist/esm/{group-DapkT_Yh.js → group-DydT1Z92.js} +5 -6
- package/dist/esm/{has-closer-DUB0QcS9.js → has-closer-BrG00xL7.js} +1 -1
- package/dist/esm/{href-CxokGOJ2.js → href-CfNF4pHX.js} +1 -1
- package/dist/esm/{i18n-ePBcLlCr.js → i18n-BLkzMf6D.js} +1 -1
- package/dist/esm/{i18n-4J6U3ZDc.js → i18n-BRgvVqCf.js} +2 -1
- package/dist/esm/{id-BI0ZuK17.js → id-Bh4FF8c0.js} +1 -1
- package/dist/esm/{index-DEcM8BEc.js → index-Bbr6Os1b.js} +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/{input-CDUCo1S5.js → input-C1YsxnDL.js} +4 -5
- package/dist/esm/{input-container-BipAkWn4.js → input-container-zXl_6y52.js} +6 -8
- package/dist/esm/{item-BvnZc8uV.js → item-DXDEHrEg.js} +4 -4
- package/dist/esm/{item-Boe3t0Dm.js → item-Dms_59sU.js} +11 -11
- package/dist/esm/{item-B0oQTeju.js → item-hsQoejqZ.js} +4 -4
- package/dist/esm/{item-UgJ2uikD.js → item-zXunNZh5.js} +17 -18
- package/dist/esm/kol-abbr.entry.js +7 -11
- package/dist/esm/kol-accordion.entry.js +15 -17
- package/dist/esm/kol-alert.entry.js +27 -30
- package/dist/esm/kol-avatar.entry.js +14 -15
- package/dist/esm/kol-badge.entry.js +23 -26
- package/dist/esm/kol-breadcrumb.entry.js +26 -30
- package/dist/esm/kol-button-link.entry.js +22 -25
- package/dist/esm/kol-button.entry.js +22 -25
- package/dist/esm/kol-card.entry.js +27 -30
- package/dist/esm/kol-combobox.entry.js +36 -39
- package/dist/esm/kol-details.entry.js +15 -17
- package/dist/esm/kol-dialog.entry.js +30 -33
- package/dist/esm/kol-drawer.entry.js +30 -33
- package/dist/esm/kol-form.entry.js +23 -26
- package/dist/esm/kol-heading.entry.js +13 -15
- package/dist/esm/kol-icon.entry.js +8 -9
- package/dist/esm/kol-image.entry.js +7 -9
- package/dist/esm/kol-input-checkbox.entry.js +32 -35
- package/dist/esm/kol-input-color.entry.js +35 -38
- package/dist/esm/kol-input-date.entry.js +40 -44
- package/dist/esm/kol-input-email.entry.js +41 -44
- package/dist/esm/kol-input-file.entry.js +35 -38
- package/dist/esm/kol-input-number.entry.js +39 -42
- package/dist/esm/kol-input-password.entry.js +39 -42
- package/dist/esm/kol-input-radio.entry.js +34 -37
- package/dist/esm/kol-input-range.entry.js +35 -38
- package/dist/esm/kol-input-text.entry.js +41 -44
- package/dist/esm/kol-kolibri.entry.js +7 -11
- package/dist/esm/kol-link-button.entry.js +23 -26
- package/dist/esm/kol-link.entry.js +23 -26
- package/dist/esm/kol-meter.entry.js +14 -15
- package/dist/esm/kol-modal.entry.js +30 -33
- package/dist/esm/kol-nav.entry.js +30 -33
- package/dist/esm/kol-pagination.entry.js +41 -44
- package/dist/esm/kol-popover-button.entry.js +23 -26
- package/dist/esm/kol-progress.entry.js +13 -14
- package/dist/esm/kol-quote.entry.js +9 -10
- package/dist/esm/kol-select.entry.js +34 -37
- package/dist/esm/kol-single-select.entry.js +36 -39
- package/dist/esm/kol-skip-nav.entry.js +26 -30
- package/dist/esm/kol-spin.entry.js +11 -15
- package/dist/esm/kol-split-button.entry.js +26 -29
- package/dist/esm/kol-table-stateful.entry.js +53 -54
- package/dist/esm/kol-table-stateless.entry.js +37 -40
- package/dist/esm/kol-tabs.entry.js +22 -25
- package/dist/esm/kol-textarea.entry.js +37 -40
- package/dist/esm/kol-toast-container.entry.js +19 -22
- package/dist/esm/kol-toolbar.entry.js +27 -30
- package/dist/esm/kol-tooltip-wc.entry.js +11 -12
- package/dist/esm/kol-tree-item.entry.js +22 -26
- package/dist/esm/kol-tree.entry.js +9 -10
- package/dist/esm/kol-version.entry.js +20 -23
- package/dist/esm/kolibri.js +4 -4
- package/dist/esm/{label-B-Dr7VaP.js → label-BQVd3bkc.js} +3 -3
- package/dist/esm/{label-hints-CLMiVvfk.js → label-hints-CZGo9ZD5.js} +1 -1
- package/dist/esm/{label-lang-segment-iVD9hoM3.js → label-lang-segment-C5LYGOHt.js} +2 -2
- package/dist/esm/label-with-expert-slot-D1tpX9DI.js +12 -0
- package/dist/esm/{level-DsQ_pcyD.js → level-BVXGgbSM.js} +1 -1
- package/dist/esm/{link-target-D7lYILOV.js → link-target-BWPSEd9a.js} +1 -1
- package/dist/esm/{links-IkK4zoXw.js → links-BbsnNXfa.js} +1 -1
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{multiple--ay1C1n3.js → multiple-S3Ol1G6Z.js} +1 -1
- package/dist/esm/{number-value-Dl9-2O4r.js → number-value-DmOl1z7z.js} +1 -1
- package/dist/esm/{open-CNHJhHsy.js → open-DPP79Urq.js} +1 -1
- package/dist/esm/{options-DwO32GBF.js → options-aA3M-QV2.js} +1 -1
- package/dist/esm/{orientation-ChJ0S24M.js → orientation-DlsgaY1v.js} +1 -1
- package/dist/esm/{placeholder-UxmBJ4Vl.js → placeholder-DlHbiVjz.js} +1 -1
- package/dist/esm/{props-from-config-ytxYrJUY.js → props-from-config-BOUcpF7e.js} +84 -6
- package/dist/esm/{read-only-DytZ5HZJ.js → read-only-DSBWEPED.js} +1 -1
- package/dist/esm/{required-BriHhuO4.js → required-xw5BBPvV.js} +1 -1
- package/dist/esm/{resolve-props-kM9N-fzf.js → resolve-props-CL8wxjtP.js} +7 -7
- package/dist/esm/{resolve-props-DTXKtzir.js → resolve-props-DAVb5BM3.js} +6 -6
- package/dist/esm/{rows-I1jrTjzU.js → rows-DRV8YlQv.js} +1 -1
- package/dist/esm/{scroll-lock-Bv-U2FHM.js → scroll-lock-BxAe0gL5.js} +9 -7
- package/dist/esm/{smart-button-DM5g48-g.js → smart-button-CQps8AlL.js} +1 -1
- package/dist/esm/{spell-check-BWCnJG5v.js → spell-check-hy6xFhmT.js} +1 -1
- package/dist/esm/{src-ziOwSglN.js → src-AwoM1pRe.js} +1 -1
- package/dist/esm/{step-BcyhvRtu.js → step-CopA0_m7.js} +1 -1
- package/dist/esm/{suggestions-D0u80DtA.js → suggestions-BsiiaAxK.js} +3 -3
- package/dist/esm/{suggestions-LO267l8F.js → suggestions-CY8BJMOa.js} +1 -1
- package/dist/esm/test-component.entry.js +1 -1
- package/dist/esm/{toggle-handler-mPlmvrq7.js → toggle-handler-ZMs2rBXc.js} +10 -12
- package/dist/esm/{unique-nav-labels-CxFUYSVY.js → unique-nav-labels-BV-M3fPR.js} +1 -1
- package/dist/esm/{unit-1ix-K9SD.js → unit-hmMwqE9a.js} +1 -1
- package/dist/esm/{validators-CTjxOidB.js → validators-BgDmq-Qt.js} +1 -1
- package/dist/esm/{value-string-CxDz7dhD.js → value-string-Dy8zJxlP.js} +1 -1
- package/dist/esm/{width-C1_yZHyL.js → width-BHn7XHj_.js} +1 -1
- package/dist/kolibri/Heading-BubZbykM.js +4 -0
- package/dist/kolibri/api-D0RNr-zh.js +4 -0
- package/dist/kolibri/app-globals-DYRte_jr.js +4 -0
- package/dist/kolibri/base-BP5SdLvQ.js +4 -0
- package/dist/kolibri/{base-BByRnpRm.js → base-BbGt9eYx.js} +1 -1
- package/dist/kolibri/base-CLsKm3-e.js +4 -0
- package/dist/kolibri/base-Cz00snD6.js +4 -0
- package/dist/kolibri/{base-web-component-CC_gpyDb.js → base-web-component-CYPdDdRn.js} +1 -1
- package/dist/kolibri/base-web-component-CdSFFCst.js +4 -0
- package/dist/kolibri/base-web-component-DP9_OPgV.js +4 -0
- package/dist/kolibri/{behavior-CKU2tmCj.js → behavior-B6y5Gofe.js} +1 -1
- package/dist/kolibri/{behavior-CsNDRS2z.js → behavior-BJR8CKBx.js} +1 -1
- package/dist/kolibri/{behavior-ewHvUWVk.js → behavior-DlH8byIw.js} +1 -1
- package/dist/kolibri/bem-registry-SKACeCny.js +4 -0
- package/dist/kolibri/{bootstrap-tgQ2nQQI.js → bootstrap-Bp7i4RJQ.js} +1 -1
- package/dist/kolibri/{color-D1gM-F2l.js → color-BbljGuAW.js} +1 -1
- package/dist/kolibri/component-6_YiKr2Z.js +4 -0
- package/dist/kolibri/{component-D6_K50vT.js → component-B8UMedaK.js} +1 -1
- package/dist/kolibri/component-CMHB3reH.js +4 -0
- package/dist/kolibri/component-CNgECeRi.js +4 -0
- package/dist/kolibri/{component-By8ggItU.js → component-CSsUaL_h.js} +1 -1
- package/dist/kolibri/component-CiJGQTU0.js +4 -0
- package/dist/kolibri/component-DEwcJKDA.js +4 -0
- package/dist/kolibri/component-NOe28NXD.js +4 -0
- package/dist/kolibri/component-ZdHnXLLI.js +4 -0
- package/dist/kolibri/component-bIIx1x7q.js +4 -0
- package/dist/kolibri/component-hiabKVP3.js +4 -0
- package/dist/kolibri/contrast-DtK0a6X2.js +4 -0
- package/dist/kolibri/{dev.utils-BwYCy1rP.js → dev.utils-B0t4rcBV.js} +1 -1
- package/dist/kolibri/{devtools-CGP3Nzsw.js → devtools-DuJRc6wJ.js} +1 -1
- package/dist/kolibri/disabled-B2o4Ctgy.js +4 -0
- package/dist/kolibri/field-control-C9dIXnES.js +4 -0
- package/dist/kolibri/group-DydT1Z92.js +4 -0
- package/dist/kolibri/has-closer-BrG00xL7.js +4 -0
- package/dist/kolibri/href-CfNF4pHX.js +4 -0
- package/dist/kolibri/{i18n-ePBcLlCr.js → i18n-BLkzMf6D.js} +1 -1
- package/dist/kolibri/{i18n-4J6U3ZDc.js → i18n-BRgvVqCf.js} +1 -1
- package/dist/kolibri/id-Bh4FF8c0.js +4 -0
- package/dist/kolibri/index-Bbr6Os1b.js +6 -0
- package/dist/kolibri/index.esm.js +1 -1
- package/dist/kolibri/input-C1YsxnDL.js +4 -0
- package/dist/kolibri/input-container-zXl_6y52.js +4 -0
- package/dist/kolibri/item-DXDEHrEg.js +4 -0
- package/dist/kolibri/item-Dms_59sU.js +4 -0
- package/dist/kolibri/item-hsQoejqZ.js +4 -0
- package/dist/kolibri/item-zXunNZh5.js +4 -0
- package/dist/kolibri/kol-abbr.entry.js +1 -1
- package/dist/kolibri/kol-accordion.entry.js +1 -1
- package/dist/kolibri/kol-alert.entry.js +1 -1
- package/dist/kolibri/kol-avatar.entry.js +1 -1
- package/dist/kolibri/kol-badge.entry.js +1 -1
- package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
- package/dist/kolibri/kol-button-link.entry.js +1 -1
- package/dist/kolibri/kol-button.entry.js +1 -1
- package/dist/kolibri/kol-card.entry.js +1 -1
- package/dist/kolibri/kol-combobox.entry.js +1 -1
- package/dist/kolibri/kol-details.entry.js +1 -1
- package/dist/kolibri/kol-dialog.entry.js +1 -1
- package/dist/kolibri/kol-drawer.entry.js +1 -1
- package/dist/kolibri/kol-form.entry.js +1 -1
- package/dist/kolibri/kol-heading.entry.js +1 -1
- package/dist/kolibri/kol-icon.entry.js +1 -1
- package/dist/kolibri/kol-image.entry.js +1 -1
- package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
- package/dist/kolibri/kol-input-color.entry.js +1 -1
- package/dist/kolibri/kol-input-date.entry.js +1 -1
- package/dist/kolibri/kol-input-email.entry.js +1 -1
- package/dist/kolibri/kol-input-file.entry.js +1 -1
- package/dist/kolibri/kol-input-number.entry.js +1 -1
- package/dist/kolibri/kol-input-password.entry.js +1 -1
- package/dist/kolibri/kol-input-radio.entry.js +1 -1
- package/dist/kolibri/kol-input-range.entry.js +1 -1
- package/dist/kolibri/kol-input-text.entry.js +1 -1
- package/dist/kolibri/kol-kolibri.entry.js +1 -1
- package/dist/kolibri/kol-link-button.entry.js +1 -1
- package/dist/kolibri/kol-link.entry.js +1 -1
- package/dist/kolibri/kol-meter.entry.js +1 -1
- package/dist/kolibri/kol-modal.entry.js +1 -1
- package/dist/kolibri/kol-nav.entry.js +1 -1
- package/dist/kolibri/kol-pagination.entry.js +1 -1
- package/dist/kolibri/kol-popover-button.entry.js +1 -1
- package/dist/kolibri/kol-progress.entry.js +1 -1
- package/dist/kolibri/kol-quote.entry.js +1 -1
- package/dist/kolibri/kol-select.entry.js +1 -1
- package/dist/kolibri/kol-single-select.entry.js +1 -1
- package/dist/kolibri/kol-skip-nav.entry.js +1 -1
- package/dist/kolibri/kol-spin.entry.js +1 -1
- package/dist/kolibri/kol-split-button.entry.js +1 -1
- package/dist/kolibri/kol-table-stateful.entry.js +1 -1
- package/dist/kolibri/kol-table-stateless.entry.js +1 -1
- package/dist/kolibri/kol-tabs.entry.js +1 -1
- package/dist/kolibri/kol-textarea.entry.js +1 -1
- package/dist/kolibri/kol-toast-container.entry.js +1 -1
- package/dist/kolibri/kol-toolbar.entry.js +1 -1
- package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
- package/dist/kolibri/kol-tree-item.entry.js +1 -1
- package/dist/kolibri/kol-tree.entry.js +1 -1
- package/dist/kolibri/kol-version.entry.js +1 -1
- package/dist/kolibri/kolibri.esm.js +1 -1
- package/dist/kolibri/label-BQVd3bkc.js +4 -0
- package/dist/kolibri/label-hints-CZGo9ZD5.js +4 -0
- package/dist/kolibri/label-lang-segment-C5LYGOHt.js +4 -0
- package/dist/kolibri/label-with-expert-slot-D1tpX9DI.js +4 -0
- package/dist/kolibri/level-BVXGgbSM.js +4 -0
- package/dist/kolibri/link-target-BWPSEd9a.js +4 -0
- package/dist/kolibri/{links-IkK4zoXw.js → links-BbsnNXfa.js} +1 -1
- package/dist/kolibri/multiple-S3Ol1G6Z.js +4 -0
- package/dist/kolibri/number-value-DmOl1z7z.js +4 -0
- package/dist/kolibri/open-DPP79Urq.js +4 -0
- package/dist/kolibri/{options-DwO32GBF.js → options-aA3M-QV2.js} +1 -1
- package/dist/kolibri/orientation-DlsgaY1v.js +4 -0
- package/dist/kolibri/placeholder-DlHbiVjz.js +4 -0
- package/dist/kolibri/props-from-config-BOUcpF7e.js +4 -0
- package/dist/kolibri/read-only-DSBWEPED.js +4 -0
- package/dist/kolibri/required-xw5BBPvV.js +4 -0
- package/dist/kolibri/resolve-props-CL8wxjtP.js +4 -0
- package/dist/kolibri/resolve-props-DAVb5BM3.js +4 -0
- package/dist/kolibri/rows-DRV8YlQv.js +4 -0
- package/dist/kolibri/scroll-lock-BxAe0gL5.js +4 -0
- package/dist/kolibri/{smart-button-DM5g48-g.js → smart-button-CQps8AlL.js} +1 -1
- package/dist/kolibri/spell-check-hy6xFhmT.js +4 -0
- package/dist/kolibri/src-AwoM1pRe.js +4 -0
- package/dist/kolibri/step-CopA0_m7.js +4 -0
- package/dist/kolibri/{suggestions-D0u80DtA.js → suggestions-BsiiaAxK.js} +1 -1
- package/dist/kolibri/{suggestions-LO267l8F.js → suggestions-CY8BJMOa.js} +1 -1
- package/dist/kolibri/test-component.entry.js +1 -1
- package/dist/kolibri/toggle-handler-ZMs2rBXc.js +4 -0
- package/dist/kolibri/unique-nav-labels-BV-M3fPR.js +4 -0
- package/dist/kolibri/unit-hmMwqE9a.js +4 -0
- package/dist/kolibri/validators-BgDmq-Qt.js +4 -0
- package/dist/kolibri/value-string-Dy8zJxlP.js +4 -0
- package/dist/kolibri/{width-C1_yZHyL.js → width-BHn7XHj_.js} +1 -1
- package/dist/types/components/alert/component.d.ts +1 -0
- package/dist/types/components/input-date/component.d.ts +1 -1
- package/dist/types/components.d.ts +2 -2
- package/dist/types/internal/functional-components/bem-root-node/component.d.ts +8 -4
- package/dist/types/internal/functional-components/button/item.d.ts +1 -1
- package/dist/types/internal/functional-components/dialog/component.d.ts +7 -3
- package/dist/types/internal/functional-components/pagination/item.d.ts +4 -2
- package/dist/types/schema/bem-registry.d.ts +40 -0
- package/doc/pagination.md +13 -13
- package/package.json +10 -5
- package/vscode-custom-data.json +1 -1
- package/dist/cjs/block-bem-BVBM34Tu.js +0 -18
- package/dist/cjs/clsx-Bm_HQUnh.js +0 -54
- package/dist/cjs/component-CVLJJvvd.js +0 -53
- package/dist/cjs/component-DNQW0lG8.js +0 -18
- package/dist/cjs/component-DfGgpwuP.js +0 -20
- package/dist/cjs/input-CtqTozTO.js +0 -20
- package/dist/components/block-bem.js +0 -4
- package/dist/components/clsx.js +0 -4
- package/dist/components/component11.js +0 -4
- package/dist/esm/block-bem-D3ixJyOY.js +0 -16
- package/dist/esm/clsx-COFh-Vc8.js +0 -52
- package/dist/esm/component-Ccv2lqNq.js +0 -16
- package/dist/esm/component-DAk3R8NN.js +0 -48
- package/dist/esm/component-EDDTMC-J.js +0 -18
- package/dist/esm/label-with-expert-slot-BbZ9nx0l.js +0 -12
- package/dist/kolibri/Heading-GZb1f2pZ.js +0 -4
- package/dist/kolibri/api-CBPlj155.js +0 -4
- package/dist/kolibri/app-globals-DRl9A82c.js +0 -4
- package/dist/kolibri/base-C7BBsrYZ.js +0 -4
- package/dist/kolibri/base-DO0KvOv9.js +0 -4
- package/dist/kolibri/base-Dtxcvto_.js +0 -4
- package/dist/kolibri/base-web-component-BxXLva5d.js +0 -4
- package/dist/kolibri/base-web-component-CfPyCJDJ.js +0 -4
- package/dist/kolibri/bem-registry-D1KgKnyz.js +0 -4
- package/dist/kolibri/block-bem-D3ixJyOY.js +0 -4
- package/dist/kolibri/clsx-COFh-Vc8.js +0 -4
- package/dist/kolibri/component-6l69Jvwl.js +0 -4
- package/dist/kolibri/component-B3OziaRC.js +0 -4
- package/dist/kolibri/component-CF8uFG0A.js +0 -4
- package/dist/kolibri/component-Ccv2lqNq.js +0 -4
- package/dist/kolibri/component-Cmi6iGfA.js +0 -4
- package/dist/kolibri/component-D4-NVnsT.js +0 -4
- package/dist/kolibri/component-D6lo0LzE.js +0 -4
- package/dist/kolibri/component-D9NreIlK.js +0 -4
- package/dist/kolibri/component-DAk3R8NN.js +0 -4
- package/dist/kolibri/component-EDDTMC-J.js +0 -4
- package/dist/kolibri/contrast-BNoQruBh.js +0 -4
- package/dist/kolibri/disabled-BZXlWAgK.js +0 -4
- package/dist/kolibri/field-control-0TRmF7Ea.js +0 -4
- package/dist/kolibri/group-DapkT_Yh.js +0 -4
- package/dist/kolibri/has-closer-DUB0QcS9.js +0 -4
- package/dist/kolibri/href-CxokGOJ2.js +0 -4
- package/dist/kolibri/id-BI0ZuK17.js +0 -4
- package/dist/kolibri/index-DEcM8BEc.js +0 -6
- package/dist/kolibri/input-CDUCo1S5.js +0 -4
- package/dist/kolibri/input-container-BipAkWn4.js +0 -4
- package/dist/kolibri/item-B0oQTeju.js +0 -4
- package/dist/kolibri/item-Boe3t0Dm.js +0 -4
- package/dist/kolibri/item-BvnZc8uV.js +0 -4
- package/dist/kolibri/item-UgJ2uikD.js +0 -4
- package/dist/kolibri/label-B-Dr7VaP.js +0 -4
- package/dist/kolibri/label-hints-CLMiVvfk.js +0 -4
- package/dist/kolibri/label-lang-segment-iVD9hoM3.js +0 -4
- package/dist/kolibri/label-with-expert-slot-BbZ9nx0l.js +0 -4
- package/dist/kolibri/level-DsQ_pcyD.js +0 -4
- package/dist/kolibri/link-target-D7lYILOV.js +0 -4
- package/dist/kolibri/multiple--ay1C1n3.js +0 -4
- package/dist/kolibri/number-value-Dl9-2O4r.js +0 -4
- package/dist/kolibri/open-CNHJhHsy.js +0 -4
- package/dist/kolibri/orientation-ChJ0S24M.js +0 -4
- package/dist/kolibri/placeholder-UxmBJ4Vl.js +0 -4
- package/dist/kolibri/props-from-config-ytxYrJUY.js +0 -4
- package/dist/kolibri/read-only-DytZ5HZJ.js +0 -4
- package/dist/kolibri/required-BriHhuO4.js +0 -4
- package/dist/kolibri/resolve-props-DTXKtzir.js +0 -4
- package/dist/kolibri/resolve-props-kM9N-fzf.js +0 -4
- package/dist/kolibri/rows-I1jrTjzU.js +0 -4
- package/dist/kolibri/scroll-lock-Bv-U2FHM.js +0 -4
- package/dist/kolibri/spell-check-BWCnJG5v.js +0 -4
- package/dist/kolibri/src-ziOwSglN.js +0 -4
- package/dist/kolibri/step-BcyhvRtu.js +0 -4
- package/dist/kolibri/toggle-handler-mPlmvrq7.js +0 -4
- package/dist/kolibri/unique-nav-labels-CxFUYSVY.js +0 -4
- package/dist/kolibri/unit-1ix-K9SD.js +0 -4
- package/dist/kolibri/validators-CTjxOidB.js +0 -4
- package/dist/kolibri/value-string-CxDz7dhD.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as o,proxyCustomElement as e,Host as t,transformTag as i}from"@stencil/core/internal/client";import{B as n}from"./base-web-component.js";import{b as l,s as r}from"./bem-registry.js";import{c as a,e as s,a as c,d}from"./props-from-config.js";import{t as k}from"./i18n.js";import{B as f}from"./component.js";import{A as h}from"./component2.js";import{L as m,l as b,b as p}from"./component6.js";import{n as u,c as g}from"./dev.utils.js";import{h as _}from"./href.js";import{l as y}from"./label-with-expert-slot.js";import{d as x,K as v}from"./events.js";function w(o){if("object"!=typeof o||null===o)return!1;const{message:e,selector:t}=o;return"string"==typeof e&&("string"==typeof t||"function"==typeof t)}const T=a("errorList",[],(o=>s(o)),(o=>o.every(w))),z=c(),L=a("requiredText",!0,(function(o){if("boolean"==typeof o||"string"==typeof o)return o;throw Error("Invalid requiredText: expected boolean or string, got "+typeof o)})),I={optional:[T,z,L]},j=l.forBlock("kol-form"),q=j("alert"),B=j("link"),E=({alertHeadingId:e,closerAriaDescriptionId:t,errorLinkItems:i})=>o(h,{alert:!1,class:q,closerAriaDescriptionId:t,handleCloserClick:()=>{},hasCloser:!1,headingId:e,label:k("kol-error-list-message"),level:0,refCloserButton:()=>{},refCloserTooltip:()=>{},type:"error",variant:"card"},o("nav",{"aria-label":k("kol-error-list")},o("ul",null,i.map(((e,t)=>o("li",{key:t},o("span",{class:B},o(m,Object.assign({},e.fcProps))))))))),C=l.forBlock("kol-form"),A=C("form"),G=C("mandatory-fields-hint"),R=({alertHeadingId:e,closerAriaDescriptionId:t,errorLinkItems:i,handleReset:n,handleSubmit:l,requiredText:r})=>{const a=!0===r?k("kol-form-description"):"string"==typeof r&&r.length>0?r:"";return o(f,{block:"kol-form"},i.length>0&&o(E,{alertHeadingId:e,closerAriaDescriptionId:t,errorLinkItems:i}),o("form",{class:A,method:"post",onSubmit:l,onReset:n,noValidate:!0},a.length>0&&o("p",{class:G},a),o("slot",null)))},D={behavior:"smooth",block:"nearest"},H=e(class extends n{constructor(o){super(!1),!1!==o&&this.__registerHost(),this.__attachShadow(),this.errorLinkItems=[],this.alertHeadingId=g("alert-heading"),this.closerAriaDescriptionId=u(),this.propsConfig=I,this._errorList=void 0,this._on=void 0,this._requiredText=!0,this.handleSubmit=o=>{o.preventDefault();const e=this.getRenderProp("on").onSubmit;"function"==typeof e&&e(o),this.host&&x(this.host,v.submit)},this.handleReset=o=>{o.preventDefault();const e=this.getRenderProp("on").onReset;"function"==typeof e&&e(o),this.host&&x(this.host,v.reset)},this.focusErrorTarget=(o,e)=>{const t=document.querySelector(o);t&&"function"==typeof t.focus&&t.focus(null!=e?e:D)}}watchErrorList(o){T.apply(o,(o=>{this.setRenderProp("errorList",o),this.errorLinkItems=o.map((o=>((o,e)=>{const t=d(b);let i;return t.tabIndex=void 0,_.apply("",(o=>t.href=o)),y.apply(o.message,(o=>t.label=o)),p.apply({onClick:"string"==typeof o.selector?()=>e(o.selector+"",o.options):o.selector},(o=>t.on=o)),t.ariaCurrent="",t.ariaDescriptionId=u(),t.expertSlot=""===o.message,t.handleAnchorClick=o=>{var e;const n=null===(e=t.on)||void 0===e?void 0:e.onClick;"function"==typeof n&&(r(o,i),n(o,t.href))},t.refAnchor=o=>{i=o},t.refTooltip=()=>{},{fcProps:t,focus:o=>null==i?void 0:i.focus(o)}})(o,this.focusErrorTarget)))}))}watchOn(o){z.apply(o,(o=>this.setRenderProp("on",o)))}watchRequiredText(o){L.apply(o,(o=>this.setRenderProp("requiredText",o)))}focusErrorList(o){return setTimeout((()=>{var e;null===(e=this.errorLinkItems[0])||void 0===e||e.focus(null!=o?o:D)}),250),Promise.resolve()}componentWillLoad(){this.watchErrorList(this._errorList),this.watchOn(this._on),this.watchRequiredText(this._requiredText)}render(){return o(t,{key:"2284d41789f347a59938107849bd2e8210b4cd09"},o(R,{key:"1f534946f50caf5d70d43b48dae7deec2105b714",alertHeadingId:this.alertHeadingId,closerAriaDescriptionId:this.closerAriaDescriptionId,errorList:this.getRenderProp("errorList"),errorLinkItems:this.errorLinkItems,handleReset:this.handleReset,handleSubmit:this.handleSubmit,on:this.getRenderProp("on"),requiredText:this.getRenderProp("requiredText")}))}get host(){return this}static get watchers(){return{_errorList:[{watchErrorList:0}],_on:[{watchOn:0}],_requiredText:[{watchRequiredText:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794913000943"); src: url("kolicons.eot?t=1794913000943#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794913000943") format("woff2"), url("kolicons.woff?t=1794913000943") format("woff"), url("kolicons.ttf?t=1794913000943") format("truetype"), url("kolicons.svg?t=1794913000943#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } :host { display: inline-block; } .kol-link { display: inline-flex; max-width: fit-content; } .kol-link--standalone { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: stretch; } .kol-link--standalone .kol-link__interactive-element { align-items: stretch; } .kol-link--standalone .kol-link__text { display: inline-flex; flex: 1 1 100%; place-items: center; } .kol-link__interactive-element { display: inline-flex; flex: 1; align-items: baseline; place-items: center; text-align: left; text-decoration-line: none; } .kol-link__interactive-element:focus:not([aria-disabled], [disabled]) .kol-span__label, .kol-link__interactive-element:hover:not([aria-disabled], [disabled]) .kol-span__label { text-decoration-thickness: 0.2em; } .kol-link .kol-span__label { text-decoration-line: underline; } .kol-link__icon { display: inline-flex; } .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: ""; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } }'}}},[545,"kol-form",{_errorList:[16],_on:[16],_requiredText:[8,"_required-text"],errorLinkItems:[32],focusErrorList:[64]},void 0,{_errorList:[{watchErrorList:0}],_on:[{watchOn:0}],_requiredText:[{watchRequiredText:0}]}]),S=H,O=function(){"undefined"!=typeof customElements&&["kol-form"].forEach((o=>{"kol-form"===o&&(customElements.get(i(o))||customElements.define(i(o),H))}))};export{S as KolForm,O as defineCustomElement}
|
|
4
|
+
import{h as e,proxyCustomElement as o,Host as t,transformTag as i}from"@stencil/core/internal/client";import{B as n}from"./base-web-component.js";import{b as l,s as r}from"./bem-registry.js";import{c as a,f as s,a as c,B as d,d as k}from"./props-from-config.js";import{t as f}from"./i18n.js";import{A as h}from"./component.js";import{L as m,l as b,b as u}from"./component5.js";import{n as p,c as g}from"./dev.utils.js";import{h as _}from"./href.js";import{l as y}from"./label-with-expert-slot.js";import{d as x,K as v}from"./events.js";function w(e){if("object"!=typeof e||null===e)return!1;const{message:o,selector:t}=e;return"string"==typeof o&&("string"==typeof t||"function"==typeof t)}const T=a("errorList",[],(e=>s(e)),(e=>e.every(w))),z=c(),L=a("requiredText",!0,(function(e){if("boolean"==typeof e||"string"==typeof e)return e;throw Error("Invalid requiredText: expected boolean or string, got "+typeof e)})),I={optional:[T,z,L]},C=l.forBlock("kol-form"),j=C("alert"),q=C("link"),B=({alertHeadingId:o,closerAriaDescriptionId:t,errorLinkItems:i})=>e(h,{alert:!1,class:j,closerAriaDescriptionId:t,handleCloserClick:()=>{},hasCloser:!1,headingId:o,label:f("kol-error-list-message"),level:0,refCloserButton:()=>{},refCloserTooltip:()=>{},type:"error",variant:"card"},e("nav",{"aria-label":f("kol-error-list")},e("ul",null,i.map(((o,t)=>e("li",{key:t},e("span",{class:q},e(m,Object.assign({},o.fcProps))))))))),E=l.forBlock("kol-form"),A=E("form"),G=E("mandatory-fields-hint"),R=({alertHeadingId:o,closerAriaDescriptionId:t,errorLinkItems:i,handleReset:n,handleSubmit:l,requiredText:r})=>{const a=!0===r?f("kol-form-description"):"string"==typeof r&&r.length>0?r:"";return e(d,{block:"kol-form"},i.length>0&&e(B,{alertHeadingId:o,closerAriaDescriptionId:t,errorLinkItems:i}),e("form",{class:A,method:"post",onSubmit:l,onReset:n,noValidate:!0},a.length>0&&e("p",{class:G},a),e("slot",null)))},D={behavior:"smooth",block:"nearest"},H=o(class extends n{constructor(e){super(!1),!1!==e&&this.__registerHost(),this.__attachShadow(),this.errorLinkItems=[],this.alertHeadingId=g("alert-heading"),this.closerAriaDescriptionId=p(),this.propsConfig=I,this._errorList=void 0,this._on=void 0,this._requiredText=!0,this.handleSubmit=e=>{e.preventDefault();const o=this.getRenderProp("on").onSubmit;"function"==typeof o&&o(e),this.host&&x(this.host,v.submit)},this.handleReset=e=>{e.preventDefault();const o=this.getRenderProp("on").onReset;"function"==typeof o&&o(e),this.host&&x(this.host,v.reset)},this.focusErrorTarget=(e,o)=>{const t=document.querySelector(e);t&&"function"==typeof t.focus&&t.focus(null!=o?o:D)}}watchErrorList(e){T.apply(e,(e=>{this.setRenderProp("errorList",e),this.errorLinkItems=e.map((e=>((e,o)=>{const t=k(b);let i;return t.tabIndex=void 0,_.apply("",(e=>t.href=e)),y.apply(e.message,(e=>t.label=e)),u.apply({onClick:"string"==typeof e.selector?()=>o(e.selector+"",e.options):e.selector},(e=>t.on=e)),t.ariaCurrent="",t.ariaDescriptionId=p(),t.expertSlot=""===e.message,t.handleAnchorClick=e=>{var o;const n=null===(o=t.on)||void 0===o?void 0:o.onClick;"function"==typeof n&&(r(e,i),n(e,t.href))},t.refAnchor=e=>{i=e},t.refTooltip=()=>{},{fcProps:t,focus:e=>null==i?void 0:i.focus(e)}})(e,this.focusErrorTarget)))}))}watchOn(e){z.apply(e,(e=>this.setRenderProp("on",e)))}watchRequiredText(e){L.apply(e,(e=>this.setRenderProp("requiredText",e)))}focusErrorList(e){return setTimeout((()=>{var o;null===(o=this.errorLinkItems[0])||void 0===o||o.focus(null!=e?e:D)}),250),Promise.resolve()}componentWillLoad(){this.watchErrorList(this._errorList),this.watchOn(this._on),this.watchRequiredText(this._requiredText)}render(){return e(t,{key:"2284d41789f347a59938107849bd2e8210b4cd09"},e(R,{key:"1f534946f50caf5d70d43b48dae7deec2105b714",alertHeadingId:this.alertHeadingId,closerAriaDescriptionId:this.closerAriaDescriptionId,errorList:this.getRenderProp("errorList"),errorLinkItems:this.errorLinkItems,handleReset:this.handleReset,handleSubmit:this.handleSubmit,on:this.getRenderProp("on"),requiredText:this.getRenderProp("requiredText")}))}get host(){return this}static get watchers(){return{_errorList:[{watchErrorList:0}],_on:[{watchOn:0}],_requiredText:[{watchRequiredText:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-meter meter { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-bar { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-optimum-value, .kol-meter meter::-webkit-meter-suboptimum-value, .kol-meter meter::-webkit-meter-even-less-good-value { background-color: CanvasText; } .kol-meter meter::-moz-meter-bar { background-color: CanvasText; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794998877659"); src: url("kolicons.eot?t=1794998877659#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794998877659") format("woff2"), url("kolicons.woff?t=1794998877659") format("woff"), url("kolicons.ttf?t=1794998877659") format("truetype"), url("kolicons.svg?t=1794998877659#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } :host { display: inline-block; } .kol-link { display: inline-flex; max-width: fit-content; } .kol-link--standalone { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: stretch; } .kol-link--standalone .kol-link__interactive-element { align-items: stretch; } .kol-link--standalone .kol-link__text { display: inline-flex; flex: 1 1 100%; place-items: center; } .kol-link__interactive-element { display: inline-flex; flex: 1; align-items: baseline; place-items: center; text-align: left; text-decoration-line: none; } .kol-link__interactive-element:focus:not([aria-disabled], [disabled]) .kol-span__label, .kol-link__interactive-element:hover:not([aria-disabled], [disabled]) .kol-span__label { text-decoration-thickness: 0.2em; } .kol-link .kol-span__label { text-decoration-line: underline; } .kol-link__icon { display: inline-flex; } .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: ""; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } }'}}},[545,"kol-form",{_errorList:[16],_on:[16],_requiredText:[8,"_required-text"],errorLinkItems:[32],focusErrorList:[64]},void 0,{_errorList:[{watchErrorList:0}],_on:[{watchOn:0}],_requiredText:[{watchRequiredText:0}]}]),S=H,O=function(){"undefined"!=typeof customElements&&["kol-form"].forEach((e=>{"kol-form"===e&&(customElements.get(i(e))||customElements.define(i(e),H))}))};export{S as KolForm,O as defineCustomElement}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as e,proxyCustomElement as o,Host as
|
|
4
|
+
import{h as e,proxyCustomElement as o,Host as t,transformTag as a}from"@stencil/core/internal/client";import{B as l}from"./base-web-component.js";import{b as r}from"./bem-registry.js";import{l as i}from"./level.js";import{c as n,b as s,r as d,B as c}from"./props-from-config.js";import{l as b}from"./label-with-expert-slot.js";import{r as k}from"./component6.js";const m=n("secondaryHeadline","",s),h={optional:[i,m],required:[b]},u=r.forBlock("kol-headline"),p=o=>{const{label:t,level:a,secondaryHeadline:l}=d(h,o),r=function(e){return e>=1&&e<=6?"h"+e:"strong"}(a);return l?e(c,{component:"hgroup",block:"kol-heading",modifiers:{group:!0}},e(r,{class:u({[r]:!0,group:!0,primary:!0})},k(t),e("slot",{name:"expert",slot:"expert"})),e("p",{class:u({group:!0,secondary:!0})},l)):e(c,{component:r,block:"kol-heading",class:u({[r]:!0,single:!0})},k(t),e("slot",{name:"expert",slot:"expert"}))},g=o(class extends l{constructor(e){super(!1),!1!==e&&this.__registerHost(),this.__attachShadow(),this.propsConfig=h,this._level=0,this._secondaryHeadline=void 0}watchLabel(e){b.apply(e,(e=>this.setRenderProp("label",e)),this.isRequired("label"))}watchLevel(e){i.apply(e,(e=>this.setRenderProp("level",e)))}watchSecondaryHeadline(e){m.apply(e,(e=>this.setRenderProp("secondaryHeadline",e)))}componentWillLoad(){b.apply(this._label,(e=>this.setRenderProp("label",e)),this.isRequired("label")),i.apply(this._level,(e=>this.setRenderProp("level",e))),m.apply(this._secondaryHeadline,(e=>this.setRenderProp("secondaryHeadline",e)))}render(){return e(t,{key:"63a24d9208c82a7f3b7cbbe9c2fd475ae2a8a37c"},e(p,{key:"26af307dd787477b1842dfcdab9302c8506ce7bb",label:this.getRenderProp("label"),level:this.getRenderProp("level"),secondaryHeadline:this.getRenderProp("secondaryHeadline")}))}static get watchers(){return{_label:[{watchLabel:0}],_level:[{watchLevel:0}],_secondaryHeadline:[{watchSecondaryHeadline:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-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 { .kol-headline--secondary { margin: 0; } }'}}},[545,"kol-heading",{_label:[1],_level:[2],_secondaryHeadline:[1,"_secondary-headline"]},void 0,{_label:[{watchLabel:0}],_level:[{watchLevel:0}],_secondaryHeadline:[{watchSecondaryHeadline:0}]}]),f=g,y=function(){"undefined"!=typeof customElements&&["kol-heading"].forEach((e=>{"kol-heading"===e&&(customElements.get(a(e))||customElements.define(a(e),g))}))};export{f as KolHeading,y as defineCustomElement}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{proxyCustomElement as o,h as e,Host as n,transformTag as t}from"@stencil/core/internal/client";import{B as c}from"./base-web-component.js";import"./bem-registry.js";import{c as i,b as l}from"./props-from-config.js";import{i as r}from"./validators.js";import{l as s}from"./label-hints.js";import{I as a}from"./
|
|
4
|
+
import{proxyCustomElement as o,h as e,Host as n,transformTag as t}from"@stencil/core/internal/client";import{B as c}from"./base-web-component.js";import"./bem-registry.js";import{c as i,b as l}from"./props-from-config.js";import{i as r}from"./validators.js";import{l as s}from"./label-hints.js";import{I as a}from"./component4.js";const f=i("icons","kolicon-logo",l),b=i("label",void 0,l,r,{hints:s}),k={required:[f,b]},h=o(class extends c{constructor(o){super(!1),!1!==o&&this.__registerHost(),this.__attachShadow(),this.propsConfig=k}watchIcons(o){f.apply(o,(o=>this.setRenderProp("icons",o)))}watchLabel(o){b.apply(o,(o=>this.setRenderProp("label",o)),this.isRequired("label"))}componentWillLoad(){f.apply(this._icons,(o=>this.setRenderProp("icons",o))),b.apply(this._label,(o=>this.setRenderProp("label",o)),this.isRequired("label"))}render(){return e(n,{key:"a53255b542b20f7d10c3fc81c430f8e49885991b"},e(a,{key:"c5863392f1de5f8c37f8a90458e641141a525528",icons:this.getRenderProp("icons"),label:this.getRenderProp("label")}))}static get watchers(){return{_icons:[{watchIcons:0}],_label:[{watchLabel:0}]}}static get style(){return{default:'@font-face{font-family:"kolicons";src:url("kolicons.eot?t=1794998877659");src:url("kolicons.eot?t=1794998877659#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794998877659") format("woff2"), url("kolicons.woff?t=1794998877659") format("woff"), url("kolicons.ttf?t=1794998877659") format("truetype"), url("kolicons.svg?t=1794998877659#kolicons") format("svg");}@layer kol-component{[class^=kolicon-],[class*=" kolicon-"]{font-family:"kolicons";font-style:normal;font-weight:400;line-height:1em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.kolicon-alert-error::before{content:"\\ea01"}.kolicon-alert-info::before{content:"\\ea02"}.kolicon-alert-success::before{content:"\\ea03"}.kolicon-alert-warning::before{content:"\\ea04"}.kolicon-check::before{content:"\\ea05"}.kolicon-chevron-double-left::before{content:"\\ea06"}.kolicon-chevron-double-right::before{content:"\\ea07"}.kolicon-chevron-down::before{content:"\\ea08"}.kolicon-chevron-left::before{content:"\\ea09"}.kolicon-chevron-right::before{content:"\\ea0a"}.kolicon-chevron-up::before{content:"\\ea0b"}.kolicon-cogwheel::before{content:"\\ea0c"}.kolicon-cross::before{content:"\\ea0d"}.kolicon-eye-closed::before{content:"\\ea0e"}.kolicon-eye::before{content:"\\ea0f"}.kolicon-house::before{content:"\\ea10"}.kolicon-kolibri::before{content:"\\ea11"}.kolicon-link-external::before{content:"\\ea12"}.kolicon-link::before{content:"\\ea13"}.kolicon-minus::before{content:"\\ea14"}.kolicon-pin-pinned::before{content:"\\ea15"}.kolicon-pin-unpinned::before{content:"\\ea16"}.kolicon-plus::before{content:"\\ea17"}.kolicon-settings::before{content:"\\ea18"}.kolicon-sort-asc::before{content:"\\ea19"}.kolicon-sort-desc::before{content:"\\ea1a"}.kolicon-sort-neutral::before{content:"\\ea1b"}.kolicon-up::before{content:"\\ea1c"}.kolicon-version::before{content:"\\ea1d"}}@layer kol-component{.kol-icon{color:inherit;display:inline-block;font-size:inherit;font-weight:inherit;line-height:inherit}}'}}},[545,"kol-icon",{_icons:[1],_label:[1]},void 0,{_icons:[{watchIcons:0}],_label:[{watchLabel:0}]}]),m=h,u=function(){"undefined"!=typeof customElements&&["kol-icon"].forEach((o=>{"kol-icon"===o&&(customElements.get(t(o))||customElements.define(t(o),h))}))};export{m as KolIcon,u as defineCustomElement}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as t,proxyCustomElement as
|
|
4
|
+
import{h as t,proxyCustomElement as e,Host as o,transformTag as i}from"@stencil/core/internal/client";import{B as a}from"./base-web-component.js";import"./bem-registry.js";import{c as r,b as l,a as s,l as n,B as c}from"./props-from-config.js";import{s as d}from"./src.js";import{d as h,K as b}from"./events.js";const k=r("alt","",l,(t=>"string"==typeof t)),m=s(),u=r("sizes","",l),p=r("srcset","",l),g={optional:[m,n,u,p],required:[k,d]},_=e=>{const{alt:o,loading:i,sizes:a,src:r,srcset:l,handleError:s,handleLoad:n}=e;return t(c,{component:"img",block:"kol-image",alt:o,loading:i,sizes:a||void 0,src:r,srcset:l||void 0,onError:t=>s(t),onLoad:t=>n(t)})},f=e(class extends a{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.propsConfig=g,this._loading=void 0,this._sizes=void 0,this._srcset=void 0,this._on=void 0,this.handleError=t=>{var e,o;null===(o=(e=this.getRenderProp("on")).onError)||void 0===o||o.call(e,t),this.host&&h(this.host,b.error,t)},this.handleLoad=t=>{var e,o;null===(o=(e=this.getRenderProp("on")).onLoad)||void 0===o||o.call(e,t),this.host&&h(this.host,b.load,t)}}watchAlt(t){k.apply(t,(t=>this.setRenderProp("alt",t)))}watchLoading(t){n.apply(t,(t=>this.setRenderProp("loading",t)))}watchSizes(t){u.apply(t,(t=>this.setRenderProp("sizes",t)))}watchSrc(t){d.apply(t,(t=>this.setRenderProp("src",t)))}watchSrcset(t){p.apply(t,(t=>this.setRenderProp("srcset",t)))}watchOn(t){m.apply(t,(t=>this.setRenderProp("on",t)))}componentWillLoad(){k.apply(this._alt,(t=>this.setRenderProp("alt",t))),n.apply(this._loading,(t=>this.setRenderProp("loading",t))),m.apply(this._on,(t=>this.setRenderProp("on",t))),u.apply(this._sizes,(t=>this.setRenderProp("sizes",t))),d.apply(this._src,(t=>this.setRenderProp("src",t))),p.apply(this._srcset,(t=>this.setRenderProp("srcset",t)))}render(){return t(o,{key:"ac348dc672f7785f384470b77120889410349503"},t(_,{key:"0812cc9b1a6770e3462f9d6f7bc33237ccf4dac3",alt:this.getRenderProp("alt"),loading:this.getRenderProp("loading"),sizes:this.getRenderProp("sizes"),src:this.getRenderProp("src"),srcset:this.getRenderProp("srcset"),handleError:this.handleError,handleLoad:this.handleLoad}))}get host(){return this}static get watchers(){return{_alt:[{watchAlt:0}],_loading:[{watchLoading:0}],_sizes:[{watchSizes:0}],_src:[{watchSrc:0}],_srcset:[{watchSrcset:0}],_on:[{watchOn:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-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 { .kol-image { display: inline-block; max-width: 100%; max-height: 100%; } }'}}},[545,"kol-image",{_alt:[1],_loading:[1],_sizes:[1],_src:[1],_srcset:[1],_on:[16]},void 0,{_alt:[{watchAlt:0}],_loading:[{watchLoading:0}],_sizes:[{watchSizes:0}],_src:[{watchSrc:0}],_srcset:[{watchSrcset:0}],_on:[{watchOn:0}]}]),w=f,v=function(){"undefined"!=typeof customElements&&["kol-image"].forEach((t=>{"kol-image"===t&&(customElements.get(i(t))||customElements.define(i(t),f))}))};export{w as KolImage,v as defineCustomElement}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as e,proxyCustomElement as t,Host as o,transformTag as i}from"@stencil/core/internal/client";import{a as l,_ as n}from"./tslib.es6.js";import{b as a}from"./bem-registry.js";import{v as r}from"./access-and-short-key.js";import{c as s}from"./clsx.js";import{i as c,g as h,f as d,B as k,F as b}from"./base-web-component2.js";import{B as f}from"./component.js";import{I as u}from"./component5.js";import{I as m}from"./input.js";import{F as p}from"./field-control.js";import{a as _,d as g}from"./component3.js";import{c as y,n as w,b as v}from"./props-from-config.js";import{r as x}from"./required.js";import{c as z}from"./dev.utils.js";import{c as j,d as A,a as K}from"./element-interaction.js";import{s as T}from"./controller.js";const q=["button","default","switch"],I=y("value",!0,(e=>e)),L=y("checked",!1,w),B=["checked","indeterminate","unchecked"],V=y("icons",{checked:"kolicon-check",indeterminate:"kolicon-minus",unchecked:"kolicon-cross"},(e=>{if("object"==typeof e&&null!==e&&B.some((t=>(e=>"string"==typeof e&&e.length>0)(e[t]))))return e;throw Error("Expected an object with at least one icon class of checked, indeterminate or unchecked")})),P=y("indeterminate",!1,w),D=["left","right"],S=y("labelAlign","right",(e=>{const t=v(e);if(D.includes(t))return t;throw Error("Invalid label alignment: "+t)})),H=y("variant","default",(e=>{const t=v(e);if(q.includes(t))return t;throw Error("Invalid checkbox variant: "+t)})),M=a.forBlock("kol-checkbox"),O=t=>{var{class:o,variant:i="default",icon:n,inputProps:a}=t,r=l(t,["class","variant","icon","inputProps"]);const{class:d}=a,k=l(a,["class"]);return e(f,Object.assign({component:"label",block:"kol-checkbox",modifiers:Object.assign({"variant-button":"button"===i,"variant-default":"default"===i,"variant-switch":"switch"===i,checked:!!a.checked,indeterminate:!!a.indeterminate,disabled:!!a.disabled,required:!!a.required,touched:!!a.touched},c(a.msg,a.touched)?{[h(a.msg)]:!0}:{}),class:o},r),e(u,{label:"",icons:n,class:M("icon")}),e(m,Object.assign({class:s(M("input"),d)},k,{type:"checkbox"})))},E={required:[...d.required],optional:[...d.optional,_,I,L,V,P,S,x,g,H]},C=a.forBlock("kol-input-checkbox"),F=t(class extends k{constructor(e){super(!1),!1!==e&&this.__registerHost(),this.__attachShadow(),this.id=z("input-checkbox"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=j(),this.propsConfig=E,this._accessKey=void 0,this._checked=!1,this._hideMsg=!1,this._disabled=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._infoPopover=void 0,this._indeterminate=void 0,this._labelAlign="right",this._msg=void 0,this._name=void 0,this._on=void 0,this._required=!1,this._ariaDetails=void 0,this._shortKey=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=!0,this._variant="default",this.handleCheckboxInput=e=>{this._checked=!this._checked,this._indeterminate=!1,this.handleInput(e,this.getModelValue())},this.handleCheckboxChange=e=>{this.handleChange(e,this.getModelValue())},this.handleCheckboxKeyDown=e=>{this.handleKeyDown(e),T(e,{form:this.host,ref:this.ctaRef.el})},this.handleCheckboxBlur=e=>{this._disabled||this.handleBlur(e)},this.handleLabelMouseDown=e=>{this.inputHasFocus&&e.preventDefault()},this.handleCheckboxMouseDown=e=>{!this.inputHasFocus||e.target instanceof HTMLInputElement||e.preventDefault()},this.initFormAssociation("checkbox",this._name)}watchAccessKey(e){_.apply(e,(e=>this.setRenderProp("accessKey",e))),r(e,this._shortKey)}watchChecked(e){L.apply(e,(e=>this.setRenderProp("checked",e))),this.syncFormAssociatedValue()}watchHideMsg(e){this.applyHideMsg(e)}watchDisabled(e){this.applyDisabled(e)}watchHideLabel(e){this.applyHideLabel(e)}watchHint(e){this.applyHint(e)}watchIcons(e){V.apply(e,(e=>this.setRenderProp("icons",Object.assign(Object.assign({},this.getRenderProp("icons")),e))))}watchInfoPopover(e){this.applyInfoPopover(e)}watchIndeterminate(e){P.apply(e,(e=>this.setRenderProp("indeterminate",e)))}watchLabel(e){this.applyLabel(e)}watchLabelAlign(e){S.apply(e,(e=>this.setRenderProp("labelAlign",e)))}watchMsg(e){this.applyMsg(e)}watchName(e){this.applyName(e)}watchOn(e){this.applyOn(e)}watchRequired(e){x.apply(e,(e=>this.setRenderProp("required",e)))}watchAriaDetails(e){this.applyAriaDetails(e)}watchShortKey(e){g.apply(e,(e=>this.setRenderProp("shortKey",e))),r(this._accessKey,e)}watchSyncValueBySelector(e){this.applySyncValueBySelector(e)}watchTooltipAlign(e){this.applyTooltipAlign(e)}watchTouched(e){this.applyTouched(e)}watchValue(e){null==e?this.setRenderProp("value",e):I.apply(e,(e=>this.setRenderProp("value",e))),this.syncFormAssociatedValue()}watchVariant(e){H.apply(e,(e=>this.setRenderProp("variant",e)))}getValue(){return Promise.resolve(this.getModelValue())}focus(e){return Promise.resolve()}async click(){return Promise.resolve()}componentWillLoad(){this._touched=!0===this._touched,this.watchAriaDetails(this._ariaDetails),this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccessKey(this._accessKey),this.watchMsg(this._msg),this.watchDisabled(this._disabled),this.watchHideMsg(this._hideMsg),this.watchHideLabel(this._hideLabel),this.watchHint(this._hint),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchShortKey(this._shortKey),this.watchOn(this._on),this.watchTooltipAlign(this._tooltipAlign),this.watchRequired(this._required),this.watchChecked(this._checked),this.watchIcons(this._icons),this.watchIndeterminate(this._indeterminate),this.watchValue(this._value),this.watchVariant(this._variant),this.watchLabelAlign(this._labelAlign)}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField()}getModelValue(){return this._checked?this.getRenderProp("value"):null}syncFormAssociatedValue(){this.formAssociation.setFormAssociatedValue(this.getModelValue())}getIcon(){const e=this.getRenderProp("icons");return this.getRenderProp("indeterminate")?e.indeterminate:this.getRenderProp("checked")?e.checked:e.unchecked}getInputProps(){const e=this.getRenderProp("shortKey"),{ariaDescribedBy:t,hasError:o}=this.getAria();return Object.assign(Object.assign({id:this.id,hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),value:this.getRenderProp("value"),accessKey:this.getRenderProp("accessKey")||void 0,disabled:this.getRenderProp("disabled"),name:null==this._name?void 0:this.getRenderProp("name"),ariaDescribedBy:t,required:this.getRenderProp("required"),checked:this.getRenderProp("checked"),indeterminate:this.getRenderProp("indeterminate"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")},e?{"aria-keyshortcuts":e}:{}),{class:s({"visually-hidden":"button"===this.getRenderProp("variant")}),ref:this.ctaRef,onBlur:this.handleCheckboxBlur,onChange:this.handleCheckboxChange,onFocus:this.handleFocus,onInput:this.handleCheckboxInput,onKeyDown:this.handleCheckboxKeyDown,"aria-invalid":o?"true":void 0})}render(){const t=this.getRenderProp("checked"),i=this.getRenderProp("indeterminate"),l=this.getRenderProp("variant"),n=this.getRenderProp("accessKey")||void 0,a=this.getRenderProp("shortKey")||void 0,r=this.getRenderProp("required");return e(o,{key:"9d8f9f1a76d6136279e2a16390c26d358de089cf"},e(b,Object.assign({key:"bc3e19723334f11f76b6f41881aae1eb1896e0a7"},this.getFormFieldProps({class:C({checked:t,indeterminate:i,["variant-"+l]:!0,["label-align-"+this.getRenderProp("labelAlign")]:!0}),accessKey:n,shortKey:a,required:r,renderNoLabel:!0,renderNoTooltip:!0})),e(p,Object.assign({key:"189767fc96708075bd579d260a4d1425fe243a28",class:C("field-control",{checked:t,indeterminate:i,["variant-"+l]:!0}),id:this.id,label:this.getRenderProp("label"),hint:this.getRenderProp("hint"),hideLabel:this.getRenderProp("hideLabel"),labelAlign:this.getRenderProp("labelAlign"),infoPopover:this.getInfoPopover(),accessKey:n,shortKey:a,tooltipAlign:this.getRenderProp("tooltipAlign"),disabled:this.getRenderProp("disabled"),msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),required:r,renderNoHint:!0,labelProps:{onMouseDown:this.handleLabelMouseDown}},this.getLabelTooltipRefs()),e(O,{key:"f15b1f35a6abd220c7af82c6e07378d4e88713ff",variant:l,icon:this.getIcon(),onMouseDown:this.handleCheckboxMouseDown,inputProps:this.getInputProps()}))))}get host(){return this}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_checked:[{watchChecked:0}],_hideMsg:[{watchHideMsg:0}],_disabled:[{watchDisabled:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_indeterminate:[{watchIndeterminate:0}],_label:[{watchLabel:0}],_labelAlign:[{watchLabelAlign:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_required:[{watchRequired:0}],_ariaDetails:[{watchAriaDetails:0}],_shortKey:[{watchShortKey:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794913000943"); src: url("kolicons.eot?t=1794913000943#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794913000943") format("woff2"), url("kolicons.woff?t=1794913000943") format("woff"), url("kolicons.ttf?t=1794913000943") format("truetype"), url("kolicons.svg?t=1794913000943#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: ""; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-form-field .kol-popover-button { display: inline; } .kol-form-field .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-form-field .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-form-field .kol-popover-button--inline { display: inline-block; } .kol-form-field .kol-popover-button--inline .kol-button, .kol-form-field .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-form-field .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-form-field .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-form-field { display: grid; } .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label { cursor: pointer; } .kol-form-field__label { display: flex; } .kol-form-field__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-form-field--required .kol-form-field__label-text:has(.kol-span__slot[hidden]) .kol-span__label::after, .kol-form-field--required:not(:has(.kol-form-field__label--legend)) .kol-form-field__input .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-field-control { display: grid; min-height: var(--a11y-min-size); align-items: center; justify-content: left; grid-template-areas: "input label"; grid-template-columns: auto 1fr; grid-template-rows: auto; } .kol-field-control:has(.kol-field-control__hint) { grid-template-areas: "input label" "hint hint"; grid-template-columns: auto 1fr; grid-template-rows: auto auto; } .kol-field-control--label-align-left:not(.kol-field-control--hide-label) { grid-template-areas: "label input"; grid-template-columns: 1fr auto; grid-template-rows: auto; } .kol-field-control--label-align-left:not(.kol-field-control--hide-label):has(.kol-field-control__hint) { grid-template-areas: "label input" "hint hint"; grid-template-columns: 1fr auto; grid-template-rows: auto auto; } .kol-field-control__input { display: flex; min-height: var(--a11y-min-size); align-items: center; grid-area: input; } .kol-field-control__label { display: flex; min-height: var(--a11y-min-size); flex-grow: 1; align-items: center; cursor: pointer; grid-area: label; } .kol-field-control__label--visually-hidden { display: none; height: 0; margin: 0; padding: 0; visibility: hidden; } .kol-field-control__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-field-control__hint { grid-area: hint; } .kol-field-control--disabled .kol-field-control__label { cursor: not-allowed; } .kol-field-control--required .kol-field-control__label-text:has(.kol-span__slot[hidden])::after, .kol-field-control--required .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-form-field { display: grid; } .kol-form-field__label-text { display: ruby; } .kol-checkbox { display: flex; position: relative; align-items: center; cursor: pointer; } .kol-checkbox--disabled { cursor: not-allowed; } .kol-checkbox .kol-input { background-color: white; border-style: solid; margin: 0; border-width: 2px; appearance: none; cursor: inherit; } .kol-checkbox .kol-input:before { content: ""; } .kol-checkbox--variant-default { position: relative; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); justify-content: center; } .kol-checkbox--variant-default .kol-icon { display: none; position: absolute; inset: auto; z-index: 1; pointer-events: none; } .kol-checkbox--variant-default .kol-input { width: calc(22 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(22 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-checkbox--variant-default.kol-checkbox--checked .kol-icon, .kol-checkbox--variant-default.kol-checkbox--indeterminate .kol-icon { display: block; } .kol-checkbox--variant-switch { position: relative; } .kol-checkbox--variant-switch .kol-input { display: inline-block; position: relative; width: 3.2em; min-width: 3.2em; height: 1.7em; } .kol-checkbox--variant-switch .kol-input::before { background-color: black; position: absolute; top: calc(0.25em - 2 * 1rem / var(--kolibri-root-font-size, 16)); left: calc(0.25em - 2 * 1rem / var(--kolibri-root-font-size, 16)); width: 1.2em; height: 1.2em; transition: 0.5s; } .kol-checkbox--variant-switch .kol-input:checked::before { transform: translateX(1.5em); } .kol-checkbox--variant-switch .kol-input:indeterminate::before { transform: translateX(0.75em); } .kol-checkbox--variant-switch .kol-icon { transform: translate(0, -50%); color: black; display: flex; position: absolute; top: 50%; left: calc(4 * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; width: 1.2em; height: 1.2em; align-items: center; justify-content: center; transition: 0.5s; } .kol-checkbox--variant-switch.kol-checkbox--checked .kol-icon { transform: translate(1.5em, -50%); } .kol-checkbox--variant-switch.kol-checkbox--indeterminate .kol-icon { transform: translate(0.75em, -50%); } .kol-checkbox--variant-button { min-width: var(--a11y-min-size); } .kol-checkbox--variant-button .kol-icon { display: flex; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; justify-content: center; } }'}}},[545,"kol-input-checkbox",{_accessKey:[1,"_access-key"],_checked:[1540],_hideMsg:[4,"_hide-msg"],_disabled:[4],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_infoPopover:[16],_indeterminate:[1540],_label:[1],_labelAlign:[1,"_label-align"],_msg:[1],_name:[1],_on:[16],_required:[4],_ariaDetails:[1,"_aria-details"],_shortKey:[1,"_short-key"],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[8],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],getValue:[64],focus:[64],click:[64]},void 0,{_accessKey:[{watchAccessKey:0}],_checked:[{watchChecked:0}],_hideMsg:[{watchHideMsg:0}],_disabled:[{watchDisabled:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_indeterminate:[{watchIndeterminate:0}],_label:[{watchLabel:0}],_labelAlign:[{watchLabelAlign:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_required:[{watchRequired:0}],_ariaDetails:[{watchAriaDetails:0}],_shortKey:[{watchShortKey:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]);n([A("ctaRef")],F.prototype,"focus",null),n([K("ctaRef")],F.prototype,"click",null);const G=F,N=function(){"undefined"!=typeof customElements&&["kol-input-checkbox"].forEach((e=>{"kol-input-checkbox"===e&&(customElements.get(i(e))||customElements.define(i(e),F))}))};export{G as KolInputCheckbox,N as defineCustomElement}
|
|
4
|
+
import{h as e,proxyCustomElement as t,Host as o,transformTag as i}from"@stencil/core/internal/client";import{a as l,_ as n}from"./tslib.es6.js";import{b as a}from"./bem-registry.js";import{v as r}from"./access-and-short-key.js";import{c as s,n as c,b as h,B as d,e as k}from"./props-from-config.js";import{i as b,g as f,f as m,B as u,F as p}from"./base-web-component2.js";import{I as _}from"./component4.js";import{I as g}from"./input.js";import{F as y}from"./field-control.js";import{a as w,d as v}from"./component2.js";import{r as x}from"./required.js";import{c as z}from"./dev.utils.js";import{c as j,d as A,a as T}from"./element-interaction.js";import{s as K}from"./controller.js";const q=["button","default","switch"],I=s("value",!0,(e=>e)),L=s("checked",!1,c),B=["checked","indeterminate","unchecked"],V=s("icons",{checked:"kolicon-check",indeterminate:"kolicon-minus",unchecked:"kolicon-cross"},(e=>{if("object"==typeof e&&null!==e&&B.some((t=>(e=>"string"==typeof e&&e.length>0)(e[t]))))return e;throw Error("Expected an object with at least one icon class of checked, indeterminate or unchecked")})),P=s("indeterminate",!1,c),D=["left","right"],S=s("labelAlign","right",(e=>{const t=h(e);if(D.includes(t))return t;throw Error("Invalid label alignment: "+t)})),C=s("variant","default",(e=>{const t=h(e);if(q.includes(t))return t;throw Error("Invalid checkbox variant: "+t)})),H=a.forBlock("kol-checkbox"),M=t=>{var{class:o,variant:i="default",icon:n,inputProps:a}=t,r=l(t,["class","variant","icon","inputProps"]);const{class:s}=a,c=l(a,["class"]);return e(d,Object.assign({component:"label",block:"kol-checkbox",modifiers:Object.assign({"variant-button":"button"===i,"variant-default":"default"===i,"variant-switch":"switch"===i,checked:!!a.checked,indeterminate:!!a.indeterminate,disabled:!!a.disabled,required:!!a.required,touched:!!a.touched},b(a.msg,a.touched)?{[f(a.msg)]:!0}:{}),class:o},r),e(_,{label:"",icons:n,class:H("icon")}),e(g,Object.assign({class:k(H("input"),s)},c,{type:"checkbox"})))},O={required:[...m.required],optional:[...m.optional,w,I,L,V,P,S,x,v,C]},E=a.forBlock("kol-input-checkbox"),F=t(class extends u{constructor(e){super(!1),!1!==e&&this.__registerHost(),this.__attachShadow(),this.id=z("input-checkbox"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=j(),this.propsConfig=O,this._accessKey=void 0,this._checked=!1,this._hideMsg=!1,this._disabled=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._infoPopover=void 0,this._indeterminate=void 0,this._labelAlign="right",this._msg=void 0,this._name=void 0,this._on=void 0,this._required=!1,this._ariaDetails=void 0,this._shortKey=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=!0,this._variant="default",this.handleCheckboxInput=e=>{this._checked=!this._checked,this._indeterminate=!1,this.handleInput(e,this.getModelValue())},this.handleCheckboxChange=e=>{this.handleChange(e,this.getModelValue())},this.handleCheckboxKeyDown=e=>{this.handleKeyDown(e),K(e,{form:this.host,ref:this.ctaRef.el})},this.handleCheckboxBlur=e=>{this._disabled||this.handleBlur(e)},this.handleLabelMouseDown=e=>{this.inputHasFocus&&e.preventDefault()},this.handleCheckboxMouseDown=e=>{!this.inputHasFocus||e.target instanceof HTMLInputElement||e.preventDefault()},this.initFormAssociation("checkbox",this._name)}watchAccessKey(e){w.apply(e,(e=>this.setRenderProp("accessKey",e))),r(e,this._shortKey)}watchChecked(e){L.apply(e,(e=>this.setRenderProp("checked",e))),this.syncFormAssociatedValue()}watchHideMsg(e){this.applyHideMsg(e)}watchDisabled(e){this.applyDisabled(e)}watchHideLabel(e){this.applyHideLabel(e)}watchHint(e){this.applyHint(e)}watchIcons(e){V.apply(e,(e=>this.setRenderProp("icons",Object.assign(Object.assign({},this.getRenderProp("icons")),e))))}watchInfoPopover(e){this.applyInfoPopover(e)}watchIndeterminate(e){P.apply(e,(e=>this.setRenderProp("indeterminate",e)))}watchLabel(e){this.applyLabel(e)}watchLabelAlign(e){S.apply(e,(e=>this.setRenderProp("labelAlign",e)))}watchMsg(e){this.applyMsg(e)}watchName(e){this.applyName(e)}watchOn(e){this.applyOn(e)}watchRequired(e){x.apply(e,(e=>this.setRenderProp("required",e)))}watchAriaDetails(e){this.applyAriaDetails(e)}watchShortKey(e){v.apply(e,(e=>this.setRenderProp("shortKey",e))),r(this._accessKey,e)}watchSyncValueBySelector(e){this.applySyncValueBySelector(e)}watchTooltipAlign(e){this.applyTooltipAlign(e)}watchTouched(e){this.applyTouched(e)}watchValue(e){null==e?this.setRenderProp("value",e):I.apply(e,(e=>this.setRenderProp("value",e))),this.syncFormAssociatedValue()}watchVariant(e){C.apply(e,(e=>this.setRenderProp("variant",e)))}getValue(){return Promise.resolve(this.getModelValue())}focus(e){return Promise.resolve()}async click(){return Promise.resolve()}componentWillLoad(){this._touched=!0===this._touched,this.watchAriaDetails(this._ariaDetails),this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccessKey(this._accessKey),this.watchMsg(this._msg),this.watchDisabled(this._disabled),this.watchHideMsg(this._hideMsg),this.watchHideLabel(this._hideLabel),this.watchHint(this._hint),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchShortKey(this._shortKey),this.watchOn(this._on),this.watchTooltipAlign(this._tooltipAlign),this.watchRequired(this._required),this.watchChecked(this._checked),this.watchIcons(this._icons),this.watchIndeterminate(this._indeterminate),this.watchValue(this._value),this.watchVariant(this._variant),this.watchLabelAlign(this._labelAlign)}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField()}getModelValue(){return this._checked?this.getRenderProp("value"):null}syncFormAssociatedValue(){this.formAssociation.setFormAssociatedValue(this.getModelValue())}getIcon(){const e=this.getRenderProp("icons");return this.getRenderProp("indeterminate")?e.indeterminate:this.getRenderProp("checked")?e.checked:e.unchecked}getInputProps(){const e=this.getRenderProp("shortKey"),{ariaDescribedBy:t,hasError:o}=this.getAria();return Object.assign(Object.assign({id:this.id,hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),value:this.getRenderProp("value"),accessKey:this.getRenderProp("accessKey")||void 0,disabled:this.getRenderProp("disabled"),name:null==this._name?void 0:this.getRenderProp("name"),ariaDescribedBy:t,required:this.getRenderProp("required"),checked:this.getRenderProp("checked"),indeterminate:this.getRenderProp("indeterminate"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")},e?{"aria-keyshortcuts":e}:{}),{class:k({"visually-hidden":"button"===this.getRenderProp("variant")}),ref:this.ctaRef,onBlur:this.handleCheckboxBlur,onChange:this.handleCheckboxChange,onFocus:this.handleFocus,onInput:this.handleCheckboxInput,onKeyDown:this.handleCheckboxKeyDown,"aria-invalid":o?"true":void 0})}render(){const t=this.getRenderProp("checked"),i=this.getRenderProp("indeterminate"),l=this.getRenderProp("variant"),n=this.getRenderProp("accessKey")||void 0,a=this.getRenderProp("shortKey")||void 0,r=this.getRenderProp("required");return e(o,{key:"9d8f9f1a76d6136279e2a16390c26d358de089cf"},e(p,Object.assign({key:"bc3e19723334f11f76b6f41881aae1eb1896e0a7"},this.getFormFieldProps({class:E({checked:t,indeterminate:i,["variant-"+l]:!0,["label-align-"+this.getRenderProp("labelAlign")]:!0}),accessKey:n,shortKey:a,required:r,renderNoLabel:!0,renderNoTooltip:!0})),e(y,Object.assign({key:"189767fc96708075bd579d260a4d1425fe243a28",class:E("field-control",{checked:t,indeterminate:i,["variant-"+l]:!0}),id:this.id,label:this.getRenderProp("label"),hint:this.getRenderProp("hint"),hideLabel:this.getRenderProp("hideLabel"),labelAlign:this.getRenderProp("labelAlign"),infoPopover:this.getInfoPopover(),accessKey:n,shortKey:a,tooltipAlign:this.getRenderProp("tooltipAlign"),disabled:this.getRenderProp("disabled"),msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),required:r,renderNoHint:!0,labelProps:{onMouseDown:this.handleLabelMouseDown}},this.getLabelTooltipRefs()),e(M,{key:"f15b1f35a6abd220c7af82c6e07378d4e88713ff",variant:l,icon:this.getIcon(),onMouseDown:this.handleCheckboxMouseDown,inputProps:this.getInputProps()}))))}get host(){return this}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_checked:[{watchChecked:0}],_hideMsg:[{watchHideMsg:0}],_disabled:[{watchDisabled:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_indeterminate:[{watchIndeterminate:0}],_label:[{watchLabel:0}],_labelAlign:[{watchLabelAlign:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_required:[{watchRequired:0}],_ariaDetails:[{watchAriaDetails:0}],_shortKey:[{watchShortKey:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-meter meter { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-bar { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-optimum-value, .kol-meter meter::-webkit-meter-suboptimum-value, .kol-meter meter::-webkit-meter-even-less-good-value { background-color: CanvasText; } .kol-meter meter::-moz-meter-bar { background-color: CanvasText; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794998877659"); src: url("kolicons.eot?t=1794998877659#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794998877659") format("woff2"), url("kolicons.woff?t=1794998877659") format("woff"), url("kolicons.ttf?t=1794998877659") format("truetype"), url("kolicons.svg?t=1794998877659#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: ""; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-form-field .kol-popover-button { display: inline; } .kol-form-field .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-form-field .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-form-field .kol-popover-button--inline { display: inline-block; } .kol-form-field .kol-popover-button--inline .kol-button, .kol-form-field .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-form-field .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-form-field .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-form-field { display: grid; } .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label { cursor: pointer; } .kol-form-field__label { display: flex; } .kol-form-field__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-form-field--required .kol-form-field__label-text:has(.kol-span__slot[hidden]) .kol-span__label::after, .kol-form-field--required:not(:has(.kol-form-field__label--legend)) .kol-form-field__input .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-field-control { display: grid; min-height: var(--a11y-min-size); align-items: center; justify-content: left; grid-template-areas: "input label"; grid-template-columns: auto 1fr; grid-template-rows: auto; } .kol-field-control:has(.kol-field-control__hint) { grid-template-areas: "input label" "hint hint"; grid-template-columns: auto 1fr; grid-template-rows: auto auto; } .kol-field-control--label-align-left:not(.kol-field-control--hide-label) { grid-template-areas: "label input"; grid-template-columns: 1fr auto; grid-template-rows: auto; } .kol-field-control--label-align-left:not(.kol-field-control--hide-label):has(.kol-field-control__hint) { grid-template-areas: "label input" "hint hint"; grid-template-columns: 1fr auto; grid-template-rows: auto auto; } .kol-field-control__input { display: flex; min-height: var(--a11y-min-size); align-items: center; grid-area: input; } .kol-field-control__label { display: flex; min-height: var(--a11y-min-size); flex-grow: 1; align-items: center; cursor: pointer; grid-area: label; } .kol-field-control__label--visually-hidden { display: none; height: 0; margin: 0; padding: 0; visibility: hidden; } .kol-field-control__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-field-control__hint { grid-area: hint; } .kol-field-control--disabled .kol-field-control__label { cursor: not-allowed; } .kol-field-control--required .kol-field-control__label-text:has(.kol-span__slot[hidden])::after, .kol-field-control--required .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-form-field { display: grid; } .kol-form-field__label-text { display: ruby; } .kol-checkbox { display: flex; position: relative; align-items: center; cursor: pointer; } .kol-checkbox--disabled { cursor: not-allowed; } .kol-checkbox .kol-input { background-color: white; border-style: solid; margin: 0; border-width: 2px; appearance: none; cursor: inherit; } .kol-checkbox .kol-input:before { content: ""; } .kol-checkbox--variant-default { position: relative; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); justify-content: center; } .kol-checkbox--variant-default .kol-icon { display: none; position: absolute; inset: auto; z-index: 1; pointer-events: none; } .kol-checkbox--variant-default .kol-input { width: calc(22 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(22 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-checkbox--variant-default.kol-checkbox--checked .kol-icon, .kol-checkbox--variant-default.kol-checkbox--indeterminate .kol-icon { display: block; } .kol-checkbox--variant-switch { position: relative; } .kol-checkbox--variant-switch .kol-input { display: inline-block; position: relative; width: 3.2em; min-width: 3.2em; height: 1.7em; } .kol-checkbox--variant-switch .kol-input::before { background-color: black; position: absolute; top: calc(0.25em - 2 * 1rem / var(--kolibri-root-font-size, 16)); left: calc(0.25em - 2 * 1rem / var(--kolibri-root-font-size, 16)); width: 1.2em; height: 1.2em; transition: 0.5s; } .kol-checkbox--variant-switch .kol-input:checked::before { transform: translateX(1.5em); } .kol-checkbox--variant-switch .kol-input:indeterminate::before { transform: translateX(0.75em); } .kol-checkbox--variant-switch .kol-icon { transform: translate(0, -50%); color: black; display: flex; position: absolute; top: 50%; left: calc(4 * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; width: 1.2em; height: 1.2em; align-items: center; justify-content: center; transition: 0.5s; } .kol-checkbox--variant-switch.kol-checkbox--checked .kol-icon { transform: translate(1.5em, -50%); } .kol-checkbox--variant-switch.kol-checkbox--indeterminate .kol-icon { transform: translate(0.75em, -50%); } .kol-checkbox--variant-button { min-width: var(--a11y-min-size); } .kol-checkbox--variant-button .kol-icon { display: flex; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; justify-content: center; } }'}}},[545,"kol-input-checkbox",{_accessKey:[1,"_access-key"],_checked:[1540],_hideMsg:[4,"_hide-msg"],_disabled:[4],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_infoPopover:[16],_indeterminate:[1540],_label:[1],_labelAlign:[1,"_label-align"],_msg:[1],_name:[1],_on:[16],_required:[4],_ariaDetails:[1,"_aria-details"],_shortKey:[1,"_short-key"],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[8],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],getValue:[64],focus:[64],click:[64]},void 0,{_accessKey:[{watchAccessKey:0}],_checked:[{watchChecked:0}],_hideMsg:[{watchHideMsg:0}],_disabled:[{watchDisabled:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_indeterminate:[{watchIndeterminate:0}],_label:[{watchLabel:0}],_labelAlign:[{watchLabelAlign:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_required:[{watchRequired:0}],_ariaDetails:[{watchAriaDetails:0}],_shortKey:[{watchShortKey:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]);n([A("ctaRef")],F.prototype,"focus",null),n([T("ctaRef")],F.prototype,"click",null);const G=F,N=function(){"undefined"!=typeof customElements&&["kol-input-checkbox"].forEach((e=>{"kol-input-checkbox"===e&&(customElements.get(i(e))||customElements.define(i(e),F))}))};export{G as KolInputCheckbox,N as defineCustomElement}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{proxyCustomElement as t,h as o,Host as e,transformTag as i}from"@stencil/core/internal/client";import{_ as n}from"./tslib.es6.js";import{b as a}from"./bem-registry.js";import{v as l}from"./access-and-short-key.js";import{h as r,g as s,I as c}from"./input-container.js";import{f as h,B as d,F as k}from"./base-web-component2.js";import{I as u}from"./input.js";import{a as m,S as p}from"./suggestions2.js";import{a as b,d as f,v as _}from"./component3.js";import"./props-from-config.js";import{s as g}from"./smart-button.js";import{s as y}from"./suggestions.js";import{s as w}from"./value-string.js";import{c as v}from"./dev.utils.js";import{c as x,d as B,a as z}from"./element-interaction.js";const j={required:[...h.required],optional:[...h.optional,b,m,r,f,g,w,y,_]},K=a.forBlock("kol-input-color"),S=t(class extends d{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=v("input-color"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=x(),this.propsConfig=j,this._accessKey=void 0,this._ariaDetails=void 0,this._autoComplete="off",this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._infoPopover=void 0,this._msg=void 0,this._name=void 0,this._on=void 0,this._shortKey=void 0,this._smartButton=void 0,this._suggestions=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this._variant=void 0,this.handleColorInput=t=>{const o=t.target.value;this.setRenderProp("value",o),this.ctaRef.el&&(this.ctaRef.el.value=o),this.handleInput(t)},this.initFormAssociation("color",this._name)}watchAccessKey(t){b.apply(t,(t=>this.setRenderProp("accessKey",t))),l(t,this._shortKey)}watchAriaDetails(t){this.applyAriaDetails(t)}watchAutoComplete(t){m.apply(t,(t=>this.setRenderProp("autoComplete",t)))}watchDisabled(t){this.applyDisabled(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchIcons(t){r.apply(t,(t=>this.setRenderProp("icons",t)))}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMsg(t){this.applyMsg(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchShortKey(t){f.apply(t,(t=>this.setRenderProp("shortKey",t))),l(this._accessKey,t)}watchSmartButton(t){null==t?this.unsetRenderProp("smartButton"):g.apply(t,(t=>this.setRenderProp("smartButton",t)))}watchSuggestions(t){y.apply(t,(t=>this.setRenderProp("suggestions",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchValue(t){w.apply(t,(t=>this.setRenderProp("value",t))),this.formAssociation.setFormAssociatedValue(this.getRenderProp("value"))}watchVariant(t){_.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){var t;return Promise.resolve(null===(t=this.ctaRef.el)||void 0===t?void 0:t.value)}focus(t){return Promise.resolve()}async click(){return Promise.resolve()}componentWillLoad(){this.unsetRenderProp("smartButton"),this._touched=!0===this._touched,this.watchAriaDetails(this._ariaDetails),this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccessKey(this._accessKey),this.watchMsg(this._msg),this.watchDisabled(this._disabled),this.watchHideMsg(this._hideMsg),this.watchHideLabel(this._hideLabel),this.watchHint(this._hint),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchShortKey(this._shortKey),this.watchSmartButton(this._smartButton),this.watchOn(this._on),this.watchTooltipAlign(this._tooltipAlign),this.watchVariant(this._variant),this.watchIcons(this._icons),this.watchAutoComplete(this._autoComplete),this.watchSuggestions(this._suggestions),this.watchValue(this._value)}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField()}getInputProps(){const t=this.id,e=this.getRenderProp("name"),i=this.getRenderProp("accessKey"),n=this.getRenderProp("shortKey"),a=this.getRenderProp("suggestions"),{ariaDescribedBy:l,hasError:r}=this.getAria();return Object.assign(Object.assign(Object.assign(Object.assign({id:t,hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),disabled:this.getRenderProp("disabled"),name:e?e+"-color":void 0},i?{accessKey:i}:{}),{value:this.getRenderProp("value"),autoComplete:this.getRenderProp("autoComplete"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")}),n?{"aria-keyshortcuts":n}:{}),{suggestions:a.length>0?o(p,{id:t,suggestions:a}):void 0,class:K("input",{color:!0}),onBlur:this.handleBlur,onChange:this.handleChange,onClick:this.handleClick,onFocus:this.handleFocus,onInput:this.handleColorInput,onKeyDown:this.handleKeyDown,ref:this.ctaRef,type:"color",ariaDescribedBy:l,"aria-invalid":r?"true":void 0})}render(){const t=this.getRenderProp("disabled"),{startAdornment:i,endAdornment:n}=s({icons:this.getRenderProp("icons"),smartButton:this.getSmartButtonFcProps(this.getRenderProp("smartButton"),t)});return o(e,{key:"89e0f26553404c7836b933b0f36d8075b8bad263"},o(k,Object.assign({key:"b587f9fe1e55ef2708b4621c5b9e12abea47e0e9"},this.getFormFieldProps({class:K(),accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,variant:this.getRenderProp("variant")})),o(c,{key:"a6e45cf9a2e54391629b6ddd04b7e7b24b1c2dfe",disabled:t,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:n},o(u,Object.assign({key:"0b65d575f9f5938229289aaccc8c514171755c6a"},this.getInputProps())))))}get host(){return this}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_autoComplete:[{watchAutoComplete:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_suggestions:[{watchSuggestions:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794913000943"); src: url("kolicons.eot?t=1794913000943#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794913000943") format("woff2"), url("kolicons.woff?t=1794913000943") format("woff"), url("kolicons.ttf?t=1794913000943") format("truetype"), url("kolicons.svg?t=1794913000943#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-button { background-color: transparent; display: inline-block; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); margin: 0; padding: 0; text-align: center; } .kol-button__interactive-element { border-style: none; display: block; border-width: medium; font-weight: inherit; font-style: inherit; text-align: inherit; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: ""; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-form-field .kol-popover-button { display: inline; } .kol-form-field .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-form-field .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-form-field .kol-popover-button--inline { display: inline-block; } .kol-form-field .kol-popover-button--inline .kol-button, .kol-form-field .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-form-field .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-form-field .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-form-field { display: grid; } .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label { cursor: pointer; } .kol-form-field__label { display: flex; } .kol-form-field__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-form-field--required .kol-form-field__label-text:has(.kol-span__slot[hidden]) .kol-span__label::after, .kol-form-field--required:not(:has(.kol-form-field__label--legend)) .kol-form-field__input .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-input-container { background-color: transparent; display: grid; position: relative; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; grid-template-columns: 1fr; } .kol-input-container:has(> .kol-input-container__adornment--start) { grid-template-columns: auto 1fr auto; } .kol-input-container__container { position: relative; z-index: 1; } .kol-input-container__adornment { display: flex; align-items: center; } .kol-input-container__adornment .kol-icon { display: grid; place-items: center; } .kol-input { background-color: transparent; width: 100%; min-width: var(--a11y-min-size); } .kol-input { cursor: pointer; } .kol-input:disabled { cursor: not-allowed; } }'}}},[545,"kol-input-color",{_accessKey:[1,"_access-key"],_ariaDetails:[1,"_aria-details"],_autoComplete:[1,"_auto-complete"],_disabled:[4],_hideMsg:[4,"_hide-msg"],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_infoPopover:[16],_label:[1],_msg:[1],_name:[1],_on:[16],_shortKey:[1,"_short-key"],_smartButton:[1,"_smart-button"],_suggestions:[1],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[1],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],getValue:[64],focus:[64],click:[64]},void 0,{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_autoComplete:[{watchAutoComplete:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_suggestions:[{watchSuggestions:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]);n([B("ctaRef")],S.prototype,"focus",null),n([z("ctaRef")],S.prototype,"click",null);const T=S,A=function(){"undefined"!=typeof customElements&&["kol-input-color"].forEach((t=>{"kol-input-color"===t&&(customElements.get(i(t))||customElements.define(i(t),S))}))};export{T as KolInputColor,A as defineCustomElement}
|
|
4
|
+
import{proxyCustomElement as t,h as o,Host as e,transformTag as i}from"@stencil/core/internal/client";import{_ as n}from"./tslib.es6.js";import{b as a}from"./bem-registry.js";import{v as l}from"./access-and-short-key.js";import{h as r,g as s,I as c}from"./input-container.js";import{f as h,B as d,F as k}from"./base-web-component2.js";import{I as m}from"./input.js";import{a as u,S as b}from"./suggestions2.js";import{a as p,d as f,v as _}from"./component2.js";import"./props-from-config.js";import{s as g}from"./smart-button.js";import{s as y}from"./suggestions.js";import{s as w}from"./value-string.js";import{c as v}from"./dev.utils.js";import{c as x,d as B,a as z}from"./element-interaction.js";const T={required:[...h.required],optional:[...h.optional,p,u,r,f,g,w,y,_]},j=a.forBlock("kol-input-color"),K=t(class extends d{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=v("input-color"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=x(),this.propsConfig=T,this._accessKey=void 0,this._ariaDetails=void 0,this._autoComplete="off",this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._infoPopover=void 0,this._msg=void 0,this._name=void 0,this._on=void 0,this._shortKey=void 0,this._smartButton=void 0,this._suggestions=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this._variant=void 0,this.handleColorInput=t=>{const o=t.target.value;this.setRenderProp("value",o),this.ctaRef.el&&(this.ctaRef.el.value=o),this.handleInput(t)},this.initFormAssociation("color",this._name)}watchAccessKey(t){p.apply(t,(t=>this.setRenderProp("accessKey",t))),l(t,this._shortKey)}watchAriaDetails(t){this.applyAriaDetails(t)}watchAutoComplete(t){u.apply(t,(t=>this.setRenderProp("autoComplete",t)))}watchDisabled(t){this.applyDisabled(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchIcons(t){r.apply(t,(t=>this.setRenderProp("icons",t)))}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMsg(t){this.applyMsg(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchShortKey(t){f.apply(t,(t=>this.setRenderProp("shortKey",t))),l(this._accessKey,t)}watchSmartButton(t){null==t?this.unsetRenderProp("smartButton"):g.apply(t,(t=>this.setRenderProp("smartButton",t)))}watchSuggestions(t){y.apply(t,(t=>this.setRenderProp("suggestions",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchValue(t){w.apply(t,(t=>this.setRenderProp("value",t))),this.formAssociation.setFormAssociatedValue(this.getRenderProp("value"))}watchVariant(t){_.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){var t;return Promise.resolve(null===(t=this.ctaRef.el)||void 0===t?void 0:t.value)}focus(t){return Promise.resolve()}async click(){return Promise.resolve()}componentWillLoad(){this.unsetRenderProp("smartButton"),this._touched=!0===this._touched,this.watchAriaDetails(this._ariaDetails),this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccessKey(this._accessKey),this.watchMsg(this._msg),this.watchDisabled(this._disabled),this.watchHideMsg(this._hideMsg),this.watchHideLabel(this._hideLabel),this.watchHint(this._hint),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchShortKey(this._shortKey),this.watchSmartButton(this._smartButton),this.watchOn(this._on),this.watchTooltipAlign(this._tooltipAlign),this.watchVariant(this._variant),this.watchIcons(this._icons),this.watchAutoComplete(this._autoComplete),this.watchSuggestions(this._suggestions),this.watchValue(this._value)}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField()}getInputProps(){const t=this.id,e=this.getRenderProp("name"),i=this.getRenderProp("accessKey"),n=this.getRenderProp("shortKey"),a=this.getRenderProp("suggestions"),{ariaDescribedBy:l,hasError:r}=this.getAria();return Object.assign(Object.assign(Object.assign(Object.assign({id:t,hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),disabled:this.getRenderProp("disabled"),name:e?e+"-color":void 0},i?{accessKey:i}:{}),{value:this.getRenderProp("value"),autoComplete:this.getRenderProp("autoComplete"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")}),n?{"aria-keyshortcuts":n}:{}),{suggestions:a.length>0?o(b,{id:t,suggestions:a}):void 0,class:j("input",{color:!0}),onBlur:this.handleBlur,onChange:this.handleChange,onClick:this.handleClick,onFocus:this.handleFocus,onInput:this.handleColorInput,onKeyDown:this.handleKeyDown,ref:this.ctaRef,type:"color",ariaDescribedBy:l,"aria-invalid":r?"true":void 0})}render(){const t=this.getRenderProp("disabled"),{startAdornment:i,endAdornment:n}=s({icons:this.getRenderProp("icons"),smartButton:this.getSmartButtonFcProps(this.getRenderProp("smartButton"),t)});return o(e,{key:"89e0f26553404c7836b933b0f36d8075b8bad263"},o(k,Object.assign({key:"b587f9fe1e55ef2708b4621c5b9e12abea47e0e9"},this.getFormFieldProps({class:j(),accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,variant:this.getRenderProp("variant")})),o(c,{key:"a6e45cf9a2e54391629b6ddd04b7e7b24b1c2dfe",disabled:t,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:n},o(m,Object.assign({key:"0b65d575f9f5938229289aaccc8c514171755c6a"},this.getInputProps())))))}get host(){return this}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_autoComplete:[{watchAutoComplete:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_suggestions:[{watchSuggestions:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-meter meter { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-bar { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-optimum-value, .kol-meter meter::-webkit-meter-suboptimum-value, .kol-meter meter::-webkit-meter-even-less-good-value { background-color: CanvasText; } .kol-meter meter::-moz-meter-bar { background-color: CanvasText; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794998877659"); src: url("kolicons.eot?t=1794998877659#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794998877659") format("woff2"), url("kolicons.woff?t=1794998877659") format("woff"), url("kolicons.ttf?t=1794998877659") format("truetype"), url("kolicons.svg?t=1794998877659#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-button { background-color: transparent; display: inline-block; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); margin: 0; padding: 0; text-align: center; } .kol-button__interactive-element { border-style: none; display: block; border-width: medium; font-weight: inherit; font-style: inherit; text-align: inherit; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: ""; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-form-field .kol-popover-button { display: inline; } .kol-form-field .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-form-field .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-form-field .kol-popover-button--inline { display: inline-block; } .kol-form-field .kol-popover-button--inline .kol-button, .kol-form-field .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-form-field .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-form-field .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-form-field { display: grid; } .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label { cursor: pointer; } .kol-form-field__label { display: flex; } .kol-form-field__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-form-field--required .kol-form-field__label-text:has(.kol-span__slot[hidden]) .kol-span__label::after, .kol-form-field--required:not(:has(.kol-form-field__label--legend)) .kol-form-field__input .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-input-container { background-color: transparent; display: grid; position: relative; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; grid-template-columns: 1fr; } .kol-input-container:has(> .kol-input-container__adornment--start) { grid-template-columns: auto 1fr auto; } .kol-input-container__container { position: relative; z-index: 1; } .kol-input-container__adornment { display: flex; align-items: center; } .kol-input-container__adornment .kol-icon { display: grid; place-items: center; } .kol-input { background-color: transparent; width: 100%; min-width: var(--a11y-min-size); } .kol-input { cursor: pointer; } .kol-input:disabled { cursor: not-allowed; } }'}}},[545,"kol-input-color",{_accessKey:[1,"_access-key"],_ariaDetails:[1,"_aria-details"],_autoComplete:[1,"_auto-complete"],_disabled:[4],_hideMsg:[4,"_hide-msg"],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_infoPopover:[16],_label:[1],_msg:[1],_name:[1],_on:[16],_shortKey:[1,"_short-key"],_smartButton:[1,"_smart-button"],_suggestions:[1],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[1],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],getValue:[64],focus:[64],click:[64]},void 0,{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_autoComplete:[{watchAutoComplete:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_suggestions:[{watchSuggestions:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]);n([B("ctaRef")],K.prototype,"focus",null),n([z("ctaRef")],K.prototype,"click",null);const S=K,C=function(){"undefined"!=typeof customElements&&["kol-input-color"].forEach((t=>{"kol-input-color"===t&&(customElements.get(i(t))||customElements.define(i(t),K))}))};export{S as KolInputColor,C as defineCustomElement}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{proxyCustomElement as t,forceUpdate as e,h as o,Host as i,transformTag as n}from"@stencil/core/internal/client";import{_ as a}from"./tslib.es6.js";import{b as l,e as s}from"./bem-registry.js";import{v as r}from"./access-and-short-key.js";import{h as c,g as h,I as d}from"./input-container.js";import{f as u,B as m,F as p}from"./base-web-component2.js";import{I as k}from"./input.js";import{a as f,S as b}from"./suggestions2.js";import{a as _,d as y,v as g}from"./component3.js";import{f as w,c as v,b as x,i as j}from"./props-from-config.js";import{r as B}from"./read-only.js";import{r as S}from"./required.js";import{s as z}from"./smart-button.js";import{s as T}from"./step.js";import{s as D}from"./suggestions.js";import{c as K}from"./clsx.js";import{c as O}from"./dev.utils.js";import{c as A,d as M,a as V}from"./element-interaction.js";import{s as q}from"./controller.js";const C=["date","datetime-local","month","time","week"],I=/^\d{4}-([0]\d|1[0-2])-([0-2]\d|3[01])/,L=/^\d{4}-([0]\d|1[0-2])-([0-2]\d|3[01])[T ][0-2]\d:[0-5]\d(:[0-5]\d(?:\.\d+)?)?/,P=/^\d{4}-([0]\d|1[0-2])/,H=/^[0-2]\d:[0-5]\d(:[0-5]\d(?:\.\d+)?)?/,$=/^\d{4}-W(?:[0-4]\d|5[0-3])$/;function R(t,{type:e,step:o}){return function(t,e,o){if("string"==typeof t||null===t)return t;if(t instanceof Date){const i=t.getFullYear(),n=(t.getMonth()+1+"").padStart(2,"0"),a=(t.getDate()+"").padStart(2,"0"),l=(t.getHours()+"").padStart(2,"0"),s=(t.getMinutes()+"").padStart(2,"0"),r=(t.getSeconds()+"").padStart(2,"0"),c=[i,n,a].join("-"),h=[l,s,r].join(":");switch(e){case"date":return c;case"datetime-local":return`${c}T${h}`;case"month":return`${i}-${n}`;case"time":return void 0===o||o+""=="60"?`${l}:${s}`:h;case"week":return`${i}-W${function(t){const e=new Date(t),o=(e.getDay()+6)%7;e.setDate(e.getDate()-o+3);const i=e.valueOf();return e.setMonth(0,1),4!==e.getDay()&&e.setMonth(0,1+(4-e.getDay()+7)%7),(""+(1+Math.ceil((i-e.valueOf())/6048e5))).padStart(2,"0")}(t)}`}}}(t,e,o)}function G(t,{type:e}){return null==t||""===t||function(t,e){switch(e){case"date":return I.test(t);case"datetime-local":return L.test(t);case"month":return P.test(t);case"time":return H.test(t);case"week":return $.test(t);default:return!1}}(t,e)}const N=w("max",void 0,R,G),E=w("min",void 0,R,G),F=v("type","date",(function(t){const e=x(t);if(j(e,C))return e;throw Error("Invalid input date type: "+e)})),W=w("value",void 0,R,G);function U(t){return t instanceof Date?"Date":"string"==typeof t?"String":null}function J(t,e){return""===t?null:"Date"!==e?t:function(t){const e=Q.exec(t);return e?new Date(Number(e[1]),Number(e[2])-1,Number(e[3])):new Date(t)}(t)}const Q=/^(\d{4})-(\d{2})-(\d{2})$/,X={required:[...u.required],optional:[...u.optional,_,f,c,N,E,F,W,B,S,y,z,T,D,g]},Y=l.forBlock("kol-input-date"),Z=t(class extends m{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=O("input-date"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=A(),this.valueType=null,this.hasValue=!1,this.propsConfig=X,this._accessKey=void 0,this._ariaDetails=void 0,this._autoComplete="off",this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._infoPopover=void 0,this._max=void 0,this._min=void 0,this._msg=void 0,this._name=void 0,this._on=void 0,this._readOnly=!1,this._required=!1,this._shortKey=void 0,this._smartButton=void 0,this._suggestions=void 0,this._syncValueBySelector=void 0,this._step=void 0,this._tooltipAlign="top",this._touched=!1,this._type="date",this._value=void 0,this._variant=void 0,this.handleDateInput=t=>{const e=this.readValue(t);this._value=e,this.handleInput(t,e)},this.handleDateChange=t=>{const e=this.readValue(t);this.handleChange(t,e),this.hasValue=!!e},this.handleDateBlur=t=>{this.handleBlur(t);const e=t.target.value;!!e!=!!this._value&&(this._value=e)},this.handleDateKeyDown=t=>{this.handleKeyDown(t),q(t,{form:this.host,ref:this.ctaRef.el}),this.getRenderProp("readOnly")&&"Space"===t.code&&t.preventDefault()},this.initFormAssociation("date",this._name)}watchAccessKey(t){_.apply(t,(t=>this.setRenderProp("accessKey",t))),r(t,this._shortKey)}watchAriaDetails(t){this.applyAriaDetails(t)}watchAutoComplete(t){f.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){c.apply(t,(t=>this.setRenderProp("icons",t)))}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMax(t){N.apply(t,(t=>this.setRenderProp("max",t)),this.dateDeps)}watchMin(t){E.apply(t,(t=>this.setRenderProp("min",t)),this.dateDeps)}watchMsg(t){this.applyMsg(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchReadOnly(t){B.apply(t,(t=>this.setRenderProp("readOnly",t)))}watchRequired(t){S.apply(t,(t=>this.setRenderProp("required",t)))}watchShortKey(t){y.apply(t,(t=>this.setRenderProp("shortKey",t))),r(this._accessKey,t)}watchSmartButton(t){null==t?this.unsetRenderProp("smartButton"):z.apply(t,(t=>this.setRenderProp("smartButton",t)))}watchSuggestions(t){D.apply(t,(t=>this.setRenderProp("suggestions",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchStep(t){T.apply(t,(t=>this.setRenderProp("step",t)))}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchType(t){F.apply(t,(t=>this.setRenderProp("type",t)))}watchValue(t){var e;t instanceof Date&&s("Date type will be removed in v3. Use `Iso8601` instead."),W.apply(t,(t=>this.setRenderProp("value",t)),this.dateDeps),this.formAssociation.setFormAssociatedValue(null!==(e=this.getRenderProp("value"))&&void 0!==e?e:null),null!=t&&(this.valueType=U(t))}watchVariant(t){g.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){return Promise.resolve(this.ctaRef.el&&J(this.ctaRef.el.value,this.valueType))}focus(t){return Promise.resolve()}async click(){return Promise.resolve()}reset(){return this.setRenderProp("value",void 0),this.hasValue=!1,e(this),this.formAssociation.setFormAssociatedValue(""),this.ctaRef.el&&(this.ctaRef.el.value=""),Promise.resolve()}componentWillLoad(){this.unsetRenderProp("smartButton"),void 0!==this._value&&(this.valueType=U(this._value)),this._touched=!0===this._touched,this.watchAriaDetails(this._ariaDetails),this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccessKey(this._accessKey),this.watchMsg(this._msg),this.watchDisabled(this._disabled),this.watchHideMsg(this._hideMsg),this.watchHideLabel(this._hideLabel),this.watchHint(this._hint),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchShortKey(this._shortKey),this.watchSmartButton(this._smartButton),this.watchOn(this._on),this.watchTooltipAlign(this._tooltipAlign),this.watchVariant(this._variant),this.watchIcons(this._icons),this.watchAutoComplete(this._autoComplete),this.watchMax(this._max),this.watchMin(this._min),this.watchSuggestions(this._suggestions),this.watchReadOnly(this._readOnly),this.watchRequired(this._required),this.watchStep(this._step),this.watchType(this._type),this.watchValue(this._value),this.hasValue=!!this.getRenderProp("value")}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField()}get dateDeps(){return{type:this._type,step:this._step}}readValue(t){return J(t.target.value,this.valueType)}getInputProps(){var t,e,i,n;const a=this.id,l=this.getRenderProp("accessKey"),s=this.getRenderProp("shortKey"),r=this.getRenderProp("suggestions"),{ariaDescribedBy:c,hasError:h}=this.getAria();return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({id:a,hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),disabled:this.getRenderProp("disabled"),name:this.getRenderProp("name")||void 0},l?{accessKey:l}:{}),{type:this.getRenderProp("type"),value:null!==(t=this.getRenderProp("value"))&&void 0!==t?t:null===this._value?null:void 0,required:this.getRenderProp("required"),autoComplete:this.getRenderProp("autoComplete"),readonly:this.getRenderProp("readOnly"),min:null!==(e=this.getRenderProp("min"))&&void 0!==e?e:null===this._min?null:void 0,max:null!==(i=this.getRenderProp("max"))&&void 0!==i?i:null===this._max?null:void 0,step:null!==(n=this.getRenderProp("step"))&&void 0!==n?n:null,touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")}),s?{"aria-keyshortcuts":s}:{}),r.length>0?{suggestions:o(b,{id:a,suggestions:r})}:{}),{ref:this.ctaRef,onBlur:this.handleDateBlur,onChange:this.handleDateChange,onClick:this.handleClick,onFocus:this.handleFocus,onInput:this.handleDateInput,onKeyDown:this.handleDateKeyDown,ariaDescribedBy:c,"aria-invalid":h?"true":void 0})}render(){const t=this.getRenderProp("disabled"),{startAdornment:e,endAdornment:n}=h({icons:this.getRenderProp("icons"),smartButton:this.getSmartButtonFcProps(this.getRenderProp("smartButton"),t)});return o(i,{key:"23b44960be1170c4260569baf9ef16e5e47ee7b1"},o(p,Object.assign({key:"8e4651fa3225a8e0490f14cff261ea89d2e5625e"},this.getFormFieldProps({class:K(Y(),this.getRenderProp("type"),{"has-value":this.hasValue}),accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,variant:this.getRenderProp("variant"),required:this.getRenderProp("required"),readOnly:this.getRenderProp("readOnly")})),o(d,{key:"514f623d0ed2a1877965ae042c29dbf861462c5f",disabled:t,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:e,endAdornment:n},o(k,Object.assign({key:"4bba5733e85bd0e38acb669eca99417b077a132f"},this.getInputProps())))))}get host(){return this}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_autoComplete:[{watchAutoComplete:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_max:[{watchMax:0}],_min:[{watchMin:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_readOnly:[{watchReadOnly:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_suggestions:[{watchSuggestions:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_step:[{watchStep:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_type:[{watchType:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794913000943"); src: url("kolicons.eot?t=1794913000943#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794913000943") format("woff2"), url("kolicons.woff?t=1794913000943") format("woff"), url("kolicons.ttf?t=1794913000943") format("truetype"), url("kolicons.svg?t=1794913000943#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-button { background-color: transparent; display: inline-block; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); margin: 0; padding: 0; text-align: center; } .kol-button__interactive-element { border-style: none; display: block; border-width: medium; font-weight: inherit; font-style: inherit; text-align: inherit; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: ""; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-form-field .kol-popover-button { display: inline; } .kol-form-field .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-form-field .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-form-field .kol-popover-button--inline { display: inline-block; } .kol-form-field .kol-popover-button--inline .kol-button, .kol-form-field .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-form-field .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-form-field .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-form-field { display: grid; } .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label { cursor: pointer; } .kol-form-field__label { display: flex; } .kol-form-field__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-form-field--required .kol-form-field__label-text:has(.kol-span__slot[hidden]) .kol-span__label::after, .kol-form-field--required:not(:has(.kol-form-field__label--legend)) .kol-form-field__input .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-input-container { background-color: transparent; display: grid; position: relative; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; grid-template-columns: 1fr; } .kol-input-container:has(> .kol-input-container__adornment--start) { grid-template-columns: auto 1fr auto; } .kol-input-container__container { position: relative; z-index: 1; } .kol-input-container__adornment { display: flex; align-items: center; } .kol-input-container__adornment .kol-icon { display: grid; place-items: center; } .kol-input { background-color: transparent; width: 100%; min-width: var(--a11y-min-size); } .kol-input { cursor: text; } .kol-input::-webkit-calendar-picker-indicator { cursor: pointer; } }'}}},[545,"kol-input-date",{_accessKey:[1,"_access-key"],_ariaDetails:[1,"_aria-details"],_autoComplete:[1,"_auto-complete"],_disabled:[4],_hideMsg:[4,"_hide-msg"],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_infoPopover:[16],_label:[1],_max:[1],_min:[1],_msg:[1],_name:[1],_on:[16],_readOnly:[4,"_read-only"],_required:[4],_shortKey:[1,"_short-key"],_smartButton:[1,"_smart-button"],_suggestions:[1],_syncValueBySelector:[1,"_sync-value-by-selector"],_step:[8],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_type:[1],_value:[1537],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],getValue:[64],focus:[64],click:[64],reset:[64]},void 0,{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_autoComplete:[{watchAutoComplete:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_max:[{watchMax:0}],_min:[{watchMin:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_readOnly:[{watchReadOnly:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_suggestions:[{watchSuggestions:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_step:[{watchStep:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_type:[{watchType:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]);a([M("ctaRef")],Z.prototype,"focus",null),a([V("ctaRef")],Z.prototype,"click",null);const tt=Z,et=function(){"undefined"!=typeof customElements&&["kol-input-date"].forEach((t=>{"kol-input-date"===t&&(customElements.get(n(t))||customElements.define(n(t),Z))}))};export{tt as KolInputDate,et as defineCustomElement}
|
|
4
|
+
import{proxyCustomElement as t,h as e,Host as o,transformTag as i}from"@stencil/core/internal/client";import{_ as n}from"./tslib.es6.js";import{b as a,e as l}from"./bem-registry.js";import{v as r}from"./access-and-short-key.js";import{h as s,g as c,I as h}from"./input-container.js";import{f as d,B as u,F as m}from"./base-web-component2.js";import{I as p}from"./input.js";import{a as k,S as f}from"./suggestions2.js";import{a as b,d as _,v as g}from"./component2.js";import{h as y,c as w,b as v,i as x,e as T}from"./props-from-config.js";import{r as B}from"./read-only.js";import{r as j}from"./required.js";import{s as z}from"./smart-button.js";import{s as S}from"./step.js";import{s as D}from"./suggestions.js";import{c as K}from"./dev.utils.js";import{c as O,d as C,a as A}from"./element-interaction.js";import{s as V}from"./controller.js";const M=["date","datetime-local","month","time","week"],q=/^\d{4}-([0]\d|1[0-2])-([0-2]\d|3[01])/,I=/^\d{4}-([0]\d|1[0-2])-([0-2]\d|3[01])[T ][0-2]\d:[0-5]\d(:[0-5]\d(?:\.\d+)?)?/,L=/^\d{4}-([0]\d|1[0-2])/,P=/^[0-2]\d:[0-5]\d(:[0-5]\d(?:\.\d+)?)?/,H=/^\d{4}-W(?:[0-4]\d|5[0-3])$/;function $(t,{type:e,step:o}){return function(t,e,o){if("string"==typeof t||null===t)return t;if(t instanceof Date){const i=t.getFullYear(),n=(t.getMonth()+1+"").padStart(2,"0"),a=(t.getDate()+"").padStart(2,"0"),l=(t.getHours()+"").padStart(2,"0"),r=(t.getMinutes()+"").padStart(2,"0"),s=(t.getSeconds()+"").padStart(2,"0"),c=[i,n,a].join("-"),h=[l,r,s].join(":");switch(e){case"date":return c;case"datetime-local":return`${c}T${h}`;case"month":return`${i}-${n}`;case"time":return void 0===o||o+""=="60"?`${l}:${r}`:h;case"week":return`${i}-W${function(t){const e=new Date(t),o=(e.getDay()+6)%7;e.setDate(e.getDate()-o+3);const i=e.valueOf();return e.setMonth(0,1),4!==e.getDay()&&e.setMonth(0,1+(4-e.getDay()+7)%7),(""+(1+Math.ceil((i-e.valueOf())/6048e5))).padStart(2,"0")}(t)}`}}}(t,e,o)}function R(t,{type:e}){return null==t||""===t||function(t,e){switch(e){case"date":return q.test(t);case"datetime-local":return I.test(t);case"month":return L.test(t);case"time":return P.test(t);case"week":return H.test(t);default:return!1}}(t,e)}const G=y("max",void 0,$,R),N=y("min",void 0,$,R),E=w("type","date",(function(t){const e=v(t);if(x(e,M))return e;throw Error("Invalid input date type: "+e)})),F=y("value",void 0,$,R);function W(t){return t instanceof Date?"Date":"string"==typeof t?"String":null}function U(t,e){return""===t?null:"Date"!==e?t:function(t){const e=J.exec(t);return e?new Date(Number(e[1]),Number(e[2])-1,Number(e[3])):new Date(t)}(t)}const J=/^(\d{4})-(\d{2})-(\d{2})$/,Q={required:[...d.required],optional:[...d.optional,b,k,s,G,N,E,F,B,j,_,z,S,D,g]},X=a.forBlock("kol-input-date"),Y=t(class extends u{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=K("input-date"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.hasValue=!1,this.ctaRef=O(),this.valueType=null,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._readOnly=!1,this._required=!1,this._shortKey=void 0,this._smartButton=void 0,this._suggestions=void 0,this._syncValueBySelector=void 0,this._step=void 0,this._tooltipAlign="top",this._touched=!1,this._type="date",this._value=void 0,this._variant=void 0,this.handleDateInput=t=>{const e=this.readValue(t);this._value=e,this.handleInput(t,e)},this.handleDateChange=t=>{const e=this.readValue(t);this.handleChange(t,e),this.hasValue=!!e},this.handleDateBlur=t=>{this.handleBlur(t);const e=t.target.value;!!e!=!!this._value&&(this._value=e)},this.handleDateKeyDown=t=>{this.handleKeyDown(t),V(t,{form:this.host,ref:this.ctaRef.el}),this.getRenderProp("readOnly")&&"Space"===t.code&&t.preventDefault()},this.initFormAssociation("date",this._name)}watchAccessKey(t){b.apply(t,(t=>this.setRenderProp("accessKey",t))),r(t,this._shortKey)}watchAriaDetails(t){this.applyAriaDetails(t)}watchAutoComplete(t){k.apply(t,(t=>this.setRenderProp("autoComplete",t)))}watchDisabled(t){this.applyDisabled(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchIcons(t){s.apply(t,(t=>this.setRenderProp("icons",t)))}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMax(t){G.apply(t,(t=>this.setRenderProp("max",t)),this.dateDeps)}watchMin(t){N.apply(t,(t=>this.setRenderProp("min",t)),this.dateDeps)}watchMsg(t){this.applyMsg(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchReadOnly(t){B.apply(t,(t=>this.setRenderProp("readOnly",t)))}watchRequired(t){j.apply(t,(t=>this.setRenderProp("required",t)))}watchShortKey(t){_.apply(t,(t=>this.setRenderProp("shortKey",t))),r(this._accessKey,t)}watchSmartButton(t){null==t?this.unsetRenderProp("smartButton"):z.apply(t,(t=>this.setRenderProp("smartButton",t)))}watchSuggestions(t){D.apply(t,(t=>this.setRenderProp("suggestions",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchStep(t){S.apply(t,(t=>this.setRenderProp("step",t)))}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchType(t){E.apply(t,(t=>this.setRenderProp("type",t)))}watchValue(t){var e;t instanceof Date&&l("Date type will be removed in v3. Use `Iso8601` instead."),F.apply(t,(t=>this.setRenderProp("value",t)),this.dateDeps),this.formAssociation.setFormAssociatedValue(null!==(e=this.getRenderProp("value"))&&void 0!==e?e:null),null!=t&&(this.valueType=W(t))}watchVariant(t){g.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){return Promise.resolve(this.ctaRef.el&&U(this.ctaRef.el.value,this.valueType))}focus(t){return Promise.resolve()}async click(){return Promise.resolve()}reset(){return this.setRenderProp("value",void 0),this.hasValue=!1,this.formAssociation.setFormAssociatedValue(""),this.ctaRef.el&&(this.ctaRef.el.value=""),Promise.resolve()}componentWillLoad(){this.unsetRenderProp("smartButton"),void 0!==this._value&&(this.valueType=W(this._value)),this._touched=!0===this._touched,this.watchAriaDetails(this._ariaDetails),this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccessKey(this._accessKey),this.watchMsg(this._msg),this.watchDisabled(this._disabled),this.watchHideMsg(this._hideMsg),this.watchHideLabel(this._hideLabel),this.watchHint(this._hint),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchShortKey(this._shortKey),this.watchSmartButton(this._smartButton),this.watchOn(this._on),this.watchTooltipAlign(this._tooltipAlign),this.watchVariant(this._variant),this.watchIcons(this._icons),this.watchAutoComplete(this._autoComplete),this.watchMax(this._max),this.watchMin(this._min),this.watchSuggestions(this._suggestions),this.watchReadOnly(this._readOnly),this.watchRequired(this._required),this.watchStep(this._step),this.watchType(this._type),this.watchValue(this._value),this.hasValue=!!this.getRenderProp("value")}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField()}get dateDeps(){return{type:this._type,step:this._step}}readValue(t){return U(t.target.value,this.valueType)}getInputProps(){var t,o,i,n;const a=this.id,l=this.getRenderProp("accessKey"),r=this.getRenderProp("shortKey"),s=this.getRenderProp("suggestions"),{ariaDescribedBy:c,hasError:h}=this.getAria();return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({id:a,hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),disabled:this.getRenderProp("disabled"),name:this.getRenderProp("name")||void 0},l?{accessKey:l}:{}),{type:this.getRenderProp("type"),value:null!==(t=this.getRenderProp("value"))&&void 0!==t?t:null===this._value?null:void 0,required:this.getRenderProp("required"),autoComplete:this.getRenderProp("autoComplete"),readonly:this.getRenderProp("readOnly"),min:null!==(o=this.getRenderProp("min"))&&void 0!==o?o:null===this._min?null:void 0,max:null!==(i=this.getRenderProp("max"))&&void 0!==i?i:null===this._max?null:void 0,step:null!==(n=this.getRenderProp("step"))&&void 0!==n?n:null,touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")}),r?{"aria-keyshortcuts":r}:{}),s.length>0?{suggestions:e(f,{id:a,suggestions:s})}:{}),{ref:this.ctaRef,onBlur:this.handleDateBlur,onChange:this.handleDateChange,onClick:this.handleClick,onFocus:this.handleFocus,onInput:this.handleDateInput,onKeyDown:this.handleDateKeyDown,ariaDescribedBy:c,"aria-invalid":h?"true":void 0})}render(){const t=this.getRenderProp("disabled"),{startAdornment:i,endAdornment:n}=c({icons:this.getRenderProp("icons"),smartButton:this.getSmartButtonFcProps(this.getRenderProp("smartButton"),t)});return e(o,{key:"5927ba049cedee1387da8ac344d45839bf7b5273"},e(m,Object.assign({key:"569e5d28c5a9cd6549156c2f55a65408246fc68f"},this.getFormFieldProps({class:T(X(),this.getRenderProp("type"),{"has-value":this.hasValue}),accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,variant:this.getRenderProp("variant"),required:this.getRenderProp("required"),readOnly:this.getRenderProp("readOnly")})),e(h,{key:"1480cd1c9c6a8b4dc9a321c90a60c29e555292da",disabled:t,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:n},e(p,Object.assign({key:"5fd31dcad9dade642ed77bc6117a085d9b03f7e2"},this.getInputProps())))))}get host(){return this}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_autoComplete:[{watchAutoComplete:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_max:[{watchMax:0}],_min:[{watchMin:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_readOnly:[{watchReadOnly:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_suggestions:[{watchSuggestions:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_step:[{watchStep:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_type:[{watchType:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-meter meter { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-bar { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-optimum-value, .kol-meter meter::-webkit-meter-suboptimum-value, .kol-meter meter::-webkit-meter-even-less-good-value { background-color: CanvasText; } .kol-meter meter::-moz-meter-bar { background-color: CanvasText; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794998877659"); src: url("kolicons.eot?t=1794998877659#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794998877659") format("woff2"), url("kolicons.woff?t=1794998877659") format("woff"), url("kolicons.ttf?t=1794998877659") format("truetype"), url("kolicons.svg?t=1794998877659#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-button { background-color: transparent; display: inline-block; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); margin: 0; padding: 0; text-align: center; } .kol-button__interactive-element { border-style: none; display: block; border-width: medium; font-weight: inherit; font-style: inherit; text-align: inherit; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: ""; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-form-field .kol-popover-button { display: inline; } .kol-form-field .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-form-field .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-form-field .kol-popover-button--inline { display: inline-block; } .kol-form-field .kol-popover-button--inline .kol-button, .kol-form-field .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-form-field .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-form-field .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-form-field { display: grid; } .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label { cursor: pointer; } .kol-form-field__label { display: flex; } .kol-form-field__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-form-field--required .kol-form-field__label-text:has(.kol-span__slot[hidden]) .kol-span__label::after, .kol-form-field--required:not(:has(.kol-form-field__label--legend)) .kol-form-field__input .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-input-container { background-color: transparent; display: grid; position: relative; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; grid-template-columns: 1fr; } .kol-input-container:has(> .kol-input-container__adornment--start) { grid-template-columns: auto 1fr auto; } .kol-input-container__container { position: relative; z-index: 1; } .kol-input-container__adornment { display: flex; align-items: center; } .kol-input-container__adornment .kol-icon { display: grid; place-items: center; } .kol-input { background-color: transparent; width: 100%; min-width: var(--a11y-min-size); } .kol-input { cursor: text; } .kol-input::-webkit-calendar-picker-indicator { cursor: pointer; } }'}}},[545,"kol-input-date",{_accessKey:[1,"_access-key"],_ariaDetails:[1,"_aria-details"],_autoComplete:[1,"_auto-complete"],_disabled:[4],_hideMsg:[4,"_hide-msg"],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_infoPopover:[16],_label:[1],_max:[1],_min:[1],_msg:[1],_name:[1],_on:[16],_readOnly:[4,"_read-only"],_required:[4],_shortKey:[1,"_short-key"],_smartButton:[1,"_smart-button"],_suggestions:[1],_syncValueBySelector:[1,"_sync-value-by-selector"],_step:[8],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_type:[1],_value:[1537],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],hasValue:[32],getValue:[64],focus:[64],click:[64],reset:[64]},void 0,{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_autoComplete:[{watchAutoComplete:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_max:[{watchMax:0}],_min:[{watchMin:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_readOnly:[{watchReadOnly:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_smartButton:[{watchSmartButton:0}],_suggestions:[{watchSuggestions:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_step:[{watchStep:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_type:[{watchType:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]);n([C("ctaRef")],Y.prototype,"focus",null),n([A("ctaRef")],Y.prototype,"click",null);const Z=Y,tt=function(){"undefined"!=typeof customElements&&["kol-input-date"].forEach((t=>{"kol-input-date"===t&&(customElements.get(i(t))||customElements.define(i(t),Y))}))};export{Z as KolInputDate,tt as defineCustomElement}
|