@public-ui/components 3.1.0 → 3.1.1-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +1 -1
- package/dist/cjs/{Alert-iB2nNldZ.js → Alert-DGlJ7-cQ.js} +1 -1
- package/dist/cjs/Alert-DGlJ7-cQ.js.map +1 -0
- package/dist/cjs/{Collapsible-CAJwi50V.js → Collapsible-DJWeSuRw.js} +1 -1
- package/dist/cjs/Collapsible-DJWeSuRw.js.map +1 -0
- package/dist/cjs/{CustomSuggestionsOptionsGroup-BmxcG68L.js → CustomSuggestionsOptionsGroup-yN_Dm2-S.js} +1 -1
- package/dist/cjs/CustomSuggestionsOptionsGroup-yN_Dm2-S.js.map +1 -0
- package/dist/cjs/{FieldControlStateWrapper-B_0MFAHD.js → FieldControlStateWrapper-wXGm6Y1N.js} +1 -1
- package/dist/cjs/FieldControlStateWrapper-wXGm6Y1N.js.map +1 -0
- package/dist/cjs/{FormFieldStateWrapper-BFcysaVO.js → FormFieldStateWrapper-Dsi0YHSe.js} +1 -1
- package/dist/cjs/FormFieldStateWrapper-Dsi0YHSe.js.map +1 -0
- package/dist/cjs/{Heading-CXo3APiB.js → Heading-C-Ekt9zI.js} +1 -1
- package/dist/cjs/Heading-C-Ekt9zI.js.map +1 -0
- package/dist/cjs/{Icon-CA2N7E-m.js → Icon-CcB9m4If.js} +1 -1
- package/dist/cjs/Icon-CcB9m4If.js.map +1 -0
- package/dist/cjs/{Input-BG9SwAmi.js → Input-CfWBohSR.js} +1 -1
- package/dist/cjs/Input-CfWBohSR.js.map +1 -0
- package/dist/cjs/{InputStateWrapper-Dc3UUVaW.js → InputStateWrapper-Zsl_ObzR.js} +1 -1
- package/dist/cjs/InputStateWrapper-Zsl_ObzR.js.map +1 -0
- package/dist/cjs/{InternalUnderlinedBadgeText-BmcMXSlV.js → InternalUnderlinedBadgeText-DZCo_NaQ.js} +1 -1
- package/dist/cjs/InternalUnderlinedBadgeText-DZCo_NaQ.js.map +1 -0
- package/dist/cjs/{Span-Zi-z0XR5.js → Span-ClzshDIc.js} +1 -1
- package/dist/cjs/Span-ClzshDIc.js.map +1 -0
- package/dist/cjs/access-and-short-key-BExF929g.js.map +1 -0
- package/dist/cjs/align-CGG5V8xM.js.map +1 -0
- package/dist/cjs/align-floating-elements-Bxx5nIn-.js.map +1 -0
- package/dist/cjs/app-globals-Dsibh65W.js +4 -0
- package/dist/cjs/app-globals-Dsibh65W.js.map +1 -0
- package/dist/cjs/ariaCurrentService-3051l6MI.js.map +1 -0
- package/dist/cjs/associated.controller-jhz1Ef5Z.js.map +1 -0
- package/dist/cjs/auto-complete-DQ9TPAgi.js.map +1 -0
- package/dist/cjs/bem-BVClcAVJ.js.map +1 -0
- package/dist/cjs/bem-CWXmxX43.js.map +1 -0
- package/dist/cjs/bootstrap-DmmGbpjB.js.map +1 -0
- package/dist/cjs/browser-D7A31aEp.js.map +1 -0
- package/dist/cjs/button-variant-Dc6H5OWB.js.map +1 -0
- package/dist/cjs/clsx-CkZlkaek.js.map +1 -0
- package/dist/cjs/color-D7OxzTlF.js.map +1 -0
- package/dist/cjs/common-Cd2qH809.js.map +1 -0
- package/dist/cjs/component-names-CuI-0Pbo.js.map +1 -0
- package/dist/cjs/{controller-DHLdEAgl.js → controller-DXbw2g3Q.js} +1 -1
- package/dist/cjs/controller-DXbw2g3Q.js.map +1 -0
- package/dist/cjs/controller-Q-LXBPh4.js.map +1 -0
- package/dist/cjs/{controller-icon-oRdlfcl8.js → controller-icon-0fgqGJ_9.js} +1 -1
- package/dist/cjs/controller-icon-0fgqGJ_9.js.map +1 -0
- package/dist/cjs/{controller-DT6QqMUx.js → controller-oZmmdGH4.js} +1 -1
- package/dist/cjs/controller-oZmmdGH4.js.map +1 -0
- package/dist/cjs/{controller-r0aj2ftA.js → controller-sNinWUNt.js} +1 -1
- package/dist/cjs/controller-sNinWUNt.js.map +1 -0
- package/dist/cjs/custom-class-BhuMM_WI.js.map +1 -0
- package/dist/cjs/{dev.utils-7DjklDXI.js → dev.utils-DX5sXr-T.js} +1 -1
- package/dist/cjs/dev.utils-DX5sXr-T.js.map +1 -0
- package/dist/cjs/{devtools-C0JF5BjI.js → devtools-DXvX7lT7.js} +1 -1
- package/dist/cjs/devtools-DXvX7lT7.js.map +1 -0
- package/dist/cjs/disabled-DT-7CUov.js.map +1 -0
- package/dist/cjs/events-cX8h6I3p.js.map +1 -0
- package/dist/cjs/has-closer-COtNvUI4.js.map +1 -0
- package/dist/cjs/hide-label-DdGk9NfD.js.map +1 -0
- package/dist/cjs/href-BxaZOlRE.js.map +1 -0
- package/dist/cjs/i18n-BnIFsVIa.js.map +1 -0
- package/dist/cjs/i18n-DNWGj4j8.js.map +1 -0
- package/dist/cjs/icons-D_PtPRwb.js.map +1 -0
- package/dist/cjs/image-source-DI336Od8.js.map +1 -0
- package/dist/cjs/index-CKs-bCSC.js +4 -0
- package/dist/cjs/index-CKs-bCSC.js.map +1 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/inline-CGvu_CRs.js.map +1 -0
- package/dist/cjs/isObject-DMA85Fq4.js.map +1 -0
- package/dist/cjs/keyboard-C096g_BV.js.map +1 -0
- package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
- package/dist/cjs/kol-abbr.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
- package/dist/cjs/kol-accordion.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-alert-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-alert-wc.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-alert.cjs.entry.js +1 -1
- package/dist/cjs/kol-alert.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-avatar-wc.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
- package/dist/cjs/kol-avatar.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-badge.cjs.entry.js +1 -1
- package/dist/cjs/kol-badge.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/kol-breadcrumb.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
- package/dist/cjs/kol-button-link.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-button-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-button-wc.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-button.cjs.entry.js +1 -1
- package/dist/cjs/kol-button.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-card-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-card-wc.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-card.cjs.entry.js +1 -1
- package/dist/cjs/kol-card.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-combobox.cjs.entry.js +1 -1
- package/dist/cjs/kol-combobox.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-details.cjs.entry.js +1 -1
- package/dist/cjs/kol-details.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-drawer.cjs.entry.js +1 -1
- package/dist/cjs/kol-drawer.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-form.cjs.entry.js +1 -1
- package/dist/cjs/kol-form.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-heading.cjs.entry.js +1 -1
- package/dist/cjs/kol-heading.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-icon.cjs.entry.js +1 -1
- package/dist/cjs/kol-icon.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-image.cjs.entry.js +1 -1
- package/dist/cjs/kol-image.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-checkbox.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-color.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-date.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-email.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-file.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-number.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-password.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-radio.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-range.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-text.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
- package/dist/cjs/kol-kolibri.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
- package/dist/cjs/kol-link-button.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-link-wc.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-link.cjs.entry.js +1 -1
- package/dist/cjs/kol-link.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-modal.cjs.entry.js +1 -1
- package/dist/cjs/kol-modal.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-nav.cjs.entry.js +1 -1
- package/dist/cjs/kol-nav.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-pagination-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-pagination-wc.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
- package/dist/cjs/kol-pagination.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-popover-button-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-popover-button-wc.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-popover-button.cjs.entry.js +1 -1
- package/dist/cjs/kol-popover-button.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-popover-wc.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-progress.cjs.entry.js +1 -1
- package/dist/cjs/kol-progress.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-quote.cjs.entry.js +1 -1
- package/dist/cjs/kol-quote.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-select-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-select-wc.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-select.cjs.entry.js +1 -1
- package/dist/cjs/kol-select.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-single-select.cjs.entry.js +1 -1
- package/dist/cjs/kol-single-select.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
- package/dist/cjs/kol-skip-nav.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-spin.cjs.entry.js +1 -1
- package/dist/cjs/kol-spin.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
- package/dist/cjs/kol-split-button.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-table-settings-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-table-settings-wc.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-table-stateful.cjs.entry.js +1 -1
- package/dist/cjs/kol-table-stateful.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-table-stateless-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-table-stateless-wc.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-table-stateless.cjs.entry.js +1 -1
- package/dist/cjs/kol-table-stateless.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
- package/dist/cjs/kol-tabs.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
- package/dist/cjs/kol-textarea.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
- package/dist/cjs/kol-toast-container.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-toolbar.cjs.entry.js +1 -1
- package/dist/cjs/kol-toolbar.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-tooltip-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-tooltip-wc.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-tree-item-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-tree-item-wc.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-tree-item.cjs.entry.js +1 -1
- package/dist/cjs/kol-tree-item.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-tree-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-tree-wc.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-tree.cjs.entry.js +1 -1
- package/dist/cjs/kol-tree.entry.cjs.js.map +1 -0
- package/dist/cjs/kol-version.cjs.entry.js +1 -1
- package/dist/cjs/kol-version.entry.cjs.js.map +1 -0
- package/dist/cjs/kolibri.cjs.js +1 -1
- package/dist/cjs/kolibri.cjs.js.map +1 -0
- package/dist/cjs/label-Nicf9N_T.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/markdown-1dxeA2q6.js.map +1 -0
- package/dist/cjs/max-length-behavior-Bvbwhaxv.js.map +1 -0
- package/dist/cjs/multiple-DRhU5nKU.js.map +1 -0
- package/dist/cjs/open-CFgcd51_.js.map +1 -0
- package/dist/cjs/orientation-BGODo_Ua.js.map +1 -0
- package/dist/cjs/placeholder-BncK-3gZ.js.map +1 -0
- package/dist/cjs/read-only-dIvCm73W.js.map +1 -0
- package/dist/cjs/required-CXU7vdyH.js.map +1 -0
- package/dist/cjs/reuse-Cs36Ddzu.js.map +1 -0
- package/dist/cjs/rows-BUvz5j5U.js.map +1 -0
- package/dist/cjs/show-C0ZlevIe.js.map +1 -0
- package/dist/cjs/spell-check-Bkq4G9L7.js.map +1 -0
- package/dist/cjs/suggestions-BjiW0xio.js.map +1 -0
- package/dist/cjs/table-settings-Ct3SRuhX.js.map +1 -0
- package/dist/cjs/test-component.cjs.entry.js +1 -1
- package/dist/cjs/test-component.entry.cjs.js.map +1 -0
- package/dist/cjs/tooltip-align-WJPFINTL.js.map +1 -0
- package/dist/cjs/tooltip-open-tracking-Ba0udJRU.js.map +1 -0
- package/dist/cjs/tslib.es6-7DbU_BSw.js.map +1 -0
- package/dist/cjs/unique-nav-labels-hzeBq0jr.js.map +1 -0
- package/dist/cjs/validation-BvY0ZgXp.js.map +1 -0
- package/dist/cjs/validation-DsxRnVmU.js.map +1 -0
- package/dist/components/Alert.js +1 -1
- package/dist/components/Alert.js.map +1 -0
- package/dist/components/Collapsible.js +1 -1
- package/dist/components/Collapsible.js.map +1 -0
- package/dist/components/CustomSuggestionsOptionsGroup.js +1 -1
- package/dist/components/CustomSuggestionsOptionsGroup.js.map +1 -0
- package/dist/components/FieldControlStateWrapper.js +1 -1
- package/dist/components/FieldControlStateWrapper.js.map +1 -0
- package/dist/components/Heading.js +1 -1
- package/dist/components/Heading.js.map +1 -0
- package/dist/components/Icon.js +1 -1
- package/dist/components/Icon.js.map +1 -0
- package/dist/components/Input.js +1 -1
- package/dist/components/Input.js.map +1 -0
- package/dist/components/InputStateWrapper.js +1 -1
- package/dist/components/InputStateWrapper.js.map +1 -0
- package/dist/components/InternalUnderlinedBadgeText.js +1 -1
- package/dist/components/InternalUnderlinedBadgeText.js.map +1 -0
- package/dist/components/Span.js +1 -1
- package/dist/components/Span.js.map +1 -0
- package/dist/components/access-and-short-key.js +1 -1
- package/dist/components/access-and-short-key.js.map +1 -0
- package/dist/components/align-floating-elements.js +1 -1
- package/dist/components/align-floating-elements.js.map +1 -0
- package/dist/components/align.js +1 -1
- package/dist/components/align.js.map +1 -0
- package/dist/components/ariaCurrentService.js +1 -1
- package/dist/components/ariaCurrentService.js.map +1 -0
- package/dist/components/associated.controller.js +1 -1
- package/dist/components/associated.controller.js.map +1 -0
- package/dist/components/auto-complete.js +1 -1
- package/dist/components/auto-complete.js.map +1 -0
- package/dist/components/bem.js +1 -1
- package/dist/components/bem.js.map +1 -0
- package/dist/components/bem2.js +1 -1
- package/dist/components/bem2.js.map +1 -0
- package/dist/components/bootstrap.js +1 -1
- package/dist/components/bootstrap.js.map +1 -0
- package/dist/components/browser.js +1 -1
- package/dist/components/browser.js.map +1 -0
- package/dist/components/button-variant.js +1 -1
- package/dist/components/button-variant.js.map +1 -0
- package/dist/components/clsx.js +1 -1
- package/dist/components/clsx.js.map +1 -0
- package/dist/components/color.js +1 -1
- package/dist/components/color.js.map +1 -0
- package/dist/components/common.js +1 -1
- package/dist/components/common.js.map +1 -0
- package/dist/components/component-names.js +1 -1
- package/dist/components/component-names.js.map +1 -0
- package/dist/components/controller-icon.js +1 -1
- package/dist/components/controller-icon.js.map +1 -0
- package/dist/components/controller.js +1 -1
- package/dist/components/controller.js.map +1 -0
- package/dist/components/controller2.js +1 -1
- package/dist/components/controller2.js.map +1 -0
- package/dist/components/controller3.js +1 -1
- package/dist/components/controller3.js.map +1 -0
- package/dist/components/controller4.js +1 -1
- package/dist/components/controller4.js.map +1 -0
- package/dist/components/controller5.js +1 -1
- package/dist/components/controller5.js.map +1 -0
- package/dist/components/custom-class.js +1 -1
- package/dist/components/custom-class.js.map +1 -0
- package/dist/components/dev.utils.js +1 -1
- package/dist/components/dev.utils.js.map +1 -0
- package/dist/components/devtools.js +1 -1
- package/dist/components/devtools.js.map +1 -0
- package/dist/components/disabled.js +1 -1
- package/dist/components/disabled.js.map +1 -0
- package/dist/components/events.js +1 -1
- package/dist/components/events.js.map +1 -0
- package/dist/components/has-closer.js +1 -1
- package/dist/components/has-closer.js.map +1 -0
- package/dist/components/hide-label.js +1 -1
- package/dist/components/hide-label.js.map +1 -0
- package/dist/components/href.js +1 -1
- package/dist/components/href.js.map +1 -0
- package/dist/components/i18n.js +1 -1
- package/dist/components/i18n.js.map +1 -0
- package/dist/components/i18n2.js +1 -1
- package/dist/components/i18n2.js.map +1 -0
- package/dist/components/icons.js +1 -1
- package/dist/components/icons.js.map +1 -0
- package/dist/components/image-source.js +1 -1
- package/dist/components/image-source.js.map +1 -0
- package/dist/components/index.d.ts +0 -2
- package/dist/components/index.js +1 -1
- package/dist/components/index.js.map +1 -0
- package/dist/components/inline.js +1 -1
- package/dist/components/inline.js.map +1 -0
- package/dist/components/isObject.js +1 -1
- package/dist/components/isObject.js.map +1 -0
- package/dist/components/keyboard.js +1 -1
- package/dist/components/keyboard.js.map +1 -0
- package/dist/components/kol-abbr.js +1 -1
- package/dist/components/kol-abbr.js.map +1 -0
- package/dist/components/kol-accordion.js +1 -1
- package/dist/components/kol-accordion.js.map +1 -0
- package/dist/components/kol-alert-wc.js +1 -1
- package/dist/components/kol-alert-wc.js.map +1 -0
- package/dist/components/kol-alert.js +1 -1
- package/dist/components/kol-alert.js.map +1 -0
- package/dist/components/kol-avatar-wc.js +1 -1
- package/dist/components/kol-avatar-wc.js.map +1 -0
- package/dist/components/kol-avatar.js +1 -1
- package/dist/components/kol-avatar.js.map +1 -0
- package/dist/components/kol-badge.js +1 -1
- package/dist/components/kol-badge.js.map +1 -0
- package/dist/components/kol-breadcrumb.js +1 -1
- package/dist/components/kol-breadcrumb.js.map +1 -0
- package/dist/components/kol-button-link.js +1 -1
- package/dist/components/kol-button-link.js.map +1 -0
- package/dist/components/kol-button-wc.js +1 -1
- package/dist/components/kol-button-wc.js.map +1 -0
- package/dist/components/kol-button.js +1 -1
- package/dist/components/kol-button.js.map +1 -0
- package/dist/components/kol-card-wc.js +1 -1
- package/dist/components/kol-card-wc.js.map +1 -0
- package/dist/components/kol-card.js +1 -1
- package/dist/components/kol-card.js.map +1 -0
- package/dist/components/kol-combobox.js +1 -1
- package/dist/components/kol-combobox.js.map +1 -0
- package/dist/components/kol-details.js +1 -1
- package/dist/components/kol-details.js.map +1 -0
- package/dist/components/kol-drawer.js +1 -1
- package/dist/components/kol-drawer.js.map +1 -0
- package/dist/components/kol-form.js +1 -1
- package/dist/components/kol-form.js.map +1 -0
- package/dist/components/kol-heading.js +1 -1
- package/dist/components/kol-heading.js.map +1 -0
- package/dist/components/kol-icon.js +1 -1
- package/dist/components/kol-icon.js.map +1 -0
- package/dist/components/kol-image.js +1 -1
- package/dist/components/kol-image.js.map +1 -0
- package/dist/components/kol-input-checkbox.js +1 -1
- package/dist/components/kol-input-checkbox.js.map +1 -0
- package/dist/components/kol-input-color.js +1 -1
- package/dist/components/kol-input-color.js.map +1 -0
- package/dist/components/kol-input-date.js +1 -1
- package/dist/components/kol-input-date.js.map +1 -0
- package/dist/components/kol-input-email.js +1 -1
- package/dist/components/kol-input-email.js.map +1 -0
- package/dist/components/kol-input-file.js +1 -1
- package/dist/components/kol-input-file.js.map +1 -0
- package/dist/components/kol-input-number.js +1 -1
- package/dist/components/kol-input-number.js.map +1 -0
- package/dist/components/kol-input-password.js +1 -1
- package/dist/components/kol-input-password.js.map +1 -0
- package/dist/components/kol-input-radio.js +1 -1
- package/dist/components/kol-input-radio.js.map +1 -0
- package/dist/components/kol-input-range.js +1 -1
- package/dist/components/kol-input-range.js.map +1 -0
- package/dist/components/kol-input-text.js +1 -1
- package/dist/components/kol-input-text.js.map +1 -0
- package/dist/components/kol-kolibri.js +1 -1
- package/dist/components/kol-kolibri.js.map +1 -0
- package/dist/components/kol-link-button.js +1 -1
- package/dist/components/kol-link-button.js.map +1 -0
- package/dist/components/kol-link-wc.js +1 -1
- package/dist/components/kol-link-wc.js.map +1 -0
- package/dist/components/kol-link.js +1 -1
- package/dist/components/kol-link.js.map +1 -0
- package/dist/components/kol-modal.js +1 -1
- package/dist/components/kol-modal.js.map +1 -0
- package/dist/components/kol-nav.js +1 -1
- package/dist/components/kol-nav.js.map +1 -0
- package/dist/components/kol-pagination-wc.js +1 -1
- package/dist/components/kol-pagination-wc.js.map +1 -0
- package/dist/components/kol-pagination.js +1 -1
- package/dist/components/kol-pagination.js.map +1 -0
- package/dist/components/kol-popover-button-wc.js +1 -1
- package/dist/components/kol-popover-button-wc.js.map +1 -0
- package/dist/components/kol-popover-button.js +1 -1
- package/dist/components/kol-popover-button.js.map +1 -0
- package/dist/components/kol-popover-wc.js +1 -1
- package/dist/components/kol-popover-wc.js.map +1 -0
- package/dist/components/kol-progress.js +1 -1
- package/dist/components/kol-progress.js.map +1 -0
- package/dist/components/kol-quote.js +1 -1
- package/dist/components/kol-quote.js.map +1 -0
- package/dist/components/kol-select-wc.js +1 -1
- package/dist/components/kol-select-wc.js.map +1 -0
- package/dist/components/kol-select.js +1 -1
- package/dist/components/kol-select.js.map +1 -0
- package/dist/components/kol-single-select.js +1 -1
- package/dist/components/kol-single-select.js.map +1 -0
- package/dist/components/kol-skip-nav.js +1 -1
- package/dist/components/kol-skip-nav.js.map +1 -0
- package/dist/components/kol-spin.js +1 -1
- package/dist/components/kol-spin.js.map +1 -0
- package/dist/components/kol-split-button.js +1 -1
- package/dist/components/kol-split-button.js.map +1 -0
- package/dist/components/kol-table-settings-wc.js +1 -1
- package/dist/components/kol-table-settings-wc.js.map +1 -0
- package/dist/components/kol-table-stateful.js +1 -1
- package/dist/components/kol-table-stateful.js.map +1 -0
- package/dist/components/kol-table-stateless-wc.js +1 -1
- package/dist/components/kol-table-stateless-wc.js.map +1 -0
- package/dist/components/kol-table-stateless.js +1 -1
- package/dist/components/kol-table-stateless.js.map +1 -0
- package/dist/components/kol-tabs.js +1 -1
- package/dist/components/kol-tabs.js.map +1 -0
- package/dist/components/kol-textarea.js +1 -1
- package/dist/components/kol-textarea.js.map +1 -0
- package/dist/components/kol-toast-container.js +1 -1
- package/dist/components/kol-toast-container.js.map +1 -0
- package/dist/components/kol-toolbar.js +1 -1
- package/dist/components/kol-toolbar.js.map +1 -0
- package/dist/components/kol-tooltip-wc.js +1 -1
- package/dist/components/kol-tooltip-wc.js.map +1 -0
- package/dist/components/kol-tree-item-wc.js +1 -1
- package/dist/components/kol-tree-item-wc.js.map +1 -0
- package/dist/components/kol-tree-item.js +1 -1
- package/dist/components/kol-tree-item.js.map +1 -0
- package/dist/components/kol-tree-wc.js +1 -1
- package/dist/components/kol-tree-wc.js.map +1 -0
- package/dist/components/kol-tree.js +1 -1
- package/dist/components/kol-tree.js.map +1 -0
- package/dist/components/kol-version.js +1 -1
- package/dist/components/kol-version.js.map +1 -0
- package/dist/components/label.js +1 -1
- package/dist/components/label.js.map +1 -0
- package/dist/components/markdown.js +1 -1
- package/dist/components/markdown.js.map +1 -0
- package/dist/components/max-length-behavior.js +1 -1
- package/dist/components/max-length-behavior.js.map +1 -0
- package/dist/components/multiple.js +1 -1
- package/dist/components/multiple.js.map +1 -0
- package/dist/components/open.js +1 -1
- package/dist/components/open.js.map +1 -0
- package/dist/components/orientation.js +1 -1
- package/dist/components/orientation.js.map +1 -0
- package/dist/components/placeholder.js +1 -1
- package/dist/components/placeholder.js.map +1 -0
- package/dist/components/read-only.js +1 -1
- package/dist/components/read-only.js.map +1 -0
- package/dist/components/required.js +1 -1
- package/dist/components/required.js.map +1 -0
- package/dist/components/reuse.js +1 -1
- package/dist/components/reuse.js.map +1 -0
- package/dist/components/rows.js +1 -1
- package/dist/components/rows.js.map +1 -0
- package/dist/components/show.js +1 -1
- package/dist/components/show.js.map +1 -0
- package/dist/components/spell-check.js +1 -1
- package/dist/components/spell-check.js.map +1 -0
- package/dist/components/suggestions.js +1 -1
- package/dist/components/suggestions.js.map +1 -0
- package/dist/components/table-settings.js +1 -1
- package/dist/components/table-settings.js.map +1 -0
- package/dist/components/test-component.js +1 -1
- package/dist/components/test-component.js.map +1 -0
- package/dist/components/tooltip-align.js +1 -1
- package/dist/components/tooltip-align.js.map +1 -0
- package/dist/components/tooltip-open-tracking.js +1 -1
- package/dist/components/tooltip-open-tracking.js.map +1 -0
- package/dist/components/tslib.es6.js +1 -1
- package/dist/components/tslib.es6.js.map +1 -0
- package/dist/components/unique-nav-labels.js +1 -1
- package/dist/components/unique-nav-labels.js.map +1 -0
- package/dist/components/validation.js +1 -1
- package/dist/components/validation.js.map +1 -0
- package/dist/components/validation2.js +1 -1
- package/dist/components/validation2.js.map +1 -0
- package/dist/esm/{Alert-I3c2hFqL.js → Alert-Cm2rIRe0.js} +1 -1
- package/dist/esm/Alert-Cm2rIRe0.js.map +1 -0
- package/dist/esm/{Collapsible-CK8NIzH0.js → Collapsible-CE8N0OFy.js} +1 -1
- package/dist/esm/Collapsible-CE8N0OFy.js.map +1 -0
- package/dist/esm/{CustomSuggestionsOptionsGroup-CKk6vmBF.js → CustomSuggestionsOptionsGroup-CNf-YMgB.js} +1 -1
- package/dist/esm/CustomSuggestionsOptionsGroup-CNf-YMgB.js.map +1 -0
- package/dist/esm/{FieldControlStateWrapper-CHxIkx4o.js → FieldControlStateWrapper-BDje5RqS.js} +1 -1
- package/dist/esm/FieldControlStateWrapper-BDje5RqS.js.map +1 -0
- package/dist/esm/{FormFieldStateWrapper-BD6_Aq_y.js → FormFieldStateWrapper-CYUggqut.js} +1 -1
- package/dist/esm/FormFieldStateWrapper-CYUggqut.js.map +1 -0
- package/dist/esm/{Heading-DwQEABii.js → Heading-Db6jaHsC.js} +1 -1
- package/dist/esm/Heading-Db6jaHsC.js.map +1 -0
- package/dist/esm/{Icon-DazIQvDi.js → Icon-CwANyZXW.js} +1 -1
- package/dist/esm/Icon-CwANyZXW.js.map +1 -0
- package/dist/esm/Input-B4wC7BXG.js +4 -0
- package/dist/esm/Input-B4wC7BXG.js.map +1 -0
- package/dist/esm/{InputStateWrapper-Br3zT89Q.js → InputStateWrapper-eXDlJHzK.js} +1 -1
- package/dist/esm/InputStateWrapper-eXDlJHzK.js.map +1 -0
- package/dist/esm/{InternalUnderlinedBadgeText-BXMEPoNX.js → InternalUnderlinedBadgeText-BY8t_M-y.js} +1 -1
- package/dist/esm/InternalUnderlinedBadgeText-BY8t_M-y.js.map +1 -0
- package/dist/esm/{Span-_4yQD2YZ.js → Span-BxCN_Xhc.js} +1 -1
- package/dist/esm/Span-BxCN_Xhc.js.map +1 -0
- package/dist/esm/access-and-short-key-B37XLwy2.js.map +1 -0
- package/dist/esm/align-D-ifSKu8.js.map +1 -0
- package/dist/esm/align-floating-elements-BkpeqvtE.js.map +1 -0
- package/dist/esm/app-globals-Cl2aKvUZ.js +4 -0
- package/dist/esm/app-globals-Cl2aKvUZ.js.map +1 -0
- package/dist/esm/ariaCurrentService-YoLNpD5S.js.map +1 -0
- package/dist/esm/associated.controller-B9GDDaFL.js.map +1 -0
- package/dist/esm/auto-complete-mCkUnxg2.js.map +1 -0
- package/dist/esm/bem-BBRwGb1a.js.map +1 -0
- package/dist/esm/bem-Dj4gWVFO.js.map +1 -0
- package/dist/esm/bootstrap-DcyDkVEo.js.map +1 -0
- package/dist/esm/browser-DiRe0qUf.js.map +1 -0
- package/dist/esm/button-variant-_wL6MroY.js.map +1 -0
- package/dist/esm/clsx-eK3rPvPS.js.map +1 -0
- package/dist/esm/color-BOIEtqEM.js.map +1 -0
- package/dist/esm/common-Dd0zJQbD.js.map +1 -0
- package/dist/esm/component-names-C3fyby67.js.map +1 -0
- package/dist/esm/{controller-CBTbnj0P.js → controller-B633DDTP.js} +1 -1
- package/dist/esm/controller-B633DDTP.js.map +1 -0
- package/dist/esm/{controller-hCTGmOJP.js → controller-C7-mWgyj.js} +1 -1
- package/dist/esm/controller-C7-mWgyj.js.map +1 -0
- package/dist/esm/controller-CM5wW8Ij.js.map +1 -0
- package/dist/esm/{controller-BVGTTRsM.js → controller-DvezPCPd.js} +1 -1
- package/dist/esm/controller-DvezPCPd.js.map +1 -0
- package/dist/esm/{controller-icon-z0j8meAS.js → controller-icon-Cz32NTV1.js} +1 -1
- package/dist/esm/controller-icon-Cz32NTV1.js.map +1 -0
- package/dist/esm/custom-class-nuoQ9Aml.js.map +1 -0
- package/dist/esm/{dev.utils-CT0IU26V.js → dev.utils-CzspusBt.js} +1 -1
- package/dist/esm/dev.utils-CzspusBt.js.map +1 -0
- package/dist/esm/{devtools-CKGr6nvH.js → devtools-CgVBMrrg.js} +1 -1
- package/dist/esm/devtools-CgVBMrrg.js.map +1 -0
- package/dist/esm/disabled-BhpAFgSp.js.map +1 -0
- package/dist/esm/events-9-skLO0f.js.map +1 -0
- package/dist/esm/has-closer-CQzjaTkv.js.map +1 -0
- package/dist/esm/hide-label-B9FhGrWP.js.map +1 -0
- package/dist/esm/href-rwDd36rS.js.map +1 -0
- package/dist/esm/i18n-CfLoIZ8T.js.map +1 -0
- package/dist/esm/i18n-LBpyQ66X.js.map +1 -0
- package/dist/esm/icons-DNTuScEN.js.map +1 -0
- package/dist/esm/image-source-BfBEJ0rX.js.map +1 -0
- package/dist/esm/index-kRqNhH8v.js +4 -0
- package/dist/esm/index-kRqNhH8v.js.map +1 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/inline-cDaqwSfK.js.map +1 -0
- package/dist/esm/isObject-DvSELytj.js.map +1 -0
- package/dist/esm/keyboard-D6PoWr38.js.map +1 -0
- package/dist/esm/kol-abbr.entry.js +1 -1
- package/dist/esm/kol-abbr.entry.js.map +1 -0
- package/dist/esm/kol-accordion.entry.js +1 -1
- package/dist/esm/kol-accordion.entry.js.map +1 -0
- package/dist/esm/kol-alert-wc.entry.js +1 -1
- package/dist/esm/kol-alert-wc.entry.js.map +1 -0
- package/dist/esm/kol-alert.entry.js +1 -1
- package/dist/esm/kol-alert.entry.js.map +1 -0
- package/dist/esm/kol-avatar-wc.entry.js +1 -1
- package/dist/esm/kol-avatar-wc.entry.js.map +1 -0
- package/dist/esm/kol-avatar.entry.js +1 -1
- package/dist/esm/kol-avatar.entry.js.map +1 -0
- package/dist/esm/kol-badge.entry.js +1 -1
- package/dist/esm/kol-badge.entry.js.map +1 -0
- package/dist/esm/kol-breadcrumb.entry.js +1 -1
- package/dist/esm/kol-breadcrumb.entry.js.map +1 -0
- package/dist/esm/kol-button-link.entry.js +1 -1
- package/dist/esm/kol-button-link.entry.js.map +1 -0
- package/dist/esm/kol-button-wc.entry.js +1 -1
- package/dist/esm/kol-button-wc.entry.js.map +1 -0
- package/dist/esm/kol-button.entry.js +1 -1
- package/dist/esm/kol-button.entry.js.map +1 -0
- package/dist/esm/kol-card-wc.entry.js +1 -1
- package/dist/esm/kol-card-wc.entry.js.map +1 -0
- package/dist/esm/kol-card.entry.js +1 -1
- package/dist/esm/kol-card.entry.js.map +1 -0
- package/dist/esm/kol-combobox.entry.js +1 -1
- package/dist/esm/kol-combobox.entry.js.map +1 -0
- package/dist/esm/kol-details.entry.js +1 -1
- package/dist/esm/kol-details.entry.js.map +1 -0
- package/dist/esm/kol-drawer.entry.js +1 -1
- package/dist/esm/kol-drawer.entry.js.map +1 -0
- package/dist/esm/kol-form.entry.js +1 -1
- package/dist/esm/kol-form.entry.js.map +1 -0
- package/dist/esm/kol-heading.entry.js +1 -1
- package/dist/esm/kol-heading.entry.js.map +1 -0
- package/dist/esm/kol-icon.entry.js +1 -1
- package/dist/esm/kol-icon.entry.js.map +1 -0
- package/dist/esm/kol-image.entry.js +1 -1
- package/dist/esm/kol-image.entry.js.map +1 -0
- package/dist/esm/kol-input-checkbox.entry.js +1 -1
- package/dist/esm/kol-input-checkbox.entry.js.map +1 -0
- package/dist/esm/kol-input-color.entry.js +1 -1
- package/dist/esm/kol-input-color.entry.js.map +1 -0
- package/dist/esm/kol-input-date.entry.js +1 -1
- package/dist/esm/kol-input-date.entry.js.map +1 -0
- package/dist/esm/kol-input-email.entry.js +1 -1
- package/dist/esm/kol-input-email.entry.js.map +1 -0
- package/dist/esm/kol-input-file.entry.js +1 -1
- package/dist/esm/kol-input-file.entry.js.map +1 -0
- package/dist/esm/kol-input-number.entry.js +1 -1
- package/dist/esm/kol-input-number.entry.js.map +1 -0
- package/dist/esm/kol-input-password.entry.js +1 -1
- package/dist/esm/kol-input-password.entry.js.map +1 -0
- package/dist/esm/kol-input-radio.entry.js +1 -1
- package/dist/esm/kol-input-radio.entry.js.map +1 -0
- package/dist/esm/kol-input-range.entry.js +1 -1
- package/dist/esm/kol-input-range.entry.js.map +1 -0
- package/dist/esm/kol-input-text.entry.js +1 -1
- package/dist/esm/kol-input-text.entry.js.map +1 -0
- package/dist/esm/kol-kolibri.entry.js +1 -1
- package/dist/esm/kol-kolibri.entry.js.map +1 -0
- package/dist/esm/kol-link-button.entry.js +1 -1
- package/dist/esm/kol-link-button.entry.js.map +1 -0
- package/dist/esm/kol-link-wc.entry.js +1 -1
- package/dist/esm/kol-link-wc.entry.js.map +1 -0
- package/dist/esm/kol-link.entry.js +1 -1
- package/dist/esm/kol-link.entry.js.map +1 -0
- package/dist/esm/kol-modal.entry.js +1 -1
- package/dist/esm/kol-modal.entry.js.map +1 -0
- package/dist/esm/kol-nav.entry.js +1 -1
- package/dist/esm/kol-nav.entry.js.map +1 -0
- package/dist/esm/kol-pagination-wc.entry.js +1 -1
- package/dist/esm/kol-pagination-wc.entry.js.map +1 -0
- package/dist/esm/kol-pagination.entry.js +1 -1
- package/dist/esm/kol-pagination.entry.js.map +1 -0
- package/dist/esm/kol-popover-button-wc.entry.js +1 -1
- package/dist/esm/kol-popover-button-wc.entry.js.map +1 -0
- package/dist/esm/kol-popover-button.entry.js +1 -1
- package/dist/esm/kol-popover-button.entry.js.map +1 -0
- package/dist/esm/kol-popover-wc.entry.js +1 -1
- package/dist/esm/kol-popover-wc.entry.js.map +1 -0
- package/dist/esm/kol-progress.entry.js +1 -1
- package/dist/esm/kol-progress.entry.js.map +1 -0
- package/dist/esm/kol-quote.entry.js +1 -1
- package/dist/esm/kol-quote.entry.js.map +1 -0
- package/dist/esm/kol-select-wc.entry.js +1 -1
- package/dist/esm/kol-select-wc.entry.js.map +1 -0
- package/dist/esm/kol-select.entry.js +1 -1
- package/dist/esm/kol-select.entry.js.map +1 -0
- package/dist/esm/kol-single-select.entry.js +1 -1
- package/dist/esm/kol-single-select.entry.js.map +1 -0
- package/dist/esm/kol-skip-nav.entry.js +1 -1
- package/dist/esm/kol-skip-nav.entry.js.map +1 -0
- package/dist/esm/kol-spin.entry.js +1 -1
- package/dist/esm/kol-spin.entry.js.map +1 -0
- package/dist/esm/kol-split-button.entry.js +1 -1
- package/dist/esm/kol-split-button.entry.js.map +1 -0
- package/dist/esm/kol-table-settings-wc.entry.js +1 -1
- package/dist/esm/kol-table-settings-wc.entry.js.map +1 -0
- package/dist/esm/kol-table-stateful.entry.js +1 -1
- package/dist/esm/kol-table-stateful.entry.js.map +1 -0
- package/dist/esm/kol-table-stateless-wc.entry.js +1 -1
- package/dist/esm/kol-table-stateless-wc.entry.js.map +1 -0
- package/dist/esm/kol-table-stateless.entry.js +1 -1
- package/dist/esm/kol-table-stateless.entry.js.map +1 -0
- package/dist/esm/kol-tabs.entry.js +1 -1
- package/dist/esm/kol-tabs.entry.js.map +1 -0
- package/dist/esm/kol-textarea.entry.js +1 -1
- package/dist/esm/kol-textarea.entry.js.map +1 -0
- package/dist/esm/kol-toast-container.entry.js +1 -1
- package/dist/esm/kol-toast-container.entry.js.map +1 -0
- package/dist/esm/kol-toolbar.entry.js +1 -1
- package/dist/esm/kol-toolbar.entry.js.map +1 -0
- package/dist/esm/kol-tooltip-wc.entry.js +1 -1
- package/dist/esm/kol-tooltip-wc.entry.js.map +1 -0
- package/dist/esm/kol-tree-item-wc.entry.js +1 -1
- package/dist/esm/kol-tree-item-wc.entry.js.map +1 -0
- package/dist/esm/kol-tree-item.entry.js +1 -1
- package/dist/esm/kol-tree-item.entry.js.map +1 -0
- package/dist/esm/kol-tree-wc.entry.js +1 -1
- package/dist/esm/kol-tree-wc.entry.js.map +1 -0
- package/dist/esm/kol-tree.entry.js +1 -1
- package/dist/esm/kol-tree.entry.js.map +1 -0
- package/dist/esm/kol-version.entry.js +1 -1
- package/dist/esm/kol-version.entry.js.map +1 -0
- package/dist/esm/kolibri.js +1 -1
- package/dist/esm/kolibri.js.map +1 -0
- package/dist/esm/label-Dnmzb2S_.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/markdown-BSkXjaSn.js.map +1 -0
- package/dist/esm/max-length-behavior-nTw1Zuyf.js.map +1 -0
- package/dist/esm/multiple-Cj3JQafH.js.map +1 -0
- package/dist/esm/open-CbvHO4XG.js.map +1 -0
- package/dist/esm/orientation-eCMt8CD1.js.map +1 -0
- package/dist/esm/placeholder-BVhy3BzI.js.map +1 -0
- package/dist/esm/read-only-BetTuumR.js.map +1 -0
- package/dist/esm/required-CnTTpFCN.js.map +1 -0
- package/dist/esm/reuse-CX4AQDkS.js.map +1 -0
- package/dist/esm/rows-DtS-0sp9.js.map +1 -0
- package/dist/esm/show-DdPK3aM7.js.map +1 -0
- package/dist/esm/spell-check-B9ot-4t-.js.map +1 -0
- package/dist/esm/suggestions-B-jLvT4L.js.map +1 -0
- package/dist/esm/table-settings-DxLvhwRE.js.map +1 -0
- package/dist/esm/test-component.entry.js +1 -1
- package/dist/esm/test-component.entry.js.map +1 -0
- package/dist/esm/tooltip-align-Cnin7S26.js.map +1 -0
- package/dist/esm/tooltip-open-tracking-rBbBgPWP.js.map +1 -0
- package/dist/esm/tslib.es6-CxX45GIN.js.map +1 -0
- package/dist/esm/unique-nav-labels-CrfmPC99.js.map +1 -0
- package/dist/esm/validation-BfjI5un_.js.map +1 -0
- package/dist/esm/validation-aqgnZOL6.js.map +1 -0
- package/dist/kolibri/Alert-Cm2rIRe0.js +4 -0
- package/dist/kolibri/Alert-Cm2rIRe0.js.map +1 -0
- package/dist/kolibri/{Collapsible-CK8NIzH0.js → Collapsible-CE8N0OFy.js} +1 -1
- package/dist/kolibri/Collapsible-CE8N0OFy.js.map +1 -0
- package/dist/kolibri/{CustomSuggestionsOptionsGroup-CKk6vmBF.js → CustomSuggestionsOptionsGroup-CNf-YMgB.js} +1 -1
- package/dist/kolibri/CustomSuggestionsOptionsGroup-CNf-YMgB.js.map +1 -0
- package/dist/kolibri/FieldControlStateWrapper-BDje5RqS.js +4 -0
- package/dist/kolibri/FieldControlStateWrapper-BDje5RqS.js.map +1 -0
- package/dist/kolibri/FormFieldStateWrapper-CYUggqut.js +4 -0
- package/dist/kolibri/FormFieldStateWrapper-CYUggqut.js.map +1 -0
- package/dist/kolibri/Heading-Db6jaHsC.js +4 -0
- package/dist/kolibri/Heading-Db6jaHsC.js.map +1 -0
- package/dist/kolibri/{Icon-DazIQvDi.js → Icon-CwANyZXW.js} +1 -1
- package/dist/kolibri/Icon-CwANyZXW.js.map +1 -0
- package/dist/kolibri/Input-B4wC7BXG.js +4 -0
- package/dist/kolibri/Input-B4wC7BXG.js.map +1 -0
- package/dist/kolibri/InputStateWrapper-eXDlJHzK.js +4 -0
- package/dist/kolibri/InputStateWrapper-eXDlJHzK.js.map +1 -0
- package/dist/kolibri/InternalUnderlinedBadgeText-BY8t_M-y.js +4 -0
- package/dist/kolibri/InternalUnderlinedBadgeText-BY8t_M-y.js.map +1 -0
- package/dist/kolibri/Span-BxCN_Xhc.js +4 -0
- package/dist/kolibri/Span-BxCN_Xhc.js.map +1 -0
- package/dist/kolibri/access-and-short-key-B37XLwy2.js +1 -1
- package/dist/kolibri/access-and-short-key-B37XLwy2.js.map +1 -0
- package/dist/kolibri/align-D-ifSKu8.js +1 -1
- package/dist/kolibri/align-D-ifSKu8.js.map +1 -0
- package/dist/kolibri/align-floating-elements-BkpeqvtE.js +1 -1
- package/dist/kolibri/align-floating-elements-BkpeqvtE.js.map +1 -0
- package/dist/kolibri/app-globals-Cl2aKvUZ.js +4 -0
- package/dist/kolibri/app-globals-Cl2aKvUZ.js.map +1 -0
- package/dist/kolibri/ariaCurrentService-YoLNpD5S.js +1 -1
- package/dist/kolibri/ariaCurrentService-YoLNpD5S.js.map +1 -0
- package/dist/kolibri/associated.controller-B9GDDaFL.js +1 -1
- package/dist/kolibri/associated.controller-B9GDDaFL.js.map +1 -0
- package/dist/kolibri/auto-complete-mCkUnxg2.js.map +1 -0
- package/dist/kolibri/bem-BBRwGb1a.js +1 -1
- package/dist/kolibri/bem-BBRwGb1a.js.map +1 -0
- package/dist/kolibri/bem-Dj4gWVFO.js +1 -1
- package/dist/kolibri/bem-Dj4gWVFO.js.map +1 -0
- package/dist/kolibri/bootstrap-DcyDkVEo.js +1 -1
- package/dist/kolibri/bootstrap-DcyDkVEo.js.map +1 -0
- package/dist/kolibri/browser-DiRe0qUf.js +1 -1
- package/dist/kolibri/browser-DiRe0qUf.js.map +1 -0
- package/dist/kolibri/button-variant-_wL6MroY.js +1 -1
- package/dist/kolibri/button-variant-_wL6MroY.js.map +1 -0
- package/dist/kolibri/clsx-eK3rPvPS.js.map +1 -0
- package/dist/kolibri/color-BOIEtqEM.js +1 -1
- package/dist/kolibri/color-BOIEtqEM.js.map +1 -0
- package/dist/kolibri/common-Dd0zJQbD.js +1 -1
- package/dist/kolibri/common-Dd0zJQbD.js.map +1 -0
- package/dist/kolibri/component-names-C3fyby67.js +1 -1
- package/dist/kolibri/component-names-C3fyby67.js.map +1 -0
- package/dist/kolibri/controller-B633DDTP.js +4 -0
- package/dist/kolibri/controller-B633DDTP.js.map +1 -0
- package/dist/kolibri/controller-C7-mWgyj.js +4 -0
- package/dist/kolibri/controller-C7-mWgyj.js.map +1 -0
- package/dist/kolibri/controller-CM5wW8Ij.js +1 -1
- package/dist/kolibri/controller-CM5wW8Ij.js.map +1 -0
- package/dist/kolibri/controller-DvezPCPd.js +4 -0
- package/dist/kolibri/controller-DvezPCPd.js.map +1 -0
- package/dist/kolibri/controller-icon-Cz32NTV1.js +4 -0
- package/dist/kolibri/controller-icon-Cz32NTV1.js.map +1 -0
- package/dist/kolibri/custom-class-nuoQ9Aml.js.map +1 -0
- package/dist/kolibri/dev.utils-CzspusBt.js +4 -0
- package/dist/kolibri/dev.utils-CzspusBt.js.map +1 -0
- package/dist/kolibri/devtools-CgVBMrrg.js +4 -0
- package/dist/kolibri/devtools-CgVBMrrg.js.map +1 -0
- package/dist/kolibri/disabled-BhpAFgSp.js.map +1 -0
- package/dist/kolibri/events-9-skLO0f.js +1 -1
- package/dist/kolibri/events-9-skLO0f.js.map +1 -0
- package/dist/kolibri/has-closer-CQzjaTkv.js.map +1 -0
- package/dist/kolibri/hide-label-B9FhGrWP.js.map +1 -0
- package/dist/kolibri/href-rwDd36rS.js.map +1 -0
- package/dist/kolibri/i18n-CfLoIZ8T.js +1 -1
- package/dist/kolibri/i18n-CfLoIZ8T.js.map +1 -0
- package/dist/kolibri/i18n-LBpyQ66X.js +1 -1
- package/dist/kolibri/i18n-LBpyQ66X.js.map +1 -0
- package/dist/kolibri/icons-DNTuScEN.js +1 -1
- package/dist/kolibri/icons-DNTuScEN.js.map +1 -0
- package/dist/kolibri/image-source-BfBEJ0rX.js.map +1 -0
- package/dist/kolibri/index-kRqNhH8v.js +5 -0
- package/dist/kolibri/index-kRqNhH8v.js.map +1 -0
- package/dist/kolibri/index.esm.js +1 -1
- package/dist/kolibri/index.esm.js.map +1 -0
- package/dist/kolibri/inline-cDaqwSfK.js.map +1 -0
- package/dist/kolibri/isObject-DvSELytj.js +1 -1
- package/dist/kolibri/isObject-DvSELytj.js.map +1 -0
- package/dist/kolibri/keyboard-D6PoWr38.js.map +1 -0
- package/dist/kolibri/kol-abbr.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-abbr.entry.js +1 -1
- package/dist/kolibri/kol-abbr.entry.js.map +1 -0
- package/dist/kolibri/kol-accordion.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-accordion.entry.js +1 -1
- package/dist/kolibri/kol-accordion.entry.js.map +1 -0
- package/dist/kolibri/kol-alert-wc.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-alert-wc.entry.js +1 -1
- package/dist/kolibri/kol-alert-wc.entry.js.map +1 -0
- package/dist/kolibri/kol-alert.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-alert.entry.js +1 -1
- package/dist/kolibri/kol-alert.entry.js.map +1 -0
- package/dist/kolibri/kol-avatar-wc.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
- package/dist/kolibri/kol-avatar-wc.entry.js.map +1 -0
- package/dist/kolibri/kol-avatar.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-avatar.entry.js +1 -1
- package/dist/kolibri/kol-avatar.entry.js.map +1 -0
- package/dist/kolibri/kol-badge.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-badge.entry.js +1 -1
- package/dist/kolibri/kol-badge.entry.js.map +1 -0
- package/dist/kolibri/kol-breadcrumb.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
- package/dist/kolibri/kol-breadcrumb.entry.js.map +1 -0
- package/dist/kolibri/kol-button-link.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-button-link.entry.js +1 -1
- package/dist/kolibri/kol-button-link.entry.js.map +1 -0
- package/dist/kolibri/kol-button-wc.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-button-wc.entry.js +1 -1
- package/dist/kolibri/kol-button-wc.entry.js.map +1 -0
- package/dist/kolibri/kol-button.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-button.entry.js +1 -1
- package/dist/kolibri/kol-button.entry.js.map +1 -0
- package/dist/kolibri/kol-card-wc.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-card-wc.entry.js +1 -1
- package/dist/kolibri/kol-card-wc.entry.js.map +1 -0
- package/dist/kolibri/kol-card.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-card.entry.js +1 -1
- package/dist/kolibri/kol-card.entry.js.map +1 -0
- package/dist/kolibri/kol-combobox.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-combobox.entry.js +1 -1
- package/dist/kolibri/kol-combobox.entry.js.map +1 -0
- package/dist/kolibri/kol-details.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-details.entry.js +1 -1
- package/dist/kolibri/kol-details.entry.js.map +1 -0
- package/dist/kolibri/kol-drawer.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-drawer.entry.js +1 -1
- package/dist/kolibri/kol-drawer.entry.js.map +1 -0
- package/dist/kolibri/kol-form.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-form.entry.js +1 -1
- package/dist/kolibri/kol-form.entry.js.map +1 -0
- package/dist/kolibri/kol-heading.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-heading.entry.js +1 -1
- package/dist/kolibri/kol-heading.entry.js.map +1 -0
- package/dist/kolibri/kol-icon.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-icon.entry.js +1 -1
- package/dist/kolibri/kol-icon.entry.js.map +1 -0
- package/dist/kolibri/kol-image.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-image.entry.js +1 -1
- package/dist/kolibri/kol-image.entry.js.map +1 -0
- package/dist/kolibri/kol-input-checkbox.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
- package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -0
- package/dist/kolibri/kol-input-color.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-input-color.entry.js +1 -1
- package/dist/kolibri/kol-input-color.entry.js.map +1 -0
- package/dist/kolibri/kol-input-date.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-input-date.entry.js +1 -1
- package/dist/kolibri/kol-input-date.entry.js.map +1 -0
- package/dist/kolibri/kol-input-email.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-input-email.entry.js +1 -1
- package/dist/kolibri/kol-input-email.entry.js.map +1 -0
- package/dist/kolibri/kol-input-file.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-input-file.entry.js +1 -1
- package/dist/kolibri/kol-input-file.entry.js.map +1 -0
- package/dist/kolibri/kol-input-number.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-input-number.entry.js +1 -1
- package/dist/kolibri/kol-input-number.entry.js.map +1 -0
- package/dist/kolibri/kol-input-password.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-input-password.entry.js +1 -1
- package/dist/kolibri/kol-input-password.entry.js.map +1 -0
- package/dist/kolibri/kol-input-radio.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-input-radio.entry.js +1 -1
- package/dist/kolibri/kol-input-radio.entry.js.map +1 -0
- package/dist/kolibri/kol-input-range.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-input-range.entry.js +1 -1
- package/dist/kolibri/kol-input-range.entry.js.map +1 -0
- package/dist/kolibri/kol-input-text.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-input-text.entry.js +1 -1
- package/dist/kolibri/kol-input-text.entry.js.map +1 -0
- package/dist/kolibri/kol-kolibri.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-kolibri.entry.js +1 -1
- package/dist/kolibri/kol-kolibri.entry.js.map +1 -0
- package/dist/kolibri/kol-link-button.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-link-button.entry.js +1 -1
- package/dist/kolibri/kol-link-button.entry.js.map +1 -0
- package/dist/kolibri/kol-link-wc.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-link-wc.entry.js +1 -1
- package/dist/kolibri/kol-link-wc.entry.js.map +1 -0
- package/dist/kolibri/kol-link.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-link.entry.js +1 -1
- package/dist/kolibri/kol-link.entry.js.map +1 -0
- package/dist/kolibri/kol-modal.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-modal.entry.js +1 -1
- package/dist/kolibri/kol-modal.entry.js.map +1 -0
- package/dist/kolibri/kol-nav.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-nav.entry.js +1 -1
- package/dist/kolibri/kol-nav.entry.js.map +1 -0
- package/dist/kolibri/kol-pagination-wc.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-pagination-wc.entry.js +1 -1
- package/dist/kolibri/kol-pagination-wc.entry.js.map +1 -0
- package/dist/kolibri/kol-pagination.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-pagination.entry.js +1 -1
- package/dist/kolibri/kol-pagination.entry.js.map +1 -0
- package/dist/kolibri/kol-popover-button-wc.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-popover-button-wc.entry.js +1 -1
- package/dist/kolibri/kol-popover-button-wc.entry.js.map +1 -0
- package/dist/kolibri/kol-popover-button.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-popover-button.entry.js +1 -1
- package/dist/kolibri/kol-popover-button.entry.js.map +1 -0
- package/dist/kolibri/kol-popover-wc.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-popover-wc.entry.js +1 -1
- package/dist/kolibri/kol-popover-wc.entry.js.map +1 -0
- package/dist/kolibri/kol-progress.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-progress.entry.js +1 -1
- package/dist/kolibri/kol-progress.entry.js.map +1 -0
- package/dist/kolibri/kol-quote.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-quote.entry.js +1 -1
- package/dist/kolibri/kol-quote.entry.js.map +1 -0
- package/dist/kolibri/kol-select-wc.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-select-wc.entry.js +1 -1
- package/dist/kolibri/kol-select-wc.entry.js.map +1 -0
- package/dist/kolibri/kol-select.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-select.entry.js +1 -1
- package/dist/kolibri/kol-select.entry.js.map +1 -0
- package/dist/kolibri/kol-single-select.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-single-select.entry.js +1 -1
- package/dist/kolibri/kol-single-select.entry.js.map +1 -0
- package/dist/kolibri/kol-skip-nav.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-skip-nav.entry.js +1 -1
- package/dist/kolibri/kol-skip-nav.entry.js.map +1 -0
- package/dist/kolibri/kol-spin.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-spin.entry.js +1 -1
- package/dist/kolibri/kol-spin.entry.js.map +1 -0
- package/dist/kolibri/kol-split-button.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-split-button.entry.js +1 -1
- package/dist/kolibri/kol-split-button.entry.js.map +1 -0
- package/dist/kolibri/kol-table-settings-wc.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-table-settings-wc.entry.js +1 -1
- package/dist/kolibri/kol-table-settings-wc.entry.js.map +1 -0
- package/dist/kolibri/kol-table-stateful.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-table-stateful.entry.js +1 -1
- package/dist/kolibri/kol-table-stateful.entry.js.map +1 -0
- package/dist/kolibri/kol-table-stateless-wc.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-table-stateless-wc.entry.js +1 -1
- package/dist/kolibri/kol-table-stateless-wc.entry.js.map +1 -0
- package/dist/kolibri/kol-table-stateless.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-table-stateless.entry.js +1 -1
- package/dist/kolibri/kol-table-stateless.entry.js.map +1 -0
- package/dist/kolibri/kol-tabs.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-tabs.entry.js +1 -1
- package/dist/kolibri/kol-tabs.entry.js.map +1 -0
- package/dist/kolibri/kol-textarea.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-textarea.entry.js +1 -1
- package/dist/kolibri/kol-textarea.entry.js.map +1 -0
- package/dist/kolibri/kol-toast-container.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-toast-container.entry.js +1 -1
- package/dist/kolibri/kol-toast-container.entry.js.map +1 -0
- package/dist/kolibri/kol-toolbar.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-toolbar.entry.js +1 -1
- package/dist/kolibri/kol-toolbar.entry.js.map +1 -0
- package/dist/kolibri/kol-tooltip-wc.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
- package/dist/kolibri/kol-tooltip-wc.entry.js.map +1 -0
- package/dist/kolibri/kol-tree-item-wc.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-tree-item-wc.entry.js +1 -1
- package/dist/kolibri/kol-tree-item-wc.entry.js.map +1 -0
- package/dist/kolibri/kol-tree-item.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-tree-item.entry.js +1 -1
- package/dist/kolibri/kol-tree-item.entry.js.map +1 -0
- package/dist/kolibri/kol-tree-wc.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-tree-wc.entry.js +1 -1
- package/dist/kolibri/kol-tree-wc.entry.js.map +1 -0
- package/dist/kolibri/kol-tree.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-tree.entry.js +1 -1
- package/dist/kolibri/kol-tree.entry.js.map +1 -0
- package/dist/kolibri/kol-version.entry.esm.js.map +1 -0
- package/dist/kolibri/kol-version.entry.js +1 -1
- package/dist/kolibri/kol-version.entry.js.map +1 -0
- package/dist/kolibri/kolibri.esm.js +1 -1
- package/dist/kolibri/kolibri.esm.js.map +1 -0
- package/dist/kolibri/label-Dnmzb2S_.js +1 -1
- package/dist/kolibri/label-Dnmzb2S_.js.map +1 -0
- package/dist/kolibri/loader.esm.js.map +1 -0
- package/dist/kolibri/markdown-BSkXjaSn.js +1 -1
- package/dist/kolibri/markdown-BSkXjaSn.js.map +1 -0
- package/dist/kolibri/max-length-behavior-nTw1Zuyf.js +1 -1
- package/dist/kolibri/max-length-behavior-nTw1Zuyf.js.map +1 -0
- package/dist/kolibri/multiple-Cj3JQafH.js.map +1 -0
- package/dist/kolibri/open-CbvHO4XG.js.map +1 -0
- package/dist/kolibri/orientation-eCMt8CD1.js.map +1 -0
- package/dist/kolibri/placeholder-BVhy3BzI.js.map +1 -0
- package/dist/kolibri/read-only-BetTuumR.js.map +1 -0
- package/dist/kolibri/required-CnTTpFCN.js.map +1 -0
- package/dist/kolibri/reuse-CX4AQDkS.js +1 -1
- package/dist/kolibri/reuse-CX4AQDkS.js.map +1 -0
- package/dist/kolibri/rows-DtS-0sp9.js.map +1 -0
- package/dist/kolibri/show-DdPK3aM7.js.map +1 -0
- package/dist/kolibri/spell-check-B9ot-4t-.js +1 -1
- package/dist/kolibri/spell-check-B9ot-4t-.js.map +1 -0
- package/dist/kolibri/suggestions-B-jLvT4L.js +1 -1
- package/dist/kolibri/suggestions-B-jLvT4L.js.map +1 -0
- package/dist/kolibri/table-settings-DxLvhwRE.js +1 -1
- package/dist/kolibri/table-settings-DxLvhwRE.js.map +1 -0
- package/dist/kolibri/test-component.entry.esm.js.map +1 -0
- package/dist/kolibri/test-component.entry.js +1 -1
- package/dist/kolibri/test-component.entry.js.map +1 -0
- package/dist/kolibri/tooltip-align-Cnin7S26.js.map +1 -0
- package/dist/kolibri/tooltip-open-tracking-rBbBgPWP.js +1 -1
- package/dist/kolibri/tooltip-open-tracking-rBbBgPWP.js.map +1 -0
- package/dist/kolibri/tslib.es6-CxX45GIN.js.map +1 -0
- package/dist/kolibri/unique-nav-labels-CrfmPC99.js.map +1 -0
- package/dist/kolibri/validation-BfjI5un_.js.map +1 -0
- package/dist/kolibri/validation-aqgnZOL6.js +1 -1
- package/dist/kolibri/validation-aqgnZOL6.js.map +1 -0
- package/dist/types/stencil-public-runtime.d.ts +4 -87
- package/doc/accordion.md +7 -7
- package/doc/button-link.md +21 -21
- package/doc/button.md +22 -22
- package/doc/details.md +7 -7
- package/doc/popover-button.md +22 -22
- package/doc/split-button.md +21 -21
- package/package.json +2 -2
- package/dist/cjs/app-globals-DjK7EzF0.js +0 -4
- package/dist/cjs/index-CUwAAV9q.js +0 -4
- package/dist/esm/Input-KPeaFJZR.js +0 -4
- package/dist/esm/app-globals-BMo3oAt8.js +0 -4
- package/dist/esm/index-BVfSKhpj.js +0 -4
- package/dist/kolibri/Alert-I3c2hFqL.js +0 -4
- package/dist/kolibri/FieldControlStateWrapper-CHxIkx4o.js +0 -4
- package/dist/kolibri/FormFieldStateWrapper-BD6_Aq_y.js +0 -4
- package/dist/kolibri/Heading-DwQEABii.js +0 -4
- package/dist/kolibri/Input-KPeaFJZR.js +0 -4
- package/dist/kolibri/InputStateWrapper-Br3zT89Q.js +0 -4
- package/dist/kolibri/InternalUnderlinedBadgeText-BXMEPoNX.js +0 -4
- package/dist/kolibri/Span-_4yQD2YZ.js +0 -4
- package/dist/kolibri/app-globals-BMo3oAt8.js +0 -4
- package/dist/kolibri/controller-BVGTTRsM.js +0 -4
- package/dist/kolibri/controller-CBTbnj0P.js +0 -4
- package/dist/kolibri/controller-hCTGmOJP.js +0 -4
- package/dist/kolibri/controller-icon-z0j8meAS.js +0 -4
- package/dist/kolibri/dev.utils-CT0IU26V.js +0 -4
- package/dist/kolibri/devtools-CKGr6nvH.js +0 -4
- package/dist/kolibri/index-BVfSKhpj.js +0 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{proxyCustomElement as t,HTMLElement as i,h as e,Host as o,transformTag as a}from"@stencil/core/internal/client";import{i as l,q as n}from"./component-names.js";import{t as s}from"./i18n.js";import{c as r,w as d,s as c,Q as h,o as p,p as u,h as b,l as _}from"./common.js";import{v as m,a as f,b as g,c as k,d as v,e as y}from"./table-settings.js";import{v as w}from"./label.js";import{C as x}from"./keyboard.js";import{K as S,d as z}from"./events.js";const j=["top","bottom","both"],P=[10,20,50,100],C=t=>!0===t||""===t||"object"==typeof t&&null!==t,O=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.catchRef=t=>{this.tableWcRef=t},this.sortData=[],this.showPagination=!1,this.pageStartSlice=0,this.pageEndSlice=10,this.disableSort=!1,this._paginationPosition="bottom",this.state={_allowMultiSort:!1,_data:[],_dataFoot:[],_headers:{horizontal:[],vertical:[]},_label:"",_minWidth:"auto",_pagination:{_page:1,_pageSize:10,_max:0},_sortedData:[],_paginationPosition:"bottom",_hasSettingsMenu:!1},this.handlePagination={onClick:(t,e)=>{var i;"function"==typeof(null===(i=this.state._pagination._on)||void 0===i?void 0:i.onClick)&&this.state._pagination._on.onClick(t,e),c(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_page:e}))},onChangePage:(t,e)=>{var i;"function"==typeof(null===(i=this.state._pagination._on)||void 0===i?void 0:i.onChangePage)&&this.state._pagination._on.onChangePage(t,e),c(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_page:e}))},onChangePageSize:(t,e)=>{var i;"function"==typeof(null===(i=this.state._pagination._on)||void 0===i?void 0:i.onChangePageSize)&&this.state._pagination._on.onChangePageSize(t,e),c(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_pageSize:e})),c(this,"_pageSize",e)}},this.onSelectionChange=t=>{t.stopPropagation()},this.updateSortedData=()=>{if(this.disableSort)return void c(this,"_sortedData",this.state._data);const t=[...this.state._data];this.sortData.length>0&&t.sort((t,e)=>{for(let i=0;i<this.sortData.length;i++){const a=this.sortData[i],o=a.compareFn(t,e,a.direction);if(0!==o)return"ASC"===a.direction?o:-o}return 0}),c(this,"_sortedData",t)}}validateAllowMultiSort(t){((t,e,i={})=>{r(this,"_allowMultiSort",e,Object.assign({defaultValue:!1},i))})(0,t,{defaultValue:!1})}validateData(t){m(this,t,{afterPatch:()=>{setTimeout(this.updateSortedData)}})}validateDataFoot(t){f(this,t,{afterPatch:()=>{setTimeout(this.updateSortedData)}})}validatePaginationPosition(t){((t,e)=>{d(this,"_paginationPosition",t=>"string"==typeof t&&j.includes(t),new Set(["PaginationPositionPropType {"+j.join(", ")]),e,{defaultValue:"bottom"})})(0,t)}validateHasSettingsMenu(t){g(this,t)}changeCellSort(t){var e;if("function"==typeof t.compareFn){this.state._allowMultiSort||t.key===(null===(e=this.sortData[0])||void 0===e?void 0:e.key)||(this.sortData=[]);const i=this.sortData.findIndex(e=>e.key===t.key);if(i>=0){const t=this.sortData[i];switch(t.direction){case"ASC":t.direction="DESC";break;case"DESC":this.sortData.splice(i,1);break;default:t.direction="ASC"}}else t.key&&this.sortData.push({label:t.label,key:t.key,compareFn:t.compareFn,direction:"ASC"});this.updateSortedData()}}validateHeaders(t){h(t,()=>{p(t,()=>{try{t=u(t)}catch(t){}d(this,"_headers",t=>"object"==typeof t&&null!==t,new Set(["KoliBriTableHeaders"]),t,{hooks:{beforePatch:t=>{var e,i,a,o;const n=t=>{let e=!1;this.sortData=[],t.forEach(t=>{if("function"==typeof t.compareFn&&!t.key)return void _("[KolTableStateful] A sortable column requires the 'key' property.");const i=t.key;if(!i)return;const a=t.sortDirection;"ASC"!==a&&"DESC"!==a||"function"==typeof t.compareFn&&((this.state._allowMultiSort||0===this.sortData.length)&&this.sortData.push({label:t.label,key:i,compareFn:t.compareFn,direction:a}),e=!0)}),e&&setTimeout(()=>this.updateSortedData())},l=t;null===(e=l.horizontal)||void 0===e||e.forEach(n),null===(i=l.vertical)||void 0===i||i.forEach(n),l.horizontal&&l.vertical&&(null===(a=l.horizontal)||void 0===a?void 0:a.length)>0&&(null===(o=l.vertical)||void 0===o?void 0:o.length)>0&&(this.disableSort=!0,_("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(t){w(this,t,{required:!0})}validateMinWidth(t){b(this,"_minWidth",t,{defaultValue:void 0})}validateSelection(t){k(this,t)}validateOn(t){v(this,t)}validateTableSettings(t){y(this,t)}validatePagination(t){try{t=u(t)}catch(t){}this.showPagination=C(t),d(this,"_pagination",C,new Set(["boolean","KoliBriTablePagination"]),t,{defaultValue:{_page:1,_pageSize:10,_max:0}})}componentDidLoad(){var t;null===(t=this.tableWcRef)||void 0===t||t.addEventListener(S.selectionChange,this.onSelectionChange)}disconnectedCallback(){var t;null===(t=this.tableWcRef)||void 0===t||t.removeEventListener(S.selectionChange,this.onSelectionChange)}componentWillLoad(){this.validateAllowMultiSort(this._allowMultiSort),this.validateData(this._data),this.validateDataFoot(this._dataFoot),this.validateHeaders(this._headers),this.validateLabel(this._label),this.validateMinWidth(this._minWidth),this.validateOn(this._on),this.validatePagination(this._pagination),this.validatePaginationPosition(this._paginationPosition),this.validateSelection(this._selection),this.validateTableSettings(this._tableSettings),this.validateHasSettingsMenu(this._hasSettingsMenu)}selectDisplayedData(t,e,i){return"number"==typeof e&&e>0&&"number"==typeof i&&i>0?(this.pageStartSlice=e*(i-1),this.pageEndSlice=e*i>t.length?t.length:e*i,t.slice(this.pageStartSlice,this.pageEndSlice)):(this.pageStartSlice=0,this.pageEndSlice=t.length,t)}renderPagination(t){const i=s("kol-table-pagination-label",{placeholders:{label:`${this.state._label} (${s("kol-pagination-position-"+t)})`}});return e("div",{class:"kol-table-stateful__pagination kol-table-stateful__pagination--"+this.state._paginationPosition},e("span",{role:"status","aria-live":"polite"},s("kol-table-visible-range",{placeholders:{start:this.pageEndSlice>0?""+(this.pageStartSlice+1):"0",end:""+this.pageEndSlice,total:this.state._pagination&&this.state._pagination._max>0?""+this.state._pagination._max:Array.isArray(this.state._data)?""+this.state._data.length:"0"}})),e("div",{class:"kol-table-stateful__pagination-wrapper"},e(l,{class:"test",_boundaryCount:this.state._pagination._boundaryCount,_customClass:this.state._pagination._customClass,_on:this.handlePagination,_page:this.state._pagination._page,_pageSize:this.state._pagination._pageSize,_pageSizeOptions:this.state._pagination._pageSizeOptions||P,_siblingCount:this.state._pagination._siblingCount,_tooltipAlign:"bottom",_max:this.state._pagination._max||this.state._pagination._max||this.state._data.length,_label:i})))}getHeaderCellSortState(t){if(!this.disableSort&&"function"==typeof t.compareFn){if(t.key){const e=this.sortData.find(e=>e.key===t.key);if(null==e?void 0:e.direction)return e.direction}return"NOS"}}handleSort({key:t}){const e=[...(this.state._headers.horizontal||[]).flat(),...(this.state._headers.vertical||[]).flat()].find(e=>e.key===t);e&&this.changeCellSort(e)}getSelectedData(t){var e;const i=this.state._selection;if(i){const a=null!==(e=i.keyPropertyName)&&void 0!==e?e:"id",o=new Set((Array.isArray(t)?t:[t]).map(String)),n=this.state._sortedData.filter(t=>o.has(t[a]+""));if(!1===(null==i?void 0:i.multiple))return n[0];if(a)return n}return null}handleSelectionChange(t,e){var i;const a=this.state._selection;a&&(this.state=Object.assign(Object.assign({},this.state),{_selection:Object.assign(Object.assign({},a),{selectedKeys:Array.isArray(e)?e:[e]})}));const o=this.getSelectedData(e);"function"==typeof(null===(i=this.state._on)||void 0===i?void 0:i[x.onSelectionChange])&&this.state._on[x.onSelectionChange](t,o),this.host&&z(this.host,S.selectionChange,o)}async getSelection(){var t;const e=(null===(t=this.state._selection)||void 0===t?void 0:t.selectedKeys)||[];return this.getSelectedData(e)}render(){var t,i,a,l,s,r;const d=this.selectDisplayedData(this.state._sortedData,this.showPagination?null!==(i=null===(t=this.state._pagination)||void 0===t?void 0:t._pageSize)&&void 0!==i?i:10:this.state._sortedData.length,this.state._pagination._page||1),c="top"===this._paginationPosition||"both"===this._paginationPosition?this.renderPagination("top"):null,h="bottom"===this._paginationPosition||"both"===this._paginationPosition?this.renderPagination("bottom"):null,p={horizontal:null!==(l=null===(a=this.state._headers.horizontal)||void 0===a?void 0:a.map(t=>t.map(t=>Object.assign(Object.assign({},t),{sortDirection:this.getHeaderCellSortState(t)}))))&&void 0!==l?l:[],vertical:null!==(r=null===(s=this.state._headers.vertical)||void 0===s?void 0:s.map(t=>t.map(t=>Object.assign(Object.assign({},t),{sortDirection:this.getHeaderCellSortState(t)}))))&&void 0!==r?r:[]};return e(o,{key:"5ab8ff5b83647e809cddeccf2245696887bd12b4",class:"kol-table-stateful"},this.pageEndSlice>0&&this.showPagination&&c,e(n,{key:"a508c9984294f4be4f37b43ea4b8d5f7417c0818",ref:this.catchRef,_data:d,_headerCells:p,_label:this.state._label,_dataFoot:this.state._dataFoot,_minWidth:this.state._minWidth,_on:{onSort:(t,e)=>{this.handleSort(e)},onSelectionChange:(t,e)=>{this.handleSelectionChange(t,e)}},_selection:this.state._selection,_tableSettings:this.state._tableSettings,_hasSettingsMenu:this.state._hasSettingsMenu}),this.pageEndSlice>0&&this.showPagination&&h)}get host(){return this}static get watchers(){return{_allowMultiSort:[{validateAllowMultiSort:0}],_data:[{validateData:0}],_dataFoot:[{validateDataFoot:0}],_paginationPosition:[{validatePaginationPosition:0}],_hasSettingsMenu:[{validateHasSettingsMenu:0}],_headers:[{validateHeaders:0}],_label:[{validateLabel:0}],_minWidth:[{validateMinWidth:0}],_selection:[{validateSelection:0}],_on:[{validateOn:0}],_tableSettings:[{validateTableSettings:0}],_pagination:[{validatePagination:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component; @layer kol-a11y { :host { --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16)); color: black; background-color: white; font-family: Verdana; letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; white-space: nowrap; clip-path: inset(50%); } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: lightgray; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } .kol-span .kol-span__label--hide-label .kol-span__label { display: none; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled], [disabled]:focus { opacity: 0.5; outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } } @layer kol-component { :host { display: block; } } @layer kol-component { .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: #000; background-color: #fff; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: #000; background-color: #fff; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-alert { display: grid; } .kol-alert__container { display: flex; place-items: center; } .kol-alert__container-content { flex-grow: 1; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); } :host { display: inline-block; } .kol-button { display: inline-flex; font-style: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); text-decoration-line: none; } .kol-button::before { content: ""; } .kol-button__text { width: 100%; } .kol-popover-button__button { display: inline-block; } .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-popover-button--inline .kol-popover-button__button { display: inline; } .kol-table-settings { background: #fff; position: absolute; top: 0; right: 0; z-index: 1; } .kol-table-settings .kol-popover-button__popover { background: #fff; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); border-radius: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); border: 1px solid #d1d5db; } .kol-table-settings__columns-container { max-height: calc(200 * 1rem / var(--kolibri-root-font-size, 16)); margin-top: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); overflow: auto; } .kol-table-settings__columns { display: grid; gap: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); align-items: center; grid-auto-rows: min-content; grid-template-columns: min-content minmax(max-content, 1fr) calc(100 * 1rem / var(--kolibri-root-font-size, 16)) auto auto; } .kol-table-settings__column { display: contents; } .kol-table { display: block; position: relative; max-width: 100%; } .kol-table:has(.kol-table__focus-element:focus) .kol-table__scroll-container { outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color; outline-offset: 2px; } .kol-table__scroll-container { overflow-x: auto; overflow-y: hidden; } .kol-table__table { width: 100%; } .kol-table__caption { min-height: var(--a11y-min-size); padding-right: var(--a11y-min-size); text-align: start; } .kol-table__sort-button .kol-button { color: inherit; } .kol-table__body { text-align: left; } .kol-table__body .kol-button__text { justify-items: start; } .kol-table__cell--align-left { text-align: left; } .kol-table__cell--align-left .kol-button__text { align-items: start; } .kol-table__cell--align-center { text-align: center; } .kol-table__cell--align-center .kol-button__text { align-items: center; } .kol-table__cell--align-right { text-align: right; } .kol-table__cell--align-right .kol-button__text { align-items: end; } .kol-table__cell--selection { width: var(--a11y-min-size); height: var(--a11y-min-size); white-space: nowrap; } .kol-table__spacer { display: none; } .kol-table__selection-label { display: flex; position: relative; width: var(--a11y-min-size); height: var(--a11y-min-size); align-items: center; justify-content: center; cursor: pointer; } .kol-table__selection-label--disabled { cursor: not-allowed; } .kol-table__selection-icon { display: block; position: absolute; inset: auto; z-index: 1; } .kol-table__selection-input { border-style: solid; margin: 0; appearance: none; cursor: pointer; } .kol-table__selection-input:disabled { cursor: not-allowed; } .kol-table__selection-input:before { content: ""; } .kol-table__selection-input--checkbox { background-color: rgb(255, 255, 255); display: flex; position: relative; width: calc(var(--a11y-min-size) / 2); height: calc(var(--a11y-min-size) / 2); border-width: 2px; align-items: center; justify-content: center; line-height: 1.5; } .kol-table__selection-input--radio { border-radius: 100%; display: flex; width: 1.5em; min-width: 1.5em; height: 1.5em; min-height: 1.5em; padding: 0; border-width: 2px; } .kol-table__selection-input--radio:before { border-radius: 100%; width: 0.75em; height: 0.75em; margin: auto; } .kol-table__selection-input--radio:checked:before { background-color: #000; } @media (forced-colors: active) { .kol-table__selection-input--radio:checked:before { background-color: selectedItem !important; } } .kol-alert { display: grid; } .kol-alert__container { display: flex; place-items: center; } .kol-alert__container-content { flex-grow: 1; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-form-field { display: grid; } .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label { cursor: pointer; } .kol-form-field--disabled .kol-form-field__label { opacity: 0.5; } .kol-form-field--required .kol-form-field__label-text::after { content: "*"/""; } .kol-form-field--disabled .kol-form-field__hint { opacity: 0.5; } .kol-form-field--required .kol-form-field__tooltip .span-label::after { content: "*"/""; } .kol-input-container { background-color: transparent; display: grid; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; grid-template-columns: 1fr; } .kol-input-container:has(> .kol-input-container__adornment--start) { grid-template-columns: auto 1fr; } .kol-input-container:has(> .kol-input-container__adornment--end) { grid-template-columns: 1fr auto; } .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) { grid-template-columns: auto 1fr auto; } .kol-input-container__container { position: relative; } .kol-input-container__adornment { display: flex; align-items: center; } .kol-input-container__adornment .kol-icon { display: grid; height: var(--a11y-min-size); place-items: center; } .kol-select { background-color: transparent; width: 100%; } .kol-select:not(:disabled) { cursor: pointer; } .kol-select:not([multiple], [size]) { height: 2.75em; } .kol-select:focus { outline: none; } .kol-select__option:checked::before { content: "✓ "; } .kol-select { } .kol-select[multiple] option { padding: calc((var(--a11y-min-size) - 16 * 1rem / var(--kolibri-root-font-size, 16)) / 2) 0.5em; } .kol-pagination { display: grid; gap: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); align-items: center; grid-template-columns: 1fr auto; } .kol-pagination__navigation-list { display: inline-flex; margin: 0; padding: 0; gap: 0.5em; flex-wrap: wrap; align-items: center; list-style: none; } .kol-pagination__separator:before { content: "•••"; } .kol-pagination__page-size-select .kol-form-field-select { align-items: center; grid-template-columns: 1fr max-content; } .kol-table-stateful__pagination, .kol-table-stateful__pagination-wrapper { display: grid; place-items: center; } @media (min-width: 1024px) { .kol-table-stateful__pagination, .kol-table-stateful__pagination-wrapper { grid-auto-flow: column; } } .kol-pagination { display: flex; flex-wrap: wrap; } @media (min-width: 1024px) { .kol-pagination { display: flex; } } @media (max-width: 1024px) { .kol-pagination { flex-direction: column; } } }'}}},[33,"kol-table-stateful",{_allowMultiSort:[4,"_allow-multi-sort"],_data:[1],_dataFoot:[1,"_data-foot"],_headers:[1],_label:[1],_minWidth:[1,"_min-width"],_pagination:[8],_paginationPosition:[1,"_pagination-position"],_selection:[1],_on:[16],_tableSettings:[16],_hasSettingsMenu:[4,"_has-settings-menu"],state:[32],getSelection:[64]},void 0,{_allowMultiSort:[{validateAllowMultiSort:0}],_data:[{validateData:0}],_dataFoot:[{validateDataFoot:0}],_paginationPosition:[{validatePaginationPosition:0}],_hasSettingsMenu:[{validateHasSettingsMenu:0}],_headers:[{validateHeaders:0}],_label:[{validateLabel:0}],_minWidth:[{validateMinWidth:0}],_selection:[{validateSelection:0}],_on:[{validateOn:0}],_tableSettings:[{validateTableSettings:0}],_pagination:[{validatePagination:0}]}]),M=O,D=function(){"undefined"!=typeof customElements&&["kol-table-stateful"].forEach(t=>{"kol-table-stateful"===t&&(customElements.get(a(t))||customElements.define(a(t),O))})};export{M as KolTableStateful,D as defineCustomElement};
|
|
4
|
+
import{proxyCustomElement,HTMLElement,h,Host}from"@stencil/core/internal/client";import{i as KolPaginationWcTag,q as KolTableStatelessWcTag}from"./component-names.js";import{t as translate}from"./i18n.js";import{c as watchBoolean,w as watchValidator,s as setState,Q as emptyStringByArrayHandler,o as objectObjectHandler,p as parseJson,h as watchString,l as devHint}from"./common.js";import{v as validateTableData,a as validateTableDataFoot,b as validateHasSettingsMenu,c as validateTableSelection,d as validateTableStatefulCallbacks,e as validateTableSettings}from"./table-settings.js";import{v as validateLabel}from"./label.js";import{C as Callback}from"./keyboard.js";import{K as KolEvent,d as dispatchDomEvent}from"./events.js";const validateAllowMultiSort=(t,n,e={})=>{watchBoolean(t,"_allowMultiSort",n,Object.assign({defaultValue:!1},e))},paginationPositionPropTypeOptions=["top","bottom","both"],validatePaginationPosition=(t,n)=>{watchValidator(t,"_paginationPosition",t=>"string"==typeof t&&paginationPositionPropTypeOptions.includes(t),new Set([`PaginationPositionPropType {${paginationPositionPropTypeOptions.join(", ")}`]),n,{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}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\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 {\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 :host {\n display: inline-block;\n }\n .kol-button {\n display: inline-flex;\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 width: 100%;\n }\n .kol-popover-button__button {\n display: inline-block;\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-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 margin-top: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n overflow: auto;\n }\n .kol-table-settings__columns {\n display: grid;\n gap: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n align-items: center;\n grid-auto-rows: min-content;\n grid-template-columns: min-content minmax(max-content, 1fr) calc(100 * 1rem / var(--kolibri-root-font-size, 16)) auto auto;\n }\n .kol-table-settings__column {\n display: contents;\n }\n .kol-table {\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 width: 100%;\n }\n .kol-table__caption {\n min-height: var(--a11y-min-size);\n padding-right: var(--a11y-min-size);\n text-align: start;\n }\n .kol-table__sort-button .kol-button {\n color: inherit;\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 width: var(--a11y-min-size);\n height: var(--a11y-min-size);\n white-space: nowrap;\n }\n .kol-table__spacer {\n display: none;\n }\n .kol-table__selection-label {\n display: flex;\n position: relative;\n width: var(--a11y-min-size);\n height: var(--a11y-min-size);\n align-items: center;\n justify-content: center;\n cursor: pointer;\n }\n .kol-table__selection-label--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 width: calc(var(--a11y-min-size) / 2);\n 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 {\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--disabled .kol-form-field__label {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__label-text::after {\n content: "*"/"";\n }\n .kol-form-field--disabled .kol-form-field__hint {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\n content: "*"/"";\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;\n }\n .kol-input-container:has(> .kol-input-container__adornment--end) {\n grid-template-columns: 1fr auto;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) {\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 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-pagination {\n display: grid;\n gap: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n align-items: center;\n grid-template-columns: 1fr auto;\n }\n .kol-pagination__navigation-list {\n display: inline-flex;\n margin: 0;\n padding: 0;\n gap: 0.5em;\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 .kol-table-stateful__pagination, .kol-table-stateful__pagination-wrapper {\n display: grid;\n place-items: center;\n }\n @media (min-width: 1024px) {\n .kol-table-stateful__pagination, .kol-table-stateful__pagination-wrapper {\n grid-auto-flow: column;\n }\n }\n .kol-pagination {\n display: flex;\n flex-wrap: wrap;\n }\n @media (min-width: 1024px) {\n .kol-pagination {\n display: flex;\n }\n }\n @media (max-width: 1024px) {\n .kol-pagination {\n flex-direction: column;\n }\n }\n}',PAGINATION_OPTIONS=[10,20,50,100],paginationValidator=t=>!0===t||""===t||"object"==typeof t&&null!==t,KolTableStateful$1=proxyCustomElement(class extends HTMLElement{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.catchRef=t=>{this.tableWcRef=t},this.sortData=[],this.showPagination=!1,this.pageStartSlice=0,this.pageEndSlice=10,this.disableSort=!1,this._paginationPosition="bottom",this.state={_allowMultiSort:!1,_data:[],_dataFoot:[],_headers:{horizontal:[],vertical:[]},_label:"",_minWidth:"auto",_pagination:{_page:1,_pageSize:10,_max:0},_sortedData:[],_paginationPosition:"bottom",_hasSettingsMenu:!1},this.handlePagination={onClick:(t,n)=>{var e;"function"==typeof(null===(e=this.state._pagination._on)||void 0===e?void 0:e.onClick)&&this.state._pagination._on.onClick(t,n),setState(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_page:n}))},onChangePage:(t,n)=>{var e;"function"==typeof(null===(e=this.state._pagination._on)||void 0===e?void 0:e.onChangePage)&&this.state._pagination._on.onChangePage(t,n),setState(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_page:n}))},onChangePageSize:(t,n)=>{var e;"function"==typeof(null===(e=this.state._pagination._on)||void 0===e?void 0:e.onChangePageSize)&&this.state._pagination._on.onChangePageSize(t,n),setState(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_pageSize:n})),setState(this,"_pageSize",n)}},this.onSelectionChange=t=>{t.stopPropagation()},this.updateSortedData=()=>{if(this.disableSort)return void setState(this,"_sortedData",this.state._data);const t=[...this.state._data];this.sortData.length>0&&t.sort((t,n)=>{for(let e=0;e<this.sortData.length;e++){const i=this.sortData[e],a=i.compareFn(t,n,i.direction);if(0!==a)return"ASC"===i.direction?a:-a}return 0}),setState(this,"_sortedData",t)}}validateAllowMultiSort(t){validateAllowMultiSort(this,t,{defaultValue:!1})}validateData(t){validateTableData(this,t,{afterPatch:()=>{setTimeout(this.updateSortedData)}})}validateDataFoot(t){validateTableDataFoot(this,t,{afterPatch:()=>{setTimeout(this.updateSortedData)}})}validatePaginationPosition(t){validatePaginationPosition(this,t)}validateHasSettingsMenu(t){validateHasSettingsMenu(this,t)}changeCellSort(t){var n;if("function"==typeof t.compareFn){this.state._allowMultiSort||t.key===(null===(n=this.sortData[0])||void 0===n?void 0:n.key)||(this.sortData=[]);const e=this.sortData.findIndex(n=>n.key===t.key);if(e>=0){const t=this.sortData[e];switch(t.direction){case"ASC":t.direction="DESC";break;case"DESC":this.sortData.splice(e,1);break;default:t.direction="ASC"}}else t.key&&this.sortData.push({label:t.label,key:t.key,compareFn:t.compareFn,direction:"ASC"});this.updateSortedData()}}validateHeaders(t){emptyStringByArrayHandler(t,()=>{objectObjectHandler(t,()=>{try{t=parseJson(t)}catch(t){}watchValidator(this,"_headers",t=>"object"==typeof t&&null!==t,new Set(["KoliBriTableHeaders"]),t,{hooks:{beforePatch:t=>{var n,e,i,a;const o=t=>{let n=!1;this.sortData=[],t.forEach(t=>{if("function"==typeof t.compareFn&&!t.key)return void devHint("[KolTableStateful] A sortable column requires the 'key' property.");const e=t.key;if(!e)return;const i=t.sortDirection;"ASC"!==i&&"DESC"!==i||"function"==typeof t.compareFn&&((this.state._allowMultiSort||0===this.sortData.length)&&this.sortData.push({label:t.label,key:e,compareFn:t.compareFn,direction:i}),n=!0)}),n&&setTimeout(()=>this.updateSortedData())},l=t;null===(n=l.horizontal)||void 0===n||n.forEach(o),null===(e=l.vertical)||void 0===e||e.forEach(o),l.horizontal&&l.vertical&&(null===(i=l.horizontal)||void 0===i?void 0:i.length)>0&&(null===(a=l.vertical)||void 0===a?void 0:a.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(t){validateLabel(this,t,{required:!0})}validateMinWidth(t){watchString(this,"_minWidth",t,{defaultValue:void 0})}validateSelection(t){validateTableSelection(this,t)}validateOn(t){validateTableStatefulCallbacks(this,t)}validateTableSettings(t){validateTableSettings(this,t)}validatePagination(t){try{t=parseJson(t)}catch(t){}this.showPagination=paginationValidator(t),watchValidator(this,"_pagination",paginationValidator,new Set(["boolean","KoliBriTablePagination"]),t,{defaultValue:{_page:1,_pageSize:10,_max:0}})}componentDidLoad(){var t;null===(t=this.tableWcRef)||void 0===t||t.addEventListener(KolEvent.selectionChange,this.onSelectionChange)}disconnectedCallback(){var t;null===(t=this.tableWcRef)||void 0===t||t.removeEventListener(KolEvent.selectionChange,this.onSelectionChange)}componentWillLoad(){this.validateAllowMultiSort(this._allowMultiSort),this.validateData(this._data),this.validateDataFoot(this._dataFoot),this.validateHeaders(this._headers),this.validateLabel(this._label),this.validateMinWidth(this._minWidth),this.validateOn(this._on),this.validatePagination(this._pagination),this.validatePaginationPosition(this._paginationPosition),this.validateSelection(this._selection),this.validateTableSettings(this._tableSettings),this.validateHasSettingsMenu(this._hasSettingsMenu)}selectDisplayedData(t,n,e){return"number"==typeof n&&n>0&&"number"==typeof e&&e>0?(this.pageStartSlice=n*(e-1),this.pageEndSlice=n*e>t.length?t.length:n*e,t.slice(this.pageStartSlice,this.pageEndSlice)):(this.pageStartSlice=0,this.pageEndSlice=t.length,t)}renderPagination(t){const n=translate("kol-table-pagination-label",{placeholders:{label:`${this.state._label} (${translate(`kol-pagination-position-${t}`)})`}});return h("div",{class:`kol-table-stateful__pagination kol-table-stateful__pagination--${this.state._paginationPosition}`},h("span",{role:"status","aria-live":"polite"},translate("kol-table-visible-range",{placeholders:{start:this.pageEndSlice>0?(this.pageStartSlice+1).toString():"0",end:this.pageEndSlice.toString(),total:this.state._pagination&&this.state._pagination._max>0?this.state._pagination._max.toString():Array.isArray(this.state._data)?this.state._data.length.toString():"0"}})),h("div",{class:"kol-table-stateful__pagination-wrapper"},h(KolPaginationWcTag,{class:"test",_boundaryCount:this.state._pagination._boundaryCount,_customClass:this.state._pagination._customClass,_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:n})))}getHeaderCellSortState(t){if(!this.disableSort&&"function"==typeof t.compareFn){if(t.key){const n=this.sortData.find(n=>n.key===t.key);if(null==n?void 0:n.direction)return n.direction}return"NOS"}}handleSort({key:t}){const n=[...(this.state._headers.horizontal||[]).flat(),...(this.state._headers.vertical||[]).flat()].find(n=>n.key===t);n&&this.changeCellSort(n)}getSelectedData(t){var n;const e=this.state._selection;if(e){const i=null!==(n=e.keyPropertyName)&&void 0!==n?n:"id",a=Array.isArray(t)?t:[t],o=new Set(a.map(String)),l=this.state._sortedData.filter(t=>o.has(String(t[i])));if(!1===(null==e?void 0:e.multiple))return l[0];if(i)return l}return null}handleSelectionChange(t,n){var e;const i=this.state._selection;i&&(this.state=Object.assign(Object.assign({},this.state),{_selection:Object.assign(Object.assign({},i),{selectedKeys:Array.isArray(n)?n:[n]})}));const a=this.getSelectedData(n);"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e[Callback.onSelectionChange])&&this.state._on[Callback.onSelectionChange](t,a),this.host&&dispatchDomEvent(this.host,KolEvent.selectionChange,a)}async getSelection(){var t;const n=(null===(t=this.state._selection)||void 0===t?void 0:t.selectedKeys)||[];return this.getSelectedData(n)}render(){var t,n,e,i,a,o;const l=this.selectDisplayedData(this.state._sortedData,this.showPagination?null!==(n=null===(t=this.state._pagination)||void 0===t?void 0:t._pageSize)&&void 0!==n?n: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,d={horizontal:null!==(i=null===(e=this.state._headers.horizontal)||void 0===e?void 0:e.map(t=>t.map(t=>Object.assign(Object.assign({},t),{sortDirection:this.getHeaderCellSortState(t)}))))&&void 0!==i?i:[],vertical:null!==(o=null===(a=this.state._headers.vertical)||void 0===a?void 0:a.map(t=>t.map(t=>Object.assign(Object.assign({},t),{sortDirection:this.getHeaderCellSortState(t)}))))&&void 0!==o?o:[]};return h(Host,{key:"5ab8ff5b83647e809cddeccf2245696887bd12b4",class:"kol-table-stateful"},this.pageEndSlice>0&&this.showPagination&&s,h(KolTableStatelessWcTag,{key:"a508c9984294f4be4f37b43ea4b8d5f7417c0818",ref:this.catchRef,_data:l,_headerCells:d,_label:this.state._label,_dataFoot:this.state._dataFoot,_minWidth:this.state._minWidth,_on:{onSort:(t,n)=>{this.handleSort(n)},onSelectionChange:(t,n)=>{this.handleSelectionChange(t,n)}},_selection:this.state._selection,_tableSettings:this.state._tableSettings,_hasSettingsMenu:this.state._hasSettingsMenu}),this.pageEndSlice>0&&this.showPagination&&r)}get host(){return this}static get watchers(){return{_allowMultiSort:["validateAllowMultiSort"],_data:["validateData"],_dataFoot:["validateDataFoot"],_paginationPosition:["validatePaginationPosition"],_hasSettingsMenu:["validateHasSettingsMenu"],_headers:["validateHeaders"],_label:["validateLabel"],_minWidth:["validateMinWidth"],_selection:["validateSelection"],_on:["validateOn"],_tableSettings:["validateTableSettings"],_pagination:["validatePagination"]}}static get style(){return{default:defaultStyleCss}}},[289,"kol-table-stateful",{_allowMultiSort:[4,"_allow-multi-sort"],_data:[1],_dataFoot:[1,"_data-foot"],_headers:[1],_label:[1],_minWidth:[1,"_min-width"],_pagination:[8],_paginationPosition:[1,"_pagination-position"],_selection:[1],_on:[16],_tableSettings:[16],_hasSettingsMenu:[4,"_has-settings-menu"],state:[32],getSelection:[64]},void 0,{_allowMultiSort:["validateAllowMultiSort"],_data:["validateData"],_dataFoot:["validateDataFoot"],_paginationPosition:["validatePaginationPosition"],_hasSettingsMenu:["validateHasSettingsMenu"],_headers:["validateHeaders"],_label:["validateLabel"],_minWidth:["validateMinWidth"],_selection:["validateSelection"],_on:["validateOn"],_tableSettings:["validateTableSettings"],_pagination:["validatePagination"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-table-stateful"].forEach(t=>{if("kol-table-stateful"===t)customElements.get(t)||customElements.define(t,KolTableStateful$1)})}const KolTableStateful=KolTableStateful$1,defineCustomElement=defineCustomElement$1;export{KolTableStateful,defineCustomElement};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"kol-table-stateful.js","mappings":";;;;;;;;;;;;AAgBO,MAAM,sBAAsB,GAAG,CAAC,SAAoC,EAAE,KAA8B,EAAE,OAAA,GAA+B,EAAE,KAAU;IACvJ,YAAY,CAAC,SAAS,EAAE,iBAAiB,EAAE,KAAK,EAAI,MAAA,CAAA,MAAA,CAAA,EAAA,YAAY,EAAE,KAAK,EAAK,EAAA,OAAO,EAAG;AACvF,CAAC;;ACdD,MAAM,iCAAiC,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAU;AAWrE,MAAM,0BAA0B,GAAG,CAAC,SAAoC,EAAE,KAAkC,KAAU;AAC5H,IAAA,cAAc,CACb,SAAS,EACT,CAAqB,mBAAA,CAAA,EACrB,CAAC,KAAK,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,iCAAiC,CAAC,QAAQ,CAAC,KAAK,CAAC,EACzF,IAAI,GAAG,CAAC,CAAC,+BAA+B,iCAAiC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA,CAAE,CAAC,CAAC,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AAY,EAAE,WAAW,EACzB,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,EACzB,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,EAC/B,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,EAC/B,GAAG,EAAE;AACJ,gBAAA,MAAM,EAAE,CAAC,CAAa,EAAE,OAAyB,KAAI;AACpD,oBAAA,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;iBACxB;AACD,gBAAA,iBAAiB,EAAE,CAAC,KAAY,EAAE,KAA2D,KAAI;AAChG,oBAAA,IAAI,CAAC,qBAAqB,CAAC,KAAK,EAAE,KAAK,CAAC;iBACxC;AACD,aAAA,EACD,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,EACjC,cAAc,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,EACzC,gBAAgB,EAAE,IAAI,CAAC,KAAK,CAAC,gBAAgB,EAC5C,CAAA,EACD,IAAI,CAAC,YAAY,GAAG,CAAC,IAAI,IAAI,CAAC,cAAc,IAAI,gBAAgB,CAC3D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["KolTableStateful","__stencil_proxyCustomElement"],"sources":["src/schema/props/allow-multi-sort.ts","src/schema/props/pagination-position.ts","src/components/table-stateful/style.scss?tag=kol-table-stateful&mode=default&encapsulation=shadow","src/components/table-stateful/shadow.tsx"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport type { WatchBooleanOptions } from '../utils';\nimport { watchBoolean } from '../utils';\n\n/* types */\nexport type AllowMultiSortPropType = boolean;\n\n/**\n * Defines whether to allow multi sort.\n */\nexport interface PropAllowMultiSort {\n\tallowMultiSort: AllowMultiSortPropType;\n}\n\n/* validator */\nexport const validateAllowMultiSort = (component: Generic.Element.Component, value?: AllowMultiSortPropType, options: WatchBooleanOptions = {}): void => {\n\twatchBoolean(component, '_allowMultiSort', value, { defaultValue: false, ...options });\n};\n","/* types */\nimport type { Generic } from 'adopted-style-sheets';\nimport { watchValidator } from '../utils/prop.validators';\n\nconst paginationPositionPropTypeOptions = ['top', 'bottom', 'both'] as const;\nexport type PaginationPositionPropType = (typeof paginationPositionPropTypeOptions)[number];\n\n/**\n * Defines which position should be used for presentation.\n */\nexport type PropPaginationPosition = {\n\tpaginationPosition: PaginationPositionPropType;\n};\n\n/* validator */\nexport const validatePaginationPosition = (component: Generic.Element.Component, value?: PaginationPositionPropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t`_paginationPosition`,\n\t\t(value) => typeof value === 'string' && paginationPositionPropTypeOptions.includes(value),\n\t\tnew Set([`PaginationPositionPropType {${paginationPositionPropTypeOptions.join(', ')}`]),\n\t\tvalue,\n\t\t{\n\t\t\tdefaultValue: 'bottom',\n\t\t},\n\t);\n};\n","@use '../../styles/global' as *;\n@use '../../styles/kol-alert-mixin' as *;\n@use '../@shared/kol-button-mixin' as *;\n@use '../@shared/kol-popover-button-mixin' as *;\n@use '../@shared/kol-table-stateless-mixin' as *;\n@use '../@shared/mixins' as *;\n@use '../@shared/kol-pagination-mixin' as *;\n\n@layer kol-component {\n\t@include kol-alert;\n\t@include kol-button-styles('kol-button');\n\t@include kol-popover-button-styles;\n\t@include kol-table-stateless-styles;\n\t@include kol-pagination-styles;\n\n\t.kol-table-stateful {\n\t\t&__pagination,\n\t\t&__pagination-wrapper {\n\t\t\tdisplay: grid;\n\t\t\tplace-items: center;\n\n\t\t\t@media (min-width: 1024px) {\n\t\t\t\tgrid-auto-flow: column;\n\t\t\t}\n\t\t}\n\t}\n\n\t.kol-pagination {\n\t\tdisplay: flex;\n\t\tflex-wrap: wrap;\n\n\t\t@media (min-width: 1024px) {\n\t\t\tdisplay: flex;\n\t\t}\n\n\t\t@media (max-width: 1024px) {\n\t\t\tflex-direction: column;\n\t\t}\n\t}\n}\n","/* eslint-disable jsx-a11y/no-noninteractive-tabindex */\nimport type { JSX } from '@stencil/core';\nimport { Component, Element, h, Host, Method, Prop, State, Watch } from '@stencil/core';\nimport { KolPaginationWcTag, KolTableStatelessWcTag } from '../../core/component-names';\nimport { translate } from '../../i18n';\nimport type {\n\tHasSettingsMenuPropType,\n\tKoliBriDataCompareFn,\n\tKoliBriPaginationButtonCallbacks,\n\tKoliBriSortDirection,\n\tKoliBriTableDataType,\n\tKoliBriTableHeaderCellWithLogic,\n\tKoliBriTableHeaders,\n\tKoliBriTablePaginationProps,\n\tKoliBriTableSelectionKey,\n\tKoliBriTableSelectionKeys,\n\tLabelPropType,\n\tPaginationPositionPropType,\n\tSortEventPayload,\n\tStringified,\n\tTableAPI,\n\tTableDataFootPropType,\n\tTableDataPropType,\n\tTableHeaderCells,\n\tTableSelectionPropType,\n\tTableStatefulCallbacksPropType,\n\tTableStates,\n} from '../../schema';\nimport {\n\tdevHint,\n\temptyStringByArrayHandler,\n\tobjectObjectHandler,\n\tparseJson,\n\tsetState,\n\tvalidateAllowMultiSort,\n\tvalidateHasSettingsMenu,\n\tvalidateLabel,\n\tvalidatePaginationPosition,\n\tvalidateTableData,\n\tvalidateTableDataFoot,\n\tvalidateTableSelection,\n\tvalidateTableStatefulCallbacks,\n\twatchString,\n\twatchValidator,\n} from '../../schema';\nimport { Callback } from '../../schema/enums';\nimport type { MinWidthPropType } from '../../schema/props/min-width';\nimport type { TableSettingsPropType } from '../../schema/props/table-settings';\nimport { validateTableSettings } from '../../schema/props/table-settings';\nimport { dispatchDomEvent, KolEvent } from '../../utils/events';\n\nconst PAGINATION_OPTIONS = [10, 20, 50, 100];\n\nconst paginationValidator = (value: unknown) => value === true || value === '' /* true */ || (typeof value === 'object' && value !== null);\n\ntype SortData = {\n\tlabel: string;\n\tkey: string;\n\tcompareFn: KoliBriDataCompareFn;\n\tdirection: KoliBriSortDirection;\n};\n\n@Component({\n\ttag: 'kol-table-stateful',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolTableStateful implements TableAPI {\n\t@Element() private readonly host?: HTMLKolTableStatelessWcElement;\n\tprivate tableWcRef?: HTMLKolTableStatelessWcElement;\n\n\tprivate readonly catchRef = (ref?: HTMLKolTableStatelessWcElement) => {\n\t\tthis.tableWcRef = ref;\n\t};\n\n\tprivate sortData: SortData[] = [];\n\tprivate showPagination = false;\n\tprivate pageStartSlice = 0;\n\tprivate pageEndSlice = 10;\n\tprivate disableSort = false;\n\n\t/**\n\t * Defines whether to allow multi sort.\n\t */\n\t@Prop() public _allowMultiSort?: boolean;\n\n\t/**\n\t * Defines the primary table data.\n\t */\n\t@Prop() public _data!: Stringified<KoliBriTableDataType[]>;\n\n\t/**\n\t * Defines the data for the table footer.\n\t */\n\t@Prop() public _dataFoot?: Stringified<KoliBriTableDataType[]>;\n\n\t/**\n\t * Defines the horizontal and vertical table headers.\n\t */\n\t@Prop() public _headers!: Stringified<KoliBriTableHeaders>;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label!: string;\n\n\t/**\n\t * Defines the table min-width (CSS width values).\n\t */\n\t@Prop() public _minWidth!: MinWidthPropType;\n\n\t/**\n\t * Defines whether to show the data distributed over multiple pages.\n\t */\n\t@Prop() public _pagination?: boolean | Stringified<KoliBriTablePaginationProps>;\n\t/**\n\t * Controls the position of the pagination.\n\t */\n\t@Prop() public _paginationPosition?: PaginationPositionPropType = 'bottom';\n\t/**\n\t * Defines how rows can be selected and the current selection.\n\t */\n\t@Prop() public _selection?: TableSelectionPropType;\n\t/**\n\t * Defines the callback functions for table events.\n\t */\n\t@Prop() public _on?: TableStatefulCallbacksPropType;\n\n\t/**\n\t * Defines the table settings including column visibility, order and width.\n\t */\n\t@Prop() public _tableSettings?: TableSettingsPropType;\n\n\t/**\n\t * Enables the settings menu if true (default: false).\n\t */\n\t@Prop() public _hasSettingsMenu?: HasSettingsMenuPropType;\n\n\t@State() public state: TableStates = {\n\t\t_allowMultiSort: false,\n\t\t_data: [],\n\t\t_dataFoot: [],\n\t\t_headers: {\n\t\t\thorizontal: [],\n\t\t\tvertical: [],\n\t\t},\n\t\t_label: '', // ⚠ required\n\t\t_minWidth: 'auto',\n\t\t_pagination: {\n\t\t\t_page: 1,\n\t\t\t_pageSize: 10,\n\t\t\t_max: 0,\n\t\t},\n\t\t_sortedData: [],\n\t\t_paginationPosition: 'bottom',\n\t\t_hasSettingsMenu: false,\n\t};\n\n\t@Watch('_allowMultiSort')\n\tpublic validateAllowMultiSort(value?: boolean): void {\n\t\tvalidateAllowMultiSort(this, value, { defaultValue: false });\n\t}\n\n\t@Watch('_data')\n\tpublic validateData(value?: TableDataPropType): void {\n\t\tvalidateTableData(this, value, {\n\t\t\tafterPatch: () => {\n\t\t\t\t// TODO: kein guter Hack (endless loop)\n\t\t\t\tsetTimeout(this.updateSortedData);\n\t\t\t},\n\t\t});\n\t}\n\n\t@Watch('_dataFoot')\n\tpublic validateDataFoot(value?: TableDataFootPropType): void {\n\t\tvalidateTableDataFoot(this, value, {\n\t\t\tafterPatch: () => {\n\t\t\t\tsetTimeout(this.updateSortedData);\n\t\t\t},\n\t\t});\n\t}\n\n\t@Watch('_paginationPosition')\n\tpublic validatePaginationPosition(value?: PaginationPositionPropType): void {\n\t\tvalidatePaginationPosition(this, value);\n\t}\n\n\t@Watch('_hasSettingsMenu')\n\tpublic validateHasSettingsMenu(value?: HasSettingsMenuPropType): void {\n\t\tvalidateHasSettingsMenu(this, value);\n\t}\n\n\t/**\n\t * Handles sorting logic for table columns.\n\t * If multi-sort is enabled (`_allowMultiSort`), multiple columns can be sorted at once.\n\t * Otherwise, sorting is cleared when switching between columns.\n\t */\n\tprivate changeCellSort(headerCell: KoliBriTableHeaderCellWithLogic) {\n\t\tif (typeof headerCell.compareFn === 'function') {\n\t\t\tif (!this.state._allowMultiSort && headerCell.key !== this.sortData[0]?.key) {\n\t\t\t\t// clear when another column is sorted and multi sort is not allowed\n\t\t\t\tthis.sortData = [];\n\t\t\t}\n\n\t\t\tconst index = this.sortData.findIndex((value) => value.key === headerCell.key);\n\t\t\tif (index >= 0) {\n\t\t\t\tconst settings = this.sortData[index];\n\t\t\t\tswitch (settings.direction) {\n\t\t\t\t\tcase 'ASC':\n\t\t\t\t\t\tsettings.direction = 'DESC';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'DESC':\n\t\t\t\t\t\tthis.sortData.splice(index, 1);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tsettings.direction = 'ASC';\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else if (headerCell.key) {\n\t\t\t\tthis.sortData.push({\n\t\t\t\t\tlabel: headerCell.label,\n\t\t\t\t\tkey: headerCell.key,\n\t\t\t\t\tcompareFn: headerCell.compareFn,\n\t\t\t\t\tdirection: 'ASC',\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tthis.updateSortedData();\n\t\t}\n\t}\n\n\t@Watch('_headers')\n\tpublic validateHeaders(value?: Stringified<KoliBriTableHeaders>): void {\n\t\t/**\n\t\t * - es darf maximal ein Header als primary markiert werden (last win)\n\t\t * - der primary-Header entscheidet implizit über _order und _orientation\n\t\t * - primary-Headers müssen das key-Property setzen\n\t\t * - nicht primary-Headers müssen das key-Property nicht setzen (wird ignoriert)\n\t\t * - _order: wird durch den primary-Header geregelt\n\t\t * - _orientation: wird durch den primary-Header geregelt\n\t\t * - sobald ein Header sortierbar ist, darf es nur noch entweder horizontale\n\t\t * oder vertikale Header geben, aber nicht mehr beides\n\t\t */\n\t\temptyStringByArrayHandler(value, () => {\n\t\t\tobjectObjectHandler(value, () => {\n\t\t\t\ttry {\n\t\t\t\t\tvalue = parseJson<KoliBriTableHeaders>(value);\n\t\t\t\t\t// eslint-disable-next-line no-empty\n\t\t\t\t} catch (e) {\n\t\t\t\t\t// value behält den ursprünglichen Wert\n\t\t\t\t}\n\t\t\t\twatchValidator(this, '_headers', (value): boolean => typeof value === 'object' && value !== null, new Set(['KoliBriTableHeaders']), value, {\n\t\t\t\t\thooks: {\n\t\t\t\t\t\tbeforePatch: (nextValue: unknown) => {\n\t\t\t\t\t\t\tconst applySort = (headers: KoliBriTableHeaderCellWithLogic[]) => {\n\t\t\t\t\t\t\t\tlet hasSortedCells = false;\n\t\t\t\t\t\t\t\tthis.sortData = [];\n\t\t\t\t\t\t\t\theaders.forEach((cell) => {\n\t\t\t\t\t\t\t\t\tif (typeof cell.compareFn === 'function' && !cell.key) {\n\t\t\t\t\t\t\t\t\t\tdevHint(`[KolTableStateful] A sortable column requires the 'key' property.`);\n\t\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tconst key = cell.key;\n\t\t\t\t\t\t\t\t\tif (!key) {\n\t\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tconst sortDirection = cell.sortDirection;\n\t\t\t\t\t\t\t\t\tif (sortDirection === 'ASC' || sortDirection === 'DESC') {\n\t\t\t\t\t\t\t\t\t\tif (typeof cell.compareFn === 'function') {\n\t\t\t\t\t\t\t\t\t\t\tif (this.state._allowMultiSort || this.sortData.length === 0) {\n\t\t\t\t\t\t\t\t\t\t\t\tthis.sortData.push({ label: cell.label, key, compareFn: cell.compareFn, direction: sortDirection });\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\thasSortedCells = true;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\tif (hasSortedCells) {\n\t\t\t\t\t\t\t\t\tsetTimeout(() => this.updateSortedData());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\tconst headers: KoliBriTableHeaders = nextValue as KoliBriTableHeaders;\n\t\t\t\t\t\t\theaders.horizontal?.forEach(applySort);\n\t\t\t\t\t\t\theaders.vertical?.forEach(applySort);\n\n\t\t\t\t\t\t\tif (headers.horizontal && headers.vertical && headers.horizontal?.length > 0 && headers.vertical?.length > 0) {\n\t\t\t\t\t\t\t\tthis.disableSort = true;\n\t\t\t\t\t\t\t\tdevHint(\n\t\t\t\t\t\t\t\t\t`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)`,\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t});\n\t\t\t});\n\t\t});\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelPropType): void {\n\t\tvalidateLabel(this, value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t@Watch('_minWidth')\n\tpublic validateMinWidth(value?: string): void {\n\t\twatchString(this, '_minWidth', value, {\n\t\t\tdefaultValue: undefined,\n\t\t});\n\t}\n\n\t@Watch('_selection')\n\tpublic validateSelection(value?: TableSelectionPropType): void {\n\t\tvalidateTableSelection(this, value);\n\t}\n\t@Watch('_on')\n\tpublic validateOn(value?: TableStatefulCallbacksPropType): void {\n\t\tvalidateTableStatefulCallbacks(this, value);\n\t}\n\n\t@Watch('_tableSettings')\n\tpublic validateTableSettings(value?: TableSettingsPropType): void {\n\t\tvalidateTableSettings(this, value);\n\t}\n\n\tprivate readonly handlePagination: KoliBriPaginationButtonCallbacks = {\n\t\tonClick: (event: Event, page: number) => {\n\t\t\tif (typeof this.state._pagination._on?.onClick === 'function') {\n\t\t\t\tthis.state._pagination._on.onClick(event, page);\n\t\t\t}\n\t\t\tsetState(this, '_pagination', {\n\t\t\t\t...this.state._pagination,\n\t\t\t\t_page: page,\n\t\t\t});\n\t\t},\n\t\tonChangePage: (event: Event, page: number) => {\n\t\t\tif (typeof this.state._pagination._on?.onChangePage === 'function') {\n\t\t\t\tthis.state._pagination._on.onChangePage(event, page);\n\t\t\t}\n\t\t\tsetState(this, '_pagination', {\n\t\t\t\t...this.state._pagination,\n\t\t\t\t_page: page,\n\t\t\t});\n\t\t},\n\t\tonChangePageSize: (event: Event, pageSize: number) => {\n\t\t\tif (typeof this.state._pagination._on?.onChangePageSize === 'function') {\n\t\t\t\tthis.state._pagination._on.onChangePageSize(event, pageSize);\n\t\t\t}\n\t\t\tsetState(this, '_pagination', {\n\t\t\t\t...this.state._pagination,\n\t\t\t\t_pageSize: pageSize,\n\t\t\t});\n\t\t\tsetState(this, '_pageSize', pageSize);\n\t\t},\n\t};\n\n\t@Watch('_pagination')\n\tpublic validatePagination(value?: boolean | Stringified<KoliBriTablePaginationProps>): void {\n\t\ttry {\n\t\t\tvalue = parseJson<boolean | KoliBriTablePaginationProps>(value);\n\t\t\t// eslint-disable-next-line no-empty\n\t\t} catch (e) {\n\t\t\t// value behält den ursprünglichen Wert\n\t\t}\n\n\t\tthis.showPagination = paginationValidator(value);\n\n\t\twatchValidator<boolean | Stringified<KoliBriTablePaginationProps>>(\n\t\t\tthis,\n\t\t\t'_pagination',\n\t\t\tpaginationValidator,\n\t\t\tnew Set(['boolean', 'KoliBriTablePagination']),\n\t\t\tvalue,\n\t\t\t{\n\t\t\t\tdefaultValue: {\n\t\t\t\t\t_page: 1,\n\t\t\t\t\t_pageSize: 10,\n\t\t\t\t\t_max: 0,\n\t\t\t\t},\n\t\t\t},\n\t\t);\n\t}\n\n\tprivate onSelectionChange = (event: Event): void => {\n\t\t/* Stop propagation for selectionChange event from table-stateless component because table-stateful emits its own selectionChange event. */\n\t\tevent.stopPropagation();\n\t};\n\n\tpublic componentDidLoad(): void {\n\t\tthis.tableWcRef?.addEventListener(KolEvent.selectionChange, this.onSelectionChange);\n\t}\n\n\tpublic disconnectedCallback(): void {\n\t\tthis.tableWcRef?.removeEventListener(KolEvent.selectionChange, this.onSelectionChange);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateAllowMultiSort(this._allowMultiSort);\n\t\tthis.validateData(this._data);\n\t\tthis.validateDataFoot(this._dataFoot);\n\t\tthis.validateHeaders(this._headers);\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateMinWidth(this._minWidth);\n\t\tthis.validateOn(this._on);\n\t\tthis.validatePagination(this._pagination);\n\t\tthis.validatePaginationPosition(this._paginationPosition);\n\t\tthis.validateSelection(this._selection);\n\t\tthis.validateTableSettings(this._tableSettings);\n\t\tthis.validateHasSettingsMenu(this._hasSettingsMenu);\n\t}\n\n\tprivate selectDisplayedData(data: KoliBriTableDataType[], pageSize: number, page: number): KoliBriTableDataType[] {\n\t\tif (typeof pageSize === 'number' && pageSize > 0 && typeof page === 'number' && page > 0) {\n\t\t\tthis.pageStartSlice = pageSize * (page - 1);\n\t\t\tthis.pageEndSlice = pageSize * page > data.length ? data.length : pageSize * page;\n\t\t\treturn data.slice(this.pageStartSlice, this.pageEndSlice);\n\t\t} else {\n\t\t\tthis.pageStartSlice = 0;\n\t\t\tthis.pageEndSlice = data.length;\n\t\t\treturn data;\n\t\t}\n\t}\n\n\tprivate updateSortedData = () => {\n\t\tif (this.disableSort) {\n\t\t\tsetState(this, '_sortedData', this.state._data);\n\t\t\treturn;\n\t\t}\n\n\t\tconst sortedData: KoliBriTableDataType[] = [...this.state._data];\n\t\tif (this.sortData.length > 0) {\n\t\t\tsortedData.sort((a: KoliBriTableDataType, b: KoliBriTableDataType) => {\n\t\t\t\tfor (let index = 0; index < this.sortData.length; index++) {\n\t\t\t\t\tconst data = this.sortData[index];\n\t\t\t\t\tconst result = data.compareFn(a, b, data.direction);\n\t\t\t\t\tif (result !== 0) {\n\t\t\t\t\t\treturn data.direction === 'ASC' ? result : -result;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn 0;\n\t\t\t});\n\t\t}\n\t\tsetState(this, '_sortedData', sortedData);\n\t};\n\n\t/**\n\t * Renders the pagination controls for the table, showing the current visible data range\n\t * and providing navigation between different pages.\n\t *\n\t * @returns {JSX.Element} The rendered pagination controls including page range and navigation.\n\t */\n\tprivate renderPagination(position: 'top' | 'bottom'): JSX.Element {\n\t\tconst label = translate('kol-table-pagination-label', {\n\t\t\tplaceholders: {\n\t\t\t\tlabel: `${this.state._label} (${translate(`kol-pagination-position-${position}`)})`,\n\t\t\t},\n\t\t});\n\t\treturn (\n\t\t\t<div class={`kol-table-stateful__pagination kol-table-stateful__pagination--${this.state._paginationPosition}`}>\n\t\t\t\t<span role=\"status\" aria-live=\"polite\">\n\t\t\t\t\t{translate('kol-table-visible-range', {\n\t\t\t\t\t\tplaceholders: {\n\t\t\t\t\t\t\tstart: this.pageEndSlice > 0 ? (this.pageStartSlice + 1).toString() : '0',\n\t\t\t\t\t\t\tend: this.pageEndSlice.toString(),\n\t\t\t\t\t\t\ttotal:\n\t\t\t\t\t\t\t\tthis.state._pagination && this.state._pagination._max > 0\n\t\t\t\t\t\t\t\t\t? this.state._pagination._max.toString()\n\t\t\t\t\t\t\t\t\t: Array.isArray(this.state._data)\n\t\t\t\t\t\t\t\t\t\t? this.state._data.length.toString()\n\t\t\t\t\t\t\t\t\t\t: '0',\n\t\t\t\t\t\t},\n\t\t\t\t\t})}\n\t\t\t\t</span>\n\t\t\t\t<div class=\"kol-table-stateful__pagination-wrapper\">\n\t\t\t\t\t<KolPaginationWcTag\n\t\t\t\t\t\tclass=\"test\"\n\t\t\t\t\t\t_boundaryCount={this.state._pagination._boundaryCount}\n\t\t\t\t\t\t_customClass={this.state._pagination._customClass}\n\t\t\t\t\t\t_on={this.handlePagination}\n\t\t\t\t\t\t_page={this.state._pagination._page}\n\t\t\t\t\t\t_pageSize={this.state._pagination._pageSize}\n\t\t\t\t\t\t_pageSizeOptions={this.state._pagination._pageSizeOptions || PAGINATION_OPTIONS}\n\t\t\t\t\t\t_siblingCount={this.state._pagination._siblingCount}\n\t\t\t\t\t\t_tooltipAlign=\"bottom\"\n\t\t\t\t\t\t_max={this.state._pagination._max || this.state._pagination._max || this.state._data.length}\n\t\t\t\t\t\t_label={label}\n\t\t\t\t\t></KolPaginationWcTag>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n\n\tprivate getHeaderCellSortState(headerCell: KoliBriTableHeaderCellWithLogic): KoliBriSortDirection | undefined {\n\t\tif (!this.disableSort && typeof headerCell.compareFn === 'function') {\n\t\t\tif (headerCell.key) {\n\t\t\t\tconst data = this.sortData.find((value) => value.key === headerCell.key);\n\t\t\t\tif (data?.direction) {\n\t\t\t\t\treturn data.direction;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn 'NOS';\n\t\t}\n\t}\n\n\tprivate handleSort({ key }: SortEventPayload) {\n\t\tconst headerCell = [...(this.state._headers.horizontal || []).flat(), ...(this.state._headers.vertical || []).flat()].find((cell) => cell.key === key);\n\t\tif (headerCell) {\n\t\t\tthis.changeCellSort(headerCell);\n\t\t}\n\t}\n\n\tprivate getSelectedData(selectedKeys: KoliBriTableSelectionKeys | KoliBriTableSelectionKey): null | KoliBriTableDataType | KoliBriTableDataType[] {\n\t\tconst selection = this.state._selection;\n\t\tif (selection) {\n\t\t\tconst keyPropertyName = selection.keyPropertyName ?? 'id';\n\t\t\tconst keys = Array.isArray(selectedKeys) ? selectedKeys : [selectedKeys];\n\t\t\tconst keySet = new Set(keys.map(String));\n\t\t\tconst data = this.state._sortedData.filter((item) => keySet.has(String(item[keyPropertyName] as string | number)));\n\t\t\tif (selection?.multiple === false) {\n\t\t\t\treturn data[0];\n\t\t\t}\n\t\t\tif (keyPropertyName) return data;\n\t\t}\n\t\treturn null;\n\t}\n\tprivate handleSelectionChange(event: Event, value: KoliBriTableSelectionKeys | KoliBriTableSelectionKey): void {\n\t\tconst selection = this.state._selection;\n\t\tif (selection)\n\t\t\tthis.state = {\n\t\t\t\t...this.state,\n\t\t\t\t_selection: {\n\t\t\t\t\t...selection,\n\t\t\t\t\tselectedKeys: Array.isArray(value) ? value : [value],\n\t\t\t\t},\n\t\t\t};\n\t\tconst selectedData = this.getSelectedData(value);\n\n\t\tif (typeof this.state._on?.[Callback.onSelectionChange] === 'function') {\n\t\t\tthis.state._on[Callback.onSelectionChange](event, selectedData);\n\t\t}\n\t\tif (this.host) {\n\t\t\tdispatchDomEvent(this.host, KolEvent.selectionChange, selectedData);\n\t\t}\n\t}\n\n\t/**\n\t * Returns the selected rows.\n\t */\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async getSelection(): Promise<KoliBriTableDataType[] | KoliBriTableDataType | null> {\n\t\tconst selectedKeys: KoliBriTableSelectionKeys = this.state._selection?.selectedKeys || [];\n\t\treturn this.getSelectedData(selectedKeys);\n\t}\n\n\tpublic render(): JSX.Element {\n\t\tconst displayedData: KoliBriTableDataType[] = this.selectDisplayedData(\n\t\t\tthis.state._sortedData,\n\t\t\tthis.showPagination ? (this.state._pagination?._pageSize ?? 10) : this.state._sortedData.length,\n\t\t\tthis.state._pagination._page || 1,\n\t\t);\n\t\tconst paginationTop = this._paginationPosition === 'top' || this._paginationPosition === 'both' ? this.renderPagination('top') : null;\n\t\tconst paginationBottom = this._paginationPosition === 'bottom' || this._paginationPosition === 'both' ? this.renderPagination('bottom') : null;\n\n\t\tconst headerCells: TableHeaderCells = {\n\t\t\thorizontal: this.state._headers.horizontal?.map((row) => row.map((cell) => ({ ...cell, sortDirection: this.getHeaderCellSortState(cell) }))) ?? [],\n\t\t\tvertical: this.state._headers.vertical?.map((column) => column.map((cell) => ({ ...cell, sortDirection: this.getHeaderCellSortState(cell) }))) ?? [],\n\t\t};\n\t\treturn (\n\t\t\t<Host class=\"kol-table-stateful\">\n\t\t\t\t{this.pageEndSlice > 0 && this.showPagination && paginationTop}\n\t\t\t\t<KolTableStatelessWcTag\n\t\t\t\t\tref={this.catchRef}\n\t\t\t\t\t_data={displayedData}\n\t\t\t\t\t_headerCells={headerCells}\n\t\t\t\t\t_label={this.state._label}\n\t\t\t\t\t_dataFoot={this.state._dataFoot}\n\t\t\t\t\t_minWidth={this.state._minWidth}\n\t\t\t\t\t_on={{\n\t\t\t\t\t\tonSort: (_: MouseEvent, payload: SortEventPayload) => {\n\t\t\t\t\t\t\tthis.handleSort(payload);\n\t\t\t\t\t\t},\n\t\t\t\t\t\tonSelectionChange: (event: Event, value: KoliBriTableSelectionKeys | KoliBriTableSelectionKey) => {\n\t\t\t\t\t\t\tthis.handleSelectionChange(event, value);\n\t\t\t\t\t\t},\n\t\t\t\t\t}}\n\t\t\t\t\t_selection={this.state._selection}\n\t\t\t\t\t_tableSettings={this.state._tableSettings}\n\t\t\t\t\t_hasSettingsMenu={this.state._hasSettingsMenu}\n\t\t\t\t/>\n\t\t\t\t{this.pageEndSlice > 0 && this.showPagination && paginationBottom}\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"version":3}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{proxyCustomElement as t,HTMLElement as e,h as i,Fragment as n,transformTag as r}from"@stencil/core/internal/client";import{c as o}from"./clsx.js";import{e as l,a,d as s,r as c}from"./component-names.js";import{t as u}from"./i18n.js";import{Q as h,o as d,p as f,w as v,s as b}from"./common.js";import{b as _,v as p,a as y,f as k,c as m,e as j}from"./table-settings.js";import{v as g}from"./label.js";import{C as w}from"./keyboard.js";import{n as S}from"./dev.utils.js";import{d as A,K as O}from"./events.js";import{i as C,c as D,r as x,a as M,f as $,b as W,S as F}from"./isObject.js";function H(t){if(!C(t))return!1;var e=D(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var T=x["__core-js_shared__"],E=function(){var t=/[^.]+$/.exec(T&&T.keys&&T.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),K=Function.prototype.toString;function P(t){if(null!=t){try{return K.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var z=/^\[object .+?Constructor\]$/,R=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function L(t,e){var a=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!C(t)||function(t){return!!E&&E in t}(t))&&(H(t)?R:z).test(P(t))}(a)?a:void 0}var N=L(x,"WeakMap"),B=/^(?:0|[1-9]\d*)$/;function I(t,e){var a=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==a||"symbol"!=a&&B.test(t))&&t>-1&&t%1==0&&t<e}function V(t,e){return t===e||t!=t&&e!=e}function U(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}var q=Object.prototype;function G(t){return M(t)&&"[object Arguments]"==D(t)}var Q=Object.prototype,J=Q.hasOwnProperty,X=Q.propertyIsEnumerable,Y=G(function(){return arguments}())?G:function(t){return M(t)&&J.call(t,"callee")&&!X.call(t,"callee")},Z="object"==typeof exports&&exports&&!exports.nodeType&&exports,tt=Z&&"object"==typeof module&&module&&!module.nodeType&&module,et=tt&&tt.exports===Z?x.Buffer:void 0,it=(et?et.isBuffer:void 0)||function(){return!1},nt={};nt["[object Float32Array]"]=nt["[object Float64Array]"]=nt["[object Int8Array]"]=nt["[object Int16Array]"]=nt["[object Int32Array]"]=nt["[object Uint8Array]"]=nt["[object Uint8ClampedArray]"]=nt["[object Uint16Array]"]=nt["[object Uint32Array]"]=!0,nt["[object Arguments]"]=nt["[object Array]"]=nt["[object ArrayBuffer]"]=nt["[object Boolean]"]=nt["[object DataView]"]=nt["[object Date]"]=nt["[object Error]"]=nt["[object Function]"]=nt["[object Map]"]=nt["[object Number]"]=nt["[object Object]"]=nt["[object RegExp]"]=nt["[object Set]"]=nt["[object String]"]=nt["[object WeakMap]"]=!1;var rt="object"==typeof exports&&exports&&!exports.nodeType&&exports,ot=rt&&"object"==typeof module&&module&&!module.nodeType&&module,lt=ot&&ot.exports===rt&&$.process,at=function(){try{return ot&&ot.require&&ot.require("util").types||lt&<.binding&<.binding("util")}catch(t){}}(),st=at&&at.isTypedArray,ct=st?function(t){return function(e){return t(e)}}(st):function(t){return M(t)&&U(t.length)&&!!nt[D(t)]},ut=Object.prototype.hasOwnProperty,ht=function(t,e){return function(a){return t(e(a))}}(Object.keys,Object),dt=Object.prototype.hasOwnProperty;function ft(t){return function(t){return null!=t&&U(t.length)&&!H(t)}(t)?function(t){var e=W(t),a=!e&&Y(t),r=!e&&!a&&it(t),n=!e&&!a&&!r&&ct(t),i=e||a||r||n,o=i?function(t,e){for(var a=-1,r=Array(t);++a<t;)r[a]=e(a);return r}(t.length,String):[],l=o.length;for(var s in t)!ut.call(t,s)||i&&("length"==s||r&&("offset"==s||"parent"==s)||n&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||I(s,l))||o.push(s);return o}(t):function(t){if(!function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||q)}(t))return ht(t);var e=[];for(var a in Object(t))dt.call(t,a)&&"constructor"!=a&&e.push(a);return e}(t)}var vt=L(Object,"create"),bt=Object.prototype.hasOwnProperty,_t=Object.prototype.hasOwnProperty;function pt(t){var e=-1,a=null==t?0:t.length;for(this.clear();++e<a;){var r=t[e];this.set(r[0],r[1])}}function yt(t,e){for(var a=t.length;a--;)if(V(t[a][0],e))return a;return-1}pt.prototype.clear=function(){this.__data__=vt?vt(null):{},this.size=0},pt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},pt.prototype.get=function(t){var e=this.__data__;if(vt){var a=e[t];return"__lodash_hash_undefined__"===a?void 0:a}return bt.call(e,t)?e[t]:void 0},pt.prototype.has=function(t){var e=this.__data__;return vt?void 0!==e[t]:_t.call(e,t)},pt.prototype.set=function(t,e){var a=this.__data__;return this.size+=this.has(t)?0:1,a[t]=vt&&void 0===e?"__lodash_hash_undefined__":e,this};var kt=Array.prototype.splice;function mt(t){var e=-1,a=null==t?0:t.length;for(this.clear();++e<a;){var r=t[e];this.set(r[0],r[1])}}mt.prototype.clear=function(){this.__data__=[],this.size=0},mt.prototype.delete=function(t){var e=this.__data__,a=yt(e,t);return!(a<0||(a==e.length-1?e.pop():kt.call(e,a,1),--this.size,0))},mt.prototype.get=function(t){var e=this.__data__,a=yt(e,t);return a<0?void 0:e[a][1]},mt.prototype.has=function(t){return yt(this.__data__,t)>-1},mt.prototype.set=function(t,e){var a=this.__data__,r=yt(a,t);return r<0?(++this.size,a.push([t,e])):a[r][1]=e,this};var jt=L(x,"Map");function gt(t,e){var a=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?a["string"==typeof e?"string":"hash"]:a.map}function wt(t){var e=-1,a=null==t?0:t.length;for(this.clear();++e<a;){var r=t[e];this.set(r[0],r[1])}}function St(t){var e=this.__data__=new mt(t);this.size=e.size}wt.prototype.clear=function(){this.size=0,this.__data__={hash:new pt,map:new(jt||mt),string:new pt}},wt.prototype.delete=function(t){var e=gt(this,t).delete(t);return this.size-=e?1:0,e},wt.prototype.get=function(t){return gt(this,t).get(t)},wt.prototype.has=function(t){return gt(this,t).has(t)},wt.prototype.set=function(t,e){var a=gt(this,t),r=a.size;return a.set(t,e),this.size+=a.size==r?0:1,this},St.prototype.clear=function(){this.__data__=new mt,this.size=0},St.prototype.delete=function(t){var e=this.__data__,a=e.delete(t);return this.size=e.size,a},St.prototype.get=function(t){return this.__data__.get(t)},St.prototype.has=function(t){return this.__data__.has(t)},St.prototype.set=function(t,e){var a=this.__data__;if(a instanceof mt){var r=a.__data__;if(!jt||r.length<199)return r.push([t,e]),this.size=++a.size,this;a=this.__data__=new wt(r)}return a.set(t,e),this.size=a.size,this};var At=Object.prototype.propertyIsEnumerable,Ot=Object.getOwnPropertySymbols,Ct=Ot?function(t){return null==t?[]:function(t,e){for(var a=-1,r=null==t?0:t.length,n=0,i=[];++a<r;){var o=t[a];e(o)&&(i[n++]=o)}return i}(Ot(t=Object(t)),function(e){return At.call(t,e)})}:function(){return[]};function Dt(t){return function(t,e,a){var r=ft(t);return W(t)?r:function(t,e){for(var a=-1,r=e.length,n=t.length;++a<r;)t[n+a]=e[a];return t}(r,a(t))}(t,0,Ct)}var xt=L(x,"DataView"),Mt=L(x,"Promise"),$t=L(x,"Set"),Wt="[object Map]",Ft="[object Promise]",Ht="[object Set]",Tt="[object WeakMap]",Et="[object DataView]",Kt=P(xt),Pt=P(jt),zt=P(Mt),Rt=P($t),Lt=P(N),Nt=D;(xt&&Nt(new xt(new ArrayBuffer(1)))!=Et||jt&&Nt(new jt)!=Wt||Mt&&Nt(Mt.resolve())!=Ft||$t&&Nt(new $t)!=Ht||N&&Nt(new N)!=Tt)&&(Nt=function(t){var e=D(t),a="[object Object]"==e?t.constructor:void 0,r=a?P(a):"";if(r)switch(r){case Kt:return Et;case Pt:return Wt;case zt:return Ft;case Rt:return Ht;case Lt:return Tt}return e});var Bt=x.Uint8Array;function It(t){var e=-1,a=null==t?0:t.length;for(this.__data__=new wt;++e<a;)this.add(t[e])}function Vt(t,e){for(var a=-1,r=null==t?0:t.length;++a<r;)if(e(t[a],a,t))return!0;return!1}function Ut(t,e){return t.has(e)}function qt(t,e,a,r,n,i){var o=1&a,l=t.length,s=e.length;if(l!=s&&!(o&&s>l))return!1;var c=i.get(t),h=i.get(e);if(c&&h)return c==e&&h==t;var d=-1,u=!0,b=2&a?new It:void 0;for(i.set(t,e),i.set(e,t);++d<l;){var _=t[d],f=e[d];if(r)var v=o?r(f,_,d,e,t,i):r(_,f,d,t,e,i);if(void 0!==v){if(v)continue;u=!1;break}if(b){if(!Vt(e,function(t,e){if(!Ut(b,e)&&(_===t||n(_,t,a,r,i)))return b.push(e)})){u=!1;break}}else if(_!==f&&!n(_,f,a,r,i)){u=!1;break}}return i.delete(t),i.delete(e),u}function Gt(t){var e=-1,a=Array(t.size);return t.forEach(function(t,r){a[++e]=[r,t]}),a}function Qt(t){var e=-1,a=Array(t.size);return t.forEach(function(t){a[++e]=t}),a}It.prototype.add=It.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},It.prototype.has=function(t){return this.__data__.has(t)};var Jt=F?F.prototype:void 0,Xt=Jt?Jt.valueOf:void 0,Yt=Object.prototype.hasOwnProperty,Zt="[object Arguments]",te="[object Array]",ee="[object Object]",ie=Object.prototype.hasOwnProperty;function ne(t,e,a,r,n){return t===e||(null==t||null==e||!M(t)&&!M(e)?t!=t&&e!=e:function(t,e,a,r,n,i){var o=W(t),l=W(e),s=o?te:Nt(t),c=l?te:Nt(e),h=(s=s==Zt?ee:s)==ee,d=(c=c==Zt?ee:c)==ee,u=s==c;if(u&&it(t)){if(!it(e))return!1;o=!0,h=!1}if(u&&!h)return i||(i=new St),o||ct(t)?qt(t,e,a,r,n,i):function(t,e,a,r,n,i,o){switch(a){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!i(new Bt(t),new Bt(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return V(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var l=Gt;case"[object Set]":if(l||(l=Qt),t.size!=e.size&&!(1&r))return!1;var s=o.get(t);if(s)return s==e;r|=2,o.set(t,e);var c=qt(l(t),l(e),r,n,i,o);return o.delete(t),c;case"[object Symbol]":if(Xt)return Xt.call(t)==Xt.call(e)}return!1}(t,e,s,a,r,n,i);if(!(1&a)){var b=h&&ie.call(t,"__wrapped__"),_=d&&ie.call(e,"__wrapped__");if(b||_){var f=b?t.value():t,v=_?e.value():e;return i||(i=new St),n(f,v,a,r,i)}}return!!u&&(i||(i=new St),function(t,e,a,r,n,i){var o=1&a,l=Dt(t),s=l.length;if(s!=Dt(e).length&&!o)return!1;for(var c=s;c--;){var h=l[c];if(!(o?h in e:Yt.call(e,h)))return!1}var d=i.get(t),u=i.get(e);if(d&&u)return d==e&&u==t;var b=!0;i.set(t,e),i.set(e,t);for(var _=o;++c<s;){var f=t[h=l[c]],v=e[h];if(r)var p=o?r(v,f,h,e,t,i):r(f,v,h,t,e,i);if(!(void 0===p?f===v||n(f,v,a,r,i):p)){b=!1;break}_||(_="constructor"==h)}if(b&&!_){var y=t.constructor,g=e.constructor;y==g||!("constructor"in t)||!("constructor"in e)||"function"==typeof y&&y instanceof y&&"function"==typeof g&&g instanceof g||(b=!1)}return i.delete(t),i.delete(e),b}(t,e,a,r,n,i))}(t,e,a,r,ne,n))}const re=/^\d+(\.\d+)?([a-z]+|%)?$/,oe=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.translateNoEntries=u("kol-no-entries"),this.state={_data:[],_headerCells:{horizontal:[],vertical:[]},_label:"",_minWidth:"auto",_hasSettingsMenu:!1},this.horizontal=!0,this.cellsToRenderTimeouts=new Map,this.dataToKeyMap=new Map,this.checkboxRefs=[],this.translateSort=u("kol-sort"),this.tableDivElementHasScrollbar=!1,this.renderTableRow=(t,e,a,r=!1)=>{var n,l;let s=e+"";return this.horizontal&&(null===(n=t[0])||void 0===n?void 0:n.data)&&(s=null!==(l=this.getDataKey(t[0].data))&&void 0!==l?l:s),i("tr",{class:o("kol-table__row",{"kol-table__row--body":!r,"kol-table__row--footer":r}),key:"row-"+s},this.renderSelectionCell(t,e),t.map((t,r)=>this.renderTableCell(t,e,r,a)))},this.renderTableCell=(t,e,a,r)=>{const n=this.getColumnSettings(t);if(n&&!n.visible)return"";let l=`${e}-${a}-${t.label}`;if(t.data){const r=this.getDataKey(t.data);l=r?`${r}-${this.horizontal?a:e}`:l}if(t.headerCell)return this.renderHeadingCell(t,e,a,r);{const e="function"!=typeof t.render&&t.label===this.translateNoEntries;return i("td",{key:"cell-"+l,class:o("kol-table__cell kol-table__cell--body",{["kol-table__cell--align-"+t.textAlign]:t.textAlign}),"aria-atomic":e?"false":void 0,"aria-live":e?"polite":void 0,"aria-relevant":e?"text":void 0,colSpan:t.colSpan,rowSpan:t.rowSpan,style:{textAlign:t.textAlign,width:(null==n?void 0:n.width)?n.width+"ch":t.width},ref:"function"==typeof t.render?e=>{this.cellRender(t,e)}:void 0},"function"!=typeof t.render?t.label:"")}}}validateHasSettingsMenu(t){_(this,t)}validateData(t){p(this,t,{beforePatch:t=>{this.updateDataToKeyMap(t)}})}validateDataFoot(t){y(this,t)}validateHeaderCells(t){((t,e)=>{h(e,()=>{d(e,()=>{try{e=f(e)}catch(t){}v(t,"_headerCells",t=>"object"==typeof t&&null!==t&&(void 0===t.horizontal||Array.isArray(t.horizontal)&&void 0===t.horizontal.find(t=>!Array.isArray(t)))&&(void 0===t.vertical||Array.isArray(t.vertical)&&void 0===t.vertical.find(t=>!Array.isArray(t)))&&!0,new Set(["TableHeaderCellsPropType"]),e)})})})(this,t),function(t,e){return ne(t,e)}(this.previousHeaderCells,this.state._headerCells)||this.initializeTableSettings(),this.previousHeaderCells=this.state._headerCells}validateLabel(t){g(this,t,{required:!0})}validateMinWidth(t){((t,e)=>{v(this,"_minWidth",t=>"string"==typeof t&&re.test(t),new Set(["String","/^\\d+(\\.\\d+)?([a-z]+|%)?$/"]),e,void 0)})(0,t)}validateOn(t){k(this,t)}validateSelection(t){m(this,t)}validateTableSettings(t){j(this,this.normalizeTableSettings(t))}normalizeTableSettings(t){if(!t||"object"!=typeof t)return t;const e=Array.isArray(t.columns)?t.columns:[];return Object.assign(Object.assign({},t),{columns:e.map(({hidable:t,key:e,label:a,resizable:r,sortable:n,visible:i,width:o})=>({hidable:!1!==t,key:null!=e?e:S(),label:a,resizable:!1!==r,sortable:!1!==n,visible:!1!==i,width:o}))})}handleKeyDown(t){var e;if("ArrowUp"===t.key||"ArrowDown"===t.key){const a=null===(e=this.tableDivElement)||void 0===e?void 0:e.querySelector(":focus");let r=this.checkboxRefs.indexOf(a);r>-1&&(t.preventDefault(),"ArrowDown"===t.key?(r=(r+1)%this.checkboxRefs.length,this.checkboxRefs[r].focus()):"ArrowUp"===t.key&&(t.preventDefault(),r=(r+this.checkboxRefs.length-1)%this.checkboxRefs.length,this.checkboxRefs[r].focus()))}}componentDidRender(){this.checkDivElementScrollbar()}componentDidLoad(){this.tableDivElement&&ResizeObserver&&(this.tableDivElementResizeObserver=new ResizeObserver(this.checkDivElementScrollbar.bind(this)),this.tableDivElementResizeObserver.observe(this.tableDivElement))}handleSettingsChange(t){b(this,"_tableSettings",t.detail)}disconnectedCallback(){var t;null===(t=this.tableDivElementResizeObserver)||void 0===t||t.disconnect()}checkDivElementScrollbar(){this.tableDivElement&&(this.tableDivElementHasScrollbar=this.tableDivElement.scrollWidth>this.tableDivElement.clientWidth)}updateDataToKeyMap(t){t.forEach(t=>{this.dataToKeyMap.has(t)||this.dataToKeyMap.set(t,S())}),this.dataToKeyMap.forEach((e,a)=>{t.includes(a)||this.dataToKeyMap.delete(a)})}getDataKey(t){return this.dataToKeyMap.get(t)}cellRender(t,e){e&&(clearTimeout(this.cellsToRenderTimeouts.get(e)),this.cellsToRenderTimeouts.set(e,setTimeout(()=>{if("function"==typeof t.render){const a=t.render(e,t,t.data,this.state._data);"string"==typeof a&&(e.textContent=a)}})))}getNumberOfCols(t,e){let a=0;return t.forEach(t=>{let e=0;Array.isArray(t)&&t.forEach(t=>{var a;return e+=null!==(a=t.colSpan)&&void 0!==a?a:1}),a<e&&(a=e)}),0===a&&(a=e.length),a}getNumberOfRows(t,e){var a;let r=0;return t.forEach(t=>{let e=0;Array.isArray(t)&&t.forEach(t=>{var a;return e+=null!==(a=t.rowSpan)&&void 0!==a?a:1}),r<e&&(r=e)}),0===r?r=e.length:r-=(null===(a=this.state._dataFoot)||void 0===a?void 0:a.length)||0,r}getThePrimaryHeadersWithKeyOrRenderFunction(t){const e=[];return t.forEach(t=>{t.forEach(t=>{"string"!=typeof t.key&&"function"!=typeof t.render||e.push(t)})}),e}getPrimaryHeaders(t){var e,a;let r=this.getThePrimaryHeadersWithKeyOrRenderFunction(null!==(e=t.horizontal)&&void 0!==e?e:[]);return this.horizontal=!0,0===r.length&&(r=this.getThePrimaryHeadersWithKeyOrRenderFunction(null!==(a=t.vertical)&&void 0!==a?a:[]),r.length>0&&(this.horizontal=!1)),r}getColumnPositionMap(){var t;const e=new Map;return null===(t=this.state._tableSettings)||void 0===t||t.columns.forEach((t,a)=>{e.set(t.key,a)}),e}sortByColumnPosition(t){const e=this.getColumnPositionMap();return t.map((t,e)=>({column:t,index:e})).sort((t,a)=>{var r,n,i,o;const l=null!==(n=e.get(null!==(r=t.column.key)&&void 0!==r?r:""))&&void 0!==n?n:Number.MAX_SAFE_INTEGER,s=null!==(o=e.get(null!==(i=a.column.key)&&void 0!==i?i:""))&&void 0!==o?o:Number.MAX_SAFE_INTEGER;return l!==s?l-s:t.index-a.index}).map(({column:t})=>t)}createDataField(t,e,a){var r;e.horizontal=Array.isArray(null==e?void 0:e.horizontal)?e.horizontal:[],e.vertical=Array.isArray(null==e?void 0:e.vertical)?e.vertical:[];const n=this.getPrimaryHeaders(e),i=this.getNumberOfCols(e.horizontal,t);let o=this.getNumberOfRows(e.vertical,t),l=0;a&&(l=o,o+=(null===(r=this.state._dataFoot)||void 0===r?void 0:r.length)||0);const s=[],c=[],h=[];e.vertical.forEach((t,e)=>{c[e]=0,h[e]=[]});const d=this.sortByColumnPosition(n);for(let r=l;r<o;r++){const n=[];e.vertical.forEach((t,e)=>{let a=0;if(h[e].forEach(t=>a+=t),a<=r){const i=t[r-a+c[e]];if("object"==typeof i){n.push(Object.assign(Object.assign({},i),{headerCell:!0,data:{}}));let t=1;if("number"==typeof i.rowSpan&&i.rowSpan>1&&(t=i.rowSpan),h[e].push(t),"number"==typeof i.colSpan&&i.colSpan>1)for(let a=1;a<i.colSpan;a++)h[e+a].push(t);c[e]++}}});for(let e=0;e<i;e++)if(!0===this.horizontal){const i=a&&this.state._dataFoot?this.state._dataFoot[r-l]:t[r];"object"!=typeof d[e]||null===d[e]||"object"!=typeof i||null===i||"string"!=typeof d[e].key&&"function"!=typeof d[e].render||n.push(Object.assign(Object.assign({},d[e]),{colSpan:void 0,data:i,label:i[d[e].key],rowSpan:void 0}))}else"object"!=typeof d[r]||null===d[r]||"object"!=typeof t[e]||null===t[e]||"string"!=typeof d[r].key&&"function"!=typeof d[r].render||n.push(Object.assign(Object.assign({},d[r]),{colSpan:void 0,data:t[e],label:t[e][d[r].key],rowSpan:void 0}));s.push(n)}if(0===t.length){let t=0,a=0;Array.isArray(e.horizontal)&&e.horizontal.length>0&&e.horizontal[0].forEach(e=>{t+=e.colSpan||1}),Array.isArray(e.vertical)&&e.vertical.length>0&&(t-=e.vertical.length,e.vertical[0].forEach(t=>{a+=t.rowSpan||1}));const r={colSpan:t,label:this.translateNoEntries,render:void 0,rowSpan:Math.max(a,1)};0===s.length?s.push([r]):s[0].push(r)}return s}handleSelectionChangeCallbackAndEvent(t,e){var a;"function"==typeof(null===(a=this.state._on)||void 0===a?void 0:a[w.onSelectionChange])&&this.state._on[w.onSelectionChange](t,e),this.host&&A(this.host,O.selectionChange,e)}initializeTableSettings(){if(this._tableSettings)return;const t=this.getPrimaryHeaders(this.state._headerCells);this.state._tableSettings||(this.state._tableSettings={columns:[]}),this.state._tableSettings.columns=t.filter(t=>t.key).map(t=>{var e;return{hidable:!1!==t.hidable,sortable:!1!==t.sortable,resizable:!1!==t.resizable,key:null!==(e=t.key)&&void 0!==e?e:S(),label:t.label,visible:!0}})}componentWillLoad(){this.validateData(this._data),this.validateDataFoot(this._dataFoot),this.validateHeaderCells(this._headerCells),this.validateLabel(this._label),this.validateMinWidth(this._minWidth),this.validateOn(this._on),this.validateSelection(this._selection),this.validateTableSettings(this._tableSettings),this.validateHasSettingsMenu(this._hasSettingsMenu)}renderSelectionCell(t,e){var r;const n=this.state._selection;if(!n)return"";const s=this.getSelectionKeyPropertyName(),c=null===(r=t[0])||void 0===r?void 0:r.data;if(!c)return"";const h=c[s],d=n.multiple||void 0===n.multiple,u=(()=>{const t=null==n?void 0:n.selectedKeys;return(void 0===t?[]:Array.isArray(t)?t:[t]).some(t=>t+""==h+"")})(),b=(()=>{const t=null==n?void 0:n.disabledKeys;return(void 0===t?[]:Array.isArray(t)?t:[t]).some(t=>t+""==h+"")})(),_=n.label(c),f={name:"selection",checked:u,disabled:b,id:h+"","aria-label":_};return i("td",{key:`tbody-${e}-selection`,class:"kol-table__cell kol-table__cell--selection"},i("div",{class:o("kol-table__selection",{"kol-table__selection--checked":u})},d?i("label",{class:o("kol-table__selection-label",{"kol-table__selection-label--disabled":b})},i(l,{class:"kol-table__selection-icon",_icons:"codicon "+(u?"codicon-check":""),_label:""}),i("input",Object.assign({class:o("kol-table__selection-input kol-table__selection-input--checkbox"),ref:t=>t&&this.checkboxRefs.push(t)},f,{type:"checkbox",onInput:t=>{const e=(()=>{const t=null==n?void 0:n.selectedKeys;return void 0===t?[]:Array.isArray(t)?t:[t]})(),a=u?e.filter(t=>t+""!=h+""):[...e,h];this.handleSelectionChangeCallbackAndEvent(t,null!=a?a:[])}}))):i("label",{class:"kol-table__selection-label"},i("input",Object.assign({class:o("kol-table__selection-input kol-table__selection-input--radio")},f,{type:"radio",onInput:t=>{this.handleSelectionChangeCallbackAndEvent(t,h)}}))),i(a,{"aria-hidden":"true",class:"kol-table__selection-input-tooltip",_align:"right",_id:h+"-label",_label:_})))}getColumnSettings(t){var e;return null===(e=this.state._tableSettings)||void 0===e?void 0:e.columns.find(e=>e.key===t.key)}getSelectionKeyPropertyName(){var t,e;return null!==(e=null===(t=this.state._selection)||void 0===t?void 0:t.keyPropertyName)&&void 0!==e?e:"id"}getDataWithSelectionEnabled(){const t=this.getSelectionKeyPropertyName();return this.state._data.filter(e=>{var a;const r=null===(a=this.state._selection)||void 0===a?void 0:a.disabledKeys;return!(void 0===r?[]:Array.isArray(r)?r:[r]).some(a=>a+""==e[t]+"")})}getSelectedKeysWithoutDisabledKeys(){const t=(()=>{var t;const e=null===(t=this.state._selection)||void 0===t?void 0:t.selectedKeys;return void 0===e?[]:Array.isArray(e)?e:[e]})(),e=(()=>{var t;const e=null===(t=this.state._selection)||void 0===t?void 0:t.disabledKeys;return void 0===e?[]:Array.isArray(e)?e:[e]})();return t.filter(t=>!e.some(e=>e+""==t+""))}getSelectedKeysWithDisabledKeysOnly(){const t=(()=>{var t;const e=null===(t=this.state._selection)||void 0===t?void 0:t.selectedKeys;return void 0===e?[]:Array.isArray(e)?e:[e]})(),e=(()=>{var t;const e=null===(t=this.state._selection)||void 0===t?void 0:t.disabledKeys;return void 0===e?[]:Array.isArray(e)?e:[e]})();return t.filter(t=>e.some(e=>e+""==t+""))}getRevertedSelection(t){var e;const a=this.getSelectionKeyPropertyName(),r=null!==(e=this.getSelectedKeysWithDisabledKeysOnly())&&void 0!==e?e:[];return t&&r.push(...this.getDataWithSelectionEnabled().map(t=>null==t?void 0:t[a])),r}getTableMinWidth(){var t,e;const a=null!==(e=null===(t=this.state._tableSettings)||void 0===t?void 0:t.columns.filter(t=>t.visible).reduce((t,e)=>{var a;return t+(null!==(a=e.width)&&void 0!==a?a:0)},0))&&void 0!==e?e:0;return"auto"===this.state._minWidth?a+"ch":`max(${this.state._minWidth}, ${a}ch)`}renderHeadingSelectionCell(){var t,e;const r=this.state._selection;if(!r)return i("th",{class:"kol-table__cell kol-table__cell--header",key:"thead-0"});if(!1===r.multiple)return i("td",{key:"thead-0-selection",class:"kol-table__cell kol-table__cell--header kol-table__cell--selection"});const n=null!==(e=null===(t=this.getSelectedKeysWithoutDisabledKeys())||void 0===t?void 0:t.length)&&void 0!==e?e:0,s=n===this.getDataWithSelectionEnabled().length,c=0!==n&&!s;let h="kol-table-selection-indeterminate";s&&!c&&(h="kol-table-selection-none"),0===n&&(h="kol-table-selection-all");const d=u(h);return i("th",{key:"thead-0-selection",class:"kol-table__cell kol-table__cell--header kol-table__cell--selection"},i("div",{class:o("kol-table__selection",{"kol-table__selection--indeterminate":c,"kol-table__selection--checked":s})},i("label",{class:"kol-table__selection-label"},i(l,{class:"kol-table__selection-icon",_icons:"codicon "+(c?"codicon-remove":s?"codicon-check":""),_label:""}),i("input",{class:o("kol-table__selection-input kol-table__selection-input--checkbox"),"data-testid":"selection-checkbox-all",ref:t=>t&&this.checkboxRefs.push(t),name:"selection",checked:s&&!c,indeterminate:c,"aria-label":d,type:"checkbox",onInput:t=>{this.handleSelectionChangeCallbackAndEvent(t,this.getRevertedSelection(!s))}})),i(a,{"aria-hidden":"true",class:"kol-table__selection-input-tooltip",_align:"right",_id:h+"-label",_label:d})))}renderHeaderTdCell(){return i(n,null,Array.isArray(this.state._headerCells.horizontal)&&this.state._headerCells.horizontal.length>0&&Array.isArray(this.state._headerCells.vertical)&&this.state._headerCells.vertical.length>0&&Array.isArray(this.state._headerCells.horizontal)&&i("td",{"aria-hidden":"true",colSpan:this.state._headerCells.vertical.length,rowSpan:this.state._headerCells.horizontal.length}))}renderHeadingCell(t,e,a,r){const n=this.getColumnSettings(t);if(n&&!n.visible)return"";const l=!1!==(null==n?void 0:n.sortable)&&"string"==typeof t.sortDirection;let c="none",h="codicon codicon-fold";if(l&&t.sortDirection)switch(t.sortDirection){case"ASC":h="codicon codicon-chevron-up",c="ascending";break;case"DESC":h="codicon codicon-chevron-down",c="descending";break;default:c="none"}const d=r?"row":"number"==typeof t.colSpan&&t.colSpan>1?"colgroup":"col";return i("th",{key:`${e}-${a}-${t.label}`,class:o("kol-table__cell kol-table__cell--header",{["kol-table__cell--align-"+t.textAlign]:t.textAlign,["kol-table__cell--"+c]:c}),scope:d,colSpan:t.colSpan,rowSpan:t.rowSpan,style:{width:(null==n?void 0:n.width)?n.width+"ch":t.width},"aria-sort":c,"data-sort":l&&t.sortDirection?"sort-"+t.sortDirection:void 0},l&&t.sortDirection?i(s,{class:"kol-table__sort-button",exportparts:"icon",_icons:{right:h},_label:t.label,_ariaDescription:this.translateSort,_on:{onClick:e=>{var a;"function"==typeof(null===(a=this.state._on)||void 0===a?void 0:a.onSort)&&t.key&&t.sortDirection&&this.state._on.onSort(e,{key:t.key,currentSortDirection:t.sortDirection}),this.host&&A(this.host,O.sort,{key:t.key,currentSortDirection:t.sortDirection})}}}):t.label)}renderSpacer(t,e){var a,r;const n=(null===(a=this.state._headerCells.vertical)||void 0===a?void 0:a.length)||0,l=null===(r=null==e?void 0:e[0])||void 0===r?void 0:r.reduce((t,e)=>t+(e.colSpan||1),0),s=this.state._selection?1:0;return i("tr",{"aria-hidden":"true",class:o("kol-table__spacer","kol-table__spacer--"+t)},i("td",{class:o("kol-table__spacer-line kol-table__spacer-line--"+t),colSpan:n+l+s}))}renderFoot(){if(!this.state._dataFoot||0===this.state._dataFoot.length)return null;const t=this.createDataField(this.state._dataFoot,this.state._headerCells,!0);return i("tfoot",{class:"kol-table__footer"},[this.renderSpacer("foot",t),t.map((t,e)=>this.renderTableRow(t,e,!0,!0))])}render(){var t;const e=this.createDataField(this.state._data,this.state._headerCells);this.checkboxRefs=[];const a=null===(t=this.state._headerCells.horizontal)||void 0===t?void 0:t.map(t=>this.sortByColumnPosition(t));return i("div",{key:"a66eb9f22e8267d1bfcc00b2429b8234e07beb51",class:"kol-table"},this.state._hasSettingsMenu&&i(c,{key:"8c5bfcc3f01813773d07912fcf2fa78455efac06",_tableSettings:this.state._tableSettings}),i("div",{key:"6f9ac777bae4c27c80052aeeae5678ddff56a6bc",ref:t=>this.tableDivElement=t,class:"kol-table__scroll-container",tabindex:this.tableDivElementHasScrollbar?"-1":void 0},i("table",{key:"89710649cdcd7fcca523656de8f8b13fc3d9509f",class:"kol-table__table",style:{minWidth:this.getTableMinWidth()}},i("caption",{key:"0f5550f8377daed2043a18de8c2cdb5b6e45f554",class:"kol-table__focus-element kol-table__caption",id:"caption",tabindex:this.tableDivElementHasScrollbar?"0":void 0},this.state._label),Array.isArray(a)&&i("thead",{key:"83577b101b26b8ee80bc81ccd12526fb78f576c4",class:"kol-table__head"},[a.map((t,e)=>i("tr",{class:"kol-table__head-row",key:"thead-"+e},this.state._selection&&this.renderHeadingSelectionCell(),0===e&&this.renderHeaderTdCell(),Array.isArray(t)&&t.map((t,a)=>this.renderHeadingCell(t,e,a,!1)))),this.renderSpacer("head",a)]),i("tbody",{key:"6fe763adb26ca11ebea14f035200df42c970d5cd",class:"kol-table__body"},e.map((t,e)=>this.renderTableRow(t,e,!0))),this.renderFoot())))}get host(){return this}static get watchers(){return{_hasSettingsMenu:[{validateHasSettingsMenu:0}],_data:[{validateData:0}],_dataFoot:[{validateDataFoot:0}],_headerCells:[{validateHeaderCells:0}],_label:[{validateLabel:0}],_minWidth:[{validateMinWidth:0}],_on:[{validateOn:0}],_selection:[{validateSelection:0}],_tableSettings:[{validateTableSettings:0}]}}},[0,"kol-table-stateless-wc",{_data:[1],_dataFoot:[1,"_data-foot"],_headerCells:[1,"_header-cells"],_label:[1],_minWidth:[1,"_min-width"],_on:[16],_selection:[1],_tableSettings:[16],_hasSettingsMenu:[4,"_has-settings-menu"],state:[32],tableDivElementHasScrollbar:[32],previousHeaderCells:[32]},[[0,"keydown","handleKeyDown"],[0,"settingsChange","handleSettingsChange"]],{_hasSettingsMenu:[{validateHasSettingsMenu:0}],_data:[{validateData:0}],_dataFoot:[{validateDataFoot:0}],_headerCells:[{validateHeaderCells:0}],_label:[{validateLabel:0}],_minWidth:[{validateMinWidth:0}],_on:[{validateOn:0}],_selection:[{validateSelection:0}],_tableSettings:[{validateTableSettings:0}]}]),le=oe,ae=function(){"undefined"!=typeof customElements&&["kol-table-stateless-wc"].forEach(t=>{"kol-table-stateless-wc"===t&&(customElements.get(r(t))||customElements.define(r(t),oe))})};export{le as KolTableStatelessWc,ae as defineCustomElement};
|
|
4
|
+
import{proxyCustomElement,HTMLElement,h,Fragment}from"@stencil/core/internal/client";import{c as clsx}from"./clsx.js";import{e as KolIconTag,a as KolTooltipWcTag,d as KolButtonWcTag,r as KolTableSettingsWcTag}from"./component-names.js";import{t as translate}from"./i18n.js";import{Q as emptyStringByArrayHandler,o as objectObjectHandler,p as parseJson,w as watchValidator,s as setState}from"./common.js";import{b as validateHasSettingsMenu,v as validateTableData,a as validateTableDataFoot,f as validateTableCallbacks,c as validateTableSelection,e as validateTableSettings}from"./table-settings.js";import{v as validateLabel}from"./label.js";import{C as Callback}from"./keyboard.js";import{n as nonce}from"./dev.utils.js";import{d as dispatchDomEvent,K as KolEvent}from"./events.js";import{i as isObject,c as baseGetTag,r as root,a as isObjectLike,f as freeGlobal,b as isArray,S as Symbol}from"./isObject.js";const validateTableHeaderCells=(e,t)=>{emptyStringByArrayHandler(t,()=>{objectObjectHandler(t,()=>{try{t=parseJson(t)}catch(e){}watchValidator(e,"_headerCells",e=>"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)))&&!0,new Set(["TableHeaderCellsPropType"]),t)})})};var asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction(e){if(!isObject(e))return!1;var t=baseGetTag(e);return t==funcTag$1||t==genTag||t==asyncTag||t==proxyTag}var coreJsData=root["__core-js_shared__"],maskSrcKey=function(){var e=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function isMasked(e){return!!maskSrcKey&&maskSrcKey in e}var funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString;function toSource(e){if(null!=e){try{return funcToString$1.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto$9=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$7=objectProto$9.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$7).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(e){return!(!isObject(e)||isMasked(e))&&(isFunction(e)?reIsNative:reIsHostCtor).test(toSource(e))}function getValue(e,t){return null==e?void 0:e[t]}function getNative(e,t){var a=getValue(e,t);return baseIsNative(a)?a:void 0}var WeakMap=getNative(root,"WeakMap"),MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(e,t){var a=typeof e;return!!(t=null==t?MAX_SAFE_INTEGER$1:t)&&("number"==a||"symbol"!=a&&reIsUint.test(e))&&e>-1&&e%1==0&&e<t}function eq(e,t){return e===t||e!=e&&t!=t}var MAX_SAFE_INTEGER=9007199254740991;function isLength(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=MAX_SAFE_INTEGER}function isArrayLike(e){return null!=e&&isLength(e.length)&&!isFunction(e)}var objectProto$8=Object.prototype;function isPrototype(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||objectProto$8)}function baseTimes(e,t){for(var a=-1,r=Array(e);++a<e;)r[a]=t(a);return r}var argsTag$2="[object Arguments]";function baseIsArguments(e){return isObjectLike(e)&&baseGetTag(e)==argsTag$2}var objectProto$7=Object.prototype,hasOwnProperty$6=objectProto$7.hasOwnProperty,propertyIsEnumerable$1=objectProto$7.propertyIsEnumerable,isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObjectLike(e)&&hasOwnProperty$6.call(e,"callee")&&!propertyIsEnumerable$1.call(e,"callee")};function stubFalse(){return!1}var freeExports$1="object"==typeof exports&&exports&&!exports.nodeType&&exports,freeModule$1=freeExports$1&&"object"==typeof module&&module&&!module.nodeType&&module,moduleExports$1=freeModule$1&&freeModule$1.exports===freeExports$1,Buffer=moduleExports$1?root.Buffer:void 0,nativeIsBuffer=Buffer?Buffer.isBuffer:void 0,isBuffer=nativeIsBuffer||stubFalse,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",funcTag="[object Function]",mapTag$2="[object Map]",numberTag$1="[object Number]",objectTag$2="[object Object]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$1="[object String]",weakMapTag$1="[object WeakMap]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$2="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",typedArrayTags={};function baseIsTypedArray(e){return isObjectLike(e)&&isLength(e.length)&&!!typedArrayTags[baseGetTag(e)]}function baseUnary(e){return function(t){return e(t)}}typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0,typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag$1]=typedArrayTags[boolTag$1]=typedArrayTags[dataViewTag$2]=typedArrayTags[dateTag$1]=typedArrayTags[errorTag$1]=typedArrayTags[funcTag]=typedArrayTags[mapTag$2]=typedArrayTags[numberTag$1]=typedArrayTags[objectTag$2]=typedArrayTags[regexpTag$1]=typedArrayTags[setTag$2]=typedArrayTags[stringTag$1]=typedArrayTags[weakMapTag$1]=!1;var freeExports="object"==typeof exports&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&"object"==typeof module&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,freeProcess=moduleExports&&freeGlobal.process,nodeUtil=function(){try{var e=freeModule&&freeModule.require&&freeModule.require("util").types;return e||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch(e){}}(),nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,objectProto$6=Object.prototype,hasOwnProperty$5=objectProto$6.hasOwnProperty;function arrayLikeKeys(e,t){var a=isArray(e),r=!a&&isArguments(e),o=!a&&!r&&isBuffer(e),s=!a&&!r&&!o&&isTypedArray(e),i=a||r||o||s,n=i?baseTimes(e.length,String):[],l=n.length;for(var c in e)!hasOwnProperty$5.call(e,c)||i&&("length"==c||o&&("offset"==c||"parent"==c)||s&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||isIndex(c,l))||n.push(c);return n}function overArg(e,t){return function(a){return e(t(a))}}var nativeKeys=overArg(Object.keys,Object),objectProto$5=Object.prototype,hasOwnProperty$4=objectProto$5.hasOwnProperty;function baseKeys(e){if(!isPrototype(e))return nativeKeys(e);var t=[];for(var a in Object(e))hasOwnProperty$4.call(e,a)&&"constructor"!=a&&t.push(a);return t}function keys(e){return isArrayLike(e)?arrayLikeKeys(e):baseKeys(e)}var nativeCreate=getNative(Object,"create");function hashClear(){this.__data__=nativeCreate?nativeCreate(null):{},this.size=0}function hashDelete(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$4=Object.prototype,hasOwnProperty$3=objectProto$4.hasOwnProperty;function hashGet(e){var t=this.__data__;if(nativeCreate){var a=t[e];return a===HASH_UNDEFINED$2?void 0:a}return hasOwnProperty$3.call(t,e)?t[e]:void 0}var objectProto$3=Object.prototype,hasOwnProperty$2=objectProto$3.hasOwnProperty;function hashHas(e){var t=this.__data__;return nativeCreate?void 0!==t[e]:hasOwnProperty$2.call(t,e)}var HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet(e,t){var a=this.__data__;return this.size+=this.has(e)?0:1,a[e]=nativeCreate&&void 0===t?HASH_UNDEFINED$1:t,this}function Hash(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}function listCacheClear(){this.__data__=[],this.size=0}function assocIndexOf(e,t){for(var a=e.length;a--;)if(eq(e[a][0],t))return a;return-1}Hash.prototype.clear=hashClear,Hash.prototype.delete=hashDelete,Hash.prototype.get=hashGet,Hash.prototype.has=hashHas,Hash.prototype.set=hashSet;var arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete(e){var t=this.__data__,a=assocIndexOf(t,e);return!(a<0)&&(a==t.length-1?t.pop():splice.call(t,a,1),--this.size,!0)}function listCacheGet(e){var t=this.__data__,a=assocIndexOf(t,e);return a<0?void 0:t[a][1]}function listCacheHas(e){return assocIndexOf(this.__data__,e)>-1}function listCacheSet(e,t){var a=this.__data__,r=assocIndexOf(a,e);return r<0?(++this.size,a.push([e,t])):a[r][1]=t,this}function ListCache(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}ListCache.prototype.clear=listCacheClear,ListCache.prototype.delete=listCacheDelete,ListCache.prototype.get=listCacheGet,ListCache.prototype.has=listCacheHas,ListCache.prototype.set=listCacheSet;var Map$1=getNative(root,"Map");function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Map$1||ListCache),string:new Hash}}function isKeyable(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function getMapData(e,t){var a=e.__data__;return isKeyable(t)?a["string"==typeof t?"string":"hash"]:a.map}function mapCacheDelete(e){var t=getMapData(this,e).delete(e);return this.size-=t?1:0,t}function mapCacheGet(e){return getMapData(this,e).get(e)}function mapCacheHas(e){return getMapData(this,e).has(e)}function mapCacheSet(e,t){var a=getMapData(this,e),r=a.size;return a.set(e,t),this.size+=a.size==r?0:1,this}function MapCache(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}function arrayPush(e,t){for(var a=-1,r=t.length,o=e.length;++a<r;)e[o+a]=t[a];return e}function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete(e){var t=this.__data__,a=t.delete(e);return this.size=t.size,a}function stackGet(e){return this.__data__.get(e)}function stackHas(e){return this.__data__.has(e)}MapCache.prototype.clear=mapCacheClear,MapCache.prototype.delete=mapCacheDelete,MapCache.prototype.get=mapCacheGet,MapCache.prototype.has=mapCacheHas,MapCache.prototype.set=mapCacheSet;var LARGE_ARRAY_SIZE=200;function stackSet(e,t){var a=this.__data__;if(a instanceof ListCache){var r=a.__data__;if(!Map$1||r.length<LARGE_ARRAY_SIZE-1)return r.push([e,t]),this.size=++a.size,this;a=this.__data__=new MapCache(r)}return a.set(e,t),this.size=a.size,this}function Stack(e){var t=this.__data__=new ListCache(e);this.size=t.size}function arrayFilter(e,t){for(var a=-1,r=null==e?0:e.length,o=0,s=[];++a<r;){var i=e[a];t(i,a,e)&&(s[o++]=i)}return s}function stubArray(){return[]}Stack.prototype.clear=stackClear,Stack.prototype.delete=stackDelete,Stack.prototype.get=stackGet,Stack.prototype.has=stackHas,Stack.prototype.set=stackSet;var objectProto$2=Object.prototype,propertyIsEnumerable=objectProto$2.propertyIsEnumerable,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbols=nativeGetSymbols?function(e){return null==e?[]:(e=Object(e),arrayFilter(nativeGetSymbols(e),function(t){return propertyIsEnumerable.call(e,t)}))}:stubArray;function baseGetAllKeys(e,t,a){var r=t(e);return isArray(e)?r:arrayPush(r,a(e))}function getAllKeys(e){return baseGetAllKeys(e,keys,getSymbols)}var DataView=getNative(root,"DataView"),Promise$1=getNative(root,"Promise"),Set$1=getNative(root,"Set"),mapTag$1="[object Map]",objectTag$1="[object Object]",promiseTag="[object Promise]",setTag$1="[object Set]",weakMapTag="[object WeakMap]",dataViewTag$1="[object DataView]",dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap),getTag=baseGetTag;(DataView&&getTag(new DataView(new ArrayBuffer(1)))!=dataViewTag$1||Map$1&&getTag(new Map$1)!=mapTag$1||Promise$1&&getTag(Promise$1.resolve())!=promiseTag||Set$1&&getTag(new Set$1)!=setTag$1||WeakMap&&getTag(new WeakMap)!=weakMapTag)&&(getTag=function(e){var t=baseGetTag(e),a=t==objectTag$1?e.constructor:void 0,r=a?toSource(a):"";if(r)switch(r){case dataViewCtorString:return dataViewTag$1;case mapCtorString:return mapTag$1;case promiseCtorString:return promiseTag;case setCtorString:return setTag$1;case weakMapCtorString:return weakMapTag}return t});var Uint8Array=root.Uint8Array,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,r=null==e?0:e.length;++a<r;)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,r,o,s){var i=a&COMPARE_PARTIAL_FLAG$3,n=e.length,l=t.length;if(n!=l&&!(i&&l>n))return!1;var c=s.get(e),h=s.get(t);if(c&&h)return c==t&&h==e;var d=-1,u=!0,b=a&COMPARE_UNORDERED_FLAG$1?new SetCache:void 0;for(s.set(e,t),s.set(t,e);++d<n;){var y=e[d],p=t[d];if(r)var g=i?r(p,y,d,t,e,s):r(y,p,d,e,t,s);if(void 0!==g){if(g)continue;u=!1;break}if(b){if(!arraySome(t,function(e,t){if(!cacheHas(b,t)&&(y===e||o(y,e,a,r,s)))return b.push(t)})){u=!1;break}}else if(y!==p&&!o(y,p,a,r,s)){u=!1;break}}return s.delete(e),s.delete(t),u}function mapToArray(e){var t=-1,a=Array(e.size);return e.forEach(function(e,r){a[++t]=[r,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,r,o,s,i){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 n=mapToArray;case setTag:var l=r&COMPARE_PARTIAL_FLAG$2;if(n||(n=setToArray),e.size!=t.size&&!l)return!1;var c=i.get(e);if(c)return c==t;r|=COMPARE_UNORDERED_FLAG,i.set(e,t);var h=equalArrays(n(e),n(t),r,o,s,i);return i.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,r,o,s){var i=a&COMPARE_PARTIAL_FLAG$1,n=getAllKeys(e),l=n.length;if(l!=getAllKeys(t).length&&!i)return!1;for(var c=l;c--;){var h=n[c];if(!(i?h in t:hasOwnProperty$1.call(t,h)))return!1}var d=s.get(e),u=s.get(t);if(d&&u)return d==t&&u==e;var b=!0;s.set(e,t),s.set(t,e);for(var y=i;++c<l;){var p=e[h=n[c]],g=t[h];if(r)var f=i?r(g,p,h,t,e,s):r(p,g,h,e,t,s);if(!(void 0===f?p===g||o(p,g,a,r,s):f)){b=!1;break}y||(y="constructor"==h)}if(b&&!y){var _=e.constructor,v=t.constructor;_==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof v&&v instanceof v||(b=!1)}return s.delete(e),s.delete(t),b}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,r,o,s){var i=isArray(e),n=isArray(t),l=i?arrayTag:getTag(e),c=n?arrayTag:getTag(t),h=(l=l==argsTag?objectTag:l)==objectTag,d=(c=c==argsTag?objectTag:c)==objectTag,u=l==c;if(u&&isBuffer(e)){if(!isBuffer(t))return!1;i=!0,h=!1}if(u&&!h)return s||(s=new Stack),i||isTypedArray(e)?equalArrays(e,t,a,r,o,s):equalByTag(e,t,l,a,r,o,s);if(!(a&COMPARE_PARTIAL_FLAG)){var b=h&&hasOwnProperty.call(e,"__wrapped__"),y=d&&hasOwnProperty.call(t,"__wrapped__");if(b||y){var p=b?e.value():e,g=y?t.value():t;return s||(s=new Stack),o(p,g,a,r,s)}}return!!u&&(s||(s=new Stack),equalObjects(e,t,a,r,o,s))}function baseIsEqual(e,t,a,r,o){return e===t||(null==e||null==t||!isObjectLike(e)&&!isObjectLike(t)?e!=e&&t!=t:baseIsEqualDeep(e,t,a,r,baseIsEqual,o))}function isEqual(e,t){return baseIsEqual(e,t)}const HEADER_CELL_WIDTH_VALIDATOR=/^\d+(\.\d+)?([a-z]+|%)?$/,validateMinWidth=(e,t,a)=>{watchValidator(e,"_minWidth",e=>"string"==typeof e&&HEADER_CELL_WIDTH_VALIDATOR.test(e),new Set(["String","/^\\d+(\\.\\d+)?([a-z]+|%)?$/"]),t,a)},KolTableStateless=proxyCustomElement(class extends HTMLElement{constructor(e){super(),!1!==e&&this.__registerHost(),this.translateNoEntries=translate("kol-no-entries"),this.state={_data:[],_headerCells:{horizontal:[],vertical:[]},_label:"",_minWidth:"auto",_hasSettingsMenu:!1},this.horizontal=!0,this.cellsToRenderTimeouts=new Map,this.dataToKeyMap=new Map,this.checkboxRefs=[],this.translateSort=translate("kol-sort"),this.tableDivElementHasScrollbar=!1,this.renderTableRow=(e,t,a,r=!1)=>{var o,s;let i=String(t);return this.horizontal&&(null===(o=e[0])||void 0===o?void 0:o.data)&&(i=null!==(s=this.getDataKey(e[0].data))&&void 0!==s?s:i),h("tr",{class:clsx("kol-table__row",{"kol-table__row--body":!r,"kol-table__row--footer":r}),key:`row-${i}`},this.renderSelectionCell(e,t),e.map((e,r)=>this.renderTableCell(e,t,r,a)))},this.renderTableCell=(e,t,a,r)=>{const o=this.getColumnSettings(e);if(o&&!o.visible)return"";let s=`${t}-${a}-${e.label}`;if(e.data){const r=this.getDataKey(e.data);s=r?`${r}-${this.horizontal?a:t}`:s}if(e.headerCell)return this.renderHeadingCell(e,t,a,r);{const t="function"!=typeof e.render&&e.label===this.translateNoEntries;return h("td",{key:`cell-${s}`,class:clsx("kol-table__cell kol-table__cell--body",{[`kol-table__cell--align-${e.textAlign}`]:e.textAlign}),"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,width:(null==o?void 0:o.width)?`${o.width}ch`:e.width},ref:"function"==typeof e.render?t=>{this.cellRender(e,t)}:void 0},"function"!=typeof e.render?e.label:"")}}}validateHasSettingsMenu(e){validateHasSettingsMenu(this,e)}validateData(e){validateTableData(this,e,{beforePatch:e=>{this.updateDataToKeyMap(e)}})}validateDataFoot(e){validateTableDataFoot(this,e)}validateHeaderCells(e){validateTableHeaderCells(this,e),isEqual(this.previousHeaderCells,this.state._headerCells)||this.initializeTableSettings(),this.previousHeaderCells=this.state._headerCells}validateLabel(e){validateLabel(this,e,{required:!0})}validateMinWidth(e){validateMinWidth(this,e)}validateOn(e){validateTableCallbacks(this,e)}validateSelection(e){validateTableSelection(this,e)}validateTableSettings(e){validateTableSettings(this,this.normalizeTableSettings(e))}normalizeTableSettings(e){if(!e||"object"!=typeof e)return e;const t=Array.isArray(e.columns)?e.columns:[];return Object.assign(Object.assign({},e),{columns:t.map(({hidable:e,key:t,label:a,resizable:r,sortable:o,visible:s,width:i})=>({hidable:!1!==e,key:null!=t?t:nonce(),label:a,resizable:!1!==r,sortable:!1!==o,visible:!1!==s,width:i}))})}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 r=this.checkboxRefs.indexOf(a);r>-1&&(e.preventDefault(),"ArrowDown"===e.key?(r=(r+1)%this.checkboxRefs.length,this.checkboxRefs[r].focus()):"ArrowUp"===e.key&&(e.preventDefault(),r=(r+this.checkboxRefs.length-1)%this.checkboxRefs.length,this.checkboxRefs[r].focus()))}}componentDidRender(){this.checkDivElementScrollbar()}componentDidLoad(){this.tableDivElement&&ResizeObserver&&(this.tableDivElementResizeObserver=new ResizeObserver(this.checkDivElementScrollbar.bind(this)),this.tableDivElementResizeObserver.observe(this.tableDivElement))}handleSettingsChange(e){setState(this,"_tableSettings",e.detail)}disconnectedCallback(){var e;null===(e=this.tableDivElementResizeObserver)||void 0===e||e.disconnect()}checkDivElementScrollbar(){this.tableDivElement&&(this.tableDivElementHasScrollbar=this.tableDivElement.scrollWidth>this.tableDivElement.clientWidth)}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)}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;return 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 r=0;return e.forEach(e=>{let t=0;Array.isArray(e)&&e.forEach(e=>{var a;return t+=null!==(a=e.rowSpan)&&void 0!==a?a:1}),r<t&&(r=t)}),0===r?r=t.length:r-=(null===(a=this.state._dataFoot)||void 0===a?void 0:a.length)||0,r}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 r=this.getThePrimaryHeadersWithKeyOrRenderFunction(null!==(t=e.horizontal)&&void 0!==t?t:[]);return this.horizontal=!0,0===r.length&&(r=this.getThePrimaryHeadersWithKeyOrRenderFunction(null!==(a=e.vertical)&&void 0!==a?a:[]),r.length>0&&(this.horizontal=!1)),r}getColumnPositionMap(){var e;const t=new Map;return null===(e=this.state._tableSettings)||void 0===e||e.columns.forEach((e,a)=>{t.set(e.key,a)}),t}sortByColumnPosition(e){const t=this.getColumnPositionMap();return e.map((e,t)=>({column:e,index:t})).sort((e,a)=>{var r,o,s,i;const n=null!==(o=t.get(null!==(r=e.column.key)&&void 0!==r?r:""))&&void 0!==o?o:Number.MAX_SAFE_INTEGER,l=null!==(i=t.get(null!==(s=a.column.key)&&void 0!==s?s:""))&&void 0!==i?i:Number.MAX_SAFE_INTEGER;return n!==l?n-l:e.index-a.index}).map(({column:e})=>e)}createDataField(e,t,a){var r;t.horizontal=Array.isArray(null==t?void 0:t.horizontal)?t.horizontal:[],t.vertical=Array.isArray(null==t?void 0:t.vertical)?t.vertical:[];const o=this.getPrimaryHeaders(t),s=this.getNumberOfCols(t.horizontal,e);let i=this.getNumberOfRows(t.vertical,e),n=0;a&&(n=i,i+=(null===(r=this.state._dataFoot)||void 0===r?void 0:r.length)||0);const l=[],c=[],h=[];t.vertical.forEach((e,t)=>{c[t]=0,h[t]=[]});const d=this.sortByColumnPosition(o);for(let r=n;r<i;r++){const o=[];t.vertical.forEach((e,t)=>{let a=0;if(h[t].forEach(e=>a+=e),a<=r){const s=e[r-a+c[t]];if("object"==typeof s){o.push(Object.assign(Object.assign({},s),{headerCell:!0,data:{}}));let e=1;if("number"==typeof s.rowSpan&&s.rowSpan>1&&(e=s.rowSpan),h[t].push(e),"number"==typeof s.colSpan&&s.colSpan>1)for(let a=1;a<s.colSpan;a++)h[t+a].push(e);c[t]++}}});for(let t=0;t<s;t++)if(!0===this.horizontal){const s=a&&this.state._dataFoot?this.state._dataFoot[r-n]:e[r];"object"!=typeof d[t]||null===d[t]||"object"!=typeof s||null===s||"string"!=typeof d[t].key&&"function"!=typeof d[t].render||o.push(Object.assign(Object.assign({},d[t]),{colSpan:void 0,data:s,label:s[d[t].key],rowSpan:void 0}))}else"object"!=typeof d[r]||null===d[r]||"object"!=typeof e[t]||null===e[t]||"string"!=typeof d[r].key&&"function"!=typeof d[r].render||o.push(Object.assign(Object.assign({},d[r]),{colSpan:void 0,data:e[t],label:e[t][d[r].key],rowSpan:void 0}));l.push(o)}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 r={colSpan:e,label:this.translateNoEntries,render:void 0,rowSpan:Math.max(a,1)};0===l.length?l.push([r]):l[0].push(r)}return l}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)}initializeTableSettings(){if(this._tableSettings)return;const e=this.getPrimaryHeaders(this.state._headerCells);this.state._tableSettings||(this.state._tableSettings={columns:[]}),this.state._tableSettings.columns=e.filter(e=>e.key).map(e=>{var t;return{hidable:!1!==e.hidable,sortable:!1!==e.sortable,resizable:!1!==e.resizable,key:null!==(t=e.key)&&void 0!==t?t:nonce(),label:e.label,visible:!0}})}componentWillLoad(){this.validateData(this._data),this.validateDataFoot(this._dataFoot),this.validateHeaderCells(this._headerCells),this.validateLabel(this._label),this.validateMinWidth(this._minWidth),this.validateOn(this._on),this.validateSelection(this._selection),this.validateTableSettings(this._tableSettings),this.validateHasSettingsMenu(this._hasSettingsMenu)}renderSelectionCell(e,t){var a;const r=this.state._selection;if(!r)return"";const o=this.getSelectionKeyPropertyName(),s=null===(a=e[0])||void 0===a?void 0:a.data;if(!s)return"";const i=s[o],n=r.multiple||void 0===r.multiple,l=(()=>{const e=null==r?void 0:r.selectedKeys;return(void 0===e?[]:Array.isArray(e)?e:[e]).some(e=>String(e)===String(i))})(),c=(()=>{const e=null==r?void 0:r.disabledKeys;return(void 0===e?[]:Array.isArray(e)?e:[e]).some(e=>String(e)===String(i))})(),d=r.label(s),u={name:"selection",checked:l,disabled:c,id:String(i),"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":l})},n?h("label",{class:clsx("kol-table__selection-label",{"kol-table__selection-label--disabled":c})},h(KolIconTag,{class:"kol-table__selection-icon",_icons:"codicon "+(l?"codicon-check":""),_label:""}),h("input",Object.assign({class:clsx("kol-table__selection-input kol-table__selection-input--checkbox"),ref:e=>e&&this.checkboxRefs.push(e)},u,{type:"checkbox",onInput:e=>{const t=(()=>{const e=null==r?void 0:r.selectedKeys;return void 0===e?[]:Array.isArray(e)?e:[e]})(),a=l?t.filter(e=>String(e)!==String(i)):[...t,i];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")},u,{type:"radio",onInput:e=>{this.handleSelectionChangeCallbackAndEvent(e,i)}}))),h(KolTooltipWcTag,{"aria-hidden":"true",class:"kol-table__selection-input-tooltip",_align:"right",_id:`${i}-label`,_label:d})))}getColumnSettings(e){var t;return null===(t=this.state._tableSettings)||void 0===t?void 0:t.columns.find(t=>t.key===e.key)}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 r=null===(a=this.state._selection)||void 0===a?void 0:a.disabledKeys;return!(void 0===r?[]:Array.isArray(r)?r:[r]).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(),r=null!==(t=this.getSelectedKeysWithDisabledKeysOnly())&&void 0!==t?t:[];return e&&r.push(...this.getDataWithSelectionEnabled().map(e=>null==e?void 0:e[a])),r}getTableMinWidth(){var e,t;const a=null!==(t=null===(e=this.state._tableSettings)||void 0===e?void 0:e.columns.filter(e=>e.visible).reduce((e,t)=>{var a;return e+(null!==(a=t.width)&&void 0!==a?a:0)},0))&&void 0!==t?t:0;return"auto"===this.state._minWidth?`${a}ch`:`max(${this.state._minWidth}, ${a}ch)`}renderHeadingSelectionCell(){var e,t;const a=this.state._selection;if(!a)return h("th",{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 r=null!==(t=null===(e=this.getSelectedKeysWithoutDisabledKeys())||void 0===e?void 0:e.length)&&void 0!==t?t:0,o=r===this.getDataWithSelectionEnabled().length,s=0!==r&&!o;let i="kol-table-selection-indeterminate";o&&!s&&(i="kol-table-selection-none"),0===r&&(i="kol-table-selection-all");const n=translate(i);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":o})},h("label",{class:"kol-table__selection-label"},h(KolIconTag,{class:"kol-table__selection-icon",_icons:"codicon "+(s?"codicon-remove":o?"codicon-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:o&&!s,indeterminate:s,"aria-label":n,type:"checkbox",onInput:e=>{this.handleSelectionChangeCallbackAndEvent(e,this.getRevertedSelection(!o))}})),h(KolTooltipWcTag,{"aria-hidden":"true",class:"kol-table__selection-input-tooltip",_align:"right",_id:`${i}-label`,_label:n})))}renderHeaderTdCell(){return h(Fragment,null,Array.isArray(this.state._headerCells.horizontal)&&this.state._headerCells.horizontal.length>0&&Array.isArray(this.state._headerCells.vertical)&&this.state._headerCells.vertical.length>0&&Array.isArray(this.state._headerCells.horizontal)&&h("td",{"aria-hidden":"true",colSpan:this.state._headerCells.vertical.length,rowSpan:this.state._headerCells.horizontal.length}))}renderHeadingCell(e,t,a,r){const o=this.getColumnSettings(e);if(o&&!o.visible)return"";const s=!1!==(null==o?void 0:o.sortable),i="string"==typeof e.sortDirection,n=s&&i;let l="none",c="codicon codicon-fold";if(n&&e.sortDirection)switch(e.sortDirection){case"ASC":c="codicon codicon-chevron-up",l="ascending";break;case"DESC":c="codicon codicon-chevron-down",l="descending";break;default:l="none"}const d=r?"row":"number"==typeof e.colSpan&&e.colSpan>1?"colgroup":"col";return h("th",{key:`${t}-${a}-${e.label}`,class:clsx("kol-table__cell kol-table__cell--header",{[`kol-table__cell--align-${e.textAlign}`]:e.textAlign,[`kol-table__cell--${l}`]:l}),scope:d,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{width:(null==o?void 0:o.width)?`${o.width}ch`:e.width},"aria-sort":l,"data-sort":n&&e.sortDirection?`sort-${e.sortDirection}`:void 0},n&&e.sortDirection?h(KolButtonWcTag,{class:"kol-table__sort-button",exportparts:"icon",_icons:{right:c},_label:e.label,_ariaDescription:this.translateSort,_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})}}}):e.label)}renderSpacer(e,t){var a,r;const o=(null===(a=this.state._headerCells.vertical)||void 0===a?void 0:a.length)||0,s=null===(r=null==t?void 0:t[0])||void 0===r?void 0:r.reduce((e,t)=>e+(t.colSpan||1),0),i=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:o+s+i}))}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(){var e;const t=this.createDataField(this.state._data,this.state._headerCells);this.checkboxRefs=[];const a=null===(e=this.state._headerCells.horizontal)||void 0===e?void 0:e.map(e=>this.sortByColumnPosition(e));return h("div",{key:"a66eb9f22e8267d1bfcc00b2429b8234e07beb51",class:"kol-table"},this.state._hasSettingsMenu&&h(KolTableSettingsWcTag,{key:"8c5bfcc3f01813773d07912fcf2fa78455efac06",_tableSettings:this.state._tableSettings}),h("div",{key:"6f9ac777bae4c27c80052aeeae5678ddff56a6bc",ref:e=>this.tableDivElement=e,class:"kol-table__scroll-container",tabindex:this.tableDivElementHasScrollbar?"-1":void 0},h("table",{key:"89710649cdcd7fcca523656de8f8b13fc3d9509f",class:"kol-table__table",style:{minWidth:this.getTableMinWidth()}},h("caption",{key:"0f5550f8377daed2043a18de8c2cdb5b6e45f554",class:"kol-table__focus-element kol-table__caption",id:"caption",tabindex:this.tableDivElementHasScrollbar?"0":void 0},this.state._label),Array.isArray(a)&&h("thead",{key:"83577b101b26b8ee80bc81ccd12526fb78f576c4",class:"kol-table__head"},[a.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",a)]),h("tbody",{key:"6fe763adb26ca11ebea14f035200df42c970d5cd",class:"kol-table__body"},t.map((e,t)=>this.renderTableRow(e,t,!0))),this.renderFoot())))}get host(){return this}static get watchers(){return{_hasSettingsMenu:["validateHasSettingsMenu"],_data:["validateData"],_dataFoot:["validateDataFoot"],_headerCells:["validateHeaderCells"],_label:["validateLabel"],_minWidth:["validateMinWidth"],_on:["validateOn"],_selection:["validateSelection"],_tableSettings:["validateTableSettings"]}}},[256,"kol-table-stateless-wc",{_data:[1],_dataFoot:[1,"_data-foot"],_headerCells:[1,"_header-cells"],_label:[1],_minWidth:[1,"_min-width"],_on:[16],_selection:[1],_tableSettings:[16],_hasSettingsMenu:[4,"_has-settings-menu"],state:[32],tableDivElementHasScrollbar:[32],previousHeaderCells:[32]},[[0,"keydown","handleKeyDown"],[0,"settingsChange","handleSettingsChange"]],{_hasSettingsMenu:["validateHasSettingsMenu"],_data:["validateData"],_dataFoot:["validateDataFoot"],_headerCells:["validateHeaderCells"],_label:["validateLabel"],_minWidth:["validateMinWidth"],_on:["validateOn"],_selection:["validateSelection"],_tableSettings:["validateTableSettings"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-table-stateless-wc"].forEach(e=>{if("kol-table-stateless-wc"===e)customElements.get(e)||customElements.define(e,KolTableStateless)})}const KolTableStatelessWc=KolTableStateless,defineCustomElement=defineCustomElement$1;export{KolTableStatelessWc,defineCustomElement};
|