@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,837 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-3cad12b5.js');
|
|
6
|
+
const mdi = require('./mdi-16842afc.js');
|
|
7
|
+
|
|
8
|
+
const cDropdownCss = "html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-dropdown-background-color:var(--c-dropdown-background-color, var(--c-white));--_c-dropdown-background-color-hover:var(--c-dropdown-background-color-hover, var(--c-primary-200));--_c-dropdown-text-color:var(--c-dropdown-text-color, var(--c-text-body));--_c-dropdown-text-color-active:var(--c-dropdown-text-color-active, var(--c-primary-600));--_c-dropdown-font-size:14px;--_c-dropdown-height:42px;display:block;position:absolute}:host mark{color:inherit;background-color:transparent;box-shadow:0 2px 0 0 var(--_c-dropdown-text-color-active)}:host ul{margin:0;padding:0;background-color:var(--_c-dropdown-background-color);list-style:none;box-shadow:2px 4px 10px rgba(0, 0, 0, 0.1607843137);width:100%;overflow-y:scroll;pointer-events:auto;border-radius:4px;visibility:hidden;outline:none}:host ul.active{visibility:visible;animation:0.2s 1 fade-in cubic-bezier(0.25, 0.8, 0.5, 1)}:host li{align-items:center;background:var(--c-white);column-gap:12px;cursor:pointer;display:flex;flex-wrap:nowrap;font-size:var(--_c-dropdown-font-size);min-height:var(--_c-dropdown-height);padding-left:10px;padding-right:10px;outline:none;white-space:nowrap;pointer-events:auto}:host li:not(.disabled):hover,:host li.active{background:var(--_c-dropdown-background-color-hover);color:var(--_c-dropdown-text-color-active)}:host li.disabled{background-color:rgba(var(--c-tertiary-rgb), 0.05);cursor:default;filter:grayscale(1) opacity(0.75)}:host .visuallyhidden{border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;padding:0;position:absolute;width:1px}@keyframes fade-in{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}";
|
|
9
|
+
|
|
10
|
+
const CDropdown = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this._id = '';
|
|
14
|
+
this._debounce = null;
|
|
15
|
+
this._itemRefs = [];
|
|
16
|
+
this._lastKeyPressTime = null;
|
|
17
|
+
this._parentTop = 0;
|
|
18
|
+
this._openedOnTop = false;
|
|
19
|
+
this._searchString = '';
|
|
20
|
+
this._observer = new IntersectionObserver((entries, observer) => {
|
|
21
|
+
entries.forEach((entry) => {
|
|
22
|
+
if (!entry.isIntersecting) {
|
|
23
|
+
entry.target.scrollIntoView({
|
|
24
|
+
block: 'nearest',
|
|
25
|
+
inline: 'nearest',
|
|
26
|
+
});
|
|
27
|
+
observer.unobserve(entry.target);
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
observer.unobserve(entry.target);
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
}, { threshold: 1 });
|
|
34
|
+
this._renderMenuItem = (item, index) => {
|
|
35
|
+
var _a;
|
|
36
|
+
const isActive = ((_a = this.items[this.currentIndex]) === null || _a === void 0 ? void 0 : _a.value) === item.value;
|
|
37
|
+
let itemId = 'none';
|
|
38
|
+
if (typeof (item === null || item === void 0 ? void 0 : item.value) === 'string') {
|
|
39
|
+
itemId = item.value.replace(/[^a-zA-Z0-9-_]/g, '');
|
|
40
|
+
}
|
|
41
|
+
itemId = `item_${this.inputId}--${itemId}`;
|
|
42
|
+
if (isActive) {
|
|
43
|
+
this.currentIndex = index;
|
|
44
|
+
this.parent.setActiveDescendant(itemId);
|
|
45
|
+
}
|
|
46
|
+
const listItem = document.createElement('li');
|
|
47
|
+
listItem.role = 'option';
|
|
48
|
+
listItem.ariaPosInSet = (index + 1).toString();
|
|
49
|
+
listItem.ariaSetSize = this.items.length.toString();
|
|
50
|
+
listItem.ariaSelected = isActive.toString();
|
|
51
|
+
listItem.id = itemId;
|
|
52
|
+
listItem.dataset.value = item.name;
|
|
53
|
+
listItem.setAttribute('tabindex', '-1');
|
|
54
|
+
listItem.classList.toggle('disabled', !!item.disabled);
|
|
55
|
+
listItem.addEventListener('click', (event) => {
|
|
56
|
+
const isDisabled = this._itemRefs[index].classList.contains('disabled');
|
|
57
|
+
if (isDisabled) {
|
|
58
|
+
event.preventDefault();
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
this.currentIndex = index;
|
|
62
|
+
this._onSelect(index);
|
|
63
|
+
});
|
|
64
|
+
listItem.addEventListener('focus', () => {
|
|
65
|
+
listItem.classList.add('active');
|
|
66
|
+
});
|
|
67
|
+
listItem.addEventListener('blur', () => {
|
|
68
|
+
listItem.classList.remove('active');
|
|
69
|
+
});
|
|
70
|
+
this._itemRefs.push(listItem);
|
|
71
|
+
if (Object.keys(this.options).length) {
|
|
72
|
+
requestAnimationFrame(() => {
|
|
73
|
+
var _a;
|
|
74
|
+
const option = this.options[item.value];
|
|
75
|
+
if (!option)
|
|
76
|
+
return;
|
|
77
|
+
if (((_a = this.parent.query) === null || _a === void 0 ? void 0 : _a.length) &&
|
|
78
|
+
this.type === 'autocomplete') {
|
|
79
|
+
const optionValue = option.querySelector('c-option-value');
|
|
80
|
+
if (optionValue) {
|
|
81
|
+
optionValue.innerHTML = this._highlightMatchingText(optionValue.textContent);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
listItem.appendChild(option);
|
|
85
|
+
this._listElement.appendChild(listItem);
|
|
86
|
+
});
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
const span = document.createElement('span');
|
|
90
|
+
span.innerHTML = this._highlightMatchingText(item.name);
|
|
91
|
+
listItem.appendChild(span);
|
|
92
|
+
this._listElement.appendChild(listItem);
|
|
93
|
+
};
|
|
94
|
+
this.items = [];
|
|
95
|
+
this.options = undefined;
|
|
96
|
+
this.itemsPerPage = undefined;
|
|
97
|
+
this.parent = undefined;
|
|
98
|
+
this.wrapper = undefined;
|
|
99
|
+
this.index = undefined;
|
|
100
|
+
this.isOpen = false;
|
|
101
|
+
this.focusList = undefined;
|
|
102
|
+
this.inputId = undefined;
|
|
103
|
+
this.type = undefined;
|
|
104
|
+
this.wasClicked = false;
|
|
105
|
+
this.currentIndex = null;
|
|
106
|
+
this.isVisible = false;
|
|
107
|
+
this.topPosition = undefined;
|
|
108
|
+
this.bottomTranslate = undefined;
|
|
109
|
+
this.scrollingParent = undefined;
|
|
110
|
+
this.statusText = '';
|
|
111
|
+
}
|
|
112
|
+
async updateDropdown(params) {
|
|
113
|
+
this.items = [];
|
|
114
|
+
this._itemRefs = [];
|
|
115
|
+
this.options = {};
|
|
116
|
+
requestAnimationFrame(() => {
|
|
117
|
+
this.currentIndex = null;
|
|
118
|
+
this.items = params.items || this.items;
|
|
119
|
+
this.options = params.options || this.options;
|
|
120
|
+
this._updateMenuItems();
|
|
121
|
+
this._updateStatusText();
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
async focusDropdown() {
|
|
125
|
+
requestAnimationFrame(() => {
|
|
126
|
+
this._listElement.focus();
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
async focusItem(type) {
|
|
130
|
+
requestAnimationFrame(() => {
|
|
131
|
+
const index = type === 'first' ? 0 : this.items.length - 1;
|
|
132
|
+
this.currentIndex = index;
|
|
133
|
+
this._itemRefs[index].focus();
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
onOpenStateChange(open) {
|
|
137
|
+
if (open) {
|
|
138
|
+
this._onOpen();
|
|
139
|
+
this._createEventListeners();
|
|
140
|
+
requestAnimationFrame(() => {
|
|
141
|
+
if (this.focusList) {
|
|
142
|
+
this._listElement.focus();
|
|
143
|
+
if (this.type === 'autocomplete') {
|
|
144
|
+
this.currentIndex = 0;
|
|
145
|
+
}
|
|
146
|
+
this._handleCurrentIndexChange();
|
|
147
|
+
}
|
|
148
|
+
this._positionMenu();
|
|
149
|
+
});
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
this._openedOnTop = false;
|
|
153
|
+
this._onClose();
|
|
154
|
+
this._removeEventListeners();
|
|
155
|
+
}
|
|
156
|
+
onCurrentIndexChange() {
|
|
157
|
+
this._handleCurrentIndexChange();
|
|
158
|
+
}
|
|
159
|
+
get _listSize() {
|
|
160
|
+
return this.items.length || 0;
|
|
161
|
+
}
|
|
162
|
+
get _firstSelectableIndex() {
|
|
163
|
+
return this.items.findIndex((item) => !item.disabled);
|
|
164
|
+
}
|
|
165
|
+
get _lastSelectableIndex() {
|
|
166
|
+
return this.items.findLastIndex((item) => !item.disabled);
|
|
167
|
+
}
|
|
168
|
+
_highlightMatchingText(value) {
|
|
169
|
+
if (this.type === 'select')
|
|
170
|
+
return value;
|
|
171
|
+
const regex = new RegExp(this.parent.query, 'gi');
|
|
172
|
+
return value.replace(regex, (match) => `<mark>${match}</mark>`);
|
|
173
|
+
}
|
|
174
|
+
_renderEmptyItem() {
|
|
175
|
+
const emptyElement = document.createElement('li');
|
|
176
|
+
emptyElement.tabIndex = -1;
|
|
177
|
+
const icon = document.createElement('c-icon');
|
|
178
|
+
icon.path = mdi.mdiAlert;
|
|
179
|
+
icon.size = 18;
|
|
180
|
+
icon.color = 'var(--c-warning-600)';
|
|
181
|
+
emptyElement.appendChild(icon);
|
|
182
|
+
emptyElement.append('No suggestions found');
|
|
183
|
+
this._listElement.replaceChildren(emptyElement);
|
|
184
|
+
}
|
|
185
|
+
_updateMenuItems() {
|
|
186
|
+
if (!this.items.length) {
|
|
187
|
+
this._renderEmptyItem();
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
requestAnimationFrame(() => {
|
|
191
|
+
this._listElement.replaceChildren();
|
|
192
|
+
this._itemRefs.length = 0;
|
|
193
|
+
this.items.map((item, index) => this._renderMenuItem(item, index));
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
_renderMenu() {
|
|
197
|
+
this._id = `${this.inputId}--items`;
|
|
198
|
+
const listElement = document.createElement('ul');
|
|
199
|
+
listElement.role = `listbox`;
|
|
200
|
+
listElement.ariaExpanded = this.isVisible.toString();
|
|
201
|
+
listElement.tabIndex = -1;
|
|
202
|
+
listElement.id = this._id;
|
|
203
|
+
this._listElement = listElement;
|
|
204
|
+
this.host.shadowRoot.appendChild(listElement);
|
|
205
|
+
this.items.map((item, index) => this._renderMenuItem(item, index));
|
|
206
|
+
this.scrollingParent = this.wrapper;
|
|
207
|
+
this._listElement.addEventListener('keydown', this._onKeyboardNavigation.bind(this));
|
|
208
|
+
this._listElement.addEventListener('keyup', this._onKeyDown.bind(this));
|
|
209
|
+
}
|
|
210
|
+
_onOpen() {
|
|
211
|
+
this.parent.shadowRoot.querySelector('.c-input').classList.add('active');
|
|
212
|
+
this._listElement.classList.add('active');
|
|
213
|
+
this._listElement.ariaExpanded = 'true';
|
|
214
|
+
this._listElement.tabIndex = 0;
|
|
215
|
+
}
|
|
216
|
+
_onClose(focusInput = false) {
|
|
217
|
+
this.parent.onHideMenu();
|
|
218
|
+
this.parent.shadowRoot.querySelector('.c-input').classList.remove('active');
|
|
219
|
+
this._listElement.classList.remove('active');
|
|
220
|
+
this._listElement.ariaExpanded = 'false';
|
|
221
|
+
this._listElement.tabIndex = -1;
|
|
222
|
+
this.isOpen = false;
|
|
223
|
+
this.currentIndex = this.index;
|
|
224
|
+
if (focusInput) {
|
|
225
|
+
this.parent.shadowRoot.querySelector('input').focus();
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
_onSelect(index, focusInput = false) {
|
|
229
|
+
const isDisabled = this._itemRefs[index].classList.contains('disabled');
|
|
230
|
+
if (isDisabled)
|
|
231
|
+
return;
|
|
232
|
+
this.parent.onItemSelection(index);
|
|
233
|
+
this.index = index;
|
|
234
|
+
this._onClose(focusInput);
|
|
235
|
+
this._itemRefs.forEach((item, i) => {
|
|
236
|
+
item.ariaSelected = (i === index).toString();
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
_getParentPosition() {
|
|
240
|
+
return this.parent.shadowRoot
|
|
241
|
+
.querySelector('.c-input__slot')
|
|
242
|
+
.getBoundingClientRect();
|
|
243
|
+
}
|
|
244
|
+
_positionMenu() {
|
|
245
|
+
requestAnimationFrame(() => {
|
|
246
|
+
const scrollTop = this.scrollingParent.scrollTop;
|
|
247
|
+
const scrollLeft = this.scrollingParent.scrollLeft;
|
|
248
|
+
const { top: parentTop, bottom: parentBottom, left: parentLeft, width: parentWidth, height: parentHeight, } = this._getParentPosition();
|
|
249
|
+
this.host.style.top = `${parentBottom}px`;
|
|
250
|
+
this.host.style.left = `${parentLeft}px`;
|
|
251
|
+
this.host.style.minWidth = `${parentWidth}px`;
|
|
252
|
+
this.bottomTranslate = 0;
|
|
253
|
+
this.host.style.removeProperty('transform');
|
|
254
|
+
const { bottom, right, height, width } = this.host.getBoundingClientRect();
|
|
255
|
+
this._parentTop = parentTop;
|
|
256
|
+
const isInView = {
|
|
257
|
+
x: right < this.scrollingParent.scrollWidth - scrollLeft,
|
|
258
|
+
y: bottom < this.scrollingParent.scrollHeight - scrollTop,
|
|
259
|
+
};
|
|
260
|
+
if (!isInView.y || this._openedOnTop) {
|
|
261
|
+
this._openedOnTop = true;
|
|
262
|
+
this.bottomTranslate = height + parentHeight;
|
|
263
|
+
this.host.style.setProperty('transform', `translateY(-${this.bottomTranslate}px`);
|
|
264
|
+
}
|
|
265
|
+
this.topPosition = parentBottom;
|
|
266
|
+
if (!isInView.x) {
|
|
267
|
+
this.host.style.left = `${parseFloat(this.host.style.left) - width + parentWidth}px`;
|
|
268
|
+
}
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
_removeEventListeners() {
|
|
272
|
+
this.scrollingParent.removeEventListener('scroll', this._onScrollFn);
|
|
273
|
+
}
|
|
274
|
+
_createEventListeners() {
|
|
275
|
+
requestAnimationFrame(async () => {
|
|
276
|
+
this._onScrollFn = this._onScroll.bind(this);
|
|
277
|
+
this.scrollingParent.addEventListener('scroll', this._onScrollFn);
|
|
278
|
+
this._listElement.classList.add('active');
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
_scrollToElement() {
|
|
282
|
+
if (this.items.length > this.itemsPerPage) {
|
|
283
|
+
const itemRef = this._itemRefs[this.currentIndex];
|
|
284
|
+
if (!!itemRef) {
|
|
285
|
+
this._observer.observe(itemRef);
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
_onScroll() {
|
|
290
|
+
const { top: parentTop } = this.parent.getBoundingClientRect();
|
|
291
|
+
const differenceY = this._parentTop - parentTop;
|
|
292
|
+
if (this._openedOnTop) {
|
|
293
|
+
this.host.style.setProperty('transform', `translateY(calc(-1 * ${this.bottomTranslate + differenceY}px))`);
|
|
294
|
+
return;
|
|
295
|
+
}
|
|
296
|
+
this.host.style.top = `${this.topPosition - differenceY}px`;
|
|
297
|
+
}
|
|
298
|
+
_onKeyDown(event) {
|
|
299
|
+
event.preventDefault();
|
|
300
|
+
event.stopPropagation();
|
|
301
|
+
}
|
|
302
|
+
_onKeyboardNavigation(event) {
|
|
303
|
+
this.wasClicked = false;
|
|
304
|
+
const letterNumber = /^[0-9a-zA-Z]+$/;
|
|
305
|
+
if ((event.key.match(letterNumber) && event.key.length === 1) ||
|
|
306
|
+
event.key === 'Backspace') {
|
|
307
|
+
if (this.type === 'autocomplete') {
|
|
308
|
+
this.parent.shadowRoot.querySelector('input').focus();
|
|
309
|
+
const { query } = this.parent;
|
|
310
|
+
let updatedQuery = '';
|
|
311
|
+
if (event.key === 'Backspace') {
|
|
312
|
+
updatedQuery = query.slice(0, -1);
|
|
313
|
+
}
|
|
314
|
+
else {
|
|
315
|
+
updatedQuery = `${query}${event.key}`;
|
|
316
|
+
}
|
|
317
|
+
this.parent.updateQuery(updatedQuery);
|
|
318
|
+
return;
|
|
319
|
+
}
|
|
320
|
+
if (Date.now() - this._lastKeyPressTime > 3000 ||
|
|
321
|
+
this._searchString.length > 2) {
|
|
322
|
+
this._searchString = event.key;
|
|
323
|
+
}
|
|
324
|
+
else {
|
|
325
|
+
this._searchString = `${this._searchString}${event.key}`;
|
|
326
|
+
}
|
|
327
|
+
this._lastKeyPressTime = Date.now();
|
|
328
|
+
const selectedItem = this.items.find((i) => i.name.toLowerCase().startsWith(this._searchString));
|
|
329
|
+
if (selectedItem) {
|
|
330
|
+
this.currentIndex = this.items.findIndex((element) => element === selectedItem);
|
|
331
|
+
if (this.isOpen) {
|
|
332
|
+
this._scrollToElement();
|
|
333
|
+
}
|
|
334
|
+
else {
|
|
335
|
+
this._onSelect(this.currentIndex, true);
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
if (event.key === 'Enter') {
|
|
340
|
+
this._onSelect(this.currentIndex, true);
|
|
341
|
+
}
|
|
342
|
+
if (event.key === ' ' && !this.isOpen) {
|
|
343
|
+
event.preventDefault();
|
|
344
|
+
this.isOpen = true;
|
|
345
|
+
}
|
|
346
|
+
if ('Tab' === event.key) {
|
|
347
|
+
this._onClose();
|
|
348
|
+
}
|
|
349
|
+
if (event.key === 'Escape') {
|
|
350
|
+
this._onClose(true);
|
|
351
|
+
}
|
|
352
|
+
if (event.key === 'ArrowDown') {
|
|
353
|
+
event.preventDefault();
|
|
354
|
+
event.stopPropagation();
|
|
355
|
+
if (this.currentIndex === null) {
|
|
356
|
+
this.currentIndex = 0;
|
|
357
|
+
}
|
|
358
|
+
else if (this.isOpen && this.currentIndex + 1 < this._listSize) {
|
|
359
|
+
this.currentIndex += 1;
|
|
360
|
+
}
|
|
361
|
+
this.isOpen = true;
|
|
362
|
+
}
|
|
363
|
+
if (event.key === 'ArrowUp') {
|
|
364
|
+
event.preventDefault();
|
|
365
|
+
event.stopPropagation();
|
|
366
|
+
if (this.isOpen && this.currentIndex === 0) {
|
|
367
|
+
this.currentIndex = null;
|
|
368
|
+
this._onClose(true);
|
|
369
|
+
return;
|
|
370
|
+
}
|
|
371
|
+
else if (this.isOpen && this.currentIndex > 0) {
|
|
372
|
+
this.currentIndex -= 1;
|
|
373
|
+
}
|
|
374
|
+
else if (this.currentIndex === null) {
|
|
375
|
+
this.currentIndex = this._listSize - 1;
|
|
376
|
+
}
|
|
377
|
+
this.isOpen = true;
|
|
378
|
+
}
|
|
379
|
+
if (event.key === 'Home' && this.isOpen) {
|
|
380
|
+
event.preventDefault();
|
|
381
|
+
this.currentIndex = this._firstSelectableIndex;
|
|
382
|
+
}
|
|
383
|
+
if (event.key === 'End' && this.isOpen) {
|
|
384
|
+
event.preventDefault();
|
|
385
|
+
this.currentIndex = this._lastSelectableIndex;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
_handleCurrentIndexChange() {
|
|
389
|
+
var _a;
|
|
390
|
+
if (this.currentIndex === null) {
|
|
391
|
+
(_a = this.parent) === null || _a === void 0 ? void 0 : _a.setActiveDescendant('');
|
|
392
|
+
return;
|
|
393
|
+
}
|
|
394
|
+
this._updateStatusText();
|
|
395
|
+
requestAnimationFrame(() => {
|
|
396
|
+
var _a, _b;
|
|
397
|
+
const item = this._itemRefs[this.currentIndex];
|
|
398
|
+
if (!item)
|
|
399
|
+
return;
|
|
400
|
+
item === null || item === void 0 ? void 0 : item.focus();
|
|
401
|
+
(_a = this.parent) === null || _a === void 0 ? void 0 : _a.setActiveDescendant((_b = item.id) !== null && _b !== void 0 ? _b : null);
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
_updateStatusText() {
|
|
405
|
+
if (this._debounce !== null) {
|
|
406
|
+
clearTimeout(this._debounce);
|
|
407
|
+
this._debounce = null;
|
|
408
|
+
}
|
|
409
|
+
this._debounce = window.setTimeout(() => {
|
|
410
|
+
var _a;
|
|
411
|
+
const selection = this._itemRefs[this.currentIndex];
|
|
412
|
+
const ending = !!this.items.length
|
|
413
|
+
? ', to navigate use up and down arrows'
|
|
414
|
+
: '';
|
|
415
|
+
const isDisabled = !!((_a = selection === null || selection === void 0 ? void 0 : selection.classList) === null || _a === void 0 ? void 0 : _a.contains('disabled'));
|
|
416
|
+
const beginning = isDisabled ? 'Disabled option - ' : '';
|
|
417
|
+
let selectionText = !!selection
|
|
418
|
+
? `${beginning}${selection.dataset.value} - ${selection.ariaPosInSet} of ${selection.ariaSetSize} is highlighted`
|
|
419
|
+
: null;
|
|
420
|
+
if (this.currentIndex === null && this.type === 'autocomplete') {
|
|
421
|
+
selectionText = this.items.length
|
|
422
|
+
? `${this.items.length} result${this.items.length !== 1 ? 's' : ''} available`
|
|
423
|
+
: 'No search results available';
|
|
424
|
+
}
|
|
425
|
+
this.statusText = `${selectionText || ending}`;
|
|
426
|
+
this._debounce = null;
|
|
427
|
+
}, 1400);
|
|
428
|
+
}
|
|
429
|
+
componentWillLoad() {
|
|
430
|
+
this._renderMenu();
|
|
431
|
+
}
|
|
432
|
+
componentDidLoad() {
|
|
433
|
+
this.currentIndex = this.index;
|
|
434
|
+
this._resizeObserver = new ResizeObserver(() => {
|
|
435
|
+
if (!this.isOpen)
|
|
436
|
+
return;
|
|
437
|
+
this._positionMenu();
|
|
438
|
+
});
|
|
439
|
+
this._resizeObserver.observe(this.host);
|
|
440
|
+
}
|
|
441
|
+
disconnectedCallback() {
|
|
442
|
+
this._resizeObserver.disconnect();
|
|
443
|
+
}
|
|
444
|
+
render() {
|
|
445
|
+
if (this.itemsPerPage &&
|
|
446
|
+
this.itemsPerPage > 0 &&
|
|
447
|
+
this.items.length > this.itemsPerPage) {
|
|
448
|
+
this._listElement.style.maxHeight = 42 * (this.itemsPerPage + 0.5) + 'px';
|
|
449
|
+
this._listElement.style.overflowY = 'scroll';
|
|
450
|
+
}
|
|
451
|
+
return (index.h(index.Host, null, index.h("div", { id: 'announce-' + this._id, class: "visuallyhidden", "aria-live": "polite", "aria-atomic": "true" }, this.statusText)));
|
|
452
|
+
}
|
|
453
|
+
get host() { return index.getElement(this); }
|
|
454
|
+
static get watchers() { return {
|
|
455
|
+
"isOpen": ["onOpenStateChange"],
|
|
456
|
+
"currentIndex": ["onCurrentIndexChange"]
|
|
457
|
+
}; }
|
|
458
|
+
};
|
|
459
|
+
CDropdown.style = cDropdownCss;
|
|
460
|
+
|
|
461
|
+
const cDropdownsCss = "html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{display:block;inset:0;pointer-events:none;position:fixed}";
|
|
462
|
+
|
|
463
|
+
const CDropdowns = class {
|
|
464
|
+
constructor(hostRef) {
|
|
465
|
+
index.registerInstance(this, hostRef);
|
|
466
|
+
}
|
|
467
|
+
async createDropdown(params) {
|
|
468
|
+
const element = document.createElement('c-dropdown');
|
|
469
|
+
element.items = params.items;
|
|
470
|
+
element.itemsPerPage = params.itemsPerPage || 6;
|
|
471
|
+
element.options = params.options;
|
|
472
|
+
element.parent = params.parent;
|
|
473
|
+
element.wrapper = params.wrapper;
|
|
474
|
+
element.inputId = params.id;
|
|
475
|
+
element.index = params.index;
|
|
476
|
+
element.type = params.type;
|
|
477
|
+
this.host.shadowRoot.appendChild(element);
|
|
478
|
+
return element;
|
|
479
|
+
}
|
|
480
|
+
render() {
|
|
481
|
+
return index.h(index.Host, null);
|
|
482
|
+
}
|
|
483
|
+
get host() { return index.getElement(this); }
|
|
484
|
+
};
|
|
485
|
+
CDropdowns.style = cDropdownsCss;
|
|
486
|
+
|
|
487
|
+
const cInputCss = "html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:root,:host{--_c-input-inactive-color:var(--c-tertiary-600);--_c-input-active-color:var(--c-primary-600);--_c-input-background-color:var(--c-transparent);--_c-input-text-color:var(--c-text-body);--_c-input-placeholder-color:var(--c-tertiary-500);--_c-input-shadow-active-color:var(--_c-input-active-color);--_c-input-shadow-background-color:var(--c-white);--_c-input-shadow-text-color:var(--_c-input-text-color);--_c-input-shadow-placeholder-color:var(--_c-input-placeholder-color);--_c-input-error-color:var(--c-error-600)}.visuallyhidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.c-input{--_c-input-border-width:1px;align-items:flex-start;border-radius:4px;display:flex;flex:1 1 auto;font-family:var(--c-font-family);font-size:16px;letter-spacing:normal;max-width:100%;text-align:left}.c-input input,.c-input select,.c-input textarea{background:none;border:0;display:inline-block;font-family:var(--c-font-family);font-size:16px;line-height:1;margin:0;padding:0;vertical-align:middle;white-space:normal}.c-input input,.c-input textarea{box-sizing:content-box;background-color:transparent;border:none;color:var(--_c-input-text-color);flex:1 1 auto;font-family:var(--c-font-family);font-size:16px;line-height:20px;max-width:100%;min-width:0;width:100%}.c-input input[type=checkbox],.c-input input[type=radio],.c-input select{box-sizing:border-box}.c-input input[type=search]{appearance:textfield;box-sizing:content-box}.c-input ::-webkit-search-decoration{display:none}.c-input textarea{margin-top:4px;min-height:44px;overflow:auto;padding:8px 12px 8px 0;resize:vertical;vertical-align:top}.c-input input{max-height:32px;padding:8px 0}.c-input input:focus,.c-input input:active,.c-input textarea:focus,.c-input textarea:active{outline:none}.c-input .c-input__content{align-items:center;display:flex;width:100%}.c-input__control{border-radius:inherit;color:currentColor;display:flex;flex-flow:column wrap;flex-grow:1;gap:8px;height:auto;min-width:0;width:100%}.c-input__slot{align-items:stretch;background:transparent;border-radius:inherit;color:inherit;cursor:text;display:flex;min-height:44px;padding:0 12px;position:relative;transition:0.3s cubic-bezier(0.25, 0.8, 0.5, 1);width:100%}.c-input__field{align-items:center;display:flex;flex:1 1 auto;gap:8px;position:relative}.c-input__field input,.c-input__field textarea{flex:1;outline:0}.c-input__field label{font-size:16px;height:20px;left:0;letter-spacing:normal;line-height:20px;max-width:90%;min-height:8px;overflow:hidden;pointer-events:none;position:absolute;right:auto;text-overflow:ellipsis;top:12px;transform-origin:top left;transform:translateX(var(--_c-input-label-position)) translateY(0) scale(1);transition:0.3s cubic-bezier(0.25, 0.8, 0.5, 1);white-space:nowrap}.c-input__field label.active{transform:translateY(-18px) scale(0.75)}.c-input__field label span{color:var(--_c-input-error-color)}.c-input--select input{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c-input--select .c-input__slot{cursor:pointer}.c-input fieldset{background-color:var(--_c-input-background-color);border-collapse:collapse;border-color:var(--_c-input-inactive-color);border-radius:inherit;border-style:solid;border-width:var(--_c-input-border-width);inset:0;margin:0;padding:0 0 0 8px;pointer-events:none;position:absolute;transition-duration:0.15s;transition-property:color;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1)}.c-input fieldset legend{float:none;line-height:11px;margin-left:-1px;padding:0;text-align:left;transition:width 0.3s cubic-bezier(0.25, 0.8, 0.5, 1);width:0}.c-input fieldset legend.active{width:var(--_c-input-legend-width)}.c-input--shadow .c-input__slot{background-color:var(--_c-input-shadow-background-color);box-shadow:rgba(0, 0, 0, 0.15) 0 5px 15px 0}.c-input--shadow .c-input__slot input,.c-input--shadow .c-input__slot textarea{color:var(--_c-input-shadow-text-color)}.c-input--shadow .c-input__slot:focus-within{outline:2px var(--_c-input-active-color) solid}.c-input--shadow .c-input__slot:focus-within c-icon{--c-icon-color:var(--_c-input-shadow-active-color) !important}.c-input--shadow input::placeholder,.c-input--shadow textarea::placeholder{color:var(--_c-input-shadow-placeholder-color);opacity:1}.c-input--disabled input,.c-input--disabled textarea,.c-input--disabled fieldset,.c-input--disabled label{--_c-input-error-color:var(--c-tertiary-500);color:var(--c-tertiary-500)}.c-input--textarea .c-input__field{margin-right:-12px}.c-input ::placeholder{color:var(--_c-input-placeholder-color);opacity:1}.c-input:focus-within,.c-input.active,.c-input:not(.c-input--disabled):active{--_c-input-border-width:2px;color:var(--_c-input-active-color)}.c-input:focus-within fieldset,.c-input.active fieldset,.c-input:not(.c-input--disabled):active fieldset{border-color:var(--_c-input-active-color)}.c-input:focus-within label,.c-input.active label,.c-input:not(.c-input--disabled):active label{color:var(--_c-input-active-color);transform:translateX(0) translateY(-18px) scale(0.75)}.c-input:focus-within legend,.c-input.active legend,.c-input:not(.c-input--disabled):active legend{width:var(--_c-input-legend-width)}.c-input.active:not(.filled) .c-input-menu__input{position:relative}.c-input.active:not(.filled) .c-input-menu__input::after{display:flex;align-items:center;position:absolute;inset:0;content:attr(data-placeholder);pointer-events:none;color:var(--_c-input-placeholder-color)}.c-input--error{color:var(--_c-input-error-color)}.c-input--error fieldset{border-color:var(--_c-input-error-color) !important}.c-input--error label{color:var(--_c-input-error-color) !important}.c-input--error:focus-within{color:var(--_c-input-error-color)}";
|
|
488
|
+
|
|
489
|
+
const CInput = class {
|
|
490
|
+
constructor(hostRef) {
|
|
491
|
+
index.registerInstance(this, hostRef);
|
|
492
|
+
this.changeValue = index.createEvent(this, "changeValue", 3);
|
|
493
|
+
this.itemClick = index.createEvent(this, "itemClick", 3);
|
|
494
|
+
this.dropdownClose = index.createEvent(this, "dropdownClose", 3);
|
|
495
|
+
this._hasBlurred = false;
|
|
496
|
+
this._debounce = null;
|
|
497
|
+
this._observer = new IntersectionObserver((entries, observer) => {
|
|
498
|
+
entries.forEach((entry) => {
|
|
499
|
+
if (entry.isIntersecting) {
|
|
500
|
+
this._calculateElementWidths();
|
|
501
|
+
observer.unobserve(entry.target);
|
|
502
|
+
}
|
|
503
|
+
});
|
|
504
|
+
}, { threshold: 1 });
|
|
505
|
+
this._onBlur = () => {
|
|
506
|
+
setTimeout(() => {
|
|
507
|
+
this.isFocused = false;
|
|
508
|
+
this._hasBlurred = true;
|
|
509
|
+
this._onReset();
|
|
510
|
+
}, 100);
|
|
511
|
+
};
|
|
512
|
+
this._onFocus = (click = true) => {
|
|
513
|
+
var _a, _b;
|
|
514
|
+
if (this.disabled)
|
|
515
|
+
return;
|
|
516
|
+
this.isFocused = true;
|
|
517
|
+
(_a = this.inputField) === null || _a === void 0 ? void 0 : _a.focus();
|
|
518
|
+
if (click) {
|
|
519
|
+
(_b = this.inputField) === null || _b === void 0 ? void 0 : _b.click();
|
|
520
|
+
if (this._dropdownElement) {
|
|
521
|
+
this._dropdownElement.wasClicked = true;
|
|
522
|
+
this.itemClick.emit();
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
if (this.inputField) {
|
|
526
|
+
this.inputField.placeholder =
|
|
527
|
+
!!this.value || !this.placeholder ? '' : this.placeholder;
|
|
528
|
+
}
|
|
529
|
+
};
|
|
530
|
+
this.autofocus = false;
|
|
531
|
+
this.disabled = false;
|
|
532
|
+
this.form = false;
|
|
533
|
+
this.hideDetails = false;
|
|
534
|
+
this.hint = '';
|
|
535
|
+
this.hostId = undefined;
|
|
536
|
+
this.inputId = undefined;
|
|
537
|
+
this.itemsPerPage = 6;
|
|
538
|
+
this.label = undefined;
|
|
539
|
+
this.max = null;
|
|
540
|
+
this.min = null;
|
|
541
|
+
this.name = undefined;
|
|
542
|
+
this.placeholder = undefined;
|
|
543
|
+
this.readonly = false;
|
|
544
|
+
this.required = false;
|
|
545
|
+
this.rows = 1;
|
|
546
|
+
this.shadow = false;
|
|
547
|
+
this.step = null;
|
|
548
|
+
this.type = undefined;
|
|
549
|
+
this.valid = true;
|
|
550
|
+
this.validate = false;
|
|
551
|
+
this.validateOnBlur = false;
|
|
552
|
+
this.validation = 'Required field';
|
|
553
|
+
this.value = undefined;
|
|
554
|
+
this.variant = 'text';
|
|
555
|
+
this.isFocused = false;
|
|
556
|
+
this.labelWidth = 0;
|
|
557
|
+
this.preSlotWidth = 0;
|
|
558
|
+
this.statusText = '';
|
|
559
|
+
this.currentIndex = null;
|
|
560
|
+
}
|
|
561
|
+
onValidChange() {
|
|
562
|
+
if (this.validateOnBlur && !this._hasBlurred)
|
|
563
|
+
return;
|
|
564
|
+
this._setAriaDescriptionId();
|
|
565
|
+
}
|
|
566
|
+
onValidationMessageChange() {
|
|
567
|
+
this._updateStatusText();
|
|
568
|
+
}
|
|
569
|
+
onValueChange(value) {
|
|
570
|
+
if (!value) {
|
|
571
|
+
this._onReset();
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
onPlaceholderChange(placeholder) {
|
|
575
|
+
if (placeholder)
|
|
576
|
+
this._onReset();
|
|
577
|
+
}
|
|
578
|
+
componentWillLoad() {
|
|
579
|
+
if (this.variant === 'select') {
|
|
580
|
+
this._createDropdownWrapper();
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
componentDidLoad() {
|
|
584
|
+
var _a, _b, _c, _d;
|
|
585
|
+
if (this.autofocus) {
|
|
586
|
+
setTimeout(() => {
|
|
587
|
+
this._onFocus(false);
|
|
588
|
+
}, 500);
|
|
589
|
+
}
|
|
590
|
+
this._calculateElementWidths();
|
|
591
|
+
this._setAriaDescriptionId();
|
|
592
|
+
if (this.label) {
|
|
593
|
+
this._observer.observe(this._labelRef);
|
|
594
|
+
}
|
|
595
|
+
(_a = this.inputField) === null || _a === void 0 ? void 0 : _a.addEventListener('focus', () => this._onFocus(false));
|
|
596
|
+
(_b = this.inputField) === null || _b === void 0 ? void 0 : _b.addEventListener('blur', () => this._onBlur());
|
|
597
|
+
(_c = this.inputField) === null || _c === void 0 ? void 0 : _c.addEventListener('keypress', this._preventNonNumericalInput);
|
|
598
|
+
if (this.inputField) {
|
|
599
|
+
this.inputField.placeholder =
|
|
600
|
+
!!this.label || !this.placeholder ? '' : this.placeholder;
|
|
601
|
+
this.inputField.title = (_d = this.label) !== null && _d !== void 0 ? _d : this.placeholder;
|
|
602
|
+
requestAnimationFrame(() => {
|
|
603
|
+
const container = this.inputField.closest('.c-input-menu__input');
|
|
604
|
+
if (!container)
|
|
605
|
+
return;
|
|
606
|
+
container.dataset.placeholder = this.placeholder;
|
|
607
|
+
});
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
disconnectedCallback() {
|
|
611
|
+
var _a, _b, _c, _d;
|
|
612
|
+
(_a = this.inputField) === null || _a === void 0 ? void 0 : _a.removeEventListener('focus', () => this._onFocus(false));
|
|
613
|
+
(_b = this.inputField) === null || _b === void 0 ? void 0 : _b.removeEventListener('blur', () => this._onBlur());
|
|
614
|
+
(_c = this.inputField) === null || _c === void 0 ? void 0 : _c.removeEventListener('keypress', this._preventNonNumericalInput);
|
|
615
|
+
this._observer.disconnect();
|
|
616
|
+
(_d = this._dropdownElement) === null || _d === void 0 ? void 0 : _d.remove();
|
|
617
|
+
}
|
|
618
|
+
get isActive() {
|
|
619
|
+
return !!this.value || typeof this.value === 'boolean' || this.isFocused;
|
|
620
|
+
}
|
|
621
|
+
_setAriaDescriptionId() {
|
|
622
|
+
this.inputField.removeAttribute('aria-describedby');
|
|
623
|
+
let type = null;
|
|
624
|
+
if (this.valid && !this.value && this.hint) {
|
|
625
|
+
type = 'hint';
|
|
626
|
+
}
|
|
627
|
+
if (!this.valid) {
|
|
628
|
+
type = 'error';
|
|
629
|
+
}
|
|
630
|
+
if (type) {
|
|
631
|
+
this.inputField.setAttribute('aria-describedby', `${type}-${this.inputId}`);
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
_calculateElementWidths() {
|
|
635
|
+
this.labelWidth = !!this.label ? this._labelRef.scrollWidth * 0.75 + 6 : 0;
|
|
636
|
+
this.preSlotWidth = this.inputField.offsetLeft;
|
|
637
|
+
}
|
|
638
|
+
_handleOutsideClick(event) {
|
|
639
|
+
if (!event.composedPath().includes(this._dropdownElement)) {
|
|
640
|
+
this.closeDropdown();
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
async _getScrollParent(element) {
|
|
644
|
+
return new Promise((resolve) => {
|
|
645
|
+
if (!element) {
|
|
646
|
+
resolve(undefined);
|
|
647
|
+
}
|
|
648
|
+
let parent = element.parentNode;
|
|
649
|
+
while (parent) {
|
|
650
|
+
if (parent.shadowRoot === undefined) {
|
|
651
|
+
parent = parent.host;
|
|
652
|
+
}
|
|
653
|
+
else {
|
|
654
|
+
const { overflow, overflowX } = window.getComputedStyle(parent);
|
|
655
|
+
if (overflowX !== 'scroll' &&
|
|
656
|
+
overflow.split(' ').every((o) => o === 'auto' || o === 'scroll')) {
|
|
657
|
+
resolve(parent);
|
|
658
|
+
}
|
|
659
|
+
parent = parent.parentNode;
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
resolve(document.documentElement);
|
|
663
|
+
});
|
|
664
|
+
}
|
|
665
|
+
async focusDropdown() {
|
|
666
|
+
this._dropdownElement.focusDropdown();
|
|
667
|
+
}
|
|
668
|
+
async focusItem(type) {
|
|
669
|
+
await this._dropdownElement.focusItem(type);
|
|
670
|
+
}
|
|
671
|
+
async createDropdown(params) {
|
|
672
|
+
const wrapper = await this._getScrollParent(this.hiddenEl);
|
|
673
|
+
this._dropdownElement = await this._dropdownsElement.createDropdown(Object.assign(Object.assign({}, params), { itemsPerPage: params.itemsPerPage || 6, wrapper }));
|
|
674
|
+
}
|
|
675
|
+
async openDropdown(focusList = true) {
|
|
676
|
+
this._dropdownElement.shadowRoot
|
|
677
|
+
.querySelector('ul')
|
|
678
|
+
.classList.add('active');
|
|
679
|
+
this._dropdownElement.isOpen = true;
|
|
680
|
+
this._dropdownElement.focusList = focusList;
|
|
681
|
+
this._outsideClickFn = this._handleOutsideClick.bind(this);
|
|
682
|
+
requestAnimationFrame(() => {
|
|
683
|
+
window.addEventListener('click', this._outsideClickFn);
|
|
684
|
+
});
|
|
685
|
+
}
|
|
686
|
+
async closeDropdown() {
|
|
687
|
+
this._dropdownElement.shadowRoot
|
|
688
|
+
.querySelector('ul')
|
|
689
|
+
.classList.remove('active');
|
|
690
|
+
this._dropdownElement.isOpen = false;
|
|
691
|
+
window.removeEventListener('click', this._outsideClickFn);
|
|
692
|
+
}
|
|
693
|
+
async updateDropdown(params) {
|
|
694
|
+
var _a;
|
|
695
|
+
(_a = this._dropdownElement) === null || _a === void 0 ? void 0 : _a.updateDropdown(params);
|
|
696
|
+
}
|
|
697
|
+
_createDropdownWrapper() {
|
|
698
|
+
const existingElement = document.querySelector('c-dropdowns');
|
|
699
|
+
const element = existingElement || document.createElement('c-dropdowns');
|
|
700
|
+
this._dropdownsElement = element;
|
|
701
|
+
if (existingElement)
|
|
702
|
+
return;
|
|
703
|
+
document.body.appendChild(element);
|
|
704
|
+
}
|
|
705
|
+
_onReset() {
|
|
706
|
+
if (this.inputField) {
|
|
707
|
+
this.inputField.placeholder =
|
|
708
|
+
!this.label && !this.value && !!this.placeholder
|
|
709
|
+
? this.placeholder
|
|
710
|
+
: '';
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
_preventNonNumericalInput(event) {
|
|
714
|
+
if (this.type !== 'number')
|
|
715
|
+
return;
|
|
716
|
+
if (!event.key.match(/^[0-9,\.]+$/))
|
|
717
|
+
event.preventDefault();
|
|
718
|
+
}
|
|
719
|
+
_renderBorders() {
|
|
720
|
+
if (this.shadow)
|
|
721
|
+
return;
|
|
722
|
+
const classes = {
|
|
723
|
+
active: this.isActive,
|
|
724
|
+
};
|
|
725
|
+
return (index.h("fieldset", { "aria-hidden": "true" }, index.h("legend", { class: classes, style: {
|
|
726
|
+
'--_c-input-legend-width': this.labelWidth + 'px',
|
|
727
|
+
} }, index.h("span", { class: "notranslate" }))));
|
|
728
|
+
}
|
|
729
|
+
_renderLabel() {
|
|
730
|
+
if (!this.label)
|
|
731
|
+
return;
|
|
732
|
+
const classes = {
|
|
733
|
+
active: this.isActive,
|
|
734
|
+
};
|
|
735
|
+
return (index.h("label", { htmlFor: this.inputId, ref: (el) => (this._labelRef = el), class: classes }, this.label, this.required && index.h("span", null, "\u00A0*")));
|
|
736
|
+
}
|
|
737
|
+
get inputField() {
|
|
738
|
+
var _a;
|
|
739
|
+
return (_a = this.hiddenEl) === null || _a === void 0 ? void 0 : _a.querySelector('.c-input__input');
|
|
740
|
+
}
|
|
741
|
+
_updateStatusText() {
|
|
742
|
+
if (this._debounce !== null) {
|
|
743
|
+
clearTimeout(this._debounce);
|
|
744
|
+
this._debounce = null;
|
|
745
|
+
}
|
|
746
|
+
this._debounce = window.setTimeout(() => {
|
|
747
|
+
this.statusText = this.valid ? '' : `Error: ${this.validation}`;
|
|
748
|
+
this._debounce = null;
|
|
749
|
+
}, 1400);
|
|
750
|
+
}
|
|
751
|
+
render() {
|
|
752
|
+
const containerClasses = {
|
|
753
|
+
'c-input': true,
|
|
754
|
+
'c-input--disabled': this.disabled,
|
|
755
|
+
'c-input--shadow': this.shadow,
|
|
756
|
+
'c-input--textarea': this.rows > 1,
|
|
757
|
+
'c-input--error': !this.valid,
|
|
758
|
+
filled: !!this.value,
|
|
759
|
+
[`c-input--${this.variant}`]: true,
|
|
760
|
+
};
|
|
761
|
+
return (index.h(index.Host, { disabled: this.disabled }, index.h("div", { id: 'announce-' + this.inputId, class: "visuallyhidden", "aria-live": "polite", "aria-atomic": "true" }, this.statusText), index.h("div", { class: containerClasses }, index.h("div", { class: "c-input__control" }, index.h("div", { class: "c-input__slot", onClick: () => this._onFocus() }, this._renderBorders(), index.h("div", { class: "c-input__field", style: {
|
|
762
|
+
'--_c-input-label-position': this.preSlotWidth + 'px',
|
|
763
|
+
} }, index.h("slot", { name: "pre" }), this._renderLabel(), index.h("slot", null))), !this.hideDetails && (index.h("c-message", { hint: this.hint, inputId: this.inputId, valid: this.valid, validation: this.validation }))))));
|
|
764
|
+
}
|
|
765
|
+
get hiddenEl() { return index.getElement(this); }
|
|
766
|
+
static get watchers() { return {
|
|
767
|
+
"valid": ["onValidChange"],
|
|
768
|
+
"validation": ["onValidationMessageChange"],
|
|
769
|
+
"value": ["onValueChange"],
|
|
770
|
+
"placeholder": ["onPlaceholderChange"]
|
|
771
|
+
}; }
|
|
772
|
+
};
|
|
773
|
+
CInput.style = cInputCss;
|
|
774
|
+
|
|
775
|
+
const cMessageCss = "html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-message-error-color:var(--c-error-600);--_c-message-hint-color:var(--c-text-system);display:block;line-height:1;padding:0 12px}.c-message--active .c-message-item{opacity:1;transform:translateY(0)}.c-message-item{font-size:12px;min-height:16px;opacity:0;transform:translateY(-4px);transition:all 0.2s cubic-bezier(0.25, 0.8, 0.5, 1)}.c-message-item--hint{color:var(--_c-message-hint-color)}.c-message-item--error{color:var(--_c-message-error-color)}.c-message-item span{align-items:flex-start;color:currentColor;display:flex;gap:4px;min-height:16px}.c-message-item svg{fill:currentColor;height:16px;width:16px;position:relative;top:-2px}.c-message .visuallyhidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}";
|
|
776
|
+
|
|
777
|
+
const CMessage = class {
|
|
778
|
+
constructor(hostRef) {
|
|
779
|
+
index.registerInstance(this, hostRef);
|
|
780
|
+
this._validationIcon = (index.h("svg", { height: "16px", width: "16px", viewBox: "0 0 24 24" }, index.h("path", { d: mdi.mdiCloseCircle })));
|
|
781
|
+
this.hint = '';
|
|
782
|
+
this.inputId = undefined;
|
|
783
|
+
this.valid = true;
|
|
784
|
+
this.validation = 'Required field';
|
|
785
|
+
this.messageOptions = {
|
|
786
|
+
show: true,
|
|
787
|
+
type: 'hint',
|
|
788
|
+
content: '',
|
|
789
|
+
};
|
|
790
|
+
}
|
|
791
|
+
onValidChange(valid) {
|
|
792
|
+
this._handleValidation(valid);
|
|
793
|
+
}
|
|
794
|
+
onValidationMessageChange(message) {
|
|
795
|
+
if (this.valid || !message)
|
|
796
|
+
return;
|
|
797
|
+
this.messageOptions = Object.assign(Object.assign({}, this.messageOptions), { content: (index.h("span", null, index.h("span", { class: "visuallyhidden" }, "Error: "), this._validationIcon, " ", message)) });
|
|
798
|
+
}
|
|
799
|
+
onHintMessageChange(message) {
|
|
800
|
+
if (!this.valid || !message)
|
|
801
|
+
return;
|
|
802
|
+
this.messageOptions = Object.assign(Object.assign({}, this.messageOptions), { content: (index.h("span", null, index.h("span", { class: "visuallyhidden" }, "Hint: "), message)) });
|
|
803
|
+
}
|
|
804
|
+
_handleValidation(valid, timeout = 200) {
|
|
805
|
+
this.messageOptions = Object.assign(Object.assign({}, this.messageOptions), { show: false });
|
|
806
|
+
setTimeout(() => {
|
|
807
|
+
this.messageOptions = Object.assign(Object.assign({}, this.messageOptions), { type: valid ? 'hint' : 'error', show: true, content: valid ? (index.h("span", { id: `hint-${this.inputId}` }, index.h("span", { class: "visuallyhidden" }, "Hint: "), this.hint)) : (index.h("span", { id: `error-${this.inputId}` }, this._validationIcon, index.h("span", { class: "visuallyhidden" }, "Error: "), this.validation)) });
|
|
808
|
+
}, timeout);
|
|
809
|
+
}
|
|
810
|
+
componentDidLoad() {
|
|
811
|
+
this._handleValidation(this.valid, 0);
|
|
812
|
+
}
|
|
813
|
+
render() {
|
|
814
|
+
const classes = {
|
|
815
|
+
'c-message': true,
|
|
816
|
+
'c-message--active': this.messageOptions.show,
|
|
817
|
+
};
|
|
818
|
+
const messageClasses = {
|
|
819
|
+
'c-message-item': true,
|
|
820
|
+
[`c-message-item--${this.messageOptions.type}`]: true,
|
|
821
|
+
};
|
|
822
|
+
return (index.h(index.Host, null, index.h("div", { class: classes }, index.h("div", { class: messageClasses }, this.messageOptions.content))));
|
|
823
|
+
}
|
|
824
|
+
static get watchers() { return {
|
|
825
|
+
"valid": ["onValidChange"],
|
|
826
|
+
"validation": ["onValidationMessageChange"],
|
|
827
|
+
"hint": ["onHintMessageChange"]
|
|
828
|
+
}; }
|
|
829
|
+
};
|
|
830
|
+
CMessage.style = cMessageCss;
|
|
831
|
+
|
|
832
|
+
exports.c_dropdown = CDropdown;
|
|
833
|
+
exports.c_dropdowns = CDropdowns;
|
|
834
|
+
exports.c_input = CInput;
|
|
835
|
+
exports.c_message = CMessage;
|
|
836
|
+
|
|
837
|
+
//# sourceMappingURL=c-dropdown_4.cjs.entry.js.map
|