@ukic/web-components 2.1.0-beta.1 → 2.1.0-beta.11
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +8 -0
- package/dist/cjs/OpenInNew-f9958725.js +7 -0
- package/dist/cjs/OpenInNew-f9958725.js.map +1 -0
- package/dist/cjs/{check-icon-999d9877.js → check-icon-b2f60716.js} +2 -2
- package/dist/cjs/check-icon-b2f60716.js.map +1 -0
- package/dist/cjs/chevron-icon-2bb3a907.js +10 -0
- package/dist/cjs/chevron-icon-2bb3a907.js.map +1 -0
- package/dist/cjs/core.cjs.js +2 -2
- package/dist/cjs/{helpers-8bc3b6d2.js → helpers-2021e212.js} +78 -4
- package/dist/cjs/helpers-2021e212.js.map +1 -0
- package/dist/cjs/ic-alert.cjs.entry.js +6 -25
- package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-back-to-top.cjs.entry.js +24 -12
- package/dist/cjs/ic-back-to-top.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb.cjs.entry.js +15 -6
- package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-button_3.cjs.entry.js +46 -31
- package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-card.cjs.entry.js +29 -5
- package/dist/cjs/ic-card.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +4 -4
- package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox.cjs.entry.js +16 -4
- package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-chip.cjs.entry.js +77 -0
- package/dist/cjs/ic-chip.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-classification-banner.cjs.entry.js +3 -3
- package/dist/cjs/ic-classification-banner.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-entity.cjs.entry.js +2 -2
- package/dist/cjs/ic-data-entity.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-row.cjs.entry.js +14 -12
- package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-divider.cjs.entry.js +3 -3
- package/dist/cjs/ic-divider.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer-link-group.cjs.entry.js +4 -3
- package/dist/cjs/ic-footer-link-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer-link.cjs.entry.js +12 -5
- package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer.cjs.entry.js +5 -5
- package/dist/cjs/ic-footer.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-hero.cjs.entry.js +3 -3
- package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +164 -0
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js +79 -45
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-label_2.cjs.entry.js +6 -8
- package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-link.cjs.entry.js +14 -8
- package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu-group.cjs.entry.js +24 -0
- package/dist/cjs/ic-menu-group.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-menu-item.cjs.entry.js +120 -0
- package/dist/cjs/ic-menu-item.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-navigation-button.cjs.entry.js +5 -4
- package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-group.cjs.entry.js +7 -6
- package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js +19 -12
- package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-menu.cjs.entry.js +8 -8
- package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-page-header.cjs.entry.js +5 -5
- package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-popover-menu.cjs.entry.js +236 -0
- package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-radio-group.cjs.entry.js +13 -5
- package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-option.cjs.entry.js +24 -6
- package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-search-bar.cjs.entry.js +56 -42
- package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-section-container.cjs.entry.js +2 -2
- package/dist/cjs/ic-section-container.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-select.cjs.entry.js +218 -69
- package/dist/cjs/ic-select.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-side-navigation.cjs.entry.js +26 -14
- package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-status-tag.cjs.entry.js +6 -5
- package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-step.cjs.entry.js +103 -15
- package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-stepper.cjs.entry.js +166 -42
- package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-switch.cjs.entry.js +12 -3
- package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-context.cjs.entry.js +7 -2
- package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-group.cjs.entry.js +9 -118
- package/dist/cjs/ic-tab-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab.cjs.entry.js +10 -2
- package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-text-field.cjs.entry.js +5 -5
- package/dist/cjs/ic-text-field.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-theme.cjs.entry.js +4 -4
- package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toast-region.cjs.entry.js +48 -0
- package/dist/cjs/ic-toast-region.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-toast.cjs.entry.js +165 -0
- package/dist/cjs/ic-toast.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-top-navigation.cjs.entry.js +15 -10
- package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-typography.cjs.entry.js +1 -1
- package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
- package/dist/cjs/{index-3ef30d9d.js → index-f79a4e53.js} +33 -2
- package/dist/cjs/index-f79a4e53.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/types-3eb02246.js.map +1 -1
- package/dist/collection/assets/back-icon.svg +1 -1
- package/dist/collection/assets/check-icon.svg +1 -1
- package/dist/collection/assets/chevron-icon.svg +1 -1
- package/dist/collection/assets/dismiss-icon.svg +3 -0
- package/dist/collection/assets/error-icon.svg +3 -3
- package/dist/collection/assets/info-icon.svg +3 -3
- package/dist/collection/assets/neutral-icon.svg +3 -3
- package/dist/collection/assets/success-icon.svg +3 -3
- package/dist/collection/assets/warning-icon-outline.svg +3 -0
- package/dist/collection/assets/warning-icon.svg +3 -3
- package/dist/collection/collection-manifest.json +7 -0
- package/dist/collection/components/ic-alert/ic-alert.css +13 -13
- package/dist/collection/components/ic-alert/ic-alert.js +32 -24
- package/dist/collection/components/ic-alert/ic-alert.js.map +1 -1
- package/dist/collection/components/ic-back-to-top/assets/ArrowUpward.svg +2 -2
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.css +18 -8
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.js +18 -7
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.js.map +1 -1
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.css +20 -5
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js +33 -4
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js.map +1 -1
- package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js +2 -2
- package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js.map +1 -1
- package/dist/collection/components/ic-button/ic-button.css +16 -15
- package/dist/collection/components/ic-button/ic-button.js +18 -32
- package/dist/collection/components/ic-button/ic-button.js.map +1 -1
- package/dist/collection/components/ic-card/ic-card.css +75 -17
- package/dist/collection/components/ic-card/ic-card.js +103 -16
- package/dist/collection/components/ic-card/ic-card.js.map +1 -1
- package/dist/collection/components/ic-checkbox/ic-checkbox.css +28 -30
- package/dist/collection/components/ic-checkbox/ic-checkbox.js +63 -11
- package/dist/collection/components/ic-checkbox/ic-checkbox.js.map +1 -1
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.css +18 -2
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +11 -11
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js.map +1 -1
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.test.a11y.js +1 -1
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.test.a11y.js.map +1 -1
- package/dist/collection/components/ic-chip/ic-chip.css +596 -0
- package/dist/collection/components/ic-chip/ic-chip.js +247 -0
- package/dist/collection/components/ic-chip/ic-chip.js.map +1 -0
- package/dist/collection/components/ic-chip/ic-chip.test.a11y.js +11 -0
- package/dist/collection/components/ic-chip/ic-chip.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-chip/ic-chip.types.js +2 -0
- package/dist/collection/components/ic-chip/ic-chip.types.js.map +1 -0
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.css +5 -1
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.js +6 -6
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.js.map +1 -1
- package/dist/collection/components/ic-data-entity/ic-data-entity.css +1 -1
- package/dist/collection/components/ic-data-entity/ic-data-entity.js +2 -2
- package/dist/collection/components/ic-data-entity/ic-data-entity.js.map +1 -1
- package/dist/collection/components/ic-data-row/ic-data-row.css +19 -7
- package/dist/collection/components/ic-data-row/ic-data-row.js +14 -12
- package/dist/collection/components/ic-data-row/ic-data-row.js.map +1 -1
- package/dist/collection/components/ic-divider/ic-divider.css +1 -1
- package/dist/collection/components/ic-divider/ic-divider.js +1 -1
- package/dist/collection/components/ic-divider/ic-divider.js.map +1 -1
- package/dist/collection/components/ic-footer/ic-footer.css +4 -4
- package/dist/collection/components/ic-footer/ic-footer.js +19 -16
- package/dist/collection/components/ic-footer/ic-footer.js.map +1 -1
- package/dist/collection/components/ic-footer-link/ic-footer-link.css +44 -6
- package/dist/collection/components/ic-footer-link/ic-footer-link.js +101 -4
- 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 +1 -1
- package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.js +4 -3
- package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.js.map +1 -1
- package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.test.a11y.js +1 -1
- package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.test.a11y.js.map +1 -1
- package/dist/collection/components/ic-hero/ic-hero.css +35 -30
- package/dist/collection/components/ic-hero/ic-hero.js +10 -10
- package/dist/collection/components/ic-hero/ic-hero.js.map +1 -1
- package/dist/collection/components/ic-horizontal-scroll/assets/left-arrow.svg +3 -0
- package/dist/collection/components/ic-horizontal-scroll/assets/right-arrow.svg +3 -0
- package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.css +539 -0
- package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js +219 -0
- package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js.map +1 -0
- package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.test.a11y.js +34 -0
- package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-input-component-container/ic-input-component-container.css +16 -17
- package/dist/collection/components/ic-input-component-container/ic-input-component-container.js +8 -8
- 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.css +0 -1
- package/dist/collection/components/ic-input-container/ic-input-container.js +2 -2
- package/dist/collection/components/ic-input-container/ic-input-container.js.map +1 -1
- package/dist/collection/components/ic-input-label/ic-input-label.js +8 -8
- package/dist/collection/components/ic-input-label/ic-input-label.js.map +1 -1
- package/dist/collection/components/ic-input-validation/ic-input-validation.css +4 -5
- package/dist/collection/components/ic-input-validation/ic-input-validation.js +5 -5
- package/dist/collection/components/ic-input-validation/ic-input-validation.js.map +1 -1
- package/dist/collection/components/ic-link/ic-link.css +14 -10
- package/dist/collection/components/ic-link/ic-link.js +43 -13
- package/dist/collection/components/ic-link/ic-link.js.map +1 -1
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.css +43 -7
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js +48 -9
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js.map +1 -1
- package/dist/collection/components/ic-menu/ic-menu.css +20 -15
- package/dist/collection/components/ic-menu/ic-menu.js +144 -73
- package/dist/collection/components/ic-menu/ic-menu.js.map +1 -1
- package/dist/collection/components/ic-menu-group/ic-menu-group.css +465 -0
- package/dist/collection/components/ic-menu-group/ic-menu-group.js +45 -0
- package/dist/collection/components/ic-menu-group/ic-menu-group.js.map +1 -0
- package/dist/collection/components/ic-menu-item/ic-menu-item.css +633 -0
- package/dist/collection/components/ic-menu-item/ic-menu-item.js +392 -0
- package/dist/collection/components/ic-menu-item/ic-menu-item.js.map +1 -0
- package/dist/collection/components/ic-menu-item/ic-menu-item.types.js +2 -0
- package/dist/collection/components/ic-menu-item/ic-menu-item.types.js.map +1 -0
- package/dist/collection/components/ic-navigation-button/ic-navigation-button.js +9 -8
- 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 +14 -7
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.js +7 -6
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.js.map +1 -1
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.css +68 -18
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.js +113 -16
- 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 +15 -11
- package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js +8 -8
- 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 +15 -5
- package/dist/collection/components/ic-page-header/ic-page-header.js +10 -10
- package/dist/collection/components/ic-page-header/ic-page-header.js.map +1 -1
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.css +535 -0
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.js +432 -0
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.js.map +1 -0
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.test.a11y.js +13 -0
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-radio-group/ic-radio-group.css +32 -0
- package/dist/collection/components/ic-radio-group/ic-radio-group.js +44 -13
- package/dist/collection/components/ic-radio-group/ic-radio-group.js.map +1 -1
- package/dist/collection/components/ic-radio-group/ic-radio-group.test.a11y.js +1 -1
- package/dist/collection/components/ic-radio-group/ic-radio-group.test.a11y.js.map +1 -1
- package/dist/collection/components/ic-radio-option/ic-radio-option.css +32 -42
- package/dist/collection/components/ic-radio-option/ic-radio-option.js +65 -19
- 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 +24 -18
- package/dist/collection/components/ic-search-bar/ic-search-bar.js +90 -83
- package/dist/collection/components/ic-search-bar/ic-search-bar.js.map +1 -1
- package/dist/collection/components/ic-section-container/ic-section-container.css +1 -0
- package/dist/collection/components/ic-section-container/ic-section-container.js +2 -2
- package/dist/collection/components/ic-section-container/ic-section-container.js.map +1 -1
- package/dist/collection/components/ic-select/assets/Expand.svg +1 -1
- package/dist/collection/components/ic-select/ic-select.css +47 -30
- package/dist/collection/components/ic-select/ic-select.js +336 -88
- package/dist/collection/components/ic-select/ic-select.js.map +1 -1
- package/dist/collection/components/ic-side-navigation/ic-side-navigation-test-examples.js +90 -0
- package/dist/collection/components/ic-side-navigation/ic-side-navigation-test-examples.js.map +1 -1
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.css +47 -37
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +40 -24
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.js.map +1 -1
- package/dist/collection/components/ic-skeleton/ic-skeleton.css +1 -1
- package/dist/collection/components/ic-skeleton/ic-skeleton.js +2 -2
- package/dist/collection/components/ic-skeleton/ic-skeleton.js.map +1 -1
- package/dist/collection/components/ic-status-tag/ic-status-tag.css +7 -7
- package/dist/collection/components/ic-status-tag/ic-status-tag.js +22 -3
- package/dist/collection/components/ic-status-tag/ic-status-tag.js.map +1 -1
- package/dist/collection/components/ic-status-tag/ic-status-tag.test.a11y.js +1 -1
- package/dist/collection/components/ic-status-tag/ic-status-tag.test.a11y.js.map +1 -1
- package/dist/collection/components/ic-step/ic-step.css +127 -30
- package/dist/collection/components/ic-step/ic-step.js +269 -28
- package/dist/collection/components/ic-step/ic-step.js.map +1 -1
- package/dist/collection/components/ic-step/ic-step.types.js.map +1 -1
- package/dist/collection/components/ic-stepper/ic-stepper-test-examples.js +74 -0
- package/dist/collection/components/ic-stepper/ic-stepper-test-examples.js.map +1 -0
- package/dist/collection/components/ic-stepper/ic-stepper.css +15 -1
- package/dist/collection/components/ic-stepper/ic-stepper.js +210 -40
- package/dist/collection/components/ic-stepper/ic-stepper.js.map +1 -1
- package/dist/collection/components/ic-stepper/ic-stepper.test.a11y.js +13 -1
- package/dist/collection/components/ic-stepper/ic-stepper.test.a11y.js.map +1 -1
- package/dist/collection/components/ic-switch/ic-switch.css +20 -20
- package/dist/collection/components/ic-switch/ic-switch.js +36 -7
- package/dist/collection/components/ic-switch/ic-switch.js.map +1 -1
- package/dist/collection/components/ic-tab/ic-tab.css +1 -1
- package/dist/collection/components/ic-tab/ic-tab.js +37 -6
- package/dist/collection/components/ic-tab/ic-tab.js.map +1 -1
- package/dist/collection/components/ic-tab-context/ic-tab-context.js +31 -4
- package/dist/collection/components/ic-tab-context/ic-tab-context.js.map +1 -1
- package/dist/collection/components/ic-tab-context/ic-tab-context.test.a11y.js +1 -1
- package/dist/collection/components/ic-tab-context/ic-tab-context.test.a11y.js.map +1 -1
- package/dist/collection/components/ic-tab-group/ic-tab-group.css +6 -120
- package/dist/collection/components/ic-tab-group/ic-tab-group.js +12 -156
- 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 +4 -0
- package/dist/collection/components/ic-tab-panel/ic-tab-panel.js +2 -2
- 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 +7 -7
- package/dist/collection/components/ic-text-field/ic-text-field.js +32 -32
- package/dist/collection/components/ic-text-field/ic-text-field.js.map +1 -1
- package/dist/collection/components/ic-theme/ic-theme.js +9 -6
- package/dist/collection/components/ic-theme/ic-theme.js.map +1 -1
- package/dist/collection/components/ic-toast/ic-toast.css +602 -0
- package/dist/collection/components/ic-toast/ic-toast.js +382 -0
- package/dist/collection/components/ic-toast/ic-toast.js.map +1 -0
- package/dist/collection/components/ic-toast/ic-toast.test.a11y.js +16 -0
- package/dist/collection/components/ic-toast/ic-toast.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-toast/ic-toast.types.js +2 -0
- package/dist/collection/components/ic-toast/ic-toast.types.js.map +1 -0
- package/dist/collection/components/ic-toast-region/ic-toast-region.js +81 -0
- package/dist/collection/components/ic-toast-region/ic-toast-region.js.map +1 -0
- package/dist/collection/components/ic-tooltip/ic-tooltip.css +9 -11
- package/dist/collection/components/ic-tooltip/ic-tooltip.js +28 -3
- package/dist/collection/components/ic-tooltip/ic-tooltip.js.map +1 -1
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.css +34 -52
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.js +21 -15
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.js.map +1 -1
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.test.a11y.js +1 -1
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.test.a11y.js.map +1 -1
- package/dist/collection/components/ic-typography/ic-typography.js +1 -1
- package/dist/collection/components/ic-typography/ic-typography.js.map +1 -1
- package/dist/collection/normalize.css +440 -0
- package/dist/collection/testspec.setup.js +8 -0
- package/dist/collection/testspec.setup.js.map +1 -1
- package/dist/collection/utils/constants.js +28 -0
- package/dist/collection/utils/constants.js.map +1 -1
- package/dist/collection/utils/helpers.js +13 -4
- package/dist/collection/utils/helpers.js.map +1 -1
- package/dist/collection/utils/types.js.map +1 -1
- package/dist/components/OpenInNew.js +5 -0
- package/dist/components/OpenInNew.js.map +1 -0
- package/dist/components/check-icon.js +1 -1
- package/dist/components/chevron-icon.js +1 -1
- package/dist/components/helpers.js +71 -4
- package/dist/components/helpers.js.map +1 -1
- package/dist/components/ic-alert.js +6 -25
- package/dist/components/ic-alert.js.map +1 -1
- package/dist/components/ic-back-to-top.js +23 -11
- package/dist/components/ic-back-to-top.js.map +1 -1
- package/dist/components/ic-breadcrumb-group.js.map +1 -1
- package/dist/components/ic-breadcrumb2.js +14 -4
- package/dist/components/ic-breadcrumb2.js.map +1 -1
- package/dist/components/ic-button2.js +9 -20
- package/dist/components/ic-button2.js.map +1 -1
- package/dist/components/ic-card.js +52 -6
- package/dist/components/ic-card.js.map +1 -1
- package/dist/components/ic-checkbox-group.js +3 -3
- package/dist/components/ic-checkbox-group.js.map +1 -1
- package/dist/components/ic-checkbox.js +17 -4
- package/dist/components/ic-checkbox.js.map +1 -1
- package/dist/components/ic-chip.d.ts +11 -0
- package/dist/components/ic-chip.js +111 -0
- package/dist/components/ic-chip.js.map +1 -0
- package/dist/components/ic-classification-banner.js +2 -2
- package/dist/components/ic-classification-banner.js.map +1 -1
- package/dist/components/ic-data-entity.js +1 -1
- package/dist/components/ic-data-entity.js.map +1 -1
- package/dist/components/ic-data-row.js +12 -10
- package/dist/components/ic-data-row.js.map +1 -1
- package/dist/components/ic-divider2.js +2 -2
- package/dist/components/ic-divider2.js.map +1 -1
- package/dist/components/ic-footer-link-group.js +4 -3
- package/dist/components/ic-footer-link-group.js.map +1 -1
- package/dist/components/ic-footer-link.js +17 -5
- package/dist/components/ic-footer-link.js.map +1 -1
- package/dist/components/ic-footer.js +4 -4
- package/dist/components/ic-footer.js.map +1 -1
- package/dist/components/ic-hero.js +2 -2
- package/dist/components/ic-hero.js.map +1 -1
- package/dist/components/ic-horizontal-scroll.d.ts +11 -0
- package/dist/components/ic-horizontal-scroll.js +8 -0
- package/dist/components/ic-horizontal-scroll.js.map +1 -0
- package/dist/components/ic-horizontal-scroll2.js +205 -0
- package/dist/components/ic-horizontal-scroll2.js.map +1 -0
- package/dist/components/ic-input-component-container2.js +2 -3
- package/dist/components/ic-input-component-container2.js.map +1 -1
- package/dist/components/ic-input-container2.js +1 -1
- package/dist/components/ic-input-container2.js.map +1 -1
- package/dist/components/ic-input-label2.js +1 -1
- package/dist/components/ic-input-label2.js.map +1 -1
- package/dist/components/ic-input-validation2.js +2 -4
- package/dist/components/ic-input-validation2.js.map +1 -1
- package/dist/components/ic-link2.js +16 -9
- package/dist/components/ic-link2.js.map +1 -1
- package/dist/components/ic-loading-indicator2.js +27 -7
- package/dist/components/ic-loading-indicator2.js.map +1 -1
- package/dist/components/ic-menu-group.d.ts +11 -0
- package/dist/components/ic-menu-group.js +46 -0
- package/dist/components/ic-menu-group.js.map +1 -0
- package/dist/components/ic-menu-item.d.ts +11 -0
- package/dist/components/ic-menu-item.js +8 -0
- package/dist/components/ic-menu-item.js.map +1 -0
- package/dist/components/ic-menu-item2.js +167 -0
- package/dist/components/ic-menu-item2.js.map +1 -0
- package/dist/components/ic-menu2.js +75 -41
- package/dist/components/ic-menu2.js.map +1 -1
- package/dist/components/ic-navigation-button.js +5 -4
- package/dist/components/ic-navigation-button.js.map +1 -1
- package/dist/components/ic-navigation-group.js +5 -4
- package/dist/components/ic-navigation-group.js.map +1 -1
- package/dist/components/ic-navigation-item.js +22 -10
- package/dist/components/ic-navigation-item.js.map +1 -1
- package/dist/components/ic-navigation-menu2.js +8 -8
- package/dist/components/ic-navigation-menu2.js.map +1 -1
- package/dist/components/ic-page-header.js +30 -6
- package/dist/components/ic-page-header.js.map +1 -1
- package/dist/components/ic-popover-menu.d.ts +11 -0
- package/dist/components/ic-popover-menu.js +290 -0
- package/dist/components/ic-popover-menu.js.map +1 -0
- package/dist/components/ic-radio-group.js +14 -5
- package/dist/components/ic-radio-group.js.map +1 -1
- package/dist/components/ic-radio-option.js +26 -7
- package/dist/components/ic-radio-option.js.map +1 -1
- package/dist/components/ic-search-bar.js +59 -44
- package/dist/components/ic-search-bar.js.map +1 -1
- package/dist/components/ic-section-container2.js +1 -1
- package/dist/components/ic-section-container2.js.map +1 -1
- package/dist/components/ic-select.js +224 -69
- package/dist/components/ic-select.js.map +1 -1
- package/dist/components/ic-side-navigation.js +23 -11
- package/dist/components/ic-side-navigation.js.map +1 -1
- package/dist/components/ic-skeleton.js +1 -1
- package/dist/components/ic-skeleton.js.map +1 -1
- package/dist/components/ic-status-tag.js +6 -4
- package/dist/components/ic-status-tag.js.map +1 -1
- package/dist/components/ic-step.js +117 -16
- package/dist/components/ic-step.js.map +1 -1
- package/dist/components/ic-stepper.js +173 -42
- package/dist/components/ic-stepper.js.map +1 -1
- package/dist/components/ic-switch.js +13 -3
- package/dist/components/ic-switch.js.map +1 -1
- package/dist/components/ic-tab-context.js +6 -1
- package/dist/components/ic-tab-context.js.map +1 -1
- package/dist/components/ic-tab-group.js +30 -125
- package/dist/components/ic-tab-group.js.map +1 -1
- package/dist/components/ic-tab-panel.js +1 -1
- package/dist/components/ic-tab-panel.js.map +1 -1
- package/dist/components/ic-tab.js +11 -2
- package/dist/components/ic-tab.js.map +1 -1
- package/dist/components/ic-text-field2.js +6 -6
- package/dist/components/ic-text-field2.js.map +1 -1
- package/dist/components/ic-theme.js +2 -2
- package/dist/components/ic-theme.js.map +1 -1
- package/dist/components/ic-toast-region.d.ts +11 -0
- package/dist/components/ic-toast-region.js +63 -0
- package/dist/components/ic-toast-region.js.map +1 -0
- package/dist/components/ic-toast.d.ts +11 -0
- package/dist/components/ic-toast.js +214 -0
- package/dist/components/ic-toast.js.map +1 -0
- package/dist/components/ic-tooltip2.js +13 -5
- package/dist/components/ic-tooltip2.js.map +1 -1
- package/dist/components/ic-top-navigation.js +22 -11
- package/dist/components/ic-top-navigation.js.map +1 -1
- package/dist/components/ic-typography2.js.map +1 -1
- package/dist/components/index.d.ts +8 -1
- package/dist/components/index.js +7 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/types.js.map +1 -1
- package/dist/core/core.css +3 -3
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/normalize.css +440 -0
- package/dist/core/p-037dfe9d.entry.js +2 -0
- package/dist/core/p-037dfe9d.entry.js.map +1 -0
- package/dist/core/p-05c5c6c4.entry.js +2 -0
- package/dist/core/p-05c5c6c4.entry.js.map +1 -0
- package/dist/core/p-06321d19.js +2 -0
- package/dist/core/p-0a463a65.entry.js +2 -0
- package/dist/core/p-0a463a65.entry.js.map +1 -0
- package/dist/core/p-0faf328a.entry.js +2 -0
- package/dist/core/p-0faf328a.entry.js.map +1 -0
- package/dist/core/p-102281fd.entry.js +2 -0
- package/dist/core/p-102281fd.entry.js.map +1 -0
- package/dist/core/p-1549adc1.entry.js +2 -0
- package/dist/core/p-1549adc1.entry.js.map +1 -0
- package/dist/core/p-25b208ae.entry.js +2 -0
- package/dist/core/p-25b208ae.entry.js.map +1 -0
- package/dist/core/{p-c4d3c18c.entry.js → p-26c9e522.entry.js} +2 -2
- package/dist/core/p-26c9e522.entry.js.map +1 -0
- package/dist/core/p-31a595c1.entry.js +2 -0
- package/dist/core/p-31a595c1.entry.js.map +1 -0
- package/dist/core/p-33a0aabe.entry.js +2 -0
- package/dist/core/p-33a0aabe.entry.js.map +1 -0
- package/dist/core/p-360adc51.entry.js +2 -0
- package/dist/core/p-360adc51.entry.js.map +1 -0
- package/dist/core/p-3d84a743.entry.js +2 -0
- package/dist/core/p-3d84a743.entry.js.map +1 -0
- package/dist/core/p-3dea2867.js +2 -0
- package/dist/core/p-3dea2867.js.map +1 -0
- package/dist/core/p-3fd4f8eb.entry.js +2 -0
- package/dist/core/p-3fd4f8eb.entry.js.map +1 -0
- package/dist/core/p-48a5c2a7.entry.js +2 -0
- package/dist/core/p-48a5c2a7.entry.js.map +1 -0
- package/dist/core/p-4d8392fe.entry.js +2 -0
- package/dist/core/p-4d8392fe.entry.js.map +1 -0
- package/dist/core/p-4ee03271.entry.js +2 -0
- package/dist/core/p-4ee03271.entry.js.map +1 -0
- package/dist/core/{p-f9370be6.js → p-5450cebf.js} +3 -3
- package/dist/core/p-5450cebf.js.map +1 -0
- package/dist/core/p-58ff516f.entry.js +2 -0
- package/dist/core/p-58ff516f.entry.js.map +1 -0
- package/dist/core/p-62b3516e.entry.js +2 -0
- package/dist/core/p-62b3516e.entry.js.map +1 -0
- package/dist/core/p-6f57b13c.js.map +1 -1
- package/dist/core/p-73fddc63.entry.js +2 -0
- package/dist/core/p-73fddc63.entry.js.map +1 -0
- package/dist/core/p-741b4ea3.entry.js +2 -0
- package/dist/core/p-741b4ea3.entry.js.map +1 -0
- package/dist/core/p-7dcb9104.entry.js +2 -0
- package/dist/core/p-7dcb9104.entry.js.map +1 -0
- package/dist/core/{p-e93e9aa3.entry.js → p-7fd50355.entry.js} +2 -2
- package/dist/core/p-7fd50355.entry.js.map +1 -0
- package/dist/core/p-81652a98.entry.js +2 -0
- package/dist/core/p-81652a98.entry.js.map +1 -0
- package/dist/core/p-87c7ba3b.entry.js +2 -0
- package/dist/core/p-87c7ba3b.entry.js.map +1 -0
- package/dist/core/p-897e967a.entry.js +2 -0
- package/dist/core/p-897e967a.entry.js.map +1 -0
- package/dist/core/p-8c7f4343.js +2 -0
- package/dist/core/p-8c9cc4d5.entry.js +2 -0
- package/dist/core/p-8c9cc4d5.entry.js.map +1 -0
- package/dist/core/p-8d4f7027.js +2 -0
- package/dist/core/{p-0118400b.entry.js → p-8ffa00c9.entry.js} +2 -2
- package/dist/core/p-8ffa00c9.entry.js.map +1 -0
- package/dist/core/p-a2c7dc6c.entry.js +2 -0
- package/dist/core/p-a2c7dc6c.entry.js.map +1 -0
- package/dist/core/p-a3742d40.entry.js +2 -0
- package/dist/core/p-a3742d40.entry.js.map +1 -0
- package/dist/core/p-a44a0500.entry.js +2 -0
- package/dist/core/p-a44a0500.entry.js.map +1 -0
- package/dist/core/p-a8e969ea.entry.js +2 -0
- package/dist/core/p-a8e969ea.entry.js.map +1 -0
- package/dist/core/p-ac6ecdb6.entry.js +2 -0
- package/dist/core/p-ac6ecdb6.entry.js.map +1 -0
- package/dist/core/p-acb08809.entry.js +2 -0
- package/dist/core/p-acb08809.entry.js.map +1 -0
- package/dist/core/{p-6be5e06b.entry.js → p-ad2477d8.entry.js} +2 -2
- package/dist/core/p-ad2477d8.entry.js.map +1 -0
- package/dist/core/p-affb42c7.entry.js +2 -0
- package/dist/core/p-affb42c7.entry.js.map +1 -0
- package/dist/core/p-b7fc1f35.entry.js +2 -0
- package/dist/core/p-b7fc1f35.entry.js.map +1 -0
- package/dist/core/p-b8b960a5.entry.js +2 -0
- package/dist/core/p-b8b960a5.entry.js.map +1 -0
- package/dist/core/p-b921bb19.entry.js +2 -0
- package/dist/core/p-b921bb19.entry.js.map +1 -0
- package/dist/core/{p-6d0eaaeb.entry.js → p-c9068822.entry.js} +2 -2
- package/dist/core/{p-6d0eaaeb.entry.js.map → p-c9068822.entry.js.map} +1 -1
- package/dist/core/p-c996810e.entry.js +2 -0
- package/dist/core/p-c996810e.entry.js.map +1 -0
- package/dist/core/p-cc62d065.entry.js +2 -0
- package/dist/core/p-cc62d065.entry.js.map +1 -0
- package/dist/core/{p-02799e26.entry.js → p-d2508752.entry.js} +2 -2
- package/dist/core/{p-02799e26.entry.js.map → p-d2508752.entry.js.map} +1 -1
- package/dist/core/p-d28d7f24.entry.js +2 -0
- package/dist/core/p-d28d7f24.entry.js.map +1 -0
- package/dist/core/{p-07cd789d.entry.js → p-dbfdfa8a.entry.js} +2 -2
- package/dist/core/p-dbfdfa8a.entry.js.map +1 -0
- package/dist/core/{p-10da19d2.entry.js → p-dd71a986.entry.js} +2 -2
- package/dist/core/p-dd71a986.entry.js.map +1 -0
- package/dist/core/p-e4547265.entry.js +2 -0
- package/dist/core/p-e4547265.entry.js.map +1 -0
- package/dist/core/p-ea0c4aca.entry.js +2 -0
- package/dist/core/p-ea0c4aca.entry.js.map +1 -0
- package/dist/core/{p-cadb531f.entry.js → p-ed6cf9b9.entry.js} +2 -2
- package/dist/core/p-ed6cf9b9.entry.js.map +1 -0
- package/dist/core/p-f6ddd32f.entry.js +2 -0
- package/dist/core/p-f6ddd32f.entry.js.map +1 -0
- package/dist/core/p-f777679c.entry.js +2 -0
- package/dist/core/p-f777679c.entry.js.map +1 -0
- package/dist/esm/OpenInNew-67a881e0.js +5 -0
- package/dist/esm/OpenInNew-67a881e0.js.map +1 -0
- package/dist/esm/{check-icon-53f1d9e5.js → check-icon-abb210ec.js} +2 -2
- package/dist/esm/check-icon-abb210ec.js.map +1 -0
- package/dist/esm/chevron-icon-7927f709.js +8 -0
- package/dist/esm/chevron-icon-7927f709.js.map +1 -0
- package/dist/esm/core.js +2 -2
- package/dist/esm/{helpers-3d41833c.js → helpers-b2b47a7d.js} +72 -5
- package/dist/esm/helpers-b2b47a7d.js.map +1 -0
- package/dist/esm/ic-alert.entry.js +6 -25
- package/dist/esm/ic-alert.entry.js.map +1 -1
- package/dist/esm/ic-back-to-top.entry.js +24 -12
- package/dist/esm/ic-back-to-top.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb-group.entry.js +2 -2
- package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb.entry.js +15 -6
- package/dist/esm/ic-breadcrumb.entry.js.map +1 -1
- package/dist/esm/ic-button_3.entry.js +46 -31
- package/dist/esm/ic-button_3.entry.js.map +1 -1
- package/dist/esm/ic-card.entry.js +29 -5
- package/dist/esm/ic-card.entry.js.map +1 -1
- package/dist/esm/ic-checkbox-group.entry.js +4 -4
- package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
- package/dist/esm/ic-checkbox.entry.js +16 -4
- package/dist/esm/ic-checkbox.entry.js.map +1 -1
- package/dist/esm/ic-chip.entry.js +73 -0
- package/dist/esm/ic-chip.entry.js.map +1 -0
- package/dist/esm/ic-classification-banner.entry.js +3 -3
- package/dist/esm/ic-classification-banner.entry.js.map +1 -1
- package/dist/esm/ic-data-entity.entry.js +2 -2
- package/dist/esm/ic-data-entity.entry.js.map +1 -1
- package/dist/esm/ic-data-row.entry.js +14 -12
- package/dist/esm/ic-data-row.entry.js.map +1 -1
- package/dist/esm/ic-divider.entry.js +3 -3
- package/dist/esm/ic-divider.entry.js.map +1 -1
- package/dist/esm/ic-footer-link-group.entry.js +4 -3
- package/dist/esm/ic-footer-link-group.entry.js.map +1 -1
- package/dist/esm/ic-footer-link.entry.js +12 -5
- package/dist/esm/ic-footer-link.entry.js.map +1 -1
- package/dist/esm/ic-footer.entry.js +5 -5
- package/dist/esm/ic-footer.entry.js.map +1 -1
- package/dist/esm/ic-hero.entry.js +3 -3
- package/dist/esm/ic-hero.entry.js.map +1 -1
- package/dist/esm/ic-horizontal-scroll.entry.js +160 -0
- package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -0
- package/dist/esm/ic-input-component-container_3.entry.js +78 -44
- package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
- package/dist/esm/ic-input-label_2.entry.js +3 -5
- package/dist/esm/ic-input-label_2.entry.js.map +1 -1
- package/dist/esm/ic-link.entry.js +14 -8
- package/dist/esm/ic-link.entry.js.map +1 -1
- package/dist/esm/ic-menu-group.entry.js +20 -0
- package/dist/esm/ic-menu-group.entry.js.map +1 -0
- package/dist/esm/ic-menu-item.entry.js +116 -0
- package/dist/esm/ic-menu-item.entry.js.map +1 -0
- package/dist/esm/ic-navigation-button.entry.js +5 -4
- package/dist/esm/ic-navigation-button.entry.js.map +1 -1
- package/dist/esm/ic-navigation-group.entry.js +7 -6
- package/dist/esm/ic-navigation-group.entry.js.map +1 -1
- package/dist/esm/ic-navigation-item.entry.js +19 -12
- package/dist/esm/ic-navigation-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-menu.entry.js +8 -8
- package/dist/esm/ic-navigation-menu.entry.js.map +1 -1
- package/dist/esm/ic-page-header.entry.js +5 -5
- package/dist/esm/ic-page-header.entry.js.map +1 -1
- package/dist/esm/ic-popover-menu.entry.js +232 -0
- package/dist/esm/ic-popover-menu.entry.js.map +1 -0
- package/dist/esm/ic-radio-group.entry.js +13 -5
- package/dist/esm/ic-radio-group.entry.js.map +1 -1
- package/dist/esm/ic-radio-option.entry.js +24 -6
- package/dist/esm/ic-radio-option.entry.js.map +1 -1
- package/dist/esm/ic-search-bar.entry.js +56 -42
- package/dist/esm/ic-search-bar.entry.js.map +1 -1
- package/dist/esm/ic-section-container.entry.js +2 -2
- package/dist/esm/ic-section-container.entry.js.map +1 -1
- package/dist/esm/ic-select.entry.js +218 -69
- package/dist/esm/ic-select.entry.js.map +1 -1
- package/dist/esm/ic-side-navigation.entry.js +26 -14
- package/dist/esm/ic-side-navigation.entry.js.map +1 -1
- package/dist/esm/ic-skeleton.entry.js +2 -2
- package/dist/esm/ic-skeleton.entry.js.map +1 -1
- package/dist/esm/ic-status-tag.entry.js +6 -5
- package/dist/esm/ic-status-tag.entry.js.map +1 -1
- package/dist/esm/ic-step.entry.js +103 -15
- package/dist/esm/ic-step.entry.js.map +1 -1
- package/dist/esm/ic-stepper.entry.js +166 -42
- package/dist/esm/ic-stepper.entry.js.map +1 -1
- package/dist/esm/ic-switch.entry.js +12 -3
- package/dist/esm/ic-switch.entry.js.map +1 -1
- package/dist/esm/ic-tab-context.entry.js +7 -2
- package/dist/esm/ic-tab-context.entry.js.map +1 -1
- package/dist/esm/ic-tab-group.entry.js +9 -118
- package/dist/esm/ic-tab-group.entry.js.map +1 -1
- package/dist/esm/ic-tab-panel.entry.js +2 -2
- package/dist/esm/ic-tab-panel.entry.js.map +1 -1
- package/dist/esm/ic-tab.entry.js +10 -2
- package/dist/esm/ic-tab.entry.js.map +1 -1
- package/dist/esm/ic-text-field.entry.js +5 -5
- package/dist/esm/ic-text-field.entry.js.map +1 -1
- package/dist/esm/ic-theme.entry.js +4 -4
- package/dist/esm/ic-theme.entry.js.map +1 -1
- package/dist/esm/ic-toast-region.entry.js +44 -0
- package/dist/esm/ic-toast-region.entry.js.map +1 -0
- package/dist/esm/ic-toast.entry.js +161 -0
- package/dist/esm/ic-toast.entry.js.map +1 -0
- package/dist/esm/ic-top-navigation.entry.js +15 -10
- package/dist/esm/ic-top-navigation.entry.js.map +1 -1
- package/dist/esm/ic-typography.entry.js +1 -1
- package/dist/esm/ic-typography.entry.js.map +1 -1
- package/dist/esm/{index-1500de1f.js → index-90721b3c.js} +33 -2
- package/dist/esm/index-90721b3c.js.map +1 -0
- package/dist/esm/loader.js +2 -2
- package/dist/esm/types-dd515332.js.map +1 -1
- package/dist/types/components/ic-alert/ic-alert.d.ts +14 -10
- package/dist/types/components/ic-back-to-top/ic-back-to-top.d.ts +1 -0
- package/dist/types/components/ic-breadcrumb/ic-breadcrumb.d.ts +9 -5
- package/dist/types/components/ic-breadcrumb-group/ic-breadcrumb-group.d.ts +2 -2
- package/dist/types/components/ic-button/ic-button.d.ts +11 -14
- package/dist/types/components/ic-card/ic-card.d.ts +31 -10
- package/dist/types/components/ic-checkbox/ic-checkbox.d.ts +18 -10
- package/dist/types/components/ic-checkbox-group/ic-checkbox-group.d.ts +9 -9
- package/dist/types/components/ic-chip/ic-chip.d.ts +48 -0
- package/dist/types/components/ic-chip/ic-chip.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-chip/ic-chip.types.d.ts +2 -0
- package/dist/types/components/ic-classification-banner/ic-classification-banner.d.ts +5 -5
- package/dist/types/components/ic-data-entity/ic-data-entity.d.ts +2 -2
- package/dist/types/components/ic-data-row/ic-data-row.d.ts +3 -3
- package/dist/types/components/ic-footer/ic-footer.d.ts +12 -12
- package/dist/types/components/ic-footer-link/ic-footer-link.d.ts +20 -0
- package/dist/types/components/ic-footer-link-group/ic-footer-link-group.d.ts +1 -1
- package/dist/types/components/ic-hero/ic-hero.d.ts +9 -9
- package/dist/types/components/ic-horizontal-scroll/ic-horizontal-scroll.d.ts +39 -0
- package/dist/types/components/ic-horizontal-scroll/ic-horizontal-scroll.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-input-component-container/ic-input-component-container.d.ts +8 -8
- package/dist/types/components/ic-input-container/ic-input-container.d.ts +2 -2
- package/dist/types/components/ic-input-label/ic-input-label.d.ts +8 -8
- package/dist/types/components/ic-input-validation/ic-input-validation.d.ts +5 -5
- package/dist/types/components/ic-link/ic-link.d.ts +10 -7
- package/dist/types/components/ic-loading-indicator/ic-loading-indicator.d.ts +7 -3
- package/dist/types/components/ic-menu/ic-menu.d.ts +36 -18
- package/dist/types/components/ic-menu-group/ic-menu-group.d.ts +8 -0
- package/dist/types/components/ic-menu-item/ic-menu-item.d.ts +74 -0
- package/dist/types/components/ic-menu-item/ic-menu-item.types.d.ts +1 -0
- package/dist/types/components/ic-navigation-button/ic-navigation-button.d.ts +6 -6
- package/dist/types/components/ic-navigation-group/ic-navigation-group.d.ts +3 -3
- package/dist/types/components/ic-navigation-item/ic-navigation-item.d.ts +28 -8
- package/dist/types/components/ic-navigation-menu/ic-navigation-menu.d.ts +2 -2
- package/dist/types/components/ic-page-header/ic-page-header.d.ts +10 -8
- package/dist/types/components/ic-popover-menu/ic-popover-menu.d.ts +58 -0
- package/dist/types/components/ic-popover-menu/ic-popover-menu.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-radio-group/ic-radio-group.d.ts +15 -11
- package/dist/types/components/ic-radio-option/ic-radio-option.d.ts +17 -11
- package/dist/types/components/ic-search-bar/ic-search-bar.d.ts +31 -30
- package/dist/types/components/ic-section-container/ic-section-container.d.ts +2 -2
- package/dist/types/components/ic-select/ic-select.d.ts +68 -23
- package/dist/types/components/ic-side-navigation/ic-side-navigation-test-examples.d.ts +1 -0
- package/dist/types/components/ic-side-navigation/ic-side-navigation.d.ts +13 -12
- package/dist/types/components/ic-skeleton/ic-skeleton.d.ts +2 -2
- package/dist/types/components/ic-status-tag/ic-status-tag.d.ts +5 -1
- package/dist/types/components/ic-step/ic-step.d.ts +37 -8
- package/dist/types/components/ic-step/ic-step.types.d.ts +2 -0
- package/dist/types/components/ic-stepper/ic-stepper-test-examples.d.ts +4 -0
- package/dist/types/components/ic-stepper/ic-stepper.d.ts +23 -6
- package/dist/types/components/ic-switch/ic-switch.d.ts +11 -7
- package/dist/types/components/ic-tab/ic-tab.d.ts +9 -5
- package/dist/types/components/ic-tab-context/ic-tab-context.d.ts +8 -4
- package/dist/types/components/ic-tab-group/ic-tab-group.d.ts +5 -33
- package/dist/types/components/ic-tab-panel/ic-tab-panel.d.ts +2 -2
- package/dist/types/components/ic-text-field/ic-text-field.d.ts +31 -31
- package/dist/types/components/ic-theme/ic-theme.d.ts +3 -3
- package/dist/types/components/ic-toast/ic-toast.d.ts +66 -0
- package/dist/types/components/ic-toast/ic-toast.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-toast/ic-toast.types.d.ts +1 -0
- package/dist/types/components/ic-toast-region/ic-toast-region.d.ts +12 -0
- package/dist/types/components/ic-tooltip/ic-tooltip.d.ts +4 -0
- package/dist/types/components/ic-top-navigation/ic-top-navigation.d.ts +7 -6
- package/dist/types/components/ic-typography/ic-typography.d.ts +1 -1
- package/dist/types/components.d.ts +1103 -559
- package/dist/types/interface.d.ts +0 -1
- package/dist/types/testspec.setup.d.ts +1 -0
- package/dist/types/utils/constants.d.ts +22 -0
- package/dist/types/utils/helpers.d.ts +2 -0
- package/dist/types/utils/types.d.ts +3 -0
- package/hydrate/index.js +2030 -602
- package/package.json +5 -5
- package/dist/cjs/check-icon-999d9877.js.map +0 -1
- package/dist/cjs/chevron-icon-d175fe66.js +0 -10
- package/dist/cjs/chevron-icon-d175fe66.js.map +0 -1
- package/dist/cjs/error-icon-99504103.js +0 -18
- package/dist/cjs/error-icon-99504103.js.map +0 -1
- package/dist/cjs/helpers-8bc3b6d2.js.map +0 -1
- package/dist/cjs/index-3ef30d9d.js.map +0 -1
- package/dist/cjs/success-icon-887b2097.js +0 -11
- package/dist/cjs/success-icon-887b2097.js.map +0 -1
- package/dist/collection/components/ic-alert/ic-alert.types.js +0 -2
- package/dist/collection/components/ic-alert/ic-alert.types.js.map +0 -1
- package/dist/collection/components/ic-tab-group/assets/left-arrow.svg +0 -3
- package/dist/collection/components/ic-tab-group/assets/right-arrow.svg +0 -3
- package/dist/components/error-icon.js +0 -15
- package/dist/components/error-icon.js.map +0 -1
- package/dist/components/success-icon.js +0 -9
- package/dist/components/success-icon.js.map +0 -1
- package/dist/core/p-0118400b.entry.js.map +0 -1
- package/dist/core/p-07cd789d.entry.js.map +0 -1
- package/dist/core/p-0b125f26.entry.js +0 -2
- package/dist/core/p-0b125f26.entry.js.map +0 -1
- package/dist/core/p-10da19d2.entry.js.map +0 -1
- package/dist/core/p-1337db5e.entry.js +0 -2
- package/dist/core/p-1337db5e.entry.js.map +0 -1
- package/dist/core/p-1721bcf3.entry.js +0 -2
- package/dist/core/p-1721bcf3.entry.js.map +0 -1
- package/dist/core/p-1e7b4310.js +0 -2
- package/dist/core/p-23831891.js +0 -2
- package/dist/core/p-23831891.js.map +0 -1
- package/dist/core/p-272c7abd.entry.js +0 -2
- package/dist/core/p-272c7abd.entry.js.map +0 -1
- package/dist/core/p-2f114521.entry.js +0 -2
- package/dist/core/p-2f114521.entry.js.map +0 -1
- package/dist/core/p-31a8595f.entry.js +0 -2
- package/dist/core/p-31a8595f.entry.js.map +0 -1
- package/dist/core/p-33a45ace.entry.js +0 -2
- package/dist/core/p-33a45ace.entry.js.map +0 -1
- package/dist/core/p-347ec49e.entry.js +0 -2
- package/dist/core/p-347ec49e.entry.js.map +0 -1
- package/dist/core/p-39ae284e.entry.js +0 -2
- package/dist/core/p-39ae284e.entry.js.map +0 -1
- package/dist/core/p-558552f8.entry.js +0 -2
- package/dist/core/p-558552f8.entry.js.map +0 -1
- package/dist/core/p-5e261268.entry.js +0 -2
- package/dist/core/p-5e261268.entry.js.map +0 -1
- package/dist/core/p-60ffb73e.entry.js +0 -2
- package/dist/core/p-60ffb73e.entry.js.map +0 -1
- package/dist/core/p-69650186.entry.js +0 -2
- package/dist/core/p-69650186.entry.js.map +0 -1
- package/dist/core/p-6b34d98f.entry.js +0 -2
- package/dist/core/p-6b34d98f.entry.js.map +0 -1
- package/dist/core/p-6be5e06b.entry.js.map +0 -1
- package/dist/core/p-6f6bd657.entry.js +0 -2
- package/dist/core/p-6f6bd657.entry.js.map +0 -1
- package/dist/core/p-7093d214.entry.js +0 -2
- package/dist/core/p-7093d214.entry.js.map +0 -1
- package/dist/core/p-7577c6a3.entry.js +0 -2
- package/dist/core/p-7577c6a3.entry.js.map +0 -1
- package/dist/core/p-7b11e1dc.entry.js +0 -2
- package/dist/core/p-7b11e1dc.entry.js.map +0 -1
- package/dist/core/p-7b39977f.entry.js +0 -2
- package/dist/core/p-7b39977f.entry.js.map +0 -1
- package/dist/core/p-7f632414.entry.js +0 -2
- package/dist/core/p-7f632414.entry.js.map +0 -1
- package/dist/core/p-898607d0.entry.js +0 -2
- package/dist/core/p-898607d0.entry.js.map +0 -1
- package/dist/core/p-8ddeb574.entry.js +0 -2
- package/dist/core/p-8ddeb574.entry.js.map +0 -1
- package/dist/core/p-9cd04875.entry.js +0 -2
- package/dist/core/p-9cd04875.entry.js.map +0 -1
- package/dist/core/p-ac43322e.entry.js +0 -2
- package/dist/core/p-ac43322e.entry.js.map +0 -1
- package/dist/core/p-ae6aa67f.js +0 -2
- package/dist/core/p-ae81dffa.entry.js +0 -2
- package/dist/core/p-ae81dffa.entry.js.map +0 -1
- package/dist/core/p-b3dec76d.entry.js +0 -2
- package/dist/core/p-b3dec76d.entry.js.map +0 -1
- package/dist/core/p-b5a988c0.entry.js +0 -2
- package/dist/core/p-b5a988c0.entry.js.map +0 -1
- package/dist/core/p-bf5717ca.js +0 -2
- package/dist/core/p-c4d3c18c.entry.js.map +0 -1
- package/dist/core/p-c6dd4f47.entry.js +0 -2
- package/dist/core/p-c6dd4f47.entry.js.map +0 -1
- package/dist/core/p-cadb531f.entry.js.map +0 -1
- package/dist/core/p-cc83692e.entry.js +0 -2
- package/dist/core/p-cc83692e.entry.js.map +0 -1
- package/dist/core/p-dd3c3e3c.entry.js +0 -2
- package/dist/core/p-dd3c3e3c.entry.js.map +0 -1
- package/dist/core/p-df5caf13.entry.js +0 -2
- package/dist/core/p-df5caf13.entry.js.map +0 -1
- package/dist/core/p-e106305b.entry.js +0 -2
- package/dist/core/p-e106305b.entry.js.map +0 -1
- package/dist/core/p-e28af65b.js +0 -2
- package/dist/core/p-e28af65b.js.map +0 -1
- package/dist/core/p-e590f1d2.entry.js +0 -2
- package/dist/core/p-e590f1d2.entry.js.map +0 -1
- package/dist/core/p-e93e9aa3.entry.js.map +0 -1
- package/dist/core/p-ecfb2e6b.entry.js +0 -2
- package/dist/core/p-ecfb2e6b.entry.js.map +0 -1
- package/dist/core/p-f9370be6.js.map +0 -1
- package/dist/esm/check-icon-53f1d9e5.js.map +0 -1
- package/dist/esm/chevron-icon-5b38c60a.js +0 -8
- package/dist/esm/chevron-icon-5b38c60a.js.map +0 -1
- package/dist/esm/error-icon-6046a380.js +0 -15
- package/dist/esm/error-icon-6046a380.js.map +0 -1
- package/dist/esm/helpers-3d41833c.js.map +0 -1
- package/dist/esm/index-1500de1f.js.map +0 -1
- package/dist/esm/success-icon-2f71b115.js +0 -9
- package/dist/esm/success-icon-2f71b115.js.map +0 -1
- package/dist/types/components/ic-alert/ic-alert.types.d.ts +0 -1
- /package/dist/collection/{components/ic-link/assets → assets}/OpenInNew.svg +0 -0
- /package/dist/core/{p-1e7b4310.js.map → p-06321d19.js.map} +0 -0
- /package/dist/core/{p-ae6aa67f.js.map → p-8c7f4343.js.map} +0 -0
- /package/dist/core/{p-bf5717ca.js.map → p-8d4f7027.js.map} +0 -0
@@ -1,5 +1,5 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
2
|
-
import { x as getLabelFromValue,
|
2
|
+
import { x as getLabelFromValue, w as getFilteredMenuOptions, m as inheritAttributes, d as addFormResetListener, a as onComponentRequiredPropUndefined, r as removeFormResetListener, e as renderHiddenInput, h as getInputDescribedByText, j as hasValidationStatus, y as isMobileOrTablet, n as IC_INHERITED_ARIA } from './helpers.js';
|
3
3
|
import { I as IcThemeForegroundEnum, a as IcInformationStatus } from './types.js';
|
4
4
|
import { d as defineCustomElement$a } from './ic-button2.js';
|
5
5
|
import { d as defineCustomElement$9 } from './ic-input-component-container2.js';
|
@@ -11,7 +11,7 @@ import { d as defineCustomElement$4 } from './ic-menu2.js';
|
|
11
11
|
import { d as defineCustomElement$3 } from './ic-tooltip2.js';
|
12
12
|
import { d as defineCustomElement$2 } from './ic-typography2.js';
|
13
13
|
|
14
|
-
const Expand = `<svg
|
14
|
+
const Expand = `<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
15
15
|
<path d="M7 9.5L12 14.5L17 9.5H7Z" fill="currentColor" />
|
16
16
|
</svg>
|
17
17
|
`;
|
@@ -21,7 +21,7 @@ const Clear = `<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www
|
|
21
21
|
</svg>
|
22
22
|
`;
|
23
23
|
|
24
|
-
const icSelectCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}ic-input-component-container:hover{--border-color:var(--ic-action-dark-hover)}ic-input-component-container:active{--border-color:var(--ic-action-dark-active);color:var(--ic-action-dark-active)}ic-input-component-container.menu-open{--border-color:var(--ic-architectural-400);color:var(--ic-action-dark)}ic-input-validation .status-icon,ic-input-validation .statustext{visibility:visible}ic-input-validation.menu-open .status-icon,ic-input-validation.menu-open .statustext{visibility:hidden;transition:visibility 0s}ic-input-label{margin-bottom:var(--ic-space-xs) !important}select{border:0;border-radius:var(--ic-border-radius);background-color:var(--ic-architectural-white);color:var(--ic-color-primary-text);line-height:1.5rem;letter-spacing:0.005rem;width:100%;height:100%;padding-left:
|
24
|
+
const icSelectCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{position:relative}:host(.full-width){width:100%}ic-input-component-container:hover{--border-color:var(--ic-action-dark-hover)}ic-input-component-container:active{--border-color:var(--ic-action-dark-active);color:var(--ic-action-dark-active)}ic-input-component-container.menu-open{--border-color:var(--ic-architectural-400);color:var(--ic-action-dark)}ic-input-validation .status-icon,ic-input-validation .statustext{visibility:visible}ic-input-validation.menu-open .status-icon,ic-input-validation.menu-open .statustext{visibility:hidden;transition:visibility 0s}ic-input-label{margin-bottom:var(--ic-space-xs) !important}select{border:0;border-radius:var(--ic-border-radius);background-color:var(--ic-architectural-white);color:var(--ic-color-primary-text);line-height:1.5rem;letter-spacing:0.005rem;width:100%;height:100%;padding-left:0.375rem;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-repeat:no-repeat;background-position:right 0.375rem center;background-image:url(\"data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>\")}select option,.select-option-selected{color:var(--ic-color-primary-text)}select:disabled{color:var(--ic-architectural-200);background-image:url(\"data:image/svg+xml;utf8,<svg fill='grey' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>\")}select:focus{border:0;outline:0}select:not([disabled]){cursor:pointer}.select-container{width:100%;display:flex;align-items:center;position:relative}.select-input{width:100%;height:100%;padding:0 0.375rem;display:flex;cursor:pointer;align-items:center;justify-content:space-between;background:none;border:none}.select-input:focus{outline:var(--ic-hc-focus-outline)}:host(:not(.disabled)) ic-input-component-container:hover .select-input{background-color:var(--ic-architectural-white)}.select-input[disabled]{pointer-events:none}:host(.searchable) .select-input{cursor:auto}.searchable-select-container{align-items:center;display:flex;width:100%;position:relative}.expand-icon{height:var(--ic-space-lg);padding-left:var(--ic-space-xs);color:var(--ic-action-dark)}.expand-icon>svg{display:inline-block;width:var(--ic-space-lg);height:var(--ic-space-lg)}:host(.disabled) .expand-icon,:host(.disabled) .expand-icon>svg>path{color:var(--ic-architectural-200)}:host(.searchable) .expand-icon{padding-left:var(--ic-space-xxs);height:2.25rem}:host(.searchable) .expand-icon>svg{height:2.25rem;padding:0 0.375rem}:host(.searchable:not(.disabled)) .expand-icon>svg{cursor:pointer}.expand-icon-open{color:var(--ic-action-dark)}.expand-icon-filled{color:var(--ic-action-dark)}.expand-icon-open,:host(.searchable) .expand-icon-open{transform:rotateX(180deg)}:host(.disabled) .value-text,.placeholder{color:var(--ic-color-tertiary-text)}.select-input-end{display:flex;align-items:center}.clear-button-container{display:flex;gap:var(--ic-space-xxs);padding-left:2.375rem}:host(.small) .clear-button-container{padding-left:1.875rem}.divider{width:0.063rem;background-color:var(--ic-architectural-400);margin:var(--ic-space-xxs) 0;border-radius:0.063rem;height:var(--ic-space-lg)}:host(.small) .divider{height:var(--ic-space-md)}.clear-button{position:absolute;right:2.75rem;border-radius:var(--ic-border-radius);transition:box-shadow var(--ic-easing-transition),\n border-radius var(--ic-easing-transition)}.clear-button:focus{background-color:var(--ic-focus-blue);box-shadow:inset 0 0 0 0.125rem var(--ic-focus-glow);border-radius:0.25rem}.clear-button:focus *{fill:white}.searchable-select-results-status{border:0;clip:rect(0, 0, 0, 0, 0);height:0.063rem;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:0.063rem}";
|
25
25
|
|
26
26
|
let inputIds = 0;
|
27
27
|
const Select = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
@@ -30,21 +30,36 @@ const Select = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
30
30
|
this.__registerHost();
|
31
31
|
this.__attachShadow();
|
32
32
|
this.icChange = createEvent(this, "icChange", 7);
|
33
|
+
this.icClear = createEvent(this, "icClear", 7);
|
33
34
|
this.icFocus = createEvent(this, "icFocus", 7);
|
34
35
|
this.icBlur = createEvent(this, "icBlur", 7);
|
36
|
+
this.icOptionSelect = createEvent(this, "icOptionSelect", 7);
|
37
|
+
this.icInput = createEvent(this, "icInput", 7);
|
35
38
|
this.inputId = `ic-select-input-${inputIds++}`;
|
36
39
|
this.menuId = `${this.inputId}-menu`;
|
40
|
+
this.ungroupedOptions = [];
|
37
41
|
this.inheritedAttributes = {};
|
42
|
+
this.hasSetDefaultValue = false;
|
43
|
+
this.initialRender = false;
|
44
|
+
this.initialOptionsEmpty = false;
|
45
|
+
this.emitIcChange = (value) => {
|
46
|
+
this.value = value;
|
47
|
+
clearTimeout(this.debounceIcChange);
|
48
|
+
this.debounceIcChange = window.setTimeout(() => {
|
49
|
+
this.icChange.emit({ value: value });
|
50
|
+
}, this.currDebounce);
|
51
|
+
};
|
52
|
+
this.emitImmediateIcChange = (value) => {
|
53
|
+
this.value = value;
|
54
|
+
clearTimeout(this.debounceIcChange);
|
55
|
+
this.icChange.emit({ value: value });
|
56
|
+
};
|
38
57
|
this.isMenuEnabled = () => {
|
39
|
-
return (
|
40
|
-
this.searchableSelectInputValue
|
41
|
-
this.charactersUntilSuggestions === 0) ||
|
42
|
-
(this.searchableSelectInputValue &&
|
43
|
-
this.searchableSelectInputValue.length >=
|
44
|
-
this.charactersUntilSuggestions));
|
58
|
+
return (this.searchableSelectInputValue !== null ||
|
59
|
+
this.searchableSelectInputValue !== "");
|
45
60
|
};
|
46
61
|
this.setOptionsValuesFromLabels = () => {
|
47
|
-
if (this.options.length > 0) {
|
62
|
+
if (this.options.length > 0 && this.options.map) {
|
48
63
|
this.options.map((option) => {
|
49
64
|
if (!option.value) {
|
50
65
|
option.value = option.label;
|
@@ -52,6 +67,9 @@ const Select = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
52
67
|
});
|
53
68
|
}
|
54
69
|
};
|
70
|
+
this.setUngroupedOptions = (event) => {
|
71
|
+
this.ungroupedOptions = event.detail.options;
|
72
|
+
};
|
55
73
|
this.setTextColor = () => {
|
56
74
|
if (this.nativeSelectElement.selectedIndex === 0) {
|
57
75
|
this.nativeSelectElement.className = "placeholder";
|
@@ -75,13 +93,19 @@ const Select = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
75
93
|
};
|
76
94
|
this.getFilteredChildMenuOptions = (option) => {
|
77
95
|
let children = option.children;
|
78
|
-
|
96
|
+
if (this.searchable) {
|
97
|
+
children = getFilteredMenuOptions(option.children, this.includeDescriptionsInSearch, this.searchableSelectInputValue, this.searchMatchPosition);
|
98
|
+
}
|
99
|
+
else {
|
100
|
+
children = getFilteredMenuOptions(option.children, false, this.pressedCharacters, "start");
|
101
|
+
}
|
79
102
|
const newOption = Object.assign({}, option);
|
80
103
|
newOption.children = children;
|
81
104
|
return newOption;
|
82
105
|
};
|
83
106
|
this.handleNativeSelectChange = () => {
|
84
|
-
this.
|
107
|
+
this.icOptionSelect.emit({ value: this.nativeSelectElement.value });
|
108
|
+
this.emitImmediateIcChange(this.nativeSelectElement.value);
|
85
109
|
this.setTextColor();
|
86
110
|
};
|
87
111
|
this.handleCustomSelectChange = (event) => {
|
@@ -93,12 +117,20 @@ const Select = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
93
117
|
this.searchableSelectInputValue = this.getLabelFromValue(event.detail.value);
|
94
118
|
}
|
95
119
|
this.ariaActiveDescendant = event.detail.optionId;
|
96
|
-
this.
|
120
|
+
this.icOptionSelect.emit({ value: event.detail.value });
|
121
|
+
this.emitIcChange(event.detail.value);
|
97
122
|
};
|
98
123
|
this.handleMenuChange = (event) => {
|
99
124
|
this.open = event.detail.open;
|
125
|
+
this.pressedCharacters = "";
|
100
126
|
this.searchable && this.handleFocusIndicatorDisplay();
|
101
127
|
};
|
128
|
+
// clears the debounce delay when navigating the menu with arrow keys etc
|
129
|
+
// to prevent delay in change event, which should only occur when typing in input
|
130
|
+
this.handleMenuKeyPress = (ev) => {
|
131
|
+
ev.cancelBubble = true;
|
132
|
+
this.handleCharacterKeyDown(ev.detail.key);
|
133
|
+
};
|
102
134
|
this.handleFocusIndicatorDisplay = () => {
|
103
135
|
const focusIndicator = this.host.shadowRoot.querySelector(".focus-indicator");
|
104
136
|
if (this.open) {
|
@@ -113,9 +145,15 @@ const Select = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
113
145
|
event.preventDefault();
|
114
146
|
}
|
115
147
|
};
|
148
|
+
this.isExternalFiltering = () => this.searchable && this.disableFilter;
|
116
149
|
this.handleClick = (event) => {
|
117
|
-
this.
|
118
|
-
|
150
|
+
if (this.isExternalFiltering()) {
|
151
|
+
this.menu.options = this.filteredOptions;
|
152
|
+
}
|
153
|
+
else {
|
154
|
+
this.noOptions = null;
|
155
|
+
this.menu.options = this.options;
|
156
|
+
}
|
119
157
|
if (event.detail !== 0 && this.isMenuEnabled()) {
|
120
158
|
this.menu.handleClickOpen();
|
121
159
|
}
|
@@ -130,7 +168,8 @@ const Select = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
130
168
|
this.handleClear = (event) => {
|
131
169
|
event.stopPropagation();
|
132
170
|
this.noOptions = null;
|
133
|
-
this.
|
171
|
+
this.emitImmediateIcChange(null);
|
172
|
+
this.icClear.emit();
|
134
173
|
if (this.searchable) {
|
135
174
|
this.searchableSelectElement.value = null;
|
136
175
|
this.searchableSelectInputValue = null;
|
@@ -144,20 +183,49 @@ const Select = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
144
183
|
this.customSelectElement.focus();
|
145
184
|
}
|
146
185
|
};
|
186
|
+
this.handleCharacterKeyDown = (key) => {
|
187
|
+
// Only close menu when space is pressed if not being used alongside character keys to quickly select options
|
188
|
+
if (this.open && key === " " && this.pressedCharacters.length === 0) {
|
189
|
+
this.setMenuChange(false);
|
190
|
+
}
|
191
|
+
if (key.length === 1 && !this.searchable) {
|
192
|
+
window.clearTimeout(this.characterKeyPressTimer);
|
193
|
+
this.characterKeyPressTimer = window.setTimeout(() => (this.pressedCharacters = ""), 1000);
|
194
|
+
this.pressedCharacters += key;
|
195
|
+
this.handleFilter();
|
196
|
+
if (!this.noOptions) {
|
197
|
+
this.emitImmediateIcChange(this.filteredOptions[0].value);
|
198
|
+
}
|
199
|
+
}
|
200
|
+
else {
|
201
|
+
this.pressedCharacters = "";
|
202
|
+
}
|
203
|
+
};
|
204
|
+
this.handleNativeSelectKeyDown = (event) => {
|
205
|
+
event.cancelBubble = true;
|
206
|
+
this.handleCharacterKeyDown(event.key);
|
207
|
+
};
|
147
208
|
this.handleKeyDown = (event) => {
|
148
209
|
event.cancelBubble = true;
|
210
|
+
const isArrowKey = event.key === "ArrowDown" || event.key === "ArrowUp";
|
149
211
|
if (!this.open) {
|
150
|
-
this.
|
151
|
-
|
212
|
+
if (this.isExternalFiltering() && (event.key === "Enter" || isArrowKey)) {
|
213
|
+
this.menu.options = this.filteredOptions;
|
214
|
+
}
|
215
|
+
else {
|
216
|
+
this.noOptions = null;
|
217
|
+
this.menu.options = this.options;
|
218
|
+
}
|
152
219
|
}
|
153
220
|
if (this.open && event.key === "Enter") {
|
154
221
|
this.setMenuChange(false);
|
155
222
|
}
|
156
223
|
else {
|
157
|
-
if (!(
|
158
|
-
this.
|
159
|
-
|
160
|
-
|
224
|
+
if (!(isArrowKey && this.noOptions !== null) && this.isMenuEnabled()) {
|
225
|
+
if (!(event.key === " " && this.pressedCharacters.length > 0)) {
|
226
|
+
this.menu.handleKeyboardOpen(event);
|
227
|
+
}
|
228
|
+
this.handleCharacterKeyDown(event.key);
|
161
229
|
}
|
162
230
|
}
|
163
231
|
};
|
@@ -167,25 +235,21 @@ const Select = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
167
235
|
this.handleClearButtonBlur = () => {
|
168
236
|
this.clearButtonFocused = false;
|
169
237
|
};
|
170
|
-
this.
|
171
|
-
this.
|
172
|
-
if (this.getValueFromLabel(this.searchableSelectInputValue) === undefined) {
|
173
|
-
this.icChange.emit({ value: null });
|
174
|
-
}
|
175
|
-
if (this.isMenuEnabled()) {
|
176
|
-
this.setMenuChange(true);
|
177
|
-
}
|
178
|
-
else {
|
179
|
-
this.setMenuChange(false);
|
180
|
-
}
|
181
|
-
const options = [...this.options];
|
238
|
+
this.handleFilter = () => {
|
239
|
+
const options = this.searchable ? [...this.options] : this.ungroupedOptions;
|
182
240
|
let isGrouped = false;
|
183
241
|
let newFilteredOptions = [];
|
184
242
|
options.map((option) => {
|
185
243
|
if (option.children)
|
186
244
|
isGrouped = true;
|
187
245
|
});
|
188
|
-
|
246
|
+
let menuOptionsFiltered;
|
247
|
+
if (this.searchable) {
|
248
|
+
menuOptionsFiltered = getFilteredMenuOptions(options, this.includeDescriptionsInSearch, this.searchableSelectInputValue, this.searchMatchPosition);
|
249
|
+
}
|
250
|
+
else {
|
251
|
+
menuOptionsFiltered = getFilteredMenuOptions(options, false, this.pressedCharacters, "start");
|
252
|
+
}
|
189
253
|
if (!isGrouped) {
|
190
254
|
newFilteredOptions = menuOptionsFiltered;
|
191
255
|
}
|
@@ -222,24 +286,48 @@ const Select = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
222
286
|
this.noOptions = noOptions;
|
223
287
|
this.filteredOptions = this.noOptions;
|
224
288
|
}
|
225
|
-
this.debounceAriaLiveUpdate();
|
226
289
|
};
|
227
|
-
this.
|
228
|
-
|
229
|
-
|
230
|
-
|
290
|
+
this.handleSearchableSelectInput = (event) => {
|
291
|
+
this.searchableSelectInputValue = event.target.value;
|
292
|
+
this.icInput.emit({ value: this.searchableSelectInputValue });
|
293
|
+
if (this.disableFilter) {
|
294
|
+
this.emitIcChange(this.searchableSelectInputValue);
|
295
|
+
}
|
296
|
+
else if (this.getValueFromLabel(this.searchableSelectInputValue) === undefined) {
|
297
|
+
this.emitIcChange(null);
|
298
|
+
}
|
299
|
+
if (this.isMenuEnabled()) {
|
300
|
+
this.setMenuChange(true);
|
231
301
|
}
|
232
302
|
else {
|
233
|
-
|
303
|
+
this.setMenuChange(false);
|
304
|
+
}
|
305
|
+
if (!this.disableFilter) {
|
306
|
+
this.handleFilter();
|
307
|
+
this.debounceAriaLiveUpdate();
|
308
|
+
}
|
309
|
+
};
|
310
|
+
this.updateSearchableSelectResultAriaLive = () => {
|
311
|
+
const searchableSelectResultsStatusEl = this.host.shadowRoot.querySelector(".searchable-select-results-status");
|
312
|
+
if (searchableSelectResultsStatusEl) {
|
313
|
+
if (this.noOptions !== null) {
|
314
|
+
searchableSelectResultsStatusEl.innerText = this.emptyOptionListText;
|
315
|
+
}
|
316
|
+
else {
|
317
|
+
searchableSelectResultsStatusEl.innerText = "";
|
318
|
+
}
|
234
319
|
}
|
235
320
|
};
|
321
|
+
this.getDefaultValue = (value) => this.getLabelFromValue(value) || value || null;
|
236
322
|
this.onFocus = () => {
|
237
323
|
this.icFocus.emit();
|
238
324
|
};
|
239
325
|
this.onBlur = (event) => {
|
240
|
-
|
326
|
+
const isSearchableAndNoFocusedInternalElements = this.searchable &&
|
241
327
|
event.relatedTarget !== this.menu &&
|
242
|
-
!(this.
|
328
|
+
!Array.from(this.menu.querySelectorAll("[role='option']")).includes(event.relatedTarget) &&
|
329
|
+
!(this.clearButton && event.relatedTarget === this.clearButton);
|
330
|
+
if (isSearchableAndNoFocusedInternalElements) {
|
243
331
|
this.setMenuChange(false);
|
244
332
|
this.handleFocusIndicatorDisplay();
|
245
333
|
}
|
@@ -248,7 +336,7 @@ const Select = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
248
336
|
this.handleFormReset = () => {
|
249
337
|
this.value = this.initialValue;
|
250
338
|
if (this.searchable) {
|
251
|
-
this.searchableSelectInputValue =
|
339
|
+
this.searchableSelectInputValue = this.getDefaultValue(this.value);
|
252
340
|
}
|
253
341
|
};
|
254
342
|
this.label = undefined;
|
@@ -264,6 +352,7 @@ const Select = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
264
352
|
this.validationStatus = "";
|
265
353
|
this.validationText = "";
|
266
354
|
this.value = undefined;
|
355
|
+
this.debounce = 0;
|
267
356
|
this.name = this.inputId;
|
268
357
|
this.showClearButton = false;
|
269
358
|
this.searchable = false;
|
@@ -272,6 +361,7 @@ const Select = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
272
361
|
this.searchMatchPosition = "anywhere";
|
273
362
|
this.charactersUntilSuggestions = 0;
|
274
363
|
this.emptyOptionListText = "No results found";
|
364
|
+
this.disableFilter = false;
|
275
365
|
this.open = false;
|
276
366
|
this.clearButtonFocused = false;
|
277
367
|
this.searchableSelectInputValue = null;
|
@@ -279,10 +369,45 @@ const Select = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
279
369
|
this.ariaActiveDescendant = undefined;
|
280
370
|
this.noOptions = null;
|
281
371
|
this.initialValue = this.value;
|
372
|
+
this.currDebounce = this.debounce;
|
373
|
+
this.currValue = this.value;
|
374
|
+
this.debounceIcChange = undefined;
|
375
|
+
this.pressedCharacters = "";
|
282
376
|
}
|
283
377
|
watchOptionsHandler() {
|
284
|
-
this.
|
285
|
-
|
378
|
+
if (this.isExternalFiltering()) {
|
379
|
+
if (this.options.length > 0) {
|
380
|
+
this.setOptionsValuesFromLabels();
|
381
|
+
this.noOptions = null;
|
382
|
+
this.filteredOptions = this.options;
|
383
|
+
}
|
384
|
+
else if (this.isMenuEnabled()) {
|
385
|
+
this.noOptions = [{ label: this.emptyOptionListText, value: "" }];
|
386
|
+
this.filteredOptions = this.noOptions;
|
387
|
+
// Will prevent 'No results found' displaying on initial load and setting default value
|
388
|
+
if (!this.initialRender) {
|
389
|
+
this.setMenuChange(true);
|
390
|
+
}
|
391
|
+
}
|
392
|
+
this.updateSearchableSelectResultAriaLive();
|
393
|
+
this.setDefaultValue();
|
394
|
+
}
|
395
|
+
else {
|
396
|
+
this.setOptionsValuesFromLabels();
|
397
|
+
this.filteredOptions = this.options;
|
398
|
+
if (this.initialOptionsEmpty) {
|
399
|
+
this.setDefaultValue();
|
400
|
+
this.initialOptionsEmpty = false;
|
401
|
+
}
|
402
|
+
}
|
403
|
+
}
|
404
|
+
debounceChangedHandler(newValue) {
|
405
|
+
this.updateOnChangeDebounce(newValue);
|
406
|
+
}
|
407
|
+
valueChangedHandler() {
|
408
|
+
if (this.value !== this.currValue) {
|
409
|
+
this.currValue = this.value;
|
410
|
+
}
|
286
411
|
}
|
287
412
|
/**
|
288
413
|
* Sets focus on the input box.
|
@@ -298,12 +423,24 @@ const Select = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
298
423
|
this.searchableSelectElement.focus();
|
299
424
|
}
|
300
425
|
}
|
426
|
+
updateOnChangeDebounce(newValue) {
|
427
|
+
if (this.currDebounce !== newValue) {
|
428
|
+
this.currDebounce = newValue;
|
429
|
+
}
|
430
|
+
}
|
301
431
|
debounceAriaLiveUpdate() {
|
302
|
-
clearTimeout(this.
|
432
|
+
clearTimeout(this.debounceAria);
|
303
433
|
window.setTimeout(() => {
|
304
434
|
this.updateSearchableSelectResultAriaLive();
|
305
435
|
}, 800);
|
306
436
|
}
|
437
|
+
setDefaultValue() {
|
438
|
+
if (!this.hasSetDefaultValue && this.currValue) {
|
439
|
+
this.searchableSelectInputValue = this.getDefaultValue(this.currValue);
|
440
|
+
this.initialValue = this.currValue;
|
441
|
+
this.hasSetDefaultValue = true;
|
442
|
+
}
|
443
|
+
}
|
307
444
|
componentWillLoad() {
|
308
445
|
this.inheritedAttributes = inheritAttributes(this.host, [
|
309
446
|
...IC_INHERITED_ARIA,
|
@@ -312,12 +449,22 @@ const Select = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
312
449
|
]);
|
313
450
|
this.setOptionsValuesFromLabels();
|
314
451
|
addFormResetListener(this.host, this.handleFormReset);
|
452
|
+
this.initialRender = true;
|
453
|
+
if (!this.options.length) {
|
454
|
+
this.initialOptionsEmpty = true;
|
455
|
+
}
|
456
|
+
else if (!this.disableFilter) {
|
457
|
+
this.setDefaultValue();
|
458
|
+
}
|
315
459
|
}
|
316
460
|
componentDidRender() {
|
317
461
|
if (this.nativeSelectElement && !this.disabled) {
|
318
462
|
this.setTextColor();
|
319
463
|
}
|
320
464
|
}
|
465
|
+
componentWillUpdate() {
|
466
|
+
this.initialRender = false;
|
467
|
+
}
|
321
468
|
componentDidLoad() {
|
322
469
|
onComponentRequiredPropUndefined([{ prop: this.label, propName: "label" }], "Select");
|
323
470
|
}
|
@@ -325,53 +472,55 @@ const Select = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
325
472
|
removeFormResetListener(this.host, this.handleFormReset);
|
326
473
|
}
|
327
474
|
render() {
|
328
|
-
const { small, disabled, fullWidth, helperText, hideLabel, label, menuId, name, options, placeholder, readonly, required, searchable, showClearButton, validationStatus, validationText,
|
329
|
-
renderHiddenInput(true, this.host, name,
|
475
|
+
const { small, disabled, fullWidth, helperText, hideLabel, label, menuId, name, options, placeholder, readonly, required, searchable, showClearButton, validationStatus, validationText, currValue, } = this;
|
476
|
+
renderHiddenInput(true, this.host, name, currValue, disabled);
|
330
477
|
const invalid = validationStatus === IcInformationStatus.Error ? "true" : "false";
|
331
478
|
const describedBy = getInputDescribedByText(this.inputId, helperText !== "", hasValidationStatus(this.validationStatus, this.disabled)).trim();
|
332
|
-
return (h(Host,
|
479
|
+
return (h(Host, { class: {
|
480
|
+
disabled: disabled,
|
481
|
+
searchable: searchable,
|
482
|
+
small: small,
|
483
|
+
"full-width": fullWidth,
|
484
|
+
} }, h("ic-input-container", { readonly: readonly }, !hideLabel && (h("ic-input-label", { for: this.inputId, label: label, helperText: helperText, required: required, disabled: disabled, readonly: readonly })), h("ic-input-component-container", { ref: (el) => (this.anchorEl = el), class: { "menu-open": this.open }, small: small, fullWidth: fullWidth, disabled: disabled, readonly: readonly, validationStatus: validationStatus }, readonly ? (h("ic-typography", null, h("p", null, this.getLabelFromValue(currValue)))) : isMobileOrTablet() ? (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 }, this.inheritedAttributes), h("option", { value: "", selected: true, disabled: !showClearButton }, placeholder), options.map((option) => {
|
333
485
|
if (option.children) {
|
334
|
-
return (h("optgroup", { label: option.label }, option.children.map((option) => (h("option", { value: option.value, disabled: option.disabled, selected: option.value ===
|
486
|
+
return (h("optgroup", { label: option.label }, option.children.map((option) => (h("option", { value: option.value, disabled: option.disabled, selected: option.value === currValue }, option.label)))));
|
335
487
|
}
|
336
488
|
else {
|
337
|
-
return (h("option", { value: option.value, disabled: option.disabled, selected: option.value ===
|
489
|
+
return (h("option", { value: option.value, disabled: option.disabled, selected: option.value === currValue }, option.label));
|
338
490
|
}
|
339
491
|
}))) : searchable ? (h("div", { class: "searchable-select-container" }, h("input", { class: "select-input", role: "combobox", "aria-label": label, "aria-describedby": describedBy, "aria-activedescendant": this.ariaActiveDescendant, "aria-autocomplete": "list", "aria-expanded": this.open ? "true" : "false", "aria-invalid": invalid, "aria-required": required ? "true" : "false", "aria-controls": menuId, ref: (el) => (this.searchableSelectElement = el), id: this.inputId, value: this.searchableSelectInputValue, placeholder: placeholder, disabled: disabled, onInput: this.handleSearchableSelectInput, onClick: this.handleClick, onKeyDown: this.handleKeyDown, onFocus: this.onFocus, onBlur: this.onBlur }), this.searchableSelectInputValue &&
|
340
|
-
(showClearButton || searchable) && (h("div", { class: "clear-button-container" }, h("ic-button", { id: "clear-button", ref: (el) => (this.clearButton = el), "aria-label": this.searchableSelectInputValue &&
|
492
|
+
(showClearButton || searchable) && (h("div", { class: "clear-button-container" }, h("ic-button", { id: "clear-button", ref: (el) => (this.clearButton = el), "aria-label": this.searchableSelectInputValue && currValue === null
|
341
493
|
? "Clear input"
|
342
494
|
: "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onFocus: this.handleClearButtonFocus, onBlur: this.handleClearButtonBlur, size: small ? "small" : "default", variant: "icon", appearance: this.clearButtonFocused
|
343
495
|
? IcThemeForegroundEnum.Light
|
344
496
|
: IcThemeForegroundEnum.Dark }), h("div", { class: "divider" }))), h("span", { onMouseDown: this.handleExpandIconMouseDown, class: {
|
345
497
|
"expand-icon": true,
|
346
498
|
"expand-icon-open": this.open,
|
347
|
-
"expand-icon-filled": !(
|
348
|
-
|
349
|
-
}, 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}, ${this.getLabelFromValue(value) || 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: {
|
499
|
+
"expand-icon-filled": !(currValue == null || currValue === ""),
|
500
|
+
}, 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}, ${this.getLabelFromValue(currValue) || 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: {
|
350
501
|
"value-text": true,
|
351
|
-
placeholder: this.getLabelFromValue(
|
352
|
-
} }, h("p", null, this.getLabelFromValue(
|
502
|
+
placeholder: this.getLabelFromValue(currValue) === undefined,
|
503
|
+
} }, h("p", null, this.getLabelFromValue(currValue) || placeholder)), h("div", { class: "select-input-end" }, currValue && showClearButton && (h("div", { class: "divider" })), h("span", { class: {
|
353
504
|
"expand-icon": true,
|
354
505
|
"expand-icon-open": this.open,
|
355
|
-
"expand-icon-filled": !(
|
356
|
-
}, innerHTML: Expand, "aria-hidden": "true" }))),
|
506
|
+
"expand-icon-filled": !(currValue == null || currValue === ""),
|
507
|
+
}, 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: small ? "small" : "default", variant: "icon", appearance: this.clearButtonFocused
|
357
508
|
? IcThemeForegroundEnum.Light
|
358
509
|
: IcThemeForegroundEnum.Dark }))))), !isMobileOrTablet() && (h("ic-menu", { class: {
|
359
|
-
"no-results": this.noOptions !== null,
|
510
|
+
"no-results": this.noOptions !== null && this.searchable,
|
360
511
|
}, ref: (el) => (this.menu = el), inputEl: searchable
|
361
512
|
? this.searchableSelectElement
|
362
|
-
: this.customSelectElement, inputLabel: label, anchorEl: this.anchorEl, small: small, menuId: menuId, open: this.open, options: searchable ? this.filteredOptions : options, value:
|
363
|
-
false
|
364
|
-
? ""
|
365
|
-
: validationStatus, message: hasValidationStatus(this.validationStatus, this.disabled)
|
366
|
-
? validationText
|
367
|
-
: "", for: this.inputId }))));
|
513
|
+
: this.customSelectElement, inputLabel: label, anchorEl: this.anchorEl, small: small, menuId: menuId, open: this.open, options: searchable ? this.filteredOptions : options, value: currValue, fullWidth: fullWidth, onMenuStateChange: this.handleMenuChange, onMenuOptionSelect: this.handleCustomSelectChange, onMenuKeyPress: this.handleMenuKeyPress, onUngroupedOptionsSet: this.setUngroupedOptions, parentEl: this.host })), hasValidationStatus(this.validationStatus, this.disabled) && (h("ic-input-validation", { class: { "menu-open": this.open }, ariaLiveMode: "polite", status: validationStatus, message: validationText, for: this.inputId })))));
|
368
514
|
}
|
515
|
+
static get delegatesFocus() { return true; }
|
369
516
|
get host() { return this; }
|
370
517
|
static get watchers() { return {
|
371
|
-
"options": ["watchOptionsHandler"]
|
518
|
+
"options": ["watchOptionsHandler"],
|
519
|
+
"debounce": ["debounceChangedHandler"],
|
520
|
+
"value": ["valueChangedHandler"]
|
372
521
|
}; }
|
373
522
|
static get style() { return icSelectCss; }
|
374
|
-
}, [
|
523
|
+
}, [17, "ic-select", {
|
375
524
|
"label": [1],
|
376
525
|
"options": [16],
|
377
526
|
"required": [4],
|
@@ -385,6 +534,7 @@ const Select = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
385
534
|
"validationStatus": [1, "validation-status"],
|
386
535
|
"validationText": [1, "validation-text"],
|
387
536
|
"value": [1025],
|
537
|
+
"debounce": [2],
|
388
538
|
"name": [1],
|
389
539
|
"showClearButton": [4, "show-clear-button"],
|
390
540
|
"searchable": [4],
|
@@ -393,6 +543,7 @@ const Select = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
393
543
|
"searchMatchPosition": [1, "search-match-position"],
|
394
544
|
"charactersUntilSuggestions": [2, "characters-until-suggestions"],
|
395
545
|
"emptyOptionListText": [1, "empty-option-list-text"],
|
546
|
+
"disableFilter": [4, "disable-filter"],
|
396
547
|
"open": [32],
|
397
548
|
"clearButtonFocused": [32],
|
398
549
|
"searchableSelectInputValue": [32],
|
@@ -400,6 +551,10 @@ const Select = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
400
551
|
"ariaActiveDescendant": [32],
|
401
552
|
"noOptions": [32],
|
402
553
|
"initialValue": [32],
|
554
|
+
"currDebounce": [32],
|
555
|
+
"currValue": [32],
|
556
|
+
"debounceIcChange": [32],
|
557
|
+
"pressedCharacters": [32],
|
403
558
|
"setFocus": [64]
|
404
559
|
}]);
|
405
560
|
function defineCustomElement$1() {
|