@ukic/web-components 3.0.0-alpha.2 → 3.0.0-alpha.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/{helpers-f1cf5156.js → helpers-69219f14.js} +24 -1
- package/dist/cjs/helpers-69219f14.js.map +1 -0
- package/dist/cjs/ic-accordion-group.cjs.entry.js +10 -10
- package/dist/cjs/ic-accordion-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-accordion.cjs.entry.js +5 -5
- package/dist/cjs/ic-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-alert.cjs.entry.js +7 -5
- package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-back-to-top.cjs.entry.js +1 -1
- package/dist/cjs/ic-badge.cjs.entry.js +1 -1
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/ic-button_3.cjs.entry.js +2 -2
- package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-card-vertical.cjs.entry.js +22 -24
- package/dist/cjs/ic-card-vertical.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +17 -6
- package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox.cjs.entry.js +6 -4
- package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-chip.cjs.entry.js +1 -1
- package/dist/cjs/ic-classification-banner.cjs.entry.js +1 -1
- package/dist/cjs/ic-classification-banner.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-row.cjs.entry.js +1 -1
- package/dist/cjs/ic-dialog.cjs.entry.js +4 -2
- package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-divider.cjs.entry.js +71 -7
- package/dist/cjs/ic-divider.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-empty-state.cjs.entry.js +1 -1
- package/dist/cjs/ic-footer-link-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-footer-link-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer-link.cjs.entry.js +2 -2
- package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer.cjs.entry.js +2 -2
- package/dist/cjs/ic-footer.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-hero.cjs.entry.js +2 -2
- package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +4 -3
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js +450 -167
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-label_2.cjs.entry.js +9 -7
- package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-link.cjs.entry.js +1 -1
- package/dist/cjs/ic-menu-group.cjs.entry.js +3 -3
- package/dist/cjs/ic-menu-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu-item.cjs.entry.js +11 -11
- package/dist/cjs/ic-menu-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-button.cjs.entry.js +1 -1
- package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-group.cjs.entry.js +5 -4
- package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js +29 -2
- package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-menu.cjs.entry.js +1 -1
- package/dist/cjs/ic-page-header.cjs.entry.js +5 -5
- package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-pagination-item.cjs.entry.js +8 -11
- package/dist/cjs/ic-pagination-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-pagination.cjs.entry.js +37 -15
- package/dist/cjs/ic-pagination.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-popover-menu.cjs.entry.js +11 -11
- package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-group.cjs.entry.js +15 -6
- package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-option.cjs.entry.js +31 -22
- package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-search-bar.cjs.entry.js +12 -9
- package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-select.cjs.entry.js +147 -37
- package/dist/cjs/ic-select.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-side-navigation.cjs.entry.js +4 -3
- package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-status-tag.cjs.entry.js +1 -1
- package/dist/cjs/ic-step.cjs.entry.js +1 -1
- package/dist/cjs/ic-stepper.cjs.entry.js +1 -1
- package/dist/cjs/ic-switch.cjs.entry.js +7 -4
- package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-context.cjs.entry.js +2 -1
- package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-tab-panel.cjs.entry.js +1 -1
- package/dist/cjs/ic-tab.cjs.entry.js +1 -1
- package/dist/cjs/ic-text-field.cjs.entry.js +2 -2
- package/dist/cjs/ic-text-field.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-theme.cjs.entry.js +1 -1
- package/dist/cjs/ic-toast.cjs.entry.js +3 -3
- package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toggle-button.cjs.entry.js +1 -1
- package/dist/cjs/ic-top-navigation.cjs.entry.js +1 -1
- package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-typography.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/ag-theme-icds.css +217 -0
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/ic-accordion/ic-accordion.css +21 -19
- package/dist/collection/components/ic-accordion/ic-accordion.js +27 -30
- package/dist/collection/components/ic-accordion/ic-accordion.js.map +1 -1
- package/dist/collection/components/ic-accordion/test/basic/ic-accordion.spec.js +3 -3
- package/dist/collection/components/ic-accordion/test/basic/ic-accordion.spec.js.map +1 -1
- package/dist/collection/components/ic-accordion-group/ic-accordion-group.css +2 -12
- package/dist/collection/components/ic-accordion-group/ic-accordion-group.js +18 -18
- package/dist/collection/components/ic-accordion-group/ic-accordion-group.js.map +1 -1
- package/dist/collection/components/ic-accordion-group/test/basic/ic-accordion-group.spec.js +3 -3
- package/dist/collection/components/ic-accordion-group/test/basic/ic-accordion-group.spec.js.map +1 -1
- package/dist/collection/components/ic-alert/ic-alert.css +25 -18
- package/dist/collection/components/ic-alert/ic-alert.js +48 -22
- package/dist/collection/components/ic-alert/ic-alert.js.map +1 -1
- package/dist/collection/components/ic-alert/test/basic/ic-alert.spec.js +1 -1
- package/dist/collection/components/ic-alert/test/basic/ic-alert.spec.js.map +1 -1
- package/dist/collection/components/ic-card-vertical/ic-card-vertical.css +98 -114
- package/dist/collection/components/ic-card-vertical/ic-card-vertical.js +46 -24
- package/dist/collection/components/ic-card-vertical/ic-card-vertical.js.map +1 -1
- package/dist/collection/components/ic-checkbox/ic-checkbox.css +47 -39
- package/dist/collection/components/ic-checkbox/ic-checkbox.js +29 -3
- package/dist/collection/components/ic-checkbox/ic-checkbox.js.map +1 -1
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.css +15 -2
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +40 -3
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js.map +1 -1
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.css +13 -25
- package/dist/collection/components/ic-dialog/ic-dialog.css +16 -3
- package/dist/collection/components/ic-dialog/ic-dialog.js +26 -0
- package/dist/collection/components/ic-dialog/ic-dialog.js.map +1 -1
- package/dist/collection/components/ic-divider/ic-divider.css +341 -4
- package/dist/collection/components/ic-divider/ic-divider.js +235 -8
- package/dist/collection/components/ic-divider/ic-divider.js.map +1 -1
- package/dist/collection/components/ic-divider/ic-divider.types.js +2 -0
- package/dist/collection/components/ic-divider/ic-divider.types.js.map +1 -0
- package/dist/collection/components/ic-divider/test/basic/ic-divider.spec.js +89 -4
- package/dist/collection/components/ic-divider/test/basic/ic-divider.spec.js.map +1 -1
- package/dist/collection/components/ic-footer/ic-footer.css +20 -19
- package/dist/collection/components/ic-footer-link/ic-footer-link.css +2 -2
- package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.css +9 -21
- package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.js.map +1 -1
- package/dist/collection/components/ic-hero/ic-hero.css +17 -2
- package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js +3 -2
- package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js.map +1 -1
- package/dist/collection/components/ic-input-component-container/ic-input-component-container.css +4 -2
- package/dist/collection/components/ic-input-label/ic-input-label.css +13 -1
- package/dist/collection/components/ic-input-label/ic-input-label.js +45 -4
- package/dist/collection/components/ic-input-label/ic-input-label.js.map +1 -1
- package/dist/collection/components/ic-input-label/test/basic/ic-input-label.spec.js +35 -49
- package/dist/collection/components/ic-input-label/test/basic/ic-input-label.spec.js.map +1 -1
- package/dist/collection/components/ic-input-validation/ic-input-validation.css +5 -1
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.css +1 -0
- package/dist/collection/components/ic-menu/ic-menu.css +78 -14
- package/dist/collection/components/ic-menu/ic-menu.js +488 -194
- package/dist/collection/components/ic-menu/ic-menu.js.map +1 -1
- package/dist/collection/components/ic-menu/test/basic/ic-menu.spec.js +381 -33
- package/dist/collection/components/ic-menu/test/basic/ic-menu.spec.js.map +1 -1
- package/dist/collection/components/ic-menu-group/ic-menu-group.css +2 -2
- package/dist/collection/components/ic-menu-group/ic-menu-group.js +1 -1
- package/dist/collection/components/ic-menu-group/ic-menu-group.js.map +1 -1
- package/dist/collection/components/ic-menu-item/ic-menu-item.css +32 -28
- package/dist/collection/components/ic-menu-item/ic-menu-item.js +11 -11
- package/dist/collection/components/ic-menu-item/ic-menu-item.js.map +1 -1
- package/dist/collection/components/ic-menu-item/test/basic/ic-menu-item.spec.js +1 -1
- package/dist/collection/components/ic-menu-item/test/basic/ic-menu-item.spec.js.map +1 -1
- package/dist/collection/components/ic-navigation-button/ic-navigation-button.js.map +1 -1
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.css +1 -1
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.js +3 -2
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.js.map +1 -1
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.js +31 -3
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.js.map +1 -1
- package/dist/collection/components/ic-navigation-item/test/basic/ic-navigation-item.spec.js +12 -0
- package/dist/collection/components/ic-navigation-item/test/basic/ic-navigation-item.spec.js.map +1 -1
- package/dist/collection/components/ic-page-header/ic-page-header.css +5 -2
- package/dist/collection/components/ic-page-header/ic-page-header.js +3 -3
- package/dist/collection/components/ic-page-header/ic-page-header.js.map +1 -1
- package/dist/collection/components/ic-pagination/ic-pagination.css +15 -0
- package/dist/collection/components/ic-pagination/ic-pagination.js +77 -37
- package/dist/collection/components/ic-pagination/ic-pagination.js.map +1 -1
- package/dist/collection/components/ic-pagination/test/basic/ic-pagination.spec.js +1 -1
- package/dist/collection/components/ic-pagination/test/basic/ic-pagination.spec.js.map +1 -1
- package/dist/collection/components/ic-pagination-item/ic-pagination-item.css +26 -6
- package/dist/collection/components/ic-pagination-item/ic-pagination-item.js +48 -33
- package/dist/collection/components/ic-pagination-item/ic-pagination-item.js.map +1 -1
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.css +5 -5
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.js +33 -9
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.js.map +1 -1
- package/dist/collection/components/ic-radio-group/ic-radio-group.css +17 -1
- package/dist/collection/components/ic-radio-group/ic-radio-group.js +38 -3
- package/dist/collection/components/ic-radio-group/ic-radio-group.js.map +1 -1
- package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.spec.js +2 -2
- package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.spec.js.map +1 -1
- package/dist/collection/components/ic-radio-option/ic-radio-option.css +35 -25
- package/dist/collection/components/ic-radio-option/ic-radio-option.js +54 -21
- package/dist/collection/components/ic-radio-option/ic-radio-option.js.map +1 -1
- package/dist/collection/components/ic-search-bar/ic-search-bar.css +41 -5
- package/dist/collection/components/ic-search-bar/ic-search-bar.js +34 -7
- package/dist/collection/components/ic-search-bar/ic-search-bar.js.map +1 -1
- package/dist/collection/components/ic-select/ic-select.css +37 -16
- package/dist/collection/components/ic-select/ic-select.js +191 -43
- package/dist/collection/components/ic-select/ic-select.js.map +1 -1
- package/dist/collection/components/ic-select/test/basic/ic-select.spec.js +160 -1
- package/dist/collection/components/ic-select/test/basic/ic-select.spec.js.map +1 -1
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.css +0 -1
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +2 -1
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.js.map +1 -1
- package/dist/collection/components/ic-switch/ic-switch.css +27 -30
- package/dist/collection/components/ic-switch/ic-switch.js +29 -2
- package/dist/collection/components/ic-switch/ic-switch.js.map +1 -1
- package/dist/collection/components/ic-tab-context/ic-tab-context.js +2 -1
- package/dist/collection/components/ic-tab-context/ic-tab-context.js.map +1 -1
- package/dist/collection/components/ic-text-field/ic-text-field.css +7 -4
- package/dist/collection/components/ic-toast/ic-toast.css +25 -16
- package/dist/collection/components/ic-toast/ic-toast.js +1 -2
- package/dist/collection/components/ic-toast/ic-toast.js.map +1 -1
- package/dist/collection/components/ic-toast/test/basic/ic-toast.spec.js +12 -12
- package/dist/collection/components/ic-toast/test/basic/ic-toast.spec.js.map +1 -1
- package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.js +1 -1
- package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.js.map +1 -1
- package/dist/collection/components/ic-toggle-button-group/test/ic-toggle-button-group.spec.js +1 -0
- package/dist/collection/components/ic-toggle-button-group/test/ic-toggle-button-group.spec.js.map +1 -1
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.js.map +1 -1
- package/dist/collection/utils/helpers.js +20 -0
- package/dist/collection/utils/helpers.js.map +1 -1
- package/dist/collection/utils/types.js.map +1 -1
- package/dist/components/helpers.js +22 -1
- package/dist/components/helpers.js.map +1 -1
- package/dist/components/ic-accordion-group.js +11 -11
- package/dist/components/ic-accordion-group.js.map +1 -1
- package/dist/components/ic-accordion.js +5 -5
- package/dist/components/ic-accordion.js.map +1 -1
- package/dist/components/ic-alert.js +8 -5
- package/dist/components/ic-alert.js.map +1 -1
- package/dist/components/ic-card-vertical.js +23 -24
- package/dist/components/ic-card-vertical.js.map +1 -1
- package/dist/components/ic-checkbox-group.js +19 -6
- package/dist/components/ic-checkbox-group.js.map +1 -1
- package/dist/components/ic-checkbox.js +6 -3
- package/dist/components/ic-checkbox.js.map +1 -1
- package/dist/components/ic-classification-banner.js +1 -1
- package/dist/components/ic-classification-banner.js.map +1 -1
- package/dist/components/ic-dialog.js +4 -1
- package/dist/components/ic-dialog.js.map +1 -1
- package/dist/components/ic-divider2.js +86 -9
- package/dist/components/ic-divider2.js.map +1 -1
- package/dist/components/ic-footer-link-group.js +1 -1
- package/dist/components/ic-footer-link-group.js.map +1 -1
- package/dist/components/ic-footer-link.js +1 -1
- package/dist/components/ic-footer-link.js.map +1 -1
- package/dist/components/ic-footer.js +1 -1
- package/dist/components/ic-footer.js.map +1 -1
- package/dist/components/ic-hero.js +1 -1
- package/dist/components/ic-hero.js.map +1 -1
- package/dist/components/ic-horizontal-scroll2.js +3 -2
- package/dist/components/ic-horizontal-scroll2.js.map +1 -1
- package/dist/components/ic-input-component-container2.js +1 -1
- package/dist/components/ic-input-component-container2.js.map +1 -1
- package/dist/components/ic-input-label2.js +10 -6
- package/dist/components/ic-input-label2.js.map +1 -1
- package/dist/components/ic-input-validation2.js +1 -1
- package/dist/components/ic-input-validation2.js.map +1 -1
- package/dist/components/ic-loading-indicator2.js +1 -1
- package/dist/components/ic-loading-indicator2.js.map +1 -1
- package/dist/components/ic-menu-group.js +2 -2
- package/dist/components/ic-menu-group.js.map +1 -1
- package/dist/components/ic-menu-item2.js +11 -11
- package/dist/components/ic-menu-item2.js.map +1 -1
- package/dist/components/ic-menu2.js +453 -169
- package/dist/components/ic-menu2.js.map +1 -1
- package/dist/components/ic-navigation-button.js.map +1 -1
- package/dist/components/ic-navigation-group.js +5 -4
- package/dist/components/ic-navigation-group.js.map +1 -1
- package/dist/components/ic-navigation-item.js +31 -3
- package/dist/components/ic-navigation-item.js.map +1 -1
- package/dist/components/ic-navigation-menu2.js +1 -1
- package/dist/components/ic-page-header.js +4 -4
- package/dist/components/ic-page-header.js.map +1 -1
- package/dist/components/ic-pagination-item2.js +10 -12
- package/dist/components/ic-pagination-item2.js.map +1 -1
- package/dist/components/ic-pagination.js +38 -15
- package/dist/components/ic-pagination.js.map +1 -1
- package/dist/components/ic-popover-menu.js +11 -10
- package/dist/components/ic-popover-menu.js.map +1 -1
- package/dist/components/ic-radio-group.js +17 -6
- package/dist/components/ic-radio-group.js.map +1 -1
- package/dist/components/ic-radio-option.js +32 -22
- package/dist/components/ic-radio-option.js.map +1 -1
- package/dist/components/ic-search-bar.js +13 -9
- package/dist/components/ic-search-bar.js.map +1 -1
- package/dist/components/ic-select.js +148 -37
- package/dist/components/ic-select.js.map +1 -1
- package/dist/components/ic-side-navigation.js +4 -3
- package/dist/components/ic-side-navigation.js.map +1 -1
- package/dist/components/ic-stepper.js +1 -1
- package/dist/components/ic-switch.js +7 -3
- package/dist/components/ic-switch.js.map +1 -1
- package/dist/components/ic-tab-context.js +2 -1
- package/dist/components/ic-tab-context.js.map +1 -1
- package/dist/components/ic-text-field2.js +2 -2
- package/dist/components/ic-text-field2.js.map +1 -1
- package/dist/components/ic-theme.js +1 -1
- package/dist/components/ic-toast.js +3 -3
- package/dist/components/ic-toast.js.map +1 -1
- package/dist/components/ic-toggle-button-group.js +1 -1
- package/dist/components/ic-toggle-button-group.js.map +1 -1
- package/dist/components/ic-top-navigation.js +1 -1
- package/dist/components/ic-top-navigation.js.map +1 -1
- package/dist/core/ag-theme-icds.css +217 -0
- package/dist/core/core.css +692 -10
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/{p-84526c3e.entry.js → p-13d5875c.entry.js} +2 -2
- package/dist/core/p-13d5875c.entry.js.map +1 -0
- package/dist/core/p-19872973.entry.js +2 -0
- package/dist/core/p-19872973.entry.js.map +1 -0
- package/dist/core/p-2140431c.entry.js +2 -0
- package/dist/core/p-2140431c.entry.js.map +1 -0
- package/dist/core/p-29767574.entry.js +2 -0
- package/dist/core/p-29767574.entry.js.map +1 -0
- package/dist/core/p-2e909738.entry.js +2 -0
- package/dist/core/p-2e909738.entry.js.map +1 -0
- package/dist/core/p-2eae9b27.entry.js +2 -0
- package/dist/core/p-2eae9b27.entry.js.map +1 -0
- package/dist/core/p-2ef46ead.entry.js +2 -0
- package/dist/core/p-2ef46ead.entry.js.map +1 -0
- package/dist/core/{p-355acffa.entry.js → p-37dea10d.entry.js} +2 -2
- package/dist/core/p-3d9726a3.entry.js +2 -0
- package/dist/core/{p-408344d3.entry.js.map → p-3d9726a3.entry.js.map} +1 -1
- package/dist/core/p-428f95f8.entry.js +2 -0
- package/dist/core/p-428f95f8.entry.js.map +1 -0
- package/dist/core/p-4973c563.entry.js +2 -0
- package/dist/core/p-4973c563.entry.js.map +1 -0
- package/dist/core/{p-93c23a35.entry.js → p-4a3b1f06.entry.js} +2 -2
- package/dist/core/{p-34db8aaf.entry.js → p-5cd016e1.entry.js} +2 -2
- package/dist/core/{p-d2f8e03f.entry.js → p-5ef8e106.entry.js} +2 -2
- package/dist/core/p-5f4a6555.entry.js +2 -0
- package/dist/core/p-5f4a6555.entry.js.map +1 -0
- package/dist/core/p-605c0c92.entry.js +2 -0
- package/dist/core/p-605c0c92.entry.js.map +1 -0
- package/dist/core/p-655a9e0f.entry.js +2 -0
- package/dist/core/p-655a9e0f.entry.js.map +1 -0
- package/dist/core/p-65a16de9.entry.js +2 -0
- package/dist/core/p-65a16de9.entry.js.map +1 -0
- package/dist/core/{p-0a808ec3.entry.js → p-690c5e80.entry.js} +2 -2
- package/dist/core/p-705eb610.entry.js +2 -0
- package/dist/core/p-705eb610.entry.js.map +1 -0
- package/dist/core/{p-f30f3a3e.entry.js → p-76263187.entry.js} +2 -2
- package/dist/core/p-78c1f1cc.entry.js +2 -0
- package/dist/core/p-78c1f1cc.entry.js.map +1 -0
- package/dist/core/p-79d0be03.entry.js +2 -0
- package/dist/core/p-79d0be03.entry.js.map +1 -0
- package/dist/core/{p-c06a3b97.entry.js → p-7b35de65.entry.js} +2 -2
- package/dist/core/p-7bff1e96.entry.js +2 -0
- package/dist/core/p-7bff1e96.entry.js.map +1 -0
- package/dist/core/{p-4055f22c.entry.js → p-806a0fab.entry.js} +2 -2
- package/dist/core/p-806a0fab.entry.js.map +1 -0
- package/dist/core/p-85173458.entry.js +2 -0
- package/dist/core/p-85173458.entry.js.map +1 -0
- package/dist/core/{p-1b573920.entry.js → p-922984cb.entry.js} +2 -2
- package/dist/core/{p-aab2c7aa.entry.js → p-95f603dd.entry.js} +2 -2
- package/dist/core/{p-b01ffa55.entry.js → p-96b4ca6e.entry.js} +2 -2
- package/dist/core/p-96b4ca6e.entry.js.map +1 -0
- package/dist/core/p-979c2792.entry.js +2 -0
- package/dist/core/p-979c2792.entry.js.map +1 -0
- package/dist/core/{p-e4b276b5.entry.js → p-97fb2bdf.entry.js} +2 -2
- package/dist/core/p-9ec7f96c.entry.js +2 -0
- package/dist/core/p-9ec7f96c.entry.js.map +1 -0
- package/dist/core/p-9fa93dfe.entry.js +2 -0
- package/dist/core/p-9fa93dfe.entry.js.map +1 -0
- package/dist/core/p-a9341313.entry.js +2 -0
- package/dist/core/p-a9341313.entry.js.map +1 -0
- package/dist/core/{p-e3ed9110.entry.js → p-acbd15ab.entry.js} +2 -2
- package/dist/core/{p-31fc8756.entry.js → p-ae0775aa.entry.js} +2 -2
- package/dist/core/p-ae0775aa.entry.js.map +1 -0
- package/dist/core/{p-312cacae.js → p-b7eb8ef9.js} +2 -2
- package/dist/core/p-b7eb8ef9.js.map +1 -0
- package/dist/core/{p-4ff6d16f.entry.js → p-ba6ecc15.entry.js} +2 -2
- package/dist/core/p-bbeb03ef.entry.js +2 -0
- package/dist/core/p-bbeb03ef.entry.js.map +1 -0
- package/dist/core/{p-0d30ffab.entry.js → p-c0fc3d02.entry.js} +2 -2
- package/dist/core/p-c396bd4d.entry.js +2 -0
- package/dist/core/p-c396bd4d.entry.js.map +1 -0
- package/dist/core/{p-f828a6e1.entry.js → p-c9cf932c.entry.js} +2 -2
- package/dist/core/p-cedc375e.entry.js +2 -0
- package/dist/core/p-cedc375e.entry.js.map +1 -0
- package/dist/core/{p-d58a10ec.entry.js → p-d4a83e25.entry.js} +2 -2
- package/dist/core/p-d4a83e25.entry.js.map +1 -0
- package/dist/core/p-d93bac01.entry.js +2 -0
- package/dist/core/p-d93bac01.entry.js.map +1 -0
- package/dist/core/{p-50ead56c.entry.js → p-df957570.entry.js} +2 -2
- package/dist/core/p-df957570.entry.js.map +1 -0
- package/dist/core/{p-0fb047e7.entry.js → p-eb3b4935.entry.js} +2 -2
- package/dist/core/{p-0fb047e7.entry.js.map → p-eb3b4935.entry.js.map} +1 -1
- package/dist/core/{p-60efd7fa.entry.js → p-ebafab37.entry.js} +2 -2
- package/dist/core/p-ebafab37.entry.js.map +1 -0
- package/dist/core/{p-82375dca.entry.js → p-ee6dd94c.entry.js} +2 -2
- package/dist/core/p-ef78bebc.entry.js +2 -0
- package/dist/core/p-ef78bebc.entry.js.map +1 -0
- package/dist/core/p-f0ae2b99.entry.js +2 -0
- package/dist/core/p-f0ae2b99.entry.js.map +1 -0
- package/dist/core/{p-49525194.entry.js → p-f24984c5.entry.js} +2 -2
- package/dist/core/p-f24984c5.entry.js.map +1 -0
- package/dist/core/{p-d8870804.entry.js → p-f5b2b26d.entry.js} +2 -2
- package/dist/core/{p-40e9e76a.entry.js → p-f71c00ce.entry.js} +2 -2
- package/dist/core/p-fdd0b732.entry.js +2 -0
- package/dist/core/p-fdd0b732.entry.js.map +1 -0
- package/dist/esm/core.js +1 -1
- package/dist/esm/{helpers-1c9151ef.js → helpers-e8797e8d.js} +23 -2
- package/dist/esm/helpers-e8797e8d.js.map +1 -0
- package/dist/esm/ic-accordion-group.entry.js +10 -10
- package/dist/esm/ic-accordion-group.entry.js.map +1 -1
- package/dist/esm/ic-accordion.entry.js +5 -5
- package/dist/esm/ic-accordion.entry.js.map +1 -1
- package/dist/esm/ic-alert.entry.js +7 -5
- package/dist/esm/ic-alert.entry.js.map +1 -1
- package/dist/esm/ic-back-to-top.entry.js +1 -1
- package/dist/esm/ic-badge.entry.js +1 -1
- package/dist/esm/ic-breadcrumb-group.entry.js +1 -1
- package/dist/esm/ic-breadcrumb.entry.js +1 -1
- package/dist/esm/ic-button_3.entry.js +2 -2
- package/dist/esm/ic-button_3.entry.js.map +1 -1
- package/dist/esm/ic-card-vertical.entry.js +23 -25
- package/dist/esm/ic-card-vertical.entry.js.map +1 -1
- package/dist/esm/ic-checkbox-group.entry.js +17 -6
- package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
- package/dist/esm/ic-checkbox.entry.js +6 -4
- package/dist/esm/ic-checkbox.entry.js.map +1 -1
- package/dist/esm/ic-chip.entry.js +1 -1
- package/dist/esm/ic-classification-banner.entry.js +1 -1
- package/dist/esm/ic-classification-banner.entry.js.map +1 -1
- package/dist/esm/ic-data-row.entry.js +1 -1
- package/dist/esm/ic-dialog.entry.js +4 -2
- package/dist/esm/ic-dialog.entry.js.map +1 -1
- package/dist/esm/ic-divider.entry.js +72 -8
- package/dist/esm/ic-divider.entry.js.map +1 -1
- package/dist/esm/ic-empty-state.entry.js +1 -1
- package/dist/esm/ic-footer-link-group.entry.js +2 -2
- package/dist/esm/ic-footer-link-group.entry.js.map +1 -1
- package/dist/esm/ic-footer-link.entry.js +2 -2
- package/dist/esm/ic-footer-link.entry.js.map +1 -1
- package/dist/esm/ic-footer.entry.js +2 -2
- package/dist/esm/ic-footer.entry.js.map +1 -1
- package/dist/esm/ic-hero.entry.js +2 -2
- package/dist/esm/ic-hero.entry.js.map +1 -1
- package/dist/esm/ic-horizontal-scroll.entry.js +4 -3
- package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -1
- package/dist/esm/ic-input-component-container_3.entry.js +450 -167
- package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
- package/dist/esm/ic-input-label_2.entry.js +9 -7
- package/dist/esm/ic-input-label_2.entry.js.map +1 -1
- package/dist/esm/ic-link.entry.js +1 -1
- package/dist/esm/ic-menu-group.entry.js +3 -3
- package/dist/esm/ic-menu-group.entry.js.map +1 -1
- package/dist/esm/ic-menu-item.entry.js +11 -11
- package/dist/esm/ic-menu-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-button.entry.js +1 -1
- package/dist/esm/ic-navigation-button.entry.js.map +1 -1
- package/dist/esm/ic-navigation-group.entry.js +5 -4
- package/dist/esm/ic-navigation-group.entry.js.map +1 -1
- package/dist/esm/ic-navigation-item.entry.js +30 -3
- package/dist/esm/ic-navigation-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-menu.entry.js +1 -1
- package/dist/esm/ic-page-header.entry.js +5 -5
- package/dist/esm/ic-page-header.entry.js.map +1 -1
- package/dist/esm/ic-pagination-item.entry.js +8 -11
- package/dist/esm/ic-pagination-item.entry.js.map +1 -1
- package/dist/esm/ic-pagination.entry.js +37 -15
- package/dist/esm/ic-pagination.entry.js.map +1 -1
- package/dist/esm/ic-popover-menu.entry.js +11 -11
- package/dist/esm/ic-popover-menu.entry.js.map +1 -1
- package/dist/esm/ic-radio-group.entry.js +15 -6
- package/dist/esm/ic-radio-group.entry.js.map +1 -1
- package/dist/esm/ic-radio-option.entry.js +31 -22
- package/dist/esm/ic-radio-option.entry.js.map +1 -1
- package/dist/esm/ic-search-bar.entry.js +12 -9
- package/dist/esm/ic-search-bar.entry.js.map +1 -1
- package/dist/esm/ic-select.entry.js +147 -37
- package/dist/esm/ic-select.entry.js.map +1 -1
- package/dist/esm/ic-side-navigation.entry.js +4 -3
- package/dist/esm/ic-side-navigation.entry.js.map +1 -1
- package/dist/esm/ic-status-tag.entry.js +1 -1
- package/dist/esm/ic-step.entry.js +1 -1
- package/dist/esm/ic-stepper.entry.js +1 -1
- package/dist/esm/ic-switch.entry.js +7 -4
- package/dist/esm/ic-switch.entry.js.map +1 -1
- package/dist/esm/ic-tab-context.entry.js +2 -1
- package/dist/esm/ic-tab-context.entry.js.map +1 -1
- package/dist/esm/ic-tab-group.entry.js +1 -1
- package/dist/esm/ic-tab-panel.entry.js +1 -1
- package/dist/esm/ic-tab.entry.js +1 -1
- package/dist/esm/ic-text-field.entry.js +2 -2
- package/dist/esm/ic-text-field.entry.js.map +1 -1
- package/dist/esm/ic-theme.entry.js +1 -1
- package/dist/esm/ic-toast.entry.js +3 -3
- package/dist/esm/ic-toast.entry.js.map +1 -1
- package/dist/esm/ic-toggle-button-group.entry.js +1 -1
- package/dist/esm/ic-toggle-button-group.entry.js.map +1 -1
- package/dist/esm/ic-toggle-button.entry.js +1 -1
- package/dist/esm/ic-top-navigation.entry.js +1 -1
- package/dist/esm/ic-top-navigation.entry.js.map +1 -1
- package/dist/esm/ic-typography.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/ic-accordion/ic-accordion.d.ts +5 -5
- package/dist/types/components/ic-accordion-group/ic-accordion-group.d.ts +4 -4
- package/dist/types/components/ic-alert/ic-alert.d.ts +9 -5
- package/dist/types/components/ic-card-vertical/ic-card-vertical.d.ts +7 -3
- package/dist/types/components/ic-checkbox/ic-checkbox.d.ts +6 -2
- package/dist/types/components/ic-checkbox-group/ic-checkbox-group.d.ts +7 -1
- package/dist/types/components/ic-dialog/ic-dialog.d.ts +5 -0
- package/dist/types/components/ic-divider/ic-divider.d.ts +31 -1
- package/dist/types/components/ic-divider/ic-divider.types.d.ts +3 -0
- package/dist/types/components/ic-footer-link-group/ic-footer-link-group.d.ts +2 -1
- package/dist/types/components/ic-input-label/ic-input-label.d.ts +8 -0
- package/dist/types/components/ic-menu/ic-menu.d.ts +43 -15
- package/dist/types/components/ic-menu-item/ic-menu-item.d.ts +1 -1
- package/dist/types/components/ic-navigation-button/ic-navigation-button.d.ts +2 -2
- package/dist/types/components/ic-navigation-group/ic-navigation-group.d.ts +2 -2
- package/dist/types/components/ic-navigation-item/ic-navigation-item.d.ts +7 -2
- package/dist/types/components/ic-pagination/ic-pagination.d.ts +13 -5
- package/dist/types/components/ic-pagination-item/ic-pagination-item.d.ts +9 -5
- package/dist/types/components/ic-popover-menu/ic-popover-menu.d.ts +5 -0
- package/dist/types/components/ic-radio-group/ic-radio-group.d.ts +6 -1
- package/dist/types/components/ic-radio-option/ic-radio-option.d.ts +8 -3
- package/dist/types/components/ic-search-bar/ic-search-bar.d.ts +5 -1
- package/dist/types/components/ic-select/ic-select.d.ts +24 -10
- package/dist/types/components/ic-switch/ic-switch.d.ts +5 -1
- package/dist/types/components.d.ts +242 -51
- package/dist/types/utils/helpers.d.ts +9 -2
- package/dist/types/utils/types.d.ts +1 -1
- package/hydrate/index.js +969 -380
- package/package.json +2 -2
- package/vscode-data.json +330 -55
- package/dist/cjs/helpers-f1cf5156.js.map +0 -1
- package/dist/core/p-0c872824.entry.js +0 -2
- package/dist/core/p-0c872824.entry.js.map +0 -1
- package/dist/core/p-1684c8d4.entry.js +0 -2
- package/dist/core/p-1684c8d4.entry.js.map +0 -1
- package/dist/core/p-1f1758a9.entry.js +0 -2
- package/dist/core/p-1f1758a9.entry.js.map +0 -1
- package/dist/core/p-21e5dd29.entry.js +0 -2
- package/dist/core/p-21e5dd29.entry.js.map +0 -1
- package/dist/core/p-244d6dba.entry.js +0 -2
- package/dist/core/p-244d6dba.entry.js.map +0 -1
- package/dist/core/p-312cacae.js.map +0 -1
- package/dist/core/p-31fc8756.entry.js.map +0 -1
- package/dist/core/p-322edabc.entry.js +0 -2
- package/dist/core/p-322edabc.entry.js.map +0 -1
- package/dist/core/p-363d6e88.entry.js +0 -2
- package/dist/core/p-363d6e88.entry.js.map +0 -1
- package/dist/core/p-4055f22c.entry.js.map +0 -1
- package/dist/core/p-408344d3.entry.js +0 -2
- package/dist/core/p-43f9a711.entry.js +0 -2
- package/dist/core/p-43f9a711.entry.js.map +0 -1
- package/dist/core/p-4502d3c1.entry.js +0 -2
- package/dist/core/p-4502d3c1.entry.js.map +0 -1
- package/dist/core/p-49525194.entry.js.map +0 -1
- package/dist/core/p-50ead56c.entry.js.map +0 -1
- package/dist/core/p-5deb9730.entry.js +0 -2
- package/dist/core/p-5deb9730.entry.js.map +0 -1
- package/dist/core/p-60efd7fa.entry.js.map +0 -1
- package/dist/core/p-6bd2e938.entry.js +0 -2
- package/dist/core/p-6bd2e938.entry.js.map +0 -1
- package/dist/core/p-6d40baa9.entry.js +0 -2
- package/dist/core/p-6d40baa9.entry.js.map +0 -1
- package/dist/core/p-7c89fc86.entry.js +0 -2
- package/dist/core/p-7c89fc86.entry.js.map +0 -1
- package/dist/core/p-84526c3e.entry.js.map +0 -1
- package/dist/core/p-9dba6823.entry.js +0 -2
- package/dist/core/p-9dba6823.entry.js.map +0 -1
- package/dist/core/p-aa0619ce.entry.js +0 -2
- package/dist/core/p-aa0619ce.entry.js.map +0 -1
- package/dist/core/p-af20322c.entry.js +0 -2
- package/dist/core/p-af20322c.entry.js.map +0 -1
- package/dist/core/p-b01ffa55.entry.js.map +0 -1
- package/dist/core/p-bf1f0ac7.entry.js +0 -2
- package/dist/core/p-bf1f0ac7.entry.js.map +0 -1
- package/dist/core/p-c86d48b6.entry.js +0 -2
- package/dist/core/p-c86d48b6.entry.js.map +0 -1
- package/dist/core/p-cbcd4427.entry.js +0 -2
- package/dist/core/p-cbcd4427.entry.js.map +0 -1
- package/dist/core/p-d1c9c32b.entry.js +0 -2
- package/dist/core/p-d1c9c32b.entry.js.map +0 -1
- package/dist/core/p-d2f89cb5.entry.js +0 -2
- package/dist/core/p-d2f89cb5.entry.js.map +0 -1
- package/dist/core/p-d58a10ec.entry.js.map +0 -1
- package/dist/core/p-da14cd3c.entry.js +0 -2
- package/dist/core/p-da14cd3c.entry.js.map +0 -1
- package/dist/core/p-dc83a0e9.entry.js +0 -2
- package/dist/core/p-dc83a0e9.entry.js.map +0 -1
- package/dist/core/p-de3a5423.entry.js +0 -2
- package/dist/core/p-de3a5423.entry.js.map +0 -1
- package/dist/core/p-e53309b0.entry.js +0 -2
- package/dist/core/p-e53309b0.entry.js.map +0 -1
- package/dist/core/p-f38bce8d.entry.js +0 -2
- package/dist/core/p-f38bce8d.entry.js.map +0 -1
- package/dist/core/p-fa1b7a80.entry.js +0 -2
- package/dist/core/p-fa1b7a80.entry.js.map +0 -1
- package/dist/core/p-fa587e6d.entry.js +0 -2
- package/dist/core/p-fa587e6d.entry.js.map +0 -1
- package/dist/esm/helpers-1c9151ef.js.map +0 -1
- /package/dist/core/{p-355acffa.entry.js.map → p-37dea10d.entry.js.map} +0 -0
- /package/dist/core/{p-93c23a35.entry.js.map → p-4a3b1f06.entry.js.map} +0 -0
- /package/dist/core/{p-34db8aaf.entry.js.map → p-5cd016e1.entry.js.map} +0 -0
- /package/dist/core/{p-d2f8e03f.entry.js.map → p-5ef8e106.entry.js.map} +0 -0
- /package/dist/core/{p-0a808ec3.entry.js.map → p-690c5e80.entry.js.map} +0 -0
- /package/dist/core/{p-f30f3a3e.entry.js.map → p-76263187.entry.js.map} +0 -0
- /package/dist/core/{p-c06a3b97.entry.js.map → p-7b35de65.entry.js.map} +0 -0
- /package/dist/core/{p-1b573920.entry.js.map → p-922984cb.entry.js.map} +0 -0
- /package/dist/core/{p-aab2c7aa.entry.js.map → p-95f603dd.entry.js.map} +0 -0
- /package/dist/core/{p-e4b276b5.entry.js.map → p-97fb2bdf.entry.js.map} +0 -0
- /package/dist/core/{p-e3ed9110.entry.js.map → p-acbd15ab.entry.js.map} +0 -0
- /package/dist/core/{p-4ff6d16f.entry.js.map → p-ba6ecc15.entry.js.map} +0 -0
- /package/dist/core/{p-0d30ffab.entry.js.map → p-c0fc3d02.entry.js.map} +0 -0
- /package/dist/core/{p-f828a6e1.entry.js.map → p-c9cf932c.entry.js.map} +0 -0
- /package/dist/core/{p-82375dca.entry.js.map → p-ee6dd94c.entry.js.map} +0 -0
- /package/dist/core/{p-d8870804.entry.js.map → p-f5b2b26d.entry.js.map} +0 -0
- /package/dist/core/{p-40e9e76a.entry.js.map → p-f71c00ce.entry.js.map} +0 -0
@@ -443,12 +443,16 @@ video {
|
|
443
443
|
|
444
444
|
/**
|
445
445
|
* @prop --input-width: Width of the input field
|
446
|
+
* @prop --menu-width: Width of the dropdown menu
|
446
447
|
* @prop --ic-z-index-menu: z-index of select menu
|
447
448
|
*/
|
448
449
|
|
449
450
|
:host {
|
450
451
|
display: block;
|
451
452
|
position: relative;
|
453
|
+
|
454
|
+
--ic-input-label-helpertext-padding: var(--ic-space-xxs);
|
455
|
+
--menu-max-height: 100px;
|
452
456
|
}
|
453
457
|
|
454
458
|
:host(.ic-select-full-width) {
|
@@ -560,6 +564,23 @@ select:not([disabled]) {
|
|
560
564
|
cursor: auto;
|
561
565
|
}
|
562
566
|
|
567
|
+
.select-input.with-clear-button {
|
568
|
+
padding-right: 0;
|
569
|
+
}
|
570
|
+
|
571
|
+
.value-text {
|
572
|
+
max-width: calc(100% - (var(--ic-space-lg) + var(--ic-space-xxs)));
|
573
|
+
box-sizing: border-box;
|
574
|
+
white-space: nowrap;
|
575
|
+
text-overflow: ellipsis;
|
576
|
+
overflow: hidden;
|
577
|
+
margin-bottom: 0 !important;
|
578
|
+
}
|
579
|
+
|
580
|
+
.value-text.with-clear-button {
|
581
|
+
padding-right: calc(var(--ic-space-xl) + var(--ic-space-xs));
|
582
|
+
}
|
583
|
+
|
563
584
|
.searchable-select-container {
|
564
585
|
align-items: center;
|
565
586
|
display: flex;
|
@@ -569,7 +590,7 @@ select:not([disabled]) {
|
|
569
590
|
|
570
591
|
.expand-icon {
|
571
592
|
height: var(--ic-space-lg);
|
572
|
-
padding-left: var(--ic-space-
|
593
|
+
padding-left: var(--ic-space-xxs);
|
573
594
|
color: var(--ic-action-dark);
|
574
595
|
}
|
575
596
|
|
@@ -585,13 +606,14 @@ select:not([disabled]) {
|
|
585
606
|
}
|
586
607
|
|
587
608
|
:host(.ic-select-searchable) .expand-icon {
|
588
|
-
padding-left:
|
609
|
+
padding-left: 0;
|
589
610
|
height: 2.25rem;
|
590
611
|
}
|
591
612
|
|
592
613
|
:host(.ic-select-searchable) .expand-icon > svg {
|
593
614
|
height: 2.25rem;
|
594
|
-
padding: 0 0
|
615
|
+
padding: 0 calc(var(--ic-space-xxxs) + var(--ic-space-xxs)) 0
|
616
|
+
var(--ic-space-xxs);
|
595
617
|
}
|
596
618
|
|
597
619
|
:host(.ic-select-searchable:not(.ic-select-disabled)) .expand-icon > svg {
|
@@ -602,10 +624,6 @@ select:not([disabled]) {
|
|
602
624
|
color: var(--ic-action-dark);
|
603
625
|
}
|
604
626
|
|
605
|
-
.expand-icon-filled {
|
606
|
-
color: var(--ic-action-dark);
|
607
|
-
}
|
608
|
-
|
609
627
|
.expand-icon-open,
|
610
628
|
:host(.ic-select-searchable) .expand-icon-open {
|
611
629
|
transform: rotateX(180deg);
|
@@ -623,17 +641,11 @@ select:not([disabled]) {
|
|
623
641
|
|
624
642
|
.clear-button-container {
|
625
643
|
display: flex;
|
626
|
-
gap: var(--ic-space-xxs);
|
627
|
-
padding-left: 2.375rem;
|
628
644
|
align-items: center;
|
629
645
|
}
|
630
646
|
|
631
|
-
:host(.ic-select-small) .clear-button-container {
|
632
|
-
padding-left: 1.875rem;
|
633
|
-
}
|
634
|
-
|
635
647
|
.divider {
|
636
|
-
width: var(--ic-
|
648
|
+
width: var(--ic-space-1px);
|
637
649
|
background-color: var(--ic-architectural-400);
|
638
650
|
margin: var(--ic-space-xxs) 0;
|
639
651
|
border-radius: var(--ic-space-1px);
|
@@ -644,9 +656,13 @@ select:not([disabled]) {
|
|
644
656
|
height: var(--ic-space-md);
|
645
657
|
}
|
646
658
|
|
659
|
+
:host(.ic-select-large) .divider {
|
660
|
+
height: var(--ic-space-xl);
|
661
|
+
}
|
662
|
+
|
647
663
|
.clear-button {
|
648
664
|
position: absolute;
|
649
|
-
right:
|
665
|
+
right: calc(var(--ic-space-xl) + var(--ic-space-xxs) - var(--ic-space-1px));
|
650
666
|
border-radius: var(--ic-border-radius);
|
651
667
|
transition: box-shadow var(--ic-easing-transition),
|
652
668
|
border-radius var(--ic-easing-transition);
|
@@ -662,7 +678,12 @@ select:not([disabled]) {
|
|
662
678
|
fill: white;
|
663
679
|
}
|
664
680
|
|
665
|
-
.searchable
|
681
|
+
.clear-button.searchable {
|
682
|
+
position: static;
|
683
|
+
}
|
684
|
+
|
685
|
+
.searchable-select-results-status,
|
686
|
+
.multi-select-selected-count {
|
666
687
|
border: 0;
|
667
688
|
clip: rect(0, 0, 0, 0, 0);
|
668
689
|
height: var(--ic-space-1px);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Host, h, forceUpdate, } from "@stencil/core";
|
2
|
-
import { getInputDescribedByText, getLabelFromValue, hasValidationStatus, inheritAttributes, onComponentRequiredPropUndefined, renderHiddenInput, isMobileOrTablet, getFilteredMenuOptions, addFormResetListener, removeFormResetListener, removeDisabledFalse, checkSlotInChildMutations, } from "../../utils/helpers";
|
2
|
+
import { getInputDescribedByText, getLabelFromValue, hasValidationStatus, inheritAttributes, onComponentRequiredPropUndefined, renderHiddenInput, isMobileOrTablet, getFilteredMenuOptions, getOptionsWithoutGroupTitlesCount, addFormResetListener, removeFormResetListener, removeDisabledFalse, checkSlotInChildMutations, } from "../../utils/helpers";
|
3
3
|
import { IC_INHERITED_ARIA } from "../../utils/constants";
|
4
4
|
import { IcInformationStatus, IcThemeForegroundEnum, } from "../../utils/types";
|
5
5
|
import Expand from "./assets/Expand.svg";
|
@@ -47,17 +47,24 @@ export class Select {
|
|
47
47
|
};
|
48
48
|
this.emitIcChange = (value) => {
|
49
49
|
if (!this.searchable) {
|
50
|
-
|
50
|
+
// If "Select all" button clicked, replace value with new value (array of all option values)
|
51
|
+
if (this.multiple && !Array.isArray(value) && value !== null) {
|
52
|
+
this.handleMultipleSelectChange(value);
|
53
|
+
}
|
54
|
+
else {
|
55
|
+
this.value = value;
|
56
|
+
}
|
51
57
|
}
|
52
58
|
clearTimeout(this.debounceIcChange);
|
53
59
|
this.debounceIcChange = window.setTimeout(() => {
|
54
|
-
this.
|
60
|
+
const valueToEmit = this.multiple ? this.value : value;
|
61
|
+
this.icChange.emit({ value: valueToEmit });
|
55
62
|
}, this.currDebounce);
|
56
63
|
};
|
57
64
|
this.emitImmediateIcChange = (value) => {
|
58
65
|
this.value = value;
|
59
66
|
clearTimeout(this.debounceIcChange);
|
60
|
-
this.icChange.emit({ value
|
67
|
+
this.icChange.emit({ value });
|
61
68
|
};
|
62
69
|
/**
|
63
70
|
* Processes the provided array of IcMenuOptions, removing duplicates and reporting them with a console.warn
|
@@ -130,6 +137,10 @@ export class Select {
|
|
130
137
|
this.getLabelFromValue = (value) => {
|
131
138
|
return getLabelFromValue(value, this.uniqueOptions);
|
132
139
|
};
|
140
|
+
this.getMultipleOptionsString = (selectedValues) => {
|
141
|
+
const selectedLabels = selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.map((value) => this.getLabelFromValue(value));
|
142
|
+
return selectedLabels === null || selectedLabels === void 0 ? void 0 : selectedLabels.join(", ");
|
143
|
+
};
|
133
144
|
this.getFilteredChildMenuOptions = (option) => {
|
134
145
|
let children = option.children;
|
135
146
|
if (this.searchable) {
|
@@ -142,18 +153,29 @@ export class Select {
|
|
142
153
|
newOption.children = children;
|
143
154
|
return newOption;
|
144
155
|
};
|
156
|
+
// (For multi-select) get value array, i.e. selected option values, in order they appear in option list
|
157
|
+
this.getValueSortedByOptions = (value) => {
|
158
|
+
const valueArray = value;
|
159
|
+
const valuesFromAllOptions = this.ungroupedOptions.map((option) => option.value);
|
160
|
+
valueArray.sort((a, b) => valuesFromAllOptions.indexOf(a) - valuesFromAllOptions.indexOf(b));
|
161
|
+
return valueArray;
|
162
|
+
};
|
145
163
|
this.handleNativeSelectChange = () => {
|
146
164
|
this.icOptionSelect.emit({ value: this.nativeSelectElement.value });
|
147
165
|
this.emitImmediateIcChange(this.nativeSelectElement.value);
|
148
166
|
this.setTextColor();
|
149
167
|
};
|
168
|
+
// Handle option select for when a custom input box and menu is rendered
|
169
|
+
// (rather than native <select> - rendered when viewed on a mobile / tablet screen)
|
150
170
|
this.handleCustomSelectChange = (event) => {
|
171
|
+
var _a;
|
172
|
+
const value = event.detail.value;
|
151
173
|
if (this.searchable && event.detail.label === this.emptyOptionListText) {
|
152
174
|
this.searchableSelectElement.focus();
|
153
175
|
return;
|
154
176
|
}
|
155
177
|
if (this.searchable) {
|
156
|
-
this.value =
|
178
|
+
this.value = value;
|
157
179
|
this.searchableMenuItemSelected = true;
|
158
180
|
// After editing the input, if selecting the same option as before, set the input value to label again
|
159
181
|
if (this.value === this.currValue) {
|
@@ -162,9 +184,59 @@ export class Select {
|
|
162
184
|
this.inputValueToFilter = null;
|
163
185
|
this.hiddenInputValue = this.getValueFromLabel(this.searchableSelectInputValue);
|
164
186
|
}
|
187
|
+
if (this.multiple && ((_a = this.value) === null || _a === void 0 ? void 0 : _a.includes(value))) {
|
188
|
+
this.icOptionDeselect.emit({ value });
|
189
|
+
}
|
190
|
+
else {
|
191
|
+
this.icOptionSelect.emit({ value });
|
192
|
+
}
|
165
193
|
this.ariaActiveDescendant = event.detail.optionId;
|
166
|
-
this.
|
167
|
-
|
194
|
+
this.emitIcChange(value);
|
195
|
+
};
|
196
|
+
// Update selected options - adds / removes them, in order of option list
|
197
|
+
// Create new array if value prop is undefined
|
198
|
+
this.handleMultipleSelectChange = (value) => {
|
199
|
+
if (this.value) {
|
200
|
+
let valueArray = this.value.slice();
|
201
|
+
if (this.value.includes(value)) {
|
202
|
+
const valueIndex = valueArray.indexOf(value);
|
203
|
+
valueArray.splice(valueIndex, 1);
|
204
|
+
}
|
205
|
+
else {
|
206
|
+
valueArray.push(value);
|
207
|
+
valueArray = this.getValueSortedByOptions(valueArray);
|
208
|
+
}
|
209
|
+
this.value = valueArray.length === 0 ? null : valueArray;
|
210
|
+
}
|
211
|
+
else {
|
212
|
+
const valueArray = [];
|
213
|
+
valueArray.push(value);
|
214
|
+
this.value = valueArray;
|
215
|
+
}
|
216
|
+
};
|
217
|
+
this.handleSelectAllChange = (event) => {
|
218
|
+
const selectAllOptions = event.detail.select;
|
219
|
+
const allEnabledOptions = this.ungroupedOptions.filter((option) => !option.disabled);
|
220
|
+
const allValues = allEnabledOptions.map((option) => option.value);
|
221
|
+
let newValue;
|
222
|
+
if (selectAllOptions) {
|
223
|
+
let unselectedValues;
|
224
|
+
// Only emit icOptionSelect for all values that are newly selected
|
225
|
+
if (this.value) {
|
226
|
+
unselectedValues = allValues.filter((value) => this.value && !this.value.includes(value));
|
227
|
+
}
|
228
|
+
else {
|
229
|
+
unselectedValues = allValues;
|
230
|
+
}
|
231
|
+
unselectedValues.forEach((value) => this.icOptionSelect.emit({ value }));
|
232
|
+
newValue = allValues;
|
233
|
+
}
|
234
|
+
else {
|
235
|
+
// Only emit icOptionDeselect for values that were selected
|
236
|
+
this.value.forEach((value) => this.icOptionDeselect.emit({ value }));
|
237
|
+
newValue = null;
|
238
|
+
}
|
239
|
+
this.emitIcChange(newValue);
|
168
240
|
};
|
169
241
|
this.handleMenuChange = (event) => {
|
170
242
|
this.open = event.detail.open;
|
@@ -175,10 +247,9 @@ export class Select {
|
|
175
247
|
// to prevent delay in change event, which should only occur when typing in input
|
176
248
|
this.handleMenuKeyPress = (ev) => {
|
177
249
|
ev.cancelBubble = true;
|
178
|
-
this.
|
179
|
-
|
180
|
-
|
181
|
-
this.value = ev.detail.value;
|
250
|
+
if (!this.multiple) {
|
251
|
+
this.handleCharacterKeyDown(ev.detail.key);
|
252
|
+
}
|
182
253
|
};
|
183
254
|
this.handleFocusIndicatorDisplay = () => {
|
184
255
|
const focusIndicator = this.el.shadowRoot.querySelector(".focus-indicator");
|
@@ -250,10 +321,12 @@ export class Select {
|
|
250
321
|
if (key.length === 1 && !this.searchable) {
|
251
322
|
window.clearTimeout(this.characterKeyPressTimer);
|
252
323
|
this.characterKeyPressTimer = window.setTimeout(() => (this.pressedCharacters = ""), 1000);
|
253
|
-
this.pressedCharacters
|
254
|
-
|
255
|
-
|
256
|
-
|
324
|
+
if (!(key === " " && !this.pressedCharacters)) {
|
325
|
+
this.pressedCharacters += key;
|
326
|
+
this.handleFilter();
|
327
|
+
if (!this.noOptions) {
|
328
|
+
this.emitImmediateIcChange(this.filteredOptions[0].value);
|
329
|
+
}
|
257
330
|
}
|
258
331
|
}
|
259
332
|
else {
|
@@ -291,7 +364,9 @@ export class Select {
|
|
291
364
|
// Keyboard events get passed onto ic-menu
|
292
365
|
this.menu.handleKeyboardOpen(event);
|
293
366
|
}
|
294
|
-
this.
|
367
|
+
if (!this.multiple) {
|
368
|
+
this.handleCharacterKeyDown(event.key);
|
369
|
+
}
|
295
370
|
}
|
296
371
|
}
|
297
372
|
};
|
@@ -416,7 +491,24 @@ export class Select {
|
|
416
491
|
}
|
417
492
|
}
|
418
493
|
};
|
494
|
+
this.updateMultiSelectedCountAriaLive = () => {
|
495
|
+
var _a;
|
496
|
+
const multiSelectSelectedCountEl = this.el.shadowRoot.querySelector(".multi-select-selected-count");
|
497
|
+
const selectedCount = `${(_a = this.currValue) === null || _a === void 0 ? void 0 : _a.length} of ${getOptionsWithoutGroupTitlesCount(this.options)} selected`;
|
498
|
+
if (multiSelectSelectedCountEl &&
|
499
|
+
multiSelectSelectedCountEl.innerText !== selectedCount) {
|
500
|
+
multiSelectSelectedCountEl.innerText = selectedCount;
|
501
|
+
}
|
502
|
+
};
|
419
503
|
this.getDefaultValue = (value) => this.getLabelFromValue(value) || value || null;
|
504
|
+
this.setDefaultValue = () => {
|
505
|
+
if (!this.hasSetDefaultValue && this.currValue) {
|
506
|
+
this.searchableSelectInputValue =
|
507
|
+
this.searchable && this.getDefaultValue(this.currValue);
|
508
|
+
this.initialValue = this.currValue;
|
509
|
+
this.hasSetDefaultValue = true;
|
510
|
+
}
|
511
|
+
};
|
420
512
|
this.onFocus = () => {
|
421
513
|
this.icFocus.emit();
|
422
514
|
};
|
@@ -481,6 +573,7 @@ export class Select {
|
|
481
573
|
this.label = undefined;
|
482
574
|
this.loadingErrorLabel = "Loading Error";
|
483
575
|
this.loadingLabel = "Loading...";
|
576
|
+
this.multiple = false;
|
484
577
|
this.name = this.inputId;
|
485
578
|
this.placeholder = "Select an option";
|
486
579
|
this.readonly = false;
|
@@ -509,10 +602,11 @@ export class Select {
|
|
509
602
|
}
|
510
603
|
watchOptionsHandler() {
|
511
604
|
var _a;
|
512
|
-
if (!this.hasTimedOut) {
|
605
|
+
if (!this.hasTimedOut && this.options !== this.noOptions) {
|
513
606
|
this.loading = false;
|
514
607
|
clearTimeout(this.timeoutTimer);
|
515
608
|
if (this.isExternalFiltering()) {
|
609
|
+
// When searchable select
|
516
610
|
if (((_a = this.options) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
517
611
|
this.setOptionsValuesFromLabels();
|
518
612
|
this.noOptions = null;
|
@@ -548,11 +642,18 @@ export class Select {
|
|
548
642
|
}
|
549
643
|
valueChangedHandler() {
|
550
644
|
if (this.value !== this.currValue) {
|
551
|
-
this.
|
645
|
+
if (this.value && this.multiple) {
|
646
|
+
this.currValue = this.getValueSortedByOptions(this.value);
|
647
|
+
this.updateMultiSelectedCountAriaLive();
|
648
|
+
}
|
649
|
+
else {
|
650
|
+
this.currValue = this.value;
|
651
|
+
}
|
552
652
|
}
|
553
653
|
if (this.searchable) {
|
554
654
|
this.searchableSelectInputValue =
|
555
|
-
this.getLabelFromValue(this.currValue) ||
|
655
|
+
this.getLabelFromValue(this.currValue) ||
|
656
|
+
this.currValue;
|
556
657
|
}
|
557
658
|
}
|
558
659
|
openChangedHandler() {
|
@@ -622,15 +723,10 @@ export class Select {
|
|
622
723
|
this.updateSearchableSelectResultAriaLive();
|
623
724
|
}, 800);
|
624
725
|
}
|
625
|
-
setDefaultValue() {
|
626
|
-
if (!this.hasSetDefaultValue && this.currValue) {
|
627
|
-
this.searchableSelectInputValue = this.getDefaultValue(this.currValue);
|
628
|
-
this.initialValue = this.currValue;
|
629
|
-
this.hasSetDefaultValue = true;
|
630
|
-
}
|
631
|
-
}
|
632
726
|
render() {
|
633
|
-
const { size, disabled, fullWidth, helperText, hideLabel, label, menuId, name, options, placeholder, readonly, required, searchable, showClearButton, validationStatus, validationText, currValue, } = this;
|
727
|
+
const { size, disabled, fullWidth, helperText, hideLabel, label, menuId, multiple, name, options, placeholder, readonly, required, searchable, showClearButton, validationStatus, validationText, currValue, } = this;
|
728
|
+
// HTML inputs only accept 'string' for their value
|
729
|
+
// Does not cause errors when it is a multi-select - sets value correctly, to a comma-separated string
|
634
730
|
renderHiddenInput(true, this.el, name, this.searchable ? this.hiddenInputValue : currValue, disabled);
|
635
731
|
const invalid = `${validationStatus === IcInformationStatus.Error}`;
|
636
732
|
const describedBy = getInputDescribedByText(this.inputId, helperText !== "", hasValidationStatus(this.validationStatus, this.disabled)).trim();
|
@@ -638,6 +734,7 @@ export class Select {
|
|
638
734
|
if (showLeftIcon && (disabled || (readonly && !this.value))) {
|
639
735
|
showLeftIcon = false;
|
640
736
|
}
|
737
|
+
const optionsSelectedCount = `${currValue === null || currValue === void 0 ? void 0 : currValue.length} of ${getOptionsWithoutGroupTitlesCount(this.options)} selected`;
|
641
738
|
return (h(Host, { class: {
|
642
739
|
["ic-select-disabled"]: disabled,
|
643
740
|
["ic-select-searchable"]: searchable,
|
@@ -646,14 +743,19 @@ export class Select {
|
|
646
743
|
}, onBlur: this.onBlur }, h("ic-input-container", { readonly: readonly }, !hideLabel && (h("ic-input-label", { for: this.inputId, label: label, helperText: helperText, required: required, disabled: disabled, readonly: readonly })), h("ic-input-component-container", { ref: (el) => (this.anchorEl = el), class: { "menu-open": this.open }, size: size, fullWidth: fullWidth, disabled: disabled, readonly: readonly, validationStatus: validationStatus }, showLeftIcon && (h("span", { slot: "left-icon", class: {
|
647
744
|
["readonly"]: readonly,
|
648
745
|
["has-value"]: !!this.value,
|
649
|
-
} }, h("slot", { name: "icon" }))), readonly ? (h("ic-typography", null, h("p", null,
|
746
|
+
} }, h("slot", { name: "icon" }))), readonly ? (h("ic-typography", null, h("p", null, multiple
|
747
|
+
? this.getMultipleOptionsString(currValue)
|
748
|
+
: this.getLabelFromValue(currValue)))) : isMobileOrTablet() && !multiple ? (h("select", Object.assign({ ref: (el) => (this.nativeSelectElement = el), disabled: disabled, onChange: this.handleNativeSelectChange, required: required, id: this.inputId, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.handleNativeSelectKeyDown, form: this.form }, this.inheritedAttributes), h("option", { value: "", selected: true, disabled: !showClearButton }, placeholder), options.map((option) => {
|
650
749
|
if (option.children) {
|
651
750
|
return (h("optgroup", { label: option.label }, option.children.map((option) => (h("option", { value: option.value, disabled: option.disabled, selected: option.value === currValue }, option.label)))));
|
652
751
|
}
|
653
752
|
else {
|
654
753
|
return (h("option", { value: option.value, disabled: option.disabled, selected: option.value === currValue }, option.label));
|
655
754
|
}
|
656
|
-
}))) : searchable ? (h("div", { class: "searchable-select-container" }, h("input", { class:
|
755
|
+
}))) : searchable ? (h("div", { class: "searchable-select-container" }, h("input", { class: {
|
756
|
+
"select-input": true,
|
757
|
+
"with-clear-button": !!this.searchableSelectInputValue,
|
758
|
+
}, role: "combobox", autocomplete: "off", "aria-label": label, "aria-describedby": describedBy, "aria-activedescendant": this.ariaActiveDescendant, "aria-autocomplete": "list", "aria-expanded": `${this.open}`, "aria-invalid": invalid, "aria-required": `${required}`, "aria-controls": menuId, ref: (el) => (this.searchableSelectElement = el), id: this.inputId, value: this.searchableSelectInputValue, placeholder: placeholder, disabled: disabled, onInput: this.handleSearchableSelectInput, onClick: this.handleClick, onKeyDown: this.handleKeyDown, onFocus: this.onFocus, onBlur: this.onBlur, form: this.form }), this.searchableSelectInputValue &&
|
657
759
|
(showClearButton || searchable) && (h("div", { class: "clear-button-container" }, h("ic-button", { id: "clear-button", ref: (el) => (this.clearButton = el), "aria-label": this.searchableSelectInputValue && currValue === null
|
658
760
|
? "Clear input"
|
659
761
|
: "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onFocus: this.handleClearButtonFocus, onBlur: this.handleClearButtonBlur, size: size, variant: "icon", appearance: this.clearButtonFocused
|
@@ -661,17 +763,22 @@ export class Select {
|
|
661
763
|
: IcThemeForegroundEnum.Dark }), h("div", { class: "divider" }))), h("span", { onMouseDown: this.handleExpandIconMouseDown, class: {
|
662
764
|
"expand-icon": true,
|
663
765
|
"expand-icon-open": this.open,
|
664
|
-
|
665
|
-
|
766
|
+
}, innerHTML: Expand, "aria-hidden": "true" }), h("div", { "aria-live": "polite", role: "status", class: "searchable-select-results-status" }))) : (h("div", { class: "select-container" }, h("button", { class: "select-input", ref: (el) => (this.customSelectElement = el), id: this.inputId, "aria-label": `${label}, ${(multiple && currValue
|
767
|
+
? `${optionsSelectedCount}, ${this.getMultipleOptionsString(currValue)}`
|
768
|
+
: this.getLabelFromValue(currValue)) ||
|
769
|
+
placeholder}${required ? ", required" : ""}`, "aria-describedby": describedBy, "aria-invalid": invalid, "aria-haspopup": "listbox", "aria-expanded": this.open ? "true" : "false", "aria-owns": menuId, "aria-controls": menuId, disabled: disabled, onBlur: this.onBlur, onFocus: this.onFocus, onClick: this.handleClick, onMouseDown: this.handleMouseDown, onKeyDown: this.handleKeyDown }, h("ic-typography", { variant: "body", class: {
|
666
770
|
"value-text": true,
|
667
|
-
|
668
|
-
|
771
|
+
"with-clear-button": currValue && showClearButton,
|
772
|
+
placeholder: !this.value || (multiple && this.value.length < 1),
|
773
|
+
} }, (multiple
|
774
|
+
? this.getMultipleOptionsString(currValue)
|
775
|
+
: this.getLabelFromValue(currValue)) ||
|
776
|
+
placeholder), h("div", { class: "select-input-end" }, currValue && showClearButton && (h("div", { class: "divider" })), h("span", { class: {
|
669
777
|
"expand-icon": true,
|
670
778
|
"expand-icon-open": this.open,
|
671
|
-
"expand-icon-filled": !(currValue == null || currValue === ""),
|
672
779
|
}, innerHTML: Expand, "aria-hidden": "true" }))), currValue && showClearButton && (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", appearance: this.clearButtonFocused
|
673
780
|
? IcThemeForegroundEnum.Light
|
674
|
-
: IcThemeForegroundEnum.Dark }))))), !isMobileOrTablet() && (h("ic-menu", { class: {
|
781
|
+
: IcThemeForegroundEnum.Dark }))))), (!isMobileOrTablet() || multiple) && (h("ic-menu", { class: {
|
675
782
|
"no-results": this.loading ||
|
676
783
|
this.hasTimedOut ||
|
677
784
|
(this.noOptions !== null &&
|
@@ -679,7 +786,9 @@ export class Select {
|
|
679
786
|
this.noOptions[0].label === this.emptyOptionListText),
|
680
787
|
}, ref: (el) => (this.menu = el), inputEl: searchable
|
681
788
|
? this.searchableSelectElement
|
682
|
-
: this.customSelectElement, inputLabel: label, anchorEl: this.anchorEl, size: size, menuId: menuId, open: this.open, options: searchable ? this.filteredOptions : this.uniqueOptions, value: currValue, fullWidth: fullWidth, selectOnEnter: this.selectOnEnter, onMenuStateChange: this.handleMenuChange, onMenuOptionSelect: this.handleCustomSelectChange,
|
789
|
+
: this.customSelectElement, inputLabel: label, anchorEl: this.anchorEl, size: size, menuId: menuId, open: this.open, options: searchable ? this.filteredOptions : this.uniqueOptions, value: multiple ? currValue : currValue, fullWidth: fullWidth, selectOnEnter: this.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: this.searchable || multiple || this.selectOnEnter
|
790
|
+
? "manual"
|
791
|
+
: "automatic", closeOnSelect: !multiple })), this.multiple && (h("div", { "aria-live": "polite", role: "status", class: "multi-select-selected-count" })), hasValidationStatus(this.validationStatus, this.disabled) && (h("ic-input-validation", { class: { "menu-open": this.open }, ariaLiveMode: "polite", status: validationStatus, message: validationText, for: this.inputId })))));
|
683
792
|
}
|
684
793
|
static get is() { return "ic-select"; }
|
685
794
|
static get encapsulation() { return "shadow"; }
|
@@ -779,7 +888,7 @@ export class Select {
|
|
779
888
|
"optional": false,
|
780
889
|
"docs": {
|
781
890
|
"tags": [],
|
782
|
-
"text": "If `true`, the select
|
891
|
+
"text": "If `true`, the select will fill the width of the container."
|
783
892
|
},
|
784
893
|
"attribute": "full-width",
|
785
894
|
"reflect": false,
|
@@ -910,6 +1019,24 @@ export class Select {
|
|
910
1019
|
"reflect": false,
|
911
1020
|
"defaultValue": "\"Loading...\""
|
912
1021
|
},
|
1022
|
+
"multiple": {
|
1023
|
+
"type": "boolean",
|
1024
|
+
"mutable": false,
|
1025
|
+
"complexType": {
|
1026
|
+
"original": "boolean",
|
1027
|
+
"resolved": "boolean",
|
1028
|
+
"references": {}
|
1029
|
+
},
|
1030
|
+
"required": false,
|
1031
|
+
"optional": true,
|
1032
|
+
"docs": {
|
1033
|
+
"tags": [],
|
1034
|
+
"text": "If `true`, multiple options can be selected."
|
1035
|
+
},
|
1036
|
+
"attribute": "multiple",
|
1037
|
+
"reflect": false,
|
1038
|
+
"defaultValue": "false"
|
1039
|
+
},
|
913
1040
|
"name": {
|
914
1041
|
"type": "string",
|
915
1042
|
"mutable": false,
|
@@ -1036,7 +1163,7 @@ export class Select {
|
|
1036
1163
|
"optional": true,
|
1037
1164
|
"docs": {
|
1038
1165
|
"tags": [],
|
1039
|
-
"text": "If `true`, the icOptionSelect event will be fired on enter instead of ArrowUp and ArrowDown."
|
1166
|
+
"text": "If `true`, the icOptionSelect event will be fired on enter instead of ArrowUp and ArrowDown on the single select."
|
1040
1167
|
},
|
1041
1168
|
"attribute": "select-on-enter",
|
1042
1169
|
"reflect": false,
|
@@ -1078,7 +1205,7 @@ export class Select {
|
|
1078
1205
|
"optional": true,
|
1079
1206
|
"docs": {
|
1080
1207
|
"tags": [],
|
1081
|
-
"text": "The size of the select
|
1208
|
+
"text": "The size of the select."
|
1082
1209
|
},
|
1083
1210
|
"attribute": "size",
|
1084
1211
|
"reflect": false,
|
@@ -1205,15 +1332,15 @@ export class Select {
|
|
1205
1332
|
"type": "string",
|
1206
1333
|
"mutable": true,
|
1207
1334
|
"complexType": {
|
1208
|
-
"original": "string",
|
1209
|
-
"resolved": "string",
|
1335
|
+
"original": "string | string[]",
|
1336
|
+
"resolved": "string | string[]",
|
1210
1337
|
"references": {}
|
1211
1338
|
},
|
1212
1339
|
"required": false,
|
1213
1340
|
"optional": true,
|
1214
1341
|
"docs": {
|
1215
1342
|
"tags": [],
|
1216
|
-
"text": "The value of the select, reflected by the value of the currently selected option
|
1343
|
+
"text": "The value of the select, reflected by the value of the currently selected option.\nFor the searchable variant, the value is also reflected by the user input.\nFor the multi-select variant, the value must be an array of option values."
|
1217
1344
|
},
|
1218
1345
|
"attribute": "value",
|
1219
1346
|
"reflect": false
|
@@ -1364,7 +1491,28 @@ export class Select {
|
|
1364
1491
|
"composed": true,
|
1365
1492
|
"docs": {
|
1366
1493
|
"tags": [],
|
1367
|
-
"text": "Emitted when an option is
|
1494
|
+
"text": "Emitted when an option is selected.\nSelecting an option will also trigger an `icChange/onIcChange` due to the value being updated."
|
1495
|
+
},
|
1496
|
+
"complexType": {
|
1497
|
+
"original": "IcOptionSelectEventDetail",
|
1498
|
+
"resolved": "IcOptionSelectEventDetail",
|
1499
|
+
"references": {
|
1500
|
+
"IcOptionSelectEventDetail": {
|
1501
|
+
"location": "import",
|
1502
|
+
"path": "../ic-menu/ic-menu.types",
|
1503
|
+
"id": "src/components/ic-menu/ic-menu.types.ts::IcOptionSelectEventDetail"
|
1504
|
+
}
|
1505
|
+
}
|
1506
|
+
}
|
1507
|
+
}, {
|
1508
|
+
"method": "icOptionDeselect",
|
1509
|
+
"name": "icOptionDeselect",
|
1510
|
+
"bubbles": true,
|
1511
|
+
"cancelable": true,
|
1512
|
+
"composed": true,
|
1513
|
+
"docs": {
|
1514
|
+
"tags": [],
|
1515
|
+
"text": "Emitted when `multiple` is `true` and an option is deselected."
|
1368
1516
|
},
|
1369
1517
|
"complexType": {
|
1370
1518
|
"original": "IcOptionSelectEventDetail",
|