@ukic/web-components 3.20.0 → 3.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/{helpers-3a796e7a.js → helpers-81cd6930.js} +3 -16
- package/dist/cjs/helpers-81cd6930.js.map +1 -0
- package/dist/cjs/ic-accordion-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-accordion.cjs.entry.js +17 -10
- package/dist/cjs/ic-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-action-chip.cjs.entry.js +7 -3
- package/dist/cjs/ic-action-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-alert.cjs.entry.js +1 -1
- package/dist/cjs/ic-back-to-top.cjs.entry.js +2 -2
- package/dist/cjs/ic-back-to-top.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-badge.cjs.entry.js +2 -2
- package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/ic-button_3.cjs.entry.js +7 -7
- package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-card-horizontal.cjs.entry.js +174 -0
- package/dist/cjs/ic-card-horizontal.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-card-vertical.cjs.entry.js +2 -2
- package/dist/cjs/ic-card-vertical.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +3 -3
- package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox.cjs.entry.js +6 -6
- package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-chip.cjs.entry.js +7 -3
- package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-classification-banner.cjs.entry.js +13 -5
- package/dist/cjs/ic-classification-banner.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-list.cjs.entry.js +2 -2
- package/dist/cjs/ic-data-row.cjs.entry.js +3 -3
- package/dist/cjs/ic-dialog.cjs.entry.js +2 -2
- package/dist/cjs/ic-divider.cjs.entry.js +17 -8
- package/dist/cjs/ic-divider.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-empty-state.cjs.entry.js +3 -3
- package/dist/cjs/ic-footer-link-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-footer-link.cjs.entry.js +4 -4
- package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer.cjs.entry.js +1 -1
- package/dist/cjs/ic-hero.cjs.entry.js +5 -5
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +7 -7
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js +218 -86
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-label_2.cjs.entry.js +17 -12
- package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-layout-grid-item.cjs.entry.js +2 -2
- package/dist/cjs/ic-layout-grid.cjs.entry.js +2 -2
- package/dist/cjs/ic-link.cjs.entry.js +3 -3
- package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/ic-navigation-button.cjs.entry.js +1 -1
- package/dist/cjs/ic-navigation-group.cjs.entry.js +3 -3
- package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js +7 -5
- package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-menu.cjs.entry.js +5 -5
- package/dist/cjs/ic-page-header.cjs.entry.js +8 -8
- package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-pagination-bar.cjs.entry.js +389 -0
- package/dist/cjs/ic-pagination-bar.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-pagination-item.cjs.entry.js +3 -3
- package/dist/cjs/ic-pagination-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-pagination_3.cjs.entry.js +1412 -0
- package/dist/cjs/ic-pagination_3.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-popover-menu.cjs.entry.js +5 -5
- package/dist/cjs/ic-radio-group.cjs.entry.js +5 -5
- package/dist/cjs/ic-radio-option.cjs.entry.js +6 -6
- package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-search-bar.cjs.entry.js +12 -12
- package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-section-container.cjs.entry.js +2 -2
- package/dist/cjs/ic-side-navigation.cjs.entry.js +30 -15
- package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/ic-skip-link.cjs.entry.js +2 -2
- package/dist/cjs/ic-status-tag.cjs.entry.js +3 -3
- package/dist/cjs/ic-step.cjs.entry.js +14 -14
- package/dist/cjs/ic-stepper.cjs.entry.js +3 -3
- package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-switch.cjs.entry.js +6 -6
- package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-context.cjs.entry.js +1 -2
- package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-group.cjs.entry.js +3 -3
- package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/ic-tab.cjs.entry.js +2 -2
- package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-theme.cjs.entry.js +2 -2
- package/dist/cjs/ic-toast-region.cjs.entry.js +1 -1
- package/dist/cjs/ic-toast.cjs.entry.js +8 -7
- package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js +4 -4
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toggle-button.cjs.entry.js +3 -3
- package/dist/cjs/ic-top-navigation.cjs.entry.js +2 -2
- package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-typography.cjs.entry.js +2 -2
- package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
- package/dist/cjs/index-d337cd8a.js +16 -16
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/ic-accordion/ic-accordion.css +6 -0
- package/dist/collection/components/ic-accordion/ic-accordion.js +15 -8
- package/dist/collection/components/ic-accordion/ic-accordion.js.map +1 -1
- package/dist/collection/components/ic-action-chip/ic-action-chip.css +15 -2
- package/dist/collection/components/ic-action-chip/ic-action-chip.js +5 -1
- package/dist/collection/components/ic-action-chip/ic-action-chip.js.map +1 -1
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.css +7 -0
- package/dist/collection/components/ic-badge/ic-badge.css +6 -0
- package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.css +8 -0
- package/dist/collection/components/ic-button/ic-button.css +7 -0
- package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.css +728 -0
- package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.js +512 -0
- package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.js.map +1 -0
- package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.stories.js +876 -0
- package/dist/collection/components/ic-card-vertical/ic-card-vertical.css +7 -0
- package/dist/collection/components/ic-card-vertical/ic-card-vertical.stories.js +1 -1
- package/dist/collection/components/ic-checkbox/ic-checkbox.css +7 -5
- package/dist/collection/components/ic-checkbox/ic-checkbox.js +4 -5
- package/dist/collection/components/ic-checkbox/ic-checkbox.js.map +1 -1
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +3 -3
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js.map +1 -1
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.stories.js +35 -0
- package/dist/collection/components/ic-chip/ic-chip.css +15 -3
- package/dist/collection/components/ic-chip/ic-chip.js +5 -1
- package/dist/collection/components/ic-chip/ic-chip.js.map +1 -1
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.js +33 -5
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.js.map +1 -1
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.stories.js +32 -0
- package/dist/collection/components/ic-data-list/ic-data-list.js +2 -2
- package/dist/collection/components/ic-data-row/ic-data-row.js +2 -2
- package/dist/collection/components/ic-dialog/ic-dialog.js +1 -1
- package/dist/collection/components/ic-divider/ic-divider.js +16 -7
- package/dist/collection/components/ic-divider/ic-divider.js.map +1 -1
- package/dist/collection/components/ic-empty-state/ic-empty-state.js +2 -2
- package/dist/collection/components/ic-footer-link/ic-footer-link.css +6 -0
- package/dist/collection/components/ic-footer-link/ic-footer-link.js +2 -2
- package/dist/collection/components/ic-hero/ic-hero.js +4 -4
- package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.css +6 -0
- package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js +5 -5
- package/dist/collection/components/ic-input-component-container/ic-input-component-container.css +7 -0
- package/dist/collection/components/ic-input-component-container/ic-input-component-container.js +3 -3
- package/dist/collection/components/ic-input-container/ic-input-container.js +2 -2
- package/dist/collection/components/ic-input-label/ic-input-label.js +16 -8
- package/dist/collection/components/ic-input-label/ic-input-label.js.map +1 -1
- package/dist/collection/components/ic-input-validation/ic-input-validation.js +3 -3
- package/dist/collection/components/ic-layout-grid/ic-layout-grid.js +2 -2
- package/dist/collection/components/ic-layout-grid-item/ic-layout-grid-item.js +2 -2
- package/dist/collection/components/ic-link/ic-link.css +7 -0
- package/dist/collection/components/ic-link/ic-link.js +1 -1
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js +5 -5
- package/dist/collection/components/ic-menu/ic-menu.css +12 -1
- package/dist/collection/components/ic-menu/ic-menu.js +184 -53
- package/dist/collection/components/ic-menu/ic-menu.js.map +1 -1
- package/dist/collection/components/ic-menu-group/ic-menu-group.js +1 -1
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.css +9 -0
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.js +1 -1
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.css +41 -0
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.js +5 -3
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.js.map +1 -1
- package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js +4 -4
- package/dist/collection/components/ic-page-header/ic-page-header.css +1 -2
- package/dist/collection/components/ic-page-header/ic-page-header.js +6 -6
- package/dist/collection/components/ic-pagination/ic-pagination.js +4 -4
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.css +104 -0
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js +895 -0
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js.map +1 -0
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.stories.js +215 -0
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.types.js +2 -0
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.types.js.map +1 -0
- package/dist/collection/components/ic-pagination-item/ic-pagination-item.css +6 -0
- package/dist/collection/components/ic-pagination-item/ic-pagination-item.js +1 -1
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.js +4 -4
- package/dist/collection/components/ic-radio-group/ic-radio-group.js +4 -4
- package/dist/collection/components/ic-radio-option/ic-radio-option.css +6 -0
- package/dist/collection/components/ic-radio-option/ic-radio-option.js +4 -4
- package/dist/collection/components/ic-search-bar/ic-search-bar.css +6 -0
- package/dist/collection/components/ic-search-bar/ic-search-bar.js +10 -11
- package/dist/collection/components/ic-search-bar/ic-search-bar.js.map +1 -1
- package/dist/collection/components/ic-section-container/ic-section-container.js +2 -2
- package/dist/collection/components/ic-select/ic-select.css +9 -2
- package/dist/collection/components/ic-select/ic-select.js +414 -589
- package/dist/collection/components/ic-select/ic-select.js.map +1 -1
- package/dist/collection/components/ic-select/ic-select.types.js +2 -0
- package/dist/collection/components/ic-select/ic-select.types.js.map +1 -0
- package/dist/collection/components/ic-select/ic-select_(searchable).stories.js +26 -21
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.css +46 -21
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +29 -14
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.js.map +1 -1
- package/dist/collection/components/ic-skeleton/ic-skeleton.js +2 -2
- package/dist/collection/components/ic-skip-link/ic-skip-link.js +2 -2
- package/dist/collection/components/ic-status-tag/ic-status-tag.js +2 -2
- package/dist/collection/components/ic-step/ic-step.js +13 -13
- package/dist/collection/components/ic-stepper/ic-stepper.js +2 -2
- package/dist/collection/components/ic-stepper/ic-stepper.js.map +1 -1
- package/dist/collection/components/ic-switch/ic-switch.css +7 -0
- package/dist/collection/components/ic-switch/ic-switch.js +4 -4
- package/dist/collection/components/ic-tab/ic-tab.css +6 -0
- package/dist/collection/components/ic-tab-context/ic-tab-context.js +1 -2
- package/dist/collection/components/ic-tab-context/ic-tab-context.js.map +1 -1
- package/dist/collection/components/ic-tab-group/ic-tab-group.js +2 -2
- package/dist/collection/components/ic-tab-panel/ic-tab-panel.js +2 -2
- package/dist/collection/components/ic-text-field/ic-text-field.js +5 -5
- package/dist/collection/components/ic-theme/ic-theme.js +1 -1
- package/dist/collection/components/ic-toast/ic-toast.js +7 -6
- package/dist/collection/components/ic-toast/ic-toast.js.map +1 -1
- package/dist/collection/components/ic-toast-region/ic-toast-region.js +1 -1
- package/dist/collection/components/ic-toggle-button/ic-toggle-button.js +2 -2
- package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.css +6 -0
- package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.js +2 -2
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.css +8 -4
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.stories.js +100 -0
- package/dist/collection/components/ic-typography/ic-typography.css +6 -0
- package/dist/collection/utils/helpers.js +2 -15
- package/dist/collection/utils/helpers.js.map +1 -1
- package/dist/collection/utils/types.js.map +1 -1
- package/dist/components/helpers.js +3 -16
- package/dist/components/helpers.js.map +1 -1
- package/dist/components/ic-accordion.js +16 -9
- package/dist/components/ic-accordion.js.map +1 -1
- package/dist/components/ic-action-chip.js +6 -2
- package/dist/components/ic-action-chip.js.map +1 -1
- package/dist/components/ic-back-to-top.js +1 -1
- package/dist/components/ic-back-to-top.js.map +1 -1
- package/dist/components/ic-badge.js +1 -1
- package/dist/components/ic-badge.js.map +1 -1
- package/dist/components/ic-breadcrumb-group.js +1 -1
- package/dist/components/ic-breadcrumb-group.js.map +1 -1
- package/dist/components/ic-button2.js +1 -1
- package/dist/components/ic-button2.js.map +1 -1
- package/dist/components/ic-card-horizontal.d.ts +11 -0
- package/dist/components/ic-card-horizontal.js +214 -0
- package/dist/components/ic-card-horizontal.js.map +1 -0
- package/dist/components/ic-card-vertical.js +1 -1
- package/dist/components/ic-card-vertical.js.map +1 -1
- package/dist/components/ic-checkbox-group.js +2 -2
- package/dist/components/ic-checkbox-group.js.map +1 -1
- package/dist/components/ic-checkbox.js +5 -5
- package/dist/components/ic-checkbox.js.map +1 -1
- package/dist/components/ic-chip.js +6 -2
- package/dist/components/ic-chip.js.map +1 -1
- package/dist/components/ic-classification-banner.js +14 -5
- package/dist/components/ic-classification-banner.js.map +1 -1
- package/dist/components/ic-data-list.js +2 -2
- package/dist/components/ic-data-row.js +2 -2
- package/dist/components/ic-dialog.js +1 -1
- package/dist/components/ic-divider2.js +17 -8
- package/dist/components/ic-divider2.js.map +1 -1
- package/dist/components/ic-empty-state.js +2 -2
- package/dist/components/ic-footer-link.js +3 -3
- package/dist/components/ic-footer-link.js.map +1 -1
- package/dist/components/ic-hero.js +4 -4
- package/dist/components/ic-horizontal-scroll2.js +6 -6
- package/dist/components/ic-horizontal-scroll2.js.map +1 -1
- package/dist/components/ic-input-component-container2.js +4 -4
- package/dist/components/ic-input-component-container2.js.map +1 -1
- package/dist/components/ic-input-container2.js +2 -2
- package/dist/components/ic-input-label2.js +13 -8
- package/dist/components/ic-input-label2.js.map +1 -1
- package/dist/components/ic-input-validation2.js +3 -3
- package/dist/components/ic-layout-grid-item.js +2 -2
- package/dist/components/ic-layout-grid.js +2 -2
- package/dist/components/ic-link2.js +2 -2
- package/dist/components/ic-link2.js.map +1 -1
- package/dist/components/ic-loading-indicator2.js +5 -5
- package/dist/components/ic-menu-group.js +1 -1
- package/dist/components/ic-menu2.js +213 -79
- package/dist/components/ic-menu2.js.map +1 -1
- package/dist/components/ic-navigation-group.js +2 -2
- package/dist/components/ic-navigation-group.js.map +1 -1
- package/dist/components/ic-navigation-item.js +6 -4
- package/dist/components/ic-navigation-item.js.map +1 -1
- package/dist/components/ic-navigation-menu2.js +4 -4
- package/dist/components/ic-page-header.js +7 -7
- package/dist/components/ic-page-header.js.map +1 -1
- package/dist/components/ic-pagination-bar.d.ts +11 -0
- package/dist/components/ic-pagination-bar.js +523 -0
- package/dist/components/ic-pagination-bar.js.map +1 -0
- package/dist/components/ic-pagination-item2.js +2 -2
- package/dist/components/ic-pagination-item2.js.map +1 -1
- package/dist/components/ic-pagination.js +1 -375
- package/dist/components/ic-pagination.js.map +1 -1
- package/dist/{esm/ic-pagination.entry.js → components/ic-pagination2.js} +86 -15
- package/dist/components/ic-pagination2.js.map +1 -0
- package/dist/components/ic-popover-menu.js +4 -4
- package/dist/components/ic-popover-menu.js.map +1 -1
- package/dist/components/ic-radio-group.js +4 -4
- package/dist/components/ic-radio-option.js +5 -5
- package/dist/components/ic-radio-option.js.map +1 -1
- package/dist/components/ic-search-bar.js +12 -12
- package/dist/components/ic-search-bar.js.map +1 -1
- package/dist/components/ic-section-container2.js +2 -2
- package/dist/components/ic-select.js +1 -994
- package/dist/components/ic-select.js.map +1 -1
- package/dist/components/ic-select2.js +804 -0
- package/dist/components/ic-select2.js.map +1 -0
- package/dist/components/ic-side-navigation.js +30 -15
- package/dist/components/ic-side-navigation.js.map +1 -1
- package/dist/components/ic-skeleton.js +2 -2
- package/dist/components/ic-skip-link.js +2 -2
- package/dist/components/ic-status-tag.js +2 -2
- package/dist/components/ic-step.js +13 -13
- package/dist/components/ic-stepper.js +2 -2
- package/dist/components/ic-stepper.js.map +1 -1
- package/dist/components/ic-switch.js +5 -5
- package/dist/components/ic-switch.js.map +1 -1
- package/dist/components/ic-tab-context.js +1 -2
- package/dist/components/ic-tab-context.js.map +1 -1
- package/dist/components/ic-tab-group.js +2 -2
- package/dist/components/ic-tab-panel.js +2 -2
- package/dist/components/ic-tab-panel.js.map +1 -1
- package/dist/components/ic-tab.js +1 -1
- package/dist/components/ic-tab.js.map +1 -1
- package/dist/components/ic-text-field.js +1 -528
- package/dist/components/ic-text-field.js.map +1 -1
- package/dist/{esm/ic-text-field.entry.js → components/ic-text-field2.js} +119 -16
- package/dist/components/ic-text-field2.js.map +1 -0
- package/dist/components/ic-theme.js +1 -1
- package/dist/components/ic-toast-region.js +1 -1
- package/dist/components/ic-toast.js +7 -6
- package/dist/components/ic-toast.js.map +1 -1
- package/dist/components/ic-toggle-button-group.js +3 -3
- package/dist/components/ic-toggle-button-group.js.map +1 -1
- package/dist/components/ic-toggle-button.js +2 -2
- package/dist/components/ic-top-navigation.js +1 -1
- package/dist/components/ic-top-navigation.js.map +1 -1
- package/dist/components/ic-typography2.js +1 -1
- package/dist/components/ic-typography2.js.map +1 -1
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/p-05fd2707.entry.js +2 -0
- package/dist/core/p-05fd2707.entry.js.map +1 -0
- package/dist/core/{p-ba4abeac.entry.js → p-09505807.entry.js} +2 -2
- package/dist/core/{p-8f45f956.entry.js → p-09caf7ed.entry.js} +2 -2
- package/dist/core/p-09caf7ed.entry.js.map +1 -0
- package/dist/core/{p-8b1567c9.entry.js → p-0b728f50.entry.js} +2 -2
- package/dist/core/p-0b728f50.entry.js.map +1 -0
- package/dist/core/p-0fb7f915.entry.js +2 -0
- package/dist/core/p-0fb7f915.entry.js.map +1 -0
- package/dist/core/p-1b81ec88.entry.js +2 -0
- package/dist/core/p-1b81ec88.entry.js.map +1 -0
- package/dist/core/{p-3582c7df.entry.js → p-2691cc80.entry.js} +2 -2
- package/dist/core/p-2691cc80.entry.js.map +1 -0
- package/dist/core/{p-fe0153ec.entry.js → p-2a124daf.entry.js} +2 -2
- package/dist/core/{p-f5fd4a76.entry.js → p-2b87c592.entry.js} +2 -2
- package/dist/core/p-2b87c592.entry.js.map +1 -0
- package/dist/core/{p-c7f8547d.entry.js → p-2bd80913.entry.js} +2 -2
- package/dist/core/p-2bd80913.entry.js.map +1 -0
- package/dist/core/{p-aed1c7e7.entry.js → p-347cc084.entry.js} +2 -2
- package/dist/core/p-393af2bc.entry.js +2 -0
- package/dist/core/p-393af2bc.entry.js.map +1 -0
- package/dist/core/{p-b5e39585.entry.js → p-3aed13ba.entry.js} +2 -2
- package/dist/core/{p-276a6c8f.entry.js → p-46fd555f.entry.js} +2 -2
- package/dist/core/p-48a628f0.entry.js +2 -0
- package/dist/core/{p-23dc27a8.entry.js.map → p-48a628f0.entry.js.map} +1 -1
- package/dist/core/p-4f56acff.entry.js +2 -0
- package/dist/core/p-4f56acff.entry.js.map +1 -0
- package/dist/core/{p-86989873.entry.js → p-506d428a.entry.js} +2 -2
- package/dist/core/p-506d428a.entry.js.map +1 -0
- package/dist/core/p-50dca790.entry.js +2 -0
- package/dist/core/p-50dca790.entry.js.map +1 -0
- package/dist/core/p-53ab3c0f.entry.js +2 -0
- package/dist/core/p-53ab3c0f.entry.js.map +1 -0
- package/dist/core/{p-889bb8db.entry.js → p-56de4f4b.entry.js} +2 -2
- package/dist/core/p-5900cb65.entry.js +2 -0
- package/dist/core/p-5900cb65.entry.js.map +1 -0
- package/dist/core/{p-608b4912.entry.js → p-5976de6e.entry.js} +2 -2
- package/dist/core/{p-cf056074.entry.js → p-61d79fc6.entry.js} +2 -2
- package/dist/core/{p-cf056074.entry.js.map → p-61d79fc6.entry.js.map} +1 -1
- package/dist/core/{p-45076d7e.entry.js → p-659d048d.entry.js} +2 -2
- package/dist/core/{p-1edf2689.entry.js → p-67de1290.entry.js} +2 -2
- package/dist/core/p-6b4ec95f.entry.js +3 -0
- package/dist/core/p-6b4ec95f.entry.js.map +1 -0
- package/dist/core/{p-f700b759.entry.js → p-73043f57.entry.js} +2 -2
- package/dist/core/{p-7b8e5926.entry.js → p-735d3096.entry.js} +2 -2
- package/dist/core/{p-0301d1c8.entry.js → p-7b538fd1.entry.js} +2 -2
- package/dist/core/{p-cdbbcef4.entry.js → p-80d85403.entry.js} +2 -2
- package/dist/core/p-80d85403.entry.js.map +1 -0
- package/dist/core/{p-09c31ac6.entry.js → p-83578f1d.entry.js} +2 -2
- package/dist/core/{p-09c31ac6.entry.js.map → p-83578f1d.entry.js.map} +1 -1
- package/dist/core/{p-b8c0c142.entry.js → p-880f7548.entry.js} +2 -2
- package/dist/core/p-880f7548.entry.js.map +1 -0
- package/dist/core/{p-0d711c6a.entry.js → p-8a833e82.entry.js} +2 -2
- package/dist/core/{p-c16e982c.entry.js → p-90678e67.entry.js} +2 -2
- package/dist/core/{p-93e1ba0a.entry.js → p-9502fb86.entry.js} +2 -2
- package/dist/core/{p-6740c915.entry.js → p-99433296.entry.js} +2 -2
- package/dist/core/p-99433296.entry.js.map +1 -0
- package/dist/core/{p-76e8df31.entry.js → p-9c2b2cb9.entry.js} +2 -2
- package/dist/core/{p-949d08d3.entry.js → p-9cb83a2e.entry.js} +2 -2
- package/dist/core/{p-d2d17d6d.entry.js → p-a08d6b46.entry.js} +2 -2
- package/dist/core/p-a08d6b46.entry.js.map +1 -0
- package/dist/core/p-a321feee.entry.js +2 -0
- package/dist/core/p-a321feee.entry.js.map +1 -0
- package/dist/core/{p-45c553db.entry.js → p-a780a34b.entry.js} +2 -2
- package/dist/core/{p-90814d32.entry.js → p-aad03a3c.entry.js} +2 -2
- package/dist/core/{p-ec14c783.entry.js → p-aaf4e367.entry.js} +2 -2
- package/dist/core/{p-8c00614c.entry.js → p-b52c44eb.entry.js} +2 -2
- package/dist/core/{p-0722d7b6.entry.js → p-b777f0a1.entry.js} +2 -2
- package/dist/core/p-b777f0a1.entry.js.map +1 -0
- package/dist/core/p-b77b1e1f.js +2 -0
- package/dist/core/p-b77b1e1f.js.map +1 -0
- package/dist/core/p-b997ad5e.entry.js +2 -0
- package/dist/core/p-b997ad5e.entry.js.map +1 -0
- package/dist/core/{p-a0af1b0a.entry.js → p-bb7652cd.entry.js} +2 -2
- package/dist/core/{p-1d8559f0.entry.js → p-c156e6e9.entry.js} +2 -2
- package/dist/core/{p-e1814e7e.entry.js → p-cad23b7d.entry.js} +2 -2
- package/dist/core/{p-6aa8d3ce.entry.js → p-cbca04bb.entry.js} +2 -2
- package/dist/core/p-cbca04bb.entry.js.map +1 -0
- package/dist/core/{p-e176881a.entry.js → p-cc64e5ef.entry.js} +2 -2
- package/dist/core/{p-d478d13e.entry.js → p-cfbacca1.entry.js} +2 -2
- package/dist/core/p-cfbacca1.entry.js.map +1 -0
- package/dist/core/{p-ebc47282.entry.js → p-daec7e69.entry.js} +2 -2
- package/dist/core/{p-5ac3adb9.entry.js → p-e7767c0d.entry.js} +2 -2
- package/dist/core/p-e7767c0d.entry.js.map +1 -0
- package/dist/core/p-e938eb31.entry.js +2 -0
- package/dist/core/p-e938eb31.entry.js.map +1 -0
- package/dist/core/{p-81f60443.entry.js → p-ea7a3d30.entry.js} +2 -2
- package/dist/core/p-ea7a3d30.entry.js.map +1 -0
- package/dist/core/{p-ad5aca6f.entry.js → p-ea890d3d.entry.js} +2 -2
- package/dist/core/{p-880afd4b.entry.js → p-ebd688b9.entry.js} +2 -2
- package/dist/core/p-ebd688b9.entry.js.map +1 -0
- package/dist/core/p-ef70ea50.entry.js +2 -0
- package/dist/core/p-ef70ea50.entry.js.map +1 -0
- package/dist/core/{p-1fc4b88f.entry.js → p-f64996f1.entry.js} +2 -2
- package/dist/core/p-f64996f1.entry.js.map +1 -0
- package/dist/core/{p-0f998905.entry.js → p-f661ba76.entry.js} +2 -2
- package/dist/core/p-f661ba76.entry.js.map +1 -0
- package/dist/core/{p-4e43b272.entry.js → p-f84ac9c6.entry.js} +2 -2
- package/dist/core/{p-df029b1b.entry.js → p-fb9376f0.entry.js} +2 -2
- package/dist/core/p-fb9376f0.entry.js.map +1 -0
- package/dist/esm/core.js +1 -1
- package/dist/esm/{helpers-0f85537f.js → helpers-66681c73.js} +4 -17
- package/dist/esm/helpers-66681c73.js.map +1 -0
- package/dist/esm/ic-accordion-group.entry.js +1 -1
- package/dist/esm/ic-accordion.entry.js +17 -10
- package/dist/esm/ic-accordion.entry.js.map +1 -1
- package/dist/esm/ic-action-chip.entry.js +7 -3
- package/dist/esm/ic-action-chip.entry.js.map +1 -1
- package/dist/esm/ic-alert.entry.js +1 -1
- package/dist/esm/ic-back-to-top.entry.js +2 -2
- package/dist/esm/ic-back-to-top.entry.js.map +1 -1
- package/dist/esm/ic-badge.entry.js +2 -2
- package/dist/esm/ic-badge.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb-group.entry.js +2 -2
- package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb.entry.js +1 -1
- package/dist/esm/ic-button_3.entry.js +7 -7
- package/dist/esm/ic-button_3.entry.js.map +1 -1
- package/dist/esm/ic-card-horizontal.entry.js +170 -0
- package/dist/esm/ic-card-horizontal.entry.js.map +1 -0
- package/dist/esm/ic-card-vertical.entry.js +2 -2
- package/dist/esm/ic-card-vertical.entry.js.map +1 -1
- package/dist/esm/ic-checkbox-group.entry.js +3 -3
- package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
- package/dist/esm/ic-checkbox.entry.js +6 -6
- package/dist/esm/ic-checkbox.entry.js.map +1 -1
- package/dist/esm/ic-chip.entry.js +7 -3
- package/dist/esm/ic-chip.entry.js.map +1 -1
- package/dist/esm/ic-classification-banner.entry.js +13 -5
- package/dist/esm/ic-classification-banner.entry.js.map +1 -1
- package/dist/esm/ic-data-list.entry.js +2 -2
- package/dist/esm/ic-data-row.entry.js +3 -3
- package/dist/esm/ic-dialog.entry.js +2 -2
- package/dist/esm/ic-divider.entry.js +17 -8
- package/dist/esm/ic-divider.entry.js.map +1 -1
- package/dist/esm/ic-empty-state.entry.js +3 -3
- package/dist/esm/ic-footer-link-group.entry.js +1 -1
- package/dist/esm/ic-footer-link.entry.js +4 -4
- package/dist/esm/ic-footer-link.entry.js.map +1 -1
- package/dist/esm/ic-footer.entry.js +1 -1
- package/dist/esm/ic-hero.entry.js +5 -5
- package/dist/esm/ic-horizontal-scroll.entry.js +7 -7
- package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -1
- package/dist/esm/ic-input-component-container_3.entry.js +218 -86
- package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
- package/dist/esm/ic-input-label_2.entry.js +17 -12
- package/dist/esm/ic-input-label_2.entry.js.map +1 -1
- package/dist/esm/ic-layout-grid-item.entry.js +2 -2
- package/dist/esm/ic-layout-grid.entry.js +2 -2
- package/dist/esm/ic-link.entry.js +3 -3
- package/dist/esm/ic-link.entry.js.map +1 -1
- package/dist/esm/ic-menu-group.entry.js +2 -2
- package/dist/esm/ic-menu-item.entry.js +1 -1
- package/dist/esm/ic-navigation-button.entry.js +1 -1
- package/dist/esm/ic-navigation-group.entry.js +3 -3
- package/dist/esm/ic-navigation-group.entry.js.map +1 -1
- package/dist/esm/ic-navigation-item.entry.js +7 -5
- package/dist/esm/ic-navigation-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-menu.entry.js +5 -5
- package/dist/esm/ic-page-header.entry.js +8 -8
- package/dist/esm/ic-page-header.entry.js.map +1 -1
- package/dist/esm/ic-pagination-bar.entry.js +385 -0
- package/dist/esm/ic-pagination-bar.entry.js.map +1 -0
- package/dist/esm/ic-pagination-item.entry.js +3 -3
- package/dist/esm/ic-pagination-item.entry.js.map +1 -1
- package/dist/esm/ic-pagination_3.entry.js +1406 -0
- package/dist/esm/ic-pagination_3.entry.js.map +1 -0
- package/dist/esm/ic-popover-menu.entry.js +5 -5
- package/dist/esm/ic-radio-group.entry.js +5 -5
- package/dist/esm/ic-radio-option.entry.js +6 -6
- package/dist/esm/ic-radio-option.entry.js.map +1 -1
- package/dist/esm/ic-search-bar.entry.js +12 -12
- package/dist/esm/ic-search-bar.entry.js.map +1 -1
- package/dist/esm/ic-section-container.entry.js +2 -2
- package/dist/esm/ic-side-navigation.entry.js +30 -15
- package/dist/esm/ic-side-navigation.entry.js.map +1 -1
- package/dist/esm/ic-skeleton.entry.js +2 -2
- package/dist/esm/ic-skip-link.entry.js +2 -2
- package/dist/esm/ic-status-tag.entry.js +3 -3
- package/dist/esm/ic-step.entry.js +14 -14
- package/dist/esm/ic-stepper.entry.js +3 -3
- package/dist/esm/ic-stepper.entry.js.map +1 -1
- package/dist/esm/ic-switch.entry.js +6 -6
- package/dist/esm/ic-switch.entry.js.map +1 -1
- package/dist/esm/ic-tab-context.entry.js +1 -2
- package/dist/esm/ic-tab-context.entry.js.map +1 -1
- package/dist/esm/ic-tab-group.entry.js +3 -3
- package/dist/esm/ic-tab-panel.entry.js +2 -2
- package/dist/esm/ic-tab.entry.js +2 -2
- package/dist/esm/ic-tab.entry.js.map +1 -1
- package/dist/esm/ic-theme.entry.js +2 -2
- package/dist/esm/ic-toast-region.entry.js +1 -1
- package/dist/esm/ic-toast.entry.js +8 -7
- package/dist/esm/ic-toast.entry.js.map +1 -1
- package/dist/esm/ic-toggle-button-group.entry.js +4 -4
- package/dist/esm/ic-toggle-button-group.entry.js.map +1 -1
- package/dist/esm/ic-toggle-button.entry.js +3 -3
- package/dist/esm/ic-top-navigation.entry.js +2 -2
- package/dist/esm/ic-top-navigation.entry.js.map +1 -1
- package/dist/esm/ic-typography.entry.js +2 -2
- package/dist/esm/ic-typography.entry.js.map +1 -1
- package/dist/esm/index-a7a720e7.js +16 -16
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/ic-card-horizontal/ic-card-horizontal.d.ts +89 -0
- package/dist/types/components/ic-checkbox-group/ic-checkbox-group.d.ts +1 -0
- package/dist/types/components/ic-classification-banner/ic-classification-banner.d.ts +4 -0
- package/dist/types/components/ic-divider/ic-divider.d.ts +2 -0
- package/dist/types/components/ic-input-label/ic-input-label.d.ts +4 -1
- package/dist/types/components/ic-menu/ic-menu.d.ts +11 -1
- package/dist/types/components/ic-pagination-bar/ic-pagination-bar.d.ts +162 -0
- package/dist/types/components/ic-pagination-bar/ic-pagination-bar.types.d.ts +8 -0
- package/dist/types/components/ic-select/ic-select.d.ts +53 -80
- package/dist/types/components/ic-select/ic-select.types.d.ts +43 -0
- package/dist/types/components/ic-side-navigation/ic-side-navigation.d.ts +3 -2
- package/dist/types/components.d.ts +357 -7
- package/dist/types/utils/helpers.d.ts +2 -4
- package/dist/types/utils/types.d.ts +1 -0
- package/hydrate/index.js +1504 -900
- package/hydrate/index.mjs +1504 -900
- package/package.json +2 -2
- package/vscode-data.json +248 -0
- package/dist/cjs/helpers-3a796e7a.js.map +0 -1
- package/dist/cjs/ic-pagination.cjs.entry.js +0 -312
- package/dist/cjs/ic-pagination.cjs.entry.js.map +0 -1
- package/dist/cjs/ic-select.cjs.entry.js +0 -879
- package/dist/cjs/ic-select.cjs.entry.js.map +0 -1
- package/dist/cjs/ic-text-field.cjs.entry.js +0 -433
- package/dist/cjs/ic-text-field.cjs.entry.js.map +0 -1
- package/dist/core/p-0722d7b6.entry.js.map +0 -1
- package/dist/core/p-0f6fd5d3.entry.js +0 -2
- package/dist/core/p-0f6fd5d3.entry.js.map +0 -1
- package/dist/core/p-0f998905.entry.js.map +0 -1
- package/dist/core/p-107281c4.entry.js +0 -2
- package/dist/core/p-107281c4.entry.js.map +0 -1
- package/dist/core/p-1fc4b88f.entry.js.map +0 -1
- package/dist/core/p-23dc27a8.entry.js +0 -2
- package/dist/core/p-3582c7df.entry.js.map +0 -1
- package/dist/core/p-3c7e90a7.entry.js +0 -2
- package/dist/core/p-3c7e90a7.entry.js.map +0 -1
- package/dist/core/p-57ce68e5.entry.js +0 -2
- package/dist/core/p-57ce68e5.entry.js.map +0 -1
- package/dist/core/p-5ac3adb9.entry.js.map +0 -1
- package/dist/core/p-656a9127.entry.js +0 -2
- package/dist/core/p-656a9127.entry.js.map +0 -1
- package/dist/core/p-6740c915.entry.js.map +0 -1
- package/dist/core/p-6aa8d3ce.entry.js.map +0 -1
- package/dist/core/p-72344764.entry.js +0 -2
- package/dist/core/p-72344764.entry.js.map +0 -1
- package/dist/core/p-7c38dd1f.entry.js +0 -2
- package/dist/core/p-7c38dd1f.entry.js.map +0 -1
- package/dist/core/p-81f60443.entry.js.map +0 -1
- package/dist/core/p-840c647f.entry.js +0 -2
- package/dist/core/p-840c647f.entry.js.map +0 -1
- package/dist/core/p-86989873.entry.js.map +0 -1
- package/dist/core/p-880afd4b.entry.js.map +0 -1
- package/dist/core/p-8b1567c9.entry.js.map +0 -1
- package/dist/core/p-8f45f956.entry.js.map +0 -1
- package/dist/core/p-9b60ca02.entry.js +0 -2
- package/dist/core/p-9b60ca02.entry.js.map +0 -1
- package/dist/core/p-a16415e4.entry.js +0 -3
- package/dist/core/p-a16415e4.entry.js.map +0 -1
- package/dist/core/p-b22fc28d.entry.js +0 -2
- package/dist/core/p-b22fc28d.entry.js.map +0 -1
- package/dist/core/p-b8c0c142.entry.js.map +0 -1
- package/dist/core/p-c3f5907e.entry.js +0 -2
- package/dist/core/p-c3f5907e.entry.js.map +0 -1
- package/dist/core/p-c7f8547d.entry.js.map +0 -1
- package/dist/core/p-cdbbcef4.entry.js.map +0 -1
- package/dist/core/p-d2d17d6d.entry.js.map +0 -1
- package/dist/core/p-d478d13e.entry.js.map +0 -1
- package/dist/core/p-dbc8bf0c.js +0 -2
- package/dist/core/p-dbc8bf0c.js.map +0 -1
- package/dist/core/p-df029b1b.entry.js.map +0 -1
- package/dist/core/p-f5fd4a76.entry.js.map +0 -1
- package/dist/core/p-fdb587ab.entry.js +0 -2
- package/dist/core/p-fdb587ab.entry.js.map +0 -1
- package/dist/esm/helpers-0f85537f.js.map +0 -1
- package/dist/esm/ic-pagination.entry.js.map +0 -1
- package/dist/esm/ic-select.entry.js +0 -875
- package/dist/esm/ic-select.entry.js.map +0 -1
- package/dist/esm/ic-text-field.entry.js.map +0 -1
- /package/dist/core/{p-ba4abeac.entry.js.map → p-09505807.entry.js.map} +0 -0
- /package/dist/core/{p-fe0153ec.entry.js.map → p-2a124daf.entry.js.map} +0 -0
- /package/dist/core/{p-aed1c7e7.entry.js.map → p-347cc084.entry.js.map} +0 -0
- /package/dist/core/{p-b5e39585.entry.js.map → p-3aed13ba.entry.js.map} +0 -0
- /package/dist/core/{p-276a6c8f.entry.js.map → p-46fd555f.entry.js.map} +0 -0
- /package/dist/core/{p-889bb8db.entry.js.map → p-56de4f4b.entry.js.map} +0 -0
- /package/dist/core/{p-608b4912.entry.js.map → p-5976de6e.entry.js.map} +0 -0
- /package/dist/core/{p-45076d7e.entry.js.map → p-659d048d.entry.js.map} +0 -0
- /package/dist/core/{p-1edf2689.entry.js.map → p-67de1290.entry.js.map} +0 -0
- /package/dist/core/{p-f700b759.entry.js.map → p-73043f57.entry.js.map} +0 -0
- /package/dist/core/{p-7b8e5926.entry.js.map → p-735d3096.entry.js.map} +0 -0
- /package/dist/core/{p-0301d1c8.entry.js.map → p-7b538fd1.entry.js.map} +0 -0
- /package/dist/core/{p-0d711c6a.entry.js.map → p-8a833e82.entry.js.map} +0 -0
- /package/dist/core/{p-c16e982c.entry.js.map → p-90678e67.entry.js.map} +0 -0
- /package/dist/core/{p-93e1ba0a.entry.js.map → p-9502fb86.entry.js.map} +0 -0
- /package/dist/core/{p-76e8df31.entry.js.map → p-9c2b2cb9.entry.js.map} +0 -0
- /package/dist/core/{p-949d08d3.entry.js.map → p-9cb83a2e.entry.js.map} +0 -0
- /package/dist/core/{p-45c553db.entry.js.map → p-a780a34b.entry.js.map} +0 -0
- /package/dist/core/{p-90814d32.entry.js.map → p-aad03a3c.entry.js.map} +0 -0
- /package/dist/core/{p-ec14c783.entry.js.map → p-aaf4e367.entry.js.map} +0 -0
- /package/dist/core/{p-8c00614c.entry.js.map → p-b52c44eb.entry.js.map} +0 -0
- /package/dist/core/{p-a0af1b0a.entry.js.map → p-bb7652cd.entry.js.map} +0 -0
- /package/dist/core/{p-1d8559f0.entry.js.map → p-c156e6e9.entry.js.map} +0 -0
- /package/dist/core/{p-e1814e7e.entry.js.map → p-cad23b7d.entry.js.map} +0 -0
- /package/dist/core/{p-e176881a.entry.js.map → p-cc64e5ef.entry.js.map} +0 -0
- /package/dist/core/{p-ebc47282.entry.js.map → p-daec7e69.entry.js.map} +0 -0
- /package/dist/core/{p-ad5aca6f.entry.js.map → p-ea890d3d.entry.js.map} +0 -0
- /package/dist/core/{p-4e43b272.entry.js.map → p-f84ac9c6.entry.js.map} +0 -0
|
@@ -1,5 +1,17 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s)
|
|
4
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
1
13
|
import { Host, h, forceUpdate, } from "@stencil/core";
|
|
2
|
-
import {
|
|
14
|
+
import { addFormResetListener, checkSlotInChildMutations, getInputDescribedByText, isMobileOrTablet, isSlotUsed, removeDisabledFalse, removeFormResetListener, renderHiddenInput, } from "../../utils/helpers";
|
|
3
15
|
import { IC_INHERITED_ARIA } from "../../utils/constants";
|
|
4
16
|
import { IcInformationStatus, } from "../../utils/types";
|
|
5
17
|
import Expand from "./assets/Expand.svg";
|
|
@@ -12,22 +24,18 @@ const MUTABLE_ATTRIBUTES = [...IC_INHERITED_ARIA, "tabindex", "title"];
|
|
|
12
24
|
*/
|
|
13
25
|
export class Select {
|
|
14
26
|
constructor() {
|
|
15
|
-
this.blurredBecauseButtonPressed = false;
|
|
16
|
-
this.hasSetDefaultValue = false;
|
|
17
|
-
this.hasTimedOut = false;
|
|
18
|
-
this.inheritedAttributes = {};
|
|
19
|
-
this.initialOptionsEmpty = false;
|
|
20
27
|
this.inputId = `ic-select-input-${inputIds++}`;
|
|
21
28
|
this.menuId = `${this.inputId}-menu`;
|
|
22
|
-
this.
|
|
23
|
-
this.searchableMenuItemSelected = false;
|
|
24
|
-
this.ungroupedOptions = [];
|
|
29
|
+
this.inheritedAttributes = {};
|
|
25
30
|
this.hostMutationObserver = null;
|
|
26
|
-
this.
|
|
27
|
-
this.
|
|
28
|
-
this.
|
|
31
|
+
this.timeoutTimer = null;
|
|
32
|
+
this.hasTimedOut = false;
|
|
33
|
+
this.initialRender = true;
|
|
29
34
|
this.pressedCharacters = "";
|
|
30
|
-
this.
|
|
35
|
+
this.hasError = false;
|
|
36
|
+
this.searchableSelectInputValue = "";
|
|
37
|
+
this.selectButtonAriaLiveText = "";
|
|
38
|
+
this.selectInputAriaLiveText = "";
|
|
31
39
|
/**
|
|
32
40
|
* If `true`, the disabled state will be set.
|
|
33
41
|
*/
|
|
@@ -124,6 +132,10 @@ export class Select {
|
|
|
124
132
|
* The text to display as the validation message.
|
|
125
133
|
*/
|
|
126
134
|
this.validationText = "";
|
|
135
|
+
/**
|
|
136
|
+
* If `true` and on a mobile or tablet device, the native select element will be used instead of the custom select component for better usability.
|
|
137
|
+
*/
|
|
138
|
+
this.useNativeSelectOnMobile = true;
|
|
127
139
|
/**
|
|
128
140
|
* If `true`, the loading state will be triggered when fetching options asynchronously.
|
|
129
141
|
*/
|
|
@@ -132,8 +144,7 @@ export class Select {
|
|
|
132
144
|
* The possible selection options.
|
|
133
145
|
*/
|
|
134
146
|
this.options = [];
|
|
135
|
-
this.
|
|
136
|
-
this.uniqueOptions = this.options;
|
|
147
|
+
this.flatOptions = [];
|
|
137
148
|
/**
|
|
138
149
|
* The amount of time, in milliseconds, to wait to trigger the `icInput` event after each keystroke.
|
|
139
150
|
*/
|
|
@@ -146,147 +157,125 @@ export class Select {
|
|
|
146
157
|
*/
|
|
147
158
|
this.value = null;
|
|
148
159
|
this.initialValue = this.value;
|
|
149
|
-
this.
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
}
|
|
164
|
-
});
|
|
165
|
-
if (forceComponentUpdate) {
|
|
166
|
-
forceUpdate(this);
|
|
160
|
+
this.open = false;
|
|
161
|
+
this.getValidatedValue = (value) => {
|
|
162
|
+
const validValues = this.flatOptions.map((opt) => opt.value);
|
|
163
|
+
if (validValues.length === 0)
|
|
164
|
+
return value;
|
|
165
|
+
if (this.multiple) {
|
|
166
|
+
if (!value)
|
|
167
|
+
return null;
|
|
168
|
+
const arr = Array.isArray(value) ? value : [value]; // Ensure value is an array
|
|
169
|
+
const filtered = validValues.filter((v) => arr.includes(v)); // Keep only valid values
|
|
170
|
+
return filtered.length > 0 ? filtered : null;
|
|
171
|
+
}
|
|
172
|
+
else {
|
|
173
|
+
return validValues.includes(value) ? value : null;
|
|
167
174
|
}
|
|
168
175
|
};
|
|
169
|
-
this.
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
176
|
+
this.getFilteredOptions = (searchString, searchMatchPosition, includeDescriptionsInSearch, includeGroupTitlesInSearch) => {
|
|
177
|
+
const search = searchString.toLowerCase();
|
|
178
|
+
const match = (text, method) => method === "anywhere" ? text.includes(search) : text.startsWith(search);
|
|
179
|
+
return this.unflattenOptions(this.flatOptions.filter((option) => {
|
|
180
|
+
var _a, _b, _c, _d;
|
|
181
|
+
const label = option.label.toLowerCase();
|
|
182
|
+
const group = (_b = (_a = option.group) === null || _a === void 0 ? void 0 : _a.toLowerCase()) !== null && _b !== void 0 ? _b : "";
|
|
183
|
+
const description = (_d = (_c = option.description) === null || _c === void 0 ? void 0 : _c.toLowerCase()) !== null && _d !== void 0 ? _d : "";
|
|
184
|
+
return (match(label, searchMatchPosition) ||
|
|
185
|
+
(includeDescriptionsInSearch &&
|
|
186
|
+
match(description, searchMatchPosition)) ||
|
|
187
|
+
(includeGroupTitlesInSearch && match(group, searchMatchPosition)));
|
|
188
|
+
}));
|
|
181
189
|
};
|
|
182
|
-
this.
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
190
|
+
this.getOptions = () => {
|
|
191
|
+
const options = this.searchable &&
|
|
192
|
+
!this.disableAutoFiltering &&
|
|
193
|
+
this.searchableSelectInputValue
|
|
194
|
+
? this.getFilteredOptions(this.searchableSelectInputValue, this.searchMatchPosition, this.includeDescriptionsInSearch, this.includeGroupTitlesInSearch)
|
|
195
|
+
: this.unflattenOptions(this.flatOptions);
|
|
196
|
+
if (this.hasTimedOut)
|
|
197
|
+
return [{ label: this.loadingErrorLabel, value: "", timedOut: true }];
|
|
198
|
+
if (this.loading)
|
|
199
|
+
return [{ label: this.loadingLabel, value: "", loading: true }];
|
|
200
|
+
if (options.length > 0)
|
|
201
|
+
return options;
|
|
202
|
+
return [{ label: this.emptyOptionListText, value: "" }];
|
|
203
|
+
};
|
|
204
|
+
this.getFlatOptions = (options) => options.flatMap((item) => ("children" in item && item.children
|
|
205
|
+
? [...item.children.map((child) => (Object.assign({ group: item.label }, child)))]
|
|
206
|
+
: [item]));
|
|
207
|
+
this.unflattenOptions = (flatOptions) => {
|
|
208
|
+
const groupMap = new Map();
|
|
209
|
+
const result = [];
|
|
210
|
+
for (const option of flatOptions) {
|
|
211
|
+
if (option.group) {
|
|
212
|
+
let group = groupMap.get(option.group);
|
|
213
|
+
if (!group) {
|
|
214
|
+
group = { label: option.group, children: [] };
|
|
215
|
+
groupMap.set(option.group, group);
|
|
216
|
+
result.push(group);
|
|
195
217
|
}
|
|
196
|
-
|
|
218
|
+
const { group: _ } = option, rest = __rest(option, ["group"]);
|
|
219
|
+
group.children.push(rest);
|
|
197
220
|
}
|
|
198
221
|
else {
|
|
199
|
-
|
|
222
|
+
result.push(option);
|
|
200
223
|
}
|
|
201
224
|
}
|
|
202
|
-
|
|
203
|
-
|
|
225
|
+
return result;
|
|
226
|
+
};
|
|
227
|
+
this.getLabelFromValue = (value) => { var _a, _b; return (_b = (_a = this.flatOptions.find((option) => option.value === value)) === null || _a === void 0 ? void 0 : _a.label) !== null && _b !== void 0 ? _b : ""; };
|
|
228
|
+
// Construct the string that will be shown in the select input or button
|
|
229
|
+
this.getLabelString = () => {
|
|
230
|
+
if (Array.isArray(this.value)) {
|
|
231
|
+
return this.value.map(this.getLabelFromValue).filter(Boolean).join(", ");
|
|
204
232
|
}
|
|
205
|
-
this.
|
|
233
|
+
return (this.getLabelFromValue(this.value) ||
|
|
234
|
+
(this.searchable ? "" : this.placeholder));
|
|
206
235
|
};
|
|
207
|
-
this.
|
|
208
|
-
|
|
209
|
-
|
|
236
|
+
this.handleClick = (event) => {
|
|
237
|
+
var _a;
|
|
238
|
+
if (event.detail !== 0) {
|
|
239
|
+
(_a = this.menu) === null || _a === void 0 ? void 0 : _a.handleClickOpen();
|
|
240
|
+
}
|
|
210
241
|
};
|
|
211
|
-
this.
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
this.uniqueOptions = this.deduplicateOptions(this.options);
|
|
218
|
-
}
|
|
219
|
-
else {
|
|
220
|
-
this.noOptions = [{ label: this.emptyOptionListText, value: "" }];
|
|
221
|
-
this.uniqueOptions = this.noOptions;
|
|
222
|
-
}
|
|
223
|
-
this.filteredOptions = this.uniqueOptions;
|
|
224
|
-
if (this.isExternalFiltering()) {
|
|
225
|
-
// When searchable select
|
|
226
|
-
this.noOptions = null;
|
|
227
|
-
this.updateSearchableSelectResultAriaLive();
|
|
228
|
-
this.setDefaultValue();
|
|
229
|
-
}
|
|
230
|
-
else if (this.initialOptionsEmpty) {
|
|
231
|
-
this.setDefaultValue();
|
|
232
|
-
this.initialOptionsEmpty = false;
|
|
233
|
-
}
|
|
242
|
+
this.handleExpandIconMouseDown = (event) => {
|
|
243
|
+
var _a;
|
|
244
|
+
if (!this.disabled) {
|
|
245
|
+
event.preventDefault();
|
|
246
|
+
(_a = this.searchableSelectElement) === null || _a === void 0 ? void 0 : _a.focus();
|
|
247
|
+
this.handleClick(event);
|
|
234
248
|
}
|
|
235
|
-
|
|
236
|
-
|
|
249
|
+
};
|
|
250
|
+
this.handleBlur = ({ relatedTarget }) => {
|
|
251
|
+
var _a, _b;
|
|
252
|
+
const target = relatedTarget;
|
|
253
|
+
if (this.el.contains(target) ||
|
|
254
|
+
((_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.contains(target)) ||
|
|
255
|
+
((_b = this.menu) === null || _b === void 0 ? void 0 : _b.contains(target)) ||
|
|
256
|
+
target === this.clearButton) {
|
|
257
|
+
return;
|
|
237
258
|
}
|
|
259
|
+
this.open = false;
|
|
260
|
+
this.handleFocusIndicatorDisplay();
|
|
261
|
+
if (this.searchable) {
|
|
262
|
+
this.searchableSelectInputValue = "";
|
|
263
|
+
}
|
|
264
|
+
this.icBlur.emit();
|
|
238
265
|
};
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
* @param options array of IcMenuOptions
|
|
242
|
-
* @returns a new options object, with all entries possessing a duplicate 'value' field removed
|
|
243
|
-
*/
|
|
244
|
-
this.deduplicateOptions = (options) => {
|
|
245
|
-
const uniqueValues = [];
|
|
246
|
-
const dedupedOptions = [];
|
|
247
|
-
options.forEach((option) => {
|
|
248
|
-
if (option.children) {
|
|
249
|
-
//If an option has children, we will loop through them
|
|
250
|
-
const dedupedChildren = [];
|
|
251
|
-
option.children.forEach((child) => {
|
|
252
|
-
if (uniqueValues.includes(child.value)) {
|
|
253
|
-
console.warn(`ic-select with label ${this.label} was populated with duplicate option (value: ${child.value}) which has been removed.`);
|
|
254
|
-
}
|
|
255
|
-
else {
|
|
256
|
-
uniqueValues.push(child.value);
|
|
257
|
-
dedupedChildren.push(child);
|
|
258
|
-
}
|
|
259
|
-
});
|
|
260
|
-
// construct a modified option, inserting the deduplicated children alongside the original information
|
|
261
|
-
dedupedOptions.push(Object.assign(Object.assign({}, option), { children: dedupedChildren }));
|
|
262
|
-
}
|
|
263
|
-
else {
|
|
264
|
-
// If an option does not have children, assess to see if it's value has been included already
|
|
265
|
-
if (uniqueValues.includes(option.value)) {
|
|
266
|
-
console.warn(`ic-select with label ${this.label} was populated with duplicate option (value: ${option.value}) which has been removed.`);
|
|
267
|
-
}
|
|
268
|
-
else {
|
|
269
|
-
uniqueValues.push(option.value);
|
|
270
|
-
dedupedOptions.push(option);
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
});
|
|
274
|
-
return dedupedOptions;
|
|
266
|
+
this.handleTimeoutBlur = (event) => {
|
|
267
|
+
this.handleBlur(event.detail.ev);
|
|
275
268
|
};
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
*/
|
|
279
|
-
this.setOptionsValuesFromLabels = () => {
|
|
280
|
-
if (this.options.length > 0) {
|
|
281
|
-
this.options.map((option) => {
|
|
282
|
-
if (!option.value) {
|
|
283
|
-
option.value = option.label;
|
|
284
|
-
}
|
|
285
|
-
});
|
|
286
|
-
}
|
|
269
|
+
this.handleFocus = () => {
|
|
270
|
+
this.icFocus.emit();
|
|
287
271
|
};
|
|
288
|
-
this.
|
|
289
|
-
this.
|
|
272
|
+
this.handleClear = () => {
|
|
273
|
+
this.clearTimer();
|
|
274
|
+
this.loading = false;
|
|
275
|
+
this.value = null;
|
|
276
|
+
this.searchableSelectInputValue = "";
|
|
277
|
+
this.icClear.emit();
|
|
278
|
+
this.setFocus();
|
|
290
279
|
};
|
|
291
280
|
this.setTextColor = () => {
|
|
292
281
|
if (this.nativeSelectElement) {
|
|
@@ -296,94 +285,13 @@ export class Select {
|
|
|
296
285
|
: "select-option-selected";
|
|
297
286
|
}
|
|
298
287
|
};
|
|
299
|
-
this.setMenuChange = (open) => {
|
|
300
|
-
if (this.open !== open) {
|
|
301
|
-
this.open = open;
|
|
302
|
-
}
|
|
303
|
-
};
|
|
304
|
-
this.getLabelFromValue = (value) => getLabelFromValue(value, this.uniqueOptions);
|
|
305
|
-
this.getMultipleOptionsString = (selectedValues) => selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.map((value) => this.getLabelFromValue(value)).filter((label) => !!label).join(", ");
|
|
306
|
-
this.getFilteredChildMenuOptions = (option) => (Object.assign(Object.assign({}, option), { children: option.children &&
|
|
307
|
-
getFilteredMenuOptions(option.children, this.searchable && !!this.includeDescriptionsInSearch, this.searchable
|
|
308
|
-
? this.searchableSelectInputValue || ""
|
|
309
|
-
: this.pressedCharacters, this.searchable ? this.searchMatchPosition : "start") }));
|
|
310
|
-
// (For multi-select) get value array, i.e. selected option values, in order they appear in option list
|
|
311
|
-
this.getValueSortedByOptions = (value) => {
|
|
312
|
-
const valueArray = value;
|
|
313
|
-
const valuesFromAllOptions = this.ungroupedOptions.map((option) => option.value);
|
|
314
|
-
valueArray.sort((a, b) => valuesFromAllOptions.indexOf(a) - valuesFromAllOptions.indexOf(b));
|
|
315
|
-
return valueArray;
|
|
316
|
-
};
|
|
317
288
|
this.handleNativeSelectChange = () => {
|
|
318
289
|
if (this.nativeSelectElement) {
|
|
319
290
|
this.icOptionSelect.emit({ value: this.nativeSelectElement.value });
|
|
320
|
-
this.
|
|
291
|
+
this.icChange.emit({ value: this.nativeSelectElement.value });
|
|
321
292
|
}
|
|
322
293
|
this.setTextColor();
|
|
323
294
|
};
|
|
324
|
-
// Handle option select for when a custom input box and menu is rendered
|
|
325
|
-
// (rather than native <select> - rendered when viewed on a mobile / tablet screen)
|
|
326
|
-
this.handleCustomSelectChange = (event) => {
|
|
327
|
-
var _a, _b;
|
|
328
|
-
const { value, label, optionId } = event.detail;
|
|
329
|
-
if (label === this.emptyOptionListText) {
|
|
330
|
-
(_a = this.searchableSelectElement) === null || _a === void 0 ? void 0 : _a.focus();
|
|
331
|
-
return;
|
|
332
|
-
}
|
|
333
|
-
if (this.searchable) {
|
|
334
|
-
this.value = value || null;
|
|
335
|
-
this.searchableMenuItemSelected = true;
|
|
336
|
-
// After editing the input, if selecting the same option as before, set the input value to label again
|
|
337
|
-
if (this.value === this.currValue) {
|
|
338
|
-
this.searchableSelectInputValue =
|
|
339
|
-
this.getLabelFromValue(this.value) || null;
|
|
340
|
-
}
|
|
341
|
-
this.inputValueToFilter = null;
|
|
342
|
-
this.hiddenInputValue =
|
|
343
|
-
this.getValueFromLabel(this.searchableSelectInputValue) || null;
|
|
344
|
-
}
|
|
345
|
-
if (value) {
|
|
346
|
-
if (this.multiple && ((_b = this.value) === null || _b === void 0 ? void 0 : _b.includes(value))) {
|
|
347
|
-
this.icOptionDeselect.emit({ value });
|
|
348
|
-
}
|
|
349
|
-
else {
|
|
350
|
-
this.icOptionSelect.emit({ value });
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
this.ariaActiveDescendant = optionId;
|
|
354
|
-
this.emitIcChange(value || null);
|
|
355
|
-
};
|
|
356
|
-
this.handleSelectAllChange = ({ detail, }) => {
|
|
357
|
-
const allValues = this.ungroupedOptions
|
|
358
|
-
.filter((option) => !option.disabled)
|
|
359
|
-
.map((option) => option.value);
|
|
360
|
-
if (detail.select) {
|
|
361
|
-
// Only emit icOptionSelect for all values that are newly selected
|
|
362
|
-
const unselectedValues = this.value
|
|
363
|
-
? allValues.filter((value) => this.value && !this.value.includes(value))
|
|
364
|
-
: allValues;
|
|
365
|
-
unselectedValues.forEach((value) => this.icOptionSelect.emit({ value }));
|
|
366
|
-
}
|
|
367
|
-
else {
|
|
368
|
-
// Only emit icOptionDeselect for values that were selected
|
|
369
|
-
this.value.forEach((value) => this.icOptionDeselect.emit({ value }));
|
|
370
|
-
}
|
|
371
|
-
this.emitIcChange(detail.select ? allValues : null);
|
|
372
|
-
};
|
|
373
|
-
this.handleMenuChange = (event) => {
|
|
374
|
-
this.open = event.detail.open;
|
|
375
|
-
this.pressedCharacters = "";
|
|
376
|
-
if (this.searchable)
|
|
377
|
-
this.handleFocusIndicatorDisplay();
|
|
378
|
-
};
|
|
379
|
-
// clears the debounce delay when navigating the menu with arrow keys etc
|
|
380
|
-
// to prevent delay in change event, which should only occur when typing in input
|
|
381
|
-
this.handleMenuKeyPress = (ev) => {
|
|
382
|
-
ev.cancelBubble = true;
|
|
383
|
-
if (!this.multiple) {
|
|
384
|
-
this.handleCharacterKeyDown(ev.detail.key);
|
|
385
|
-
}
|
|
386
|
-
};
|
|
387
295
|
this.handleFocusIndicatorDisplay = () => {
|
|
388
296
|
var _a;
|
|
389
297
|
const focusIndicator = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".focus-indicator");
|
|
@@ -396,58 +304,27 @@ export class Select {
|
|
|
396
304
|
}
|
|
397
305
|
}
|
|
398
306
|
};
|
|
399
|
-
this.
|
|
400
|
-
if (!this.open) {
|
|
401
|
-
event.preventDefault();
|
|
402
|
-
}
|
|
403
|
-
};
|
|
404
|
-
this.isExternalFiltering = () => this.searchable && !!this.disableAutoFiltering;
|
|
405
|
-
this.handleClick = (event) => {
|
|
307
|
+
this.handleKeyDown = (event) => {
|
|
406
308
|
var _a, _b;
|
|
407
|
-
if (!
|
|
408
|
-
if (this.
|
|
409
|
-
this.menu
|
|
309
|
+
if (!(event.key === " " && this.pressedCharacters.length > 0)) {
|
|
310
|
+
if (this.open) {
|
|
311
|
+
(_a = this.menu) === null || _a === void 0 ? void 0 : _a.handleMenuKeyDown(event);
|
|
410
312
|
}
|
|
411
|
-
else
|
|
412
|
-
|
|
413
|
-
!((_a = this.noOptions) === null || _a === void 0 ? void 0 : _a.length) &&
|
|
414
|
-
(!this.searchable || this.searchableMenuItemSelected)) {
|
|
415
|
-
this.noOptions = null;
|
|
416
|
-
this.menu.options = this.uniqueOptions;
|
|
313
|
+
else {
|
|
314
|
+
(_b = this.menu) === null || _b === void 0 ? void 0 : _b.handleKeyboardOpen(event);
|
|
417
315
|
}
|
|
418
316
|
}
|
|
419
|
-
if (
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
var _a;
|
|
425
|
-
if (!this.disabled) {
|
|
426
|
-
event.preventDefault();
|
|
427
|
-
(_a = this.searchableSelectElement) === null || _a === void 0 ? void 0 : _a.focus();
|
|
428
|
-
this.handleClick(event);
|
|
429
|
-
}
|
|
430
|
-
};
|
|
431
|
-
this.handleClear = (event) => {
|
|
432
|
-
var _a, _b;
|
|
433
|
-
event.stopPropagation();
|
|
434
|
-
this.hasTimedOut = false;
|
|
435
|
-
clearTimeout(this.timeoutTimer);
|
|
436
|
-
this.clearInput();
|
|
437
|
-
this.emitIcChange(null);
|
|
438
|
-
this.icClear.emit();
|
|
439
|
-
if (this.searchable) {
|
|
440
|
-
this.hiddenInputValue = null;
|
|
441
|
-
(_a = this.searchableSelectElement) === null || _a === void 0 ? void 0 : _a.focus();
|
|
442
|
-
}
|
|
443
|
-
else {
|
|
444
|
-
(_b = this.customSelectElement) === null || _b === void 0 ? void 0 : _b.focus();
|
|
317
|
+
if (!this.multiple &&
|
|
318
|
+
!this.searchable &&
|
|
319
|
+
!this.selectOnEnter &&
|
|
320
|
+
/^[a-zA-Z0-9 ]$/.test(event.key)) {
|
|
321
|
+
this.handleCharacterKeyDown(event.key);
|
|
445
322
|
}
|
|
446
323
|
};
|
|
447
324
|
this.handleCharacterKeyDown = (key) => {
|
|
448
325
|
// Only close menu when space is pressed if not being used alongside character keys to quickly select options
|
|
449
326
|
if (this.open && key === " " && this.pressedCharacters.length === 0) {
|
|
450
|
-
this.
|
|
327
|
+
this.open = false;
|
|
451
328
|
}
|
|
452
329
|
if (key.length !== 1 || this.searchable) {
|
|
453
330
|
this.pressedCharacters = "";
|
|
@@ -457,385 +334,316 @@ export class Select {
|
|
|
457
334
|
this.characterKeyPressTimer = window.setTimeout(() => (this.pressedCharacters = ""), 1000);
|
|
458
335
|
if (key !== " " || !!this.pressedCharacters) {
|
|
459
336
|
this.pressedCharacters += key;
|
|
460
|
-
this.
|
|
461
|
-
if (
|
|
462
|
-
|
|
337
|
+
const filteredOptions = this.getFilteredOptions(this.pressedCharacters, "start", false, false);
|
|
338
|
+
if (filteredOptions.length > 0) {
|
|
339
|
+
const firstOption = filteredOptions[0];
|
|
340
|
+
if ("children" in firstOption) {
|
|
341
|
+
this.value = firstOption.children[0].value;
|
|
342
|
+
}
|
|
343
|
+
else {
|
|
344
|
+
this.value = firstOption.value;
|
|
345
|
+
}
|
|
463
346
|
}
|
|
464
347
|
}
|
|
465
348
|
};
|
|
466
349
|
this.handleNativeSelectKeyDown = (event) => {
|
|
467
|
-
|
|
468
|
-
event.cancelBubble = true;
|
|
469
|
-
}
|
|
470
|
-
this.handleCharacterKeyDown(event.key);
|
|
350
|
+
this.handleKeyDown(event);
|
|
471
351
|
};
|
|
472
|
-
this.
|
|
473
|
-
|
|
474
|
-
if (
|
|
475
|
-
|
|
352
|
+
this.handleSelectChange = (event) => {
|
|
353
|
+
const { value } = event.detail;
|
|
354
|
+
if (!value || this.getLabelFromValue(value) === this.emptyOptionListText) {
|
|
355
|
+
this.value = null;
|
|
356
|
+
return;
|
|
476
357
|
}
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
358
|
+
if (this.multiple) {
|
|
359
|
+
let valueArray = Array.isArray(this.value) ? [...this.value] : [];
|
|
360
|
+
const index = valueArray.indexOf(value);
|
|
361
|
+
if (index > -1) {
|
|
362
|
+
valueArray.splice(index, 1);
|
|
363
|
+
this.icOptionDeselect.emit({ value });
|
|
481
364
|
}
|
|
482
|
-
else
|
|
483
|
-
this.
|
|
484
|
-
|
|
365
|
+
else {
|
|
366
|
+
this.icOptionSelect.emit({ value });
|
|
367
|
+
valueArray.push(value);
|
|
368
|
+
valueArray = this.getValidatedValue(valueArray);
|
|
485
369
|
}
|
|
486
|
-
|
|
487
|
-
if (this.open && event.key === "Enter") {
|
|
488
|
-
this.setMenuChange(false);
|
|
370
|
+
this.value = valueArray.length ? valueArray : null;
|
|
489
371
|
}
|
|
490
372
|
else {
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
((isMacDevice() && event.metaKey) ||
|
|
496
|
-
(!isMacDevice() && event.ctrlKey));
|
|
497
|
-
if (!(this.searchable && isCtrlA)) {
|
|
498
|
-
(_a = this.menu) === null || _a === void 0 ? void 0 : _a.handleKeyboardOpen(event);
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
if (!this.multiple) {
|
|
502
|
-
this.handleCharacterKeyDown(event.key);
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
};
|
|
507
|
-
this.handleClearButtonFocus = () => {
|
|
508
|
-
this.clearButtonFocused = true;
|
|
509
|
-
};
|
|
510
|
-
this.handleClearButtonBlur = (ev) => {
|
|
511
|
-
var _a;
|
|
512
|
-
const retryButton = (_a = this.menu) === null || _a === void 0 ? void 0 : _a.querySelector("#retry-button");
|
|
513
|
-
if ((!this.searchableSelectElement ||
|
|
514
|
-
ev.relatedTarget !== this.searchableSelectElement) &&
|
|
515
|
-
(!retryButton || ev.relatedTarget !== retryButton)) {
|
|
516
|
-
this.setMenuChange(false);
|
|
517
|
-
this.handleFocusIndicatorDisplay();
|
|
373
|
+
this.icOptionSelect.emit({ value });
|
|
374
|
+
this.value = value;
|
|
375
|
+
if (this.searchable)
|
|
376
|
+
this.searchableSelectInputValue = "";
|
|
518
377
|
}
|
|
519
|
-
this.clearButtonFocused = false;
|
|
520
378
|
};
|
|
521
|
-
this.
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
379
|
+
this.handleSelectAllChange = ({ detail, }) => {
|
|
380
|
+
const allSelectableValues = this.flatOptions
|
|
381
|
+
.filter((option) => !option.disabled)
|
|
382
|
+
.map((option) => option.value);
|
|
383
|
+
if (detail.select) {
|
|
384
|
+
allSelectableValues
|
|
385
|
+
.filter((value) => { var _a; return !((_a = this.value) !== null && _a !== void 0 ? _a : []).includes(value); })
|
|
386
|
+
.forEach((value) => {
|
|
387
|
+
this.icOptionSelect.emit({ value });
|
|
388
|
+
});
|
|
389
|
+
this.value = allSelectableValues;
|
|
530
390
|
}
|
|
531
391
|
else {
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
if (!isGrouped &&
|
|
535
|
-
((_a = menuOptionsFiltered[0]) === null || _a === void 0 ? void 0 : _a.label) !== this.emptyOptionListText) {
|
|
536
|
-
newFilteredOptions = menuOptionsFiltered;
|
|
537
|
-
}
|
|
538
|
-
else if (isGrouped) {
|
|
539
|
-
newFilteredOptions = options.map((option) => this.includeGroupTitlesInSearch &&
|
|
540
|
-
menuOptionsFiltered.indexOf(option) !== -1
|
|
541
|
-
? option
|
|
542
|
-
: this.getFilteredChildMenuOptions(option));
|
|
543
|
-
}
|
|
544
|
-
if (newFilteredOptions.length > 0 &&
|
|
545
|
-
(!isGrouped ||
|
|
546
|
-
newFilteredOptions.some(({ children }) => children && children.length > 0))) {
|
|
547
|
-
this.noOptions = null;
|
|
548
|
-
this.filteredOptions = newFilteredOptions;
|
|
392
|
+
this.value.forEach((value) => this.icOptionDeselect.emit({ value }));
|
|
393
|
+
this.value = null;
|
|
549
394
|
}
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
395
|
+
};
|
|
396
|
+
this.handleFormReset = () => {
|
|
397
|
+
this.value = this.initialValue;
|
|
398
|
+
this.searchableSelectInputValue = "";
|
|
399
|
+
if (this.searchable) {
|
|
400
|
+
this.hiddenInputValue = this.initialValue;
|
|
553
401
|
}
|
|
554
402
|
};
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
* Replace options with the loading message. If timeout is enabled, set the timeout and once passed, replace options with the loading error message
|
|
558
|
-
*/
|
|
559
|
-
this.triggerLoading = () => {
|
|
403
|
+
this.handleRetry = () => {
|
|
404
|
+
this.clearTimer();
|
|
560
405
|
this.hasTimedOut = false;
|
|
561
|
-
this.
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
this.timeoutTimer = window.setTimeout(() => {
|
|
570
|
-
this.loading = false;
|
|
571
|
-
this.hasTimedOut = true;
|
|
572
|
-
this.noOptions = [
|
|
573
|
-
{ label: this.loadingErrorLabel, value: "", timedOut: true },
|
|
574
|
-
];
|
|
575
|
-
this.filteredOptions = this.noOptions;
|
|
576
|
-
if (!this.searchable)
|
|
577
|
-
this.uniqueOptions = this.noOptions;
|
|
578
|
-
}, this.timeout);
|
|
579
|
-
}
|
|
406
|
+
this.hasError = false;
|
|
407
|
+
this.loading = true;
|
|
408
|
+
this.icRetryLoad.emit({
|
|
409
|
+
value: this.searchable
|
|
410
|
+
? this.searchableSelectInputValue
|
|
411
|
+
: this.hiddenInputValue,
|
|
412
|
+
});
|
|
413
|
+
this.setFocus();
|
|
580
414
|
};
|
|
581
|
-
this.getValueFromLabel = (label) => { var _a; return label && ((_a = this.uniqueOptions.find((option) => option.label === label)) === null || _a === void 0 ? void 0 : _a.value); };
|
|
582
415
|
this.handleSearchableSelectInput = (event) => {
|
|
583
|
-
this.searchableSelectInputValue = event.target.value;
|
|
584
|
-
this.emitIcInput(this.searchableSelectInputValue);
|
|
585
|
-
// De-select previous selection when input is edited
|
|
586
|
-
// Only emit icChange once when editing input
|
|
587
|
-
if (this.value != null) {
|
|
588
|
-
this.emitIcChange(null);
|
|
589
|
-
}
|
|
590
|
-
this.hiddenInputValue = null;
|
|
591
|
-
this.inputValueToFilter = this.searchableSelectInputValue;
|
|
592
|
-
this.setMenuChange(true);
|
|
593
|
-
if (!this.disableAutoFiltering) {
|
|
594
|
-
this.handleFilter();
|
|
595
|
-
clearTimeout(this.debounceAria);
|
|
596
|
-
window.setTimeout(() => {
|
|
597
|
-
this.updateSearchableSelectResultAriaLive();
|
|
598
|
-
}, 800);
|
|
599
|
-
}
|
|
600
|
-
};
|
|
601
|
-
this.updateSearchableSelectResultAriaLive = () => {
|
|
602
416
|
var _a;
|
|
603
|
-
|
|
604
|
-
if (
|
|
605
|
-
|
|
606
|
-
this.noOptions !== null ? this.emptyOptionListText : "";
|
|
607
|
-
}
|
|
608
|
-
};
|
|
609
|
-
this.updateMultiSelectedCountAriaLive = () => {
|
|
610
|
-
var _a, _b;
|
|
611
|
-
const multiSelectSelectedCountEl = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".multi-select-selected-count");
|
|
612
|
-
const selectedCount = `${(_b = this.currValue) === null || _b === void 0 ? void 0 : _b.length} of ${getOptionsWithoutGroupTitlesCount(this.options)} selected`;
|
|
613
|
-
if (multiSelectSelectedCountEl &&
|
|
614
|
-
multiSelectSelectedCountEl.innerText !== selectedCount) {
|
|
615
|
-
multiSelectSelectedCountEl.innerText = selectedCount;
|
|
616
|
-
}
|
|
617
|
-
};
|
|
618
|
-
this.getDefaultValue = (value) => this.getLabelFromValue(value) || null;
|
|
619
|
-
this.setDefaultValue = () => {
|
|
620
|
-
if (!this.hasSetDefaultValue && this.currValue) {
|
|
621
|
-
this.searchableSelectInputValue = this.searchable
|
|
622
|
-
? this.getDefaultValue(this.currValue)
|
|
623
|
-
: null;
|
|
624
|
-
this.initialValue = this.currValue;
|
|
625
|
-
this.hasSetDefaultValue = true;
|
|
417
|
+
this.updateSearchableSelectResultAriaLive();
|
|
418
|
+
if (!this.multiple) {
|
|
419
|
+
this.value = null;
|
|
626
420
|
}
|
|
421
|
+
this.searchableSelectInputValue =
|
|
422
|
+
(_a = event.target.value) !== null && _a !== void 0 ? _a : "";
|
|
423
|
+
this.open = true;
|
|
424
|
+
clearTimeout(this.debounceIcInput);
|
|
425
|
+
this.debounceIcInput = window.setTimeout(() => this.icInput.emit({ value: this.searchableSelectInputValue }), this.currDebounce);
|
|
627
426
|
};
|
|
628
|
-
this.
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
(target.tagName === "LI" && target.className.includes("option")))) {
|
|
637
|
-
return;
|
|
638
|
-
}
|
|
639
|
-
const retryButton = (_a = this.menu) === null || _a === void 0 ? void 0 : _a.querySelector("#retry-button");
|
|
640
|
-
if (this.searchable &&
|
|
641
|
-
!!this.menu &&
|
|
642
|
-
target !== this.menu &&
|
|
643
|
-
!Array.from(this.menu.querySelectorAll("[role='option']")).includes(target) &&
|
|
644
|
-
(!this.clearButton || target !== this.clearButton) &&
|
|
645
|
-
(!retryButton || target !== retryButton)) {
|
|
646
|
-
if (!this.retryButtonClick) {
|
|
647
|
-
this.setMenuChange(false);
|
|
648
|
-
// Clear input field on blur when searchable if no option is selected
|
|
649
|
-
if (!this.value) {
|
|
650
|
-
this.clearInput();
|
|
427
|
+
this.hostMutationCallback = (mutationList) => {
|
|
428
|
+
let forceComponentUpdate = false;
|
|
429
|
+
mutationList.forEach(({ attributeName, type, addedNodes, removedNodes }) => {
|
|
430
|
+
if (attributeName) {
|
|
431
|
+
const attribute = this.el.getAttribute(attributeName);
|
|
432
|
+
if (attribute && MUTABLE_ATTRIBUTES.includes(attributeName)) {
|
|
433
|
+
this.inheritedAttributes[attributeName] = attribute;
|
|
434
|
+
forceComponentUpdate = true;
|
|
651
435
|
}
|
|
652
436
|
}
|
|
653
|
-
|
|
437
|
+
else if (type === "childList") {
|
|
438
|
+
forceComponentUpdate = checkSlotInChildMutations(addedNodes, removedNodes, "icon");
|
|
439
|
+
}
|
|
440
|
+
});
|
|
441
|
+
if (forceComponentUpdate) {
|
|
442
|
+
forceUpdate(this);
|
|
654
443
|
}
|
|
655
|
-
this.retryButtonClick = false;
|
|
656
|
-
this.icBlur.emit();
|
|
657
444
|
};
|
|
658
|
-
this.
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
this.
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
}
|
|
666
|
-
this.blurredBecauseButtonPressed = false;
|
|
445
|
+
this.updateSelectButtonAriaLive = () => {
|
|
446
|
+
const value_label = this.getLabelFromValue(this.value);
|
|
447
|
+
this.selectButtonAriaLiveText = this.multiple
|
|
448
|
+
? `${this.value ? this.value.length : 0} of ${this.flatOptions.length} selected`
|
|
449
|
+
: this.value
|
|
450
|
+
? value_label !== null && value_label !== void 0 ? value_label : `${value_label} selected`
|
|
451
|
+
: "";
|
|
667
452
|
};
|
|
668
|
-
this.
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
453
|
+
this.updateSearchableSelectResultAriaLive = () => {
|
|
454
|
+
var _a, _b;
|
|
455
|
+
this.selectInputAriaLiveText =
|
|
456
|
+
((_b = (_a = this.getOptions()) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.label) == this.emptyOptionListText
|
|
457
|
+
? this.emptyOptionListText
|
|
458
|
+
: "";
|
|
674
459
|
};
|
|
675
|
-
this.
|
|
676
|
-
|
|
677
|
-
this.noOptions = null;
|
|
678
|
-
if (this.searchable) {
|
|
679
|
-
(_a = this.searchableSelectElement) === null || _a === void 0 ? void 0 : _a.setAttribute("value", "");
|
|
680
|
-
this.searchableSelectInputValue = null;
|
|
681
|
-
this.filteredOptions = this.uniqueOptions;
|
|
682
|
-
}
|
|
460
|
+
this.updateAriaActiveDescendant = (event) => {
|
|
461
|
+
this.ariaActiveDescendant = event.detail.optionId;
|
|
683
462
|
};
|
|
684
|
-
this.
|
|
463
|
+
this.handleMenuChange = (event) => {
|
|
464
|
+
this.open = event.detail.open;
|
|
465
|
+
this.pressedCharacters = "";
|
|
466
|
+
};
|
|
467
|
+
this.getDeduplicatedOptions = (flatOptions) => {
|
|
468
|
+
const seen = new Set();
|
|
469
|
+
return flatOptions.filter((option) => {
|
|
470
|
+
if (option.value && seen.has(option.value)) {
|
|
471
|
+
console.warn(`ic-select with label ${this.label} was populated with duplicate option (value: ${option.value}) which has been removed.`);
|
|
472
|
+
return false;
|
|
473
|
+
}
|
|
474
|
+
if (option.value)
|
|
475
|
+
seen.add(option.value);
|
|
476
|
+
return true;
|
|
477
|
+
});
|
|
478
|
+
};
|
|
479
|
+
this.renderNativeOption = (option) => (h("option", { value: option.value, disabled: option.disabled, selected: option.value === this.value }, option.label));
|
|
685
480
|
}
|
|
686
481
|
watchDisabledHandler() {
|
|
687
482
|
removeDisabledFalse(this.disabled, this.el);
|
|
688
483
|
}
|
|
689
484
|
loadingHandler(newValue) {
|
|
690
|
-
|
|
485
|
+
this.hasTimedOut = false;
|
|
486
|
+
if (newValue) {
|
|
487
|
+
this.hasError = false;
|
|
488
|
+
if (this.timeout) {
|
|
489
|
+
if (this.timeoutTimer) {
|
|
490
|
+
this.clearTimer();
|
|
491
|
+
}
|
|
492
|
+
this.timeoutTimer = window.setTimeout(() => {
|
|
493
|
+
this.loading = false;
|
|
494
|
+
this.hasTimedOut = true;
|
|
495
|
+
forceUpdate(this);
|
|
496
|
+
}, this.timeout);
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
else {
|
|
500
|
+
if (this.timeoutTimer) {
|
|
501
|
+
this.clearTimer();
|
|
502
|
+
}
|
|
503
|
+
}
|
|
691
504
|
}
|
|
692
|
-
|
|
693
|
-
this.
|
|
505
|
+
clearTimer() {
|
|
506
|
+
if (this.timeoutTimer) {
|
|
507
|
+
clearTimeout(this.timeoutTimer);
|
|
508
|
+
this.timeoutTimer = null;
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
optionsChangedHandler() {
|
|
512
|
+
const flat = this.getFlatOptions(this.options)
|
|
513
|
+
.filter((option) => option.value != null || option.label != null) // filter out options missing both value and label
|
|
514
|
+
.map((option) => {
|
|
515
|
+
var _a, _b;
|
|
516
|
+
return (Object.assign(Object.assign({}, option), { value: (_a = option.value) !== null && _a !== void 0 ? _a : option.label, label: (_b = option.label) !== null && _b !== void 0 ? _b : option.value }));
|
|
517
|
+
});
|
|
518
|
+
this.flatOptions = this.getDeduplicatedOptions(flat);
|
|
519
|
+
if (!this.initialRender)
|
|
520
|
+
this.loading = false;
|
|
521
|
+
this.clearTimer();
|
|
522
|
+
this.updateSelectButtonAriaLive();
|
|
694
523
|
}
|
|
695
524
|
debounceChangedHandler(newValue) {
|
|
696
525
|
if (this.currDebounce !== newValue) {
|
|
697
526
|
this.currDebounce = newValue;
|
|
698
527
|
}
|
|
699
528
|
}
|
|
700
|
-
valueChangedHandler() {
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
this.currValue = this.getLabelFromValue(this.value)
|
|
710
|
-
? this.value
|
|
711
|
-
: null;
|
|
712
|
-
}
|
|
713
|
-
}
|
|
714
|
-
if (this.searchable && this.value) {
|
|
715
|
-
// Only set if value not null - prevents whole input value being cleared when edited
|
|
716
|
-
this.searchableSelectInputValue =
|
|
717
|
-
this.getLabelFromValue(String(this.currValue)) || null;
|
|
529
|
+
valueChangedHandler(newValue) {
|
|
530
|
+
const validated = this.getValidatedValue(newValue);
|
|
531
|
+
const isEqual = Array.isArray(validated) && Array.isArray(this.value)
|
|
532
|
+
? validated.length === this.value.length &&
|
|
533
|
+
validated.every((v, i) => v === this.value[i])
|
|
534
|
+
: validated === this.value;
|
|
535
|
+
if (!isEqual) {
|
|
536
|
+
this.value = validated;
|
|
537
|
+
return;
|
|
718
538
|
}
|
|
539
|
+
this.updateSelectButtonAriaLive();
|
|
540
|
+
this.icChange.emit({ value: this.value });
|
|
719
541
|
}
|
|
720
542
|
openChangedHandler() {
|
|
721
543
|
this.open ? this.icOpen.emit() : this.icClose.emit();
|
|
544
|
+
if (!this.open) {
|
|
545
|
+
this.ariaActiveDescendant = undefined;
|
|
546
|
+
}
|
|
547
|
+
this.handleFocusIndicatorDisplay();
|
|
548
|
+
}
|
|
549
|
+
/**
|
|
550
|
+
* Sets focus on the select component.
|
|
551
|
+
*/
|
|
552
|
+
async setFocus() {
|
|
553
|
+
if (this.nativeSelectElement) {
|
|
554
|
+
this.nativeSelectElement.focus();
|
|
555
|
+
}
|
|
556
|
+
else if (this.selectElement) {
|
|
557
|
+
this.selectElement.focus();
|
|
558
|
+
}
|
|
559
|
+
else if (this.searchableSelectElement) {
|
|
560
|
+
this.searchableSelectElement.focus();
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
componentDidRender() {
|
|
564
|
+
if (this.nativeSelectElement && !this.disabled) {
|
|
565
|
+
this.setTextColor();
|
|
566
|
+
}
|
|
567
|
+
this.initialRender = false;
|
|
722
568
|
}
|
|
723
569
|
disconnectedCallback() {
|
|
724
570
|
var _a;
|
|
725
571
|
removeFormResetListener(this.el, this.handleFormReset);
|
|
726
572
|
(_a = this.hostMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
727
|
-
|
|
728
|
-
componentWillLoad() {
|
|
729
|
-
const valueInOptions = this.multiple
|
|
730
|
-
? this.getMultipleOptionsString(this.value)
|
|
731
|
-
: this.getLabelFromValue(this.value);
|
|
732
|
-
this.currValue = valueInOptions ? this.value : null;
|
|
733
|
-
this.inheritedAttributes = inheritAttributes(this.el, MUTABLE_ATTRIBUTES);
|
|
734
|
-
removeDisabledFalse(this.disabled, this.el);
|
|
735
|
-
this.setOptionsValuesFromLabels();
|
|
736
|
-
addFormResetListener(this.el, this.handleFormReset);
|
|
737
|
-
if (!this.options.length) {
|
|
738
|
-
this.initialOptionsEmpty = true;
|
|
739
|
-
this.noOptions = [{ label: this.emptyOptionListText, value: "" }];
|
|
740
|
-
this.uniqueOptions = this.noOptions;
|
|
741
|
-
this.filteredOptions = this.noOptions;
|
|
742
|
-
}
|
|
743
|
-
else {
|
|
744
|
-
this.setDefaultValue();
|
|
745
|
-
this.uniqueOptions = this.deduplicateOptions(this.options);
|
|
746
|
-
}
|
|
573
|
+
this.clearTimer();
|
|
747
574
|
}
|
|
748
575
|
componentDidLoad() {
|
|
749
|
-
|
|
750
|
-
if (this.loading) {
|
|
751
|
-
this.triggerLoading();
|
|
752
|
-
}
|
|
753
|
-
if (this.searchable) {
|
|
754
|
-
this.hiddenInputValue = this.currValue;
|
|
755
|
-
}
|
|
576
|
+
forceUpdate(this);
|
|
756
577
|
this.hostMutationObserver = new MutationObserver(this.hostMutationCallback);
|
|
757
578
|
this.hostMutationObserver.observe(this.el, {
|
|
758
579
|
attributes: true,
|
|
759
580
|
childList: true,
|
|
760
581
|
});
|
|
761
582
|
}
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
*/
|
|
770
|
-
async setFocus() {
|
|
771
|
-
if (this.nativeSelectElement) {
|
|
772
|
-
this.nativeSelectElement.focus();
|
|
773
|
-
}
|
|
774
|
-
else if (this.customSelectElement) {
|
|
775
|
-
this.customSelectElement.focus();
|
|
776
|
-
}
|
|
777
|
-
else if (this.searchableSelectElement) {
|
|
778
|
-
this.searchableSelectElement.focus();
|
|
779
|
-
}
|
|
583
|
+
componentWillLoad() {
|
|
584
|
+
this.optionsChangedHandler();
|
|
585
|
+
this.value = this.getValidatedValue(this.value);
|
|
586
|
+
this.initialValue = this.value;
|
|
587
|
+
if (this.loading)
|
|
588
|
+
this.loadingHandler(true);
|
|
589
|
+
addFormResetListener(this.el, this.handleFormReset);
|
|
780
590
|
}
|
|
781
591
|
render() {
|
|
782
|
-
|
|
783
|
-
const
|
|
784
|
-
|
|
785
|
-
// Does not cause errors when it is a multi-select - sets value correctly, to a comma-separated string
|
|
786
|
-
renderHiddenInput(this.el, searchable ? hiddenInputValue : currValue, name || inputId, disabled);
|
|
787
|
-
const invalid = `${validationStatus === IcInformationStatus.Error}`;
|
|
788
|
-
const showValidation = hasValidationStatus(validationStatus, !!disabled);
|
|
789
|
-
const describedBy = getInputDescribedByText(this.el, inputId, helperText !== "", showValidation).trim();
|
|
790
|
-
const valueLabelString = multiple
|
|
791
|
-
? this.getMultipleOptionsString(currValue)
|
|
792
|
-
: this.getLabelFromValue(currValue);
|
|
592
|
+
const { disabled, searchable, size, fullWidth, theme, readonly, hideLabel, inputId, label, helperText, required, value, options, menuId, multiple, validationStatus, open, showClearButton, selectOnEnter, loading, searchableSelectInputValue, validationText, validationAriaLive, form, ariaActiveDescendant, placeholder, name, inheritedAttributes, selectInputAriaLiveText, selectButtonAriaLiveText, } = this;
|
|
593
|
+
const hasValue = !!value;
|
|
594
|
+
const hasInput = !!searchableSelectInputValue;
|
|
793
595
|
const isClearable = !disabled &&
|
|
794
|
-
(searchable
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
596
|
+
((searchable && (hasInput || hasValue)) ||
|
|
597
|
+
(!searchable && hasValue && !loading && showClearButton));
|
|
598
|
+
const showValidation = !!validationStatus && !disabled;
|
|
599
|
+
const invalid = validationStatus === IcInformationStatus.Error;
|
|
600
|
+
const describedBy = getInputDescribedByText(this.el, inputId, helperText !== "", showValidation).trim();
|
|
601
|
+
const menuOptions = this.getOptions();
|
|
602
|
+
const noOptions = disabled ||
|
|
603
|
+
(menuOptions.length === 1 &&
|
|
604
|
+
(menuOptions[0].label === this.emptyOptionListText ||
|
|
605
|
+
"loading" in menuOptions[0] ||
|
|
606
|
+
"timedOut" in menuOptions[0]));
|
|
607
|
+
renderHiddenInput(this.el, value, name || inputId, disabled);
|
|
608
|
+
const ClearButton = () => (h("ic-button", { key: '983b6bfae4f3a9d439f23fe022652605d91f0a1e', ref: (el) => (this.clearButton = el), id: "clear-button", "aria-label": this.searchable ? "Clear input" : "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onBlur: this.handleBlur, size: size, variant: "icon-tertiary" }));
|
|
609
|
+
const NativeSelect = () => (h("select", Object.assign({ key: '2fb628398e722cff8c3759229af969600e553485', ref: (el) => (this.nativeSelectElement = el), disabled: disabled, onChange: this.handleNativeSelectChange, required: required, id: inputId, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid ? "true" : "false", onBlur: this.handleBlur, onFocus: this.handleFocus, onKeyDown: this.handleNativeSelectKeyDown, form: form }, inheritedAttributes), h("option", { key: '5fb827fef7ab7c597a2361ac4d019f9e07adb55f', value: "", selected: true, disabled: !showClearButton }, placeholder), options.map((option) => "children" in option ? (h("optgroup", { label: option.label }, option.children.map((child) => this.renderNativeOption(child)))) : (this.renderNativeOption(option)))));
|
|
610
|
+
const SelectButton = () => (h("div", { key: '47ad04d6da391fcb88a8b6a6a841dec93f53cd74', class: "select-container" }, h("button", { key: '7ee23a4f16c4aca4b287391ac5bf5f6ee4441b07', class: "select-input", role: "combobox", ref: (el) => (this.selectElement = el), id: inputId, "aria-label": `${label}, ${(multiple && value
|
|
611
|
+
? `${value.length} of ${this.flatOptions.length} selected, ${this.getLabelString()}`
|
|
612
|
+
: this.getLabelString()) || placeholder}`, onClick: this.handleClick, "aria-describedby": describedBy, "aria-invalid": invalid ? "true" : "false", "aria-haspopup": "listbox", "aria-expanded": `${open}`, "aria-controls": menuId, "aria-required": `${required}`, disabled: disabled, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur, "aria-activedescendant": ariaActiveDescendant }, h("ic-typography", { key: '438cce7c257e37d0a0aef5247d28d31586725a1e', variant: "body", class: {
|
|
613
|
+
"value-text": true,
|
|
614
|
+
"with-clear-button": !!isClearable,
|
|
615
|
+
placeholder: !value,
|
|
616
|
+
} }, this.getLabelString()), h("div", { key: '8926d05851401339717c159651b802fb41e53096', class: "select-input-end" }, isClearable && h("div", { key: '5c94e4ba98ad972001890d639b00c82887e0fb5d', class: "divider" }), h("span", { key: '23569f5196d66f2b4a834d44006f6a05446598cd', class: {
|
|
617
|
+
"expand-icon": true,
|
|
618
|
+
"expand-icon-open": open,
|
|
619
|
+
}, innerHTML: Expand, "aria-hidden": "true" }))), isClearable && h(ClearButton, { key: 'e4165cb01b0bdc1681e3d9490007182b934f40ea' }), h("div", { key: '6208229358ee8ba7a007a08f5e551d494015a347', "aria-live": "polite", "aria-atomic": "true", class: "aria-live-hidden-text" }, selectButtonAriaLiveText)));
|
|
620
|
+
const SelectInput = () => (h("div", { key: 'af39791c29e8d792c16fed1fffe08db8f621fcac', class: "searchable-select-container" }, h("input", { key: '366bd3c57ad76f130d73ab2390c557b9e8fe98c8', class: {
|
|
621
|
+
"value-text": true,
|
|
622
|
+
"select-input": true,
|
|
623
|
+
"with-clear-button": !!searchableSelectInputValue,
|
|
624
|
+
}, role: "combobox", autocomplete: "off", "aria-label": label, "aria-describedby": describedBy, "aria-activedescendant": ariaActiveDescendant, "aria-autocomplete": "list", "aria-expanded": `${open}`, "aria-invalid": invalid ? "true" : "false", "aria-required": `${required}`, "aria-controls": menuId, ref: (el) => (this.searchableSelectElement = el), id: inputId, value: multiple
|
|
625
|
+
? ""
|
|
626
|
+
: value
|
|
627
|
+
? this.getLabelString()
|
|
628
|
+
: searchableSelectInputValue || undefined, disabled: disabled, placeholder: placeholder, onInput: this.handleSearchableSelectInput, onClick: this.handleClick, onBlur: this.handleBlur, onFocus: this.handleFocus, onKeyDown: this.handleKeyDown, form: form }), isClearable && (h("div", { key: 'e9260358a6c8ac3683d1de3015064665d32d907f', class: "clear-button-container" }, h(ClearButton, { key: '0c05ed1cf92ac8fde61ba55192a8a1511338239e' }), h("div", { key: 'e44933edcc7c79459f1ecd551eec43a86fd53b11', class: "divider" }))), h("span", { key: '36e7fe34e7d438caab2967fae27bfe4fb2e49041', onMouseDown: this.handleExpandIconMouseDown, class: {
|
|
629
|
+
"expand-icon": true,
|
|
630
|
+
"expand-icon-open": open,
|
|
631
|
+
}, innerHTML: Expand, "aria-hidden": "true" }), h("div", { key: 'c3e06f04e62b273b8a7a6f9df0aa27bf71060ed4', "aria-live": "polite", role: "status", class: "aria-live-hidden-text" }, selectInputAriaLiveText)));
|
|
632
|
+
const ReadOnly = () => (h("ic-typography", { key: '979d342f453fdb2ed79a6cf231d9a40275662a44' }, h("p", { key: '221530958da8731657b5ad4d455041dc3934718f' }, this.getLabelString() === placeholder ? "" : this.getLabelString())));
|
|
633
|
+
return (h(Host, { key: 'efbdccb0f0b7e86142cd530d52a86f7ce95d6c1c', class: {
|
|
798
634
|
"ic-select-disabled": disabled,
|
|
799
635
|
"ic-select-searchable": searchable,
|
|
800
636
|
[`ic-select-${size}`]: size !== "medium",
|
|
801
637
|
"ic-select-full-width": fullWidth,
|
|
802
638
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
803
|
-
}
|
|
639
|
+
} }, h("ic-input-container", { key: '48fe83c1c79ec578f94a2d8af4b8b452570a421f', readonly: readonly }, !hideLabel && (h("ic-input-label", { key: '8410dabe6d0d62c7c1459991631807cfa6546735', for: inputId, label: label, helperText: helperText, required: required, disabled: disabled, readonly: readonly }, h("slot", { key: '77ce0ab9ca879ecf515de633ff27ba8e2320cf2c', name: "helper-text", slot: "helper-text" }))), h("ic-input-component-container", { key: '699375a82eb49f5eb351cf95b4822b4cad7bcc1a', ref: (el) => (this.anchorEl = el), class: { "menu-open": open }, size: size, fullWidth: fullWidth, disabled: disabled, readonly: readonly, validationStatus: validationStatus }, isSlotUsed(this.el, "icon") &&
|
|
804
640
|
!disabled &&
|
|
805
|
-
(!readonly || !!value) && (h("span", { key: '
|
|
641
|
+
(!readonly || !!value) && (h("span", { key: 'fcfec6b75fdb0eb41950460af3c6d7dc5ad43657', slot: "left-icon", class: {
|
|
806
642
|
readonly,
|
|
807
643
|
"has-value": !!value,
|
|
808
|
-
} }, h("slot", { key: '
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
"with-clear-button": !!searchableSelectInputValue,
|
|
812
|
-
}, role: "combobox", autocomplete: "off", "aria-label": label, "aria-describedby": describedBy, "aria-activedescendant": ariaActiveDescendant, "aria-autocomplete": "list", "aria-expanded": `${open}`, "aria-invalid": invalid, "aria-required": `${required}`, "aria-controls": menuId, ref: (el) => (this.searchableSelectElement = el), id: inputId, value: searchableSelectInputValue || undefined, placeholder: placeholder, disabled: disabled, onInput: this.handleSearchableSelectInput, onClick: this.handleClick, onKeyDown: this.handleKeyDown, onFocus: this.onFocus, onBlur: this.onBlur, form: form }), isClearable && (h("div", { class: "clear-button-container" }, h("ic-button", { id: "clear-button", ref: (el) => (this.clearButton = el), "aria-label": searchableSelectInputValue &&
|
|
813
|
-
(currValue === null || loading)
|
|
814
|
-
? "Clear input"
|
|
815
|
-
: "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onFocus: this.handleClearButtonFocus, onBlur: this.handleClearButtonBlur, size: size, variant: "icon-tertiary", theme: clearButtonFocused ? "light" : "dark" }), h("div", { class: "divider" }))), h("span", { onMouseDown: this.handleExpandIconMouseDown, class: {
|
|
816
|
-
"expand-icon": true,
|
|
817
|
-
"expand-icon-open": open,
|
|
818
|
-
}, innerHTML: Expand, "aria-hidden": "true" }), h("div", { "aria-live": "polite", role: "status", class: "searchable-select-results-status" }))) : (h("div", { class: "select-container" }, h("button", { role: "combobox", class: "select-input", ref: (el) => (this.customSelectElement = el), id: inputId, "aria-label": `${label}, ${(multiple && currValue
|
|
819
|
-
? `${currValue.length} of ${getOptionsWithoutGroupTitlesCount(options)} selected, ${valueLabelString}`
|
|
820
|
-
: valueLabelString) || placeholder}`, "aria-describedby": describedBy, "aria-invalid": invalid, "aria-haspopup": "listbox", "aria-expanded": `${open}`, "aria-owns": menuId, "aria-controls": menuId, "aria-required": `${required}`, disabled: disabled, onBlur: this.onBlur, onFocus: this.onFocus, onClick: this.handleClick, onMouseDown: this.handleMouseDown, onKeyDown: this.handleKeyDown }, h("ic-typography", { variant: "body", class: {
|
|
821
|
-
"value-text": true,
|
|
822
|
-
"with-clear-button": isClearable,
|
|
823
|
-
placeholder: !loading && multiple
|
|
824
|
-
? !value || value.length < 1
|
|
825
|
-
: !this.getLabelFromValue(currValue),
|
|
826
|
-
} }, valueLabelString || placeholder), h("div", { class: "select-input-end" }, isClearable && h("div", { class: "divider" }), h("span", { class: {
|
|
827
|
-
"expand-icon": true,
|
|
828
|
-
"expand-icon-open": open,
|
|
829
|
-
}, innerHTML: Expand, "aria-hidden": "true" }))), isClearable && (h("ic-button", { id: "clear-button", "aria-label": "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onFocus: this.handleClearButtonFocus, onBlur: this.handleClearButtonBlur, size: size, variant: "icon-tertiary", theme: clearButtonFocused ? "light" : "dark" }))))), (!isMobileOrTablet() || multiple) && (h("ic-menu", { key: '34f6484de01345c4ea6d9fcaa1cdc09c394e6904', class: {
|
|
830
|
-
"no-results": loading ||
|
|
831
|
-
hasTimedOut ||
|
|
832
|
-
(searchable &&
|
|
833
|
-
((_b = (_a = this.filteredOptions) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.label) === emptyOptionListText) ||
|
|
834
|
-
(!searchable &&
|
|
835
|
-
((_d = (_c = this.uniqueOptions) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.label) === emptyOptionListText),
|
|
836
|
-
}, ref: (el) => (this.menu = el), inputEl: searchable
|
|
837
|
-
? this.searchableSelectElement
|
|
838
|
-
: this.customSelectElement, inputLabel: label, anchorEl: this.anchorEl, size: size, menuId: menuId, open: open, options: searchable ? filteredOptions : uniqueOptions, value: multiple ? currValue : currValue, fullWidth: fullWidth, selectOnEnter: selectOnEnter, onMenuStateChange: this.handleMenuChange, onMenuOptionSelect: this.handleCustomSelectChange, onMenuOptionSelectAll: this.handleSelectAllChange, onMenuKeyPress: this.handleMenuKeyPress, onUngroupedOptionsSet: this.setUngroupedOptions, onRetryButtonClicked: this.handleRetry, parentEl: this.el, onTimeoutBlur: this.onTimeoutBlur, activationType: searchable || multiple || selectOnEnter ? "manual" : "automatic", closeOnSelect: !multiple, multiSelect: multiple ? true : false, searchableSelect: searchable ? true : false })), multiple && (h("div", { key: 'edbcf92bebb2999f1b9dbff3da4299fd3fa21c00', "aria-live": "polite", role: "status", class: "multi-select-selected-count" })), h("ic-input-validation", { key: '37d687c64608a1bd70763c2c09351be2d736c624', class: {
|
|
644
|
+
} }, h("slot", { key: '08d321011ba86b6d50bf3c8c85bf16595c8df657', name: "icon" }))), isMobileOrTablet() && this.useNativeSelectOnMobile && !multiple ? (h(NativeSelect, null)) : readonly ? (h(ReadOnly, null)) : !searchable ? (h(SelectButton, null)) : (h(SelectInput, null))), !(isMobileOrTablet() &&
|
|
645
|
+
this.useNativeSelectOnMobile &&
|
|
646
|
+
!multiple) && (h("ic-menu", { key: '3fc0ee9172a93e744174e2f2b7a16c4f327a82c9', ref: (el) => (this.menu = el), class: { "no-results": noOptions }, inputEl: searchable ? this.searchableSelectElement : this.selectElement, allowMenuFocus: false, inputLabel: label, anchorEl: this.anchorEl, size: size, menuId: menuId, open: open, options: this.getOptions(), value: multiple ? value : value, fullWidth: fullWidth, selectOnEnter: selectOnEnter, onMenuStateChange: this.handleMenuChange, onMenuOptionSelect: this.handleSelectChange, onMenuOptionSelectAll: this.handleSelectAllChange, onTimeoutBlur: this.handleTimeoutBlur, onMenuOptionId: this.updateAriaActiveDescendant, onClick: this.setFocus, parentEl: this.el, activationType: searchable || multiple || selectOnEnter ? "manual" : "automatic", onRetryButtonClicked: this.handleRetry, closeOnSelect: !multiple, multiSelect: multiple, searchableSelect: searchable })), h("ic-input-validation", { key: '6b8bd66f22d67776d418e0aac1b41d2f03f3c9cd', class: {
|
|
839
647
|
"menu-open": open,
|
|
840
648
|
}, ariaLiveMode: validationAriaLive, status: showValidation ? validationStatus : "", message: showValidation ? validationText : "", for: inputId }))));
|
|
841
649
|
}
|
|
@@ -1421,6 +1229,26 @@ export class Select {
|
|
|
1421
1229
|
"reflect": false,
|
|
1422
1230
|
"defaultValue": "\"\""
|
|
1423
1231
|
},
|
|
1232
|
+
"useNativeSelectOnMobile": {
|
|
1233
|
+
"type": "boolean",
|
|
1234
|
+
"mutable": false,
|
|
1235
|
+
"complexType": {
|
|
1236
|
+
"original": "boolean",
|
|
1237
|
+
"resolved": "boolean",
|
|
1238
|
+
"references": {}
|
|
1239
|
+
},
|
|
1240
|
+
"required": false,
|
|
1241
|
+
"optional": false,
|
|
1242
|
+
"docs": {
|
|
1243
|
+
"tags": [],
|
|
1244
|
+
"text": "If `true` and on a mobile or tablet device, the native select element will be used instead of the custom select component for better usability."
|
|
1245
|
+
},
|
|
1246
|
+
"getter": false,
|
|
1247
|
+
"setter": false,
|
|
1248
|
+
"attribute": "use-native-select-on-mobile",
|
|
1249
|
+
"reflect": false,
|
|
1250
|
+
"defaultValue": "true"
|
|
1251
|
+
},
|
|
1424
1252
|
"loading": {
|
|
1425
1253
|
"type": "boolean",
|
|
1426
1254
|
"mutable": true,
|
|
@@ -1445,13 +1273,13 @@ export class Select {
|
|
|
1445
1273
|
"type": "unknown",
|
|
1446
1274
|
"mutable": false,
|
|
1447
1275
|
"complexType": {
|
|
1448
|
-
"original": "
|
|
1449
|
-
"resolved": "
|
|
1276
|
+
"original": "IcSelectOption[]",
|
|
1277
|
+
"resolved": "IcSelectOption[]",
|
|
1450
1278
|
"references": {
|
|
1451
|
-
"
|
|
1279
|
+
"IcSelectOption": {
|
|
1452
1280
|
"location": "import",
|
|
1453
|
-
"path": "
|
|
1454
|
-
"id": "src/
|
|
1281
|
+
"path": "./ic-select.types",
|
|
1282
|
+
"id": "src/components/ic-select/ic-select.types.ts::IcSelectOption"
|
|
1455
1283
|
}
|
|
1456
1284
|
}
|
|
1457
1285
|
},
|
|
@@ -1510,19 +1338,16 @@ export class Select {
|
|
|
1510
1338
|
static get states() {
|
|
1511
1339
|
return {
|
|
1512
1340
|
"ariaActiveDescendant": {},
|
|
1513
|
-
"clearButtonFocused": {},
|
|
1514
1341
|
"debounceIcInput": {},
|
|
1515
1342
|
"hiddenInputValue": {},
|
|
1516
|
-
"
|
|
1517
|
-
"open": {},
|
|
1518
|
-
"pressedCharacters": {},
|
|
1343
|
+
"hasError": {},
|
|
1519
1344
|
"searchableSelectInputValue": {},
|
|
1520
|
-
"
|
|
1521
|
-
"
|
|
1345
|
+
"selectButtonAriaLiveText": {},
|
|
1346
|
+
"selectInputAriaLiveText": {},
|
|
1347
|
+
"flatOptions": {},
|
|
1522
1348
|
"currDebounce": {},
|
|
1523
1349
|
"initialValue": {},
|
|
1524
|
-
"
|
|
1525
|
-
"currValue": {}
|
|
1350
|
+
"open": {}
|
|
1526
1351
|
};
|
|
1527
1352
|
}
|
|
1528
1353
|
static get events() {
|
|
@@ -1723,7 +1548,7 @@ export class Select {
|
|
|
1723
1548
|
"return": "Promise<void>"
|
|
1724
1549
|
},
|
|
1725
1550
|
"docs": {
|
|
1726
|
-
"text": "Sets focus on the
|
|
1551
|
+
"text": "Sets focus on the select component.",
|
|
1727
1552
|
"tags": []
|
|
1728
1553
|
}
|
|
1729
1554
|
}
|
|
@@ -1739,7 +1564,7 @@ export class Select {
|
|
|
1739
1564
|
"methodName": "loadingHandler"
|
|
1740
1565
|
}, {
|
|
1741
1566
|
"propName": "options",
|
|
1742
|
-
"methodName": "
|
|
1567
|
+
"methodName": "optionsChangedHandler"
|
|
1743
1568
|
}, {
|
|
1744
1569
|
"propName": "debounce",
|
|
1745
1570
|
"methodName": "debounceChangedHandler"
|