@public-ui/components 4.6.0-rc.1 → 4.6.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/kolicons/kolicons.eot +0 -0
- package/assets/kolicons/kolicons.ttf +0 -0
- package/assets/kolicons/kolicons.woff +0 -0
- package/assets/kolicons/kolicons.woff2 +0 -0
- package/assets/kolicons/style.css +6 -6
- package/custom-elements.json +3 -3
- package/dist/cjs/{Heading-DpKpW9_U.js → Heading-DqZXie2T.js} +1 -1
- package/dist/cjs/{api-DSnFV5pX.js → api-Cc1hT-oO.js} +25 -24
- package/dist/cjs/{app-globals-DWk29tH4.js → app-globals-DtXiFJRj.js} +3 -3
- package/dist/cjs/{aria-labelledby-BRMgWRVp.js → aria-labelledby-By2dgbCn.js} +0 -13
- package/dist/cjs/{base-uTtcb6OV.js → base-B-wbGF-X.js} +30 -36
- package/dist/cjs/{base-DB-5MCfF.js → base-BKsPSdXS.js} +12 -12
- package/dist/cjs/{base-Cdk10fDz.js → base-BjiXfuju.js} +10 -10
- package/dist/cjs/{base-B1L6tTOu.js → base-CoMrpiHg.js} +11 -11
- package/dist/cjs/{base-web-component-BdHm5Oq9.js → base-web-component-BXtl3Nmq.js} +10 -10
- package/dist/cjs/{base-web-component-CyF5QpIH.js → base-web-component-DApRK7Vs.js} +15 -15
- package/dist/cjs/{base-web-component-B6mwGD0m.js → base-web-component-DXCN-Sp3.js} +1 -1
- package/dist/cjs/{behavior-D5F_9gEC.js → behavior-DIv2ciyM.js} +5 -5
- package/dist/cjs/{behavior-C3w_8ifK.js → behavior-DtHCmCCv.js} +5 -5
- package/dist/cjs/{behavior-BnUihLzw.js → behavior-GG5TOrTV.js} +6 -13
- package/dist/cjs/{bem-registry-ZJZujhCi.js → bem-registry-h_moyLBn.js} +40 -1
- package/dist/cjs/{block-bem-CMvCkLkl.js → block-bem-BVBM34Tu.js} +1 -1
- package/dist/cjs/{bootstrap-C4lWLUW9.js → bootstrap-HU5YhM_w.js} +2 -2
- package/dist/cjs/{color-BW4t1Cif.js → color-C3xsA3Uk.js} +3 -3
- package/dist/cjs/{common-C-hcIfzh.js → common-CzGJx0nT.js} +31 -30
- package/dist/cjs/{component-BXz1XtoE.js → component-BE_fK-Xu.js} +15 -15
- package/dist/cjs/{component-DsWMXDya.js → component-BOI4FdZE.js} +7 -7
- package/dist/cjs/{component-CWEYNtAH.js → component-C9B-yJ93.js} +5 -5
- package/dist/cjs/{component-C46QQbMS.js → component-CNNGo5gU.js} +11 -11
- package/dist/cjs/{component-_p4OHWcc.js → component-CVLJJvvd.js} +14 -14
- package/dist/cjs/{component-CrW05zUq.js → component-Cnc2NyzE.js} +5 -5
- package/dist/cjs/{component-N-3XFtFS.js → component-CsnTf_45.js} +8 -8
- package/dist/cjs/{component-DfChjUi8.js → component-CxwSVBBv.js} +10 -10
- package/dist/cjs/{component-B2l8N5t_.js → component-D0uxhuF3.js} +4 -4
- package/dist/cjs/{component-BE_gS80r.js → component-DNQW0lG8.js} +2 -2
- package/dist/cjs/{component-eYoUHQ64.js → component-DfGgpwuP.js} +2 -2
- package/dist/cjs/{component-BwrQID5A.js → component-DlyhBQIa.js} +4 -4
- package/dist/cjs/{contrast-4mAdSLs0.js → contrast-6Nku3lih.js} +2 -2
- package/dist/cjs/{controller-DcinOUmN.js → controller-D66Eq44x.js} +1 -1
- package/dist/cjs/{dev.utils-Bxq7b-n1.js → dev.utils-DTQy7QrG.js} +2 -2
- package/dist/cjs/{devtools-BLvPSoCH.js → devtools-BAChPN0l.js} +3 -3
- package/dist/cjs/{disabled-jYcvcwjv.js → disabled-CilmJ-p-.js} +1 -1
- package/dist/cjs/{field-control-D9t3USqP.js → field-control-Bxj6Xuu8.js} +8 -8
- package/dist/cjs/{group-CFBPF3hG.js → group-BUdQbdkp.js} +7 -7
- package/dist/cjs/{has-closer-CvNa5gqv.js → has-closer-iSIrv52u.js} +1 -1
- package/dist/cjs/{href-BBhiVyPb.js → href-xojo1zy_.js} +1 -1
- package/dist/cjs/{i18n-BnOWw1MQ.js → i18n-D7UmRsV8.js} +2 -2
- package/dist/cjs/{i18n-BSWM5nea.js → i18n-DgHI4-xa.js} +2 -0
- package/dist/cjs/{id-D1VZsLkg.js → id-DP-w6i4q.js} +1 -1
- package/dist/cjs/{index-CNhjOFBg.js → index-BaB_2Z5W.js} +23 -12
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/{input-C3F73RZW.js → input-CtqTozTO.js} +5 -5
- package/dist/cjs/{input-container-B5-_NcRy.js → input-container-BcwbGU2R.js} +8 -8
- package/dist/cjs/{item-nAB1wPvv.js → item-BLrLbhAD.js} +12 -12
- package/dist/cjs/{item-dlea1NHr.js → item-BXt0-A5j.js} +30 -15
- package/dist/cjs/{item-CfCrfeQL.js → item-BYKMN41a.js} +5 -5
- package/dist/cjs/{item-DvddzW3M.js → item-DJ-XUS77.js} +6 -6
- package/dist/cjs/kol-abbr.cjs.entry.js +13 -12
- package/dist/cjs/kol-accordion.cjs.entry.js +21 -20
- package/dist/cjs/kol-alert.cjs.entry.js +32 -30
- package/dist/cjs/kol-avatar.cjs.entry.js +17 -16
- package/dist/cjs/kol-badge.cjs.entry.js +30 -29
- package/dist/cjs/kol-breadcrumb.cjs.entry.js +32 -31
- package/dist/cjs/kol-button-link.cjs.entry.js +29 -28
- package/dist/cjs/kol-button.cjs.entry.js +29 -28
- package/dist/cjs/kol-card.cjs.entry.js +34 -33
- package/dist/cjs/kol-combobox.cjs.entry.js +47 -46
- package/dist/cjs/kol-details.cjs.entry.js +21 -20
- package/dist/cjs/kol-dialog.cjs.entry.js +37 -36
- package/dist/cjs/kol-drawer.cjs.entry.js +36 -35
- package/dist/cjs/kol-form.cjs.entry.js +30 -29
- package/dist/cjs/kol-heading.cjs.entry.js +15 -14
- package/dist/cjs/kol-icon.cjs.entry.js +20 -16
- package/dist/cjs/kol-image.cjs.entry.js +10 -9
- package/dist/cjs/kol-input-checkbox.cjs.entry.js +54 -52
- package/dist/cjs/kol-input-color.cjs.entry.js +47 -45
- package/dist/cjs/kol-input-date.cjs.entry.js +49 -47
- package/dist/cjs/kol-input-email.cjs.entry.js +51 -49
- package/dist/cjs/kol-input-file.cjs.entry.js +46 -44
- package/dist/cjs/kol-input-number.cjs.entry.js +52 -50
- package/dist/cjs/kol-input-password.cjs.entry.js +50 -48
- package/dist/cjs/kol-input-radio.cjs.entry.js +42 -41
- package/dist/cjs/kol-input-range.cjs.entry.js +45 -44
- package/dist/cjs/kol-input-text.cjs.entry.js +51 -49
- package/dist/cjs/kol-kolibri.cjs.entry.js +13 -12
- package/dist/cjs/kol-link-button.cjs.entry.js +30 -29
- package/dist/cjs/kol-link.cjs.entry.js +30 -29
- package/dist/cjs/kol-meter.cjs.entry.js +20 -22
- package/dist/cjs/kol-modal.cjs.entry.js +37 -36
- package/dist/cjs/kol-nav.cjs.entry.js +38 -37
- package/dist/cjs/kol-pagination.cjs.entry.js +46 -45
- package/dist/cjs/kol-popover-button.cjs.entry.js +30 -29
- package/dist/cjs/kol-progress.cjs.entry.js +21 -17
- package/dist/cjs/kol-quote.cjs.entry.js +12 -11
- package/dist/cjs/kol-select.cjs.entry.js +42 -41
- package/dist/cjs/kol-single-select.cjs.entry.js +54 -48
- package/dist/cjs/kol-skip-nav.cjs.entry.js +32 -31
- package/dist/cjs/kol-spin.cjs.entry.js +17 -16
- package/dist/cjs/kol-split-button.cjs.entry.js +33 -32
- package/dist/cjs/kol-table-stateful.cjs.entry.js +59 -59
- package/dist/cjs/kol-table-stateless.cjs.entry.js +47 -47
- package/dist/cjs/kol-tabs.cjs.entry.js +36 -38
- package/dist/cjs/kol-textarea.cjs.entry.js +49 -46
- package/dist/cjs/kol-toast-container.cjs.entry.js +25 -24
- package/dist/cjs/kol-toolbar.cjs.entry.js +35 -34
- package/dist/cjs/kol-tooltip-wc.cjs.entry.js +15 -14
- package/dist/cjs/kol-tree-item.cjs.entry.js +32 -28
- package/dist/cjs/kol-tree.cjs.entry.js +26 -14
- package/dist/cjs/kol-version.cjs.entry.js +27 -26
- package/dist/cjs/kolibri.cjs.js +4 -4
- package/dist/cjs/{label-vVOiX4dC.js → label-D6c6jfqK.js} +3 -3
- package/dist/cjs/{label-hints-D6EBRW9T.js → label-hints-q3XenWLW.js} +2 -2
- package/dist/cjs/{label-lang-segment-CYlAqtUl.js → label-lang-segment-k4OY9qRY.js} +2 -2
- package/dist/cjs/{label-with-expert-slot-B9z4nqW1.js → label-with-expert-slot-CJoz7BLw.js} +3 -3
- package/dist/cjs/{level-BAiEYu4U.js → level-B6vFMm9s.js} +1 -1
- package/dist/cjs/{link-target-4AzB3I84.js → link-target-0qSVsAb2.js} +1 -1
- package/dist/cjs/{links-CPNK7VZo.js → links-Ur1e9DOK.js} +2 -2
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{multiple-B3ZpkzWu.js → multiple-CCxtzqez.js} +1 -1
- package/dist/cjs/{number-value-B2yoKlvx.js → number-value-DzAHCwlP.js} +1 -1
- package/dist/cjs/{open-CvoX_qxD.js → open-Gxr_K7HK.js} +1 -1
- package/dist/cjs/{options-B2pQC9w2.js → options-BT0m0gRT.js} +2 -2
- package/dist/cjs/{orientation-u2cvwgBc.js → orientation-CeHU4dT8.js} +1 -1
- package/dist/cjs/{placeholder-C9Ngp2tQ.js → placeholder-22xUUFff.js} +1 -1
- package/dist/cjs/{props-from-config-BQ2SOZlz.js → props-from-config-D1qhXS9j.js} +1 -1
- package/dist/cjs/{read-only-DfWF-Coi.js → read-only-iHApMQEg.js} +1 -1
- package/dist/cjs/{required-CdXn16dq.js → required-BYdSI25I.js} +1 -1
- package/dist/cjs/{resolve-props-BUSerQcI.js → resolve-props-B7klWjLx.js} +8 -8
- package/dist/cjs/{resolve-props-ClWlRbhz.js → resolve-props-c-uwDulF.js} +7 -7
- package/dist/cjs/{rows-Ca5ya9tG.js → rows-C9vBSQK1.js} +1 -1
- package/dist/cjs/{scroll-lock-CSW_wA0P.js → scroll-lock-daUQqmx_.js} +2 -2
- package/dist/cjs/{smart-button-CB8qIzgQ.js → smart-button-DRMmUyQ5.js} +2 -2
- package/dist/cjs/{spell-check-DKRC8xbW.js → spell-check-CxgvHcGA.js} +1 -1
- package/dist/cjs/{src-C3NG0rLO.js → src-Bmd7gQCS.js} +1 -1
- package/dist/cjs/{step-CZNyTb2h.js → step-CCqgsPCX.js} +1 -1
- package/dist/cjs/{suggestions-BRclldK2.js → suggestions-CoUp7HmN.js} +2 -2
- package/dist/cjs/{suggestions-CIGYxDps.js → suggestions-D3snLGL_.js} +3 -3
- package/dist/cjs/test-component.cjs.entry.js +4 -3
- package/dist/cjs/{toggle-handler-Cy5RcTS_.js → toggle-handler-B0xib7fH.js} +10 -10
- package/dist/cjs/{unique-nav-labels-CIAwid5V.js → unique-nav-labels-CgxOyb6V.js} +2 -2
- package/dist/cjs/{unit-bsoemclF.js → unit-_oDj-vIB.js} +1 -1
- package/dist/cjs/{validators-DuLdbf2D.js → validators-CpCJvM4r.js} +3 -1
- package/dist/cjs/{value-string-DZ_FFaUt.js → value-string-CKppMGVM.js} +1 -1
- package/dist/cjs/{width-BklaRCqt.js → width-e7f3wHF3.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/abbr/component.js +2 -2
- package/dist/collection/components/accordion/component.js +2 -2
- package/dist/collection/components/accordion/style.css +2 -2
- package/dist/collection/components/alert/component.js +4 -3
- package/dist/collection/components/alert/style.css +2 -2
- package/dist/collection/components/avatar/component.js +2 -2
- package/dist/collection/components/badge/component.js +2 -2
- package/dist/collection/components/badge/style.css +2 -2
- package/dist/collection/components/breadcrumb/component.js +2 -2
- package/dist/collection/components/breadcrumb/style.css +2 -2
- package/dist/collection/components/button/component.js +1 -1
- package/dist/collection/components/button/style.css +2 -2
- package/dist/collection/components/button-link/component.js +1 -1
- package/dist/collection/components/button-link/style.css +2 -2
- package/dist/collection/components/card/component.js +2 -2
- package/dist/collection/components/card/style.css +5 -2
- package/dist/collection/components/combobox/component.js +4 -4
- package/dist/collection/components/combobox/style.css +2 -2
- package/dist/collection/components/details/component.js +2 -2
- package/dist/collection/components/details/style.css +2 -2
- package/dist/collection/components/dialog/component.js +2 -2
- package/dist/collection/components/dialog/style.css +5 -2
- package/dist/collection/components/drawer/component.js +2 -2
- package/dist/collection/components/drawer/style.css +5 -2
- package/dist/collection/components/form/component.js +2 -2
- package/dist/collection/components/form/style.css +2 -2
- package/dist/collection/components/heading/component.js +2 -2
- package/dist/collection/components/icon/component.js +5 -5
- package/dist/collection/components/icon/style.css +2 -2
- package/dist/collection/components/image/component.js +2 -2
- package/dist/collection/components/input-checkbox/component.js +13 -11
- package/dist/collection/components/input-checkbox/style.css +2 -2
- package/dist/collection/components/input-color/component.js +6 -4
- package/dist/collection/components/input-color/style.css +2 -2
- package/dist/collection/components/input-date/component.js +5 -3
- package/dist/collection/components/input-date/style.css +2 -2
- package/dist/collection/components/input-email/component.js +4 -1
- package/dist/collection/components/input-email/style.css +2 -2
- package/dist/collection/components/input-file/component.js +6 -3
- package/dist/collection/components/input-file/style.css +2 -2
- package/dist/collection/components/input-number/component.js +6 -4
- package/dist/collection/components/input-number/style.css +2 -2
- package/dist/collection/components/input-password/component.js +5 -2
- package/dist/collection/components/input-password/style.css +2 -2
- package/dist/collection/components/input-radio/component.js +1 -1
- package/dist/collection/components/input-radio/style.css +2 -2
- package/dist/collection/components/input-range/component.js +2 -2
- package/dist/collection/components/input-range/style.css +2 -2
- package/dist/collection/components/input-text/component.js +4 -2
- package/dist/collection/components/input-text/style.css +2 -2
- package/dist/collection/components/kolibri/component.js +2 -2
- package/dist/collection/components/link/component.js +2 -2
- package/dist/collection/components/link/style.css +2 -2
- package/dist/collection/components/link-button/component.js +2 -2
- package/dist/collection/components/link-button/style.css +2 -2
- package/dist/collection/components/meter/component.js +2 -2
- package/dist/collection/components/modal/component.js +2 -2
- package/dist/collection/components/modal/style.css +5 -2
- package/dist/collection/components/nav/component.js +2 -2
- package/dist/collection/components/nav/style.css +2 -2
- package/dist/collection/components/pagination/component.js +2 -2
- package/dist/collection/components/pagination/style.css +2 -2
- package/dist/collection/components/popover-button/component.js +1 -1
- package/dist/collection/components/popover-button/style.css +2 -2
- package/dist/collection/components/progress/component.js +6 -3
- package/dist/collection/components/quote/component.js +2 -2
- package/dist/collection/components/select/component.js +1 -1
- package/dist/collection/components/select/style.css +2 -2
- package/dist/collection/components/single-select/component.js +10 -6
- package/dist/collection/components/single-select/style.css +2 -2
- package/dist/collection/components/skip-nav/component.js +2 -2
- package/dist/collection/components/skip-nav/style.css +2 -2
- package/dist/collection/components/spin/component.js +2 -2
- package/dist/collection/components/split-button/component.js +1 -1
- package/dist/collection/components/split-button/style.css +2 -2
- package/dist/collection/components/table-stateful/component.js +4 -6
- package/dist/collection/components/table-stateful/style.css +5 -2
- package/dist/collection/components/table-stateless/base.js +3 -0
- package/dist/collection/components/table-stateless/component.js +4 -6
- package/dist/collection/components/table-stateless/style.css +5 -2
- package/dist/collection/components/tabs/component.js +2 -11
- package/dist/collection/components/tabs/style.css +2 -2
- package/dist/collection/components/textarea/component.js +5 -3
- package/dist/collection/components/textarea/style.css +2 -2
- package/dist/collection/components/toaster/shadow.js +1 -1
- package/dist/collection/components/toaster/style.css +2 -2
- package/dist/collection/components/toolbar/component.js +2 -2
- package/dist/collection/components/toolbar/style.css +2 -2
- package/dist/collection/components/tooltip/component.js +1 -1
- package/dist/collection/components/tree/component.js +16 -5
- package/dist/collection/components/tree-item/component.js +6 -3
- package/dist/collection/components/tree-item/style.css +2 -2
- package/dist/collection/components/version/component.js +2 -2
- package/dist/collection/components/version/style.css +2 -2
- package/dist/collection/internal/functional-components/form-association/api.js +2 -2
- package/dist/collection/internal/functional-components/form-association/behavior.js +1 -5
- package/dist/collection/internal/functional-components/form-field/base-web-component.js +0 -1
- package/dist/collection/internal/functional-components/form-field/custom-suggestions.js +1 -1
- package/dist/collection/internal/functional-components/icon/api.js +2 -2
- package/dist/collection/internal/functional-components/link/component.js +1 -1
- package/dist/collection/internal/functional-components/meter/component.js +3 -6
- package/dist/collection/internal/functional-components/pagination/component.js +2 -3
- package/dist/collection/internal/functional-components/pagination/item.js +15 -0
- package/dist/collection/internal/functional-components/progress/component.js +1 -1
- package/dist/collection/internal/functional-components/single-select/component.js +2 -1
- package/dist/collection/internal/functional-components/tabs/component.js +7 -1
- package/dist/collection/internal/props/helpers/validators.js +1 -0
- package/dist/collection/internal/props/index.js +1 -0
- package/dist/collection/internal/props/label-decorative.js +10 -0
- package/dist/collection/locales/de.js +1 -0
- package/dist/collection/locales/en.js +1 -0
- package/dist/collection/schema/bem-registry.js +39 -0
- package/dist/collection/schema/i18n-keys.js +29 -28
- package/dist/collection/schema/props/aria-details.js +1 -22
- package/dist/collection/schema/props/aria-labelledby.js +3 -12
- package/dist/collection/utils/aria-labelledby.js +0 -12
- package/dist/components/aria-labelledby.js +1 -1
- package/dist/components/base-web-component2.js +1 -1
- package/dist/components/base4.js +1 -1
- package/dist/components/behavior3.js +1 -1
- package/dist/components/bem-registry.js +1 -1
- package/dist/components/component3.js +1 -1
- package/dist/components/component6.js +1 -1
- package/dist/components/group.js +1 -1
- package/dist/components/i18n2.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-with-expert-slot.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/validators.js +1 -1
- package/dist/esm/{Heading-wrhAEuG3.js → Heading-GZb1f2pZ.js} +1 -1
- package/dist/esm/{api-7B_iI89k.js → api-CBPlj155.js} +23 -22
- package/dist/esm/{app-globals-tRqgHq3P.js → app-globals-DRl9A82c.js} +3 -3
- package/dist/esm/{aria-labelledby-CLehu03h.js → aria-labelledby-DqJY_4G-.js} +1 -13
- package/dist/esm/{base-C32RNC8q.js → base-BByRnpRm.js} +12 -12
- package/dist/esm/{base-BVztEKgJ.js → base-C7BBsrYZ.js} +30 -36
- package/dist/esm/{base-D_-9Lzkd.js → base-DO0KvOv9.js} +11 -11
- package/dist/esm/{base-BDYPTFjC.js → base-Dtxcvto_.js} +10 -10
- package/dist/esm/{base-web-component-DdY5aIHN.js → base-web-component-BxXLva5d.js} +10 -10
- package/dist/esm/{base-web-component-XgI4wUyN.js → base-web-component-CC_gpyDb.js} +1 -1
- package/dist/esm/{base-web-component-BUu68byc.js → base-web-component-CfPyCJDJ.js} +15 -15
- package/dist/esm/{behavior-fGxZN96S.js → behavior-CKU2tmCj.js} +5 -5
- package/dist/esm/{behavior-DsTiTiJC.js → behavior-CsNDRS2z.js} +5 -5
- package/dist/esm/{behavior-DN-22cB1.js → behavior-ewHvUWVk.js} +7 -13
- package/dist/esm/{bem-registry-Crcs_65u.js → bem-registry-D1KgKnyz.js} +40 -1
- package/dist/esm/{block-bem-DehcAQZQ.js → block-bem-D3ixJyOY.js} +1 -1
- package/dist/esm/{bootstrap-DHXUvPBY.js → bootstrap-tgQ2nQQI.js} +2 -2
- package/dist/esm/{color-eAL9I7Wq.js → color-D1gM-F2l.js} +3 -3
- package/dist/esm/{common-OzsC_6kt.js → common-BdSzSIXg.js} +31 -30
- package/dist/esm/{component-4xXBb7K-.js → component-6l69Jvwl.js} +4 -4
- package/dist/esm/{component-Cxdi6on4.js → component-B3OziaRC.js} +11 -11
- package/dist/esm/{component-DHNcVTi0.js → component-By8ggItU.js} +8 -8
- package/dist/esm/{component-EK9BJR6z.js → component-CF8uFG0A.js} +15 -15
- package/dist/esm/{component-BJ4gGOph.js → component-Ccv2lqNq.js} +2 -2
- package/dist/esm/{component-0IO2wu9i.js → component-Cmi6iGfA.js} +10 -10
- package/dist/esm/{component-CPq3i3I_.js → component-D4-NVnsT.js} +5 -5
- package/dist/esm/{component-ChuoBFI-.js → component-D6_K50vT.js} +4 -4
- package/dist/esm/{component-CTOYF3q6.js → component-D6lo0LzE.js} +7 -7
- package/dist/esm/{component-NEw1tN3M.js → component-D9NreIlK.js} +5 -5
- package/dist/esm/{component-DWywPG_a.js → component-DAk3R8NN.js} +14 -14
- package/dist/esm/{component-et0GdBuf.js → component-EDDTMC-J.js} +2 -2
- package/dist/esm/{contrast-D78VGPFR.js → contrast-BNoQruBh.js} +2 -2
- package/dist/esm/{controller-Cb-96wE-.js → controller-CZcQ57AP.js} +1 -1
- package/dist/esm/{dev.utils-Bg7nZBMk.js → dev.utils-BwYCy1rP.js} +2 -2
- package/dist/esm/{devtools-nUT3JVTV.js → devtools-CGP3Nzsw.js} +3 -3
- package/dist/esm/{disabled-Cqhc40CU.js → disabled-BZXlWAgK.js} +1 -1
- package/dist/esm/{field-control-D2tOd14v.js → field-control-0TRmF7Ea.js} +8 -8
- package/dist/esm/{group-CxWsx0aJ.js → group-DapkT_Yh.js} +7 -7
- package/dist/esm/{has-closer-B9NQY7BK.js → has-closer-DUB0QcS9.js} +1 -1
- package/dist/esm/{href-JqLbNBsW.js → href-CxokGOJ2.js} +1 -1
- package/dist/esm/{i18n-Dl6Jjofb.js → i18n-4J6U3ZDc.js} +2 -0
- package/dist/esm/{i18n-DtLKn3Xt.js → i18n-ePBcLlCr.js} +2 -2
- package/dist/esm/{id-CIYvVaNr.js → id-BI0ZuK17.js} +1 -1
- package/dist/esm/{index-B_bJG8-2.js → index-DEcM8BEc.js} +23 -12
- package/dist/esm/index.js +6 -6
- package/dist/esm/{input-Ia9Z3AP7.js → input-CDUCo1S5.js} +5 -5
- package/dist/esm/{input-container-Y_8n5Sen.js → input-container-BipAkWn4.js} +8 -8
- package/dist/esm/{item-BjriQHQl.js → item-B0oQTeju.js} +6 -6
- package/dist/esm/{item-BuqBMSYI.js → item-Boe3t0Dm.js} +12 -12
- package/dist/esm/{item-BZtI88zF.js → item-BvnZc8uV.js} +5 -5
- package/dist/esm/{item-BKVeXzUO.js → item-UgJ2uikD.js} +30 -15
- package/dist/esm/kol-abbr.entry.js +13 -12
- package/dist/esm/kol-accordion.entry.js +21 -20
- package/dist/esm/kol-alert.entry.js +32 -30
- package/dist/esm/kol-avatar.entry.js +17 -16
- package/dist/esm/kol-badge.entry.js +30 -29
- package/dist/esm/kol-breadcrumb.entry.js +32 -31
- package/dist/esm/kol-button-link.entry.js +29 -28
- package/dist/esm/kol-button.entry.js +29 -28
- package/dist/esm/kol-card.entry.js +34 -33
- package/dist/esm/kol-combobox.entry.js +47 -46
- package/dist/esm/kol-details.entry.js +21 -20
- package/dist/esm/kol-dialog.entry.js +37 -36
- package/dist/esm/kol-drawer.entry.js +36 -35
- package/dist/esm/kol-form.entry.js +30 -29
- package/dist/esm/kol-heading.entry.js +15 -14
- package/dist/esm/kol-icon.entry.js +20 -16
- package/dist/esm/kol-image.entry.js +10 -9
- package/dist/esm/kol-input-checkbox.entry.js +54 -52
- package/dist/esm/kol-input-color.entry.js +47 -45
- package/dist/esm/kol-input-date.entry.js +49 -47
- package/dist/esm/kol-input-email.entry.js +51 -49
- package/dist/esm/kol-input-file.entry.js +46 -44
- package/dist/esm/kol-input-number.entry.js +52 -50
- package/dist/esm/kol-input-password.entry.js +50 -48
- package/dist/esm/kol-input-radio.entry.js +42 -41
- package/dist/esm/kol-input-range.entry.js +45 -44
- package/dist/esm/kol-input-text.entry.js +51 -49
- package/dist/esm/kol-kolibri.entry.js +13 -12
- package/dist/esm/kol-link-button.entry.js +30 -29
- package/dist/esm/kol-link.entry.js +30 -29
- package/dist/esm/kol-meter.entry.js +20 -22
- package/dist/esm/kol-modal.entry.js +37 -36
- package/dist/esm/kol-nav.entry.js +38 -37
- package/dist/esm/kol-pagination.entry.js +46 -45
- package/dist/esm/kol-popover-button.entry.js +30 -29
- package/dist/esm/kol-progress.entry.js +21 -17
- package/dist/esm/kol-quote.entry.js +12 -11
- package/dist/esm/kol-select.entry.js +42 -41
- package/dist/esm/kol-single-select.entry.js +54 -48
- package/dist/esm/kol-skip-nav.entry.js +32 -31
- package/dist/esm/kol-spin.entry.js +17 -16
- package/dist/esm/kol-split-button.entry.js +33 -32
- package/dist/esm/kol-table-stateful.entry.js +59 -59
- package/dist/esm/kol-table-stateless.entry.js +47 -47
- package/dist/esm/kol-tabs.entry.js +36 -38
- package/dist/esm/kol-textarea.entry.js +49 -46
- package/dist/esm/kol-toast-container.entry.js +25 -24
- package/dist/esm/kol-toolbar.entry.js +35 -34
- package/dist/esm/kol-tooltip-wc.entry.js +15 -14
- package/dist/esm/kol-tree-item.entry.js +32 -28
- package/dist/esm/kol-tree.entry.js +26 -14
- package/dist/esm/kol-version.entry.js +27 -26
- package/dist/esm/kolibri.js +5 -5
- package/dist/esm/{label-BRosRgdX.js → label-B-Dr7VaP.js} +3 -3
- package/dist/esm/{label-hints-Jn18RUT-.js → label-hints-CLMiVvfk.js} +2 -2
- package/dist/esm/{label-lang-segment-2_GnxjFp.js → label-lang-segment-iVD9hoM3.js} +2 -2
- package/dist/esm/{label-with-expert-slot-CicRes-W.js → label-with-expert-slot-BbZ9nx0l.js} +3 -3
- package/dist/esm/{level-CA1s1_Mf.js → level-DsQ_pcyD.js} +1 -1
- package/dist/esm/{link-target-FX94oqMo.js → link-target-D7lYILOV.js} +1 -1
- package/dist/esm/{links-DwucTqcR.js → links-IkK4zoXw.js} +2 -2
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{multiple-DqrZxybx.js → multiple--ay1C1n3.js} +1 -1
- package/dist/esm/{number-value-B-SJ1dRo.js → number-value-Dl9-2O4r.js} +1 -1
- package/dist/esm/{open-DRRv1KFK.js → open-CNHJhHsy.js} +1 -1
- package/dist/esm/{options-DCaUcfAu.js → options-DwO32GBF.js} +2 -2
- package/dist/esm/{orientation-XNOCaPwy.js → orientation-ChJ0S24M.js} +1 -1
- package/dist/esm/{placeholder-BeLIzdJv.js → placeholder-UxmBJ4Vl.js} +1 -1
- package/dist/esm/{props-from-config-Ci0dILpz.js → props-from-config-ytxYrJUY.js} +1 -1
- package/dist/esm/{read-only-Bby9r6ZX.js → read-only-DytZ5HZJ.js} +1 -1
- package/dist/esm/{required-hoaT7UmZ.js → required-BriHhuO4.js} +1 -1
- package/dist/esm/{resolve-props-CHPFh7Tn.js → resolve-props-DTXKtzir.js} +7 -7
- package/dist/esm/{resolve-props-BkF1VBBB.js → resolve-props-kM9N-fzf.js} +8 -8
- package/dist/esm/{rows-B0x8CR7K.js → rows-I1jrTjzU.js} +1 -1
- package/dist/esm/{scroll-lock-D7Zo0QLt.js → scroll-lock-Bv-U2FHM.js} +2 -2
- package/dist/esm/{smart-button-CS_ZriPt.js → smart-button-DM5g48-g.js} +2 -2
- package/dist/esm/{spell-check-DzgftyqL.js → spell-check-BWCnJG5v.js} +1 -1
- package/dist/esm/{src-DaGhmCL1.js → src-ziOwSglN.js} +1 -1
- package/dist/esm/{step-Bdj89bGO.js → step-BcyhvRtu.js} +1 -1
- package/dist/esm/{suggestions-GEr-cvbz.js → suggestions-D0u80DtA.js} +3 -3
- package/dist/esm/{suggestions-Dy1X-Pc3.js → suggestions-LO267l8F.js} +2 -2
- package/dist/esm/test-component.entry.js +4 -3
- package/dist/esm/{toggle-handler-Bqoo8tCo.js → toggle-handler-mPlmvrq7.js} +10 -10
- package/dist/esm/{unique-nav-labels-h2KOu5Qy.js → unique-nav-labels-CxFUYSVY.js} +2 -2
- package/dist/esm/{unit-BUhhJbhT.js → unit-1ix-K9SD.js} +1 -1
- package/dist/esm/{validators-BVM40IEr.js → validators-CTjxOidB.js} +3 -2
- package/dist/esm/{value-string-e9pwLcS-.js → value-string-CxDz7dhD.js} +1 -1
- package/dist/esm/{width-CgYY17tL.js → width-C1_yZHyL.js} +1 -1
- package/dist/kolibri/Heading-GZb1f2pZ.js +4 -0
- package/dist/kolibri/api-CBPlj155.js +4 -0
- package/dist/kolibri/app-globals-DRl9A82c.js +4 -0
- package/dist/kolibri/aria-labelledby-DqJY_4G-.js +4 -0
- package/dist/kolibri/base-BByRnpRm.js +4 -0
- package/dist/kolibri/base-C7BBsrYZ.js +4 -0
- package/dist/kolibri/{base-D_-9Lzkd.js → base-DO0KvOv9.js} +1 -1
- package/dist/kolibri/{base-BDYPTFjC.js → base-Dtxcvto_.js} +1 -1
- package/dist/kolibri/{base-web-component-DdY5aIHN.js → base-web-component-BxXLva5d.js} +1 -1
- package/dist/kolibri/{base-web-component-XgI4wUyN.js → base-web-component-CC_gpyDb.js} +1 -1
- package/dist/kolibri/{base-web-component-BUu68byc.js → base-web-component-CfPyCJDJ.js} +1 -1
- package/dist/kolibri/{behavior-fGxZN96S.js → behavior-CKU2tmCj.js} +1 -1
- package/dist/kolibri/{behavior-DsTiTiJC.js → behavior-CsNDRS2z.js} +1 -1
- package/dist/kolibri/behavior-ewHvUWVk.js +4 -0
- package/dist/kolibri/{bem-registry-Crcs_65u.js → bem-registry-D1KgKnyz.js} +1 -1
- package/dist/kolibri/block-bem-D3ixJyOY.js +4 -0
- package/dist/kolibri/bootstrap-tgQ2nQQI.js +4 -0
- package/dist/kolibri/{color-eAL9I7Wq.js → color-D1gM-F2l.js} +1 -1
- package/dist/kolibri/common-BdSzSIXg.js +4 -0
- package/dist/kolibri/component-6l69Jvwl.js +4 -0
- package/dist/kolibri/component-B3OziaRC.js +4 -0
- package/dist/kolibri/{component-DHNcVTi0.js → component-By8ggItU.js} +1 -1
- package/dist/kolibri/component-CF8uFG0A.js +4 -0
- package/dist/kolibri/component-Ccv2lqNq.js +4 -0
- package/dist/kolibri/component-Cmi6iGfA.js +4 -0
- package/dist/kolibri/component-D4-NVnsT.js +4 -0
- package/dist/kolibri/component-D6_K50vT.js +4 -0
- package/dist/kolibri/component-D6lo0LzE.js +4 -0
- package/dist/kolibri/{component-NEw1tN3M.js → component-D9NreIlK.js} +1 -1
- package/dist/kolibri/component-DAk3R8NN.js +4 -0
- package/dist/kolibri/{component-et0GdBuf.js → component-EDDTMC-J.js} +1 -1
- package/dist/kolibri/contrast-BNoQruBh.js +4 -0
- package/dist/kolibri/{controller-Cb-96wE-.js → controller-CZcQ57AP.js} +1 -1
- package/dist/kolibri/dev.utils-BwYCy1rP.js +4 -0
- package/dist/kolibri/{devtools-nUT3JVTV.js → devtools-CGP3Nzsw.js} +1 -1
- package/dist/kolibri/disabled-BZXlWAgK.js +4 -0
- package/dist/kolibri/field-control-0TRmF7Ea.js +4 -0
- package/dist/kolibri/group-DapkT_Yh.js +4 -0
- package/dist/kolibri/has-closer-DUB0QcS9.js +4 -0
- package/dist/kolibri/href-CxokGOJ2.js +4 -0
- package/dist/kolibri/i18n-4J6U3ZDc.js +4 -0
- package/dist/kolibri/i18n-ePBcLlCr.js +4 -0
- package/dist/kolibri/id-BI0ZuK17.js +4 -0
- package/dist/kolibri/index-DEcM8BEc.js +6 -0
- package/dist/kolibri/index.esm.js +1 -1
- package/dist/kolibri/input-CDUCo1S5.js +4 -0
- package/dist/kolibri/input-container-BipAkWn4.js +4 -0
- package/dist/kolibri/item-B0oQTeju.js +4 -0
- package/dist/kolibri/item-Boe3t0Dm.js +4 -0
- package/dist/kolibri/item-BvnZc8uV.js +4 -0
- package/dist/kolibri/item-UgJ2uikD.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-B-Dr7VaP.js +4 -0
- package/dist/kolibri/label-hints-CLMiVvfk.js +4 -0
- package/dist/kolibri/label-lang-segment-iVD9hoM3.js +4 -0
- package/dist/kolibri/label-with-expert-slot-BbZ9nx0l.js +4 -0
- package/dist/kolibri/level-DsQ_pcyD.js +4 -0
- package/dist/kolibri/link-target-D7lYILOV.js +4 -0
- package/dist/kolibri/links-IkK4zoXw.js +4 -0
- package/dist/kolibri/multiple--ay1C1n3.js +4 -0
- package/dist/kolibri/number-value-Dl9-2O4r.js +4 -0
- package/dist/kolibri/open-CNHJhHsy.js +4 -0
- package/dist/kolibri/options-DwO32GBF.js +4 -0
- package/dist/kolibri/orientation-ChJ0S24M.js +4 -0
- package/dist/kolibri/placeholder-UxmBJ4Vl.js +4 -0
- package/dist/kolibri/{props-from-config-Ci0dILpz.js → props-from-config-ytxYrJUY.js} +1 -1
- package/dist/kolibri/read-only-DytZ5HZJ.js +4 -0
- package/dist/kolibri/required-BriHhuO4.js +4 -0
- package/dist/kolibri/resolve-props-DTXKtzir.js +4 -0
- package/dist/kolibri/resolve-props-kM9N-fzf.js +4 -0
- package/dist/kolibri/rows-I1jrTjzU.js +4 -0
- package/dist/kolibri/{scroll-lock-D7Zo0QLt.js → scroll-lock-Bv-U2FHM.js} +1 -1
- package/dist/kolibri/{smart-button-CS_ZriPt.js → smart-button-DM5g48-g.js} +1 -1
- package/dist/kolibri/spell-check-BWCnJG5v.js +4 -0
- package/dist/kolibri/src-ziOwSglN.js +4 -0
- package/dist/kolibri/step-BcyhvRtu.js +4 -0
- package/dist/kolibri/suggestions-D0u80DtA.js +4 -0
- package/dist/kolibri/{suggestions-Dy1X-Pc3.js → suggestions-LO267l8F.js} +1 -1
- package/dist/kolibri/test-component.entry.js +1 -1
- package/dist/kolibri/toggle-handler-mPlmvrq7.js +4 -0
- package/dist/kolibri/unique-nav-labels-CxFUYSVY.js +4 -0
- package/dist/kolibri/unit-1ix-K9SD.js +4 -0
- package/dist/kolibri/validators-CTjxOidB.js +4 -0
- package/dist/kolibri/value-string-CxDz7dhD.js +4 -0
- package/dist/kolibri/{width-CgYY17tL.js → width-C1_yZHyL.js} +1 -1
- package/dist/types/components/progress/component.d.ts +1 -0
- package/dist/types/components/single-select/component.d.ts +1 -0
- package/dist/types/components/table-stateful/component.d.ts +0 -1
- package/dist/types/components/table-stateless/component.d.ts +0 -1
- package/dist/types/components/tabs/component.d.ts +0 -1
- package/dist/types/components/tree/component.d.ts +1 -0
- package/dist/types/components.d.ts +4 -4
- package/dist/types/internal/functional-components/form-association/api.d.ts +1 -1
- package/dist/types/internal/functional-components/form-association/behavior.d.ts +0 -1
- package/dist/types/internal/functional-components/form-field/custom-suggestions.d.ts +1 -0
- package/dist/types/internal/functional-components/icon/api.d.ts +1 -1
- package/dist/types/internal/functional-components/single-select/component.d.ts +3 -0
- package/dist/types/internal/props/helpers/validators.d.ts +2 -1
- package/dist/types/internal/props/index.d.ts +1 -0
- package/dist/types/internal/props/label-decorative.d.ts +4 -0
- package/dist/types/locales/de.d.ts +1 -0
- package/dist/types/locales/en.d.ts +1 -0
- package/dist/types/schema/bem-registry.d.ts +49 -0
- package/dist/types/schema/i18n-keys.d.ts +29 -28
- package/dist/types/schema/index.d.ts +1 -1
- package/dist/types/schema/props/aria-details.d.ts +0 -2
- package/dist/types/schema/props/aria-labelledby.d.ts +1 -2
- package/dist/types/schema/props/label.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1 -1
- package/dist/types/utils/aria-labelledby.d.ts +0 -6
- package/doc/table-stateful.md +16 -16
- package/doc/table-stateless.md +14 -14
- package/package.json +6 -6
- package/vscode-custom-data.json +2 -2
- package/dist/kolibri/Heading-wrhAEuG3.js +0 -4
- package/dist/kolibri/api-7B_iI89k.js +0 -4
- package/dist/kolibri/app-globals-tRqgHq3P.js +0 -4
- package/dist/kolibri/aria-labelledby-CLehu03h.js +0 -4
- package/dist/kolibri/base-BVztEKgJ.js +0 -4
- package/dist/kolibri/base-C32RNC8q.js +0 -4
- package/dist/kolibri/behavior-DN-22cB1.js +0 -4
- package/dist/kolibri/block-bem-DehcAQZQ.js +0 -4
- package/dist/kolibri/bootstrap-DHXUvPBY.js +0 -4
- package/dist/kolibri/common-OzsC_6kt.js +0 -4
- package/dist/kolibri/component-0IO2wu9i.js +0 -4
- package/dist/kolibri/component-4xXBb7K-.js +0 -4
- package/dist/kolibri/component-BJ4gGOph.js +0 -4
- package/dist/kolibri/component-CPq3i3I_.js +0 -4
- package/dist/kolibri/component-CTOYF3q6.js +0 -4
- package/dist/kolibri/component-ChuoBFI-.js +0 -4
- package/dist/kolibri/component-Cxdi6on4.js +0 -4
- package/dist/kolibri/component-DWywPG_a.js +0 -4
- package/dist/kolibri/component-EK9BJR6z.js +0 -4
- package/dist/kolibri/contrast-D78VGPFR.js +0 -4
- package/dist/kolibri/dev.utils-Bg7nZBMk.js +0 -4
- package/dist/kolibri/disabled-Cqhc40CU.js +0 -4
- package/dist/kolibri/field-control-D2tOd14v.js +0 -4
- package/dist/kolibri/group-CxWsx0aJ.js +0 -4
- package/dist/kolibri/has-closer-B9NQY7BK.js +0 -4
- package/dist/kolibri/href-JqLbNBsW.js +0 -4
- package/dist/kolibri/i18n-Dl6Jjofb.js +0 -4
- package/dist/kolibri/i18n-DtLKn3Xt.js +0 -4
- package/dist/kolibri/id-CIYvVaNr.js +0 -4
- package/dist/kolibri/index-B_bJG8-2.js +0 -6
- package/dist/kolibri/input-Ia9Z3AP7.js +0 -4
- package/dist/kolibri/input-container-Y_8n5Sen.js +0 -4
- package/dist/kolibri/item-BKVeXzUO.js +0 -4
- package/dist/kolibri/item-BZtI88zF.js +0 -4
- package/dist/kolibri/item-BjriQHQl.js +0 -4
- package/dist/kolibri/item-BuqBMSYI.js +0 -4
- package/dist/kolibri/label-BRosRgdX.js +0 -4
- package/dist/kolibri/label-hints-Jn18RUT-.js +0 -4
- package/dist/kolibri/label-lang-segment-2_GnxjFp.js +0 -4
- package/dist/kolibri/label-with-expert-slot-CicRes-W.js +0 -4
- package/dist/kolibri/level-CA1s1_Mf.js +0 -4
- package/dist/kolibri/link-target-FX94oqMo.js +0 -4
- package/dist/kolibri/links-DwucTqcR.js +0 -4
- package/dist/kolibri/multiple-DqrZxybx.js +0 -4
- package/dist/kolibri/number-value-B-SJ1dRo.js +0 -4
- package/dist/kolibri/open-DRRv1KFK.js +0 -4
- package/dist/kolibri/options-DCaUcfAu.js +0 -4
- package/dist/kolibri/orientation-XNOCaPwy.js +0 -4
- package/dist/kolibri/placeholder-BeLIzdJv.js +0 -4
- package/dist/kolibri/read-only-Bby9r6ZX.js +0 -4
- package/dist/kolibri/required-hoaT7UmZ.js +0 -4
- package/dist/kolibri/resolve-props-BkF1VBBB.js +0 -4
- package/dist/kolibri/resolve-props-CHPFh7Tn.js +0 -4
- package/dist/kolibri/rows-B0x8CR7K.js +0 -4
- package/dist/kolibri/spell-check-DzgftyqL.js +0 -4
- package/dist/kolibri/src-DaGhmCL1.js +0 -4
- package/dist/kolibri/step-Bdj89bGO.js +0 -4
- package/dist/kolibri/suggestions-GEr-cvbz.js +0 -4
- package/dist/kolibri/toggle-handler-Bqoo8tCo.js +0 -4
- package/dist/kolibri/unique-nav-labels-h2KOu5Qy.js +0 -4
- package/dist/kolibri/unit-BUhhJbhT.js +0 -4
- package/dist/kolibri/validators-BVM40IEr.js +0 -4
- package/dist/kolibri/value-string-e9pwLcS-.js +0 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import { h } from './index-
|
|
5
|
-
import { b as bem } from './bem-registry-
|
|
4
|
+
import { h } from './index-DEcM8BEc.js';
|
|
5
|
+
import { b as bem } from './bem-registry-D1KgKnyz.js';
|
|
6
6
|
import { c as clsx } from './clsx-COFh-Vc8.js';
|
|
7
7
|
|
|
8
8
|
const dialogBem = bem.forBlock('kol-dialog');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import { p as parseJson } from './common-
|
|
5
|
-
import { c as createPropDefinition } from './props-from-config-
|
|
4
|
+
import { p as parseJson } from './common-BdSzSIXg.js';
|
|
5
|
+
import { c as createPropDefinition } from './props-from-config-ytxYrJUY.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-ytxYrJUY.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-ytxYrJUY.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, z as normalizeInputNumber } from './props-from-config-
|
|
4
|
+
import { c as createPropDefinition, z as normalizeInputNumber } from './props-from-config-ytxYrJUY.js';
|
|
5
5
|
|
|
6
6
|
const stepProp = createPropDefinition('step', undefined, normalizeInputNumber);
|
|
7
7
|
|
|
@@ -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-ytxYrJUY.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-DEcM8BEc.js';
|
|
7
|
+
import { a as createRelatedUniqueId } from './dev.utils-BwYCy1rP.js';
|
|
8
8
|
|
|
9
9
|
const autoCompleteProp = createPropDefinition('autoComplete', 'off', normalizeString, (value) => value.length > 0);
|
|
10
10
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import { n as a11yHint, p as parseJson } from './common-
|
|
5
|
-
import { c as createPropDefinition } from './props-from-config-
|
|
4
|
+
import { n as a11yHint, p as parseJson } from './common-BdSzSIXg.js';
|
|
5
|
+
import { c as createPropDefinition } from './props-from-config-ytxYrJUY.js';
|
|
6
6
|
|
|
7
7
|
function normalizeSuggestions(value) {
|
|
8
8
|
const parsed = typeof value === 'string' ? parseJson(value) : value;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance } from './index-
|
|
5
|
-
import './common-
|
|
4
|
+
import { r as registerInstance } from './index-DEcM8BEc.js';
|
|
5
|
+
import './common-BdSzSIXg.js';
|
|
6
6
|
|
|
7
7
|
const TestComponent = class {
|
|
8
8
|
constructor(hostRef) {
|
|
9
|
-
|
|
9
|
+
if (new.target === TestComponent)
|
|
10
|
+
registerInstance(this, hostRef);
|
|
10
11
|
}
|
|
11
12
|
};
|
|
12
13
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import './common-
|
|
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-
|
|
4
|
+
import './common-BdSzSIXg.js';
|
|
5
|
+
import { l as levelProp } from './level-DsQ_pcyD.js';
|
|
6
|
+
import { a as createCallbacksPropDefinition } from './props-from-config-ytxYrJUY.js';
|
|
7
|
+
import { d as disabledProp } from './disabled-BZXlWAgK.js';
|
|
8
|
+
import { l as labelLangSegmentsProp } from './label-lang-segment-iVD9hoM3.js';
|
|
9
|
+
import { o as openProp } from './open-CNHJhHsy.js';
|
|
10
|
+
import { h } from './index-DEcM8BEc.js';
|
|
11
|
+
import { K as KolHeadingFc } from './Heading-GZb1f2pZ.js';
|
|
12
12
|
import { c as clsx } from './clsx-COFh-Vc8.js';
|
|
13
13
|
import { p as preventFocus } from './element-interaction-sGYdEpmv.js';
|
|
14
|
-
import { g as getBlockBem } from './block-bem-
|
|
15
|
-
import { S as SpanFC } from './component-
|
|
14
|
+
import { g as getBlockBem } from './block-bem-D3ixJyOY.js';
|
|
15
|
+
import { S as SpanFC } from './component-D9NreIlK.js';
|
|
16
16
|
import { d as dispatchDomEvent, K as KolEvent } from './events-CRHxtwup.js';
|
|
17
17
|
|
|
18
18
|
const collapsibleCallbacksProp = createCallbacksPropDefinition();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import { L as Log } from './common-
|
|
5
|
-
import { t as trimLabel } from './props-from-config-
|
|
4
|
+
import { L as Log } from './common-BdSzSIXg.js';
|
|
5
|
+
import { t as trimLabel } from './props-from-config-ytxYrJUY.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, A as normalizeNumber, b as normalizeString } from './props-from-config-
|
|
4
|
+
import { c as createPropDefinition, A as normalizeNumber, b as normalizeString } from './props-from-config-ytxYrJUY.js';
|
|
5
5
|
|
|
6
6
|
const maxProp = createPropDefinition('max', 100, normalizeNumber, (v) => v > 0);
|
|
7
7
|
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import { g as isValidLabelSegments, x as isValidLabelString } from './props-from-config-
|
|
4
|
+
import { g as isValidLabelSegments, x as isValidLabelString } from './props-from-config-ytxYrJUY.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);
|
|
8
8
|
const isValidLabel = isValidLabelString;
|
|
9
9
|
const isValidLabelWithExpertSlot = (value) => value === '' || isValidLabelSegments(value);
|
|
10
|
+
const isValidLabelDecorative = (value) => value === '' || isValidLabel(value);
|
|
10
11
|
|
|
11
|
-
export {
|
|
12
|
+
export { isSafeClassName as a, isValidLabelWithExpertSlot as b, isValidLabel as c, isValidLabelDecorative as i };
|
|
@@ -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-ytxYrJUY.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-ytxYrJUY.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-DEcM8BEc.js";import{c as l}from"./clsx-COFh-Vc8.js";const a=1;function r(e){return function(e){return e>=a&&e<=6}(e)?`h${e}`:"strong"}const o=(o,c)=>{var{class:n,level:t=a}=o,i=e(o,["class","level"]);const d=r(t);return s(d,Object.assign({class:l("kol-headline",`kol-headline--${d}`,n)},i),c)},c=(a,r)=>{var{class:o}=a,c=e(a,["class"]);return s("p",Object.assign({class:l("kol-headline kol-headline--group kol-headline--secondary",o)},c),r)},n=(r,n)=>{var{secondaryHeadline:t,level:i=a,class:d,HeadingGroupProps:p={},SecondaryHeadlineProps:u={}}=r,h=e(r,["secondaryHeadline","level","class","HeadingGroupProps","SecondaryHeadlineProps"]);const j=Object.assign({level:i},h);if(!t)return s(o,Object.assign({class:l(d,"kol-headline--single")},j),n);const{class:b}=p,g=e(p,["class"]),k=Object.assign({class:l("kol-heading-group",b)},g);return s("hgroup",Object.assign({},k),s(o,Object.assign({class:l(d,"kol-headline--group","kol-headline--primary")},j),n),s(c,Object.assign({},u),t))};export{n as K,r 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-D9NreIlK.js";import{r as a}from"./aria-labelledby-DqJY_4G-.js";import{c as n,b as d,n as h,a as c,t as p}from"./props-from-config-ytxYrJUY.js";import{a as u,c as m,n as v}from"./dev.utils-BwYCy1rP.js";import{K as b,d as f}from"./events-CRHxtwup.js";import{d as g}from"./disabled-BZXlWAgK.js";import{j as y,h as j,e as B}from"./component-D4-NVnsT.js";import{l as _}from"./label-with-expert-slot-BbZ9nx0l.js";import{n as L}from"./component-B3OziaRC.js";import{B as O}from"./base-web-component-CC_gpyDb.js";import{c as C}from"./item-B0oQTeju.js";import{F as T}from"./behavior-ewHvUWVk.js";import{c as D}from"./item-Boe3t0Dm.js";import{T as K}from"./behavior-CKU2tmCj.js";import{h as N}from"./index-DEcM8BEc.js";import{t as x}from"./i18n-ePBcLlCr.js";import{b as F}from"./bem-registry-D1KgKnyz.js";import{c as w}from"./clsx-COFh-Vc8.js";import{B as P}from"./component-Ccv2lqNq.js";import{T as A}from"./component-D6_K50vT.js";import{P as k}from"./component-By8ggItU.js";import{A as I}from"./component-Cmi6iGfA.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 S=n("ariaDetails","",d),q=n("hideMsg",!1,h),E=n("hint","",d),z=n("infoPopover",void 0,(function(e){if("object"==typeof e&&null!==e)return e;throw new Error("Invalid info popover: "+typeof e)})),$=c(),U=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))})),V=n("touched",!1,h),Y=i=>{var{id:t,class:o,hint:s,baseClassName:l="kol-form-field"}=i,r=e(i,["id","class","hint","baseClassName"]);return s?N("span",Object.assign({class:w(`${l}__hint`,o),id:u(t||"","hint")},r),s):null},R=i=>{var{component:t="label",id:o,baseClassName:r="kol-form-field",class:a,accessKey:n,shortKey:d,label:h,hideLabel:c,hasExpertSlot:p,omitId:m,showBadge:v=!0,readOnly:b,infoPopover:f}=i,g=e(i,["component","id","baseClassName","class","accessKey","shortKey","label","hideLabel","hasExpertSlot","omitId","showBadge","readOnly","infoPopover"]);const y=!p&&c,j=!1===v?void 0:l(n,d);return N(t,Object.assign({},g,{class:w(`${r}__label`,a),id:y||m?void 0:u(o,"label"),hidden:y,htmlFor:"legend"===t?void 0:o}),N(s,{class:`${r}__label-text`,label:p?"":null!=h?h:"",badgeText:j},N("slot",{name:"expert"})),!p&&b&&N("span",{class:`${r}__label__read-only`,"aria-hidden":"true"},"(",x("kol-readonly"),")"),!p&&f&&N("span",null,N(k,Object.assign({},f.popoverButton),N("div",{class:"kol-popover-button__popover--styled"},f.content))))},G=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 N(I,Object.assign({alert:!r&&(null!==(o=null==c?void 0:c._alert)&&void 0!==o?o:!0===l),class:w("kol-form-field__msg",r&&"visually-hidden",d),closerAriaDescriptionId:v(),handleCloserClick:()=>{},hasCloser:!1,headingId:m("alert-heading"),id:u(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)},J=F.forBlock("kol-form-field"),Q=({hideLabel:e,label:i,renderNoTooltip:t})=>!t&&!r(i)&&!0===e,W=e=>{const i=M(e);return{[i]:!0,[`msg-type-${i}`]:!0}},X=(i,t)=>{const{renderNoLabel:o,renderNoTooltip:s,renderNoHint:a,id:n,required:d,alert:h,disabled:c,class:p,msg:m,hideMsg:v,hideLabel:b,label:f,infoPopover:g,hint:j,accessKey:B,shortKey:_,counter:L,readOnly:O,touched:C,maxLength:T,ariaDescribedBy:D,showBadge:K,tooltipAlign:F,variant:k,component:I="div",orientation:M,refInput:S,refTooltip:q}=i,E=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"]),z=r(f),$=H(m,C),U=l(B,_),V=Q({hideLabel:b,label:f,renderNoTooltip:s}),X="fieldset"===I;return N(P,Object.assign({component:I,block:"kol-form-field",modifiers:Object.assign({disabled:Boolean(c),required:Boolean(d),touched:Boolean(C),"hide-label":Boolean(b),"read-only":Boolean(O),"hidden-msg":Boolean(v)},$?W(m):{}),class:w(k&&y(k,"form-field"),p),disabled:!(!X||!c)||void 0,"aria-describedby":D},E),!o&&N(R,{component:X?"legend":"label",class:X?"kol-form-field__label--legend":void 0,id:n,hasExpertSlot:z,hideLabel:b,label:f,accessKey:B,shortKey:_,readOnly:O,showBadge:K,infoPopover:g}),N("div",{class:J("input",{"orientation-horizontal":"horizontal"===M,"orientation-vertical":"vertical"===M}),ref:S},t,V&&N("div",{class:J("tooltip")},N(A,{badgeText:U||"",label:f,align:F,id:u(n,"label"),refFloating:q}))),L&&!("soft"===L.maxLengthBehavior&&"number"!=typeof L.maxLength)&&N("div",{class:J("counter")},N("span",{"aria-hidden":"true",class:J("counter"),ref:L.visualRef}),N("span",{"aria-live":"polite",class:"visually-hidden",id:u(n,"counter"),ref:L.ariaRef})),$&&N(G,{id:n,alert:h,hideMsg:v,msg:m}),!a&&N(Y,{id:n,hint:j}),"number"==typeof T&&!L&&N("span",{id:u(n,"character-limit-hint"),class:"visually-hidden"},x("kol-character-limit-hint",{placeholders:{limit:String(T)}})))};class Z extends O{constructor(){super(...arguments),this.tooltipBehavior=new K(O.stateLess),this.smartButton=C((()=>this.host)),this.infoPopover=D({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(b.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(b.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(b.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(b.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(b.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(O.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){S.apply(e,(e=>this.shared.setRenderProp("ariaDetails",e))),this.syncAriaDetails()}syncAriaDetails(){var e,i,t,o;const s=null===(i=null===(e=this.host)||void 0===e?void 0:e.shadowRoot)||void 0===i?void 0:i.querySelector("input, select, textarea");if(!s||!("ariaDetailsElements"in s))return;const l=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){g.apply(e,(e=>this.shared.setRenderProp("disabled",e)))}applyHideLabel(e){j.apply(e,(e=>this.shared.setRenderProp("hideLabel",e)))}applyHideMsg(e){q.apply(e,(e=>this.shared.setRenderProp("hideMsg",e)))}applyHint(e){E.apply(e,(e=>this.shared.setRenderProp("hint",e)))}applyInfoPopover(e){z.apply(e,(e=>this.shared.setRenderProp("infoPopover",e)))}applyLabel(e){_.apply(e,(e=>this.shared.setRenderProp("label",e)),this.isRequired("label"))}applyMsg(e){U.apply(e,(e=>this.shared.setRenderProp("msg",e)))}applyName(e){L.apply(e,(e=>this.shared.setRenderProp("name",e))),this.formAssociation.watchName(e)}applyOn(e){$.apply(e,(e=>this.shared.setRenderProp("on",e)))}applySyncValueBySelector(e){this.formAssociation.watchSyncValueBySelector(e)}applyTooltipAlign(e){B.apply(null!=e?e:"top",(e=>this.shared.setRenderProp("tooltipAlign",e)))}applyTouched(e){V.apply(e,(e=>this.shared.setRenderProp("touched",e)))}get eventHost(){var e,i;return null!==(i=null===(e=this.formAssociation)||void 0===e?void 0:e.host)&&void 0!==i?i:this.host}emit(e,i){this.eventHost&&f(this.eventHost,e,i)}handleFocusLeave(e){var i,t;if(this._disabled)return;const o=this.eventHost,s=(null==o?void 0:o.shadowRoot)||o,l=(null==s?void 0:s.contains(e.relatedTarget))||o===e.relatedTarget;this.focusEventSent&&!l&&(this._touched=!0,this.emit(b.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(u(e,"msg")),a&&n.push(u(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 Q({hideLabel:e.getRenderProp("hideLabel"),label:p(e.getRenderProp("label"))})}getLabelTooltipRefs(){return{refInput:this.setInputRef,refTooltip:this.setTooltipRef}}getFormFieldProps({class:e,accessKey:i,shortKey:t,variant:o,counter:s,maxLength:r,readOnly:a,renderNoLabel:n,renderNoTooltip:d,required:h}){const c=this.shared,p=c.getState("id"),m=c.getRenderProp("label"),v=c.getRenderProp("tooltipAlign");return this.isTooltipShown()?(this.tooltipBehavior.watchAlign(v),this.tooltipBehavior.watchBadgeText(l(i,t)||""),this.tooltipBehavior.watchId(u(p,"label")),this.tooltipBehavior.watchLabel(m)):this.tooltipBehavior.destroy(),{id:p,disabled:c.getRenderProp("disabled"),msg:c.getRenderProp("msg"),hint:c.getRenderProp("hint"),label:m,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:v,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?p(t):void 0}}const ie={required:[_],optional:[S,g,j,q,E,z,$,U,L,B,V]};export{Z as B,X as F,Y as a,R as b,ee as c,ie as f,M as g,H as i}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{L as o,d as t,w as s}from"./common-BdSzSIXg.js";import{a}from"./index-DEcM8BEc.js";const c=(()=>{a((o=>{try{o.shadowRoot instanceof ShadowRoot&&t(o,s(o))}catch(o){}return"default"})),import("./devtools-CGP3Nzsw.js").then((o=>{"object"==typeof o&&null!==o&&"function"==typeof o.initialize&&o.initialize()})).catch((t=>{o.error(t)}))})||(()=>{});export{c as g}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
const o=(o,n)=>{const e=(null!=n?n:"").trim().split(/\s+/).filter(Boolean);if(!e.length)return[];const t=null==o?void 0:o.getRootNode();return e.map((o=>"undefined"!=typeof Document&&t instanceof Document?t.getElementById(o):"undefined"!=typeof ShadowRoot&&t instanceof ShadowRoot?t.querySelector(`#${(o=>{var n;return(null===(n=globalThis.CSS)||void 0===n?void 0:n.escape)?globalThis.CSS.escape(o):o.replace(/[^a-zA-Z0-9_-]/g,"\\$&")})(o)}`):"undefined"!=typeof document?document.getElementById(o):null)).filter((o=>!!o))};export{o as r}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{h as s}from"./index-DEcM8BEc.js";import{s as i,X as t}from"./common-BdSzSIXg.js";import{B as a}from"./base-web-component-CC_gpyDb.js";import{b as e,e as o,a as h,n as l,c as r,d as n,B as p}from"./component-B3OziaRC.js";import{F as d}from"./behavior-ewHvUWVk.js";import{T as c}from"./behavior-CKU2tmCj.js";import{a as m,b as y,c as b,f as u,g as f,h as v,s as C,i as j,l as x,d as B,t as A,e as I,v as g}from"./component-D4-NVnsT.js";import{d as D}from"./disabled-BZXlWAgK.js";import{i as K}from"./id-BI0ZuK17.js";import"./props-from-config-ytxYrJUY.js";import{l as T}from"./label-with-expert-slot-BbZ9nx0l.js";import{v as S}from"./access-and-short-key-ijzCZfHm.js";import{c as H}from"./element-interaction-sGYdEpmv.js";import{d as w,K as E}from"./events-CRHxtwup.js";import{p as L,a as P}from"./controller-CZcQ57AP.js";class V extends a{constructor(){super(...arguments),this.ctaRef=H(),this.propsConfig=e,this.tooltipBehavior=new c(this.stateAccess),this.handleClick=s=>{s.stopPropagation(),this.tooltipBehavior.hideTooltip();const t=this.getRenderProp("type");if("submit"===t)L({form:this.host});else if("reset"===t)P({form:this.host});else{this.formAssociation.setFormAssociatedValue(this.formValue);const t=this.getRenderProp("on").onClick;"function"==typeof t&&(i(s,this.ctaRef.el),t(s,this.formValue))}this.host&&w(this.host,E.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,E.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,E.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,E.blur)}}initFormAssociation(){this.formAssociation=new d(a.stateLess,{host:this.host,type:"button"})}unsetButtonTabIndex(){this.unsetRenderProp("tabIndex")}initTooltipBehavior(){this.tooltipBehavior.componentWillLoad({label:this.getRenderProp("label"),align:this.getRenderProp("tooltipAlign")})}syncTooltipListeners(){this.ctaRef.el&&this.tooltipBehavior.syncListeners(void 0,this.ctaRef.el,!0)}destroyTooltipBehavior(){this.tooltipBehavior.destroy()}applyAccessKey(s,i){m.apply(s,(s=>this.setRenderProp("accessKey",s))),S(s,i)}applyAriaControls(s){y.apply(s,(s=>this.setRenderProp("ariaControls",s)))}applyAriaDescription(s){b.apply(s,(s=>this.setRenderProp("ariaDescription",s)))}applyAriaExpanded(s){u.apply(s,(s=>this.setRenderProp("ariaExpanded",s)))}applyAriaHasPopup(s){o.apply(s,(s=>this.setRenderProp("ariaHasPopup",s)))}applyAriaSelected(s){h.apply(s,(s=>this.setRenderProp("ariaSelected",s)))}applyCustomClass(s){f.apply(s,(s=>this.setRenderProp("customClass",s)))}applyDisabled(s){D.apply(s,(s=>this.setRenderProp("disabled",s)))}applyHideLabel(s){v.apply(s,(s=>this.setRenderProp("hideLabel",s)))}applyIcons(s){C.apply(s,(s=>this.setRenderProp("icons",s)))}applyId(s){K.apply(s,(s=>this.setRenderProp("id",s)))}applyInline(s){j.apply(s,(s=>this.setRenderProp("inline",s)))}applyLabel(s){T.apply(s,(s=>{this.setRenderProp("label",s),this.tooltipBehavior.watchLabel(s)}),this.isRequired("label"))}applyName(s){l.apply(s,(s=>this.setRenderProp("name",s))),this.formAssociation.watchName(s)}applyOn(s){r.apply(s,(s=>this.setRenderProp("on",s)))}applyRole(s){x.apply(s,(s=>this.setRenderProp("role",s)))}applyShortKey(s,i){B.apply(s,(s=>this.setRenderProp("shortKey",s))),S(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){I.apply(null!=s?s:"top",(s=>{this.setRenderProp("tooltipAlign",s),this.tooltipBehavior.watchAlign(s)}))}applyType(s){n.apply(s,(s=>this.setRenderProp("type",s)))}applyValue(s){this.formValue=s,this.formAssociation.setFormAssociatedValue(s)}applyVariant(s){var i;g.apply(null!==(i=null!=s?s:t("buttonVariantDefault",this.host))&&void 0!==i?i:"normal",(s=>this.setRenderProp("variant",s)))}getButtonFCProps(){return{accessKey:this.getRenderProp("accessKey"),ariaControls:this.getRenderProp("ariaControls"),ariaDescription:this.getRenderProp("ariaDescription"),ariaDescriptionId:this.getState("ariaDescriptionId"),ariaExpanded:this.getRenderProp("ariaExpanded"),ariaHasPopup:this.getRenderProp("ariaHasPopup"),ariaSelected:this.getRenderProp("ariaSelected"),customClass:this.getRenderProp("customClass"),disabled:this.getRenderProp("disabled"),handleBlur:this.handleBlur,handleClick:this.handleClick,handleFocus:this.handleFocus,handleMouseDown:this.handleMouseDown,hideLabel:this.getRenderProp("hideLabel"),icons:this.getRenderProp("icons"),id:this.getRenderProp("id"),inline:this.getRenderProp("inline"),label:this.getRenderProp("label"),name:this.getRenderProp("name"),on:this.getRenderProp("on"),refButton:this.ctaRef,refTooltip:this.tooltipBehavior.setTooltipElementRef,role:this.getRenderProp("role"),shortKey:this.getRenderProp("shortKey"),tabIndex:this.getRenderProp("tabIndex"),tooltipAlign:this.getRenderProp("tooltipAlign"),type:this.getRenderProp("type"),variant:this.getRenderProp("variant")}}renderButtonFC(){return s(p,Object.assign({},this.getButtonFCProps()))}}export{V 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-DEcM8BEc.js";import{B as a}from"./base-web-component-CC_gpyDb.js";import{c as r}from"./item-B0oQTeju.js";import{c}from"./item-pool-BOxAYePG.js";import{c as d}from"./item-BvnZc8uV.js";import{c as h,e as u,n as b,a as p,r as v,t as f,v as m}from"./props-from-config-ytxYrJUY.js";import{l as y}from"./label-lang-segment-iVD9hoM3.js";import{v as g,j as k}from"./component-D4-NVnsT.js";import{c as j,d as C,e as S}from"./component-names-Dhbtt0mX.js";import{t as w}from"./i18n-ePBcLlCr.js";import{b as _}from"./bem-registry-D1KgKnyz.js";import{B as x}from"./component-Ccv2lqNq.js";import{B as O}from"./component-B3OziaRC.js";import{I as $}from"./component-EDDTMC-J.js";import{L as D}from"./component-CF8uFG0A.js";import{r as F}from"./component-D9NreIlK.js";import{S as L}from"./component-D6lo0LzE.js";import{T as B}from"./component-D6_K50vT.js";import{a as T}from"./tslib.es6-QNbPBOk5.js";import{n as z,c as E}from"./dev.utils-BwYCy1rP.js";import{d as A,K as I}from"./events-CRHxtwup.js";import{A as M}from"./component-Cmi6iGfA.js";import{l as H}from"./level-DsQ_pcyD.js";import{c as K}from"./element-interaction-sGYdEpmv.js";import{u as N,l as P,d as G,D as R}from"./scroll-lock-Bv-U2FHM.js";import{h as Y}from"./tooltip-open-tracking-D3tCiiGP.js";import{d as V,w as q}from"./width-C1_yZHyL.js";import{r as U,C as W}from"./component-DAk3R8NN.js";import{T as J}from"./behavior-CKU2tmCj.js";import{C as Q}from"./keyboard-DNd73LVa.js";const X=(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,tt=h("fixedCols",[0,0],(t=>u(t)),(t=>2===t.length&&t.every(Z))),et=h("hasSettingsMenu",!1,b),ot=p();function lt(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 it(t){return t.every((t=>"object"==typeof t&&null!==t))}const st=h("data",[],lt,it),nt=h("dataFoot",[],lt,it),at=t=>Array.isArray(t)&&t.every((t=>Array.isArray(t))),rt=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(!at(l)||!at(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))))})),ct=h("loading",!1,b),dt=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))})),ht={required:[y,st],optional:[tt,et,ot,nt,rt,ct,dt,g]},ut=t=>t.flatMap((t=>t.filter((t=>"string"==typeof t.key||"function"==typeof t.render)))),bt=t=>{const e=ut(t.horizontal);if(e.length>0)return{cells:e,horizontal:!0};const o=ut(t.vertical);return{cells:o,horizontal:0===o.length}},pt=(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},vt=(t,e)=>{const o=Math.max(0,...t.map((t=>pt(t,"colSpan"))));return 0===o?e.length:o},ft=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},mt=(t,e,o,l)=>{if(void 0!==l&&!e)return l<t[0]?"left":t[1]>0&&l>=o-t[1]?"right":void 0},yt=(t,e,o,l)=>{var i,s,n,a,r,c;const d=[];for(let a=0;a<e;a++)"left"===mt(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"===mt(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},gt=(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`},kt=(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},jt=({data:t,dataFoot:e,headers:o,isFoot:l,noEntriesLabel:i,primaryHeaders:s})=>{const n=vt(o.horizontal,t),a=s.cells;let r=((t,e,o)=>{const l=Math.max(0,...t.map((t=>pt(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=ft(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},Ct=({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(" + ")})`},St=t=>void 0===t?[]:Array.isArray(t)?t:[t],wt=t=>{var e;return null!==(e=t?t.keyPropertyName:void 0)&&void 0!==e?e:"id"},_t=t=>{const e=t?St(t.selectedKeys):[];return{disabledKeys:new Set((t?St(t.disabledKeys):[]).map(String)),keyPropertyName:wt(t),selectedKeys:e,selectedKeysSet:new Set(e.map(String))}},xt=(t,e)=>t.filter((t=>!e.disabledKeys.has(String(t[e.keyPropertyName])))),Ot=_.forBlock("kol-table"),$t=Ot("body"),Dt=Ot("cell-actions"),Ft=Ot("cell-states"),Lt=Ot("footer"),Bt=Ot("head"),Tt=Ot("head-row"),zt=Ot("scroll-container"),Et=Ot("selection-icon"),At=Ot("selection-input-tooltip"),It=Ot("sort"),Mt=Ot("sort-button"),Ht=Ot("sort-order"),Kt=Ot("table"),Nt=`${Ot("focus-element")} ${Ot("caption")}`,Pt="caption",Gt=(t,e)=>mt(t.fixedCols,t.stickyColsDisabled,t.maxCols,e),Rt=(t,e,o)=>({left:"left"===e?gt(t.fixedOffsets,o,!0,!1!==t.selection):void 0,right:"right"===e?gt(t.fixedOffsets,o,!1,!1!==t.selection):void 0}),Yt=(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)},Vt=t=>{const e=w("kol-sort");return"number"==typeof t&&t>0?`${e} – ${w("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=Gt(t,l),{left:b,right:p}=Rt(t,u,l),v=e.textAlign,f=n?e.sortDirection:void 0;return i("th",{key:`${o}-${l}-${e.label}`,class:Ot("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:It},i(O,Object.assign({},t.getButtonFcProps(`sort-${s?"vertical":"horizontal"}-${o}-${l}`,{_icons:{right:r},_label:e.label,_ariaDescription:Vt(d),_on:{onClick:o=>{t.handleSort(o,{key:e.key,currentSortDirection:f})}}},{class:Mt}))),d&&i("span",{"aria-hidden":"true",class:Ht},d)):e.label)},Ut=(t,e,o,l,s=!1)=>i("tr",{class:Ot("row",{body:!s,footer:s}),key:`row-${Yt(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:Ot("cell",{selection:!0})},i("div",{class:Ot("selection",{checked:u})},d?i("label",{class:Ot("selection-label",{disabled:b})},i($,{class:Et,icons:"kolicon "+(u?"kolicon-check":""),label:""}),i("input",Object.assign({class:Ot("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:Ot("selection-label")},i("input",Object.assign({class:Ot("selection-input",{radio:!0})},v,{type:"radio",onInput:t=>{s(t,[c])}}))),i("div",{class:At},i(B,{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=kt(t.headers,t.primaryHeaders,l,"action"),c=Boolean(r&&e.data),d=kt(t.headers,t.primaryHeaders,l,"state"),h=Boolean(d&&e.data),u=Gt(t,l),{left:b,right:p}=Rt(t,u,e.colIndex),v="function"==typeof e.render,f=e.textAlign;return i("td",{key:`cell-${n}-${t.settingsChangedCounter}`,class:Ot("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:Dt},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(D,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:Ft},s.map(((t,e)=>"badge"===t.type?i(j,Object.assign({key:`state-${o}-${e}`},t)):null))):""})(d,e.data,n):v?"":e.label)})(t,e,o,s,l)))),Wt=(t,e,o)=>{const l=t.headers.vertical.length+ft(null==o?void 0:o[0])+(t.selection?1:0);return i("tr",{"aria-hidden":"true",class:Ot("spacer",{[e]:!0})},i("td",{class:Ot("spacer-line",{[e]:!0}),colSpan:l}))},Jt=t=>{const e=v(ht,t),{data:o,dataFoot:l,externalLabelElements:n,fixedCols:a,hasScrollbar:r,hasSettingsMenu:c,headers:d,label:h,loading:u,refScrollContainer:b,refTable:p,selection:m,stickyColsDisabled:y,variant:g}=e,j=w("kol-no-entries"),C=bt(d),S=vt(d.horizontal,o),_=Object.assign(Object.assign({},e),{fixedOffsets:yt(C.cells,S,a,y),maxCols:S,primaryHeaders:C,selectionModel:_t(m),translateNoEntries:j}),O=jt({data:o,dataFoot:l,headers:d,isFoot:!1,noEntriesLabel:j,primaryHeaders:C}),D=0===n.length;return i(x,{block:"kol-table",class:k(g,"table")},c&&t.renderSettings(d.horizontal),i("div",{ref:b,class:zt,tabindex:r?D?"-1":"0":void 0},i("table",{ref:p,"aria-labelledby":D?Pt:void 0,class:Kt,style:{minWidth:Ct(d)}},D&&i("caption",{class:Nt,id:Pt,ref:t=>{t&&(r?t.tabIndex=0:t.removeAttribute("tabindex"))}},F(h)),i("thead",{class:Bt},[d.horizontal.map(((t,e)=>i("tr",{class:Tt,key:`thead-${e}`},m&&(t=>{const{data:e,handleSelectionChange:o,selection:l,selectionModel:s}=t;if(!l)return i("td",{class:Ot("cell",{header:!0}),key:"thead-0"});if(!1===l.multiple)return i("th",{scope:"col",key:"thead-0-selection",class:Ot("cell",{header:!0,selection:!0})},i("span",{class:"visually-hidden"},w("kol-table-selection")));const n=s.selectedKeys.filter((t=>!s.disabledKeys.has(String(t)))).length,a=n===xt(e,s).length,r=0!==n&&!a;let c;return c=w(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:Ot("cell",{header:!0,selection:!0})},i("span",{class:"visually-hidden"},w("kol-table-selection")),i("div",{class:Ot("selection",{checked:a,indeterminate:r})},i("label",{class:Ot("selection-label")},i($,{class:Et,icons:"kolicon "+(r?"kolicon-minus":a?"kolicon-check":""),label:""}),i("input",{class:Ot("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(...xt(t,e).map((t=>null==t?void 0:t[e.keyPropertyName]))),l})(e,s,!a))}})),i("div",{class:At},i(B,{label:c,badgeText:"",refFloating:()=>{}}))))})(_),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})})(_),Array.isArray(t)&&t.map(((t,o)=>qt(_,t,e,o,!1)))))),Wt(_,"head",d.horizontal)]),i("tbody",{class:$t},i("div",{class:Ot("loader",{shown:u})},i(L,{label:w(u?"kol-table-data-loading":"kol-table-data-loaded").replace("{{caption}}",f(h)),show:u,variant:"cycle"})),O.map(((t,e)=>Ut(_,t,e,!0)))),(t=>{const{dataFoot:e,headers:o,primaryHeaders:l,translateNoEntries:s}=t;if(0===e.length)return null;const n=jt({data:e,dataFoot:e,headers:o,isFoot:!0,noEntriesLabel:s,primaryHeaders:l}),a=vt(o.horizontal,e),r=Object.assign(Object.assign({},t),{fixedOffsets:yt(l.cells,a,t.fixedCols,t.stickyColsDisabled),maxCols:a});return i("tfoot",{class:Lt},[Wt(t,"foot",n),n.map(((t,e)=>Ut(r,t,e,!0,!0)))])})(_))))},Qt=({dialog:t,card:e},o)=>i(R,Object.assign({},t),e?i(W,Object.assign({},e),o):o),Xt=_.forBlock("kol-table")("settings"),Zt=t=>Number.isFinite(t)&&void 0!==t&&t>0?t:void 0,te=()=>{},ee=(t,e)=>{const o=w("kol-table-settings"),l=w("kol-table-settings-cancel"),s=w("kol-table-settings-apply"),n=w("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=K(),l=K(),i=new J(a.stateLess),s=z(),n=E("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;Y(t),t.defaultPrevented||(null===(e=u.onCancel)||void 0===e||e.call(u,t),t.defaultPrevented||b(I.cancel)||t.preventDefault())},g=t=>{var e;t.target===o.el&&(N(r),null===(e=u.onClose)||void 0===e||e.call(u),b(I.close))},k=()=>{i.hideTooltip(),p(),b(I.close)};return{getFcProps:e=>{var a,r,d;let b="",p=0,j="blank",C="100%";y.apply(e.label,(t=>{b=t})),H.apply(null!==(a=e.level)&&void 0!==a?a:0,(t=>{p=t})),V.apply(e.on,(t=>{u=t})),m.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=U(t()),i.componentWillLoad({label:c.label,align:c.tooltipAlign})),{dialog:{blockClass:G(j),handleCancel:v,handleClose:g,label:f(b),labelledBy:S?n:void 0,modal:h,refDialog:o,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(),N(r),i.destroy()}}})(t,b),g=E("alert-heading"),k=z();let j,_=[],x=[],$=null;const D=()=>{var t;return null!==(t=x[x.length-1])&&void 0!==t?t:[]},F=t=>{x=x.map(((e,o,l)=>o===l.length-1?t:e)),b()},L=(t,e)=>{const o=[...D()],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),F(o)},B=t=>{if(t.preventDefault(),!D().some((t=>!1!==t.visible)))return $=n,void b();if(d){$=null,_=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,I.changeHeaderCells,t),v.close()}},R=t=>{t&&(d=t)};return{beginRender:()=>{p.beginRender(),u=h,h=!1},render:t=>{var e;u||t===j||(j=t,_=(e=t).map((t=>[...t])),x=e.map((t=>t.map((t=>Object.assign({},t))))));const n=D();return i("div",{class:Xt,ref:R},i("div",{class:"kol-table-settings"},i(O,Object.assign({},p.get("toggle").getFcProps({_icons:"kolicon-settings",_label:o,_hideLabel:!0,_on:{onClick:()=>v.show(!0)}})))),i(Qt,Object.assign({},v.getFcProps({label:o,variant:"card",width:"fit-content"})),i("div",{class:"kol-table-settings__content"},$&&i("div",{class:"kol-table-settings__error-message"},i(M,{alert:!1,closerAriaDescriptionId:k,handleCloserClick:te,hasCloser:!1,headingId:g,label:$,level:0,refCloserButton:te,refCloserTooltip:te,type:"error",variant:"msg"})),i("form",{onSubmit:B},i("div",{class:"kol-table-settings__columns"},n.map(((t,e)=>((t,e,o)=>i("div",{key:t.key,class:"kol-table-settings__column"},i(S,{_checked:!1!==t.visible,_label:w(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=D().map((o=>o.key===t&&!1!==o.hidable?Object.assign(Object.assign({},o),{visible:Boolean(e)}):o));F(o)})(null!==(l=t.key)&&void 0!==l?l:"",o)}}}),i("span",{class:"kol-table-settings__column-label"},t.label),i(C,{_hideLabel:!0,_value:Zt(t.width),_label:w("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=Zt(Number(e)),l=D().map((e=>e.key===t&&!1!==e.resizable?Object.assign(Object.assign({},e),{width:o}):e));F(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:w(!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 L(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:w(!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 L(null!==(e=t.key)&&void 0!==e?e:"","down")}},_disabled:!1===t.sortable||e===o.length-1})))))(t,e,n)))),i("div",{class:"kol-table-settings__actions"},i(O,Object.assign({},p.get("cancel").getFcProps({_label:l,_variant:"secondary",_on:{onClick:()=>(x=_.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 oe 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=ee((()=>this.host),(()=>n(this))),this.linkItems=c((()=>d((()=>n(this)))),(t=>t.syncListeners()),(t=>t.destroy())),this.propsConfig=ht,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){st.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){nt.apply(t,(t=>this.setRenderProp("dataFoot",t)))}applyFixedCols(t){tt.apply(t,(t=>this.setRenderProp("fixedCols",t))),this.updateStickyColsDisabled()}applyHasSettingsMenu(t){et.apply(t,(t=>this.setRenderProp("hasSettingsMenu",t)))}applyHeaders(t){rt.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){y.apply(t,(t=>this.setRenderProp("label",t)),this.isRequired("label"))}applyLoading(t){ct.apply(t,(t=>this.setRenderProp("loading",t)))}applyOn(t){ot.apply(t,(t=>this.setRenderProp("on",t)))}applySelection(t){dt.apply(t,(t=>this.setRenderProp("selection",t))),this.updateStickyColsDisabled()}applyVariant(t){g.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",Pt)))}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")[Q.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=bt(r).cells,d=vt(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")[Q.onSelectionChange];"function"==typeof o&&o(t,e),this.host&&A(this.host,I.selectionChange,e)}emitSort(t,e){const o=this.getRenderProp("on")[Q.onSort];"function"==typeof o&&e.key&&o(t,e),this.host&&A(this.host,I.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{oe as B,nt as a,st as t,X as v}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as i}from"./index-
|
|
4
|
+
import{h as i}from"./index-DEcM8BEc.js";import{B as s}from"./base-web-component-CC_gpyDb.js";import{l as t,a,c as r,d as e,b as o,L as h}from"./component-CF8uFG0A.js";import{T as n}from"./behavior-CKU2tmCj.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 b,s as f,i as u,l as C,d as x,t as g,e as j,v as A}from"./component-D4-NVnsT.js";import{d as v}from"./disabled-BZXlWAgK.js";import{h as L}from"./href-CxokGOJ2.js";import"./props-from-config-ytxYrJUY.js";import{l as D}from"./label-with-expert-slot-BbZ9nx0l.js";import{l as I}from"./link-target-D7lYILOV.js";import{c as w}from"./element-interaction-sGYdEpmv.js";import{d as K,K as T}from"./events-CRHxtwup.js";import{o as B}from"./ariaCurrentService-YoLNpD5S.js";class S extends s{constructor(){super(...arguments),this.ctaRef=w((()=>!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&&K(this.host,T.click,s)},this.setAnchorRef=i=>{this.ctaRef(i)}}unsetLinkTabIndex(){this.unsetRenderProp("tabIndex")}initLinkBehaviors(){this.unsubscribeOnLocationChange=B((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){v.apply(i,(i=>this.setRenderProp("disabled",i)))}applyDownload(i){e.apply(i,(i=>this.setRenderProp("download",i)))}applyHideLabel(i){b.apply(i,(i=>this.setRenderProp("hideLabel",i)))}applyHref(i){L.apply(i,(i=>this.setRenderProp("href",i)),this.isRequired("href"))}applyIcons(i){f.apply(i,(i=>this.setRenderProp("icons",i)))}applyInline(i){u.apply(i,(i=>this.setRenderProp("inline",i)))}applyLabel(i){D.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){j.apply(i,(i=>{this.setRenderProp("tooltipAlign",i),this.tooltipBehavior.watchAlign(i)}))}applyVariant(i){A.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{S as B}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as i}from"./index-
|
|
4
|
+
import{h as i}from"./index-DEcM8BEc.js";import{B as s}from"./base-web-component-CC_gpyDb.js";import{r as t,C as o}from"./component-DAk3R8NN.js";import"./common-BdSzSIXg.js";import{l}from"./level-DsQ_pcyD.js";import{d as h,w as a}from"./width-C1_yZHyL.js";import{v as e,t as r}from"./props-from-config-ytxYrJUY.js";import{l as n}from"./label-lang-segment-iVD9hoM3.js";import{u as d,l as p,d as m,D as v}from"./scroll-lock-Bv-U2FHM.js";import{T as c}from"./behavior-CKU2tmCj.js";import{c as u}from"./element-interaction-sGYdEpmv.js";import{d as C,K as b}from"./events-CRHxtwup.js";import{h as f}from"./tooltip-open-tracking-D3tCiiGP.js";const g={required:[n],optional:[h,l,e,a]};class j extends s{constructor(){super(...arguments),this.dialogRef=u(),this.cardCloseButtonRef=u(),this.cardCloseTooltipBehavior=new c(this.stateAccess),this.propsConfig=g,this.handleCancel=i=>{var s,t;f(i),i.defaultPrevented||(null===(t=(s=this.getRenderProp("on")).onCancel)||void 0===t||t.call(s,i),i.defaultPrevented||this.host&&!C(this.host,b.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&&(C(this.host,b.close),C(this.host,b.toggle)))},this.handleCardClose=()=>{this.cardCloseTooltipBehavior.hideTooltip(),this.closeDialog(),this.host&&C(this.host,b.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&&C(this.host,b.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(v,{blockClass:m(s),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,width:this.getRenderProp("width")},t?i(o,Object.assign({},this.buildCardProps()),this.renderSlot()):this.renderSlot())}}export{j as B}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{n as e,p as s}from"./common-
|
|
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-D4-NVnsT.js";import{h as a,g as l,I as n}from"./input-container-BipAkWn4.js";import{j as d,m as h,c}from"./props-from-config-ytxYrJUY.js";import{m as p}from"./multiple--ay1C1n3.js";import{r as u}from"./required-BriHhuO4.js";import{r as b}from"./rows-I1jrTjzU.js";import{f as m,i as v,g as y,c as f,B as j,F as O}from"./api-CBPlj155.js";import{h as B,F as g}from"./index-DEcM8BEc.js";import{v as A}from"./access-and-short-key-ijzCZfHm.js";import{c as w}from"./clsx-COFh-Vc8.js";import{f as K}from"./options-B0rBHetL.js";import{a as x}from"./tslib.es6-QNbPBOk5.js";import{g as P}from"./block-bem-D3ixJyOY.js";const k=s=>{if("object"==typeof s&&null!==s){if("string"==typeof s.label&&s.label.length>0)return s.disabled=!0===s.disabled,s.label=`${s.label}`.trim(),!1===d(s.label,3)&&!1===h(s.label)&&e(`A differing Aria-Label (${s.label}) is inaccessible. A differing Aria-Label should consist of at least three readable characters.`),!Array.isArray(s.options)||void 0===s.options.find((e=>!1===k(e)));if("number"==typeof s.label)return!0}return!1},q=c("options",[],(function(e){const i="string"==typeof e?s(e):e;if(Array.isArray(i)&&i.every((e=>k(e))))return i;throw new Error("Invalid select options")})),D=c("value",[],(e=>Array.isArray(e)?e:[e])),E={required:[...m.required],optional:[...m.optional,i,a,p,q,u,b,D,t,o,r]},I=P("kol-select"),L=e=>{var{class:s,index:i,selectedValue:t,selected:o,value:r,label:a,disabled:l}=e,n=x(e,["class","index","selectedValue","selected","value","label","disabled"]);const d=void 0===t?[]:Array.isArray(t)?t:[t],h=o||d.includes(r);return B("option",Object.assign({class:w(I("option",{selected:Boolean(h),disabled:Boolean(l)}),s),selected:h,disabled:l,value:i},n),a)},V=({preKey:e,options:s,disabled:i,value:t,OptionProps:o={},OptionGroupProps:r={}})=>(null==s?void 0:s.length)?B(g,null,s.map(((s,a)=>{const l=[e,`-${a}`].join("");if("options"in s){const e=Boolean(i||s.disabled),{label:a}=s,n=x(s,["label"]);return B("optgroup",Object.assign({class:I("optgroup",{disabled:e}),key:l},r,{label:null==a?void 0:a.toString(),disabled:e}),B(V,Object.assign({OptionGroupProps:r,OptionProps:o,value:t,preKey:l},n,{disabled:e})))}return"value"in s?B(L,Object.assign({key:l},o,{index:l,selectedValue:t},s,{disabled:Boolean(i||s.disabled)})):null}))):null,C=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,u=x(e,["class","msg","touched","disabled","required","options","value","OptionProps","OptionGroupProps","ariaDescribedBy","hideLabel","label"]),b=Object.assign(Object.assign({class:w(I(Object.assign({disabled:Boolean(o),required:Boolean(r),touched:Boolean(t)},v(i,t)?{[y(i)]:!0}:{})),s),required:r,disabled:o},f({ariaDescribedBy:h,hideLabel:c,label:p})),u);return B("select",Object.assign({},b),B(V,{OptionGroupProps:d,OptionProps:n,disabled:o,options:a,value:l}))},S=(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)})`)},T=(e,s=!1)=>e.flatMap((e=>"options"in e&&Array.isArray(e.options)?T(e.options,Boolean(s||e.disabled)):[Object.assign(Object.assign({},e),{disabled:Boolean(s||e.disabled)})])),$=(e,s,i)=>{if(0===s.length)return e;const t=T(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 F extends j{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))),A(e,this.getShortKeyProp())}applyShortKey(e){t.apply(e,(e=>this.setRenderProp("shortKey",e))),A(this.getAccessKeyProp(),e)}applyIcons(e){a.apply(e,(e=>this.setRenderProp("icons",e)))}applyMultiple(e){S(this._value,!0===e,"current"),p.apply(e,(e=>{this.setRenderProp("multiple",e),this.setRenderProp("value",$(this.getRenderProp("value"),this.getRenderProp("options"),this._multiple))}))}applyOptions(e){q.apply(e,(e=>{this.setRenderProp("options",e),e.length>0&&(this.keyOptionMap.clear(),K(this.keyOptionMap,e),this.setRenderProp("value",$(this.getRenderProp("value"),e,this._multiple)))}))}applyRequired(e){u.apply(e,(e=>this.setRenderProp("required",e)))}applyRows(e){b.apply(e,(e=>this.setRenderProp("rows",e)))}applyTabIndex(e){o.apply(e,(e=>this.setRenderProp("tabIndex",e)))}applyValue(e){S(e,!0===this._multiple,"received");const s=e=>{const s=$(e,this.getRenderProp("options"),this._multiple);this.setRenderProp("value",s),this.formAssociation.setFormAssociatedValue(this.getModelValue())};null===e?s([null]):D.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 B(O,Object.assign({},this.getFormFieldProps({class:w("kol-form-field-select",{"kol-form-field--has-value":this.hasValue}),accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,required:this.getRenderProp("required"),variant:this.getRenderProp("variant")}),{onClick:()=>{var e;return null===(e=this.ctaRef.el)||void 0===e?void 0:e.focus()}}),B(n,{disabled:e,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:s,endAdornment:i},B(C,Object.assign({},this.getSelectProps()))))}}export{F as B,E 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-ytxYrJUY.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}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import"./common-
|
|
4
|
+
import"./common-BdSzSIXg.js";import{a as t,d as s,v as i}from"./component-D4-NVnsT.js";import{a as e,S as o}from"./suggestions-D0u80DtA.js";import{h as a,g as r}from"./input-container-BipAkWn4.js";import{c as h,b as n}from"./props-from-config-ytxYrJUY.js";import{p as l}from"./placeholder-UxmBJ4Vl.js";import{r as p}from"./read-only-DytZ5HZJ.js";import{r as d}from"./required-BriHhuO4.js";import{s as c}from"./smart-button-DM5g48-g.js";import{s as u}from"./value-string-CxDz7dhD.js";import{f as m,B as v}from"./api-CBPlj155.js";import{h as y}from"./index-DEcM8BEc.js";import{s as j}from"./controller-CZcQ57AP.js";import{v as b}from"./access-and-short-key-ijzCZfHm.js";import{c as g}from"./clsx-COFh-Vc8.js";import{c as f}from"./element-interaction-sGYdEpmv.js";import{B as O}from"./base-web-component-CC_gpyDb.js";import{C as x}from"./behavior-CsNDRS2z.js";const B=h("pattern",void 0,n),C={required:[...m.required],optional:[...m.optional,t,e,a,B,l,p,d,s,c,u,i]};class D extends v{constructor(){super(...arguments),this.ctaRef=f(),this.counter=new x(O.stateLess),this.needsImmediateCounterUpdate=!1,this.hasValue=!1,this.handleTextInput=t=>{this._value=t.target.value,this.handleInput(t)},this.handleTextChange=(t,s)=>{this.handleChange(t,s)},this.handleTextFocus=t=>{var s,i;this.handleFocus(t),this.counter.retriggerAria(null!==(i=null===(s=this._value)||void 0===s?void 0:s.length)&&void 0!==i?i:0)},this.handleTextKeyDown=t=>{var s,i;this.handleKeyDown(t),this.counter.handleKeyDown(t,null!==(i=null===(s=this.ctaRef.el)||void 0===s?void 0:s.value.length)&&void 0!==i?i:0),j(t,{form:this.host,ref:this.ctaRef.el})}}get textShared(){return this}initHasValue(){this.hasValue=Boolean(this.textShared.getRenderProp("value"))}didLoadTextInput(){var t,s;this.needsImmediateCounterUpdate=!1,(this.counter.hasCounter()||this.counter.hasSoftLimit())&&this.counter.updateImmediate(null!==(s=null===(t=this._value)||void 0===t?void 0:t.length)&&void 0!==s?s:0)}didUpdateTextInput(){var t,s;this.needsImmediateCounterUpdate&&(this.needsImmediateCounterUpdate=!1,(this.counter.hasCounter()||this.counter.hasSoftLimit())&&this.counter.updateImmediate(null!==(s=null===(t=this._value)||void 0===t?void 0:t.length)&&void 0!==s?s:0))}destroyTextInput(){this.destroyFormField(),this.counter.destroy()}applyAccessKey(s){t.apply(s,(t=>this.textShared.setRenderProp("accessKey",t))),b(s,this._shortKey)}applyAutoComplete(t){e.apply(t,(t=>this.textShared.setRenderProp("autoComplete",t)))}applyIcons(t){a.apply(t,(t=>this.textShared.setRenderProp("icons",t)))}applyPattern(t){B.apply(t,(t=>this.textShared.setRenderProp("pattern",t)))}applyPlaceholder(t){l.apply(t,(t=>this.textShared.setRenderProp("placeholder",t)))}applyReadOnly(t){p.apply(t,(t=>this.textShared.setRenderProp("readOnly",t)))}applyRequired(t){d.apply(t,(t=>this.textShared.setRenderProp("required",t)))}applyShortKey(t){s.apply(t,(t=>this.textShared.setRenderProp("shortKey",t))),b(this._accessKey,t)}applySmartButton(t){null==t?this.textShared.unsetRenderProp("smartButton"):c.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){u.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:g(t,{"has-value":this.hasValue,"kol-form-field--has-counter":this.counter.hasSoftLimit()||this.counter.hasCounter()}),accessKey:s.getRenderProp("accessKey")||void 0,shortKey:s.getRenderProp("shortKey")||void 0,variant:s.getRenderProp("variant"),required:s.getRenderProp("required"),readOnly:s.getRenderProp("readOnly"),maxLength:this.counter.getRenderProp("maxLength"),counter:this.counter.getCounterProps()})}getTextInputAdornments(t){return r({icons:this.textShared.getRenderProp("icons"),smartButton:this.getSmartButtonFcProps(this.textShared.getRenderProp("smartButton"),this.textShared.getRenderProp("disabled")),endAdornment:t})}getTextInputProps({type:t,spellcheck:s,multiple:i,suggestions:e},a={}){const r=this.textShared,h=r.getState("id"),n=r.getRenderProp("accessKey"),l=r.getRenderProp("shortKey"),p=r.getRenderProp("placeholder"),d=r.getRenderProp("pattern"),c=this.counter.getMaxLengthAttribute(),u=this.counter.getCharacterLimitHintId(h),{ariaDescribedBy:m,hasError:v}=this.getAria();return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({id:h,hideLabel:r.getRenderProp("hideLabel"),label:r.getRenderProp("label"),disabled:r.getRenderProp("disabled"),name:r.getRenderProp("name")||void 0},n?{accessKey:n}:{}),void 0!==t?{type:t}:{}),{value:r.getRenderProp("value"),required:r.getRenderProp("required")}),void 0!==c?{maxlength:c}:{}),void 0!==p?{placeholder:p}:{}),{autoComplete:r.getRenderProp("autoComplete")}),void 0!==s?{spellcheck:s}:{}),void 0!==d?{pattern:d}:{}),{readonly:r.getRenderProp("readOnly")}),void 0!==i?{multiple:i}:{}),{touched:r.getRenderProp("touched"),msg:r.getRenderProp("msg")}),l?{"aria-keyshortcuts":l}:{}),e&&e.length>0?{suggestions:y(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{D as B,C as t}
|