@cscfi/csc-ui 3.0.19 → 4.0.0-alpha.1
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/README.md +40 -40
- package/dist/csc-ui.js +20100 -0
- package/dist/css-anchor-positioning-fn-RTxo68pt.js +6447 -0
- package/dist/custom-elements.json +11447 -0
- package/dist/docs/c-autocomplete/usage.md +28 -0
- package/dist/docs/c-button/usage.md +31 -0
- package/dist/docs/c-button-group/usage.md +57 -0
- package/dist/docs/c-link/usage.md +1 -0
- package/dist/docs/c-loader/usage.md +1 -0
- package/dist/docs/c-main/usage.md +1 -0
- package/dist/docs/c-menu-item/usage.md +1 -0
- package/dist/docs/c-menu-label/usage.md +1 -0
- package/dist/docs/c-modal/usage.md +70 -0
- package/dist/docs/c-tab-buttons/usage.md +11 -0
- package/dist/docs/c-toast/usage.md +1 -0
- package/dist/docs/c-toasts/usage.md +30 -0
- package/dist/styles/css/tailwind-theme.css +118 -0
- package/dist/styles/css/tokens.css +464 -0
- package/dist/vscode.css-custom-data.json +580 -0
- package/dist/vscode.html-custom-data.json +1855 -0
- package/dist/web-types.json +5698 -0
- package/dist-types/components/c-accordion/CAccordion.vue.d.ts +46 -0
- package/dist-types/components/c-accordion-item/CAccordionItem.vue.d.ts +56 -0
- package/dist-types/components/c-alert/CAlert.vue.d.ts +32 -0
- package/dist-types/components/c-autocomplete/CAutocomplete.vue.d.ts +138 -0
- package/dist-types/components/c-badge/CBadge.vue.d.ts +13 -0
- package/dist-types/components/c-button/CButton.vue.d.ts +146 -0
- package/dist-types/components/c-button-group/CButtonGroup.vue.d.ts +66 -0
- package/dist-types/components/c-card/CCard.vue.d.ts +26 -0
- package/dist-types/components/c-card-actions/CCardActions.vue.d.ts +36 -0
- package/dist-types/components/c-card-content/CCardContent.vue.d.ts +13 -0
- package/dist-types/components/c-card-title/CCardTitle.vue.d.ts +15 -0
- package/dist-types/components/c-checkbox/CCheckbox.vue.d.ts +120 -0
- package/dist-types/components/c-csc-logo/CCscLogo.vue.d.ts +13 -0
- package/dist-types/components/c-data-table/CDataTable.vue.d.ts +222 -0
- package/dist-types/components/c-divider/CDivider.vue.d.ts +9 -0
- package/dist-types/components/c-dropdown/CDropdown.vue.d.ts +61 -0
- package/dist-types/components/c-icon/CIcon.vue.d.ts +22 -0
- package/dist-types/components/c-icon-button/CIconButton.vue.d.ts +89 -0
- package/dist-types/components/c-input/CInput.vue.d.ts +101 -0
- package/dist-types/components/c-link/CLink.vue.d.ts +46 -0
- package/dist-types/components/c-list/CList.vue.d.ts +30 -0
- package/dist-types/components/c-list-item/CListItem.vue.d.ts +71 -0
- package/dist-types/components/c-list-item-title/CListItemTitle.vue.d.ts +23 -0
- package/dist-types/components/c-loader/CLoader.vue.d.ts +55 -0
- package/dist-types/components/c-login-button/CLoginButton.vue.d.ts +40 -0
- package/dist-types/components/c-login-buttons/CLoginButtons.vue.d.ts +13 -0
- package/dist-types/components/c-login-card/CLoginCard.vue.d.ts +55 -0
- package/dist-types/components/c-login-card-actions/CLoginCardActions.vue.d.ts +36 -0
- package/dist-types/components/c-login-card-content/CLoginCardContent.vue.d.ts +13 -0
- package/dist-types/components/c-login-card-title/CLoginCardTitle.vue.d.ts +13 -0
- package/dist-types/components/c-main/CMain.vue.d.ts +23 -0
- package/dist-types/components/c-menu/CMenu.vue.d.ts +28 -0
- package/dist-types/components/c-menu-item/CMenuItem.vue.d.ts +34 -0
- package/dist-types/components/c-menu-label/CMenuLabel.vue.d.ts +13 -0
- package/dist-types/components/c-message/CMessage.vue.d.ts +36 -0
- package/dist-types/components/c-modal/CModal.vue.d.ts +38 -0
- package/dist-types/components/c-navigation-button/CNavigationButton.vue.d.ts +3 -0
- package/dist-types/components/c-option/COption.vue.d.ts +32 -0
- package/dist-types/components/c-option-value/COptionValue.vue.d.ts +13 -0
- package/dist-types/components/c-otp-input/COtpInput.vue.d.ts +87 -0
- package/dist-types/components/c-page/CPage.vue.d.ts +25 -0
- package/dist-types/components/c-pagination/CPagination.vue.d.ts +57 -0
- package/dist-types/components/c-progress-bar/CProgressBar.vue.d.ts +42 -0
- package/dist-types/components/c-radio/CRadio.vue.d.ts +38 -0
- package/dist-types/components/c-radio-group/CRadioGroup.vue.d.ts +108 -0
- package/dist-types/components/c-select/CSelect.vue.d.ts +104 -0
- package/dist-types/components/c-side-navigation/CSideNavigation.vue.d.ts +39 -0
- package/dist-types/components/c-side-navigation-item/CSideNavigationItem.vue.d.ts +51 -0
- package/dist-types/components/c-side-navigation-title/CSideNavigationTitle.vue.d.ts +13 -0
- package/dist-types/components/c-slider/CSlider.vue.d.ts +109 -0
- package/dist-types/components/c-spinner/CSpinner.vue.d.ts +28 -0
- package/dist-types/components/c-status/CStatus.vue.d.ts +23 -0
- package/dist-types/components/c-step/CStep.vue.d.ts +30 -0
- package/dist-types/components/c-steps/CSteps.vue.d.ts +23 -0
- package/dist-types/components/c-sub-navigation-item/CSubNavigationItem.vue.d.ts +53 -0
- package/dist-types/components/c-switch/CSwitch.vue.d.ts +80 -0
- package/dist-types/components/c-tab/CTab.vue.d.ts +60 -0
- package/dist-types/components/c-tab-buttons/CTabButtons.vue.d.ts +36 -0
- package/dist-types/components/c-tab-item/CTabItem.vue.d.ts +30 -0
- package/dist-types/components/c-tab-items/CTabItems.vue.d.ts +30 -0
- package/dist-types/components/c-table/CTable.vue.d.ts +20 -0
- package/dist-types/components/c-tabs/CTabs.vue.d.ts +63 -0
- package/dist-types/components/c-tag/CTag.vue.d.ts +53 -0
- package/dist-types/components/c-tags/CTags.vue.d.ts +37 -0
- package/dist-types/components/c-text-field/CTextField.vue.d.ts +194 -0
- package/dist-types/components/c-toast/CToast.vue.d.ts +23 -0
- package/dist-types/components/c-toasts/CToasts.vue.d.ts +46 -0
- package/dist-types/components/c-toolbar/CToolbar.vue.d.ts +13 -0
- package/dist-types/index.d.ts +38 -0
- package/dist-types/shared/FormLabel.vue.d.ts +34 -0
- package/dist-types/shared/anchorPolyfill.d.ts +24 -0
- package/dist-types/shared/coerceBoolean.d.ts +19 -0
- package/dist-types/shared/defineElement.d.ts +20 -0
- package/dist-types/shared/emitModelValue.d.ts +37 -0
- package/dist-types/shared/modalStack.d.ts +63 -0
- package/dist-types/shared/useHasSlot.d.ts +24 -0
- package/dist-types/shared/useHostEmit.d.ts +1 -0
- package/dist-types/shared/useRipple.d.ts +51 -0
- package/dist-types/tag-name-map.d.ts +1533 -0
- package/dist-types/theme/applyTheme.d.ts +25 -0
- package/dist-types/types.d.ts +51 -0
- package/package.json +63 -88
- package/LICENSE +0 -21
- package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -8
- package/dist/cjs/app-globals-V2Kpy_OQ.js.map +0 -1
- package/dist/cjs/c-accordion-item.cjs.entry.js +0 -123
- package/dist/cjs/c-accordion-item.cjs.entry.js.map +0 -1
- package/dist/cjs/c-accordion-item.entry.cjs.js.map +0 -1
- package/dist/cjs/c-accordion.cjs.entry.js +0 -66
- package/dist/cjs/c-accordion.cjs.entry.js.map +0 -1
- package/dist/cjs/c-accordion.entry.cjs.js.map +0 -1
- package/dist/cjs/c-alert.cjs.entry.js +0 -28
- package/dist/cjs/c-alert.cjs.entry.js.map +0 -1
- package/dist/cjs/c-alert.entry.cjs.js.map +0 -1
- package/dist/cjs/c-autocomplete_35.cjs.entry.js +0 -2672
- package/dist/cjs/c-autocomplete_35.cjs.entry.js.map +0 -1
- package/dist/cjs/c-data-table.cjs.entry.js +0 -708
- package/dist/cjs/c-data-table.cjs.entry.js.map +0 -1
- package/dist/cjs/c-data-table.entry.cjs.js.map +0 -1
- package/dist/cjs/c-link.cjs.entry.js +0 -30
- package/dist/cjs/c-link.cjs.entry.js.map +0 -1
- package/dist/cjs/c-link.entry.cjs.js.map +0 -1
- package/dist/cjs/c-list-item-title.cjs.entry.js +0 -25
- package/dist/cjs/c-list-item-title.cjs.entry.js.map +0 -1
- package/dist/cjs/c-list-item-title.entry.cjs.js.map +0 -1
- package/dist/cjs/c-list-item.cjs.entry.js +0 -81
- package/dist/cjs/c-list-item.cjs.entry.js.map +0 -1
- package/dist/cjs/c-list-item.entry.cjs.js.map +0 -1
- package/dist/cjs/c-list.cjs.entry.js +0 -46
- package/dist/cjs/c-list.cjs.entry.js.map +0 -1
- package/dist/cjs/c-list.entry.cjs.js.map +0 -1
- package/dist/cjs/c-login-button.cjs.entry.js +0 -23
- package/dist/cjs/c-login-button.cjs.entry.js.map +0 -1
- package/dist/cjs/c-login-button.entry.cjs.js.map +0 -1
- package/dist/cjs/c-login-buttons.cjs.entry.js +0 -20
- package/dist/cjs/c-login-buttons.cjs.entry.js.map +0 -1
- package/dist/cjs/c-login-buttons.entry.cjs.js.map +0 -1
- package/dist/cjs/c-login-card-actions.cjs.entry.js +0 -19
- package/dist/cjs/c-login-card-actions.cjs.entry.js.map +0 -1
- package/dist/cjs/c-login-card-actions.entry.cjs.js.map +0 -1
- package/dist/cjs/c-login-card-content.cjs.entry.js +0 -20
- package/dist/cjs/c-login-card-content.cjs.entry.js.map +0 -1
- package/dist/cjs/c-login-card-content.entry.cjs.js.map +0 -1
- package/dist/cjs/c-login-card-title.cjs.entry.js +0 -20
- package/dist/cjs/c-login-card-title.cjs.entry.js.map +0 -1
- package/dist/cjs/c-login-card-title.entry.cjs.js.map +0 -1
- package/dist/cjs/c-login-card.cjs.entry.js +0 -65
- package/dist/cjs/c-login-card.cjs.entry.js.map +0 -1
- package/dist/cjs/c-login-card.entry.cjs.js.map +0 -1
- package/dist/cjs/c-menu.c-menu-items.entry.cjs.js.map +0 -1
- package/dist/cjs/c-menu_2.cjs.entry.js +0 -352
- package/dist/cjs/c-menu_2.cjs.entry.js.map +0 -1
- package/dist/cjs/c-modal.cjs.entry.js +0 -178
- package/dist/cjs/c-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/c-modal.entry.cjs.js.map +0 -1
- package/dist/cjs/c-option-value.cjs.entry.js +0 -20
- package/dist/cjs/c-option-value.cjs.entry.js.map +0 -1
- package/dist/cjs/c-option-value.entry.cjs.js.map +0 -1
- package/dist/cjs/c-pagination.cjs.entry.js +0 -223
- package/dist/cjs/c-pagination.cjs.entry.js.map +0 -1
- package/dist/cjs/c-pagination.entry.cjs.js.map +0 -1
- package/dist/cjs/c-progress-bar.cjs.entry.js +0 -58
- package/dist/cjs/c-progress-bar.cjs.entry.js.map +0 -1
- package/dist/cjs/c-progress-bar.entry.cjs.js.map +0 -1
- package/dist/cjs/c-row.cjs.entry.js +0 -32
- package/dist/cjs/c-row.cjs.entry.js.map +0 -1
- package/dist/cjs/c-row.entry.cjs.js.map +0 -1
- package/dist/cjs/c-slider.cjs.entry.js +0 -94
- package/dist/cjs/c-slider.cjs.entry.js.map +0 -1
- package/dist/cjs/c-slider.entry.cjs.js.map +0 -1
- package/dist/cjs/c-status.cjs.entry.js +0 -21
- package/dist/cjs/c-status.cjs.entry.js.map +0 -1
- package/dist/cjs/c-status.entry.cjs.js.map +0 -1
- package/dist/cjs/c-step.cjs.entry.js +0 -26
- package/dist/cjs/c-step.cjs.entry.js.map +0 -1
- package/dist/cjs/c-step.entry.cjs.js.map +0 -1
- package/dist/cjs/c-steps.cjs.entry.js +0 -76
- package/dist/cjs/c-steps.cjs.entry.js.map +0 -1
- package/dist/cjs/c-steps.entry.cjs.js.map +0 -1
- package/dist/cjs/c-swiper-tab.cjs.entry.js +0 -41
- package/dist/cjs/c-swiper-tab.cjs.entry.js.map +0 -1
- package/dist/cjs/c-swiper-tab.entry.cjs.js.map +0 -1
- package/dist/cjs/c-swiper.cjs.entry.js +0 -4181
- package/dist/cjs/c-swiper.cjs.entry.js.map +0 -1
- package/dist/cjs/c-swiper.entry.cjs.js.map +0 -1
- package/dist/cjs/c-tab-buttons.cjs.entry.js +0 -132
- package/dist/cjs/c-tab-buttons.cjs.entry.js.map +0 -1
- package/dist/cjs/c-tab-buttons.entry.cjs.js.map +0 -1
- package/dist/cjs/c-tab-item.cjs.entry.js +0 -39
- package/dist/cjs/c-tab-item.cjs.entry.js.map +0 -1
- package/dist/cjs/c-tab-item.entry.cjs.js.map +0 -1
- package/dist/cjs/c-tab-items.cjs.entry.js +0 -76
- package/dist/cjs/c-tab-items.cjs.entry.js.map +0 -1
- package/dist/cjs/c-tab-items.entry.cjs.js.map +0 -1
- package/dist/cjs/c-tab.cjs.entry.js +0 -54
- package/dist/cjs/c-tab.cjs.entry.js.map +0 -1
- package/dist/cjs/c-tab.entry.cjs.js.map +0 -1
- package/dist/cjs/c-tabs.cjs.entry.js +0 -423
- package/dist/cjs/c-tabs.cjs.entry.js.map +0 -1
- package/dist/cjs/c-tabs.entry.cjs.js.map +0 -1
- package/dist/cjs/c-tag.cjs.entry.js +0 -46
- package/dist/cjs/c-tag.cjs.entry.js.map +0 -1
- package/dist/cjs/c-tag.entry.cjs.js.map +0 -1
- package/dist/cjs/c-tags.cjs.entry.js +0 -30
- package/dist/cjs/c-tags.cjs.entry.js.map +0 -1
- package/dist/cjs/c-tags.entry.cjs.js.map +0 -1
- package/dist/cjs/c-text-field-open.cjs.entry.js +0 -152
- package/dist/cjs/c-text-field-open.cjs.entry.js.map +0 -1
- package/dist/cjs/c-text-field-open.entry.cjs.js.map +0 -1
- package/dist/cjs/c-toast.cjs.entry.js +0 -71
- package/dist/cjs/c-toast.cjs.entry.js.map +0 -1
- package/dist/cjs/c-toast.entry.cjs.js.map +0 -1
- package/dist/cjs/c-toasts.cjs.entry.js +0 -79
- package/dist/cjs/c-toasts.cjs.entry.js.map +0 -1
- package/dist/cjs/c-toasts.entry.cjs.js.map +0 -1
- package/dist/cjs/csc-ui.cjs.js +0 -28
- package/dist/cjs/csc-ui.cjs.js.map +0 -1
- package/dist/cjs/index-BTBT6v3v.js +0 -2056
- package/dist/cjs/index-BTBT6v3v.js.map +0 -1
- package/dist/cjs/index.cjs.js +0 -24
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js +0 -16
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/mdi-D4fs5l1W.js +0 -49
- package/dist/cjs/mdi-D4fs5l1W.js.map +0 -1
- package/dist/collection/collection-manifest.json +0 -83
- package/dist/collection/components/c-accordion/c-accordion.css +0 -31
- package/dist/collection/components/c-accordion/c-accordion.js +0 -179
- package/dist/collection/components/c-accordion/c-accordion.js.map +0 -1
- package/dist/collection/components/c-accordion/test/c-accordion.visual.js +0 -52
- package/dist/collection/components/c-accordion/test/c-accordion.visual.js.map +0 -1
- package/dist/collection/components/c-accordion-item/c-accordion-item.css +0 -139
- package/dist/collection/components/c-accordion-item/c-accordion-item.js +0 -273
- package/dist/collection/components/c-accordion-item/c-accordion-item.js.map +0 -1
- package/dist/collection/components/c-alert/c-alert.css +0 -67
- package/dist/collection/components/c-alert/c-alert.js +0 -58
- package/dist/collection/components/c-alert/c-alert.js.map +0 -1
- package/dist/collection/components/c-alert/test/c-alert.visual.js +0 -24
- package/dist/collection/components/c-alert/test/c-alert.visual.js.map +0 -1
- package/dist/collection/components/c-autocomplete/c-autocomplete.css +0 -233
- package/dist/collection/components/c-autocomplete/c-autocomplete.js +0 -806
- package/dist/collection/components/c-autocomplete/c-autocomplete.js.map +0 -1
- package/dist/collection/components/c-autocomplete/test/c-autocomplete.visual.js +0 -31
- package/dist/collection/components/c-autocomplete/test/c-autocomplete.visual.js.map +0 -1
- package/dist/collection/components/c-backdrop/c-backdrop.css +0 -60
- package/dist/collection/components/c-backdrop/c-backdrop.js +0 -64
- package/dist/collection/components/c-backdrop/c-backdrop.js.map +0 -1
- package/dist/collection/components/c-badge/c-badge.css +0 -51
- package/dist/collection/components/c-badge/c-badge.js +0 -19
- package/dist/collection/components/c-badge/c-badge.js.map +0 -1
- package/dist/collection/components/c-button/c-button.css +0 -749
- package/dist/collection/components/c-button/c-button.js +0 -545
- package/dist/collection/components/c-button/c-button.js.map +0 -1
- package/dist/collection/components/c-button/test/c-button.visual.js +0 -98
- package/dist/collection/components/c-button/test/c-button.visual.js.map +0 -1
- package/dist/collection/components/c-card/assets/puhti.gif +0 -0
- package/dist/collection/components/c-card/c-card.css +0 -67
- package/dist/collection/components/c-card/c-card.js +0 -141
- package/dist/collection/components/c-card/c-card.js.map +0 -1
- package/dist/collection/components/c-card/test/c-card.visual.js +0 -18
- package/dist/collection/components/c-card/test/c-card.visual.js.map +0 -1
- package/dist/collection/components/c-card-actions/c-card-actions.css +0 -72
- package/dist/collection/components/c-card-actions/c-card-actions.js +0 -72
- package/dist/collection/components/c-card-actions/c-card-actions.js.map +0 -1
- package/dist/collection/components/c-card-content/c-card-content.css +0 -36
- package/dist/collection/components/c-card-content/c-card-content.js +0 -19
- package/dist/collection/components/c-card-content/c-card-content.js.map +0 -1
- package/dist/collection/components/c-card-title/c-card-title.css +0 -70
- package/dist/collection/components/c-card-title/c-card-title.js +0 -49
- package/dist/collection/components/c-card-title/c-card-title.js.map +0 -1
- package/dist/collection/components/c-checkbox/c-checkbox.css +0 -149
- package/dist/collection/components/c-checkbox/c-checkbox.js +0 -379
- package/dist/collection/components/c-checkbox/c-checkbox.js.map +0 -1
- package/dist/collection/components/c-checkbox/test/c-checkbox.visual.js +0 -22
- package/dist/collection/components/c-checkbox/test/c-checkbox.visual.js.map +0 -1
- package/dist/collection/components/c-csc-logo/c-csc-logo.css +0 -43
- package/dist/collection/components/c-csc-logo/c-csc-logo.js +0 -47
- package/dist/collection/components/c-csc-logo/c-csc-logo.js.map +0 -1
- package/dist/collection/components/c-data-table/c-data-table.css +0 -470
- package/dist/collection/components/c-data-table/c-data-table.js +0 -1205
- package/dist/collection/components/c-data-table/c-data-table.js.map +0 -1
- package/dist/collection/components/c-data-table/test/c-data-table.visual.js +0 -31
- package/dist/collection/components/c-data-table/test/c-data-table.visual.js.map +0 -1
- package/dist/collection/components/c-data-table/test/data/index.js +0 -104
- package/dist/collection/components/c-data-table/test/data/index.js.map +0 -1
- package/dist/collection/components/c-dropdown/c-dropdown-options-item.js +0 -3
- package/dist/collection/components/c-dropdown/c-dropdown-options-item.js.map +0 -1
- package/dist/collection/components/c-dropdown/c-dropdown.css +0 -164
- package/dist/collection/components/c-dropdown/c-dropdown.js +0 -651
- package/dist/collection/components/c-dropdown/c-dropdown.js.map +0 -1
- package/dist/collection/components/c-icon/c-icon.css +0 -44
- package/dist/collection/components/c-icon/c-icon.js +0 -93
- package/dist/collection/components/c-icon/c-icon.js.map +0 -1
- package/dist/collection/components/c-icon-button/c-icon-button.css +0 -689
- package/dist/collection/components/c-icon-button/c-icon-button.js +0 -257
- package/dist/collection/components/c-icon-button/c-icon-button.js.map +0 -1
- package/dist/collection/components/c-icon-button/test/c-icon-button.visual.js +0 -22
- package/dist/collection/components/c-icon-button/test/c-icon-button.visual.js.map +0 -1
- package/dist/collection/components/c-input/c-input.css +0 -335
- package/dist/collection/components/c-input/c-input.js +0 -887
- package/dist/collection/components/c-input/c-input.js.map +0 -1
- package/dist/collection/components/c-link/c-link.css +0 -60
- package/dist/collection/components/c-link/c-link.js +0 -115
- package/dist/collection/components/c-link/c-link.js.map +0 -1
- package/dist/collection/components/c-link/test/c-link.visual.js +0 -14
- package/dist/collection/components/c-link/test/c-link.visual.js.map +0 -1
- package/dist/collection/components/c-list/c-list.css +0 -38
- package/dist/collection/components/c-list/c-list.js +0 -93
- package/dist/collection/components/c-list/c-list.js.map +0 -1
- package/dist/collection/components/c-list-item/c-list-item.css +0 -96
- package/dist/collection/components/c-list-item/c-list-item.js +0 -231
- package/dist/collection/components/c-list-item/c-list-item.js.map +0 -1
- package/dist/collection/components/c-list-item-title/c-list-item-title.css +0 -38
- package/dist/collection/components/c-list-item-title/c-list-item-title.js +0 -50
- package/dist/collection/components/c-list-item-title/c-list-item-title.js.map +0 -1
- package/dist/collection/components/c-loader/c-loader.css +0 -106
- package/dist/collection/components/c-loader/c-loader.js +0 -126
- package/dist/collection/components/c-loader/c-loader.js.map +0 -1
- package/dist/collection/components/c-login-button/c-login-button.css +0 -84
- package/dist/collection/components/c-login-button/c-login-button.js +0 -87
- package/dist/collection/components/c-login-button/c-login-button.js.map +0 -1
- package/dist/collection/components/c-login-buttons/c-login-buttons.css +0 -28
- package/dist/collection/components/c-login-buttons/c-login-buttons.js +0 -19
- package/dist/collection/components/c-login-buttons/c-login-buttons.js.map +0 -1
- package/dist/collection/components/c-login-card/c-login-card.css +0 -96
- package/dist/collection/components/c-login-card/c-login-card.js +0 -181
- package/dist/collection/components/c-login-card/c-login-card.js.map +0 -1
- package/dist/collection/components/c-login-card/test/c-login-card.visual.js +0 -18
- package/dist/collection/components/c-login-card/test/c-login-card.visual.js.map +0 -1
- package/dist/collection/components/c-login-card-actions/c-login-card-actions.js +0 -57
- package/dist/collection/components/c-login-card-actions/c-login-card-actions.js.map +0 -1
- package/dist/collection/components/c-login-card-content/c-login-card-content.css +0 -31
- package/dist/collection/components/c-login-card-content/c-login-card-content.js +0 -19
- package/dist/collection/components/c-login-card-content/c-login-card-content.js.map +0 -1
- package/dist/collection/components/c-login-card-title/c-login-card-title.css +0 -37
- package/dist/collection/components/c-login-card-title/c-login-card-title.js +0 -19
- package/dist/collection/components/c-login-card-title/c-login-card-title.js.map +0 -1
- package/dist/collection/components/c-main/c-main.css +0 -61
- package/dist/collection/components/c-main/c-main.js +0 -46
- package/dist/collection/components/c-main/c-main.js.map +0 -1
- package/dist/collection/components/c-menu/c-menu.css +0 -123
- package/dist/collection/components/c-menu/c-menu.js +0 -296
- package/dist/collection/components/c-menu/c-menu.js.map +0 -1
- package/dist/collection/components/c-menu/test/c-menu.visual.js +0 -43
- package/dist/collection/components/c-menu/test/c-menu.visual.js.map +0 -1
- package/dist/collection/components/c-menu-items/c-menu-items.css +0 -102
- package/dist/collection/components/c-menu-items/c-menu-items.js +0 -438
- package/dist/collection/components/c-menu-items/c-menu-items.js.map +0 -1
- package/dist/collection/components/c-message/c-message.css +0 -75
- package/dist/collection/components/c-message/c-message.js +0 -161
- package/dist/collection/components/c-message/c-message.js.map +0 -1
- package/dist/collection/components/c-modal/c-modal.css +0 -83
- package/dist/collection/components/c-modal/c-modal.js +0 -310
- package/dist/collection/components/c-modal/c-modal.js.map +0 -1
- package/dist/collection/components/c-navigation-button/c-navigation-button.css +0 -38
- package/dist/collection/components/c-navigation-button/c-navigation-button.js +0 -20
- package/dist/collection/components/c-navigation-button/c-navigation-button.js.map +0 -1
- package/dist/collection/components/c-option/c-option.css +0 -28
- package/dist/collection/components/c-option/c-option.js +0 -105
- package/dist/collection/components/c-option/c-option.js.map +0 -1
- package/dist/collection/components/c-option-value/c-option-value.css +0 -26
- package/dist/collection/components/c-option-value/c-option-value.js +0 -19
- package/dist/collection/components/c-option-value/c-option-value.js.map +0 -1
- package/dist/collection/components/c-otp-input/c-otp-input.css +0 -92
- package/dist/collection/components/c-otp-input/c-otp-input.js +0 -396
- package/dist/collection/components/c-otp-input/c-otp-input.js.map +0 -1
- package/dist/collection/components/c-page/c-page.css +0 -66
- package/dist/collection/components/c-page/c-page.js +0 -58
- package/dist/collection/components/c-page/c-page.js.map +0 -1
- package/dist/collection/components/c-pagination/c-pagination.css +0 -129
- package/dist/collection/components/c-pagination/c-pagination.js +0 -367
- package/dist/collection/components/c-pagination/c-pagination.js.map +0 -1
- package/dist/collection/components/c-pagination/test/c-pagination.visual.js +0 -42
- package/dist/collection/components/c-pagination/test/c-pagination.visual.js.map +0 -1
- package/dist/collection/components/c-progress-bar/c-progress-bar.css +0 -143
- package/dist/collection/components/c-progress-bar/c-progress-bar.js +0 -163
- package/dist/collection/components/c-progress-bar/c-progress-bar.js.map +0 -1
- package/dist/collection/components/c-progress-bar/test/c-progress-bar.visual.js +0 -22
- package/dist/collection/components/c-progress-bar/test/c-progress-bar.visual.js.map +0 -1
- package/dist/collection/components/c-radio/c-radio.css +0 -26
- package/dist/collection/components/c-radio/c-radio.js +0 -86
- package/dist/collection/components/c-radio/c-radio.js.map +0 -1
- package/dist/collection/components/c-radio-group/c-radio-group.css +0 -160
- package/dist/collection/components/c-radio-group/c-radio-group.js +0 -407
- package/dist/collection/components/c-radio-group/c-radio-group.js.map +0 -1
- package/dist/collection/components/c-radio-group/test/c-radio-group.visual.js +0 -24
- package/dist/collection/components/c-radio-group/test/c-radio-group.visual.js.map +0 -1
- package/dist/collection/components/c-radio-group/test/items.js +0 -6
- package/dist/collection/components/c-radio-group/test/items.js.map +0 -1
- package/dist/collection/components/c-ripple/c-ripple.css +0 -53
- package/dist/collection/components/c-ripple/c-ripple.js +0 -94
- package/dist/collection/components/c-ripple/c-ripple.js.map +0 -1
- package/dist/collection/components/c-row/c-row.css +0 -71
- package/dist/collection/components/c-row/c-row.js +0 -127
- package/dist/collection/components/c-row/c-row.js.map +0 -1
- package/dist/collection/components/c-select/c-select.css +0 -212
- package/dist/collection/components/c-select/c-select.js +0 -852
- package/dist/collection/components/c-select/c-select.js.map +0 -1
- package/dist/collection/components/c-select/test/c-select.visual.js +0 -36
- package/dist/collection/components/c-select/test/c-select.visual.js.map +0 -1
- package/dist/collection/components/c-select/test/items.js +0 -10
- package/dist/collection/components/c-select/test/items.js.map +0 -1
- package/dist/collection/components/c-side-navigation/c-side-navigation.css +0 -162
- package/dist/collection/components/c-side-navigation/c-side-navigation.js +0 -153
- package/dist/collection/components/c-side-navigation/c-side-navigation.js.map +0 -1
- package/dist/collection/components/c-side-navigation/test/c-side-navigation.visual.js +0 -16
- package/dist/collection/components/c-side-navigation/test/c-side-navigation.visual.js.map +0 -1
- package/dist/collection/components/c-side-navigation-item/c-side-navigation-item.css +0 -173
- package/dist/collection/components/c-side-navigation-item/c-side-navigation-item.js +0 -235
- package/dist/collection/components/c-side-navigation-item/c-side-navigation-item.js.map +0 -1
- package/dist/collection/components/c-side-navigation-title/c-side-navigation-title.css +0 -40
- package/dist/collection/components/c-side-navigation-title/c-side-navigation-title.js +0 -19
- package/dist/collection/components/c-side-navigation-title/c-side-navigation-title.js.map +0 -1
- package/dist/collection/components/c-slider/c-slider.css +0 -258
- package/dist/collection/components/c-slider/c-slider.js +0 -412
- package/dist/collection/components/c-slider/c-slider.js.map +0 -1
- package/dist/collection/components/c-spacer/c-spacer.css +0 -26
- package/dist/collection/components/c-spacer/c-spacer.js +0 -19
- package/dist/collection/components/c-spacer/c-spacer.js.map +0 -1
- package/dist/collection/components/c-spinner/c-spinner.css +0 -64
- package/dist/collection/components/c-spinner/c-spinner.js +0 -98
- package/dist/collection/components/c-spinner/c-spinner.js.map +0 -1
- package/dist/collection/components/c-status/c-status.css +0 -79
- package/dist/collection/components/c-status/c-status.js +0 -43
- package/dist/collection/components/c-status/c-status.js.map +0 -1
- package/dist/collection/components/c-status/test/c-status.visual.js +0 -10
- package/dist/collection/components/c-status/test/c-status.visual.js.map +0 -1
- package/dist/collection/components/c-step/c-step.css +0 -109
- package/dist/collection/components/c-step/c-step.js +0 -77
- package/dist/collection/components/c-step/c-step.js.map +0 -1
- package/dist/collection/components/c-steps/c-steps.css +0 -86
- package/dist/collection/components/c-steps/c-steps.js +0 -126
- package/dist/collection/components/c-steps/c-steps.js.map +0 -1
- package/dist/collection/components/c-steps/test/c-steps.visual.js +0 -19
- package/dist/collection/components/c-steps/test/c-steps.visual.js.map +0 -1
- package/dist/collection/components/c-sub-navigation-item/c-sub-navigation-item.css +0 -189
- package/dist/collection/components/c-sub-navigation-item/c-sub-navigation-item.js +0 -151
- package/dist/collection/components/c-sub-navigation-item/c-sub-navigation-item.js.map +0 -1
- package/dist/collection/components/c-swiper/c-swiper.css +0 -322
- package/dist/collection/components/c-swiper/c-swiper.js +0 -219
- package/dist/collection/components/c-swiper/c-swiper.js.map +0 -1
- package/dist/collection/components/c-swiper/test/c-swiper.visual.js +0 -20
- package/dist/collection/components/c-swiper/test/c-swiper.visual.js.map +0 -1
- package/dist/collection/components/c-swiper-tab/c-swiper-tab.css +0 -120
- package/dist/collection/components/c-swiper-tab/c-swiper-tab.js +0 -219
- package/dist/collection/components/c-swiper-tab/c-swiper-tab.js.map +0 -1
- package/dist/collection/components/c-switch/c-switch.css +0 -169
- package/dist/collection/components/c-switch/c-switch.js +0 -256
- package/dist/collection/components/c-switch/c-switch.js.map +0 -1
- package/dist/collection/components/c-switch/test/c-switch.visual.js +0 -28
- package/dist/collection/components/c-switch/test/c-switch.visual.js.map +0 -1
- package/dist/collection/components/c-tab/c-tab.css +0 -112
- package/dist/collection/components/c-tab/c-tab.js +0 -241
- package/dist/collection/components/c-tab/c-tab.js.map +0 -1
- package/dist/collection/components/c-tab-buttons/c-tab-buttons.css +0 -113
- package/dist/collection/components/c-tab-buttons/c-tab-buttons.js +0 -284
- package/dist/collection/components/c-tab-buttons/c-tab-buttons.js.map +0 -1
- package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.visual.js +0 -47
- package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.visual.js.map +0 -1
- package/dist/collection/components/c-tab-item/c-tab-item.css +0 -50
- package/dist/collection/components/c-tab-item/c-tab-item.js +0 -103
- package/dist/collection/components/c-tab-item/c-tab-item.js.map +0 -1
- package/dist/collection/components/c-tab-items/c-tab-items.css +0 -36
- package/dist/collection/components/c-tab-items/c-tab-items.js +0 -140
- package/dist/collection/components/c-tab-items/c-tab-items.js.map +0 -1
- package/dist/collection/components/c-table/c-table.css +0 -153
- package/dist/collection/components/c-table/c-table.js +0 -141
- package/dist/collection/components/c-table/c-table.js.map +0 -1
- package/dist/collection/components/c-tabs/c-tabs.css +0 -173
- package/dist/collection/components/c-tabs/c-tabs.js +0 -611
- package/dist/collection/components/c-tabs/c-tabs.js.map +0 -1
- package/dist/collection/components/c-tabs/test/c-tabs.visual.js +0 -16
- package/dist/collection/components/c-tabs/test/c-tabs.visual.js.map +0 -1
- package/dist/collection/components/c-tag/c-tag.css +0 -182
- package/dist/collection/components/c-tag/c-tag.js +0 -208
- package/dist/collection/components/c-tag/c-tag.js.map +0 -1
- package/dist/collection/components/c-tag/test/c-tag.visual.js +0 -26
- package/dist/collection/components/c-tag/test/c-tag.visual.js.map +0 -1
- package/dist/collection/components/c-tags/c-tags.css +0 -29
- package/dist/collection/components/c-tags/c-tags.js +0 -55
- package/dist/collection/components/c-tags/c-tags.js.map +0 -1
- package/dist/collection/components/c-text-field/c-text-field.css +0 -81
- package/dist/collection/components/c-text-field/c-text-field.js +0 -692
- package/dist/collection/components/c-text-field/c-text-field.js.map +0 -1
- package/dist/collection/components/c-text-field/test/c-text-field.visual.js +0 -41
- package/dist/collection/components/c-text-field/test/c-text-field.visual.js.map +0 -1
- package/dist/collection/components/c-text-field-open/c-text-field-open.css +0 -81
- package/dist/collection/components/c-text-field-open/c-text-field-open.js +0 -718
- package/dist/collection/components/c-text-field-open/c-text-field-open.js.map +0 -1
- package/dist/collection/components/c-toast/c-toast.css +0 -161
- package/dist/collection/components/c-toast/c-toast.js +0 -146
- package/dist/collection/components/c-toast/c-toast.js.map +0 -1
- package/dist/collection/components/c-toasts/c-toasts.css +0 -69
- package/dist/collection/components/c-toasts/c-toasts.js +0 -204
- package/dist/collection/components/c-toasts/c-toasts.js.map +0 -1
- package/dist/collection/components/c-toasts/test/c-toasts.visual.js +0 -27
- package/dist/collection/components/c-toasts/test/c-toasts.visual.js.map +0 -1
- package/dist/collection/components/c-toolbar/c-toolbar.css +0 -54
- package/dist/collection/components/c-toolbar/c-toolbar.js +0 -19
- package/dist/collection/components/c-toolbar/c-toolbar.js.map +0 -1
- package/dist/collection/components/c-toolbar/test/c-toolbar.visual.js +0 -10
- package/dist/collection/components/c-toolbar/test/c-toolbar.visual.js.map +0 -1
- package/dist/collection/index.js +0 -2
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/styles/tailwind/theme.js +0 -120
- package/dist/collection/types/index.js +0 -20
- package/dist/collection/types/index.js.map +0 -1
- package/dist/collection/utils/getScrollParent.js +0 -23
- package/dist/collection/utils/getScrollParent.js.map +0 -1
- package/dist/collection/utils/index.js +0 -2
- package/dist/collection/utils/index.js.map +0 -1
- package/dist/collection/utils/test/sleep.js +0 -2
- package/dist/collection/utils/test/sleep.js.map +0 -1
- package/dist/collection/utils/test/takeScreenshot.js +0 -11
- package/dist/collection/utils/test/takeScreenshot.js.map +0 -1
- package/dist/components/c-accordion-item.d.ts +0 -11
- package/dist/components/c-accordion-item.js +0 -153
- package/dist/components/c-accordion-item.js.map +0 -1
- package/dist/components/c-accordion.d.ts +0 -11
- package/dist/components/c-accordion.js +0 -89
- package/dist/components/c-accordion.js.map +0 -1
- package/dist/components/c-alert.d.ts +0 -11
- package/dist/components/c-alert.js +0 -46
- package/dist/components/c-alert.js.map +0 -1
- package/dist/components/c-autocomplete.d.ts +0 -11
- package/dist/components/c-autocomplete.js +0 -367
- package/dist/components/c-autocomplete.js.map +0 -1
- package/dist/components/c-backdrop.d.ts +0 -11
- package/dist/components/c-backdrop.js +0 -9
- package/dist/components/c-backdrop.js.map +0 -1
- package/dist/components/c-badge.d.ts +0 -11
- package/dist/components/c-badge.js +0 -9
- package/dist/components/c-badge.js.map +0 -1
- package/dist/components/c-button.d.ts +0 -11
- package/dist/components/c-button.js +0 -189
- package/dist/components/c-button.js.map +0 -1
- package/dist/components/c-card-actions.d.ts +0 -11
- package/dist/components/c-card-actions.js +0 -9
- package/dist/components/c-card-actions.js.map +0 -1
- package/dist/components/c-card-content.d.ts +0 -11
- package/dist/components/c-card-content.js +0 -36
- package/dist/components/c-card-content.js.map +0 -1
- package/dist/components/c-card-title.d.ts +0 -11
- package/dist/components/c-card-title.js +0 -64
- package/dist/components/c-card-title.js.map +0 -1
- package/dist/components/c-card.d.ts +0 -11
- package/dist/components/c-card.js +0 -120
- package/dist/components/c-card.js.map +0 -1
- package/dist/components/c-checkbox.d.ts +0 -11
- package/dist/components/c-checkbox.js +0 -9
- package/dist/components/c-checkbox.js.map +0 -1
- package/dist/components/c-csc-logo.d.ts +0 -11
- package/dist/components/c-csc-logo.js +0 -40
- package/dist/components/c-csc-logo.js.map +0 -1
- package/dist/components/c-data-table.d.ts +0 -11
- package/dist/components/c-data-table.js +0 -830
- package/dist/components/c-data-table.js.map +0 -1
- package/dist/components/c-dropdown.d.ts +0 -11
- package/dist/components/c-dropdown.js +0 -9
- package/dist/components/c-dropdown.js.map +0 -1
- package/dist/components/c-icon-button.d.ts +0 -11
- package/dist/components/c-icon-button.js +0 -9
- package/dist/components/c-icon-button.js.map +0 -1
- package/dist/components/c-icon.d.ts +0 -11
- package/dist/components/c-icon.js +0 -9
- package/dist/components/c-icon.js.map +0 -1
- package/dist/components/c-input.d.ts +0 -11
- package/dist/components/c-input.js +0 -9
- package/dist/components/c-input.js.map +0 -1
- package/dist/components/c-link.d.ts +0 -11
- package/dist/components/c-link.js +0 -51
- package/dist/components/c-link.js.map +0 -1
- package/dist/components/c-list-item-title.d.ts +0 -11
- package/dist/components/c-list-item-title.js +0 -43
- package/dist/components/c-list-item-title.js.map +0 -1
- package/dist/components/c-list-item.d.ts +0 -11
- package/dist/components/c-list-item.js +0 -113
- package/dist/components/c-list-item.js.map +0 -1
- package/dist/components/c-list.d.ts +0 -11
- package/dist/components/c-list.js +0 -66
- package/dist/components/c-list.js.map +0 -1
- package/dist/components/c-loader.d.ts +0 -11
- package/dist/components/c-loader.js +0 -9
- package/dist/components/c-loader.js.map +0 -1
- package/dist/components/c-login-button.d.ts +0 -11
- package/dist/components/c-login-button.js +0 -43
- package/dist/components/c-login-button.js.map +0 -1
- package/dist/components/c-login-buttons.d.ts +0 -11
- package/dist/components/c-login-buttons.js +0 -36
- package/dist/components/c-login-buttons.js.map +0 -1
- package/dist/components/c-login-card-actions.d.ts +0 -11
- package/dist/components/c-login-card-actions.js +0 -44
- package/dist/components/c-login-card-actions.js.map +0 -1
- package/dist/components/c-login-card-content.d.ts +0 -11
- package/dist/components/c-login-card-content.js +0 -36
- package/dist/components/c-login-card-content.js.map +0 -1
- package/dist/components/c-login-card-title.d.ts +0 -11
- package/dist/components/c-login-card-title.js +0 -36
- package/dist/components/c-login-card-title.js.map +0 -1
- package/dist/components/c-login-card.d.ts +0 -11
- package/dist/components/c-login-card.js +0 -88
- package/dist/components/c-login-card.js.map +0 -1
- package/dist/components/c-main.d.ts +0 -11
- package/dist/components/c-main.js +0 -45
- package/dist/components/c-main.js.map +0 -1
- package/dist/components/c-menu-items.d.ts +0 -11
- package/dist/components/c-menu-items.js +0 -9
- package/dist/components/c-menu-items.js.map +0 -1
- package/dist/components/c-menu.d.ts +0 -11
- package/dist/components/c-menu.js +0 -9
- package/dist/components/c-menu.js.map +0 -1
- package/dist/components/c-message.d.ts +0 -11
- package/dist/components/c-message.js +0 -9
- package/dist/components/c-message.js.map +0 -1
- package/dist/components/c-modal.d.ts +0 -11
- package/dist/components/c-modal.js +0 -205
- package/dist/components/c-modal.js.map +0 -1
- package/dist/components/c-navigation-button.d.ts +0 -11
- package/dist/components/c-navigation-button.js +0 -67
- package/dist/components/c-navigation-button.js.map +0 -1
- package/dist/components/c-option-value.d.ts +0 -11
- package/dist/components/c-option-value.js +0 -36
- package/dist/components/c-option-value.js.map +0 -1
- package/dist/components/c-option.d.ts +0 -11
- package/dist/components/c-option.js +0 -43
- package/dist/components/c-option.js.map +0 -1
- package/dist/components/c-otp-input.d.ts +0 -11
- package/dist/components/c-otp-input.js +0 -201
- package/dist/components/c-otp-input.js.map +0 -1
- package/dist/components/c-page.d.ts +0 -11
- package/dist/components/c-page.js +0 -51
- package/dist/components/c-page.js.map +0 -1
- package/dist/components/c-pagination.d.ts +0 -11
- package/dist/components/c-pagination.js +0 -9
- package/dist/components/c-pagination.js.map +0 -1
- package/dist/components/c-progress-bar.d.ts +0 -11
- package/dist/components/c-progress-bar.js +0 -80
- package/dist/components/c-progress-bar.js.map +0 -1
- package/dist/components/c-radio-group.d.ts +0 -11
- package/dist/components/c-radio-group.js +0 -157
- package/dist/components/c-radio-group.js.map +0 -1
- package/dist/components/c-radio.d.ts +0 -11
- package/dist/components/c-radio.js +0 -42
- package/dist/components/c-radio.js.map +0 -1
- package/dist/components/c-ripple.d.ts +0 -11
- package/dist/components/c-ripple.js +0 -9
- package/dist/components/c-ripple.js.map +0 -1
- package/dist/components/c-row.d.ts +0 -11
- package/dist/components/c-row.js +0 -53
- package/dist/components/c-row.js.map +0 -1
- package/dist/components/c-select.d.ts +0 -11
- package/dist/components/c-select.js +0 -441
- package/dist/components/c-select.js.map +0 -1
- package/dist/components/c-side-navigation-item.d.ts +0 -11
- package/dist/components/c-side-navigation-item.js +0 -161
- package/dist/components/c-side-navigation-item.js.map +0 -1
- package/dist/components/c-side-navigation-title.d.ts +0 -11
- package/dist/components/c-side-navigation-title.js +0 -36
- package/dist/components/c-side-navigation-title.js.map +0 -1
- package/dist/components/c-side-navigation.d.ts +0 -11
- package/dist/components/c-side-navigation.js +0 -133
- package/dist/components/c-side-navigation.js.map +0 -1
- package/dist/components/c-slider.d.ts +0 -11
- package/dist/components/c-slider.js +0 -130
- package/dist/components/c-slider.js.map +0 -1
- package/dist/components/c-spacer.d.ts +0 -11
- package/dist/components/c-spacer.js +0 -9
- package/dist/components/c-spacer.js.map +0 -1
- package/dist/components/c-spinner.d.ts +0 -11
- package/dist/components/c-spinner.js +0 -9
- package/dist/components/c-spinner.js.map +0 -1
- package/dist/components/c-status.d.ts +0 -11
- package/dist/components/c-status.js +0 -39
- package/dist/components/c-status.js.map +0 -1
- package/dist/components/c-step.d.ts +0 -11
- package/dist/components/c-step.js +0 -45
- package/dist/components/c-step.js.map +0 -1
- package/dist/components/c-steps.d.ts +0 -11
- package/dist/components/c-steps.js +0 -98
- package/dist/components/c-steps.js.map +0 -1
- package/dist/components/c-sub-navigation-item.d.ts +0 -11
- package/dist/components/c-sub-navigation-item.js +0 -82
- package/dist/components/c-sub-navigation-item.js.map +0 -1
- package/dist/components/c-swiper-tab.d.ts +0 -11
- package/dist/components/c-swiper-tab.js +0 -71
- package/dist/components/c-swiper-tab.js.map +0 -1
- package/dist/components/c-swiper.d.ts +0 -11
- package/dist/components/c-swiper.js +0 -4226
- package/dist/components/c-swiper.js.map +0 -1
- package/dist/components/c-switch.d.ts +0 -11
- package/dist/components/c-switch.js +0 -98
- package/dist/components/c-switch.js.map +0 -1
- package/dist/components/c-tab-buttons.d.ts +0 -11
- package/dist/components/c-tab-buttons.js +0 -156
- package/dist/components/c-tab-buttons.js.map +0 -1
- package/dist/components/c-tab-item.d.ts +0 -11
- package/dist/components/c-tab-item.js +0 -58
- package/dist/components/c-tab-item.js.map +0 -1
- package/dist/components/c-tab-items.d.ts +0 -11
- package/dist/components/c-tab-items.js +0 -98
- package/dist/components/c-tab-items.js.map +0 -1
- package/dist/components/c-tab.d.ts +0 -11
- package/dist/components/c-tab.js +0 -83
- package/dist/components/c-tab.js.map +0 -1
- package/dist/components/c-table.d.ts +0 -11
- package/dist/components/c-table.js +0 -95
- package/dist/components/c-table.js.map +0 -1
- package/dist/components/c-tabs.d.ts +0 -11
- package/dist/components/c-tabs.js +0 -483
- package/dist/components/c-tabs.js.map +0 -1
- package/dist/components/c-tag.d.ts +0 -11
- package/dist/components/c-tag.js +0 -100
- package/dist/components/c-tag.js.map +0 -1
- package/dist/components/c-tags.d.ts +0 -11
- package/dist/components/c-tags.js +0 -48
- package/dist/components/c-tags.js.map +0 -1
- package/dist/components/c-text-field-open.d.ts +0 -11
- package/dist/components/c-text-field-open.js +0 -204
- package/dist/components/c-text-field-open.js.map +0 -1
- package/dist/components/c-text-field.d.ts +0 -11
- package/dist/components/c-text-field.js +0 -197
- package/dist/components/c-text-field.js.map +0 -1
- package/dist/components/c-toast.d.ts +0 -11
- package/dist/components/c-toast.js +0 -9
- package/dist/components/c-toast.js.map +0 -1
- package/dist/components/c-toasts.d.ts +0 -11
- package/dist/components/c-toasts.js +0 -133
- package/dist/components/c-toasts.js.map +0 -1
- package/dist/components/c-toolbar.d.ts +0 -11
- package/dist/components/c-toolbar.js +0 -36
- package/dist/components/c-toolbar.js.map +0 -1
- package/dist/components/index.d.ts +0 -180
- package/dist/components/index.js +0 -76
- package/dist/components/index.js.map +0 -1
- package/dist/components/p-BCgTj9pp.js +0 -95
- package/dist/components/p-BCgTj9pp.js.map +0 -1
- package/dist/components/p-BDgw4nNJ.js +0 -93
- package/dist/components/p-BDgw4nNJ.js.map +0 -1
- package/dist/components/p-BGFYISEF.js +0 -112
- package/dist/components/p-BGFYISEF.js.map +0 -1
- package/dist/components/p-BJVLvFq9.js +0 -88
- package/dist/components/p-BJVLvFq9.js.map +0 -1
- package/dist/components/p-BOTLtsJq.js +0 -291
- package/dist/components/p-BOTLtsJq.js.map +0 -1
- package/dist/components/p-BUcGIY5c.js +0 -43
- package/dist/components/p-BUcGIY5c.js.map +0 -1
- package/dist/components/p-BWp2ldC5.js +0 -64
- package/dist/components/p-BWp2ldC5.js.map +0 -1
- package/dist/components/p-Bd7jq7MS.js +0 -27
- package/dist/components/p-Bd7jq7MS.js.map +0 -1
- package/dist/components/p-Bz0xxOlq.js +0 -294
- package/dist/components/p-Bz0xxOlq.js.map +0 -1
- package/dist/components/p-CSoWw_-h.js +0 -236
- package/dist/components/p-CSoWw_-h.js.map +0 -1
- package/dist/components/p-Cmy8x1XB.js +0 -46
- package/dist/components/p-Cmy8x1XB.js.map +0 -1
- package/dist/components/p-CoxL9G3v.js +0 -349
- package/dist/components/p-CoxL9G3v.js.map +0 -1
- package/dist/components/p-D6wozX_5.js +0 -50
- package/dist/components/p-D6wozX_5.js.map +0 -1
- package/dist/components/p-DEHCeGjr.js +0 -69
- package/dist/components/p-DEHCeGjr.js.map +0 -1
- package/dist/components/p-DKhrqMh8.js +0 -33
- package/dist/components/p-DKhrqMh8.js.map +0 -1
- package/dist/components/p-DoU8xThq.js +0 -49
- package/dist/components/p-DoU8xThq.js.map +0 -1
- package/dist/components/p-DpnXN7-j.js +0 -33
- package/dist/components/p-DpnXN7-j.js.map +0 -1
- package/dist/components/p-Fv9YCUj3.js +0 -1662
- package/dist/components/p-Fv9YCUj3.js.map +0 -1
- package/dist/components/p-lKEVcO51.js +0 -186
- package/dist/components/p-lKEVcO51.js.map +0 -1
- package/dist/csc-ui/assets/puhti.gif +0 -0
- package/dist/csc-ui/c-accordion-item.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-accordion.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-alert.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-data-table.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-link.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-list-item-title.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-list-item.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-list.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-login-button.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-login-buttons.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-login-card-actions.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-login-card-content.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-login-card-title.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-login-card.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-menu.c-menu-items.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-modal.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-option-value.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-pagination.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-progress-bar.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-row.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-slider.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-status.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-step.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-steps.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-swiper-tab.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-swiper.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-tab-buttons.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-tab-item.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-tab-items.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-tab.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-tabs.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-tag.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-tags.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-text-field-open.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-toast.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-toasts.entry.esm.js.map +0 -1
- package/dist/csc-ui/csc-ui.esm.js +0 -2
- package/dist/csc-ui/csc-ui.esm.js.map +0 -1
- package/dist/csc-ui/index.esm.js +0 -2
- package/dist/csc-ui/index.esm.js.map +0 -1
- package/dist/csc-ui/loader.esm.js.map +0 -1
- package/dist/csc-ui/p-04f010cd.entry.js +0 -2
- package/dist/csc-ui/p-04f010cd.entry.js.map +0 -1
- package/dist/csc-ui/p-084e4e2a.entry.js +0 -2
- package/dist/csc-ui/p-084e4e2a.entry.js.map +0 -1
- package/dist/csc-ui/p-0bf2ca66.entry.js +0 -2
- package/dist/csc-ui/p-0bf2ca66.entry.js.map +0 -1
- package/dist/csc-ui/p-13976903.entry.js +0 -2
- package/dist/csc-ui/p-13976903.entry.js.map +0 -1
- package/dist/csc-ui/p-1963c292.entry.js +0 -2
- package/dist/csc-ui/p-1963c292.entry.js.map +0 -1
- package/dist/csc-ui/p-1b1d64f3.entry.js +0 -2
- package/dist/csc-ui/p-1b1d64f3.entry.js.map +0 -1
- package/dist/csc-ui/p-2acf252a.entry.js +0 -2
- package/dist/csc-ui/p-2acf252a.entry.js.map +0 -1
- package/dist/csc-ui/p-39f34048.entry.js +0 -2
- package/dist/csc-ui/p-39f34048.entry.js.map +0 -1
- package/dist/csc-ui/p-41b53c95.entry.js +0 -2
- package/dist/csc-ui/p-41b53c95.entry.js.map +0 -1
- package/dist/csc-ui/p-4620a4d8.entry.js +0 -2
- package/dist/csc-ui/p-4620a4d8.entry.js.map +0 -1
- package/dist/csc-ui/p-4b9fc284.entry.js +0 -2
- package/dist/csc-ui/p-4b9fc284.entry.js.map +0 -1
- package/dist/csc-ui/p-5b10d5e5.entry.js +0 -2
- package/dist/csc-ui/p-5b10d5e5.entry.js.map +0 -1
- package/dist/csc-ui/p-732e7114.entry.js +0 -2
- package/dist/csc-ui/p-732e7114.entry.js.map +0 -1
- package/dist/csc-ui/p-774e25ed.entry.js +0 -2
- package/dist/csc-ui/p-774e25ed.entry.js.map +0 -1
- package/dist/csc-ui/p-7869709f.entry.js +0 -2
- package/dist/csc-ui/p-7869709f.entry.js.map +0 -1
- package/dist/csc-ui/p-7f778e0a.entry.js +0 -2
- package/dist/csc-ui/p-7f778e0a.entry.js.map +0 -1
- package/dist/csc-ui/p-7f84c51a.entry.js +0 -2
- package/dist/csc-ui/p-7f84c51a.entry.js.map +0 -1
- package/dist/csc-ui/p-82e5b6a3.entry.js +0 -2
- package/dist/csc-ui/p-82e5b6a3.entry.js.map +0 -1
- package/dist/csc-ui/p-8707c1c5.entry.js +0 -2
- package/dist/csc-ui/p-8707c1c5.entry.js.map +0 -1
- package/dist/csc-ui/p-95967094.entry.js +0 -2
- package/dist/csc-ui/p-95967094.entry.js.map +0 -1
- package/dist/csc-ui/p-9806cee5.entry.js +0 -2
- package/dist/csc-ui/p-9806cee5.entry.js.map +0 -1
- package/dist/csc-ui/p-9fff794f.entry.js +0 -2
- package/dist/csc-ui/p-9fff794f.entry.js.map +0 -1
- package/dist/csc-ui/p-DQuL1Twl.js +0 -2
- package/dist/csc-ui/p-DQuL1Twl.js.map +0 -1
- package/dist/csc-ui/p-RscoPQxP.js +0 -2
- package/dist/csc-ui/p-RscoPQxP.js.map +0 -1
- package/dist/csc-ui/p-a0129d80.entry.js +0 -2
- package/dist/csc-ui/p-a0129d80.entry.js.map +0 -1
- package/dist/csc-ui/p-a27a5f80.entry.js +0 -2
- package/dist/csc-ui/p-a27a5f80.entry.js.map +0 -1
- package/dist/csc-ui/p-aec6b36e.entry.js +0 -2
- package/dist/csc-ui/p-aec6b36e.entry.js.map +0 -1
- package/dist/csc-ui/p-b0e03fea.entry.js +0 -2
- package/dist/csc-ui/p-b0e03fea.entry.js.map +0 -1
- package/dist/csc-ui/p-c74c234c.entry.js +0 -2
- package/dist/csc-ui/p-c74c234c.entry.js.map +0 -1
- package/dist/csc-ui/p-c791bc22.entry.js +0 -2
- package/dist/csc-ui/p-c791bc22.entry.js.map +0 -1
- package/dist/csc-ui/p-cbafc9a2.entry.js +0 -2
- package/dist/csc-ui/p-cbafc9a2.entry.js.map +0 -1
- package/dist/csc-ui/p-ce764150.entry.js +0 -2
- package/dist/csc-ui/p-ce764150.entry.js.map +0 -1
- package/dist/csc-ui/p-cf835443.entry.js +0 -2
- package/dist/csc-ui/p-cf835443.entry.js.map +0 -1
- package/dist/csc-ui/p-e1cec030.entry.js +0 -2
- package/dist/csc-ui/p-e1cec030.entry.js.map +0 -1
- package/dist/csc-ui/p-e48d90fa.entry.js +0 -2
- package/dist/csc-ui/p-e48d90fa.entry.js.map +0 -1
- package/dist/csc-ui/p-ea26b8b0.entry.js +0 -2
- package/dist/csc-ui/p-ea26b8b0.entry.js.map +0 -1
- package/dist/csc-ui/p-f23b3ee3.entry.js +0 -2
- package/dist/csc-ui/p-f23b3ee3.entry.js.map +0 -1
- package/dist/csc-ui/p-f62b6b95.entry.js +0 -2
- package/dist/csc-ui/p-f62b6b95.entry.js.map +0 -1
- package/dist/csc-ui/p-fd75e786.entry.js +0 -2
- package/dist/csc-ui/p-fd75e786.entry.js.map +0 -1
- package/dist/csc-ui/p-gSzSMY-c.js +0 -3
- package/dist/csc-ui/p-gSzSMY-c.js.map +0 -1
- package/dist/esm/app-globals-DQuL1Twl.js +0 -6
- package/dist/esm/app-globals-DQuL1Twl.js.map +0 -1
- package/dist/esm/c-accordion-item.entry.js +0 -121
- package/dist/esm/c-accordion-item.entry.js.map +0 -1
- package/dist/esm/c-accordion.entry.js +0 -64
- package/dist/esm/c-accordion.entry.js.map +0 -1
- package/dist/esm/c-alert.entry.js +0 -26
- package/dist/esm/c-alert.entry.js.map +0 -1
- package/dist/esm/c-autocomplete_35.entry.js +0 -2636
- package/dist/esm/c-autocomplete_35.entry.js.map +0 -1
- package/dist/esm/c-data-table.entry.js +0 -706
- package/dist/esm/c-data-table.entry.js.map +0 -1
- package/dist/esm/c-link.entry.js +0 -28
- package/dist/esm/c-link.entry.js.map +0 -1
- package/dist/esm/c-list-item-title.entry.js +0 -23
- package/dist/esm/c-list-item-title.entry.js.map +0 -1
- package/dist/esm/c-list-item.entry.js +0 -79
- package/dist/esm/c-list-item.entry.js.map +0 -1
- package/dist/esm/c-list.entry.js +0 -44
- package/dist/esm/c-list.entry.js.map +0 -1
- package/dist/esm/c-login-button.entry.js +0 -21
- package/dist/esm/c-login-button.entry.js.map +0 -1
- package/dist/esm/c-login-buttons.entry.js +0 -18
- package/dist/esm/c-login-buttons.entry.js.map +0 -1
- package/dist/esm/c-login-card-actions.entry.js +0 -17
- package/dist/esm/c-login-card-actions.entry.js.map +0 -1
- package/dist/esm/c-login-card-content.entry.js +0 -18
- package/dist/esm/c-login-card-content.entry.js.map +0 -1
- package/dist/esm/c-login-card-title.entry.js +0 -18
- package/dist/esm/c-login-card-title.entry.js.map +0 -1
- package/dist/esm/c-login-card.entry.js +0 -63
- package/dist/esm/c-login-card.entry.js.map +0 -1
- package/dist/esm/c-menu.c-menu-items.entry.js.map +0 -1
- package/dist/esm/c-menu_2.entry.js +0 -349
- package/dist/esm/c-menu_2.entry.js.map +0 -1
- package/dist/esm/c-modal.entry.js +0 -176
- package/dist/esm/c-modal.entry.js.map +0 -1
- package/dist/esm/c-option-value.entry.js +0 -18
- package/dist/esm/c-option-value.entry.js.map +0 -1
- package/dist/esm/c-pagination.entry.js +0 -221
- package/dist/esm/c-pagination.entry.js.map +0 -1
- package/dist/esm/c-progress-bar.entry.js +0 -56
- package/dist/esm/c-progress-bar.entry.js.map +0 -1
- package/dist/esm/c-row.entry.js +0 -30
- package/dist/esm/c-row.entry.js.map +0 -1
- package/dist/esm/c-slider.entry.js +0 -92
- package/dist/esm/c-slider.entry.js.map +0 -1
- package/dist/esm/c-status.entry.js +0 -19
- package/dist/esm/c-status.entry.js.map +0 -1
- package/dist/esm/c-step.entry.js +0 -24
- package/dist/esm/c-step.entry.js.map +0 -1
- package/dist/esm/c-steps.entry.js +0 -74
- package/dist/esm/c-steps.entry.js.map +0 -1
- package/dist/esm/c-swiper-tab.entry.js +0 -39
- package/dist/esm/c-swiper-tab.entry.js.map +0 -1
- package/dist/esm/c-swiper.entry.js +0 -4179
- package/dist/esm/c-swiper.entry.js.map +0 -1
- package/dist/esm/c-tab-buttons.entry.js +0 -130
- package/dist/esm/c-tab-buttons.entry.js.map +0 -1
- package/dist/esm/c-tab-item.entry.js +0 -37
- package/dist/esm/c-tab-item.entry.js.map +0 -1
- package/dist/esm/c-tab-items.entry.js +0 -74
- package/dist/esm/c-tab-items.entry.js.map +0 -1
- package/dist/esm/c-tab.entry.js +0 -52
- package/dist/esm/c-tab.entry.js.map +0 -1
- package/dist/esm/c-tabs.entry.js +0 -421
- package/dist/esm/c-tabs.entry.js.map +0 -1
- package/dist/esm/c-tag.entry.js +0 -44
- package/dist/esm/c-tag.entry.js.map +0 -1
- package/dist/esm/c-tags.entry.js +0 -28
- package/dist/esm/c-tags.entry.js.map +0 -1
- package/dist/esm/c-text-field-open.entry.js +0 -150
- package/dist/esm/c-text-field-open.entry.js.map +0 -1
- package/dist/esm/c-toast.entry.js +0 -69
- package/dist/esm/c-toast.entry.js.map +0 -1
- package/dist/esm/c-toasts.entry.js +0 -77
- package/dist/esm/c-toasts.entry.js.map +0 -1
- package/dist/esm/csc-ui.js +0 -24
- package/dist/esm/csc-ui.js.map +0 -1
- package/dist/esm/index-gSzSMY-c.js +0 -2046
- package/dist/esm/index-gSzSMY-c.js.map +0 -1
- package/dist/esm/index.js +0 -24
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js +0 -14
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/mdi-RscoPQxP.js +0 -27
- package/dist/esm/mdi-RscoPQxP.js.map +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/playwright.config.js +0 -46
- package/dist/playwright.config.js.map +0 -1
- package/dist/stencil.config.js +0 -47
- package/dist/stencil.config.js.map +0 -1
- package/dist/styles/.gitkeep +0 -0
- package/dist/styles/css/theme.css +0 -102
- package/dist/styles/scss/_theme.scss +0 -100
- package/dist/styles/tailwind/theme.js +0 -120
- package/dist/types/additional-types.d.ts +0 -14
- package/dist/types/components/c-accordion/c-accordion.d.ts +0 -18
- package/dist/types/components/c-accordion/test/c-accordion.visual.d.ts +0 -1
- package/dist/types/components/c-accordion-item/c-accordion-item.d.ts +0 -30
- package/dist/types/components/c-alert/c-alert.d.ts +0 -6
- package/dist/types/components/c-alert/test/c-alert.visual.d.ts +0 -1
- package/dist/types/components/c-autocomplete/c-autocomplete.d.ts +0 -65
- package/dist/types/components/c-autocomplete/test/c-autocomplete.visual.d.ts +0 -1
- package/dist/types/components/c-backdrop/c-backdrop.d.ts +0 -6
- package/dist/types/components/c-badge/c-badge.d.ts +0 -3
- package/dist/types/components/c-button/c-button.d.ts +0 -36
- package/dist/types/components/c-button/test/c-button.visual.d.ts +0 -1
- package/dist/types/components/c-card/c-card.d.ts +0 -12
- package/dist/types/components/c-card/test/c-card.visual.d.ts +0 -1
- package/dist/types/components/c-card-actions/c-card-actions.d.ts +0 -5
- package/dist/types/components/c-card-content/c-card-content.d.ts +0 -3
- package/dist/types/components/c-card-title/c-card-title.d.ts +0 -14
- package/dist/types/components/c-checkbox/c-checkbox.d.ts +0 -28
- package/dist/types/components/c-checkbox/test/c-checkbox.visual.d.ts +0 -1
- package/dist/types/components/c-csc-logo/c-csc-logo.d.ts +0 -4
- package/dist/types/components/c-data-table/c-data-table.d.ts +0 -116
- package/dist/types/components/c-data-table/test/c-data-table.visual.d.ts +0 -1
- package/dist/types/components/c-data-table/test/data/index.d.ts +0 -3
- package/dist/types/components/c-dropdown/c-dropdown-options-item.d.ts +0 -3
- package/dist/types/components/c-dropdown/c-dropdown.d.ts +0 -56
- package/dist/types/components/c-icon/c-icon.d.ts +0 -9
- package/dist/types/components/c-icon-button/c-icon-button.d.ts +0 -18
- package/dist/types/components/c-icon-button/test/c-icon-button.visual.d.ts +0 -1
- package/dist/types/components/c-input/c-input.d.ts +0 -64
- package/dist/types/components/c-link/c-link.d.ts +0 -7
- package/dist/types/components/c-link/test/c-link.visual.d.ts +0 -1
- package/dist/types/components/c-list/c-list.d.ts +0 -9
- package/dist/types/components/c-list-item/c-list-item.d.ts +0 -16
- package/dist/types/components/c-list-item-title/c-list-item-title.d.ts +0 -4
- package/dist/types/components/c-loader/c-loader.d.ts +0 -10
- package/dist/types/components/c-login-button/c-login-button.d.ts +0 -6
- package/dist/types/components/c-login-buttons/c-login-buttons.d.ts +0 -3
- package/dist/types/components/c-login-card/c-login-card.d.ts +0 -19
- package/dist/types/components/c-login-card/test/c-login-card.visual.d.ts +0 -1
- package/dist/types/components/c-login-card-actions/c-login-card-actions.d.ts +0 -5
- package/dist/types/components/c-login-card-content/c-login-card-content.d.ts +0 -3
- package/dist/types/components/c-login-card-title/c-login-card-title.d.ts +0 -3
- package/dist/types/components/c-main/c-main.d.ts +0 -4
- package/dist/types/components/c-menu/c-menu.d.ts +0 -26
- package/dist/types/components/c-menu/test/c-menu.visual.d.ts +0 -1
- package/dist/types/components/c-menu-items/c-menu-items.d.ts +0 -43
- package/dist/types/components/c-message/c-message.d.ts +0 -18
- package/dist/types/components/c-modal/c-modal.d.ts +0 -31
- package/dist/types/components/c-navigation-button/c-navigation-button.d.ts +0 -3
- package/dist/types/components/c-option/c-option.d.ts +0 -7
- package/dist/types/components/c-option-value/c-option-value.d.ts +0 -3
- package/dist/types/components/c-otp-input/c-otp-input.d.ts +0 -36
- package/dist/types/components/c-page/c-page.d.ts +0 -8
- package/dist/types/components/c-pagination/c-pagination.d.ts +0 -38
- package/dist/types/components/c-pagination/test/c-pagination.visual.d.ts +0 -1
- package/dist/types/components/c-progress-bar/c-progress-bar.d.ts +0 -9
- package/dist/types/components/c-progress-bar/test/c-progress-bar.visual.d.ts +0 -1
- package/dist/types/components/c-radio/c-radio.d.ts +0 -6
- package/dist/types/components/c-radio-group/c-radio-group.d.ts +0 -31
- package/dist/types/components/c-radio-group/test/c-radio-group.visual.d.ts +0 -1
- package/dist/types/components/c-radio-group/test/items.d.ts +0 -2
- package/dist/types/components/c-ripple/c-ripple.d.ts +0 -7
- package/dist/types/components/c-row/c-row.d.ts +0 -10
- package/dist/types/components/c-select/c-select.d.ts +0 -71
- package/dist/types/components/c-select/test/c-select.visual.d.ts +0 -1
- package/dist/types/components/c-select/test/items.d.ts +0 -2
- package/dist/types/components/c-side-navigation/c-side-navigation.d.ts +0 -15
- package/dist/types/components/c-side-navigation/test/c-side-navigation.visual.d.ts +0 -1
- package/dist/types/components/c-side-navigation-item/c-side-navigation-item.d.ts +0 -21
- package/dist/types/components/c-side-navigation-title/c-side-navigation-title.d.ts +0 -3
- package/dist/types/components/c-slider/c-slider.d.ts +0 -32
- package/dist/types/components/c-spacer/c-spacer.d.ts +0 -3
- package/dist/types/components/c-spinner/c-spinner.d.ts +0 -6
- package/dist/types/components/c-status/c-status.d.ts +0 -4
- package/dist/types/components/c-status/test/c-status.visual.d.ts +0 -1
- package/dist/types/components/c-step/c-step.d.ts +0 -5
- package/dist/types/components/c-steps/c-steps.d.ts +0 -16
- package/dist/types/components/c-steps/test/c-steps.visual.d.ts +0 -1
- package/dist/types/components/c-sub-navigation-item/c-sub-navigation-item.d.ts +0 -10
- package/dist/types/components/c-swiper/c-swiper.d.ts +0 -25
- package/dist/types/components/c-swiper/test/c-swiper.visual.d.ts +0 -1
- package/dist/types/components/c-swiper-tab/c-swiper-tab.d.ts +0 -16
- package/dist/types/components/c-switch/c-switch.d.ts +0 -20
- package/dist/types/components/c-switch/test/c-switch.visual.d.ts +0 -1
- package/dist/types/components/c-tab/c-tab.d.ts +0 -20
- package/dist/types/components/c-tab-buttons/c-tab-buttons.d.ts +0 -24
- package/dist/types/components/c-tab-buttons/test/c-tab-buttons.visual.d.ts +0 -1
- package/dist/types/components/c-tab-item/c-tab-item.d.ts +0 -12
- package/dist/types/components/c-tab-items/c-tab-items.d.ts +0 -18
- package/dist/types/components/c-table/c-table.d.ts +0 -17
- package/dist/types/components/c-tabs/c-tabs.d.ts +0 -67
- package/dist/types/components/c-tabs/test/c-tabs.visual.d.ts +0 -1
- package/dist/types/components/c-tag/c-tag.d.ts +0 -13
- package/dist/types/components/c-tag/test/c-tag.visual.d.ts +0 -1
- package/dist/types/components/c-tags/c-tags.d.ts +0 -6
- package/dist/types/components/c-text-field/c-text-field.d.ts +0 -51
- package/dist/types/components/c-text-field/test/c-text-field.visual.d.ts +0 -1
- package/dist/types/components/c-text-field-open/c-text-field-open.d.ts +0 -52
- package/dist/types/components/c-toast/c-toast.d.ts +0 -19
- package/dist/types/components/c-toasts/c-toasts.d.ts +0 -17
- package/dist/types/components/c-toasts/test/c-toasts.visual.d.ts +0 -1
- package/dist/types/components/c-toolbar/c-toolbar.d.ts +0 -3
- package/dist/types/components/c-toolbar/test/c-toolbar.visual.d.ts +0 -1
- package/dist/types/components.d.ts +0 -5718
- package/dist/types/home/runner/work/ui/ui/packages/csc-ui/.stencil/playwright.config.d.ts +0 -2
- package/dist/types/home/runner/work/ui/ui/packages/csc-ui/.stencil/stencil.config.d.ts +0 -2
- package/dist/types/index.d.ts +0 -1
- package/dist/types/stencil-public-runtime.d.ts +0 -1681
- package/dist/types/types/global.d.ts +0 -13
- package/dist/types/types/index.d.ts +0 -145
- package/dist/types/utils/getScrollParent.d.ts +0 -1
- package/dist/types/utils/index.d.ts +0 -1
- package/dist/types/utils/test/sleep.d.ts +0 -1
- package/dist/types/utils/test/takeScreenshot.d.ts +0 -2
- package/loader/cdn.js +0 -1
- package/loader/index.cjs.js +0 -1
- package/loader/index.d.ts +0 -24
- package/loader/index.es2017.js +0 -1
- package/loader/index.js +0 -2
- package/vscode-data.json +0 -2401
|
@@ -1,830 +0,0 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, c as createEvent, h, F as Fragment, d as Host } from './p-Fv9YCUj3.js';
|
|
2
|
-
import { c as mdiChevronDown, l as mdiSwapVertical, e as mdiChevronLeft, f as mdiChevronRight, n as mdiArrowUpThin, o as mdiArrowDownThin } from './p-Bd7jq7MS.js';
|
|
3
|
-
import { d as defineCustomElement$c } from './p-DKhrqMh8.js';
|
|
4
|
-
import { d as defineCustomElement$b } from './p-BGFYISEF.js';
|
|
5
|
-
import { d as defineCustomElement$a } from './p-Cmy8x1XB.js';
|
|
6
|
-
import { d as defineCustomElement$9 } from './p-BCgTj9pp.js';
|
|
7
|
-
import { d as defineCustomElement$8 } from './p-lKEVcO51.js';
|
|
8
|
-
import { d as defineCustomElement$7 } from './p-CSoWw_-h.js';
|
|
9
|
-
import { d as defineCustomElement$6 } from './p-BJVLvFq9.js';
|
|
10
|
-
import { d as defineCustomElement$5 } from './p-BOTLtsJq.js';
|
|
11
|
-
import { d as defineCustomElement$4 } from './p-DEHCeGjr.js';
|
|
12
|
-
import { d as defineCustomElement$3 } from './p-DpnXN7-j.js';
|
|
13
|
-
import { d as defineCustomElement$2 } from './p-D6wozX_5.js';
|
|
14
|
-
|
|
15
|
-
const cDataTableCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-data-table-background-color:var(\n --c-data-table-background-color,\n var(--c-white)\n );--_c-data-table-border-color:var(\n --c-data-table-border-color,\n var(--c-tertiary-200)\n );--_c-data-table-background-color-hover:var(\n --c-data-table-background-color-hover,\n var(--c-primary-100)\n );--_c-data-table-selected-row-background-color:var(\n --c-data-table-selected-row-background-color,\n rgba(var(--c-primary-rgb), 0.1)\n );--_c-data-table-highlighted-column-background-color:var(\n --c-data-table-highlighted-column-background-color,\n rgba(var(--c-primary-rgb), 0.1)\n );--_c-data-table-active:var(--c-data-table-active, var(--c-primary-600));--_c-data-table-checkbox-color:var(\n --c-data-table-checkbox-color,\n var(--c-primary-600)\n );--_c-data-table-checkbox-color-active:var(\n --c-data-table-checkbox-color-active,\n var(--_c-data-table-checkbox-color)\n );--_c-data-table-checkbox-background-color-hover:var(\n --c-data-table-checkbox-background-color-hover,\n rgba(var(--c-primary-rgb), 0.1)\n );--_c-data-table-pagination-button-active-background-color:var(\n --c-data-table-pagination-button-active-background-color,\n var(--c-primary-600)\n );--_c-data-table-pagination-button-active-background-color-hover:var(\n --c-data-table-pagination-button-active-background-color-hover,\n var(--c-primary-400)\n );--_c-data-table-pagination-button-active-text-color:var(\n --c-data-table-pagination-button-active-text-color,\n var(--c-white)\n );--_c-data-table-pagination-button-background-color:var(\n --c-data-table-pagination-button-background-color,\n var(--c-transparent)\n );--_c-data-table-pagination-button-background-color-hover:var(\n --c-data-table-pagination-button-background-color-hover,\n rgba(var(--c-primary-rgb), 0.1)\n );--_c-data-table-pagination-button-text-color:var(\n --c-data-table-pagination-button-text-color,\n var(--_c-data-table-pagination-button-active-background-color)\n );--_c-data-table-menu-text-color:var(\n --c-data-table-menu-text-color,\n var(--c-text-system)\n );--_c-data-table-menu-text-color-active:var(\n --c-data-table-menu-text-color-active,\n var(--c-primary-600)\n );--_c-data-table-menu-background-color-hover:var(\n --c-data-table-menu-background-color-hover,\n var(--c-primary-200)\n );--_c-data-table-menu-outline-color:var(\n --c-data-table-menu-outline-color,\n var(--c-primary-600)\n );display:block;position:relative;width:100%;max-width:100%}:host c-checkbox{--c-checkbox-color:var(--_c-data-table-checkbox-color);--c-checkbox-color-active:var(--_c-data-table-checkbox-color-active);--c-checkbox-background-color-hover:var(\n --_c-data-table-checkbox-background-color-hover\n )}:host table,:host caption,:host tbody,:host tfoot,:host thead,:host tr,:host th,:host td{border:0;font-size:100%;font-family:inherit;margin:0;padding:0}:host table{background-color:var(--_c-data-table-background-color);border-collapse:collapse;border-spacing:0}:host .c-data-table{box-shadow:inset 0 0 0 1px var(--_c-data-table-border-color);width:100%}:host .c-data-table__wrapper{display:grid;max-width:100%}:host .c-data-table__table-wrapper{overflow:hidden}:host .c-data-table .children{display:flex;flex-wrap:wrap;gap:4px;width:100%}:host .c-data-table .children pre{font-family:inherit;white-space:pre-wrap}:host .c-data-table [data-justify=end],:host .c-data-table [data-align=end] .children{align-items:flex-end}:host .c-data-table [data-justify=start],:host .c-data-table [data-align=start] .children{align-items:flex-start}:host .c-data-table [data-justify=center],:host .c-data-table [data-align=center] .children{align-items:center}:host .c-data-table [data-align=end],:host .c-data-table [data-justify=end] .children{justify-content:flex-end}:host .c-data-table [data-align=start],:host .c-data-table [data-justify=start] .children{justify-content:flex-start}:host .c-data-table [data-align=center],:host .c-data-table [data-justify=center] .children{justify-content:center}:host .c-data-table th,:host .c-data-table td{font-weight:400}:host .c-data-table th>div,:host .c-data-table td>div{align-items:center;box-sizing:border-box;display:flex;line-height:normal;padding:12px;width:100%}:host .c-data-table th{font-size:14px;padding:4px}:host .c-data-table th.selection{width:56px}:host .c-data-table th.indicator{width:46px}:host .c-data-table th>div{border-radius:4px;flex-wrap:nowrap;gap:8px;height:48px;white-space:nowrap}:host .c-data-table th>div.sortable:hover{background-color:var(--_c-data-table-background-color-hover);color:var(--_c-data-table-active);cursor:pointer}:host .c-data-table th>div.sortable:hover svg{fill:var(--_c-data-table-active)}:host .c-data-table th>div.selection--heading{padding-left:8px;padding-right:0;margin-right:-8px}:host .c-data-table td{font-size:16px}:host .c-data-table td>div{align-items:flex-start;flex-direction:column;gap:8px;justify-content:center;min-height:56px;padding:12px}:host .c-data-table td>div.selection{margin-right:-4px;padding:7px 0 7px 12px}:host .c-data-table td>div c-tag{--c-tag-margin:0}:host .c-data-table td.loader{background-color:var(--_c-data-table-border-color);height:2px;position:relative}:host .c-data-table td.loader>div{height:2px;min-height:auto;padding:0}:host .c-data-table td.info>div{background-color:var(--c-white);border-top-width:0;border:1px solid var(--_c-data-table-border-color);justify-content:center}:host .c-data-table td svg{transition:transform 0.3s cubic-bezier(0.25, 0.8, 0.5, 1)}:host .c-data-table thead{background-color:var(--_c-data-table-background-color);position:relative}:host .c-data-table thead.sticky{box-shadow:0 2px 0 0 var(--_c-data-table-border-color);position:sticky;top:0;z-index:3}:host .c-data-table thead .c-data-table__header-indicators{pointer-events:none}:host .c-data-table thead .c-data-table__header-indicators th>div{margin-top:-56px;display:flex;justify-items:space-between}:host .c-data-table thead .c-data-table__header-indicators c-icon-button{background-color:rgba(255, 255, 255, 0.75);border-radius:50%;pointer-events:all}:host .c-data-table tfoot{background-color:var(--_c-data-table-background-color)}:host .c-data-table tfoot tr{box-shadow:inset 0 1px 0 0 var(--_c-data-table-border-color)}:host .c-data-table tfoot td>div{align-items:center;flex-direction:row;justify-content:flex-start;min-height:48px}:host .c-data-table tfoot td c-pagination{--c-pagination-button-active-background-color:var(\n --_c-data-table-pagination-button-active-background-color\n );--c-pagination-button-active-background-color-hover:var(\n --_c-data-table-pagination-button-active-background-color-hover\n );--c-pagination-button-active-text-color:var(\n --_c-data-table-pagination-button-active-text-color\n );--c-pagination-button-background-color:var(\n --_c-data-table-pagination-button-background-color\n );--c-pagination-button-background-color-hover:var(\n --_c-data-table-pagination-button-background-color-hover\n );--c-pagination-button-text-color:var(\n --_c-data-table-pagination-button-text-color\n );--c-pagination-menu-text-color:var(--_c-data-table-menu-text-color);--c-pagination-menu-text-color-active:var(\n --_c-data-table-menu-text-color-active\n );--c-pagination-menu-background-color-hover:var(\n --_c-data-table-menu-background-color-hover\n );--c-pagination-menu-outline-color:var(\n --_c-data-table-menu-text-color\n );flex:1}:host .c-data-table tbody{}@supports (-webkit-hyphens: none){:host .c-data-table tbody tr{border-bottom:1px solid var(--_c-data-table-border-color)}}:host .c-data-table tbody tr{box-shadow:inset 0 1px 0 0 var(--_c-data-table-border-color)}:host .c-data-table tbody tr.actions{box-shadow:none}:host .c-data-table tbody tr.actions td>div{background-color:rgba(0, 0, 0, 0.015);height:auto}:host .c-data-table tbody tr.active{box-shadow:inset 2px 0 0 var(--_c-data-table-active), inset -2px 0 0 var(--_c-data-table-active), inset 0 2px 0 var(--_c-data-table-active);border-radius:6px 6px 0 0}:host .c-data-table tbody tr.active svg{transform:rotate(180deg)}:host .c-data-table tbody tr.active+.additional-data{border-radius:0 0 6px 6px;box-shadow:inset 2px 0 0 var(--_c-data-table-active), inset -2px 0 0 var(--_c-data-table-active), inset 0 -2px 0 var(--_c-data-table-active)}:host .c-data-table tbody tr.active.selected{box-shadow:inset 4px 0 0 var(--_c-data-table-active), inset -2px 0 0 var(--_c-data-table-active), inset 0 2px 0 var(--_c-data-table-active)}:host .c-data-table tbody tr.selected{background-color:var(--_c-data-table-selected-row-background-color);box-shadow:inset 4px 0 0 var(--_c-data-table-active), inset 0 1px 0 0 var(--_c-data-table-border-color)}:host .c-data-table tbody tr.selected+.additional-data{box-shadow:inset 4px 0 0 var(--_c-data-table-active), inset -2px 0 0 var(--_c-data-table-active), inset 0 -2px 0 var(--_c-data-table-active)}:host .c-data-table__loader{background-color:var(--_c-data-table-border-color);height:2px;overflow:hidden;position:absolute;width:100%}:host .c-data-table .loading-bar{animation:loading 1s ease-in 0.5s infinite;background-color:var(--_c-data-table-active);height:100%;left:-50%;position:absolute;width:50%}@keyframes loading{0%{transform:translateX(0)}100%{transform:translateX(400%)}}:host .c-data-table .additional-data{display:none}:host .c-data-table .additional-data.active{display:table-row}:host .c-data-table .additional-data ul{list-style:none;margin:0;padding:0;width:100%}:host .c-data-table .additional-data ul li{padding:12px}:host .c-data-table .additional-data ul li:not(:last-child){box-shadow:inset 0 -1px 0 0 var(--_c-data-table-border-color)}:host .c-data-table .additional-data ul li span.label{color:var(--_c-data-table-active);font-weight:600}:host .c-data-table .additional-data ul li .title{display:flex;gap:8px}:host .c-data-table .additional-data ul li .title+.children{margin-top:8px}:host .c-data-table--scrollable{position:relative}:host .c-data-table--hoverable tbody tr:not(.additional-data){cursor:pointer}:host .c-data-table--hoverable tbody tr:not(.additional-data):hover{background-color:var(--_c-data-table-background-color-hover);border-radius:6px;box-shadow:inset 0 0 0 2px var(--_c-data-table-active);overflow:hidden}:host .c-data-table--hoverable tbody tr:not(.additional-data):hover c-button.text,:host .c-data-table--hoverable tbody tr:not(.additional-data):hover c-button.ghost{--c-button-hover:var(--c-primary-200)}:host .c-data-table--hoverable tbody tr:not(.additional-data).active:hover{border-radius:6px 6px 0 0;box-shadow:inset 2px 0 0 var(--_c-data-table-active), inset -2px 0 0 var(--_c-data-table-active), inset 0 2px 0 var(--_c-data-table-active)}:host .c-data-table--hoverable tbody tr:not(.additional-data).selected.active:hover{border-radius:6px 6px 0 0;box-shadow:inset 4px 0 0 var(--_c-data-table-active), inset -2px 0 0 var(--_c-data-table-active), inset 0 2px 0 var(--_c-data-table-active)}:host .c-data-table--hoverable tbody tr:not(.additional-data).selected:hover{border-radius:6px;box-shadow:inset 4px 0 0 var(--_c-data-table-active), inset 0 0 0 2px var(--_c-data-table-active)}:host .sorted-column{background-color:var(--_c-data-table-highlighted-column-background-color)}:host([horizontal-scrolling]) .c-data-table__table-wrapper{overflow-x:scroll !important}";
|
|
16
|
-
|
|
17
|
-
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
18
|
-
var t = {};
|
|
19
|
-
for (var p in s)
|
|
20
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
21
|
-
t[p] = s[p];
|
|
22
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
23
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
24
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
25
|
-
t[p[i]] = s[p[i]];
|
|
26
|
-
}
|
|
27
|
-
return t;
|
|
28
|
-
};
|
|
29
|
-
const CDataTable$1 = proxyCustomElement(class CDataTable extends H {
|
|
30
|
-
constructor() {
|
|
31
|
-
super();
|
|
32
|
-
this.__registerHost();
|
|
33
|
-
this.__attachShadow();
|
|
34
|
-
this.paginate = createEvent(this, "paginate", 7);
|
|
35
|
-
this.expand = createEvent(this, "expand", 7);
|
|
36
|
-
this.sort = createEvent(this, "sort", 7);
|
|
37
|
-
this.selection = createEvent(this, "selection", 7);
|
|
38
|
-
this.data = [];
|
|
39
|
-
this.externalData = false;
|
|
40
|
-
this.headers = [];
|
|
41
|
-
this.hideFooter = false;
|
|
42
|
-
this.footerOptions = {
|
|
43
|
-
hideDetails: false,
|
|
44
|
-
simple: false,
|
|
45
|
-
hideRange: false,
|
|
46
|
-
size: 'default',
|
|
47
|
-
};
|
|
48
|
-
this.loading = false;
|
|
49
|
-
this.loadingText = 'Loading data';
|
|
50
|
-
this.noDataText = 'No data';
|
|
51
|
-
this.selectable = false;
|
|
52
|
-
this.singleSelection = false;
|
|
53
|
-
this.selectionProperty = null;
|
|
54
|
-
this.singleExpansion = false;
|
|
55
|
-
this.sortBy = null;
|
|
56
|
-
this.sortDirection = null;
|
|
57
|
-
this.stickyHeader = false;
|
|
58
|
-
this.horizontalScrolling = false;
|
|
59
|
-
this._activeRows = [];
|
|
60
|
-
this._data = [];
|
|
61
|
-
this._isIndeterminate = false;
|
|
62
|
-
this._isPaginationSimple = false;
|
|
63
|
-
this._selections = [];
|
|
64
|
-
this.hasOverflow = false;
|
|
65
|
-
this.hiddenHeaders = [];
|
|
66
|
-
this.initiallyHiddenHeaders = [];
|
|
67
|
-
this.forceRender = false;
|
|
68
|
-
this.breakpoints = [];
|
|
69
|
-
this.markedFooterWidth = 0;
|
|
70
|
-
this.parentWidth = 0;
|
|
71
|
-
this.firstCellHidden = false;
|
|
72
|
-
this.lastCellHidden = false;
|
|
73
|
-
this._debounce = null;
|
|
74
|
-
this._extraHeaders = [];
|
|
75
|
-
this._isValidated = false;
|
|
76
|
-
this._isVisible = false;
|
|
77
|
-
this._sortedData = [];
|
|
78
|
-
}
|
|
79
|
-
onHiddenHeaderChange() {
|
|
80
|
-
this._getData();
|
|
81
|
-
}
|
|
82
|
-
onDataChange() {
|
|
83
|
-
this._getData();
|
|
84
|
-
this._handleInitialHeaders();
|
|
85
|
-
}
|
|
86
|
-
onHeaderChange() {
|
|
87
|
-
this._handleInitialHeaders();
|
|
88
|
-
}
|
|
89
|
-
onSingleSelectionChange() {
|
|
90
|
-
this.clearSelections();
|
|
91
|
-
}
|
|
92
|
-
onLoadingChange(loading) {
|
|
93
|
-
if (!loading) {
|
|
94
|
-
this._setIndeterminateStatus();
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
async clearSelections() {
|
|
98
|
-
this._selections = [];
|
|
99
|
-
this._emitChange();
|
|
100
|
-
this._setIndeterminateStatus();
|
|
101
|
-
}
|
|
102
|
-
async getData() {
|
|
103
|
-
return this._sortedData;
|
|
104
|
-
}
|
|
105
|
-
componentWillLoad() {
|
|
106
|
-
var _a, _b;
|
|
107
|
-
this.sortBy = (_a = this.sortBy) !== null && _a !== void 0 ? _a : this.headers[0].key;
|
|
108
|
-
this.sortDirection = (_b = this.sortDirection) !== null && _b !== void 0 ? _b : 'asc';
|
|
109
|
-
this._getData();
|
|
110
|
-
this._handleInitialHeaders();
|
|
111
|
-
}
|
|
112
|
-
componentDidLoad() {
|
|
113
|
-
this._handleResize();
|
|
114
|
-
if (!this.horizontalScrolling) {
|
|
115
|
-
this._rootIntersectionObserver = new IntersectionObserver(([entry]) => {
|
|
116
|
-
if (entry.isIntersecting) {
|
|
117
|
-
this._handleResponsiveHeaders();
|
|
118
|
-
this._isVisible = true;
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
this._resizeObserver = new ResizeObserver(() => {
|
|
122
|
-
this._handleResize();
|
|
123
|
-
});
|
|
124
|
-
this._rootIntersectionObserver.observe(this.element);
|
|
125
|
-
}
|
|
126
|
-
else {
|
|
127
|
-
const [firstCell] = this._headerKeys;
|
|
128
|
-
const lastCell = this._headerKeys[this._headerKeys.length - 1];
|
|
129
|
-
this._firstCellIntersectionObserver = new IntersectionObserver(([entry]) => {
|
|
130
|
-
this.firstCellHidden = !entry.isIntersecting;
|
|
131
|
-
}, { threshold: 1, rootMargin: '16px', root: this.element });
|
|
132
|
-
this._lastCellIntersectionObserver = new IntersectionObserver(([entry]) => {
|
|
133
|
-
this.lastCellHidden = !entry.isIntersecting;
|
|
134
|
-
}, { threshold: 1, rootMargin: '16px', root: this.element });
|
|
135
|
-
this._resizeObserver = new ResizeObserver(() => {
|
|
136
|
-
this._handleScrollWidth();
|
|
137
|
-
});
|
|
138
|
-
this._firstCellIntersectionObserver.observe(this._tableElement.querySelector(`[data-id="${firstCell}"]`));
|
|
139
|
-
this._lastCellIntersectionObserver.observe(this._tableElement.querySelector(`[data-id="${lastCell}"]`));
|
|
140
|
-
}
|
|
141
|
-
this._resizeObserver.observe(this.element);
|
|
142
|
-
}
|
|
143
|
-
disconnectedCallback() {
|
|
144
|
-
var _a, _b, _c, _d;
|
|
145
|
-
(_a = this._resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
146
|
-
(_b = this._rootIntersectionObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
|
|
147
|
-
(_c = this._firstCellIntersectionObserver) === null || _c === void 0 ? void 0 : _c.disconnect();
|
|
148
|
-
(_d = this._lastCellIntersectionObserver) === null || _d === void 0 ? void 0 : _d.disconnect();
|
|
149
|
-
}
|
|
150
|
-
_handleInitialHeaders() {
|
|
151
|
-
this.initiallyHiddenHeaders = this.headers
|
|
152
|
-
.filter((header) => !!header.hidden)
|
|
153
|
-
.map((header) => header.key);
|
|
154
|
-
this.hiddenHeaders = [
|
|
155
|
-
...new Set([...this.hiddenHeaders, ...this.initiallyHiddenHeaders]),
|
|
156
|
-
];
|
|
157
|
-
}
|
|
158
|
-
_handleHeaderVisibility(header, rootWidth, x) {
|
|
159
|
-
var _a;
|
|
160
|
-
const index = this._headers.findIndex((h) => h.key === header.dataset.id);
|
|
161
|
-
const position = header.getBoundingClientRect();
|
|
162
|
-
const isFullyVisible = position.right - x <= rootWidth;
|
|
163
|
-
const isLastVisibleHeader = header.dataset.id === Array.from(this._headerRefs.keys()).at(0);
|
|
164
|
-
const isPinned = (_a = this._headers[index]) === null || _a === void 0 ? void 0 : _a.pinned;
|
|
165
|
-
if (!isFullyVisible && isPinned && index >= 1) {
|
|
166
|
-
const nextUnpinnedHeader = Array.from(this._headerRefs.values())
|
|
167
|
-
.reverse()
|
|
168
|
-
.find((hdr) => {
|
|
169
|
-
var _a;
|
|
170
|
-
if (!hdr)
|
|
171
|
-
return false;
|
|
172
|
-
return !((_a = this._headers.find((h) => h.key === hdr.dataset.id)) === null || _a === void 0 ? void 0 : _a.pinned);
|
|
173
|
-
});
|
|
174
|
-
this.hiddenHeaders = [
|
|
175
|
-
...new Set([
|
|
176
|
-
...this.initiallyHiddenHeaders,
|
|
177
|
-
...this.hiddenHeaders,
|
|
178
|
-
(nextUnpinnedHeader || header).dataset.id,
|
|
179
|
-
]),
|
|
180
|
-
];
|
|
181
|
-
return;
|
|
182
|
-
}
|
|
183
|
-
if (!isFullyVisible && !isLastVisibleHeader) {
|
|
184
|
-
this.hiddenHeaders = [
|
|
185
|
-
...new Set([
|
|
186
|
-
...this.initiallyHiddenHeaders,
|
|
187
|
-
...this.hiddenHeaders,
|
|
188
|
-
header.dataset.id,
|
|
189
|
-
]),
|
|
190
|
-
];
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
_handleResponsiveHeaders() {
|
|
194
|
-
const { width: rootWidth, x } = this.element.getBoundingClientRect();
|
|
195
|
-
if (this._debounce !== null) {
|
|
196
|
-
clearTimeout(this._debounce);
|
|
197
|
-
this._debounce = null;
|
|
198
|
-
}
|
|
199
|
-
const { width: tableWidth } = this._tableElement.getBoundingClientRect();
|
|
200
|
-
if (rootWidth < tableWidth) {
|
|
201
|
-
this.breakpoints = [...new Set([...this.breakpoints, tableWidth])];
|
|
202
|
-
setTimeout(() => {
|
|
203
|
-
for (const header of this._headerRefs.values()) {
|
|
204
|
-
if (header) {
|
|
205
|
-
this._handleHeaderVisibility(header, rootWidth, x);
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
this._debounce = setTimeout(() => {
|
|
209
|
-
var _a, _b;
|
|
210
|
-
const footerWidth = ((_b = (_a = this._footerElement) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) === null || _b === void 0 ? void 0 : _b.width) || 0;
|
|
211
|
-
if (rootWidth < footerWidth) {
|
|
212
|
-
this.markedFooterWidth = footerWidth;
|
|
213
|
-
this._isPaginationSimple = true;
|
|
214
|
-
}
|
|
215
|
-
}, 200);
|
|
216
|
-
}, 0);
|
|
217
|
-
}
|
|
218
|
-
else if (this.breakpoints.length > 0 &&
|
|
219
|
-
tableWidth >= this.breakpoints[this.breakpoints.length - 1]) {
|
|
220
|
-
this.breakpoints.pop();
|
|
221
|
-
const displayHeader = this.headers.find((header) => this.hiddenHeaders.includes(header.key));
|
|
222
|
-
if (!!displayHeader) {
|
|
223
|
-
const headerIndex = this.hiddenHeaders.indexOf(displayHeader.key);
|
|
224
|
-
this.hiddenHeaders.splice(headerIndex, 1);
|
|
225
|
-
this.hiddenHeaders = [
|
|
226
|
-
...new Set([...this.hiddenHeaders, ...this.initiallyHiddenHeaders]),
|
|
227
|
-
];
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
this._debounce = setTimeout(() => {
|
|
231
|
-
if (rootWidth >= this.markedFooterWidth && this.markedFooterWidth > 0) {
|
|
232
|
-
this._isPaginationSimple = false;
|
|
233
|
-
}
|
|
234
|
-
}, 200);
|
|
235
|
-
}
|
|
236
|
-
_addHeaderRef(key, el) {
|
|
237
|
-
if (!this._headerRefs) {
|
|
238
|
-
this._headerRefs = new Map([[key, el]]);
|
|
239
|
-
return;
|
|
240
|
-
}
|
|
241
|
-
this._headerRefs.set(key, el);
|
|
242
|
-
}
|
|
243
|
-
_getData() {
|
|
244
|
-
this._extraHeaders = this.headers.filter((header) => { var _a; return !Object.keys(((_a = this.data) === null || _a === void 0 ? void 0 : _a[0]) || {}).includes(header.key); });
|
|
245
|
-
const extraCells = this._extraHeaders.reduce((cells, header) => (Object.assign(Object.assign({}, cells), { [header.key]: {
|
|
246
|
-
value: null,
|
|
247
|
-
} })), {});
|
|
248
|
-
const items = this.data
|
|
249
|
-
.map((row) => (Object.assign(Object.assign({}, row), extraCells)))
|
|
250
|
-
.reduce((data, cell) => {
|
|
251
|
-
const item = {
|
|
252
|
-
_hiddenData: [],
|
|
253
|
-
};
|
|
254
|
-
Object.keys(cell).forEach((key) => {
|
|
255
|
-
item[key] = cell[key];
|
|
256
|
-
});
|
|
257
|
-
this.hiddenHeaders.forEach((header) => {
|
|
258
|
-
const cellData = this.headers.find((h) => h.key === header);
|
|
259
|
-
item._hiddenData.push({
|
|
260
|
-
id: cellData === null || cellData === void 0 ? void 0 : cellData.key,
|
|
261
|
-
key: cellData === null || cellData === void 0 ? void 0 : cellData.value,
|
|
262
|
-
value: cell[header],
|
|
263
|
-
});
|
|
264
|
-
});
|
|
265
|
-
data.push(item);
|
|
266
|
-
return data;
|
|
267
|
-
}, []);
|
|
268
|
-
this._data = this._sortData(items);
|
|
269
|
-
this.pagination = Object.assign(Object.assign({}, this.pagination), { itemCount: this.data.length });
|
|
270
|
-
this._validateProps(this._data[0]);
|
|
271
|
-
this._handleScrollWidth();
|
|
272
|
-
requestAnimationFrame(() => {
|
|
273
|
-
this._handleResize();
|
|
274
|
-
});
|
|
275
|
-
}
|
|
276
|
-
_getSelectionValue(row, index) {
|
|
277
|
-
var _a;
|
|
278
|
-
return !!this.selectionProperty
|
|
279
|
-
? ((_a = row[this.selectionProperty]) === null || _a === void 0 ? void 0 : _a.value) || index
|
|
280
|
-
: index;
|
|
281
|
-
}
|
|
282
|
-
get _headers() {
|
|
283
|
-
return this.headers
|
|
284
|
-
.map((header) => (Object.assign(Object.assign({}, header), { pinned: !!header.pinned })))
|
|
285
|
-
.filter((header) => !this.hiddenHeaders.includes(header.key) && !header.hidden);
|
|
286
|
-
}
|
|
287
|
-
get _headerKeys() {
|
|
288
|
-
return this._headers.map((header) => header.key);
|
|
289
|
-
}
|
|
290
|
-
get _hasHiddenData() {
|
|
291
|
-
return !!this.hiddenHeaders.length;
|
|
292
|
-
}
|
|
293
|
-
_emitChange() {
|
|
294
|
-
this.selection.emit(this._selections);
|
|
295
|
-
}
|
|
296
|
-
_setIndeterminateStatus() {
|
|
297
|
-
requestAnimationFrame(() => {
|
|
298
|
-
this._isIndeterminate = this._isPageIndeterminate();
|
|
299
|
-
this._refresh();
|
|
300
|
-
});
|
|
301
|
-
}
|
|
302
|
-
_sortData(data) {
|
|
303
|
-
var _a, _b, _c, _d;
|
|
304
|
-
if (!this.sortBy || this.externalData)
|
|
305
|
-
return data;
|
|
306
|
-
const sorted = data.sort((a, b) => {
|
|
307
|
-
var _a, _b, _c, _d;
|
|
308
|
-
const valueA = (_b = (_a = a[this.sortBy]) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : null;
|
|
309
|
-
const valueB = (_d = (_c = b[this.sortBy]) === null || _c === void 0 ? void 0 : _c.value) !== null && _d !== void 0 ? _d : null;
|
|
310
|
-
if (valueA === null && valueB === null)
|
|
311
|
-
return 0;
|
|
312
|
-
if (valueA === null)
|
|
313
|
-
return this.sortDirection === 'asc' ? 1 : -1;
|
|
314
|
-
if (valueB === null)
|
|
315
|
-
return this.sortDirection === 'asc' ? -1 : 1;
|
|
316
|
-
if (typeof valueA === 'string' && typeof valueB === 'string') {
|
|
317
|
-
if (this.sortDirection === 'asc') {
|
|
318
|
-
return valueA.toLowerCase().localeCompare(valueB.toLowerCase());
|
|
319
|
-
}
|
|
320
|
-
return valueB.toLowerCase().localeCompare(valueA.toLowerCase());
|
|
321
|
-
}
|
|
322
|
-
if (typeof valueA === 'number' && typeof valueB === 'number') {
|
|
323
|
-
if (this.sortDirection === 'asc') {
|
|
324
|
-
return valueA - valueB;
|
|
325
|
-
}
|
|
326
|
-
return valueB - valueA;
|
|
327
|
-
}
|
|
328
|
-
return 0;
|
|
329
|
-
});
|
|
330
|
-
this._sortedData = sorted.map((row) => {
|
|
331
|
-
const { _hiddenData } = row, _rowData = __rest(row, ["_hiddenData"]);
|
|
332
|
-
const hiddenData = _hiddenData.reduce((items, item) => {
|
|
333
|
-
var _a;
|
|
334
|
-
items[item.id] =
|
|
335
|
-
item.value.plainTextValue ||
|
|
336
|
-
((_a = item.value.formattedValue) === null || _a === void 0 ? void 0 : _a.trim()) ||
|
|
337
|
-
item.value.value;
|
|
338
|
-
return items;
|
|
339
|
-
}, {});
|
|
340
|
-
const rowData = Object.entries(_rowData).reduce((items, [key, item]) => {
|
|
341
|
-
var _a;
|
|
342
|
-
items[key] =
|
|
343
|
-
item.plainTextValue ||
|
|
344
|
-
((_a = item.formattedValue) === null || _a === void 0 ? void 0 : _a.toString().trim()) ||
|
|
345
|
-
item.value;
|
|
346
|
-
return items;
|
|
347
|
-
}, {});
|
|
348
|
-
return Object.assign(Object.assign({}, rowData), hiddenData);
|
|
349
|
-
});
|
|
350
|
-
return !this.hideFooter
|
|
351
|
-
? sorted.slice((_b = (_a = this.pagination) === null || _a === void 0 ? void 0 : _a.startFrom) !== null && _b !== void 0 ? _b : 0, ((_d = (_c = this.pagination) === null || _c === void 0 ? void 0 : _c.endTo) !== null && _d !== void 0 ? _d : this.data.length) + 1)
|
|
352
|
-
: sorted;
|
|
353
|
-
}
|
|
354
|
-
_handleScrollWidth() {
|
|
355
|
-
this.parentWidth = this.element.getBoundingClientRect().width;
|
|
356
|
-
}
|
|
357
|
-
_handleResize() {
|
|
358
|
-
if (this._isVisible) {
|
|
359
|
-
this._handleResponsiveHeaders();
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
_getIndex(index) {
|
|
363
|
-
let realIndex = index;
|
|
364
|
-
if (!this.selectionProperty &&
|
|
365
|
-
!!this.pagination &&
|
|
366
|
-
typeof realIndex === 'number') {
|
|
367
|
-
realIndex += this.pagination.startFrom;
|
|
368
|
-
if (this.sortDirection === 'desc') {
|
|
369
|
-
realIndex = this.pagination.itemCount - 1 - realIndex;
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
return realIndex;
|
|
373
|
-
}
|
|
374
|
-
_getSelectionsForPage() {
|
|
375
|
-
return this._selections.filter((selection) => this._data
|
|
376
|
-
.map((row, index) => this._getSelectionValue(row, this._getIndex(index)))
|
|
377
|
-
.includes(selection));
|
|
378
|
-
}
|
|
379
|
-
_hasSelectionsOnPage() {
|
|
380
|
-
return this._getSelectionsForPage().length > 0;
|
|
381
|
-
}
|
|
382
|
-
_isPageIndeterminate() {
|
|
383
|
-
const selectionsInPage = this._getSelectionsForPage();
|
|
384
|
-
return (this._hasSelectionsOnPage() && selectionsInPage.length < this._data.length);
|
|
385
|
-
}
|
|
386
|
-
_onHeadingSelection(event) {
|
|
387
|
-
event === null || event === void 0 ? void 0 : event.stopPropagation();
|
|
388
|
-
event === null || event === void 0 ? void 0 : event.preventDefault();
|
|
389
|
-
if (event instanceof KeyboardEvent &&
|
|
390
|
-
event.type === 'keyup' &&
|
|
391
|
-
event.key !== ' ') {
|
|
392
|
-
return;
|
|
393
|
-
}
|
|
394
|
-
if (this._debounce !== null) {
|
|
395
|
-
clearTimeout(this._debounce);
|
|
396
|
-
this._debounce = null;
|
|
397
|
-
}
|
|
398
|
-
this._debounce = setTimeout(() => {
|
|
399
|
-
if (this._data.length === this._getSelectionsForPage().length) {
|
|
400
|
-
this._selections = [
|
|
401
|
-
...this._selections.filter((selection) => !this._data
|
|
402
|
-
.map((row, index) => this._getSelectionValue(row, this._getIndex(index)))
|
|
403
|
-
.includes(selection)),
|
|
404
|
-
];
|
|
405
|
-
this._setIndeterminateStatus();
|
|
406
|
-
this._emitChange();
|
|
407
|
-
return;
|
|
408
|
-
}
|
|
409
|
-
this._selections = [
|
|
410
|
-
...new Set([
|
|
411
|
-
...this._selections,
|
|
412
|
-
...this._data.map((row, index) => this._getSelectionValue(row, this._getIndex(index))),
|
|
413
|
-
]),
|
|
414
|
-
];
|
|
415
|
-
this._setIndeterminateStatus();
|
|
416
|
-
this._emitChange();
|
|
417
|
-
}, 200);
|
|
418
|
-
}
|
|
419
|
-
_onPaginationChange(event) {
|
|
420
|
-
if (this.externalData) {
|
|
421
|
-
this.paginate.emit(event.detail);
|
|
422
|
-
return;
|
|
423
|
-
}
|
|
424
|
-
this.pagination = Object.assign(Object.assign({}, this.pagination), event.detail);
|
|
425
|
-
this._setIndeterminateStatus();
|
|
426
|
-
this._getData();
|
|
427
|
-
}
|
|
428
|
-
_onSelection(value) {
|
|
429
|
-
if (this.singleSelection) {
|
|
430
|
-
this._selections = [value];
|
|
431
|
-
this._emitChange();
|
|
432
|
-
this._refresh();
|
|
433
|
-
return;
|
|
434
|
-
}
|
|
435
|
-
if (this._selections.includes(value)) {
|
|
436
|
-
this._selections = this._selections.filter((selection) => selection !== value);
|
|
437
|
-
}
|
|
438
|
-
else {
|
|
439
|
-
this._selections = [...this._selections, value];
|
|
440
|
-
}
|
|
441
|
-
this._emitChange();
|
|
442
|
-
this._setIndeterminateStatus();
|
|
443
|
-
}
|
|
444
|
-
_onSort(key) {
|
|
445
|
-
if (this.sortBy === key) {
|
|
446
|
-
this.sortDirection = this.sortDirection === 'asc' ? 'desc' : 'asc';
|
|
447
|
-
}
|
|
448
|
-
else {
|
|
449
|
-
this.sortDirection = 'asc';
|
|
450
|
-
}
|
|
451
|
-
this.sortBy = key;
|
|
452
|
-
this.sort.emit({ sortBy: this.sortBy, direction: this.sortDirection });
|
|
453
|
-
this._getData();
|
|
454
|
-
this._setIndeterminateStatus();
|
|
455
|
-
this._refresh();
|
|
456
|
-
}
|
|
457
|
-
_onToggleAdditionalData(event, value, row) {
|
|
458
|
-
if (!this._hasHiddenData ||
|
|
459
|
-
event.target.tagName === 'C-CHECKBOX')
|
|
460
|
-
return;
|
|
461
|
-
const isActive = this.singleExpansion
|
|
462
|
-
? this._activeRows[0] === value
|
|
463
|
-
: this._activeRows.includes(value);
|
|
464
|
-
const { _hiddenData } = row, data = __rest(row, ["_hiddenData"]);
|
|
465
|
-
Object.keys(data).forEach((key) => {
|
|
466
|
-
data[key] = data[key].value;
|
|
467
|
-
});
|
|
468
|
-
_hiddenData.forEach((hiddenRow) => {
|
|
469
|
-
data[hiddenRow.id] = hiddenRow.value.value;
|
|
470
|
-
});
|
|
471
|
-
this.expand.emit({
|
|
472
|
-
active: !isActive,
|
|
473
|
-
row: data,
|
|
474
|
-
});
|
|
475
|
-
if (this.singleExpansion) {
|
|
476
|
-
this._activeRows = isActive ? [] : [value];
|
|
477
|
-
return;
|
|
478
|
-
}
|
|
479
|
-
if (isActive) {
|
|
480
|
-
this._activeRows = this._activeRows.filter((i) => i !== value);
|
|
481
|
-
return;
|
|
482
|
-
}
|
|
483
|
-
this._activeRows = [...this._activeRows, value];
|
|
484
|
-
}
|
|
485
|
-
_handleKeyUp(event, value, row) {
|
|
486
|
-
event.preventDefault();
|
|
487
|
-
if (event.key === 'Enter') {
|
|
488
|
-
this._onToggleAdditionalData(event, value, row);
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
|
-
_refresh() {
|
|
492
|
-
this.forceRender = !this.forceRender;
|
|
493
|
-
}
|
|
494
|
-
_renderAdditioanlDataRow(rowIndex, rowData = {}) {
|
|
495
|
-
return (this._hasHiddenData && (h("tr", { class: {
|
|
496
|
-
'additional-data': true,
|
|
497
|
-
active: this._activeRows.includes(rowIndex),
|
|
498
|
-
} }, h("td", { colSpan: 100 }, h("div", null, h("ul", null, this._renderHiddenCells(rowIndex), this._renderHiddenHeaderChildren(rowIndex, rowData)))))));
|
|
499
|
-
}
|
|
500
|
-
_renderCellData(key, options, colIndex, rowIndex) {
|
|
501
|
-
var _a;
|
|
502
|
-
const component = options.component || ((_a = this._headers[colIndex]) === null || _a === void 0 ? void 0 : _a.component);
|
|
503
|
-
const Tag = (component === null || component === void 0 ? void 0 : component.tag) || null;
|
|
504
|
-
const injectValue = !!(component === null || component === void 0 ? void 0 : component.injectValue);
|
|
505
|
-
const params = (component === null || component === void 0 ? void 0 : component.params) || {};
|
|
506
|
-
if (injectValue) {
|
|
507
|
-
params.value = options.value;
|
|
508
|
-
}
|
|
509
|
-
return !!Tag ? (h(Tag, Object.assign({}, params, { onClick: (event) => {
|
|
510
|
-
var _a;
|
|
511
|
-
(_a = params === null || params === void 0 ? void 0 : params.onClick) === null || _a === void 0 ? void 0 : _a.call(params, {
|
|
512
|
-
index: rowIndex,
|
|
513
|
-
value: options.value,
|
|
514
|
-
data: this.data[rowIndex],
|
|
515
|
-
event,
|
|
516
|
-
key,
|
|
517
|
-
});
|
|
518
|
-
} }), options.formattedValue || options.value)) : (options.formattedValue || options.value);
|
|
519
|
-
}
|
|
520
|
-
_renderCellChildren(options, index, key, data) {
|
|
521
|
-
return options.children.map((child) => {
|
|
522
|
-
var _a, _b, _c;
|
|
523
|
-
const Tag = (_a = child.component) === null || _a === void 0 ? void 0 : _a.tag;
|
|
524
|
-
const params = ((_b = child.component) === null || _b === void 0 ? void 0 : _b.params) || {};
|
|
525
|
-
const { _hiddenData = [] } = data, rest = __rest(data, ["_hiddenData"]);
|
|
526
|
-
const flatData = Object.assign(Object.assign({}, rest), _hiddenData.reduce((obj, row) => {
|
|
527
|
-
obj[row.id] = row.value;
|
|
528
|
-
return obj;
|
|
529
|
-
}, {}));
|
|
530
|
-
return !!Tag ? (h(Tag, Object.assign({}, params, (!(params === null || params === void 0 ? void 0 : params.onClick)
|
|
531
|
-
? {}
|
|
532
|
-
: {
|
|
533
|
-
onClick: (event) => {
|
|
534
|
-
params.onClick({
|
|
535
|
-
value: options.value,
|
|
536
|
-
index,
|
|
537
|
-
event,
|
|
538
|
-
key,
|
|
539
|
-
data: flatData,
|
|
540
|
-
});
|
|
541
|
-
},
|
|
542
|
-
})), !!((_c = child.children) === null || _c === void 0 ? void 0 : _c.length)
|
|
543
|
-
? this._renderCellChildren(child, index, key, data)
|
|
544
|
-
: child.value)) : (child.value);
|
|
545
|
-
});
|
|
546
|
-
}
|
|
547
|
-
_renderExpansionIndicator(rowIndex, rowData = {}) {
|
|
548
|
-
return (this._hasHiddenData && (h("td", null, h("div", { tabindex: "0", onKeyUp: (event) => this._handleKeyUp(event, rowIndex, rowData) }, h("svg", { width: "22", height: "22", viewBox: "0 0 24 24" }, h("path", { d: mdiChevronDown }))))));
|
|
549
|
-
}
|
|
550
|
-
_renderHiddenCells(index) {
|
|
551
|
-
return this._data[index]._hiddenData
|
|
552
|
-
.filter((d) => !this._extraHeaders.find((h) => h.key === d.id))
|
|
553
|
-
.map(({ id, key, value: options }) => {
|
|
554
|
-
const index = this._headers.findIndex((h) => h.key === id);
|
|
555
|
-
return (h("li", null, !!key && (h("div", { class: "title" }, h("span", { class: "label" }, key, ":"), this._renderCellData(id, options, index, index))), !!options.children && (h("div", { class: "children" }, this._renderCellChildren(options, index, id, {})))));
|
|
556
|
-
});
|
|
557
|
-
}
|
|
558
|
-
_renderHiddenHeaderChildren(index, rowData) {
|
|
559
|
-
return this._data[index]._hiddenData.map(({ id, key }) => {
|
|
560
|
-
var _a;
|
|
561
|
-
const headerIndex = this.headers.findIndex((h) => h.key === id);
|
|
562
|
-
return (!!((_a = this.headers[headerIndex]) === null || _a === void 0 ? void 0 : _a.children) && (h("li", null, h("div", { class: "children" }, this._renderCellChildren(this.headers[headerIndex], index, key, rowData)))));
|
|
563
|
-
});
|
|
564
|
-
}
|
|
565
|
-
_renderLoaderRow() {
|
|
566
|
-
return (h("tr", null, h("td", { class: "loader", colSpan: 100 }, this.loading && (h("div", { class: "c-data-table__loader" }, h("div", { class: "loading-bar" }))))));
|
|
567
|
-
}
|
|
568
|
-
_renderRows() {
|
|
569
|
-
return (!!this._data.length &&
|
|
570
|
-
Object.values(this._data).map((rowData, rowIndex) => {
|
|
571
|
-
let selectionValue = this._getSelectionValue(rowData, rowIndex);
|
|
572
|
-
if (!this.selectionProperty && typeof selectionValue === 'number') {
|
|
573
|
-
selectionValue = this._getIndex(selectionValue);
|
|
574
|
-
}
|
|
575
|
-
const isSelected = !!this._selections.includes(selectionValue);
|
|
576
|
-
return (h(Fragment, null, h("tr", { class: {
|
|
577
|
-
active: this._activeRows.includes(rowIndex),
|
|
578
|
-
parent: this._hasHiddenData,
|
|
579
|
-
selected: isSelected,
|
|
580
|
-
}, onClick: (event) => this._onToggleAdditionalData(event, rowIndex, rowData) }, this._renderSelectionCell(isSelected, selectionValue), this._renderExpansionIndicator(rowIndex, rowData), this._renderTableCells(rowIndex, rowData)), this._renderAdditioanlDataRow(rowIndex, rowData)));
|
|
581
|
-
}));
|
|
582
|
-
}
|
|
583
|
-
_renderSelectionCell(isSelected, selectionValue) {
|
|
584
|
-
return (this.selectable && (h("td", null, h("div", { class: "selection" }, h("c-checkbox", { value: isSelected, "hide-details": true, onChangeValue: () => this._onSelection(selectionValue) })))));
|
|
585
|
-
}
|
|
586
|
-
_renderSortIndicator(key) {
|
|
587
|
-
let iconPath = mdiSwapVertical;
|
|
588
|
-
if (key === this.sortBy && this.sortDirection === 'asc') {
|
|
589
|
-
iconPath = mdiArrowUpThin;
|
|
590
|
-
}
|
|
591
|
-
if (key === this.sortBy && this.sortDirection === 'desc') {
|
|
592
|
-
iconPath = mdiArrowDownThin;
|
|
593
|
-
}
|
|
594
|
-
return (h("svg", { width: "24", height: "24", viewBox: "0 0 24 24", tabindex: 0 }, h("path", { d: iconPath })));
|
|
595
|
-
}
|
|
596
|
-
_renderStatusTextRow() {
|
|
597
|
-
return (!this._data.length && (h("tr", null, h("td", { class: "info", colSpan: 100 }, h("div", null, this.loading ? this.loadingText : this.noDataText)))));
|
|
598
|
-
}
|
|
599
|
-
_renderTableBody() {
|
|
600
|
-
return (h("tbody", null, this._renderLoaderRow(), this._renderStatusTextRow(), this._renderRows()));
|
|
601
|
-
}
|
|
602
|
-
_renderTableCell(key, options, colIndex, rowIndex, rowData = {}) {
|
|
603
|
-
var _a;
|
|
604
|
-
const header = this.headers.find((header) => header.key === key);
|
|
605
|
-
const isHidden = this.hiddenHeaders.includes(key);
|
|
606
|
-
return (!!header &&
|
|
607
|
-
!isHidden && (h("td", null, h("div", { "data-align": header === null || header === void 0 ? void 0 : header.align, "data-justify": header === null || header === void 0 ? void 0 : header.justify }, this._renderCellData(key, options, colIndex, rowIndex), !!options.children && (h("div", { class: "children" }, this._renderCellChildren(options, rowIndex, key, rowData))), !!((_a = this.headers.find((header) => header.key === key)) === null || _a === void 0 ? void 0 : _a.children) && (h("div", { class: "children" }, this._renderCellChildren(this.headers.find((header) => header.key === key), rowIndex, key, rowData)))))));
|
|
608
|
-
}
|
|
609
|
-
_renderTableCells(rowIndex, rowData = {}) {
|
|
610
|
-
return this._sortCellProperties(rowData).map(([key, options], index) => this._renderTableCell(key, options, index, rowIndex, rowData));
|
|
611
|
-
}
|
|
612
|
-
_renderTableFooter() {
|
|
613
|
-
const footerStyles = this.horizontalScrolling
|
|
614
|
-
? {
|
|
615
|
-
maxWidth: `${this.parentWidth}px`,
|
|
616
|
-
position: 'sticky',
|
|
617
|
-
left: '0',
|
|
618
|
-
}
|
|
619
|
-
: {};
|
|
620
|
-
return (!!this.pagination && (h("tfoot", null, h("tr", { ref: (el) => (this._footerElement = el) }, h("td", { colSpan: 100 }, h("div", { class: "c-data-table__footer", style: footerStyles }, h("c-pagination", Object.assign({}, this.footerOptions, { value: this.pagination, simple: this._isPaginationSimple, onChangeValue: (e) => this._onPaginationChange(e) }))))))));
|
|
621
|
-
}
|
|
622
|
-
_renderTableHeader() {
|
|
623
|
-
const indicatorRowStyles = this.horizontalScrolling
|
|
624
|
-
? {
|
|
625
|
-
width: `${this.parentWidth - 8}px`,
|
|
626
|
-
position: 'sticky',
|
|
627
|
-
left: '4px',
|
|
628
|
-
}
|
|
629
|
-
: {};
|
|
630
|
-
return (h("thead", { class: { sticky: this.stickyHeader } }, h("tr", null, this.selectable && (h("th", { class: "selection" }, !this.singleSelection && (h("div", { class: "selection--heading" }, h("c-checkbox", { value: this._hasSelectionsOnPage(), indeterminate: this._isIndeterminate, "hide-details": true, onClick: (event) => this._onHeadingSelection(event), onKeyUp: (event) => this._onHeadingSelection(event) }))))), this._hasHiddenData && h("th", { class: "indicator" }), !!this._headers.length &&
|
|
631
|
-
this._headers.map((header) => {
|
|
632
|
-
const isSortable = !!header.sortable || typeof header.sortable === 'undefined';
|
|
633
|
-
const params = Object.assign(Object.assign({ 'data-id': header.key, ref: (el) => this._addHeaderRef(header.key, el) }, (!!header && {
|
|
634
|
-
style: Object.assign({}, (header.width && { minWidth: header.width })),
|
|
635
|
-
})), (isSortable && {
|
|
636
|
-
onClick: () => this._onSort(header.key),
|
|
637
|
-
onKeyUp: () => this._onSort(header.key),
|
|
638
|
-
}));
|
|
639
|
-
return (h("th", Object.assign({}, params), h("div", { class: { sortable: isSortable } }, header.value, isSortable && this._renderSortIndicator(header.key))));
|
|
640
|
-
})), this.horizontalScrolling && (h("tr", { class: "c-data-table__header-indicators" }, h("th", { colSpan: 100 }, h("div", { style: indicatorRowStyles }, this.firstCellHidden && (h("c-icon-button", { class: "first", size: "small", outlined: true, onClick: () => this._scrollLeft() }, h("c-icon", { path: mdiChevronLeft }))), h("c-spacer", null), this.lastCellHidden && (h("c-icon-button", { class: "last", size: "small", outlined: true, onClick: () => this._scrollRight() }, h("c-icon", { path: mdiChevronRight })))))))));
|
|
641
|
-
}
|
|
642
|
-
_scrollLeft() {
|
|
643
|
-
const leftBorder = this.element.getBoundingClientRect().left;
|
|
644
|
-
const hiddenHeaderKeys = this._headerKeys.filter((key) => {
|
|
645
|
-
var _a;
|
|
646
|
-
const headerCellLeftBorder = (_a = this._tableElement
|
|
647
|
-
.querySelector(`[data-id="${key}"]`)) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().left;
|
|
648
|
-
return headerCellLeftBorder < leftBorder - 2;
|
|
649
|
-
});
|
|
650
|
-
if (hiddenHeaderKeys.length) {
|
|
651
|
-
if (hiddenHeaderKeys.length === 1) {
|
|
652
|
-
this._tableElement.scrollIntoView({
|
|
653
|
-
behavior: 'smooth',
|
|
654
|
-
block: 'nearest',
|
|
655
|
-
inline: 'start',
|
|
656
|
-
});
|
|
657
|
-
return;
|
|
658
|
-
}
|
|
659
|
-
this._tableElement
|
|
660
|
-
.querySelector(`[data-id="${hiddenHeaderKeys[hiddenHeaderKeys.length - 1]}"]`)
|
|
661
|
-
.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
_scrollRight() {
|
|
665
|
-
const rightBorder = this.element.getBoundingClientRect().right;
|
|
666
|
-
const hiddenHeaderKeys = this._headerKeys.filter((key) => {
|
|
667
|
-
var _a;
|
|
668
|
-
const headerCellRightBorder = (_a = this._tableElement
|
|
669
|
-
.querySelector(`[data-id="${key}"]`)) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().right;
|
|
670
|
-
return headerCellRightBorder > rightBorder + 2;
|
|
671
|
-
});
|
|
672
|
-
if (hiddenHeaderKeys.length) {
|
|
673
|
-
this._tableElement
|
|
674
|
-
.querySelector(`[data-id="${hiddenHeaderKeys[0]}"]`)
|
|
675
|
-
.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
|
|
676
|
-
}
|
|
677
|
-
}
|
|
678
|
-
_sortCellProperties(row) {
|
|
679
|
-
const sorted = Object.entries(row)
|
|
680
|
-
.filter(([key]) => ![...this.hiddenHeaders, '_hiddenData'].includes(key))
|
|
681
|
-
.sort(([keyA], [keyB]) => this._headerKeys.indexOf(keyA) - this._headerKeys.indexOf(keyB));
|
|
682
|
-
return sorted;
|
|
683
|
-
}
|
|
684
|
-
_validateProps(data) {
|
|
685
|
-
if (!!data &&
|
|
686
|
-
!this._isValidated &&
|
|
687
|
-
this.selectionProperty !== null &&
|
|
688
|
-
!data[this.selectionProperty]) {
|
|
689
|
-
console.warn(`[C-DATA-TABLE] Invalid selection property '${this.selectionProperty}'. Using row index as a fallback. This may lead to unexpected behavior.`);
|
|
690
|
-
this._isValidated = true;
|
|
691
|
-
}
|
|
692
|
-
}
|
|
693
|
-
render() {
|
|
694
|
-
const tableClasses = {
|
|
695
|
-
'c-data-table': true,
|
|
696
|
-
'c-data-table--hoverable': this.selectable || this._hasHiddenData,
|
|
697
|
-
'c-data-table--scrollable': this.horizontalScrolling,
|
|
698
|
-
};
|
|
699
|
-
return (h(Host, { key: '43deb28529da8dc2ab73bbc47cbb9ea01a9bbb08' }, h("div", { key: 'b497a269c1b9b38c1f6ad130c5e1f5dd3bcff72e', class: "c-data-table__wrapper" }, h("div", { key: '253cc718f30bab4e84246a6a9e0979d89dd6447d', class: "c-data-table__table-wrapper" }, h("table", { key: 'bd9610d8d0ba1b5a99117479a6a0344a87acec8b', class: tableClasses, ref: (el) => (this._tableElement = el) }, h("colgroup", { key: 'c2b18a0f5baa57e078f5c2cdfc15eb0b732799be' }, [
|
|
700
|
-
...(this.selectable ? ['_selection'] : []),
|
|
701
|
-
...(this.hiddenHeaders.length ? ['_hidden'] : []),
|
|
702
|
-
...this._headerKeys,
|
|
703
|
-
].map((key) => (h("col", { class: this.sortBy === key && 'sorted-column' })))), this._renderTableHeader(), this._renderTableBody(), !this.hideFooter && this._renderTableFooter())))));
|
|
704
|
-
}
|
|
705
|
-
get element() { return this; }
|
|
706
|
-
static get watchers() { return {
|
|
707
|
-
"hiddenHeaders": ["onHiddenHeaderChange"],
|
|
708
|
-
"data": ["onDataChange"],
|
|
709
|
-
"headers": ["onHeaderChange"],
|
|
710
|
-
"singleSelection": ["onSingleSelectionChange"],
|
|
711
|
-
"loading": ["onLoadingChange"]
|
|
712
|
-
}; }
|
|
713
|
-
static get style() { return cDataTableCss; }
|
|
714
|
-
}, [1, "c-data-table", {
|
|
715
|
-
"data": [16],
|
|
716
|
-
"externalData": [4, "external-data"],
|
|
717
|
-
"headers": [16],
|
|
718
|
-
"hideFooter": [4, "hide-footer"],
|
|
719
|
-
"footerOptions": [16],
|
|
720
|
-
"loading": [4],
|
|
721
|
-
"loadingText": [1, "loading-text"],
|
|
722
|
-
"noDataText": [1, "no-data-text"],
|
|
723
|
-
"pagination": [1040],
|
|
724
|
-
"selectable": [4],
|
|
725
|
-
"singleSelection": [4, "single-selection"],
|
|
726
|
-
"selectionProperty": [1, "selection-property"],
|
|
727
|
-
"singleExpansion": [4, "single-expansion"],
|
|
728
|
-
"sortBy": [1032, "sort-by"],
|
|
729
|
-
"sortDirection": [1025, "sort-direction"],
|
|
730
|
-
"stickyHeader": [4, "sticky-header"],
|
|
731
|
-
"horizontalScrolling": [4, "horizontal-scrolling"],
|
|
732
|
-
"_activeRows": [32],
|
|
733
|
-
"_data": [32],
|
|
734
|
-
"_isIndeterminate": [32],
|
|
735
|
-
"_isPaginationSimple": [32],
|
|
736
|
-
"_selections": [32],
|
|
737
|
-
"hasOverflow": [32],
|
|
738
|
-
"hiddenHeaders": [32],
|
|
739
|
-
"initiallyHiddenHeaders": [32],
|
|
740
|
-
"forceRender": [32],
|
|
741
|
-
"breakpoints": [32],
|
|
742
|
-
"markedFooterWidth": [32],
|
|
743
|
-
"parentWidth": [32],
|
|
744
|
-
"firstCellHidden": [32],
|
|
745
|
-
"lastCellHidden": [32],
|
|
746
|
-
"clearSelections": [64],
|
|
747
|
-
"getData": [64]
|
|
748
|
-
}, undefined, {
|
|
749
|
-
"hiddenHeaders": ["onHiddenHeaderChange"],
|
|
750
|
-
"data": ["onDataChange"],
|
|
751
|
-
"headers": ["onHeaderChange"],
|
|
752
|
-
"singleSelection": ["onSingleSelectionChange"],
|
|
753
|
-
"loading": ["onLoadingChange"]
|
|
754
|
-
}]);
|
|
755
|
-
function defineCustomElement$1() {
|
|
756
|
-
if (typeof customElements === "undefined") {
|
|
757
|
-
return;
|
|
758
|
-
}
|
|
759
|
-
const components = ["c-data-table", "c-badge", "c-checkbox", "c-icon", "c-icon-button", "c-menu", "c-menu-items", "c-message", "c-pagination", "c-ripple", "c-spacer", "c-spinner"];
|
|
760
|
-
components.forEach(tagName => { switch (tagName) {
|
|
761
|
-
case "c-data-table":
|
|
762
|
-
if (!customElements.get(tagName)) {
|
|
763
|
-
customElements.define(tagName, CDataTable$1);
|
|
764
|
-
}
|
|
765
|
-
break;
|
|
766
|
-
case "c-badge":
|
|
767
|
-
if (!customElements.get(tagName)) {
|
|
768
|
-
defineCustomElement$c();
|
|
769
|
-
}
|
|
770
|
-
break;
|
|
771
|
-
case "c-checkbox":
|
|
772
|
-
if (!customElements.get(tagName)) {
|
|
773
|
-
defineCustomElement$b();
|
|
774
|
-
}
|
|
775
|
-
break;
|
|
776
|
-
case "c-icon":
|
|
777
|
-
if (!customElements.get(tagName)) {
|
|
778
|
-
defineCustomElement$a();
|
|
779
|
-
}
|
|
780
|
-
break;
|
|
781
|
-
case "c-icon-button":
|
|
782
|
-
if (!customElements.get(tagName)) {
|
|
783
|
-
defineCustomElement$9();
|
|
784
|
-
}
|
|
785
|
-
break;
|
|
786
|
-
case "c-menu":
|
|
787
|
-
if (!customElements.get(tagName)) {
|
|
788
|
-
defineCustomElement$8();
|
|
789
|
-
}
|
|
790
|
-
break;
|
|
791
|
-
case "c-menu-items":
|
|
792
|
-
if (!customElements.get(tagName)) {
|
|
793
|
-
defineCustomElement$7();
|
|
794
|
-
}
|
|
795
|
-
break;
|
|
796
|
-
case "c-message":
|
|
797
|
-
if (!customElements.get(tagName)) {
|
|
798
|
-
defineCustomElement$6();
|
|
799
|
-
}
|
|
800
|
-
break;
|
|
801
|
-
case "c-pagination":
|
|
802
|
-
if (!customElements.get(tagName)) {
|
|
803
|
-
defineCustomElement$5();
|
|
804
|
-
}
|
|
805
|
-
break;
|
|
806
|
-
case "c-ripple":
|
|
807
|
-
if (!customElements.get(tagName)) {
|
|
808
|
-
defineCustomElement$4();
|
|
809
|
-
}
|
|
810
|
-
break;
|
|
811
|
-
case "c-spacer":
|
|
812
|
-
if (!customElements.get(tagName)) {
|
|
813
|
-
defineCustomElement$3();
|
|
814
|
-
}
|
|
815
|
-
break;
|
|
816
|
-
case "c-spinner":
|
|
817
|
-
if (!customElements.get(tagName)) {
|
|
818
|
-
defineCustomElement$2();
|
|
819
|
-
}
|
|
820
|
-
break;
|
|
821
|
-
} });
|
|
822
|
-
}
|
|
823
|
-
|
|
824
|
-
const CDataTable = CDataTable$1;
|
|
825
|
-
const defineCustomElement = defineCustomElement$1;
|
|
826
|
-
|
|
827
|
-
export { CDataTable, defineCustomElement };
|
|
828
|
-
//# sourceMappingURL=c-data-table.js.map
|
|
829
|
-
|
|
830
|
-
//# sourceMappingURL=c-data-table.js.map
|