@public-ui/components 4.6.0-rc.3 → 4.7.0-rc.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-BiIgkzH8.js} +7 -7
- package/dist/cjs/{api-Cc1hT-oO.js → api-CYf8xdSs.js} +24 -26
- package/dist/cjs/{app-globals-DtXiFJRj.js → app-globals-BYAPmvIk.js} +2 -2
- package/dist/cjs/{base-CoMrpiHg.js → base--a0QJmk3.js} +10 -10
- package/dist/cjs/{base-BjiXfuju.js → base-BmhaEyug.js} +10 -10
- package/dist/cjs/{base-B-wbGF-X.js → base-BpyecmRJ.js} +47 -40
- package/dist/cjs/{base-BKsPSdXS.js → base-CUUvWtsB.js} +10 -10
- package/dist/cjs/{base-web-component-DXCN-Sp3.js → base-web-component-BompEaD1.js} +1 -1
- package/dist/cjs/{base-web-component-DApRK7Vs.js → base-web-component-CWIPg0xv.js} +14 -15
- package/dist/cjs/{base-web-component-BXtl3Nmq.js → base-web-component-ZnP9FmYh.js} +12 -14
- package/dist/cjs/{behavior-DIv2ciyM.js → behavior-CFLTEANn.js} +4 -4
- package/dist/cjs/{behavior-DtHCmCCv.js → behavior-DSFpiPZZ.js} +4 -4
- package/dist/cjs/{behavior-GG5TOrTV.js → behavior-O4U6x6z7.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-BAx-7-VH.js} +2 -2
- package/dist/cjs/{component-DlyhBQIa.js → component-7ByD-KGA.js} +4 -4
- package/dist/cjs/component-B2tj_1JK.js +19 -0
- package/dist/cjs/{component-CsnTf_45.js → component-BOtCtyyw.js} +8 -10
- package/dist/cjs/{component-BOI4FdZE.js → component-BhAlZY9F.js} +6 -7
- package/dist/cjs/{component-CNNGo5gU.js → component-BsX1-89D.js} +10 -12
- package/dist/cjs/{component-D0uxhuF3.js → component-C4QeEJ1-.js} +6 -5
- package/dist/cjs/{component-Cnc2NyzE.js → component-DUJYVdRR.js} +4 -4
- package/dist/cjs/{component-CxwSVBBv.js → component-DWb8RKVo.js} +11 -12
- package/dist/cjs/component-Dd3qxReW.js +178 -0
- package/dist/cjs/{component-BE_fK-Xu.js → component-STJidyBV.js} +14 -16
- package/dist/cjs/component-TQvy83J2.js +53 -0
- package/dist/cjs/{contrast-6Nku3lih.js → contrast-DOAdZqCp.js} +1 -1
- package/dist/cjs/{dev.utils-DTQy7QrG.js → dev.utils-DlmiDtkx.js} +1 -1
- package/dist/cjs/{devtools-BAChPN0l.js → devtools-C41YtdU_.js} +2 -2
- package/dist/cjs/{disabled-CilmJ-p-.js → disabled-BdFhTB-H.js} +1 -1
- package/dist/cjs/{field-control-Bxj6Xuu8.js → field-control-S9RwdD26.js} +12 -12
- package/dist/cjs/{group-BUdQbdkp.js → group-C00FoXnX.js} +7 -8
- package/dist/cjs/{has-closer-iSIrv52u.js → has-closer--ijHuPZy.js} +1 -1
- package/dist/cjs/{href-xojo1zy_.js → href-BD4uBwDL.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-BM9KgE0w.js} +1 -1
- package/dist/cjs/{index-BaB_2Z5W.js → index-DRjg_lHL.js} +1 -1
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/input-0s6YjmaC.js +19 -0
- package/dist/cjs/{input-container-BcwbGU2R.js → input-container-DYp04csT.js} +8 -10
- package/dist/cjs/{item-BXt0-A5j.js → item-BKyAM3Uo.js} +20 -21
- package/dist/cjs/{item-DJ-XUS77.js → item-CRgD35fr.js} +4 -4
- package/dist/cjs/{item-BLrLbhAD.js → item-DWAwMGWB.js} +11 -11
- package/dist/cjs/{item-BYKMN41a.js → item-xUIdEroQ.js} +4 -4
- 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-BA98eiFj.js} +3 -3
- package/dist/cjs/{label-hints-q3XenWLW.js → label-hints-BE4LQ_Av.js} +1 -1
- package/dist/cjs/{label-lang-segment-k4OY9qRY.js → label-lang-segment-C5U5gEca.js} +2 -2
- package/dist/cjs/{label-with-expert-slot-CJoz7BLw.js → label-with-expert-slot-x1D8V34g.js} +3 -3
- package/dist/cjs/{level-B6vFMm9s.js → level-CX2p0n7U.js} +1 -1
- package/dist/cjs/{link-target-0qSVsAb2.js → link-target-B1N4Je6O.js} +1 -1
- package/dist/cjs/{links-Ur1e9DOK.js → links-SN0jipdB.js} +1 -1
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{multiple-CCxtzqez.js → multiple-Dl_RoQ-P.js} +1 -1
- package/dist/cjs/{number-value-DzAHCwlP.js → number-value-DO-0brWb.js} +1 -1
- package/dist/cjs/{open-Gxr_K7HK.js → open-BQ2n_Z5t.js} +1 -1
- package/dist/cjs/{options-BT0m0gRT.js → options-B49Y2jkm.js} +1 -1
- package/dist/cjs/{orientation-CeHU4dT8.js → orientation-DKdQrdXN.js} +1 -1
- package/dist/cjs/{placeholder-22xUUFff.js → placeholder-E5zS-kqO.js} +1 -1
- package/dist/cjs/{props-from-config-D1qhXS9j.js → props-from-config-8bawgofo.js} +86 -5
- package/dist/cjs/{read-only-iHApMQEg.js → read-only-YsES5bfT.js} +1 -1
- package/dist/cjs/{required-BYdSI25I.js → required-BvWmptNq.js} +1 -1
- package/dist/cjs/{resolve-props-c-uwDulF.js → resolve-props-CHqmeYxD.js} +6 -6
- package/dist/cjs/{resolve-props-B7klWjLx.js → resolve-props-DUeggpV2.js} +7 -7
- package/dist/cjs/{rows-C9vBSQK1.js → rows-BBmwZt2C.js} +1 -1
- package/dist/cjs/{scroll-lock-daUQqmx_.js → scroll-lock-3znuNdTX.js} +8 -7
- package/dist/cjs/{smart-button-DRMmUyQ5.js → smart-button-B3OCsLLZ.js} +1 -1
- package/dist/cjs/{spell-check-CxgvHcGA.js → spell-check-DuFxddUB.js} +1 -1
- package/dist/cjs/{src-Bmd7gQCS.js → src-Cl2qHbxL.js} +1 -1
- package/dist/cjs/{step-CCqgsPCX.js → step-Bf3TCVBv.js} +1 -1
- package/dist/cjs/{suggestions-CoUp7HmN.js → suggestions-BjKRoku9.js} +1 -1
- package/dist/cjs/{suggestions-D3snLGL_.js → suggestions-C4B_eROV.js} +3 -3
- package/dist/cjs/test-component.cjs.entry.js +1 -1
- package/dist/cjs/{toggle-handler-B0xib7fH.js → toggle-handler-DEpykyv_.js} +11 -13
- package/dist/cjs/{unique-nav-labels-CgxOyb6V.js → unique-nav-labels-CNpNvloU.js} +1 -1
- package/dist/cjs/{unit-_oDj-vIB.js → unit-gLQjiSkI.js} +1 -1
- package/dist/cjs/{validators-CpCJvM4r.js → validators-DNveqLx4.js} +1 -1
- package/dist/cjs/{value-string-CKppMGVM.js → value-string-JMz269Bn.js} +1 -1
- package/dist/cjs/{width-e7f3wHF3.js → width-_6rleKWl.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/collection/utils/markdown.js +49 -3
- 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/controller.js +1 -1
- package/dist/components/devtools.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-DDS-lyOB.js} +2 -2
- package/dist/esm/{api-CBPlj155.js → api-MBSY9afi.js} +18 -20
- package/dist/esm/{app-globals-DRl9A82c.js → app-globals-DytcyM_s.js} +2 -2
- package/dist/esm/{base-BByRnpRm.js → base-D-me6QDT.js} +10 -10
- package/dist/esm/{base-C7BBsrYZ.js → base-D7-iAVBu.js} +35 -28
- package/dist/esm/{base-DO0KvOv9.js → base-DP9yHJOV.js} +10 -10
- package/dist/esm/{base-Dtxcvto_.js → base-DZBnXHZh.js} +10 -10
- package/dist/esm/{base-web-component-BxXLva5d.js → base-web-component-BLA2cpyz.js} +8 -10
- package/dist/esm/{base-web-component-CC_gpyDb.js → base-web-component-Bh2NCN7p.js} +1 -1
- package/dist/esm/{base-web-component-CfPyCJDJ.js → base-web-component-DwY54ppZ.js} +13 -14
- package/dist/esm/{behavior-CsNDRS2z.js → behavior-Cw8QfOcm.js} +4 -4
- package/dist/esm/{behavior-ewHvUWVk.js → behavior-DUy0X7U1.js} +4 -4
- package/dist/esm/{behavior-CKU2tmCj.js → behavior-DmR4WVXd.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-CnRQPMm_.js} +2 -2
- package/dist/esm/{component-By8ggItU.js → component-B4CDonzN.js} +6 -8
- package/dist/esm/{component-B3OziaRC.js → component-BC1TpQVD.js} +9 -11
- package/dist/esm/component-BUzgs8fh.js +48 -0
- package/dist/esm/{component-D4-NVnsT.js → component-Bldy_ShO.js} +4 -4
- package/dist/esm/component-Cj3P_f35.js +173 -0
- package/dist/esm/{component-D6_K50vT.js → component-D5yKRPCZ.js} +4 -4
- package/dist/esm/{component-D6lo0LzE.js → component-DisuGN16.js} +5 -6
- package/dist/esm/{component-6l69Jvwl.js → component-DxnezN7K.js} +6 -5
- package/dist/esm/component-LadkF9an.js +17 -0
- package/dist/esm/{component-CF8uFG0A.js → component-ZJiUl6kZ.js} +13 -15
- package/dist/esm/{component-Cmi6iGfA.js → component-vxdandl4.js} +10 -11
- package/dist/esm/{contrast-BNoQruBh.js → contrast-pfwNxK_L.js} +1 -1
- package/dist/esm/{dev.utils-BwYCy1rP.js → dev.utils-DM7Qhcet.js} +1 -1
- package/dist/esm/{devtools-CGP3Nzsw.js → devtools-CxUqjh1N.js} +2 -2
- package/dist/esm/{disabled-BZXlWAgK.js → disabled-C2DzYwwy.js} +1 -1
- package/dist/esm/{field-control-0TRmF7Ea.js → field-control-CQJgDAKK.js} +7 -7
- package/dist/esm/{group-DapkT_Yh.js → group-DCoICCiG.js} +5 -6
- package/dist/esm/{has-closer-DUB0QcS9.js → has-closer-x20C4xl3.js} +1 -1
- package/dist/esm/{href-CxokGOJ2.js → href-vIF4eC7d.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-lCAtMmMx.js} +1 -1
- package/dist/esm/{index-DEcM8BEc.js → index-8-BSSKQL.js} +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/{input-CDUCo1S5.js → input-C4yo-d7N.js} +4 -5
- package/dist/esm/{input-container-BipAkWn4.js → input-container-Cb2xJUCl.js} +6 -8
- package/dist/esm/{item-UgJ2uikD.js → item-BANfM_Mo.js} +17 -18
- package/dist/esm/{item-BvnZc8uV.js → item-C2HHBTvm.js} +4 -4
- package/dist/esm/{item-B0oQTeju.js → item-H09kNXn9.js} +4 -4
- package/dist/esm/{item-Boe3t0Dm.js → item-gvmzMXYb.js} +11 -11
- 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-hints-CLMiVvfk.js → label-hints-BUADjqKF.js} +1 -1
- package/dist/esm/{label-lang-segment-iVD9hoM3.js → label-lang-segment-B13iL7iy.js} +2 -2
- package/dist/esm/{label-B-Dr7VaP.js → label-mr5joqaQ.js} +3 -3
- package/dist/esm/label-with-expert-slot-BVqi0_Fb.js +12 -0
- package/dist/esm/{level-DsQ_pcyD.js → level-eGeMFn0b.js} +1 -1
- package/dist/esm/{link-target-D7lYILOV.js → link-target-DEH-wAmf.js} +1 -1
- package/dist/esm/{links-IkK4zoXw.js → links-Dy9WkOJ-.js} +1 -1
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{multiple--ay1C1n3.js → multiple-F8uOX8RD.js} +1 -1
- package/dist/esm/{number-value-Dl9-2O4r.js → number-value-DncK2_pC.js} +1 -1
- package/dist/esm/{open-CNHJhHsy.js → open-DoPXNruj.js} +1 -1
- package/dist/esm/{options-DwO32GBF.js → options-DcIQ-KB2.js} +1 -1
- package/dist/esm/{orientation-ChJ0S24M.js → orientation-tX0FldEu.js} +1 -1
- package/dist/esm/{placeholder-UxmBJ4Vl.js → placeholder-BPZ2sQEB.js} +1 -1
- package/dist/esm/{props-from-config-ytxYrJUY.js → props-from-config-LBgEHmcL.js} +84 -6
- package/dist/esm/{read-only-DytZ5HZJ.js → read-only-9BPUG7r4.js} +1 -1
- package/dist/esm/{required-BriHhuO4.js → required-DBJ4iW2e.js} +1 -1
- package/dist/esm/{resolve-props-DTXKtzir.js → resolve-props-0xfjG6h5.js} +6 -6
- package/dist/esm/{resolve-props-kM9N-fzf.js → resolve-props-BQa6SjZU.js} +7 -7
- package/dist/esm/{rows-I1jrTjzU.js → rows-DuYJeJT7.js} +1 -1
- package/dist/esm/{scroll-lock-Bv-U2FHM.js → scroll-lock-CIv7iOPB.js} +9 -7
- package/dist/esm/{smart-button-DM5g48-g.js → smart-button-p4avK7MS.js} +1 -1
- package/dist/esm/{spell-check-BWCnJG5v.js → spell-check-Bvc-Peew.js} +1 -1
- package/dist/esm/{src-ziOwSglN.js → src-CVwlo_cY.js} +1 -1
- package/dist/esm/{step-BcyhvRtu.js → step-oCposIuI.js} +1 -1
- package/dist/esm/{suggestions-LO267l8F.js → suggestions-BsWy2U2z.js} +1 -1
- package/dist/esm/{suggestions-D0u80DtA.js → suggestions-fWMdnACm.js} +3 -3
- package/dist/esm/test-component.entry.js +1 -1
- package/dist/esm/{toggle-handler-mPlmvrq7.js → toggle-handler-CtJ2Z7Us.js} +10 -12
- package/dist/esm/{unique-nav-labels-CxFUYSVY.js → unique-nav-labels-CZIyOzqJ.js} +1 -1
- package/dist/esm/{unit-1ix-K9SD.js → unit-YqluIXsF.js} +1 -1
- package/dist/esm/{validators-CTjxOidB.js → validators-ByUMEUYD.js} +1 -1
- package/dist/esm/{value-string-CxDz7dhD.js → value-string-Baqhc_TX.js} +1 -1
- package/dist/esm/{width-C1_yZHyL.js → width-BJNhiv_8.js} +1 -1
- package/dist/kolibri/Heading-DDS-lyOB.js +4 -0
- package/dist/kolibri/api-MBSY9afi.js +4 -0
- package/dist/kolibri/{app-globals-DRl9A82c.js → app-globals-DytcyM_s.js} +1 -1
- package/dist/kolibri/base-D-me6QDT.js +4 -0
- package/dist/kolibri/base-D7-iAVBu.js +4 -0
- package/dist/kolibri/base-DP9yHJOV.js +4 -0
- package/dist/kolibri/base-DZBnXHZh.js +4 -0
- package/dist/kolibri/base-web-component-BLA2cpyz.js +4 -0
- package/dist/kolibri/{base-web-component-CC_gpyDb.js → base-web-component-Bh2NCN7p.js} +1 -1
- package/dist/kolibri/base-web-component-DwY54ppZ.js +4 -0
- package/dist/kolibri/{behavior-CsNDRS2z.js → behavior-Cw8QfOcm.js} +1 -1
- package/dist/kolibri/{behavior-ewHvUWVk.js → behavior-DUy0X7U1.js} +1 -1
- package/dist/kolibri/{behavior-CKU2tmCj.js → behavior-DmR4WVXd.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-CnRQPMm_.js} +1 -1
- package/dist/kolibri/{component-By8ggItU.js → component-B4CDonzN.js} +1 -1
- package/dist/kolibri/component-BC1TpQVD.js +4 -0
- package/dist/kolibri/component-BUzgs8fh.js +4 -0
- package/dist/kolibri/component-Bldy_ShO.js +4 -0
- package/dist/kolibri/component-Cj3P_f35.js +4 -0
- package/dist/kolibri/component-D5yKRPCZ.js +4 -0
- package/dist/kolibri/component-DisuGN16.js +4 -0
- package/dist/kolibri/component-DxnezN7K.js +4 -0
- package/dist/kolibri/component-LadkF9an.js +4 -0
- package/dist/kolibri/component-ZJiUl6kZ.js +4 -0
- package/dist/kolibri/component-vxdandl4.js +4 -0
- package/dist/kolibri/{contrast-BNoQruBh.js → contrast-pfwNxK_L.js} +1 -1
- package/dist/kolibri/{dev.utils-BwYCy1rP.js → dev.utils-DM7Qhcet.js} +1 -1
- package/dist/kolibri/{devtools-CGP3Nzsw.js → devtools-CxUqjh1N.js} +1 -1
- package/dist/kolibri/disabled-C2DzYwwy.js +4 -0
- package/dist/kolibri/field-control-CQJgDAKK.js +4 -0
- package/dist/kolibri/group-DCoICCiG.js +4 -0
- package/dist/kolibri/has-closer-x20C4xl3.js +4 -0
- package/dist/kolibri/href-vIF4eC7d.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-lCAtMmMx.js +4 -0
- package/dist/kolibri/{index-DEcM8BEc.js → index-8-BSSKQL.js} +1 -1
- package/dist/kolibri/index.esm.js +1 -1
- package/dist/kolibri/input-C4yo-d7N.js +4 -0
- package/dist/kolibri/input-container-Cb2xJUCl.js +4 -0
- package/dist/kolibri/item-BANfM_Mo.js +4 -0
- package/dist/kolibri/item-C2HHBTvm.js +4 -0
- package/dist/kolibri/item-H09kNXn9.js +4 -0
- package/dist/kolibri/item-gvmzMXYb.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-hints-BUADjqKF.js +4 -0
- package/dist/kolibri/label-lang-segment-B13iL7iy.js +4 -0
- package/dist/kolibri/label-mr5joqaQ.js +4 -0
- package/dist/kolibri/label-with-expert-slot-BVqi0_Fb.js +4 -0
- package/dist/kolibri/level-eGeMFn0b.js +4 -0
- package/dist/kolibri/link-target-DEH-wAmf.js +4 -0
- package/dist/kolibri/{links-IkK4zoXw.js → links-Dy9WkOJ-.js} +1 -1
- package/dist/kolibri/multiple-F8uOX8RD.js +4 -0
- package/dist/kolibri/number-value-DncK2_pC.js +4 -0
- package/dist/kolibri/open-DoPXNruj.js +4 -0
- package/dist/kolibri/{options-DwO32GBF.js → options-DcIQ-KB2.js} +1 -1
- package/dist/kolibri/orientation-tX0FldEu.js +4 -0
- package/dist/kolibri/placeholder-BPZ2sQEB.js +4 -0
- package/dist/kolibri/props-from-config-LBgEHmcL.js +4 -0
- package/dist/kolibri/read-only-9BPUG7r4.js +4 -0
- package/dist/kolibri/required-DBJ4iW2e.js +4 -0
- package/dist/kolibri/resolve-props-0xfjG6h5.js +4 -0
- package/dist/kolibri/resolve-props-BQa6SjZU.js +4 -0
- package/dist/kolibri/rows-DuYJeJT7.js +4 -0
- package/dist/kolibri/scroll-lock-CIv7iOPB.js +4 -0
- package/dist/kolibri/{smart-button-DM5g48-g.js → smart-button-p4avK7MS.js} +1 -1
- package/dist/kolibri/spell-check-Bvc-Peew.js +4 -0
- package/dist/kolibri/src-CVwlo_cY.js +4 -0
- package/dist/kolibri/step-oCposIuI.js +4 -0
- package/dist/kolibri/{suggestions-LO267l8F.js → suggestions-BsWy2U2z.js} +1 -1
- package/dist/kolibri/suggestions-fWMdnACm.js +4 -0
- package/dist/kolibri/test-component.entry.js +1 -1
- package/dist/kolibri/toggle-handler-CtJ2Z7Us.js +4 -0
- package/dist/kolibri/unique-nav-labels-CZIyOzqJ.js +4 -0
- package/dist/kolibri/unit-YqluIXsF.js +4 -0
- package/dist/kolibri/validators-ByUMEUYD.js +4 -0
- package/dist/kolibri/value-string-Baqhc_TX.js +4 -0
- package/dist/kolibri/{width-C1_yZHyL.js → width-BJNhiv_8.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 +11 -8
- 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-C9B-yJ93.js +0 -9300
- 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-D9NreIlK.js +0 -9295
- 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/base-BByRnpRm.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-D6_K50vT.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/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/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/suggestions-D0u80DtA.js +0 -4
- package/dist/kolibri/toggle-handler-mPlmvrq7.js +0 -4
- package/dist/kolibri/unique-nav-labels-CxFUYSVY.js +0 -4
- package/dist/kolibri/unit-1ix-K9SD.js +0 -4
- package/dist/kolibri/validators-CTjxOidB.js +0 -4
- package/dist/kolibri/value-string-CxDz7dhD.js +0 -4
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import { h } from './index-
|
|
5
|
-
import { b as bem } from './bem-registry-
|
|
6
|
-
import {
|
|
4
|
+
import { h } from './index-8-BSSKQL.js';
|
|
5
|
+
import { b as bem } from './bem-registry-SKACeCny.js';
|
|
6
|
+
import { e as clsx, B as BemRootNodeFC } from './props-from-config-LBgEHmcL.js';
|
|
7
7
|
|
|
8
8
|
const dialogBem = bem.forBlock('kol-dialog');
|
|
9
9
|
const modalBem = bem.forBlock('kol-modal');
|
|
10
|
-
const dialogBlockClass = (variant) => clsx(dialogBem(), modalBem(), dialogBem(variant), modalBem(variant));
|
|
11
10
|
const DialogFC = (props, children) => {
|
|
12
|
-
const {
|
|
13
|
-
|
|
11
|
+
const { class: hostClass, elementClass, handleCancel, handleClose, label, labelledBy, modal, refDialog, variant, width } = props;
|
|
12
|
+
if (variant !== undefined) {
|
|
13
|
+
return (h(BemRootNodeFC, { component: "dialog", "aria-label": labelledBy ? undefined : label, "aria-labelledby": labelledBy, "aria-modal": modal ? 'true' : 'false', block: "kol-dialog", class: clsx(modalBem(), dialogBem(variant), modalBem(variant), hostClass), onCancel: handleCancel, onClose: handleClose, ref: refDialog, style: width ? { width } : undefined }, children));
|
|
14
|
+
}
|
|
15
|
+
return (h("dialog", { "aria-label": labelledBy ? undefined : label, "aria-labelledby": labelledBy, "aria-modal": modal ? 'true' : 'false', class: clsx(elementClass, hostClass), onCancel: handleCancel, onClose: handleClose, ref: refDialog, style: width ? { width } : undefined }, children));
|
|
14
16
|
};
|
|
15
17
|
|
|
16
18
|
const SCROLL_LOCK_OWNERS = new Set();
|
|
@@ -62,4 +64,4 @@ function unlockScroll(owner) {
|
|
|
62
64
|
}
|
|
63
65
|
}
|
|
64
66
|
|
|
65
|
-
export { DialogFC as D,
|
|
67
|
+
export { DialogFC as D, lockScroll as l, unlockScroll as u };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
4
|
import { p as parseJson } from './common-BdSzSIXg.js';
|
|
5
|
-
import { c as createPropDefinition } from './props-from-config-
|
|
5
|
+
import { c as createPropDefinition } from './props-from-config-LBgEHmcL.js';
|
|
6
6
|
|
|
7
7
|
function normalizeSmartButton(value) {
|
|
8
8
|
const parsed = typeof value === 'string' ? parseJson(value) : value;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import { c as createPropDefinition, n as normalizeBoolean } from './props-from-config-
|
|
4
|
+
import { c as createPropDefinition, n as normalizeBoolean } from './props-from-config-LBgEHmcL.js';
|
|
5
5
|
|
|
6
6
|
const spellCheckProp = createPropDefinition('spellCheck', undefined, normalizeBoolean);
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import { c as createPropDefinition, b as normalizeString } from './props-from-config-
|
|
4
|
+
import { c as createPropDefinition, b as normalizeString } from './props-from-config-LBgEHmcL.js';
|
|
5
5
|
|
|
6
6
|
const srcProp = createPropDefinition('src', '', normalizeString);
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import { c as createPropDefinition,
|
|
4
|
+
import { c as createPropDefinition, C as normalizeInputNumber } from './props-from-config-LBgEHmcL.js';
|
|
5
5
|
|
|
6
6
|
const stepProp = createPropDefinition('step', undefined, normalizeInputNumber);
|
|
7
7
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
4
|
import { n as a11yHint, p as parseJson } from './common-BdSzSIXg.js';
|
|
5
|
-
import { c as createPropDefinition } from './props-from-config-
|
|
5
|
+
import { c as createPropDefinition } from './props-from-config-LBgEHmcL.js';
|
|
6
6
|
|
|
7
7
|
function normalizeSuggestions(value) {
|
|
8
8
|
const parsed = typeof value === 'string' ? parseJson(value) : value;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import { c as createPropDefinition, b as normalizeString } from './props-from-config-
|
|
4
|
+
import { c as createPropDefinition, b as normalizeString } from './props-from-config-LBgEHmcL.js';
|
|
5
5
|
import { a as __rest } from './tslib.es6-QNbPBOk5.js';
|
|
6
|
-
import { h } from './index-
|
|
7
|
-
import { a as createRelatedUniqueId } from './dev.utils-
|
|
6
|
+
import { h } from './index-8-BSSKQL.js';
|
|
7
|
+
import { a as createRelatedUniqueId } from './dev.utils-DM7Qhcet.js';
|
|
8
8
|
|
|
9
9
|
const autoCompleteProp = createPropDefinition('autoComplete', 'off', normalizeString, (value) => value.length > 0);
|
|
10
10
|
|
|
@@ -2,17 +2,15 @@
|
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
4
|
import './common-BdSzSIXg.js';
|
|
5
|
-
import { l as levelProp } from './level-
|
|
6
|
-
import { a as createCallbacksPropDefinition } from './props-from-config-
|
|
7
|
-
import { d as disabledProp } from './disabled-
|
|
8
|
-
import { l as labelLangSegmentsProp } from './label-lang-segment-
|
|
9
|
-
import { o as openProp } from './open-
|
|
10
|
-
import { h } from './index-
|
|
11
|
-
import { K as KolHeadingFc } from './Heading-
|
|
12
|
-
import { c as clsx } from './clsx-COFh-Vc8.js';
|
|
5
|
+
import { l as levelProp } from './level-eGeMFn0b.js';
|
|
6
|
+
import { a as createCallbacksPropDefinition, g as getBlockBem, e as clsx, B as BemRootNodeFC } from './props-from-config-LBgEHmcL.js';
|
|
7
|
+
import { d as disabledProp } from './disabled-C2DzYwwy.js';
|
|
8
|
+
import { l as labelLangSegmentsProp } from './label-lang-segment-B13iL7iy.js';
|
|
9
|
+
import { o as openProp } from './open-DoPXNruj.js';
|
|
10
|
+
import { h } from './index-8-BSSKQL.js';
|
|
11
|
+
import { K as KolHeadingFc } from './Heading-DDS-lyOB.js';
|
|
13
12
|
import { p as preventFocus } from './element-interaction-sGYdEpmv.js';
|
|
14
|
-
import {
|
|
15
|
-
import { S as SpanFC } from './component-D9NreIlK.js';
|
|
13
|
+
import { S as SpanFC } from './component-Cj3P_f35.js';
|
|
16
14
|
import { d as dispatchDomEvent, K as KolEvent } from './events-CRHxtwup.js';
|
|
17
15
|
|
|
18
16
|
const collapsibleCallbacksProp = createCallbacksPropDefinition();
|
|
@@ -24,10 +22,10 @@ const collapsiblePropsConfig = {
|
|
|
24
22
|
|
|
25
23
|
const CollapsibleFC = ({ block, contentClass, controlId, detailsOpen, disabled, expanded, handleToggle, headingId, icons, label, level, refHeadingButton, transitionMs }, children) => {
|
|
26
24
|
const blockBem = getBlockBem(block);
|
|
27
|
-
return (h("details",
|
|
25
|
+
return (h(BemRootNodeFC, { component: "details", block: block, modifiers: {
|
|
28
26
|
disabled: disabled === true,
|
|
29
27
|
open: expanded === true,
|
|
30
|
-
}
|
|
28
|
+
}, open: detailsOpen === true, style: { '--collapsible-transition-duration': `${transitionMs}ms` } }, h("summary", { "aria-controls": controlId, "aria-disabled": disabled === true ? 'true' : undefined, class: blockBem('heading'), id: headingId, onClick: handleToggle, onMouseDown: disabled === true ? preventFocus : undefined, ref: refHeadingButton, tabIndex: disabled === true ? -1 : undefined }, h(KolHeadingFc, { level: level !== null && level !== void 0 ? level : 0 }, h(SpanFC, { icons: icons, label: label }))), h("div", { class: blockBem('wrapper') }, h("div", { class: blockBem('wrapper-animation') }, h("div", { "aria-hidden": expanded === false ? 'true' : undefined, "aria-labelledby": headingId, class: clsx(blockBem('content'), contentClass), id: controlId, role: "region" }, children)))));
|
|
31
29
|
};
|
|
32
30
|
|
|
33
31
|
const DEFAULT_COLLAPSIBLE_TRANSITION_MS = 300;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
4
|
import { L as Log } from './common-BdSzSIXg.js';
|
|
5
|
-
import { t as trimLabel } from './props-from-config-
|
|
5
|
+
import { t as trimLabel } from './props-from-config-LBgEHmcL.js';
|
|
6
6
|
|
|
7
7
|
const UNIQUE_LABELS = new Set();
|
|
8
8
|
function addNavLabel(ariaLabel) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import { c as createPropDefinition,
|
|
4
|
+
import { c as createPropDefinition, D as normalizeNumber, b as normalizeString } from './props-from-config-LBgEHmcL.js';
|
|
5
5
|
|
|
6
6
|
const maxProp = createPropDefinition('max', 100, normalizeNumber, (v) => v > 0);
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
4
|
+
import { j as isValidLabelSegments, z as isValidLabelString } from './props-from-config-LBgEHmcL.js';
|
|
5
5
|
|
|
6
6
|
const SAFE_CLASS_NAME_RE = /^[a-zA-Z][a-zA-Z0-9_-]{0,60}$/;
|
|
7
7
|
const isSafeClassName = (value) => typeof value === 'string' && SAFE_CLASS_NAME_RE.test(value);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import { c as createPropDefinition, b as normalizeString } from './props-from-config-
|
|
4
|
+
import { c as createPropDefinition, b as normalizeString } from './props-from-config-LBgEHmcL.js';
|
|
5
5
|
|
|
6
6
|
const stringValueProp = createPropDefinition('value', undefined, normalizeString);
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import { c as createPropDefinition, b as normalizeString } from './props-from-config-
|
|
4
|
+
import { c as createPropDefinition, b as normalizeString } from './props-from-config-LBgEHmcL.js';
|
|
5
5
|
|
|
6
6
|
function normalizeDialogCallbacks(value) {
|
|
7
7
|
if (typeof value !== 'object' || value === null) {
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{a as e}from"./tslib.es6-QNbPBOk5.js";import{h as s}from"./index-8-BSSKQL.js";import{e as l}from"./props-from-config-LBgEHmcL.js";const a=1;function o(e){return function(e){return e>=a&&e<=6}(e)?`h${e}`:"strong"}const r=(r,n)=>{var{class:c,level:t=a}=r,i=e(r,["class","level"]);const d=o(t);return s(d,Object.assign({class:l("kol-headline",`kol-headline--${d}`,c)},i),n)},n=(a,o)=>{var{class:r}=a,n=e(a,["class"]);return s("p",Object.assign({class:l("kol-headline kol-headline--group kol-headline--secondary",r)},n),o)},c=(o,c)=>{var{secondaryHeadline:t,level:i=a,class:d,HeadingGroupProps:p={},SecondaryHeadlineProps:u={}}=o,g=e(o,["secondaryHeadline","level","class","HeadingGroupProps","SecondaryHeadlineProps"]);const h=Object.assign({level:i},g);if(!t)return s(r,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(r,Object.assign({class:l(d,"kol-headline--group","kol-headline--primary")},h),c),s(n,Object.assign({},u),t))};export{c as K,o as g}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{a as e}from"./tslib.es6-QNbPBOk5.js";import{p as i,j as t,D as o}from"./common-BdSzSIXg.js";import{S as s,b as l,s as r}from"./component-Cj3P_f35.js";import{r as a}from"./aria-labelledby-DqJY_4G-.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-LBgEHmcL.js";import{a as b,c as v,n as f}from"./dev.utils-DM7Qhcet.js";import{K as y,d as g}from"./events-CRHxtwup.js";import{d as j}from"./disabled-C2DzYwwy.js";import{j as B,h as _,e as L}from"./component-Bldy_ShO.js";import{l as O}from"./label-with-expert-slot-BVqi0_Fb.js";import{n as D}from"./component-BC1TpQVD.js";import{B as N}from"./base-web-component-Bh2NCN7p.js";import{c as C}from"./item-H09kNXn9.js";import{F as T}from"./behavior-DUy0X7U1.js";import{c as x}from"./item-gvmzMXYb.js";import{T as F}from"./behavior-DmR4WVXd.js";import{h as K}from"./index-8-BSSKQL.js";import{t as w}from"./i18n-BLkzMf6D.js";import{b as P}from"./bem-registry-SKACeCny.js";import{T as k}from"./component-D5yKRPCZ.js";import{P as A}from"./component-B4CDonzN.js";import{A as S}from"./component-vxdandl4.js";function H(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 I=n("ariaDetails","",d),q=n("hideMsg",!1,h),z=n("hint","",d),E=n("infoPopover",void 0,(function(e){if("object"==typeof e&&null!==e)return e;throw new Error("Invalid info popover: "+typeof e)})),X=c(),$=n("msg",void 0,(function(e){if("string"==typeof e)try{return i(e)}catch(i){return e}return e}),(function(e){return void 0===e||("string"==typeof e?e.length>0:t(e)&&o(e._description,1))})),Q=n("touched",!1,h),R=i=>{var{id:t,class:o,hint:s,baseClassName:l="kol-form-field"}=i,r=e(i,["id","class","hint","baseClassName"]);return s?K("span",Object.assign({class:p(`${l}__hint`,o),id:b(t||"","hint")},r),s):null},V=i=>{var{component:t="label",id:o,baseClassName:r="kol-form-field",class:a,accessKey:n,shortKey:d,label:h,hideLabel:c,hasExpertSlot:u,omitId:m,showBadge:v=!0,readOnly:f,infoPopover:y}=i,g=e(i,["component","id","baseClassName","class","accessKey","shortKey","label","hideLabel","hasExpertSlot","omitId","showBadge","readOnly","infoPopover"]);const j=!u&&c,B=!1===v?void 0:l(n,d);return K(t,Object.assign({},g,{class:p(`${r}__label`,a),id:j||m?void 0:b(o,"label"),hidden:j,htmlFor:"legend"===t?void 0:o}),K(s,{class:`${r}__label-text`,label:u?"":null!=h?h:"",badgeText:B},K("slot",{name:"expert"})),!u&&f&&K("span",{class:`${r}__label__read-only`,"aria-hidden":"true"},"(",w("kol-readonly"),")"),!u&&y&&K("span",null,K(A,Object.assign({},y.popoverButton),K("div",{class:"kol-popover-button__popover--styled"},y.content))))},Y=t=>{var o,s,{alert:l,hideMsg:r,msg:a,id:n,class:d}=t,h=e(t,["alert","hideMsg","msg","id","class"]);const c=function(e){if("string"==typeof e)try{return i(e)}catch(i){return{_description:e,_type:"error"}}return e&&"object"==typeof e&&!("_type"in e)?Object.assign(Object.assign({},e),{_type:"error"}):e}(a);return K(S,Object.assign({alert:!r&&(null!==(o=null==c?void 0:c._alert)&&void 0!==o?o:!0===l),class:p("kol-form-field__msg",r&&"visually-hidden",d),closerAriaDescriptionId:f(),handleCloserClick:()=>{},hasCloser:!1,headingId:v("alert-heading"),id:b(n,"msg"),label:"",level:0,refCloserButton:()=>{},refCloserTooltip:()=>{},type:null!==(s=null==c?void 0:c._type)&&void 0!==s?s:"error",variant:"msg"},h),(null==c?void 0:c._description)||void 0)},U=P.forBlock("kol-form-field"),G=({hideLabel:e,label:i,renderNoTooltip:t})=>!t&&!r(i)&&!0===e,J=e=>{const i=M(e);return{[i]:!0,[`msg-type-${i}`]:!0}},W=(i,t)=>{const{renderNoLabel:o,renderNoTooltip:s,renderNoHint:a,id:n,required:d,alert:h,disabled:c,class:m,msg:v,hideMsg:f,hideLabel:y,label:g,infoPopover:j,hint:_,accessKey:L,shortKey:O,counter:D,readOnly:N,touched:C,maxLength:T,ariaDescribedBy:x,showBadge:F,tooltipAlign:P,variant:A,component:S="div",orientation:M,refInput:I,refTooltip:q}=i,z=e(i,["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"]),E=r(g),X=H(v,C),$=l(L,O),Q=G({hideLabel:y,label:g,renderNoTooltip:s}),W="fieldset"===S;return K(u,Object.assign({component:S,block:"kol-form-field",modifiers:Object.assign({disabled:Boolean(c),required:Boolean(d),touched:Boolean(C),"hide-label":Boolean(y),"read-only":Boolean(N),"hidden-msg":Boolean(f)},X?J(v):{}),class:p(A&&B(A,"form-field"),m),disabled:!(!W||!c)||void 0,"aria-describedby":x},z),!o&&K(V,{component:W?"legend":"label",class:W?"kol-form-field__label--legend":void 0,id:n,hasExpertSlot:E,hideLabel:y,label:g,accessKey:L,shortKey:O,readOnly:N,showBadge:F,infoPopover:j}),K("div",{class:U("input",{"orientation-horizontal":"horizontal"===M,"orientation-vertical":"vertical"===M}),ref:I},t,Q&&K("div",{class:U("tooltip")},K(k,{badgeText:$||"",label:g,align:P,id:b(n,"label"),refFloating:q}))),D&&!("soft"===D.maxLengthBehavior&&"number"!=typeof D.maxLength)&&K("div",{class:U("counter")},K("span",{"aria-hidden":"true",class:U("counter"),ref:D.visualRef}),K("span",{"aria-live":"polite",class:"visually-hidden",id:b(n,"counter"),ref:D.ariaRef})),X&&K(Y,{id:n,alert:h,hideMsg:f,msg:v}),!a&&K(R,{id:n,hint:_}),"number"==typeof T&&!D&&K("span",{id:b(n,"character-limit-hint"),class:"visually-hidden"},w("kol-character-limit-hint",{placeholders:{limit:String(T)}})))};class Z extends N{constructor(){super(...arguments),this.tooltipBehavior=new F(N.stateLess),this.smartButton=C((()=>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(y.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(y.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(y.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(y.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(y.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 T(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 i=this.shared.getRenderProp("infoPopover");if(!i)return;const{_content:t}=i,o=e(i,["_content"]);return{popoverButton:this.infoPopover.getFcProps(Object.assign(Object.assign({_variant:"ghost"},o),{_hideLabel:!0,_inline:!0})),content:t}}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){I.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=a(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){j.apply(e,(e=>this.shared.setRenderProp("disabled",e)))}applyHideLabel(e){_.apply(e,(e=>this.shared.setRenderProp("hideLabel",e)))}applyHideMsg(e){q.apply(e,(e=>this.shared.setRenderProp("hideMsg",e)))}applyHint(e){z.apply(e,(e=>this.shared.setRenderProp("hint",e)))}applyInfoPopover(e){E.apply(e,(e=>this.shared.setRenderProp("infoPopover",e)))}applyLabel(e){O.apply(e,(e=>this.shared.setRenderProp("label",e)),this.isRequired("label"))}applyMsg(e){$.apply(e,(e=>this.shared.setRenderProp("msg",e)))}applyName(e){D.apply(e,(e=>this.shared.setRenderProp("name",e))),this.formAssociation.watchName(e)}applyOn(e){X.apply(e,(e=>this.shared.setRenderProp("on",e)))}applySyncValueBySelector(e){this.formAssociation.watchSyncValueBySelector(e)}applyTooltipAlign(e){L.apply(null!=e?e:"top",(e=>this.shared.setRenderProp("tooltipAlign",e)))}applyTouched(e){Q.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&&g(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(y.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 G({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:r,readOnly:a,renderNoLabel:n,renderNoTooltip:d,required:h}){const c=this.shared,p=c.getState("id"),u=c.getRenderProp("label"),m=c.getRenderProp("tooltipAlign");return this.isTooltipShown()?(this.tooltipBehavior.watchAlign(m),this.tooltipBehavior.watchBadgeText(l(i,t)||""),this.tooltipBehavior.watchId(b(p,"label")),this.tooltipBehavior.watchLabel(u)):this.tooltipBehavior.destroy(),{id:p,disabled:c.getRenderProp("disabled"),msg:c.getRenderProp("msg"),hint:c.getRenderProp("hint"),label:u,hideLabel:c.getRenderProp("hideLabel"),hideMsg:c.getRenderProp("hideMsg"),touched:c.getRenderProp("touched"),showBadge:Boolean(i)||Boolean(t),required:h,readOnly:a,accessKey:i,shortKey:t,maxLength:r,counter:s,variant:o,class:e,tooltipAlign:m,alert:this.showAsAlert(),infoPopover:this.getInfoPopover(),renderNoLabel:n,renderNoTooltip:d,refInput:d?void 0:this.setInputRef,refTooltip:this.setTooltipRef}}}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={required:[O],optional:[I,j,_,q,z,E,X,$,D,L,Q]};export{Z as B,W as F,R as a,V as b,ee as c,ie as f,M as g,H as i}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{L as o,d as t,w as s}from"./common-BdSzSIXg.js";import{a}from"./index-
|
|
4
|
+
import{L as o,d as t,w as s}from"./common-BdSzSIXg.js";import{a}from"./index-8-BSSKQL.js";const e=(()=>{a((o=>{try{o.shadowRoot instanceof ShadowRoot&&t(o,s(o))}catch(o){}return"default"})),import("./devtools-CxUqjh1N.js").then((o=>{"object"==typeof o&&null!==o&&"function"==typeof o.initialize&&o.initialize()})).catch((t=>{o.error(t)}))})||(()=>{});export{e as g}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{h as s}from"./index-8-BSSKQL.js";import{s as i,X as t}from"./common-BdSzSIXg.js";import{B as a}from"./base-web-component-Bh2NCN7p.js";import{b as o,e,a as h,n as l,c as p,d as r,B as n}from"./component-BC1TpQVD.js";import{F as d}from"./behavior-DUy0X7U1.js";import{T as m}from"./behavior-DmR4WVXd.js";import{a as c,b as y,c as b,f as u,g as f,h as v,s as C,i as B,l as j,d as x,t as A,e as D,v as I}from"./component-Bldy_ShO.js";import{d as S}from"./disabled-C2DzYwwy.js";import{i as g}from"./id-lCAtMmMx.js";import"./props-from-config-LBgEHmcL.js";import{l as K}from"./label-with-expert-slot-BVqi0_Fb.js";import{v as T}from"./access-and-short-key-ijzCZfHm.js";import{c as L}from"./element-interaction-sGYdEpmv.js";import{d as w,K as H}from"./events-CRHxtwup.js";import{p as V,a as E}from"./controller-CZcQ57AP.js";class F extends a{constructor(){super(...arguments),this.ctaRef=L(),this.propsConfig=o,this.tooltipBehavior=new m(this.stateAccess),this.handleClick=s=>{s.stopPropagation(),this.tooltipBehavior.hideTooltip();const t=this.getRenderProp("type");if("submit"===t)V({form:this.host});else if("reset"===t)E({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,H.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,H.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,H.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,H.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){c.apply(s,(s=>this.setRenderProp("accessKey",s))),T(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){e.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){S.apply(s,(s=>this.setRenderProp("disabled",s)))}applyHideLabel(s){v.apply(s,(s=>this.setRenderProp("hideLabel",s)))}applyIcons(s){C.apply(s,(s=>this.setRenderProp("icons",s)))}applyId(s){g.apply(s,(s=>this.setRenderProp("id",s)))}applyInline(s){B.apply(s,(s=>this.setRenderProp("inline",s)))}applyLabel(s){K.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){p.apply(s,(s=>this.setRenderProp("on",s)))}applyRole(s){j.apply(s,(s=>this.setRenderProp("role",s)))}applyShortKey(s,i){x.apply(s,(s=>this.setRenderProp("shortKey",s))),T(i,s)}applySyncValueBySelector(s){this.formAssociation.watchSyncValueBySelector(s)}applyTabIndex(s){"number"==typeof s?A.apply(s,(s=>this.setRenderProp("tabIndex",s))):this.unsetRenderProp("tabIndex")}applyTooltipAlign(s){D.apply(null!=s?s:"top",(s=>{this.setRenderProp("tooltipAlign",s),this.tooltipBehavior.watchAlign(s)}))}applyType(s){r.apply(s,(s=>this.setRenderProp("type",s)))}applyValue(s){this.formValue=s,this.formAssociation.setFormAssociatedValue(s)}applyVariant(s){var i;I.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(n,Object.assign({},this.getButtonFCProps()))}}export{F as B}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{r as t}from"./aria-labelledby-DqJY_4G-.js";import{G as e,p as o,L as l}from"./common-BdSzSIXg.js";import{h as i,F as s,f as n}from"./index-8-BSSKQL.js";import{B as a}from"./base-web-component-Bh2NCN7p.js";import{c as r}from"./item-H09kNXn9.js";import{c}from"./item-pool-BOxAYePG.js";import{c as d}from"./item-C2HHBTvm.js";import{c as h,f as u,n as b,a as p,r as v,t as f,B as m,v as y}from"./props-from-config-LBgEHmcL.js";import{l as g}from"./label-lang-segment-B13iL7iy.js";import{v as k,j}from"./component-Bldy_ShO.js";import{c as C,d as S,e as w}from"./component-names-Dhbtt0mX.js";import{t as _}from"./i18n-BLkzMf6D.js";import{b as x}from"./bem-registry-SKACeCny.js";import{B as O}from"./component-BC1TpQVD.js";import{I as $}from"./component-LadkF9an.js";import{L}from"./component-ZJiUl6kZ.js";import{r as B}from"./component-Cj3P_f35.js";import{S as D}from"./component-DisuGN16.js";import{T as F}from"./component-D5yKRPCZ.js";import{a as T}from"./tslib.es6-QNbPBOk5.js";import{n as z,c as I}from"./dev.utils-DM7Qhcet.js";import{d as A,K as E}from"./events-CRHxtwup.js";import{A as M}from"./component-vxdandl4.js";import{l as H}from"./level-eGeMFn0b.js";import{c as N}from"./element-interaction-sGYdEpmv.js";import{u as K,l as P,D as G}from"./scroll-lock-CIv7iOPB.js";import{h as R}from"./tooltip-open-tracking-D3tCiiGP.js";import{d as W,w as Q}from"./width-BJNhiv_8.js";import{r as V,C as X}from"./component-BUzgs8fh.js";import{T as J}from"./behavior-DmR4WVXd.js";import{C as U}from"./keyboard-DNd73LVa.js";const Y=(o,l,i)=>{const s=t=>"string"==typeof t||void 0===t;return e(o,"_ariaLabelledby",s,new Set(["string"]),i),s(i)?t(l,i):[]},Z=t=>"number"==typeof t&&Number.isInteger(t)&&t>=0,q=h("fixedCols",[0,0],(t=>u(t)),(t=>2===t.length&&t.every(Z))),tt=h("hasSettingsMenu",!1,b),et=p();function ot(t){const e="string"==typeof t?o(t):t;if(Array.isArray(e))return e;throw new Error("Invalid table data: expected an array of row objects.")}function lt(t){return t.every((t=>"object"==typeof t&&null!==t))}const it=h("data",[],ot,lt),st=h("dataFoot",[],ot,lt),nt=t=>Array.isArray(t)&&t.every((t=>Array.isArray(t))),at=h("headers",{horizontal:[],vertical:[]},(function(t){const e="string"==typeof t?o(t):t;if("object"!=typeof e||null===e)throw new Error("Invalid table headers: expected an object.");const{horizontal:l=[],vertical:i=[]}=e;if(!nt(l)||!nt(i))throw new Error("Invalid table headers: horizontal and vertical must be arrays of header rows.");return{horizontal:l,vertical:i}}),(function({horizontal:t,vertical:e}){return[...t,...e].every((t=>t.every((t=>void 0===t.width||"number"==typeof t.width))))})),rt=h("loading",!1,b),ct=h("selection",!1,(function(t){const e="string"==typeof t?o(t):t;if("object"==typeof e&&null!==e)return e;throw new Error("Invalid table selection: expected an object.")}),(function(t){return!1===t||"function"==typeof t.label&&(!t.selectedKeys||Array.isArray(t.selectedKeys))})),dt={required:[g,it],optional:[q,tt,et,st,at,rt,ct,k]},ht=t=>t.flatMap((t=>t.filter((t=>"string"==typeof t.key||"function"==typeof t.render)))),ut=t=>{const e=ht(t.horizontal);if(e.length>0)return{cells:e,horizontal:!0};const o=ht(t.vertical);return{cells:o,horizontal:0===o.length}},bt=(t,e)=>{let o=0;return Array.isArray(t)&&t.forEach((t=>{var l;o+=null!==(l=t[e])&&void 0!==l?l:1})),o},pt=(t,e)=>{const o=Math.max(0,...t.map((t=>bt(t,"colSpan"))));return 0===o?e.length:o},vt=t=>{var e;return null!==(e=null==t?void 0:t.reduce(((t,e)=>"visible"in e&&!1===e.visible?t:t+(e.colSpan||1)),0))&&void 0!==e?e:0},ft=(t,e,o,l)=>{if(void 0!==l&&!e)return l<t[0]?"left":t[1]>0&&l>=o-t[1]?"right":void 0},mt=(t,e,o,l)=>{var i,s,n,a,r,c;const d=[];for(let a=0;a<e;a++)"left"===ft(o,l,e,a)&&(d[a]=(null!==(i=d[a-1])&&void 0!==i?i:0)+(null!==(n=null===(s=t[a-1])||void 0===s?void 0:s.width)&&void 0!==n?n:0));for(let i=e-1;i>=0;i--)"right"===ft(o,l,e,i)&&(d[i]=(null!==(a=d[i+1])&&void 0!==a?a:0)+(null!==(c=null===(r=t[i+1])||void 0===r?void 0:r.width)&&void 0!==c?c:0));return d},yt=(t,e,o,l)=>{const i=void 0===e?void 0:t[e];return o&&l?`calc( var(--kol-table-selection-col-width) + ${i}px)`:`${i}px`},gt=(t,e,o,l)=>{if(0===(e.horizontal?t.horizontal:t.vertical).length)return;const i=e.cells[o];return(null==i?void 0:i.type)===l?i:void 0},kt=({data:t,dataFoot:e,headers:o,isFoot:l,noEntriesLabel:i,primaryHeaders:s})=>{const n=pt(o.horizontal,t),a=s.cells;let r=((t,e,o)=>{const l=Math.max(0,...t.map((t=>bt(t,"rowSpan"))));return 0===l?e.length:l-o})(o.vertical,t,e.length),c=0;l&&(c=r,r+=e.length);const d=[],h=[],u=[];o.vertical.forEach(((t,e)=>{h[e]=0,u[e]=[]}));for(let i=c;i<r;i++){const r=[];o.vertical.forEach(((t,e)=>{let o=0;if(u[e].forEach((t=>o+=t)),o<=i){const l=t[i-o+h[e]];if("object"==typeof l){r.push(Object.assign(Object.assign({},l),{headerCell:!0,data:{}}));let t=1;if("number"==typeof l.rowSpan&&l.rowSpan>1&&(t=l.rowSpan),u[e].push(t),"number"==typeof l.colSpan&&l.colSpan>1)for(let o=1;o<l.colSpan;o++)u[e+o].push(t);h[e]++}}}));for(let o=0;o<n;o++)if(s.horizontal){const s=l?e[i-c]:t[i],n=a[o];"object"==typeof n&&null!==n&&"object"==typeof s&&null!==s&&r.push(Object.assign(Object.assign({},n),{colIndex:o,colSpan:void 0,rowSpan:void 0,data:s,label:s[n.key]}))}else{const e=a[i];"object"==typeof e&&null!==e&&"object"==typeof t[o]&&null!==t[o]&&r.push(Object.assign(Object.assign({},e),{colIndex:o,colSpan:void 0,rowSpan:void 0,data:t[o],label:t[o][e.key]}))}d.push(r)}if(0===t.length){let t=vt(o.horizontal[0]),e=0;o.vertical.length>0&&(t-=o.vertical.length,o.vertical[0].forEach((t=>{e+=t.rowSpan||1})));const l={colSpan:t,label:i,render:void 0,rowSpan:Math.max(e,1)};0===d.length?d.push([l]):d[0].push(l)}return d},jt=({horizontal:t,vertical:e})=>{const o=t.flatMap((t=>t.filter((t=>!1!==t.visible&&void 0!==t.width&&t.width>0)).map((t=>t.width)))),l=[...e.flatMap((t=>t.filter((t=>void 0!==t.width&&t.width>0)).map((t=>t.width)))),...o];return 0===l.length?"0px":1===l.length?`${l[0]}px`:`calc(${l.map((t=>`${t}px`)).join(" + ")})`},Ct=t=>void 0===t?[]:Array.isArray(t)?t:[t],St=t=>{var e;return null!==(e=t?t.keyPropertyName:void 0)&&void 0!==e?e:"id"},wt=t=>{const e=t?Ct(t.selectedKeys):[];return{disabledKeys:new Set((t?Ct(t.disabledKeys):[]).map(String)),keyPropertyName:St(t),selectedKeys:e,selectedKeysSet:new Set(e.map(String))}},_t=(t,e)=>t.filter((t=>!e.disabledKeys.has(String(t[e.keyPropertyName])))),xt=x.forBlock("kol-table"),Ot=xt("body"),$t=xt("cell-actions"),Lt=xt("cell-states"),Bt=xt("footer"),Dt=xt("head"),Ft=xt("head-row"),Tt=xt("scroll-container"),zt=xt("selection-icon"),It=xt("selection-input-tooltip"),At=xt("sort"),Et=xt("sort-button"),Mt=xt("sort-order"),Ht=xt("table"),Nt=`${xt("focus-element")} ${xt("caption")}`,Kt="caption",Pt=(t,e)=>ft(t.fixedCols,t.stickyColsDisabled,t.maxCols,e),Gt=(t,e,o)=>({left:"left"===e?yt(t.fixedOffsets,o,!0,!1!==t.selection):void 0,right:"right"===e?yt(t.fixedOffsets,o,!1,!1!==t.selection):void 0}),Rt=(t,e,o)=>{var l,i;return null!==(i=t.primaryHeaders.horizontal&&(null===(l=e[0])||void 0===l?void 0:l.data)?t.rowKeys.get(e[0].data):void 0)&&void 0!==i?i:String(o)},Wt=t=>{const e=_("kol-sort");return"number"==typeof t&&t>0?`${e} – ${_("kol-table-sort-order").replace("{{order}}",`${t}`)}`:e},Qt=(t,e,o,l,s)=>{if(!1===e.visible)return"";const n=!1!==(null==e?void 0:e.sortable)&&"string"==typeof e.sortDirection;let a="none",r="kolicon-sort-neutral";if(n&&e.sortDirection)switch(e.sortDirection){case"ASC":r="kolicon-sort-asc",a="ascending";break;case"DESC":r="kolicon-sort-desc",a="descending";break;default:a="none"}const c=s?"row":"number"==typeof e.colSpan&&e.colSpan>1?"colgroup":"col",d="number"==typeof e.sortOrder&&e.sortOrder>0?e.sortOrder:void 0,h=void 0!==e.width?`${e.width}px`:void 0,u=Pt(t,l),{left:b,right:p}=Gt(t,u,l),v=e.textAlign,f=n?e.sortDirection:void 0;return i("th",{key:`${o}-${l}-${e.label}`,class:xt("cell",{[a]:!0,"align-center":"center"===v,"align-justify":"justify"===v,"align-left":"left"===v,"align-right":"right"===v,header:!0,"sticky-left":"left"===u,"sticky-right":"right"===u}),scope:c,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{width:h,left:b,right:p},"aria-sort":a,"data-sort":f?`sort-${f}`:void 0},f?i("span",{class:At},i(O,Object.assign({},t.getButtonFcProps(`sort-${s?"vertical":"horizontal"}-${o}-${l}`,{_icons:{right:r},_label:e.label,_ariaDescription:Wt(d),_on:{onClick:o=>{t.handleSort(o,{key:e.key,currentSortDirection:f})}}},{class:Et}))),d&&i("span",{"aria-hidden":"true",class:Mt},d)):e.label)},Vt=(t,e,o,l,s=!1)=>i("tr",{class:xt("row",{body:!s,footer:s}),key:`row-${Rt(t,e,o)}`},((t,e,o)=>{var l;const{handleSelectionChange:s,selection:n,selectionModel:a}=t;if(!n)return"";const r=null===(l=e[0])||void 0===l?void 0:l.data;if(!r)return"";const c=r[a.keyPropertyName],d=n.multiple||void 0===n.multiple,h=String(c),u=a.selectedKeysSet.has(h),b=a.disabledKeys.has(h),p=n.label(r),v={name:"selection",checked:u,disabled:b,id:String(c),"aria-label":p};return i("td",{key:`tbody-${o}-selection`,class:xt("cell",{selection:!0})},i("div",{class:xt("selection",{checked:u})},d?i("label",{class:xt("selection-label",{disabled:b})},i($,{class:zt,icons:"kolicon "+(u?"kolicon-check":""),label:""}),i("input",Object.assign({class:xt("selection-input",{checkbox:!0})},v,{type:"checkbox",onInput:t=>{const e=u?a.selectedKeys.filter((t=>String(t)!==h)):[...a.selectedKeys,c];s(t,e)}}))):i("label",{class:xt("selection-label")},i("input",Object.assign({class:xt("selection-input",{radio:!0})},v,{type:"radio",onInput:t=>{s(t,[c])}}))),i("div",{class:It},i(F,{label:p,badgeText:"",id:`${c}-label`,refFloating:()=>{}}))))})(t,e,o),e.map(((e,s)=>((t,e,o,l,s)=>{if(!1===e.visible)return"";let n=`${o}-${l}-${e.label}`;if(e.data){const i=t.rowKeys.get(e.data);n=i?`${i}-${t.primaryHeaders.horizontal?l:o}`:n}if(e.headerCell)return Qt(t,e,o,l,s);const a="function"!=typeof e.render&&e.label===t.translateNoEntries,r=gt(t.headers,t.primaryHeaders,l,"action"),c=Boolean(r&&e.data),d=gt(t.headers,t.primaryHeaders,l,"state"),h=Boolean(d&&e.data),u=Pt(t,l),{left:b,right:p}=Gt(t,u,e.colIndex),v="function"==typeof e.render,f=e.textAlign;return i("td",{key:`cell-${n}-${t.settingsChangedCounter}`,class:xt("cell",{actions:c,"align-center":"center"===f,"align-justify":"justify"===f,"align-left":"left"===f,"align-right":"right"===f,body:!0,states:h,"sticky-left":"left"===u,"sticky-right":"right"===u}),"aria-atomic":a?"false":void 0,"aria-live":a?"polite":void 0,"aria-relevant":a?"text":void 0,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{textAlign:f,left:b,right:p},ref:v?o=>t.handleRenderCell(e,o):void 0},c&&r&&e.data?((t,e,o,l)=>i("div",{class:$t},e.actions(o).map(((e,o)=>{const s=`action-${l}-${o}`;return"button"===e.type?i("span",{key:s},i(O,Object.assign({},t.getButtonFcProps(s,e)))):"link"===e.type?i("span",{key:s},i(L,Object.assign({},t.getLinkFcProps(s,e)))):null}))))(t,r,e.data,n):h&&d&&e.data?((t,e,o)=>{const l=t.key;if(!l)return"";const s=e[l];return s?i("div",{class:Lt},s.map(((t,e)=>"badge"===t.type?i(C,Object.assign({key:`state-${o}-${e}`},t)):null))):""})(d,e.data,n):v?"":e.label)})(t,e,o,s,l)))),Xt=(t,e,o)=>{const l=t.headers.vertical.length+vt(null==o?void 0:o[0])+(t.selection?1:0);return i("tr",{"aria-hidden":"true",class:xt("spacer",{[e]:!0})},i("td",{class:xt("spacer-line",{[e]:!0}),colSpan:l}))},Jt=t=>{const e=v(dt,t),{data:o,dataFoot:l,externalLabelElements:n,fixedCols:a,hasScrollbar:r,hasSettingsMenu:c,headers:d,label:h,loading:u,refScrollContainer:b,refTable:p,selection:y,stickyColsDisabled:g,variant:k}=e,C=_("kol-no-entries"),S=ut(d),w=pt(d.horizontal,o),x=Object.assign(Object.assign({},e),{fixedOffsets:mt(S.cells,w,a,g),maxCols:w,primaryHeaders:S,selectionModel:wt(y),translateNoEntries:C}),O=kt({data:o,dataFoot:l,headers:d,isFoot:!1,noEntriesLabel:C,primaryHeaders:S}),L=0===n.length;return i(m,{block:"kol-table",class:j(k,"table")},c&&t.renderSettings(d.horizontal),i("div",{ref:b,class:Tt,tabindex:r?L?"-1":"0":void 0},i("table",{ref:p,"aria-labelledby":L?Kt:void 0,class:Ht,style:{minWidth:jt(d)}},L&&i("caption",{class:Nt,id:Kt,ref:t=>{t&&(r?t.tabIndex=0:t.removeAttribute("tabindex"))}},B(h)),i("thead",{class:Dt},[d.horizontal.map(((t,e)=>i("tr",{class:Ft,key:`thead-${e}`},y&&(t=>{const{data:e,handleSelectionChange:o,selection:l,selectionModel:s}=t;if(!l)return i("td",{class:xt("cell",{header:!0}),key:"thead-0"});if(!1===l.multiple)return i("th",{scope:"col",key:"thead-0-selection",class:xt("cell",{header:!0,selection:!0})},i("span",{class:"visually-hidden"},_("kol-table-selection")));const n=s.selectedKeys.filter((t=>!s.disabledKeys.has(String(t)))).length,a=n===_t(e,s).length,r=0!==n&&!a;let c;return c=_(0===n?"kol-table-selection-all":a&&!r?"kol-table-selection-none":"kol-table-selection-indeterminate"),i("th",{scope:"col",key:"thead-0-selection",class:xt("cell",{header:!0,selection:!0})},i("span",{class:"visually-hidden"},_("kol-table-selection")),i("div",{class:xt("selection",{checked:a,indeterminate:r})},i("label",{class:xt("selection-label")},i($,{class:zt,icons:"kolicon "+(r?"kolicon-minus":a?"kolicon-check":""),label:""}),i("input",{class:xt("selection-input",{checkbox:!0}),name:"selection",checked:a&&!r,indeterminate:r,"aria-label":c,type:"checkbox",onInput:t=>{o(t,((t,e,o)=>{const l=e.selectedKeys.filter((t=>e.disabledKeys.has(String(t))));return o&&l.push(..._t(t,e).map((t=>null==t?void 0:t[e.keyPropertyName]))),l})(e,s,!a))}})),i("div",{class:It},i(F,{label:c,badgeText:"",refFloating:()=>{}}))))})(x),0===e&&(({headers:t})=>{const{horizontal:e,vertical:o}=t;if(0===e.length||0===o.length)return i(s,null);const l=o.reduce(((t,e)=>{var o,l;return t+(null!==(l=null===(o=null==e?void 0:e[0])||void 0===o?void 0:o.width)&&void 0!==l?l:0)}),0);return i("td",{"aria-hidden":"true",colSpan:o.length,rowSpan:e.length,style:l>0?{width:`${l}px`}:void 0})})(x),Array.isArray(t)&&t.map(((t,o)=>Qt(x,t,e,o,!1)))))),Xt(x,"head",d.horizontal)]),i("tbody",{class:Ot},i("div",{class:xt("loader",{shown:u})},i(D,{label:_(u?"kol-table-data-loading":"kol-table-data-loaded").replace("{{caption}}",f(h)),show:u,variant:"cycle"})),O.map(((t,e)=>Vt(x,t,e,!0)))),(t=>{const{dataFoot:e,headers:o,primaryHeaders:l,translateNoEntries:s}=t;if(0===e.length)return null;const n=kt({data:e,dataFoot:e,headers:o,isFoot:!0,noEntriesLabel:s,primaryHeaders:l}),a=pt(o.horizontal,e),r=Object.assign(Object.assign({},t),{fixedOffsets:mt(l.cells,a,t.fixedCols,t.stickyColsDisabled),maxCols:a});return i("tfoot",{class:Bt},[Xt(t,"foot",n),n.map(((t,e)=>Vt(r,t,e,!0,!0)))])})(x))))},Ut=({dialog:t,card:e},o)=>i(G,Object.assign({},t),e?i(X,Object.assign({},e),o):o),Yt=x.forBlock("kol-table")("settings"),Zt=x.forBlock("kol-table-settings"),qt=Zt(),te=Zt("actions"),ee=Zt("column"),oe=Zt("column-label"),le=Zt("columns"),ie=Zt("content"),se=Zt("error-message"),ne=t=>Number.isFinite(t)&&void 0!==t&&t>0?t:void 0,ae=()=>{},re=(t,e)=>{const o=_("kol-table-settings"),l=_("kol-table-settings-cancel"),s=_("kol-table-settings-apply"),n=_("kol-table-settings-error-all-invisible");let d,h=!1,u=!1;const b=()=>{h=!0,e()},p=c((()=>r(t)),(t=>t.syncListeners()),(t=>t.destroy())),v=((t,e)=>{const o=N(),l=N(),i=new J(a.stateLess),s=z(),n=I("dialog-heading"),r={};let c,h=!0,u={};const b=t=>!d||A(d,t),p=()=>{var t,e;null===(e=null===(t=o.el)||void 0===t?void 0:t.close)||void 0===e||e.call(t)},v=t=>{var e;R(t),t.defaultPrevented||(null===(e=u.onCancel)||void 0===e||e.call(u,t),t.defaultPrevented||b(E.cancel)||t.preventDefault())},m=t=>{var e;t.target===o.el&&(K(r),null===(e=u.onClose)||void 0===e||e.call(u),b(E.close))},k=()=>{i.hideTooltip(),p(),b(E.close)};return{getFcProps:e=>{var a,r,d;let b="",p=0,j="blank",C="100%";g.apply(e.label,(t=>{b=t})),H.apply(null!==(a=e.level)&&void 0!==a?a:0,(t=>{p=t})),W.apply(e.on,(t=>{u=t})),y.apply(null!==(r=e.variant)&&void 0!==r?r:"blank",(t=>{j=t})),Q.apply(null!==(d=e.width)&&void 0!==d?d:"100%",(t=>{C=t}));const S="card"===j;return S&&!c&&(c=V(t()),i.componentWillLoad({label:c.label,align:c.tooltipAlign})),{dialog:{handleCancel:v,handleClose:m,label:f(b),labelledBy:S?n:void 0,modal:h,refDialog:o,variant:j,width:C},card:S&&c?{ariaDescriptionId:s,closeButtonProps:c,handleClose:k,hasCloser:!0,headingId:n,label:b,level:p,refCloseButton:l,refTooltip:i.setTooltipElementRef}:void 0}},show:t=>{var l,i;const s=o.el;(null==s?void 0:s.open)||(h!==t&&(h=t,e()),t?(null===(l=null==s?void 0:s.showModal)||void 0===l||l.call(s),s&&P(r)):null===(i=null==s?void 0:s.show)||void 0===i||i.call(s))},close:p,syncListeners:()=>{l.el&&i.syncListeners(void 0,l.el,!0)},destroy:()=>{p(),K(r),i.destroy()}}})(t,b),m=I("alert-heading"),k=z();let j,C=[],x=[],$=null;const L=()=>{var t;return null!==(t=x[x.length-1])&&void 0!==t?t:[]},B=t=>{x=x.map(((e,o,l)=>o===l.length-1?t:e)),b()},D=(t,e)=>{const o=[...L()],l=o.findIndex((e=>e.key===t));if(-1===l)return;let i;if("up"===e){if(0===l)return;i=l-1}else{if(l===o.length-1)return;i=l+1}const[s]=o.splice(l,1);o.splice(i,0,s),B(o)},F=t=>{if(t.preventDefault(),!L().some((t=>!1!==t.visible)))return $=n,void b();if(d){$=null,C=x.map((t=>t.map((t=>Object.assign({},t))))),b();const t=x.map((t=>t.map((t=>{const e=t,{hidable:o,resizable:l,sortable:i,visible:s,width:n}=e,a=T(e,["hidable","resizable","sortable","visible","width"]),r=Object.assign({},a);return void 0!==s&&(r.visible=s),void 0!==o&&(r.hidable=o),void 0!==i&&(r.sortable=i),void 0!==l&&(r.resizable=l),null!=n&&(r.width=n),r}))));A(d,E.changeHeaderCells,t),v.close()}},G=t=>{t&&(d=t)};return{beginRender:()=>{p.beginRender(),u=h,h=!1},render:t=>{var e;u||t===j||(j=t,C=(e=t).map((t=>[...t])),x=e.map((t=>t.map((t=>Object.assign({},t))))));const n=L();return i("div",{class:Yt,ref:G},i("div",{class:qt},i(O,Object.assign({},p.get("toggle").getFcProps({_icons:"kolicon-settings",_label:o,_hideLabel:!0,_on:{onClick:()=>v.show(!0)}})))),i(Ut,Object.assign({},v.getFcProps({label:o,variant:"card",width:"fit-content"})),i("div",{class:ie},$&&i("div",{class:se},i(M,{alert:!1,closerAriaDescriptionId:k,handleCloserClick:ae,hasCloser:!1,headingId:m,label:$,level:0,refCloserButton:ae,refCloserTooltip:ae,type:"error",variant:"msg"})),i("form",{onSubmit:F},i("div",{class:le},n.map(((t,e)=>((t,e,o)=>i("div",{key:t.key,class:ee},i(w,{_checked:!1!==t.visible,_label:_(t.hidable?"kol-table-settings-column-hidable":"kol-table-settings-column-not-hidable",{placeholders:{column:t.label}}),_value:!0,_hideLabel:!0,_disabled:!1===t.hidable,_on:{onInput:(e,o)=>{var l;return((t,e)=>{const o=L().map((o=>o.key===t&&!1!==o.hidable?Object.assign(Object.assign({},o),{visible:Boolean(e)}):o));B(o)})(null!==(l=t.key)&&void 0!==l?l:"",o)}}}),i("span",{class:oe},t.label),i(S,{_hideLabel:!0,_value:ne(t.width),_label:_("kol-table-settings-column-width",{placeholders:{column:t.label}}),_min:1,_disabled:!1===t.resizable,_on:{onInput:(e,o)=>{var l;return((t,e)=>{const o=ne(Number(e)),l=L().map((e=>e.key===t&&!1!==e.resizable?Object.assign(Object.assign({},e),{width:o}):e));B(l)})(null!==(l=t.key)&&void 0!==l?l:"",o)}}}),i(O,Object.assign({},p.get(`move-up-${t.key}`).getFcProps({_icons:"kolicon-chevron-up",_label:_(!1===t.sortable||0===e?"kol-table-settings-not-move":"kol-table-settings-move-up",{placeholders:{column:t.label}}),_hideLabel:!0,_variant:"ghost",_on:{onClick:()=>{var e;return D(null!==(e=t.key)&&void 0!==e?e:"","up")}},_disabled:!1===t.sortable||0===e}))),i(O,Object.assign({},p.get(`move-down-${t.key}`).getFcProps({_icons:"kolicon-chevron-down",_label:_(!1===t.sortable||e===o.length-1?"kol-table-settings-not-move":"kol-table-settings-move-down",{placeholders:{column:t.label}}),_hideLabel:!0,_variant:"ghost",_on:{onClick:()=>{var e;return D(null!==(e=t.key)&&void 0!==e?e:"","down")}},_disabled:!1===t.sortable||e===o.length-1})))))(t,e,n)))),i("div",{class:te},i(O,Object.assign({},p.get("cancel").getFcProps({_label:l,_variant:"secondary",_on:{onClick:()=>(x=C.map((t=>[...t])),$=null,b(),void v.close())}}))),i(O,Object.assign({},p.get("apply").getFcProps({_label:s,_variant:"primary",_type:"submit"}))))))))},sync:()=>{p.endRender(),v.syncListeners()},destroy:()=>{p.destroy(),v.destroy()}}};class ce extends a{constructor(){super(...arguments),this.hasExternalTableLabelRefs=!1,this.cellRenderTimeouts=new Map,this.buttonItems=c((()=>r((()=>this.host))),(t=>t.syncListeners()),(t=>t.destroy())),this.settings=re((()=>this.host),(()=>n(this))),this.linkItems=c((()=>d((()=>n(this)))),(t=>t.syncListeners()),(t=>t.destroy())),this.propsConfig=dt,this.handleResize=()=>{this.updateScrollbarState(),clearTimeout(this.resizeDebounceTimeout),this.resizeDebounceTimeout=setTimeout((()=>{this.updateStickyColsDisabled()}),150)},this.handleSelectionChange=(t,e)=>{this.emitSelectionChange(t,e)},this.handleSort=(t,e)=>{this.emitSort(t,e)},this.handleRenderCell=(t,e)=>{e&&(clearTimeout(this.cellRenderTimeouts.get(e)),this.cellRenderTimeouts.set(e,setTimeout((()=>{if(this.cellRenderTimeouts.delete(e),"function"==typeof t.render){const o=t.render(e,t,t.data,this.getRenderProp("data"));"string"==typeof o&&(e.textContent=o)}}))))},this.refScrollContainer=t=>{this.scrollContainerElement=t},this.refTable=t=>{this.tableElement=t,this.syncTableLabel(this.getState("externalLabelElements"))},this.getButtonFcProps=(t,e,o)=>this.buttonItems.get(t).getFcProps(e,o),this.renderSettings=t=>this.settings.render(t),this.getLinkFcProps=(t,e)=>this.linkItems.get(t).getFcProps(e)}observeScrollContainer(){this.scrollContainerElement&&ResizeObserver&&(this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.scrollContainerElement)),this.updateStickyColsDisabled()}teardownTable(){var t;null===(t=this.resizeObserver)||void 0===t||t.disconnect(),clearTimeout(this.resizeDebounceTimeout),this.cellRenderTimeouts.forEach((t=>clearTimeout(t))),this.cellRenderTimeouts.clear(),this.buttonItems.destroy(),this.linkItems.destroy(),this.settings.destroy()}syncTableItems(){this.buttonItems.endRender(),this.linkItems.endRender(),this.settings.sync()}applyData(t){it.apply(t,(t=>{this.setRenderProp("data",t),this.setState("rowKeys",((t,e)=>new Map(t.map((t=>{var o;return[t,null!==(o=e.get(t))&&void 0!==o?o:z()]}))))(t,this.getState("rowKeys")))}))}applyDataFoot(t){st.apply(t,(t=>this.setRenderProp("dataFoot",t)))}applyFixedCols(t){q.apply(t,(t=>this.setRenderProp("fixedCols",t))),this.updateStickyColsDisabled()}applyHasSettingsMenu(t){tt.apply(t,(t=>this.setRenderProp("hasSettingsMenu",t)))}applyHeaders(t){at.apply(t,(t=>this.setRenderProp("headers",(t=>0===t.horizontal.length?t:Object.assign(Object.assign({},t),{horizontal:t.horizontal.map((t=>t.map((t=>Object.assign(Object.assign({},t),{visible:"boolean"!=typeof t.visible||t.visible,hidable:"boolean"!=typeof t.hidable||t.hidable})))))}))(t))))}applyLabel(t){g.apply(t,(t=>this.setRenderProp("label",t)),this.isRequired("label"))}applyLoading(t){rt.apply(t,(t=>this.setRenderProp("loading",t)))}applyOn(t){et.apply(t,(t=>this.setRenderProp("on",t)))}applySelection(t){ct.apply(t,(t=>this.setRenderProp("selection",t))),this.updateStickyColsDisabled()}applyVariant(t){k.apply(t,(t=>this.setRenderProp("variant",t)))}syncTableLabel(t){this.tableElement&&"ariaLabelledByElements"in this.tableElement&&((null==t?void 0:t.length)?(this.tableElement.ariaLabelledByElements=t,this.hasExternalTableLabelRefs=!0,l.debug([this.tableElement,t,this.tableElement.ariaLabelledByElements])):this.hasExternalTableLabelRefs&&(this.hasExternalTableLabelRefs=!1,this.tableElement.ariaLabelledByElements=null,this.tableElement.setAttribute("aria-labelledby",Kt)))}moveCheckboxFocus(t){var e,o,l;if("ArrowUp"!==t.key&&"ArrowDown"!==t.key)return;const i=Array.from(null!==(o=null===(e=this.scrollContainerElement)||void 0===e?void 0:e.querySelectorAll(".kol-table__selection-input--checkbox"))&&void 0!==o?o:[]),s=null===(l=this.scrollContainerElement)||void 0===l?void 0:l.querySelector(":focus");let n=i.indexOf(s);n>-1&&(t.preventDefault(),n=(n+("ArrowDown"===t.key?1:i.length-1))%i.length,i[n].focus())}applyChangedHeaderCells(t){const e=Object.assign(Object.assign({},this.getRenderProp("headers")),{horizontal:t.detail});this.setRenderProp("headers",e),this.setState("settingsChangedCounter",this.getState("settingsChangedCounter")+1);const o=this.getRenderProp("on")[U.onChangeHeaderCells];"function"==typeof o&&o(t,e)}updateScrollbarState(){if(this.scrollContainerElement){const{clientHeight:t,clientWidth:e,scrollHeight:o,scrollWidth:l}=this.scrollContainerElement;this.setState("hasScrollbar",l>e||o>t&&["auto","scroll"].includes(getComputedStyle(this.scrollContainerElement).overflowY))}}calculateFixedColsWidth(){var t,e,o,l,i,s;const[n,a]=this.getRenderProp("fixedCols"),r=this.getRenderProp("headers"),c=ut(r).cells,d=pt(r.horizontal,this.getRenderProp("data"));let h=0;for(let o=0;o<n&&o<c.length;o++)h+=null!==(e=null===(t=c[o])||void 0===t?void 0:t.width)&&void 0!==e?e:0;for(let t=d-a;t<d&&t<c.length;t++)h+=null!==(l=null===(o=c[t])||void 0===o?void 0:o.width)&&void 0!==l?l:0;if(this.getRenderProp("selection")){const t=null===(i=this.scrollContainerElement)||void 0===i?void 0:i.querySelector(".kol-table__cell--selection");h+=null!==(s=null==t?void 0:t.offsetWidth)&&void 0!==s?s:0}return h}updateStickyColsDisabled(){if(!this.scrollContainerElement)return void this.setState("stickyColsDisabled",!1);const t=this.calculateFixedColsWidth();this.setState("stickyColsDisabled",t>0&&t>=this.scrollContainerElement.clientWidth)}emitSelectionChange(t,e){const o=this.getRenderProp("on")[U.onSelectionChange];"function"==typeof o&&o(t,e),this.host&&A(this.host,E.selectionChange,e)}emitSort(t,e){const o=this.getRenderProp("on")[U.onSort];"function"==typeof o&&e.key&&o(t,e),this.host&&A(this.host,E.sort,e)}renderTableStatelessFC(){return this.buttonItems.beginRender(),this.linkItems.beginRender(),this.settings.beginRender(),i(Jt,{data:this.getRenderProp("data"),dataFoot:this.getRenderProp("dataFoot"),externalLabelElements:this.getState("externalLabelElements"),fixedCols:this.getRenderProp("fixedCols"),getButtonFcProps:this.getButtonFcProps,getLinkFcProps:this.getLinkFcProps,renderSettings:this.renderSettings,handleRenderCell:this.handleRenderCell,handleSelectionChange:this.handleSelectionChange,handleSort:this.handleSort,hasScrollbar:this.getState("hasScrollbar"),hasSettingsMenu:this.getRenderProp("hasSettingsMenu"),headers:this.getRenderProp("headers"),label:this.getRenderProp("label"),loading:this.getRenderProp("loading"),on:this.getRenderProp("on"),refScrollContainer:this.refScrollContainer,refTable:this.refTable,rowKeys:this.getState("rowKeys"),selection:this.getRenderProp("selection"),settingsChangedCounter:this.getState("settingsChangedCounter"),stickyColsDisabled:this.getState("stickyColsDisabled"),variant:this.getRenderProp("variant")})}}export{ce as B,st as a,it as t,Y as v}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{h as i}from"./index-8-BSSKQL.js";import{B as s}from"./base-web-component-Bh2NCN7p.js";import{l as t,a,c as r,d as e,b as o,L as h}from"./component-ZJiUl6kZ.js";import{T as n}from"./behavior-DmR4WVXd.js";import{s as l}from"./common-BdSzSIXg.js";import{a as p,b as d,c,f as m,g as y,h as f,s as b,i as u,l as C,d as x,t as g,e as L,v}from"./component-Bldy_ShO.js";import{d as w}from"./disabled-C2DzYwwy.js";import{h as j}from"./href-vIF4eC7d.js";import"./props-from-config-LBgEHmcL.js";import{l as A}from"./label-with-expert-slot-BVqi0_Fb.js";import{l as I}from"./link-target-DEH-wAmf.js";import{c as D}from"./element-interaction-sGYdEpmv.js";import{d as S,K as B}from"./events-CRHxtwup.js";import{o as K}from"./ariaCurrentService-YoLNpD5S.js";class T extends s{constructor(){super(...arguments),this.ctaRef=D((()=>!0===this.getRenderProp("disabled"))),this.tooltipBehavior=new n(this.stateAccess),this.propsConfig=t,this.handleAnchorClick=i=>{if(this.tooltipBehavior.hideTooltip(),!0===this.getRenderProp("disabled"))return void i.preventDefault();const s=this.getRenderProp("href"),t=this.getRenderProp("on");"function"==typeof(null==t?void 0:t.onClick)&&(l(i,this.ctaRef.el),t.onClick(i,s)),this.host&&S(this.host,B.click,s)},this.setAnchorRef=i=>{this.ctaRef(i)}}unsetLinkTabIndex(){this.unsetRenderProp("tabIndex")}initLinkBehaviors(){this.unsubscribeOnLocationChange=K((i=>{const s=this.getRenderProp("href"),t=this.getRenderProp("ariaCurrentValue"),a=i===s?t:"";this.getState("ariaCurrent")!==a&&this.setState("ariaCurrent",a)})),this.tooltipBehavior.componentWillLoad({label:this.getTooltipLabel(),align:this.getRenderProp("tooltipAlign")})}syncTooltipListeners(){this.ctaRef.el&&this.tooltipBehavior.syncListeners(void 0,this.ctaRef.el,!0)}destroyLinkBehaviors(){this.unsubscribeOnLocationChange&&(this.unsubscribeOnLocationChange(),this.unsubscribeOnLocationChange=void 0),this.tooltipBehavior.destroy()}getTooltipLabel(){const i=this.getRenderProp("label");if("string"==typeof i&&i.length>0)return i;const s=this.getRenderProp("href");return"string"==typeof s?s:""}applyAccessKey(i){p.apply(i,(i=>this.setRenderProp("accessKey",i)))}applyAriaControls(i){d.apply(i,(i=>this.setRenderProp("ariaControls",i)))}applyAriaCurrentValue(i){a.apply(i,(i=>this.setRenderProp("ariaCurrentValue",i)))}applyAriaDescription(i){c.apply(i,(i=>this.setRenderProp("ariaDescription",i)))}applyAriaExpanded(i){m.apply(i,(i=>this.setRenderProp("ariaExpanded",i)))}applyAriaOwns(i){r.apply(i,(i=>this.setRenderProp("ariaOwns",i)))}applyCustomClass(i){y.apply(i,(i=>this.setRenderProp("customClass",i)))}applyDisabled(i){w.apply(i,(i=>this.setRenderProp("disabled",i)))}applyDownload(i){e.apply(i,(i=>this.setRenderProp("download",i)))}applyHideLabel(i){f.apply(i,(i=>this.setRenderProp("hideLabel",i)))}applyHref(i){j.apply(i,(i=>this.setRenderProp("href",i)),this.isRequired("href"))}applyIcons(i){b.apply(i,(i=>this.setRenderProp("icons",i)))}applyInline(i){u.apply(i,(i=>this.setRenderProp("inline",i)))}applyLabel(i){A.apply(i,(s=>{this.setRenderProp("label",s),this.setState("expertSlot",""===i),this.tooltipBehavior.watchLabel(this.getTooltipLabel())}),this.isRequired("label"))}applyOn(i){o.apply(i,(i=>this.setRenderProp("on",i)))}applyRole(i){C.apply(i,(i=>this.setRenderProp("role",i)))}applyShortKey(i){x.apply(i,(i=>this.setRenderProp("shortKey",i)))}applyTabIndex(i){"number"==typeof i?g.apply(i,(i=>this.setRenderProp("tabIndex",i))):this.unsetRenderProp("tabIndex")}applyTarget(i){I.apply(i,(i=>this.setRenderProp("target",i)))}applyTooltipAlign(i){L.apply(i,(i=>{this.setRenderProp("tooltipAlign",i),this.tooltipBehavior.watchAlign(i)}))}applyVariant(i){v.apply(i,(i=>this.setRenderProp("variant",i)))}renderLinkFC(){return i(h,{accessKey:this.getRenderProp("accessKey"),ariaControls:this.getRenderProp("ariaControls"),ariaCurrent:this.getState("ariaCurrent"),ariaCurrentValue:this.getRenderProp("ariaCurrentValue"),ariaDescription:this.getRenderProp("ariaDescription"),ariaDescriptionId:this.getState("ariaDescriptionId"),ariaExpanded:this.getRenderProp("ariaExpanded"),ariaOwns:this.getRenderProp("ariaOwns"),customClass:this.getRenderProp("customClass"),disabled:this.getRenderProp("disabled"),download:this.getRenderProp("download"),handleAnchorClick:this.handleAnchorClick,hideLabel:this.getRenderProp("hideLabel"),href:this.getRenderProp("href"),icons:this.getRenderProp("icons"),inline:this.getRenderProp("inline"),label:this.getRenderProp("label"),on:this.getRenderProp("on"),refAnchor:this.setAnchorRef,refTooltip:this.tooltipBehavior.setTooltipElementRef,role:this.getRenderProp("role"),shortKey:this.getRenderProp("shortKey"),tabIndex:this.getRenderProp("tabIndex"),target:this.getRenderProp("target"),tooltipAlign:this.getRenderProp("tooltipAlign"),variant:this.getRenderProp("variant"),expertSlot:this.getState("expertSlot")})}}export{T as B}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{h as i}from"./index-8-BSSKQL.js";import{B as s}from"./base-web-component-Bh2NCN7p.js";import{r as t,C as o}from"./component-BUzgs8fh.js";import"./common-BdSzSIXg.js";import{l}from"./level-eGeMFn0b.js";import{d as h,w as a}from"./width-BJNhiv_8.js";import{v as e,t as r}from"./props-from-config-LBgEHmcL.js";import{l as n}from"./label-lang-segment-B13iL7iy.js";import{u as d,l as p,D as m}from"./scroll-lock-CIv7iOPB.js";import{T as v}from"./behavior-DmR4WVXd.js";import{c}from"./element-interaction-sGYdEpmv.js";import{d as u,K as f}from"./events-CRHxtwup.js";import{h as b}from"./tooltip-open-tracking-D3tCiiGP.js";const g={required:[n],optional:[h,l,e,a]};class C 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{C as B}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{n as e,p as s}from"./common-BdSzSIXg.js";import{a as i,d as t,t as o,v as r}from"./component-Bldy_ShO.js";import{h as a,g as l,I as n}from"./input-container-Cb2xJUCl.js";import{o as d,p as h,c,g as p,e as u}from"./props-from-config-LBgEHmcL.js";import{m as b}from"./multiple-F8uOX8RD.js";import{r as v}from"./required-DBJ4iW2e.js";import{r as m}from"./rows-DuYJeJT7.js";import{f as y,i as f,g as O,c as j,B,F as g}from"./api-MBSY9afi.js";import{h as A,F as K}from"./index-8-BSSKQL.js";import{v as w}from"./access-and-short-key-ijzCZfHm.js";import{f as q}from"./options-B0rBHetL.js";import{a as P}from"./tslib.es6-QNbPBOk5.js";const x=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===x(e)));if("number"==typeof s.label)return!0}return!1},L=c("options",[],(function(e){const i="string"==typeof e?s(e):e;if(Array.isArray(i)&&i.every((e=>x(e))))return i;throw new Error("Invalid select options")})),S=c("value",[],(e=>Array.isArray(e)?e:[e])),k={required:[...y.required],optional:[...y.optional,i,a,b,L,v,m,S,t,o,r]},D=p("kol-select"),E=e=>{var{class:s,index:i,selectedValue:t,selected:o,value:r,label:a,disabled:l}=e,n=P(e,["class","index","selectedValue","selected","value","label","disabled"]);const d=void 0===t?[]:Array.isArray(t)?t:[t],h=o||d.includes(r);return A("option",Object.assign({class:u(D("option",{selected:Boolean(h),disabled:Boolean(l)}),s),selected:h,disabled:l,value:i},n),a)},I=({preKey:e,options:s,disabled:i,value:t,OptionProps:o={},OptionGroupProps:r={}})=>(null==s?void 0:s.length)?A(K,null,s.map(((s,a)=>{const l=[e,`-${a}`].join("");if("options"in s){const e=Boolean(i||s.disabled),{label:a}=s,n=P(s,["label"]);return A("optgroup",Object.assign({class:D("optgroup",{disabled:e}),key:l},r,{label:null==a?void 0:a.toString(),disabled:e}),A(I,Object.assign({OptionGroupProps:r,OptionProps:o,value:t,preKey:l},n,{disabled:e})))}return"value"in s?A(E,Object.assign({key:l},o,{index:l,selectedValue:t},s,{disabled:Boolean(i||s.disabled)})):null}))):null,$=e=>{const{class:s,msg:i,touched:t,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(t)},f(i,t)?{[O(i)]:!0}:{})),s),required:r,disabled:o},j({ariaDescribedBy:h,hideLabel:c,label:p})),b);return A("select",Object.assign({},v),A(I,{OptionGroupProps:d,OptionProps:n,disabled:o,options:a,value:l}))},C=(e,s,i)=>{const t=Array.isArray(e);if(s){if(void 0!==e&&!t)throw new Error(`↑ The schema for the property (_value) is not valid for multiple mode. Expected an array. The value will not be changed. (${i} = ${JSON.stringify(e)})`)}else if(t)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. (${i} = ${JSON.stringify(e)})`)},J=(e,s=!1)=>e.flatMap((e=>"options"in e&&Array.isArray(e.options)?J(e.options,Boolean(s||e.disabled)):[Object.assign(Object.assign({},e),{disabled:Boolean(s||e.disabled)})])),T=(e,s,i)=>{if(0===s.length)return e;const t=J(s),o=t.map((e=>e.value)),r=e.every((e=>o.includes(e)))?e:e.filter((e=>o.includes(e)));if(!1===i&&0===r.length){const e=t.find((e=>!0!==e.disabled));return e?[e.value]:r}return r};class V extends B{constructor(){super(...arguments),this.keyOptionMap=new Map,this.hasValue=!0,this.handleSelectInput=e=>{var s;const i=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=i,this.handleInput(e,i);else{const s=i.length>0?i[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){i.apply(e,(e=>this.setRenderProp("accessKey",e))),w(e,this.getShortKeyProp())}applyShortKey(e){t.apply(e,(e=>this.setRenderProp("shortKey",e))),w(this.getAccessKeyProp(),e)}applyIcons(e){a.apply(e,(e=>this.setRenderProp("icons",e)))}applyMultiple(e){C(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){L.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){C(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]):S.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(),i=this.getRenderProp("multiple"),t=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:i?this.getRenderProp("rows"):void 0,multiple:i,required:this.getRenderProp("required"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")},t?{"aria-keyshortcuts":t}:{}),{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:i}=l({icons:this.getRenderProp("icons")});return A(g,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()}}),A(n,{disabled:e,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:s,endAdornment:i},A($,Object.assign({},this.getSelectProps()))))}}export{V as B,k as s}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{d as t}from"./props-from-config-
|
|
4
|
+
import{d as t}from"./props-from-config-LBgEHmcL.js";function s(){throw new Error("This behavior does not use component state.")}class e{constructor(){this.rawProps={},this.renderProps={},this.requiredPropNames=new Set,this.renderPropsSeeded=!1,this.setState=(t,s)=>{this[t]=s},this.getState=t=>this[t],this.stateAccess={setState:this.setState,getState:this.getState}}seedRenderProps(){var s;this.renderPropsSeeded||(this.renderPropsSeeded=!0,this.renderProps=t(this.propsConfig),this.requiredPropNames=new Set((null!==(s=this.propsConfig.required)&&void 0!==s?s:[]).map((t=>t.propName))))}isRequired(t){return this.seedRenderProps(),this.requiredPropNames.has(t)}setRawProp(t,s){this.rawProps[t]=s}getRawProp(t){return this.rawProps[t]}setRenderProp(t,s){this.seedRenderProps(),this.renderProps[t]=s}unsetRenderProp(t){this.seedRenderProps(),this.renderProps[t]=void 0}getRenderProp(t){return this.seedRenderProps(),this.renderProps[t]}}e.stateLess=Object.freeze({setState:s,getState:s});export{e as B}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import"./common-BdSzSIXg.js";import{a as t,d as s,v as i}from"./component-Bldy_ShO.js";import{a as e,S as o}from"./suggestions-fWMdnACm.js";import{h as a,g as r}from"./input-container-Cb2xJUCl.js";import{c as h,b as n,e as l}from"./props-from-config-LBgEHmcL.js";import{p as d}from"./placeholder-BPZ2sQEB.js";import{r as p}from"./read-only-9BPUG7r4.js";import{r as c}from"./required-DBJ4iW2e.js";import{s as u}from"./smart-button-p4avK7MS.js";import{s as m}from"./value-string-Baqhc_TX.js";import{f as v,B as y}from"./api-MBSY9afi.js";import{h as j}from"./index-8-BSSKQL.js";import{s as b}from"./controller-CZcQ57AP.js";import{v as f}from"./access-and-short-key-ijzCZfHm.js";import{c as g}from"./element-interaction-sGYdEpmv.js";import{B}from"./base-web-component-Bh2NCN7p.js";import{C as O}from"./behavior-Cw8QfOcm.js";const x=h("pattern",void 0,n),C={required:[...v.required],optional:[...v.optional,t,e,a,x,d,p,c,s,u,m,i]};class K extends y{constructor(){super(...arguments),this.ctaRef=g(),this.counter=new O(B.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),b(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))),f(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){x.apply(t,(t=>this.textShared.setRenderProp("pattern",t)))}applyPlaceholder(t){d.apply(t,(t=>this.textShared.setRenderProp("placeholder",t)))}applyReadOnly(t){p.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))),f(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"),d=r.getRenderProp("placeholder"),p=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!==d?{placeholder:d}:{}),{autoComplete:r.getRenderProp("autoComplete")}),void 0!==s?{spellcheck:s}:{}),void 0!==p?{pattern:p}:{}),{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:j(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{K as B,C as t}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{a as t}from"./dev.utils-
|
|
4
|
+
import{a as t}from"./dev.utils-DM7Qhcet.js";import"./common-BdSzSIXg.js";import{c as e,n as r,D as i,b as a,i as h}from"./props-from-config-LBgEHmcL.js";import{B as n}from"./behavior-DmR4WVXd.js";import{t as o}from"./i18n-BLkzMf6D.js";const s=e("hasCounter",!1,r),c=e("maxLength",void 0,i,(t=>t>=0)),m=["hard","soft"],u=e("maxLengthBehavior","hard",(function(t){const e=a(t);if(h(e,m))return e;throw new Error(`Invalid max length behavior: ${e}`)})),g={optional:[s,c,u]},l=(t,e,r)=>{if("number"!=typeof e)return o("kol-character-counter-current",{placeholders:{current:String(r)}});if("soft"===t){const t=e-r;return t<0?o("kol-character-limit-exceeded",{placeholders:{over:String(Math.abs(t))}}):o("kol-character-limit-remaining",{placeholders:{remaining:String(t)}})}return o("kol-character-counter-current-of-max-aria",{placeholders:{current:String(r),max:String(e)}})},x=(t,e,r)=>"hard"===t&&"number"==typeof e&&r>=e?o("kol-character-counter-max-aria"):"";class d extends n{constructor(t){super(t,g),this.reannounceToggle=!1,this.setVisualRef=t=>{this.visualSpan=t},this.setAriaRef=t=>{this.ariaSpan=t},this.handleKeyDown=(t,e)=>{const{maxLength:r,maxLengthBehavior:i}=this.getLimit();"hard"!==i||"number"!=typeof r||e<r||(t=>1===t.key.length&&!t.ctrlKey&&!t.metaKey&&!t.altKey)(t)&&this.retriggerAria(e)}}componentWillLoad(t){this.watchHasCounter(t.hasCounter),this.watchMaxLength(t.maxLength),this.watchMaxLengthBehavior(t.maxLengthBehavior)}watchHasCounter(t){s.apply(t,(t=>this.setRenderProp("hasCounter",t)))}watchMaxLength(t){c.apply(t,(t=>this.setRenderProp("maxLength",t)))}watchMaxLengthBehavior(t){u.apply(t,(t=>this.setRenderProp("maxLengthBehavior",t)))}hasCounter(){return!0===this.getRenderProp("hasCounter")}hasSoftLimit(){const{maxLength:t,maxLengthBehavior:e}=this.getLimit();return"number"==typeof t&&"soft"===e}getMaxLengthAttribute(){const{maxLength:t,maxLengthBehavior:e}=this.getLimit();return"hard"===e?t:void 0}getCounterProps(){if(!this.hasCounter())return;const{maxLength:t,maxLengthBehavior:e}=this.getLimit();return{maxLength:t,maxLengthBehavior:e,visualRef:this.setVisualRef,ariaRef:this.setAriaRef}}getCharacterLimitHintId(e){return"number"!=typeof this.getRenderProp("maxLength")||this.hasCounter()?void 0:t(e,"character-limit-hint")}update(t){const e=this.getLimit();this.updateVisual(t,e),clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout((()=>this.updateAria(t,e)),1e3)}updateImmediate(t){const e=this.getLimit();this.updateVisual(t,e),clearTimeout(this.debounceTimer),this.updateAria(t,e)}retriggerAria(t){if(!this.ariaSpan)return;const e=this.getLimit();clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout((()=>this.updateAria(t,e,!0)),1e3)}destroy(){clearTimeout(this.debounceTimer)}getLimit(){return{maxLength:this.getRenderProp("maxLength"),maxLengthBehavior:this.getRenderProp("maxLengthBehavior")}}updateVisual(t,{maxLength:e,maxLengthBehavior:r}){this.visualSpan&&(this.visualSpan.innerText=((t,e,r)=>{if("number"!=typeof e)return o("kol-character-counter-current",{placeholders:{current:String(r)}});if("soft"===t){const t=e-r;return t<0?o("kol-character-limit-exceeded",{placeholders:{over:String(Math.abs(t))}}):o("kol-character-limit-remaining",{placeholders:{remaining:String(t)}})}return o("kol-character-counter-current-of-max",{placeholders:{current:String(r),max:String(e)}})})(r,e,t),this.visualSpan.classList.toggle("kol-form-field__counter--exceeded","soft"===r&&"number"==typeof e&&t>e))}updateAria(t,{maxLength:e,maxLengthBehavior:r},i=!1){if(!this.ariaSpan)return;let a=[l(r,e,t),x(r,e,t)].filter(Boolean).join(" ");i&&(this.reannounceToggle=!this.reannounceToggle,this.reannounceToggle&&(a+=" ")),this.ariaSpan.innerText=a}}export{d as C}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{g as t}from"./bootstrap-
|
|
4
|
+
import{g as t}from"./bootstrap-Bp7i4RJQ.js";import{C as e,e as i,k as s}from"./common-BdSzSIXg.js";import{c as o,b as n}from"./props-from-config-LBgEHmcL.js";import{n as a}from"./component-BC1TpQVD.js";import{B as r}from"./behavior-DmR4WVXd.js";const l=o("syncValueBySelector",void 0,n),c={optional:[a,l]},u=new Set(["KOL-COMBOBOX","KOL-INPUT-CHECKBOX","KOL-INPUT-COLOR","KOL-INPUT-DATE","KOL-INPUT-EMAIL","KOL-INPUT-FILE","KOL-INPUT-NUMBER","KOL-INPUT-PASSWORD","KOL-INPUT-RADIO","KOL-INPUT-RANGE","KOL-INPUT-TEXT","KOL-SELECT","KOL-SINGLE-SELECT","KOL-TEXTAREA"]);class h extends r{constructor(s,{host:o,type:n,name:a}){var r,l,h,d,m;super(s,c),this.experimentalMode=e(),this.setFormAssociatedValue=t=>{var e;const s=null===(e=this.formAssociated)||void 0===e?void 0:e.getAttribute("name");null!==s&&""!==s||i(` The form field (${this.type}) must have a name attribute to be form-associated. Please define the _name attribute.`);const o=this.tryToStringifyValue(t);this.syncValue(t,o,this.formAssociated),this.syncValue(t,o,this.syncToOwnInput)},this.host=this.findHostWithShadowRoot(o),this.type=n,(null===(r=t())||void 0===r?void 0:r.reflectInputValues)&&u.has(null!==(h=null===(l=this.host)||void 0===l?void 0:l.tagName)&&void 0!==h?h:"")&&a&&(null===(d=this.host)||void 0===d||d.querySelectorAll("input,select,textarea").forEach((t=>{var e;null===(e=this.host)||void 0===e||e.removeChild(t)})),this.formAssociated=this.createFormAssociatedElement(),this.formAssociated.setAttribute("data-form-associated",""),this.formAssociated.setAttribute("hidden",""),null===(m=this.host)||void 0===m||m.appendChild(this.formAssociated))}componentWillLoad(t){this.watchName(t.name),this.watchSyncValueBySelector(t.syncValueBySelector)}watchName(t){a.apply(t,(t=>{this.setRenderProp("name",t),this.setNameAttribute(t)})),void 0===t&&i("A name on input fields or switches is not strictly required, but it might be relevant for the autocomplete function and for the static submission of the input field.")}watchSyncValueBySelector(t){if(this.experimentalMode&&"string"==typeof t){this.setRenderProp("syncValueBySelector",t);const e=document.querySelector(t);e&&(this.syncToOwnInput=e)}}setNameAttribute(t){this.setAttribute("name",this.formAssociated,t)}createFormAssociatedElement(){switch(this.type){case"color":case"date":case"email":case"file":case"number":case"password":case"radio":case"range":case"text":{const t=document.createElement("input");return t.setAttribute("type",this.type),t}case"select":{const t=document.createElement("select");return t.setAttribute("multiple",""),t}case"textarea":return document.createElement("textarea");default:{const t=document.createElement("input");return t.setAttribute("type","hidden"),t}}}findHostWithShadowRoot(t){for(;null===(null==t?void 0:t.shadowRoot)&&t!==document.body;){const e=t.parentNode;t=11===(null==e?void 0:e.nodeType)&&"host"in e?e.host:1===(null==e?void 0:e.nodeType)?e:void 0}return t}setAttribute(t,e,i){if(this.experimentalMode)try{if("boolean"!=typeof(i="object"==typeof i&&null!==i?JSON.stringify(i):i)&&"number"!=typeof i&&"string"!=typeof i)throw new Error("Invalid value type: "+typeof i);null==e||e.setAttribute(t,`${i}`)}catch(i){null==e||e.removeAttribute(t)}}tryToStringifyValue(t){try{return"object"==typeof t&&null!==t?JSON.stringify(t).toString():null==t?null:t.toString()}catch(t){return s(`The form field raw value is not able to stringify! ${t}`),""}}syncValue(t,e,i){if(i)switch(this.type){case"file":"undefined"!=typeof FileList&&t instanceof FileList?i.files=t:i.value="";break;case"select":"SELECT"===i.tagName?this.syncSelectOptions(t,i):this.syncValueAttribute(e,i);break;case"radio":"string"==typeof e&&(i.setAttribute("value",e),i.setAttribute("checked",""),i.value=e);break;default:this.syncValueAttribute(e,i)}}syncSelectOptions(t,e){e.querySelectorAll("option").forEach((t=>{e.removeChild(t)})),(Array.isArray(t)?t:null==t?[]:[t]).forEach((t=>{const i=this.tryToStringifyValue(t);if("string"==typeof i){const t=document.createElement("option");t.setAttribute("value",i),t.setAttribute("selected",""),e.appendChild(t)}}))}syncValueAttribute(t,e){"string"==typeof t?(e.setAttribute("value",t),e.value=t):(e.removeAttribute("value"),e.value="")}}export{h as F}
|