@cscfi/csc-ui 2.2.5 → 2.2.7
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/dist/cjs/app-globals-3a1e7e63.js +7 -0
- package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
- package/dist/cjs/c-accordion-item.cjs.entry.js +108 -107
- package/dist/cjs/c-accordion-item.cjs.entry.js.map +1 -1
- package/dist/cjs/c-accordion.cjs.entry.js +53 -52
- package/dist/cjs/c-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/c-alert.cjs.entry.js +17 -16
- package/dist/cjs/c-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/c-autocomplete_34.cjs.entry.js +2437 -2398
- package/dist/cjs/c-autocomplete_34.cjs.entry.js.map +1 -1
- package/dist/cjs/c-data-table.cjs.entry.js +678 -677
- package/dist/cjs/c-data-table.cjs.entry.js.map +1 -1
- package/dist/cjs/c-link.cjs.entry.js +19 -18
- package/dist/cjs/c-link.cjs.entry.js.map +1 -1
- package/dist/cjs/c-list-item-title.cjs.entry.js +14 -13
- package/dist/cjs/c-list-item-title.cjs.entry.js.map +1 -1
- package/dist/cjs/c-list-item.cjs.entry.js +70 -69
- package/dist/cjs/c-list-item.cjs.entry.js.map +1 -1
- package/dist/cjs/c-list.cjs.entry.js +33 -32
- package/dist/cjs/c-list.cjs.entry.js.map +1 -1
- package/dist/cjs/c-login-button.cjs.entry.js +13 -12
- package/dist/cjs/c-login-button.cjs.entry.js.map +1 -1
- package/dist/cjs/c-login-buttons.cjs.entry.js +9 -8
- package/dist/cjs/c-login-buttons.cjs.entry.js.map +1 -1
- package/dist/cjs/c-login-card-actions.cjs.entry.js +9 -9
- package/dist/cjs/c-login-card-actions.cjs.entry.js.map +1 -1
- package/dist/cjs/c-login-card-content.cjs.entry.js +9 -8
- package/dist/cjs/c-login-card-content.cjs.entry.js.map +1 -1
- package/dist/cjs/c-login-card-title.cjs.entry.js +9 -8
- package/dist/cjs/c-login-card-title.cjs.entry.js.map +1 -1
- package/dist/cjs/c-login-card.cjs.entry.js +54 -53
- package/dist/cjs/c-login-card.cjs.entry.js.map +1 -1
- package/dist/cjs/c-menu_2.cjs.entry.js +317 -315
- package/dist/cjs/c-menu_2.cjs.entry.js.map +1 -1
- package/dist/cjs/c-modal.cjs.entry.js +109 -108
- package/dist/cjs/c-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/c-option-value.cjs.entry.js +9 -8
- package/dist/cjs/c-option-value.cjs.entry.js.map +1 -1
- package/dist/cjs/c-pagination.cjs.entry.js +214 -213
- package/dist/cjs/c-pagination.cjs.entry.js.map +1 -1
- package/dist/cjs/c-progress-bar.cjs.entry.js +46 -45
- package/dist/cjs/c-progress-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/c-row.cjs.entry.js +23 -22
- package/dist/cjs/c-row.cjs.entry.js.map +1 -1
- package/dist/cjs/c-slider.cjs.entry.js +87 -86
- package/dist/cjs/c-slider.cjs.entry.js.map +1 -1
- package/dist/cjs/c-status.cjs.entry.js +11 -10
- package/dist/cjs/c-status.cjs.entry.js.map +1 -1
- package/dist/cjs/c-step.cjs.entry.js +15 -14
- package/dist/cjs/c-step.cjs.entry.js.map +1 -1
- package/dist/cjs/c-steps.cjs.entry.js +62 -61
- package/dist/cjs/c-steps.cjs.entry.js.map +1 -1
- package/dist/cjs/c-swiper-tab.cjs.entry.js +35 -34
- package/dist/cjs/c-swiper-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/c-swiper.cjs.entry.js +119 -118
- package/dist/cjs/c-swiper.cjs.entry.js.map +1 -1
- package/dist/cjs/c-tab-buttons.cjs.entry.js +118 -117
- package/dist/cjs/c-tab-buttons.cjs.entry.js.map +1 -1
- package/dist/cjs/c-tab-item.cjs.entry.js +29 -28
- package/dist/cjs/c-tab-item.cjs.entry.js.map +1 -1
- package/dist/cjs/c-tab-items.cjs.entry.js +67 -66
- package/dist/cjs/c-tab-items.cjs.entry.js.map +1 -1
- package/dist/cjs/c-tab.cjs.entry.js +46 -45
- package/dist/cjs/c-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/c-tabs.cjs.entry.js +394 -393
- package/dist/cjs/c-tabs.cjs.entry.js.map +1 -1
- package/dist/cjs/c-tag.cjs.entry.js +34 -33
- package/dist/cjs/c-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/c-tags.cjs.entry.js +18 -17
- package/dist/cjs/c-tags.cjs.entry.js.map +1 -1
- package/dist/cjs/c-toast.cjs.entry.js +60 -59
- package/dist/cjs/c-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/c-toasts.cjs.entry.js +64 -63
- package/dist/cjs/c-toasts.cjs.entry.js.map +1 -1
- package/dist/cjs/csc-ui.cjs.js +13 -11
- package/dist/cjs/csc-ui.cjs.js.map +1 -1
- package/dist/cjs/index-4fc978c6.js +1878 -0
- package/dist/cjs/index-4fc978c6.js.map +1 -0
- package/dist/cjs/index-f799b2ea.js +23 -0
- package/dist/cjs/{index-72dca436.js.map → index-f799b2ea.js.map} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +5 -3
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/c-accordion/c-accordion.js +164 -164
- package/dist/collection/components/c-accordion/c-accordion.js.map +1 -1
- package/dist/collection/components/c-accordion/test/c-accordion.visual.js +40 -40
- package/dist/collection/components/c-accordion/test/c-accordion.visual.js.map +1 -1
- package/dist/collection/components/c-accordion-item/c-accordion-item.js +254 -254
- package/dist/collection/components/c-accordion-item/c-accordion-item.js.map +1 -1
- package/dist/collection/components/c-alert/c-alert.js +51 -51
- package/dist/collection/components/c-alert/c-alert.js.map +1 -1
- package/dist/collection/components/c-alert/test/c-alert.visual.js +18 -18
- package/dist/collection/components/c-alert/test/c-alert.visual.js.map +1 -1
- package/dist/collection/components/c-autocomplete/c-autocomplete.js +740 -740
- package/dist/collection/components/c-autocomplete/c-autocomplete.js.map +1 -1
- package/dist/collection/components/c-autocomplete/test/c-autocomplete.visual.js +23 -23
- package/dist/collection/components/c-autocomplete/test/c-autocomplete.visual.js.map +1 -1
- package/dist/collection/components/c-badge/c-badge.js +15 -15
- package/dist/collection/components/c-badge/c-badge.js.map +1 -1
- package/dist/collection/components/c-button/c-button.js +502 -502
- package/dist/collection/components/c-button/c-button.js.map +1 -1
- package/dist/collection/components/c-button/test/c-button.visual.js +72 -72
- package/dist/collection/components/c-button/test/c-button.visual.js.map +1 -1
- package/dist/collection/components/c-card/c-card.js +128 -128
- package/dist/collection/components/c-card/c-card.js.map +1 -1
- package/dist/collection/components/c-card/test/c-card.visual.js +8 -8
- package/dist/collection/components/c-card/test/c-card.visual.js.map +1 -1
- package/dist/collection/components/c-card-actions/c-card-actions.js +64 -64
- package/dist/collection/components/c-card-actions/c-card-actions.js.map +1 -1
- package/dist/collection/components/c-card-content/c-card-content.js +15 -15
- package/dist/collection/components/c-card-content/c-card-content.js.map +1 -1
- package/dist/collection/components/c-card-title/c-card-title.js +45 -45
- package/dist/collection/components/c-card-title/c-card-title.js.map +1 -1
- package/dist/collection/components/c-checkbox/c-checkbox.css +1 -1
- package/dist/collection/components/c-checkbox/c-checkbox.js +355 -355
- package/dist/collection/components/c-checkbox/c-checkbox.js.map +1 -1
- package/dist/collection/components/c-checkbox/test/c-checkbox.visual.js +12 -12
- package/dist/collection/components/c-checkbox/test/c-checkbox.visual.js.map +1 -1
- package/dist/collection/components/c-csc-logo/c-csc-logo.js +41 -41
- package/dist/collection/components/c-csc-logo/c-csc-logo.js.map +1 -1
- package/dist/collection/components/c-data-table/c-data-table.js +1140 -1140
- package/dist/collection/components/c-data-table/c-data-table.js.map +1 -1
- package/dist/collection/components/c-data-table/test/c-data-table.visual.js +23 -23
- package/dist/collection/components/c-data-table/test/c-data-table.visual.js.map +1 -1
- package/dist/collection/components/c-data-table/test/data/index.js +96 -96
- package/dist/collection/components/c-data-table/test/data/index.js.map +1 -1
- package/dist/collection/components/c-dropdown/c-dropdown.js +615 -612
- package/dist/collection/components/c-dropdown/c-dropdown.js.map +1 -1
- package/dist/collection/components/c-icon/c-icon.js +84 -84
- package/dist/collection/components/c-icon/c-icon.js.map +1 -1
- package/dist/collection/components/c-icon-button/c-icon-button.js +234 -234
- package/dist/collection/components/c-icon-button/c-icon-button.js.map +1 -1
- package/dist/collection/components/c-icon-button/test/c-icon-button.visual.js +10 -10
- package/dist/collection/components/c-icon-button/test/c-icon-button.visual.js.map +1 -1
- package/dist/collection/components/c-input/c-input.js +805 -805
- package/dist/collection/components/c-input/c-input.js.map +1 -1
- package/dist/collection/components/c-link/c-link.js +103 -103
- package/dist/collection/components/c-link/c-link.js.map +1 -1
- package/dist/collection/components/c-link/test/c-link.visual.js +6 -6
- package/dist/collection/components/c-link/test/c-link.visual.js.map +1 -1
- package/dist/collection/components/c-list/c-list.js +65 -65
- package/dist/collection/components/c-list/c-list.js.map +1 -1
- package/dist/collection/components/c-list-item/c-list-item.js +213 -213
- package/dist/collection/components/c-list-item/c-list-item.js.map +1 -1
- package/dist/collection/components/c-list-item-title/c-list-item-title.js +44 -44
- package/dist/collection/components/c-list-item-title/c-list-item-title.js.map +1 -1
- package/dist/collection/components/c-loader/c-loader.js +114 -114
- package/dist/collection/components/c-loader/c-loader.js.map +1 -1
- package/dist/collection/components/c-login-button/c-login-button.js +78 -78
- package/dist/collection/components/c-login-button/c-login-button.js.map +1 -1
- package/dist/collection/components/c-login-buttons/c-login-buttons.js +15 -15
- package/dist/collection/components/c-login-buttons/c-login-buttons.js.map +1 -1
- package/dist/collection/components/c-login-card/c-login-card.js +166 -166
- package/dist/collection/components/c-login-card/c-login-card.js.map +1 -1
- package/dist/collection/components/c-login-card/test/c-login-card.visual.js +8 -8
- package/dist/collection/components/c-login-card/test/c-login-card.visual.js.map +1 -1
- package/dist/collection/components/c-login-card-actions/c-login-card-actions.js +49 -49
- package/dist/collection/components/c-login-card-actions/c-login-card-actions.js.map +1 -1
- package/dist/collection/components/c-login-card-content/c-login-card-content.js +15 -15
- package/dist/collection/components/c-login-card-content/c-login-card-content.js.map +1 -1
- package/dist/collection/components/c-login-card-title/c-login-card-title.js +15 -15
- package/dist/collection/components/c-login-card-title/c-login-card-title.js.map +1 -1
- package/dist/collection/components/c-main/c-main.js +40 -40
- package/dist/collection/components/c-main/c-main.js.map +1 -1
- package/dist/collection/components/c-menu/c-menu.js +273 -273
- package/dist/collection/components/c-menu/c-menu.js.map +1 -1
- package/dist/collection/components/c-menu/test/c-menu.visual.js +29 -29
- package/dist/collection/components/c-menu/test/c-menu.visual.js.map +1 -1
- package/dist/collection/components/c-menu-items/c-menu-items.js +407 -407
- package/dist/collection/components/c-menu-items/c-menu-items.js.map +1 -1
- package/dist/collection/components/c-message/c-message.js +149 -149
- package/dist/collection/components/c-message/c-message.js.map +1 -1
- package/dist/collection/components/c-modal/c-modal.js +236 -236
- package/dist/collection/components/c-modal/c-modal.js.map +1 -1
- package/dist/collection/components/c-navigation-button/c-navigation-button.js +15 -15
- package/dist/collection/components/c-navigation-button/c-navigation-button.js.map +1 -1
- package/dist/collection/components/c-option/c-option.js +95 -95
- package/dist/collection/components/c-option/c-option.js.map +1 -1
- package/dist/collection/components/c-option-value/c-option-value.js +15 -15
- package/dist/collection/components/c-option-value/c-option-value.js.map +1 -1
- package/dist/collection/components/c-otp-input/c-otp-input.js +339 -339
- package/dist/collection/components/c-otp-input/c-otp-input.js.map +1 -1
- package/dist/collection/components/c-page/c-page.js +52 -52
- package/dist/collection/components/c-page/c-page.js.map +1 -1
- package/dist/collection/components/c-pagination/c-pagination.js +342 -342
- package/dist/collection/components/c-pagination/c-pagination.js.map +1 -1
- package/dist/collection/components/c-pagination/test/c-pagination.visual.js +32 -32
- package/dist/collection/components/c-pagination/test/c-pagination.visual.js.map +1 -1
- package/dist/collection/components/c-progress-bar/c-progress-bar.js +148 -148
- package/dist/collection/components/c-progress-bar/c-progress-bar.js.map +1 -1
- package/dist/collection/components/c-progress-bar/test/c-progress-bar.visual.js +12 -12
- package/dist/collection/components/c-progress-bar/test/c-progress-bar.visual.js.map +1 -1
- package/dist/collection/components/c-radio/c-radio.js +77 -77
- package/dist/collection/components/c-radio/c-radio.js.map +1 -1
- package/dist/collection/components/c-radio-group/c-radio-group.js +370 -370
- package/dist/collection/components/c-radio-group/c-radio-group.js.map +1 -1
- package/dist/collection/components/c-radio-group/test/c-radio-group.visual.js +12 -12
- package/dist/collection/components/c-radio-group/test/c-radio-group.visual.js.map +1 -1
- package/dist/collection/components/c-radio-group/test/items.js +3 -3
- package/dist/collection/components/c-radio-group/test/items.js.map +1 -1
- package/dist/collection/components/c-ripple/c-ripple.js +89 -86
- package/dist/collection/components/c-ripple/c-ripple.js.map +1 -1
- package/dist/collection/components/c-row/c-row.js +116 -116
- package/dist/collection/components/c-row/c-row.js.map +1 -1
- package/dist/collection/components/c-select/c-select.js +745 -740
- package/dist/collection/components/c-select/c-select.js.map +1 -1
- package/dist/collection/components/c-select/test/c-select.visual.js +26 -26
- package/dist/collection/components/c-select/test/c-select.visual.js.map +1 -1
- package/dist/collection/components/c-select/test/items.js +7 -7
- package/dist/collection/components/c-select/test/items.js.map +1 -1
- package/dist/collection/components/c-side-navigation/c-side-navigation.js +141 -141
- package/dist/collection/components/c-side-navigation/c-side-navigation.js.map +1 -1
- package/dist/collection/components/c-side-navigation/test/c-side-navigation.visual.js +10 -10
- package/dist/collection/components/c-side-navigation/test/c-side-navigation.visual.js.map +1 -1
- package/dist/collection/components/c-side-navigation-item/c-side-navigation-item.js +223 -223
- package/dist/collection/components/c-side-navigation-item/c-side-navigation-item.js.map +1 -1
- package/dist/collection/components/c-side-navigation-title/c-side-navigation-title.js +15 -15
- package/dist/collection/components/c-side-navigation-title/c-side-navigation-title.js.map +1 -1
- package/dist/collection/components/c-slider/c-slider.js +375 -375
- package/dist/collection/components/c-slider/c-slider.js.map +1 -1
- package/dist/collection/components/c-spacer/c-spacer.js +15 -15
- package/dist/collection/components/c-spacer/c-spacer.js.map +1 -1
- package/dist/collection/components/c-spinner/c-spinner.js +88 -88
- package/dist/collection/components/c-spinner/c-spinner.js.map +1 -1
- package/dist/collection/components/c-status/c-status.js +40 -40
- package/dist/collection/components/c-status/c-status.js.map +1 -1
- package/dist/collection/components/c-status/test/c-status.visual.js +4 -4
- package/dist/collection/components/c-status/test/c-status.visual.js.map +1 -1
- package/dist/collection/components/c-step/c-step.js +69 -69
- package/dist/collection/components/c-step/c-step.js.map +1 -1
- package/dist/collection/components/c-steps/c-steps.js +117 -117
- package/dist/collection/components/c-steps/c-steps.js.map +1 -1
- package/dist/collection/components/c-steps/test/c-steps.visual.js +11 -11
- package/dist/collection/components/c-steps/test/c-steps.visual.js.map +1 -1
- package/dist/collection/components/c-sub-navigation-item/c-sub-navigation-item.js +135 -135
- package/dist/collection/components/c-sub-navigation-item/c-sub-navigation-item.js.map +1 -1
- package/dist/collection/components/c-swiper/c-swiper.js +205 -205
- package/dist/collection/components/c-swiper/c-swiper.js.map +1 -1
- package/dist/collection/components/c-swiper/test/c-swiper.visual.js +14 -14
- package/dist/collection/components/c-swiper/test/c-swiper.visual.js.map +1 -1
- package/dist/collection/components/c-swiper-tab/c-swiper-tab.js +203 -203
- package/dist/collection/components/c-swiper-tab/c-swiper-tab.js.map +1 -1
- package/dist/collection/components/c-switch/c-switch.js +214 -214
- package/dist/collection/components/c-switch/c-switch.js.map +1 -1
- package/dist/collection/components/c-switch/test/c-switch.visual.js +14 -14
- package/dist/collection/components/c-switch/test/c-switch.visual.js.map +1 -1
- package/dist/collection/components/c-tab/c-tab.js +224 -224
- package/dist/collection/components/c-tab/c-tab.js.map +1 -1
- package/dist/collection/components/c-tab-buttons/c-tab-buttons.js +263 -263
- package/dist/collection/components/c-tab-buttons/c-tab-buttons.js.map +1 -1
- package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.visual.js +31 -31
- package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.visual.js.map +1 -1
- package/dist/collection/components/c-tab-item/c-tab-item.js +96 -96
- package/dist/collection/components/c-tab-item/c-tab-item.js.map +1 -1
- package/dist/collection/components/c-tab-items/c-tab-items.js +134 -134
- package/dist/collection/components/c-tab-items/c-tab-items.js.map +1 -1
- package/dist/collection/components/c-table/c-table.js +84 -84
- package/dist/collection/components/c-table/c-table.js.map +1 -1
- package/dist/collection/components/c-tabs/c-tabs.js +576 -576
- package/dist/collection/components/c-tabs/c-tabs.js.map +1 -1
- package/dist/collection/components/c-tabs/test/c-tabs.visual.js +8 -8
- package/dist/collection/components/c-tabs/test/c-tabs.visual.js.map +1 -1
- package/dist/collection/components/c-tag/c-tag.js +189 -189
- package/dist/collection/components/c-tag/c-tag.js.map +1 -1
- package/dist/collection/components/c-tag/test/c-tag.visual.js +12 -12
- package/dist/collection/components/c-tag/test/c-tag.visual.js.map +1 -1
- package/dist/collection/components/c-tags/c-tags.js +48 -48
- package/dist/collection/components/c-tags/c-tags.js.map +1 -1
- package/dist/collection/components/c-text-field/c-text-field.js +609 -609
- package/dist/collection/components/c-text-field/c-text-field.js.map +1 -1
- package/dist/collection/components/c-text-field/test/c-text-field.visual.js +27 -27
- package/dist/collection/components/c-text-field/test/c-text-field.visual.js.map +1 -1
- package/dist/collection/components/c-toast/c-toast.js +138 -138
- package/dist/collection/components/c-toast/c-toast.js.map +1 -1
- package/dist/collection/components/c-toasts/c-toasts.js +185 -183
- package/dist/collection/components/c-toasts/c-toasts.js.map +1 -1
- package/dist/collection/components/c-toasts/test/c-toasts.visual.js +21 -21
- package/dist/collection/components/c-toasts/test/c-toasts.visual.js.map +1 -1
- package/dist/collection/components/c-toolbar/c-toolbar.js +15 -15
- package/dist/collection/components/c-toolbar/c-toolbar.js.map +1 -1
- package/dist/collection/components/c-toolbar/test/c-toolbar.visual.js +4 -4
- package/dist/collection/components/c-toolbar/test/c-toolbar.visual.js.map +1 -1
- package/dist/collection/types/index.js +10 -10
- package/dist/collection/types/index.js.map +1 -1
- package/dist/collection/utils/getScrollParent.js +19 -19
- package/dist/collection/utils/getScrollParent.js.map +1 -1
- package/dist/collection/utils/test/takeScreenshot.js +8 -8
- package/dist/collection/utils/test/takeScreenshot.js.map +1 -1
- package/dist/components/c-accordion-item.d.ts +2 -2
- package/dist/components/c-accordion-item.js +137 -136
- package/dist/components/c-accordion-item.js.map +1 -1
- package/dist/components/c-accordion.d.ts +2 -2
- package/dist/components/c-accordion.js +74 -73
- package/dist/components/c-accordion.js.map +1 -1
- package/dist/components/c-alert.d.ts +2 -2
- package/dist/components/c-alert.js +34 -33
- package/dist/components/c-alert.js.map +1 -1
- package/dist/components/c-autocomplete.d.ts +2 -2
- package/dist/components/c-autocomplete.js +343 -342
- package/dist/components/c-autocomplete.js.map +1 -1
- package/dist/components/c-badge.d.ts +2 -2
- package/dist/components/c-badge.js +1 -1
- package/dist/components/c-button.d.ts +2 -2
- package/dist/components/c-button.js +176 -175
- package/dist/components/c-button.js.map +1 -1
- package/dist/components/c-card-actions.d.ts +2 -2
- package/dist/components/c-card-actions.js +1 -1
- package/dist/components/c-card-content.d.ts +2 -2
- package/dist/components/c-card-content.js +23 -22
- package/dist/components/c-card-content.js.map +1 -1
- package/dist/components/c-card-title.d.ts +2 -2
- package/dist/components/c-card-title.js +51 -50
- package/dist/components/c-card-title.js.map +1 -1
- package/dist/components/c-card.d.ts +2 -2
- package/dist/components/c-card.js +103 -102
- package/dist/components/c-card.js.map +1 -1
- package/dist/components/c-checkbox.d.ts +2 -2
- package/dist/components/c-checkbox.js +1 -1
- package/dist/components/c-csc-logo.d.ts +2 -2
- package/dist/components/c-csc-logo.js +27 -26
- package/dist/components/c-csc-logo.js.map +1 -1
- package/dist/components/c-data-table.d.ts +2 -2
- package/dist/components/c-data-table.js +799 -798
- package/dist/components/c-data-table.js.map +1 -1
- package/dist/components/c-dropdown.d.ts +2 -2
- package/dist/components/c-dropdown.js +1 -1
- package/dist/components/c-icon-button.d.ts +2 -2
- package/dist/components/c-icon-button.js +1 -1
- package/dist/components/c-icon.d.ts +2 -2
- package/dist/components/c-icon.js +1 -1
- package/dist/components/c-input.d.ts +2 -2
- package/dist/components/c-input.js +1 -1
- package/dist/components/c-link.d.ts +2 -2
- package/dist/components/c-link.js +38 -37
- package/dist/components/c-link.js.map +1 -1
- package/dist/components/c-list-item-title.d.ts +2 -2
- package/dist/components/c-list-item-title.js +30 -29
- package/dist/components/c-list-item-title.js.map +1 -1
- package/dist/components/c-list-item.d.ts +2 -2
- package/dist/components/c-list-item.js +100 -99
- package/dist/components/c-list-item.js.map +1 -1
- package/dist/components/c-list.d.ts +2 -2
- package/dist/components/c-list.js +50 -49
- package/dist/components/c-list.js.map +1 -1
- package/dist/components/c-loader.d.ts +2 -2
- package/dist/components/c-loader.js +1 -1
- package/dist/components/c-login-button.d.ts +2 -2
- package/dist/components/c-login-button.js +31 -30
- package/dist/components/c-login-button.js.map +1 -1
- package/dist/components/c-login-buttons.d.ts +2 -2
- package/dist/components/c-login-buttons.js +23 -22
- package/dist/components/c-login-buttons.js.map +1 -1
- package/dist/components/c-login-card-actions.d.ts +2 -2
- package/dist/components/c-login-card-actions.js +32 -32
- package/dist/components/c-login-card-actions.js.map +1 -1
- package/dist/components/c-login-card-content.d.ts +2 -2
- package/dist/components/c-login-card-content.js +23 -22
- package/dist/components/c-login-card-content.js.map +1 -1
- package/dist/components/c-login-card-title.d.ts +2 -2
- package/dist/components/c-login-card-title.js +23 -22
- package/dist/components/c-login-card-title.js.map +1 -1
- package/dist/components/c-login-card.d.ts +2 -2
- package/dist/components/c-login-card.js +75 -74
- package/dist/components/c-login-card.js.map +1 -1
- package/dist/components/c-main.d.ts +2 -2
- package/dist/components/c-main.js +26 -25
- package/dist/components/c-main.js.map +1 -1
- package/dist/components/c-menu-items.d.ts +2 -2
- package/dist/components/c-menu-items.js +1 -1
- package/dist/components/c-menu.d.ts +2 -2
- package/dist/components/c-menu.js +1 -1
- package/dist/components/c-message.d.ts +2 -2
- package/dist/components/c-message.js +1 -1
- package/dist/components/c-modal.d.ts +2 -2
- package/dist/components/c-modal.js +133 -132
- package/dist/components/c-modal.js.map +1 -1
- package/dist/components/c-navigation-button.d.ts +2 -2
- package/dist/components/c-navigation-button.js +54 -53
- package/dist/components/c-navigation-button.js.map +1 -1
- package/dist/components/c-option-value.d.ts +2 -2
- package/dist/components/c-option-value.js +23 -22
- package/dist/components/c-option-value.js.map +1 -1
- package/dist/components/c-option.d.ts +2 -2
- package/dist/components/c-option.js +32 -31
- package/dist/components/c-option.js.map +1 -1
- package/dist/components/c-otp-input.d.ts +2 -2
- package/dist/components/c-otp-input.js +187 -186
- package/dist/components/c-otp-input.js.map +1 -1
- package/dist/components/c-page.d.ts +2 -2
- package/dist/components/c-page.js +38 -37
- package/dist/components/c-page.js.map +1 -1
- package/dist/components/c-pagination.d.ts +2 -2
- package/dist/components/c-pagination.js +1 -1
- package/dist/components/c-progress-bar.d.ts +2 -2
- package/dist/components/c-progress-bar.js +66 -65
- package/dist/components/c-progress-bar.js.map +1 -1
- package/dist/components/c-radio-group.d.ts +2 -2
- package/dist/components/c-radio-group.js +141 -140
- package/dist/components/c-radio-group.js.map +1 -1
- package/dist/components/c-radio.d.ts +2 -2
- package/dist/components/c-radio.js +30 -29
- package/dist/components/c-radio.js.map +1 -1
- package/dist/components/c-ripple.d.ts +2 -2
- package/dist/components/c-ripple.js +1 -1
- package/dist/components/c-row.d.ts +2 -2
- package/dist/components/c-row.js +42 -41
- package/dist/components/c-row.js.map +1 -1
- package/dist/components/c-select.d.ts +2 -2
- package/dist/components/c-select.js +390 -384
- package/dist/components/c-select.js.map +1 -1
- package/dist/components/c-side-navigation-item.d.ts +2 -2
- package/dist/components/c-side-navigation-item.js +145 -144
- package/dist/components/c-side-navigation-item.js.map +1 -1
- package/dist/components/c-side-navigation-title.d.ts +2 -2
- package/dist/components/c-side-navigation-title.js +23 -22
- package/dist/components/c-side-navigation-title.js.map +1 -1
- package/dist/components/c-side-navigation.d.ts +2 -2
- package/dist/components/c-side-navigation.js +120 -119
- package/dist/components/c-side-navigation.js.map +1 -1
- package/dist/components/c-slider.d.ts +2 -2
- package/dist/components/c-slider.js +121 -120
- package/dist/components/c-slider.js.map +1 -1
- package/dist/components/c-spacer.d.ts +2 -2
- package/dist/components/c-spacer.js +1 -1
- package/dist/components/c-spinner.d.ts +2 -2
- package/dist/components/c-spinner.js +1 -1
- package/dist/components/c-status.d.ts +2 -2
- package/dist/components/c-status.js +27 -26
- package/dist/components/c-status.js.map +1 -1
- package/dist/components/c-step.d.ts +2 -2
- package/dist/components/c-step.js +32 -31
- package/dist/components/c-step.js.map +1 -1
- package/dist/components/c-steps.d.ts +2 -2
- package/dist/components/c-steps.js +82 -81
- package/dist/components/c-steps.js.map +1 -1
- package/dist/components/c-sub-navigation-item.d.ts +2 -2
- package/dist/components/c-sub-navigation-item.js +68 -67
- package/dist/components/c-sub-navigation-item.js.map +1 -1
- package/dist/components/c-swiper-tab.d.ts +2 -2
- package/dist/components/c-swiper-tab.js +63 -62
- package/dist/components/c-swiper-tab.js.map +1 -1
- package/dist/components/c-swiper.d.ts +2 -2
- package/dist/components/c-swiper.js +164 -163
- package/dist/components/c-swiper.js.map +1 -1
- package/dist/components/c-switch.d.ts +2 -2
- package/dist/components/c-switch.js +77 -76
- package/dist/components/c-switch.js.map +1 -1
- package/dist/components/c-tab-buttons.d.ts +2 -2
- package/dist/components/c-tab-buttons.js +140 -139
- package/dist/components/c-tab-buttons.js.map +1 -1
- package/dist/components/c-tab-item.d.ts +2 -2
- package/dist/components/c-tab-item.js +46 -45
- package/dist/components/c-tab-item.js.map +1 -1
- package/dist/components/c-tab-items.d.ts +2 -2
- package/dist/components/c-tab-items.js +87 -86
- package/dist/components/c-tab-items.js.map +1 -1
- package/dist/components/c-tab.d.ts +2 -2
- package/dist/components/c-tab.js +73 -72
- package/dist/components/c-tab.js.map +1 -1
- package/dist/components/c-table.d.ts +2 -2
- package/dist/components/c-table.js +53 -52
- package/dist/components/c-table.js.map +1 -1
- package/dist/components/c-tabs.d.ts +2 -2
- package/dist/components/c-tabs.js +452 -451
- package/dist/components/c-tabs.js.map +1 -1
- package/dist/components/c-tag.d.ts +2 -2
- package/dist/components/c-tag.js +87 -86
- package/dist/components/c-tag.js.map +1 -1
- package/dist/components/c-tags.d.ts +2 -2
- package/dist/components/c-tags.js +34 -33
- package/dist/components/c-tags.js.map +1 -1
- package/dist/components/c-text-field.d.ts +2 -2
- package/dist/components/c-text-field.js +184 -183
- package/dist/components/c-text-field.js.map +1 -1
- package/dist/components/c-toast.d.ts +2 -2
- package/dist/components/c-toast.js +1 -1
- package/dist/components/c-toasts.d.ts +2 -2
- package/dist/components/c-toasts.js +117 -97
- package/dist/components/c-toasts.js.map +1 -1
- package/dist/components/c-toolbar.d.ts +2 -2
- package/dist/components/c-toolbar.js +23 -22
- package/dist/components/c-toolbar.js.map +1 -1
- package/dist/components/index.d.ts +143 -0
- package/dist/components/index.js +71 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/p-07477d1d.js +238 -0
- package/dist/components/{c-menu-items2.js.map → p-07477d1d.js.map} +1 -1
- package/dist/components/p-14a3bcd3.js +295 -0
- package/dist/components/p-14a3bcd3.js.map +1 -0
- package/dist/components/p-29be82c5.js +120 -0
- package/dist/components/p-29be82c5.js.map +1 -0
- package/dist/components/p-2fbcb4e1.js +1518 -0
- package/dist/components/p-2fbcb4e1.js.map +1 -0
- package/dist/components/{mdi.js → p-3ea8acb0.js} +2 -2
- package/dist/components/p-3ea8acb0.js.map +1 -0
- package/dist/components/{c-icon-button2.js → p-59f6f0d8.js} +87 -86
- package/dist/components/p-59f6f0d8.js.map +1 -0
- package/dist/components/p-6e1a2888.js +33 -0
- package/dist/components/p-6e1a2888.js.map +1 -0
- package/dist/components/p-7f5a7176.js +50 -0
- package/dist/components/p-7f5a7176.js.map +1 -0
- package/dist/components/p-8068bc3d.js +47 -0
- package/dist/components/p-8068bc3d.js.map +1 -0
- package/dist/components/p-aa75dd47.js +293 -0
- package/dist/components/p-aa75dd47.js.map +1 -0
- package/dist/components/p-c1d56d6b.js +43 -0
- package/dist/components/p-c1d56d6b.js.map +1 -0
- package/dist/components/p-c9e58781.js +89 -0
- package/dist/components/p-c9e58781.js.map +1 -0
- package/dist/components/p-cdf22a0b.js +69 -0
- package/dist/components/p-cdf22a0b.js.map +1 -0
- package/dist/components/p-d3b88201.js +354 -0
- package/dist/components/p-d3b88201.js.map +1 -0
- package/dist/components/p-e6f11335.js +186 -0
- package/dist/components/p-e6f11335.js.map +1 -0
- package/dist/components/p-f07ce1ae.js +64 -0
- package/dist/components/p-f07ce1ae.js.map +1 -0
- package/dist/components/p-f4b8b4e1.js +94 -0
- package/dist/components/p-f4b8b4e1.js.map +1 -0
- package/dist/components/{c-badge2.js → p-f932f64a.js} +24 -23
- package/dist/components/p-f932f64a.js.map +1 -0
- package/dist/csc-ui/csc-ui.esm.js +1 -1
- package/dist/csc-ui/csc-ui.esm.js.map +1 -1
- package/dist/csc-ui/index.esm.js +1 -1
- package/dist/csc-ui/index.esm.js.map +1 -1
- package/dist/csc-ui/p-020643f8.entry.js +2 -0
- package/dist/csc-ui/p-020643f8.entry.js.map +1 -0
- package/dist/csc-ui/p-06e13288.entry.js +2 -0
- package/dist/csc-ui/p-06e13288.entry.js.map +1 -0
- package/dist/csc-ui/p-10ef7ca7.entry.js +2 -0
- package/dist/csc-ui/p-10ef7ca7.entry.js.map +1 -0
- package/dist/csc-ui/{p-ce88995f.entry.js → p-1eae6514.entry.js} +2 -2
- package/dist/csc-ui/p-1eae6514.entry.js.map +1 -0
- package/dist/csc-ui/p-23b2eb59.entry.js +2 -0
- package/dist/csc-ui/p-23b2eb59.entry.js.map +1 -0
- package/dist/csc-ui/p-26526434.entry.js +2 -0
- package/dist/csc-ui/p-26526434.entry.js.map +1 -0
- package/dist/csc-ui/p-307f3fbc.entry.js +2 -0
- package/dist/csc-ui/p-307f3fbc.entry.js.map +1 -0
- package/dist/csc-ui/p-32fa684b.entry.js +2 -0
- package/dist/csc-ui/p-32fa684b.entry.js.map +1 -0
- package/dist/csc-ui/p-3cade358.entry.js +2 -0
- package/dist/csc-ui/p-3cade358.entry.js.map +1 -0
- package/dist/csc-ui/p-47f76af6.entry.js +2 -0
- package/dist/csc-ui/p-47f76af6.entry.js.map +1 -0
- package/dist/csc-ui/p-4a1cf8bf.entry.js +2 -0
- package/dist/csc-ui/p-4a1cf8bf.entry.js.map +1 -0
- package/dist/csc-ui/{p-231bc97b.entry.js → p-68b100e9.entry.js} +2 -2
- package/dist/csc-ui/p-68b100e9.entry.js.map +1 -0
- package/dist/csc-ui/{p-aa307b78.entry.js → p-6ec4e25e.entry.js} +2 -2
- package/dist/csc-ui/p-6ec4e25e.entry.js.map +1 -0
- package/dist/csc-ui/{p-9dc5b5ac.entry.js → p-752f983d.entry.js} +2 -2
- package/dist/csc-ui/p-752f983d.entry.js.map +1 -0
- package/dist/csc-ui/{p-2a104276.entry.js → p-75ef652d.entry.js} +2 -2
- package/dist/csc-ui/p-75ef652d.entry.js.map +1 -0
- package/dist/csc-ui/p-7e0e5d26.entry.js +2 -0
- package/dist/csc-ui/p-7e0e5d26.entry.js.map +1 -0
- package/dist/csc-ui/p-8315aa49.entry.js +2 -0
- package/dist/csc-ui/p-8315aa49.entry.js.map +1 -0
- package/dist/csc-ui/p-87b41fa4.entry.js +2 -0
- package/dist/csc-ui/p-87b41fa4.entry.js.map +1 -0
- package/dist/csc-ui/{p-fafac729.js → p-8f729e27.js} +1 -1
- package/dist/csc-ui/{p-fafac729.js.map → p-8f729e27.js.map} +1 -1
- package/dist/csc-ui/p-900e4f04.entry.js +2 -0
- package/dist/csc-ui/p-900e4f04.entry.js.map +1 -0
- package/dist/csc-ui/{p-18a7f4e9.entry.js → p-9ce6cc51.entry.js} +2 -2
- package/dist/csc-ui/p-9ce6cc51.entry.js.map +1 -0
- package/dist/csc-ui/p-a3e3248c.js +3 -0
- package/dist/csc-ui/p-a3e3248c.js.map +1 -0
- package/dist/csc-ui/p-a84641e0.entry.js +2 -0
- package/dist/csc-ui/p-a84641e0.entry.js.map +1 -0
- package/dist/csc-ui/{p-da7c0754.entry.js → p-ac5da8d1.entry.js} +2 -2
- package/dist/csc-ui/p-ac5da8d1.entry.js.map +1 -0
- package/dist/csc-ui/p-acce6632.entry.js +2 -0
- package/dist/csc-ui/p-acce6632.entry.js.map +1 -0
- package/dist/csc-ui/{p-52a3f4f8.entry.js → p-af181b9b.entry.js} +2 -2
- package/dist/csc-ui/p-af181b9b.entry.js.map +1 -0
- package/dist/csc-ui/{p-29b07261.entry.js → p-b09292de.entry.js} +2 -2
- package/dist/csc-ui/p-b09292de.entry.js.map +1 -0
- package/dist/csc-ui/p-b1ab606b.entry.js +2 -0
- package/dist/csc-ui/p-b1ab606b.entry.js.map +1 -0
- package/dist/csc-ui/{p-0b41f178.entry.js → p-b543f80e.entry.js} +2 -2
- package/dist/csc-ui/p-b543f80e.entry.js.map +1 -0
- package/dist/csc-ui/{p-61e0e61f.entry.js → p-bb62b147.entry.js} +2 -2
- package/dist/csc-ui/p-bb62b147.entry.js.map +1 -0
- package/dist/csc-ui/{p-0394ebc7.entry.js → p-bcb87140.entry.js} +2 -2
- package/dist/csc-ui/p-bcb87140.entry.js.map +1 -0
- package/dist/csc-ui/p-c222df06.entry.js +2 -0
- package/dist/csc-ui/p-c222df06.entry.js.map +1 -0
- package/dist/csc-ui/{p-886f0d1d.entry.js → p-c80fa43f.entry.js} +2 -2
- package/dist/csc-ui/p-c80fa43f.entry.js.map +1 -0
- package/dist/csc-ui/p-d32e42fe.js.map +1 -1
- package/dist/csc-ui/p-d67b56d8.entry.js +2 -0
- package/dist/csc-ui/p-d67b56d8.entry.js.map +1 -0
- package/dist/csc-ui/p-e0e78a0d.entry.js +2 -0
- package/dist/csc-ui/p-e0e78a0d.entry.js.map +1 -0
- package/dist/csc-ui/p-e1255160.js +2 -0
- package/dist/csc-ui/p-e1255160.js.map +1 -0
- package/dist/csc-ui/{p-1aeab024.entry.js → p-e2a40b86.entry.js} +2 -2
- package/dist/csc-ui/p-e2a40b86.entry.js.map +1 -0
- package/dist/csc-ui/p-eafe038d.entry.js +2 -0
- package/dist/csc-ui/p-eafe038d.entry.js.map +1 -0
- package/dist/csc-ui/{p-0e3cf775.entry.js → p-f164b124.entry.js} +2 -2
- package/dist/csc-ui/p-f164b124.entry.js.map +1 -0
- package/dist/esm/app-globals-0f993ce5.js +5 -0
- package/dist/esm/app-globals-0f993ce5.js.map +1 -0
- package/dist/esm/c-accordion-item.entry.js +108 -107
- package/dist/esm/c-accordion-item.entry.js.map +1 -1
- package/dist/esm/c-accordion.entry.js +53 -52
- package/dist/esm/c-accordion.entry.js.map +1 -1
- package/dist/esm/c-alert.entry.js +17 -16
- package/dist/esm/c-alert.entry.js.map +1 -1
- package/dist/esm/c-autocomplete_34.entry.js +2437 -2398
- package/dist/esm/c-autocomplete_34.entry.js.map +1 -1
- package/dist/esm/c-data-table.entry.js +678 -677
- package/dist/esm/c-data-table.entry.js.map +1 -1
- package/dist/esm/c-link.entry.js +19 -18
- package/dist/esm/c-link.entry.js.map +1 -1
- package/dist/esm/c-list-item-title.entry.js +14 -13
- package/dist/esm/c-list-item-title.entry.js.map +1 -1
- package/dist/esm/c-list-item.entry.js +70 -69
- package/dist/esm/c-list-item.entry.js.map +1 -1
- package/dist/esm/c-list.entry.js +33 -32
- package/dist/esm/c-list.entry.js.map +1 -1
- package/dist/esm/c-login-button.entry.js +13 -12
- package/dist/esm/c-login-button.entry.js.map +1 -1
- package/dist/esm/c-login-buttons.entry.js +9 -8
- package/dist/esm/c-login-buttons.entry.js.map +1 -1
- package/dist/esm/c-login-card-actions.entry.js +9 -9
- package/dist/esm/c-login-card-actions.entry.js.map +1 -1
- package/dist/esm/c-login-card-content.entry.js +9 -8
- package/dist/esm/c-login-card-content.entry.js.map +1 -1
- package/dist/esm/c-login-card-title.entry.js +9 -8
- package/dist/esm/c-login-card-title.entry.js.map +1 -1
- package/dist/esm/c-login-card.entry.js +54 -53
- package/dist/esm/c-login-card.entry.js.map +1 -1
- package/dist/esm/c-menu_2.entry.js +317 -315
- package/dist/esm/c-menu_2.entry.js.map +1 -1
- package/dist/esm/c-modal.entry.js +109 -108
- package/dist/esm/c-modal.entry.js.map +1 -1
- package/dist/esm/c-option-value.entry.js +9 -8
- package/dist/esm/c-option-value.entry.js.map +1 -1
- package/dist/esm/c-pagination.entry.js +214 -213
- package/dist/esm/c-pagination.entry.js.map +1 -1
- package/dist/esm/c-progress-bar.entry.js +46 -45
- package/dist/esm/c-progress-bar.entry.js.map +1 -1
- package/dist/esm/c-row.entry.js +23 -22
- package/dist/esm/c-row.entry.js.map +1 -1
- package/dist/esm/c-slider.entry.js +87 -86
- package/dist/esm/c-slider.entry.js.map +1 -1
- package/dist/esm/c-status.entry.js +11 -10
- package/dist/esm/c-status.entry.js.map +1 -1
- package/dist/esm/c-step.entry.js +15 -14
- package/dist/esm/c-step.entry.js.map +1 -1
- package/dist/esm/c-steps.entry.js +62 -61
- package/dist/esm/c-steps.entry.js.map +1 -1
- package/dist/esm/c-swiper-tab.entry.js +35 -34
- package/dist/esm/c-swiper-tab.entry.js.map +1 -1
- package/dist/esm/c-swiper.entry.js +119 -118
- package/dist/esm/c-swiper.entry.js.map +1 -1
- package/dist/esm/c-tab-buttons.entry.js +118 -117
- package/dist/esm/c-tab-buttons.entry.js.map +1 -1
- package/dist/esm/c-tab-item.entry.js +29 -28
- package/dist/esm/c-tab-item.entry.js.map +1 -1
- package/dist/esm/c-tab-items.entry.js +67 -66
- package/dist/esm/c-tab-items.entry.js.map +1 -1
- package/dist/esm/c-tab.entry.js +46 -45
- package/dist/esm/c-tab.entry.js.map +1 -1
- package/dist/esm/c-tabs.entry.js +394 -393
- package/dist/esm/c-tabs.entry.js.map +1 -1
- package/dist/esm/c-tag.entry.js +34 -33
- package/dist/esm/c-tag.entry.js.map +1 -1
- package/dist/esm/c-tags.entry.js +18 -17
- package/dist/esm/c-tags.entry.js.map +1 -1
- package/dist/esm/c-toast.entry.js +60 -59
- package/dist/esm/c-toast.entry.js.map +1 -1
- package/dist/esm/c-toasts.entry.js +64 -63
- package/dist/esm/c-toasts.entry.js.map +1 -1
- package/dist/esm/csc-ui.js +14 -12
- package/dist/esm/csc-ui.js.map +1 -1
- package/dist/esm/index-28ad175b.js +23 -0
- package/dist/esm/{index-dfaed2a4.js.map → index-28ad175b.js.map} +1 -1
- package/dist/esm/index-5e4179ca.js +1848 -0
- package/dist/esm/index-5e4179ca.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +6 -4
- package/dist/esm/loader.js.map +1 -1
- package/dist/playwright.config.js +40 -40
- package/dist/playwright.config.js.map +1 -1
- package/dist/stencil.config.js +41 -33
- package/dist/stencil.config.js.map +1 -1
- package/dist/types/components/c-accordion/c-accordion.d.ts +15 -15
- package/dist/types/components/c-accordion-item/c-accordion-item.d.ts +27 -27
- package/dist/types/components/c-alert/c-alert.d.ts +3 -3
- package/dist/types/components/c-autocomplete/c-autocomplete.d.ts +60 -60
- package/dist/types/components/c-badge/c-badge.d.ts +1 -1
- package/dist/types/components/c-button/c-button.d.ts +33 -33
- package/dist/types/components/c-card/c-card.d.ts +10 -10
- package/dist/types/components/c-card-actions/c-card-actions.d.ts +3 -3
- package/dist/types/components/c-card-content/c-card-content.d.ts +1 -1
- package/dist/types/components/c-card-title/c-card-title.d.ts +12 -12
- package/dist/types/components/c-checkbox/c-checkbox.d.ts +26 -26
- package/dist/types/components/c-csc-logo/c-csc-logo.d.ts +2 -2
- package/dist/types/components/c-data-table/c-data-table.d.ts +109 -109
- package/dist/types/components/c-dropdown/c-dropdown.d.ts +52 -52
- package/dist/types/components/c-icon/c-icon.d.ts +7 -7
- package/dist/types/components/c-icon-button/c-icon-button.d.ts +16 -16
- package/dist/types/components/c-input/c-input.d.ts +60 -60
- package/dist/types/components/c-link/c-link.d.ts +5 -5
- package/dist/types/components/c-list/c-list.d.ts +6 -6
- package/dist/types/components/c-list-item/c-list-item.d.ts +14 -14
- package/dist/types/components/c-list-item-title/c-list-item-title.d.ts +2 -2
- package/dist/types/components/c-loader/c-loader.d.ts +8 -8
- package/dist/types/components/c-login-button/c-login-button.d.ts +4 -4
- package/dist/types/components/c-login-buttons/c-login-buttons.d.ts +1 -1
- package/dist/types/components/c-login-card/c-login-card.d.ts +16 -16
- package/dist/types/components/c-login-card-actions/c-login-card-actions.d.ts +3 -3
- package/dist/types/components/c-login-card-content/c-login-card-content.d.ts +1 -1
- package/dist/types/components/c-login-card-title/c-login-card-title.d.ts +1 -1
- package/dist/types/components/c-main/c-main.d.ts +2 -2
- package/dist/types/components/c-menu/c-menu.d.ts +23 -23
- package/dist/types/components/c-menu-items/c-menu-items.d.ts +39 -39
- package/dist/types/components/c-message/c-message.d.ts +16 -16
- package/dist/types/components/c-modal/c-modal.d.ts +22 -22
- package/dist/types/components/c-navigation-button/c-navigation-button.d.ts +1 -1
- package/dist/types/components/c-option/c-option.d.ts +5 -5
- package/dist/types/components/c-option-value/c-option-value.d.ts +1 -1
- package/dist/types/components/c-otp-input/c-otp-input.d.ts +32 -32
- package/dist/types/components/c-page/c-page.d.ts +6 -6
- package/dist/types/components/c-pagination/c-pagination.d.ts +34 -34
- package/dist/types/components/c-progress-bar/c-progress-bar.d.ts +7 -7
- package/dist/types/components/c-radio/c-radio.d.ts +4 -4
- package/dist/types/components/c-radio-group/c-radio-group.d.ts +27 -27
- package/dist/types/components/c-ripple/c-ripple.d.ts +5 -5
- package/dist/types/components/c-row/c-row.d.ts +7 -7
- package/dist/types/components/c-select/c-select.d.ts +65 -63
- package/dist/types/components/c-side-navigation/c-side-navigation.d.ts +13 -13
- package/dist/types/components/c-side-navigation-item/c-side-navigation-item.d.ts +18 -18
- package/dist/types/components/c-side-navigation-title/c-side-navigation-title.d.ts +1 -1
- package/dist/types/components/c-slider/c-slider.d.ts +29 -29
- package/dist/types/components/c-spacer/c-spacer.d.ts +1 -1
- package/dist/types/components/c-spinner/c-spinner.d.ts +4 -4
- package/dist/types/components/c-status/c-status.d.ts +2 -2
- package/dist/types/components/c-step/c-step.d.ts +3 -3
- package/dist/types/components/c-steps/c-steps.d.ts +13 -13
- package/dist/types/components/c-sub-navigation-item/c-sub-navigation-item.d.ts +8 -8
- package/dist/types/components/c-swiper/c-swiper.d.ts +22 -22
- package/dist/types/components/c-swiper-tab/c-swiper-tab.d.ts +13 -13
- package/dist/types/components/c-switch/c-switch.d.ts +16 -16
- package/dist/types/components/c-tab/c-tab.d.ts +16 -16
- package/dist/types/components/c-tab-buttons/c-tab-buttons.d.ts +20 -20
- package/dist/types/components/c-tab-item/c-tab-item.d.ts +9 -9
- package/dist/types/components/c-tab-items/c-tab-items.d.ts +16 -16
- package/dist/types/components/c-table/c-table.d.ts +11 -11
- package/dist/types/components/c-tabs/c-tabs.d.ts +62 -62
- package/dist/types/components/c-tag/c-tag.d.ts +10 -10
- package/dist/types/components/c-tags/c-tags.d.ts +4 -4
- package/dist/types/components/c-text-field/c-text-field.d.ts +47 -47
- package/dist/types/components/c-toast/c-toast.d.ts +15 -15
- package/dist/types/components/c-toasts/c-toasts.d.ts +14 -14
- package/dist/types/components/c-toolbar/c-toolbar.d.ts +1 -1
- package/dist/types/components.d.ts +8 -8
- package/dist/types/stencil-public-runtime.d.ts +15 -10
- package/dist/types/types/index.d.ts +99 -99
- package/loader/cdn.js +1 -3
- package/loader/index.cjs.js +1 -3
- package/loader/index.d.ts +3 -0
- package/loader/index.es2017.js +1 -3
- package/loader/index.js +1 -3
- package/package.json +16 -12
- package/vscode-data.json +9 -9
- package/dist/cjs/index-72dca436.js +0 -23
- package/dist/cjs/index-91ba22ab.js +0 -2603
- package/dist/cjs/index-91ba22ab.js.map +0 -1
- package/dist/collection/components/c-accordion/test/c-accordion.e2e.js +0 -140
- package/dist/collection/components/c-accordion/test/c-accordion.e2e.js.map +0 -1
- package/dist/collection/components/c-accordion/test/c-accordion.spec.js +0 -72
- package/dist/collection/components/c-accordion/test/c-accordion.spec.js.map +0 -1
- package/dist/collection/components/c-alert/test/c-alert.spec.js +0 -54
- package/dist/collection/components/c-alert/test/c-alert.spec.js.map +0 -1
- package/dist/collection/components/c-autocomplete/test/c-autocomplete.e2e.js +0 -35
- package/dist/collection/components/c-autocomplete/test/c-autocomplete.e2e.js.map +0 -1
- package/dist/collection/components/c-badge/test/c-badge.e2e.js +0 -10
- package/dist/collection/components/c-badge/test/c-badge.e2e.js.map +0 -1
- package/dist/collection/components/c-badge/test/c-badge.spec.js +0 -18
- package/dist/collection/components/c-badge/test/c-badge.spec.js.map +0 -1
- package/dist/collection/components/c-button/test/c-button.spec.js +0 -207
- package/dist/collection/components/c-button/test/c-button.spec.js.map +0 -1
- package/dist/collection/components/c-card/test/c-card.e2e.js +0 -17
- package/dist/collection/components/c-card/test/c-card.e2e.js.map +0 -1
- package/dist/collection/components/c-card/test/c-card.spec.js +0 -142
- package/dist/collection/components/c-card/test/c-card.spec.js.map +0 -1
- package/dist/collection/components/c-card-actions/test/c-card-actions.spec.js +0 -115
- package/dist/collection/components/c-card-actions/test/c-card-actions.spec.js.map +0 -1
- package/dist/collection/components/c-checkbox/test/c-checkbox.e2e.js +0 -60
- package/dist/collection/components/c-checkbox/test/c-checkbox.e2e.js.map +0 -1
- package/dist/collection/components/c-checkbox/test/c-checkbox.spec.js +0 -40
- package/dist/collection/components/c-checkbox/test/c-checkbox.spec.js.map +0 -1
- package/dist/collection/components/c-data-table/test/c-data-table.e2e.js +0 -125
- package/dist/collection/components/c-data-table/test/c-data-table.e2e.js.map +0 -1
- package/dist/collection/components/c-data-table/test/c-data-table.spec.js +0 -107
- package/dist/collection/components/c-data-table/test/c-data-table.spec.js.map +0 -1
- package/dist/collection/components/c-icon/test/c-icon.spec.js +0 -12
- package/dist/collection/components/c-icon/test/c-icon.spec.js.map +0 -1
- package/dist/collection/components/c-icon-button/test/c-icon-button.spec.js +0 -82
- package/dist/collection/components/c-icon-button/test/c-icon-button.spec.js.map +0 -1
- package/dist/collection/components/c-link/test/c-link.spec.js +0 -75
- package/dist/collection/components/c-link/test/c-link.spec.js.map +0 -1
- package/dist/collection/components/c-loader/test/c-loader.e2e.js +0 -16
- package/dist/collection/components/c-loader/test/c-loader.e2e.js.map +0 -1
- package/dist/collection/components/c-loader/test/c-loader.spec.js +0 -28
- package/dist/collection/components/c-loader/test/c-loader.spec.js.map +0 -1
- package/dist/collection/components/c-login-card/test/c-login-card.spec.js +0 -151
- package/dist/collection/components/c-login-card/test/c-login-card.spec.js.map +0 -1
- package/dist/collection/components/c-main/test/c-main.spec.js +0 -19
- package/dist/collection/components/c-main/test/c-main.spec.js.map +0 -1
- package/dist/collection/components/c-menu/test/c-menu.spec.js +0 -46
- package/dist/collection/components/c-menu/test/c-menu.spec.js.map +0 -1
- package/dist/collection/components/c-modal/test/c-modal.spec.js +0 -75
- package/dist/collection/components/c-modal/test/c-modal.spec.js.map +0 -1
- package/dist/collection/components/c-otp-input/test/c-otp-input.e2e.js +0 -10
- package/dist/collection/components/c-otp-input/test/c-otp-input.e2e.js.map +0 -1
- package/dist/collection/components/c-otp-input/test/c-otp-input.spec.js +0 -18
- package/dist/collection/components/c-otp-input/test/c-otp-input.spec.js.map +0 -1
- package/dist/collection/components/c-pagination/test/c-pagination.e2e.js +0 -47
- package/dist/collection/components/c-pagination/test/c-pagination.e2e.js.map +0 -1
- package/dist/collection/components/c-progress-bar/test/c-progress-bar.spec.js +0 -54
- package/dist/collection/components/c-progress-bar/test/c-progress-bar.spec.js.map +0 -1
- package/dist/collection/components/c-radio-group/test/c-radio-group.e2e.js +0 -39
- package/dist/collection/components/c-radio-group/test/c-radio-group.e2e.js.map +0 -1
- package/dist/collection/components/c-radio-group/test/c-radio-group.spec.js +0 -28
- package/dist/collection/components/c-radio-group/test/c-radio-group.spec.js.map +0 -1
- package/dist/collection/components/c-row/test/c-row.spec.js +0 -137
- package/dist/collection/components/c-row/test/c-row.spec.js.map +0 -1
- package/dist/collection/components/c-select/test/c-select.e2e.js +0 -66
- package/dist/collection/components/c-select/test/c-select.e2e.js.map +0 -1
- package/dist/collection/components/c-select/test/c-select.spec.js +0 -38
- package/dist/collection/components/c-select/test/c-select.spec.js.map +0 -1
- package/dist/collection/components/c-side-navigation/test/c-side-navigation.spec.js +0 -21
- package/dist/collection/components/c-side-navigation/test/c-side-navigation.spec.js.map +0 -1
- package/dist/collection/components/c-spacer/test/c-spacer.spec.js +0 -12
- package/dist/collection/components/c-spacer/test/c-spacer.spec.js.map +0 -1
- package/dist/collection/components/c-status/test/c-status.spec.js +0 -40
- package/dist/collection/components/c-status/test/c-status.spec.js.map +0 -1
- package/dist/collection/components/c-steps/test/c-steps.e2e.js +0 -35
- package/dist/collection/components/c-steps/test/c-steps.e2e.js.map +0 -1
- package/dist/collection/components/c-swiper/test/c-swiper.e2e.js +0 -83
- package/dist/collection/components/c-swiper/test/c-swiper.e2e.js.map +0 -1
- package/dist/collection/components/c-switch/test/c-switch.e2e.js +0 -51
- package/dist/collection/components/c-switch/test/c-switch.e2e.js.map +0 -1
- package/dist/collection/components/c-switch/test/c-switch.spec.js +0 -40
- package/dist/collection/components/c-switch/test/c-switch.spec.js.map +0 -1
- package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.e2e.js +0 -91
- package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.e2e.js.map +0 -1
- package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.spec.js +0 -42
- package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.spec.js.map +0 -1
- package/dist/collection/components/c-tabs/test/c-tabs.e2e.js +0 -74
- package/dist/collection/components/c-tabs/test/c-tabs.e2e.js.map +0 -1
- package/dist/collection/components/c-tabs/test/c-tabs.spec.js +0 -85
- package/dist/collection/components/c-tabs/test/c-tabs.spec.js.map +0 -1
- package/dist/collection/components/c-tag/test/c-tag.spec.js +0 -50
- package/dist/collection/components/c-tag/test/c-tag.spec.js.map +0 -1
- package/dist/collection/components/c-text-field/test/c-text-field.e2e.js +0 -12
- package/dist/collection/components/c-text-field/test/c-text-field.e2e.js.map +0 -1
- package/dist/collection/components/c-text-field/test/c-text-field.spec.js +0 -33
- package/dist/collection/components/c-text-field/test/c-text-field.spec.js.map +0 -1
- package/dist/collection/components/c-toasts/test/c-toasts.spec.js +0 -61
- package/dist/collection/components/c-toasts/test/c-toasts.spec.js.map +0 -1
- package/dist/collection/components/c-toolbar/test/c-toolbar.spec.js +0 -12
- package/dist/collection/components/c-toolbar/test/c-toolbar.spec.js.map +0 -1
- package/dist/collection/dist/styles/.gitkeep +0 -0
- package/dist/collection/dist/styles/css/theme.css +0 -102
- package/dist/collection/dist/styles/scss/_theme.scss +0 -100
- package/dist/collection/dist/styles/tailwind/theme.js +0 -120
- package/dist/components/c-badge2.js.map +0 -1
- package/dist/components/c-card-actions2.js +0 -42
- package/dist/components/c-card-actions2.js.map +0 -1
- package/dist/components/c-checkbox2.js +0 -119
- package/dist/components/c-checkbox2.js.map +0 -1
- package/dist/components/c-dropdown2.js +0 -353
- package/dist/components/c-dropdown2.js.map +0 -1
- package/dist/components/c-icon-button2.js.map +0 -1
- package/dist/components/c-icon2.js +0 -46
- package/dist/components/c-icon2.js.map +0 -1
- package/dist/components/c-input2.js +0 -292
- package/dist/components/c-input2.js.map +0 -1
- package/dist/components/c-loader2.js +0 -63
- package/dist/components/c-loader2.js.map +0 -1
- package/dist/components/c-menu-items2.js +0 -237
- package/dist/components/c-menu2.js +0 -185
- package/dist/components/c-menu2.js.map +0 -1
- package/dist/components/c-message2.js +0 -88
- package/dist/components/c-message2.js.map +0 -1
- package/dist/components/c-pagination2.js +0 -294
- package/dist/components/c-pagination2.js.map +0 -1
- package/dist/components/c-ripple2.js +0 -68
- package/dist/components/c-ripple2.js.map +0 -1
- package/dist/components/c-spacer2.js +0 -32
- package/dist/components/c-spacer2.js.map +0 -1
- package/dist/components/c-spinner2.js +0 -49
- package/dist/components/c-spinner2.js.map +0 -1
- package/dist/components/c-toast2.js +0 -93
- package/dist/components/c-toast2.js.map +0 -1
- package/dist/components/index2.js +0 -23
- package/dist/components/index2.js.map +0 -1
- package/dist/components/mdi.js.map +0 -1
- package/dist/csc-ui/dist/styles/.gitkeep +0 -0
- package/dist/csc-ui/dist/styles/css/theme.css +0 -102
- package/dist/csc-ui/dist/styles/scss/_theme.scss +0 -100
- package/dist/csc-ui/dist/styles/tailwind/theme.js +0 -120
- package/dist/csc-ui/p-0394ebc7.entry.js.map +0 -1
- package/dist/csc-ui/p-0ad7a08a.entry.js +0 -2
- package/dist/csc-ui/p-0ad7a08a.entry.js.map +0 -1
- package/dist/csc-ui/p-0b41f178.entry.js.map +0 -1
- package/dist/csc-ui/p-0e3cf775.entry.js.map +0 -1
- package/dist/csc-ui/p-18a7f4e9.entry.js.map +0 -1
- package/dist/csc-ui/p-1aeab024.entry.js.map +0 -1
- package/dist/csc-ui/p-231bc97b.entry.js.map +0 -1
- package/dist/csc-ui/p-29b07261.entry.js.map +0 -1
- package/dist/csc-ui/p-2a104276.entry.js.map +0 -1
- package/dist/csc-ui/p-33c354c4.entry.js +0 -2
- package/dist/csc-ui/p-33c354c4.entry.js.map +0 -1
- package/dist/csc-ui/p-4dbc9e96.entry.js +0 -2
- package/dist/csc-ui/p-4dbc9e96.entry.js.map +0 -1
- package/dist/csc-ui/p-4f568e1f.entry.js +0 -2
- package/dist/csc-ui/p-4f568e1f.entry.js.map +0 -1
- package/dist/csc-ui/p-52a3f4f8.entry.js.map +0 -1
- package/dist/csc-ui/p-54d44ab9.entry.js +0 -2
- package/dist/csc-ui/p-54d44ab9.entry.js.map +0 -1
- package/dist/csc-ui/p-565ec8e4.js +0 -3
- package/dist/csc-ui/p-565ec8e4.js.map +0 -1
- package/dist/csc-ui/p-5dd84926.entry.js +0 -2
- package/dist/csc-ui/p-5dd84926.entry.js.map +0 -1
- package/dist/csc-ui/p-61e0e61f.entry.js.map +0 -1
- package/dist/csc-ui/p-7a7da729.entry.js +0 -2
- package/dist/csc-ui/p-7a7da729.entry.js.map +0 -1
- package/dist/csc-ui/p-80cdd280.entry.js +0 -2
- package/dist/csc-ui/p-80cdd280.entry.js.map +0 -1
- package/dist/csc-ui/p-886f0d1d.entry.js.map +0 -1
- package/dist/csc-ui/p-908b21bf.entry.js +0 -2
- package/dist/csc-ui/p-908b21bf.entry.js.map +0 -1
- package/dist/csc-ui/p-9dc5b5ac.entry.js.map +0 -1
- package/dist/csc-ui/p-a33ca657.entry.js +0 -2
- package/dist/csc-ui/p-a33ca657.entry.js.map +0 -1
- package/dist/csc-ui/p-aa307b78.entry.js.map +0 -1
- package/dist/csc-ui/p-b8fd106b.entry.js +0 -2
- package/dist/csc-ui/p-b8fd106b.entry.js.map +0 -1
- package/dist/csc-ui/p-bae44625.entry.js +0 -2
- package/dist/csc-ui/p-bae44625.entry.js.map +0 -1
- package/dist/csc-ui/p-c9e04eb5.entry.js +0 -2
- package/dist/csc-ui/p-c9e04eb5.entry.js.map +0 -1
- package/dist/csc-ui/p-cb4bce81.entry.js +0 -2
- package/dist/csc-ui/p-cb4bce81.entry.js.map +0 -1
- package/dist/csc-ui/p-ce88995f.entry.js.map +0 -1
- package/dist/csc-ui/p-da7c0754.entry.js.map +0 -1
- package/dist/csc-ui/p-da7d18c9.entry.js +0 -2
- package/dist/csc-ui/p-da7d18c9.entry.js.map +0 -1
- package/dist/csc-ui/p-e8bd7a76.entry.js +0 -2
- package/dist/csc-ui/p-e8bd7a76.entry.js.map +0 -1
- package/dist/csc-ui/p-e922c869.entry.js +0 -2
- package/dist/csc-ui/p-e922c869.entry.js.map +0 -1
- package/dist/csc-ui/p-e9ec927b.entry.js +0 -2
- package/dist/csc-ui/p-e9ec927b.entry.js.map +0 -1
- package/dist/csc-ui/p-f6ca71df.entry.js +0 -2
- package/dist/csc-ui/p-f6ca71df.entry.js.map +0 -1
- package/dist/csc-ui/p-fadae1ab.entry.js +0 -2
- package/dist/csc-ui/p-fadae1ab.entry.js.map +0 -1
- package/dist/csc-ui/p-fc580f2c.entry.js +0 -2
- package/dist/csc-ui/p-fc580f2c.entry.js.map +0 -1
- package/dist/esm/index-47956d53.js +0 -2573
- package/dist/esm/index-47956d53.js.map +0 -1
- package/dist/esm/index-dfaed2a4.js +0 -23
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/loader/cdn.js +0 -3
- package/dist/loader/index.cjs.js +0 -3
- package/dist/loader/index.d.ts +0 -21
- package/dist/loader/index.es2017.js +0 -3
- package/dist/loader/index.js +0 -4
- package/dist/loader/package.json +0 -11
- package/dist/styles/.gitkeep +0 -0
|
@@ -2,423 +2,424 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-4fc978c6.js');
|
|
6
6
|
const mdi = require('./mdi-66dcba4d.js');
|
|
7
7
|
|
|
8
8
|
const cTabsCss = "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-tabs){--_c-tabs-border-color:var(--c-tabs-border-color, var(--c-tertiary-200));--_c-tabs-indicator-color:var(--c-tabs-indicator-color, var(--c-primary-600));--_c-tabs-transition-speed:0.001ms;display:block;width:100%;transform:translateX(0%);max-width:100%}:host(.c-tabs) .c-tabs__container{display:grid;grid-template-columns:1fr;align-items:center;gap:4px;--c-icon-button-border-radius:4px}:host(.c-tabs) .c-tabs__tabs{display:flex;overflow:hidden;padding:4px;position:relative;margin:-4px}:host(.c-tabs) .c-tabs__tabs::after{position:absolute;content:\"\";bottom:4px;inset-inline:0;height:1px;background-color:var(--_c-tabs-border-color)}:host(.c-tabs) .c-tabs__scroll{transform:translateX(var(--_c-tabs-scroll-position-x));transition:transform var(--_c-tabs-transition-speed) cubic-bezier(0.075, 0.82, 0.165, 1);display:flex;margin:0;padding:0;position:relative;flex-grow:1}:host(.c-tabs) .c-tabs__scroll::after{content:\"\";position:absolute;left:0;right:0;bottom:0;height:3px;scale:var(--_c-tabs-indicator-width, 0.125) 1;opacity:0.01;translate:var(--_c-tabs-indicator-left, 0) 0;transform-origin:left;transition:scale var(--_c-tabs-transition-speed) cubic-bezier(0.075, 0.82, 0.165, 1), translate var(--_c-tabs-transition-speed) cubic-bezier(0.075, 0.82, 0.165, 1);background:var(--_c-tabs-indicator-color)}:host(.c-tabs) .c-tabs__content{display:flex}:host(.c-tabs) ::slotted(c-tab-buttons){flex-grow:1}:host(.c-tabs.c-tabs--justify-start:not(.c-tabs--vertical)) ::slotted(c-tab-buttons),:host(.c-tabs.c-tabs--justify-start:not(.c-tabs--vertical)) ::slotted(c-tab){flex-grow:0}:host(.c-tabs.c-tabs--justify-end:not(.c-tabs--vertical)) .c-tabs__scroll{justify-content:end}:host(.c-tabs.c-tabs--justify-end:not(.c-tabs--vertical)) ::slotted(c-tab-buttons),:host(.c-tabs.c-tabs--justify-end:not(.c-tabs--vertical)) ::slotted(c-tab){flex-grow:0}:host(.c-tabs.c-tabs--justify-center:not(.c-tabs--vertical)) .c-tabs__scroll{justify-content:center}:host(.c-tabs.c-tabs--justify-center:not(.c-tabs--vertical)) ::slotted(c-tab-buttons),:host(.c-tabs.c-tabs--justify-center:not(.c-tabs--vertical)) ::slotted(c-tab){flex-grow:0}:host(.c-tabs.c-tabs--vertical.c-tabs--mobile){grid-template-columns:1fr}:host(.c-tabs.c-tabs--vertical){display:grid;grid-template-columns:auto 1fr;grid-template-rows:1fr}:host(.c-tabs.c-tabs--vertical) .c-tabs__tabs::after{display:none}:host(.c-tabs.c-tabs--vertical) ::slotted(c-tab-items){position:relative;min-height:100%}:host(.c-tabs.c-tabs--vertical) .c-tabs__scroll{display:grid;max-width:100%}:host(.c-tabs.c-tabs--vertical) .c-tabs__scroll::after{display:none}:host(.c-tabs.c-tabs--vertical) .c-tabs__scroll::before{content:\"\";position:absolute;width:4px;top:0;bottom:0;right:0;scale:1 var(--_c-tabs-indicator-width, 0.125);opacity:0.01;translate:0 var(--_c-tabs-indicator-top, 0);transform-origin:top left;transition:scale var(--_c-tabs-transition-speed) cubic-bezier(0.075, 0.82, 0.165, 1), translate var(--_c-tabs-transition-speed) cubic-bezier(0.075, 0.82, 0.165, 1);background:var(--_c-tabs-indicator-color)}:host(.c-tabs.c-tabs--vertical) ::slotted(c-tab){box-shadow:inset -1px 0 0 0 var(--_c-tabs-border-color);padding-inline:24px;justify-content:start;max-width:100%;min-width:100%}:host(.c-tabs.c-tabs--buttons) .c-tabs__tabs::after,:host(.c-tabs.c-tabs--buttons) .c-tabs__scroll::after{display:none}:host(.c-tabs--borderless) ::slotted(c-tab){box-shadow:none}:host(.c-tabs.c-tabs--initialized) .c-tabs__scroll::after{opacity:1}:host(.c-tabs.c-tabs--initialized) .c-tabs__scroll::before{opacity:1}:host(.c-tabs.c-tabs--overflow) .c-tabs__container{grid-template-columns:auto 1fr auto}";
|
|
9
|
+
const CTabsStyle0 = cTabsCss;
|
|
9
10
|
|
|
10
11
|
var ScrollDirection;
|
|
11
12
|
(function (ScrollDirection) {
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
ScrollDirection[ScrollDirection["Left"] = 2] = "Left";
|
|
14
|
+
ScrollDirection[ScrollDirection["Right"] = 4] = "Right";
|
|
14
15
|
})(ScrollDirection || (ScrollDirection = {}));
|
|
15
16
|
const CTabs = class {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
handleKeyUp(event) {
|
|
69
|
-
this._isDirty = true;
|
|
70
|
-
if (!this.tabs.includes(event.target))
|
|
71
|
-
return;
|
|
72
|
-
const isArrowLeft = event.key === 'ArrowLeft';
|
|
73
|
-
const isArrowRight = event.key === 'ArrowRight';
|
|
74
|
-
if (!isArrowRight && !isArrowLeft)
|
|
75
|
-
return;
|
|
76
|
-
const tabIndex = this._getTabIndex(this._focusedTabValue);
|
|
77
|
-
const firstAvailableValue = this.availableValues.at(0);
|
|
78
|
-
const lastAvailableValue = this.availableValues.at(-1);
|
|
79
|
-
const isBeginning = this._focusedTabValue === firstAvailableValue;
|
|
80
|
-
const isEnd = this._focusedTabValue === lastAvailableValue;
|
|
81
|
-
const nextValue = isEnd
|
|
82
|
-
? firstAvailableValue
|
|
83
|
-
: this.availableValues[tabIndex + 1];
|
|
84
|
-
const previousValue = isBeginning
|
|
85
|
-
? lastAvailableValue
|
|
86
|
-
: this.availableValues[tabIndex - 1];
|
|
87
|
-
if (isArrowLeft) {
|
|
88
|
-
if (isBeginning)
|
|
89
|
-
return;
|
|
90
|
-
this._focusTab(previousValue);
|
|
91
|
-
}
|
|
92
|
-
if (isArrowRight) {
|
|
93
|
-
if (isEnd)
|
|
94
|
-
return;
|
|
95
|
-
this._focusTab(nextValue);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
get _prefersReducedMotion() {
|
|
99
|
-
return (window.matchMedia('(prefers-reduced-motion: reduce)').matches ||
|
|
100
|
-
this.disableAnimation);
|
|
101
|
-
}
|
|
102
|
-
get _tabItems() {
|
|
103
|
-
return this.el.querySelector(':scope > c-tab-items');
|
|
104
|
-
}
|
|
105
|
-
get _tabButtons() {
|
|
106
|
-
return this.el.querySelector(':scope > c-tab-buttons');
|
|
107
|
-
}
|
|
108
|
-
_updateItemsValue() {
|
|
109
|
-
requestAnimationFrame(() => {
|
|
110
|
-
this.tabItems.value = this.value;
|
|
111
|
-
if (this._tabButtons) {
|
|
112
|
-
this._tabButtons.value = this.value;
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
componentWillLoad() {
|
|
117
|
-
CTabs._uniqueId += 1;
|
|
118
|
-
this._tabItems.disableAnimation = this._prefersReducedMotion;
|
|
119
|
-
if (this._tabButtons) {
|
|
120
|
-
this.el.classList.add('c-tabs--buttons');
|
|
121
|
-
this._tabButtons.setAttribute('tabs', 'true');
|
|
122
|
-
}
|
|
123
|
-
this._updateItemsValue();
|
|
124
|
-
}
|
|
125
|
-
componentDidLoad() {
|
|
126
|
-
this._resizeObserver = new ResizeObserver((entries) => {
|
|
127
|
-
this._handleResize(entries[0].contentRect.width);
|
|
128
|
-
});
|
|
129
|
-
this._resizeObserver.observe(this.el);
|
|
130
|
-
this._intersectionObserver.observe(this.el);
|
|
131
|
-
this.el.style.setProperty('--_c-tabs-count', this.setsize.toString());
|
|
132
|
-
requestAnimationFrame(() => {
|
|
133
|
-
this._handleOverflow();
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
disconnectedCallback() {
|
|
137
|
-
this._intersectionObserver.disconnect();
|
|
138
|
-
}
|
|
139
|
-
get tabs() {
|
|
140
|
-
if (!!this._tabButtons) {
|
|
141
|
-
return Array.from(this._tabButtons.querySelectorAll(':scope > c-button'));
|
|
142
|
-
}
|
|
143
|
-
return Array.from(this.el.querySelectorAll(':scope > c-tab'));
|
|
144
|
-
}
|
|
145
|
-
get tabItems() {
|
|
146
|
-
return this.el.querySelector('c-tab-items');
|
|
147
|
-
}
|
|
148
|
-
get setsize() {
|
|
149
|
-
return this.tabs.length;
|
|
150
|
-
}
|
|
151
|
-
get availableValues() {
|
|
152
|
-
return this.tabs.map((tab) => tab.value);
|
|
153
|
-
}
|
|
154
|
-
_getTabIndex(value) {
|
|
155
|
-
return this.availableValues.findIndex((tab) => tab === value);
|
|
156
|
-
}
|
|
157
|
-
_setIndicatorTop(value) {
|
|
158
|
-
const container = this.el.shadowRoot.querySelector('.c-tabs__tabs');
|
|
159
|
-
container.style.setProperty('--_c-tabs-indicator-top', `${value}px`);
|
|
160
|
-
}
|
|
161
|
-
_setIndicatorLeft(value) {
|
|
162
|
-
const container = this.el.shadowRoot.querySelector('.c-tabs__tabs');
|
|
163
|
-
container.style.setProperty('--_c-tabs-indicator-left', `${value}px`);
|
|
164
|
-
}
|
|
165
|
-
_setIndicatorWidth(value) {
|
|
166
|
-
const container = this.el.shadowRoot.querySelector('.c-tabs__tabs');
|
|
167
|
-
container.style.setProperty('--_c-tabs-indicator-width', value.toString());
|
|
168
|
-
}
|
|
169
|
-
_handleActiveTab() {
|
|
170
|
-
requestAnimationFrame(() => {
|
|
171
|
-
var _a;
|
|
172
|
-
let position = 0;
|
|
173
|
-
const oldTab = (_a = this.el.querySelector('[aria-selected="true"]')) !== null && _a !== void 0 ? _a : this.tabs[0];
|
|
174
|
-
this.tabs.forEach((tab, index) => {
|
|
175
|
-
if (!tab.disabled) {
|
|
176
|
-
position += 1;
|
|
17
|
+
constructor(hostRef) {
|
|
18
|
+
index.registerInstance(this, hostRef);
|
|
19
|
+
this.changeValue = index.createEvent(this, "changeValue", 3);
|
|
20
|
+
this._initialized = false;
|
|
21
|
+
this._debounce = null;
|
|
22
|
+
this._moveDebounce = null;
|
|
23
|
+
this._isDirty = false;
|
|
24
|
+
this._focusedTabValue = this.value;
|
|
25
|
+
this._intersectionObserver = new IntersectionObserver(([entry]) => {
|
|
26
|
+
if (entry.isIntersecting) {
|
|
27
|
+
setTimeout(() => {
|
|
28
|
+
this._handleOverflow();
|
|
29
|
+
}, 1000);
|
|
30
|
+
}
|
|
31
|
+
}, { threshold: 1 });
|
|
32
|
+
this._previousWidth = 0;
|
|
33
|
+
this._maxScrollOffset = 0;
|
|
34
|
+
this._startX = 0;
|
|
35
|
+
this._touchOffset = 0;
|
|
36
|
+
this.value = undefined;
|
|
37
|
+
this.borderless = false;
|
|
38
|
+
this.disableAnimation = false;
|
|
39
|
+
this.justify = 'stretch';
|
|
40
|
+
this.mobileBreakpoint = 640;
|
|
41
|
+
this.vertical = false;
|
|
42
|
+
this.isOverflowing = false;
|
|
43
|
+
this.isMobile = false;
|
|
44
|
+
this.scrollOffset = 0;
|
|
45
|
+
}
|
|
46
|
+
onJustificationChange() {
|
|
47
|
+
this._handleActiveTab();
|
|
48
|
+
}
|
|
49
|
+
onExternalValueChange() {
|
|
50
|
+
this._handleActiveTab();
|
|
51
|
+
this.changeValue.emit(this.value);
|
|
52
|
+
this._updateItemsValue();
|
|
53
|
+
}
|
|
54
|
+
tabFocusHandler(event) {
|
|
55
|
+
event.stopPropagation();
|
|
56
|
+
this._focusedTabValue = event.detail;
|
|
57
|
+
}
|
|
58
|
+
tabChangeHandler(event) {
|
|
59
|
+
event.stopPropagation();
|
|
60
|
+
this.value = event.detail.value;
|
|
61
|
+
}
|
|
62
|
+
handleKeyDown(event) {
|
|
63
|
+
if (!this.tabs.includes(event.target) || event.target.disabled)
|
|
64
|
+
return;
|
|
65
|
+
if (event.key === 'Enter' || event.code === 'Space') {
|
|
66
|
+
this.value = event.target.value;
|
|
177
67
|
}
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
68
|
+
}
|
|
69
|
+
handleKeyUp(event) {
|
|
70
|
+
this._isDirty = true;
|
|
71
|
+
if (!this.tabs.includes(event.target))
|
|
72
|
+
return;
|
|
73
|
+
const isArrowLeft = event.key === 'ArrowLeft';
|
|
74
|
+
const isArrowRight = event.key === 'ArrowRight';
|
|
75
|
+
if (!isArrowRight && !isArrowLeft)
|
|
76
|
+
return;
|
|
77
|
+
const tabIndex = this._getTabIndex(this._focusedTabValue);
|
|
78
|
+
const firstAvailableValue = this.availableValues.at(0);
|
|
79
|
+
const lastAvailableValue = this.availableValues.at(-1);
|
|
80
|
+
const isBeginning = this._focusedTabValue === firstAvailableValue;
|
|
81
|
+
const isEnd = this._focusedTabValue === lastAvailableValue;
|
|
82
|
+
const nextValue = isEnd
|
|
83
|
+
? firstAvailableValue
|
|
84
|
+
: this.availableValues[tabIndex + 1];
|
|
85
|
+
const previousValue = isBeginning
|
|
86
|
+
? lastAvailableValue
|
|
87
|
+
: this.availableValues[tabIndex - 1];
|
|
88
|
+
if (isArrowLeft) {
|
|
89
|
+
if (isBeginning)
|
|
90
|
+
return;
|
|
91
|
+
this._focusTab(previousValue);
|
|
185
92
|
}
|
|
186
|
-
|
|
187
|
-
|
|
93
|
+
if (isArrowRight) {
|
|
94
|
+
if (isEnd)
|
|
95
|
+
return;
|
|
96
|
+
this._focusTab(nextValue);
|
|
188
97
|
}
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
98
|
+
}
|
|
99
|
+
get _prefersReducedMotion() {
|
|
100
|
+
return (window.matchMedia('(prefers-reduced-motion: reduce)').matches ||
|
|
101
|
+
this.disableAnimation);
|
|
102
|
+
}
|
|
103
|
+
get _tabItems() {
|
|
104
|
+
return this.el.querySelector(':scope > c-tab-items');
|
|
105
|
+
}
|
|
106
|
+
get _tabButtons() {
|
|
107
|
+
return this.el.querySelector(':scope > c-tab-buttons');
|
|
108
|
+
}
|
|
109
|
+
_updateItemsValue() {
|
|
110
|
+
requestAnimationFrame(() => {
|
|
111
|
+
this.tabItems.value = this.value;
|
|
112
|
+
if (this._tabButtons) {
|
|
113
|
+
this._tabButtons.value = this.value;
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
componentWillLoad() {
|
|
118
|
+
CTabs._uniqueId += 1;
|
|
119
|
+
this._tabItems.disableAnimation = this._prefersReducedMotion;
|
|
120
|
+
if (this._tabButtons) {
|
|
121
|
+
this.el.classList.add('c-tabs--buttons');
|
|
122
|
+
this._tabButtons.setAttribute('tabs', 'true');
|
|
198
123
|
}
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
124
|
+
this._updateItemsValue();
|
|
125
|
+
}
|
|
126
|
+
componentDidLoad() {
|
|
127
|
+
this._resizeObserver = new ResizeObserver((entries) => {
|
|
128
|
+
this._handleResize(entries[0].contentRect.width);
|
|
129
|
+
});
|
|
130
|
+
this._resizeObserver.observe(this.el);
|
|
131
|
+
this._intersectionObserver.observe(this.el);
|
|
132
|
+
this.el.style.setProperty('--_c-tabs-count', this.setsize.toString());
|
|
133
|
+
requestAnimationFrame(() => {
|
|
134
|
+
this._handleOverflow();
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
disconnectedCallback() {
|
|
138
|
+
this._intersectionObserver.disconnect();
|
|
139
|
+
}
|
|
140
|
+
get tabs() {
|
|
141
|
+
if (!!this._tabButtons) {
|
|
142
|
+
return Array.from(this._tabButtons.querySelectorAll(':scope > c-button'));
|
|
208
143
|
}
|
|
209
|
-
|
|
210
|
-
|
|
144
|
+
return Array.from(this.el.querySelectorAll(':scope > c-tab'));
|
|
145
|
+
}
|
|
146
|
+
get tabItems() {
|
|
147
|
+
return this.el.querySelector('c-tab-items');
|
|
148
|
+
}
|
|
149
|
+
get setsize() {
|
|
150
|
+
return this.tabs.length;
|
|
151
|
+
}
|
|
152
|
+
get availableValues() {
|
|
153
|
+
return this.tabs.map((tab) => tab.value);
|
|
154
|
+
}
|
|
155
|
+
_getTabIndex(value) {
|
|
156
|
+
return this.availableValues.findIndex((tab) => tab === value);
|
|
157
|
+
}
|
|
158
|
+
_setIndicatorTop(value) {
|
|
159
|
+
const container = this.el.shadowRoot.querySelector('.c-tabs__tabs');
|
|
160
|
+
container.style.setProperty('--_c-tabs-indicator-top', `${value}px`);
|
|
161
|
+
}
|
|
162
|
+
_setIndicatorLeft(value) {
|
|
163
|
+
const container = this.el.shadowRoot.querySelector('.c-tabs__tabs');
|
|
164
|
+
container.style.setProperty('--_c-tabs-indicator-left', `${value}px`);
|
|
165
|
+
}
|
|
166
|
+
_setIndicatorWidth(value) {
|
|
167
|
+
const container = this.el.shadowRoot.querySelector('.c-tabs__tabs');
|
|
168
|
+
container.style.setProperty('--_c-tabs-indicator-width', value.toString());
|
|
169
|
+
}
|
|
170
|
+
_handleActiveTab() {
|
|
171
|
+
requestAnimationFrame(() => {
|
|
172
|
+
var _a;
|
|
173
|
+
let position = 0;
|
|
174
|
+
const oldTab = (_a = this.el.querySelector('[aria-selected="true"]')) !== null && _a !== void 0 ? _a : this.tabs[0];
|
|
175
|
+
this.tabs.forEach((tab, index) => {
|
|
176
|
+
if (!tab.disabled) {
|
|
177
|
+
position += 1;
|
|
178
|
+
}
|
|
179
|
+
const isActive = tab.value === this.value;
|
|
180
|
+
const tabId = `c-tab-${CTabs._uniqueId}-${index + 1}`;
|
|
181
|
+
const tabItemId = `c-tab-item-${CTabs._uniqueId}-${index + 1}`;
|
|
182
|
+
tab.setAttribute('id', tabId);
|
|
183
|
+
tab.setAttribute('aria-controls', tabItemId);
|
|
184
|
+
if (!this._tabButtons) {
|
|
185
|
+
tab.active = isActive;
|
|
186
|
+
}
|
|
187
|
+
else if (isActive) {
|
|
188
|
+
this._tabButtons.value = tab.value;
|
|
189
|
+
}
|
|
190
|
+
const item = Array.from(this.tabItems.querySelectorAll(':scope > c-tab-item')).find((child) => child.value === tab.value);
|
|
191
|
+
item.setAttribute('disabled', (!!tab.disabled).toString());
|
|
192
|
+
item.setAttribute('id', tabItemId);
|
|
193
|
+
item.setAttribute('aria-labelledby', tabId);
|
|
194
|
+
item.active = isActive;
|
|
195
|
+
item.setAttribute('active', isActive.toString());
|
|
196
|
+
if (!tab.disabled) {
|
|
197
|
+
tab.setAttribute('aria-posinset', position.toString());
|
|
198
|
+
tab.setAttribute('setsize', this.availableValues.length.toString());
|
|
199
|
+
}
|
|
200
|
+
if (isActive && !this._tabButtons) {
|
|
201
|
+
this._moveIndicator(oldTab, tab);
|
|
202
|
+
requestAnimationFrame(() => {
|
|
203
|
+
if (!this.isOverflowing)
|
|
204
|
+
return;
|
|
205
|
+
const selectedTab = this.el.querySelector('c-tab[aria-selected="true"]');
|
|
206
|
+
this._moveToTab(selectedTab);
|
|
207
|
+
this._tabsTabsElement.style.setProperty('--_c-tabs-transition-speed', '200ms');
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
if (isActive && this._isDirty) {
|
|
211
|
+
tab.focus();
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
_getDimensions(item) {
|
|
217
|
+
const { x, width } = item.getBoundingClientRect();
|
|
218
|
+
const { x: containerX, width: containerWidth } = this._tabsTabsElement.getBoundingClientRect();
|
|
219
|
+
const { x: scrollerX, width: scrollerWidth } = this._tabsScrollElement.getBoundingClientRect();
|
|
220
|
+
return {
|
|
221
|
+
x,
|
|
222
|
+
width,
|
|
223
|
+
containerWidth,
|
|
224
|
+
containerX,
|
|
225
|
+
scrollerX,
|
|
226
|
+
scrollerWidth,
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
_focusTab(value) {
|
|
230
|
+
if (this._tabButtons) {
|
|
231
|
+
return;
|
|
232
|
+
}
|
|
233
|
+
requestAnimationFrame(() => {
|
|
234
|
+
const item = this.tabs.find((tab) => tab.value === value);
|
|
235
|
+
const { x, width, containerX, containerWidth } = this._getDimensions(item);
|
|
236
|
+
const isInView = x >= containerX && x + width <= containerX + containerWidth;
|
|
237
|
+
if (isInView) {
|
|
238
|
+
item === null || item === void 0 ? void 0 : item.focus();
|
|
239
|
+
return;
|
|
240
|
+
}
|
|
241
|
+
this._moveToTab(item);
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
_handleResize(width) {
|
|
245
|
+
if (this._moveDebounce !== null)
|
|
246
|
+
return;
|
|
247
|
+
if (this._debounce !== null) {
|
|
248
|
+
clearTimeout(this._debounce);
|
|
249
|
+
this._debounce = null;
|
|
250
|
+
}
|
|
251
|
+
this._debounce = setTimeout(() => {
|
|
252
|
+
const content = this.el.shadowRoot.querySelector('.c-tabs__scroll');
|
|
253
|
+
const container = this.el.shadowRoot.querySelector('.c-tabs__tabs');
|
|
254
|
+
requestAnimationFrame(() => {
|
|
255
|
+
if (width === this._previousWidth)
|
|
256
|
+
return;
|
|
257
|
+
this._handleOverflow();
|
|
258
|
+
this.isMobile = width < this.mobileBreakpoint;
|
|
259
|
+
this._maxScrollOffset =
|
|
260
|
+
-1 * (content.scrollWidth - container.clientWidth);
|
|
261
|
+
this._handleActiveTab();
|
|
262
|
+
this._previousWidth = width;
|
|
263
|
+
});
|
|
264
|
+
}, 200);
|
|
265
|
+
}
|
|
266
|
+
_moveIndicator(oldTab, newTab) {
|
|
267
|
+
if (this._moveDebounce !== null)
|
|
268
|
+
return;
|
|
269
|
+
this._moveDebounce = setTimeout(() => {
|
|
270
|
+
requestAnimationFrame(() => {
|
|
271
|
+
const content = this.el.shadowRoot.querySelector('.c-tabs__scroll');
|
|
272
|
+
const container = this.el.shadowRoot.querySelector('.c-tabs__tabs');
|
|
273
|
+
if (this._initialized && !this._prefersReducedMotion) {
|
|
274
|
+
container.style.setProperty('--_c-tabs-transition-speed', '200ms');
|
|
275
|
+
}
|
|
276
|
+
const buttonOffset = this.isOverflowing ? 32 : 0;
|
|
277
|
+
const newTabWidth = newTab.offsetWidth / content.offsetWidth;
|
|
278
|
+
const newTabHeight = this.vertical
|
|
279
|
+
? newTab.offsetHeight / content.offsetHeight
|
|
280
|
+
: newTab.offsetHeight / content.offsetHeight;
|
|
281
|
+
const newTabPosition = oldTab.compareDocumentPosition(newTab);
|
|
282
|
+
let transitionWidth = 0;
|
|
283
|
+
if (newTabPosition === ScrollDirection.Right) {
|
|
284
|
+
transitionWidth = this.vertical
|
|
285
|
+
? newTab.offsetTop + newTab.offsetHeight - oldTab.offsetTop
|
|
286
|
+
: newTab.offsetLeft + newTab.offsetWidth - oldTab.offsetLeft;
|
|
287
|
+
}
|
|
288
|
+
else {
|
|
289
|
+
transitionWidth = this.vertical
|
|
290
|
+
? oldTab.offsetTop + oldTab.offsetHeight - newTab.offsetTop
|
|
291
|
+
: oldTab.offsetLeft + oldTab.offsetWidth - newTab.offsetLeft;
|
|
292
|
+
this._setIndicatorLeft(newTab.offsetLeft - buttonOffset);
|
|
293
|
+
this._setIndicatorTop(newTab.offsetTop - buttonOffset);
|
|
294
|
+
}
|
|
295
|
+
this._setIndicatorWidth(this.vertical
|
|
296
|
+
? transitionWidth / content.offsetHeight
|
|
297
|
+
: transitionWidth / content.offsetWidth);
|
|
298
|
+
const onTransitionEnd = (event) => {
|
|
299
|
+
if (event.propertyName !== 'scale')
|
|
300
|
+
return;
|
|
301
|
+
this._setIndicatorLeft(newTab.offsetLeft - buttonOffset);
|
|
302
|
+
this._setIndicatorTop(newTab.offsetTop - buttonOffset);
|
|
303
|
+
this._setIndicatorWidth(this.vertical ? newTabHeight : newTabWidth);
|
|
304
|
+
content.removeEventListener('transitionend', onTransitionEnd);
|
|
305
|
+
if (!this._initialized) {
|
|
306
|
+
this.el.classList.add('c-tabs--initialized');
|
|
307
|
+
}
|
|
308
|
+
this._initialized = true;
|
|
309
|
+
};
|
|
310
|
+
content.addEventListener('transitionend', onTransitionEnd);
|
|
311
|
+
});
|
|
312
|
+
clearTimeout(this._moveDebounce);
|
|
313
|
+
this._moveDebounce = null;
|
|
314
|
+
}, 200);
|
|
315
|
+
}
|
|
316
|
+
onScrollOffsetChange(offset) {
|
|
317
|
+
this._tabsTabsElement.style.setProperty('--_c-tabs-scroll-position-x', `${offset}px`);
|
|
318
|
+
}
|
|
319
|
+
_handleOverflow() {
|
|
320
|
+
if (this._tabButtons) {
|
|
321
|
+
this.isOverflowing = false;
|
|
322
|
+
return;
|
|
211
323
|
}
|
|
212
|
-
});
|
|
213
|
-
});
|
|
214
|
-
}
|
|
215
|
-
_getDimensions(item) {
|
|
216
|
-
const { x, width } = item.getBoundingClientRect();
|
|
217
|
-
const { x: containerX, width: containerWidth } = this._tabsTabsElement.getBoundingClientRect();
|
|
218
|
-
const { x: scrollerX, width: scrollerWidth } = this._tabsScrollElement.getBoundingClientRect();
|
|
219
|
-
return {
|
|
220
|
-
x,
|
|
221
|
-
width,
|
|
222
|
-
containerWidth,
|
|
223
|
-
containerX,
|
|
224
|
-
scrollerX,
|
|
225
|
-
scrollerWidth,
|
|
226
|
-
};
|
|
227
|
-
}
|
|
228
|
-
_focusTab(value) {
|
|
229
|
-
if (this._tabButtons) {
|
|
230
|
-
return;
|
|
231
|
-
}
|
|
232
|
-
requestAnimationFrame(() => {
|
|
233
|
-
const item = this.tabs.find((tab) => tab.value === value);
|
|
234
|
-
const { x, width, containerX, containerWidth } = this._getDimensions(item);
|
|
235
|
-
const isInView = x >= containerX && x + width <= containerX + containerWidth;
|
|
236
|
-
if (isInView) {
|
|
237
|
-
item === null || item === void 0 ? void 0 : item.focus();
|
|
238
|
-
return;
|
|
239
|
-
}
|
|
240
|
-
this._moveToTab(item);
|
|
241
|
-
});
|
|
242
|
-
}
|
|
243
|
-
_handleResize(width) {
|
|
244
|
-
if (this._moveDebounce !== null)
|
|
245
|
-
return;
|
|
246
|
-
if (this._debounce !== null) {
|
|
247
|
-
clearTimeout(this._debounce);
|
|
248
|
-
this._debounce = null;
|
|
249
|
-
}
|
|
250
|
-
this._debounce = setTimeout(() => {
|
|
251
|
-
const content = this.el.shadowRoot.querySelector('.c-tabs__scroll');
|
|
252
|
-
const container = this.el.shadowRoot.querySelector('.c-tabs__tabs');
|
|
253
|
-
requestAnimationFrame(() => {
|
|
254
|
-
if (width === this._previousWidth)
|
|
255
|
-
return;
|
|
256
|
-
this._handleOverflow();
|
|
257
|
-
this.isMobile = width < this.mobileBreakpoint;
|
|
258
|
-
this._maxScrollOffset =
|
|
259
|
-
-1 * (content.scrollWidth - container.clientWidth);
|
|
260
|
-
this._handleActiveTab();
|
|
261
|
-
this._previousWidth = width;
|
|
262
|
-
});
|
|
263
|
-
}, 200);
|
|
264
|
-
}
|
|
265
|
-
_moveIndicator(oldTab, newTab) {
|
|
266
|
-
if (this._moveDebounce !== null)
|
|
267
|
-
return;
|
|
268
|
-
this._moveDebounce = setTimeout(() => {
|
|
269
|
-
requestAnimationFrame(() => {
|
|
270
324
|
const content = this.el.shadowRoot.querySelector('.c-tabs__scroll');
|
|
271
325
|
const container = this.el.shadowRoot.querySelector('.c-tabs__tabs');
|
|
272
|
-
|
|
273
|
-
|
|
326
|
+
const contentSize = content.scrollWidth;
|
|
327
|
+
const containerSize = container.clientWidth;
|
|
328
|
+
this.isOverflowing = containerSize + 1 < contentSize;
|
|
329
|
+
}
|
|
330
|
+
_onTouchEnd() {
|
|
331
|
+
this._tabsTabsElement.style.setProperty('--_c-tabs-transition-speed', '200ms');
|
|
332
|
+
}
|
|
333
|
+
_onTouchMove(event) {
|
|
334
|
+
if (this.vertical)
|
|
335
|
+
return;
|
|
336
|
+
event.preventDefault();
|
|
337
|
+
this._tabsTabsElement.style.setProperty('--_c-tabs-transition-speed', '0ms');
|
|
338
|
+
const offset = -1 * (this._touchOffset + this._startX - event.touches[0].clientX);
|
|
339
|
+
const isInRange = offset <= 0 && offset >= this._maxScrollOffset;
|
|
340
|
+
if (isInRange) {
|
|
341
|
+
this.scrollOffset = offset;
|
|
274
342
|
}
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
const newTabHeight = this.vertical
|
|
278
|
-
? newTab.offsetHeight / content.offsetHeight
|
|
279
|
-
: newTab.offsetHeight / content.offsetHeight;
|
|
280
|
-
const newTabPosition = oldTab.compareDocumentPosition(newTab);
|
|
281
|
-
let transitionWidth = 0;
|
|
282
|
-
if (newTabPosition === ScrollDirection.Right) {
|
|
283
|
-
transitionWidth = this.vertical
|
|
284
|
-
? newTab.offsetTop + newTab.offsetHeight - oldTab.offsetTop
|
|
285
|
-
: newTab.offsetLeft + newTab.offsetWidth - oldTab.offsetLeft;
|
|
343
|
+
else if (offset > 0 || !this.isOverflowing) {
|
|
344
|
+
this.scrollOffset = 0;
|
|
286
345
|
}
|
|
287
|
-
else {
|
|
288
|
-
|
|
289
|
-
? oldTab.offsetTop + oldTab.offsetHeight - newTab.offsetTop
|
|
290
|
-
: oldTab.offsetLeft + oldTab.offsetWidth - newTab.offsetLeft;
|
|
291
|
-
this._setIndicatorLeft(newTab.offsetLeft - buttonOffset);
|
|
292
|
-
this._setIndicatorTop(newTab.offsetTop - buttonOffset);
|
|
346
|
+
else if (offset < this._maxScrollOffset) {
|
|
347
|
+
this.scrollOffset = this._maxScrollOffset;
|
|
293
348
|
}
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
if (event.propertyName !== 'scale')
|
|
349
|
+
}
|
|
350
|
+
_onTouchStart(event) {
|
|
351
|
+
this._handleOverflow();
|
|
352
|
+
if (!this.isOverflowing)
|
|
299
353
|
return;
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
354
|
+
this._touchOffset = this.scrollOffset * -1;
|
|
355
|
+
this._startX = event.touches[0].clientX;
|
|
356
|
+
}
|
|
357
|
+
_onBackClick() {
|
|
358
|
+
const min = 0;
|
|
359
|
+
const step = this._tabsTabsElement.clientWidth / 2;
|
|
360
|
+
this.scrollOffset = Math.min(this.scrollOffset + step, min);
|
|
361
|
+
}
|
|
362
|
+
_onForwardClick() {
|
|
363
|
+
const max = (this._tabsScrollElement.scrollWidth -
|
|
364
|
+
this._tabsTabsElement.clientWidth) *
|
|
365
|
+
-1;
|
|
366
|
+
const step = this._tabsTabsElement.clientWidth / 2;
|
|
367
|
+
this.scrollOffset = Math.max(-1 * step + this.scrollOffset, max);
|
|
368
|
+
}
|
|
369
|
+
_moveToTab(tab) {
|
|
370
|
+
const onTransitionEnd = () => {
|
|
371
|
+
tab === null || tab === void 0 ? void 0 : tab.focus();
|
|
372
|
+
this._tabsScrollElement.removeEventListener('transitionend', onTransitionEnd);
|
|
308
373
|
};
|
|
374
|
+
requestAnimationFrame(() => {
|
|
375
|
+
const tabIndex = this._getTabIndex(tab.dataset.value);
|
|
376
|
+
const isFirstTab = tabIndex === 0;
|
|
377
|
+
const isLastTab = tabIndex === this.availableValues.length - 1;
|
|
378
|
+
if (isFirstTab) {
|
|
379
|
+
this.scrollOffset = 0;
|
|
380
|
+
return;
|
|
381
|
+
}
|
|
382
|
+
if (isLastTab) {
|
|
383
|
+
this.scrollOffset = this._maxScrollOffset - 8;
|
|
384
|
+
return;
|
|
385
|
+
}
|
|
386
|
+
const { x, width, containerWidth, containerX } = this._getDimensions(tab);
|
|
387
|
+
const tabEnd = x + width;
|
|
388
|
+
const containerEnd = containerX + containerWidth;
|
|
389
|
+
const isOverflowingStart = x < containerX;
|
|
390
|
+
const isOverflowingEnd = tabEnd > containerEnd;
|
|
391
|
+
if (isOverflowingStart) {
|
|
392
|
+
const tabInside = tabEnd - containerX;
|
|
393
|
+
const tabOutside = tabInside - width;
|
|
394
|
+
this.scrollOffset = this.scrollOffset - tabOutside + 4;
|
|
395
|
+
}
|
|
396
|
+
if (isOverflowingEnd) {
|
|
397
|
+
this.scrollOffset -= tabEnd - containerEnd + 4;
|
|
398
|
+
}
|
|
399
|
+
});
|
|
400
|
+
const content = this.el.shadowRoot.querySelector('.c-tabs__scroll');
|
|
309
401
|
content.addEventListener('transitionend', onTransitionEnd);
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
}
|
|
329
|
-
_onTouchEnd() {
|
|
330
|
-
this._tabsTabsElement.style.setProperty('--_c-tabs-transition-speed', '200ms');
|
|
331
|
-
}
|
|
332
|
-
_onTouchMove(event) {
|
|
333
|
-
if (this.vertical)
|
|
334
|
-
return;
|
|
335
|
-
event.preventDefault();
|
|
336
|
-
this._tabsTabsElement.style.setProperty('--_c-tabs-transition-speed', '0ms');
|
|
337
|
-
const offset = -1 * (this._touchOffset + this._startX - event.touches[0].clientX);
|
|
338
|
-
const isInRange = offset <= 0 && offset >= this._maxScrollOffset;
|
|
339
|
-
if (isInRange) {
|
|
340
|
-
this.scrollOffset = offset;
|
|
341
|
-
}
|
|
342
|
-
else if (offset > 0 || !this.isOverflowing) {
|
|
343
|
-
this.scrollOffset = 0;
|
|
344
|
-
}
|
|
345
|
-
else if (offset < this._maxScrollOffset) {
|
|
346
|
-
this.scrollOffset = this._maxScrollOffset;
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
_onTouchStart(event) {
|
|
350
|
-
this._handleOverflow();
|
|
351
|
-
if (!this.isOverflowing)
|
|
352
|
-
return;
|
|
353
|
-
this._touchOffset = this.scrollOffset * -1;
|
|
354
|
-
this._startX = event.touches[0].clientX;
|
|
355
|
-
}
|
|
356
|
-
_onBackClick() {
|
|
357
|
-
const min = 0;
|
|
358
|
-
const step = this._tabsTabsElement.clientWidth / 2;
|
|
359
|
-
this.scrollOffset = Math.min(this.scrollOffset + step, min);
|
|
360
|
-
}
|
|
361
|
-
_onForwardClick() {
|
|
362
|
-
const max = (this._tabsScrollElement.scrollWidth -
|
|
363
|
-
this._tabsTabsElement.clientWidth) *
|
|
364
|
-
-1;
|
|
365
|
-
const step = this._tabsTabsElement.clientWidth / 2;
|
|
366
|
-
this.scrollOffset = Math.max(-1 * step + this.scrollOffset, max);
|
|
367
|
-
}
|
|
368
|
-
_moveToTab(tab) {
|
|
369
|
-
const onTransitionEnd = () => {
|
|
370
|
-
tab === null || tab === void 0 ? void 0 : tab.focus();
|
|
371
|
-
this._tabsScrollElement.removeEventListener('transitionend', onTransitionEnd);
|
|
372
|
-
};
|
|
373
|
-
requestAnimationFrame(() => {
|
|
374
|
-
const tabIndex = this._getTabIndex(tab.dataset.value);
|
|
375
|
-
const isFirstTab = tabIndex === 0;
|
|
376
|
-
const isLastTab = tabIndex === this.availableValues.length - 1;
|
|
377
|
-
if (isFirstTab) {
|
|
378
|
-
this.scrollOffset = 0;
|
|
379
|
-
return;
|
|
380
|
-
}
|
|
381
|
-
if (isLastTab) {
|
|
382
|
-
this.scrollOffset = this._maxScrollOffset - 8;
|
|
383
|
-
return;
|
|
384
|
-
}
|
|
385
|
-
const { x, width, containerWidth, containerX } = this._getDimensions(tab);
|
|
386
|
-
const tabEnd = x + width;
|
|
387
|
-
const containerEnd = containerX + containerWidth;
|
|
388
|
-
const isOverflowingStart = x < containerX;
|
|
389
|
-
const isOverflowingEnd = tabEnd > containerEnd;
|
|
390
|
-
if (isOverflowingStart) {
|
|
391
|
-
const tabInside = tabEnd - containerX;
|
|
392
|
-
const tabOutside = tabInside - width;
|
|
393
|
-
this.scrollOffset = this.scrollOffset - tabOutside + 4;
|
|
394
|
-
}
|
|
395
|
-
if (isOverflowingEnd) {
|
|
396
|
-
this.scrollOffset -= tabEnd - containerEnd + 4;
|
|
397
|
-
}
|
|
398
|
-
});
|
|
399
|
-
const content = this.el.shadowRoot.querySelector('.c-tabs__scroll');
|
|
400
|
-
content.addEventListener('transitionend', onTransitionEnd);
|
|
401
|
-
}
|
|
402
|
-
render() {
|
|
403
|
-
const classes = {
|
|
404
|
-
'c-tabs': true,
|
|
405
|
-
'c-tabs--borderless': this.borderless,
|
|
406
|
-
'c-tabs--vertical': this.vertical,
|
|
407
|
-
'c-tabs--overflow': this.isOverflowing,
|
|
408
|
-
'c-tabs--mobile': this.isMobile,
|
|
409
|
-
[`c-tabs--justify-${this.justify}`]: true,
|
|
410
|
-
};
|
|
411
|
-
return (index.h(index.Host, { role: "tablist", class: classes }, index.h("div", { class: "c-tabs__container" }, this.isOverflowing && !this.vertical && (index.h("c-icon-button", { size: "x-small", ghost: true, onClick: this._onBackClick.bind(this) }, index.h("c-icon", { path: mdi.mdiArrowLeft }))), index.h("div", { ref: (el) => (this._tabsTabsElement = el), class: "c-tabs__tabs", onTouchStart: this._onTouchStart.bind(this), onTouchMove: this._onTouchMove.bind(this), onTouchEnd: this._onTouchEnd.bind(this) }, index.h("div", { ref: (el) => (this._tabsScrollElement = el), class: "c-tabs__scroll" }, index.h("slot", null))), this.isOverflowing && !this.vertical && (index.h("c-icon-button", { size: "x-small", ghost: true, onClick: this._onForwardClick.bind(this) }, index.h("c-icon", { path: mdi.mdiArrowRight })))), index.h("div", { class: "c-tabs__content" }, index.h("slot", { name: "items" }))));
|
|
412
|
-
}
|
|
413
|
-
get el() { return index.getElement(this); }
|
|
414
|
-
static get watchers() { return {
|
|
415
|
-
"justify": ["onJustificationChange"],
|
|
416
|
-
"value": ["onExternalValueChange"],
|
|
417
|
-
"scrollOffset": ["onScrollOffsetChange"]
|
|
418
|
-
}; }
|
|
402
|
+
}
|
|
403
|
+
render() {
|
|
404
|
+
const classes = {
|
|
405
|
+
'c-tabs': true,
|
|
406
|
+
'c-tabs--borderless': this.borderless,
|
|
407
|
+
'c-tabs--vertical': this.vertical,
|
|
408
|
+
'c-tabs--overflow': this.isOverflowing,
|
|
409
|
+
'c-tabs--mobile': this.isMobile,
|
|
410
|
+
[`c-tabs--justify-${this.justify}`]: true,
|
|
411
|
+
};
|
|
412
|
+
return (index.h(index.Host, { key: '55cccb996d3ed8694fd0d9c1694c2934ab3d572b', role: "tablist", class: classes }, index.h("div", { key: '40f41b7bbada33806c418bd06569b7c0393f4890', class: "c-tabs__container" }, this.isOverflowing && !this.vertical && (index.h("c-icon-button", { key: 'eefc5cb2a7c4f0273616c30c54b22fd3846611d5', size: "x-small", ghost: true, onClick: this._onBackClick.bind(this) }, index.h("c-icon", { key: '0686eb5f32b87e1f0b5902c482b92098e52d34e9', path: mdi.mdiArrowLeft }))), index.h("div", { key: '74a38a52c05d3c3ff1cf09569006cefadcac4008', ref: (el) => (this._tabsTabsElement = el), class: "c-tabs__tabs", onTouchStart: this._onTouchStart.bind(this), onTouchMove: this._onTouchMove.bind(this), onTouchEnd: this._onTouchEnd.bind(this) }, index.h("div", { key: '6194a25f96ef1d6c2f4c46c56e88fb0e9f61b425', ref: (el) => (this._tabsScrollElement = el), class: "c-tabs__scroll" }, index.h("slot", { key: '526ac235df9fff4284c835bee0d9c4fc70146537' }))), this.isOverflowing && !this.vertical && (index.h("c-icon-button", { key: '535e1480ee9521d93b5e0e05f69218854d63657e', size: "x-small", ghost: true, onClick: this._onForwardClick.bind(this) }, index.h("c-icon", { key: '40139ee099cd32ff6efbe7139283fdc7ee4876d5', path: mdi.mdiArrowRight })))), index.h("div", { key: 'af47c0e4ab3ef2a417905a4a67f9c7430279de8c', class: "c-tabs__content" }, index.h("slot", { key: 'ff8ae9187ce75652099932d9383c2c239eab8698', name: "items" }))));
|
|
413
|
+
}
|
|
414
|
+
get el() { return index.getElement(this); }
|
|
415
|
+
static get watchers() { return {
|
|
416
|
+
"justify": ["onJustificationChange"],
|
|
417
|
+
"value": ["onExternalValueChange"],
|
|
418
|
+
"scrollOffset": ["onScrollOffsetChange"]
|
|
419
|
+
}; }
|
|
419
420
|
};
|
|
420
421
|
CTabs._uniqueId = 0;
|
|
421
|
-
CTabs.style =
|
|
422
|
+
CTabs.style = CTabsStyle0;
|
|
422
423
|
|
|
423
424
|
exports.c_tabs = CTabs;
|
|
424
425
|
|