@public-ui/components 3.1.0-rc.0 → 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-Bj1BTIEj.js → Alert-iB2nNldZ.js} +1 -1
- package/dist/cjs/{Collapsible-aA771eR4.js → Collapsible-CAJwi50V.js} +1 -1
- package/dist/cjs/{CustomSuggestionsOptionsGroup-cTHRZeAc.js → CustomSuggestionsOptionsGroup-BmxcG68L.js} +1 -1
- package/dist/cjs/{FieldControlStateWrapper-Cyr_zzt3.js → FieldControlStateWrapper-B_0MFAHD.js} +1 -1
- package/dist/cjs/{FormFieldStateWrapper-B2LPpMpo.js → FormFieldStateWrapper-BFcysaVO.js} +1 -1
- package/dist/cjs/{Heading-BZTrj6_i.js → Heading-CXo3APiB.js} +1 -1
- package/dist/cjs/Icon-CA2N7E-m.js +4 -0
- package/dist/cjs/{Input-BCYP3Fc4.js → Input-BG9SwAmi.js} +1 -1
- package/dist/cjs/{InputStateWrapper-uvFi_BbH.js → InputStateWrapper-Dc3UUVaW.js} +1 -1
- package/dist/cjs/{InternalUnderlinedBadgeText-uCh_T5VD.js → InternalUnderlinedBadgeText-BmcMXSlV.js} +1 -1
- package/dist/cjs/{Span-BkNklKcs.js → Span-Zi-z0XR5.js} +1 -1
- package/dist/cjs/app-globals-DjK7EzF0.js +4 -0
- package/dist/cjs/{bem-Bu0VYjZa.js → bem-CWXmxX43.js} +1 -1
- package/dist/cjs/{controller-DmfL38P4.js → controller-DHLdEAgl.js} +1 -1
- package/dist/cjs/{controller-LxYfXuho.js → controller-DT6QqMUx.js} +1 -1
- package/dist/cjs/{controller-icon-9udvsM5R.js → controller-icon-oRdlfcl8.js} +1 -1
- package/dist/cjs/{controller-DLwQQPHC.js → controller-r0aj2ftA.js} +1 -1
- package/dist/cjs/{dev.utils-fZEgoGGu.js → dev.utils-7DjklDXI.js} +1 -1
- package/dist/cjs/{devtools-yltf149z.js → devtools-C0JF5BjI.js} +1 -1
- package/dist/cjs/index-CUwAAV9q.js +4 -0
- package/dist/cjs/index.cjs.js +1 -1
- 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-DFxK42_b.js → Alert-I3c2hFqL.js} +1 -1
- package/dist/esm/{Collapsible-CaNCj17a.js → Collapsible-CK8NIzH0.js} +1 -1
- package/dist/esm/{CustomSuggestionsOptionsGroup-BElrEzPg.js → CustomSuggestionsOptionsGroup-CKk6vmBF.js} +1 -1
- package/dist/esm/{FieldControlStateWrapper-BQEssIZt.js → FieldControlStateWrapper-CHxIkx4o.js} +1 -1
- package/dist/esm/{FormFieldStateWrapper-Bs6adxNw.js → FormFieldStateWrapper-BD6_Aq_y.js} +1 -1
- package/dist/esm/{Heading-DqCQ4tvo.js → Heading-DwQEABii.js} +1 -1
- package/dist/esm/{Icon-qDQ9VVcv.js → Icon-DazIQvDi.js} +1 -1
- package/dist/esm/{Input-WOVJOXlM.js → Input-KPeaFJZR.js} +1 -1
- package/dist/esm/{InputStateWrapper-C9u4kUR_.js → InputStateWrapper-Br3zT89Q.js} +1 -1
- package/dist/esm/{InternalUnderlinedBadgeText-CNjTZsLo.js → InternalUnderlinedBadgeText-BXMEPoNX.js} +1 -1
- package/dist/esm/{Span-CgBP4Uo5.js → Span-_4yQD2YZ.js} +1 -1
- package/dist/esm/app-globals-BMo3oAt8.js +4 -0
- package/dist/esm/{bem-C27SfH6w.js → bem-Dj4gWVFO.js} +1 -1
- package/dist/esm/{controller-XsiwUqFk.js → controller-BVGTTRsM.js} +1 -1
- package/dist/esm/{controller-CHfpEwXt.js → controller-CBTbnj0P.js} +1 -1
- package/dist/esm/{controller-D3181HNj.js → controller-hCTGmOJP.js} +1 -1
- package/dist/esm/{controller-icon-s2Mrr-X3.js → controller-icon-z0j8meAS.js} +1 -1
- package/dist/esm/{dev.utils-Bl9mUZR6.js → dev.utils-CT0IU26V.js} +1 -1
- package/dist/esm/{devtools-DfvAaTZM.js → devtools-CKGr6nvH.js} +1 -1
- package/dist/esm/index-BVfSKhpj.js +4 -0
- package/dist/esm/index.js +1 -1
- 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-CK8NIzH0.js +4 -0
- package/dist/kolibri/{CustomSuggestionsOptionsGroup-BElrEzPg.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-qDQ9VVcv.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-C27SfH6w.js → 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-BVGTTRsM.js +4 -0
- 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 +2 -2
- package/dist/cjs/Alert-Bj1BTIEj.js.map +0 -1
- package/dist/cjs/Collapsible-aA771eR4.js.map +0 -1
- package/dist/cjs/CustomSuggestionsOptionsGroup-cTHRZeAc.js.map +0 -1
- package/dist/cjs/FieldControlStateWrapper-Cyr_zzt3.js.map +0 -1
- package/dist/cjs/FormFieldStateWrapper-B2LPpMpo.js.map +0 -1
- package/dist/cjs/Heading-BZTrj6_i.js.map +0 -1
- package/dist/cjs/Icon-B9T-4CsE.js +0 -4
- package/dist/cjs/Icon-B9T-4CsE.js.map +0 -1
- package/dist/cjs/Input-BCYP3Fc4.js.map +0 -1
- package/dist/cjs/InputStateWrapper-uvFi_BbH.js.map +0 -1
- package/dist/cjs/InternalUnderlinedBadgeText-uCh_T5VD.js.map +0 -1
- package/dist/cjs/Span-BkNklKcs.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-CXoEHCxk.js +0 -4
- package/dist/cjs/app-globals-CXoEHCxk.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-Bu0VYjZa.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-DLwQQPHC.js.map +0 -1
- package/dist/cjs/controller-DmfL38P4.js.map +0 -1
- package/dist/cjs/controller-LxYfXuho.js.map +0 -1
- package/dist/cjs/controller-Q-LXBPh4.js.map +0 -1
- package/dist/cjs/controller-icon-9udvsM5R.js.map +0 -1
- package/dist/cjs/custom-class-BhuMM_WI.js.map +0 -1
- package/dist/cjs/dev.utils-fZEgoGGu.js.map +0 -1
- package/dist/cjs/devtools-yltf149z.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-uT47A9Jc.js +0 -4
- package/dist/cjs/index-uT47A9Jc.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-DFxK42_b.js.map +0 -1
- package/dist/esm/Collapsible-CaNCj17a.js.map +0 -1
- package/dist/esm/CustomSuggestionsOptionsGroup-BElrEzPg.js.map +0 -1
- package/dist/esm/FieldControlStateWrapper-BQEssIZt.js.map +0 -1
- package/dist/esm/FormFieldStateWrapper-Bs6adxNw.js.map +0 -1
- package/dist/esm/Heading-DqCQ4tvo.js.map +0 -1
- package/dist/esm/Icon-qDQ9VVcv.js.map +0 -1
- package/dist/esm/Input-WOVJOXlM.js.map +0 -1
- package/dist/esm/InputStateWrapper-C9u4kUR_.js.map +0 -1
- package/dist/esm/InternalUnderlinedBadgeText-CNjTZsLo.js.map +0 -1
- package/dist/esm/Span-CgBP4Uo5.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-C1JBLIBF.js +0 -4
- package/dist/esm/app-globals-C1JBLIBF.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-C27SfH6w.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-CHfpEwXt.js.map +0 -1
- package/dist/esm/controller-CM5wW8Ij.js.map +0 -1
- package/dist/esm/controller-D3181HNj.js.map +0 -1
- package/dist/esm/controller-XsiwUqFk.js.map +0 -1
- package/dist/esm/controller-icon-s2Mrr-X3.js.map +0 -1
- package/dist/esm/custom-class-nuoQ9Aml.js.map +0 -1
- package/dist/esm/dev.utils-Bl9mUZR6.js.map +0 -1
- package/dist/esm/devtools-DfvAaTZM.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-BuVNvMVh.js +0 -4
- package/dist/esm/index-BuVNvMVh.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-DFxK42_b.js +0 -4
- package/dist/kolibri/Alert-DFxK42_b.js.map +0 -1
- package/dist/kolibri/Collapsible-CaNCj17a.js +0 -4
- package/dist/kolibri/Collapsible-CaNCj17a.js.map +0 -1
- package/dist/kolibri/CustomSuggestionsOptionsGroup-BElrEzPg.js.map +0 -1
- package/dist/kolibri/FieldControlStateWrapper-BQEssIZt.js +0 -4
- package/dist/kolibri/FieldControlStateWrapper-BQEssIZt.js.map +0 -1
- package/dist/kolibri/FormFieldStateWrapper-Bs6adxNw.js +0 -4
- package/dist/kolibri/FormFieldStateWrapper-Bs6adxNw.js.map +0 -1
- package/dist/kolibri/Heading-DqCQ4tvo.js +0 -4
- package/dist/kolibri/Heading-DqCQ4tvo.js.map +0 -1
- package/dist/kolibri/Icon-qDQ9VVcv.js.map +0 -1
- package/dist/kolibri/Input-WOVJOXlM.js +0 -4
- package/dist/kolibri/Input-WOVJOXlM.js.map +0 -1
- package/dist/kolibri/InputStateWrapper-C9u4kUR_.js +0 -4
- package/dist/kolibri/InputStateWrapper-C9u4kUR_.js.map +0 -1
- package/dist/kolibri/InternalUnderlinedBadgeText-CNjTZsLo.js +0 -4
- package/dist/kolibri/InternalUnderlinedBadgeText-CNjTZsLo.js.map +0 -1
- package/dist/kolibri/Span-CgBP4Uo5.js +0 -4
- package/dist/kolibri/Span-CgBP4Uo5.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-C1JBLIBF.js +0 -4
- package/dist/kolibri/app-globals-C1JBLIBF.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-C27SfH6w.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-CHfpEwXt.js +0 -4
- package/dist/kolibri/controller-CHfpEwXt.js.map +0 -1
- package/dist/kolibri/controller-CM5wW8Ij.js.map +0 -1
- package/dist/kolibri/controller-D3181HNj.js +0 -4
- package/dist/kolibri/controller-D3181HNj.js.map +0 -1
- package/dist/kolibri/controller-XsiwUqFk.js +0 -4
- package/dist/kolibri/controller-XsiwUqFk.js.map +0 -1
- package/dist/kolibri/controller-icon-s2Mrr-X3.js +0 -4
- package/dist/kolibri/controller-icon-s2Mrr-X3.js.map +0 -1
- package/dist/kolibri/custom-class-nuoQ9Aml.js.map +0 -1
- package/dist/kolibri/dev.utils-Bl9mUZR6.js +0 -4
- package/dist/kolibri/dev.utils-Bl9mUZR6.js.map +0 -1
- package/dist/kolibri/devtools-DfvAaTZM.js +0 -4
- package/dist/kolibri/devtools-DfvAaTZM.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-BuVNvMVh.js +0 -5
- package/dist/kolibri/index-BuVNvMVh.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{proxyCustomElement,HTMLElement,h,Fragment}from"@stencil/core/internal/client";import{c as clsx}from"./clsx.js";import{e as KolIconTag,a as KolTooltipWcTag,d as KolButtonWcTag,r as KolTableSettingsWcTag}from"./component-names.js";import{t as translate}from"./i18n.js";import{Q as emptyStringByArrayHandler,o as objectObjectHandler,p as parseJson,w as watchValidator,s as setState}from"./common.js";import{b as validateHasSettingsMenu,v as validateTableData,a as validateTableDataFoot,f as validateTableCallbacks,c as validateTableSelection,e as validateTableSettings}from"./table-settings.js";import{v as validateLabel}from"./label.js";import{C as Callback}from"./keyboard.js";import{n as nonce}from"./dev.utils.js";import{d as dispatchDomEvent,K as KolEvent}from"./events.js";import{i as isObject,c as baseGetTag,r as root,a as isObjectLike,f as freeGlobal,b as isArray,S as Symbol}from"./isObject.js";const validateTableHeaderCells=(e,t)=>{emptyStringByArrayHandler(t,()=>{objectObjectHandler(t,()=>{try{t=parseJson(t)}catch(e){}watchValidator(e,"_headerCells",e=>"object"==typeof e&&null!==e&&(void 0===e.horizontal||Array.isArray(e.horizontal)&&void 0===e.horizontal.find(e=>!Array.isArray(e)))&&(void 0===e.vertical||Array.isArray(e.vertical)&&void 0===e.vertical.find(e=>!Array.isArray(e)))&&!0,new Set(["TableHeaderCellsPropType"]),t)})})};var asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction(e){if(!isObject(e))return!1;var t=baseGetTag(e);return t==funcTag$1||t==genTag||t==asyncTag||t==proxyTag}var coreJsData=root["__core-js_shared__"],maskSrcKey=function(){var e=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function isMasked(e){return!!maskSrcKey&&maskSrcKey in e}var funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString;function toSource(e){if(null!=e){try{return funcToString$1.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto$9=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$7=objectProto$9.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$7).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(e){return!(!isObject(e)||isMasked(e))&&(isFunction(e)?reIsNative:reIsHostCtor).test(toSource(e))}function getValue(e,t){return null==e?void 0:e[t]}function getNative(e,t){var a=getValue(e,t);return baseIsNative(a)?a:void 0}var WeakMap=getNative(root,"WeakMap"),MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(e,t){var a=typeof e;return!!(t=null==t?MAX_SAFE_INTEGER$1:t)&&("number"==a||"symbol"!=a&&reIsUint.test(e))&&e>-1&&e%1==0&&e<t}function eq(e,t){return e===t||e!=e&&t!=t}var MAX_SAFE_INTEGER=9007199254740991;function isLength(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=MAX_SAFE_INTEGER}function isArrayLike(e){return null!=e&&isLength(e.length)&&!isFunction(e)}var objectProto$8=Object.prototype;function isPrototype(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||objectProto$8)}function baseTimes(e,t){for(var a=-1,r=Array(e);++a<e;)r[a]=t(a);return r}var argsTag$2="[object Arguments]";function baseIsArguments(e){return isObjectLike(e)&&baseGetTag(e)==argsTag$2}var objectProto$7=Object.prototype,hasOwnProperty$6=objectProto$7.hasOwnProperty,propertyIsEnumerable$1=objectProto$7.propertyIsEnumerable,isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObjectLike(e)&&hasOwnProperty$6.call(e,"callee")&&!propertyIsEnumerable$1.call(e,"callee")};function stubFalse(){return!1}var freeExports$1="object"==typeof exports&&exports&&!exports.nodeType&&exports,freeModule$1=freeExports$1&&"object"==typeof module&&module&&!module.nodeType&&module,moduleExports$1=freeModule$1&&freeModule$1.exports===freeExports$1,Buffer=moduleExports$1?root.Buffer:void 0,nativeIsBuffer=Buffer?Buffer.isBuffer:void 0,isBuffer=nativeIsBuffer||stubFalse,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",funcTag="[object Function]",mapTag$2="[object Map]",numberTag$1="[object Number]",objectTag$2="[object Object]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$1="[object String]",weakMapTag$1="[object WeakMap]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$2="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",typedArrayTags={};function baseIsTypedArray(e){return isObjectLike(e)&&isLength(e.length)&&!!typedArrayTags[baseGetTag(e)]}function baseUnary(e){return function(t){return e(t)}}typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0,typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag$1]=typedArrayTags[boolTag$1]=typedArrayTags[dataViewTag$2]=typedArrayTags[dateTag$1]=typedArrayTags[errorTag$1]=typedArrayTags[funcTag]=typedArrayTags[mapTag$2]=typedArrayTags[numberTag$1]=typedArrayTags[objectTag$2]=typedArrayTags[regexpTag$1]=typedArrayTags[setTag$2]=typedArrayTags[stringTag$1]=typedArrayTags[weakMapTag$1]=!1;var freeExports="object"==typeof exports&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&"object"==typeof module&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,freeProcess=moduleExports&&freeGlobal.process,nodeUtil=function(){try{var e=freeModule&&freeModule.require&&freeModule.require("util").types;return e||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch(e){}}(),nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,objectProto$6=Object.prototype,hasOwnProperty$5=objectProto$6.hasOwnProperty;function arrayLikeKeys(e,t){var a=isArray(e),r=!a&&isArguments(e),o=!a&&!r&&isBuffer(e),s=!a&&!r&&!o&&isTypedArray(e),i=a||r||o||s,n=i?baseTimes(e.length,String):[],l=n.length;for(var c in e)!hasOwnProperty$5.call(e,c)||i&&("length"==c||o&&("offset"==c||"parent"==c)||s&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||isIndex(c,l))||n.push(c);return n}function overArg(e,t){return function(a){return e(t(a))}}var nativeKeys=overArg(Object.keys,Object),objectProto$5=Object.prototype,hasOwnProperty$4=objectProto$5.hasOwnProperty;function baseKeys(e){if(!isPrototype(e))return nativeKeys(e);var t=[];for(var a in Object(e))hasOwnProperty$4.call(e,a)&&"constructor"!=a&&t.push(a);return t}function keys(e){return isArrayLike(e)?arrayLikeKeys(e):baseKeys(e)}var nativeCreate=getNative(Object,"create");function hashClear(){this.__data__=nativeCreate?nativeCreate(null):{},this.size=0}function hashDelete(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$4=Object.prototype,hasOwnProperty$3=objectProto$4.hasOwnProperty;function hashGet(e){var t=this.__data__;if(nativeCreate){var a=t[e];return a===HASH_UNDEFINED$2?void 0:a}return hasOwnProperty$3.call(t,e)?t[e]:void 0}var objectProto$3=Object.prototype,hasOwnProperty$2=objectProto$3.hasOwnProperty;function hashHas(e){var t=this.__data__;return nativeCreate?void 0!==t[e]:hasOwnProperty$2.call(t,e)}var HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet(e,t){var a=this.__data__;return this.size+=this.has(e)?0:1,a[e]=nativeCreate&&void 0===t?HASH_UNDEFINED$1:t,this}function Hash(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}function listCacheClear(){this.__data__=[],this.size=0}function assocIndexOf(e,t){for(var a=e.length;a--;)if(eq(e[a][0],t))return a;return-1}Hash.prototype.clear=hashClear,Hash.prototype.delete=hashDelete,Hash.prototype.get=hashGet,Hash.prototype.has=hashHas,Hash.prototype.set=hashSet;var arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete(e){var t=this.__data__,a=assocIndexOf(t,e);return!(a<0)&&(a==t.length-1?t.pop():splice.call(t,a,1),--this.size,!0)}function listCacheGet(e){var t=this.__data__,a=assocIndexOf(t,e);return a<0?void 0:t[a][1]}function listCacheHas(e){return assocIndexOf(this.__data__,e)>-1}function listCacheSet(e,t){var a=this.__data__,r=assocIndexOf(a,e);return r<0?(++this.size,a.push([e,t])):a[r][1]=t,this}function ListCache(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}ListCache.prototype.clear=listCacheClear,ListCache.prototype.delete=listCacheDelete,ListCache.prototype.get=listCacheGet,ListCache.prototype.has=listCacheHas,ListCache.prototype.set=listCacheSet;var Map$1=getNative(root,"Map");function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Map$1||ListCache),string:new Hash}}function isKeyable(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function getMapData(e,t){var a=e.__data__;return isKeyable(t)?a["string"==typeof t?"string":"hash"]:a.map}function mapCacheDelete(e){var t=getMapData(this,e).delete(e);return this.size-=t?1:0,t}function mapCacheGet(e){return getMapData(this,e).get(e)}function mapCacheHas(e){return getMapData(this,e).has(e)}function mapCacheSet(e,t){var a=getMapData(this,e),r=a.size;return a.set(e,t),this.size+=a.size==r?0:1,this}function MapCache(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}function arrayPush(e,t){for(var a=-1,r=t.length,o=e.length;++a<r;)e[o+a]=t[a];return e}function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete(e){var t=this.__data__,a=t.delete(e);return this.size=t.size,a}function stackGet(e){return this.__data__.get(e)}function stackHas(e){return this.__data__.has(e)}MapCache.prototype.clear=mapCacheClear,MapCache.prototype.delete=mapCacheDelete,MapCache.prototype.get=mapCacheGet,MapCache.prototype.has=mapCacheHas,MapCache.prototype.set=mapCacheSet;var LARGE_ARRAY_SIZE=200;function stackSet(e,t){var a=this.__data__;if(a instanceof ListCache){var r=a.__data__;if(!Map$1||r.length<LARGE_ARRAY_SIZE-1)return r.push([e,t]),this.size=++a.size,this;a=this.__data__=new MapCache(r)}return a.set(e,t),this.size=a.size,this}function Stack(e){var t=this.__data__=new ListCache(e);this.size=t.size}function arrayFilter(e,t){for(var a=-1,r=null==e?0:e.length,o=0,s=[];++a<r;){var i=e[a];t(i,a,e)&&(s[o++]=i)}return s}function stubArray(){return[]}Stack.prototype.clear=stackClear,Stack.prototype.delete=stackDelete,Stack.prototype.get=stackGet,Stack.prototype.has=stackHas,Stack.prototype.set=stackSet;var objectProto$2=Object.prototype,propertyIsEnumerable=objectProto$2.propertyIsEnumerable,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbols=nativeGetSymbols?function(e){return null==e?[]:(e=Object(e),arrayFilter(nativeGetSymbols(e),function(t){return propertyIsEnumerable.call(e,t)}))}:stubArray;function baseGetAllKeys(e,t,a){var r=t(e);return isArray(e)?r:arrayPush(r,a(e))}function getAllKeys(e){return baseGetAllKeys(e,keys,getSymbols)}var DataView=getNative(root,"DataView"),Promise$1=getNative(root,"Promise"),Set$1=getNative(root,"Set"),mapTag$1="[object Map]",objectTag$1="[object Object]",promiseTag="[object Promise]",setTag$1="[object Set]",weakMapTag="[object WeakMap]",dataViewTag$1="[object DataView]",dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap),getTag=baseGetTag;(DataView&&getTag(new DataView(new ArrayBuffer(1)))!=dataViewTag$1||Map$1&&getTag(new Map$1)!=mapTag$1||Promise$1&&getTag(Promise$1.resolve())!=promiseTag||Set$1&&getTag(new Set$1)!=setTag$1||WeakMap&&getTag(new WeakMap)!=weakMapTag)&&(getTag=function(e){var t=baseGetTag(e),a=t==objectTag$1?e.constructor:void 0,r=a?toSource(a):"";if(r)switch(r){case dataViewCtorString:return dataViewTag$1;case mapCtorString:return mapTag$1;case promiseCtorString:return promiseTag;case setCtorString:return setTag$1;case weakMapCtorString:return weakMapTag}return t});var Uint8Array=root.Uint8Array,HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd(e){return this.__data__.set(e,HASH_UNDEFINED),this}function setCacheHas(e){return this.__data__.has(e)}function SetCache(e){var t=-1,a=null==e?0:e.length;for(this.__data__=new MapCache;++t<a;)this.add(e[t])}function arraySome(e,t){for(var a=-1,r=null==e?0:e.length;++a<r;)if(t(e[a],a,e))return!0;return!1}function cacheHas(e,t){return e.has(t)}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd,SetCache.prototype.has=setCacheHas;var COMPARE_PARTIAL_FLAG$3=1,COMPARE_UNORDERED_FLAG$1=2;function equalArrays(e,t,a,r,o,s){var i=a&COMPARE_PARTIAL_FLAG$3,n=e.length,l=t.length;if(n!=l&&!(i&&l>n))return!1;var c=s.get(e),h=s.get(t);if(c&&h)return c==t&&h==e;var d=-1,u=!0,b=a&COMPARE_UNORDERED_FLAG$1?new SetCache:void 0;for(s.set(e,t),s.set(t,e);++d<n;){var y=e[d],p=t[d];if(r)var g=i?r(p,y,d,t,e,s):r(y,p,d,e,t,s);if(void 0!==g){if(g)continue;u=!1;break}if(b){if(!arraySome(t,function(e,t){if(!cacheHas(b,t)&&(y===e||o(y,e,a,r,s)))return b.push(t)})){u=!1;break}}else if(y!==p&&!o(y,p,a,r,s)){u=!1;break}}return s.delete(e),s.delete(t),u}function mapToArray(e){var t=-1,a=Array(e.size);return e.forEach(function(e,r){a[++t]=[r,e]}),a}function setToArray(e){var t=-1,a=Array(e.size);return e.forEach(function(e){a[++t]=e}),a}var COMPARE_PARTIAL_FLAG$2=1,COMPARE_UNORDERED_FLAG=2,boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",symbolProto=Symbol?Symbol.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag(e,t,a,r,o,s,i){switch(a){case dataViewTag:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case arrayBufferTag:return!(e.byteLength!=t.byteLength||!s(new Uint8Array(e),new Uint8Array(t)));case boolTag:case dateTag:case numberTag:return eq(+e,+t);case errorTag:return e.name==t.name&&e.message==t.message;case regexpTag:case stringTag:return e==t+"";case mapTag:var n=mapToArray;case setTag:var l=r&COMPARE_PARTIAL_FLAG$2;if(n||(n=setToArray),e.size!=t.size&&!l)return!1;var c=i.get(e);if(c)return c==t;r|=COMPARE_UNORDERED_FLAG,i.set(e,t);var h=equalArrays(n(e),n(t),r,o,s,i);return i.delete(e),h;case symbolTag:if(symbolValueOf)return symbolValueOf.call(e)==symbolValueOf.call(t)}return!1}var COMPARE_PARTIAL_FLAG$1=1,objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty;function equalObjects(e,t,a,r,o,s){var i=a&COMPARE_PARTIAL_FLAG$1,n=getAllKeys(e),l=n.length;if(l!=getAllKeys(t).length&&!i)return!1;for(var c=l;c--;){var h=n[c];if(!(i?h in t:hasOwnProperty$1.call(t,h)))return!1}var d=s.get(e),u=s.get(t);if(d&&u)return d==t&&u==e;var b=!0;s.set(e,t),s.set(t,e);for(var y=i;++c<l;){var p=e[h=n[c]],g=t[h];if(r)var f=i?r(g,p,h,t,e,s):r(p,g,h,e,t,s);if(!(void 0===f?p===g||o(p,g,a,r,s):f)){b=!1;break}y||(y="constructor"==h)}if(b&&!y){var _=e.constructor,v=t.constructor;_==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof v&&v instanceof v||(b=!1)}return s.delete(e),s.delete(t),b}var COMPARE_PARTIAL_FLAG=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty;function baseIsEqualDeep(e,t,a,r,o,s){var i=isArray(e),n=isArray(t),l=i?arrayTag:getTag(e),c=n?arrayTag:getTag(t),h=(l=l==argsTag?objectTag:l)==objectTag,d=(c=c==argsTag?objectTag:c)==objectTag,u=l==c;if(u&&isBuffer(e)){if(!isBuffer(t))return!1;i=!0,h=!1}if(u&&!h)return s||(s=new Stack),i||isTypedArray(e)?equalArrays(e,t,a,r,o,s):equalByTag(e,t,l,a,r,o,s);if(!(a&COMPARE_PARTIAL_FLAG)){var b=h&&hasOwnProperty.call(e,"__wrapped__"),y=d&&hasOwnProperty.call(t,"__wrapped__");if(b||y){var p=b?e.value():e,g=y?t.value():t;return s||(s=new Stack),o(p,g,a,r,s)}}return!!u&&(s||(s=new Stack),equalObjects(e,t,a,r,o,s))}function baseIsEqual(e,t,a,r,o){return e===t||(null==e||null==t||!isObjectLike(e)&&!isObjectLike(t)?e!=e&&t!=t:baseIsEqualDeep(e,t,a,r,baseIsEqual,o))}function isEqual(e,t){return baseIsEqual(e,t)}const HEADER_CELL_WIDTH_VALIDATOR=/^\d+(\.\d+)?([a-z]+|%)?$/,validateMinWidth=(e,t,a)=>{watchValidator(e,"_minWidth",e=>"string"==typeof e&&HEADER_CELL_WIDTH_VALIDATOR.test(e),new Set(["String","/^\\d+(\\.\\d+)?([a-z]+|%)?$/"]),t,a)},KolTableStateless=proxyCustomElement(class extends HTMLElement{constructor(e){super(),!1!==e&&this.__registerHost(),this.translateNoEntries=translate("kol-no-entries"),this.state={_data:[],_headerCells:{horizontal:[],vertical:[]},_label:"",_minWidth:"auto",_hasSettingsMenu:!1},this.horizontal=!0,this.cellsToRenderTimeouts=new Map,this.dataToKeyMap=new Map,this.checkboxRefs=[],this.translateSort=translate("kol-sort"),this.tableDivElementHasScrollbar=!1,this.renderTableRow=(e,t,a,r=!1)=>{var o,s;let i=String(t);return this.horizontal&&(null===(o=e[0])||void 0===o?void 0:o.data)&&(i=null!==(s=this.getDataKey(e[0].data))&&void 0!==s?s:i),h("tr",{class:clsx("kol-table__row",{"kol-table__row--body":!r,"kol-table__row--footer":r}),key:`row-${i}`},this.renderSelectionCell(e,t),e.map((e,r)=>this.renderTableCell(e,t,r,a)))},this.renderTableCell=(e,t,a,r)=>{const o=this.getColumnSettings(e);if(o&&!o.visible)return"";let s=`${t}-${a}-${e.label}`;if(e.data){const r=this.getDataKey(e.data);s=r?`${r}-${this.horizontal?a:t}`:s}if(e.headerCell)return this.renderHeadingCell(e,t,a,r);{const t="function"!=typeof e.render&&e.label===this.translateNoEntries;return h("td",{key:`cell-${s}`,class:clsx("kol-table__cell kol-table__cell--body",{[`kol-table__cell--align-${e.textAlign}`]:e.textAlign}),"aria-atomic":t?"false":void 0,"aria-live":t?"polite":void 0,"aria-relevant":t?"text":void 0,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{textAlign:e.textAlign,width:(null==o?void 0:o.width)?`${o.width}ch`:e.width},ref:"function"==typeof e.render?t=>{this.cellRender(e,t)}:void 0},"function"!=typeof e.render?e.label:"")}}}validateHasSettingsMenu(e){validateHasSettingsMenu(this,e)}validateData(e){validateTableData(this,e,{beforePatch:e=>{this.updateDataToKeyMap(e)}})}validateDataFoot(e){validateTableDataFoot(this,e)}validateHeaderCells(e){validateTableHeaderCells(this,e),isEqual(this.previousHeaderCells,this.state._headerCells)||this.initializeTableSettings(),this.previousHeaderCells=this.state._headerCells}validateLabel(e){validateLabel(this,e,{required:!0})}validateMinWidth(e){validateMinWidth(this,e)}validateOn(e){validateTableCallbacks(this,e)}validateSelection(e){validateTableSelection(this,e)}validateTableSettings(e){validateTableSettings(this,this.normalizeTableSettings(e))}normalizeTableSettings(e){if(!e||"object"!=typeof e)return e;const t=Array.isArray(e.columns)?e.columns:[];return Object.assign(Object.assign({},e),{columns:t.map(({hidable:e,key:t,label:a,resizable:r,sortable:o,visible:s,width:i})=>({hidable:!1!==e,key:null!=t?t:nonce(),label:a,resizable:!1!==r,sortable:!1!==o,visible:!1!==s,width:i}))})}handleKeyDown(e){var t;if("ArrowUp"===e.key||"ArrowDown"===e.key){const a=null===(t=this.tableDivElement)||void 0===t?void 0:t.querySelector(":focus");let r=this.checkboxRefs.indexOf(a);r>-1&&(e.preventDefault(),"ArrowDown"===e.key?(r=(r+1)%this.checkboxRefs.length,this.checkboxRefs[r].focus()):"ArrowUp"===e.key&&(e.preventDefault(),r=(r+this.checkboxRefs.length-1)%this.checkboxRefs.length,this.checkboxRefs[r].focus()))}}componentDidRender(){this.checkDivElementScrollbar()}componentDidLoad(){this.tableDivElement&&ResizeObserver&&(this.tableDivElementResizeObserver=new ResizeObserver(this.checkDivElementScrollbar.bind(this)),this.tableDivElementResizeObserver.observe(this.tableDivElement))}handleSettingsChange(e){setState(this,"_tableSettings",e.detail)}disconnectedCallback(){var e;null===(e=this.tableDivElementResizeObserver)||void 0===e||e.disconnect()}checkDivElementScrollbar(){this.tableDivElement&&(this.tableDivElementHasScrollbar=this.tableDivElement.scrollWidth>this.tableDivElement.clientWidth)}updateDataToKeyMap(e){e.forEach(e=>{this.dataToKeyMap.has(e)||this.dataToKeyMap.set(e,nonce())}),this.dataToKeyMap.forEach((t,a)=>{e.includes(a)||this.dataToKeyMap.delete(a)})}getDataKey(e){return this.dataToKeyMap.get(e)}cellRender(e,t){t&&(clearTimeout(this.cellsToRenderTimeouts.get(t)),this.cellsToRenderTimeouts.set(t,setTimeout(()=>{if("function"==typeof e.render){const a=e.render(t,e,e.data,this.state._data);"string"==typeof a&&(t.textContent=a)}})))}getNumberOfCols(e,t){let a=0;return e.forEach(e=>{let t=0;Array.isArray(e)&&e.forEach(e=>{var a;return t+=null!==(a=e.colSpan)&&void 0!==a?a:1}),a<t&&(a=t)}),0===a&&(a=t.length),a}getNumberOfRows(e,t){var a;let r=0;return e.forEach(e=>{let t=0;Array.isArray(e)&&e.forEach(e=>{var a;return t+=null!==(a=e.rowSpan)&&void 0!==a?a:1}),r<t&&(r=t)}),0===r?r=t.length:r-=(null===(a=this.state._dataFoot)||void 0===a?void 0:a.length)||0,r}getThePrimaryHeadersWithKeyOrRenderFunction(e){const t=[];return e.forEach(e=>{e.forEach(e=>{"string"!=typeof e.key&&"function"!=typeof e.render||t.push(e)})}),t}getPrimaryHeaders(e){var t,a;let r=this.getThePrimaryHeadersWithKeyOrRenderFunction(null!==(t=e.horizontal)&&void 0!==t?t:[]);return this.horizontal=!0,0===r.length&&(r=this.getThePrimaryHeadersWithKeyOrRenderFunction(null!==(a=e.vertical)&&void 0!==a?a:[]),r.length>0&&(this.horizontal=!1)),r}getColumnPositionMap(){var e;const t=new Map;return null===(e=this.state._tableSettings)||void 0===e||e.columns.forEach((e,a)=>{t.set(e.key,a)}),t}sortByColumnPosition(e){const t=this.getColumnPositionMap();return e.map((e,t)=>({column:e,index:t})).sort((e,a)=>{var r,o,s,i;const n=null!==(o=t.get(null!==(r=e.column.key)&&void 0!==r?r:""))&&void 0!==o?o:Number.MAX_SAFE_INTEGER,l=null!==(i=t.get(null!==(s=a.column.key)&&void 0!==s?s:""))&&void 0!==i?i:Number.MAX_SAFE_INTEGER;return n!==l?n-l:e.index-a.index}).map(({column:e})=>e)}createDataField(e,t,a){var r;t.horizontal=Array.isArray(null==t?void 0:t.horizontal)?t.horizontal:[],t.vertical=Array.isArray(null==t?void 0:t.vertical)?t.vertical:[];const o=this.getPrimaryHeaders(t),s=this.getNumberOfCols(t.horizontal,e);let i=this.getNumberOfRows(t.vertical,e),n=0;a&&(n=i,i+=(null===(r=this.state._dataFoot)||void 0===r?void 0:r.length)||0);const l=[],c=[],h=[];t.vertical.forEach((e,t)=>{c[t]=0,h[t]=[]});const d=this.sortByColumnPosition(o);for(let r=n;r<i;r++){const o=[];t.vertical.forEach((e,t)=>{let a=0;if(h[t].forEach(e=>a+=e),a<=r){const s=e[r-a+c[t]];if("object"==typeof s){o.push(Object.assign(Object.assign({},s),{headerCell:!0,data:{}}));let e=1;if("number"==typeof s.rowSpan&&s.rowSpan>1&&(e=s.rowSpan),h[t].push(e),"number"==typeof s.colSpan&&s.colSpan>1)for(let a=1;a<s.colSpan;a++)h[t+a].push(e);c[t]++}}});for(let t=0;t<s;t++)if(!0===this.horizontal){const s=a&&this.state._dataFoot?this.state._dataFoot[r-n]:e[r];"object"!=typeof d[t]||null===d[t]||"object"!=typeof s||null===s||"string"!=typeof d[t].key&&"function"!=typeof d[t].render||o.push(Object.assign(Object.assign({},d[t]),{colSpan:void 0,data:s,label:s[d[t].key],rowSpan:void 0}))}else"object"!=typeof d[r]||null===d[r]||"object"!=typeof e[t]||null===e[t]||"string"!=typeof d[r].key&&"function"!=typeof d[r].render||o.push(Object.assign(Object.assign({},d[r]),{colSpan:void 0,data:e[t],label:e[t][d[r].key],rowSpan:void 0}));l.push(o)}if(0===e.length){let e=0,a=0;Array.isArray(t.horizontal)&&t.horizontal.length>0&&t.horizontal[0].forEach(t=>{e+=t.colSpan||1}),Array.isArray(t.vertical)&&t.vertical.length>0&&(e-=t.vertical.length,t.vertical[0].forEach(e=>{a+=e.rowSpan||1}));const r={colSpan:e,label:this.translateNoEntries,render:void 0,rowSpan:Math.max(a,1)};0===l.length?l.push([r]):l[0].push(r)}return l}handleSelectionChangeCallbackAndEvent(e,t){var a;"function"==typeof(null===(a=this.state._on)||void 0===a?void 0:a[Callback.onSelectionChange])&&this.state._on[Callback.onSelectionChange](e,t),this.host&&dispatchDomEvent(this.host,KolEvent.selectionChange,t)}initializeTableSettings(){if(this._tableSettings)return;const e=this.getPrimaryHeaders(this.state._headerCells);this.state._tableSettings||(this.state._tableSettings={columns:[]}),this.state._tableSettings.columns=e.filter(e=>e.key).map(e=>{var t;return{hidable:!1!==e.hidable,sortable:!1!==e.sortable,resizable:!1!==e.resizable,key:null!==(t=e.key)&&void 0!==t?t:nonce(),label:e.label,visible:!0}})}componentWillLoad(){this.validateData(this._data),this.validateDataFoot(this._dataFoot),this.validateHeaderCells(this._headerCells),this.validateLabel(this._label),this.validateMinWidth(this._minWidth),this.validateOn(this._on),this.validateSelection(this._selection),this.validateTableSettings(this._tableSettings),this.validateHasSettingsMenu(this._hasSettingsMenu)}renderSelectionCell(e,t){var a;const r=this.state._selection;if(!r)return"";const o=this.getSelectionKeyPropertyName(),s=null===(a=e[0])||void 0===a?void 0:a.data;if(!s)return"";const i=s[o],n=r.multiple||void 0===r.multiple,l=(()=>{const e=null==r?void 0:r.selectedKeys;return(void 0===e?[]:Array.isArray(e)?e:[e]).some(e=>String(e)===String(i))})(),c=(()=>{const e=null==r?void 0:r.disabledKeys;return(void 0===e?[]:Array.isArray(e)?e:[e]).some(e=>String(e)===String(i))})(),d=r.label(s),u={name:"selection",checked:l,disabled:c,id:String(i),"aria-label":d};return h("td",{key:`tbody-${t}-selection`,class:"kol-table__cell kol-table__cell--selection"},h("div",{class:clsx("kol-table__selection",{"kol-table__selection--checked":l})},n?h("label",{class:clsx("kol-table__selection-label",{"kol-table__selection-label--disabled":c})},h(KolIconTag,{class:"kol-table__selection-icon",_icons:"codicon "+(l?"codicon-check":""),_label:""}),h("input",Object.assign({class:clsx("kol-table__selection-input kol-table__selection-input--checkbox"),ref:e=>e&&this.checkboxRefs.push(e)},u,{type:"checkbox",onInput:e=>{const t=(()=>{const e=null==r?void 0:r.selectedKeys;return void 0===e?[]:Array.isArray(e)?e:[e]})(),a=l?t.filter(e=>String(e)!==String(i)):[...t,i];this.handleSelectionChangeCallbackAndEvent(e,null!=a?a:[])}}))):h("label",{class:"kol-table__selection-label"},h("input",Object.assign({class:clsx("kol-table__selection-input kol-table__selection-input--radio")},u,{type:"radio",onInput:e=>{this.handleSelectionChangeCallbackAndEvent(e,i)}}))),h(KolTooltipWcTag,{"aria-hidden":"true",class:"kol-table__selection-input-tooltip",_align:"right",_id:`${i}-label`,_label:d})))}getColumnSettings(e){var t;return null===(t=this.state._tableSettings)||void 0===t?void 0:t.columns.find(t=>t.key===e.key)}getSelectionKeyPropertyName(){var e,t;return null!==(t=null===(e=this.state._selection)||void 0===e?void 0:e.keyPropertyName)&&void 0!==t?t:"id"}getDataWithSelectionEnabled(){const e=this.getSelectionKeyPropertyName();return this.state._data.filter(t=>{var a;const r=null===(a=this.state._selection)||void 0===a?void 0:a.disabledKeys;return!(void 0===r?[]:Array.isArray(r)?r:[r]).some(a=>String(a)===String(t[e]))})}getSelectedKeysWithoutDisabledKeys(){const e=(()=>{var e;const t=null===(e=this.state._selection)||void 0===e?void 0:e.selectedKeys;return void 0===t?[]:Array.isArray(t)?t:[t]})(),t=(()=>{var e;const t=null===(e=this.state._selection)||void 0===e?void 0:e.disabledKeys;return void 0===t?[]:Array.isArray(t)?t:[t]})();return e.filter(e=>!t.some(t=>String(t)===String(e)))}getSelectedKeysWithDisabledKeysOnly(){const e=(()=>{var e;const t=null===(e=this.state._selection)||void 0===e?void 0:e.selectedKeys;return void 0===t?[]:Array.isArray(t)?t:[t]})(),t=(()=>{var e;const t=null===(e=this.state._selection)||void 0===e?void 0:e.disabledKeys;return void 0===t?[]:Array.isArray(t)?t:[t]})();return e.filter(e=>t.some(t=>String(t)===String(e)))}getRevertedSelection(e){var t;const a=this.getSelectionKeyPropertyName(),r=null!==(t=this.getSelectedKeysWithDisabledKeysOnly())&&void 0!==t?t:[];return e&&r.push(...this.getDataWithSelectionEnabled().map(e=>null==e?void 0:e[a])),r}getTableMinWidth(){var e,t;const a=null!==(t=null===(e=this.state._tableSettings)||void 0===e?void 0:e.columns.filter(e=>e.visible).reduce((e,t)=>{var a;return e+(null!==(a=t.width)&&void 0!==a?a:0)},0))&&void 0!==t?t:0;return"auto"===this.state._minWidth?`${a}ch`:`max(${this.state._minWidth}, ${a}ch)`}renderHeadingSelectionCell(){var e,t;const a=this.state._selection;if(!a)return h("th",{class:"kol-table__cell kol-table__cell--header",key:"thead-0"});if(!1===a.multiple)return h("td",{key:"thead-0-selection",class:"kol-table__cell kol-table__cell--header kol-table__cell--selection"});const r=null!==(t=null===(e=this.getSelectedKeysWithoutDisabledKeys())||void 0===e?void 0:e.length)&&void 0!==t?t:0,o=r===this.getDataWithSelectionEnabled().length,s=0!==r&&!o;let i="kol-table-selection-indeterminate";o&&!s&&(i="kol-table-selection-none"),0===r&&(i="kol-table-selection-all");const n=translate(i);return h("th",{key:"thead-0-selection",class:"kol-table__cell kol-table__cell--header kol-table__cell--selection"},h("div",{class:clsx("kol-table__selection",{"kol-table__selection--indeterminate":s,"kol-table__selection--checked":o})},h("label",{class:"kol-table__selection-label"},h(KolIconTag,{class:"kol-table__selection-icon",_icons:"codicon "+(s?"codicon-remove":o?"codicon-check":""),_label:""}),h("input",{class:clsx("kol-table__selection-input kol-table__selection-input--checkbox"),"data-testid":"selection-checkbox-all",ref:e=>e&&this.checkboxRefs.push(e),name:"selection",checked:o&&!s,indeterminate:s,"aria-label":n,type:"checkbox",onInput:e=>{this.handleSelectionChangeCallbackAndEvent(e,this.getRevertedSelection(!o))}})),h(KolTooltipWcTag,{"aria-hidden":"true",class:"kol-table__selection-input-tooltip",_align:"right",_id:`${i}-label`,_label:n})))}renderHeaderTdCell(){return h(Fragment,null,Array.isArray(this.state._headerCells.horizontal)&&this.state._headerCells.horizontal.length>0&&Array.isArray(this.state._headerCells.vertical)&&this.state._headerCells.vertical.length>0&&Array.isArray(this.state._headerCells.horizontal)&&h("td",{"aria-hidden":"true",colSpan:this.state._headerCells.vertical.length,rowSpan:this.state._headerCells.horizontal.length}))}renderHeadingCell(e,t,a,r){const o=this.getColumnSettings(e);if(o&&!o.visible)return"";const s=!1!==(null==o?void 0:o.sortable),i="string"==typeof e.sortDirection,n=s&&i;let l="none",c="codicon codicon-fold";if(n&&e.sortDirection)switch(e.sortDirection){case"ASC":c="codicon codicon-chevron-up",l="ascending";break;case"DESC":c="codicon codicon-chevron-down",l="descending";break;default:l="none"}const d=r?"row":"number"==typeof e.colSpan&&e.colSpan>1?"colgroup":"col";return h("th",{key:`${t}-${a}-${e.label}`,class:clsx("kol-table__cell kol-table__cell--header",{[`kol-table__cell--align-${e.textAlign}`]:e.textAlign,[`kol-table__cell--${l}`]:l}),scope:d,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{width:(null==o?void 0:o.width)?`${o.width}ch`:e.width},"aria-sort":l,"data-sort":n&&e.sortDirection?`sort-${e.sortDirection}`:void 0},n&&e.sortDirection?h(KolButtonWcTag,{class:"kol-table__sort-button",exportparts:"icon",_icons:{right:c},_label:e.label,_ariaDescription:this.translateSort,_on:{onClick:t=>{var a;"function"==typeof(null===(a=this.state._on)||void 0===a?void 0:a.onSort)&&e.key&&e.sortDirection&&this.state._on.onSort(t,{key:e.key,currentSortDirection:e.sortDirection}),this.host&&dispatchDomEvent(this.host,KolEvent.sort,{key:e.key,currentSortDirection:e.sortDirection})}}}):e.label)}renderSpacer(e,t){var a,r;const o=(null===(a=this.state._headerCells.vertical)||void 0===a?void 0:a.length)||0,s=null===(r=null==t?void 0:t[0])||void 0===r?void 0:r.reduce((e,t)=>e+(t.colSpan||1),0),i=this.state._selection?1:0;return h("tr",{"aria-hidden":"true",class:clsx("kol-table__spacer",`kol-table__spacer--${e}`)},h("td",{class:clsx(`kol-table__spacer-line kol-table__spacer-line--${e}`),colSpan:o+s+i}))}renderFoot(){if(!this.state._dataFoot||0===this.state._dataFoot.length)return null;const e=this.createDataField(this.state._dataFoot,this.state._headerCells,!0);return h("tfoot",{class:"kol-table__footer"},[this.renderSpacer("foot",e),e.map((e,t)=>this.renderTableRow(e,t,!0,!0))])}render(){var e;const t=this.createDataField(this.state._data,this.state._headerCells);this.checkboxRefs=[];const a=null===(e=this.state._headerCells.horizontal)||void 0===e?void 0:e.map(e=>this.sortByColumnPosition(e));return h("div",{key:"a66eb9f22e8267d1bfcc00b2429b8234e07beb51",class:"kol-table"},this.state._hasSettingsMenu&&h(KolTableSettingsWcTag,{key:"8c5bfcc3f01813773d07912fcf2fa78455efac06",_tableSettings:this.state._tableSettings}),h("div",{key:"6f9ac777bae4c27c80052aeeae5678ddff56a6bc",ref:e=>this.tableDivElement=e,class:"kol-table__scroll-container",tabindex:this.tableDivElementHasScrollbar?"-1":void 0},h("table",{key:"89710649cdcd7fcca523656de8f8b13fc3d9509f",class:"kol-table__table",style:{minWidth:this.getTableMinWidth()}},h("caption",{key:"0f5550f8377daed2043a18de8c2cdb5b6e45f554",class:"kol-table__focus-element kol-table__caption",id:"caption",tabindex:this.tableDivElementHasScrollbar?"0":void 0},this.state._label),Array.isArray(a)&&h("thead",{key:"83577b101b26b8ee80bc81ccd12526fb78f576c4",class:"kol-table__head"},[a.map((e,t)=>h("tr",{class:"kol-table__head-row",key:`thead-${t}`},this.state._selection&&this.renderHeadingSelectionCell(),0===t&&this.renderHeaderTdCell(),Array.isArray(e)&&e.map((e,a)=>this.renderHeadingCell(e,t,a,!1)))),this.renderSpacer("head",a)]),h("tbody",{key:"6fe763adb26ca11ebea14f035200df42c970d5cd",class:"kol-table__body"},t.map((e,t)=>this.renderTableRow(e,t,!0))),this.renderFoot())))}get host(){return this}static get watchers(){return{_hasSettingsMenu:["validateHasSettingsMenu"],_data:["validateData"],_dataFoot:["validateDataFoot"],_headerCells:["validateHeaderCells"],_label:["validateLabel"],_minWidth:["validateMinWidth"],_on:["validateOn"],_selection:["validateSelection"],_tableSettings:["validateTableSettings"]}}},[256,"kol-table-stateless-wc",{_data:[1],_dataFoot:[1,"_data-foot"],_headerCells:[1,"_header-cells"],_label:[1],_minWidth:[1,"_min-width"],_on:[16],_selection:[1],_tableSettings:[16],_hasSettingsMenu:[4,"_has-settings-menu"],state:[32],tableDivElementHasScrollbar:[32],previousHeaderCells:[32]},[[0,"keydown","handleKeyDown"],[0,"settingsChange","handleSettingsChange"]],{_hasSettingsMenu:["validateHasSettingsMenu"],_data:["validateData"],_dataFoot:["validateDataFoot"],_headerCells:["validateHeaderCells"],_label:["validateLabel"],_minWidth:["validateMinWidth"],_on:["validateOn"],_selection:["validateSelection"],_tableSettings:["validateTableSettings"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-table-stateless-wc"].forEach(e=>{if("kol-table-stateless-wc"===e)customElements.get(e)||customElements.define(e,KolTableStateless)})}const KolTableStatelessWc=KolTableStateless,defineCustomElement=defineCustomElement$1;export{KolTableStatelessWc,defineCustomElement};
|
|
4
|
+
import{proxyCustomElement as t,HTMLElement as e,h as i,Fragment as n,transformTag as r}from"@stencil/core/internal/client";import{c as o}from"./clsx.js";import{e as l,a,d as s,r as c}from"./component-names.js";import{t as u}from"./i18n.js";import{Q as h,o as d,p as f,w as v,s as b}from"./common.js";import{b as _,v as p,a as y,f as k,c as m,e as j}from"./table-settings.js";import{v as g}from"./label.js";import{C as w}from"./keyboard.js";import{n as S}from"./dev.utils.js";import{d as A,K as O}from"./events.js";import{i as C,c as D,r as x,a as M,f as $,b as W,S as F}from"./isObject.js";function H(t){if(!C(t))return!1;var e=D(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var T=x["__core-js_shared__"],E=function(){var t=/[^.]+$/.exec(T&&T.keys&&T.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),K=Function.prototype.toString;function P(t){if(null!=t){try{return K.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var z=/^\[object .+?Constructor\]$/,R=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function L(t,e){var a=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!C(t)||function(t){return!!E&&E in t}(t))&&(H(t)?R:z).test(P(t))}(a)?a:void 0}var N=L(x,"WeakMap"),B=/^(?:0|[1-9]\d*)$/;function I(t,e){var a=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==a||"symbol"!=a&&B.test(t))&&t>-1&&t%1==0&&t<e}function V(t,e){return t===e||t!=t&&e!=e}function U(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}var q=Object.prototype;function G(t){return M(t)&&"[object Arguments]"==D(t)}var Q=Object.prototype,J=Q.hasOwnProperty,X=Q.propertyIsEnumerable,Y=G(function(){return arguments}())?G:function(t){return M(t)&&J.call(t,"callee")&&!X.call(t,"callee")},Z="object"==typeof exports&&exports&&!exports.nodeType&&exports,tt=Z&&"object"==typeof module&&module&&!module.nodeType&&module,et=tt&&tt.exports===Z?x.Buffer:void 0,it=(et?et.isBuffer:void 0)||function(){return!1},nt={};nt["[object Float32Array]"]=nt["[object Float64Array]"]=nt["[object Int8Array]"]=nt["[object Int16Array]"]=nt["[object Int32Array]"]=nt["[object Uint8Array]"]=nt["[object Uint8ClampedArray]"]=nt["[object Uint16Array]"]=nt["[object Uint32Array]"]=!0,nt["[object Arguments]"]=nt["[object Array]"]=nt["[object ArrayBuffer]"]=nt["[object Boolean]"]=nt["[object DataView]"]=nt["[object Date]"]=nt["[object Error]"]=nt["[object Function]"]=nt["[object Map]"]=nt["[object Number]"]=nt["[object Object]"]=nt["[object RegExp]"]=nt["[object Set]"]=nt["[object String]"]=nt["[object WeakMap]"]=!1;var rt="object"==typeof exports&&exports&&!exports.nodeType&&exports,ot=rt&&"object"==typeof module&&module&&!module.nodeType&&module,lt=ot&&ot.exports===rt&&$.process,at=function(){try{return ot&&ot.require&&ot.require("util").types||lt&<.binding&<.binding("util")}catch(t){}}(),st=at&&at.isTypedArray,ct=st?function(t){return function(e){return t(e)}}(st):function(t){return M(t)&&U(t.length)&&!!nt[D(t)]},ut=Object.prototype.hasOwnProperty,ht=function(t,e){return function(a){return t(e(a))}}(Object.keys,Object),dt=Object.prototype.hasOwnProperty;function ft(t){return function(t){return null!=t&&U(t.length)&&!H(t)}(t)?function(t){var e=W(t),a=!e&&Y(t),r=!e&&!a&&it(t),n=!e&&!a&&!r&&ct(t),i=e||a||r||n,o=i?function(t,e){for(var a=-1,r=Array(t);++a<t;)r[a]=e(a);return r}(t.length,String):[],l=o.length;for(var s in t)!ut.call(t,s)||i&&("length"==s||r&&("offset"==s||"parent"==s)||n&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||I(s,l))||o.push(s);return o}(t):function(t){if(!function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||q)}(t))return ht(t);var e=[];for(var a in Object(t))dt.call(t,a)&&"constructor"!=a&&e.push(a);return e}(t)}var vt=L(Object,"create"),bt=Object.prototype.hasOwnProperty,_t=Object.prototype.hasOwnProperty;function pt(t){var e=-1,a=null==t?0:t.length;for(this.clear();++e<a;){var r=t[e];this.set(r[0],r[1])}}function yt(t,e){for(var a=t.length;a--;)if(V(t[a][0],e))return a;return-1}pt.prototype.clear=function(){this.__data__=vt?vt(null):{},this.size=0},pt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},pt.prototype.get=function(t){var e=this.__data__;if(vt){var a=e[t];return"__lodash_hash_undefined__"===a?void 0:a}return bt.call(e,t)?e[t]:void 0},pt.prototype.has=function(t){var e=this.__data__;return vt?void 0!==e[t]:_t.call(e,t)},pt.prototype.set=function(t,e){var a=this.__data__;return this.size+=this.has(t)?0:1,a[t]=vt&&void 0===e?"__lodash_hash_undefined__":e,this};var kt=Array.prototype.splice;function mt(t){var e=-1,a=null==t?0:t.length;for(this.clear();++e<a;){var r=t[e];this.set(r[0],r[1])}}mt.prototype.clear=function(){this.__data__=[],this.size=0},mt.prototype.delete=function(t){var e=this.__data__,a=yt(e,t);return!(a<0||(a==e.length-1?e.pop():kt.call(e,a,1),--this.size,0))},mt.prototype.get=function(t){var e=this.__data__,a=yt(e,t);return a<0?void 0:e[a][1]},mt.prototype.has=function(t){return yt(this.__data__,t)>-1},mt.prototype.set=function(t,e){var a=this.__data__,r=yt(a,t);return r<0?(++this.size,a.push([t,e])):a[r][1]=e,this};var jt=L(x,"Map");function gt(t,e){var a=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?a["string"==typeof e?"string":"hash"]:a.map}function wt(t){var e=-1,a=null==t?0:t.length;for(this.clear();++e<a;){var r=t[e];this.set(r[0],r[1])}}function St(t){var e=this.__data__=new mt(t);this.size=e.size}wt.prototype.clear=function(){this.size=0,this.__data__={hash:new pt,map:new(jt||mt),string:new pt}},wt.prototype.delete=function(t){var e=gt(this,t).delete(t);return this.size-=e?1:0,e},wt.prototype.get=function(t){return gt(this,t).get(t)},wt.prototype.has=function(t){return gt(this,t).has(t)},wt.prototype.set=function(t,e){var a=gt(this,t),r=a.size;return a.set(t,e),this.size+=a.size==r?0:1,this},St.prototype.clear=function(){this.__data__=new mt,this.size=0},St.prototype.delete=function(t){var e=this.__data__,a=e.delete(t);return this.size=e.size,a},St.prototype.get=function(t){return this.__data__.get(t)},St.prototype.has=function(t){return this.__data__.has(t)},St.prototype.set=function(t,e){var a=this.__data__;if(a instanceof mt){var r=a.__data__;if(!jt||r.length<199)return r.push([t,e]),this.size=++a.size,this;a=this.__data__=new wt(r)}return a.set(t,e),this.size=a.size,this};var At=Object.prototype.propertyIsEnumerable,Ot=Object.getOwnPropertySymbols,Ct=Ot?function(t){return null==t?[]:function(t,e){for(var a=-1,r=null==t?0:t.length,n=0,i=[];++a<r;){var o=t[a];e(o)&&(i[n++]=o)}return i}(Ot(t=Object(t)),function(e){return At.call(t,e)})}:function(){return[]};function Dt(t){return function(t,e,a){var r=ft(t);return W(t)?r:function(t,e){for(var a=-1,r=e.length,n=t.length;++a<r;)t[n+a]=e[a];return t}(r,a(t))}(t,0,Ct)}var xt=L(x,"DataView"),Mt=L(x,"Promise"),$t=L(x,"Set"),Wt="[object Map]",Ft="[object Promise]",Ht="[object Set]",Tt="[object WeakMap]",Et="[object DataView]",Kt=P(xt),Pt=P(jt),zt=P(Mt),Rt=P($t),Lt=P(N),Nt=D;(xt&&Nt(new xt(new ArrayBuffer(1)))!=Et||jt&&Nt(new jt)!=Wt||Mt&&Nt(Mt.resolve())!=Ft||$t&&Nt(new $t)!=Ht||N&&Nt(new N)!=Tt)&&(Nt=function(t){var e=D(t),a="[object Object]"==e?t.constructor:void 0,r=a?P(a):"";if(r)switch(r){case Kt:return Et;case Pt:return Wt;case zt:return Ft;case Rt:return Ht;case Lt:return Tt}return e});var Bt=x.Uint8Array;function It(t){var e=-1,a=null==t?0:t.length;for(this.__data__=new wt;++e<a;)this.add(t[e])}function Vt(t,e){for(var a=-1,r=null==t?0:t.length;++a<r;)if(e(t[a],a,t))return!0;return!1}function Ut(t,e){return t.has(e)}function qt(t,e,a,r,n,i){var o=1&a,l=t.length,s=e.length;if(l!=s&&!(o&&s>l))return!1;var c=i.get(t),h=i.get(e);if(c&&h)return c==e&&h==t;var d=-1,u=!0,b=2&a?new It:void 0;for(i.set(t,e),i.set(e,t);++d<l;){var _=t[d],f=e[d];if(r)var v=o?r(f,_,d,e,t,i):r(_,f,d,t,e,i);if(void 0!==v){if(v)continue;u=!1;break}if(b){if(!Vt(e,function(t,e){if(!Ut(b,e)&&(_===t||n(_,t,a,r,i)))return b.push(e)})){u=!1;break}}else if(_!==f&&!n(_,f,a,r,i)){u=!1;break}}return i.delete(t),i.delete(e),u}function Gt(t){var e=-1,a=Array(t.size);return t.forEach(function(t,r){a[++e]=[r,t]}),a}function Qt(t){var e=-1,a=Array(t.size);return t.forEach(function(t){a[++e]=t}),a}It.prototype.add=It.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},It.prototype.has=function(t){return this.__data__.has(t)};var Jt=F?F.prototype:void 0,Xt=Jt?Jt.valueOf:void 0,Yt=Object.prototype.hasOwnProperty,Zt="[object Arguments]",te="[object Array]",ee="[object Object]",ie=Object.prototype.hasOwnProperty;function ne(t,e,a,r,n){return t===e||(null==t||null==e||!M(t)&&!M(e)?t!=t&&e!=e:function(t,e,a,r,n,i){var o=W(t),l=W(e),s=o?te:Nt(t),c=l?te:Nt(e),h=(s=s==Zt?ee:s)==ee,d=(c=c==Zt?ee:c)==ee,u=s==c;if(u&&it(t)){if(!it(e))return!1;o=!0,h=!1}if(u&&!h)return i||(i=new St),o||ct(t)?qt(t,e,a,r,n,i):function(t,e,a,r,n,i,o){switch(a){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!i(new Bt(t),new Bt(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return V(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var l=Gt;case"[object Set]":if(l||(l=Qt),t.size!=e.size&&!(1&r))return!1;var s=o.get(t);if(s)return s==e;r|=2,o.set(t,e);var c=qt(l(t),l(e),r,n,i,o);return o.delete(t),c;case"[object Symbol]":if(Xt)return Xt.call(t)==Xt.call(e)}return!1}(t,e,s,a,r,n,i);if(!(1&a)){var b=h&&ie.call(t,"__wrapped__"),_=d&&ie.call(e,"__wrapped__");if(b||_){var f=b?t.value():t,v=_?e.value():e;return i||(i=new St),n(f,v,a,r,i)}}return!!u&&(i||(i=new St),function(t,e,a,r,n,i){var o=1&a,l=Dt(t),s=l.length;if(s!=Dt(e).length&&!o)return!1;for(var c=s;c--;){var h=l[c];if(!(o?h in e:Yt.call(e,h)))return!1}var d=i.get(t),u=i.get(e);if(d&&u)return d==e&&u==t;var b=!0;i.set(t,e),i.set(e,t);for(var _=o;++c<s;){var f=t[h=l[c]],v=e[h];if(r)var p=o?r(v,f,h,e,t,i):r(f,v,h,t,e,i);if(!(void 0===p?f===v||n(f,v,a,r,i):p)){b=!1;break}_||(_="constructor"==h)}if(b&&!_){var y=t.constructor,g=e.constructor;y==g||!("constructor"in t)||!("constructor"in e)||"function"==typeof y&&y instanceof y&&"function"==typeof g&&g instanceof g||(b=!1)}return i.delete(t),i.delete(e),b}(t,e,a,r,n,i))}(t,e,a,r,ne,n))}const re=/^\d+(\.\d+)?([a-z]+|%)?$/,oe=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.translateNoEntries=u("kol-no-entries"),this.state={_data:[],_headerCells:{horizontal:[],vertical:[]},_label:"",_minWidth:"auto",_hasSettingsMenu:!1},this.horizontal=!0,this.cellsToRenderTimeouts=new Map,this.dataToKeyMap=new Map,this.checkboxRefs=[],this.translateSort=u("kol-sort"),this.tableDivElementHasScrollbar=!1,this.renderTableRow=(t,e,a,r=!1)=>{var n,l;let s=e+"";return this.horizontal&&(null===(n=t[0])||void 0===n?void 0:n.data)&&(s=null!==(l=this.getDataKey(t[0].data))&&void 0!==l?l:s),i("tr",{class:o("kol-table__row",{"kol-table__row--body":!r,"kol-table__row--footer":r}),key:"row-"+s},this.renderSelectionCell(t,e),t.map((t,r)=>this.renderTableCell(t,e,r,a)))},this.renderTableCell=(t,e,a,r)=>{const n=this.getColumnSettings(t);if(n&&!n.visible)return"";let l=`${e}-${a}-${t.label}`;if(t.data){const r=this.getDataKey(t.data);l=r?`${r}-${this.horizontal?a:e}`:l}if(t.headerCell)return this.renderHeadingCell(t,e,a,r);{const e="function"!=typeof t.render&&t.label===this.translateNoEntries;return i("td",{key:"cell-"+l,class:o("kol-table__cell kol-table__cell--body",{["kol-table__cell--align-"+t.textAlign]:t.textAlign}),"aria-atomic":e?"false":void 0,"aria-live":e?"polite":void 0,"aria-relevant":e?"text":void 0,colSpan:t.colSpan,rowSpan:t.rowSpan,style:{textAlign:t.textAlign,width:(null==n?void 0:n.width)?n.width+"ch":t.width},ref:"function"==typeof t.render?e=>{this.cellRender(t,e)}:void 0},"function"!=typeof t.render?t.label:"")}}}validateHasSettingsMenu(t){_(this,t)}validateData(t){p(this,t,{beforePatch:t=>{this.updateDataToKeyMap(t)}})}validateDataFoot(t){y(this,t)}validateHeaderCells(t){((t,e)=>{h(e,()=>{d(e,()=>{try{e=f(e)}catch(t){}v(t,"_headerCells",t=>"object"==typeof t&&null!==t&&(void 0===t.horizontal||Array.isArray(t.horizontal)&&void 0===t.horizontal.find(t=>!Array.isArray(t)))&&(void 0===t.vertical||Array.isArray(t.vertical)&&void 0===t.vertical.find(t=>!Array.isArray(t)))&&!0,new Set(["TableHeaderCellsPropType"]),e)})})})(this,t),function(t,e){return ne(t,e)}(this.previousHeaderCells,this.state._headerCells)||this.initializeTableSettings(),this.previousHeaderCells=this.state._headerCells}validateLabel(t){g(this,t,{required:!0})}validateMinWidth(t){((t,e)=>{v(this,"_minWidth",t=>"string"==typeof t&&re.test(t),new Set(["String","/^\\d+(\\.\\d+)?([a-z]+|%)?$/"]),e,void 0)})(0,t)}validateOn(t){k(this,t)}validateSelection(t){m(this,t)}validateTableSettings(t){j(this,this.normalizeTableSettings(t))}normalizeTableSettings(t){if(!t||"object"!=typeof t)return t;const e=Array.isArray(t.columns)?t.columns:[];return Object.assign(Object.assign({},t),{columns:e.map(({hidable:t,key:e,label:a,resizable:r,sortable:n,visible:i,width:o})=>({hidable:!1!==t,key:null!=e?e:S(),label:a,resizable:!1!==r,sortable:!1!==n,visible:!1!==i,width:o}))})}handleKeyDown(t){var e;if("ArrowUp"===t.key||"ArrowDown"===t.key){const a=null===(e=this.tableDivElement)||void 0===e?void 0:e.querySelector(":focus");let r=this.checkboxRefs.indexOf(a);r>-1&&(t.preventDefault(),"ArrowDown"===t.key?(r=(r+1)%this.checkboxRefs.length,this.checkboxRefs[r].focus()):"ArrowUp"===t.key&&(t.preventDefault(),r=(r+this.checkboxRefs.length-1)%this.checkboxRefs.length,this.checkboxRefs[r].focus()))}}componentDidRender(){this.checkDivElementScrollbar()}componentDidLoad(){this.tableDivElement&&ResizeObserver&&(this.tableDivElementResizeObserver=new ResizeObserver(this.checkDivElementScrollbar.bind(this)),this.tableDivElementResizeObserver.observe(this.tableDivElement))}handleSettingsChange(t){b(this,"_tableSettings",t.detail)}disconnectedCallback(){var t;null===(t=this.tableDivElementResizeObserver)||void 0===t||t.disconnect()}checkDivElementScrollbar(){this.tableDivElement&&(this.tableDivElementHasScrollbar=this.tableDivElement.scrollWidth>this.tableDivElement.clientWidth)}updateDataToKeyMap(t){t.forEach(t=>{this.dataToKeyMap.has(t)||this.dataToKeyMap.set(t,S())}),this.dataToKeyMap.forEach((e,a)=>{t.includes(a)||this.dataToKeyMap.delete(a)})}getDataKey(t){return this.dataToKeyMap.get(t)}cellRender(t,e){e&&(clearTimeout(this.cellsToRenderTimeouts.get(e)),this.cellsToRenderTimeouts.set(e,setTimeout(()=>{if("function"==typeof t.render){const a=t.render(e,t,t.data,this.state._data);"string"==typeof a&&(e.textContent=a)}})))}getNumberOfCols(t,e){let a=0;return t.forEach(t=>{let e=0;Array.isArray(t)&&t.forEach(t=>{var a;return e+=null!==(a=t.colSpan)&&void 0!==a?a:1}),a<e&&(a=e)}),0===a&&(a=e.length),a}getNumberOfRows(t,e){var a;let r=0;return t.forEach(t=>{let e=0;Array.isArray(t)&&t.forEach(t=>{var a;return e+=null!==(a=t.rowSpan)&&void 0!==a?a:1}),r<e&&(r=e)}),0===r?r=e.length:r-=(null===(a=this.state._dataFoot)||void 0===a?void 0:a.length)||0,r}getThePrimaryHeadersWithKeyOrRenderFunction(t){const e=[];return t.forEach(t=>{t.forEach(t=>{"string"!=typeof t.key&&"function"!=typeof t.render||e.push(t)})}),e}getPrimaryHeaders(t){var e,a;let r=this.getThePrimaryHeadersWithKeyOrRenderFunction(null!==(e=t.horizontal)&&void 0!==e?e:[]);return this.horizontal=!0,0===r.length&&(r=this.getThePrimaryHeadersWithKeyOrRenderFunction(null!==(a=t.vertical)&&void 0!==a?a:[]),r.length>0&&(this.horizontal=!1)),r}getColumnPositionMap(){var t;const e=new Map;return null===(t=this.state._tableSettings)||void 0===t||t.columns.forEach((t,a)=>{e.set(t.key,a)}),e}sortByColumnPosition(t){const e=this.getColumnPositionMap();return t.map((t,e)=>({column:t,index:e})).sort((t,a)=>{var r,n,i,o;const l=null!==(n=e.get(null!==(r=t.column.key)&&void 0!==r?r:""))&&void 0!==n?n:Number.MAX_SAFE_INTEGER,s=null!==(o=e.get(null!==(i=a.column.key)&&void 0!==i?i:""))&&void 0!==o?o:Number.MAX_SAFE_INTEGER;return l!==s?l-s:t.index-a.index}).map(({column:t})=>t)}createDataField(t,e,a){var r;e.horizontal=Array.isArray(null==e?void 0:e.horizontal)?e.horizontal:[],e.vertical=Array.isArray(null==e?void 0:e.vertical)?e.vertical:[];const n=this.getPrimaryHeaders(e),i=this.getNumberOfCols(e.horizontal,t);let o=this.getNumberOfRows(e.vertical,t),l=0;a&&(l=o,o+=(null===(r=this.state._dataFoot)||void 0===r?void 0:r.length)||0);const s=[],c=[],h=[];e.vertical.forEach((t,e)=>{c[e]=0,h[e]=[]});const d=this.sortByColumnPosition(n);for(let r=l;r<o;r++){const n=[];e.vertical.forEach((t,e)=>{let a=0;if(h[e].forEach(t=>a+=t),a<=r){const i=t[r-a+c[e]];if("object"==typeof i){n.push(Object.assign(Object.assign({},i),{headerCell:!0,data:{}}));let t=1;if("number"==typeof i.rowSpan&&i.rowSpan>1&&(t=i.rowSpan),h[e].push(t),"number"==typeof i.colSpan&&i.colSpan>1)for(let a=1;a<i.colSpan;a++)h[e+a].push(t);c[e]++}}});for(let e=0;e<i;e++)if(!0===this.horizontal){const i=a&&this.state._dataFoot?this.state._dataFoot[r-l]:t[r];"object"!=typeof d[e]||null===d[e]||"object"!=typeof i||null===i||"string"!=typeof d[e].key&&"function"!=typeof d[e].render||n.push(Object.assign(Object.assign({},d[e]),{colSpan:void 0,data:i,label:i[d[e].key],rowSpan:void 0}))}else"object"!=typeof d[r]||null===d[r]||"object"!=typeof t[e]||null===t[e]||"string"!=typeof d[r].key&&"function"!=typeof d[r].render||n.push(Object.assign(Object.assign({},d[r]),{colSpan:void 0,data:t[e],label:t[e][d[r].key],rowSpan:void 0}));s.push(n)}if(0===t.length){let t=0,a=0;Array.isArray(e.horizontal)&&e.horizontal.length>0&&e.horizontal[0].forEach(e=>{t+=e.colSpan||1}),Array.isArray(e.vertical)&&e.vertical.length>0&&(t-=e.vertical.length,e.vertical[0].forEach(t=>{a+=t.rowSpan||1}));const r={colSpan:t,label:this.translateNoEntries,render:void 0,rowSpan:Math.max(a,1)};0===s.length?s.push([r]):s[0].push(r)}return s}handleSelectionChangeCallbackAndEvent(t,e){var a;"function"==typeof(null===(a=this.state._on)||void 0===a?void 0:a[w.onSelectionChange])&&this.state._on[w.onSelectionChange](t,e),this.host&&A(this.host,O.selectionChange,e)}initializeTableSettings(){if(this._tableSettings)return;const t=this.getPrimaryHeaders(this.state._headerCells);this.state._tableSettings||(this.state._tableSettings={columns:[]}),this.state._tableSettings.columns=t.filter(t=>t.key).map(t=>{var e;return{hidable:!1!==t.hidable,sortable:!1!==t.sortable,resizable:!1!==t.resizable,key:null!==(e=t.key)&&void 0!==e?e:S(),label:t.label,visible:!0}})}componentWillLoad(){this.validateData(this._data),this.validateDataFoot(this._dataFoot),this.validateHeaderCells(this._headerCells),this.validateLabel(this._label),this.validateMinWidth(this._minWidth),this.validateOn(this._on),this.validateSelection(this._selection),this.validateTableSettings(this._tableSettings),this.validateHasSettingsMenu(this._hasSettingsMenu)}renderSelectionCell(t,e){var r;const n=this.state._selection;if(!n)return"";const s=this.getSelectionKeyPropertyName(),c=null===(r=t[0])||void 0===r?void 0:r.data;if(!c)return"";const h=c[s],d=n.multiple||void 0===n.multiple,u=(()=>{const t=null==n?void 0:n.selectedKeys;return(void 0===t?[]:Array.isArray(t)?t:[t]).some(t=>t+""==h+"")})(),b=(()=>{const t=null==n?void 0:n.disabledKeys;return(void 0===t?[]:Array.isArray(t)?t:[t]).some(t=>t+""==h+"")})(),_=n.label(c),f={name:"selection",checked:u,disabled:b,id:h+"","aria-label":_};return i("td",{key:`tbody-${e}-selection`,class:"kol-table__cell kol-table__cell--selection"},i("div",{class:o("kol-table__selection",{"kol-table__selection--checked":u})},d?i("label",{class:o("kol-table__selection-label",{"kol-table__selection-label--disabled":b})},i(l,{class:"kol-table__selection-icon",_icons:"codicon "+(u?"codicon-check":""),_label:""}),i("input",Object.assign({class:o("kol-table__selection-input kol-table__selection-input--checkbox"),ref:t=>t&&this.checkboxRefs.push(t)},f,{type:"checkbox",onInput:t=>{const e=(()=>{const t=null==n?void 0:n.selectedKeys;return void 0===t?[]:Array.isArray(t)?t:[t]})(),a=u?e.filter(t=>t+""!=h+""):[...e,h];this.handleSelectionChangeCallbackAndEvent(t,null!=a?a:[])}}))):i("label",{class:"kol-table__selection-label"},i("input",Object.assign({class:o("kol-table__selection-input kol-table__selection-input--radio")},f,{type:"radio",onInput:t=>{this.handleSelectionChangeCallbackAndEvent(t,h)}}))),i(a,{"aria-hidden":"true",class:"kol-table__selection-input-tooltip",_align:"right",_id:h+"-label",_label:_})))}getColumnSettings(t){var e;return null===(e=this.state._tableSettings)||void 0===e?void 0:e.columns.find(e=>e.key===t.key)}getSelectionKeyPropertyName(){var t,e;return null!==(e=null===(t=this.state._selection)||void 0===t?void 0:t.keyPropertyName)&&void 0!==e?e:"id"}getDataWithSelectionEnabled(){const t=this.getSelectionKeyPropertyName();return this.state._data.filter(e=>{var a;const r=null===(a=this.state._selection)||void 0===a?void 0:a.disabledKeys;return!(void 0===r?[]:Array.isArray(r)?r:[r]).some(a=>a+""==e[t]+"")})}getSelectedKeysWithoutDisabledKeys(){const t=(()=>{var t;const e=null===(t=this.state._selection)||void 0===t?void 0:t.selectedKeys;return void 0===e?[]:Array.isArray(e)?e:[e]})(),e=(()=>{var t;const e=null===(t=this.state._selection)||void 0===t?void 0:t.disabledKeys;return void 0===e?[]:Array.isArray(e)?e:[e]})();return t.filter(t=>!e.some(e=>e+""==t+""))}getSelectedKeysWithDisabledKeysOnly(){const t=(()=>{var t;const e=null===(t=this.state._selection)||void 0===t?void 0:t.selectedKeys;return void 0===e?[]:Array.isArray(e)?e:[e]})(),e=(()=>{var t;const e=null===(t=this.state._selection)||void 0===t?void 0:t.disabledKeys;return void 0===e?[]:Array.isArray(e)?e:[e]})();return t.filter(t=>e.some(e=>e+""==t+""))}getRevertedSelection(t){var e;const a=this.getSelectionKeyPropertyName(),r=null!==(e=this.getSelectedKeysWithDisabledKeysOnly())&&void 0!==e?e:[];return t&&r.push(...this.getDataWithSelectionEnabled().map(t=>null==t?void 0:t[a])),r}getTableMinWidth(){var t,e;const a=null!==(e=null===(t=this.state._tableSettings)||void 0===t?void 0:t.columns.filter(t=>t.visible).reduce((t,e)=>{var a;return t+(null!==(a=e.width)&&void 0!==a?a:0)},0))&&void 0!==e?e:0;return"auto"===this.state._minWidth?a+"ch":`max(${this.state._minWidth}, ${a}ch)`}renderHeadingSelectionCell(){var t,e;const r=this.state._selection;if(!r)return i("th",{class:"kol-table__cell kol-table__cell--header",key:"thead-0"});if(!1===r.multiple)return i("td",{key:"thead-0-selection",class:"kol-table__cell kol-table__cell--header kol-table__cell--selection"});const n=null!==(e=null===(t=this.getSelectedKeysWithoutDisabledKeys())||void 0===t?void 0:t.length)&&void 0!==e?e:0,s=n===this.getDataWithSelectionEnabled().length,c=0!==n&&!s;let h="kol-table-selection-indeterminate";s&&!c&&(h="kol-table-selection-none"),0===n&&(h="kol-table-selection-all");const d=u(h);return i("th",{key:"thead-0-selection",class:"kol-table__cell kol-table__cell--header kol-table__cell--selection"},i("div",{class:o("kol-table__selection",{"kol-table__selection--indeterminate":c,"kol-table__selection--checked":s})},i("label",{class:"kol-table__selection-label"},i(l,{class:"kol-table__selection-icon",_icons:"codicon "+(c?"codicon-remove":s?"codicon-check":""),_label:""}),i("input",{class:o("kol-table__selection-input kol-table__selection-input--checkbox"),"data-testid":"selection-checkbox-all",ref:t=>t&&this.checkboxRefs.push(t),name:"selection",checked:s&&!c,indeterminate:c,"aria-label":d,type:"checkbox",onInput:t=>{this.handleSelectionChangeCallbackAndEvent(t,this.getRevertedSelection(!s))}})),i(a,{"aria-hidden":"true",class:"kol-table__selection-input-tooltip",_align:"right",_id:h+"-label",_label:d})))}renderHeaderTdCell(){return i(n,null,Array.isArray(this.state._headerCells.horizontal)&&this.state._headerCells.horizontal.length>0&&Array.isArray(this.state._headerCells.vertical)&&this.state._headerCells.vertical.length>0&&Array.isArray(this.state._headerCells.horizontal)&&i("td",{"aria-hidden":"true",colSpan:this.state._headerCells.vertical.length,rowSpan:this.state._headerCells.horizontal.length}))}renderHeadingCell(t,e,a,r){const n=this.getColumnSettings(t);if(n&&!n.visible)return"";const l=!1!==(null==n?void 0:n.sortable)&&"string"==typeof t.sortDirection;let c="none",h="codicon codicon-fold";if(l&&t.sortDirection)switch(t.sortDirection){case"ASC":h="codicon codicon-chevron-up",c="ascending";break;case"DESC":h="codicon codicon-chevron-down",c="descending";break;default:c="none"}const d=r?"row":"number"==typeof t.colSpan&&t.colSpan>1?"colgroup":"col";return i("th",{key:`${e}-${a}-${t.label}`,class:o("kol-table__cell kol-table__cell--header",{["kol-table__cell--align-"+t.textAlign]:t.textAlign,["kol-table__cell--"+c]:c}),scope:d,colSpan:t.colSpan,rowSpan:t.rowSpan,style:{width:(null==n?void 0:n.width)?n.width+"ch":t.width},"aria-sort":c,"data-sort":l&&t.sortDirection?"sort-"+t.sortDirection:void 0},l&&t.sortDirection?i(s,{class:"kol-table__sort-button",exportparts:"icon",_icons:{right:h},_label:t.label,_ariaDescription:this.translateSort,_on:{onClick:e=>{var a;"function"==typeof(null===(a=this.state._on)||void 0===a?void 0:a.onSort)&&t.key&&t.sortDirection&&this.state._on.onSort(e,{key:t.key,currentSortDirection:t.sortDirection}),this.host&&A(this.host,O.sort,{key:t.key,currentSortDirection:t.sortDirection})}}}):t.label)}renderSpacer(t,e){var a,r;const n=(null===(a=this.state._headerCells.vertical)||void 0===a?void 0:a.length)||0,l=null===(r=null==e?void 0:e[0])||void 0===r?void 0:r.reduce((t,e)=>t+(e.colSpan||1),0),s=this.state._selection?1:0;return i("tr",{"aria-hidden":"true",class:o("kol-table__spacer","kol-table__spacer--"+t)},i("td",{class:o("kol-table__spacer-line kol-table__spacer-line--"+t),colSpan:n+l+s}))}renderFoot(){if(!this.state._dataFoot||0===this.state._dataFoot.length)return null;const t=this.createDataField(this.state._dataFoot,this.state._headerCells,!0);return i("tfoot",{class:"kol-table__footer"},[this.renderSpacer("foot",t),t.map((t,e)=>this.renderTableRow(t,e,!0,!0))])}render(){var t;const e=this.createDataField(this.state._data,this.state._headerCells);this.checkboxRefs=[];const a=null===(t=this.state._headerCells.horizontal)||void 0===t?void 0:t.map(t=>this.sortByColumnPosition(t));return i("div",{key:"a66eb9f22e8267d1bfcc00b2429b8234e07beb51",class:"kol-table"},this.state._hasSettingsMenu&&i(c,{key:"8c5bfcc3f01813773d07912fcf2fa78455efac06",_tableSettings:this.state._tableSettings}),i("div",{key:"6f9ac777bae4c27c80052aeeae5678ddff56a6bc",ref:t=>this.tableDivElement=t,class:"kol-table__scroll-container",tabindex:this.tableDivElementHasScrollbar?"-1":void 0},i("table",{key:"89710649cdcd7fcca523656de8f8b13fc3d9509f",class:"kol-table__table",style:{minWidth:this.getTableMinWidth()}},i("caption",{key:"0f5550f8377daed2043a18de8c2cdb5b6e45f554",class:"kol-table__focus-element kol-table__caption",id:"caption",tabindex:this.tableDivElementHasScrollbar?"0":void 0},this.state._label),Array.isArray(a)&&i("thead",{key:"83577b101b26b8ee80bc81ccd12526fb78f576c4",class:"kol-table__head"},[a.map((t,e)=>i("tr",{class:"kol-table__head-row",key:"thead-"+e},this.state._selection&&this.renderHeadingSelectionCell(),0===e&&this.renderHeaderTdCell(),Array.isArray(t)&&t.map((t,a)=>this.renderHeadingCell(t,e,a,!1)))),this.renderSpacer("head",a)]),i("tbody",{key:"6fe763adb26ca11ebea14f035200df42c970d5cd",class:"kol-table__body"},e.map((t,e)=>this.renderTableRow(t,e,!0))),this.renderFoot())))}get host(){return this}static get watchers(){return{_hasSettingsMenu:[{validateHasSettingsMenu:0}],_data:[{validateData:0}],_dataFoot:[{validateDataFoot:0}],_headerCells:[{validateHeaderCells:0}],_label:[{validateLabel:0}],_minWidth:[{validateMinWidth:0}],_on:[{validateOn:0}],_selection:[{validateSelection:0}],_tableSettings:[{validateTableSettings:0}]}}},[0,"kol-table-stateless-wc",{_data:[1],_dataFoot:[1,"_data-foot"],_headerCells:[1,"_header-cells"],_label:[1],_minWidth:[1,"_min-width"],_on:[16],_selection:[1],_tableSettings:[16],_hasSettingsMenu:[4,"_has-settings-menu"],state:[32],tableDivElementHasScrollbar:[32],previousHeaderCells:[32]},[[0,"keydown","handleKeyDown"],[0,"settingsChange","handleSettingsChange"]],{_hasSettingsMenu:[{validateHasSettingsMenu:0}],_data:[{validateData:0}],_dataFoot:[{validateDataFoot:0}],_headerCells:[{validateHeaderCells:0}],_label:[{validateLabel:0}],_minWidth:[{validateMinWidth:0}],_on:[{validateOn:0}],_selection:[{validateSelection:0}],_tableSettings:[{validateTableSettings:0}]}]),le=oe,ae=function(){"undefined"!=typeof customElements&&["kol-table-stateless-wc"].forEach(t=>{"kol-table-stateless-wc"===t&&(customElements.get(r(t))||customElements.define(r(t),oe))})};export{le as KolTableStatelessWc,ae as defineCustomElement};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{proxyCustomElement,HTMLElement,h}from"@stencil/core/internal/client";import{q as KolTableStatelessWcTag}from"./component-names.js";const defaultStyleCss="@charset \"UTF-8\";\n/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/* forward the rem function */\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-alert {\n display: grid;\n }\n .kol-alert__container {\n display: flex;\n place-items: center;\n }\n .kol-alert__container-content {\n flex-grow: 1;\n }\n .kol-alert__closer {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n }\n :host {\n display: inline-block;\n }\n .kol-button {\n display: inline-flex;\n font-style: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n text-decoration-line: none;\n }\n .kol-button::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: \"\";\n }\n .kol-button__text {\n width: 100%;\n }\n .kol-popover-button__button {\n display: inline-block;\n }\n .kol-popover-button__popover {\n margin: 0;\n padding: 0;\n border: 0;\n }\n .kol-popover-button--inline .kol-popover-button__button {\n display: inline;\n }\n .kol-table-settings {\n background: #fff;\n position: absolute;\n top: 0;\n right: 0;\n z-index: 1;\n }\n .kol-table-settings .kol-popover-button__popover {\n background: #fff;\n box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n border-radius: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n border: 1px solid #d1d5db;\n }\n .kol-table-settings__columns-container {\n max-height: calc(200 * 1rem / var(--kolibri-root-font-size, 16));\n margin-top: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n overflow: auto;\n }\n .kol-table-settings__columns {\n display: grid;\n gap: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n align-items: center;\n grid-auto-rows: min-content;\n grid-template-columns: min-content minmax(max-content, 1fr) calc(100 * 1rem / var(--kolibri-root-font-size, 16)) auto auto;\n }\n .kol-table-settings__column {\n display: contents;\n }\n .kol-table {\n display: block;\n position: relative;\n max-width: 100%;\n }\n .kol-table:has(.kol-table__focus-element:focus) .kol-table__scroll-container {\n /* @see https://remysharp.com/til/css/focus-ring-default-styles */\n outline: 5px auto Highlight;\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: 2px;\n }\n .kol-table__scroll-container {\n overflow-x: auto;\n overflow-y: hidden;\n }\n .kol-table__table {\n width: 100%;\n }\n .kol-table__caption {\n min-height: var(--a11y-min-size);\n padding-right: var(--a11y-min-size);\n text-align: start;\n }\n .kol-table__sort-button .kol-button {\n color: inherit;\n }\n .kol-table__body {\n text-align: left;\n }\n .kol-table__body .kol-button__text {\n justify-items: start;\n }\n .kol-table__cell--align-left {\n text-align: left;\n }\n .kol-table__cell--align-left .kol-button__text {\n align-items: start;\n }\n .kol-table__cell--align-center {\n text-align: center;\n }\n .kol-table__cell--align-center .kol-button__text {\n align-items: center;\n }\n .kol-table__cell--align-right {\n text-align: right;\n }\n .kol-table__cell--align-right .kol-button__text {\n align-items: end;\n }\n .kol-table__cell--selection {\n width: var(--a11y-min-size);\n height: var(--a11y-min-size);\n white-space: nowrap;\n }\n .kol-table__spacer {\n display: none;\n }\n .kol-table__selection-label {\n display: flex;\n position: relative;\n width: var(--a11y-min-size);\n height: var(--a11y-min-size);\n align-items: center;\n justify-content: center;\n cursor: pointer;\n }\n .kol-table__selection-label--disabled {\n cursor: not-allowed;\n }\n .kol-table__selection-icon {\n display: block;\n position: absolute;\n inset: auto;\n z-index: 1;\n }\n .kol-table__selection-input {\n border-style: solid;\n margin: 0;\n appearance: none;\n cursor: pointer;\n }\n .kol-table__selection-input:disabled {\n cursor: not-allowed;\n }\n .kol-table__selection-input:before {\n content: \"\";\n }\n .kol-table__selection-input--checkbox {\n background-color: rgb(255, 255, 255);\n display: flex;\n position: relative;\n width: calc(var(--a11y-min-size) / 2);\n height: calc(var(--a11y-min-size) / 2);\n border-width: 2px;\n align-items: center;\n justify-content: center;\n line-height: 1.5;\n }\n .kol-table__selection-input--radio {\n border-radius: 100%;\n display: flex;\n width: 1.5em;\n min-width: 1.5em;\n height: 1.5em;\n min-height: 1.5em;\n padding: 0;\n border-width: 2px;\n }\n .kol-table__selection-input--radio:before {\n border-radius: 100%;\n width: 0.75em;\n height: 0.75em;\n margin: auto;\n }\n .kol-table__selection-input--radio:checked:before {\n background-color: #000;\n }\n @media (forced-colors: active) {\n .kol-table__selection-input--radio:checked:before {\n /* Give it a visible background in forced colors mode */\n background-color: selectedItem !important;\n }\n }\n}",KolTableStateless$1=proxyCustomElement(class extends HTMLElement{constructor(n){super(),!1!==n&&this.__registerHost(),this.__attachShadow()}render(){return h(KolTableStatelessWcTag,{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})}static get style(){return{default:defaultStyleCss}}},[289,"kol-table-stateless",{_data:[1],_dataFoot:[1,"_data-foot"],_headerCells:[1,"_header-cells"],_label:[1],_minWidth:[1,"_min-width"],_on:[16],_selection:[1],_tableSettings:[16],_hasSettingsMenu:[4,"_has-settings-menu"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-table-stateless"].forEach(n=>{if("kol-table-stateless"===n)customElements.get(n)||customElements.define(n,KolTableStateless$1)})}const KolTableStateless=KolTableStateless$1,defineCustomElement=defineCustomElement$1;export{KolTableStateless,defineCustomElement};
|
|
4
|
+
import{proxyCustomElement as t,HTMLElement as o,h as e,transformTag as i}from"@stencil/core/internal/client";import{q as l}from"./component-names.js";const n=t(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}render(){return e(l,{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})}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component; @layer kol-a11y { :host { --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16)); color: black; background-color: white; font-family: Verdana; letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; white-space: nowrap; clip-path: inset(50%); } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: lightgray; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } .kol-span .kol-span__label--hide-label .kol-span__label { display: none; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled], [disabled]:focus { opacity: 0.5; outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } } @layer kol-component { :host { display: block; } } @layer kol-component { .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: #000; background-color: #fff; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: #000; background-color: #fff; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-alert { display: grid; } .kol-alert__container { display: flex; place-items: center; } .kol-alert__container-content { flex-grow: 1; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); } :host { display: inline-block; } .kol-button { display: inline-flex; font-style: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); text-decoration-line: none; } .kol-button::before { content: ""; } .kol-button__text { width: 100%; } .kol-popover-button__button { display: inline-block; } .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-popover-button--inline .kol-popover-button__button { display: inline; } .kol-table-settings { background: #fff; position: absolute; top: 0; right: 0; z-index: 1; } .kol-table-settings .kol-popover-button__popover { background: #fff; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); border-radius: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); border: 1px solid #d1d5db; } .kol-table-settings__columns-container { max-height: calc(200 * 1rem / var(--kolibri-root-font-size, 16)); margin-top: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); overflow: auto; } .kol-table-settings__columns { display: grid; gap: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); align-items: center; grid-auto-rows: min-content; grid-template-columns: min-content minmax(max-content, 1fr) calc(100 * 1rem / var(--kolibri-root-font-size, 16)) auto auto; } .kol-table-settings__column { display: contents; } .kol-table { display: block; position: relative; max-width: 100%; } .kol-table:has(.kol-table__focus-element:focus) .kol-table__scroll-container { outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color; outline-offset: 2px; } .kol-table__scroll-container { overflow-x: auto; overflow-y: hidden; } .kol-table__table { width: 100%; } .kol-table__caption { min-height: var(--a11y-min-size); padding-right: var(--a11y-min-size); text-align: start; } .kol-table__sort-button .kol-button { color: inherit; } .kol-table__body { text-align: left; } .kol-table__body .kol-button__text { justify-items: start; } .kol-table__cell--align-left { text-align: left; } .kol-table__cell--align-left .kol-button__text { align-items: start; } .kol-table__cell--align-center { text-align: center; } .kol-table__cell--align-center .kol-button__text { align-items: center; } .kol-table__cell--align-right { text-align: right; } .kol-table__cell--align-right .kol-button__text { align-items: end; } .kol-table__cell--selection { width: var(--a11y-min-size); height: var(--a11y-min-size); white-space: nowrap; } .kol-table__spacer { display: none; } .kol-table__selection-label { display: flex; position: relative; width: var(--a11y-min-size); height: var(--a11y-min-size); align-items: center; justify-content: center; cursor: pointer; } .kol-table__selection-label--disabled { cursor: not-allowed; } .kol-table__selection-icon { display: block; position: absolute; inset: auto; z-index: 1; } .kol-table__selection-input { border-style: solid; margin: 0; appearance: none; cursor: pointer; } .kol-table__selection-input:disabled { cursor: not-allowed; } .kol-table__selection-input:before { content: ""; } .kol-table__selection-input--checkbox { background-color: rgb(255, 255, 255); display: flex; position: relative; width: calc(var(--a11y-min-size) / 2); height: calc(var(--a11y-min-size) / 2); border-width: 2px; align-items: center; justify-content: center; line-height: 1.5; } .kol-table__selection-input--radio { border-radius: 100%; display: flex; width: 1.5em; min-width: 1.5em; height: 1.5em; min-height: 1.5em; padding: 0; border-width: 2px; } .kol-table__selection-input--radio:before { border-radius: 100%; width: 0.75em; height: 0.75em; margin: auto; } .kol-table__selection-input--radio:checked:before { background-color: #000; } @media (forced-colors: active) { .kol-table__selection-input--radio:checked:before { background-color: selectedItem !important; } } }'}}},[33,"kol-table-stateless",{_data:[1],_dataFoot:[1,"_data-foot"],_headerCells:[1,"_header-cells"],_label:[1],_minWidth:[1,"_min-width"],_on:[16],_selection:[1],_tableSettings:[16],_hasSettingsMenu:[4,"_has-settings-menu"]}]),a=n,r=function(){"undefined"!=typeof customElements&&["kol-table-stateless"].forEach(t=>{"kol-table-stateless"===t&&(customElements.get(i(t))||customElements.define(i(t),n))})};export{a as KolTableStateless,r as defineCustomElement};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{proxyCustomElement,HTMLElement,h}from"@stencil/core/internal/client";import{w as watchValidator,c as watchBoolean,l as devHint,s as setState,N as watchNumber,q as watchJsonArrayString,M as uiUxHintMillerscheZahl,R as koliBriQuerySelector}from"./common.js";import{v as validateAlign}from"./align.js";import{v as validateLabel}from"./label.js";import{c as clsx}from"./clsx.js";import{d as KolButtonWcTag}from"./component-names.js";import{t as translate}from"./i18n.js";import{K as KeyboardKey}from"./keyboard.js";import{d as dispatchDomEvent,K as KolEvent}from"./events.js";const tabBehaviorPropTypeOptions=["select-automatic","select-manual"],validateTabBehavior=(t,e)=>{watchValidator(t,"_behavior",t=>"string"==typeof t&&tabBehaviorPropTypeOptions.includes(t),new Set([`KoliBriTabBehavior {${tabBehaviorPropTypeOptions.join(", ")}`]),e)},validateHasCreateButton=(t,e)=>{watchBoolean(t,"_hasCreateButton",e)},defaultStyleCss="/* forward the rem function */\n/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\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}",KolTabs$1=proxyCustomElement(class extends HTMLElement{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.onCreateLabel=`${translate("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 KeyboardKey.ArrowRight:this.goToNextTab(t);break;case KeyboardKey.ArrowLeft:this.goToPreviousTab(t);break;case KeyboardKey.Space:case KeyboardKey.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);devHint("[KolTabs] All tabs are disabled, and therefore no tab can be displayed.")}}return t},this.syncSelectedAndTabs=(t,e,n,o)=>{let a,i;a="_selected"===o?t:this.state._selected,i="_tabs"===o?t:this.state._tabs,i.length>0&&e.set("_selected",this.selectNextNotDisabledTab(a,i))},this.refreshTabPanels=()=>{var t,e,n,o;if(this.tabPanelHost){for(;this.tabPanelHost.firstChild;)this.tabPanelHost.removeChild(this.tabPanelHost.firstChild);for(let a=0;a<(null===(t=this.state._tabs)||void 0===t?void 0:t.length);a++){const t=document.createElement("div");t.setAttribute("aria-labelledby",`${this.state._label.replace(/\s/g,"-")}-tab-${a}`),t.setAttribute("id",`tabpanel-${a}`),t.setAttribute("role","tabpanel"),t.setAttribute("hidden","");const i=document.createElement("slot");i.setAttribute("name",`tabpanel-slot-${a}`),t.appendChild(i),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[a])&&this.host.children[a].setAttribute("slot",`tabpanel-slot-${a}`)}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&&dispatchDomEvent(this.host,KolEvent.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,a;if(this.currentFocusIndex=e,this.focusTabById(e),"activateCompletely"===n){this._selected=e;null===(a=null===(o=this.state._tabs[e]._on)||void 0===o?void 0:o.onSelect)||void 0===a||a.call(o,t,e),this.onSelect(t,e)}}renderButtonGroup(){return h("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)=>h(KolButtonWcTag,{_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&&h(KolButtonWcTag,{class:"kol-tabs__button-create",_label:this.onCreateLabel,_on:{onClick:this.onCreate},_icons:"codicon codicon-plus","data-testid":"tabs-create-button"}))}render(){return h("div",{key:"5ff105f158763851589016d153653f9082038b09",ref:t=>{this.tabPanelsElement=t},class:clsx("kol-tabs",`kol-tabs--align-${this.state._align}`)},this.renderButtonGroup(),h("div",{key:"f474721466208ada0a986ba4e00863b025195fb4",class:"kol-tabs__content",ref:this.catchTabPanelHost}))}validateAlign(t){validateAlign(this,t)}validateBehavior(t){validateTabBehavior(this,t)}validateHasCreateButton(t){validateHasCreateButton(this,t)}validateLabel(t){validateLabel(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),setState(this,"_on",e)}}validateSelected(t){watchNumber(this,"_selected",t,{hooks:{beforePatch:this.syncSelectedAndTabs}})}validateTabs(t){watchJsonArrayString(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}}),uiUxHintMillerscheZahl("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=koliBriQuerySelector(`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&&dispatchDomEvent(this.host,KolEvent.select,e),this.focusTabById(e)}get host(){return this}static get watchers(){return{_align:["validateAlign"],_behavior:["validateBehavior"],_hasCreateButton:["validateHasCreateButton"],_label:["validateLabel"],_on:["validateOn"],_selected:["validateSelected"],_tabs:["validateTabs"]}}static get style(){return{default:defaultStyleCss}}},[289,"kol-tabs",{_align:[1],_behavior:[1],_hasCreateButton:[4,"_has-create-button"],_label:[1],_on:[16],_selected:[1538],_tabs:[1],state:[32]},void 0,{_align:["validateAlign"],_behavior:["validateBehavior"],_hasCreateButton:["validateHasCreateButton"],_label:["validateLabel"],_on:["validateOn"],_selected:["validateSelected"],_tabs:["validateTabs"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-tabs"].forEach(t=>{if("kol-tabs"===t)customElements.get(t)||customElements.define(t,KolTabs$1)})}const KolTabs=KolTabs$1,defineCustomElement=defineCustomElement$1;export{KolTabs,defineCustomElement};
|
|
4
|
+
import{proxyCustomElement as t,HTMLElement as i,h as o,transformTag as e}from"@stencil/core/internal/client";import{w as a,c as s,l,s as n,N as r,q as h,M as d,R as c}from"./common.js";import{v as b}from"./align.js";import{v as u}from"./label.js";import{c as p}from"./clsx.js";import{d as m}from"./component-names.js";import{t as f}from"./i18n.js";import{K as v}from"./keyboard.js";import{d as g,K as _}from"./events.js";const k=["select-automatic","select-manual"],y=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),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 v.ArrowRight:this.goToNextTab(t);break;case v.ArrowLeft:this.goToPreviousTab(t);break;case v.Space:case v.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);l("[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,_.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 o("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)=>o(m,{_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&&o(m,{class:"kol-tabs__button-create",_label:this.onCreateLabel,_on:{onClick:this.onCreate},_icons:"codicon codicon-plus","data-testid":"tabs-create-button"}))}render(){return o("div",{key:"5ff105f158763851589016d153653f9082038b09",ref:t=>{this.tabPanelsElement=t},class:p("kol-tabs","kol-tabs--align-"+this.state._align)},this.renderButtonGroup(),o("div",{key:"f474721466208ada0a986ba4e00863b025195fb4",class:"kol-tabs__content",ref:this.catchTabPanelHost}))}validateAlign(t){b(this,t)}validateBehavior(t){((t,e)=>{a(this,"_behavior",t=>"string"==typeof t&&k.includes(t),new Set(["KoliBriTabBehavior {"+k.join(", ")]),e)})(0,t)}validateHasCreateButton(t){((t,e)=>{s(this,"_hasCreateButton",e)})(0,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),n(this,"_on",e)}}validateSelected(t){r(this,"_selected",t,{hooks:{beforePatch:this.syncSelectedAndTabs}})}validateTabs(t){h(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=c(`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,_.select,e),this.focusTabById(e)}get host(){return 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}]}}static get style(){return{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%; } }"}}},[289,"kol-tabs",{_align:[1],_behavior:[1],_hasCreateButton:[4,"_has-create-button"],_label:[1],_on:[16],_selected:[1538],_tabs:[1],state:[32]},void 0,{_align:[{validateAlign:0}],_behavior:[{validateBehavior:0}],_hasCreateButton:[{validateHasCreateButton:0}],_label:[{validateLabel:0}],_on:[{validateOn:0}],_selected:[{validateSelected:0}],_tabs:[{validateTabs:0}]}]),w=y,x=function(){"undefined"!=typeof customElements&&["kol-tabs"].forEach(t=>{"kol-tabs"===t&&(customElements.get(e(t))||customElements.define(e(t),y))})};export{w as KolTabs,x as defineCustomElement};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h,proxyCustomElement,HTMLElement}from"@stencil/core/internal/client";import{c as clsx}from"./clsx.js";import{c as checkHasMsg,d as getDefaultProps,g as getRenderStates,F as FormFieldStateWrapper}from"./controller2.js";import{I as InputIconController,a as InputContainerStateWrapperFc}from"./controller-icon.js";import{_ as __rest}from"./tslib.es6.js";import{w as watchValidator,h as watchString}from"./common.js";import{n as nonce}from"./dev.utils.js";import{a as validateHasCounter,v as validateMaxLengthBehavior,b as validateMaxLength}from"./max-length-behavior.js";import{v as validatePlaceholder}from"./placeholder.js";import{v as validateReadOnly}from"./read-only.js";import{v as validateRequired}from"./required.js";import{v as validateRows}from"./rows.js";import{v as validateSpellCheck}from"./spell-check.js";const textareaResizeOptions=["vertical","none"],isTextareaResizePropType=e=>"string"==typeof e&&textareaResizeOptions.includes(e),validateResizeTextarea=(e,t)=>{watchValidator(e,"_resize",isTextareaResizePropType,new Set(textareaResizeOptions),t,{defaultValue:"vertical"})},TextAreaFc=e=>{const{class:t,msg:a,touched:n,readonly:i,disabled:o,required:l,ariaDescribedBy:r,hideLabel:s,label:d}=e,c=__rest(e,["class","msg","touched","readonly","disabled","required","ariaDescribedBy","hideLabel","label"]),u=checkHasMsg(a,n),m="string"==typeof a?"error":null==a?void 0:a._type,p={"kol-textarea--disabled":Boolean(o),"kol-textarea--required":Boolean(l),"kol-textarea--touched":Boolean(n),"kol-textarea--readonly":Boolean(i),[`kol-textarea--${m||"error"}`]:u},v=Object.assign(Object.assign({class:clsx("kol-textarea",p,t),required:l,disabled:o,readonly:i},getDefaultProps({ariaDescribedBy:r,hideLabel:s,label:d})),c);return h("textarea",Object.assign({},v))};function getTextAreaProps(e,t){var a;const n=[...getRenderStates(e).ariaDescribedBy,...null!==(a=t.ariaDescribedBy)&&void 0!==a?a:[]],i=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:n});return"_maxLength"in e&&"_maxLengthBehavior"in e&&"hard"===e._maxLengthBehavior&&(i.maxLength=e._maxLength),"_shortKey"in e&&(i["aria-keyshortcuts"]=e._shortKey),i}const TextAreaStateWrapper=e=>{var{state:t}=e,a=__rest(e,["state"]);return h(TextAreaFc,Object.assign({},getTextAreaProps(t,a)))};class TextareaController extends InputIconController{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){validateHasCounter(this.component,e)}validateMaxLengthBehavior(e){validateMaxLengthBehavior(this.component,e)}validateMaxLength(e){validateMaxLength(this.component,e,{hooks:{afterPatch:this.afterSyncCharCounter}})}validatePlaceholder(e){validatePlaceholder(this.component,e)}validateReadOnly(e){validateReadOnly(this.component,e)}validateResize(e){validateResizeTextarea(this.component,e)}validateRequired(e){validateRequired(this.component,e)}validateRows(e){validateRows(this.component,e)}validateSpellCheck(e){validateSpellCheck(this.component,e)}validateValue(e){watchString(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 defaultStyleCss='/*\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}',increaseTextareaHeight=e=>{e.style.overflow="hidden";const t=e.rows,a=e.clientHeight/t;e.rows=1;const n=Math.round(e.scrollHeight/a);return e.rows=t,n},KolTextarea$1=proxyCustomElement(class extends HTMLElement{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:clsx("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 h(FormFieldStateWrapper,Object.assign({key:"8c0e36e0f3518438ad47719a0487838b50458bfa"},this.getFormFieldProps()),h(InputContainerStateWrapperFc,{key:"46550d2a7fe6d389b92205e55da49cd30e525fb3",state:this.state},h(TextAreaStateWrapper,Object.assign({key:"95bfd7318945abbd30a807e2f705946d8e2dabf1"},this.getTextAreaProps()))))}constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),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-${nonce()}`,_label:"",_resize:"vertical"},this.inputHasFocus=!1,this.onInput=e=>{this.textareaRef instanceof HTMLTextAreaElement&&(this._value=this.textareaRef.value,this.state._adjustHeight&&(this._rows=increaseTextareaHeight(this.textareaRef)),this.controller.onFacade.onInput(e))},this.controller=new TextareaController(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>increaseTextareaHeight(this.textareaRef)?this.state._rows:increaseTextareaHeight(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 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"]}}static get style(){return{default:defaultStyleCss}}},[289,"kol-textarea",{_accessKey:[1,"_access-key"],_adjustHeight:[4,"_adjust-height"],_disabled:[4],_hideMsg:[4,"_hide-msg"],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_id:[1],_label:[1],_maxLength:[2,"_max-length"],_hasCounter:[4,"_has-counter"],_maxLengthBehavior:[1,"_max-length-behavior"],_msg:[1],_name:[1],_on:[16],_placeholder:[1],_readOnly:[4,"_read-only"],_resize:[1],_required:[4],_rows:[1026],_shortKey:[1,"_short-key"],_spellCheck:[4,"_spell-check"],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[1537],state:[32],inputHasFocus:[32],getValue:[64],focus:[64],kolFocus:[64]},void 0,{_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"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-textarea"].forEach(e=>{if("kol-textarea"===e)customElements.get(e)||customElements.define(e,KolTextarea$1)})}const KolTextarea=KolTextarea$1,defineCustomElement=defineCustomElement$1;export{KolTextarea,defineCustomElement};
|
|
4
|
+
import{h as e,proxyCustomElement as t,HTMLElement as i,transformTag as a}from"@stencil/core/internal/client";import{c as o}from"./clsx.js";import{c as l,d as s,g as r,F as n}from"./controller2.js";import{I as d,a as h}from"./controller-icon.js";import{_ as c}from"./tslib.es6.js";import{w as u,h as m}from"./common.js";import{n as _}from"./dev.utils.js";import{a as v,v as p,b as f}from"./max-length-behavior.js";import{v as b}from"./placeholder.js";import{v as y}from"./read-only.js";import{v as k}from"./required.js";import{v as g}from"./rows.js";import{v as x}from"./spell-check.js";const w=["vertical","none"],L=e=>"string"==typeof e&&w.includes(e),j=t=>{const{class:a,msg:i,touched:r,readonly:n,disabled:d,required:h,ariaDescribedBy:u,hideLabel:_,label:m}=t,v=c(t,["class","msg","touched","readonly","disabled","required","ariaDescribedBy","hideLabel","label"]),p=l(i,r),g="string"==typeof i?"error":null==i?void 0:i._type,f=Object.assign(Object.assign({class:o("kol-textarea",{"kol-textarea--disabled":!!d,"kol-textarea--required":!!h,"kol-textarea--touched":!!r,"kol-textarea--readonly":!!n,["kol-textarea--"+(g||"error")]:p},a),required:h,disabled:d,readonly:n},s({ariaDescribedBy:u,hideLabel:_,label:m})),v);return e("textarea",Object.assign({},f))},z=t=>{var{state:a}=t,i=c(t,["state"]);return e(j,Object.assign({},function(e,t){var a;const i=[...r(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 H extends d{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){v(this.component,e)}validateMaxLengthBehavior(e){p(this.component,e)}validateMaxLength(e){f(this.component,e,{hooks:{afterPatch:this.afterSyncCharCounter}})}validatePlaceholder(e){b(this.component,e)}validateReadOnly(e){y(this.component,e)}validateResize(e){((e,t)=>{u(this.component,"_resize",L,new Set(w),t,{defaultValue:"vertical"})})(0,e)}validateRequired(e){k(this.component,e)}validateRows(e){g(this.component,e)}validateSpellCheck(e){x(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 B=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},M=t(class extends i{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:o("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 e(n,Object.assign({key:"8c0e36e0f3518438ad47719a0487838b50458bfa"},this.getFormFieldProps()),e(h,{key:"46550d2a7fe6d389b92205e55da49cd30e525fb3",state:this.state},e(z,Object.assign({key:"95bfd7318945abbd30a807e2f705946d8e2dabf1"},this.getTextAreaProps()))))}constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),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-"+_(),_label:"",_resize:"vertical"},this.inputHasFocus=!1,this.onInput=e=>{this.textareaRef instanceof HTMLTextAreaElement&&(this._value=this.textareaRef.value,this.state._adjustHeight&&(this._rows=B(this.textareaRef)),this.controller.onFacade.onInput(e))},this.controller=new H(this,"textarea",this.host)}showAsAlert(){return!!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>B(this.textareaRef)?this.state._rows:B(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 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}]}}static get style(){return{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; } }'}}},[33,"kol-textarea",{_accessKey:[1,"_access-key"],_adjustHeight:[4,"_adjust-height"],_disabled:[4],_hideMsg:[4,"_hide-msg"],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_id:[1],_label:[1],_maxLength:[2,"_max-length"],_hasCounter:[4,"_has-counter"],_maxLengthBehavior:[1,"_max-length-behavior"],_msg:[1],_name:[1],_on:[16],_placeholder:[1],_readOnly:[4,"_read-only"],_resize:[1],_required:[4],_rows:[1026],_shortKey:[1,"_short-key"],_spellCheck:[4,"_spell-check"],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[1537],state:[32],inputHasFocus:[32],getValue:[64],focus:[64],kolFocus:[64]},void 0,{_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}]}]),O=M,S=function(){"undefined"!=typeof customElements&&["kol-textarea"].forEach(e=>{"kol-textarea"===e&&(customElements.get(a(e))||customElements.define(a(e),M))})};export{O as KolTextarea,S as defineCustomElement};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h,proxyCustomElement,HTMLElement,Host}from"@stencil/core/internal/client";import{t as translate}from"./i18n.js";import{n as nonce}from"./dev.utils.js";import{t as KolButtonTag}from"./component-names.js";import{K as KolAlertFc}from"./Alert.js";import"./common.js";import"./markdown.js";import{_ as __rest}from"./tslib.es6.js";import{c as clsx}from"./clsx.js";const ToastItemFc=t=>{var{status:n,toast:e,onClose:o}=t,s=__rest(t,["status","toast","onClose"]);const{type:i,label:a,description:l,variant:r}=e;return h("div",{class:clsx("kol-toast-item",`kol-toast-item--${n}`)},h(KolAlertFc,{class:"kol-toast-item__alert",alert:!0,label:a,level:0,hasCloser:!0,type:i,variant:r||"card",onCloserClick:o},h("div",Object.assign({},s),l)))},defaultStyleCss="/*\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}",TRANSITION_TIMEOUT=300,KolToastContainer$1=proxyCustomElement(class extends HTMLElement{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.state={_toastStates:[]},this.translateToastCloseAll=translate("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-${nonce()}`};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)})},300),()=>{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)},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(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)})},300)}}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 h(Host,{key:"05182cc920080f5bc3c06bb647a1bf59c58fae8d",class:"kol-toast-container"},this.state._toastStates.length>1&&h(KolButtonTag,{key:"e4e196489dd617e994ba8c11c38893dd505db1e1",_label:this.translateToastCloseAll,class:"kol-toast-container__button-close-all",_on:{onClick:()=>{this.closeAll()}}}),this.state._toastStates.map(t=>h(ToastItemFc,{key:t.id,onClose:()=>this.handleClose(t),ref:n=>this.handleToastRef(t,n),toast:t.toast,status:t.status})))}static get style(){return{default:defaultStyleCss}}},[289,"kol-toast-container",{state:[32],enqueue:[64],closeAll:[64]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-toast-container"].forEach(t=>{if("kol-toast-container"===t)customElements.get(t)||customElements.define(t,KolToastContainer$1)})}const KolToastContainer=KolToastContainer$1,defineCustomElement=defineCustomElement$1;export{KolToastContainer,defineCustomElement};
|
|
4
|
+
import{h as t,proxyCustomElement as o,HTMLElement as e,Host as i,transformTag as a}from"@stencil/core/internal/client";import{t as l}from"./i18n.js";import{n as s}from"./dev.utils.js";import{t as n}from"./component-names.js";import{K as r}from"./Alert.js";import"./common.js";import"./markdown.js";import{_ as c}from"./tslib.es6.js";import{c as d}from"./clsx.js";const h=o=>{var{status:e,toast:a,onClose:s}=o,i=c(o,["status","toast","onClose"]);const{type:n,label:l,description:h,variant:m}=a;return t("div",{class:d("kol-toast-item","kol-toast-item--"+e)},t(r,{class:"kol-toast-item__alert",alert:!0,label:l,level:0,hasCloser:!0,type:n,variant:m||"card",onCloserClick:s},t("div",Object.assign({},i),h)))},m=o(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.state={_toastStates:[]},this.translateToastCloseAll=l("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-"+s()};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,e;this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.filter(o=>o.id!==t.id)}),null===(e=(o=t.toast).onClose)||void 0===e||e.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,e;null===(e=(o=t.toast).onClose)||void 0===e||e.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(n,{key:"e4e196489dd617e994ba8c11c38893dd505db1e1",_label:this.translateToastCloseAll,class:"kol-toast-container__button-close-all",_on:{onClick:()=>{this.closeAll()}}}),this.state._toastStates.map(o=>t(h,{key:o.id,onClose:()=>this.handleClose(o),ref:t=>this.handleToastRef(o,t),toast:o.toast,status:o.status})))}static get style(){return{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; } }"}}},[33,"kol-toast-container",{state:[32],enqueue:[64],closeAll:[64]}]),p=m,b=function(){"undefined"!=typeof customElements&&["kol-toast-container"].forEach(t=>{"kol-toast-container"===t&&(customElements.get(a(t))||customElements.define(a(t),m))})};export{p as KolToastContainer,b as defineCustomElement};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{proxyCustomElement,HTMLElement,h}from"@stencil/core/internal/client";import{_ as __rest}from"./tslib.es6.js";import{f as KolLinkWcTag,d as KolButtonWcTag}from"./component-names.js";import{Q as emptyStringByArrayHandler,o as objectObjectHandler,p as parseJson,s as setState}from"./common.js";import{v as validateLabel}from"./label.js";import{K as KeyboardKey}from"./keyboard.js";import{v as validateOrientation}from"./orientation.js";const validateToolbarItems=(n,e)=>{emptyStringByArrayHandler(e,()=>{objectObjectHandler(e,()=>{void 0===e&&(e=[]);try{e=parseJson(e)}catch(n){}Array.isArray(e)&&e.every(n=>"object"==typeof n&&null!==n)&&setState(n,"_items",e)})})},defaultStyleCss="@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}",KolToolbar$1=proxyCustomElement(class extends HTMLElement{constructor(n){super(),!1!==n&&this.__registerHost(),this.__attachShadow(),this.state={_label:"",_items:[]},this.currentIndex=0,this.indexToElement=new Map,this.renderItem=(n,e)=>{const t=this.normalizeItem(n),o=e!==this.currentIndex||(null==t?void 0:t._disabled)?-1:0,i={key:e,class:"button normal kol-toolbar__item",_tabIndex:o},a=n=>{n&&this.indexToElement.set(e,n)};return h("_href"in t?KolLinkWcTag:KolButtonWcTag,Object.assign({},t,i,{ref:a}))}}normalizeItem(n){const{_icons:e,_disabled:t}=n,o=__rest(n,["_icons","_disabled"]);return Object.assign(Object.assign({},o),{_icons:e,_disabled:t})}render(){return h("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){validateLabel(this,n)}validateItems(n){validateToolbarItems(this,n),this.indexToElement.clear(),this.setFirstEnabledItemIndex()}validateOrientation(n){validateOrientation(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,o,i,a;const l=n.code;if(![KeyboardKey.ArrowUp,KeyboardKey.ArrowDown,KeyboardKey.ArrowRight,KeyboardKey.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 KeyboardKey.ArrowUp:case KeyboardKey.ArrowLeft:d=s>0?s-1:r;break;case KeyboardKey.ArrowDown:case KeyboardKey.ArrowRight:d=s<r?s+1:0}s!==d&&((null===(i=null===(o=this.state._items)||void 0===o?void 0:o[d])||void 0===i?void 0:i._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 this}static get watchers(){return{_label:["validateLabel"],_items:["validateItems"],_orientation:["validateOrientation"]}}static get style(){return{default:defaultStyleCss}}},[289,"kol-toolbar",{_label:[1],_items:[16],_orientation:[1],state:[32],currentIndex:[32]},[[0,"keydown","handleKeyDown"],[2,"blur","handleBlur"]],{_label:["validateLabel"],_items:["validateItems"],_orientation:["validateOrientation"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-toolbar"].forEach(n=>{if("kol-toolbar"===n)customElements.get(n)||customElements.define(n,KolToolbar$1)})}const KolToolbar=KolToolbar$1,defineCustomElement=defineCustomElement$1;export{KolToolbar,defineCustomElement};
|
|
4
|
+
import{proxyCustomElement as t,HTMLElement as o,h as i,transformTag as e}from"@stencil/core/internal/client";import{_ as a}from"./tslib.es6.js";import{f as l,d as n}from"./component-names.js";import{Q as r,o as s,p as d,s as c}from"./common.js";import{v as h}from"./label.js";import{K as m}from"./keyboard.js";import{v as p}from"./orientation.js";const b=t(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.state={_label:"",_items:[]},this.currentIndex=0,this.indexToElement=new Map,this.renderItem=(t,e)=>{const o=this.normalizeItem(t);return i("_href"in o?l:n,Object.assign({},o,{key:e,class:"button normal kol-toolbar__item",_tabIndex:e!==this.currentIndex||(null==o?void 0:o._disabled)?-1:0},{ref:t=>{t&&this.indexToElement.set(e,t)}}))}}normalizeItem(t){const{_icons:e,_disabled:o}=t,i=a(t,["_icons","_disabled"]);return Object.assign(Object.assign({},i),{_icons:e,_disabled:o})}render(){return i("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){h(this,t)}validateItems(t){((t,e)=>{r(e,()=>{s(e,()=>{void 0===e&&(e=[]);try{e=d(e)}catch(t){}Array.isArray(e)&&e.every(t=>"object"==typeof t&&null!==t)&&c(t,"_items",e)})})})(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 e,o,i,a,n;const l=t.code;if(![m.ArrowUp,m.ArrowDown,m.ArrowRight,m.ArrowLeft].includes(l))return;t.preventDefault();const r=(null!==(o=null===(e=this._items)||void 0===e?void 0:e.length)&&void 0!==o?o:0)-1;if(r<0)return;const s=this.currentIndex;let d=s;switch(l){case m.ArrowUp:case m.ArrowLeft:d=s>0?s-1:r;break;case m.ArrowDown:case m.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 this}static get watchers(){return{_label:[{validateLabel:0}],_items:[{validateItems:0}],_orientation:[{validateOrientation:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component; @layer kol-a11y { :host { --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16)); color: black; background-color: white; font-family: Verdana; letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; white-space: nowrap; clip-path: inset(50%); } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: lightgray; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } .kol-span .kol-span__label--hide-label .kol-span__label { display: none; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled], [disabled]:focus { opacity: 0.5; outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } } @layer kol-component { .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; } }'}}},[33,"kol-toolbar",{_label:[1],_items:[16],_orientation:[1],state:[32],currentIndex:[32]},[[0,"keydown","handleKeyDown"],[2,"blur","handleBlur"]],{_label:[{validateLabel:0}],_items:[{validateItems:0}],_orientation:[{validateOrientation:0}]}]),f=b,u=function(){"undefined"!=typeof customElements&&["kol-toolbar"].forEach(t=>{"kol-toolbar"===t&&(customElements.get(e(t))||customElements.define(e(t),b))})};export{f as KolToolbar,u as defineCustomElement};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{proxyCustomElement,HTMLElement,h,Host}from"@stencil/core/internal/client";import{b as
|
|
4
|
+
import{proxyCustomElement as t,HTMLElement as i,h as s,Host as e,transformTag as h}from"@stencil/core/internal/client";import{b as o,a}from"./align-floating-elements.js";import{h as l,D as n}from"./common.js";import{v as d}from"./align.js";import{v as c}from"./label.js";import"./Alert.js";import"./i18n.js";import{K as r}from"./Span.js";import{t as f,a as m}from"./tooltip-open-tracking.js";const u=new Set,v=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.hasFocusIn=!1,this.hasMouseIn=!1,this.isHiddenForCurrentVisit=!1,this.resetHideFlag=()=>{this.isNewVisit()&&(this.isHiddenForCurrentVisit=!1)},this.showTooltip=()=>{!this.isHiddenForCurrentVisit&&this.previousSibling&&this.tooltipElement&&(function(t){u.forEach(t=>{t.style.setProperty("z-index","999")}),u.add(t),t.style.setProperty("z-index","1000")}(this.tooltipElement),f(),this.tooltipElement.classList.remove("hide"),this.tooltipElement.classList.add("show"),this.tooltipElement.style.setProperty("display","block"),n().addEventListener("keyup",this.hideTooltipByEscape,{once:!0}),this.cleanupAutoPositioning=o(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 e,i;this.hasMouseIn=null!==(i=null===(e=this.tooltipElement)||void 0===e?void 0:e.contains(t.relatedTarget))&&void 0!==i&&i,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,e,i=!1)=>{t&&this.removeListeners(t),e&&(i&&(this.previousSibling=e),this.addListeners(e))},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 a({align:this._align,referenceElement:this.previousSibling,arrowElement:this.arrowElement,floatingElement:this.tooltipElement})}async hideTooltip(){this.isHiddenForCurrentVisit=!0,this.tooltipElement&&(function(t){if(u.delete(t),u.size>0){const t=Array.from(u).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)),n().removeEventListener("keyup",this.hideTooltipByEscape)}render(){return s(e,{key:"a2f5eaf3bdde31f05706c525fb3382d04449877d",class:"kol-tooltip"},""!==this.state._label&&s("div",{key:"d29670e80057f25e00c3826a093d5baef0106ce6",class:"kol-tooltip__floating",ref:this.catchTooltipElement},s("div",{key:"5ea823469aa2fcb1c3dbf56b628445814f4fc8d0",class:"kol-tooltip__arrow",ref:this.catchArrowElement}),s(r,{key:"49c40bebd3067ede516b5f7edc9749f52a08cf80",class:"kol-tooltip__content",id:this.state._id,badgeText:this._badgeText,label:this.state._label})))}validateBadgeText(t){((t,e)=>{l(this,"_badgeText",e)})(0,t)}validateAlign(t){d(this,t)}validateId(t){((t,e)=>{l(this,"_id",e)})(0,t)}validateLabel(t){c(this,t,{required:!0})}componentWillLoad(){this.validateBadgeText(this._badgeText),this.validateAlign(this._align),this.validateId(this._id),this.validateLabel(this._label)}handleEventListeners(){var t,e;const i=null!==(e=null===(t=this.host)||void 0===t?void 0:t.previousElementSibling)&&void 0!==e?e:null;this.resyncListeners(this.previousSibling,i,!0),this.resyncListeners(this.tooltipElement,this.tooltipElement)}connectedCallback(){var t,e;this.previousSibling=null!==(e=null===(t=this.host)||void 0===t?void 0:t.previousElementSibling)&&void 0!==e?e: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 this}static get watchers(){return{_badgeText:[{validateBadgeText:0}],_align:[{validateAlign:0}],_id:[{validateId:0}],_label:[{validateLabel:0}]}}},[0,"kol-tooltip-wc",{_badgeText:[1,"_badge-text"],_align:[1],_id:[1],_label:[1],state:[32],hideTooltip:[64]},void 0,{_badgeText:[{validateBadgeText:0}],_align:[{validateAlign:0}],_id:[{validateId:0}],_label:[{validateLabel:0}]}]),p=v,b=function(){"undefined"!=typeof customElements&&["kol-tooltip-wc"].forEach(t=>{"kol-tooltip-wc"===t&&(customElements.get(h(t))||customElements.define(h(t),v))})};export{p as KolTooltipWc,b as defineCustomElement};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{proxyCustomElement,HTMLElement,h,Host}from"@stencil/core/internal/client";import{c as
|
|
4
|
+
import{proxyCustomElement as e,HTMLElement as t,h as i,Host as s,transformTag as a}from"@stencil/core/internal/client";import{c as l}from"./clsx.js";import{f as o,e as n,w as c}from"./component-names.js";import{c as r}from"./common.js";import{v as h}from"./href.js";import{v as d}from"./label.js";import{v}from"./open.js";import{n as _}from"./dev.utils.js";const f=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.groupId="tree-group-"+_(),this.state={_active:!1,_hasChildren:!1,_href:"",_label:"",_open:!1}}render(){const{_href:e,_active:t,_hasChildren:a,_open:r,_label:c}=this.state;return i(s,{key:"442889bb000355873e79c2df59cce348ed0afb0c",onSlotchange:this.handleSlotchange.bind(this)},i("li",{key:"ab695fb7c3857e493631704e56f86b6c6211ad9f",class:"kol-tree-item",style:{"--level":""+this.level}},i(o,{key:"ac9855976707c3665cb09f90af3a6ecd490bb653",class:l("kol-tree-item__link",{"kol-tree-item__link--first-level":0===this.level,"kol-tree-item__link--active":t}),_href:e,_label:"",_role:"treeitem",_tabIndex:t?0:-1,_ariaExpanded:a?r:void 0,_ariaOwns:a?this.groupId:void 0,ref:e=>this.linkElement=e},i("span",{key:"9122a46258722d8df6bc5423cf8ee8b9412c763b",class:"kol-tree-item__link-inner",slot:"expert"},a?i("span",{class:"kol-tree-item__toggle-button",onClick:e=>r?void this.handleCollapseClick(e):void this.handleExpandClick(e)},i(n,{class:"kol-tree-item__toggle-button-icon",_icons:"codicon codicon-"+(r?"chevron-down":"chevron-right"),_label:""})):i("span",{class:"kol-tree-item__toggle-button-placeholder"}),i("span",{key:"b6108f314822588593d7426ad43f3bddaf42ae3c",class:"kol-tree-item__text"},c))),i("ul",{key:"2ca328f5ca9dfc25264ac1cf5a05ebf9b8a47eb8",class:"kol-tree-item__children",hidden:!a||!r,role:"group",id:this.groupId},i("slot",{key:"756437d12f6ea52ef666a5813221d84b6b29c575"}))))}validateActive(e){((e,t)=>{r(this,"_active",t,void 0)})(0,e||!1)}validateLabel(e){d(this,e)}validateOpen(e){v(this,e)}validateHref(e){h(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()!==c&&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:!!(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 this}static get watchers(){return{_active:[{validateActive:0}],_label:[{validateLabel:0}],_open:[{validateOpen:0}],_href:[{validateHref:0}]}}},[260,"kol-tree-item-wc",{_active:[4],_label:[1],_open:[4],_href:[1],level:[32],state:[32],focus:[64],focusLink:[64],expand:[64],collapse:[64],isOpen:[64]},void 0,{_active:[{validateActive:0}],_label:[{validateLabel:0}],_open:[{validateOpen:0}],_href:[{validateHref:0}]}]),m=f,p=function(){"undefined"!=typeof customElements&&["kol-tree-item-wc"].forEach(e=>{"kol-tree-item-wc"===e&&(customElements.get(a(e))||customElements.define(a(e),f))})};export{m as KolTreeItemWc,p as defineCustomElement};
|