@ukic/web-components 3.6.0 → 3.8.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 +2 -1
- package/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/ic-action-chip.cjs.entry.js +116 -0
- package/dist/cjs/ic-action-chip.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-back-to-top.cjs.entry.js +3 -3
- package/dist/cjs/ic-badge.cjs.entry.js +2 -2
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/ic-button_3.cjs.entry.js +41 -86
- package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-card-vertical.cjs.entry.js +4 -4
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-checkbox.cjs.entry.js +4 -4
- package/dist/cjs/ic-chip.cjs.entry.js +11 -3
- package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
- 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 +2 -2
- package/dist/cjs/ic-dialog.cjs.entry.js +1 -1
- package/dist/cjs/ic-empty-state.cjs.entry.js +2 -2
- package/dist/cjs/ic-footer-link.cjs.entry.js +2 -2
- package/dist/cjs/ic-footer.cjs.entry.js +3 -3
- package/dist/cjs/ic-hero.cjs.entry.js +4 -4
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +5 -5
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js +44 -52
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-label_2.cjs.entry.js +5 -5
- package/dist/cjs/ic-link.cjs.entry.js +1 -1
- package/dist/cjs/ic-menu-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-navigation-button.cjs.entry.js +2 -2
- package/dist/cjs/ic-navigation-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js +3 -10
- package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-menu.cjs.entry.js +4 -4
- package/dist/cjs/ic-page-header.cjs.entry.js +6 -6
- package/dist/cjs/ic-pagination-item.cjs.entry.js +1 -1
- package/dist/cjs/ic-pagination.cjs.entry.js +4 -4
- package/dist/cjs/ic-popover-menu.cjs.entry.js +4 -4
- package/dist/cjs/ic-radio-group.cjs.entry.js +4 -4
- package/dist/cjs/ic-radio-option.cjs.entry.js +4 -4
- package/dist/cjs/ic-search-bar.cjs.entry.js +9 -9
- 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-select.cjs.entry.js +6 -6
- package/dist/cjs/ic-select.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-side-navigation.cjs.entry.js +4 -4
- package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/ic-skip-link.cjs.entry.js +2 -2
- package/dist/cjs/ic-status-tag.cjs.entry.js +2 -2
- package/dist/cjs/ic-step.cjs.entry.js +13 -13
- package/dist/cjs/ic-stepper.cjs.entry.js +2 -2
- package/dist/cjs/ic-switch.cjs.entry.js +4 -4
- package/dist/cjs/ic-tab-context.cjs.entry.js +1 -1
- package/dist/cjs/ic-tab-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/ic-tab.cjs.entry.js +2 -2
- package/dist/cjs/ic-text-field.cjs.entry.js +6 -6
- package/dist/cjs/ic-theme.cjs.entry.js +1 -1
- package/dist/cjs/ic-toast-region.cjs.entry.js +1 -1
- package/dist/cjs/ic-toast.cjs.entry.js +3 -3
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js +15 -4
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toggle-button.cjs.entry.js +13 -4
- package/dist/cjs/ic-toggle-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-top-navigation.cjs.entry.js +4 -4
- package/dist/cjs/ic-typography.cjs.entry.js +2 -2
- package/dist/cjs/index-d337cd8a.js +4 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/ic-action-chip/ic-action-chip.css +644 -0
- package/dist/collection/components/ic-action-chip/ic-action-chip.js +564 -0
- package/dist/collection/components/ic-action-chip/ic-action-chip.js.map +1 -0
- package/dist/collection/components/ic-action-chip/ic-action-chip.stories.js +386 -0
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.js +3 -3
- package/dist/collection/components/ic-badge/ic-badge.js +2 -2
- 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 +3 -11
- package/dist/collection/components/ic-button/ic-button.js +2 -2
- package/dist/collection/components/ic-card-vertical/ic-card-vertical.js +4 -4
- package/dist/collection/components/ic-checkbox/ic-checkbox.js +4 -4
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +2 -2
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.stories.js +5 -3
- package/dist/collection/components/ic-chip/ic-chip.js +12 -4
- package/dist/collection/components/ic-chip/ic-chip.js.map +1 -1
- 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.js +1 -1
- package/dist/collection/components/ic-dialog/ic-dialog.stories.js +31 -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-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 +2 -2
- 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.css +5 -0
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js +5 -5
- package/dist/collection/components/ic-menu/ic-menu.js +108 -47
- package/dist/collection/components/ic-menu/ic-menu.js.map +1 -1
- package/dist/collection/components/ic-menu-group/ic-menu-group.js +1 -1
- package/dist/collection/components/ic-navigation-button/ic-navigation-button.js +2 -2
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.js +1 -1
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.js +3 -10
- 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-group/ic-radio-group.stories.js +5 -3
- 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-search-bar/ic-search-bar.js.map +1 -1
- package/dist/collection/components/ic-section-container/ic-section-container.js +2 -2
- package/dist/collection/components/ic-select/ic-select.js +6 -6
- package/dist/collection/components/ic-select/ic-select.js.map +1 -1
- package/dist/collection/components/ic-select/ic-select_(multi).stories.js +7 -5
- package/dist/collection/components/ic-select/ic-select_(searchable).stories.js +7 -5
- package/dist/collection/components/ic-select/ic-select_(single).stories.js +7 -5
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +4 -4
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.js.map +1 -1
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.stories.js +31 -4
- package/dist/collection/components/ic-skeleton/ic-skeleton.js +2 -2
- package/dist/collection/components/ic-skip-link/ic-skip-link.js +2 -2
- package/dist/collection/components/ic-status-tag/ic-status-tag.js +2 -2
- package/dist/collection/components/ic-step/ic-step.js +13 -13
- package/dist/collection/components/ic-stepper/ic-stepper.js +2 -2
- package/dist/collection/components/ic-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-text-field/ic-text-field.stories.js +5 -10
- package/dist/collection/components/ic-theme/ic-theme.js +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 +17 -0
- package/dist/collection/components/ic-toggle-button/ic-toggle-button.js +32 -3
- package/dist/collection/components/ic-toggle-button/ic-toggle-button.js.map +1 -1
- package/dist/collection/components/ic-toggle-button/ic-toggle-button.stories.js +7 -0
- package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.css +7 -0
- package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.js +36 -3
- package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.js.map +1 -1
- package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.stories.js +17 -0
- package/dist/collection/components/ic-tooltip/ic-tooltip.css +2 -5
- package/dist/collection/components/ic-tooltip/ic-tooltip.js +32 -77
- package/dist/collection/components/ic-tooltip/ic-tooltip.js.map +1 -1
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.js +4 -4
- package/dist/collection/components/ic-typography/ic-typography.js +2 -2
- package/dist/components/ic-action-chip.d.ts +11 -0
- package/dist/components/ic-action-chip.js +160 -0
- package/dist/components/ic-action-chip.js.map +1 -0
- package/dist/components/ic-back-to-top.js +3 -3
- package/dist/components/ic-badge.js +2 -2
- package/dist/components/ic-breadcrumb-group.js +2 -2
- package/dist/components/ic-breadcrumb2.js +2 -2
- package/dist/components/ic-button2.js +3 -3
- package/dist/components/ic-button2.js.map +1 -1
- package/dist/components/ic-card-vertical.js +4 -4
- package/dist/components/ic-checkbox-group.js +2 -2
- package/dist/components/ic-checkbox.js +4 -4
- package/dist/components/ic-chip.js +12 -4
- package/dist/components/ic-chip.js.map +1 -1
- 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 +2 -2
- package/dist/components/ic-dialog.js +1 -1
- package/dist/components/ic-empty-state.js +2 -2
- package/dist/components/ic-footer-link.js +2 -2
- package/dist/components/ic-footer.js +3 -3
- package/dist/components/ic-hero.js +4 -4
- package/dist/components/ic-horizontal-scroll2.js +5 -5
- package/dist/components/ic-input-component-container2.js +3 -3
- package/dist/components/ic-input-container2.js +2 -2
- package/dist/components/ic-input-label2.js +2 -2
- package/dist/components/ic-input-validation2.js +3 -3
- package/dist/components/ic-link2.js +1 -1
- package/dist/components/ic-loading-indicator2.js +6 -6
- package/dist/components/ic-loading-indicator2.js.map +1 -1
- package/dist/components/ic-menu-group.js +1 -1
- package/dist/components/ic-menu2.js +42 -47
- package/dist/components/ic-menu2.js.map +1 -1
- package/dist/components/ic-navigation-button.js +2 -2
- package/dist/components/ic-navigation-group.js +1 -1
- package/dist/components/ic-navigation-item.js +3 -10
- package/dist/components/ic-navigation-item.js.map +1 -1
- package/dist/components/ic-navigation-menu2.js +4 -4
- package/dist/components/ic-page-header.js +6 -6
- package/dist/components/ic-pagination-item2.js +1 -1
- package/dist/components/ic-pagination.js +4 -4
- package/dist/components/ic-popover-menu.js +4 -4
- package/dist/components/ic-radio-group.js +4 -4
- package/dist/components/ic-radio-group.js.map +1 -1
- package/dist/components/ic-radio-option.js +4 -4
- package/dist/components/ic-search-bar.js +9 -9
- package/dist/components/ic-search-bar.js.map +1 -1
- package/dist/components/ic-section-container2.js +2 -2
- package/dist/components/ic-select.js +6 -6
- package/dist/components/ic-select.js.map +1 -1
- package/dist/components/ic-side-navigation.js +4 -4
- package/dist/components/ic-side-navigation.js.map +1 -1
- package/dist/components/ic-skeleton.js +2 -2
- package/dist/components/ic-skip-link.js +2 -2
- package/dist/components/ic-status-tag.js +2 -2
- package/dist/components/ic-step.js +13 -13
- package/dist/components/ic-stepper.js +2 -2
- package/dist/components/ic-switch.js +4 -4
- 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 +6 -6
- package/dist/components/ic-text-field.js.map +1 -1
- package/dist/components/ic-theme.js +1 -1
- package/dist/components/ic-toast-region.js +1 -1
- package/dist/components/ic-toast.js +3 -3
- package/dist/components/ic-toggle-button-group.js +17 -4
- package/dist/components/ic-toggle-button-group.js.map +1 -1
- package/dist/components/ic-toggle-button.js +14 -4
- package/dist/components/ic-toggle-button.js.map +1 -1
- package/dist/components/ic-tooltip2.js +33 -78
- package/dist/components/ic-tooltip2.js.map +1 -1
- package/dist/components/ic-top-navigation.js +4 -4
- package/dist/components/ic-typography2.js +2 -2
- package/dist/core/core.css +227 -7
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/{p-5fb58cc8.entry.js → p-03a2fa83.entry.js} +2 -2
- package/dist/core/{p-ba89fa16.entry.js → p-04c36b23.entry.js} +2 -2
- package/dist/core/{p-7b9e10a0.entry.js → p-0a8140ef.entry.js} +2 -2
- package/dist/core/p-0a8140ef.entry.js.map +1 -0
- package/dist/core/{p-f4ee5fbb.entry.js → p-0c095f5b.entry.js} +2 -2
- package/dist/core/{p-50d13439.entry.js → p-0eaa2904.entry.js} +2 -2
- package/dist/core/p-1829c1a9.entry.js +2 -0
- package/dist/core/p-1829c1a9.entry.js.map +1 -0
- package/dist/core/{p-b730963a.entry.js → p-19680887.entry.js} +2 -2
- package/dist/core/p-19680887.entry.js.map +1 -0
- package/dist/core/{p-4b6818d9.entry.js → p-1cc402b8.entry.js} +2 -2
- package/dist/core/p-1f913ba3.entry.js +2 -0
- package/dist/core/{p-627f7172.entry.js.map → p-1f913ba3.entry.js.map} +1 -1
- package/dist/core/{p-0549305b.entry.js → p-2394346c.entry.js} +2 -2
- package/dist/core/p-280e7874.entry.js +2 -0
- package/dist/core/p-280e7874.entry.js.map +1 -0
- package/dist/core/{p-77750efc.entry.js → p-2c2c752d.entry.js} +2 -2
- package/dist/core/{p-9ed5f11d.entry.js → p-32c030b1.entry.js} +2 -2
- package/dist/core/{p-afde0edc.entry.js → p-3aa7f724.entry.js} +2 -2
- package/dist/core/{p-b83cca09.entry.js → p-3eef02dd.entry.js} +2 -2
- package/dist/core/p-3f9ff1cb.entry.js +2 -0
- package/dist/core/p-3f9ff1cb.entry.js.map +1 -0
- package/dist/core/p-4345907a.entry.js +2 -0
- package/dist/core/{p-ec1657fc.entry.js.map → p-4345907a.entry.js.map} +1 -1
- package/dist/core/p-46a0a40b.entry.js +2 -0
- package/dist/core/p-46a0a40b.entry.js.map +1 -0
- package/dist/core/{p-3448c713.entry.js → p-48db785a.entry.js} +2 -2
- package/dist/core/{p-29468171.entry.js → p-4c336217.entry.js} +2 -2
- package/dist/core/{p-98869fe7.entry.js → p-51bff253.entry.js} +2 -2
- package/dist/core/p-57644340.entry.js +2 -0
- package/dist/core/p-57644340.entry.js.map +1 -0
- package/dist/core/{p-2ec0d11c.entry.js → p-60ff225d.entry.js} +2 -2
- package/dist/core/{p-0179fbd3.entry.js → p-682a9365.entry.js} +2 -2
- package/dist/core/{p-43b98687.entry.js → p-68f55187.entry.js} +2 -2
- package/dist/core/{p-7cada631.entry.js → p-69aad690.entry.js} +2 -2
- package/dist/core/{p-08567369.entry.js → p-750d5536.entry.js} +2 -2
- package/dist/core/{p-97f67617.entry.js → p-7ac5a271.entry.js} +2 -2
- package/dist/core/p-7cd6487e.entry.js +2 -0
- package/dist/core/{p-ff47772c.entry.js.map → p-7cd6487e.entry.js.map} +1 -1
- package/dist/core/{p-056be0df.entry.js → p-8557fa1e.entry.js} +2 -2
- package/dist/core/{p-4b8bfb59.entry.js → p-874f7e8d.entry.js} +2 -2
- package/dist/core/{p-421b5f2d.entry.js → p-88b516d6.entry.js} +2 -2
- package/dist/core/{p-939adcae.entry.js → p-903f9c7f.entry.js} +2 -2
- package/dist/core/{p-bb21268f.entry.js → p-918af357.entry.js} +2 -2
- package/dist/core/{p-a2ae5d9e.entry.js → p-998dfae0.entry.js} +2 -2
- package/dist/core/{p-8a5b0fb0.entry.js → p-9d78ef89.entry.js} +2 -2
- package/dist/core/{p-ae2ea264.entry.js → p-9e177686.entry.js} +2 -2
- package/dist/core/{p-0f86ea09.entry.js → p-9f792a31.entry.js} +2 -2
- package/dist/core/{p-70abcb2b.js → p-9f8acb5f.js} +2 -2
- package/dist/core/{p-4935b899.entry.js → p-a082d978.entry.js} +2 -2
- package/dist/core/{p-4935b899.entry.js.map → p-a082d978.entry.js.map} +1 -1
- package/dist/core/{p-b1b27b7e.entry.js → p-b3ac38c5.entry.js} +2 -2
- package/dist/core/{p-e29ba8bd.entry.js → p-b3d3ee50.entry.js} +2 -2
- package/dist/core/p-b3d3ee50.entry.js.map +1 -0
- package/dist/core/p-b5c72b06.entry.js +2 -0
- package/dist/core/p-b5c72b06.entry.js.map +1 -0
- package/dist/core/p-b94d404b.entry.js +2 -0
- package/dist/core/{p-773ded36.entry.js.map → p-b94d404b.entry.js.map} +1 -1
- package/dist/core/{p-91f6884a.entry.js → p-bf5653c0.entry.js} +2 -2
- package/dist/core/{p-fb6e6ac4.entry.js → p-c63ae7d0.entry.js} +2 -2
- package/dist/core/{p-a591ef38.entry.js → p-c9c6d63b.entry.js} +2 -2
- package/dist/core/{p-ce916f35.entry.js → p-d1b7b839.entry.js} +2 -2
- package/dist/core/{p-4301e11e.entry.js → p-d2f1beb6.entry.js} +2 -2
- package/dist/core/{p-d281c3cf.entry.js → p-d47acbd4.entry.js} +2 -2
- package/dist/core/{p-fc5661ac.entry.js → p-de43d375.entry.js} +2 -2
- package/dist/core/p-e0485462.entry.js +2 -0
- package/dist/core/p-e9b6b600.entry.js +2 -0
- package/dist/core/{p-6dd73165.entry.js → p-ee6caf27.entry.js} +2 -2
- package/dist/core/{p-06e80441.entry.js → p-ef357622.entry.js} +2 -2
- package/dist/core/{p-9e051db4.entry.js → p-f34eee68.entry.js} +2 -2
- package/dist/core/{p-948086f4.entry.js → p-f46fd0e7.entry.js} +2 -2
- package/dist/core/{p-f9491692.entry.js → p-f643ae2b.entry.js} +2 -2
- package/dist/core/p-fbaf0301.entry.js +2 -0
- package/dist/core/{p-3194e46c.entry.js.map → p-fbaf0301.entry.js.map} +1 -1
- package/dist/core/{p-9d5e4b62.entry.js → p-fc933fc3.entry.js} +2 -2
- package/dist/core/p-fd421f11.entry.js +2 -0
- package/dist/core/{p-554c555f.entry.js.map → p-fd421f11.entry.js.map} +1 -1
- package/dist/core/{p-cd8dab55.entry.js → p-fee854f5.entry.js} +2 -2
- package/dist/esm/core.js +1 -1
- package/dist/esm/{helpers-f5ff3b42.js → helpers-2e75abf4.js} +2 -2
- package/dist/esm/{helpers-f5ff3b42.js.map → helpers-2e75abf4.js.map} +1 -1
- package/dist/esm/ic-accordion-group.entry.js +1 -1
- package/dist/esm/ic-accordion.entry.js +1 -1
- package/dist/esm/ic-action-chip.entry.js +112 -0
- package/dist/esm/ic-action-chip.entry.js.map +1 -0
- package/dist/esm/ic-alert.entry.js +1 -1
- package/dist/esm/ic-back-to-top.entry.js +4 -4
- package/dist/esm/ic-badge.entry.js +3 -3
- 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 +42 -87
- package/dist/esm/ic-button_3.entry.js.map +1 -1
- package/dist/esm/ic-card-vertical.entry.js +5 -5
- package/dist/esm/ic-checkbox-group.entry.js +3 -3
- package/dist/esm/ic-checkbox.entry.js +5 -5
- package/dist/esm/ic-chip.entry.js +12 -4
- package/dist/esm/ic-chip.entry.js.map +1 -1
- 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 +2 -2
- package/dist/esm/ic-divider.entry.js +1 -1
- package/dist/esm/ic-empty-state.entry.js +3 -3
- package/dist/esm/ic-footer-link-group.entry.js +1 -1
- package/dist/esm/ic-footer-link.entry.js +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 +45 -53
- package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
- package/dist/esm/ic-input-label_2.entry.js +6 -6
- 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-navigation-button.entry.js +3 -3
- package/dist/esm/ic-navigation-group.entry.js +2 -2
- package/dist/esm/ic-navigation-item.entry.js +4 -11
- 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 +5 -5
- package/dist/esm/ic-search-bar.entry.js +10 -10
- 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-select.entry.js +7 -7
- 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 +2 -2
- package/dist/esm/ic-status-tag.entry.js +3 -3
- package/dist/esm/ic-step.entry.js +14 -14
- package/dist/esm/ic-stepper.entry.js +3 -3
- package/dist/esm/ic-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 +2 -2
- 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 +16 -5
- package/dist/esm/ic-toggle-button-group.entry.js.map +1 -1
- package/dist/esm/ic-toggle-button.entry.js +14 -5
- 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-typography.entry.js +3 -3
- package/dist/esm/index-a7a720e7.js +4 -0
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/ic-action-chip/ic-action-chip.d.ts +100 -0
- package/dist/types/components/ic-chip/ic-chip.d.ts +2 -0
- package/dist/types/components/ic-menu/ic-menu.d.ts +12 -4
- package/dist/types/components/ic-toggle-button/ic-toggle-button.d.ts +4 -0
- package/dist/types/components/ic-toggle-button-group/ic-toggle-button-group.d.ts +5 -0
- package/dist/types/components/ic-tooltip/ic-tooltip.d.ts +1 -4
- package/dist/types/components.d.ts +198 -2
- package/hydrate/index.js +424 -311
- package/hydrate/index.mjs +424 -311
- package/package.json +2 -2
- package/vscode-data.json +164 -0
- package/dist/core/p-06b0d0f6.entry.js +0 -2
- package/dist/core/p-3194e46c.entry.js +0 -2
- package/dist/core/p-4cd83bfe.entry.js +0 -2
- package/dist/core/p-4cd83bfe.entry.js.map +0 -1
- package/dist/core/p-554c555f.entry.js +0 -2
- package/dist/core/p-57309502.entry.js +0 -2
- package/dist/core/p-57309502.entry.js.map +0 -1
- package/dist/core/p-627f7172.entry.js +0 -2
- package/dist/core/p-773ded36.entry.js +0 -2
- package/dist/core/p-7b9e10a0.entry.js.map +0 -1
- package/dist/core/p-9caa9e7b.entry.js +0 -2
- package/dist/core/p-9caa9e7b.entry.js.map +0 -1
- package/dist/core/p-b730963a.entry.js.map +0 -1
- package/dist/core/p-c100724d.entry.js +0 -2
- package/dist/core/p-cd42b7c0.entry.js +0 -2
- package/dist/core/p-cd42b7c0.entry.js.map +0 -1
- package/dist/core/p-d7c8f10d.entry.js +0 -2
- package/dist/core/p-d7c8f10d.entry.js.map +0 -1
- package/dist/core/p-e29ba8bd.entry.js.map +0 -1
- package/dist/core/p-ec1657fc.entry.js +0 -2
- package/dist/core/p-ff47772c.entry.js +0 -2
- /package/dist/core/{p-5fb58cc8.entry.js.map → p-03a2fa83.entry.js.map} +0 -0
- /package/dist/core/{p-ba89fa16.entry.js.map → p-04c36b23.entry.js.map} +0 -0
- /package/dist/core/{p-f4ee5fbb.entry.js.map → p-0c095f5b.entry.js.map} +0 -0
- /package/dist/core/{p-50d13439.entry.js.map → p-0eaa2904.entry.js.map} +0 -0
- /package/dist/core/{p-4b6818d9.entry.js.map → p-1cc402b8.entry.js.map} +0 -0
- /package/dist/core/{p-0549305b.entry.js.map → p-2394346c.entry.js.map} +0 -0
- /package/dist/core/{p-77750efc.entry.js.map → p-2c2c752d.entry.js.map} +0 -0
- /package/dist/core/{p-9ed5f11d.entry.js.map → p-32c030b1.entry.js.map} +0 -0
- /package/dist/core/{p-afde0edc.entry.js.map → p-3aa7f724.entry.js.map} +0 -0
- /package/dist/core/{p-b83cca09.entry.js.map → p-3eef02dd.entry.js.map} +0 -0
- /package/dist/core/{p-3448c713.entry.js.map → p-48db785a.entry.js.map} +0 -0
- /package/dist/core/{p-29468171.entry.js.map → p-4c336217.entry.js.map} +0 -0
- /package/dist/core/{p-98869fe7.entry.js.map → p-51bff253.entry.js.map} +0 -0
- /package/dist/core/{p-2ec0d11c.entry.js.map → p-60ff225d.entry.js.map} +0 -0
- /package/dist/core/{p-0179fbd3.entry.js.map → p-682a9365.entry.js.map} +0 -0
- /package/dist/core/{p-43b98687.entry.js.map → p-68f55187.entry.js.map} +0 -0
- /package/dist/core/{p-7cada631.entry.js.map → p-69aad690.entry.js.map} +0 -0
- /package/dist/core/{p-08567369.entry.js.map → p-750d5536.entry.js.map} +0 -0
- /package/dist/core/{p-97f67617.entry.js.map → p-7ac5a271.entry.js.map} +0 -0
- /package/dist/core/{p-056be0df.entry.js.map → p-8557fa1e.entry.js.map} +0 -0
- /package/dist/core/{p-4b8bfb59.entry.js.map → p-874f7e8d.entry.js.map} +0 -0
- /package/dist/core/{p-421b5f2d.entry.js.map → p-88b516d6.entry.js.map} +0 -0
- /package/dist/core/{p-939adcae.entry.js.map → p-903f9c7f.entry.js.map} +0 -0
- /package/dist/core/{p-bb21268f.entry.js.map → p-918af357.entry.js.map} +0 -0
- /package/dist/core/{p-a2ae5d9e.entry.js.map → p-998dfae0.entry.js.map} +0 -0
- /package/dist/core/{p-8a5b0fb0.entry.js.map → p-9d78ef89.entry.js.map} +0 -0
- /package/dist/core/{p-ae2ea264.entry.js.map → p-9e177686.entry.js.map} +0 -0
- /package/dist/core/{p-0f86ea09.entry.js.map → p-9f792a31.entry.js.map} +0 -0
- /package/dist/core/{p-70abcb2b.js.map → p-9f8acb5f.js.map} +0 -0
- /package/dist/core/{p-b1b27b7e.entry.js.map → p-b3ac38c5.entry.js.map} +0 -0
- /package/dist/core/{p-91f6884a.entry.js.map → p-bf5653c0.entry.js.map} +0 -0
- /package/dist/core/{p-fb6e6ac4.entry.js.map → p-c63ae7d0.entry.js.map} +0 -0
- /package/dist/core/{p-a591ef38.entry.js.map → p-c9c6d63b.entry.js.map} +0 -0
- /package/dist/core/{p-ce916f35.entry.js.map → p-d1b7b839.entry.js.map} +0 -0
- /package/dist/core/{p-4301e11e.entry.js.map → p-d2f1beb6.entry.js.map} +0 -0
- /package/dist/core/{p-d281c3cf.entry.js.map → p-d47acbd4.entry.js.map} +0 -0
- /package/dist/core/{p-fc5661ac.entry.js.map → p-de43d375.entry.js.map} +0 -0
- /package/dist/core/{p-c100724d.entry.js.map → p-e0485462.entry.js.map} +0 -0
- /package/dist/core/{p-06b0d0f6.entry.js.map → p-e9b6b600.entry.js.map} +0 -0
- /package/dist/core/{p-6dd73165.entry.js.map → p-ee6caf27.entry.js.map} +0 -0
- /package/dist/core/{p-06e80441.entry.js.map → p-ef357622.entry.js.map} +0 -0
- /package/dist/core/{p-9e051db4.entry.js.map → p-f34eee68.entry.js.map} +0 -0
- /package/dist/core/{p-948086f4.entry.js.map → p-f46fd0e7.entry.js.map} +0 -0
- /package/dist/core/{p-f9491692.entry.js.map → p-f643ae2b.entry.js.map} +0 -0
- /package/dist/core/{p-9d5e4b62.entry.js.map → p-fc933fc3.entry.js.map} +0 -0
- /package/dist/core/{p-cd8dab55.entry.js.map → p-fee854f5.entry.js.map} +0 -0
@@ -12,9 +12,6 @@ export class Menu {
|
|
12
12
|
this.hasPreviouslyBlurred = false;
|
13
13
|
this.hasTimedOut = false;
|
14
14
|
this.isLoading = false;
|
15
|
-
this.isMultiSelect = false;
|
16
|
-
this.isSearchBar = false;
|
17
|
-
this.isSearchableSelect = false;
|
18
15
|
this.lastOptionSelected = null; // Index of last option selected
|
19
16
|
this.lastOptionFocused = null; // Index of last option focused
|
20
17
|
this.multiOptionClicked = null;
|
@@ -47,6 +44,18 @@ export class Menu {
|
|
47
44
|
* The custom name for the label field for IcMenuOption.
|
48
45
|
*/
|
49
46
|
this.labelField = "label";
|
47
|
+
/**
|
48
|
+
* @internal - flag to specify if menu is in a ic-select multiple.
|
49
|
+
*/
|
50
|
+
this.multiSelect = false;
|
51
|
+
/**
|
52
|
+
* @internal - flag to specify if menu is in a searchable ic-select.
|
53
|
+
*/
|
54
|
+
this.searchableSelect = false;
|
55
|
+
/**
|
56
|
+
* @internal - flag to specify if menu is in a ic-search-bar.
|
57
|
+
*/
|
58
|
+
this.searchBar = false;
|
50
59
|
/**
|
51
60
|
* Specify the mode search bar uses to search. `navigation` allows for quick lookups of a set of values, `query` allows for more general searches.
|
52
61
|
*/
|
@@ -79,7 +88,7 @@ export class Menu {
|
|
79
88
|
this.preventClickOpen = false;
|
80
89
|
}
|
81
90
|
// Reset optionHighlighted so previously highlighted option doesn't get reselected when Enter pressed
|
82
|
-
if (this.
|
91
|
+
if (this.multiSelect) {
|
83
92
|
this.optionHighlighted = undefined;
|
84
93
|
this.multiOptionClicked = null;
|
85
94
|
}
|
@@ -113,27 +122,12 @@ export class Menu {
|
|
113
122
|
});
|
114
123
|
}
|
115
124
|
};
|
116
|
-
this.getParentEl = (parent) => {
|
117
|
-
if (parent.tagName === this.SEARCH_BAR_TAG) {
|
118
|
-
this.isSearchBar = true;
|
119
|
-
}
|
120
|
-
else if (parent.tagName === "IC-SELECT") {
|
121
|
-
if (parent.getAttribute("searchable") !== null &&
|
122
|
-
parent.getAttribute("searchable") !== undefined) {
|
123
|
-
this.isSearchableSelect = true;
|
124
|
-
}
|
125
|
-
else if (parent.getAttribute("multiple") !== null &&
|
126
|
-
parent.getAttribute("multiple") !== undefined) {
|
127
|
-
this.isMultiSelect = true;
|
128
|
-
}
|
129
|
-
}
|
130
|
-
};
|
131
125
|
// Open menu when up or down arrow keys are pressed
|
132
126
|
this.arrowBehaviour = (event) => {
|
133
127
|
event.preventDefault();
|
134
128
|
this.handleMenuChange(true);
|
135
129
|
};
|
136
|
-
this.getMenuOptions = () => this.
|
130
|
+
this.getMenuOptions = () => this.searchBar ? this.options : this.ungroupedOptions;
|
137
131
|
// Set option that is focused and so should show focus state
|
138
132
|
this.setHighlightedOption = (highlightedIndex) => {
|
139
133
|
const menuOptions = this.getMenuOptions();
|
@@ -171,11 +165,11 @@ export class Menu {
|
|
171
165
|
if (!this.isLoading && !this.hasTimedOut) {
|
172
166
|
this.keyboardNav = true;
|
173
167
|
}
|
174
|
-
const isOpen = this.
|
168
|
+
const isOpen = this.searchBar || this.searchableSelect || this.open;
|
175
169
|
if (isOpen) {
|
176
170
|
if (highlightedOptionIndex >= 0) {
|
177
171
|
if (options[highlightedOptionIndex] !== undefined) {
|
178
|
-
if (this.
|
172
|
+
if (this.searchBar &&
|
179
173
|
options[highlightedOptionIndex].disabled === true) {
|
180
174
|
this.disabledOptionSelected = true;
|
181
175
|
}
|
@@ -220,7 +214,7 @@ export class Menu {
|
|
220
214
|
const clickedMultiOptionIndex = menuOptions.findIndex((option) => option[this.valueField] === this.multiOptionClicked);
|
221
215
|
const getOptionId = (index) => { var _a; return (_a = Array.from(this.host.querySelectorAll("li"))[index]) === null || _a === void 0 ? void 0 : _a.id; };
|
222
216
|
// Space press should be equivalent to Enter when multi-select
|
223
|
-
if (event.key === " " && this.
|
217
|
+
if (event.key === " " && this.multiSelect) {
|
224
218
|
this.handleOptionSelect(event, highlightedOptionIndex);
|
225
219
|
}
|
226
220
|
else {
|
@@ -251,7 +245,7 @@ export class Menu {
|
|
251
245
|
this.handleSingleShiftSelect(event, 0, menuOptions);
|
252
246
|
}
|
253
247
|
// Deselect currently selected options if arrow was pressed for first time after shift is held
|
254
|
-
if (this.
|
248
|
+
if (this.multiSelect && this.shiftPressed) {
|
255
249
|
this.deselectSelectedOptions([
|
256
250
|
highlightedOptionIndex,
|
257
251
|
this.getOptionHighlightedIndex(),
|
@@ -290,7 +284,7 @@ export class Menu {
|
|
290
284
|
this.handleSingleShiftSelect(event, highlightedOptionIndex - 1, menuOptions);
|
291
285
|
}
|
292
286
|
// Deselect currently selected options if arrow was pressed for first time after shift is held
|
293
|
-
if (this.
|
287
|
+
if (this.multiSelect && this.shiftPressed) {
|
294
288
|
this.deselectSelectedOptions([
|
295
289
|
highlightedOptionIndex,
|
296
290
|
this.getOptionHighlightedIndex(),
|
@@ -338,7 +332,7 @@ export class Menu {
|
|
338
332
|
if (!isKeyboardCombination) {
|
339
333
|
this.keyboardNav = false;
|
340
334
|
}
|
341
|
-
if (this.
|
335
|
+
if (this.searchBar || this.searchableSelect) {
|
342
336
|
break;
|
343
337
|
}
|
344
338
|
else {
|
@@ -376,10 +370,10 @@ export class Menu {
|
|
376
370
|
if (event.key === "Shift") {
|
377
371
|
this.shiftPressed = true;
|
378
372
|
}
|
379
|
-
if (this.
|
373
|
+
if (this.searchBar) {
|
380
374
|
this.keyboardNav = true;
|
381
375
|
}
|
382
|
-
if (this.
|
376
|
+
if (this.multiSelect) {
|
383
377
|
if (this.open && !event.shiftKey && this.selectAllButton) {
|
384
378
|
event.preventDefault();
|
385
379
|
this.selectAllButton.focus(); // Move focus to select all button instead of focused option
|
@@ -422,7 +416,7 @@ export class Menu {
|
|
422
416
|
};
|
423
417
|
this.handleOptionClick = (event) => {
|
424
418
|
const { value, label } = event.target.dataset;
|
425
|
-
if (this.
|
419
|
+
if (this.multiSelect) {
|
426
420
|
const menuOptions = this.getMenuOptions();
|
427
421
|
const selectedOptionIndex = menuOptions.findIndex((option) => option.value === value);
|
428
422
|
this.handleOptionSelect(event, selectedOptionIndex, true);
|
@@ -464,7 +458,7 @@ export class Menu {
|
|
464
458
|
this.lastOptionFocused = null;
|
465
459
|
this.lastOptionSelected = null;
|
466
460
|
}
|
467
|
-
if (!this.
|
461
|
+
if (!this.searchBar)
|
468
462
|
this.hasPreviouslyBlurred = !!event.relatedTarget;
|
469
463
|
};
|
470
464
|
this.handleMouseDown = (event) => {
|
@@ -474,7 +468,7 @@ export class Menu {
|
|
474
468
|
if (this.activationType === "automatic") {
|
475
469
|
this.autoSetValueOnMenuKeyDown(event);
|
476
470
|
}
|
477
|
-
else if (this.activationType === "manual" && !this.
|
471
|
+
else if (this.activationType === "manual" && !this.searchBar) {
|
478
472
|
this.manualSetInputValueKeyboardOpen(event);
|
479
473
|
}
|
480
474
|
};
|
@@ -517,7 +511,7 @@ export class Menu {
|
|
517
511
|
// When shift key is being used to select contiguous options one by one on a multi-select
|
518
512
|
// I.e. holding shift and pressing up and down arrow keys
|
519
513
|
this.handleSingleShiftSelect = (event, optionToSelectIndex, options) => {
|
520
|
-
if (this.
|
514
|
+
if (this.multiSelect &&
|
521
515
|
event.shiftKey &&
|
522
516
|
!this.isOptionSelected(optionToSelectIndex)) {
|
523
517
|
this.selectHighlightedOption(options, optionToSelectIndex);
|
@@ -767,9 +761,7 @@ export class Menu {
|
|
767
761
|
this.loadUngroupedOptions();
|
768
762
|
}
|
769
763
|
connectedCallback() {
|
770
|
-
if (this.
|
771
|
-
this.getParentEl(this.parentEl);
|
772
|
-
if (this.isSearchBar) {
|
764
|
+
if (this.searchBar) {
|
773
765
|
if (this.searchMode === "navigation")
|
774
766
|
this.setHighlightedOption(0);
|
775
767
|
this.initialOptionsListRender = true;
|
@@ -790,7 +782,7 @@ export class Menu {
|
|
790
782
|
this.isLoading = (_d = this.options) === null || _d === void 0 ? void 0 : _d.some((opt) => opt.loading);
|
791
783
|
}
|
792
784
|
componentDidLoad() {
|
793
|
-
if (this.
|
785
|
+
if (this.searchBar &&
|
794
786
|
this.parentEl.disableAutoFiltering) {
|
795
787
|
this.focusFromSearchKeypress = true;
|
796
788
|
}
|
@@ -812,7 +804,7 @@ export class Menu {
|
|
812
804
|
this.keyboardNav &&
|
813
805
|
inputValueInOptions &&
|
814
806
|
this.autofocusOnSelected &&
|
815
|
-
!this.
|
807
|
+
!this.searchableSelect) {
|
816
808
|
this.scrollToSelected(this.menu);
|
817
809
|
}
|
818
810
|
else if (this.selectOnEnter) {
|
@@ -906,21 +898,21 @@ export class Menu {
|
|
906
898
|
focusOnSearchOrSelectInput(menuOptions, highlightedOptionIndex) {
|
907
899
|
if (!menuOptions[highlightedOptionIndex])
|
908
900
|
return;
|
909
|
-
if (this.
|
901
|
+
if (this.searchBar) {
|
910
902
|
this.parentEl.setFocus();
|
911
903
|
if (this.searchMode === "navigation")
|
912
904
|
this.setHighlightedOption(0);
|
913
905
|
}
|
914
|
-
if (this.
|
906
|
+
if (this.searchableSelect) {
|
915
907
|
this.parentEl.setFocus();
|
916
908
|
}
|
917
909
|
this.focusFromSearchKeypress = true;
|
918
910
|
}
|
919
911
|
render() {
|
920
|
-
const { inputLabel, options, menuId, value, fullWidth, hasTimedOut, isLoading, size, open, inputEl, keyboardNav, parentEl, SEARCH_BAR_TAG, } = this;
|
912
|
+
const { inputLabel, options, menuId, value, fullWidth, hasTimedOut, isLoading, size, open, inputEl, keyboardNav, parentEl, SEARCH_BAR_TAG, multiSelect, } = this;
|
921
913
|
const selectAllButtonText = `${(value === null || value === void 0 ? void 0 : value.length) === this.ungroupedOptions.length ? "Clear" : "Select"} all`;
|
922
914
|
const hasNoResults = this.host.classList.contains("no-results");
|
923
|
-
return (h(Host, { key: '
|
915
|
+
return (h(Host, { key: '637bd569f0d987aae612c73390344c46127170ad', class: {
|
924
916
|
"ic-menu-full-width": !!fullWidth,
|
925
917
|
"ic-menu-no-focus": ((inputEl === null || inputEl === void 0 ? void 0 : inputEl.tagName) === "INPUT" &&
|
926
918
|
(parentEl === null || parentEl === void 0 ? void 0 : parentEl.tagName) !== SEARCH_BAR_TAG) ||
|
@@ -928,8 +920,8 @@ export class Menu {
|
|
928
920
|
isLoading,
|
929
921
|
[`ic-menu-${size}`]: true,
|
930
922
|
"ic-menu-open": open && options.length !== 0,
|
931
|
-
"ic-menu-multiple":
|
932
|
-
} }, options.length !== 0 && (h("ul", { key: '
|
923
|
+
"ic-menu-multiple": multiSelect,
|
924
|
+
} }, options.length !== 0 && (h("ul", { key: '3840de0e59bd4f2d87330cf23a6afe402870c848', id: menuId, class: "menu", role: "listbox", "aria-label": `${inputLabel} pop-up`, "aria-multiselectable": multiSelect ? "true" : "false", tabindex: open &&
|
933
925
|
!keyboardNav &&
|
934
926
|
((inputEl === null || inputEl === void 0 ? void 0 : inputEl.tagName) !== "INPUT" ||
|
935
927
|
(parentEl === null || parentEl === void 0 ? void 0 : parentEl.tagName) === SEARCH_BAR_TAG)
|
@@ -938,7 +930,7 @@ export class Menu {
|
|
938
930
|
if (option.children) {
|
939
931
|
if (option.children.length > 0) {
|
940
932
|
return (h("div", null, h("ic-typography", { class: "option-group-title", role: "presentation", variant: "subtitle-small" }, h("p", null, option[this.labelField])), option.children.map((childOption) => childOption.label &&
|
941
|
-
this.displayOption(childOption,
|
933
|
+
this.displayOption(childOption, multiSelect
|
942
934
|
? value === null || value === void 0 ? void 0 : value.includes(childOption[this.valueField])
|
943
935
|
: childOption[this.valueField] === value, index, option))));
|
944
936
|
}
|
@@ -949,15 +941,15 @@ export class Menu {
|
|
949
941
|
else {
|
950
942
|
// Display option only if it has a label (rather than displaying an empty space)
|
951
943
|
return (option.label &&
|
952
|
-
this.displayOption(option,
|
944
|
+
this.displayOption(option, multiSelect
|
953
945
|
? value === null || value === void 0 ? void 0 : value.includes(option[this.valueField])
|
954
946
|
: option[this.valueField] === value, index));
|
955
947
|
}
|
956
948
|
}))), options.length !== 0 &&
|
957
|
-
|
949
|
+
multiSelect &&
|
958
950
|
!isLoading &&
|
959
951
|
!hasTimedOut &&
|
960
|
-
!hasNoResults && (h("div", { key: '
|
952
|
+
!hasNoResults && (h("div", { key: '7c21b91f707319eac7433c9bf84b2e07117d4a5e', class: "option-bar" }, h("ic-typography", { key: 'ebf470f1196440dbb9b7d827833866604df1273c' }, h("p", { key: '796f1746246ee7867d6244c9ab824e5e483be7d0' }, `${value ? value.length : 0}/${getOptionsWithoutGroupTitlesCount(this.options)} selected`)), h("ic-button", { key: 'ab28ce082f7fd653fb10c7692161ad0c00653792', class: "select-all-button", "aria-label": `${selectAllButtonText} options for ${inputLabel}`, ref: (el) => (this.selectAllButton = el), variant: "tertiary", onClick: this.handleSelectAllClick, onMouseDown: this.handleSelectAllMouseDown, onBlur: this.handleSelectAllBlur, onFocus: this.handleSelectAllFocus, size: size === "small" ? "small" : "medium" }, selectAllButtonText)))));
|
961
953
|
}
|
962
954
|
static get is() { return "ic-menu"; }
|
963
955
|
static get encapsulation() { return "scoped"; }
|
@@ -1164,6 +1156,29 @@ export class Menu {
|
|
1164
1156
|
"attribute": "menu-id",
|
1165
1157
|
"reflect": false
|
1166
1158
|
},
|
1159
|
+
"multiSelect": {
|
1160
|
+
"type": "boolean",
|
1161
|
+
"mutable": false,
|
1162
|
+
"complexType": {
|
1163
|
+
"original": "boolean",
|
1164
|
+
"resolved": "boolean",
|
1165
|
+
"references": {}
|
1166
|
+
},
|
1167
|
+
"required": false,
|
1168
|
+
"optional": false,
|
1169
|
+
"docs": {
|
1170
|
+
"tags": [{
|
1171
|
+
"name": "internal",
|
1172
|
+
"text": "- flag to specify if menu is in a ic-select multiple."
|
1173
|
+
}],
|
1174
|
+
"text": ""
|
1175
|
+
},
|
1176
|
+
"getter": false,
|
1177
|
+
"setter": false,
|
1178
|
+
"attribute": "multi-select",
|
1179
|
+
"reflect": false,
|
1180
|
+
"defaultValue": "false"
|
1181
|
+
},
|
1167
1182
|
"open": {
|
1168
1183
|
"type": "boolean",
|
1169
1184
|
"mutable": false,
|
@@ -1208,6 +1223,52 @@ export class Menu {
|
|
1208
1223
|
"getter": false,
|
1209
1224
|
"setter": false
|
1210
1225
|
},
|
1226
|
+
"searchableSelect": {
|
1227
|
+
"type": "boolean",
|
1228
|
+
"mutable": false,
|
1229
|
+
"complexType": {
|
1230
|
+
"original": "boolean",
|
1231
|
+
"resolved": "boolean",
|
1232
|
+
"references": {}
|
1233
|
+
},
|
1234
|
+
"required": false,
|
1235
|
+
"optional": false,
|
1236
|
+
"docs": {
|
1237
|
+
"tags": [{
|
1238
|
+
"name": "internal",
|
1239
|
+
"text": "- flag to specify if menu is in a searchable ic-select."
|
1240
|
+
}],
|
1241
|
+
"text": ""
|
1242
|
+
},
|
1243
|
+
"getter": false,
|
1244
|
+
"setter": false,
|
1245
|
+
"attribute": "searchable-select",
|
1246
|
+
"reflect": false,
|
1247
|
+
"defaultValue": "false"
|
1248
|
+
},
|
1249
|
+
"searchBar": {
|
1250
|
+
"type": "boolean",
|
1251
|
+
"mutable": false,
|
1252
|
+
"complexType": {
|
1253
|
+
"original": "boolean",
|
1254
|
+
"resolved": "boolean",
|
1255
|
+
"references": {}
|
1256
|
+
},
|
1257
|
+
"required": false,
|
1258
|
+
"optional": false,
|
1259
|
+
"docs": {
|
1260
|
+
"tags": [{
|
1261
|
+
"name": "internal",
|
1262
|
+
"text": "- flag to specify if menu is in a ic-search-bar."
|
1263
|
+
}],
|
1264
|
+
"text": ""
|
1265
|
+
},
|
1266
|
+
"getter": false,
|
1267
|
+
"setter": false,
|
1268
|
+
"attribute": "search-bar",
|
1269
|
+
"reflect": false,
|
1270
|
+
"defaultValue": "false"
|
1271
|
+
},
|
1211
1272
|
"searchMode": {
|
1212
1273
|
"type": "string",
|
1213
1274
|
"mutable": false,
|