@cscfi/csc-ui 2.2.5 → 2.2.6
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 +2439 -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 +747 -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 +392 -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-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-8fe7a288.entry.js +2 -0
- package/dist/csc-ui/p-8fe7a288.entry.js.map +1 -0
- 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 +2439 -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 +48 -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/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/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
- /package/dist/{styles → components/styles}/css/theme.css +0 -0
- /package/dist/{styles → components/styles}/scss/_theme.scss +0 -0
- /package/dist/{styles → components/styles}/tailwind/theme.js +0 -0
|
@@ -1,128 +1,129 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5e4179ca.js';
|
|
2
2
|
|
|
3
3
|
const cTabButtonsCss = "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-tab-buttons-background-color-active-hover:var(--c-tab-buttons-background-color-active-hover, var(--c-primary-400));--_c-tab-buttons-background-color-active:var(--c-tab-buttons-background-color-active, var(--c-primary-600));--_c-tab-buttons-text-color-active:var(--c-tab-buttons-text-color-active, var(--c-white));--_c-tab-buttons-background-color-hover:var(--c-tab-buttons-background-color-hover, var(--c-primary-200));--_c-tab-buttons-background-color:var(--c-tab-buttons-background-color, var(--c-white));--_c-tab-buttons-border-color:var(--c-tab-buttons-border-color, var(--c-primary-600));--_c-tab-buttons-text-color:var(--c-tab-buttons-text-color, var(--c-primary-600));--_c-tab-buttons-border-color-disabled:var(--c-tab-buttons-border-color-disabled, var(--c-tertiary-400));--_c-tab-buttons-border-radius:var(--c-tab-buttons-border-radius, 4px);background-color:var(--_c-tab-buttons-border-color);border-radius:var(--_c-tab-buttons-border-radius);box-shadow:0 0 0 2px var(--_c-tab-buttons-border-color);display:flex;flex-wrap:wrap;gap:2px;margin:2px}:host ::slotted(c-button){--c-button-background-color-hover:var(--_c-tab-buttons-background-color-active-hover);--c-button-background-color:var(--_c-tab-buttons-background-color-active);--c-button-text-color:var(--_c-tab-buttons-text-color-active);--_c-button-border-radius:0;--_c-button-min-width:auto;--_c-button-padding:0 8px;--_c-button-outline-offset:4px;flex-grow:1}:host ::slotted(c-button.c-button--outlined){--c-button-outlined-background-color-hover:var(--_c-tab-buttons-background-color-hover);--c-button-outlined-background-color:var(--_c-tab-buttons-background-color);--c-button-outlined-border-color:var(--_c-tab-buttons-border-color);--c-button-outlined-text-color:var(--_c-tab-buttons-text-color);box-shadow:none}:host ::slotted(c-button.c-button--outlined)::before,:host ::slotted(c-button.c-button--outlined)::after{background-color:#ffffff;border-radius:inherit;content:\"\";height:100%;left:0;position:absolute;top:0;transition:background-color 0.3s ease-in-out;width:100%;z-index:-1}:host ::slotted(c-button.c-button--outlined):hover{background-color:var(--c-tab-button-background-color)}:host ::slotted(c-button:first-child){--_c-button-border-radius:var(--_c-tab-buttons-border-radius) 0 0 var(--_c-tab-buttons-border-radius)}:host ::slotted(c-button:last-child){--_c-button-border-radius:0 var(--_c-tab-buttons-border-radius) var(--_c-tab-buttons-border-radius) 0}:host ::slotted(*){flex-grow:1}:host(.disabled){--_c-tab-buttons-border-color:var(--_c-tab-buttons-border-color-disabled) !important;pointer-events:none}:host(.c-tab-buttons) ::slotted(c-button:focus){outline:none}:host(.c-tab-buttons) ::slotted(c-button:focus-visible){outline:2px var(--_c-tab-buttons-border-color) solid;outline-offset:4px;z-index:1}";
|
|
4
|
+
const CTabButtonsStyle0 = cTabButtonsCss;
|
|
4
5
|
|
|
5
6
|
const CTabButtons = class {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
this.changeValue = createEvent(this, "changeValue", 3);
|
|
10
|
+
this._focusedTabValue = this.value;
|
|
11
|
+
this.value = 0;
|
|
12
|
+
this.mandatory = false;
|
|
13
|
+
this.tabs = false;
|
|
14
|
+
this.size = 'default';
|
|
15
|
+
this.hostDisabled = false;
|
|
16
|
+
}
|
|
17
|
+
onValueChange(value) {
|
|
18
|
+
var _a, _b;
|
|
19
|
+
this.buttons.forEach((button) => {
|
|
20
|
+
if (!button.disabled) {
|
|
21
|
+
button.setAttribute('outlined', 'true');
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
if (value !== null) {
|
|
25
|
+
this.buttons.forEach((button) => {
|
|
26
|
+
if (!button.disabled) {
|
|
27
|
+
button.setAttribute('outlined', 'true');
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
const button = this.buttons.find((btn) => btn.value === value) || this.buttons[value];
|
|
31
|
+
if (button) {
|
|
32
|
+
button.removeAttribute('outlined');
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
this.changeValue.emit((_b = (_a = this.buttons[value]) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : value);
|
|
36
|
+
}
|
|
37
|
+
tabFocusHandler(event) {
|
|
38
|
+
event.stopPropagation();
|
|
39
|
+
this._focusedTabValue = event.detail;
|
|
40
|
+
}
|
|
41
|
+
handleKeyUp(event) {
|
|
42
|
+
var _a, _b;
|
|
43
|
+
event.stopPropagation();
|
|
44
|
+
const isArrowLeft = event.key === 'ArrowLeft';
|
|
45
|
+
const isArrowRight = event.key === 'ArrowRight';
|
|
46
|
+
if (!isArrowRight && !isArrowLeft)
|
|
47
|
+
return;
|
|
48
|
+
const tabIndex = (_a = this._getTabIndex(this._focusedTabValue)) !== null && _a !== void 0 ? _a : +((_b = this.buttons[this._focusedTabValue]) === null || _b === void 0 ? void 0 : _b.dataset.index);
|
|
49
|
+
const firstAvailableValue = this.availableValues.at(0);
|
|
50
|
+
const lastAvailableValue = this.availableValues.at(-1);
|
|
51
|
+
const isBeginning = this._focusedTabValue === firstAvailableValue;
|
|
52
|
+
const isEnd = this._focusedTabValue === lastAvailableValue;
|
|
53
|
+
const nextValue = isEnd
|
|
54
|
+
? firstAvailableValue
|
|
55
|
+
: this.availableValues[tabIndex + 1];
|
|
56
|
+
const previousValue = isBeginning
|
|
57
|
+
? lastAvailableValue
|
|
58
|
+
: this.availableValues[tabIndex - 1];
|
|
59
|
+
const value = isArrowLeft ? previousValue : nextValue;
|
|
60
|
+
const item = this.buttons
|
|
61
|
+
.find((button) => button.value === value || button.dataset.index === value)
|
|
62
|
+
.shadowRoot.querySelector('button');
|
|
63
|
+
requestAnimationFrame(() => {
|
|
64
|
+
item === null || item === void 0 ? void 0 : item.focus();
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
onTabChange(event) {
|
|
68
|
+
if (!this.tabs)
|
|
69
|
+
event.stopPropagation();
|
|
70
|
+
const isActive = this.value !== null &&
|
|
71
|
+
(this._isIndexBased
|
|
72
|
+
? +event.detail.value === +this.value
|
|
73
|
+
: event.detail.value === this.value);
|
|
74
|
+
if (this.mandatory && isActive) {
|
|
75
|
+
return;
|
|
27
76
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
77
|
+
const nullValue = this._isIndexBased ? null : '';
|
|
78
|
+
const value = this._isIndexBased ? +event.detail.value : event.detail.value;
|
|
79
|
+
this.value = isActive ? nullValue : value;
|
|
80
|
+
}
|
|
81
|
+
get availableValues() {
|
|
82
|
+
return this.buttons.map((button) => { var _a; return (_a = button.value) !== null && _a !== void 0 ? _a : button.dataset.index; });
|
|
83
|
+
}
|
|
84
|
+
get buttons() {
|
|
85
|
+
return Array.from(this.el.querySelectorAll(':scope > c-button'));
|
|
86
|
+
}
|
|
87
|
+
_getTabIndex(value) {
|
|
88
|
+
const index = this.availableValues.findIndex((buttonValue) => buttonValue === value);
|
|
89
|
+
return index;
|
|
90
|
+
}
|
|
91
|
+
componentDidLoad() {
|
|
92
|
+
this._isIndexBased = this.buttons.every((button) => typeof button.value === 'undefined');
|
|
93
|
+
this.buttons.forEach((button, index) => {
|
|
94
|
+
var _a;
|
|
95
|
+
button.setAttribute('data-index', String(index));
|
|
96
|
+
button.setAttribute('tabs', 'true');
|
|
97
|
+
if (!button.disabled) {
|
|
98
|
+
button.setAttribute('outlined', 'true');
|
|
99
|
+
button.outlined = true;
|
|
100
|
+
}
|
|
101
|
+
button.disabled = this.hostDisabled || button.disabled;
|
|
102
|
+
button.size = this.size;
|
|
103
|
+
const isActive = this.value !== null &&
|
|
104
|
+
(this._isIndexBased
|
|
105
|
+
? index === +this.value
|
|
106
|
+
: button.value === this.value);
|
|
107
|
+
(_a = button.shadowRoot
|
|
108
|
+
.querySelector('button')) === null || _a === void 0 ? void 0 : _a.setAttribute('tabindex', isActive && !this.hostDisabled ? '0' : '-1');
|
|
109
|
+
if (isActive) {
|
|
110
|
+
button.removeAttribute('outlined');
|
|
111
|
+
}
|
|
112
|
+
});
|
|
33
113
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
handleKeyUp(event) {
|
|
41
|
-
var _a, _b;
|
|
42
|
-
event.stopPropagation();
|
|
43
|
-
const isArrowLeft = event.key === 'ArrowLeft';
|
|
44
|
-
const isArrowRight = event.key === 'ArrowRight';
|
|
45
|
-
if (!isArrowRight && !isArrowLeft)
|
|
46
|
-
return;
|
|
47
|
-
const tabIndex = (_a = this._getTabIndex(this._focusedTabValue)) !== null && _a !== void 0 ? _a : +((_b = this.buttons[this._focusedTabValue]) === null || _b === void 0 ? void 0 : _b.dataset.index);
|
|
48
|
-
const firstAvailableValue = this.availableValues.at(0);
|
|
49
|
-
const lastAvailableValue = this.availableValues.at(-1);
|
|
50
|
-
const isBeginning = this._focusedTabValue === firstAvailableValue;
|
|
51
|
-
const isEnd = this._focusedTabValue === lastAvailableValue;
|
|
52
|
-
const nextValue = isEnd
|
|
53
|
-
? firstAvailableValue
|
|
54
|
-
: this.availableValues[tabIndex + 1];
|
|
55
|
-
const previousValue = isBeginning
|
|
56
|
-
? lastAvailableValue
|
|
57
|
-
: this.availableValues[tabIndex - 1];
|
|
58
|
-
const value = isArrowLeft ? previousValue : nextValue;
|
|
59
|
-
const item = this.buttons
|
|
60
|
-
.find((button) => button.value === value || button.dataset.index === value)
|
|
61
|
-
.shadowRoot.querySelector('button');
|
|
62
|
-
requestAnimationFrame(() => {
|
|
63
|
-
item === null || item === void 0 ? void 0 : item.focus();
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
onTabChange(event) {
|
|
67
|
-
if (!this.tabs)
|
|
68
|
-
event.stopPropagation();
|
|
69
|
-
const isActive = this.value !== null &&
|
|
70
|
-
(this._isIndexBased
|
|
71
|
-
? +event.detail.value === +this.value
|
|
72
|
-
: event.detail.value === this.value);
|
|
73
|
-
if (this.mandatory && isActive) {
|
|
74
|
-
return;
|
|
114
|
+
render() {
|
|
115
|
+
const classes = {
|
|
116
|
+
'c-tab-buttons': true,
|
|
117
|
+
disabled: this.hostDisabled,
|
|
118
|
+
};
|
|
119
|
+
return (h(Host, { key: '7215c44c6491c43b6986999b70f6b35adb42f336', class: classes }, h("slot", { key: 'c8de7c01c1626fe4b03ee977cbc3fd592ff0411c' })));
|
|
75
120
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
get availableValues() {
|
|
81
|
-
return this.buttons.map((button) => { var _a; return (_a = button.value) !== null && _a !== void 0 ? _a : button.dataset.index; });
|
|
82
|
-
}
|
|
83
|
-
get buttons() {
|
|
84
|
-
return Array.from(this.el.querySelectorAll(':scope > c-button'));
|
|
85
|
-
}
|
|
86
|
-
_getTabIndex(value) {
|
|
87
|
-
const index = this.availableValues.findIndex((buttonValue) => buttonValue === value);
|
|
88
|
-
return index;
|
|
89
|
-
}
|
|
90
|
-
componentDidLoad() {
|
|
91
|
-
this._isIndexBased = this.buttons.every((button) => typeof button.value === 'undefined');
|
|
92
|
-
this.buttons.forEach((button, index) => {
|
|
93
|
-
var _a;
|
|
94
|
-
button.setAttribute('data-index', String(index));
|
|
95
|
-
button.setAttribute('tabs', 'true');
|
|
96
|
-
if (!button.disabled) {
|
|
97
|
-
button.setAttribute('outlined', 'true');
|
|
98
|
-
button.outlined = true;
|
|
99
|
-
}
|
|
100
|
-
button.disabled = this.hostDisabled || button.disabled;
|
|
101
|
-
button.size = this.size;
|
|
102
|
-
const isActive = this.value !== null &&
|
|
103
|
-
(this._isIndexBased
|
|
104
|
-
? index === +this.value
|
|
105
|
-
: button.value === this.value);
|
|
106
|
-
(_a = button.shadowRoot
|
|
107
|
-
.querySelector('button')) === null || _a === void 0 ? void 0 : _a.setAttribute('tabindex', isActive && !this.hostDisabled ? '0' : '-1');
|
|
108
|
-
if (isActive) {
|
|
109
|
-
button.removeAttribute('outlined');
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
render() {
|
|
114
|
-
const classes = {
|
|
115
|
-
'c-tab-buttons': true,
|
|
116
|
-
disabled: this.hostDisabled,
|
|
117
|
-
};
|
|
118
|
-
return (h(Host, { class: classes }, h("slot", null)));
|
|
119
|
-
}
|
|
120
|
-
get el() { return getElement(this); }
|
|
121
|
-
static get watchers() { return {
|
|
122
|
-
"value": ["onValueChange"]
|
|
123
|
-
}; }
|
|
121
|
+
get el() { return getElement(this); }
|
|
122
|
+
static get watchers() { return {
|
|
123
|
+
"value": ["onValueChange"]
|
|
124
|
+
}; }
|
|
124
125
|
};
|
|
125
|
-
CTabButtons.style =
|
|
126
|
+
CTabButtons.style = CTabButtonsStyle0;
|
|
126
127
|
|
|
127
128
|
export { CTabButtons as c_tab_buttons };
|
|
128
129
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"c-tab-buttons.entry.js","mappings":";;AAAA,MAAM,cAAc,GAAG,i7FAAi7F;;MCqB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CAAC,CAAC,MAA0B,EAAE,KAAK;;MACrD,MAAM,CAAC,YAAY,CAAC,YAAY,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;MACjD,MAAM,CAAC,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;MAEpC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE;QACpB,MAAM,CAAC,YAAY,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;QACxC,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC;OACxB;MAED,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC,YAAY,IAAI,MAAM,CAAC,QAAQ,CAAC;MACvD,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;MAExB,MAAM,QAAQ,GACZ,IAAI,CAAC,KAAK,KAAK,IAAI;SAClB,IAAI,CAAC,aAAa;YACf,KAAK,KAAK,CAAC,IAAI,CAAC,KAAK;YACrB,MAAM,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK,CAAC,CAAC;MAEnC,MAAA,MAAM,CAAC,UAAU;SACd,aAAa,CAAC,QAAQ,CAAC,0CACtB,YAAY,CAAC,UAAU,EAAE,QAAQ,IAAI,CAAC,IAAI,CAAC,YAAY,GAAG,GAAG,GAAG,IAAI,CAAC,CAAC;MAE1E,IAAI,QAAQ,EAAE;QACZ,MAAM,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;OACpC;KACF,CAAC,CAAC;GACJ;EAED,MAAM;IACJ,MAAM,OAAO,GAAG;MACd,eAAe,EAAE,IAAI;MACrB,QAAQ,EAAE,IAAI,CAAC,YAAY;KAC5B,CAAC;IAEF,QACE,EAAC,IAAI,IAAC,KAAK,EAAE,OAAO,IAClB,eAAa,CACR,EACP;GACH;;;;;;;;;;","names":[],"sources":["src/components/c-tab-buttons/c-tab-buttons.scss?tag=c-tab-buttons&encapsulation=shadow","src/components/c-tab-buttons/c-tab-buttons.tsx"],"sourcesContent":[":host {\n /**\n * @prop --c-tab-buttons-background-color-active-hover: Active tab button hover background color\n * @prop --c-tab-buttons-background-color-active: Active tab button background color\n * @prop --c-tab-buttons-text-color-active: Active tab button text color\n */\n --_c-tab-buttons-background-color-active-hover: var(--c-tab-buttons-background-color-active-hover, var(--c-primary-400));\n --_c-tab-buttons-background-color-active: var(--c-tab-buttons-background-color-active, var(--c-primary-600));\n --_c-tab-buttons-text-color-active: var(--c-tab-buttons-text-color-active, var(--c-white));\n\n /**\n * @prop --c-tab-buttons-background-color-hover: Tab button hover background color\n * @prop --c-tab-buttons-background-color: Tab button background color\n * @prop --c-tab-buttons-border-color: Tab button border color\n * @prop --c-tab-buttons-text-color: Tab button text color\n */\n --_c-tab-buttons-background-color-hover: var(--c-tab-buttons-background-color-hover, var(--c-primary-200));\n --_c-tab-buttons-background-color: var(--c-tab-buttons-background-color, var(--c-white));\n --_c-tab-buttons-border-color: var(--c-tab-buttons-border-color, var(--c-primary-600));\n --_c-tab-buttons-text-color: var(--c-tab-buttons-text-color, var(--c-primary-600));\n\n /**\n * @prop --c-tab-buttons-background-color: Disabled tab buttons border color\n */\n --_c-tab-buttons-border-color-disabled: var(--c-tab-buttons-border-color-disabled, var(--c-tertiary-400));\n\n /**\n * @prop --c-tab-buttons-border-radius: Tab buttons border radius\n */\n --_c-tab-buttons-border-radius: var(--c-tab-buttons-border-radius, 4px);\n\n background-color: var(--_c-tab-buttons-border-color);\n border-radius: var(--_c-tab-buttons-border-radius);\n box-shadow: 0 0 0 2px var(--_c-tab-buttons-border-color);\n display: flex;\n flex-wrap: wrap;\n gap: 2px;\n margin: 2px;\n\n ::slotted(c-button) {\n --c-button-background-color-hover: var(--_c-tab-buttons-background-color-active-hover);\n --c-button-background-color: var(--_c-tab-buttons-background-color-active);\n --c-button-text-color: var(--_c-tab-buttons-text-color-active);\n --_c-button-border-radius: 0;\n --_c-button-min-width: auto;\n --_c-button-padding: 0 8px;\n --_c-button-outline-offset: 4px;\n\n flex-grow: 1;\n }\n\n ::slotted(c-button.c-button--outlined) {\n --c-button-outlined-background-color-hover: var(--_c-tab-buttons-background-color-hover);\n --c-button-outlined-background-color: var(--_c-tab-buttons-background-color);\n --c-button-outlined-border-color: var(--_c-tab-buttons-border-color);\n --c-button-outlined-text-color: var(--_c-tab-buttons-text-color);\n\n box-shadow: none;\n\n &::before,\n &::after {\n background-color: #ffffff;\n border-radius: inherit;\n content: \"\";\n height: 100%;\n left: 0;\n position: absolute;\n top: 0;\n transition: background-color 0.3s ease-in-out;\n width: 100%;\n z-index: -1;\n }\n\n &:hover {\n background-color: var(--c-tab-button-background-color);\n }\n }\n\n ::slotted(c-button:first-child) {\n --_c-button-border-radius: var(--_c-tab-buttons-border-radius) 0 0 var(--_c-tab-buttons-border-radius);\n }\n\n ::slotted(c-button:last-child) {\n --_c-button-border-radius: 0 var(--_c-tab-buttons-border-radius) var(--_c-tab-buttons-border-radius) 0;\n }\n\n ::slotted(*) {\n flex-grow: 1;\n }\n}\n\n:host(.disabled) {\n --_c-tab-buttons-border-color: var(--_c-tab-buttons-border-color-disabled) !important;\n\n pointer-events: none;\n}\n\n:host(.c-tab-buttons) {\n ::slotted(c-button:focus) {\n outline: none;\n }\n\n ::slotted(c-button:focus-visible) {\n outline: 2px var(--_c-tab-buttons-border-color) solid;\n outline-offset: 4px;\n z-index: 1;\n }\n}\n","import {\n Component,\n h,\n Element,\n Prop,\n Event,\n EventEmitter,\n Watch,\n Listen,\n Host,\n} from '@stencil/core';\n\n/**\n * @group Content Selectors\n * @slot Default slot - Default slot for the c-button elements\n */\n@Component({\n tag: 'c-tab-buttons',\n styleUrl: 'c-tab-buttons.scss',\n shadow: true,\n})\nexport class CTabButtons {\n /**\n * Value of tab buttons\n */\n @Prop({ mutable: true }) value: number | string = 0;\n\n /**\n * Always require a selection\n */\n @Prop() mandatory = false;\n\n /**\n * Used as controller for c-tabs\n * @private\n */\n @Prop() tabs = false;\n\n /**\n * Size of the buttons\n */\n @Prop() size: 'default' | 'small' = 'default';\n\n /**\n * Disable tab buttons\n */\n @Prop({ attribute: 'disabled' }) hostDisabled = false;\n\n /**\n * Emit changes to the parent\n */\n @Event({ bubbles: false }) changeValue: EventEmitter<number | string>;\n\n @Element() el: HTMLCTabButtonsElement;\n\n private _isIndexBased: boolean;\n\n private _focusedTabValue = this.value;\n\n @Watch('value')\n onValueChange(value: string | number) {\n this.buttons.forEach((button: HTMLCButtonElement) => {\n if (!button.disabled) {\n button.setAttribute('outlined', 'true');\n }\n });\n\n if (value !== null) {\n this.buttons.forEach((button: HTMLCButtonElement) => {\n if (!button.disabled) {\n button.setAttribute('outlined', 'true');\n }\n });\n\n const button =\n this.buttons.find((btn) => btn.value === value) || this.buttons[value];\n\n if (button) {\n button.removeAttribute('outlined');\n }\n }\n\n this.changeValue.emit(this.buttons[value]?.value ?? value);\n }\n\n @Listen('tabFocus', { passive: true })\n tabFocusHandler(event: CustomEvent) {\n event.stopPropagation();\n\n this._focusedTabValue = event.detail;\n }\n\n @Listen('keyup', { capture: true })\n handleKeyUp(event: KeyboardEvent) {\n event.stopPropagation();\n\n const isArrowLeft = event.key === 'ArrowLeft';\n const isArrowRight = event.key === 'ArrowRight';\n\n if (!isArrowRight && !isArrowLeft) return;\n\n const tabIndex =\n this._getTabIndex(this._focusedTabValue) ??\n +this.buttons[this._focusedTabValue]?.dataset.index;\n\n const firstAvailableValue = this.availableValues.at(0);\n const lastAvailableValue = this.availableValues.at(-1);\n\n const isBeginning = this._focusedTabValue === firstAvailableValue;\n const isEnd = this._focusedTabValue === lastAvailableValue;\n\n const nextValue = isEnd\n ? firstAvailableValue\n : this.availableValues[tabIndex + 1];\n\n const previousValue = isBeginning\n ? lastAvailableValue\n : this.availableValues[tabIndex - 1];\n\n const value = isArrowLeft ? previousValue : nextValue;\n\n const item = this.buttons\n .find(\n (button) => button.value === value || button.dataset.index === value,\n )\n .shadowRoot.querySelector('button');\n\n requestAnimationFrame(() => {\n item?.focus();\n });\n }\n\n @Listen('tabChange', { passive: true })\n onTabChange(\n event: CustomEvent<{\n value: number | string;\n element: HTMLCButtonElement;\n }>,\n ) {\n if (!this.tabs) event.stopPropagation();\n\n const isActive =\n this.value !== null &&\n (this._isIndexBased\n ? +event.detail.value === +this.value\n : event.detail.value === this.value);\n\n // Disable deselection if mandatory prop is set to true\n if (this.mandatory && isActive) {\n return;\n }\n\n const nullValue = this._isIndexBased ? null : '';\n const value = this._isIndexBased ? +event.detail.value : event.detail.value;\n\n this.value = isActive ? nullValue : value;\n }\n\n get availableValues() {\n return this.buttons.map((button) => button.value ?? button.dataset.index);\n }\n\n get buttons() {\n return Array.from(\n this.el.querySelectorAll(':scope > c-button'),\n ) as HTMLCButtonElement[];\n }\n\n private _getTabIndex(value: string | number) {\n const index = this.availableValues.findIndex(\n (buttonValue) => buttonValue === value,\n );\n\n return index;\n }\n\n componentDidLoad() {\n this._isIndexBased = this.buttons.every(\n (button) => typeof button.value === 'undefined',\n );\n\n this.buttons.forEach((button: HTMLCButtonElement, index) => {\n button.setAttribute('data-index', String(index));\n button.setAttribute('tabs', 'true');\n\n if (!button.disabled) {\n button.setAttribute('outlined', 'true');\n button.outlined = true;\n }\n\n button.disabled = this.hostDisabled || button.disabled;\n button.size = this.size;\n\n const isActive =\n this.value !== null &&\n (this._isIndexBased\n ? index === +this.value\n : button.value === this.value);\n\n button.shadowRoot\n .querySelector('button')\n ?.setAttribute('tabindex', isActive && !this.hostDisabled ? '0' : '-1');\n\n if (isActive) {\n button.removeAttribute('outlined');\n }\n });\n }\n\n render() {\n const classes = {\n 'c-tab-buttons': true,\n disabled: this.hostDisabled,\n };\n\n return (\n <Host class={classes}>\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
1
|
+
{"file":"c-tab-buttons.entry.js","mappings":";;AAAA,MAAM,cAAc,GAAG,i7FAAi7F,CAAC;AACz8F,0BAAe,cAAc;;MCoBhB,WAAW;;;;QAqCd,qBAAgB,GAAG,IAAI,CAAC,KAAK,CAAC;qBAjCY,CAAC;yBAK/B,KAAK;oBAMV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KAAK,CAAC,CAAC,CAAC;YACjD,MAAM,CAAC,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;YAEpC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE;gBACpB,MAAM,CAAC,YAAY,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;gBACxC,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC;aACxB;YAED,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC,YAAY,IAAI,MAAM,CAAC,QAAQ,CAAC;YACvD,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;YAExB,MAAM,QAAQ,GACZ,IAAI,CAAC,KAAK,KAAK,IAAI;iBAClB,IAAI,CAAC,aAAa;sBACf,KAAK,KAAK,CAAC,IAAI,CAAC,KAAK;sBACrB,MAAM,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK,CAAC,CAAC;YAEnC,MAAA,MAAM,CAAC,UAAU;iBACd,aAAa,CAAC,QAAQ,CAAC,0CACtB,YAAY,CAAC,UAAU,EAAE,QAAQ,IAAI,CAAC,IAAI,CAAC,YAAY,GAAG,GAAG,GAAG,IAAI,CAAC,CAAC;YAE1E,IAAI,QAAQ,EAAE;gBACZ,MAAM,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;aACpC;SACF,CAAC,CAAC;KACJ;IAED,MAAM;QACJ,MAAM,OAAO,GAAG;YACd,eAAe,EAAE,IAAI;YACrB,QAAQ,EAAE,IAAI,CAAC,YAAY;SAC5B,CAAC;QAEF,QACE,EAAC,IAAI,qDAAC,KAAK,EAAE,OAAO,IAClB,8DAAa,CACR,EACP;KACH;;;;;;;;;;","names":[],"sources":["src/components/c-tab-buttons/c-tab-buttons.scss?tag=c-tab-buttons&encapsulation=shadow","src/components/c-tab-buttons/c-tab-buttons.tsx"],"sourcesContent":[":host {\n /**\n * @prop --c-tab-buttons-background-color-active-hover: Active tab button hover background color\n * @prop --c-tab-buttons-background-color-active: Active tab button background color\n * @prop --c-tab-buttons-text-color-active: Active tab button text color\n */\n --_c-tab-buttons-background-color-active-hover: var(--c-tab-buttons-background-color-active-hover, var(--c-primary-400));\n --_c-tab-buttons-background-color-active: var(--c-tab-buttons-background-color-active, var(--c-primary-600));\n --_c-tab-buttons-text-color-active: var(--c-tab-buttons-text-color-active, var(--c-white));\n\n /**\n * @prop --c-tab-buttons-background-color-hover: Tab button hover background color\n * @prop --c-tab-buttons-background-color: Tab button background color\n * @prop --c-tab-buttons-border-color: Tab button border color\n * @prop --c-tab-buttons-text-color: Tab button text color\n */\n --_c-tab-buttons-background-color-hover: var(--c-tab-buttons-background-color-hover, var(--c-primary-200));\n --_c-tab-buttons-background-color: var(--c-tab-buttons-background-color, var(--c-white));\n --_c-tab-buttons-border-color: var(--c-tab-buttons-border-color, var(--c-primary-600));\n --_c-tab-buttons-text-color: var(--c-tab-buttons-text-color, var(--c-primary-600));\n\n /**\n * @prop --c-tab-buttons-background-color: Disabled tab buttons border color\n */\n --_c-tab-buttons-border-color-disabled: var(--c-tab-buttons-border-color-disabled, var(--c-tertiary-400));\n\n /**\n * @prop --c-tab-buttons-border-radius: Tab buttons border radius\n */\n --_c-tab-buttons-border-radius: var(--c-tab-buttons-border-radius, 4px);\n\n background-color: var(--_c-tab-buttons-border-color);\n border-radius: var(--_c-tab-buttons-border-radius);\n box-shadow: 0 0 0 2px var(--_c-tab-buttons-border-color);\n display: flex;\n flex-wrap: wrap;\n gap: 2px;\n margin: 2px;\n\n ::slotted(c-button) {\n --c-button-background-color-hover: var(--_c-tab-buttons-background-color-active-hover);\n --c-button-background-color: var(--_c-tab-buttons-background-color-active);\n --c-button-text-color: var(--_c-tab-buttons-text-color-active);\n --_c-button-border-radius: 0;\n --_c-button-min-width: auto;\n --_c-button-padding: 0 8px;\n --_c-button-outline-offset: 4px;\n\n flex-grow: 1;\n }\n\n ::slotted(c-button.c-button--outlined) {\n --c-button-outlined-background-color-hover: var(--_c-tab-buttons-background-color-hover);\n --c-button-outlined-background-color: var(--_c-tab-buttons-background-color);\n --c-button-outlined-border-color: var(--_c-tab-buttons-border-color);\n --c-button-outlined-text-color: var(--_c-tab-buttons-text-color);\n\n box-shadow: none;\n\n &::before,\n &::after {\n background-color: #ffffff;\n border-radius: inherit;\n content: \"\";\n height: 100%;\n left: 0;\n position: absolute;\n top: 0;\n transition: background-color 0.3s ease-in-out;\n width: 100%;\n z-index: -1;\n }\n\n &:hover {\n background-color: var(--c-tab-button-background-color);\n }\n }\n\n ::slotted(c-button:first-child) {\n --_c-button-border-radius: var(--_c-tab-buttons-border-radius) 0 0 var(--_c-tab-buttons-border-radius);\n }\n\n ::slotted(c-button:last-child) {\n --_c-button-border-radius: 0 var(--_c-tab-buttons-border-radius) var(--_c-tab-buttons-border-radius) 0;\n }\n\n ::slotted(*) {\n flex-grow: 1;\n }\n}\n\n:host(.disabled) {\n --_c-tab-buttons-border-color: var(--_c-tab-buttons-border-color-disabled) !important;\n\n pointer-events: none;\n}\n\n:host(.c-tab-buttons) {\n ::slotted(c-button:focus) {\n outline: none;\n }\n\n ::slotted(c-button:focus-visible) {\n outline: 2px var(--_c-tab-buttons-border-color) solid;\n outline-offset: 4px;\n z-index: 1;\n }\n}\n","import {\n Component,\n h,\n Element,\n Prop,\n Event,\n EventEmitter,\n Watch,\n Listen,\n Host,\n} from '@stencil/core';\n\n/**\n * @group Content Selectors\n * @slot Default slot - Default slot for the c-button elements\n */\n@Component({\n tag: 'c-tab-buttons',\n styleUrl: 'c-tab-buttons.scss',\n shadow: true,\n})\nexport class CTabButtons {\n /**\n * Value of tab buttons\n */\n @Prop({ mutable: true }) value: number | string = 0;\n\n /**\n * Always require a selection\n */\n @Prop() mandatory = false;\n\n /**\n * Used as controller for c-tabs\n * @private\n */\n @Prop() tabs = false;\n\n /**\n * Size of the buttons\n */\n @Prop() size: 'default' | 'small' = 'default';\n\n /**\n * Disable tab buttons\n */\n @Prop({ attribute: 'disabled' }) hostDisabled = false;\n\n /**\n * Emit changes to the parent\n */\n @Event({ bubbles: false })\n changeValue: EventEmitter<number | string>;\n\n @Element() el: HTMLCTabButtonsElement;\n\n private _isIndexBased: boolean;\n\n private _focusedTabValue = this.value;\n\n @Watch('value')\n onValueChange(value: string | number) {\n this.buttons.forEach((button: HTMLCButtonElement) => {\n if (!button.disabled) {\n button.setAttribute('outlined', 'true');\n }\n });\n\n if (value !== null) {\n this.buttons.forEach((button: HTMLCButtonElement) => {\n if (!button.disabled) {\n button.setAttribute('outlined', 'true');\n }\n });\n\n const button =\n this.buttons.find((btn) => btn.value === value) || this.buttons[value];\n\n if (button) {\n button.removeAttribute('outlined');\n }\n }\n\n this.changeValue.emit(this.buttons[value]?.value ?? value);\n }\n\n @Listen('tabFocus', { passive: true })\n tabFocusHandler(event: CustomEvent) {\n event.stopPropagation();\n\n this._focusedTabValue = event.detail;\n }\n\n @Listen('keyup', { capture: true })\n handleKeyUp(event: KeyboardEvent) {\n event.stopPropagation();\n\n const isArrowLeft = event.key === 'ArrowLeft';\n const isArrowRight = event.key === 'ArrowRight';\n\n if (!isArrowRight && !isArrowLeft) return;\n\n const tabIndex =\n this._getTabIndex(this._focusedTabValue) ??\n +this.buttons[this._focusedTabValue]?.dataset.index;\n\n const firstAvailableValue = this.availableValues.at(0);\n const lastAvailableValue = this.availableValues.at(-1);\n\n const isBeginning = this._focusedTabValue === firstAvailableValue;\n const isEnd = this._focusedTabValue === lastAvailableValue;\n\n const nextValue = isEnd\n ? firstAvailableValue\n : this.availableValues[tabIndex + 1];\n\n const previousValue = isBeginning\n ? lastAvailableValue\n : this.availableValues[tabIndex - 1];\n\n const value = isArrowLeft ? previousValue : nextValue;\n\n const item = this.buttons\n .find(\n (button) => button.value === value || button.dataset.index === value,\n )\n .shadowRoot.querySelector('button');\n\n requestAnimationFrame(() => {\n item?.focus();\n });\n }\n\n @Listen('tabChange', { passive: true })\n onTabChange(\n event: CustomEvent<{\n value: number | string;\n element: HTMLCButtonElement;\n }>,\n ) {\n if (!this.tabs) event.stopPropagation();\n\n const isActive =\n this.value !== null &&\n (this._isIndexBased\n ? +event.detail.value === +this.value\n : event.detail.value === this.value);\n\n // Disable deselection if mandatory prop is set to true\n if (this.mandatory && isActive) {\n return;\n }\n\n const nullValue = this._isIndexBased ? null : '';\n const value = this._isIndexBased ? +event.detail.value : event.detail.value;\n\n this.value = isActive ? nullValue : value;\n }\n\n get availableValues() {\n return this.buttons.map((button) => button.value ?? button.dataset.index);\n }\n\n get buttons() {\n return Array.from(\n this.el.querySelectorAll(':scope > c-button'),\n ) as HTMLCButtonElement[];\n }\n\n private _getTabIndex(value: string | number) {\n const index = this.availableValues.findIndex(\n (buttonValue) => buttonValue === value,\n );\n\n return index;\n }\n\n componentDidLoad() {\n this._isIndexBased = this.buttons.every(\n (button) => typeof button.value === 'undefined',\n );\n\n this.buttons.forEach((button: HTMLCButtonElement, index) => {\n button.setAttribute('data-index', String(index));\n button.setAttribute('tabs', 'true');\n\n if (!button.disabled) {\n button.setAttribute('outlined', 'true');\n button.outlined = true;\n }\n\n button.disabled = this.hostDisabled || button.disabled;\n button.size = this.size;\n\n const isActive =\n this.value !== null &&\n (this._isIndexBased\n ? index === +this.value\n : button.value === this.value);\n\n button.shadowRoot\n .querySelector('button')\n ?.setAttribute('tabindex', isActive && !this.hostDisabled ? '0' : '-1');\n\n if (isActive) {\n button.removeAttribute('outlined');\n }\n });\n }\n\n render() {\n const classes = {\n 'c-tab-buttons': true,\n disabled: this.hostDisabled,\n };\n\n return (\n <Host class={classes}>\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,36 +1,37 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5e4179ca.js';
|
|
2
2
|
|
|
3
3
|
const cTabItemCss = "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-tab-item-padding:var(--c-tab-item-padding, 16px 0 0 0);display:block;min-width:100%;padding:var(--_c-tab-item-padding);height:0;user-select:none}:host([active=true]){height:auto;user-select:auto}:host([active=false])>div{display:none}:host([disabled=true]){min-width:0;width:0;overflow:hidden}";
|
|
4
|
+
const CTabItemStyle0 = cTabItemCss;
|
|
4
5
|
|
|
5
6
|
const CTabItem = class {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
this.contentChange = createEvent(this, "contentChange", 7);
|
|
10
|
+
this.value = undefined;
|
|
11
|
+
this.active = false;
|
|
12
|
+
}
|
|
13
|
+
componentDidLoad() {
|
|
14
|
+
this._resizeObserver = new ResizeObserver(() => {
|
|
15
|
+
this._handleResize();
|
|
16
|
+
});
|
|
17
|
+
this._resizeObserver.observe(this.el.shadowRoot.querySelector('div'));
|
|
18
|
+
}
|
|
19
|
+
disconnectedCallback() {
|
|
20
|
+
var _a;
|
|
21
|
+
(_a = this._resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
22
|
+
}
|
|
23
|
+
_handleResize() {
|
|
24
|
+
this.contentChange.emit();
|
|
25
|
+
}
|
|
26
|
+
render() {
|
|
27
|
+
const attributes = {
|
|
28
|
+
role: 'tabpanel',
|
|
29
|
+
};
|
|
30
|
+
return (h(Host, Object.assign({ key: '988401489dcd8bafbbbec105dac2ac2abebdfc26' }, attributes), h("div", { key: '81400eabf679e460b871c0c31bc1ca82de617dfb', class: { active: this.active } }, h("slot", { key: 'a9c8737154bc95ea7bf2a5d91502f3398d6f1fc9' }))));
|
|
31
|
+
}
|
|
32
|
+
get el() { return getElement(this); }
|
|
32
33
|
};
|
|
33
|
-
CTabItem.style =
|
|
34
|
+
CTabItem.style = CTabItemStyle0;
|
|
34
35
|
|
|
35
36
|
export { CTabItem as c_tab_item };
|
|
36
37
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"c-tab-item.entry.js","mappings":";;AAAA,MAAM,WAAW,GAAG,0eAA0e;;
|
|
1
|
+
{"file":"c-tab-item.entry.js","mappings":";;AAAA,MAAM,WAAW,GAAG,0eAA0e,CAAC;AAC/f,uBAAe,WAAW;;MCkBb,QAAQ;;;;;sBAUF,KAAK;;IAWtB,gBAAgB;QACd,IAAI,CAAC,eAAe,GAAG,IAAI,cAAc,CAAC;YACxC,IAAI,CAAC,aAAa,EAAE,CAAC;SACtB,CAAC,CAAC;QAEH,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;KACvE;IAED,oBAAoB;;QAClB,MAAA,IAAI,CAAC,eAAe,0CAAE,UAAU,EAAE,CAAC;KACpC;IAEO,aAAa;QACnB,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC;KAC3B;IAED,MAAM;QACJ,MAAM,UAAU,GAAG;YACjB,IAAI,EAAE,UAAU;SACjB,CAAC;QAEF,QACE,EAAC,IAAI,qEAAK,UAAU,GAClB,4DAAK,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IACjC,8DAAa,CACT,CACD,EACP;KACH;;;;;;;","names":[],"sources":["src/components/c-tab-item/c-tab-item.scss?tag=c-tab-item&encapsulation=shadow","src/components/c-tab-item/c-tab-item.tsx"],"sourcesContent":[":host {\n /**\n * @prop --c-tab-item-padding: Tab item padding\n */\n --_c-tab-item-padding: var(--c-tab-item-padding, 16px 0 0 0);\n\n display: block;\n min-width: 100%;\n padding: var(--_c-tab-item-padding);\n height: 0;\n user-select: none;\n}\n\n:host([active=\"true\"]) {\n height: auto;\n user-select: auto;\n}\n\n:host([active=\"false\"]) > div {\n display: none;\n}\n\n:host([disabled=\"true\"]) {\n min-width: 0;\n width: 0;\n overflow: hidden;\n}\n","import {\n Component,\n Element,\n Host,\n h,\n Prop,\n EventEmitter,\n Event,\n} from '@stencil/core';\n\n/**\n * @parent c-tabs\n * @slot Default slot - Default slot\n */\n@Component({\n tag: 'c-tab-item',\n styleUrl: 'c-tab-item.scss',\n shadow: true,\n})\nexport class CTabItem {\n /**\n * Tab value\n */\n @Prop() value!: number | string;\n\n /**\n * Active\n * @private\n */\n @Prop() active = false;\n\n /**\n * Emit changes to the parent\n */\n @Event() contentChange: EventEmitter;\n\n @Element() el: HTMLCTabItemElement;\n\n private _resizeObserver: ResizeObserver;\n\n componentDidLoad() {\n this._resizeObserver = new ResizeObserver(() => {\n this._handleResize();\n });\n\n this._resizeObserver.observe(this.el.shadowRoot.querySelector('div'));\n }\n\n disconnectedCallback() {\n this._resizeObserver?.disconnect();\n }\n\n private _handleResize() {\n this.contentChange.emit();\n }\n\n render() {\n const attributes = {\n role: 'tabpanel',\n };\n\n return (\n <Host {...attributes}>\n <div class={{ active: this.active }}>\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,76 +1,77 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-5e4179ca.js';
|
|
2
2
|
|
|
3
3
|
const cTabItemsCss = "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-tab-items-height:auto;--_c-tab-items-position-left:0;--_c-tab-items-animation-duration:0.001ms;display:block;height:var(--_c-tab-items-height);overflow:hidden;transition:height var(--_c-tab-items-animation-duration) cubic-bezier(0.075, 0.82, 0.165, 1);width:100%}:host>div{align-items:flex-start;display:flex;transition:translate var(--_c-tab-items-animation-duration) cubic-bezier(0.075, 0.82, 0.165, 1);translate:var(--_c-tab-items-position-left)}";
|
|
4
|
+
const CTabItemsStyle0 = cTabItemsCss;
|
|
4
5
|
|
|
5
6
|
const CTabItems = class {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
onValueChange() {
|
|
16
|
-
this._setActiveTab();
|
|
17
|
-
}
|
|
18
|
-
tabContentChangeHandler(e) {
|
|
19
|
-
e.stopPropagation();
|
|
20
|
-
this.el.style.setProperty('--_c-tab-items-height', 'auto');
|
|
21
|
-
}
|
|
22
|
-
get _tabs() {
|
|
23
|
-
return Array.from(this.el.querySelectorAll('c-tab-item'));
|
|
24
|
-
}
|
|
25
|
-
_setActiveTab() {
|
|
26
|
-
this._tabs.forEach((tab) => {
|
|
27
|
-
if (tab.value === this.value) {
|
|
28
|
-
this.activeTab = tab;
|
|
29
|
-
}
|
|
30
|
-
tab.classList.toggle('active', tab.value === this.value);
|
|
31
|
-
});
|
|
32
|
-
this.el.style.setProperty('--_c-tab-items-height', `${this.activeTab.scrollHeight}px`);
|
|
33
|
-
requestAnimationFrame(() => {
|
|
34
|
-
this.el.style.setProperty('--_c-tab-items-position-left', `${-1 * this.activeTab.offsetLeft}px`);
|
|
35
|
-
if (!this.disableAnimation && !this._initialized) {
|
|
36
|
-
this._initialized = true;
|
|
37
|
-
setTimeout(() => {
|
|
38
|
-
this.el.style.setProperty('--_c-tab-items-animation-duration', '300ms');
|
|
39
|
-
}, 500);
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
_handleResize() {
|
|
44
|
-
if (this._isAnimating || !this._initialized)
|
|
45
|
-
return;
|
|
46
|
-
if (this._debounce !== null) {
|
|
47
|
-
clearTimeout(this._debounce);
|
|
48
|
-
this._debounce = null;
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
this._debounce = null;
|
|
10
|
+
this._isAnimating = false;
|
|
11
|
+
this._initialized = false;
|
|
12
|
+
this.value = undefined;
|
|
13
|
+
this.disableAnimation = false;
|
|
14
|
+
this.activeTab = undefined;
|
|
49
15
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}, 50);
|
|
53
|
-
}
|
|
54
|
-
componentWillLoad() {
|
|
55
|
-
if (this.disableAnimation) {
|
|
56
|
-
this.el.style.setProperty('--c-tab-items-animation-duration', '0ms');
|
|
16
|
+
onValueChange() {
|
|
17
|
+
this._setActiveTab();
|
|
57
18
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
19
|
+
tabContentChangeHandler(e) {
|
|
20
|
+
e.stopPropagation();
|
|
21
|
+
this.el.style.setProperty('--_c-tab-items-height', 'auto');
|
|
22
|
+
}
|
|
23
|
+
get _tabs() {
|
|
24
|
+
return Array.from(this.el.querySelectorAll('c-tab-item'));
|
|
25
|
+
}
|
|
26
|
+
_setActiveTab() {
|
|
27
|
+
this._tabs.forEach((tab) => {
|
|
28
|
+
if (tab.value === this.value) {
|
|
29
|
+
this.activeTab = tab;
|
|
30
|
+
}
|
|
31
|
+
tab.classList.toggle('active', tab.value === this.value);
|
|
32
|
+
});
|
|
33
|
+
this.el.style.setProperty('--_c-tab-items-height', `${this.activeTab.scrollHeight}px`);
|
|
34
|
+
requestAnimationFrame(() => {
|
|
35
|
+
this.el.style.setProperty('--_c-tab-items-position-left', `${-1 * this.activeTab.offsetLeft}px`);
|
|
36
|
+
if (!this.disableAnimation && !this._initialized) {
|
|
37
|
+
this._initialized = true;
|
|
38
|
+
setTimeout(() => {
|
|
39
|
+
this.el.style.setProperty('--_c-tab-items-animation-duration', '300ms');
|
|
40
|
+
}, 500);
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
_handleResize() {
|
|
45
|
+
if (this._isAnimating || !this._initialized)
|
|
46
|
+
return;
|
|
47
|
+
if (this._debounce !== null) {
|
|
48
|
+
clearTimeout(this._debounce);
|
|
49
|
+
this._debounce = null;
|
|
50
|
+
}
|
|
51
|
+
this._debounce = setTimeout(() => {
|
|
52
|
+
this._setActiveTab();
|
|
53
|
+
}, 50);
|
|
54
|
+
}
|
|
55
|
+
componentWillLoad() {
|
|
56
|
+
if (this.disableAnimation) {
|
|
57
|
+
this.el.style.setProperty('--c-tab-items-animation-duration', '0ms');
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
componentDidLoad() {
|
|
61
|
+
this._resizeObserver = new ResizeObserver(() => {
|
|
62
|
+
this._handleResize();
|
|
63
|
+
});
|
|
64
|
+
this._resizeObserver.observe(this.el);
|
|
65
|
+
}
|
|
66
|
+
render() {
|
|
67
|
+
return (h(Host, { key: '96a8f83bb075adc290b69b435a2c939520ed99f8' }, h("div", { key: 'cb413ffc45e80f31df8f18f32935046988e4a253' }, h("slot", { key: 'b2a839a2fe9b53cc0ab820e5eede21c3381cd7c4' }))));
|
|
68
|
+
}
|
|
69
|
+
get el() { return getElement(this); }
|
|
70
|
+
static get watchers() { return {
|
|
71
|
+
"value": ["onValueChange"]
|
|
72
|
+
}; }
|
|
72
73
|
};
|
|
73
|
-
CTabItems.style =
|
|
74
|
+
CTabItems.style = CTabItemsStyle0;
|
|
74
75
|
|
|
75
76
|
export { CTabItems as c_tab_items };
|
|
76
77
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"c-tab-items.entry.js","mappings":";;AAAA,MAAM,YAAY,GAAG,soBAAsoB;;
|
|
1
|
+
{"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,YAAY,GAAG,IAAI,CAAC;gBACzB,UAAU,CAAC;oBACT,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CACvB,mCAAmC,EACnC,OAAO,CACR,CAAC;iBACH,EAAE,GAAG,CAAC,CAAC;aACT;SACF,CAAC,CAAC;KACJ;IAEO,aAAa;QACnB,IAAI,IAAI,CAAC,YAAY,IAAI,CAAC,IAAI,CAAC,YAAY;YAAE,OAAO;QAEpD,IAAI,IAAI,CAAC,SAAS,KAAK,IAAI,EAAE;YAC3B,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YAC7B,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;SACvB;QAED,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC;YAC1B,IAAI,CAAC,aAAa,EAAE,CAAC;SACtB,EAAE,EAAE,CAAC,CAAC;KACR;IAED,iBAAiB;QACf,IAAI,IAAI,CAAC,gBAAgB,EAAE;YACzB,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,kCAAkC,EAAE,KAAK,CAAC,CAAC;SACtE;KACF;IAED,gBAAgB;QACd,IAAI,CAAC,eAAe,GAAG,IAAI,cAAc,CAAC;YACxC,IAAI,CAAC,aAAa,EAAE,CAAC;SACtB,CAAC,CAAC;QAEH,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;KACvC;IAED,MAAM;QACJ,QACE,EAAC,IAAI,uDACH,8DACE,8DAAa,CACT,CACD,EACP;KACH;;;;;;;;;;","names":[],"sources":["src/components/c-tab-items/c-tab-items.scss?tag=c-tab-items&encapsulation=shadow","src/components/c-tab-items/c-tab-items.tsx"],"sourcesContent":[":host {\n --_c-tab-items-height: auto;\n --_c-tab-items-position-left: 0;\n --_c-tab-items-animation-duration: 0.001ms;\n\n display: block;\n height: var(--_c-tab-items-height);\n overflow: hidden;\n transition: height var(--_c-tab-items-animation-duration) cubic-bezier(0.075, 0.82, 0.165, 1);\n width: 100%;\n\n > div {\n align-items: flex-start;\n display: flex;\n transition: translate var(--_c-tab-items-animation-duration) cubic-bezier(0.075, 0.82, 0.165, 1);\n translate: var(--_c-tab-items-position-left);\n }\n}\n","import {\n Component,\n Element,\n Host,\n Listen,\n Prop,\n h,\n Watch,\n State,\n} from '@stencil/core';\n\n/**\n * @parent c-tabs\n * @slot Default slot - Default slot\n */\n@Component({\n tag: 'c-tab-items',\n styleUrl: 'c-tab-items.scss',\n shadow: true,\n})\nexport class CTabItems {\n /**\n * Currently active tab\n */\n @Prop() value!: number | string;\n\n /**\n * Disable animation\n * @private\n */\n @Prop() disableAnimation = false;\n\n @Element() el: HTMLCTabItemsElement;\n\n @State() activeTab: HTMLCTabItemElement;\n\n @Watch('value')\n onValueChange() {\n this._setActiveTab();\n }\n\n @Listen('contentChange', { passive: true })\n tabContentChangeHandler(e: CustomEvent) {\n e.stopPropagation();\n\n this.el.style.setProperty('--_c-tab-items-height', 'auto');\n }\n\n private _resizeObserver: ResizeObserver;\n\n private _debounce = null;\n\n private _isAnimating = false;\n\n private _initialized = false;\n\n private get _tabs() {\n return Array.from(\n this.el.querySelectorAll('c-tab-item'),\n ) as HTMLCTabItemElement[];\n }\n\n private _setActiveTab() {\n this._tabs.forEach((tab) => {\n if (tab.value === this.value) {\n this.activeTab = tab;\n }\n\n tab.classList.toggle('active', tab.value === this.value);\n });\n\n this.el.style.setProperty(\n '--_c-tab-items-height',\n `${this.activeTab.scrollHeight}px`,\n );\n\n requestAnimationFrame(() => {\n this.el.style.setProperty(\n '--_c-tab-items-position-left',\n `${-1 * this.activeTab.offsetLeft}px`,\n );\n\n if (!this.disableAnimation && !this._initialized) {\n this._initialized = true;\n setTimeout(() => {\n this.el.style.setProperty(\n '--_c-tab-items-animation-duration',\n '300ms',\n );\n }, 500);\n }\n });\n }\n\n private _handleResize() {\n if (this._isAnimating || !this._initialized) return;\n\n if (this._debounce !== null) {\n clearTimeout(this._debounce);\n this._debounce = null;\n }\n\n this._debounce = setTimeout(() => {\n this._setActiveTab();\n }, 50);\n }\n\n componentWillLoad() {\n if (this.disableAnimation) {\n this.el.style.setProperty('--c-tab-items-animation-duration', '0ms');\n }\n }\n\n componentDidLoad() {\n this._resizeObserver = new ResizeObserver(() => {\n this._handleResize();\n });\n\n this._resizeObserver.observe(this.el);\n }\n\n render() {\n return (\n <Host>\n <div>\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|