@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,293 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { h as mdiChevronLeft, m as mdiChevronRight, l as mdiDotsHorizontal } from './mdi.js';
|
|
3
|
+
import { d as defineCustomElement$7 } from './c-badge2.js';
|
|
4
|
+
import { d as defineCustomElement$6 } from './c-icon2.js';
|
|
5
|
+
import { d as defineCustomElement$5 } from './c-icon-button2.js';
|
|
6
|
+
import { d as defineCustomElement$4 } from './c-menu2.js';
|
|
7
|
+
import { d as defineCustomElement$3 } from './c-menu-items2.js';
|
|
8
|
+
import { d as defineCustomElement$2 } from './c-ripple2.js';
|
|
9
|
+
import { d as defineCustomElement$1 } from './c-spinner2.js';
|
|
10
|
+
|
|
11
|
+
const cPaginationCss = "html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-pagination-button-active-background-color:var(--c-pagination-button-active-background-color, var(--c-primary-600));--_c-pagination-button-active-background-color-hover:var(--c-pagination-button-active-background-color-hover, var(--c-primary-400));--_c-pagination-button-active-text-color:var(--c-pagination-button-active-text-color, var(--c-white));--_c-pagination-button-background-color:var(--c-pagination-button-background-color, var(--c-transparent));--_c-pagination-button-background-color-hover:var(--c-pagination-button-background-color-hover, rgba(var(--c-primary-rgb), 0.1));--_c-pagination-button-text-color:var(--c-pagination-button-text-color, var(--_c-pagination-button-active-background-color));--_c-pagination-menu-text-color:var(--c-pagination-menu-text-color, var(--c-text-system));--_c-pagination-menu-text-color-active:var(--c-pagination-menu-text-color-active, var(--c-primary-600));--_c-pagination-menu-background-color-hover:var(--c-pagination-menu-background-color-hover, var(--c-primary-200));--_c-pagination-menu-outline-color:var(--c-pagination-menu-outline-color, var(--c-primary-600));display:block}:host c-icon-button{--c-icon-button-background-color:var(--_c-pagination-button-active-background-color);--c-icon-button-background-color-hover:var(--_c-pagination-button-active-background-color-hover);--c-icon-button-text-color:var(--_c-pagination-button-active-text-color);--c-icon-button-text-background-color:var(--_c-pagination-button-background-color);--c-icon-button-text-background-color-hover:var(--_c-pagination-button-background-color-hover);--c-icon-button-text-text-color:var(--_c-pagination-button-text-color)}:host span{font-size:14px;text-align:right;white-space:nowrap}:host .range{min-width:132px}:host .visuallyhidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}:host(.c-pagination) nav{align-items:center;display:flex;flex-wrap:wrap;gap:0 24px;justify-content:center;width:100%}:host(.c-pagination) ul{align-items:center;display:flex;gap:4px;justify-content:center;list-style:none;margin:0;padding:0}:host(.c-pagination) .c-pagination__details{align-items:center;display:flex;flex-wrap:wrap;flex:auto;justify-content:space-between}:host(.c-pagination) .c-pagination__items-per-page{color:var(--c-text-system);font-size:14px;text-align:right;white-space:nowrap;display:flex;align-items:center;gap:4px}:host(.c-pagination) c-menu{--c-menu-text-color:var(--_c-pagination-menu-text-color);--c-menu-text-color-active:var(--_c-pagination-menu-text-color-active);--c-menu-background-color-hover:var(--_c-pagination-menu-background-color-hover);--c-menu-outline-color:var(--_c-pagination-menu-outline-color)}:host(.c-pagination--simple) ul{flex:1;justify-content:flex-end}:host(.c-pagination--small) ul{gap:2px}";
|
|
12
|
+
|
|
13
|
+
const CPagination = proxyCustomElement(class CPagination extends HTMLElement {
|
|
14
|
+
constructor() {
|
|
15
|
+
super();
|
|
16
|
+
this.__registerHost();
|
|
17
|
+
this.__attachShadow();
|
|
18
|
+
this.changeValue = createEvent(this, "changeValue", 3);
|
|
19
|
+
this._textContent = {
|
|
20
|
+
itemsPerPageText: 'Items per page:',
|
|
21
|
+
nextPage: 'Next page',
|
|
22
|
+
prevPage: 'Previous page',
|
|
23
|
+
};
|
|
24
|
+
this._buttons = [];
|
|
25
|
+
this._increasePageNumber = () => {
|
|
26
|
+
if (this._currentPage < this._getTotalPages()) {
|
|
27
|
+
this._currentPage += 1;
|
|
28
|
+
this._valueChangeHandler();
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
this._decreasePageNumber = () => {
|
|
32
|
+
if (this._currentPage > 1) {
|
|
33
|
+
this._currentPage -= 1;
|
|
34
|
+
this._valueChangeHandler();
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
this.value = {
|
|
38
|
+
itemCount: 0,
|
|
39
|
+
};
|
|
40
|
+
this.hideDetails = false;
|
|
41
|
+
this.simple = false;
|
|
42
|
+
this.size = 'default';
|
|
43
|
+
this._currentPage = undefined;
|
|
44
|
+
this._itemsPerPage = undefined;
|
|
45
|
+
this._totalVisible = undefined;
|
|
46
|
+
this.hideRange = false;
|
|
47
|
+
this.itemsPerPageOptions = [5, 25, 50, 100];
|
|
48
|
+
this.tick = '';
|
|
49
|
+
}
|
|
50
|
+
valueHandler(value, oldValue) {
|
|
51
|
+
if (this._isEqual(value, oldValue))
|
|
52
|
+
return;
|
|
53
|
+
requestAnimationFrame(() => {
|
|
54
|
+
this._setRange();
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
_isEqual(options1, options2) {
|
|
58
|
+
const keys1 = Object.keys(options1 || {});
|
|
59
|
+
const keys2 = Object.keys(options2 || {});
|
|
60
|
+
if (keys1.length !== keys2.length) {
|
|
61
|
+
return false;
|
|
62
|
+
}
|
|
63
|
+
for (const key of keys1) {
|
|
64
|
+
if (options1[key] !== options2[key]) {
|
|
65
|
+
return false;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
componentWillLoad() {
|
|
71
|
+
this._setRange();
|
|
72
|
+
}
|
|
73
|
+
_getText(key) {
|
|
74
|
+
var _a;
|
|
75
|
+
const source = ((_a = this.value.textOverrides) === null || _a === void 0 ? void 0 : _a[key])
|
|
76
|
+
? this.value.textOverrides
|
|
77
|
+
: this._textContent;
|
|
78
|
+
return source[key];
|
|
79
|
+
}
|
|
80
|
+
_setRange() {
|
|
81
|
+
if (!this.value)
|
|
82
|
+
return;
|
|
83
|
+
this._currentPage = this.value.currentPage || 1;
|
|
84
|
+
this._itemsPerPage = this.value.itemsPerPage || 25;
|
|
85
|
+
this._totalVisible = this.value.totalVisible || 7;
|
|
86
|
+
this.value.startFrom =
|
|
87
|
+
this._currentPage * this._itemsPerPage - this._itemsPerPage;
|
|
88
|
+
this.value.endTo = this._currentPage * this._itemsPerPage - 1;
|
|
89
|
+
this.changeValue.emit(this.value);
|
|
90
|
+
}
|
|
91
|
+
_valueChangeHandler() {
|
|
92
|
+
this.value.currentPage = this._currentPage;
|
|
93
|
+
this.value.itemsPerPage = this._itemsPerPage;
|
|
94
|
+
this._setRange();
|
|
95
|
+
}
|
|
96
|
+
_renderMenu() {
|
|
97
|
+
const itemsPerPageOptions = this.itemsPerPageOptions.map((i) => ({
|
|
98
|
+
name: i.toString(),
|
|
99
|
+
action: () => {
|
|
100
|
+
this._itemsPerPage = i;
|
|
101
|
+
this._currentPage = 1;
|
|
102
|
+
this._valueChangeHandler();
|
|
103
|
+
},
|
|
104
|
+
}));
|
|
105
|
+
const onMenuClick = (event) => {
|
|
106
|
+
event.stopPropagation();
|
|
107
|
+
};
|
|
108
|
+
return (h("div", { class: "c-pagination__items-per-page" }, this._getText('itemsPerPageText'), h("c-menu", { items: itemsPerPageOptions, onClick: onMenuClick }, h("div", null, h("span", { class: "items-per-page" }, this._itemsPerPage)))));
|
|
109
|
+
}
|
|
110
|
+
_getTotalPages() {
|
|
111
|
+
return Math.ceil(this.value.itemCount / this._itemsPerPage);
|
|
112
|
+
}
|
|
113
|
+
_setPage(number) {
|
|
114
|
+
this._currentPage = number;
|
|
115
|
+
this._valueChangeHandler();
|
|
116
|
+
}
|
|
117
|
+
_getRange() {
|
|
118
|
+
var _a;
|
|
119
|
+
if (this.hideRange || !this.value.itemCount)
|
|
120
|
+
return;
|
|
121
|
+
const end = Math.min(this._currentPage * this._itemsPerPage, this.value.itemCount);
|
|
122
|
+
const start = this.value.startFrom + 1;
|
|
123
|
+
const pageTextOverride = (_a = this.value.textOverrides) === null || _a === void 0 ? void 0 : _a.pageText;
|
|
124
|
+
let parsedPageTextOverride;
|
|
125
|
+
if (pageTextOverride) {
|
|
126
|
+
parsedPageTextOverride = pageTextOverride({
|
|
127
|
+
start: start,
|
|
128
|
+
end: end,
|
|
129
|
+
count: this.value.itemCount,
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
return pageTextOverride
|
|
133
|
+
? parsedPageTextOverride
|
|
134
|
+
: `${start} - ${end} of ${this.value.itemCount} items`;
|
|
135
|
+
}
|
|
136
|
+
_getArrowLeft(size) {
|
|
137
|
+
return (h("li", null, h("c-icon-button", { "aria-disabled": this.value.currentPage <= 1 ? 'true' : 'false', "aria-label": `${this._getText('prevPage')}`, disabled: this.value.currentPage <= 1, size: size, text: true, onClick: this._decreasePageNumber }, h("span", { class: "visuallyhidden" }, this._getText('prevPage')), h("c-icon", { path: mdiChevronLeft }))));
|
|
138
|
+
}
|
|
139
|
+
_getArrowRight(size) {
|
|
140
|
+
return (h("li", null, h("c-icon-button", { "aria-disabled": this.value.currentPage >= this._getTotalPages() ? 'true' : 'false', "aria-label": `${this._getText('nextPage')}`, disabled: this.value.currentPage >= this._getTotalPages(), size: size, text: true, onClick: this._increasePageNumber }, h("span", { class: "visuallyhidden" }, this._getText('nextPage')), h("c-icon", { path: mdiChevronRight }))));
|
|
141
|
+
}
|
|
142
|
+
_button(number, size) {
|
|
143
|
+
var _a;
|
|
144
|
+
const params = {
|
|
145
|
+
text: this._currentPage !== number,
|
|
146
|
+
onClick: () => this._setPage(number),
|
|
147
|
+
size,
|
|
148
|
+
};
|
|
149
|
+
if (this._currentPage === number) {
|
|
150
|
+
params['aria-current'] = 'page';
|
|
151
|
+
}
|
|
152
|
+
const pageOfTextOverride = (_a = this.value.textOverrides) === null || _a === void 0 ? void 0 : _a.pageOfText;
|
|
153
|
+
let parsedPageOfTextOverride;
|
|
154
|
+
if (pageOfTextOverride) {
|
|
155
|
+
parsedPageOfTextOverride = pageOfTextOverride({
|
|
156
|
+
pageNumber: number,
|
|
157
|
+
count: this._getTotalPages(),
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
return (h("li", null, h("c-icon-button", Object.assign({}, params), h("span", { "aria-label": pageOfTextOverride
|
|
161
|
+
? parsedPageOfTextOverride
|
|
162
|
+
: `page ${number} of ${this._getTotalPages()}` }, number))));
|
|
163
|
+
}
|
|
164
|
+
_addButton(number, size) {
|
|
165
|
+
this._buttons.push(this._button(number, size));
|
|
166
|
+
}
|
|
167
|
+
_addSeparator(size) {
|
|
168
|
+
this._buttons.push(h("li", null, h("c-icon-button", { "aria-disabled": "true", size: size, tabindex: "-1", role: "separator", disabled: true, text: true }, h("svg", { width: "16", height: "16", viewBox: "0 0 24 24" }, h("path", { d: mdiDotsHorizontal })))));
|
|
169
|
+
}
|
|
170
|
+
_addButtons(buttonStart, buttonCount, size) {
|
|
171
|
+
if (buttonStart > 1) {
|
|
172
|
+
this._addButton(1, size);
|
|
173
|
+
this._addSeparator(size);
|
|
174
|
+
}
|
|
175
|
+
for (let index = 1; index < buttonCount; index++) {
|
|
176
|
+
this._addButton(buttonStart + index, size);
|
|
177
|
+
}
|
|
178
|
+
const allPagesVisible = this._getTotalPages() <= this._totalVisible;
|
|
179
|
+
if ((this._currentPage < this._totalVisible - 1 ||
|
|
180
|
+
this._currentPage < this._getTotalPages() - this._totalVisible + 4) &&
|
|
181
|
+
!allPagesVisible) {
|
|
182
|
+
this._addSeparator(size);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
_getPageButtons(size) {
|
|
186
|
+
this._buttons = [];
|
|
187
|
+
let buttonStart = 0;
|
|
188
|
+
let buttonCount = this._getTotalPages() + 1;
|
|
189
|
+
const morePagesThanVisible = this._getTotalPages() > this._totalVisible;
|
|
190
|
+
if (morePagesThanVisible) {
|
|
191
|
+
if (this._currentPage < this._totalVisible - 2) {
|
|
192
|
+
buttonCount = this._totalVisible - 1;
|
|
193
|
+
}
|
|
194
|
+
else if (this._currentPage <
|
|
195
|
+
this._getTotalPages() - this._totalVisible + 4) {
|
|
196
|
+
buttonStart = Math.ceil(this._currentPage - this._totalVisible / 2) + 1;
|
|
197
|
+
buttonCount = this._totalVisible - 3;
|
|
198
|
+
}
|
|
199
|
+
else {
|
|
200
|
+
buttonStart = this._getTotalPages() - this._totalVisible + 2;
|
|
201
|
+
buttonCount = this._totalVisible - 2;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
this._addButtons(buttonStart, buttonCount, size);
|
|
205
|
+
if (morePagesThanVisible) {
|
|
206
|
+
this._buttons.push(this._button(this._getTotalPages(), size));
|
|
207
|
+
}
|
|
208
|
+
return this._buttons;
|
|
209
|
+
}
|
|
210
|
+
_renderPaginationButtons() {
|
|
211
|
+
if (!this.value.itemCount)
|
|
212
|
+
return '';
|
|
213
|
+
const buttonsize = this.size === 'small' ? 'x-small' : 'small';
|
|
214
|
+
return (h("ul", null, this._getArrowLeft(buttonsize), !this.simple && this._getPageButtons(buttonsize), this._getArrowRight(buttonsize)));
|
|
215
|
+
}
|
|
216
|
+
render() {
|
|
217
|
+
const classes = {
|
|
218
|
+
'c-pagination': true,
|
|
219
|
+
'c-pagination--small': this.size === 'small',
|
|
220
|
+
'c-pagination--simple': this.simple,
|
|
221
|
+
};
|
|
222
|
+
return (h(Host, { class: classes }, h("nav", { role: "navigation", "aria-label": "pagination" }, !this.hideDetails && (h("div", { class: "c-pagination__details" }, this._renderMenu(), h("span", { class: { range: !this.simple } }, this._getRange()))), this._renderPaginationButtons())));
|
|
223
|
+
}
|
|
224
|
+
static get watchers() { return {
|
|
225
|
+
"value": ["valueHandler"]
|
|
226
|
+
}; }
|
|
227
|
+
static get style() { return cPaginationCss; }
|
|
228
|
+
}, [1, "c-pagination", {
|
|
229
|
+
"value": [16],
|
|
230
|
+
"hideDetails": [4, "hide-details"],
|
|
231
|
+
"simple": [4],
|
|
232
|
+
"size": [1],
|
|
233
|
+
"hideRange": [4, "hide-range"],
|
|
234
|
+
"itemsPerPageOptions": [16],
|
|
235
|
+
"_currentPage": [32],
|
|
236
|
+
"_itemsPerPage": [32],
|
|
237
|
+
"_totalVisible": [32],
|
|
238
|
+
"tick": [32]
|
|
239
|
+
}, undefined, {
|
|
240
|
+
"value": ["valueHandler"]
|
|
241
|
+
}]);
|
|
242
|
+
function defineCustomElement() {
|
|
243
|
+
if (typeof customElements === "undefined") {
|
|
244
|
+
return;
|
|
245
|
+
}
|
|
246
|
+
const components = ["c-pagination", "c-badge", "c-icon", "c-icon-button", "c-menu", "c-menu-items", "c-ripple", "c-spinner"];
|
|
247
|
+
components.forEach(tagName => { switch (tagName) {
|
|
248
|
+
case "c-pagination":
|
|
249
|
+
if (!customElements.get(tagName)) {
|
|
250
|
+
customElements.define(tagName, CPagination);
|
|
251
|
+
}
|
|
252
|
+
break;
|
|
253
|
+
case "c-badge":
|
|
254
|
+
if (!customElements.get(tagName)) {
|
|
255
|
+
defineCustomElement$7();
|
|
256
|
+
}
|
|
257
|
+
break;
|
|
258
|
+
case "c-icon":
|
|
259
|
+
if (!customElements.get(tagName)) {
|
|
260
|
+
defineCustomElement$6();
|
|
261
|
+
}
|
|
262
|
+
break;
|
|
263
|
+
case "c-icon-button":
|
|
264
|
+
if (!customElements.get(tagName)) {
|
|
265
|
+
defineCustomElement$5();
|
|
266
|
+
}
|
|
267
|
+
break;
|
|
268
|
+
case "c-menu":
|
|
269
|
+
if (!customElements.get(tagName)) {
|
|
270
|
+
defineCustomElement$4();
|
|
271
|
+
}
|
|
272
|
+
break;
|
|
273
|
+
case "c-menu-items":
|
|
274
|
+
if (!customElements.get(tagName)) {
|
|
275
|
+
defineCustomElement$3();
|
|
276
|
+
}
|
|
277
|
+
break;
|
|
278
|
+
case "c-ripple":
|
|
279
|
+
if (!customElements.get(tagName)) {
|
|
280
|
+
defineCustomElement$2();
|
|
281
|
+
}
|
|
282
|
+
break;
|
|
283
|
+
case "c-spinner":
|
|
284
|
+
if (!customElements.get(tagName)) {
|
|
285
|
+
defineCustomElement$1();
|
|
286
|
+
}
|
|
287
|
+
break;
|
|
288
|
+
} });
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
export { CPagination as C, defineCustomElement as d };
|
|
292
|
+
|
|
293
|
+
//# sourceMappingURL=c-pagination2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"c-pagination2.js","mappings":";;;;;;;;;;AAAA,MAAM,cAAc,GAAG,65FAA65F;;MCsBv6F,WAAW;;;;;;IA8Ed,iBAAY,GAAG;MACrB,gBAAgB,EAAE,iBAAiB;MACnC,QAAQ,EAAE,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MAAM,EAAE,IAAG,IAAI,CAAC,SAAS,EAAE,CAAQ,CAC3D,CACP,EACA,IAAI,CAAC,wBAAwB,EAAE,CAC5B,CACD,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/c-pagination/c-pagination.scss?tag=c-pagination&encapsulation=shadow","src/components/c-pagination/c-pagination.tsx"],"sourcesContent":[":host {\n /**\n * @prop --c-pagination-button-active-background-color: Active pagination button background color\n * @prop --c-pagination-button-active-background-color-hover: Active pagination button hover background color\n * @prop --c-pagination-button-active-text-color: Active pagination button text color\n * @prop --c-pagination-button-background-color: Pagination button background color\n * @prop --c-pagination-button-background-color-hover: Pagination button hover background color\n * @prop --c-pagination-button-text-color: Pagination button text color\n */\n --_c-pagination-button-active-background-color: var(--c-pagination-button-active-background-color, var(--c-primary-600));\n --_c-pagination-button-active-background-color-hover: var(--c-pagination-button-active-background-color-hover, var(--c-primary-400));\n --_c-pagination-button-active-text-color: var(--c-pagination-button-active-text-color, var(--c-white));\n --_c-pagination-button-background-color: var(--c-pagination-button-background-color, var(--c-transparent));\n --_c-pagination-button-background-color-hover: var(--c-pagination-button-background-color-hover, rgba(var(--c-primary-rgb), 0.1));\n --_c-pagination-button-text-color: var(--c-pagination-button-text-color, var(--_c-pagination-button-active-background-color));\n\n /**\n * @prop --c-pagination-menu-text-color: Pagination menu text color\n * @prop --c-pagination-menu-text-color-active: Active pagination menu text color\n * @prop --c-pagination-menu-background-color-hover: Pagination menu hover background color\n * @prop --c-pagination-menu-outline-color: Pagination menu outline color\n */\n --_c-pagination-menu-text-color: var(--c-pagination-menu-text-color, var(--c-text-system));\n --_c-pagination-menu-text-color-active: var(--c-pagination-menu-text-color-active, var(--c-primary-600));\n --_c-pagination-menu-background-color-hover: var(--c-pagination-menu-background-color-hover, var(--c-primary-200));\n --_c-pagination-menu-outline-color: var(--c-pagination-menu-outline-color, var(--c-primary-600));\n\n c-icon-button {\n --c-icon-button-background-color: var(--_c-pagination-button-active-background-color);\n --c-icon-button-background-color-hover: var(--_c-pagination-button-active-background-color-hover);\n --c-icon-button-text-color: var(--_c-pagination-button-active-text-color);\n --c-icon-button-text-background-color: var(--_c-pagination-button-background-color);\n --c-icon-button-text-background-color-hover: var(--_c-pagination-button-background-color-hover);\n --c-icon-button-text-text-color: var(--_c-pagination-button-text-color);\n }\n\n display: block;\n\n span {\n font-size: 14px;\n text-align: right;\n white-space: nowrap;\n }\n\n .range {\n min-width: 132px;\n }\n\n .visuallyhidden {\n border: 0;\n clip: rect(0 0 0 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n }\n}\n\n:host(.c-pagination) {\n nav {\n align-items: center;\n display: flex;\n flex-wrap: wrap;\n gap: 0 24px;\n justify-content: center;\n width: 100%;\n }\n\n ul {\n align-items: center;\n display: flex;\n gap: 4px;\n justify-content: center;\n list-style: none;\n margin: 0;\n padding: 0;\n }\n\n .c-pagination__details {\n align-items: center;\n display: flex;\n flex-wrap: wrap;\n flex: auto;\n justify-content: space-between;\n }\n\n .c-pagination__items-per-page {\n color: var(--c-text-system);\n font-size: 14px;\n text-align: right;\n white-space: nowrap;\n display: flex;\n align-items: center;\n gap: 4px;\n }\n\n c-menu {\n --c-menu-text-color: var(--_c-pagination-menu-text-color);\n --c-menu-text-color-active: var(--_c-pagination-menu-text-color-active);\n --c-menu-background-color-hover: var(--_c-pagination-menu-background-color-hover);\n --c-menu-outline-color: var(--_c-pagination-menu-outline-color);\n }\n}\n\n:host(.c-pagination--simple) {\n ul {\n flex: 1;\n justify-content: flex-end;\n }\n}\n\n:host(.c-pagination--small) {\n ul {\n gap: 2px;\n }\n}\n","import {\n Component,\n h,\n Host,\n Prop,\n Event,\n EventEmitter,\n State,\n Watch,\n} from '@stencil/core';\nimport { mdiChevronLeft, mdiChevronRight, mdiDotsHorizontal } from '@mdi/js';\nimport { CMenuOption, CPaginationOptions } from '../../types';\n\n/**\n * @group Navigation\n */\n\n@Component({\n tag: 'c-pagination',\n styleUrl: 'c-pagination.scss',\n shadow: true,\n})\nexport class CPagination {\n /**\n * Object containing values that are needed for pagination.\n *\n * Note! startFrom and endTo are assigned automatically to the object based on other values\n */\n @Prop() value: CPaginationOptions = {\n itemCount: 0,\n };\n\n /**\n * Hide details (per page dropdown and the 'x - y of n pages' text)\n */\n @Prop() hideDetails = false;\n\n /**\n * Hide page number buttons\n */\n @Prop() simple = false;\n\n /**\n * Hide details (per page dropdown and the 'x - y of n pages' text)\n */\n @Prop() size: 'default' | 'small' = 'default';\n\n @State() private _currentPage;\n\n @State() private _itemsPerPage;\n\n @State() private _totalVisible;\n\n /**\n * Triggered when values are changed\n */\n @Event({ bubbles: false }) changeValue: EventEmitter<CPaginationOptions>;\n\n /**\n * Hide range indicator\n */\n @Prop() hideRange = false;\n\n /**\n * Items per page options\n */\n @Prop() itemsPerPageOptions: number[] = [5, 25, 50, 100];\n\n @State() tick = '';\n\n @Watch('value')\n valueHandler(value: CPaginationOptions, oldValue: CPaginationOptions) {\n if (this._isEqual(value, oldValue)) return;\n\n requestAnimationFrame(() => {\n this._setRange();\n });\n }\n\n private _isEqual(options1: CPaginationOptions, options2: CPaginationOptions) {\n const keys1 = Object.keys(options1 || {});\n const keys2 = Object.keys(options2 || {});\n\n if (keys1.length !== keys2.length) {\n return false;\n }\n\n for (const key of keys1) {\n if (options1[key] !== options2[key]) {\n return false;\n }\n }\n\n return true;\n }\n\n componentWillLoad() {\n this._setRange();\n }\n\n private _textContent = {\n itemsPerPageText: 'Items per page:',\n nextPage: 'Next page',\n prevPage: 'Previous page',\n };\n\n private _getText(key: string) {\n const source = this.value.textOverrides?.[key]\n ? this.value.textOverrides\n : this._textContent;\n\n return source[key];\n }\n\n private _setRange() {\n if (!this.value) return;\n\n this._currentPage = this.value.currentPage || 1;\n\n this._itemsPerPage = this.value.itemsPerPage || 25;\n\n this._totalVisible = this.value.totalVisible || 7;\n\n this.value.startFrom =\n this._currentPage * this._itemsPerPage - this._itemsPerPage;\n\n this.value.endTo = this._currentPage * this._itemsPerPage - 1;\n\n this.changeValue.emit(this.value);\n }\n\n private _buttons: HTMLLIElement[] = [];\n\n private _valueChangeHandler() {\n this.value.currentPage = this._currentPage;\n\n this.value.itemsPerPage = this._itemsPerPage;\n\n this._setRange();\n }\n\n private _renderMenu() {\n const itemsPerPageOptions: CMenuOption[] = this.itemsPerPageOptions.map(\n (i) => ({\n name: i.toString(),\n action: () => {\n this._itemsPerPage = i;\n this._currentPage = 1;\n this._valueChangeHandler();\n },\n }),\n );\n\n const onMenuClick = (event) => {\n event.stopPropagation();\n };\n\n return (\n <div class=\"c-pagination__items-per-page\">\n {this._getText('itemsPerPageText')}\n\n <c-menu items={itemsPerPageOptions} onClick={onMenuClick}>\n <div>\n <span class=\"items-per-page\">{this._itemsPerPage}</span>\n </div>\n </c-menu>\n </div>\n );\n }\n\n private _getTotalPages() {\n return Math.ceil(this.value.itemCount / this._itemsPerPage);\n }\n\n private _increasePageNumber = () => {\n if (this._currentPage < this._getTotalPages()) {\n this._currentPage += 1;\n this._valueChangeHandler();\n }\n };\n\n private _decreasePageNumber = () => {\n if (this._currentPage > 1) {\n this._currentPage -= 1;\n this._valueChangeHandler();\n }\n };\n\n private _setPage(number) {\n this._currentPage = number;\n this._valueChangeHandler();\n }\n\n private _getRange() {\n if (this.hideRange || !this.value.itemCount) return;\n\n const end = Math.min(\n this._currentPage * this._itemsPerPage,\n this.value.itemCount,\n );\n const start = this.value.startFrom + 1;\n\n const pageTextOverride = this.value.textOverrides?.pageText;\n\n let parsedPageTextOverride;\n\n if (pageTextOverride) {\n parsedPageTextOverride = pageTextOverride({\n start: start,\n end: end,\n count: this.value.itemCount,\n });\n }\n\n return pageTextOverride\n ? parsedPageTextOverride\n : `${start} - ${end} of ${this.value.itemCount} items`;\n }\n\n private _getArrowLeft(size) {\n return (\n <li>\n <c-icon-button\n aria-disabled={this.value.currentPage <= 1 ? 'true' : 'false'}\n aria-label={`${this._getText('prevPage')}`}\n disabled={this.value.currentPage <= 1}\n size={size}\n text\n onClick={this._decreasePageNumber}\n >\n <span class=\"visuallyhidden\">{this._getText('prevPage')}</span>\n\n <c-icon path={mdiChevronLeft}></c-icon>\n </c-icon-button>\n </li>\n );\n }\n\n private _getArrowRight(size) {\n return (\n <li>\n <c-icon-button\n aria-disabled={\n this.value.currentPage >= this._getTotalPages() ? 'true' : 'false'\n }\n aria-label={`${this._getText('nextPage')}`}\n disabled={this.value.currentPage >= this._getTotalPages()}\n size={size}\n text\n onClick={this._increasePageNumber}\n >\n <span class=\"visuallyhidden\">{this._getText('nextPage')}</span>\n\n <c-icon path={mdiChevronRight}></c-icon>\n </c-icon-button>\n </li>\n );\n }\n\n private _button(number, size) {\n const params = {\n text: this._currentPage !== number,\n onClick: () => this._setPage(number),\n size,\n };\n\n if (this._currentPage === number) {\n params['aria-current'] = 'page';\n }\n\n const pageOfTextOverride = this.value.textOverrides?.pageOfText;\n\n let parsedPageOfTextOverride;\n\n if (pageOfTextOverride) {\n parsedPageOfTextOverride = pageOfTextOverride({\n pageNumber: number,\n count: this._getTotalPages(),\n });\n }\n\n return (\n <li>\n <c-icon-button {...params}>\n <span\n aria-label={\n pageOfTextOverride\n ? parsedPageOfTextOverride\n : `page ${number} of ${this._getTotalPages()}`\n }\n >\n {number}\n </span>\n </c-icon-button>\n </li>\n );\n }\n\n private _addButton(number, size) {\n this._buttons.push(this._button(number, size));\n }\n\n private _addSeparator(size) {\n this._buttons.push(\n <li>\n <c-icon-button\n aria-disabled=\"true\"\n size={size}\n tabindex=\"-1\"\n role=\"separator\"\n disabled\n text\n >\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\">\n <path d={mdiDotsHorizontal} />\n </svg>\n </c-icon-button>\n </li>,\n );\n }\n\n private _addButtons(buttonStart, buttonCount, size) {\n if (buttonStart > 1) {\n this._addButton(1, size);\n this._addSeparator(size);\n }\n\n for (let index = 1; index < buttonCount; index++) {\n this._addButton(buttonStart + index, size);\n }\n\n const allPagesVisible = this._getTotalPages() <= this._totalVisible;\n\n if (\n (this._currentPage < this._totalVisible - 1 ||\n this._currentPage < this._getTotalPages() - this._totalVisible + 4) &&\n !allPagesVisible\n ) {\n this._addSeparator(size);\n }\n }\n\n private _getPageButtons(size) {\n this._buttons = [];\n let buttonStart = 0;\n let buttonCount = this._getTotalPages() + 1;\n const morePagesThanVisible = this._getTotalPages() > this._totalVisible;\n\n if (morePagesThanVisible) {\n if (this._currentPage < this._totalVisible - 2) {\n buttonCount = this._totalVisible - 1;\n } else if (\n this._currentPage <\n this._getTotalPages() - this._totalVisible + 4\n ) {\n buttonStart = Math.ceil(this._currentPage - this._totalVisible / 2) + 1;\n buttonCount = this._totalVisible - 3;\n } else {\n buttonStart = this._getTotalPages() - this._totalVisible + 2;\n buttonCount = this._totalVisible - 2;\n }\n }\n\n this._addButtons(buttonStart, buttonCount, size);\n\n if (morePagesThanVisible) {\n this._buttons.push(this._button(this._getTotalPages(), size));\n }\n\n return this._buttons;\n }\n\n private _renderPaginationButtons() {\n if (!this.value.itemCount) return '';\n\n const buttonsize = this.size === 'small' ? 'x-small' : 'small';\n\n return (\n <ul>\n {this._getArrowLeft(buttonsize)}\n {!this.simple && this._getPageButtons(buttonsize)}\n {this._getArrowRight(buttonsize)}\n </ul>\n );\n }\n\n render() {\n const classes = {\n 'c-pagination': true,\n 'c-pagination--small': this.size === 'small',\n 'c-pagination--simple': this.simple,\n };\n\n return (\n <Host class={classes}>\n <nav role=\"navigation\" aria-label=\"pagination\">\n {!this.hideDetails && (\n <div class=\"c-pagination__details\">\n {this._renderMenu()}\n <span class={{ range: !this.simple }}>{this._getRange()}</span>\n </div>\n )}\n {this._renderPaginationButtons()}\n </nav>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface CProgressBar extends Components.CProgressBar, HTMLElement {}
|
|
4
|
+
export const CProgressBar: {
|
|
5
|
+
prototype: CProgressBar;
|
|
6
|
+
new (): CProgressBar;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
|
|
3
|
+
const cProgressBarCss = "html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-progress-bar-color:var(--c-progress-bar-color, var(--c-primary-600));--_c-progress-bar-background-color:var(\n --c-progress-bar-background-color,\n var(--c-tertiary-200)\n );--_c-progress-bar-border-width:var(--c-progress-bar-border-width, 4px);--_c-progress-bar-height:var(--c-progress-bar-height, 16px);--_c-progress-bar-value:var(--c-progress-bar-value, 0%);align-items:center;display:flex;flex-wrap:wrap}.c-progress{position:relative;background-color:var(--_c-progress-bar-background-color);border-radius:var(--_c-progress-bar-height);box-shadow:0 0 0 var(--_c-progress-bar-border-width) var(--_c-progress-bar-background-color);flex-basis:100%;height:calc(var(--_c-progress-bar-height) - var(--_c-progress-bar-border-width) * 2);margin:var(--_c-progress-bar-border-width);opacity:0.75;overflow:hidden;transform:translateZ(0);width:calc(100% - var(--_c-progress-bar-border-width) * 2);}.c-progress.adjacent-details{flex:1}.c-progress__percentage{flex-basis:100%;font-size:14px;margin-top:2px;text-align:end;white-space:nowrap;padding-left:16px}.c-progress__percentage--negative{color:var(--c-error-600)}.c-progress__percentage.adjacent-details{flex:0}.c-progress progress{background-color:var(--_c-progress-bar-background-color);border-radius:var(--_c-progress-bar-height);width:100%;overflow:hidden;height:calc(var(--_c-progress-bar-height) - var(--_c-progress-bar-border-width) * 2);position:absolute;border:none}@supports selector(:focus-within){.c-progress progress:focus{outline:none}}.c-progress:focus-within{outline:2px var(--c-primary-600) solid;outline-offset:6px}.c-progress ::-webkit-progress-bar{background-color:transparent}.c-progress ::-webkit-progress-value{transition:width 0.3s ease-in-out;background-color:var(--_c-progress-bar-color);border-radius:var(--_c-progress-bar-height)}.c-progress ::-moz-progress-bar{transition:padding-bottom 1s;padding-left:60px;padding-bottom:var(--_c-progress-bar-value);background-color:var(--_c-progress-bar-color);height:0;transform-origin:0 0;transform:rotate(-90deg) translateX(-60px)}.c-progress :indeterminate::-moz-progress-bar{width:0}.c-progress--indeterminate::before{content:\"\";z-index:1;position:absolute;background-color:var(--_c-progress-bar-color);border-radius:var(--_c-progress-bar-height);left:-100%;height:100%;transform:translateX(var(--_c-progress-bar-value, 0%));transition:transform 0.3s ease-in-out;animation:indeterminate 2s infinite linear;width:50%;transform-origin:0% 50%}@keyframes indeterminate{0%{transform:translateX(100%) scaleX(1)}30%{transform:translateX(170%) scaleX(1.75)}70%{transform:translateX(500%) scaleX(0.1)}100%{transform:translateX(500%) scaleX(0.1)}}";
|
|
4
|
+
|
|
5
|
+
const CProgressBar$1 = proxyCustomElement(class CProgressBar extends HTMLElement {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
this.__registerHost();
|
|
9
|
+
this.__attachShadow();
|
|
10
|
+
this.value = 0;
|
|
11
|
+
this.hideDetails = false;
|
|
12
|
+
this.singleLine = false;
|
|
13
|
+
this.label = '';
|
|
14
|
+
this.indeterminate = false;
|
|
15
|
+
}
|
|
16
|
+
_getSafeValue() {
|
|
17
|
+
if (this.value >= 0 && this.value <= 100)
|
|
18
|
+
return this.value;
|
|
19
|
+
if (this.value < 0)
|
|
20
|
+
return 0;
|
|
21
|
+
return 100;
|
|
22
|
+
}
|
|
23
|
+
render() {
|
|
24
|
+
const value = this._getSafeValue();
|
|
25
|
+
const style = {
|
|
26
|
+
'--_c-progress-bar-value': `${value}%`,
|
|
27
|
+
};
|
|
28
|
+
const classes = {
|
|
29
|
+
'c-progress': true,
|
|
30
|
+
'c-progress--indeterminate': this.indeterminate,
|
|
31
|
+
'adjacent-details': this.singleLine,
|
|
32
|
+
};
|
|
33
|
+
const detailsClasses = {
|
|
34
|
+
'c-progress__percentage': true,
|
|
35
|
+
'c-progress__percentage--negative': this.value < 0,
|
|
36
|
+
'adjacent-details': this.singleLine,
|
|
37
|
+
};
|
|
38
|
+
const a11y = {
|
|
39
|
+
'aria-busy': (!this.indeterminate).toString(),
|
|
40
|
+
title: `${value} %`,
|
|
41
|
+
};
|
|
42
|
+
const params = {
|
|
43
|
+
role: 'progressbar',
|
|
44
|
+
max: '100',
|
|
45
|
+
};
|
|
46
|
+
if (!this.indeterminate) {
|
|
47
|
+
params.value = value.toString();
|
|
48
|
+
params['aria-valuenow'] = value.toString();
|
|
49
|
+
}
|
|
50
|
+
return (h(Host, Object.assign({}, a11y), h("label", { class: classes, style: style }, h("progress", Object.assign({}, params), !this.indeterminate && `${value}%`)), !this.indeterminate && !this.hideDetails && (h("div", { class: detailsClasses }, this.value, " % ", this.label))));
|
|
51
|
+
}
|
|
52
|
+
static get style() { return cProgressBarCss; }
|
|
53
|
+
}, [1, "c-progress-bar", {
|
|
54
|
+
"value": [2],
|
|
55
|
+
"hideDetails": [4, "hide-details"],
|
|
56
|
+
"singleLine": [4, "single-line"],
|
|
57
|
+
"label": [1],
|
|
58
|
+
"indeterminate": [4]
|
|
59
|
+
}]);
|
|
60
|
+
function defineCustomElement$1() {
|
|
61
|
+
if (typeof customElements === "undefined") {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
const components = ["c-progress-bar"];
|
|
65
|
+
components.forEach(tagName => { switch (tagName) {
|
|
66
|
+
case "c-progress-bar":
|
|
67
|
+
if (!customElements.get(tagName)) {
|
|
68
|
+
customElements.define(tagName, CProgressBar$1);
|
|
69
|
+
}
|
|
70
|
+
break;
|
|
71
|
+
} });
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
const CProgressBar = CProgressBar$1;
|
|
75
|
+
const defineCustomElement = defineCustomElement$1;
|
|
76
|
+
|
|
77
|
+
export { CProgressBar, defineCustomElement };
|
|
78
|
+
|
|
79
|
+
//# sourceMappingURL=c-progress-bar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"c-progress-bar.js","mappings":";;AAAA,MAAM,eAAe,GAAG,mvFAAmvF;;MCU9vFA,cAAY;;;;;iBAIP,CAAC;uBAKK,KAAK;sBAKN,KAAK;iBAKV,EAAE;yBAKM,KAAK;;EAErB,aAAa;IACnB,IAAI,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI,IAAI,CAAC,KAAK,IAAI,GAAG;MAAE,OAAO,IAAI,CAAC,KAAK,CAAC;IAE5D,IAAI,IAAI,CAAC,KAAK,GAAG,CAAC;MAAE,OAAO,CAAC,CAAC;IAE7B,OAAO,GAAG,CAAC;GACZ;EAED,MAAM;IACJ,MAAM,KAAK,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;IAEnC,MAAM,KAAK,GAAG;MACZ,yBAAyB,EAAE,GAAG,KAAK,GAAG;KACvC,CAAC;IAEF,MAAM,OAAO,GAAG;MACd,YAAY,EAAE,IAAI;MAClB,2BAA2B,EAAE,IAAI,CAAC,aAAa;MAC/C,kBAAkB,EAAE,IAAI,CAAC,UAAU;KACpC,CAAC;IAEF,MAAM,cAAc,GAAG;MACrB,wBAAwB,EAAE,IAAI;MAC9B,kCAAkC,EAAE,IAAI,CAAC,KAAK,GAAG,CAAC;MAClD,kBAAkB,EAAE,IAAI,CAAC,UAAU;KACpC,CAAC;IAEF,MAAM,IAAI,GAAG;MACX,WAAW,EAAE,CAAC,CAAC,IAAI,CAAC,aAAa,EAAE,QAAQ,EAAE;MAC7C,KAAK,EAAE,GAAG,KAAK,IAAI;KACpB,CAAC;IAEF,MAAM,MAAM,GAKR;MACF,IAAI,EAAE,aAAa;MACnB,GAAG,EAAE,KAAK;KACX,CAAC;IAEF,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE;MACvB,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;MAChC,MAAM,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;KAC5C;IAED,QACE,EAAC,IAAI,oBAAK,IAAI,GACZ,aAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,IACjC,gCAAc,MAAM,GAAG,CAAC,IAAI,CAAC,aAAa,IAAI,GAAG,KAAK,GAAG,CAAY,CAC/D,EAEP,CAAC,IAAI,CAAC,aAAa,IAAI,CAAC,IAAI,CAAC,WAAW,KACvC,WAAK,KAAK,EAAE,cAAc,IACvB,IAAI,CAAC,KAAK,SAAK,IAAI,CAAC,KAAK,CACtB,CACP,CACI,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["CProgressBar"],"sources":["src/components/c-progress-bar/c-progress-bar.scss?tag=c-progress-bar&encapsulation=shadow","src/components/c-progress-bar/c-progress-bar.tsx"],"sourcesContent":[":host {\n /**\n * @prop --c-progress-bar-color: Progress bar color\n * @prop --c-progress-bar-background-color: Progress bar background color\n * @prop --c-progress-bar-border-width: Progress bar border width in px\n * @prop --c-progress-bar-height: Progress bar height in px\n * @prop --c-progress-bar-value: Progress bar value in %\n */\n --_c-progress-bar-color: var(--c-progress-bar-color, var(--c-primary-600));\n --_c-progress-bar-background-color: var(\n --c-progress-bar-background-color,\n var(--c-tertiary-200)\n );\n --_c-progress-bar-border-width: var(--c-progress-bar-border-width, 4px);\n --_c-progress-bar-height: var(--c-progress-bar-height, 16px);\n --_c-progress-bar-value: var(--c-progress-bar-value, 0%);\n\n align-items: center;\n display: flex;\n flex-wrap: wrap;\n}\n\n.c-progress {\n $this: &;\n\n position: relative;\n background-color: var(--_c-progress-bar-background-color);\n border-radius: var(--_c-progress-bar-height);\n box-shadow: 0 0 0 var(--_c-progress-bar-border-width)\n var(--_c-progress-bar-background-color);\n flex-basis: 100%;\n height: calc(\n var(--_c-progress-bar-height) -\n calc(var(--_c-progress-bar-border-width) * 2)\n );\n margin: var(--_c-progress-bar-border-width);\n opacity: 0.75;\n overflow: hidden;\n transform: translateZ(0); // Safari - overflow: hidden & border-radius fix\n width: calc(100% - calc(var(--_c-progress-bar-border-width) * 2));\n\n &.adjacent-details {\n flex: 1;\n }\n\n &__percentage {\n flex-basis: 100%;\n font-size: 14px;\n margin-top: 2px;\n text-align: end;\n white-space: nowrap;\n padding-left: 16px;\n\n &--negative {\n color: var(--c-error-600);\n }\n\n &.adjacent-details {\n flex: 0;\n }\n }\n\n progress {\n background-color: var(--_c-progress-bar-background-color);\n border-radius: var(--_c-progress-bar-height);\n width: 100%;\n overflow: hidden;\n height: calc(\n var(--_c-progress-bar-height) -\n calc(var(--_c-progress-bar-border-width) * 2)\n );\n position: absolute;\n border: none;\n\n @supports selector(:focus-within) {\n &:focus {\n outline: none;\n }\n }\n }\n\n &:focus-within {\n outline: 2px var(--c-primary-600) solid;\n outline-offset: 6px;\n }\n\n ::-webkit-progress-bar {\n background-color: transparent;\n }\n\n ::-webkit-progress-value {\n transition: width 0.3s ease-in-out;\n background-color: var(--_c-progress-bar-color);\n border-radius: var(--_c-progress-bar-height);\n }\n\n ::-moz-progress-bar {\n transition: padding-bottom 1s;\n padding-left: 60px;\n padding-bottom: var(--_c-progress-bar-value);\n background-color: var(--_c-progress-bar-color);\n height: 0;\n transform-origin: 0 0;\n transform: rotate(-90deg) translateX(-60px);\n }\n\n /* Force indeterminate bars to have zero width */\n :indeterminate::-moz-progress-bar {\n width: 0;\n }\n\n &--indeterminate {\n &::before {\n content: '';\n z-index: 1;\n position: absolute;\n background-color: var(--_c-progress-bar-color);\n border-radius: var(--_c-progress-bar-height);\n left: -100%;\n height: 100%;\n transform: translateX(var(--_c-progress-bar-value, 0%));\n transition: transform 0.3s ease-in-out;\n animation: indeterminate 2s infinite linear;\n width: 50%;\n transform-origin: 0% 50%;\n }\n }\n}\n\n@keyframes indeterminate {\n 0% {\n transform: translateX(100%) scaleX(1);\n }\n\n 30% {\n transform: translateX(170%) scaleX(1.75);\n }\n\n 70% {\n transform: translateX(500%) scaleX(0.1);\n }\n\n 100% {\n transform: translateX(500%) scaleX(0.1);\n }\n}\n","import { Component, Host, h, Prop } from '@stencil/core';\n\n/**\n * @group Indicators\n */\n@Component({\n tag: 'c-progress-bar',\n styleUrl: 'c-progress-bar.scss',\n shadow: true,\n})\nexport class CProgressBar {\n /**\n * Progress bar value in percentage (0 to 100)\n */\n @Prop() value = 0;\n\n /**\n * Hide the percentage display\n */\n @Prop() hideDetails = false;\n\n /**\n * Place details next to progress bar\n */\n @Prop() singleLine = false;\n\n /**\n * Optional details message next to percentage display\n */\n @Prop() label = '';\n\n /**\n * Indeterminate state of the progress bar\n */\n @Prop() indeterminate = false;\n\n private _getSafeValue() {\n if (this.value >= 0 && this.value <= 100) return this.value;\n\n if (this.value < 0) return 0;\n\n return 100;\n }\n\n render() {\n const value = this._getSafeValue();\n\n const style = {\n '--_c-progress-bar-value': `${value}%`,\n };\n\n const classes = {\n 'c-progress': true,\n 'c-progress--indeterminate': this.indeterminate,\n 'adjacent-details': this.singleLine,\n };\n\n const detailsClasses = {\n 'c-progress__percentage': true,\n 'c-progress__percentage--negative': this.value < 0,\n 'adjacent-details': this.singleLine,\n };\n\n const a11y = {\n 'aria-busy': (!this.indeterminate).toString(),\n title: `${value} %`,\n };\n\n const params: {\n role: string;\n max: string;\n value?: string;\n 'aria-valuenow'?: string;\n } = {\n role: 'progressbar',\n max: '100',\n };\n\n if (!this.indeterminate) {\n params.value = value.toString();\n params['aria-valuenow'] = value.toString();\n }\n\n return (\n <Host {...a11y}>\n <label class={classes} style={style}>\n <progress {...params}>{!this.indeterminate && `${value}%`}</progress>\n </label>\n\n {!this.indeterminate && !this.hideDetails && (\n <div class={detailsClasses}>\n {this.value} % {this.label}\n </div>\n )}\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface CRadioGroup extends Components.CRadioGroup, HTMLElement {}
|
|
4
|
+
export const CRadioGroup: {
|
|
5
|
+
prototype: CRadioGroup;
|
|
6
|
+
new (): CRadioGroup;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|