@ukic/web-components 3.0.0 → 3.2.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/README.md +34 -5
- package/dist/cjs/app-globals-3a1e7e63.js +7 -0
- package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
- package/dist/cjs/core.cjs.js +13 -11
- package/dist/cjs/core.cjs.js.map +1 -1
- package/dist/cjs/{helpers-94b33ab0.js → helpers-789082d4.js} +159 -75
- package/dist/cjs/helpers-789082d4.js.map +1 -0
- package/dist/cjs/ic-accordion-group.cjs.entry.js +38 -22
- package/dist/cjs/ic-accordion-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-accordion.cjs.entry.js +75 -46
- package/dist/cjs/ic-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-alert.cjs.entry.js +93 -46
- package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-back-to-top.cjs.entry.js +32 -16
- package/dist/cjs/ic-back-to-top.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-badge.cjs.entry.js +91 -42
- package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +114 -63
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb.cjs.entry.js +78 -18
- package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-button_3.cjs.entry.js +366 -168
- package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-card-vertical.cjs.entry.js +93 -72
- package/dist/cjs/ic-card-vertical.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +51 -14
- package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox.cjs.entry.js +55 -31
- package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-chip.cjs.entry.js +64 -32
- package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-classification-banner.cjs.entry.js +22 -6
- package/dist/cjs/ic-classification-banner.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-list.cjs.entry.js +17 -7
- package/dist/cjs/ic-data-list.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-row.cjs.entry.js +31 -20
- package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-dialog.cjs.entry.js +170 -114
- package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-divider.cjs.entry.js +95 -12
- package/dist/cjs/ic-divider.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-empty-state.cjs.entry.js +21 -24
- package/dist/cjs/ic-empty-state.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer-link-group.cjs.entry.js +12 -14
- package/dist/cjs/ic-footer-link-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer-link.cjs.entry.js +15 -16
- package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer.cjs.entry.js +52 -30
- package/dist/cjs/ic-footer.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-hero.cjs.entry.js +35 -32
- package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +40 -21
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js +587 -244
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-label_2.cjs.entry.js +65 -40
- package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-link.cjs.entry.js +43 -28
- package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu-group.cjs.entry.js +6 -7
- package/dist/cjs/ic-menu-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu-item.cjs.entry.js +41 -33
- package/dist/cjs/ic-menu-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-button.cjs.entry.js +32 -24
- package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-group.cjs.entry.js +69 -44
- package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js +122 -45
- package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-menu.cjs.entry.js +55 -33
- package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-page-header.cjs.entry.js +53 -31
- package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-pagination-item.cjs.entry.js +37 -24
- package/dist/cjs/ic-pagination-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-pagination.cjs.entry.js +76 -36
- package/dist/cjs/ic-pagination.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-popover-menu.cjs.entry.js +97 -60
- package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-group.cjs.entry.js +103 -48
- package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-option.cjs.entry.js +70 -39
- package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-search-bar.cjs.entry.js +195 -108
- package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-section-container.cjs.entry.js +12 -5
- package/dist/cjs/ic-section-container.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-select.cjs.entry.js +418 -199
- package/dist/cjs/ic-select.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-side-navigation.cjs.entry.js +119 -79
- package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-skeleton.cjs.entry.js +15 -8
- package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-skip-link.cjs.entry.js +62 -0
- package/dist/cjs/ic-skip-link.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-status-tag.cjs.entry.js +30 -10
- package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-step.cjs.entry.js +37 -37
- package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-stepper.cjs.entry.js +60 -36
- package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-switch.cjs.entry.js +63 -31
- package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-context.cjs.entry.js +112 -152
- package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-group.cjs.entry.js +18 -14
- package/dist/cjs/ic-tab-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-panel.cjs.entry.js +19 -15
- package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab.cjs.entry.js +31 -22
- package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-text-field.cjs.entry.js +235 -87
- package/dist/cjs/ic-text-field.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-theme.cjs.entry.js +54 -23
- package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toast-region.cjs.entry.js +8 -3
- package/dist/cjs/ic-toast-region.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toast.cjs.entry.js +30 -23
- package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js +117 -35
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toggle-button.cjs.entry.js +110 -23
- package/dist/cjs/ic-toggle-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-top-navigation.cjs.entry.js +65 -35
- package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-typography.cjs.entry.js +59 -30
- package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
- package/dist/cjs/index-d337cd8a.js +2611 -0
- package/dist/cjs/index-d337cd8a.js.map +1 -0
- package/dist/cjs/loader.cjs.js +5 -3
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/collection/ag-theme-icds.css +218 -0
- package/dist/collection/collection-manifest.json +8 -7
- package/dist/collection/components/ic-accordion/ic-accordion.css +30 -17
- package/dist/collection/components/ic-accordion/ic-accordion.js +116 -76
- package/dist/collection/components/ic-accordion/ic-accordion.js.map +1 -1
- package/dist/collection/components/ic-accordion/ic-accordion.stories.js +611 -0
- package/dist/collection/components/ic-accordion-group/ic-accordion-group.css +3 -8
- package/dist/collection/components/ic-accordion-group/ic-accordion-group.js +65 -37
- package/dist/collection/components/ic-accordion-group/ic-accordion-group.js.map +1 -1
- package/dist/collection/components/ic-alert/ic-alert.css +52 -19
- package/dist/collection/components/ic-alert/ic-alert.js +164 -50
- package/dist/collection/components/ic-alert/ic-alert.js.map +1 -1
- package/dist/collection/components/ic-alert/ic-alert.stories.js +271 -0
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.css +54 -20
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.js +86 -14
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.js.map +1 -1
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.stories.js +216 -0
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.types.js.map +1 -1
- package/dist/collection/components/ic-badge/ic-badge.css +44 -11
- package/dist/collection/components/ic-badge/ic-badge.js +160 -53
- package/dist/collection/components/ic-badge/ic-badge.js.map +1 -1
- package/dist/collection/components/ic-badge/ic-badge.stories.js +1092 -0
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.css +32 -8
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js +142 -46
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js.map +1 -1
- package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js +165 -84
- package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js.map +1 -1
- package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.stories.js +362 -0
- package/dist/collection/components/ic-button/ic-button.css +722 -429
- package/dist/collection/components/ic-button/ic-button.js +331 -139
- package/dist/collection/components/ic-button/ic-button.js.map +1 -1
- package/dist/collection/components/ic-button/ic-button.stories.js +2364 -0
- package/dist/collection/components/ic-button/ic-button.types.js.map +1 -1
- package/dist/collection/components/ic-card-vertical/ic-card-vertical.css +115 -104
- package/dist/collection/components/ic-card-vertical/ic-card-vertical.js +160 -86
- package/dist/collection/components/ic-card-vertical/ic-card-vertical.js.map +1 -1
- package/dist/collection/components/ic-card-vertical/ic-card-vertical.stories.js +1050 -0
- package/dist/collection/components/ic-checkbox/ic-checkbox.css +80 -35
- package/dist/collection/components/ic-checkbox/ic-checkbox.js +123 -45
- package/dist/collection/components/ic-checkbox/ic-checkbox.js.map +1 -1
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.css +20 -1
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +108 -23
- 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 +726 -0
- package/dist/collection/components/ic-chip/ic-chip.css +66 -48
- package/dist/collection/components/ic-chip/ic-chip.js +126 -38
- package/dist/collection/components/ic-chip/ic-chip.js.map +1 -1
- package/dist/collection/components/ic-chip/ic-chip.stories.js +980 -0
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.css +20 -10
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.js +33 -8
- 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 +131 -0
- package/dist/collection/components/ic-data-list/ic-data-list.css +5 -1
- package/dist/collection/components/ic-data-list/ic-data-list.js +47 -8
- package/dist/collection/components/ic-data-list/ic-data-list.js.map +1 -1
- package/dist/collection/components/ic-data-list/ic-data-list.stories.js +493 -0
- package/dist/collection/components/ic-data-row/ic-data-row.css +5 -2
- package/dist/collection/components/ic-data-row/ic-data-row.js +64 -21
- package/dist/collection/components/ic-data-row/ic-data-row.js.map +1 -1
- package/dist/collection/components/ic-dialog/ic-dialog.css +18 -10
- package/dist/collection/components/ic-dialog/ic-dialog.js +248 -144
- package/dist/collection/components/ic-dialog/ic-dialog.js.map +1 -1
- package/dist/collection/components/ic-dialog/ic-dialog.stories.js +1118 -0
- package/dist/collection/components/ic-divider/ic-divider.css +298 -4
- package/dist/collection/components/ic-divider/ic-divider.js +272 -12
- package/dist/collection/components/ic-divider/ic-divider.js.map +1 -1
- package/dist/collection/components/ic-divider/ic-divider.stories.js +394 -0
- 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-empty-state/ic-empty-state.css +17 -2
- package/dist/collection/components/ic-empty-state/ic-empty-state.js +63 -28
- package/dist/collection/components/ic-empty-state/ic-empty-state.js.map +1 -1
- package/dist/collection/components/ic-empty-state/ic-empty-state.stories.js +404 -0
- package/dist/collection/components/ic-footer/ic-footer.css +25 -17
- package/dist/collection/components/ic-footer/ic-footer.js +72 -38
- package/dist/collection/components/ic-footer/ic-footer.js.map +1 -1
- package/dist/collection/components/ic-footer/ic-footer.stories.js +384 -0
- package/dist/collection/components/ic-footer-link/ic-footer-link.css +28 -5
- package/dist/collection/components/ic-footer-link/ic-footer-link.js +32 -22
- package/dist/collection/components/ic-footer-link/ic-footer-link.js.map +1 -1
- package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.css +13 -20
- package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.js +12 -12
- 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 +25 -10
- package/dist/collection/components/ic-hero/ic-hero.js +66 -45
- package/dist/collection/components/ic-hero/ic-hero.js.map +1 -1
- package/dist/collection/components/ic-hero/ic-hero.stories.js +448 -0
- package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.css +2 -6
- package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js +97 -22
- 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 +51 -18
- package/dist/collection/components/ic-input-component-container/ic-input-component-container.js +74 -64
- package/dist/collection/components/ic-input-component-container/ic-input-component-container.js.map +1 -1
- package/dist/collection/components/ic-input-container/ic-input-container.js +16 -6
- package/dist/collection/components/ic-input-container/ic-input-container.js.map +1 -1
- package/dist/collection/components/ic-input-label/ic-input-label.css +19 -20
- package/dist/collection/components/ic-input-label/ic-input-label.js +97 -41
- package/dist/collection/components/ic-input-label/ic-input-label.js.map +1 -1
- package/dist/collection/components/ic-input-validation/ic-input-validation.css +12 -3
- package/dist/collection/components/ic-input-validation/ic-input-validation.js +36 -19
- package/dist/collection/components/ic-input-validation/ic-input-validation.js.map +1 -1
- package/dist/collection/components/ic-link/ic-link.css +66 -25
- package/dist/collection/components/ic-link/ic-link.js +107 -59
- package/dist/collection/components/ic-link/ic-link.js.map +1 -1
- package/dist/collection/components/ic-link/ic-link.stories.js +85 -0
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.css +20 -13
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js +183 -102
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js.map +1 -1
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.stories.js +464 -0
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.types.js.map +1 -1
- package/dist/collection/components/ic-menu/ic-menu.css +116 -23
- package/dist/collection/components/ic-menu/ic-menu.js +640 -257
- package/dist/collection/components/ic-menu/ic-menu.js.map +1 -1
- package/dist/collection/components/ic-menu/ic-menu.types.js.map +1 -1
- package/dist/collection/components/ic-menu-group/ic-menu-group.css +3 -2
- package/dist/collection/components/ic-menu-group/ic-menu-group.js +4 -5
- 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 +45 -23
- package/dist/collection/components/ic-menu-item/ic-menu-item.js +115 -48
- package/dist/collection/components/ic-menu-item/ic-menu-item.js.map +1 -1
- package/dist/collection/components/ic-navigation-button/ic-navigation-button.css +18 -0
- package/dist/collection/components/ic-navigation-button/ic-navigation-button.js +77 -29
- 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 +52 -51
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.js +158 -47
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.js.map +1 -1
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.types.js +2 -0
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.types.js.map +1 -0
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.css +60 -65
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.js +188 -62
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.js.map +1 -1
- package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.css +13 -5
- package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js +84 -32
- package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js.map +1 -1
- package/dist/collection/components/ic-page-header/ic-page-header.css +7 -3
- package/dist/collection/components/ic-page-header/ic-page-header.js +99 -35
- package/dist/collection/components/ic-page-header/ic-page-header.js.map +1 -1
- package/dist/collection/components/ic-page-header/ic-page-header.stories.js +823 -0
- package/dist/collection/components/ic-pagination/ic-pagination.css +24 -1
- package/dist/collection/components/ic-pagination/ic-pagination.js +157 -73
- package/dist/collection/components/ic-pagination/ic-pagination.js.map +1 -1
- package/dist/collection/components/ic-pagination/ic-pagination.stories.js +164 -0
- package/dist/collection/components/ic-pagination-item/ic-pagination-item.css +54 -15
- package/dist/collection/components/ic-pagination-item/ic-pagination-item.js +99 -52
- 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 +8 -4
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.js +184 -69
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.js.map +1 -1
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.stories.js +573 -0
- package/dist/collection/components/ic-radio-group/ic-radio-group.css +17 -1
- package/dist/collection/components/ic-radio-group/ic-radio-group.js +162 -59
- package/dist/collection/components/ic-radio-group/ic-radio-group.js.map +1 -1
- package/dist/collection/components/ic-radio-group/ic-radio-group.stories.js +474 -0
- package/dist/collection/components/ic-radio-option/ic-radio-option.css +59 -27
- package/dist/collection/components/ic-radio-option/ic-radio-option.js +130 -47
- 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 +109 -16
- package/dist/collection/components/ic-search-bar/ic-search-bar.js +342 -147
- package/dist/collection/components/ic-search-bar/ic-search-bar.js.map +1 -1
- package/dist/collection/components/ic-search-bar/ic-search-bar.stories.js +593 -0
- package/dist/collection/components/ic-search-bar/ic-search-bar.types.js.map +1 -1
- package/dist/collection/components/ic-section-container/ic-section-container.js +15 -5
- package/dist/collection/components/ic-section-container/ic-section-container.js.map +1 -1
- package/dist/collection/components/ic-section-container/ic-section-container.stories.js +62 -0
- package/dist/collection/components/ic-select/ic-select.css +105 -55
- package/dist/collection/components/ic-select/ic-select.js +591 -248
- package/dist/collection/components/ic-select/ic-select.js.map +1 -1
- package/dist/collection/components/ic-select/ic-select_(multi).stories.js +892 -0
- package/dist/collection/components/ic-select/ic-select_(searchable).stories.js +965 -0
- package/dist/collection/components/ic-select/ic-select_(single).stories.js +790 -0
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.css +64 -38
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +162 -100
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.js.map +1 -1
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.stories.js +2547 -0
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.types.js.map +1 -1
- package/dist/collection/components/ic-skeleton/ic-skeleton.css +4 -27
- package/dist/collection/components/ic-skeleton/ic-skeleton.js +29 -13
- package/dist/collection/components/ic-skeleton/ic-skeleton.js.map +1 -1
- package/dist/collection/components/ic-skeleton/ic-skeleton.stories.js +143 -0
- package/dist/collection/components/ic-skip-link/ic-skip-link.css +46 -0
- package/dist/collection/components/ic-skip-link/ic-skip-link.js +231 -0
- package/dist/collection/components/ic-skip-link/ic-skip-link.js.map +1 -0
- package/dist/collection/components/ic-skip-link/ic-skip-link.stories.js +504 -0
- package/dist/collection/components/ic-status-tag/ic-status-tag.css +27 -17
- package/dist/collection/components/ic-status-tag/ic-status-tag.js +80 -10
- package/dist/collection/components/ic-status-tag/ic-status-tag.js.map +1 -1
- package/dist/collection/components/ic-status-tag/ic-status-tag.stories.js +196 -0
- package/dist/collection/components/ic-step/ic-step.css +69 -126
- package/dist/collection/components/ic-step/ic-step.js +95 -42
- package/dist/collection/components/ic-step/ic-step.js.map +1 -1
- package/dist/collection/components/ic-stepper/ic-stepper.js +96 -54
- package/dist/collection/components/ic-stepper/ic-stepper.js.map +1 -1
- package/dist/collection/components/ic-stepper/ic-stepper.stories.js +281 -0
- package/dist/collection/components/ic-switch/ic-switch.css +30 -48
- package/dist/collection/components/ic-switch/ic-switch.js +106 -48
- package/dist/collection/components/ic-switch/ic-switch.js.map +1 -1
- package/dist/collection/components/ic-switch/ic-switch.stories.js +149 -0
- package/dist/collection/components/ic-tab/ic-tab.css +53 -17
- package/dist/collection/components/ic-tab/ic-tab.js +97 -51
- package/dist/collection/components/ic-tab/ic-tab.js.map +1 -1
- package/dist/collection/components/ic-tab-context/ic-tab-context.js +170 -180
- package/dist/collection/components/ic-tab-context/ic-tab-context.js.map +1 -1
- package/dist/collection/components/ic-tab-context/ic-tabs.stories.js +316 -0
- package/dist/collection/components/ic-tab-group/ic-tab-group.css +14 -7
- package/dist/collection/components/ic-tab-group/ic-tab-group.js +70 -38
- package/dist/collection/components/ic-tab-group/ic-tab-group.js.map +1 -1
- package/dist/collection/components/ic-tab-panel/ic-tab-panel.css +7 -3
- package/dist/collection/components/ic-tab-panel/ic-tab-panel.js +86 -29
- package/dist/collection/components/ic-tab-panel/ic-tab-panel.js.map +1 -1
- package/dist/collection/components/ic-text-field/ic-text-field.css +64 -8
- package/dist/collection/components/ic-text-field/ic-text-field.js +484 -154
- package/dist/collection/components/ic-text-field/ic-text-field.js.map +1 -1
- package/dist/collection/components/ic-text-field/ic-text-field.stories.js +1048 -0
- package/dist/collection/components/ic-theme/ic-theme.js +121 -35
- package/dist/collection/components/ic-theme/ic-theme.js.map +1 -1
- package/dist/collection/components/ic-theme/ic-theme.stories.js +434 -0
- package/dist/collection/components/ic-toast/ic-toast.css +41 -17
- package/dist/collection/components/ic-toast/ic-toast.js +49 -29
- package/dist/collection/components/ic-toast/ic-toast.js.map +1 -1
- package/dist/collection/components/ic-toast/ic-toast.stories.js +396 -0
- package/dist/collection/components/ic-toast-region/ic-toast-region.js +12 -5
- package/dist/collection/components/ic-toast-region/ic-toast-region.js.map +1 -1
- package/dist/collection/components/ic-toggle-button/ic-toggle-button.css +188 -58
- package/dist/collection/components/ic-toggle-button/ic-toggle-button.js +226 -63
- package/dist/collection/components/ic-toggle-button/ic-toggle-button.js.map +1 -1
- package/dist/collection/components/ic-toggle-button/ic-toggle-button.stories.js +427 -0
- package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.css +23 -16
- package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.js +228 -64
- package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.js.map +1 -1
- package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.stories.js +585 -0
- package/dist/collection/components/ic-tooltip/ic-tooltip.css +14 -5
- package/dist/collection/components/ic-tooltip/ic-tooltip.js +123 -36
- package/dist/collection/components/ic-tooltip/ic-tooltip.js.map +1 -1
- package/dist/collection/components/ic-tooltip/ic-tooltip.stories.js +366 -0
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.css +57 -21
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.js +122 -50
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.js.map +1 -1
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.stories.js +1091 -0
- package/dist/collection/components/ic-typography/ic-typography.css +11 -7
- package/dist/collection/components/ic-typography/ic-typography.js +101 -32
- package/dist/collection/components/ic-typography/ic-typography.js.map +1 -1
- package/dist/collection/components/ic-typography/ic-typography.stories.js +447 -0
- package/dist/collection/patterns/top-nav-content-footer.stories.js +109 -0
- package/dist/collection/patterns/z-index.stories.js +474 -0
- package/dist/collection/utils/constants.js +40 -1
- package/dist/collection/utils/constants.js.map +1 -1
- package/dist/collection/utils/helpers.js +97 -68
- package/dist/collection/utils/helpers.js.map +1 -1
- package/dist/collection/utils/testa11y.helpers.js +2 -1
- package/dist/collection/utils/testa11y.helpers.js.map +1 -1
- package/dist/collection/utils/types.js +6 -6
- package/dist/collection/utils/types.js.map +1 -1
- package/dist/components/helpers.js +151 -70
- package/dist/components/helpers.js.map +1 -1
- package/dist/components/ic-accordion-group.js +38 -21
- package/dist/components/ic-accordion-group.js.map +1 -1
- package/dist/components/ic-accordion.js +76 -45
- package/dist/components/ic-accordion.js.map +1 -1
- package/dist/components/ic-alert.js +98 -47
- package/dist/components/ic-alert.js.map +1 -1
- package/dist/components/ic-back-to-top.js +33 -14
- package/dist/components/ic-back-to-top.js.map +1 -1
- package/dist/components/ic-badge.js +93 -42
- package/dist/components/ic-badge.js.map +1 -1
- package/dist/components/ic-breadcrumb-group.js +119 -64
- package/dist/components/ic-breadcrumb-group.js.map +1 -1
- package/dist/components/ic-breadcrumb2.js +81 -17
- package/dist/components/ic-breadcrumb2.js.map +1 -1
- package/dist/components/ic-button2.js +190 -79
- package/dist/components/ic-button2.js.map +1 -1
- package/dist/components/ic-card-vertical.js +98 -74
- package/dist/components/ic-card-vertical.js.map +1 -1
- package/dist/components/ic-checkbox-group.js +53 -12
- package/dist/components/ic-checkbox-group.js.map +1 -1
- package/dist/components/ic-checkbox.js +56 -29
- package/dist/components/ic-checkbox.js.map +1 -1
- package/dist/components/ic-chip.js +68 -31
- package/dist/components/ic-chip.js.map +1 -1
- package/dist/components/ic-classification-banner.js +21 -5
- package/dist/components/ic-classification-banner.js.map +1 -1
- package/dist/components/ic-data-list.js +18 -7
- package/dist/components/ic-data-list.js.map +1 -1
- package/dist/components/ic-data-row.js +31 -18
- package/dist/components/ic-data-row.js.map +1 -1
- package/dist/components/ic-dialog.js +172 -114
- package/dist/components/ic-dialog.js.map +1 -1
- package/dist/components/ic-divider2.js +110 -14
- package/dist/components/ic-divider2.js.map +1 -1
- package/dist/components/ic-empty-state.js +23 -24
- package/dist/components/ic-empty-state.js.map +1 -1
- package/dist/components/ic-footer-link-group.js +12 -13
- package/dist/components/ic-footer-link-group.js.map +1 -1
- package/dist/components/ic-footer-link.js +15 -15
- package/dist/components/ic-footer-link.js.map +1 -1
- package/dist/components/ic-footer.js +52 -30
- package/dist/components/ic-footer.js.map +1 -1
- package/dist/components/ic-hero.js +36 -33
- package/dist/components/ic-hero.js.map +1 -1
- package/dist/components/ic-horizontal-scroll2.js +41 -20
- package/dist/components/ic-horizontal-scroll2.js.map +1 -1
- package/dist/components/ic-input-component-container2.js +48 -36
- package/dist/components/ic-input-component-container2.js.map +1 -1
- package/dist/components/ic-input-container2.js +12 -5
- package/dist/components/ic-input-container2.js.map +1 -1
- package/dist/components/ic-input-label2.js +42 -23
- package/dist/components/ic-input-label2.js.map +1 -1
- package/dist/components/ic-input-validation2.js +22 -15
- package/dist/components/ic-input-validation2.js.map +1 -1
- package/dist/components/ic-link2.js +45 -29
- package/dist/components/ic-link2.js.map +1 -1
- package/dist/components/ic-loading-indicator2.js +109 -68
- package/dist/components/ic-loading-indicator2.js.map +1 -1
- package/dist/components/ic-menu-group.js +5 -5
- package/dist/components/ic-menu-group.js.map +1 -1
- package/dist/components/ic-menu-item2.js +46 -35
- package/dist/components/ic-menu-item2.js.map +1 -1
- package/dist/components/ic-menu2.js +535 -209
- package/dist/components/ic-menu2.js.map +1 -1
- package/dist/components/ic-navigation-button.js +33 -24
- package/dist/components/ic-navigation-button.js.map +1 -1
- package/dist/components/ic-navigation-group.js +72 -44
- package/dist/components/ic-navigation-group.js.map +1 -1
- package/dist/components/ic-navigation-item.js +125 -45
- package/dist/components/ic-navigation-item.js.map +1 -1
- package/dist/components/ic-navigation-menu2.js +55 -31
- package/dist/components/ic-navigation-menu2.js.map +1 -1
- package/dist/components/ic-page-header.js +53 -29
- package/dist/components/ic-page-header.js.map +1 -1
- package/dist/components/ic-pagination-item2.js +39 -23
- package/dist/components/ic-pagination-item2.js.map +1 -1
- package/dist/components/ic-pagination.js +77 -34
- package/dist/components/ic-pagination.js.map +1 -1
- package/dist/components/ic-popover-menu.js +99 -59
- package/dist/components/ic-popover-menu.js.map +1 -1
- package/dist/components/ic-radio-group.js +105 -47
- package/dist/components/ic-radio-group.js.map +1 -1
- package/dist/components/ic-radio-option.js +72 -38
- package/dist/components/ic-radio-option.js.map +1 -1
- package/dist/components/ic-search-bar.js +210 -132
- package/dist/components/ic-search-bar.js.map +1 -1
- package/dist/components/ic-section-container2.js +11 -4
- package/dist/components/ic-section-container2.js.map +1 -1
- package/dist/components/ic-select.js +421 -199
- package/dist/components/ic-select.js.map +1 -1
- package/dist/components/ic-side-navigation.js +119 -79
- package/dist/components/ic-side-navigation.js.map +1 -1
- package/dist/components/ic-skeleton.js +15 -8
- package/dist/components/ic-skeleton.js.map +1 -1
- package/dist/components/ic-skip-link.d.ts +11 -0
- package/dist/components/ic-skip-link.js +91 -0
- package/dist/components/ic-skip-link.js.map +1 -0
- package/dist/components/ic-status-tag.js +30 -7
- package/dist/components/ic-status-tag.js.map +1 -1
- package/dist/components/ic-step.js +37 -35
- package/dist/components/ic-step.js.map +1 -1
- package/dist/components/ic-stepper.js +61 -35
- package/dist/components/ic-stepper.js.map +1 -1
- package/dist/components/ic-switch.js +65 -31
- package/dist/components/ic-switch.js.map +1 -1
- package/dist/components/ic-tab-context.js +116 -154
- package/dist/components/ic-tab-context.js.map +1 -1
- package/dist/components/ic-tab-group.js +19 -14
- package/dist/components/ic-tab-group.js.map +1 -1
- package/dist/components/ic-tab-panel.js +22 -16
- package/dist/components/ic-tab-panel.js.map +1 -1
- package/dist/components/ic-tab.js +32 -22
- package/dist/components/ic-tab.js.map +1 -1
- package/dist/components/ic-text-field.js +504 -1
- package/dist/components/ic-text-field.js.map +1 -1
- package/dist/components/ic-theme.js +59 -25
- package/dist/components/ic-theme.js.map +1 -1
- package/dist/components/ic-toast-region.js +7 -2
- package/dist/components/ic-toast-region.js.map +1 -1
- package/dist/components/ic-toast.js +29 -22
- package/dist/components/ic-toast.js.map +1 -1
- package/dist/components/ic-toggle-button-group.js +129 -36
- package/dist/components/ic-toggle-button-group.js.map +1 -1
- package/dist/components/ic-toggle-button.js +121 -29
- package/dist/components/ic-toggle-button.js.map +1 -1
- package/dist/components/ic-tooltip2.js +75 -25
- package/dist/components/ic-tooltip2.js.map +1 -1
- package/dist/components/ic-top-navigation.js +66 -35
- package/dist/components/ic-top-navigation.js.map +1 -1
- package/dist/components/ic-typography2.js +58 -27
- package/dist/components/ic-typography2.js.map +1 -1
- package/dist/core/ag-theme-icds.css +218 -0
- package/dist/core/core.css +1737 -64
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/index.esm.js.map +1 -1
- package/dist/core/p-005cd8a8.entry.js +2 -0
- package/dist/core/p-005cd8a8.entry.js.map +1 -0
- package/dist/core/p-0631c3ab.entry.js +2 -0
- package/dist/core/p-0631c3ab.entry.js.map +1 -0
- package/dist/core/p-0a8b3967.entry.js +2 -0
- package/dist/core/p-0a8b3967.entry.js.map +1 -0
- package/dist/core/p-0b4350df.entry.js +2 -0
- package/dist/core/p-0b4350df.entry.js.map +1 -0
- package/dist/core/p-0e618fc5.entry.js +2 -0
- package/dist/core/p-0e618fc5.entry.js.map +1 -0
- package/dist/core/p-18ecba80.entry.js +2 -0
- package/dist/core/p-18ecba80.entry.js.map +1 -0
- package/dist/core/p-1e4cdd2d.entry.js +2 -0
- package/dist/core/p-1e4cdd2d.entry.js.map +1 -0
- package/dist/core/p-23d059ff.entry.js +2 -0
- package/dist/core/p-23d059ff.entry.js.map +1 -0
- package/dist/core/{p-54238d16.entry.js → p-23ed8b99.entry.js} +2 -2
- package/dist/core/p-23ed8b99.entry.js.map +1 -0
- package/dist/core/p-281ce313.js +2 -0
- package/dist/core/p-281ce313.js.map +1 -0
- package/dist/core/p-30abe545.entry.js +2 -0
- package/dist/core/p-30abe545.entry.js.map +1 -0
- package/dist/core/p-3132270d.entry.js +2 -0
- package/dist/core/p-3132270d.entry.js.map +1 -0
- package/dist/core/p-33c86ba6.entry.js +2 -0
- package/dist/core/p-33c86ba6.entry.js.map +1 -0
- package/dist/core/p-3675c4b4.entry.js +2 -0
- package/dist/core/p-3675c4b4.entry.js.map +1 -0
- package/dist/core/p-3b185c32.js.map +1 -1
- package/dist/core/p-3b5d3e24.entry.js +2 -0
- package/dist/core/p-3b5d3e24.entry.js.map +1 -0
- package/dist/core/p-3eb7ef1d.entry.js +2 -0
- package/dist/core/p-3eb7ef1d.entry.js.map +1 -0
- package/dist/core/{p-a87d13b3.entry.js → p-40f2f58e.entry.js} +2 -2
- package/dist/core/p-40f2f58e.entry.js.map +1 -0
- package/dist/core/p-4245a976.entry.js +2 -0
- package/dist/core/p-4245a976.entry.js.map +1 -0
- package/dist/core/p-426ec638.js.map +1 -1
- package/dist/core/p-44e4e8c1.entry.js +2 -0
- package/dist/core/p-44e4e8c1.entry.js.map +1 -0
- package/dist/core/p-45432bf5.entry.js +2 -0
- package/dist/core/p-45432bf5.entry.js.map +1 -0
- package/dist/core/p-4b601e06.entry.js +2 -0
- package/dist/core/p-4b601e06.entry.js.map +1 -0
- package/dist/core/{p-bf89c86d.entry.js → p-4b6818d9.entry.js} +2 -2
- package/dist/core/p-4b6818d9.entry.js.map +1 -0
- package/dist/core/p-517d7afb.entry.js +2 -0
- package/dist/core/p-517d7afb.entry.js.map +1 -0
- package/dist/core/p-5206a978.entry.js +2 -0
- package/dist/core/p-5206a978.entry.js.map +1 -0
- package/dist/core/p-5d4b0480.entry.js +2 -0
- package/dist/core/p-5d4b0480.entry.js.map +1 -0
- package/dist/core/p-5e18b899.entry.js +2 -0
- package/dist/core/p-5e18b899.entry.js.map +1 -0
- package/dist/core/p-6337fe1f.entry.js +2 -0
- package/dist/core/p-6337fe1f.entry.js.map +1 -0
- package/dist/core/p-63fe83ad.entry.js +2 -0
- package/dist/core/p-63fe83ad.entry.js.map +1 -0
- package/dist/core/p-68a5aaff.js.map +1 -1
- package/dist/core/p-6de6b6b7.entry.js +2 -0
- package/dist/core/p-6de6b6b7.entry.js.map +1 -0
- package/dist/core/p-70700c7a.entry.js +2 -0
- package/dist/core/p-70700c7a.entry.js.map +1 -0
- package/dist/core/p-7a0d238b.entry.js +2 -0
- package/dist/core/p-7a0d238b.entry.js.map +1 -0
- package/dist/core/p-7afc71d0.entry.js +2 -0
- package/dist/core/p-7afc71d0.entry.js.map +1 -0
- package/dist/core/p-7c0914e7.entry.js +2 -0
- package/dist/core/p-7c0914e7.entry.js.map +1 -0
- package/dist/core/p-7dfe0284.entry.js +2 -0
- package/dist/core/p-7dfe0284.entry.js.map +1 -0
- package/dist/core/p-81a12e36.entry.js +2 -0
- package/dist/core/p-81a12e36.entry.js.map +1 -0
- package/dist/core/p-88924aef.entry.js +2 -0
- package/dist/core/p-88924aef.entry.js.map +1 -0
- package/dist/core/p-8ba129fc.entry.js +2 -0
- package/dist/core/p-8ba129fc.entry.js.map +1 -0
- package/dist/core/p-8e4e97b4.js +3 -0
- package/dist/core/p-8e4e97b4.js.map +1 -0
- package/dist/core/p-950db960.entry.js +2 -0
- package/dist/core/p-950db960.entry.js.map +1 -0
- package/dist/core/p-959a9cdf.entry.js +2 -0
- package/dist/core/p-959a9cdf.entry.js.map +1 -0
- package/dist/core/p-9ea9a4ce.entry.js +2 -0
- package/dist/core/p-9ea9a4ce.entry.js.map +1 -0
- package/dist/core/p-a9c96e3e.entry.js +2 -0
- package/dist/core/p-a9c96e3e.entry.js.map +1 -0
- package/dist/core/p-abaea607.entry.js +2 -0
- package/dist/core/p-abaea607.entry.js.map +1 -0
- package/dist/core/p-ac7db165.entry.js +2 -0
- package/dist/core/p-ac7db165.entry.js.map +1 -0
- package/dist/core/p-acebb05c.entry.js +2 -0
- package/dist/core/p-acebb05c.entry.js.map +1 -0
- package/dist/core/p-b3ac38c5.entry.js +2 -0
- package/dist/core/p-b3ac38c5.entry.js.map +1 -0
- package/dist/core/p-b3d6d5be.entry.js +2 -0
- package/dist/core/p-b3d6d5be.entry.js.map +1 -0
- package/dist/core/p-bbe5596b.entry.js +2 -0
- package/dist/core/p-bbe5596b.entry.js.map +1 -0
- package/dist/core/p-c04f36c5.entry.js +2 -0
- package/dist/core/p-c04f36c5.entry.js.map +1 -0
- package/dist/core/p-c2ca6274.entry.js +2 -0
- package/dist/core/p-c2ca6274.entry.js.map +1 -0
- package/dist/core/p-c2e091d7.js.map +1 -1
- package/dist/core/p-c62318a8.entry.js +2 -0
- package/dist/core/p-c62318a8.entry.js.map +1 -0
- package/dist/core/p-de43d375.entry.js +2 -0
- package/dist/core/p-de43d375.entry.js.map +1 -0
- package/dist/core/p-e1255160.js +2 -0
- package/dist/core/p-e1255160.js.map +1 -0
- package/dist/core/p-e2f893f0.entry.js +2 -0
- package/dist/core/p-e2f893f0.entry.js.map +1 -0
- package/dist/core/p-e56d0db2.entry.js +2 -0
- package/dist/core/p-e56d0db2.entry.js.map +1 -0
- package/dist/core/p-e586ae7b.entry.js +2 -0
- package/dist/core/p-e586ae7b.entry.js.map +1 -0
- package/dist/core/p-ef09b450.entry.js +2 -0
- package/dist/core/p-ef09b450.entry.js.map +1 -0
- package/dist/core/p-f074ef5b.js.map +1 -1
- package/dist/core/p-f34eee68.entry.js +2 -0
- package/dist/core/p-f34eee68.entry.js.map +1 -0
- package/dist/core/p-f3c72ffb.entry.js +2 -0
- package/dist/core/p-f3c72ffb.entry.js.map +1 -0
- package/dist/core/{p-a0e4d6bd.entry.js → p-f815f8c9.entry.js} +2 -2
- package/dist/core/p-f815f8c9.entry.js.map +1 -0
- package/dist/core/p-fbde763c.entry.js +2 -0
- package/dist/core/p-fbde763c.entry.js.map +1 -0
- package/dist/core/p-fc50d582.entry.js +2 -0
- package/dist/core/p-fc50d582.entry.js.map +1 -0
- package/dist/core/p-fe833509.entry.js +2 -0
- package/dist/core/p-fe833509.entry.js.map +1 -0
- package/dist/esm/app-globals-0f993ce5.js +5 -0
- package/dist/esm/app-globals-0f993ce5.js.map +1 -0
- package/dist/esm/core.js +14 -12
- package/dist/esm/core.js.map +1 -1
- package/dist/esm/{helpers-35ac5e03.js → helpers-46a2d1fd.js} +152 -71
- package/dist/esm/helpers-46a2d1fd.js.map +1 -0
- package/dist/esm/ic-accordion-group.entry.js +38 -22
- package/dist/esm/ic-accordion-group.entry.js.map +1 -1
- package/dist/esm/ic-accordion.entry.js +75 -46
- package/dist/esm/ic-accordion.entry.js.map +1 -1
- package/dist/esm/ic-alert.entry.js +93 -46
- package/dist/esm/ic-alert.entry.js.map +1 -1
- package/dist/esm/ic-back-to-top.entry.js +32 -16
- package/dist/esm/ic-back-to-top.entry.js.map +1 -1
- package/dist/esm/ic-badge.entry.js +91 -42
- package/dist/esm/ic-badge.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb-group.entry.js +114 -63
- package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb.entry.js +78 -18
- package/dist/esm/ic-breadcrumb.entry.js.map +1 -1
- package/dist/esm/ic-button_3.entry.js +366 -168
- package/dist/esm/ic-button_3.entry.js.map +1 -1
- package/dist/esm/ic-card-vertical.entry.js +93 -72
- package/dist/esm/ic-card-vertical.entry.js.map +1 -1
- package/dist/esm/ic-checkbox-group.entry.js +51 -14
- package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
- package/dist/esm/ic-checkbox.entry.js +55 -31
- package/dist/esm/ic-checkbox.entry.js.map +1 -1
- package/dist/esm/ic-chip.entry.js +64 -32
- package/dist/esm/ic-chip.entry.js.map +1 -1
- package/dist/esm/ic-classification-banner.entry.js +22 -6
- package/dist/esm/ic-classification-banner.entry.js.map +1 -1
- package/dist/esm/ic-data-list.entry.js +17 -7
- package/dist/esm/ic-data-list.entry.js.map +1 -1
- package/dist/esm/ic-data-row.entry.js +31 -20
- package/dist/esm/ic-data-row.entry.js.map +1 -1
- package/dist/esm/ic-dialog.entry.js +170 -114
- package/dist/esm/ic-dialog.entry.js.map +1 -1
- package/dist/esm/ic-divider.entry.js +95 -12
- package/dist/esm/ic-divider.entry.js.map +1 -1
- package/dist/esm/ic-empty-state.entry.js +21 -24
- package/dist/esm/ic-empty-state.entry.js.map +1 -1
- package/dist/esm/ic-footer-link-group.entry.js +12 -14
- package/dist/esm/ic-footer-link-group.entry.js.map +1 -1
- package/dist/esm/ic-footer-link.entry.js +15 -16
- package/dist/esm/ic-footer-link.entry.js.map +1 -1
- package/dist/esm/ic-footer.entry.js +52 -30
- package/dist/esm/ic-footer.entry.js.map +1 -1
- package/dist/esm/ic-hero.entry.js +35 -32
- package/dist/esm/ic-hero.entry.js.map +1 -1
- package/dist/esm/ic-horizontal-scroll.entry.js +40 -21
- package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -1
- package/dist/esm/ic-input-component-container_3.entry.js +587 -244
- package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
- package/dist/esm/ic-input-label_2.entry.js +62 -37
- package/dist/esm/ic-input-label_2.entry.js.map +1 -1
- package/dist/esm/ic-link.entry.js +43 -28
- package/dist/esm/ic-link.entry.js.map +1 -1
- package/dist/esm/ic-menu-group.entry.js +6 -7
- package/dist/esm/ic-menu-group.entry.js.map +1 -1
- package/dist/esm/ic-menu-item.entry.js +41 -33
- package/dist/esm/ic-menu-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-button.entry.js +32 -24
- package/dist/esm/ic-navigation-button.entry.js.map +1 -1
- package/dist/esm/ic-navigation-group.entry.js +69 -44
- package/dist/esm/ic-navigation-group.entry.js.map +1 -1
- package/dist/esm/ic-navigation-item.entry.js +122 -45
- package/dist/esm/ic-navigation-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-menu.entry.js +55 -33
- package/dist/esm/ic-navigation-menu.entry.js.map +1 -1
- package/dist/esm/ic-page-header.entry.js +53 -31
- package/dist/esm/ic-page-header.entry.js.map +1 -1
- package/dist/esm/ic-pagination-item.entry.js +37 -24
- package/dist/esm/ic-pagination-item.entry.js.map +1 -1
- package/dist/esm/ic-pagination.entry.js +76 -36
- package/dist/esm/ic-pagination.entry.js.map +1 -1
- package/dist/esm/ic-popover-menu.entry.js +97 -60
- package/dist/esm/ic-popover-menu.entry.js.map +1 -1
- package/dist/esm/ic-radio-group.entry.js +103 -48
- package/dist/esm/ic-radio-group.entry.js.map +1 -1
- package/dist/esm/ic-radio-option.entry.js +70 -39
- package/dist/esm/ic-radio-option.entry.js.map +1 -1
- package/dist/esm/ic-search-bar.entry.js +195 -108
- package/dist/esm/ic-search-bar.entry.js.map +1 -1
- package/dist/esm/ic-section-container.entry.js +12 -5
- package/dist/esm/ic-section-container.entry.js.map +1 -1
- package/dist/esm/ic-select.entry.js +418 -199
- package/dist/esm/ic-select.entry.js.map +1 -1
- package/dist/esm/ic-side-navigation.entry.js +119 -79
- package/dist/esm/ic-side-navigation.entry.js.map +1 -1
- package/dist/esm/ic-skeleton.entry.js +15 -8
- package/dist/esm/ic-skeleton.entry.js.map +1 -1
- package/dist/esm/ic-skip-link.entry.js +58 -0
- package/dist/esm/ic-skip-link.entry.js.map +1 -0
- package/dist/esm/ic-status-tag.entry.js +30 -10
- package/dist/esm/ic-status-tag.entry.js.map +1 -1
- package/dist/esm/ic-step.entry.js +37 -37
- package/dist/esm/ic-step.entry.js.map +1 -1
- package/dist/esm/ic-stepper.entry.js +60 -36
- package/dist/esm/ic-stepper.entry.js.map +1 -1
- package/dist/esm/ic-switch.entry.js +63 -31
- package/dist/esm/ic-switch.entry.js.map +1 -1
- package/dist/esm/ic-tab-context.entry.js +112 -152
- package/dist/esm/ic-tab-context.entry.js.map +1 -1
- package/dist/esm/ic-tab-group.entry.js +18 -14
- package/dist/esm/ic-tab-group.entry.js.map +1 -1
- package/dist/esm/ic-tab-panel.entry.js +19 -15
- package/dist/esm/ic-tab-panel.entry.js.map +1 -1
- package/dist/esm/ic-tab.entry.js +31 -22
- package/dist/esm/ic-tab.entry.js.map +1 -1
- package/dist/esm/ic-text-field.entry.js +229 -81
- package/dist/esm/ic-text-field.entry.js.map +1 -1
- package/dist/esm/ic-theme.entry.js +54 -23
- package/dist/esm/ic-theme.entry.js.map +1 -1
- package/dist/esm/ic-toast-region.entry.js +8 -3
- package/dist/esm/ic-toast-region.entry.js.map +1 -1
- package/dist/esm/ic-toast.entry.js +30 -23
- package/dist/esm/ic-toast.entry.js.map +1 -1
- package/dist/esm/ic-toggle-button-group.entry.js +117 -35
- package/dist/esm/ic-toggle-button-group.entry.js.map +1 -1
- package/dist/esm/ic-toggle-button.entry.js +110 -23
- package/dist/esm/ic-toggle-button.entry.js.map +1 -1
- package/dist/esm/ic-top-navigation.entry.js +65 -35
- package/dist/esm/ic-top-navigation.entry.js.map +1 -1
- package/dist/esm/ic-typography.entry.js +59 -30
- package/dist/esm/ic-typography.entry.js.map +1 -1
- package/dist/esm/index-a7a720e7.js +2580 -0
- package/dist/esm/index-a7a720e7.js.map +1 -0
- package/dist/esm/loader.js +6 -4
- package/dist/esm/loader.js.map +1 -1
- package/dist/types/components/ic-accordion/ic-accordion.d.ts +10 -8
- package/dist/types/components/ic-accordion-group/ic-accordion-group.d.ts +9 -9
- package/dist/types/components/ic-alert/ic-alert.d.ts +24 -8
- package/dist/types/components/ic-back-to-top/ic-back-to-top.d.ts +11 -2
- package/dist/types/components/ic-back-to-top/ic-back-to-top.types.d.ts +1 -0
- package/dist/types/components/ic-badge/ic-badge.d.ts +15 -5
- package/dist/types/components/ic-breadcrumb/ic-breadcrumb.d.ts +19 -6
- package/dist/types/components/ic-breadcrumb-group/ic-breadcrumb-group.d.ts +16 -9
- package/dist/types/components/ic-button/ic-button.d.ts +19 -13
- package/dist/types/components/ic-button/ic-button.types.d.ts +0 -1
- package/dist/types/components/ic-card-vertical/ic-card-vertical.d.ts +9 -5
- package/dist/types/components/ic-checkbox/ic-checkbox.d.ts +17 -12
- package/dist/types/components/ic-checkbox-group/ic-checkbox-group.d.ts +15 -8
- package/dist/types/components/ic-chip/ic-chip.d.ts +13 -2
- package/dist/types/components/ic-data-list/ic-data-list.d.ts +6 -2
- package/dist/types/components/ic-data-row/ic-data-row.d.ts +7 -3
- package/dist/types/components/ic-dialog/ic-dialog.d.ts +21 -12
- package/dist/types/components/ic-divider/ic-divider.d.ts +33 -3
- package/dist/types/components/ic-divider/ic-divider.types.d.ts +3 -0
- package/dist/types/components/ic-empty-state/ic-empty-state.d.ts +5 -2
- package/dist/types/components/ic-footer/ic-footer.d.ts +8 -7
- package/dist/types/components/ic-footer-link/ic-footer-link.d.ts +3 -3
- package/dist/types/components/ic-footer-link-group/ic-footer-link-group.d.ts +3 -2
- package/dist/types/components/ic-hero/ic-hero.d.ts +6 -7
- package/dist/types/components/ic-horizontal-scroll/ic-horizontal-scroll.d.ts +8 -2
- package/dist/types/components/ic-input-component-container/ic-input-component-container.d.ts +8 -11
- package/dist/types/components/ic-input-label/ic-input-label.d.ts +10 -6
- package/dist/types/components/ic-input-validation/ic-input-validation.d.ts +4 -4
- package/dist/types/components/ic-link/ic-link.d.ts +10 -6
- package/dist/types/components/ic-loading-indicator/ic-loading-indicator.d.ts +12 -8
- package/dist/types/components/ic-loading-indicator/ic-loading-indicator.types.d.ts +1 -1
- package/dist/types/components/ic-menu/ic-menu.d.ts +56 -23
- package/dist/types/components/ic-menu/ic-menu.types.d.ts +1 -1
- package/dist/types/components/ic-menu-item/ic-menu-item.d.ts +13 -6
- package/dist/types/components/ic-navigation-button/ic-navigation-button.d.ts +8 -4
- package/dist/types/components/ic-navigation-group/ic-navigation-group.d.ts +25 -9
- package/dist/types/components/ic-navigation-group/ic-navigation-group.types.d.ts +6 -0
- package/dist/types/components/ic-navigation-item/ic-navigation-item.d.ts +22 -11
- package/dist/types/components/ic-navigation-menu/ic-navigation-menu.d.ts +10 -3
- package/dist/types/components/ic-page-header/ic-page-header.d.ts +5 -1
- package/dist/types/components/ic-pagination/ic-pagination.d.ts +19 -14
- package/dist/types/components/ic-pagination-item/ic-pagination-item.d.ts +14 -9
- package/dist/types/components/ic-popover-menu/ic-popover-menu.d.ts +13 -11
- package/dist/types/components/ic-radio-group/ic-radio-group.d.ts +15 -10
- package/dist/types/components/ic-radio-option/ic-radio-option.d.ts +16 -9
- package/dist/types/components/ic-search-bar/ic-search-bar.d.ts +26 -14
- package/dist/types/components/ic-search-bar/ic-search-bar.types.d.ts +1 -1
- package/dist/types/components/ic-select/ic-select.d.ts +53 -32
- package/dist/types/components/ic-side-navigation/ic-side-navigation.d.ts +15 -15
- package/dist/types/components/ic-side-navigation/ic-side-navigation.types.d.ts +2 -2
- package/dist/types/components/ic-skeleton/ic-skeleton.d.ts +3 -2
- package/dist/types/components/ic-skip-link/ic-skip-link.d.ts +38 -0
- package/dist/types/components/ic-status-tag/ic-status-tag.d.ts +8 -0
- package/dist/types/components/ic-step/ic-step.d.ts +5 -0
- package/dist/types/components/ic-stepper/ic-stepper.d.ts +7 -5
- package/dist/types/components/ic-switch/ic-switch.d.ts +8 -7
- package/dist/types/components/ic-tab/ic-tab.d.ts +8 -5
- package/dist/types/components/ic-tab-context/ic-tab-context.d.ts +19 -12
- package/dist/types/components/ic-tab-group/ic-tab-group.d.ts +5 -5
- package/dist/types/components/ic-tab-panel/ic-tab-panel.d.ts +9 -3
- package/dist/types/components/ic-text-field/ic-text-field.d.ts +59 -34
- package/dist/types/components/ic-theme/ic-theme.d.ts +19 -8
- package/dist/types/components/ic-toast/ic-toast.d.ts +3 -3
- package/dist/types/components/ic-toast-region/ic-toast-region.d.ts +2 -1
- package/dist/types/components/ic-toggle-button/ic-toggle-button.d.ts +17 -8
- package/dist/types/components/ic-toggle-button-group/ic-toggle-button-group.d.ts +21 -5
- package/dist/types/components/ic-tooltip/ic-tooltip.d.ts +9 -1
- package/dist/types/components/ic-top-navigation/ic-top-navigation.d.ts +16 -12
- package/dist/types/components/ic-typography/ic-typography.d.ts +6 -2
- package/dist/types/components.d.ts +975 -389
- package/dist/types/stencil-public-runtime.d.ts +9 -10
- package/dist/types/utils/constants.d.ts +1 -0
- package/dist/types/utils/helpers.d.ts +35 -17
- package/dist/types/utils/types.d.ts +18 -10
- package/hydrate/index.d.ts +53 -12
- package/hydrate/index.js +32853 -19673
- package/hydrate/index.mjs +34474 -0
- package/hydrate/package.json +7 -1
- package/loader/cdn.js +1 -3
- package/loader/index.cjs.js +1 -3
- package/loader/index.d.ts +3 -0
- package/loader/index.es2017.js +1 -3
- package/loader/index.js +1 -3
- package/package.json +22 -21
- package/vscode-data.json +1017 -653
- package/dist/cjs/helpers-94b33ab0.js.map +0 -1
- package/dist/cjs/index-f982899d.js +0 -3047
- package/dist/cjs/index-f982899d.js.map +0 -1
- package/dist/cjs/types-dc22e301.js +0 -16
- package/dist/cjs/types-dc22e301.js.map +0 -1
- package/dist/collection/components/ic-accordion/test/basic/ic-accordion.spec.js +0 -346
- package/dist/collection/components/ic-accordion/test/basic/ic-accordion.spec.js.map +0 -1
- package/dist/collection/components/ic-accordion-group/test/basic/ic-accordion-group.spec.js +0 -129
- package/dist/collection/components/ic-accordion-group/test/basic/ic-accordion-group.spec.js.map +0 -1
- package/dist/collection/components/ic-alert/test/basic/ic-alert.spec.js +0 -197
- package/dist/collection/components/ic-alert/test/basic/ic-alert.spec.js.map +0 -1
- package/dist/collection/components/ic-back-to-top/test/basic/ic-back-to-top.spec.js +0 -131
- package/dist/collection/components/ic-back-to-top/test/basic/ic-back-to-top.spec.js.map +0 -1
- package/dist/collection/components/ic-badge/test/basic/ic-badge.spec.js +0 -264
- package/dist/collection/components/ic-badge/test/basic/ic-badge.spec.js.map +0 -1
- package/dist/collection/components/ic-breadcrumb/test/basic/ic-breadcrumb.spec.js +0 -118
- package/dist/collection/components/ic-breadcrumb/test/basic/ic-breadcrumb.spec.js.map +0 -1
- package/dist/collection/components/ic-breadcrumb-group/test/basic/ic-breadcrumb-group.spec.js +0 -219
- package/dist/collection/components/ic-breadcrumb-group/test/basic/ic-breadcrumb-group.spec.js.map +0 -1
- package/dist/collection/components/ic-button/test/basic/ic-button.spec.js +0 -332
- package/dist/collection/components/ic-button/test/basic/ic-button.spec.js.map +0 -1
- package/dist/collection/components/ic-card-vertical/test/basic/ic-card-vertical.spec.js +0 -173
- package/dist/collection/components/ic-card-vertical/test/basic/ic-card-vertical.spec.js.map +0 -1
- package/dist/collection/components/ic-checkbox-group/test/basic/ic-checkbox-group.spec.js +0 -281
- package/dist/collection/components/ic-checkbox-group/test/basic/ic-checkbox-group.spec.js.map +0 -1
- package/dist/collection/components/ic-chip/test/basic/ic-chip.spec.js +0 -169
- package/dist/collection/components/ic-chip/test/basic/ic-chip.spec.js.map +0 -1
- package/dist/collection/components/ic-classification-banner/test/basic/ic-classification-banner.spec.js +0 -188
- package/dist/collection/components/ic-classification-banner/test/basic/ic-classification-banner.spec.js.map +0 -1
- package/dist/collection/components/ic-data-list/test/basic/ic-data-list.spec.js +0 -161
- package/dist/collection/components/ic-data-list/test/basic/ic-data-list.spec.js.map +0 -1
- package/dist/collection/components/ic-data-row/test/basic/ic-data-row.spec.js +0 -74
- package/dist/collection/components/ic-data-row/test/basic/ic-data-row.spec.js.map +0 -1
- package/dist/collection/components/ic-dialog/test/basic/ic-dialog.spec.js +0 -428
- package/dist/collection/components/ic-dialog/test/basic/ic-dialog.spec.js.map +0 -1
- package/dist/collection/components/ic-divider/test/basic/ic-divider.spec.js +0 -24
- package/dist/collection/components/ic-divider/test/basic/ic-divider.spec.js.map +0 -1
- package/dist/collection/components/ic-footer/test/basic/ic-footer.spec.js +0 -140
- package/dist/collection/components/ic-footer/test/basic/ic-footer.spec.js.map +0 -1
- package/dist/collection/components/ic-footer-link/test/basic/ic-footer-link.spec.js +0 -46
- package/dist/collection/components/ic-footer-link/test/basic/ic-footer-link.spec.js.map +0 -1
- package/dist/collection/components/ic-footer-link-group/test/basic/ic-footer-link-group.spec.js +0 -66
- package/dist/collection/components/ic-footer-link-group/test/basic/ic-footer-link-group.spec.js.map +0 -1
- package/dist/collection/components/ic-hero/test/basic/ic-hero.spec.js +0 -91
- package/dist/collection/components/ic-hero/test/basic/ic-hero.spec.js.map +0 -1
- package/dist/collection/components/ic-horizontal-scroll/test/basic/ic-horizontal-scroll.spec.js +0 -180
- package/dist/collection/components/ic-horizontal-scroll/test/basic/ic-horizontal-scroll.spec.js.map +0 -1
- package/dist/collection/components/ic-input-component-container/test/basic/ic-input-component-container.spec.js +0 -145
- package/dist/collection/components/ic-input-component-container/test/basic/ic-input-component-container.spec.js.map +0 -1
- package/dist/collection/components/ic-input-container/test/basic/ic-input-container.spec.js +0 -38
- package/dist/collection/components/ic-input-container/test/basic/ic-input-container.spec.js.map +0 -1
- package/dist/collection/components/ic-input-label/test/basic/ic-input-label.spec.js +0 -98
- package/dist/collection/components/ic-input-label/test/basic/ic-input-label.spec.js.map +0 -1
- package/dist/collection/components/ic-input-validation/test/basic/ic-input-validation.spec.js +0 -89
- package/dist/collection/components/ic-input-validation/test/basic/ic-input-validation.spec.js.map +0 -1
- package/dist/collection/components/ic-link/test/basic/ic-link.spec.js +0 -217
- package/dist/collection/components/ic-link/test/basic/ic-link.spec.js.map +0 -1
- package/dist/collection/components/ic-loading-indicator/test/basic/ic-loading-indicator.spec.js +0 -148
- package/dist/collection/components/ic-loading-indicator/test/basic/ic-loading-indicator.spec.js.map +0 -1
- package/dist/collection/components/ic-menu/test/basic/ic-menu.spec.js +0 -760
- package/dist/collection/components/ic-menu/test/basic/ic-menu.spec.js.map +0 -1
- package/dist/collection/components/ic-menu-group/test/basic/ic-menu-group.spec.js +0 -94
- package/dist/collection/components/ic-menu-group/test/basic/ic-menu-group.spec.js.map +0 -1
- package/dist/collection/components/ic-menu-item/test/basic/ic-menu-item.spec.js +0 -108
- package/dist/collection/components/ic-menu-item/test/basic/ic-menu-item.spec.js.map +0 -1
- package/dist/collection/components/ic-navigation-button/test/basic/ic-navigation-button.spec.js +0 -95
- package/dist/collection/components/ic-navigation-button/test/basic/ic-navigation-button.spec.js.map +0 -1
- package/dist/collection/components/ic-navigation-group/test/basic/ic-navigation-group.spec.js +0 -309
- package/dist/collection/components/ic-navigation-group/test/basic/ic-navigation-group.spec.js.map +0 -1
- package/dist/collection/components/ic-navigation-item/test/basic/ic-navigation-item.spec.js +0 -118
- package/dist/collection/components/ic-navigation-item/test/basic/ic-navigation-item.spec.js.map +0 -1
- package/dist/collection/components/ic-navigation-menu/test/basic/ic-navigation-menu.spec.js +0 -176
- package/dist/collection/components/ic-navigation-menu/test/basic/ic-navigation-menu.spec.js.map +0 -1
- package/dist/collection/components/ic-page-header/test/basic/ic-page-header.spec.js +0 -291
- package/dist/collection/components/ic-page-header/test/basic/ic-page-header.spec.js.map +0 -1
- package/dist/collection/components/ic-pagination/test/basic/ic-pagination.spec.js +0 -380
- package/dist/collection/components/ic-pagination/test/basic/ic-pagination.spec.js.map +0 -1
- package/dist/collection/components/ic-pagination-item/test/basic/ic-pagination-item.spec.js +0 -76
- package/dist/collection/components/ic-pagination-item/test/basic/ic-pagination-item.spec.js.map +0 -1
- package/dist/collection/components/ic-popover-menu/test/basic/ic-popover-menu.spec.js +0 -398
- package/dist/collection/components/ic-popover-menu/test/basic/ic-popover-menu.spec.js.map +0 -1
- package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.e2e.js +0 -339
- package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.e2e.js.map +0 -1
- package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.spec.js +0 -380
- package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.spec.js.map +0 -1
- package/dist/collection/components/ic-search-bar/test/basic/ic-search-bar.e2e.js +0 -1106
- package/dist/collection/components/ic-search-bar/test/basic/ic-search-bar.e2e.js.map +0 -1
- package/dist/collection/components/ic-search-bar/test/basic/ic-search-bar.spec.js +0 -584
- package/dist/collection/components/ic-search-bar/test/basic/ic-search-bar.spec.js.map +0 -1
- package/dist/collection/components/ic-section-container/test/basic/ic-section-container.spec.js +0 -69
- package/dist/collection/components/ic-section-container/test/basic/ic-section-container.spec.js.map +0 -1
- package/dist/collection/components/ic-select/test/basic/ic-select.spec.js +0 -1439
- package/dist/collection/components/ic-select/test/basic/ic-select.spec.js.map +0 -1
- package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation.spec.js +0 -503
- package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation.spec.js.map +0 -1
- package/dist/collection/components/ic-skeleton/test/basic/ic-skeleton.spec.js +0 -89
- package/dist/collection/components/ic-skeleton/test/basic/ic-skeleton.spec.js.map +0 -1
- package/dist/collection/components/ic-status-tag/test/basic/ic-status-tag.spec.js +0 -43
- package/dist/collection/components/ic-status-tag/test/basic/ic-status-tag.spec.js.map +0 -1
- package/dist/collection/components/ic-step/test/basic/ic-step.spec.js +0 -176
- package/dist/collection/components/ic-step/test/basic/ic-step.spec.js.map +0 -1
- package/dist/collection/components/ic-stepper/test/basic/ic-stepper.e2e.js +0 -49
- package/dist/collection/components/ic-stepper/test/basic/ic-stepper.e2e.js.map +0 -1
- package/dist/collection/components/ic-stepper/test/basic/ic-stepper.spec.js +0 -752
- package/dist/collection/components/ic-stepper/test/basic/ic-stepper.spec.js.map +0 -1
- package/dist/collection/components/ic-switch/test/basic/ic-switch.spec.js +0 -104
- package/dist/collection/components/ic-switch/test/basic/ic-switch.spec.js.map +0 -1
- package/dist/collection/components/ic-tab/test/basic/ic-tab.spec.js +0 -159
- package/dist/collection/components/ic-tab/test/basic/ic-tab.spec.js.map +0 -1
- package/dist/collection/components/ic-tab-context/test/basic/ic-tab-context.spec.js +0 -390
- package/dist/collection/components/ic-tab-context/test/basic/ic-tab-context.spec.js.map +0 -1
- package/dist/collection/components/ic-tab-panel/test/basic/ic-tab-panel.spec.js +0 -50
- package/dist/collection/components/ic-tab-panel/test/basic/ic-tab-panel.spec.js.map +0 -1
- package/dist/collection/components/ic-text-field/test/basic/ic-text-field.input.spec.js +0 -284
- package/dist/collection/components/ic-text-field/test/basic/ic-text-field.input.spec.js.map +0 -1
- package/dist/collection/components/ic-text-field/test/basic/ic-text-field.textarea.spec.js +0 -341
- package/dist/collection/components/ic-text-field/test/basic/ic-text-field.textarea.spec.js.map +0 -1
- package/dist/collection/components/ic-theme/test/basic/ic-theme.e2e.js +0 -72
- package/dist/collection/components/ic-theme/test/basic/ic-theme.e2e.js.map +0 -1
- package/dist/collection/components/ic-theme/test/basic/ic-theme.spec.js +0 -77
- package/dist/collection/components/ic-theme/test/basic/ic-theme.spec.js.map +0 -1
- package/dist/collection/components/ic-toast/test/basic/ic-toast.spec.js +0 -314
- package/dist/collection/components/ic-toast/test/basic/ic-toast.spec.js.map +0 -1
- package/dist/collection/components/ic-toast-region/test/basic/ic-toast-region.spec.js +0 -64
- package/dist/collection/components/ic-toast-region/test/basic/ic-toast-region.spec.js.map +0 -1
- package/dist/collection/components/ic-toggle-button/test/basic/ic-toggle-button.spec.js +0 -116
- package/dist/collection/components/ic-toggle-button/test/basic/ic-toggle-button.spec.js.map +0 -1
- package/dist/collection/components/ic-toggle-button-group/test/ic-toggle-button-group.spec.js +0 -150
- package/dist/collection/components/ic-toggle-button-group/test/ic-toggle-button-group.spec.js.map +0 -1
- package/dist/collection/components/ic-tooltip/test/basic/ic-tooltip.e2e.js +0 -109
- package/dist/collection/components/ic-tooltip/test/basic/ic-tooltip.e2e.js.map +0 -1
- package/dist/collection/components/ic-tooltip/test/basic/ic-tooltip.spec.js +0 -307
- package/dist/collection/components/ic-tooltip/test/basic/ic-tooltip.spec.js.map +0 -1
- package/dist/collection/components/ic-top-navigation/test/basic/ic-top-navigation.spec.js +0 -314
- package/dist/collection/components/ic-top-navigation/test/basic/ic-top-navigation.spec.js.map +0 -1
- package/dist/collection/components/ic-typography/test/basic/ic-typography.e2e.js +0 -39
- package/dist/collection/components/ic-typography/test/basic/ic-typography.e2e.js.map +0 -1
- package/dist/collection/components/ic-typography/test/basic/ic-typography.spec.js +0 -393
- package/dist/collection/components/ic-typography/test/basic/ic-typography.spec.js.map +0 -1
- package/dist/collection/testspec.setup.js +0 -63
- package/dist/collection/testspec.setup.js.map +0 -1
- package/dist/components/ic-text-field2.js +0 -354
- package/dist/components/ic-text-field2.js.map +0 -1
- package/dist/components/types.js +0 -16
- package/dist/components/types.js.map +0 -1
- package/dist/core/p-05d32a4f.entry.js +0 -2
- package/dist/core/p-05d32a4f.entry.js.map +0 -1
- package/dist/core/p-086a6d4f.entry.js +0 -2
- package/dist/core/p-086a6d4f.entry.js.map +0 -1
- package/dist/core/p-0a00a786.entry.js +0 -2
- package/dist/core/p-0a00a786.entry.js.map +0 -1
- package/dist/core/p-145fcef3.entry.js +0 -2
- package/dist/core/p-145fcef3.entry.js.map +0 -1
- package/dist/core/p-15367990.entry.js +0 -2
- package/dist/core/p-15367990.entry.js.map +0 -1
- package/dist/core/p-1737bf2c.entry.js +0 -2
- package/dist/core/p-1737bf2c.entry.js.map +0 -1
- package/dist/core/p-1ace2b02.entry.js +0 -2
- package/dist/core/p-1ace2b02.entry.js.map +0 -1
- package/dist/core/p-1e371012.entry.js +0 -2
- package/dist/core/p-1e371012.entry.js.map +0 -1
- package/dist/core/p-1f227289.entry.js +0 -2
- package/dist/core/p-1f227289.entry.js.map +0 -1
- package/dist/core/p-24275b92.entry.js +0 -2
- package/dist/core/p-24275b92.entry.js.map +0 -1
- package/dist/core/p-26b7b18f.js +0 -2
- package/dist/core/p-26b7b18f.js.map +0 -1
- package/dist/core/p-29e6c33f.entry.js +0 -2
- package/dist/core/p-29e6c33f.entry.js.map +0 -1
- package/dist/core/p-2a6f01ad.entry.js +0 -2
- package/dist/core/p-2a6f01ad.entry.js.map +0 -1
- package/dist/core/p-2f86c53b.entry.js +0 -2
- package/dist/core/p-2f86c53b.entry.js.map +0 -1
- package/dist/core/p-319e40c0.entry.js +0 -2
- package/dist/core/p-319e40c0.entry.js.map +0 -1
- package/dist/core/p-346c6920.entry.js +0 -2
- package/dist/core/p-346c6920.entry.js.map +0 -1
- package/dist/core/p-4b1445b3.entry.js +0 -2
- package/dist/core/p-4b1445b3.entry.js.map +0 -1
- package/dist/core/p-4b621c67.entry.js +0 -2
- package/dist/core/p-4b621c67.entry.js.map +0 -1
- package/dist/core/p-4ca2b177.entry.js +0 -2
- package/dist/core/p-4ca2b177.entry.js.map +0 -1
- package/dist/core/p-54238d16.entry.js.map +0 -1
- package/dist/core/p-5515ad19.entry.js +0 -2
- package/dist/core/p-5515ad19.entry.js.map +0 -1
- package/dist/core/p-5c8081d6.entry.js +0 -2
- package/dist/core/p-5c8081d6.entry.js.map +0 -1
- package/dist/core/p-5f941f3a.entry.js +0 -2
- package/dist/core/p-5f941f3a.entry.js.map +0 -1
- package/dist/core/p-5fd293b3.entry.js +0 -2
- package/dist/core/p-5fd293b3.entry.js.map +0 -1
- package/dist/core/p-60721d95.entry.js +0 -2
- package/dist/core/p-60721d95.entry.js.map +0 -1
- package/dist/core/p-64a5a1d8.entry.js +0 -2
- package/dist/core/p-64a5a1d8.entry.js.map +0 -1
- package/dist/core/p-65e36461.entry.js +0 -2
- package/dist/core/p-65e36461.entry.js.map +0 -1
- package/dist/core/p-66363c7d.entry.js +0 -2
- package/dist/core/p-66363c7d.entry.js.map +0 -1
- package/dist/core/p-69728d76.entry.js +0 -2
- package/dist/core/p-69728d76.entry.js.map +0 -1
- package/dist/core/p-6b328c76.entry.js +0 -2
- package/dist/core/p-6b328c76.entry.js.map +0 -1
- package/dist/core/p-6b5ddacd.entry.js +0 -2
- package/dist/core/p-6b5ddacd.entry.js.map +0 -1
- package/dist/core/p-6b5e91e2.js +0 -3
- package/dist/core/p-6b5e91e2.js.map +0 -1
- package/dist/core/p-7b3d6577.entry.js +0 -2
- package/dist/core/p-7b3d6577.entry.js.map +0 -1
- package/dist/core/p-7d45828d.entry.js +0 -2
- package/dist/core/p-7d45828d.entry.js.map +0 -1
- package/dist/core/p-893eca54.entry.js +0 -2
- package/dist/core/p-893eca54.entry.js.map +0 -1
- package/dist/core/p-8ee262a4.entry.js +0 -2
- package/dist/core/p-8ee262a4.entry.js.map +0 -1
- package/dist/core/p-8f93d92b.entry.js +0 -2
- package/dist/core/p-8f93d92b.entry.js.map +0 -1
- package/dist/core/p-90bb13d2.entry.js +0 -2
- package/dist/core/p-90bb13d2.entry.js.map +0 -1
- package/dist/core/p-9189a82d.entry.js +0 -2
- package/dist/core/p-9189a82d.entry.js.map +0 -1
- package/dist/core/p-9190a84d.entry.js +0 -2
- package/dist/core/p-9190a84d.entry.js.map +0 -1
- package/dist/core/p-93f50a1a.entry.js +0 -2
- package/dist/core/p-93f50a1a.entry.js.map +0 -1
- package/dist/core/p-9474baf3.entry.js +0 -2
- package/dist/core/p-9474baf3.entry.js.map +0 -1
- package/dist/core/p-9857f6b0.entry.js +0 -2
- package/dist/core/p-9857f6b0.entry.js.map +0 -1
- package/dist/core/p-a0e4d6bd.entry.js.map +0 -1
- package/dist/core/p-a1b9a808.entry.js +0 -2
- package/dist/core/p-a1b9a808.entry.js.map +0 -1
- package/dist/core/p-a79bec03.entry.js +0 -2
- package/dist/core/p-a79bec03.entry.js.map +0 -1
- package/dist/core/p-a84a4675.entry.js +0 -2
- package/dist/core/p-a84a4675.entry.js.map +0 -1
- package/dist/core/p-a87d13b3.entry.js.map +0 -1
- package/dist/core/p-a928c7b3.entry.js +0 -2
- package/dist/core/p-a928c7b3.entry.js.map +0 -1
- package/dist/core/p-bf89c86d.entry.js.map +0 -1
- package/dist/core/p-d0524c73.js +0 -2
- package/dist/core/p-d0524c73.js.map +0 -1
- package/dist/core/p-d24410ca.entry.js +0 -2
- package/dist/core/p-d24410ca.entry.js.map +0 -1
- package/dist/core/p-d52ca420.entry.js +0 -2
- package/dist/core/p-d52ca420.entry.js.map +0 -1
- package/dist/core/p-d67a30ca.entry.js +0 -2
- package/dist/core/p-d67a30ca.entry.js.map +0 -1
- package/dist/core/p-de27c59e.entry.js +0 -2
- package/dist/core/p-de27c59e.entry.js.map +0 -1
- package/dist/core/p-dec339ba.entry.js +0 -2
- package/dist/core/p-dec339ba.entry.js.map +0 -1
- package/dist/core/p-e4335135.entry.js +0 -2
- package/dist/core/p-e4335135.entry.js.map +0 -1
- package/dist/core/p-e56a2a06.entry.js +0 -2
- package/dist/core/p-e56a2a06.entry.js.map +0 -1
- package/dist/core/p-e696dc2a.entry.js +0 -2
- package/dist/core/p-e696dc2a.entry.js.map +0 -1
- package/dist/core/p-f0501be1.entry.js +0 -2
- package/dist/core/p-f0501be1.entry.js.map +0 -1
- package/dist/core/p-f50462df.entry.js +0 -2
- package/dist/core/p-f50462df.entry.js.map +0 -1
- package/dist/core/p-feb80f37.entry.js +0 -2
- package/dist/core/p-feb80f37.entry.js.map +0 -1
- package/dist/esm/helpers-35ac5e03.js.map +0 -1
- package/dist/esm/index-d1d2c456.js +0 -3016
- package/dist/esm/index-d1d2c456.js.map +0 -1
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/types-6f6b41a5.js +0 -16
- package/dist/esm/types-6f6b41a5.js.map +0 -1
- package/dist/types/testspec.setup.d.ts +0 -15
@@ -1,7 +1,7 @@
|
|
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
|
-
import { IcInformationStatus,
|
4
|
+
import { IcInformationStatus, } from "../../utils/types";
|
5
5
|
import Expand from "./assets/Expand.svg";
|
6
6
|
import Clear from "./assets/Clear.svg";
|
7
7
|
let inputIds = 0;
|
@@ -19,14 +19,130 @@ export class Select {
|
|
19
19
|
this.searchableMenuItemSelected = false;
|
20
20
|
this.ungroupedOptions = [];
|
21
21
|
this.hostMutationObserver = null;
|
22
|
+
this.clearButtonFocused = false;
|
23
|
+
this.noOptions = null;
|
24
|
+
this.open = false;
|
25
|
+
this.pressedCharacters = "";
|
26
|
+
this.searchableSelectInputValue = null;
|
27
|
+
/**
|
28
|
+
* If `true`, the disabled state will be set.
|
29
|
+
*/
|
30
|
+
this.disabled = false;
|
31
|
+
/**
|
32
|
+
* If `true`, the built in filtering will be disabled for a searchable variant. For example, if options will already be filtered from external source.
|
33
|
+
*/
|
34
|
+
this.disableAutoFiltering = false;
|
35
|
+
/**
|
36
|
+
* The text displayed when there are no options in the option list.
|
37
|
+
*/
|
38
|
+
this.emptyOptionListText = "No results found";
|
39
|
+
/**
|
40
|
+
* If `true`, the select will fill the width of the container.
|
41
|
+
*/
|
42
|
+
this.fullWidth = false;
|
43
|
+
/**
|
44
|
+
* The helper text that will be displayed for additional field guidance.
|
45
|
+
*/
|
46
|
+
this.helperText = "";
|
47
|
+
/**
|
48
|
+
* If `true`, the label will be hidden and the required label value will be applied as an aria-label.
|
49
|
+
*/
|
50
|
+
this.hideLabel = false;
|
51
|
+
/**
|
52
|
+
* If `true`, descriptions of options will be included when filtering options in a searchable select. Only applies to built in filtering.
|
53
|
+
*/
|
54
|
+
this.includeDescriptionsInSearch = false;
|
55
|
+
/**
|
56
|
+
* If `true`, group titles of grouped options will be included when filtering options in a searchable select. Only applies to built in filtering.
|
57
|
+
*/
|
58
|
+
this.includeGroupTitlesInSearch = false;
|
59
|
+
/**
|
60
|
+
* The message displayed when external loading times out.
|
61
|
+
*/
|
62
|
+
this.loadingErrorLabel = "Loading Error";
|
63
|
+
/**
|
64
|
+
* The message displayed whilst the options are being loaded externally.
|
65
|
+
*/
|
66
|
+
this.loadingLabel = "Loading...";
|
67
|
+
/**
|
68
|
+
* If `true`, multiple options can be selected.
|
69
|
+
*/
|
70
|
+
this.multiple = false;
|
71
|
+
/**
|
72
|
+
* The name of the control, which is submitted with the form data.
|
73
|
+
*/
|
74
|
+
this.name = this.inputId;
|
75
|
+
/**
|
76
|
+
* The placeholder value to be displayed.
|
77
|
+
*/
|
78
|
+
this.placeholder = "Select an option";
|
79
|
+
/**
|
80
|
+
* If `true`, the readonly state will be set.
|
81
|
+
*/
|
82
|
+
this.readonly = false;
|
83
|
+
/**
|
84
|
+
* If `true`, the select will require a value.
|
85
|
+
*/
|
86
|
+
this.required = false;
|
87
|
+
/**
|
88
|
+
* If `true`, a searchable variant of the select will be displayed which can be typed in to filter options. This functionality is only available on the single-select variant of the select component.
|
89
|
+
*/
|
90
|
+
this.searchable = false;
|
91
|
+
/**
|
92
|
+
* Whether the search string of the searchable select should match the start of or anywhere in the options. Only applies to built in filtering.
|
93
|
+
*/
|
94
|
+
this.searchMatchPosition = "anywhere";
|
95
|
+
/**
|
96
|
+
* If `true`, the icOptionSelect event will be fired on enter instead of ArrowUp and ArrowDown on the single select.
|
97
|
+
*/
|
98
|
+
this.selectOnEnter = false;
|
99
|
+
/**
|
100
|
+
* If `true`, a button which clears the select input when clicked will be displayed. The button will always appear on the searchable select.
|
101
|
+
*/
|
102
|
+
this.showClearButton = false;
|
103
|
+
/**
|
104
|
+
* The size of the select.
|
105
|
+
*/
|
106
|
+
this.size = "medium";
|
107
|
+
/**
|
108
|
+
* Sets the theme color to the dark or light theme color. "inherit" will set the color based on the system settings or ic-theme component.
|
109
|
+
*/
|
110
|
+
this.theme = "inherit";
|
111
|
+
/**
|
112
|
+
* The validation status - e.g. 'error' | 'warning' | 'success'.
|
113
|
+
*/
|
114
|
+
this.validationStatus = "";
|
115
|
+
/**
|
116
|
+
* The text to display as the validation message.
|
117
|
+
*/
|
118
|
+
this.validationText = "";
|
119
|
+
/**
|
120
|
+
* If `true`, the loading state will be triggered when fetching options asynchronously.
|
121
|
+
*/
|
122
|
+
this.loading = false;
|
123
|
+
/**
|
124
|
+
* The possible selection options.
|
125
|
+
*/
|
126
|
+
this.options = [];
|
127
|
+
this.filteredOptions = this.options;
|
128
|
+
this.uniqueOptions = this.options;
|
129
|
+
/**
|
130
|
+
* The amount of time, in milliseconds, to wait to trigger the `icInput` event after each keystroke.
|
131
|
+
*/
|
132
|
+
this.debounce = 0;
|
133
|
+
this.currDebounce = this.debounce;
|
134
|
+
this.initialValue = this.value;
|
135
|
+
this.inputValueToFilter = this.value;
|
22
136
|
// triggered when attributes of host element change
|
23
137
|
this.hostMutationCallback = (mutationList) => {
|
24
138
|
let forceComponentUpdate = false;
|
25
139
|
mutationList.forEach(({ attributeName, type, addedNodes, removedNodes }) => {
|
26
|
-
if (
|
27
|
-
this.
|
28
|
-
|
29
|
-
|
140
|
+
if (attributeName) {
|
141
|
+
const attribute = this.el.getAttribute(attributeName);
|
142
|
+
if (attribute && MUTABLE_ATTRIBUTES.includes(attributeName)) {
|
143
|
+
this.inheritedAttributes[attributeName] = attribute;
|
144
|
+
forceComponentUpdate = true;
|
145
|
+
}
|
30
146
|
}
|
31
147
|
else if (type === "childList") {
|
32
148
|
forceComponentUpdate = checkSlotInChildMutations(addedNodes, removedNodes, "icon");
|
@@ -43,21 +159,59 @@ export class Select {
|
|
43
159
|
this.blurredBecauseButtonPressed = true;
|
44
160
|
this.retryButtonClick = true;
|
45
161
|
this.hasSetDefaultValue = true;
|
46
|
-
this.icRetryLoad.emit({
|
162
|
+
this.icRetryLoad.emit({
|
163
|
+
value: this.searchable
|
164
|
+
? this.searchableSelectInputValue
|
165
|
+
: this.hiddenInputValue,
|
166
|
+
});
|
47
167
|
};
|
48
168
|
this.emitIcChange = (value) => {
|
49
|
-
|
169
|
+
// If "Select all" button clicked, replace value with new value (array of all option values)
|
170
|
+
if (this.multiple && !Array.isArray(value) && value !== null) {
|
171
|
+
this.handleMultipleSelectChange(String(value));
|
172
|
+
}
|
173
|
+
else {
|
50
174
|
this.value = value;
|
51
175
|
}
|
52
|
-
|
53
|
-
this.
|
54
|
-
this.icChange.emit({ value: value });
|
55
|
-
}, this.currDebounce);
|
176
|
+
const valueToEmit = this.multiple ? this.value : value;
|
177
|
+
this.icChange.emit({ value: valueToEmit || null });
|
56
178
|
};
|
57
|
-
this.
|
58
|
-
this.
|
59
|
-
|
60
|
-
|
179
|
+
this.emitIcInput = (value) => {
|
180
|
+
clearTimeout(this.debounceIcInput);
|
181
|
+
this.debounceIcInput = window.setTimeout(() => this.icInput.emit({ value }), this.currDebounce);
|
182
|
+
};
|
183
|
+
this.setOptions = () => {
|
184
|
+
if (!this.hasTimedOut && this.options !== this.noOptions) {
|
185
|
+
this.loading = false;
|
186
|
+
clearTimeout(this.timeoutTimer);
|
187
|
+
if (this.options.length > 0) {
|
188
|
+
this.setOptionsValuesFromLabels();
|
189
|
+
this.uniqueOptions = this.deduplicateOptions(this.options);
|
190
|
+
this.filteredOptions = this.uniqueOptions;
|
191
|
+
}
|
192
|
+
else {
|
193
|
+
this.noOptions = [{ label: this.emptyOptionListText, value: "" }];
|
194
|
+
this.uniqueOptions = this.noOptions;
|
195
|
+
this.filteredOptions = this.noOptions;
|
196
|
+
}
|
197
|
+
if (this.isExternalFiltering()) {
|
198
|
+
// When searchable select
|
199
|
+
this.noOptions = null;
|
200
|
+
this.updateSearchableSelectResultAriaLive();
|
201
|
+
this.setDefaultValue();
|
202
|
+
}
|
203
|
+
else {
|
204
|
+
if (this.initialOptionsEmpty) {
|
205
|
+
this.setDefaultValue();
|
206
|
+
this.initialOptionsEmpty = false;
|
207
|
+
}
|
208
|
+
}
|
209
|
+
}
|
210
|
+
else {
|
211
|
+
if (!this.searchable) {
|
212
|
+
this.options = this.noOptions || [];
|
213
|
+
}
|
214
|
+
}
|
61
215
|
};
|
62
216
|
/**
|
63
217
|
* Processes the provided array of IcMenuOptions, removing duplicates and reporting them with a console.warn
|
@@ -102,8 +256,7 @@ export class Select {
|
|
102
256
|
* Loop through options array and for all options with no value, infer it from the label
|
103
257
|
*/
|
104
258
|
this.setOptionsValuesFromLabels = () => {
|
105
|
-
|
106
|
-
if (((_a = this.options) === null || _a === void 0 ? void 0 : _a.length) > 0 && this.options.map) {
|
259
|
+
if (this.options.length > 0) {
|
107
260
|
this.options.map((option) => {
|
108
261
|
if (!option.value) {
|
109
262
|
option.value = option.label;
|
@@ -115,11 +268,13 @@ export class Select {
|
|
115
268
|
this.ungroupedOptions = event.detail.options;
|
116
269
|
};
|
117
270
|
this.setTextColor = () => {
|
118
|
-
if (this.nativeSelectElement
|
119
|
-
this.nativeSelectElement.
|
120
|
-
|
121
|
-
|
122
|
-
|
271
|
+
if (this.nativeSelectElement) {
|
272
|
+
if (this.nativeSelectElement.selectedIndex === 0) {
|
273
|
+
this.nativeSelectElement.className = "placeholder";
|
274
|
+
}
|
275
|
+
else {
|
276
|
+
this.nativeSelectElement.className = "select-option-selected";
|
277
|
+
}
|
123
278
|
}
|
124
279
|
};
|
125
280
|
this.setMenuChange = (open) => {
|
@@ -130,41 +285,112 @@ export class Select {
|
|
130
285
|
this.getLabelFromValue = (value) => {
|
131
286
|
return getLabelFromValue(value, this.uniqueOptions);
|
132
287
|
};
|
288
|
+
this.getMultipleOptionsString = (selectedValues) => {
|
289
|
+
const selectedLabels = selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.map((value) => this.getLabelFromValue(value)).filter((label) => !!label);
|
290
|
+
return selectedLabels === null || selectedLabels === void 0 ? void 0 : selectedLabels.join(", ");
|
291
|
+
};
|
133
292
|
this.getFilteredChildMenuOptions = (option) => {
|
134
293
|
let children = option.children;
|
135
|
-
if (
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
294
|
+
if (option.children) {
|
295
|
+
if (this.searchable) {
|
296
|
+
children = getFilteredMenuOptions(option.children, !!this.includeDescriptionsInSearch, this.searchableSelectInputValue || "", this.searchMatchPosition);
|
297
|
+
}
|
298
|
+
else {
|
299
|
+
children = getFilteredMenuOptions(option.children, false, this.pressedCharacters, "start");
|
300
|
+
}
|
140
301
|
}
|
141
302
|
const newOption = Object.assign({}, option);
|
142
303
|
newOption.children = children;
|
143
304
|
return newOption;
|
144
305
|
};
|
306
|
+
// (For multi-select) get value array, i.e. selected option values, in order they appear in option list
|
307
|
+
this.getValueSortedByOptions = (value) => {
|
308
|
+
const valueArray = value;
|
309
|
+
const valuesFromAllOptions = this.ungroupedOptions.map((option) => option.value);
|
310
|
+
valueArray.sort((a, b) => valuesFromAllOptions.indexOf(a) - valuesFromAllOptions.indexOf(b));
|
311
|
+
return valueArray;
|
312
|
+
};
|
145
313
|
this.handleNativeSelectChange = () => {
|
146
|
-
|
147
|
-
|
314
|
+
if (this.nativeSelectElement) {
|
315
|
+
this.icOptionSelect.emit({ value: this.nativeSelectElement.value });
|
316
|
+
this.emitIcChange(this.nativeSelectElement.value);
|
317
|
+
}
|
148
318
|
this.setTextColor();
|
149
319
|
};
|
320
|
+
// Handle option select for when a custom input box and menu is rendered
|
321
|
+
// (rather than native <select> - rendered when viewed on a mobile / tablet screen)
|
150
322
|
this.handleCustomSelectChange = (event) => {
|
151
|
-
|
152
|
-
|
323
|
+
var _a, _b;
|
324
|
+
const value = event.detail.value;
|
325
|
+
if (event.detail.label === this.emptyOptionListText) {
|
326
|
+
(_a = this.searchableSelectElement) === null || _a === void 0 ? void 0 : _a.focus();
|
153
327
|
return;
|
154
328
|
}
|
155
329
|
if (this.searchable) {
|
156
|
-
this.value =
|
330
|
+
this.value = value;
|
157
331
|
this.searchableMenuItemSelected = true;
|
158
332
|
// After editing the input, if selecting the same option as before, set the input value to label again
|
159
333
|
if (this.value === this.currValue) {
|
160
|
-
this.searchableSelectInputValue =
|
334
|
+
this.searchableSelectInputValue =
|
335
|
+
this.getLabelFromValue(this.value) || null;
|
161
336
|
}
|
162
337
|
this.inputValueToFilter = null;
|
163
|
-
this.hiddenInputValue =
|
338
|
+
this.hiddenInputValue =
|
339
|
+
this.getValueFromLabel(this.searchableSelectInputValue) || null;
|
340
|
+
}
|
341
|
+
if (this.multiple && ((_b = this.value) === null || _b === void 0 ? void 0 : _b.includes(value))) {
|
342
|
+
this.icOptionDeselect.emit({ value });
|
343
|
+
}
|
344
|
+
else {
|
345
|
+
this.icOptionSelect.emit({ value });
|
164
346
|
}
|
165
347
|
this.ariaActiveDescendant = event.detail.optionId;
|
166
|
-
this.
|
167
|
-
|
348
|
+
this.emitIcChange(value);
|
349
|
+
};
|
350
|
+
// Update selected options - adds / removes them, in order of option list
|
351
|
+
// Create new array if value prop is undefined
|
352
|
+
this.handleMultipleSelectChange = (value) => {
|
353
|
+
if (this.value) {
|
354
|
+
let valueArray = this.value.slice();
|
355
|
+
if (this.value.includes(value)) {
|
356
|
+
const valueIndex = valueArray.indexOf(value);
|
357
|
+
valueArray.splice(valueIndex, 1);
|
358
|
+
}
|
359
|
+
else {
|
360
|
+
valueArray.push(value);
|
361
|
+
valueArray = this.getValueSortedByOptions(valueArray);
|
362
|
+
}
|
363
|
+
this.value = valueArray.length === 0 ? null : valueArray;
|
364
|
+
}
|
365
|
+
else {
|
366
|
+
const valueArray = [];
|
367
|
+
valueArray.push(value);
|
368
|
+
this.value = valueArray;
|
369
|
+
}
|
370
|
+
};
|
371
|
+
this.handleSelectAllChange = (event) => {
|
372
|
+
const selectAllOptions = event.detail.select;
|
373
|
+
const allEnabledOptions = this.ungroupedOptions.filter((option) => !option.disabled);
|
374
|
+
const allValues = allEnabledOptions.map((option) => option.value);
|
375
|
+
let newValue;
|
376
|
+
if (selectAllOptions) {
|
377
|
+
let unselectedValues;
|
378
|
+
// Only emit icOptionSelect for all values that are newly selected
|
379
|
+
if (this.value) {
|
380
|
+
unselectedValues = allValues.filter((value) => this.value && !this.value.includes(value));
|
381
|
+
}
|
382
|
+
else {
|
383
|
+
unselectedValues = allValues;
|
384
|
+
}
|
385
|
+
unselectedValues.forEach((value) => this.icOptionSelect.emit({ value }));
|
386
|
+
newValue = allValues;
|
387
|
+
}
|
388
|
+
else {
|
389
|
+
// Only emit icOptionDeselect for values that were selected
|
390
|
+
this.value.forEach((value) => this.icOptionDeselect.emit({ value }));
|
391
|
+
newValue = null;
|
392
|
+
}
|
393
|
+
this.emitIcChange(newValue);
|
168
394
|
};
|
169
395
|
this.handleMenuChange = (event) => {
|
170
396
|
this.open = event.detail.open;
|
@@ -175,18 +401,20 @@ export class Select {
|
|
175
401
|
// to prevent delay in change event, which should only occur when typing in input
|
176
402
|
this.handleMenuKeyPress = (ev) => {
|
177
403
|
ev.cancelBubble = true;
|
178
|
-
this.
|
179
|
-
|
180
|
-
|
181
|
-
this.value = ev.detail.value;
|
404
|
+
if (!this.multiple) {
|
405
|
+
this.handleCharacterKeyDown(ev.detail.key);
|
406
|
+
}
|
182
407
|
};
|
183
408
|
this.handleFocusIndicatorDisplay = () => {
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
409
|
+
var _a;
|
410
|
+
const focusIndicator = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".focus-indicator");
|
411
|
+
if (focusIndicator) {
|
412
|
+
if (this.open) {
|
413
|
+
focusIndicator.classList.add("focus-indicator-enabled");
|
414
|
+
}
|
415
|
+
else {
|
416
|
+
focusIndicator.classList.remove("focus-indicator-enabled");
|
417
|
+
}
|
190
418
|
}
|
191
419
|
};
|
192
420
|
this.handleMouseDown = (event) => {
|
@@ -194,10 +422,10 @@ export class Select {
|
|
194
422
|
event.preventDefault();
|
195
423
|
}
|
196
424
|
};
|
197
|
-
this.isExternalFiltering = () => this.searchable && this.disableAutoFiltering;
|
425
|
+
this.isExternalFiltering = () => this.searchable && !!this.disableAutoFiltering;
|
198
426
|
this.handleClick = (event) => {
|
199
|
-
var _a;
|
200
|
-
if (!this.open) {
|
427
|
+
var _a, _b;
|
428
|
+
if (!this.open && this.menu) {
|
201
429
|
if (this.isExternalFiltering()) {
|
202
430
|
this.menu.options = this.filteredOptions;
|
203
431
|
}
|
@@ -210,50 +438,47 @@ export class Select {
|
|
210
438
|
}
|
211
439
|
}
|
212
440
|
if (event.detail !== 0) {
|
213
|
-
this.menu.handleClickOpen();
|
441
|
+
(_b = this.menu) === null || _b === void 0 ? void 0 : _b.handleClickOpen();
|
214
442
|
}
|
215
443
|
};
|
216
444
|
this.handleExpandIconMouseDown = (event) => {
|
445
|
+
var _a;
|
217
446
|
if (!this.disabled) {
|
218
447
|
event.preventDefault();
|
219
|
-
this.searchableSelectElement.focus();
|
448
|
+
(_a = this.searchableSelectElement) === null || _a === void 0 ? void 0 : _a.focus();
|
220
449
|
this.handleClick(event);
|
221
450
|
}
|
222
451
|
};
|
223
452
|
this.handleClear = (event) => {
|
453
|
+
var _a, _b;
|
224
454
|
event.stopPropagation();
|
225
455
|
this.hasTimedOut = false;
|
226
456
|
clearTimeout(this.timeoutTimer);
|
227
|
-
this.
|
228
|
-
this.
|
457
|
+
this.clearInput();
|
458
|
+
this.emitIcChange(null);
|
229
459
|
this.icClear.emit();
|
230
460
|
if (this.searchable) {
|
231
|
-
this.searchableSelectElement.value = null;
|
232
|
-
this.searchableSelectInputValue = null;
|
233
|
-
this.filteredOptions = this.uniqueOptions;
|
234
461
|
this.hiddenInputValue = null;
|
235
|
-
this.searchableSelectElement.focus();
|
462
|
+
(_a = this.searchableSelectElement) === null || _a === void 0 ? void 0 : _a.focus();
|
236
463
|
}
|
237
464
|
else {
|
238
|
-
this.customSelectElement.focus();
|
465
|
+
(_b = this.customSelectElement) === null || _b === void 0 ? void 0 : _b.focus();
|
239
466
|
}
|
240
467
|
};
|
241
468
|
this.handleCharacterKeyDown = (key) => {
|
242
469
|
// Only close menu when space is pressed if not being used alongside character keys to quickly select options
|
243
|
-
if (this.open &&
|
244
|
-
key === " " &&
|
245
|
-
this.pressedCharacters.length === 0 &&
|
246
|
-
!this.hasTimedOut &&
|
247
|
-
!this.loading) {
|
470
|
+
if (this.open && key === " " && this.pressedCharacters.length === 0) {
|
248
471
|
this.setMenuChange(false);
|
249
472
|
}
|
250
473
|
if (key.length === 1 && !this.searchable) {
|
251
474
|
window.clearTimeout(this.characterKeyPressTimer);
|
252
475
|
this.characterKeyPressTimer = window.setTimeout(() => (this.pressedCharacters = ""), 1000);
|
253
|
-
this.pressedCharacters
|
254
|
-
|
255
|
-
|
256
|
-
|
476
|
+
if (!(key === " " && !this.pressedCharacters)) {
|
477
|
+
this.pressedCharacters += key;
|
478
|
+
this.handleFilter();
|
479
|
+
if (!this.noOptions) {
|
480
|
+
this.emitIcChange(this.filteredOptions[0].value);
|
481
|
+
}
|
257
482
|
}
|
258
483
|
}
|
259
484
|
else {
|
@@ -267,11 +492,12 @@ export class Select {
|
|
267
492
|
this.handleCharacterKeyDown(event.key);
|
268
493
|
};
|
269
494
|
this.handleKeyDown = (event) => {
|
495
|
+
var _a;
|
270
496
|
if ((event.key !== "Escape" && event.key !== "Tab") || this.open) {
|
271
497
|
event.cancelBubble = true;
|
272
498
|
}
|
273
499
|
const isArrowKey = event.key === "ArrowDown" || event.key === "ArrowUp";
|
274
|
-
if (!this.open) {
|
500
|
+
if (this.menu && !this.open) {
|
275
501
|
if (this.isExternalFiltering() && (event.key === "Enter" || isArrowKey)) {
|
276
502
|
this.menu.options = this.filteredOptions;
|
277
503
|
}
|
@@ -289,9 +515,11 @@ export class Select {
|
|
289
515
|
if (!(isArrowKey && this.noOptions !== null)) {
|
290
516
|
if (!(event.key === " " && this.pressedCharacters.length > 0)) {
|
291
517
|
// Keyboard events get passed onto ic-menu
|
292
|
-
this.menu.handleKeyboardOpen(event);
|
518
|
+
(_a = this.menu) === null || _a === void 0 ? void 0 : _a.handleKeyboardOpen(event);
|
519
|
+
}
|
520
|
+
if (!this.multiple) {
|
521
|
+
this.handleCharacterKeyDown(event.key);
|
293
522
|
}
|
294
|
-
this.handleCharacterKeyDown(event.key);
|
295
523
|
}
|
296
524
|
}
|
297
525
|
};
|
@@ -320,7 +548,7 @@ export class Select {
|
|
320
548
|
});
|
321
549
|
let menuOptionsFiltered;
|
322
550
|
if (this.searchable) {
|
323
|
-
menuOptionsFiltered = getFilteredMenuOptions(options, this.includeDescriptionsInSearch, this.inputValueToFilter, this.searchMatchPosition);
|
551
|
+
menuOptionsFiltered = getFilteredMenuOptions(options, !!this.includeDescriptionsInSearch, this.inputValueToFilter || "", this.searchMatchPosition);
|
324
552
|
this.searchableMenuItemSelected = false;
|
325
553
|
}
|
326
554
|
else {
|
@@ -349,7 +577,7 @@ export class Select {
|
|
349
577
|
if (isGrouped) {
|
350
578
|
noChildOptionsWhenFiltered = true;
|
351
579
|
newFilteredOptions.map((option) => {
|
352
|
-
if (option.children.length > 0) {
|
580
|
+
if (option.children && option.children.length > 0) {
|
353
581
|
noChildOptionsWhenFiltered = false;
|
354
582
|
}
|
355
583
|
});
|
@@ -391,13 +619,18 @@ export class Select {
|
|
391
619
|
};
|
392
620
|
this.getValueFromLabel = (label) => {
|
393
621
|
var _a;
|
394
|
-
return (
|
622
|
+
return (label &&
|
623
|
+
((_a = this.uniqueOptions.find((option) => option.label === label)) === null || _a === void 0 ? void 0 : _a.value));
|
395
624
|
};
|
396
625
|
this.handleSearchableSelectInput = (event) => {
|
397
626
|
this.searchableSelectInputValue = event.target.value;
|
398
|
-
this.
|
399
|
-
|
400
|
-
|
627
|
+
this.emitIcInput(this.searchableSelectInputValue);
|
628
|
+
// De-select previous selection when input is edited
|
629
|
+
// Only emit icChange once when editing input
|
630
|
+
if (this.value != null) {
|
631
|
+
this.emitIcChange(null);
|
632
|
+
}
|
633
|
+
this.hiddenInputValue = null;
|
401
634
|
this.inputValueToFilter = this.searchableSelectInputValue;
|
402
635
|
this.setMenuChange(true);
|
403
636
|
if (!this.disableAutoFiltering) {
|
@@ -406,7 +639,8 @@ export class Select {
|
|
406
639
|
}
|
407
640
|
};
|
408
641
|
this.updateSearchableSelectResultAriaLive = () => {
|
409
|
-
|
642
|
+
var _a;
|
643
|
+
const searchableSelectResultsStatusEl = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".searchable-select-results-status");
|
410
644
|
if (searchableSelectResultsStatusEl) {
|
411
645
|
if (this.noOptions !== null) {
|
412
646
|
searchableSelectResultsStatusEl.innerText = this.emptyOptionListText;
|
@@ -416,7 +650,25 @@ export class Select {
|
|
416
650
|
}
|
417
651
|
}
|
418
652
|
};
|
419
|
-
this.
|
653
|
+
this.updateMultiSelectedCountAriaLive = () => {
|
654
|
+
var _a, _b;
|
655
|
+
const multiSelectSelectedCountEl = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".multi-select-selected-count");
|
656
|
+
const selectedCount = `${(_b = this.currValue) === null || _b === void 0 ? void 0 : _b.length} of ${getOptionsWithoutGroupTitlesCount(this.options)} selected`;
|
657
|
+
if (multiSelectSelectedCountEl &&
|
658
|
+
multiSelectSelectedCountEl.innerText !== selectedCount) {
|
659
|
+
multiSelectSelectedCountEl.innerText = selectedCount;
|
660
|
+
}
|
661
|
+
};
|
662
|
+
this.getDefaultValue = (value) => this.getLabelFromValue(value) || null;
|
663
|
+
this.setDefaultValue = () => {
|
664
|
+
if (!this.hasSetDefaultValue && this.currValue) {
|
665
|
+
this.searchableSelectInputValue = this.searchable
|
666
|
+
? this.getDefaultValue(this.currValue)
|
667
|
+
: null;
|
668
|
+
this.initialValue = this.currValue;
|
669
|
+
this.hasSetDefaultValue = true;
|
670
|
+
}
|
671
|
+
};
|
420
672
|
this.onFocus = () => {
|
421
673
|
this.icFocus.emit();
|
422
674
|
};
|
@@ -438,6 +690,10 @@ export class Select {
|
|
438
690
|
if (isSearchableAndNoFocusedInternalElements) {
|
439
691
|
if (!this.retryButtonClick) {
|
440
692
|
this.setMenuChange(false);
|
693
|
+
// Clear input field on blur when searchable if no option is selected
|
694
|
+
if (!this.value) {
|
695
|
+
this.clearInput();
|
696
|
+
}
|
441
697
|
}
|
442
698
|
this.handleFocusIndicatorDisplay();
|
443
699
|
}
|
@@ -461,98 +717,46 @@ export class Select {
|
|
461
717
|
this.hiddenInputValue = this.value;
|
462
718
|
}
|
463
719
|
};
|
464
|
-
this.
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
this.
|
476
|
-
this.fullWidth = false;
|
477
|
-
this.helperText = "";
|
478
|
-
this.hideLabel = false;
|
479
|
-
this.includeDescriptionsInSearch = false;
|
480
|
-
this.includeGroupTitlesInSearch = false;
|
481
|
-
this.label = undefined;
|
482
|
-
this.loadingErrorLabel = "Loading Error";
|
483
|
-
this.loadingLabel = "Loading...";
|
484
|
-
this.name = this.inputId;
|
485
|
-
this.placeholder = "Select an option";
|
486
|
-
this.readonly = false;
|
487
|
-
this.required = false;
|
488
|
-
this.searchable = false;
|
489
|
-
this.searchMatchPosition = "anywhere";
|
490
|
-
this.selectOnEnter = false;
|
491
|
-
this.showClearButton = false;
|
492
|
-
this.size = "default";
|
493
|
-
this.timeout = undefined;
|
494
|
-
this.validationStatus = "";
|
495
|
-
this.validationText = "";
|
496
|
-
this.loading = false;
|
497
|
-
this.options = [];
|
498
|
-
this.filteredOptions = this.options;
|
499
|
-
this.uniqueOptions = this.options;
|
500
|
-
this.debounce = 0;
|
501
|
-
this.currDebounce = this.debounce;
|
502
|
-
this.value = undefined;
|
503
|
-
this.initialValue = this.value;
|
504
|
-
this.inputValueToFilter = this.value;
|
505
|
-
this.currValue = this.value;
|
720
|
+
this.clearInput = () => {
|
721
|
+
var _a;
|
722
|
+
this.noOptions = null;
|
723
|
+
if (this.searchable) {
|
724
|
+
(_a = this.searchableSelectElement) === null || _a === void 0 ? void 0 : _a.setAttribute("value", "");
|
725
|
+
this.searchableSelectInputValue = null;
|
726
|
+
this.filteredOptions = this.uniqueOptions;
|
727
|
+
}
|
728
|
+
};
|
729
|
+
}
|
730
|
+
watchDisabledHandler() {
|
731
|
+
removeDisabledFalse(this.disabled, this.el);
|
506
732
|
}
|
507
733
|
loadingHandler(newValue) {
|
508
|
-
newValue
|
734
|
+
newValue ? this.triggerLoading() : this.setOptions();
|
509
735
|
}
|
510
736
|
watchOptionsHandler() {
|
511
|
-
|
512
|
-
if (!this.hasTimedOut) {
|
513
|
-
this.loading = false;
|
514
|
-
clearTimeout(this.timeoutTimer);
|
515
|
-
if (this.isExternalFiltering()) {
|
516
|
-
if (((_a = this.options) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
517
|
-
this.setOptionsValuesFromLabels();
|
518
|
-
this.noOptions = null;
|
519
|
-
this.uniqueOptions = this.deduplicateOptions(this.options);
|
520
|
-
this.filteredOptions = this.uniqueOptions;
|
521
|
-
}
|
522
|
-
else {
|
523
|
-
this.noOptions = [{ label: this.emptyOptionListText, value: "" }];
|
524
|
-
this.uniqueOptions = this.noOptions;
|
525
|
-
this.filteredOptions = this.noOptions;
|
526
|
-
}
|
527
|
-
this.updateSearchableSelectResultAriaLive();
|
528
|
-
this.setDefaultValue();
|
529
|
-
}
|
530
|
-
else {
|
531
|
-
this.setOptionsValuesFromLabels();
|
532
|
-
this.uniqueOptions = this.deduplicateOptions(this.options);
|
533
|
-
this.filteredOptions = this.uniqueOptions;
|
534
|
-
if (this.initialOptionsEmpty) {
|
535
|
-
this.setDefaultValue();
|
536
|
-
this.initialOptionsEmpty = false;
|
537
|
-
}
|
538
|
-
}
|
539
|
-
}
|
540
|
-
else {
|
541
|
-
if (!this.searchable) {
|
542
|
-
this.options = this.noOptions;
|
543
|
-
}
|
544
|
-
}
|
737
|
+
this.setOptions();
|
545
738
|
}
|
546
739
|
debounceChangedHandler(newValue) {
|
547
740
|
this.updateOnChangeDebounce(newValue);
|
548
741
|
}
|
549
742
|
valueChangedHandler() {
|
550
743
|
if (this.value !== this.currValue) {
|
551
|
-
this.
|
744
|
+
if (this.value && this.multiple) {
|
745
|
+
this.currValue = this.getMultipleOptionsString(this.value)
|
746
|
+
? this.getValueSortedByOptions(this.value)
|
747
|
+
: null;
|
748
|
+
this.updateMultiSelectedCountAriaLive();
|
749
|
+
}
|
750
|
+
else {
|
751
|
+
this.currValue = this.getLabelFromValue(this.value)
|
752
|
+
? this.value
|
753
|
+
: null;
|
754
|
+
}
|
552
755
|
}
|
553
|
-
if (this.searchable) {
|
756
|
+
if (this.searchable && this.value) {
|
757
|
+
// Only set if value not null - prevents whole input value being cleared when edited
|
554
758
|
this.searchableSelectInputValue =
|
555
|
-
this.getLabelFromValue(this.currValue) ||
|
759
|
+
this.getLabelFromValue(String(this.currValue)) || null;
|
556
760
|
}
|
557
761
|
}
|
558
762
|
openChangedHandler() {
|
@@ -564,12 +768,15 @@ export class Select {
|
|
564
768
|
(_a = this.hostMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
565
769
|
}
|
566
770
|
componentWillLoad() {
|
567
|
-
|
771
|
+
const valueInOptions = this.multiple
|
772
|
+
? this.getMultipleOptionsString(this.value)
|
773
|
+
: this.getLabelFromValue(this.value);
|
774
|
+
this.currValue = valueInOptions ? this.value : null;
|
568
775
|
this.inheritedAttributes = inheritAttributes(this.el, MUTABLE_ATTRIBUTES);
|
569
776
|
removeDisabledFalse(this.disabled, this.el);
|
570
777
|
this.setOptionsValuesFromLabels();
|
571
778
|
addFormResetListener(this.el, this.handleFormReset);
|
572
|
-
if (!
|
779
|
+
if (!this.options.length) {
|
573
780
|
this.initialOptionsEmpty = true;
|
574
781
|
this.noOptions = [{ label: this.emptyOptionListText, value: "" }];
|
575
782
|
this.uniqueOptions = this.noOptions;
|
@@ -585,7 +792,9 @@ export class Select {
|
|
585
792
|
if (this.loading) {
|
586
793
|
this.triggerLoading();
|
587
794
|
}
|
588
|
-
|
795
|
+
if (this.searchable) {
|
796
|
+
this.hiddenInputValue = this.currValue;
|
797
|
+
}
|
589
798
|
this.hostMutationObserver = new MutationObserver(this.hostMutationCallback);
|
590
799
|
this.hostMutationObserver.observe(this.el, {
|
591
800
|
attributes: true,
|
@@ -622,64 +831,72 @@ export class Select {
|
|
622
831
|
this.updateSearchableSelectResultAriaLive();
|
623
832
|
}, 800);
|
624
833
|
}
|
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
834
|
render() {
|
633
|
-
const { size, disabled, fullWidth, helperText, hideLabel, label, menuId, name, options, placeholder, readonly, required, searchable, showClearButton, validationStatus, validationText, currValue, } = this;
|
634
|
-
|
635
|
-
|
636
|
-
|
835
|
+
const { size, disabled, fullWidth, helperText, hideLabel, label, menuId, multiple, name, options, placeholder, readonly, required, searchable, showClearButton, validationStatus, validationText, currValue, theme, } = this;
|
836
|
+
// HTML inputs only accept 'string' for their value
|
837
|
+
// Does not cause errors when it is a multi-select - sets value correctly, to a comma-separated string
|
838
|
+
renderHiddenInput(true, this.el, name || this.inputId, this.searchable ? this.hiddenInputValue : currValue, disabled);
|
839
|
+
const invalid = `${validationStatus === IcInformationStatus.Error}`;
|
840
|
+
const describedBy = getInputDescribedByText(this.inputId, helperText !== "", hasValidationStatus(this.validationStatus, !!this.disabled)).trim();
|
637
841
|
let showLeftIcon = !!this.el.querySelector(`[slot="icon"]`);
|
638
842
|
if (showLeftIcon && (disabled || (readonly && !this.value))) {
|
639
843
|
showLeftIcon = false;
|
640
844
|
}
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
845
|
+
const optionsSelectedCount = `${currValue === null || currValue === void 0 ? void 0 : currValue.length} of ${getOptionsWithoutGroupTitlesCount(this.options)} selected`;
|
846
|
+
const valueLabelString = multiple
|
847
|
+
? this.getMultipleOptionsString(currValue)
|
848
|
+
: this.getLabelFromValue(currValue);
|
849
|
+
const isClearable = !disabled &&
|
850
|
+
(searchable
|
851
|
+
? this.searchableSelectInputValue
|
852
|
+
: currValue && !this.loading && showClearButton);
|
853
|
+
return (h(Host, { key: '75cf0d014983dd89d440f68080f01333e6c265ee', class: {
|
854
|
+
"ic-select-disabled": !!disabled,
|
855
|
+
"ic-select-searchable": !!searchable,
|
856
|
+
[`ic-select-${size}`]: size !== "medium",
|
857
|
+
"ic-select-full-width": !!fullWidth,
|
858
|
+
[`ic-theme-${theme}`]: theme !== "inherit",
|
859
|
+
}, onBlur: this.onBlur }, h("ic-input-container", { key: 'eb714cd9445894ca8fd3be546308f19f32d1b54c', readonly: readonly }, !hideLabel && (h("ic-input-label", { key: 'b458a202cdce6dcfad3d92da57714aa44f73d886', for: this.inputId, label: label, helperText: helperText, required: required, disabled: disabled, readonly: readonly })), h("ic-input-component-container", { key: '4ac767a175604d7e4f86fa46945fc028be835ff2', ref: (el) => (this.anchorEl = el), class: { "menu-open": this.open }, size: size, fullWidth: fullWidth, disabled: disabled, readonly: readonly, validationStatus: validationStatus }, showLeftIcon && (h("span", { key: '7ac05ef11cda6c03db0b1b9f4573a704581524e0', slot: "left-icon", class: {
|
860
|
+
["readonly"]: !!readonly,
|
648
861
|
["has-value"]: !!this.value,
|
649
|
-
} }, h("slot", { name: "icon" }))), readonly ? (h("ic-typography", null, h("p", null,
|
862
|
+
} }, h("slot", { key: 'f09cffc377cfe7eb76d1b8bc4c83ec632a99b2df', name: "icon" }))), readonly ? (h("ic-typography", null, h("p", null, valueLabelString))) : 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
863
|
if (option.children) {
|
651
864
|
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
865
|
}
|
653
866
|
else {
|
654
867
|
return (h("option", { value: option.value, disabled: option.disabled, selected: option.value === currValue }, option.label));
|
655
868
|
}
|
656
|
-
}))) : searchable ? (h("div", { class: "searchable-select-container" }, h("input", { class:
|
657
|
-
|
869
|
+
}))) : searchable ? (h("div", { class: "searchable-select-container" }, h("input", { class: {
|
870
|
+
"select-input": true,
|
871
|
+
"with-clear-button": !!this.searchableSelectInputValue,
|
872
|
+
}, 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 || undefined, placeholder: placeholder, disabled: disabled, onInput: this.handleSearchableSelectInput, onClick: this.handleClick, onKeyDown: this.handleKeyDown, onFocus: this.onFocus, onBlur: this.onBlur, form: this.form }), isClearable && (h("div", { class: "clear-button-container" }, h("ic-button", { id: "clear-button", ref: (el) => (this.clearButton = el), "aria-label": this.searchableSelectInputValue &&
|
873
|
+
(currValue === null || this.loading)
|
658
874
|
? "Clear input"
|
659
|
-
: "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onFocus: this.handleClearButtonFocus, onBlur: this.handleClearButtonBlur, size: size, variant: "icon",
|
660
|
-
? IcThemeForegroundEnum.Light
|
661
|
-
: IcThemeForegroundEnum.Dark }), h("div", { class: "divider" }))), h("span", { onMouseDown: this.handleExpandIconMouseDown, class: {
|
875
|
+
: "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onFocus: this.handleClearButtonFocus, onBlur: this.handleClearButtonBlur, size: size, variant: "icon", theme: this.clearButtonFocused ? "light" : "dark" }), h("div", { class: "divider" }))), h("span", { onMouseDown: this.handleExpandIconMouseDown, class: {
|
662
876
|
"expand-icon": true,
|
663
877
|
"expand-icon-open": this.open,
|
664
|
-
|
665
|
-
|
878
|
+
}, 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
|
879
|
+
? `${optionsSelectedCount}, ${valueLabelString}`
|
880
|
+
: valueLabelString) || 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
881
|
"value-text": true,
|
667
|
-
|
668
|
-
|
882
|
+
"with-clear-button": !!isClearable,
|
883
|
+
placeholder: !this.loading && multiple
|
884
|
+
? !this.value || this.value.length < 1
|
885
|
+
: !this.getLabelFromValue(currValue),
|
886
|
+
} }, valueLabelString || placeholder), h("div", { class: "select-input-end" }, isClearable && h("div", { class: "divider" }), h("span", { class: {
|
669
887
|
"expand-icon": true,
|
670
888
|
"expand-icon-open": this.open,
|
671
|
-
|
672
|
-
}, 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
|
-
? IcThemeForegroundEnum.Light
|
674
|
-
: IcThemeForegroundEnum.Dark }))))), !isMobileOrTablet() && (h("ic-menu", { class: {
|
889
|
+
}, 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", theme: this.clearButtonFocused ? "light" : "dark" }))))), (!isMobileOrTablet() || multiple) && (h("ic-menu", { key: '60dac9f71d9787ae401f439dbcd013365c33b713', class: {
|
675
890
|
"no-results": this.loading ||
|
676
891
|
this.hasTimedOut ||
|
677
892
|
(this.noOptions !== null &&
|
678
893
|
this.noOptions[0] &&
|
679
894
|
this.noOptions[0].label === this.emptyOptionListText),
|
680
|
-
}, ref: (el) => (this.menu = el), inputEl: searchable
|
895
|
+
}, ref: (el) => (this.menu = el), inputEl: (searchable
|
681
896
|
? 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,
|
897
|
+
: 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
|
898
|
+
? "manual"
|
899
|
+
: "automatic", closeOnSelect: !multiple })), this.multiple && (h("div", { key: '876f1da870c48b21130b246afa988c4fccefdfc6', "aria-live": "polite", role: "status", class: "multi-select-selected-count" })), hasValidationStatus(this.validationStatus, !!this.disabled) && (h("ic-input-validation", { key: '657c2433a3ab425432356227e931cafe4268dd8b', class: { "menu-open": this.open }, ariaLiveMode: "polite", status: validationStatus, message: validationText || "", for: this.inputId })))));
|
683
900
|
}
|
684
901
|
static get is() { return "ic-select"; }
|
685
902
|
static get encapsulation() { return "shadow"; }
|
@@ -701,7 +918,7 @@ export class Select {
|
|
701
918
|
"mutable": false,
|
702
919
|
"complexType": {
|
703
920
|
"original": "boolean",
|
704
|
-
"resolved": "boolean",
|
921
|
+
"resolved": "boolean | undefined",
|
705
922
|
"references": {}
|
706
923
|
},
|
707
924
|
"required": false,
|
@@ -710,6 +927,8 @@ export class Select {
|
|
710
927
|
"tags": [],
|
711
928
|
"text": "If `true`, the disabled state will be set."
|
712
929
|
},
|
930
|
+
"getter": false,
|
931
|
+
"setter": false,
|
713
932
|
"attribute": "disabled",
|
714
933
|
"reflect": true,
|
715
934
|
"defaultValue": "false"
|
@@ -719,7 +938,7 @@ export class Select {
|
|
719
938
|
"mutable": false,
|
720
939
|
"complexType": {
|
721
940
|
"original": "boolean",
|
722
|
-
"resolved": "boolean",
|
941
|
+
"resolved": "boolean | undefined",
|
723
942
|
"references": {}
|
724
943
|
},
|
725
944
|
"required": false,
|
@@ -728,6 +947,8 @@ export class Select {
|
|
728
947
|
"tags": [],
|
729
948
|
"text": "If `true`, the built in filtering will be disabled for a searchable variant. For example, if options will already be filtered from external source."
|
730
949
|
},
|
950
|
+
"getter": false,
|
951
|
+
"setter": false,
|
731
952
|
"attribute": "disable-auto-filtering",
|
732
953
|
"reflect": false,
|
733
954
|
"defaultValue": "false"
|
@@ -737,15 +958,17 @@ export class Select {
|
|
737
958
|
"mutable": false,
|
738
959
|
"complexType": {
|
739
960
|
"original": "string",
|
740
|
-
"resolved": "string",
|
961
|
+
"resolved": "string | undefined",
|
741
962
|
"references": {}
|
742
963
|
},
|
743
964
|
"required": false,
|
744
|
-
"optional":
|
965
|
+
"optional": true,
|
745
966
|
"docs": {
|
746
967
|
"tags": [],
|
747
968
|
"text": "The text displayed when there are no options in the option list."
|
748
969
|
},
|
970
|
+
"getter": false,
|
971
|
+
"setter": false,
|
749
972
|
"attribute": "empty-option-list-text",
|
750
973
|
"reflect": false,
|
751
974
|
"defaultValue": "\"No results found\""
|
@@ -755,7 +978,7 @@ export class Select {
|
|
755
978
|
"mutable": false,
|
756
979
|
"complexType": {
|
757
980
|
"original": "string",
|
758
|
-
"resolved": "string",
|
981
|
+
"resolved": "string | undefined",
|
759
982
|
"references": {}
|
760
983
|
},
|
761
984
|
"required": false,
|
@@ -764,6 +987,8 @@ export class Select {
|
|
764
987
|
"tags": [],
|
765
988
|
"text": "The <form> element to associate the select with."
|
766
989
|
},
|
990
|
+
"getter": false,
|
991
|
+
"setter": false,
|
767
992
|
"attribute": "form",
|
768
993
|
"reflect": false
|
769
994
|
},
|
@@ -772,15 +997,17 @@ export class Select {
|
|
772
997
|
"mutable": false,
|
773
998
|
"complexType": {
|
774
999
|
"original": "boolean",
|
775
|
-
"resolved": "boolean",
|
1000
|
+
"resolved": "boolean | undefined",
|
776
1001
|
"references": {}
|
777
1002
|
},
|
778
1003
|
"required": false,
|
779
|
-
"optional":
|
1004
|
+
"optional": true,
|
780
1005
|
"docs": {
|
781
1006
|
"tags": [],
|
782
|
-
"text": "If `true`, the select
|
1007
|
+
"text": "If `true`, the select will fill the width of the container."
|
783
1008
|
},
|
1009
|
+
"getter": false,
|
1010
|
+
"setter": false,
|
784
1011
|
"attribute": "full-width",
|
785
1012
|
"reflect": false,
|
786
1013
|
"defaultValue": "false"
|
@@ -790,7 +1017,7 @@ export class Select {
|
|
790
1017
|
"mutable": false,
|
791
1018
|
"complexType": {
|
792
1019
|
"original": "string",
|
793
|
-
"resolved": "string",
|
1020
|
+
"resolved": "string | undefined",
|
794
1021
|
"references": {}
|
795
1022
|
},
|
796
1023
|
"required": false,
|
@@ -799,6 +1026,8 @@ export class Select {
|
|
799
1026
|
"tags": [],
|
800
1027
|
"text": "The helper text that will be displayed for additional field guidance."
|
801
1028
|
},
|
1029
|
+
"getter": false,
|
1030
|
+
"setter": false,
|
802
1031
|
"attribute": "helper-text",
|
803
1032
|
"reflect": false,
|
804
1033
|
"defaultValue": "\"\""
|
@@ -808,7 +1037,7 @@ export class Select {
|
|
808
1037
|
"mutable": false,
|
809
1038
|
"complexType": {
|
810
1039
|
"original": "boolean",
|
811
|
-
"resolved": "boolean",
|
1040
|
+
"resolved": "boolean | undefined",
|
812
1041
|
"references": {}
|
813
1042
|
},
|
814
1043
|
"required": false,
|
@@ -817,6 +1046,8 @@ export class Select {
|
|
817
1046
|
"tags": [],
|
818
1047
|
"text": "If `true`, the label will be hidden and the required label value will be applied as an aria-label."
|
819
1048
|
},
|
1049
|
+
"getter": false,
|
1050
|
+
"setter": false,
|
820
1051
|
"attribute": "hide-label",
|
821
1052
|
"reflect": false,
|
822
1053
|
"defaultValue": "false"
|
@@ -826,7 +1057,7 @@ export class Select {
|
|
826
1057
|
"mutable": false,
|
827
1058
|
"complexType": {
|
828
1059
|
"original": "boolean",
|
829
|
-
"resolved": "boolean",
|
1060
|
+
"resolved": "boolean | undefined",
|
830
1061
|
"references": {}
|
831
1062
|
},
|
832
1063
|
"required": false,
|
@@ -835,6 +1066,8 @@ export class Select {
|
|
835
1066
|
"tags": [],
|
836
1067
|
"text": "If `true`, descriptions of options will be included when filtering options in a searchable select. Only applies to built in filtering."
|
837
1068
|
},
|
1069
|
+
"getter": false,
|
1070
|
+
"setter": false,
|
838
1071
|
"attribute": "include-descriptions-in-search",
|
839
1072
|
"reflect": false,
|
840
1073
|
"defaultValue": "false"
|
@@ -844,7 +1077,7 @@ export class Select {
|
|
844
1077
|
"mutable": false,
|
845
1078
|
"complexType": {
|
846
1079
|
"original": "boolean",
|
847
|
-
"resolved": "boolean",
|
1080
|
+
"resolved": "boolean | undefined",
|
848
1081
|
"references": {}
|
849
1082
|
},
|
850
1083
|
"required": false,
|
@@ -853,6 +1086,8 @@ export class Select {
|
|
853
1086
|
"tags": [],
|
854
1087
|
"text": "If `true`, group titles of grouped options will be included when filtering options in a searchable select. Only applies to built in filtering."
|
855
1088
|
},
|
1089
|
+
"getter": false,
|
1090
|
+
"setter": false,
|
856
1091
|
"attribute": "include-group-titles-in-search",
|
857
1092
|
"reflect": false,
|
858
1093
|
"defaultValue": "false"
|
@@ -871,6 +1106,8 @@ export class Select {
|
|
871
1106
|
"tags": [],
|
872
1107
|
"text": "The label for the select."
|
873
1108
|
},
|
1109
|
+
"getter": false,
|
1110
|
+
"setter": false,
|
874
1111
|
"attribute": "label",
|
875
1112
|
"reflect": false
|
876
1113
|
},
|
@@ -879,7 +1116,7 @@ export class Select {
|
|
879
1116
|
"mutable": false,
|
880
1117
|
"complexType": {
|
881
1118
|
"original": "string",
|
882
|
-
"resolved": "string",
|
1119
|
+
"resolved": "string | undefined",
|
883
1120
|
"references": {}
|
884
1121
|
},
|
885
1122
|
"required": false,
|
@@ -888,6 +1125,8 @@ export class Select {
|
|
888
1125
|
"tags": [],
|
889
1126
|
"text": "The message displayed when external loading times out."
|
890
1127
|
},
|
1128
|
+
"getter": false,
|
1129
|
+
"setter": false,
|
891
1130
|
"attribute": "loading-error-label",
|
892
1131
|
"reflect": false,
|
893
1132
|
"defaultValue": "\"Loading Error\""
|
@@ -897,7 +1136,7 @@ export class Select {
|
|
897
1136
|
"mutable": false,
|
898
1137
|
"complexType": {
|
899
1138
|
"original": "string",
|
900
|
-
"resolved": "string",
|
1139
|
+
"resolved": "string | undefined",
|
901
1140
|
"references": {}
|
902
1141
|
},
|
903
1142
|
"required": false,
|
@@ -906,16 +1145,38 @@ export class Select {
|
|
906
1145
|
"tags": [],
|
907
1146
|
"text": "The message displayed whilst the options are being loaded externally."
|
908
1147
|
},
|
1148
|
+
"getter": false,
|
1149
|
+
"setter": false,
|
909
1150
|
"attribute": "loading-label",
|
910
1151
|
"reflect": false,
|
911
1152
|
"defaultValue": "\"Loading...\""
|
912
1153
|
},
|
1154
|
+
"multiple": {
|
1155
|
+
"type": "boolean",
|
1156
|
+
"mutable": false,
|
1157
|
+
"complexType": {
|
1158
|
+
"original": "boolean",
|
1159
|
+
"resolved": "boolean | undefined",
|
1160
|
+
"references": {}
|
1161
|
+
},
|
1162
|
+
"required": false,
|
1163
|
+
"optional": true,
|
1164
|
+
"docs": {
|
1165
|
+
"tags": [],
|
1166
|
+
"text": "If `true`, multiple options can be selected."
|
1167
|
+
},
|
1168
|
+
"getter": false,
|
1169
|
+
"setter": false,
|
1170
|
+
"attribute": "multiple",
|
1171
|
+
"reflect": false,
|
1172
|
+
"defaultValue": "false"
|
1173
|
+
},
|
913
1174
|
"name": {
|
914
1175
|
"type": "string",
|
915
1176
|
"mutable": false,
|
916
1177
|
"complexType": {
|
917
1178
|
"original": "string",
|
918
|
-
"resolved": "string",
|
1179
|
+
"resolved": "string | undefined",
|
919
1180
|
"references": {}
|
920
1181
|
},
|
921
1182
|
"required": false,
|
@@ -924,6 +1185,8 @@ export class Select {
|
|
924
1185
|
"tags": [],
|
925
1186
|
"text": "The name of the control, which is submitted with the form data."
|
926
1187
|
},
|
1188
|
+
"getter": false,
|
1189
|
+
"setter": false,
|
927
1190
|
"attribute": "name",
|
928
1191
|
"reflect": false,
|
929
1192
|
"defaultValue": "this.inputId"
|
@@ -933,7 +1196,7 @@ export class Select {
|
|
933
1196
|
"mutable": false,
|
934
1197
|
"complexType": {
|
935
1198
|
"original": "string",
|
936
|
-
"resolved": "string",
|
1199
|
+
"resolved": "string | undefined",
|
937
1200
|
"references": {}
|
938
1201
|
},
|
939
1202
|
"required": false,
|
@@ -942,6 +1205,8 @@ export class Select {
|
|
942
1205
|
"tags": [],
|
943
1206
|
"text": "The placeholder value to be displayed."
|
944
1207
|
},
|
1208
|
+
"getter": false,
|
1209
|
+
"setter": false,
|
945
1210
|
"attribute": "placeholder",
|
946
1211
|
"reflect": false,
|
947
1212
|
"defaultValue": "\"Select an option\""
|
@@ -951,7 +1216,7 @@ export class Select {
|
|
951
1216
|
"mutable": false,
|
952
1217
|
"complexType": {
|
953
1218
|
"original": "boolean",
|
954
|
-
"resolved": "boolean",
|
1219
|
+
"resolved": "boolean | undefined",
|
955
1220
|
"references": {}
|
956
1221
|
},
|
957
1222
|
"required": false,
|
@@ -960,6 +1225,8 @@ export class Select {
|
|
960
1225
|
"tags": [],
|
961
1226
|
"text": "If `true`, the readonly state will be set."
|
962
1227
|
},
|
1228
|
+
"getter": false,
|
1229
|
+
"setter": false,
|
963
1230
|
"attribute": "readonly",
|
964
1231
|
"reflect": false,
|
965
1232
|
"defaultValue": "false"
|
@@ -969,7 +1236,7 @@ export class Select {
|
|
969
1236
|
"mutable": false,
|
970
1237
|
"complexType": {
|
971
1238
|
"original": "boolean",
|
972
|
-
"resolved": "boolean",
|
1239
|
+
"resolved": "boolean | undefined",
|
973
1240
|
"references": {}
|
974
1241
|
},
|
975
1242
|
"required": false,
|
@@ -978,6 +1245,8 @@ export class Select {
|
|
978
1245
|
"tags": [],
|
979
1246
|
"text": "If `true`, the select will require a value."
|
980
1247
|
},
|
1248
|
+
"getter": false,
|
1249
|
+
"setter": false,
|
981
1250
|
"attribute": "required",
|
982
1251
|
"reflect": false,
|
983
1252
|
"defaultValue": "false"
|
@@ -987,15 +1256,17 @@ export class Select {
|
|
987
1256
|
"mutable": false,
|
988
1257
|
"complexType": {
|
989
1258
|
"original": "boolean",
|
990
|
-
"resolved": "boolean",
|
1259
|
+
"resolved": "boolean | undefined",
|
991
1260
|
"references": {}
|
992
1261
|
},
|
993
1262
|
"required": false,
|
994
1263
|
"optional": true,
|
995
1264
|
"docs": {
|
996
1265
|
"tags": [],
|
997
|
-
"text": "If `true`, a searchable variant of the select will be displayed which can be typed in to filter options."
|
1266
|
+
"text": "If `true`, a searchable variant of the select will be displayed which can be typed in to filter options. This functionality is only available on the single-select variant of the select component."
|
998
1267
|
},
|
1268
|
+
"getter": false,
|
1269
|
+
"setter": false,
|
999
1270
|
"attribute": "searchable",
|
1000
1271
|
"reflect": false,
|
1001
1272
|
"defaultValue": "false"
|
@@ -1005,7 +1276,7 @@ export class Select {
|
|
1005
1276
|
"mutable": false,
|
1006
1277
|
"complexType": {
|
1007
1278
|
"original": "IcSearchMatchPositions",
|
1008
|
-
"resolved": "\"anywhere\" | \"start\"",
|
1279
|
+
"resolved": "\"anywhere\" | \"start\" | undefined",
|
1009
1280
|
"references": {
|
1010
1281
|
"IcSearchMatchPositions": {
|
1011
1282
|
"location": "import",
|
@@ -1020,6 +1291,8 @@ export class Select {
|
|
1020
1291
|
"tags": [],
|
1021
1292
|
"text": "Whether the search string of the searchable select should match the start of or anywhere in the options. Only applies to built in filtering."
|
1022
1293
|
},
|
1294
|
+
"getter": false,
|
1295
|
+
"setter": false,
|
1023
1296
|
"attribute": "search-match-position",
|
1024
1297
|
"reflect": false,
|
1025
1298
|
"defaultValue": "\"anywhere\""
|
@@ -1029,15 +1302,17 @@ export class Select {
|
|
1029
1302
|
"mutable": false,
|
1030
1303
|
"complexType": {
|
1031
1304
|
"original": "boolean",
|
1032
|
-
"resolved": "boolean",
|
1305
|
+
"resolved": "boolean | undefined",
|
1033
1306
|
"references": {}
|
1034
1307
|
},
|
1035
1308
|
"required": false,
|
1036
1309
|
"optional": true,
|
1037
1310
|
"docs": {
|
1038
1311
|
"tags": [],
|
1039
|
-
"text": "If `true`, the icOptionSelect event will be fired on enter instead of ArrowUp and ArrowDown."
|
1312
|
+
"text": "If `true`, the icOptionSelect event will be fired on enter instead of ArrowUp and ArrowDown on the single select."
|
1040
1313
|
},
|
1314
|
+
"getter": false,
|
1315
|
+
"setter": false,
|
1041
1316
|
"attribute": "select-on-enter",
|
1042
1317
|
"reflect": false,
|
1043
1318
|
"defaultValue": "false"
|
@@ -1047,7 +1322,7 @@ export class Select {
|
|
1047
1322
|
"mutable": false,
|
1048
1323
|
"complexType": {
|
1049
1324
|
"original": "boolean",
|
1050
|
-
"resolved": "boolean",
|
1325
|
+
"resolved": "boolean | undefined",
|
1051
1326
|
"references": {}
|
1052
1327
|
},
|
1053
1328
|
"required": false,
|
@@ -1056,6 +1331,8 @@ export class Select {
|
|
1056
1331
|
"tags": [],
|
1057
1332
|
"text": "If `true`, a button which clears the select input when clicked will be displayed. The button will always appear on the searchable select."
|
1058
1333
|
},
|
1334
|
+
"getter": false,
|
1335
|
+
"setter": false,
|
1059
1336
|
"attribute": "show-clear-button",
|
1060
1337
|
"reflect": false,
|
1061
1338
|
"defaultValue": "false"
|
@@ -1065,7 +1342,7 @@ export class Select {
|
|
1065
1342
|
"mutable": false,
|
1066
1343
|
"complexType": {
|
1067
1344
|
"original": "IcSizes",
|
1068
|
-
"resolved": "\"
|
1345
|
+
"resolved": "\"large\" | \"medium\" | \"small\" | undefined",
|
1069
1346
|
"references": {
|
1070
1347
|
"IcSizes": {
|
1071
1348
|
"location": "import",
|
@@ -1078,18 +1355,20 @@ export class Select {
|
|
1078
1355
|
"optional": true,
|
1079
1356
|
"docs": {
|
1080
1357
|
"tags": [],
|
1081
|
-
"text": "The size of the select
|
1358
|
+
"text": "The size of the select."
|
1082
1359
|
},
|
1360
|
+
"getter": false,
|
1361
|
+
"setter": false,
|
1083
1362
|
"attribute": "size",
|
1084
1363
|
"reflect": false,
|
1085
|
-
"defaultValue": "\"
|
1364
|
+
"defaultValue": "\"medium\""
|
1086
1365
|
},
|
1087
1366
|
"timeout": {
|
1088
1367
|
"type": "number",
|
1089
1368
|
"mutable": false,
|
1090
1369
|
"complexType": {
|
1091
1370
|
"original": "number",
|
1092
|
-
"resolved": "number",
|
1371
|
+
"resolved": "number | undefined",
|
1093
1372
|
"references": {}
|
1094
1373
|
},
|
1095
1374
|
"required": false,
|
@@ -1098,15 +1377,43 @@ export class Select {
|
|
1098
1377
|
"tags": [],
|
1099
1378
|
"text": "If using external filtering, set a timeout for when loading takes too long."
|
1100
1379
|
},
|
1380
|
+
"getter": false,
|
1381
|
+
"setter": false,
|
1101
1382
|
"attribute": "timeout",
|
1102
1383
|
"reflect": false
|
1103
1384
|
},
|
1385
|
+
"theme": {
|
1386
|
+
"type": "string",
|
1387
|
+
"mutable": false,
|
1388
|
+
"complexType": {
|
1389
|
+
"original": "IcThemeMode",
|
1390
|
+
"resolved": "\"dark\" | \"inherit\" | \"light\" | undefined",
|
1391
|
+
"references": {
|
1392
|
+
"IcThemeMode": {
|
1393
|
+
"location": "import",
|
1394
|
+
"path": "../../utils/types",
|
1395
|
+
"id": "src/utils/types.ts::IcThemeMode"
|
1396
|
+
}
|
1397
|
+
}
|
1398
|
+
},
|
1399
|
+
"required": false,
|
1400
|
+
"optional": true,
|
1401
|
+
"docs": {
|
1402
|
+
"tags": [],
|
1403
|
+
"text": "Sets the theme color to the dark or light theme color. \"inherit\" will set the color based on the system settings or ic-theme component."
|
1404
|
+
},
|
1405
|
+
"getter": false,
|
1406
|
+
"setter": false,
|
1407
|
+
"attribute": "theme",
|
1408
|
+
"reflect": false,
|
1409
|
+
"defaultValue": "\"inherit\""
|
1410
|
+
},
|
1104
1411
|
"validationStatus": {
|
1105
1412
|
"type": "string",
|
1106
1413
|
"mutable": false,
|
1107
1414
|
"complexType": {
|
1108
1415
|
"original": "IcInformationStatusOrEmpty",
|
1109
|
-
"resolved": "\"\" | \"error\" | \"success\" | \"warning\"",
|
1416
|
+
"resolved": "\"\" | \"error\" | \"success\" | \"warning\" | undefined",
|
1110
1417
|
"references": {
|
1111
1418
|
"IcInformationStatusOrEmpty": {
|
1112
1419
|
"location": "import",
|
@@ -1121,6 +1428,8 @@ export class Select {
|
|
1121
1428
|
"tags": [],
|
1122
1429
|
"text": "The validation status - e.g. 'error' | 'warning' | 'success'."
|
1123
1430
|
},
|
1431
|
+
"getter": false,
|
1432
|
+
"setter": false,
|
1124
1433
|
"attribute": "validation-status",
|
1125
1434
|
"reflect": false,
|
1126
1435
|
"defaultValue": "\"\""
|
@@ -1130,7 +1439,7 @@ export class Select {
|
|
1130
1439
|
"mutable": false,
|
1131
1440
|
"complexType": {
|
1132
1441
|
"original": "string",
|
1133
|
-
"resolved": "string",
|
1442
|
+
"resolved": "string | undefined",
|
1134
1443
|
"references": {}
|
1135
1444
|
},
|
1136
1445
|
"required": false,
|
@@ -1139,6 +1448,8 @@ export class Select {
|
|
1139
1448
|
"tags": [],
|
1140
1449
|
"text": "The text to display as the validation message."
|
1141
1450
|
},
|
1451
|
+
"getter": false,
|
1452
|
+
"setter": false,
|
1142
1453
|
"attribute": "validation-text",
|
1143
1454
|
"reflect": false,
|
1144
1455
|
"defaultValue": "\"\""
|
@@ -1148,7 +1459,7 @@ export class Select {
|
|
1148
1459
|
"mutable": true,
|
1149
1460
|
"complexType": {
|
1150
1461
|
"original": "boolean",
|
1151
|
-
"resolved": "boolean",
|
1462
|
+
"resolved": "boolean | undefined",
|
1152
1463
|
"references": {}
|
1153
1464
|
},
|
1154
1465
|
"required": false,
|
@@ -1157,6 +1468,8 @@ export class Select {
|
|
1157
1468
|
"tags": [],
|
1158
1469
|
"text": "If `true`, the loading state will be triggered when fetching options asynchronously."
|
1159
1470
|
},
|
1471
|
+
"getter": false,
|
1472
|
+
"setter": false,
|
1160
1473
|
"attribute": "loading",
|
1161
1474
|
"reflect": false,
|
1162
1475
|
"defaultValue": "false"
|
@@ -1166,7 +1479,7 @@ export class Select {
|
|
1166
1479
|
"mutable": false,
|
1167
1480
|
"complexType": {
|
1168
1481
|
"original": "IcMenuOption[]",
|
1169
|
-
"resolved": "IcMenuOption[]",
|
1482
|
+
"resolved": "IcMenuOption[] | undefined",
|
1170
1483
|
"references": {
|
1171
1484
|
"IcMenuOption": {
|
1172
1485
|
"location": "import",
|
@@ -1181,6 +1494,8 @@ export class Select {
|
|
1181
1494
|
"tags": [],
|
1182
1495
|
"text": "The possible selection options."
|
1183
1496
|
},
|
1497
|
+
"getter": false,
|
1498
|
+
"setter": false,
|
1184
1499
|
"defaultValue": "[]"
|
1185
1500
|
},
|
1186
1501
|
"debounce": {
|
@@ -1188,15 +1503,17 @@ export class Select {
|
|
1188
1503
|
"mutable": false,
|
1189
1504
|
"complexType": {
|
1190
1505
|
"original": "number",
|
1191
|
-
"resolved": "number",
|
1506
|
+
"resolved": "number | undefined",
|
1192
1507
|
"references": {}
|
1193
1508
|
},
|
1194
1509
|
"required": false,
|
1195
1510
|
"optional": true,
|
1196
1511
|
"docs": {
|
1197
1512
|
"tags": [],
|
1198
|
-
"text": "The amount of time, in milliseconds, to wait to trigger the `
|
1513
|
+
"text": "The amount of time, in milliseconds, to wait to trigger the `icInput` event after each keystroke."
|
1199
1514
|
},
|
1515
|
+
"getter": false,
|
1516
|
+
"setter": false,
|
1200
1517
|
"attribute": "debounce",
|
1201
1518
|
"reflect": false,
|
1202
1519
|
"defaultValue": "0"
|
@@ -1205,16 +1522,18 @@ export class Select {
|
|
1205
1522
|
"type": "string",
|
1206
1523
|
"mutable": true,
|
1207
1524
|
"complexType": {
|
1208
|
-
"original": "string",
|
1209
|
-
"resolved": "string",
|
1525
|
+
"original": "string | string[] | null",
|
1526
|
+
"resolved": "null | string | string[] | undefined",
|
1210
1527
|
"references": {}
|
1211
1528
|
},
|
1212
1529
|
"required": false,
|
1213
1530
|
"optional": true,
|
1214
1531
|
"docs": {
|
1215
1532
|
"tags": [],
|
1216
|
-
"text": "The value of the select, reflected by the value of the currently selected option
|
1533
|
+
"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
1534
|
},
|
1535
|
+
"getter": false,
|
1536
|
+
"setter": false,
|
1218
1537
|
"attribute": "value",
|
1219
1538
|
"reflect": false
|
1220
1539
|
}
|
@@ -1224,7 +1543,7 @@ export class Select {
|
|
1224
1543
|
return {
|
1225
1544
|
"ariaActiveDescendant": {},
|
1226
1545
|
"clearButtonFocused": {},
|
1227
|
-
"
|
1546
|
+
"debounceIcInput": {},
|
1228
1547
|
"hiddenInputValue": {},
|
1229
1548
|
"noOptions": {},
|
1230
1549
|
"open": {},
|
@@ -1265,13 +1584,13 @@ export class Select {
|
|
1265
1584
|
"text": "Emitted when the value changes."
|
1266
1585
|
},
|
1267
1586
|
"complexType": {
|
1268
|
-
"original": "
|
1269
|
-
"resolved": "
|
1587
|
+
"original": "IcMultiValueEventDetail",
|
1588
|
+
"resolved": "IcMultiValueEventDetail",
|
1270
1589
|
"references": {
|
1271
|
-
"
|
1590
|
+
"IcMultiValueEventDetail": {
|
1272
1591
|
"location": "import",
|
1273
1592
|
"path": "../../utils/types",
|
1274
|
-
"id": "src/utils/types.ts::
|
1593
|
+
"id": "src/utils/types.ts::IcMultiValueEventDetail"
|
1275
1594
|
}
|
1276
1595
|
}
|
1277
1596
|
}
|
@@ -1283,7 +1602,7 @@ export class Select {
|
|
1283
1602
|
"composed": true,
|
1284
1603
|
"docs": {
|
1285
1604
|
"tags": [],
|
1286
|
-
"text": "Emitted when the clear button is clicked."
|
1605
|
+
"text": "Emitted when the clear or clear all button is clicked."
|
1287
1606
|
},
|
1288
1607
|
"complexType": {
|
1289
1608
|
"original": "void",
|
@@ -1331,13 +1650,13 @@ export class Select {
|
|
1331
1650
|
"text": "Emitted when a keyboard input occurred."
|
1332
1651
|
},
|
1333
1652
|
"complexType": {
|
1334
|
-
"original": "
|
1335
|
-
"resolved": "
|
1653
|
+
"original": "IcMultiValueEventDetail",
|
1654
|
+
"resolved": "IcMultiValueEventDetail",
|
1336
1655
|
"references": {
|
1337
|
-
"
|
1656
|
+
"IcMultiValueEventDetail": {
|
1338
1657
|
"location": "import",
|
1339
1658
|
"path": "../../utils/types",
|
1340
|
-
"id": "src/utils/types.ts::
|
1659
|
+
"id": "src/utils/types.ts::IcMultiValueEventDetail"
|
1341
1660
|
}
|
1342
1661
|
}
|
1343
1662
|
}
|
@@ -1364,7 +1683,28 @@ export class Select {
|
|
1364
1683
|
"composed": true,
|
1365
1684
|
"docs": {
|
1366
1685
|
"tags": [],
|
1367
|
-
"text": "Emitted when an option is
|
1686
|
+
"text": "Emitted when an option is selected.\nSelecting an option will also trigger an `icChange/onIcChange` due to the value being updated."
|
1687
|
+
},
|
1688
|
+
"complexType": {
|
1689
|
+
"original": "IcOptionSelectEventDetail",
|
1690
|
+
"resolved": "IcOptionSelectEventDetail",
|
1691
|
+
"references": {
|
1692
|
+
"IcOptionSelectEventDetail": {
|
1693
|
+
"location": "import",
|
1694
|
+
"path": "../ic-menu/ic-menu.types",
|
1695
|
+
"id": "src/components/ic-menu/ic-menu.types.ts::IcOptionSelectEventDetail"
|
1696
|
+
}
|
1697
|
+
}
|
1698
|
+
}
|
1699
|
+
}, {
|
1700
|
+
"method": "icOptionDeselect",
|
1701
|
+
"name": "icOptionDeselect",
|
1702
|
+
"bubbles": true,
|
1703
|
+
"cancelable": true,
|
1704
|
+
"composed": true,
|
1705
|
+
"docs": {
|
1706
|
+
"tags": [],
|
1707
|
+
"text": "Emitted when `multiple` is `true` and an option is deselected."
|
1368
1708
|
},
|
1369
1709
|
"complexType": {
|
1370
1710
|
"original": "IcOptionSelectEventDetail",
|
@@ -1388,13 +1728,13 @@ export class Select {
|
|
1388
1728
|
"text": "Emitted when the 'retry loading' button is clicked for a searchable variant."
|
1389
1729
|
},
|
1390
1730
|
"complexType": {
|
1391
|
-
"original": "
|
1392
|
-
"resolved": "
|
1731
|
+
"original": "IcMultiValueEventDetail",
|
1732
|
+
"resolved": "IcMultiValueEventDetail",
|
1393
1733
|
"references": {
|
1394
|
-
"
|
1734
|
+
"IcMultiValueEventDetail": {
|
1395
1735
|
"location": "import",
|
1396
1736
|
"path": "../../utils/types",
|
1397
|
-
"id": "src/utils/types.ts::
|
1737
|
+
"id": "src/utils/types.ts::IcMultiValueEventDetail"
|
1398
1738
|
}
|
1399
1739
|
}
|
1400
1740
|
}
|
@@ -1424,6 +1764,9 @@ export class Select {
|
|
1424
1764
|
static get elementRef() { return "el"; }
|
1425
1765
|
static get watchers() {
|
1426
1766
|
return [{
|
1767
|
+
"propName": "disabled",
|
1768
|
+
"methodName": "watchDisabledHandler"
|
1769
|
+
}, {
|
1427
1770
|
"propName": "loading",
|
1428
1771
|
"methodName": "loadingHandler"
|
1429
1772
|
}, {
|