@cscfi/csc-ui 3.0.18 → 4.0.0-alpha.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/README.md +40 -40
- package/dist/csc-ui.js +20128 -0
- package/dist/css-anchor-positioning-fn-RTxo68pt.js +6447 -0
- package/dist/custom-elements.json +11421 -0
- package/dist/docs/c-autocomplete/usage.md +2 -0
- package/dist/docs/c-button/usage.md +31 -0
- package/dist/docs/c-button-group/usage.md +57 -0
- package/dist/docs/c-link/usage.md +1 -0
- package/dist/docs/c-loader/usage.md +1 -0
- package/dist/docs/c-main/usage.md +1 -0
- package/dist/docs/c-menu-item/usage.md +1 -0
- package/dist/docs/c-menu-label/usage.md +1 -0
- package/dist/docs/c-modal/usage.md +70 -0
- package/dist/docs/c-tab-buttons/usage.md +11 -0
- package/dist/docs/c-toast/usage.md +1 -0
- package/dist/docs/c-toasts/usage.md +30 -0
- package/dist/styles/css/tailwind-theme.css +118 -0
- package/dist/styles/css/tokens.css +464 -0
- package/dist/vscode.css-custom-data.json +580 -0
- package/dist/vscode.html-custom-data.json +1850 -0
- package/dist/web-types.json +5678 -0
- package/dist-types/components/c-accordion/CAccordion.vue.d.ts +46 -0
- package/dist-types/components/c-accordion-item/CAccordionItem.vue.d.ts +56 -0
- package/dist-types/components/c-alert/CAlert.vue.d.ts +32 -0
- package/dist-types/components/c-autocomplete/CAutocomplete.vue.d.ts +131 -0
- package/dist-types/components/c-badge/CBadge.vue.d.ts +13 -0
- package/dist-types/components/c-button/CButton.vue.d.ts +146 -0
- package/dist-types/components/c-button-group/CButtonGroup.vue.d.ts +66 -0
- package/dist-types/components/c-card/CCard.vue.d.ts +26 -0
- package/dist-types/components/c-card-actions/CCardActions.vue.d.ts +36 -0
- package/dist-types/components/c-card-content/CCardContent.vue.d.ts +13 -0
- package/dist-types/components/c-card-title/CCardTitle.vue.d.ts +15 -0
- package/dist-types/components/c-checkbox/CCheckbox.vue.d.ts +120 -0
- package/dist-types/components/c-csc-logo/CCscLogo.vue.d.ts +13 -0
- package/dist-types/components/c-data-table/CDataTable.vue.d.ts +222 -0
- package/dist-types/components/c-divider/CDivider.vue.d.ts +9 -0
- package/dist-types/components/c-dropdown/CDropdown.vue.d.ts +62 -0
- package/dist-types/components/c-icon/CIcon.vue.d.ts +22 -0
- package/dist-types/components/c-icon-button/CIconButton.vue.d.ts +89 -0
- package/dist-types/components/c-input/CInput.vue.d.ts +101 -0
- package/dist-types/components/c-link/CLink.vue.d.ts +46 -0
- package/dist-types/components/c-list/CList.vue.d.ts +30 -0
- package/dist-types/components/c-list-item/CListItem.vue.d.ts +71 -0
- package/dist-types/components/c-list-item-title/CListItemTitle.vue.d.ts +23 -0
- package/dist-types/components/c-loader/CLoader.vue.d.ts +55 -0
- package/dist-types/components/c-login-button/CLoginButton.vue.d.ts +40 -0
- package/dist-types/components/c-login-buttons/CLoginButtons.vue.d.ts +13 -0
- package/dist-types/components/c-login-card/CLoginCard.vue.d.ts +55 -0
- package/dist-types/components/c-login-card-actions/CLoginCardActions.vue.d.ts +36 -0
- package/dist-types/components/c-login-card-content/CLoginCardContent.vue.d.ts +13 -0
- package/dist-types/components/c-login-card-title/CLoginCardTitle.vue.d.ts +13 -0
- package/dist-types/components/c-main/CMain.vue.d.ts +23 -0
- package/dist-types/components/c-menu/CMenu.vue.d.ts +28 -0
- package/dist-types/components/c-menu-item/CMenuItem.vue.d.ts +34 -0
- package/dist-types/components/c-menu-label/CMenuLabel.vue.d.ts +13 -0
- package/dist-types/components/c-message/CMessage.vue.d.ts +36 -0
- package/dist-types/components/c-modal/CModal.vue.d.ts +38 -0
- package/dist-types/components/c-navigation-button/CNavigationButton.vue.d.ts +3 -0
- package/dist-types/components/c-option/COption.vue.d.ts +32 -0
- package/dist-types/components/c-option-value/COptionValue.vue.d.ts +13 -0
- package/dist-types/components/c-otp-input/COtpInput.vue.d.ts +87 -0
- package/dist-types/components/c-page/CPage.vue.d.ts +25 -0
- package/dist-types/components/c-pagination/CPagination.vue.d.ts +57 -0
- package/dist-types/components/c-progress-bar/CProgressBar.vue.d.ts +42 -0
- package/dist-types/components/c-radio/CRadio.vue.d.ts +38 -0
- package/dist-types/components/c-radio-group/CRadioGroup.vue.d.ts +108 -0
- package/dist-types/components/c-select/CSelect.vue.d.ts +104 -0
- package/dist-types/components/c-side-navigation/CSideNavigation.vue.d.ts +39 -0
- package/dist-types/components/c-side-navigation-item/CSideNavigationItem.vue.d.ts +51 -0
- package/dist-types/components/c-side-navigation-title/CSideNavigationTitle.vue.d.ts +13 -0
- package/dist-types/components/c-slider/CSlider.vue.d.ts +109 -0
- package/dist-types/components/c-spinner/CSpinner.vue.d.ts +28 -0
- package/dist-types/components/c-status/CStatus.vue.d.ts +23 -0
- package/dist-types/components/c-step/CStep.vue.d.ts +30 -0
- package/dist-types/components/c-steps/CSteps.vue.d.ts +23 -0
- package/dist-types/components/c-sub-navigation-item/CSubNavigationItem.vue.d.ts +53 -0
- package/dist-types/components/c-switch/CSwitch.vue.d.ts +80 -0
- package/dist-types/components/c-tab/CTab.vue.d.ts +60 -0
- package/dist-types/components/c-tab-buttons/CTabButtons.vue.d.ts +36 -0
- package/dist-types/components/c-tab-item/CTabItem.vue.d.ts +30 -0
- package/dist-types/components/c-tab-items/CTabItems.vue.d.ts +30 -0
- package/dist-types/components/c-table/CTable.vue.d.ts +20 -0
- package/dist-types/components/c-tabs/CTabs.vue.d.ts +63 -0
- package/dist-types/components/c-tag/CTag.vue.d.ts +53 -0
- package/dist-types/components/c-tags/CTags.vue.d.ts +37 -0
- package/dist-types/components/c-text-field/CTextField.vue.d.ts +194 -0
- package/dist-types/components/c-toast/CToast.vue.d.ts +23 -0
- package/dist-types/components/c-toasts/CToasts.vue.d.ts +46 -0
- package/dist-types/components/c-toolbar/CToolbar.vue.d.ts +13 -0
- package/dist-types/index.d.ts +38 -0
- package/dist-types/shared/FormLabel.vue.d.ts +34 -0
- package/dist-types/shared/anchorPolyfill.d.ts +24 -0
- package/dist-types/shared/coerceBoolean.d.ts +19 -0
- package/dist-types/shared/defineElement.d.ts +20 -0
- package/dist-types/shared/emitModelValue.d.ts +37 -0
- package/dist-types/shared/modalStack.d.ts +63 -0
- package/dist-types/shared/useHasSlot.d.ts +24 -0
- package/dist-types/shared/useHostEmit.d.ts +1 -0
- package/dist-types/shared/useRipple.d.ts +51 -0
- package/dist-types/tag-name-map.d.ts +1521 -0
- package/dist-types/theme/applyTheme.d.ts +25 -0
- package/dist-types/types.d.ts +51 -0
- package/package.json +63 -88
- package/LICENSE +0 -21
- package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -8
- package/dist/cjs/app-globals-V2Kpy_OQ.js.map +0 -1
- package/dist/cjs/c-accordion-item.cjs.entry.js +0 -123
- package/dist/cjs/c-accordion-item.cjs.entry.js.map +0 -1
- package/dist/cjs/c-accordion-item.entry.cjs.js.map +0 -1
- package/dist/cjs/c-accordion.cjs.entry.js +0 -66
- package/dist/cjs/c-accordion.cjs.entry.js.map +0 -1
- package/dist/cjs/c-accordion.entry.cjs.js.map +0 -1
- package/dist/cjs/c-alert.cjs.entry.js +0 -28
- package/dist/cjs/c-alert.cjs.entry.js.map +0 -1
- package/dist/cjs/c-alert.entry.cjs.js.map +0 -1
- package/dist/cjs/c-autocomplete_35.cjs.entry.js +0 -2672
- package/dist/cjs/c-autocomplete_35.cjs.entry.js.map +0 -1
- package/dist/cjs/c-data-table.cjs.entry.js +0 -708
- package/dist/cjs/c-data-table.cjs.entry.js.map +0 -1
- package/dist/cjs/c-data-table.entry.cjs.js.map +0 -1
- package/dist/cjs/c-link.cjs.entry.js +0 -30
- package/dist/cjs/c-link.cjs.entry.js.map +0 -1
- package/dist/cjs/c-link.entry.cjs.js.map +0 -1
- package/dist/cjs/c-list-item-title.cjs.entry.js +0 -25
- package/dist/cjs/c-list-item-title.cjs.entry.js.map +0 -1
- package/dist/cjs/c-list-item-title.entry.cjs.js.map +0 -1
- package/dist/cjs/c-list-item.cjs.entry.js +0 -81
- package/dist/cjs/c-list-item.cjs.entry.js.map +0 -1
- package/dist/cjs/c-list-item.entry.cjs.js.map +0 -1
- package/dist/cjs/c-list.cjs.entry.js +0 -46
- package/dist/cjs/c-list.cjs.entry.js.map +0 -1
- package/dist/cjs/c-list.entry.cjs.js.map +0 -1
- package/dist/cjs/c-login-button.cjs.entry.js +0 -23
- package/dist/cjs/c-login-button.cjs.entry.js.map +0 -1
- package/dist/cjs/c-login-button.entry.cjs.js.map +0 -1
- package/dist/cjs/c-login-buttons.cjs.entry.js +0 -20
- package/dist/cjs/c-login-buttons.cjs.entry.js.map +0 -1
- package/dist/cjs/c-login-buttons.entry.cjs.js.map +0 -1
- package/dist/cjs/c-login-card-actions.cjs.entry.js +0 -19
- package/dist/cjs/c-login-card-actions.cjs.entry.js.map +0 -1
- package/dist/cjs/c-login-card-actions.entry.cjs.js.map +0 -1
- package/dist/cjs/c-login-card-content.cjs.entry.js +0 -20
- package/dist/cjs/c-login-card-content.cjs.entry.js.map +0 -1
- package/dist/cjs/c-login-card-content.entry.cjs.js.map +0 -1
- package/dist/cjs/c-login-card-title.cjs.entry.js +0 -20
- package/dist/cjs/c-login-card-title.cjs.entry.js.map +0 -1
- package/dist/cjs/c-login-card-title.entry.cjs.js.map +0 -1
- package/dist/cjs/c-login-card.cjs.entry.js +0 -65
- package/dist/cjs/c-login-card.cjs.entry.js.map +0 -1
- package/dist/cjs/c-login-card.entry.cjs.js.map +0 -1
- package/dist/cjs/c-menu.c-menu-items.entry.cjs.js.map +0 -1
- package/dist/cjs/c-menu_2.cjs.entry.js +0 -352
- package/dist/cjs/c-menu_2.cjs.entry.js.map +0 -1
- package/dist/cjs/c-modal.cjs.entry.js +0 -178
- package/dist/cjs/c-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/c-modal.entry.cjs.js.map +0 -1
- package/dist/cjs/c-option-value.cjs.entry.js +0 -20
- package/dist/cjs/c-option-value.cjs.entry.js.map +0 -1
- package/dist/cjs/c-option-value.entry.cjs.js.map +0 -1
- package/dist/cjs/c-pagination.cjs.entry.js +0 -223
- package/dist/cjs/c-pagination.cjs.entry.js.map +0 -1
- package/dist/cjs/c-pagination.entry.cjs.js.map +0 -1
- package/dist/cjs/c-progress-bar.cjs.entry.js +0 -58
- package/dist/cjs/c-progress-bar.cjs.entry.js.map +0 -1
- package/dist/cjs/c-progress-bar.entry.cjs.js.map +0 -1
- package/dist/cjs/c-row.cjs.entry.js +0 -32
- package/dist/cjs/c-row.cjs.entry.js.map +0 -1
- package/dist/cjs/c-row.entry.cjs.js.map +0 -1
- package/dist/cjs/c-slider.cjs.entry.js +0 -94
- package/dist/cjs/c-slider.cjs.entry.js.map +0 -1
- package/dist/cjs/c-slider.entry.cjs.js.map +0 -1
- package/dist/cjs/c-status.cjs.entry.js +0 -21
- package/dist/cjs/c-status.cjs.entry.js.map +0 -1
- package/dist/cjs/c-status.entry.cjs.js.map +0 -1
- package/dist/cjs/c-step.cjs.entry.js +0 -26
- package/dist/cjs/c-step.cjs.entry.js.map +0 -1
- package/dist/cjs/c-step.entry.cjs.js.map +0 -1
- package/dist/cjs/c-steps.cjs.entry.js +0 -76
- package/dist/cjs/c-steps.cjs.entry.js.map +0 -1
- package/dist/cjs/c-steps.entry.cjs.js.map +0 -1
- package/dist/cjs/c-swiper-tab.cjs.entry.js +0 -41
- package/dist/cjs/c-swiper-tab.cjs.entry.js.map +0 -1
- package/dist/cjs/c-swiper-tab.entry.cjs.js.map +0 -1
- package/dist/cjs/c-swiper.cjs.entry.js +0 -4181
- package/dist/cjs/c-swiper.cjs.entry.js.map +0 -1
- package/dist/cjs/c-swiper.entry.cjs.js.map +0 -1
- package/dist/cjs/c-tab-buttons.cjs.entry.js +0 -132
- package/dist/cjs/c-tab-buttons.cjs.entry.js.map +0 -1
- package/dist/cjs/c-tab-buttons.entry.cjs.js.map +0 -1
- package/dist/cjs/c-tab-item.cjs.entry.js +0 -39
- package/dist/cjs/c-tab-item.cjs.entry.js.map +0 -1
- package/dist/cjs/c-tab-item.entry.cjs.js.map +0 -1
- package/dist/cjs/c-tab-items.cjs.entry.js +0 -76
- package/dist/cjs/c-tab-items.cjs.entry.js.map +0 -1
- package/dist/cjs/c-tab-items.entry.cjs.js.map +0 -1
- package/dist/cjs/c-tab.cjs.entry.js +0 -54
- package/dist/cjs/c-tab.cjs.entry.js.map +0 -1
- package/dist/cjs/c-tab.entry.cjs.js.map +0 -1
- package/dist/cjs/c-tabs.cjs.entry.js +0 -423
- package/dist/cjs/c-tabs.cjs.entry.js.map +0 -1
- package/dist/cjs/c-tabs.entry.cjs.js.map +0 -1
- package/dist/cjs/c-tag.cjs.entry.js +0 -46
- package/dist/cjs/c-tag.cjs.entry.js.map +0 -1
- package/dist/cjs/c-tag.entry.cjs.js.map +0 -1
- package/dist/cjs/c-tags.cjs.entry.js +0 -30
- package/dist/cjs/c-tags.cjs.entry.js.map +0 -1
- package/dist/cjs/c-tags.entry.cjs.js.map +0 -1
- package/dist/cjs/c-toast.cjs.entry.js +0 -71
- package/dist/cjs/c-toast.cjs.entry.js.map +0 -1
- package/dist/cjs/c-toast.entry.cjs.js.map +0 -1
- package/dist/cjs/c-toasts.cjs.entry.js +0 -79
- package/dist/cjs/c-toasts.cjs.entry.js.map +0 -1
- package/dist/cjs/c-toasts.entry.cjs.js.map +0 -1
- package/dist/cjs/csc-ui.cjs.js +0 -28
- package/dist/cjs/csc-ui.cjs.js.map +0 -1
- package/dist/cjs/index-BTBT6v3v.js +0 -2052
- package/dist/cjs/index-BTBT6v3v.js.map +0 -1
- package/dist/cjs/index.cjs.js +0 -24
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js +0 -16
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/mdi-D4fs5l1W.js +0 -49
- package/dist/cjs/mdi-D4fs5l1W.js.map +0 -1
- package/dist/collection/collection-manifest.json +0 -82
- package/dist/collection/components/c-accordion/c-accordion.css +0 -31
- package/dist/collection/components/c-accordion/c-accordion.js +0 -179
- package/dist/collection/components/c-accordion/c-accordion.js.map +0 -1
- package/dist/collection/components/c-accordion/test/c-accordion.visual.js +0 -52
- package/dist/collection/components/c-accordion/test/c-accordion.visual.js.map +0 -1
- package/dist/collection/components/c-accordion-item/c-accordion-item.css +0 -139
- package/dist/collection/components/c-accordion-item/c-accordion-item.js +0 -273
- package/dist/collection/components/c-accordion-item/c-accordion-item.js.map +0 -1
- package/dist/collection/components/c-alert/c-alert.css +0 -67
- package/dist/collection/components/c-alert/c-alert.js +0 -58
- package/dist/collection/components/c-alert/c-alert.js.map +0 -1
- package/dist/collection/components/c-alert/test/c-alert.visual.js +0 -24
- package/dist/collection/components/c-alert/test/c-alert.visual.js.map +0 -1
- package/dist/collection/components/c-autocomplete/c-autocomplete.css +0 -233
- package/dist/collection/components/c-autocomplete/c-autocomplete.js +0 -806
- package/dist/collection/components/c-autocomplete/c-autocomplete.js.map +0 -1
- package/dist/collection/components/c-autocomplete/test/c-autocomplete.visual.js +0 -31
- package/dist/collection/components/c-autocomplete/test/c-autocomplete.visual.js.map +0 -1
- package/dist/collection/components/c-backdrop/c-backdrop.css +0 -60
- package/dist/collection/components/c-backdrop/c-backdrop.js +0 -64
- package/dist/collection/components/c-backdrop/c-backdrop.js.map +0 -1
- package/dist/collection/components/c-badge/c-badge.css +0 -51
- package/dist/collection/components/c-badge/c-badge.js +0 -19
- package/dist/collection/components/c-badge/c-badge.js.map +0 -1
- package/dist/collection/components/c-button/c-button.css +0 -749
- package/dist/collection/components/c-button/c-button.js +0 -545
- package/dist/collection/components/c-button/c-button.js.map +0 -1
- package/dist/collection/components/c-button/test/c-button.visual.js +0 -98
- package/dist/collection/components/c-button/test/c-button.visual.js.map +0 -1
- package/dist/collection/components/c-card/assets/puhti.gif +0 -0
- package/dist/collection/components/c-card/c-card.css +0 -67
- package/dist/collection/components/c-card/c-card.js +0 -141
- package/dist/collection/components/c-card/c-card.js.map +0 -1
- package/dist/collection/components/c-card/test/c-card.visual.js +0 -18
- package/dist/collection/components/c-card/test/c-card.visual.js.map +0 -1
- package/dist/collection/components/c-card-actions/c-card-actions.css +0 -72
- package/dist/collection/components/c-card-actions/c-card-actions.js +0 -72
- package/dist/collection/components/c-card-actions/c-card-actions.js.map +0 -1
- package/dist/collection/components/c-card-content/c-card-content.css +0 -36
- package/dist/collection/components/c-card-content/c-card-content.js +0 -19
- package/dist/collection/components/c-card-content/c-card-content.js.map +0 -1
- package/dist/collection/components/c-card-title/c-card-title.css +0 -70
- package/dist/collection/components/c-card-title/c-card-title.js +0 -49
- package/dist/collection/components/c-card-title/c-card-title.js.map +0 -1
- package/dist/collection/components/c-checkbox/c-checkbox.css +0 -149
- package/dist/collection/components/c-checkbox/c-checkbox.js +0 -379
- package/dist/collection/components/c-checkbox/c-checkbox.js.map +0 -1
- package/dist/collection/components/c-checkbox/test/c-checkbox.visual.js +0 -22
- package/dist/collection/components/c-checkbox/test/c-checkbox.visual.js.map +0 -1
- package/dist/collection/components/c-csc-logo/c-csc-logo.css +0 -43
- package/dist/collection/components/c-csc-logo/c-csc-logo.js +0 -47
- package/dist/collection/components/c-csc-logo/c-csc-logo.js.map +0 -1
- package/dist/collection/components/c-data-table/c-data-table.css +0 -470
- package/dist/collection/components/c-data-table/c-data-table.js +0 -1205
- package/dist/collection/components/c-data-table/c-data-table.js.map +0 -1
- package/dist/collection/components/c-data-table/test/c-data-table.visual.js +0 -31
- package/dist/collection/components/c-data-table/test/c-data-table.visual.js.map +0 -1
- package/dist/collection/components/c-data-table/test/data/index.js +0 -104
- package/dist/collection/components/c-data-table/test/data/index.js.map +0 -1
- package/dist/collection/components/c-dropdown/c-dropdown-options-item.js +0 -3
- package/dist/collection/components/c-dropdown/c-dropdown-options-item.js.map +0 -1
- package/dist/collection/components/c-dropdown/c-dropdown.css +0 -164
- package/dist/collection/components/c-dropdown/c-dropdown.js +0 -651
- package/dist/collection/components/c-dropdown/c-dropdown.js.map +0 -1
- package/dist/collection/components/c-icon/c-icon.css +0 -44
- package/dist/collection/components/c-icon/c-icon.js +0 -93
- package/dist/collection/components/c-icon/c-icon.js.map +0 -1
- package/dist/collection/components/c-icon-button/c-icon-button.css +0 -689
- package/dist/collection/components/c-icon-button/c-icon-button.js +0 -257
- package/dist/collection/components/c-icon-button/c-icon-button.js.map +0 -1
- package/dist/collection/components/c-icon-button/test/c-icon-button.visual.js +0 -22
- package/dist/collection/components/c-icon-button/test/c-icon-button.visual.js.map +0 -1
- package/dist/collection/components/c-input/c-input.css +0 -335
- package/dist/collection/components/c-input/c-input.js +0 -887
- package/dist/collection/components/c-input/c-input.js.map +0 -1
- package/dist/collection/components/c-link/c-link.css +0 -60
- package/dist/collection/components/c-link/c-link.js +0 -115
- package/dist/collection/components/c-link/c-link.js.map +0 -1
- package/dist/collection/components/c-link/test/c-link.visual.js +0 -14
- package/dist/collection/components/c-link/test/c-link.visual.js.map +0 -1
- package/dist/collection/components/c-list/c-list.css +0 -38
- package/dist/collection/components/c-list/c-list.js +0 -93
- package/dist/collection/components/c-list/c-list.js.map +0 -1
- package/dist/collection/components/c-list-item/c-list-item.css +0 -96
- package/dist/collection/components/c-list-item/c-list-item.js +0 -231
- package/dist/collection/components/c-list-item/c-list-item.js.map +0 -1
- package/dist/collection/components/c-list-item-title/c-list-item-title.css +0 -38
- package/dist/collection/components/c-list-item-title/c-list-item-title.js +0 -50
- package/dist/collection/components/c-list-item-title/c-list-item-title.js.map +0 -1
- package/dist/collection/components/c-loader/c-loader.css +0 -106
- package/dist/collection/components/c-loader/c-loader.js +0 -126
- package/dist/collection/components/c-loader/c-loader.js.map +0 -1
- package/dist/collection/components/c-login-button/c-login-button.css +0 -84
- package/dist/collection/components/c-login-button/c-login-button.js +0 -87
- package/dist/collection/components/c-login-button/c-login-button.js.map +0 -1
- package/dist/collection/components/c-login-buttons/c-login-buttons.css +0 -28
- package/dist/collection/components/c-login-buttons/c-login-buttons.js +0 -19
- package/dist/collection/components/c-login-buttons/c-login-buttons.js.map +0 -1
- package/dist/collection/components/c-login-card/c-login-card.css +0 -96
- package/dist/collection/components/c-login-card/c-login-card.js +0 -181
- package/dist/collection/components/c-login-card/c-login-card.js.map +0 -1
- package/dist/collection/components/c-login-card/test/c-login-card.visual.js +0 -18
- package/dist/collection/components/c-login-card/test/c-login-card.visual.js.map +0 -1
- package/dist/collection/components/c-login-card-actions/c-login-card-actions.js +0 -57
- package/dist/collection/components/c-login-card-actions/c-login-card-actions.js.map +0 -1
- package/dist/collection/components/c-login-card-content/c-login-card-content.css +0 -31
- package/dist/collection/components/c-login-card-content/c-login-card-content.js +0 -19
- package/dist/collection/components/c-login-card-content/c-login-card-content.js.map +0 -1
- package/dist/collection/components/c-login-card-title/c-login-card-title.css +0 -37
- package/dist/collection/components/c-login-card-title/c-login-card-title.js +0 -19
- package/dist/collection/components/c-login-card-title/c-login-card-title.js.map +0 -1
- package/dist/collection/components/c-main/c-main.css +0 -61
- package/dist/collection/components/c-main/c-main.js +0 -46
- package/dist/collection/components/c-main/c-main.js.map +0 -1
- package/dist/collection/components/c-menu/c-menu.css +0 -123
- package/dist/collection/components/c-menu/c-menu.js +0 -296
- package/dist/collection/components/c-menu/c-menu.js.map +0 -1
- package/dist/collection/components/c-menu/test/c-menu.visual.js +0 -43
- package/dist/collection/components/c-menu/test/c-menu.visual.js.map +0 -1
- package/dist/collection/components/c-menu-items/c-menu-items.css +0 -102
- package/dist/collection/components/c-menu-items/c-menu-items.js +0 -438
- package/dist/collection/components/c-menu-items/c-menu-items.js.map +0 -1
- package/dist/collection/components/c-message/c-message.css +0 -75
- package/dist/collection/components/c-message/c-message.js +0 -161
- package/dist/collection/components/c-message/c-message.js.map +0 -1
- package/dist/collection/components/c-modal/c-modal.css +0 -83
- package/dist/collection/components/c-modal/c-modal.js +0 -310
- package/dist/collection/components/c-modal/c-modal.js.map +0 -1
- package/dist/collection/components/c-navigation-button/c-navigation-button.css +0 -38
- package/dist/collection/components/c-navigation-button/c-navigation-button.js +0 -20
- package/dist/collection/components/c-navigation-button/c-navigation-button.js.map +0 -1
- package/dist/collection/components/c-option/c-option.css +0 -28
- package/dist/collection/components/c-option/c-option.js +0 -105
- package/dist/collection/components/c-option/c-option.js.map +0 -1
- package/dist/collection/components/c-option-value/c-option-value.css +0 -26
- package/dist/collection/components/c-option-value/c-option-value.js +0 -19
- package/dist/collection/components/c-option-value/c-option-value.js.map +0 -1
- package/dist/collection/components/c-otp-input/c-otp-input.css +0 -92
- package/dist/collection/components/c-otp-input/c-otp-input.js +0 -396
- package/dist/collection/components/c-otp-input/c-otp-input.js.map +0 -1
- package/dist/collection/components/c-page/c-page.css +0 -66
- package/dist/collection/components/c-page/c-page.js +0 -58
- package/dist/collection/components/c-page/c-page.js.map +0 -1
- package/dist/collection/components/c-pagination/c-pagination.css +0 -129
- package/dist/collection/components/c-pagination/c-pagination.js +0 -367
- package/dist/collection/components/c-pagination/c-pagination.js.map +0 -1
- package/dist/collection/components/c-pagination/test/c-pagination.visual.js +0 -42
- package/dist/collection/components/c-pagination/test/c-pagination.visual.js.map +0 -1
- package/dist/collection/components/c-progress-bar/c-progress-bar.css +0 -143
- package/dist/collection/components/c-progress-bar/c-progress-bar.js +0 -163
- package/dist/collection/components/c-progress-bar/c-progress-bar.js.map +0 -1
- package/dist/collection/components/c-progress-bar/test/c-progress-bar.visual.js +0 -22
- package/dist/collection/components/c-progress-bar/test/c-progress-bar.visual.js.map +0 -1
- package/dist/collection/components/c-radio/c-radio.css +0 -26
- package/dist/collection/components/c-radio/c-radio.js +0 -86
- package/dist/collection/components/c-radio/c-radio.js.map +0 -1
- package/dist/collection/components/c-radio-group/c-radio-group.css +0 -160
- package/dist/collection/components/c-radio-group/c-radio-group.js +0 -407
- package/dist/collection/components/c-radio-group/c-radio-group.js.map +0 -1
- package/dist/collection/components/c-radio-group/test/c-radio-group.visual.js +0 -24
- package/dist/collection/components/c-radio-group/test/c-radio-group.visual.js.map +0 -1
- package/dist/collection/components/c-radio-group/test/items.js +0 -6
- package/dist/collection/components/c-radio-group/test/items.js.map +0 -1
- package/dist/collection/components/c-ripple/c-ripple.css +0 -53
- package/dist/collection/components/c-ripple/c-ripple.js +0 -94
- package/dist/collection/components/c-ripple/c-ripple.js.map +0 -1
- package/dist/collection/components/c-row/c-row.css +0 -71
- package/dist/collection/components/c-row/c-row.js +0 -127
- package/dist/collection/components/c-row/c-row.js.map +0 -1
- package/dist/collection/components/c-select/c-select.css +0 -212
- package/dist/collection/components/c-select/c-select.js +0 -852
- package/dist/collection/components/c-select/c-select.js.map +0 -1
- package/dist/collection/components/c-select/test/c-select.visual.js +0 -36
- package/dist/collection/components/c-select/test/c-select.visual.js.map +0 -1
- package/dist/collection/components/c-select/test/items.js +0 -10
- package/dist/collection/components/c-select/test/items.js.map +0 -1
- package/dist/collection/components/c-side-navigation/c-side-navigation.css +0 -162
- package/dist/collection/components/c-side-navigation/c-side-navigation.js +0 -153
- package/dist/collection/components/c-side-navigation/c-side-navigation.js.map +0 -1
- package/dist/collection/components/c-side-navigation/test/c-side-navigation.visual.js +0 -16
- package/dist/collection/components/c-side-navigation/test/c-side-navigation.visual.js.map +0 -1
- package/dist/collection/components/c-side-navigation-item/c-side-navigation-item.css +0 -173
- package/dist/collection/components/c-side-navigation-item/c-side-navigation-item.js +0 -235
- package/dist/collection/components/c-side-navigation-item/c-side-navigation-item.js.map +0 -1
- package/dist/collection/components/c-side-navigation-title/c-side-navigation-title.css +0 -40
- package/dist/collection/components/c-side-navigation-title/c-side-navigation-title.js +0 -19
- package/dist/collection/components/c-side-navigation-title/c-side-navigation-title.js.map +0 -1
- package/dist/collection/components/c-slider/c-slider.css +0 -258
- package/dist/collection/components/c-slider/c-slider.js +0 -412
- package/dist/collection/components/c-slider/c-slider.js.map +0 -1
- package/dist/collection/components/c-spacer/c-spacer.css +0 -26
- package/dist/collection/components/c-spacer/c-spacer.js +0 -19
- package/dist/collection/components/c-spacer/c-spacer.js.map +0 -1
- package/dist/collection/components/c-spinner/c-spinner.css +0 -64
- package/dist/collection/components/c-spinner/c-spinner.js +0 -98
- package/dist/collection/components/c-spinner/c-spinner.js.map +0 -1
- package/dist/collection/components/c-status/c-status.css +0 -79
- package/dist/collection/components/c-status/c-status.js +0 -43
- package/dist/collection/components/c-status/c-status.js.map +0 -1
- package/dist/collection/components/c-status/test/c-status.visual.js +0 -10
- package/dist/collection/components/c-status/test/c-status.visual.js.map +0 -1
- package/dist/collection/components/c-step/c-step.css +0 -109
- package/dist/collection/components/c-step/c-step.js +0 -77
- package/dist/collection/components/c-step/c-step.js.map +0 -1
- package/dist/collection/components/c-steps/c-steps.css +0 -86
- package/dist/collection/components/c-steps/c-steps.js +0 -126
- package/dist/collection/components/c-steps/c-steps.js.map +0 -1
- package/dist/collection/components/c-steps/test/c-steps.visual.js +0 -19
- package/dist/collection/components/c-steps/test/c-steps.visual.js.map +0 -1
- package/dist/collection/components/c-sub-navigation-item/c-sub-navigation-item.css +0 -189
- package/dist/collection/components/c-sub-navigation-item/c-sub-navigation-item.js +0 -151
- package/dist/collection/components/c-sub-navigation-item/c-sub-navigation-item.js.map +0 -1
- package/dist/collection/components/c-swiper/c-swiper.css +0 -322
- package/dist/collection/components/c-swiper/c-swiper.js +0 -219
- package/dist/collection/components/c-swiper/c-swiper.js.map +0 -1
- package/dist/collection/components/c-swiper/test/c-swiper.visual.js +0 -20
- package/dist/collection/components/c-swiper/test/c-swiper.visual.js.map +0 -1
- package/dist/collection/components/c-swiper-tab/c-swiper-tab.css +0 -120
- package/dist/collection/components/c-swiper-tab/c-swiper-tab.js +0 -219
- package/dist/collection/components/c-swiper-tab/c-swiper-tab.js.map +0 -1
- package/dist/collection/components/c-switch/c-switch.css +0 -169
- package/dist/collection/components/c-switch/c-switch.js +0 -256
- package/dist/collection/components/c-switch/c-switch.js.map +0 -1
- package/dist/collection/components/c-switch/test/c-switch.visual.js +0 -28
- package/dist/collection/components/c-switch/test/c-switch.visual.js.map +0 -1
- package/dist/collection/components/c-tab/c-tab.css +0 -112
- package/dist/collection/components/c-tab/c-tab.js +0 -241
- package/dist/collection/components/c-tab/c-tab.js.map +0 -1
- package/dist/collection/components/c-tab-buttons/c-tab-buttons.css +0 -113
- package/dist/collection/components/c-tab-buttons/c-tab-buttons.js +0 -284
- package/dist/collection/components/c-tab-buttons/c-tab-buttons.js.map +0 -1
- package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.visual.js +0 -47
- package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.visual.js.map +0 -1
- package/dist/collection/components/c-tab-item/c-tab-item.css +0 -50
- package/dist/collection/components/c-tab-item/c-tab-item.js +0 -103
- package/dist/collection/components/c-tab-item/c-tab-item.js.map +0 -1
- package/dist/collection/components/c-tab-items/c-tab-items.css +0 -36
- package/dist/collection/components/c-tab-items/c-tab-items.js +0 -140
- package/dist/collection/components/c-tab-items/c-tab-items.js.map +0 -1
- package/dist/collection/components/c-table/c-table.css +0 -153
- package/dist/collection/components/c-table/c-table.js +0 -141
- package/dist/collection/components/c-table/c-table.js.map +0 -1
- package/dist/collection/components/c-tabs/c-tabs.css +0 -173
- package/dist/collection/components/c-tabs/c-tabs.js +0 -611
- package/dist/collection/components/c-tabs/c-tabs.js.map +0 -1
- package/dist/collection/components/c-tabs/test/c-tabs.visual.js +0 -16
- package/dist/collection/components/c-tabs/test/c-tabs.visual.js.map +0 -1
- package/dist/collection/components/c-tag/c-tag.css +0 -182
- package/dist/collection/components/c-tag/c-tag.js +0 -208
- package/dist/collection/components/c-tag/c-tag.js.map +0 -1
- package/dist/collection/components/c-tag/test/c-tag.visual.js +0 -26
- package/dist/collection/components/c-tag/test/c-tag.visual.js.map +0 -1
- package/dist/collection/components/c-tags/c-tags.css +0 -29
- package/dist/collection/components/c-tags/c-tags.js +0 -55
- package/dist/collection/components/c-tags/c-tags.js.map +0 -1
- package/dist/collection/components/c-text-field/c-text-field.css +0 -81
- package/dist/collection/components/c-text-field/c-text-field.js +0 -692
- package/dist/collection/components/c-text-field/c-text-field.js.map +0 -1
- package/dist/collection/components/c-text-field/test/c-text-field.visual.js +0 -41
- package/dist/collection/components/c-text-field/test/c-text-field.visual.js.map +0 -1
- package/dist/collection/components/c-toast/c-toast.css +0 -161
- package/dist/collection/components/c-toast/c-toast.js +0 -146
- package/dist/collection/components/c-toast/c-toast.js.map +0 -1
- package/dist/collection/components/c-toasts/c-toasts.css +0 -69
- package/dist/collection/components/c-toasts/c-toasts.js +0 -204
- package/dist/collection/components/c-toasts/c-toasts.js.map +0 -1
- package/dist/collection/components/c-toasts/test/c-toasts.visual.js +0 -27
- package/dist/collection/components/c-toasts/test/c-toasts.visual.js.map +0 -1
- package/dist/collection/components/c-toolbar/c-toolbar.css +0 -54
- package/dist/collection/components/c-toolbar/c-toolbar.js +0 -19
- package/dist/collection/components/c-toolbar/c-toolbar.js.map +0 -1
- package/dist/collection/components/c-toolbar/test/c-toolbar.visual.js +0 -10
- package/dist/collection/components/c-toolbar/test/c-toolbar.visual.js.map +0 -1
- package/dist/collection/index.js +0 -2
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/styles/tailwind/theme.js +0 -120
- package/dist/collection/types/index.js +0 -20
- package/dist/collection/types/index.js.map +0 -1
- package/dist/collection/utils/getScrollParent.js +0 -23
- package/dist/collection/utils/getScrollParent.js.map +0 -1
- package/dist/collection/utils/index.js +0 -2
- package/dist/collection/utils/index.js.map +0 -1
- package/dist/collection/utils/test/sleep.js +0 -2
- package/dist/collection/utils/test/sleep.js.map +0 -1
- package/dist/collection/utils/test/takeScreenshot.js +0 -11
- package/dist/collection/utils/test/takeScreenshot.js.map +0 -1
- package/dist/components/c-accordion-item.d.ts +0 -11
- package/dist/components/c-accordion-item.js +0 -153
- package/dist/components/c-accordion-item.js.map +0 -1
- package/dist/components/c-accordion.d.ts +0 -11
- package/dist/components/c-accordion.js +0 -89
- package/dist/components/c-accordion.js.map +0 -1
- package/dist/components/c-alert.d.ts +0 -11
- package/dist/components/c-alert.js +0 -46
- package/dist/components/c-alert.js.map +0 -1
- package/dist/components/c-autocomplete.d.ts +0 -11
- package/dist/components/c-autocomplete.js +0 -367
- package/dist/components/c-autocomplete.js.map +0 -1
- package/dist/components/c-backdrop.d.ts +0 -11
- package/dist/components/c-backdrop.js +0 -9
- package/dist/components/c-backdrop.js.map +0 -1
- package/dist/components/c-badge.d.ts +0 -11
- package/dist/components/c-badge.js +0 -9
- package/dist/components/c-badge.js.map +0 -1
- package/dist/components/c-button.d.ts +0 -11
- package/dist/components/c-button.js +0 -189
- package/dist/components/c-button.js.map +0 -1
- package/dist/components/c-card-actions.d.ts +0 -11
- package/dist/components/c-card-actions.js +0 -9
- package/dist/components/c-card-actions.js.map +0 -1
- package/dist/components/c-card-content.d.ts +0 -11
- package/dist/components/c-card-content.js +0 -36
- package/dist/components/c-card-content.js.map +0 -1
- package/dist/components/c-card-title.d.ts +0 -11
- package/dist/components/c-card-title.js +0 -64
- package/dist/components/c-card-title.js.map +0 -1
- package/dist/components/c-card.d.ts +0 -11
- package/dist/components/c-card.js +0 -120
- package/dist/components/c-card.js.map +0 -1
- package/dist/components/c-checkbox.d.ts +0 -11
- package/dist/components/c-checkbox.js +0 -9
- package/dist/components/c-checkbox.js.map +0 -1
- package/dist/components/c-csc-logo.d.ts +0 -11
- package/dist/components/c-csc-logo.js +0 -40
- package/dist/components/c-csc-logo.js.map +0 -1
- package/dist/components/c-data-table.d.ts +0 -11
- package/dist/components/c-data-table.js +0 -830
- package/dist/components/c-data-table.js.map +0 -1
- package/dist/components/c-dropdown.d.ts +0 -11
- package/dist/components/c-dropdown.js +0 -9
- package/dist/components/c-dropdown.js.map +0 -1
- package/dist/components/c-icon-button.d.ts +0 -11
- package/dist/components/c-icon-button.js +0 -9
- package/dist/components/c-icon-button.js.map +0 -1
- package/dist/components/c-icon.d.ts +0 -11
- package/dist/components/c-icon.js +0 -9
- package/dist/components/c-icon.js.map +0 -1
- package/dist/components/c-input.d.ts +0 -11
- package/dist/components/c-input.js +0 -9
- package/dist/components/c-input.js.map +0 -1
- package/dist/components/c-link.d.ts +0 -11
- package/dist/components/c-link.js +0 -51
- package/dist/components/c-link.js.map +0 -1
- package/dist/components/c-list-item-title.d.ts +0 -11
- package/dist/components/c-list-item-title.js +0 -43
- package/dist/components/c-list-item-title.js.map +0 -1
- package/dist/components/c-list-item.d.ts +0 -11
- package/dist/components/c-list-item.js +0 -113
- package/dist/components/c-list-item.js.map +0 -1
- package/dist/components/c-list.d.ts +0 -11
- package/dist/components/c-list.js +0 -66
- package/dist/components/c-list.js.map +0 -1
- package/dist/components/c-loader.d.ts +0 -11
- package/dist/components/c-loader.js +0 -9
- package/dist/components/c-loader.js.map +0 -1
- package/dist/components/c-login-button.d.ts +0 -11
- package/dist/components/c-login-button.js +0 -43
- package/dist/components/c-login-button.js.map +0 -1
- package/dist/components/c-login-buttons.d.ts +0 -11
- package/dist/components/c-login-buttons.js +0 -36
- package/dist/components/c-login-buttons.js.map +0 -1
- package/dist/components/c-login-card-actions.d.ts +0 -11
- package/dist/components/c-login-card-actions.js +0 -44
- package/dist/components/c-login-card-actions.js.map +0 -1
- package/dist/components/c-login-card-content.d.ts +0 -11
- package/dist/components/c-login-card-content.js +0 -36
- package/dist/components/c-login-card-content.js.map +0 -1
- package/dist/components/c-login-card-title.d.ts +0 -11
- package/dist/components/c-login-card-title.js +0 -36
- package/dist/components/c-login-card-title.js.map +0 -1
- package/dist/components/c-login-card.d.ts +0 -11
- package/dist/components/c-login-card.js +0 -88
- package/dist/components/c-login-card.js.map +0 -1
- package/dist/components/c-main.d.ts +0 -11
- package/dist/components/c-main.js +0 -45
- package/dist/components/c-main.js.map +0 -1
- package/dist/components/c-menu-items.d.ts +0 -11
- package/dist/components/c-menu-items.js +0 -9
- package/dist/components/c-menu-items.js.map +0 -1
- package/dist/components/c-menu.d.ts +0 -11
- package/dist/components/c-menu.js +0 -9
- package/dist/components/c-menu.js.map +0 -1
- package/dist/components/c-message.d.ts +0 -11
- package/dist/components/c-message.js +0 -9
- package/dist/components/c-message.js.map +0 -1
- package/dist/components/c-modal.d.ts +0 -11
- package/dist/components/c-modal.js +0 -205
- package/dist/components/c-modal.js.map +0 -1
- package/dist/components/c-navigation-button.d.ts +0 -11
- package/dist/components/c-navigation-button.js +0 -67
- package/dist/components/c-navigation-button.js.map +0 -1
- package/dist/components/c-option-value.d.ts +0 -11
- package/dist/components/c-option-value.js +0 -36
- package/dist/components/c-option-value.js.map +0 -1
- package/dist/components/c-option.d.ts +0 -11
- package/dist/components/c-option.js +0 -43
- package/dist/components/c-option.js.map +0 -1
- package/dist/components/c-otp-input.d.ts +0 -11
- package/dist/components/c-otp-input.js +0 -201
- package/dist/components/c-otp-input.js.map +0 -1
- package/dist/components/c-page.d.ts +0 -11
- package/dist/components/c-page.js +0 -51
- package/dist/components/c-page.js.map +0 -1
- package/dist/components/c-pagination.d.ts +0 -11
- package/dist/components/c-pagination.js +0 -9
- package/dist/components/c-pagination.js.map +0 -1
- package/dist/components/c-progress-bar.d.ts +0 -11
- package/dist/components/c-progress-bar.js +0 -80
- package/dist/components/c-progress-bar.js.map +0 -1
- package/dist/components/c-radio-group.d.ts +0 -11
- package/dist/components/c-radio-group.js +0 -157
- package/dist/components/c-radio-group.js.map +0 -1
- package/dist/components/c-radio.d.ts +0 -11
- package/dist/components/c-radio.js +0 -42
- package/dist/components/c-radio.js.map +0 -1
- package/dist/components/c-ripple.d.ts +0 -11
- package/dist/components/c-ripple.js +0 -9
- package/dist/components/c-ripple.js.map +0 -1
- package/dist/components/c-row.d.ts +0 -11
- package/dist/components/c-row.js +0 -53
- package/dist/components/c-row.js.map +0 -1
- package/dist/components/c-select.d.ts +0 -11
- package/dist/components/c-select.js +0 -441
- package/dist/components/c-select.js.map +0 -1
- package/dist/components/c-side-navigation-item.d.ts +0 -11
- package/dist/components/c-side-navigation-item.js +0 -161
- package/dist/components/c-side-navigation-item.js.map +0 -1
- package/dist/components/c-side-navigation-title.d.ts +0 -11
- package/dist/components/c-side-navigation-title.js +0 -36
- package/dist/components/c-side-navigation-title.js.map +0 -1
- package/dist/components/c-side-navigation.d.ts +0 -11
- package/dist/components/c-side-navigation.js +0 -133
- package/dist/components/c-side-navigation.js.map +0 -1
- package/dist/components/c-slider.d.ts +0 -11
- package/dist/components/c-slider.js +0 -130
- package/dist/components/c-slider.js.map +0 -1
- package/dist/components/c-spacer.d.ts +0 -11
- package/dist/components/c-spacer.js +0 -9
- package/dist/components/c-spacer.js.map +0 -1
- package/dist/components/c-spinner.d.ts +0 -11
- package/dist/components/c-spinner.js +0 -9
- package/dist/components/c-spinner.js.map +0 -1
- package/dist/components/c-status.d.ts +0 -11
- package/dist/components/c-status.js +0 -39
- package/dist/components/c-status.js.map +0 -1
- package/dist/components/c-step.d.ts +0 -11
- package/dist/components/c-step.js +0 -45
- package/dist/components/c-step.js.map +0 -1
- package/dist/components/c-steps.d.ts +0 -11
- package/dist/components/c-steps.js +0 -98
- package/dist/components/c-steps.js.map +0 -1
- package/dist/components/c-sub-navigation-item.d.ts +0 -11
- package/dist/components/c-sub-navigation-item.js +0 -82
- package/dist/components/c-sub-navigation-item.js.map +0 -1
- package/dist/components/c-swiper-tab.d.ts +0 -11
- package/dist/components/c-swiper-tab.js +0 -71
- package/dist/components/c-swiper-tab.js.map +0 -1
- package/dist/components/c-swiper.d.ts +0 -11
- package/dist/components/c-swiper.js +0 -4226
- package/dist/components/c-swiper.js.map +0 -1
- package/dist/components/c-switch.d.ts +0 -11
- package/dist/components/c-switch.js +0 -98
- package/dist/components/c-switch.js.map +0 -1
- package/dist/components/c-tab-buttons.d.ts +0 -11
- package/dist/components/c-tab-buttons.js +0 -156
- package/dist/components/c-tab-buttons.js.map +0 -1
- package/dist/components/c-tab-item.d.ts +0 -11
- package/dist/components/c-tab-item.js +0 -58
- package/dist/components/c-tab-item.js.map +0 -1
- package/dist/components/c-tab-items.d.ts +0 -11
- package/dist/components/c-tab-items.js +0 -98
- package/dist/components/c-tab-items.js.map +0 -1
- package/dist/components/c-tab.d.ts +0 -11
- package/dist/components/c-tab.js +0 -83
- package/dist/components/c-tab.js.map +0 -1
- package/dist/components/c-table.d.ts +0 -11
- package/dist/components/c-table.js +0 -95
- package/dist/components/c-table.js.map +0 -1
- package/dist/components/c-tabs.d.ts +0 -11
- package/dist/components/c-tabs.js +0 -483
- package/dist/components/c-tabs.js.map +0 -1
- package/dist/components/c-tag.d.ts +0 -11
- package/dist/components/c-tag.js +0 -100
- package/dist/components/c-tag.js.map +0 -1
- package/dist/components/c-tags.d.ts +0 -11
- package/dist/components/c-tags.js +0 -48
- package/dist/components/c-tags.js.map +0 -1
- package/dist/components/c-text-field.d.ts +0 -11
- package/dist/components/c-text-field.js +0 -197
- package/dist/components/c-text-field.js.map +0 -1
- package/dist/components/c-toast.d.ts +0 -11
- package/dist/components/c-toast.js +0 -9
- package/dist/components/c-toast.js.map +0 -1
- package/dist/components/c-toasts.d.ts +0 -11
- package/dist/components/c-toasts.js +0 -133
- package/dist/components/c-toasts.js.map +0 -1
- package/dist/components/c-toolbar.d.ts +0 -11
- package/dist/components/c-toolbar.js +0 -36
- package/dist/components/c-toolbar.js.map +0 -1
- package/dist/components/index.d.ts +0 -178
- package/dist/components/index.js +0 -75
- package/dist/components/index.js.map +0 -1
- package/dist/components/p-BCgTj9pp.js +0 -95
- package/dist/components/p-BCgTj9pp.js.map +0 -1
- package/dist/components/p-BDgw4nNJ.js +0 -93
- package/dist/components/p-BDgw4nNJ.js.map +0 -1
- package/dist/components/p-BGFYISEF.js +0 -112
- package/dist/components/p-BGFYISEF.js.map +0 -1
- package/dist/components/p-BJVLvFq9.js +0 -88
- package/dist/components/p-BJVLvFq9.js.map +0 -1
- package/dist/components/p-BOTLtsJq.js +0 -291
- package/dist/components/p-BOTLtsJq.js.map +0 -1
- package/dist/components/p-BUcGIY5c.js +0 -43
- package/dist/components/p-BUcGIY5c.js.map +0 -1
- package/dist/components/p-BWp2ldC5.js +0 -64
- package/dist/components/p-BWp2ldC5.js.map +0 -1
- package/dist/components/p-Bd7jq7MS.js +0 -27
- package/dist/components/p-Bd7jq7MS.js.map +0 -1
- package/dist/components/p-Bz0xxOlq.js +0 -294
- package/dist/components/p-Bz0xxOlq.js.map +0 -1
- package/dist/components/p-CSoWw_-h.js +0 -236
- package/dist/components/p-CSoWw_-h.js.map +0 -1
- package/dist/components/p-Cmy8x1XB.js +0 -46
- package/dist/components/p-Cmy8x1XB.js.map +0 -1
- package/dist/components/p-CoxL9G3v.js +0 -349
- package/dist/components/p-CoxL9G3v.js.map +0 -1
- package/dist/components/p-D6wozX_5.js +0 -50
- package/dist/components/p-D6wozX_5.js.map +0 -1
- package/dist/components/p-DEHCeGjr.js +0 -69
- package/dist/components/p-DEHCeGjr.js.map +0 -1
- package/dist/components/p-DKhrqMh8.js +0 -33
- package/dist/components/p-DKhrqMh8.js.map +0 -1
- package/dist/components/p-DoU8xThq.js +0 -49
- package/dist/components/p-DoU8xThq.js.map +0 -1
- package/dist/components/p-DpnXN7-j.js +0 -33
- package/dist/components/p-DpnXN7-j.js.map +0 -1
- package/dist/components/p-Fv9YCUj3.js +0 -1662
- package/dist/components/p-Fv9YCUj3.js.map +0 -1
- package/dist/components/p-lKEVcO51.js +0 -186
- package/dist/components/p-lKEVcO51.js.map +0 -1
- package/dist/csc-ui/assets/puhti.gif +0 -0
- package/dist/csc-ui/c-accordion-item.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-accordion.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-alert.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-data-table.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-link.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-list-item-title.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-list-item.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-list.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-login-button.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-login-buttons.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-login-card-actions.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-login-card-content.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-login-card-title.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-login-card.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-menu.c-menu-items.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-modal.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-option-value.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-pagination.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-progress-bar.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-row.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-slider.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-status.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-step.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-steps.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-swiper-tab.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-swiper.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-tab-buttons.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-tab-item.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-tab-items.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-tab.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-tabs.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-tag.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-tags.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-toast.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-toasts.entry.esm.js.map +0 -1
- package/dist/csc-ui/csc-ui.esm.js +0 -2
- package/dist/csc-ui/csc-ui.esm.js.map +0 -1
- package/dist/csc-ui/index.esm.js +0 -2
- package/dist/csc-ui/index.esm.js.map +0 -1
- package/dist/csc-ui/loader.esm.js.map +0 -1
- package/dist/csc-ui/p-084e4e2a.entry.js +0 -2
- package/dist/csc-ui/p-084e4e2a.entry.js.map +0 -1
- package/dist/csc-ui/p-0b56450b.entry.js +0 -2
- package/dist/csc-ui/p-0b56450b.entry.js.map +0 -1
- package/dist/csc-ui/p-0bf2ca66.entry.js +0 -2
- package/dist/csc-ui/p-0bf2ca66.entry.js.map +0 -1
- package/dist/csc-ui/p-0e4d4890.entry.js +0 -2
- package/dist/csc-ui/p-0e4d4890.entry.js.map +0 -1
- package/dist/csc-ui/p-1963c292.entry.js +0 -2
- package/dist/csc-ui/p-1963c292.entry.js.map +0 -1
- package/dist/csc-ui/p-1b1d64f3.entry.js +0 -2
- package/dist/csc-ui/p-1b1d64f3.entry.js.map +0 -1
- package/dist/csc-ui/p-2b012d43.entry.js +0 -2
- package/dist/csc-ui/p-2b012d43.entry.js.map +0 -1
- package/dist/csc-ui/p-39f34048.entry.js +0 -2
- package/dist/csc-ui/p-39f34048.entry.js.map +0 -1
- package/dist/csc-ui/p-3ab98b9a.entry.js +0 -2
- package/dist/csc-ui/p-3ab98b9a.entry.js.map +0 -1
- package/dist/csc-ui/p-41b53c95.entry.js +0 -2
- package/dist/csc-ui/p-41b53c95.entry.js.map +0 -1
- package/dist/csc-ui/p-4620a4d8.entry.js +0 -2
- package/dist/csc-ui/p-4620a4d8.entry.js.map +0 -1
- package/dist/csc-ui/p-4b9fc284.entry.js +0 -2
- package/dist/csc-ui/p-4b9fc284.entry.js.map +0 -1
- package/dist/csc-ui/p-516daf81.entry.js +0 -2
- package/dist/csc-ui/p-516daf81.entry.js.map +0 -1
- package/dist/csc-ui/p-5b10d5e5.entry.js +0 -2
- package/dist/csc-ui/p-5b10d5e5.entry.js.map +0 -1
- package/dist/csc-ui/p-732e7114.entry.js +0 -2
- package/dist/csc-ui/p-732e7114.entry.js.map +0 -1
- package/dist/csc-ui/p-73c56177.entry.js +0 -2
- package/dist/csc-ui/p-73c56177.entry.js.map +0 -1
- package/dist/csc-ui/p-74dfa0e1.entry.js +0 -2
- package/dist/csc-ui/p-74dfa0e1.entry.js.map +0 -1
- package/dist/csc-ui/p-774e25ed.entry.js +0 -2
- package/dist/csc-ui/p-774e25ed.entry.js.map +0 -1
- package/dist/csc-ui/p-781cde9c.entry.js +0 -2
- package/dist/csc-ui/p-781cde9c.entry.js.map +0 -1
- package/dist/csc-ui/p-7869709f.entry.js +0 -2
- package/dist/csc-ui/p-7869709f.entry.js.map +0 -1
- package/dist/csc-ui/p-7f778e0a.entry.js +0 -2
- package/dist/csc-ui/p-7f778e0a.entry.js.map +0 -1
- package/dist/csc-ui/p-7f84c51a.entry.js +0 -2
- package/dist/csc-ui/p-7f84c51a.entry.js.map +0 -1
- package/dist/csc-ui/p-82038174.entry.js +0 -2
- package/dist/csc-ui/p-82038174.entry.js.map +0 -1
- package/dist/csc-ui/p-82e5b6a3.entry.js +0 -2
- package/dist/csc-ui/p-82e5b6a3.entry.js.map +0 -1
- package/dist/csc-ui/p-8707c1c5.entry.js +0 -2
- package/dist/csc-ui/p-8707c1c5.entry.js.map +0 -1
- package/dist/csc-ui/p-95967094.entry.js +0 -2
- package/dist/csc-ui/p-95967094.entry.js.map +0 -1
- package/dist/csc-ui/p-9fff794f.entry.js +0 -2
- package/dist/csc-ui/p-9fff794f.entry.js.map +0 -1
- package/dist/csc-ui/p-Cb-CImk5.js +0 -2
- package/dist/csc-ui/p-Cb-CImk5.js.map +0 -1
- package/dist/csc-ui/p-DQuL1Twl.js +0 -2
- package/dist/csc-ui/p-DQuL1Twl.js.map +0 -1
- package/dist/csc-ui/p-a27a5f80.entry.js +0 -2
- package/dist/csc-ui/p-a27a5f80.entry.js.map +0 -1
- package/dist/csc-ui/p-ad4cba6c.entry.js +0 -2
- package/dist/csc-ui/p-ad4cba6c.entry.js.map +0 -1
- package/dist/csc-ui/p-aec6b36e.entry.js +0 -2
- package/dist/csc-ui/p-aec6b36e.entry.js.map +0 -1
- package/dist/csc-ui/p-c74c234c.entry.js +0 -2
- package/dist/csc-ui/p-c74c234c.entry.js.map +0 -1
- package/dist/csc-ui/p-c791bc22.entry.js +0 -2
- package/dist/csc-ui/p-c791bc22.entry.js.map +0 -1
- package/dist/csc-ui/p-ce764150.entry.js +0 -2
- package/dist/csc-ui/p-ce764150.entry.js.map +0 -1
- package/dist/csc-ui/p-cf835443.entry.js +0 -2
- package/dist/csc-ui/p-cf835443.entry.js.map +0 -1
- package/dist/csc-ui/p-f23b3ee3.entry.js +0 -2
- package/dist/csc-ui/p-f23b3ee3.entry.js.map +0 -1
- package/dist/csc-ui/p-fd75e786.entry.js +0 -2
- package/dist/csc-ui/p-fd75e786.entry.js.map +0 -1
- package/dist/csc-ui/p-gSzSMY-c.js +0 -3
- package/dist/csc-ui/p-gSzSMY-c.js.map +0 -1
- package/dist/esm/app-globals-DQuL1Twl.js +0 -6
- package/dist/esm/app-globals-DQuL1Twl.js.map +0 -1
- package/dist/esm/c-accordion-item.entry.js +0 -121
- package/dist/esm/c-accordion-item.entry.js.map +0 -1
- package/dist/esm/c-accordion.entry.js +0 -64
- package/dist/esm/c-accordion.entry.js.map +0 -1
- package/dist/esm/c-alert.entry.js +0 -26
- package/dist/esm/c-alert.entry.js.map +0 -1
- package/dist/esm/c-autocomplete_35.entry.js +0 -2636
- package/dist/esm/c-autocomplete_35.entry.js.map +0 -1
- package/dist/esm/c-data-table.entry.js +0 -706
- package/dist/esm/c-data-table.entry.js.map +0 -1
- package/dist/esm/c-link.entry.js +0 -28
- package/dist/esm/c-link.entry.js.map +0 -1
- package/dist/esm/c-list-item-title.entry.js +0 -23
- package/dist/esm/c-list-item-title.entry.js.map +0 -1
- package/dist/esm/c-list-item.entry.js +0 -79
- package/dist/esm/c-list-item.entry.js.map +0 -1
- package/dist/esm/c-list.entry.js +0 -44
- package/dist/esm/c-list.entry.js.map +0 -1
- package/dist/esm/c-login-button.entry.js +0 -21
- package/dist/esm/c-login-button.entry.js.map +0 -1
- package/dist/esm/c-login-buttons.entry.js +0 -18
- package/dist/esm/c-login-buttons.entry.js.map +0 -1
- package/dist/esm/c-login-card-actions.entry.js +0 -17
- package/dist/esm/c-login-card-actions.entry.js.map +0 -1
- package/dist/esm/c-login-card-content.entry.js +0 -18
- package/dist/esm/c-login-card-content.entry.js.map +0 -1
- package/dist/esm/c-login-card-title.entry.js +0 -18
- package/dist/esm/c-login-card-title.entry.js.map +0 -1
- package/dist/esm/c-login-card.entry.js +0 -63
- package/dist/esm/c-login-card.entry.js.map +0 -1
- package/dist/esm/c-menu.c-menu-items.entry.js.map +0 -1
- package/dist/esm/c-menu_2.entry.js +0 -349
- package/dist/esm/c-menu_2.entry.js.map +0 -1
- package/dist/esm/c-modal.entry.js +0 -176
- package/dist/esm/c-modal.entry.js.map +0 -1
- package/dist/esm/c-option-value.entry.js +0 -18
- package/dist/esm/c-option-value.entry.js.map +0 -1
- package/dist/esm/c-pagination.entry.js +0 -221
- package/dist/esm/c-pagination.entry.js.map +0 -1
- package/dist/esm/c-progress-bar.entry.js +0 -56
- package/dist/esm/c-progress-bar.entry.js.map +0 -1
- package/dist/esm/c-row.entry.js +0 -30
- package/dist/esm/c-row.entry.js.map +0 -1
- package/dist/esm/c-slider.entry.js +0 -92
- package/dist/esm/c-slider.entry.js.map +0 -1
- package/dist/esm/c-status.entry.js +0 -19
- package/dist/esm/c-status.entry.js.map +0 -1
- package/dist/esm/c-step.entry.js +0 -24
- package/dist/esm/c-step.entry.js.map +0 -1
- package/dist/esm/c-steps.entry.js +0 -74
- package/dist/esm/c-steps.entry.js.map +0 -1
- package/dist/esm/c-swiper-tab.entry.js +0 -39
- package/dist/esm/c-swiper-tab.entry.js.map +0 -1
- package/dist/esm/c-swiper.entry.js +0 -4179
- package/dist/esm/c-swiper.entry.js.map +0 -1
- package/dist/esm/c-tab-buttons.entry.js +0 -130
- package/dist/esm/c-tab-buttons.entry.js.map +0 -1
- package/dist/esm/c-tab-item.entry.js +0 -37
- package/dist/esm/c-tab-item.entry.js.map +0 -1
- package/dist/esm/c-tab-items.entry.js +0 -74
- package/dist/esm/c-tab-items.entry.js.map +0 -1
- package/dist/esm/c-tab.entry.js +0 -52
- package/dist/esm/c-tab.entry.js.map +0 -1
- package/dist/esm/c-tabs.entry.js +0 -421
- package/dist/esm/c-tabs.entry.js.map +0 -1
- package/dist/esm/c-tag.entry.js +0 -44
- package/dist/esm/c-tag.entry.js.map +0 -1
- package/dist/esm/c-tags.entry.js +0 -28
- package/dist/esm/c-tags.entry.js.map +0 -1
- package/dist/esm/c-toast.entry.js +0 -69
- package/dist/esm/c-toast.entry.js.map +0 -1
- package/dist/esm/c-toasts.entry.js +0 -77
- package/dist/esm/c-toasts.entry.js.map +0 -1
- package/dist/esm/csc-ui.js +0 -24
- package/dist/esm/csc-ui.js.map +0 -1
- package/dist/esm/index-gSzSMY-c.js +0 -2042
- package/dist/esm/index-gSzSMY-c.js.map +0 -1
- package/dist/esm/index.js +0 -24
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js +0 -14
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/mdi-Cb-CImk5.js +0 -27
- package/dist/esm/mdi-Cb-CImk5.js.map +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/playwright.config.js +0 -46
- package/dist/playwright.config.js.map +0 -1
- package/dist/stencil.config.js +0 -47
- package/dist/stencil.config.js.map +0 -1
- package/dist/styles/.gitkeep +0 -0
- package/dist/styles/css/theme.css +0 -102
- package/dist/styles/scss/_theme.scss +0 -100
- package/dist/styles/tailwind/theme.js +0 -120
- package/dist/types/additional-types.d.ts +0 -14
- package/dist/types/components/c-accordion/c-accordion.d.ts +0 -18
- package/dist/types/components/c-accordion/test/c-accordion.visual.d.ts +0 -1
- package/dist/types/components/c-accordion-item/c-accordion-item.d.ts +0 -30
- package/dist/types/components/c-alert/c-alert.d.ts +0 -6
- package/dist/types/components/c-alert/test/c-alert.visual.d.ts +0 -1
- package/dist/types/components/c-autocomplete/c-autocomplete.d.ts +0 -65
- package/dist/types/components/c-autocomplete/test/c-autocomplete.visual.d.ts +0 -1
- package/dist/types/components/c-backdrop/c-backdrop.d.ts +0 -6
- package/dist/types/components/c-badge/c-badge.d.ts +0 -3
- package/dist/types/components/c-button/c-button.d.ts +0 -36
- package/dist/types/components/c-button/test/c-button.visual.d.ts +0 -1
- package/dist/types/components/c-card/c-card.d.ts +0 -12
- package/dist/types/components/c-card/test/c-card.visual.d.ts +0 -1
- package/dist/types/components/c-card-actions/c-card-actions.d.ts +0 -5
- package/dist/types/components/c-card-content/c-card-content.d.ts +0 -3
- package/dist/types/components/c-card-title/c-card-title.d.ts +0 -14
- package/dist/types/components/c-checkbox/c-checkbox.d.ts +0 -28
- package/dist/types/components/c-checkbox/test/c-checkbox.visual.d.ts +0 -1
- package/dist/types/components/c-csc-logo/c-csc-logo.d.ts +0 -4
- package/dist/types/components/c-data-table/c-data-table.d.ts +0 -116
- package/dist/types/components/c-data-table/test/c-data-table.visual.d.ts +0 -1
- package/dist/types/components/c-data-table/test/data/index.d.ts +0 -3
- package/dist/types/components/c-dropdown/c-dropdown-options-item.d.ts +0 -3
- package/dist/types/components/c-dropdown/c-dropdown.d.ts +0 -56
- package/dist/types/components/c-icon/c-icon.d.ts +0 -9
- package/dist/types/components/c-icon-button/c-icon-button.d.ts +0 -18
- package/dist/types/components/c-icon-button/test/c-icon-button.visual.d.ts +0 -1
- package/dist/types/components/c-input/c-input.d.ts +0 -64
- package/dist/types/components/c-link/c-link.d.ts +0 -7
- package/dist/types/components/c-link/test/c-link.visual.d.ts +0 -1
- package/dist/types/components/c-list/c-list.d.ts +0 -9
- package/dist/types/components/c-list-item/c-list-item.d.ts +0 -16
- package/dist/types/components/c-list-item-title/c-list-item-title.d.ts +0 -4
- package/dist/types/components/c-loader/c-loader.d.ts +0 -10
- package/dist/types/components/c-login-button/c-login-button.d.ts +0 -6
- package/dist/types/components/c-login-buttons/c-login-buttons.d.ts +0 -3
- package/dist/types/components/c-login-card/c-login-card.d.ts +0 -19
- package/dist/types/components/c-login-card/test/c-login-card.visual.d.ts +0 -1
- package/dist/types/components/c-login-card-actions/c-login-card-actions.d.ts +0 -5
- package/dist/types/components/c-login-card-content/c-login-card-content.d.ts +0 -3
- package/dist/types/components/c-login-card-title/c-login-card-title.d.ts +0 -3
- package/dist/types/components/c-main/c-main.d.ts +0 -4
- package/dist/types/components/c-menu/c-menu.d.ts +0 -26
- package/dist/types/components/c-menu/test/c-menu.visual.d.ts +0 -1
- package/dist/types/components/c-menu-items/c-menu-items.d.ts +0 -43
- package/dist/types/components/c-message/c-message.d.ts +0 -18
- package/dist/types/components/c-modal/c-modal.d.ts +0 -31
- package/dist/types/components/c-navigation-button/c-navigation-button.d.ts +0 -3
- package/dist/types/components/c-option/c-option.d.ts +0 -7
- package/dist/types/components/c-option-value/c-option-value.d.ts +0 -3
- package/dist/types/components/c-otp-input/c-otp-input.d.ts +0 -36
- package/dist/types/components/c-page/c-page.d.ts +0 -8
- package/dist/types/components/c-pagination/c-pagination.d.ts +0 -38
- package/dist/types/components/c-pagination/test/c-pagination.visual.d.ts +0 -1
- package/dist/types/components/c-progress-bar/c-progress-bar.d.ts +0 -9
- package/dist/types/components/c-progress-bar/test/c-progress-bar.visual.d.ts +0 -1
- package/dist/types/components/c-radio/c-radio.d.ts +0 -6
- package/dist/types/components/c-radio-group/c-radio-group.d.ts +0 -31
- package/dist/types/components/c-radio-group/test/c-radio-group.visual.d.ts +0 -1
- package/dist/types/components/c-radio-group/test/items.d.ts +0 -2
- package/dist/types/components/c-ripple/c-ripple.d.ts +0 -7
- package/dist/types/components/c-row/c-row.d.ts +0 -10
- package/dist/types/components/c-select/c-select.d.ts +0 -71
- package/dist/types/components/c-select/test/c-select.visual.d.ts +0 -1
- package/dist/types/components/c-select/test/items.d.ts +0 -2
- package/dist/types/components/c-side-navigation/c-side-navigation.d.ts +0 -15
- package/dist/types/components/c-side-navigation/test/c-side-navigation.visual.d.ts +0 -1
- package/dist/types/components/c-side-navigation-item/c-side-navigation-item.d.ts +0 -21
- package/dist/types/components/c-side-navigation-title/c-side-navigation-title.d.ts +0 -3
- package/dist/types/components/c-slider/c-slider.d.ts +0 -32
- package/dist/types/components/c-spacer/c-spacer.d.ts +0 -3
- package/dist/types/components/c-spinner/c-spinner.d.ts +0 -6
- package/dist/types/components/c-status/c-status.d.ts +0 -4
- package/dist/types/components/c-status/test/c-status.visual.d.ts +0 -1
- package/dist/types/components/c-step/c-step.d.ts +0 -5
- package/dist/types/components/c-steps/c-steps.d.ts +0 -16
- package/dist/types/components/c-steps/test/c-steps.visual.d.ts +0 -1
- package/dist/types/components/c-sub-navigation-item/c-sub-navigation-item.d.ts +0 -10
- package/dist/types/components/c-swiper/c-swiper.d.ts +0 -25
- package/dist/types/components/c-swiper/test/c-swiper.visual.d.ts +0 -1
- package/dist/types/components/c-swiper-tab/c-swiper-tab.d.ts +0 -16
- package/dist/types/components/c-switch/c-switch.d.ts +0 -20
- package/dist/types/components/c-switch/test/c-switch.visual.d.ts +0 -1
- package/dist/types/components/c-tab/c-tab.d.ts +0 -20
- package/dist/types/components/c-tab-buttons/c-tab-buttons.d.ts +0 -24
- package/dist/types/components/c-tab-buttons/test/c-tab-buttons.visual.d.ts +0 -1
- package/dist/types/components/c-tab-item/c-tab-item.d.ts +0 -12
- package/dist/types/components/c-tab-items/c-tab-items.d.ts +0 -18
- package/dist/types/components/c-table/c-table.d.ts +0 -17
- package/dist/types/components/c-tabs/c-tabs.d.ts +0 -67
- package/dist/types/components/c-tabs/test/c-tabs.visual.d.ts +0 -1
- package/dist/types/components/c-tag/c-tag.d.ts +0 -13
- package/dist/types/components/c-tag/test/c-tag.visual.d.ts +0 -1
- package/dist/types/components/c-tags/c-tags.d.ts +0 -6
- package/dist/types/components/c-text-field/c-text-field.d.ts +0 -51
- package/dist/types/components/c-text-field/test/c-text-field.visual.d.ts +0 -1
- package/dist/types/components/c-toast/c-toast.d.ts +0 -19
- package/dist/types/components/c-toasts/c-toasts.d.ts +0 -17
- package/dist/types/components/c-toasts/test/c-toasts.visual.d.ts +0 -1
- package/dist/types/components/c-toolbar/c-toolbar.d.ts +0 -3
- package/dist/types/components/c-toolbar/test/c-toolbar.visual.d.ts +0 -1
- package/dist/types/components.d.ts +0 -5448
- package/dist/types/home/runner/work/ui/ui/packages/csc-ui/.stencil/playwright.config.d.ts +0 -2
- package/dist/types/home/runner/work/ui/ui/packages/csc-ui/.stencil/stencil.config.d.ts +0 -2
- package/dist/types/index.d.ts +0 -1
- package/dist/types/stencil-public-runtime.d.ts +0 -1681
- package/dist/types/types/global.d.ts +0 -13
- package/dist/types/types/index.d.ts +0 -145
- package/dist/types/utils/getScrollParent.d.ts +0 -1
- package/dist/types/utils/index.d.ts +0 -1
- package/dist/types/utils/test/sleep.d.ts +0 -1
- package/dist/types/utils/test/takeScreenshot.d.ts +0 -2
- package/loader/cdn.js +0 -1
- package/loader/index.cjs.js +0 -1
- package/loader/index.d.ts +0 -24
- package/loader/index.es2017.js +0 -1
- package/loader/index.js +0 -2
- package/vscode-data.json +0 -2284
|
@@ -1,2636 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-gSzSMY-c.js';
|
|
2
|
-
import { e as mdiChevronDown, l as mdiClose, o as mdiFullscreenExit, p as mdiFullscreen, a as mdiInformation, d as mdiAlert, q as mdiCheck, c as mdiCloseCircle, r as mdiMenu, k as mdiArrowRight, m as mdiChevronRight, s as mdiEye, t as mdiEyeOff, u as mdiCalendar } from './mdi-Cb-CImk5.js';
|
|
3
|
-
|
|
4
|
-
const cAutocompleteCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host(c-autocomplete){--_c-autocomplete-option-background-color:var(\n --c-autocomplete-option-background-color,\n var(--c-white)\n );--_c-autocomplete-option-background-hover-color:var(\n --c-autocomplete-option-background-hover-color,\n var(--c-primary-100)\n );--_c-autocomplete-active-color:var(\n --c-autocomplete-active-color,\n var(--c-primary-600)\n );--_c-autocomplete-inactive-color:var(\n --c-autocomplete-inactive-color,\n var(--c-tertiary-600)\n );--_c-autocomplete-background-color:var(\n --c-autocomplete-background-color,\n var(--c-transparent)\n );--_c-autocomplete-text-color:var(\n --c-autocomplete-text-color,\n var(--c-text-body)\n );--_c-autocomplete-option-text-color:var(\n --c-autocomplete-option-text-color,\n var(--c-text-body)\n );--_c-autocomplete-placeholder-color:var(\n --c-autocomplete-placeholder-color,\n var(--c-tertiary-500)\n );--c-select-option-background-color:var(\n --_c-autocomplete-option-background-color\n );--c-select-option-background-color-hover:var(\n --_c-autocomplete-option-background-hover-color\n );--c-select-option-text-color:var(--_c-autocomplete-option-text-color);--_c-input-active-color:var(--_c-autocomplete-active-color);--_c-input-inactive-color:var(--_c-autocomplete-inactive-color);--_c-input-background-color:var(--_c-autocomplete-background-color);--_c-input-text-color:var(--_c-autocomplete-text-color);--_c-input-placeholder-color:var(--_c-autocomplete-placeholder-color)}:host{display:block;cursor:text}.c-input-menu__chevron{fill:currentColor;transform:rotate(0deg);transition:transform 0.3s ease-in-out}.c-input-menu__chevron--active{transform:rotate(180deg)}.c-input-menu__input{width:100%;display:flex;justify-items:stretch}.c-input-menu__selection{display:none;pointer-events:none}.c-input-menu__selection--show{align-items:center;display:flex;width:100%;color:var(--_c-select-active-color)}.c-input-menu__item-wrapper{position:absolute;width:100%;top:44px;z-index:10;margin-left:calc(var(--_c-input-label-position) * -1)}.c-input-menu__item-wrapper--shadow{top:47px}.c-input-menu__items{position:absolute;background-color:var(--_c-select-option-background-color);min-width:calc(100% + 24px);box-shadow:0 8px 16px 0 rgba(0, 0, 0, 0.2);z-index:10;user-select:none;border-radius:4px;margin:0 -12px;overflow-y:scroll;list-style:none;padding:0}.c-input-menu__items--hidden{display:none}.c-input-menu__items li{cursor:pointer;display:flex;min-height:48px;padding:0 12px;transition:background-color 0.3s;font-size:14px;align-items:center;justify-content:flex-start;color:var(--_c-select-option-text-color)}.c-input-menu__items li.disabled{background-color:var(--c-tertiary-100);filter:grayscale(1) opacity(0.6);cursor:default}.c-input-menu__items li.disabled:hover{background-color:var(--c-tertiary-100)}.c-input-menu__items li.dense{padding:10px 14px}.c-input-menu__items li:hover{background-color:var(--_c-select-option-background-color-hover)}.c-input-menu__items li[aria-selected=true]{background-color:var(--_c-select-option-background-color-hover);box-shadow:inset 0 0 0 1px var(--_c-select-active-color);border-radius:4px;backface-visibility:hidden;transform:translate3d(0, 0, 0)}.c-input-menu__items li.none{color:rgba(0, 0, 0, 0.5)}.c-input-menu__items--empty li{color:var(--c-text-system);cursor:default;gap:8px;pointer-events:none}.c-input-menu__items--empty li svg{fill:var(--c-warning-600);height:18px;width:18px}input{max-height:32px;padding:8px 0;background-color:transparent;border:none;color:var(--c-text-body);flex:1 1 auto;font-family:var(--c-font-family);font-size:16px;line-height:20px;max-width:100%;min-width:0;width:100%;pointer-events:none}input:focus,input:active{outline:none}input::-ms-reveal{display:none}svg{fill:currentColor;height:22px;width:22px}.c-input--disabled{color:var(--c-tertiary-400)}.c-input:focus-within{color:var(--c-primary-600)}.c-input--error{color:var(--c-error-600)}.c-input--error:focus-within{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}";
|
|
5
|
-
|
|
6
|
-
const CAutocomplete = class {
|
|
7
|
-
constructor(hostRef) {
|
|
8
|
-
registerInstance(this, hostRef);
|
|
9
|
-
this.changeQuery = createEvent(this, "changeQuery", 7);
|
|
10
|
-
this.changeValue = createEvent(this, "changeValue", 3);
|
|
11
|
-
if (hostRef.$hostElement$["s-ei"]) {
|
|
12
|
-
this.internals = hostRef.$hostElement$["s-ei"];
|
|
13
|
-
}
|
|
14
|
-
else {
|
|
15
|
-
this.internals = hostRef.$hostElement$.attachInternals();
|
|
16
|
-
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
17
|
-
}
|
|
18
|
-
this._preventDialogOpen = false;
|
|
19
|
-
this._debounce = null;
|
|
20
|
-
this.items = [];
|
|
21
|
-
this.value = null;
|
|
22
|
-
this.query = null;
|
|
23
|
-
this.disabled = false;
|
|
24
|
-
this.placeholder = '';
|
|
25
|
-
this.hideDetails = false;
|
|
26
|
-
this.hint = '';
|
|
27
|
-
this.loading = false;
|
|
28
|
-
this.required = false;
|
|
29
|
-
this.valid = true;
|
|
30
|
-
this.validate = false;
|
|
31
|
-
this.validateOnBlur = false;
|
|
32
|
-
this.validation = 'Required field';
|
|
33
|
-
this.shadow = false;
|
|
34
|
-
this.returnObject = false;
|
|
35
|
-
this.itemsPerPage = 6;
|
|
36
|
-
this.minimumQueryLength = 0;
|
|
37
|
-
this.minimumQueryLengthMessage = 'Type at least {n} characters';
|
|
38
|
-
this.noMatchingItemsMessage = 'No suggestions found';
|
|
39
|
-
this.currentIndex = null;
|
|
40
|
-
this.dropdownVisible = false;
|
|
41
|
-
this.statusText = '';
|
|
42
|
-
this.optionElementsExist = false;
|
|
43
|
-
this._handleSlotChange = () => {
|
|
44
|
-
this.optionElements = this.el.querySelectorAll('c-option');
|
|
45
|
-
const selection = Array.from(this.optionElements).find((option) => option.selected);
|
|
46
|
-
if (selection) {
|
|
47
|
-
this.value = this.returnObject
|
|
48
|
-
? { name: selection.name, value: selection.value }
|
|
49
|
-
: selection.value;
|
|
50
|
-
this.changeValue.emit(this.value);
|
|
51
|
-
this.changeQuery.emit(this.query);
|
|
52
|
-
this.internals.setFormValue(selection.value.toString());
|
|
53
|
-
}
|
|
54
|
-
if (this.optionElements.length && !this.optionElementsExist) {
|
|
55
|
-
this.optionElementsExist = true;
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
this._toggleDropdown = (event) => {
|
|
59
|
-
event.stopPropagation();
|
|
60
|
-
if (this.dropdownVisible) {
|
|
61
|
-
this._dropdownElement.close();
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
this._dropdownElement.open();
|
|
65
|
-
};
|
|
66
|
-
this._onButtonKeyDown = (src, event) => {
|
|
67
|
-
event.stopPropagation();
|
|
68
|
-
if (event.key !== 'Tab')
|
|
69
|
-
event.preventDefault();
|
|
70
|
-
if (['Enter', ' '].includes(event.key)) {
|
|
71
|
-
if (src === 'chevron') {
|
|
72
|
-
this._toggleDropdown(event);
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
this._reset(event);
|
|
76
|
-
this._preventDialogOpen = true;
|
|
77
|
-
this._inputElement.focus();
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
this._reset = (event) => {
|
|
81
|
-
event.stopPropagation();
|
|
82
|
-
this.query = '';
|
|
83
|
-
this.value = null;
|
|
84
|
-
this.changeValue.emit(null);
|
|
85
|
-
this.internals.setFormValue(null);
|
|
86
|
-
this.changeQuery.emit('');
|
|
87
|
-
this._preventDialogOpen = true;
|
|
88
|
-
this._cInputElement.reset();
|
|
89
|
-
this._inputElement.focus();
|
|
90
|
-
this._dropdownElement.updateList();
|
|
91
|
-
};
|
|
92
|
-
this._onInputFocus = () => {
|
|
93
|
-
if (!this._preventDialogOpen) {
|
|
94
|
-
this._dropdownElement.open();
|
|
95
|
-
}
|
|
96
|
-
this._updateStatusText();
|
|
97
|
-
this._preventDialogOpen = false;
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
get _id() {
|
|
101
|
-
return this.hostId || `autocomplete_${CAutocomplete._uniqueId}`;
|
|
102
|
-
}
|
|
103
|
-
async reset() {
|
|
104
|
-
this.query = '';
|
|
105
|
-
this.changeValue.emit(null);
|
|
106
|
-
this.internals.setFormValue(null);
|
|
107
|
-
this.changeQuery.emit('');
|
|
108
|
-
this._dropdownElement.updateList();
|
|
109
|
-
}
|
|
110
|
-
_handleKeyDown(event) {
|
|
111
|
-
const alphanumeric = /^[0-9a-zA-Z ]+$/;
|
|
112
|
-
if (event.key.match(alphanumeric) && event.key.length === 1) {
|
|
113
|
-
if (!this.dropdownVisible) {
|
|
114
|
-
this._dropdownElement.open();
|
|
115
|
-
return;
|
|
116
|
-
}
|
|
117
|
-
this._inputElement.focus();
|
|
118
|
-
return;
|
|
119
|
-
}
|
|
120
|
-
if (event.key === 'Escape') {
|
|
121
|
-
event.preventDefault();
|
|
122
|
-
this._preventDialogOpen = true;
|
|
123
|
-
this._dropdownElement.close();
|
|
124
|
-
requestAnimationFrame(() => {
|
|
125
|
-
this._inputElement.focus();
|
|
126
|
-
});
|
|
127
|
-
return;
|
|
128
|
-
}
|
|
129
|
-
if (event.key === 'Tab') {
|
|
130
|
-
this._inputElement.focus();
|
|
131
|
-
requestAnimationFrame(() => {
|
|
132
|
-
this._dropdownElement.close();
|
|
133
|
-
});
|
|
134
|
-
return;
|
|
135
|
-
}
|
|
136
|
-
if (event.key === 'ArrowDown') {
|
|
137
|
-
event.preventDefault();
|
|
138
|
-
if (!this._items.length)
|
|
139
|
-
return;
|
|
140
|
-
if (!this.dropdownVisible || this.currentIndex === null) {
|
|
141
|
-
this.currentIndex = 0;
|
|
142
|
-
this._dropdownElement.open();
|
|
143
|
-
this._dropdownElement.focusItem(this.currentIndex);
|
|
144
|
-
return;
|
|
145
|
-
}
|
|
146
|
-
this.currentIndex = Math.min(this.currentIndex + 1, this._items.length - 1);
|
|
147
|
-
this._dropdownElement.focusItem(this.currentIndex);
|
|
148
|
-
return;
|
|
149
|
-
}
|
|
150
|
-
if (event.key === 'ArrowUp') {
|
|
151
|
-
event.preventDefault();
|
|
152
|
-
if (this.currentIndex === 0) {
|
|
153
|
-
this._dropdownElement.close();
|
|
154
|
-
this._inputElement.focus();
|
|
155
|
-
}
|
|
156
|
-
if (!this.dropdownVisible || this.currentIndex === null) {
|
|
157
|
-
this.currentIndex = this._items.length - 1;
|
|
158
|
-
this._dropdownElement.open();
|
|
159
|
-
this._dropdownElement.focusItem(this.currentIndex);
|
|
160
|
-
return;
|
|
161
|
-
}
|
|
162
|
-
this.currentIndex = Math.max(this.currentIndex - 1, 0);
|
|
163
|
-
this._dropdownElement.focusItem(this.currentIndex);
|
|
164
|
-
}
|
|
165
|
-
if (event.key === 'Enter') {
|
|
166
|
-
event.preventDefault();
|
|
167
|
-
if (this.currentIndex === null)
|
|
168
|
-
return;
|
|
169
|
-
this._dropdownElement.selectItem(this.currentIndex);
|
|
170
|
-
}
|
|
171
|
-
if (event.key === 'Home' && this.dropdownVisible) {
|
|
172
|
-
this.currentIndex = 0;
|
|
173
|
-
}
|
|
174
|
-
if (event.key === 'End' && this.dropdownVisible) {
|
|
175
|
-
this.currentIndex = this._items.length - 1;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
onDropdownStateChange(event) {
|
|
179
|
-
const isOpen = event.detail;
|
|
180
|
-
this.dropdownVisible = isOpen;
|
|
181
|
-
if (!isOpen) {
|
|
182
|
-
requestAnimationFrame(() => {
|
|
183
|
-
this.currentIndex = null;
|
|
184
|
-
});
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
onSelectOption(event) {
|
|
188
|
-
this._dropdownElement.close();
|
|
189
|
-
const { name, value } = event.detail;
|
|
190
|
-
this.value = this.returnObject ? event.detail : value;
|
|
191
|
-
this.changeValue.emit(this.value);
|
|
192
|
-
this.internals.setFormValue(value);
|
|
193
|
-
this.query = name;
|
|
194
|
-
this.changeQuery.emit(name);
|
|
195
|
-
this._preventDialogOpen = true;
|
|
196
|
-
if (this.optionElementsExist) {
|
|
197
|
-
Array.from(this.optionElements).forEach((item) => {
|
|
198
|
-
item.selected = item.value === value && item.name === name;
|
|
199
|
-
});
|
|
200
|
-
this._dropdownElement.updateList();
|
|
201
|
-
}
|
|
202
|
-
this._inputElement.focus();
|
|
203
|
-
}
|
|
204
|
-
handleQueryChange() {
|
|
205
|
-
this._updateStatusText();
|
|
206
|
-
}
|
|
207
|
-
_updateInput() {
|
|
208
|
-
this._dropdownElement.open();
|
|
209
|
-
this.query = this._inputElement.value;
|
|
210
|
-
this.changeQuery.emit(this.query);
|
|
211
|
-
this._dropdownElement.updateList();
|
|
212
|
-
}
|
|
213
|
-
_renderLoader() {
|
|
214
|
-
return h("c-spinner", { color: "var(--_c-autocomplete-active-color)", size: 20 });
|
|
215
|
-
}
|
|
216
|
-
_renderChevron() {
|
|
217
|
-
const classes = {
|
|
218
|
-
'c-input-menu__chevron': true,
|
|
219
|
-
'c-input-menu__chevron--active': this.dropdownVisible,
|
|
220
|
-
};
|
|
221
|
-
return (h("c-icon-button", { size: "x-small", class: classes, disabled: this.disabled, text: true, onClick: (event) => this._toggleDropdown(event), onKeyDown: (event) => this._onButtonKeyDown('chevron', event) }, h("c-icon", { path: mdiChevronDown, size: 24 })));
|
|
222
|
-
}
|
|
223
|
-
_renderReset() {
|
|
224
|
-
return (h("c-icon-button", { "aria-label": "", size: "x-small", disabled: this.disabled, text: true, onClick: (event) => this._reset(event), onKeyDown: (event) => this._onButtonKeyDown('reset', event) }, h("c-icon", { path: mdiClose, size: 20 })));
|
|
225
|
-
}
|
|
226
|
-
_renderInputElement() {
|
|
227
|
-
var _a;
|
|
228
|
-
return (h("div", { class: "c-input-menu__input" }, h("input", { type: "text", ref: (el) => (this._inputElement = el), "aria-expanded": this.dropdownVisible.toString(), "aria-owns": this._inputId + '-items', "aria-autocomplete": "list", autocomplete: "off", class: "c-input__input", role: "combobox", value: this.query, name: (_a = this.name) !== null && _a !== void 0 ? _a : null, disabled: this.disabled, onInput: () => this._updateInput(), onFocus: () => this._onInputFocus() })));
|
|
229
|
-
}
|
|
230
|
-
componentWillLoad() {
|
|
231
|
-
CAutocomplete._uniqueId += 1;
|
|
232
|
-
this._inputId =
|
|
233
|
-
'input_' +
|
|
234
|
-
(this.hostId || this.label || this.placeholder).replace(/[^a-zA-Z0-9-_]/g, '');
|
|
235
|
-
}
|
|
236
|
-
get _items() {
|
|
237
|
-
return this.optionElementsExist ? this.optionElements : this.items;
|
|
238
|
-
}
|
|
239
|
-
_updateStatusText() {
|
|
240
|
-
if (this._debounce !== null) {
|
|
241
|
-
clearTimeout(this._debounce);
|
|
242
|
-
this._debounce = null;
|
|
243
|
-
}
|
|
244
|
-
this._debounce = window.setTimeout(() => {
|
|
245
|
-
const ending = !!this._items.length
|
|
246
|
-
? ' or navigate using the up and down arrows'
|
|
247
|
-
: '';
|
|
248
|
-
if (this.currentIndex === null) {
|
|
249
|
-
this.statusText = this._items.length
|
|
250
|
-
? `${this._items.length} result${this._items.length !== 1 ? 's' : ''} available`
|
|
251
|
-
: 'No search results available';
|
|
252
|
-
}
|
|
253
|
-
if (this.query !== null && this._items.length) {
|
|
254
|
-
this.statusText += ', input a search query to filter the results';
|
|
255
|
-
}
|
|
256
|
-
this._dropdownElement.setStatusText(this.statusText + ending);
|
|
257
|
-
this._debounce = null;
|
|
258
|
-
}, 1400);
|
|
259
|
-
}
|
|
260
|
-
render() {
|
|
261
|
-
const itemType = this.optionElementsExist ? 'option' : 'item';
|
|
262
|
-
return (h(Host, { key: '78ffcfd591a16d2991b1517d0500edac131b31e4' }, h("c-dropdown", { key: '7bb4696ca59c247ad154887f9dac664bca78b762', ref: (el) => (this._dropdownElement = el), id: `${this._id}-dropdown`, index: this.currentIndex, "items-per-page": this.itemsPerPage, "dropdown-item-type": itemType, items: this._items, parent: this.el, type: "autocomplete", onKeyDown: (event) => this._handleKeyDown(event) }, h("c-input", { key: '02bd0f888b2f6436479da3ed0f03720971ccb419', slot: "default", ref: (el) => (this._cInputElement = el), active: this.dropdownVisible, disabled: this.disabled, "hide-details": this.hideDetails, hint: this.hint, id: this.hostId, "input-id": this._inputId, label: this.label, name: this.name, placeholder: this.placeholder, required: this.required, shadow: this.shadow, valid: this.valid, validate: this.validate, "validate-on-blur": this.validateOnBlur, validation: this.validation, value: this.query, variant: "select" }, h("slot", { key: '6bc336aa7167ffb104e242db04e4a873c8d43b20', name: "pre", slot: "pre" }), h("div", { key: 'a495b0508898a4687e300dcdff4cefe3213543b1', class: "c-input__content" }, this._renderInputElement(), this.loading && this._renderLoader(), !this.loading && this.value && this._renderReset(), !this.loading && !this.value && this._renderChevron(), h("slot", { key: '994932ecf1ee214b8d96c996a268a34682a8a2bc', onSlotchange: () => this._handleSlotChange() })), h("slot", { key: '2e967acc2e86985103fb4ee48ef4a5ca78d91c8f', name: "post", slot: "post" })))));
|
|
263
|
-
}
|
|
264
|
-
static get formAssociated() { return true; }
|
|
265
|
-
get el() { return getElement(this); }
|
|
266
|
-
static get watchers() { return {
|
|
267
|
-
"query": ["handleQueryChange"]
|
|
268
|
-
}; }
|
|
269
|
-
};
|
|
270
|
-
CAutocomplete._uniqueId = 0;
|
|
271
|
-
CAutocomplete.style = cAutocompleteCss;
|
|
272
|
-
|
|
273
|
-
const cBackdropCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host(c-backdrop) .c-backdrop{display:block;position:fixed;inset:0;z-index:1000;background-color:rgba(0, 0, 0, 0.5);opacity:0;pointer-events:none}:host(c-backdrop) .c-backdrop.c-backdrop--blur{backdrop-filter:blur(4px)}@media (prefers-reduced-motion: no-preference){:host(c-backdrop) .c-backdrop.opening{animation:backdrop-fadein 0.3s cubic-bezier(0.25, 0.8, 0.5, 1) forwards}:host(c-backdrop) .c-backdrop.closing{animation:backdrop-fadeout 0.3s cubic-bezier(0.25, 0.8, 0.5, 1) forwards}}@keyframes backdrop-fadein{from{opacity:0}to{opacity:1}}@keyframes backdrop-fadeout{from{opacity:1}to{opacity:0}}";
|
|
274
|
-
|
|
275
|
-
const CBackdrop = class {
|
|
276
|
-
constructor(hostRef) {
|
|
277
|
-
registerInstance(this, hostRef);
|
|
278
|
-
this.disableBackdropBlur = false;
|
|
279
|
-
this.blur = true;
|
|
280
|
-
}
|
|
281
|
-
onValueChange(value) {
|
|
282
|
-
this.blur = !value;
|
|
283
|
-
}
|
|
284
|
-
render() {
|
|
285
|
-
return (h(Host, { key: 'f7967b4eb4801a361b05df1f26b1314d090ddd64' }, h("div", { key: 'c93b3ad493209ac4d1e3e2724b47a5fe8c6d0faf', class: {
|
|
286
|
-
'c-backdrop': true,
|
|
287
|
-
'c-backdrop--blur': this.blur,
|
|
288
|
-
} })));
|
|
289
|
-
}
|
|
290
|
-
static get watchers() { return {
|
|
291
|
-
"disableBackdropBlur": ["onValueChange"]
|
|
292
|
-
}; }
|
|
293
|
-
};
|
|
294
|
-
CBackdrop.style = cBackdropCss;
|
|
295
|
-
|
|
296
|
-
const cBadgeCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-badge-background-color:var(--c-badge-background-color, var(--c-warning-600));--_c-badge-text-color:var(--c-badge-text-color, var(--c-white));--_c-badge-border-color:var(--c-badge-border-color, var(--c-white));align-items:center;background-color:var(--_c-badge-background-color);border-radius:16px;box-shadow:0 0 0 2px var(--_c-badge-border-color);color:var(--_c-badge-text-color);display:flex;font-size:12px;height:16px;justify-content:center;justify-items:center;line-height:1;min-width:16px;padding:0 4px;pointer-events:none;position:absolute;right:-6px;top:-6px;z-index:2}";
|
|
297
|
-
|
|
298
|
-
const CBadge = class {
|
|
299
|
-
constructor(hostRef) {
|
|
300
|
-
registerInstance(this, hostRef);
|
|
301
|
-
}
|
|
302
|
-
render() {
|
|
303
|
-
return (h(Host, { key: '3963ab0b3a1af4c620a911b6b39feadc4b8a80e8', class: "c-badge" }, h("slot", { key: 'c59c16a8221651f83bd29b3cc46f161ded227481' })));
|
|
304
|
-
}
|
|
305
|
-
};
|
|
306
|
-
CBadge.style = cBadgeCss;
|
|
307
|
-
|
|
308
|
-
const cButtonCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-button-border-radius:var(--c-button-border-radius, 4px);--_c-button-height:44px;--_c-button-min-width:88px;--_c-button-padding:0 16px;--_c-button-font-size:16px;--_c-button-icon-size:24px;--_c-button-outline-offset:2px;border-radius:var(--_c-button-border-radius);display:inline-flex;min-width:max-content;transform:translateZ(0);transition:background-color 0.3s ease-in-out;--_c-button-background-color:var(\n --c-button-background-color,\n var(--c-primary-600)\n );--_c-button-text-color:var(--c-button-text-color, var(--c-white));--_c-button-loader-color:var(\n --c-button-loader-color,\n var(--_c-button-text-color)\n );--_c-button-outline-color:var(\n --c-button-outline-color,\n var(--_c-button-background-color)\n );background-color:var(--_c-button-background-color);color:var(--_c-button-text-color)}:host ::slotted(svg){fill:var(--_c-button-loader-color)}:host(.c-button--no-radius){--_c-button-border-radius:0}:host(:host:not(.c-button--description)){height:var(--_c-button-height)}:host(.c-button--description){height:\"auto\"}:host(:host:hover){--_c-button-background-color-hover:var(\n --c-button-background-color-hover,\n var(--c-primary-400)\n );background-color:var(--_c-button-background-color-hover)}:host(.c-button--inverted){--_c-button-inverted-background-color:var(\n --c-button-inverted-background-color,\n var(--c-white)\n );--_c-button-inverted-text-color:var(\n --c-button-inverted-text-color,\n var(--c-primary-600)\n );--_c-button-outline-color:var(--_c-button-inverted-background-color);background-color:var(--_c-button-inverted-background-color);color:var(--_c-button-inverted-text-color)}:host(.c-button--inverted:hover){--_c-button-inverted-background-color-hover:var(\n --c-button-inverted-background-color-hover,\n var(--c-primary-200)\n );background-color:var(--_c-button-inverted-background-color-hover)}:host(.c-button--inverted.c-button--disabled){--_c-button-inverted-disabled-background-color:var(\n --c-button-inverted-disabled-background-color,\n var(--_c-button-disabled-background-color)\n );--_c-button-inverted-disabled-text-color:var(\n --c-button-inverted-disabled-text-color,\n var(--c-tertiary-500)\n );background-color:var(--_c-button-inverted-disabled-background-color);color:var(--_c-button-inverted-disabled-text-color)}:host(.c-button--danger){--_c-button-danger-background-color:var(\n --c-button-danger-background-color,\n var(--c-error-600)\n );--_c-button-danger-text-color:var(\n --c-button-danger-text-color,\n var(--c-white)\n );--_c-button-danger-loader-color:var(\n --c-button-danger-loader-color,\n var(--_c-button-danger-text-color)\n );--_c-button-loader-color:var(--_c-button-danger-loader-color);--_c-button-outline-color:var(--_c-button-danger-background-color);background-color:var(--_c-button-danger-background-color);color:var(--_c-button-danger-text-color)}:host(.c-button--danger:hover){--_c-button-danger-background-color-hover:var(\n --c-button-danger-background-color-hover,\n var(--c-error-400)\n );background-color:var(--_c-button-danger-background-color-hover)}:host(.c-button--danger.c-button--disabled){--_c-button-danger-disabled-background-color:var(\n --c-button-danger-disabled-background-color,\n var(--_c-button-disabled-background-color)\n );--_c-button-danger-disabled-text-color:var(\n --c-button-danger-disabled-text-color,\n var(--_c-button-disabled-text-color)\n );background-color:var(--_c-button-danger-disabled-background-color);color:var(--_c-button-danger-disabled-text-color)}:host(.c-button--danger.c-button--inverted){--_c-button-danger-inverted-text-color:var(\n --c-button-danger-inverted-text-color,\n var(--c-error-600)\n );--_c-button-danger-inverted-background-color:var(\n --c-button-danger-inverted-background-color,\n var(--c-white)\n );--_c-button-outline-color:var(--_c-button-danger-inverted-background-color);background-color:var(--_c-button-danger-inverted-background-color);color:var(--_c-button-danger-inverted-text-color)}:host(.c-button--danger.c-button--inverted:hover){--_c-button-danger-inverted-background-color-hover:var(\n --c-button-danger-inverted-background-color-hover,\n var(--c-error-100)\n );background-color:var(--_c-button-danger-inverted-background-color-hover)}:host(.c-button--danger.c-button--inverted.c-button--disabled){--_c-button-danger-inverted-disabled-background-color:var(\n --c-button-danger-inverted-disabled-background-color,\n var(--_c-button-disabled-background-color)\n );--_c-button-danger-inverted-disabled-text-color:var(\n --c-button-danger-inverted-disabled-text-color,\n var(--_c-button-disabled-text-color)\n );background-color:var(--_c-button-danger-inverted-disabled-background-color);color:var(--_c-button-danger-inverted-disabled-text-color)}:host(.c-button--ghost){--_c-button-ghost-background-color:var(\n --c-button-ghost-background-color,\n var(--c-primary-200)\n );--_c-button-ghost-text-color:var(\n --c-button-ghost-text-color,\n var(--c-primary-600)\n );--_c-button-ghost-loader-color:var(\n --c-button-ghost-loader-color,\n var(--_c-button-ghost-text-color)\n );--_c-button-loader-color:var(--_c-button-ghost-loader-color);--_c-button-outline-color:var(--_c-button-ghost-text-color);background-color:var(--_c-button-ghost-background-color);color:var(--_c-button-ghost-text-color)}:host(.c-button--ghost:hover){--_c-button-ghost-background-color-hover:var(\n --c-button-ghost-background-color-hover,\n var(--c-primary-100)\n );background-color:var(--_c-button-ghost-background-color-hover)}:host(.c-button--ghost.c-button--disabled){--_c-button-ghost-disabled-background-color:var(\n --c-button-ghost-disabled-background-color,\n var(--_c-button-disabled-background-color)\n );--_c-button-ghost-disabled-text-color:var(\n --c-button-ghost-disabled-text-color,\n var(--_c-button-disabled-text-color)\n );background-color:var(--_c-button-ghost-disabled-background-color);color:var(--_c-button-ghost-disabled-text-color)}:host(.c-button--ghost.c-button--inverted){--_c-button-ghost-inverted-background-color:var(\n --c-button-ghost-inverted-background-color,\n rgba(var(--c-white-rgb), 0.2)\n );--_c-button-ghost-inverted-text-color:var(\n --c-button-ghost-inverted-text-color,\n var(--c-white)\n );--_c-button-outline-color:var(--_c-button-ghost-inverted-text-color);background-color:var(--_c-button-ghost-inverted-background-color);color:var(--_c-button-ghost-inverted-text-color)}:host(.c-button--ghost.c-button--inverted:hover){--_c-button-ghost-inverted-background-color-hover:var(\n --c-button-ghost-inverted-background-color-hover,\n rgba(var(--c-white-rgb), 0.3)\n );background-color:var(--_c-button-ghost-inverted-background-color-hover)}:host(.c-button--ghost.c-button--inverted.c-button--disabled){--_c-button-ghost-inverted-disabled-background-color:var(\n --c-button-ghost-inverted-disabled-background-color,\n rgba(var(--c-white-rgb), 0.05)\n );--_c-button-ghost-inverted-disabled-text-color:var(\n --c-button-ghost-inverted-disabled-text-color,\n var(--c-tertiary-400)\n );background-color:var(--_c-button-ghost-inverted-disabled-background-color);color:var(--_c-button-ghost-inverted-disabled-text-color)}:host(.c-button--text){--_c-button-text-background-color:var(\n --c-button-text-background-color,\n var(--c-transparent)\n );--_c-button-text-text-color:var(\n --c-button-text-text-color,\n var(--c-primary-600)\n );--_c-button-text-loader-color:var(\n --c-button-text-loader-color,\n var(--_c-button-text-text-color)\n );--_c-button-loader-color:var(--_c-button-text-loader-color);--_c-button-outline-color:var(--_c-button-text-text-color);background-color:var(--_c-button-text-background-color);color:var(--_c-button-text-text-color)}:host(.c-button--text:hover){--_c-button-text-background-color-hover:var(\n --c-button-text-background-color-hover,\n var(--c-primary-100)\n );background-color:var(--_c-button-text-background-color-hover)}:host(.c-button--text.c-button--disabled){--_c-button-text-disabled-background-color:var(\n --c-button-text-disabled-background-color,\n var(--c-transparent)\n );--_c-button-text-disabled-text-color:var(\n --c-button-text-disabled-text-color,\n var(--c-tertiary-400)\n );background-color:var(--_c-button-text-disabled-background-color);color:var(--_c-button-text-disabled-text-color)}:host(.c-button--text.c-button--inverted){--_c-button-text-inverted-background-color:var(\n --c-button-text-inverted-background-color,\n var(--c-transparent)\n );--_c-button-text-inverted-text-color:var(\n --c-button-text-inverted-text-color,\n var(--c-white)\n );--_c-button-outline-color:var(--_c-button-text-inverted-text-color);background-color:var(--_c-button-text-inverted-background-color);color:var(--_c-button-text-inverted-text-color)}:host(.c-button--text.c-button--inverted:hover){--_c-button-text-inverted-background-color-hover:var(\n --c-button-text-inverted-background-color-hover,\n rgba(var(--c-white-rgb), 0.3)\n );background-color:var(--_c-button-text-inverted-background-color-hover)}:host(.c-button--text.c-button--inverted.c-button--disabled){--_c-button-text-inverted-disabled-background-color:var(\n --c-button-text-inverted-disabled-background-color,\n var(--c-transparent)\n );--_c-button-text-inverted-disabled-text-color:var(\n --c-button-text-inverted-disabled-text-color,\n var(--c-tertiary-400)\n );background-color:var(--_c-button-text-inverted-disabled-background-color);color:var(--_c-button-text-inverted-disabled-text-color)}:host(.c-button--outlined){--_c-button-outlined-text-color:var(\n --c-button-outlined-text-color,\n var(--c-primary-600)\n );--_c-button-outlined-border-color:var(\n --c-button-outlined-border-color,\n var(--_c-button-outlined-text-color)\n );--_c-button-outlined-background-color:var(\n --c-button-outlined-background-color,\n var(--c-transparent)\n );--_c-button-outlined-loader-color:var(\n --c-button-outlined-loader-color,\n var(--_c-button-outlined-text-color)\n );--_c-button-loader-color:var(--_c-button-outlined-loader-color);--_c-outline-color:var(--_c-button-outlined-border-color);--_c-button-outline-color:var(--_c-button-outlined-border-color);background-color:var(--_c-button-outlined-background-color);color:var(--_c-button-outlined-text-color);box-shadow:inset 0 0 0 2px var(--_c-outline-color)}:host(.c-button--outlined:hover){--_c-button-outlined-background-color-hover:var(\n --c-button-outlined-background-color-hover,\n var(--c-primary-200)\n );background-color:var(--_c-button-outlined-background-color-hover)}:host(.c-button--outlined.c-button--disabled){--_c-button-outlined-disabled-text-color:var(\n --c-button-outlined-disabled-text-color,\n var(--c-tertiary-500)\n );--_c-button-outlined-disabled-background-color:var(\n --c-button-outlined-disabled-background-color,\n var(--_c-button-outlined-background-color)\n );--_c-button-outlined-disabled-border-color:var(\n --c-button-outlined-disabled-border-color,\n var(--c-tertiary-400)\n );--_c-outline-color:var(--_c-button-outlined-disabled-border-color);background-color:var(--_c-button-outlined-disabled-background-color);color:var(--_c-button-outlined-disabled-text-color)}:host(.c-button--outlined.c-button--inverted){--_c-button-outlined-inverted-text-color:var(\n --c-button-outlined-inverted-text-color,\n var(--c-white)\n );--_c-button-outlined-inverted-border-color:var(\n --c-button-outlined-inverted-border-color,\n var(--_c-button-outlined-inverted-text-color)\n );--_c-button-outlined-inverted-background-color:var(\n --c-button-outlined-inverted-background-color,\n var(--_c-button-outlined-background-color)\n );--_c-outline-color:var(--_c-button-outlined-inverted-border-color);--_c-button-outline-color:var(--_c-button-outlined-inverted-border-color);background-color:var(--_c-button-outlined-inverted-background-color);color:var(--_c-button-outlined-inverted-text-color)}:host(.c-button--outlined.c-button--inverted:hover){--_c-button-outlined-inverted-background-color-hover:var(\n --c-button-outlined-inverted-background-color-hover,\n rgba(var(--c-white-rgb), 0.3)\n );background-color:var(--_c-button-outlined-inverted-background-color-hover)}:host(.c-button--outlined.c-button--inverted.c-button--disabled){--_c-button-outlined-inverted-disabled-border-color:var(\n --c-button-outlined-inverted-disabled-border-color,\n var(--c-tertiary-400)\n );--_c-button-outlined-inverted-disabled-text-color:var(\n --c-button-outlined-inverted-disabled-text-color,\n var(--c-tertiary-400)\n );--_c-button-outlined-inverted-disabled-background-color:var(\n --c-button-outlined-inverted-disabled-background-color,\n var(--_c-button-outlined-background-color)\n );--_c-outline-color:var(--_c-button-outlined-inverted-disabled-border-color);background-color:var(--_c-button-outlined-inverted-disabled-background-color);color:var(--_c-button-outlined-inverted-disabled-text-color)}:host(.c-button--disabled){--_c-button-disabled-background-color:var(\n --c-button-disabled-background-color,\n var(--c-tertiary-100)\n );--_c-button-disabled-text-color:var(\n --c-button-disabled-text-color,\n var(--c-tertiary-600)\n );--_c-button-loader-color:var(--_c-button-disabled-text-color);background-color:var(--_c-button-disabled-background-color);color:var(--_c-button-disabled-text-color);pointer-events:none}:host(.c-button:focus){z-index:2}:host(.c-button) a:focus,:host(.c-button) button:focus{outline:none}:host(.c-button) a:focus-visible,:host(.c-button) button:focus-visible{outline:2px var(--_c-button-outline-color) solid;outline-offset:var(--_c-button-outline-offset);z-index:1}:host(.c-button--fit){width:100%}:host(.c-button--small){--_c-button-height:28px}:host(.c-button--large){--_c-button-height:52px}:host(.c-button--fitted){width:100%}::slotted([slot=icon]){font-size:var(--_c-button-icon-size)}::slotted(svg){fill:var(--_c-button-loader-color)}a{text-decoration:none}button,a{background-color:transparent;border-radius:var(--_c-button-border-radius);color:currentColor;font-family:var(--c-font-family);display:inline-grid;place-items:center;border:none;padding:0;position:relative;margin:0;width:100%;cursor:pointer;transition:background-color 0.3s cubic-bezier(0.25, 0.8, 0.5, 1), color 0.3s cubic-bezier(0.25, 0.8, 0.5, 1)}button:disabled,a:disabled{cursor:default}@media (max-width: 767px){.full-width-mobile{max-width:100% !important;width:100% !important;margin:0 !important}.full-width-mobile .c-button-padding{padding:24px 38px}.full-width{flex-grow:1 !important}}.c-button__content{border-radius:var(--_c-button-border-radius);position:relative;box-shadow:none;outline:none;backface-visibility:hidden;transform:translate3d(0, 0, 0);transition:background-color 0.3s;color:currentColor;margin:0;text-decoration:none;display:flex;text-align:center;font-size:var(--_c-button-font-size);font-weight:700;line-height:18px;user-select:none;min-width:var(--_c-button-min-width);white-space:nowrap;height:100%;width:100%;align-items:center;justify-content:center}.c-button__content *{pointer-events:none}.c-button__content svg{fill:var(--_c-button-loader-color);height:var(--_c-button-icon-size);width:var(--_c-button-icon-size)}.c-button__content svg.icon-by-path{margin-right:8px}.c-button__content svg.button-icon{margin-right:16px;font-size:10px;margin-left:-8px;margin-bottom:-2px}.c-button__content--small{--_c-button-padding:0 12px;--_c-button-font-size:14px;--_c-button-icon-size:20px}.c-button__content--large{--_c-button-padding:0 24px;--_c-button-font-size:18px}.c-button__content--no-radius{--_c-button-border-radius:0}.c-button__content--fitted{width:100%}.c-button__content--description{display:grid;grid-template-columns:1fr;gap:0}.c-button__content__inner{display:flex;gap:8px;height:var(--_c-button-height);align-items:center;justify-content:center;padding:var(--_c-button-padding)}.c-button__content__description{font-weight:400;font-size:12px;padding:0 12px 12px}.c-button__content__description--loading{opacity:0.8}.hide-text{color:transparent !important}.hide-text ::slotted([slot=icon]){opacity:0}.hide-text svg{fill:transparent !important}.hide-text .outlined.c-button svg{fill:transparent !important}.c-button__loader{width:100%;position:absolute;height:var(--_c-button-height);display:grid;place-content:center}.c-button__loader.dense_spinner{padding-top:7px}";
|
|
309
|
-
|
|
310
|
-
const CButton = class {
|
|
311
|
-
constructor(hostRef) {
|
|
312
|
-
registerInstance(this, hostRef);
|
|
313
|
-
this.tabChange = createEvent(this, "tabChange", 7);
|
|
314
|
-
this.tabFocus = createEvent(this, "tabFocus", 7);
|
|
315
|
-
this.inverted = false;
|
|
316
|
-
this.outlined = false;
|
|
317
|
-
this.ghost = false;
|
|
318
|
-
this.danger = false;
|
|
319
|
-
this.grouped = false;
|
|
320
|
-
this.text = false;
|
|
321
|
-
this.loading = false;
|
|
322
|
-
this.fit = false;
|
|
323
|
-
this.noRadius = false;
|
|
324
|
-
this.type = 'button';
|
|
325
|
-
this.disabled = false;
|
|
326
|
-
this.size = 'default';
|
|
327
|
-
this.target = '_blank';
|
|
328
|
-
this.tabs = false;
|
|
329
|
-
this._onClick = (event, center = false) => {
|
|
330
|
-
var _a;
|
|
331
|
-
if (this.disabled) {
|
|
332
|
-
event.preventDefault();
|
|
333
|
-
return;
|
|
334
|
-
}
|
|
335
|
-
this._rippleElement.createRipple(event, this._container, center);
|
|
336
|
-
if (this.tabs) {
|
|
337
|
-
this.tabChange.emit({
|
|
338
|
-
value: (_a = this.value) !== null && _a !== void 0 ? _a : this.hostElement.dataset.index,
|
|
339
|
-
element: this.hostElement,
|
|
340
|
-
});
|
|
341
|
-
}
|
|
342
|
-
if (this.type === 'submit') {
|
|
343
|
-
const submitButton = this._createHiddenSubmitButton();
|
|
344
|
-
submitButton.click();
|
|
345
|
-
submitButton.remove();
|
|
346
|
-
}
|
|
347
|
-
};
|
|
348
|
-
this._createHiddenSubmitButton = () => {
|
|
349
|
-
const form = this._closestElementComposed('form', this._container);
|
|
350
|
-
const submitButton = document.createElement('button');
|
|
351
|
-
submitButton.type = this.type;
|
|
352
|
-
submitButton.style.display = 'none';
|
|
353
|
-
submitButton.disabled = this.disabled;
|
|
354
|
-
form.appendChild(submitButton);
|
|
355
|
-
return submitButton;
|
|
356
|
-
};
|
|
357
|
-
this._onKeyDown = (event) => {
|
|
358
|
-
if (['Space', 'Enter'].includes(event.code)) {
|
|
359
|
-
if (!!this.href) {
|
|
360
|
-
window.open(this.href, this.target);
|
|
361
|
-
}
|
|
362
|
-
event.preventDefault();
|
|
363
|
-
this._onClick(event, true);
|
|
364
|
-
}
|
|
365
|
-
};
|
|
366
|
-
}
|
|
367
|
-
onTabFocus() {
|
|
368
|
-
var _a;
|
|
369
|
-
this.tabFocus.emit((_a = this.value) !== null && _a !== void 0 ? _a : this.hostElement.dataset.index);
|
|
370
|
-
}
|
|
371
|
-
_closestElementComposed(selector, base) {
|
|
372
|
-
function __closestFrom(el) {
|
|
373
|
-
const found = el.closest(selector);
|
|
374
|
-
return found ? found : __closestFrom(el.getRootNode().host);
|
|
375
|
-
}
|
|
376
|
-
return __closestFrom(base);
|
|
377
|
-
}
|
|
378
|
-
componentWillLoad() {
|
|
379
|
-
this._containerhasDescriptionSlot = !!this.hostElement.querySelector('[slot="description"]');
|
|
380
|
-
}
|
|
381
|
-
render() {
|
|
382
|
-
const contentClasses = {
|
|
383
|
-
'c-button__content': true,
|
|
384
|
-
'c-button__content--description': this._containerhasDescriptionSlot,
|
|
385
|
-
'c-button__content--fitted': !!this.fit,
|
|
386
|
-
'c-button__content--large': this.size === 'large',
|
|
387
|
-
'c-button__content--no-radius': !!this.noRadius,
|
|
388
|
-
'c-button__content--small': this.size === 'small',
|
|
389
|
-
};
|
|
390
|
-
const innerClasses = {
|
|
391
|
-
'c-button__content__inner': true,
|
|
392
|
-
'hide-text': this.loading,
|
|
393
|
-
};
|
|
394
|
-
const buttonClasses = {
|
|
395
|
-
fit: !!this.fit,
|
|
396
|
-
grouped: this.grouped,
|
|
397
|
-
outlined: this.outlined,
|
|
398
|
-
};
|
|
399
|
-
const hostClasses = {
|
|
400
|
-
'c-button': true,
|
|
401
|
-
'c-button--ghost': this.ghost,
|
|
402
|
-
'c-button--outlined': this.outlined,
|
|
403
|
-
'c-button--danger': this.danger,
|
|
404
|
-
'c-button--disabled': this.disabled,
|
|
405
|
-
'c-button--inverted': this.inverted,
|
|
406
|
-
'c-button--text': this.text,
|
|
407
|
-
'c-button--fitted': !!this.fit,
|
|
408
|
-
'c-button--description': !!this._containerhasDescriptionSlot,
|
|
409
|
-
'c-button--active': this.grouped && !this.outlined,
|
|
410
|
-
'c-button--no-radius': !!this.noRadius,
|
|
411
|
-
[`c-button--${this.size}`]: true,
|
|
412
|
-
};
|
|
413
|
-
const descriptionSlotClasses = {
|
|
414
|
-
'c-button__content__description': this._containerhasDescriptionSlot,
|
|
415
|
-
'c-button__content__description--loading': this.loading,
|
|
416
|
-
};
|
|
417
|
-
const Tag = !!this.href ? 'a' : 'button';
|
|
418
|
-
const hostAttributes = {
|
|
419
|
-
onKeyDown: this._onKeyDown,
|
|
420
|
-
};
|
|
421
|
-
const attributes = {
|
|
422
|
-
id: this.hostId,
|
|
423
|
-
class: buttonClasses,
|
|
424
|
-
disabled: this.disabled,
|
|
425
|
-
onClick: this._onClick,
|
|
426
|
-
type: this.type,
|
|
427
|
-
};
|
|
428
|
-
let linkAttributes = {};
|
|
429
|
-
if (!!this.href) {
|
|
430
|
-
linkAttributes = { href: this.href, target: this.target };
|
|
431
|
-
}
|
|
432
|
-
const spinnerSizes = {
|
|
433
|
-
small: 20,
|
|
434
|
-
default: 24,
|
|
435
|
-
large: 28,
|
|
436
|
-
};
|
|
437
|
-
return (h(Host, Object.assign({ key: '1e7fd3d5ed864159709a2e34ec23fa62830e84b8', class: hostClasses }, hostAttributes), h(Tag, Object.assign({ key: '372d34c304df775577e9165ae24b88f299a38d2c' }, attributes, linkAttributes), h("div", { key: '3ab7cc2472bda14f499a520c4dd53a0543ead5ba', class: contentClasses, ref: (el) => (this._container = el) }, h("div", { key: '929fbd77601b9f58d7d0002e4213a50ae495dfd0', class: innerClasses }, this.loading && (h("div", { key: '90e97a37732c2903b718c11439232f563294eb7d', class: "c-button__loader" }, h("c-spinner", { key: '277ee152de7e3c61891c52ee51f771f85df0a5ed', color: "var(--_c-button-loader-color)", size: spinnerSizes[this.size] }))), h("slot", { key: '7b6a4797d7bd515f8171b8d83a3c3a5b30c3be81' })), this._containerhasDescriptionSlot && (h("div", { key: '479ed7791480a8ac29864b53cad7db65826eba3f', class: descriptionSlotClasses }, h("slot", { key: '634af8d8b67366d3e28f9eefd961c5cc68d1b34c', name: "description" })))), h("c-ripple", { key: '670f5e91b610d7e7d19684a725cfec20d0537eec', ref: (el) => (this._rippleElement = el) }))));
|
|
438
|
-
}
|
|
439
|
-
get hostElement() { return getElement(this); }
|
|
440
|
-
};
|
|
441
|
-
CButton.style = cButtonCss;
|
|
442
|
-
|
|
443
|
-
const cCardCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host(c-card){--_c-card-gap:var(--c-card-gap, clamp(1rem, 2vw, 1.5rem));--_c-card-background-color:var(--c-card-background-color, var(--c-white));display:flex;border-radius:6px;box-shadow:rgba(0, 0, 0, 0.15) 0 10px 20px, rgba(0, 0, 0, 0.2) 0 5px 5px;position:relative;background-color:var(--_c-card-background-color)}:host(c-card) article{display:flex;flex-direction:column;flex:1;gap:var(--_c-card-gap);max-width:100%;padding-block:var(--_c-card-gap)}:host(.c-card--fullscreen){--c-icon-button-text-background-color:var(--c-white);overflow:auto}:host(.c-card--fullscreen) .c-card__fullscreen-toggle{position:fixed}@-moz-document url-prefix(){:host(.c-card--fullscreen) .c-card__fullscreen-toggle{position:absolute}}::slotted(c-loader){border-radius:6px}.c-card__fullscreen-toggle{position:absolute;right:calc(var(--_c-card-gap) - 8px);top:calc(var(--_c-card-gap) - 8px)}";
|
|
444
|
-
|
|
445
|
-
const CCard = class {
|
|
446
|
-
constructor(hostRef) {
|
|
447
|
-
registerInstance(this, hostRef);
|
|
448
|
-
this.fullscreen = false;
|
|
449
|
-
this.isFullscreen = false;
|
|
450
|
-
}
|
|
451
|
-
_toggleFullscreen() {
|
|
452
|
-
this.isFullscreen = !this.isFullscreen;
|
|
453
|
-
}
|
|
454
|
-
_onFullscreen() {
|
|
455
|
-
var _a, _b;
|
|
456
|
-
if (document.fullscreenElement) {
|
|
457
|
-
this.exitFullscreen();
|
|
458
|
-
return;
|
|
459
|
-
}
|
|
460
|
-
this.host.requestFullscreen();
|
|
461
|
-
const modalWrapper = (_b = (_a = this.host.parentElement) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('.modal-wrapper');
|
|
462
|
-
if (modalWrapper) {
|
|
463
|
-
modalWrapper.style.display = this.isFullscreen
|
|
464
|
-
? 'block'
|
|
465
|
-
: 'flex';
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
componentDidLoad() {
|
|
469
|
-
const title = this.host.querySelector('c-card-title');
|
|
470
|
-
if (!!title && this.fullscreen) {
|
|
471
|
-
title.style.marginRight = '40px';
|
|
472
|
-
}
|
|
473
|
-
this.host.addEventListener('fullscreenchange', this._toggleFullscreen.bind(this));
|
|
474
|
-
}
|
|
475
|
-
disconnectedCallback() {
|
|
476
|
-
this.host.removeEventListener('fullscreenchange', this._toggleFullscreen.bind(this));
|
|
477
|
-
}
|
|
478
|
-
async exitFullscreen() {
|
|
479
|
-
var _a, _b;
|
|
480
|
-
if (!document.fullscreenElement)
|
|
481
|
-
return;
|
|
482
|
-
document.exitFullscreen();
|
|
483
|
-
const modalWrapper = (_b = (_a = this.host.parentElement) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('.modal-wrapper');
|
|
484
|
-
if (modalWrapper) {
|
|
485
|
-
modalWrapper.style.display = 'flex';
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
async enterFullscreen() {
|
|
489
|
-
this.isFullscreen = true;
|
|
490
|
-
}
|
|
491
|
-
render() {
|
|
492
|
-
const hostClasses = {
|
|
493
|
-
'c-card': true,
|
|
494
|
-
'c-card--fullscreen': this.isFullscreen,
|
|
495
|
-
};
|
|
496
|
-
return (h(Host, { key: '4b8b56fe9d14b6146e03600a4dc20edfca745c30', class: hostClasses }, h("article", { key: '2a22228619e1317311639dfcb9f41e2267dd1ec5' }, this.fullscreen && (h("c-icon-button", { key: '6c6ffc4abd4b7956633d65ca93048d37f83e8bbb', "aria-hidden": "true", class: "c-card__fullscreen-toggle", title: this.isFullscreen ? 'Exit fullscreen' : 'Enter fullscreen', text: true, onClick: () => this._onFullscreen() }, h("c-icon", { key: 'b23ab9eeb9d5202b0bd2737f5e3a122301b8ac5a', path: this.isFullscreen ? mdiFullscreenExit : mdiFullscreen }))), h("slot", { key: '484f61f84cb4b87dadae63fcaa39f675b68cd7c9' }))));
|
|
497
|
-
}
|
|
498
|
-
static get assetsDirs() { return ["assets"]; }
|
|
499
|
-
get host() { return getElement(this); }
|
|
500
|
-
};
|
|
501
|
-
CCard.style = cCardCss;
|
|
502
|
-
|
|
503
|
-
const cCardActionsCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{display:block}:host menu{margin:0;padding:0}:host footer{padding:0 var(--_c-card-gap, 24px)}.c-card-actions{align-items:center;display:flex;gap:8px}.c-card-actions ::slotted(c-button[fit]){flex:1}.c-card-actions--align-center{align-items:center}.c-card-actions--align-start{align-items:flex-start}.c-card-actions--align-end{align-items:flex-end}.c-card-actions--justify-center{justify-content:center}.c-card-actions--justify-end{justify-content:flex-end}.c-card-actions--justify-start{justify-content:flex-start}.c-card-actions--justify-stretch{justify-content:stretch}.c-card-actions--justify-stretch ::slotted(*){flex:1}.c-card-actions--justify-space-between{justify-content:space-between}.c-card-actions--justify-space-around{justify-content:space-around}";
|
|
504
|
-
|
|
505
|
-
const CCardActions = class {
|
|
506
|
-
constructor(hostRef) {
|
|
507
|
-
registerInstance(this, hostRef);
|
|
508
|
-
this.align = 'center';
|
|
509
|
-
this.justify = 'start';
|
|
510
|
-
}
|
|
511
|
-
render() {
|
|
512
|
-
const classes = {
|
|
513
|
-
'c-card-actions': true,
|
|
514
|
-
[`c-card-actions--align-${this.align}`]: true,
|
|
515
|
-
[`c-card-actions--justify-${this.justify}`]: true,
|
|
516
|
-
};
|
|
517
|
-
return (h("footer", { key: '1644d83ad19add11566841822b6da6328e563ec9' }, h("menu", { key: '33ec53400fa5bcacbcaf9cd8a8c57b75f9079658', class: classes }, h("slot", { key: '412960bdda2bdc07b1c94158f410736e453fb005' }))));
|
|
518
|
-
}
|
|
519
|
-
};
|
|
520
|
-
CCardActions.style = cCardActionsCss;
|
|
521
|
-
|
|
522
|
-
const cCardContentCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{display:block}.c-card-content{padding:0 var(--_c-card-gap, 24px);display:flex;flex-direction:column;gap:var(--_c-card-gap)}.c-card-content ::slotted(*){max-width:100%}";
|
|
523
|
-
|
|
524
|
-
const CCardContent = class {
|
|
525
|
-
constructor(hostRef) {
|
|
526
|
-
registerInstance(this, hostRef);
|
|
527
|
-
}
|
|
528
|
-
render() {
|
|
529
|
-
return (h("article", { key: 'ed7ad9f7ab6b9211b2d02888599dcb41658581fd', class: "c-card-content" }, h("slot", { key: '49072df222e460faf163f8a5a6888b30f485b8b4' })));
|
|
530
|
-
}
|
|
531
|
-
};
|
|
532
|
-
CCardContent.style = cCardContentCss;
|
|
533
|
-
|
|
534
|
-
const cCardTitleCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-card-title-color:var(--c-card-title-color, var(--c-text-system));--_c-card-title-underline-color:var(--c-card-title-underline-color, var(--c-primary-600));color:var(--_c-card-title-color);display:block;font-family:var(--c-font-family);font-size:1rem;font-weight:500;text-transform:uppercase;text-wrap:balance}.c-card-title{padding-inline:var(--_c-card-gap, 24px)}.c-card-title__header p{margin:0}.c-card-title--actions{display:flex;flex-wrap:wrap;align-items:start;flex:0 0 auto;gap:8px}.c-card-title--actions.c-card-title--wrapped .c-card-title__actions{justify-content:start}.c-card-title__underline{background-color:var(--_c-card-title-underline-color);border-radius:4px;height:4px;margin-top:10px;width:44px}.c-card-title__actions{justify-content:end;align-items:center;display:flex;flex-wrap:wrap-reverse;gap:8px;flex:1}";
|
|
535
|
-
|
|
536
|
-
const CCardTitle = class {
|
|
537
|
-
constructor(hostRef) {
|
|
538
|
-
registerInstance(this, hostRef);
|
|
539
|
-
this._slotHasContent = false;
|
|
540
|
-
this._isWrapped = false;
|
|
541
|
-
}
|
|
542
|
-
_handleResize() {
|
|
543
|
-
if (!this._headerElement || !this._actionsElement)
|
|
544
|
-
return;
|
|
545
|
-
this._isWrapped =
|
|
546
|
-
this._headerElement.getBoundingClientRect().top <
|
|
547
|
-
this._actionsElement.getBoundingClientRect().top;
|
|
548
|
-
this._wrapperElement.classList.toggle('c-card-title--wrapped', this._isWrapped);
|
|
549
|
-
}
|
|
550
|
-
componentWillLoad() {
|
|
551
|
-
this._slotHasContent = !!this.hostElement.querySelector('[slot="actions"]');
|
|
552
|
-
}
|
|
553
|
-
componentDidLoad() {
|
|
554
|
-
this._resizeObserver = new ResizeObserver(() => {
|
|
555
|
-
this._handleResize();
|
|
556
|
-
});
|
|
557
|
-
this._resizeObserver.observe(this.hostElement);
|
|
558
|
-
}
|
|
559
|
-
disconnectedCallback() {
|
|
560
|
-
var _a;
|
|
561
|
-
(_a = this._resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
562
|
-
}
|
|
563
|
-
render() {
|
|
564
|
-
const classes = {
|
|
565
|
-
'c-card-title': true,
|
|
566
|
-
'c-card-title--actions': this._slotHasContent,
|
|
567
|
-
};
|
|
568
|
-
return (h("header", { key: '6b04a629aedb1b4ce20a2b69d8dc368136dec145', class: classes, ref: (el) => (this._wrapperElement = el) }, h("div", { key: '1b8692120812342e0c8e9c958e35f1b38986663a', class: "c-card-title__header", ref: (el) => (this._headerElement = el) }, h("p", { key: '434a56c1688b75ca2255fe32221093e5e07c0cad' }, h("slot", { key: 'e2b95da5d429b5db8884178aaeea0ea5dade84f1' })), h("div", { key: 'dec81bab9565102d5864e29ebb6c5a5482256084', class: "c-card-title__underline" })), this._slotHasContent && (h("div", { key: '590b526965be76062c687251b7ad952ae8d8de33', class: "c-card-title__actions", ref: (el) => (this._actionsElement = el) }, h("slot", { key: '6f8cd9bb5f927c37ad7ba9c28110421b73cda137', name: "actions" })))));
|
|
569
|
-
}
|
|
570
|
-
get hostElement() { return getElement(this); }
|
|
571
|
-
};
|
|
572
|
-
CCardTitle.style = cCardTitleCss;
|
|
573
|
-
|
|
574
|
-
const cCheckboxCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-checkbox-background-color-hover:var(--c-checkbox-background-color-hover, rgba(var(--c-primary-rgb), 0.1));--_c-checkbox-color-active:var(--c-checkbox-color-active, var(--_c-checkbox-color));--_c-checkbox-color-disabled:var(--c-checkbox-color-disabled, var(--c-tertiary-500));--_c-checkbox-color:var(--c-checkbox-color, var(--c-primary-600));--_c-checkbox-color-error:var(--c-error-600)}.c-checkbox{position:relative;width:fit-content}.c-checkbox__label-content{padding-top:10px;text-align:left;user-select:none}.c-checkbox__label-content span.required{color:var(--c-error-600)}.c-checkbox--disabled{--_c-checkbox-color:var(--_c-checkbox-color-disabled);--c-error-600:var(--_c-checkbox-color);--_c-checkbox-color-active:var(--_c-checkbox-color-disabled);color:var(--_c-checkbox-color);opacity:0.75}.c-checkbox--disabled .c-checkbox__label{cursor:default}.c-checkbox--error{--_c-checkbox-color:var(--c-error-600);--_c-checkbox-color-active:var(--_c-checkbox-color-error);color:var(--_c-checkbox-color-error)}.c-checkbox input:focus{outline:none}.c-checkbox input:focus+.c-checkbox__label .ripple{outline:2px var(--_c-checkbox-color-active) solid}@supports selector(:focus-visible){.c-checkbox input:focus+.c-checkbox__label .ripple{outline:none}}.c-checkbox input:focus-visible+.c-checkbox__label .ripple{outline:2px var(--_c-checkbox-color-active) solid}.c-checkbox:not(.c-checkbox--disabled) .ripple:hover{background-color:var(--_c-checkbox-background-color-hover)}.c-checkbox .visuallyhidden{border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.c-checkbox input:checked+.c-checkbox__label .ripple::before{background:var(--_c-checkbox-color-active);border-color:var(--_c-checkbox-color-active)}.c-checkbox input:checked+.c-checkbox__label .path{stroke:#ffffff;fill:#ffffff;stroke-dashoffset:0;stroke-width:13;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10}.c-checkbox__label{cursor:pointer;display:flex;gap:4px;position:relative;user-select:none}.c-checkbox__label svg{height:14px;left:14px;position:absolute;top:14px;width:14px}.c-checkbox__label--indeterminate .path{stroke-dasharray:0 !important;stroke-dashoffset:0 !important;stroke:transparent}.c-checkbox__label .ripple{border-radius:50%;color:var(--_c-checkbox-color-active);display:grid;height:42px;min-width:42px;overflow:hidden;place-content:center;position:relative;transform:translateZ(0);width:42px}.c-checkbox__label .ripple::before{border-radius:2px;border:2px solid var(--_c-checkbox-color);content:\"\";display:inline-block;height:18px;left:12px;position:absolute;top:12px;transition:all 0.25s ease-out;vertical-align:middle;width:18px}";
|
|
575
|
-
|
|
576
|
-
const CCheckbox = class {
|
|
577
|
-
constructor(hostRef) {
|
|
578
|
-
registerInstance(this, hostRef);
|
|
579
|
-
this.changeValue = createEvent(this, "changeValue", 3);
|
|
580
|
-
if (hostRef.$hostElement$["s-ei"]) {
|
|
581
|
-
this.internals = hostRef.$hostElement$["s-ei"];
|
|
582
|
-
}
|
|
583
|
-
else {
|
|
584
|
-
this.internals = hostRef.$hostElement$.attachInternals();
|
|
585
|
-
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
586
|
-
}
|
|
587
|
-
this.checked = false;
|
|
588
|
-
this.disabled = false;
|
|
589
|
-
this.hideDetails = false;
|
|
590
|
-
this.hint = '';
|
|
591
|
-
this.indeterminate = false;
|
|
592
|
-
this.label = '';
|
|
593
|
-
this.required = false;
|
|
594
|
-
this.valid = true;
|
|
595
|
-
this.validation = 'Required field';
|
|
596
|
-
this.value = false;
|
|
597
|
-
this.trueValue = true;
|
|
598
|
-
this.falseValue = false;
|
|
599
|
-
}
|
|
600
|
-
get _id() {
|
|
601
|
-
return this.hostId || `checkbox_${CCheckbox._uniqueId}`;
|
|
602
|
-
}
|
|
603
|
-
onValueChange(value) {
|
|
604
|
-
this.checked = this.trueValue === value;
|
|
605
|
-
this.internals.setFormValue(this.checked ? this.trueValue.toString() : this.falseValue.toString());
|
|
606
|
-
}
|
|
607
|
-
componentWillLoad() {
|
|
608
|
-
CCheckbox._uniqueId += 1;
|
|
609
|
-
this.checked = this.checked || this.value === this.trueValue;
|
|
610
|
-
this.internals.setFormValue(this.checked ? this.trueValue.toString() : this.falseValue.toString());
|
|
611
|
-
}
|
|
612
|
-
_toggleState(event) {
|
|
613
|
-
if (this.disabled)
|
|
614
|
-
return;
|
|
615
|
-
this._rippleElement.createRipple(event, this._container, true);
|
|
616
|
-
this.checked = !this.checked;
|
|
617
|
-
this.changeValue.emit(this.checked ? this.trueValue : this.falseValue);
|
|
618
|
-
this.internals.setFormValue(this.checked ? this.trueValue.toString() : this.falseValue.toString());
|
|
619
|
-
}
|
|
620
|
-
render() {
|
|
621
|
-
const wrapperClasses = {
|
|
622
|
-
'c-checkbox': true,
|
|
623
|
-
'c-checkbox--disabled': this.disabled,
|
|
624
|
-
'c-checkbox--error': !this.valid,
|
|
625
|
-
};
|
|
626
|
-
const labelClasses = {
|
|
627
|
-
'c-checkbox__label': true,
|
|
628
|
-
'c-checkbox__label--indeterminate': this.indeterminate,
|
|
629
|
-
};
|
|
630
|
-
const slotHasContent = !!this.el.childNodes.length;
|
|
631
|
-
return (h(Host, { key: 'e39e3e681c8b1267e58182872f704cb048e14daa' }, h("div", { key: '83a582b3231bfafc6f3deabe3b5cad87c1dac99c', class: wrapperClasses }, h("input", Object.assign({ key: '9b20de6459795c6b8f41d1aa31212fa8dc071bf6', class: "visuallyhidden", id: "checkbox" }, (!!this.hostName ? { name: this.hostName } : {}), { type: "checkbox", "aria-checked": this.checked.toString(), "aria-disabled": this.disabled.toString(), checked: this.checked ? true : undefined, disabled: this.disabled, onChange: (event) => this._toggleState(event) })), h("label", { key: 'ef2eb908f56cab3de39a53270a95cea892db99ec', class: labelClasses, htmlFor: "checkbox" }, h("div", { key: 'f260766abb707826ac5498301a2966d6f714c66f', class: "ripple", ref: (el) => (this._container = el) }, h("svg", { key: '8d43f917054de11772dd246871947a2291086d4a', viewBox: "0 0 100 100" }, !this.indeterminate && this.checked && (h("path", { key: '448595e010c4292f113b58837f6dca92522b6acd', class: "path", d: "M 12 52 l 24 24 l 47 -47 l -3 -3 l -44 44 l -21 -21 l -3 3" })), this.indeterminate && (h("path", { key: 'd88bb390971e37d265a2ac5676cf890ebca09729', class: "path", d: "M20 56 h60 v-8 h-60 z" }))), h("c-ripple", { key: '67101de46a7627092f9280756fe8b310a95e2635', ref: (el) => (this._rippleElement = el) })), (!!this.label || slotHasContent) && (h("div", { key: '186fa5f1b2aeb8750a72e4be36c8182b1fe8b903', class: "c-checkbox__label-content" }, !!this.label ? this.label : h("slot", null), this.required && h("span", { key: '6b9f54993ec9bcc98780bf36401ce6aaf887e78e', class: "required" }, "\u00A0*"))))), !this.hideDetails && (h("c-message", { key: '1a73cca7a518fcd65370f67b09ba6ae257e0eb15', hint: this.hint, inputId: this._id, valid: this.valid, validation: this.validation }))));
|
|
632
|
-
}
|
|
633
|
-
static get formAssociated() { return true; }
|
|
634
|
-
get el() { return getElement(this); }
|
|
635
|
-
static get watchers() { return {
|
|
636
|
-
"value": ["onValueChange"]
|
|
637
|
-
}; }
|
|
638
|
-
};
|
|
639
|
-
CCheckbox._uniqueId = 0;
|
|
640
|
-
CCheckbox.style = cCheckboxCss;
|
|
641
|
-
|
|
642
|
-
const cCscLogoCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{display:block;margin-top:4px}svg .cls-1{fill:none}svg .cls-2{clip-path:url(\"#clip-path\")}svg .cls-3{fill:#5e6a71}svg .cls-4{fill:#066778}svg .cls-5{fill:#830051}";
|
|
643
|
-
|
|
644
|
-
const CCscLogo = class {
|
|
645
|
-
constructor(hostRef) {
|
|
646
|
-
registerInstance(this, hostRef);
|
|
647
|
-
this.width = 60;
|
|
648
|
-
}
|
|
649
|
-
render() {
|
|
650
|
-
const svg = (h("svg", { key: '54b3971843697a7c488eecbdfd2c265d873d111c', viewBox: "0 0 233.61 149.04" }, h("defs", { key: '5d8813b912482249b2a92d5352bdd4c388653ea5' }, h("clipPath", { key: '780df41999a1f301e52eab76ca25032ac4160bad', id: "clip-path", transform: "translate(0)" }, h("rect", { key: '158ed01600357bc8439c81eb0bb5f4aee1728750', class: "cls-1", width: "233.61", height: "156.31" }))), h("title", { key: 'b24be3c26bd98f144630cbda0e2f443faa746c34' }, "CSC_logo_no_tagline"), h("g", { key: 'a3d3edf81ed68ee9f8a2221bb127699ba8a8a51c', id: "Layer_2", "data-name": "Layer 2" }, h("g", { key: '0a719f1c94b0dffac3a1c2ae07320f03e16af0f8', id: "Layer_1-2", "data-name": "Layer 1" }, h("g", { key: 'f324e345d34987a00d3aee1ea823642c5f134269', class: "cls-2" }, h("path", { key: '530ac028c3477b9719d71dfbf7c1921b81fdb8c7', class: "cls-3", d: "M97.24,130.66l-.27-.17a.69.69,0,0,1-.44.19,14.57,14.57,0,0,1-1.87-1.07,9.29,9.29,0,0,0-4.46-1.06c-6,0-9.21,4.93-9.21,10.24S84.22,149,90.09,149c4.6,0,5.89-2.57,7-2.57a2.17,2.17,0,0,1,.25.05l.22-.11-2.44-3.34-.28.17a1.84,1.84,0,0,1,.06.41c0,1.34-2.36,2.71-4.64,2.65-4.33-.08-6.08-3.72-6.08-7.56s1.86-7.45,6-7.45c2.2,0,4.44,1.15,4.44,2.21,0,.25.06.41,0,.53l.33.13ZM108,146.72l.32.13a.75.75,0,0,1,.42-.22,12.54,12.54,0,0,0,7.62,2.41c4.32,0,7.28-2.49,7.28-6.19,0-8.14-11.86-4.17-11.86-8.6,0-1.7,1-3,4.11-3,2.41,0,5.26,1,5.26,2.49a.92.92,0,0,1,0,.3l.36.17,1.92-4.14-.28-.11a.85.85,0,0,1-.62.3,11.61,11.61,0,0,1-1.95-.88,11,11,0,0,0-4.5-.87c-4.33,0-7.4,2.08-7.4,5.8,0,7.82,11.76,3.68,11.76,8.67,0,2.27-1.65,3.28-4,3.28-2.77,0-6.11-1.53-6.11-3a1.89,1.89,0,0,1,0-.41l-.31-.17Zm42.56-16.06-.28-.17a.64.64,0,0,1-.43.19,14.57,14.57,0,0,1-1.87-1.07,9.3,9.3,0,0,0-4.47-1.06c-6,0-9.21,4.93-9.21,10.24S137.5,149,143.37,149c4.6,0,5.89-2.57,7-2.57a1.59,1.59,0,0,1,.24.05l.22-.11-2.44-3.34-.27.17a1.84,1.84,0,0,1,.05.41c0,1.34-2.35,2.71-4.63,2.65-4.33-.08-6.08-3.72-6.08-7.56s1.86-7.45,6-7.45c2.2,0,4.44,1.15,4.44,2.21a1.82,1.82,0,0,1,0,.53l.33.13Z", transform: "translate(0)" }), h("path", { key: 'e5ab27c608de5dca16ba12a7207e4a05ec3a9162', class: "cls-4", d: "M117.26,117.71s-2.66-.42-2.72-1.66c-2.41-54.33-7.39-52.22-111.82-54.33-2,0-2.72-2.87-2.72-2.87H117.26Z", transform: "translate(0)" }), h("path", { key: 'f88b5d04702af9f7baca86f3236eb17d97627be9', class: "cls-5", d: "M116.35,0s2.66.42,2.72,1.66C121.49,56,126.46,53.88,230.89,56c2,0,2.72,2.87,2.72,2.87H116.35Z", transform: "translate(0)" }))))));
|
|
651
|
-
return h(Host, { key: '559468796a8a599f194091b4920b4236765c11bc', style: { width: `${this.width}px` } }, svg);
|
|
652
|
-
}
|
|
653
|
-
};
|
|
654
|
-
CCscLogo.style = cCscLogoCss;
|
|
655
|
-
|
|
656
|
-
const cDropdownCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host(c-dropdown){--_c-dropdown-background-color:var(\n --c-dropdown-background-color,\n var(--c-white)\n );--_c-dropdown-background-color-hover:var(\n --c-dropdown-background-color-hover,\n var(--c-primary-200)\n );--_c-dropdown-text-color:var(--c-dropdown-text-color, var(--c-text-body));--_c-dropdown-text-color-active:var(\n --c-dropdown-text-color-active,\n var(--c-primary-600)\n );--_c-dropdown-font-size:14px;--_c-dropdown-height:42px;display:block;position:relative}:host(c-dropdown) mark{background-color:transparent;box-shadow:0 2px 0 0 var(--_c-dropdown-text-color-active);color:inherit}:host(c-dropdown) dialog{border-radius:4px;background-color:transparent;border:none;margin:-4px 0 0;overflow:visible;padding:4px 0 0;position:fixed}:host(c-dropdown) dialog::backdrop{opacity:0}:host(c-dropdown) dialog[open].mobile{background-color:var(--_c-dropdown-background-color);width:100vw;max-width:100vw;height:100vh;max-height:100svh;inset:0}:host(c-dropdown) dialog[open].mobile .input-top-wrapper{padding:8px}:host(c-dropdown) dialog .input-bottom-wrapper.active{padding-top:8px}:host(c-dropdown) .dummy{display:none}:host(c-dropdown) ul{background-color:var(--_c-dropdown-background-color);box-shadow:2px 4px 10px rgba(0, 0, 0, 0.1607843137);border-radius:4px;list-style:none;margin:0;outline:none;padding:0;pointer-events:auto;visibility:hidden;width:100%;height:max-content;overflow-y:scroll}:host(c-dropdown) ul.active{visibility:visible;animation:0.2s 1 fade-in cubic-bezier(0.25, 0.8, 0.5, 1)}:host(c-dropdown) ul.active.mobile{width:100vw;max-width:100vw;height:100vh;max-height:calc(100svh - 60px)}:host(c-dropdown) li{align-items:center;column-gap:12px;cursor:pointer;display:flex;flex-wrap:nowrap;font-size:var(--_c-dropdown-font-size);min-height:var(--_c-dropdown-height);outline:none;padding-left:10px;padding-right:10px;pointer-events:auto;white-space:nowrap;width:100%;border-radius:4px;user-select:none}:host(c-dropdown) li span,:host(c-dropdown) li c-option-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}:host(c-dropdown) li:hover,:host(c-dropdown) li:focus,:host(c-dropdown) li.active{background:var(--_c-dropdown-background-color-hover);color:var(--_c-dropdown-text-color-active);box-shadow:inset 0 0 0 1px var(--_c-dropdown-text-color-active)}:host(c-dropdown) li:not(.disabled,:hover,:focus)[aria-selected=true]{background:var(--_c-dropdown-background-color-hover);color:var(--_c-dropdown-text-color-active);border-radius:0}:host(c-dropdown) li.disabled{background-color:rgba(var(--c-tertiary-rgb), 0.05);cursor:default;filter:grayscale(1) opacity(0.75)}:host(c-dropdown) .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)}}";
|
|
657
|
-
|
|
658
|
-
const CDropdown = class {
|
|
659
|
-
constructor(hostRef) {
|
|
660
|
-
registerInstance(this, hostRef);
|
|
661
|
-
this.selectOption = createEvent(this, "selectOption", 7);
|
|
662
|
-
this.dropdownStateChange = createEvent(this, "dropdownStateChange", 7);
|
|
663
|
-
this._debounce = null;
|
|
664
|
-
this._isMobile = false;
|
|
665
|
-
this._listItems = [];
|
|
666
|
-
this.renderedList = null;
|
|
667
|
-
this.isOpen = false;
|
|
668
|
-
this.statusText = '';
|
|
669
|
-
this._isOpening = false;
|
|
670
|
-
this._inputSize = {
|
|
671
|
-
height: 0,
|
|
672
|
-
width: 0,
|
|
673
|
-
};
|
|
674
|
-
this._openedOnTop = false;
|
|
675
|
-
this._hideDetails = false;
|
|
676
|
-
}
|
|
677
|
-
optionsWatcher() {
|
|
678
|
-
requestAnimationFrame(() => {
|
|
679
|
-
this.renderedList = this._renderList();
|
|
680
|
-
});
|
|
681
|
-
}
|
|
682
|
-
async stateWatcher(isOpen) {
|
|
683
|
-
this._originalOverflowValue =
|
|
684
|
-
this._originalOverflowValue ||
|
|
685
|
-
window.getComputedStyle(document.body).overflow;
|
|
686
|
-
if (isOpen) {
|
|
687
|
-
this._handleOpen();
|
|
688
|
-
this._disableScroll();
|
|
689
|
-
}
|
|
690
|
-
else {
|
|
691
|
-
this._enableScroll();
|
|
692
|
-
}
|
|
693
|
-
this.dropdownStateChange.emit(isOpen);
|
|
694
|
-
}
|
|
695
|
-
handleIndexChange(index) {
|
|
696
|
-
requestAnimationFrame(() => {
|
|
697
|
-
var _a;
|
|
698
|
-
this._updateStatusText();
|
|
699
|
-
(_a = this._listItems[index]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
700
|
-
});
|
|
701
|
-
}
|
|
702
|
-
async setStatusText(text) {
|
|
703
|
-
requestAnimationFrame(() => {
|
|
704
|
-
this.statusText = text;
|
|
705
|
-
});
|
|
706
|
-
}
|
|
707
|
-
async focusItem(index) {
|
|
708
|
-
requestAnimationFrame(() => {
|
|
709
|
-
var _a;
|
|
710
|
-
(_a = this._listItems[index]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
711
|
-
});
|
|
712
|
-
}
|
|
713
|
-
async open() {
|
|
714
|
-
if (this._dialog.open)
|
|
715
|
-
return;
|
|
716
|
-
this._outsideClickFn = this._handleOutsideClick.bind(this);
|
|
717
|
-
this._dialog.addEventListener('click', this._outsideClickFn);
|
|
718
|
-
requestAnimationFrame(() => {
|
|
719
|
-
this.isOpen = true;
|
|
720
|
-
this._positionMenu();
|
|
721
|
-
});
|
|
722
|
-
}
|
|
723
|
-
async close() {
|
|
724
|
-
this._dialog.close();
|
|
725
|
-
this.isOpen = false;
|
|
726
|
-
this._inputElement.slot = 'default';
|
|
727
|
-
this._inputElement.hideDetails = this._hideDetails;
|
|
728
|
-
this._dummyElement.style.width = '0';
|
|
729
|
-
this._dummyElement.style.display = 'none';
|
|
730
|
-
this._dialog.style.width = '0';
|
|
731
|
-
window.removeEventListener('click', this._outsideClickFn);
|
|
732
|
-
}
|
|
733
|
-
_setIsMobile() {
|
|
734
|
-
this._isMobile = window.matchMedia('only screen and (max-width: 760px)').matches;
|
|
735
|
-
}
|
|
736
|
-
_handleOpen() {
|
|
737
|
-
this._isOpening = true;
|
|
738
|
-
setTimeout(() => {
|
|
739
|
-
this._isOpening = false;
|
|
740
|
-
}, 500);
|
|
741
|
-
}
|
|
742
|
-
_disableScroll() {
|
|
743
|
-
document.body.style.overflow = 'hidden';
|
|
744
|
-
}
|
|
745
|
-
_enableScroll() {
|
|
746
|
-
if (this._originalOverflowValue &&
|
|
747
|
-
this._originalOverflowValue !== 'visible') {
|
|
748
|
-
document.body.style.overflow = this._originalOverflowValue;
|
|
749
|
-
return;
|
|
750
|
-
}
|
|
751
|
-
document.body.style.removeProperty('overflow');
|
|
752
|
-
}
|
|
753
|
-
componentDidLoad() {
|
|
754
|
-
this._setIsMobile();
|
|
755
|
-
this._hideDetails = this.parent.hideDetails;
|
|
756
|
-
this._inputElement = this.el.querySelector('c-input');
|
|
757
|
-
this._resizeObserver = new ResizeObserver((entries) => {
|
|
758
|
-
if (!this._dialog.open)
|
|
759
|
-
return;
|
|
760
|
-
requestAnimationFrame(() => {
|
|
761
|
-
if (!Array.isArray(entries) || !entries.length || this._isOpening)
|
|
762
|
-
return;
|
|
763
|
-
this._setIsMobile();
|
|
764
|
-
this.close();
|
|
765
|
-
});
|
|
766
|
-
});
|
|
767
|
-
this._resizeObserver.observe(window.document.body);
|
|
768
|
-
requestAnimationFrame(() => {
|
|
769
|
-
this.renderedList = this._renderList();
|
|
770
|
-
});
|
|
771
|
-
}
|
|
772
|
-
async selectItem(index) {
|
|
773
|
-
const item = this._listItems[index];
|
|
774
|
-
if (item.classList.contains('disabled')) {
|
|
775
|
-
return true;
|
|
776
|
-
}
|
|
777
|
-
this._listItems[index].click();
|
|
778
|
-
return false;
|
|
779
|
-
}
|
|
780
|
-
async updateList(reset = false) {
|
|
781
|
-
if (reset) {
|
|
782
|
-
this.index = 0;
|
|
783
|
-
}
|
|
784
|
-
requestAnimationFrame(() => {
|
|
785
|
-
this.renderedList = this._renderList();
|
|
786
|
-
});
|
|
787
|
-
}
|
|
788
|
-
_handleOutsideClick() {
|
|
789
|
-
if (!this.isOpen)
|
|
790
|
-
return;
|
|
791
|
-
this.close();
|
|
792
|
-
}
|
|
793
|
-
_highlightMatchingText(value) {
|
|
794
|
-
const { query } = this.parent;
|
|
795
|
-
if (this.parent.tagName === 'C-SELECT' || query === '')
|
|
796
|
-
return value;
|
|
797
|
-
const regex = new RegExp(query, 'gi');
|
|
798
|
-
const highlighted = value
|
|
799
|
-
.replace(/(<([^>]+)>)/gi, '')
|
|
800
|
-
.replace(regex, (match) => `<mark>${match}</mark>`);
|
|
801
|
-
return highlighted;
|
|
802
|
-
}
|
|
803
|
-
_getParentPosition() {
|
|
804
|
-
return this.parent.shadowRoot
|
|
805
|
-
.querySelector('.c-input__slot')
|
|
806
|
-
.getBoundingClientRect();
|
|
807
|
-
}
|
|
808
|
-
_positionMenu() {
|
|
809
|
-
const { innerHeight } = window;
|
|
810
|
-
this._dialog.style.width = 'auto';
|
|
811
|
-
this._dialog.style.opacity = '0';
|
|
812
|
-
this._dialog.showModal();
|
|
813
|
-
requestAnimationFrame(() => {
|
|
814
|
-
let inputSlot = 'input-top';
|
|
815
|
-
const { top: parentTop, width } = this._getParentPosition();
|
|
816
|
-
const inputSize = this.el.getBoundingClientRect();
|
|
817
|
-
this._inputSize = {
|
|
818
|
-
height: inputSize.height,
|
|
819
|
-
width: inputSize.width,
|
|
820
|
-
};
|
|
821
|
-
if (!this._isMobile) {
|
|
822
|
-
this._dialog.style.width = `${width}px`;
|
|
823
|
-
this._dialog.style.top = `${inputSize.top}px`;
|
|
824
|
-
this._dialog.style.bottom = 'auto';
|
|
825
|
-
this._dialog.style.left = `${inputSize.left}px`;
|
|
826
|
-
const { bottom, height } = this._dialog.getBoundingClientRect();
|
|
827
|
-
const isInView = {
|
|
828
|
-
y: bottom < innerHeight,
|
|
829
|
-
};
|
|
830
|
-
const fitsOnTop = parentTop - height > 0;
|
|
831
|
-
if (!fitsOnTop && !isInView.y) {
|
|
832
|
-
this._dialog.style.maxHeight = `${parentTop}px`;
|
|
833
|
-
}
|
|
834
|
-
if (!isInView.y || this._openedOnTop) {
|
|
835
|
-
this._openedOnTop = true;
|
|
836
|
-
this._inputElement.hideDetails = true;
|
|
837
|
-
inputSlot = 'input-bottom';
|
|
838
|
-
this._dialog.style.top = 'auto';
|
|
839
|
-
this._dialog.style.bottom = `${innerHeight - inputSize.top - 44}px`;
|
|
840
|
-
}
|
|
841
|
-
}
|
|
842
|
-
this._dummyElement.style.width = `${this._getParentPosition().width}px`;
|
|
843
|
-
this._dummyElement.style.height = `${this._inputSize.height}px`;
|
|
844
|
-
this._dummyElement.style.display = 'block';
|
|
845
|
-
this._dummyElement.slot = 'default';
|
|
846
|
-
this._inputElement.slot = inputSlot;
|
|
847
|
-
this._inputElement.hideDetails = true;
|
|
848
|
-
this._dialog.style.opacity = '1';
|
|
849
|
-
const input = this.parent.shadowRoot.querySelector('input');
|
|
850
|
-
input.focus();
|
|
851
|
-
});
|
|
852
|
-
}
|
|
853
|
-
_minimumQueryItem() {
|
|
854
|
-
const { query, loading, minimumQueryLength, minimumQueryLengthMessage } = this.parent;
|
|
855
|
-
if (this.type !== 'autocomplete' ||
|
|
856
|
-
(query === null || query === void 0 ? void 0 : query.length) > minimumQueryLength ||
|
|
857
|
-
loading)
|
|
858
|
-
return;
|
|
859
|
-
return (h("li", null, h("c-icon", { path: mdiInformation, size: 18, color: "var(--c-info-600)" }), minimumQueryLengthMessage.replace('{n}', minimumQueryLength.toString())));
|
|
860
|
-
}
|
|
861
|
-
_emptyItem() {
|
|
862
|
-
const { query, loading, noMatchingItemsMessage } = this
|
|
863
|
-
.parent;
|
|
864
|
-
if (!query || loading)
|
|
865
|
-
return;
|
|
866
|
-
return (h("li", null, h("c-icon", { path: mdiAlert, size: 18, color: "var(--c-warning-600)" }), noMatchingItemsMessage));
|
|
867
|
-
}
|
|
868
|
-
_renderList() {
|
|
869
|
-
return this.dropdownItemType === 'option'
|
|
870
|
-
? this._renderOptionsList()
|
|
871
|
-
: this._renderItemsList();
|
|
872
|
-
}
|
|
873
|
-
_renderOptionsList() {
|
|
874
|
-
if (!this.items.length)
|
|
875
|
-
return this._minimumQueryItem() || this._emptyItem();
|
|
876
|
-
const options = Array.from(this.items);
|
|
877
|
-
this._listItems.length = 0;
|
|
878
|
-
return options.map((option, index) => {
|
|
879
|
-
const optionValue = option.querySelector('c-option-value');
|
|
880
|
-
if (optionValue) {
|
|
881
|
-
optionValue.innerHTML = this._highlightMatchingText(optionValue.textContent);
|
|
882
|
-
}
|
|
883
|
-
return (h("li", { ref: (el) => this._listItems.push(el), id: `${this.hostId}-option-${option.value}`, tabindex: "-1", role: "option", "aria-set-size": this.items.length.toString(), "aria-pos-in-set": (index + 1).toString(), "aria-selected": (!!option.selected).toString(), class: { disabled: !!option.disabled }, "data-name": option.name, onClick: (event) => {
|
|
884
|
-
if (option.disabled) {
|
|
885
|
-
event.preventDefault();
|
|
886
|
-
return;
|
|
887
|
-
}
|
|
888
|
-
this.selectOption.emit({ name: option.name, value: option.value });
|
|
889
|
-
}, innerHTML: option.outerHTML }));
|
|
890
|
-
});
|
|
891
|
-
}
|
|
892
|
-
_renderItemsList() {
|
|
893
|
-
if (!this.items.length)
|
|
894
|
-
return this._minimumQueryItem() || this._emptyItem();
|
|
895
|
-
this._listItems.length = 0;
|
|
896
|
-
return this.items.map((item, index) => {
|
|
897
|
-
return (h("li", { ref: (el) => this._listItems.push(el), id: `${this.hostId}-option-${item.value}`, tabindex: "-1", role: "option", "aria-set-size": this.items.length.toString(), "aria-pos-in-set": (index + 1).toString(), "aria-selected": (this.index === index).toString(), class: { disabled: !!item.disabled }, title: item.name, "data-name": item.name, onClick: (event) => {
|
|
898
|
-
if (item.disabled) {
|
|
899
|
-
event.preventDefault();
|
|
900
|
-
return;
|
|
901
|
-
}
|
|
902
|
-
this.selectOption.emit({ name: item.name, value: item.value });
|
|
903
|
-
} }, this.index === index && h("c-icon", { path: mdiCheck, size: 16 }), h("span", { innerHTML: this._highlightMatchingText(item.name) })));
|
|
904
|
-
});
|
|
905
|
-
}
|
|
906
|
-
_updateStatusText() {
|
|
907
|
-
if (this._debounce !== null) {
|
|
908
|
-
clearTimeout(this._debounce);
|
|
909
|
-
this._debounce = null;
|
|
910
|
-
}
|
|
911
|
-
this._debounce = window.setTimeout(() => {
|
|
912
|
-
var _a;
|
|
913
|
-
const selection = this._listItems[this.index];
|
|
914
|
-
const ending = !!this.items.length
|
|
915
|
-
? ', to navigate use up and down arrows'
|
|
916
|
-
: '';
|
|
917
|
-
const total = this._listItems.length;
|
|
918
|
-
const position = this.index + 1;
|
|
919
|
-
const isDisabled = !!((_a = selection === null || selection === void 0 ? void 0 : selection.classList) === null || _a === void 0 ? void 0 : _a.contains('disabled'));
|
|
920
|
-
const beginning = isDisabled ? 'Disabled option - ' : '';
|
|
921
|
-
let selectionText = !!selection
|
|
922
|
-
? `${beginning}${selection.dataset.name} - ${position} of ${total} is highlighted`
|
|
923
|
-
: null;
|
|
924
|
-
if (this.index === null && this.type === 'autocomplete') {
|
|
925
|
-
selectionText = this.items.length
|
|
926
|
-
? `${this.items.length} result${this.items.length !== 1 ? 's' : ''} available`
|
|
927
|
-
: 'No search results available';
|
|
928
|
-
}
|
|
929
|
-
this.statusText = `${selectionText || ending}`;
|
|
930
|
-
this._debounce = null;
|
|
931
|
-
}, 1400);
|
|
932
|
-
}
|
|
933
|
-
render() {
|
|
934
|
-
if (!this._isMobile &&
|
|
935
|
-
this._dialog &&
|
|
936
|
-
this.itemsPerPage &&
|
|
937
|
-
this.itemsPerPage > 0 &&
|
|
938
|
-
this.items.length > this.itemsPerPage) {
|
|
939
|
-
this._dialog.style.maxHeight = 42 * (this.itemsPerPage + 0.5) + 60 + 'px';
|
|
940
|
-
this._list.style.maxHeight = 42 * (this.itemsPerPage + 0.5) + 'px';
|
|
941
|
-
}
|
|
942
|
-
return (h(Host, { key: '9626a417ef7375c09c479b8d7a8582699f55f99a' }, h("slot", { key: '763d1d7de568d08ad06c61bacf50343b6759b6dc', name: "default" }), h("div", { key: 'dc43133ef487b264168a8aec45b5c7a71af0e724', class: "dummy", ref: (el) => (this._dummyElement = el) }), h("dialog", { key: '2b747ce78f1f9f65c36c795d1b358f38d73d61ac', tabindex: "-1", ref: (el) => (this._dialog = el), class: { mobile: this._isMobile }, onCancel: () => this.close() }, h("div", { key: 'be33ff41592f12f2b0f8629e06a468c61517e507', onClick: (event) => event.stopPropagation() }, h("div", { key: 'e5c8b93bef47c86533a57d0ec3a11ed1c39b12fb', id: 'announce-' + this.hostId, class: "visuallyhidden", "aria-live": "polite", "aria-atomic": "true" }, this.statusText), h("div", { key: '208c6563bb5ad17be69e6c2c714ebbe8d96ac682', class: "input-top-wrapper" }, h("slot", { key: '375b09b9e3ad056e3c3dd7c827589cc8f65646aa', name: "input-top" })), h("ul", { key: 'bee7e9068835c19f3dfd473c33a067f8158ddd1b', ref: (el) => (this._list = el), id: `${this.hostId}--results`, role: "listbox", "aria-expanded": this.isOpen.toString(), class: { active: this.isOpen, mobile: this._isMobile }, tabindex: "-1" }, this.renderedList), h("div", { key: '5f461bdc800b288ef9493620f68b3987015e6550', class: {
|
|
943
|
-
active: this._openedOnTop,
|
|
944
|
-
'input-bottom-wrapper': true,
|
|
945
|
-
} }, h("slot", { key: 'af142cb1f976dcc6b80038f91df315b361ceaafb', name: "input-bottom" }))))));
|
|
946
|
-
}
|
|
947
|
-
get el() { return getElement(this); }
|
|
948
|
-
static get watchers() { return {
|
|
949
|
-
"items": ["optionsWatcher"],
|
|
950
|
-
"isOpen": ["stateWatcher"],
|
|
951
|
-
"index": ["handleIndexChange"]
|
|
952
|
-
}; }
|
|
953
|
-
};
|
|
954
|
-
CDropdown.style = cDropdownCss;
|
|
955
|
-
|
|
956
|
-
const cIconCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host(c-icon){--_c-icon-color:var(\n --c-icon-color,\n var(--_c-icon-default-color, curentColor)\n );--_c-icon-size:var(--c-icon-size, 24px);display:inline-flex;align-items:center;height:var(--_c-icon-size);width:var(--_c-icon-size)}:host(c-icon) svg{height:var(--_c-icon-size);width:var(--_c-icon-size)}:host(c-icon) svg path{fill:var(--_c-icon-color)}";
|
|
957
|
-
|
|
958
|
-
const CIcon = class {
|
|
959
|
-
constructor(hostRef) {
|
|
960
|
-
registerInstance(this, hostRef);
|
|
961
|
-
this.size = 24;
|
|
962
|
-
this.color = 'currentColor';
|
|
963
|
-
}
|
|
964
|
-
componentDidLoad() {
|
|
965
|
-
this._pathElement.setAttribute('d', this.host.dataset.path);
|
|
966
|
-
}
|
|
967
|
-
render() {
|
|
968
|
-
return (h(Host, { key: 'aedb1cb8be1da8bb924849f82431c080784d84a9', style: {
|
|
969
|
-
'--_c-icon-size': `${this.size}px`,
|
|
970
|
-
'--_c-icon-default-color': this.color,
|
|
971
|
-
}, "data-path": this.path }, h("svg", { key: '66ef058d96677566051d3f2057c5b83b932a74be', viewBox: "0 0 24 24" }, h("path", { key: '54798fa9bc0be6818bfedc1e5cbd5a5afa283c40', ref: (el) => (this._pathElement = el) }))));
|
|
972
|
-
}
|
|
973
|
-
get host() { return getElement(this); }
|
|
974
|
-
};
|
|
975
|
-
CIcon.style = cIconCss;
|
|
976
|
-
|
|
977
|
-
const cIconButtonCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-icon-button-background-color:var(--c-icon-button-background-color, var(--c-primary-600));--_c-icon-button-background-color-hover:var(--c-icon-button-background-color-hover, var(--c-primary-400));--_c-icon-button-badge-background-color:var(--c-icon-button-badge-background-color, var(--c-warning-600));--_c-icon-button-badge-border-color:var(--c-icon-button-badge-border-color, var(--c-white));--_c-icon-button-badge-text-color:var(--c-icon-button-badge-text-color, var(--c-white));--_c-icon-button-border-radius:var(--c-icon-button-border-radius, 50%);--_c-icon-button-outline-color:var(--c-icon-button-outline-color, var(--c-primary-600));--_c-icon-button-text-color:var(--c-icon-button-text-color, var(--c-white));--_c-icon-button-loader-color:var(--_c-icon-button-text-color);--_c-icon-button-height:40px;--_c-icon-button-width:40px;--_c-icon-button-outline-offset:var(--c-icon-button-outline-offset, 2px);display:block;position:relative;border-radius:var(--_c-icon-button-border-radius)}:host button{background-color:transparent;color:currentColor;display:inline-grid;place-items:center;border:none;padding:0;position:relative;margin:0;width:100%;height:100%;cursor:pointer;transition:background-color 0.3s cubic-bezier(0.25, 0.8, 0.5, 1), color 0.3s cubic-bezier(0.25, 0.8, 0.5, 1);outline:none;border-radius:var(--_c-icon-button-border-radius)}:host button:disabled{cursor:default}:host c-badge{--_c-badge-background-color:var(--c-badge-background-color, var(--_c-icon-button-badge-background-color));--_c-badge-text-color:var(--c-badge-text-color, var(--_c-icon-button-badge-border-color));--_c-badge-border-color:var(--c-badge-border-color, var(--_c-icon-button-badge-text-color))}:host(.c-icon-button) button{appearance:none}:host(.c-icon-button){font-family:var(--c-font-family);display:flex;border:none;padding:0;width:var(--_c-icon-button-width);height:var(--_c-icon-button-height);background-color:var(--_c-icon-button-background-color);color:var(--_c-icon-button-text-color);transition:background-color 0.3s ease;cursor:pointer;position:relative;align-items:center;justify-content:center;backface-visibility:hidden;transform:translate3d(0, 0, 0);line-height:normal}:host(.c-icon-button) ::slotted(c-icon){--_c-icon-size:24px}:host(.c-icon-button) ::slotted(svg),:host(.c-icon-button) ::slotted(i),:host(.c-icon-button) ::slotted(span){width:24px;height:24px;font-size:24px}:host(.c-icon-button) ::slotted(*),:host(.c-icon-button) svg{display:flex;align-items:center;justify-content:center}:host(:host:hover){background-color:var(--_c-icon-button-background-color-hover)}:host(.c-icon-button--small){--_c-icon-button-height:32px;--_c-icon-button-width:32px}:host(.c-icon-button--small) ::slotted(c-icon){--_c-icon-size:20px}:host(.c-icon-button--small) ::slotted(svg),:host(.c-icon-button--small) ::slotted(i),:host(.c-icon-button--small) ::slotted(span){width:22px !important;height:22px !important;font-size:16px !important}:host(.c-icon-button--x-small){--_c-icon-button-height:28px;--_c-icon-button-width:28px}:host(.c-icon-button--x-small) ::slotted(c-icon){--_c-icon-size:14px}:host(.c-icon-button--x-small) ::slotted(svg),:host(.c-icon-button--x-small) ::slotted(i),:host(.c-icon-button--x-small) ::slotted(span){width:18px !important;height:18px !important;font-size:14px !important}:host(.c-icon-button) button:focus{outline:none}:host(.c-icon-button) button:focus-visible{outline:2px var(--_c-icon-button-outline-color) solid;outline-offset:var(--_c-icon-button-outline-offset)}:host(.c-icon-button--inverted){--_c-icon-button-inverted-background-color:var(--c-icon-button-inverted-background-color, var(--c-white));--_c-icon-button-inverted-text-color:var(--c-icon-button-inverted-text-color, var(--c-primary-600));--_c-icon-button-inverted-background-color-hover:var(--c-icon-button-inverted-background-color-hover, var(--c-primary-200));--_c-icon-button-inverted-badge-background-color:var(--c-icon-button-inverted-badge-background-color, var(--_c-icon-button-badge-background-color));--_c-icon-button-inverted-badge-border-color:var(--c-icon-button-inverted-badge-border-color, var(--c-transparent));--_c-icon-button-inverted-badge-text-color:var(--c-icon-button-inverted-badge-text-color, var(--_c-icon-button-badge-text-color));--_c-icon-button-loader-color:var(--_c-icon-button-inverted-text-color);background-color:var(--_c-icon-button-inverted-background-color);color:var(--_c-icon-button-inverted-text-color)}:host(.c-icon-button--inverted) c-badge{--_c-badge-text-color:var(--c-badge-text-color, var(--_c-icon-button-inverted-badge-border-color));--_c-badge-background-color:var(--c-badge-background-color, var(--_c-icon-button-inverted-badge-background-color));--_c-badge-border-color:var(--c-badge-border-color, var(--_c-icon-button-inverted-badge-text-color))}:host(.c-icon-button--inverted:hover){background-color:var(--_c-icon-button-inverted-background-color-hover)}:host(.c-icon-button--inverted.c-icon-button--disabled){--_c-icon-button-inverted-background-color-disabled:var(--c-icon-button-inverted-background-color-disabled, var(--_c-icon-button-background-color-disabled));--_c-icon-button-inverted-text-color-disabled:var(--c-icon-button-inverted-text-color-disabled, var(--_c-icon-button-text-color-disabled));--_c-icon-button-inverted-outline-color-disabled:var(--c-icon-button-inverted-outline-color-disabled, var(--_c-icon-button-outline-color-disabled));--_c-icon-button-inverted-badge-background-color-disabled:var(--c-icon-button-inverted-badge-background-color-disabled, var(--c-tertiary-200));--_c-icon-button-inverted-badge-border-color-disabled:var(--c-icon-button-inverted-badge-border-color-disabled, var(--c-transparent));--_c-icon-button-inverted-badge-text-color-disabled:var(--c-icon-button-inverted-badge-text-color-disabled, var(--c-tertiary-700));--_c-icon-button-loader-color:var(--_c-icon-button-inverted-text-color-disabled);background-color:var(--_c-icon-button-inverted-background-color-disabled);color:var(--_c-icon-button-inverted-text-color-disabled);pointer-events:none}:host(.c-icon-button--inverted.c-icon-button--disabled) c-badge{--_c-badge-background-color:var(--c-badge-background-color, var(--_c-icon-button-inverted-badge-background-color-disabled));--_c-badge-text-color:var(--c-badge-text-color, var(--_c-icon-button-inverted-badge-border-color-disabled));--_c-badge-border-color:var(--c-badge-border-color, var(--_c-icon-button-inverted-badge-text-color-disabled))}:host(.c-icon-button--inverted.c-icon-button--disabled) .icon-button-badge{background:#acacac}:host(.c-icon-button--disabled){--_c-icon-button-background-color-disabled:var(--c-icon-button-background-color-disabled, var(--c-tertiary-100));--_c-icon-button-background-color-disabled-hover:var(--c-icon-button-background-color-disabled-hover, var(--c-tertiary-100));--_c-icon-button-text-color-disabled:var(--c-icon-button-text-color-disabled, var(--c-tertiary-600));--_c-icon-button-outline-color-disabled:var(--c-icon-button-outline-color-disabled, var(--c-tertiary-600));--_c-icon-button-badge-background-color-disabled:var(--c-icon-button-badge-background-color-disabled, var(--c-tertiary-600));--_c-icon-button-badge-border-color-disabled:var(--c-icon-button-badge-border-color-disabled, var(--_c-icon-button-badge-border-color));--_c-icon-button-badge-text-color-disabled:var(--c-icon-button-badge-text-color-disabled, var(--_c-icon-button-badge-text-color));--_c-icon-button-loader-color:var(--_c-icon-button-text-color-disabled);background-color:var(--_c-icon-button-background-color-disabled);color:var(--_c-icon-button-text-color-disabled);pointer-events:none}:host(.c-icon-button--disabled) c-badge{--_c-badge-background-color:var(--c-badge-background-color, var(--_c-icon-button-badge-background-color-disabled));--_c-badge-text-color:var(--c-badge-text-color, var(--_c-icon-button-badge-border-color-disabled));--_c-badge-border-color:var(--c-badge-border-color, var(--_c-icon-button-badge-text-color-disabled))}:host(.c-icon-button--danger){--_c-icon-button-danger-background-color:var(--c-icon-button-danger-background-color, var(--c-error-600));--_c-icon-button-danger-text-color:var(--c-icon-button-danger-text-color, var(--c-white));--_c-icon-button-danger-background-color-hover:var(--c-icon-button-danger-background-color-hover, var(--c-error-400));--_c-icon-button-danger-badge-background-color:var(--c-icon-button-danger-badge-background-color, var(--_c-icon-button-badge-background-color));--_c-icon-button-danger-badge-border-color:var(--c-icon-button-danger-badge-border-color, var(--_c-icon-button-badge-border-color));--_c-icon-button-danger-badge-text-color:var(--c-icon-button-danger-badge-text-color, var(--_c-icon-button-badge-text-color));--_c-icon-button-loader-color:var(--_c-icon-button-danger-text-color);background-color:var(--_c-icon-button-danger-background-color);color:var(--_c-icon-button-danger-text-color)}:host(.c-icon-button--danger) c-badge{--_c-badge-background-color:var(--c-badge-background-color, var(--_c-icon-button-danger-badge-background-color));--_c-badge-text-color:var(--c-badge-text-color, var(--_c-icon-button-danger-badge-border-color));--_c-badge-border-color:var(--c-badge-border-color, var(--_c-icon-button-danger-badge-text-color))}:host(.c-icon-button--danger:hover){background-color:var(--_c-icon-button-danger-background-color-hover)}:host(.c-icon-button--danger.c-icon-button--disabled){--_c-icon-button-danger-background-color-disabled:var(--c-icon-button-danger-background-color-disabled, var(--_c-icon-button-background-color-disabled));--_c-icon-button-danger-text-color-disabled:var(--c-icon-button-danger-text-color-disabled, var(--_c-icon-button-text-color-disabled));--_c-icon-button-danger-badge-background-color-disabled:var(--c-icon-button-danger-badge-background-color-disabled, var(--_c-icon-button-badge-background-color-disabled));--_c-icon-button-danger-badge-border-color-disabled:var(--c-icon-button-danger-badge-border-color-disabled, var(--_c-icon-button-badge-border-color-disabled));--_c-icon-button-danger-badge-text-color-disabled:var(--c-icon-button-danger-badge-text-color-disabled, var(--_c-icon-button-badge-text-color-disabled));--_c-icon-button-loader-color:var(--_c-icon-button-danger-text-color-disabled);background-color:var(--_c-icon-button-danger-background-color-disabled);color:var(--_c-icon-button-danger-text-color-disabled)}:host(.c-icon-button--danger.c-icon-button--disabled) c-badge{--_c-badge-background-color:var(--c-badge-background-color, var(--_c-icon-button-danger-badge-background-color-disabled));--_c-badge-text-color:var(--c-badge-text-color, var(--_c-icon-button-danger-badge-border-color-disabled));--_c-badge-border-color:var(--c-badge-border-color, var(--_c-icon-button-danger-badge-text-color-disabled))}:host(.c-icon-button--danger.c-icon-button--inverted){--_c-icon-button-danger-inverted-background-color:var(--_c-icon-button-inverted-background-color);--_c-icon-button-danger-inverted-text-color:var(--_c-icon-button-danger-background-color);--_c-icon-button-danger-inverted-badge-background-color:var(--_c-icon-button-inverted-badge-background-color);--_c-icon-button-danger-inverted-badge-border-color:var(--_c-icon-button-inverted-badge-border-color);--_c-icon-button-danger-inverted-badge-text-color:var(--_c-icon-button-inverted-badge-text-color);--_c-icon-button-loader-color:var(--_c-icon-button-danger-inverted-text-color);background-color:var(--_c-icon-button-danger-inverted-background-color);color:var(--_c-icon-button-danger-inverted-text-color)}:host(.c-icon-button--danger.c-icon-button--inverted) c-badge{--_c-badge-background-color:var(--c-badge-background-color, var(--_c-icon-button-danger-inverted-badge-background-color));--_c-badge-text-color:var(--c-badge-text-color, var(--_c-icon-button-danger-inverted-badge-border-color));--_c-badge-border-color:var(--c-badge-border-color, var(--_c-icon-button-danger-inverted-badge-text-color))}:host(.c-icon-button--danger.c-icon-button--inverted.c-icon-button--disabled){--_c-icon-button-danger-inverted-disabled-background-color:var(--_c-icon-button-background-color-disabled);--_c-icon-button-danger-inverted-disabled-text-color:var(--_c-icon-button-text-color-disabled);--_c-icon-button-danger-inverted-disabled-badge-background-color:var(--_c-icon-button-inverted-badge-background-color-disabled);--_c-icon-button-danger-inverted-disabled-badge-border-color:var(--_c-icon-button-inverted-badge-border-color);--_c-icon-button-danger-inverted-disabled-badge-text-color:var(--_c-icon-button-inverted-badge-text-color-disabled);--_c-icon-button-loader-color:var(--_c-icon-button-danger-inverted-disabled-text-color);background-color:var(--_c-icon-button-danger-inverted-disabled-background-color);color:var(--_c-icon-button-danger-inverted-disabled-text-color)}:host(.c-icon-button--danger.c-icon-button--inverted.c-icon-button--disabled) c-badge{--_c-badge-background-color:var(--c-badge-background-color, var(--_c-icon-button-danger-inverted-disabled-badge-background-color));--_c-badge-text-color:var(--c-badge-text-color, var(--_c-icon-button-danger-inverted-disabled-badge-border-color));--_c-badge-border-color:var(--c-badge-border-color, var(--_c-icon-button-danger-inverted-disabled-badge-text-color))}:host(.c-icon-button--ghost){--_c-icon-button-ghost-background-color:var(--c-icon-button-ghost-background-color, rgba(var(--c-primary-rgb), 0.2));--_c-icon-button-ghost-text-color:var(--c-icon-button-ghost-text-color, var(--c-primary-600));--_c-icon-button-ghost-background-color-hover:var(--c-icon-button-ghost-background-color-hover, rgba(var(--c-primary-rgb), 0.3));--_c-icon-button-ghost-badge-background-color:var(--c-icon-button-ghost-badge-background-color, var(--_c-icon-button-badge-background-color));--_c-icon-button-ghost-badge-border-color:var(--c-icon-button-ghost-badge-border-color, var(--_c-icon-button-badge-border-color));--_c-icon-button-ghost-badge-text-color:var(--c-icon-button-ghost-badge-text-color, var(--_c-icon-button-badge-text-color));--_c-icon-button-loader-color:var(--_c-icon-button-ghost-text-color);background-color:var(--_c-icon-button-ghost-background-color);color:var(--_c-icon-button-ghost-text-color)}:host(.c-icon-button--ghost) c-badge{--_c-badge-background-color:var(--c-badge-background-color, var(--_c-icon-button-badge-background-color));--_c-badge-text-color:var(--c-badge-text-color, var(--_c-icon-button-badge-border-color));--_c-badge-border-color:var(--c-badge-border-color, var(--_c-icon-button-badge-text-color))}:host(.c-icon-button--ghost:hover){background-color:var(--_c-icon-button-ghost-background-color-hover)}:host(.c-icon-button--ghost.c-icon-button--inverted){--_c-icon-button-ghost-inverted-background-color:var(--c-icon-button-ghost-inverted-background-color, rgba(var(--c-white-rgb), 0.2));--_c-icon-button-ghost-inverted-background-color-hover:var(--c-icon-button-ghost-inverted-background-color-hover, rgba(var(--c-white-rgb), 0.3));--_c-icon-button-ghost-inverted-text-color:var(--c-icon-button-ghost-inverted-text-color, var(--c-white));--_c-icon-button-ghost-inverted-badge-background-color:var(--c-icon-button-ghost-inverted-badge-background-color, var(--_c-icon-button-inverted-badge-background-color));--_c-icon-button-ghost-inverted-badge-border-color:var(--c-icon-button-ghost-inverted-badge-border-color, var(--_c-icon-button-inverted-badge-border-color));--_c-icon-button-ghost-inverted-badge-text-color:var(--c-icon-button-ghost-inverted-badge-text-color, var(--_c-icon-button-inverted-badge-text-color));--_c-icon-button-loader-color:var(--_c-icon-button-ghost-inverted-text-color);background-color:var(--_c-icon-button-ghost-inverted-background-color);color:var(--_c-icon-button-ghost-inverted-text-color)}:host(.c-icon-button--ghost.c-icon-button--inverted) c-badge{--_c-badge-background-color:var(--c-badge-background-color, var(--_c-icon-button-ghost-inverted-badge-background-color));--_c-badge-text-color:var(--c-badge-text-color, var(--_c-icon-button-ghost-inverted-badge-border-color));--_c-badge-border-color:var(--c-badge-border-color, var(--_c-icon-button-ghost-inverted-badge-text-color))}:host(.c-icon-button--ghost.c-icon-button--inverted:hover){background-color:var(--_c-icon-button-ghost-inverted-background-color-hover)}:host(.c-icon-button--ghost.c-icon-button--disabled){--_c-icon-button-ghost-disabled-background-color:var(--c-icon-button-ghost-disabled-background-color, var(--c-tertiary-200));--_c-icon-button-ghost-disabled-text-color:var(--c-icon-button-ghost-disabled-text-color, var(--c-tertiary-500));--_c-icon-button-ghost-disabled-background-color-hover:var(--c-icon-button-ghost-disabled-background-color-hover, var(--c-tertiary-100));--_c-icon-button-ghost-disabled-badge-background-color:var(--c-icon-button-ghost-disabled-badge-background-color, var(--_c-icon-button-badge-background-color-disabled));--_c-icon-button-ghost-disabled-badge-border-color:var(--c-icon-button-ghost-disabled-badge-border-color, var(--_c-icon-button-badge-border-color-disabled));--_c-icon-button-ghost-disabled-badge-text-color:var(--c-icon-button-ghost-disabled-badge-text-color, var(--_c-icon-button-badge-text-color-disabled));--_c-icon-button-loader-color:var(--_c-icon-button-ghost-disabled-text-color);background-color:var(--_c-icon-button-ghost-disabled-background-color);color:var(--_c-icon-button-ghost-disabled-text-color)}:host(.c-icon-button--ghost.c-icon-button--disabled) c-badge{--_c-badge-background-color:var(--c-badge-background-color, var(--_c-icon-button-ghost-disabled-badge-background-color));--_c-badge-text-color:var(--c-badge-text-color, var(--_c-icon-button-ghost-disabled-badge-border-color));--_c-badge-border-color:var(--c-badge-border-color, var(--_c-icon-button-ghost-disabled-badge-text-color))}:host(.c-icon-button--ghost.c-icon-button--disabled:hover){background-color:var(--_c-icon-button-ghost-disabled-background-color-hover)}:host(.c-icon-button--ghost.c-icon-button--inverted.c-icon-button--disabled){--_c-icon-button-ghost-inverted-disabled-background-color:var(--c-icon-button-ghost-inverted-disabled-background-color, rgba(var(--c-white-rgb), 0.05));--_c-icon-button-ghost-inverted-disabled-text-color:var(--c-icon-button-ghost-inverted-disabled-text-color, var(--c-tertiary-400));--_c-icon-button-ghost-inverted-disabled-badge-background-color:var(--c-icon-button-ghost-inverted-disabled-badge-background-color, var(--_c-icon-button-inverted-badge-background-color-disabled));--_c-icon-button-ghost-inverted-disabled-badge-border-color:var(--c-icon-button-ghost-inverted-disabled-badge-border-color, var(--_c-icon-button-inverted-badge-border-color));--_c-icon-button-ghost-inverted-disabled-badge-text-color:var(--c-icon-button-ghost-inverted-disabled-badge-text-color, var(--_c-icon-button-inverted-badge-text-color-disabled));--_c-icon-button-loader-color:var(--_c-icon-button-ghost-inverted-disabled-text-color);background-color:var(--_c-icon-button-ghost-inverted-disabled-background-color);color:var(--_c-icon-button-ghost-inverted-disabled-text-color)}:host(.c-icon-button--ghost.c-icon-button--inverted.c-icon-button--disabled) c-badge{--_c-badge-background-color:var(--c-badge-background-color, var(--_c-icon-button-ghost-inverted-disabled-badge-background-color));--_c-badge-text-color:var(--c-badge-text-color, var(--_c-icon-button-ghost-inverted-disabled-badge-border-color));--_c-badge-border-color:var(--c-badge-border-color, var(--_c-icon-button-ghost-inverted-disabled-badge-text-color))}:host(.c-icon-button--text){--_c-icon-button-text-text-color:var(--c-icon-button-text-text-color, var(--c-primary-600));--_c-icon-button-text-background-color:var(--c-icon-button-text-background-color, var(--c-transparent));--_c-icon-button-text-background-color-hover:var(--c-icon-button-text-background-color-hover, var(--c-primary-100));--_c-icon-button-text-badge-background-color:var(--c-icon-button-text-badge-background-color, var(--_c-icon-button-badge-background-color));--_c-icon-button-text-badge-border-color:var(--c-icon-button-text-badge-border-color, var(--_c-icon-button-badge-border-color));--_c-icon-button-text-badge-text-color:var(--c-icon-button-text-badge-text-color, var(--_c-icon-button-badge-text-color));--_c-icon-button-loader-color:var(--_c-icon-button-text-text-color);background-color:var(--_c-icon-button-text-background-color);color:var(--_c-icon-button-text-text-color)}:host(.c-icon-button--text) c-badge{--_c-badge-background-color:var(--c-badge-background-color, var(--_c-icon-button-text-badge-background-color));--_c-badge-text-color:var(--c-badge-text-color, var(--_c-icon-button-text-badge-border-color));--_c-badge-border-color:var(--c-badge-border-color, var(--_c-icon-button-text-badge-text-color))}:host(.c-icon-button--text:hover){background-color:var(--_c-icon-button-text-background-color-hover)}:host(.c-icon-button--text.c-icon-button--inverted){--_c-icon-button-text-inverted-text-color:var(--c-icon-button-text-inverted-text-color, var(--c-white));--_c-icon-button-text-inverted-background-color:var(--c-icon-button-text-inverted-background-color, var(--c-transparent));--_c-icon-button-text-inverted-background-color-hover:var(--c-icon-button-text-inverted-background-color-hover, rgba(var(--c-white-rgb), 0.2));--_c-icon-button-text-inverted-badge-background-color:var(--c-icon-button-text-inverted-badge-background-color, var(--_c-icon-button-badge-background-color));--_c-icon-button-text-inverted-badge-border-color:var(--c-icon-button-text-inverted-badge-border-color, var(--_c-icon-button-inverted-badge-border-color));--_c-icon-button-text-inverted-badge-text-color:var(--c-icon-button-text-inverted-badge-text-color, var(--_c-icon-button-badge-text-color));--_c-icon-button-loader-color:var(--_c-icon-button-text-inverted-text-color);background-color:var(--_c-icon-button-text-inverted-background-color);color:var(--_c-icon-button-text-inverted-text-color)}:host(.c-icon-button--text.c-icon-button--inverted) c-badge{--_c-badge-background-color:var(--c-badge-background-color, var(--_c-icon-button-text-inverted-badge-background-color));--_c-badge-text-color:var(--c-badge-text-color, var(--_c-icon-button-text-inverted-badge-border-color));--_c-badge-border-color:var(--c-badge-border-color, var(--_c-icon-button-text-inverted-badge-text-color))}:host(.c-icon-button--text.c-icon-button--inverted:hover){background-color:var(--_c-icon-button-text-inverted-background-color-hover)}:host(.c-icon-button--text.c-icon-button--disabled){--_c-icon-button-text-disabled-text-color:var(--c-icon-button-text-disabled-text-color, var(--c-tertiary-400));--_c-icon-button-text-disabled-background-color:var(--c-icon-button-text-disabled-background-color, var(--c-transparent));--_c-icon-button-text-disabled-badge-background-color:var(--c-icon-button-text-disabled-badge-background-color, var(--_c-icon-button-badge-background-color-disabled));--_c-icon-button-text-disabled-badge-border-color:var(--c-icon-button-text-disabled-badge-border-color, var(--_c-icon-button-badge-border-color-disabled));--_c-icon-button-text-disabled-badge-text-color:var(--c-icon-button-text-disabled-badge-text-color, var(--_c-icon-button-badge-text-color-disabled));--_c-icon-button-loader-color:var(--_c-icon-button-text-disabled-text-color);background-color:var(--_c-icon-button-text-disabled-background-color);color:var(--_c-icon-button-text-disabled-text-color)}:host(.c-icon-button--text.c-icon-button--disabled) c-badge{--_c-badge-background-color:var(--c-badge-background-color, var(--_c-icon-button-text-disabled-badge-background-color));--_c-badge-text-color:var(--c-badge-text-color, var(--_c-icon-button-text-disabled-badge-border-color));--_c-badge-border-color:var(--c-badge-border-color, var(--_c-icon-button-text-disabled-badge-text-color))}:host(.c-icon-button--text.c-icon-button--inverted.c-icon-button--disabled){--_c-icon-button-text-inverted-disabled-text-color:var(--c-icon-button-text-inverted-disabled-text-color, var(--c-tertiary-400));--_c-icon-button-text-inverted-disabled-background-color:var(--c-icon-button-text-inverted-disabled-background-color, var(--c-transparent));--_c-icon-button-text-inverted-disabled-badge-background-color:var(--c-icon-button-text-inverted-disabled-badge-background-color, var(--_c-icon-button-inverted-badge-background-color-disabled));--_c-icon-button-text-inverted-disabled-badge-border-color:var(--c-icon-button-text-inverted-disabled-badge-border-color, var(--_c-icon-button-inverted-badge-border-color-disabled));--_c-icon-button-text-inverted-disabled-badge-text-color:var(--c-icon-button-text-inverted-disabled-badge-text-color, var(--_c-icon-button-inverted-badge-text-color-disabled));--_c-icon-button-loader-color:var(--_c-icon-button-text-inverted-disabled-text-color);background-color:var(--_c-icon-button-text-inverted-disabled-background-color);color:var(--_c-icon-button-text-inverted-disabled-text-color)}:host(.c-icon-button--text.c-icon-button--inverted.c-icon-button--disabled) c-badge{--_c-badge-background-color:var(--c-badge-background-color, var(--_c-icon-button-text-inverted-disabled-badge-background-color));--_c-badge-text-color:var(--c-badge-text-color, var(--_c-icon-button-text-inverted-disabled-badge-border-color));--_c-badge-border-color:var(--c-badge-border-color, var(--_c-icon-button-text-inverted-disabled-badge-text-color))}:host(.c-icon-button--outlined){--_c-icon-button-outlined-text-color:var(--c-icon-button-outlined-text-color, var(--c-primary-600));--_c-icon-button-outlined-background-color:var(--c-icon-button-outlined-background-color, var(--c-transparent));--_c-icon-button-outlined-background-color-hover:var(--c-icon-button-outlined-background-color-hover, rgba(var(--c-primary-rgb), 0.1));--_c-icon-button-outlined-border-color:var(--c-icon-button-outlined-border-color, var(--_c-icon-button-outlined-text-color));--_c-icon-button-outlined-badge-background-color:var(--c-icon-button-outlined-badge-background-color, var(--_c-icon-button-badge-background-color));--_c-icon-button-outlined-badge-border-color:var(--c-icon-button-outlined-badge-border-color, var(--_c-icon-button-badge-border-color));--_c-icon-button-outlined-badge-text-color:var(--c-icon-button-outlined-badge-text-color, var(--_c-icon-button-badge-text-color));--_c-icon-button-loader-color:var(--_c-icon-button-outlined-text-color);background-color:var(--_c-icon-button-outlined-background-color);box-shadow:inset 0 0 0 2px var(--_c-icon-button-outlined-border-color);color:var(--_c-icon-button-outlined-text-color)}:host(.c-icon-button--outlined) c-badge{--_c-badge-background-color:var(--c-badge-background-color, var(--_c-icon-button-outlined-badge-background-color));--_c-badge-text-color:var(--c-badge-text-color, var(--_c-icon-button-outlined-badge-border-color));--_c-badge-border-color:var(--c-badge-border-color, var(--_c-icon-button-outlined-badge-text-color))}:host(.c-icon-button--outlined:hover){background-color:var(--_c-icon-button-outlined-background-color-hover)}:host(.c-icon-button--outlined.c-icon-button--disabled){--_c-icon-button-outlined-disabled-text-color:var(--c-icon-button-outlined-disabled-text-color, var(--c-tertiary-500));--_c-icon-button-outlined-disabled-background-color:var(--c-icon-button-outlined-disabled-background-color, var(--c-transparent));--_c-icon-button-outlined-disabled-border-color:var(--c-icon-button-outlined-disabled-border-color, var(--c-tertiary-400));--_c-icon-button-outlined-disabled-badge-background-color:var(--c-icon-button-outlined-disabled-badge-background-color, var(--_c-icon-button-badge-background-color-disabled));--_c-icon-button-outlined-disabled-badge-border-color:var(--c-icon-button-outlined-disabled-badge-border-color, var(--_c-icon-button-badge-border-color-disabled));--_c-icon-button-outlined-disabled-badge-text-color:var(--c-icon-button-outlined-disabled-badge-text-color, var(--_c-icon-button-badge-text-color-disabled));--_c-icon-button-loader-color:var(--_c-icon-button-outlined-disabled-text-color);background-color:var(--_c-icon-button-outlined-disabled-background-color);box-shadow:inset 0 0 0 2px var(--_c-icon-button-outlined-disabled-border-color);color:var(--_c-icon-button-outlined-disabled-text-color)}:host(.c-icon-button--outlined.c-icon-button--disabled) c-badge{--_c-badge-background-color:var(--c-badge-background-color, var(--_c-icon-button-outlined-disabled-badge-background-color));--_c-badge-text-color:var(--c-badge-text-color, var(--_c-icon-button-outlined-disabled-badge-border-color));--_c-badge-border-color:var(--c-badge-border-color, var(--_c-icon-button-outlined-disabled-badge-text-color))}:host(.c-icon-button--outlined.c-icon-button--inverted){--_c-icon-button-outlined-inverted-text-color:var(--c-icon-button-outlined-inverted-text-color, var(--c-white));--_c-icon-button-outlined-inverted-background-color:var(--c-icon-button-outlined-inverted-background-color, var(--c-transparent));--_c-icon-button-outlined-inverted-background-color-hover:var(--c-icon-button-outlined-inverted-background-color-hover, rgba(var(--c-white-rgb), 0.2));--_c-icon-button-outlined-inverted-border-color:var(--c-icon-button-outlined-inverted-border-color, var(--_c-icon-button-outlined-inverted-text-color));--_c-icon-button-outlined-inverted-badge-background-color:var(--c-icon-button-outlined-inverted-badge-background-color, var(--_c-icon-button-inverted-badge-background-color));--_c-icon-button-outlined-inverted-badge-border-color:var(--c-icon-button-outlined-inverted-badge-border-color, var(--_c-icon-button-inverted-badge-border-color));--_c-icon-button-outlined-inverted-badge-text-color:var(--c-icon-button-outlined-inverted-badge-text-color, var(--_c-icon-button-inverted-badge-text-color));--_c-icon-button-loader-color:var(--_c-icon-button-outlined-inverted-text-color);background-color:var(--_c-icon-button-outlined-inverted-background-color);box-shadow:inset 0 0 0 2px var(--_c-icon-button-outlined-inverted-border-color);color:var(--_c-icon-button-outlined-inverted-text-color)}:host(.c-icon-button--outlined.c-icon-button--inverted) c-badge{--_c-badge-background-color:var(--c-badge-background-color, var(--_c-icon-button-outlined-inverted-badge-background-color));--_c-badge-text-color:var(--c-badge-text-color, var(--_c-icon-button-outlined-inverted-badge-border-color));--_c-badge-border-color:var(--c-badge-border-color, var(--_c-icon-button-outlined-inverted-badge-text-color))}:host(.c-icon-button--outlined.c-icon-button--inverted:hover){background-color:var(--_c-icon-button-outlined-inverted-background-color-hover)}:host(.c-icon-button--outlined.c-icon-button--inverted.c-icon-button--disabled){--_c-icon-button-outlined-inverted-disabled-text-color:var(--c-icon-button-outlined-inverted-disabled-text-color, var(--c-tertiary-400));--_c-icon-button-outlined-inverted-disabled-background-color:var(--c-icon-button-outlined-inverted-disabled-background-color, var(--c-transparent));--_c-icon-button-outlined-inverted-disabled-border-color:var(--c-icon-button-outlined-inverted-disabled-border-color, var(--c-tertiary-500));--_c-icon-button-outlined-inverted-disabled-badge-background-color:var(--c-icon-button-outlined-inverted-disabled-badge-background-color, var(--_c-icon-button-inverted-badge-background-color-disabled));--_c-icon-button-outlined-inverted-disabled-badge-border-color:var(--c-icon-button-outlined-inverted-disabled-badge-border-color, var(--_c-icon-button-inverted-badge-border-color-disabled));--_c-icon-button-outlined-inverted-disabled-badge-text-color:var(--c-icon-button-outlined-inverted-disabled-badge-text-color, var(--_c-icon-button-inverted-badge-text-color-disabled));--_c-icon-button-loader-color:var(--_c-icon-button-outlined-iverted-disabled-text-color);background-color:var(--_c-icon-button-outlined-inverted-disabled-background-color);box-shadow:inset 0 0 0 2px var(--_c-icon-button-outlined-inverted-disabled-border-color);color:var(--_c-icon-button-outlined-inverted-disabled-text-color)}:host(.c-icon-button--outlined.c-icon-button--inverted.c-icon-button--disabled) c-badge{--_c-badge-background-color:var(--c-badge-background-color, var(--_c-icon-button-outlined-inverted-disabled-badge-background-color));--_c-badge-text-color:var(--c-badge-text-color, var(--_c-icon-button-outlined-inverted-disabled-badge-border-color));--_c-badge-border-color:var(--c-badge-border-color, var(--_c-icon-button-outlined-inverted-disabled-badge-text-color))}::slotted(*),svg{pointer-events:none}.inner-container{align-items:center;display:flex;height:100%;inset:0;justify-content:center;overflow:hidden;position:relative;transform:translateZ(0);width:100%}";
|
|
978
|
-
|
|
979
|
-
const CIconButton = class {
|
|
980
|
-
constructor(hostRef) {
|
|
981
|
-
registerInstance(this, hostRef);
|
|
982
|
-
this.danger = false;
|
|
983
|
-
this.loading = false;
|
|
984
|
-
this.text = false;
|
|
985
|
-
this.inverted = false;
|
|
986
|
-
this.outlined = false;
|
|
987
|
-
this.path = null;
|
|
988
|
-
this.ghost = false;
|
|
989
|
-
this.disabled = false;
|
|
990
|
-
this.size = 'default';
|
|
991
|
-
this._onClick = (event) => {
|
|
992
|
-
this._rippleElement.createRipple(event, this._container);
|
|
993
|
-
};
|
|
994
|
-
}
|
|
995
|
-
_renderBadge() {
|
|
996
|
-
return h("c-badge", null, this.badge);
|
|
997
|
-
}
|
|
998
|
-
_hostClasses() {
|
|
999
|
-
return {
|
|
1000
|
-
'c-icon-button': true,
|
|
1001
|
-
'c-icon-button--disabled': !!this.disabled,
|
|
1002
|
-
'c-icon-button--danger': !!this.danger,
|
|
1003
|
-
'c-icon-button--text': !!this.text,
|
|
1004
|
-
'c-icon-button--ghost': !!this.ghost,
|
|
1005
|
-
'c-icon-button--outlined': !!this.outlined,
|
|
1006
|
-
'c-icon-button--inverted': !!this.inverted,
|
|
1007
|
-
'c-icon-button--small': this.size === 'small',
|
|
1008
|
-
'c-icon-button--x-small': this.size === 'x-small',
|
|
1009
|
-
};
|
|
1010
|
-
}
|
|
1011
|
-
render() {
|
|
1012
|
-
const spinnerSizes = {
|
|
1013
|
-
'x-small': 18,
|
|
1014
|
-
small: 20,
|
|
1015
|
-
default: 24,
|
|
1016
|
-
};
|
|
1017
|
-
return (h(Host, { key: '7b9493a65af9c011287174ff9046eaf365d681eb', class: this._hostClasses() }, h("button", { key: 'bdb638941030862d65a715a97d0a9fa06bee1ca2', disabled: this.disabled, onClick: this._onClick }, h("div", { key: '07335d16aa5b535d65fefd8f6f411442cb24bc6e', class: "inner-container", ref: (el) => (this._container = el) }, this.loading && (h("c-spinner", { key: 'd9506ba5286d4acd1e7ff37797aef85ab93627b2', color: "var(--_c-icon-button-loader-color)", size: spinnerSizes[this.size] })), !this.loading && (h("slot", { key: '851b1bbc5424ec8c49491e63a1e3c34a6d40722f' }, this.path && (h("svg", { key: 'd7d20b55bd3bf581a827f482725f14081233f0a8', width: "24", height: "24", viewBox: "0 0 24 24" }, h("path", { key: '67ee591b7d91d79083360013b22ffcdce4357a9f', d: this.path })))))), this.badge && this._renderBadge(), h("c-ripple", { key: 'b2a8f77326ac01b2b5c99d66b73832ecd84171e3', ref: (el) => (this._rippleElement = el) }))));
|
|
1018
|
-
}
|
|
1019
|
-
};
|
|
1020
|
-
CIconButton.style = cIconButtonCss;
|
|
1021
|
-
|
|
1022
|
-
const cInputCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host(c-input){--_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-400);--_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-label-color:var(--_c-input-label-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 label{color:var(--_c-input-inactive-color)}.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;white-space:pre-wrap}.c-input input{max-height:32px;padding:8px 0}.c-input input:focus,.c-input input:active,.c-input input[aria-expanded=true],.c-input textarea:focus,.c-input textarea:active{outline:none}.c-input .c-input__content{align-items:center;display:flex;width:100%}.c-input .c-input__content slot{display:none}.c-input .c-input__content c-icon-button{aspect-ratio:1;margin-right:-6px}.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%;position:relative}.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;white-space:nowrap}.c-input__field label:not(.label-on-top){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) 0.08s}.c-input__field label span{color:var(--c-error-600)}.c-input--label-on-top{--c-message-padding:0;display:grid;gap:4px}.c-input--label-on-top input::placeholder,.c-input--label-on-top textarea::placeholder{color:var(--_c-input-placeholder-color);opacity:1}.c-input--label-on-top label{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;color:var(--_c-input-label-color)}.c-input--label-on-top .c-input__field label{color:var(--_c-input-active-color);transform:translateY(-36px) translateX(-16px) scale(0.875)}.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:not(.label-on-top){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{opacity:0.75}.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--disabled .c-input__slot,.c-input--disabled .c-input__slot *{cursor:not-allowed !important}.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:not(.label-on-top),.c-input--active label:not(.label-on-top),.c-input:not(.c-input--disabled):active label:not(.label-on-top){color:var(--_c-input-active-color);transform:translateX(0) translateY(-18px) scale(0.75)}.c-input:focus-within legend:not(.label-on-top),.c-input--active legend:not(.label-on-top),.c-input:not(.c-input--disabled):active legend:not(.label-on-top){width:var(--_c-input-legend-width)}.c-input label:not(.label-on-top).filled{transform:translateX(0) translateY(-18px) scale(0.75)}.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-error-600)}.c-input--error fieldset{border-color:var(--c-error-600) !important}.c-input--error label{color:var(--c-error-600) !important}.c-input--error:focus-within{color:var(--c-error-600)}";
|
|
1023
|
-
|
|
1024
|
-
const CInput = class {
|
|
1025
|
-
constructor(hostRef) {
|
|
1026
|
-
registerInstance(this, hostRef);
|
|
1027
|
-
this.changeValue = createEvent(this, "changeValue", 3);
|
|
1028
|
-
this.itemClick = createEvent(this, "itemClick", 3);
|
|
1029
|
-
this.dropdownClose = createEvent(this, "dropdownClose", 3);
|
|
1030
|
-
this.active = false;
|
|
1031
|
-
this.automaticFocus = false;
|
|
1032
|
-
this.disabled = false;
|
|
1033
|
-
this.hideDetails = false;
|
|
1034
|
-
this.hint = '';
|
|
1035
|
-
this.itemsPerPage = 6;
|
|
1036
|
-
this.labelOnTop = false;
|
|
1037
|
-
this.max = null;
|
|
1038
|
-
this.min = null;
|
|
1039
|
-
this.readonly = false;
|
|
1040
|
-
this.required = false;
|
|
1041
|
-
this.rows = 1;
|
|
1042
|
-
this.shadow = false;
|
|
1043
|
-
this.step = null;
|
|
1044
|
-
this.valid = true;
|
|
1045
|
-
this.validate = false;
|
|
1046
|
-
this.validateOnBlur = false;
|
|
1047
|
-
this.validation = 'Required field';
|
|
1048
|
-
this.variant = 'text';
|
|
1049
|
-
this.isFocused = false;
|
|
1050
|
-
this.labelWidth = 0;
|
|
1051
|
-
this.preSlotWidth = 0;
|
|
1052
|
-
this.statusText = '';
|
|
1053
|
-
this.currentIndex = null;
|
|
1054
|
-
this._hasBlurred = false;
|
|
1055
|
-
this._debounce = null;
|
|
1056
|
-
this._observer = new IntersectionObserver((entries, observer) => {
|
|
1057
|
-
entries.forEach((entry) => {
|
|
1058
|
-
if (entry.isIntersecting) {
|
|
1059
|
-
this._calculateElementWidths();
|
|
1060
|
-
observer.unobserve(entry.target);
|
|
1061
|
-
}
|
|
1062
|
-
});
|
|
1063
|
-
}, { threshold: 1 });
|
|
1064
|
-
this._onBlur = () => {
|
|
1065
|
-
setTimeout(() => {
|
|
1066
|
-
this.isFocused = false;
|
|
1067
|
-
this._hasBlurred = true;
|
|
1068
|
-
this._onReset();
|
|
1069
|
-
}, 200);
|
|
1070
|
-
};
|
|
1071
|
-
this._onFocus = (click = true) => {
|
|
1072
|
-
var _a, _b;
|
|
1073
|
-
if (this.disabled)
|
|
1074
|
-
return;
|
|
1075
|
-
this.isFocused = true;
|
|
1076
|
-
(_a = this.inputField) === null || _a === void 0 ? void 0 : _a.focus();
|
|
1077
|
-
if (click) {
|
|
1078
|
-
(_b = this.inputField) === null || _b === void 0 ? void 0 : _b.click();
|
|
1079
|
-
if (this.variant === 'select') {
|
|
1080
|
-
this.itemClick.emit();
|
|
1081
|
-
}
|
|
1082
|
-
}
|
|
1083
|
-
if (this.inputField && !this.labelOnTop) {
|
|
1084
|
-
this.inputField.placeholder =
|
|
1085
|
-
!!this.value || !this.placeholder ? '' : this.placeholder;
|
|
1086
|
-
}
|
|
1087
|
-
};
|
|
1088
|
-
}
|
|
1089
|
-
onValidChange() {
|
|
1090
|
-
if (this.validateOnBlur && !this._hasBlurred)
|
|
1091
|
-
return;
|
|
1092
|
-
this._setAriaDescriptionId();
|
|
1093
|
-
}
|
|
1094
|
-
onValidationMessageChange() {
|
|
1095
|
-
this._updateStatusText();
|
|
1096
|
-
}
|
|
1097
|
-
onValueChange(value) {
|
|
1098
|
-
if (!value) {
|
|
1099
|
-
this._onReset();
|
|
1100
|
-
}
|
|
1101
|
-
}
|
|
1102
|
-
onPlaceholderChange(placeholder) {
|
|
1103
|
-
if (placeholder)
|
|
1104
|
-
this._onReset();
|
|
1105
|
-
}
|
|
1106
|
-
async reset() {
|
|
1107
|
-
this._onReset();
|
|
1108
|
-
}
|
|
1109
|
-
componentDidLoad() {
|
|
1110
|
-
var _a, _b, _c, _d;
|
|
1111
|
-
if (this.automaticFocus) {
|
|
1112
|
-
setTimeout(() => {
|
|
1113
|
-
this._onFocus(false);
|
|
1114
|
-
}, 500);
|
|
1115
|
-
}
|
|
1116
|
-
this._calculateElementWidths();
|
|
1117
|
-
this._setAriaDescriptionId();
|
|
1118
|
-
if (this.label) {
|
|
1119
|
-
this._observer.observe(this._labelRef);
|
|
1120
|
-
}
|
|
1121
|
-
(_a = this.inputField) === null || _a === void 0 ? void 0 : _a.addEventListener('focus', () => this._onFocus(false));
|
|
1122
|
-
(_b = this.inputField) === null || _b === void 0 ? void 0 : _b.addEventListener('blur', () => this._onBlur());
|
|
1123
|
-
(_c = this.inputField) === null || _c === void 0 ? void 0 : _c.addEventListener('keypress', this._preventNonNumericalInput);
|
|
1124
|
-
if (this.inputField && !this.labelOnTop) {
|
|
1125
|
-
this.inputField.placeholder =
|
|
1126
|
-
!!this.label || !this.placeholder ? '' : this.placeholder;
|
|
1127
|
-
this.inputField.title = (_d = this.label) !== null && _d !== void 0 ? _d : this.placeholder;
|
|
1128
|
-
requestAnimationFrame(() => {
|
|
1129
|
-
const container = this.inputField.closest('.c-input-menu__input');
|
|
1130
|
-
if (!container)
|
|
1131
|
-
return;
|
|
1132
|
-
container.dataset.placeholder = this.placeholder;
|
|
1133
|
-
});
|
|
1134
|
-
}
|
|
1135
|
-
if (this.labelOnTop && this.placeholder && this.inputField) {
|
|
1136
|
-
this.inputField.placeholder = this.placeholder;
|
|
1137
|
-
}
|
|
1138
|
-
}
|
|
1139
|
-
disconnectedCallback() {
|
|
1140
|
-
var _a, _b, _c, _d;
|
|
1141
|
-
(_a = this.inputField) === null || _a === void 0 ? void 0 : _a.removeEventListener('focus', () => this._onFocus(false));
|
|
1142
|
-
(_b = this.inputField) === null || _b === void 0 ? void 0 : _b.removeEventListener('blur', () => this._onBlur());
|
|
1143
|
-
(_c = this.inputField) === null || _c === void 0 ? void 0 : _c.removeEventListener('keypress', this._preventNonNumericalInput);
|
|
1144
|
-
this._observer.disconnect();
|
|
1145
|
-
(_d = this._dropdownElement) === null || _d === void 0 ? void 0 : _d.remove();
|
|
1146
|
-
}
|
|
1147
|
-
get isActive() {
|
|
1148
|
-
return !!this.value || typeof this.value === 'boolean' || this.isFocused;
|
|
1149
|
-
}
|
|
1150
|
-
_setAriaDescriptionId() {
|
|
1151
|
-
this.inputField.removeAttribute('aria-describedby');
|
|
1152
|
-
let type = null;
|
|
1153
|
-
if (this.valid && !this.value && this.hint) {
|
|
1154
|
-
type = 'hint';
|
|
1155
|
-
}
|
|
1156
|
-
if (!this.valid) {
|
|
1157
|
-
type = 'error';
|
|
1158
|
-
}
|
|
1159
|
-
if (type) {
|
|
1160
|
-
this.inputField.setAttribute('aria-describedby', `${type}-${this.inputId}`);
|
|
1161
|
-
}
|
|
1162
|
-
}
|
|
1163
|
-
_calculateElementWidths() {
|
|
1164
|
-
this.labelWidth = !!this.label ? this._labelRef.scrollWidth * 0.75 + 6 : 0;
|
|
1165
|
-
this.preSlotWidth = this.inputField.offsetLeft;
|
|
1166
|
-
}
|
|
1167
|
-
_onReset() {
|
|
1168
|
-
requestAnimationFrame(() => {
|
|
1169
|
-
if (this.inputField && !this.labelOnTop) {
|
|
1170
|
-
if (!!this.placeholder &&
|
|
1171
|
-
!this.value &&
|
|
1172
|
-
(this.active || this.isFocused)) {
|
|
1173
|
-
this.inputField.placeholder = this.placeholder;
|
|
1174
|
-
return;
|
|
1175
|
-
}
|
|
1176
|
-
this.inputField.placeholder =
|
|
1177
|
-
!this.label && !this.value && !!this.placeholder
|
|
1178
|
-
? this.placeholder
|
|
1179
|
-
: '';
|
|
1180
|
-
}
|
|
1181
|
-
});
|
|
1182
|
-
}
|
|
1183
|
-
_preventNonNumericalInput(event) {
|
|
1184
|
-
if (this.type !== 'number')
|
|
1185
|
-
return;
|
|
1186
|
-
if (!event.key.match(/^[0-9,\.-]+$/)) {
|
|
1187
|
-
event.preventDefault();
|
|
1188
|
-
}
|
|
1189
|
-
}
|
|
1190
|
-
_renderBorders() {
|
|
1191
|
-
if (this.shadow)
|
|
1192
|
-
return;
|
|
1193
|
-
const classes = {
|
|
1194
|
-
active: this.isActive || this.active,
|
|
1195
|
-
'label-on-top': this.labelOnTop,
|
|
1196
|
-
};
|
|
1197
|
-
return (h("fieldset", { "aria-hidden": "true" }, h("legend", { class: classes, style: {
|
|
1198
|
-
'--_c-input-legend-width': this.labelWidth + 'px',
|
|
1199
|
-
} }, h("span", { class: "notranslate" }))));
|
|
1200
|
-
}
|
|
1201
|
-
_renderLabel() {
|
|
1202
|
-
if (!this.label)
|
|
1203
|
-
return;
|
|
1204
|
-
const classes = {
|
|
1205
|
-
active: this.isActive,
|
|
1206
|
-
filled: !!this.value || typeof this.value === 'boolean',
|
|
1207
|
-
'label-on-top': this.labelOnTop,
|
|
1208
|
-
};
|
|
1209
|
-
return (h("label", { htmlFor: this.inputId, ref: (el) => (this._labelRef = el), class: classes }, this.label, this.required && h("span", null, "\u00A0*")));
|
|
1210
|
-
}
|
|
1211
|
-
get inputField() {
|
|
1212
|
-
var _a;
|
|
1213
|
-
return (_a = this.el) === null || _a === void 0 ? void 0 : _a.querySelector('.c-input__input');
|
|
1214
|
-
}
|
|
1215
|
-
_updateStatusText() {
|
|
1216
|
-
if (this._debounce !== null) {
|
|
1217
|
-
clearTimeout(this._debounce);
|
|
1218
|
-
this._debounce = null;
|
|
1219
|
-
}
|
|
1220
|
-
this._debounce = window.setTimeout(() => {
|
|
1221
|
-
this.statusText = this.valid ? '' : `Error: ${this.validation}`;
|
|
1222
|
-
this._debounce = null;
|
|
1223
|
-
}, 1400);
|
|
1224
|
-
}
|
|
1225
|
-
render() {
|
|
1226
|
-
const containerClasses = {
|
|
1227
|
-
'c-input': true,
|
|
1228
|
-
'c-input--disabled': this.disabled,
|
|
1229
|
-
'c-input--shadow': this.shadow,
|
|
1230
|
-
'c-input--label-on-top': this.labelOnTop,
|
|
1231
|
-
'c-input--textarea': this.rows > 1,
|
|
1232
|
-
'c-input--error': !this.valid,
|
|
1233
|
-
'c-input--active': this.isFocused || this.active,
|
|
1234
|
-
filled: !!this.value,
|
|
1235
|
-
[`c-input--${this.variant}`]: true,
|
|
1236
|
-
};
|
|
1237
|
-
return (h(Host, { key: '2fdc7e237b1e2b0837e72510ddb8240b2ed15198', disabled: this.disabled }, h("div", { key: '3f1128cf26da49d0eab24e688d74d5a6e417d195', id: 'announce-' + this.inputId, class: "visuallyhidden", "aria-live": "polite", "aria-atomic": "true" }, this.statusText), h("div", { key: 'bc79e784977c38b2cd8d80a649da95d10ffff11d', class: containerClasses }, this.labelOnTop && this._renderLabel(), h("div", { key: 'dd56297fba8a8e9d772f2ae49292b0a1fb195eff', class: "c-input__control" }, h("div", { key: '0a193e025daa0832c4cb36c107b25836a583a629', class: "c-input__slot", onClick: () => this._onFocus() }, this._renderBorders(), h("div", { key: '17c694469e8d6ee7a48d69d45ab05136bf46c2d2', class: "c-input__field", style: {
|
|
1238
|
-
'--_c-input-label-position': this.preSlotWidth + 'px',
|
|
1239
|
-
} }, h("slot", { key: '91427605d55129e2f804fc2b8bf2e0ab747e151f', name: "pre" }), !this.labelOnTop && this._renderLabel(), h("slot", { key: '1ed436ada4e6dbe6e88805422ef61aaee09c30ba' }))), this.variant === 'select' && h("slot", { key: '232f92cbeb9ca7730efc488b393886058ce71148', name: "dropdown" }), !this.hideDetails && (h("c-message", { key: 'd66d4192a8636ddd90fc9ec2e3638e9e9b54d69a', hint: this.hint, inputId: this.inputId, valid: this.valid, validation: this.validation }))))));
|
|
1240
|
-
}
|
|
1241
|
-
get el() { return getElement(this); }
|
|
1242
|
-
static get watchers() { return {
|
|
1243
|
-
"valid": ["onValidChange"],
|
|
1244
|
-
"validation": ["onValidationMessageChange"],
|
|
1245
|
-
"value": ["onValueChange"],
|
|
1246
|
-
"placeholder": ["onPlaceholderChange"]
|
|
1247
|
-
}; }
|
|
1248
|
-
};
|
|
1249
|
-
CInput.style = cInputCss;
|
|
1250
|
-
|
|
1251
|
-
const cLoaderCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-loader-color:var(--c-loader-color, var(--c-primary-600));--_c-loader-background-color:var(--c-loader-background-color, rgba(var(--c-white-rgb), 0.8));--_c-loader-text-color:var(--c-loader-text-color, var(--c-text-system));--_c-stroke-start-dasharray:1, 200;--_c-stroke-end-dasharray:89, 200;width:100%;position:absolute;inset:0;z-index:6;background:var(--_c-loader-background-color);border-radius:inherit;visibility:hidden;opacity:0;transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out}:host(.active){opacity:1;visibility:visible}:host(.active) .c-loader{transform:scale(1)}.c-loader{height:100%;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;transform:scale(0.5);transition:transform 0.3s ease-in-out}.c-loader__slot{line-height:40px;font-size:14px;color:var(--_c-loader-text-color);text-align:center;font-weight:500;display:block;max-height:0;overflow:hidden;animation-duration:4s;animation-direction:forwards;animation-iteration-count:1;animation-name:fadein;animation-fill-mode:forwards}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes animate-stroke{0%{stroke-dasharray:var(--_c-stroke-start-dasharray);stroke-dashoffset:0}50%{stroke-dasharray:var(--_c-stroke-end-dasharray);stroke-dashoffset:-35}100%{stroke-dasharray:var(--_c-stroke-end-dasharray);stroke-dashoffset:-124}}@keyframes fadein{0%{max-height:0}100%{max-height:300px}}";
|
|
1252
|
-
|
|
1253
|
-
const CLoader = class {
|
|
1254
|
-
constructor(hostRef) {
|
|
1255
|
-
registerInstance(this, hostRef);
|
|
1256
|
-
this.contentdelay = 0;
|
|
1257
|
-
this.hide = false;
|
|
1258
|
-
this.size = 48;
|
|
1259
|
-
this.width = 4;
|
|
1260
|
-
}
|
|
1261
|
-
onElementHide(hide) {
|
|
1262
|
-
requestAnimationFrame(() => this.el.classList.toggle('active', !hide));
|
|
1263
|
-
}
|
|
1264
|
-
componentDidLoad() {
|
|
1265
|
-
requestAnimationFrame(() => this.el.classList.toggle('active', !this.hide));
|
|
1266
|
-
}
|
|
1267
|
-
render() {
|
|
1268
|
-
const slotHasContent = !!this.el.childNodes.length;
|
|
1269
|
-
const styles = {
|
|
1270
|
-
'--c-loader-size': `${this.size}px`,
|
|
1271
|
-
};
|
|
1272
|
-
return (h(Host, { key: 'bde540ceca008fe45795b63e674f1623f66c7053' }, h("div", { key: '04de4a4fd2e4212f78bb2619f86cb10ddc288f45', class: "c-loader", style: styles }, h("c-spinner", { key: '589bc501d87d05cf2b598a210435da27919e9c8a', color: "var(--_c-loader-color)", size: this.size, width: this.width }), slotHasContent && (h("div", { key: '274549b5385c5e6733236db4601f6e6842584632', class: "c-loader__slot", style: { 'animation-delay': `${this.contentdelay}s` } }, h("slot", { key: '41940b173519e8a671349ea8e9067b94beba7fb1' }))))));
|
|
1273
|
-
}
|
|
1274
|
-
get el() { return getElement(this); }
|
|
1275
|
-
static get watchers() { return {
|
|
1276
|
-
"hide": ["onElementHide"]
|
|
1277
|
-
}; }
|
|
1278
|
-
};
|
|
1279
|
-
CLoader.style = cLoaderCss;
|
|
1280
|
-
|
|
1281
|
-
const cMainCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host(c-main){--_c-main-background-color:var(--c-main-background-color, var(--c-primary-200));--_c-main-text-color:var(--c-main-text-color, var(--c-text-body));background:var(--_c-main-background-color);color:var(--_c-main-text-color);display:flex;flex-direction:column;height:100vh}:host(c-main) ::slotted(*){color:var(--_c-main-text-color)}:host(c-main) main.dashboard{display:grid;grid-template:\"toolbar toolbar\" auto \"sidenav page\" 1fr/auto 1fr;gap:0}:host(c-main) main.dashboard ::slotted(c-toolbar){grid-area:toolbar}:host(c-main) main.dashboard ::slotted(c-page){grid-area:page}:host(c-main) main.dashboard ::slotted(c-side-navigation){grid-area:sidenav}*,::after,::before,body{box-sizing:border-box;margin:0}";
|
|
1282
|
-
|
|
1283
|
-
const CMain = class {
|
|
1284
|
-
constructor(hostRef) {
|
|
1285
|
-
registerInstance(this, hostRef);
|
|
1286
|
-
this.disableLayout = false;
|
|
1287
|
-
}
|
|
1288
|
-
render() {
|
|
1289
|
-
return (h("main", { key: 'f2b4cdb7aa5b0cc94a7fc6825f1a52c459a342e7', class: { dashboard: !this.disableLayout } }, h("slot", { key: '67f3c2e2939563d626d675b31b4b77ede223c7e6' }), h("c-backdrop", { key: '06da3e95b1276275ff272eff37462410d2f954e0' })));
|
|
1290
|
-
}
|
|
1291
|
-
};
|
|
1292
|
-
CMain.style = cMainCss;
|
|
1293
|
-
|
|
1294
|
-
const cMessageCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-message-error-color:var(--c-message-error-color, var(--c-error-600));--_c-message-hint-color:var(--c-message-hint-color, var(--c-text-system));--_c-message-padding:var(--c-message-padding, 0 12px);display:block;line-height:1;padding:var(--_c-message-padding)}.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;flex-shrink:0}.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}";
|
|
1295
|
-
|
|
1296
|
-
const CMessage = class {
|
|
1297
|
-
constructor(hostRef) {
|
|
1298
|
-
registerInstance(this, hostRef);
|
|
1299
|
-
this.hint = '';
|
|
1300
|
-
this.valid = true;
|
|
1301
|
-
this.validation = 'Required field';
|
|
1302
|
-
this.messageOptions = {
|
|
1303
|
-
show: true,
|
|
1304
|
-
type: 'hint',
|
|
1305
|
-
content: '',
|
|
1306
|
-
};
|
|
1307
|
-
this._validationIcon = (h("svg", { height: "16px", width: "16px", viewBox: "0 0 24 24" }, h("path", { d: mdiCloseCircle })));
|
|
1308
|
-
}
|
|
1309
|
-
onValidChange(valid) {
|
|
1310
|
-
this._handleValidation(valid);
|
|
1311
|
-
}
|
|
1312
|
-
onValidationMessageChange(message) {
|
|
1313
|
-
if (this.valid || !message)
|
|
1314
|
-
return;
|
|
1315
|
-
this.messageOptions = Object.assign(Object.assign({}, this.messageOptions), { content: (h("span", null, h("span", { class: "visuallyhidden" }, "Error: "), this._validationIcon, " ", message)) });
|
|
1316
|
-
}
|
|
1317
|
-
onHintMessageChange(message) {
|
|
1318
|
-
if (!this.valid || !message)
|
|
1319
|
-
return;
|
|
1320
|
-
this.messageOptions = Object.assign(Object.assign({}, this.messageOptions), { content: (h("span", null, h("span", { class: "visuallyhidden" }, "Hint: "), message)) });
|
|
1321
|
-
}
|
|
1322
|
-
_handleValidation(valid, timeout = 200) {
|
|
1323
|
-
this.messageOptions = Object.assign(Object.assign({}, this.messageOptions), { show: false });
|
|
1324
|
-
setTimeout(() => {
|
|
1325
|
-
this.messageOptions = Object.assign(Object.assign({}, this.messageOptions), { type: valid ? 'hint' : 'error', show: true, content: valid ? (h("span", { id: `hint-${this.inputId}` }, h("span", { class: "visuallyhidden" }, "Hint: "), this.hint)) : (h("span", { id: `error-${this.inputId}` }, this._validationIcon, h("span", { class: "visuallyhidden" }, "Error: "), this.validation)) });
|
|
1326
|
-
}, timeout);
|
|
1327
|
-
}
|
|
1328
|
-
componentDidLoad() {
|
|
1329
|
-
this._handleValidation(this.valid, 0);
|
|
1330
|
-
}
|
|
1331
|
-
render() {
|
|
1332
|
-
const classes = {
|
|
1333
|
-
'c-message': true,
|
|
1334
|
-
'c-message--active': this.messageOptions.show,
|
|
1335
|
-
};
|
|
1336
|
-
const messageClasses = {
|
|
1337
|
-
'c-message-item': true,
|
|
1338
|
-
[`c-message-item--${this.messageOptions.type}`]: true,
|
|
1339
|
-
};
|
|
1340
|
-
return (h(Host, { key: '83c81bba9bbbeb92a4a2ccfb66c481c66e16185d' }, h("div", { key: 'b934057f3e3b04b8a8f3965aa9faf515d39faea9', class: classes }, h("div", { key: '6f0e59f5cd2e42526facb5b2bf8fee23343da154', class: messageClasses }, this.messageOptions.content))));
|
|
1341
|
-
}
|
|
1342
|
-
static get watchers() { return {
|
|
1343
|
-
"valid": ["onValidChange"],
|
|
1344
|
-
"validation": ["onValidationMessageChange"],
|
|
1345
|
-
"hint": ["onHintMessageChange"]
|
|
1346
|
-
}; }
|
|
1347
|
-
};
|
|
1348
|
-
CMessage.style = cMessageCss;
|
|
1349
|
-
|
|
1350
|
-
const cNavigationButtonCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-navigation-button-color:var(\n --c-navigation-button-color,\n var(--c-text-system)\n );display:block;margin-right:0;cursor:pointer;user-select:none;border-radius:50%;--c-icon-button-text-text-color:var(--_c-navigation-button-color)}";
|
|
1351
|
-
|
|
1352
|
-
const CNavigationButton = class {
|
|
1353
|
-
constructor(hostRef) {
|
|
1354
|
-
registerInstance(this, hostRef);
|
|
1355
|
-
}
|
|
1356
|
-
render() {
|
|
1357
|
-
return (h(Host, { key: '8f3b90980f450983cc708744d45ee0549cf56b0f', tabindex: 0 }, h("c-icon-button", { key: 'fc1a843bf19d557f1251e04f5b87a409762da6b4', text: true }, h("c-icon", { key: 'bda13f341954e31d7e34dda1ead91aa398fdb4d3', path: mdiMenu }))));
|
|
1358
|
-
}
|
|
1359
|
-
};
|
|
1360
|
-
CNavigationButton.style = cNavigationButtonCss;
|
|
1361
|
-
|
|
1362
|
-
const cOptionCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{display:block;width:100%;padding:8px 0}";
|
|
1363
|
-
|
|
1364
|
-
const COption = class {
|
|
1365
|
-
constructor(hostRef) {
|
|
1366
|
-
registerInstance(this, hostRef);
|
|
1367
|
-
this.selected = false;
|
|
1368
|
-
this.disabled = false;
|
|
1369
|
-
}
|
|
1370
|
-
render() {
|
|
1371
|
-
return (h(Host, { key: '46cd05f078679cdfbd55c5173e93389dcfc3f3b5', tabindex: "-1" }, h("slot", { key: '72c92990a0b53f80e111658c186017ec890f62b9' })));
|
|
1372
|
-
}
|
|
1373
|
-
};
|
|
1374
|
-
COption.style = cOptionCss;
|
|
1375
|
-
|
|
1376
|
-
const cOtpInputCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-otp-input-border-color:var(--c-otp-input-border-color, var(--c-tertiary-500));--_c-otp-input-border-color-active:var(--c-otp-input-border-color-active, var(--c-primary-600));--_c-otp-input-height:var(--c-otp-input-height, 56px);--_c-otp-input-width:var(--c-otp-input-width, 42px);--_c-otp-input-font-size:var(--c-otp-input-font-size, 24px);--_c-otp-input-text-color:var(--c-otp-input-text-color, var(--c-text-body));--_c-otp-input-border-width:1px;display:block}:host(.error){--_c-otp-input-border-color:var(--c-error-600);--_c-otp-input-border-color-active: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-otp-input{backface-visibility:hidden;display:inline-grid;gap:8px;grid-auto-columns:minmax(auto, var(--_c-otp-input-width));grid-auto-flow:column;margin-bottom:8px;transform:translate3d(0, 0, 0)}.c-otp-input--hide-details{margin-bottom:0}.c-otp-input input{border-radius:4px;border:none;box-shadow:inset 0 0 0 var(--_c-otp-input-border-width) var(--_c-otp-input-border-color);color:var(--_c-otp-input-text-color);font-size:var(--_c-otp-input-font-size);height:var(--_c-otp-input-height);max-width:var(--_c-otp-input-width);min-width:24px;text-align:center;width:100%}.c-otp-input input:focus{--_c-otp-input-border-width:2px;--_c-otp-input-border-color:var(--_c-otp-input-border-color-active);outline:none}.c-otp-input c-message{grid-column:1/span var(--_c-otp-input-count);grid-row:2}";
|
|
1377
|
-
|
|
1378
|
-
const COtpInput = class {
|
|
1379
|
-
constructor(hostRef) {
|
|
1380
|
-
registerInstance(this, hostRef);
|
|
1381
|
-
this.changeValue = createEvent(this, "changeValue", 3);
|
|
1382
|
-
this.completion = createEvent(this, "completion", 3);
|
|
1383
|
-
if (hostRef.$hostElement$["s-ei"]) {
|
|
1384
|
-
this.internals = hostRef.$hostElement$["s-ei"];
|
|
1385
|
-
}
|
|
1386
|
-
else {
|
|
1387
|
-
this.internals = hostRef.$hostElement$.attachInternals();
|
|
1388
|
-
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
1389
|
-
}
|
|
1390
|
-
this.hasAutofocus = false;
|
|
1391
|
-
this.hideDetails = false;
|
|
1392
|
-
this.hint = '';
|
|
1393
|
-
this.length = 6;
|
|
1394
|
-
this.valid = true;
|
|
1395
|
-
this.validation = 'Required field';
|
|
1396
|
-
this.statusText = '';
|
|
1397
|
-
this._backSpacePressed = false;
|
|
1398
|
-
this._debounce = null;
|
|
1399
|
-
this._isPasting = false;
|
|
1400
|
-
this._inputs = new Array(this.length).fill(null);
|
|
1401
|
-
}
|
|
1402
|
-
async reset() {
|
|
1403
|
-
this.value = '';
|
|
1404
|
-
this._handleValueChange(this.value, true);
|
|
1405
|
-
this.internals.setFormValue(this.value);
|
|
1406
|
-
}
|
|
1407
|
-
onValidationMessageChange() {
|
|
1408
|
-
this._updateStatusText();
|
|
1409
|
-
}
|
|
1410
|
-
onValueChange(value) {
|
|
1411
|
-
this._handleValueChange(value);
|
|
1412
|
-
this._updateStatusText();
|
|
1413
|
-
}
|
|
1414
|
-
_emitValue() {
|
|
1415
|
-
requestAnimationFrame(() => {
|
|
1416
|
-
this.value = [...this._inputs].map((input) => input.value).join('');
|
|
1417
|
-
const isFullyFilled = this.value.length === this.length;
|
|
1418
|
-
this.changeValue.emit(isFullyFilled ? this.value : null);
|
|
1419
|
-
if (isFullyFilled) {
|
|
1420
|
-
this.completion.emit(this.value || null);
|
|
1421
|
-
}
|
|
1422
|
-
this.internals.setFormValue(this.value);
|
|
1423
|
-
this._updateStatusText();
|
|
1424
|
-
});
|
|
1425
|
-
}
|
|
1426
|
-
_getElements(event) {
|
|
1427
|
-
const target = event.target;
|
|
1428
|
-
const nextElement = target.nextElementSibling;
|
|
1429
|
-
const previousElement = target.previousElementSibling;
|
|
1430
|
-
return { target, nextElement, previousElement };
|
|
1431
|
-
}
|
|
1432
|
-
_onFocus(index) {
|
|
1433
|
-
this._inputs[index].select();
|
|
1434
|
-
}
|
|
1435
|
-
_onKeyDown(event) {
|
|
1436
|
-
this._backSpacePressed = false;
|
|
1437
|
-
const { target, previousElement } = this._getElements(event);
|
|
1438
|
-
if (event.key === 'Backspace') {
|
|
1439
|
-
this._backSpacePressed = true;
|
|
1440
|
-
if (previousElement && !target.value) {
|
|
1441
|
-
previousElement.focus();
|
|
1442
|
-
}
|
|
1443
|
-
this._emitValue();
|
|
1444
|
-
}
|
|
1445
|
-
}
|
|
1446
|
-
get id() {
|
|
1447
|
-
return this.elementId || `c-otp-input--${COtpInput._uniqueId}`;
|
|
1448
|
-
}
|
|
1449
|
-
_onInput(event) {
|
|
1450
|
-
const { target, nextElement, previousElement } = this._getElements(event);
|
|
1451
|
-
if (isNaN(+target.value)) {
|
|
1452
|
-
event.preventDefault();
|
|
1453
|
-
target.value = null;
|
|
1454
|
-
return;
|
|
1455
|
-
}
|
|
1456
|
-
if (this._isPasting) {
|
|
1457
|
-
this._isPasting = false;
|
|
1458
|
-
return;
|
|
1459
|
-
}
|
|
1460
|
-
if (this._backSpacePressed) {
|
|
1461
|
-
return;
|
|
1462
|
-
}
|
|
1463
|
-
if (event.data) {
|
|
1464
|
-
nextElement === null || nextElement === void 0 ? void 0 : nextElement.focus();
|
|
1465
|
-
}
|
|
1466
|
-
else {
|
|
1467
|
-
previousElement === null || previousElement === void 0 ? void 0 : previousElement.focus();
|
|
1468
|
-
}
|
|
1469
|
-
this._emitValue();
|
|
1470
|
-
}
|
|
1471
|
-
_onPaste(event) {
|
|
1472
|
-
event.preventDefault();
|
|
1473
|
-
const pasteData = event.clipboardData.getData('text');
|
|
1474
|
-
if (isNaN(+pasteData)) {
|
|
1475
|
-
return;
|
|
1476
|
-
}
|
|
1477
|
-
this._isPasting = true;
|
|
1478
|
-
for (const [index, value] of pasteData.split('').entries()) {
|
|
1479
|
-
if (index >= this._inputs.length) {
|
|
1480
|
-
continue;
|
|
1481
|
-
}
|
|
1482
|
-
this._inputs[index].value = null;
|
|
1483
|
-
this._inputs[index].value = value;
|
|
1484
|
-
}
|
|
1485
|
-
const nextElementIndex = Math.min(this.length, pasteData.length) - 1;
|
|
1486
|
-
requestAnimationFrame(() => {
|
|
1487
|
-
this._inputs[nextElementIndex].focus();
|
|
1488
|
-
this._emitValue();
|
|
1489
|
-
});
|
|
1490
|
-
}
|
|
1491
|
-
_updateStatusText() {
|
|
1492
|
-
if (this._debounce !== null) {
|
|
1493
|
-
clearTimeout(this._debounce);
|
|
1494
|
-
this._debounce = null;
|
|
1495
|
-
}
|
|
1496
|
-
this._debounce = window.setTimeout(() => {
|
|
1497
|
-
const value = [...this._inputs].map((input) => input.value).join('');
|
|
1498
|
-
this.statusText = this.valid ? '' : `Error: ${this.validation} `;
|
|
1499
|
-
this.statusText += `Currently entered - ${!value.length ? 'nothing' : value.split('').join(' - ')}`;
|
|
1500
|
-
this.statusText = this.statusText.trim();
|
|
1501
|
-
this._debounce = null;
|
|
1502
|
-
}, 1400);
|
|
1503
|
-
}
|
|
1504
|
-
_handleValueChange(value, forceEmpty = false) {
|
|
1505
|
-
if (!value && !forceEmpty)
|
|
1506
|
-
return;
|
|
1507
|
-
const digits = value.split('');
|
|
1508
|
-
this._inputs.map((input, index) => (input.value = digits[index] || ''));
|
|
1509
|
-
this.internals.setFormValue(value);
|
|
1510
|
-
}
|
|
1511
|
-
_renderInput(index) {
|
|
1512
|
-
return (h("input", { id: `${this.id}--input-${index + 1}`, ref: (el) => (this._inputs[index] = el), "aria-label": `Enter code - digit number - ${index + 1} of ${this.length}`, type: "tel", maxlength: "1", autofocus: this.hasAutofocus && index === 0, onFocus: () => this._onFocus(index), onInput: (event) => this._onInput(event), onKeyDown: (event) => this._onKeyDown(event), onPaste: (event) => index === 0 && this._onPaste(event) }));
|
|
1513
|
-
}
|
|
1514
|
-
componentWillLoad() {
|
|
1515
|
-
COtpInput._uniqueId += 1;
|
|
1516
|
-
}
|
|
1517
|
-
componentDidLoad() {
|
|
1518
|
-
this._handleValueChange(this.value);
|
|
1519
|
-
this.internals.setFormValue(this.value);
|
|
1520
|
-
}
|
|
1521
|
-
render() {
|
|
1522
|
-
const classes = {
|
|
1523
|
-
'c-otp-input': true,
|
|
1524
|
-
'c-otp-input--hide-details': this.hideDetails,
|
|
1525
|
-
};
|
|
1526
|
-
return (h(Host, { key: 'e62a5a6bc8be164741be5de5e56f4caa3114c94b', id: this.id, style: { '--_c-otp-input-count': this.length.toString() }, class: { error: !this.valid } }, h("div", { key: 'a4b5e9e538d243160acab91d2fbc98caa76cb2db', id: 'announce-' + this.id, class: "visuallyhidden", "aria-live": "polite", "aria-atomic": "true" }, this.statusText), h("div", { key: '9e4fdca998c939f1a338a71a1ad6a8c12117ecc8', class: classes }, new Array(this.length)
|
|
1527
|
-
.fill(0)
|
|
1528
|
-
.map((_, index) => this._renderInput(index)), h("c-message", { key: '242bcb26947d04adc90f2f6f130935f0e2c14f89', hint: this.hint, inputId: this.elementId, valid: this.valid, validation: this.validation }))));
|
|
1529
|
-
}
|
|
1530
|
-
static get formAssociated() { return true; }
|
|
1531
|
-
static get watchers() { return {
|
|
1532
|
-
"validation": ["onValidationMessageChange"],
|
|
1533
|
-
"value": ["onValueChange"]
|
|
1534
|
-
}; }
|
|
1535
|
-
};
|
|
1536
|
-
COtpInput._uniqueId = 0;
|
|
1537
|
-
COtpInput.style = cOtpInputCss;
|
|
1538
|
-
|
|
1539
|
-
const cPageCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host(c-page){--_c-page-max-width:var(--c-page-max-width, 1280px);--_c-page-justify-content:var(--c-page-justify-content, start);display:grid;height:calc(100lvh - 60px);grid-template-rows:1fr auto;grid-template-columns:1fr;width:100%;overflow-y:auto;scroll-behavior:smooth;position:relative;place-items:start var(--_c-page-justify-content)}:host(c-page) .scroll-indicator{z-index:9;height:4px;background-color:var(--c-primary-600);position:fixed;top:0;left:0;width:0%}:host(c-page) .c-page__container{padding:0.5rem;position:relative;width:100%;height:100%;max-width:var(--_c-page-max-width)}@media (min-width: 640px){:host(c-page) .c-page__container{padding:0.75rem}}@media (min-width: 768px){:host(c-page) .c-page__container{padding:1rem}}";
|
|
1540
|
-
|
|
1541
|
-
const CPage = class {
|
|
1542
|
-
constructor(hostRef) {
|
|
1543
|
-
registerInstance(this, hostRef);
|
|
1544
|
-
this.scrollIndicator = false;
|
|
1545
|
-
}
|
|
1546
|
-
_onScroll() {
|
|
1547
|
-
if (!this.scrollIndicator)
|
|
1548
|
-
return;
|
|
1549
|
-
const scrollTop = this.el.scrollTop;
|
|
1550
|
-
const height = this.el.scrollHeight - this.el.clientHeight;
|
|
1551
|
-
const scrolled = (scrollTop / height) * 100;
|
|
1552
|
-
this._scrollIndicator.style.width = scrolled + '%';
|
|
1553
|
-
}
|
|
1554
|
-
componentDidLoad() {
|
|
1555
|
-
this.el.onscroll = this._onScroll.bind(this);
|
|
1556
|
-
}
|
|
1557
|
-
render() {
|
|
1558
|
-
return (h(Host, { key: '64a48abe5194fc8e9a81fc612dc73cf81f37d81e' }, this.scrollIndicator && (h("div", { key: 'fb7bc3775164bae600d304ec7b69bd5318cc2b5c', ref: (el) => (this._scrollIndicator = el), class: "scroll-indicator" })), h("div", { key: '048dcd8262ecff37e84db36288cd30821468fd94', class: "c-page__container" }, h("slot", { key: '87efc0f8bdf6575136b0f78e6a366ec1e548a3e4' })), h("slot", { key: '8daf870130fac624434a45cb220105f40a69f5ae', name: "footer" })));
|
|
1559
|
-
}
|
|
1560
|
-
get el() { return getElement(this); }
|
|
1561
|
-
};
|
|
1562
|
-
CPage.style = cPageCss;
|
|
1563
|
-
|
|
1564
|
-
const cRadioCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{display:block}";
|
|
1565
|
-
|
|
1566
|
-
const CRadio = class {
|
|
1567
|
-
constructor(hostRef) {
|
|
1568
|
-
registerInstance(this, hostRef);
|
|
1569
|
-
this.checked = false;
|
|
1570
|
-
this.disabled = false;
|
|
1571
|
-
}
|
|
1572
|
-
render() {
|
|
1573
|
-
return h(Host, { key: '2bffd79db7c727caf48c27ae7bb0c4057a341af7' });
|
|
1574
|
-
}
|
|
1575
|
-
};
|
|
1576
|
-
CRadio.style = cRadioCss;
|
|
1577
|
-
|
|
1578
|
-
const cRadioGroupCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-radio-group-background-color-hover:var(--c-radio-group-background-color-hover, rgba(var(--c-primary-rgb), 0.1));--_c-radio-group-color:var(--c-radio-group-color, var(--c-primary-600));--_c-radio-group-color-active:var(--c-radio-group-color-active, var(--_c-radio-group-color));--_c-radio-group-color-disabled:var(--c-radio-group-color-disabled, var(--c-tertiary-500));display:flex;flex-direction:column;gap:4px;width:fit-content}.c-radio-group{--_c-radio-group-error-color:var(--c-error-600);--_c-radio-flex-direction:column;--_c-radio-item-gap:2px}.c-radio-group__items{display:flex;flex-flow:var(--_c-radio-flex-direction) wrap;gap:var(--_c-radio-item-gap)}.c-radio-group__label span.required{color:var(--_c-radio-group-error-color)}.c-radio-group--disabled{--_c-radio-group-color:var(--_c-radio-group-color-disabled);--_c-radio-group-error-color:var(--_c-radio-group-color-disabled);color:var(--_c-radio-group-color-disabled);cursor:default;opacity:0.75}.c-radio-group--error{--_c-radio-group-color:var(--_c-radio-group-error-color);--_c-radio-group-color-active:var(--_c-radio-group-error-color);color:var(--_c-radio-group-error-color)}.c-radio-group--inline{--_c-radio-flex-direction:row;--_c-radio-item-gap:12px}.c-radio{align-items:flex-start;display:flex;position:relative;cursor:pointer;font-size:16px;user-select:none;gap:4px;line-height:1.2}.c-radio input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.c-radio input:checked~.ripple .selection::after{display:block;transform:scale(1)}.c-radio .ripple{position:relative;height:42px;width:42px;min-width:42px;border-radius:50%;overflow:hidden;transition:translateZ(0);color:var(--_c-radio-group-color)}.c-radio .selection{position:absolute;top:11px;left:11px;height:20px;width:20px;background-color:transparent;box-shadow:inset 0 0 0 2px var(--_c-radio-group-color);border-radius:50%;transition:box-shadow 0.15s ease-in-out}.c-radio .selection::after{content:\"\";position:absolute;transform:scale(0);transition:transform 0.15s ease-in-out;top:5px;left:5px;width:10px;height:10px;border-radius:50%;background:var(--_c-radio-group-color-active)}.c-radio__label{padding-top:12px}.c-radio--disabled{--_c-radio-group-color:var(--_c-radio-group-color-disabled);--_c-radio-group-color-active:var(--_c-radio-group-color-disabled);color:var(--_c-radio-group-color);cursor:default;opacity:0.75}.c-radio--error{--_c-radio-group-color:var(--_c-radio-group-error-color);color:var(--_c-radio-group-error-color)}.c-radio--error span,.c-radio--error svg{fill:var(--_c-radio-group-error-color);color:var(--_c-radio-group-error-color)}.c-radio input:focus{outline:none}.c-radio input:focus+.ripple{outline:2px var(--_c-radio-group-color-active) solid}@supports selector(:focus-visible){.c-radio input:focus+.ripple{outline:none}}.c-radio input:focus-visible+.ripple{outline:2px var(--_c-radio-group-color) solid}.c-radio:not(.c-radio--disabled) .ripple:hover{background-color:var(--_c-radio-group-background-color-hover)}";
|
|
1579
|
-
|
|
1580
|
-
const CRadioGroup = class {
|
|
1581
|
-
constructor(hostRef) {
|
|
1582
|
-
registerInstance(this, hostRef);
|
|
1583
|
-
this.changeValue = createEvent(this, "changeValue", 3);
|
|
1584
|
-
if (hostRef.$hostElement$["s-ei"]) {
|
|
1585
|
-
this.internals = hostRef.$hostElement$["s-ei"];
|
|
1586
|
-
}
|
|
1587
|
-
else {
|
|
1588
|
-
this.internals = hostRef.$hostElement$.attachInternals();
|
|
1589
|
-
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
1590
|
-
}
|
|
1591
|
-
this.hideDetails = false;
|
|
1592
|
-
this.hint = '';
|
|
1593
|
-
this.inline = false;
|
|
1594
|
-
this.color = '';
|
|
1595
|
-
this.items = [];
|
|
1596
|
-
this.disabled = false;
|
|
1597
|
-
this.returnObject = false;
|
|
1598
|
-
this.required = false;
|
|
1599
|
-
this.valid = true;
|
|
1600
|
-
this.validation = 'Required field';
|
|
1601
|
-
this._containers = [];
|
|
1602
|
-
this._rippleElements = [];
|
|
1603
|
-
this._handleSlotChange = () => {
|
|
1604
|
-
this._getRadioButtons();
|
|
1605
|
-
};
|
|
1606
|
-
this._getRadioButtons = () => {
|
|
1607
|
-
const radios = this.el.querySelectorAll('c-radio');
|
|
1608
|
-
if (radios.length) {
|
|
1609
|
-
this.returnObject = false;
|
|
1610
|
-
this.items = [
|
|
1611
|
-
...Array.from(radios).map((radio) => {
|
|
1612
|
-
if (!!radio.checked) {
|
|
1613
|
-
this.value = radio.value;
|
|
1614
|
-
this.changeValue.emit(this.value);
|
|
1615
|
-
}
|
|
1616
|
-
radio.style.display = 'none';
|
|
1617
|
-
return {
|
|
1618
|
-
name: radio.textContent,
|
|
1619
|
-
value: radio.value,
|
|
1620
|
-
disabled: !!radio.disabled,
|
|
1621
|
-
};
|
|
1622
|
-
}),
|
|
1623
|
-
];
|
|
1624
|
-
}
|
|
1625
|
-
};
|
|
1626
|
-
this._getRadioButton = (item, index) => {
|
|
1627
|
-
var _a, _b, _c;
|
|
1628
|
-
const itemId = item.value.toString().replace(/[^a-zA-Z0-9-_]/g, '');
|
|
1629
|
-
const isChecked = !this.returnObject
|
|
1630
|
-
? ((_b = (_a = this.items) === null || _a === void 0 ? void 0 : _a.find((i) => i.value === item.value)) === null || _b === void 0 ? void 0 : _b.value) === this.value
|
|
1631
|
-
: ((_c = this.value) === null || _c === void 0 ? void 0 : _c.value) === item.value;
|
|
1632
|
-
const classes = {
|
|
1633
|
-
'c-radio': true,
|
|
1634
|
-
'c-radio--disabled': !!item.disabled || this.disabled,
|
|
1635
|
-
'c-radio--error': !this.valid,
|
|
1636
|
-
};
|
|
1637
|
-
return (h("label", { class: classes, id: itemId, onKeyDown: (event) => this._handleKeyDown(event, item, index) }, h("input", { type: "radio", "aria-checked": (this.value === item).toString(), "aria-disabled": (!!item.disabled || this.disabled).toString(), "aria-labelledby": itemId, disabled: !!item.disabled || this.disabled, checked: isChecked, name: CRadioGroup._uniqueId.toString(), onChange: (event) => this._select(event, item, index) }), h("span", { class: "ripple", ref: (el) => (this._containers[index] = el) }, h("span", { class: "selection" }), h("c-ripple", { ref: (el) => (this._rippleElements[index] = el) })), h("div", { class: "c-radio__label" }, item.name)));
|
|
1638
|
-
};
|
|
1639
|
-
}
|
|
1640
|
-
get _id() {
|
|
1641
|
-
return this.hostId || `radio-group_${CRadioGroup._uniqueId}`;
|
|
1642
|
-
}
|
|
1643
|
-
_handleKeyDown(event, item, index) {
|
|
1644
|
-
if (['Space', 'Enter'].includes(event.code)) {
|
|
1645
|
-
event.preventDefault();
|
|
1646
|
-
this._select(event, item, index);
|
|
1647
|
-
}
|
|
1648
|
-
}
|
|
1649
|
-
_select(event, item, index) {
|
|
1650
|
-
if (!!item.disabled || this.disabled)
|
|
1651
|
-
return;
|
|
1652
|
-
this._rippleElements[index].createRipple(event, this._containers[index], true);
|
|
1653
|
-
this.value = !this.returnObject ? item === null || item === void 0 ? void 0 : item.value : item;
|
|
1654
|
-
this.changeValue.emit(this.value);
|
|
1655
|
-
const value = !this.returnObject
|
|
1656
|
-
? this.value
|
|
1657
|
-
: this.value.value;
|
|
1658
|
-
this.internals.setFormValue(value);
|
|
1659
|
-
}
|
|
1660
|
-
componentWillLoad() {
|
|
1661
|
-
CRadioGroup._uniqueId += 1;
|
|
1662
|
-
const radios = this.el.querySelectorAll('c-radio');
|
|
1663
|
-
const checkedRadio = Array.from(radios).find((item) => item.checked);
|
|
1664
|
-
if (checkedRadio) {
|
|
1665
|
-
const value = checkedRadio.value;
|
|
1666
|
-
this.internals.setFormValue(value);
|
|
1667
|
-
}
|
|
1668
|
-
else if (this.value) {
|
|
1669
|
-
const value = !this.returnObject
|
|
1670
|
-
? this.value
|
|
1671
|
-
: this.value.value;
|
|
1672
|
-
this.internals.setFormValue(value);
|
|
1673
|
-
}
|
|
1674
|
-
}
|
|
1675
|
-
render() {
|
|
1676
|
-
const slotHasContent = !!this.el.childNodes.length;
|
|
1677
|
-
const wrapperClasses = {
|
|
1678
|
-
'c-radio-group': true,
|
|
1679
|
-
'c-radio-group--disabled': this.disabled,
|
|
1680
|
-
'c-radio-group--inline': this.inline,
|
|
1681
|
-
'c-radio-group--error': !this.valid,
|
|
1682
|
-
};
|
|
1683
|
-
return (h("div", { key: 'd2f54d06878288a72aa6942d14c01c7e6bc3df10', class: wrapperClasses, role: "radiogroup", "aria-labelledby": "c-radio-group__label" }, (!!this.label || slotHasContent) && (h("label", { key: 'c7b7bf2954d1067005e9f657e457ca3cdd41f16a', class: "c-radio-group__label" }, !!this.label && this.label, h("slot", { key: 'b370e53676b25c7dba65c5f3cbf5df51236c824c', onSlotchange: this._handleSlotChange }), this.required && h("span", { key: '18d5dc15b3250a4db72ae5cc53568b15f6bacf20', class: "required" }, "\u00A0*"))), h("div", { key: 'f55c832bf94323ef84881825ef0e8fa93ddf6a06', class: "c-radio-group__items" }, this.items.map((item, index) => this._getRadioButton(item, index))), !this.hideDetails && (h("c-message", { key: '51866d16297ee42dab390124593b30efa412b277', hint: this.hint, inputId: this._id, valid: this.valid, validation: this.validation }))));
|
|
1684
|
-
}
|
|
1685
|
-
static get formAssociated() { return true; }
|
|
1686
|
-
get el() { return getElement(this); }
|
|
1687
|
-
};
|
|
1688
|
-
CRadioGroup._uniqueId = 0;
|
|
1689
|
-
CRadioGroup.style = cRadioGroupCss;
|
|
1690
|
-
|
|
1691
|
-
const cRippleCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{pointer-events:none;user-select:none;display:block;overflow:hidden;position:absolute;top:0;left:0;border-radius:inherit;z-index:1}.c-ripple{position:absolute;pointer-events:none;border-radius:50%;transform:scale(0);background:currentColor;opacity:0}.c-ripple.animate{animation:ripple 0.5s backwards linear;opacity:0.3}@keyframes ripple{100%{opacity:0;transform:scale(5)}}";
|
|
1692
|
-
|
|
1693
|
-
const CRipple = class {
|
|
1694
|
-
constructor(hostRef) {
|
|
1695
|
-
registerInstance(this, hostRef);
|
|
1696
|
-
}
|
|
1697
|
-
async createRipple(event, parent, center = false) {
|
|
1698
|
-
this._rippleElement.classList.remove('animate');
|
|
1699
|
-
const width = parent.offsetWidth;
|
|
1700
|
-
const height = parent.offsetHeight;
|
|
1701
|
-
const rect = event.target.getBoundingClientRect();
|
|
1702
|
-
const maxDimension = this._calculateHeight(Math.max(parent.offsetWidth, parent.offsetHeight));
|
|
1703
|
-
const x = event.clientX - rect.left;
|
|
1704
|
-
const y = event.clientY - rect.top;
|
|
1705
|
-
const top = y - maxDimension / 2 + 'px';
|
|
1706
|
-
const left = x - maxDimension / 2 + 'px';
|
|
1707
|
-
const centerPosition = {
|
|
1708
|
-
top: maxDimension === height
|
|
1709
|
-
? '0px'
|
|
1710
|
-
: ((maxDimension - height) / 2) * -1 + 'px',
|
|
1711
|
-
left: maxDimension === width
|
|
1712
|
-
? '0px'
|
|
1713
|
-
: ((maxDimension - width) / 2) * -1 + 'px',
|
|
1714
|
-
};
|
|
1715
|
-
this.el.style.width = width + 'px';
|
|
1716
|
-
this.el.style.height = height + 'px';
|
|
1717
|
-
this._rippleElement.style.width = maxDimension + 'px';
|
|
1718
|
-
this._rippleElement.style.height = maxDimension + 'px';
|
|
1719
|
-
this._rippleElement.style.top = center ? centerPosition.top : top;
|
|
1720
|
-
this._rippleElement.style.left = center ? centerPosition.left : left;
|
|
1721
|
-
this._rippleElement.classList.add('animate');
|
|
1722
|
-
setTimeout(() => {
|
|
1723
|
-
this._rippleElement.classList.remove('animate');
|
|
1724
|
-
}, 500);
|
|
1725
|
-
}
|
|
1726
|
-
_calculateHeight(height) {
|
|
1727
|
-
const radius = (height / 2) * Math.sqrt(2);
|
|
1728
|
-
return radius * 2;
|
|
1729
|
-
}
|
|
1730
|
-
render() {
|
|
1731
|
-
return (h(Host, { key: '0d97a7836c85cdbcd146fe8d8329e38a89446ba6', "aria-hidden": "true" }, h("div", { key: 'b28442ba5209235b6ac197eef3257e9ded282233', ref: (el) => (this._rippleElement = el), class: "c-ripple" })));
|
|
1732
|
-
}
|
|
1733
|
-
get el() { return getElement(this); }
|
|
1734
|
-
};
|
|
1735
|
-
CRipple.style = cRippleCss;
|
|
1736
|
-
|
|
1737
|
-
const cSelectCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-select-active-color:var(--c-select-active-color, var(--c-primary-600));--_c-select-inactive-color:var(--c-select-inactive-color, var(--c-tertiary-600));--_c-select-background-color:var(--c-select-background-color, var(--c-transparent));--_c-select-text-color:var(--c-select-text-color, var(--c-text-body));--_c-select-placeholder-color:var(--c-select-placeholder-color, var(--c-tertiary-500));--_c-select-option-background-color:var(--c-select-option-background-color, var(--c-white));--_c-select-option-background-color-hover:var(--c-select-option-background-color-hover, var(--c-primary-100));--_c-select-option-text-color:var(--c-select-option-text-color, var(--c-text-body));--_c-select-shadow-active-color:var(--c-select-shadow-active-color, var(--_c-select-active-color));--_c-select-shadow-background-color:var(--c-select-shadow-background-color, var(--c-white));--_c-select-shadow-text-color:var(--c-select-shadow-text-color, var(--_c-select-text-color));--_c-select-shadow-placeholder-color:var(--c-select-shadow-placeholder-color, var(--_c-select-placeholder-color));--_c-select-label-color:var(--c-select-label-color, var(--_c-select-text-color));--_c-input-active-color:var(--_c-select-active-color);--_c-input-inactive-color:var(--_c-select-inactive-color);--_c-input-background-color:var(--_c-select-background-color);--_c-input-text-color:var(--_c-select-text-color);--_c-input-label-color:var(--_c-select-label-color);--_c-input-placeholder-color:var(--_c-select-placeholder-color);--_c-input-shadow-active-color:var(--_c-select-shadow-active-color);--_c-input-shadow-background-color:var(--_c-select-shadow-background-color);--_c-input-shadow-text-color:var(--_c-select-shadow-text-color);--_c-input-shadow-placeholder-color:var(--_c-select-shadow-placeholder-color)}:host{display:block;cursor:text}.c-input-menu__chevron{fill:currentColor;transform:rotate(0deg);transition:transform 0.3s ease-in-out}.c-input-menu__chevron--active{transform:rotate(180deg)}.c-input-menu__input{width:100%;display:flex;justify-items:stretch}.c-input-menu__selection{display:none;pointer-events:none}.c-input-menu__selection--show{align-items:center;display:flex;width:100%;color:var(--_c-select-active-color)}.c-input-menu__item-wrapper{position:absolute;width:100%;top:44px;z-index:10;margin-left:calc(var(--_c-input-label-position) * -1)}.c-input-menu__item-wrapper--shadow{top:47px}.c-input-menu__items{position:absolute;background-color:var(--_c-select-option-background-color);min-width:calc(100% + 24px);box-shadow:0 8px 16px 0 rgba(0, 0, 0, 0.2);z-index:10;user-select:none;border-radius:4px;margin:0 -12px;overflow-y:scroll;list-style:none;padding:0}.c-input-menu__items--hidden{display:none}.c-input-menu__items li{cursor:pointer;display:flex;min-height:48px;padding:0 12px;transition:background-color 0.3s;font-size:14px;align-items:center;justify-content:flex-start;color:var(--_c-select-option-text-color)}.c-input-menu__items li.disabled{background-color:var(--c-tertiary-100);filter:grayscale(1) opacity(0.6);cursor:default}.c-input-menu__items li.disabled:hover{background-color:var(--c-tertiary-100)}.c-input-menu__items li.dense{padding:10px 14px}.c-input-menu__items li:hover{background-color:var(--_c-select-option-background-color-hover)}.c-input-menu__items li[aria-selected=true]{background-color:var(--_c-select-option-background-color-hover);box-shadow:inset 0 0 0 1px var(--_c-select-active-color);border-radius:4px;backface-visibility:hidden;transform:translate3d(0, 0, 0)}.c-input-menu__items li.none{color:rgba(0, 0, 0, 0.5)}.c-input-menu__items--empty li{color:var(--c-text-system);cursor:default;gap:8px;pointer-events:none}.c-input-menu__items--empty li svg{fill:var(--c-warning-600);height:18px;width:18px}input{max-height:32px;padding:8px 0;background-color:transparent;border:none;color:var(--c-text-body);flex:1 1 auto;font-family:var(--c-font-family);font-size:16px;line-height:20px;max-width:100%;min-width:0;width:100%;pointer-events:none}input:focus,input:active{outline:none}input::-ms-reveal{display:none}svg{fill:currentColor;height:22px;width:22px}.c-input--disabled{color:var(--c-tertiary-400)}.c-input:focus-within{color:var(--c-primary-600)}.c-input--error{color:var(--c-error-600)}.c-input--error:focus-within{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}";
|
|
1738
|
-
|
|
1739
|
-
const CSelect = class {
|
|
1740
|
-
constructor(hostRef) {
|
|
1741
|
-
registerInstance(this, hostRef);
|
|
1742
|
-
this.changeValue = createEvent(this, "changeValue", 3);
|
|
1743
|
-
if (hostRef.$hostElement$["s-ei"]) {
|
|
1744
|
-
this.internals = hostRef.$hostElement$["s-ei"];
|
|
1745
|
-
}
|
|
1746
|
-
else {
|
|
1747
|
-
this.internals = hostRef.$hostElement$.attachInternals();
|
|
1748
|
-
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
1749
|
-
}
|
|
1750
|
-
this.items = [];
|
|
1751
|
-
this.value = null;
|
|
1752
|
-
this.clearable = false;
|
|
1753
|
-
this.disabled = false;
|
|
1754
|
-
this.labelOnTop = false;
|
|
1755
|
-
this.placeholder = '';
|
|
1756
|
-
this.hideDetails = false;
|
|
1757
|
-
this.hint = '';
|
|
1758
|
-
this.loading = false;
|
|
1759
|
-
this.required = false;
|
|
1760
|
-
this.valid = true;
|
|
1761
|
-
this.validate = false;
|
|
1762
|
-
this.validateOnBlur = false;
|
|
1763
|
-
this.validation = 'Required field';
|
|
1764
|
-
this.shadow = false;
|
|
1765
|
-
this.returnObject = false;
|
|
1766
|
-
this.itemsPerPage = 6;
|
|
1767
|
-
this.currentIndex = null;
|
|
1768
|
-
this.dropdownVisible = false;
|
|
1769
|
-
this.statusText = '';
|
|
1770
|
-
this.optionElementsExist = false;
|
|
1771
|
-
this._debounce = null;
|
|
1772
|
-
this._lastKeyPressTime = null;
|
|
1773
|
-
this._searchString = '';
|
|
1774
|
-
this._toggleDropdown = (event) => {
|
|
1775
|
-
var _a;
|
|
1776
|
-
event.stopPropagation();
|
|
1777
|
-
if (this.dropdownVisible) {
|
|
1778
|
-
(_a = this._dropdownElement) === null || _a === void 0 ? void 0 : _a.close();
|
|
1779
|
-
return;
|
|
1780
|
-
}
|
|
1781
|
-
this._dropdownElement.open();
|
|
1782
|
-
};
|
|
1783
|
-
this._onButtonKeyDown = (src, event) => {
|
|
1784
|
-
event.stopPropagation();
|
|
1785
|
-
if (event.key !== 'Tab')
|
|
1786
|
-
event.preventDefault();
|
|
1787
|
-
if (['Enter', ' '].includes(event.key)) {
|
|
1788
|
-
if (src === 'chevron') {
|
|
1789
|
-
this._toggleDropdown(event);
|
|
1790
|
-
return;
|
|
1791
|
-
}
|
|
1792
|
-
this._onReset(event);
|
|
1793
|
-
requestAnimationFrame(() => {
|
|
1794
|
-
this._inputElement.focus();
|
|
1795
|
-
});
|
|
1796
|
-
}
|
|
1797
|
-
};
|
|
1798
|
-
this._onSlotChange = () => {
|
|
1799
|
-
this.optionElements = this.el.querySelectorAll('c-option');
|
|
1800
|
-
if (this.optionElements.length && !this.optionElementsExist) {
|
|
1801
|
-
this.optionElementsExist = true;
|
|
1802
|
-
}
|
|
1803
|
-
const selection = Array.from(this.optionElements).find((option) => option.selected);
|
|
1804
|
-
if (selection) {
|
|
1805
|
-
this.value = this.returnObject
|
|
1806
|
-
? { name: selection.name, value: selection.value }
|
|
1807
|
-
: selection.value;
|
|
1808
|
-
this.changeValue.emit(this.value);
|
|
1809
|
-
this.internals.setFormValue(selection.value.toString());
|
|
1810
|
-
}
|
|
1811
|
-
};
|
|
1812
|
-
this._onReset = (event) => {
|
|
1813
|
-
event.stopPropagation();
|
|
1814
|
-
this.changeValue.emit(null);
|
|
1815
|
-
this.internals.setFormValue(null);
|
|
1816
|
-
this.currentIndex = null;
|
|
1817
|
-
this._selectionElement.classList.remove('c-input-menu__selection--show');
|
|
1818
|
-
this._selectionElement.replaceChildren(null);
|
|
1819
|
-
this._cInputElement.reset();
|
|
1820
|
-
this._inputElement.focus();
|
|
1821
|
-
this._dropdownElement.updateList(true);
|
|
1822
|
-
};
|
|
1823
|
-
this._onInputFocus = () => {
|
|
1824
|
-
if (this.disabled)
|
|
1825
|
-
return;
|
|
1826
|
-
this._updateStatusText();
|
|
1827
|
-
};
|
|
1828
|
-
}
|
|
1829
|
-
get _id() {
|
|
1830
|
-
return this.hostId || `select_${CSelect._uniqueId}`;
|
|
1831
|
-
}
|
|
1832
|
-
get _items() {
|
|
1833
|
-
return this.optionElementsExist ? this.optionElements : this.items;
|
|
1834
|
-
}
|
|
1835
|
-
get _value() {
|
|
1836
|
-
var _a, _b, _c, _d;
|
|
1837
|
-
if (!this.value)
|
|
1838
|
-
return '';
|
|
1839
|
-
if (!this.returnObject &&
|
|
1840
|
-
!['number', 'string'].includes(typeof this.value)) {
|
|
1841
|
-
console.warn(`[C-SELECT] The value should be of type 'number' or 'string' when return-object is not used.`);
|
|
1842
|
-
return '';
|
|
1843
|
-
}
|
|
1844
|
-
if (!this.returnObject &&
|
|
1845
|
-
['number', 'string'].includes(typeof this.value)) {
|
|
1846
|
-
return (_b = (_a = Array.from(this._items)) === null || _a === void 0 ? void 0 : _a.find((item) => item.value === this.value)) === null || _b === void 0 ? void 0 : _b.name;
|
|
1847
|
-
}
|
|
1848
|
-
return (_d = (_c = Array.from(this._items)) === null || _c === void 0 ? void 0 : _c.find((item) => item.value === this.value.value)) === null || _d === void 0 ? void 0 : _d.name;
|
|
1849
|
-
}
|
|
1850
|
-
async reset() {
|
|
1851
|
-
this.changeValue.emit(null);
|
|
1852
|
-
this.internals.setFormValue(null);
|
|
1853
|
-
this._dropdownElement.updateList(true);
|
|
1854
|
-
}
|
|
1855
|
-
handleKeyDown(event) {
|
|
1856
|
-
var _a, _b, _c;
|
|
1857
|
-
const alphanumeric = /^[0-9a-zA-Z ]+$/;
|
|
1858
|
-
if (this.disabled)
|
|
1859
|
-
return;
|
|
1860
|
-
if (event.key.match(alphanumeric) && event.key.length === 1) {
|
|
1861
|
-
if (!this.dropdownVisible) {
|
|
1862
|
-
this._dropdownElement.open();
|
|
1863
|
-
}
|
|
1864
|
-
requestAnimationFrame(() => {
|
|
1865
|
-
if (Date.now() - this._lastKeyPressTime > 3000) {
|
|
1866
|
-
this._searchString = event.key;
|
|
1867
|
-
}
|
|
1868
|
-
else {
|
|
1869
|
-
this._searchString += event.key;
|
|
1870
|
-
}
|
|
1871
|
-
this._lastKeyPressTime = Date.now();
|
|
1872
|
-
const selectionIndex = this._getSelectionIndex(this._searchString);
|
|
1873
|
-
this.currentIndex = selectionIndex >= 0 ? selectionIndex : null;
|
|
1874
|
-
return;
|
|
1875
|
-
});
|
|
1876
|
-
}
|
|
1877
|
-
if (event.key === 'Escape') {
|
|
1878
|
-
(_a = this._dropdownElement) === null || _a === void 0 ? void 0 : _a.close();
|
|
1879
|
-
this._inputElement.focus();
|
|
1880
|
-
if (!this.value) {
|
|
1881
|
-
this.currentIndex = null;
|
|
1882
|
-
}
|
|
1883
|
-
return;
|
|
1884
|
-
}
|
|
1885
|
-
if (event.key === 'Tab') {
|
|
1886
|
-
(_b = this._dropdownElement) === null || _b === void 0 ? void 0 : _b.close();
|
|
1887
|
-
}
|
|
1888
|
-
if (event.key === 'ArrowDown') {
|
|
1889
|
-
event.preventDefault();
|
|
1890
|
-
if (!this._items.length)
|
|
1891
|
-
return;
|
|
1892
|
-
if (!this.dropdownVisible) {
|
|
1893
|
-
this._dropdownElement.open();
|
|
1894
|
-
if (this.value) {
|
|
1895
|
-
this.currentIndex = this._getSelectionIndex(this._value);
|
|
1896
|
-
}
|
|
1897
|
-
return;
|
|
1898
|
-
}
|
|
1899
|
-
requestAnimationFrame(() => {
|
|
1900
|
-
this.currentIndex =
|
|
1901
|
-
this.currentIndex === null
|
|
1902
|
-
? 0
|
|
1903
|
-
: Math.min(this.currentIndex + 1, this._items.length - 1);
|
|
1904
|
-
this._dropdownElement.focusItem(this.currentIndex);
|
|
1905
|
-
});
|
|
1906
|
-
}
|
|
1907
|
-
if (event.key === 'ArrowUp') {
|
|
1908
|
-
event.preventDefault();
|
|
1909
|
-
if (this.currentIndex === 0) {
|
|
1910
|
-
(_c = this._dropdownElement) === null || _c === void 0 ? void 0 : _c.close();
|
|
1911
|
-
this._inputElement.focus();
|
|
1912
|
-
}
|
|
1913
|
-
if (!this.dropdownVisible) {
|
|
1914
|
-
this._dropdownElement.open();
|
|
1915
|
-
if (this.value) {
|
|
1916
|
-
this.currentIndex = this._getSelectionIndex(this._value);
|
|
1917
|
-
}
|
|
1918
|
-
return;
|
|
1919
|
-
}
|
|
1920
|
-
this.currentIndex =
|
|
1921
|
-
this.currentIndex === null
|
|
1922
|
-
? this._items.length - 1
|
|
1923
|
-
: Math.max(this.currentIndex - 1, 0);
|
|
1924
|
-
this._dropdownElement.focusItem(this.currentIndex);
|
|
1925
|
-
}
|
|
1926
|
-
if (event.key === ' ') {
|
|
1927
|
-
event.preventDefault();
|
|
1928
|
-
}
|
|
1929
|
-
if (event.key === 'Enter') {
|
|
1930
|
-
event.preventDefault();
|
|
1931
|
-
if (this.currentIndex === null)
|
|
1932
|
-
return;
|
|
1933
|
-
this._dropdownElement.selectItem(this.currentIndex);
|
|
1934
|
-
}
|
|
1935
|
-
if (event.key === 'Home' && this.dropdownVisible) {
|
|
1936
|
-
this.currentIndex = 0;
|
|
1937
|
-
}
|
|
1938
|
-
if (event.key === 'End' && this.dropdownVisible) {
|
|
1939
|
-
this.currentIndex = this._items.length - 1;
|
|
1940
|
-
}
|
|
1941
|
-
}
|
|
1942
|
-
onDropdownStateChange(event) {
|
|
1943
|
-
const isOpen = event.detail;
|
|
1944
|
-
this.dropdownVisible = isOpen;
|
|
1945
|
-
}
|
|
1946
|
-
onValueChanged(value) {
|
|
1947
|
-
var _a;
|
|
1948
|
-
if (!value) {
|
|
1949
|
-
if (this.optionAsSelection)
|
|
1950
|
-
(_a = this._selectionElement) === null || _a === void 0 ? void 0 : _a.replaceChildren();
|
|
1951
|
-
return;
|
|
1952
|
-
}
|
|
1953
|
-
this._selectOption(this.returnObject ? value : { name: value, value: value });
|
|
1954
|
-
}
|
|
1955
|
-
onSelectOption(event) {
|
|
1956
|
-
var _a, _b;
|
|
1957
|
-
if (this.returnObject &&
|
|
1958
|
-
this.value.value === event.detail.value) {
|
|
1959
|
-
(_a = this._dropdownElement) === null || _a === void 0 ? void 0 : _a.close();
|
|
1960
|
-
}
|
|
1961
|
-
if (!this.returnObject && this.value === event.detail.value) {
|
|
1962
|
-
(_b = this._dropdownElement) === null || _b === void 0 ? void 0 : _b.close();
|
|
1963
|
-
}
|
|
1964
|
-
this._setValue(event.detail);
|
|
1965
|
-
}
|
|
1966
|
-
_getSelectionIndex(searchString) {
|
|
1967
|
-
return Array.from(this._items).findIndex((i) => i.name.toLowerCase().startsWith(searchString.toLowerCase()));
|
|
1968
|
-
}
|
|
1969
|
-
_selectOption({ value, name }) {
|
|
1970
|
-
var _a, _b, _c;
|
|
1971
|
-
(_a = this._dropdownElement) === null || _a === void 0 ? void 0 : _a.close();
|
|
1972
|
-
const selection = this._setCurrentIndex({ name, value });
|
|
1973
|
-
if (this.optionElementsExist && this.optionAsSelection && selection) {
|
|
1974
|
-
const clone = selection.cloneNode(true);
|
|
1975
|
-
this._selectionElement.classList.add('c-input-menu__selection--show');
|
|
1976
|
-
this._selectionElement.replaceChildren(clone);
|
|
1977
|
-
}
|
|
1978
|
-
(_b = this._dropdownElement) === null || _b === void 0 ? void 0 : _b.updateList();
|
|
1979
|
-
(_c = this._inputElement) === null || _c === void 0 ? void 0 : _c.focus();
|
|
1980
|
-
}
|
|
1981
|
-
_setValue({ value, name }) {
|
|
1982
|
-
this.value = this.returnObject ? { name, value } : value;
|
|
1983
|
-
this.changeValue.emit(this.value);
|
|
1984
|
-
this.internals.setFormValue(value);
|
|
1985
|
-
}
|
|
1986
|
-
_setCurrentIndex({ value, name }) {
|
|
1987
|
-
let selection = null;
|
|
1988
|
-
Array.from(this._items).forEach((item, index) => {
|
|
1989
|
-
const selected = item.value === value && item.name === name;
|
|
1990
|
-
if (this.optionElementsExist) {
|
|
1991
|
-
item.selected = selected;
|
|
1992
|
-
}
|
|
1993
|
-
if (selected) {
|
|
1994
|
-
this.currentIndex = index;
|
|
1995
|
-
selection = item;
|
|
1996
|
-
}
|
|
1997
|
-
});
|
|
1998
|
-
return selection;
|
|
1999
|
-
}
|
|
2000
|
-
_updateInput() {
|
|
2001
|
-
this._dropdownElement.open();
|
|
2002
|
-
this._dropdownElement.updateList();
|
|
2003
|
-
}
|
|
2004
|
-
_updateStatusText() {
|
|
2005
|
-
if (this._debounce !== null) {
|
|
2006
|
-
clearTimeout(this._debounce);
|
|
2007
|
-
this._debounce = null;
|
|
2008
|
-
}
|
|
2009
|
-
this._debounce = window.setTimeout(() => {
|
|
2010
|
-
this.statusText = '';
|
|
2011
|
-
if (this.currentIndex === null) {
|
|
2012
|
-
this.statusText = this._items.length
|
|
2013
|
-
? `${this._items.length} option${this._items.length !== 1 ? 's' : ''} available`
|
|
2014
|
-
: 'No options available';
|
|
2015
|
-
}
|
|
2016
|
-
const ending = !!this._items.length
|
|
2017
|
-
? ', navigate using the up and down arrows'
|
|
2018
|
-
: '';
|
|
2019
|
-
this._dropdownElement.setStatusText(this.statusText + ending);
|
|
2020
|
-
this._debounce = null;
|
|
2021
|
-
}, 1400);
|
|
2022
|
-
}
|
|
2023
|
-
componentWillLoad() {
|
|
2024
|
-
CSelect._uniqueId += 1;
|
|
2025
|
-
this._inputId =
|
|
2026
|
-
'input_' +
|
|
2027
|
-
(this.hostId || this.label || this.placeholder).replace(/[^a-zA-Z0-9-_]/g, '');
|
|
2028
|
-
}
|
|
2029
|
-
componentDidLoad() {
|
|
2030
|
-
if (!this.value)
|
|
2031
|
-
return;
|
|
2032
|
-
const selection = Array.from(this._items).find((item) => {
|
|
2033
|
-
if (this.returnObject) {
|
|
2034
|
-
return (item.name === this.value.name &&
|
|
2035
|
-
item.value === this.value.value);
|
|
2036
|
-
}
|
|
2037
|
-
return item.value === this.value;
|
|
2038
|
-
});
|
|
2039
|
-
if (selection) {
|
|
2040
|
-
this._setCurrentIndex({
|
|
2041
|
-
name: selection.name,
|
|
2042
|
-
value: selection.value.toString(),
|
|
2043
|
-
});
|
|
2044
|
-
}
|
|
2045
|
-
}
|
|
2046
|
-
_renderLoader() {
|
|
2047
|
-
return h("c-spinner", { color: "var(--_c-autocomplete-active-color)", size: 20 });
|
|
2048
|
-
}
|
|
2049
|
-
_renderChevron() {
|
|
2050
|
-
const classes = {
|
|
2051
|
-
'c-input-menu__chevron': true,
|
|
2052
|
-
'c-input-menu__chevron--active': this.dropdownVisible,
|
|
2053
|
-
};
|
|
2054
|
-
return (h("c-icon-button", { size: "x-small", class: classes, disabled: this.disabled, text: true, onClick: (event) => this._toggleDropdown(event), onKeyDown: (event) => this._onButtonKeyDown('chevron', event) }, h("c-icon", { path: mdiChevronDown, size: 24, key: "c-select--chevron-icon" })));
|
|
2055
|
-
}
|
|
2056
|
-
_renderInputElement() {
|
|
2057
|
-
var _a;
|
|
2058
|
-
return (h("div", { class: "c-input-menu__input" }, h("input", { type: "text", readonly: true, ref: (el) => (this._inputElement = el), "aria-expanded": this.dropdownVisible.toString(), "aria-owns": this._inputId + '-items', "aria-autocomplete": "list", autocomplete: "off", class: "c-input__input", role: "combobox", value: this._value, name: (_a = this.name) !== null && _a !== void 0 ? _a : null, disabled: this.disabled, onInput: () => this._updateInput(), onFocus: () => this._onInputFocus() }), h("div", { ref: (el) => (this._selectionElement = el), class: "c-input-menu__selection" })));
|
|
2059
|
-
}
|
|
2060
|
-
_renderReset() {
|
|
2061
|
-
return (h("c-icon-button", { "aria-label": "", size: "x-small", disabled: this.disabled, text: true, onClick: (event) => this._onReset(event), onKeyDown: (event) => this._onButtonKeyDown('reset', event) }, h("c-icon", { path: mdiClose, size: 20, key: "c-select--reset-icon" })));
|
|
2062
|
-
}
|
|
2063
|
-
render() {
|
|
2064
|
-
const itemType = this.optionElementsExist ? 'option' : 'item';
|
|
2065
|
-
return (h(Host, { key: '20dccd7cf894dd0bf68363aeff41b74ac4f92a07' }, h("c-dropdown", { key: '8728a250a33069a1d0161f3f6abba12f8eb3cf4b', ref: (el) => (this._dropdownElement = el), id: `${this._id}-dropdown`, index: this.currentIndex, "items-per-page": this.itemsPerPage, "dropdown-item-type": itemType, items: this._items, parent: this.el, type: "select" }, h("c-input", { key: '1a74b539fb5d34c1ade1ec5f41df8d7ded28bf6e', slot: "default", ref: (el) => (this._cInputElement = el), active: this.dropdownVisible, disabled: this.disabled, "hide-details": this.hideDetails, hint: this.hint, id: this.hostId, "input-id": this._inputId, label: this.label, "label-on-top": this.labelOnTop, name: this.name, placeholder: this.placeholder, required: this.required, shadow: this.shadow, valid: this.valid, validate: this.validate, "validate-on-blur": this.validateOnBlur, validation: this.validation, value: this.value, variant: "select", onClick: () => !this.disabled && this._dropdownElement.open() }, h("slot", { key: '7acfb9f02f4c3898e4a1a0321384881f2b2e2f35', name: "pre", slot: "pre" }), h("div", { key: 'a9c6c0b04bd72e8d47eb29a576a9546ab7b28662', class: "c-input__content" }, this._renderInputElement(), this.loading && this._renderLoader(), !this.loading &&
|
|
2066
|
-
this.value &&
|
|
2067
|
-
this.clearable &&
|
|
2068
|
-
this._renderReset(), !this.loading &&
|
|
2069
|
-
(!this.value || !this.clearable) &&
|
|
2070
|
-
this._renderChevron(), h("slot", { key: '7522681c6ad78399a851d3b6934041753080ab5b', onSlotchange: () => this._onSlotChange() })), h("slot", { key: '897920c1884bf2eebb9976925db4c8f6b51c2d06', name: "post", slot: "post" })))));
|
|
2071
|
-
}
|
|
2072
|
-
static get formAssociated() { return true; }
|
|
2073
|
-
get el() { return getElement(this); }
|
|
2074
|
-
static get watchers() { return {
|
|
2075
|
-
"value": ["onValueChanged"]
|
|
2076
|
-
}; }
|
|
2077
|
-
};
|
|
2078
|
-
CSelect._uniqueId = 0;
|
|
2079
|
-
CSelect.style = cSelectCss;
|
|
2080
|
-
|
|
2081
|
-
const cSideNavigationCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-side-navigation-background-color:var(\n --c-side-navigation-background-color,\n var(--c-primary-600)\n );--_c-side-navigation-overlay-color:var(\n --c-side-navigation-overlay-color,\n rgba(var(--c-black), 0.5)\n )}:host(.autoheight){height:calc(100vh - 60px);overflow-y:auto;overflow-x:hidden}:host(.desktop){background-color:var(--_c-side-navigation-background-color);display:flex;min-width:clamp(300px, 20vw, 340px)}.c-side-navigation{background-color:var(--_c-side-navigation-background-color);display:flex;flex-flow:column nowrap;flex:1;gap:4px;min-height:fit-content;padding:24px 0 24px 24px;position:relative;transition:transform 0.3s ease;width:100%;z-index:8;max-height:100%;overflow-y:auto}.c-side-navigation__wrapper{display:flex;flex-direction:column;flex-shrink:0;min-height:100%}.c-side-navigation__wrapper--mobile{min-height:calc(100% - 60px)}.c-side-navigation__content{display:flex;flex-direction:column;flex:1 2 260px;width:320px}.c-side-navigation__content--mobile{height:100vh;max-width:320px;overflow-y:scroll;position:fixed;right:0;top:0;transition:transform 0.2s cubic-bezier(0.25, 0.8, 0.5, 1);transform:translateX(0%);z-index:999}.c-side-navigation__content--mobile.c-side-navigation__content--hidden{transform:translateX(100%)}.c-side-navigation__content--mobile>nav{min-height:auto;padding-top:0}.c-side-navigation__burger{display:flex;justify-content:flex-end;padding:8px 16px}.c-side-navigation ul{display:flex;flex-flow:column nowrap;gap:8px;list-style:none;margin:0;padding:0}.autoheight>nav{height:calc(100vh - 60px);overflow-x:hidden;overflow-y:auto}.vertical-spacer{flex:1;margin-bottom:8px}.c-overlay{background:var(--_c-side-navigation-overlay-color);backdrop-filter:blur(4px);inset:0;position:fixed;z-index:998}@keyframes fade-in{0%{opacity:0}100%{opacity:1}}.c-fade-in{animation-duration:0.5s;animation-iteration-count:1;animation-name:fade-in;z-index:997}c-side-navigation-item,c-sub-navigation-item{display:contents}.visuallyhidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}";
|
|
2082
|
-
|
|
2083
|
-
const CSideNavigation = class {
|
|
2084
|
-
constructor(hostRef) {
|
|
2085
|
-
registerInstance(this, hostRef);
|
|
2086
|
-
this.menuVisible = false;
|
|
2087
|
-
}
|
|
2088
|
-
handleChange(event) {
|
|
2089
|
-
const slotted = this.host.querySelectorAll('c-side-navigation-item');
|
|
2090
|
-
const target = event.target;
|
|
2091
|
-
const { active } = target;
|
|
2092
|
-
slotted.forEach((item) => {
|
|
2093
|
-
if (item.querySelector('c-sub-navigation-item[slot="sub-item"]')) {
|
|
2094
|
-
item.active = false;
|
|
2095
|
-
}
|
|
2096
|
-
});
|
|
2097
|
-
if (target.querySelector('[slot="sub-item"]')) {
|
|
2098
|
-
target.active = !active;
|
|
2099
|
-
}
|
|
2100
|
-
else {
|
|
2101
|
-
target.active = true;
|
|
2102
|
-
}
|
|
2103
|
-
}
|
|
2104
|
-
_assignSubItemSlots() {
|
|
2105
|
-
const subItems = this.host.querySelectorAll('c-sub-navigation-item');
|
|
2106
|
-
Array.from(subItems).forEach((item) => {
|
|
2107
|
-
item.setAttribute('slot', 'sub-item');
|
|
2108
|
-
});
|
|
2109
|
-
}
|
|
2110
|
-
componentWillLoad() {
|
|
2111
|
-
this._assignSubItemSlots();
|
|
2112
|
-
}
|
|
2113
|
-
componentDidLoad() {
|
|
2114
|
-
const el = document.querySelector('body');
|
|
2115
|
-
['click', 'keyup'].forEach((eventType) => {
|
|
2116
|
-
el.addEventListener(eventType, (e) => {
|
|
2117
|
-
if (e.target.matches('c-navigation-button')) {
|
|
2118
|
-
if (eventType === 'click') {
|
|
2119
|
-
this.menuVisible = !this.menuVisible;
|
|
2120
|
-
}
|
|
2121
|
-
else if (e instanceof KeyboardEvent && e.key === 'Enter') {
|
|
2122
|
-
this.menuVisible = !this.menuVisible;
|
|
2123
|
-
}
|
|
2124
|
-
}
|
|
2125
|
-
});
|
|
2126
|
-
});
|
|
2127
|
-
const addStyles = (el, styles) => Object.assign(el.style, styles);
|
|
2128
|
-
addStyles(this._containerElement, this.styles);
|
|
2129
|
-
}
|
|
2130
|
-
_closeMenu() {
|
|
2131
|
-
this.menuVisible = false;
|
|
2132
|
-
}
|
|
2133
|
-
render() {
|
|
2134
|
-
const classes = {
|
|
2135
|
-
'c-side-navigation': true,
|
|
2136
|
-
'hide-menu': !this.menuVisible,
|
|
2137
|
-
mobile: !!this.mobile,
|
|
2138
|
-
desktop: !this.mobile,
|
|
2139
|
-
};
|
|
2140
|
-
const containerClasses = {
|
|
2141
|
-
'c-side-navigation__content': true,
|
|
2142
|
-
'c-side-navigation__content--hidden': !this.menuVisible,
|
|
2143
|
-
'c-side-navigation__content--mobile': !!this.mobile,
|
|
2144
|
-
'c-side-navigation__content--desktop': !this.mobile,
|
|
2145
|
-
};
|
|
2146
|
-
return (h(Host, { key: 'cf2fa277c8ccdac4101f31644e4db5068fc05db7', class: { desktop: !this.mobile } }, h("div", { key: '60e6f8dc715dad39d9a83057bb561135027e625c', class: containerClasses }, h("nav", { key: '3ea6eefa300e4e7207ee9ea6f33d832b73089fec', ref: (el) => (this._containerElement = el), class: classes, role: "menubar" }, this.mobile && (h("div", { key: '72c1fca035c1daa2f3343bc0be73121db17f8dde', class: "c-side-navigation__burger" }, h("c-icon-button", { key: '3bf4f02c9413244f457b34e46014ca2fc2a7e5d5', text: true, inverted: true, onClick: () => this._closeMenu() }, h("span", { key: '717ec7f476ead0e4f587ff0f5e605d5f253b2313', class: "visuallyhidden" }, "Close sidemenu"), h("c-icon", { key: '5618860c176a3cdab9d9f61296fa4a2fbff7abe2', path: mdiArrowRight })))), h("div", { key: 'a913ef3f51e33c4a3c75d9ba2e1b20bb95707293', class: {
|
|
2147
|
-
'c-side-navigation__wrapper': true,
|
|
2148
|
-
'c-side-navigation__wrapper--mobile': !!this.mobile,
|
|
2149
|
-
} }, h("slot", { key: '5f49917e05cce01e40a4ee956616b6a906fc5a47' }), h("div", { key: 'ef2d8c5a734e3c03685259f2afc906d4a91c22b4', class: "vertical-spacer" }), h("slot", { key: '63e03f24f76aa310f674ded85a0be81d2fa8a432', name: "bottom" })))), this.menuVisible && this.mobile && (h("div", { key: '3a51049487f8b8bad81e0cd8760a1bd12ed8af78', class: "c-overlay c-fade-in", onClick: () => this._closeMenu() }))));
|
|
2150
|
-
}
|
|
2151
|
-
get host() { return getElement(this); }
|
|
2152
|
-
};
|
|
2153
|
-
CSideNavigation.style = cSideNavigationCss;
|
|
2154
|
-
|
|
2155
|
-
const cSideNavigationItemCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host(c-side-navigation-item){--_c-side-navigation-item-background-color-active:var(--c-side-navigation-item-background-color-active, var(--c-primary-200));--_c-side-navigation-item-background-color-hover:var(--c-side-navigation-item-background-color-hover, var(--c-primary-500));--_c-side-navigation-item-background-color:var(--c-side-navigation-item-background-color, var(--c-transparent));--_c-side-navigation-item-outline-color:var(--c-side-navigation-item-outline-color, var(--c-white));--_c-side-navigation-item-text-color-active:var(--c-side-navigation-item-text-color-active, var(--c-primary-600));--_c-side-navigation-item-text-color:var(--c-side-navigation-item-text-color, var(--c-white));--_c-side-navigation-item-sub-item-background-color-active:var(--c-side-navigation-item-sub-item-background-color-active, var(--c-white));--_c-side-navigation-item-sub-item-background-color-hover:var(--c-side-navigation-item-sub-item-background-color-hover, var(--c-primary-100));--_c-side-navigation-item-sub-item-background-color:var(--c-side-navigation-item-sub-item-background-color, var(--c-white));--_c-side-navigation-item-sub-item-outline-color:var(--c-side-navigation-item-sub-item-outline-color, var(--c-primary-600));--_c-side-navigation-item-sub-item-text-color-active:var(--c-side-navigation-item-sub-item-text-color-active, var(--c-primary-600));--_c-side-navigation-item-sub-item-text-color:var(--c-side-navigation-item-sub-item-text-color, var(--c-primary-600))}:host(.c-side-navigation-item)>div{align-items:center;backface-visibility:hidden;border-radius:4px 0 0 4px;background-color:var(--_c-side-navigation-item-background-color);color:var(--_c-side-navigation-item-text-color);cursor:pointer;display:grid;grid-template-columns:1fr;font-weight:400;overflow:hidden;position:relative;transform:translate3d(0, 0, 0);user-select:none}:host(.c-side-navigation-item:hover)>div{background-color:var(--_c-side-navigation-item-background-color-hover)}:host(.c-side-navigation-item:focus)>div{outline:none}:host(.c-side-navigation-item:focus-visible)>div{outline:2px var(--_c-side-navigation-item-outline-color) solid;outline-offset:2px}:host(.c-side-navigation-item.active)>div{background-color:var(--_c-side-navigation-item-background-color-active);color:var(--_c-side-navigation-item-text-color-active)}:host(.c-side-navigation-item.active)>div .svg{fill:var(--_c-side-navigation-item-text-color-active);transform:rotate(90deg)}:host(.c-side-navigation-item.active)>div .c-side-navigation-item__header{color:var(--_c-side-navigation-item-text-color-active)}.c-side-navigation-item__header{align-items:center;color:var(--_c-side-navigation-item-text-color);display:grid;gap:8px;grid-template-columns:1fr;min-height:46px;padding:8px 12px;text-decoration:none}.c-side-navigation-item__header--expandable{grid-template-columns:auto 1fr}.c-side-navigation-item__slot{align-items:center;display:flex;gap:8px;line-height:normal;max-width:100%}:host(.c-side-navigation-item--parent.active)>div{padding-bottom:4px}::slotted(span),::slotted(c-icon){font-size:20px}.styleMain{padding-left:16px}.sub-item{height:0;overflow-y:hidden;transition:all 500ms ease;width:100%}.subnavactive{height:max-content;width:100%}.svg{align-self:center;fill:var(--_c-side-navigation-item-text-color);transition:transform 0.3s ease}:host>div.active .svg{fill:var(--_c-side-navigation-item-text-color-active);transform:rotate(90deg)}.svg.hidden{opacity:0}.middle{display:flex;height:100%;align-items:center}:host([slot=sub-item]){--_c-side-navigation-item-text-color:var(--c-side-navigation-item-text-color, var(--_c-side-navigation-item-sub-item-text-color));--_c-side-navigation-item-background-color:var(--c-side-navigation-item-background-color, var(--_c-side-navigation-item-sub-item-background-color));--_c-side-navigation-item-background-color-hover:var(--c-side-navigation-item-background-color-hover, var(--_c-side-navigation-item-sub-item-background-color-hover));--_c-side-navigation-item-text-color-active:var(--c-side-navigation-item-text-color-active, var(--_c-side-navigation-item-sub-item-text-color-active));--_c-side-navigation-item-background-color-active:var(--c-side-navigation-item-background-color-active, var(--_c-side-navigation-item-sub-item-background-color-active));--_c-side-navigation-item-outline-color:var(--c-side-navigation-item-outline-color, var(--_c-side-navigation-item-sub-item-outline-color))}:host([slot=sub-item])>div{border-radius:4px;margin:0 8px 4px}";
|
|
2156
|
-
|
|
2157
|
-
const CSideNavigationItem = class {
|
|
2158
|
-
constructor(hostRef) {
|
|
2159
|
-
registerInstance(this, hostRef);
|
|
2160
|
-
this.itemChange = createEvent(this, "itemChange", 7);
|
|
2161
|
-
this.target = null;
|
|
2162
|
-
this.loading = false;
|
|
2163
|
-
this._isSubItem = false;
|
|
2164
|
-
this._slotHasContent = false;
|
|
2165
|
-
}
|
|
2166
|
-
handleChange(event) {
|
|
2167
|
-
if (this._isSubItem) {
|
|
2168
|
-
event.stopPropagation();
|
|
2169
|
-
event.stopImmediatePropagation();
|
|
2170
|
-
event.preventDefault();
|
|
2171
|
-
this.active = !this.active;
|
|
2172
|
-
}
|
|
2173
|
-
}
|
|
2174
|
-
onActiveChange(active) {
|
|
2175
|
-
this._handleChildFocusableChange(active);
|
|
2176
|
-
}
|
|
2177
|
-
_handleChildFocusableChange(focusable) {
|
|
2178
|
-
if (!this._slotHasContent)
|
|
2179
|
-
return;
|
|
2180
|
-
Array.from(this.hostElement.querySelectorAll('[slot="sub-item"]')).forEach((child) => {
|
|
2181
|
-
child.ariaHidden = (!focusable).toString();
|
|
2182
|
-
child.focusable = focusable;
|
|
2183
|
-
});
|
|
2184
|
-
}
|
|
2185
|
-
_redirect(event) {
|
|
2186
|
-
if ((event instanceof KeyboardEvent && (event === null || event === void 0 ? void 0 : event.key) === 'Enter') ||
|
|
2187
|
-
!(event instanceof KeyboardEvent)) {
|
|
2188
|
-
if (this._isSubItem) {
|
|
2189
|
-
event.stopPropagation();
|
|
2190
|
-
event.stopImmediatePropagation();
|
|
2191
|
-
event.preventDefault();
|
|
2192
|
-
}
|
|
2193
|
-
this.itemChange.emit(event);
|
|
2194
|
-
if (!this._slotHasContent) {
|
|
2195
|
-
const sidenav = document.querySelector('c-side-navigation');
|
|
2196
|
-
sidenav.menuVisible = false;
|
|
2197
|
-
}
|
|
2198
|
-
}
|
|
2199
|
-
}
|
|
2200
|
-
_assignSubItemSlots() {
|
|
2201
|
-
const subItems = this.hostElement.querySelectorAll('c-side-navigation-item');
|
|
2202
|
-
Array.from(subItems).forEach((item) => {
|
|
2203
|
-
item.setAttribute('slot', 'sub-item');
|
|
2204
|
-
});
|
|
2205
|
-
}
|
|
2206
|
-
componentWillLoad() {
|
|
2207
|
-
this._assignSubItemSlots();
|
|
2208
|
-
this._slotHasContent =
|
|
2209
|
-
!!this.hostElement.querySelector('[slot="sub-item"]');
|
|
2210
|
-
this._isSubItem = !!this.hostElement.getAttribute('slot');
|
|
2211
|
-
this._handleChildFocusableChange(this.active);
|
|
2212
|
-
}
|
|
2213
|
-
componentDidLoad() {
|
|
2214
|
-
for (const node of this.hostElement.childNodes) {
|
|
2215
|
-
if (node.nodeName === '#text') {
|
|
2216
|
-
this._ariaLabel = node.nodeValue.trim();
|
|
2217
|
-
break;
|
|
2218
|
-
}
|
|
2219
|
-
}
|
|
2220
|
-
this._handleChildClasses();
|
|
2221
|
-
}
|
|
2222
|
-
_handleChildClasses() {
|
|
2223
|
-
if (!this._isSubItem)
|
|
2224
|
-
return;
|
|
2225
|
-
Array.from(this.hostElement.children)
|
|
2226
|
-
.filter((child) => child.tagName === 'C-SUB-NAVIGATION-ITEM')
|
|
2227
|
-
.forEach((child) => {
|
|
2228
|
-
child.classList.add('c-sub-navigation-item--sub-level');
|
|
2229
|
-
});
|
|
2230
|
-
}
|
|
2231
|
-
render() {
|
|
2232
|
-
var _a, _b;
|
|
2233
|
-
const classes = {
|
|
2234
|
-
'c-side-navigation-item': true,
|
|
2235
|
-
'c-side-navigation-item--parent': this._slotHasContent,
|
|
2236
|
-
active: this.active,
|
|
2237
|
-
};
|
|
2238
|
-
const subNavigationClasses = {
|
|
2239
|
-
subnavactive: this.active,
|
|
2240
|
-
'sub-item': !this.active,
|
|
2241
|
-
};
|
|
2242
|
-
const a11y = {
|
|
2243
|
-
role: 'menuitem',
|
|
2244
|
-
tabindex: '0',
|
|
2245
|
-
};
|
|
2246
|
-
if (this._slotHasContent) {
|
|
2247
|
-
a11y['aria-expanded'] = (_a = (!!this.active)) === null || _a === void 0 ? void 0 : _a.toString();
|
|
2248
|
-
}
|
|
2249
|
-
else if (this.active) {
|
|
2250
|
-
a11y['aria-current'] = 'page';
|
|
2251
|
-
}
|
|
2252
|
-
const Tag = !!this.href ? 'a' : 'div';
|
|
2253
|
-
const itemParams = Object.assign({}, (!!this.href ? { href: this.href, target: this.target } : {}));
|
|
2254
|
-
return (h(Host, Object.assign({ key: 'acadf1e69d3dbdef68b98d6f594d76bb10b6ce7d' }, a11y, { class: classes, onClick: (e) => this._redirect(e), onKeyDown: (e) => this._redirect(e) }), h("div", { key: '501bce072d81b99d60cac6c11c4ea39b9b75a8ae' }, h(Tag, Object.assign({ key: '411f2d331d06251c88c9035aaf4b326006b920ca' }, itemParams, { class: {
|
|
2255
|
-
'c-side-navigation-item__header': true,
|
|
2256
|
-
'c-side-navigation-item__header--expandable': this._slotHasContent,
|
|
2257
|
-
} }), this._slotHasContent && (h("c-icon", { key: 'fd3558e471e7a998b5610421444f04601903314b', class: "svg", path: mdiChevronRight })), h("div", { key: 'ae8c2082b44eae3b9032a011fa53a66ab5ddd980', class: "c-side-navigation-item__slot" }, h("slot", { key: '019be2a2bfc1271794a235cfeada9acfc8e5d6c4' }))), this._slotHasContent && (h("nav", { key: '24d51f07844e7aa21fc5803541dd7d2ee2fa0a26', role: "menubar", "aria-label": this._ariaLabel, "aria-expanded": (_b = (!!this.active)) === null || _b === void 0 ? void 0 : _b.toString(), class: subNavigationClasses }, h("slot", { key: '7ba1a4ab3d9441264a8c5ef7b905f8fbcaf9c8cd', name: "sub-item" }))), h("c-loader", { key: 'b3978b41f5c82af0da3e91f2c4b03a254d266ead', size: 32, hide: !this.loading, style: { pointerEvents: 'none' } }))));
|
|
2258
|
-
}
|
|
2259
|
-
get hostElement() { return getElement(this); }
|
|
2260
|
-
static get watchers() { return {
|
|
2261
|
-
"active": ["onActiveChange"]
|
|
2262
|
-
}; }
|
|
2263
|
-
};
|
|
2264
|
-
CSideNavigationItem.style = cSideNavigationItemCss;
|
|
2265
|
-
|
|
2266
|
-
const cSideNavigationTitleCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-side-navigation-title-color:var(--c-side-navigation-title-color, var(--c-white));--_c-side-navigation-title-border-color:var(--c-side-navigation-title-border-color, var(--c-white))}:host>div{align-items:center;box-shadow:0 1px 0 0 var(--_c-side-navigation-title-border-color);color:var(--_c-side-navigation-title-color);display:flex;gap:8px;margin:1.25rem 0 1rem;padding:4px 0}";
|
|
2267
|
-
|
|
2268
|
-
const CSideNavigationTitle = class {
|
|
2269
|
-
constructor(hostRef) {
|
|
2270
|
-
registerInstance(this, hostRef);
|
|
2271
|
-
}
|
|
2272
|
-
render() {
|
|
2273
|
-
return (h(Host, { key: '5a9cb157a0f93d52f8d10a8dfc1e24dd4d2389b8' }, h("div", { key: 'fa154b3b8d6035a8799659f5bd4deb5c331d77ef' }, h("slot", { key: '09db250ce1a776b351f42982cf41cc80654bac98' }))));
|
|
2274
|
-
}
|
|
2275
|
-
};
|
|
2276
|
-
CSideNavigationTitle.style = cSideNavigationTitleCss;
|
|
2277
|
-
|
|
2278
|
-
const cSpacerCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{flex-grow:1 !important}";
|
|
2279
|
-
|
|
2280
|
-
const CSpacer = class {
|
|
2281
|
-
constructor(hostRef) {
|
|
2282
|
-
registerInstance(this, hostRef);
|
|
2283
|
-
}
|
|
2284
|
-
render() {
|
|
2285
|
-
return h(Host, { key: 'e89076f37431dd269837869d22bd4075d0f922e8' });
|
|
2286
|
-
}
|
|
2287
|
-
};
|
|
2288
|
-
CSpacer.style = cSpacerCss;
|
|
2289
|
-
|
|
2290
|
-
const cSpinnerCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-spinner-color:var(--c-spinner-color, var(--c-color));--_c-spinner-size:var(--c-size);--_c-spinner-width:var(--c-width);display:block;height:var(--_c-spinner-size);width:var(--_c-spinner-size)}:host(.c-spinner) svg{fill:var(--_c-spinner-color);height:var(--_c-spinner-size);overflow:visible;width:var(--_c-spinner-size)}:host(.c-spinner) svg circle{animation:spinner 2.5s linear infinite;fill:transparent;stroke-dasharray:calc(3.14 * var(--_c-spinner-size));stroke-linecap:round;stroke-width:var(--_c-spinner-width);stroke:var(--_c-spinner-color);transform-origin:calc(0.5px * var(--_c-spinner-size)) calc(0.5px * var(--_c-spinner-size)) 0}@keyframes spinner{0%{transform:rotate(0deg);stroke-dashoffset:calc(0.66 * var(--_c-spinner-size))}50%{transform:rotate(720deg);stroke-dashoffset:calc(3.14 * var(--_c-spinner-size))}100%{transform:rotate(1080deg);stroke-dashoffset:calc(0.66 * var(--_c-spinner-size))}}";
|
|
2291
|
-
|
|
2292
|
-
const CSpinner = class {
|
|
2293
|
-
constructor(hostRef) {
|
|
2294
|
-
registerInstance(this, hostRef);
|
|
2295
|
-
this.color = 'var(--c-primary-600)';
|
|
2296
|
-
this.size = 24;
|
|
2297
|
-
this.width = 2;
|
|
2298
|
-
}
|
|
2299
|
-
render() {
|
|
2300
|
-
const iconParams = {
|
|
2301
|
-
cx: this.size / 2,
|
|
2302
|
-
cy: this.size / 2,
|
|
2303
|
-
r: this.size / 2 - 2,
|
|
2304
|
-
};
|
|
2305
|
-
const style = {
|
|
2306
|
-
'--c-size': `${this.size}px`,
|
|
2307
|
-
'--c-width': `${this.width}px`,
|
|
2308
|
-
'--c-color': this.color,
|
|
2309
|
-
};
|
|
2310
|
-
return (h(Host, { key: 'efe40e6b92dda652ea62cc2fe740bd1eb55c0d45', class: "c-spinner", style: style }, h("svg", { key: '2b3c0b6ddd22670947f5de8cb9079cc250c9b19a' }, h("circle", Object.assign({ key: '5d20ffa28666b2741631e77d367a08cfeb9c2beb' }, iconParams)))));
|
|
2311
|
-
}
|
|
2312
|
-
};
|
|
2313
|
-
CSpinner.style = cSpinnerCss;
|
|
2314
|
-
|
|
2315
|
-
const cSubNavigationItemCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host(c-sub-navigation-item){--_c-sub-navigation-item-text-color:var(\n --c-sub-navigation-item-text-color,\n var(--c-text-body)\n );--_c-sub-navigation-item-background-color:var(\n --c-sub-navigation-item-background-color,\n var(--c-transparent)\n );--_c-sub-navigation-item-background-color-hover:var(\n --c-sub-navigation-item-background-color-hover,\n var(--c-primary-100)\n );--_c-sub-navigation-item-text-color-active:var(\n --c-sub-navigation-item-text-color-active,\n var(--c-primary-600)\n );--_c-sub-navigation-item-background-color-active:var(\n --c-sub-navigation-item-background-color-active,\n var(--c-white)\n );--_c-sub-navigation-item-sub-item-background-color-active:var(\n --c-sub-navigation-item-sub-item-background-color-active,\n var(--c-primary-100)\n );--_c-sub-navigation-item-sub-item-background-color-hover:var(\n --c-sub-navigation-item-sub-item-background-color-hover,\n var(--c-primary-100)\n );--_c-sub-navigation-item-sub-item-background-color:var(\n --c-sub-navigation-item-sub-item-background-color,\n var(--c-transparent)\n );--_c-sub-navigation-item-sub-item-text-color-active:var(\n --c-sub-navigation-item-sub-item-text-color-active,\n var(--c-primary-600)\n );--_c-sub-navigation-item-sub-item-text-color:var(\n --c-sub-navigation-item-sub-item-text-color,\n var(--c-text-body)\n )}:host(.c-sub-navigation-item--sub-level){--_c-sub-navigation-item-background-color:var(\n --_c-sub-navigation-item-sub-item-background-color\n );--_c-sub-navigation-item-text-color:var(\n --_c-sub-navigation-item-sub-item-text-color\n );--_c-sub-navigation-item-background-color-hover:var(\n --_c-sub-navigation-item-sub-item-background-color-hover\n );--_c-sub-navigation-item-text-color-active:var(\n --_c-sub-navigation-item-sub-item-text-color-active\n );--_c-sub-navigation-item-background-color-active:var(\n --_c-sub-navigation-item-sub-item-background-color-active\n )}.c-sub-navigation-item{align-items:center;background-color:var(--_c-sub-navigation-item-background-color);border-radius:4px;color:var(--_c-sub-navigation-item-text-color);cursor:pointer;display:flex;font-weight:400;line-height:46px;margin:0 8px;overflow:hidden;padding-left:34px;position:relative;transition:background-color 0.2s ease-in;user-select:none}.c-sub-navigation-item__wrapper{padding:2px 0}.c-sub-navigation-item__content{display:flex;align-items:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.c-sub-navigation-item__content::before{background-color:var(--_c-sub-navigation-item-text-color-active);content:\"\";height:100%;left:0;position:absolute;top:0;transform:translateZ(0) translateX(-8px);transition:transform 0.2s ease-in-out;width:8px}.c-sub-navigation-item:hover{background-color:var(--_c-sub-navigation-item-background-color-hover);color:var(--_c-sub-navigation-item-text-color-active)}:host(.active) .c-sub-navigation-item{background-color:var(--_c-sub-navigation-item-background-color-active)}:host(.active) .c-sub-navigation-item__content::before{transform:translateZ(0) translateX(0)}::slotted(span){margin-right:8px;font-size:20px;line-height:1}:host(:host:focus),:host(:host:focus) .c-sub-navigation-item{outline:none}:host(:host:focus-visible) .c-sub-navigation-item{outline:2px var(--_c-sub-navigation-item-text-color-active) solid;outline-offset:2px}.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-sub-navigation-item__slot{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.c-sub-navigation-item__slot slot{display:flex;gap:8px;align-items:center}";
|
|
2316
|
-
|
|
2317
|
-
const CSubNavigationItem = class {
|
|
2318
|
-
constructor(hostRef) {
|
|
2319
|
-
registerInstance(this, hostRef);
|
|
2320
|
-
this.focusable = false;
|
|
2321
|
-
this.target = null;
|
|
2322
|
-
this.loading = false;
|
|
2323
|
-
}
|
|
2324
|
-
_redirect(event) {
|
|
2325
|
-
if ((event instanceof KeyboardEvent && (event === null || event === void 0 ? void 0 : event.key) === 'Enter') ||
|
|
2326
|
-
event instanceof MouseEvent ||
|
|
2327
|
-
event instanceof PointerEvent) {
|
|
2328
|
-
event.stopPropagation();
|
|
2329
|
-
const sidenav = document.querySelector('c-side-navigation');
|
|
2330
|
-
sidenav.menuVisible = false;
|
|
2331
|
-
if (this.href) {
|
|
2332
|
-
if (this.target) {
|
|
2333
|
-
window.open(this.href, this.target);
|
|
2334
|
-
}
|
|
2335
|
-
else {
|
|
2336
|
-
window.location.href = this.href;
|
|
2337
|
-
}
|
|
2338
|
-
}
|
|
2339
|
-
}
|
|
2340
|
-
}
|
|
2341
|
-
render() {
|
|
2342
|
-
const a11y = {
|
|
2343
|
-
tabindex: this.focusable ? '0' : '-1',
|
|
2344
|
-
role: 'menuitem',
|
|
2345
|
-
};
|
|
2346
|
-
if (this.active) {
|
|
2347
|
-
a11y['aria-current'] = 'page';
|
|
2348
|
-
}
|
|
2349
|
-
return (h(Host, Object.assign({ key: '7bcb5b48a0708791cfecb6eb74b7d032094b82f1' }, a11y, { class: { active: this.active }, onClick: (e) => this._redirect(e), onKeyDown: (e) => this._redirect(e) }), h("div", { key: '6d5573a8c1abf9a034a533a37e7cc5f7bd052ee9', class: "c-sub-navigation-item__wrapper" }, h("div", { key: 'd4d925ff49e1f5ae59bbc4889581575befe28b0c', class: "c-sub-navigation-item" }, h("div", { key: '9cb1cf4adf966e68e77a5cf8963ce6b466779d05', class: "c-sub-navigation-item__content" }, h("div", { key: '22b5c70461cdf1ee925b309bfd54c46e22df9c2a', class: "c-sub-navigation-item__slot" }, h("slot", { key: 'c825be38425afb8fd0c81c896953e766edb6edbd' })), this.active && (h("span", { key: '3e2df9eaba4a255e91d854a453f2748f2b9ecd3d', class: "visuallyhidden" }, ", Current page"))), h("c-loader", { key: '2490254c91b820b3b52a19c81b5894c8fd218296', size: 32, hide: !this.loading, style: { pointerEvents: 'none' } })))));
|
|
2350
|
-
}
|
|
2351
|
-
get element() { return getElement(this); }
|
|
2352
|
-
};
|
|
2353
|
-
CSubNavigationItem.style = cSubNavigationItemCss;
|
|
2354
|
-
|
|
2355
|
-
const cSwitchCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host(c-switch){--_c-switch-border-color:var(--c-switch-border-color, var(--c-tertiary-600));--_c-switch-handle-color:var(--c-switch-handle-color, var(--c-tertiary-600));--_c-switch-slider-color:var(--c-switch-slider-color, var(--c-transparent));--_c-switch-border-color-disabled:var(--c-switch-border-color-disabled, var(--c-transparent));--_c-switch-handle-color-disabled:var(--c-switch-handle-color-disabled, var(--c-tertiary-500));--_c-switch-slider-color-disabled:var(--c-switch-slider-color-disabled, var(--c-tertiary-200));--_c-switch-border-color-active:var(--c-switch-border-color-active, var(--c-primary-600));--_c-switch-handle-color-active:var(--c-switch-handle-color-active, var(--c-white));--_c-switch-slider-color-active:var(--c-switch-slider-color-active, var(--c-primary-600));--_c-switch-border-color-active-disabled:var(--c-switch-border-color-active-disabled, var(--c-tertiary-400));--_c-switch-handle-color-active-disabled:var(--c-switch-handle-color-active-disabled, var(--c-white));--_c-switch-slider-color-active-disabled:var(--c-switch-slider-color-active-disabled, var(--c-tertiary-400));display:inline-block}.c-switch{--_c-switch-handle-margin:5px;--_c-switch-pointer:pointer;--_c-switch-height:22px;--_c-switch-width:44px;--_c-switch-handle-size:calc(var(--_c-switch-height) - 2 * var(--_c-switch-handle-margin));--_c-switch-handle-position-active:calc(\n var(--_c-switch-width) - var(--_c-switch-handle-size) - 2 * var(--_c-switch-handle-margin)\n );backface-visibility:hidden;transform:translate3d(0, 0, 0);display:inline-grid;height:var(--_c-switch-height);position:relative;grid-template-columns:1fr;gap:12px;align-items:center}.c-switch--disabled{--_c-switch-pointer:default;--_c-switch-handle-color:var(--_c-switch-handle-color-disabled);--_c-switch-slider-color:var(--_c-switch-slider-color-disabled);--_c-switch-border-color:var(--_c-switch-border-color-disabled);--c-error-600:var(--c-tertiary-400);color:var(--c-tertiary-500)}.c-switch--disabled c-spinner{--c-color:var(--_c-switch-handle-color-disabled) !important}.c-switch--label{grid-template-columns:var(--_c-switch-width) auto}.c-switch__label span.required{color:var(--c-error-600)}.c-switch__input{height:var(--_c-switch-height);position:relative;width:var(--_c-switch-width);align-self:start}.c-switch__slider{background-color:var(--_c-switch-slider-color);border-radius:var(--_c-switch-height);box-shadow:inset 0 0 0 2px var(--_c-switch-border-color);inset:0;cursor:var(--_c-switch-pointer);position:absolute;transform-origin:50% 50%;transition:0.3s cubic-bezier(0.25, 0.8, 0.5, 1)}.c-switch__slider::before{background-color:var(--_c-switch-handle-color);border-radius:50%;bottom:var(--_c-switch-handle-margin);content:\"\";height:var(--_c-switch-handle-size);left:var(--_c-switch-handle-margin);position:absolute;transition:0.3s cubic-bezier(0.25, 0.8, 0.5, 1);width:var(--_c-switch-handle-size)}.c-switch__slider c-spinner{--c-color:var(--_c-switch-handle-color) !important;pointer-events:none;z-index:2;position:absolute;left:4px;top:0;opacity:0;transition:all 0.3s cubic-bezier(0.25, 0.8, 0.5, 1)}.c-switch__slider--loading c-spinner{opacity:1}.c-switch__slider--loading::before{opacity:0}.c-switch input{height:0;opacity:0;width:0}.c-switch input:checked+.c-switch__slider{--_c-switch-handle-color:var(--_c-switch-handle-color-active);--_c-switch-slider-color:var(--_c-switch-slider-color-active);--_c-switch-border-color:var(--_c-switch-border-color-active)}.c-switch input:checked+.c-switch__slider::before{transform:translateX(var(--_c-switch-handle-position-active))}.c-switch input:checked+.c-switch__slider c-spinner{--c-color:var(--_c-switch-handle-color-active) !important;transform:translateX(var(--_c-switch-handle-position-active))}.c-switch input:checked+.c-switch__slider--disabled{--_c-switch-handle-color:var(--_c-switch-handle-color-active-disabled);--_c-switch-slider-color:var(--_c-switch-slider-color-active-disabled);--_c-switch-border-color:var(--_c-switch-border-color-active-disabled)}.c-switch input:checked+.c-switch__slider--disabled c-spinner{--c-color:var(--_c-switch-handle-color-active-disabled) !important}.c-switch input:focus+.c-switch__slider{outline:none}.c-switch input:focus-visible+.c-switch__slider{outline:2px var(--c-primary-600) solid;outline-offset:2px}";
|
|
2356
|
-
|
|
2357
|
-
const CSwitch = class {
|
|
2358
|
-
constructor(hostRef) {
|
|
2359
|
-
registerInstance(this, hostRef);
|
|
2360
|
-
this.changeValue = createEvent(this, "changeValue", 3);
|
|
2361
|
-
if (hostRef.$hostElement$["s-ei"]) {
|
|
2362
|
-
this.internals = hostRef.$hostElement$["s-ei"];
|
|
2363
|
-
}
|
|
2364
|
-
else {
|
|
2365
|
-
this.internals = hostRef.$hostElement$.attachInternals();
|
|
2366
|
-
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
2367
|
-
}
|
|
2368
|
-
this.checked = false;
|
|
2369
|
-
this.value = false;
|
|
2370
|
-
this.trueValue = true;
|
|
2371
|
-
this.falseValue = false;
|
|
2372
|
-
this.hostDisabled = false;
|
|
2373
|
-
this.loading = false;
|
|
2374
|
-
this.required = false;
|
|
2375
|
-
this.hasLabel = false;
|
|
2376
|
-
this._toggleState = () => {
|
|
2377
|
-
if (this.hostDisabled)
|
|
2378
|
-
return;
|
|
2379
|
-
this.checked = !this.checked;
|
|
2380
|
-
this.changeValue.emit(this.checked ? this.trueValue : this.falseValue);
|
|
2381
|
-
this.internals.setFormValue(this.checked ? this.trueValue.toString() : this.falseValue.toString());
|
|
2382
|
-
};
|
|
2383
|
-
}
|
|
2384
|
-
onValueChange(value) {
|
|
2385
|
-
this.checked = this.trueValue === value;
|
|
2386
|
-
this.internals.setFormValue(this.checked ? this.trueValue.toString() : this.falseValue.toString());
|
|
2387
|
-
}
|
|
2388
|
-
componentWillLoad() {
|
|
2389
|
-
this.checked = this.checked || this.value === this.trueValue;
|
|
2390
|
-
this.internals.setFormValue(this.checked ? this.trueValue.toString() : this.falseValue.toString());
|
|
2391
|
-
}
|
|
2392
|
-
componentDidLoad() {
|
|
2393
|
-
const slotted = this.host.childNodes;
|
|
2394
|
-
this.hasLabel = slotted && slotted.length > 0;
|
|
2395
|
-
}
|
|
2396
|
-
render() {
|
|
2397
|
-
const classes = {
|
|
2398
|
-
'c-switch': true,
|
|
2399
|
-
'c-switch--disabled': !!this.hostDisabled,
|
|
2400
|
-
'c-switch--label': this.hasLabel,
|
|
2401
|
-
};
|
|
2402
|
-
const sliderClasses = {
|
|
2403
|
-
'c-switch__slider': true,
|
|
2404
|
-
'c-switch__slider--disabled': !!this.hostDisabled,
|
|
2405
|
-
'c-switch__slider--loading': !!this.loading,
|
|
2406
|
-
};
|
|
2407
|
-
return (h("label", { key: '8edbf7e102d095f7f99f551194b5e8cc9cd4295e', class: classes, htmlFor: this.hostId }, h("div", { key: '9e9ee24c8bc184ae103d52d4f4bfaed7114f37ef', class: "c-switch__input" }, h("input", { key: '07c6760cb1f52fbac8cdd37c4eaf4d91a6885eb2', id: this.hostId, "aria-checked": this.checked.toString(), type: "checkbox", role: "switch", disabled: this.hostDisabled, checked: this.checked ? true : undefined, onChange: () => this._toggleState() }), h("span", { key: '4e9e0002bb766cbf7523a75fbeb7e39010391b71', class: sliderClasses }, h("c-spinner", { key: '95181bac9d370b8e478882e8032baa097e641223', size: 14, width: 2, color: "#fff" }))), this.hasLabel ? (h("div", { class: "c-switch__label" }, h("slot", null), this.required && h("span", { class: "required" }, "\u00A0*"))) : null));
|
|
2408
|
-
}
|
|
2409
|
-
static get formAssociated() { return true; }
|
|
2410
|
-
get host() { return getElement(this); }
|
|
2411
|
-
static get watchers() { return {
|
|
2412
|
-
"value": ["onValueChange"]
|
|
2413
|
-
}; }
|
|
2414
|
-
};
|
|
2415
|
-
CSwitch.style = cSwitchCss;
|
|
2416
|
-
|
|
2417
|
-
const cTableCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host,:root{--_c-table-border-color:var(--c-table-border-color, var(--c-tertiary-200));--_c-table-header-text-color:var(--c-table-header-text-color, var(--c-text-system));--_c-table-row-background-color-mobile:var(--c-table-row-background-color-mobile, rgba(var(--c-primary-rgb), 0.05))}table.c-table{border-collapse:collapse;border-spacing:0;border:0;font-size:100%;font-family:var(--c-font-family);margin:0;padding:0;width:100%}table.c-table slot{display:table}table.c-table caption,table.c-table tbody,table.c-table tfoot,table.c-table thead,table.c-table tr,table.c-table th,table.c-table td{border:0;font-size:100%;font-family:var(--c-font-family);margin:0;padding:0}table.c-table thead{background-color:var(--c-white);position:relative}table.c-table thead th{border-bottom:2px solid var(--_c-table-border-color);text-align:left}table.c-table tbody{box-shadow:inset 1px 0 0 0 var(--_c-table-border-color), inset -1px 0 0 0 var(--_c-table-border-color), inset 0 1px 0 0 var(--_c-table-border-color), inset 0 -1px 0 0 var(--_c-table-border-color);}@supports (-webkit-hyphens: none){table.c-table tbody{border:1px solid var(--_c-table-border-color)}table.c-table tbody tr{border-bottom:1px solid var(--_c-table-border-color)}}table.c-table tbody tr{box-shadow:inset 0 1px 0 0 var(--_c-table-border-color)}table.c-table tfoot{background-color:var(--c-white)}table.c-table tfoot tr{box-shadow:inset 0 1px 0 0 var(--_c-table-border-color)}table.c-table tfoot td{min-height:48px}table.c-table tfoot td c-pagination{flex:1}table.c-table th,table.c-table td{font-weight:400;box-sizing:border-box;line-height:normal;padding:16px}table.c-table th{height:48px;font-size:14px;color:var(--_c-table-header-text-color)}table.c-table td{font-size:16px;color:var(--c-text-body)}table.c-table td span.c-table__mobile-label{display:none}table.c-table--mobile{border-spacing:0 16px;border-collapse:separate}table.c-table--mobile tbody{box-shadow:none}table.c-table--mobile tbody tr{border-radius:4px;box-shadow:inset 0 0 0 1px var(--_c-table-border-color);}@supports (-webkit-hyphens: none){table.c-table--mobile tbody tr{display:grid;margin-bottom:16px;border:none}}table.c-table--mobile thead{display:none}table.c-table--mobile td{display:grid;gap:4px;padding:12px;min-height:48px}table.c-table--mobile td span.c-table__mobile-label{font-size:14px;color:var(--_c-table-header-text-color);display:inline-block;text-align:start;padding-right:8px}table.c-table--mobile td:nth-of-type(even){background-color:var(--_c-table-row-background-color-mobile)}";
|
|
2418
|
-
|
|
2419
|
-
const CTable = class {
|
|
2420
|
-
constructor(hostRef) {
|
|
2421
|
-
registerInstance(this, hostRef);
|
|
2422
|
-
this.mobileBreakpoint = 600;
|
|
2423
|
-
this.responsive = false;
|
|
2424
|
-
this._createMobileLabels = () => {
|
|
2425
|
-
this.rows.forEach((row) => {
|
|
2426
|
-
const cells = Array.from(row.querySelectorAll('td'));
|
|
2427
|
-
let cellIndex = 0;
|
|
2428
|
-
cells.forEach((cell) => {
|
|
2429
|
-
var _a;
|
|
2430
|
-
const mobileLabel = cell.querySelector('.c-table__mobile-label');
|
|
2431
|
-
if (mobileLabel)
|
|
2432
|
-
return;
|
|
2433
|
-
const span = document.createElement('span');
|
|
2434
|
-
span.classList.add('c-table__mobile-label');
|
|
2435
|
-
const heading = this.headers[+cellIndex % this.headers.length];
|
|
2436
|
-
if (!heading)
|
|
2437
|
-
return;
|
|
2438
|
-
cellIndex += (_a = cell.colSpan) !== null && _a !== void 0 ? _a : 1;
|
|
2439
|
-
span.innerHTML = heading;
|
|
2440
|
-
cell.prepend(span);
|
|
2441
|
-
});
|
|
2442
|
-
});
|
|
2443
|
-
};
|
|
2444
|
-
}
|
|
2445
|
-
async updateMobileLabels() {
|
|
2446
|
-
this._createMobileLabels();
|
|
2447
|
-
}
|
|
2448
|
-
get cells() {
|
|
2449
|
-
return Array.from(this._tableElement.querySelectorAll('td'));
|
|
2450
|
-
}
|
|
2451
|
-
get rows() {
|
|
2452
|
-
return Array.from(this._tableElement.querySelectorAll('tr')).filter((row) => !row.hasAttribute('no-mobile-labels'));
|
|
2453
|
-
}
|
|
2454
|
-
get headers() {
|
|
2455
|
-
return Array.from(this._tableElement.querySelectorAll('th')).map((th) => th.innerHTML);
|
|
2456
|
-
}
|
|
2457
|
-
_handleResize(width) {
|
|
2458
|
-
const isMobile = width <= this.mobileBreakpoint;
|
|
2459
|
-
this._tableElement.classList.toggle('c-table--mobile', isMobile);
|
|
2460
|
-
}
|
|
2461
|
-
componentWillLoad() {
|
|
2462
|
-
this._tableElement = this.el.querySelector('table');
|
|
2463
|
-
this._tableElement.classList.add('c-table');
|
|
2464
|
-
this._observer = new ResizeObserver(([entry]) => {
|
|
2465
|
-
const { width } = entry.contentRect;
|
|
2466
|
-
this._handleResize(width);
|
|
2467
|
-
});
|
|
2468
|
-
}
|
|
2469
|
-
componentDidLoad() {
|
|
2470
|
-
if (this.responsive) {
|
|
2471
|
-
this._observer.observe(this._tableElement);
|
|
2472
|
-
this._createMobileLabels();
|
|
2473
|
-
}
|
|
2474
|
-
}
|
|
2475
|
-
disconnectedCallback() {
|
|
2476
|
-
this._observer.disconnect();
|
|
2477
|
-
}
|
|
2478
|
-
render() {
|
|
2479
|
-
return (h(Host, { key: 'dca16472d55f1864e58f178090f04b185df6cd8e' }, h("slot", { key: '42ca21af89b22919d324d0ae8f842e11f49f88b6' })));
|
|
2480
|
-
}
|
|
2481
|
-
get el() { return getElement(this); }
|
|
2482
|
-
};
|
|
2483
|
-
CTable.style = cTableCss;
|
|
2484
|
-
|
|
2485
|
-
const cTextFieldCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:root,:host{--_c-text-field-active-color:var(--c-text-field-active-color, var(--c-primary-600));--_c-text-field-inactive-color:var(--c-text-field-inactive-color, var(--c-tertiary-600));--_c-text-field-background-color:var(--c-text-field-background-color, var(--c-transparent));--_c-text-field-text-color:var(--c-text-field-text-color, var(--c-text-body));--_c-text-field-placeholder-color:var(--c-text-field-placeholder-color, var(--c-tertiary-500));--_c-text-field-shadow-active-color:var(--c-text-field-shadow-active-color, var(--_c-text-field-active-color));--_c-text-field-shadow-background-color:var(--c-text-field-shadow-background-color, var(--c-white));--_c-text-field-shadow-text-color:var(--c-text-field-shadow-text-color, var(--_c-text-field-text-color));--_c-text-field-shadow-placeholder-color:var(--c-text-field-shadow-placeholder-color, var(--_c-text-field-placeholder-color));--_c-text-field-label-color:var(--c-text-field-label-color, var(--_c-text-field-text-color))}.c-input{--_c-input-active-color:var(--_c-text-field-active-color);--_c-input-inactive-color:var(--_c-text-field-inactive-color);--_c-input-background-color:var(--_c-text-field-background-color);--_c-input-text-color:var(--_c-text-field-text-color);--_c-input-label-color:var(--_c-text-field-label-color);--_c-input-placeholder-color:var(--_c-text-field-placeholder-color);--_c-input-shadow-active-color:var(--_c-text-field-shadow-active-color);--_c-input-shadow-background-color:var(--_c-text-field-shadow-background-color);--_c-input-shadow-text-color:var(--_c-text-field-shadow-text-color);--_c-input-shadow-placeholder-color:var(--_c-text-field-shadow-placeholder-color)}.c-input__password-toggle,.c-input__date-toggle{cursor:pointer;fill:currentColor;height:22px;width:22px}.c-input__password-toggle--disabled,.c-input__date-toggle--disabled{cursor:not-allowed;fill:var(--c-tertiary-500)}.c-input input[type=date]{opacity:0}.c-input input[type=date]::-webkit-calendar-picker-indicator,.c-input input[type=date]::-webkit-inner-spin-button{display:none;appearance:none}.c-input input[type=date]:focus,.c-input input[type=date].c-input__input--filled{opacity:1}";
|
|
2486
|
-
|
|
2487
|
-
const CTextField = class {
|
|
2488
|
-
constructor(hostRef) {
|
|
2489
|
-
registerInstance(this, hostRef);
|
|
2490
|
-
this.changeValue = createEvent(this, "changeValue", 3);
|
|
2491
|
-
if (hostRef.$hostElement$["s-ei"]) {
|
|
2492
|
-
this.internals = hostRef.$hostElement$["s-ei"];
|
|
2493
|
-
}
|
|
2494
|
-
else {
|
|
2495
|
-
this.internals = hostRef.$hostElement$.attachInternals();
|
|
2496
|
-
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
2497
|
-
}
|
|
2498
|
-
this.automaticFocus = false;
|
|
2499
|
-
this.automaticCapitalize = '';
|
|
2500
|
-
this.autocorrect = '';
|
|
2501
|
-
this.autocomplete = '';
|
|
2502
|
-
this.disabled = false;
|
|
2503
|
-
this.hideDetails = false;
|
|
2504
|
-
this.hint = '';
|
|
2505
|
-
this.trimWhitespace = false;
|
|
2506
|
-
this.labelOnTop = false;
|
|
2507
|
-
this.max = null;
|
|
2508
|
-
this.min = null;
|
|
2509
|
-
this.readonly = false;
|
|
2510
|
-
this.required = false;
|
|
2511
|
-
this.rows = 1;
|
|
2512
|
-
this.shadow = false;
|
|
2513
|
-
this.step = null;
|
|
2514
|
-
this.type = 'text';
|
|
2515
|
-
this.valid = true;
|
|
2516
|
-
this.validate = false;
|
|
2517
|
-
this.validateOnBlur = false;
|
|
2518
|
-
this.validation = 'Required field';
|
|
2519
|
-
this.isFocused = false;
|
|
2520
|
-
this.labelWidth = 0;
|
|
2521
|
-
this.preSlotWidth = 0;
|
|
2522
|
-
this._originalType = '';
|
|
2523
|
-
this._handleChange = (event) => {
|
|
2524
|
-
if (this.type === 'number' && !event.target.value && event.key === '-') {
|
|
2525
|
-
return;
|
|
2526
|
-
}
|
|
2527
|
-
this.value = this.trimWhitespace
|
|
2528
|
-
? event.target.value.trim()
|
|
2529
|
-
: event.target.value;
|
|
2530
|
-
this.changeValue.emit(this.value);
|
|
2531
|
-
this.internals.setFormValue(this.value);
|
|
2532
|
-
};
|
|
2533
|
-
this._handleBlur = (event) => {
|
|
2534
|
-
if (this.trimWhitespace) {
|
|
2535
|
-
const trimmedValue = event.target.value.trim();
|
|
2536
|
-
event.target.value = trimmedValue;
|
|
2537
|
-
}
|
|
2538
|
-
};
|
|
2539
|
-
this._togglePasswordVisibility = () => {
|
|
2540
|
-
if (this.disabled)
|
|
2541
|
-
return;
|
|
2542
|
-
this.type = this.type === 'password' ? 'text' : 'password';
|
|
2543
|
-
};
|
|
2544
|
-
}
|
|
2545
|
-
componentWillLoad() {
|
|
2546
|
-
CTextField._uniqueId += 1;
|
|
2547
|
-
this._originalType = this.type;
|
|
2548
|
-
this._inputId = `${(this.hostId ||
|
|
2549
|
-
this.label ||
|
|
2550
|
-
this.placeholder ||
|
|
2551
|
-
'').replace(/[^a-zA-Z0-9-_]/g, '')}_${CTextField._uniqueId}`;
|
|
2552
|
-
this.internals.setFormValue(this.value);
|
|
2553
|
-
}
|
|
2554
|
-
get isActive() {
|
|
2555
|
-
return !!this.value || this.isFocused;
|
|
2556
|
-
}
|
|
2557
|
-
get passwordIcon() {
|
|
2558
|
-
return this.type === 'password' ? mdiEye : mdiEyeOff;
|
|
2559
|
-
}
|
|
2560
|
-
_renderInputElement() {
|
|
2561
|
-
const props = {
|
|
2562
|
-
classes: {
|
|
2563
|
-
'c-input__input': true,
|
|
2564
|
-
'c-input__input--filled': !!this.value,
|
|
2565
|
-
},
|
|
2566
|
-
shared: {
|
|
2567
|
-
id: this._inputId,
|
|
2568
|
-
name: this.name,
|
|
2569
|
-
disabled: this.disabled,
|
|
2570
|
-
readonly: this.readonly,
|
|
2571
|
-
value: this.value,
|
|
2572
|
-
onInput: this._handleChange,
|
|
2573
|
-
onChange: this._handleChange,
|
|
2574
|
-
onBlur: this._handleBlur,
|
|
2575
|
-
},
|
|
2576
|
-
input: Object.assign(Object.assign(Object.assign({ type: this.type, min: this.min, max: this.max, step: this.step }, (!!this.autocomplete && { autocomplete: this.autocomplete })), (!!this.automaticCapitalize && {
|
|
2577
|
-
autocapitalize: this.automaticCapitalize,
|
|
2578
|
-
})), (!!this.autocorrect && { autocorrect: this.autocorrect })),
|
|
2579
|
-
textArea: {
|
|
2580
|
-
rows: this.rows,
|
|
2581
|
-
},
|
|
2582
|
-
};
|
|
2583
|
-
const textInput = (h("input", Object.assign({ class: props.classes }, props.input, props.shared, { ref: (el) => (this._inputElement = el) })));
|
|
2584
|
-
const textArea = (h("textarea", Object.assign({ class: props.classes }, props.shared, props.textArea)));
|
|
2585
|
-
return this.rows > 1 ? textArea : textInput;
|
|
2586
|
-
}
|
|
2587
|
-
_isFirefox() {
|
|
2588
|
-
return !!navigator.userAgent.match(/firefox|fxios/i);
|
|
2589
|
-
}
|
|
2590
|
-
_renderDateToggle() {
|
|
2591
|
-
if (this._originalType !== 'date' || this._isFirefox())
|
|
2592
|
-
return;
|
|
2593
|
-
const classes = {
|
|
2594
|
-
'c-input__date-toggle': true,
|
|
2595
|
-
'c-input__date-toggle--disabled': this.disabled,
|
|
2596
|
-
};
|
|
2597
|
-
return (h("svg", { class: classes, viewBox: "0 0 24 24", onClick: this._toggleDatepicker.bind(this) }, h("path", { d: mdiCalendar })));
|
|
2598
|
-
}
|
|
2599
|
-
_toggleDatepicker() {
|
|
2600
|
-
var _a;
|
|
2601
|
-
(_a = this._inputElement) === null || _a === void 0 ? void 0 : _a.showPicker();
|
|
2602
|
-
}
|
|
2603
|
-
_renderPasswordToggle() {
|
|
2604
|
-
if (this._originalType !== 'password')
|
|
2605
|
-
return;
|
|
2606
|
-
const classes = {
|
|
2607
|
-
'c-input__password-toggle': true,
|
|
2608
|
-
'c-input__password-toggle--disabled': this.disabled,
|
|
2609
|
-
};
|
|
2610
|
-
return (h("svg", { class: classes, viewBox: "0 0 24 24", onClick: this._togglePasswordVisibility }, h("path", { d: this.passwordIcon })));
|
|
2611
|
-
}
|
|
2612
|
-
render() {
|
|
2613
|
-
return (h(Host, { key: 'fc0f5d30cb6d8e7d96359300b79e568f4e4c5e7c' }, h("c-input", { key: '4e30200c8f46c36454023e42ad287f3ace86c2ec', autofocus: this.automaticFocus, disabled: this.disabled, "hide-details": this.hideDetails, hint: this.hint, id: this.hostId, "input-id": this._inputId, label: this.label, "label-on-top": this.labelOnTop, name: this.name, placeholder: this.placeholder, readonly: this.readonly, required: this.required, rows: this.rows, shadow: this.shadow, type: this.type, valid: this.valid, validate: this.validate, "validate-on-blur": this.validateOnBlur, validation: this.validation, value: this.value }, h("slot", { key: 'd0f32356c45e9b356bbace18f9b9ffaaded27d64', name: "pre", slot: "pre" }), this._renderInputElement(), this._renderPasswordToggle(), this._renderDateToggle(), h("slot", { key: '1e6eb44b3af9d9edb933bca28a2f60aefb0c9e1b', name: "post" }))));
|
|
2614
|
-
}
|
|
2615
|
-
static get formAssociated() { return true; }
|
|
2616
|
-
get hiddenEl() { return getElement(this); }
|
|
2617
|
-
};
|
|
2618
|
-
CTextField._uniqueId = 0;
|
|
2619
|
-
CTextField.style = cTextFieldCss;
|
|
2620
|
-
|
|
2621
|
-
const cToolbarCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-toolbar-background-color:var(--c-toolbar-background-color, var(--c-white));--_c-toolbar-text-color:var(--c-toolbar-text-color, var(--c-text-system));z-index:1}:host .c-toolbar{align-items:center;background:var(--_c-toolbar-background-color);box-shadow:2px 4px 10px rgba(0, 0, 0, 0.1607843137);color:var(--_c-toolbar-text-color);column-gap:12px;display:flex;height:60px;padding-left:16px;padding-right:16px;position:fixed;width:100%}:host .spacer{height:60px;width:100%}:host(.relative) .c-toolbar{position:relative;margin-bottom:-60px}";
|
|
2622
|
-
|
|
2623
|
-
const CToolbar = class {
|
|
2624
|
-
constructor(hostRef) {
|
|
2625
|
-
registerInstance(this, hostRef);
|
|
2626
|
-
}
|
|
2627
|
-
render() {
|
|
2628
|
-
return (h(Host, { key: '6d1f7727af44345f862431bca227169058e406be' }, h("div", { key: '5d7bb41c416763d92cf160d8b4a40958b8e0ee7e', class: "c-toolbar" }, h("slot", { key: 'b492e064ca153cc6496e89afe075a7d54f226750' })), h("div", { key: '163f28fd8b50415d67da3e6cfa62b03a54b13f9e', class: "spacer" })));
|
|
2629
|
-
}
|
|
2630
|
-
};
|
|
2631
|
-
CToolbar.style = cToolbarCss;
|
|
2632
|
-
|
|
2633
|
-
export { CAutocomplete as c_autocomplete, CBackdrop as c_backdrop, CBadge as c_badge, CButton as c_button, CCard as c_card, CCardActions as c_card_actions, CCardContent as c_card_content, CCardTitle as c_card_title, CCheckbox as c_checkbox, CCscLogo as c_csc_logo, CDropdown as c_dropdown, CIcon as c_icon, CIconButton as c_icon_button, CInput as c_input, CLoader as c_loader, CMain as c_main, CMessage as c_message, CNavigationButton as c_navigation_button, COption as c_option, COtpInput as c_otp_input, CPage as c_page, CRadio as c_radio, CRadioGroup as c_radio_group, CRipple as c_ripple, CSelect as c_select, CSideNavigation as c_side_navigation, CSideNavigationItem as c_side_navigation_item, CSideNavigationTitle as c_side_navigation_title, CSpacer as c_spacer, CSpinner as c_spinner, CSubNavigationItem as c_sub_navigation_item, CSwitch as c_switch, CTable as c_table, CTextField as c_text_field, CToolbar as c_toolbar };
|
|
2634
|
-
//# sourceMappingURL=c-autocomplete.c-backdrop.c-badge.c-button.c-card.c-card-actions.c-card-content.c-card-title.c-checkbox.c-csc-logo.c-dropdown.c-icon.c-icon-button.c-input.c-loader.c-main.c-message.c-navigation-button.c-option.c-otp-input.c-page.c-radio.c-radio-group.c-ripple.c-select.c-side-navigation.c-side-navigation-item.c-side-navigation-title.c-spacer.c-spinner.c-sub-navigation-item.c-switch.c-table.c-text-field.c-toolbar.entry.js.map
|
|
2635
|
-
|
|
2636
|
-
//# sourceMappingURL=c-autocomplete_35.entry.js.map
|