@public-ui/components 4.1.2-rc.7 → 4.1.2-rc.9
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 -10
- package/dist/cjs/{Alert-D-YqpEyB.js → Alert-B0V3X3wp.js} +1 -1
- package/dist/cjs/{Alert-D-YqpEyB.js.map → Alert-B0V3X3wp.js.map} +1 -1
- package/dist/cjs/{Collapsible-VZFYmGmP.js → Collapsible-D_iqIWGh.js} +1 -1
- package/dist/cjs/{Collapsible-VZFYmGmP.js.map → Collapsible-D_iqIWGh.js.map} +1 -1
- package/dist/cjs/{CustomSuggestionsOptionsGroup-B-MnrrBq.js → CustomSuggestionsOptionsGroup-DaP3aVOD.js} +1 -1
- package/dist/cjs/{CustomSuggestionsOptionsGroup-B-MnrrBq.js.map → CustomSuggestionsOptionsGroup-DaP3aVOD.js.map} +1 -1
- package/dist/cjs/FieldControlStateWrapper-CoK8uXUH.js +4 -0
- package/dist/cjs/FieldControlStateWrapper-CoK8uXUH.js.map +1 -0
- package/dist/cjs/FormFieldStateWrapper-B1k695Hd.js +4 -0
- package/dist/cjs/FormFieldStateWrapper-B1k695Hd.js.map +1 -0
- package/dist/cjs/{Heading-DXIETn4V.js → Heading-DhPc_Tq3.js} +1 -1
- package/dist/cjs/{Heading-DXIETn4V.js.map → Heading-DhPc_Tq3.js.map} +1 -1
- package/dist/cjs/{Input-_cDdoXXe.js → Input-DkATfA96.js} +1 -1
- package/dist/cjs/{Input-_cDdoXXe.js.map → Input-DkATfA96.js.map} +1 -1
- package/dist/cjs/{InputStateWrapper-755fX97C.js → InputStateWrapper-Ck7sMrXu.js} +1 -1
- package/dist/cjs/{InputStateWrapper-755fX97C.js.map → InputStateWrapper-Ck7sMrXu.js.map} +1 -1
- package/dist/cjs/_Uint8Array-BAQUGozM.js +4 -0
- package/dist/cjs/_Uint8Array-BAQUGozM.js.map +1 -0
- package/dist/cjs/align-DLZnj4_m.js +4 -0
- package/dist/cjs/{align-Dgke5npK.js.map → align-DLZnj4_m.js.map} +1 -1
- package/dist/cjs/{app-globals-ZeVbmS7w.js → app-globals-DaLgISvq.js} +1 -1
- package/dist/cjs/{app-globals-ZeVbmS7w.js.map → app-globals-DaLgISvq.js.map} +1 -1
- package/dist/cjs/{associated.controller-CdkbkfHV.js → associated.controller-Qtcakwi5.js} +1 -1
- package/dist/cjs/{associated.controller-CdkbkfHV.js.map → associated.controller-Qtcakwi5.js.map} +1 -1
- package/dist/cjs/base-controller-DAzsTqX9.js +4 -0
- package/dist/cjs/base-controller-DAzsTqX9.js.map +1 -0
- package/dist/cjs/{bem-registry-BYsM9uZG.js → bem-registry-BRaXxTgN.js} +1 -1
- package/dist/cjs/bem-registry-BRaXxTgN.js.map +1 -0
- package/dist/cjs/{bootstrap-Ct8zYDlN.js → bootstrap-CTHD2bd6.js} +1 -1
- package/dist/cjs/{bootstrap-Ct8zYDlN.js.map → bootstrap-CTHD2bd6.js.map} +1 -1
- package/dist/cjs/component-BnSFJ1yj.js +4 -0
- package/dist/cjs/{component-TRu1ySJ5.js.map → component-BnSFJ1yj.js.map} +1 -1
- package/dist/cjs/{component-_osv0u4g.js → component-CmSwyEt3.js} +1 -1
- package/dist/cjs/component-CmSwyEt3.js.map +1 -0
- package/dist/cjs/component-b-IdWBee.js +4 -0
- package/dist/cjs/component-b-IdWBee.js.map +1 -0
- package/dist/cjs/component-names-5KS_pYRF.js +4 -0
- package/dist/cjs/{component-names-CLJnvcGE.js.map → component-names-5KS_pYRF.js.map} +1 -1
- package/dist/cjs/{controller-CJDzd2rd.js → controller-CSEvtexE.js} +1 -1
- package/dist/cjs/{controller-CJDzd2rd.js.map → controller-CSEvtexE.js.map} +1 -1
- package/dist/cjs/controller-CTX_vdhu.js +4 -0
- package/dist/cjs/controller-CTX_vdhu.js.map +1 -0
- package/dist/cjs/{controller-BF2Jlaw1.js → controller-Cukn8V3a.js} +1 -1
- package/dist/cjs/{controller-BF2Jlaw1.js.map → controller-Cukn8V3a.js.map} +1 -1
- package/dist/cjs/{controller-Bf9yGxbh.js → controller-CwOOs92X.js} +1 -1
- package/dist/cjs/{controller-Bf9yGxbh.js.map → controller-CwOOs92X.js.map} +1 -1
- package/dist/cjs/controller-D3ETb78M.js +4 -0
- package/dist/cjs/controller-D3ETb78M.js.map +1 -0
- package/dist/cjs/{controller-DVajMOVA.js → controller-DXiXhgaj.js} +1 -1
- package/dist/cjs/{controller-DVajMOVA.js.map → controller-DXiXhgaj.js.map} +1 -1
- package/dist/cjs/controller-icon-BkgT5jQi.js +4 -0
- package/dist/cjs/{controller-icon-YX2g0qKC.js.map → controller-icon-BkgT5jQi.js.map} +1 -1
- package/dist/cjs/{dev.utils-DQ8NbpWO.js → dev.utils-Dm-X_NQd.js} +1 -1
- package/dist/cjs/{dev.utils-DQ8NbpWO.js.map → dev.utils-Dm-X_NQd.js.map} +1 -1
- package/dist/cjs/{devtools-ChJjJwrk.js → devtools-Y5183eVO.js} +1 -1
- package/dist/cjs/{devtools-ChJjJwrk.js.map → devtools-Y5183eVO.js.map} +1 -1
- package/dist/cjs/{index-DT9bjXlJ.js → index-DAruRs4C.js} +1 -1
- package/dist/cjs/{index-DT9bjXlJ.js.map → index-DAruRs4C.js.map} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/isArray-BOIOdEQh.js.map +1 -1
- package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
- package/dist/cjs/kol-abbr.entry.cjs.js.map +1 -1
- package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
- package/dist/cjs/kol-accordion.entry.cjs.js.map +1 -1
- package/dist/cjs/kol-alert-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-alert-wc.entry.cjs.js.map +1 -1
- package/dist/cjs/kol-alert.cjs.entry.js +1 -1
- package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
- package/dist/cjs/kol-avatar.entry.cjs.js.map +1 -1
- package/dist/cjs/kol-badge.cjs.entry.js +1 -1
- package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
- package/dist/cjs/kol-button-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-button-wc.entry.cjs.js.map +1 -1
- package/dist/cjs/kol-button.cjs.entry.js +1 -1
- package/dist/cjs/kol-card-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-card.cjs.entry.js +1 -1
- package/dist/cjs/kol-click-button.cjs.entry.js +1 -1
- package/dist/cjs/kol-click-button.entry.cjs.js.map +1 -1
- package/dist/cjs/kol-combobox.cjs.entry.js +1 -1
- package/dist/cjs/kol-combobox.entry.cjs.js.map +1 -1
- package/dist/cjs/kol-details.cjs.entry.js +1 -1
- package/dist/cjs/kol-details.entry.cjs.js.map +1 -1
- package/dist/cjs/kol-dialog-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-dialog.cjs.entry.js +1 -1
- package/dist/cjs/kol-drawer.cjs.entry.js +1 -1
- package/dist/cjs/kol-form.cjs.entry.js +1 -1
- package/dist/cjs/kol-heading.cjs.entry.js +1 -1
- package/dist/cjs/kol-heading.entry.cjs.js.map +1 -1
- package/dist/cjs/kol-icon.cjs.entry.js +1 -1
- package/dist/cjs/kol-icon.entry.cjs.js.map +1 -1
- package/dist/cjs/kol-image.cjs.entry.js +1 -1
- package/dist/cjs/kol-image.entry.cjs.js.map +1 -1
- package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-checkbox.entry.cjs.js.map +1 -1
- package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-color.entry.cjs.js.map +1 -1
- package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-date.entry.cjs.js.map +1 -1
- package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-email.entry.cjs.js.map +1 -1
- package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-file.entry.cjs.js.map +1 -1
- package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-number.entry.cjs.js.map +1 -1
- package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-password.entry.cjs.js.map +1 -1
- package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-radio.entry.cjs.js.map +1 -1
- package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-range.entry.cjs.js.map +1 -1
- package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-text.entry.cjs.js.map +1 -1
- package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
- package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
- package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-link-wc.entry.cjs.js.map +1 -1
- package/dist/cjs/kol-link.cjs.entry.js +1 -1
- package/dist/cjs/kol-meter.cjs.entry.js +1 -1
- package/dist/cjs/kol-meter.entry.cjs.js.map +1 -1
- package/dist/cjs/kol-modal.cjs.entry.js +1 -1
- package/dist/cjs/kol-nav.cjs.entry.js +1 -1
- package/dist/cjs/kol-pagination-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
- package/dist/cjs/kol-popover-button-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-popover-button.cjs.entry.js +1 -1
- package/dist/cjs/kol-progress.cjs.entry.js +1 -1
- package/dist/cjs/kol-progress.entry.cjs.js.map +1 -1
- package/dist/cjs/kol-quote.cjs.entry.js +1 -1
- package/dist/cjs/kol-quote.entry.cjs.js.map +1 -1
- package/dist/cjs/kol-select-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-select-wc.entry.cjs.js.map +1 -1
- package/dist/cjs/kol-select.cjs.entry.js +1 -1
- package/dist/cjs/kol-single-select.cjs.entry.js +1 -1
- package/dist/cjs/kol-single-select.entry.cjs.js.map +1 -1
- package/dist/cjs/kol-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/kol-skeleton.entry.cjs.js.map +1 -1
- package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
- package/dist/cjs/kol-spin.cjs.entry.js +1 -1
- package/dist/cjs/kol-spin.entry.cjs.js.map +1 -1
- package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
- package/dist/cjs/kol-table-settings-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-table-stateful.cjs.entry.js +1 -1
- package/dist/cjs/kol-table-stateless-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-table-stateless-wc.entry.cjs.js.map +1 -1
- package/dist/cjs/kol-table-stateless.cjs.entry.js +1 -1
- package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
- package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
- package/dist/cjs/kol-textarea.entry.cjs.js.map +1 -1
- package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
- package/dist/cjs/kol-toast-container.entry.cjs.js.map +1 -1
- package/dist/cjs/kol-toolbar.cjs.entry.js +1 -1
- package/dist/cjs/kol-tooltip-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-tooltip-wc.entry.cjs.js.map +1 -1
- package/dist/cjs/kol-tree-item-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-tree-item.cjs.entry.js +1 -1
- package/dist/cjs/kol-tree-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-tree.cjs.entry.js +1 -1
- package/dist/cjs/kol-version.cjs.entry.js +1 -1
- package/dist/cjs/kolibri.cjs.js +1 -1
- package/dist/cjs/{label-BgtqjTS0.js → label-B0RK7DQ1.js} +1 -1
- package/dist/cjs/{label-BgtqjTS0.js.map → label-B0RK7DQ1.js.map} +1 -1
- package/dist/cjs/{level-Dqm4UuMn.js → level-CTvl-U1w.js} +1 -1
- package/dist/cjs/{level-Dqm4UuMn.js.map → level-CTvl-U1w.js.map} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/normalizers-CLRF8il-.js +4 -0
- package/dist/cjs/normalizers-CLRF8il-.js.map +1 -0
- package/dist/cjs/{src-nu8Hslhy.js → src-B5l3YIkL.js} +1 -1
- package/dist/cjs/{src-nu8Hslhy.js.map → src-B5l3YIkL.js.map} +1 -1
- package/dist/cjs/test-component.cjs.entry.js +1 -1
- package/dist/cjs/{tooltip-align-DykwbBJw.js → tooltip-align-BB5EsHsG.js} +1 -1
- package/dist/cjs/{tooltip-align-DykwbBJw.js.map → tooltip-align-BB5EsHsG.js.map} +1 -1
- package/dist/cjs/{unit-BHre4Npb.js → unit--BgFwr6T.js} +1 -1
- package/dist/cjs/{unit-BHre4Npb.js.map → unit--BgFwr6T.js.map} +1 -1
- package/dist/cjs/{validation-CVwHCleW.js → validation-V8d7SbhJ.js} +1 -1
- package/dist/cjs/{validation-CVwHCleW.js.map → validation-V8d7SbhJ.js.map} +1 -1
- package/dist/cjs/variant-quote-iZVwULXH.js +4 -0
- package/dist/cjs/variant-quote-iZVwULXH.js.map +1 -0
- package/dist/components/Alert.js +1 -1
- package/dist/components/Collapsible.js +1 -1
- package/dist/components/FieldControlStateWrapper.js +1 -1
- package/dist/components/FieldControlStateWrapper.js.map +1 -1
- package/dist/components/Input.js +1 -1
- package/dist/components/InputStateWrapper.js +1 -1
- package/dist/components/_Uint8Array.js +1 -1
- package/dist/components/_Uint8Array.js.map +1 -1
- package/dist/components/access-and-short-key.js +1 -1
- package/dist/components/align-floating-elements.js +1 -1
- package/dist/components/align.js +1 -1
- package/dist/components/align.js.map +1 -1
- package/dist/components/base-controller.js +4 -0
- package/dist/components/base-controller.js.map +1 -0
- package/dist/components/bem-registry.js +1 -1
- package/dist/components/bem-registry.js.map +1 -1
- package/dist/components/color.js +1 -1
- package/dist/components/common.js +1 -1
- package/dist/components/component-names.js +1 -1
- package/dist/components/component-names.js.map +1 -1
- package/dist/components/component.js +1 -1
- package/dist/components/component.js.map +1 -1
- package/dist/components/component2.js +1 -1
- package/dist/components/component2.js.map +1 -1
- package/dist/components/component3.js +4 -0
- package/dist/components/component3.js.map +1 -0
- package/dist/components/controller-icon.js +1 -1
- package/dist/components/controller.js +1 -1
- package/dist/components/controller.js.map +1 -1
- package/dist/components/controller2.js +1 -1
- package/dist/components/controller2.js.map +1 -1
- package/dist/components/controller3.js +1 -1
- package/dist/components/controller3.js.map +1 -1
- package/dist/components/controller4.js +1 -1
- package/dist/components/controller4.js.map +1 -1
- package/dist/components/controller5.js +1 -1
- package/dist/components/controller5.js.map +1 -1
- package/dist/components/controller6.js +1 -1
- package/dist/components/controller6.js.map +1 -1
- package/dist/components/controller7.js +4 -0
- package/dist/components/controller7.js.map +1 -0
- package/dist/components/dev.utils.js +1 -1
- package/dist/components/devtools.js +1 -1
- package/dist/components/disabled.js +1 -1
- package/dist/components/i18n.js +1 -1
- package/dist/components/isArray.js.map +1 -1
- package/dist/components/kol-abbr.js +1 -1
- package/dist/components/kol-abbr.js.map +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-avatar.js.map +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-wc.js +1 -1
- package/dist/components/kol-button-wc.js.map +1 -1
- package/dist/components/kol-button.js +1 -1
- package/dist/components/kol-card-wc.js +1 -1
- package/dist/components/kol-card-wc.js.map +1 -1
- package/dist/components/kol-card.js +1 -1
- package/dist/components/kol-click-button.js +1 -1
- package/dist/components/kol-click-button.js.map +1 -1
- package/dist/components/kol-combobox.js +1 -1
- package/dist/components/kol-details.js +1 -1
- package/dist/components/kol-dialog-wc.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-heading.js.map +1 -1
- package/dist/components/kol-icon.js +1 -1
- package/dist/components/kol-icon.js.map +1 -1
- package/dist/components/kol-image.js +1 -1
- package/dist/components/kol-image.js.map +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-wc.js +1 -1
- package/dist/components/kol-link-wc.js.map +1 -1
- package/dist/components/kol-link.js +1 -1
- package/dist/components/kol-meter.js +1 -1
- package/dist/components/kol-meter.js.map +1 -1
- package/dist/components/kol-modal.js +1 -1
- package/dist/components/kol-nav.js +1 -1
- package/dist/components/kol-pagination-wc.js +1 -1
- package/dist/components/kol-pagination.js +1 -1
- package/dist/components/kol-popover-button-wc.js +1 -1
- package/dist/components/kol-popover-button.js +1 -1
- package/dist/components/kol-progress.js +1 -1
- package/dist/components/kol-progress.js.map +1 -1
- package/dist/components/kol-quote.js +1 -1
- package/dist/components/kol-quote.js.map +1 -1
- package/dist/components/kol-select-wc.js +1 -1
- package/dist/components/kol-select.js +1 -1
- package/dist/components/kol-single-select.js +1 -1
- package/dist/components/kol-skeleton.js +1 -1
- package/dist/components/kol-skeleton.js.map +1 -1
- package/dist/components/kol-skip-nav.js +1 -1
- package/dist/components/kol-spin.js +1 -1
- package/dist/components/kol-spin.js.map +1 -1
- package/dist/components/kol-split-button.js +1 -1
- package/dist/components/kol-table-settings-wc.js +1 -1
- package/dist/components/kol-table-stateful.js +1 -1
- package/dist/components/kol-table-stateless-wc.js +1 -1
- package/dist/components/kol-table-stateless-wc.js.map +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-toast-container.js.map +1 -1
- package/dist/components/kol-toolbar.js +1 -1
- package/dist/components/kol-tooltip-wc.js +1 -1
- package/dist/components/kol-tooltip-wc.js.map +1 -1
- package/dist/components/kol-tree-item-wc.js +1 -1
- package/dist/components/kol-tree-item.js +1 -1
- package/dist/components/kol-tree-wc.js +1 -1
- package/dist/components/kol-tree.js +1 -1
- package/dist/components/kol-version.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/normalizers.js +1 -1
- package/dist/components/normalizers.js.map +1 -1
- package/dist/components/suggestions.js +1 -1
- package/dist/components/tooltip-align.js +1 -1
- package/dist/components/tooltip-open-tracking.js +1 -1
- package/dist/components/variant-quote.js +4 -0
- package/dist/components/variant-quote.js.map +1 -0
- package/dist/esm/{Alert-BCOTrqr_.js → Alert-tCK86mR9.js} +1 -1
- package/dist/{kolibri/Alert-BCOTrqr_.js.map → esm/Alert-tCK86mR9.js.map} +1 -1
- package/dist/esm/{Collapsible-Cxiz2gVO.js → Collapsible-Cj9F89Xs.js} +1 -1
- package/dist/esm/{Collapsible-Cxiz2gVO.js.map → Collapsible-Cj9F89Xs.js.map} +1 -1
- package/dist/esm/{CustomSuggestionsOptionsGroup-KAi-Zhy-.js → CustomSuggestionsOptionsGroup-nwMMJoTi.js} +1 -1
- package/dist/{kolibri/CustomSuggestionsOptionsGroup-KAi-Zhy-.js.map → esm/CustomSuggestionsOptionsGroup-nwMMJoTi.js.map} +1 -1
- package/dist/esm/FieldControlStateWrapper-jzhuJtcw.js +4 -0
- package/dist/esm/FieldControlStateWrapper-jzhuJtcw.js.map +1 -0
- package/dist/esm/FormFieldStateWrapper-CYyPrkIu.js +4 -0
- package/dist/esm/FormFieldStateWrapper-CYyPrkIu.js.map +1 -0
- package/dist/esm/{Heading-CdhA3sYv.js → Heading-NivGt5lH.js} +1 -1
- package/dist/{kolibri/Heading-CdhA3sYv.js.map → esm/Heading-NivGt5lH.js.map} +1 -1
- package/dist/esm/{Input-ZDG0uZKh.js → Input-DT4QeGU5.js} +1 -1
- package/dist/esm/{Input-ZDG0uZKh.js.map → Input-DT4QeGU5.js.map} +1 -1
- package/dist/esm/{InputStateWrapper-BO-OfVb2.js → InputStateWrapper-DQ8WZAj6.js} +1 -1
- package/dist/{kolibri/InputStateWrapper-BO-OfVb2.js.map → esm/InputStateWrapper-DQ8WZAj6.js.map} +1 -1
- package/dist/esm/_Uint8Array-kJHDjtoP.js +4 -0
- package/dist/esm/_Uint8Array-kJHDjtoP.js.map +1 -0
- package/dist/esm/{access-and-short-key-BzpC9FZP.js → access-and-short-key-D2TiPdWw.js} +1 -1
- package/dist/{kolibri/access-and-short-key-BzpC9FZP.js.map → esm/access-and-short-key-D2TiPdWw.js.map} +1 -1
- package/dist/esm/align-D3Z54kEL.js +4 -0
- package/dist/esm/{align-BmVteuP6.js.map → align-D3Z54kEL.js.map} +1 -1
- package/dist/esm/{align-floating-elements-DZlGJkZJ.js → align-floating-elements-58sFZOrL.js} +1 -1
- package/dist/esm/{align-floating-elements-DZlGJkZJ.js.map → align-floating-elements-58sFZOrL.js.map} +1 -1
- package/dist/esm/{app-globals-C8b8QdHH.js → app-globals-QmLLrOhZ.js} +1 -1
- package/dist/esm/{app-globals-C8b8QdHH.js.map → app-globals-QmLLrOhZ.js.map} +1 -1
- package/dist/esm/{associated.controller-8xCU8Tb0.js → associated.controller-BKQIR17-.js} +1 -1
- package/dist/esm/{associated.controller-8xCU8Tb0.js.map → associated.controller-BKQIR17-.js.map} +1 -1
- package/dist/esm/{auto-complete-B9cEw7-0.js → auto-complete-DmusaKxg.js} +1 -1
- package/dist/esm/{auto-complete-B9cEw7-0.js.map → auto-complete-DmusaKxg.js.map} +1 -1
- package/dist/esm/base-controller-CXhqh4cR.js +4 -0
- package/dist/esm/base-controller-CXhqh4cR.js.map +1 -0
- package/dist/esm/{bem-registry-DTQ0cuzY.js → bem-registry-Bux_TllX.js} +1 -1
- package/dist/esm/bem-registry-Bux_TllX.js.map +1 -0
- package/dist/esm/{bootstrap-BFbfb2g4.js → bootstrap-CbPXNlVt.js} +1 -1
- package/dist/esm/{bootstrap-BFbfb2g4.js.map → bootstrap-CbPXNlVt.js.map} +1 -1
- package/dist/esm/{color-CYYQM-HT.js → color-DLD0vupv.js} +1 -1
- package/dist/{kolibri/color-CYYQM-HT.js.map → esm/color-DLD0vupv.js.map} +1 -1
- package/dist/esm/{common-5ExJH6NU.js → common-BqV6Zb30.js} +1 -1
- package/dist/{kolibri/common-5ExJH6NU.js.map → esm/common-BqV6Zb30.js.map} +1 -1
- package/dist/esm/component-BU7rA3Iq.js +4 -0
- package/dist/esm/component-BU7rA3Iq.js.map +1 -0
- package/dist/esm/{component-JM2Le9Vy.js → component-BcphpQc1.js} +1 -1
- package/dist/esm/component-BcphpQc1.js.map +1 -0
- package/dist/esm/component-PEZ0eaV8.js +4 -0
- package/dist/{kolibri/component-CL5w48zL.js.map → esm/component-PEZ0eaV8.js.map} +1 -1
- package/dist/esm/{component-names-pgL1e5No.js → component-names-Dy77vq43.js} +1 -1
- package/dist/esm/{component-names-pgL1e5No.js.map → component-names-Dy77vq43.js.map} +1 -1
- package/dist/esm/{contrast-CCUc19be.js → contrast-DK7TU5NR.js} +1 -1
- package/dist/{kolibri/contrast-CCUc19be.js.map → esm/contrast-DK7TU5NR.js.map} +1 -1
- package/dist/esm/controller-30xZFasL.js +4 -0
- package/dist/esm/controller-30xZFasL.js.map +1 -0
- package/dist/esm/{controller-DioBPNwP.js → controller-90L8F3y2.js} +1 -1
- package/dist/esm/{controller-DioBPNwP.js.map → controller-90L8F3y2.js.map} +1 -1
- package/dist/esm/{controller-DpjFjZPx.js → controller-B26Xzibc.js} +1 -1
- package/dist/{kolibri/controller-DpjFjZPx.js.map → esm/controller-B26Xzibc.js.map} +1 -1
- package/dist/esm/controller-BhIDd4zH.js +4 -0
- package/dist/esm/controller-BhIDd4zH.js.map +1 -0
- package/dist/esm/{controller-D6XbseiE.js → controller-CXFmGceD.js} +1 -1
- package/dist/{kolibri/controller-D6XbseiE.js.map → esm/controller-CXFmGceD.js.map} +1 -1
- package/dist/esm/{controller-BOQfHWqN.js → controller-eUfCqvxN.js} +1 -1
- package/dist/{kolibri/controller-BOQfHWqN.js.map → esm/controller-eUfCqvxN.js.map} +1 -1
- package/dist/esm/controller-icon-CkbZA11D.js +4 -0
- package/dist/{kolibri/controller-icon-LTaTMYty.js.map → esm/controller-icon-CkbZA11D.js.map} +1 -1
- package/dist/esm/{custom-class-CuE7EhVR.js → custom-class-C5Yo1ysl.js} +1 -1
- package/dist/esm/{custom-class-CuE7EhVR.js.map → custom-class-C5Yo1ysl.js.map} +1 -1
- package/dist/esm/{dev.utils-CfUO8naH.js → dev.utils-1j51sOA0.js} +1 -1
- package/dist/esm/{dev.utils-CfUO8naH.js.map → dev.utils-1j51sOA0.js.map} +1 -1
- package/dist/esm/{devtools-CRtYm7JN.js → devtools-BoxfKJ14.js} +1 -1
- package/dist/esm/{devtools-CRtYm7JN.js.map → devtools-BoxfKJ14.js.map} +1 -1
- package/dist/esm/disabled-BBn2JEzf.js +4 -0
- package/dist/esm/{disabled-Cp_Z3qUn.js.map → disabled-BBn2JEzf.js.map} +1 -1
- package/dist/esm/{has-closer-EMsTDubn.js → has-closer-CfUBQHmY.js} +1 -1
- package/dist/esm/{has-closer-EMsTDubn.js.map → has-closer-CfUBQHmY.js.map} +1 -1
- package/dist/esm/{hide-label-BvUdILkE.js → hide-label-DQL9J6E_.js} +1 -1
- package/dist/esm/{hide-label-BvUdILkE.js.map → hide-label-DQL9J6E_.js.map} +1 -1
- package/dist/esm/{href-C6r5xl19.js → href-COBxk7m0.js} +1 -1
- package/dist/esm/{href-C6r5xl19.js.map → href-COBxk7m0.js.map} +1 -1
- package/dist/esm/{i18n-CSCkYcOW.js → i18n-BVaUp6qp.js} +1 -1
- package/dist/esm/{i18n-CSCkYcOW.js.map → i18n-BVaUp6qp.js.map} +1 -1
- package/dist/esm/{icons-Cl5Luo4Z.js → icons-CqQ9plmY.js} +1 -1
- package/dist/{kolibri/icons-Cl5Luo4Z.js.map → esm/icons-CqQ9plmY.js.map} +1 -1
- package/dist/esm/{index-BPtT34o3.js → index-Dva21o82.js} +1 -1
- package/dist/{kolibri/index-BPtT34o3.js.map → esm/index-Dva21o82.js.map} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{inline-MFnRAU4D.js → inline-D3xGVsIW.js} +1 -1
- package/dist/esm/{inline-MFnRAU4D.js.map → inline-D3xGVsIW.js.map} +1 -1
- package/dist/esm/isArray-CcrBs4JM.js.map +1 -1
- package/dist/esm/kol-abbr.entry.js +1 -1
- package/dist/esm/kol-abbr.entry.js.map +1 -1
- package/dist/esm/kol-accordion.entry.js +1 -1
- package/dist/esm/kol-accordion.entry.js.map +1 -1
- package/dist/esm/kol-alert-wc.entry.js +1 -1
- package/dist/esm/kol-alert-wc.entry.js.map +1 -1
- package/dist/esm/kol-alert.entry.js +1 -1
- package/dist/esm/kol-avatar.entry.js +1 -1
- package/dist/esm/kol-avatar.entry.js.map +1 -1
- package/dist/esm/kol-badge.entry.js +1 -1
- package/dist/esm/kol-breadcrumb.entry.js +1 -1
- package/dist/esm/kol-button-link.entry.js +1 -1
- package/dist/esm/kol-button-wc.entry.js +1 -1
- package/dist/esm/kol-button-wc.entry.js.map +1 -1
- package/dist/esm/kol-button.entry.js +1 -1
- package/dist/esm/kol-card-wc.entry.js +1 -1
- package/dist/esm/kol-card.entry.js +1 -1
- package/dist/esm/kol-click-button.entry.js +1 -1
- package/dist/esm/kol-click-button.entry.js.map +1 -1
- package/dist/esm/kol-combobox.entry.js +1 -1
- package/dist/esm/kol-combobox.entry.js.map +1 -1
- package/dist/esm/kol-details.entry.js +1 -1
- package/dist/esm/kol-details.entry.js.map +1 -1
- package/dist/esm/kol-dialog-wc.entry.js +1 -1
- package/dist/esm/kol-dialog.entry.js +1 -1
- package/dist/esm/kol-drawer.entry.js +1 -1
- package/dist/esm/kol-form.entry.js +1 -1
- package/dist/esm/kol-heading.entry.js +1 -1
- package/dist/esm/kol-heading.entry.js.map +1 -1
- package/dist/esm/kol-icon.entry.js +1 -1
- package/dist/esm/kol-icon.entry.js.map +1 -1
- package/dist/esm/kol-image.entry.js +1 -1
- package/dist/esm/kol-image.entry.js.map +1 -1
- package/dist/esm/kol-input-checkbox.entry.js +1 -1
- package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
- package/dist/esm/kol-input-color.entry.js +1 -1
- package/dist/esm/kol-input-color.entry.js.map +1 -1
- package/dist/esm/kol-input-date.entry.js +1 -1
- package/dist/esm/kol-input-date.entry.js.map +1 -1
- package/dist/esm/kol-input-email.entry.js +1 -1
- package/dist/esm/kol-input-email.entry.js.map +1 -1
- package/dist/esm/kol-input-file.entry.js +1 -1
- package/dist/esm/kol-input-file.entry.js.map +1 -1
- package/dist/esm/kol-input-number.entry.js +1 -1
- package/dist/esm/kol-input-number.entry.js.map +1 -1
- package/dist/esm/kol-input-password.entry.js +1 -1
- package/dist/esm/kol-input-password.entry.js.map +1 -1
- package/dist/esm/kol-input-radio.entry.js +1 -1
- package/dist/esm/kol-input-radio.entry.js.map +1 -1
- package/dist/esm/kol-input-range.entry.js +1 -1
- package/dist/esm/kol-input-range.entry.js.map +1 -1
- package/dist/esm/kol-input-text.entry.js +1 -1
- package/dist/esm/kol-input-text.entry.js.map +1 -1
- package/dist/esm/kol-kolibri.entry.js +1 -1
- package/dist/esm/kol-link-button.entry.js +1 -1
- package/dist/esm/kol-link-wc.entry.js +1 -1
- package/dist/esm/kol-link-wc.entry.js.map +1 -1
- package/dist/esm/kol-link.entry.js +1 -1
- package/dist/esm/kol-meter.entry.js +1 -1
- package/dist/esm/kol-meter.entry.js.map +1 -1
- package/dist/esm/kol-modal.entry.js +1 -1
- package/dist/esm/kol-nav.entry.js +1 -1
- package/dist/esm/kol-pagination-wc.entry.js +1 -1
- package/dist/esm/kol-pagination.entry.js +1 -1
- package/dist/esm/kol-popover-button-wc.entry.js +1 -1
- package/dist/esm/kol-popover-button.entry.js +1 -1
- package/dist/esm/kol-progress.entry.js +1 -1
- package/dist/esm/kol-progress.entry.js.map +1 -1
- package/dist/esm/kol-quote.entry.js +1 -1
- package/dist/esm/kol-quote.entry.js.map +1 -1
- package/dist/esm/kol-select-wc.entry.js +1 -1
- package/dist/esm/kol-select-wc.entry.js.map +1 -1
- package/dist/esm/kol-select.entry.js +1 -1
- package/dist/esm/kol-single-select.entry.js +1 -1
- package/dist/esm/kol-single-select.entry.js.map +1 -1
- package/dist/esm/kol-skeleton.entry.js +1 -1
- package/dist/esm/kol-skeleton.entry.js.map +1 -1
- package/dist/esm/kol-skip-nav.entry.js +1 -1
- package/dist/esm/kol-spin.entry.js +1 -1
- package/dist/esm/kol-spin.entry.js.map +1 -1
- package/dist/esm/kol-split-button.entry.js +1 -1
- package/dist/esm/kol-table-settings-wc.entry.js +1 -1
- package/dist/esm/kol-table-stateful.entry.js +1 -1
- package/dist/esm/kol-table-stateless-wc.entry.js +1 -1
- package/dist/esm/kol-table-stateless-wc.entry.js.map +1 -1
- package/dist/esm/kol-table-stateless.entry.js +1 -1
- package/dist/esm/kol-tabs.entry.js +1 -1
- package/dist/esm/kol-textarea.entry.js +1 -1
- package/dist/esm/kol-textarea.entry.js.map +1 -1
- package/dist/esm/kol-toast-container.entry.js +1 -1
- package/dist/esm/kol-toast-container.entry.js.map +1 -1
- package/dist/esm/kol-toolbar.entry.js +1 -1
- package/dist/esm/kol-tooltip-wc.entry.js +1 -1
- package/dist/esm/kol-tooltip-wc.entry.js.map +1 -1
- package/dist/esm/kol-tree-item-wc.entry.js +1 -1
- package/dist/esm/kol-tree-item.entry.js +1 -1
- package/dist/esm/kol-tree-wc.entry.js +1 -1
- package/dist/esm/kol-tree.entry.js +1 -1
- package/dist/esm/kol-version.entry.js +1 -1
- package/dist/esm/kolibri.js +1 -1
- package/dist/esm/{label-YKsDbE5K.js → label-BEOW9ltS.js} +1 -1
- package/dist/{kolibri/label-YKsDbE5K.js.map → esm/label-BEOW9ltS.js.map} +1 -1
- package/dist/esm/{label-Cd37SRqu.js → label-vxVEH2gH.js} +1 -1
- package/dist/{kolibri/label-Cd37SRqu.js.map → esm/label-vxVEH2gH.js.map} +1 -1
- package/dist/esm/{level-BxYUNJ1-.js → level-Bwrb_jzT.js} +1 -1
- package/dist/{kolibri/level-BxYUNJ1-.js.map → esm/level-Bwrb_jzT.js.map} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{max-length-behavior-BQyK6pTW.js → max-length-behavior-DMw3rhwa.js} +1 -1
- package/dist/esm/{max-length-behavior-BQyK6pTW.js.map → max-length-behavior-DMw3rhwa.js.map} +1 -1
- package/dist/esm/{multiple-o7O9-jfG.js → multiple-sbfZAt7f.js} +1 -1
- package/dist/esm/{multiple-o7O9-jfG.js.map → multiple-sbfZAt7f.js.map} +1 -1
- package/dist/esm/normalizers-DnkJhVYZ.js +4 -0
- package/dist/esm/normalizers-DnkJhVYZ.js.map +1 -0
- package/dist/esm/{open-CQYEMxrb.js → open-BMZVrISI.js} +1 -1
- package/dist/esm/{open-CQYEMxrb.js.map → open-BMZVrISI.js.map} +1 -1
- package/dist/esm/{orientation-DqJ-qcRZ.js → orientation-D3LRVMo1.js} +1 -1
- package/dist/esm/{orientation-DqJ-qcRZ.js.map → orientation-D3LRVMo1.js.map} +1 -1
- package/dist/esm/{placeholder-DsAnRKrf.js → placeholder-BuBUMNhW.js} +1 -1
- package/dist/esm/{placeholder-DsAnRKrf.js.map → placeholder-BuBUMNhW.js.map} +1 -1
- package/dist/esm/{read-only-SN_GeL2X.js → read-only-DnkXqxgk.js} +1 -1
- package/dist/esm/{read-only-SN_GeL2X.js.map → read-only-DnkXqxgk.js.map} +1 -1
- package/dist/esm/{required-Ds8VBM7N.js → required-C9Xj8kw2.js} +1 -1
- package/dist/esm/{required-Ds8VBM7N.js.map → required-C9Xj8kw2.js.map} +1 -1
- package/dist/esm/{rows-DXMwg6VY.js → rows-lThApm3P.js} +1 -1
- package/dist/esm/{rows-DXMwg6VY.js.map → rows-lThApm3P.js.map} +1 -1
- package/dist/esm/{spell-check-SKqMIGfR.js → spell-check-Y1ApnP_M.js} +1 -1
- package/dist/esm/{spell-check-SKqMIGfR.js.map → spell-check-Y1ApnP_M.js.map} +1 -1
- package/dist/esm/{src-ZNAInwRj.js → src-D1LGDerl.js} +1 -1
- package/dist/esm/{src-ZNAInwRj.js.map → src-D1LGDerl.js.map} +1 -1
- package/dist/esm/{suggestions-Bu6noihP.js → suggestions-D5cst2OI.js} +1 -1
- package/dist/esm/{suggestions-Bu6noihP.js.map → suggestions-D5cst2OI.js.map} +1 -1
- package/dist/esm/{table-selection-Dp8qMfQK.js → table-selection-CXJmsMfX.js} +1 -1
- package/dist/esm/{table-selection-Dp8qMfQK.js.map → table-selection-CXJmsMfX.js.map} +1 -1
- package/dist/esm/test-component.entry.js +1 -1
- package/dist/esm/tooltip-align-DnbCY1Uu.js +4 -0
- package/dist/esm/{tooltip-align-D0H6p6J-.js.map → tooltip-align-DnbCY1Uu.js.map} +1 -1
- package/dist/esm/{tooltip-open-tracking-rBbBgPWP.js → tooltip-open-tracking-D3tCiiGP.js} +1 -1
- package/dist/esm/{tooltip-open-tracking-rBbBgPWP.js.map → tooltip-open-tracking-D3tCiiGP.js.map} +1 -1
- package/dist/esm/{unique-nav-labels-gjoTXEl2.js → unique-nav-labels-BIHfxulq.js} +1 -1
- package/dist/esm/{unique-nav-labels-gjoTXEl2.js.map → unique-nav-labels-BIHfxulq.js.map} +1 -1
- package/dist/esm/{unit-CT_uTXCe.js → unit-eRQuaHYy.js} +1 -1
- package/dist/esm/{unit-CT_uTXCe.js.map → unit-eRQuaHYy.js.map} +1 -1
- package/dist/esm/{validation-1WO5IiaK.js → validation-BytKl095.js} +1 -1
- package/dist/esm/{validation-1WO5IiaK.js.map → validation-BytKl095.js.map} +1 -1
- package/dist/esm/{validation-0DtswhYW.js → validation-JhNRqKy1.js} +1 -1
- package/dist/esm/{validation-0DtswhYW.js.map → validation-JhNRqKy1.js.map} +1 -1
- package/dist/esm/{variant-class-name-CXDTsEes.js → variant-class-name-BVKxs0G0.js} +1 -1
- package/dist/{kolibri/variant-class-name-CXDTsEes.js.map → esm/variant-class-name-BVKxs0G0.js.map} +1 -1
- package/dist/esm/variant-quote-CHD0qMkY.js +4 -0
- package/dist/esm/variant-quote-CHD0qMkY.js.map +1 -0
- package/dist/kolibri/Alert-tCK86mR9.js +4 -0
- package/dist/{esm/Alert-BCOTrqr_.js.map → kolibri/Alert-tCK86mR9.js.map} +1 -1
- package/dist/kolibri/Collapsible-Cj9F89Xs.js +4 -0
- package/dist/kolibri/{Collapsible-Cxiz2gVO.js.map → Collapsible-Cj9F89Xs.js.map} +1 -1
- package/dist/kolibri/{CustomSuggestionsOptionsGroup-KAi-Zhy-.js → CustomSuggestionsOptionsGroup-nwMMJoTi.js} +1 -1
- package/dist/{esm/CustomSuggestionsOptionsGroup-KAi-Zhy-.js.map → kolibri/CustomSuggestionsOptionsGroup-nwMMJoTi.js.map} +1 -1
- package/dist/kolibri/FieldControlStateWrapper-jzhuJtcw.js +4 -0
- package/dist/kolibri/FieldControlStateWrapper-jzhuJtcw.js.map +1 -0
- package/dist/kolibri/FormFieldStateWrapper-CYyPrkIu.js +4 -0
- package/dist/kolibri/FormFieldStateWrapper-CYyPrkIu.js.map +1 -0
- package/dist/kolibri/{Heading-CdhA3sYv.js → Heading-NivGt5lH.js} +1 -1
- package/dist/{esm/Heading-CdhA3sYv.js.map → kolibri/Heading-NivGt5lH.js.map} +1 -1
- package/dist/kolibri/Input-DT4QeGU5.js +4 -0
- package/dist/kolibri/{Input-ZDG0uZKh.js.map → Input-DT4QeGU5.js.map} +1 -1
- package/dist/kolibri/{InputStateWrapper-BO-OfVb2.js → InputStateWrapper-DQ8WZAj6.js} +1 -1
- package/dist/{esm/InputStateWrapper-BO-OfVb2.js.map → kolibri/InputStateWrapper-DQ8WZAj6.js.map} +1 -1
- package/dist/kolibri/_Uint8Array-kJHDjtoP.js +4 -0
- package/dist/kolibri/_Uint8Array-kJHDjtoP.js.map +1 -0
- package/dist/kolibri/{access-and-short-key-BzpC9FZP.js → access-and-short-key-D2TiPdWw.js} +1 -1
- package/dist/{esm/access-and-short-key-BzpC9FZP.js.map → kolibri/access-and-short-key-D2TiPdWw.js.map} +1 -1
- package/dist/kolibri/{align-BmVteuP6.js → align-D3Z54kEL.js} +1 -1
- package/dist/kolibri/{align-BmVteuP6.js.map → align-D3Z54kEL.js.map} +1 -1
- package/dist/kolibri/{align-floating-elements-DZlGJkZJ.js → align-floating-elements-58sFZOrL.js} +1 -1
- package/dist/kolibri/{align-floating-elements-DZlGJkZJ.js.map → align-floating-elements-58sFZOrL.js.map} +1 -1
- package/dist/kolibri/app-globals-QmLLrOhZ.js +4 -0
- package/dist/kolibri/{app-globals-C8b8QdHH.js.map → app-globals-QmLLrOhZ.js.map} +1 -1
- package/dist/kolibri/{associated.controller-8xCU8Tb0.js → associated.controller-BKQIR17-.js} +1 -1
- package/dist/kolibri/{associated.controller-8xCU8Tb0.js.map → associated.controller-BKQIR17-.js.map} +1 -1
- package/dist/kolibri/{auto-complete-B9cEw7-0.js → auto-complete-DmusaKxg.js} +1 -1
- package/dist/kolibri/{auto-complete-B9cEw7-0.js.map → auto-complete-DmusaKxg.js.map} +1 -1
- package/dist/kolibri/base-controller-CXhqh4cR.js +4 -0
- package/dist/kolibri/base-controller-CXhqh4cR.js.map +1 -0
- package/dist/kolibri/{bem-registry-DTQ0cuzY.js → bem-registry-Bux_TllX.js} +1 -1
- package/dist/kolibri/bem-registry-Bux_TllX.js.map +1 -0
- package/dist/kolibri/{bootstrap-BFbfb2g4.js → bootstrap-CbPXNlVt.js} +1 -1
- package/dist/kolibri/{bootstrap-BFbfb2g4.js.map → bootstrap-CbPXNlVt.js.map} +1 -1
- package/dist/kolibri/{color-CYYQM-HT.js → color-DLD0vupv.js} +1 -1
- package/dist/{esm/color-CYYQM-HT.js.map → kolibri/color-DLD0vupv.js.map} +1 -1
- package/dist/kolibri/{common-5ExJH6NU.js → common-BqV6Zb30.js} +1 -1
- package/dist/{esm/common-5ExJH6NU.js.map → kolibri/common-BqV6Zb30.js.map} +1 -1
- package/dist/kolibri/component-BU7rA3Iq.js +4 -0
- package/dist/kolibri/component-BU7rA3Iq.js.map +1 -0
- package/dist/kolibri/{component-JM2Le9Vy.js → component-BcphpQc1.js} +1 -1
- package/dist/kolibri/component-BcphpQc1.js.map +1 -0
- package/dist/kolibri/component-PEZ0eaV8.js +4 -0
- package/dist/{esm/component-CL5w48zL.js.map → kolibri/component-PEZ0eaV8.js.map} +1 -1
- package/dist/kolibri/{component-names-pgL1e5No.js → component-names-Dy77vq43.js} +1 -1
- package/dist/kolibri/{component-names-pgL1e5No.js.map → component-names-Dy77vq43.js.map} +1 -1
- package/dist/kolibri/{contrast-CCUc19be.js → contrast-DK7TU5NR.js} +1 -1
- package/dist/{esm/contrast-CCUc19be.js.map → kolibri/contrast-DK7TU5NR.js.map} +1 -1
- package/dist/kolibri/controller-30xZFasL.js +4 -0
- package/dist/kolibri/controller-30xZFasL.js.map +1 -0
- package/dist/kolibri/{controller-DioBPNwP.js → controller-90L8F3y2.js} +1 -1
- package/dist/kolibri/{controller-DioBPNwP.js.map → controller-90L8F3y2.js.map} +1 -1
- package/dist/kolibri/{controller-DpjFjZPx.js → controller-B26Xzibc.js} +1 -1
- package/dist/{esm/controller-DpjFjZPx.js.map → kolibri/controller-B26Xzibc.js.map} +1 -1
- package/dist/kolibri/controller-BhIDd4zH.js +4 -0
- package/dist/kolibri/controller-BhIDd4zH.js.map +1 -0
- package/dist/kolibri/controller-CXFmGceD.js +4 -0
- package/dist/{esm/controller-D6XbseiE.js.map → kolibri/controller-CXFmGceD.js.map} +1 -1
- package/dist/kolibri/{controller-BOQfHWqN.js → controller-eUfCqvxN.js} +1 -1
- package/dist/{esm/controller-BOQfHWqN.js.map → kolibri/controller-eUfCqvxN.js.map} +1 -1
- package/dist/kolibri/controller-icon-CkbZA11D.js +4 -0
- package/dist/{esm/controller-icon-LTaTMYty.js.map → kolibri/controller-icon-CkbZA11D.js.map} +1 -1
- package/dist/kolibri/custom-class-C5Yo1ysl.js +4 -0
- package/dist/kolibri/{custom-class-CuE7EhVR.js.map → custom-class-C5Yo1ysl.js.map} +1 -1
- package/dist/kolibri/{dev.utils-CfUO8naH.js → dev.utils-1j51sOA0.js} +1 -1
- package/dist/kolibri/{dev.utils-CfUO8naH.js.map → dev.utils-1j51sOA0.js.map} +1 -1
- package/dist/kolibri/{devtools-CRtYm7JN.js → devtools-BoxfKJ14.js} +1 -1
- package/dist/kolibri/{devtools-CRtYm7JN.js.map → devtools-BoxfKJ14.js.map} +1 -1
- package/dist/kolibri/{disabled-Cp_Z3qUn.js → disabled-BBn2JEzf.js} +1 -1
- package/dist/kolibri/{disabled-Cp_Z3qUn.js.map → disabled-BBn2JEzf.js.map} +1 -1
- package/dist/kolibri/has-closer-CfUBQHmY.js +4 -0
- package/dist/kolibri/{has-closer-EMsTDubn.js.map → has-closer-CfUBQHmY.js.map} +1 -1
- package/dist/kolibri/hide-label-DQL9J6E_.js +4 -0
- package/dist/kolibri/{hide-label-BvUdILkE.js.map → hide-label-DQL9J6E_.js.map} +1 -1
- package/dist/kolibri/href-COBxk7m0.js +4 -0
- package/dist/kolibri/{href-C6r5xl19.js.map → href-COBxk7m0.js.map} +1 -1
- package/dist/kolibri/i18n-BVaUp6qp.js +4 -0
- package/dist/kolibri/{i18n-CSCkYcOW.js.map → i18n-BVaUp6qp.js.map} +1 -1
- package/dist/kolibri/{icons-Cl5Luo4Z.js → icons-CqQ9plmY.js} +1 -1
- package/dist/{esm/icons-Cl5Luo4Z.js.map → kolibri/icons-CqQ9plmY.js.map} +1 -1
- package/dist/kolibri/{index-BPtT34o3.js → index-Dva21o82.js} +2 -2
- package/dist/{esm/index-BPtT34o3.js.map → kolibri/index-Dva21o82.js.map} +1 -1
- package/dist/kolibri/index.esm.js +1 -1
- package/dist/kolibri/inline-D3xGVsIW.js +4 -0
- package/dist/kolibri/{inline-MFnRAU4D.js.map → inline-D3xGVsIW.js.map} +1 -1
- package/dist/kolibri/isArray-CcrBs4JM.js.map +1 -1
- package/dist/kolibri/kol-abbr.entry.esm.js.map +1 -1
- package/dist/kolibri/kol-abbr.entry.js +1 -1
- package/dist/kolibri/kol-abbr.entry.js.map +1 -1
- package/dist/kolibri/kol-accordion.entry.esm.js.map +1 -1
- package/dist/kolibri/kol-accordion.entry.js +1 -1
- package/dist/kolibri/kol-accordion.entry.js.map +1 -1
- package/dist/kolibri/kol-alert-wc.entry.esm.js.map +1 -1
- package/dist/kolibri/kol-alert-wc.entry.js +1 -1
- package/dist/kolibri/kol-alert-wc.entry.js.map +1 -1
- package/dist/kolibri/kol-alert.entry.js +1 -1
- package/dist/kolibri/kol-avatar.entry.esm.js.map +1 -1
- package/dist/kolibri/kol-avatar.entry.js +1 -1
- package/dist/kolibri/kol-avatar.entry.js.map +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-wc.entry.esm.js.map +1 -1
- package/dist/kolibri/kol-button-wc.entry.js +1 -1
- package/dist/kolibri/kol-button-wc.entry.js.map +1 -1
- package/dist/kolibri/kol-button.entry.js +1 -1
- package/dist/kolibri/kol-card-wc.entry.js +1 -1
- package/dist/kolibri/kol-card-wc.entry.js.map +1 -1
- package/dist/kolibri/kol-card.entry.js +1 -1
- package/dist/kolibri/kol-click-button.entry.esm.js.map +1 -1
- package/dist/kolibri/kol-click-button.entry.js +1 -1
- package/dist/kolibri/kol-click-button.entry.js.map +1 -1
- package/dist/kolibri/kol-combobox.entry.esm.js.map +1 -1
- package/dist/kolibri/kol-combobox.entry.js +1 -1
- package/dist/kolibri/kol-combobox.entry.js.map +1 -1
- package/dist/kolibri/kol-details.entry.esm.js.map +1 -1
- package/dist/kolibri/kol-details.entry.js +1 -1
- package/dist/kolibri/kol-details.entry.js.map +1 -1
- package/dist/kolibri/kol-dialog-wc.entry.js +1 -1
- package/dist/kolibri/kol-dialog-wc.entry.js.map +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.esm.js.map +1 -1
- package/dist/kolibri/kol-heading.entry.js +1 -1
- package/dist/kolibri/kol-heading.entry.js.map +1 -1
- package/dist/kolibri/kol-icon.entry.esm.js.map +1 -1
- package/dist/kolibri/kol-icon.entry.js +1 -1
- package/dist/kolibri/kol-icon.entry.js.map +1 -1
- package/dist/kolibri/kol-image.entry.esm.js.map +1 -1
- package/dist/kolibri/kol-image.entry.js +1 -1
- package/dist/kolibri/kol-image.entry.js.map +1 -1
- package/dist/kolibri/kol-input-checkbox.entry.esm.js.map +1 -1
- package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
- package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
- package/dist/kolibri/kol-input-color.entry.esm.js.map +1 -1
- package/dist/kolibri/kol-input-color.entry.js +1 -1
- package/dist/kolibri/kol-input-color.entry.js.map +1 -1
- package/dist/kolibri/kol-input-date.entry.esm.js.map +1 -1
- package/dist/kolibri/kol-input-date.entry.js +1 -1
- package/dist/kolibri/kol-input-date.entry.js.map +1 -1
- package/dist/kolibri/kol-input-email.entry.esm.js.map +1 -1
- package/dist/kolibri/kol-input-email.entry.js +1 -1
- package/dist/kolibri/kol-input-email.entry.js.map +1 -1
- package/dist/kolibri/kol-input-file.entry.esm.js.map +1 -1
- package/dist/kolibri/kol-input-file.entry.js +1 -1
- package/dist/kolibri/kol-input-file.entry.js.map +1 -1
- package/dist/kolibri/kol-input-number.entry.esm.js.map +1 -1
- package/dist/kolibri/kol-input-number.entry.js +1 -1
- package/dist/kolibri/kol-input-number.entry.js.map +1 -1
- package/dist/kolibri/kol-input-password.entry.esm.js.map +1 -1
- package/dist/kolibri/kol-input-password.entry.js +1 -1
- package/dist/kolibri/kol-input-password.entry.js.map +1 -1
- package/dist/kolibri/kol-input-radio.entry.esm.js.map +1 -1
- package/dist/kolibri/kol-input-radio.entry.js +1 -1
- package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
- package/dist/kolibri/kol-input-range.entry.esm.js.map +1 -1
- package/dist/kolibri/kol-input-range.entry.js +1 -1
- package/dist/kolibri/kol-input-range.entry.js.map +1 -1
- package/dist/kolibri/kol-input-text.entry.esm.js.map +1 -1
- package/dist/kolibri/kol-input-text.entry.js +1 -1
- package/dist/kolibri/kol-input-text.entry.js.map +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-wc.entry.esm.js.map +1 -1
- package/dist/kolibri/kol-link-wc.entry.js +1 -1
- package/dist/kolibri/kol-link-wc.entry.js.map +1 -1
- package/dist/kolibri/kol-link.entry.js +1 -1
- package/dist/kolibri/kol-meter.entry.esm.js.map +1 -1
- package/dist/kolibri/kol-meter.entry.js +1 -1
- package/dist/kolibri/kol-meter.entry.js.map +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-wc.entry.js +1 -1
- package/dist/kolibri/kol-pagination-wc.entry.js.map +1 -1
- package/dist/kolibri/kol-pagination.entry.js +1 -1
- package/dist/kolibri/kol-popover-button-wc.entry.js +1 -1
- package/dist/kolibri/kol-popover-button.entry.js +1 -1
- package/dist/kolibri/kol-progress.entry.esm.js.map +1 -1
- package/dist/kolibri/kol-progress.entry.js +1 -1
- package/dist/kolibri/kol-progress.entry.js.map +1 -1
- package/dist/kolibri/kol-quote.entry.esm.js.map +1 -1
- package/dist/kolibri/kol-quote.entry.js +1 -1
- package/dist/kolibri/kol-quote.entry.js.map +1 -1
- package/dist/kolibri/kol-select-wc.entry.esm.js.map +1 -1
- package/dist/kolibri/kol-select-wc.entry.js +1 -1
- package/dist/kolibri/kol-select-wc.entry.js.map +1 -1
- package/dist/kolibri/kol-select.entry.js +1 -1
- package/dist/kolibri/kol-single-select.entry.esm.js.map +1 -1
- package/dist/kolibri/kol-single-select.entry.js +1 -1
- package/dist/kolibri/kol-single-select.entry.js.map +1 -1
- package/dist/kolibri/kol-skeleton.entry.esm.js.map +1 -1
- package/dist/kolibri/kol-skeleton.entry.js +1 -1
- package/dist/kolibri/kol-skeleton.entry.js.map +1 -1
- package/dist/kolibri/kol-skip-nav.entry.js +1 -1
- package/dist/kolibri/kol-skip-nav.entry.js.map +1 -1
- package/dist/kolibri/kol-spin.entry.esm.js.map +1 -1
- package/dist/kolibri/kol-spin.entry.js +1 -1
- package/dist/kolibri/kol-spin.entry.js.map +1 -1
- package/dist/kolibri/kol-split-button.entry.js +1 -1
- package/dist/kolibri/kol-split-button.entry.js.map +1 -1
- package/dist/kolibri/kol-table-settings-wc.entry.js +1 -1
- package/dist/kolibri/kol-table-settings-wc.entry.js.map +1 -1
- package/dist/kolibri/kol-table-stateful.entry.js +1 -1
- package/dist/kolibri/kol-table-stateful.entry.js.map +1 -1
- package/dist/kolibri/kol-table-stateless-wc.entry.esm.js.map +1 -1
- package/dist/kolibri/kol-table-stateless-wc.entry.js +1 -1
- package/dist/kolibri/kol-table-stateless-wc.entry.js.map +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-tabs.entry.js.map +1 -1
- package/dist/kolibri/kol-textarea.entry.esm.js.map +1 -1
- package/dist/kolibri/kol-textarea.entry.js +1 -1
- package/dist/kolibri/kol-textarea.entry.js.map +1 -1
- package/dist/kolibri/kol-toast-container.entry.esm.js.map +1 -1
- package/dist/kolibri/kol-toast-container.entry.js +1 -1
- package/dist/kolibri/kol-toast-container.entry.js.map +1 -1
- package/dist/kolibri/kol-toolbar.entry.js +1 -1
- package/dist/kolibri/kol-tooltip-wc.entry.esm.js.map +1 -1
- package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
- package/dist/kolibri/kol-tooltip-wc.entry.js.map +1 -1
- package/dist/kolibri/kol-tree-item-wc.entry.js +1 -1
- package/dist/kolibri/kol-tree-item.entry.js +1 -1
- package/dist/kolibri/kol-tree-item.entry.js.map +1 -1
- package/dist/kolibri/kol-tree-wc.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-YKsDbE5K.js → label-BEOW9ltS.js} +1 -1
- package/dist/{esm/label-YKsDbE5K.js.map → kolibri/label-BEOW9ltS.js.map} +1 -1
- package/dist/kolibri/{label-Cd37SRqu.js → label-vxVEH2gH.js} +1 -1
- package/dist/{esm/label-Cd37SRqu.js.map → kolibri/label-vxVEH2gH.js.map} +1 -1
- package/dist/kolibri/{level-BxYUNJ1-.js → level-Bwrb_jzT.js} +1 -1
- package/dist/{esm/level-BxYUNJ1-.js.map → kolibri/level-Bwrb_jzT.js.map} +1 -1
- package/dist/kolibri/{max-length-behavior-BQyK6pTW.js → max-length-behavior-DMw3rhwa.js} +1 -1
- package/dist/kolibri/{max-length-behavior-BQyK6pTW.js.map → max-length-behavior-DMw3rhwa.js.map} +1 -1
- package/dist/kolibri/multiple-sbfZAt7f.js +4 -0
- package/dist/kolibri/{multiple-o7O9-jfG.js.map → multiple-sbfZAt7f.js.map} +1 -1
- package/dist/kolibri/normalizers-DnkJhVYZ.js +4 -0
- package/dist/kolibri/normalizers-DnkJhVYZ.js.map +1 -0
- package/dist/kolibri/open-BMZVrISI.js +4 -0
- package/dist/kolibri/{open-CQYEMxrb.js.map → open-BMZVrISI.js.map} +1 -1
- package/dist/kolibri/{orientation-DqJ-qcRZ.js → orientation-D3LRVMo1.js} +1 -1
- package/dist/kolibri/{orientation-DqJ-qcRZ.js.map → orientation-D3LRVMo1.js.map} +1 -1
- package/dist/kolibri/placeholder-BuBUMNhW.js +4 -0
- package/dist/kolibri/{placeholder-DsAnRKrf.js.map → placeholder-BuBUMNhW.js.map} +1 -1
- package/dist/kolibri/read-only-DnkXqxgk.js +4 -0
- package/dist/kolibri/{read-only-SN_GeL2X.js.map → read-only-DnkXqxgk.js.map} +1 -1
- package/dist/kolibri/required-C9Xj8kw2.js +4 -0
- package/dist/kolibri/{required-Ds8VBM7N.js.map → required-C9Xj8kw2.js.map} +1 -1
- package/dist/kolibri/rows-lThApm3P.js +4 -0
- package/dist/kolibri/{rows-DXMwg6VY.js.map → rows-lThApm3P.js.map} +1 -1
- package/dist/kolibri/spell-check-Y1ApnP_M.js +4 -0
- package/dist/kolibri/{spell-check-SKqMIGfR.js.map → spell-check-Y1ApnP_M.js.map} +1 -1
- package/dist/kolibri/src-D1LGDerl.js +4 -0
- package/dist/kolibri/{src-ZNAInwRj.js.map → src-D1LGDerl.js.map} +1 -1
- package/dist/kolibri/{suggestions-Bu6noihP.js → suggestions-D5cst2OI.js} +1 -1
- package/dist/kolibri/{suggestions-Bu6noihP.js.map → suggestions-D5cst2OI.js.map} +1 -1
- package/dist/kolibri/{table-selection-Dp8qMfQK.js → table-selection-CXJmsMfX.js} +1 -1
- package/dist/kolibri/{table-selection-Dp8qMfQK.js.map → table-selection-CXJmsMfX.js.map} +1 -1
- package/dist/kolibri/test-component.entry.js +1 -1
- package/dist/kolibri/tooltip-align-DnbCY1Uu.js +4 -0
- package/dist/kolibri/{tooltip-align-D0H6p6J-.js.map → tooltip-align-DnbCY1Uu.js.map} +1 -1
- package/dist/kolibri/tooltip-open-tracking-D3tCiiGP.js +4 -0
- package/dist/kolibri/{tooltip-open-tracking-rBbBgPWP.js.map → tooltip-open-tracking-D3tCiiGP.js.map} +1 -1
- package/dist/kolibri/{unique-nav-labels-gjoTXEl2.js → unique-nav-labels-BIHfxulq.js} +1 -1
- package/dist/kolibri/{unique-nav-labels-gjoTXEl2.js.map → unique-nav-labels-BIHfxulq.js.map} +1 -1
- package/dist/kolibri/unit-eRQuaHYy.js +4 -0
- package/dist/kolibri/{unit-CT_uTXCe.js.map → unit-eRQuaHYy.js.map} +1 -1
- package/dist/kolibri/validation-BytKl095.js +4 -0
- package/dist/kolibri/{validation-1WO5IiaK.js.map → validation-BytKl095.js.map} +1 -1
- package/dist/kolibri/{validation-0DtswhYW.js → validation-JhNRqKy1.js} +1 -1
- package/dist/kolibri/{validation-0DtswhYW.js.map → validation-JhNRqKy1.js.map} +1 -1
- package/dist/kolibri/{variant-class-name-CXDTsEes.js → variant-class-name-BVKxs0G0.js} +1 -1
- package/dist/{esm/variant-class-name-CXDTsEes.js.map → kolibri/variant-class-name-BVKxs0G0.js.map} +1 -1
- package/dist/kolibri/variant-quote-CHD0qMkY.js +4 -0
- package/dist/kolibri/variant-quote-CHD0qMkY.js.map +1 -0
- package/dist/types/components/abbr/shadow.d.ts +5 -0
- package/dist/types/components/button/component.d.ts +3 -3
- package/dist/types/components/component-list.d.ts +26 -2
- package/dist/types/components/heading/component.d.ts +1 -2
- package/dist/types/components/icon/component.d.ts +1 -2
- package/dist/types/components/image/component.d.ts +1 -2
- package/dist/types/components/link/component.d.ts +2 -3
- package/dist/types/components/quote/component.d.ts +1 -2
- package/dist/types/components/spin/component.d.ts +17 -0
- package/dist/types/components/tooltip/component.d.ts +5 -31
- package/dist/types/components.d.ts +21 -24
- package/dist/types/functional-components/FieldControl/FieldControl.d.ts +2 -0
- package/dist/types/functional-components/FormField/FormField.d.ts +4 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/internal/functional-components/avatar/controller.d.ts +2 -2
- package/dist/types/internal/functional-components/base-controller.d.ts +4 -4
- package/dist/types/internal/functional-components/base-web-component.d.ts +3 -3
- package/dist/types/internal/functional-components/click-button/controller.d.ts +2 -2
- package/dist/types/internal/functional-components/generic-types.d.ts +4 -0
- package/dist/types/internal/functional-components/heading/controller.d.ts +2 -2
- package/dist/types/internal/functional-components/icon/controller.d.ts +2 -2
- package/dist/types/internal/functional-components/image/controller.d.ts +2 -2
- package/dist/types/internal/functional-components/meter/controller.d.ts +2 -2
- package/dist/types/internal/functional-components/progress/controller.d.ts +2 -2
- package/dist/types/internal/functional-components/quote/controller.d.ts +2 -2
- package/dist/types/internal/functional-components/skeleton/controller.d.ts +2 -2
- package/dist/types/internal/functional-components/spin/api.d.ts +13 -0
- package/dist/types/internal/functional-components/spin/component.d.ts +4 -0
- package/dist/types/internal/functional-components/spin/controller.d.ts +14 -0
- package/dist/types/internal/functional-components/tooltip/api.d.ts +10 -0
- package/dist/types/internal/functional-components/tooltip/component.d.ts +12 -0
- package/dist/types/internal/functional-components/tooltip/controller.d.ts +36 -0
- package/dist/types/internal/props/id.d.ts +3 -0
- package/dist/types/internal/props/index.d.ts +1 -1
- package/dist/types/internal/props/variant-spin.d.ts +5 -0
- package/dist/types/schema/bem-registry.d.ts +14 -0
- package/doc/spin.md +2 -13
- package/package.json +9 -8
- package/vscode-custom-data.json +1 -1
- package/dist/cjs/FieldControlStateWrapper-fuU7vCSF.js +0 -4
- package/dist/cjs/FieldControlStateWrapper-fuU7vCSF.js.map +0 -1
- package/dist/cjs/FormFieldStateWrapper-DFDKYGXF.js +0 -4
- package/dist/cjs/FormFieldStateWrapper-DFDKYGXF.js.map +0 -1
- package/dist/cjs/_Uint8Array-H2CXBET6.js +0 -4
- package/dist/cjs/_Uint8Array-H2CXBET6.js.map +0 -1
- package/dist/cjs/align-Dgke5npK.js +0 -4
- package/dist/cjs/base-web-component-C3wNPDxk.js +0 -4
- package/dist/cjs/base-web-component-C3wNPDxk.js.map +0 -1
- package/dist/cjs/bem-registry-BYsM9uZG.js.map +0 -1
- package/dist/cjs/component-TRu1ySJ5.js +0 -4
- package/dist/cjs/component-_osv0u4g.js.map +0 -1
- package/dist/cjs/component-names-CLJnvcGE.js +0 -4
- package/dist/cjs/controller-B2pSXz2k.js +0 -4
- package/dist/cjs/controller-B2pSXz2k.js.map +0 -1
- package/dist/cjs/controller-icon-YX2g0qKC.js +0 -4
- package/dist/cjs/isObject-CyNHuTNs.js +0 -4
- package/dist/cjs/isObject-CyNHuTNs.js.map +0 -1
- package/dist/cjs/normalizers-BJ2c2X_E.js +0 -4
- package/dist/cjs/normalizers-BJ2c2X_E.js.map +0 -1
- package/dist/components/base-web-component.js +0 -4
- package/dist/components/base-web-component.js.map +0 -1
- package/dist/components/isObject.js +0 -4
- package/dist/components/isObject.js.map +0 -1
- package/dist/esm/FieldControlStateWrapper-u5T9Z9S9.js +0 -4
- package/dist/esm/FieldControlStateWrapper-u5T9Z9S9.js.map +0 -1
- package/dist/esm/FormFieldStateWrapper-D9-nbrAT.js +0 -4
- package/dist/esm/FormFieldStateWrapper-D9-nbrAT.js.map +0 -1
- package/dist/esm/_Uint8Array-UP73qmmG.js +0 -4
- package/dist/esm/_Uint8Array-UP73qmmG.js.map +0 -1
- package/dist/esm/align-BmVteuP6.js +0 -4
- package/dist/esm/base-web-component-BnYjYRBQ.js +0 -4
- package/dist/esm/base-web-component-BnYjYRBQ.js.map +0 -1
- package/dist/esm/bem-registry-DTQ0cuzY.js.map +0 -1
- package/dist/esm/component-CL5w48zL.js +0 -4
- package/dist/esm/component-JM2Le9Vy.js.map +0 -1
- package/dist/esm/controller-BNZDhmmV.js +0 -4
- package/dist/esm/controller-BNZDhmmV.js.map +0 -1
- package/dist/esm/controller-icon-LTaTMYty.js +0 -4
- package/dist/esm/disabled-Cp_Z3qUn.js +0 -4
- package/dist/esm/isObject-BJgq02Md.js +0 -4
- package/dist/esm/isObject-BJgq02Md.js.map +0 -1
- package/dist/esm/normalizers-KEHwXLG5.js +0 -4
- package/dist/esm/normalizers-KEHwXLG5.js.map +0 -1
- package/dist/esm/tooltip-align-D0H6p6J-.js +0 -4
- package/dist/kolibri/Alert-BCOTrqr_.js +0 -4
- package/dist/kolibri/Collapsible-Cxiz2gVO.js +0 -4
- package/dist/kolibri/FieldControlStateWrapper-u5T9Z9S9.js +0 -4
- package/dist/kolibri/FieldControlStateWrapper-u5T9Z9S9.js.map +0 -1
- package/dist/kolibri/FormFieldStateWrapper-D9-nbrAT.js +0 -4
- package/dist/kolibri/FormFieldStateWrapper-D9-nbrAT.js.map +0 -1
- package/dist/kolibri/Input-ZDG0uZKh.js +0 -4
- package/dist/kolibri/_Uint8Array-UP73qmmG.js +0 -4
- package/dist/kolibri/_Uint8Array-UP73qmmG.js.map +0 -1
- package/dist/kolibri/app-globals-C8b8QdHH.js +0 -4
- package/dist/kolibri/base-web-component-BnYjYRBQ.js +0 -4
- package/dist/kolibri/base-web-component-BnYjYRBQ.js.map +0 -1
- package/dist/kolibri/bem-registry-DTQ0cuzY.js.map +0 -1
- package/dist/kolibri/component-CL5w48zL.js +0 -4
- package/dist/kolibri/component-JM2Le9Vy.js.map +0 -1
- package/dist/kolibri/controller-BNZDhmmV.js +0 -4
- package/dist/kolibri/controller-BNZDhmmV.js.map +0 -1
- package/dist/kolibri/controller-D6XbseiE.js +0 -4
- package/dist/kolibri/controller-icon-LTaTMYty.js +0 -4
- package/dist/kolibri/custom-class-CuE7EhVR.js +0 -4
- package/dist/kolibri/has-closer-EMsTDubn.js +0 -4
- package/dist/kolibri/hide-label-BvUdILkE.js +0 -4
- package/dist/kolibri/href-C6r5xl19.js +0 -4
- package/dist/kolibri/i18n-CSCkYcOW.js +0 -4
- package/dist/kolibri/inline-MFnRAU4D.js +0 -4
- package/dist/kolibri/isObject-BJgq02Md.js +0 -4
- package/dist/kolibri/isObject-BJgq02Md.js.map +0 -1
- package/dist/kolibri/multiple-o7O9-jfG.js +0 -4
- package/dist/kolibri/normalizers-KEHwXLG5.js +0 -4
- package/dist/kolibri/normalizers-KEHwXLG5.js.map +0 -1
- package/dist/kolibri/open-CQYEMxrb.js +0 -4
- package/dist/kolibri/placeholder-DsAnRKrf.js +0 -4
- package/dist/kolibri/read-only-SN_GeL2X.js +0 -4
- package/dist/kolibri/required-Ds8VBM7N.js +0 -4
- package/dist/kolibri/rows-DXMwg6VY.js +0 -4
- package/dist/kolibri/spell-check-SKqMIGfR.js +0 -4
- package/dist/kolibri/src-ZNAInwRj.js +0 -4
- package/dist/kolibri/tooltip-align-D0H6p6J-.js +0 -4
- package/dist/kolibri/tooltip-open-tracking-rBbBgPWP.js +0 -4
- package/dist/kolibri/unit-CT_uTXCe.js +0 -4
- package/dist/kolibri/validation-1WO5IiaK.js +0 -4
- package/dist/types/components/spin/shadow.d.ts +0 -16
- package/dist/types/functional-components/FormFieldTooltip/FormFieldTooltip.d.ts +0 -11
- package/dist/types/functional-components/FormFieldTooltip/index.d.ts +0 -1
- package/dist/types/functional-components/FormFieldTooltip/tests/snapshort.test.d.ts +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{r as registerInstance,h,g as getElement}from"./index-BPtT34o3.js";import{c as KolButtonWcTag,i as KolPopoverButtonWcTag}from"./component-names-pgL1e5No.js";import{t as translate}from"./i18n-CSCkYcOW.js";import{c as clsx}from"./clsx-COFh-Vc8.js";import{d as delegateClick,s as setClick}from"./element-click-BTxuJDNT.js";import{d as delegateFocus,s as setFocus}from"./element-focus-BKUtVrWY.js";import"./common-5ExJH6NU.js";import"./i18n-B2d_exHc.js";const defaultStyleCss='/* forward the rem function */\n/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type=\'checkbox\'], [type=\'radio\'], [type=\'range\']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don\'t want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n .hastooltip {\n z-index: 900 !important;\n }\n}\n@font-face {\n font-family: "kolicons";\n src: url("kolicons.eot?t=1774956515321"); /* IE9*/\n src: url("kolicons.eot?t=1774956515321#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1774956515321") format("woff2"), url("kolicons.woff?t=1774956515321") format("woff"), url("kolicons.ttf?t=1774956515321") format("truetype"), url("kolicons.svg?t=1774956515321#kolicons") format("svg"); /* iOS 4.1- */\n}\n@layer kol-component {\n [class^=kolicon-], [class*=" kolicon-"] {\n font-family: "kolicons";\n font-style: normal;\n font-weight: 400;\n line-height: 1em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n .kolicon-alert-error::before {\n content: "\\ea01";\n }\n .kolicon-alert-info::before {\n content: "\\ea02";\n }\n .kolicon-alert-success::before {\n content: "\\ea03";\n }\n .kolicon-alert-warning::before {\n content: "\\ea04";\n }\n .kolicon-check::before {\n content: "\\ea05";\n }\n .kolicon-chevron-double-left::before {\n content: "\\ea06";\n }\n .kolicon-chevron-double-right::before {\n content: "\\ea07";\n }\n .kolicon-chevron-down::before {\n content: "\\ea08";\n }\n .kolicon-chevron-left::before {\n content: "\\ea09";\n }\n .kolicon-chevron-right::before {\n content: "\\ea0a";\n }\n .kolicon-chevron-up::before {\n content: "\\ea0b";\n }\n .kolicon-cogwheel::before {\n content: "\\ea0c";\n }\n .kolicon-cross::before {\n content: "\\ea0d";\n }\n .kolicon-eye-closed::before {\n content: "\\ea0e";\n }\n .kolicon-eye::before {\n content: "\\ea0f";\n }\n .kolicon-house::before {\n content: "\\ea10";\n }\n .kolicon-kolibri::before {\n content: "\\ea11";\n }\n .kolicon-link-external::before {\n content: "\\ea12";\n }\n .kolicon-link::before {\n content: "\\ea13";\n }\n .kolicon-minus::before {\n content: "\\ea14";\n }\n .kolicon-plus::before {\n content: "\\ea15";\n }\n .kolicon-settings::before {\n content: "\\ea16";\n }\n .kolicon-sort-asc::before {\n content: "\\ea17";\n }\n .kolicon-sort-desc::before {\n content: "\\ea18";\n }\n .kolicon-sort-neutral::before {\n content: "\\ea19";\n }\n .kolicon-up::before {\n content: "\\ea1a";\n }\n .kolicon-version::before {\n content: "\\ea1b";\n }\n}\n@layer kol-component {\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-popover-button__popover {\n margin: 0;\n padding: 0;\n border: 0;\n }\n .kol-popover-button--inline .kol-popover-button__button {\n display: inline;\n }\n .kol-popover {\n opacity: 0;\n transition: 0.2s ease-out opacity;\n }\n .kol-popover-button--open + .kol-popover {\n opacity: 1;\n }\n .kol-split-button {\n display: flex;\n position: relative;\n width: 100%;\n }\n .kol-split-button__root {\n display: flex;\n position: relative;\n width: 100%;\n align-items: stretch;\n }\n .kol-split-button__button {\n min-width: 0;\n flex: 1 1 auto;\n text-align: left;\n }\n}',KolSplitButton=class{constructor(n){registerInstance(this,n),this.setPrimaryButtonWcRef=n=>{this.primaryButtonWcRef=n},this.setPopoverButtonRef=n=>{this.popoverButtonRef=n},this.clickButtonHandler={onClick:n=>{var e,t;n.stopPropagation(),"function"==typeof(null===(e=this._on)||void 0===e?void 0:e.onClick)&&(null===(t=this._on)||void 0===t||t.onClick(n,this._value))}},this._disabled=!1,this._hideLabel=!1,this._tooltipAlign="top",this._type="button",this._variant="normal",this.state={_show:!1}}async getValue(){return this._value}async focus(){return delegateFocus(this.host,()=>setFocus(this.primaryButtonWcRef))}async click(){return delegateClick(this.host,async()=>setClick(this.primaryButtonWcRef))}render(){return h("div",{key:"820648dab75c76be9cf3eadb56669d82dc2975ff",class:"kol-split-button"},h("div",{key:"cd6be72214ed7984acfa9b68bb7b47751666ebc8",class:"kol-split-button__root"},h(KolButtonWcTag,{key:"87ce8f6b04fc1fad065571c4a06eef38527bb210",class:clsx("kol-split-button__button",{[this._variant]:"custom"!==this._variant,[this._customClass]:"custom"===this._variant&&"string"==typeof this._customClass&&this._customClass.length>0}),ref:this.setPrimaryButtonWcRef,_accessKey:this._accessKey,_ariaControls:this._ariaControls,_ariaDescription:this._ariaDescription,_ariaExpanded:this._ariaExpanded,_ariaSelected:this._ariaSelected,_customClass:this._customClass,_disabled:this._disabled,_icons:this._icons,_hideLabel:this._hideLabel,_label:this._label,_name:this._name,_on:this.clickButtonHandler,_shortKey:this._shortKey,_syncValueBySelector:this._syncValueBySelector,_tooltipAlign:this._tooltipAlign,_type:this._type,_value:this._value,_variant:this._variant}),h("div",{key:"3e489ad1467385e74c54d83e71097da750d4e00a",class:"kol-split-button__horizontal-line"}),h(KolPopoverButtonWcTag,{key:"fee80fd1e483b7bcf55c35eab33864bc7585e73b",class:"kol-split-button__secondary-button",ref:this.setPopoverButtonRef,_disabled:this._disabled,_hideLabel:!0,_icons:"kolicon-chevron-down",_label:translate("kol-split-button-dropdown-label-open"),_popoverAlign:"bottom"},h("slot",{key:"1702aba062cab0e0d7a453cb475973beff38c180"}))))}connectedCallback(){this.state=Object.assign(Object.assign({},this.state),{_show:!1})}async closePopup(){var n;return null===(n=this.popoverButtonRef)||void 0===n||n.hidePopover(),Promise.resolve()}get host(){return getElement(this)}};KolSplitButton.style={default:defaultStyleCss};export{KolSplitButton as kol_split_button};
|
|
4
|
+
import{r as registerInstance,h,g as getElement}from"./index-Dva21o82.js";import{b as KolButtonWcTag,h as KolPopoverButtonWcTag}from"./component-names-Dy77vq43.js";import{t as translate}from"./i18n-BVaUp6qp.js";import{c as clsx}from"./clsx-COFh-Vc8.js";import{d as delegateClick,s as setClick}from"./element-click-BTxuJDNT.js";import{d as delegateFocus,s as setFocus}from"./element-focus-BKUtVrWY.js";import"./common-BqV6Zb30.js";import"./i18n-B2d_exHc.js";const defaultStyleCss='/* forward the rem function */\n/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type=\'checkbox\'], [type=\'radio\'], [type=\'range\']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don\'t want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n .hastooltip {\n z-index: 900 !important;\n }\n}\n@font-face {\n font-family: "kolicons";\n src: url("kolicons.eot?t=1775124354743"); /* IE9*/\n src: url("kolicons.eot?t=1775124354743#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1775124354743") format("woff2"), url("kolicons.woff?t=1775124354743") format("woff"), url("kolicons.ttf?t=1775124354743") format("truetype"), url("kolicons.svg?t=1775124354743#kolicons") format("svg"); /* iOS 4.1- */\n}\n@layer kol-component {\n [class^=kolicon-], [class*=" kolicon-"] {\n font-family: "kolicons";\n font-style: normal;\n font-weight: 400;\n line-height: 1em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n .kolicon-alert-error::before {\n content: "\\ea01";\n }\n .kolicon-alert-info::before {\n content: "\\ea02";\n }\n .kolicon-alert-success::before {\n content: "\\ea03";\n }\n .kolicon-alert-warning::before {\n content: "\\ea04";\n }\n .kolicon-check::before {\n content: "\\ea05";\n }\n .kolicon-chevron-double-left::before {\n content: "\\ea06";\n }\n .kolicon-chevron-double-right::before {\n content: "\\ea07";\n }\n .kolicon-chevron-down::before {\n content: "\\ea08";\n }\n .kolicon-chevron-left::before {\n content: "\\ea09";\n }\n .kolicon-chevron-right::before {\n content: "\\ea0a";\n }\n .kolicon-chevron-up::before {\n content: "\\ea0b";\n }\n .kolicon-cogwheel::before {\n content: "\\ea0c";\n }\n .kolicon-cross::before {\n content: "\\ea0d";\n }\n .kolicon-eye-closed::before {\n content: "\\ea0e";\n }\n .kolicon-eye::before {\n content: "\\ea0f";\n }\n .kolicon-house::before {\n content: "\\ea10";\n }\n .kolicon-kolibri::before {\n content: "\\ea11";\n }\n .kolicon-link-external::before {\n content: "\\ea12";\n }\n .kolicon-link::before {\n content: "\\ea13";\n }\n .kolicon-minus::before {\n content: "\\ea14";\n }\n .kolicon-plus::before {\n content: "\\ea15";\n }\n .kolicon-settings::before {\n content: "\\ea16";\n }\n .kolicon-sort-asc::before {\n content: "\\ea17";\n }\n .kolicon-sort-desc::before {\n content: "\\ea18";\n }\n .kolicon-sort-neutral::before {\n content: "\\ea19";\n }\n .kolicon-up::before {\n content: "\\ea1a";\n }\n .kolicon-version::before {\n content: "\\ea1b";\n }\n}\n@layer kol-component {\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-popover-button__popover {\n margin: 0;\n padding: 0;\n border: 0;\n }\n .kol-popover-button--inline .kol-popover-button__button {\n display: inline;\n }\n .kol-popover {\n opacity: 0;\n transition: 0.2s ease-out opacity;\n }\n .kol-popover-button--open + .kol-popover {\n opacity: 1;\n }\n .kol-split-button {\n display: flex;\n position: relative;\n width: 100%;\n }\n .kol-split-button__root {\n display: flex;\n position: relative;\n width: 100%;\n align-items: stretch;\n }\n .kol-split-button__button {\n min-width: 0;\n flex: 1 1 auto;\n text-align: left;\n }\n}',KolSplitButton=class{constructor(n){registerInstance(this,n),this.setPrimaryButtonWcRef=n=>{this.primaryButtonWcRef=n},this.setPopoverButtonRef=n=>{this.popoverButtonRef=n},this.clickButtonHandler={onClick:n=>{var e,t;n.stopPropagation(),"function"==typeof(null===(e=this._on)||void 0===e?void 0:e.onClick)&&(null===(t=this._on)||void 0===t||t.onClick(n,this._value))}},this._disabled=!1,this._hideLabel=!1,this._tooltipAlign="top",this._type="button",this._variant="normal",this.state={_show:!1}}async getValue(){return this._value}async focus(){return delegateFocus(this.host,()=>setFocus(this.primaryButtonWcRef))}async click(){return delegateClick(this.host,async()=>setClick(this.primaryButtonWcRef))}render(){return h("div",{key:"a100f40b72f074e270d6299ea75c9ce330e211a4",class:"kol-split-button"},h("div",{key:"3cb78b0a115b0e22c96e0520e443f92e264ec958",class:"kol-split-button__root"},h(KolButtonWcTag,{key:"d34c2a68c9b2bd3206568dc2edd71d4a3973eaa2",class:clsx("kol-split-button__button",{[this._variant]:"custom"!==this._variant,[this._customClass]:"custom"===this._variant&&"string"==typeof this._customClass&&this._customClass.length>0}),ref:this.setPrimaryButtonWcRef,_accessKey:this._accessKey,_ariaControls:this._ariaControls,_ariaDescription:this._ariaDescription,_ariaExpanded:this._ariaExpanded,_ariaSelected:this._ariaSelected,_customClass:this._customClass,_disabled:this._disabled,_icons:this._icons,_hideLabel:this._hideLabel,_label:this._label,_name:this._name,_on:this.clickButtonHandler,_shortKey:this._shortKey,_syncValueBySelector:this._syncValueBySelector,_tooltipAlign:this._tooltipAlign,_type:this._type,_value:this._value,_variant:this._variant}),h("div",{key:"65bf1c6850f239112a949b6d72c597f51cb74008",class:"kol-split-button__horizontal-line"}),h(KolPopoverButtonWcTag,{key:"530a76aaeb5588f644d7d4fd8a102dbab469866f",class:"kol-split-button__secondary-button",ref:this.setPopoverButtonRef,_disabled:this._disabled,_hideLabel:!0,_icons:"kolicon-chevron-down",_label:translate("kol-split-button-dropdown-label-open"),_popoverAlign:"bottom"},h("slot",{key:"abae13b1f8a6c3331fb09b54f4775dfacd0725d6"}))))}connectedCallback(){this.state=Object.assign(Object.assign({},this.state),{_show:!1})}async closePopup(){var n;return null===(n=this.popoverButtonRef)||void 0===n||n.hidePopover(),Promise.resolve()}get host(){return getElement(this)}};KolSplitButton.style={default:defaultStyleCss};export{KolSplitButton as kol_split_button};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{r as registerInstance,h,g as getElement}from"./index-
|
|
4
|
+
import{r as registerInstance,h,g as getElement}from"./index-Dva21o82.js";import{_ as __rest}from"./tslib.es6-CxX45GIN.js";import{p as KolHeadingTag,a as KolAlertWcTag,q as KolInputCheckboxTag,r as KolInputNumberTag,b as KolButtonWcTag,h as KolPopoverButtonWcTag}from"./component-names-Dy77vq43.js";import{t as translate}from"./i18n-BVaUp6qp.js";import{d as dispatchDomEvent,K as KolEvent}from"./events-DHTi_wtD.js";import"./common-BqV6Zb30.js";import"./i18n-B2d_exHc.js";const parseColumnWidth=e=>Number.isFinite(e)&&void 0!==e&&e>0?e:void 0,KolTableSettings=class{constructor(e){registerInstance(this,e),this.headerCells=[],this.editingHeaderCells=[],this.errorMessage=null,this.translateTableSettings=translate("kol-table-settings"),this.translateTableSettingsCancel=translate("kol-table-settings-cancel"),this.translateTableSettingsApply=translate("kol-table-settings-apply"),this.translateErrorAllInvisible=translate("kol-table-settings-error-all-invisible"),this.translateColumnNotHidable=translate("kol-table-settings-column-not-hidable"),this._horizontalHeaderCells=[]}handleHeaderCellsChange(e){this.headerCells=e.map(e=>[...e]),this.editingHeaderCells=e.map(e=>e.map(e=>Object.assign({},e)))}componentWillLoad(){this.handleHeaderCellsChange(this._horizontalHeaderCells)}getPrimaryRow(){var e;return null!==(e=this.editingHeaderCells[this.editingHeaderCells.length-1])&&void 0!==e?e:[]}updatePrimaryRow(e){this.editingHeaderCells=this.editingHeaderCells.map((t,a,l)=>a===l.length-1?e:t)}moveColumn(e,t){const a=[...this.getPrimaryRow()],l=a.findIndex(t=>t.key===e);if(-1===l)return;let s;if("up"===t){if(0===l)return;s=l-1}else{if(l===a.length-1)return;s=l+1}const[i]=a.splice(l,1);a.splice(s,0,i),this.updatePrimaryRow(a)}handleVisibilityChange(e,t){const a=this.getPrimaryRow().map(a=>a.key===e&&!1!==a.hidable?Object.assign(Object.assign({},a),{visible:Boolean(t)}):a);this.updatePrimaryRow(a)}handleWidthChange(e,t){const a=this.getPrimaryRow().map(a=>a.key===e&&!1!==a.resizable?Object.assign(Object.assign({},a),{width:Number(t)}):a);this.updatePrimaryRow(a)}handleCancel(){var e;this.editingHeaderCells=this.headerCells.map(e=>[...e]),this.errorMessage=null,null===(e=this.popoverRef)||void 0===e||e.hidePopover()}handleSubmit(e){var t;e.preventDefault();if(this.getPrimaryRow().some(e=>!1!==e.visible)){if(this.host){this.errorMessage=null,this.headerCells=this.editingHeaderCells.map(e=>e.map(e=>Object.assign({},e)));const e=this.editingHeaderCells.map(e=>e.map(e=>{const t=e,{hidable:a,resizable:l,sortable:s,visible:i,width:n}=t,o=__rest(t,["hidable","resizable","sortable","visible","width"]),r=Object.assign({},o);return void 0!==i&&(r.visible=i),void 0!==a&&(r.hidable=a),void 0!==s&&(r.sortable=s),void 0!==l&&(r.resizable=l),null!=n&&(r.width=n),r}));dispatchDomEvent(this.host,KolEvent.changeHeaderCells,e),null===(t=this.popoverRef)||void 0===t||t.hidePopover()}}else this.errorMessage=this.translateErrorAllInvisible}render(){const e=this.getPrimaryRow();return h(KolPopoverButtonWcTag,{key:"993380b087a8b7ec6da6463019d3b8c5f2e04861",ref:e=>this.popoverRef=e,class:"kol-table-settings",_icons:"kolicon-settings",_label:this.translateTableSettings,_popoverAlign:"top",_hideLabel:!0},h("div",{key:"0c779d71e0c6f8fd23c2f652fef733101462d017",class:"kol-table-settings__content"},h(KolHeadingTag,{key:"10c0e0af0335c51598bbbcf1db9f9d71d8b14e32",_label:this.translateTableSettings,_level:0}),this.errorMessage&&h(KolAlertWcTag,{key:"52a3e64ff21237ad64ea2e3e88b92c18dcd7dbc2",_type:"error",_label:this.errorMessage,_variant:"msg",class:"kol-table-settings__error-message"}),h("form",{key:"c378afa14bf0fd053e27743be5bbc57bf47d8f44",onSubmit:this.handleSubmit.bind(this)},h("div",{key:"6a17becba272d906f2114f3ea73e1f755ab83518",class:"kol-table-settings__columns-container"},h("div",{key:"0072e101abfbbcdae1f3632039194e9cb7a6c12a",class:"kol-table-settings__columns"},e.map((t,a)=>h("div",{key:t.key,class:"kol-table-settings__column"},h(KolInputCheckboxTag,{_checked:!1!==t.visible,_label:`${t.label}${!1===t.hidable?` (${this.translateColumnNotHidable})`:""}`,_value:!0,_hideLabel:!0,_disabled:!1===t.hidable,_on:{onInput:(e,a)=>{var l;return this.handleVisibilityChange(null!==(l=t.key)&&void 0!==l?l:"",a)}}}),h("span",{class:"kol-table-settings__column-label"},t.label),h(KolInputNumberTag,{_hideLabel:!0,_value:parseColumnWidth(t.width),_label:translate("kol-table-settings-column-width",{placeholders:{column:t.label}}),_min:1,_disabled:!1===t.resizable,_on:{onInput:(e,a)=>{var l;return this.handleWidthChange(null!==(l=t.key)&&void 0!==l?l:"",a)}}}),h(KolButtonWcTag,{_icons:"kolicon-chevron-up",_label:translate("kol-table-settings-move-up",{placeholders:{column:t.label}}),_hideLabel:!0,_variant:"ghost",_on:{onClick:()=>{var e;return this.moveColumn(null!==(e=t.key)&&void 0!==e?e:"","up")}},_disabled:!1===t.sortable||0===a,"data-testid":"table-settings-move-up"}),h(KolButtonWcTag,{_icons:"kolicon-chevron-down",_label:translate("kol-table-settings-move-down",{placeholders:{column:t.label}}),_hideLabel:!0,_variant:"ghost",_on:{onClick:()=>{var e;return this.moveColumn(null!==(e=t.key)&&void 0!==e?e:"","down")}},_disabled:!1===t.sortable||a===e.length-1,"data-testid":"table-settings-move-down"}))))),h("div",{key:"0e054bfa3e81b559fe0df26091cac6ff7fa2c953",class:"kol-table-settings__actions"},h(KolButtonWcTag,{key:"ea053c336bb5b8166e817d2710e1404c7674ffcc",_label:this.translateTableSettingsCancel,_variant:"secondary",_on:{onClick:()=>this.handleCancel()},"data-testid":"table-settings-cancel"}),h(KolButtonWcTag,{key:"f1ca01d987a725f8c6faf0bbd0020e7317bdf592",_label:this.translateTableSettingsApply,_variant:"primary",_type:"submit","data-testid":"table-settings-apply"})))))}get host(){return getElement(this)}static get watchers(){return{_horizontalHeaderCells:["handleHeaderCellsChange"]}}};export{KolTableSettings as kol_table_settings_wc};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{r as registerInstance,h,H as Host,g as getElement}from"./index-BPtT34o3.js";import{h as KolPaginationWcTag,l as KolTableStatelessWcTag}from"./component-names-pgL1e5No.js";import{t as translate}from"./i18n-CSCkYcOW.js";import{e as watchBoolean,b as watchValidator,s as setState,P as emptyStringByArrayHandler,p as parseJson,o as objectObjectHandler,k as devHint}from"./common-5ExJH6NU.js";import{v as validateTableData,a as validateTableDataFoot,b as validateFixedCols,c as validateHasSettingsMenu,d as validateTableSelection,e as validateTableStatefulCallbacks}from"./table-selection-Dp8qMfQK.js";import{v as validateLabel}from"./label-Cd37SRqu.js";import{C as Callback}from"./keyboard-DNd73LVa.js";import{K as KolEvent,d as dispatchDomEvent}from"./events-DHTi_wtD.js";import"./i18n-B2d_exHc.js";const validateAllowMultiSort=(n,t,e={})=>{watchBoolean(n,"_allowMultiSort",t,Object.assign({defaultValue:!1},e))},paginationPositionPropTypeOptions=["top","bottom","both"],validatePaginationPosition=(n,t)=>{watchValidator(n,"_paginationPosition",n=>"string"==typeof n&&paginationPositionPropTypeOptions.includes(n),new Set([`PaginationPositionPropType {${paginationPositionPropTypeOptions.join(", ")}`]),t,{defaultValue:"bottom"})},defaultStyleCss='@charset "UTF-8";\n/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/* forward the rem function */\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type=\'checkbox\'], [type=\'radio\'], [type=\'range\']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don\'t want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n .hastooltip {\n z-index: 900 !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@font-face {\n font-family: "kolicons";\n src: url("kolicons.eot?t=1774956515321"); /* IE9*/\n src: url("kolicons.eot?t=1774956515321#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1774956515321") format("woff2"), url("kolicons.woff?t=1774956515321") format("woff"), url("kolicons.ttf?t=1774956515321") format("truetype"), url("kolicons.svg?t=1774956515321#kolicons") format("svg"); /* iOS 4.1- */\n}\n@layer kol-component {\n [class^=kolicon-], [class*=" kolicon-"] {\n font-family: "kolicons";\n font-style: normal;\n font-weight: 400;\n line-height: 1em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n .kolicon-alert-error::before {\n content: "\\ea01";\n }\n .kolicon-alert-info::before {\n content: "\\ea02";\n }\n .kolicon-alert-success::before {\n content: "\\ea03";\n }\n .kolicon-alert-warning::before {\n content: "\\ea04";\n }\n .kolicon-check::before {\n content: "\\ea05";\n }\n .kolicon-chevron-double-left::before {\n content: "\\ea06";\n }\n .kolicon-chevron-double-right::before {\n content: "\\ea07";\n }\n .kolicon-chevron-down::before {\n content: "\\ea08";\n }\n .kolicon-chevron-left::before {\n content: "\\ea09";\n }\n .kolicon-chevron-right::before {\n content: "\\ea0a";\n }\n .kolicon-chevron-up::before {\n content: "\\ea0b";\n }\n .kolicon-cogwheel::before {\n content: "\\ea0c";\n }\n .kolicon-cross::before {\n content: "\\ea0d";\n }\n .kolicon-eye-closed::before {\n content: "\\ea0e";\n }\n .kolicon-eye::before {\n content: "\\ea0f";\n }\n .kolicon-house::before {\n content: "\\ea10";\n }\n .kolicon-kolibri::before {\n content: "\\ea11";\n }\n .kolicon-link-external::before {\n content: "\\ea12";\n }\n .kolicon-link::before {\n content: "\\ea13";\n }\n .kolicon-minus::before {\n content: "\\ea14";\n }\n .kolicon-plus::before {\n content: "\\ea15";\n }\n .kolicon-settings::before {\n content: "\\ea16";\n }\n .kolicon-sort-asc::before {\n content: "\\ea17";\n }\n .kolicon-sort-desc::before {\n content: "\\ea18";\n }\n .kolicon-sort-neutral::before {\n content: "\\ea19";\n }\n .kolicon-up::before {\n content: "\\ea1a";\n }\n .kolicon-version::before {\n content: "\\ea1b";\n }\n}\n@layer kol-component {\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-alert .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-alert :host {\n display: inline-block;\n }\n .kol-alert .kol-button {\n display: flex;\n min-height: var(--a11y-min-size);\n font-style: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n text-decoration-line: none;\n }\n .kol-alert .kol-button::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: "";\n }\n .kol-alert .kol-button__text {\n flex: 1 0 100%;\n }\n .kol-alert {\n display: grid;\n }\n .kol-alert__container {\n display: flex;\n place-items: center;\n }\n .kol-alert__container-content {\n flex-grow: 1;\n }\n .kol-alert__closer {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n :host {\n display: inline-block;\n }\n .kol-button {\n display: flex;\n min-height: var(--a11y-min-size);\n font-style: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n text-decoration-line: none;\n }\n .kol-button::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: "";\n }\n .kol-button__text {\n flex: 1 0 100%;\n }\n .kol-popover-button__popover {\n margin: 0;\n padding: 0;\n border: 0;\n }\n .kol-popover-button--inline .kol-popover-button__button {\n display: inline;\n }\n .kol-popover {\n opacity: 0;\n transition: 0.2s ease-out opacity;\n }\n .kol-popover-button--open + .kol-popover {\n opacity: 1;\n }\n .kol-table-settings {\n background: #fff;\n position: absolute;\n top: 0;\n right: 0;\n z-index: 1;\n }\n .kol-table-settings .kol-popover-button__popover {\n background: #fff;\n box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n border-radius: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n border: 1px solid #d1d5db;\n }\n .kol-table-settings__columns-container {\n max-height: calc(200 * 1rem / var(--kolibri-root-font-size, 16));\n overflow: auto;\n }\n .kol-table-settings__columns {\n display: grid;\n align-items: center;\n grid-auto-rows: min-content;\n grid-template-columns: min-content minmax(max-content, 1fr) calc(140 * 1rem / var(--kolibri-root-font-size, 16)) auto auto;\n }\n .kol-table-settings__column {\n display: contents;\n }\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-table {\n --kol-table-selection-col-width: var(--a11y-min-size);\n display: block;\n position: relative;\n max-width: 100%;\n }\n .kol-table:has(.kol-table__focus-element:focus) .kol-table__scroll-container {\n /* @see https://remysharp.com/til/css/focus-ring-default-styles */\n outline: 5px auto Highlight;\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: 2px;\n }\n .kol-table__scroll-container {\n overflow-x: auto;\n overflow-y: hidden;\n }\n .kol-table__table {\n table-layout: fixed;\n }\n .kol-table__caption {\n min-height: var(--a11y-min-size);\n text-align: start;\n }\n .kol-table__sort-button .kol-button {\n color: inherit;\n }\n .kol-table__sort {\n display: inline-flex;\n align-items: center;\n }\n .kol-table__sort-order {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n }\n .kol-table__body {\n text-align: left;\n }\n .kol-table__body .kol-button__text {\n justify-items: start;\n }\n .kol-table__cell--align-left {\n text-align: left;\n }\n .kol-table__cell--align-left .kol-button__text {\n align-items: start;\n }\n .kol-table__cell--align-center {\n text-align: center;\n }\n .kol-table__cell--align-center .kol-button__text {\n align-items: center;\n }\n .kol-table__cell--align-right {\n text-align: right;\n }\n .kol-table__cell--align-right .kol-button__text {\n align-items: end;\n }\n .kol-table__cell--selection {\n background-color: white;\n position: sticky !important;\n left: 0;\n z-index: 2;\n width: var(--kol-table-selection-col-width, auto);\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n white-space: nowrap;\n }\n .kol-table__cell--actions {\n white-space: nowrap;\n }\n .kol-table__cell--actions .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-table__cell--actions :host {\n display: inline-block;\n }\n .kol-table__cell--actions .kol-button {\n display: flex;\n min-height: var(--a11y-min-size);\n font-style: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n text-decoration-line: none;\n }\n .kol-table__cell--actions .kol-button::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: "";\n }\n .kol-table__cell--actions .kol-button__text {\n flex: 1 0 100%;\n }\n .kol-table__cell--actions .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-table__cell--actions :host {\n display: inline-block;\n }\n .kol-table__cell--actions .kol-link {\n display: inline-flex;\n max-width: fit-content;\n align-items: baseline;\n place-items: center;\n text-align: left;\n text-decoration-line: none;\n }\n .kol-table__cell--actions .kol-link--standalone {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n align-items: stretch;\n }\n .kol-table__cell--actions .kol-link--standalone .kol-link__text {\n display: inline-flex;\n flex: 1 1 100%;\n place-items: center;\n }\n .kol-table__cell--actions .kol-link .kol-span__label {\n text-decoration-line: underline;\n }\n .kol-table__cell--actions .kol-link:focus:not([aria-disabled], [disabled]) .kol-span__label, .kol-table__cell--actions .kol-link:hover:not([aria-disabled], [disabled]) .kol-span__label {\n text-decoration-thickness: 0.2em;\n }\n .kol-table__cell--actions .kol-link__icon {\n display: inline-flex;\n }\n .kol-table__cell--sticky-left, .kol-table__cell--sticky-right {\n background-color: white;\n position: sticky !important;\n z-index: 1;\n }\n .kol-table__cell--sticky-left:nth-last-child(1 of .kol-table__cell--sticky-left) {\n border-right: 2px solid black;\n }\n .kol-table__cell--sticky-right:nth-child(1 of .kol-table__cell--sticky-left) {\n border-left: 2px solid black;\n }\n .kol-table__cell-actions {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: center;\n }\n .kol-table__spacer {\n display: none;\n }\n .kol-table__selection {\n position: relative;\n }\n .kol-table__selection-label {\n display: flex;\n position: relative;\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n align-items: center;\n justify-content: center;\n cursor: pointer;\n }\n .kol-table__selection--disabled {\n cursor: not-allowed;\n }\n .kol-table__selection-icon {\n display: block;\n position: absolute;\n inset: auto;\n z-index: 1;\n }\n .kol-table__selection-input {\n border-style: solid;\n margin: 0;\n appearance: none;\n cursor: pointer;\n }\n .kol-table__selection-input:disabled {\n cursor: not-allowed;\n }\n .kol-table__selection-input:before {\n content: "";\n }\n .kol-table__selection-input--checkbox {\n background-color: rgb(255, 255, 255);\n display: flex;\n position: relative;\n min-width: calc(var(--a11y-min-size) / 2);\n min-height: calc(var(--a11y-min-size) / 2);\n border-width: 2px;\n align-items: center;\n justify-content: center;\n line-height: 1.5;\n }\n .kol-table__selection-input--radio {\n border-radius: 100%;\n display: flex;\n width: 1.5em;\n min-width: 1.5em;\n height: 1.5em;\n min-height: 1.5em;\n padding: 0;\n border-width: 2px;\n }\n .kol-table__selection-input--radio:before {\n border-radius: 100%;\n width: 0.75em;\n height: 0.75em;\n margin: auto;\n }\n .kol-table__selection-input--radio:checked:before {\n background-color: #000;\n }\n @media (forced-colors: active) {\n .kol-table__selection-input--radio:checked:before {\n /* Give it a visible background in forced colors mode */\n background-color: selectedItem !important;\n }\n }\n .kol-alert .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-alert :host {\n display: inline-block;\n }\n .kol-alert .kol-button {\n display: flex;\n min-height: var(--a11y-min-size);\n font-style: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n text-decoration-line: none;\n }\n .kol-alert .kol-button::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: "";\n }\n .kol-alert .kol-button__text {\n flex: 1 0 100%;\n }\n .kol-alert {\n display: grid;\n }\n .kol-alert__container {\n display: flex;\n place-items: center;\n }\n .kol-alert__container-content {\n flex-grow: 1;\n }\n .kol-alert__closer {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-form-field {\n display: grid;\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field__label-text {\n flex-flow: row;\n align-items: flex-start;\n justify-content: flex-start;\n }\n .kol-form-field--disabled .kol-form-field__label {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__label-text:not(:has(> [name]))::after,\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\n content: "*"/"";\n }\n .kol-form-field--disabled .kol-form-field__hint {\n opacity: 0.5;\n }\n .kol-input-container {\n background-color: transparent;\n display: grid;\n width: 100%;\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n align-items: center;\n grid-template-columns: 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start) {\n grid-template-columns: auto 1fr auto;\n }\n .kol-input-container__container {\n position: relative;\n }\n .kol-input-container__adornment {\n display: flex;\n align-items: center;\n }\n .kol-input-container__adornment .kol-icon {\n display: grid;\n min-height: var(--a11y-min-size);\n place-items: center;\n }\n .kol-select {\n background-color: transparent;\n width: 100%;\n }\n .kol-select:not(:disabled) {\n cursor: pointer;\n }\n .kol-select:not([multiple], [size]) {\n height: 2.75em;\n }\n .kol-select:focus {\n outline: none;\n }\n .kol-select__option:checked::before {\n content: "✓ ";\n }\n .kol-select {\n /* needed hack for vertical alignment */\n }\n .kol-select[multiple] option {\n padding: calc((var(--a11y-min-size) - 16 * 1rem / var(--kolibri-root-font-size, 16)) / 2) 0.5em;\n }\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-pagination {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: center;\n container: paging/inline-size;\n }\n .kol-pagination__navigation-list {\n display: inline-flex;\n margin: 0;\n padding: 0;\n flex-wrap: wrap;\n align-items: center;\n list-style: none;\n }\n .kol-pagination__separator:before {\n content: "•••";\n }\n .kol-pagination__page-size-select .kol-form-field-select {\n align-items: center;\n grid-template-columns: 1fr max-content;\n }\n @container paging (width < 600px) {\n .kol-pagination:has(.kol-pagination__button--first) li:has(.kol-pagination__button--numbers),\n .kol-pagination:has(.kol-pagination__button--first) li:has(.kol-pagination__separator) {\n display: none;\n }\n }\n}',PAGINATION_OPTIONS=[10,20,50,100],paginationValidator=n=>!0===n||""===n||"object"==typeof n&&null!==n,KolTableStateful=class{constructor(n){registerInstance(this,n),this.catchRef=n=>{this.tableWcRef=n},this.sortData=[],this.showPagination=!1,this.pageStartSlice=0,this.pageEndSlice=10,this.disableSort=!1,this._paginationPosition="bottom",this.state={_allowMultiSort:!1,_fixedCols:[0,0],_data:[],_dataFoot:[],_headers:{horizontal:[],vertical:[]},_label:"",_pagination:{_page:1,_pageSize:10,_max:0},_sortedData:[],_paginationPosition:"bottom",_hasSettingsMenu:!1},this.handlePagination={onClick:(n,t)=>{var e;"function"==typeof(null===(e=this.state._pagination._on)||void 0===e?void 0:e.onClick)&&this.state._pagination._on.onClick(n,t),setState(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_page:t}))},onChangePage:(n,t)=>{var e;"function"==typeof(null===(e=this.state._pagination._on)||void 0===e?void 0:e.onChangePage)&&this.state._pagination._on.onChangePage(n,t),setState(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_page:t}))},onChangePageSize:(n,t)=>{var e;"function"==typeof(null===(e=this.state._pagination._on)||void 0===e?void 0:e.onChangePageSize)&&this.state._pagination._on.onChangePageSize(n,t),setState(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_pageSize:t})),setState(this,"_pageSize",t)}},this.onSelectionChange=n=>{n.stopPropagation()},this.updateSortedData=()=>{if(this.disableSort)return void setState(this,"_sortedData",this.state._data);const n=[...this.state._data];this.sortData.length>0&&n.sort((n,t)=>{for(let e=0;e<this.sortData.length;e++){const i=this.sortData[e],o=i.compareFn(n,t,i.direction);if(0!==o)return"ASC"===i.direction?o:-o}return 0}),setState(this,"_sortedData",n)}}validateAllowMultiSort(n){validateAllowMultiSort(this,n,{defaultValue:!1})}validateData(n){validateTableData(this,n,{afterPatch:()=>{setTimeout(this.updateSortedData)}})}validateDataFoot(n){validateTableDataFoot(this,n,{afterPatch:()=>{setTimeout(this.updateSortedData)}})}validateFixedCols(n){validateFixedCols(this,n)}validatePaginationPosition(n){validatePaginationPosition(this,n)}validateHasSettingsMenu(n){validateHasSettingsMenu(this,n)}changeCellSort(n){var t;if(void 0===n.type||"default"===n.type){if("function"!=typeof n.compareFn)return;this.state._allowMultiSort||n.key===(null===(t=this.sortData[0])||void 0===t?void 0:t.key)||(this.sortData=[]);const e=this.sortData.findIndex(t=>t.key===n.key);if(e>=0){const n=this.sortData[e];switch(n.direction){case"ASC":n.direction="DESC";break;case"DESC":this.sortData.splice(e,1);break;default:n.direction="ASC"}}else n.key&&this.sortData.push({label:n.label,key:n.key,compareFn:n.compareFn,direction:"ASC"});this.updateSortedData()}}validateHeaders(n){emptyStringByArrayHandler(n,()=>{objectObjectHandler(n,()=>{try{n=parseJson(n)}catch(n){}watchValidator(this,"_headers",n=>"object"==typeof n&&null!==n,new Set(["KoliBriTableHeaders"]),n,{hooks:{beforePatch:n=>{var t,e,i,o;const a=n=>{let t=!1;this.sortData=[],n.forEach(n=>{if(void 0!==n.type&&"default"!==n.type)return;if("function"==typeof n.compareFn&&!n.key)return void devHint("[KolTableStateful] A sortable column requires the 'key' property.");const e=n.key;if(!e)return;const i=n.sortDirection;"ASC"!==i&&"DESC"!==i||"function"==typeof n.compareFn&&((this.state._allowMultiSort||0===this.sortData.length)&&this.sortData.push({label:n.label,key:e,compareFn:n.compareFn,direction:i}),t=!0)}),t&&setTimeout(()=>this.updateSortedData())},l=n;null===(t=l.horizontal)||void 0===t||t.forEach(a),null===(e=l.vertical)||void 0===e||e.forEach(a),l.horizontal&&l.vertical&&(null===(i=l.horizontal)||void 0===i?void 0:i.length)>0&&(null===(o=l.vertical)||void 0===o?void 0:o.length)>0&&(this.disableSort=!0,devHint("Table: You can not sort the table data, if horizontal and vertical headers are defined at the same time. (https://github.com/public-ui/kolibri/issues/2372)"))}}})})})}validateLabel(n){validateLabel(this,n,{required:!0})}validateSelection(n){validateTableSelection(this,n)}validateOn(n){validateTableStatefulCallbacks(this,n)}validatePagination(n){try{n=parseJson(n)}catch(n){}this.showPagination=paginationValidator(n),watchValidator(this,"_pagination",paginationValidator,new Set(["boolean","KoliBriTablePagination"]),n,{defaultValue:{_page:1,_pageSize:10,_max:0}})}componentDidLoad(){var n;null===(n=this.tableWcRef)||void 0===n||n.addEventListener(KolEvent.selectionChange,this.onSelectionChange)}disconnectedCallback(){var n;null===(n=this.tableWcRef)||void 0===n||n.removeEventListener(KolEvent.selectionChange,this.onSelectionChange)}componentWillLoad(){this.validateAllowMultiSort(this._allowMultiSort),this.validateData(this._data),this.validateDataFoot(this._dataFoot),this.validateFixedCols(this._fixedCols),this.validateHeaders(this._headers),this.validateLabel(this._label),this.validateOn(this._on),this.validatePagination(this._pagination),this.validatePaginationPosition(this._paginationPosition),this.validateSelection(this._selection),this.validateHasSettingsMenu(this._hasSettingsMenu)}selectDisplayedData(n,t,e){return"number"==typeof t&&t>0&&"number"==typeof e&&e>0?(this.pageStartSlice=t*(e-1),this.pageEndSlice=t*e>n.length?n.length:t*e,n.slice(this.pageStartSlice,this.pageEndSlice)):(this.pageStartSlice=0,this.pageEndSlice=n.length,n)}renderPagination(n){const t=translate("kol-table-pagination-label",{placeholders:{label:`${this.state._label} (${translate(`kol-pagination-position-${n}`)})`}});return h("div",{class:`kol-table-stateful__pagination kol-table-stateful__pagination--${this.state._paginationPosition}`},h("div",{class:"kol-table-stateful__pagination-wrapper"},h(KolPaginationWcTag,{_boundaryCount:this.state._pagination._boundaryCount,_customClass:this.state._pagination._customClass,_hasButtons:this.state._pagination._hasButtons,_on:this.handlePagination,_page:this.state._pagination._page,_pageSize:this.state._pagination._pageSize,_pageSizeOptions:this.state._pagination._pageSizeOptions||PAGINATION_OPTIONS,_siblingCount:this.state._pagination._siblingCount,_tooltipAlign:"bottom",_max:this.state._pagination._max||this.state._pagination._max||this.state._data.length,_label:t})))}getHeaderCellSortState(n){if((void 0===n.type||"default"===n.type)&&!this.disableSort&&"function"==typeof n.compareFn){if(n.key){const t=this.sortData.find(t=>t.key===n.key);if(null==t?void 0:t.direction)return t.direction}return"NOS"}}getHeaderCellSortOrder(n){if((void 0===n.type||"default"===n.type)&&!this.disableSort&&this.state._allowMultiSort&&"function"==typeof n.compareFn&&n.key){const t=this.sortData.findIndex(t=>t.key===n.key);if(t>=0)return t+1}}handleSort({key:n}){const t=[...(this.state._headers.horizontal||[]).flat(),...(this.state._headers.vertical||[]).flat()].find(t=>t.key===n);t&&this.changeCellSort(t)}getSelectedData(n){var t;const e=this.state._selection;if(e){const i=null!==(t=e.keyPropertyName)&&void 0!==t?t:"id",o=new Set(n.map(String)),a=this.state._sortedData.filter(n=>o.has(String(n[i])));if(i)return a}return null}handleSelectionChange(n,t){var e;const i=this.state._selection;i&&(this.state=Object.assign(Object.assign({},this.state),{_selection:Object.assign(Object.assign({},i),{selectedKeys:t})}));const o=this.getSelectedData(t);"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e[Callback.onSelectionChange])&&this.state._on[Callback.onSelectionChange](n,o),this.host&&dispatchDomEvent(this.host,KolEvent.selectionChange,o)}async getSelection(){var n;const t=(null===(n=this.state._selection)||void 0===n?void 0:n.selectedKeys)||[];return this.getSelectedData(t)}render(){var n,t,e,i,o,a;const l=this.selectDisplayedData(this.state._sortedData,this.showPagination?null!==(t=null===(n=this.state._pagination)||void 0===n?void 0:n._pageSize)&&void 0!==t?t:10:this.state._sortedData.length,this.state._pagination._page||1),s="top"===this._paginationPosition||"both"===this._paginationPosition?this.renderPagination("top"):null,r="bottom"===this._paginationPosition||"both"===this._paginationPosition?this.renderPagination("bottom"):null,c={horizontal:null!==(i=null===(e=this.state._headers.horizontal)||void 0===e?void 0:e.map(n=>n.map(n=>Object.assign(Object.assign({},n),{sortDirection:this.getHeaderCellSortState(n),sortOrder:this.getHeaderCellSortOrder(n)}))))&&void 0!==i?i:[],vertical:null!==(a=null===(o=this.state._headers.vertical)||void 0===o?void 0:o.map(n=>n.map(n=>Object.assign(Object.assign({},n),{sortDirection:this.getHeaderCellSortState(n),sortOrder:this.getHeaderCellSortOrder(n)}))))&&void 0!==a?a:[]};return h(Host,{key:"7dcd4d4e002669068148b20ffde6ba2949164944",class:"kol-table-stateful"},this.pageEndSlice>0&&this.showPagination&&s,h(KolTableStatelessWcTag,{key:"ed25abae3cac683a7e4b3971f05f81ee4ff3fe73",ref:this.catchRef,_data:l,_fixedCols:this._fixedCols,_headerCells:c,_label:this.state._label,_dataFoot:this.state._dataFoot,_on:{onSort:(n,t)=>{this.handleSort(t)},onSelectionChange:(n,t)=>{this.handleSelectionChange(n,t)}},_selection:this.state._selection,_hasSettingsMenu:this.state._hasSettingsMenu}),this.pageEndSlice>0&&this.showPagination&&r)}get host(){return getElement(this)}static get watchers(){return{_allowMultiSort:["validateAllowMultiSort"],_data:["validateData"],_dataFoot:["validateDataFoot"],_fixedCols:["validateFixedCols"],_paginationPosition:["validatePaginationPosition"],_hasSettingsMenu:["validateHasSettingsMenu"],_headers:["validateHeaders"],_label:["validateLabel"],_selection:["validateSelection"],_on:["validateOn"],_pagination:["validatePagination"]}}};KolTableStateful.style={default:defaultStyleCss};export{KolTableStateful as kol_table_stateful};
|
|
4
|
+
import{r as registerInstance,h,H as Host,g as getElement}from"./index-Dva21o82.js";import{g as KolPaginationWcTag,k as KolTableStatelessWcTag}from"./component-names-Dy77vq43.js";import{t as translate}from"./i18n-BVaUp6qp.js";import{e as watchBoolean,b as watchValidator,s as setState,P as emptyStringByArrayHandler,p as parseJson,o as objectObjectHandler,k as devHint}from"./common-BqV6Zb30.js";import{v as validateTableData,a as validateTableDataFoot,b as validateFixedCols,c as validateHasSettingsMenu,d as validateTableSelection,e as validateTableStatefulCallbacks}from"./table-selection-CXJmsMfX.js";import{v as validateLabel}from"./label-vxVEH2gH.js";import{C as Callback}from"./keyboard-DNd73LVa.js";import{K as KolEvent,d as dispatchDomEvent}from"./events-DHTi_wtD.js";import"./i18n-B2d_exHc.js";const validateAllowMultiSort=(n,t,e={})=>{watchBoolean(n,"_allowMultiSort",t,Object.assign({defaultValue:!1},e))},paginationPositionPropTypeOptions=["top","bottom","both"],validatePaginationPosition=(n,t)=>{watchValidator(n,"_paginationPosition",n=>"string"==typeof n&&paginationPositionPropTypeOptions.includes(n),new Set([`PaginationPositionPropType {${paginationPositionPropTypeOptions.join(", ")}`]),t,{defaultValue:"bottom"})},defaultStyleCss='@charset "UTF-8";\n/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/* forward the rem function */\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type=\'checkbox\'], [type=\'radio\'], [type=\'range\']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don\'t want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n .hastooltip {\n z-index: 900 !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@font-face {\n font-family: "kolicons";\n src: url("kolicons.eot?t=1775124354743"); /* IE9*/\n src: url("kolicons.eot?t=1775124354743#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1775124354743") format("woff2"), url("kolicons.woff?t=1775124354743") format("woff"), url("kolicons.ttf?t=1775124354743") format("truetype"), url("kolicons.svg?t=1775124354743#kolicons") format("svg"); /* iOS 4.1- */\n}\n@layer kol-component {\n [class^=kolicon-], [class*=" kolicon-"] {\n font-family: "kolicons";\n font-style: normal;\n font-weight: 400;\n line-height: 1em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n .kolicon-alert-error::before {\n content: "\\ea01";\n }\n .kolicon-alert-info::before {\n content: "\\ea02";\n }\n .kolicon-alert-success::before {\n content: "\\ea03";\n }\n .kolicon-alert-warning::before {\n content: "\\ea04";\n }\n .kolicon-check::before {\n content: "\\ea05";\n }\n .kolicon-chevron-double-left::before {\n content: "\\ea06";\n }\n .kolicon-chevron-double-right::before {\n content: "\\ea07";\n }\n .kolicon-chevron-down::before {\n content: "\\ea08";\n }\n .kolicon-chevron-left::before {\n content: "\\ea09";\n }\n .kolicon-chevron-right::before {\n content: "\\ea0a";\n }\n .kolicon-chevron-up::before {\n content: "\\ea0b";\n }\n .kolicon-cogwheel::before {\n content: "\\ea0c";\n }\n .kolicon-cross::before {\n content: "\\ea0d";\n }\n .kolicon-eye-closed::before {\n content: "\\ea0e";\n }\n .kolicon-eye::before {\n content: "\\ea0f";\n }\n .kolicon-house::before {\n content: "\\ea10";\n }\n .kolicon-kolibri::before {\n content: "\\ea11";\n }\n .kolicon-link-external::before {\n content: "\\ea12";\n }\n .kolicon-link::before {\n content: "\\ea13";\n }\n .kolicon-minus::before {\n content: "\\ea14";\n }\n .kolicon-plus::before {\n content: "\\ea15";\n }\n .kolicon-settings::before {\n content: "\\ea16";\n }\n .kolicon-sort-asc::before {\n content: "\\ea17";\n }\n .kolicon-sort-desc::before {\n content: "\\ea18";\n }\n .kolicon-sort-neutral::before {\n content: "\\ea19";\n }\n .kolicon-up::before {\n content: "\\ea1a";\n }\n .kolicon-version::before {\n content: "\\ea1b";\n }\n}\n@layer kol-component {\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-alert .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-alert :host {\n display: inline-block;\n }\n .kol-alert .kol-button {\n display: flex;\n min-height: var(--a11y-min-size);\n font-style: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n text-decoration-line: none;\n }\n .kol-alert .kol-button::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: "";\n }\n .kol-alert .kol-button__text {\n flex: 1 0 100%;\n }\n .kol-alert {\n display: grid;\n }\n .kol-alert__container {\n display: flex;\n place-items: center;\n }\n .kol-alert__container-content {\n flex-grow: 1;\n }\n .kol-alert__closer {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n :host {\n display: inline-block;\n }\n .kol-button {\n display: flex;\n min-height: var(--a11y-min-size);\n font-style: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n text-decoration-line: none;\n }\n .kol-button::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: "";\n }\n .kol-button__text {\n flex: 1 0 100%;\n }\n .kol-popover-button__popover {\n margin: 0;\n padding: 0;\n border: 0;\n }\n .kol-popover-button--inline .kol-popover-button__button {\n display: inline;\n }\n .kol-popover {\n opacity: 0;\n transition: 0.2s ease-out opacity;\n }\n .kol-popover-button--open + .kol-popover {\n opacity: 1;\n }\n .kol-table-settings {\n background: #fff;\n position: absolute;\n top: 0;\n right: 0;\n z-index: 1;\n }\n .kol-table-settings .kol-popover-button__popover {\n background: #fff;\n box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n border-radius: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n border: 1px solid #d1d5db;\n }\n .kol-table-settings__columns-container {\n max-height: calc(200 * 1rem / var(--kolibri-root-font-size, 16));\n overflow: auto;\n }\n .kol-table-settings__columns {\n display: grid;\n align-items: center;\n grid-auto-rows: min-content;\n grid-template-columns: min-content minmax(max-content, 1fr) calc(140 * 1rem / var(--kolibri-root-font-size, 16)) auto auto;\n }\n .kol-table-settings__column {\n display: contents;\n }\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-table {\n --kol-table-selection-col-width: var(--a11y-min-size);\n display: block;\n position: relative;\n max-width: 100%;\n }\n .kol-table:has(.kol-table__focus-element:focus) .kol-table__scroll-container {\n /* @see https://remysharp.com/til/css/focus-ring-default-styles */\n outline: 5px auto Highlight;\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: 2px;\n }\n .kol-table__scroll-container {\n overflow-x: auto;\n overflow-y: hidden;\n }\n .kol-table__table {\n table-layout: fixed;\n }\n .kol-table__caption {\n min-height: var(--a11y-min-size);\n text-align: start;\n }\n .kol-table__sort-button .kol-button {\n color: inherit;\n }\n .kol-table__sort {\n display: inline-flex;\n align-items: center;\n }\n .kol-table__sort-order {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n }\n .kol-table__body {\n text-align: left;\n }\n .kol-table__body .kol-button__text {\n justify-items: start;\n }\n .kol-table__cell--align-left {\n text-align: left;\n }\n .kol-table__cell--align-left .kol-button__text {\n align-items: start;\n }\n .kol-table__cell--align-center {\n text-align: center;\n }\n .kol-table__cell--align-center .kol-button__text {\n align-items: center;\n }\n .kol-table__cell--align-right {\n text-align: right;\n }\n .kol-table__cell--align-right .kol-button__text {\n align-items: end;\n }\n .kol-table__cell--selection {\n background-color: white;\n position: sticky !important;\n left: 0;\n z-index: 2;\n width: var(--kol-table-selection-col-width, auto);\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n white-space: nowrap;\n }\n .kol-table__cell--actions {\n white-space: nowrap;\n }\n .kol-table__cell--actions .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-table__cell--actions :host {\n display: inline-block;\n }\n .kol-table__cell--actions .kol-button {\n display: flex;\n min-height: var(--a11y-min-size);\n font-style: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n text-decoration-line: none;\n }\n .kol-table__cell--actions .kol-button::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: "";\n }\n .kol-table__cell--actions .kol-button__text {\n flex: 1 0 100%;\n }\n .kol-table__cell--actions .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-table__cell--actions :host {\n display: inline-block;\n }\n .kol-table__cell--actions .kol-link {\n display: inline-flex;\n max-width: fit-content;\n align-items: baseline;\n place-items: center;\n text-align: left;\n text-decoration-line: none;\n }\n .kol-table__cell--actions .kol-link--standalone {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n align-items: stretch;\n }\n .kol-table__cell--actions .kol-link--standalone .kol-link__text {\n display: inline-flex;\n flex: 1 1 100%;\n place-items: center;\n }\n .kol-table__cell--actions .kol-link .kol-span__label {\n text-decoration-line: underline;\n }\n .kol-table__cell--actions .kol-link:focus:not([aria-disabled], [disabled]) .kol-span__label, .kol-table__cell--actions .kol-link:hover:not([aria-disabled], [disabled]) .kol-span__label {\n text-decoration-thickness: 0.2em;\n }\n .kol-table__cell--actions .kol-link__icon {\n display: inline-flex;\n }\n .kol-table__cell--sticky-left, .kol-table__cell--sticky-right {\n background-color: white;\n position: sticky !important;\n z-index: 1;\n }\n .kol-table__cell--sticky-left:nth-last-child(1 of .kol-table__cell--sticky-left) {\n border-right: 2px solid black;\n }\n .kol-table__cell--sticky-right:nth-child(1 of .kol-table__cell--sticky-left) {\n border-left: 2px solid black;\n }\n .kol-table__cell-actions {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: center;\n }\n .kol-table__spacer {\n display: none;\n }\n .kol-table__selection {\n position: relative;\n }\n .kol-table__selection-label {\n display: flex;\n position: relative;\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n align-items: center;\n justify-content: center;\n cursor: pointer;\n }\n .kol-table__selection--disabled {\n cursor: not-allowed;\n }\n .kol-table__selection-icon {\n display: block;\n position: absolute;\n inset: auto;\n z-index: 1;\n }\n .kol-table__selection-input {\n border-style: solid;\n margin: 0;\n appearance: none;\n cursor: pointer;\n }\n .kol-table__selection-input:disabled {\n cursor: not-allowed;\n }\n .kol-table__selection-input:before {\n content: "";\n }\n .kol-table__selection-input--checkbox {\n background-color: rgb(255, 255, 255);\n display: flex;\n position: relative;\n min-width: calc(var(--a11y-min-size) / 2);\n min-height: calc(var(--a11y-min-size) / 2);\n border-width: 2px;\n align-items: center;\n justify-content: center;\n line-height: 1.5;\n }\n .kol-table__selection-input--radio {\n border-radius: 100%;\n display: flex;\n width: 1.5em;\n min-width: 1.5em;\n height: 1.5em;\n min-height: 1.5em;\n padding: 0;\n border-width: 2px;\n }\n .kol-table__selection-input--radio:before {\n border-radius: 100%;\n width: 0.75em;\n height: 0.75em;\n margin: auto;\n }\n .kol-table__selection-input--radio:checked:before {\n background-color: #000;\n }\n @media (forced-colors: active) {\n .kol-table__selection-input--radio:checked:before {\n /* Give it a visible background in forced colors mode */\n background-color: selectedItem !important;\n }\n }\n .kol-alert .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-alert :host {\n display: inline-block;\n }\n .kol-alert .kol-button {\n display: flex;\n min-height: var(--a11y-min-size);\n font-style: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n text-decoration-line: none;\n }\n .kol-alert .kol-button::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: "";\n }\n .kol-alert .kol-button__text {\n flex: 1 0 100%;\n }\n .kol-alert {\n display: grid;\n }\n .kol-alert__container {\n display: flex;\n place-items: center;\n }\n .kol-alert__container-content {\n flex-grow: 1;\n }\n .kol-alert__closer {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-form-field {\n display: grid;\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field__label-text {\n flex-flow: row;\n align-items: flex-start;\n justify-content: flex-start;\n }\n .kol-form-field--disabled .kol-form-field__label {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__label-text:not(:has(> [name]))::after,\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\n content: "*"/"";\n }\n .kol-form-field--disabled .kol-form-field__hint {\n opacity: 0.5;\n }\n .kol-input-container {\n background-color: transparent;\n display: grid;\n width: 100%;\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n align-items: center;\n grid-template-columns: 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start) {\n grid-template-columns: auto 1fr auto;\n }\n .kol-input-container__container {\n position: relative;\n }\n .kol-input-container__adornment {\n display: flex;\n align-items: center;\n }\n .kol-input-container__adornment .kol-icon {\n display: grid;\n min-height: var(--a11y-min-size);\n place-items: center;\n }\n .kol-select {\n background-color: transparent;\n width: 100%;\n }\n .kol-select:not(:disabled) {\n cursor: pointer;\n }\n .kol-select:not([multiple], [size]) {\n height: 2.75em;\n }\n .kol-select:focus {\n outline: none;\n }\n .kol-select__option:checked::before {\n content: "✓ ";\n }\n .kol-select {\n /* needed hack for vertical alignment */\n }\n .kol-select[multiple] option {\n padding: calc((var(--a11y-min-size) - 16 * 1rem / var(--kolibri-root-font-size, 16)) / 2) 0.5em;\n }\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-pagination {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: center;\n container: paging/inline-size;\n }\n .kol-pagination__navigation-list {\n display: inline-flex;\n margin: 0;\n padding: 0;\n flex-wrap: wrap;\n align-items: center;\n list-style: none;\n }\n .kol-pagination__separator:before {\n content: "•••";\n }\n .kol-pagination__page-size-select .kol-form-field-select {\n align-items: center;\n grid-template-columns: 1fr max-content;\n }\n @container paging (width < 600px) {\n .kol-pagination:has(.kol-pagination__button--first) li:has(.kol-pagination__button--numbers),\n .kol-pagination:has(.kol-pagination__button--first) li:has(.kol-pagination__separator) {\n display: none;\n }\n }\n}',PAGINATION_OPTIONS=[10,20,50,100],paginationValidator=n=>!0===n||""===n||"object"==typeof n&&null!==n,KolTableStateful=class{constructor(n){registerInstance(this,n),this.catchRef=n=>{this.tableWcRef=n},this.sortData=[],this.showPagination=!1,this.pageStartSlice=0,this.pageEndSlice=10,this.disableSort=!1,this._paginationPosition="bottom",this.state={_allowMultiSort:!1,_fixedCols:[0,0],_data:[],_dataFoot:[],_headers:{horizontal:[],vertical:[]},_label:"",_pagination:{_page:1,_pageSize:10,_max:0},_sortedData:[],_paginationPosition:"bottom",_hasSettingsMenu:!1},this.handlePagination={onClick:(n,t)=>{var e;"function"==typeof(null===(e=this.state._pagination._on)||void 0===e?void 0:e.onClick)&&this.state._pagination._on.onClick(n,t),setState(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_page:t}))},onChangePage:(n,t)=>{var e;"function"==typeof(null===(e=this.state._pagination._on)||void 0===e?void 0:e.onChangePage)&&this.state._pagination._on.onChangePage(n,t),setState(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_page:t}))},onChangePageSize:(n,t)=>{var e;"function"==typeof(null===(e=this.state._pagination._on)||void 0===e?void 0:e.onChangePageSize)&&this.state._pagination._on.onChangePageSize(n,t),setState(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_pageSize:t})),setState(this,"_pageSize",t)}},this.onSelectionChange=n=>{n.stopPropagation()},this.updateSortedData=()=>{if(this.disableSort)return void setState(this,"_sortedData",this.state._data);const n=[...this.state._data];this.sortData.length>0&&n.sort((n,t)=>{for(let e=0;e<this.sortData.length;e++){const i=this.sortData[e],o=i.compareFn(n,t,i.direction);if(0!==o)return"ASC"===i.direction?o:-o}return 0}),setState(this,"_sortedData",n)}}validateAllowMultiSort(n){validateAllowMultiSort(this,n,{defaultValue:!1})}validateData(n){validateTableData(this,n,{afterPatch:()=>{setTimeout(this.updateSortedData)}})}validateDataFoot(n){validateTableDataFoot(this,n,{afterPatch:()=>{setTimeout(this.updateSortedData)}})}validateFixedCols(n){validateFixedCols(this,n)}validatePaginationPosition(n){validatePaginationPosition(this,n)}validateHasSettingsMenu(n){validateHasSettingsMenu(this,n)}changeCellSort(n){var t;if(void 0===n.type||"default"===n.type){if("function"!=typeof n.compareFn)return;this.state._allowMultiSort||n.key===(null===(t=this.sortData[0])||void 0===t?void 0:t.key)||(this.sortData=[]);const e=this.sortData.findIndex(t=>t.key===n.key);if(e>=0){const n=this.sortData[e];switch(n.direction){case"ASC":n.direction="DESC";break;case"DESC":this.sortData.splice(e,1);break;default:n.direction="ASC"}}else n.key&&this.sortData.push({label:n.label,key:n.key,compareFn:n.compareFn,direction:"ASC"});this.updateSortedData()}}validateHeaders(n){emptyStringByArrayHandler(n,()=>{objectObjectHandler(n,()=>{try{n=parseJson(n)}catch(n){}watchValidator(this,"_headers",n=>"object"==typeof n&&null!==n,new Set(["KoliBriTableHeaders"]),n,{hooks:{beforePatch:n=>{var t,e,i,o;const a=n=>{let t=!1;this.sortData=[],n.forEach(n=>{if(void 0!==n.type&&"default"!==n.type)return;if("function"==typeof n.compareFn&&!n.key)return void devHint("[KolTableStateful] A sortable column requires the 'key' property.");const e=n.key;if(!e)return;const i=n.sortDirection;"ASC"!==i&&"DESC"!==i||"function"==typeof n.compareFn&&((this.state._allowMultiSort||0===this.sortData.length)&&this.sortData.push({label:n.label,key:e,compareFn:n.compareFn,direction:i}),t=!0)}),t&&setTimeout(()=>this.updateSortedData())},l=n;null===(t=l.horizontal)||void 0===t||t.forEach(a),null===(e=l.vertical)||void 0===e||e.forEach(a),l.horizontal&&l.vertical&&(null===(i=l.horizontal)||void 0===i?void 0:i.length)>0&&(null===(o=l.vertical)||void 0===o?void 0:o.length)>0&&(this.disableSort=!0,devHint("Table: You can not sort the table data, if horizontal and vertical headers are defined at the same time. (https://github.com/public-ui/kolibri/issues/2372)"))}}})})})}validateLabel(n){validateLabel(this,n,{required:!0})}validateSelection(n){validateTableSelection(this,n)}validateOn(n){validateTableStatefulCallbacks(this,n)}validatePagination(n){try{n=parseJson(n)}catch(n){}this.showPagination=paginationValidator(n),watchValidator(this,"_pagination",paginationValidator,new Set(["boolean","KoliBriTablePagination"]),n,{defaultValue:{_page:1,_pageSize:10,_max:0}})}componentDidLoad(){var n;null===(n=this.tableWcRef)||void 0===n||n.addEventListener(KolEvent.selectionChange,this.onSelectionChange)}disconnectedCallback(){var n;null===(n=this.tableWcRef)||void 0===n||n.removeEventListener(KolEvent.selectionChange,this.onSelectionChange)}componentWillLoad(){this.validateAllowMultiSort(this._allowMultiSort),this.validateData(this._data),this.validateDataFoot(this._dataFoot),this.validateFixedCols(this._fixedCols),this.validateHeaders(this._headers),this.validateLabel(this._label),this.validateOn(this._on),this.validatePagination(this._pagination),this.validatePaginationPosition(this._paginationPosition),this.validateSelection(this._selection),this.validateHasSettingsMenu(this._hasSettingsMenu)}selectDisplayedData(n,t,e){return"number"==typeof t&&t>0&&"number"==typeof e&&e>0?(this.pageStartSlice=t*(e-1),this.pageEndSlice=t*e>n.length?n.length:t*e,n.slice(this.pageStartSlice,this.pageEndSlice)):(this.pageStartSlice=0,this.pageEndSlice=n.length,n)}renderPagination(n){const t=translate("kol-table-pagination-label",{placeholders:{label:`${this.state._label} (${translate(`kol-pagination-position-${n}`)})`}});return h("div",{class:`kol-table-stateful__pagination kol-table-stateful__pagination--${this.state._paginationPosition}`},h("div",{class:"kol-table-stateful__pagination-wrapper"},h(KolPaginationWcTag,{_boundaryCount:this.state._pagination._boundaryCount,_customClass:this.state._pagination._customClass,_hasButtons:this.state._pagination._hasButtons,_on:this.handlePagination,_page:this.state._pagination._page,_pageSize:this.state._pagination._pageSize,_pageSizeOptions:this.state._pagination._pageSizeOptions||PAGINATION_OPTIONS,_siblingCount:this.state._pagination._siblingCount,_tooltipAlign:"bottom",_max:this.state._pagination._max||this.state._pagination._max||this.state._data.length,_label:t})))}getHeaderCellSortState(n){if((void 0===n.type||"default"===n.type)&&!this.disableSort&&"function"==typeof n.compareFn){if(n.key){const t=this.sortData.find(t=>t.key===n.key);if(null==t?void 0:t.direction)return t.direction}return"NOS"}}getHeaderCellSortOrder(n){if((void 0===n.type||"default"===n.type)&&!this.disableSort&&this.state._allowMultiSort&&"function"==typeof n.compareFn&&n.key){const t=this.sortData.findIndex(t=>t.key===n.key);if(t>=0)return t+1}}handleSort({key:n}){const t=[...(this.state._headers.horizontal||[]).flat(),...(this.state._headers.vertical||[]).flat()].find(t=>t.key===n);t&&this.changeCellSort(t)}getSelectedData(n){var t;const e=this.state._selection;if(e){const i=null!==(t=e.keyPropertyName)&&void 0!==t?t:"id",o=new Set(n.map(String)),a=this.state._sortedData.filter(n=>o.has(String(n[i])));if(i)return a}return null}handleSelectionChange(n,t){var e;const i=this.state._selection;i&&(this.state=Object.assign(Object.assign({},this.state),{_selection:Object.assign(Object.assign({},i),{selectedKeys:t})}));const o=this.getSelectedData(t);"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e[Callback.onSelectionChange])&&this.state._on[Callback.onSelectionChange](n,o),this.host&&dispatchDomEvent(this.host,KolEvent.selectionChange,o)}async getSelection(){var n;const t=(null===(n=this.state._selection)||void 0===n?void 0:n.selectedKeys)||[];return this.getSelectedData(t)}render(){var n,t,e,i,o,a;const l=this.selectDisplayedData(this.state._sortedData,this.showPagination?null!==(t=null===(n=this.state._pagination)||void 0===n?void 0:n._pageSize)&&void 0!==t?t:10:this.state._sortedData.length,this.state._pagination._page||1),s="top"===this._paginationPosition||"both"===this._paginationPosition?this.renderPagination("top"):null,r="bottom"===this._paginationPosition||"both"===this._paginationPosition?this.renderPagination("bottom"):null,c={horizontal:null!==(i=null===(e=this.state._headers.horizontal)||void 0===e?void 0:e.map(n=>n.map(n=>Object.assign(Object.assign({},n),{sortDirection:this.getHeaderCellSortState(n),sortOrder:this.getHeaderCellSortOrder(n)}))))&&void 0!==i?i:[],vertical:null!==(a=null===(o=this.state._headers.vertical)||void 0===o?void 0:o.map(n=>n.map(n=>Object.assign(Object.assign({},n),{sortDirection:this.getHeaderCellSortState(n),sortOrder:this.getHeaderCellSortOrder(n)}))))&&void 0!==a?a:[]};return h(Host,{key:"49e3e80896f7836176d2dbacfa4a7e14901cbd55",class:"kol-table-stateful"},this.pageEndSlice>0&&this.showPagination&&s,h(KolTableStatelessWcTag,{key:"dd47470aa5b318ce94adcc12c500431258c4b8fb",ref:this.catchRef,_data:l,_fixedCols:this._fixedCols,_headerCells:c,_label:this.state._label,_dataFoot:this.state._dataFoot,_on:{onSort:(n,t)=>{this.handleSort(t)},onSelectionChange:(n,t)=>{this.handleSelectionChange(n,t)}},_selection:this.state._selection,_hasSettingsMenu:this.state._hasSettingsMenu}),this.pageEndSlice>0&&this.showPagination&&r)}get host(){return getElement(this)}static get watchers(){return{_allowMultiSort:["validateAllowMultiSort"],_data:["validateData"],_dataFoot:["validateDataFoot"],_fixedCols:["validateFixedCols"],_paginationPosition:["validatePaginationPosition"],_hasSettingsMenu:["validateHasSettingsMenu"],_headers:["validateHeaders"],_label:["validateLabel"],_selection:["validateSelection"],_on:["validateOn"],_pagination:["validatePagination"]}}};KolTableStateful.style={default:defaultStyleCss};export{KolTableStateful as kol_table_stateful};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{r as registerInstance,h,F as Fragment,g as getElement}from"./index-BPtT34o3.js";import{_ as __rest}from"./tslib.es6-CxX45GIN.js";import{c as KolButtonWcTag,d as KolLinkWcTag,a as KolTooltipWcTag,u as KolTableSettingsWcTag}from"./component-names-pgL1e5No.js";import{t as translate}from"./i18n-CSCkYcOW.js";import{I as IconFC}from"./component-CL5w48zL.js";import{P as emptyStringByArrayHandler,o as objectObjectHandler,p as parseJson,b as watchValidator,s as setState}from"./common-5ExJH6NU.js";import{c as validateHasSettingsMenu,v as validateTableData,a as validateTableDataFoot,b as validateFixedCols,f as validateTableCallbacks,d as validateTableSelection}from"./table-selection-Dp8qMfQK.js";import{v as validateLabel}from"./label-Cd37SRqu.js";import{C as Callback}from"./keyboard-DNd73LVa.js";import{c as clsx}from"./clsx-COFh-Vc8.js";import{n as nonce}from"./dev.utils-CfUO8naH.js";import{d as dispatchDomEvent,K as KolEvent}from"./events-DHTi_wtD.js";import{M as MapCache,e as eq,U as Uint8Array,d as getAllKeys,a as getTag,c as isBuffer,S as Stack,f as isTypedArray}from"./_Uint8Array-UP73qmmG.js";import{S as Symbol,a as isArray,i as isObjectLike}from"./isArray-CcrBs4JM.js";import"./i18n-B2d_exHc.js";import"./bem-registry-DTQ0cuzY.js";import"./isObject-BJgq02Md.js";var HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd(e){return this.__data__.set(e,HASH_UNDEFINED),this}function setCacheHas(e){return this.__data__.has(e)}function SetCache(e){var t=-1,a=null==e?0:e.length;for(this.__data__=new MapCache;++t<a;)this.add(e[t])}function arraySome(e,t){for(var a=-1,l=null==e?0:e.length;++a<l;)if(t(e[a],a,e))return!0;return!1}function cacheHas(e,t){return e.has(t)}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd,SetCache.prototype.has=setCacheHas;var COMPARE_PARTIAL_FLAG$3=1,COMPARE_UNORDERED_FLAG$1=2;function equalArrays(e,t,a,l,i,s){var o=a&COMPARE_PARTIAL_FLAG$3,r=e.length,n=t.length;if(r!=n&&!(o&&n>r))return!1;var c=s.get(e),d=s.get(t);if(c&&d)return c==t&&d==e;var h=-1,b=!0,u=a&COMPARE_UNORDERED_FLAG$1?new SetCache:void 0;for(s.set(e,t),s.set(t,e);++h<r;){var v=e[h],f=t[h];if(l)var _=o?l(f,v,h,t,e,s):l(v,f,h,e,t,s);if(void 0!==_){if(_)continue;b=!1;break}if(u){if(!arraySome(t,function(e,t){if(!cacheHas(u,t)&&(v===e||i(v,e,a,l,s)))return u.push(t)})){b=!1;break}}else if(v!==f&&!i(v,f,a,l,s)){b=!1;break}}return s.delete(e),s.delete(t),b}function mapToArray(e){var t=-1,a=Array(e.size);return e.forEach(function(e,l){a[++t]=[l,e]}),a}function setToArray(e){var t=-1,a=Array(e.size);return e.forEach(function(e){a[++t]=e}),a}var COMPARE_PARTIAL_FLAG$2=1,COMPARE_UNORDERED_FLAG=2,boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",symbolProto=Symbol?Symbol.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag(e,t,a,l,i,s,o){switch(a){case dataViewTag:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case arrayBufferTag:return!(e.byteLength!=t.byteLength||!s(new Uint8Array(e),new Uint8Array(t)));case boolTag:case dateTag:case numberTag:return eq(+e,+t);case errorTag:return e.name==t.name&&e.message==t.message;case regexpTag:case stringTag:return e==t+"";case mapTag:var r=mapToArray;case setTag:var n=l&COMPARE_PARTIAL_FLAG$2;if(r||(r=setToArray),e.size!=t.size&&!n)return!1;var c=o.get(e);if(c)return c==t;l|=COMPARE_UNORDERED_FLAG,o.set(e,t);var d=equalArrays(r(e),r(t),l,i,s,o);return o.delete(e),d;case symbolTag:if(symbolValueOf)return symbolValueOf.call(e)==symbolValueOf.call(t)}return!1}var COMPARE_PARTIAL_FLAG$1=1,objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty;function equalObjects(e,t,a,l,i,s){var o=a&COMPARE_PARTIAL_FLAG$1,r=getAllKeys(e),n=r.length;if(n!=getAllKeys(t).length&&!o)return!1;for(var c=n;c--;){var d=r[c];if(!(o?d in t:hasOwnProperty$1.call(t,d)))return!1}var h=s.get(e),b=s.get(t);if(h&&b)return h==t&&b==e;var u=!0;s.set(e,t),s.set(t,e);for(var v=o;++c<n;){var f=e[d=r[c]],_=t[d];if(l)var y=o?l(_,f,d,t,e,s):l(f,_,d,e,t,s);if(!(void 0===y?f===_||i(f,_,a,l,s):y)){u=!1;break}v||(v="constructor"==d)}if(u&&!v){var g=e.constructor,p=t.constructor;g==p||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof p&&p instanceof p||(u=!1)}return s.delete(e),s.delete(t),u}var COMPARE_PARTIAL_FLAG=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty;function baseIsEqualDeep(e,t,a,l,i,s){var o=isArray(e),r=isArray(t),n=o?arrayTag:getTag(e),c=r?arrayTag:getTag(t),d=(n=n==argsTag?objectTag:n)==objectTag,h=(c=c==argsTag?objectTag:c)==objectTag,b=n==c;if(b&&isBuffer(e)){if(!isBuffer(t))return!1;o=!0,d=!1}if(b&&!d)return s||(s=new Stack),o||isTypedArray(e)?equalArrays(e,t,a,l,i,s):equalByTag(e,t,n,a,l,i,s);if(!(a&COMPARE_PARTIAL_FLAG)){var u=d&&hasOwnProperty.call(e,"__wrapped__"),v=h&&hasOwnProperty.call(t,"__wrapped__");if(u||v){var f=u?e.value():e,_=v?t.value():t;return s||(s=new Stack),i(f,_,a,l,s)}}return!!b&&(s||(s=new Stack),equalObjects(e,t,a,l,i,s))}function baseIsEqual(e,t,a,l,i){return e===t||(null==e||null==t||!isObjectLike(e)&&!isObjectLike(t)?e!=e&&t!=t:baseIsEqualDeep(e,t,a,l,baseIsEqual,i))}function isEqual(e,t){return baseIsEqual(e,t)}const validateTableHeaderCells=(e,t)=>{emptyStringByArrayHandler(t,()=>{objectObjectHandler(t,()=>{try{t=parseJson(t)}catch(e){}watchValidator(e,"_headerCells",e=>{var t,a;return"object"==typeof e&&null!==e&&(void 0===e.horizontal||Array.isArray(e.horizontal)&&void 0===e.horizontal.find(e=>!Array.isArray(e)))&&(void 0===e.vertical||Array.isArray(e.vertical)&&void 0===e.vertical.find(e=>!Array.isArray(e)))&&[...null!==(t=e.horizontal)&&void 0!==t?t:[],...null!==(a=e.vertical)&&void 0!==a?a:[]].flat().every(e=>void 0===e.width||"number"==typeof e.width)&&!0},new Set(["TableHeaderCellsPropType"]),t)})})},RESIZE_DEBOUNCE_DELAY=150,KolTableStatelessWc=class{constructor(e){registerInstance(this,e),this.translateNoEntries=translate("kol-no-entries"),this.state={_data:[],_headerCells:{horizontal:[],vertical:[]},_label:"",_hasSettingsMenu:!1},this.horizontal=!0,this.cellsToRenderTimeouts=new Map,this.dataToKeyMap=new Map,this.checkboxRefs=[],this.translateSort=translate("kol-sort"),this.translateSortOrder=translate("kol-table-sort-order"),this.maxCols=0,this.fixedOffsets=[],this.tableDivElementHasScrollbar=!1,this.stickyColsDisabled=!1,this.renderTableRow=(e,t,a,l=!1)=>{var i,s;let o=String(t);return this.horizontal&&(null===(i=e[0])||void 0===i?void 0:i.data)&&(o=null!==(s=this.getDataKey(e[0].data))&&void 0!==s?s:o),h("tr",{class:clsx("kol-table__row",{"kol-table__row--body":!l,"kol-table__row--footer":l}),key:`row-${o}`},this.renderSelectionCell(e,t),e.map((e,l)=>this.renderTableCell(e,t,l,a)))},this.renderTableCell=(e,t,a,l)=>{if(!1===e.visible)return"";let i=`${t}-${a}-${e.label}`;if(e.data){const l=this.getDataKey(e.data);i=l?`${l}-${this.horizontal?a:t}`:i}if(e.headerCell)return this.renderHeadingCell(e,t,a,l);{const t="function"!=typeof e.render&&e.label===this.translateNoEntries,l=this.getActionColumnHeader(a),s=Boolean(l&&e.data),o=this.isFixedCol(a),r="left"===o?this.getOffsetString(e.colIndex,!0):void 0,n="right"===o?this.getOffsetString(e.colIndex):void 0;return h("td",{key:`cell-${i}`,class:clsx("kol-table__cell kol-table__cell--body",e.textAlign&&`kol-table__cell--align-${e.textAlign}`,s&&"kol-table__cell--actions",o&&`kol-table__cell--sticky-${o}`),"aria-atomic":t?"false":void 0,"aria-live":t?"polite":void 0,"aria-relevant":t?"text":void 0,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{textAlign:e.textAlign,left:r,right:n},ref:"function"==typeof e.render?t=>{this.cellRender(e,t)}:void 0},s&&l&&e.data?this.renderActionItems(l,e.data,i):"function"!=typeof e.render?e.label:"")}},this.renderActionItems=(e,t,a)=>{const l=e.actions(t);return h("div",{class:"kol-table__cell-actions"},l.map((e,t)=>{if("button"===e.type){const l=__rest(e,[]);return h(KolButtonWcTag,Object.assign({key:`action-${a}-${t}`},l,{_variant:l._variant}))}if("link"===e.type){const l=__rest(e,[]);return h(KolLinkWcTag,Object.assign({key:`action-${a}-${t}`},l))}return null}))}}validateHasSettingsMenu(e){validateHasSettingsMenu(this,e)}validateData(e){validateTableData(this,e,{beforePatch:e=>{this.updateDataToKeyMap(e)}})}validateDataFoot(e){validateTableDataFoot(this,e)}validateFixedCols(e){validateFixedCols(this,e),this.checkAndUpdateStickyState()}validateHeaderCells(e){validateTableHeaderCells(this,e),isEqual(this.previousHeaderCells,this.state._headerCells)||this.initializeHeaderCellSettings(),this.previousHeaderCells=this.state._headerCells}validateLabel(e){validateLabel(this,e,{required:!0})}validateOn(e){validateTableCallbacks(this,e)}validateSelection(e){validateTableSelection(this,e),this.checkAndUpdateStickyState()}handleKeyDown(e){var t;if("ArrowUp"===e.key||"ArrowDown"===e.key){const a=null===(t=this.tableDivElement)||void 0===t?void 0:t.querySelector(":focus");let l=this.checkboxRefs.indexOf(a);l>-1&&(e.preventDefault(),"ArrowDown"===e.key?(l=(l+1)%this.checkboxRefs.length,this.checkboxRefs[l].focus()):"ArrowUp"===e.key&&(e.preventDefault(),l=(l+this.checkboxRefs.length-1)%this.checkboxRefs.length,this.checkboxRefs[l].focus()))}}componentDidRender(){this.checkDivElementScrollbar()}componentDidLoad(){this.tableDivElement&&ResizeObserver&&(this.tableDivElementResizeObserver=new ResizeObserver(this.handleResize.bind(this)),this.tableDivElementResizeObserver.observe(this.tableDivElement)),this.checkAndUpdateStickyState()}handleSettingsChange(e){var t;const a=Object.assign(Object.assign({},this.state._headerCells),{horizontal:e.detail});setState(this,"_headerCells",a),"function"==typeof(null===(t=this.state._on)||void 0===t?void 0:t[Callback.onChangeHeaderCells])&&this.state._on[Callback.onChangeHeaderCells](e,a)}disconnectedCallback(){var e;null===(e=this.tableDivElementResizeObserver)||void 0===e||e.disconnect(),clearTimeout(this.resizeDebounceTimeout)}handleResize(){this.checkDivElementScrollbar(),clearTimeout(this.resizeDebounceTimeout),this.resizeDebounceTimeout=setTimeout(()=>{this.checkAndUpdateStickyState()},150)}checkDivElementScrollbar(){this.tableDivElement&&(this.tableDivElementHasScrollbar=this.tableDivElement.scrollWidth>this.tableDivElement.clientWidth)}calculateFixedColsWidth(){var e,t,a,l,i,s;if(!this._fixedCols)return 0;const o=this.getPrimaryHeaders(this.state._headerCells);let r=0;for(let a=0;a<this._fixedCols[0]&&a<o.length;a++)r+=null!==(t=null===(e=o[a])||void 0===e?void 0:e.width)&&void 0!==t?t:0;for(let e=this.maxCols-this._fixedCols[1];e<this.maxCols&&e<o.length;e++)r+=null!==(l=null===(a=o[e])||void 0===a?void 0:a.width)&&void 0!==l?l:0;if(this.state._selection){const e=null===(i=this.tableDivElement)||void 0===i?void 0:i.querySelector(".kol-table__cell--selection");r+=null!==(s=null==e?void 0:e.offsetWidth)&&void 0!==s?s:0}return r}checkAndUpdateStickyState(){if(!this.tableDivElement||!this._fixedCols)return void(this.stickyColsDisabled=!1);const e=this.tableDivElement.clientWidth,t=this.calculateFixedColsWidth();this.stickyColsDisabled=t>0&&t>=e}updateDataToKeyMap(e){e.forEach(e=>{this.dataToKeyMap.has(e)||this.dataToKeyMap.set(e,nonce())}),this.dataToKeyMap.forEach((t,a)=>{e.includes(a)||this.dataToKeyMap.delete(a)})}getDataKey(e){return this.dataToKeyMap.get(e)}getActionColumnHeader(e){const t=this.horizontal?this.state._headerCells.horizontal:this.state._headerCells.vertical;if(!t||0===t.length)return;const a=this.getPrimaryHeaders(this.state._headerCells)[e];return a&&"action"===a.type?a:void 0}cellRender(e,t){t&&(clearTimeout(this.cellsToRenderTimeouts.get(t)),this.cellsToRenderTimeouts.set(t,setTimeout(()=>{if("function"==typeof e.render){const a=e.render(t,e,e.data,this.state._data);"string"==typeof a&&(t.textContent=a)}})))}getNumberOfCols(e,t){let a=0;return e.forEach(e=>{let t=0;Array.isArray(e)&&e.forEach(e=>{var a;t+=null!==(a=e.colSpan)&&void 0!==a?a:1}),a<t&&(a=t)}),0===a&&(a=t.length),a}getNumberOfRows(e,t){var a;let l=0;return e.forEach(e=>{let t=0;Array.isArray(e)&&e.forEach(e=>{var a;t+=null!==(a=e.rowSpan)&&void 0!==a?a:1}),l<t&&(l=t)}),0===l?l=t.length:l-=(null===(a=this.state._dataFoot)||void 0===a?void 0:a.length)||0,l}getThePrimaryHeadersWithKeyOrRenderFunction(e){const t=[];return e.forEach(e=>{e.forEach(e=>{"string"!=typeof e.key&&"function"!=typeof e.render||t.push(e)})}),t}getPrimaryHeaders(e){var t,a;let l=this.getThePrimaryHeadersWithKeyOrRenderFunction(null!==(t=e.horizontal)&&void 0!==t?t:[]);return this.horizontal=!0,0===l.length&&(l=this.getThePrimaryHeadersWithKeyOrRenderFunction(null!==(a=e.vertical)&&void 0!==a?a:[]),l.length>0&&(this.horizontal=!1)),l}createDataField(e,t,a){var l,i,s,o,r,n,c;t.horizontal=Array.isArray(null==t?void 0:t.horizontal)?t.horizontal:[],t.vertical=Array.isArray(null==t?void 0:t.vertical)?t.vertical:[],this.maxCols=this.getNumberOfCols(t.horizontal,e);const d=this.getPrimaryHeaders(t);let h=this.getNumberOfRows(t.vertical,e),b=0;a&&(b=h,h+=(null===(l=this.state._dataFoot)||void 0===l?void 0:l.length)||0);const u=[],v=[],f=[];t.vertical.forEach((e,t)=>{v[t]=0,f[t]=[]});const _=d;for(let l=b;l<h;l++){const d=[];t.vertical.forEach((e,t)=>{let a=0;if(f[t].forEach(e=>a+=e),a<=l){const i=e[l-a+v[t]];if("object"==typeof i){d.push(Object.assign(Object.assign({},i),{headerCell:!0,data:{}}));let e=1;if("number"==typeof i.rowSpan&&i.rowSpan>1&&(e=i.rowSpan),f[t].push(e),"number"==typeof i.colSpan&&i.colSpan>1)for(let a=1;a<i.colSpan;a++)f[t+a].push(e);v[t]++}}});for(let t=0;t<this.maxCols;t++){let h=this.isFixedCol(t);if("left"===h&&void 0===this.getFixedOffset(t)){let e=null!==(i=this.fixedOffsets[t-1])&&void 0!==i?i:0;e+=null!==(o=null===(s=_[t-1])||void 0===s?void 0:s.width)&&void 0!==o?o:0,this.fixedOffsets[t]=e}if("right"===h&&void 0===this.getFixedOffset(t)){let e=null!==(r=this.fixedOffsets[t+1])&&void 0!==r?r:0;e+=null!==(c=null===(n=_[t+1])||void 0===n?void 0:n.width)&&void 0!==c?c:0,this.fixedOffsets[t]=e}if(!0===this.horizontal){const i=a&&this.state._dataFoot?this.state._dataFoot[l-b]:e[l];if("object"==typeof _[t]&&null!==_[t]&&"object"==typeof i&&null!==i&&("string"==typeof _[t].key||"function"==typeof _[t].render)){const e=i[_[t].key];d.push(Object.assign(Object.assign({},_[t]),{colIndex:t,colSpan:void 0,rowSpan:void 0,data:i,label:e}))}}else if("object"==typeof _[l]&&null!==_[l]&&"object"==typeof e[t]&&null!==e[t]&&("string"==typeof _[l].key||"function"==typeof _[l].render)){const a=_[l].key,i=e[t][a];d.push(Object.assign(Object.assign({},_[l]),{colIndex:t,colSpan:void 0,rowSpan:void 0,data:e[t],label:i}))}}u.push(d)}if(0===e.length){let e=0,a=0;Array.isArray(t.horizontal)&&t.horizontal.length>0&&t.horizontal[0].forEach(t=>{e+=t.colSpan||1}),Array.isArray(t.vertical)&&t.vertical.length>0&&(e-=t.vertical.length,t.vertical[0].forEach(e=>{a+=e.rowSpan||1}));const l={colSpan:e,label:this.translateNoEntries,render:void 0,rowSpan:Math.max(a,1)};0===u.length?u.push([l]):u[0].push(l)}return u}isFixedCol(e){if(this._fixedCols&&void 0!==e&&!this.stickyColsDisabled)return e<this._fixedCols[0]?"left":e>=this.maxCols-this._fixedCols[1]?"right":void 0}getFixedOffset(e){if(this.tableDivElement&&void 0!==e)return void 0!==this.fixedOffsets[e]?this.fixedOffsets[e]:void 0}getOffsetString(e,t){return t&&this._selection?"calc( var(--kol-table-selection-col-width) + "+this.getFixedOffset(e)+"px)":this.getFixedOffset(e)+"px"}handleSelectionChangeCallbackAndEvent(e,t){var a;"function"==typeof(null===(a=this.state._on)||void 0===a?void 0:a[Callback.onSelectionChange])&&this.state._on[Callback.onSelectionChange](e,t),this.host&&dispatchDomEvent(this.host,KolEvent.selectionChange,t)}initializeHeaderCellSettings(){if(this.state._headerCells&&this.state._headerCells.horizontal&&this.state._headerCells.horizontal.length>0){const e=Object.assign(Object.assign({},this.state._headerCells),{horizontal:this.state._headerCells.horizontal.map(e=>e.map(e=>Object.assign(Object.assign({},e),{visible:"boolean"!=typeof e.visible||e.visible,hidable:"boolean"!=typeof e.hidable||e.hidable})))});setState(this,"_headerCells",e)}}componentWillLoad(){this.validateData(this._data),this.validateDataFoot(this._dataFoot),this.validateHeaderCells(this._headerCells),this.validateLabel(this._label),this.validateOn(this._on),this.validateSelection(this._selection),this.validateHasSettingsMenu(this._hasSettingsMenu)}renderSelectionCell(e,t){var a;const l=this.state._selection;if(!l)return"";const i=this.getSelectionKeyPropertyName(),s=null===(a=e[0])||void 0===a?void 0:a.data;if(!s)return"";const o=s[i],r=l.multiple||void 0===l.multiple,n=(()=>{const e=null==l?void 0:l.selectedKeys;return(void 0===e?[]:Array.isArray(e)?e:[e]).some(e=>String(e)===String(o))})(),c=(()=>{const e=null==l?void 0:l.disabledKeys;return(void 0===e?[]:Array.isArray(e)?e:[e]).some(e=>String(e)===String(o))})(),d=l.label(s),b={name:"selection",checked:n,disabled:c,id:String(o),"aria-label":d};return h("td",{key:`tbody-${t}-selection`,class:"kol-table__cell kol-table__cell--selection"},h("div",{class:clsx("kol-table__selection",{"kol-table__selection--checked":n})},r?h("label",{class:clsx("kol-table__selection-label",{"kol-table__selection-label--disabled":c})},h(IconFC,{class:"kol-table__selection-icon",icons:"kolicon "+(n?"kolicon-check":""),label:""}),h("input",Object.assign({class:clsx("kol-table__selection-input kol-table__selection-input--checkbox"),ref:e=>e&&this.checkboxRefs.push(e)},b,{type:"checkbox",onInput:e=>{const t=(()=>{const e=null==l?void 0:l.selectedKeys;return void 0===e?[]:Array.isArray(e)?e:[e]})(),a=n?t.filter(e=>String(e)!==String(o)):[...t,o];this.handleSelectionChangeCallbackAndEvent(e,null!=a?a:[])}}))):h("label",{class:"kol-table__selection-label"},h("input",Object.assign({class:clsx("kol-table__selection-input kol-table__selection-input--radio")},b,{type:"radio",onInput:e=>{this.handleSelectionChangeCallbackAndEvent(e,[o])}}))),h(KolTooltipWcTag,{"aria-hidden":"true",class:"kol-table__selection-input-tooltip",_align:"right",_id:`${o}-label`,_label:d})))}getSelectionKeyPropertyName(){var e,t;return null!==(t=null===(e=this.state._selection)||void 0===e?void 0:e.keyPropertyName)&&void 0!==t?t:"id"}getDataWithSelectionEnabled(){const e=this.getSelectionKeyPropertyName();return this.state._data.filter(t=>{var a;const l=null===(a=this.state._selection)||void 0===a?void 0:a.disabledKeys;return!(void 0===l?[]:Array.isArray(l)?l:[l]).some(a=>String(a)===String(t[e]))})}getSelectedKeysWithoutDisabledKeys(){const e=(()=>{var e;const t=null===(e=this.state._selection)||void 0===e?void 0:e.selectedKeys;return void 0===t?[]:Array.isArray(t)?t:[t]})(),t=(()=>{var e;const t=null===(e=this.state._selection)||void 0===e?void 0:e.disabledKeys;return void 0===t?[]:Array.isArray(t)?t:[t]})();return e.filter(e=>!t.some(t=>String(t)===String(e)))}getSelectedKeysWithDisabledKeysOnly(){const e=(()=>{var e;const t=null===(e=this.state._selection)||void 0===e?void 0:e.selectedKeys;return void 0===t?[]:Array.isArray(t)?t:[t]})(),t=(()=>{var e;const t=null===(e=this.state._selection)||void 0===e?void 0:e.disabledKeys;return void 0===t?[]:Array.isArray(t)?t:[t]})();return e.filter(e=>t.some(t=>String(t)===String(e)))}getRevertedSelection(e){var t;const a=this.getSelectionKeyPropertyName(),l=null!==(t=this.getSelectedKeysWithDisabledKeysOnly())&&void 0!==t?t:[];return e&&l.push(...this.getDataWithSelectionEnabled().map(e=>null==e?void 0:e[a])),l}getTableMinWidth(){var e,t;const a=null!==(e=this.state._headerCells.horizontal)&&void 0!==e?e:[],l=[];a.forEach(e=>{e.forEach(e=>{!1!==e.visible&&void 0!==e.width&&e.width>0&&l.push(e.width)})});const i=null!==(t=this.state._headerCells.vertical)&&void 0!==t?t:[],s=[];i.forEach(e=>{e.forEach(e=>{void 0!==e.width&&e.width>0&&s.push(e.width)})});const o=[...s,...l];return 0===o.length?"0px":1===o.length?`${o[0]}px`:`calc(${o.map(e=>`${e}px`).join(" + ")})`}renderHeadingSelectionCell(){var e,t;const a=this.state._selection;if(!a)return h("td",{class:"kol-table__cell kol-table__cell--header",key:"thead-0"});if(!1===a.multiple)return h("td",{key:"thead-0-selection",class:"kol-table__cell kol-table__cell--header kol-table__cell--selection"});const l=null!==(t=null===(e=this.getSelectedKeysWithoutDisabledKeys())||void 0===e?void 0:e.length)&&void 0!==t?t:0,i=l===this.getDataWithSelectionEnabled().length,s=0!==l&&!i;let o="kol-table-selection-indeterminate";i&&!s&&(o="kol-table-selection-none"),0===l&&(o="kol-table-selection-all");const r=translate(o);return h("th",{key:"thead-0-selection",class:"kol-table__cell kol-table__cell--header kol-table__cell--selection"},h("div",{class:clsx("kol-table__selection",{"kol-table__selection--indeterminate":s,"kol-table__selection--checked":i})},h("label",{class:"kol-table__selection-label"},h(IconFC,{class:"kol-table__selection-icon",icons:"kolicon "+(s?"kolicon-minus":i?"kolicon-check":""),label:""}),h("input",{class:clsx("kol-table__selection-input kol-table__selection-input--checkbox"),"data-testid":"selection-checkbox-all",ref:e=>e&&this.checkboxRefs.push(e),name:"selection",checked:i&&!s,indeterminate:s,"aria-label":r,type:"checkbox",onInput:e=>{this.handleSelectionChangeCallbackAndEvent(e,this.getRevertedSelection(!i))}})),h(KolTooltipWcTag,{"aria-hidden":"true",class:"kol-table__selection-input-tooltip",_align:"right",_id:`${o}-label`,_label:r})))}renderHeaderTdCell(){const e=this.state._headerCells.horizontal,t=this.state._headerCells.vertical;if(!Array.isArray(e)||0===e.length||!Array.isArray(t)||0===t.length)return h(Fragment,null);const a=t.reduce((e,t)=>{var a;const l=null==t?void 0:t[0];return e+(null!==(a=null==l?void 0:l.width)&&void 0!==a?a:0)},0);return h("td",{"aria-hidden":"true",colSpan:t.length,rowSpan:e.length,style:a>0?{width:`${a}px`}:void 0})}formatSortOrderDescription(e){return this.translateSortOrder.replace("{{order}}",`${e}`)}getSortAriaDescription(e){return"number"==typeof e&&e>0?`${this.translateSort} – ${this.formatSortOrderDescription(e)}`:this.translateSort}renderHeadingCell(e,t,a,l){if(!1===e.visible)return"";const i=!1!==(null==e?void 0:e.sortable),s="string"==typeof e.sortDirection,o=i&&s;let r="none",n="kolicon-sort-neutral";if(o&&e.sortDirection)switch(e.sortDirection){case"ASC":n="kolicon-sort-asc",r="ascending";break;case"DESC":n="kolicon-sort-desc",r="descending";break;default:r="none"}const c=l?"row":"number"==typeof e.colSpan&&e.colSpan>1?"colgroup":"col",d="number"==typeof e.sortOrder&&e.sortOrder>0?e.sortOrder:void 0,b=this.getSortAriaDescription(d),u=void 0!==e.width?`${e.width}px`:void 0,v=this.isFixedCol(a),f="left"===v?this.getOffsetString(a,!0):void 0,_="right"===v?this.getOffsetString(a):void 0;return h("th",{key:`${t}-${a}-${e.label}`,class:clsx("kol-table__cell kol-table__cell--header",`kol-table__cell--${r}`,e.textAlign&&`kol-table__cell--align-${e.textAlign}`,v&&`kol-table__cell--sticky-${v}`),scope:c,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{width:u,left:f,right:_},"aria-sort":r,"data-sort":o&&e.sortDirection?`sort-${e.sortDirection}`:void 0},o&&e.sortDirection?h("span",{class:"kol-table__sort"},h(KolButtonWcTag,{class:"kol-table__sort-button",_icons:{right:n},_label:e.label,_ariaDescription:b,_on:{onClick:t=>{var a;"function"==typeof(null===(a=this.state._on)||void 0===a?void 0:a.onSort)&&e.key&&e.sortDirection&&this.state._on.onSort(t,{key:e.key,currentSortDirection:e.sortDirection}),this.host&&dispatchDomEvent(this.host,KolEvent.sort,{key:e.key,currentSortDirection:e.sortDirection})}}}),d&&h("span",{"aria-hidden":"true",class:"kol-table__sort-order"},d)):e.label)}renderSpacer(e,t){var a,l;const i=(null===(a=this.state._headerCells.vertical)||void 0===a?void 0:a.length)||0,s=null===(l=null==t?void 0:t[0])||void 0===l?void 0:l.reduce((e,t)=>e+(t.colSpan||1),0),o=this.state._selection?1:0;return h("tr",{"aria-hidden":"true",class:clsx("kol-table__spacer",`kol-table__spacer--${e}`)},h("td",{class:clsx(`kol-table__spacer-line kol-table__spacer-line--${e}`),colSpan:i+s+o}))}renderFoot(){if(!this.state._dataFoot||0===this.state._dataFoot.length)return null;const e=this.createDataField(this.state._dataFoot,this.state._headerCells,!0);return h("tfoot",{class:"kol-table__footer"},[this.renderSpacer("foot",e),e.map((e,t)=>this.renderTableRow(e,t,!0,!0))])}render(){const e=this.createDataField(this.state._data,this.state._headerCells);this.checkboxRefs=[];const t=this.state._headerCells.horizontal;return h("div",{key:"77f96bb358cfe4bc755585dd6a5b3b56bc18d84d",class:"kol-table"},this.state._hasSettingsMenu&&h(KolTableSettingsWcTag,{key:"12bafb89dbd9b6854ec399d0b91763938247feb4",_horizontalHeaderCells:null!=t?t:[]}),h("div",{key:"dd2b25283555ee5a2040ac527b7e168f4a7df3ab",ref:e=>this.tableDivElement=e,class:"kol-table__scroll-container",tabindex:this.tableDivElementHasScrollbar?"-1":void 0},h("table",{key:"cb5ce2c9d00dfe1fb88d819965ddbb533fd3e9d2",class:"kol-table__table",style:{minWidth:this.getTableMinWidth()}},h("caption",{key:"80fca8add79f944170c5d5dd958ee2a0f9a24f98",class:"kol-table__focus-element kol-table__caption",id:"caption",tabindex:this.tableDivElementHasScrollbar?"0":void 0},this.state._label),Array.isArray(t)&&h("thead",{key:"76fb2cea6def5e7711d9019260e5dcbb94c83f6b",class:"kol-table__head"},[t.map((e,t)=>h("tr",{class:"kol-table__head-row",key:`thead-${t}`},this.state._selection&&this.renderHeadingSelectionCell(),0===t&&this.renderHeaderTdCell(),Array.isArray(e)&&e.map((e,a)=>this.renderHeadingCell(e,t,a,!1)))),this.renderSpacer("head",t)]),h("tbody",{key:"886d2015fd87cabb5b9007db6c9f0e0a11c316ad",class:"kol-table__body"},e.map((e,t)=>this.renderTableRow(e,t,!0))),this.renderFoot())))}get host(){return getElement(this)}static get watchers(){return{_hasSettingsMenu:["validateHasSettingsMenu"],_data:["validateData"],_dataFoot:["validateDataFoot"],_fixedCols:["validateFixedCols"],_headerCells:["validateHeaderCells"],_label:["validateLabel"],_on:["validateOn"],_selection:["validateSelection"]}}};export{KolTableStatelessWc as kol_table_stateless_wc};
|
|
4
|
+
import{r as registerInstance,h,F as Fragment,g as getElement}from"./index-Dva21o82.js";import{_ as __rest}from"./tslib.es6-CxX45GIN.js";import{b as KolButtonWcTag,c as KolLinkWcTag,t as KolTableSettingsWcTag}from"./component-names-Dy77vq43.js";import{t as translate}from"./i18n-BVaUp6qp.js";import{I as IconFC}from"./component-PEZ0eaV8.js";import{T as TooltipFC}from"./component-BU7rA3Iq.js";import{P as emptyStringByArrayHandler,o as objectObjectHandler,p as parseJson,b as watchValidator,s as setState}from"./common-BqV6Zb30.js";import{c as validateHasSettingsMenu,v as validateTableData,a as validateTableDataFoot,b as validateFixedCols,f as validateTableCallbacks,d as validateTableSelection}from"./table-selection-CXJmsMfX.js";import{v as validateLabel}from"./label-vxVEH2gH.js";import{C as Callback}from"./keyboard-DNd73LVa.js";import{c as clsx}from"./clsx-COFh-Vc8.js";import{n as nonce}from"./dev.utils-1j51sOA0.js";import{d as dispatchDomEvent,K as KolEvent}from"./events-DHTi_wtD.js";import{M as MapCache,e as eq,U as Uint8Array,f as getAllKeys,b as getTag,d as isBuffer,S as Stack,h as isTypedArray}from"./_Uint8Array-kJHDjtoP.js";import{S as Symbol,a as isArray,i as isObjectLike}from"./isArray-CcrBs4JM.js";import"./i18n-B2d_exHc.js";import"./bem-registry-Bux_TllX.js";import"./component-BcphpQc1.js";var HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd(e){return this.__data__.set(e,HASH_UNDEFINED),this}function setCacheHas(e){return this.__data__.has(e)}function SetCache(e){var t=-1,a=null==e?0:e.length;for(this.__data__=new MapCache;++t<a;)this.add(e[t])}function arraySome(e,t){for(var a=-1,l=null==e?0:e.length;++a<l;)if(t(e[a],a,e))return!0;return!1}function cacheHas(e,t){return e.has(t)}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd,SetCache.prototype.has=setCacheHas;var COMPARE_PARTIAL_FLAG$3=1,COMPARE_UNORDERED_FLAG$1=2;function equalArrays(e,t,a,l,i,s){var o=a&COMPARE_PARTIAL_FLAG$3,r=e.length,n=t.length;if(r!=n&&!(o&&n>r))return!1;var c=s.get(e),h=s.get(t);if(c&&h)return c==t&&h==e;var d=-1,b=!0,u=a&COMPARE_UNORDERED_FLAG$1?new SetCache:void 0;for(s.set(e,t),s.set(t,e);++d<r;){var v=e[d],f=t[d];if(l)var _=o?l(f,v,d,t,e,s):l(v,f,d,e,t,s);if(void 0!==_){if(_)continue;b=!1;break}if(u){if(!arraySome(t,function(e,t){if(!cacheHas(u,t)&&(v===e||i(v,e,a,l,s)))return u.push(t)})){b=!1;break}}else if(v!==f&&!i(v,f,a,l,s)){b=!1;break}}return s.delete(e),s.delete(t),b}function mapToArray(e){var t=-1,a=Array(e.size);return e.forEach(function(e,l){a[++t]=[l,e]}),a}function setToArray(e){var t=-1,a=Array(e.size);return e.forEach(function(e){a[++t]=e}),a}var COMPARE_PARTIAL_FLAG$2=1,COMPARE_UNORDERED_FLAG=2,boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",symbolProto=Symbol?Symbol.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag(e,t,a,l,i,s,o){switch(a){case dataViewTag:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case arrayBufferTag:return!(e.byteLength!=t.byteLength||!s(new Uint8Array(e),new Uint8Array(t)));case boolTag:case dateTag:case numberTag:return eq(+e,+t);case errorTag:return e.name==t.name&&e.message==t.message;case regexpTag:case stringTag:return e==t+"";case mapTag:var r=mapToArray;case setTag:var n=l&COMPARE_PARTIAL_FLAG$2;if(r||(r=setToArray),e.size!=t.size&&!n)return!1;var c=o.get(e);if(c)return c==t;l|=COMPARE_UNORDERED_FLAG,o.set(e,t);var h=equalArrays(r(e),r(t),l,i,s,o);return o.delete(e),h;case symbolTag:if(symbolValueOf)return symbolValueOf.call(e)==symbolValueOf.call(t)}return!1}var COMPARE_PARTIAL_FLAG$1=1,objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty;function equalObjects(e,t,a,l,i,s){var o=a&COMPARE_PARTIAL_FLAG$1,r=getAllKeys(e),n=r.length;if(n!=getAllKeys(t).length&&!o)return!1;for(var c=n;c--;){var h=r[c];if(!(o?h in t:hasOwnProperty$1.call(t,h)))return!1}var d=s.get(e),b=s.get(t);if(d&&b)return d==t&&b==e;var u=!0;s.set(e,t),s.set(t,e);for(var v=o;++c<n;){var f=e[h=r[c]],_=t[h];if(l)var y=o?l(_,f,h,t,e,s):l(f,_,h,e,t,s);if(!(void 0===y?f===_||i(f,_,a,l,s):y)){u=!1;break}v||(v="constructor"==h)}if(u&&!v){var g=e.constructor,p=t.constructor;g==p||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof p&&p instanceof p||(u=!1)}return s.delete(e),s.delete(t),u}var COMPARE_PARTIAL_FLAG=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty;function baseIsEqualDeep(e,t,a,l,i,s){var o=isArray(e),r=isArray(t),n=o?arrayTag:getTag(e),c=r?arrayTag:getTag(t),h=(n=n==argsTag?objectTag:n)==objectTag,d=(c=c==argsTag?objectTag:c)==objectTag,b=n==c;if(b&&isBuffer(e)){if(!isBuffer(t))return!1;o=!0,h=!1}if(b&&!h)return s||(s=new Stack),o||isTypedArray(e)?equalArrays(e,t,a,l,i,s):equalByTag(e,t,n,a,l,i,s);if(!(a&COMPARE_PARTIAL_FLAG)){var u=h&&hasOwnProperty.call(e,"__wrapped__"),v=d&&hasOwnProperty.call(t,"__wrapped__");if(u||v){var f=u?e.value():e,_=v?t.value():t;return s||(s=new Stack),i(f,_,a,l,s)}}return!!b&&(s||(s=new Stack),equalObjects(e,t,a,l,i,s))}function baseIsEqual(e,t,a,l,i){return e===t||(null==e||null==t||!isObjectLike(e)&&!isObjectLike(t)?e!=e&&t!=t:baseIsEqualDeep(e,t,a,l,baseIsEqual,i))}function isEqual(e,t){return baseIsEqual(e,t)}const validateTableHeaderCells=(e,t)=>{emptyStringByArrayHandler(t,()=>{objectObjectHandler(t,()=>{try{t=parseJson(t)}catch(e){}watchValidator(e,"_headerCells",e=>{var t,a;return"object"==typeof e&&null!==e&&(void 0===e.horizontal||Array.isArray(e.horizontal)&&void 0===e.horizontal.find(e=>!Array.isArray(e)))&&(void 0===e.vertical||Array.isArray(e.vertical)&&void 0===e.vertical.find(e=>!Array.isArray(e)))&&[...null!==(t=e.horizontal)&&void 0!==t?t:[],...null!==(a=e.vertical)&&void 0!==a?a:[]].flat().every(e=>void 0===e.width||"number"==typeof e.width)&&!0},new Set(["TableHeaderCellsPropType"]),t)})})},RESIZE_DEBOUNCE_DELAY=150,KolTableStatelessWc=class{constructor(e){registerInstance(this,e),this.translateNoEntries=translate("kol-no-entries"),this.state={_data:[],_headerCells:{horizontal:[],vertical:[]},_label:"",_hasSettingsMenu:!1},this.horizontal=!0,this.cellsToRenderTimeouts=new Map,this.dataToKeyMap=new Map,this.checkboxRefs=[],this.translateSort=translate("kol-sort"),this.translateSortOrder=translate("kol-table-sort-order"),this.maxCols=0,this.fixedOffsets=[],this.tableDivElementHasScrollbar=!1,this.stickyColsDisabled=!1,this.renderTableRow=(e,t,a,l=!1)=>{var i,s;let o=String(t);return this.horizontal&&(null===(i=e[0])||void 0===i?void 0:i.data)&&(o=null!==(s=this.getDataKey(e[0].data))&&void 0!==s?s:o),h("tr",{class:clsx("kol-table__row",{"kol-table__row--body":!l,"kol-table__row--footer":l}),key:`row-${o}`},this.renderSelectionCell(e,t),e.map((e,l)=>this.renderTableCell(e,t,l,a)))},this.renderTableCell=(e,t,a,l)=>{if(!1===e.visible)return"";let i=`${t}-${a}-${e.label}`;if(e.data){const l=this.getDataKey(e.data);i=l?`${l}-${this.horizontal?a:t}`:i}if(e.headerCell)return this.renderHeadingCell(e,t,a,l);{const t="function"!=typeof e.render&&e.label===this.translateNoEntries,l=this.getActionColumnHeader(a),s=Boolean(l&&e.data),o=this.isFixedCol(a),r="left"===o?this.getOffsetString(e.colIndex,!0):void 0,n="right"===o?this.getOffsetString(e.colIndex):void 0;return h("td",{key:`cell-${i}`,class:clsx("kol-table__cell kol-table__cell--body",e.textAlign&&`kol-table__cell--align-${e.textAlign}`,s&&"kol-table__cell--actions",o&&`kol-table__cell--sticky-${o}`),"aria-atomic":t?"false":void 0,"aria-live":t?"polite":void 0,"aria-relevant":t?"text":void 0,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{textAlign:e.textAlign,left:r,right:n},ref:"function"==typeof e.render?t=>{this.cellRender(e,t)}:void 0},s&&l&&e.data?this.renderActionItems(l,e.data,i):"function"!=typeof e.render?e.label:"")}},this.renderActionItems=(e,t,a)=>{const l=e.actions(t);return h("div",{class:"kol-table__cell-actions"},l.map((e,t)=>{if("button"===e.type){const l=__rest(e,[]);return h(KolButtonWcTag,Object.assign({key:`action-${a}-${t}`},l,{_variant:l._variant}))}if("link"===e.type){const l=__rest(e,[]);return h(KolLinkWcTag,Object.assign({key:`action-${a}-${t}`},l))}return null}))}}validateHasSettingsMenu(e){validateHasSettingsMenu(this,e)}validateData(e){validateTableData(this,e,{beforePatch:e=>{this.updateDataToKeyMap(e)}})}validateDataFoot(e){validateTableDataFoot(this,e)}validateFixedCols(e){validateFixedCols(this,e),this.checkAndUpdateStickyState()}validateHeaderCells(e){validateTableHeaderCells(this,e),isEqual(this.previousHeaderCells,this.state._headerCells)||this.initializeHeaderCellSettings(),this.previousHeaderCells=this.state._headerCells}validateLabel(e){validateLabel(this,e,{required:!0})}validateOn(e){validateTableCallbacks(this,e)}validateSelection(e){validateTableSelection(this,e),this.checkAndUpdateStickyState()}handleKeyDown(e){var t;if("ArrowUp"===e.key||"ArrowDown"===e.key){const a=null===(t=this.tableDivElement)||void 0===t?void 0:t.querySelector(":focus");let l=this.checkboxRefs.indexOf(a);l>-1&&(e.preventDefault(),"ArrowDown"===e.key?(l=(l+1)%this.checkboxRefs.length,this.checkboxRefs[l].focus()):"ArrowUp"===e.key&&(e.preventDefault(),l=(l+this.checkboxRefs.length-1)%this.checkboxRefs.length,this.checkboxRefs[l].focus()))}}componentDidRender(){this.checkDivElementScrollbar()}componentDidLoad(){this.tableDivElement&&ResizeObserver&&(this.tableDivElementResizeObserver=new ResizeObserver(this.handleResize.bind(this)),this.tableDivElementResizeObserver.observe(this.tableDivElement)),this.checkAndUpdateStickyState()}handleSettingsChange(e){var t;const a=Object.assign(Object.assign({},this.state._headerCells),{horizontal:e.detail});setState(this,"_headerCells",a),"function"==typeof(null===(t=this.state._on)||void 0===t?void 0:t[Callback.onChangeHeaderCells])&&this.state._on[Callback.onChangeHeaderCells](e,a)}disconnectedCallback(){var e;null===(e=this.tableDivElementResizeObserver)||void 0===e||e.disconnect(),clearTimeout(this.resizeDebounceTimeout)}handleResize(){this.checkDivElementScrollbar(),clearTimeout(this.resizeDebounceTimeout),this.resizeDebounceTimeout=setTimeout(()=>{this.checkAndUpdateStickyState()},150)}checkDivElementScrollbar(){this.tableDivElement&&(this.tableDivElementHasScrollbar=this.tableDivElement.scrollWidth>this.tableDivElement.clientWidth)}calculateFixedColsWidth(){var e,t,a,l,i,s;if(!this._fixedCols)return 0;const o=this.getPrimaryHeaders(this.state._headerCells);let r=0;for(let a=0;a<this._fixedCols[0]&&a<o.length;a++)r+=null!==(t=null===(e=o[a])||void 0===e?void 0:e.width)&&void 0!==t?t:0;for(let e=this.maxCols-this._fixedCols[1];e<this.maxCols&&e<o.length;e++)r+=null!==(l=null===(a=o[e])||void 0===a?void 0:a.width)&&void 0!==l?l:0;if(this.state._selection){const e=null===(i=this.tableDivElement)||void 0===i?void 0:i.querySelector(".kol-table__cell--selection");r+=null!==(s=null==e?void 0:e.offsetWidth)&&void 0!==s?s:0}return r}checkAndUpdateStickyState(){if(!this.tableDivElement||!this._fixedCols)return void(this.stickyColsDisabled=!1);const e=this.tableDivElement.clientWidth,t=this.calculateFixedColsWidth();this.stickyColsDisabled=t>0&&t>=e}updateDataToKeyMap(e){e.forEach(e=>{this.dataToKeyMap.has(e)||this.dataToKeyMap.set(e,nonce())}),this.dataToKeyMap.forEach((t,a)=>{e.includes(a)||this.dataToKeyMap.delete(a)})}getDataKey(e){return this.dataToKeyMap.get(e)}getActionColumnHeader(e){const t=this.horizontal?this.state._headerCells.horizontal:this.state._headerCells.vertical;if(!t||0===t.length)return;const a=this.getPrimaryHeaders(this.state._headerCells)[e];return a&&"action"===a.type?a:void 0}cellRender(e,t){t&&(clearTimeout(this.cellsToRenderTimeouts.get(t)),this.cellsToRenderTimeouts.set(t,setTimeout(()=>{if("function"==typeof e.render){const a=e.render(t,e,e.data,this.state._data);"string"==typeof a&&(t.textContent=a)}})))}getNumberOfCols(e,t){let a=0;return e.forEach(e=>{let t=0;Array.isArray(e)&&e.forEach(e=>{var a;t+=null!==(a=e.colSpan)&&void 0!==a?a:1}),a<t&&(a=t)}),0===a&&(a=t.length),a}getNumberOfRows(e,t){var a;let l=0;return e.forEach(e=>{let t=0;Array.isArray(e)&&e.forEach(e=>{var a;t+=null!==(a=e.rowSpan)&&void 0!==a?a:1}),l<t&&(l=t)}),0===l?l=t.length:l-=(null===(a=this.state._dataFoot)||void 0===a?void 0:a.length)||0,l}getThePrimaryHeadersWithKeyOrRenderFunction(e){const t=[];return e.forEach(e=>{e.forEach(e=>{"string"!=typeof e.key&&"function"!=typeof e.render||t.push(e)})}),t}getPrimaryHeaders(e){var t,a;let l=this.getThePrimaryHeadersWithKeyOrRenderFunction(null!==(t=e.horizontal)&&void 0!==t?t:[]);return this.horizontal=!0,0===l.length&&(l=this.getThePrimaryHeadersWithKeyOrRenderFunction(null!==(a=e.vertical)&&void 0!==a?a:[]),l.length>0&&(this.horizontal=!1)),l}createDataField(e,t,a){var l,i,s,o,r,n,c;t.horizontal=Array.isArray(null==t?void 0:t.horizontal)?t.horizontal:[],t.vertical=Array.isArray(null==t?void 0:t.vertical)?t.vertical:[],this.maxCols=this.getNumberOfCols(t.horizontal,e);const h=this.getPrimaryHeaders(t);let d=this.getNumberOfRows(t.vertical,e),b=0;a&&(b=d,d+=(null===(l=this.state._dataFoot)||void 0===l?void 0:l.length)||0);const u=[],v=[],f=[];t.vertical.forEach((e,t)=>{v[t]=0,f[t]=[]});const _=h;for(let l=b;l<d;l++){const h=[];t.vertical.forEach((e,t)=>{let a=0;if(f[t].forEach(e=>a+=e),a<=l){const i=e[l-a+v[t]];if("object"==typeof i){h.push(Object.assign(Object.assign({},i),{headerCell:!0,data:{}}));let e=1;if("number"==typeof i.rowSpan&&i.rowSpan>1&&(e=i.rowSpan),f[t].push(e),"number"==typeof i.colSpan&&i.colSpan>1)for(let a=1;a<i.colSpan;a++)f[t+a].push(e);v[t]++}}});for(let t=0;t<this.maxCols;t++){let d=this.isFixedCol(t);if("left"===d&&void 0===this.getFixedOffset(t)){let e=null!==(i=this.fixedOffsets[t-1])&&void 0!==i?i:0;e+=null!==(o=null===(s=_[t-1])||void 0===s?void 0:s.width)&&void 0!==o?o:0,this.fixedOffsets[t]=e}if("right"===d&&void 0===this.getFixedOffset(t)){let e=null!==(r=this.fixedOffsets[t+1])&&void 0!==r?r:0;e+=null!==(c=null===(n=_[t+1])||void 0===n?void 0:n.width)&&void 0!==c?c:0,this.fixedOffsets[t]=e}if(!0===this.horizontal){const i=a&&this.state._dataFoot?this.state._dataFoot[l-b]:e[l];if("object"==typeof _[t]&&null!==_[t]&&"object"==typeof i&&null!==i&&("string"==typeof _[t].key||"function"==typeof _[t].render)){const e=i[_[t].key];h.push(Object.assign(Object.assign({},_[t]),{colIndex:t,colSpan:void 0,rowSpan:void 0,data:i,label:e}))}}else if("object"==typeof _[l]&&null!==_[l]&&"object"==typeof e[t]&&null!==e[t]&&("string"==typeof _[l].key||"function"==typeof _[l].render)){const a=_[l].key,i=e[t][a];h.push(Object.assign(Object.assign({},_[l]),{colIndex:t,colSpan:void 0,rowSpan:void 0,data:e[t],label:i}))}}u.push(h)}if(0===e.length){let e=0,a=0;Array.isArray(t.horizontal)&&t.horizontal.length>0&&t.horizontal[0].forEach(t=>{e+=t.colSpan||1}),Array.isArray(t.vertical)&&t.vertical.length>0&&(e-=t.vertical.length,t.vertical[0].forEach(e=>{a+=e.rowSpan||1}));const l={colSpan:e,label:this.translateNoEntries,render:void 0,rowSpan:Math.max(a,1)};0===u.length?u.push([l]):u[0].push(l)}return u}isFixedCol(e){if(this._fixedCols&&void 0!==e&&!this.stickyColsDisabled)return e<this._fixedCols[0]?"left":e>=this.maxCols-this._fixedCols[1]?"right":void 0}getFixedOffset(e){if(this.tableDivElement&&void 0!==e)return void 0!==this.fixedOffsets[e]?this.fixedOffsets[e]:void 0}getOffsetString(e,t){return t&&this._selection?"calc( var(--kol-table-selection-col-width) + "+this.getFixedOffset(e)+"px)":this.getFixedOffset(e)+"px"}handleSelectionChangeCallbackAndEvent(e,t){var a;"function"==typeof(null===(a=this.state._on)||void 0===a?void 0:a[Callback.onSelectionChange])&&this.state._on[Callback.onSelectionChange](e,t),this.host&&dispatchDomEvent(this.host,KolEvent.selectionChange,t)}initializeHeaderCellSettings(){if(this.state._headerCells&&this.state._headerCells.horizontal&&this.state._headerCells.horizontal.length>0){const e=Object.assign(Object.assign({},this.state._headerCells),{horizontal:this.state._headerCells.horizontal.map(e=>e.map(e=>Object.assign(Object.assign({},e),{visible:"boolean"!=typeof e.visible||e.visible,hidable:"boolean"!=typeof e.hidable||e.hidable})))});setState(this,"_headerCells",e)}}componentWillLoad(){this.validateData(this._data),this.validateDataFoot(this._dataFoot),this.validateHeaderCells(this._headerCells),this.validateLabel(this._label),this.validateOn(this._on),this.validateSelection(this._selection),this.validateHasSettingsMenu(this._hasSettingsMenu)}renderSelectionCell(e,t){var a;const l=this.state._selection;if(!l)return"";const i=this.getSelectionKeyPropertyName(),s=null===(a=e[0])||void 0===a?void 0:a.data;if(!s)return"";const o=s[i],r=l.multiple||void 0===l.multiple,n=(()=>{const e=null==l?void 0:l.selectedKeys;return(void 0===e?[]:Array.isArray(e)?e:[e]).some(e=>String(e)===String(o))})(),c=(()=>{const e=null==l?void 0:l.disabledKeys;return(void 0===e?[]:Array.isArray(e)?e:[e]).some(e=>String(e)===String(o))})(),d=l.label(s),b={name:"selection",checked:n,disabled:c,id:String(o),"aria-label":d};return h("td",{key:`tbody-${t}-selection`,class:"kol-table__cell kol-table__cell--selection"},h("div",{class:clsx("kol-table__selection",{"kol-table__selection--checked":n})},r?h("label",{class:clsx("kol-table__selection-label",{"kol-table__selection-label--disabled":c})},h(IconFC,{class:"kol-table__selection-icon",icons:"kolicon "+(n?"kolicon-check":""),label:""}),h("input",Object.assign({class:clsx("kol-table__selection-input kol-table__selection-input--checkbox"),ref:e=>e&&this.checkboxRefs.push(e)},b,{type:"checkbox",onInput:e=>{const t=(()=>{const e=null==l?void 0:l.selectedKeys;return void 0===e?[]:Array.isArray(e)?e:[e]})(),a=n?t.filter(e=>String(e)!==String(o)):[...t,o];this.handleSelectionChangeCallbackAndEvent(e,null!=a?a:[])}}))):h("label",{class:"kol-table__selection-label"},h("input",Object.assign({class:clsx("kol-table__selection-input kol-table__selection-input--radio")},b,{type:"radio",onInput:e=>{this.handleSelectionChangeCallbackAndEvent(e,[o])}}))),h("div",{class:"kol-table__selection-input-tooltip"},h(TooltipFC,{label:d,badgeText:"",id:`${o}-label`,refFloating:()=>{}}))))}getSelectionKeyPropertyName(){var e,t;return null!==(t=null===(e=this.state._selection)||void 0===e?void 0:e.keyPropertyName)&&void 0!==t?t:"id"}getDataWithSelectionEnabled(){const e=this.getSelectionKeyPropertyName();return this.state._data.filter(t=>{var a;const l=null===(a=this.state._selection)||void 0===a?void 0:a.disabledKeys;return!(void 0===l?[]:Array.isArray(l)?l:[l]).some(a=>String(a)===String(t[e]))})}getSelectedKeysWithoutDisabledKeys(){const e=(()=>{var e;const t=null===(e=this.state._selection)||void 0===e?void 0:e.selectedKeys;return void 0===t?[]:Array.isArray(t)?t:[t]})(),t=(()=>{var e;const t=null===(e=this.state._selection)||void 0===e?void 0:e.disabledKeys;return void 0===t?[]:Array.isArray(t)?t:[t]})();return e.filter(e=>!t.some(t=>String(t)===String(e)))}getSelectedKeysWithDisabledKeysOnly(){const e=(()=>{var e;const t=null===(e=this.state._selection)||void 0===e?void 0:e.selectedKeys;return void 0===t?[]:Array.isArray(t)?t:[t]})(),t=(()=>{var e;const t=null===(e=this.state._selection)||void 0===e?void 0:e.disabledKeys;return void 0===t?[]:Array.isArray(t)?t:[t]})();return e.filter(e=>t.some(t=>String(t)===String(e)))}getRevertedSelection(e){var t;const a=this.getSelectionKeyPropertyName(),l=null!==(t=this.getSelectedKeysWithDisabledKeysOnly())&&void 0!==t?t:[];return e&&l.push(...this.getDataWithSelectionEnabled().map(e=>null==e?void 0:e[a])),l}getTableMinWidth(){var e,t;const a=null!==(e=this.state._headerCells.horizontal)&&void 0!==e?e:[],l=[];a.forEach(e=>{e.forEach(e=>{!1!==e.visible&&void 0!==e.width&&e.width>0&&l.push(e.width)})});const i=null!==(t=this.state._headerCells.vertical)&&void 0!==t?t:[],s=[];i.forEach(e=>{e.forEach(e=>{void 0!==e.width&&e.width>0&&s.push(e.width)})});const o=[...s,...l];return 0===o.length?"0px":1===o.length?`${o[0]}px`:`calc(${o.map(e=>`${e}px`).join(" + ")})`}renderHeadingSelectionCell(){var e,t;const a=this.state._selection;if(!a)return h("td",{class:"kol-table__cell kol-table__cell--header",key:"thead-0"});if(!1===a.multiple)return h("td",{key:"thead-0-selection",class:"kol-table__cell kol-table__cell--header kol-table__cell--selection"});const l=null!==(t=null===(e=this.getSelectedKeysWithoutDisabledKeys())||void 0===e?void 0:e.length)&&void 0!==t?t:0,i=l===this.getDataWithSelectionEnabled().length,s=0!==l&&!i;let o="kol-table-selection-indeterminate";i&&!s&&(o="kol-table-selection-none"),0===l&&(o="kol-table-selection-all");const r=translate(o);return h("th",{key:"thead-0-selection",class:"kol-table__cell kol-table__cell--header kol-table__cell--selection"},h("div",{class:clsx("kol-table__selection",{"kol-table__selection--indeterminate":s,"kol-table__selection--checked":i})},h("label",{class:"kol-table__selection-label"},h(IconFC,{class:"kol-table__selection-icon",icons:"kolicon "+(s?"kolicon-minus":i?"kolicon-check":""),label:""}),h("input",{class:clsx("kol-table__selection-input kol-table__selection-input--checkbox"),"data-testid":"selection-checkbox-all",ref:e=>e&&this.checkboxRefs.push(e),name:"selection",checked:i&&!s,indeterminate:s,"aria-label":r,type:"checkbox",onInput:e=>{this.handleSelectionChangeCallbackAndEvent(e,this.getRevertedSelection(!i))}})),h("div",{class:"kol-table__selection-input-tooltip"},h(TooltipFC,{label:r,badgeText:"",id:`${o}-label`,refFloating:()=>{}}))))}renderHeaderTdCell(){const e=this.state._headerCells.horizontal,t=this.state._headerCells.vertical;if(!Array.isArray(e)||0===e.length||!Array.isArray(t)||0===t.length)return h(Fragment,null);const a=t.reduce((e,t)=>{var a;const l=null==t?void 0:t[0];return e+(null!==(a=null==l?void 0:l.width)&&void 0!==a?a:0)},0);return h("td",{"aria-hidden":"true",colSpan:t.length,rowSpan:e.length,style:a>0?{width:`${a}px`}:void 0})}formatSortOrderDescription(e){return this.translateSortOrder.replace("{{order}}",`${e}`)}getSortAriaDescription(e){return"number"==typeof e&&e>0?`${this.translateSort} – ${this.formatSortOrderDescription(e)}`:this.translateSort}renderHeadingCell(e,t,a,l){if(!1===e.visible)return"";const i=!1!==(null==e?void 0:e.sortable),s="string"==typeof e.sortDirection,o=i&&s;let r="none",n="kolicon-sort-neutral";if(o&&e.sortDirection)switch(e.sortDirection){case"ASC":n="kolicon-sort-asc",r="ascending";break;case"DESC":n="kolicon-sort-desc",r="descending";break;default:r="none"}const c=l?"row":"number"==typeof e.colSpan&&e.colSpan>1?"colgroup":"col",d="number"==typeof e.sortOrder&&e.sortOrder>0?e.sortOrder:void 0,b=this.getSortAriaDescription(d),u=void 0!==e.width?`${e.width}px`:void 0,v=this.isFixedCol(a),f="left"===v?this.getOffsetString(a,!0):void 0,_="right"===v?this.getOffsetString(a):void 0;return h("th",{key:`${t}-${a}-${e.label}`,class:clsx("kol-table__cell kol-table__cell--header",`kol-table__cell--${r}`,e.textAlign&&`kol-table__cell--align-${e.textAlign}`,v&&`kol-table__cell--sticky-${v}`),scope:c,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{width:u,left:f,right:_},"aria-sort":r,"data-sort":o&&e.sortDirection?`sort-${e.sortDirection}`:void 0},o&&e.sortDirection?h("span",{class:"kol-table__sort"},h(KolButtonWcTag,{class:"kol-table__sort-button",_icons:{right:n},_label:e.label,_ariaDescription:b,_on:{onClick:t=>{var a;"function"==typeof(null===(a=this.state._on)||void 0===a?void 0:a.onSort)&&e.key&&e.sortDirection&&this.state._on.onSort(t,{key:e.key,currentSortDirection:e.sortDirection}),this.host&&dispatchDomEvent(this.host,KolEvent.sort,{key:e.key,currentSortDirection:e.sortDirection})}}}),d&&h("span",{"aria-hidden":"true",class:"kol-table__sort-order"},d)):e.label)}renderSpacer(e,t){var a,l;const i=(null===(a=this.state._headerCells.vertical)||void 0===a?void 0:a.length)||0,s=null===(l=null==t?void 0:t[0])||void 0===l?void 0:l.reduce((e,t)=>e+(t.colSpan||1),0),o=this.state._selection?1:0;return h("tr",{"aria-hidden":"true",class:clsx("kol-table__spacer",`kol-table__spacer--${e}`)},h("td",{class:clsx(`kol-table__spacer-line kol-table__spacer-line--${e}`),colSpan:i+s+o}))}renderFoot(){if(!this.state._dataFoot||0===this.state._dataFoot.length)return null;const e=this.createDataField(this.state._dataFoot,this.state._headerCells,!0);return h("tfoot",{class:"kol-table__footer"},[this.renderSpacer("foot",e),e.map((e,t)=>this.renderTableRow(e,t,!0,!0))])}render(){const e=this.createDataField(this.state._data,this.state._headerCells);this.checkboxRefs=[];const t=this.state._headerCells.horizontal;return h("div",{key:"c010db0107c8eac0c74782191e5aebddf36903b3",class:"kol-table"},this.state._hasSettingsMenu&&h(KolTableSettingsWcTag,{key:"97972d69593a2c96bc33680728b01a0ca62ebace",_horizontalHeaderCells:null!=t?t:[]}),h("div",{key:"c13d8c5f350f6f1e6770a30008cecd0e758990b5",ref:e=>this.tableDivElement=e,class:"kol-table__scroll-container",tabindex:this.tableDivElementHasScrollbar?"-1":void 0},h("table",{key:"b50354595342c4fca9f51618ac031beab362fdaa",class:"kol-table__table",style:{minWidth:this.getTableMinWidth()}},h("caption",{key:"a8ab9c5220f469621ef8cfcb0d343b00c81c55ca",class:"kol-table__focus-element kol-table__caption",id:"caption",tabindex:this.tableDivElementHasScrollbar?"0":void 0},this.state._label),Array.isArray(t)&&h("thead",{key:"aaad51ae0f6f33f40d9de0faeef482dc13c47211",class:"kol-table__head"},[t.map((e,t)=>h("tr",{class:"kol-table__head-row",key:`thead-${t}`},this.state._selection&&this.renderHeadingSelectionCell(),0===t&&this.renderHeaderTdCell(),Array.isArray(e)&&e.map((e,a)=>this.renderHeadingCell(e,t,a,!1)))),this.renderSpacer("head",t)]),h("tbody",{key:"a25f4158471a652bebb0e684e72c64afeb52057c",class:"kol-table__body"},e.map((e,t)=>this.renderTableRow(e,t,!0))),this.renderFoot())))}get host(){return getElement(this)}static get watchers(){return{_hasSettingsMenu:["validateHasSettingsMenu"],_data:["validateData"],_dataFoot:["validateDataFoot"],_fixedCols:["validateFixedCols"],_headerCells:["validateHeaderCells"],_label:["validateLabel"],_on:["validateOn"],_selection:["validateSelection"]}}};export{KolTableStatelessWc as kol_table_stateless_wc};
|