@public-ui/components 3.1.0-rc.1 → 3.1.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-DfF6pi1r.js → Alert-iB2nNldZ.js} +1 -1
- package/dist/cjs/{Collapsible-CLx0W4A9.js → Collapsible-CAJwi50V.js} +1 -1
- package/dist/cjs/{CustomSuggestionsOptionsGroup-BdxFs_LG.js → CustomSuggestionsOptionsGroup-BmxcG68L.js} +1 -1
- package/dist/cjs/{FieldControlStateWrapper-B1pTh6HU.js → FieldControlStateWrapper-B_0MFAHD.js} +1 -1
- package/dist/cjs/{FormFieldStateWrapper-ClCM0elK.js → FormFieldStateWrapper-BFcysaVO.js} +1 -1
- package/dist/cjs/{Heading-CWat1DEt.js → Heading-CXo3APiB.js} +1 -1
- package/dist/cjs/{Icon-Dt9mYxSx.js → Icon-CA2N7E-m.js} +1 -1
- package/dist/cjs/Input-BG9SwAmi.js +4 -0
- package/dist/cjs/{InputStateWrapper-Bm5LkOTg.js → InputStateWrapper-Dc3UUVaW.js} +1 -1
- package/dist/cjs/{InternalUnderlinedBadgeText-DywRqXji.js → InternalUnderlinedBadgeText-BmcMXSlV.js} +1 -1
- package/dist/cjs/{Span-Cp4f8qt3.js → Span-Zi-z0XR5.js} +1 -1
- package/dist/cjs/app-globals-DjK7EzF0.js +4 -0
- package/dist/cjs/{controller-BY-Gfbgp.js → controller-DHLdEAgl.js} +1 -1
- package/dist/cjs/{controller-D-Fy_4el.js → controller-DT6QqMUx.js} +1 -1
- package/dist/cjs/{controller-icon-Cdldbw48.js → controller-icon-oRdlfcl8.js} +1 -1
- package/dist/cjs/{controller-CD6T4mPV.js → controller-r0aj2ftA.js} +1 -1
- package/dist/cjs/{dev.utils-BauUU93N.js → dev.utils-7DjklDXI.js} +1 -1
- package/dist/cjs/{devtools-64uESiJl.js → devtools-C0JF5BjI.js} +1 -1
- package/dist/cjs/index-CUwAAV9q.js +4 -0
- package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
- package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
- package/dist/cjs/kol-alert-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-alert.cjs.entry.js +1 -1
- package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
- package/dist/cjs/kol-badge.cjs.entry.js +1 -1
- package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
- package/dist/cjs/kol-button-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-button.cjs.entry.js +1 -1
- package/dist/cjs/kol-card-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-card.cjs.entry.js +1 -1
- package/dist/cjs/kol-combobox.cjs.entry.js +1 -1
- package/dist/cjs/kol-details.cjs.entry.js +1 -1
- package/dist/cjs/kol-drawer.cjs.entry.js +1 -1
- package/dist/cjs/kol-form.cjs.entry.js +1 -1
- package/dist/cjs/kol-heading.cjs.entry.js +1 -1
- package/dist/cjs/kol-icon.cjs.entry.js +1 -1
- package/dist/cjs/kol-image.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
- package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
- package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
- package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-link.cjs.entry.js +1 -1
- package/dist/cjs/kol-modal.cjs.entry.js +1 -1
- package/dist/cjs/kol-nav.cjs.entry.js +1 -1
- package/dist/cjs/kol-pagination-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
- package/dist/cjs/kol-popover-button-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-popover-button.cjs.entry.js +1 -1
- package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-progress.cjs.entry.js +1 -1
- package/dist/cjs/kol-quote.cjs.entry.js +1 -1
- package/dist/cjs/kol-select-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-select.cjs.entry.js +1 -1
- package/dist/cjs/kol-single-select.cjs.entry.js +1 -1
- package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
- package/dist/cjs/kol-spin.cjs.entry.js +1 -1
- package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
- package/dist/cjs/kol-table-settings-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-table-stateful.cjs.entry.js +1 -1
- package/dist/cjs/kol-table-stateless-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-table-stateless.cjs.entry.js +1 -1
- package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
- package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
- package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
- package/dist/cjs/kol-toolbar.cjs.entry.js +1 -1
- package/dist/cjs/kol-tooltip-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-tree-item-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-tree-item.cjs.entry.js +1 -1
- package/dist/cjs/kol-tree-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-tree.cjs.entry.js +1 -1
- package/dist/cjs/kol-version.cjs.entry.js +1 -1
- package/dist/cjs/kolibri.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/test-component.cjs.entry.js +1 -1
- package/dist/components/Alert.js +1 -1
- package/dist/components/Collapsible.js +1 -1
- package/dist/components/CustomSuggestionsOptionsGroup.js +1 -1
- package/dist/components/FieldControlStateWrapper.js +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/Icon.js +1 -1
- package/dist/components/Input.js +1 -1
- package/dist/components/InputStateWrapper.js +1 -1
- package/dist/components/InternalUnderlinedBadgeText.js +1 -1
- package/dist/components/Span.js +1 -1
- package/dist/components/access-and-short-key.js +1 -1
- package/dist/components/align-floating-elements.js +1 -1
- package/dist/components/align.js +1 -1
- package/dist/components/ariaCurrentService.js +1 -1
- package/dist/components/associated.controller.js +1 -1
- package/dist/components/auto-complete.js +1 -1
- package/dist/components/bem.js +1 -1
- package/dist/components/bem2.js +1 -1
- package/dist/components/bootstrap.js +1 -1
- package/dist/components/browser.js +1 -1
- package/dist/components/button-variant.js +1 -1
- package/dist/components/clsx.js +1 -1
- package/dist/components/color.js +1 -1
- package/dist/components/common.js +1 -1
- package/dist/components/component-names.js +1 -1
- package/dist/components/controller-icon.js +1 -1
- package/dist/components/controller.js +1 -1
- package/dist/components/controller2.js +1 -1
- package/dist/components/controller3.js +1 -1
- package/dist/components/controller4.js +1 -1
- package/dist/components/controller5.js +1 -1
- package/dist/components/custom-class.js +1 -1
- package/dist/components/dev.utils.js +1 -1
- package/dist/components/devtools.js +1 -1
- package/dist/components/disabled.js +1 -1
- package/dist/components/events.js +1 -1
- package/dist/components/has-closer.js +1 -1
- package/dist/components/hide-label.js +1 -1
- package/dist/components/href.js +1 -1
- package/dist/components/i18n.js +1 -1
- package/dist/components/i18n2.js +1 -1
- package/dist/components/icons.js +1 -1
- package/dist/components/image-source.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +1 -1
- package/dist/components/inline.js +1 -1
- package/dist/components/isObject.js +1 -1
- package/dist/components/keyboard.js +1 -1
- package/dist/components/kol-abbr.js +1 -1
- package/dist/components/kol-accordion.js +1 -1
- package/dist/components/kol-alert-wc.js +1 -1
- package/dist/components/kol-alert.js +1 -1
- package/dist/components/kol-avatar-wc.js +1 -1
- package/dist/components/kol-avatar.js +1 -1
- package/dist/components/kol-badge.js +1 -1
- package/dist/components/kol-breadcrumb.js +1 -1
- package/dist/components/kol-button-link.js +1 -1
- package/dist/components/kol-button-wc.js +1 -1
- package/dist/components/kol-button.js +1 -1
- package/dist/components/kol-card-wc.js +1 -1
- package/dist/components/kol-card.js +1 -1
- package/dist/components/kol-combobox.js +1 -1
- package/dist/components/kol-details.js +1 -1
- package/dist/components/kol-drawer.js +1 -1
- package/dist/components/kol-form.js +1 -1
- package/dist/components/kol-heading.js +1 -1
- package/dist/components/kol-icon.js +1 -1
- package/dist/components/kol-image.js +1 -1
- package/dist/components/kol-input-checkbox.js +1 -1
- package/dist/components/kol-input-color.js +1 -1
- package/dist/components/kol-input-date.js +1 -1
- package/dist/components/kol-input-email.js +1 -1
- package/dist/components/kol-input-file.js +1 -1
- package/dist/components/kol-input-number.js +1 -1
- package/dist/components/kol-input-password.js +1 -1
- package/dist/components/kol-input-radio.js +1 -1
- package/dist/components/kol-input-range.js +1 -1
- package/dist/components/kol-input-text.js +1 -1
- package/dist/components/kol-kolibri.js +1 -1
- package/dist/components/kol-link-button.js +1 -1
- package/dist/components/kol-link-wc.js +1 -1
- package/dist/components/kol-link.js +1 -1
- package/dist/components/kol-modal.js +1 -1
- package/dist/components/kol-nav.js +1 -1
- package/dist/components/kol-pagination-wc.js +1 -1
- package/dist/components/kol-pagination.js +1 -1
- package/dist/components/kol-popover-button-wc.js +1 -1
- package/dist/components/kol-popover-button.js +1 -1
- package/dist/components/kol-popover-wc.js +1 -1
- package/dist/components/kol-progress.js +1 -1
- package/dist/components/kol-quote.js +1 -1
- package/dist/components/kol-select-wc.js +1 -1
- package/dist/components/kol-select.js +1 -1
- package/dist/components/kol-single-select.js +1 -1
- package/dist/components/kol-skip-nav.js +1 -1
- package/dist/components/kol-spin.js +1 -1
- package/dist/components/kol-split-button.js +1 -1
- package/dist/components/kol-table-settings-wc.js +1 -1
- package/dist/components/kol-table-stateful.js +1 -1
- package/dist/components/kol-table-stateless-wc.js +1 -1
- package/dist/components/kol-table-stateless.js +1 -1
- package/dist/components/kol-tabs.js +1 -1
- package/dist/components/kol-textarea.js +1 -1
- package/dist/components/kol-toast-container.js +1 -1
- package/dist/components/kol-toolbar.js +1 -1
- package/dist/components/kol-tooltip-wc.js +1 -1
- package/dist/components/kol-tree-item-wc.js +1 -1
- package/dist/components/kol-tree-item.js +1 -1
- package/dist/components/kol-tree-wc.js +1 -1
- package/dist/components/kol-tree.js +1 -1
- package/dist/components/kol-version.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/markdown.js +1 -1
- package/dist/components/max-length-behavior.js +1 -1
- package/dist/components/multiple.js +1 -1
- package/dist/components/open.js +1 -1
- package/dist/components/orientation.js +1 -1
- package/dist/components/placeholder.js +1 -1
- package/dist/components/read-only.js +1 -1
- package/dist/components/required.js +1 -1
- package/dist/components/reuse.js +1 -1
- package/dist/components/rows.js +1 -1
- package/dist/components/show.js +1 -1
- package/dist/components/spell-check.js +1 -1
- package/dist/components/suggestions.js +1 -1
- package/dist/components/table-settings.js +1 -1
- package/dist/components/test-component.js +1 -1
- package/dist/components/tooltip-align.js +1 -1
- package/dist/components/tooltip-open-tracking.js +1 -1
- package/dist/components/tslib.es6.js +1 -1
- package/dist/components/unique-nav-labels.js +1 -1
- package/dist/components/validation.js +1 -1
- package/dist/components/validation2.js +1 -1
- package/dist/esm/{Alert-DZ3Qvmx3.js → Alert-I3c2hFqL.js} +1 -1
- package/dist/esm/{Collapsible-sLC3-zDi.js → Collapsible-CK8NIzH0.js} +1 -1
- package/dist/esm/{CustomSuggestionsOptionsGroup-110zEZnD.js → CustomSuggestionsOptionsGroup-CKk6vmBF.js} +1 -1
- package/dist/esm/{FieldControlStateWrapper-Dwn9ilVO.js → FieldControlStateWrapper-CHxIkx4o.js} +1 -1
- package/dist/esm/{FormFieldStateWrapper-CMVWsf1s.js → FormFieldStateWrapper-BD6_Aq_y.js} +1 -1
- package/dist/esm/{Heading-CLE-Js8a.js → Heading-DwQEABii.js} +1 -1
- package/dist/esm/{Icon-R0rZZbtD.js → Icon-DazIQvDi.js} +1 -1
- package/dist/esm/{Input-Dc432kZ2.js → Input-KPeaFJZR.js} +1 -1
- package/dist/esm/{InputStateWrapper-D6x3J4a5.js → InputStateWrapper-Br3zT89Q.js} +1 -1
- package/dist/esm/{InternalUnderlinedBadgeText-CQHhXGXt.js → InternalUnderlinedBadgeText-BXMEPoNX.js} +1 -1
- package/dist/esm/{Span-MWb3xhCV.js → Span-_4yQD2YZ.js} +1 -1
- package/dist/esm/app-globals-BMo3oAt8.js +4 -0
- package/dist/esm/{controller-YU3DJWZU.js → controller-BVGTTRsM.js} +1 -1
- package/dist/esm/{controller-DiBS7J6Z.js → controller-CBTbnj0P.js} +1 -1
- package/dist/esm/{controller-ByoIxwlc.js → controller-hCTGmOJP.js} +1 -1
- package/dist/esm/{controller-icon-DwSibEz-.js → controller-icon-z0j8meAS.js} +1 -1
- package/dist/esm/{dev.utils-1ts_3yRe.js → dev.utils-CT0IU26V.js} +1 -1
- package/dist/esm/{devtools-CjGJpuSn.js → devtools-CKGr6nvH.js} +1 -1
- package/dist/esm/index-BVfSKhpj.js +4 -0
- package/dist/esm/kol-abbr.entry.js +1 -1
- package/dist/esm/kol-accordion.entry.js +1 -1
- package/dist/esm/kol-alert-wc.entry.js +1 -1
- package/dist/esm/kol-alert.entry.js +1 -1
- package/dist/esm/kol-avatar-wc.entry.js +1 -1
- package/dist/esm/kol-avatar.entry.js +1 -1
- package/dist/esm/kol-badge.entry.js +1 -1
- package/dist/esm/kol-breadcrumb.entry.js +1 -1
- package/dist/esm/kol-button-link.entry.js +1 -1
- package/dist/esm/kol-button-wc.entry.js +1 -1
- package/dist/esm/kol-button.entry.js +1 -1
- package/dist/esm/kol-card-wc.entry.js +1 -1
- package/dist/esm/kol-card.entry.js +1 -1
- package/dist/esm/kol-combobox.entry.js +1 -1
- package/dist/esm/kol-details.entry.js +1 -1
- package/dist/esm/kol-drawer.entry.js +1 -1
- package/dist/esm/kol-form.entry.js +1 -1
- package/dist/esm/kol-heading.entry.js +1 -1
- package/dist/esm/kol-icon.entry.js +1 -1
- package/dist/esm/kol-image.entry.js +1 -1
- package/dist/esm/kol-input-checkbox.entry.js +1 -1
- package/dist/esm/kol-input-color.entry.js +1 -1
- package/dist/esm/kol-input-date.entry.js +1 -1
- package/dist/esm/kol-input-email.entry.js +1 -1
- package/dist/esm/kol-input-file.entry.js +1 -1
- package/dist/esm/kol-input-number.entry.js +1 -1
- package/dist/esm/kol-input-password.entry.js +1 -1
- package/dist/esm/kol-input-radio.entry.js +1 -1
- package/dist/esm/kol-input-range.entry.js +1 -1
- package/dist/esm/kol-input-text.entry.js +1 -1
- package/dist/esm/kol-kolibri.entry.js +1 -1
- package/dist/esm/kol-link-button.entry.js +1 -1
- package/dist/esm/kol-link-wc.entry.js +1 -1
- package/dist/esm/kol-link.entry.js +1 -1
- package/dist/esm/kol-modal.entry.js +1 -1
- package/dist/esm/kol-nav.entry.js +1 -1
- package/dist/esm/kol-pagination-wc.entry.js +1 -1
- package/dist/esm/kol-pagination.entry.js +1 -1
- package/dist/esm/kol-popover-button-wc.entry.js +1 -1
- package/dist/esm/kol-popover-button.entry.js +1 -1
- package/dist/esm/kol-popover-wc.entry.js +1 -1
- package/dist/esm/kol-progress.entry.js +1 -1
- package/dist/esm/kol-quote.entry.js +1 -1
- package/dist/esm/kol-select-wc.entry.js +1 -1
- package/dist/esm/kol-select.entry.js +1 -1
- package/dist/esm/kol-single-select.entry.js +1 -1
- package/dist/esm/kol-skip-nav.entry.js +1 -1
- package/dist/esm/kol-spin.entry.js +1 -1
- package/dist/esm/kol-split-button.entry.js +1 -1
- package/dist/esm/kol-table-settings-wc.entry.js +1 -1
- package/dist/esm/kol-table-stateful.entry.js +1 -1
- package/dist/esm/kol-table-stateless-wc.entry.js +1 -1
- package/dist/esm/kol-table-stateless.entry.js +1 -1
- package/dist/esm/kol-tabs.entry.js +1 -1
- package/dist/esm/kol-textarea.entry.js +1 -1
- package/dist/esm/kol-toast-container.entry.js +1 -1
- package/dist/esm/kol-toolbar.entry.js +1 -1
- package/dist/esm/kol-tooltip-wc.entry.js +1 -1
- package/dist/esm/kol-tree-item-wc.entry.js +1 -1
- package/dist/esm/kol-tree-item.entry.js +1 -1
- package/dist/esm/kol-tree-wc.entry.js +1 -1
- package/dist/esm/kol-tree.entry.js +1 -1
- package/dist/esm/kol-version.entry.js +1 -1
- package/dist/esm/kolibri.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/test-component.entry.js +1 -1
- package/dist/kolibri/Alert-I3c2hFqL.js +4 -0
- package/dist/kolibri/{Collapsible-sLC3-zDi.js → Collapsible-CK8NIzH0.js} +1 -1
- package/dist/kolibri/{CustomSuggestionsOptionsGroup-110zEZnD.js → CustomSuggestionsOptionsGroup-CKk6vmBF.js} +1 -1
- package/dist/kolibri/FieldControlStateWrapper-CHxIkx4o.js +4 -0
- package/dist/kolibri/FormFieldStateWrapper-BD6_Aq_y.js +4 -0
- package/dist/kolibri/Heading-DwQEABii.js +4 -0
- package/dist/kolibri/{Icon-R0rZZbtD.js → Icon-DazIQvDi.js} +1 -1
- package/dist/kolibri/Input-KPeaFJZR.js +4 -0
- package/dist/kolibri/InputStateWrapper-Br3zT89Q.js +4 -0
- package/dist/kolibri/InternalUnderlinedBadgeText-BXMEPoNX.js +4 -0
- package/dist/kolibri/Span-_4yQD2YZ.js +4 -0
- package/dist/kolibri/access-and-short-key-B37XLwy2.js +1 -1
- package/dist/kolibri/align-D-ifSKu8.js +1 -1
- package/dist/kolibri/align-floating-elements-BkpeqvtE.js +1 -1
- package/dist/kolibri/app-globals-BMo3oAt8.js +4 -0
- package/dist/kolibri/ariaCurrentService-YoLNpD5S.js +1 -1
- package/dist/kolibri/associated.controller-B9GDDaFL.js +1 -1
- package/dist/kolibri/bem-BBRwGb1a.js +1 -1
- package/dist/kolibri/bem-Dj4gWVFO.js +1 -1
- package/dist/kolibri/bootstrap-DcyDkVEo.js +1 -1
- package/dist/kolibri/browser-DiRe0qUf.js +1 -1
- package/dist/kolibri/button-variant-_wL6MroY.js +1 -1
- package/dist/kolibri/color-BOIEtqEM.js +1 -1
- package/dist/kolibri/common-Dd0zJQbD.js +1 -1
- package/dist/kolibri/component-names-C3fyby67.js +1 -1
- package/dist/kolibri/{controller-YU3DJWZU.js → controller-BVGTTRsM.js} +1 -1
- package/dist/kolibri/controller-CBTbnj0P.js +4 -0
- package/dist/kolibri/controller-CM5wW8Ij.js +1 -1
- package/dist/kolibri/controller-hCTGmOJP.js +4 -0
- package/dist/kolibri/controller-icon-z0j8meAS.js +4 -0
- package/dist/kolibri/dev.utils-CT0IU26V.js +4 -0
- package/dist/kolibri/devtools-CKGr6nvH.js +4 -0
- package/dist/kolibri/events-9-skLO0f.js +1 -1
- package/dist/kolibri/i18n-CfLoIZ8T.js +1 -1
- package/dist/kolibri/i18n-LBpyQ66X.js +1 -1
- package/dist/kolibri/icons-DNTuScEN.js +1 -1
- package/dist/kolibri/index-BVfSKhpj.js +5 -0
- package/dist/kolibri/index.esm.js +1 -1
- package/dist/kolibri/isObject-DvSELytj.js +1 -1
- package/dist/kolibri/kol-abbr.entry.js +1 -1
- package/dist/kolibri/kol-accordion.entry.js +1 -1
- package/dist/kolibri/kol-alert-wc.entry.js +1 -1
- package/dist/kolibri/kol-alert.entry.js +1 -1
- package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
- package/dist/kolibri/kol-avatar.entry.js +1 -1
- package/dist/kolibri/kol-badge.entry.js +1 -1
- package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
- package/dist/kolibri/kol-button-link.entry.js +1 -1
- package/dist/kolibri/kol-button-wc.entry.js +1 -1
- package/dist/kolibri/kol-button.entry.js +1 -1
- package/dist/kolibri/kol-card-wc.entry.js +1 -1
- package/dist/kolibri/kol-card.entry.js +1 -1
- package/dist/kolibri/kol-combobox.entry.js +1 -1
- package/dist/kolibri/kol-details.entry.js +1 -1
- package/dist/kolibri/kol-drawer.entry.js +1 -1
- package/dist/kolibri/kol-form.entry.js +1 -1
- package/dist/kolibri/kol-heading.entry.js +1 -1
- package/dist/kolibri/kol-icon.entry.js +1 -1
- package/dist/kolibri/kol-image.entry.js +1 -1
- package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
- package/dist/kolibri/kol-input-color.entry.js +1 -1
- package/dist/kolibri/kol-input-date.entry.js +1 -1
- package/dist/kolibri/kol-input-email.entry.js +1 -1
- package/dist/kolibri/kol-input-file.entry.js +1 -1
- package/dist/kolibri/kol-input-number.entry.js +1 -1
- package/dist/kolibri/kol-input-password.entry.js +1 -1
- package/dist/kolibri/kol-input-radio.entry.js +1 -1
- package/dist/kolibri/kol-input-range.entry.js +1 -1
- package/dist/kolibri/kol-input-text.entry.js +1 -1
- package/dist/kolibri/kol-kolibri.entry.js +1 -1
- package/dist/kolibri/kol-link-button.entry.js +1 -1
- package/dist/kolibri/kol-link-wc.entry.js +1 -1
- package/dist/kolibri/kol-link.entry.js +1 -1
- package/dist/kolibri/kol-modal.entry.js +1 -1
- package/dist/kolibri/kol-nav.entry.js +1 -1
- package/dist/kolibri/kol-pagination-wc.entry.js +1 -1
- package/dist/kolibri/kol-pagination.entry.js +1 -1
- package/dist/kolibri/kol-popover-button-wc.entry.js +1 -1
- package/dist/kolibri/kol-popover-button.entry.js +1 -1
- package/dist/kolibri/kol-popover-wc.entry.js +1 -1
- package/dist/kolibri/kol-progress.entry.js +1 -1
- package/dist/kolibri/kol-quote.entry.js +1 -1
- package/dist/kolibri/kol-select-wc.entry.js +1 -1
- package/dist/kolibri/kol-select.entry.js +1 -1
- package/dist/kolibri/kol-single-select.entry.js +1 -1
- package/dist/kolibri/kol-skip-nav.entry.js +1 -1
- package/dist/kolibri/kol-spin.entry.js +1 -1
- package/dist/kolibri/kol-split-button.entry.js +1 -1
- package/dist/kolibri/kol-table-settings-wc.entry.js +1 -1
- package/dist/kolibri/kol-table-stateful.entry.js +1 -1
- package/dist/kolibri/kol-table-stateless-wc.entry.js +1 -1
- package/dist/kolibri/kol-table-stateless.entry.js +1 -1
- package/dist/kolibri/kol-tabs.entry.js +1 -1
- package/dist/kolibri/kol-textarea.entry.js +1 -1
- package/dist/kolibri/kol-toast-container.entry.js +1 -1
- package/dist/kolibri/kol-toolbar.entry.js +1 -1
- package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
- package/dist/kolibri/kol-tree-item-wc.entry.js +1 -1
- package/dist/kolibri/kol-tree-item.entry.js +1 -1
- package/dist/kolibri/kol-tree-wc.entry.js +1 -1
- package/dist/kolibri/kol-tree.entry.js +1 -1
- package/dist/kolibri/kol-version.entry.js +1 -1
- package/dist/kolibri/kolibri.esm.js +1 -1
- package/dist/kolibri/label-Dnmzb2S_.js +1 -1
- package/dist/kolibri/markdown-BSkXjaSn.js +1 -1
- package/dist/kolibri/max-length-behavior-nTw1Zuyf.js +1 -1
- package/dist/kolibri/reuse-CX4AQDkS.js +1 -1
- package/dist/kolibri/spell-check-B9ot-4t-.js +1 -1
- package/dist/kolibri/suggestions-B-jLvT4L.js +1 -1
- package/dist/kolibri/table-settings-DxLvhwRE.js +1 -1
- package/dist/kolibri/test-component.entry.js +1 -1
- package/dist/kolibri/tooltip-open-tracking-rBbBgPWP.js +1 -1
- package/dist/kolibri/validation-aqgnZOL6.js +1 -1
- package/dist/types/stencil-public-runtime.d.ts +87 -4
- 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 +1 -1
- package/dist/cjs/Alert-DfF6pi1r.js.map +0 -1
- package/dist/cjs/Collapsible-CLx0W4A9.js.map +0 -1
- package/dist/cjs/CustomSuggestionsOptionsGroup-BdxFs_LG.js.map +0 -1
- package/dist/cjs/FieldControlStateWrapper-B1pTh6HU.js.map +0 -1
- package/dist/cjs/FormFieldStateWrapper-ClCM0elK.js.map +0 -1
- package/dist/cjs/Heading-CWat1DEt.js.map +0 -1
- package/dist/cjs/Icon-Dt9mYxSx.js.map +0 -1
- package/dist/cjs/Input-BB9iPhrt.js +0 -4
- package/dist/cjs/Input-BB9iPhrt.js.map +0 -1
- package/dist/cjs/InputStateWrapper-Bm5LkOTg.js.map +0 -1
- package/dist/cjs/InternalUnderlinedBadgeText-DywRqXji.js.map +0 -1
- package/dist/cjs/Span-Cp4f8qt3.js.map +0 -1
- package/dist/cjs/access-and-short-key-BExF929g.js.map +0 -1
- package/dist/cjs/align-CGG5V8xM.js.map +0 -1
- package/dist/cjs/align-floating-elements-Bxx5nIn-.js.map +0 -1
- package/dist/cjs/app-globals-Be2MWNox.js +0 -4
- package/dist/cjs/app-globals-Be2MWNox.js.map +0 -1
- package/dist/cjs/ariaCurrentService-3051l6MI.js.map +0 -1
- package/dist/cjs/associated.controller-jhz1Ef5Z.js.map +0 -1
- package/dist/cjs/auto-complete-DQ9TPAgi.js.map +0 -1
- package/dist/cjs/bem-BVClcAVJ.js.map +0 -1
- package/dist/cjs/bem-CWXmxX43.js.map +0 -1
- package/dist/cjs/bootstrap-DmmGbpjB.js.map +0 -1
- package/dist/cjs/browser-D7A31aEp.js.map +0 -1
- package/dist/cjs/button-variant-Dc6H5OWB.js.map +0 -1
- package/dist/cjs/clsx-CkZlkaek.js.map +0 -1
- package/dist/cjs/color-D7OxzTlF.js.map +0 -1
- package/dist/cjs/common-Cd2qH809.js.map +0 -1
- package/dist/cjs/component-names-CuI-0Pbo.js.map +0 -1
- package/dist/cjs/controller-BY-Gfbgp.js.map +0 -1
- package/dist/cjs/controller-CD6T4mPV.js.map +0 -1
- package/dist/cjs/controller-D-Fy_4el.js.map +0 -1
- package/dist/cjs/controller-Q-LXBPh4.js.map +0 -1
- package/dist/cjs/controller-icon-Cdldbw48.js.map +0 -1
- package/dist/cjs/custom-class-BhuMM_WI.js.map +0 -1
- package/dist/cjs/dev.utils-BauUU93N.js.map +0 -1
- package/dist/cjs/devtools-64uESiJl.js.map +0 -1
- package/dist/cjs/disabled-DT-7CUov.js.map +0 -1
- package/dist/cjs/events-cX8h6I3p.js.map +0 -1
- package/dist/cjs/has-closer-COtNvUI4.js.map +0 -1
- package/dist/cjs/hide-label-DdGk9NfD.js.map +0 -1
- package/dist/cjs/href-BxaZOlRE.js.map +0 -1
- package/dist/cjs/i18n-BnIFsVIa.js.map +0 -1
- package/dist/cjs/i18n-DNWGj4j8.js.map +0 -1
- package/dist/cjs/icons-D_PtPRwb.js.map +0 -1
- package/dist/cjs/image-source-DI336Od8.js.map +0 -1
- package/dist/cjs/index-DarjP8Gj.js +0 -4
- package/dist/cjs/index-DarjP8Gj.js.map +0 -1
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/inline-CGvu_CRs.js.map +0 -1
- package/dist/cjs/isObject-DMA85Fq4.js.map +0 -1
- package/dist/cjs/keyboard-C096g_BV.js.map +0 -1
- package/dist/cjs/kol-abbr.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-accordion.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-alert-wc.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-alert.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-avatar-wc.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-avatar.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-badge.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-breadcrumb.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-button-link.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-button-wc.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-button.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-card-wc.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-card.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-combobox.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-details.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-drawer.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-form.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-heading.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-icon.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-image.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-input-checkbox.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-input-color.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-input-date.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-input-email.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-input-file.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-input-number.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-input-password.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-input-radio.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-input-range.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-input-text.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-kolibri.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-link-button.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-link-wc.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-link.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-modal.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-nav.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-pagination-wc.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-pagination.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-popover-button-wc.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-popover-button.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-popover-wc.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-progress.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-quote.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-select-wc.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-select.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-single-select.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-skip-nav.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-spin.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-split-button.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-table-settings-wc.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-table-stateful.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-table-stateless-wc.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-table-stateless.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-tabs.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-textarea.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-toast-container.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-toolbar.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-tooltip-wc.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-tree-item-wc.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-tree-item.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-tree-wc.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-tree.entry.cjs.js.map +0 -1
- package/dist/cjs/kol-version.entry.cjs.js.map +0 -1
- package/dist/cjs/kolibri.cjs.js.map +0 -1
- package/dist/cjs/label-Nicf9N_T.js.map +0 -1
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/markdown-1dxeA2q6.js.map +0 -1
- package/dist/cjs/max-length-behavior-Bvbwhaxv.js.map +0 -1
- package/dist/cjs/multiple-DRhU5nKU.js.map +0 -1
- package/dist/cjs/open-CFgcd51_.js.map +0 -1
- package/dist/cjs/orientation-BGODo_Ua.js.map +0 -1
- package/dist/cjs/placeholder-BncK-3gZ.js.map +0 -1
- package/dist/cjs/read-only-dIvCm73W.js.map +0 -1
- package/dist/cjs/required-CXU7vdyH.js.map +0 -1
- package/dist/cjs/reuse-Cs36Ddzu.js.map +0 -1
- package/dist/cjs/rows-BUvz5j5U.js.map +0 -1
- package/dist/cjs/show-C0ZlevIe.js.map +0 -1
- package/dist/cjs/spell-check-Bkq4G9L7.js.map +0 -1
- package/dist/cjs/suggestions-BjiW0xio.js.map +0 -1
- package/dist/cjs/table-settings-Ct3SRuhX.js.map +0 -1
- package/dist/cjs/test-component.entry.cjs.js.map +0 -1
- package/dist/cjs/tooltip-align-WJPFINTL.js.map +0 -1
- package/dist/cjs/tooltip-open-tracking-Ba0udJRU.js.map +0 -1
- package/dist/cjs/tslib.es6-7DbU_BSw.js.map +0 -1
- package/dist/cjs/unique-nav-labels-hzeBq0jr.js.map +0 -1
- package/dist/cjs/validation-BvY0ZgXp.js.map +0 -1
- package/dist/cjs/validation-DsxRnVmU.js.map +0 -1
- package/dist/components/Alert.js.map +0 -1
- package/dist/components/Collapsible.js.map +0 -1
- package/dist/components/CustomSuggestionsOptionsGroup.js.map +0 -1
- package/dist/components/FieldControlStateWrapper.js.map +0 -1
- package/dist/components/Heading.js.map +0 -1
- package/dist/components/Icon.js.map +0 -1
- package/dist/components/Input.js.map +0 -1
- package/dist/components/InputStateWrapper.js.map +0 -1
- package/dist/components/InternalUnderlinedBadgeText.js.map +0 -1
- package/dist/components/Span.js.map +0 -1
- package/dist/components/access-and-short-key.js.map +0 -1
- package/dist/components/align-floating-elements.js.map +0 -1
- package/dist/components/align.js.map +0 -1
- package/dist/components/ariaCurrentService.js.map +0 -1
- package/dist/components/associated.controller.js.map +0 -1
- package/dist/components/auto-complete.js.map +0 -1
- package/dist/components/bem.js.map +0 -1
- package/dist/components/bem2.js.map +0 -1
- package/dist/components/bootstrap.js.map +0 -1
- package/dist/components/browser.js.map +0 -1
- package/dist/components/button-variant.js.map +0 -1
- package/dist/components/clsx.js.map +0 -1
- package/dist/components/color.js.map +0 -1
- package/dist/components/common.js.map +0 -1
- package/dist/components/component-names.js.map +0 -1
- package/dist/components/controller-icon.js.map +0 -1
- package/dist/components/controller.js.map +0 -1
- package/dist/components/controller2.js.map +0 -1
- package/dist/components/controller3.js.map +0 -1
- package/dist/components/controller4.js.map +0 -1
- package/dist/components/controller5.js.map +0 -1
- package/dist/components/custom-class.js.map +0 -1
- package/dist/components/dev.utils.js.map +0 -1
- package/dist/components/devtools.js.map +0 -1
- package/dist/components/disabled.js.map +0 -1
- package/dist/components/events.js.map +0 -1
- package/dist/components/has-closer.js.map +0 -1
- package/dist/components/hide-label.js.map +0 -1
- package/dist/components/href.js.map +0 -1
- package/dist/components/i18n.js.map +0 -1
- package/dist/components/i18n2.js.map +0 -1
- package/dist/components/icons.js.map +0 -1
- package/dist/components/image-source.js.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/components/inline.js.map +0 -1
- package/dist/components/isObject.js.map +0 -1
- package/dist/components/keyboard.js.map +0 -1
- package/dist/components/kol-abbr.js.map +0 -1
- package/dist/components/kol-accordion.js.map +0 -1
- package/dist/components/kol-alert-wc.js.map +0 -1
- package/dist/components/kol-alert.js.map +0 -1
- package/dist/components/kol-avatar-wc.js.map +0 -1
- package/dist/components/kol-avatar.js.map +0 -1
- package/dist/components/kol-badge.js.map +0 -1
- package/dist/components/kol-breadcrumb.js.map +0 -1
- package/dist/components/kol-button-link.js.map +0 -1
- package/dist/components/kol-button-wc.js.map +0 -1
- package/dist/components/kol-button.js.map +0 -1
- package/dist/components/kol-card-wc.js.map +0 -1
- package/dist/components/kol-card.js.map +0 -1
- package/dist/components/kol-combobox.js.map +0 -1
- package/dist/components/kol-details.js.map +0 -1
- package/dist/components/kol-drawer.js.map +0 -1
- package/dist/components/kol-form.js.map +0 -1
- package/dist/components/kol-heading.js.map +0 -1
- package/dist/components/kol-icon.js.map +0 -1
- package/dist/components/kol-image.js.map +0 -1
- package/dist/components/kol-input-checkbox.js.map +0 -1
- package/dist/components/kol-input-color.js.map +0 -1
- package/dist/components/kol-input-date.js.map +0 -1
- package/dist/components/kol-input-email.js.map +0 -1
- package/dist/components/kol-input-file.js.map +0 -1
- package/dist/components/kol-input-number.js.map +0 -1
- package/dist/components/kol-input-password.js.map +0 -1
- package/dist/components/kol-input-radio.js.map +0 -1
- package/dist/components/kol-input-range.js.map +0 -1
- package/dist/components/kol-input-text.js.map +0 -1
- package/dist/components/kol-kolibri.js.map +0 -1
- package/dist/components/kol-link-button.js.map +0 -1
- package/dist/components/kol-link-wc.js.map +0 -1
- package/dist/components/kol-link.js.map +0 -1
- package/dist/components/kol-modal.js.map +0 -1
- package/dist/components/kol-nav.js.map +0 -1
- package/dist/components/kol-pagination-wc.js.map +0 -1
- package/dist/components/kol-pagination.js.map +0 -1
- package/dist/components/kol-popover-button-wc.js.map +0 -1
- package/dist/components/kol-popover-button.js.map +0 -1
- package/dist/components/kol-popover-wc.js.map +0 -1
- package/dist/components/kol-progress.js.map +0 -1
- package/dist/components/kol-quote.js.map +0 -1
- package/dist/components/kol-select-wc.js.map +0 -1
- package/dist/components/kol-select.js.map +0 -1
- package/dist/components/kol-single-select.js.map +0 -1
- package/dist/components/kol-skip-nav.js.map +0 -1
- package/dist/components/kol-spin.js.map +0 -1
- package/dist/components/kol-split-button.js.map +0 -1
- package/dist/components/kol-table-settings-wc.js.map +0 -1
- package/dist/components/kol-table-stateful.js.map +0 -1
- package/dist/components/kol-table-stateless-wc.js.map +0 -1
- package/dist/components/kol-table-stateless.js.map +0 -1
- package/dist/components/kol-tabs.js.map +0 -1
- package/dist/components/kol-textarea.js.map +0 -1
- package/dist/components/kol-toast-container.js.map +0 -1
- package/dist/components/kol-toolbar.js.map +0 -1
- package/dist/components/kol-tooltip-wc.js.map +0 -1
- package/dist/components/kol-tree-item-wc.js.map +0 -1
- package/dist/components/kol-tree-item.js.map +0 -1
- package/dist/components/kol-tree-wc.js.map +0 -1
- package/dist/components/kol-tree.js.map +0 -1
- package/dist/components/kol-version.js.map +0 -1
- package/dist/components/label.js.map +0 -1
- package/dist/components/markdown.js.map +0 -1
- package/dist/components/max-length-behavior.js.map +0 -1
- package/dist/components/multiple.js.map +0 -1
- package/dist/components/open.js.map +0 -1
- package/dist/components/orientation.js.map +0 -1
- package/dist/components/placeholder.js.map +0 -1
- package/dist/components/read-only.js.map +0 -1
- package/dist/components/required.js.map +0 -1
- package/dist/components/reuse.js.map +0 -1
- package/dist/components/rows.js.map +0 -1
- package/dist/components/show.js.map +0 -1
- package/dist/components/spell-check.js.map +0 -1
- package/dist/components/suggestions.js.map +0 -1
- package/dist/components/table-settings.js.map +0 -1
- package/dist/components/test-component.js.map +0 -1
- package/dist/components/tooltip-align.js.map +0 -1
- package/dist/components/tooltip-open-tracking.js.map +0 -1
- package/dist/components/tslib.es6.js.map +0 -1
- package/dist/components/unique-nav-labels.js.map +0 -1
- package/dist/components/validation.js.map +0 -1
- package/dist/components/validation2.js.map +0 -1
- package/dist/esm/Alert-DZ3Qvmx3.js.map +0 -1
- package/dist/esm/Collapsible-sLC3-zDi.js.map +0 -1
- package/dist/esm/CustomSuggestionsOptionsGroup-110zEZnD.js.map +0 -1
- package/dist/esm/FieldControlStateWrapper-Dwn9ilVO.js.map +0 -1
- package/dist/esm/FormFieldStateWrapper-CMVWsf1s.js.map +0 -1
- package/dist/esm/Heading-CLE-Js8a.js.map +0 -1
- package/dist/esm/Icon-R0rZZbtD.js.map +0 -1
- package/dist/esm/Input-Dc432kZ2.js.map +0 -1
- package/dist/esm/InputStateWrapper-D6x3J4a5.js.map +0 -1
- package/dist/esm/InternalUnderlinedBadgeText-CQHhXGXt.js.map +0 -1
- package/dist/esm/Span-MWb3xhCV.js.map +0 -1
- package/dist/esm/access-and-short-key-B37XLwy2.js.map +0 -1
- package/dist/esm/align-D-ifSKu8.js.map +0 -1
- package/dist/esm/align-floating-elements-BkpeqvtE.js.map +0 -1
- package/dist/esm/app-globals-DP-Al-8J.js +0 -4
- package/dist/esm/app-globals-DP-Al-8J.js.map +0 -1
- package/dist/esm/ariaCurrentService-YoLNpD5S.js.map +0 -1
- package/dist/esm/associated.controller-B9GDDaFL.js.map +0 -1
- package/dist/esm/auto-complete-mCkUnxg2.js.map +0 -1
- package/dist/esm/bem-BBRwGb1a.js.map +0 -1
- package/dist/esm/bem-Dj4gWVFO.js.map +0 -1
- package/dist/esm/bootstrap-DcyDkVEo.js.map +0 -1
- package/dist/esm/browser-DiRe0qUf.js.map +0 -1
- package/dist/esm/button-variant-_wL6MroY.js.map +0 -1
- package/dist/esm/clsx-eK3rPvPS.js.map +0 -1
- package/dist/esm/color-BOIEtqEM.js.map +0 -1
- package/dist/esm/common-Dd0zJQbD.js.map +0 -1
- package/dist/esm/component-names-C3fyby67.js.map +0 -1
- package/dist/esm/controller-ByoIxwlc.js.map +0 -1
- package/dist/esm/controller-CM5wW8Ij.js.map +0 -1
- package/dist/esm/controller-DiBS7J6Z.js.map +0 -1
- package/dist/esm/controller-YU3DJWZU.js.map +0 -1
- package/dist/esm/controller-icon-DwSibEz-.js.map +0 -1
- package/dist/esm/custom-class-nuoQ9Aml.js.map +0 -1
- package/dist/esm/dev.utils-1ts_3yRe.js.map +0 -1
- package/dist/esm/devtools-CjGJpuSn.js.map +0 -1
- package/dist/esm/disabled-BhpAFgSp.js.map +0 -1
- package/dist/esm/events-9-skLO0f.js.map +0 -1
- package/dist/esm/has-closer-CQzjaTkv.js.map +0 -1
- package/dist/esm/hide-label-B9FhGrWP.js.map +0 -1
- package/dist/esm/href-rwDd36rS.js.map +0 -1
- package/dist/esm/i18n-CfLoIZ8T.js.map +0 -1
- package/dist/esm/i18n-LBpyQ66X.js.map +0 -1
- package/dist/esm/icons-DNTuScEN.js.map +0 -1
- package/dist/esm/image-source-BfBEJ0rX.js.map +0 -1
- package/dist/esm/index-DuOiqRzT.js +0 -4
- package/dist/esm/index-DuOiqRzT.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/inline-cDaqwSfK.js.map +0 -1
- package/dist/esm/isObject-DvSELytj.js.map +0 -1
- package/dist/esm/keyboard-D6PoWr38.js.map +0 -1
- package/dist/esm/kol-abbr.entry.js.map +0 -1
- package/dist/esm/kol-accordion.entry.js.map +0 -1
- package/dist/esm/kol-alert-wc.entry.js.map +0 -1
- package/dist/esm/kol-alert.entry.js.map +0 -1
- package/dist/esm/kol-avatar-wc.entry.js.map +0 -1
- package/dist/esm/kol-avatar.entry.js.map +0 -1
- package/dist/esm/kol-badge.entry.js.map +0 -1
- package/dist/esm/kol-breadcrumb.entry.js.map +0 -1
- package/dist/esm/kol-button-link.entry.js.map +0 -1
- package/dist/esm/kol-button-wc.entry.js.map +0 -1
- package/dist/esm/kol-button.entry.js.map +0 -1
- package/dist/esm/kol-card-wc.entry.js.map +0 -1
- package/dist/esm/kol-card.entry.js.map +0 -1
- package/dist/esm/kol-combobox.entry.js.map +0 -1
- package/dist/esm/kol-details.entry.js.map +0 -1
- package/dist/esm/kol-drawer.entry.js.map +0 -1
- package/dist/esm/kol-form.entry.js.map +0 -1
- package/dist/esm/kol-heading.entry.js.map +0 -1
- package/dist/esm/kol-icon.entry.js.map +0 -1
- package/dist/esm/kol-image.entry.js.map +0 -1
- package/dist/esm/kol-input-checkbox.entry.js.map +0 -1
- package/dist/esm/kol-input-color.entry.js.map +0 -1
- package/dist/esm/kol-input-date.entry.js.map +0 -1
- package/dist/esm/kol-input-email.entry.js.map +0 -1
- package/dist/esm/kol-input-file.entry.js.map +0 -1
- package/dist/esm/kol-input-number.entry.js.map +0 -1
- package/dist/esm/kol-input-password.entry.js.map +0 -1
- package/dist/esm/kol-input-radio.entry.js.map +0 -1
- package/dist/esm/kol-input-range.entry.js.map +0 -1
- package/dist/esm/kol-input-text.entry.js.map +0 -1
- package/dist/esm/kol-kolibri.entry.js.map +0 -1
- package/dist/esm/kol-link-button.entry.js.map +0 -1
- package/dist/esm/kol-link-wc.entry.js.map +0 -1
- package/dist/esm/kol-link.entry.js.map +0 -1
- package/dist/esm/kol-modal.entry.js.map +0 -1
- package/dist/esm/kol-nav.entry.js.map +0 -1
- package/dist/esm/kol-pagination-wc.entry.js.map +0 -1
- package/dist/esm/kol-pagination.entry.js.map +0 -1
- package/dist/esm/kol-popover-button-wc.entry.js.map +0 -1
- package/dist/esm/kol-popover-button.entry.js.map +0 -1
- package/dist/esm/kol-popover-wc.entry.js.map +0 -1
- package/dist/esm/kol-progress.entry.js.map +0 -1
- package/dist/esm/kol-quote.entry.js.map +0 -1
- package/dist/esm/kol-select-wc.entry.js.map +0 -1
- package/dist/esm/kol-select.entry.js.map +0 -1
- package/dist/esm/kol-single-select.entry.js.map +0 -1
- package/dist/esm/kol-skip-nav.entry.js.map +0 -1
- package/dist/esm/kol-spin.entry.js.map +0 -1
- package/dist/esm/kol-split-button.entry.js.map +0 -1
- package/dist/esm/kol-table-settings-wc.entry.js.map +0 -1
- package/dist/esm/kol-table-stateful.entry.js.map +0 -1
- package/dist/esm/kol-table-stateless-wc.entry.js.map +0 -1
- package/dist/esm/kol-table-stateless.entry.js.map +0 -1
- package/dist/esm/kol-tabs.entry.js.map +0 -1
- package/dist/esm/kol-textarea.entry.js.map +0 -1
- package/dist/esm/kol-toast-container.entry.js.map +0 -1
- package/dist/esm/kol-toolbar.entry.js.map +0 -1
- package/dist/esm/kol-tooltip-wc.entry.js.map +0 -1
- package/dist/esm/kol-tree-item-wc.entry.js.map +0 -1
- package/dist/esm/kol-tree-item.entry.js.map +0 -1
- package/dist/esm/kol-tree-wc.entry.js.map +0 -1
- package/dist/esm/kol-tree.entry.js.map +0 -1
- package/dist/esm/kol-version.entry.js.map +0 -1
- package/dist/esm/kolibri.js.map +0 -1
- package/dist/esm/label-Dnmzb2S_.js.map +0 -1
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/markdown-BSkXjaSn.js.map +0 -1
- package/dist/esm/max-length-behavior-nTw1Zuyf.js.map +0 -1
- package/dist/esm/multiple-Cj3JQafH.js.map +0 -1
- package/dist/esm/open-CbvHO4XG.js.map +0 -1
- package/dist/esm/orientation-eCMt8CD1.js.map +0 -1
- package/dist/esm/placeholder-BVhy3BzI.js.map +0 -1
- package/dist/esm/read-only-BetTuumR.js.map +0 -1
- package/dist/esm/required-CnTTpFCN.js.map +0 -1
- package/dist/esm/reuse-CX4AQDkS.js.map +0 -1
- package/dist/esm/rows-DtS-0sp9.js.map +0 -1
- package/dist/esm/show-DdPK3aM7.js.map +0 -1
- package/dist/esm/spell-check-B9ot-4t-.js.map +0 -1
- package/dist/esm/suggestions-B-jLvT4L.js.map +0 -1
- package/dist/esm/table-settings-DxLvhwRE.js.map +0 -1
- package/dist/esm/test-component.entry.js.map +0 -1
- package/dist/esm/tooltip-align-Cnin7S26.js.map +0 -1
- package/dist/esm/tooltip-open-tracking-rBbBgPWP.js.map +0 -1
- package/dist/esm/tslib.es6-CxX45GIN.js.map +0 -1
- package/dist/esm/unique-nav-labels-CrfmPC99.js.map +0 -1
- package/dist/esm/validation-BfjI5un_.js.map +0 -1
- package/dist/esm/validation-aqgnZOL6.js.map +0 -1
- package/dist/kolibri/Alert-DZ3Qvmx3.js +0 -4
- package/dist/kolibri/Alert-DZ3Qvmx3.js.map +0 -1
- package/dist/kolibri/Collapsible-sLC3-zDi.js.map +0 -1
- package/dist/kolibri/CustomSuggestionsOptionsGroup-110zEZnD.js.map +0 -1
- package/dist/kolibri/FieldControlStateWrapper-Dwn9ilVO.js +0 -4
- package/dist/kolibri/FieldControlStateWrapper-Dwn9ilVO.js.map +0 -1
- package/dist/kolibri/FormFieldStateWrapper-CMVWsf1s.js +0 -4
- package/dist/kolibri/FormFieldStateWrapper-CMVWsf1s.js.map +0 -1
- package/dist/kolibri/Heading-CLE-Js8a.js +0 -4
- package/dist/kolibri/Heading-CLE-Js8a.js.map +0 -1
- package/dist/kolibri/Icon-R0rZZbtD.js.map +0 -1
- package/dist/kolibri/Input-Dc432kZ2.js +0 -4
- package/dist/kolibri/Input-Dc432kZ2.js.map +0 -1
- package/dist/kolibri/InputStateWrapper-D6x3J4a5.js +0 -4
- package/dist/kolibri/InputStateWrapper-D6x3J4a5.js.map +0 -1
- package/dist/kolibri/InternalUnderlinedBadgeText-CQHhXGXt.js +0 -4
- package/dist/kolibri/InternalUnderlinedBadgeText-CQHhXGXt.js.map +0 -1
- package/dist/kolibri/Span-MWb3xhCV.js +0 -4
- package/dist/kolibri/Span-MWb3xhCV.js.map +0 -1
- package/dist/kolibri/access-and-short-key-B37XLwy2.js.map +0 -1
- package/dist/kolibri/align-D-ifSKu8.js.map +0 -1
- package/dist/kolibri/align-floating-elements-BkpeqvtE.js.map +0 -1
- package/dist/kolibri/app-globals-DP-Al-8J.js +0 -4
- package/dist/kolibri/app-globals-DP-Al-8J.js.map +0 -1
- package/dist/kolibri/ariaCurrentService-YoLNpD5S.js.map +0 -1
- package/dist/kolibri/associated.controller-B9GDDaFL.js.map +0 -1
- package/dist/kolibri/auto-complete-mCkUnxg2.js.map +0 -1
- package/dist/kolibri/bem-BBRwGb1a.js.map +0 -1
- package/dist/kolibri/bem-Dj4gWVFO.js.map +0 -1
- package/dist/kolibri/bootstrap-DcyDkVEo.js.map +0 -1
- package/dist/kolibri/browser-DiRe0qUf.js.map +0 -1
- package/dist/kolibri/button-variant-_wL6MroY.js.map +0 -1
- package/dist/kolibri/clsx-eK3rPvPS.js.map +0 -1
- package/dist/kolibri/color-BOIEtqEM.js.map +0 -1
- package/dist/kolibri/common-Dd0zJQbD.js.map +0 -1
- package/dist/kolibri/component-names-C3fyby67.js.map +0 -1
- package/dist/kolibri/controller-ByoIxwlc.js +0 -4
- package/dist/kolibri/controller-ByoIxwlc.js.map +0 -1
- package/dist/kolibri/controller-CM5wW8Ij.js.map +0 -1
- package/dist/kolibri/controller-DiBS7J6Z.js +0 -4
- package/dist/kolibri/controller-DiBS7J6Z.js.map +0 -1
- package/dist/kolibri/controller-YU3DJWZU.js.map +0 -1
- package/dist/kolibri/controller-icon-DwSibEz-.js +0 -4
- package/dist/kolibri/controller-icon-DwSibEz-.js.map +0 -1
- package/dist/kolibri/custom-class-nuoQ9Aml.js.map +0 -1
- package/dist/kolibri/dev.utils-1ts_3yRe.js +0 -4
- package/dist/kolibri/dev.utils-1ts_3yRe.js.map +0 -1
- package/dist/kolibri/devtools-CjGJpuSn.js +0 -4
- package/dist/kolibri/devtools-CjGJpuSn.js.map +0 -1
- package/dist/kolibri/disabled-BhpAFgSp.js.map +0 -1
- package/dist/kolibri/events-9-skLO0f.js.map +0 -1
- package/dist/kolibri/has-closer-CQzjaTkv.js.map +0 -1
- package/dist/kolibri/hide-label-B9FhGrWP.js.map +0 -1
- package/dist/kolibri/href-rwDd36rS.js.map +0 -1
- package/dist/kolibri/i18n-CfLoIZ8T.js.map +0 -1
- package/dist/kolibri/i18n-LBpyQ66X.js.map +0 -1
- package/dist/kolibri/icons-DNTuScEN.js.map +0 -1
- package/dist/kolibri/image-source-BfBEJ0rX.js.map +0 -1
- package/dist/kolibri/index-DuOiqRzT.js +0 -5
- package/dist/kolibri/index-DuOiqRzT.js.map +0 -1
- package/dist/kolibri/index.esm.js.map +0 -1
- package/dist/kolibri/inline-cDaqwSfK.js.map +0 -1
- package/dist/kolibri/isObject-DvSELytj.js.map +0 -1
- package/dist/kolibri/keyboard-D6PoWr38.js.map +0 -1
- package/dist/kolibri/kol-abbr.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-abbr.entry.js.map +0 -1
- package/dist/kolibri/kol-accordion.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-accordion.entry.js.map +0 -1
- package/dist/kolibri/kol-alert-wc.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-alert-wc.entry.js.map +0 -1
- package/dist/kolibri/kol-alert.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-alert.entry.js.map +0 -1
- package/dist/kolibri/kol-avatar-wc.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-avatar-wc.entry.js.map +0 -1
- package/dist/kolibri/kol-avatar.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-avatar.entry.js.map +0 -1
- package/dist/kolibri/kol-badge.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-badge.entry.js.map +0 -1
- package/dist/kolibri/kol-breadcrumb.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-breadcrumb.entry.js.map +0 -1
- package/dist/kolibri/kol-button-link.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-button-link.entry.js.map +0 -1
- package/dist/kolibri/kol-button-wc.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-button-wc.entry.js.map +0 -1
- package/dist/kolibri/kol-button.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-button.entry.js.map +0 -1
- package/dist/kolibri/kol-card-wc.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-card-wc.entry.js.map +0 -1
- package/dist/kolibri/kol-card.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-card.entry.js.map +0 -1
- package/dist/kolibri/kol-combobox.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-combobox.entry.js.map +0 -1
- package/dist/kolibri/kol-details.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-details.entry.js.map +0 -1
- package/dist/kolibri/kol-drawer.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-drawer.entry.js.map +0 -1
- package/dist/kolibri/kol-form.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-form.entry.js.map +0 -1
- package/dist/kolibri/kol-heading.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-heading.entry.js.map +0 -1
- package/dist/kolibri/kol-icon.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-icon.entry.js.map +0 -1
- package/dist/kolibri/kol-image.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-image.entry.js.map +0 -1
- package/dist/kolibri/kol-input-checkbox.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-input-checkbox.entry.js.map +0 -1
- package/dist/kolibri/kol-input-color.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-input-color.entry.js.map +0 -1
- package/dist/kolibri/kol-input-date.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-input-date.entry.js.map +0 -1
- package/dist/kolibri/kol-input-email.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-input-email.entry.js.map +0 -1
- package/dist/kolibri/kol-input-file.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-input-file.entry.js.map +0 -1
- package/dist/kolibri/kol-input-number.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-input-number.entry.js.map +0 -1
- package/dist/kolibri/kol-input-password.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-input-password.entry.js.map +0 -1
- package/dist/kolibri/kol-input-radio.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-input-radio.entry.js.map +0 -1
- package/dist/kolibri/kol-input-range.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-input-range.entry.js.map +0 -1
- package/dist/kolibri/kol-input-text.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-input-text.entry.js.map +0 -1
- package/dist/kolibri/kol-kolibri.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-kolibri.entry.js.map +0 -1
- package/dist/kolibri/kol-link-button.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-link-button.entry.js.map +0 -1
- package/dist/kolibri/kol-link-wc.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-link-wc.entry.js.map +0 -1
- package/dist/kolibri/kol-link.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-link.entry.js.map +0 -1
- package/dist/kolibri/kol-modal.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-modal.entry.js.map +0 -1
- package/dist/kolibri/kol-nav.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-nav.entry.js.map +0 -1
- package/dist/kolibri/kol-pagination-wc.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-pagination-wc.entry.js.map +0 -1
- package/dist/kolibri/kol-pagination.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-pagination.entry.js.map +0 -1
- package/dist/kolibri/kol-popover-button-wc.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-popover-button-wc.entry.js.map +0 -1
- package/dist/kolibri/kol-popover-button.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-popover-button.entry.js.map +0 -1
- package/dist/kolibri/kol-popover-wc.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-popover-wc.entry.js.map +0 -1
- package/dist/kolibri/kol-progress.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-progress.entry.js.map +0 -1
- package/dist/kolibri/kol-quote.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-quote.entry.js.map +0 -1
- package/dist/kolibri/kol-select-wc.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-select-wc.entry.js.map +0 -1
- package/dist/kolibri/kol-select.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-select.entry.js.map +0 -1
- package/dist/kolibri/kol-single-select.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-single-select.entry.js.map +0 -1
- package/dist/kolibri/kol-skip-nav.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-skip-nav.entry.js.map +0 -1
- package/dist/kolibri/kol-spin.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-spin.entry.js.map +0 -1
- package/dist/kolibri/kol-split-button.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-split-button.entry.js.map +0 -1
- package/dist/kolibri/kol-table-settings-wc.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-table-settings-wc.entry.js.map +0 -1
- package/dist/kolibri/kol-table-stateful.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-table-stateful.entry.js.map +0 -1
- package/dist/kolibri/kol-table-stateless-wc.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-table-stateless-wc.entry.js.map +0 -1
- package/dist/kolibri/kol-table-stateless.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-table-stateless.entry.js.map +0 -1
- package/dist/kolibri/kol-tabs.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-tabs.entry.js.map +0 -1
- package/dist/kolibri/kol-textarea.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-textarea.entry.js.map +0 -1
- package/dist/kolibri/kol-toast-container.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-toast-container.entry.js.map +0 -1
- package/dist/kolibri/kol-toolbar.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-toolbar.entry.js.map +0 -1
- package/dist/kolibri/kol-tooltip-wc.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-tooltip-wc.entry.js.map +0 -1
- package/dist/kolibri/kol-tree-item-wc.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-tree-item-wc.entry.js.map +0 -1
- package/dist/kolibri/kol-tree-item.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-tree-item.entry.js.map +0 -1
- package/dist/kolibri/kol-tree-wc.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-tree-wc.entry.js.map +0 -1
- package/dist/kolibri/kol-tree.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-tree.entry.js.map +0 -1
- package/dist/kolibri/kol-version.entry.esm.js.map +0 -1
- package/dist/kolibri/kol-version.entry.js.map +0 -1
- package/dist/kolibri/kolibri.esm.js.map +0 -1
- package/dist/kolibri/label-Dnmzb2S_.js.map +0 -1
- package/dist/kolibri/loader.esm.js.map +0 -1
- package/dist/kolibri/markdown-BSkXjaSn.js.map +0 -1
- package/dist/kolibri/max-length-behavior-nTw1Zuyf.js.map +0 -1
- package/dist/kolibri/multiple-Cj3JQafH.js.map +0 -1
- package/dist/kolibri/open-CbvHO4XG.js.map +0 -1
- package/dist/kolibri/orientation-eCMt8CD1.js.map +0 -1
- package/dist/kolibri/placeholder-BVhy3BzI.js.map +0 -1
- package/dist/kolibri/read-only-BetTuumR.js.map +0 -1
- package/dist/kolibri/required-CnTTpFCN.js.map +0 -1
- package/dist/kolibri/reuse-CX4AQDkS.js.map +0 -1
- package/dist/kolibri/rows-DtS-0sp9.js.map +0 -1
- package/dist/kolibri/show-DdPK3aM7.js.map +0 -1
- package/dist/kolibri/spell-check-B9ot-4t-.js.map +0 -1
- package/dist/kolibri/suggestions-B-jLvT4L.js.map +0 -1
- package/dist/kolibri/table-settings-DxLvhwRE.js.map +0 -1
- package/dist/kolibri/test-component.entry.esm.js.map +0 -1
- package/dist/kolibri/test-component.entry.js.map +0 -1
- package/dist/kolibri/tooltip-align-Cnin7S26.js.map +0 -1
- package/dist/kolibri/tooltip-open-tracking-rBbBgPWP.js.map +0 -1
- package/dist/kolibri/tslib.es6-CxX45GIN.js.map +0 -1
- package/dist/kolibri/unique-nav-labels-CrfmPC99.js.map +0 -1
- package/dist/kolibri/validation-BfjI5un_.js.map +0 -1
- package/dist/kolibri/validation-aqgnZOL6.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{r as t,h as e,F as n,g as i}from"./index-DuOiqRzT.js";import{c as r}from"./clsx-eK3rPvPS.js";import{e as a,a as o,d as l,w as s}from"./component-names-C3fyby67.js";import{t as c}from"./i18n-LBpyQ66X.js";import{O as u,o as f,p as d,w as h,s as v}from"./common-Dd0zJQbD.js";import{b,v as _,a as y,f as p,c as k,e as j}from"./table-settings-DxLvhwRE.js";import{v as m}from"./label-Dnmzb2S_.js";import{C as g}from"./keyboard-D6PoWr38.js";import{n as w}from"./dev.utils-1ts_3yRe.js";import{d as S,K as A}from"./events-9-skLO0f.js";import{i as O,c as $,r as D,a as x,f as C,b as M,S as W}from"./isObject-DvSELytj.js";import"./i18n-CfLoIZ8T.js";const F=(e,t)=>{u(t,()=>{f(t,()=>{try{t=d(t)}catch(e){}h(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 P="[object AsyncFunction]",T="[object Function]",z="[object GeneratorFunction]",R="[object Proxy]";function E(e){if(!O(e))return!1;var t=$(e);return t==T||t==z||t==P||t==R}var K=D["__core-js_shared__"],H=function(){var e=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function L(e){return!!H&&H in e}var B=Function.prototype,I=B.toString;function N(e){if(null!=e){try{return I.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var U=/[\\^$.*+?()[\]{}|]/g,V=/^\[object .+?Constructor\]$/,q=Function.prototype,Q=Object.prototype,G=q.toString,J=Q.hasOwnProperty,X=RegExp("^"+G.call(J).replace(U,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Z(e){return!(!O(e)||L(e))&&(E(e)?X:V).test(N(e))}function Y(e,t){return null==e?void 0:e[t]}function tt(e,t){var n=Y(e,t);return Z(n)?n:void 0}var et=tt(D,"WeakMap"),nt=9007199254740991,it=/^(?:0|[1-9]\d*)$/;function rt(e,t){var n=typeof e;return!!(t=null==t?nt:t)&&("number"==n||"symbol"!=n&&it.test(e))&&e>-1&&e%1==0&&e<t}function at(e,t){return e===t||e!=e&&t!=t}var ot=9007199254740991;function lt(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=ot}function st(e){return null!=e&<(e.length)&&!E(e)}var ct=Object.prototype;function ut(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ct)}function ft(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var dt="[object Arguments]";function ht(e){return x(e)&&$(e)==dt}var vt=Object.prototype,bt=vt.hasOwnProperty,_t=vt.propertyIsEnumerable,yt=ht(function(){return arguments}())?ht:function(e){return x(e)&&bt.call(e,"callee")&&!_t.call(e,"callee")};function pt(){return!1}var kt="object"==typeof exports&&exports&&!exports.nodeType&&exports,jt=kt&&"object"==typeof module&&module&&!module.nodeType&&module,mt=jt&&jt.exports===kt,gt=mt?D.Buffer:void 0,wt=gt?gt.isBuffer:void 0,St=wt||pt,At="[object Arguments]",Ot="[object Array]",$t="[object Boolean]",Dt="[object Date]",xt="[object Error]",Ct="[object Function]",Mt="[object Map]",Wt="[object Number]",Ft="[object Object]",Pt="[object RegExp]",Tt="[object Set]",zt="[object String]",Rt="[object WeakMap]",Et="[object ArrayBuffer]",Kt="[object DataView]",Ht="[object Float32Array]",Lt="[object Float64Array]",Bt="[object Int8Array]",It="[object Int16Array]",Nt="[object Int32Array]",Ut="[object Uint8Array]",Vt="[object Uint8ClampedArray]",qt="[object Uint16Array]",Qt="[object Uint32Array]",Gt={};function Jt(e){return x(e)&<(e.length)&&!!Gt[$(e)]}function Xt(e){return function(t){return e(t)}}Gt[Ht]=Gt[Lt]=Gt[Bt]=Gt[It]=Gt[Nt]=Gt[Ut]=Gt[Vt]=Gt[qt]=Gt[Qt]=!0,Gt[At]=Gt[Ot]=Gt[Et]=Gt[$t]=Gt[Kt]=Gt[Dt]=Gt[xt]=Gt[Ct]=Gt[Mt]=Gt[Wt]=Gt[Ft]=Gt[Pt]=Gt[Tt]=Gt[zt]=Gt[Rt]=!1;var Zt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Yt=Zt&&"object"==typeof module&&module&&!module.nodeType&&module,te=Yt&&Yt.exports===Zt,ee=te&&C.process,ne=function(){try{var e=Yt&&Yt.require&&Yt.require("util").types;return e||ee&&ee.binding&&ee.binding("util")}catch(e){}}(),ie=ne&&ne.isTypedArray,re=ie?Xt(ie):Jt,ae=Object.prototype,oe=ae.hasOwnProperty;function le(e,t){var n=M(e),r=!n&&yt(e),a=!n&&!r&&St(e),i=!n&&!r&&!a&&re(e),o=n||r||a||i,l=o?ft(e.length,String):[],s=l.length;for(var c in e)!oe.call(e,c)||o&&("length"==c||a&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||rt(c,s))||l.push(c);return l}function se(e,t){return function(n){return e(t(n))}}var ce=se(Object.keys,Object),ue=Object.prototype,fe=ue.hasOwnProperty;function de(e){if(!ut(e))return ce(e);var t=[];for(var n in Object(e))fe.call(e,n)&&"constructor"!=n&&t.push(n);return t}function he(e){return st(e)?le(e):de(e)}var ve=tt(Object,"create");function be(){this.__data__=ve?ve(null):{},this.size=0}function _e(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ye="__lodash_hash_undefined__",pe=Object.prototype,ke=pe.hasOwnProperty;function je(e){var t=this.__data__;if(ve){var n=t[e];return n===ye?void 0:n}return ke.call(t,e)?t[e]:void 0}var me=Object.prototype,ge=me.hasOwnProperty;function we(e){var t=this.__data__;return ve?void 0!==t[e]:ge.call(t,e)}var Se="__lodash_hash_undefined__";function Ae(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ve&&void 0===t?Se:t,this}function Oe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $e(){this.__data__=[],this.size=0}function De(e,t){for(var n=e.length;n--;)if(at(e[n][0],t))return n;return-1}Oe.prototype.clear=be,Oe.prototype.delete=_e,Oe.prototype.get=je,Oe.prototype.has=we,Oe.prototype.set=Ae;var xe=Array.prototype,Ce=xe.splice;function Me(e){var t=this.__data__,n=De(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ce.call(t,n,1),--this.size,!0)}function We(e){var t=this.__data__,n=De(t,e);return n<0?void 0:t[n][1]}function Fe(e){return De(this.__data__,e)>-1}function Pe(e,t){var n=this.__data__,r=De(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Te(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Te.prototype.clear=$e,Te.prototype.delete=Me,Te.prototype.get=We,Te.prototype.has=Fe,Te.prototype.set=Pe;var ze=tt(D,"Map");function Re(){this.size=0,this.__data__={hash:new Oe,map:new(ze||Te),string:new Oe}}function Ee(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function Ke(e,t){var n=e.__data__;return Ee(t)?n["string"==typeof t?"string":"hash"]:n.map}function He(e){var t=Ke(this,e).delete(e);return this.size-=t?1:0,t}function Le(e){return Ke(this,e).get(e)}function Be(e){return Ke(this,e).has(e)}function Ie(e,t){var n=Ke(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Ne(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ue(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}function Ve(){this.__data__=new Te,this.size=0}function qe(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Qe(e){return this.__data__.get(e)}function Ge(e){return this.__data__.has(e)}Ne.prototype.clear=Re,Ne.prototype.delete=He,Ne.prototype.get=Le,Ne.prototype.has=Be,Ne.prototype.set=Ie;var Je=200;function Xe(e,t){var n=this.__data__;if(n instanceof Te){var r=n.__data__;if(!ze||r.length<Je-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ne(r)}return n.set(e,t),this.size=n.size,this}function Ze(e){var t=this.__data__=new Te(e);this.size=t.size}function Ye(e,t){for(var n=-1,r=null==e?0:e.length,a=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[a++]=o)}return i}function tn(){return[]}Ze.prototype.clear=Ve,Ze.prototype.delete=qe,Ze.prototype.get=Qe,Ze.prototype.has=Ge,Ze.prototype.set=Xe;var en=Object.prototype,nn=en.propertyIsEnumerable,rn=Object.getOwnPropertySymbols,an=rn?function(e){return null==e?[]:(e=Object(e),Ye(rn(e),function(t){return nn.call(e,t)}))}:tn;function on(e,t,n){var r=t(e);return M(e)?r:Ue(r,n(e))}function ln(e){return on(e,he,an)}var sn=tt(D,"DataView"),cn=tt(D,"Promise"),un=tt(D,"Set"),fn="[object Map]",dn="[object Object]",hn="[object Promise]",vn="[object Set]",bn="[object WeakMap]",_n="[object DataView]",yn=N(sn),pn=N(ze),kn=N(cn),jn=N(un),mn=N(et),gn=$;(sn&&gn(new sn(new ArrayBuffer(1)))!=_n||ze&&gn(new ze)!=fn||cn&&gn(cn.resolve())!=hn||un&&gn(new un)!=vn||et&&gn(new et)!=bn)&&(gn=function(e){var t=$(e),n=t==dn?e.constructor:void 0,r=n?N(n):"";if(r)switch(r){case yn:return _n;case pn:return fn;case kn:return hn;case jn:return vn;case mn:return bn}return t});var wn=D.Uint8Array,Sn="__lodash_hash_undefined__";function An(e){return this.__data__.set(e,Sn),this}function On(e){return this.__data__.has(e)}function $n(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Ne;++t<n;)this.add(e[t])}function Dn(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function xn(e,t){return e.has(t)}$n.prototype.add=$n.prototype.push=An,$n.prototype.has=On;var Cn=1,Mn=2;function Wn(e,t,n,r,a,i){var o=n&Cn,l=e.length,s=t.length;if(l!=s&&!(o&&s>l))return!1;var c=i.get(e),h=i.get(t);if(c&&h)return c==t&&h==e;var d=-1,u=!0,b=n&Mn?new $n:void 0;for(i.set(e,t),i.set(t,e);++d<l;){var _=e[d],v=t[d];if(r)var f=o?r(v,_,d,t,e,i):r(_,v,d,e,t,i);if(void 0!==f){if(f)continue;u=!1;break}if(b){if(!Dn(t,function(e,t){if(!xn(b,t)&&(_===e||a(_,e,n,r,i)))return b.push(t)})){u=!1;break}}else if(_!==v&&!a(_,v,n,r,i)){u=!1;break}}return i.delete(e),i.delete(t),u}function Fn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Pn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var Tn=1,zn=2,Rn="[object Boolean]",En="[object Date]",Kn="[object Error]",Hn="[object Map]",Ln="[object Number]",Bn="[object RegExp]",In="[object Set]",Nn="[object String]",Un="[object Symbol]",Vn="[object ArrayBuffer]",qn="[object DataView]",Qn=W?W.prototype:void 0,Gn=Qn?Qn.valueOf:void 0;function Jn(e,t,n,r,a,i,o){switch(n){case qn:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Vn:return!(e.byteLength!=t.byteLength||!i(new wn(e),new wn(t)));case Rn:case En:case Ln:return at(+e,+t);case Kn:return e.name==t.name&&e.message==t.message;case Bn:case Nn:return e==t+"";case Hn:var l=Fn;case In:var s=r&Tn;if(l||(l=Pn),e.size!=t.size&&!s)return!1;var c=o.get(e);if(c)return c==t;r|=zn,o.set(e,t);var h=Wn(l(e),l(t),r,a,i,o);return o.delete(e),h;case Un:if(Gn)return Gn.call(e)==Gn.call(t)}return!1}var Xn=1,Zn=Object.prototype,Yn=Zn.hasOwnProperty;function ti(e,t,n,r,a,i){var o=n&Xn,l=ln(e),s=l.length;if(s!=ln(t).length&&!o)return!1;for(var c=s;c--;){var h=l[c];if(!(o?h in t:Yn.call(t,h)))return!1}var d=i.get(e),u=i.get(t);if(d&&u)return d==t&&u==e;var b=!0;i.set(e,t),i.set(t,e);for(var _=o;++c<s;){var v=e[h=l[c]],f=t[h];if(r)var p=o?r(f,v,h,t,e,i):r(v,f,h,e,t,i);if(!(void 0===p?v===f||a(v,f,n,r,i):p)){b=!1;break}_||(_="constructor"==h)}if(b&&!_){var y=e.constructor,g=t.constructor;y==g||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof g&&g instanceof g||(b=!1)}return i.delete(e),i.delete(t),b}var ei=1,ni="[object Arguments]",ii="[object Array]",ri="[object Object]",ai=Object.prototype,oi=ai.hasOwnProperty;function li(e,t,n,r,a,i){var o=M(e),l=M(t),s=o?ii:gn(e),c=l?ii:gn(t),h=(s=s==ni?ri:s)==ri,d=(c=c==ni?ri:c)==ri,u=s==c;if(u&&St(e)){if(!St(t))return!1;o=!0,h=!1}if(u&&!h)return i||(i=new Ze),o||re(e)?Wn(e,t,n,r,a,i):Jn(e,t,s,n,r,a,i);if(!(n&ei)){var b=h&&oi.call(e,"__wrapped__"),_=d&&oi.call(t,"__wrapped__");if(b||_){var v=b?e.value():e,f=_?t.value():t;return i||(i=new Ze),a(v,f,n,r,i)}}return!!u&&(i||(i=new Ze),ti(e,t,n,r,a,i))}function si(e,t,n,r,a){return e===t||(null==e||null==t||!x(e)&&!x(t)?e!=e&&t!=t:li(e,t,n,r,si,a))}function ci(e,t){return si(e,t)}const ui=/^\d+(\.\d+)?([a-z]+|%)?$/,fi=(e,t,n)=>{h(e,"_minWidth",e=>"string"==typeof e&&ui.test(e),new Set(["String","/^\\d+(\\.\\d+)?([a-z]+|%)?$/"]),t,n)},di=class{constructor(n){t(this,n),this.translateNoEntries=c("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=c("kol-sort"),this.tableDivElementHasScrollbar=!1,this.renderTableRow=(t,n,a,i=!1)=>{var o,l;let s=String(n);return this.horizontal&&(null===(o=t[0])||void 0===o?void 0:o.data)&&(s=null!==(l=this.getDataKey(t[0].data))&&void 0!==l?l:s),e("tr",{class:r("kol-table__row",{"kol-table__row--body":!i,"kol-table__row--footer":i}),key:`row-${s}`},this.renderSelectionCell(t,n),t.map((e,t)=>this.renderTableCell(e,n,t,a)))},this.renderTableCell=(t,n,a,i)=>{const o=this.getColumnSettings(t);if(o&&!o.visible)return"";let l=`${n}-${a}-${t.label}`;if(t.data){const e=this.getDataKey(t.data);l=e?`${e}-${this.horizontal?a:n}`:l}if(t.headerCell)return this.renderHeadingCell(t,n,a,i);{const n="function"!=typeof t.render&&t.label===this.translateNoEntries;return e("td",{key:`cell-${l}`,class:r("kol-table__cell kol-table__cell--body",{[`kol-table__cell--align-${t.textAlign}`]:t.textAlign}),"aria-atomic":n?"false":void 0,"aria-live":n?"polite":void 0,"aria-relevant":n?"text":void 0,colSpan:t.colSpan,rowSpan:t.rowSpan,style:{textAlign:t.textAlign,width:(null==o?void 0:o.width)?`${o.width}ch`:t.width},ref:"function"==typeof t.render?e=>{this.cellRender(t,e)}:void 0},"function"!=typeof t.render?t.label:"")}}}validateHasSettingsMenu(e){b(this,e)}validateData(e){_(this,e,{beforePatch:e=>{this.updateDataToKeyMap(e)}})}validateDataFoot(e){y(this,e)}validateHeaderCells(e){F(this,e),ci(this.previousHeaderCells,this.state._headerCells)||this.initializeTableSettings(),this.previousHeaderCells=this.state._headerCells}validateLabel(e){m(this,e,{required:!0})}validateMinWidth(e){fi(this,e)}validateOn(e){p(this,e)}validateSelection(e){k(this,e)}validateTableSettings(e){j(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:n,resizable:r,sortable:a,visible:i,width:o})=>({hidable:!1!==e,key:null!=t?t:w(),label:n,resizable:!1!==r,sortable:!1!==a,visible:!1!==i,width:o}))})}handleKeyDown(e){var t;if("ArrowUp"===e.key||"ArrowDown"===e.key){const n=null===(t=this.tableDivElement)||void 0===t?void 0:t.querySelector(":focus");let r=this.checkboxRefs.indexOf(n);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){v(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,w())}),this.dataToKeyMap.forEach((t,n)=>{e.includes(n)||this.dataToKeyMap.delete(n)})}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 n=e.render(t,e,e.data,this.state._data);"string"==typeof n&&(t.textContent=n)}})))}getNumberOfCols(e,t){let n=0;return e.forEach(e=>{let t=0;Array.isArray(e)&&e.forEach(e=>{var n;return t+=null!==(n=e.colSpan)&&void 0!==n?n:1}),n<t&&(n=t)}),0===n&&(n=t.length),n}getNumberOfRows(e,t){var n;let r=0;return e.forEach(e=>{let t=0;Array.isArray(e)&&e.forEach(e=>{var n;return t+=null!==(n=e.rowSpan)&&void 0!==n?n:1}),r<t&&(r=t)}),0===r?r=t.length:r-=(null===(n=this.state._dataFoot)||void 0===n?void 0:n.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,n;let r=this.getThePrimaryHeadersWithKeyOrRenderFunction(null!==(t=e.horizontal)&&void 0!==t?t:[]);return this.horizontal=!0,0===r.length&&(r=this.getThePrimaryHeadersWithKeyOrRenderFunction(null!==(n=e.vertical)&&void 0!==n?n:[]),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,n)=>{t.set(e.key,n)}),t}sortByColumnPosition(e){const t=this.getColumnPositionMap();return e.map((e,t)=>({column:e,index:t})).sort((e,n)=>{var r,a,i,o;const l=null!==(a=t.get(null!==(r=e.column.key)&&void 0!==r?r:""))&&void 0!==a?a:Number.MAX_SAFE_INTEGER,s=null!==(o=t.get(null!==(i=n.column.key)&&void 0!==i?i:""))&&void 0!==o?o:Number.MAX_SAFE_INTEGER;return l!==s?l-s:e.index-n.index}).map(({column:e})=>e)}createDataField(e,t,n){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 a=this.getPrimaryHeaders(t),i=this.getNumberOfCols(t.horizontal,e);let o=this.getNumberOfRows(t.vertical,e),l=0;n&&(l=o,o+=(null===(r=this.state._dataFoot)||void 0===r?void 0:r.length)||0);const s=[],c=[],h=[];t.vertical.forEach((e,t)=>{c[t]=0,h[t]=[]});const d=this.sortByColumnPosition(a);for(let r=l;r<o;r++){const a=[];t.vertical.forEach((e,t)=>{let n=0;if(h[t].forEach(e=>n+=e),n<=r){const i=e[r-n+c[t]];if("object"==typeof i){a.push(Object.assign(Object.assign({},i),{headerCell:!0,data:{}}));let e=1;if("number"==typeof i.rowSpan&&i.rowSpan>1&&(e=i.rowSpan),h[t].push(e),"number"==typeof i.colSpan&&i.colSpan>1)for(let n=1;n<i.colSpan;n++)h[t+n].push(e);c[t]++}}});for(let t=0;t<i;t++)if(!0===this.horizontal){const i=n&&this.state._dataFoot?this.state._dataFoot[r-l]:e[r];"object"!=typeof d[t]||null===d[t]||"object"!=typeof i||null===i||"string"!=typeof d[t].key&&"function"!=typeof d[t].render||a.push(Object.assign(Object.assign({},d[t]),{colSpan:void 0,data:i,label:i[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||a.push(Object.assign(Object.assign({},d[r]),{colSpan:void 0,data:e[t],label:e[t][d[r].key],rowSpan:void 0}));s.push(a)}if(0===e.length){let e=0,n=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=>{n+=e.rowSpan||1}));const r={colSpan:e,label:this.translateNoEntries,render:void 0,rowSpan:Math.max(n,1)};0===s.length?s.push([r]):s[0].push(r)}return s}handleSelectionChangeCallbackAndEvent(e,t){var n;"function"==typeof(null===(n=this.state._on)||void 0===n?void 0:n[g.onSelectionChange])&&this.state._on[g.onSelectionChange](e,t),this.host&&S(this.host,A.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:w(),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(t,n){var i;const l=this.state._selection;if(!l)return"";const s=this.getSelectionKeyPropertyName(),c=null===(i=t[0])||void 0===i?void 0:i.data;if(!c)return"";const h=c[s],d=l.multiple||void 0===l.multiple,u=(()=>{const e=null==l?void 0:l.selectedKeys;return(void 0===e?[]:Array.isArray(e)?e:[e]).some(e=>String(e)===String(h))})(),b=(()=>{const e=null==l?void 0:l.disabledKeys;return(void 0===e?[]:Array.isArray(e)?e:[e]).some(e=>String(e)===String(h))})(),_=l.label(c),v={name:"selection",checked:u,disabled:b,id:String(h),"aria-label":_};return e("td",{key:`tbody-${n}-selection`,class:"kol-table__cell kol-table__cell--selection"},e("div",{class:r("kol-table__selection",{"kol-table__selection--checked":u})},d?e("label",{class:r("kol-table__selection-label",{"kol-table__selection-label--disabled":b})},e(a,{class:"kol-table__selection-icon",_icons:"codicon "+(u?"codicon-check":""),_label:""}),e("input",Object.assign({class:r("kol-table__selection-input kol-table__selection-input--checkbox"),ref:e=>e&&this.checkboxRefs.push(e)},v,{type:"checkbox",onInput:e=>{const t=(()=>{const e=null==l?void 0:l.selectedKeys;return void 0===e?[]:Array.isArray(e)?e:[e]})(),n=u?t.filter(e=>String(e)!==String(h)):[...t,h];this.handleSelectionChangeCallbackAndEvent(e,null!=n?n:[])}}))):e("label",{class:"kol-table__selection-label"},e("input",Object.assign({class:r("kol-table__selection-input kol-table__selection-input--radio")},v,{type:"radio",onInput:e=>{this.handleSelectionChangeCallbackAndEvent(e,h)}}))),e(o,{"aria-hidden":"true",class:"kol-table__selection-input-tooltip",_align:"right",_id:`${h}-label`,_label:_})))}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 n;const r=null===(n=this.state._selection)||void 0===n?void 0:n.disabledKeys;return!(void 0===r?[]:Array.isArray(r)?r:[r]).some(n=>String(n)===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 n=this.getSelectionKeyPropertyName(),r=null!==(t=this.getSelectedKeysWithDisabledKeysOnly())&&void 0!==t?t:[];return e&&r.push(...this.getDataWithSelectionEnabled().map(e=>null==e?void 0:e[n])),r}getTableMinWidth(){var e,t;const n=null!==(t=null===(e=this.state._tableSettings)||void 0===e?void 0:e.columns.filter(e=>e.visible).reduce((e,t)=>{var n;return e+(null!==(n=t.width)&&void 0!==n?n:0)},0))&&void 0!==t?t:0;return"auto"===this.state._minWidth?`${n}ch`:`max(${this.state._minWidth}, ${n}ch)`}renderHeadingSelectionCell(){var t,n;const i=this.state._selection;if(!i)return e("th",{class:"kol-table__cell kol-table__cell--header",key:"thead-0"});if(!1===i.multiple)return e("td",{key:"thead-0-selection",class:"kol-table__cell kol-table__cell--header kol-table__cell--selection"});const l=null!==(n=null===(t=this.getSelectedKeysWithoutDisabledKeys())||void 0===t?void 0:t.length)&&void 0!==n?n:0,s=l===this.getDataWithSelectionEnabled().length,h=0!==l&&!s;let d="kol-table-selection-indeterminate";s&&!h&&(d="kol-table-selection-none"),0===l&&(d="kol-table-selection-all");const u=c(d);return e("th",{key:"thead-0-selection",class:"kol-table__cell kol-table__cell--header kol-table__cell--selection"},e("div",{class:r("kol-table__selection",{"kol-table__selection--indeterminate":h,"kol-table__selection--checked":s})},e("label",{class:"kol-table__selection-label"},e(a,{class:"kol-table__selection-icon",_icons:"codicon "+(h?"codicon-remove":s?"codicon-check":""),_label:""}),e("input",{class:r("kol-table__selection-input kol-table__selection-input--checkbox"),"data-testid":"selection-checkbox-all",ref:e=>e&&this.checkboxRefs.push(e),name:"selection",checked:s&&!h,indeterminate:h,"aria-label":u,type:"checkbox",onInput:e=>{this.handleSelectionChangeCallbackAndEvent(e,this.getRevertedSelection(!s))}})),e(o,{"aria-hidden":"true",class:"kol-table__selection-input-tooltip",_align:"right",_id:`${d}-label`,_label:u})))}renderHeaderTdCell(){return e(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)&&e("td",{"aria-hidden":"true",colSpan:this.state._headerCells.vertical.length,rowSpan:this.state._headerCells.horizontal.length}))}renderHeadingCell(t,n,a,i){const o=this.getColumnSettings(t);if(o&&!o.visible)return"";const s=!1!==(null==o?void 0:o.sortable),c="string"==typeof t.sortDirection,h=s&&c;let d="none",u="codicon codicon-fold";if(h&&t.sortDirection)switch(t.sortDirection){case"ASC":u="codicon codicon-chevron-up",d="ascending";break;case"DESC":u="codicon codicon-chevron-down",d="descending";break;default:d="none"}const b=i?"row":"number"==typeof t.colSpan&&t.colSpan>1?"colgroup":"col";return e("th",{key:`${n}-${a}-${t.label}`,class:r("kol-table__cell kol-table__cell--header",{[`kol-table__cell--align-${t.textAlign}`]:t.textAlign,[`kol-table__cell--${d}`]:d}),scope:b,colSpan:t.colSpan,rowSpan:t.rowSpan,style:{width:(null==o?void 0:o.width)?`${o.width}ch`:t.width},"aria-sort":d,"data-sort":h&&t.sortDirection?`sort-${t.sortDirection}`:void 0},h&&t.sortDirection?e(l,{class:"kol-table__sort-button",exportparts:"icon",_icons:{right:u},_label:t.label,_ariaDescription:this.translateSort,_on:{onClick:e=>{var n;"function"==typeof(null===(n=this.state._on)||void 0===n?void 0:n.onSort)&&t.key&&t.sortDirection&&this.state._on.onSort(e,{key:t.key,currentSortDirection:t.sortDirection}),this.host&&S(this.host,A.sort,{key:t.key,currentSortDirection:t.sortDirection})}}}):t.label)}renderSpacer(t,n){var a,i;const o=(null===(a=this.state._headerCells.vertical)||void 0===a?void 0:a.length)||0,l=null===(i=null==n?void 0:n[0])||void 0===i?void 0:i.reduce((e,t)=>e+(t.colSpan||1),0),s=this.state._selection?1:0;return e("tr",{"aria-hidden":"true",class:r("kol-table__spacer",`kol-table__spacer--${t}`)},e("td",{class:r(`kol-table__spacer-line kol-table__spacer-line--${t}`),colSpan:o+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 e("tfoot",{class:"kol-table__footer"},[this.renderSpacer("foot",t),t.map((e,t)=>this.renderTableRow(e,t,!0,!0))])}render(){var t;const n=this.createDataField(this.state._data,this.state._headerCells);this.checkboxRefs=[];const r=null===(t=this.state._headerCells.horizontal)||void 0===t?void 0:t.map(e=>this.sortByColumnPosition(e));return e("div",{key:"a66eb9f22e8267d1bfcc00b2429b8234e07beb51",class:"kol-table"},this.state._hasSettingsMenu&&e(s,{key:"8c5bfcc3f01813773d07912fcf2fa78455efac06",_tableSettings:this.state._tableSettings}),e("div",{key:"6f9ac777bae4c27c80052aeeae5678ddff56a6bc",ref:e=>this.tableDivElement=e,class:"kol-table__scroll-container",tabindex:this.tableDivElementHasScrollbar?"-1":void 0},e("table",{key:"89710649cdcd7fcca523656de8f8b13fc3d9509f",class:"kol-table__table",style:{minWidth:this.getTableMinWidth()}},e("caption",{key:"0f5550f8377daed2043a18de8c2cdb5b6e45f554",class:"kol-table__focus-element kol-table__caption",id:"caption",tabindex:this.tableDivElementHasScrollbar?"0":void 0},this.state._label),Array.isArray(r)&&e("thead",{key:"83577b101b26b8ee80bc81ccd12526fb78f576c4",class:"kol-table__head"},[r.map((t,n)=>e("tr",{class:"kol-table__head-row",key:`thead-${n}`},this.state._selection&&this.renderHeadingSelectionCell(),0===n&&this.renderHeaderTdCell(),Array.isArray(t)&&t.map((e,t)=>this.renderHeadingCell(e,n,t,!1)))),this.renderSpacer("head",r)]),e("tbody",{key:"6fe763adb26ca11ebea14f035200df42c970d5cd",class:"kol-table__body"},n.map((e,t)=>this.renderTableRow(e,t,!0))),this.renderFoot())))}get host(){return i(this)}static get watchers(){return{_hasSettingsMenu:["validateHasSettingsMenu"],_data:["validateData"],_dataFoot:["validateDataFoot"],_headerCells:["validateHeaderCells"],_label:["validateLabel"],_minWidth:["validateMinWidth"],_on:["validateOn"],_selection:["validateSelection"],_tableSettings:["validateTableSettings"]}}};export{di as kol_table_stateless_wc};
|
|
4
|
+
import{r as t,h as e,F as i,g as n}from"./index-BVfSKhpj.js";import{c as r}from"./clsx-eK3rPvPS.js";import{e as o,a as l,d as a,w as s}from"./component-names-C3fyby67.js";import{t as c}from"./i18n-LBpyQ66X.js";import{O as u,o as h,p as d,w as f,s as v}from"./common-Dd0zJQbD.js";import{b,v as _,a as p,f as y,c as k,e as m}from"./table-settings-DxLvhwRE.js";import{v as j}from"./label-Dnmzb2S_.js";import{C as g}from"./keyboard-D6PoWr38.js";import{n as S}from"./dev.utils-CT0IU26V.js";import{d as w,K as A}from"./events-9-skLO0f.js";import{i as O,c as $,r as D,a as x,f as C,b as M,S as W}from"./isObject-DvSELytj.js";import"./i18n-CfLoIZ8T.js";function P(t){if(!O(t))return!1;var e=$(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var T,z=D["__core-js_shared__"],F=(T=/[^.]+$/.exec(z&&z.keys&&z.keys.IE_PROTO||""))?"Symbol(src)_1."+T:"",K=Function.prototype.toString;function H(t){if(null!=t){try{return K.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var L=/^\[object .+?Constructor\]$/,R=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function E(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!O(t)||(e=t,F&&F in e))&&(P(t)?R:L).test(H(t));var e}(r)?r:void 0}var B=E(D,"WeakMap"),N=/^(?:0|[1-9]\d*)$/;function I(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&N.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 q(t){return x(t)&&"[object Arguments]"==$(t)}var G=Object.prototype,J=G.hasOwnProperty,X=G.propertyIsEnumerable,Z=q(function(){return arguments}())?q:function(t){return x(t)&&J.call(t,"callee")&&!X.call(t,"callee")},Y="object"==typeof exports&&exports&&!exports.nodeType&&exports,tt=Y&&"object"==typeof module&&module&&!module.nodeType&&module,et=tt&&tt.exports===Y?D.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,ot="object"==typeof exports&&exports&&!exports.nodeType&&exports,lt=ot&&"object"==typeof module&&module&&!module.nodeType&&module,at=lt&<.exports===ot&&C.process,st=function(){try{return lt&<.require&<.require("util").types||at&&at.binding&&at.binding("util")}catch(t){}}(),ct=st&&st.isTypedArray,ut=ct?(rt=ct,function(t){return rt(t)}):function(t){return x(t)&&U(t.length)&&!!nt[$(t)]},ht=Object.prototype.hasOwnProperty,dt=function(t,e){return function(r){return t(e(r))}}(Object.keys,Object),ft=Object.prototype.hasOwnProperty;function vt(t){return null!=(e=t)&&U(e.length)&&!P(e)?function(t){var e=M(t),r=!e&&Z(t),a=!e&&!r&&it(t),n=!e&&!r&&!a&&ut(t),i=e||r||a||n,o=i?function(t,e){for(var r=-1,a=Array(t);++r<t;)a[r]=e(r);return a}(t.length,String):[],l=o.length;for(var s in t)!ht.call(t,s)||i&&("length"==s||a&&("offset"==s||"parent"==s)||n&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||I(s,l))||o.push(s);return o}(t):function(t){if((e=t)!==("function"==typeof(r=e&&e.constructor)&&r.prototype||Q))return dt(t);var e,r,a=[];for(var n in Object(t))ft.call(t,n)&&"constructor"!=n&&a.push(n);return a}(t);var e}var bt=E(Object,"create"),_t=Object.prototype.hasOwnProperty,pt=Object.prototype.hasOwnProperty;function yt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var a=t[e];this.set(a[0],a[1])}}function kt(t,e){for(var r=t.length;r--;)if(V(t[r][0],e))return r;return-1}yt.prototype.clear=function(){this.__data__=bt?bt(null):{},this.size=0},yt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},yt.prototype.get=function(t){var e=this.__data__;if(bt){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return _t.call(e,t)?e[t]:void 0},yt.prototype.has=function(t){var e=this.__data__;return bt?void 0!==e[t]:pt.call(e,t)},yt.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=bt&&void 0===e?"__lodash_hash_undefined__":e,this};var mt=Array.prototype.splice;function jt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var a=t[e];this.set(a[0],a[1])}}jt.prototype.clear=function(){this.__data__=[],this.size=0},jt.prototype.delete=function(t){var e=this.__data__,r=kt(e,t);return!(r<0||(r==e.length-1?e.pop():mt.call(e,r,1),--this.size,0))},jt.prototype.get=function(t){var e=this.__data__,r=kt(e,t);return r<0?void 0:e[r][1]},jt.prototype.has=function(t){return kt(this.__data__,t)>-1},jt.prototype.set=function(t,e){var r=this.__data__,a=kt(r,t);return a<0?(++this.size,r.push([t,e])):r[a][1]=e,this};var gt=E(D,"Map");function St(t,e){var r,a,n=t.__data__;return("string"==(a=typeof(r=e))||"number"==a||"symbol"==a||"boolean"==a?"__proto__"!==r:null===r)?n["string"==typeof e?"string":"hash"]:n.map}function wt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var a=t[e];this.set(a[0],a[1])}}function At(t){var e=this.__data__=new jt(t);this.size=e.size}wt.prototype.clear=function(){this.size=0,this.__data__={hash:new yt,map:new(gt||jt),string:new yt}},wt.prototype.delete=function(t){var e=St(this,t).delete(t);return this.size-=e?1:0,e},wt.prototype.get=function(t){return St(this,t).get(t)},wt.prototype.has=function(t){return St(this,t).has(t)},wt.prototype.set=function(t,e){var r=St(this,t),a=r.size;return r.set(t,e),this.size+=r.size==a?0:1,this},At.prototype.clear=function(){this.__data__=new jt,this.size=0},At.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},At.prototype.get=function(t){return this.__data__.get(t)},At.prototype.has=function(t){return this.__data__.has(t)},At.prototype.set=function(t,e){var r=this.__data__;if(r instanceof jt){var a=r.__data__;if(!gt||a.length<199)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new wt(a)}return r.set(t,e),this.size=r.size,this};var Ot=Object.prototype.propertyIsEnumerable,$t=Object.getOwnPropertySymbols,Dt=$t?function(t){return null==t?[]:(t=Object(t),function(e){for(var r=-1,a=null==e?0:e.length,n=0,i=[];++r<a;){var o=e[r];Ot.call(t,o)&&(i[n++]=o)}return i}($t(t)))}:function(){return[]};function xt(t){return function(t,e,r){var a=vt(t);return M(t)?a:function(t,e){for(var r=-1,a=e.length,n=t.length;++r<a;)t[n+r]=e[r];return t}(a,r(t))}(t,0,Dt)}var Ct=E(D,"DataView"),Mt=E(D,"Promise"),Wt=E(D,"Set"),Pt="[object Map]",Tt="[object Promise]",zt="[object Set]",Ft="[object WeakMap]",Kt="[object DataView]",Ht=H(Ct),Lt=H(gt),Rt=H(Mt),Et=H(Wt),Bt=H(B),Nt=$;(Ct&&Nt(new Ct(new ArrayBuffer(1)))!=Kt||gt&&Nt(new gt)!=Pt||Mt&&Nt(Mt.resolve())!=Tt||Wt&&Nt(new Wt)!=zt||B&&Nt(new B)!=Ft)&&(Nt=function(t){var e=$(t),r="[object Object]"==e?t.constructor:void 0,a=r?H(r):"";if(a)switch(a){case Ht:return Kt;case Lt:return Pt;case Rt:return Tt;case Et:return zt;case Bt:return Ft}return e});var It=D.Uint8Array;function Vt(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new wt;++e<r;)this.add(t[e])}function Ut(t,e){for(var r=-1,a=null==t?0:t.length;++r<a;)if(e(t[r],r,t))return!0;return!1}function Qt(t,e,r,a,n,i){var o=1&r,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&r?new Vt:void 0;for(i.set(t,e),i.set(e,t);++d<l;){var _=t[d],f=e[d];if(a)var p=o?a(f,_,d,e,t,i):a(_,f,d,t,e,i);if(void 0!==p){if(p)continue;u=!1;break}if(b){if(!Ut(e,function(t,e){if(!b.has(e)&&(_===t||n(_,t,r,a,i)))return b.push(e)})){u=!1;break}}else if(_!==f&&!n(_,f,r,a,i)){u=!1;break}}return i.delete(t),i.delete(e),u}function qt(t){var e=-1,r=Array(t.size);return t.forEach(function(t,a){r[++e]=[a,t]}),r}function Gt(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}Vt.prototype.add=Vt.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Vt.prototype.has=function(t){return this.__data__.has(t)};var Jt=W?W.prototype:void 0,Xt=Jt?Jt.valueOf:void 0,Zt=Object.prototype.hasOwnProperty,Yt="[object Arguments]",te="[object Array]",ee="[object Object]",ie=Object.prototype.hasOwnProperty;function ne(t,e,r,a,n){return t===e||(null==t||null==e||!x(t)&&!x(e)?t!=t&&e!=e:function(t,e,r,a,n,i){var o=M(t),l=M(e),s=o?te:Nt(t),c=l?te:Nt(e),h=(s=s==Yt?ee:s)==ee,d=(c=c==Yt?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 At),o||ut(t)?Qt(t,e,r,a,n,i):function(t,e,r,a,n,i,o){switch(r){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 It(t),new It(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=qt;case"[object Set]":if(l||(l=Gt),t.size!=e.size&&!(1&a))return!1;var s=o.get(t);if(s)return s==e;a|=2,o.set(t,e);var c=Qt(l(t),l(e),a,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,r,a,n,i);if(!(1&r)){var b=h&&ie.call(t,"__wrapped__"),_=d&&ie.call(e,"__wrapped__");if(b||_){var f=b?t.value():t,p=_?e.value():e;return i||(i=new At),n(f,p,r,a,i)}}return!!u&&(i||(i=new At),function(t,e,r,a,n,i){var o=1&r,l=xt(t),s=l.length;if(s!=xt(e).length&&!o)return!1;for(var c=s;c--;){var h=l[c];if(!(o?h in e:Zt.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]],p=e[h];if(a)var v=o?a(p,f,h,e,t,i):a(f,p,h,t,e,i);if(!(void 0===v?f===p||n(f,p,r,a,i):v)){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,r,a,n,i))}(t,e,r,a,ne,n))}const re=/^\d+(\.\d+)?([a-z]+|%)?$/,oe=class{constructor(a){t(this,a),this.translateNoEntries=c("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=c("kol-sort"),this.tableDivElementHasScrollbar=!1,this.renderTableRow=(t,a,n,i=!1)=>{var o,l;let s=String(a);return this.horizontal&&(null===(o=t[0])||void 0===o?void 0:o.data)&&(s=null!==(l=this.getDataKey(t[0].data))&&void 0!==l?l:s),e("tr",{class:r("kol-table__row",{"kol-table__row--body":!i,"kol-table__row--footer":i}),key:`row-${s}`},this.renderSelectionCell(t,a),t.map((t,e)=>this.renderTableCell(t,a,e,n)))},this.renderTableCell=(t,a,n,i)=>{const o=this.getColumnSettings(t);if(o&&!o.visible)return"";let l=`${a}-${n}-${t.label}`;if(t.data){const e=this.getDataKey(t.data);l=e?`${e}-${this.horizontal?n:a}`:l}if(t.headerCell)return this.renderHeadingCell(t,a,n,i);{const a="function"!=typeof t.render&&t.label===this.translateNoEntries;return e("td",{key:`cell-${l}`,class:r("kol-table__cell kol-table__cell--body",{[`kol-table__cell--align-${t.textAlign}`]:t.textAlign}),"aria-atomic":a?"false":void 0,"aria-live":a?"polite":void 0,"aria-relevant":a?"text":void 0,colSpan:t.colSpan,rowSpan:t.rowSpan,style:{textAlign:t.textAlign,width:(null==o?void 0:o.width)?`${o.width}ch`:t.width},ref:"function"==typeof t.render?e=>{this.cellRender(t,e)}:void 0},"function"!=typeof t.render?t.label:"")}}}validateHasSettingsMenu(t){b(this,t)}validateData(t){_(this,t,{beforePatch:t=>{this.updateDataToKeyMap(t)}})}validateDataFoot(t){p(this,t)}validateHeaderCells(t){((t,e)=>{u(e,()=>{h(e,()=>{try{e=d(e)}catch(t){}f(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){j(this,t,{required:!0})}validateMinWidth(t){((t,e)=>{f(this,"_minWidth",t=>"string"==typeof t&&re.test(t),new Set(["String","/^\\d+(\\.\\d+)?([a-z]+|%)?$/"]),e,void 0)})(0,t)}validateOn(t){y(this,t)}validateSelection(t){k(this,t)}validateTableSettings(t){m(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:r,resizable:a,sortable:n,visible:i,width:o})=>({hidable:!1!==t,key:null!=e?e:S(),label:r,resizable:!1!==a,sortable:!1!==n,visible:!1!==i,width:o}))})}handleKeyDown(t){var e;if("ArrowUp"===t.key||"ArrowDown"===t.key){const r=null===(e=this.tableDivElement)||void 0===e?void 0:e.querySelector(":focus");let a=this.checkboxRefs.indexOf(r);a>-1&&(t.preventDefault(),"ArrowDown"===t.key?(a=(a+1)%this.checkboxRefs.length,this.checkboxRefs[a].focus()):"ArrowUp"===t.key&&(t.preventDefault(),a=(a+this.checkboxRefs.length-1)%this.checkboxRefs.length,this.checkboxRefs[a].focus()))}}componentDidRender(){this.checkDivElementScrollbar()}componentDidLoad(){this.tableDivElement&&ResizeObserver&&(this.tableDivElementResizeObserver=new ResizeObserver(this.checkDivElementScrollbar.bind(this)),this.tableDivElementResizeObserver.observe(this.tableDivElement))}handleSettingsChange(t){v(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,r)=>{t.includes(r)||this.dataToKeyMap.delete(r)})}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 r=t.render(e,t,t.data,this.state._data);"string"==typeof r&&(e.textContent=r)}})))}getNumberOfCols(t,e){let r=0;return t.forEach(t=>{let e=0;Array.isArray(t)&&t.forEach(t=>{var r;return e+=null!==(r=t.colSpan)&&void 0!==r?r:1}),r<e&&(r=e)}),0===r&&(r=e.length),r}getNumberOfRows(t,e){var r;let a=0;return t.forEach(t=>{let e=0;Array.isArray(t)&&t.forEach(t=>{var r;return e+=null!==(r=t.rowSpan)&&void 0!==r?r:1}),a<e&&(a=e)}),0===a?a=e.length:a-=(null===(r=this.state._dataFoot)||void 0===r?void 0:r.length)||0,a}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,r;let a=this.getThePrimaryHeadersWithKeyOrRenderFunction(null!==(e=t.horizontal)&&void 0!==e?e:[]);return this.horizontal=!0,0===a.length&&(a=this.getThePrimaryHeadersWithKeyOrRenderFunction(null!==(r=t.vertical)&&void 0!==r?r:[]),a.length>0&&(this.horizontal=!1)),a}getColumnPositionMap(){var t;const e=new Map;return null===(t=this.state._tableSettings)||void 0===t||t.columns.forEach((t,r)=>{e.set(t.key,r)}),e}sortByColumnPosition(t){const e=this.getColumnPositionMap();return t.map((t,e)=>({column:t,index:e})).sort((t,r)=>{var a,n,i,o;const l=null!==(n=e.get(null!==(a=t.column.key)&&void 0!==a?a:""))&&void 0!==n?n:Number.MAX_SAFE_INTEGER,s=null!==(o=e.get(null!==(i=r.column.key)&&void 0!==i?i:""))&&void 0!==o?o:Number.MAX_SAFE_INTEGER;return l!==s?l-s:t.index-r.index}).map(({column:t})=>t)}createDataField(t,e,r){var a;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;r&&(l=o,o+=(null===(a=this.state._dataFoot)||void 0===a?void 0:a.length)||0);const s=[],c=[],h=[];e.vertical.forEach((t,e)=>{c[e]=0,h[e]=[]});const d=this.sortByColumnPosition(n);for(let a=l;a<o;a++){const n=[];e.vertical.forEach((t,e)=>{let r=0;if(h[e].forEach(t=>r+=t),r<=a){const i=t[a-r+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 r=1;r<i.colSpan;r++)h[e+r].push(t);c[e]++}}});for(let e=0;e<i;e++)if(!0===this.horizontal){const i=r&&this.state._dataFoot?this.state._dataFoot[a-l]:t[a];"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[a]||null===d[a]||"object"!=typeof t[e]||null===t[e]||"string"!=typeof d[a].key&&"function"!=typeof d[a].render||n.push(Object.assign(Object.assign({},d[a]),{colSpan:void 0,data:t[e],label:t[e][d[a].key],rowSpan:void 0}));s.push(n)}if(0===t.length){let t=0,r=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=>{r+=t.rowSpan||1}));const a={colSpan:t,label:this.translateNoEntries,render:void 0,rowSpan:Math.max(r,1)};0===s.length?s.push([a]):s[0].push(a)}return s}handleSelectionChangeCallbackAndEvent(t,e){var r;"function"==typeof(null===(r=this.state._on)||void 0===r?void 0:r[g.onSelectionChange])&&this.state._on[g.onSelectionChange](t,e),this.host&&w(this.host,A.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,a){var n;const i=this.state._selection;if(!i)return"";const s=this.getSelectionKeyPropertyName(),c=null===(n=t[0])||void 0===n?void 0:n.data;if(!c)return"";const h=c[s],d=i.multiple||void 0===i.multiple,u=(()=>{const t=null==i?void 0:i.selectedKeys;return(void 0===t?[]:Array.isArray(t)?t:[t]).some(t=>String(t)===String(h))})(),b=(()=>{const t=null==i?void 0:i.disabledKeys;return(void 0===t?[]:Array.isArray(t)?t:[t]).some(t=>String(t)===String(h))})(),_=i.label(c),f={name:"selection",checked:u,disabled:b,id:String(h),"aria-label":_};return e("td",{key:`tbody-${a}-selection`,class:"kol-table__cell kol-table__cell--selection"},e("div",{class:r("kol-table__selection",{"kol-table__selection--checked":u})},d?e("label",{class:r("kol-table__selection-label",{"kol-table__selection-label--disabled":b})},e(o,{class:"kol-table__selection-icon",_icons:"codicon "+(u?"codicon-check":""),_label:""}),e("input",Object.assign({class:r("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==i?void 0:i.selectedKeys;return void 0===t?[]:Array.isArray(t)?t:[t]})(),r=u?e.filter(t=>String(t)!==String(h)):[...e,h];this.handleSelectionChangeCallbackAndEvent(t,null!=r?r:[])}}))):e("label",{class:"kol-table__selection-label"},e("input",Object.assign({class:r("kol-table__selection-input kol-table__selection-input--radio")},f,{type:"radio",onInput:t=>{this.handleSelectionChangeCallbackAndEvent(t,h)}}))),e(l,{"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 r;const a=null===(r=this.state._selection)||void 0===r?void 0:r.disabledKeys;return!(void 0===a?[]:Array.isArray(a)?a:[a]).some(r=>String(r)===String(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=>String(e)===String(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=>String(e)===String(t)))}getRevertedSelection(t){var e;const r=this.getSelectionKeyPropertyName(),a=null!==(e=this.getSelectedKeysWithDisabledKeysOnly())&&void 0!==e?e:[];return t&&a.push(...this.getDataWithSelectionEnabled().map(t=>null==t?void 0:t[r])),a}getTableMinWidth(){var t,e;const r=null!==(e=null===(t=this.state._tableSettings)||void 0===t?void 0:t.columns.filter(t=>t.visible).reduce((t,e)=>{var r;return t+(null!==(r=e.width)&&void 0!==r?r:0)},0))&&void 0!==e?e:0;return"auto"===this.state._minWidth?`${r}ch`:`max(${this.state._minWidth}, ${r}ch)`}renderHeadingSelectionCell(){var t,a;const n=this.state._selection;if(!n)return e("th",{class:"kol-table__cell kol-table__cell--header",key:"thead-0"});if(!1===n.multiple)return e("td",{key:"thead-0-selection",class:"kol-table__cell kol-table__cell--header kol-table__cell--selection"});const i=null!==(a=null===(t=this.getSelectedKeysWithoutDisabledKeys())||void 0===t?void 0:t.length)&&void 0!==a?a:0,s=i===this.getDataWithSelectionEnabled().length,h=0!==i&&!s;let d="kol-table-selection-indeterminate";s&&!h&&(d="kol-table-selection-none"),0===i&&(d="kol-table-selection-all");const u=c(d);return e("th",{key:"thead-0-selection",class:"kol-table__cell kol-table__cell--header kol-table__cell--selection"},e("div",{class:r("kol-table__selection",{"kol-table__selection--indeterminate":h,"kol-table__selection--checked":s})},e("label",{class:"kol-table__selection-label"},e(o,{class:"kol-table__selection-icon",_icons:"codicon "+(h?"codicon-remove":s?"codicon-check":""),_label:""}),e("input",{class:r("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&&!h,indeterminate:h,"aria-label":u,type:"checkbox",onInput:t=>{this.handleSelectionChangeCallbackAndEvent(t,this.getRevertedSelection(!s))}})),e(l,{"aria-hidden":"true",class:"kol-table__selection-input-tooltip",_align:"right",_id:`${d}-label`,_label:u})))}renderHeaderTdCell(){return e(i,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)&&e("td",{"aria-hidden":"true",colSpan:this.state._headerCells.vertical.length,rowSpan:this.state._headerCells.horizontal.length}))}renderHeadingCell(t,n,i,o){const l=this.getColumnSettings(t);if(l&&!l.visible)return"";const s=!1!==(null==l?void 0:l.sortable)&&"string"==typeof t.sortDirection;let c="none",h="codicon codicon-fold";if(s&&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=o?"row":"number"==typeof t.colSpan&&t.colSpan>1?"colgroup":"col";return e("th",{key:`${n}-${i}-${t.label}`,class:r("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==l?void 0:l.width)?`${l.width}ch`:t.width},"aria-sort":c,"data-sort":s&&t.sortDirection?`sort-${t.sortDirection}`:void 0},s&&t.sortDirection?e(a,{class:"kol-table__sort-button",exportparts:"icon",_icons:{right:h},_label:t.label,_ariaDescription:this.translateSort,_on:{onClick:e=>{var r;"function"==typeof(null===(r=this.state._on)||void 0===r?void 0:r.onSort)&&t.key&&t.sortDirection&&this.state._on.onSort(e,{key:t.key,currentSortDirection:t.sortDirection}),this.host&&w(this.host,A.sort,{key:t.key,currentSortDirection:t.sortDirection})}}}):t.label)}renderSpacer(t,a){var n,i;const o=(null===(n=this.state._headerCells.vertical)||void 0===n?void 0:n.length)||0,l=null===(i=null==a?void 0:a[0])||void 0===i?void 0:i.reduce((t,e)=>t+(e.colSpan||1),0),s=this.state._selection?1:0;return e("tr",{"aria-hidden":"true",class:r("kol-table__spacer",`kol-table__spacer--${t}`)},e("td",{class:r(`kol-table__spacer-line kol-table__spacer-line--${t}`),colSpan:o+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 e("tfoot",{class:"kol-table__footer"},[this.renderSpacer("foot",t),t.map((t,e)=>this.renderTableRow(t,e,!0,!0))])}render(){var t;const r=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 e("div",{key:"a66eb9f22e8267d1bfcc00b2429b8234e07beb51",class:"kol-table"},this.state._hasSettingsMenu&&e(s,{key:"8c5bfcc3f01813773d07912fcf2fa78455efac06",_tableSettings:this.state._tableSettings}),e("div",{key:"6f9ac777bae4c27c80052aeeae5678ddff56a6bc",ref:t=>this.tableDivElement=t,class:"kol-table__scroll-container",tabindex:this.tableDivElementHasScrollbar?"-1":void 0},e("table",{key:"89710649cdcd7fcca523656de8f8b13fc3d9509f",class:"kol-table__table",style:{minWidth:this.getTableMinWidth()}},e("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)&&e("thead",{key:"83577b101b26b8ee80bc81ccd12526fb78f576c4",class:"kol-table__head"},[a.map((t,r)=>e("tr",{class:"kol-table__head-row",key:`thead-${r}`},this.state._selection&&this.renderHeadingSelectionCell(),0===r&&this.renderHeaderTdCell(),Array.isArray(t)&&t.map((t,e)=>this.renderHeadingCell(t,r,e,!1)))),this.renderSpacer("head",a)]),e("tbody",{key:"6fe763adb26ca11ebea14f035200df42c970d5cd",class:"kol-table__body"},r.map((t,e)=>this.renderTableRow(t,e,!0))),this.renderFoot())))}get host(){return n(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}]}}};export{oe as kol_table_stateless_wc};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{r as n,h as e}from"./index-DuOiqRzT.js";import{n as t}from"./component-names-C3fyby67.js";import"./common-Dd0zJQbD.js";const o="@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}",i=class{constructor(e){n(this,e)}render(){return e(t,{key:"0bb344f2ce9af4bfcfe4f075b4a86343b33f275f",_data:this._data,_dataFoot:this._dataFoot,_headerCells:this._headerCells,_label:this._label,_minWidth:this._minWidth,_on:this._on,_selection:this._selection,_tableSettings:this._tableSettings,_hasSettingsMenu:this._hasSettingsMenu})}};i.style={default:o};export{i as kol_table_stateless};
|
|
4
|
+
import{r as o,h as t}from"./index-BVfSKhpj.js";import{n as e}from"./component-names-C3fyby67.js";import"./common-Dd0zJQbD.js";const i=class{constructor(t){o(this,t)}render(){return t(e,{key:"0bb344f2ce9af4bfcfe4f075b4a86343b33f275f",_data:this._data,_dataFoot:this._dataFoot,_headerCells:this._headerCells,_label:this._label,_minWidth:this._minWidth,_on:this._on,_selection:this._selection,_tableSettings:this._tableSettings,_hasSettingsMenu:this._hasSettingsMenu})}};i.style={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; } } }'};export{i as kol_table_stateless};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{r as t,h as n,g as e}from"./index-DuOiqRzT.js";import{w as i,d as o,j as s,s as a,N as l,H as r,I as d,P as h}from"./common-Dd0zJQbD.js";import{v as c}from"./align-D-ifSKu8.js";import{v as u}from"./label-Dnmzb2S_.js";import{c as f}from"./clsx-eK3rPvPS.js";import{d as b}from"./component-names-C3fyby67.js";import{t as p}from"./i18n-LBpyQ66X.js";import{K as m}from"./keyboard-D6PoWr38.js";import{d as g,K as y}from"./events-9-skLO0f.js";import"./i18n-CfLoIZ8T.js";const v=["select-automatic","select-manual"],k=(t,e)=>{i(t,"_behavior",t=>"string"==typeof t&&v.includes(t),new Set([`KoliBriTabBehavior {${v.join(", ")}`]),e)},_=(t,e)=>{o(t,"_hasCreateButton",e)},w="/* forward the rem function */\n/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\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-tabs {\n display: var(--display);\n grid-template-columns: var(--grid-template-columns);\n grid-template-rows: var(--grid-template-rows);\n }\n .kol-tabs--align-right {\n --display: grid;\n --grid-template-columns: 1fr auto;\n --button-group-flex-direction: column;\n --button-group-order: 2;\n }\n .kol-tabs--align-left {\n --display: grid;\n --grid-template-columns: auto 1fr;\n --button-group-flex-direction: column;\n --button-group-order: 0;\n }\n .kol-tabs--align-bottom {\n --display: grid;\n --grid-template-rows: 1fr auto;\n --button-group-order: 2;\n }\n .kol-tabs__tabs-align-top {\n --display: grid;\n --grid-template-rows: auto 1fr;\n --button-group-order: 0;\n }\n .kol-tabs__button-group {\n display: flex;\n order: var(--button-group-order);\n flex-direction: var(--button-group-flex-direction);\n flex-wrap: wrap;\n }\n .kol-tabs__button-group .kol-button {\n border-bottom-color: transparent;\n display: block;\n border-bottom-style: solid;\n }\n .kol-tabs__panel {\n height: 100%;\n }\n}",x=class{constructor(e){t(this,e),this.onCreateLabel=`${p("kol-new")} …`,this.nextPossibleTabIndex=(t,e,n=1)=>{const o=e+n;return o<t.length?t[o]._disabled?this.nextPossibleTabIndex(t,e,n+1):o:e},this.prevPossibleTabIndex=(t,e,n=1)=>{const o=e-n;return o>=0?t[o]._disabled?this.prevPossibleTabIndex(t,e,n+1):o:e},this.onKeyDown=t=>{switch(t.key){case m.ArrowRight:this.goToNextTab(t);break;case m.ArrowLeft:this.goToPreviousTab(t);break;case m.Space:case m.Enter:this.activateFocusedTab(t)}},this.onClickSelect=(t,e)=>{this.selectNextTabEvent(t,e)},this.onMouseDown=t=>{t.preventDefault()},this.callbacks={onClick:this.onClickSelect,onMouseDown:this.onMouseDown},this.catchTabPanelHost=t=>{this.tabPanelHost=t},this._align="top",this._hasCreateButton=!1,this._selected=0,this.state={_align:"top",_label:"",_selected:0,_tabs:[]},this.selectNextNotDisabledTab=(t,e,n=!0,o)=>{if(t>e.length-1&&(t=e.length-1),t<0&&(t=0),Array.isArray(e)&&e[t]&&e[t]._disabled){if(!0===n){if(t<e.length-1)return this.selectNextNotDisabledTab(t+1,e,!0,o||t);t=o||t,n=!1}if(!1===n){if(t>0)return this.selectNextNotDisabledTab(t-1,e,!1,o||t);s("[KolTabs] All tabs are disabled, and therefore no tab can be displayed.")}}return t},this.syncSelectedAndTabs=(t,e,n,o)=>{let i,a;i="_selected"===o?t:this.state._selected,a="_tabs"===o?t:this.state._tabs,a.length>0&&e.set("_selected",this.selectNextNotDisabledTab(i,a))},this.refreshTabPanels=()=>{var t,e,n,o;if(this.tabPanelHost){for(;this.tabPanelHost.firstChild;)this.tabPanelHost.removeChild(this.tabPanelHost.firstChild);for(let i=0;i<(null===(t=this.state._tabs)||void 0===t?void 0:t.length);i++){const t=document.createElement("div");t.setAttribute("aria-labelledby",`${this.state._label.replace(/\s/g,"-")}-tab-${i}`),t.setAttribute("id",`tabpanel-${i}`),t.setAttribute("role","tabpanel"),t.setAttribute("hidden","");const a=document.createElement("slot");a.setAttribute("name",`tabpanel-slot-${i}`),t.appendChild(a),null===(e=this.tabPanelHost)||void 0===e||e.appendChild(t),"undefined"!=typeof HTMLCollection&&(null===(n=this.host)||void 0===n?void 0:n.children)instanceof HTMLCollection&&(null===(o=this.host)||void 0===o?void 0:o.children[i])&&this.host.children[i].setAttribute("slot",`tabpanel-slot-${i}`)}this.updateVisiblePanel()}},this.updateVisiblePanel=()=>{this.tabPanelHost&&Array.from(this.tabPanelHost.children).forEach((t,e)=>{e===this.state._selected?t.removeAttribute("hidden"):t.setAttribute("hidden","")})},this.onCreate=t=>{var e,n;t.preventDefault(),null===(n=null===(e=this.state._on)||void 0===e?void 0:e.onCreate)||void 0===n||n.call(e,t),this.host&&g(this.host,y.create)},this.onBlur=()=>{this.currentFocusIndex=void 0}}getCurrentFocusIndex(){return"number"==typeof this.currentFocusIndex?this.currentFocusIndex:this.state._selected}getKeyboardTabChangeMode(){return"select-manual"===this._behavior?"selectFocusOnly":"activateCompletely"}goToNextTab(t){const e=this.nextPossibleTabIndex(this.state._tabs,this.getCurrentFocusIndex());this.selectNextTabEvent(t,e,this.getKeyboardTabChangeMode())}goToPreviousTab(t){const e=this.prevPossibleTabIndex(this.state._tabs,this.getCurrentFocusIndex());this.selectNextTabEvent(t,e,this.getKeyboardTabChangeMode())}activateFocusedTab(t){"number"==typeof this.currentFocusIndex&&this.onSelect(t,this.currentFocusIndex)}selectNextTabEvent(t,e,n="activateCompletely"){var o,i;if(this.currentFocusIndex=e,this.focusTabById(e),"activateCompletely"===n){this._selected=e;null===(i=null===(o=this.state._tabs[e]._on)||void 0===o?void 0:o.onSelect)||void 0===i||i.call(o,t,e),this.onSelect(t,e)}}renderButtonGroup(){return n("div",{"aria-label":this.state._label,class:"kol-tabs__button-group",role:"tablist",onKeyDown:this.onKeyDown,onBlur:this.onBlur},this.state._tabs.map((t,e)=>n(b,{_disabled:t._disabled,_icons:t._icons,_hideLabel:t._hideLabel,_label:t._label,_on:this.callbacks,_tabIndex:this.state._selected===e?0:-1,_tooltipAlign:t._tooltipAlign,_buttonVariant:this.state._selected===e?"custom":void 0,_customClass:this.state._selected===e?"selected":void 0,_ariaControls:`tabpanel-${e}`,_ariaSelected:this.state._selected===e,_id:`${this.state._label.replace(/\s/g,"-")}-tab-${e}`,_role:"tab",_value:e})),this.state._hasCreateButton&&n(b,{class:"kol-tabs__button-create",_label:this.onCreateLabel,_on:{onClick:this.onCreate},_icons:"codicon codicon-plus","data-testid":"tabs-create-button"}))}render(){return n("div",{key:"5ff105f158763851589016d153653f9082038b09",ref:t=>{this.tabPanelsElement=t},class:f("kol-tabs",`kol-tabs--align-${this.state._align}`)},this.renderButtonGroup(),n("div",{key:"f474721466208ada0a986ba4e00863b025195fb4",class:"kol-tabs__content",ref:this.catchTabPanelHost}))}validateAlign(t){c(this,t)}validateBehavior(t){k(this,t)}validateHasCreateButton(t){_(this,t)}validateLabel(t){u(this,t,{required:!0})}validateOn(t){if("object"==typeof t&&null!==t){const e={};"function"==typeof t.onCreate&&(e.onCreate=t.onCreate),"function"==typeof t.onSelect&&(e.onSelect=t.onSelect),a(this,"_on",e)}}validateSelected(t){l(this,"_selected",t,{hooks:{beforePatch:this.syncSelectedAndTabs}})}validateTabs(t){r(this,"_tabs",t=>"object"==typeof t&&null!==t&&"string"==typeof t._label&&t._label.length>0,t,void 0,{hooks:{beforePatch:this.syncSelectedAndTabs,afterPatch:this.refreshTabPanels}}),d("KolTabs",this.state._tabs.length)}componentWillLoad(){this.validateAlign(this._align),this.validateLabel(this._label),this.validateOn(this._on),this.validateSelected(this._selected),this.validateTabs(this._tabs),this.validateBehavior(this._behavior),this.validateHasCreateButton(this._hasCreateButton)}componentDidRender(){this.refreshTabPanels()}focusTabById(t){if(this.tabPanelsElement){const e=h(`button#${this.state._label.replace(/\s/g,"-")}-tab-${t}`,this.tabPanelsElement);null==e||e.focus()}}onSelect(t,e){var n,o;null===(o=null===(n=this._on)||void 0===n?void 0:n.onSelect)||void 0===o||o.call(n,t,e),this.host&&g(this.host,y.select,e),this.focusTabById(e)}get host(){return e(this)}static get watchers(){return{_align:["validateAlign"],_behavior:["validateBehavior"],_hasCreateButton:["validateHasCreateButton"],_label:["validateLabel"],_on:["validateOn"],_selected:["validateSelected"],_tabs:["validateTabs"]}}};x.style={default:w};export{x as kol_tabs};
|
|
4
|
+
import{r as t,h as i,g as o}from"./index-BVfSKhpj.js";import{w as e,d as a,j as s,s as l,N as n,H as r,I as h,P as d}from"./common-Dd0zJQbD.js";import{v as c}from"./align-D-ifSKu8.js";import{v as b}from"./label-Dnmzb2S_.js";import{c as p}from"./clsx-eK3rPvPS.js";import{d as u}from"./component-names-C3fyby67.js";import{t as f}from"./i18n-LBpyQ66X.js";import{K as m}from"./keyboard-D6PoWr38.js";import{d as g,K as v}from"./events-9-skLO0f.js";import"./i18n-CfLoIZ8T.js";const k=["select-automatic","select-manual"],y=class{constructor(e){t(this,e),this.onCreateLabel=`${f("kol-new")} …`,this.nextPossibleTabIndex=(t,e,a=1)=>{const o=e+a;return o<t.length?t[o]._disabled?this.nextPossibleTabIndex(t,e,a+1):o:e},this.prevPossibleTabIndex=(t,e,a=1)=>{const o=e-a;return o>=0?t[o]._disabled?this.prevPossibleTabIndex(t,e,a+1):o:e},this.onKeyDown=t=>{switch(t.key){case m.ArrowRight:this.goToNextTab(t);break;case m.ArrowLeft:this.goToPreviousTab(t);break;case m.Space:case m.Enter:this.activateFocusedTab(t)}},this.onClickSelect=(t,e)=>{this.selectNextTabEvent(t,e)},this.onMouseDown=t=>{t.preventDefault()},this.callbacks={onClick:this.onClickSelect,onMouseDown:this.onMouseDown},this.catchTabPanelHost=t=>{this.tabPanelHost=t},this._align="top",this._hasCreateButton=!1,this._selected=0,this.state={_align:"top",_label:"",_selected:0,_tabs:[]},this.selectNextNotDisabledTab=(t,e,a=!0,o)=>{if(t>e.length-1&&(t=e.length-1),t<0&&(t=0),Array.isArray(e)&&e[t]&&e[t]._disabled){if(!0===a){if(t<e.length-1)return this.selectNextNotDisabledTab(t+1,e,!0,o||t);t=o||t,a=!1}if(!1===a){if(t>0)return this.selectNextNotDisabledTab(t-1,e,!1,o||t);s("[KolTabs] All tabs are disabled, and therefore no tab can be displayed.")}}return t},this.syncSelectedAndTabs=(t,e,a,o)=>{let i,s;i="_selected"===o?t:this.state._selected,s="_tabs"===o?t:this.state._tabs,s.length>0&&e.set("_selected",this.selectNextNotDisabledTab(i,s))},this.refreshTabPanels=()=>{var t,e,a,o;if(this.tabPanelHost){for(;this.tabPanelHost.firstChild;)this.tabPanelHost.removeChild(this.tabPanelHost.firstChild);for(let i=0;i<(null===(t=this.state._tabs)||void 0===t?void 0:t.length);i++){const t=document.createElement("div");t.setAttribute("aria-labelledby",`${this.state._label.replace(/\s/g,"-")}-tab-${i}`),t.setAttribute("id",`tabpanel-${i}`),t.setAttribute("role","tabpanel"),t.setAttribute("hidden","");const s=document.createElement("slot");s.setAttribute("name",`tabpanel-slot-${i}`),t.appendChild(s),null===(e=this.tabPanelHost)||void 0===e||e.appendChild(t),"undefined"!=typeof HTMLCollection&&(null===(a=this.host)||void 0===a?void 0:a.children)instanceof HTMLCollection&&(null===(o=this.host)||void 0===o?void 0:o.children[i])&&this.host.children[i].setAttribute("slot",`tabpanel-slot-${i}`)}this.updateVisiblePanel()}},this.updateVisiblePanel=()=>{this.tabPanelHost&&Array.from(this.tabPanelHost.children).forEach((t,e)=>{e===this.state._selected?t.removeAttribute("hidden"):t.setAttribute("hidden","")})},this.onCreate=t=>{var e,a;t.preventDefault(),null===(a=null===(e=this.state._on)||void 0===e?void 0:e.onCreate)||void 0===a||a.call(e,t),this.host&&g(this.host,v.create)},this.onBlur=()=>{this.currentFocusIndex=void 0}}getCurrentFocusIndex(){return"number"==typeof this.currentFocusIndex?this.currentFocusIndex:this.state._selected}getKeyboardTabChangeMode(){return"select-manual"===this._behavior?"selectFocusOnly":"activateCompletely"}goToNextTab(t){const e=this.nextPossibleTabIndex(this.state._tabs,this.getCurrentFocusIndex());this.selectNextTabEvent(t,e,this.getKeyboardTabChangeMode())}goToPreviousTab(t){const e=this.prevPossibleTabIndex(this.state._tabs,this.getCurrentFocusIndex());this.selectNextTabEvent(t,e,this.getKeyboardTabChangeMode())}activateFocusedTab(t){"number"==typeof this.currentFocusIndex&&this.onSelect(t,this.currentFocusIndex)}selectNextTabEvent(t,e,a="activateCompletely"){var o,i;this.currentFocusIndex=e,this.focusTabById(e),"activateCompletely"===a&&(this._selected=e,null===(i=null===(o=this.state._tabs[e]._on)||void 0===o?void 0:o.onSelect)||void 0===i||i.call(o,t,e),this.onSelect(t,e))}renderButtonGroup(){return i("div",{"aria-label":this.state._label,class:"kol-tabs__button-group",role:"tablist",onKeyDown:this.onKeyDown,onBlur:this.onBlur},this.state._tabs.map((t,e)=>i(u,{_disabled:t._disabled,_icons:t._icons,_hideLabel:t._hideLabel,_label:t._label,_on:this.callbacks,_tabIndex:this.state._selected===e?0:-1,_tooltipAlign:t._tooltipAlign,_buttonVariant:this.state._selected===e?"custom":void 0,_customClass:this.state._selected===e?"selected":void 0,_ariaControls:`tabpanel-${e}`,_ariaSelected:this.state._selected===e,_id:`${this.state._label.replace(/\s/g,"-")}-tab-${e}`,_role:"tab",_value:e})),this.state._hasCreateButton&&i(u,{class:"kol-tabs__button-create",_label:this.onCreateLabel,_on:{onClick:this.onCreate},_icons:"codicon codicon-plus","data-testid":"tabs-create-button"}))}render(){return i("div",{key:"5ff105f158763851589016d153653f9082038b09",ref:t=>{this.tabPanelsElement=t},class:p("kol-tabs",`kol-tabs--align-${this.state._align}`)},this.renderButtonGroup(),i("div",{key:"f474721466208ada0a986ba4e00863b025195fb4",class:"kol-tabs__content",ref:this.catchTabPanelHost}))}validateAlign(t){c(this,t)}validateBehavior(t){((t,a)=>{e(this,"_behavior",t=>"string"==typeof t&&k.includes(t),new Set([`KoliBriTabBehavior {${k.join(", ")}`]),a)})(0,t)}validateHasCreateButton(t){((t,e)=>{a(this,"_hasCreateButton",e)})(0,t)}validateLabel(t){b(this,t,{required:!0})}validateOn(t){if("object"==typeof t&&null!==t){const e={};"function"==typeof t.onCreate&&(e.onCreate=t.onCreate),"function"==typeof t.onSelect&&(e.onSelect=t.onSelect),l(this,"_on",e)}}validateSelected(t){n(this,"_selected",t,{hooks:{beforePatch:this.syncSelectedAndTabs}})}validateTabs(t){r(this,"_tabs",t=>"object"==typeof t&&null!==t&&"string"==typeof t._label&&t._label.length>0,t,void 0,{hooks:{beforePatch:this.syncSelectedAndTabs,afterPatch:this.refreshTabPanels}}),h("KolTabs",this.state._tabs.length)}componentWillLoad(){this.validateAlign(this._align),this.validateLabel(this._label),this.validateOn(this._on),this.validateSelected(this._selected),this.validateTabs(this._tabs),this.validateBehavior(this._behavior),this.validateHasCreateButton(this._hasCreateButton)}componentDidRender(){this.refreshTabPanels()}focusTabById(t){if(this.tabPanelsElement){const e=d(`button#${this.state._label.replace(/\s/g,"-")}-tab-${t}`,this.tabPanelsElement);null==e||e.focus()}}onSelect(t,e){var a,o;null===(o=null===(a=this._on)||void 0===a?void 0:a.onSelect)||void 0===o||o.call(a,t,e),this.host&&g(this.host,v.select,e),this.focusTabById(e)}get host(){return o(this)}static get watchers(){return{_align:[{validateAlign:0}],_behavior:[{validateBehavior:0}],_hasCreateButton:[{validateHasCreateButton:0}],_label:[{validateLabel:0}],_on:[{validateOn:0}],_selected:[{validateSelected:0}],_tabs:[{validateTabs:0}]}}};y.style={default:" @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-tabs { display: var(--display); grid-template-columns: var(--grid-template-columns); grid-template-rows: var(--grid-template-rows); } .kol-tabs--align-right { --display: grid; --grid-template-columns: 1fr auto; --button-group-flex-direction: column; --button-group-order: 2; } .kol-tabs--align-left { --display: grid; --grid-template-columns: auto 1fr; --button-group-flex-direction: column; --button-group-order: 0; } .kol-tabs--align-bottom { --display: grid; --grid-template-rows: 1fr auto; --button-group-order: 2; } .kol-tabs__tabs-align-top { --display: grid; --grid-template-rows: auto 1fr; --button-group-order: 0; } .kol-tabs__button-group { display: flex; order: var(--button-group-order); flex-direction: var(--button-group-flex-direction); flex-wrap: wrap; } .kol-tabs__button-group .kol-button { border-bottom-color: transparent; display: block; border-bottom-style: solid; } .kol-tabs__panel { height: 100%; } }"};export{y as kol_tabs};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as e,r as t,g as n}from"./index-DuOiqRzT.js";import{c as i}from"./clsx-eK3rPvPS.js";import{d as a,c as o,g as s,F as l}from"./FormFieldStateWrapper-CMVWsf1s.js";import{I as r,a as d}from"./controller-icon-DwSibEz-.js";import{_ as h}from"./tslib.es6-CxX45GIN.js";import{w as c,e as m}from"./common-Dd0zJQbD.js";import{n as p}from"./dev.utils-1ts_3yRe.js";import{a as f,v as u,b}from"./max-length-behavior-nTw1Zuyf.js";import{v}from"./placeholder-BVhy3BzI.js";import{v as y}from"./read-only-BetTuumR.js";import{v as g}from"./required-CnTTpFCN.js";import{v as k}from"./rows-DtS-0sp9.js";import{v as _}from"./spell-check-B9ot-4t-.js";import"./access-and-short-key-B37XLwy2.js";import"./disabled-BhpAFgSp.js";import"./hide-label-B9FhGrWP.js";import"./label-Dnmzb2S_.js";import"./tooltip-align-Cnin7S26.js";import"./align-D-ifSKu8.js";import"./events-9-skLO0f.js";import"./associated.controller-B9GDDaFL.js";import"./bootstrap-DcyDkVEo.js";import"./component-names-C3fyby67.js";import"./i18n-CfLoIZ8T.js";import"./isObject-DvSELytj.js";import"./reuse-CX4AQDkS.js";import"./i18n-LBpyQ66X.js";import"./InternalUnderlinedBadgeText-CQHhXGXt.js";import"./Alert-DZ3Qvmx3.js";import"./bem-Dj4gWVFO.js";import"./browser-DiRe0qUf.js";import"./Heading-CLE-Js8a.js";import"./Icon-R0rZZbtD.js";import"./icons-DNTuScEN.js";const w=["vertical","none"],x=e=>"string"==typeof e&&w.includes(e),j=(e,t)=>{c(e,"_resize",x,new Set(w),t,{defaultValue:"vertical"})},z=t=>{const{class:n,msg:l,touched:s,readonly:r,disabled:d,required:c,ariaDescribedBy:m,hideLabel:u,label:p}=t,f=h(t,["class","msg","touched","readonly","disabled","required","ariaDescribedBy","hideLabel","label"]),v=o(l,s),b="string"==typeof l?"error":null==l?void 0:l._type,g={"kol-textarea--disabled":Boolean(d),"kol-textarea--required":Boolean(c),"kol-textarea--touched":Boolean(s),"kol-textarea--readonly":Boolean(r),[`kol-textarea--${b||"error"}`]:v},_=Object.assign(Object.assign({class:i("kol-textarea",g,n),required:c,disabled:d,readonly:r},a({ariaDescribedBy:m,hideLabel:u,label:p})),f);return e("textarea",Object.assign({},_))};function L(e,t){var n;const i=[...s(e).ariaDescribedBy,...null!==(n=t.ariaDescribedBy)&&void 0!==n?n:[]],a=Object.assign(Object.assign({id:e._id,hideLabel:e._hideLabel,label:e._label,value:e._value,accessKey:e._accessKey,disabled:e._disabled,name:e._name,rows:e._rows,readonly:e._readOnly,required:e._required,placeholder:e._placeholder,touched:e._touched,msg:e._msg},t),{ariaDescribedBy:i});return"_maxLength"in e&&"_maxLengthBehavior"in e&&"hard"===e._maxLengthBehavior&&(a.maxLength=e._maxLength),"_shortKey"in e&&(a["aria-keyshortcuts"]=e._shortKey),a}const B=t=>{var{state:n}=t,i=h(t,["state"]);return e(z,Object.assign({},L(n,i)))};class S extends r{constructor(e,t,n){super(e,t,n),this.afterSyncCharCounter=()=>{"string"==typeof this.component._value&&(this.component.state._currentLength=this.component._value.length,this.updateCurrentLengthDebounced(this.component._value.length))},this.component=e}validateHasCounter(e){f(this.component,e)}validateMaxLengthBehavior(e){u(this.component,e)}validateMaxLength(e){b(this.component,e,{hooks:{afterPatch:this.afterSyncCharCounter}})}validatePlaceholder(e){v(this.component,e)}validateReadOnly(e){y(this.component,e)}validateResize(e){j(this.component,e)}validateRequired(e){g(this.component,e)}validateRows(e){k(this.component,e)}validateSpellCheck(e){_(this.component,e)}validateValue(e){m(this.component,"_value",e,{hooks:{afterPatch:this.afterSyncCharCounter}}),this.setFormAssociatedValue(this.component._value)}componentWillLoad(){super.componentWillLoad(),this.validateHasCounter(this.component._hasCounter),this.validateMaxLengthBehavior(this.component._maxLengthBehavior),this.validateMaxLength(this.component._maxLength),this.validatePlaceholder(this.component._placeholder),this.validateReadOnly(this.component._readOnly),this.validateRequired(this.component._required),this.validateResize(this.component._resize),this.validateRows(this.component._rows),this.validateSpellCheck(this.component._spellCheck),this.validateValue(this.component._value)}}const T='/*\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 .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-textarea {\n width: 100%;\n }\n .kol-textarea:focus {\n outline: none;\n }\n}',D=e=>{e.style.overflow="hidden";const t=e.rows,n=e.clientHeight/t;e.rows=1;const i=Math.round(e.scrollHeight/n);return e.rows=t,i},C=class{async getValue(){var e;return null===(e=this.textareaRef)||void 0===e?void 0:e.value}async focus(){var e;return Promise.resolve(null===(e=this.textareaRef)||void 0===e?void 0:e.focus())}async kolFocus(){return this.focus()}getFormFieldProps(){return{state:this.state,class:i("kol-form-field-textarea",{"kol-form-field--has-value":this.state._hasValue,"kol-form-field--has-counter":this.controller.hasSoftCharacterLimit()||this.controller.hasCounter()}),tooltipAlign:this._tooltipAlign,alert:this.showAsAlert()}}getTextAreaProps(){const e="number"==typeof this.state._maxLength?[`${this.state._id}-character-limit-hint`]:void 0;return Object.assign(Object.assign({ref:this.catchRef,state:this.state,style:{resize:this.state._resize},ariaDescribedBy:e},this.controller.onFacade),{onInput:this.onInput,onFocus:e=>{this.controller.onFacade.onFocus(e),this.inputHasFocus=!0},onBlur:e=>{this.controller.onFacade.onBlur(e),this.inputHasFocus=!1}})}render(){return e(l,Object.assign({key:"8c0e36e0f3518438ad47719a0487838b50458bfa"},this.getFormFieldProps()),e(d,{key:"46550d2a7fe6d389b92205e55da49cd30e525fb3",state:this.state},e(B,Object.assign({key:"95bfd7318945abbd30a807e2f705946d8e2dabf1"},this.getTextAreaProps()))))}constructor(e){t(this,e),this.catchRef=e=>{this.textareaRef=e},this._adjustHeight=!1,this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._hasCounter=!1,this._maxLengthBehavior="hard",this._readOnly=!1,this._resize="vertical",this._required=!1,this._tooltipAlign="top",this._touched=!1,this.state={_adjustHeight:!1,_currentLength:0,_currentLengthDebounced:0,_hasValue:!1,_hideMsg:!1,_id:`id-${p()}`,_label:"",_resize:"vertical"},this.inputHasFocus=!1,this.onInput=e=>{this.textareaRef instanceof HTMLTextAreaElement&&(this._value=this.textareaRef.value,this.state._adjustHeight&&(this._rows=D(this.textareaRef)),this.controller.onFacade.onInput(e))},this.controller=new S(this,"textarea",this.host)}showAsAlert(){return Boolean(this.state._touched)&&!this.inputHasFocus}validateAccessKey(e){this.controller.validateAccessKey(e)}validateAdjustHeight(e){this.controller.validateAdjustHeight(e)}validateDisabled(e){this.controller.validateDisabled(e)}validateHideMsg(e){this.controller.validateHideMsg(e)}validateHideLabel(e){this.controller.validateHideLabel(e)}validateHasCounter(e){this.controller.validateHasCounter(e)}validateHint(e){this.controller.validateHint(e)}validateIcons(e){this.controller.validateIcons(e)}validateId(e){this.controller.validateId(e)}validateLabel(e){this.controller.validateLabel(e)}validateMaxLength(e){this.controller.validateMaxLength(e)}validateMaxLengthBehavior(e){this.controller.validateMaxLengthBehavior(e)}validateMsg(e){this.controller.validateMsg(e)}validateName(e){this.controller.validateName(e)}validateOn(e){this.controller.validateOn(e)}validatePlaceholder(e){this.controller.validatePlaceholder(e)}validateReadOnly(e){this.controller.validateReadOnly(e)}validateResize(e){this.controller.validateResize(e)}validateRequired(e){this.controller.validateRequired(e)}validateRows(e){this.controller.validateRows(e)}validateShortKey(e){this.controller.validateShortKey(e)}validateSpellCheck(e){this.controller.validateSpellCheck(e)}validateSyncValueBySelector(e){this.controller.validateSyncValueBySelector(e)}validateTouched(e){this.controller.validateTouched(e)}validateValue(e){this.controller.validateValue(e)}componentDidLoad(){setTimeout(()=>{var e;!0===this._adjustHeight&&this.textareaRef?this._rows=(null===(e=this.state)||void 0===e?void 0:e._rows)&&this.state._rows>D(this.textareaRef)?this.state._rows:D(this.textareaRef):this._rows||(this._rows=1)},0)}componentWillLoad(){this._touched=!0===this._touched,this.controller.componentWillLoad(),this.state._hasValue=!!this.state._value,this.controller.addValueChangeListener(e=>this.state._hasValue=!!e)}get host(){return n(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_adjustHeight:["validateAdjustHeight"],_disabled:["validateDisabled"],_hideMsg:["validateHideMsg"],_hideLabel:["validateHideLabel"],_hasCounter:["validateHasCounter"],_hint:["validateHint"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_maxLength:["validateMaxLength"],_maxLengthBehavior:["validateMaxLengthBehavior"],_msg:["validateMsg"],_name:["validateName"],_on:["validateOn"],_placeholder:["validatePlaceholder"],_readOnly:["validateReadOnly"],_resize:["validateResize"],_required:["validateRequired"],_rows:["validateRows"],_shortKey:["validateShortKey"],_spellCheck:["validateSpellCheck"],_syncValueBySelector:["validateSyncValueBySelector"],_touched:["validateTouched"],_value:["validateValue"]}}};C.style={default:T};export{C as kol_textarea};
|
|
4
|
+
import{h as t,r as e,g as i}from"./index-BVfSKhpj.js";import{c as a}from"./clsx-eK3rPvPS.js";import{d as o,c as l,g as s,F as r}from"./FormFieldStateWrapper-BD6_Aq_y.js";import{I as n,a as d}from"./controller-icon-z0j8meAS.js";import{_ as h}from"./tslib.es6-CxX45GIN.js";import{w as c,e as m}from"./common-Dd0zJQbD.js";import{n as p}from"./dev.utils-CT0IU26V.js";import{a as u,v as f,b as v}from"./max-length-behavior-nTw1Zuyf.js";import{v as b}from"./placeholder-BVhy3BzI.js";import{v as k}from"./read-only-BetTuumR.js";import{v as y}from"./required-CnTTpFCN.js";import{v as g}from"./rows-DtS-0sp9.js";import{v as _}from"./spell-check-B9ot-4t-.js";import"./access-and-short-key-B37XLwy2.js";import"./disabled-BhpAFgSp.js";import"./hide-label-B9FhGrWP.js";import"./label-Dnmzb2S_.js";import"./tooltip-align-Cnin7S26.js";import"./align-D-ifSKu8.js";import"./events-9-skLO0f.js";import"./associated.controller-B9GDDaFL.js";import"./bootstrap-DcyDkVEo.js";import"./component-names-C3fyby67.js";import"./i18n-CfLoIZ8T.js";import"./isObject-DvSELytj.js";import"./reuse-CX4AQDkS.js";import"./i18n-LBpyQ66X.js";import"./InternalUnderlinedBadgeText-BXMEPoNX.js";import"./Alert-I3c2hFqL.js";import"./bem-Dj4gWVFO.js";import"./browser-DiRe0qUf.js";import"./Heading-DwQEABii.js";import"./Icon-DazIQvDi.js";import"./icons-DNTuScEN.js";const j=["vertical","none"],x=e=>"string"==typeof e&&j.includes(e),w=e=>{const{class:i,msg:r,touched:s,readonly:n,disabled:d,required:c,ariaDescribedBy:p,hideLabel:m,label:u}=e,v=h(e,["class","msg","touched","readonly","disabled","required","ariaDescribedBy","hideLabel","label"]),_=l(r,s),f="string"==typeof r?"error":null==r?void 0:r._type,g={"kol-textarea--disabled":Boolean(d),"kol-textarea--required":Boolean(c),"kol-textarea--touched":Boolean(s),"kol-textarea--readonly":Boolean(n),[`kol-textarea--${f||"error"}`]:_},b=Object.assign(Object.assign({class:a("kol-textarea",g,i),required:c,disabled:d,readonly:n},o({ariaDescribedBy:p,hideLabel:m,label:u})),v);return t("textarea",Object.assign({},b))},B=e=>{var{state:a}=e,i=h(e,["state"]);return t(w,Object.assign({},function(e,t){var a;const i=[...s(e).ariaDescribedBy,...null!==(a=t.ariaDescribedBy)&&void 0!==a?a:[]],o=Object.assign(Object.assign({id:e._id,hideLabel:e._hideLabel,label:e._label,value:e._value,accessKey:e._accessKey,disabled:e._disabled,name:e._name,rows:e._rows,readonly:e._readOnly,required:e._required,placeholder:e._placeholder,touched:e._touched,msg:e._msg},t),{ariaDescribedBy:i});return"_maxLength"in e&&"_maxLengthBehavior"in e&&"hard"===e._maxLengthBehavior&&(o.maxLength=e._maxLength),"_shortKey"in e&&(o["aria-keyshortcuts"]=e._shortKey),o}(a,i)))};class L extends n{constructor(e,t,a){super(e,t,a),this.afterSyncCharCounter=()=>{"string"==typeof this.component._value&&(this.component.state._currentLength=this.component._value.length,this.updateCurrentLengthDebounced(this.component._value.length))},this.component=e}validateHasCounter(e){u(this.component,e)}validateMaxLengthBehavior(e){f(this.component,e)}validateMaxLength(e){v(this.component,e,{hooks:{afterPatch:this.afterSyncCharCounter}})}validatePlaceholder(e){b(this.component,e)}validateReadOnly(e){k(this.component,e)}validateResize(e){((e,t)=>{c(this.component,"_resize",x,new Set(j),t,{defaultValue:"vertical"})})(0,e)}validateRequired(e){y(this.component,e)}validateRows(e){g(this.component,e)}validateSpellCheck(e){_(this.component,e)}validateValue(e){m(this.component,"_value",e,{hooks:{afterPatch:this.afterSyncCharCounter}}),this.setFormAssociatedValue(this.component._value)}componentWillLoad(){super.componentWillLoad(),this.validateHasCounter(this.component._hasCounter),this.validateMaxLengthBehavior(this.component._maxLengthBehavior),this.validateMaxLength(this.component._maxLength),this.validatePlaceholder(this.component._placeholder),this.validateReadOnly(this.component._readOnly),this.validateRequired(this.component._required),this.validateResize(this.component._resize),this.validateRows(this.component._rows),this.validateSpellCheck(this.component._spellCheck),this.validateValue(this.component._value)}}const z=e=>{e.style.overflow="hidden";const t=e.rows,a=e.clientHeight/t;e.rows=1;const i=Math.round(e.scrollHeight/a);return e.rows=t,i},D=class{async getValue(){var e;return null===(e=this.textareaRef)||void 0===e?void 0:e.value}async focus(){var e;return Promise.resolve(null===(e=this.textareaRef)||void 0===e?void 0:e.focus())}async kolFocus(){return this.focus()}getFormFieldProps(){return{state:this.state,class:a("kol-form-field-textarea",{"kol-form-field--has-value":this.state._hasValue,"kol-form-field--has-counter":this.controller.hasSoftCharacterLimit()||this.controller.hasCounter()}),tooltipAlign:this._tooltipAlign,alert:this.showAsAlert()}}getTextAreaProps(){return Object.assign(Object.assign({ref:this.catchRef,state:this.state,style:{resize:this.state._resize},ariaDescribedBy:"number"==typeof this.state._maxLength?[`${this.state._id}-character-limit-hint`]:void 0},this.controller.onFacade),{onInput:this.onInput,onFocus:e=>{this.controller.onFacade.onFocus(e),this.inputHasFocus=!0},onBlur:e=>{this.controller.onFacade.onBlur(e),this.inputHasFocus=!1}})}render(){return t(r,Object.assign({key:"8c0e36e0f3518438ad47719a0487838b50458bfa"},this.getFormFieldProps()),t(d,{key:"46550d2a7fe6d389b92205e55da49cd30e525fb3",state:this.state},t(B,Object.assign({key:"95bfd7318945abbd30a807e2f705946d8e2dabf1"},this.getTextAreaProps()))))}constructor(t){e(this,t),this.catchRef=e=>{this.textareaRef=e},this._adjustHeight=!1,this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._hasCounter=!1,this._maxLengthBehavior="hard",this._readOnly=!1,this._resize="vertical",this._required=!1,this._tooltipAlign="top",this._touched=!1,this.state={_adjustHeight:!1,_currentLength:0,_currentLengthDebounced:0,_hasValue:!1,_hideMsg:!1,_id:`id-${p()}`,_label:"",_resize:"vertical"},this.inputHasFocus=!1,this.onInput=e=>{this.textareaRef instanceof HTMLTextAreaElement&&(this._value=this.textareaRef.value,this.state._adjustHeight&&(this._rows=z(this.textareaRef)),this.controller.onFacade.onInput(e))},this.controller=new L(this,"textarea",this.host)}showAsAlert(){return Boolean(this.state._touched)&&!this.inputHasFocus}validateAccessKey(e){this.controller.validateAccessKey(e)}validateAdjustHeight(e){this.controller.validateAdjustHeight(e)}validateDisabled(e){this.controller.validateDisabled(e)}validateHideMsg(e){this.controller.validateHideMsg(e)}validateHideLabel(e){this.controller.validateHideLabel(e)}validateHasCounter(e){this.controller.validateHasCounter(e)}validateHint(e){this.controller.validateHint(e)}validateIcons(e){this.controller.validateIcons(e)}validateId(e){this.controller.validateId(e)}validateLabel(e){this.controller.validateLabel(e)}validateMaxLength(e){this.controller.validateMaxLength(e)}validateMaxLengthBehavior(e){this.controller.validateMaxLengthBehavior(e)}validateMsg(e){this.controller.validateMsg(e)}validateName(e){this.controller.validateName(e)}validateOn(e){this.controller.validateOn(e)}validatePlaceholder(e){this.controller.validatePlaceholder(e)}validateReadOnly(e){this.controller.validateReadOnly(e)}validateResize(e){this.controller.validateResize(e)}validateRequired(e){this.controller.validateRequired(e)}validateRows(e){this.controller.validateRows(e)}validateShortKey(e){this.controller.validateShortKey(e)}validateSpellCheck(e){this.controller.validateSpellCheck(e)}validateSyncValueBySelector(e){this.controller.validateSyncValueBySelector(e)}validateTouched(e){this.controller.validateTouched(e)}validateValue(e){this.controller.validateValue(e)}componentDidLoad(){setTimeout(()=>{var e;!0===this._adjustHeight&&this.textareaRef?this._rows=(null===(e=this.state)||void 0===e?void 0:e._rows)&&this.state._rows>z(this.textareaRef)?this.state._rows:z(this.textareaRef):this._rows||(this._rows=1)},0)}componentWillLoad(){this._touched=!0===this._touched,this.controller.componentWillLoad(),this.state._hasValue=!!this.state._value,this.controller.addValueChangeListener(e=>this.state._hasValue=!!e)}get host(){return i(this)}static get watchers(){return{_accessKey:[{validateAccessKey:0}],_adjustHeight:[{validateAdjustHeight:0}],_disabled:[{validateDisabled:0}],_hideMsg:[{validateHideMsg:0}],_hideLabel:[{validateHideLabel:0}],_hasCounter:[{validateHasCounter:0}],_hint:[{validateHint:0}],_icons:[{validateIcons:0}],_id:[{validateId:0}],_label:[{validateLabel:0}],_maxLength:[{validateMaxLength:0}],_maxLengthBehavior:[{validateMaxLengthBehavior:0}],_msg:[{validateMsg:0}],_name:[{validateName:0}],_on:[{validateOn:0}],_placeholder:[{validatePlaceholder:0}],_readOnly:[{validateReadOnly:0}],_resize:[{validateResize:0}],_required:[{validateRequired:0}],_rows:[{validateRows:0}],_shortKey:[{validateShortKey:0}],_spellCheck:[{validateSpellCheck:0}],_syncValueBySelector:[{validateSyncValueBySelector:0}],_touched:[{validateTouched:0}],_value:[{validateValue:0}]}}};D.style={default:' @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)); } .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-textarea { width: 100%; } .kol-textarea:focus { outline: none; } }'};export{D as kol_textarea};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as n,r as t,H as e}from"./index-DuOiqRzT.js";import{t as o}from"./i18n-LBpyQ66X.js";import{n as i}from"./dev.utils-1ts_3yRe.js";import{o as a}from"./component-names-C3fyby67.js";import{K as s}from"./Alert-DZ3Qvmx3.js";import"./common-Dd0zJQbD.js";import"./markdown-BSkXjaSn.js";import{_ as l}from"./tslib.es6-CxX45GIN.js";import{c as r}from"./clsx-eK3rPvPS.js";import"./i18n-CfLoIZ8T.js";import"./bem-Dj4gWVFO.js";import"./browser-DiRe0qUf.js";import"./Heading-CLE-Js8a.js";const c=t=>{var{status:e,toast:o,onClose:i}=t,a=l(t,["status","toast","onClose"]);const{type:d,label:c,description:h,variant:m}=o;return n("div",{class:r("kol-toast-item",`kol-toast-item--${e}`)},n(s,{class:"kol-toast-item__alert",alert:!0,label:c,level:0,hasCloser:!0,type:d,variant:m||"card",onCloserClick:i},n("div",Object.assign({},a),h)))},d="/*\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: flex;\n position: fixed;\n z-index: 200;\n max-width: 90vw;\n flex-direction: column;\n }\n .kol-toast-container__close-all {\n align-self: flex-end;\n }\n}",h=300,m=class{constructor(n){t(this,n),this.state={_toastStates:[]},this.translateToastCloseAll=o("kol-toast-close-all"),this.knownRenderFunctions=new Set}async enqueue(t){const n={toast:Object.assign(Object.assign({},t),{variant:"card"}),status:"adding",id:`toast-${i()}`};return this.state=Object.assign(Object.assign({},this.state),{_toastStates:[n,...this.state._toastStates]}),setTimeout(()=>{this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.map(t=>t.id===n.id&&"removing"!==t.status?Object.assign(Object.assign({},t),{status:"settled"}):t)})},h),()=>{this.handleClose(n)}}handleClose(t){this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.map(n=>(n.id===t.id&&(n.status="removing"),n))}),setTimeout(()=>{var n,e;this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.filter(n=>n.id!==t.id)}),null===(e=(n=t.toast).onClose)||void 0===e||e.call(n)},h)}async closeAll(t=!1){if(t)this.state=Object.assign(Object.assign({},this.state),{_toastStates:[]});else{const t=[...this.state._toastStates];this.state=Object.assign(Object.assign({},this.state),{_toastStates:t.map(t=>Object.assign(Object.assign({},t),{status:"removing"}))}),setTimeout(()=>{this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.filter(n=>t.every(t=>t.id!==n.id))}),t.forEach(t=>{var n,e;null===(e=(n=t.toast).onClose)||void 0===e||e.call(n)})},h)}}handleToastRef(t,n){n&&"function"==typeof t.toast.render&&!this.knownRenderFunctions.has(t.toast.render)&&(this.knownRenderFunctions.add(t.toast.render),t.toast.render(n,{close:()=>this.handleClose(t)}))}render(){return n(e,{key:"05182cc920080f5bc3c06bb647a1bf59c58fae8d",class:"kol-toast-container"},this.state._toastStates.length>1&&n(a,{key:"e4e196489dd617e994ba8c11c38893dd505db1e1",_label:this.translateToastCloseAll,class:"kol-toast-container__button-close-all",_on:{onClick:()=>{this.closeAll()}}}),this.state._toastStates.map(t=>n(c,{key:t.id,onClose:()=>this.handleClose(t),ref:n=>this.handleToastRef(t,n),toast:t.toast,status:t.status})))}};m.style={default:d};export{m as kol_toast_container};
|
|
4
|
+
import{h as t,r as o,H as i}from"./index-BVfSKhpj.js";import{t as e}from"./i18n-LBpyQ66X.js";import{n as a}from"./dev.utils-CT0IU26V.js";import{o as s}from"./component-names-C3fyby67.js";import{K as l}from"./Alert-I3c2hFqL.js";import"./common-Dd0zJQbD.js";import"./markdown-BSkXjaSn.js";import{_ as n}from"./tslib.es6-CxX45GIN.js";import{c as r}from"./clsx-eK3rPvPS.js";import"./i18n-CfLoIZ8T.js";import"./bem-Dj4gWVFO.js";import"./browser-DiRe0qUf.js";import"./Heading-DwQEABii.js";const c=o=>{var{status:a,toast:e,onClose:s}=o,i=n(o,["status","toast","onClose"]);const{type:c,label:d,description:h,variant:p}=e;return t("div",{class:r("kol-toast-item",`kol-toast-item--${a}`)},t(l,{class:"kol-toast-item__alert",alert:!0,label:d,level:0,hasCloser:!0,type:c,variant:p||"card",onCloserClick:s},t("div",Object.assign({},i),h)))},d=class{constructor(t){o(this,t),this.state={_toastStates:[]},this.translateToastCloseAll=e("kol-toast-close-all"),this.knownRenderFunctions=new Set}async enqueue(t){const o={toast:Object.assign(Object.assign({},t),{variant:"card"}),status:"adding",id:`toast-${a()}`};return this.state=Object.assign(Object.assign({},this.state),{_toastStates:[o,...this.state._toastStates]}),setTimeout(()=>{this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.map(t=>t.id===o.id&&"removing"!==t.status?Object.assign(Object.assign({},t),{status:"settled"}):t)})},300),()=>{this.handleClose(o)}}handleClose(t){this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.map(o=>(o.id===t.id&&(o.status="removing"),o))}),setTimeout(()=>{var o,a;this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.filter(o=>o.id!==t.id)}),null===(a=(o=t.toast).onClose)||void 0===a||a.call(o)},300)}async closeAll(t=!1){if(t)this.state=Object.assign(Object.assign({},this.state),{_toastStates:[]});else{const t=[...this.state._toastStates];this.state=Object.assign(Object.assign({},this.state),{_toastStates:t.map(t=>Object.assign(Object.assign({},t),{status:"removing"}))}),setTimeout(()=>{this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.filter(o=>t.every(t=>t.id!==o.id))}),t.forEach(t=>{var o,a;null===(a=(o=t.toast).onClose)||void 0===a||a.call(o)})},300)}}handleToastRef(t,o){o&&"function"==typeof t.toast.render&&!this.knownRenderFunctions.has(t.toast.render)&&(this.knownRenderFunctions.add(t.toast.render),t.toast.render(o,{close:()=>this.handleClose(t)}))}render(){return t(i,{key:"05182cc920080f5bc3c06bb647a1bf59c58fae8d",class:"kol-toast-container"},this.state._toastStates.length>1&&t(s,{key:"e4e196489dd617e994ba8c11c38893dd505db1e1",_label:this.translateToastCloseAll,class:"kol-toast-container__button-close-all",_on:{onClick:()=>{this.closeAll()}}}),this.state._toastStates.map(o=>t(c,{key:o.id,onClose:()=>this.handleClose(o),ref:t=>this.handleToastRef(o,t),toast:o.toast,status:o.status})))}};d.style={default:" @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: flex; position: fixed; z-index: 200; max-width: 90vw; flex-direction: column; } .kol-toast-container__close-all { align-self: flex-end; } }"};export{d as kol_toast_container};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{r as n,h as t,g as e}from"./index-DuOiqRzT.js";import{_ as o}from"./tslib.es6-CxX45GIN.js";import{f as i,d as a}from"./component-names-C3fyby67.js";import{O as l,o as s,p as r,s as d}from"./common-Dd0zJQbD.js";import{v as h}from"./label-Dnmzb2S_.js";import{K as c}from"./keyboard-D6PoWr38.js";import{v as m}from"./orientation-eCMt8CD1.js";const f=(n,e)=>{l(e,()=>{s(e,()=>{void 0===e&&(e=[]);try{e=r(e)}catch(n){}Array.isArray(e)&&e.every(n=>"object"==typeof n&&null!==n)&&d(n,"_items",e)})})},p="@charset \"UTF-8\";\n/* forward the rem function */\n/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\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 :host {\n display: inline-block;\n }\n .kol-link {\n display: inline-flex;\n font-style: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n text-decoration-line: none;\n }\n .kol-link::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: \"\";\n }\n .kol-link__text {\n width: 100%;\n }\n .kol-toolbar {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n }\n .kol-toolbar--orientation-vertical {\n flex-direction: column;\n align-items: stretch;\n }\n .kol-toolbar--orientation-vertical .kol-span {\n align-items: flex-start;\n }\n .kol-toolbar:focus-within {\n outline: 1px solid;\n outline-offset: 2px;\n }\n}",b=class{constructor(e){n(this,e),this.state={_label:"",_items:[]},this.currentIndex=0,this.indexToElement=new Map,this.renderItem=(n,e)=>{const o=this.normalizeItem(n),l=e!==this.currentIndex||(null==o?void 0:o._disabled)?-1:0,r={key:e,class:"button normal kol-toolbar__item",_tabIndex:l},s=n=>{n&&this.indexToElement.set(e,n)};return t("_href"in o?i:a,Object.assign({},o,r,{ref:s}))}}normalizeItem(n){const{_icons:e,_disabled:t}=n,i=o(n,["_icons","_disabled"]);return Object.assign(Object.assign({},i),{_icons:e,_disabled:t})}render(){return t("div",{key:"9dd677a500fea840ccbfca4ee4d1eca92a06a903",class:`kol-toolbar kol-toolbar--orientation-${this.state._orientation}`,role:"toolbar","aria-label":this.state._label},this.state._items.map(this.renderItem))}validateLabel(n){h(this,n)}validateItems(n){f(this,n),this.indexToElement.clear(),this.setFirstEnabledItemIndex()}validateOrientation(n){m(this,n)}getCurrentToolbarItem(n){return"number"==typeof n?this.indexToElement.get(n):void 0}setFirstEnabledItemIndex(){var n;this.currentIndex=null===(n=this.state._items)||void 0===n?void 0:n.findIndex(n=>!n._disabled)}handleKeyDown(n){var e,t,i,o,a;const l=n.code;if(![c.ArrowUp,c.ArrowDown,c.ArrowRight,c.ArrowLeft].includes(l))return;n.preventDefault();const r=(null!==(t=null===(e=this._items)||void 0===e?void 0:e.length)&&void 0!==t?t:0)-1;if(r<0)return;const s=this.currentIndex;let d=s;switch(l){case c.ArrowUp:case c.ArrowLeft:d=s>0?s-1:r;break;case c.ArrowDown:case c.ArrowRight:d=s<r?s+1:0}s!==d&&((null===(o=null===(i=this.state._items)||void 0===i?void 0:i[d])||void 0===o?void 0:o._disabled)||(this.currentIndex=d,null===(a=this.getCurrentToolbarItem(d))||void 0===a||a.focus()))}handleBlur(n){n.target===this.host&&this.setFirstEnabledItemIndex()}componentWillLoad(){this.validateLabel(this._label),this.validateItems(this._items),this.validateOrientation(this._orientation),this.setFirstEnabledItemIndex()}get host(){return e(this)}static get watchers(){return{_label:["validateLabel"],_items:["validateItems"],_orientation:["validateOrientation"]}}};b.style={default:p};export{b as kol_toolbar};
|
|
4
|
+
import{r as o,h as t,g as i}from"./index-BVfSKhpj.js";import{_ as e}from"./tslib.es6-CxX45GIN.js";import{f as a,d as l}from"./component-names-C3fyby67.js";import{O as n,o as r,p as s,s as d}from"./common-Dd0zJQbD.js";import{v as c}from"./label-Dnmzb2S_.js";import{K as h}from"./keyboard-D6PoWr38.js";import{v as p}from"./orientation-eCMt8CD1.js";const m=class{constructor(e){o(this,e),this.state={_label:"",_items:[]},this.currentIndex=0,this.indexToElement=new Map,this.renderItem=(o,e)=>{const i=this.normalizeItem(o);return t("_href"in i?a:l,Object.assign({},i,{key:e,class:"button normal kol-toolbar__item",_tabIndex:e!==this.currentIndex||(null==i?void 0:i._disabled)?-1:0},{ref:t=>{t&&this.indexToElement.set(e,t)}}))}}normalizeItem(t){const{_icons:o,_disabled:i}=t,a=e(t,["_icons","_disabled"]);return Object.assign(Object.assign({},a),{_icons:o,_disabled:i})}render(){return t("div",{key:"9dd677a500fea840ccbfca4ee4d1eca92a06a903",class:`kol-toolbar kol-toolbar--orientation-${this.state._orientation}`,role:"toolbar","aria-label":this.state._label},this.state._items.map(this.renderItem))}validateLabel(t){c(this,t)}validateItems(t){((t,o)=>{n(o,()=>{r(o,()=>{void 0===o&&(o=[]);try{o=s(o)}catch(t){}Array.isArray(o)&&o.every(t=>"object"==typeof t&&null!==t)&&d(t,"_items",o)})})})(this,t),this.indexToElement.clear(),this.setFirstEnabledItemIndex()}validateOrientation(t){p(this,t)}getCurrentToolbarItem(t){return"number"==typeof t?this.indexToElement.get(t):void 0}setFirstEnabledItemIndex(){var t;this.currentIndex=null===(t=this.state._items)||void 0===t?void 0:t.findIndex(t=>!t._disabled)}handleKeyDown(t){var o,e,i,a,n;const l=t.code;if(![h.ArrowUp,h.ArrowDown,h.ArrowRight,h.ArrowLeft].includes(l))return;t.preventDefault();const r=(null!==(e=null===(o=this._items)||void 0===o?void 0:o.length)&&void 0!==e?e:0)-1;if(r<0)return;const s=this.currentIndex;let d=s;switch(l){case h.ArrowUp:case h.ArrowLeft:d=s>0?s-1:r;break;case h.ArrowDown:case h.ArrowRight:d=s<r?s+1:0}s!==d&&((null===(a=null===(i=this.state._items)||void 0===i?void 0:i[d])||void 0===a?void 0:a._disabled)||(this.currentIndex=d,null===(n=this.getCurrentToolbarItem(d))||void 0===n||n.focus()))}handleBlur(t){t.target===this.host&&this.setFirstEnabledItemIndex()}componentWillLoad(){this.validateLabel(this._label),this.validateItems(this._items),this.validateOrientation(this._orientation),this.setFirstEnabledItemIndex()}get host(){return i(this)}static get watchers(){return{_label:[{validateLabel:0}],_items:[{validateItems:0}],_orientation:[{validateOrientation:0}]}}};m.style={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 { .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 { :host { display: inline-block; } .kol-link { display: inline-flex; font-style: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); text-decoration-line: none; } .kol-link::before { content: ""; } .kol-link__text { width: 100%; } .kol-toolbar { display: flex; flex-wrap: wrap; align-items: center; } .kol-toolbar--orientation-vertical { flex-direction: column; align-items: stretch; } .kol-toolbar--orientation-vertical .kol-span { align-items: flex-start; } .kol-toolbar:focus-within { outline: 1px solid; outline-offset: 2px; } }'};export{m as kol_toolbar};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{r as t,h as i,H as s,g as
|
|
4
|
+
import{r as t,h as i,H as s,g as h}from"./index-BVfSKhpj.js";import{b as e,a as o}from"./align-floating-elements-BkpeqvtE.js";import{e as a,t as l}from"./common-Dd0zJQbD.js";import{v as n}from"./align-D-ifSKu8.js";import{v as r}from"./label-Dnmzb2S_.js";import"./Alert-I3c2hFqL.js";import"./i18n-LBpyQ66X.js";import{K as d}from"./Span-_4yQD2YZ.js";import{t as c,a as m}from"./tooltip-open-tracking-rBbBgPWP.js";import"./tslib.es6-CxX45GIN.js";import"./clsx-eK3rPvPS.js";import"./component-names-C3fyby67.js";import"./bem-Dj4gWVFO.js";import"./browser-DiRe0qUf.js";import"./Heading-DwQEABii.js";import"./i18n-CfLoIZ8T.js";import"./Icon-DazIQvDi.js";import"./reuse-CX4AQDkS.js";import"./markdown-BSkXjaSn.js";import"./InternalUnderlinedBadgeText-BXMEPoNX.js";import"./isObject-DvSELytj.js";const p=new Set,f=class{constructor(i){t(this,i),this.hasFocusIn=!1,this.hasMouseIn=!1,this.isHiddenForCurrentVisit=!1,this.resetHideFlag=()=>{this.isNewVisit()&&(this.isHiddenForCurrentVisit=!1)},this.showTooltip=()=>{var t;!this.isHiddenForCurrentVisit&&this.previousSibling&&this.tooltipElement&&(t=this.tooltipElement,p.forEach(t=>{t.style.setProperty("z-index","999")}),p.add(t),t.style.setProperty("z-index","1000"),c(),this.tooltipElement.classList.remove("hide"),this.tooltipElement.classList.add("show"),this.tooltipElement.style.setProperty("display","block"),l().addEventListener("keyup",this.hideTooltipByEscape,{once:!0}),this.cleanupAutoPositioning=e(this.previousSibling,this.tooltipElement,()=>{this.alignTooltip()}))},this.hideTooltipByEscape=t=>{"Escape"===t.key&&this.hideTooltip()},this.handleMouseEnter=()=>{const t=this.isNewVisit();this.hasMouseIn=!0,t&&(this.isHiddenForCurrentVisit=!1),this.showOrHideTooltip()},this.handleMouseleave=t=>{var i,e;this.hasMouseIn=null!==(e=null===(i=this.tooltipElement)||void 0===i?void 0:i.contains(t.relatedTarget))&&void 0!==e&&e,this.resetHideFlag(),this.showOrHideTooltip()},this.handleFocusIn=()=>{const t=this.isNewVisit();this.hasFocusIn=!0,t&&(this.isHiddenForCurrentVisit=!1),this.showOrHideTooltip()},this.handleFocusout=()=>{this.hasFocusIn=!1,this.resetHideFlag(),this.showOrHideTooltip()},this.addListeners=t=>{t.addEventListener("mouseenter",this.handleMouseEnter),t.addEventListener("mouseleave",this.handleMouseleave),t.addEventListener("focusin",this.handleFocusIn),t.addEventListener("focusout",this.handleFocusout)},this.removeListeners=t=>{t.removeEventListener("mouseenter",this.handleMouseEnter),t.removeEventListener("mouseleave",this.handleMouseleave),t.removeEventListener("focusin",this.handleFocusIn),t.removeEventListener("focusout",this.handleFocusout)},this.resyncListeners=(t,i,e=!1)=>{t&&this.removeListeners(t),i&&(e&&(this.previousSibling=i),this.addListeners(i))},this.catchTooltipElement=t=>{this.tooltipElement=t},this.catchArrowElement=t=>{this.arrowElement=t},this._align="top",this.state={_align:"top",_label:""},this.showOrHideTooltip=()=>{clearTimeout(this.overFocusTimeout),this.overFocusTimeout=setTimeout(()=>{this.hasMouseIn||this.hasFocusIn?this.showTooltip():this.hideTooltip()},300)}}isNewVisit(){return!this.hasMouseIn&&!this.hasFocusIn}async alignTooltip(){this.tooltipElement&&this.previousSibling&&await o({align:this._align,referenceElement:this.previousSibling,arrowElement:this.arrowElement,floatingElement:this.tooltipElement})}async hideTooltip(){this.isHiddenForCurrentVisit=!0,this.tooltipElement&&(function(t){if(p.delete(t),p.size>0){const t=Array.from(p).pop();t&&t.style.setProperty("z-index","1000")}}(this.tooltipElement),m(),this.tooltipElement.classList.remove("show"),this.tooltipElement.classList.add("hide"),this.cleanupAutoPositioning&&(this.cleanupAutoPositioning(),this.cleanupAutoPositioning=void 0)),l().removeEventListener("keyup",this.hideTooltipByEscape)}render(){return i(s,{key:"a2f5eaf3bdde31f05706c525fb3382d04449877d",class:"kol-tooltip"},""!==this.state._label&&i("div",{key:"d29670e80057f25e00c3826a093d5baef0106ce6",class:"kol-tooltip__floating",ref:this.catchTooltipElement},i("div",{key:"5ea823469aa2fcb1c3dbf56b628445814f4fc8d0",class:"kol-tooltip__arrow",ref:this.catchArrowElement}),i(d,{key:"49c40bebd3067ede516b5f7edc9749f52a08cf80",class:"kol-tooltip__content",id:this.state._id,badgeText:this._badgeText,label:this.state._label})))}validateBadgeText(t){((t,i)=>{a(this,"_badgeText",i)})(0,t)}validateAlign(t){n(this,t)}validateId(t){((t,i)=>{a(this,"_id",i)})(0,t)}validateLabel(t){r(this,t,{required:!0})}componentWillLoad(){this.validateBadgeText(this._badgeText),this.validateAlign(this._align),this.validateId(this._id),this.validateLabel(this._label)}handleEventListeners(){var t,i;const e=null!==(i=null===(t=this.host)||void 0===t?void 0:t.previousElementSibling)&&void 0!==i?i:null;this.resyncListeners(this.previousSibling,e,!0),this.resyncListeners(this.tooltipElement,this.tooltipElement)}connectedCallback(){var t,i;this.previousSibling=null!==(i=null===(t=this.host)||void 0===t?void 0:t.previousElementSibling)&&void 0!==i?i:null}componentDidRender(){this.handleEventListeners()}disconnectedCallback(){this.previousSibling&&(this.removeListeners(this.previousSibling),this.previousSibling=void 0),this.tooltipElement&&this.removeListeners(this.tooltipElement),this.cleanupAutoPositioning&&this.cleanupAutoPositioning()}get host(){return h(this)}static get watchers(){return{_badgeText:[{validateBadgeText:0}],_align:[{validateAlign:0}],_id:[{validateId:0}],_label:[{validateLabel:0}]}}};export{f as kol_tooltip_wc};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{r as e,h as t,H as i,g as s}from"./index-
|
|
4
|
+
import{r as e,h as t,H as i,g as s}from"./index-BVfSKhpj.js";import{c as a}from"./clsx-eK3rPvPS.js";import{f as l,e as o,x as r}from"./component-names-C3fyby67.js";import{d as n}from"./common-Dd0zJQbD.js";import{v as c}from"./href-rwDd36rS.js";import{v as h}from"./label-Dnmzb2S_.js";import{v as d}from"./open-CbvHO4XG.js";import{n as _}from"./dev.utils-CT0IU26V.js";const v=class{constructor(t){e(this,t),this.groupId=`tree-group-${_()}`,this.state={_active:!1,_hasChildren:!1,_href:"",_label:"",_open:!1}}render(){const{_href:e,_active:s,_hasChildren:n,_open:r,_label:c}=this.state;return t(i,{key:"442889bb000355873e79c2df59cce348ed0afb0c",onSlotchange:this.handleSlotchange.bind(this)},t("li",{key:"ab695fb7c3857e493631704e56f86b6c6211ad9f",class:"kol-tree-item",style:{"--level":`${this.level}`}},t(l,{key:"ac9855976707c3665cb09f90af3a6ecd490bb653",class:a("kol-tree-item__link",{"kol-tree-item__link--first-level":0===this.level,"kol-tree-item__link--active":s}),_href:e,_label:"",_role:"treeitem",_tabIndex:s?0:-1,_ariaExpanded:n?r:void 0,_ariaOwns:n?this.groupId:void 0,ref:e=>this.linkElement=e},t("span",{key:"9122a46258722d8df6bc5423cf8ee8b9412c763b",class:"kol-tree-item__link-inner",slot:"expert"},n?t("span",{class:"kol-tree-item__toggle-button",onClick:e=>r?void this.handleCollapseClick(e):void this.handleExpandClick(e)},t(o,{class:"kol-tree-item__toggle-button-icon",_icons:"codicon codicon-"+(r?"chevron-down":"chevron-right"),_label:""})):t("span",{class:"kol-tree-item__toggle-button-placeholder"}),t("span",{key:"b6108f314822588593d7426ad43f3bddaf42ae3c",class:"kol-tree-item__text"},c))),t("ul",{key:"2ca328f5ca9dfc25264ac1cf5a05ebf9b8a47eb8",class:"kol-tree-item__children",hidden:!n||!r,role:"group",id:this.groupId},t("slot",{key:"756437d12f6ea52ef666a5813221d84b6b29c575"}))))}validateActive(e){((e,t)=>{n(this,"_active",t,void 0)})(0,e||!1)}validateLabel(e){h(this,e)}validateOpen(e){d(this,e)}validateHref(e){c(this,e)}componentWillLoad(){this.validateActive(this._active),this.validateLabel(this._label),this.validateOpen(this._open),this.validateHref(this._href),this.checkForChildren(),this.determineTreeItemDepth()}determineTreeItemDepth(){let e=0,t=this.host.parentNode.host.parentNode;for(;null!==t&&t.tagName.toLowerCase()!==r&&t!==document.body;)t=t.parentElement,e+=1;this.level=e}handleSlotchange(){this.checkForChildren()}checkForChildren(){var e,t;this.state=Object.assign(Object.assign({},this.state),{_hasChildren:Boolean(null===(t=null===(e=this.host.querySelector("slot"))||void 0===e?void 0:e.assignedElements)||void 0===t?void 0:t.call(e).length)})}async focus(){var e;return Promise.resolve(null===(e=this.linkElement)||void 0===e?void 0:e.focus())}async focusLink(){return this.focus()}async handleExpandClick(e){var t;e.preventDefault(),await(null===(t=this.linkElement)||void 0===t?void 0:t.focus()),await this.expand()}async expand(){this.state._hasChildren&&(this.state=Object.assign(Object.assign({},this.state),{_open:!0}))}async handleCollapseClick(e){var t;e.preventDefault(),await(null===(t=this.linkElement)||void 0===t?void 0:t.focus()),await this.collapse()}async collapse(){this.state._hasChildren&&(this.state=Object.assign(Object.assign({},this.state),{_open:!1}))}async isOpen(){var e;return null!==(e=this.state._open)&&void 0!==e&&e}get host(){return s(this)}static get watchers(){return{_active:[{validateActive:0}],_label:[{validateLabel:0}],_open:[{validateOpen:0}],_href:[{validateHref:0}]}}};export{v as kol_tree_item_wc};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{r as
|
|
4
|
+
import{r as e,h as i}from"./index-BVfSKhpj.js";import{q as t}from"./component-names-C3fyby67.js";import"./common-Dd0zJQbD.js";const o=class{constructor(i){e(this,i)}async focus(){var e;return Promise.resolve(null===(e=this.element)||void 0===e?void 0:e.focus())}async focusLink(){return this.focus()}async expand(){var e;return Promise.resolve(null===(e=this.element)||void 0===e?void 0:e.expand())}async collapse(){var e;return Promise.resolve(null===(e=this.element)||void 0===e?void 0:e.collapse())}async isOpen(){var e,i;return null!==(i=await(null===(e=this.element)||void 0===e?void 0:e.isOpen()))&&void 0!==i&&i}render(){return i(t,{key:"10423bea3abc1e93d76d9cc740af25991e1944cf",_active:this._active,_label:this._label,_open:this._open,_href:this._href,ref:e=>this.element=e},i("slot",{key:"efc07e646a66d0034caab0ff546529a70098c836"}))}};o.style={default:" @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 { .kol-tree-item { --indentation: var(--tree-item-indentation, calc(10 * 1rem / var(--kolibri-root-font-size, 16))); } .kol-tree-item__link .kol-link { display: inline-flex; min-height: var(--a11y-min-size); padding-right: calc(6 * 1rem / var(--kolibri-root-font-size, 16)); padding-left: max(var(--indentation) * var(--level) + 8 * 1rem / var(--kolibri-root-font-size, 16), 8 * 1rem / var(--kolibri-root-font-size, 16)); align-items: center; text-decoration: none; } .kol-tree-item__link--first-level .kol-link { padding-left: calc(6 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tree-item__link-inner { display: flex; align-items: center; } .kol-tree-item__children { margin: 0; padding: 0; list-style: none; } .kol-tree-item .kol-span { place-items: unset; } .kol-tree-item__toggle-button, .kol-tree-item__toggle-button-placeholder { display: inline-flex; width: var(--a11y-min-size); height: var(--a11y-min-size); align-items: center; justify-content: center; } .kol-tree-item__text { text-decoration: underline; } }"};export{o as kol_tree_item};
|