@cscfi/csc-ui 2.2.5 → 2.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/app-globals-3a1e7e63.js +7 -0
- package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
- package/dist/cjs/c-accordion-item.cjs.entry.js +108 -107
- package/dist/cjs/c-accordion-item.cjs.entry.js.map +1 -1
- package/dist/cjs/c-accordion.cjs.entry.js +53 -52
- package/dist/cjs/c-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/c-alert.cjs.entry.js +17 -16
- package/dist/cjs/c-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/c-autocomplete_34.cjs.entry.js +2437 -2398
- package/dist/cjs/c-autocomplete_34.cjs.entry.js.map +1 -1
- package/dist/cjs/c-data-table.cjs.entry.js +678 -677
- package/dist/cjs/c-data-table.cjs.entry.js.map +1 -1
- package/dist/cjs/c-link.cjs.entry.js +19 -18
- package/dist/cjs/c-link.cjs.entry.js.map +1 -1
- package/dist/cjs/c-list-item-title.cjs.entry.js +14 -13
- package/dist/cjs/c-list-item-title.cjs.entry.js.map +1 -1
- package/dist/cjs/c-list-item.cjs.entry.js +70 -69
- package/dist/cjs/c-list-item.cjs.entry.js.map +1 -1
- package/dist/cjs/c-list.cjs.entry.js +33 -32
- package/dist/cjs/c-list.cjs.entry.js.map +1 -1
- package/dist/cjs/c-login-button.cjs.entry.js +13 -12
- package/dist/cjs/c-login-button.cjs.entry.js.map +1 -1
- package/dist/cjs/c-login-buttons.cjs.entry.js +9 -8
- package/dist/cjs/c-login-buttons.cjs.entry.js.map +1 -1
- package/dist/cjs/c-login-card-actions.cjs.entry.js +9 -9
- package/dist/cjs/c-login-card-actions.cjs.entry.js.map +1 -1
- package/dist/cjs/c-login-card-content.cjs.entry.js +9 -8
- package/dist/cjs/c-login-card-content.cjs.entry.js.map +1 -1
- package/dist/cjs/c-login-card-title.cjs.entry.js +9 -8
- package/dist/cjs/c-login-card-title.cjs.entry.js.map +1 -1
- package/dist/cjs/c-login-card.cjs.entry.js +54 -53
- package/dist/cjs/c-login-card.cjs.entry.js.map +1 -1
- package/dist/cjs/c-menu_2.cjs.entry.js +317 -315
- package/dist/cjs/c-menu_2.cjs.entry.js.map +1 -1
- package/dist/cjs/c-modal.cjs.entry.js +109 -108
- package/dist/cjs/c-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/c-option-value.cjs.entry.js +9 -8
- package/dist/cjs/c-option-value.cjs.entry.js.map +1 -1
- package/dist/cjs/c-pagination.cjs.entry.js +214 -213
- package/dist/cjs/c-pagination.cjs.entry.js.map +1 -1
- package/dist/cjs/c-progress-bar.cjs.entry.js +46 -45
- package/dist/cjs/c-progress-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/c-row.cjs.entry.js +23 -22
- package/dist/cjs/c-row.cjs.entry.js.map +1 -1
- package/dist/cjs/c-slider.cjs.entry.js +87 -86
- package/dist/cjs/c-slider.cjs.entry.js.map +1 -1
- package/dist/cjs/c-status.cjs.entry.js +11 -10
- package/dist/cjs/c-status.cjs.entry.js.map +1 -1
- package/dist/cjs/c-step.cjs.entry.js +15 -14
- package/dist/cjs/c-step.cjs.entry.js.map +1 -1
- package/dist/cjs/c-steps.cjs.entry.js +62 -61
- package/dist/cjs/c-steps.cjs.entry.js.map +1 -1
- package/dist/cjs/c-swiper-tab.cjs.entry.js +35 -34
- package/dist/cjs/c-swiper-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/c-swiper.cjs.entry.js +119 -118
- package/dist/cjs/c-swiper.cjs.entry.js.map +1 -1
- package/dist/cjs/c-tab-buttons.cjs.entry.js +118 -117
- package/dist/cjs/c-tab-buttons.cjs.entry.js.map +1 -1
- package/dist/cjs/c-tab-item.cjs.entry.js +29 -28
- package/dist/cjs/c-tab-item.cjs.entry.js.map +1 -1
- package/dist/cjs/c-tab-items.cjs.entry.js +67 -66
- package/dist/cjs/c-tab-items.cjs.entry.js.map +1 -1
- package/dist/cjs/c-tab.cjs.entry.js +46 -45
- package/dist/cjs/c-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/c-tabs.cjs.entry.js +394 -393
- package/dist/cjs/c-tabs.cjs.entry.js.map +1 -1
- package/dist/cjs/c-tag.cjs.entry.js +34 -33
- package/dist/cjs/c-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/c-tags.cjs.entry.js +18 -17
- package/dist/cjs/c-tags.cjs.entry.js.map +1 -1
- package/dist/cjs/c-toast.cjs.entry.js +60 -59
- package/dist/cjs/c-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/c-toasts.cjs.entry.js +64 -63
- package/dist/cjs/c-toasts.cjs.entry.js.map +1 -1
- package/dist/cjs/csc-ui.cjs.js +13 -11
- package/dist/cjs/csc-ui.cjs.js.map +1 -1
- package/dist/cjs/index-4fc978c6.js +1878 -0
- package/dist/cjs/index-4fc978c6.js.map +1 -0
- package/dist/cjs/index-f799b2ea.js +23 -0
- package/dist/cjs/{index-72dca436.js.map → index-f799b2ea.js.map} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +5 -3
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/c-accordion/c-accordion.js +164 -164
- package/dist/collection/components/c-accordion/c-accordion.js.map +1 -1
- package/dist/collection/components/c-accordion/test/c-accordion.visual.js +40 -40
- package/dist/collection/components/c-accordion/test/c-accordion.visual.js.map +1 -1
- package/dist/collection/components/c-accordion-item/c-accordion-item.js +254 -254
- package/dist/collection/components/c-accordion-item/c-accordion-item.js.map +1 -1
- package/dist/collection/components/c-alert/c-alert.js +51 -51
- package/dist/collection/components/c-alert/c-alert.js.map +1 -1
- package/dist/collection/components/c-alert/test/c-alert.visual.js +18 -18
- package/dist/collection/components/c-alert/test/c-alert.visual.js.map +1 -1
- package/dist/collection/components/c-autocomplete/c-autocomplete.js +740 -740
- package/dist/collection/components/c-autocomplete/c-autocomplete.js.map +1 -1
- package/dist/collection/components/c-autocomplete/test/c-autocomplete.visual.js +23 -23
- package/dist/collection/components/c-autocomplete/test/c-autocomplete.visual.js.map +1 -1
- package/dist/collection/components/c-badge/c-badge.js +15 -15
- package/dist/collection/components/c-badge/c-badge.js.map +1 -1
- package/dist/collection/components/c-button/c-button.js +502 -502
- package/dist/collection/components/c-button/c-button.js.map +1 -1
- package/dist/collection/components/c-button/test/c-button.visual.js +72 -72
- package/dist/collection/components/c-button/test/c-button.visual.js.map +1 -1
- package/dist/collection/components/c-card/c-card.js +128 -128
- package/dist/collection/components/c-card/c-card.js.map +1 -1
- package/dist/collection/components/c-card/test/c-card.visual.js +8 -8
- package/dist/collection/components/c-card/test/c-card.visual.js.map +1 -1
- package/dist/collection/components/c-card-actions/c-card-actions.js +64 -64
- package/dist/collection/components/c-card-actions/c-card-actions.js.map +1 -1
- package/dist/collection/components/c-card-content/c-card-content.js +15 -15
- package/dist/collection/components/c-card-content/c-card-content.js.map +1 -1
- package/dist/collection/components/c-card-title/c-card-title.js +45 -45
- package/dist/collection/components/c-card-title/c-card-title.js.map +1 -1
- package/dist/collection/components/c-checkbox/c-checkbox.css +1 -1
- package/dist/collection/components/c-checkbox/c-checkbox.js +355 -355
- package/dist/collection/components/c-checkbox/c-checkbox.js.map +1 -1
- package/dist/collection/components/c-checkbox/test/c-checkbox.visual.js +12 -12
- package/dist/collection/components/c-checkbox/test/c-checkbox.visual.js.map +1 -1
- package/dist/collection/components/c-csc-logo/c-csc-logo.js +41 -41
- package/dist/collection/components/c-csc-logo/c-csc-logo.js.map +1 -1
- package/dist/collection/components/c-data-table/c-data-table.js +1140 -1140
- package/dist/collection/components/c-data-table/c-data-table.js.map +1 -1
- package/dist/collection/components/c-data-table/test/c-data-table.visual.js +23 -23
- package/dist/collection/components/c-data-table/test/c-data-table.visual.js.map +1 -1
- package/dist/collection/components/c-data-table/test/data/index.js +96 -96
- package/dist/collection/components/c-data-table/test/data/index.js.map +1 -1
- package/dist/collection/components/c-dropdown/c-dropdown.js +615 -612
- package/dist/collection/components/c-dropdown/c-dropdown.js.map +1 -1
- package/dist/collection/components/c-icon/c-icon.js +84 -84
- package/dist/collection/components/c-icon/c-icon.js.map +1 -1
- package/dist/collection/components/c-icon-button/c-icon-button.js +234 -234
- package/dist/collection/components/c-icon-button/c-icon-button.js.map +1 -1
- package/dist/collection/components/c-icon-button/test/c-icon-button.visual.js +10 -10
- package/dist/collection/components/c-icon-button/test/c-icon-button.visual.js.map +1 -1
- package/dist/collection/components/c-input/c-input.js +805 -805
- package/dist/collection/components/c-input/c-input.js.map +1 -1
- package/dist/collection/components/c-link/c-link.js +103 -103
- package/dist/collection/components/c-link/c-link.js.map +1 -1
- package/dist/collection/components/c-link/test/c-link.visual.js +6 -6
- package/dist/collection/components/c-link/test/c-link.visual.js.map +1 -1
- package/dist/collection/components/c-list/c-list.js +65 -65
- package/dist/collection/components/c-list/c-list.js.map +1 -1
- package/dist/collection/components/c-list-item/c-list-item.js +213 -213
- package/dist/collection/components/c-list-item/c-list-item.js.map +1 -1
- package/dist/collection/components/c-list-item-title/c-list-item-title.js +44 -44
- package/dist/collection/components/c-list-item-title/c-list-item-title.js.map +1 -1
- package/dist/collection/components/c-loader/c-loader.js +114 -114
- package/dist/collection/components/c-loader/c-loader.js.map +1 -1
- package/dist/collection/components/c-login-button/c-login-button.js +78 -78
- package/dist/collection/components/c-login-button/c-login-button.js.map +1 -1
- package/dist/collection/components/c-login-buttons/c-login-buttons.js +15 -15
- package/dist/collection/components/c-login-buttons/c-login-buttons.js.map +1 -1
- package/dist/collection/components/c-login-card/c-login-card.js +166 -166
- package/dist/collection/components/c-login-card/c-login-card.js.map +1 -1
- package/dist/collection/components/c-login-card/test/c-login-card.visual.js +8 -8
- package/dist/collection/components/c-login-card/test/c-login-card.visual.js.map +1 -1
- package/dist/collection/components/c-login-card-actions/c-login-card-actions.js +49 -49
- package/dist/collection/components/c-login-card-actions/c-login-card-actions.js.map +1 -1
- package/dist/collection/components/c-login-card-content/c-login-card-content.js +15 -15
- package/dist/collection/components/c-login-card-content/c-login-card-content.js.map +1 -1
- package/dist/collection/components/c-login-card-title/c-login-card-title.js +15 -15
- package/dist/collection/components/c-login-card-title/c-login-card-title.js.map +1 -1
- package/dist/collection/components/c-main/c-main.js +40 -40
- package/dist/collection/components/c-main/c-main.js.map +1 -1
- package/dist/collection/components/c-menu/c-menu.js +273 -273
- package/dist/collection/components/c-menu/c-menu.js.map +1 -1
- package/dist/collection/components/c-menu/test/c-menu.visual.js +29 -29
- package/dist/collection/components/c-menu/test/c-menu.visual.js.map +1 -1
- package/dist/collection/components/c-menu-items/c-menu-items.js +407 -407
- package/dist/collection/components/c-menu-items/c-menu-items.js.map +1 -1
- package/dist/collection/components/c-message/c-message.js +149 -149
- package/dist/collection/components/c-message/c-message.js.map +1 -1
- package/dist/collection/components/c-modal/c-modal.js +236 -236
- package/dist/collection/components/c-modal/c-modal.js.map +1 -1
- package/dist/collection/components/c-navigation-button/c-navigation-button.js +15 -15
- package/dist/collection/components/c-navigation-button/c-navigation-button.js.map +1 -1
- package/dist/collection/components/c-option/c-option.js +95 -95
- package/dist/collection/components/c-option/c-option.js.map +1 -1
- package/dist/collection/components/c-option-value/c-option-value.js +15 -15
- package/dist/collection/components/c-option-value/c-option-value.js.map +1 -1
- package/dist/collection/components/c-otp-input/c-otp-input.js +339 -339
- package/dist/collection/components/c-otp-input/c-otp-input.js.map +1 -1
- package/dist/collection/components/c-page/c-page.js +52 -52
- package/dist/collection/components/c-page/c-page.js.map +1 -1
- package/dist/collection/components/c-pagination/c-pagination.js +342 -342
- package/dist/collection/components/c-pagination/c-pagination.js.map +1 -1
- package/dist/collection/components/c-pagination/test/c-pagination.visual.js +32 -32
- package/dist/collection/components/c-pagination/test/c-pagination.visual.js.map +1 -1
- package/dist/collection/components/c-progress-bar/c-progress-bar.js +148 -148
- package/dist/collection/components/c-progress-bar/c-progress-bar.js.map +1 -1
- package/dist/collection/components/c-progress-bar/test/c-progress-bar.visual.js +12 -12
- package/dist/collection/components/c-progress-bar/test/c-progress-bar.visual.js.map +1 -1
- package/dist/collection/components/c-radio/c-radio.js +77 -77
- package/dist/collection/components/c-radio/c-radio.js.map +1 -1
- package/dist/collection/components/c-radio-group/c-radio-group.js +370 -370
- package/dist/collection/components/c-radio-group/c-radio-group.js.map +1 -1
- package/dist/collection/components/c-radio-group/test/c-radio-group.visual.js +12 -12
- package/dist/collection/components/c-radio-group/test/c-radio-group.visual.js.map +1 -1
- package/dist/collection/components/c-radio-group/test/items.js +3 -3
- package/dist/collection/components/c-radio-group/test/items.js.map +1 -1
- package/dist/collection/components/c-ripple/c-ripple.js +89 -86
- package/dist/collection/components/c-ripple/c-ripple.js.map +1 -1
- package/dist/collection/components/c-row/c-row.js +116 -116
- package/dist/collection/components/c-row/c-row.js.map +1 -1
- package/dist/collection/components/c-select/c-select.js +745 -740
- package/dist/collection/components/c-select/c-select.js.map +1 -1
- package/dist/collection/components/c-select/test/c-select.visual.js +26 -26
- package/dist/collection/components/c-select/test/c-select.visual.js.map +1 -1
- package/dist/collection/components/c-select/test/items.js +7 -7
- package/dist/collection/components/c-select/test/items.js.map +1 -1
- package/dist/collection/components/c-side-navigation/c-side-navigation.js +141 -141
- package/dist/collection/components/c-side-navigation/c-side-navigation.js.map +1 -1
- package/dist/collection/components/c-side-navigation/test/c-side-navigation.visual.js +10 -10
- package/dist/collection/components/c-side-navigation/test/c-side-navigation.visual.js.map +1 -1
- package/dist/collection/components/c-side-navigation-item/c-side-navigation-item.js +223 -223
- package/dist/collection/components/c-side-navigation-item/c-side-navigation-item.js.map +1 -1
- package/dist/collection/components/c-side-navigation-title/c-side-navigation-title.js +15 -15
- package/dist/collection/components/c-side-navigation-title/c-side-navigation-title.js.map +1 -1
- package/dist/collection/components/c-slider/c-slider.js +375 -375
- package/dist/collection/components/c-slider/c-slider.js.map +1 -1
- package/dist/collection/components/c-spacer/c-spacer.js +15 -15
- package/dist/collection/components/c-spacer/c-spacer.js.map +1 -1
- package/dist/collection/components/c-spinner/c-spinner.js +88 -88
- package/dist/collection/components/c-spinner/c-spinner.js.map +1 -1
- package/dist/collection/components/c-status/c-status.js +40 -40
- package/dist/collection/components/c-status/c-status.js.map +1 -1
- package/dist/collection/components/c-status/test/c-status.visual.js +4 -4
- package/dist/collection/components/c-status/test/c-status.visual.js.map +1 -1
- package/dist/collection/components/c-step/c-step.js +69 -69
- package/dist/collection/components/c-step/c-step.js.map +1 -1
- package/dist/collection/components/c-steps/c-steps.js +117 -117
- package/dist/collection/components/c-steps/c-steps.js.map +1 -1
- package/dist/collection/components/c-steps/test/c-steps.visual.js +11 -11
- package/dist/collection/components/c-steps/test/c-steps.visual.js.map +1 -1
- package/dist/collection/components/c-sub-navigation-item/c-sub-navigation-item.js +135 -135
- package/dist/collection/components/c-sub-navigation-item/c-sub-navigation-item.js.map +1 -1
- package/dist/collection/components/c-swiper/c-swiper.js +205 -205
- package/dist/collection/components/c-swiper/c-swiper.js.map +1 -1
- package/dist/collection/components/c-swiper/test/c-swiper.visual.js +14 -14
- package/dist/collection/components/c-swiper/test/c-swiper.visual.js.map +1 -1
- package/dist/collection/components/c-swiper-tab/c-swiper-tab.js +203 -203
- package/dist/collection/components/c-swiper-tab/c-swiper-tab.js.map +1 -1
- package/dist/collection/components/c-switch/c-switch.js +214 -214
- package/dist/collection/components/c-switch/c-switch.js.map +1 -1
- package/dist/collection/components/c-switch/test/c-switch.visual.js +14 -14
- package/dist/collection/components/c-switch/test/c-switch.visual.js.map +1 -1
- package/dist/collection/components/c-tab/c-tab.js +224 -224
- package/dist/collection/components/c-tab/c-tab.js.map +1 -1
- package/dist/collection/components/c-tab-buttons/c-tab-buttons.js +263 -263
- package/dist/collection/components/c-tab-buttons/c-tab-buttons.js.map +1 -1
- package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.visual.js +31 -31
- package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.visual.js.map +1 -1
- package/dist/collection/components/c-tab-item/c-tab-item.js +96 -96
- package/dist/collection/components/c-tab-item/c-tab-item.js.map +1 -1
- package/dist/collection/components/c-tab-items/c-tab-items.js +134 -134
- package/dist/collection/components/c-tab-items/c-tab-items.js.map +1 -1
- package/dist/collection/components/c-table/c-table.js +84 -84
- package/dist/collection/components/c-table/c-table.js.map +1 -1
- package/dist/collection/components/c-tabs/c-tabs.js +576 -576
- package/dist/collection/components/c-tabs/c-tabs.js.map +1 -1
- package/dist/collection/components/c-tabs/test/c-tabs.visual.js +8 -8
- package/dist/collection/components/c-tabs/test/c-tabs.visual.js.map +1 -1
- package/dist/collection/components/c-tag/c-tag.js +189 -189
- package/dist/collection/components/c-tag/c-tag.js.map +1 -1
- package/dist/collection/components/c-tag/test/c-tag.visual.js +12 -12
- package/dist/collection/components/c-tag/test/c-tag.visual.js.map +1 -1
- package/dist/collection/components/c-tags/c-tags.js +48 -48
- package/dist/collection/components/c-tags/c-tags.js.map +1 -1
- package/dist/collection/components/c-text-field/c-text-field.js +609 -609
- package/dist/collection/components/c-text-field/c-text-field.js.map +1 -1
- package/dist/collection/components/c-text-field/test/c-text-field.visual.js +27 -27
- package/dist/collection/components/c-text-field/test/c-text-field.visual.js.map +1 -1
- package/dist/collection/components/c-toast/c-toast.js +138 -138
- package/dist/collection/components/c-toast/c-toast.js.map +1 -1
- package/dist/collection/components/c-toasts/c-toasts.js +185 -183
- package/dist/collection/components/c-toasts/c-toasts.js.map +1 -1
- package/dist/collection/components/c-toasts/test/c-toasts.visual.js +21 -21
- package/dist/collection/components/c-toasts/test/c-toasts.visual.js.map +1 -1
- package/dist/collection/components/c-toolbar/c-toolbar.js +15 -15
- package/dist/collection/components/c-toolbar/c-toolbar.js.map +1 -1
- package/dist/collection/components/c-toolbar/test/c-toolbar.visual.js +4 -4
- package/dist/collection/components/c-toolbar/test/c-toolbar.visual.js.map +1 -1
- package/dist/collection/types/index.js +10 -10
- package/dist/collection/types/index.js.map +1 -1
- package/dist/collection/utils/getScrollParent.js +19 -19
- package/dist/collection/utils/getScrollParent.js.map +1 -1
- package/dist/collection/utils/test/takeScreenshot.js +8 -8
- package/dist/collection/utils/test/takeScreenshot.js.map +1 -1
- package/dist/components/c-accordion-item.d.ts +2 -2
- package/dist/components/c-accordion-item.js +137 -136
- package/dist/components/c-accordion-item.js.map +1 -1
- package/dist/components/c-accordion.d.ts +2 -2
- package/dist/components/c-accordion.js +74 -73
- package/dist/components/c-accordion.js.map +1 -1
- package/dist/components/c-alert.d.ts +2 -2
- package/dist/components/c-alert.js +34 -33
- package/dist/components/c-alert.js.map +1 -1
- package/dist/components/c-autocomplete.d.ts +2 -2
- package/dist/components/c-autocomplete.js +343 -342
- package/dist/components/c-autocomplete.js.map +1 -1
- package/dist/components/c-badge.d.ts +2 -2
- package/dist/components/c-badge.js +1 -1
- package/dist/components/c-button.d.ts +2 -2
- package/dist/components/c-button.js +176 -175
- package/dist/components/c-button.js.map +1 -1
- package/dist/components/c-card-actions.d.ts +2 -2
- package/dist/components/c-card-actions.js +1 -1
- package/dist/components/c-card-content.d.ts +2 -2
- package/dist/components/c-card-content.js +23 -22
- package/dist/components/c-card-content.js.map +1 -1
- package/dist/components/c-card-title.d.ts +2 -2
- package/dist/components/c-card-title.js +51 -50
- package/dist/components/c-card-title.js.map +1 -1
- package/dist/components/c-card.d.ts +2 -2
- package/dist/components/c-card.js +103 -102
- package/dist/components/c-card.js.map +1 -1
- package/dist/components/c-checkbox.d.ts +2 -2
- package/dist/components/c-checkbox.js +1 -1
- package/dist/components/c-csc-logo.d.ts +2 -2
- package/dist/components/c-csc-logo.js +27 -26
- package/dist/components/c-csc-logo.js.map +1 -1
- package/dist/components/c-data-table.d.ts +2 -2
- package/dist/components/c-data-table.js +799 -798
- package/dist/components/c-data-table.js.map +1 -1
- package/dist/components/c-dropdown.d.ts +2 -2
- package/dist/components/c-dropdown.js +1 -1
- package/dist/components/c-icon-button.d.ts +2 -2
- package/dist/components/c-icon-button.js +1 -1
- package/dist/components/c-icon.d.ts +2 -2
- package/dist/components/c-icon.js +1 -1
- package/dist/components/c-input.d.ts +2 -2
- package/dist/components/c-input.js +1 -1
- package/dist/components/c-link.d.ts +2 -2
- package/dist/components/c-link.js +38 -37
- package/dist/components/c-link.js.map +1 -1
- package/dist/components/c-list-item-title.d.ts +2 -2
- package/dist/components/c-list-item-title.js +30 -29
- package/dist/components/c-list-item-title.js.map +1 -1
- package/dist/components/c-list-item.d.ts +2 -2
- package/dist/components/c-list-item.js +100 -99
- package/dist/components/c-list-item.js.map +1 -1
- package/dist/components/c-list.d.ts +2 -2
- package/dist/components/c-list.js +50 -49
- package/dist/components/c-list.js.map +1 -1
- package/dist/components/c-loader.d.ts +2 -2
- package/dist/components/c-loader.js +1 -1
- package/dist/components/c-login-button.d.ts +2 -2
- package/dist/components/c-login-button.js +31 -30
- package/dist/components/c-login-button.js.map +1 -1
- package/dist/components/c-login-buttons.d.ts +2 -2
- package/dist/components/c-login-buttons.js +23 -22
- package/dist/components/c-login-buttons.js.map +1 -1
- package/dist/components/c-login-card-actions.d.ts +2 -2
- package/dist/components/c-login-card-actions.js +32 -32
- package/dist/components/c-login-card-actions.js.map +1 -1
- package/dist/components/c-login-card-content.d.ts +2 -2
- package/dist/components/c-login-card-content.js +23 -22
- package/dist/components/c-login-card-content.js.map +1 -1
- package/dist/components/c-login-card-title.d.ts +2 -2
- package/dist/components/c-login-card-title.js +23 -22
- package/dist/components/c-login-card-title.js.map +1 -1
- package/dist/components/c-login-card.d.ts +2 -2
- package/dist/components/c-login-card.js +75 -74
- package/dist/components/c-login-card.js.map +1 -1
- package/dist/components/c-main.d.ts +2 -2
- package/dist/components/c-main.js +26 -25
- package/dist/components/c-main.js.map +1 -1
- package/dist/components/c-menu-items.d.ts +2 -2
- package/dist/components/c-menu-items.js +1 -1
- package/dist/components/c-menu.d.ts +2 -2
- package/dist/components/c-menu.js +1 -1
- package/dist/components/c-message.d.ts +2 -2
- package/dist/components/c-message.js +1 -1
- package/dist/components/c-modal.d.ts +2 -2
- package/dist/components/c-modal.js +133 -132
- package/dist/components/c-modal.js.map +1 -1
- package/dist/components/c-navigation-button.d.ts +2 -2
- package/dist/components/c-navigation-button.js +54 -53
- package/dist/components/c-navigation-button.js.map +1 -1
- package/dist/components/c-option-value.d.ts +2 -2
- package/dist/components/c-option-value.js +23 -22
- package/dist/components/c-option-value.js.map +1 -1
- package/dist/components/c-option.d.ts +2 -2
- package/dist/components/c-option.js +32 -31
- package/dist/components/c-option.js.map +1 -1
- package/dist/components/c-otp-input.d.ts +2 -2
- package/dist/components/c-otp-input.js +187 -186
- package/dist/components/c-otp-input.js.map +1 -1
- package/dist/components/c-page.d.ts +2 -2
- package/dist/components/c-page.js +38 -37
- package/dist/components/c-page.js.map +1 -1
- package/dist/components/c-pagination.d.ts +2 -2
- package/dist/components/c-pagination.js +1 -1
- package/dist/components/c-progress-bar.d.ts +2 -2
- package/dist/components/c-progress-bar.js +66 -65
- package/dist/components/c-progress-bar.js.map +1 -1
- package/dist/components/c-radio-group.d.ts +2 -2
- package/dist/components/c-radio-group.js +141 -140
- package/dist/components/c-radio-group.js.map +1 -1
- package/dist/components/c-radio.d.ts +2 -2
- package/dist/components/c-radio.js +30 -29
- package/dist/components/c-radio.js.map +1 -1
- package/dist/components/c-ripple.d.ts +2 -2
- package/dist/components/c-ripple.js +1 -1
- package/dist/components/c-row.d.ts +2 -2
- package/dist/components/c-row.js +42 -41
- package/dist/components/c-row.js.map +1 -1
- package/dist/components/c-select.d.ts +2 -2
- package/dist/components/c-select.js +390 -384
- package/dist/components/c-select.js.map +1 -1
- package/dist/components/c-side-navigation-item.d.ts +2 -2
- package/dist/components/c-side-navigation-item.js +145 -144
- package/dist/components/c-side-navigation-item.js.map +1 -1
- package/dist/components/c-side-navigation-title.d.ts +2 -2
- package/dist/components/c-side-navigation-title.js +23 -22
- package/dist/components/c-side-navigation-title.js.map +1 -1
- package/dist/components/c-side-navigation.d.ts +2 -2
- package/dist/components/c-side-navigation.js +120 -119
- package/dist/components/c-side-navigation.js.map +1 -1
- package/dist/components/c-slider.d.ts +2 -2
- package/dist/components/c-slider.js +121 -120
- package/dist/components/c-slider.js.map +1 -1
- package/dist/components/c-spacer.d.ts +2 -2
- package/dist/components/c-spacer.js +1 -1
- package/dist/components/c-spinner.d.ts +2 -2
- package/dist/components/c-spinner.js +1 -1
- package/dist/components/c-status.d.ts +2 -2
- package/dist/components/c-status.js +27 -26
- package/dist/components/c-status.js.map +1 -1
- package/dist/components/c-step.d.ts +2 -2
- package/dist/components/c-step.js +32 -31
- package/dist/components/c-step.js.map +1 -1
- package/dist/components/c-steps.d.ts +2 -2
- package/dist/components/c-steps.js +82 -81
- package/dist/components/c-steps.js.map +1 -1
- package/dist/components/c-sub-navigation-item.d.ts +2 -2
- package/dist/components/c-sub-navigation-item.js +68 -67
- package/dist/components/c-sub-navigation-item.js.map +1 -1
- package/dist/components/c-swiper-tab.d.ts +2 -2
- package/dist/components/c-swiper-tab.js +63 -62
- package/dist/components/c-swiper-tab.js.map +1 -1
- package/dist/components/c-swiper.d.ts +2 -2
- package/dist/components/c-swiper.js +164 -163
- package/dist/components/c-swiper.js.map +1 -1
- package/dist/components/c-switch.d.ts +2 -2
- package/dist/components/c-switch.js +77 -76
- package/dist/components/c-switch.js.map +1 -1
- package/dist/components/c-tab-buttons.d.ts +2 -2
- package/dist/components/c-tab-buttons.js +140 -139
- package/dist/components/c-tab-buttons.js.map +1 -1
- package/dist/components/c-tab-item.d.ts +2 -2
- package/dist/components/c-tab-item.js +46 -45
- package/dist/components/c-tab-item.js.map +1 -1
- package/dist/components/c-tab-items.d.ts +2 -2
- package/dist/components/c-tab-items.js +87 -86
- package/dist/components/c-tab-items.js.map +1 -1
- package/dist/components/c-tab.d.ts +2 -2
- package/dist/components/c-tab.js +73 -72
- package/dist/components/c-tab.js.map +1 -1
- package/dist/components/c-table.d.ts +2 -2
- package/dist/components/c-table.js +53 -52
- package/dist/components/c-table.js.map +1 -1
- package/dist/components/c-tabs.d.ts +2 -2
- package/dist/components/c-tabs.js +452 -451
- package/dist/components/c-tabs.js.map +1 -1
- package/dist/components/c-tag.d.ts +2 -2
- package/dist/components/c-tag.js +87 -86
- package/dist/components/c-tag.js.map +1 -1
- package/dist/components/c-tags.d.ts +2 -2
- package/dist/components/c-tags.js +34 -33
- package/dist/components/c-tags.js.map +1 -1
- package/dist/components/c-text-field.d.ts +2 -2
- package/dist/components/c-text-field.js +184 -183
- package/dist/components/c-text-field.js.map +1 -1
- package/dist/components/c-toast.d.ts +2 -2
- package/dist/components/c-toast.js +1 -1
- package/dist/components/c-toasts.d.ts +2 -2
- package/dist/components/c-toasts.js +117 -97
- package/dist/components/c-toasts.js.map +1 -1
- package/dist/components/c-toolbar.d.ts +2 -2
- package/dist/components/c-toolbar.js +23 -22
- package/dist/components/c-toolbar.js.map +1 -1
- package/dist/components/index.d.ts +143 -0
- package/dist/components/index.js +71 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/p-07477d1d.js +238 -0
- package/dist/components/{c-menu-items2.js.map → p-07477d1d.js.map} +1 -1
- package/dist/components/p-14a3bcd3.js +295 -0
- package/dist/components/p-14a3bcd3.js.map +1 -0
- package/dist/components/p-29be82c5.js +120 -0
- package/dist/components/p-29be82c5.js.map +1 -0
- package/dist/components/p-2fbcb4e1.js +1518 -0
- package/dist/components/p-2fbcb4e1.js.map +1 -0
- package/dist/components/{mdi.js → p-3ea8acb0.js} +2 -2
- package/dist/components/p-3ea8acb0.js.map +1 -0
- package/dist/components/{c-icon-button2.js → p-59f6f0d8.js} +87 -86
- package/dist/components/p-59f6f0d8.js.map +1 -0
- package/dist/components/p-6e1a2888.js +33 -0
- package/dist/components/p-6e1a2888.js.map +1 -0
- package/dist/components/p-7f5a7176.js +50 -0
- package/dist/components/p-7f5a7176.js.map +1 -0
- package/dist/components/p-8068bc3d.js +47 -0
- package/dist/components/p-8068bc3d.js.map +1 -0
- package/dist/components/p-aa75dd47.js +293 -0
- package/dist/components/p-aa75dd47.js.map +1 -0
- package/dist/components/p-c1d56d6b.js +43 -0
- package/dist/components/p-c1d56d6b.js.map +1 -0
- package/dist/components/p-c9e58781.js +89 -0
- package/dist/components/p-c9e58781.js.map +1 -0
- package/dist/components/p-cdf22a0b.js +69 -0
- package/dist/components/p-cdf22a0b.js.map +1 -0
- package/dist/components/p-d3b88201.js +354 -0
- package/dist/components/p-d3b88201.js.map +1 -0
- package/dist/components/p-e6f11335.js +186 -0
- package/dist/components/p-e6f11335.js.map +1 -0
- package/dist/components/p-f07ce1ae.js +64 -0
- package/dist/components/p-f07ce1ae.js.map +1 -0
- package/dist/components/p-f4b8b4e1.js +94 -0
- package/dist/components/p-f4b8b4e1.js.map +1 -0
- package/dist/components/{c-badge2.js → p-f932f64a.js} +24 -23
- package/dist/components/p-f932f64a.js.map +1 -0
- package/dist/csc-ui/csc-ui.esm.js +1 -1
- package/dist/csc-ui/csc-ui.esm.js.map +1 -1
- package/dist/csc-ui/index.esm.js +1 -1
- package/dist/csc-ui/index.esm.js.map +1 -1
- package/dist/csc-ui/p-020643f8.entry.js +2 -0
- package/dist/csc-ui/p-020643f8.entry.js.map +1 -0
- package/dist/csc-ui/p-06e13288.entry.js +2 -0
- package/dist/csc-ui/p-06e13288.entry.js.map +1 -0
- package/dist/csc-ui/p-10ef7ca7.entry.js +2 -0
- package/dist/csc-ui/p-10ef7ca7.entry.js.map +1 -0
- package/dist/csc-ui/{p-ce88995f.entry.js → p-1eae6514.entry.js} +2 -2
- package/dist/csc-ui/p-1eae6514.entry.js.map +1 -0
- package/dist/csc-ui/p-23b2eb59.entry.js +2 -0
- package/dist/csc-ui/p-23b2eb59.entry.js.map +1 -0
- package/dist/csc-ui/p-26526434.entry.js +2 -0
- package/dist/csc-ui/p-26526434.entry.js.map +1 -0
- package/dist/csc-ui/p-307f3fbc.entry.js +2 -0
- package/dist/csc-ui/p-307f3fbc.entry.js.map +1 -0
- package/dist/csc-ui/p-32fa684b.entry.js +2 -0
- package/dist/csc-ui/p-32fa684b.entry.js.map +1 -0
- package/dist/csc-ui/p-3cade358.entry.js +2 -0
- package/dist/csc-ui/p-3cade358.entry.js.map +1 -0
- package/dist/csc-ui/p-47f76af6.entry.js +2 -0
- package/dist/csc-ui/p-47f76af6.entry.js.map +1 -0
- package/dist/csc-ui/p-4a1cf8bf.entry.js +2 -0
- package/dist/csc-ui/p-4a1cf8bf.entry.js.map +1 -0
- package/dist/csc-ui/{p-231bc97b.entry.js → p-68b100e9.entry.js} +2 -2
- package/dist/csc-ui/p-68b100e9.entry.js.map +1 -0
- package/dist/csc-ui/{p-aa307b78.entry.js → p-6ec4e25e.entry.js} +2 -2
- package/dist/csc-ui/p-6ec4e25e.entry.js.map +1 -0
- package/dist/csc-ui/{p-9dc5b5ac.entry.js → p-752f983d.entry.js} +2 -2
- package/dist/csc-ui/p-752f983d.entry.js.map +1 -0
- package/dist/csc-ui/{p-2a104276.entry.js → p-75ef652d.entry.js} +2 -2
- package/dist/csc-ui/p-75ef652d.entry.js.map +1 -0
- package/dist/csc-ui/p-7e0e5d26.entry.js +2 -0
- package/dist/csc-ui/p-7e0e5d26.entry.js.map +1 -0
- package/dist/csc-ui/p-8315aa49.entry.js +2 -0
- package/dist/csc-ui/p-8315aa49.entry.js.map +1 -0
- package/dist/csc-ui/p-87b41fa4.entry.js +2 -0
- package/dist/csc-ui/p-87b41fa4.entry.js.map +1 -0
- package/dist/csc-ui/{p-fafac729.js → p-8f729e27.js} +1 -1
- package/dist/csc-ui/{p-fafac729.js.map → p-8f729e27.js.map} +1 -1
- package/dist/csc-ui/p-900e4f04.entry.js +2 -0
- package/dist/csc-ui/p-900e4f04.entry.js.map +1 -0
- package/dist/csc-ui/{p-18a7f4e9.entry.js → p-9ce6cc51.entry.js} +2 -2
- package/dist/csc-ui/p-9ce6cc51.entry.js.map +1 -0
- package/dist/csc-ui/p-a3e3248c.js +3 -0
- package/dist/csc-ui/p-a3e3248c.js.map +1 -0
- package/dist/csc-ui/p-a84641e0.entry.js +2 -0
- package/dist/csc-ui/p-a84641e0.entry.js.map +1 -0
- package/dist/csc-ui/{p-da7c0754.entry.js → p-ac5da8d1.entry.js} +2 -2
- package/dist/csc-ui/p-ac5da8d1.entry.js.map +1 -0
- package/dist/csc-ui/p-acce6632.entry.js +2 -0
- package/dist/csc-ui/p-acce6632.entry.js.map +1 -0
- package/dist/csc-ui/{p-52a3f4f8.entry.js → p-af181b9b.entry.js} +2 -2
- package/dist/csc-ui/p-af181b9b.entry.js.map +1 -0
- package/dist/csc-ui/{p-29b07261.entry.js → p-b09292de.entry.js} +2 -2
- package/dist/csc-ui/p-b09292de.entry.js.map +1 -0
- package/dist/csc-ui/p-b1ab606b.entry.js +2 -0
- package/dist/csc-ui/p-b1ab606b.entry.js.map +1 -0
- package/dist/csc-ui/{p-0b41f178.entry.js → p-b543f80e.entry.js} +2 -2
- package/dist/csc-ui/p-b543f80e.entry.js.map +1 -0
- package/dist/csc-ui/{p-61e0e61f.entry.js → p-bb62b147.entry.js} +2 -2
- package/dist/csc-ui/p-bb62b147.entry.js.map +1 -0
- package/dist/csc-ui/{p-0394ebc7.entry.js → p-bcb87140.entry.js} +2 -2
- package/dist/csc-ui/p-bcb87140.entry.js.map +1 -0
- package/dist/csc-ui/p-c222df06.entry.js +2 -0
- package/dist/csc-ui/p-c222df06.entry.js.map +1 -0
- package/dist/csc-ui/{p-886f0d1d.entry.js → p-c80fa43f.entry.js} +2 -2
- package/dist/csc-ui/p-c80fa43f.entry.js.map +1 -0
- package/dist/csc-ui/p-d32e42fe.js.map +1 -1
- package/dist/csc-ui/p-d67b56d8.entry.js +2 -0
- package/dist/csc-ui/p-d67b56d8.entry.js.map +1 -0
- package/dist/csc-ui/p-e0e78a0d.entry.js +2 -0
- package/dist/csc-ui/p-e0e78a0d.entry.js.map +1 -0
- package/dist/csc-ui/p-e1255160.js +2 -0
- package/dist/csc-ui/p-e1255160.js.map +1 -0
- package/dist/csc-ui/{p-1aeab024.entry.js → p-e2a40b86.entry.js} +2 -2
- package/dist/csc-ui/p-e2a40b86.entry.js.map +1 -0
- package/dist/csc-ui/p-eafe038d.entry.js +2 -0
- package/dist/csc-ui/p-eafe038d.entry.js.map +1 -0
- package/dist/csc-ui/{p-0e3cf775.entry.js → p-f164b124.entry.js} +2 -2
- package/dist/csc-ui/p-f164b124.entry.js.map +1 -0
- package/dist/esm/app-globals-0f993ce5.js +5 -0
- package/dist/esm/app-globals-0f993ce5.js.map +1 -0
- package/dist/esm/c-accordion-item.entry.js +108 -107
- package/dist/esm/c-accordion-item.entry.js.map +1 -1
- package/dist/esm/c-accordion.entry.js +53 -52
- package/dist/esm/c-accordion.entry.js.map +1 -1
- package/dist/esm/c-alert.entry.js +17 -16
- package/dist/esm/c-alert.entry.js.map +1 -1
- package/dist/esm/c-autocomplete_34.entry.js +2437 -2398
- package/dist/esm/c-autocomplete_34.entry.js.map +1 -1
- package/dist/esm/c-data-table.entry.js +678 -677
- package/dist/esm/c-data-table.entry.js.map +1 -1
- package/dist/esm/c-link.entry.js +19 -18
- package/dist/esm/c-link.entry.js.map +1 -1
- package/dist/esm/c-list-item-title.entry.js +14 -13
- package/dist/esm/c-list-item-title.entry.js.map +1 -1
- package/dist/esm/c-list-item.entry.js +70 -69
- package/dist/esm/c-list-item.entry.js.map +1 -1
- package/dist/esm/c-list.entry.js +33 -32
- package/dist/esm/c-list.entry.js.map +1 -1
- package/dist/esm/c-login-button.entry.js +13 -12
- package/dist/esm/c-login-button.entry.js.map +1 -1
- package/dist/esm/c-login-buttons.entry.js +9 -8
- package/dist/esm/c-login-buttons.entry.js.map +1 -1
- package/dist/esm/c-login-card-actions.entry.js +9 -9
- package/dist/esm/c-login-card-actions.entry.js.map +1 -1
- package/dist/esm/c-login-card-content.entry.js +9 -8
- package/dist/esm/c-login-card-content.entry.js.map +1 -1
- package/dist/esm/c-login-card-title.entry.js +9 -8
- package/dist/esm/c-login-card-title.entry.js.map +1 -1
- package/dist/esm/c-login-card.entry.js +54 -53
- package/dist/esm/c-login-card.entry.js.map +1 -1
- package/dist/esm/c-menu_2.entry.js +317 -315
- package/dist/esm/c-menu_2.entry.js.map +1 -1
- package/dist/esm/c-modal.entry.js +109 -108
- package/dist/esm/c-modal.entry.js.map +1 -1
- package/dist/esm/c-option-value.entry.js +9 -8
- package/dist/esm/c-option-value.entry.js.map +1 -1
- package/dist/esm/c-pagination.entry.js +214 -213
- package/dist/esm/c-pagination.entry.js.map +1 -1
- package/dist/esm/c-progress-bar.entry.js +46 -45
- package/dist/esm/c-progress-bar.entry.js.map +1 -1
- package/dist/esm/c-row.entry.js +23 -22
- package/dist/esm/c-row.entry.js.map +1 -1
- package/dist/esm/c-slider.entry.js +87 -86
- package/dist/esm/c-slider.entry.js.map +1 -1
- package/dist/esm/c-status.entry.js +11 -10
- package/dist/esm/c-status.entry.js.map +1 -1
- package/dist/esm/c-step.entry.js +15 -14
- package/dist/esm/c-step.entry.js.map +1 -1
- package/dist/esm/c-steps.entry.js +62 -61
- package/dist/esm/c-steps.entry.js.map +1 -1
- package/dist/esm/c-swiper-tab.entry.js +35 -34
- package/dist/esm/c-swiper-tab.entry.js.map +1 -1
- package/dist/esm/c-swiper.entry.js +119 -118
- package/dist/esm/c-swiper.entry.js.map +1 -1
- package/dist/esm/c-tab-buttons.entry.js +118 -117
- package/dist/esm/c-tab-buttons.entry.js.map +1 -1
- package/dist/esm/c-tab-item.entry.js +29 -28
- package/dist/esm/c-tab-item.entry.js.map +1 -1
- package/dist/esm/c-tab-items.entry.js +67 -66
- package/dist/esm/c-tab-items.entry.js.map +1 -1
- package/dist/esm/c-tab.entry.js +46 -45
- package/dist/esm/c-tab.entry.js.map +1 -1
- package/dist/esm/c-tabs.entry.js +394 -393
- package/dist/esm/c-tabs.entry.js.map +1 -1
- package/dist/esm/c-tag.entry.js +34 -33
- package/dist/esm/c-tag.entry.js.map +1 -1
- package/dist/esm/c-tags.entry.js +18 -17
- package/dist/esm/c-tags.entry.js.map +1 -1
- package/dist/esm/c-toast.entry.js +60 -59
- package/dist/esm/c-toast.entry.js.map +1 -1
- package/dist/esm/c-toasts.entry.js +64 -63
- package/dist/esm/c-toasts.entry.js.map +1 -1
- package/dist/esm/csc-ui.js +14 -12
- package/dist/esm/csc-ui.js.map +1 -1
- package/dist/esm/index-28ad175b.js +23 -0
- package/dist/esm/{index-dfaed2a4.js.map → index-28ad175b.js.map} +1 -1
- package/dist/esm/index-5e4179ca.js +1848 -0
- package/dist/esm/index-5e4179ca.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +6 -4
- package/dist/esm/loader.js.map +1 -1
- package/dist/playwright.config.js +40 -40
- package/dist/playwright.config.js.map +1 -1
- package/dist/stencil.config.js +41 -33
- package/dist/stencil.config.js.map +1 -1
- package/dist/types/components/c-accordion/c-accordion.d.ts +15 -15
- package/dist/types/components/c-accordion-item/c-accordion-item.d.ts +27 -27
- package/dist/types/components/c-alert/c-alert.d.ts +3 -3
- package/dist/types/components/c-autocomplete/c-autocomplete.d.ts +60 -60
- package/dist/types/components/c-badge/c-badge.d.ts +1 -1
- package/dist/types/components/c-button/c-button.d.ts +33 -33
- package/dist/types/components/c-card/c-card.d.ts +10 -10
- package/dist/types/components/c-card-actions/c-card-actions.d.ts +3 -3
- package/dist/types/components/c-card-content/c-card-content.d.ts +1 -1
- package/dist/types/components/c-card-title/c-card-title.d.ts +12 -12
- package/dist/types/components/c-checkbox/c-checkbox.d.ts +26 -26
- package/dist/types/components/c-csc-logo/c-csc-logo.d.ts +2 -2
- package/dist/types/components/c-data-table/c-data-table.d.ts +109 -109
- package/dist/types/components/c-dropdown/c-dropdown.d.ts +52 -52
- package/dist/types/components/c-icon/c-icon.d.ts +7 -7
- package/dist/types/components/c-icon-button/c-icon-button.d.ts +16 -16
- package/dist/types/components/c-input/c-input.d.ts +60 -60
- package/dist/types/components/c-link/c-link.d.ts +5 -5
- package/dist/types/components/c-list/c-list.d.ts +6 -6
- package/dist/types/components/c-list-item/c-list-item.d.ts +14 -14
- package/dist/types/components/c-list-item-title/c-list-item-title.d.ts +2 -2
- package/dist/types/components/c-loader/c-loader.d.ts +8 -8
- package/dist/types/components/c-login-button/c-login-button.d.ts +4 -4
- package/dist/types/components/c-login-buttons/c-login-buttons.d.ts +1 -1
- package/dist/types/components/c-login-card/c-login-card.d.ts +16 -16
- package/dist/types/components/c-login-card-actions/c-login-card-actions.d.ts +3 -3
- package/dist/types/components/c-login-card-content/c-login-card-content.d.ts +1 -1
- package/dist/types/components/c-login-card-title/c-login-card-title.d.ts +1 -1
- package/dist/types/components/c-main/c-main.d.ts +2 -2
- package/dist/types/components/c-menu/c-menu.d.ts +23 -23
- package/dist/types/components/c-menu-items/c-menu-items.d.ts +39 -39
- package/dist/types/components/c-message/c-message.d.ts +16 -16
- package/dist/types/components/c-modal/c-modal.d.ts +22 -22
- package/dist/types/components/c-navigation-button/c-navigation-button.d.ts +1 -1
- package/dist/types/components/c-option/c-option.d.ts +5 -5
- package/dist/types/components/c-option-value/c-option-value.d.ts +1 -1
- package/dist/types/components/c-otp-input/c-otp-input.d.ts +32 -32
- package/dist/types/components/c-page/c-page.d.ts +6 -6
- package/dist/types/components/c-pagination/c-pagination.d.ts +34 -34
- package/dist/types/components/c-progress-bar/c-progress-bar.d.ts +7 -7
- package/dist/types/components/c-radio/c-radio.d.ts +4 -4
- package/dist/types/components/c-radio-group/c-radio-group.d.ts +27 -27
- package/dist/types/components/c-ripple/c-ripple.d.ts +5 -5
- package/dist/types/components/c-row/c-row.d.ts +7 -7
- package/dist/types/components/c-select/c-select.d.ts +65 -63
- package/dist/types/components/c-side-navigation/c-side-navigation.d.ts +13 -13
- package/dist/types/components/c-side-navigation-item/c-side-navigation-item.d.ts +18 -18
- package/dist/types/components/c-side-navigation-title/c-side-navigation-title.d.ts +1 -1
- package/dist/types/components/c-slider/c-slider.d.ts +29 -29
- package/dist/types/components/c-spacer/c-spacer.d.ts +1 -1
- package/dist/types/components/c-spinner/c-spinner.d.ts +4 -4
- package/dist/types/components/c-status/c-status.d.ts +2 -2
- package/dist/types/components/c-step/c-step.d.ts +3 -3
- package/dist/types/components/c-steps/c-steps.d.ts +13 -13
- package/dist/types/components/c-sub-navigation-item/c-sub-navigation-item.d.ts +8 -8
- package/dist/types/components/c-swiper/c-swiper.d.ts +22 -22
- package/dist/types/components/c-swiper-tab/c-swiper-tab.d.ts +13 -13
- package/dist/types/components/c-switch/c-switch.d.ts +16 -16
- package/dist/types/components/c-tab/c-tab.d.ts +16 -16
- package/dist/types/components/c-tab-buttons/c-tab-buttons.d.ts +20 -20
- package/dist/types/components/c-tab-item/c-tab-item.d.ts +9 -9
- package/dist/types/components/c-tab-items/c-tab-items.d.ts +16 -16
- package/dist/types/components/c-table/c-table.d.ts +11 -11
- package/dist/types/components/c-tabs/c-tabs.d.ts +62 -62
- package/dist/types/components/c-tag/c-tag.d.ts +10 -10
- package/dist/types/components/c-tags/c-tags.d.ts +4 -4
- package/dist/types/components/c-text-field/c-text-field.d.ts +47 -47
- package/dist/types/components/c-toast/c-toast.d.ts +15 -15
- package/dist/types/components/c-toasts/c-toasts.d.ts +14 -14
- package/dist/types/components/c-toolbar/c-toolbar.d.ts +1 -1
- package/dist/types/components.d.ts +8 -8
- package/dist/types/stencil-public-runtime.d.ts +15 -10
- package/dist/types/types/index.d.ts +99 -99
- package/loader/cdn.js +1 -3
- package/loader/index.cjs.js +1 -3
- package/loader/index.d.ts +3 -0
- package/loader/index.es2017.js +1 -3
- package/loader/index.js +1 -3
- package/package.json +16 -12
- package/vscode-data.json +9 -9
- package/dist/cjs/index-72dca436.js +0 -23
- package/dist/cjs/index-91ba22ab.js +0 -2603
- package/dist/cjs/index-91ba22ab.js.map +0 -1
- package/dist/collection/components/c-accordion/test/c-accordion.e2e.js +0 -140
- package/dist/collection/components/c-accordion/test/c-accordion.e2e.js.map +0 -1
- package/dist/collection/components/c-accordion/test/c-accordion.spec.js +0 -72
- package/dist/collection/components/c-accordion/test/c-accordion.spec.js.map +0 -1
- package/dist/collection/components/c-alert/test/c-alert.spec.js +0 -54
- package/dist/collection/components/c-alert/test/c-alert.spec.js.map +0 -1
- package/dist/collection/components/c-autocomplete/test/c-autocomplete.e2e.js +0 -35
- package/dist/collection/components/c-autocomplete/test/c-autocomplete.e2e.js.map +0 -1
- package/dist/collection/components/c-badge/test/c-badge.e2e.js +0 -10
- package/dist/collection/components/c-badge/test/c-badge.e2e.js.map +0 -1
- package/dist/collection/components/c-badge/test/c-badge.spec.js +0 -18
- package/dist/collection/components/c-badge/test/c-badge.spec.js.map +0 -1
- package/dist/collection/components/c-button/test/c-button.spec.js +0 -207
- package/dist/collection/components/c-button/test/c-button.spec.js.map +0 -1
- package/dist/collection/components/c-card/test/c-card.e2e.js +0 -17
- package/dist/collection/components/c-card/test/c-card.e2e.js.map +0 -1
- package/dist/collection/components/c-card/test/c-card.spec.js +0 -142
- package/dist/collection/components/c-card/test/c-card.spec.js.map +0 -1
- package/dist/collection/components/c-card-actions/test/c-card-actions.spec.js +0 -115
- package/dist/collection/components/c-card-actions/test/c-card-actions.spec.js.map +0 -1
- package/dist/collection/components/c-checkbox/test/c-checkbox.e2e.js +0 -60
- package/dist/collection/components/c-checkbox/test/c-checkbox.e2e.js.map +0 -1
- package/dist/collection/components/c-checkbox/test/c-checkbox.spec.js +0 -40
- package/dist/collection/components/c-checkbox/test/c-checkbox.spec.js.map +0 -1
- package/dist/collection/components/c-data-table/test/c-data-table.e2e.js +0 -125
- package/dist/collection/components/c-data-table/test/c-data-table.e2e.js.map +0 -1
- package/dist/collection/components/c-data-table/test/c-data-table.spec.js +0 -107
- package/dist/collection/components/c-data-table/test/c-data-table.spec.js.map +0 -1
- package/dist/collection/components/c-icon/test/c-icon.spec.js +0 -12
- package/dist/collection/components/c-icon/test/c-icon.spec.js.map +0 -1
- package/dist/collection/components/c-icon-button/test/c-icon-button.spec.js +0 -82
- package/dist/collection/components/c-icon-button/test/c-icon-button.spec.js.map +0 -1
- package/dist/collection/components/c-link/test/c-link.spec.js +0 -75
- package/dist/collection/components/c-link/test/c-link.spec.js.map +0 -1
- package/dist/collection/components/c-loader/test/c-loader.e2e.js +0 -16
- package/dist/collection/components/c-loader/test/c-loader.e2e.js.map +0 -1
- package/dist/collection/components/c-loader/test/c-loader.spec.js +0 -28
- package/dist/collection/components/c-loader/test/c-loader.spec.js.map +0 -1
- package/dist/collection/components/c-login-card/test/c-login-card.spec.js +0 -151
- package/dist/collection/components/c-login-card/test/c-login-card.spec.js.map +0 -1
- package/dist/collection/components/c-main/test/c-main.spec.js +0 -19
- package/dist/collection/components/c-main/test/c-main.spec.js.map +0 -1
- package/dist/collection/components/c-menu/test/c-menu.spec.js +0 -46
- package/dist/collection/components/c-menu/test/c-menu.spec.js.map +0 -1
- package/dist/collection/components/c-modal/test/c-modal.spec.js +0 -75
- package/dist/collection/components/c-modal/test/c-modal.spec.js.map +0 -1
- package/dist/collection/components/c-otp-input/test/c-otp-input.e2e.js +0 -10
- package/dist/collection/components/c-otp-input/test/c-otp-input.e2e.js.map +0 -1
- package/dist/collection/components/c-otp-input/test/c-otp-input.spec.js +0 -18
- package/dist/collection/components/c-otp-input/test/c-otp-input.spec.js.map +0 -1
- package/dist/collection/components/c-pagination/test/c-pagination.e2e.js +0 -47
- package/dist/collection/components/c-pagination/test/c-pagination.e2e.js.map +0 -1
- package/dist/collection/components/c-progress-bar/test/c-progress-bar.spec.js +0 -54
- package/dist/collection/components/c-progress-bar/test/c-progress-bar.spec.js.map +0 -1
- package/dist/collection/components/c-radio-group/test/c-radio-group.e2e.js +0 -39
- package/dist/collection/components/c-radio-group/test/c-radio-group.e2e.js.map +0 -1
- package/dist/collection/components/c-radio-group/test/c-radio-group.spec.js +0 -28
- package/dist/collection/components/c-radio-group/test/c-radio-group.spec.js.map +0 -1
- package/dist/collection/components/c-row/test/c-row.spec.js +0 -137
- package/dist/collection/components/c-row/test/c-row.spec.js.map +0 -1
- package/dist/collection/components/c-select/test/c-select.e2e.js +0 -66
- package/dist/collection/components/c-select/test/c-select.e2e.js.map +0 -1
- package/dist/collection/components/c-select/test/c-select.spec.js +0 -38
- package/dist/collection/components/c-select/test/c-select.spec.js.map +0 -1
- package/dist/collection/components/c-side-navigation/test/c-side-navigation.spec.js +0 -21
- package/dist/collection/components/c-side-navigation/test/c-side-navigation.spec.js.map +0 -1
- package/dist/collection/components/c-spacer/test/c-spacer.spec.js +0 -12
- package/dist/collection/components/c-spacer/test/c-spacer.spec.js.map +0 -1
- package/dist/collection/components/c-status/test/c-status.spec.js +0 -40
- package/dist/collection/components/c-status/test/c-status.spec.js.map +0 -1
- package/dist/collection/components/c-steps/test/c-steps.e2e.js +0 -35
- package/dist/collection/components/c-steps/test/c-steps.e2e.js.map +0 -1
- package/dist/collection/components/c-swiper/test/c-swiper.e2e.js +0 -83
- package/dist/collection/components/c-swiper/test/c-swiper.e2e.js.map +0 -1
- package/dist/collection/components/c-switch/test/c-switch.e2e.js +0 -51
- package/dist/collection/components/c-switch/test/c-switch.e2e.js.map +0 -1
- package/dist/collection/components/c-switch/test/c-switch.spec.js +0 -40
- package/dist/collection/components/c-switch/test/c-switch.spec.js.map +0 -1
- package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.e2e.js +0 -91
- package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.e2e.js.map +0 -1
- package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.spec.js +0 -42
- package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.spec.js.map +0 -1
- package/dist/collection/components/c-tabs/test/c-tabs.e2e.js +0 -74
- package/dist/collection/components/c-tabs/test/c-tabs.e2e.js.map +0 -1
- package/dist/collection/components/c-tabs/test/c-tabs.spec.js +0 -85
- package/dist/collection/components/c-tabs/test/c-tabs.spec.js.map +0 -1
- package/dist/collection/components/c-tag/test/c-tag.spec.js +0 -50
- package/dist/collection/components/c-tag/test/c-tag.spec.js.map +0 -1
- package/dist/collection/components/c-text-field/test/c-text-field.e2e.js +0 -12
- package/dist/collection/components/c-text-field/test/c-text-field.e2e.js.map +0 -1
- package/dist/collection/components/c-text-field/test/c-text-field.spec.js +0 -33
- package/dist/collection/components/c-text-field/test/c-text-field.spec.js.map +0 -1
- package/dist/collection/components/c-toasts/test/c-toasts.spec.js +0 -61
- package/dist/collection/components/c-toasts/test/c-toasts.spec.js.map +0 -1
- package/dist/collection/components/c-toolbar/test/c-toolbar.spec.js +0 -12
- package/dist/collection/components/c-toolbar/test/c-toolbar.spec.js.map +0 -1
- package/dist/collection/dist/styles/.gitkeep +0 -0
- package/dist/collection/dist/styles/css/theme.css +0 -102
- package/dist/collection/dist/styles/scss/_theme.scss +0 -100
- package/dist/collection/dist/styles/tailwind/theme.js +0 -120
- package/dist/components/c-badge2.js.map +0 -1
- package/dist/components/c-card-actions2.js +0 -42
- package/dist/components/c-card-actions2.js.map +0 -1
- package/dist/components/c-checkbox2.js +0 -119
- package/dist/components/c-checkbox2.js.map +0 -1
- package/dist/components/c-dropdown2.js +0 -353
- package/dist/components/c-dropdown2.js.map +0 -1
- package/dist/components/c-icon-button2.js.map +0 -1
- package/dist/components/c-icon2.js +0 -46
- package/dist/components/c-icon2.js.map +0 -1
- package/dist/components/c-input2.js +0 -292
- package/dist/components/c-input2.js.map +0 -1
- package/dist/components/c-loader2.js +0 -63
- package/dist/components/c-loader2.js.map +0 -1
- package/dist/components/c-menu-items2.js +0 -237
- package/dist/components/c-menu2.js +0 -185
- package/dist/components/c-menu2.js.map +0 -1
- package/dist/components/c-message2.js +0 -88
- package/dist/components/c-message2.js.map +0 -1
- package/dist/components/c-pagination2.js +0 -294
- package/dist/components/c-pagination2.js.map +0 -1
- package/dist/components/c-ripple2.js +0 -68
- package/dist/components/c-ripple2.js.map +0 -1
- package/dist/components/c-spacer2.js +0 -32
- package/dist/components/c-spacer2.js.map +0 -1
- package/dist/components/c-spinner2.js +0 -49
- package/dist/components/c-spinner2.js.map +0 -1
- package/dist/components/c-toast2.js +0 -93
- package/dist/components/c-toast2.js.map +0 -1
- package/dist/components/index2.js +0 -23
- package/dist/components/index2.js.map +0 -1
- package/dist/components/mdi.js.map +0 -1
- package/dist/csc-ui/dist/styles/.gitkeep +0 -0
- package/dist/csc-ui/dist/styles/css/theme.css +0 -102
- package/dist/csc-ui/dist/styles/scss/_theme.scss +0 -100
- package/dist/csc-ui/dist/styles/tailwind/theme.js +0 -120
- package/dist/csc-ui/p-0394ebc7.entry.js.map +0 -1
- package/dist/csc-ui/p-0ad7a08a.entry.js +0 -2
- package/dist/csc-ui/p-0ad7a08a.entry.js.map +0 -1
- package/dist/csc-ui/p-0b41f178.entry.js.map +0 -1
- package/dist/csc-ui/p-0e3cf775.entry.js.map +0 -1
- package/dist/csc-ui/p-18a7f4e9.entry.js.map +0 -1
- package/dist/csc-ui/p-1aeab024.entry.js.map +0 -1
- package/dist/csc-ui/p-231bc97b.entry.js.map +0 -1
- package/dist/csc-ui/p-29b07261.entry.js.map +0 -1
- package/dist/csc-ui/p-2a104276.entry.js.map +0 -1
- package/dist/csc-ui/p-33c354c4.entry.js +0 -2
- package/dist/csc-ui/p-33c354c4.entry.js.map +0 -1
- package/dist/csc-ui/p-4dbc9e96.entry.js +0 -2
- package/dist/csc-ui/p-4dbc9e96.entry.js.map +0 -1
- package/dist/csc-ui/p-4f568e1f.entry.js +0 -2
- package/dist/csc-ui/p-4f568e1f.entry.js.map +0 -1
- package/dist/csc-ui/p-52a3f4f8.entry.js.map +0 -1
- package/dist/csc-ui/p-54d44ab9.entry.js +0 -2
- package/dist/csc-ui/p-54d44ab9.entry.js.map +0 -1
- package/dist/csc-ui/p-565ec8e4.js +0 -3
- package/dist/csc-ui/p-565ec8e4.js.map +0 -1
- package/dist/csc-ui/p-5dd84926.entry.js +0 -2
- package/dist/csc-ui/p-5dd84926.entry.js.map +0 -1
- package/dist/csc-ui/p-61e0e61f.entry.js.map +0 -1
- package/dist/csc-ui/p-7a7da729.entry.js +0 -2
- package/dist/csc-ui/p-7a7da729.entry.js.map +0 -1
- package/dist/csc-ui/p-80cdd280.entry.js +0 -2
- package/dist/csc-ui/p-80cdd280.entry.js.map +0 -1
- package/dist/csc-ui/p-886f0d1d.entry.js.map +0 -1
- package/dist/csc-ui/p-908b21bf.entry.js +0 -2
- package/dist/csc-ui/p-908b21bf.entry.js.map +0 -1
- package/dist/csc-ui/p-9dc5b5ac.entry.js.map +0 -1
- package/dist/csc-ui/p-a33ca657.entry.js +0 -2
- package/dist/csc-ui/p-a33ca657.entry.js.map +0 -1
- package/dist/csc-ui/p-aa307b78.entry.js.map +0 -1
- package/dist/csc-ui/p-b8fd106b.entry.js +0 -2
- package/dist/csc-ui/p-b8fd106b.entry.js.map +0 -1
- package/dist/csc-ui/p-bae44625.entry.js +0 -2
- package/dist/csc-ui/p-bae44625.entry.js.map +0 -1
- package/dist/csc-ui/p-c9e04eb5.entry.js +0 -2
- package/dist/csc-ui/p-c9e04eb5.entry.js.map +0 -1
- package/dist/csc-ui/p-cb4bce81.entry.js +0 -2
- package/dist/csc-ui/p-cb4bce81.entry.js.map +0 -1
- package/dist/csc-ui/p-ce88995f.entry.js.map +0 -1
- package/dist/csc-ui/p-da7c0754.entry.js.map +0 -1
- package/dist/csc-ui/p-da7d18c9.entry.js +0 -2
- package/dist/csc-ui/p-da7d18c9.entry.js.map +0 -1
- package/dist/csc-ui/p-e8bd7a76.entry.js +0 -2
- package/dist/csc-ui/p-e8bd7a76.entry.js.map +0 -1
- package/dist/csc-ui/p-e922c869.entry.js +0 -2
- package/dist/csc-ui/p-e922c869.entry.js.map +0 -1
- package/dist/csc-ui/p-e9ec927b.entry.js +0 -2
- package/dist/csc-ui/p-e9ec927b.entry.js.map +0 -1
- package/dist/csc-ui/p-f6ca71df.entry.js +0 -2
- package/dist/csc-ui/p-f6ca71df.entry.js.map +0 -1
- package/dist/csc-ui/p-fadae1ab.entry.js +0 -2
- package/dist/csc-ui/p-fadae1ab.entry.js.map +0 -1
- package/dist/csc-ui/p-fc580f2c.entry.js +0 -2
- package/dist/csc-ui/p-fc580f2c.entry.js.map +0 -1
- package/dist/esm/index-47956d53.js +0 -2573
- package/dist/esm/index-47956d53.js.map +0 -1
- package/dist/esm/index-dfaed2a4.js +0 -23
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/loader/cdn.js +0 -3
- package/dist/loader/index.cjs.js +0 -3
- package/dist/loader/index.d.ts +0 -21
- package/dist/loader/index.es2017.js +0 -3
- package/dist/loader/index.js +0 -4
- package/dist/loader/package.json +0 -11
- package/dist/styles/.gitkeep +0 -0
|
@@ -1,631 +1,634 @@
|
|
|
1
1
|
import { mdiAlert, mdiInformation } from "@mdi/js";
|
|
2
2
|
import { Host, h, } from "@stencil/core";
|
|
3
3
|
export class CDropdown {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
-
this._openedOnTop = false;
|
|
14
|
-
this._hideDetails = false;
|
|
15
|
-
this.itemsPerPage = undefined;
|
|
16
|
-
this.parent = undefined;
|
|
17
|
-
this.items = undefined;
|
|
18
|
-
this.index = undefined;
|
|
19
|
-
this.hostId = undefined;
|
|
20
|
-
this.type = undefined;
|
|
21
|
-
this.itemType = undefined;
|
|
22
|
-
this.renderedList = null;
|
|
23
|
-
this.isOpen = false;
|
|
24
|
-
this.statusText = '';
|
|
25
|
-
}
|
|
26
|
-
optionsWatcher() {
|
|
27
|
-
requestAnimationFrame(() => {
|
|
28
|
-
this.renderedList = this._renderList();
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
async stateWatcher(isOpen) {
|
|
32
|
-
this._originalOverflowValue =
|
|
33
|
-
this._originalOverflowValue ||
|
|
34
|
-
window.getComputedStyle(document.body).overflow;
|
|
35
|
-
if (isOpen) {
|
|
36
|
-
this._handleOpen();
|
|
37
|
-
this._disableScroll();
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
this._enableScroll();
|
|
41
|
-
}
|
|
42
|
-
this.dropdownStateChange.emit(isOpen);
|
|
43
|
-
}
|
|
44
|
-
handleIndexChange(index) {
|
|
45
|
-
requestAnimationFrame(() => {
|
|
46
|
-
var _a;
|
|
47
|
-
this._updateStatusText();
|
|
48
|
-
(_a = this._listItems[index]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
async setStatusText(text) {
|
|
52
|
-
requestAnimationFrame(() => {
|
|
53
|
-
this.statusText = text;
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
async focusItem(index) {
|
|
57
|
-
requestAnimationFrame(() => {
|
|
58
|
-
var _a;
|
|
59
|
-
(_a = this._listItems[index]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
async open() {
|
|
63
|
-
if (this._dialog.open)
|
|
64
|
-
return;
|
|
65
|
-
this._outsideClickFn = this._handleOutsideClick.bind(this);
|
|
66
|
-
this._dialog.addEventListener('click', this._outsideClickFn);
|
|
67
|
-
requestAnimationFrame(() => {
|
|
68
|
-
this.isOpen = true;
|
|
69
|
-
this._positionMenu();
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
async close() {
|
|
73
|
-
this._dialog.close();
|
|
74
|
-
this.isOpen = false;
|
|
75
|
-
this._inputElement.slot = 'default';
|
|
76
|
-
this._inputElement.hideDetails = this._hideDetails;
|
|
77
|
-
this._dummyElement.style.width = '0';
|
|
78
|
-
this._dummyElement.style.display = 'none';
|
|
79
|
-
this._dialog.style.width = '0';
|
|
80
|
-
window.removeEventListener('click', this._outsideClickFn);
|
|
81
|
-
}
|
|
82
|
-
_setIsMobile() {
|
|
83
|
-
this._isMobile = window.matchMedia('only screen and (max-width: 760px)').matches;
|
|
84
|
-
}
|
|
85
|
-
_handleOpen() {
|
|
86
|
-
this._isOpening = true;
|
|
87
|
-
setTimeout(() => {
|
|
88
|
-
this._isOpening = false;
|
|
89
|
-
}, 500);
|
|
90
|
-
}
|
|
91
|
-
_disableScroll() {
|
|
92
|
-
document.body.style.overflow = 'hidden';
|
|
93
|
-
}
|
|
94
|
-
_enableScroll() {
|
|
95
|
-
if (this._originalOverflowValue &&
|
|
96
|
-
this._originalOverflowValue !== 'visible') {
|
|
97
|
-
document.body.style.overflow = this._originalOverflowValue;
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
|
-
document.body.style.removeProperty('overflow');
|
|
101
|
-
}
|
|
102
|
-
componentDidLoad() {
|
|
103
|
-
this._setIsMobile();
|
|
104
|
-
this._hideDetails = this.parent.hideDetails;
|
|
105
|
-
this._inputElement = this.el.querySelector('c-input');
|
|
106
|
-
this._resizeObserver = new ResizeObserver((entries) => {
|
|
107
|
-
if (!this._dialog.open)
|
|
108
|
-
return;
|
|
109
|
-
requestAnimationFrame(() => {
|
|
110
|
-
if (!Array.isArray(entries) || !entries.length || this._isOpening)
|
|
111
|
-
return;
|
|
112
|
-
this._setIsMobile();
|
|
113
|
-
this.close();
|
|
114
|
-
});
|
|
115
|
-
});
|
|
116
|
-
this._resizeObserver.observe(window.document.body);
|
|
117
|
-
requestAnimationFrame(() => {
|
|
118
|
-
this.renderedList = this._renderList();
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
async selectItem(index) {
|
|
122
|
-
const item = this._listItems[index];
|
|
123
|
-
if (item.classList.contains('disabled')) {
|
|
124
|
-
return true;
|
|
125
|
-
}
|
|
126
|
-
this._listItems[index].click();
|
|
127
|
-
return false;
|
|
128
|
-
}
|
|
129
|
-
async updateList() {
|
|
130
|
-
requestAnimationFrame(() => {
|
|
131
|
-
this.renderedList = this._renderList();
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
_handleOutsideClick() {
|
|
135
|
-
if (!this.isOpen)
|
|
136
|
-
return;
|
|
137
|
-
this.close();
|
|
138
|
-
}
|
|
139
|
-
_highlightMatchingText(value) {
|
|
140
|
-
const { query } = this.parent;
|
|
141
|
-
if (this.parent.tagName === 'C-SELECT' || query === '')
|
|
142
|
-
return value;
|
|
143
|
-
const regex = new RegExp(query, 'gi');
|
|
144
|
-
const highlighted = value
|
|
145
|
-
.replace(/(<([^>]+)>)/gi, '')
|
|
146
|
-
.replace(regex, (match) => `<mark>${match}</mark>`);
|
|
147
|
-
return highlighted;
|
|
148
|
-
}
|
|
149
|
-
_getParentPosition() {
|
|
150
|
-
return this.parent.shadowRoot
|
|
151
|
-
.querySelector('.c-input__slot')
|
|
152
|
-
.getBoundingClientRect();
|
|
153
|
-
}
|
|
154
|
-
_positionMenu() {
|
|
155
|
-
const { innerWidth, innerHeight } = window;
|
|
156
|
-
this._dialog.style.width = 'auto';
|
|
157
|
-
this._dialog.style.opacity = '0';
|
|
158
|
-
this._dialog.showModal();
|
|
159
|
-
requestAnimationFrame(() => {
|
|
160
|
-
let inputSlot = 'input-top';
|
|
161
|
-
const { top: parentTop, width } = this._getParentPosition();
|
|
162
|
-
const inputSize = this.el.getBoundingClientRect();
|
|
163
|
-
this._inputSize = {
|
|
164
|
-
height: inputSize.height,
|
|
165
|
-
width: inputSize.width,
|
|
166
|
-
};
|
|
167
|
-
if (!this._isMobile) {
|
|
168
|
-
this._dialog.style.width = `${width}px`;
|
|
169
|
-
this._dialog.style.top = `${inputSize.top}px`;
|
|
170
|
-
this._dialog.style.bottom = 'auto';
|
|
171
|
-
this._dialog.style.left = `${inputSize.left}px`;
|
|
172
|
-
const { bottom, right, height } = this._dialog.getBoundingClientRect();
|
|
173
|
-
const isInView = {
|
|
174
|
-
x: right < innerWidth,
|
|
175
|
-
y: bottom < innerHeight,
|
|
4
|
+
constructor() {
|
|
5
|
+
this._debounce = null;
|
|
6
|
+
this._isMobile = false;
|
|
7
|
+
this._listItems = [];
|
|
8
|
+
this._isOpening = false;
|
|
9
|
+
this._inputSize = {
|
|
10
|
+
height: 0,
|
|
11
|
+
width: 0,
|
|
176
12
|
};
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
13
|
+
this._openedOnTop = false;
|
|
14
|
+
this._hideDetails = false;
|
|
15
|
+
this.itemsPerPage = undefined;
|
|
16
|
+
this.parent = undefined;
|
|
17
|
+
this.items = undefined;
|
|
18
|
+
this.index = undefined;
|
|
19
|
+
this.hostId = undefined;
|
|
20
|
+
this.type = undefined;
|
|
21
|
+
this.dropdownItemType = undefined;
|
|
22
|
+
this.renderedList = null;
|
|
23
|
+
this.isOpen = false;
|
|
24
|
+
this.statusText = '';
|
|
25
|
+
}
|
|
26
|
+
optionsWatcher() {
|
|
27
|
+
requestAnimationFrame(() => {
|
|
28
|
+
this.renderedList = this._renderList();
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
async stateWatcher(isOpen) {
|
|
32
|
+
this._originalOverflowValue =
|
|
33
|
+
this._originalOverflowValue ||
|
|
34
|
+
window.getComputedStyle(document.body).overflow;
|
|
35
|
+
if (isOpen) {
|
|
36
|
+
this._handleOpen();
|
|
37
|
+
this._disableScroll();
|
|
180
38
|
}
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
this._inputElement.hideDetails = true;
|
|
184
|
-
inputSlot = 'input-bottom';
|
|
185
|
-
this._dialog.style.top = 'auto';
|
|
186
|
-
this._dialog.style.bottom = `${innerHeight - inputSize.top - 44}px`;
|
|
39
|
+
else {
|
|
40
|
+
this._enableScroll();
|
|
187
41
|
}
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
.parent;
|
|
211
|
-
if (!query || loading)
|
|
212
|
-
return;
|
|
213
|
-
return (h("li", null, h("c-icon", { path: mdiAlert, size: 18, color: "var(--c-warning-600)" }), noMatchingItemsMessage));
|
|
214
|
-
}
|
|
215
|
-
_renderList() {
|
|
216
|
-
return this.itemType === 'option'
|
|
217
|
-
? this._renderOptionsList()
|
|
218
|
-
: this._renderItemsList();
|
|
219
|
-
}
|
|
220
|
-
_renderOptionsList() {
|
|
221
|
-
if (!this.items.length)
|
|
222
|
-
return this._minimumQueryItem() || this._emptyItem();
|
|
223
|
-
const options = Array.from(this.items);
|
|
224
|
-
this._listItems.length = 0;
|
|
225
|
-
return options.map((option, index) => {
|
|
226
|
-
const optionValue = option.querySelector('c-option-value');
|
|
227
|
-
if (optionValue) {
|
|
228
|
-
optionValue.innerHTML = this._highlightMatchingText(optionValue.textContent);
|
|
229
|
-
}
|
|
230
|
-
return (h("li", { ref: (el) => this._listItems.push(el), id: `${this.hostId}-option-${option.value}`, tabindex: "-1", role: "option", "aria-set-size": this.items.length.toString(), "aria-pos-in-set": (index + 1).toString(), "aria-selected": (!!option.selected).toString(), class: { disabled: !!option.disabled }, "data-name": option.name, onClick: (event) => {
|
|
231
|
-
if (option.disabled) {
|
|
232
|
-
event.preventDefault();
|
|
42
|
+
this.dropdownStateChange.emit(isOpen);
|
|
43
|
+
}
|
|
44
|
+
handleIndexChange(index) {
|
|
45
|
+
requestAnimationFrame(() => {
|
|
46
|
+
var _a;
|
|
47
|
+
this._updateStatusText();
|
|
48
|
+
(_a = this._listItems[index]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
async setStatusText(text) {
|
|
52
|
+
requestAnimationFrame(() => {
|
|
53
|
+
this.statusText = text;
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
async focusItem(index) {
|
|
57
|
+
requestAnimationFrame(() => {
|
|
58
|
+
var _a;
|
|
59
|
+
(_a = this._listItems[index]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
async open() {
|
|
63
|
+
if (this._dialog.open)
|
|
233
64
|
return;
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
65
|
+
this._outsideClickFn = this._handleOutsideClick.bind(this);
|
|
66
|
+
this._dialog.addEventListener('click', this._outsideClickFn);
|
|
67
|
+
requestAnimationFrame(() => {
|
|
68
|
+
this.isOpen = true;
|
|
69
|
+
this._positionMenu();
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
async close() {
|
|
73
|
+
this._dialog.close();
|
|
74
|
+
this.isOpen = false;
|
|
75
|
+
this._inputElement.slot = 'default';
|
|
76
|
+
this._inputElement.hideDetails = this._hideDetails;
|
|
77
|
+
this._dummyElement.style.width = '0';
|
|
78
|
+
this._dummyElement.style.display = 'none';
|
|
79
|
+
this._dialog.style.width = '0';
|
|
80
|
+
window.removeEventListener('click', this._outsideClickFn);
|
|
81
|
+
}
|
|
82
|
+
_setIsMobile() {
|
|
83
|
+
this._isMobile = window.matchMedia('only screen and (max-width: 760px)').matches;
|
|
84
|
+
}
|
|
85
|
+
_handleOpen() {
|
|
86
|
+
this._isOpening = true;
|
|
87
|
+
setTimeout(() => {
|
|
88
|
+
this._isOpening = false;
|
|
89
|
+
}, 500);
|
|
90
|
+
}
|
|
91
|
+
_disableScroll() {
|
|
92
|
+
document.body.style.overflow = 'hidden';
|
|
93
|
+
}
|
|
94
|
+
_enableScroll() {
|
|
95
|
+
if (this._originalOverflowValue &&
|
|
96
|
+
this._originalOverflowValue !== 'visible') {
|
|
97
|
+
document.body.style.overflow = this._originalOverflowValue;
|
|
247
98
|
return;
|
|
248
|
-
}
|
|
249
|
-
this.selectOption.emit({ name: item.name, value: item.value });
|
|
250
|
-
} }, h("span", { innerHTML: this._highlightMatchingText(item.name) })));
|
|
251
|
-
});
|
|
252
|
-
}
|
|
253
|
-
_updateStatusText() {
|
|
254
|
-
if (this._debounce !== null) {
|
|
255
|
-
clearTimeout(this._debounce);
|
|
256
|
-
this._debounce = null;
|
|
257
|
-
}
|
|
258
|
-
this._debounce = window.setTimeout(() => {
|
|
259
|
-
var _a;
|
|
260
|
-
const selection = this._listItems[this.index];
|
|
261
|
-
const ending = !!this.items.length
|
|
262
|
-
? ', to navigate use up and down arrows'
|
|
263
|
-
: '';
|
|
264
|
-
const total = this._listItems.length;
|
|
265
|
-
const position = this.index + 1;
|
|
266
|
-
const isDisabled = !!((_a = selection === null || selection === void 0 ? void 0 : selection.classList) === null || _a === void 0 ? void 0 : _a.contains('disabled'));
|
|
267
|
-
const beginning = isDisabled ? 'Disabled option - ' : '';
|
|
268
|
-
let selectionText = !!selection
|
|
269
|
-
? `${beginning}${selection.dataset.name} - ${position} of ${total} is highlighted`
|
|
270
|
-
: null;
|
|
271
|
-
if (this.index === null && this.type === 'autocomplete') {
|
|
272
|
-
selectionText = this.items.length
|
|
273
|
-
? `${this.items.length} result${this.items.length !== 1 ? 's' : ''} available`
|
|
274
|
-
: 'No search results available';
|
|
275
|
-
}
|
|
276
|
-
this.statusText = `${selectionText || ending}`;
|
|
277
|
-
this._debounce = null;
|
|
278
|
-
}, 1400);
|
|
279
|
-
}
|
|
280
|
-
render() {
|
|
281
|
-
if (!this._isMobile &&
|
|
282
|
-
this._dialog &&
|
|
283
|
-
this.itemsPerPage &&
|
|
284
|
-
this.itemsPerPage > 0 &&
|
|
285
|
-
this.items.length > this.itemsPerPage) {
|
|
286
|
-
this._dialog.style.maxHeight = 42 * (this.itemsPerPage + 0.5) + 60 + 'px';
|
|
287
|
-
this._list.style.maxHeight = 42 * (this.itemsPerPage + 0.5) + 'px';
|
|
288
|
-
}
|
|
289
|
-
return (h(Host, null, h("slot", { name: "default" }), h("div", { class: "dummy", ref: (el) => (this._dummyElement = el) }), h("dialog", { tabindex: "-1", ref: (el) => (this._dialog = el), class: { mobile: this._isMobile }, onCancel: () => this.close() }, h("div", { onClick: (event) => event.stopPropagation() }, h("div", { id: 'announce-' + this.hostId, class: "visuallyhidden", "aria-live": "polite", "aria-atomic": "true" }, this.statusText), h("div", { class: "input-top-wrapper" }, h("slot", { name: "input-top" })), h("ul", { ref: (el) => (this._list = el), id: `${this.hostId}--results`, role: "listbox", "aria-expanded": this.isOpen.toString(), class: { active: this.isOpen, mobile: this._isMobile }, tabindex: "-1" }, this.renderedList), h("div", { class: {
|
|
290
|
-
active: this._openedOnTop,
|
|
291
|
-
'input-bottom-wrapper': true,
|
|
292
|
-
} }, h("slot", { name: "input-bottom" }))))));
|
|
293
|
-
}
|
|
294
|
-
static get is() { return "c-dropdown"; }
|
|
295
|
-
static get encapsulation() { return "shadow"; }
|
|
296
|
-
static get originalStyleUrls() {
|
|
297
|
-
return {
|
|
298
|
-
"$": ["c-dropdown.scss"]
|
|
299
|
-
};
|
|
300
|
-
}
|
|
301
|
-
static get styleUrls() {
|
|
302
|
-
return {
|
|
303
|
-
"$": ["c-dropdown.css"]
|
|
304
|
-
};
|
|
305
|
-
}
|
|
306
|
-
static get properties() {
|
|
307
|
-
return {
|
|
308
|
-
"itemsPerPage": {
|
|
309
|
-
"type": "number",
|
|
310
|
-
"mutable": false,
|
|
311
|
-
"complexType": {
|
|
312
|
-
"original": "number",
|
|
313
|
-
"resolved": "number",
|
|
314
|
-
"references": {}
|
|
315
|
-
},
|
|
316
|
-
"required": false,
|
|
317
|
-
"optional": false,
|
|
318
|
-
"docs": {
|
|
319
|
-
"tags": [],
|
|
320
|
-
"text": "Items per page before adding scroll"
|
|
321
|
-
},
|
|
322
|
-
"attribute": "items-per-page",
|
|
323
|
-
"reflect": false
|
|
324
|
-
},
|
|
325
|
-
"parent": {
|
|
326
|
-
"type": "unknown",
|
|
327
|
-
"mutable": false,
|
|
328
|
-
"complexType": {
|
|
329
|
-
"original": "HTMLCSelectElement | HTMLCAutocompleteElement",
|
|
330
|
-
"resolved": "HTMLCAutocompleteElement | HTMLCSelectElement",
|
|
331
|
-
"references": {
|
|
332
|
-
"HTMLCSelectElement": {
|
|
333
|
-
"location": "global",
|
|
334
|
-
"id": "global::HTMLCSelectElement"
|
|
335
|
-
},
|
|
336
|
-
"HTMLCAutocompleteElement": {
|
|
337
|
-
"location": "global",
|
|
338
|
-
"id": "global::HTMLCAutocompleteElement"
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
},
|
|
342
|
-
"required": false,
|
|
343
|
-
"optional": false,
|
|
344
|
-
"docs": {
|
|
345
|
-
"tags": [],
|
|
346
|
-
"text": "Dropdown parent"
|
|
347
99
|
}
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
},
|
|
376
|
-
"required": false,
|
|
377
|
-
"optional": false,
|
|
378
|
-
"docs": {
|
|
379
|
-
"tags": [],
|
|
380
|
-
"text": "Dropdown options"
|
|
381
|
-
}
|
|
382
|
-
},
|
|
383
|
-
"index": {
|
|
384
|
-
"type": "number",
|
|
385
|
-
"mutable": false,
|
|
386
|
-
"complexType": {
|
|
387
|
-
"original": "number",
|
|
388
|
-
"resolved": "number",
|
|
389
|
-
"references": {}
|
|
390
|
-
},
|
|
391
|
-
"required": false,
|
|
392
|
-
"optional": false,
|
|
393
|
-
"docs": {
|
|
394
|
-
"tags": [],
|
|
395
|
-
"text": "Current index value"
|
|
396
|
-
},
|
|
397
|
-
"attribute": "index",
|
|
398
|
-
"reflect": false
|
|
399
|
-
},
|
|
400
|
-
"hostId": {
|
|
401
|
-
"type": "string",
|
|
402
|
-
"mutable": false,
|
|
403
|
-
"complexType": {
|
|
404
|
-
"original": "string",
|
|
405
|
-
"resolved": "string",
|
|
406
|
-
"references": {}
|
|
407
|
-
},
|
|
408
|
-
"required": false,
|
|
409
|
-
"optional": false,
|
|
410
|
-
"docs": {
|
|
411
|
-
"tags": [],
|
|
412
|
-
"text": "Id of the element"
|
|
413
|
-
},
|
|
414
|
-
"attribute": "id",
|
|
415
|
-
"reflect": false
|
|
416
|
-
},
|
|
417
|
-
"type": {
|
|
418
|
-
"type": "string",
|
|
419
|
-
"mutable": false,
|
|
420
|
-
"complexType": {
|
|
421
|
-
"original": "'select' | 'autocomplete'",
|
|
422
|
-
"resolved": "\"autocomplete\" | \"select\"",
|
|
423
|
-
"references": {}
|
|
424
|
-
},
|
|
425
|
-
"required": false,
|
|
426
|
-
"optional": false,
|
|
427
|
-
"docs": {
|
|
428
|
-
"tags": [],
|
|
429
|
-
"text": "Type of the parent element"
|
|
430
|
-
},
|
|
431
|
-
"attribute": "type",
|
|
432
|
-
"reflect": false
|
|
433
|
-
},
|
|
434
|
-
"itemType": {
|
|
435
|
-
"type": "string",
|
|
436
|
-
"mutable": false,
|
|
437
|
-
"complexType": {
|
|
438
|
-
"original": "'option' | 'item'",
|
|
439
|
-
"resolved": "\"item\" | \"option\"",
|
|
440
|
-
"references": {}
|
|
441
|
-
},
|
|
442
|
-
"required": false,
|
|
443
|
-
"optional": false,
|
|
444
|
-
"docs": {
|
|
445
|
-
"tags": [],
|
|
446
|
-
"text": "Type of items"
|
|
447
|
-
},
|
|
448
|
-
"attribute": "item-type",
|
|
449
|
-
"reflect": false
|
|
450
|
-
}
|
|
451
|
-
};
|
|
452
|
-
}
|
|
453
|
-
static get states() {
|
|
454
|
-
return {
|
|
455
|
-
"renderedList": {},
|
|
456
|
-
"isOpen": {},
|
|
457
|
-
"statusText": {}
|
|
458
|
-
};
|
|
459
|
-
}
|
|
460
|
-
static get events() {
|
|
461
|
-
return [{
|
|
462
|
-
"method": "selectOption",
|
|
463
|
-
"name": "selectOption",
|
|
464
|
-
"bubbles": true,
|
|
465
|
-
"cancelable": true,
|
|
466
|
-
"composed": true,
|
|
467
|
-
"docs": {
|
|
468
|
-
"tags": [],
|
|
469
|
-
"text": "Triggered when option is selected"
|
|
470
|
-
},
|
|
471
|
-
"complexType": {
|
|
472
|
-
"original": "any",
|
|
473
|
-
"resolved": "any",
|
|
474
|
-
"references": {}
|
|
475
|
-
}
|
|
476
|
-
}, {
|
|
477
|
-
"method": "dropdownStateChange",
|
|
478
|
-
"name": "dropdownStateChange",
|
|
479
|
-
"bubbles": true,
|
|
480
|
-
"cancelable": true,
|
|
481
|
-
"composed": true,
|
|
482
|
-
"docs": {
|
|
483
|
-
"tags": [],
|
|
484
|
-
"text": "Triggered when dropdown opens or closes"
|
|
485
|
-
},
|
|
486
|
-
"complexType": {
|
|
487
|
-
"original": "boolean",
|
|
488
|
-
"resolved": "boolean",
|
|
489
|
-
"references": {}
|
|
490
|
-
}
|
|
491
|
-
}];
|
|
492
|
-
}
|
|
493
|
-
static get methods() {
|
|
494
|
-
return {
|
|
495
|
-
"setStatusText": {
|
|
496
|
-
"complexType": {
|
|
497
|
-
"signature": "(text: string) => Promise<void>",
|
|
498
|
-
"parameters": [{
|
|
499
|
-
"tags": [],
|
|
500
|
-
"text": ""
|
|
501
|
-
}],
|
|
502
|
-
"references": {
|
|
503
|
-
"Promise": {
|
|
504
|
-
"location": "global",
|
|
505
|
-
"id": "global::Promise"
|
|
506
|
-
}
|
|
507
|
-
},
|
|
508
|
-
"return": "Promise<void>"
|
|
509
|
-
},
|
|
510
|
-
"docs": {
|
|
511
|
-
"text": "",
|
|
512
|
-
"tags": [{
|
|
513
|
-
"name": "private",
|
|
514
|
-
"text": undefined
|
|
515
|
-
}]
|
|
100
|
+
document.body.style.removeProperty('overflow');
|
|
101
|
+
}
|
|
102
|
+
componentDidLoad() {
|
|
103
|
+
this._setIsMobile();
|
|
104
|
+
this._hideDetails = this.parent.hideDetails;
|
|
105
|
+
this._inputElement = this.el.querySelector('c-input');
|
|
106
|
+
this._resizeObserver = new ResizeObserver((entries) => {
|
|
107
|
+
if (!this._dialog.open)
|
|
108
|
+
return;
|
|
109
|
+
requestAnimationFrame(() => {
|
|
110
|
+
if (!Array.isArray(entries) || !entries.length || this._isOpening)
|
|
111
|
+
return;
|
|
112
|
+
this._setIsMobile();
|
|
113
|
+
this.close();
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
this._resizeObserver.observe(window.document.body);
|
|
117
|
+
requestAnimationFrame(() => {
|
|
118
|
+
this.renderedList = this._renderList();
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
async selectItem(index) {
|
|
122
|
+
const item = this._listItems[index];
|
|
123
|
+
if (item.classList.contains('disabled')) {
|
|
124
|
+
return true;
|
|
516
125
|
}
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
126
|
+
this._listItems[index].click();
|
|
127
|
+
return false;
|
|
128
|
+
}
|
|
129
|
+
async updateList() {
|
|
130
|
+
requestAnimationFrame(() => {
|
|
131
|
+
this.renderedList = this._renderList();
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
_handleOutsideClick() {
|
|
135
|
+
if (!this.isOpen)
|
|
136
|
+
return;
|
|
137
|
+
this.close();
|
|
138
|
+
}
|
|
139
|
+
_highlightMatchingText(value) {
|
|
140
|
+
const { query } = this.parent;
|
|
141
|
+
if (this.parent.tagName === 'C-SELECT' || query === '')
|
|
142
|
+
return value;
|
|
143
|
+
const regex = new RegExp(query, 'gi');
|
|
144
|
+
const highlighted = value
|
|
145
|
+
.replace(/(<([^>]+)>)/gi, '')
|
|
146
|
+
.replace(regex, (match) => `<mark>${match}</mark>`);
|
|
147
|
+
return highlighted;
|
|
148
|
+
}
|
|
149
|
+
_getParentPosition() {
|
|
150
|
+
return this.parent.shadowRoot
|
|
151
|
+
.querySelector('.c-input__slot')
|
|
152
|
+
.getBoundingClientRect();
|
|
153
|
+
}
|
|
154
|
+
_positionMenu() {
|
|
155
|
+
const { innerWidth, innerHeight } = window;
|
|
156
|
+
this._dialog.style.width = 'auto';
|
|
157
|
+
this._dialog.style.opacity = '0';
|
|
158
|
+
this._dialog.showModal();
|
|
159
|
+
requestAnimationFrame(() => {
|
|
160
|
+
let inputSlot = 'input-top';
|
|
161
|
+
const { top: parentTop, width } = this._getParentPosition();
|
|
162
|
+
const inputSize = this.el.getBoundingClientRect();
|
|
163
|
+
this._inputSize = {
|
|
164
|
+
height: inputSize.height,
|
|
165
|
+
width: inputSize.width,
|
|
166
|
+
};
|
|
167
|
+
if (!this._isMobile) {
|
|
168
|
+
this._dialog.style.width = `${width}px`;
|
|
169
|
+
this._dialog.style.top = `${inputSize.top}px`;
|
|
170
|
+
this._dialog.style.bottom = 'auto';
|
|
171
|
+
this._dialog.style.left = `${inputSize.left}px`;
|
|
172
|
+
const { bottom, right, height } = this._dialog.getBoundingClientRect();
|
|
173
|
+
const isInView = {
|
|
174
|
+
x: right < innerWidth,
|
|
175
|
+
y: bottom < innerHeight,
|
|
176
|
+
};
|
|
177
|
+
const fitsOnTop = parentTop - height > 0;
|
|
178
|
+
if (!fitsOnTop && !isInView.y) {
|
|
179
|
+
this._dialog.style.maxHeight = `${parentTop}px`;
|
|
180
|
+
}
|
|
181
|
+
if (!isInView.y || this._openedOnTop) {
|
|
182
|
+
this._openedOnTop = true;
|
|
183
|
+
this._inputElement.hideDetails = true;
|
|
184
|
+
inputSlot = 'input-bottom';
|
|
185
|
+
this._dialog.style.top = 'auto';
|
|
186
|
+
this._dialog.style.bottom = `${innerHeight - inputSize.top - 44}px`;
|
|
187
|
+
}
|
|
529
188
|
}
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
189
|
+
this._dummyElement.style.width = `${this._getParentPosition().width}px`;
|
|
190
|
+
this._dummyElement.style.height = `${this._inputSize.height}px`;
|
|
191
|
+
this._dummyElement.style.display = 'block';
|
|
192
|
+
this._dummyElement.slot = 'default';
|
|
193
|
+
this._inputElement.slot = inputSlot;
|
|
194
|
+
this._inputElement.hideDetails = true;
|
|
195
|
+
this._dialog.style.opacity = '1';
|
|
196
|
+
const input = this.parent.shadowRoot.querySelector('input');
|
|
197
|
+
input.focus();
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
_minimumQueryItem() {
|
|
201
|
+
const { query, loading, minimumQueryLength, minimumQueryLengthMessage } = this.parent;
|
|
202
|
+
if (this.type !== 'autocomplete' ||
|
|
203
|
+
(query === null || query === void 0 ? void 0 : query.length) > minimumQueryLength ||
|
|
204
|
+
loading)
|
|
205
|
+
return;
|
|
206
|
+
return (h("li", null, h("c-icon", { path: mdiInformation, size: 18, color: "var(--c-info-600)" }), minimumQueryLengthMessage.replace('{n}', minimumQueryLength.toString())));
|
|
207
|
+
}
|
|
208
|
+
_emptyItem() {
|
|
209
|
+
const { query, loading, noMatchingItemsMessage } = this
|
|
210
|
+
.parent;
|
|
211
|
+
if (!query || loading)
|
|
212
|
+
return;
|
|
213
|
+
return (h("li", null, h("c-icon", { path: mdiAlert, size: 18, color: "var(--c-warning-600)" }), noMatchingItemsMessage));
|
|
214
|
+
}
|
|
215
|
+
_renderList() {
|
|
216
|
+
return this.dropdownItemType === 'option'
|
|
217
|
+
? this._renderOptionsList()
|
|
218
|
+
: this._renderItemsList();
|
|
219
|
+
}
|
|
220
|
+
_renderOptionsList() {
|
|
221
|
+
if (!this.items.length)
|
|
222
|
+
return this._minimumQueryItem() || this._emptyItem();
|
|
223
|
+
const options = Array.from(this.items);
|
|
224
|
+
this._listItems.length = 0;
|
|
225
|
+
return options.map((option, index) => {
|
|
226
|
+
const optionValue = option.querySelector('c-option-value');
|
|
227
|
+
if (optionValue) {
|
|
228
|
+
optionValue.innerHTML = this._highlightMatchingText(optionValue.textContent);
|
|
549
229
|
}
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
230
|
+
return (h("li", { ref: (el) => this._listItems.push(el), id: `${this.hostId}-option-${option.value}`, tabindex: "-1", role: "option", "aria-set-size": this.items.length.toString(), "aria-pos-in-set": (index + 1).toString(), "aria-selected": (!!option.selected).toString(), class: { disabled: !!option.disabled }, "data-name": option.name, onClick: (event) => {
|
|
231
|
+
if (option.disabled) {
|
|
232
|
+
event.preventDefault();
|
|
233
|
+
return;
|
|
234
|
+
}
|
|
235
|
+
this.selectOption.emit({ name: option.name, value: option.value });
|
|
236
|
+
}, innerHTML: option.outerHTML }));
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
_renderItemsList() {
|
|
240
|
+
if (!this.items.length)
|
|
241
|
+
return this._minimumQueryItem() || this._emptyItem();
|
|
242
|
+
this._listItems.length = 0;
|
|
243
|
+
return this.items.map((item, index) => {
|
|
244
|
+
return (h("li", { ref: (el) => this._listItems.push(el), id: `${this.hostId}-option-${item.value}`, tabindex: "-1", role: "option", "aria-set-size": this.items.length.toString(), "aria-pos-in-set": (index + 1).toString(), "aria-selected": (this.index === index).toString(), class: { disabled: !!item.disabled }, "data-name": item.name, onClick: (event) => {
|
|
245
|
+
if (item.disabled) {
|
|
246
|
+
event.preventDefault();
|
|
247
|
+
return;
|
|
248
|
+
}
|
|
249
|
+
this.selectOption.emit({ name: item.name, value: item.value });
|
|
250
|
+
} }, h("span", { innerHTML: this._highlightMatchingText(item.name) })));
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
_updateStatusText() {
|
|
254
|
+
if (this._debounce !== null) {
|
|
255
|
+
clearTimeout(this._debounce);
|
|
256
|
+
this._debounce = null;
|
|
556
257
|
}
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
258
|
+
this._debounce = window.setTimeout(() => {
|
|
259
|
+
var _a;
|
|
260
|
+
const selection = this._listItems[this.index];
|
|
261
|
+
const ending = !!this.items.length
|
|
262
|
+
? ', to navigate use up and down arrows'
|
|
263
|
+
: '';
|
|
264
|
+
const total = this._listItems.length;
|
|
265
|
+
const position = this.index + 1;
|
|
266
|
+
const isDisabled = !!((_a = selection === null || selection === void 0 ? void 0 : selection.classList) === null || _a === void 0 ? void 0 : _a.contains('disabled'));
|
|
267
|
+
const beginning = isDisabled ? 'Disabled option - ' : '';
|
|
268
|
+
let selectionText = !!selection
|
|
269
|
+
? `${beginning}${selection.dataset.name} - ${position} of ${total} is highlighted`
|
|
270
|
+
: null;
|
|
271
|
+
if (this.index === null && this.type === 'autocomplete') {
|
|
272
|
+
selectionText = this.items.length
|
|
273
|
+
? `${this.items.length} result${this.items.length !== 1 ? 's' : ''} available`
|
|
274
|
+
: 'No search results available';
|
|
566
275
|
}
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
},
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
276
|
+
this.statusText = `${selectionText || ending}`;
|
|
277
|
+
this._debounce = null;
|
|
278
|
+
}, 1400);
|
|
279
|
+
}
|
|
280
|
+
render() {
|
|
281
|
+
if (!this._isMobile &&
|
|
282
|
+
this._dialog &&
|
|
283
|
+
this.itemsPerPage &&
|
|
284
|
+
this.itemsPerPage > 0 &&
|
|
285
|
+
this.items.length > this.itemsPerPage) {
|
|
286
|
+
this._dialog.style.maxHeight = 42 * (this.itemsPerPage + 0.5) + 60 + 'px';
|
|
287
|
+
this._list.style.maxHeight = 42 * (this.itemsPerPage + 0.5) + 'px';
|
|
573
288
|
}
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
"
|
|
584
|
-
|
|
585
|
-
|
|
289
|
+
return (h(Host, { key: 'c57aa76f7e8af6bba313601244f7f4c60294967d' }, h("slot", { key: 'cddb4eef2f329d690cc6fb00bf595fa4cbe72d81', name: "default" }), h("div", { key: '357ce7f2dd9674bff13531a7f195305cfcfb6d55', class: "dummy", ref: (el) => (this._dummyElement = el) }), h("dialog", { key: 'dd6b57e7a407e6231151cbd7ba340339da979390', tabindex: "-1", ref: (el) => (this._dialog = el), class: { mobile: this._isMobile }, onCancel: () => this.close() }, h("div", { key: '4e473cb6cc9cfd0919169bd26402c5c01471d1b3', onClick: (event) => event.stopPropagation() }, h("div", { key: 'b6e602a614cceab3520097345f6db3e0f6bb35bb', id: 'announce-' + this.hostId, class: "visuallyhidden", "aria-live": "polite", "aria-atomic": "true" }, this.statusText), h("div", { key: 'd0599ab498016cf5425ab2bb281608f6da189c4a', class: "input-top-wrapper" }, h("slot", { key: 'bce91954bff6f7eaa41745fc55f9d2776564bcf9', name: "input-top" })), h("ul", { key: '0a04a78143f2180f1927595d83a7f338ec3d4609', ref: (el) => (this._list = el), id: `${this.hostId}--results`, role: "listbox", "aria-expanded": this.isOpen.toString(), class: { active: this.isOpen, mobile: this._isMobile }, tabindex: "-1" }, this.renderedList), h("div", { key: 'c30b4683d25a551b8130da3e148eeebbb6ab7e86', class: {
|
|
290
|
+
active: this._openedOnTop,
|
|
291
|
+
'input-bottom-wrapper': true,
|
|
292
|
+
} }, h("slot", { key: '7c2b1f4737729a7ce07843fccba9b7f94ff185f4', name: "input-bottom" }))))));
|
|
293
|
+
}
|
|
294
|
+
static get is() { return "c-dropdown"; }
|
|
295
|
+
static get encapsulation() { return "shadow"; }
|
|
296
|
+
static get originalStyleUrls() {
|
|
297
|
+
return {
|
|
298
|
+
"$": ["c-dropdown.scss"]
|
|
299
|
+
};
|
|
300
|
+
}
|
|
301
|
+
static get styleUrls() {
|
|
302
|
+
return {
|
|
303
|
+
"$": ["c-dropdown.css"]
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
static get properties() {
|
|
307
|
+
return {
|
|
308
|
+
"itemsPerPage": {
|
|
309
|
+
"type": "number",
|
|
310
|
+
"mutable": false,
|
|
311
|
+
"complexType": {
|
|
312
|
+
"original": "number",
|
|
313
|
+
"resolved": "number",
|
|
314
|
+
"references": {}
|
|
315
|
+
},
|
|
316
|
+
"required": false,
|
|
317
|
+
"optional": false,
|
|
318
|
+
"docs": {
|
|
319
|
+
"tags": [],
|
|
320
|
+
"text": "Items per page before adding scroll"
|
|
321
|
+
},
|
|
322
|
+
"attribute": "items-per-page",
|
|
323
|
+
"reflect": false
|
|
324
|
+
},
|
|
325
|
+
"parent": {
|
|
326
|
+
"type": "unknown",
|
|
327
|
+
"mutable": false,
|
|
328
|
+
"complexType": {
|
|
329
|
+
"original": "HTMLCSelectElement | HTMLCAutocompleteElement",
|
|
330
|
+
"resolved": "HTMLCAutocompleteElement | HTMLCSelectElement",
|
|
331
|
+
"references": {
|
|
332
|
+
"HTMLCSelectElement": {
|
|
333
|
+
"location": "global",
|
|
334
|
+
"id": "global::HTMLCSelectElement"
|
|
335
|
+
},
|
|
336
|
+
"HTMLCAutocompleteElement": {
|
|
337
|
+
"location": "global",
|
|
338
|
+
"id": "global::HTMLCAutocompleteElement"
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
"required": false,
|
|
343
|
+
"optional": false,
|
|
344
|
+
"docs": {
|
|
345
|
+
"tags": [],
|
|
346
|
+
"text": "Dropdown parent"
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
"items": {
|
|
350
|
+
"type": "unknown",
|
|
351
|
+
"mutable": false,
|
|
352
|
+
"complexType": {
|
|
353
|
+
"original": "| NodeListOf<HTMLCOptionElement>\n | CAutocompleteItem[]\n | CSelectItem[]",
|
|
354
|
+
"resolved": "CAutocompleteItem[] | CSelectItem[] | NodeListOf<HTMLCOptionElement>",
|
|
355
|
+
"references": {
|
|
356
|
+
"NodeListOf": {
|
|
357
|
+
"location": "global",
|
|
358
|
+
"id": "global::NodeListOf"
|
|
359
|
+
},
|
|
360
|
+
"HTMLCOptionElement": {
|
|
361
|
+
"location": "global",
|
|
362
|
+
"id": "global::HTMLCOptionElement"
|
|
363
|
+
},
|
|
364
|
+
"CAutocompleteItem": {
|
|
365
|
+
"location": "import",
|
|
366
|
+
"path": "../../types",
|
|
367
|
+
"id": "src/types/index.ts::CAutocompleteItem"
|
|
368
|
+
},
|
|
369
|
+
"CSelectItem": {
|
|
370
|
+
"location": "import",
|
|
371
|
+
"path": "../../types",
|
|
372
|
+
"id": "src/types/index.ts::CSelectItem"
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
"required": false,
|
|
377
|
+
"optional": false,
|
|
378
|
+
"docs": {
|
|
379
|
+
"tags": [],
|
|
380
|
+
"text": "Dropdown options"
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
"index": {
|
|
384
|
+
"type": "number",
|
|
385
|
+
"mutable": false,
|
|
386
|
+
"complexType": {
|
|
387
|
+
"original": "number",
|
|
388
|
+
"resolved": "number",
|
|
389
|
+
"references": {}
|
|
390
|
+
},
|
|
391
|
+
"required": false,
|
|
392
|
+
"optional": false,
|
|
393
|
+
"docs": {
|
|
394
|
+
"tags": [],
|
|
395
|
+
"text": "Current index value"
|
|
396
|
+
},
|
|
397
|
+
"attribute": "index",
|
|
398
|
+
"reflect": false
|
|
399
|
+
},
|
|
400
|
+
"hostId": {
|
|
401
|
+
"type": "string",
|
|
402
|
+
"mutable": false,
|
|
403
|
+
"complexType": {
|
|
404
|
+
"original": "string",
|
|
405
|
+
"resolved": "string",
|
|
406
|
+
"references": {}
|
|
407
|
+
},
|
|
408
|
+
"required": false,
|
|
409
|
+
"optional": false,
|
|
410
|
+
"docs": {
|
|
411
|
+
"tags": [],
|
|
412
|
+
"text": "Id of the element"
|
|
413
|
+
},
|
|
414
|
+
"attribute": "id",
|
|
415
|
+
"reflect": false
|
|
416
|
+
},
|
|
417
|
+
"type": {
|
|
418
|
+
"type": "string",
|
|
419
|
+
"mutable": false,
|
|
420
|
+
"complexType": {
|
|
421
|
+
"original": "'select' | 'autocomplete'",
|
|
422
|
+
"resolved": "\"autocomplete\" | \"select\"",
|
|
423
|
+
"references": {}
|
|
424
|
+
},
|
|
425
|
+
"required": false,
|
|
426
|
+
"optional": false,
|
|
427
|
+
"docs": {
|
|
428
|
+
"tags": [],
|
|
429
|
+
"text": "Type of the parent element"
|
|
430
|
+
},
|
|
431
|
+
"attribute": "type",
|
|
432
|
+
"reflect": false
|
|
433
|
+
},
|
|
434
|
+
"dropdownItemType": {
|
|
435
|
+
"type": "string",
|
|
436
|
+
"mutable": false,
|
|
437
|
+
"complexType": {
|
|
438
|
+
"original": "'option' | 'item'",
|
|
439
|
+
"resolved": "\"item\" | \"option\"",
|
|
440
|
+
"references": {}
|
|
441
|
+
},
|
|
442
|
+
"required": false,
|
|
443
|
+
"optional": false,
|
|
444
|
+
"docs": {
|
|
445
|
+
"tags": [],
|
|
446
|
+
"text": "Type of items"
|
|
447
|
+
},
|
|
448
|
+
"attribute": "dropdown-item-type",
|
|
449
|
+
"reflect": false
|
|
586
450
|
}
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
451
|
+
};
|
|
452
|
+
}
|
|
453
|
+
static get states() {
|
|
454
|
+
return {
|
|
455
|
+
"renderedList": {},
|
|
456
|
+
"isOpen": {},
|
|
457
|
+
"statusText": {}
|
|
458
|
+
};
|
|
459
|
+
}
|
|
460
|
+
static get events() {
|
|
461
|
+
return [{
|
|
462
|
+
"method": "selectOption",
|
|
463
|
+
"name": "selectOption",
|
|
464
|
+
"bubbles": true,
|
|
465
|
+
"cancelable": true,
|
|
466
|
+
"composed": true,
|
|
467
|
+
"docs": {
|
|
468
|
+
"tags": [],
|
|
469
|
+
"text": "Triggered when option is selected"
|
|
470
|
+
},
|
|
471
|
+
"complexType": {
|
|
472
|
+
"original": "any",
|
|
473
|
+
"resolved": "any",
|
|
474
|
+
"references": {}
|
|
475
|
+
}
|
|
476
|
+
}, {
|
|
477
|
+
"method": "dropdownStateChange",
|
|
478
|
+
"name": "dropdownStateChange",
|
|
479
|
+
"bubbles": true,
|
|
480
|
+
"cancelable": true,
|
|
481
|
+
"composed": true,
|
|
482
|
+
"docs": {
|
|
483
|
+
"tags": [],
|
|
484
|
+
"text": "Triggered when dropdown opens or closes"
|
|
485
|
+
},
|
|
486
|
+
"complexType": {
|
|
487
|
+
"original": "boolean",
|
|
488
|
+
"resolved": "boolean",
|
|
489
|
+
"references": {}
|
|
490
|
+
}
|
|
491
|
+
}];
|
|
492
|
+
}
|
|
493
|
+
static get methods() {
|
|
494
|
+
return {
|
|
495
|
+
"setStatusText": {
|
|
496
|
+
"complexType": {
|
|
497
|
+
"signature": "(text: string) => Promise<void>",
|
|
498
|
+
"parameters": [{
|
|
499
|
+
"name": "text",
|
|
500
|
+
"type": "string",
|
|
501
|
+
"docs": ""
|
|
502
|
+
}],
|
|
503
|
+
"references": {
|
|
504
|
+
"Promise": {
|
|
505
|
+
"location": "global",
|
|
506
|
+
"id": "global::Promise"
|
|
507
|
+
}
|
|
508
|
+
},
|
|
509
|
+
"return": "Promise<void>"
|
|
510
|
+
},
|
|
511
|
+
"docs": {
|
|
512
|
+
"text": "",
|
|
513
|
+
"tags": [{
|
|
514
|
+
"name": "private",
|
|
515
|
+
"text": undefined
|
|
516
|
+
}]
|
|
517
|
+
}
|
|
518
|
+
},
|
|
519
|
+
"focusItem": {
|
|
520
|
+
"complexType": {
|
|
521
|
+
"signature": "(index: number) => Promise<void>",
|
|
522
|
+
"parameters": [{
|
|
523
|
+
"name": "index",
|
|
524
|
+
"type": "number",
|
|
525
|
+
"docs": ""
|
|
526
|
+
}],
|
|
527
|
+
"references": {
|
|
528
|
+
"Promise": {
|
|
529
|
+
"location": "global",
|
|
530
|
+
"id": "global::Promise"
|
|
531
|
+
}
|
|
532
|
+
},
|
|
533
|
+
"return": "Promise<void>"
|
|
534
|
+
},
|
|
535
|
+
"docs": {
|
|
536
|
+
"text": "",
|
|
537
|
+
"tags": [{
|
|
538
|
+
"name": "private",
|
|
539
|
+
"text": undefined
|
|
540
|
+
}]
|
|
541
|
+
}
|
|
542
|
+
},
|
|
543
|
+
"open": {
|
|
544
|
+
"complexType": {
|
|
545
|
+
"signature": "() => Promise<void>",
|
|
546
|
+
"parameters": [],
|
|
547
|
+
"references": {
|
|
548
|
+
"Promise": {
|
|
549
|
+
"location": "global",
|
|
550
|
+
"id": "global::Promise"
|
|
551
|
+
}
|
|
552
|
+
},
|
|
553
|
+
"return": "Promise<void>"
|
|
554
|
+
},
|
|
555
|
+
"docs": {
|
|
556
|
+
"text": "Open dropdown",
|
|
557
|
+
"tags": []
|
|
558
|
+
}
|
|
559
|
+
},
|
|
560
|
+
"close": {
|
|
561
|
+
"complexType": {
|
|
562
|
+
"signature": "() => Promise<void>",
|
|
563
|
+
"parameters": [],
|
|
564
|
+
"references": {
|
|
565
|
+
"Promise": {
|
|
566
|
+
"location": "global",
|
|
567
|
+
"id": "global::Promise"
|
|
568
|
+
}
|
|
569
|
+
},
|
|
570
|
+
"return": "Promise<void>"
|
|
571
|
+
},
|
|
572
|
+
"docs": {
|
|
573
|
+
"text": "Close dropdown",
|
|
574
|
+
"tags": []
|
|
575
|
+
}
|
|
576
|
+
},
|
|
577
|
+
"selectItem": {
|
|
578
|
+
"complexType": {
|
|
579
|
+
"signature": "(index: number) => Promise<boolean>",
|
|
580
|
+
"parameters": [{
|
|
581
|
+
"name": "index",
|
|
582
|
+
"type": "number",
|
|
583
|
+
"docs": ""
|
|
584
|
+
}],
|
|
585
|
+
"references": {
|
|
586
|
+
"Promise": {
|
|
587
|
+
"location": "global",
|
|
588
|
+
"id": "global::Promise"
|
|
589
|
+
}
|
|
590
|
+
},
|
|
591
|
+
"return": "Promise<boolean>"
|
|
592
|
+
},
|
|
593
|
+
"docs": {
|
|
594
|
+
"text": "Select item",
|
|
595
|
+
"tags": [{
|
|
596
|
+
"name": "returns",
|
|
597
|
+
"text": "the disabled status of the input"
|
|
598
|
+
}]
|
|
599
|
+
}
|
|
600
|
+
},
|
|
601
|
+
"updateList": {
|
|
602
|
+
"complexType": {
|
|
603
|
+
"signature": "() => Promise<void>",
|
|
604
|
+
"parameters": [],
|
|
605
|
+
"references": {
|
|
606
|
+
"Promise": {
|
|
607
|
+
"location": "global",
|
|
608
|
+
"id": "global::Promise"
|
|
609
|
+
}
|
|
610
|
+
},
|
|
611
|
+
"return": "Promise<void>"
|
|
612
|
+
},
|
|
613
|
+
"docs": {
|
|
614
|
+
"text": "Update list items",
|
|
615
|
+
"tags": []
|
|
616
|
+
}
|
|
606
617
|
}
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
}, {
|
|
623
|
-
"propName": "isOpen",
|
|
624
|
-
"methodName": "stateWatcher"
|
|
625
|
-
}, {
|
|
626
|
-
"propName": "index",
|
|
627
|
-
"methodName": "handleIndexChange"
|
|
628
|
-
}];
|
|
629
|
-
}
|
|
618
|
+
};
|
|
619
|
+
}
|
|
620
|
+
static get elementRef() { return "el"; }
|
|
621
|
+
static get watchers() {
|
|
622
|
+
return [{
|
|
623
|
+
"propName": "items",
|
|
624
|
+
"methodName": "optionsWatcher"
|
|
625
|
+
}, {
|
|
626
|
+
"propName": "isOpen",
|
|
627
|
+
"methodName": "stateWatcher"
|
|
628
|
+
}, {
|
|
629
|
+
"propName": "index",
|
|
630
|
+
"methodName": "handleIndexChange"
|
|
631
|
+
}];
|
|
632
|
+
}
|
|
630
633
|
}
|
|
631
634
|
//# sourceMappingURL=c-dropdown.js.map
|