@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
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { h } from "@stencil/core";
|
|
5
5
|
import { bem } from "../../../schema/bem-registry";
|
|
6
|
-
import
|
|
6
|
+
import { BemRootNodeFC } from "../bem-root-node/component";
|
|
7
7
|
import { resolveFcProps } from "../props-from-config";
|
|
8
8
|
import { renderLabelWithLang } from "../span/component";
|
|
9
9
|
import { headingPropsConfig } from "./api";
|
|
10
|
-
const headingBem = bem.forBlock('kol-heading');
|
|
11
10
|
const headlineBem = bem.forBlock('kol-headline');
|
|
12
11
|
function getHeadlineTag(level) {
|
|
13
12
|
return level >= 1 && level <= 6 ? `h${level}` : 'strong';
|
|
@@ -16,7 +15,7 @@ export const HeadingFC = (props) => {
|
|
|
16
15
|
const { label, level, secondaryHeadline } = resolveFcProps(headingPropsConfig, props);
|
|
17
16
|
const HeadlineTag = getHeadlineTag(level);
|
|
18
17
|
if (!secondaryHeadline) {
|
|
19
|
-
return (h(
|
|
18
|
+
return (h(BemRootNodeFC, { component: HeadlineTag, block: "kol-heading", class: headlineBem({ [HeadlineTag]: true, single: true }) }, renderLabelWithLang(label), h("slot", { name: "expert", slot: "expert" })));
|
|
20
19
|
}
|
|
21
|
-
return (h("hgroup",
|
|
20
|
+
return (h(BemRootNodeFC, { component: "hgroup", block: "kol-heading", modifiers: { group: true } }, h(HeadlineTag, { class: headlineBem({ [HeadlineTag]: true, group: true, primary: true }) }, renderLabelWithLang(label), h("slot", { name: "expert", slot: "expert" })), h("p", { class: headlineBem({ group: true, secondary: true }) }, secondaryHeadline)));
|
|
22
21
|
};
|
|
@@ -5,11 +5,11 @@ import { __rest } from "tslib";
|
|
|
5
5
|
import { h } from "@stencil/core";
|
|
6
6
|
import { bem } from "../../../schema/bem-registry";
|
|
7
7
|
import clsx from "../../../utils/clsx";
|
|
8
|
+
import { BemRootNodeFC } from "../bem-root-node/component";
|
|
8
9
|
const iconBem = bem.forBlock('kol-icon');
|
|
9
|
-
const BEM_CLASS_ICON = iconBem();
|
|
10
10
|
const BEM_CLASS_ICON__ICON = iconBem('icon');
|
|
11
11
|
export const IconFC = (_a) => {
|
|
12
12
|
var { class: classNames, icons, label } = _a, htmlAttributes = __rest(_a, ["class", "icons", "label"]);
|
|
13
13
|
const hasAriaLabel = (label === null || label === void 0 ? void 0 : label.length) > 0;
|
|
14
|
-
return (h(
|
|
14
|
+
return (h(BemRootNodeFC, Object.assign({ component: "i" }, htmlAttributes, { "aria-hidden": hasAriaLabel ? undefined : 'true', "aria-label": hasAriaLabel ? label : undefined, block: "kol-icon", class: clsx(BEM_CLASS_ICON__ICON, icons, classNames), role: hasAriaLabel ? 'img' : 'presentation' })));
|
|
15
15
|
};
|
|
@@ -2,10 +2,8 @@
|
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
4
|
import { h } from "@stencil/core";
|
|
5
|
-
import {
|
|
6
|
-
const imageBem = bem.forBlock('kol-image');
|
|
7
|
-
const BEM_CLASS_IMAGE = imageBem();
|
|
5
|
+
import { BemRootNodeFC } from "../bem-root-node/component";
|
|
8
6
|
export const ImageFC = (props) => {
|
|
9
7
|
const { alt, loading, sizes, src, srcset, handleError, handleLoad } = props;
|
|
10
|
-
return (h("img",
|
|
8
|
+
return (h(BemRootNodeFC, { component: "img", block: "kol-image", alt: alt, loading: loading, sizes: sizes || undefined, src: src, srcset: srcset || undefined, onError: (e) => handleError(e), onLoad: (e) => handleLoad(e) }));
|
|
11
9
|
};
|
|
@@ -40,5 +40,5 @@ export const LinkFC = (props, children) => {
|
|
|
40
40
|
'hide-label': hideLabel === true,
|
|
41
41
|
inline: inline === true,
|
|
42
42
|
standalone: inline === false,
|
|
43
|
-
} }, h("a", Object.assign({ ref: refAnchor }, tagAttrs, { href: tagAttrs.href, accessKey: accessKey || undefined, "aria-current": ariaCurrent || undefined, "aria-controls": ariaControls || undefined, "aria-describedby": trimmedAriaDescription ? ariaDescriptionId : undefined, "aria-disabled": disabled ? 'true' : undefined, "aria-expanded": ariaExpanded === '' ? undefined : ariaExpanded, "aria-owns": ariaOwns || undefined, "aria-label": hideLabel && trimLabel(label) !== '' ? `${trimLabel(label)}${isExternal ? ` (${translateOpenLinkInTab})` : ''}` : undefined, "aria-keyshortcuts": shortKey || undefined, class: linkBem('interactive-element') }, on, { onClick: handleAnchorClick, onMouseDown: disabled ? preventFocus : undefined, role: roleValue, tabIndex: disabled ? -1 : tabIndex }), h(SpanFC, { class: "kol-link__text", badgeText: accessKey || shortKey, icons: icons, hideLabel: hideLabel, label: expertSlot ? '' : label || href }, children.length > 0 ? children : h("slot", { name: "expert", slot: "expert" })), isExternal && (h(IconFC, { class: "kol-link__icon", label: hideLabel ? '' : translateOpenLinkInTab, icons: 'kolicon-link-external', "aria-hidden": hideLabel }))), hideLabel === true && !expertSlot && (h("div", { class:
|
|
43
|
+
} }, h("a", Object.assign({ ref: refAnchor }, tagAttrs, { href: tagAttrs.href, accessKey: accessKey || undefined, "aria-current": ariaCurrent || undefined, "aria-controls": ariaControls || undefined, "aria-describedby": trimmedAriaDescription ? ariaDescriptionId : undefined, "aria-disabled": disabled ? 'true' : undefined, "aria-expanded": ariaExpanded === '' ? undefined : ariaExpanded, "aria-owns": ariaOwns || undefined, "aria-label": hideLabel && trimLabel(label) !== '' ? `${trimLabel(label)}${isExternal ? ` (${translateOpenLinkInTab})` : ''}` : undefined, "aria-keyshortcuts": shortKey || undefined, class: linkBem('interactive-element') }, on, { onClick: handleAnchorClick, onMouseDown: disabled ? preventFocus : undefined, role: roleValue, tabIndex: disabled ? -1 : tabIndex }), h(SpanFC, { class: "kol-link__text", badgeText: accessKey || shortKey, icons: icons, hideLabel: hideLabel, label: expertSlot ? '' : label || href }, children.length > 0 ? children : h("slot", { name: "expert", slot: "expert" })), isExternal && (h(IconFC, { class: "kol-link__icon", label: hideLabel ? '' : translateOpenLinkInTab, icons: 'kolicon-link-external', "aria-hidden": hideLabel }))), hideLabel === true && !expertSlot && (h("div", { class: linkBem('tooltip') }, h(TooltipFC, { badgeText: accessKey || shortKey || '', label: trimLabel(label) !== '' ? label : typeof href === 'string' ? href : '', refFloating: refTooltip }))), trimmedAriaDescription && h(AriaDescriptionSpanFC, { description: trimmedAriaDescription, descriptionId: ariaDescriptionId })));
|
|
44
44
|
};
|
|
@@ -5,6 +5,7 @@ import { h } from "@stencil/core";
|
|
|
5
5
|
import { translate } from "../../../i18n";
|
|
6
6
|
import { trimLabel } from "../../../schema";
|
|
7
7
|
import { bem } from "../../../schema/bem-registry";
|
|
8
|
+
import { BemRootNodeFC } from "../bem-root-node/component";
|
|
8
9
|
import { renderLabelWithLang } from "../span/component";
|
|
9
10
|
const meterBem = bem.forBlock('kol-meter');
|
|
10
11
|
function getMeterState(value, min, max, low, high, optimum) {
|
|
@@ -63,5 +64,5 @@ export const MeterFC = (props) => {
|
|
|
63
64
|
: translate('kol-live-value-bounded', { placeholders: { value: String(displayValue), max: String(max), unit } });
|
|
64
65
|
const staticValueWithState = hasStateClassification ? `${staticValueText} – ${stateLabel}` : staticValueText;
|
|
65
66
|
const charCount = max.toString().length > min.toString().length ? max.toString().length + 'ch' : min.toString().length + 'ch';
|
|
66
|
-
return (h(
|
|
67
|
+
return (h(BemRootNodeFC, { block: "kol-meter", modifiers: { vertical: isVertical } }, h("div", { class: meterBem('bar') }, h("div", { class: meterBem('bar-label') }, renderLabelWithLang(label), hasStateClassification && (h("span", { class: meterBem('bar-state', { [state]: true }) }, ' – ', stateLabel))), h("div", { class: meterBem('bar-track') }, h("meter", { "aria-label": trimLabel(label), "aria-valuetext": staticValueWithState || undefined, high: high, low: low, max: max, min: min, optimum: optimum, value: hasValue ? value : undefined })), h("span", { class: meterBem('value-unit') }, h("span", { class: meterBem('value'), style: { 'min-width': charCount } }, displayValue), h("span", { class: meterBem('unit') }, unit)))));
|
|
67
68
|
};
|
|
@@ -131,14 +131,14 @@ export const createPaginationItem = (options) => {
|
|
|
131
131
|
applyCustomClass: (value) => customClassProp.apply(value, (v) => store.set('customClass', v)),
|
|
132
132
|
applyHasButtons: (value) => paginationHasButtonsProp.apply(value, (v) => store.set('hasButtons', Object.assign(Object.assign({}, store.get('hasButtons')), v))),
|
|
133
133
|
applyLabel: (value, required) => applyLabel(value, false, required),
|
|
134
|
-
applyMax: (value) => {
|
|
135
|
-
if (value === undefined || value === null) {
|
|
134
|
+
applyMax: (value, required) => {
|
|
135
|
+
if ((value === undefined || value === null) && !required) {
|
|
136
136
|
return;
|
|
137
137
|
}
|
|
138
138
|
paginationMaxProp.apply(value, (max) => {
|
|
139
139
|
store.set('max', max);
|
|
140
140
|
syncPage(store.get('page'), store.get('pageSize'), max);
|
|
141
|
-
});
|
|
141
|
+
}, required);
|
|
142
142
|
},
|
|
143
143
|
applyOn: (value) => paginationCallbacksProp.apply(value, (v) => store.set('on', v)),
|
|
144
144
|
applyPage: (value) => {
|
|
@@ -165,19 +165,19 @@ export const createPaginationItem = (options) => {
|
|
|
165
165
|
}),
|
|
166
166
|
applySiblingCount: (value) => siblingCountProp.apply(value, (v) => store.set('siblingCount', v)),
|
|
167
167
|
applyTooltipAlign: (value) => tooltipAlignProp.apply(value !== null && value !== void 0 ? value : 'top', (v) => store.set('tooltipAlign', v)),
|
|
168
|
-
load: (input) => {
|
|
168
|
+
load: (input, required) => {
|
|
169
169
|
applied = Object.assign({}, input);
|
|
170
170
|
item.applyBoundaryCount(input.boundaryCount);
|
|
171
171
|
item.applyCustomClass(input.customClass);
|
|
172
172
|
item.applyHasButtons(input.hasButtons);
|
|
173
|
-
applyLabel(input.label, true);
|
|
173
|
+
applyLabel(input.label, true, required === null || required === void 0 ? void 0 : required.label);
|
|
174
174
|
item.applyOn(input.on);
|
|
175
175
|
item.applyPage(input.page);
|
|
176
176
|
item.applyPageSize(input.pageSize);
|
|
177
177
|
item.applyPageSizeOptions(input.pageSizeOptions);
|
|
178
178
|
item.applySiblingCount(input.siblingCount);
|
|
179
179
|
item.applyTooltipAlign(input.tooltipAlign);
|
|
180
|
-
item.applyMax(input.max);
|
|
180
|
+
item.applyMax(input.max, required === null || required === void 0 ? void 0 : required.max);
|
|
181
181
|
item.applyPage(input.page);
|
|
182
182
|
},
|
|
183
183
|
update: (input) => {
|
|
@@ -5,6 +5,7 @@ import { h } from "@stencil/core";
|
|
|
5
5
|
import { translate } from "../../../i18n";
|
|
6
6
|
import { trimLabel } from "../../../schema";
|
|
7
7
|
import { bem } from "../../../schema/bem-registry";
|
|
8
|
+
import { BemRootNodeFC } from "../bem-root-node/component";
|
|
8
9
|
import { resolveFcProps } from "../props-from-config";
|
|
9
10
|
import { renderLabelWithLang } from "../span/component";
|
|
10
11
|
import { progressPropsConfig } from "./api";
|
|
@@ -34,5 +35,5 @@ export const ProgressFC = (props) => {
|
|
|
34
35
|
const liveValueText = isPercentage
|
|
35
36
|
? translate('kol-live-value', { placeholders: { value: String(liveProgressValue), unit } })
|
|
36
37
|
: translate('kol-live-value-bounded', { placeholders: { value: String(liveProgressValue), max: String(max), unit } });
|
|
37
|
-
return (h(
|
|
38
|
+
return (h(BemRootNodeFC, { block: "kol-progress" }, h("div", { "aria-hidden": "true", class: progressBem(variant === 'cycle' ? 'cycle' : 'bar') }, variant === 'bar' && label && h("div", { class: progressBem('bar-label') }, renderLabelWithLang(label)), createProgressSVG(variant, max, value), variant === 'cycle' && (h("div", { class: progressBem('cycle-text') }, label && h("div", { class: progressBem('cycle-label') }, renderLabelWithLang(label)), h("div", { class: progressBem('cycle-value') }, `${displayValue} ${unit}`))), variant === 'bar' && (h("div", { class: progressBem('bar-value'), style: { width: valueColumnWidth } }, displayValue)), variant === 'bar' && h("div", { class: progressBem('bar-unit') }, unit)), h("progress", { "aria-busy": value < max ? 'true' : 'false', "aria-label": trimLabel(label) || translate('kol-progress'), class: "visually-hidden", max: max, value: value }), h("span", { "aria-live": "polite", "aria-relevant": "removals text", class: "visually-hidden" }, liveValueText)));
|
|
38
39
|
};
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import { h } from "@stencil/core";
|
|
5
5
|
import { KolLinkTag } from "../../../core/component-names";
|
|
6
6
|
import { bem } from "../../../schema/bem-registry";
|
|
7
|
+
import { BemRootNodeFC } from "../bem-root-node/component";
|
|
7
8
|
import { resolveFcProps } from "../props-from-config";
|
|
8
9
|
import { quotePropsConfig } from "./api";
|
|
9
10
|
const quoteBem = bem.forBlock('kol-quote');
|
|
@@ -14,6 +15,5 @@ const BEM_CLASS_QUOTE__QUOTE = quoteBem('quote');
|
|
|
14
15
|
export const QuoteFC = (props) => {
|
|
15
16
|
const { href, label, quote, variant } = resolveFcProps(quotePropsConfig, props);
|
|
16
17
|
const hasExpertSlot = quote === '';
|
|
17
|
-
|
|
18
|
-
return (h("figure", { class: BEM_CLASS_ROOT }, variant === 'block' ? (h("blockquote", { class: BEM_CLASS_QUOTE__BLOCKQUOTE, cite: href }, quote, h("span", { "aria-hidden": !hasExpertSlot ? 'true' : undefined, hidden: !hasExpertSlot }, h("slot", { name: "expert" })))) : (h("q", { class: BEM_CLASS_QUOTE__QUOTE, cite: href }, quote, h("span", { "aria-hidden": !hasExpertSlot ? 'true' : undefined, hidden: !hasExpertSlot }, h("slot", { name: "expert" })))), !!label && (h("figcaption", { class: BEM_CLASS_QUOTE__FIGCAPTION }, h("cite", { class: BEM_CLASS_QUOTE__CITE }, h(KolLinkTag, { _href: href, _label: label, _target: "_blank" }))))));
|
|
18
|
+
return (h(BemRootNodeFC, { component: "figure", block: "kol-quote", modifiers: { [variant]: true } }, variant === 'block' ? (h("blockquote", { class: BEM_CLASS_QUOTE__BLOCKQUOTE, cite: href }, quote, h("span", { "aria-hidden": !hasExpertSlot ? 'true' : undefined, hidden: !hasExpertSlot }, h("slot", { name: "expert" })))) : (h("q", { class: BEM_CLASS_QUOTE__QUOTE, cite: href }, quote, h("span", { "aria-hidden": !hasExpertSlot ? 'true' : undefined, hidden: !hasExpertSlot }, h("slot", { name: "expert" })))), !!label && (h("figcaption", { class: BEM_CLASS_QUOTE__FIGCAPTION }, h("cite", { class: BEM_CLASS_QUOTE__CITE }, h(KolLinkTag, { _href: href, _label: label, _target: "_blank" }))))));
|
|
19
19
|
};
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { h } from "@stencil/core";
|
|
5
5
|
import { bem } from "../../../schema/bem-registry";
|
|
6
|
+
import { BemRootNodeFC } from "../bem-root-node/component";
|
|
6
7
|
import { LinkFC } from "../link/component";
|
|
7
8
|
const skipNavBem = bem.forBlock('kol-skip-nav');
|
|
8
|
-
const BEM_CLASS_SKIP_NAV = skipNavBem();
|
|
9
9
|
const BEM_CLASS_SKIP_NAV__LIST = skipNavBem('list');
|
|
10
10
|
const BEM_CLASS_SKIP_NAV__LIST_ITEM = skipNavBem('list-item');
|
|
11
11
|
export const SkipNavFC = ({ label, linkItems }) => {
|
|
12
|
-
return (h("nav",
|
|
12
|
+
return (h(BemRootNodeFC, { component: "nav", block: "kol-skip-nav", "aria-label": label }, h("ul", { class: BEM_CLASS_SKIP_NAV__LIST }, linkItems.map((item, index) => (h("li", { class: BEM_CLASS_SKIP_NAV__LIST_ITEM, key: index }, h(LinkFC, Object.assign({}, item.fcProps))))))));
|
|
13
13
|
};
|
|
@@ -8,6 +8,7 @@ import { showExpertSlot } from "../../../schema";
|
|
|
8
8
|
import { bem } from "../../../schema/bem-registry";
|
|
9
9
|
import clsx from "../../../utils/clsx";
|
|
10
10
|
import { md } from "../../../utils/markdown";
|
|
11
|
+
import { BemRootNodeFC } from "../bem-root-node/component";
|
|
11
12
|
import { IconFC } from "../icon/component";
|
|
12
13
|
const spanBem = bem.forBlock('kol-span');
|
|
13
14
|
function isCustomIcon(icon) {
|
|
@@ -85,8 +86,8 @@ export const SpanFC = (props, children) => {
|
|
|
85
86
|
return h(IconFC, { class: spanBem('icon', { [position]: true }), icons: iconProps.icon, label: (_a = iconProps.label) !== null && _a !== void 0 ? _a : '', style: iconProps.style });
|
|
86
87
|
};
|
|
87
88
|
const hideExpertSlot = !showExpertSlot(label);
|
|
88
|
-
return (h(
|
|
89
|
+
return (h(BemRootNodeFC, Object.assign({ component: "span" }, htmlAttributes, { block: "kol-span", modifiers: {
|
|
89
90
|
'has-badge': !!badgeText,
|
|
90
91
|
'hide-label': !!hideLabel,
|
|
91
|
-
}
|
|
92
|
+
}, class: classNames }), renderIcon(top, 'top'), h("span", { class: spanBem('container') }, renderIcon(left, 'left'), hideExpertSlot && renderLabel(label, hideLabel, allowMarkdown, badgeText), h("span", { "aria-hidden": hideExpertSlot ? 'true' : undefined, class: spanBem('slot'), hidden: hideExpertSlot }, children), isString(badgeText) && badgeText.length > 0 && (h("kbd", { "aria-hidden": "true", class: "badge-text-hint" }, badgeText)), renderIcon(right, 'right')), renderIcon(bottom, 'bottom')));
|
|
92
93
|
};
|
|
@@ -14,6 +14,14 @@ import { createButtonItem } from "../button/item";
|
|
|
14
14
|
import { createDialogItem, DialogItemFC } from "../dialog/item";
|
|
15
15
|
import { createItemPool } from "../item-pool";
|
|
16
16
|
const BEM_CLASS_TABLE__SETTINGS = bem.forBlock('kol-table')('settings');
|
|
17
|
+
const tableSettingsBem = bem.forBlock('kol-table-settings');
|
|
18
|
+
const BEM_CLASS_TABLE_SETTINGS = tableSettingsBem();
|
|
19
|
+
const BEM_CLASS_TABLE_SETTINGS__ACTIONS = tableSettingsBem('actions');
|
|
20
|
+
const BEM_CLASS_TABLE_SETTINGS__COLUMN = tableSettingsBem('column');
|
|
21
|
+
const BEM_CLASS_TABLE_SETTINGS__COLUMN_LABEL = tableSettingsBem('column-label');
|
|
22
|
+
const BEM_CLASS_TABLE_SETTINGS__COLUMNS = tableSettingsBem('columns');
|
|
23
|
+
const BEM_CLASS_TABLE_SETTINGS__CONTENT = tableSettingsBem('content');
|
|
24
|
+
const BEM_CLASS_TABLE_SETTINGS__ERROR_MESSAGE = tableSettingsBem('error-message');
|
|
17
25
|
const parseColumnWidth = (width) => {
|
|
18
26
|
return Number.isFinite(width) && width !== undefined && width > 0 ? width : undefined;
|
|
19
27
|
};
|
|
@@ -119,9 +127,9 @@ export const createTableSettings = (getHost, requestTableRender) => {
|
|
|
119
127
|
rootElement = element;
|
|
120
128
|
}
|
|
121
129
|
};
|
|
122
|
-
const renderColumn = (column, index, columns) => (h("div", { key: column.key, class:
|
|
130
|
+
const renderColumn = (column, index, columns) => (h("div", { key: column.key, class: BEM_CLASS_TABLE_SETTINGS__COLUMN }, h(KolInputCheckboxTag, { _checked: column.visible !== false, _label: column.hidable
|
|
123
131
|
? translate('kol-table-settings-column-hidable', { placeholders: { column: column.label } })
|
|
124
|
-
: translate('kol-table-settings-column-not-hidable', { placeholders: { column: column.label } }), _value: true, _hideLabel: true, _disabled: column.hidable === false, _on: { onInput: (_, value) => { var _a; return handleVisibilityChange((_a = column.key) !== null && _a !== void 0 ? _a : '', value); } } }), h("span", { class:
|
|
132
|
+
: translate('kol-table-settings-column-not-hidable', { placeholders: { column: column.label } }), _value: true, _hideLabel: true, _disabled: column.hidable === false, _on: { onInput: (_, value) => { var _a; return handleVisibilityChange((_a = column.key) !== null && _a !== void 0 ? _a : '', value); } } }), h("span", { class: BEM_CLASS_TABLE_SETTINGS__COLUMN_LABEL }, column.label), h(KolInputNumberTag, { _hideLabel: true, _value: parseColumnWidth(column.width), _label: translate('kol-table-settings-column-width', { placeholders: { column: column.label } }), _min: 1, _disabled: column.resizable === false, _on: { onInput: (_, value) => { var _a; return handleWidthChange((_a = column.key) !== null && _a !== void 0 ? _a : '', value); } } }), h(ButtonFC, Object.assign({}, buttons.get(`move-up-${column.key}`).getFcProps({
|
|
125
133
|
_icons: 'kolicon-chevron-up',
|
|
126
134
|
_label: column.sortable === false || index === 0
|
|
127
135
|
? translate('kol-table-settings-not-move', { placeholders: { column: column.label } })
|
|
@@ -152,12 +160,12 @@ export const createTableSettings = (getHost, requestTableRender) => {
|
|
|
152
160
|
applyHeaderCells(horizontalHeaderCells);
|
|
153
161
|
}
|
|
154
162
|
const columns = getPrimaryRow();
|
|
155
|
-
return (h("div", { class: BEM_CLASS_TABLE__SETTINGS, ref: refRoot }, h("div", { class:
|
|
163
|
+
return (h("div", { class: BEM_CLASS_TABLE__SETTINGS, ref: refRoot }, h("div", { class: BEM_CLASS_TABLE_SETTINGS }, h(ButtonFC, Object.assign({}, buttons.get('toggle').getFcProps({
|
|
156
164
|
_icons: 'kolicon-settings',
|
|
157
165
|
_label: translateTableSettings,
|
|
158
166
|
_hideLabel: true,
|
|
159
167
|
_on: { onClick: () => dialog.show(true) },
|
|
160
|
-
})))), h(DialogItemFC, Object.assign({}, dialog.getFcProps({ label: translateTableSettings, variant: 'card', width: 'fit-content' })), h("div", { class:
|
|
168
|
+
})))), h(DialogItemFC, Object.assign({}, dialog.getFcProps({ label: translateTableSettings, variant: 'card', width: 'fit-content' })), h("div", { class: BEM_CLASS_TABLE_SETTINGS__CONTENT }, errorMessage && (h("div", { class: BEM_CLASS_TABLE_SETTINGS__ERROR_MESSAGE }, h(AlertFC, { alert: false, closerAriaDescriptionId: alertCloserAriaDescriptionId, handleCloserClick: NOOP, hasCloser: false, headingId: alertHeadingId, label: errorMessage, level: 0, refCloserButton: NOOP, refCloserTooltip: NOOP, type: "error", variant: "msg" }))), h("form", { onSubmit: handleSubmit }, h("div", { class: BEM_CLASS_TABLE_SETTINGS__COLUMNS }, columns.map((column, index) => renderColumn(column, index, columns))), h("div", { class: BEM_CLASS_TABLE_SETTINGS__ACTIONS }, h(ButtonFC, Object.assign({}, buttons.get('cancel').getFcProps({
|
|
161
169
|
_label: translateTableSettingsCancel,
|
|
162
170
|
_variant: 'secondary',
|
|
163
171
|
_on: { onClick: () => handleCancel() },
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { h } from "@stencil/core";
|
|
5
5
|
import { bem } from "../../../schema/bem-registry";
|
|
6
|
+
import { BemRootNodeFC } from "../bem-root-node/component";
|
|
6
7
|
const treeBem = bem.forBlock('kol-tree');
|
|
7
|
-
const BEM_CLASS_TREE = treeBem();
|
|
8
8
|
const BEM_CLASS_TREE__TREEVIEW_NAVIGATION = treeBem('treeview-navigation');
|
|
9
|
-
export const TreeFC = ({ handleSlotchange, label }) => (h("nav",
|
|
9
|
+
export const TreeFC = ({ handleSlotchange, label }) => (h(BemRootNodeFC, { component: "nav", block: "kol-tree", "aria-label": label }, h("ul", { class: BEM_CLASS_TREE__TREEVIEW_NAVIGATION, role: "tree", "aria-label": label }, h("slot", { onSlotchange: handleSlotchange }))));
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { h } from "@stencil/core";
|
|
5
5
|
import { bem } from "../../../schema/bem-registry";
|
|
6
|
+
import { BemRootNodeFC } from "../bem-root-node/component";
|
|
6
7
|
import { IconFC } from "../icon/component";
|
|
7
8
|
import { linkPropsConfig } from "../link/api";
|
|
8
9
|
import { LinkFC } from "../link/component";
|
|
9
10
|
import { buildDefaultPropsFromConfig } from "../props-from-config";
|
|
10
11
|
import { renderLabelWithLang } from "../span/component";
|
|
11
12
|
const treeItemBem = bem.forBlock('kol-tree-item');
|
|
12
|
-
const BEM_CLASS_TREE_ITEM = treeItemBem();
|
|
13
13
|
const BEM_CLASS_TREE_ITEM__CHILDREN = treeItemBem('children');
|
|
14
14
|
const BEM_CLASS_TREE_ITEM__LINK_INNER = treeItemBem('link-inner');
|
|
15
15
|
const BEM_CLASS_TREE_ITEM__TEXT = treeItemBem('text');
|
|
@@ -18,4 +18,4 @@ const BEM_CLASS_TREE_ITEM__TOGGLE_BUTTON_ICON = treeItemBem('toggle-button-icon'
|
|
|
18
18
|
const BEM_CLASS_TREE_ITEM__TOGGLE_BUTTON_PLACEHOLDER = treeItemBem('toggle-button-placeholder');
|
|
19
19
|
const LINK_DEFAULTS = Object.freeze(buildDefaultPropsFromConfig(linkPropsConfig));
|
|
20
20
|
const noop = () => undefined;
|
|
21
|
-
export const TreeItemFC = ({ active, ariaCurrent, groupId, handleAnchorClick, handleSlotchange, handleToggleClick, hasChildren, href, label, level, open, refAnchor, }) => (h("li",
|
|
21
|
+
export const TreeItemFC = ({ active, ariaCurrent, groupId, handleAnchorClick, handleSlotchange, handleToggleClick, hasChildren, href, label, level, open, refAnchor, }) => (h(BemRootNodeFC, { component: "li", block: "kol-tree-item", role: "none", style: { '--level': `${level}` } }, h("span", { class: treeItemBem('link', { active, 'first-level': level === 0 }) }, h(LinkFC, Object.assign({}, LINK_DEFAULTS, { ariaCurrent: ariaCurrent, ariaDescriptionId: "", ariaExpanded: hasChildren ? (open ? 'true' : 'false') : '', ariaOwns: hasChildren ? groupId : '', expertSlot: true, handleAnchorClick: handleAnchorClick, href: href, label: "", refAnchor: refAnchor, refTooltip: noop, role: "treeitem", tabIndex: active ? 0 : -1 }), h("span", { class: BEM_CLASS_TREE_ITEM__LINK_INNER }, hasChildren ? (h("span", { class: BEM_CLASS_TREE_ITEM__TOGGLE_BUTTON, onClick: handleToggleClick }, h(IconFC, { class: BEM_CLASS_TREE_ITEM__TOGGLE_BUTTON_ICON, icons: `kolicon kolicon-${open ? 'chevron-down' : 'chevron-right'}`, label: '' }))) : (h("span", { class: BEM_CLASS_TREE_ITEM__TOGGLE_BUTTON_PLACEHOLDER })), h("span", { class: BEM_CLASS_TREE_ITEM__TEXT }, renderLabelWithLang(label))))), h("ul", { class: BEM_CLASS_TREE_ITEM__CHILDREN, hidden: !hasChildren || !open, role: "group", id: groupId }, h("slot", { onSlotchange: handleSlotchange }))));
|
|
@@ -169,6 +169,9 @@ const BEM = {
|
|
|
169
169
|
},
|
|
170
170
|
modifiers: null,
|
|
171
171
|
},
|
|
172
|
+
'kol-close-button': {
|
|
173
|
+
modifiers: null,
|
|
174
|
+
},
|
|
172
175
|
'kol-span': {
|
|
173
176
|
elements: {
|
|
174
177
|
container: { modifiers: null },
|
|
@@ -183,6 +186,7 @@ const BEM = {
|
|
|
183
186
|
'interactive-element': { modifiers: null },
|
|
184
187
|
icon: { modifiers: null },
|
|
185
188
|
text: { modifiers: null },
|
|
189
|
+
tooltip: { modifiers: null },
|
|
186
190
|
},
|
|
187
191
|
modifiers: new Set(['disabled', 'external-link', 'hide-label', 'inline', 'standalone']),
|
|
188
192
|
},
|
|
@@ -443,6 +447,24 @@ const BEM = {
|
|
|
443
447
|
},
|
|
444
448
|
modifiers: null,
|
|
445
449
|
},
|
|
450
|
+
'kol-table-settings': {
|
|
451
|
+
elements: {
|
|
452
|
+
actions: { modifiers: null },
|
|
453
|
+
column: { modifiers: null },
|
|
454
|
+
'column-label': { modifiers: null },
|
|
455
|
+
columns: { modifiers: null },
|
|
456
|
+
content: { modifiers: null },
|
|
457
|
+
'error-message': { modifiers: null },
|
|
458
|
+
},
|
|
459
|
+
modifiers: null,
|
|
460
|
+
},
|
|
461
|
+
'kol-table-stateful': {
|
|
462
|
+
elements: {
|
|
463
|
+
pagination: { modifiers: new Set(['both', 'bottom', 'top']) },
|
|
464
|
+
'pagination-wrapper': { modifiers: null },
|
|
465
|
+
},
|
|
466
|
+
modifiers: null,
|
|
467
|
+
},
|
|
446
468
|
'kol-tabs': {
|
|
447
469
|
elements: {
|
|
448
470
|
'button-create': { modifiers: null },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{a as e}from"./tslib.es6.js";import{h as
|
|
4
|
+
import{a as e}from"./tslib.es6.js";import{h as s}from"@stencil/core/internal/client";import{e as l}from"./props-from-config.js";const r=1;function a(e){return function(e){return e>=r&&e<=6}(e)?`h${e}`:"strong"}const o=(o,n)=>{var{class:c,level:t=r}=o,i=e(o,["class","level"]);const d=a(t);return s(d,Object.assign({class:l("kol-headline",`kol-headline--${d}`,c)},i),n)},n=(r,a)=>{var{class:o}=r,n=e(r,["class"]);return s("p",Object.assign({class:l("kol-headline kol-headline--group kol-headline--secondary",o)},n),a)},c=(a,c)=>{var{secondaryHeadline:t,level:i=r,class:d,HeadingGroupProps:p={},SecondaryHeadlineProps:u={}}=a,g=e(a,["secondaryHeadline","level","class","HeadingGroupProps","SecondaryHeadlineProps"]);const h=Object.assign({level:i},g);if(!t)return s(o,Object.assign({class:l(d,"kol-headline--single")},h),c);const{class:j}=p,b=e(p,["class"]),k=Object.assign({class:l("kol-heading-group",j)},b);return s("hgroup",Object.assign({},k),s(o,Object.assign({class:l(d,"kol-headline--group","kol-headline--primary")},h),c),s(n,Object.assign({},u),t))};export{c as K,a as g}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{p as e,k as i,H as t,b as o}from"./bem-registry.js";import{d as s}from"./disabled.js";import{h as l,e as r,j as a}from"./component3.js";import{c as n,b as d,n as h,a as c,t as p}from"./props-from-config.js";import{l as u}from"./label-with-expert-slot.js";import{n as m}from"./component9.js";import{a as v}from"./tslib.es6.js";import{S as b,b as f,s as g}from"./component7.js";import{r as y}from"./aria-labelledby.js";import{a as j,c as _,n as B}from"./dev.utils.js";import{K as L,d as O}from"./events.js";import{B as T}from"./base-web-component.js";import{c as F}from"./item.js";import{F as N}from"./behavior3.js";import{c as x}from"./item2.js";import{T as K}from"./behavior.js";import{h as k}from"@stencil/core/internal/client";import{t as w}from"./i18n.js";import{c as A}from"./clsx.js";import{B as P}from"./component.js";import{T as C}from"./component10.js";import{P as D}from"./behavior4.js";import{A as H}from"./component2.js";function I(e,i){return Boolean(e)&&!0===i}function M(e){var i;return"string"==typeof e?"error":null!==(i=null==e?void 0:e._type)&&void 0!==i?i:"error"}const S=n("ariaDetails","",d),q=n("hideMsg",!1,h),E=n("hint","",d),$=n("infoPopover",void 0,(function(e){if("object"==typeof e&&null!==e)return e;throw new Error("Invalid info popover: "+typeof e)})),z=c(),R=n("msg",void 0,(function(i){if("string"==typeof i)try{return e(i)}catch(e){return i}return i}),(function(e){return void 0===e||("string"==typeof e?e.length>0:i(e)&&t(e._description,1))})),V=n("touched",!1,h),G={required:[u],optional:[S,s,l,q,E,$,z,R,m,r,V]},J=e=>{var{id:i,class:t,hint:o,baseClassName:s="kol-form-field"}=e,l=v(e,["id","class","hint","baseClassName"]);return o?k("span",Object.assign({class:A(`${s}__hint`,t),id:j(i||"","hint")},l),o):null},Q=e=>{var{component:i="label",id:t,baseClassName:o="kol-form-field",class:s,accessKey:l,shortKey:r,label:a,hideLabel:n,hasExpertSlot:d,omitId:h,showBadge:c=!0,readOnly:p,infoPopover:u}=e,m=v(e,["component","id","baseClassName","class","accessKey","shortKey","label","hideLabel","hasExpertSlot","omitId","showBadge","readOnly","infoPopover"]);const g=!d&&n,y=!1===c?void 0:f(l,r);return k(i,Object.assign({},m,{class:A(`${o}__label`,s),id:g||h?void 0:j(t,"label"),hidden:g,htmlFor:"legend"===i?void 0:t}),k(b,{class:`${o}__label-text`,label:d?"":null!=a?a:"",badgeText:y},k("slot",{name:"expert"})),!d&&p&&k("span",{class:`${o}__label__read-only`,"aria-hidden":"true"},"(",w("kol-readonly"),")"),!d&&u&&k("span",null,k(D,Object.assign({},u.popoverButton),k("div",{class:"kol-popover-button__popover--styled"},u.content))))},U=i=>{var t,o,{alert:s,hideMsg:l,msg:r,id:a,class:n}=i,d=v(i,["alert","hideMsg","msg","id","class"]);const h=function(i){if("string"==typeof i)try{return e(i)}catch(e){return{_description:i,_type:"error"}}return i&&"object"==typeof i&&!("_type"in i)?Object.assign(Object.assign({},i),{_type:"error"}):i}(r);return k(H,Object.assign({alert:!l&&(null!==(t=null==h?void 0:h._alert)&&void 0!==t?t:!0===s),class:A("kol-form-field__msg",l&&"visually-hidden",n),closerAriaDescriptionId:B(),handleCloserClick:()=>{},hasCloser:!1,headingId:_("alert-heading"),id:j(a,"msg"),label:"",level:0,refCloserButton:()=>{},refCloserTooltip:()=>{},type:null!==(o=null==h?void 0:h._type)&&void 0!==o?o:"error",variant:"msg"},d),(null==h?void 0:h._description)||void 0)},W=o.forBlock("kol-form-field"),X=({hideLabel:e,label:i,renderNoTooltip:t})=>!t&&!g(i)&&!0===e,Y=e=>{const i=M(e);return{[i]:!0,[`msg-type-${i}`]:!0}},Z=(e,i)=>{const{renderNoLabel:t,renderNoTooltip:o,renderNoHint:s,id:l,required:r,alert:n,disabled:d,class:h,msg:c,hideMsg:p,hideLabel:u,label:m,infoPopover:b,hint:y,accessKey:_,shortKey:B,counter:L,readOnly:O,touched:T,maxLength:F,ariaDescribedBy:N,showBadge:x,tooltipAlign:K,variant:D,component:H="div",orientation:M,refInput:S,refTooltip:q}=e,E=v(e,["renderNoLabel","renderNoTooltip","renderNoHint","id","required","alert","disabled","class","msg","hideMsg","hideLabel","label","infoPopover","hint","accessKey","shortKey","counter","readOnly","touched","maxLength","ariaDescribedBy","showBadge","tooltipAlign","variant","component","orientation","refInput","refTooltip"]),$=g(m),z=I(c,T),R=f(_,B),V=X({hideLabel:u,label:m,renderNoTooltip:o}),G="fieldset"===H;return k(P,Object.assign({component:H,block:"kol-form-field",modifiers:Object.assign({disabled:Boolean(d),required:Boolean(r),touched:Boolean(T),"hide-label":Boolean(u),"read-only":Boolean(O),"hidden-msg":Boolean(p)},z?Y(c):{}),class:A(D&&a(D,"form-field"),h),disabled:!(!G||!d)||void 0,"aria-describedby":N},E),!t&&k(Q,{component:G?"legend":"label",class:G?"kol-form-field__label--legend":void 0,id:l,hasExpertSlot:$,hideLabel:u,label:m,accessKey:_,shortKey:B,readOnly:O,showBadge:x,infoPopover:b}),k("div",{class:W("input",{"orientation-horizontal":"horizontal"===M,"orientation-vertical":"vertical"===M}),ref:S},i,V&&k("div",{class:W("tooltip")},k(C,{badgeText:R||"",label:m,align:K,id:j(l,"label"),refFloating:q}))),L&&!("soft"===L.maxLengthBehavior&&"number"!=typeof L.maxLength)&&k("div",{class:W("counter")},k("span",{"aria-hidden":"true",class:W("counter"),ref:L.visualRef}),k("span",{"aria-live":"polite",class:"visually-hidden",id:j(l,"counter"),ref:L.ariaRef})),z&&k(U,{id:l,alert:n,hideMsg:p,msg:c}),!s&&k(J,{id:l,hint:y}),"number"==typeof F&&!L&&k("span",{id:j(l,"character-limit-hint"),class:"visually-hidden"},w("kol-character-limit-hint",{placeholders:{limit:String(F)}})))};function ee({ariaDescribedBy:e,hideLabel:i,label:t}){return{title:"",autoCapitalize:"off",autoCorrect:"off","aria-describedby":(null==e?void 0:e.length)?e.join(" "):void 0,"aria-label":i&&t?p(t):void 0}}const ie=class extends T{constructor(){super(...arguments),this.tooltipBehavior=new K(T.stateLess),this.smartButton=F((()=>this.host)),this.infoPopover=x({getFlagHost:()=>this.host,getOpen:()=>!0===this.infoPopoverOpen,setOpen:e=>{this.infoPopoverOpen=e}}),this.focusEventSent=!1,this.handleChange=(e,i)=>{var t,o;e.stopPropagation(),void 0===i&&(i=e.target.value),this.emit(L.change,i),null===(o=null===(t=this._on)||void 0===t?void 0:t.onChange)||void 0===o||o.call(t,e,i)},this.handleInput=(e,i)=>{var t,o;e.stopPropagation(),void 0===i&&(i=e.target.value),this.emit(L.input,i),this.formAssociation.setFormAssociatedValue(i),null===(o=null===(t=this._on)||void 0===t?void 0:t.onInput)||void 0===o||o.call(t,e,i)},this.handleClick=e=>{var i,t;this.emit(L.click),null===(t=null===(i=this._on)||void 0===i?void 0:i.onClick)||void 0===t||t.call(i,e)},this.handleFocus=e=>{var i,t;this.focusEventSent||(this.emit(L.focus),null===(t=null===(i=this._on)||void 0===i?void 0:i.onFocus)||void 0===t||t.call(i,e),this.focusEventSent=!0),this.shared.setState("inputHasFocus",!0)},this.handleBlur=e=>{this.handleFocusLeave(e),this.shared.setState("inputHasFocus",!1)},this.handleKeyDown=e=>{var i,t;this.emit(L.keydown),null===(t=null===(i=this._on)||void 0===i?void 0:i.onKeyDown)||void 0===t||t.call(i,e)},this.setInputRef=e=>{this.tooltipAnchor=e,e&&this.isTooltipShown()&&(this.tooltipBehavior.initContext(e),this.tooltipBehavior.syncListeners(void 0,e,!0))},this.setTooltipRef=e=>{this.tooltipBehavior.setTooltipElementRef(e)}}get shared(){return this}initFormAssociation(e,i){this.formAssociation=new N(T.stateLess,{host:this.host,type:e,name:i})}syncFormField(){this.smartButton.syncListeners(),this.infoPopover.syncListeners(),this.syncAriaDetails()}destroyFormField(){this.tooltipBehavior.destroy(),this.smartButton.destroy(),this.infoPopover.destroy()}connectedCallback(){this.syncFormField(),this.tooltipAnchor&&this.isTooltipShown()&&(this.tooltipBehavior.initContext(this.tooltipAnchor),this.tooltipBehavior.syncListeners(void 0,this.tooltipAnchor,!0))}getInfoPopover(){const e=this.shared.getRenderProp("infoPopover");if(!e)return;const{_content:i}=e,t=v(e,["_content"]);return{popoverButton:this.infoPopover.getFcProps(Object.assign(Object.assign({_variant:"ghost"},t),{_hideLabel:!0,_inline:!0})),content:i}}getSmartButtonFcProps(e,i){if("object"==typeof e&&null!==e)return this.smartButton.getFcProps(Object.assign({_hideLabel:!0,_disabled:i},e),{class:"kol-input-container__smart-button"})}applyAriaDetails(e){S.apply(e,(e=>this.shared.setRenderProp("ariaDetails",e))),this.syncAriaDetails()}syncAriaDetails(){var e,i,t,o;const s=null===(i=null===(e=this.host)||void 0===e?void 0:e.shadowRoot)||void 0===i?void 0:i.querySelector("input, select, textarea");if(!s||!("ariaDetailsElements"in s))return;const l=y(this.host,this.shared.getRenderProp("ariaDetails")),r=this.pushedDetailsElements;(s!==this.ariaDetailsTarget||(null!==(t=null==r?void 0:r.length)&&void 0!==t?t:0)!==l.length||null!==(o=null==r?void 0:r.some(((e,i)=>e!==l[i])))&&void 0!==o&&o)&&(this.ariaDetailsTarget=s,this.pushedDetailsElements=l,s.ariaDetailsElements=l.length?l:null)}applyDisabled(e){s.apply(e,(e=>this.shared.setRenderProp("disabled",e)))}applyHideLabel(e){l.apply(e,(e=>this.shared.setRenderProp("hideLabel",e)))}applyHideMsg(e){q.apply(e,(e=>this.shared.setRenderProp("hideMsg",e)))}applyHint(e){E.apply(e,(e=>this.shared.setRenderProp("hint",e)))}applyInfoPopover(e){$.apply(e,(e=>this.shared.setRenderProp("infoPopover",e)))}applyLabel(e){u.apply(e,(e=>this.shared.setRenderProp("label",e)),this.isRequired("label"))}applyMsg(e){R.apply(e,(e=>this.shared.setRenderProp("msg",e)))}applyName(e){m.apply(e,(e=>this.shared.setRenderProp("name",e))),this.formAssociation.watchName(e)}applyOn(e){z.apply(e,(e=>this.shared.setRenderProp("on",e)))}applySyncValueBySelector(e){this.formAssociation.watchSyncValueBySelector(e)}applyTooltipAlign(e){r.apply(null!=e?e:"top",(e=>this.shared.setRenderProp("tooltipAlign",e)))}applyTouched(e){V.apply(e,(e=>this.shared.setRenderProp("touched",e)))}get eventHost(){var e,i;return null!==(i=null===(e=this.formAssociation)||void 0===e?void 0:e.host)&&void 0!==i?i:this.host}emit(e,i){this.eventHost&&O(this.eventHost,e,i)}handleFocusLeave(e){var i,t;if(this._disabled)return;const o=this.eventHost,s=(null==o?void 0:o.shadowRoot)||o,l=(null==s?void 0:s.contains(e.relatedTarget))||o===e.relatedTarget;this.focusEventSent&&!l&&(this._touched=!0,this.emit(L.blur),null===(t=null===(i=this._on)||void 0===i?void 0:i.onBlur)||void 0===t||t.call(i,e),this.focusEventSent=!1)}getAria(){const e=this.shared;return(({id:e,msg:i,hint:t,touched:o})=>{const s="string"==typeof i?i:null==i?void 0:i._description,l=Boolean(s&&s.length>0),r="error"===M(i)&&l&&!0===o,a="string"==typeof t&&t.length>0,n=[];return l&&!0===o&&n.push(j(e,"msg")),a&&n.push(j(e,"hint")),{hasError:r,hasHint:a,ariaDescribedBy:n}})({id:e.getState("id"),msg:e.getRenderProp("msg"),hint:e.getRenderProp("hint"),touched:e.getRenderProp("touched")})}showAsAlert(){return Boolean(this.shared.getRenderProp("touched"))&&!this.shared.getState("inputHasFocus")}isTooltipShown(){const e=this.shared;return X({hideLabel:e.getRenderProp("hideLabel"),label:p(e.getRenderProp("label"))})}getLabelTooltipRefs(){return{refInput:this.setInputRef,refTooltip:this.setTooltipRef}}getFormFieldProps({class:e,accessKey:i,shortKey:t,variant:o,counter:s,maxLength:l,readOnly:r,renderNoLabel:a,renderNoTooltip:n,required:d}){const h=this.shared,c=h.getState("id"),p=h.getRenderProp("label"),u=h.getRenderProp("tooltipAlign");return this.isTooltipShown()?(this.tooltipBehavior.watchAlign(u),this.tooltipBehavior.watchBadgeText(f(i,t)||""),this.tooltipBehavior.watchId(j(c,"label")),this.tooltipBehavior.watchLabel(p)):this.tooltipBehavior.destroy(),{id:c,disabled:h.getRenderProp("disabled"),msg:h.getRenderProp("msg"),hint:h.getRenderProp("hint"),label:p,hideLabel:h.getRenderProp("hideLabel"),hideMsg:h.getRenderProp("hideMsg"),touched:h.getRenderProp("touched"),showBadge:Boolean(i)||Boolean(t),required:d,readOnly:r,accessKey:i,shortKey:t,maxLength:l,counter:s,variant:o,class:e,tooltipAlign:u,alert:this.showAsAlert(),infoPopover:this.getInfoPopover(),renderNoLabel:a,renderNoTooltip:n,refInput:n?void 0:this.setInputRef,refTooltip:this.setTooltipRef}}};export{ie as B,Z as F,J as a,Q as b,ee as c,G as f,M as g,I as i}
|
|
4
|
+
import{p as e,k as i,H as t,b as o}from"./bem-registry.js";import{d as s}from"./disabled.js";import{h as l,e as r,j as a}from"./component2.js";import{c as n,b as d,n as h,a as c,e as p,B as u,t as m}from"./props-from-config.js";import{l as v}from"./label-with-expert-slot.js";import{n as b}from"./component8.js";import{a as f}from"./tslib.es6.js";import{S as g,b as y,s as j}from"./component6.js";import{r as _}from"./aria-labelledby.js";import{a as B,c as L,n as O}from"./dev.utils.js";import{K as T,d as F}from"./events.js";import{B as N}from"./base-web-component.js";import{c as x}from"./item.js";import{F as K}from"./behavior3.js";import{c as k}from"./item2.js";import{T as w}from"./behavior.js";import{h as A}from"@stencil/core/internal/client";import{t as P}from"./i18n.js";import{T as C}from"./component9.js";import{P as D}from"./behavior4.js";import{A as H}from"./component.js";function I(e,i){return Boolean(e)&&!0===i}function M(e){var i;return"string"==typeof e?"error":null!==(i=null==e?void 0:e._type)&&void 0!==i?i:"error"}const S=n("ariaDetails","",d),q=n("hideMsg",!1,h),E=n("hint","",d),$=n("infoPopover",void 0,(function(e){if("object"==typeof e&&null!==e)return e;throw new Error("Invalid info popover: "+typeof e)})),z=c(),R=n("msg",void 0,(function(i){if("string"==typeof i)try{return e(i)}catch(e){return i}return i}),(function(e){return void 0===e||("string"==typeof e?e.length>0:i(e)&&t(e._description,1))})),V=n("touched",!1,h),G={required:[v],optional:[S,s,l,q,E,$,z,R,b,r,V]},J=e=>{var{id:i,class:t,hint:o,baseClassName:s="kol-form-field"}=e,l=f(e,["id","class","hint","baseClassName"]);return o?A("span",Object.assign({class:p(`${s}__hint`,t),id:B(i||"","hint")},l),o):null},Q=e=>{var{component:i="label",id:t,baseClassName:o="kol-form-field",class:s,accessKey:l,shortKey:r,label:a,hideLabel:n,hasExpertSlot:d,omitId:h,showBadge:c=!0,readOnly:u,infoPopover:m}=e,v=f(e,["component","id","baseClassName","class","accessKey","shortKey","label","hideLabel","hasExpertSlot","omitId","showBadge","readOnly","infoPopover"]);const b=!d&&n,j=!1===c?void 0:y(l,r);return A(i,Object.assign({},v,{class:p(`${o}__label`,s),id:b||h?void 0:B(t,"label"),hidden:b,htmlFor:"legend"===i?void 0:t}),A(g,{class:`${o}__label-text`,label:d?"":null!=a?a:"",badgeText:j},A("slot",{name:"expert"})),!d&&u&&A("span",{class:`${o}__label__read-only`,"aria-hidden":"true"},"(",P("kol-readonly"),")"),!d&&m&&A("span",null,A(D,Object.assign({},m.popoverButton),A("div",{class:"kol-popover-button__popover--styled"},m.content))))},U=i=>{var t,o,{alert:s,hideMsg:l,msg:r,id:a,class:n}=i,d=f(i,["alert","hideMsg","msg","id","class"]);const h=function(i){if("string"==typeof i)try{return e(i)}catch(e){return{_description:i,_type:"error"}}return i&&"object"==typeof i&&!("_type"in i)?Object.assign(Object.assign({},i),{_type:"error"}):i}(r);return A(H,Object.assign({alert:!l&&(null!==(t=null==h?void 0:h._alert)&&void 0!==t?t:!0===s),class:p("kol-form-field__msg",l&&"visually-hidden",n),closerAriaDescriptionId:O(),handleCloserClick:()=>{},hasCloser:!1,headingId:L("alert-heading"),id:B(a,"msg"),label:"",level:0,refCloserButton:()=>{},refCloserTooltip:()=>{},type:null!==(o=null==h?void 0:h._type)&&void 0!==o?o:"error",variant:"msg"},d),(null==h?void 0:h._description)||void 0)},W=o.forBlock("kol-form-field"),X=({hideLabel:e,label:i,renderNoTooltip:t})=>!t&&!j(i)&&!0===e,Y=e=>{const i=M(e);return{[i]:!0,[`msg-type-${i}`]:!0}},Z=(e,i)=>{const{renderNoLabel:t,renderNoTooltip:o,renderNoHint:s,id:l,required:r,alert:n,disabled:d,class:h,msg:c,hideMsg:m,hideLabel:v,label:b,infoPopover:g,hint:_,accessKey:L,shortKey:O,counter:T,readOnly:F,touched:N,maxLength:x,ariaDescribedBy:K,showBadge:k,tooltipAlign:w,variant:D,component:H="div",orientation:M,refInput:S,refTooltip:q}=e,E=f(e,["renderNoLabel","renderNoTooltip","renderNoHint","id","required","alert","disabled","class","msg","hideMsg","hideLabel","label","infoPopover","hint","accessKey","shortKey","counter","readOnly","touched","maxLength","ariaDescribedBy","showBadge","tooltipAlign","variant","component","orientation","refInput","refTooltip"]),$=j(b),z=I(c,N),R=y(L,O),V=X({hideLabel:v,label:b,renderNoTooltip:o}),G="fieldset"===H;return A(u,Object.assign({component:H,block:"kol-form-field",modifiers:Object.assign({disabled:Boolean(d),required:Boolean(r),touched:Boolean(N),"hide-label":Boolean(v),"read-only":Boolean(F),"hidden-msg":Boolean(m)},z?Y(c):{}),class:p(D&&a(D,"form-field"),h),disabled:!(!G||!d)||void 0,"aria-describedby":K},E),!t&&A(Q,{component:G?"legend":"label",class:G?"kol-form-field__label--legend":void 0,id:l,hasExpertSlot:$,hideLabel:v,label:b,accessKey:L,shortKey:O,readOnly:F,showBadge:k,infoPopover:g}),A("div",{class:W("input",{"orientation-horizontal":"horizontal"===M,"orientation-vertical":"vertical"===M}),ref:S},i,V&&A("div",{class:W("tooltip")},A(C,{badgeText:R||"",label:b,align:w,id:B(l,"label"),refFloating:q}))),T&&!("soft"===T.maxLengthBehavior&&"number"!=typeof T.maxLength)&&A("div",{class:W("counter")},A("span",{"aria-hidden":"true",class:W("counter"),ref:T.visualRef}),A("span",{"aria-live":"polite",class:"visually-hidden",id:B(l,"counter"),ref:T.ariaRef})),z&&A(U,{id:l,alert:n,hideMsg:m,msg:c}),!s&&A(J,{id:l,hint:_}),"number"==typeof x&&!T&&A("span",{id:B(l,"character-limit-hint"),class:"visually-hidden"},P("kol-character-limit-hint",{placeholders:{limit:String(x)}})))};function ee({ariaDescribedBy:e,hideLabel:i,label:t}){return{title:"",autoCapitalize:"off",autoCorrect:"off","aria-describedby":(null==e?void 0:e.length)?e.join(" "):void 0,"aria-label":i&&t?m(t):void 0}}const ie=class extends N{constructor(){super(...arguments),this.tooltipBehavior=new w(N.stateLess),this.smartButton=x((()=>this.host)),this.infoPopover=k({getFlagHost:()=>this.host,getOpen:()=>!0===this.infoPopoverOpen,setOpen:e=>{this.infoPopoverOpen=e}}),this.focusEventSent=!1,this.handleChange=(e,i)=>{var t,o;e.stopPropagation(),void 0===i&&(i=e.target.value),this.emit(T.change,i),null===(o=null===(t=this._on)||void 0===t?void 0:t.onChange)||void 0===o||o.call(t,e,i)},this.handleInput=(e,i)=>{var t,o;e.stopPropagation(),void 0===i&&(i=e.target.value),this.emit(T.input,i),this.formAssociation.setFormAssociatedValue(i),null===(o=null===(t=this._on)||void 0===t?void 0:t.onInput)||void 0===o||o.call(t,e,i)},this.handleClick=e=>{var i,t;this.emit(T.click),null===(t=null===(i=this._on)||void 0===i?void 0:i.onClick)||void 0===t||t.call(i,e)},this.handleFocus=e=>{var i,t;this.focusEventSent||(this.emit(T.focus),null===(t=null===(i=this._on)||void 0===i?void 0:i.onFocus)||void 0===t||t.call(i,e),this.focusEventSent=!0),this.shared.setState("inputHasFocus",!0)},this.handleBlur=e=>{this.handleFocusLeave(e),this.shared.setState("inputHasFocus",!1)},this.handleKeyDown=e=>{var i,t;this.emit(T.keydown),null===(t=null===(i=this._on)||void 0===i?void 0:i.onKeyDown)||void 0===t||t.call(i,e)},this.setInputRef=e=>{this.tooltipAnchor=e,e&&this.isTooltipShown()&&(this.tooltipBehavior.initContext(e),this.tooltipBehavior.syncListeners(void 0,e,!0))},this.setTooltipRef=e=>{this.tooltipBehavior.setTooltipElementRef(e)}}get shared(){return this}initFormAssociation(e,i){this.formAssociation=new K(N.stateLess,{host:this.host,type:e,name:i})}syncFormField(){this.smartButton.syncListeners(),this.infoPopover.syncListeners(),this.syncAriaDetails()}destroyFormField(){this.tooltipBehavior.destroy(),this.smartButton.destroy(),this.infoPopover.destroy()}connectedCallback(){this.syncFormField(),this.tooltipAnchor&&this.isTooltipShown()&&(this.tooltipBehavior.initContext(this.tooltipAnchor),this.tooltipBehavior.syncListeners(void 0,this.tooltipAnchor,!0))}getInfoPopover(){const e=this.shared.getRenderProp("infoPopover");if(!e)return;const{_content:i}=e,t=f(e,["_content"]);return{popoverButton:this.infoPopover.getFcProps(Object.assign(Object.assign({_variant:"ghost"},t),{_hideLabel:!0,_inline:!0})),content:i}}getSmartButtonFcProps(e,i){if("object"==typeof e&&null!==e)return this.smartButton.getFcProps(Object.assign({_hideLabel:!0,_disabled:i},e),{class:"kol-input-container__smart-button"})}applyAriaDetails(e){S.apply(e,(e=>this.shared.setRenderProp("ariaDetails",e))),this.syncAriaDetails()}syncAriaDetails(){var e,i,t,o;const s=null===(i=null===(e=this.host)||void 0===e?void 0:e.shadowRoot)||void 0===i?void 0:i.querySelector("input, select, textarea");if(!s||!("ariaDetailsElements"in s))return;const l=_(this.host,this.shared.getRenderProp("ariaDetails")),r=this.pushedDetailsElements;(s!==this.ariaDetailsTarget||(null!==(t=null==r?void 0:r.length)&&void 0!==t?t:0)!==l.length||null!==(o=null==r?void 0:r.some(((e,i)=>e!==l[i])))&&void 0!==o&&o)&&(this.ariaDetailsTarget=s,this.pushedDetailsElements=l,s.ariaDetailsElements=l.length?l:null)}applyDisabled(e){s.apply(e,(e=>this.shared.setRenderProp("disabled",e)))}applyHideLabel(e){l.apply(e,(e=>this.shared.setRenderProp("hideLabel",e)))}applyHideMsg(e){q.apply(e,(e=>this.shared.setRenderProp("hideMsg",e)))}applyHint(e){E.apply(e,(e=>this.shared.setRenderProp("hint",e)))}applyInfoPopover(e){$.apply(e,(e=>this.shared.setRenderProp("infoPopover",e)))}applyLabel(e){v.apply(e,(e=>this.shared.setRenderProp("label",e)),this.isRequired("label"))}applyMsg(e){R.apply(e,(e=>this.shared.setRenderProp("msg",e)))}applyName(e){b.apply(e,(e=>this.shared.setRenderProp("name",e))),this.formAssociation.watchName(e)}applyOn(e){z.apply(e,(e=>this.shared.setRenderProp("on",e)))}applySyncValueBySelector(e){this.formAssociation.watchSyncValueBySelector(e)}applyTooltipAlign(e){r.apply(null!=e?e:"top",(e=>this.shared.setRenderProp("tooltipAlign",e)))}applyTouched(e){V.apply(e,(e=>this.shared.setRenderProp("touched",e)))}get eventHost(){var e,i;return null!==(i=null===(e=this.formAssociation)||void 0===e?void 0:e.host)&&void 0!==i?i:this.host}emit(e,i){this.eventHost&&F(this.eventHost,e,i)}handleFocusLeave(e){var i,t;if(this._disabled)return;const o=this.eventHost,s=(null==o?void 0:o.shadowRoot)||o,l=(null==s?void 0:s.contains(e.relatedTarget))||o===e.relatedTarget;this.focusEventSent&&!l&&(this._touched=!0,this.emit(T.blur),null===(t=null===(i=this._on)||void 0===i?void 0:i.onBlur)||void 0===t||t.call(i,e),this.focusEventSent=!1)}getAria(){const e=this.shared;return(({id:e,msg:i,hint:t,touched:o})=>{const s="string"==typeof i?i:null==i?void 0:i._description,l=Boolean(s&&s.length>0),r="error"===M(i)&&l&&!0===o,a="string"==typeof t&&t.length>0,n=[];return l&&!0===o&&n.push(B(e,"msg")),a&&n.push(B(e,"hint")),{hasError:r,hasHint:a,ariaDescribedBy:n}})({id:e.getState("id"),msg:e.getRenderProp("msg"),hint:e.getRenderProp("hint"),touched:e.getRenderProp("touched")})}showAsAlert(){return Boolean(this.shared.getRenderProp("touched"))&&!this.shared.getState("inputHasFocus")}isTooltipShown(){const e=this.shared;return X({hideLabel:e.getRenderProp("hideLabel"),label:m(e.getRenderProp("label"))})}getLabelTooltipRefs(){return{refInput:this.setInputRef,refTooltip:this.setTooltipRef}}getFormFieldProps({class:e,accessKey:i,shortKey:t,variant:o,counter:s,maxLength:l,readOnly:r,renderNoLabel:a,renderNoTooltip:n,required:d}){const h=this.shared,c=h.getState("id"),p=h.getRenderProp("label"),u=h.getRenderProp("tooltipAlign");return this.isTooltipShown()?(this.tooltipBehavior.watchAlign(u),this.tooltipBehavior.watchBadgeText(y(i,t)||""),this.tooltipBehavior.watchId(B(c,"label")),this.tooltipBehavior.watchLabel(p)):this.tooltipBehavior.destroy(),{id:c,disabled:h.getRenderProp("disabled"),msg:h.getRenderProp("msg"),hint:h.getRenderProp("hint"),label:p,hideLabel:h.getRenderProp("hideLabel"),hideMsg:h.getRenderProp("hideMsg"),touched:h.getRenderProp("touched"),showBadge:Boolean(i)||Boolean(t),required:d,readOnly:r,accessKey:i,shortKey:t,maxLength:l,counter:s,variant:o,class:e,tooltipAlign:u,alert:this.showAsAlert(),infoPopover:this.getInfoPopover(),renderNoLabel:a,renderNoTooltip:n,refInput:n?void 0:this.setInputRef,refTooltip:this.setTooltipRef}}};export{ie as B,Z as F,J as a,Q as b,ee as c,G as f,M as g,I as i}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import"./bem-registry.js";import{a as t,d as s,v as i}from"./
|
|
4
|
+
import"./bem-registry.js";import{a as t,d as s,v as i}from"./component2.js";import{a as e,S as o}from"./suggestions2.js";import{h as a,g as r}from"./input-container.js";import{c as h,b as n,e as l}from"./props-from-config.js";import{p}from"./placeholder.js";import{r as d}from"./read-only.js";import{r as c}from"./required.js";import{s as u}from"./smart-button.js";import{s as m}from"./value-string.js";import{f as v,B as y}from"./base-web-component2.js";import{h as b}from"@stencil/core/internal/client";import{s as j}from"./controller.js";import{v as g}from"./access-and-short-key.js";import{c as f}from"./element-interaction.js";import{B as O}from"./base-web-component.js";import{C as x}from"./behavior2.js";const B=h("pattern",void 0,n),K={required:[...v.required],optional:[...v.optional,t,e,a,B,p,d,c,s,u,m,i]},q=class extends y{constructor(){super(...arguments),this.ctaRef=f(),this.counter=new x(O.stateLess),this.needsImmediateCounterUpdate=!1,this.hasValue=!1,this.handleTextInput=t=>{this._value=t.target.value,this.handleInput(t)},this.handleTextChange=(t,s)=>{this.handleChange(t,s)},this.handleTextFocus=t=>{var s,i;this.handleFocus(t),this.counter.retriggerAria(null!==(i=null===(s=this._value)||void 0===s?void 0:s.length)&&void 0!==i?i:0)},this.handleTextKeyDown=t=>{var s,i;this.handleKeyDown(t),this.counter.handleKeyDown(t,null!==(i=null===(s=this.ctaRef.el)||void 0===s?void 0:s.value.length)&&void 0!==i?i:0),j(t,{form:this.host,ref:this.ctaRef.el})}}get textShared(){return this}initHasValue(){this.hasValue=Boolean(this.textShared.getRenderProp("value"))}didLoadTextInput(){var t,s;this.needsImmediateCounterUpdate=!1,(this.counter.hasCounter()||this.counter.hasSoftLimit())&&this.counter.updateImmediate(null!==(s=null===(t=this._value)||void 0===t?void 0:t.length)&&void 0!==s?s:0)}didUpdateTextInput(){var t,s;this.needsImmediateCounterUpdate&&(this.needsImmediateCounterUpdate=!1,(this.counter.hasCounter()||this.counter.hasSoftLimit())&&this.counter.updateImmediate(null!==(s=null===(t=this._value)||void 0===t?void 0:t.length)&&void 0!==s?s:0))}destroyTextInput(){this.destroyFormField(),this.counter.destroy()}applyAccessKey(s){t.apply(s,(t=>this.textShared.setRenderProp("accessKey",t))),g(s,this._shortKey)}applyAutoComplete(t){e.apply(t,(t=>this.textShared.setRenderProp("autoComplete",t)))}applyIcons(t){a.apply(t,(t=>this.textShared.setRenderProp("icons",t)))}applyPattern(t){B.apply(t,(t=>this.textShared.setRenderProp("pattern",t)))}applyPlaceholder(t){p.apply(t,(t=>this.textShared.setRenderProp("placeholder",t)))}applyReadOnly(t){d.apply(t,(t=>this.textShared.setRenderProp("readOnly",t)))}applyRequired(t){c.apply(t,(t=>this.textShared.setRenderProp("required",t)))}applyShortKey(t){s.apply(t,(t=>this.textShared.setRenderProp("shortKey",t))),g(this._accessKey,t)}applySmartButton(t){null==t?this.textShared.unsetRenderProp("smartButton"):u.apply(t,(t=>this.textShared.setRenderProp("smartButton",t)))}applyValue(t){var s;this.initValue(t),this.hasValue=Boolean(this.textShared.getRenderProp("value")),this.counter.update(null!==(s=null==t?void 0:t.length)&&void 0!==s?s:0)}initValue(t){m.apply(t,(t=>this.textShared.setRenderProp("value",t))),this.formAssociation.setFormAssociatedValue(this.textShared.getRenderProp("value"))}initMaxLength(t){this.counter.watchMaxLength(t)}applyVariant(t){i.apply(t,(t=>this.textShared.setRenderProp("variant",t)))}applyHasCounter(t){this.counter.watchHasCounter(t),this.needsImmediateCounterUpdate=!0}applyMaxLength(t){var s,i;this.counter.watchMaxLength(t),this.counter.updateImmediate(null!==(i=null===(s=this._value)||void 0===s?void 0:s.length)&&void 0!==i?i:0)}applyMaxLengthBehavior(t){this.counter.watchMaxLengthBehavior(t),this.needsImmediateCounterUpdate=!0}getTextFormFieldProps(t){const s=this.textShared;return this.getFormFieldProps({class:l(t,{"has-value":this.hasValue,"kol-form-field--has-counter":this.counter.hasSoftLimit()||this.counter.hasCounter()}),accessKey:s.getRenderProp("accessKey")||void 0,shortKey:s.getRenderProp("shortKey")||void 0,variant:s.getRenderProp("variant"),required:s.getRenderProp("required"),readOnly:s.getRenderProp("readOnly"),maxLength:this.counter.getRenderProp("maxLength"),counter:this.counter.getCounterProps()})}getTextInputAdornments(t){return r({icons:this.textShared.getRenderProp("icons"),smartButton:this.getSmartButtonFcProps(this.textShared.getRenderProp("smartButton"),this.textShared.getRenderProp("disabled")),endAdornment:t})}getTextInputProps({type:t,spellcheck:s,multiple:i,suggestions:e},a={}){const r=this.textShared,h=r.getState("id"),n=r.getRenderProp("accessKey"),l=r.getRenderProp("shortKey"),p=r.getRenderProp("placeholder"),d=r.getRenderProp("pattern"),c=this.counter.getMaxLengthAttribute(),u=this.counter.getCharacterLimitHintId(h),{ariaDescribedBy:m,hasError:v}=this.getAria();return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({id:h,hideLabel:r.getRenderProp("hideLabel"),label:r.getRenderProp("label"),disabled:r.getRenderProp("disabled"),name:r.getRenderProp("name")||void 0},n?{accessKey:n}:{}),void 0!==t?{type:t}:{}),{value:r.getRenderProp("value"),required:r.getRenderProp("required")}),void 0!==c?{maxlength:c}:{}),void 0!==p?{placeholder:p}:{}),{autoComplete:r.getRenderProp("autoComplete")}),void 0!==s?{spellcheck:s}:{}),void 0!==d?{pattern:d}:{}),{readonly:r.getRenderProp("readOnly")}),void 0!==i?{multiple:i}:{}),{touched:r.getRenderProp("touched"),msg:r.getRenderProp("msg")}),l?{"aria-keyshortcuts":l}:{}),e&&e.length>0?{suggestions:b(o,{id:h,suggestions:e})}:{}),{ref:this.ctaRef,onBlur:this.handleBlur,onChange:this.handleTextChange,onClick:this.handleClick,onFocus:this.handleTextFocus,onInput:this.handleTextInput,onKeyDown:this.handleTextKeyDown}),a),{ariaDescribedBy:u?[...m,u]:m,"aria-invalid":v?"true":void 0})}};export{q as B,K as t}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as e,p as s}from"./bem-registry.js";import{a as t,d as i,t as o,v as r}from"./
|
|
4
|
+
import{h as e,p as s}from"./bem-registry.js";import{a as t,d as i,t as o,v as r}from"./component2.js";import{h as a,g as l,I as n}from"./input-container.js";import{u as d,v as h,c,g as p,e as u}from"./props-from-config.js";import{m as b}from"./multiple.js";import{r as v}from"./required.js";import{r as m}from"./rows.js";import{f as y,i as f,g as O,c as j,B as g,F as A}from"./base-web-component2.js";import{h as B,Fragment as w}from"@stencil/core/internal/client";import{v as K}from"./access-and-short-key.js";import{f as q}from"./options.js";import{a as P}from"./tslib.es6.js";const k=s=>{if("object"==typeof s&&null!==s){if("string"==typeof s.label&&s.label.length>0)return s.disabled=!0===s.disabled,s.label=`${s.label}`.trim(),!1===d(s.label,3)&&!1===h(s.label)&&e(`A differing Aria-Label (${s.label}) is inaccessible. A differing Aria-Label should consist of at least three readable characters.`),!Array.isArray(s.options)||void 0===s.options.find((e=>!1===k(e)));if("number"==typeof s.label)return!0}return!1},x=c("options",[],(function(e){const t="string"==typeof e?s(e):e;if(Array.isArray(t)&&t.every((e=>k(e))))return t;throw new Error("Invalid select options")})),L=c("value",[],(e=>Array.isArray(e)?e:[e])),$={required:[...y.required],optional:[...y.optional,t,a,b,x,v,m,L,i,o,r]},D=p("kol-select"),E=e=>{var{class:s,index:t,selectedValue:i,selected:o,value:r,label:a,disabled:l}=e,n=P(e,["class","index","selectedValue","selected","value","label","disabled"]);const d=void 0===i?[]:Array.isArray(i)?i:[i],h=o||d.includes(r);return B("option",Object.assign({class:u(D("option",{selected:Boolean(h),disabled:Boolean(l)}),s),selected:h,disabled:l,value:t},n),a)},I=({preKey:e,options:s,disabled:t,value:i,OptionProps:o={},OptionGroupProps:r={}})=>(null==s?void 0:s.length)?B(w,null,s.map(((s,a)=>{const l=[e,`-${a}`].join("");if("options"in s){const e=Boolean(t||s.disabled),{label:a}=s,n=P(s,["label"]);return B("optgroup",Object.assign({class:D("optgroup",{disabled:e}),key:l},r,{label:null==a?void 0:a.toString(),disabled:e}),B(I,Object.assign({OptionGroupProps:r,OptionProps:o,value:i,preKey:l},n,{disabled:e})))}return"value"in s?B(E,Object.assign({key:l},o,{index:l,selectedValue:i},s,{disabled:Boolean(t||s.disabled)})):null}))):null,V=e=>{const{class:s,msg:t,touched:i,disabled:o,required:r,options:a,value:l,OptionProps:n,OptionGroupProps:d,ariaDescribedBy:h,hideLabel:c,label:p}=e,b=P(e,["class","msg","touched","disabled","required","options","value","OptionProps","OptionGroupProps","ariaDescribedBy","hideLabel","label"]),v=Object.assign(Object.assign({class:u(D(Object.assign({disabled:Boolean(o),required:Boolean(r),touched:Boolean(i)},f(t,i)?{[O(t)]:!0}:{})),s),required:r,disabled:o},j({ariaDescribedBy:h,hideLabel:c,label:p})),b);return B("select",Object.assign({},v),B(I,{OptionGroupProps:d,OptionProps:n,disabled:o,options:a,value:l}))},G=(e,s,t)=>{const i=Array.isArray(e);if(s){if(void 0!==e&&!i)throw new Error(`↑ The schema for the property (_value) is not valid for multiple mode. Expected an array. The value will not be changed. (${t} = ${JSON.stringify(e)})`)}else if(i)throw new Error(`↑ The schema for the property (_value) is not valid for single mode. Expected a single value. The value will not be changed. (${t} = ${JSON.stringify(e)})`)},S=(e,s=!1)=>e.flatMap((e=>"options"in e&&Array.isArray(e.options)?S(e.options,Boolean(s||e.disabled)):[Object.assign(Object.assign({},e),{disabled:Boolean(s||e.disabled)})])),T=(e,s,t)=>{if(0===s.length)return e;const i=S(s),o=i.map((e=>e.value)),r=e.every((e=>o.includes(e)))?e:e.filter((e=>o.includes(e)));if(!1===t&&0===r.length){const e=i.find((e=>!0!==e.disabled));return e?[e.value]:r}return r},C=class extends g{constructor(){super(...arguments),this.keyOptionMap=new Map,this.hasValue=!0,this.handleSelectInput=e=>{var s;const t=Array.from((null===(s=this.ctaRef.el)||void 0===s?void 0:s.options)||[]).filter((e=>e.selected)).map((e=>{var s;return null===(s=this.keyOptionMap.get(e.value))||void 0===s?void 0:s.value}));if(this._multiple)this._value=t,this.handleInput(e,t);else{const s=t.length>0?t[0]:void 0;this._value=s,this.handleInput(e,s)}},this.handleSelectChange=e=>{const s=this._value;this.handleChange(e,s),this.hasValue=!!s}}applyAccessKey(e){t.apply(e,(e=>this.setRenderProp("accessKey",e))),K(e,this.getShortKeyProp())}applyShortKey(e){i.apply(e,(e=>this.setRenderProp("shortKey",e))),K(this.getAccessKeyProp(),e)}applyIcons(e){a.apply(e,(e=>this.setRenderProp("icons",e)))}applyMultiple(e){G(this._value,!0===e,"current"),b.apply(e,(e=>{this.setRenderProp("multiple",e),this.setRenderProp("value",T(this.getRenderProp("value"),this.getRenderProp("options"),this._multiple))}))}applyOptions(e){x.apply(e,(e=>{this.setRenderProp("options",e),e.length>0&&(this.keyOptionMap.clear(),q(this.keyOptionMap,e),this.setRenderProp("value",T(this.getRenderProp("value"),e,this._multiple)))}))}applyRequired(e){v.apply(e,(e=>this.setRenderProp("required",e)))}applyRows(e){m.apply(e,(e=>this.setRenderProp("rows",e)))}applyTabIndex(e){o.apply(e,(e=>this.setRenderProp("tabIndex",e)))}applyValue(e){G(e,!0===this._multiple,"received");const s=e=>{const s=T(e,this.getRenderProp("options"),this._multiple);this.setRenderProp("value",s),this.formAssociation.setFormAssociatedValue(this.getModelValue())};null===e?s([null]):L.apply(e,s)}applyVariant(e){r.apply(e,(e=>this.setRenderProp("variant",e)))}getModelValue(){const e=this.getRenderProp("value");return this._multiple?e:Array.isArray(e)&&e.length>0?e[0]:e}getSelectProps(){const{ariaDescribedBy:e,hasError:s}=this.getAria(),t=this.getRenderProp("multiple"),i=this.getRenderProp("shortKey");return Object.assign(Object.assign({id:this.getState("id"),hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),value:this.getRenderProp("value"),options:this.getRenderProp("options"),accessKey:this.getRenderProp("accessKey")||void 0,disabled:this.getRenderProp("disabled"),name:this.getRenderProp("name")||void 0,"aria-invalid":s?"true":void 0,ariaDescribedBy:e,size:t?this.getRenderProp("rows"):void 0,multiple:t,required:this.getRenderProp("required"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")},i?{"aria-keyshortcuts":i}:{}),{ref:this.ctaRef,onBlur:this.handleBlur,onChange:this.handleSelectChange,onClick:this.handleClick,onFocus:this.handleFocus,onInput:this.handleSelectInput,onKeyDown:this.handleKeyDown})}renderSelectField(){const e=this.getRenderProp("disabled"),{startAdornment:s,endAdornment:t}=l({icons:this.getRenderProp("icons")});return B(A,Object.assign({},this.getFormFieldProps({class:u("kol-form-field-select",{"kol-form-field--has-value":this.hasValue}),accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,required:this.getRenderProp("required"),variant:this.getRenderProp("variant")}),{onClick:()=>{var e;return null===(e=this.ctaRef.el)||void 0===e?void 0:e.focus()}}),B(n,{disabled:e,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:s,endAdornment:t},B(V,Object.assign({},this.getSelectProps()))))}};export{C as B,$ as s}
|
package/dist/components/base.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as s}from"@stencil/core/internal/client";import{s as i,X as t}from"./bem-registry.js";import{B as a}from"./base-web-component.js";import{b as e,e as o,a as h,n as l,c as r,d as n,B as p}from"./
|
|
4
|
+
import{h as s}from"@stencil/core/internal/client";import{s as i,X as t}from"./bem-registry.js";import{B as a}from"./base-web-component.js";import{b as e,e as o,a as h,n as l,c as r,d as n,B as p}from"./component8.js";import{F as d}from"./behavior3.js";import{T as c}from"./behavior.js";import{a as m,b as y,c as b,f as u,g as f,h as v,s as j,i as x,l as A,d as C,t as I,e as B,v as g}from"./component2.js";import{d as D}from"./disabled.js";import{i as K}from"./id.js";import"./props-from-config.js";import{l as T}from"./label-with-expert-slot.js";import{v as S}from"./access-and-short-key.js";import{c as L}from"./element-interaction.js";import{d as w,K as F}from"./events.js";import{p as H,a as P}from"./controller.js";const E=class extends a{constructor(){super(...arguments),this.ctaRef=L(),this.propsConfig=e,this.tooltipBehavior=new c(this.stateAccess),this.handleClick=s=>{s.stopPropagation(),this.tooltipBehavior.hideTooltip();const t=this.getRenderProp("type");if("submit"===t)H({form:this.host});else if("reset"===t)P({form:this.host});else{this.formAssociation.setFormAssociatedValue(this.formValue);const t=this.getRenderProp("on").onClick;"function"==typeof t&&(i(s,this.ctaRef.el),t(s,this.formValue))}this.host&&w(this.host,F.click,this.formValue)},this.handleMouseDown=s=>{var i,t;null===(t=(i=this.getRenderProp("on")).onMouseDown)||void 0===t||t.call(i,s),this.host&&w(this.host,F.mousedown)},this.handleFocus=s=>{var i,t;null===(t=(i=this.getRenderProp("on")).onFocus)||void 0===t||t.call(i,s),this.host&&w(this.host,F.focus)},this.handleBlur=s=>{var i,t;null===(t=(i=this.getRenderProp("on")).onBlur)||void 0===t||t.call(i,s),this.host&&w(this.host,F.blur)}}initFormAssociation(){this.formAssociation=new d(a.stateLess,{host:this.host,type:"button"})}unsetButtonTabIndex(){this.unsetRenderProp("tabIndex")}initTooltipBehavior(){this.tooltipBehavior.componentWillLoad({label:this.getRenderProp("label"),align:this.getRenderProp("tooltipAlign")})}syncTooltipListeners(){this.ctaRef.el&&this.tooltipBehavior.syncListeners(void 0,this.ctaRef.el,!0)}destroyTooltipBehavior(){this.tooltipBehavior.destroy()}applyAccessKey(s,i){m.apply(s,(s=>this.setRenderProp("accessKey",s))),S(s,i)}applyAriaControls(s){y.apply(s,(s=>this.setRenderProp("ariaControls",s)))}applyAriaDescription(s){b.apply(s,(s=>this.setRenderProp("ariaDescription",s)))}applyAriaExpanded(s){u.apply(s,(s=>this.setRenderProp("ariaExpanded",s)))}applyAriaHasPopup(s){o.apply(s,(s=>this.setRenderProp("ariaHasPopup",s)))}applyAriaSelected(s){h.apply(s,(s=>this.setRenderProp("ariaSelected",s)))}applyCustomClass(s){f.apply(s,(s=>this.setRenderProp("customClass",s)))}applyDisabled(s){D.apply(s,(s=>this.setRenderProp("disabled",s)))}applyHideLabel(s){v.apply(s,(s=>this.setRenderProp("hideLabel",s)))}applyIcons(s){j.apply(s,(s=>this.setRenderProp("icons",s)))}applyId(s){K.apply(s,(s=>this.setRenderProp("id",s)))}applyInline(s){x.apply(s,(s=>this.setRenderProp("inline",s)))}applyLabel(s){T.apply(s,(s=>{this.setRenderProp("label",s),this.tooltipBehavior.watchLabel(s)}),this.isRequired("label"))}applyName(s){l.apply(s,(s=>this.setRenderProp("name",s))),this.formAssociation.watchName(s)}applyOn(s){r.apply(s,(s=>this.setRenderProp("on",s)))}applyRole(s){A.apply(s,(s=>this.setRenderProp("role",s)))}applyShortKey(s,i){C.apply(s,(s=>this.setRenderProp("shortKey",s))),S(i,s)}applySyncValueBySelector(s){this.formAssociation.watchSyncValueBySelector(s)}applyTabIndex(s){"number"==typeof s?I.apply(s,(s=>this.setRenderProp("tabIndex",s))):this.unsetRenderProp("tabIndex")}applyTooltipAlign(s){B.apply(null!=s?s:"top",(s=>{this.setRenderProp("tooltipAlign",s),this.tooltipBehavior.watchAlign(s)}))}applyType(s){n.apply(s,(s=>this.setRenderProp("type",s)))}applyValue(s){this.formValue=s,this.formAssociation.setFormAssociatedValue(s)}applyVariant(s){var i;g.apply(null!==(i=null!=s?s:t("buttonVariantDefault",this.host))&&void 0!==i?i:"normal",(s=>this.setRenderProp("variant",s)))}getButtonFCProps(){return{accessKey:this.getRenderProp("accessKey"),ariaControls:this.getRenderProp("ariaControls"),ariaDescription:this.getRenderProp("ariaDescription"),ariaDescriptionId:this.getState("ariaDescriptionId"),ariaExpanded:this.getRenderProp("ariaExpanded"),ariaHasPopup:this.getRenderProp("ariaHasPopup"),ariaSelected:this.getRenderProp("ariaSelected"),customClass:this.getRenderProp("customClass"),disabled:this.getRenderProp("disabled"),handleBlur:this.handleBlur,handleClick:this.handleClick,handleFocus:this.handleFocus,handleMouseDown:this.handleMouseDown,hideLabel:this.getRenderProp("hideLabel"),icons:this.getRenderProp("icons"),id:this.getRenderProp("id"),inline:this.getRenderProp("inline"),label:this.getRenderProp("label"),name:this.getRenderProp("name"),on:this.getRenderProp("on"),refButton:this.ctaRef,refTooltip:this.tooltipBehavior.setTooltipElementRef,role:this.getRenderProp("role"),shortKey:this.getRenderProp("shortKey"),tabIndex:this.getRenderProp("tabIndex"),tooltipAlign:this.getRenderProp("tooltipAlign"),type:this.getRenderProp("type"),variant:this.getRenderProp("variant")}}renderButtonFC(){return s(p,Object.assign({},this.getButtonFCProps()))}};export{E as B}
|
package/dist/components/base2.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as i}from"@stencil/core/internal/client";import{B as s}from"./base-web-component.js";import{r as t,C as o}from"./
|
|
4
|
+
import{h as i}from"@stencil/core/internal/client";import{B as s}from"./base-web-component.js";import{r as t,C as o}from"./component7.js";import"./bem-registry.js";import{l}from"./level.js";import{d as h,w as a}from"./width.js";import{F as e,t as r}from"./props-from-config.js";import{l as n}from"./label-lang-segment.js";import{u as d,l as p,D as m}from"./scroll-lock.js";import{T as v}from"./behavior.js";import{c}from"./element-interaction.js";import{d as u,K as f}from"./events.js";import{h as b}from"./tooltip-open-tracking.js";const g={required:[n],optional:[h,l,e,a]},j=class extends s{constructor(){super(...arguments),this.dialogRef=c(),this.cardCloseButtonRef=c(),this.cardCloseTooltipBehavior=new v(this.stateAccess),this.propsConfig=g,this.handleCancel=i=>{var s,t;b(i),i.defaultPrevented||(null===(t=(s=this.getRenderProp("on")).onCancel)||void 0===t||t.call(s,i),i.defaultPrevented||this.host&&!u(this.host,f.cancel)&&i.preventDefault())},this.handleClose=i=>{var s,t,o,l;i.target===this.dialogRef.el&&(d(this),null===(t=(s=this.getRenderProp("on")).onClose)||void 0===t||t.call(s),null===(l=(o=this.getRenderProp("on")).onToggle)||void 0===l||l.call(o,!1),this.host&&(u(this.host,f.close),u(this.host,f.toggle)))},this.handleCardClose=()=>{this.cardCloseTooltipBehavior.hideTooltip(),this.closeDialog(),this.host&&u(this.host,f.close)}}initCardCloseButton(){this.cardCloseButtonProps=t(this.host),this.cardCloseTooltipBehavior.componentWillLoad({label:this.cardCloseButtonProps.label,align:this.cardCloseButtonProps.tooltipAlign})}syncCardCloseTooltipListeners(){this.cardCloseButtonRef.el&&this.cardCloseTooltipBehavior.syncListeners(void 0,this.cardCloseButtonRef.el,!0)}teardownDialog(){this.closeDialog(),d(this),this.cardCloseTooltipBehavior.destroy()}applyLabel(i){n.apply(i,(i=>this.setRenderProp("label",i)),this.isRequired("label"))}applyLevel(i){l.apply(i,(i=>this.setRenderProp("level",i)))}applyOn(i){h.apply(i,(i=>this.setRenderProp("on",i)))}applyVariant(i){e.apply(i,(i=>this.setRenderProp("variant",i)))}applyWidth(i){a.apply(i,(i=>this.setRenderProp("width",i)))}showDialog(i){var s,t,o,l;const h=this.dialogRef.el;(null==h?void 0:h.open)||(this.setState("modal",i),i?(null===(s=null==h?void 0:h.showModal)||void 0===s||s.call(h),h&&p(this)):null===(t=null==h?void 0:h.show)||void 0===t||t.call(h),null===(l=(o=this.getRenderProp("on")).onToggle)||void 0===l||l.call(o,!0),this.host&&u(this.host,f.toggle))}closeDialog(){var i,s;null===(s=null===(i=this.dialogRef.el)||void 0===i?void 0:i.close)||void 0===s||s.call(i)}buildCardProps(){return{ariaDescriptionId:this.getState("ariaDescriptionId"),closeButtonProps:this.cardCloseButtonProps,handleClose:this.handleCardClose,hasCloser:!0,headingId:this.getState("headingId"),label:this.getRenderProp("label"),level:this.getRenderProp("level"),refCloseButton:this.cardCloseButtonRef,refTooltip:this.cardCloseTooltipBehavior.setTooltipElementRef}}renderDialogFC(){const s=this.getRenderProp("variant"),t="card"===s;return i(m,{handleCancel:this.handleCancel,handleClose:this.handleClose,label:r(this.getRenderProp("label")),labelledBy:t?this.getState("headingId"):void 0,modal:this.getState("modal"),refDialog:this.dialogRef,variant:s,width:this.getRenderProp("width")},t?i(o,Object.assign({},this.buildCardProps()),this.renderSlot()):this.renderSlot())}};export{j as B}
|