@cscfi/csc-ui 2.2.4 → 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 +2438 -2390
- 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.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 -204
- 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 -67
- 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 +2438 -2390
- 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 -15
- 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-42587422.entry.js +0 -2
- package/dist/csc-ui/p-42587422.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-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
|
@@ -2,708 +2,709 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-4fc978c6.js');
|
|
6
6
|
const mdi = require('./mdi-66dcba4d.js');
|
|
7
7
|
|
|
8
8
|
const cDataTableCss = "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-data-table-background-color:var(--c-data-table-background-color, var(--c-white));--_c-data-table-border-color:var(--c-data-table-border-color, var(--c-tertiary-200));--_c-data-table-background-color-hover:var(--c-data-table-background-color-hover, var(--c-primary-100));--_c-data-table-selected-row-background-color:var(--c-data-table-selected-row-background-color, rgba(var(--c-primary-rgb), 0.1));--_c-data-table-highlighted-column-background-color:var(--c-data-table-highlighted-column-background-color, rgba(var(--c-primary-rgb), 0.1));--_c-data-table-active:var(--c-data-table-active, var(--c-primary-600));--_c-data-table-checkbox-color:var(--c-data-table-checkbox-color, var(--c-primary-600));--_c-data-table-checkbox-color-active:var(--c-data-table-checkbox-color-active, var(--_c-data-table-checkbox-color));--_c-data-table-checkbox-background-color-hover:var(--c-data-table-checkbox-background-color-hover, rgba(var(--c-primary-rgb), 0.1));--_c-data-table-pagination-button-active-background-color:var(--c-data-table-pagination-button-active-background-color, var(--c-primary-600));--_c-data-table-pagination-button-active-background-color-hover:var(--c-data-table-pagination-button-active-background-color-hover, var(--c-primary-400));--_c-data-table-pagination-button-active-text-color:var(--c-data-table-pagination-button-active-text-color, var(--c-white));--_c-data-table-pagination-button-background-color:var(--c-data-table-pagination-button-background-color, var(--c-transparent));--_c-data-table-pagination-button-background-color-hover:var(--c-data-table-pagination-button-background-color-hover, rgba(var(--c-primary-rgb), 0.1));--_c-data-table-pagination-button-text-color:var(--c-data-table-pagination-button-text-color, var(--_c-data-table-pagination-button-active-background-color));--_c-data-table-menu-text-color:var(--c-data-table-menu-text-color, var(--c-text-system));--_c-data-table-menu-text-color-active:var(--c-data-table-menu-text-color-active, var(--c-primary-600));--_c-data-table-menu-background-color-hover:var(--c-data-table-menu-background-color-hover, var(--c-primary-200));--_c-data-table-menu-outline-color:var(--c-data-table-menu-outline-color, var(--c-primary-600));display:block;position:relative;width:100%;max-width:100%}:host c-checkbox{--c-checkbox-color:var(--_c-data-table-checkbox-color);--c-checkbox-color-active:var(--_c-data-table-checkbox-color-active);--c-checkbox-background-color-hover:var(--_c-data-table-checkbox-background-color-hover)}:host table,:host caption,:host tbody,:host tfoot,:host thead,:host tr,:host th,:host td{border:0;font-size:100%;font-family:inherit;margin:0;padding:0}:host table{background-color:var(--_c-data-table-background-color);border-collapse:collapse;border-spacing:0}:host .c-data-table{box-shadow:inset 0 0 0 1px var(--_c-data-table-border-color);width:100%}:host .c-data-table__wrapper{display:grid;max-width:100%}:host .c-data-table__table-wrapper{overflow:hidden}:host .c-data-table .children{display:flex;flex-wrap:wrap;gap:4px;width:100%}:host .c-data-table .children pre{font-family:inherit;white-space:pre-wrap}:host .c-data-table [data-justify=end],:host .c-data-table [data-align=end] .children{align-items:flex-end}:host .c-data-table [data-justify=start],:host .c-data-table [data-align=start] .children{align-items:flex-start}:host .c-data-table [data-justify=center],:host .c-data-table [data-align=center] .children{align-items:center}:host .c-data-table [data-align=end],:host .c-data-table [data-justify=end] .children{justify-content:flex-end}:host .c-data-table [data-align=start],:host .c-data-table [data-justify=start] .children{justify-content:flex-start}:host .c-data-table [data-align=center],:host .c-data-table [data-justify=center] .children{justify-content:center}:host .c-data-table th,:host .c-data-table td{font-weight:400}:host .c-data-table th>div,:host .c-data-table td>div{align-items:center;box-sizing:border-box;display:flex;line-height:normal;padding:12px;width:100%}:host .c-data-table th{font-size:14px;padding:4px}:host .c-data-table th.selection{width:56px}:host .c-data-table th.indicator{width:46px}:host .c-data-table th>div{border-radius:4px;flex-wrap:nowrap;gap:8px;height:48px;white-space:nowrap}:host .c-data-table th>div.sortable:hover{background-color:var(--_c-data-table-background-color-hover);color:var(--_c-data-table-active);cursor:pointer}:host .c-data-table th>div.sortable:hover svg{fill:var(--_c-data-table-active)}:host .c-data-table th>div.selection--heading{padding-left:8px;padding-right:0;margin-right:-8px}:host .c-data-table td{font-size:16px}:host .c-data-table td>div{align-items:flex-start;flex-direction:column;gap:8px;justify-content:center;min-height:56px;padding:12px}:host .c-data-table td>div.selection{margin-right:-4px;padding:7px 0 7px 12px}:host .c-data-table td>div c-tag{--c-tag-margin:0}:host .c-data-table td.loader{background-color:var(--_c-data-table-border-color);height:2px;position:relative}:host .c-data-table td.loader>div{height:2px;min-height:auto;padding:0}:host .c-data-table td.info>div{background-color:var(--c-white);border-top-width:0;border:1px solid var(--_c-data-table-border-color);justify-content:center}:host .c-data-table td svg{transition:transform 0.3s cubic-bezier(0.25, 0.8, 0.5, 1)}:host .c-data-table thead{background-color:var(--_c-data-table-background-color);position:relative}:host .c-data-table thead.sticky{box-shadow:0 2px 0 0 var(--_c-data-table-border-color);position:sticky;top:0;z-index:3}:host .c-data-table thead .c-data-table__header-indicators{pointer-events:none}:host .c-data-table thead .c-data-table__header-indicators th>div{margin-top:-56px;display:flex;justify-items:space-between}:host .c-data-table thead .c-data-table__header-indicators c-icon-button{background-color:rgba(255, 255, 255, 0.75);border-radius:50%;pointer-events:all}:host .c-data-table tfoot{background-color:var(--_c-data-table-background-color)}:host .c-data-table tfoot tr{box-shadow:inset 0 1px 0 0 var(--_c-data-table-border-color)}:host .c-data-table tfoot td>div{align-items:center;flex-direction:row;justify-content:flex-start;min-height:48px}:host .c-data-table tfoot td c-pagination{--c-pagination-button-active-background-color:var(--_c-data-table-pagination-button-active-background-color);--c-pagination-button-active-background-color-hover:var(--_c-data-table-pagination-button-active-background-color-hover);--c-pagination-button-active-text-color:var(--_c-data-table-pagination-button-active-text-color);--c-pagination-button-background-color:var(--_c-data-table-pagination-button-background-color);--c-pagination-button-background-color-hover:var(--_c-data-table-pagination-button-background-color-hover);--c-pagination-button-text-color:var(--_c-data-table-pagination-button-text-color);--c-pagination-menu-text-color:var(--_c-data-table-menu-text-color);--c-pagination-menu-text-color-active:var(--_c-data-table-menu-text-color-active);--c-pagination-menu-background-color-hover:var(--_c-data-table-menu-background-color-hover);--c-pagination-menu-outline-color:var(--_c-data-table-menu-text-color);flex:1}:host .c-data-table tbody{}@supports (-webkit-hyphens: none){:host .c-data-table tbody tr{border-bottom:1px solid var(--_c-data-table-border-color)}}:host .c-data-table tbody tr{box-shadow:inset 0 1px 0 0 var(--_c-data-table-border-color)}:host .c-data-table tbody tr.actions{box-shadow:none}:host .c-data-table tbody tr.actions td>div{background-color:rgba(0, 0, 0, 0.015);height:auto}:host .c-data-table tbody tr.active{box-shadow:inset 2px 0 0 var(--_c-data-table-active), inset -2px 0 0 var(--_c-data-table-active), inset 0 2px 0 var(--_c-data-table-active);border-radius:6px 6px 0 0}:host .c-data-table tbody tr.active svg{transform:rotate(180deg)}:host .c-data-table tbody tr.active+.additional-data{border-radius:0 0 6px 6px;box-shadow:inset 2px 0 0 var(--_c-data-table-active), inset -2px 0 0 var(--_c-data-table-active), inset 0 -2px 0 var(--_c-data-table-active)}:host .c-data-table tbody tr.active.selected{box-shadow:inset 4px 0 0 var(--_c-data-table-active), inset -2px 0 0 var(--_c-data-table-active), inset 0 2px 0 var(--_c-data-table-active)}:host .c-data-table tbody tr.selected{background-color:var(--_c-data-table-selected-row-background-color);box-shadow:inset 4px 0 0 var(--_c-data-table-active), inset 0 1px 0 0 var(--_c-data-table-border-color)}:host .c-data-table tbody tr.selected+.additional-data{box-shadow:inset 4px 0 0 var(--_c-data-table-active), inset -2px 0 0 var(--_c-data-table-active), inset 0 -2px 0 var(--_c-data-table-active)}:host .c-data-table__loader{background-color:var(--_c-data-table-border-color);height:2px;overflow:hidden;position:absolute;width:100%}:host .c-data-table .loading-bar{animation:loading 1s ease-in 0.5s infinite;background-color:var(--_c-data-table-active);height:100%;left:-50%;position:absolute;width:50%}@keyframes loading{0%{transform:translateX(0)}100%{transform:translateX(400%)}}:host .c-data-table .additional-data{display:none}:host .c-data-table .additional-data.active{display:table-row}:host .c-data-table .additional-data ul{list-style:none;margin:0;padding:0;width:100%}:host .c-data-table .additional-data ul li{padding:12px}:host .c-data-table .additional-data ul li:not(:last-child){box-shadow:inset 0 -1px 0 0 var(--_c-data-table-border-color)}:host .c-data-table .additional-data ul li span.label{color:var(--_c-data-table-active);font-weight:600}:host .c-data-table .additional-data ul li .title{display:flex;gap:8px}:host .c-data-table .additional-data ul li .title+.children{margin-top:8px}:host .c-data-table--scrollable{position:relative}:host .c-data-table--hoverable tbody tr:not(.additional-data){cursor:pointer}:host .c-data-table--hoverable tbody tr:not(.additional-data):hover{background-color:var(--_c-data-table-background-color-hover);border-radius:6px;box-shadow:inset 0 0 0 2px var(--_c-data-table-active);overflow:hidden}:host .c-data-table--hoverable tbody tr:not(.additional-data):hover c-button.text,:host .c-data-table--hoverable tbody tr:not(.additional-data):hover c-button.ghost{--c-button-hover:var(--c-primary-200)}:host .c-data-table--hoverable tbody tr:not(.additional-data).active:hover{border-radius:6px 6px 0 0;box-shadow:inset 2px 0 0 var(--_c-data-table-active), inset -2px 0 0 var(--_c-data-table-active), inset 0 2px 0 var(--_c-data-table-active)}:host .c-data-table--hoverable tbody tr:not(.additional-data).selected.active:hover{border-radius:6px 6px 0 0;box-shadow:inset 4px 0 0 var(--_c-data-table-active), inset -2px 0 0 var(--_c-data-table-active), inset 0 2px 0 var(--_c-data-table-active)}:host .c-data-table--hoverable tbody tr:not(.additional-data).selected:hover{border-radius:6px;box-shadow:inset 4px 0 0 var(--_c-data-table-active), inset 0 0 0 2px var(--_c-data-table-active)}:host .sorted-column{background-color:var(--_c-data-table-highlighted-column-background-color)}:host([horizontal-scrolling]){overflow-x:scroll}";
|
|
9
|
+
const CDataTableStyle0 = cDataTableCss;
|
|
9
10
|
|
|
10
11
|
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
var t = {};
|
|
13
|
+
for (var p in s)
|
|
14
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
21
22
|
};
|
|
22
23
|
const CDataTable = class {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
async clearSelections() {
|
|
90
|
-
this._selections = [];
|
|
91
|
-
this._emitChange();
|
|
92
|
-
this._setIndeterminateStatus();
|
|
93
|
-
}
|
|
94
|
-
async getData() {
|
|
95
|
-
return this._sortedData;
|
|
96
|
-
}
|
|
97
|
-
componentWillLoad() {
|
|
98
|
-
var _a, _b;
|
|
99
|
-
this.sortBy = (_a = this.sortBy) !== null && _a !== void 0 ? _a : this.headers[0].key;
|
|
100
|
-
this.sortDirection = (_b = this.sortDirection) !== null && _b !== void 0 ? _b : 'asc';
|
|
101
|
-
this._getData();
|
|
102
|
-
this._handleInitialHeaders();
|
|
103
|
-
}
|
|
104
|
-
componentDidLoad() {
|
|
105
|
-
this._handleResize();
|
|
106
|
-
if (!this.horizontalScrolling) {
|
|
107
|
-
this._rootIntersectionObserver = new IntersectionObserver(([entry]) => {
|
|
108
|
-
if (entry.isIntersecting) {
|
|
109
|
-
this._handleResponsiveHeaders();
|
|
110
|
-
this._isVisible = true;
|
|
24
|
+
constructor(hostRef) {
|
|
25
|
+
index.registerInstance(this, hostRef);
|
|
26
|
+
this.paginate = index.createEvent(this, "paginate", 7);
|
|
27
|
+
this.expand = index.createEvent(this, "expand", 7);
|
|
28
|
+
this.sort = index.createEvent(this, "sort", 7);
|
|
29
|
+
this.selection = index.createEvent(this, "selection", 7);
|
|
30
|
+
this._debounce = null;
|
|
31
|
+
this._extraHeaders = [];
|
|
32
|
+
this._isValidated = false;
|
|
33
|
+
this._isVisible = false;
|
|
34
|
+
this._sortedData = [];
|
|
35
|
+
this.data = [];
|
|
36
|
+
this.externalData = false;
|
|
37
|
+
this.headers = [];
|
|
38
|
+
this.hideFooter = false;
|
|
39
|
+
this.footerOptions = {
|
|
40
|
+
hideDetails: false,
|
|
41
|
+
simple: false,
|
|
42
|
+
hideRange: false,
|
|
43
|
+
size: 'default',
|
|
44
|
+
};
|
|
45
|
+
this.loading = false;
|
|
46
|
+
this.loadingText = 'Loading data';
|
|
47
|
+
this.noDataText = 'No data';
|
|
48
|
+
this.pagination = undefined;
|
|
49
|
+
this.selectable = false;
|
|
50
|
+
this.singleSelection = false;
|
|
51
|
+
this.selectionProperty = null;
|
|
52
|
+
this.singleExpansion = false;
|
|
53
|
+
this.sortBy = null;
|
|
54
|
+
this.sortDirection = null;
|
|
55
|
+
this.stickyHeader = false;
|
|
56
|
+
this.horizontalScrolling = false;
|
|
57
|
+
this._activeRows = [];
|
|
58
|
+
this._data = [];
|
|
59
|
+
this._isIndeterminate = false;
|
|
60
|
+
this._isPaginationSimple = false;
|
|
61
|
+
this._selections = [];
|
|
62
|
+
this.hasOverflow = false;
|
|
63
|
+
this.hiddenHeaders = [];
|
|
64
|
+
this.initiallyHiddenHeaders = [];
|
|
65
|
+
this.forceRender = false;
|
|
66
|
+
this.breakpoints = [];
|
|
67
|
+
this.markedFooterWidth = 0;
|
|
68
|
+
this.parentWidth = 0;
|
|
69
|
+
this.firstCellHidden = false;
|
|
70
|
+
this.lastCellHidden = false;
|
|
71
|
+
}
|
|
72
|
+
onHiddenHeaderChange() {
|
|
73
|
+
this._getData();
|
|
74
|
+
}
|
|
75
|
+
onDataChange() {
|
|
76
|
+
this._getData();
|
|
77
|
+
this._handleInitialHeaders();
|
|
78
|
+
}
|
|
79
|
+
onHeaderChange() {
|
|
80
|
+
this._handleInitialHeaders();
|
|
81
|
+
}
|
|
82
|
+
onSingleSelectionChange() {
|
|
83
|
+
this.clearSelections();
|
|
84
|
+
}
|
|
85
|
+
onLoadingChange(loading) {
|
|
86
|
+
if (!loading) {
|
|
87
|
+
this._setIndeterminateStatus();
|
|
111
88
|
}
|
|
112
|
-
|
|
113
|
-
|
|
89
|
+
}
|
|
90
|
+
async clearSelections() {
|
|
91
|
+
this._selections = [];
|
|
92
|
+
this._emitChange();
|
|
93
|
+
this._setIndeterminateStatus();
|
|
94
|
+
}
|
|
95
|
+
async getData() {
|
|
96
|
+
return this._sortedData;
|
|
97
|
+
}
|
|
98
|
+
componentWillLoad() {
|
|
99
|
+
var _a, _b;
|
|
100
|
+
this.sortBy = (_a = this.sortBy) !== null && _a !== void 0 ? _a : this.headers[0].key;
|
|
101
|
+
this.sortDirection = (_b = this.sortDirection) !== null && _b !== void 0 ? _b : 'asc';
|
|
102
|
+
this._getData();
|
|
103
|
+
this._handleInitialHeaders();
|
|
104
|
+
}
|
|
105
|
+
componentDidLoad() {
|
|
114
106
|
this._handleResize();
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
.find((hdr) => {
|
|
107
|
+
if (!this.horizontalScrolling) {
|
|
108
|
+
this._rootIntersectionObserver = new IntersectionObserver(([entry]) => {
|
|
109
|
+
if (entry.isIntersecting) {
|
|
110
|
+
this._handleResponsiveHeaders();
|
|
111
|
+
this._isVisible = true;
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
this._resizeObserver = new ResizeObserver(() => {
|
|
115
|
+
this._handleResize();
|
|
116
|
+
});
|
|
117
|
+
this._rootIntersectionObserver.observe(this.element);
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
const [firstCell] = this._headerKeys;
|
|
121
|
+
const lastCell = this._headerKeys[this._headerKeys.length - 1];
|
|
122
|
+
this._firstCellIntersectionObserver = new IntersectionObserver(([entry]) => {
|
|
123
|
+
this.firstCellHidden = !entry.isIntersecting;
|
|
124
|
+
}, { threshold: 1, rootMargin: '16px', root: this.element });
|
|
125
|
+
this._lastCellIntersectionObserver = new IntersectionObserver(([entry]) => {
|
|
126
|
+
this.lastCellHidden = !entry.isIntersecting;
|
|
127
|
+
}, { threshold: 1, rootMargin: '16px', root: this.element });
|
|
128
|
+
this._resizeObserver = new ResizeObserver(() => {
|
|
129
|
+
this._handleScrollWidth();
|
|
130
|
+
});
|
|
131
|
+
this._firstCellIntersectionObserver.observe(this._tableElement.querySelector(`[data-id="${firstCell}"]`));
|
|
132
|
+
this._lastCellIntersectionObserver.observe(this._tableElement.querySelector(`[data-id="${lastCell}"]`));
|
|
133
|
+
}
|
|
134
|
+
this._resizeObserver.observe(this.element);
|
|
135
|
+
}
|
|
136
|
+
disconnectedCallback() {
|
|
137
|
+
var _a, _b, _c, _d;
|
|
138
|
+
(_a = this._resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
139
|
+
(_b = this._rootIntersectionObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
|
|
140
|
+
(_c = this._firstCellIntersectionObserver) === null || _c === void 0 ? void 0 : _c.disconnect();
|
|
141
|
+
(_d = this._lastCellIntersectionObserver) === null || _d === void 0 ? void 0 : _d.disconnect();
|
|
142
|
+
}
|
|
143
|
+
_handleInitialHeaders() {
|
|
144
|
+
this.initiallyHiddenHeaders = this.headers
|
|
145
|
+
.filter((header) => !!header.hidden)
|
|
146
|
+
.map((header) => header.key);
|
|
147
|
+
this.hiddenHeaders = [
|
|
148
|
+
...new Set([...this.hiddenHeaders, ...this.initiallyHiddenHeaders]),
|
|
149
|
+
];
|
|
150
|
+
}
|
|
151
|
+
_handleHeaderVisibility(header, rootWidth, x) {
|
|
161
152
|
var _a;
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
153
|
+
const index = this._headers.findIndex((h) => h.key === header.dataset.id);
|
|
154
|
+
const position = header.getBoundingClientRect();
|
|
155
|
+
const isFullyVisible = position.right - x <= rootWidth;
|
|
156
|
+
const isLastVisibleHeader = header.dataset.id === Array.from(this._headerRefs.keys()).at(0);
|
|
157
|
+
const isPinned = (_a = this._headers[index]) === null || _a === void 0 ? void 0 : _a.pinned;
|
|
158
|
+
if (!isFullyVisible && isPinned && index >= 1) {
|
|
159
|
+
const nextUnpinnedHeader = Array.from(this._headerRefs.values())
|
|
160
|
+
.reverse()
|
|
161
|
+
.find((hdr) => {
|
|
162
|
+
var _a;
|
|
163
|
+
if (!hdr)
|
|
164
|
+
return false;
|
|
165
|
+
return !((_a = this._headers.find((h) => h.key === hdr.dataset.id)) === null || _a === void 0 ? void 0 : _a.pinned);
|
|
166
|
+
});
|
|
167
|
+
this.hiddenHeaders = [
|
|
168
|
+
...new Set([
|
|
169
|
+
...this.initiallyHiddenHeaders,
|
|
170
|
+
...this.hiddenHeaders,
|
|
171
|
+
(nextUnpinnedHeader || header).dataset.id,
|
|
172
|
+
]),
|
|
173
|
+
];
|
|
174
|
+
return;
|
|
175
|
+
}
|
|
176
|
+
if (!isFullyVisible && !isLastVisibleHeader) {
|
|
177
|
+
this.hiddenHeaders = [
|
|
178
|
+
...new Set([
|
|
179
|
+
...this.initiallyHiddenHeaders,
|
|
180
|
+
...this.hiddenHeaders,
|
|
181
|
+
header.dataset.id,
|
|
182
|
+
]),
|
|
183
|
+
];
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
_handleResponsiveHeaders() {
|
|
187
|
+
const { width: rootWidth, x } = this.element.getBoundingClientRect();
|
|
188
|
+
if (this._debounce !== null) {
|
|
189
|
+
clearTimeout(this._debounce);
|
|
190
|
+
this._debounce = null;
|
|
191
|
+
}
|
|
192
|
+
const { width: tableWidth } = this._tableElement.getBoundingClientRect();
|
|
193
|
+
if (rootWidth < tableWidth) {
|
|
194
|
+
this.breakpoints = [...new Set([...this.breakpoints, tableWidth])];
|
|
195
|
+
setTimeout(() => {
|
|
196
|
+
for (const header of this._headerRefs.values()) {
|
|
197
|
+
if (header) {
|
|
198
|
+
this._handleHeaderVisibility(header, rootWidth, x);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
this._debounce = setTimeout(() => {
|
|
202
|
+
var _a, _b;
|
|
203
|
+
const footerWidth = ((_b = (_a = this._footerElement) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) === null || _b === void 0 ? void 0 : _b.width) || 0;
|
|
204
|
+
if (rootWidth < footerWidth) {
|
|
205
|
+
this.markedFooterWidth = footerWidth;
|
|
206
|
+
this._isPaginationSimple = true;
|
|
207
|
+
}
|
|
208
|
+
}, 200);
|
|
209
|
+
}, 0);
|
|
210
|
+
}
|
|
211
|
+
else if (this.breakpoints.length > 0 &&
|
|
212
|
+
tableWidth >= this.breakpoints[this.breakpoints.length - 1]) {
|
|
213
|
+
this.breakpoints.pop();
|
|
214
|
+
const displayHeader = this.headers.find((header) => this.hiddenHeaders.includes(header.key));
|
|
215
|
+
if (!!displayHeader) {
|
|
216
|
+
const headerIndex = this.hiddenHeaders.indexOf(displayHeader.key);
|
|
217
|
+
this.hiddenHeaders.splice(headerIndex, 1);
|
|
218
|
+
this.hiddenHeaders = [
|
|
219
|
+
...new Set([...this.hiddenHeaders, ...this.initiallyHiddenHeaders]),
|
|
220
|
+
];
|
|
221
|
+
}
|
|
199
222
|
}
|
|
200
223
|
this._debounce = setTimeout(() => {
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
this.markedFooterWidth = footerWidth;
|
|
205
|
-
this._isPaginationSimple = true;
|
|
206
|
-
}
|
|
224
|
+
if (rootWidth >= this.markedFooterWidth && this.markedFooterWidth > 0) {
|
|
225
|
+
this._isPaginationSimple = false;
|
|
226
|
+
}
|
|
207
227
|
}, 200);
|
|
208
|
-
}, 0);
|
|
209
|
-
}
|
|
210
|
-
else if (this.breakpoints.length > 0 &&
|
|
211
|
-
tableWidth >= this.breakpoints[this.breakpoints.length - 1]) {
|
|
212
|
-
this.breakpoints.pop();
|
|
213
|
-
const displayHeader = this.headers.find((header) => this.hiddenHeaders.includes(header.key));
|
|
214
|
-
if (!!displayHeader) {
|
|
215
|
-
const headerIndex = this.hiddenHeaders.indexOf(displayHeader.key);
|
|
216
|
-
this.hiddenHeaders.splice(headerIndex, 1);
|
|
217
|
-
this.hiddenHeaders = [
|
|
218
|
-
...new Set([...this.hiddenHeaders, ...this.initiallyHiddenHeaders]),
|
|
219
|
-
];
|
|
220
|
-
}
|
|
221
228
|
}
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
229
|
+
_addHeaderRef(key, el) {
|
|
230
|
+
if (!this._headerRefs) {
|
|
231
|
+
this._headerRefs = new Map([[key, el]]);
|
|
232
|
+
return;
|
|
233
|
+
}
|
|
234
|
+
this._headerRefs.set(key, el);
|
|
235
|
+
}
|
|
236
|
+
_getData() {
|
|
237
|
+
this._extraHeaders = this.headers.filter((header) => { var _a; return !Object.keys(((_a = this.data) === null || _a === void 0 ? void 0 : _a[0]) || {}).includes(header.key); });
|
|
238
|
+
const extraCells = this._extraHeaders.reduce((cells, header) => (Object.assign(Object.assign({}, cells), { [header.key]: {
|
|
239
|
+
value: null,
|
|
240
|
+
} })), {});
|
|
241
|
+
const items = this.data
|
|
242
|
+
.map((row) => (Object.assign(Object.assign({}, row), extraCells)))
|
|
243
|
+
.reduce((data, cell) => {
|
|
244
|
+
const item = {
|
|
245
|
+
_hiddenData: [],
|
|
246
|
+
};
|
|
247
|
+
Object.keys(cell).forEach((key) => {
|
|
248
|
+
item[key] = cell[key];
|
|
249
|
+
});
|
|
250
|
+
this.hiddenHeaders.forEach((header) => {
|
|
251
|
+
const cellData = this.headers.find((h) => h.key === header);
|
|
252
|
+
item._hiddenData.push({
|
|
253
|
+
id: cellData === null || cellData === void 0 ? void 0 : cellData.key,
|
|
254
|
+
key: cellData === null || cellData === void 0 ? void 0 : cellData.value,
|
|
255
|
+
value: cell[header],
|
|
256
|
+
});
|
|
257
|
+
});
|
|
258
|
+
data.push(item);
|
|
259
|
+
return data;
|
|
260
|
+
}, []);
|
|
261
|
+
this._data = this._sortData(items);
|
|
262
|
+
this.pagination = Object.assign(Object.assign({}, this.pagination), { itemCount: this.data.length });
|
|
263
|
+
this._validateProps(this._data[0]);
|
|
264
|
+
this._handleScrollWidth();
|
|
265
|
+
requestAnimationFrame(() => {
|
|
266
|
+
this._handleResize();
|
|
255
267
|
});
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
268
|
+
}
|
|
269
|
+
_getSelectionValue(row, index) {
|
|
270
|
+
var _a;
|
|
271
|
+
return !!this.selectionProperty
|
|
272
|
+
? ((_a = row[this.selectionProperty]) === null || _a === void 0 ? void 0 : _a.value) || index
|
|
273
|
+
: index;
|
|
274
|
+
}
|
|
275
|
+
get _headers() {
|
|
276
|
+
return this.headers
|
|
277
|
+
.map((header) => (Object.assign(Object.assign({}, header), { pinned: !!header.pinned })))
|
|
278
|
+
.filter((header) => !this.hiddenHeaders.includes(header.key) && !header.hidden);
|
|
279
|
+
}
|
|
280
|
+
get _headerKeys() {
|
|
281
|
+
return this._headers.map((header) => header.key);
|
|
282
|
+
}
|
|
283
|
+
get _hasHiddenData() {
|
|
284
|
+
return !!this.hiddenHeaders.length;
|
|
285
|
+
}
|
|
286
|
+
_emitChange() {
|
|
287
|
+
this.selection.emit(this._selections);
|
|
288
|
+
}
|
|
289
|
+
_setIndeterminateStatus() {
|
|
290
|
+
requestAnimationFrame(() => {
|
|
291
|
+
this._isIndeterminate = this._isPageIndeterminate();
|
|
292
|
+
this._refresh();
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
_sortData(data) {
|
|
296
|
+
var _a, _b, _c, _d;
|
|
297
|
+
if (!this.sortBy || this.externalData)
|
|
298
|
+
return data;
|
|
299
|
+
const sorted = data.sort((a, b) => {
|
|
300
|
+
var _a, _b, _c, _d;
|
|
301
|
+
const valueA = (_b = (_a = a[this.sortBy]) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : null;
|
|
302
|
+
const valueB = (_d = (_c = b[this.sortBy]) === null || _c === void 0 ? void 0 : _c.value) !== null && _d !== void 0 ? _d : null;
|
|
303
|
+
if (valueA === null && valueB === null)
|
|
304
|
+
return 0;
|
|
305
|
+
if (valueA === null)
|
|
306
|
+
return this.sortDirection === 'asc' ? 1 : -1;
|
|
307
|
+
if (valueB === null)
|
|
308
|
+
return this.sortDirection === 'asc' ? -1 : 1;
|
|
309
|
+
if (typeof valueA === 'string' && typeof valueB === 'string') {
|
|
310
|
+
if (this.sortDirection === 'asc') {
|
|
311
|
+
return valueA.toLowerCase().localeCompare(valueB.toLowerCase());
|
|
312
|
+
}
|
|
313
|
+
return valueB.toLowerCase().localeCompare(valueA.toLowerCase());
|
|
314
|
+
}
|
|
315
|
+
if (typeof valueA === 'number' && typeof valueB === 'number') {
|
|
316
|
+
if (this.sortDirection === 'asc') {
|
|
317
|
+
return valueA - valueB;
|
|
318
|
+
}
|
|
319
|
+
return valueB - valueA;
|
|
320
|
+
}
|
|
321
|
+
return 0;
|
|
322
|
+
});
|
|
323
|
+
this._sortedData = sorted.map((row) => {
|
|
324
|
+
const { _hiddenData } = row, _rowData = __rest(row, ["_hiddenData"]);
|
|
325
|
+
const hiddenData = _hiddenData.reduce((items, item) => {
|
|
326
|
+
var _a;
|
|
327
|
+
items[item.id] =
|
|
328
|
+
item.value.plainTextValue ||
|
|
329
|
+
((_a = item.value.formattedValue) === null || _a === void 0 ? void 0 : _a.trim()) ||
|
|
330
|
+
item.value.value;
|
|
331
|
+
return items;
|
|
332
|
+
}, {});
|
|
333
|
+
const rowData = Object.entries(_rowData).reduce((items, [key, item]) => {
|
|
334
|
+
var _a;
|
|
335
|
+
items[key] =
|
|
336
|
+
item.plainTextValue ||
|
|
337
|
+
((_a = item.formattedValue) === null || _a === void 0 ? void 0 : _a.toString().trim()) ||
|
|
338
|
+
item.value;
|
|
339
|
+
return items;
|
|
340
|
+
}, {});
|
|
341
|
+
return Object.assign(Object.assign({}, rowData), hiddenData);
|
|
342
|
+
});
|
|
343
|
+
return !this.hideFooter
|
|
344
|
+
? sorted.slice((_b = (_a = this.pagination) === null || _a === void 0 ? void 0 : _a.startFrom) !== null && _b !== void 0 ? _b : 0, ((_d = (_c = this.pagination) === null || _c === void 0 ? void 0 : _c.endTo) !== null && _d !== void 0 ? _d : this.data.length) + 1)
|
|
345
|
+
: sorted;
|
|
346
|
+
}
|
|
347
|
+
_handleScrollWidth() {
|
|
348
|
+
this.parentWidth = this.element.getBoundingClientRect().width;
|
|
349
|
+
}
|
|
350
|
+
_handleResize() {
|
|
351
|
+
if (this._isVisible) {
|
|
352
|
+
this._handleResponsiveHeaders();
|
|
311
353
|
}
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
if (this.
|
|
316
|
-
|
|
354
|
+
}
|
|
355
|
+
_getIndex(index) {
|
|
356
|
+
let realIndex = index;
|
|
357
|
+
if (!this.selectionProperty &&
|
|
358
|
+
!!this.pagination &&
|
|
359
|
+
typeof realIndex === 'number') {
|
|
360
|
+
realIndex += this.pagination.startFrom;
|
|
361
|
+
if (this.sortDirection === 'desc') {
|
|
362
|
+
realIndex = this.pagination.itemCount - 1 - realIndex;
|
|
363
|
+
}
|
|
317
364
|
}
|
|
318
|
-
return
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
this._sortedData = sorted.map((row) => {
|
|
323
|
-
const { _hiddenData } = row, _rowData = __rest(row, ["_hiddenData"]);
|
|
324
|
-
const hiddenData = _hiddenData.reduce((items, item) => {
|
|
325
|
-
var _a;
|
|
326
|
-
items[item.id] =
|
|
327
|
-
item.value.plainTextValue ||
|
|
328
|
-
((_a = item.value.formattedValue) === null || _a === void 0 ? void 0 : _a.trim()) ||
|
|
329
|
-
item.value.value;
|
|
330
|
-
return items;
|
|
331
|
-
}, {});
|
|
332
|
-
const rowData = Object.entries(_rowData).reduce((items, [key, item]) => {
|
|
333
|
-
var _a;
|
|
334
|
-
items[key] =
|
|
335
|
-
item.plainTextValue ||
|
|
336
|
-
((_a = item.formattedValue) === null || _a === void 0 ? void 0 : _a.toString().trim()) ||
|
|
337
|
-
item.value;
|
|
338
|
-
return items;
|
|
339
|
-
}, {});
|
|
340
|
-
return Object.assign(Object.assign({}, rowData), hiddenData);
|
|
341
|
-
});
|
|
342
|
-
return !this.hideFooter
|
|
343
|
-
? sorted.slice((_b = (_a = this.pagination) === null || _a === void 0 ? void 0 : _a.startFrom) !== null && _b !== void 0 ? _b : 0, ((_d = (_c = this.pagination) === null || _c === void 0 ? void 0 : _c.endTo) !== null && _d !== void 0 ? _d : this.data.length) + 1)
|
|
344
|
-
: sorted;
|
|
345
|
-
}
|
|
346
|
-
_handleScrollWidth() {
|
|
347
|
-
this.parentWidth = this.element.getBoundingClientRect().width;
|
|
348
|
-
}
|
|
349
|
-
_handleResize() {
|
|
350
|
-
if (this._isVisible) {
|
|
351
|
-
this._handleResponsiveHeaders();
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
_getIndex(index) {
|
|
355
|
-
let realIndex = index;
|
|
356
|
-
if (!this.selectionProperty &&
|
|
357
|
-
!!this.pagination &&
|
|
358
|
-
typeof realIndex === 'number') {
|
|
359
|
-
realIndex += this.pagination.startFrom;
|
|
360
|
-
if (this.sortDirection === 'desc') {
|
|
361
|
-
realIndex = this.pagination.itemCount - 1 - realIndex;
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
return realIndex;
|
|
365
|
-
}
|
|
366
|
-
_getSelectionsForPage() {
|
|
367
|
-
return this._selections.filter((selection) => this._data
|
|
368
|
-
.map((row, index) => this._getSelectionValue(row, this._getIndex(index)))
|
|
369
|
-
.includes(selection));
|
|
370
|
-
}
|
|
371
|
-
_hasSelectionsOnPage() {
|
|
372
|
-
return this._getSelectionsForPage().length > 0;
|
|
373
|
-
}
|
|
374
|
-
_isPageIndeterminate() {
|
|
375
|
-
const selectionsInPage = this._getSelectionsForPage();
|
|
376
|
-
return (this._hasSelectionsOnPage() && selectionsInPage.length < this._data.length);
|
|
377
|
-
}
|
|
378
|
-
_onHeadingSelection(event) {
|
|
379
|
-
event === null || event === void 0 ? void 0 : event.stopPropagation();
|
|
380
|
-
event === null || event === void 0 ? void 0 : event.preventDefault();
|
|
381
|
-
if (event instanceof KeyboardEvent &&
|
|
382
|
-
event.type === 'keyup' &&
|
|
383
|
-
event.key !== ' ') {
|
|
384
|
-
return;
|
|
385
|
-
}
|
|
386
|
-
if (this._debounce !== null) {
|
|
387
|
-
clearTimeout(this._debounce);
|
|
388
|
-
this._debounce = null;
|
|
389
|
-
}
|
|
390
|
-
this._debounce = setTimeout(() => {
|
|
391
|
-
if (this._data.length === this._getSelectionsForPage().length) {
|
|
392
|
-
this._selections = [
|
|
393
|
-
...this._selections.filter((selection) => !this._data
|
|
365
|
+
return realIndex;
|
|
366
|
+
}
|
|
367
|
+
_getSelectionsForPage() {
|
|
368
|
+
return this._selections.filter((selection) => this._data
|
|
394
369
|
.map((row, index) => this._getSelectionValue(row, this._getIndex(index)))
|
|
395
|
-
.includes(selection))
|
|
396
|
-
|
|
370
|
+
.includes(selection));
|
|
371
|
+
}
|
|
372
|
+
_hasSelectionsOnPage() {
|
|
373
|
+
return this._getSelectionsForPage().length > 0;
|
|
374
|
+
}
|
|
375
|
+
_isPageIndeterminate() {
|
|
376
|
+
const selectionsInPage = this._getSelectionsForPage();
|
|
377
|
+
return (this._hasSelectionsOnPage() && selectionsInPage.length < this._data.length);
|
|
378
|
+
}
|
|
379
|
+
_onHeadingSelection(event) {
|
|
380
|
+
event === null || event === void 0 ? void 0 : event.stopPropagation();
|
|
381
|
+
event === null || event === void 0 ? void 0 : event.preventDefault();
|
|
382
|
+
if (event instanceof KeyboardEvent &&
|
|
383
|
+
event.type === 'keyup' &&
|
|
384
|
+
event.key !== ' ') {
|
|
385
|
+
return;
|
|
386
|
+
}
|
|
387
|
+
if (this._debounce !== null) {
|
|
388
|
+
clearTimeout(this._debounce);
|
|
389
|
+
this._debounce = null;
|
|
390
|
+
}
|
|
391
|
+
this._debounce = setTimeout(() => {
|
|
392
|
+
if (this._data.length === this._getSelectionsForPage().length) {
|
|
393
|
+
this._selections = [
|
|
394
|
+
...this._selections.filter((selection) => !this._data
|
|
395
|
+
.map((row, index) => this._getSelectionValue(row, this._getIndex(index)))
|
|
396
|
+
.includes(selection)),
|
|
397
|
+
];
|
|
398
|
+
this._setIndeterminateStatus();
|
|
399
|
+
this._emitChange();
|
|
400
|
+
return;
|
|
401
|
+
}
|
|
402
|
+
this._selections = [
|
|
403
|
+
...new Set([
|
|
404
|
+
...this._selections,
|
|
405
|
+
...this._data.map((row, index) => this._getSelectionValue(row, this._getIndex(index))),
|
|
406
|
+
]),
|
|
407
|
+
];
|
|
408
|
+
this._setIndeterminateStatus();
|
|
409
|
+
this._emitChange();
|
|
410
|
+
}, 200);
|
|
411
|
+
}
|
|
412
|
+
_onPaginationChange(event) {
|
|
413
|
+
if (this.externalData) {
|
|
414
|
+
this.paginate.emit(event.detail);
|
|
415
|
+
return;
|
|
416
|
+
}
|
|
417
|
+
this.pagination = Object.assign(Object.assign({}, this.pagination), event.detail);
|
|
397
418
|
this._setIndeterminateStatus();
|
|
419
|
+
this._getData();
|
|
420
|
+
}
|
|
421
|
+
_onSelection(value) {
|
|
422
|
+
if (this.singleSelection) {
|
|
423
|
+
this._selections = [value];
|
|
424
|
+
this._emitChange();
|
|
425
|
+
this._refresh();
|
|
426
|
+
return;
|
|
427
|
+
}
|
|
428
|
+
if (this._selections.includes(value)) {
|
|
429
|
+
this._selections = this._selections.filter((selection) => selection !== value);
|
|
430
|
+
}
|
|
431
|
+
else {
|
|
432
|
+
this._selections = [...this._selections, value];
|
|
433
|
+
}
|
|
398
434
|
this._emitChange();
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
data[key] = data[key].value;
|
|
459
|
-
});
|
|
460
|
-
_hiddenData.forEach((hiddenRow) => {
|
|
461
|
-
data[hiddenRow.id] = hiddenRow.value.value;
|
|
462
|
-
});
|
|
463
|
-
this.expand.emit({
|
|
464
|
-
active: !isActive,
|
|
465
|
-
row: data,
|
|
466
|
-
});
|
|
467
|
-
if (this.singleExpansion) {
|
|
468
|
-
this._activeRows = isActive ? [] : [value];
|
|
469
|
-
return;
|
|
470
|
-
}
|
|
471
|
-
if (isActive) {
|
|
472
|
-
this._activeRows = this._activeRows.filter((i) => i !== value);
|
|
473
|
-
return;
|
|
474
|
-
}
|
|
475
|
-
this._activeRows = [...this._activeRows, value];
|
|
476
|
-
}
|
|
477
|
-
_handleKeyUp(event, value, row) {
|
|
478
|
-
event.preventDefault();
|
|
479
|
-
if (event.key === 'Enter') {
|
|
480
|
-
this._onToggleAdditionalData(event, value, row);
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
_refresh() {
|
|
484
|
-
this.forceRender = !this.forceRender;
|
|
485
|
-
}
|
|
486
|
-
_renderAdditioanlDataRow(rowIndex, rowData = {}) {
|
|
487
|
-
return (this._hasHiddenData && (index.h("tr", { class: {
|
|
488
|
-
'additional-data': true,
|
|
489
|
-
active: this._activeRows.includes(rowIndex),
|
|
490
|
-
} }, index.h("td", { colSpan: 100 }, index.h("div", null, index.h("ul", null, this._renderHiddenCells(rowIndex), this._renderHiddenHeaderChildren(rowIndex, rowData)))))));
|
|
491
|
-
}
|
|
492
|
-
_renderCellData(key, options, colIndex, rowIndex) {
|
|
493
|
-
var _a;
|
|
494
|
-
const component = options.component || ((_a = this._headers[colIndex]) === null || _a === void 0 ? void 0 : _a.component);
|
|
495
|
-
const Tag = (component === null || component === void 0 ? void 0 : component.tag) || null;
|
|
496
|
-
const injectValue = !!(component === null || component === void 0 ? void 0 : component.injectValue);
|
|
497
|
-
const params = (component === null || component === void 0 ? void 0 : component.params) || {};
|
|
498
|
-
if (injectValue) {
|
|
499
|
-
params.value = options.value;
|
|
500
|
-
}
|
|
501
|
-
return !!Tag ? (index.h(Tag, Object.assign({}, params, { onClick: (event) => {
|
|
435
|
+
this._setIndeterminateStatus();
|
|
436
|
+
}
|
|
437
|
+
_onSort(key) {
|
|
438
|
+
if (this.sortBy === key) {
|
|
439
|
+
this.sortDirection = this.sortDirection === 'asc' ? 'desc' : 'asc';
|
|
440
|
+
}
|
|
441
|
+
else {
|
|
442
|
+
this.sortDirection = 'asc';
|
|
443
|
+
}
|
|
444
|
+
this.sortBy = key;
|
|
445
|
+
this.sort.emit({ sortBy: this.sortBy, direction: this.sortDirection });
|
|
446
|
+
this._getData();
|
|
447
|
+
this._setIndeterminateStatus();
|
|
448
|
+
this._refresh();
|
|
449
|
+
}
|
|
450
|
+
_onToggleAdditionalData(event, value, row) {
|
|
451
|
+
if (!this._hasHiddenData ||
|
|
452
|
+
event.target.tagName === 'C-CHECKBOX')
|
|
453
|
+
return;
|
|
454
|
+
const isActive = this.singleExpansion
|
|
455
|
+
? this._activeRows[0] === value
|
|
456
|
+
: this._activeRows.includes(value);
|
|
457
|
+
const { _hiddenData } = row, data = __rest(row, ["_hiddenData"]);
|
|
458
|
+
Object.keys(data).forEach((key) => {
|
|
459
|
+
data[key] = data[key].value;
|
|
460
|
+
});
|
|
461
|
+
_hiddenData.forEach((hiddenRow) => {
|
|
462
|
+
data[hiddenRow.id] = hiddenRow.value.value;
|
|
463
|
+
});
|
|
464
|
+
this.expand.emit({
|
|
465
|
+
active: !isActive,
|
|
466
|
+
row: data,
|
|
467
|
+
});
|
|
468
|
+
if (this.singleExpansion) {
|
|
469
|
+
this._activeRows = isActive ? [] : [value];
|
|
470
|
+
return;
|
|
471
|
+
}
|
|
472
|
+
if (isActive) {
|
|
473
|
+
this._activeRows = this._activeRows.filter((i) => i !== value);
|
|
474
|
+
return;
|
|
475
|
+
}
|
|
476
|
+
this._activeRows = [...this._activeRows, value];
|
|
477
|
+
}
|
|
478
|
+
_handleKeyUp(event, value, row) {
|
|
479
|
+
event.preventDefault();
|
|
480
|
+
if (event.key === 'Enter') {
|
|
481
|
+
this._onToggleAdditionalData(event, value, row);
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
_refresh() {
|
|
485
|
+
this.forceRender = !this.forceRender;
|
|
486
|
+
}
|
|
487
|
+
_renderAdditioanlDataRow(rowIndex, rowData = {}) {
|
|
488
|
+
return (this._hasHiddenData && (index.h("tr", { class: {
|
|
489
|
+
'additional-data': true,
|
|
490
|
+
active: this._activeRows.includes(rowIndex),
|
|
491
|
+
} }, index.h("td", { colSpan: 100 }, index.h("div", null, index.h("ul", null, this._renderHiddenCells(rowIndex), this._renderHiddenHeaderChildren(rowIndex, rowData)))))));
|
|
492
|
+
}
|
|
493
|
+
_renderCellData(key, options, colIndex, rowIndex) {
|
|
502
494
|
var _a;
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
495
|
+
const component = options.component || ((_a = this._headers[colIndex]) === null || _a === void 0 ? void 0 : _a.component);
|
|
496
|
+
const Tag = (component === null || component === void 0 ? void 0 : component.tag) || null;
|
|
497
|
+
const injectValue = !!(component === null || component === void 0 ? void 0 : component.injectValue);
|
|
498
|
+
const params = (component === null || component === void 0 ? void 0 : component.params) || {};
|
|
499
|
+
if (injectValue) {
|
|
500
|
+
params.value = options.value;
|
|
501
|
+
}
|
|
502
|
+
return !!Tag ? (index.h(Tag, Object.assign({}, params, { onClick: (event) => {
|
|
503
|
+
var _a;
|
|
504
|
+
(_a = params === null || params === void 0 ? void 0 : params.onClick) === null || _a === void 0 ? void 0 : _a.call(params, {
|
|
505
|
+
index: rowIndex,
|
|
506
|
+
value: options.value,
|
|
507
|
+
data: this.data[rowIndex],
|
|
508
|
+
event,
|
|
509
|
+
key,
|
|
510
|
+
});
|
|
511
|
+
} }), options.formattedValue || options.value)) : (options.formattedValue || options.value);
|
|
512
|
+
}
|
|
513
|
+
_renderCellChildren(options, index$1, key, data) {
|
|
514
|
+
return options.children.map((child) => {
|
|
515
|
+
var _a, _b, _c;
|
|
516
|
+
const Tag = (_a = child.component) === null || _a === void 0 ? void 0 : _a.tag;
|
|
517
|
+
const params = ((_b = child.component) === null || _b === void 0 ? void 0 : _b.params) || {};
|
|
518
|
+
const { _hiddenData = [] } = data, rest = __rest(data, ["_hiddenData"]);
|
|
519
|
+
const flatData = Object.assign(Object.assign({}, rest), _hiddenData.reduce((obj, row) => {
|
|
520
|
+
obj[row.id] = row.value;
|
|
521
|
+
return obj;
|
|
522
|
+
}, {}));
|
|
523
|
+
return !!Tag ? (index.h(Tag, Object.assign({}, params, (!(params === null || params === void 0 ? void 0 : params.onClick)
|
|
524
|
+
? {}
|
|
525
|
+
: {
|
|
526
|
+
onClick: (event) => {
|
|
527
|
+
params.onClick({
|
|
528
|
+
value: options.value,
|
|
529
|
+
index: index$1,
|
|
530
|
+
event,
|
|
531
|
+
key,
|
|
532
|
+
data: flatData,
|
|
533
|
+
});
|
|
534
|
+
},
|
|
535
|
+
})), !!((_c = child.children) === null || _c === void 0 ? void 0 : _c.length)
|
|
536
|
+
? this._renderCellChildren(child, index$1, key, data)
|
|
537
|
+
: child.value)) : (child.value);
|
|
509
538
|
});
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
539
|
+
}
|
|
540
|
+
_renderExpansionIndicator(rowIndex, rowData = {}) {
|
|
541
|
+
return (this._hasHiddenData && (index.h("td", null, index.h("div", { tabindex: "0", onKeyUp: (event) => this._handleKeyUp(event, rowIndex, rowData) }, index.h("svg", { width: "22", height: "22", viewBox: "0 0 24 24" }, index.h("path", { d: mdi.mdiChevronDown }))))));
|
|
542
|
+
}
|
|
543
|
+
_renderHiddenCells(index$1) {
|
|
544
|
+
return this._data[index$1]._hiddenData
|
|
545
|
+
.filter((d) => !this._extraHeaders.find((h) => h.key === d.id))
|
|
546
|
+
.map(({ id, key, value: options }) => {
|
|
547
|
+
const index$1 = this._headers.findIndex((h) => h.key === id);
|
|
548
|
+
return (index.h("li", null, !!key && (index.h("div", { class: "title" }, index.h("span", { class: "label" }, key, ":"), this._renderCellData(id, options, index$1, index$1))), !!options.children && (index.h("div", { class: "children" }, this._renderCellChildren(options, index$1, id, {})))));
|
|
549
|
+
});
|
|
550
|
+
}
|
|
551
|
+
_renderHiddenHeaderChildren(index$1, rowData) {
|
|
552
|
+
return this._data[index$1]._hiddenData.map(({ id, key }) => {
|
|
553
|
+
var _a;
|
|
554
|
+
const headerIndex = this.headers.findIndex((h) => h.key === id);
|
|
555
|
+
return (!!((_a = this.headers[headerIndex]) === null || _a === void 0 ? void 0 : _a.children) && (index.h("li", null, index.h("div", { class: "children" }, this._renderCellChildren(this.headers[headerIndex], index$1, key, rowData)))));
|
|
556
|
+
});
|
|
557
|
+
}
|
|
558
|
+
_renderLoaderRow() {
|
|
559
|
+
return (index.h("tr", null, index.h("td", { class: "loader", colSpan: 100 }, this.loading && (index.h("div", { class: "c-data-table__loader" }, index.h("div", { class: "loading-bar" }))))));
|
|
560
|
+
}
|
|
561
|
+
_renderRows() {
|
|
562
|
+
return (!!this._data.length &&
|
|
563
|
+
Object.values(this._data).map((rowData, rowIndex) => {
|
|
564
|
+
let selectionValue = this._getSelectionValue(rowData, rowIndex);
|
|
565
|
+
if (!this.selectionProperty && typeof selectionValue === 'number') {
|
|
566
|
+
selectionValue = this._getIndex(selectionValue);
|
|
567
|
+
}
|
|
568
|
+
const isSelected = !!this._selections.includes(selectionValue);
|
|
569
|
+
return (index.h(index.Fragment, null, index.h("tr", { class: {
|
|
570
|
+
active: this._activeRows.includes(rowIndex),
|
|
571
|
+
parent: this._hasHiddenData,
|
|
572
|
+
selected: isSelected,
|
|
573
|
+
}, onClick: (event) => this._onToggleAdditionalData(event, rowIndex, rowData) }, this._renderSelectionCell(isSelected, selectionValue), this._renderExpansionIndicator(rowIndex, rowData), this._renderTableCells(rowIndex, rowData)), this._renderAdditioanlDataRow(rowIndex, rowData)));
|
|
574
|
+
}));
|
|
575
|
+
}
|
|
576
|
+
_renderSelectionCell(isSelected, selectionValue) {
|
|
577
|
+
return (this.selectable && (index.h("td", null, index.h("div", { class: "selection" }, index.h("c-checkbox", { value: isSelected, "hide-details": true, onChangeValue: () => this._onSelection(selectionValue) })))));
|
|
578
|
+
}
|
|
579
|
+
_renderSortIndicator(key) {
|
|
580
|
+
let iconPath = mdi.mdiSwapVertical;
|
|
581
|
+
if (key === this.sortBy && this.sortDirection === 'asc') {
|
|
582
|
+
iconPath = mdi.mdiArrowUpThin;
|
|
583
|
+
}
|
|
584
|
+
if (key === this.sortBy && this.sortDirection === 'desc') {
|
|
585
|
+
iconPath = mdi.mdiArrowDownThin;
|
|
586
|
+
}
|
|
587
|
+
return (index.h("svg", { width: "24", height: "24", viewBox: "0 0 24 24", tabindex: 0 }, index.h("path", { d: iconPath })));
|
|
588
|
+
}
|
|
589
|
+
_renderStatusTextRow() {
|
|
590
|
+
return (!this._data.length && (index.h("tr", null, index.h("td", { class: "info", colSpan: 100 }, index.h("div", null, this.loading ? this.loadingText : this.noDataText)))));
|
|
591
|
+
}
|
|
592
|
+
_renderTableBody() {
|
|
593
|
+
return (index.h("tbody", null, this._renderLoaderRow(), this._renderStatusTextRow(), this._renderRows()));
|
|
594
|
+
}
|
|
595
|
+
_renderTableCell(key, options, colIndex, rowIndex, rowData = {}) {
|
|
596
|
+
var _a;
|
|
597
|
+
const header = this.headers.find((header) => header.key === key);
|
|
598
|
+
const isHidden = this.hiddenHeaders.includes(key);
|
|
599
|
+
return (!!header &&
|
|
600
|
+
!isHidden && (index.h("td", null, index.h("div", { "data-align": header === null || header === void 0 ? void 0 : header.align, "data-justify": header === null || header === void 0 ? void 0 : header.justify }, this._renderCellData(key, options, colIndex, rowIndex), !!options.children && (index.h("div", { class: "children" }, this._renderCellChildren(options, rowIndex, key, rowData))), !!((_a = this.headers.find((header) => header.key === key)) === null || _a === void 0 ? void 0 : _a.children) && (index.h("div", { class: "children" }, this._renderCellChildren(this.headers.find((header) => header.key === key), rowIndex, key, rowData)))))));
|
|
601
|
+
}
|
|
602
|
+
_renderTableCells(rowIndex, rowData = {}) {
|
|
603
|
+
return this._sortCellProperties(rowData).map(([key, options], index) => this._renderTableCell(key, options, index, rowIndex, rowData));
|
|
604
|
+
}
|
|
605
|
+
_renderTableFooter() {
|
|
606
|
+
const footerStyles = this.horizontalScrolling
|
|
607
|
+
? {
|
|
608
|
+
maxWidth: `${this.parentWidth}px`,
|
|
609
|
+
position: 'sticky',
|
|
610
|
+
left: '0',
|
|
611
|
+
}
|
|
612
|
+
: {};
|
|
613
|
+
return (!!this.pagination && (index.h("tfoot", null, index.h("tr", { ref: (el) => (this._footerElement = el) }, index.h("td", { colSpan: 100 }, index.h("div", { class: "c-data-table__footer", style: footerStyles }, index.h("c-pagination", Object.assign({}, this.footerOptions, { value: this.pagination, simple: this._isPaginationSimple, onChangeValue: (e) => this._onPaginationChange(e) }))))))));
|
|
614
|
+
}
|
|
615
|
+
_renderTableHeader() {
|
|
616
|
+
const indicatorRowStyles = this.horizontalScrolling
|
|
617
|
+
? {
|
|
618
|
+
width: `${this.parentWidth - 8}px`,
|
|
619
|
+
position: 'sticky',
|
|
620
|
+
left: '4px',
|
|
621
|
+
}
|
|
622
|
+
: {};
|
|
623
|
+
return (index.h("thead", { class: { sticky: this.stickyHeader } }, index.h("tr", null, this.selectable && (index.h("th", { class: "selection" }, !this.singleSelection && (index.h("div", { class: "selection--heading" }, index.h("c-checkbox", { value: this._hasSelectionsOnPage(), indeterminate: this._isIndeterminate, "hide-details": true, onClick: (event) => this._onHeadingSelection(event), onKeyUp: (event) => this._onHeadingSelection(event) }))))), this._hasHiddenData && index.h("th", { class: "indicator" }), !!this._headers.length &&
|
|
624
|
+
this._headers.map((header) => {
|
|
625
|
+
const isSortable = !!header.sortable || typeof header.sortable === 'undefined';
|
|
626
|
+
const params = Object.assign(Object.assign({ 'data-id': header.key, ref: (el) => this._addHeaderRef(header.key, el) }, (!!header && {
|
|
627
|
+
style: Object.assign({}, (header.width && { minWidth: header.width })),
|
|
628
|
+
})), (isSortable && {
|
|
629
|
+
onClick: () => this._onSort(header.key),
|
|
630
|
+
onKeyUp: () => this._onSort(header.key),
|
|
631
|
+
}));
|
|
632
|
+
return (index.h("th", Object.assign({}, params), index.h("div", { class: { sortable: isSortable } }, header.value, isSortable && this._renderSortIndicator(header.key))));
|
|
633
|
+
})), this.horizontalScrolling && (index.h("tr", { class: "c-data-table__header-indicators" }, index.h("th", { colSpan: 100 }, index.h("div", { style: indicatorRowStyles }, this.firstCellHidden && (index.h("c-icon-button", { class: "first", size: "small", outlined: true, onClick: () => this._scrollLeft() }, index.h("c-icon", { path: mdi.mdiChevronLeft }))), index.h("c-spacer", null), this.lastCellHidden && (index.h("c-icon-button", { class: "last", size: "small", outlined: true, onClick: () => this._scrollRight() }, index.h("c-icon", { path: mdi.mdiChevronRight })))))))));
|
|
634
|
+
}
|
|
635
|
+
_scrollLeft() {
|
|
636
|
+
const leftBorder = this.element.getBoundingClientRect().left;
|
|
637
|
+
const hiddenHeaderKeys = this._headerKeys.filter((key) => {
|
|
638
|
+
var _a;
|
|
639
|
+
const headerCellLeftBorder = (_a = this._tableElement
|
|
640
|
+
.querySelector(`[data-id="${key}"]`)) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().left;
|
|
641
|
+
return headerCellLeftBorder < leftBorder - 2;
|
|
642
|
+
});
|
|
643
|
+
if (hiddenHeaderKeys.length) {
|
|
644
|
+
if (hiddenHeaderKeys.length === 1) {
|
|
645
|
+
this._tableElement.scrollIntoView({
|
|
646
|
+
behavior: 'smooth',
|
|
647
|
+
block: 'nearest',
|
|
648
|
+
inline: 'start',
|
|
649
|
+
});
|
|
650
|
+
return;
|
|
651
|
+
}
|
|
652
|
+
this._tableElement
|
|
653
|
+
.querySelector(`[data-id="${hiddenHeaderKeys[hiddenHeaderKeys.length - 1]}"]`)
|
|
654
|
+
.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
|
|
566
655
|
}
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
_renderSelectionCell(isSelected, selectionValue) {
|
|
576
|
-
return (this.selectable && (index.h("td", null, index.h("div", { class: "selection" }, index.h("c-checkbox", { value: isSelected, "hide-details": true, onChangeValue: () => this._onSelection(selectionValue) })))));
|
|
577
|
-
}
|
|
578
|
-
_renderSortIndicator(key) {
|
|
579
|
-
let iconPath = mdi.mdiSwapVertical;
|
|
580
|
-
if (key === this.sortBy && this.sortDirection === 'asc') {
|
|
581
|
-
iconPath = mdi.mdiArrowUpThin;
|
|
582
|
-
}
|
|
583
|
-
if (key === this.sortBy && this.sortDirection === 'desc') {
|
|
584
|
-
iconPath = mdi.mdiArrowDownThin;
|
|
585
|
-
}
|
|
586
|
-
return (index.h("svg", { width: "24", height: "24", viewBox: "0 0 24 24", tabindex: 0 }, index.h("path", { d: iconPath })));
|
|
587
|
-
}
|
|
588
|
-
_renderStatusTextRow() {
|
|
589
|
-
return (!this._data.length && (index.h("tr", null, index.h("td", { class: "info", colSpan: 100 }, index.h("div", null, this.loading ? this.loadingText : this.noDataText)))));
|
|
590
|
-
}
|
|
591
|
-
_renderTableBody() {
|
|
592
|
-
return (index.h("tbody", null, this._renderLoaderRow(), this._renderStatusTextRow(), this._renderRows()));
|
|
593
|
-
}
|
|
594
|
-
_renderTableCell(key, options, colIndex, rowIndex, rowData = {}) {
|
|
595
|
-
var _a;
|
|
596
|
-
const header = this.headers.find((header) => header.key === key);
|
|
597
|
-
const isHidden = this.hiddenHeaders.includes(key);
|
|
598
|
-
return (!!header &&
|
|
599
|
-
!isHidden && (index.h("td", null, index.h("div", { "data-align": header === null || header === void 0 ? void 0 : header.align, "data-justify": header === null || header === void 0 ? void 0 : header.justify }, this._renderCellData(key, options, colIndex, rowIndex), !!options.children && (index.h("div", { class: "children" }, this._renderCellChildren(options, rowIndex, key, rowData))), !!((_a = this.headers.find((header) => header.key === key)) === null || _a === void 0 ? void 0 : _a.children) && (index.h("div", { class: "children" }, this._renderCellChildren(this.headers.find((header) => header.key === key), rowIndex, key, rowData)))))));
|
|
600
|
-
}
|
|
601
|
-
_renderTableCells(rowIndex, rowData = {}) {
|
|
602
|
-
return this._sortCellProperties(rowData).map(([key, options], index) => this._renderTableCell(key, options, index, rowIndex, rowData));
|
|
603
|
-
}
|
|
604
|
-
_renderTableFooter() {
|
|
605
|
-
const footerStyles = this.horizontalScrolling
|
|
606
|
-
? {
|
|
607
|
-
maxWidth: `${this.parentWidth}px`,
|
|
608
|
-
position: 'sticky',
|
|
609
|
-
left: '0',
|
|
610
|
-
}
|
|
611
|
-
: {};
|
|
612
|
-
return (!!this.pagination && (index.h("tfoot", null, index.h("tr", { ref: (el) => (this._footerElement = el) }, index.h("td", { colSpan: 100 }, index.h("div", { class: "c-data-table__footer", style: footerStyles }, index.h("c-pagination", Object.assign({}, this.footerOptions, { value: this.pagination, simple: this._isPaginationSimple, onChangeValue: (e) => this._onPaginationChange(e) }))))))));
|
|
613
|
-
}
|
|
614
|
-
_renderTableHeader() {
|
|
615
|
-
const indicatorRowStyles = this.horizontalScrolling
|
|
616
|
-
? {
|
|
617
|
-
width: `${this.parentWidth - 8}px`,
|
|
618
|
-
position: 'sticky',
|
|
619
|
-
left: '4px',
|
|
620
|
-
}
|
|
621
|
-
: {};
|
|
622
|
-
return (index.h("thead", { class: { sticky: this.stickyHeader } }, index.h("tr", null, this.selectable && (index.h("th", { class: "selection" }, !this.singleSelection && (index.h("div", { class: "selection--heading" }, index.h("c-checkbox", { value: this._hasSelectionsOnPage(), indeterminate: this._isIndeterminate, "hide-details": true, onClick: (event) => this._onHeadingSelection(event), onKeyUp: (event) => this._onHeadingSelection(event) }))))), this._hasHiddenData && index.h("th", { class: "indicator" }), !!this._headers.length &&
|
|
623
|
-
this._headers.map((header) => {
|
|
624
|
-
const isSortable = !!header.sortable || typeof header.sortable === 'undefined';
|
|
625
|
-
const params = Object.assign(Object.assign({ 'data-id': header.key, ref: (el) => this._addHeaderRef(header.key, el) }, (!!header && {
|
|
626
|
-
style: Object.assign({}, (header.width && { minWidth: header.width })),
|
|
627
|
-
})), (isSortable && {
|
|
628
|
-
onClick: () => this._onSort(header.key),
|
|
629
|
-
onKeyUp: () => this._onSort(header.key),
|
|
630
|
-
}));
|
|
631
|
-
return (index.h("th", Object.assign({}, params), index.h("div", { class: { sortable: isSortable } }, header.value, isSortable && this._renderSortIndicator(header.key))));
|
|
632
|
-
})), this.horizontalScrolling && (index.h("tr", { class: "c-data-table__header-indicators" }, index.h("th", { colSpan: 100 }, index.h("div", { style: indicatorRowStyles }, this.firstCellHidden && (index.h("c-icon-button", { class: "first", size: "small", outlined: true, onClick: () => this._scrollLeft() }, index.h("c-icon", { path: mdi.mdiChevronLeft }))), index.h("c-spacer", null), this.lastCellHidden && (index.h("c-icon-button", { class: "last", size: "small", outlined: true, onClick: () => this._scrollRight() }, index.h("c-icon", { path: mdi.mdiChevronRight })))))))));
|
|
633
|
-
}
|
|
634
|
-
_scrollLeft() {
|
|
635
|
-
const leftBorder = this.element.getBoundingClientRect().left;
|
|
636
|
-
const hiddenHeaderKeys = this._headerKeys.filter((key) => {
|
|
637
|
-
var _a;
|
|
638
|
-
const headerCellLeftBorder = (_a = this._tableElement
|
|
639
|
-
.querySelector(`[data-id="${key}"]`)) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().left;
|
|
640
|
-
return headerCellLeftBorder < leftBorder - 2;
|
|
641
|
-
});
|
|
642
|
-
if (hiddenHeaderKeys.length) {
|
|
643
|
-
if (hiddenHeaderKeys.length === 1) {
|
|
644
|
-
this._tableElement.scrollIntoView({
|
|
645
|
-
behavior: 'smooth',
|
|
646
|
-
block: 'nearest',
|
|
647
|
-
inline: 'start',
|
|
656
|
+
}
|
|
657
|
+
_scrollRight() {
|
|
658
|
+
const rightBorder = this.element.getBoundingClientRect().right;
|
|
659
|
+
const hiddenHeaderKeys = this._headerKeys.filter((key) => {
|
|
660
|
+
var _a;
|
|
661
|
+
const headerCellRightBorder = (_a = this._tableElement
|
|
662
|
+
.querySelector(`[data-id="${key}"]`)) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().right;
|
|
663
|
+
return headerCellRightBorder > rightBorder + 2;
|
|
648
664
|
});
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
}
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
};
|
|
691
|
-
return (index.h(index.Host, null, index.h("div", { class: "c-data-table__wrapper" }, index.h("div", { class: "c-data-table__table-wrapper" }, index.h("table", { class: tableClasses, ref: (el) => (this._tableElement = el) }, index.h("colgroup", null, [
|
|
692
|
-
...(this.selectable ? ['_selection'] : []),
|
|
693
|
-
...(this.hiddenHeaders.length ? ['_hidden'] : []),
|
|
694
|
-
...this._headerKeys,
|
|
695
|
-
].map((key) => (index.h("col", { class: this.sortBy === key && 'sorted-column' })))), this._renderTableHeader(), this._renderTableBody(), !this.hideFooter && this._renderTableFooter())))));
|
|
696
|
-
}
|
|
697
|
-
get element() { return index.getElement(this); }
|
|
698
|
-
static get watchers() { return {
|
|
699
|
-
"hiddenHeaders": ["onHiddenHeaderChange"],
|
|
700
|
-
"data": ["onDataChange"],
|
|
701
|
-
"headers": ["onHeaderChange"],
|
|
702
|
-
"singleSelection": ["onSingleSelectionChange"],
|
|
703
|
-
"loading": ["onLoadingChange"]
|
|
704
|
-
}; }
|
|
665
|
+
if (hiddenHeaderKeys.length) {
|
|
666
|
+
this._tableElement
|
|
667
|
+
.querySelector(`[data-id="${hiddenHeaderKeys[0]}"]`)
|
|
668
|
+
.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
_sortCellProperties(row) {
|
|
672
|
+
const sorted = Object.entries(row)
|
|
673
|
+
.filter(([key]) => ![...this.hiddenHeaders, '_hiddenData'].includes(key))
|
|
674
|
+
.sort(([keyA], [keyB]) => this._headerKeys.indexOf(keyA) - this._headerKeys.indexOf(keyB));
|
|
675
|
+
return sorted;
|
|
676
|
+
}
|
|
677
|
+
_validateProps(data) {
|
|
678
|
+
if (!!data &&
|
|
679
|
+
!this._isValidated &&
|
|
680
|
+
this.selectionProperty !== null &&
|
|
681
|
+
!data[this.selectionProperty]) {
|
|
682
|
+
console.warn(`[C-DATA-TABLE] Invalid selection property '${this.selectionProperty}'. Using row index as a fallback. This may lead to unexpected behavior.`);
|
|
683
|
+
this._isValidated = true;
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
render() {
|
|
687
|
+
const tableClasses = {
|
|
688
|
+
'c-data-table': true,
|
|
689
|
+
'c-data-table--hoverable': this.selectable || this._hasHiddenData,
|
|
690
|
+
'c-data-table--scrollable': this.horizontalScrolling,
|
|
691
|
+
};
|
|
692
|
+
return (index.h(index.Host, { key: 'e3d82ca6aa21a17a669fe2b99f415b70e3b058f4' }, index.h("div", { key: '8b6f0c0299749f59193d1331a3de3f766aab3241', class: "c-data-table__wrapper" }, index.h("div", { key: 'f8ca3c8408165baf842797bfa47d6edff97b5848', class: "c-data-table__table-wrapper" }, index.h("table", { key: 'ae3ba275192503a711336cf6cf8452db3554c307', class: tableClasses, ref: (el) => (this._tableElement = el) }, index.h("colgroup", { key: 'e7dede3de2d515ea7281d02a963260eb3f45be64' }, [
|
|
693
|
+
...(this.selectable ? ['_selection'] : []),
|
|
694
|
+
...(this.hiddenHeaders.length ? ['_hidden'] : []),
|
|
695
|
+
...this._headerKeys,
|
|
696
|
+
].map((key) => (index.h("col", { class: this.sortBy === key && 'sorted-column' })))), this._renderTableHeader(), this._renderTableBody(), !this.hideFooter && this._renderTableFooter())))));
|
|
697
|
+
}
|
|
698
|
+
get element() { return index.getElement(this); }
|
|
699
|
+
static get watchers() { return {
|
|
700
|
+
"hiddenHeaders": ["onHiddenHeaderChange"],
|
|
701
|
+
"data": ["onDataChange"],
|
|
702
|
+
"headers": ["onHeaderChange"],
|
|
703
|
+
"singleSelection": ["onSingleSelectionChange"],
|
|
704
|
+
"loading": ["onLoadingChange"]
|
|
705
|
+
}; }
|
|
705
706
|
};
|
|
706
|
-
CDataTable.style =
|
|
707
|
+
CDataTable.style = CDataTableStyle0;
|
|
707
708
|
|
|
708
709
|
exports.c_data_table = CDataTable;
|
|
709
710
|
|