@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
@@ -54,15 +54,15 @@ const InputComponentContainer = class {
|
|
54
54
|
}
|
55
55
|
render() {
|
56
56
|
const { size, validationStatus, disabled, readonly, multiLine, fullWidth, validationInline, } = this;
|
57
|
-
return (index.h(index.Host, { key: '
|
57
|
+
return (index.h(index.Host, { key: 'c33ebfd9dd18101fb9161259538e8e0046f77a3d', class: {
|
58
58
|
[`ic-input-component-container-${size}`]: true,
|
59
59
|
[`ic-input-component-container-${validationStatus}`]: validationStatus !== "" && !disabled && !readonly,
|
60
60
|
"ic-input-component-container-disabled": !!disabled,
|
61
61
|
"ic-input-component-container-readonly": !!readonly,
|
62
62
|
"ic-input-component-container-multiline": !!multiLine,
|
63
63
|
"ic-input-component-container-full-width": !!fullWidth,
|
64
|
-
}, "aria-disabled": disabled ? "true" : null }, index.h("div", { key: '
|
65
|
-
validationStatus === helpers.IcInformationStatus.Success && (index.h("span", { key: '
|
64
|
+
}, "aria-disabled": disabled ? "true" : null }, index.h("div", { key: 'a70f27a3235ac0edb9d9c5a18983ae3c02de2a48', class: "focus-indicator" }, helpers.slotHasContent(this.el, "left-icon") && (index.h("div", { key: 'aa0b233280382bd0e95a8ff932bf60a63603b7bf', class: "icon-container" }, index.h("slot", { key: 'ceb8ec9b420073ac2ecd5d6793ad4342ab9ebbdd', name: "left-icon" }))), index.h("slot", { key: '1850c6ed04510e678600c653a36e2114f982e561' }), validationInline &&
|
65
|
+
validationStatus === helpers.IcInformationStatus.Success && (index.h("span", { key: '58d228c595577c1cc9a0fe2b10538cc3efff53ab', class: "inline-success", innerHTML: helpers.successIcon })))));
|
66
66
|
}
|
67
67
|
get el() { return index.getElement(this); }
|
68
68
|
static get watchers() { return {
|
@@ -87,11 +87,11 @@ const InputContainer = class {
|
|
87
87
|
this.readonly = false;
|
88
88
|
}
|
89
89
|
render() {
|
90
|
-
return (index.h(index.Host, { key: '
|
90
|
+
return (index.h(index.Host, { key: '32ae22db5e182cc2c092c8f48e61d42a318284a0' }, index.h("div", { key: 'bae9ef74f7f92004ec99c387a213822315c505ba', class: {
|
91
91
|
["component-container"]: true,
|
92
92
|
["disabled"]: !!this.disabled,
|
93
93
|
["readonly"]: !!this.readonly,
|
94
|
-
} }, index.h("slot", { key: '
|
94
|
+
} }, index.h("slot", { key: 'acca571eaa0d8f19b0e3379d2592409aacf9dd95' }))));
|
95
95
|
}
|
96
96
|
};
|
97
97
|
InputContainer.style = IcInputContainerStyle0;
|
@@ -118,9 +118,6 @@ const Menu = class {
|
|
118
118
|
this.hasPreviouslyBlurred = false;
|
119
119
|
this.hasTimedOut = false;
|
120
120
|
this.isLoading = false;
|
121
|
-
this.isMultiSelect = false;
|
122
|
-
this.isSearchBar = false;
|
123
|
-
this.isSearchableSelect = false;
|
124
121
|
this.lastOptionSelected = null; // Index of last option selected
|
125
122
|
this.lastOptionFocused = null; // Index of last option focused
|
126
123
|
this.multiOptionClicked = null;
|
@@ -153,6 +150,18 @@ const Menu = class {
|
|
153
150
|
* The custom name for the label field for IcMenuOption.
|
154
151
|
*/
|
155
152
|
this.labelField = "label";
|
153
|
+
/**
|
154
|
+
* @internal - flag to specify if menu is in a ic-select multiple.
|
155
|
+
*/
|
156
|
+
this.multiSelect = false;
|
157
|
+
/**
|
158
|
+
* @internal - flag to specify if menu is in a searchable ic-select.
|
159
|
+
*/
|
160
|
+
this.searchableSelect = false;
|
161
|
+
/**
|
162
|
+
* @internal - flag to specify if menu is in a ic-search-bar.
|
163
|
+
*/
|
164
|
+
this.searchBar = false;
|
156
165
|
/**
|
157
166
|
* Specify the mode search bar uses to search. `navigation` allows for quick lookups of a set of values, `query` allows for more general searches.
|
158
167
|
*/
|
@@ -185,7 +194,7 @@ const Menu = class {
|
|
185
194
|
this.preventClickOpen = false;
|
186
195
|
}
|
187
196
|
// Reset optionHighlighted so previously highlighted option doesn't get reselected when Enter pressed
|
188
|
-
if (this.
|
197
|
+
if (this.multiSelect) {
|
189
198
|
this.optionHighlighted = undefined;
|
190
199
|
this.multiOptionClicked = null;
|
191
200
|
}
|
@@ -219,27 +228,12 @@ const Menu = class {
|
|
219
228
|
});
|
220
229
|
}
|
221
230
|
};
|
222
|
-
this.getParentEl = (parent) => {
|
223
|
-
if (parent.tagName === this.SEARCH_BAR_TAG) {
|
224
|
-
this.isSearchBar = true;
|
225
|
-
}
|
226
|
-
else if (parent.tagName === "IC-SELECT") {
|
227
|
-
if (parent.getAttribute("searchable") !== null &&
|
228
|
-
parent.getAttribute("searchable") !== undefined) {
|
229
|
-
this.isSearchableSelect = true;
|
230
|
-
}
|
231
|
-
else if (parent.getAttribute("multiple") !== null &&
|
232
|
-
parent.getAttribute("multiple") !== undefined) {
|
233
|
-
this.isMultiSelect = true;
|
234
|
-
}
|
235
|
-
}
|
236
|
-
};
|
237
231
|
// Open menu when up or down arrow keys are pressed
|
238
232
|
this.arrowBehaviour = (event) => {
|
239
233
|
event.preventDefault();
|
240
234
|
this.handleMenuChange(true);
|
241
235
|
};
|
242
|
-
this.getMenuOptions = () => this.
|
236
|
+
this.getMenuOptions = () => this.searchBar ? this.options : this.ungroupedOptions;
|
243
237
|
// Set option that is focused and so should show focus state
|
244
238
|
this.setHighlightedOption = (highlightedIndex) => {
|
245
239
|
const menuOptions = this.getMenuOptions();
|
@@ -277,11 +271,11 @@ const Menu = class {
|
|
277
271
|
if (!this.isLoading && !this.hasTimedOut) {
|
278
272
|
this.keyboardNav = true;
|
279
273
|
}
|
280
|
-
const isOpen = this.
|
274
|
+
const isOpen = this.searchBar || this.searchableSelect || this.open;
|
281
275
|
if (isOpen) {
|
282
276
|
if (highlightedOptionIndex >= 0) {
|
283
277
|
if (options[highlightedOptionIndex] !== undefined) {
|
284
|
-
if (this.
|
278
|
+
if (this.searchBar &&
|
285
279
|
options[highlightedOptionIndex].disabled === true) {
|
286
280
|
this.disabledOptionSelected = true;
|
287
281
|
}
|
@@ -326,7 +320,7 @@ const Menu = class {
|
|
326
320
|
const clickedMultiOptionIndex = menuOptions.findIndex((option) => option[this.valueField] === this.multiOptionClicked);
|
327
321
|
const getOptionId = (index) => { var _a; return (_a = Array.from(this.host.querySelectorAll("li"))[index]) === null || _a === void 0 ? void 0 : _a.id; };
|
328
322
|
// Space press should be equivalent to Enter when multi-select
|
329
|
-
if (event.key === " " && this.
|
323
|
+
if (event.key === " " && this.multiSelect) {
|
330
324
|
this.handleOptionSelect(event, highlightedOptionIndex);
|
331
325
|
}
|
332
326
|
else {
|
@@ -357,7 +351,7 @@ const Menu = class {
|
|
357
351
|
this.handleSingleShiftSelect(event, 0, menuOptions);
|
358
352
|
}
|
359
353
|
// Deselect currently selected options if arrow was pressed for first time after shift is held
|
360
|
-
if (this.
|
354
|
+
if (this.multiSelect && this.shiftPressed) {
|
361
355
|
this.deselectSelectedOptions([
|
362
356
|
highlightedOptionIndex,
|
363
357
|
this.getOptionHighlightedIndex(),
|
@@ -396,7 +390,7 @@ const Menu = class {
|
|
396
390
|
this.handleSingleShiftSelect(event, highlightedOptionIndex - 1, menuOptions);
|
397
391
|
}
|
398
392
|
// Deselect currently selected options if arrow was pressed for first time after shift is held
|
399
|
-
if (this.
|
393
|
+
if (this.multiSelect && this.shiftPressed) {
|
400
394
|
this.deselectSelectedOptions([
|
401
395
|
highlightedOptionIndex,
|
402
396
|
this.getOptionHighlightedIndex(),
|
@@ -444,7 +438,7 @@ const Menu = class {
|
|
444
438
|
if (!isKeyboardCombination) {
|
445
439
|
this.keyboardNav = false;
|
446
440
|
}
|
447
|
-
if (this.
|
441
|
+
if (this.searchBar || this.searchableSelect) {
|
448
442
|
break;
|
449
443
|
}
|
450
444
|
else {
|
@@ -482,10 +476,10 @@ const Menu = class {
|
|
482
476
|
if (event.key === "Shift") {
|
483
477
|
this.shiftPressed = true;
|
484
478
|
}
|
485
|
-
if (this.
|
479
|
+
if (this.searchBar) {
|
486
480
|
this.keyboardNav = true;
|
487
481
|
}
|
488
|
-
if (this.
|
482
|
+
if (this.multiSelect) {
|
489
483
|
if (this.open && !event.shiftKey && this.selectAllButton) {
|
490
484
|
event.preventDefault();
|
491
485
|
this.selectAllButton.focus(); // Move focus to select all button instead of focused option
|
@@ -528,7 +522,7 @@ const Menu = class {
|
|
528
522
|
};
|
529
523
|
this.handleOptionClick = (event) => {
|
530
524
|
const { value, label } = event.target.dataset;
|
531
|
-
if (this.
|
525
|
+
if (this.multiSelect) {
|
532
526
|
const menuOptions = this.getMenuOptions();
|
533
527
|
const selectedOptionIndex = menuOptions.findIndex((option) => option.value === value);
|
534
528
|
this.handleOptionSelect(event, selectedOptionIndex, true);
|
@@ -570,7 +564,7 @@ const Menu = class {
|
|
570
564
|
this.lastOptionFocused = null;
|
571
565
|
this.lastOptionSelected = null;
|
572
566
|
}
|
573
|
-
if (!this.
|
567
|
+
if (!this.searchBar)
|
574
568
|
this.hasPreviouslyBlurred = !!event.relatedTarget;
|
575
569
|
};
|
576
570
|
this.handleMouseDown = (event) => {
|
@@ -580,7 +574,7 @@ const Menu = class {
|
|
580
574
|
if (this.activationType === "automatic") {
|
581
575
|
this.autoSetValueOnMenuKeyDown(event);
|
582
576
|
}
|
583
|
-
else if (this.activationType === "manual" && !this.
|
577
|
+
else if (this.activationType === "manual" && !this.searchBar) {
|
584
578
|
this.manualSetInputValueKeyboardOpen(event);
|
585
579
|
}
|
586
580
|
};
|
@@ -623,7 +617,7 @@ const Menu = class {
|
|
623
617
|
// When shift key is being used to select contiguous options one by one on a multi-select
|
624
618
|
// I.e. holding shift and pressing up and down arrow keys
|
625
619
|
this.handleSingleShiftSelect = (event, optionToSelectIndex, options) => {
|
626
|
-
if (this.
|
620
|
+
if (this.multiSelect &&
|
627
621
|
event.shiftKey &&
|
628
622
|
!this.isOptionSelected(optionToSelectIndex)) {
|
629
623
|
this.selectHighlightedOption(options, optionToSelectIndex);
|
@@ -873,9 +867,7 @@ const Menu = class {
|
|
873
867
|
this.loadUngroupedOptions();
|
874
868
|
}
|
875
869
|
connectedCallback() {
|
876
|
-
if (this.
|
877
|
-
this.getParentEl(this.parentEl);
|
878
|
-
if (this.isSearchBar) {
|
870
|
+
if (this.searchBar) {
|
879
871
|
if (this.searchMode === "navigation")
|
880
872
|
this.setHighlightedOption(0);
|
881
873
|
this.initialOptionsListRender = true;
|
@@ -896,7 +888,7 @@ const Menu = class {
|
|
896
888
|
this.isLoading = (_d = this.options) === null || _d === void 0 ? void 0 : _d.some((opt) => opt.loading);
|
897
889
|
}
|
898
890
|
componentDidLoad() {
|
899
|
-
if (this.
|
891
|
+
if (this.searchBar &&
|
900
892
|
this.parentEl.disableAutoFiltering) {
|
901
893
|
this.focusFromSearchKeypress = true;
|
902
894
|
}
|
@@ -918,7 +910,7 @@ const Menu = class {
|
|
918
910
|
this.keyboardNav &&
|
919
911
|
inputValueInOptions &&
|
920
912
|
this.autofocusOnSelected &&
|
921
|
-
!this.
|
913
|
+
!this.searchableSelect) {
|
922
914
|
this.scrollToSelected(this.menu);
|
923
915
|
}
|
924
916
|
else if (this.selectOnEnter) {
|
@@ -1012,21 +1004,21 @@ const Menu = class {
|
|
1012
1004
|
focusOnSearchOrSelectInput(menuOptions, highlightedOptionIndex) {
|
1013
1005
|
if (!menuOptions[highlightedOptionIndex])
|
1014
1006
|
return;
|
1015
|
-
if (this.
|
1007
|
+
if (this.searchBar) {
|
1016
1008
|
this.parentEl.setFocus();
|
1017
1009
|
if (this.searchMode === "navigation")
|
1018
1010
|
this.setHighlightedOption(0);
|
1019
1011
|
}
|
1020
|
-
if (this.
|
1012
|
+
if (this.searchableSelect) {
|
1021
1013
|
this.parentEl.setFocus();
|
1022
1014
|
}
|
1023
1015
|
this.focusFromSearchKeypress = true;
|
1024
1016
|
}
|
1025
1017
|
render() {
|
1026
|
-
const { inputLabel, options, menuId, value, fullWidth, hasTimedOut, isLoading, size, open, inputEl, keyboardNav, parentEl, SEARCH_BAR_TAG, } = this;
|
1018
|
+
const { inputLabel, options, menuId, value, fullWidth, hasTimedOut, isLoading, size, open, inputEl, keyboardNav, parentEl, SEARCH_BAR_TAG, multiSelect, } = this;
|
1027
1019
|
const selectAllButtonText = `${(value === null || value === void 0 ? void 0 : value.length) === this.ungroupedOptions.length ? "Clear" : "Select"} all`;
|
1028
1020
|
const hasNoResults = this.host.classList.contains("no-results");
|
1029
|
-
return (index.h(index.Host, { key: '
|
1021
|
+
return (index.h(index.Host, { key: '637bd569f0d987aae612c73390344c46127170ad', class: {
|
1030
1022
|
"ic-menu-full-width": !!fullWidth,
|
1031
1023
|
"ic-menu-no-focus": ((inputEl === null || inputEl === void 0 ? void 0 : inputEl.tagName) === "INPUT" &&
|
1032
1024
|
(parentEl === null || parentEl === void 0 ? void 0 : parentEl.tagName) !== SEARCH_BAR_TAG) ||
|
@@ -1034,8 +1026,8 @@ const Menu = class {
|
|
1034
1026
|
isLoading,
|
1035
1027
|
[`ic-menu-${size}`]: true,
|
1036
1028
|
"ic-menu-open": open && options.length !== 0,
|
1037
|
-
"ic-menu-multiple":
|
1038
|
-
} }, options.length !== 0 && (index.h("ul", { key: '
|
1029
|
+
"ic-menu-multiple": multiSelect,
|
1030
|
+
} }, options.length !== 0 && (index.h("ul", { key: '3840de0e59bd4f2d87330cf23a6afe402870c848', id: menuId, class: "menu", role: "listbox", "aria-label": `${inputLabel} pop-up`, "aria-multiselectable": multiSelect ? "true" : "false", tabindex: open &&
|
1039
1031
|
!keyboardNav &&
|
1040
1032
|
((inputEl === null || inputEl === void 0 ? void 0 : inputEl.tagName) !== "INPUT" ||
|
1041
1033
|
(parentEl === null || parentEl === void 0 ? void 0 : parentEl.tagName) === SEARCH_BAR_TAG)
|
@@ -1044,7 +1036,7 @@ const Menu = class {
|
|
1044
1036
|
if (option.children) {
|
1045
1037
|
if (option.children.length > 0) {
|
1046
1038
|
return (index.h("div", null, index.h("ic-typography", { class: "option-group-title", role: "presentation", variant: "subtitle-small" }, index.h("p", null, option[this.labelField])), option.children.map((childOption) => childOption.label &&
|
1047
|
-
this.displayOption(childOption,
|
1039
|
+
this.displayOption(childOption, multiSelect
|
1048
1040
|
? value === null || value === void 0 ? void 0 : value.includes(childOption[this.valueField])
|
1049
1041
|
: childOption[this.valueField] === value, index$1, option))));
|
1050
1042
|
}
|
@@ -1055,15 +1047,15 @@ const Menu = class {
|
|
1055
1047
|
else {
|
1056
1048
|
// Display option only if it has a label (rather than displaying an empty space)
|
1057
1049
|
return (option.label &&
|
1058
|
-
this.displayOption(option,
|
1050
|
+
this.displayOption(option, multiSelect
|
1059
1051
|
? value === null || value === void 0 ? void 0 : value.includes(option[this.valueField])
|
1060
1052
|
: option[this.valueField] === value, index$1));
|
1061
1053
|
}
|
1062
1054
|
}))), options.length !== 0 &&
|
1063
|
-
|
1055
|
+
multiSelect &&
|
1064
1056
|
!isLoading &&
|
1065
1057
|
!hasTimedOut &&
|
1066
|
-
!hasNoResults && (index.h("div", { key: '
|
1058
|
+
!hasNoResults && (index.h("div", { key: '7c21b91f707319eac7433c9bf84b2e07117d4a5e', class: "option-bar" }, index.h("ic-typography", { key: 'ebf470f1196440dbb9b7d827833866604df1273c' }, index.h("p", { key: '796f1746246ee7867d6244c9ab824e5e483be7d0' }, `${value ? value.length : 0}/${helpers.getOptionsWithoutGroupTitlesCount(this.options)} selected`)), index.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)))));
|
1067
1059
|
}
|
1068
1060
|
get host() { return index.getElement(this); }
|
1069
1061
|
static get watchers() { return {
|