@cscfi/csc-ui 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +54 -0
- package/dist/cjs/c-accordion-item.cjs.entry.js +118 -0
- package/dist/cjs/c-accordion-item.cjs.entry.js.map +1 -0
- package/dist/cjs/c-accordion.cjs.entry.js +68 -0
- package/dist/cjs/c-accordion.cjs.entry.js.map +1 -0
- package/dist/cjs/c-alert.cjs.entry.js +30 -0
- package/dist/cjs/c-alert.cjs.entry.js.map +1 -0
- package/dist/cjs/c-autocomplete.cjs.entry.js +263 -0
- package/dist/cjs/c-autocomplete.cjs.entry.js.map +1 -0
- package/dist/cjs/c-badge_12.cjs.entry.js +442 -0
- package/dist/cjs/c-badge_12.cjs.entry.js.map +1 -0
- package/dist/cjs/c-card-actions.cjs.entry.js +28 -0
- package/dist/cjs/c-card-actions.cjs.entry.js.map +1 -0
- package/dist/cjs/c-card-content.cjs.entry.js +21 -0
- package/dist/cjs/c-card-content.cjs.entry.js.map +1 -0
- package/dist/cjs/c-card-title.cjs.entry.js +21 -0
- package/dist/cjs/c-card-title.cjs.entry.js.map +1 -0
- package/dist/cjs/c-checkbox_2.cjs.entry.js +342 -0
- package/dist/cjs/c-checkbox_2.cjs.entry.js.map +1 -0
- package/dist/cjs/c-data-table.cjs.entry.js +701 -0
- package/dist/cjs/c-data-table.cjs.entry.js.map +1 -0
- package/dist/cjs/c-dropdown_4.cjs.entry.js +837 -0
- package/dist/cjs/c-dropdown_4.cjs.entry.js.map +1 -0
- package/dist/cjs/c-link.cjs.entry.js +31 -0
- package/dist/cjs/c-link.cjs.entry.js.map +1 -0
- package/dist/cjs/c-list-item-title.cjs.entry.js +26 -0
- package/dist/cjs/c-list-item-title.cjs.entry.js.map +1 -0
- package/dist/cjs/c-list-item.cjs.entry.js +83 -0
- package/dist/cjs/c-list-item.cjs.entry.js.map +1 -0
- package/dist/cjs/c-list.cjs.entry.js +45 -0
- package/dist/cjs/c-list.cjs.entry.js.map +1 -0
- package/dist/cjs/c-loader.cjs.entry.js +39 -0
- package/dist/cjs/c-loader.cjs.entry.js.map +1 -0
- package/dist/cjs/c-login-button.cjs.entry.js +25 -0
- package/dist/cjs/c-login-button.cjs.entry.js.map +1 -0
- package/dist/cjs/c-login-buttons.cjs.entry.js +21 -0
- package/dist/cjs/c-login-buttons.cjs.entry.js.map +1 -0
- package/dist/cjs/c-login-card-actions.cjs.entry.js +20 -0
- package/dist/cjs/c-login-card-actions.cjs.entry.js.map +1 -0
- package/dist/cjs/c-login-card-content.cjs.entry.js +21 -0
- package/dist/cjs/c-login-card-content.cjs.entry.js.map +1 -0
- package/dist/cjs/c-login-card-title.cjs.entry.js +21 -0
- package/dist/cjs/c-login-card-title.cjs.entry.js.map +1 -0
- package/dist/cjs/c-login-card.cjs.entry.js +66 -0
- package/dist/cjs/c-login-card.cjs.entry.js.map +1 -0
- package/dist/cjs/c-menu_2.cjs.entry.js +354 -0
- package/dist/cjs/c-menu_2.cjs.entry.js.map +1 -0
- package/dist/cjs/c-modal.cjs.entry.js +108 -0
- package/dist/cjs/c-modal.cjs.entry.js.map +1 -0
- package/dist/cjs/c-navigation-button.cjs.entry.js +22 -0
- package/dist/cjs/c-navigation-button.cjs.entry.js.map +1 -0
- package/dist/cjs/c-option-value.cjs.entry.js +21 -0
- package/dist/cjs/c-option-value.cjs.entry.js.map +1 -0
- package/dist/cjs/c-option.cjs.entry.js +25 -0
- package/dist/cjs/c-option.cjs.entry.js.map +1 -0
- package/dist/cjs/c-otp-input.cjs.entry.js +154 -0
- package/dist/cjs/c-otp-input.cjs.entry.js.map +1 -0
- package/dist/cjs/c-page.cjs.entry.js +31 -0
- package/dist/cjs/c-page.cjs.entry.js.map +1 -0
- package/dist/cjs/c-progress-bar.cjs.entry.js +59 -0
- package/dist/cjs/c-progress-bar.cjs.entry.js.map +1 -0
- package/dist/cjs/c-radio-group.cjs.entry.js +154 -0
- package/dist/cjs/c-radio-group.cjs.entry.js.map +1 -0
- package/dist/cjs/c-radio.cjs.entry.js +24 -0
- package/dist/cjs/c-radio.cjs.entry.js.map +1 -0
- package/dist/cjs/c-select.cjs.entry.js +331 -0
- package/dist/cjs/c-select.cjs.entry.js.map +1 -0
- package/dist/cjs/c-side-navigation-item.cjs.entry.js +121 -0
- package/dist/cjs/c-side-navigation-item.cjs.entry.js.map +1 -0
- package/dist/cjs/c-side-navigation-title.cjs.entry.js +21 -0
- package/dist/cjs/c-side-navigation-title.cjs.entry.js.map +1 -0
- package/dist/cjs/c-side-navigation.cjs.entry.js +71 -0
- package/dist/cjs/c-side-navigation.cjs.entry.js.map +1 -0
- package/dist/cjs/c-status.cjs.entry.js +23 -0
- package/dist/cjs/c-status.cjs.entry.js.map +1 -0
- package/dist/cjs/c-step.cjs.entry.js +27 -0
- package/dist/cjs/c-step.cjs.entry.js.map +1 -0
- package/dist/cjs/c-steps.cjs.entry.js +78 -0
- package/dist/cjs/c-steps.cjs.entry.js.map +1 -0
- package/dist/cjs/c-sub-navigation-item.cjs.entry.js +51 -0
- package/dist/cjs/c-sub-navigation-item.cjs.entry.js.map +1 -0
- package/dist/cjs/c-swiper-tab.cjs.entry.js +47 -0
- package/dist/cjs/c-swiper-tab.cjs.entry.js.map +1 -0
- package/dist/cjs/c-swiper.cjs.entry.js +4187 -0
- package/dist/cjs/c-swiper.cjs.entry.js.map +1 -0
- package/dist/cjs/c-switch.cjs.entry.js +71 -0
- package/dist/cjs/c-switch.cjs.entry.js.map +1 -0
- package/dist/cjs/c-tab-buttons.cjs.entry.js +133 -0
- package/dist/cjs/c-tab-buttons.cjs.entry.js.map +1 -0
- package/dist/cjs/c-tab-item.cjs.entry.js +40 -0
- package/dist/cjs/c-tab-item.cjs.entry.js.map +1 -0
- package/dist/cjs/c-tab-items.cjs.entry.js +81 -0
- package/dist/cjs/c-tab-items.cjs.entry.js.map +1 -0
- package/dist/cjs/c-tab.cjs.entry.js +59 -0
- package/dist/cjs/c-tab.cjs.entry.js.map +1 -0
- package/dist/cjs/c-table.cjs.entry.js +47 -0
- package/dist/cjs/c-table.cjs.entry.js.map +1 -0
- package/dist/cjs/c-tabs.cjs.entry.js +423 -0
- package/dist/cjs/c-tabs.cjs.entry.js.map +1 -0
- package/dist/cjs/c-tag.cjs.entry.js +45 -0
- package/dist/cjs/c-tag.cjs.entry.js.map +1 -0
- package/dist/cjs/c-tags.cjs.entry.js +21 -0
- package/dist/cjs/c-tags.cjs.entry.js.map +1 -0
- package/dist/cjs/c-text-field.cjs.entry.js +151 -0
- package/dist/cjs/c-text-field.cjs.entry.js.map +1 -0
- package/dist/cjs/c-toast.cjs.entry.js +73 -0
- package/dist/cjs/c-toast.cjs.entry.js.map +1 -0
- package/dist/cjs/c-toasts.cjs.entry.js +80 -0
- package/dist/cjs/c-toasts.cjs.entry.js.map +1 -0
- package/dist/cjs/csc-ui.cjs.js +25 -0
- package/dist/cjs/csc-ui.cjs.js.map +1 -0
- package/dist/cjs/index-3cad12b5.js +2605 -0
- package/dist/cjs/index-3cad12b5.js.map +1 -0
- package/dist/cjs/index-72dca436.js +23 -0
- package/dist/cjs/index-72dca436.js.map +1 -0
- package/dist/cjs/index.cjs.js +28 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/mdi-16842afc.js +46 -0
- package/dist/cjs/mdi-16842afc.js.map +1 -0
- package/dist/collection/collection-manifest.json +81 -0
- package/dist/collection/components/c-accordion/c-accordion.css +26 -0
- package/dist/collection/components/c-accordion/c-accordion.js +172 -0
- package/dist/collection/components/c-accordion/c-accordion.js.map +1 -0
- package/dist/collection/components/c-accordion/test/c-accordion.e2e.js +140 -0
- package/dist/collection/components/c-accordion/test/c-accordion.e2e.js.map +1 -0
- package/dist/collection/components/c-accordion/test/c-accordion.spec.js +72 -0
- package/dist/collection/components/c-accordion/test/c-accordion.spec.js.map +1 -0
- package/dist/collection/components/c-accordion/test/c-accordion.visual.js +52 -0
- package/dist/collection/components/c-accordion/test/c-accordion.visual.js.map +1 -0
- package/dist/collection/components/c-accordion-item/c-accordion-item.css +130 -0
- package/dist/collection/components/c-accordion-item/c-accordion-item.js +251 -0
- package/dist/collection/components/c-accordion-item/c-accordion-item.js.map +1 -0
- package/dist/collection/components/c-alert/c-alert.css +62 -0
- package/dist/collection/components/c-alert/c-alert.js +57 -0
- package/dist/collection/components/c-alert/c-alert.js.map +1 -0
- package/dist/collection/components/c-alert/test/c-alert.spec.js +54 -0
- package/dist/collection/components/c-alert/test/c-alert.spec.js.map +1 -0
- package/dist/collection/components/c-alert/test/c-alert.visual.js +24 -0
- package/dist/collection/components/c-alert/test/c-alert.visual.js.map +1 -0
- package/dist/collection/components/c-autocomplete/c-autocomplete.css +207 -0
- package/dist/collection/components/c-autocomplete/c-autocomplete.js +808 -0
- package/dist/collection/components/c-autocomplete/c-autocomplete.js.map +1 -0
- package/dist/collection/components/c-autocomplete/test/c-autocomplete.e2e.js +35 -0
- package/dist/collection/components/c-autocomplete/test/c-autocomplete.e2e.js.map +1 -0
- package/dist/collection/components/c-autocomplete/test/c-autocomplete.visual.js +31 -0
- package/dist/collection/components/c-autocomplete/test/c-autocomplete.visual.js.map +1 -0
- package/dist/collection/components/c-badge/c-badge.css +46 -0
- package/dist/collection/components/c-badge/c-badge.js +19 -0
- package/dist/collection/components/c-badge/c-badge.js.map +1 -0
- package/dist/collection/components/c-badge/test/c-badge.e2e.js +10 -0
- package/dist/collection/components/c-badge/test/c-badge.e2e.js.map +1 -0
- package/dist/collection/components/c-badge/test/c-badge.spec.js +18 -0
- package/dist/collection/components/c-badge/test/c-badge.spec.js.map +1 -0
- package/dist/collection/components/c-button/c-button.css +565 -0
- package/dist/collection/components/c-button/c-button.js +511 -0
- package/dist/collection/components/c-button/c-button.js.map +1 -0
- package/dist/collection/components/c-button/test/c-button.spec.js +207 -0
- package/dist/collection/components/c-button/test/c-button.spec.js.map +1 -0
- package/dist/collection/components/c-button/test/c-button.visual.js +98 -0
- package/dist/collection/components/c-button/test/c-button.visual.js.map +1 -0
- package/dist/collection/components/c-card/assets/puhti.gif +0 -0
- package/dist/collection/components/c-card/c-card.css +47 -0
- package/dist/collection/components/c-card/c-card.js +138 -0
- package/dist/collection/components/c-card/c-card.js.map +1 -0
- package/dist/collection/components/c-card/test/c-card.e2e.js +17 -0
- package/dist/collection/components/c-card/test/c-card.e2e.js.map +1 -0
- package/dist/collection/components/c-card/test/c-card.spec.js +142 -0
- package/dist/collection/components/c-card/test/c-card.spec.js.map +1 -0
- package/dist/collection/components/c-card/test/c-card.visual.js +18 -0
- package/dist/collection/components/c-card/test/c-card.visual.js.map +1 -0
- package/dist/collection/components/c-card-actions/c-card-actions.css +65 -0
- package/dist/collection/components/c-card-actions/c-card-actions.js +68 -0
- package/dist/collection/components/c-card-actions/c-card-actions.js.map +1 -0
- package/dist/collection/components/c-card-actions/test/c-card-actions.spec.js +115 -0
- package/dist/collection/components/c-card-actions/test/c-card-actions.spec.js.map +1 -0
- package/dist/collection/components/c-card-content/c-card-content.css +31 -0
- package/dist/collection/components/c-card-content/c-card-content.js +19 -0
- package/dist/collection/components/c-card-content/c-card-content.js.map +1 -0
- package/dist/collection/components/c-card-title/c-card-title.css +41 -0
- package/dist/collection/components/c-card-title/c-card-title.js +19 -0
- package/dist/collection/components/c-card-title/c-card-title.js.map +1 -0
- package/dist/collection/components/c-checkbox/c-checkbox.css +178 -0
- package/dist/collection/components/c-checkbox/c-checkbox.js +391 -0
- package/dist/collection/components/c-checkbox/c-checkbox.js.map +1 -0
- package/dist/collection/components/c-checkbox/test/c-checkbox.e2e.js +60 -0
- package/dist/collection/components/c-checkbox/test/c-checkbox.e2e.js.map +1 -0
- package/dist/collection/components/c-checkbox/test/c-checkbox.spec.js +40 -0
- package/dist/collection/components/c-checkbox/test/c-checkbox.spec.js.map +1 -0
- package/dist/collection/components/c-checkbox/test/c-checkbox.visual.js +22 -0
- package/dist/collection/components/c-checkbox/test/c-checkbox.visual.js.map +1 -0
- package/dist/collection/components/c-csc-logo/c-csc-logo.css +38 -0
- package/dist/collection/components/c-csc-logo/c-csc-logo.js +45 -0
- package/dist/collection/components/c-csc-logo/c-csc-logo.js.map +1 -0
- package/dist/collection/components/c-data-table/c-data-table.css +379 -0
- package/dist/collection/components/c-data-table/c-data-table.js +1163 -0
- package/dist/collection/components/c-data-table/c-data-table.js.map +1 -0
- package/dist/collection/components/c-data-table/test/c-data-table.e2e.js +125 -0
- package/dist/collection/components/c-data-table/test/c-data-table.e2e.js.map +1 -0
- package/dist/collection/components/c-data-table/test/c-data-table.spec.js +107 -0
- package/dist/collection/components/c-data-table/test/c-data-table.spec.js.map +1 -0
- package/dist/collection/components/c-data-table/test/c-data-table.visual.js +31 -0
- package/dist/collection/components/c-data-table/test/c-data-table.visual.js.map +1 -0
- package/dist/collection/components/c-data-table/test/data/index.js +104 -0
- package/dist/collection/components/c-data-table/test/data/index.js.map +1 -0
- package/dist/collection/components/c-dropdown/c-dropdown.css +99 -0
- package/dist/collection/components/c-dropdown/c-dropdown.js +778 -0
- package/dist/collection/components/c-dropdown/c-dropdown.js.map +1 -0
- package/dist/collection/components/c-dropdowns/c-dropdowns.css +24 -0
- package/dist/collection/components/c-dropdowns/c-dropdowns.js +66 -0
- package/dist/collection/components/c-dropdowns/c-dropdowns.js.map +1 -0
- package/dist/collection/components/c-icon/c-icon.css +29 -0
- package/dist/collection/components/c-icon/c-icon.js +85 -0
- package/dist/collection/components/c-icon/c-icon.js.map +1 -0
- package/dist/collection/components/c-icon/test/c-icon.spec.js +12 -0
- package/dist/collection/components/c-icon/test/c-icon.spec.js.map +1 -0
- package/dist/collection/components/c-icon-button/c-icon-button.css +685 -0
- package/dist/collection/components/c-icon-button/c-icon-button.js +238 -0
- package/dist/collection/components/c-icon-button/c-icon-button.js.map +1 -0
- package/dist/collection/components/c-icon-button/test/c-icon-button.spec.js +82 -0
- package/dist/collection/components/c-icon-button/test/c-icon-button.spec.js.map +1 -0
- package/dist/collection/components/c-icon-button/test/c-icon-button.visual.js +22 -0
- package/dist/collection/components/c-icon-button/test/c-icon-button.visual.js.map +1 -0
- package/dist/collection/components/c-input/c-input.css +287 -0
- package/dist/collection/components/c-input/c-input.js +960 -0
- package/dist/collection/components/c-input/c-input.js.map +1 -0
- package/dist/collection/components/c-link/c-link.css +54 -0
- package/dist/collection/components/c-link/c-link.js +107 -0
- package/dist/collection/components/c-link/c-link.js.map +1 -0
- package/dist/collection/components/c-link/test/c-link.spec.js +75 -0
- package/dist/collection/components/c-link/test/c-link.spec.js.map +1 -0
- package/dist/collection/components/c-link/test/c-link.visual.js +14 -0
- package/dist/collection/components/c-link/test/c-link.visual.js.map +1 -0
- package/dist/collection/components/c-list/c-list.css +22 -0
- package/dist/collection/components/c-list/c-list.js +69 -0
- package/dist/collection/components/c-list/c-list.js.map +1 -0
- package/dist/collection/components/c-list-item/c-list-item.css +90 -0
- package/dist/collection/components/c-list-item/c-list-item.js +218 -0
- package/dist/collection/components/c-list-item/c-list-item.js.map +1 -0
- package/dist/collection/components/c-list-item-title/c-list-item-title.css +33 -0
- package/dist/collection/components/c-list-item-title/c-list-item-title.js +48 -0
- package/dist/collection/components/c-list-item-title/c-list-item-title.js.map +1 -0
- package/dist/collection/components/c-loader/c-loader.css +101 -0
- package/dist/collection/components/c-loader/c-loader.js +118 -0
- package/dist/collection/components/c-loader/c-loader.js.map +1 -0
- package/dist/collection/components/c-loader/test/c-loader.e2e.js +16 -0
- package/dist/collection/components/c-loader/test/c-loader.e2e.js.map +1 -0
- package/dist/collection/components/c-loader/test/c-loader.spec.js +28 -0
- package/dist/collection/components/c-loader/test/c-loader.spec.js.map +1 -0
- package/dist/collection/components/c-login-button/c-login-button.css +79 -0
- package/dist/collection/components/c-login-button/c-login-button.js +82 -0
- package/dist/collection/components/c-login-button/c-login-button.js.map +1 -0
- package/dist/collection/components/c-login-buttons/c-login-buttons.css +23 -0
- package/dist/collection/components/c-login-buttons/c-login-buttons.js +19 -0
- package/dist/collection/components/c-login-buttons/c-login-buttons.js.map +1 -0
- package/dist/collection/components/c-login-card/c-login-card.css +88 -0
- package/dist/collection/components/c-login-card/c-login-card.js +171 -0
- package/dist/collection/components/c-login-card/c-login-card.js.map +1 -0
- package/dist/collection/components/c-login-card/test/c-login-card.spec.js +151 -0
- package/dist/collection/components/c-login-card/test/c-login-card.spec.js.map +1 -0
- package/dist/collection/components/c-login-card/test/c-login-card.visual.js +18 -0
- package/dist/collection/components/c-login-card/test/c-login-card.visual.js.map +1 -0
- package/dist/collection/components/c-login-card-actions/c-login-card-actions.js +53 -0
- package/dist/collection/components/c-login-card-actions/c-login-card-actions.js.map +1 -0
- package/dist/collection/components/c-login-card-content/c-login-card-content.css +26 -0
- package/dist/collection/components/c-login-card-content/c-login-card-content.js +19 -0
- package/dist/collection/components/c-login-card-content/c-login-card-content.js.map +1 -0
- package/dist/collection/components/c-login-card-title/c-login-card-title.css +31 -0
- package/dist/collection/components/c-login-card-title/c-login-card-title.js +19 -0
- package/dist/collection/components/c-login-card-title/c-login-card-title.js.map +1 -0
- package/dist/collection/components/c-main/c-main.css +34 -0
- package/dist/collection/components/c-main/c-main.js +19 -0
- package/dist/collection/components/c-main/c-main.js.map +1 -0
- package/dist/collection/components/c-main/test/c-main.spec.js +19 -0
- package/dist/collection/components/c-main/test/c-main.spec.js.map +1 -0
- package/dist/collection/components/c-menu/c-menu.css +117 -0
- package/dist/collection/components/c-menu/c-menu.js +284 -0
- package/dist/collection/components/c-menu/c-menu.js.map +1 -0
- package/dist/collection/components/c-menu/test/c-menu.spec.js +46 -0
- package/dist/collection/components/c-menu/test/c-menu.spec.js.map +1 -0
- package/dist/collection/components/c-menu/test/c-menu.visual.js +43 -0
- package/dist/collection/components/c-menu/test/c-menu.visual.js.map +1 -0
- package/dist/collection/components/c-menu-items/c-menu-items.css +97 -0
- package/dist/collection/components/c-menu-items/c-menu-items.js +445 -0
- package/dist/collection/components/c-menu-items/c-menu-items.js.map +1 -0
- package/dist/collection/components/c-message/c-message.css +68 -0
- package/dist/collection/components/c-message/c-message.js +154 -0
- package/dist/collection/components/c-message/c-message.js.map +1 -0
- package/dist/collection/components/c-modal/c-modal.css +94 -0
- package/dist/collection/components/c-modal/c-modal.js +210 -0
- package/dist/collection/components/c-modal/c-modal.js.map +1 -0
- package/dist/collection/components/c-modal/test/c-modal.spec.js +75 -0
- package/dist/collection/components/c-modal/test/c-modal.spec.js.map +1 -0
- package/dist/collection/components/c-navigation-button/c-navigation-button.css +33 -0
- package/dist/collection/components/c-navigation-button/c-navigation-button.js +20 -0
- package/dist/collection/components/c-navigation-button/c-navigation-button.js.map +1 -0
- package/dist/collection/components/c-option/c-option.css +23 -0
- package/dist/collection/components/c-option/c-option.js +99 -0
- package/dist/collection/components/c-option/c-option.js.map +1 -0
- package/dist/collection/components/c-option-value/c-option-value.css +21 -0
- package/dist/collection/components/c-option-value/c-option-value.js +19 -0
- package/dist/collection/components/c-option-value/c-option-value.js.map +1 -0
- package/dist/collection/components/c-otp-input/c-otp-input.css +87 -0
- package/dist/collection/components/c-otp-input/c-otp-input.js +298 -0
- package/dist/collection/components/c-otp-input/c-otp-input.js.map +1 -0
- package/dist/collection/components/c-otp-input/test/c-otp-input.e2e.js +10 -0
- package/dist/collection/components/c-otp-input/test/c-otp-input.e2e.js.map +1 -0
- package/dist/collection/components/c-otp-input/test/c-otp-input.spec.js +18 -0
- package/dist/collection/components/c-otp-input/test/c-otp-input.spec.js.map +1 -0
- package/dist/collection/components/c-page/c-page.css +46 -0
- package/dist/collection/components/c-page/c-page.js +29 -0
- package/dist/collection/components/c-page/c-page.js.map +1 -0
- package/dist/collection/components/c-pagination/c-pagination.css +121 -0
- package/dist/collection/components/c-pagination/c-pagination.js +375 -0
- package/dist/collection/components/c-pagination/c-pagination.js.map +1 -0
- package/dist/collection/components/c-pagination/test/c-pagination.e2e.js +47 -0
- package/dist/collection/components/c-pagination/test/c-pagination.e2e.js.map +1 -0
- package/dist/collection/components/c-pagination/test/c-pagination.visual.js +42 -0
- package/dist/collection/components/c-pagination/test/c-pagination.visual.js.map +1 -0
- package/dist/collection/components/c-progress-bar/c-progress-bar.css +137 -0
- package/dist/collection/components/c-progress-bar/c-progress-bar.js +153 -0
- package/dist/collection/components/c-progress-bar/c-progress-bar.js.map +1 -0
- package/dist/collection/components/c-progress-bar/test/c-progress-bar.spec.js +54 -0
- package/dist/collection/components/c-progress-bar/test/c-progress-bar.spec.js.map +1 -0
- package/dist/collection/components/c-progress-bar/test/c-progress-bar.visual.js +22 -0
- package/dist/collection/components/c-progress-bar/test/c-progress-bar.visual.js.map +1 -0
- package/dist/collection/components/c-radio/c-radio.css +21 -0
- package/dist/collection/components/c-radio/c-radio.js +81 -0
- package/dist/collection/components/c-radio/c-radio.js.map +1 -0
- package/dist/collection/components/c-radio-group/c-radio-group.css +199 -0
- package/dist/collection/components/c-radio-group/c-radio-group.js +403 -0
- package/dist/collection/components/c-radio-group/c-radio-group.js.map +1 -0
- package/dist/collection/components/c-radio-group/test/c-radio-group.e2e.js +39 -0
- package/dist/collection/components/c-radio-group/test/c-radio-group.e2e.js.map +1 -0
- package/dist/collection/components/c-radio-group/test/c-radio-group.spec.js +28 -0
- package/dist/collection/components/c-radio-group/test/c-radio-group.spec.js.map +1 -0
- package/dist/collection/components/c-radio-group/test/c-radio-group.visual.js +24 -0
- package/dist/collection/components/c-radio-group/test/c-radio-group.visual.js.map +1 -0
- package/dist/collection/components/c-radio-group/test/items.js +6 -0
- package/dist/collection/components/c-radio-group/test/items.js.map +1 -0
- package/dist/collection/components/c-ripple/c-ripple.css +48 -0
- package/dist/collection/components/c-ripple/c-ripple.js +91 -0
- package/dist/collection/components/c-ripple/c-ripple.js.map +1 -0
- package/dist/collection/components/c-row/c-row.css +66 -0
- package/dist/collection/components/c-row/c-row.js +121 -0
- package/dist/collection/components/c-row/c-row.js.map +1 -0
- package/dist/collection/components/c-row/test/c-row.spec.js +137 -0
- package/dist/collection/components/c-row/test/c-row.spec.js.map +1 -0
- package/dist/collection/components/c-select/c-select.css +200 -0
- package/dist/collection/components/c-select/c-select.js +786 -0
- package/dist/collection/components/c-select/c-select.js.map +1 -0
- package/dist/collection/components/c-select/test/c-select.e2e.js +66 -0
- package/dist/collection/components/c-select/test/c-select.e2e.js.map +1 -0
- package/dist/collection/components/c-select/test/c-select.spec.js +38 -0
- package/dist/collection/components/c-select/test/c-select.spec.js.map +1 -0
- package/dist/collection/components/c-select/test/c-select.visual.js +36 -0
- package/dist/collection/components/c-select/test/c-select.visual.js.map +1 -0
- package/dist/collection/components/c-select/test/items.js +10 -0
- package/dist/collection/components/c-select/test/items.js.map +1 -0
- package/dist/collection/components/c-side-navigation/c-side-navigation.css +147 -0
- package/dist/collection/components/c-side-navigation/c-side-navigation.js +119 -0
- package/dist/collection/components/c-side-navigation/c-side-navigation.js.map +1 -0
- package/dist/collection/components/c-side-navigation/test/c-side-navigation.spec.js +21 -0
- package/dist/collection/components/c-side-navigation/test/c-side-navigation.spec.js.map +1 -0
- package/dist/collection/components/c-side-navigation/test/c-side-navigation.visual.js +16 -0
- package/dist/collection/components/c-side-navigation/test/c-side-navigation.visual.js.map +1 -0
- package/dist/collection/components/c-side-navigation-item/c-side-navigation-item.css +168 -0
- package/dist/collection/components/c-side-navigation-item/c-side-navigation-item.js +227 -0
- package/dist/collection/components/c-side-navigation-item/c-side-navigation-item.js.map +1 -0
- package/dist/collection/components/c-side-navigation-title/c-side-navigation-title.css +33 -0
- package/dist/collection/components/c-side-navigation-title/c-side-navigation-title.js +19 -0
- package/dist/collection/components/c-side-navigation-title/c-side-navigation-title.js.map +1 -0
- package/dist/collection/components/c-spacer/c-spacer.css +21 -0
- package/dist/collection/components/c-spacer/c-spacer.js +19 -0
- package/dist/collection/components/c-spacer/c-spacer.js.map +1 -0
- package/dist/collection/components/c-spacer/test/c-spacer.spec.js +12 -0
- package/dist/collection/components/c-spacer/test/c-spacer.spec.js.map +1 -0
- package/dist/collection/components/c-spinner/c-spinner.css +59 -0
- package/dist/collection/components/c-spinner/c-spinner.js +92 -0
- package/dist/collection/components/c-spinner/c-spinner.js.map +1 -0
- package/dist/collection/components/c-status/c-status.css +74 -0
- package/dist/collection/components/c-status/c-status.js +44 -0
- package/dist/collection/components/c-status/c-status.js.map +1 -0
- package/dist/collection/components/c-status/test/c-status.spec.js +40 -0
- package/dist/collection/components/c-status/test/c-status.spec.js.map +1 -0
- package/dist/collection/components/c-status/test/c-status.visual.js +10 -0
- package/dist/collection/components/c-status/test/c-status.visual.js.map +1 -0
- package/dist/collection/components/c-step/c-step.css +104 -0
- package/dist/collection/components/c-step/c-step.js +73 -0
- package/dist/collection/components/c-step/c-step.js.map +1 -0
- package/dist/collection/components/c-steps/c-steps.css +81 -0
- package/dist/collection/components/c-steps/c-steps.js +125 -0
- package/dist/collection/components/c-steps/c-steps.js.map +1 -0
- package/dist/collection/components/c-steps/test/c-steps.e2e.js +35 -0
- package/dist/collection/components/c-steps/test/c-steps.e2e.js.map +1 -0
- package/dist/collection/components/c-steps/test/c-steps.visual.js +19 -0
- package/dist/collection/components/c-steps/test/c-steps.visual.js.map +1 -0
- package/dist/collection/components/c-sub-navigation-item/c-sub-navigation-item.css +184 -0
- package/dist/collection/components/c-sub-navigation-item/c-sub-navigation-item.js +143 -0
- package/dist/collection/components/c-sub-navigation-item/c-sub-navigation-item.js.map +1 -0
- package/dist/collection/components/c-swiper/c-swiper.css +317 -0
- package/dist/collection/components/c-swiper/c-swiper.js +214 -0
- package/dist/collection/components/c-swiper/c-swiper.js.map +1 -0
- package/dist/collection/components/c-swiper/test/c-swiper.e2e.js +83 -0
- package/dist/collection/components/c-swiper/test/c-swiper.e2e.js.map +1 -0
- package/dist/collection/components/c-swiper/test/c-swiper.visual.js +20 -0
- package/dist/collection/components/c-swiper/test/c-swiper.visual.js.map +1 -0
- package/dist/collection/components/c-swiper-tab/c-swiper-tab.css +115 -0
- package/dist/collection/components/c-swiper-tab/c-swiper-tab.js +207 -0
- package/dist/collection/components/c-swiper-tab/c-swiper-tab.js.map +1 -0
- package/dist/collection/components/c-switch/c-switch.css +138 -0
- package/dist/collection/components/c-switch/c-switch.js +216 -0
- package/dist/collection/components/c-switch/c-switch.js.map +1 -0
- package/dist/collection/components/c-switch/test/c-switch.e2e.js +51 -0
- package/dist/collection/components/c-switch/test/c-switch.e2e.js.map +1 -0
- package/dist/collection/components/c-switch/test/c-switch.spec.js +40 -0
- package/dist/collection/components/c-switch/test/c-switch.spec.js.map +1 -0
- package/dist/collection/components/c-switch/test/c-switch.visual.js +28 -0
- package/dist/collection/components/c-switch/test/c-switch.visual.js.map +1 -0
- package/dist/collection/components/c-tab/c-tab.css +101 -0
- package/dist/collection/components/c-tab/c-tab.js +230 -0
- package/dist/collection/components/c-tab/c-tab.js.map +1 -0
- package/dist/collection/components/c-tab-buttons/c-tab-buttons.css +108 -0
- package/dist/collection/components/c-tab-buttons/c-tab-buttons.js +271 -0
- package/dist/collection/components/c-tab-buttons/c-tab-buttons.js.map +1 -0
- package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.e2e.js +91 -0
- package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.e2e.js.map +1 -0
- package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.spec.js +42 -0
- package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.spec.js.map +1 -0
- package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.visual.js +47 -0
- package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.visual.js.map +1 -0
- package/dist/collection/components/c-tab-item/c-tab-item.css +41 -0
- package/dist/collection/components/c-tab-item/c-tab-item.js +99 -0
- package/dist/collection/components/c-tab-item/c-tab-item.js.map +1 -0
- package/dist/collection/components/c-tab-items/c-tab-items.css +34 -0
- package/dist/collection/components/c-tab-items/c-tab-items.js +140 -0
- package/dist/collection/components/c-tab-items/c-tab-items.js.map +1 -0
- package/dist/collection/components/c-table/c-table.css +143 -0
- package/dist/collection/components/c-table/c-table.js +86 -0
- package/dist/collection/components/c-table/c-table.js.map +1 -0
- package/dist/collection/components/c-tabs/c-tabs.css +167 -0
- package/dist/collection/components/c-tabs/c-tabs.js +598 -0
- package/dist/collection/components/c-tabs/c-tabs.js.map +1 -0
- package/dist/collection/components/c-tabs/test/c-tabs.e2e.js +74 -0
- package/dist/collection/components/c-tabs/test/c-tabs.e2e.js.map +1 -0
- package/dist/collection/components/c-tabs/test/c-tabs.spec.js +85 -0
- package/dist/collection/components/c-tabs/test/c-tabs.spec.js.map +1 -0
- package/dist/collection/components/c-tabs/test/c-tabs.visual.js +16 -0
- package/dist/collection/components/c-tabs/test/c-tabs.visual.js.map +1 -0
- package/dist/collection/components/c-tag/c-tag.css +146 -0
- package/dist/collection/components/c-tag/c-tag.js +174 -0
- package/dist/collection/components/c-tag/c-tag.js.map +1 -0
- package/dist/collection/components/c-tag/test/c-tag.spec.js +50 -0
- package/dist/collection/components/c-tag/test/c-tag.spec.js.map +1 -0
- package/dist/collection/components/c-tag/test/c-tag.visual.js +26 -0
- package/dist/collection/components/c-tag/test/c-tag.visual.js.map +1 -0
- package/dist/collection/components/c-tags/c-tags.css +25 -0
- package/dist/collection/components/c-tags/c-tags.js +19 -0
- package/dist/collection/components/c-tags/c-tags.js.map +1 -0
- package/dist/collection/components/c-text-field/c-text-field.css +73 -0
- package/dist/collection/components/c-text-field/c-text-field.js +639 -0
- package/dist/collection/components/c-text-field/c-text-field.js.map +1 -0
- package/dist/collection/components/c-text-field/test/c-text-field.e2e.js +12 -0
- package/dist/collection/components/c-text-field/test/c-text-field.e2e.js.map +1 -0
- package/dist/collection/components/c-text-field/test/c-text-field.spec.js +33 -0
- package/dist/collection/components/c-text-field/test/c-text-field.spec.js.map +1 -0
- package/dist/collection/components/c-text-field/test/c-text-field.visual.js +41 -0
- package/dist/collection/components/c-text-field/test/c-text-field.visual.js.map +1 -0
- package/dist/collection/components/c-toast/c-toast.css +156 -0
- package/dist/collection/components/c-toast/c-toast.js +145 -0
- package/dist/collection/components/c-toast/c-toast.js.map +1 -0
- package/dist/collection/components/c-toasts/c-toasts.css +61 -0
- package/dist/collection/components/c-toasts/c-toasts.js +196 -0
- package/dist/collection/components/c-toasts/c-toasts.js.map +1 -0
- package/dist/collection/components/c-toasts/test/c-toasts.spec.js +61 -0
- package/dist/collection/components/c-toasts/test/c-toasts.spec.js.map +1 -0
- package/dist/collection/components/c-toasts/test/c-toasts.visual.js +27 -0
- package/dist/collection/components/c-toasts/test/c-toasts.visual.js.map +1 -0
- package/dist/collection/components/c-toolbar/c-toolbar.css +49 -0
- package/dist/collection/components/c-toolbar/c-toolbar.js +19 -0
- package/dist/collection/components/c-toolbar/c-toolbar.js.map +1 -0
- package/dist/collection/components/c-toolbar/test/c-toolbar.spec.js +12 -0
- package/dist/collection/components/c-toolbar/test/c-toolbar.spec.js.map +1 -0
- package/dist/collection/components/c-toolbar/test/c-toolbar.visual.js +10 -0
- package/dist/collection/components/c-toolbar/test/c-toolbar.visual.js.map +1 -0
- package/dist/collection/dist/styles/css/c-data-table.css +10 -0
- package/dist/collection/dist/styles/css/theme.css +100 -0
- package/dist/collection/dist/styles/css/typography.css +10 -0
- package/dist/collection/dist/styles/scss/_c-data-table.scss +7 -0
- package/dist/collection/dist/styles/scss/_theme.scss +97 -0
- package/dist/collection/dist/styles/scss/_typography.scss +7 -0
- package/dist/collection/dist/styles/tailwind/theme.js +117 -0
- package/dist/collection/dist/styles/variables.css +111 -0
- package/dist/collection/dist/styles/variables.scss +108 -0
- package/dist/collection/index.js +3 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/styles/tailwind/theme.js +117 -0
- package/dist/collection/types/index.js +20 -0
- package/dist/collection/types/index.js.map +1 -0
- package/dist/collection/utils/test/sleep.js +2 -0
- package/dist/collection/utils/test/sleep.js.map +1 -0
- package/dist/collection/utils/test/takeScreenshot.js +11 -0
- package/dist/collection/utils/test/takeScreenshot.js.map +1 -0
- package/dist/components/c-accordion-item.d.ts +11 -0
- package/dist/components/c-accordion-item.js +144 -0
- package/dist/components/c-accordion-item.js.map +1 -0
- package/dist/components/c-accordion.d.ts +11 -0
- package/dist/components/c-accordion.js +89 -0
- package/dist/components/c-accordion.js.map +1 -0
- package/dist/components/c-alert.d.ts +11 -0
- package/dist/components/c-alert.js +46 -0
- package/dist/components/c-alert.js.map +1 -0
- package/dist/components/c-autocomplete.d.ts +11 -0
- package/dist/components/c-autocomplete.js +335 -0
- package/dist/components/c-autocomplete.js.map +1 -0
- package/dist/components/c-badge.d.ts +11 -0
- package/dist/components/c-badge.js +8 -0
- package/dist/components/c-badge.js.map +1 -0
- package/dist/components/c-badge2.js +32 -0
- package/dist/components/c-badge2.js.map +1 -0
- package/dist/components/c-button.d.ts +11 -0
- package/dist/components/c-button.js +191 -0
- package/dist/components/c-button.js.map +1 -0
- package/dist/components/c-card-actions.d.ts +11 -0
- package/dist/components/c-card-actions.js +8 -0
- package/dist/components/c-card-actions.js.map +1 -0
- package/dist/components/c-card-actions2.js +42 -0
- package/dist/components/c-card-actions2.js.map +1 -0
- package/dist/components/c-card-content.d.ts +11 -0
- package/dist/components/c-card-content.js +35 -0
- package/dist/components/c-card-content.js.map +1 -0
- package/dist/components/c-card-title.d.ts +11 -0
- package/dist/components/c-card-title.js +35 -0
- package/dist/components/c-card-title.js.map +1 -0
- package/dist/components/c-card.d.ts +11 -0
- package/dist/components/c-card.js +118 -0
- package/dist/components/c-card.js.map +1 -0
- package/dist/components/c-checkbox.d.ts +11 -0
- package/dist/components/c-checkbox.js +8 -0
- package/dist/components/c-checkbox.js.map +1 -0
- package/dist/components/c-checkbox2.js +153 -0
- package/dist/components/c-checkbox2.js.map +1 -0
- package/dist/components/c-csc-logo.d.ts +11 -0
- package/dist/components/c-csc-logo.js +39 -0
- package/dist/components/c-csc-logo.js.map +1 -0
- package/dist/components/c-data-table.d.ts +11 -0
- package/dist/components/c-data-table.js +815 -0
- package/dist/components/c-data-table.js.map +1 -0
- package/dist/components/c-dropdown.d.ts +11 -0
- package/dist/components/c-dropdown.js +8 -0
- package/dist/components/c-dropdown.js.map +1 -0
- package/dist/components/c-dropdown2.js +504 -0
- package/dist/components/c-dropdown2.js.map +1 -0
- package/dist/components/c-dropdowns.d.ts +11 -0
- package/dist/components/c-dropdowns.js +8 -0
- package/dist/components/c-dropdowns.js.map +1 -0
- package/dist/components/c-dropdowns2.js +60 -0
- package/dist/components/c-dropdowns2.js.map +1 -0
- package/dist/components/c-icon-button.d.ts +11 -0
- package/dist/components/c-icon-button.js +8 -0
- package/dist/components/c-icon-button.js.map +1 -0
- package/dist/components/c-icon-button2.js +95 -0
- package/dist/components/c-icon-button2.js.map +1 -0
- package/dist/components/c-icon.d.ts +11 -0
- package/dist/components/c-icon.js +8 -0
- package/dist/components/c-icon.js.map +1 -0
- package/dist/components/c-icon2.js +43 -0
- package/dist/components/c-icon2.js.map +1 -0
- package/dist/components/c-input.d.ts +11 -0
- package/dist/components/c-input.js +8 -0
- package/dist/components/c-input.js.map +1 -0
- package/dist/components/c-input2.js +373 -0
- package/dist/components/c-input2.js.map +1 -0
- package/dist/components/c-link.d.ts +11 -0
- package/dist/components/c-link.js +50 -0
- package/dist/components/c-link.js.map +1 -0
- package/dist/components/c-list-item-title.d.ts +11 -0
- package/dist/components/c-list-item-title.js +42 -0
- package/dist/components/c-list-item-title.js.map +1 -0
- package/dist/components/c-list-item.d.ts +11 -0
- package/dist/components/c-list-item.js +113 -0
- package/dist/components/c-list-item.js.map +1 -0
- package/dist/components/c-list.d.ts +11 -0
- package/dist/components/c-list.js +62 -0
- package/dist/components/c-list.js.map +1 -0
- package/dist/components/c-loader.d.ts +11 -0
- package/dist/components/c-loader.js +8 -0
- package/dist/components/c-loader.js.map +1 -0
- package/dist/components/c-loader2.js +63 -0
- package/dist/components/c-loader2.js.map +1 -0
- package/dist/components/c-login-button.d.ts +11 -0
- package/dist/components/c-login-button.js +43 -0
- package/dist/components/c-login-button.js.map +1 -0
- package/dist/components/c-login-buttons.d.ts +11 -0
- package/dist/components/c-login-buttons.js +35 -0
- package/dist/components/c-login-buttons.js.map +1 -0
- package/dist/components/c-login-card-actions.d.ts +11 -0
- package/dist/components/c-login-card-actions.js +43 -0
- package/dist/components/c-login-card-actions.js.map +1 -0
- package/dist/components/c-login-card-content.d.ts +11 -0
- package/dist/components/c-login-card-content.js +35 -0
- package/dist/components/c-login-card-content.js.map +1 -0
- package/dist/components/c-login-card-title.d.ts +11 -0
- package/dist/components/c-login-card-title.js +35 -0
- package/dist/components/c-login-card-title.js.map +1 -0
- package/dist/components/c-login-card.d.ts +11 -0
- package/dist/components/c-login-card.js +87 -0
- package/dist/components/c-login-card.js.map +1 -0
- package/dist/components/c-main.d.ts +11 -0
- package/dist/components/c-main.js +35 -0
- package/dist/components/c-main.js.map +1 -0
- package/dist/components/c-menu-items.d.ts +11 -0
- package/dist/components/c-menu-items.js +8 -0
- package/dist/components/c-menu-items.js.map +1 -0
- package/dist/components/c-menu-items2.js +236 -0
- package/dist/components/c-menu-items2.js.map +1 -0
- package/dist/components/c-menu.d.ts +11 -0
- package/dist/components/c-menu.js +8 -0
- package/dist/components/c-menu.js.map +1 -0
- package/dist/components/c-menu2.js +185 -0
- package/dist/components/c-menu2.js.map +1 -0
- package/dist/components/c-message.d.ts +11 -0
- package/dist/components/c-message.js +8 -0
- package/dist/components/c-message.js.map +1 -0
- package/dist/components/c-message2.js +88 -0
- package/dist/components/c-message2.js.map +1 -0
- package/dist/components/c-modal.d.ts +11 -0
- package/dist/components/c-modal.js +131 -0
- package/dist/components/c-modal.js.map +1 -0
- package/dist/components/c-navigation-button.d.ts +11 -0
- package/dist/components/c-navigation-button.js +66 -0
- package/dist/components/c-navigation-button.js.map +1 -0
- package/dist/components/c-option-value.d.ts +11 -0
- package/dist/components/c-option-value.js +35 -0
- package/dist/components/c-option-value.js.map +1 -0
- package/dist/components/c-option.d.ts +11 -0
- package/dist/components/c-option.js +44 -0
- package/dist/components/c-option.js.map +1 -0
- package/dist/components/c-otp-input.d.ts +11 -0
- package/dist/components/c-otp-input.js +178 -0
- package/dist/components/c-otp-input.js.map +1 -0
- package/dist/components/c-page.d.ts +11 -0
- package/dist/components/c-page.js +45 -0
- package/dist/components/c-page.js.map +1 -0
- package/dist/components/c-pagination.d.ts +11 -0
- package/dist/components/c-pagination.js +8 -0
- package/dist/components/c-pagination.js.map +1 -0
- package/dist/components/c-pagination2.js +293 -0
- package/dist/components/c-pagination2.js.map +1 -0
- package/dist/components/c-progress-bar.d.ts +11 -0
- package/dist/components/c-progress-bar.js +79 -0
- package/dist/components/c-progress-bar.js.map +1 -0
- package/dist/components/c-radio-group.d.ts +11 -0
- package/dist/components/c-radio-group.js +185 -0
- package/dist/components/c-radio-group.js.map +1 -0
- package/dist/components/c-radio.d.ts +11 -0
- package/dist/components/c-radio.js +42 -0
- package/dist/components/c-radio.js.map +1 -0
- package/dist/components/c-ripple.d.ts +11 -0
- package/dist/components/c-ripple.js +8 -0
- package/dist/components/c-ripple.js.map +1 -0
- package/dist/components/c-ripple2.js +68 -0
- package/dist/components/c-ripple2.js.map +1 -0
- package/dist/components/c-row.d.ts +11 -0
- package/dist/components/c-row.js +54 -0
- package/dist/components/c-row.js.map +1 -0
- package/dist/components/c-select.d.ts +11 -0
- package/dist/components/c-select.js +402 -0
- package/dist/components/c-select.js.map +1 -0
- package/dist/components/c-side-navigation-item.d.ts +11 -0
- package/dist/components/c-side-navigation-item.js +154 -0
- package/dist/components/c-side-navigation-item.js.map +1 -0
- package/dist/components/c-side-navigation-title.d.ts +11 -0
- package/dist/components/c-side-navigation-title.js +35 -0
- package/dist/components/c-side-navigation-title.js.map +1 -0
- package/dist/components/c-side-navigation.d.ts +11 -0
- package/dist/components/c-side-navigation.js +118 -0
- package/dist/components/c-side-navigation.js.map +1 -0
- package/dist/components/c-spacer.d.ts +11 -0
- package/dist/components/c-spacer.js +8 -0
- package/dist/components/c-spacer.js.map +1 -0
- package/dist/components/c-spacer2.js +32 -0
- package/dist/components/c-spacer2.js.map +1 -0
- package/dist/components/c-spinner.d.ts +11 -0
- package/dist/components/c-spinner.js +8 -0
- package/dist/components/c-spinner.js.map +1 -0
- package/dist/components/c-spinner2.js +49 -0
- package/dist/components/c-spinner2.js.map +1 -0
- package/dist/components/c-status.d.ts +11 -0
- package/dist/components/c-status.js +39 -0
- package/dist/components/c-status.js.map +1 -0
- package/dist/components/c-step.d.ts +11 -0
- package/dist/components/c-step.js +44 -0
- package/dist/components/c-step.js.map +1 -0
- package/dist/components/c-steps.d.ts +11 -0
- package/dist/components/c-steps.js +98 -0
- package/dist/components/c-steps.js.map +1 -0
- package/dist/components/c-sub-navigation-item.d.ts +11 -0
- package/dist/components/c-sub-navigation-item.js +83 -0
- package/dist/components/c-sub-navigation-item.js.map +1 -0
- package/dist/components/c-swiper-tab.d.ts +11 -0
- package/dist/components/c-swiper-tab.js +75 -0
- package/dist/components/c-swiper-tab.js.map +1 -0
- package/dist/components/c-swiper.d.ts +11 -0
- package/dist/components/c-swiper.js +4230 -0
- package/dist/components/c-swiper.js.map +1 -0
- package/dist/components/c-switch.d.ts +11 -0
- package/dist/components/c-switch.js +88 -0
- package/dist/components/c-switch.js.map +1 -0
- package/dist/components/c-tab-buttons.d.ts +11 -0
- package/dist/components/c-tab-buttons.js +155 -0
- package/dist/components/c-tab-buttons.js.map +1 -0
- package/dist/components/c-tab-item.d.ts +11 -0
- package/dist/components/c-tab-item.js +57 -0
- package/dist/components/c-tab-item.js.map +1 -0
- package/dist/components/c-tab-items.d.ts +11 -0
- package/dist/components/c-tab-items.js +101 -0
- package/dist/components/c-tab-items.js.map +1 -0
- package/dist/components/c-tab.d.ts +11 -0
- package/dist/components/c-tab.js +86 -0
- package/dist/components/c-tab.js.map +1 -0
- package/dist/components/c-table.d.ts +11 -0
- package/dist/components/c-table.js +63 -0
- package/dist/components/c-table.js.map +1 -0
- package/dist/components/c-tabs.d.ts +11 -0
- package/dist/components/c-tabs.js +481 -0
- package/dist/components/c-tabs.js.map +1 -0
- package/dist/components/c-tag.d.ts +11 -0
- package/dist/components/c-tag.js +96 -0
- package/dist/components/c-tag.js.map +1 -0
- package/dist/components/c-tags.d.ts +11 -0
- package/dist/components/c-tags.js +35 -0
- package/dist/components/c-tags.js.map +1 -0
- package/dist/components/c-text-field.d.ts +11 -0
- package/dist/components/c-text-field.js +220 -0
- package/dist/components/c-text-field.js.map +1 -0
- package/dist/components/c-toast.d.ts +11 -0
- package/dist/components/c-toast.js +8 -0
- package/dist/components/c-toast.js.map +1 -0
- package/dist/components/c-toast2.js +93 -0
- package/dist/components/c-toast2.js.map +1 -0
- package/dist/components/c-toasts.d.ts +11 -0
- package/dist/components/c-toasts.js +113 -0
- package/dist/components/c-toasts.js.map +1 -0
- package/dist/components/c-toolbar.d.ts +11 -0
- package/dist/components/c-toolbar.js +35 -0
- package/dist/components/c-toolbar.js.map +1 -0
- package/dist/components/index.d.ts +33 -0
- package/dist/components/index.js +4 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/index2.js +23 -0
- package/dist/components/index2.js.map +1 -0
- package/dist/components/mdi.js +25 -0
- package/dist/components/mdi.js.map +1 -0
- package/dist/csc-ui/assets/puhti.gif +0 -0
- package/dist/csc-ui/csc-ui.esm.js +2 -0
- package/dist/csc-ui/csc-ui.esm.js.map +1 -0
- package/dist/csc-ui/dist/styles/css/c-data-table.css +10 -0
- package/dist/csc-ui/dist/styles/css/theme.css +100 -0
- package/dist/csc-ui/dist/styles/css/typography.css +10 -0
- package/dist/csc-ui/dist/styles/scss/_c-data-table.scss +7 -0
- package/dist/csc-ui/dist/styles/scss/_theme.scss +97 -0
- package/dist/csc-ui/dist/styles/scss/_typography.scss +7 -0
- package/dist/csc-ui/dist/styles/tailwind/theme.js +117 -0
- package/dist/csc-ui/dist/styles/variables.css +111 -0
- package/dist/csc-ui/dist/styles/variables.scss +108 -0
- package/dist/csc-ui/index.esm.js +2 -0
- package/dist/csc-ui/index.esm.js.map +1 -0
- package/dist/csc-ui/p-0355c094.entry.js +2 -0
- package/dist/csc-ui/p-0355c094.entry.js.map +1 -0
- package/dist/csc-ui/p-0c7c2bbd.entry.js +2 -0
- package/dist/csc-ui/p-0c7c2bbd.entry.js.map +1 -0
- package/dist/csc-ui/p-177f7d7d.entry.js +2 -0
- package/dist/csc-ui/p-177f7d7d.entry.js.map +1 -0
- package/dist/csc-ui/p-20282d86.entry.js +2 -0
- package/dist/csc-ui/p-20282d86.entry.js.map +1 -0
- package/dist/csc-ui/p-21f39647.entry.js +2 -0
- package/dist/csc-ui/p-21f39647.entry.js.map +1 -0
- package/dist/csc-ui/p-2318ba6b.entry.js +2 -0
- package/dist/csc-ui/p-2318ba6b.entry.js.map +1 -0
- package/dist/csc-ui/p-2bf78691.entry.js +2 -0
- package/dist/csc-ui/p-2bf78691.entry.js.map +1 -0
- package/dist/csc-ui/p-319fba28.entry.js +2 -0
- package/dist/csc-ui/p-319fba28.entry.js.map +1 -0
- package/dist/csc-ui/p-33e42eb8.entry.js +2 -0
- package/dist/csc-ui/p-33e42eb8.entry.js.map +1 -0
- package/dist/csc-ui/p-3c11dfb2.entry.js +2 -0
- package/dist/csc-ui/p-3c11dfb2.entry.js.map +1 -0
- package/dist/csc-ui/p-3e4869bf.entry.js +2 -0
- package/dist/csc-ui/p-3e4869bf.entry.js.map +1 -0
- package/dist/csc-ui/p-3ec3f184.entry.js +2 -0
- package/dist/csc-ui/p-3ec3f184.entry.js.map +1 -0
- package/dist/csc-ui/p-3f35766b.entry.js +2 -0
- package/dist/csc-ui/p-3f35766b.entry.js.map +1 -0
- package/dist/csc-ui/p-425ca7aa.entry.js +2 -0
- package/dist/csc-ui/p-425ca7aa.entry.js.map +1 -0
- package/dist/csc-ui/p-49726bd5.entry.js +2 -0
- package/dist/csc-ui/p-49726bd5.entry.js.map +1 -0
- package/dist/csc-ui/p-540e681a.entry.js +2 -0
- package/dist/csc-ui/p-540e681a.entry.js.map +1 -0
- package/dist/csc-ui/p-593b6720.entry.js +2 -0
- package/dist/csc-ui/p-593b6720.entry.js.map +1 -0
- package/dist/csc-ui/p-626c6afe.entry.js +2 -0
- package/dist/csc-ui/p-626c6afe.entry.js.map +1 -0
- package/dist/csc-ui/p-6e90cdfb.entry.js +2 -0
- package/dist/csc-ui/p-6e90cdfb.entry.js.map +1 -0
- package/dist/csc-ui/p-7092cd6c.entry.js +2 -0
- package/dist/csc-ui/p-7092cd6c.entry.js.map +1 -0
- package/dist/csc-ui/p-771adfde.entry.js +2 -0
- package/dist/csc-ui/p-771adfde.entry.js.map +1 -0
- package/dist/csc-ui/p-7d76025c.entry.js +2 -0
- package/dist/csc-ui/p-7d76025c.entry.js.map +1 -0
- package/dist/csc-ui/p-816f84b2.entry.js +2 -0
- package/dist/csc-ui/p-816f84b2.entry.js.map +1 -0
- package/dist/csc-ui/p-86a96319.entry.js +2 -0
- package/dist/csc-ui/p-86a96319.entry.js.map +1 -0
- package/dist/csc-ui/p-87c39c69.entry.js +2 -0
- package/dist/csc-ui/p-87c39c69.entry.js.map +1 -0
- package/dist/csc-ui/p-89d6e4c6.entry.js +2 -0
- package/dist/csc-ui/p-89d6e4c6.entry.js.map +1 -0
- package/dist/csc-ui/p-8d3a455f.entry.js +2 -0
- package/dist/csc-ui/p-8d3a455f.entry.js.map +1 -0
- package/dist/csc-ui/p-8e08df79.entry.js +2 -0
- package/dist/csc-ui/p-8e08df79.entry.js.map +1 -0
- package/dist/csc-ui/p-982b94a7.entry.js +2 -0
- package/dist/csc-ui/p-982b94a7.entry.js.map +1 -0
- package/dist/csc-ui/p-993583f1.entry.js +2 -0
- package/dist/csc-ui/p-993583f1.entry.js.map +1 -0
- package/dist/csc-ui/p-9936c5e9.entry.js +2 -0
- package/dist/csc-ui/p-9936c5e9.entry.js.map +1 -0
- package/dist/csc-ui/p-9ad61903.entry.js +2 -0
- package/dist/csc-ui/p-9ad61903.entry.js.map +1 -0
- package/dist/csc-ui/p-9bda8e49.entry.js +2 -0
- package/dist/csc-ui/p-9bda8e49.entry.js.map +1 -0
- package/dist/csc-ui/p-9d54e9a4.js +3 -0
- package/dist/csc-ui/p-9d54e9a4.js.map +1 -0
- package/dist/csc-ui/p-a7a7f6ab.entry.js +2 -0
- package/dist/csc-ui/p-a7a7f6ab.entry.js.map +1 -0
- package/dist/csc-ui/p-a9441233.entry.js +2 -0
- package/dist/csc-ui/p-a9441233.entry.js.map +1 -0
- package/dist/csc-ui/p-b7dcfced.entry.js +2 -0
- package/dist/csc-ui/p-b7dcfced.entry.js.map +1 -0
- package/dist/csc-ui/p-bc1000f3.entry.js +2 -0
- package/dist/csc-ui/p-bc1000f3.entry.js.map +1 -0
- package/dist/csc-ui/p-bf6d76df.entry.js +2 -0
- package/dist/csc-ui/p-bf6d76df.entry.js.map +1 -0
- package/dist/csc-ui/p-bf8bc8d7.entry.js +2 -0
- package/dist/csc-ui/p-bf8bc8d7.entry.js.map +1 -0
- package/dist/csc-ui/p-c101d987.entry.js +2 -0
- package/dist/csc-ui/p-c101d987.entry.js.map +1 -0
- package/dist/csc-ui/p-c4122519.entry.js +2 -0
- package/dist/csc-ui/p-c4122519.entry.js.map +1 -0
- package/dist/csc-ui/p-c5847170.entry.js +2 -0
- package/dist/csc-ui/p-c5847170.entry.js.map +1 -0
- package/dist/csc-ui/p-d18578fc.entry.js +2 -0
- package/dist/csc-ui/p-d18578fc.entry.js.map +1 -0
- package/dist/csc-ui/p-d3659ea8.entry.js +2 -0
- package/dist/csc-ui/p-d3659ea8.entry.js.map +1 -0
- package/dist/csc-ui/p-dffa1f9f.js +2 -0
- package/dist/csc-ui/p-dffa1f9f.js.map +1 -0
- package/dist/csc-ui/p-e81aa4e4.entry.js +2 -0
- package/dist/csc-ui/p-e81aa4e4.entry.js.map +1 -0
- package/dist/csc-ui/p-e8cddda8.entry.js +2 -0
- package/dist/csc-ui/p-e8cddda8.entry.js.map +1 -0
- package/dist/csc-ui/p-e970fa68.entry.js +2 -0
- package/dist/csc-ui/p-e970fa68.entry.js.map +1 -0
- package/dist/csc-ui/p-edb164fa.entry.js +2 -0
- package/dist/csc-ui/p-edb164fa.entry.js.map +1 -0
- package/dist/csc-ui/p-f327adbb.entry.js +2 -0
- package/dist/csc-ui/p-f327adbb.entry.js.map +1 -0
- package/dist/csc-ui/p-f32832e3.entry.js +2 -0
- package/dist/csc-ui/p-f32832e3.entry.js.map +1 -0
- package/dist/csc-ui/p-f65ed4bf.entry.js +2 -0
- package/dist/csc-ui/p-f65ed4bf.entry.js.map +1 -0
- package/dist/csc-ui/p-fa86088a.entry.js +2 -0
- package/dist/csc-ui/p-fa86088a.entry.js.map +1 -0
- package/dist/csc-ui/p-fafac729.js +2 -0
- package/dist/csc-ui/p-fafac729.js.map +1 -0
- package/dist/csc-ui/p-fc284e52.entry.js +2 -0
- package/dist/csc-ui/p-fc284e52.entry.js.map +1 -0
- package/dist/csc-ui/p-fe217f6c.entry.js +2 -0
- package/dist/csc-ui/p-fe217f6c.entry.js.map +1 -0
- package/dist/esm/c-accordion-item.entry.js +114 -0
- package/dist/esm/c-accordion-item.entry.js.map +1 -0
- package/dist/esm/c-accordion.entry.js +64 -0
- package/dist/esm/c-accordion.entry.js.map +1 -0
- package/dist/esm/c-alert.entry.js +26 -0
- package/dist/esm/c-alert.entry.js.map +1 -0
- package/dist/esm/c-autocomplete.entry.js +259 -0
- package/dist/esm/c-autocomplete.entry.js.map +1 -0
- package/dist/esm/c-badge_12.entry.js +427 -0
- package/dist/esm/c-badge_12.entry.js.map +1 -0
- package/dist/esm/c-card-actions.entry.js +24 -0
- package/dist/esm/c-card-actions.entry.js.map +1 -0
- package/dist/esm/c-card-content.entry.js +17 -0
- package/dist/esm/c-card-content.entry.js.map +1 -0
- package/dist/esm/c-card-title.entry.js +17 -0
- package/dist/esm/c-card-title.entry.js.map +1 -0
- package/dist/esm/c-checkbox_2.entry.js +337 -0
- package/dist/esm/c-checkbox_2.entry.js.map +1 -0
- package/dist/esm/c-data-table.entry.js +697 -0
- package/dist/esm/c-data-table.entry.js.map +1 -0
- package/dist/esm/c-dropdown_4.entry.js +830 -0
- package/dist/esm/c-dropdown_4.entry.js.map +1 -0
- package/dist/esm/c-link.entry.js +27 -0
- package/dist/esm/c-link.entry.js.map +1 -0
- package/dist/esm/c-list-item-title.entry.js +22 -0
- package/dist/esm/c-list-item-title.entry.js.map +1 -0
- package/dist/esm/c-list-item.entry.js +79 -0
- package/dist/esm/c-list-item.entry.js.map +1 -0
- package/dist/esm/c-list.entry.js +41 -0
- package/dist/esm/c-list.entry.js.map +1 -0
- package/dist/esm/c-loader.entry.js +35 -0
- package/dist/esm/c-loader.entry.js.map +1 -0
- package/dist/esm/c-login-button.entry.js +21 -0
- package/dist/esm/c-login-button.entry.js.map +1 -0
- package/dist/esm/c-login-buttons.entry.js +17 -0
- package/dist/esm/c-login-buttons.entry.js.map +1 -0
- package/dist/esm/c-login-card-actions.entry.js +16 -0
- package/dist/esm/c-login-card-actions.entry.js.map +1 -0
- package/dist/esm/c-login-card-content.entry.js +17 -0
- package/dist/esm/c-login-card-content.entry.js.map +1 -0
- package/dist/esm/c-login-card-title.entry.js +17 -0
- package/dist/esm/c-login-card-title.entry.js.map +1 -0
- package/dist/esm/c-login-card.entry.js +62 -0
- package/dist/esm/c-login-card.entry.js.map +1 -0
- package/dist/esm/c-menu_2.entry.js +349 -0
- package/dist/esm/c-menu_2.entry.js.map +1 -0
- package/dist/esm/c-modal.entry.js +104 -0
- package/dist/esm/c-modal.entry.js.map +1 -0
- package/dist/esm/c-navigation-button.entry.js +18 -0
- package/dist/esm/c-navigation-button.entry.js.map +1 -0
- package/dist/esm/c-option-value.entry.js +17 -0
- package/dist/esm/c-option-value.entry.js.map +1 -0
- package/dist/esm/c-option.entry.js +21 -0
- package/dist/esm/c-option.entry.js.map +1 -0
- package/dist/esm/c-otp-input.entry.js +150 -0
- package/dist/esm/c-otp-input.entry.js.map +1 -0
- package/dist/esm/c-page.entry.js +27 -0
- package/dist/esm/c-page.entry.js.map +1 -0
- package/dist/esm/c-progress-bar.entry.js +55 -0
- package/dist/esm/c-progress-bar.entry.js.map +1 -0
- package/dist/esm/c-radio-group.entry.js +150 -0
- package/dist/esm/c-radio-group.entry.js.map +1 -0
- package/dist/esm/c-radio.entry.js +20 -0
- package/dist/esm/c-radio.entry.js.map +1 -0
- package/dist/esm/c-select.entry.js +327 -0
- package/dist/esm/c-select.entry.js.map +1 -0
- package/dist/esm/c-side-navigation-item.entry.js +117 -0
- package/dist/esm/c-side-navigation-item.entry.js.map +1 -0
- package/dist/esm/c-side-navigation-title.entry.js +17 -0
- package/dist/esm/c-side-navigation-title.entry.js.map +1 -0
- package/dist/esm/c-side-navigation.entry.js +67 -0
- package/dist/esm/c-side-navigation.entry.js.map +1 -0
- package/dist/esm/c-status.entry.js +19 -0
- package/dist/esm/c-status.entry.js.map +1 -0
- package/dist/esm/c-step.entry.js +23 -0
- package/dist/esm/c-step.entry.js.map +1 -0
- package/dist/esm/c-steps.entry.js +74 -0
- package/dist/esm/c-steps.entry.js.map +1 -0
- package/dist/esm/c-sub-navigation-item.entry.js +47 -0
- package/dist/esm/c-sub-navigation-item.entry.js.map +1 -0
- package/dist/esm/c-swiper-tab.entry.js +43 -0
- package/dist/esm/c-swiper-tab.entry.js.map +1 -0
- package/dist/esm/c-swiper.entry.js +4183 -0
- package/dist/esm/c-swiper.entry.js.map +1 -0
- package/dist/esm/c-switch.entry.js +67 -0
- package/dist/esm/c-switch.entry.js.map +1 -0
- package/dist/esm/c-tab-buttons.entry.js +129 -0
- package/dist/esm/c-tab-buttons.entry.js.map +1 -0
- package/dist/esm/c-tab-item.entry.js +36 -0
- package/dist/esm/c-tab-item.entry.js.map +1 -0
- package/dist/esm/c-tab-items.entry.js +77 -0
- package/dist/esm/c-tab-items.entry.js.map +1 -0
- package/dist/esm/c-tab.entry.js +55 -0
- package/dist/esm/c-tab.entry.js.map +1 -0
- package/dist/esm/c-table.entry.js +43 -0
- package/dist/esm/c-table.entry.js.map +1 -0
- package/dist/esm/c-tabs.entry.js +419 -0
- package/dist/esm/c-tabs.entry.js.map +1 -0
- package/dist/esm/c-tag.entry.js +41 -0
- package/dist/esm/c-tag.entry.js.map +1 -0
- package/dist/esm/c-tags.entry.js +17 -0
- package/dist/esm/c-tags.entry.js.map +1 -0
- package/dist/esm/c-text-field.entry.js +147 -0
- package/dist/esm/c-text-field.entry.js.map +1 -0
- package/dist/esm/c-toast.entry.js +69 -0
- package/dist/esm/c-toast.entry.js.map +1 -0
- package/dist/esm/c-toasts.entry.js +76 -0
- package/dist/esm/c-toasts.entry.js.map +1 -0
- package/dist/esm/csc-ui.js +20 -0
- package/dist/esm/csc-ui.js.map +1 -0
- package/dist/esm/index-cdf029b7.js +2575 -0
- package/dist/esm/index-cdf029b7.js.map +1 -0
- package/dist/esm/index-dfaed2a4.js +23 -0
- package/dist/esm/index-dfaed2a4.js.map +1 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/mdi-a4a63b40.js +25 -0
- package/dist/esm/mdi-a4a63b40.js.map +1 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/loader/cdn.js +3 -0
- package/dist/loader/index.cjs.js +3 -0
- package/dist/loader/index.d.ts +21 -0
- package/dist/loader/index.es2017.js +3 -0
- package/dist/loader/index.js +4 -0
- package/dist/loader/package.json +11 -0
- package/dist/playwright.config.js +46 -0
- package/dist/playwright.config.js.map +1 -0
- package/dist/stencil.config.js +41 -0
- package/dist/stencil.config.js.map +1 -0
- package/dist/styles/css/c-data-table.css +10 -0
- package/dist/styles/css/theme.css +100 -0
- package/dist/styles/css/typography.css +10 -0
- package/dist/styles/scss/_c-data-table.scss +7 -0
- package/dist/styles/scss/_theme.scss +97 -0
- package/dist/styles/scss/_typography.scss +7 -0
- package/dist/styles/tailwind/theme.js +117 -0
- package/dist/styles/variables.css +111 -0
- package/dist/styles/variables.scss +108 -0
- package/dist/types/Users/veriksso/Documents/code/ui/packages/csc-ui/.stencil/playwright.config.d.ts +2 -0
- package/dist/types/Users/veriksso/Documents/code/ui/packages/csc-ui/.stencil/stencil.config.d.ts +2 -0
- package/dist/types/components/c-accordion/c-accordion.d.ts +18 -0
- package/dist/types/components/c-accordion/test/c-accordion.visual.d.ts +1 -0
- package/dist/types/components/c-accordion-item/c-accordion-item.d.ts +27 -0
- package/dist/types/components/c-alert/c-alert.d.ts +6 -0
- package/dist/types/components/c-alert/test/c-alert.visual.d.ts +1 -0
- package/dist/types/components/c-autocomplete/c-autocomplete.d.ts +65 -0
- package/dist/types/components/c-autocomplete/test/c-autocomplete.visual.d.ts +1 -0
- package/dist/types/components/c-badge/c-badge.d.ts +3 -0
- package/dist/types/components/c-button/c-button.d.ts +36 -0
- package/dist/types/components/c-button/test/c-button.visual.d.ts +1 -0
- package/dist/types/components/c-card/c-card.d.ts +12 -0
- package/dist/types/components/c-card/test/c-card.visual.d.ts +1 -0
- package/dist/types/components/c-card-actions/c-card-actions.d.ts +5 -0
- package/dist/types/components/c-card-content/c-card-content.d.ts +3 -0
- package/dist/types/components/c-card-title/c-card-title.d.ts +3 -0
- package/dist/types/components/c-checkbox/c-checkbox.d.ts +37 -0
- package/dist/types/components/c-checkbox/test/c-checkbox.visual.d.ts +1 -0
- package/dist/types/components/c-csc-logo/c-csc-logo.d.ts +4 -0
- package/dist/types/components/c-data-table/c-data-table.d.ts +116 -0
- package/dist/types/components/c-data-table/test/c-data-table.visual.d.ts +1 -0
- package/dist/types/components/c-data-table/test/data/index.d.ts +3 -0
- package/dist/types/components/c-dropdown/c-dropdown.d.ts +66 -0
- package/dist/types/components/c-dropdowns/c-dropdowns.d.ts +29 -0
- package/dist/types/components/c-icon/c-icon.d.ts +7 -0
- package/dist/types/components/c-icon-button/c-icon-button.d.ts +18 -0
- package/dist/types/components/c-icon-button/test/c-icon-button.visual.d.ts +1 -0
- package/dist/types/components/c-input/c-input.d.ts +75 -0
- package/dist/types/components/c-link/c-link.d.ts +7 -0
- package/dist/types/components/c-link/test/c-link.visual.d.ts +1 -0
- package/dist/types/components/c-list/c-list.d.ts +8 -0
- package/dist/types/components/c-list-item/c-list-item.d.ts +16 -0
- package/dist/types/components/c-list-item-title/c-list-item-title.d.ts +4 -0
- package/dist/types/components/c-loader/c-loader.d.ts +10 -0
- package/dist/types/components/c-login-button/c-login-button.d.ts +6 -0
- package/dist/types/components/c-login-buttons/c-login-buttons.d.ts +3 -0
- package/dist/types/components/c-login-card/c-login-card.d.ts +19 -0
- package/dist/types/components/c-login-card/test/c-login-card.visual.d.ts +1 -0
- package/dist/types/components/c-login-card-actions/c-login-card-actions.d.ts +5 -0
- package/dist/types/components/c-login-card-content/c-login-card-content.d.ts +3 -0
- package/dist/types/components/c-login-card-title/c-login-card-title.d.ts +3 -0
- package/dist/types/components/c-main/c-main.d.ts +3 -0
- package/dist/types/components/c-menu/c-menu.d.ts +26 -0
- package/dist/types/components/c-menu/test/c-menu.visual.d.ts +1 -0
- package/dist/types/components/c-menu-items/c-menu-items.d.ts +44 -0
- package/dist/types/components/c-message/c-message.d.ts +18 -0
- package/dist/types/components/c-modal/c-modal.d.ts +23 -0
- package/dist/types/components/c-navigation-button/c-navigation-button.d.ts +3 -0
- package/dist/types/components/c-option/c-option.d.ts +7 -0
- package/dist/types/components/c-option-value/c-option-value.d.ts +3 -0
- package/dist/types/components/c-otp-input/c-otp-input.d.ts +31 -0
- package/dist/types/components/c-page/c-page.d.ts +7 -0
- package/dist/types/components/c-pagination/c-pagination.d.ts +38 -0
- package/dist/types/components/c-pagination/test/c-pagination.visual.d.ts +1 -0
- package/dist/types/components/c-progress-bar/c-progress-bar.d.ts +9 -0
- package/dist/types/components/c-progress-bar/test/c-progress-bar.visual.d.ts +1 -0
- package/dist/types/components/c-radio/c-radio.d.ts +6 -0
- package/dist/types/components/c-radio-group/c-radio-group.d.ts +40 -0
- package/dist/types/components/c-radio-group/test/c-radio-group.visual.d.ts +1 -0
- package/dist/types/components/c-radio-group/test/items.d.ts +2 -0
- package/dist/types/components/c-ripple/c-ripple.d.ts +7 -0
- package/dist/types/components/c-row/c-row.d.ts +10 -0
- package/dist/types/components/c-select/c-select.d.ts +73 -0
- package/dist/types/components/c-select/test/c-select.visual.d.ts +1 -0
- package/dist/types/components/c-select/test/items.d.ts +2 -0
- package/dist/types/components/c-side-navigation/c-side-navigation.d.ts +9 -0
- package/dist/types/components/c-side-navigation/test/c-side-navigation.visual.d.ts +1 -0
- package/dist/types/components/c-side-navigation-item/c-side-navigation-item.d.ts +20 -0
- package/dist/types/components/c-side-navigation-title/c-side-navigation-title.d.ts +3 -0
- package/dist/types/components/c-spacer/c-spacer.d.ts +3 -0
- package/dist/types/components/c-spinner/c-spinner.d.ts +6 -0
- package/dist/types/components/c-status/c-status.d.ts +4 -0
- package/dist/types/components/c-status/test/c-status.visual.d.ts +1 -0
- package/dist/types/components/c-step/c-step.d.ts +5 -0
- package/dist/types/components/c-steps/c-steps.d.ts +16 -0
- package/dist/types/components/c-steps/test/c-steps.visual.d.ts +1 -0
- package/dist/types/components/c-sub-navigation-item/c-sub-navigation-item.d.ts +10 -0
- package/dist/types/components/c-swiper/c-swiper.d.ts +25 -0
- package/dist/types/components/c-swiper/test/c-swiper.visual.d.ts +1 -0
- package/dist/types/components/c-swiper-tab/c-swiper-tab.d.ts +16 -0
- package/dist/types/components/c-switch/c-switch.d.ts +18 -0
- package/dist/types/components/c-switch/test/c-switch.visual.d.ts +1 -0
- package/dist/types/components/c-tab/c-tab.d.ts +20 -0
- package/dist/types/components/c-tab-buttons/c-tab-buttons.d.ts +24 -0
- package/dist/types/components/c-tab-buttons/test/c-tab-buttons.visual.d.ts +1 -0
- package/dist/types/components/c-tab-item/c-tab-item.d.ts +12 -0
- package/dist/types/components/c-tab-items/c-tab-items.d.ts +18 -0
- package/dist/types/components/c-table/c-table.d.ts +12 -0
- package/dist/types/components/c-tabs/c-tabs.d.ts +67 -0
- package/dist/types/components/c-tabs/test/c-tabs.visual.d.ts +1 -0
- package/dist/types/components/c-tag/c-tag.d.ts +12 -0
- package/dist/types/components/c-tag/test/c-tag.visual.d.ts +1 -0
- package/dist/types/components/c-tags/c-tags.d.ts +3 -0
- package/dist/types/components/c-text-field/c-text-field.d.ts +56 -0
- package/dist/types/components/c-text-field/test/c-text-field.visual.d.ts +1 -0
- package/dist/types/components/c-toast/c-toast.d.ts +19 -0
- package/dist/types/components/c-toasts/c-toasts.d.ts +17 -0
- package/dist/types/components/c-toasts/test/c-toasts.visual.d.ts +1 -0
- package/dist/types/components/c-toolbar/c-toolbar.d.ts +3 -0
- package/dist/types/components/c-toolbar/test/c-toolbar.visual.d.ts +1 -0
- package/dist/types/components.d.ts +5143 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +1673 -0
- package/dist/types/types/global.d.ts +13 -0
- package/dist/types/types/index.d.ts +145 -0
- package/dist/types/utils/test/sleep.d.ts +1 -0
- package/dist/types/utils/test/takeScreenshot.d.ts +2 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +13 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +10 -0
- package/package.json +95 -0
- package/vscode-data.json +2135 -0
|
@@ -0,0 +1,815 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Fragment, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { e as mdiChevronDown, h as mdiChevronLeft, m as mdiChevronRight, i as mdiSwapVertical, j as mdiArrowUpThin, k as mdiArrowDownThin } from './mdi.js';
|
|
3
|
+
import { d as defineCustomElement$b } from './c-badge2.js';
|
|
4
|
+
import { d as defineCustomElement$a } from './c-checkbox2.js';
|
|
5
|
+
import { d as defineCustomElement$9 } from './c-icon2.js';
|
|
6
|
+
import { d as defineCustomElement$8 } from './c-icon-button2.js';
|
|
7
|
+
import { d as defineCustomElement$7 } from './c-menu2.js';
|
|
8
|
+
import { d as defineCustomElement$6 } from './c-menu-items2.js';
|
|
9
|
+
import { d as defineCustomElement$5 } from './c-pagination2.js';
|
|
10
|
+
import { d as defineCustomElement$4 } from './c-ripple2.js';
|
|
11
|
+
import { d as defineCustomElement$3 } from './c-spacer2.js';
|
|
12
|
+
import { d as defineCustomElement$2 } from './c-spinner2.js';
|
|
13
|
+
|
|
14
|
+
const cDataTableCss = "html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-data-table-background-color:var(--c-data-table-background-color, var(--c-white));--_c-data-table-border-color:var(--c-data-table-border-color, var(--c-tertiary-200));--_c-data-table-background-color-hover:var(--c-data-table-background-color-hover, var(--c-primary-100));--_c-data-table-selected-row-background-color:var(--c-data-table-selected-row-background-color, rgba(var(--c-primary-rgb), 0.1));--_c-data-table-highlighted-column-background-color:var(--c-data-table-highlighted-column-background-color, rgba(var(--c-primary-rgb), 0.1));--_c-data-table-active:var(--c-data-table-active, var(--c-primary-600));--_c-data-table-checkbox-color:var(--c-data-table-checkbox-color, var(--c-primary-600));--_c-data-table-checkbox-color-active:var(--c-data-table-checkbox-color-active, var(--_c-data-table-checkbox-color));--_c-data-table-checkbox-background-color-hover:var(--c-data-table-checkbox-background-color-hover, rgba(var(--c-primary-rgb), 0.1));--_c-data-table-pagination-button-active-background-color:var(--c-data-table-pagination-button-active-background-color, var(--c-primary-600));--_c-data-table-pagination-button-active-background-color-hover:var(--c-data-table-pagination-button-active-background-color-hover, var(--c-primary-400));--_c-data-table-pagination-button-active-text-color:var(--c-data-table-pagination-button-active-text-color, var(--c-white));--_c-data-table-pagination-button-background-color:var(--c-data-table-pagination-button-background-color, var(--c-transparent));--_c-data-table-pagination-button-background-color-hover:var(--c-data-table-pagination-button-background-color-hover, rgba(var(--c-primary-rgb), 0.1));--_c-data-table-pagination-button-text-color:var(--c-data-table-pagination-button-text-color, var(--_c-data-table-pagination-button-active-background-color));--_c-data-table-menu-text-color:var(--c-data-table-menu-text-color, var(--c-text-system));--_c-data-table-menu-text-color-active:var(--c-data-table-menu-text-color-active, var(--c-primary-600));--_c-data-table-menu-background-color-hover:var(--c-data-table-menu-background-color-hover, var(--c-primary-200));--_c-data-table-menu-outline-color:var(--c-data-table-menu-outline-color, var(--c-primary-600));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(--_c-data-table-checkbox-background-color-hover)}: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 .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{height:108px;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 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(--_c-data-table-pagination-button-active-background-color);--c-pagination-button-active-background-color-hover:var(--_c-data-table-pagination-button-active-background-color-hover);--c-pagination-button-active-text-color:var(--_c-data-table-pagination-button-active-text-color);--c-pagination-button-background-color:var(--_c-data-table-pagination-button-background-color);--c-pagination-button-background-color-hover:var(--_c-data-table-pagination-button-background-color-hover);--c-pagination-button-text-color:var(--_c-data-table-pagination-button-text-color);--c-pagination-menu-text-color:var(--_c-data-table-menu-text-color);--c-pagination-menu-text-color-active:var(--_c-data-table-menu-text-color-active);--c-pagination-menu-background-color-hover:var(--_c-data-table-menu-background-color-hover);--c-pagination-menu-outline-color:var(--_c-data-table-menu-text-color);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{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]){overflow-x:scroll}";
|
|
15
|
+
|
|
16
|
+
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
17
|
+
var t = {};
|
|
18
|
+
for (var p in s)
|
|
19
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
20
|
+
t[p] = s[p];
|
|
21
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
22
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
23
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
24
|
+
t[p[i]] = s[p[i]];
|
|
25
|
+
}
|
|
26
|
+
return t;
|
|
27
|
+
};
|
|
28
|
+
const CDataTable$1 = proxyCustomElement(class CDataTable extends HTMLElement {
|
|
29
|
+
constructor() {
|
|
30
|
+
super();
|
|
31
|
+
this.__registerHost();
|
|
32
|
+
this.__attachShadow();
|
|
33
|
+
this.paginate = createEvent(this, "paginate", 7);
|
|
34
|
+
this.expand = createEvent(this, "expand", 7);
|
|
35
|
+
this.sort = createEvent(this, "sort", 7);
|
|
36
|
+
this.selection = createEvent(this, "selection", 7);
|
|
37
|
+
this._debounce = null;
|
|
38
|
+
this._extraHeaders = [];
|
|
39
|
+
this._isValidated = false;
|
|
40
|
+
this._isVisible = false;
|
|
41
|
+
this._sortedData = [];
|
|
42
|
+
this.data = [];
|
|
43
|
+
this.externalData = false;
|
|
44
|
+
this.headers = [];
|
|
45
|
+
this.hideFooter = false;
|
|
46
|
+
this.footerOptions = {
|
|
47
|
+
itemsPerPageOptions: [5, 25, 50, 100],
|
|
48
|
+
hideDetails: false,
|
|
49
|
+
simple: false,
|
|
50
|
+
hideRange: false,
|
|
51
|
+
size: 'default',
|
|
52
|
+
};
|
|
53
|
+
this.loading = false;
|
|
54
|
+
this.loadingText = 'Loading data';
|
|
55
|
+
this.noDataText = 'No data';
|
|
56
|
+
this.pagination = undefined;
|
|
57
|
+
this.selectable = false;
|
|
58
|
+
this.singleSelection = false;
|
|
59
|
+
this.selectionProperty = null;
|
|
60
|
+
this.singleExpansion = false;
|
|
61
|
+
this.sortBy = null;
|
|
62
|
+
this.sortDirection = null;
|
|
63
|
+
this.stickyHeader = false;
|
|
64
|
+
this.horizontalScrolling = false;
|
|
65
|
+
this._activeRows = [];
|
|
66
|
+
this._data = [];
|
|
67
|
+
this._isIndeterminate = false;
|
|
68
|
+
this._isPaginationSimple = false;
|
|
69
|
+
this._selections = [];
|
|
70
|
+
this.hasOverflow = false;
|
|
71
|
+
this.hiddenHeaders = [];
|
|
72
|
+
this.initiallyHiddenHeaders = [];
|
|
73
|
+
this.forceRender = false;
|
|
74
|
+
this.breakpoints = [];
|
|
75
|
+
this.markedFooterWidth = 0;
|
|
76
|
+
this.parentWidth = 0;
|
|
77
|
+
this.firstCellHidden = false;
|
|
78
|
+
this.lastCellHidden = false;
|
|
79
|
+
}
|
|
80
|
+
onHiddenHeaderChange() {
|
|
81
|
+
this._getData();
|
|
82
|
+
}
|
|
83
|
+
onDataChange() {
|
|
84
|
+
this._getData();
|
|
85
|
+
this._handleInitialHeaders();
|
|
86
|
+
}
|
|
87
|
+
onHeaderChange() {
|
|
88
|
+
this._handleInitialHeaders();
|
|
89
|
+
}
|
|
90
|
+
onSingleSelectionChange() {
|
|
91
|
+
this.clearSelections();
|
|
92
|
+
}
|
|
93
|
+
onLoadingChange(loading) {
|
|
94
|
+
if (!loading) {
|
|
95
|
+
this._setIndeterminateStatus();
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
async clearSelections() {
|
|
99
|
+
this._selections = [];
|
|
100
|
+
this._emitChange();
|
|
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
|
+
if (!this.horizontalScrolling) {
|
|
114
|
+
this._rootIntersectionObserver = new IntersectionObserver(([entry]) => {
|
|
115
|
+
if (entry.isIntersecting) {
|
|
116
|
+
this._handleResponsiveHeaders();
|
|
117
|
+
this._isVisible = true;
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
this._resizeObserver = new ResizeObserver(() => {
|
|
121
|
+
this._handleResize();
|
|
122
|
+
});
|
|
123
|
+
this._rootIntersectionObserver.observe(this.element);
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
const [firstCell] = this._headerKeys;
|
|
127
|
+
const lastCell = this._headerKeys[this._headerKeys.length - 1];
|
|
128
|
+
this._firstCellIntersectionObserver = new IntersectionObserver(([entry]) => {
|
|
129
|
+
this.firstCellHidden = !entry.isIntersecting;
|
|
130
|
+
}, { threshold: 1, rootMargin: '16px', root: this.element });
|
|
131
|
+
this._lastCellIntersectionObserver = new IntersectionObserver(([entry]) => {
|
|
132
|
+
this.lastCellHidden = !entry.isIntersecting;
|
|
133
|
+
}, { threshold: 1, rootMargin: '16px', root: this.element });
|
|
134
|
+
this._resizeObserver = new ResizeObserver(() => {
|
|
135
|
+
this._handleScrollWidth();
|
|
136
|
+
});
|
|
137
|
+
this._firstCellIntersectionObserver.observe(this._tableElement.querySelector(`[data-id="${firstCell}"]`));
|
|
138
|
+
this._lastCellIntersectionObserver.observe(this._tableElement.querySelector(`[data-id="${lastCell}"]`));
|
|
139
|
+
}
|
|
140
|
+
this._resizeObserver.observe(this.element);
|
|
141
|
+
}
|
|
142
|
+
disconnectedCallback() {
|
|
143
|
+
var _a, _b, _c, _d;
|
|
144
|
+
(_a = this._resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
145
|
+
(_b = this._rootIntersectionObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
|
|
146
|
+
(_c = this._firstCellIntersectionObserver) === null || _c === void 0 ? void 0 : _c.disconnect();
|
|
147
|
+
(_d = this._lastCellIntersectionObserver) === null || _d === void 0 ? void 0 : _d.disconnect();
|
|
148
|
+
}
|
|
149
|
+
_handleInitialHeaders() {
|
|
150
|
+
this.initiallyHiddenHeaders = this.headers
|
|
151
|
+
.filter((header) => !!header.hidden)
|
|
152
|
+
.map((header) => header.key);
|
|
153
|
+
this.hiddenHeaders = [
|
|
154
|
+
...new Set([...this.hiddenHeaders, ...this.initiallyHiddenHeaders]),
|
|
155
|
+
];
|
|
156
|
+
}
|
|
157
|
+
_handleHeaderVisibility(header, rootWidth, x) {
|
|
158
|
+
var _a;
|
|
159
|
+
const index = this._headers.findIndex((h) => h.key === header.dataset.id);
|
|
160
|
+
const position = header.getBoundingClientRect();
|
|
161
|
+
const isFullyVisible = position.right - x <= rootWidth;
|
|
162
|
+
const isLastVisibleHeader = header.dataset.id === Array.from(this._headerRefs.keys()).at(0);
|
|
163
|
+
const isPinned = (_a = this._headers[index]) === null || _a === void 0 ? void 0 : _a.pinned;
|
|
164
|
+
if (!isFullyVisible && isPinned && index >= 1) {
|
|
165
|
+
const nextUnpinnedHeader = Array.from(this._headerRefs.values())
|
|
166
|
+
.reverse()
|
|
167
|
+
.find((hdr) => {
|
|
168
|
+
var _a;
|
|
169
|
+
if (!hdr)
|
|
170
|
+
return false;
|
|
171
|
+
return !((_a = this._headers.find((h) => h.key === hdr.dataset.id)) === null || _a === void 0 ? void 0 : _a.pinned);
|
|
172
|
+
});
|
|
173
|
+
this.hiddenHeaders = [
|
|
174
|
+
...new Set([
|
|
175
|
+
...this.initiallyHiddenHeaders,
|
|
176
|
+
...this.hiddenHeaders,
|
|
177
|
+
(nextUnpinnedHeader || header).dataset.id,
|
|
178
|
+
]),
|
|
179
|
+
];
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
if (!isFullyVisible && !isLastVisibleHeader) {
|
|
183
|
+
this.hiddenHeaders = [
|
|
184
|
+
...new Set([
|
|
185
|
+
...this.initiallyHiddenHeaders,
|
|
186
|
+
...this.hiddenHeaders,
|
|
187
|
+
header.dataset.id,
|
|
188
|
+
]),
|
|
189
|
+
];
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
_handleResponsiveHeaders() {
|
|
193
|
+
const { width: tableWidth } = this._tableElement.getBoundingClientRect();
|
|
194
|
+
const { width: rootWidth, x } = this.element.getBoundingClientRect();
|
|
195
|
+
if (this._debounce !== null) {
|
|
196
|
+
clearTimeout(this._debounce);
|
|
197
|
+
this._debounce = null;
|
|
198
|
+
}
|
|
199
|
+
if (rootWidth < tableWidth) {
|
|
200
|
+
this.breakpoints = [...new Set([...this.breakpoints, tableWidth])];
|
|
201
|
+
setTimeout(() => {
|
|
202
|
+
for (const header of this._headerRefs.values()) {
|
|
203
|
+
if (header) {
|
|
204
|
+
this._handleHeaderVisibility(header, rootWidth, x);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
this._debounce = setTimeout(() => {
|
|
208
|
+
var _a, _b;
|
|
209
|
+
const footerWidth = ((_b = (_a = this._footerElement) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) === null || _b === void 0 ? void 0 : _b.width) || 0;
|
|
210
|
+
if (rootWidth < footerWidth) {
|
|
211
|
+
this.markedFooterWidth = footerWidth;
|
|
212
|
+
this._isPaginationSimple = true;
|
|
213
|
+
}
|
|
214
|
+
}, 200);
|
|
215
|
+
}, 0);
|
|
216
|
+
}
|
|
217
|
+
else if (this.breakpoints.length > 0 &&
|
|
218
|
+
tableWidth >= this.breakpoints[this.breakpoints.length - 1]) {
|
|
219
|
+
this.breakpoints.pop();
|
|
220
|
+
const displayHeader = this.headers.find((header) => this.hiddenHeaders.includes(header.key));
|
|
221
|
+
if (!!displayHeader) {
|
|
222
|
+
const headerIndex = this.hiddenHeaders.indexOf(displayHeader.key);
|
|
223
|
+
this.hiddenHeaders.splice(headerIndex, 1);
|
|
224
|
+
this.hiddenHeaders = [
|
|
225
|
+
...new Set([...this.hiddenHeaders, ...this.initiallyHiddenHeaders]),
|
|
226
|
+
];
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
this._debounce = setTimeout(() => {
|
|
230
|
+
if (rootWidth >= this.markedFooterWidth && this.markedFooterWidth > 0) {
|
|
231
|
+
this._isPaginationSimple = false;
|
|
232
|
+
}
|
|
233
|
+
}, 200);
|
|
234
|
+
}
|
|
235
|
+
_addHeaderRef(key, el) {
|
|
236
|
+
if (!this._headerRefs) {
|
|
237
|
+
this._headerRefs = new Map([[key, el]]);
|
|
238
|
+
return;
|
|
239
|
+
}
|
|
240
|
+
this._headerRefs.set(key, el);
|
|
241
|
+
}
|
|
242
|
+
_getData() {
|
|
243
|
+
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); });
|
|
244
|
+
const extraCells = this._extraHeaders.reduce((cells, header) => (Object.assign(Object.assign({}, cells), { [header.key]: {
|
|
245
|
+
value: null,
|
|
246
|
+
} })), {});
|
|
247
|
+
const items = this.data
|
|
248
|
+
.map((row) => (Object.assign(Object.assign({}, row), extraCells)))
|
|
249
|
+
.reduce((data, cell) => {
|
|
250
|
+
const item = {
|
|
251
|
+
_hiddenData: [],
|
|
252
|
+
};
|
|
253
|
+
Object.keys(cell).forEach((key) => {
|
|
254
|
+
item[key] = cell[key];
|
|
255
|
+
});
|
|
256
|
+
this.hiddenHeaders.forEach((header) => {
|
|
257
|
+
const cellData = this.headers.find((h) => h.key === header);
|
|
258
|
+
item._hiddenData.push({
|
|
259
|
+
id: cellData === null || cellData === void 0 ? void 0 : cellData.key,
|
|
260
|
+
key: cellData === null || cellData === void 0 ? void 0 : cellData.value,
|
|
261
|
+
value: cell[header],
|
|
262
|
+
});
|
|
263
|
+
});
|
|
264
|
+
data.push(item);
|
|
265
|
+
return data;
|
|
266
|
+
}, []);
|
|
267
|
+
this._data = this._sortData(items);
|
|
268
|
+
this.pagination = Object.assign(Object.assign({}, this.pagination), { itemCount: this.data.length });
|
|
269
|
+
this._validateProps(this._data[0]);
|
|
270
|
+
this._handleScrollWidth();
|
|
271
|
+
requestAnimationFrame(() => {
|
|
272
|
+
this._handleResize();
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
_getSelectionValue(row, index) {
|
|
276
|
+
var _a;
|
|
277
|
+
return !!this.selectionProperty
|
|
278
|
+
? ((_a = row[this.selectionProperty]) === null || _a === void 0 ? void 0 : _a.value) || index
|
|
279
|
+
: index;
|
|
280
|
+
}
|
|
281
|
+
get _headers() {
|
|
282
|
+
return this.headers
|
|
283
|
+
.map((header) => (Object.assign(Object.assign({}, header), { pinned: !!header.pinned })))
|
|
284
|
+
.filter((header) => !this.hiddenHeaders.includes(header.key) && !header.hidden);
|
|
285
|
+
}
|
|
286
|
+
get _headerKeys() {
|
|
287
|
+
return this._headers.map((header) => header.key);
|
|
288
|
+
}
|
|
289
|
+
get _hasHiddenData() {
|
|
290
|
+
return !!this.hiddenHeaders.length;
|
|
291
|
+
}
|
|
292
|
+
_emitChange() {
|
|
293
|
+
this.selection.emit(this._selections);
|
|
294
|
+
}
|
|
295
|
+
_setIndeterminateStatus() {
|
|
296
|
+
requestAnimationFrame(() => {
|
|
297
|
+
this._isIndeterminate = this._isPageIndeterminate();
|
|
298
|
+
this._refresh();
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
_sortData(data) {
|
|
302
|
+
var _a, _b, _c, _d;
|
|
303
|
+
if (!this.sortBy || this.externalData)
|
|
304
|
+
return data;
|
|
305
|
+
const sorted = data.sort((a, b) => {
|
|
306
|
+
const valueA = a[this.sortBy].value;
|
|
307
|
+
const valueB = b[this.sortBy].value;
|
|
308
|
+
if (typeof valueA === 'string') {
|
|
309
|
+
if (this.sortDirection === 'asc') {
|
|
310
|
+
return valueA.toLowerCase().localeCompare(valueB.toLowerCase());
|
|
311
|
+
}
|
|
312
|
+
return valueB.toLowerCase().localeCompare(valueA.toLowerCase());
|
|
313
|
+
}
|
|
314
|
+
if (typeof valueA === 'number') {
|
|
315
|
+
if (this.sortDirection === 'asc') {
|
|
316
|
+
return valueA - valueB;
|
|
317
|
+
}
|
|
318
|
+
return valueB - valueA;
|
|
319
|
+
}
|
|
320
|
+
});
|
|
321
|
+
this._sortedData = sorted.map((row) => {
|
|
322
|
+
const { _hiddenData } = row, _rowData = __rest(row, ["_hiddenData"]);
|
|
323
|
+
const hiddenData = _hiddenData.reduce((items, item) => {
|
|
324
|
+
var _a;
|
|
325
|
+
items[item.id] =
|
|
326
|
+
item.value.plainTextValue ||
|
|
327
|
+
((_a = item.value.formattedValue) === null || _a === void 0 ? void 0 : _a.trim()) ||
|
|
328
|
+
item.value.value;
|
|
329
|
+
return items;
|
|
330
|
+
}, {});
|
|
331
|
+
const rowData = Object.entries(_rowData).reduce((items, [key, item]) => {
|
|
332
|
+
var _a;
|
|
333
|
+
items[key] =
|
|
334
|
+
item.plainTextValue ||
|
|
335
|
+
((_a = item.formattedValue) === null || _a === void 0 ? void 0 : _a.toString().trim()) ||
|
|
336
|
+
item.value;
|
|
337
|
+
return items;
|
|
338
|
+
}, {});
|
|
339
|
+
return Object.assign(Object.assign({}, rowData), hiddenData);
|
|
340
|
+
});
|
|
341
|
+
return !this.hideFooter
|
|
342
|
+
? 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)
|
|
343
|
+
: sorted;
|
|
344
|
+
}
|
|
345
|
+
_handleScrollWidth() {
|
|
346
|
+
this.parentWidth = this.element.getBoundingClientRect().width;
|
|
347
|
+
}
|
|
348
|
+
_handleResize() {
|
|
349
|
+
if (this._isVisible) {
|
|
350
|
+
this._handleResponsiveHeaders();
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
_getIndex(index) {
|
|
354
|
+
let realIndex = index;
|
|
355
|
+
if (!this.selectionProperty &&
|
|
356
|
+
!!this.pagination &&
|
|
357
|
+
typeof realIndex === 'number') {
|
|
358
|
+
realIndex += this.pagination.startFrom;
|
|
359
|
+
if (this.sortDirection === 'desc') {
|
|
360
|
+
realIndex = this.pagination.itemCount - 1 - realIndex;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
return realIndex;
|
|
364
|
+
}
|
|
365
|
+
_getSelectionsForPage() {
|
|
366
|
+
return this._selections.filter((selection) => this._data
|
|
367
|
+
.map((row, index) => this._getSelectionValue(row, this._getIndex(index)))
|
|
368
|
+
.includes(selection));
|
|
369
|
+
}
|
|
370
|
+
_hasSelectionsOnPage() {
|
|
371
|
+
return this._getSelectionsForPage().length > 0;
|
|
372
|
+
}
|
|
373
|
+
_isPageIndeterminate() {
|
|
374
|
+
const selectionsInPage = this._getSelectionsForPage();
|
|
375
|
+
return (this._hasSelectionsOnPage() && selectionsInPage.length < this._data.length);
|
|
376
|
+
}
|
|
377
|
+
_onHeadingSelection(event) {
|
|
378
|
+
event === null || event === void 0 ? void 0 : event.stopPropagation();
|
|
379
|
+
event === null || event === void 0 ? void 0 : event.preventDefault();
|
|
380
|
+
if (event instanceof KeyboardEvent &&
|
|
381
|
+
event.type === 'keyup' &&
|
|
382
|
+
event.key !== ' ') {
|
|
383
|
+
return;
|
|
384
|
+
}
|
|
385
|
+
if (this._debounce !== null) {
|
|
386
|
+
clearTimeout(this._debounce);
|
|
387
|
+
this._debounce = null;
|
|
388
|
+
}
|
|
389
|
+
this._debounce = setTimeout(() => {
|
|
390
|
+
if (this._data.length === this._getSelectionsForPage().length) {
|
|
391
|
+
this._selections = [
|
|
392
|
+
...this._selections.filter((selection) => !this._data
|
|
393
|
+
.map((row, index) => this._getSelectionValue(row, this._getIndex(index)))
|
|
394
|
+
.includes(selection)),
|
|
395
|
+
];
|
|
396
|
+
this._setIndeterminateStatus();
|
|
397
|
+
this._emitChange();
|
|
398
|
+
return;
|
|
399
|
+
}
|
|
400
|
+
this._selections = [
|
|
401
|
+
...new Set([
|
|
402
|
+
...this._selections,
|
|
403
|
+
...this._data.map((row, index) => this._getSelectionValue(row, this._getIndex(index))),
|
|
404
|
+
]),
|
|
405
|
+
];
|
|
406
|
+
this._setIndeterminateStatus();
|
|
407
|
+
this._emitChange();
|
|
408
|
+
}, 200);
|
|
409
|
+
}
|
|
410
|
+
_onPaginationChange(event) {
|
|
411
|
+
if (this.externalData) {
|
|
412
|
+
this.paginate.emit(event.detail);
|
|
413
|
+
return;
|
|
414
|
+
}
|
|
415
|
+
this.pagination = Object.assign(Object.assign({}, this.pagination), event.detail);
|
|
416
|
+
this._setIndeterminateStatus();
|
|
417
|
+
this._getData();
|
|
418
|
+
}
|
|
419
|
+
_onSelection(value) {
|
|
420
|
+
if (this.singleSelection) {
|
|
421
|
+
this._selections = [value];
|
|
422
|
+
this._emitChange();
|
|
423
|
+
this._refresh();
|
|
424
|
+
return;
|
|
425
|
+
}
|
|
426
|
+
if (this._selections.includes(value)) {
|
|
427
|
+
this._selections = this._selections.filter((selection) => selection !== value);
|
|
428
|
+
}
|
|
429
|
+
else {
|
|
430
|
+
this._selections = [...this._selections, value];
|
|
431
|
+
}
|
|
432
|
+
this._emitChange();
|
|
433
|
+
this._setIndeterminateStatus();
|
|
434
|
+
}
|
|
435
|
+
_onSort(key) {
|
|
436
|
+
if (this.sortBy === key) {
|
|
437
|
+
this.sortDirection = this.sortDirection === 'asc' ? 'desc' : 'asc';
|
|
438
|
+
}
|
|
439
|
+
else {
|
|
440
|
+
this.sortDirection = 'asc';
|
|
441
|
+
}
|
|
442
|
+
this.sortBy = key;
|
|
443
|
+
this.sort.emit({ sortBy: this.sortBy, direction: this.sortDirection });
|
|
444
|
+
this._getData();
|
|
445
|
+
this._setIndeterminateStatus();
|
|
446
|
+
this._refresh();
|
|
447
|
+
}
|
|
448
|
+
_onToggleAdditionalData(event, value, row) {
|
|
449
|
+
if (!this._hasHiddenData ||
|
|
450
|
+
event.target.tagName === 'C-CHECKBOX')
|
|
451
|
+
return;
|
|
452
|
+
const isActive = this.singleExpansion
|
|
453
|
+
? this._activeRows[0] === value
|
|
454
|
+
: this._activeRows.includes(value);
|
|
455
|
+
const { _hiddenData } = row, data = __rest(row, ["_hiddenData"]);
|
|
456
|
+
Object.keys(data).forEach((key) => {
|
|
457
|
+
data[key] = data[key].value;
|
|
458
|
+
});
|
|
459
|
+
_hiddenData.forEach((hiddenRow) => {
|
|
460
|
+
data[hiddenRow.id] = hiddenRow.value.value;
|
|
461
|
+
});
|
|
462
|
+
this.expand.emit({
|
|
463
|
+
active: !isActive,
|
|
464
|
+
row: data,
|
|
465
|
+
});
|
|
466
|
+
if (this.singleExpansion) {
|
|
467
|
+
this._activeRows = isActive ? [] : [value];
|
|
468
|
+
return;
|
|
469
|
+
}
|
|
470
|
+
if (isActive) {
|
|
471
|
+
this._activeRows = this._activeRows.filter((i) => i !== value);
|
|
472
|
+
return;
|
|
473
|
+
}
|
|
474
|
+
this._activeRows = [...this._activeRows, value];
|
|
475
|
+
}
|
|
476
|
+
_handleKeyUp(event, value, row) {
|
|
477
|
+
event.preventDefault();
|
|
478
|
+
if (event.key === 'Enter') {
|
|
479
|
+
this._onToggleAdditionalData(event, value, row);
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
_refresh() {
|
|
483
|
+
this.forceRender = !this.forceRender;
|
|
484
|
+
}
|
|
485
|
+
_renderAdditioanlDataRow(rowIndex, rowData = {}) {
|
|
486
|
+
return (this._hasHiddenData && (h("tr", { class: {
|
|
487
|
+
'additional-data': true,
|
|
488
|
+
active: this._activeRows.includes(rowIndex),
|
|
489
|
+
} }, h("td", { colSpan: 100 }, h("div", null, h("ul", null, this._renderHiddenCells(rowIndex), this._renderHiddenHeaderChildren(rowIndex, rowData)))))));
|
|
490
|
+
}
|
|
491
|
+
_renderCellData(key, options, colIndex, rowIndex) {
|
|
492
|
+
var _a;
|
|
493
|
+
const component = options.component || ((_a = this._headers[colIndex]) === null || _a === void 0 ? void 0 : _a.component);
|
|
494
|
+
const Tag = (component === null || component === void 0 ? void 0 : component.tag) || null;
|
|
495
|
+
const injectValue = !!(component === null || component === void 0 ? void 0 : component.injectValue);
|
|
496
|
+
const params = (component === null || component === void 0 ? void 0 : component.params) || {};
|
|
497
|
+
if (injectValue) {
|
|
498
|
+
params.value = options.value;
|
|
499
|
+
}
|
|
500
|
+
return !!Tag ? (h(Tag, Object.assign({}, params, { onClick: (event) => {
|
|
501
|
+
var _a;
|
|
502
|
+
(_a = params === null || params === void 0 ? void 0 : params.onClick) === null || _a === void 0 ? void 0 : _a.call(params, {
|
|
503
|
+
index: rowIndex,
|
|
504
|
+
value: options.value,
|
|
505
|
+
data: this.data[rowIndex],
|
|
506
|
+
event,
|
|
507
|
+
key,
|
|
508
|
+
});
|
|
509
|
+
} }), options.formattedValue || options.value)) : (options.formattedValue || options.value);
|
|
510
|
+
}
|
|
511
|
+
_renderCellChildren(options, index, key, data) {
|
|
512
|
+
return options.children.map((child) => {
|
|
513
|
+
var _a, _b, _c;
|
|
514
|
+
const Tag = (_a = child.component) === null || _a === void 0 ? void 0 : _a.tag;
|
|
515
|
+
const params = ((_b = child.component) === null || _b === void 0 ? void 0 : _b.params) || {};
|
|
516
|
+
const { _hiddenData = [] } = data, rest = __rest(data, ["_hiddenData"]);
|
|
517
|
+
const flatData = Object.assign(Object.assign({}, rest), _hiddenData.reduce((obj, row) => {
|
|
518
|
+
obj[row.id] = row.value;
|
|
519
|
+
return obj;
|
|
520
|
+
}, {}));
|
|
521
|
+
return !!Tag ? (h(Tag, Object.assign({}, params, (!(params === null || params === void 0 ? void 0 : params.onClick)
|
|
522
|
+
? {}
|
|
523
|
+
: {
|
|
524
|
+
onClick: (event) => {
|
|
525
|
+
params.onClick({
|
|
526
|
+
value: options.value,
|
|
527
|
+
index,
|
|
528
|
+
event,
|
|
529
|
+
key,
|
|
530
|
+
data: flatData,
|
|
531
|
+
});
|
|
532
|
+
},
|
|
533
|
+
})), !!((_c = child.children) === null || _c === void 0 ? void 0 : _c.length)
|
|
534
|
+
? this._renderCellChildren(child, index, key, data)
|
|
535
|
+
: child.value)) : (child.value);
|
|
536
|
+
});
|
|
537
|
+
}
|
|
538
|
+
_renderExpansionIndicator(rowIndex, rowData = {}) {
|
|
539
|
+
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 }))))));
|
|
540
|
+
}
|
|
541
|
+
_renderHiddenCells(index) {
|
|
542
|
+
return this._data[index]._hiddenData
|
|
543
|
+
.filter((d) => !this._extraHeaders.find((h) => h.key === d.id))
|
|
544
|
+
.map(({ id, key, value: options }) => {
|
|
545
|
+
const index = this._headers.findIndex((h) => h.key === id);
|
|
546
|
+
return (h("li", null, !!key && (h("div", { class: "title" }, h("span", null, key, ":"), this._renderCellData(id, options, index, index))), !!options.children && (h("div", { class: "children" }, this._renderCellChildren(options, index, id, {})))));
|
|
547
|
+
});
|
|
548
|
+
}
|
|
549
|
+
_renderHiddenHeaderChildren(index, rowData) {
|
|
550
|
+
return this._data[index]._hiddenData.map(({ id, key }) => {
|
|
551
|
+
var _a;
|
|
552
|
+
const headerIndex = this.headers.findIndex((h) => h.key === id);
|
|
553
|
+
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)))));
|
|
554
|
+
});
|
|
555
|
+
}
|
|
556
|
+
_renderLoaderRow() {
|
|
557
|
+
return (h("tr", null, h("td", { class: "loader", colSpan: 100 }, this.loading && (h("div", { class: "c-data-table__loader" }, h("div", { class: "loading-bar" }))))));
|
|
558
|
+
}
|
|
559
|
+
_renderRows() {
|
|
560
|
+
return (!!this._data.length &&
|
|
561
|
+
Object.values(this._data).map((rowData, rowIndex) => {
|
|
562
|
+
let selectionValue = this._getSelectionValue(rowData, rowIndex);
|
|
563
|
+
if (!this.selectionProperty && typeof selectionValue === 'number') {
|
|
564
|
+
selectionValue = this._getIndex(selectionValue);
|
|
565
|
+
}
|
|
566
|
+
const isSelected = !!this._selections.includes(selectionValue);
|
|
567
|
+
return (h(Fragment, null, h("tr", { class: {
|
|
568
|
+
active: this._activeRows.includes(rowIndex),
|
|
569
|
+
parent: this._hasHiddenData,
|
|
570
|
+
selected: isSelected,
|
|
571
|
+
}, onClick: (event) => this._onToggleAdditionalData(event, rowIndex, rowData) }, this._renderSelectionCell(isSelected, selectionValue), this._renderExpansionIndicator(rowIndex, rowData), this._renderTableCells(rowIndex, rowData)), this._renderAdditioanlDataRow(rowIndex, rowData)));
|
|
572
|
+
}));
|
|
573
|
+
}
|
|
574
|
+
_renderSelectionCell(isSelected, selectionValue) {
|
|
575
|
+
return (this.selectable && (h("td", null, h("div", { class: "selection" }, h("c-checkbox", { value: isSelected, "hide-details": true, onChangeValue: () => this._onSelection(selectionValue) })))));
|
|
576
|
+
}
|
|
577
|
+
_renderSortIndicator(key) {
|
|
578
|
+
let iconPath = mdiSwapVertical;
|
|
579
|
+
if (key === this.sortBy && this.sortDirection === 'asc') {
|
|
580
|
+
iconPath = mdiArrowUpThin;
|
|
581
|
+
}
|
|
582
|
+
if (key === this.sortBy && this.sortDirection === 'desc') {
|
|
583
|
+
iconPath = mdiArrowDownThin;
|
|
584
|
+
}
|
|
585
|
+
return (h("svg", { width: "24", height: "24", viewBox: "0 0 24 24", tabindex: 0 }, h("path", { d: iconPath })));
|
|
586
|
+
}
|
|
587
|
+
_renderStatusTextRow() {
|
|
588
|
+
return (!this._data.length && (h("tr", null, h("td", { class: "info", colSpan: 100 }, h("div", null, this.loading ? this.loadingText : this.noDataText)))));
|
|
589
|
+
}
|
|
590
|
+
_renderTableBody() {
|
|
591
|
+
return (h("tbody", null, this._renderLoaderRow(), this._renderStatusTextRow(), this._renderRows()));
|
|
592
|
+
}
|
|
593
|
+
_renderTableCell(key, options, colIndex, rowIndex, rowData = {}) {
|
|
594
|
+
var _a;
|
|
595
|
+
const header = this.headers.find((header) => header.key === key);
|
|
596
|
+
const isHidden = this.hiddenHeaders.includes(key);
|
|
597
|
+
return (!!header &&
|
|
598
|
+
!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)))))));
|
|
599
|
+
}
|
|
600
|
+
_renderTableCells(rowIndex, rowData = {}) {
|
|
601
|
+
return this._sortCellProperties(rowData).map(([key, options], index) => this._renderTableCell(key, options, index, rowIndex, rowData));
|
|
602
|
+
}
|
|
603
|
+
_renderTableFooter() {
|
|
604
|
+
const footerStyles = this.horizontalScrolling
|
|
605
|
+
? {
|
|
606
|
+
maxWidth: `${this.parentWidth}px`,
|
|
607
|
+
position: 'sticky',
|
|
608
|
+
left: '0',
|
|
609
|
+
}
|
|
610
|
+
: {};
|
|
611
|
+
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) }))))))));
|
|
612
|
+
}
|
|
613
|
+
_renderTableHeader() {
|
|
614
|
+
const indicatorRowStyles = this.horizontalScrolling
|
|
615
|
+
? {
|
|
616
|
+
width: `${this.parentWidth - 8}px`,
|
|
617
|
+
position: 'sticky',
|
|
618
|
+
left: '4px',
|
|
619
|
+
}
|
|
620
|
+
: {};
|
|
621
|
+
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 &&
|
|
622
|
+
this._headers.map((header) => {
|
|
623
|
+
const isSortable = !!header.sortable || typeof header.sortable === 'undefined';
|
|
624
|
+
const params = Object.assign(Object.assign({ 'data-id': header.key, ref: (el) => this._addHeaderRef(header.key, el) }, (!!header && {
|
|
625
|
+
style: Object.assign({}, (header.width && { minWidth: header.width })),
|
|
626
|
+
})), (isSortable && {
|
|
627
|
+
onClick: () => this._onSort(header.key),
|
|
628
|
+
onKeyUp: () => this._onSort(header.key),
|
|
629
|
+
}));
|
|
630
|
+
return (h("th", Object.assign({}, params), h("div", { class: { sortable: isSortable } }, header.value, isSortable && this._renderSortIndicator(header.key))));
|
|
631
|
+
})), 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 })))))))));
|
|
632
|
+
}
|
|
633
|
+
_scrollLeft() {
|
|
634
|
+
const leftBorder = this.element.getBoundingClientRect().left;
|
|
635
|
+
const hiddenHeaderKeys = this._headerKeys.filter((key) => {
|
|
636
|
+
var _a;
|
|
637
|
+
const headerCellLeftBorder = (_a = this._tableElement
|
|
638
|
+
.querySelector(`[data-id="${key}"]`)) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().left;
|
|
639
|
+
return headerCellLeftBorder < leftBorder - 2;
|
|
640
|
+
});
|
|
641
|
+
if (hiddenHeaderKeys.length) {
|
|
642
|
+
if (hiddenHeaderKeys.length === 1) {
|
|
643
|
+
this._tableElement.scrollIntoView({
|
|
644
|
+
behavior: 'smooth',
|
|
645
|
+
block: 'nearest',
|
|
646
|
+
inline: 'start',
|
|
647
|
+
});
|
|
648
|
+
return;
|
|
649
|
+
}
|
|
650
|
+
this._tableElement
|
|
651
|
+
.querySelector(`[data-id="${hiddenHeaderKeys[hiddenHeaderKeys.length - 1]}"]`)
|
|
652
|
+
.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
_scrollRight() {
|
|
656
|
+
const rightBorder = this.element.getBoundingClientRect().right;
|
|
657
|
+
const hiddenHeaderKeys = this._headerKeys.filter((key) => {
|
|
658
|
+
var _a;
|
|
659
|
+
const headerCellRightBorder = (_a = this._tableElement
|
|
660
|
+
.querySelector(`[data-id="${key}"]`)) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().right;
|
|
661
|
+
return headerCellRightBorder > rightBorder + 2;
|
|
662
|
+
});
|
|
663
|
+
if (hiddenHeaderKeys.length) {
|
|
664
|
+
this._tableElement
|
|
665
|
+
.querySelector(`[data-id="${hiddenHeaderKeys[0]}"]`)
|
|
666
|
+
.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
_sortCellProperties(row) {
|
|
670
|
+
const sorted = Object.entries(row)
|
|
671
|
+
.filter(([key]) => ![...this.hiddenHeaders, '_hiddenData'].includes(key))
|
|
672
|
+
.sort(([keyA], [keyB]) => this._headerKeys.indexOf(keyA) - this._headerKeys.indexOf(keyB));
|
|
673
|
+
return sorted;
|
|
674
|
+
}
|
|
675
|
+
_validateProps(data) {
|
|
676
|
+
if (!!data &&
|
|
677
|
+
!this._isValidated &&
|
|
678
|
+
this.selectionProperty !== null &&
|
|
679
|
+
!data[this.selectionProperty]) {
|
|
680
|
+
console.warn(`[C-DATA-TABLE] Invalid selection property '${this.selectionProperty}'. Using row index as a fallback. This may lead to unexpected behavior.`);
|
|
681
|
+
this._isValidated = true;
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
render() {
|
|
685
|
+
const tableClasses = {
|
|
686
|
+
'c-data-table': true,
|
|
687
|
+
'c-data-table--hoverable': this.selectable || this._hasHiddenData,
|
|
688
|
+
'c-data-table--scrollable': this.horizontalScrolling,
|
|
689
|
+
};
|
|
690
|
+
return (h(Host, null, h("table", { class: tableClasses, ref: (el) => (this._tableElement = el) }, h("colgroup", null, [
|
|
691
|
+
...(this.selectable ? ['_selection'] : []),
|
|
692
|
+
...(this.hiddenHeaders.length ? ['_hidden'] : []),
|
|
693
|
+
...this._headerKeys,
|
|
694
|
+
].map((key) => (h("col", { class: this.sortBy === key && 'sorted-column' })))), this._renderTableHeader(), this._renderTableBody(), !this.hideFooter && this._renderTableFooter())));
|
|
695
|
+
}
|
|
696
|
+
get element() { return this; }
|
|
697
|
+
static get watchers() { return {
|
|
698
|
+
"hiddenHeaders": ["onHiddenHeaderChange"],
|
|
699
|
+
"data": ["onDataChange"],
|
|
700
|
+
"headers": ["onHeaderChange"],
|
|
701
|
+
"singleSelection": ["onSingleSelectionChange"],
|
|
702
|
+
"loading": ["onLoadingChange"]
|
|
703
|
+
}; }
|
|
704
|
+
static get style() { return cDataTableCss; }
|
|
705
|
+
}, [1, "c-data-table", {
|
|
706
|
+
"data": [16],
|
|
707
|
+
"externalData": [4, "external-data"],
|
|
708
|
+
"headers": [16],
|
|
709
|
+
"hideFooter": [4, "hide-footer"],
|
|
710
|
+
"footerOptions": [16],
|
|
711
|
+
"loading": [4],
|
|
712
|
+
"loadingText": [1, "loading-text"],
|
|
713
|
+
"noDataText": [1, "no-data-text"],
|
|
714
|
+
"pagination": [1040],
|
|
715
|
+
"selectable": [4],
|
|
716
|
+
"singleSelection": [4, "single-selection"],
|
|
717
|
+
"selectionProperty": [1, "selection-property"],
|
|
718
|
+
"singleExpansion": [4, "single-expansion"],
|
|
719
|
+
"sortBy": [1032, "sort-by"],
|
|
720
|
+
"sortDirection": [1025, "sort-direction"],
|
|
721
|
+
"stickyHeader": [4, "sticky-header"],
|
|
722
|
+
"horizontalScrolling": [4, "horizontal-scrolling"],
|
|
723
|
+
"_activeRows": [32],
|
|
724
|
+
"_data": [32],
|
|
725
|
+
"_isIndeterminate": [32],
|
|
726
|
+
"_isPaginationSimple": [32],
|
|
727
|
+
"_selections": [32],
|
|
728
|
+
"hasOverflow": [32],
|
|
729
|
+
"hiddenHeaders": [32],
|
|
730
|
+
"initiallyHiddenHeaders": [32],
|
|
731
|
+
"forceRender": [32],
|
|
732
|
+
"breakpoints": [32],
|
|
733
|
+
"markedFooterWidth": [32],
|
|
734
|
+
"parentWidth": [32],
|
|
735
|
+
"firstCellHidden": [32],
|
|
736
|
+
"lastCellHidden": [32],
|
|
737
|
+
"clearSelections": [64],
|
|
738
|
+
"getData": [64]
|
|
739
|
+
}, undefined, {
|
|
740
|
+
"hiddenHeaders": ["onHiddenHeaderChange"],
|
|
741
|
+
"data": ["onDataChange"],
|
|
742
|
+
"headers": ["onHeaderChange"],
|
|
743
|
+
"singleSelection": ["onSingleSelectionChange"],
|
|
744
|
+
"loading": ["onLoadingChange"]
|
|
745
|
+
}]);
|
|
746
|
+
function defineCustomElement$1() {
|
|
747
|
+
if (typeof customElements === "undefined") {
|
|
748
|
+
return;
|
|
749
|
+
}
|
|
750
|
+
const components = ["c-data-table", "c-badge", "c-checkbox", "c-icon", "c-icon-button", "c-menu", "c-menu-items", "c-pagination", "c-ripple", "c-spacer", "c-spinner"];
|
|
751
|
+
components.forEach(tagName => { switch (tagName) {
|
|
752
|
+
case "c-data-table":
|
|
753
|
+
if (!customElements.get(tagName)) {
|
|
754
|
+
customElements.define(tagName, CDataTable$1);
|
|
755
|
+
}
|
|
756
|
+
break;
|
|
757
|
+
case "c-badge":
|
|
758
|
+
if (!customElements.get(tagName)) {
|
|
759
|
+
defineCustomElement$b();
|
|
760
|
+
}
|
|
761
|
+
break;
|
|
762
|
+
case "c-checkbox":
|
|
763
|
+
if (!customElements.get(tagName)) {
|
|
764
|
+
defineCustomElement$a();
|
|
765
|
+
}
|
|
766
|
+
break;
|
|
767
|
+
case "c-icon":
|
|
768
|
+
if (!customElements.get(tagName)) {
|
|
769
|
+
defineCustomElement$9();
|
|
770
|
+
}
|
|
771
|
+
break;
|
|
772
|
+
case "c-icon-button":
|
|
773
|
+
if (!customElements.get(tagName)) {
|
|
774
|
+
defineCustomElement$8();
|
|
775
|
+
}
|
|
776
|
+
break;
|
|
777
|
+
case "c-menu":
|
|
778
|
+
if (!customElements.get(tagName)) {
|
|
779
|
+
defineCustomElement$7();
|
|
780
|
+
}
|
|
781
|
+
break;
|
|
782
|
+
case "c-menu-items":
|
|
783
|
+
if (!customElements.get(tagName)) {
|
|
784
|
+
defineCustomElement$6();
|
|
785
|
+
}
|
|
786
|
+
break;
|
|
787
|
+
case "c-pagination":
|
|
788
|
+
if (!customElements.get(tagName)) {
|
|
789
|
+
defineCustomElement$5();
|
|
790
|
+
}
|
|
791
|
+
break;
|
|
792
|
+
case "c-ripple":
|
|
793
|
+
if (!customElements.get(tagName)) {
|
|
794
|
+
defineCustomElement$4();
|
|
795
|
+
}
|
|
796
|
+
break;
|
|
797
|
+
case "c-spacer":
|
|
798
|
+
if (!customElements.get(tagName)) {
|
|
799
|
+
defineCustomElement$3();
|
|
800
|
+
}
|
|
801
|
+
break;
|
|
802
|
+
case "c-spinner":
|
|
803
|
+
if (!customElements.get(tagName)) {
|
|
804
|
+
defineCustomElement$2();
|
|
805
|
+
}
|
|
806
|
+
break;
|
|
807
|
+
} });
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
const CDataTable = CDataTable$1;
|
|
811
|
+
const defineCustomElement = defineCustomElement$1;
|
|
812
|
+
|
|
813
|
+
export { CDataTable, defineCustomElement };
|
|
814
|
+
|
|
815
|
+
//# sourceMappingURL=c-data-table.js.map
|