@ukic/web-components 3.1.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 +28 -0
- package/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/{helpers-a0a128bd.js → helpers-789082d4.js} +16 -37
- package/dist/cjs/helpers-789082d4.js.map +1 -0
- package/dist/cjs/ic-accordion-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-accordion-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-accordion.cjs.entry.js +1 -1
- package/dist/cjs/ic-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-alert.cjs.entry.js +63 -36
- package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-back-to-top.cjs.entry.js +4 -4
- package/dist/cjs/ic-badge.cjs.entry.js +40 -16
- package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +3 -3
- package/dist/cjs/ic-breadcrumb.cjs.entry.js +3 -3
- package/dist/cjs/ic-button_3.cjs.entry.js +32 -7
- package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-card-vertical.cjs.entry.js +6 -6
- package/dist/cjs/ic-card-vertical.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +4 -4
- package/dist/cjs/ic-checkbox.cjs.entry.js +6 -6
- package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-chip.cjs.entry.js +4 -4
- package/dist/cjs/ic-classification-banner.cjs.entry.js +2 -2
- package/dist/cjs/ic-data-list.cjs.entry.js +2 -2
- package/dist/cjs/ic-data-row.cjs.entry.js +3 -3
- package/dist/cjs/ic-dialog.cjs.entry.js +3 -3
- package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-divider.cjs.entry.js +2 -2
- package/dist/cjs/ic-divider.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-empty-state.cjs.entry.js +3 -3
- package/dist/cjs/ic-footer-link-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-footer-link-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer-link.cjs.entry.js +3 -3
- package/dist/cjs/ic-footer.cjs.entry.js +4 -4
- package/dist/cjs/ic-hero.cjs.entry.js +5 -5
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +6 -6
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js +9 -9
- package/dist/cjs/ic-input-label_2.cjs.entry.js +8 -8
- package/dist/cjs/ic-link.cjs.entry.js +2 -2
- package/dist/cjs/ic-menu-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/ic-menu-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-button.cjs.entry.js +3 -3
- package/dist/cjs/ic-navigation-group.cjs.entry.js +3 -3
- package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js +12 -7
- package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-menu.cjs.entry.js +5 -5
- package/dist/cjs/ic-page-header.cjs.entry.js +7 -7
- package/dist/cjs/ic-pagination-item.cjs.entry.js +2 -2
- package/dist/cjs/ic-pagination.cjs.entry.js +5 -5
- package/dist/cjs/ic-popover-menu.cjs.entry.js +5 -5
- package/dist/cjs/ic-radio-group.cjs.entry.js +5 -5
- package/dist/cjs/ic-radio-option.cjs.entry.js +6 -6
- package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-search-bar.cjs.entry.js +10 -10
- package/dist/cjs/ic-section-container.cjs.entry.js +2 -2
- package/dist/cjs/ic-select.cjs.entry.js +46 -49
- package/dist/cjs/ic-select.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-side-navigation.cjs.entry.js +5 -5
- package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/ic-skip-link.cjs.entry.js +10 -3
- package/dist/cjs/ic-skip-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-status-tag.cjs.entry.js +3 -3
- package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-step.cjs.entry.js +15 -15
- package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-stepper.cjs.entry.js +3 -3
- package/dist/cjs/ic-switch.cjs.entry.js +5 -5
- package/dist/cjs/ic-tab-context.cjs.entry.js +1 -1
- package/dist/cjs/ic-tab-group.cjs.entry.js +3 -3
- package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/ic-tab.cjs.entry.js +3 -3
- package/dist/cjs/ic-text-field.cjs.entry.js +7 -7
- package/dist/cjs/ic-theme.cjs.entry.js +4 -2
- package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toast-region.cjs.entry.js +1 -1
- package/dist/cjs/ic-toast.cjs.entry.js +4 -4
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js +3 -3
- package/dist/cjs/ic-toggle-button.cjs.entry.js +4 -4
- package/dist/cjs/ic-toggle-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-top-navigation.cjs.entry.js +5 -5
- package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-typography.cjs.entry.js +4 -4
- package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ic-accordion/ic-accordion.css +3 -0
- package/dist/collection/components/ic-accordion-group/ic-accordion-group.css +1 -0
- package/dist/collection/components/ic-alert/ic-alert.css +3 -1
- package/dist/collection/components/ic-alert/ic-alert.js +85 -50
- package/dist/collection/components/ic-alert/ic-alert.js.map +1 -1
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.js +3 -3
- package/dist/collection/components/ic-badge/ic-badge.js +39 -15
- package/dist/collection/components/ic-badge/ic-badge.js.map +1 -1
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js +2 -2
- package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js +2 -2
- package/dist/collection/components/ic-button/ic-button.css +18 -5
- package/dist/collection/components/ic-button/ic-button.stories.js +29 -52
- package/dist/collection/components/ic-card-vertical/ic-card-vertical.css +20 -4
- package/dist/collection/components/ic-card-vertical/ic-card-vertical.js +4 -4
- package/dist/collection/components/ic-checkbox/ic-checkbox.css +3 -1
- package/dist/collection/components/ic-checkbox/ic-checkbox.js +4 -4
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +3 -3
- package/dist/collection/components/ic-chip/ic-chip.js +3 -3
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.js +2 -2
- package/dist/collection/components/ic-data-list/ic-data-list.js +2 -2
- package/dist/collection/components/ic-data-row/ic-data-row.js +2 -2
- package/dist/collection/components/ic-dialog/ic-dialog.css +2 -1
- package/dist/collection/components/ic-dialog/ic-dialog.js +1 -1
- package/dist/collection/components/ic-divider/ic-divider.css +7 -4
- package/dist/collection/components/ic-empty-state/ic-empty-state.js +2 -2
- package/dist/collection/components/ic-footer/ic-footer.js +3 -3
- package/dist/collection/components/ic-footer-link/ic-footer-link.js +2 -2
- package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.css +0 -3
- package/dist/collection/components/ic-hero/ic-hero.js +4 -4
- package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js +5 -5
- package/dist/collection/components/ic-input-component-container/ic-input-component-container.js +3 -3
- package/dist/collection/components/ic-input-container/ic-input-container.js +2 -2
- package/dist/collection/components/ic-input-label/ic-input-label.js +4 -4
- package/dist/collection/components/ic-input-validation/ic-input-validation.js +3 -3
- package/dist/collection/components/ic-link/ic-link.js +1 -1
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js +3 -3
- package/dist/collection/components/ic-menu/ic-menu.js +3 -3
- package/dist/collection/components/ic-menu-group/ic-menu-group.js +1 -1
- package/dist/collection/components/ic-menu-item/ic-menu-item.css +2 -0
- package/dist/collection/components/ic-navigation-button/ic-navigation-button.js +2 -2
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.css +0 -4
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.js +1 -1
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.css +20 -1
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.js +11 -6
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.js.map +1 -1
- package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js +4 -4
- package/dist/collection/components/ic-page-header/ic-page-header.js +6 -6
- package/dist/collection/components/ic-pagination/ic-pagination.js +4 -4
- package/dist/collection/components/ic-pagination-item/ic-pagination-item.js +1 -1
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.js +4 -4
- package/dist/collection/components/ic-radio-group/ic-radio-group.js +4 -4
- package/dist/collection/components/ic-radio-option/ic-radio-option.css +2 -1
- package/dist/collection/components/ic-radio-option/ic-radio-option.js +4 -4
- package/dist/collection/components/ic-search-bar/ic-search-bar.js +9 -9
- package/dist/collection/components/ic-section-container/ic-section-container.js +2 -2
- package/dist/collection/components/ic-select/ic-select.js +45 -48
- package/dist/collection/components/ic-select/ic-select.js.map +1 -1
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.css +2 -1
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +4 -4
- package/dist/collection/components/ic-skeleton/ic-skeleton.js +2 -2
- package/dist/collection/components/ic-skip-link/ic-skip-link.js +31 -3
- package/dist/collection/components/ic-skip-link/ic-skip-link.js.map +1 -1
- package/dist/collection/components/ic-status-tag/ic-status-tag.css +6 -0
- package/dist/collection/components/ic-status-tag/ic-status-tag.js +2 -2
- package/dist/collection/components/ic-step/ic-step.css +0 -3
- package/dist/collection/components/ic-step/ic-step.js +13 -13
- package/dist/collection/components/ic-stepper/ic-stepper.js +2 -2
- package/dist/collection/components/ic-switch/ic-switch.js +4 -4
- package/dist/collection/components/ic-tab/ic-tab.js +2 -2
- package/dist/collection/components/ic-tab-context/ic-tab-context.js +1 -1
- package/dist/collection/components/ic-tab-group/ic-tab-group.js +2 -2
- package/dist/collection/components/ic-tab-panel/ic-tab-panel.js +2 -2
- package/dist/collection/components/ic-text-field/ic-text-field.js +6 -6
- package/dist/collection/components/ic-theme/ic-theme.js +31 -3
- package/dist/collection/components/ic-theme/ic-theme.js.map +1 -1
- package/dist/collection/components/ic-toast/ic-toast.js +3 -3
- package/dist/collection/components/ic-toast-region/ic-toast-region.js +1 -1
- package/dist/collection/components/ic-toggle-button/ic-toggle-button.css +6 -8
- package/dist/collection/components/ic-toggle-button/ic-toggle-button.js +2 -2
- package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.js +2 -2
- package/dist/collection/components/ic-tooltip/ic-tooltip.js +32 -2
- package/dist/collection/components/ic-tooltip/ic-tooltip.js.map +1 -1
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.css +3 -1
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.js +4 -4
- package/dist/collection/components/ic-typography/ic-typography.css +2 -2
- package/dist/collection/components/ic-typography/ic-typography.js +2 -2
- package/dist/collection/utils/helpers.js +15 -36
- package/dist/collection/utils/helpers.js.map +1 -1
- package/dist/collection/utils/types.js.map +1 -1
- package/dist/components/helpers.js +16 -37
- package/dist/components/helpers.js.map +1 -1
- package/dist/components/ic-accordion-group.js.map +1 -1
- package/dist/components/ic-accordion.js.map +1 -1
- package/dist/components/ic-alert.js +66 -37
- package/dist/components/ic-alert.js.map +1 -1
- package/dist/components/ic-back-to-top.js +3 -3
- package/dist/components/ic-badge.js +39 -15
- package/dist/components/ic-badge.js.map +1 -1
- package/dist/components/ic-breadcrumb-group.js +2 -2
- package/dist/components/ic-breadcrumb2.js +2 -2
- package/dist/components/ic-button2.js +1 -1
- package/dist/components/ic-button2.js.map +1 -1
- package/dist/components/ic-card-vertical.js +5 -5
- package/dist/components/ic-card-vertical.js.map +1 -1
- package/dist/components/ic-checkbox-group.js +4 -4
- package/dist/components/ic-checkbox.js +6 -6
- package/dist/components/ic-checkbox.js.map +1 -1
- package/dist/components/ic-chip.js +3 -3
- package/dist/components/ic-classification-banner.js +2 -2
- package/dist/components/ic-data-list.js +2 -2
- package/dist/components/ic-data-row.js +3 -3
- package/dist/components/ic-dialog.js +2 -2
- package/dist/components/ic-dialog.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-empty-state.js +2 -2
- package/dist/components/ic-footer-link-group.js +1 -1
- package/dist/components/ic-footer-link-group.js.map +1 -1
- package/dist/components/ic-footer-link.js +2 -2
- package/dist/components/ic-footer.js +4 -4
- package/dist/components/ic-hero.js +5 -5
- package/dist/components/ic-horizontal-scroll2.js +6 -6
- package/dist/components/ic-input-component-container2.js +4 -4
- package/dist/components/ic-input-container2.js +2 -2
- package/dist/components/ic-input-label2.js +5 -5
- package/dist/components/ic-input-validation2.js +4 -4
- package/dist/components/ic-link2.js +1 -1
- package/dist/components/ic-loading-indicator2.js +3 -3
- package/dist/components/ic-menu-group.js +1 -1
- package/dist/components/ic-menu-item2.js.map +1 -1
- package/dist/components/ic-menu2.js +4 -4
- package/dist/components/ic-navigation-button.js +2 -2
- package/dist/components/ic-navigation-group.js +3 -3
- package/dist/components/ic-navigation-group.js.map +1 -1
- package/dist/components/ic-navigation-item.js +12 -7
- package/dist/components/ic-navigation-item.js.map +1 -1
- package/dist/components/ic-navigation-menu2.js +5 -5
- package/dist/components/ic-page-header.js +6 -6
- package/dist/components/ic-pagination-item2.js +2 -2
- package/dist/components/ic-pagination.js +4 -4
- package/dist/components/ic-popover-menu.js +4 -4
- package/dist/components/ic-popover-menu.js.map +1 -1
- package/dist/components/ic-radio-group.js +5 -5
- package/dist/components/ic-radio-option.js +6 -6
- package/dist/components/ic-radio-option.js.map +1 -1
- package/dist/components/ic-search-bar.js +10 -10
- package/dist/components/ic-section-container2.js +2 -2
- package/dist/components/ic-select.js +46 -49
- package/dist/components/ic-select.js.map +1 -1
- package/dist/components/ic-side-navigation.js +5 -5
- package/dist/components/ic-side-navigation.js.map +1 -1
- package/dist/components/ic-skeleton.js +2 -2
- package/dist/components/ic-skip-link.js +12 -4
- package/dist/components/ic-skip-link.js.map +1 -1
- package/dist/components/ic-status-tag.js +2 -2
- package/dist/components/ic-status-tag.js.map +1 -1
- package/dist/components/ic-step.js +14 -14
- package/dist/components/ic-step.js.map +1 -1
- package/dist/components/ic-stepper.js +3 -3
- package/dist/components/ic-switch.js +5 -5
- package/dist/components/ic-tab-context.js +1 -1
- package/dist/components/ic-tab-group.js +2 -2
- package/dist/components/ic-tab-panel.js +2 -2
- package/dist/components/ic-tab-panel.js.map +1 -1
- package/dist/components/ic-tab.js +2 -2
- package/dist/components/ic-text-field.js +7 -7
- package/dist/components/ic-theme.js +3 -1
- package/dist/components/ic-theme.js.map +1 -1
- package/dist/components/ic-toast-region.js +1 -1
- package/dist/components/ic-toast.js +4 -4
- package/dist/components/ic-toggle-button-group.js +2 -2
- package/dist/components/ic-toggle-button.js +3 -3
- package/dist/components/ic-toggle-button.js.map +1 -1
- package/dist/components/ic-tooltip2.js +30 -2
- package/dist/components/ic-tooltip2.js.map +1 -1
- package/dist/components/ic-top-navigation.js +5 -5
- package/dist/components/ic-top-navigation.js.map +1 -1
- package/dist/components/ic-typography2.js +3 -3
- package/dist/components/ic-typography2.js.map +1 -1
- package/dist/core/core.css +1 -1
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/{p-c9726fbd.entry.js → p-005cd8a8.entry.js} +2 -2
- 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-5e1fd097.entry.js → p-0a8b3967.entry.js} +2 -2
- package/dist/core/{p-f43f411a.entry.js → p-0b4350df.entry.js} +2 -2
- package/dist/core/p-0e618fc5.entry.js +2 -0
- package/dist/core/{p-811d447b.entry.js.map → p-0e618fc5.entry.js.map} +1 -1
- package/dist/core/p-18ecba80.entry.js +2 -0
- package/dist/core/{p-a794b724.entry.js.map → p-18ecba80.entry.js.map} +1 -1
- package/dist/core/{p-f34efc17.entry.js → p-1e4cdd2d.entry.js} +2 -2
- package/dist/core/{p-a71055c9.entry.js → p-23d059ff.entry.js} +2 -2
- package/dist/core/{p-071f4748.entry.js → p-23ed8b99.entry.js} +2 -2
- package/dist/core/{p-ed8957da.js → p-281ce313.js} +2 -2
- package/dist/core/p-281ce313.js.map +1 -0
- package/dist/core/{p-49768069.entry.js → p-30abe545.entry.js} +2 -2
- package/dist/core/p-3132270d.entry.js +2 -0
- package/dist/core/p-3132270d.entry.js.map +1 -0
- package/dist/core/{p-1ac08e6d.entry.js → p-33c86ba6.entry.js} +2 -2
- package/dist/core/p-3675c4b4.entry.js +2 -0
- package/dist/core/p-3675c4b4.entry.js.map +1 -0
- package/dist/core/{p-a20a7cd3.entry.js → p-3b5d3e24.entry.js} +2 -2
- package/dist/core/{p-972671ea.entry.js → p-3eb7ef1d.entry.js} +2 -2
- package/dist/core/{p-110486f0.entry.js → p-40f2f58e.entry.js} +2 -2
- package/dist/core/p-4245a976.entry.js +2 -0
- package/dist/core/p-4245a976.entry.js.map +1 -0
- package/dist/core/{p-264ce7a0.entry.js → p-44e4e8c1.entry.js} +2 -2
- package/dist/core/p-44e4e8c1.entry.js.map +1 -0
- package/dist/core/{p-5c349c9d.entry.js → p-45432bf5.entry.js} +2 -2
- 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-fa02a267.entry.js → p-4b6818d9.entry.js} +2 -2
- package/dist/core/p-517d7afb.entry.js +2 -0
- package/dist/core/p-517d7afb.entry.js.map +1 -0
- package/dist/core/{p-a103068b.entry.js → p-5206a978.entry.js} +2 -2
- package/dist/core/p-5d4b0480.entry.js +2 -0
- package/dist/core/p-5d4b0480.entry.js.map +1 -0
- package/dist/core/{p-1f455336.entry.js → p-5e18b899.entry.js} +2 -2
- package/dist/core/{p-0e96d4d8.entry.js → p-6337fe1f.entry.js} +2 -2
- 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-7e79bd0e.entry.js → p-6de6b6b7.entry.js} +2 -2
- package/dist/core/p-70700c7a.entry.js +2 -0
- package/dist/core/{p-20c4d90b.entry.js → p-7a0d238b.entry.js} +2 -2
- package/dist/core/{p-10cd26dc.entry.js → p-7afc71d0.entry.js} +2 -2
- package/dist/core/{p-10cd26dc.entry.js.map → p-7afc71d0.entry.js.map} +1 -1
- package/dist/core/{p-69e4daec.entry.js → p-7c0914e7.entry.js} +2 -2
- package/dist/core/{p-0d016565.entry.js → p-7dfe0284.entry.js} +2 -2
- 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-85734ebf.entry.js → p-950db960.entry.js} +2 -2
- package/dist/core/p-950db960.entry.js.map +1 -0
- package/dist/core/{p-44e32417.entry.js → p-959a9cdf.entry.js} +2 -2
- 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-74600ed8.entry.js → p-abaea607.entry.js} +2 -2
- package/dist/core/{p-85b7d931.entry.js → p-ac7db165.entry.js} +2 -2
- 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-37df68fe.entry.js → p-b3ac38c5.entry.js} +2 -2
- package/dist/core/{p-17cf7b50.entry.js → p-b3d6d5be.entry.js} +2 -2
- package/dist/core/{p-729745d3.entry.js → p-bbe5596b.entry.js} +2 -2
- package/dist/core/p-c04f36c5.entry.js +2 -0
- package/dist/core/{p-4f2a1950.entry.js → p-c2ca6274.entry.js} +2 -2
- package/dist/core/p-c62318a8.entry.js +2 -0
- package/dist/core/{p-2537f33e.entry.js.map → p-c62318a8.entry.js.map} +1 -1
- package/dist/core/{p-701696aa.entry.js → p-de43d375.entry.js} +2 -2
- package/dist/core/{p-2b1a331b.entry.js → p-e2f893f0.entry.js} +2 -2
- package/dist/core/{p-d9aec0dd.entry.js → p-e56d0db2.entry.js} +2 -2
- package/dist/core/{p-33243fff.entry.js → p-e586ae7b.entry.js} +2 -2
- package/dist/core/{p-45595f98.entry.js → p-ef09b450.entry.js} +2 -2
- package/dist/core/p-ef09b450.entry.js.map +1 -0
- package/dist/core/{p-50f4d151.entry.js → p-f34eee68.entry.js} +2 -2
- package/dist/core/{p-8b268274.entry.js → p-f3c72ffb.entry.js} +2 -2
- package/dist/core/{p-8856dff4.entry.js → p-f815f8c9.entry.js} +2 -2
- package/dist/core/{p-a55e7988.entry.js → p-fbde763c.entry.js} +2 -2
- package/dist/core/p-fc50d582.entry.js +2 -0
- package/dist/core/p-fc50d582.entry.js.map +1 -0
- package/dist/core/{p-78e7a859.entry.js → p-fe833509.entry.js} +2 -2
- package/dist/esm/core.js +1 -1
- package/dist/esm/{helpers-dd035d0d.js → helpers-46a2d1fd.js} +17 -38
- package/dist/esm/helpers-46a2d1fd.js.map +1 -0
- package/dist/esm/ic-accordion-group.entry.js +1 -1
- package/dist/esm/ic-accordion-group.entry.js.map +1 -1
- package/dist/esm/ic-accordion.entry.js +1 -1
- package/dist/esm/ic-accordion.entry.js.map +1 -1
- package/dist/esm/ic-alert.entry.js +63 -36
- package/dist/esm/ic-alert.entry.js.map +1 -1
- package/dist/esm/ic-back-to-top.entry.js +4 -4
- package/dist/esm/ic-badge.entry.js +40 -16
- package/dist/esm/ic-badge.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb-group.entry.js +3 -3
- package/dist/esm/ic-breadcrumb.entry.js +3 -3
- package/dist/esm/ic-button_3.entry.js +32 -7
- package/dist/esm/ic-button_3.entry.js.map +1 -1
- package/dist/esm/ic-card-vertical.entry.js +6 -6
- package/dist/esm/ic-card-vertical.entry.js.map +1 -1
- package/dist/esm/ic-checkbox-group.entry.js +4 -4
- package/dist/esm/ic-checkbox.entry.js +6 -6
- package/dist/esm/ic-checkbox.entry.js.map +1 -1
- package/dist/esm/ic-chip.entry.js +4 -4
- package/dist/esm/ic-classification-banner.entry.js +2 -2
- package/dist/esm/ic-data-list.entry.js +2 -2
- package/dist/esm/ic-data-row.entry.js +3 -3
- package/dist/esm/ic-dialog.entry.js +3 -3
- package/dist/esm/ic-dialog.entry.js.map +1 -1
- package/dist/esm/ic-divider.entry.js +2 -2
- package/dist/esm/ic-divider.entry.js.map +1 -1
- package/dist/esm/ic-empty-state.entry.js +3 -3
- package/dist/esm/ic-footer-link-group.entry.js +2 -2
- package/dist/esm/ic-footer-link-group.entry.js.map +1 -1
- package/dist/esm/ic-footer-link.entry.js +3 -3
- package/dist/esm/ic-footer.entry.js +4 -4
- package/dist/esm/ic-hero.entry.js +5 -5
- package/dist/esm/ic-horizontal-scroll.entry.js +6 -6
- package/dist/esm/ic-input-component-container_3.entry.js +9 -9
- package/dist/esm/ic-input-label_2.entry.js +8 -8
- package/dist/esm/ic-link.entry.js +2 -2
- package/dist/esm/ic-menu-group.entry.js +2 -2
- package/dist/esm/ic-menu-item.entry.js +1 -1
- package/dist/esm/ic-menu-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-button.entry.js +3 -3
- package/dist/esm/ic-navigation-group.entry.js +3 -3
- package/dist/esm/ic-navigation-group.entry.js.map +1 -1
- package/dist/esm/ic-navigation-item.entry.js +12 -7
- package/dist/esm/ic-navigation-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-menu.entry.js +5 -5
- package/dist/esm/ic-page-header.entry.js +7 -7
- package/dist/esm/ic-pagination-item.entry.js +2 -2
- package/dist/esm/ic-pagination.entry.js +5 -5
- package/dist/esm/ic-popover-menu.entry.js +5 -5
- package/dist/esm/ic-radio-group.entry.js +5 -5
- package/dist/esm/ic-radio-option.entry.js +6 -6
- package/dist/esm/ic-radio-option.entry.js.map +1 -1
- package/dist/esm/ic-search-bar.entry.js +10 -10
- package/dist/esm/ic-section-container.entry.js +2 -2
- package/dist/esm/ic-select.entry.js +46 -49
- package/dist/esm/ic-select.entry.js.map +1 -1
- package/dist/esm/ic-side-navigation.entry.js +5 -5
- package/dist/esm/ic-side-navigation.entry.js.map +1 -1
- package/dist/esm/ic-skeleton.entry.js +2 -2
- package/dist/esm/ic-skip-link.entry.js +10 -3
- package/dist/esm/ic-skip-link.entry.js.map +1 -1
- package/dist/esm/ic-status-tag.entry.js +3 -3
- package/dist/esm/ic-status-tag.entry.js.map +1 -1
- package/dist/esm/ic-step.entry.js +15 -15
- package/dist/esm/ic-step.entry.js.map +1 -1
- package/dist/esm/ic-stepper.entry.js +3 -3
- package/dist/esm/ic-switch.entry.js +5 -5
- package/dist/esm/ic-tab-context.entry.js +1 -1
- package/dist/esm/ic-tab-group.entry.js +3 -3
- package/dist/esm/ic-tab-panel.entry.js +2 -2
- package/dist/esm/ic-tab.entry.js +3 -3
- package/dist/esm/ic-text-field.entry.js +7 -7
- package/dist/esm/ic-theme.entry.js +4 -2
- package/dist/esm/ic-theme.entry.js.map +1 -1
- package/dist/esm/ic-toast-region.entry.js +1 -1
- package/dist/esm/ic-toast.entry.js +4 -4
- package/dist/esm/ic-toggle-button-group.entry.js +3 -3
- package/dist/esm/ic-toggle-button.entry.js +4 -4
- package/dist/esm/ic-toggle-button.entry.js.map +1 -1
- package/dist/esm/ic-top-navigation.entry.js +5 -5
- package/dist/esm/ic-top-navigation.entry.js.map +1 -1
- package/dist/esm/ic-typography.entry.js +4 -4
- package/dist/esm/ic-typography.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/ic-alert/ic-alert.d.ts +17 -9
- package/dist/types/components/ic-badge/ic-badge.d.ts +4 -0
- package/dist/types/components/ic-select/ic-select.d.ts +1 -0
- package/dist/types/components/ic-skip-link/ic-skip-link.d.ts +5 -0
- package/dist/types/components/ic-theme/ic-theme.d.ts +6 -2
- package/dist/types/components/ic-tooltip/ic-tooltip.d.ts +3 -0
- package/dist/types/components.d.ts +20 -11
- package/dist/types/utils/helpers.d.ts +5 -1
- package/dist/types/utils/types.d.ts +1 -0
- package/hydrate/index.js +385 -318
- package/hydrate/index.mjs +385 -318
- package/package.json +3 -3
- package/dist/cjs/helpers-a0a128bd.js.map +0 -1
- package/dist/core/p-06d97789.entry.js +0 -2
- package/dist/core/p-06d97789.entry.js.map +0 -1
- package/dist/core/p-09070f61.entry.js +0 -2
- package/dist/core/p-0c0ac69d.entry.js +0 -2
- package/dist/core/p-0c0ac69d.entry.js.map +0 -1
- package/dist/core/p-0e96d4d8.entry.js.map +0 -1
- package/dist/core/p-116ad73d.entry.js +0 -2
- package/dist/core/p-116ad73d.entry.js.map +0 -1
- package/dist/core/p-1171a945.entry.js +0 -2
- package/dist/core/p-1171a945.entry.js.map +0 -1
- package/dist/core/p-2537f33e.entry.js +0 -2
- package/dist/core/p-264ce7a0.entry.js.map +0 -1
- package/dist/core/p-28656111.entry.js +0 -2
- package/dist/core/p-28656111.entry.js.map +0 -1
- package/dist/core/p-45595f98.entry.js.map +0 -1
- package/dist/core/p-4c68494c.entry.js +0 -2
- package/dist/core/p-4c68494c.entry.js.map +0 -1
- package/dist/core/p-55a37101.entry.js +0 -2
- package/dist/core/p-55a37101.entry.js.map +0 -1
- package/dist/core/p-5c349c9d.entry.js.map +0 -1
- package/dist/core/p-73fc198f.entry.js +0 -2
- package/dist/core/p-73fc198f.entry.js.map +0 -1
- package/dist/core/p-7eaf8da8.entry.js +0 -2
- package/dist/core/p-811d447b.entry.js +0 -2
- package/dist/core/p-85734ebf.entry.js.map +0 -1
- package/dist/core/p-85b7d931.entry.js.map +0 -1
- package/dist/core/p-98328cb9.entry.js +0 -2
- package/dist/core/p-98328cb9.entry.js.map +0 -1
- package/dist/core/p-a22658fb.entry.js +0 -2
- package/dist/core/p-a22658fb.entry.js.map +0 -1
- package/dist/core/p-a794b724.entry.js +0 -2
- package/dist/core/p-b21b4fea.entry.js +0 -2
- package/dist/core/p-b21b4fea.entry.js.map +0 -1
- package/dist/core/p-b953b22f.entry.js +0 -2
- package/dist/core/p-b953b22f.entry.js.map +0 -1
- package/dist/core/p-c9726fbd.entry.js.map +0 -1
- package/dist/core/p-d981598e.entry.js +0 -2
- package/dist/core/p-d981598e.entry.js.map +0 -1
- package/dist/core/p-ed8957da.js.map +0 -1
- package/dist/core/p-f3315216.entry.js +0 -2
- package/dist/core/p-f3315216.entry.js.map +0 -1
- package/dist/core/p-ff995eb8.entry.js +0 -2
- package/dist/core/p-ff995eb8.entry.js.map +0 -1
- package/dist/esm/helpers-dd035d0d.js.map +0 -1
- /package/dist/core/{p-5e1fd097.entry.js.map → p-0a8b3967.entry.js.map} +0 -0
- /package/dist/core/{p-f43f411a.entry.js.map → p-0b4350df.entry.js.map} +0 -0
- /package/dist/core/{p-f34efc17.entry.js.map → p-1e4cdd2d.entry.js.map} +0 -0
- /package/dist/core/{p-a71055c9.entry.js.map → p-23d059ff.entry.js.map} +0 -0
- /package/dist/core/{p-071f4748.entry.js.map → p-23ed8b99.entry.js.map} +0 -0
- /package/dist/core/{p-49768069.entry.js.map → p-30abe545.entry.js.map} +0 -0
- /package/dist/core/{p-1ac08e6d.entry.js.map → p-33c86ba6.entry.js.map} +0 -0
- /package/dist/core/{p-a20a7cd3.entry.js.map → p-3b5d3e24.entry.js.map} +0 -0
- /package/dist/core/{p-972671ea.entry.js.map → p-3eb7ef1d.entry.js.map} +0 -0
- /package/dist/core/{p-110486f0.entry.js.map → p-40f2f58e.entry.js.map} +0 -0
- /package/dist/core/{p-fa02a267.entry.js.map → p-4b6818d9.entry.js.map} +0 -0
- /package/dist/core/{p-a103068b.entry.js.map → p-5206a978.entry.js.map} +0 -0
- /package/dist/core/{p-1f455336.entry.js.map → p-5e18b899.entry.js.map} +0 -0
- /package/dist/core/{p-7e79bd0e.entry.js.map → p-6de6b6b7.entry.js.map} +0 -0
- /package/dist/core/{p-09070f61.entry.js.map → p-70700c7a.entry.js.map} +0 -0
- /package/dist/core/{p-20c4d90b.entry.js.map → p-7a0d238b.entry.js.map} +0 -0
- /package/dist/core/{p-69e4daec.entry.js.map → p-7c0914e7.entry.js.map} +0 -0
- /package/dist/core/{p-0d016565.entry.js.map → p-7dfe0284.entry.js.map} +0 -0
- /package/dist/core/{p-44e32417.entry.js.map → p-959a9cdf.entry.js.map} +0 -0
- /package/dist/core/{p-74600ed8.entry.js.map → p-abaea607.entry.js.map} +0 -0
- /package/dist/core/{p-37df68fe.entry.js.map → p-b3ac38c5.entry.js.map} +0 -0
- /package/dist/core/{p-17cf7b50.entry.js.map → p-b3d6d5be.entry.js.map} +0 -0
- /package/dist/core/{p-729745d3.entry.js.map → p-bbe5596b.entry.js.map} +0 -0
- /package/dist/core/{p-7eaf8da8.entry.js.map → p-c04f36c5.entry.js.map} +0 -0
- /package/dist/core/{p-4f2a1950.entry.js.map → p-c2ca6274.entry.js.map} +0 -0
- /package/dist/core/{p-701696aa.entry.js.map → p-de43d375.entry.js.map} +0 -0
- /package/dist/core/{p-2b1a331b.entry.js.map → p-e2f893f0.entry.js.map} +0 -0
- /package/dist/core/{p-d9aec0dd.entry.js.map → p-e56d0db2.entry.js.map} +0 -0
- /package/dist/core/{p-33243fff.entry.js.map → p-e586ae7b.entry.js.map} +0 -0
- /package/dist/core/{p-50f4d151.entry.js.map → p-f34eee68.entry.js.map} +0 -0
- /package/dist/core/{p-8b268274.entry.js.map → p-f3c72ffb.entry.js.map} +0 -0
- /package/dist/core/{p-8856dff4.entry.js.map → p-f815f8c9.entry.js.map} +0 -0
- /package/dist/core/{p-a55e7988.entry.js.map → p-fbde763c.entry.js.map} +0 -0
- /package/dist/core/{p-78e7a859.entry.js.map → p-fe833509.entry.js.map} +0 -0
@@ -111,19 +111,19 @@ export class PageHeader {
|
|
111
111
|
const navAriaLabel = `${isSlotUsed(this.el, "heading")
|
112
112
|
? (_b = (_a = this.el.querySelector('[slot="heading"]')) === null || _a === void 0 ? void 0 : _a.textContent) !== null && _b !== void 0 ? _b : ""
|
113
113
|
: heading !== null && heading !== void 0 ? heading : ""} page sections`;
|
114
|
-
return (h(Host, { key: '
|
114
|
+
return (h(Host, { key: '2fcb645615bdb75659da17fa9c70b7bf9eb4f38b', class: {
|
115
115
|
["ic-page-header-sticky"]: !!sticky,
|
116
116
|
["ic-page-header-sticky-desktop"]: !sticky && !!stickyDesktopOnly,
|
117
117
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
118
|
-
}, "aria-label": this.el.ariaLabel || "page header" }, h("header", { key: '
|
118
|
+
}, "aria-label": this.el.ariaLabel || "page header" }, h("header", { key: 'd212bae9378a9f1bdd51f8b178eb294642580502', class: {
|
119
119
|
["border-bottom"]: !!border,
|
120
120
|
["tabs"]: isSlotUsed(this.el, "tabs"),
|
121
|
-
}, role: "presentation" }, h("ic-section-container", { key: '
|
121
|
+
}, role: "presentation" }, h("ic-section-container", { key: '2e4489587b15235b29c0614e9e2cc931f40c5ad2', aligned: aligned, fullHeight: isSlotUsed(this.el, "tabs") }, isSlotUsed(this.el, "breadcrumbs") && (h("div", { key: 'c23a12adf1350177092343dd30d5caf6300ddc48', class: "breadcrumb-area" }, h("slot", { key: '394a0a3540bf493623eaa893d067adee94d571ed', name: "breadcrumbs" }))), h("div", { key: '1549da8b527d9bad2158fbdc0d887468fa878665', class: "main-content" }, h("div", { key: '8f16fb6f031722c31b0c8c18ae394cc9df31c259', class: "title-area" }, h("div", { key: '9ba2670b6d0f00761e5205f0b1914debf8593188', class: "header-content" }, h("slot", { key: '5ded3c04b383d8c2049342b73ed24da15ca1527b', name: "heading" }, h("ic-typography", { key: '66051dd3628d19b91dcc5bd2a624c0f02123cce8', variant: size === "small" ? "h4" : "h2", class: "heading" }, h("h2", { key: '3ad38d6e5c92771469ce6aa28bb0ce27ef32a6c0' }, heading))), h("slot", { key: 'bff7dbff751633bac28ecde4270cda02dcd30ea0', name: "heading-adornment" })), h("div", { key: '33013061ded6d3c68872baf73f75e6c1f9c5dc64', class: {
|
122
122
|
["subheading-content"]: !!subheading || isSlotUsed(this.el, "subheading"),
|
123
123
|
["small"]: size === "small",
|
124
|
-
} }, h("slot", { key: '
|
125
|
-
isSlotUsed(this.el, "tabs")) && (h("div", { key: '
|
126
|
-
!isSlotUsed(this.el, "tabs") && h("slot", { key: '
|
124
|
+
} }, h("slot", { key: 'd566acd471748725b57b361a91ad42079d95c3df', name: "subheading" }, h("ic-typography", { key: 'f964e890a2c587cac5506ec4465a3d504adbd0c8', variant: "body" }, subheading)))), isSlotUsed(this.el, "actions") && (h("div", { key: '4f86300ff2c1b536f85cb1a5f316e5a5648e01f2', class: "action-area" }, h("slot", { key: '1ac5c67502ea159d05a2f665d4b9ca95f86ef76e', name: "actions" }))), isSlotUsed(this.el, "input") && (h("div", { key: '7df1fb4cfa7661b71b58c0eff30829ae4b1f3c44', class: "input-area" }, h("slot", { key: '5dc94dbc8328df27814e276e997d35663ad505ba', name: "input" })))), (isSlotUsed(this.el, "stepper") ||
|
125
|
+
isSlotUsed(this.el, "tabs")) && (h("div", { key: '261eb06c04fde9c954573256196e4ad861098150', class: "navigation-area" }, isSlotUsed(this.el, "stepper") &&
|
126
|
+
!isSlotUsed(this.el, "tabs") && h("slot", { key: 'b19a74de5783f8b4c4107c7c356a5252eaf69277', name: "stepper" }), isSlotUsed(this.el, "tabs") && (h("nav", { key: '937c01fcb2b06fdccca757fcd8eb439bfe895e69', "aria-label": navAriaLabel }, h("ic-horizontal-scroll", { key: '088526c19f8be38197d990d6dbef8c002ce20133' }, h("ul", { key: 'a01caea558dd70436a05e9a2537ff4f006170160', class: "tabs-slot" }, h("slot", { key: 'b936d5f4b08ceca9ed06d268dcb7a76b5c1aa795', name: "tabs" })))))))))));
|
127
127
|
}
|
128
128
|
static get is() { return "ic-page-header"; }
|
129
129
|
static get encapsulation() { return "shadow"; }
|
@@ -239,14 +239,14 @@ export class Pagination {
|
|
239
239
|
}
|
240
240
|
render() {
|
241
241
|
const { type, currentPage, hideCurrentPage, disabled, hideFirstAndLastPageButton, label, theme, monochrome, } = this;
|
242
|
-
return (h(Host, { key: '
|
242
|
+
return (h(Host, { key: '70130b80edbb60548c9f50c2943f05011e56be69', class: {
|
243
243
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
244
244
|
["ic-pagination-monochrome"]: !!monochrome,
|
245
|
-
} }, type === "simple" && (h("nav", { key: '
|
245
|
+
} }, type === "simple" && (h("nav", { key: 'bbe920e2011813cfb8dfe4d6f5bbd9e5f6122ffd', class: {
|
246
246
|
["disabled"]: !!disabled,
|
247
|
-
}, role: "navigation", "aria-label": "Pagination Navigation" }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), h("ic-pagination-item", { key: '
|
247
|
+
}, role: "navigation", "aria-label": "Pagination Navigation" }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), h("ic-pagination-item", { key: 'd4f502db5763086dbdcb518f819638e944c4c2e4', theme: this.theme, monochrome: this.monochrome, type: "simple-current", page: currentPage, label: label, class: { ["hide-current-page"]: !!hideCurrentPage }, disabled: disabled }), this.nextButton(), hideFirstAndLastPageButton ? null : this.lastButton())), type === "complex" && (h("nav", { key: '88cc5fb9aab0dafc34dd1a4d4744ddfcf863cd11', class: {
|
248
248
|
["disabled"]: !!disabled,
|
249
|
-
}, role: "navigation", "aria-label": "Pagination Navigation" }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), this.renderStartItems(), this.startEllipsis && this.renderStartEllipsis(), this.renderMiddleItems(), this.endEllipsis && this.renderEndEllipsis(), this.renderEndItems(), this.nextButton(), hideFirstAndLastPageButton ? null : this.lastButton())), type === "complex" && (h("span", { key: '
|
249
|
+
}, role: "navigation", "aria-label": "Pagination Navigation" }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), this.renderStartItems(), this.startEllipsis && this.renderStartEllipsis(), this.renderMiddleItems(), this.endEllipsis && this.renderEndEllipsis(), this.renderEndItems(), this.nextButton(), hideFirstAndLastPageButton ? null : this.lastButton())), type === "complex" && (h("span", { key: '39e0d6b75392af13093c4c5ca5ab94c7da8d8a96', class: "sr-only", "aria-live": "polite" }, "Page ", this.currentPage))));
|
250
250
|
}
|
251
251
|
static get is() { return "ic-pagination"; }
|
252
252
|
static get encapsulation() { return "shadow"; }
|
@@ -38,7 +38,7 @@ export class PaginationItem {
|
|
38
38
|
}
|
39
39
|
render() {
|
40
40
|
const { page, selected, type, disabled, label, capitalizedLabel, monochrome, } = this;
|
41
|
-
return (h("a", { key: '
|
41
|
+
return (h("a", { key: '1a741926e4af87f661203c00d3eebecfe31fed2e', class: { ["monochrome"]: !!monochrome } }, type === "ellipsis" ? (h("div", { class: {
|
42
42
|
["item-container"]: true,
|
43
43
|
["ellipsis"]: true,
|
44
44
|
["disabled"]: !!disabled,
|
@@ -263,17 +263,17 @@ export class PopoverMenu {
|
|
263
263
|
}
|
264
264
|
}
|
265
265
|
render() {
|
266
|
-
return (h(Host, { key: '
|
266
|
+
return (h(Host, { key: '901b87fff1d01eb285bf52c1b6a89031630288cb', class: {
|
267
267
|
["ic-popover-menu-open"]: !!this.open,
|
268
268
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
269
|
-
} }, h("div", { key: '
|
269
|
+
} }, h("div", { key: '67c459f9fe017586044872c13311a29a5e5c3860', id: this.parentPopover === undefined
|
270
270
|
? `ic-popover-submenu-${this.submenuId}`
|
271
271
|
: "", class: {
|
272
272
|
menu: true,
|
273
|
-
} }, h("span", { key: '
|
273
|
+
} }, h("span", { key: '4a5ffeec0589372e7c107fff1949bfb8c8962af0', class: {
|
274
274
|
"opening-from-parent": this.openingFromParent,
|
275
275
|
"opening-from-child": this.openingFromChild,
|
276
|
-
} }, isPropDefined(this.submenuId) && (h("span", { key: '
|
276
|
+
} }, isPropDefined(this.submenuId) && (h("span", { key: 'c5fd99e4768304f16a307020d5a8ec69a2917586' }, h("span", { key: 'bf9a1e253a89999befe7665cfbe83d11c7d3f529', role: "menu" }, h("ic-menu-item", { key: '555972f94bae51d7add7c1ee79e495e0945ab9dd', class: "ic-popover-submenu-back-button", ref: (el) => (this.backButton = el), label: "Back", onClick: this.handleBackButtonClick, id: `ic-popover-submenu-back-button-${this.submenuLevel}` }, h("svg", { key: '3f933ccb9056686c32af2a608789c985b3e4000d', slot: "icon", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", class: "submenu-back-icon" }, h("path", { key: '337eac36fa937e0b2dc95161a687f2bb40165078', d: "M20 11H7.83L13.42 5.41L12 4L4 12L12 20L13.41 18.59L7.83 13H20V11Z", fill: "currentColor" })))), h("ic-typography", { key: '8b51171492362a08eb1ba581b733e872e10cdab1', variant: "subtitle-small", class: "parent-label" }, this.parentLabel))), h("ul", { key: 'ae97912c38d02905e24d3ec7ec09bc2ae644310f', class: "button", "aria-label": this.getMenuAriaLabel(), role: "menu" }, h("slot", { key: 'ecbe66ec297e1cbb99534dd13c8e9227a18fce29' }))))));
|
277
277
|
}
|
278
278
|
static get is() { return "ic-popover-menu"; }
|
279
279
|
static get encapsulation() { return "shadow"; }
|
@@ -222,16 +222,16 @@ export class RadioGroup {
|
|
222
222
|
}
|
223
223
|
render() {
|
224
224
|
const { currentOrientation, disabled, handleKeyDown, helperText, hideLabel, label, required, size, validationStatus, validationText, theme, } = this;
|
225
|
-
return (h(Host, { key: '
|
225
|
+
return (h(Host, { key: 'db83cc9de43015de4c06e3ed5b35c59262c2058d', onKeyDown: handleKeyDown, class: {
|
226
226
|
"ic-radio-group-small": size === "small",
|
227
227
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
228
|
-
} }, h("div", { key: '
|
228
|
+
} }, h("div", { key: 'e11f551827b7a774965876a1021294411b16f6ec', role: "radiogroup", "aria-label": `${label}${required ? ", required" : ""}` }, !hideLabel && (h("ic-input-label", { key: '7e4a2d8f187ab28fa362d55c47eb3d4ae7d784fd', class: {
|
229
229
|
[`${validationStatus}`]: true,
|
230
230
|
["disabled"]: !!disabled,
|
231
|
-
}, label: label, helperText: helperText, required: required, disabled: disabled })), h("div", { key: '
|
231
|
+
}, label: label, helperText: helperText, required: required, disabled: disabled })), h("div", { key: 'b2d6d9845a82f7f10dcaa5dbbed0bf5481dd696f', class: {
|
232
232
|
"radio-buttons-container": true,
|
233
233
|
horizontal: currentOrientation === this.RADIO_HORIZONTAL,
|
234
|
-
}, ref: (el) => (this.radioContainer = el) }, h("slot", { key: '
|
234
|
+
}, ref: (el) => (this.radioContainer = el) }, h("slot", { key: 'bab10c5275b6f71de87310c3ec04bacb894be115' }))), hasValidationStatus(validationStatus, disabled) && (h("ic-input-validation", { key: '3c6b84cfce970db11c8e958abd82904931654f3d', ariaLiveMode: "polite", status: validationStatus, message: validationText }))));
|
235
235
|
}
|
236
236
|
static get is() { return "ic-radio-group"; }
|
237
237
|
static get encapsulation() { return "shadow"; }
|
@@ -594,6 +594,7 @@ ic-radio-option.ic-radio-option-disabled .radio-label {
|
|
594
594
|
|
595
595
|
.radio-label {
|
596
596
|
margin-left: var(--ic-space-md);
|
597
|
+
|
597
598
|
--ic-typography-color: var(--ic-radio-button-text-option);
|
598
599
|
}
|
599
600
|
|
@@ -675,7 +676,7 @@ input[type="radio"]:dir(rtl) {
|
|
675
676
|
}
|
676
677
|
|
677
678
|
.branch-corner:dir(rtl) {
|
678
|
-
border-radius: 0 0 0.188rem
|
679
|
+
border-radius: 0 0 0.188rem;
|
679
680
|
border-right: 0.125rem solid var(--ic-action-default);
|
680
681
|
border-left: none;
|
681
682
|
}
|
@@ -139,15 +139,15 @@ export class RadioOption {
|
|
139
139
|
render() {
|
140
140
|
const { additionalFieldDisplay, disabled, dynamicText, form, groupLabel, handleClick, handleKeyDown, hasAdditionalField, label, name, selected, value, theme, } = this;
|
141
141
|
const id = `ic-radio-option-${isPropDefined(label) || value}-${groupLabel}`;
|
142
|
-
return (h(Host, { key: '
|
142
|
+
return (h(Host, { key: 'ee36e924b1c248c87724903313bc778976c36522', onClick: handleClick, onKeyDown: handleKeyDown, class: {
|
143
143
|
["ic-radio-option-disabled"]: !!disabled,
|
144
144
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
145
|
-
} }, h("div", { key: '
|
145
|
+
} }, h("div", { key: '35871b7136c8dd16432e2a0683b13db53f2a1bd0', class: { container: true, disabled: !!disabled } }, h("div", { key: 'daead4b95901afb27be2d2640d1210783ec4c14e' }, h("input", { key: '69d0c5dec724714118475529e021ed9d30350383', tabindex: selected ? "0" : "-1", type: "radio", name: name, id: id, value: value, disabled: disabled, checked: selected, ref: (el) => (this.radioElement = el), form: form }), h("span", { key: '7ae687fb075f60e33fb7edd48b1f323c5833b9fb', class: "checkmark" })), h("ic-typography", { key: 'a3990ac2ea9a3898a436f2fd05966f920a493fa4', class: "radio-label", variant: "body" }, h("label", { key: '0b83a00e2f215d9d051e71650584fb1e0aad55a4', htmlFor: id }, label))), hasAdditionalField && (h("div", { key: '47b6a141f6956e78d4516985d2e70f00c1bdf1cf', class: {
|
146
146
|
"dynamic-container": true,
|
147
147
|
hidden: additionalFieldDisplay === "dynamic" && !selected,
|
148
|
-
} }, additionalFieldDisplay === "dynamic" && (h("div", { key: '
|
148
|
+
} }, additionalFieldDisplay === "dynamic" && (h("div", { key: '2c06cbb85ba445972698c02757a07e048a09ce40', class: "branch-corner" })), h("div", { key: 'ecc00a96cfb580b9f386ea148106a1dae5a31332' }, additionalFieldDisplay === "dynamic" && (h("ic-typography", { key: 'eeacd2d66085bd2bdb16698e6050e552d410d11b', variant: "caption" }, h("p", { key: 'da0327cfe9a9a09405c86e268e7a84ca090b437f', class: "dynamic-text" }, dynamicText))), h("div", { key: 'c9177d6cd8174c92665a3c59a1fe38aeedf6e17b', class: {
|
149
149
|
"additional-field-wrapper": additionalFieldDisplay === "static",
|
150
|
-
} }, h("slot", { key: '
|
150
|
+
} }, h("slot", { key: '1f4fdd0f5eeca0900aeaa04d49191e0b65d843ab', name: ADDITIONAL_FIELD })))))));
|
151
151
|
}
|
152
152
|
static get is() { return "ic-radio-option"; }
|
153
153
|
static get originalStyleUrls() {
|
@@ -514,41 +514,41 @@ export class SearchBar {
|
|
514
514
|
const menuRendered = menuOpen && value.length >= this.charactersUntilSuggestion;
|
515
515
|
const labelValue = getLabelFromValue(value, options, this.valueField, this.labelField);
|
516
516
|
renderHiddenInput(true, this.el, name, value, disabledMode);
|
517
|
-
return (h(Host, { key: '
|
517
|
+
return (h(Host, { key: '00d7c200dadef58f3be6eeae1299f255da97e79a', class: {
|
518
518
|
["ic-search-bar-search"]: true,
|
519
519
|
["ic-search-bar-full-width"]: !!fullWidth,
|
520
520
|
["ic-search-bar-disabled"]: !!disabled,
|
521
521
|
["ic-search-bar-small"]: size === "small",
|
522
522
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
523
|
-
}, onFocus: this.handleHostFocus, onBlur: this.handleHostBlur }, h("ic-input-container", { key: '
|
523
|
+
}, onFocus: this.handleHostFocus, onBlur: this.handleHostBlur }, h("ic-input-container", { key: 'e9620617be40182b556185417647b0ba298116d3', readonly: readonly, disabled: disabledMode }, !hideLabel && (h("ic-input-label", { key: '02fcdd33f0bb62ac24ca12aa09c6c5e188f20c06', for: inputId, label: label, helperText: helperText, required: required, disabled: disabledMode && !readonly, readonly: readonly })), h("ic-input-component-container", { key: '0649a65ad29290c2a60bd33c90552e8bbc875e66', ref: (el) => (this.anchorEl = el), size: size, disabled: disabledMode, readonly: readonly, fullWidth: fullWidth }, h("input", { key: '80b924a66fe7f7aa5193ae0e64b6e4d143ee713a', id: inputId, name: name, ref: (el) => (this.inputEl = el), value: options && !!labelValue ? labelValue : value, class: {
|
524
524
|
"no-left-pad": !!readonly,
|
525
525
|
readonly: !!readonly,
|
526
526
|
"truncate-value": truncateValue,
|
527
|
-
}, placeholder: placeholder, required: required, disabled: disabledMode, readonly: readonly, onInput: this.onInput, onBlur: this.onInputBlur, onFocus: this.onInputFocus, "aria-label": label, "aria-activedescendant": ariaActiveDescendant, "aria-expanded": options.length > 0 && menuRendered ? `${menuOpen}` : undefined, "aria-owns": menuRendered ? menuId : undefined, "aria-describedby": describedById, "aria-controls": menuRendered ? menuId : undefined, "aria-haspopup": options.length > 0 ? "listbox" : undefined, "aria-autocomplete": hasSuggestedSearch ? "list" : undefined, role: options.length > 0 && menuRendered ? "combobox" : undefined, autocomplete: autocomplete, autocapitalize: autocapitalize, autoFocus: autofocus, spellcheck: spellcheck, inputmode: "search" }), h("div", { key: '
|
527
|
+
}, placeholder: placeholder, required: required, disabled: disabledMode, readonly: readonly, onInput: this.onInput, onBlur: this.onInputBlur, onFocus: this.onInputFocus, "aria-label": label, "aria-activedescendant": ariaActiveDescendant, "aria-expanded": options.length > 0 && menuRendered ? `${menuOpen}` : undefined, "aria-owns": menuRendered ? menuId : undefined, "aria-describedby": describedById, "aria-controls": menuRendered ? menuId : undefined, "aria-haspopup": options.length > 0 ? "listbox" : undefined, "aria-autocomplete": hasSuggestedSearch ? "list" : undefined, role: options.length > 0 && menuRendered ? "combobox" : undefined, autocomplete: autocomplete, autocapitalize: autocapitalize, autoFocus: autofocus, spellcheck: spellcheck, inputmode: "search" }), h("div", { key: '0feabdeed8caa3ac63634fdf52221c9cd8a0ea15', class: {
|
528
528
|
"clear-button-container": true,
|
529
529
|
"clear-button-visible": !!value && !disabledMode && this.showClearButton,
|
530
|
-
} }, h("ic-button", { key: '
|
530
|
+
} }, h("ic-button", { key: '3e7e1f8e39c50eb45595d8eddc6cbc1dfd624e5c', id: "clear-button", class: {
|
531
531
|
"clear-button": true,
|
532
532
|
"clear-button-unfocused": !this.clearButtonFocused,
|
533
|
-
}, "aria-label": "Clear", innerHTML: clearIcon, onClick: this.handleClear, onMouseDown: this.handleMouseDown, size: size, onFocus: this.handleFocusClearButton, onBlur: this.handleClearBlur, onKeyDown: this.handleClear, type: "submit", variant: "icon", theme: this.clearButtonFocused ? "light" : "dark" }), h("div", { key: '
|
533
|
+
}, "aria-label": "Clear", innerHTML: clearIcon, onClick: this.handleClear, onMouseDown: this.handleMouseDown, size: size, onFocus: this.handleFocusClearButton, onBlur: this.handleClearBlur, onKeyDown: this.handleClear, type: "submit", variant: "icon", theme: this.clearButtonFocused ? "light" : "dark" }), h("div", { key: '793bf0fd78a2bfce32b78885f0478e2eb214d337', class: "divider" })), h("div", { key: '828edde2b4c950fc0e2c1faff736ee021ab6d49c', class: {
|
534
534
|
"search-submit-button-container": true,
|
535
535
|
"search-submit-button-disabled": this.isSubmitDisabled(),
|
536
|
-
} }, h("ic-button", { key: '
|
536
|
+
} }, h("ic-button", { key: 'c84ee2e7957b7a9d326598af93bb50e78a41ccd2', id: "search-submit-button", "aria-label": "Search", ref: (el) => (this.searchSubmitButton = el), class: {
|
537
537
|
["search-submit-button"]: true,
|
538
538
|
["search-submit-button-small"]: size === "small",
|
539
539
|
["search-submit-button-unfocused"]: !this.searchSubmitFocused,
|
540
540
|
["search-submit-button-disabled"]: this.isSubmitDisabled(),
|
541
|
-
}, disabled: this.isSubmitDisabled(), innerHTML: searchIcon, size: size, onClick: this.handleSubmitSearch, onMouseDown: this.handleMouseDown, onBlur: this.handleSubmitSearchBlur, onFocus: this.handleSubmitSearchFocus, onKeyDown: this.handleSubmitSearchKeyDown, type: "submit", variant: "icon", theme: this.searchSubmitFocused ? "light" : "dark" }))), h("div", { key: '
|
541
|
+
}, disabled: this.isSubmitDisabled(), innerHTML: searchIcon, size: size, onClick: this.handleSubmitSearch, onMouseDown: this.handleMouseDown, onBlur: this.handleSubmitSearchBlur, onFocus: this.handleSubmitSearchFocus, onKeyDown: this.handleSubmitSearchKeyDown, type: "submit", variant: "icon", theme: this.searchSubmitFocused ? "light" : "dark" }))), h("div", { key: '2d00bc902d0b81b245348735d7e258939f98e369', class: {
|
542
542
|
"menu-container": true,
|
543
543
|
fullwidth: !!fullWidth,
|
544
|
-
} }, menuRendered && (h("ic-menu", { key: '
|
544
|
+
} }, menuRendered && (h("ic-menu", { key: '16049726b55a6a7775343b5a74c6c8c86939ad20', class: {
|
545
545
|
"no-results": this.hadNoOptions() ||
|
546
546
|
(filteredOptions.length === 1 &&
|
547
547
|
(filteredOptions[0][this.labelField] ===
|
548
548
|
this.loadingLabel ||
|
549
549
|
filteredOptions[0][this.labelField] ===
|
550
550
|
this.loadingErrorLabel)),
|
551
|
-
}, activationType: "manual", anchorEl: this.anchorEl, autofocusOnSelected: false, searchMode: this.searchMode, inputEl: this.inputEl, inputLabel: label, ref: (el) => (this.menu = el), fullWidth: fullWidth, menuId: menuId, open: !!menuRendered, options: filteredOptions, onMenuOptionSelect: this.handleOptionSelect, onMenuStateChange: this.handleMenuChange, onMenuOptionId: this.handleMenuOptionHighlight, onRetryButtonClicked: this.handleRetry, parentEl: this.el, value: value, labelField: this.labelField, valueField: this.valueField })))), h("div", { key: '
|
551
|
+
}, activationType: "manual", anchorEl: this.anchorEl, autofocusOnSelected: false, searchMode: this.searchMode, inputEl: this.inputEl, inputLabel: label, ref: (el) => (this.menu = el), fullWidth: fullWidth, menuId: menuId, open: !!menuRendered, options: filteredOptions, onMenuOptionSelect: this.handleOptionSelect, onMenuStateChange: this.handleMenuChange, onMenuOptionId: this.handleMenuOptionHighlight, onRetryButtonClicked: this.handleRetry, parentEl: this.el, value: value, labelField: this.labelField, valueField: this.valueField })))), h("div", { key: '9844297f2d4ed1dd4e168685da928b44eeeb4698', "aria-live": "polite", role: "status", class: "search-results-status" })));
|
552
552
|
}
|
553
553
|
static get is() { return "ic-search-bar"; }
|
554
554
|
static get encapsulation() { return "shadow"; }
|
@@ -12,12 +12,12 @@ export class SectionContainer {
|
|
12
12
|
}
|
13
13
|
render() {
|
14
14
|
const { aligned, fullHeight } = this;
|
15
|
-
return (h(Host, { key: '
|
15
|
+
return (h(Host, { key: 'cdf7f84dced1f88952eb1a496a065a2df53f16e3', class: {
|
16
16
|
["aligned-left"]: aligned === "left" || aligned === null,
|
17
17
|
["aligned-center"]: aligned === "center",
|
18
18
|
["aligned-full-width"]: aligned === "full-width",
|
19
19
|
["no-vertical-padding"]: !!fullHeight,
|
20
|
-
} }, h("slot", { key: '
|
20
|
+
} }, h("slot", { key: 'af0e17e0faf507b4cd4da392b3b998175e209024' })));
|
21
21
|
}
|
22
22
|
static get is() { return "ic-section-container"; }
|
23
23
|
static get encapsulation() { return "shadow"; }
|
@@ -180,6 +180,39 @@ export class Select {
|
|
180
180
|
clearTimeout(this.debounceIcInput);
|
181
181
|
this.debounceIcInput = window.setTimeout(() => this.icInput.emit({ value }), this.currDebounce);
|
182
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
|
+
}
|
215
|
+
};
|
183
216
|
/**
|
184
217
|
* Processes the provided array of IcMenuOptions, removing duplicates and reporting them with a console.warn
|
185
218
|
* @param options array of IcMenuOptions
|
@@ -434,11 +467,7 @@ export class Select {
|
|
434
467
|
};
|
435
468
|
this.handleCharacterKeyDown = (key) => {
|
436
469
|
// Only close menu when space is pressed if not being used alongside character keys to quickly select options
|
437
|
-
if (this.open &&
|
438
|
-
key === " " &&
|
439
|
-
this.pressedCharacters.length === 0 &&
|
440
|
-
!this.hasTimedOut &&
|
441
|
-
!this.loading) {
|
470
|
+
if (this.open && key === " " && this.pressedCharacters.length === 0) {
|
442
471
|
this.setMenuChange(false);
|
443
472
|
}
|
444
473
|
if (key.length === 1 && !this.searchable) {
|
@@ -702,43 +731,10 @@ export class Select {
|
|
702
731
|
removeDisabledFalse(this.disabled, this.el);
|
703
732
|
}
|
704
733
|
loadingHandler(newValue) {
|
705
|
-
newValue
|
734
|
+
newValue ? this.triggerLoading() : this.setOptions();
|
706
735
|
}
|
707
736
|
watchOptionsHandler() {
|
708
|
-
|
709
|
-
this.loading = false;
|
710
|
-
clearTimeout(this.timeoutTimer);
|
711
|
-
if (this.isExternalFiltering()) {
|
712
|
-
// When searchable select
|
713
|
-
if (this.options.length > 0) {
|
714
|
-
this.setOptionsValuesFromLabels();
|
715
|
-
this.noOptions = null;
|
716
|
-
this.uniqueOptions = this.deduplicateOptions(this.options);
|
717
|
-
this.filteredOptions = this.uniqueOptions;
|
718
|
-
}
|
719
|
-
else {
|
720
|
-
this.noOptions = [{ label: this.emptyOptionListText, value: "" }];
|
721
|
-
this.uniqueOptions = this.noOptions;
|
722
|
-
this.filteredOptions = this.noOptions;
|
723
|
-
}
|
724
|
-
this.updateSearchableSelectResultAriaLive();
|
725
|
-
this.setDefaultValue();
|
726
|
-
}
|
727
|
-
else {
|
728
|
-
this.setOptionsValuesFromLabels();
|
729
|
-
this.uniqueOptions = this.deduplicateOptions(this.options);
|
730
|
-
this.filteredOptions = this.uniqueOptions;
|
731
|
-
if (this.initialOptionsEmpty) {
|
732
|
-
this.setDefaultValue();
|
733
|
-
this.initialOptionsEmpty = false;
|
734
|
-
}
|
735
|
-
}
|
736
|
-
}
|
737
|
-
else {
|
738
|
-
if (!this.searchable) {
|
739
|
-
this.options = this.noOptions || [];
|
740
|
-
}
|
741
|
-
}
|
737
|
+
this.setOptions();
|
742
738
|
}
|
743
739
|
debounceChangedHandler(newValue) {
|
744
740
|
this.updateOnChangeDebounce(newValue);
|
@@ -853,17 +849,17 @@ export class Select {
|
|
853
849
|
const isClearable = !disabled &&
|
854
850
|
(searchable
|
855
851
|
? this.searchableSelectInputValue
|
856
|
-
: currValue && showClearButton);
|
857
|
-
return (h(Host, { key: '
|
852
|
+
: currValue && !this.loading && showClearButton);
|
853
|
+
return (h(Host, { key: '75cf0d014983dd89d440f68080f01333e6c265ee', class: {
|
858
854
|
"ic-select-disabled": !!disabled,
|
859
855
|
"ic-select-searchable": !!searchable,
|
860
856
|
[`ic-select-${size}`]: size !== "medium",
|
861
857
|
"ic-select-full-width": !!fullWidth,
|
862
858
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
863
|
-
}, onBlur: this.onBlur }, h("ic-input-container", { key: '
|
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: {
|
864
860
|
["readonly"]: !!readonly,
|
865
861
|
["has-value"]: !!this.value,
|
866
|
-
} }, h("slot", { key: '
|
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) => {
|
867
863
|
if (option.children) {
|
868
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)))));
|
869
865
|
}
|
@@ -873,7 +869,8 @@ export class Select {
|
|
873
869
|
}))) : searchable ? (h("div", { class: "searchable-select-container" }, h("input", { class: {
|
874
870
|
"select-input": true,
|
875
871
|
"with-clear-button": !!this.searchableSelectInputValue,
|
876
|
-
}, 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 &&
|
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)
|
877
874
|
? "Clear input"
|
878
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: {
|
879
876
|
"expand-icon": true,
|
@@ -883,13 +880,13 @@ export class Select {
|
|
883
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: {
|
884
881
|
"value-text": true,
|
885
882
|
"with-clear-button": !!isClearable,
|
886
|
-
placeholder: multiple
|
883
|
+
placeholder: !this.loading && multiple
|
887
884
|
? !this.value || this.value.length < 1
|
888
885
|
: !this.getLabelFromValue(currValue),
|
889
886
|
} }, valueLabelString || placeholder), h("div", { class: "select-input-end" }, isClearable && h("div", { class: "divider" }), h("span", { class: {
|
890
887
|
"expand-icon": true,
|
891
888
|
"expand-icon-open": this.open,
|
892
|
-
}, 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: '
|
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: {
|
893
890
|
"no-results": this.loading ||
|
894
891
|
this.hasTimedOut ||
|
895
892
|
(this.noOptions !== null &&
|
@@ -899,7 +896,7 @@ export class Select {
|
|
899
896
|
? this.searchableSelectElement
|
900
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
|
901
898
|
? "manual"
|
902
|
-
: "automatic", closeOnSelect: !multiple })), this.multiple && (h("div", { key: '
|
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 })))));
|
903
900
|
}
|
904
901
|
static get is() { return "ic-select"; }
|
905
902
|
static get encapsulation() { return "shadow"; }
|